From ac07a5b3871f86b4af53235f0760b3a3cae6d63b Mon Sep 17 00:00:00 2001 From: Syd Xu Date: Thu, 1 Jul 2021 12:46:41 +0800 Subject: [PATCH] feat(tests): add test files --- bin/generator | Bin 3604192 -> 3604192 bytes doc.go | 2 +- example/tbk_item_info_get.go | 27 - example/tbk_tpwd_create.go | 27 - .../baichuan/alibaba_baichuan_aso_query.json | 109 + .../category/alibaba_imap_pv_autofill.json | 140 ++ metadata/template/request.tpl | 2 +- .../admarket/YunosAdmarketAdBidAPIRequest.go | 52 + .../admarket/YunosAdmarketAdBidAPIResponse.go | 35 + model/admarket/YunosAdmarketAdBidResponse.go | 35 - .../YunosAdmarketMaterialAuditAPIRequest.go | 52 + .../YunosAdmarketMaterialAuditAPIResponse.go | 27 + .../YunosAdmarketMaterialAuditResponse.go | 27 - ...liexpressAffiliateCategoryGetAPIRequest.go | 52 + ...iexpressAffiliateCategoryGetAPIResponse.go | 27 + ...ressAffiliateFeaturedpromoGetAPIRequest.go | 66 + ...essAffiliateFeaturedpromoGetAPIResponse.go | 27 + ...liateFeaturedpromoProductsGetAPIRequest.go | 220 ++ ...iateFeaturedpromoProductsGetAPIResponse.go | 27 + ...ssAffiliateHotproductDownloadAPIRequest.go | 178 ++ ...sAffiliateHotproductDownloadAPIResponse.go | 27 + ...pressAffiliateHotproductQueryAPIRequest.go | 248 +++ ...ressAffiliateHotproductQueryAPIResponse.go | 27 + ...liexpressAffiliateImageSearchAPIRequest.go | 192 ++ ...iexpressAffiliateImageSearchAPIResponse.go | 27 + ...iexpressAffiliateProductQueryAPIRequest.go | 248 +++ ...expressAffiliateProductQueryAPIResponse.go | 27 + ...essAffiliateProductSmartmatchAPIRequest.go | 234 +++ ...ssAffiliateProductSmartmatchAPIResponse.go | 27 + ...ressAffiliateProductdetailGetAPIRequest.go | 136 ++ ...essAffiliateProductdetailGetAPIResponse.go | 27 + .../AliexpressAffiliateOrderGetAPIRequest.go | 80 + .../AliexpressAffiliateOrderGetAPIResponse.go | 27 + .../AliexpressAffiliateOrderGetResponse.go | 27 - .../AliexpressAffiliateOrderListAPIRequest.go | 150 ++ ...AliexpressAffiliateOrderListAPIResponse.go | 27 + .../AliexpressAffiliateOrderListResponse.go | 27 - ...ressAffiliateOrderListbyindexAPIRequest.go | 136 ++ ...essAffiliateOrderListbyindexAPIResponse.go | 27 + ...xpressAffiliateOrderListbyindexResponse.go | 27 - ...ogisticsBuyerFreightCalculateAPIRequest.go | 52 + ...gisticsBuyerFreightCalculateAPIResponse.go | 27 + ...sLogisticsBuyerFreightCalculateResponse.go | 27 - ...sLogisticsDsTrackinginfoQueryAPIRequest.go | 108 + ...LogisticsDsTrackinginfoQueryAPIResponse.go | 33 + ...essLogisticsDsTrackinginfoQueryResponse.go | 33 - ...ressOfferDsProductSimplequeryAPIRequest.go | 80 + ...essOfferDsProductSimplequeryAPIResponse.go | 33 + ...xpressOfferDsProductSimplequeryResponse.go | 33 - ...ndaeproductbyidfordropshipperAPIRequest.go | 80 + ...daeproductbyidfordropshipperAPIResponse.go | 27 + ...FindaeproductbyidfordropshipperResponse.go | 27 - .../AliexpressTradeBuyPlaceorderAPIRequest.go | 52 + ...AliexpressTradeBuyPlaceorderAPIResponse.go | 27 + .../AliexpressTradeBuyPlaceorderResponse.go | 27 - .../AliexpressTradeDsOrderGetAPIRequest.go | 52 + .../AliexpressTradeDsOrderGetAPIResponse.go | 27 + .../AliexpressTradeDsOrderGetResponse.go | 27 - ...essSolutionBatchProductDeleteAPIRequest.go | 52 + ...ssSolutionBatchProductDeleteAPIResponse.go | 25 + ...pressSolutionBatchProductDeleteResponse.go | 25 - ...onBatchProductInventoryUpdateAPIRequest.go | 52 + ...nBatchProductInventoryUpdateAPIResponse.go | 35 + ...tionBatchProductInventoryUpdateResponse.go | 35 - ...lutionBatchProductPriceUpdateAPIRequest.go | 52 + ...utionBatchProductPriceUpdateAPIResponse.go | 35 + ...SolutionBatchProductPriceUpdateResponse.go | 35 - ...expressSolutionFeedInvalidateAPIRequest.go | 52 + ...xpressSolutionFeedInvalidateAPIResponse.go | 31 + ...liexpressSolutionFeedInvalidateResponse.go | 31 - ...AliexpressSolutionFeedListGetAPIRequest.go | 122 ++ ...liexpressSolutionFeedListGetAPIResponse.go | 35 + .../AliexpressSolutionFeedListGetResponse.go | 35 - .../AliexpressSolutionFeedQueryAPIRequest.go | 52 + .../AliexpressSolutionFeedQueryAPIResponse.go | 33 + .../AliexpressSolutionFeedQueryResponse.go | 33 - .../AliexpressSolutionFeedSubmitAPIRequest.go | 66 + ...AliexpressSolutionFeedSubmitAPIResponse.go | 27 + .../AliexpressSolutionFeedSubmitResponse.go | 27 - ...RmaReverselogisticStateUpdateAPIRequest.go | 52 + ...maReverselogisticStateUpdateAPIResponse.go | 29 + ...erRmaReverselogisticStateUpdateResponse.go | 29 - ...rselogisticTrackinginfoCreateAPIRequest.go | 52 + ...selogisticTrackinginfoCreateAPIResponse.go | 29 + ...verselogisticTrackinginfoCreateResponse.go | 29 - ...ssuePartnerRmaScreeningCreateAPIRequest.go | 52 + ...suePartnerRmaScreeningCreateAPIResponse.go | 29 + ...nIssuePartnerRmaScreeningCreateResponse.go | 29 - ...ionIssuePartnerRmaStateUpdateAPIRequest.go | 52 + ...onIssuePartnerRmaStateUpdateAPIResponse.go | 29 + ...utionIssuePartnerRmaStateUpdateResponse.go | 29 - ...essSolutionMerchantProfileGetAPIRequest.go | 38 + ...ssSolutionMerchantProfileGetAPIResponse.go | 39 + ...pressSolutionMerchantProfileGetResponse.go | 39 - ...liexpressSolutionOrderFulfillAPIRequest.go | 122 ++ ...iexpressSolutionOrderFulfillAPIResponse.go | 27 + .../AliexpressSolutionOrderFulfillResponse.go | 27 - .../AliexpressSolutionOrderGetAPIRequest.go | 52 + .../AliexpressSolutionOrderGetAPIResponse.go | 27 + .../AliexpressSolutionOrderGetResponse.go | 27 - ...liexpressSolutionOrderInfoGetAPIRequest.go | 52 + ...iexpressSolutionOrderInfoGetAPIResponse.go | 27 + .../AliexpressSolutionOrderInfoGetResponse.go | 27 - ...ssSolutionOrderReceiptinfoGetAPIRequest.go | 52 + ...sSolutionOrderReceiptinfoGetAPIResponse.go | 27 + ...ressSolutionOrderReceiptinfoGetResponse.go | 27 - ...AliexpressSolutionProductEditAPIRequest.go | 52 + ...liexpressSolutionProductEditAPIResponse.go | 27 + .../AliexpressSolutionProductEditResponse.go | 27 - ...expressSolutionProductInfoGetAPIRequest.go | 52 + ...xpressSolutionProductInfoGetAPIResponse.go | 27 + ...liexpressSolutionProductInfoGetResponse.go | 27 - ...expressSolutionProductListGetAPIRequest.go | 52 + ...xpressSolutionProductListGetAPIResponse.go | 27 + ...liexpressSolutionProductListGetResponse.go | 27 - ...AliexpressSolutionProductPostAPIRequest.go | 52 + ...liexpressSolutionProductPostAPIResponse.go | 27 + .../AliexpressSolutionProductPostResponse.go | 27 - ...pressSolutionProductSchemaGetAPIRequest.go | 52 + ...ressSolutionProductSchemaGetAPIResponse.go | 27 + ...expressSolutionProductSchemaGetResponse.go | 27 - ...lutionSchemaProductFullUpdateAPIRequest.go | 52 + ...utionSchemaProductFullUpdateAPIResponse.go | 27 + ...SolutionSchemaProductFullUpdateResponse.go | 27 - ...tionSchemaProductInstancePostAPIRequest.go | 52 + ...ionSchemaProductInstancePostAPIResponse.go | 27 + ...lutionSchemaProductInstancePostResponse.go | 27 - ...lutionSellerCategoryTreeQueryAPIRequest.go | 66 + ...utionSellerCategoryTreeQueryAPIResponse.go | 29 + ...SolutionSellerCategoryTreeQueryResponse.go | 29 - ...ressSolutionSkuAttributeQueryAPIRequest.go | 52 + ...essSolutionSkuAttributeQueryAPIResponse.go | 27 + ...xpressSolutionSkuAttributeQueryResponse.go | 27 - ...xpressInteractiveTaskCompleteAPIRequest.go | 66 + ...pressInteractiveTaskCompleteAPIResponse.go | 27 + ...iexpressInteractiveTaskCompleteResponse.go | 27 - ...sInteractiveTaskDeliveryQueryAPIRequest.go | 52 + ...InteractiveTaskDeliveryQueryAPIResponse.go | 31 + ...essInteractiveTaskDeliveryQueryResponse.go | 31 - ...iexpressAffiliateLinkGenerateAPIRequest.go | 94 + ...expressAffiliateLinkGenerateAPIResponse.go | 27 + ...AliexpressAffiliateLinkGenerateResponse.go | 27 - ...ssUsergrowthRecommendItemsGetAPIRequest.go | 136 ++ ...sUsergrowthRecommendItemsGetAPIResponse.go | 27 + ...ressUsergrowthRecommendItemsGetResponse.go | 27 - ...pressUsergrowthSearchItemsGetAPIRequest.go | 136 ++ ...ressUsergrowthSearchItemsGetAPIResponse.go | 27 + ...expressUsergrowthSearchItemsGetResponse.go | 27 - ...AlibabaAiArOpenPlatformDetectAPIRequest.go | 108 + ...libabaAiArOpenPlatformDetectAPIResponse.go | 27 + .../AlibabaAiArOpenPlatformDetectResponse.go | 27 - .../AlibabaAiArServiceDetectAPIRequest.go | 108 + .../AlibabaAiArServiceDetectAPIResponse.go | 27 + .../aiar/AlibabaAiArServiceDetectResponse.go | 27 - .../AlibabaAiArTmjlAppDetectAPIRequest.go | 108 + .../AlibabaAiArTmjlAppDetectAPIResponse.go | 27 + .../aiar/AlibabaAiArTmjlAppDetectResponse.go | 27 - ...AlicomExchangeCreatebymixnickAPIRequest.go | 52 + ...licomExchangeCreatebymixnickAPIResponse.go | 27 + ...baAlicomExchangeCreatebymixnickResponse.go | 27 - ...babaAlicomOrderExchangeCreateAPIRequest.go | 52 + ...abaAlicomOrderExchangeCreateAPIResponse.go | 27 + ...libabaAlicomOrderExchangeCreateResponse.go | 27 - ...AlicomOrderPreauthorizeCreateAPIRequest.go | 52 + ...licomOrderPreauthorizeCreateAPIResponse.go | 27 + ...baAlicomOrderPreauthorizeCreateResponse.go | 27 - ...mOrderPreauthorizeFulfillmentAPIRequest.go | 52 + ...OrderPreauthorizeFulfillmentAPIResponse.go | 27 + ...comOrderPreauthorizeFulfillmentResponse.go | 27 - ...rPreauthorizeQueryFulfillmentAPIRequest.go | 52 + ...PreauthorizeQueryFulfillmentAPIResponse.go | 27 + ...derPreauthorizeQueryFulfillmentResponse.go | 27 - ...comOrderPreauthorizeQueryFundAPIRequest.go | 52 + ...omOrderPreauthorizeQueryFundAPIResponse.go | 27 + ...licomOrderPreauthorizeQueryFundResponse.go | 27 - ...icomVtOpentradeGetproductinfoAPIRequest.go | 66 + ...comVtOpentradeGetproductinfoAPIResponse.go | 27 + ...AlicomVtOpentradeGetproductinfoResponse.go | 27 - ...AlicomWttOpentradeCreateorderAPIRequest.go | 52 + ...licomWttOpentradeCreateorderAPIResponse.go | 27 + ...baAlicomWttOpentradeCreateorderResponse.go | 27 - ...comWttOpentradeGetgiftdetailsAPIRequest.go | 52 + ...omWttOpentradeGetgiftdetailsAPIResponse.go | 27 + ...licomWttOpentradeGetgiftdetailsResponse.go | 27 - ...comWttOpentradeGetproductinfoAPIRequest.go | 66 + ...omWttOpentradeGetproductinfoAPIResponse.go | 27 + ...licomWttOpentradeGetproductinfoResponse.go | 27 - ...abaAliqinAxbVendorCallControlAPIRequest.go | 52 + ...baAliqinAxbVendorCallControlAPIResponse.go | 27 + ...liqinAxbVendorExceptionNoSyncAPIRequest.go | 94 + ...iqinAxbVendorExceptionNoSyncAPIResponse.go | 27 + ...ibabaAliqinAxbVendorHeartBeatAPIRequest.go | 66 + ...babaAliqinAxbVendorHeartBeatAPIResponse.go | 27 + ...liqinAxbVendorPushCallReleaseAPIRequest.go | 52 + ...iqinAxbVendorPushCallReleaseAPIResponse.go | 27 + ...baAliqinAxbVendorSmsInterceptAPIRequest.go | 52 + ...aAliqinAxbVendorSmsInterceptAPIResponse.go | 27 + ...AlibabaAliqinFcVoiceGetdetailAPIRequest.go | 80 + ...libabaAliqinFcVoiceGetdetailAPIResponse.go | 33 + .../AlibabaAliqinFcVoiceGetdetailResponse.go | 33 - ...abaAliqinFcVoiceNumCancelcallAPIRequest.go | 52 + ...baAliqinFcVoiceNumCancelcallAPIResponse.go | 27 + ...ibabaAliqinFcVoiceNumCancelcallResponse.go | 27 - ...babaAliqinFcVoiceRecordGeturlAPIRequest.go | 52 + ...abaAliqinFcVoiceRecordGeturlAPIResponse.go | 27 + ...libabaAliqinFcVoiceRecordGeturlResponse.go | 27 - ...nFlowAlipayIsbindingtbaccountAPIRequest.go | 52 + ...FlowAlipayIsbindingtbaccountAPIResponse.go | 33 + ...qinFlowAlipayIsbindingtbaccountResponse.go | 33 - ...libabaAliqinFlowAlipayPublishAPIRequest.go | 94 + ...ibabaAliqinFlowAlipayPublishAPIResponse.go | 33 + .../AlibabaAliqinFlowAlipayPublishResponse.go | 33 - ...babaAliqinFlowCobrandcardSysnAPIRequest.go | 94 + ...abaAliqinFlowCobrandcardSysnAPIResponse.go | 33 + ...libabaAliqinFlowCobrandcardSysnResponse.go | 33 - .../AlibabaAliqinFlowPublishAPIRequest.go | 108 + .../AlibabaAliqinFlowPublishAPIResponse.go | 27 + .../AlibabaAliqinFlowPublishResponse.go | 27 - ...AlibabaAliqinFlowWalletChargeAPIRequest.go | 108 + ...libabaAliqinFlowWalletChargeAPIResponse.go | 27 + .../AlibabaAliqinFlowWalletChargeResponse.go | 27 - ...abaAliqinFlowWalletChargeRuleAPIRequest.go | 108 + ...baAliqinFlowWalletChargeRuleAPIResponse.go | 27 + ...ibabaAliqinFlowWalletChargeRuleResponse.go | 27 - ...libabaAliqinFlowWalletConsumeAPIRequest.go | 94 + ...ibabaAliqinFlowWalletConsumeAPIResponse.go | 27 + .../AlibabaAliqinFlowWalletConsumeResponse.go | 27 - .../AlibabaAliqinFlowWalletGradeAPIRequest.go | 52 + ...AlibabaAliqinFlowWalletGradeAPIResponse.go | 27 + .../AlibabaAliqinFlowWalletGradeResponse.go | 27 - ...baAliqinFlowWalletQueryChargeAPIRequest.go | 66 + ...aAliqinFlowWalletQueryChargeAPIResponse.go | 27 + ...babaAliqinFlowWalletQueryChargeResponse.go | 27 - ...ibabaAliqinFlowWalletSendFlowAPIRequest.go | 122 ++ ...babaAliqinFlowWalletSendFlowAPIResponse.go | 27 + ...AlibabaAliqinFlowWalletSendFlowResponse.go | 27 - .../AlibabaAliqinFlowWalletSignAPIRequest.go | 52 + .../AlibabaAliqinFlowWalletSignAPIResponse.go | 27 + .../AlibabaAliqinFlowWalletSignResponse.go | 27 - ...ibabaAliqinOfflineCustomerAddAPIRequest.go | 192 ++ ...babaAliqinOfflineCustomerAddAPIResponse.go | 27 + ...AlibabaAliqinOfflineCustomerAddResponse.go | 27 - ...AliqinTaNumberSinglecallbyttsAPIRequest.go | 94 + ...liqinTaNumberSinglecallbyttsAPIResponse.go | 27 + ...baAliqinTaNumberSinglecallbyttsResponse.go | 27 - ...iqinTaNumberSinglecallbyvoiceAPIRequest.go | 94 + ...qinTaNumberSinglecallbyvoiceAPIResponse.go | 27 + ...AliqinTaNumberSinglecallbyvoiceResponse.go | 27 - .../AlibabaAliqinTaSmsNumQueryAPIRequest.go | 108 + .../AlibabaAliqinTaSmsNumQueryAPIResponse.go | 35 + .../AlibabaAliqinTaSmsNumQueryResponse.go | 35 - .../AlibabaAliqinTaSmsNumSendAPIRequest.go | 150 ++ .../AlibabaAliqinTaSmsNumSendAPIResponse.go | 27 + .../AlibabaAliqinTaSmsNumSendResponse.go | 27 - ...abaAliqinTaVoiceNumDoublecallAPIRequest.go | 122 ++ ...baAliqinTaVoiceNumDoublecallAPIResponse.go | 27 + ...ibabaAliqinTaVoiceNumDoublecallResponse.go | 27 - ...babaAliqinTccTradeIdentityGetAPIRequest.go | 66 + ...abaAliqinTccTradeIdentityGetAPIResponse.go | 27 + ...libabaAliqinTccTradeIdentityGetResponse.go | 27 - ...tjOrderRealnamecardInfoSubmitAPIRequest.go | 66 + ...jOrderRealnamecardInfoSubmitAPIResponse.go | 27 + ...litjOrderRealnamecardInfoSubmitResponse.go | 27 - ...libabaBaseOrderSupplierNotifyAPIRequest.go | 52 + ...ibabaBaseOrderSupplierNotifyAPIResponse.go | 27 + .../AlibabaBaseOrderSupplierNotifyResponse.go | 27 - .../AlibabaChongzhiQueryecardsAPIRequest.go | 66 + .../AlibabaChongzhiQueryecardsAPIResponse.go | 33 + .../AlibabaChongzhiQueryecardsResponse.go | 33 - .../AlibabaChongzhiQueryflowAPIRequest.go | 66 + .../AlibabaChongzhiQueryflowAPIResponse.go | 35 + .../AlibabaChongzhiQueryflowResponse.go | 35 - ...lecomZhimaOrdernotifyCallbackAPIRequest.go | 52 + ...ecomZhimaOrdernotifyCallbackAPIResponse.go | 27 + ...TelecomZhimaOrdernotifyCallbackResponse.go | 27 - ...aTianjiDistributorOrderSubmitAPIRequest.go | 80 + ...TianjiDistributorOrderSubmitAPIResponse.go | 27 + ...abaTianjiDistributorOrderSubmitResponse.go | 27 - ...baTianjiSupplierOrderDeliveryAPIRequest.go | 52 + ...aTianjiSupplierOrderDeliveryAPIResponse.go | 27 + ...babaTianjiSupplierOrderDeliveryResponse.go | 27 - ...ibabaTianjiSupplierOrderQueryAPIRequest.go | 52 + ...babaTianjiSupplierOrderQueryAPIResponse.go | 29 + ...AlibabaTianjiSupplierOrderQueryResponse.go | 29 - ...babaTianjiSupplierOrderResultAPIRequest.go | 52 + ...abaTianjiSupplierOrderResultAPIResponse.go | 27 + ...libabaTianjiSupplierOrderResultResponse.go | 27 - .../AlibabaWtCifCoopOsstokenGetAPIRequest.go | 80 + .../AlibabaWtCifCoopOsstokenGetAPIResponse.go | 27 + .../AlibabaWtCifCoopOsstokenGetResponse.go | 27 - ...derExchangePartnerChecktbuserAPIRequest.go | 52 + ...erExchangePartnerChecktbuserAPIResponse.go | 33 + ...OrderExchangePartnerChecktbuserResponse.go | 33 - ...ttOfflineRecordQueryagentinfoAPIRequest.go | 66 + ...tOfflineRecordQueryagentinfoAPIResponse.go | 27 + ...aWttOfflineRecordQueryagentinfoResponse.go | 27 - ...babaWttOrderContractSubscribeAPIRequest.go | 52 + ...abaWttOrderContractSubscribeAPIResponse.go | 27 + ...libabaWttOrderContractSubscribeResponse.go | 27 - ...ibabaWttUserRegioninfoByipGetAPIRequest.go | 52 + ...babaWttUserRegioninfoByipGetAPIResponse.go | 27 + ...AlibabaWttUserRegioninfoByipGetResponse.go | 27 - ...baoWtTradeOrderResultcallbackAPIRequest.go | 52 + ...aoWtTradeOrderResultcallbackAPIResponse.go | 27 + ...aobaoWtTradeOrderResultcallbackResponse.go | 27 - ...baAlihealthAlidocDrugStoreAddAPIRequest.go | 52 + ...aAlihealthAlidocDrugStoreAddAPIResponse.go | 31 + ...babaAlihealthAlidocDrugStoreAddResponse.go | 31 - ...lihealthAlidocDrugStoreUpdateAPIRequest.go | 52 + ...ihealthAlidocDrugStoreUpdateAPIResponse.go | 31 + ...aAlihealthAlidocDrugStoreUpdateResponse.go | 31 - ...hOutflowFrequencySaveorupdateAPIRequest.go | 52 + ...OutflowFrequencySaveorupdateAPIResponse.go | 27 + ...lthOutflowFrequencySaveorupdateResponse.go | 27 - ...AlihealthRxPrescriptionDetailAPIRequest.go | 52 + ...lihealthRxPrescriptionDetailAPIResponse.go | 27 + ...baAlihealthRxPrescriptionDetailResponse.go | 27 - .../AliexpressFeedPostPublishAPIRequest.go | 52 + .../AliexpressFeedPostPublishAPIResponse.go | 27 + ...ssSocialInsDirectresultUpdateAPIRequest.go | 94 + ...sSocialInsDirectresultUpdateAPIResponse.go | 33 + ...ressSocialInsDirectresultUpdateResponse.go | 33 - ...essTaxationCalculateOpenQueryAPIRequest.go | 52 + ...ssTaxationCalculateOpenQueryAPIResponse.go | 27 + ...pressTaxationCalculateOpenQueryResponse.go | 27 - ...xpressTaxationPlatformOpenGetAPIRequest.go | 38 + ...pressTaxationPlatformOpenGetAPIResponse.go | 27 + ...iexpressTaxationPlatformOpenGetResponse.go | 27 - ...AliexpressTradeOrderOpenCheckAPIRequest.go | 66 + ...liexpressTradeOrderOpenCheckAPIResponse.go | 27 + .../AliexpressTradeOrderOpenCheckResponse.go | 27 - ...AliexpressTradeOrderOpenQueryAPIRequest.go | 108 + ...liexpressTradeOrderOpenQueryAPIResponse.go | 27 + .../AliexpressTradeOrderOpenQueryResponse.go | 27 - ...abaAilabsAligenieDeviceUnbindAPIRequest.go | 94 + ...baAilabsAligenieDeviceUnbindAPIResponse.go | 27 + ...ibabaAilabsAligenieDeviceUnbindResponse.go | 27 - ...aAlihealthPrescriptionAuthGetAPIRequest.go | 52 + ...AlihealthPrescriptionAuthGetAPIResponse.go | 27 + ...abaAlihealthPrescriptionAuthGetResponse.go | 27 - ...AlihealthBookingReserveCancelAPIRequest.go | 52 + ...lihealthBookingReserveCancelAPIResponse.go | 27 + ...baAlihealthBookingReserveCancelResponse.go | 27 - ...lihealthBookingReserveCheckinAPIRequest.go | 52 + ...ihealthBookingReserveCheckinAPIResponse.go | 27 + ...aAlihealthBookingReserveCheckinResponse.go | 27 - ...lihealthBookingReserveConfirmAPIRequest.go | 52 + ...ihealthBookingReserveConfirmAPIResponse.go | 27 + ...aAlihealthBookingReserveConfirmResponse.go | 27 - ...AlihealthBookingReserveModifyAPIRequest.go | 52 + ...lihealthBookingReserveModifyAPIResponse.go | 27 + ...baAlihealthBookingReserveModifyResponse.go | 27 - ...baAlihealthBookingReserveRiseAPIRequest.go | 52 + ...aAlihealthBookingReserveRiseAPIResponse.go | 27 + ...babaAlihealthBookingReserveRiseResponse.go | 27 - ...aAlihealthBookingReserveTreatAPIRequest.go | 52 + ...AlihealthBookingReserveTreatAPIResponse.go | 27 + ...abaAlihealthBookingReserveTreatResponse.go | 27 - ...AlihealthDentalBindAuditQueryAPIRequest.go | 52 + ...lihealthDentalBindAuditQueryAPIResponse.go | 27 + ...baAlihealthDentalBindAuditQueryResponse.go | 27 - ...libabaAlihealthDentalItemBindAPIRequest.go | 66 + ...ibabaAlihealthDentalItemBindAPIResponse.go | 27 + .../AlibabaAlihealthDentalItemBindResponse.go | 27 - ...libabaAlihealthDentalItemListAPIRequest.go | 52 + ...ibabaAlihealthDentalItemListAPIResponse.go | 27 + .../AlibabaAlihealthDentalItemListResponse.go | 27 - ...babaAlihealthDentalItemUnbindAPIRequest.go | 66 + ...abaAlihealthDentalItemUnbindAPIResponse.go | 27 + ...libabaAlihealthDentalItemUnbindResponse.go | 27 - ...AlihealthDentalStatementQueryAPIRequest.go | 66 + ...lihealthDentalStatementQueryAPIResponse.go | 27 + ...baAlihealthDentalStatementQueryResponse.go | 27 - ...lihealthDentalStoreAuditQueryAPIRequest.go | 52 + ...ihealthDentalStoreAuditQueryAPIResponse.go | 27 + ...aAlihealthDentalStoreAuditQueryResponse.go | 27 - ...althDentalStoreInsertorupdateAPIRequest.go | 52 + ...lthDentalStoreInsertorupdateAPIResponse.go | 27 + ...healthDentalStoreInsertorupdateResponse.go | 27 - ...alStoreInvisibleConsumeUpdateAPIRequest.go | 52 + ...lStoreInvisibleConsumeUpdateAPIResponse.go | 27 + ...ntalStoreInvisibleConsumeUpdateResponse.go | 27 - ...lthDocbaseUserinfoAlipayidGetAPIRequest.go | 66 + ...thDocbaseUserinfoAlipayidGetAPIResponse.go | 27 + ...ealthDocbaseUserinfoAlipayidGetResponse.go | 27 - .../AlibabaAlihealthDruguseQueryAPIRequest.go | 52 + ...AlibabaAlihealthDruguseQueryAPIResponse.go | 27 + .../AlibabaAlihealthDruguseQueryResponse.go | 27 - ...lihealthExaminationStockQueryAPIRequest.go | 108 + ...ihealthExaminationStockQueryAPIResponse.go | 33 + ...aAlihealthExaminationStockQueryResponse.go | 33 - ...lihealthMedicalDepartmentSyncAPIRequest.go | 52 + ...ihealthMedicalDepartmentSyncAPIResponse.go | 27 + ...aAlihealthMedicalDepartmentSyncResponse.go | 27 - ...abaAlihealthMedicalDoctorSyncAPIRequest.go | 52 + ...baAlihealthMedicalDoctorSyncAPIResponse.go | 27 + ...ibabaAlihealthMedicalDoctorSyncResponse.go | 27 - ...aAlihealthMedicalHospitalSyncAPIRequest.go | 52 + ...AlihealthMedicalHospitalSyncAPIResponse.go | 27 + ...abaAlihealthMedicalHospitalSyncResponse.go | 27 - ...ealthMedicalRegisterWeiyiSyncAPIRequest.go | 52 + ...althMedicalRegisterWeiyiSyncAPIResponse.go | 27 + ...ihealthMedicalRegisterWeiyiSyncResponse.go | 27 - ...healthMedicalRegistrationSyncAPIRequest.go | 52 + ...ealthMedicalRegistrationSyncAPIResponse.go | 27 + ...lihealthMedicalRegistrationSyncResponse.go | 27 - ...lthMedicalRegistrationSyncnewAPIRequest.go | 52 + ...thMedicalRegistrationSyncnewAPIResponse.go | 27 + ...ealthMedicalRegistrationSyncnewResponse.go | 27 - ...baAlihealthMsAreaProvinceListAPIRequest.go | 38 + ...aAlihealthMsAreaProvinceListAPIResponse.go | 27 + ...babaAlihealthMsAreaProvinceListResponse.go | 27 - ...ihealthNocovAlldiseaseinfoGetAPIRequest.go | 80 + ...healthNocovAlldiseaseinfoGetAPIResponse.go | 33 + ...AlihealthNocovAlldiseaseinfoGetResponse.go | 33 - ...hReserveDentalBindshopanditemAPIRequest.go | 52 + ...ReserveDentalBindshopanditemAPIResponse.go | 27 + ...lthReserveDentalBindshopanditemResponse.go | 27 - ...lihealthReserveDentalMarkitemAPIRequest.go | 66 + ...ihealthReserveDentalMarkitemAPIResponse.go | 27 + ...aAlihealthReserveDentalMarkitemResponse.go | 27 - ...lthReserveDentalModifyrestimeAPIRequest.go | 66 + ...thReserveDentalModifyrestimeAPIResponse.go | 27 + ...ealthReserveDentalModifyrestimeResponse.go | 27 - ...thReserveDentalStoresanditemsAPIRequest.go | 52 + ...hReserveDentalStoresanditemsAPIResponse.go | 27 + ...althReserveDentalStoresanditemsResponse.go | 27 - ...healthReserveDentalUnbinditemAPIRequest.go | 66 + ...ealthReserveDentalUnbinditemAPIResponse.go | 27 + ...lihealthReserveDentalUnbinditemResponse.go | 27 - ...ihealthStoreCertificateCreateAPIRequest.go | 94 + ...healthStoreCertificateCreateAPIResponse.go | 27 + ...AlihealthStoreCertificateCreateResponse.go | 27 - ...thTracecodeplatformCodeActiveAPIRequest.go | 94 + ...hTracecodeplatformCodeActiveAPIResponse.go | 27 + ...althTracecodeplatformCodeActiveResponse.go | 27 - ...hTracecodeplatformCodeEntscanAPIRequest.go | 66 + ...TracecodeplatformCodeEntscanAPIResponse.go | 27 + ...lthTracecodeplatformCodeEntscanResponse.go | 27 - ...acecodesellerBillResultSearchAPIRequest.go | 150 ++ ...cecodesellerBillResultSearchAPIResponse.go | 27 + ...TracecodesellerBillResultSearchResponse.go | 27 - ...althTracecodesellerBillUploadAPIRequest.go | 150 ++ ...lthTracecodesellerBillUploadAPIResponse.go | 31 + ...healthTracecodesellerBillUploadResponse.go | 31 - ...hTracecodesellerChannelSearchAPIRequest.go | 108 + ...TracecodesellerChannelSearchAPIResponse.go | 27 + ...lthTracecodesellerChannelSearchResponse.go | 27 - ...althTracecodesellerCodeActiveAPIRequest.go | 122 ++ ...lthTracecodesellerCodeActiveAPIResponse.go | 27 + ...healthTracecodesellerCodeActiveResponse.go | 27 - ...lerCodeRelationCodeantiactiveAPIRequest.go | 80 + ...erCodeRelationCodeantiactiveAPIResponse.go | 31 + ...ellerCodeRelationCodeantiactiveResponse.go | 31 - ...desellerCodeSingleCodereplaceAPIRequest.go | 80 + ...esellerCodeSingleCodereplaceAPIResponse.go | 31 + ...codesellerCodeSingleCodereplaceResponse.go | 31 - ...ealthTracecodesellerEntSearchAPIRequest.go | 80 + ...althTracecodesellerEntSearchAPIResponse.go | 27 + ...ihealthTracecodesellerEntSearchResponse.go | 27 - ...hTracecodesellerProductSearchAPIRequest.go | 94 + ...TracecodesellerProductSearchAPIResponse.go | 27 + ...lthTracecodesellerProductSearchResponse.go | 27 - ...racecodesellerWarehouseSearchAPIRequest.go | 94 + ...acecodesellerWarehouseSearchAPIResponse.go | 27 + ...hTracecodesellerWarehouseSearchResponse.go | 27 - ...aFmhealthPressureReportCreateAPIRequest.go | 136 ++ ...FmhealthPressureReportCreateAPIResponse.go | 33 + ...abaFmhealthPressureReportCreateResponse.go | 33 - ...hWeightLossplanSyncweightdataAPIRequest.go | 80 + ...WeightLossplanSyncweightdataAPIResponse.go | 29 + ...lthWeightLossplanSyncweightdataResponse.go | 29 - .../AlibabaHealthNrCepOrderQueryAPIRequest.go | 52 + ...AlibabaHealthNrCepOrderQueryAPIResponse.go | 27 + .../AlibabaHealthNrCepOrderQueryResponse.go | 27 - ...babaHealthNrCepOutorderUploadAPIRequest.go | 52 + ...abaHealthNrCepOutorderUploadAPIResponse.go | 27 + ...libabaHealthNrCepOutorderUploadResponse.go | 27 - ...ealthNrCepWarstqtyBatchupdateAPIRequest.go | 52 + ...althNrCepWarstqtyBatchupdateAPIResponse.go | 27 + ...aHealthNrCepWarstqtyBatchupdateResponse.go | 27 - .../TaobaoDrugPriceBatchUpdateAPIRequest.go | 66 + .../TaobaoDrugPriceBatchUpdateAPIResponse.go | 27 + .../TaobaoDrugPriceBatchUpdateResponse.go | 27 - .../TaobaoDrugPriceUpdateAPIRequest.go | 80 + .../TaobaoDrugPriceUpdateAPIResponse.go | 27 + .../TaobaoDrugPriceUpdateResponse.go | 27 - ...TaobaoDrugQuantityBatchUpdateAPIRequest.go | 66 + ...aobaoDrugQuantityBatchUpdateAPIResponse.go | 27 + .../TaobaoDrugQuantityBatchUpdateResponse.go | 27 - .../TaobaoDrugQuantityUpdateAPIRequest.go | 80 + .../TaobaoDrugQuantityUpdateAPIResponse.go | 27 + .../TaobaoDrugQuantityUpdateResponse.go | 27 - .../TaobaoDrugShopListAPIRequest.go | 94 + .../TaobaoDrugShopListAPIResponse.go | 27 + .../alihealth2/TaobaoDrugShopListResponse.go | 27 - .../TaobaoTradeDrugConfirmorderAPIRequest.go | 94 + .../TaobaoTradeDrugConfirmorderAPIResponse.go | 27 + .../TaobaoTradeDrugConfirmorderResponse.go | 27 - .../TaobaoTradeDrugGetAPIRequest.go | 80 + .../TaobaoTradeDrugGetAPIResponse.go | 27 + .../alihealth2/TaobaoTradeDrugGetResponse.go | 27 - .../TaobaoTradeDrugOrderGetAPIRequest.go | 52 + .../TaobaoTradeDrugOrderGetAPIResponse.go | 27 + .../TaobaoTradeDrugOrderGetResponse.go | 27 - .../TaobaoTradeDrugOrdersGetAPIRequest.go | 136 ++ .../TaobaoTradeDrugOrdersGetAPIResponse.go | 27 + .../TaobaoTradeDrugOrdersGetResponse.go | 27 - .../TaobaoTradeDrugRefuseorderAPIRequest.go | 66 + .../TaobaoTradeDrugRefuseorderAPIResponse.go | 27 + .../TaobaoTradeDrugRefuseorderResponse.go | 27 - ...healthAlgoMedicationSafetyGetAPIRequest.go | 52 + ...ealthAlgoMedicationSafetyGetAPIResponse.go | 27 + ...lihealthAlgoMedicationSafetyGetResponse.go | 27 - ...ationReserveCertificateNotifyAPIRequest.go | 108 + ...tionReserveCertificateNotifyAPIResponse.go | 27 + ...inationReserveCertificateNotifyResponse.go | 27 - ...althAlipaypfmAssessResultSyncAPIRequest.go | 94 + ...lthAlipaypfmAssessResultSyncAPIResponse.go | 27 + ...healthAlipaypfmAssessResultSyncResponse.go | 27 - ...ihealthAlipaypfmConsumeRecordAPIRequest.go | 80 + ...healthAlipaypfmConsumeRecordAPIResponse.go | 27 + ...AlihealthAlipaypfmConsumeRecordResponse.go | 27 - ...aAlihealthAlipaypfmDietRecordAPIRequest.go | 80 + ...AlihealthAlipaypfmDietRecordAPIResponse.go | 27 + ...abaAlihealthAlipaypfmDietRecordResponse.go | 27 - ...baAlihealthAlipaypfmOrderSyncAPIRequest.go | 108 + ...aAlihealthAlipaypfmOrderSyncAPIResponse.go | 27 + ...babaAlihealthAlipaypfmOrderSyncResponse.go | 27 - ...ihealthAlipaypfmUseridDecryptAPIRequest.go | 66 + ...healthAlipaypfmUseridDecryptAPIResponse.go | 27 + ...AlihealthAlipaypfmUseridDecryptResponse.go | 27 - ...ibabaAlihealthBabyBaseinfoGetAPIRequest.go | 66 + ...babaAlihealthBabyBaseinfoGetAPIResponse.go | 27 + ...AlibabaAlihealthBabyBaseinfoGetResponse.go | 27 - ...lihealthBabyBaseinfoOrderSyncAPIRequest.go | 136 ++ ...ihealthBabyBaseinfoOrderSyncAPIResponse.go | 29 + ...aAlihealthBabyBaseinfoOrderSyncResponse.go | 29 - ...aAlihealthBabyRemindBatchSendAPIRequest.go | 66 + ...AlihealthBabyRemindBatchSendAPIResponse.go | 27 + ...abaAlihealthBabyRemindBatchSendResponse.go | 27 - ...baAlihealthDapHuaweiCardinfosAPIRequest.go | 52 + ...aAlihealthDapHuaweiCardinfosAPIResponse.go | 27 + ...babaAlihealthDapHuaweiCardinfosResponse.go | 27 - ...healthMedicalbaseHospitalSyncAPIRequest.go | 430 ++++ ...ealthMedicalbaseHospitalSyncAPIResponse.go | 27 + ...lihealthMedicalbaseHospitalSyncResponse.go | 27 - ...AlihealthPregnancyBaseinfoGetAPIRequest.go | 52 + ...lihealthPregnancyBaseinfoGetAPIResponse.go | 27 + ...baAlihealthPregnancyBaseinfoGetResponse.go | 27 - ...abaAlihealthPregnancyDataSyncAPIRequest.go | 136 ++ ...baAlihealthPregnancyDataSyncAPIResponse.go | 29 + ...ibabaAlihealthPregnancyDataSyncResponse.go | 29 - ...lthPregnancyNavigateinfoQueryAPIRequest.go | 52 + ...thPregnancyNavigateinfoQueryAPIResponse.go | 27 + ...ealthPregnancyNavigateinfoQueryResponse.go | 27 - ...baAlihealthPregnancyPostsDataAPIRequest.go | 150 ++ ...aAlihealthPregnancyPostsDataAPIResponse.go | 29 + ...babaAlihealthPregnancyPostsDataResponse.go | 29 - ...aAlihealthPregnancyProductGetAPIRequest.go | 80 + ...AlihealthPregnancyProductGetAPIResponse.go | 27 + ...abaAlihealthPregnancyProductGetResponse.go | 27 - ...healthPregnancyTaginfoAddrankAPIRequest.go | 66 + ...ealthPregnancyTaginfoAddrankAPIResponse.go | 27 + ...lihealthPregnancyTaginfoAddrankResponse.go | 27 - ...AlihealthUicSwipefaceSyncdataAPIRequest.go | 122 ++ ...lihealthUicSwipefaceSyncdataAPIResponse.go | 31 + ...baAlihealthUicSwipefaceSyncdataResponse.go | 31 - ...ihealthUicUserinfoHealthidGetAPIRequest.go | 52 + ...healthUicUserinfoHealthidGetAPIResponse.go | 27 + ...AlihealthUicUserinfoHealthidGetResponse.go | 27 - ...ibabaAlihealthUserBaseinfoGetAPIRequest.go | 66 + ...babaAlihealthUserBaseinfoGetAPIResponse.go | 27 + ...AlibabaAlihealthUserBaseinfoGetResponse.go | 27 - ...ibabaFmhealthButlerEnergySyncAPIRequest.go | 108 + ...babaFmhealthButlerEnergySyncAPIResponse.go | 27 + ...AlibabaFmhealthButlerEnergySyncResponse.go | 27 - ...lthWeightLossplanSynclossplanAPIRequest.go | 220 ++ ...thWeightLossplanSynclossplanAPIResponse.go | 27 + ...ealthWeightLossplanSynclossplanResponse.go | 27 - ...ealthLabItemStoreRelationSyncAPIRequest.go | 80 + ...althLabItemStoreRelationSyncAPIResponse.go | 31 + ...ihealthLabItemStoreRelationSyncResponse.go | 31 - .../AlibabaAlihealthLabItemSyncAPIRequest.go | 192 ++ .../AlibabaAlihealthLabItemSyncAPIResponse.go | 31 + .../AlibabaAlihealthLabItemSyncResponse.go | 31 - ...hLabItemTbitemskuRelationSyncAPIRequest.go | 94 + ...LabItemTbitemskuRelationSyncAPIResponse.go | 31 + ...lthLabItemTbitemskuRelationSyncResponse.go | 31 - .../AlibabaAlihealthLabStoreSyncAPIRequest.go | 290 +++ ...AlibabaAlihealthLabStoreSyncAPIResponse.go | 31 + .../AlibabaAlihealthLabStoreSyncResponse.go | 31 - ...ihealthReservationOrderVerifyAPIRequest.go | 52 + ...healthReservationOrderVerifyAPIResponse.go | 31 + ...AlihealthReservationOrderVerifyResponse.go | 31 - ...althMdeerScienceDeletearticleAPIRequest.go | 52 + ...lthMdeerScienceDeletearticleAPIResponse.go | 31 + ...healthMdeerScienceDeletearticleResponse.go | 31 - ...AlihealthMdeerScienceSynVideoAPIRequest.go | 52 + ...lihealthMdeerScienceSynVideoAPIResponse.go | 31 + ...baAlihealthMdeerScienceSynVideoResponse.go | 31 - ...ihealthMdeerScienceSynarticleAPIRequest.go | 52 + ...healthMdeerScienceSynarticleAPIResponse.go | 31 + ...AlihealthMdeerScienceSynarticleResponse.go | 31 - ...libabaAlihealthMdeerVideoSyncAPIRequest.go | 332 ++++ ...ibabaAlihealthMdeerVideoSyncAPIResponse.go | 27 + .../AlibabaAlihealthMdeerVideoSyncResponse.go | 27 - ...AlihealthMedicalDoctorMsgSendAPIRequest.go | 52 + ...lihealthMedicalDoctorMsgSendAPIResponse.go | 27 + ...baAlihealthMedicalDoctorMsgSendResponse.go | 27 - ...AlihealthMedicalDoctorPublishAPIRequest.go | 52 + ...lihealthMedicalDoctorPublishAPIResponse.go | 27 + ...baAlihealthMedicalDoctorPublishResponse.go | 27 - ...aAlihealthMedicalImDataUploadAPIRequest.go | 66 + ...AlihealthMedicalImDataUploadAPIResponse.go | 27 + ...abaAlihealthMedicalImDataUploadResponse.go | 27 - ...baAlihealthMedicalItemPublishAPIRequest.go | 52 + ...aAlihealthMedicalItemPublishAPIResponse.go | 27 + ...babaAlihealthMedicalItemPublishResponse.go | 27 - ...abaAlihealthMedicalItemStatusAPIRequest.go | 52 + ...baAlihealthMedicalItemStatusAPIResponse.go | 27 + ...ibabaAlihealthMedicalItemStatusResponse.go | 27 - ...abaAlihealthMedicalOrderQueryAPIRequest.go | 52 + ...baAlihealthMedicalOrderQueryAPIResponse.go | 27 + ...ibabaAlihealthMedicalOrderQueryResponse.go | 27 - ...baAlihealthMedicalOrderRefuseAPIRequest.go | 52 + ...aAlihealthMedicalOrderRefuseAPIResponse.go | 27 + ...babaAlihealthMedicalOrderRefuseResponse.go | 27 - ...ncprescribePrescriptionDetailAPIRequest.go | 52 + ...cprescribePrescriptionDetailAPIResponse.go | 27 + ...syncprescribePrescriptionDetailResponse.go | 27 - ...ncprescribePrescriptionSearchAPIRequest.go | 52 + ...cprescribePrescriptionSearchAPIResponse.go | 27 + ...syncprescribePrescriptionSearchResponse.go | 27 - ...babaAlihealthHealthRecordHaveAPIRequest.go | 52 + ...abaAlihealthHealthRecordHaveAPIResponse.go | 27 + ...libabaAlihealthHealthRecordHaveResponse.go | 27 - ...hOutflowDiagnosisSaveorupdateAPIRequest.go | 52 + ...OutflowDiagnosisSaveorupdateAPIResponse.go | 27 + ...lthOutflowDiagnosisSaveorupdateResponse.go | 27 - ...healthOutflowDrugSaveorupdateAPIRequest.go | 52 + ...ealthOutflowDrugSaveorupdateAPIResponse.go | 27 + ...lihealthOutflowDrugSaveorupdateResponse.go | 27 - ...thOutflowDrugSupervisionQueryAPIRequest.go | 52 + ...hOutflowDrugSupervisionQueryAPIResponse.go | 27 + ...althOutflowDrugSupervisionQueryResponse.go | 27 - ...ihealthOutflowGetbyverifycodeAPIRequest.go | 52 + ...healthOutflowGetbyverifycodeAPIResponse.go | 27 + ...AlihealthOutflowGetbyverifycodeResponse.go | 27 - ...ealthOutflowOperationinfoSyncAPIRequest.go | 52 + ...althOutflowOperationinfoSyncAPIResponse.go | 27 + ...ihealthOutflowOperationinfoSyncResponse.go | 27 - ...ihealthOutflowPatientinfoSyncAPIRequest.go | 52 + ...healthOutflowPatientinfoSyncAPIResponse.go | 27 + ...AlihealthOutflowPatientinfoSyncResponse.go | 27 - ...althOutflowPrescriptionCreateAPIRequest.go | 52 + ...lthOutflowPrescriptionCreateAPIResponse.go | 27 + ...healthOutflowPrescriptionCreateResponse.go | 27 - ...lowPrescriptionHospitalVerifyAPIRequest.go | 52 + ...owPrescriptionHospitalVerifyAPIResponse.go | 27 + ...tflowPrescriptionHospitalVerifyResponse.go | 27 - ...OutflowPrescriptionSyncstatusAPIRequest.go | 52 + ...utflowPrescriptionSyncstatusAPIResponse.go | 27 + ...thOutflowPrescriptionSyncstatusResponse.go | 27 - ...althOutflowPrescriptionUpdateAPIRequest.go | 52 + ...lthOutflowPrescriptionUpdateAPIResponse.go | 27 + ...healthOutflowPrescriptionUpdateResponse.go | 27 - ...ealthOutflowUsageSaveorupdateAPIRequest.go | 52 + ...althOutflowUsageSaveorupdateAPIResponse.go | 27 + ...ihealthOutflowUsageSaveorupdateResponse.go | 27 - ...AlibabaAlihealthOutflowVerifyAPIRequest.go | 52 + ...libabaAlihealthOutflowVerifyAPIResponse.go | 27 + .../AlibabaAlihealthOutflowVerifyResponse.go | 27 - ...AlihealthOutflowVisitinfoSyncAPIRequest.go | 52 + ...lihealthOutflowVisitinfoSyncAPIResponse.go | 27 + ...baAlihealthOutflowVisitinfoSyncResponse.go | 27 - .../AlibabaAlihealthShortUrlGetAPIRequest.go | 66 + .../AlibabaAlihealthShortUrlGetAPIResponse.go | 27 + .../AlibabaAlihealthShortUrlGetResponse.go | 27 - ...abaAlihealthPwApplynodeUpdateAPIRequest.go | 52 + ...baAlihealthPwApplynodeUpdateAPIResponse.go | 29 + ...ibabaAlihealthPwApplynodeUpdateResponse.go | 29 - ...lihealthPwApplynodeUpdatenameAPIRequest.go | 52 + ...ihealthPwApplynodeUpdatenameAPIResponse.go | 29 + ...aAlihealthPwApplynodeUpdatenameResponse.go | 29 - ...lihouseNewhomeBaseLabelSubmitAPIRequest.go | 52 + ...ihouseNewhomeBaseLabelSubmitAPIResponse.go | 27 + ...aAlihouseNewhomeBaseLabelSubmitResponse.go | 27 - ...baAlihouseNewhomeBusinessSyncAPIRequest.go | 52 + ...aAlihouseNewhomeBusinessSyncAPIResponse.go | 27 + ...babaAlihouseNewhomeBusinessSyncResponse.go | 27 - ...baAlihouseNewhomeCouponSubmitAPIRequest.go | 52 + ...aAlihouseNewhomeCouponSubmitAPIResponse.go | 27 + ...babaAlihouseNewhomeCouponSubmitResponse.go | 27 - ...babaAlihouseNewhomeLayoutSyncAPIRequest.go | 52 + ...abaAlihouseNewhomeLayoutSyncAPIResponse.go | 27 + ...libabaAlihouseNewhomeLayoutSyncResponse.go | 27 - ...libabaAlihouseNewhomeLineSyncAPIRequest.go | 52 + ...ibabaAlihouseNewhomeLineSyncAPIResponse.go | 27 + .../AlibabaAlihouseNewhomeLineSyncResponse.go | 27 - ...ibabaAlihouseNewhomeMetroSyncAPIRequest.go | 52 + ...babaAlihouseNewhomeMetroSyncAPIResponse.go | 27 + ...AlibabaAlihouseNewhomeMetroSyncResponse.go | 27 - ...abaAlihouseNewhomePictureSyncAPIRequest.go | 52 + ...baAlihouseNewhomePictureSyncAPIResponse.go | 27 + ...ibabaAlihouseNewhomePictureSyncResponse.go | 27 - ...seNewhomeProjectAdviserDeleteAPIRequest.go | 52 + ...eNewhomeProjectAdviserDeleteAPIResponse.go | 27 + ...ouseNewhomeProjectAdviserDeleteResponse.go | 27 - ...seNewhomeProjectAdviserSubmitAPIRequest.go | 52 + ...eNewhomeProjectAdviserSubmitAPIResponse.go | 27 + ...ouseNewhomeProjectAdviserSubmitResponse.go | 27 - ...whomeProjectCooperationSubmitAPIRequest.go | 52 + ...homeProjectCooperationSubmitAPIResponse.go | 27 + ...NewhomeProjectCooperationSubmitResponse.go | 27 - ...seNewhomeProjectDynamicDeleteAPIRequest.go | 52 + ...eNewhomeProjectDynamicDeleteAPIResponse.go | 27 + ...ouseNewhomeProjectDynamicDeleteResponse.go | 27 - ...seNewhomeProjectDynamicSubmitAPIRequest.go | 52 + ...eNewhomeProjectDynamicSubmitAPIResponse.go | 27 + ...ouseNewhomeProjectDynamicSubmitResponse.go | 27 - ...abaAlihouseNewhomeProjectLineAPIRequest.go | 66 + ...baAlihouseNewhomeProjectLineAPIResponse.go | 27 + ...ibabaAlihouseNewhomeProjectLineResponse.go | 27 - ...ouseNewhomeProjectPhoneSubmitAPIRequest.go | 52 + ...useNewhomeProjectPhoneSubmitAPIResponse.go | 27 + ...ihouseNewhomeProjectPhoneSubmitResponse.go | 27 - ...omeProjectPresalepermitDeleteAPIRequest.go | 52 + ...meProjectPresalepermitDeleteAPIResponse.go | 27 + ...whomeProjectPresalepermitDeleteResponse.go | 27 - ...omeProjectPresalepermitSubmitAPIRequest.go | 52 + ...meProjectPresalepermitSubmitAPIResponse.go | 27 + ...whomeProjectPresalepermitSubmitResponse.go | 27 - ...baAlihouseNewhomeProjectQueryAPIRequest.go | 52 + ...aAlihouseNewhomeProjectQueryAPIResponse.go | 27 + ...babaAlihouseNewhomeProjectQueryResponse.go | 27 - ...aAlihouseNewhomeProjectSubmitAPIRequest.go | 52 + ...AlihouseNewhomeProjectSubmitAPIResponse.go | 27 + ...abaAlihouseNewhomeProjectSubmitResponse.go | 27 - ...AlihouseNewhomeRcChangestatusAPIRequest.go | 66 + ...lihouseNewhomeRcChangestatusAPIResponse.go | 27 + ...baAlihouseNewhomeRcChangestatusResponse.go | 27 - .../AlibabaAlihouseNewhomeRcSyncAPIRequest.go | 52 + ...AlibabaAlihouseNewhomeRcSyncAPIResponse.go | 27 + .../AlibabaAlihouseNewhomeRcSyncResponse.go | 27 - ...babaAlihouseNewhomeRegionSyncAPIRequest.go | 52 + ...abaAlihouseNewhomeRegionSyncAPIResponse.go | 27 + ...libabaAlihouseNewhomeRegionSyncResponse.go | 27 - ...ouseNewhomeReviewChangestatusAPIRequest.go | 66 + ...useNewhomeReviewChangestatusAPIResponse.go | 27 + ...ihouseNewhomeReviewChangestatusResponse.go | 27 - ...babaAlihouseNewhomeReviewSyncAPIRequest.go | 52 + ...abaAlihouseNewhomeReviewSyncAPIResponse.go | 27 + ...libabaAlihouseNewhomeReviewSyncResponse.go | 27 - ...houseNewhomeVideoChangestatusAPIRequest.go | 66 + ...ouseNewhomeVideoChangestatusAPIResponse.go | 27 + ...lihouseNewhomeVideoChangestatusResponse.go | 27 - ...ibabaAlihouseNewhomeVideoSyncAPIRequest.go | 52 + ...babaAlihouseNewhomeVideoSyncAPIResponse.go | 27 + ...AlibabaAlihouseNewhomeVideoSyncResponse.go | 27 - .../AlibabaAlihouseNewhomeVrSyncAPIRequest.go | 136 ++ ...AlibabaAlihouseNewhomeVrSyncAPIResponse.go | 27 + .../AlibabaAlihouseNewhomeVrSyncResponse.go | 27 - .../AlibabaAilabTbUserSkillOauthAPIRequest.go | 94 + ...AlibabaAilabTbUserSkillOauthAPIResponse.go | 29 + .../AlibabaAilabTbUserSkillOauthResponse.go | 29 - ...babaAilabUserAuthorizedCancelAPIRequest.go | 66 + ...abaAilabUserAuthorizedCancelAPIResponse.go | 31 + ...libabaAilabUserAuthorizedCancelResponse.go | 31 - ...ibabaAilabUserAuthorizedQueryAPIRequest.go | 66 + ...babaAilabUserAuthorizedQueryAPIResponse.go | 31 + ...AlibabaAilabUserAuthorizedQueryResponse.go | 31 - .../AlibabaAilabUserOpenUidGetAPIRequest.go | 66 + .../AlibabaAilabUserOpenUidGetAPIResponse.go | 31 + .../AlibabaAilabUserOpenUidGetResponse.go | 31 - .../AlibabaAilabUserProfileGetAPIRequest.go | 66 + .../AlibabaAilabUserProfileGetAPIResponse.go | 27 + .../AlibabaAilabUserProfileGetResponse.go | 27 - .../AlibabaAilabUserTokenGetAPIRequest.go | 80 + .../AlibabaAilabUserTokenGetAPIResponse.go | 31 + .../AlibabaAilabUserTokenGetResponse.go | 31 - ...labsIotDeviceListUpdateNotifyAPIRequest.go | 80 + ...absIotDeviceListUpdateNotifyAPIResponse.go | 27 + ...AilabsIotDeviceListUpdateNotifyResponse.go | 27 - ...baAilabsIotDeviceStatusUpdateAPIRequest.go | 52 + ...aAilabsIotDeviceStatusUpdateAPIResponse.go | 27 + ...babaAilabsIotDeviceStatusUpdateResponse.go | 27 - ...AilabsTmallgenieAuthDeviceGetAPIRequest.go | 80 + ...ilabsTmallgenieAuthDeviceGetAPIResponse.go | 27 + ...baAilabsTmallgenieAuthDeviceGetResponse.go | 27 - ...ilabsTmallgenieAuthDeviceListAPIRequest.go | 66 + ...labsTmallgenieAuthDeviceListAPIResponse.go | 27 + ...aAilabsTmallgenieAuthDeviceListResponse.go | 27 - ...genieAuthDeviceQrcodeActivateAPIRequest.go | 94 + ...enieAuthDeviceQrcodeActivateAPIResponse.go | 31 + ...llgenieAuthDeviceQrcodeActivateResponse.go | 31 - ...TmallgenieAuthDeviceStatusGetAPIRequest.go | 80 + ...mallgenieAuthDeviceStatusGetAPIResponse.go | 27 + ...bsTmallgenieAuthDeviceStatusGetResponse.go | 27 - ...absTmallgenieAuthDeviceUnbindAPIRequest.go | 80 + ...bsTmallgenieAuthDeviceUnbindAPIResponse.go | 27 + ...ilabsTmallgenieAuthDeviceUnbindResponse.go | 27 - ...enieAuthDeviceWithdeviceidGetAPIRequest.go | 66 + ...nieAuthDeviceWithdeviceidGetAPIResponse.go | 27 + ...lgenieAuthDeviceWithdeviceidGetResponse.go | 27 - ...baAilabsTmallgenieAuthGetcodeAPIRequest.go | 66 + ...aAilabsTmallgenieAuthGetcodeAPIResponse.go | 27 + ...babaAilabsTmallgenieAuthGetcodeResponse.go | 27 - ...aAilabsTmallgenieAuthGettokenAPIRequest.go | 80 + ...AilabsTmallgenieAuthGettokenAPIResponse.go | 29 + ...abaAilabsTmallgenieAuthGettokenResponse.go | 29 - ...baAilabsTmallgenieAuthRefreshAPIRequest.go | 52 + ...aAilabsTmallgenieAuthRefreshAPIResponse.go | 33 + ...babaAilabsTmallgenieAuthRefreshResponse.go | 33 - ...ilabsTmallgenieAuthSwitchuserAPIRequest.go | 94 + ...labsTmallgenieAuthSwitchuserAPIResponse.go | 27 + ...aAilabsTmallgenieAuthSwitchuserResponse.go | 27 - ...ilabsTmallgenieAuthTaobaoauthAPIRequest.go | 66 + ...labsTmallgenieAuthTaobaoauthAPIResponse.go | 29 + ...aAilabsTmallgenieAuthTaobaoauthResponse.go | 29 - .../AlibabaAilabsTvsDeviceListAPIRequest.go | 38 + .../AlibabaAilabsTvsDeviceListAPIResponse.go | 33 + .../AlibabaAilabsTvsDeviceListResponse.go | 33 - ...baoAilabAicloudTopHotwordsGetAPIRequest.go | 80 + ...aoAilabAicloudTopHotwordsGetAPIResponse.go | 27 + ...aobaoAilabAicloudTopHotwordsGetResponse.go | 27 - ...AilabAicloudTopHotwordsUpdateAPIRequest.go | 108 + ...ilabAicloudTopHotwordsUpdateAPIResponse.go | 27 + ...aoAilabAicloudTopHotwordsUpdateResponse.go | 27 - ...aoAilabAicloudTopSkilsListNewAPIRequest.go | 150 ++ ...oAilabAicloudTopSkilsListNewAPIResponse.go | 27 + ...obaoAilabAicloudTopSkilsListNewResponse.go | 27 - ...aobaoAlimeUserTokenAdvanceGetAPIRequest.go | 136 ++ ...obaoAlimeUserTokenAdvanceGetAPIResponse.go | 31 + .../TaobaoAlimeUserTokenAdvanceGetResponse.go | 31 - .../TaobaoAlimeUserTokenGetAPIRequest.go | 122 ++ .../TaobaoAlimeUserTokenGetAPIResponse.go | 31 + .../alime/TaobaoAlimeUserTokenGetResponse.go | 31 - .../AlibabaMemberCheckmerchantAPIRequest.go | 52 + .../AlibabaMemberCheckmerchantAPIResponse.go | 29 + .../AlibabaMemberCheckmerchantResponse.go | 29 - ...baMemberIdentityRescindfinishAPIRequest.go | 52 + ...aMemberIdentityRescindfinishAPIResponse.go | 27 + ...babaMemberIdentityRescindfinishResponse.go | 27 - ...ibabaMemberIdentitySignfinishAPIRequest.go | 52 + ...babaMemberIdentitySignfinishAPIResponse.go | 27 + ...AlibabaMemberIdentitySignfinishResponse.go | 27 - .../AlibabaMemberIdentitySyncAPIRequest.go | 52 + .../AlibabaMemberIdentitySyncAPIResponse.go | 27 + .../AlibabaMemberIdentitySyncResponse.go | 27 - .../alimember/AlibabaMemberSyncAPIRequest.go | 52 + .../alimember/AlibabaMemberSyncAPIResponse.go | 27 + model/alimember/AlibabaMemberSyncResponse.go | 27 - .../AlibabaIdleOrderMsgSendAPIRequest.go | 66 + .../AlibabaIdleOrderMsgSendAPIResponse.go | 27 + .../alimsg/AlibabaIdleOrderMsgSendResponse.go | 27 - model/alimsg/AlibabaLegMsgPostAPIRequest.go | 206 ++ model/alimsg/AlibabaLegMsgPostAPIResponse.go | 27 + model/alimsg/AlibabaLegMsgPostResponse.go | 27 - .../alink/AlibabaAlinkDeviceBindAPIRequest.go | 52 + .../AlibabaAlinkDeviceBindAPIResponse.go | 27 + model/alink/AlibabaAlinkDeviceBindResponse.go | 27 - .../AlibabaAlinkDeviceDetailGetAPIRequest.go | 52 + .../AlibabaAlinkDeviceDetailGetAPIResponse.go | 27 + .../AlibabaAlinkDeviceDetailGetResponse.go | 27 - .../AlibabaAlinkDeviceInfoUpdateAPIRequest.go | 66 + ...AlibabaAlinkDeviceInfoUpdateAPIResponse.go | 27 + .../AlibabaAlinkDeviceInfoUpdateResponse.go | 27 - .../AlibabaAlinkDeviceUnbindAPIRequest.go | 52 + .../AlibabaAlinkDeviceUnbindAPIResponse.go | 27 + .../alink/AlibabaAlinkDeviceUnbindResponse.go | 27 - ...babaAlinkDeviceUnifyStatusGetAPIRequest.go | 52 + ...abaAlinkDeviceUnifyStatusGetAPIResponse.go | 27 + ...libabaAlinkDeviceUnifyStatusGetResponse.go | 27 - ...babaAlinkDeviceUnifyStatusSetAPIRequest.go | 66 + ...abaAlinkDeviceUnifyStatusSetAPIResponse.go | 27 + ...libabaAlinkDeviceUnifyStatusSetResponse.go | 27 - ...AlibabaAlinkMessageConfigListAPIRequest.go | 38 + ...libabaAlinkMessageConfigListAPIResponse.go | 27 + .../AlibabaAlinkMessageConfigListResponse.go | 27 - .../AlibabaAlinkMessageConfigSetAPIRequest.go | 66 + ...AlibabaAlinkMessageConfigSetAPIResponse.go | 27 + .../AlibabaAlinkMessageConfigSetResponse.go | 27 - ...ibabaAlinkMessageHistoryCountAPIRequest.go | 122 ++ ...babaAlinkMessageHistoryCountAPIResponse.go | 27 + ...AlibabaAlinkMessageHistoryCountResponse.go | 27 - ...libabaAlinkMessageHistoryListAPIRequest.go | 122 ++ ...ibabaAlinkMessageHistoryListAPIResponse.go | 27 + .../AlibabaAlinkMessageHistoryListResponse.go | 27 - .../AliyunAlinkDataStatReportAPIRequest.go | 52 + .../AliyunAlinkDataStatReportAPIResponse.go | 33 + .../AliyunAlinkDataStatReportResponse.go | 33 - .../AliyunAlinkOpendataUrlQueryAPIRequest.go | 94 + .../AliyunAlinkOpendataUrlQueryAPIResponse.go | 33 + .../AliyunAlinkOpendataUrlQueryResponse.go | 33 - .../AliyunAliosPayRecordListAPIRequest.go | 52 + .../AliyunAliosPayRecordListAPIResponse.go | 27 + .../AliyunAliosPayRecordListResponse.go | 27 - .../AliyunAliosPayRefundAPIRequest.go | 52 + .../AliyunAliosPayRefundAPIResponse.go | 27 + .../aliospay/AliyunAliosPayRefundResponse.go | 27 - .../AliyunAliosPayTokenGetAPIRequest.go | 52 + .../AliyunAliosPayTokenGetAPIResponse.go | 27 + .../AliyunAliosPayTokenGetResponse.go | 27 - .../AliyunAliosPayTradeQueryAPIRequest.go | 52 + .../AliyunAliosPayTradeQueryAPIResponse.go | 27 + .../AliyunAliosPayTradeQueryResponse.go | 27 - .../AlibabaAliqinFcIotCardInfoAPIRequest.go | 52 + .../AlibabaAliqinFcIotCardInfoAPIResponse.go | 27 + .../AlibabaAliqinFcIotCardInfoResponse.go | 27 - .../AlibabaAliqinFcIotCardStatusAPIRequest.go | 52 + ...AlibabaAliqinFcIotCardStatusAPIResponse.go | 27 + .../AlibabaAliqinFcIotCardStatusResponse.go | 27 - .../AlibabaAliqinFcIotCardofferAPIRequest.go | 66 + .../AlibabaAliqinFcIotCardofferAPIResponse.go | 27 + .../AlibabaAliqinFcIotCardofferResponse.go | 27 - ...ibabaAliqinFcIotDeviceIsexistAPIRequest.go | 80 + ...babaAliqinFcIotDeviceIsexistAPIResponse.go | 27 + ...AlibabaAliqinFcIotDeviceIsexistResponse.go | 27 - .../AlibabaAliqinFcIotDevicePostAPIRequest.go | 94 + ...AlibabaAliqinFcIotDevicePostAPIResponse.go | 27 + .../AlibabaAliqinFcIotDevicePostResponse.go | 27 - .../AlibabaAliqinFcIotModbindAPIRequest.go | 136 ++ .../AlibabaAliqinFcIotModbindAPIResponse.go | 27 + .../AlibabaAliqinFcIotModbindResponse.go | 27 - ...ibabaAliqinFcIotQryPersoninfoAPIRequest.go | 80 + ...babaAliqinFcIotQryPersoninfoAPIResponse.go | 27 + ...AlibabaAliqinFcIotQryPersoninfoResponse.go | 27 - .../AlibabaAliqinFcIotQrycardAPIRequest.go | 80 + .../AlibabaAliqinFcIotQrycardAPIResponse.go | 27 + .../AlibabaAliqinFcIotQrycardResponse.go | 27 - ...libabaAliqinFcIotRechargeCardAPIRequest.go | 136 ++ ...ibabaAliqinFcIotRechargeCardAPIResponse.go | 27 + .../AlibabaAliqinFcIotRechargeCardResponse.go | 27 - .../AlibabaAliqinFcIotSmsSendAPIRequest.go | 108 + .../AlibabaAliqinFcIotSmsSendAPIResponse.go | 27 + .../AlibabaAliqinFcIotSmsSendResponse.go | 27 - ...ibabaAliqinFcIotUseroscontrolAPIRequest.go | 66 + ...babaAliqinFcIotUseroscontrolAPIResponse.go | 27 + ...AlibabaAliqinFcIotUseroscontrolResponse.go | 27 - .../AlibabaAliqinFcIvrNumCallAPIRequest.go | 192 ++ .../AlibabaAliqinFcIvrNumCallAPIResponse.go | 27 + .../AlibabaAliqinFcIvrNumCallResponse.go | 27 - .../AlibabaAliqinFcSmsNumQueryAPIRequest.go | 108 + .../AlibabaAliqinFcSmsNumQueryAPIResponse.go | 35 + .../AlibabaAliqinFcSmsNumQueryResponse.go | 35 - .../AlibabaAliqinFcSmsNumSendAPIRequest.go | 123 ++ .../AlibabaAliqinFcSmsNumSendAPIResponse.go | 28 + .../AlibabaAliqinFcSmsNumSendResponse.go | 28 - ...ibabaAliqinFcTtsNumSinglecallAPIRequest.go | 108 + ...babaAliqinFcTtsNumSinglecallAPIResponse.go | 27 + ...AlibabaAliqinFcTtsNumSinglecallResponse.go | 27 - ...abaAliqinFcVoiceNumDoublecallAPIRequest.go | 122 ++ ...baAliqinFcVoiceNumDoublecallAPIResponse.go | 27 + ...ibabaAliqinFcVoiceNumDoublecallResponse.go | 27 - ...abaAliqinFcVoiceNumSinglecallAPIRequest.go | 94 + ...baAliqinFcVoiceNumSinglecallAPIResponse.go | 27 + ...ibabaAliqinFcVoiceNumSinglecallResponse.go | 27 - ...indepDigitalsmsCreatetemplateAPIRequest.go | 80 + ...ndepDigitalsmsCreatetemplateAPIResponse.go | 27 + ...unindepDigitalsmsCreatetemplateResponse.go | 27 - ...baIsvDigitalsmsCreatetemplateAPIRequest.go | 80 + ...aIsvDigitalsmsCreatetemplateAPIResponse.go | 27 + ...babaIsvDigitalsmsCreatetemplateResponse.go | 27 - ...sportsDataSportsSyncmatchdataAPIRequest.go | 388 ++++ ...portsDataSportsSyncmatchdataAPIResponse.go | 29 + ...lisportsDataSportsSyncmatchdataResponse.go | 29 - ...sportsDataSportsSyncsleepdataAPIRequest.go | 178 ++ ...portsDataSportsSyncsleepdataAPIResponse.go | 29 + ...lisportsDataSportsSyncsleepdataResponse.go | 29 - ...portsDataSportsSyncsportsdataAPIRequest.go | 486 +++++ ...ortsDataSportsSyncsportsdataAPIResponse.go | 29 + ...isportsDataSportsSyncsportsdataResponse.go | 29 - ...isportsDataSportsSyncstatdataAPIRequest.go | 192 ++ ...sportsDataSportsSyncstatdataAPIResponse.go | 29 + ...AlisportsDataSportsSyncstatdataResponse.go | 29 - ...isportsDataSportsSyncuserdataAPIRequest.go | 262 +++ ...sportsDataSportsSyncuserdataAPIResponse.go | 29 + ...AlisportsDataSportsSyncuserdataResponse.go | 29 - ...atacenterDatasyncFatscaledataAPIRequest.go | 374 ++++ ...tacenterDatasyncFatscaledataAPIResponse.go | 33 + ...sDatacenterDatasyncFatscaledataResponse.go | 33 - ...DatacenterDatasyncSportsdatasAPIRequest.go | 486 +++++ ...atacenterDatasyncSportsdatasAPIResponse.go | 33 + ...tsDatacenterDatasyncSportsdatasResponse.go | 33 - ...tsDatacenterDatasyncTreadmillAPIRequest.go | 458 +++++ ...sDatacenterDatasyncTreadmillAPIResponse.go | 33 + ...ortsDatacenterDatasyncTreadmillResponse.go | 33 - ...babaAlisportsEfspCountsubsidyAPIRequest.go | 108 + ...abaAlisportsEfspCountsubsidyAPIResponse.go | 27 + ...libabaAlisportsEfspCountsubsidyResponse.go | 27 - ...ibabaAlisportsEfspGetuserinfoAPIRequest.go | 52 + ...babaAlisportsEfspGetuserinfoAPIResponse.go | 27 + ...AlibabaAlisportsEfspGetuserinfoResponse.go | 27 - ...aAlisportsEfspUsercancelorderAPIRequest.go | 66 + ...AlisportsEfspUsercancelorderAPIResponse.go | 27 + ...abaAlisportsEfspUsercancelorderResponse.go | 27 - ...baAlisportsEfspUserplaceorderAPIRequest.go | 52 + ...aAlisportsEfspUserplaceorderAPIResponse.go | 27 + ...babaAlisportsEfspUserplaceorderResponse.go | 27 - ...babaAlisportsEfspUserwriteoffAPIRequest.go | 108 + ...abaAlisportsEfspUserwriteoffAPIResponse.go | 27 + ...libabaAlisportsEfspUserwriteoffResponse.go | 27 - ...AlisportsLdlserverWxeventPostAPIRequest.go | 52 + ...lisportsLdlserverWxeventPostAPIResponse.go | 29 + ...baAlisportsLdlserverWxeventPostResponse.go | 29 - ...rtsPassportAccountBindthirdidAPIRequest.go | 122 ++ ...tsPassportAccountBindthirdidAPIResponse.go | 29 + ...portsPassportAccountBindthirdidResponse.go | 29 - ...rtsPassportAccountCheckmobileAPIRequest.go | 150 ++ ...tsPassportAccountCheckmobileAPIResponse.go | 31 + ...portsPassportAccountCheckmobileResponse.go | 31 - ...rtsPassportAccountDelrelationAPIRequest.go | 108 + ...tsPassportAccountDelrelationAPIResponse.go | 31 + ...portsPassportAccountDelrelationResponse.go | 31 - ...PassportAccountGetaccountinfoAPIRequest.go | 136 ++ ...assportAccountGetaccountinfoAPIResponse.go | 31 + ...tsPassportAccountGetaccountinfoResponse.go | 31 - ...assportAccountSsotokenrefreshAPIRequest.go | 94 + ...ssportAccountSsotokenrefreshAPIResponse.go | 31 + ...sPassportAccountSsotokenrefreshResponse.go | 31 - ...ssportAccountSsotokenvalidateAPIRequest.go | 94 + ...sportAccountSsotokenvalidateAPIResponse.go | 33 + ...PassportAccountSsotokenvalidateResponse.go | 33 - ...sPassportAccountTokenvalidateAPIRequest.go | 150 ++ ...PassportAccountTokenvalidateAPIResponse.go | 31 + ...rtsPassportAccountTokenvalidateResponse.go | 31 - ...portsPassportOauthAlipaygrantAPIRequest.go | 136 ++ ...ortsPassportOauthAlipaygrantAPIResponse.go | 31 + ...isportsPassportOauthAlipaygrantResponse.go | 31 - ...rtsPassportOauthTokenvalidateAPIRequest.go | 94 + ...tsPassportOauthTokenvalidateAPIResponse.go | 31 + ...portsPassportOauthTokenvalidateResponse.go | 31 - ...isportsPassportParterSynccardAPIRequest.go | 136 ++ ...sportsPassportParterSynccardAPIResponse.go | 31 + ...AlisportsPassportParterSynccardResponse.go | 31 - .../AlitripBpCouponinfoSyncAPIRequest.go | 52 + .../AlitripBpCouponinfoSyncAPIResponse.go | 27 + .../AlitripBpCouponinfoSyncResponse.go | 27 - .../AlitripCarInvoiceConfirmAPIRequest.go | 52 + .../AlitripCarInvoiceConfirmAPIResponse.go | 31 + .../AlitripCarInvoiceConfirmResponse.go | 31 - ...baoAlitripCarOrderAgentCancelAPIRequest.go | 52 + ...aoAlitripCarOrderAgentCancelAPIResponse.go | 31 + ...aobaoAlitripCarOrderAgentCancelResponse.go | 31 - .../TaobaoAlitripCarOrderRefundAPIRequest.go | 52 + .../TaobaoAlitripCarOrderRefundAPIResponse.go | 31 + .../TaobaoAlitripCarOrderRefundResponse.go | 31 - ...ormDivisionsGetdivisionbynameAPIRequest.go | 66 + ...rmDivisionsGetdivisionbynameAPIResponse.go | 27 + ...tformDivisionsGetdivisionbynameResponse.go | 27 - ...tformDivisionsQuerybyparentidAPIRequest.go | 52 + ...formDivisionsQuerybyparentidAPIResponse.go | 27 + ...latformDivisionsQuerybyparentidResponse.go | 27 - ...tripMerchantGalaxyBrandSearchAPIRequest.go | 52 + ...ripMerchantGalaxyBrandSearchAPIResponse.go | 27 + ...litripMerchantGalaxyBrandSearchResponse.go | 27 - ...AlitripMerchantGalaxyCityLikeAPIRequest.go | 80 + ...litripMerchantGalaxyCityLikeAPIResponse.go | 27 + ...AlitripMerchantGalaxyCityListAPIRequest.go | 66 + ...litripMerchantGalaxyCityListAPIResponse.go | 27 + ...rchantGalaxyHotelDetailSearchAPIRequest.go | 66 + ...chantGalaxyHotelDetailSearchAPIResponse.go | 27 + ...MerchantGalaxyHotelDetailSearchResponse.go | 27 - ...MerchantGalaxyHotelListSearchAPIRequest.go | 66 + ...erchantGalaxyHotelListSearchAPIResponse.go | 27 + ...ipMerchantGalaxyHotelListSearchResponse.go | 27 - ...itripMerchantGalaxyMemberCardAPIRequest.go | 80 + ...tripMerchantGalaxyMemberCardAPIResponse.go | 27 + ...ripMerchantGalaxyMemberLogoutAPIRequest.go | 66 + ...ipMerchantGalaxyMemberLogoutAPIResponse.go | 27 + ...tGalaxyMemberProviderRegisterAPIRequest.go | 66 + ...GalaxyMemberProviderRegisterAPIResponse.go | 27 + ...tripMerchantGalaxyMemberQueryAPIRequest.go | 66 + ...ripMerchantGalaxyMemberQueryAPIResponse.go | 27 + ...pMerchantGalaxyMemberRegisterAPIRequest.go | 66 + ...MerchantGalaxyMemberRegisterAPIResponse.go | 27 + ...tripMerchantGalaxyMemberTokenAPIRequest.go | 66 + ...ripMerchantGalaxyMemberTokenAPIResponse.go | 27 + ...itripMerchantGalaxyOfferQueryAPIRequest.go | 80 + ...tripMerchantGalaxyOfferQueryAPIResponse.go | 27 + ...litripMerchantGalaxyOrderBookAPIRequest.go | 108 + ...itripMerchantGalaxyOrderBookAPIResponse.go | 27 + ...tripMerchantGalaxyOrderCancelAPIRequest.go | 94 + ...ripMerchantGalaxyOrderCancelAPIResponse.go | 27 + ...pMerchantGalaxyOrderListQueryAPIRequest.go | 136 ++ ...MerchantGalaxyOrderListQueryAPIResponse.go | 27 + ...itripMerchantGalaxyOrderQueryAPIRequest.go | 80 + ...tripMerchantGalaxyOrderQueryAPIResponse.go | 27 + ...ipMerchantGalaxyOrderValidateAPIRequest.go | 80 + ...pMerchantGalaxyOrderValidateAPIResponse.go | 27 + ...rchantGalaxyPaymentParamQueryAPIRequest.go | 80 + ...chantGalaxyPaymentParamQueryAPIResponse.go | 27 + ...hantGalaxyProviderMemberQueryAPIRequest.go | 66 + ...antGalaxyProviderMemberQueryAPIResponse.go | 27 + ...AlitripMerchantGalaxyShareGetAPIRequest.go | 52 + ...litripMerchantGalaxyShareGetAPIResponse.go | 27 + ...itripMerchantGalaxyWechatInfoAPIRequest.go | 66 + ...tripMerchantGalaxyWechatInfoAPIResponse.go | 27 + ...tripMerchantGalaxyWechatLoginAPIRequest.go | 66 + ...ripMerchantGalaxyWechatLoginAPIResponse.go | 27 + .../AlitripPlatformContentRawAddAPIRequest.go | 52 + ...AlitripPlatformContentRawAddAPIResponse.go | 27 + .../AlitripPlatformContentRawAddResponse.go | 27 - .../AlitripPlatformPoiRawFeedAPIRequest.go | 52 + .../AlitripPlatformPoiRawFeedAPIResponse.go | 27 + .../AlitripPlatformPoiRawFeedResponse.go | 27 - .../AlitripPlatformPoiRawPoioutAPIRequest.go | 52 + .../AlitripPlatformPoiRawPoioutAPIResponse.go | 27 + .../AlitripPlatformPoiRawPoioutResponse.go | 27 - ...pPlatformPoiRawPoioutbypoiidsAPIRequest.go | 52 + ...PlatformPoiRawPoioutbypoiidsAPIResponse.go | 27 + ...ripPlatformPoiRawPoioutbypoiidsResponse.go | 27 - ...itripPlatformPoiRawSaverawpoiAPIRequest.go | 52 + ...tripPlatformPoiRawSaverawpoiAPIResponse.go | 27 + ...AlitripPlatformPoiRawSaverawpoiResponse.go | 27 - ...tripReceiptSellerInvoiceQueryAPIRequest.go | 52 + ...ripReceiptSellerInvoiceQueryAPIResponse.go | 33 + ...litripReceiptSellerInvoiceQueryResponse.go | 33 - ...litripReceiptSellerInvoiceRedAPIRequest.go | 52 + ...itripReceiptSellerInvoiceRedAPIResponse.go | 31 + .../AlitripReceiptSellerInvoiceRedResponse.go | 31 - ...ripReceiptSellerInvoiceReturnAPIRequest.go | 52 + ...ipReceiptSellerInvoiceReturnAPIResponse.go | 31 + ...itripReceiptSellerInvoiceReturnResponse.go | 31 - ...CreateAliyunAccount2013_07_01APIRequest.go | 38 + ...reateAliyunAccount2013_07_01APIResponse.go | 27 + ...omCreateAliyunAccount2013_07_01Response.go | 27 - ...AliyunAccountForBid2013_07_01APIRequest.go | 38 + ...liyunAccountForBid2013_07_01APIResponse.go | 27 + ...teAliyunAccountForBid2013_07_01Response.go | 27 - ...liyuncsComCreateApp2013_07_01APIRequest.go | 38 + ...iyuncsComCreateApp2013_07_01APIResponse.go | 31 + ...tAliyuncsComCreateApp2013_07_01Response.go | 31 - ...sComCreateAppForBid2013_07_01APIRequest.go | 38 + ...ComCreateAppForBid2013_07_01APIResponse.go | 27 + ...ncsComCreateAppForBid2013_07_01Response.go | 27 - ...sComDeleteAppForBid2013_07_01APIRequest.go | 66 + ...ComDeleteAppForBid2013_07_01APIResponse.go | 31 + ...ncsComDeleteAppForBid2013_07_01Response.go | 31 - ...AppkeyByOwnerAndBid2013_07_01APIRequest.go | 38 + ...ppkeyByOwnerAndBid2013_07_01APIResponse.go | 27 + ...stAppkeyByOwnerAndBid2013_07_01Response.go | 27 - ...DescribeOdpsService2014_12_15APIRequest.go | 38 + ...escribeOdpsService2014_12_15APIResponse.go | 31 + ...omDescribeOdpsService2014_12_15Response.go | 31 - .../PushAliyuncsComPush20150518APIRequest.go | 360 ++++ .../PushAliyuncsComPush20150518APIResponse.go | 29 + .../PushAliyuncsComPush20150518Response.go | 29 - ...hAliyuncsComPushMsg2015_03_18APIRequest.go | 220 ++ ...AliyuncsComPushMsg2015_03_18APIResponse.go | 29 + ...ushAliyuncsComPushMsg2015_03_18Response.go | 29 - ...ComPushNotification2015_03_18APIRequest.go | 346 ++++ ...omPushNotification2015_03_18APIResponse.go | 29 + ...csComPushNotification2015_03_18Response.go | 29 - ...oadBalancerListener2013_02_21APIRequest.go | 66 + ...adBalancerListener2013_02_21APIResponse.go | 27 + ...eLoadBalancerListener2013_02_21Response.go | 27 - ...cribeBackendServers2013_02_21APIRequest.go | 66 + ...ribeBackendServers2013_02_21APIResponse.go | 31 + ...escribeBackendServers2013_02_21Response.go | 31 - ...SetLoadBalancerName2013_02_21APIRequest.go | 66 + ...etLoadBalancerName2013_02_21APIResponse.go | 27 + ...omSetLoadBalancerName2013_02_21Response.go | 27 - ...csComCreateInstance2015_03_01APIRequest.go | 178 ++ ...sComCreateInstance2015_03_01APIResponse.go | 53 + ...uncsComCreateInstance2015_03_01Response.go | 53 - ...sComDescribeRegions2015_03_01APIRequest.go | 38 + ...ComDescribeRegions2015_03_01APIResponse.go | 27 + ...ncsComDescribeRegions2015_03_01Response.go | 27 - .../AlibabaAlscChudaTemplateSendAPIRequest.go | 52 + ...AlibabaAlscChudaTemplateSendAPIResponse.go | 33 + .../AlibabaAlscChudaTemplateSendResponse.go | 33 - .../AlibabaAlscCrmCardActiveAPIRequest.go | 52 + .../AlibabaAlscCrmCardActiveAPIResponse.go | 27 + .../alsc/AlibabaAlscCrmCardActiveResponse.go | 27 - ...AlibabaAlscCrmCardBatchActiveAPIRequest.go | 52 + ...libabaAlscCrmCardBatchActiveAPIResponse.go | 27 + .../AlibabaAlscCrmCardBatchActiveResponse.go | 27 - .../AlibabaAlscCrmCardBatchSellAPIRequest.go | 52 + .../AlibabaAlscCrmCardBatchSellAPIResponse.go | 27 + .../AlibabaAlscCrmCardBatchSellResponse.go | 27 - .../AlibabaAlscCrmCardBindcardAPIRequest.go | 52 + .../AlibabaAlscCrmCardBindcardAPIResponse.go | 27 + .../AlibabaAlscCrmCardBindcardResponse.go | 27 - ...libabaAlscCrmCardBindcustomerAPIRequest.go | 52 + ...ibabaAlscCrmCardBindcustomerAPIResponse.go | 27 + .../AlibabaAlscCrmCardBindcustomerResponse.go | 27 - .../alsc/AlibabaAlscCrmCardOpenAPIRequest.go | 52 + .../alsc/AlibabaAlscCrmCardOpenAPIResponse.go | 27 + model/alsc/AlibabaAlscCrmCardOpenResponse.go | 27 - .../AlibabaAlscCrmCardPagetmpAPIRequest.go | 55 + .../AlibabaAlscCrmCardPagetmpAPIResponse.go | 30 + .../alsc/AlibabaAlscCrmCardPagetmpResponse.go | 30 - model/alsc/AlibabaAlscCrmCardQryAPIRequest.go | 52 + .../alsc/AlibabaAlscCrmCardQryAPIResponse.go | 27 + model/alsc/AlibabaAlscCrmCardQryResponse.go | 27 - ...AlibabaAlscCrmCardQryphysicalAPIRequest.go | 52 + ...libabaAlscCrmCardQryphysicalAPIResponse.go | 27 + .../AlibabaAlscCrmCardQryphysicalResponse.go | 27 - ...ibabaAlscCrmCardQueryTemplateAPIRequest.go | 52 + ...babaAlscCrmCardQueryTemplateAPIResponse.go | 27 + ...AlibabaAlscCrmCardQueryTemplateResponse.go | 27 - .../AlibabaAlscCrmCardSearchcardAPIRequest.go | 52 + ...AlibabaAlscCrmCardSearchcardAPIResponse.go | 27 + .../AlibabaAlscCrmCardSearchcardResponse.go | 27 - ...libabaAlscCrmCustomerCheckppwAPIRequest.go | 52 + ...ibabaAlscCrmCustomerCheckppwAPIResponse.go | 27 + .../AlibabaAlscCrmCustomerCheckppwResponse.go | 27 - .../AlibabaAlscCrmCustomerCreateAPIRequest.go | 52 + ...AlibabaAlscCrmCustomerCreateAPIResponse.go | 27 + .../AlibabaAlscCrmCustomerCreateResponse.go | 27 - .../AlibabaAlscCrmCustomerGetAPIRequest.go | 52 + .../AlibabaAlscCrmCustomerGetAPIResponse.go | 27 + .../alsc/AlibabaAlscCrmCustomerGetResponse.go | 27 - ...libabaAlscCrmCustomerResetppwAPIRequest.go | 52 + ...ibabaAlscCrmCustomerResetppwAPIResponse.go | 27 + .../AlibabaAlscCrmCustomerResetppwResponse.go | 27 - .../AlibabaAlscCrmCustomerUpdateAPIRequest.go | 52 + ...AlibabaAlscCrmCustomerUpdateAPIResponse.go | 27 + .../AlibabaAlscCrmCustomerUpdateResponse.go | 27 - ...ibabaAlscCrmCustomerUpdateppwAPIRequest.go | 52 + ...babaAlscCrmCustomerUpdateppwAPIResponse.go | 27 + ...AlibabaAlscCrmCustomerUpdateppwResponse.go | 27 - ...abaAlscCrmCustomerVoucherListAPIRequest.go | 52 + ...baAlscCrmCustomerVoucherListAPIResponse.go | 27 + ...ibabaAlscCrmCustomerVoucherListResponse.go | 27 - ...libabaAlscCrmMarketingEncryptAPIRequest.go | 52 + ...ibabaAlscCrmMarketingEncryptAPIResponse.go | 27 + .../AlibabaAlscCrmMarketingEncryptResponse.go | 27 - ...aAlscCrmMarketingIssueVoucherAPIRequest.go | 52 + ...AlscCrmMarketingIssueVoucherAPIResponse.go | 27 + ...abaAlscCrmMarketingIssueVoucherResponse.go | 27 - ...CrmMarketingShareCustomerInfoAPIRequest.go | 164 ++ ...rmMarketingShareCustomerInfoAPIResponse.go | 27 + ...scCrmMarketingShareCustomerInfoResponse.go | 27 - .../alsc/AlibabaAlscCrmMenuListAPIRequest.go | 52 + .../alsc/AlibabaAlscCrmMenuListAPIResponse.go | 27 + model/alsc/AlibabaAlscCrmMenuListResponse.go | 27 - ...libabaAlscCrmOpenAssertRefundAPIRequest.go | 52 + ...ibabaAlscCrmOpenAssertRefundAPIResponse.go | 27 + .../AlibabaAlscCrmOpenAssertRefundResponse.go | 27 - ...libabaAlscCrmOpenAssertVerifyAPIRequest.go | 52 + ...ibabaAlscCrmOpenAssertVerifyAPIResponse.go | 27 + .../AlibabaAlscCrmOpenAssertVerifyResponse.go | 27 - ...AlibabaAlscCrmOpenCustomerGetAPIRequest.go | 52 + ...libabaAlscCrmOpenCustomerGetAPIResponse.go | 27 + .../AlibabaAlscCrmOpenCustomerGetResponse.go | 27 - ...libabaAlscCrmOpenCustomerSaveAPIRequest.go | 52 + ...ibabaAlscCrmOpenCustomerSaveAPIResponse.go | 27 + .../AlibabaAlscCrmOpenCustomerSaveResponse.go | 27 - ...ibabaAlscCrmOpenOrderBackflowAPIRequest.go | 52 + ...babaAlscCrmOpenOrderBackflowAPIResponse.go | 27 + ...AlibabaAlscCrmOpenOrderBackflowResponse.go | 27 - ...libabaAlscCrmOpenPointOperateAPIRequest.go | 52 + ...ibabaAlscCrmOpenPointOperateAPIResponse.go | 27 + .../AlibabaAlscCrmOpenPointOperateResponse.go | 27 - ...abaAlscCrmOpenRechargeOperateAPIRequest.go | 52 + ...baAlscCrmOpenRechargeOperateAPIResponse.go | 27 + ...ibabaAlscCrmOpenRechargeOperateResponse.go | 27 - .../AlibabaAlscCrmOpenRuleGetAPIRequest.go | 52 + .../AlibabaAlscCrmOpenRuleGetAPIResponse.go | 27 + .../alsc/AlibabaAlscCrmOpenRuleGetResponse.go | 27 - .../alsc/AlibabaAlscCrmPointCalAPIRequest.go | 55 + .../alsc/AlibabaAlscCrmPointCalAPIResponse.go | 30 + model/alsc/AlibabaAlscCrmPointCalResponse.go | 30 - ...libabaAlscCrmPointChkpntbypayAPIRequest.go | 52 + ...ibabaAlscCrmPointChkpntbypayAPIResponse.go | 27 + .../AlibabaAlscCrmPointChkpntbypayResponse.go | 27 - ...ibabaAlscCrmPointConsumepointAPIRequest.go | 52 + ...babaAlscCrmPointConsumepointAPIResponse.go | 27 + ...AlibabaAlscCrmPointConsumepointResponse.go | 27 - ...ibabaAlscCrmPointExtraConsumeAPIRequest.go | 52 + ...babaAlscCrmPointExtraConsumeAPIResponse.go | 27 + ...AlibabaAlscCrmPointExtraConsumeResponse.go | 27 - ...libabaAlscCrmPointExtrachargeAPIRequest.go | 52 + ...ibabaAlscCrmPointExtrachargeAPIResponse.go | 27 + .../AlibabaAlscCrmPointExtrachargeResponse.go | 27 - ...abaAlscCrmPointQuerypointflowAPIRequest.go | 52 + ...baAlscCrmPointQuerypointflowAPIResponse.go | 27 + ...ibabaAlscCrmPointQuerypointflowResponse.go | 27 - ...ibabaAlscCrmPointReversepointAPIRequest.go | 52 + ...babaAlscCrmPointReversepointAPIResponse.go | 27 + ...AlibabaAlscCrmPointReversepointResponse.go | 27 - .../AlibabaAlscCrmPointRuleGetAPIRequest.go | 52 + .../AlibabaAlscCrmPointRuleGetAPIResponse.go | 27 + .../AlibabaAlscCrmPointRuleGetResponse.go | 27 - .../AlibabaAlscCrmPromotionListAPIRequest.go | 52 + .../AlibabaAlscCrmPromotionListAPIResponse.go | 27 + .../AlibabaAlscCrmPromotionListResponse.go | 27 - ...mRechargeAccountFlowdetailGetAPIRequest.go | 52 + ...RechargeAccountFlowdetailGetAPIResponse.go | 27 + ...CrmRechargeAccountFlowdetailGetResponse.go | 27 - ...babaAlscCrmRechargeAccountGetAPIRequest.go | 52 + ...abaAlscCrmRechargeAccountGetAPIResponse.go | 27 + ...libabaAlscCrmRechargeAccountGetResponse.go | 27 - ...lscCrmRechargeAccountflowsGetAPIRequest.go | 52 + ...scCrmRechargeAccountflowsGetAPIResponse.go | 27 + ...aAlscCrmRechargeAccountflowsGetResponse.go | 27 - ...baAlscCrmRechargeChargeUpdateAPIRequest.go | 52 + ...aAlscCrmRechargeChargeUpdateAPIResponse.go | 27 + ...babaAlscCrmRechargeChargeUpdateResponse.go | 27 - ...cCrmRechargeChargeprecheckGetAPIRequest.go | 52 + ...CrmRechargeChargeprecheckGetAPIResponse.go | 27 + ...lscCrmRechargeChargeprecheckGetResponse.go | 27 - ...abaAlscCrmRechargeDedutUpdateAPIRequest.go | 52 + ...baAlscCrmRechargeDedutUpdateAPIResponse.go | 27 + ...ibabaAlscCrmRechargeDedutUpdateResponse.go | 27 - ...scCrmRechargeDedutprecheckGetAPIRequest.go | 52 + ...cCrmRechargeDedutprecheckGetAPIResponse.go | 27 + ...AlscCrmRechargeDedutprecheckGetResponse.go | 27 - ...AlibabaAlscCrmRechargeQryruleAPIRequest.go | 52 + ...libabaAlscCrmRechargeQryruleAPIResponse.go | 27 + .../AlibabaAlscCrmRechargeQryruleResponse.go | 27 - ...AlscCrmRechargeUnchargeUpdateAPIRequest.go | 52 + ...lscCrmRechargeUnchargeUpdateAPIResponse.go | 27 + ...baAlscCrmRechargeUnchargeUpdateResponse.go | 27 - ...scCrmRechargeUnchargecheckGetAPIRequest.go | 52 + ...cCrmRechargeUnchargecheckGetAPIResponse.go | 27 + ...AlscCrmRechargeUnchargecheckGetResponse.go | 27 - ...aAlscCrmRechargeUndedutUpdateAPIRequest.go | 52 + ...AlscCrmRechargeUndedutUpdateAPIResponse.go | 27 + ...abaAlscCrmRechargeUndedutUpdateResponse.go | 27 - ...lscCrmRuleLevelQuerylevelruleAPIRequest.go | 52 + ...scCrmRuleLevelQuerylevelruleAPIResponse.go | 27 + ...aAlscCrmRuleLevelQuerylevelruleResponse.go | 27 - ...ibabaAlscCrmRuleQuerydishruleAPIRequest.go | 52 + ...babaAlscCrmRuleQuerydishruleAPIResponse.go | 27 + ...AlibabaAlscCrmRuleQuerydishruleResponse.go | 27 - ...ibabaAlscCrmRuleQuerygrowruleAPIRequest.go | 52 + ...babaAlscCrmRuleQuerygrowruleAPIResponse.go | 27 + ...AlibabaAlscCrmRuleQuerygrowruleResponse.go | 27 - ...babaAlscCrmRuleQueryjoinmruleAPIRequest.go | 52 + ...abaAlscCrmRuleQueryjoinmruleAPIResponse.go | 27 + ...libabaAlscCrmRuleQueryjoinmruleResponse.go | 27 - ...babaAlscCrmRuleQuerymdayeruleAPIRequest.go | 52 + ...abaAlscCrmRuleQuerymdayeruleAPIResponse.go | 27 + ...libabaAlscCrmRuleQuerymdayeruleResponse.go | 27 - ...abaAlscCrmRuleQuerympriceruleAPIRequest.go | 52 + ...baAlscCrmRuleQuerympriceruleAPIResponse.go | 27 + ...ibabaAlscCrmRuleQuerympriceruleResponse.go | 27 - ...libabaAlscCrmRuleQueryoptplanAPIRequest.go | 52 + ...ibabaAlscCrmRuleQueryoptplanAPIResponse.go | 27 + .../AlibabaAlscCrmRuleQueryoptplanResponse.go | 27 - ...libabaAlscCrmRuleQuerytaglistAPIRequest.go | 52 + ...ibabaAlscCrmRuleQuerytaglistAPIResponse.go | 27 + .../AlibabaAlscCrmRuleQuerytaglistResponse.go | 27 - .../AlibabaAlscCrmVoucherSendAPIRequest.go | 52 + .../AlibabaAlscCrmVoucherSendAPIResponse.go | 27 + .../alsc/AlibabaAlscCrmVoucherSendResponse.go | 27 - ...abaAlscCrmVoucherStatusChangeAPIRequest.go | 52 + ...baAlscCrmVoucherStatusChangeAPIResponse.go | 27 + ...ibabaAlscCrmVoucherStatusChangeResponse.go | 27 - ...abaAlscCrmVoucherTemplateListAPIRequest.go | 52 + ...baAlscCrmVoucherTemplateListAPIResponse.go | 27 + ...ibabaAlscCrmVoucherTemplateListResponse.go | 27 - model/alsc/AlibabaAlscKmsAccessAPIRequest.go | 52 + model/alsc/AlibabaAlscKmsAccessAPIResponse.go | 31 + model/alsc/AlibabaAlscKmsAccessResponse.go | 31 - .../AlibabaAlscOrderOrderUploadAPIRequest.go | 52 + .../AlibabaAlscOrderOrderUploadAPIResponse.go | 27 + .../AlibabaAlscOrderOrderUploadResponse.go | 27 - ...baAlscSaasCodecCodeAttrsQueryAPIRequest.go | 52 + ...aAlscSaasCodecCodeAttrsQueryAPIResponse.go | 27 + ...babaAlscSaasCodecCodeAttrsQueryResponse.go | 27 - ...eiSaasBaseOperationConfigSyncAPIRequest.go | 108 + ...iSaasBaseOperationConfigSyncAPIResponse.go | 31 + ...ubeiSaasBaseOperationConfigSyncResponse.go | 31 - .../alsc/TaobaoPlaceStoreCreateAPIRequest.go | 52 + .../alsc/TaobaoPlaceStoreCreateAPIResponse.go | 27 + model/alsc/TaobaoPlaceStoreCreateResponse.go | 27 - .../alsc/TaobaoPlaceStoreDeleteAPIRequest.go | 52 + .../alsc/TaobaoPlaceStoreDeleteAPIResponse.go | 27 + model/alsc/TaobaoPlaceStoreDeleteResponse.go | 27 - .../TaobaoPlaceStoreExtendAddAPIRequest.go | 66 + .../TaobaoPlaceStoreExtendAddAPIResponse.go | 31 + .../alsc/TaobaoPlaceStoreExtendAddResponse.go | 31 - .../alsc/TaobaoPlaceStoreModifyAPIRequest.go | 52 + .../alsc/TaobaoPlaceStoreModifyAPIResponse.go | 27 + model/alsc/TaobaoPlaceStoreModifyResponse.go | 27 - .../TaobaoPlaceStoreTagsUpdateAPIRequest.go | 80 + .../TaobaoPlaceStoreTagsUpdateAPIResponse.go | 27 + .../TaobaoPlaceStoreTagsUpdateResponse.go | 27 - .../TaobaoPlaceStorecategoryGetAPIRequest.go | 38 + .../TaobaoPlaceStorecategoryGetAPIResponse.go | 27 + .../TaobaoPlaceStorecategoryGetResponse.go | 27 - ...baAlscMerchantExtTicketRefundAPIRequest.go | 80 + ...aAlscMerchantExtTicketRefundAPIResponse.go | 29 + ...babaAlscMerchantExtTicketRefundResponse.go | 29 - ...aAlscMerchantExtTicketcodeUseAPIRequest.go | 52 + ...AlscMerchantExtTicketcodeUseAPIResponse.go | 65 + ...abaAlscMerchantExtTicketcodeUseResponse.go | 65 - ...baoAntifraudRiskassessmentGetAPIRequest.go | 52 + ...aoAntifraudRiskassessmentGetAPIResponse.go | 27 + ...aobaoAntifraudRiskassessmentGetResponse.go | 27 - .../TaobaoAntifraudRiskuserGetAPIRequest.go | 52 + .../TaobaoAntifraudRiskuserGetAPIResponse.go | 33 + .../TaobaoAntifraudRiskuserGetResponse.go | 33 - ...acadeNocaptchaSigAuthenticateAPIRequest.go | 52 + ...cadeNocaptchaSigAuthenticateAPIResponse.go | 29 + ...afacadeNocaptchaSigAuthenticateResponse.go | 29 - ...ementInvoiceSynchronizationImAPIRequest.go | 52 + ...mentInvoiceSynchronizationImAPIResponse.go | 27 + ...tlementInvoiceSynchronizationImResponse.go | 27 - .../ascp/TmallAscpPricingScmTofAPIRequest.go | 52 + .../ascp/TmallAscpPricingScmTofAPIResponse.go | 31 + model/ascp/TmallAscpPricingScmTofResponse.go | 31 - ...nventoryChannelInventoryQueryAPIRequest.go | 52 + ...ventoryChannelInventoryQueryAPIResponse.go | 27 + ...cinventoryChannelInventoryQueryResponse.go | 27 - ...ventoryNegativeSaleInvalidateAPIRequest.go | 52 + ...entoryNegativeSaleInvalidateAPIResponse.go | 27 + ...inventoryNegativeSaleInvalidateResponse.go | 27 - ...cinventoryNegativeSalePublishAPIRequest.go | 52 + ...inventoryNegativeSalePublishAPIResponse.go | 27 + ...AicinventoryNegativeSalePublishResponse.go | 27 - ...AicinventoryNegativeSaleQueryAPIRequest.go | 52 + ...icinventoryNegativeSaleQueryAPIResponse.go | 27 + ...erAicinventoryNegativeSaleQueryResponse.go | 27 - ...icSupplierAicinventoryPublishAPIRequest.go | 52 + ...cSupplierAicinventoryPublishAPIResponse.go | 27 + ...pAicSupplierAicinventoryPublishResponse.go | 27 - ...hannelDistributorInventoryGetAPIRequest.go | 52 + ...annelDistributorInventoryGetAPIResponse.go | 27 + ...pChannelDistributorInventoryGetResponse.go | 27 - ...ChannelDistributorInventoryGetResultDto.go | 15 + ...elDistributorInventoryListGetAPIRequest.go | 52 + ...lDistributorInventoryListGetAPIResponse.go | 27 + ...nnelDistributorInventoryListGetResponse.go | 27 - ...nelDistributorInventoryListGetResultDto.go | 15 + ...scpChannelDistributorPriceGetAPIRequest.go | 52 + ...cpChannelDistributorPriceGetAPIResponse.go | 27 + ...aAscpChannelDistributorPriceGetResponse.go | 27 - ...AscpChannelDistributorPriceGetResultDto.go | 13 + ...annelDistributorProductDetailAPIRequest.go | 52 + ...nnelDistributorProductDetailAPIResponse.go | 27 + ...ChannelDistributorProductDetailResponse.go | 27 - ...ChannelDistributorProductListAPIRequest.go | 52 + ...hannelDistributorProductListAPIResponse.go | 27 + ...cpChannelDistributorProductListResponse.go | 27 - ...annelDistributorProductSelectAPIRequest.go | 52 + ...nnelDistributorProductSelectAPIResponse.go | 31 + ...ChannelDistributorProductSelectResponse.go | 31 - ...baAscpChannelMainRefundCreateAPIRequest.go | 52 + ...aAscpChannelMainRefundCreateAPIResponse.go | 27 + ...babaAscpChannelMainRefundCreateResponse.go | 27 - ...AscpChannelRefundGoodsWaybillAPIRequest.go | 52 + ...scpChannelRefundGoodsWaybillAPIResponse.go | 27 + ...baAscpChannelRefundGoodsWaybillResponse.go | 27 - ...aAscpChannelRefundGoodsWaybillResultDto.go | 11 + ...baAscpChannelSalesOrderCreateAPIRequest.go | 52 + ...aAscpChannelSalesOrderCreateAPIResponse.go | 27 + ...babaAscpChannelSalesOrderCreateResponse.go | 27 - ...abaAscpChannelSubRefundCreateAPIRequest.go | 52 + ...baAscpChannelSubRefundCreateAPIResponse.go | 27 + ...ibabaAscpChannelSubRefundCreateResponse.go | 27 - ...babaAscpChannelSubRefundCreateResultDto.go | 13 + ...libabaAscpIndustryIcpQueryLbxAPIRequest.go | 52 + ...ibabaAscpIndustryIcpQueryLbxAPIResponse.go | 27 + .../AlibabaAscpIndustryIcpQueryLbxResponse.go | 27 - ...babaAscpIndustryLogisticsSyncAPIRequest.go | 52 + ...abaAscpIndustryLogisticsSyncAPIResponse.go | 27 + ...libabaAscpIndustryLogisticsSyncResponse.go | 27 - ...ibabaAscpIndustryLogisticsSyncResultDto.go | 13 + ...ndustryUopSupplierConsignoderAPIRequest.go | 52 + ...dustryUopSupplierConsignoderAPIResponse.go | 27 + ...pIndustryUopSupplierConsignoderResponse.go | 27 - ...abaAscpPresalespackageConsignAPIRequest.go | 52 + ...baAscpPresalespackageConsignAPIResponse.go | 27 + ...ibabaAscpPresalespackageConsignResponse.go | 27 - ...libabaAscpPurchasePriceCreateAPIRequest.go | 52 + ...ibabaAscpPurchasePriceCreateAPIResponse.go | 27 + .../AlibabaAscpPurchasePriceCreateResponse.go | 27 - .../AlibabaAscpSalecategoryQueryAPIRequest.go | 52 + ...AlibabaAscpSalecategoryQueryAPIResponse.go | 27 + .../AlibabaAscpSalecategoryQueryResponse.go | 27 - ...CnReverseWarehouseorderUpdateAPIRequest.go | 80 + ...nReverseWarehouseorderUpdateAPIResponse.go | 27 + ...opCnReverseWarehouseorderUpdateResponse.go | 27 - ...ierConsignorderCancelFeedbackAPIRequest.go | 52 + ...erConsignorderCancelFeedbackAPIResponse.go | 27 + ...plierConsignorderCancelFeedbackResponse.go | 27 - ...ierConsignorderNotifyReceivedAPIRequest.go | 80 + ...erConsignorderNotifyReceivedAPIResponse.go | 27 + ...plierConsignorderNotifyReceivedResponse.go | 27 - ...erConsignorderNotifyTmsChangeAPIRequest.go | 52 + ...rConsignorderNotifyTmsChangeAPIResponse.go | 27 + ...lierConsignorderNotifyTmsChangeResponse.go | 27 - ...onsignorderOutofstockCallbackAPIRequest.go | 52 + ...nsignorderOutofstockCallbackAPIResponse.go | 27 + ...rConsignorderOutofstockCallbackResponse.go | 27 - ...cpUopSupplierConsignorderShipAPIRequest.go | 52 + ...pUopSupplierConsignorderShipAPIResponse.go | 27 + ...AscpUopSupplierConsignorderShipResponse.go | 27 - ...UopSupplierReverseorderCreateAPIRequest.go | 52 + ...opSupplierReverseorderCreateAPIResponse.go | 25 + ...cpUopSupplierReverseorderCreateResponse.go | 25 - ...ReverseorderInstorageFeedbackAPIRequest.go | 52 + ...everseorderInstorageFeedbackAPIResponse.go | 27 + ...erReverseorderInstorageFeedbackResponse.go | 27 - ...erReverseorderInstorageResultAPIRequest.go | 52 + ...rReverseorderInstorageResultAPIResponse.go | 27 + ...lierReverseorderInstorageResultResponse.go | 27 - ...baAscpUopSupplierWaybillQueryAPIRequest.go | 52 + ...aAscpUopSupplierWaybillQueryAPIResponse.go | 27 + ...babaAscpUopSupplierWaybillQueryResponse.go | 27 - ...aoPresalesorderConsignconfirmAPIRequest.go | 52 + ...oPresalesorderConsignconfirmAPIResponse.go | 27 + ...obaoPresalesorderConsignconfirmResponse.go | 27 - ...pUopTaobaoPresalesorderCreateAPIRequest.go | 52 + ...UopTaobaoPresalesorderCreateAPIResponse.go | 27 + ...scpUopTaobaoPresalesorderCreateResponse.go | 27 - ...baAscpUopTaobaoWaybillQuerycpAPIRequest.go | 52 + ...aAscpUopTaobaoWaybillQuerycpAPIResponse.go | 27 + ...babaAscpUopTaobaoWaybillQuerycpResponse.go | 27 - ...AlibabaAscpUopTobPackageQueryAPIRequest.go | 52 + ...libabaAscpUopTobPackageQueryAPIResponse.go | 27 + .../AlibabaAscpUopTobPackageQueryResponse.go | 27 - .../AliexpressAscpFfoItemQueryAPIRequest.go | 52 + .../AliexpressAscpFfoItemQueryAPIResponse.go | 27 + .../AliexpressAscpFfoItemQueryResponse.go | 27 - .../AliexpressAscpFfoQueryAPIRequest.go | 52 + .../AliexpressAscpFfoQueryAPIResponse.go | 27 + .../ascpffo/AliexpressAscpFfoQueryResponse.go | 27 - .../AliexpressAscpFroItemQueryAPIRequest.go | 52 + .../AliexpressAscpFroItemQueryAPIResponse.go | 27 + .../AliexpressAscpFroItemQueryResponse.go | 27 - .../AliexpressAscpFroQueryAPIRequest.go | 52 + .../AliexpressAscpFroQueryAPIResponse.go | 27 + .../ascpffo/AliexpressAscpFroQueryResponse.go | 27 - .../AliexpressAscpItemQueryAPIRequest.go | 52 + .../AliexpressAscpItemQueryAPIResponse.go | 27 + .../AliexpressAscpItemQueryResponse.go | 27 - .../AliexpressAscpPoItemQueryAPIRequest.go | 52 + .../AliexpressAscpPoItemQueryAPIResponse.go | 27 + .../AliexpressAscpPoItemQueryResponse.go | 27 - .../AliexpressAscpPoQueryAPIRequest.go | 52 + .../AliexpressAscpPoQueryAPIResponse.go | 27 + .../ascpffo/AliexpressAscpPoQueryResponse.go | 27 - .../AliexpressAscpRoItemQueryAPIRequest.go | 52 + .../AliexpressAscpRoItemQueryAPIResponse.go | 27 + .../AliexpressAscpRoItemQueryResponse.go | 27 - .../AliexpressAscpRoQueryAPIRequest.go | 52 + .../AliexpressAscpRoQueryAPIResponse.go | 27 + .../ascpffo/AliexpressAscpRoQueryResponse.go | 27 - .../AliexpressFulfillmentEventAPIRequest.go | 52 + .../AliexpressFulfillmentEventAPIResponse.go | 27 + .../AliexpressFulfillmentEventResponse.go | 27 - ...cpQccSampleCancelItemRelationAPIRequest.go | 52 + ...pQccSampleCancelItemRelationAPIResponse.go | 27 + ...AscpQccSampleCancelItemRelationResponse.go | 27 - .../AlibabaAscpQccSampleUpdateAPIRequest.go | 52 + .../AlibabaAscpQccSampleUpdateAPIResponse.go | 27 + .../AlibabaAscpQccSampleUpdateResponse.go | 27 - ...obaoAuctionGovDataAnnuallyGetAPIRequest.go | 99 + ...baoAuctionGovDataAnnuallyGetAPIResponse.go | 32 + ...TaobaoAuctionGovDataAnnuallyGetResponse.go | 32 - ...aobaoAuctionGovDataMonthlyGetAPIRequest.go | 100 + ...obaoAuctionGovDataMonthlyGetAPIResponse.go | 33 + .../TaobaoAuctionGovDataMonthlyGetResponse.go | 33 - ...obaoAuctionGovDataRealtimeGetAPIRequest.go | 66 + ...baoAuctionGovDataRealtimeGetAPIResponse.go | 27 + ...TaobaoAuctionGovDataRealtimeGetResponse.go | 27 - .../TaobaoAuctionGovDataTopnGetAPIRequest.go | 108 + .../TaobaoAuctionGovDataTopnGetAPIResponse.go | 27 + .../TaobaoAuctionGovDataTopnGetResponse.go | 27 - .../TaobaoAuctionGovGetLatestbidAPIRequest.go | 80 + ...TaobaoAuctionGovGetLatestbidAPIResponse.go | 27 + .../TaobaoAuctionGovGetLatestbidResponse.go | 27 - ...tonaviApiTrafficboardImageGetAPIRequest.go | 122 ++ ...onaviApiTrafficboardImageGetAPIResponse.go | 27 + ...AutonaviApiTrafficboardImageGetResponse.go | 27 - ...itripTravelAxinPoiDetailQueryAPIRequest.go | 52 + ...tripTravelAxinPoiDetailQueryAPIResponse.go | 27 + ...AlitripTravelAxinPoiDetailQueryResponse.go | 27 - ...baoAlitripTravelAxinPoiSearchAPIRequest.go | 52 + ...aoAlitripTravelAxinPoiSearchAPIResponse.go | 27 + ...aobaoAlitripTravelAxinPoiSearchResponse.go | 27 - ...TaobaoAlitripAxinTransFundAddAPIRequest.go | 52 + ...aobaoAlitripAxinTransFundAddAPIResponse.go | 27 + .../TaobaoAlitripAxinTransFundAddResponse.go | 27 - ...aoAlitripAxinTransFundConfirmAPIRequest.go | 52 + ...oAlitripAxinTransFundConfirmAPIResponse.go | 27 + ...obaoAlitripAxinTransFundConfirmResponse.go | 27 - ...tripAxinTransFundQueryByOrderAPIRequest.go | 52 + ...ripAxinTransFundQueryByOrderAPIResponse.go | 27 + ...litripAxinTransFundQueryByOrderResponse.go | 27 - ...baoAlitripAxinTransFundUpdateAPIRequest.go | 52 + ...aoAlitripAxinTransFundUpdateAPIResponse.go | 27 + ...aobaoAlitripAxinTransFundUpdateResponse.go | 27 - ...oAlitripAxinTransPayImgUploadAPIRequest.go | 66 + ...AlitripAxinTransPayImgUploadAPIResponse.go | 27 + ...baoAlitripAxinTransPayImgUploadResponse.go | 27 - ...tripAxinTransPayRegisterAuditAPIRequest.go | 52 + ...ripAxinTransPayRegisterAuditAPIResponse.go | 27 + ...litripAxinTransPayRegisterAuditResponse.go | 27 - ...ripAxinTransPayRegisterCreateAPIRequest.go | 52 + ...ipAxinTransPayRegisterCreateAPIResponse.go | 27 + ...itripAxinTransPayRegisterCreateResponse.go | 27 - ...ipAxinTransPayRegisterReapplyAPIRequest.go | 53 + ...pAxinTransPayRegisterReapplyAPIResponse.go | 28 + ...tripAxinTransPayRegisterReapplyResponse.go | 28 - ...oAlitripAxinTransPaySignCheckAPIRequest.go | 52 + ...AlitripAxinTransPaySignCheckAPIResponse.go | 27 + ...baoAlitripAxinTransPaySignCheckResponse.go | 27 - ...oAlitripAxinTransRefundCreateAPIRequest.go | 52 + ...AlitripAxinTransRefundCreateAPIResponse.go | 27 + ...baoAlitripAxinTransRefundCreateResponse.go | 27 - model/b2bcert/AlibabaAuthCertGetAPIRequest.go | 66 + .../b2bcert/AlibabaAuthCertGetAPIResponse.go | 27 + .../AlibabaBaichuanAsoActivateAPIRequest.go | 94 + .../AlibabaBaichuanAsoActivateAPIResponse.go | 27 + .../AlibabaBaichuanAsoActivateResponse.go | 27 - .../AlibabaBaichuanAsoQueryAPIRequest.go | 80 + .../AlibabaBaichuanAsoQueryAPIResponse.go | 27 + .../AlibabaBaichuanAsoQueryResponse.go | 27 - .../AlibabaBaichuanCtgContentGetAPIRequest.go | 108 + ...AlibabaBaichuanCtgContentGetAPIResponse.go | 35 + .../AlibabaBaichuanCtgContentGetResponse.go | 35 - ...libabaBaichuanCtgUserRelationAPIRequest.go | 80 + ...ibabaBaichuanCtgUserRelationAPIResponse.go | 27 + .../AlibabaBaichuanCtgUserRelationResponse.go | 27 - ...AlibabaBaichuanCtgVideoUploadAPIRequest.go | 206 ++ ...libabaBaichuanCtgVideoUploadAPIResponse.go | 27 + .../AlibabaBaichuanCtgVideoUploadResponse.go | 27 - ...ibabaBaichuanTaopasswordCheckAPIRequest.go | 66 + ...babaBaichuanTaopasswordCheckAPIResponse.go | 27 + ...AlibabaBaichuanTaopasswordCheckResponse.go | 27 - ...babaBaichuanTaopasswordConfigAPIRequest.go | 38 + ...abaBaichuanTaopasswordConfigAPIResponse.go | 27 + ...libabaBaichuanTaopasswordConfigResponse.go | 27 - ...ibabaBaichuanTaopasswordQueryAPIRequest.go | 52 + ...babaBaichuanTaopasswordQueryAPIResponse.go | 27 + ...AlibabaBaichuanTaopasswordQueryResponse.go | 27 - .../TaobaoBaichuanItemSubscribeAPIRequest.go | 52 + .../TaobaoBaichuanItemSubscribeAPIResponse.go | 27 + ...anItemSubscribeDailyLeftQueryAPIRequest.go | 38 + ...nItemSubscribeDailyLeftQueryAPIResponse.go | 27 + ...huanItemSubscribeDailyLeftQueryResponse.go | 27 - ...uanItemSubscribeRelationQueryAPIRequest.go | 52 + ...anItemSubscribeRelationQueryAPIResponse.go | 27 + ...chuanItemSubscribeRelationQueryResponse.go | 27 - ...anItemSubscribeRelationsQueryAPIRequest.go | 52 + ...nItemSubscribeRelationsQueryAPIResponse.go | 27 + ...huanItemSubscribeRelationsQueryResponse.go | 27 - .../TaobaoBaichuanItemSubscribeResponse.go | 27 - ...TaobaoBaichuanItemUnsubscribeAPIRequest.go | 52 + ...aobaoBaichuanItemUnsubscribeAPIResponse.go | 27 + .../TaobaoBaichuanItemUnsubscribeResponse.go | 27 - .../TaobaoBaichuanItemsSubscribeAPIRequest.go | 52 + ...TaobaoBaichuanItemsSubscribeAPIResponse.go | 27 + .../TaobaoBaichuanItemsSubscribeResponse.go | 27 - ...aobaoBaichuanItemsUnsubscribeAPIRequest.go | 52 + ...obaoBaichuanItemsUnsubscribeAPIResponse.go | 27 + ...anItemsUnsubscribeByConditionAPIRequest.go | 52 + ...nItemsUnsubscribeByConditionAPIResponse.go | 27 + ...huanItemsUnsubscribeByConditionResponse.go | 27 - .../TaobaoBaichuanItemsUnsubscribeResponse.go | 27 - ...aobaoBaichuanOpenaccountLoginAPIRequest.go | 52 + ...obaoBaichuanOpenaccountLoginAPIResponse.go | 27 + .../TaobaoBaichuanOpenaccountLoginResponse.go | 27 - ...ichuanOpenaccountLoginbytokenAPIRequest.go | 52 + ...chuanOpenaccountLoginbytokenAPIResponse.go | 27 + ...BaichuanOpenaccountLoginbytokenResponse.go | 27 - ...anOpenaccountLogindoublecheckAPIRequest.go | 52 + ...nOpenaccountLogindoublecheckAPIResponse.go | 27 + ...huanOpenaccountLogindoublecheckResponse.go | 27 - ...penaccountNewlogindoublecheckAPIRequest.go | 52 + ...enaccountNewlogindoublecheckAPIResponse.go | 27 + ...nOpenaccountNewlogindoublecheckResponse.go | 27 - ...chuanOpenaccountPasswordResetAPIRequest.go | 52 + ...huanOpenaccountPasswordResetAPIResponse.go | 27 + ...aichuanOpenaccountPasswordResetResponse.go | 27 - ...aoBaichuanOpenaccountRegisterAPIRequest.go | 52 + ...oBaichuanOpenaccountRegisterAPIResponse.go | 27 + ...obaoBaichuanOpenaccountRegisterResponse.go | 27 - ...nOpenaccountRegistercodeCheckAPIRequest.go | 52 + ...OpenaccountRegistercodeCheckAPIResponse.go | 27 + ...uanOpenaccountRegistercodeCheckResponse.go | 27 - ...anOpenaccountRegistercodeSendAPIRequest.go | 52 + ...nOpenaccountRegistercodeSendAPIResponse.go | 27 + ...huanOpenaccountRegistercodeSendResponse.go | 27 - ...huanOpenaccountResetcodeCheckAPIRequest.go | 52 + ...uanOpenaccountResetcodeCheckAPIResponse.go | 27 + ...ichuanOpenaccountResetcodeCheckResponse.go | 27 - ...chuanOpenaccountResetcodeSendAPIRequest.go | 52 + ...huanOpenaccountResetcodeSendAPIResponse.go | 27 + ...aichuanOpenaccountResetcodeSendResponse.go | 27 - .../TaobaoBaichuanOrderurlGetAPIRequest.go | 52 + .../TaobaoBaichuanOrderurlGetAPIResponse.go | 27 + .../TaobaoBaichuanOrderurlGetResponse.go | 27 - .../TaobaoBaichuanPayresultQueryAPIRequest.go | 52 + ...TaobaoBaichuanPayresultQueryAPIResponse.go | 27 + .../TaobaoBaichuanPayresultQueryResponse.go | 27 - .../TaobaoBaichuanTaokeTraceAPIRequest.go | 52 + .../TaobaoBaichuanTaokeTraceAPIResponse.go | 27 + .../TaobaoBaichuanTaokeTraceResponse.go | 27 - .../TaobaoBaichuanUserLoginAPIRequest.go | 52 + .../TaobaoBaichuanUserLoginAPIResponse.go | 27 + .../TaobaoBaichuanUserLoginResponse.go | 27 - ...aobaoBaichuanUserLoginbytokenAPIRequest.go | 52 + ...obaoBaichuanUserLoginbytokenAPIResponse.go | 27 + .../TaobaoBaichuanUserLoginbytokenResponse.go | 27 - ...oBaichuanUserLogindoublecheckAPIRequest.go | 52 + ...BaichuanUserLogindoublecheckAPIResponse.go | 27 + ...baoBaichuanUserLogindoublecheckResponse.go | 27 - ...babaBaichuanCtgToutiaoContentAPIRequest.go | 52 + ...abaBaichuanCtgToutiaoContentAPIResponse.go | 27 + ...libabaBaichuanCtgToutiaoContentResponse.go | 27 - .../TaobaoBaodianDepositGetAPIRequest.go | 38 + .../TaobaoBaodianDepositGetAPIResponse.go | 27 + .../TaobaoBaodianDepositGetResponse.go | 27 - ...odianDepositGetWithSdkversionAPIRequest.go | 80 + ...dianDepositGetWithSdkversionAPIResponse.go | 27 + ...BaodianDepositGetWithSdkversionResponse.go | 27 - .../TaobaoBaodianServerDateGetAPIRequest.go | 38 + .../TaobaoBaodianServerDateGetAPIResponse.go | 27 + .../TaobaoBaodianServerDateGetResponse.go | 27 - ...obaoBaodianServerSdkConfigGetAPIRequest.go | 94 + ...baoBaodianServerSdkConfigGetAPIResponse.go | 27 + ...TaobaoBaodianServerSdkConfigGetResponse.go | 27 - .../TaobaoDegUserGamegiftQueryAPIRequest.go | 66 + .../TaobaoDegUserGamegiftQueryAPIResponse.go | 27 + .../TaobaoDegUserGamegiftQueryResponse.go | 27 - ...nClaimReturngoodsstatusUpdateAPIRequest.go | 66 + ...ClaimReturngoodsstatusUpdateAPIResponse.go | 27 + ...ianClaimReturngoodsstatusUpdateResponse.go | 27 - ...anClaimSurveyConclusionSubmitAPIRequest.go | 52 + ...nClaimSurveyConclusionSubmitAPIResponse.go | 27 + ...xianClaimSurveyConclusionSubmitResponse.go | 27 - .../AlipayBaoxianClaimUpdateAPIRequest.go | 178 ++ .../AlipayBaoxianClaimUpdateAPIResponse.go | 27 + .../AlipayBaoxianClaimUpdateResponse.go | 27 - ...yBaoxianClaimUploadattachmentAPIRequest.go | 150 ++ ...BaoxianClaimUploadattachmentAPIResponse.go | 27 + ...payBaoxianClaimUploadattachmentResponse.go | 27 - .../TaobaoBeehiveItemCpsUrlAPIRequest.go | 108 + .../TaobaoBeehiveItemCpsUrlAPIResponse.go | 27 + .../TaobaoBeehiveItemCpsUrlResponse.go | 27 - .../TaobaoBeehiveItemCpsUrlResultDo.go | 13 + model/bill/TaobaoBillAccountsGetAPIRequest.go | 66 + .../bill/TaobaoBillAccountsGetAPIResponse.go | 29 + model/bill/TaobaoBillAccountsGetResponse.go | 29 - model/bill/TaobaoBillBillsGetAPIRequest.go | 164 ++ model/bill/TaobaoBillBillsGetAPIResponse.go | 31 + model/bill/TaobaoBillBillsGetResponse.go | 31 - .../bill/TaobaoBillBookBillsGetAPIRequest.go | 136 ++ .../bill/TaobaoBillBookBillsGetAPIResponse.go | 31 + model/bill/TaobaoBillBookBillsGetResponse.go | 31 - model/bill/TaobaoTaeAccountsGetAPIRequest.go | 66 + model/bill/TaobaoTaeAccountsGetAPIResponse.go | 29 + model/bill/TaobaoTaeAccountsGetResponse.go | 29 - model/bill/TaobaoTaeBillGetAPIRequest.go | 94 + model/bill/TaobaoTaeBillGetAPIResponse.go | 27 + model/bill/TaobaoTaeBillGetResponse.go | 27 - model/bill/TaobaoTaeBillsGetAPIRequest.go | 164 ++ model/bill/TaobaoTaeBillsGetAPIResponse.go | 31 + model/bill/TaobaoTaeBillsGetResponse.go | 31 - model/bill/TaobaoTaeBookBillGetAPIRequest.go | 94 + model/bill/TaobaoTaeBookBillGetAPIResponse.go | 27 + model/bill/TaobaoTaeBookBillGetResponse.go | 27 - model/bill/TaobaoTaeBookBillsGetAPIRequest.go | 136 ++ .../bill/TaobaoTaeBookBillsGetAPIResponse.go | 31 + model/bill/TaobaoTaeBookBillsGetResponse.go | 31 - .../TaobaoBlackvipUserinfoGetAPIRequest.go | 38 + .../TaobaoBlackvipUserinfoGetAPIResponse.go | 27 + .../TaobaoBlackvipUserinfoGetResponse.go | 27 - ...obaoBrandStarshopRptTargetGetAPIRequest.go | 122 ++ ...baoBrandStarshopRptTargetGetAPIResponse.go | 29 + ...TaobaoBrandStarshopRptTargetGetResponse.go | 29 - ...aoBrandStartshopRptAccountGetAPIRequest.go | 94 + ...oBrandStartshopRptAccountGetAPIResponse.go | 29 + ...obaoBrandStartshopRptAccountGetResponse.go | 29 - ...aoBrandStartshopRptAdgroupGetAPIRequest.go | 122 ++ ...oBrandStartshopRptAdgroupGetAPIResponse.go | 29 + ...obaoBrandStartshopRptAdgroupGetResponse.go | 29 - ...oBrandStartshopRptCampaignGetAPIRequest.go | 94 + ...BrandStartshopRptCampaignGetAPIResponse.go | 29 + ...baoBrandStartshopRptCampaignGetResponse.go | 29 - ...oBrandStartshopRptCreativeGetAPIRequest.go | 122 ++ ...BrandStartshopRptCreativeGetAPIResponse.go | 29 + ...baoBrandStartshopRptCreativeGetResponse.go | 29 - ...andStartshopRptWordpackageGetAPIRequest.go | 122 ++ ...ndStartshopRptWordpackageGetAPIResponse.go | 29 + ...BrandStartshopRptWordpackageGetResponse.go | 29 - ...ndhubSpecialshowRptAdgroupGetAPIRequest.go | 122 ++ ...dhubSpecialshowRptAdgroupGetAPIResponse.go | 29 + ...randhubSpecialshowRptAdgroupGetResponse.go | 29 - ...dhubSpecialshowRptCampaignGetAPIRequest.go | 108 + ...hubSpecialshowRptCampaignGetAPIResponse.go | 29 + ...andhubSpecialshowRptCampaignGetResponse.go | 29 - .../AlitripBtipCostCenterQueryAPIRequest.go | 52 + .../AlitripBtipCostCenterQueryAPIResponse.go | 27 + .../AlitripBtipCostCenterQueryResponse.go | 27 - model/btrip/AlitripBtripApplyGetAPIRequest.go | 94 + .../btrip/AlitripBtripApplyGetAPIResponse.go | 27 + model/btrip/AlitripBtripApplyGetResponse.go | 27 - .../AlitripBtripApplySearchAPIRequest.go | 52 + .../AlitripBtripApplySearchAPIResponse.go | 27 + .../btrip/AlitripBtripApplySearchResponse.go | 27 - .../AlitripBtripApprovalModifyAPIRequest.go | 52 + .../AlitripBtripApprovalModifyAPIResponse.go | 27 + .../AlitripBtripApprovalModifyResponse.go | 27 - .../AlitripBtripApprovalNewAPIRequest.go | 52 + .../AlitripBtripApprovalNewAPIResponse.go | 27 + .../btrip/AlitripBtripApprovalNewResponse.go | 27 - .../AlitripBtripApprovalUpdateAPIRequest.go | 52 + .../AlitripBtripApprovalUpdateAPIResponse.go | 27 + .../AlitripBtripApprovalUpdateResponse.go | 27 - .../AlitripBtripCityCarApplyAddAPIRequest.go | 52 + .../AlitripBtripCityCarApplyAddAPIResponse.go | 31 + .../AlitripBtripCityCarApplyAddResponse.go | 31 - ...itripBtripCityCarApplyApproveAPIRequest.go | 52 + ...tripBtripCityCarApplyApproveAPIResponse.go | 31 + ...AlitripBtripCityCarApplyApproveResponse.go | 31 - ...AlitripBtripCityCarApplyQueryAPIRequest.go | 52 + ...litripBtripCityCarApplyQueryAPIResponse.go | 27 + .../AlitripBtripCityCarApplyQueryResponse.go | 27 - .../AlitripBtripCorpopApplyAddAPIRequest.go | 52 + .../AlitripBtripCorpopApplyAddAPIResponse.go | 27 + .../AlitripBtripCorpopApplyAddResponse.go | 27 - ...litripBtripCorpopApplyApproveAPIRequest.go | 52 + ...itripBtripCorpopApplyApproveAPIResponse.go | 33 + .../AlitripBtripCorpopApplyApproveResponse.go | 33 - .../AlitripBtripCorpopApplyGetAPIRequest.go | 52 + .../AlitripBtripCorpopApplyGetAPIResponse.go | 27 + .../AlitripBtripCorpopApplyGetResponse.go | 27 - ...AlitripBtripCorpopApplyModifyAPIRequest.go | 52 + ...litripBtripCorpopApplyModifyAPIResponse.go | 27 + .../AlitripBtripCorpopApplyModifyResponse.go | 27 - ...AlitripBtripCorpopApplySearchAPIRequest.go | 52 + ...litripBtripCorpopApplySearchAPIResponse.go | 27 + .../AlitripBtripCorpopApplySearchResponse.go | 27 - .../AlitripBtripCorpopDepartSyncAPIRequest.go | 52 + ...AlitripBtripCorpopDepartSyncAPIResponse.go | 33 + .../AlitripBtripCorpopDepartSyncResponse.go | 33 - .../AlitripBtripCorpopUserSyncAPIRequest.go | 52 + .../AlitripBtripCorpopUserSyncAPIResponse.go | 33 + .../AlitripBtripCorpopUserSyncResponse.go | 33 - .../AlitripBtripCostCenterDeleteAPIRequest.go | 52 + ...AlitripBtripCostCenterDeleteAPIResponse.go | 27 + .../AlitripBtripCostCenterDeleteResponse.go | 27 - ...itripBtripCostCenterEntityAddAPIRequest.go | 52 + ...tripBtripCostCenterEntityAddAPIResponse.go | 27 + ...AlitripBtripCostCenterEntityAddResponse.go | 27 - ...ipBtripCostCenterEntityDeleteAPIRequest.go | 52 + ...pBtripCostCenterEntityDeleteAPIResponse.go | 27 + ...tripBtripCostCenterEntityDeleteResponse.go | 27 - ...itripBtripCostCenterEntitySetAPIRequest.go | 52 + ...tripBtripCostCenterEntitySetAPIResponse.go | 27 + ...AlitripBtripCostCenterEntitySetResponse.go | 27 - .../AlitripBtripCostCenterGetAPIRequest.go | 66 + .../AlitripBtripCostCenterGetAPIResponse.go | 27 + .../AlitripBtripCostCenterGetResponse.go | 27 - .../AlitripBtripCostCenterModifyAPIRequest.go | 52 + ...AlitripBtripCostCenterModifyAPIResponse.go | 27 + .../AlitripBtripCostCenterModifyResponse.go | 27 - .../AlitripBtripCostCenterNewAPIRequest.go | 52 + .../AlitripBtripCostCenterNewAPIResponse.go | 27 + .../AlitripBtripCostCenterNewResponse.go | 27 - ...litripBtripCostCenterTransferAPIRequest.go | 52 + ...itripBtripCostCenterTransferAPIResponse.go | 27 + .../AlitripBtripCostCenterTransferResponse.go | 27 - .../AlitripBtripEmployeeQueryAPIRequest.go | 52 + .../AlitripBtripEmployeeQueryAPIResponse.go | 27 + .../AlitripBtripEmployeeQueryResponse.go | 27 - ...AlitripBtripFlightCitySuggestAPIRequest.go | 80 + ...litripBtripFlightCitySuggestAPIResponse.go | 27 + .../AlitripBtripFlightCitySuggestResponse.go | 27 - ...AlitripBtripFlightOrderSearchAPIRequest.go | 52 + ...litripBtripFlightOrderSearchAPIResponse.go | 27 + .../AlitripBtripFlightOrderSearchResponse.go | 27 - ...pHotelDistributionOrderCancelAPIRequest.go | 52 + ...HotelDistributionOrderCancelAPIResponse.go | 27 + ...ripHotelDistributionOrderCancelResponse.go | 27 - ...pHotelDistributionOrderCreateAPIRequest.go | 52 + ...HotelDistributionOrderCreateAPIResponse.go | 27 + ...ripHotelDistributionOrderCreateResponse.go | 27 - ...tripHotelDistributionOrderPayAPIRequest.go | 52 + ...ripHotelDistributionOrderPayAPIResponse.go | 31 + ...pBtripHotelDistributionOrderPayResponse.go | 31 - ...otelDistributionOrderValidateAPIRequest.go | 52 + ...telDistributionOrderValidateAPIResponse.go | 27 + ...pHotelDistributionOrderValidateResponse.go | 27 - ...HotelDistributionSearchDetailAPIRequest.go | 52 + ...otelDistributionSearchDetailAPIResponse.go | 27 + ...ipHotelDistributionSearchDetailResponse.go | 27 - ...telDistributionSearchLowPriceAPIRequest.go | 52 + ...elDistributionSearchLowPriceAPIResponse.go | 27 + ...HotelDistributionSearchLowPriceResponse.go | 27 - ...HotelDistributionSearchStaticAPIRequest.go | 52 + ...otelDistributionSearchStaticAPIResponse.go | 27 + ...ipHotelDistributionSearchStaticResponse.go | 27 - .../AlitripBtripHotelOrderSearchAPIRequest.go | 52 + ...AlitripBtripHotelOrderSearchAPIResponse.go | 27 + .../AlitripBtripHotelOrderSearchResponse.go | 27 - .../btrip/AlitripBtripInvoiceGetAPIRequest.go | 66 + .../AlitripBtripInvoiceGetAPIResponse.go | 27 + model/btrip/AlitripBtripInvoiceGetResponse.go | 27 - .../AlitripBtripInvoiceSearchAPIRequest.go | 80 + .../AlitripBtripInvoiceSearchAPIResponse.go | 27 + .../AlitripBtripInvoiceSearchResponse.go | 27 - ...AlitripBtripInvoiceSettingAddAPIRequest.go | 52 + ...litripBtripInvoiceSettingAddAPIResponse.go | 31 + .../AlitripBtripInvoiceSettingAddResponse.go | 31 - ...tripBtripInvoiceSettingDeleteAPIRequest.go | 52 + ...ripBtripInvoiceSettingDeleteAPIResponse.go | 31 + ...litripBtripInvoiceSettingDeleteResponse.go | 31 - ...tripBtripInvoiceSettingModifyAPIRequest.go | 52 + ...ripBtripInvoiceSettingModifyAPIResponse.go | 31 + ...litripBtripInvoiceSettingModifyResponse.go | 31 - ...litripBtripInvoiceSettingRuleAPIRequest.go | 52 + ...itripBtripInvoiceSettingRuleAPIResponse.go | 31 + .../AlitripBtripInvoiceSettingRuleResponse.go | 31 - .../AlitripBtripMonthbillUrlGetAPIRequest.go | 52 + .../AlitripBtripMonthbillUrlGetAPIResponse.go | 31 + .../AlitripBtripMonthbillUrlGetResponse.go | 31 - ...tripBtripOpenCostCenterDeleteAPIRequest.go | 52 + ...ripBtripOpenCostCenterDeleteAPIResponse.go | 29 + ...litripBtripOpenCostCenterDeleteResponse.go | 29 - ...pBtripOpenCostCenterEntityAddAPIRequest.go | 52 + ...BtripOpenCostCenterEntityAddAPIResponse.go | 31 + ...ripBtripOpenCostCenterEntityAddResponse.go | 31 - ...ripOpenCostCenterEntityDeleteAPIRequest.go | 52 + ...ipOpenCostCenterEntityDeleteAPIResponse.go | 31 + ...BtripOpenCostCenterEntityDeleteResponse.go | 31 - ...pBtripOpenCostCenterEntitySetAPIRequest.go | 52 + ...BtripOpenCostCenterEntitySetAPIResponse.go | 31 + ...ripBtripOpenCostCenterEntitySetResponse.go | 31 - ...tripBtripOpenCostCenterModifyAPIRequest.go | 52 + ...ripBtripOpenCostCenterModifyAPIResponse.go | 29 + ...litripBtripOpenCostCenterModifyResponse.go | 29 - ...AlitripBtripOpenCostCenterNewAPIRequest.go | 52 + ...litripBtripOpenCostCenterNewAPIResponse.go | 31 + .../AlitripBtripOpenCostCenterNewResponse.go | 31 - ...itripBtripOpenCostCenterQueryAPIRequest.go | 52 + ...tripBtripOpenCostCenterQueryAPIResponse.go | 31 + ...AlitripBtripOpenCostCenterQueryResponse.go | 31 - ...ipBtripOpenCostCenterTransferAPIRequest.go | 52 + ...pBtripOpenCostCenterTransferAPIResponse.go | 29 + ...tripBtripOpenCostCenterTransferResponse.go | 29 - ...AlitripBtripOpenInvoiceSearchAPIRequest.go | 52 + ...litripBtripOpenInvoiceSearchAPIResponse.go | 31 + .../AlitripBtripOpenInvoiceSearchResponse.go | 31 - ...ripOpenSupplychainFlightTradeAPIRequest.go | 52 + ...ipOpenSupplychainFlightTradeAPIResponse.go | 27 + ...BtripOpenSupplychainFlightTradeResponse.go | 27 - ...tripOpenSupplychainHotelTradeAPIRequest.go | 52 + ...ripOpenSupplychainHotelTradeAPIResponse.go | 27 + ...pBtripOpenSupplychainHotelTradeResponse.go | 27 - ...tripOpenSupplychainTrainTradeAPIRequest.go | 52 + ...ripOpenSupplychainTrainTradeAPIResponse.go | 27 + ...pBtripOpenSupplychainTrainTradeResponse.go | 27 - ...ipOpenSupplychainVehicleTradeAPIRequest.go | 52 + ...pOpenSupplychainVehicleTradeAPIResponse.go | 27 + ...tripOpenSupplychainVehicleTradeResponse.go | 27 - ...ipBtripOpenplatformAddressGetAPIRequest.go | 52 + ...pBtripOpenplatformAddressGetAPIResponse.go | 27 + ...tripBtripOpenplatformAddressGetResponse.go | 27 - .../btrip/AlitripBtripProjectAddAPIRequest.go | 52 + .../AlitripBtripProjectAddAPIResponse.go | 31 + model/btrip/AlitripBtripProjectAddResponse.go | 31 - .../AlitripBtripProjectDeleteAPIRequest.go | 52 + .../AlitripBtripProjectDeleteAPIResponse.go | 31 + .../AlitripBtripProjectDeleteResponse.go | 31 - .../AlitripBtripProjectModifyAPIRequest.go | 52 + .../AlitripBtripProjectModifyAPIResponse.go | 31 + .../AlitripBtripProjectModifyResponse.go | 31 - ...pSupplychainBusIndustrySearchAPIRequest.go | 52 + ...SupplychainBusIndustrySearchAPIResponse.go | 27 + ...ripSupplychainBusIndustrySearchResponse.go | 27 - ...ripBtripSupplychainFlightCityAPIRequest.go | 52 + ...ipBtripSupplychainFlightCityAPIResponse.go | 31 + ...itripBtripSupplychainFlightCityResponse.go | 31 - ...pplychainFlightIndustrySearchAPIRequest.go | 52 + ...plychainFlightIndustrySearchAPIResponse.go | 27 + ...SupplychainFlightIndustrySearchResponse.go | 27 - ...pBtripSupplychainFlightSearchAPIRequest.go | 52 + ...BtripSupplychainFlightSearchAPIResponse.go | 27 + ...ripBtripSupplychainFlightSearchResponse.go | 27 - ...ipBtripSupplychainHotelSearchAPIRequest.go | 52 + ...pBtripSupplychainHotelSearchAPIResponse.go | 27 + ...tripBtripSupplychainHotelSearchResponse.go | 27 - ...tripBtripSupplychainTrainCityAPIRequest.go | 52 + ...ripBtripSupplychainTrainCityAPIResponse.go | 31 + ...litripBtripSupplychainTrainCityResponse.go | 31 - ...upplychainTrainIndustrySearchAPIRequest.go | 52 + ...pplychainTrainIndustrySearchAPIResponse.go | 27 + ...pSupplychainTrainIndustrySearchResponse.go | 27 - ...ipBtripSupplychainTrainSearchAPIRequest.go | 52 + ...pBtripSupplychainTrainSearchAPIResponse.go | 27 + ...tripBtripSupplychainTrainSearchResponse.go | 27 - ...BtripSupplychainVehicleSearchAPIRequest.go | 52 + ...tripSupplychainVehicleSearchAPIResponse.go | 27 + ...ipBtripSupplychainVehicleSearchResponse.go | 27 - .../AlitripBtripTrainCitySuggestAPIRequest.go | 80 + ...AlitripBtripTrainCitySuggestAPIResponse.go | 27 + .../AlitripBtripTrainCitySuggestResponse.go | 27 - .../AlitripBtripTrainOrderSearchAPIRequest.go | 52 + ...AlitripBtripTrainOrderSearchAPIResponse.go | 27 + .../AlitripBtripTrainOrderSearchResponse.go | 27 - ...litripBtripVehicleOrderSearchAPIRequest.go | 52 + ...itripBtripVehicleOrderSearchAPIResponse.go | 27 + .../AlitripBtripVehicleOrderSearchResponse.go | 27 - ...pBusTicketsInsuranceRecommendAPIRequest.go | 52 + ...BusTicketsInsuranceRecommendAPIResponse.go | 27 + ...ripBusTicketsInsuranceRecommendResponse.go | 27 - ...obaoBusAgentBookticketConfirmAPIRequest.go | 52 + ...baoBusAgentBookticketConfirmAPIResponse.go | 31 + ...TaobaoBusAgentBookticketConfirmResponse.go | 31 - .../bus/TaobaoBusAgentCityChangeAPIRequest.go | 52 + .../TaobaoBusAgentCityChangeAPIResponse.go | 31 + model/bus/TaobaoBusAgentCityChangeResponse.go | 31 - ...BusAgentMultipleRefundConfirmAPIRequest.go | 52 + ...usAgentMultipleRefundConfirmAPIResponse.go | 31 + ...aoBusAgentMultipleRefundConfirmResponse.go | 31 - .../TaobaoBusAgentRefundConfirmAPIRequest.go | 52 + .../TaobaoBusAgentRefundConfirmAPIResponse.go | 31 + .../TaobaoBusAgentRefundConfirmResponse.go | 31 - ...aoBusAgentRefundticketConfirmAPIRequest.go | 52 + ...oBusAgentRefundticketConfirmAPIResponse.go | 31 + ...obaoBusAgentRefundticketConfirmResponse.go | 31 - ...aoBusAgentReturnticketConfirmAPIRequest.go | 52 + ...oBusAgentReturnticketConfirmAPIResponse.go | 31 + ...obaoBusAgentReturnticketConfirmResponse.go | 31 - model/bus/TaobaoBusBusnumberGetAPIRequest.go | 52 + model/bus/TaobaoBusBusnumberGetAPIResponse.go | 27 + model/bus/TaobaoBusBusnumberGetResponse.go | 27 - model/bus/TaobaoBusBusnumberSetAPIRequest.go | 52 + model/bus/TaobaoBusBusnumberSetAPIResponse.go | 33 + model/bus/TaobaoBusBusnumberSetResponse.go | 33 - .../bus/TaobaoBusCancleorderSetAPIRequest.go | 52 + .../bus/TaobaoBusCancleorderSetAPIResponse.go | 31 + model/bus/TaobaoBusCancleorderSetResponse.go | 31 - model/bus/TaobaoBusCityGetAPIRequest.go | 38 + model/bus/TaobaoBusCityGetAPIResponse.go | 27 + model/bus/TaobaoBusCityGetResponse.go | 27 - .../TaobaoBusDisableqrcodeSetAPIRequest.go | 52 + .../TaobaoBusDisableqrcodeSetAPIResponse.go | 31 + .../bus/TaobaoBusDisableqrcodeSetResponse.go | 31 - .../bus/TaobaoBusHistoryorderGetAPIRequest.go | 108 + .../TaobaoBusHistoryorderGetAPIResponse.go | 33 + model/bus/TaobaoBusHistoryorderGetResponse.go | 33 - model/bus/TaobaoBusInvoiceReturnAPIRequest.go | 52 + .../bus/TaobaoBusInvoiceReturnAPIResponse.go | 31 + model/bus/TaobaoBusInvoiceReturnResponse.go | 31 - model/bus/TaobaoBusLastplaceGetAPIRequest.go | 52 + model/bus/TaobaoBusLastplaceGetAPIResponse.go | 27 + model/bus/TaobaoBusLastplaceGetResponse.go | 27 - ...baoBusNumbersStockpriceUpdateAPIRequest.go | 52 + ...aoBusNumbersStockpriceUpdateAPIResponse.go | 33 + ...aobaoBusNumbersStockpriceUpdateResponse.go | 33 - model/bus/TaobaoBusNumbersUpdateAPIRequest.go | 52 + .../bus/TaobaoBusNumbersUpdateAPIResponse.go | 33 + model/bus/TaobaoBusNumbersUpdateResponse.go | 33 - model/bus/TaobaoBusOrderGetAPIRequest.go | 52 + model/bus/TaobaoBusOrderGetAPIResponse.go | 27 + model/bus/TaobaoBusOrderGetResponse.go | 27 - model/bus/TaobaoBusOrderSetAPIRequest.go | 52 + model/bus/TaobaoBusOrderSetAPIResponse.go | 35 + model/bus/TaobaoBusOrderSetResponse.go | 35 - model/bus/TaobaoBusRefundSetAPIRequest.go | 52 + model/bus/TaobaoBusRefundSetAPIResponse.go | 27 + model/bus/TaobaoBusRefundSetResponse.go | 27 - model/bus/TaobaoBusRefundfeeGetAPIRequest.go | 66 + model/bus/TaobaoBusRefundfeeGetAPIResponse.go | 27 + model/bus/TaobaoBusRefundfeeGetResponse.go | 27 - ...TaobaoBusRefundticketpriceSetAPIRequest.go | 52 + ...aobaoBusRefundticketpriceSetAPIResponse.go | 27 + .../TaobaoBusRefundticketpriceSetResponse.go | 27 - model/bus/TaobaoBusSeatpriceGetAPIRequest.go | 52 + model/bus/TaobaoBusSeatpriceGetAPIResponse.go | 27 + model/bus/TaobaoBusSeatpriceGetResponse.go | 27 - model/bus/TaobaoBusTicketSetAPIRequest.go | 52 + model/bus/TaobaoBusTicketSetAPIResponse.go | 31 + model/bus/TaobaoBusTicketSetResponse.go | 31 - .../bus/TaobaoBusTvmbookorderSetAPIRequest.go | 150 ++ .../TaobaoBusTvmbookorderSetAPIResponse.go | 31 + model/bus/TaobaoBusTvmbookorderSetResponse.go | 31 - .../TaobaoBusTvmcancelorderSetAPIRequest.go | 52 + .../TaobaoBusTvmcancelorderSetAPIResponse.go | 31 + .../bus/TaobaoBusTvmcancelorderSetResponse.go | 31 - .../TaobaoBusTvmcreateorderSetAPIRequest.go | 52 + .../TaobaoBusTvmcreateorderSetAPIResponse.go | 33 + .../bus/TaobaoBusTvmcreateorderSetResponse.go | 33 - .../TaobaoBusTvmcreateqrcodeSetAPIRequest.go | 66 + .../TaobaoBusTvmcreateqrcodeSetAPIResponse.go | 33 + .../TaobaoBusTvmcreateqrcodeSetResponse.go | 33 - .../bus/TaobaoBusTvmpayorderSetAPIRequest.go | 66 + .../bus/TaobaoBusTvmpayorderSetAPIResponse.go | 33 + model/bus/TaobaoBusTvmpayorderSetResponse.go | 33 - .../TaobaoBusTvmqueryorderGetAPIRequest.go | 52 + .../TaobaoBusTvmqueryorderGetAPIResponse.go | 33 + .../bus/TaobaoBusTvmqueryorderGetResponse.go | 33 - .../TaobaoBusTvmrefundorderSetAPIRequest.go | 122 ++ .../TaobaoBusTvmrefundorderSetAPIResponse.go | 31 + .../bus/TaobaoBusTvmrefundorderSetResponse.go | 31 - ...TaobaoSebpCompanyGetorderinfoAPIRequest.go | 66 + ...aobaoSebpCompanyGetorderinfoAPIResponse.go | 27 + .../TaobaoSebpCompanyGetorderinfoResponse.go | 27 - .../TaobaoSebpCompanyGetorderinfoResultDo.go | 13 + model/c2m/TaobaoSebpIsvUserCheckAPIRequest.go | 94 + .../c2m/TaobaoSebpIsvUserCheckAPIResponse.go | 27 + model/c2m/TaobaoSebpIsvUserCheckResponse.go | 27 - model/c2m/TaobaoSebpIsvUserSignAPIRequest.go | 94 + model/c2m/TaobaoSebpIsvUserSignAPIResponse.go | 27 + model/c2m/TaobaoSebpIsvUserSignResponse.go | 27 - .../TaobaoSebpIsvWxrobotCallbackAPIRequest.go | 80 + ...TaobaoSebpIsvWxrobotCallbackAPIResponse.go | 27 + .../TaobaoSebpIsvWxrobotCallbackResponse.go | 27 - ...SebpOrganizationGetinviteinfoAPIRequest.go | 66 + ...ebpOrganizationGetinviteinfoAPIResponse.go | 27 + ...aoSebpOrganizationGetinviteinfoResponse.go | 27 - ...aoSebpOrganizationGetinviteinfoResultDo.go | 13 + ...oSebpOrganizationGetorderinfoAPIRequest.go | 94 + ...SebpOrganizationGetorderinfoAPIResponse.go | 27 + ...baoSebpOrganizationGetorderinfoResponse.go | 27 - ...baoSebpOrganizationGetorderinfoResultDo.go | 13 + .../c2m/TaobaoTxpItemItemlistgetAPIRequest.go | 66 + .../TaobaoTxpItemItemlistgetAPIResponse.go | 27 + model/c2m/TaobaoTxpItemItemlistgetResponse.go | 27 - .../c2m/TaobaoTxpItemItemlistgetResultDto.go | 13 + ...opkeeperSupplyStatisticsQueryAPIRequest.go | 52 + ...pkeeperSupplyStatisticsQueryAPIResponse.go | 27 + ...ShopkeeperSupplyStatisticsQueryResponse.go | 27 - ...ainiaoEccExceptionsDelayCountAPIRequest.go | 38 + ...iniaoEccExceptionsDelayCountAPIResponse.go | 27 + .../CainiaoEccExceptionsDelayCountResponse.go | 27 - .../CainiaoEccExceptionsDelayGetAPIRequest.go | 52 + ...CainiaoEccExceptionsDelayGetAPIResponse.go | 27 + .../CainiaoEccExceptionsDelayGetResponse.go | 27 - .../CainiaoGlobalHandoverCancelAPIRequest.go | 122 ++ .../CainiaoGlobalHandoverCancelAPIResponse.go | 27 + .../CainiaoGlobalHandoverCancelResponse.go | 27 - ...aoGlobalHandoverCloudprintGetAPIRequest.go | 108 + ...oGlobalHandoverCloudprintGetAPIResponse.go | 27 + ...niaoGlobalHandoverCloudprintGetResponse.go | 27 - .../CainiaoGlobalHandoverCommitAPIRequest.go | 206 ++ .../CainiaoGlobalHandoverCommitAPIResponse.go | 27 + .../CainiaoGlobalHandoverCommitResponse.go | 27 - ...iaoGlobalHandoverContentQueryAPIRequest.go | 108 + ...aoGlobalHandoverContentQueryAPIResponse.go | 27 + ...iniaoGlobalHandoverContentQueryResponse.go | 27 - ...niaoGlobalHandoverParcelQueryAPIRequest.go | 108 + ...iaoGlobalHandoverParcelQueryAPIResponse.go | 27 + ...ainiaoGlobalHandoverParcelQueryResponse.go | 27 - .../CainiaoGlobalHandoverPdfGetAPIRequest.go | 108 + .../CainiaoGlobalHandoverPdfGetAPIResponse.go | 27 + .../CainiaoGlobalHandoverPdfGetResponse.go | 27 - ...ainiaoGlobalHandoverSavedraftAPIRequest.go | 164 ++ ...iniaoGlobalHandoverSavedraftAPIResponse.go | 27 + .../CainiaoGlobalHandoverSavedraftResponse.go | 27 - .../CainiaoGlobalHandoverUpdateAPIRequest.go | 192 ++ .../CainiaoGlobalHandoverUpdateAPIResponse.go | 27 + .../CainiaoGlobalHandoverUpdateResponse.go | 27 - ...niaoGlobalLogisticOrderCreateAPIRequest.go | 66 + ...iaoGlobalLogisticOrderCreateAPIResponse.go | 33 + ...ainiaoGlobalLogisticOrderCreateResponse.go | 33 - ...obalLogisticsCarrierQuerylistAPIRequest.go | 52 + ...balLogisticsCarrierQuerylistAPIResponse.go | 27 + ...GlobalLogisticsCarrierQuerylistResponse.go | 27 - .../CainiaoGlobalSolutionInquiryAPIRequest.go | 94 + ...CainiaoGlobalSolutionInquiryAPIResponse.go | 31 + .../CainiaoGlobalSolutionInquiryResponse.go | 31 - ...lSolutionServiceResourceQueryAPIRequest.go | 94 + ...SolutionServiceResourceQueryAPIResponse.go | 27 + ...balSolutionServiceResourceQueryResponse.go | 27 - ...oEndpointLockerTopOrderNoticeAPIRequest.go | 94 + ...EndpointLockerTopOrderNoticeAPIResponse.go | 27 + ...iaoEndpointLockerTopOrderNoticeResponse.go | 27 - ...LockerTopOrderNoticesendQueryAPIRequest.go | 80 + ...ockerTopOrderNoticesendQueryAPIResponse.go | 27 + ...ntLockerTopOrderNoticesendQueryResponse.go | 27 - ...ointLockerTopOrderTrackingNewAPIRequest.go | 52 + ...intLockerTopOrderTrackingNewAPIResponse.go | 27 + ...dpointLockerTopOrderTrackingNewResponse.go | 27 - ...ndpointLockerTopOrderWithholdAPIRequest.go | 150 ++ ...dpointLockerTopOrderWithholdAPIResponse.go | 27 + ...oEndpointLockerTopOrderWithholdResponse.go | 27 - ...ntLockerTopStationAddorupdateAPIRequest.go | 52 + ...tLockerTopStationAddorupdateAPIResponse.go | 27 + ...ointLockerTopStationAddorupdateResponse.go | 27 - ...ndpointLockerTopWithholdQueryAPIRequest.go | 80 + ...dpointLockerTopWithholdQueryAPIResponse.go | 27 + ...oEndpointLockerTopWithholdQueryResponse.go | 27 - ...ddAppointdeliverFeedbackcodesAPIRequest.go | 38 + ...dAppointdeliverFeedbackcodesAPIResponse.go | 33 + ...baddAppointdeliverFeedbackcodesResponse.go | 33 - ...dAppointdeliverGetconsigninfoAPIRequest.go | 52 + ...AppointdeliverGetconsigninfoAPIResponse.go | 33 + ...addAppointdeliverGetconsigninfoResponse.go | 33 - ...ntUserOutsideQueryoutsideuserAPIRequest.go | 66 + ...tUserOutsideQueryoutsideuserAPIResponse.go | 29 + ...rontUserOutsideQueryoutsideuserResponse.go | 29 - .../CainiaoNcwlJhorderQueryAPIRequest.go | 52 + .../CainiaoNcwlJhorderQueryAPIResponse.go | 33 + .../CainiaoNcwlJhorderQueryResponse.go | 33 - .../TaobaoCaipiaoGoodsInfoGetAPIRequest.go | 38 + .../TaobaoCaipiaoGoodsInfoGetAPIResponse.go | 29 + .../TaobaoCaipiaoGoodsInfoGetResponse.go | 29 - .../TaobaoCaipiaoGoodsInfoInputAPIRequest.go | 178 ++ .../TaobaoCaipiaoGoodsInfoInputAPIResponse.go | 27 + .../TaobaoCaipiaoGoodsInfoInputResponse.go | 27 - ...aobaoCaipiaoLotterySendbynickAPIRequest.go | 94 + ...obaoCaipiaoLotterySendbynickAPIResponse.go | 27 + .../TaobaoCaipiaoLotterySendbynickResponse.go | 27 - .../TaobaoCaipiaoLotterytypesGetAPIRequest.go | 38 + ...TaobaoCaipiaoLotterytypesGetAPIResponse.go | 29 + .../TaobaoCaipiaoLotterytypesGetResponse.go | 29 - .../TaobaoCaipiaoMarketingPutAPIRequest.go | 62 + .../TaobaoCaipiaoMarketingPutAPIResponse.go | 37 + .../TaobaoCaipiaoMarketingPutResponse.go | 37 - .../TaobaoCaipiaoPresentStatGetAPIRequest.go | 52 + .../TaobaoCaipiaoPresentStatGetAPIResponse.go | 29 + .../TaobaoCaipiaoPresentStatGetResponse.go | 29 - .../TaobaoCaipiaoShopInfoInputAPIRequest.go | 122 ++ .../TaobaoCaipiaoShopInfoInputAPIResponse.go | 27 + .../TaobaoCaipiaoShopInfoInputResponse.go | 27 - .../TaobaoCaipiaoSignstatusCheckAPIRequest.go | 38 + ...TaobaoCaipiaoSignstatusCheckAPIResponse.go | 29 + .../TaobaoCaipiaoSignstatusCheckResponse.go | 29 - ...pusAclCancelpermiitemfromroleAPIRequest.go | 122 ++ ...usAclCancelpermiitemfromroleAPIResponse.go | 27 + ...ampusAclCancelpermiitemfromroleResponse.go | 27 - ...aCampusAclCancelrolesfromuserAPIRequest.go | 122 ++ ...CampusAclCancelrolesfromuserAPIResponse.go | 27 + ...abaCampusAclCancelrolesfromuserResponse.go | 27 - .../AlibabaCampusAclCheckemproleAPIRequest.go | 108 + ...AlibabaCampusAclCheckemproleAPIResponse.go | 27 + .../AlibabaCampusAclCheckemproleResponse.go | 27 - ...libabaCampusAclGetmenubyempidAPIRequest.go | 94 + ...ibabaCampusAclGetmenubyempidAPIResponse.go | 27 + .../AlibabaCampusAclGetmenubyempidResponse.go | 27 - ...ampusAclGetpermissionbyroleidAPIRequest.go | 94 + ...mpusAclGetpermissionbyroleidAPIResponse.go | 27 + ...aCampusAclGetpermissionbyroleidResponse.go | 27 - ...libabaCampusAclGetrolebyempidAPIRequest.go | 94 + ...ibabaCampusAclGetrolebyempidAPIResponse.go | 27 + .../AlibabaCampusAclGetrolebyempidResponse.go | 27 - ...ampusAclGrantpermiitemstouserAPIRequest.go | 122 ++ ...mpusAclGrantpermiitemstouserAPIResponse.go | 27 + ...aCampusAclGrantpermiitemstouserResponse.go | 27 - ...CampusAclGrantpermiitemtoroleAPIRequest.go | 122 ++ ...ampusAclGrantpermiitemtoroleAPIResponse.go | 27 + ...baCampusAclGrantpermiitemtoroleResponse.go | 27 - .../AlibabaCampusAclInsertroleAPIRequest.go | 150 ++ .../AlibabaCampusAclInsertroleAPIResponse.go | 27 + .../AlibabaCampusAclInsertroleResponse.go | 27 - ...babaCampusAclNewCheckusermenuAPIRequest.go | 66 + ...abaCampusAclNewCheckusermenuAPIResponse.go | 27 + ...libabaCampusAclNewCheckusermenuResponse.go | 27 - ...mpusAclNewCheckuserpermissionAPIRequest.go | 66 + ...pusAclNewCheckuserpermissionAPIResponse.go | 27 + ...CampusAclNewCheckuserpermissionResponse.go | 27 - ...babaCampusAclNewCheckuserroleAPIRequest.go | 80 + ...abaCampusAclNewCheckuserroleAPIResponse.go | 27 + ...libabaCampusAclNewCheckuserroleResponse.go | 27 - ...abaCampusAclNewDeleteuserroleAPIRequest.go | 80 + ...baCampusAclNewDeleteuserroleAPIResponse.go | 27 + ...ibabaCampusAclNewDeleteuserroleResponse.go | 27 - ...AlibabaCampusAclNewFreezeroleAPIRequest.go | 66 + ...libabaCampusAclNewFreezeroleAPIResponse.go | 27 + .../AlibabaCampusAclNewFreezeroleResponse.go | 27 - ...abaCampusAclNewGetappmenutreeAPIRequest.go | 66 + ...baCampusAclNewGetappmenutreeAPIResponse.go | 27 + ...ibabaCampusAclNewGetappmenutreeResponse.go | 27 - ...clNewGetrolewithmenutreenodesAPIRequest.go | 80 + ...lNewGetrolewithmenutreenodesAPIResponse.go | 27 + ...sAclNewGetrolewithmenutreenodesResponse.go | 27 - .../AlibabaCampusAclNewListrolesAPIRequest.go | 66 + ...AlibabaCampusAclNewListrolesAPIResponse.go | 27 + .../AlibabaCampusAclNewListrolesResponse.go | 27 - ...abaCampusAclNewListuserbymenuAPIRequest.go | 66 + ...baCampusAclNewListuserbymenuAPIResponse.go | 27 + ...ibabaCampusAclNewListuserbymenuResponse.go | 27 - ...ibabaCampusAclNewListusermenuAPIRequest.go | 66 + ...babaCampusAclNewListusermenuAPIResponse.go | 27 + ...AlibabaCampusAclNewListusermenuResponse.go | 27 - ...babaCampusAclNewListuserrolesAPIRequest.go | 66 + ...abaCampusAclNewListuserrolesAPIResponse.go | 27 + ...libabaCampusAclNewListuserrolesResponse.go | 27 - ...ibabaCampusAclNewPageuserroleAPIRequest.go | 66 + ...babaCampusAclNewPageuserroleAPIResponse.go | 27 + ...AlibabaCampusAclNewPageuserroleResponse.go | 27 - ...AlibabaCampusAclNewRemoveroleAPIRequest.go | 66 + ...libabaCampusAclNewRemoveroleAPIResponse.go | 27 + .../AlibabaCampusAclNewRemoveroleResponse.go | 27 - ...aCampusAclNewSaverolewithmenuAPIRequest.go | 80 + ...CampusAclNewSaverolewithmenuAPIResponse.go | 27 + ...abaCampusAclNewSaverolewithmenuResponse.go | 27 - ...ibabaCampusAclNewUnfreezeroleAPIRequest.go | 66 + ...babaCampusAclNewUnfreezeroleAPIResponse.go | 27 + ...AlibabaCampusAclNewUnfreezeroleResponse.go | 27 - ...CampusAclQueryallemppermiitemAPIRequest.go | 122 ++ ...ampusAclQueryallemppermiitemAPIResponse.go | 27 + ...baCampusAclQueryallemppermiitemResponse.go | 27 - .../AlibabaCampusAclQueryallroleAPIRequest.go | 122 ++ ...AlibabaCampusAclQueryallroleAPIResponse.go | 27 + .../AlibabaCampusAclQueryallroleResponse.go | 27 - ...ampusAclUpdategrantroletouserAPIRequest.go | 122 ++ ...mpusAclUpdategrantroletouserAPIResponse.go | 27 + ...aCampusAclUpdategrantroletouserResponse.go | 27 - ...AdminmapPoiinfoGetlistbygroupAPIRequest.go | 66 + ...dminmapPoiinfoGetlistbygroupAPIResponse.go | 27 + ...usAdminmapPoiinfoGetlistbygroupResponse.go | 27 - ...etactualuserlocationinfobyidsAPIRequest.go | 68 + ...tactualuserlocationinfobyidsAPIResponse.go | 29 + ...oGetactualuserlocationinfobyidsResponse.go | 29 - ...oninfoGetuserlocationinfologsAPIRequest.go | 66 + ...ninfoGetuserlocationinfologsAPIResponse.go | 27 + ...tioninfoGetuserlocationinfologsResponse.go | 27 - ...oInsertactualuserlocationinfoAPIRequest.go | 68 + ...InsertactualuserlocationinfoAPIResponse.go | 29 + ...nfoInsertactualuserlocationinfoResponse.go | 29 - ...babaCampusCoreAppGetappusagesAPIRequest.go | 66 + ...abaCampusCoreAppGetappusagesAPIResponse.go | 27 + ...libabaCampusCoreAppGetappusagesResponse.go | 27 - ...oreCompanycampusGetcombycamidAPIRequest.go | 52 + ...reCompanycampusGetcombycamidAPIResponse.go | 27 + ...sCoreCompanycampusGetcombycamidResponse.go | 27 - ...pusCoreEmployeeModifyemployeeAPIRequest.go | 80 + ...usCoreEmployeeModifyemployeeAPIResponse.go | 27 + ...ampusCoreEmployeeModifyemployeeResponse.go | 27 - ...CampusDeviceGetdeviceforqueryAPIRequest.go | 66 + ...ampusDeviceGetdeviceforqueryAPIResponse.go | 27 + ...baCampusDeviceGetdeviceforqueryResponse.go | 27 - ...abaCampusDeviceHistorydataGetAPIRequest.go | 66 + ...baCampusDeviceHistorydataGetAPIResponse.go | 27 + ...ibabaCampusDeviceHistorydataGetResponse.go | 27 - ...eviceOpenapiFeedbackeventinfoAPIRequest.go | 66 + ...viceOpenapiFeedbackeventinfoAPIResponse.go | 27 + ...sDeviceOpenapiFeedbackeventinfoResponse.go | 27 - ...pusDeviceOpenapiGetdevicelistAPIRequest.go | 66 + ...usDeviceOpenapiGetdevicelistAPIResponse.go | 27 + ...ampusDeviceOpenapiGetdevicelistResponse.go | 27 - ...eOpenapiGetdevicerealtimedataAPIRequest.go | 80 + ...OpenapiGetdevicerealtimedataAPIResponse.go | 27 + ...iceOpenapiGetdevicerealtimedataResponse.go | 27 - ...ceOpenapiGetdevicerealtimelogAPIRequest.go | 66 + ...eOpenapiGetdevicerealtimelogAPIResponse.go | 27 + ...viceOpenapiGetdevicerealtimelogResponse.go | 27 - ...usDeviceOpenapiGethistorydataAPIRequest.go | 66 + ...sDeviceOpenapiGethistorydataAPIResponse.go | 27 + ...mpusDeviceOpenapiGethistorydataResponse.go | 27 - ...sDeviceOpenapiGetsimpledeviceAPIRequest.go | 66 + ...DeviceOpenapiGetsimpledeviceAPIResponse.go | 27 + ...pusDeviceOpenapiGetsimpledeviceResponse.go | 27 - ...iceOpenapiGetsimpledevicelistAPIRequest.go | 66 + ...ceOpenapiGetsimpledevicelistAPIResponse.go | 27 + ...eviceOpenapiGetsimpledevicelistResponse.go | 27 - ...sDeviceOpenapiGettemplatelistAPIRequest.go | 52 + ...DeviceOpenapiGettemplatelistAPIResponse.go | 27 + ...pusDeviceOpenapiGettemplatelistResponse.go | 27 - ...sDeviceOpenapiGetuniquedeviceAPIRequest.go | 66 + ...DeviceOpenapiGetuniquedeviceAPIResponse.go | 27 + ...pusDeviceOpenapiGetuniquedeviceResponse.go | 27 - ...pusDeviceOpenapiOperatedeviceAPIRequest.go | 94 + ...usDeviceOpenapiOperatedeviceAPIResponse.go | 27 + ...ampusDeviceOpenapiOperatedeviceResponse.go | 27 - ...ceOpenapiSaveeventinfoforibosAPIRequest.go | 66 + ...eOpenapiSaveeventinfoforibosAPIResponse.go | 29 + ...viceOpenapiSaveeventinfoforibosResponse.go | 29 - ...pusDevicehubOpenapiReportdataAPIRequest.go | 52 + ...usDevicehubOpenapiReportdataAPIResponse.go | 27 + ...ampusDevicehubOpenapiReportdataResponse.go | 27 - .../AlibabaCampusGuardDataSyncAPIRequest.go | 80 + .../AlibabaCampusGuardDataSyncAPIResponse.go | 27 + .../AlibabaCampusGuardDataSyncResponse.go | 27 - ...AlibabaCampusSpaceAttrSetattrAPIRequest.go | 66 + ...libabaCampusSpaceAttrSetattrAPIResponse.go | 27 + .../AlibabaCampusSpaceAttrSetattrResponse.go | 27 - ...pusSpaceBuildingGetbycampusidAPIRequest.go | 68 + ...usSpaceBuildingGetbycampusidAPIResponse.go | 29 + ...ampusSpaceBuildingGetbycampusidResponse.go | 29 - ...ibabaCampusSpaceCampusGetbyidAPIRequest.go | 68 + ...babaCampusSpaceCampusGetbyidAPIResponse.go | 29 + ...AlibabaCampusSpaceCampusGetbyidResponse.go | 29 - ...mpusSpaceFloorGetbybuildingidAPIRequest.go | 68 + ...pusSpaceFloorGetbybuildingidAPIResponse.go | 29 + ...CampusSpaceFloorGetbybuildingidResponse.go | 29 - ...libabaCampusSpaceFloorGetbyidAPIRequest.go | 66 + ...ibabaCampusSpaceFloorGetbyidAPIResponse.go | 27 + .../AlibabaCampusSpaceFloorGetbyidResponse.go | 27 - .../AlibabaCampusSpaceGetbyidsAPIRequest.go | 66 + .../AlibabaCampusSpaceGetbyidsAPIResponse.go | 27 + .../AlibabaCampusSpaceGetbyidsResponse.go | 27 - ...libabaCampusSpaceGroupGetbyidAPIRequest.go | 68 + ...ibabaCampusSpaceGroupGetbyidAPIResponse.go | 29 + .../AlibabaCampusSpaceGroupGetbyidResponse.go | 29 - ...libabaCampusSpaceGroupGetlistAPIRequest.go | 68 + ...ibabaCampusSpaceGroupGetlistAPIResponse.go | 29 + .../AlibabaCampusSpaceGroupGetlistResponse.go | 29 - ...ceGroupGetlistbycampusandtypeAPIRequest.go | 68 + ...eGroupGetlistbycampusandtypeAPIResponse.go | 29 + ...paceGroupGetlistbycampusandtypeResponse.go | 29 - ...roupGetspacegrouplistwithattrAPIRequest.go | 66 + ...oupGetspacegrouplistwithattrAPIResponse.go | 27 + ...eGroupGetspacegrouplistwithattrResponse.go | 27 - ...aceGroupGetspacegroupwithattrAPIRequest.go | 66 + ...ceGroupGetspacegroupwithattrAPIResponse.go | 27 + ...SpaceGroupGetspacegroupwithattrResponse.go | 27 - ...ibabaCampusSpaceTypeGetbycodeAPIRequest.go | 68 + ...babaCampusSpaceTypeGetbycodeAPIResponse.go | 29 + ...AlibabaCampusSpaceTypeGetbycodeResponse.go | 29 - ...aCampusSpaceTypeGetpageresultAPIRequest.go | 68 + ...CampusSpaceTypeGetpageresultAPIResponse.go | 29 + ...abaCampusSpaceTypeGetpageresultResponse.go | 29 - ...AlibabaCampusSpaceUnitGetbyidAPIRequest.go | 68 + ...libabaCampusSpaceUnitGetbyidAPIResponse.go | 29 + .../AlibabaCampusSpaceUnitGetbyidResponse.go | 29 - ...AlibabaCampusSpaceUnitGetlistAPIRequest.go | 68 + ...libabaCampusSpaceUnitGetlistAPIResponse.go | 29 + .../AlibabaCampusSpaceUnitGetlistResponse.go | 29 - ...aceUnitGetlistbycampusandtypeAPIRequest.go | 68 + ...ceUnitGetlistbycampusandtypeAPIResponse.go | 29 + ...SpaceUnitGetlistbycampusandtypeResponse.go | 29 - ...mpusSpaceUnitGetlistbygroupidAPIRequest.go | 68 + ...pusSpaceUnitGetlistbygroupidAPIResponse.go | 29 + ...CampusSpaceUnitGetlistbygroupidResponse.go | 29 - ...sSpaceUnitGetlistmapbygroupidAPIRequest.go | 68 + ...SpaceUnitGetlistmapbygroupidAPIResponse.go | 29 + ...pusSpaceUnitGetlistmapbygroupidResponse.go | 29 - ...eUnitGetlistwithattrbygroupidAPIRequest.go | 66 + ...UnitGetlistwithattrbygroupidAPIResponse.go | 27 + ...aceUnitGetlistwithattrbygroupidResponse.go | 27 - ...eUnitGetspaceunitlistwithattrAPIRequest.go | 66 + ...UnitGetspaceunitlistwithattrAPIResponse.go | 27 + ...aceUnitGetspaceunitlistwithattrResponse.go | 27 - ...SpaceUnitGetspaceunitwithattrAPIRequest.go | 66 + ...paceUnitGetspaceunitwithattrAPIResponse.go | 27 + ...usSpaceUnitGetspaceunitwithattrResponse.go | 27 - .../AlibabaCampusTopologyGetallAPIRequest.go | 80 + .../AlibabaCampusTopologyGetallAPIResponse.go | 27 + .../AlibabaCampusTopologyGetallResponse.go | 27 - .../AlibabaGuardAccessAuthAPIRequest.go | 52 + .../AlibabaGuardAccessAuthAPIResponse.go | 27 + .../campus/AlibabaGuardAccessAuthResponse.go | 27 - .../AlibabaIworkCoreHrsGetpersonAPIRequest.go | 94 + ...AlibabaIworkCoreHrsGetpersonAPIResponse.go | 27 + .../AlibabaIworkCoreHrsGetpersonResponse.go | 27 - .../AlibabaIworkMcMsgSenddefaultAPIRequest.go | 52 + ...AlibabaIworkMcMsgSenddefaultAPIResponse.go | 27 + .../AlibabaIworkMcMsgSenddefaultResponse.go | 27 - .../AlibabaIworkMcMsgSendmobileAPIRequest.go | 52 + .../AlibabaIworkMcMsgSendmobileAPIResponse.go | 27 + .../AlibabaIworkMcMsgSendmobileResponse.go | 27 - .../AlibabaVisitorGetidsbyqrcodeAPIRequest.go | 94 + ...AlibabaVisitorGetidsbyqrcodeAPIResponse.go | 27 + .../AlibabaVisitorGetidsbyqrcodeResponse.go | 27 - ...AlitripTravelCrsdriverArrangeAPIRequest.go | 52 + ...litripTravelCrsdriverArrangeAPIResponse.go | 29 + .../AlitripTravelCrsdriverArrangeResponse.go | 29 - ...AlitripTravelCrsorderCompleteAPIRequest.go | 52 + ...litripTravelCrsorderCompleteAPIResponse.go | 29 + .../AlitripTravelCrsorderCompleteResponse.go | 29 - .../AlitripTravelCrsorderSearchAPIRequest.go | 164 ++ .../AlitripTravelCrsorderSearchAPIResponse.go | 27 + .../AlitripTravelCrsorderSearchResponse.go | 27 - ...oAlitripCarDriverStatusUpdateAPIRequest.go | 136 ++ ...AlitripCarDriverStatusUpdateAPIResponse.go | 31 + ...baoAlitripCarDriverStatusUpdateResponse.go | 31 - .../TaobaoAlitripCarOrderAcceptAPIRequest.go | 52 + .../TaobaoAlitripCarOrderAcceptAPIResponse.go | 27 + .../TaobaoAlitripCarOrderAcceptResponse.go | 27 - ...TaobaoAlitripCarOrderCompleteAPIRequest.go | 52 + ...aobaoAlitripCarOrderCompleteAPIResponse.go | 31 + .../TaobaoAlitripCarOrderCompleteResponse.go | 31 - .../TaobaoAlitripCarOrderConfirmAPIRequest.go | 52 + ...TaobaoAlitripCarOrderConfirmAPIResponse.go | 31 + .../TaobaoAlitripCarOrderConfirmResponse.go | 31 - .../TaobaoAlitripCarOrderQueryAPIRequest.go | 52 + .../TaobaoAlitripCarOrderQueryAPIResponse.go | 27 + .../car/TaobaoAlitripCarOrderQueryResponse.go | 27 - .../TaobaoAlitripCarOrderStatusAPIRequest.go | 94 + .../TaobaoAlitripCarOrderStatusAPIResponse.go | 27 + .../TaobaoAlitripCarOrderStatusResponse.go | 27 - ...obaoAlitripCarRentOrderCancelAPIRequest.go | 52 + ...baoAlitripCarRentOrderCancelAPIResponse.go | 33 + ...TaobaoAlitripCarRentOrderCancelResponse.go | 33 - ...ipDomesticRentCarStatusUpdateAPIRequest.go | 94 + ...pDomesticRentCarStatusUpdateAPIResponse.go | 31 + ...tripDomesticRentCarStatusUpdateResponse.go | 31 - .../AlibabaImapCategoryPredictAPIRequest.go | 68 + .../AlibabaImapCategoryPredictAPIResponse.go | 29 + .../AlibabaImapCategoryPredictResponse.go | 29 - .../AlibabaImapFixedmappingQueryAPIRequest.go | 122 ++ ...AlibabaImapFixedmappingQueryAPIResponse.go | 27 + .../AlibabaImapFixedmappingQueryResponse.go | 27 - .../AlibabaImapPvAutofillAPIRequest.go | 52 + .../AlibabaImapPvAutofillAPIResponse.go | 27 + .../category/AlibabaImapPvAutofillResponse.go | 27 - .../AlibabaWholesaleCategoryGetAPIRequest.go | 38 + .../AlibabaWholesaleCategoryGetAPIResponse.go | 27 + .../AlibabaWholesaleCategoryGetResponse.go | 27 - ...liexpressSocialDiscategoryGetAPIRequest.go | 52 + ...iexpressSocialDiscategoryGetAPIResponse.go | 27 + .../AliexpressSocialDiscategoryGetResponse.go | 27 - ...aoItemCatpropsModificationGetAPIRequest.go | 80 + ...oItemCatpropsModificationGetAPIResponse.go | 27 + ...obaoItemCatpropsModificationGetResponse.go | 27 - .../TaobaoItemcatsAuthorizeGetAPIRequest.go | 52 + .../TaobaoItemcatsAuthorizeGetAPIResponse.go | 27 + .../TaobaoItemcatsAuthorizeGetResponse.go | 27 - model/category/TaobaoItemcatsGetAPIRequest.go | 80 + .../category/TaobaoItemcatsGetAPIResponse.go | 29 + model/category/TaobaoItemcatsGetResponse.go | 29 - .../category/TaobaoItempropsGetAPIRequest.go | 220 ++ .../category/TaobaoItempropsGetAPIResponse.go | 29 + model/category/TaobaoItempropsGetResponse.go | 29 - .../TaobaoItempropvaluesGetAPIRequest.go | 108 + .../TaobaoItempropvaluesGetAPIResponse.go | 29 + .../TaobaoItempropvaluesGetResponse.go | 29 - ...libabaCharityCharitytimeQueryAPIRequest.go | 122 ++ ...ibabaCharityCharitytimeQueryAPIResponse.go | 35 + .../AlibabaCharityCharitytimeQueryResponse.go | 35 - .../AlibabaCharityUseractionSyncAPIRequest.go | 52 + ...AlibabaCharityUseractionSyncAPIResponse.go | 27 + .../AlibabaCharityUseractionSyncResponse.go | 27 - ...oDeActivitySecuritytokenApplyAPIRequest.go | 52 + ...DeActivitySecuritytokenApplyAPIResponse.go | 27 + ...baoDeActivitySecuritytokenApplyResponse.go | 27 - ...ityretailWmflConvertWarehouseAPIRequest.go | 52 + ...tyretailWmflConvertWarehouseAPIResponse.go | 27 + ...oCityretailWmflConvertWarehouseResponse.go | 27 - ...retailWmflOrderLogisticsQueryAPIRequest.go | 52 + ...etailWmflOrderLogisticsQueryAPIResponse.go | 27 + ...tyretailWmflOrderLogisticsQueryResponse.go | 27 - ...ibabaCgameAvatarUserbodyQueryAPIRequest.go | 52 + ...babaCgameAvatarUserbodyQueryAPIResponse.go | 27 + ...AlibabaCgameAvatarUserbodyQueryResponse.go | 27 - .../AlibabaCgameScoreReportAPIRequest.go | 52 + .../AlibabaCgameScoreReportAPIResponse.go | 27 + .../AlibabaCgameScoreReportResponse.go | 27 - ...baCloudgameUserMixuseridCheckAPIRequest.go | 52 + ...aCloudgameUserMixuseridCheckAPIResponse.go | 31 + ...babaCloudgameUserMixuseridCheckResponse.go | 31 - .../YoukuCgameScoreReportAPIRequest.go | 52 + .../YoukuCgameScoreReportAPIResponse.go | 31 + .../YoukuCgameScoreReportResponse.go | 31 - ...TaobaoCloudpushMessageAndroidAPIRequest.go | 80 + ...aobaoCloudpushMessageAndroidAPIResponse.go | 31 + .../TaobaoCloudpushMessageAndroidResponse.go | 31 - .../TaobaoCloudpushMessageIosAPIRequest.go | 80 + .../TaobaoCloudpushMessageIosAPIResponse.go | 31 + .../TaobaoCloudpushMessageIosResponse.go | 31 - .../TaobaoCloudpushNoticeAndroidAPIRequest.go | 94 + ...TaobaoCloudpushNoticeAndroidAPIResponse.go | 31 + .../TaobaoCloudpushNoticeAndroidResponse.go | 31 - .../TaobaoCloudpushNoticeIosAPIRequest.go | 108 + .../TaobaoCloudpushNoticeIosAPIResponse.go | 31 + .../TaobaoCloudpushNoticeIosResponse.go | 31 - .../TaobaoCloudpushPushAPIRequest.go | 332 ++++ .../TaobaoCloudpushPushAPIResponse.go | 31 + .../cloudpush/TaobaoCloudpushPushResponse.go | 31 - .../YunosServiceCmnsCoaDeviceGetAPIRequest.go | 66 + ...YunosServiceCmnsCoaDeviceGetAPIResponse.go | 31 + .../YunosServiceCmnsCoaDeviceGetResponse.go | 31 - ...sServiceCmnsCoaDeviceIsonlineAPIRequest.go | 66 + ...ServiceCmnsCoaDeviceIsonlineAPIResponse.go | 31 + ...nosServiceCmnsCoaDeviceIsonlineResponse.go | 31 - ...YunosServiceCmnsCoaMessageAckAPIRequest.go | 94 + ...unosServiceCmnsCoaMessageAckAPIResponse.go | 31 + .../YunosServiceCmnsCoaMessageAckResponse.go | 31 - ...ServiceCmnsCoaMessageAcksListAPIRequest.go | 94 + ...erviceCmnsCoaMessageAcksListAPIResponse.go | 31 + ...osServiceCmnsCoaMessageAcksListResponse.go | 31 - ...osServiceCmnsCoaMessageCancelAPIRequest.go | 52 + ...sServiceCmnsCoaMessageCancelAPIResponse.go | 31 + ...unosServiceCmnsCoaMessageCancelResponse.go | 31 - ...YunosServiceCmnsCoaMessageGetAPIRequest.go | 52 + ...unosServiceCmnsCoaMessageGetAPIResponse.go | 31 + .../YunosServiceCmnsCoaMessageGetResponse.go | 31 - ...unosServiceCmnsCoaMessagePushAPIRequest.go | 52 + ...nosServiceCmnsCoaMessagePushAPIResponse.go | 31 + .../YunosServiceCmnsCoaMessagePushResponse.go | 31 - ...erviceCmnsCoaMessageresultGetAPIRequest.go | 52 + ...rviceCmnsCoaMessageresultGetAPIResponse.go | 31 + ...sServiceCmnsCoaMessageresultGetResponse.go | 31 - .../cmns/YunosServiceCmnsCoaPushAPIRequest.go | 52 + .../YunosServiceCmnsCoaPushAPIResponse.go | 31 + model/cmns/YunosServiceCmnsCoaPushResponse.go | 31 - ...iaoCntmsLogisticsOrderConsignAPIRequest.go | 52 + ...aoCntmsLogisticsOrderConsignAPIResponse.go | 27 + ...iniaoCntmsLogisticsOrderConsignResponse.go | 27 - ...iaoConsignplatformOrderCancelAPIRequest.go | 52 + ...aoConsignplatformOrderCancelAPIResponse.go | 31 + ...iniaoConsignplatformOrderCancelResponse.go | 31 - ...iaoConsignplatformOrderCreateAPIRequest.go | 52 + ...aoConsignplatformOrderCreateAPIResponse.go | 31 + ...iniaoConsignplatformOrderCreateResponse.go | 31 - ...obaoCrmExchangeActivityCreateAPIRequest.go | 52 + ...baoCrmExchangeActivityCreateAPIResponse.go | 31 + ...TaobaoCrmExchangeActivityCreateResponse.go | 31 - ...aoCrmExchangeCrowdinstanceAddAPIRequest.go | 80 + ...oCrmExchangeCrowdinstanceAddAPIResponse.go | 27 + ...obaoCrmExchangeCrowdinstanceAddResponse.go | 27 - ...rmExchangeCrowdinstanceDeleteAPIRequest.go | 80 + ...mExchangeCrowdinstanceDeleteAPIResponse.go | 27 + ...oCrmExchangeCrowdinstanceDeleteResponse.go | 27 - model/crm/TaobaoCrmGradeGetAPIRequest.go | 38 + model/crm/TaobaoCrmGradeGetAPIResponse.go | 27 + model/crm/TaobaoCrmGradeGetResponse.go | 27 - model/crm/TaobaoCrmGradeSetAPIRequest.go | 108 + model/crm/TaobaoCrmGradeSetAPIResponse.go | 27 + model/crm/TaobaoCrmGradeSetResponse.go | 27 - .../TaobaoCrmGrademktMemberAddAPIRequest.go | 80 + .../TaobaoCrmGrademktMemberAddAPIResponse.go | 27 + .../crm/TaobaoCrmGrademktMemberAddResponse.go | 27 - ...CrmGrademktMemberDetailCreateAPIRequest.go | 66 + ...rmGrademktMemberDetailCreateAPIResponse.go | 27 + ...aoCrmGrademktMemberDetailCreateResponse.go | 27 - ...CrmGrademktMemberDetailDeleteAPIRequest.go | 66 + ...rmGrademktMemberDetailDeleteAPIResponse.go | 27 + ...aoCrmGrademktMemberDetailDeleteResponse.go | 27 - ...oCrmGrademktMemberDetailQueryAPIRequest.go | 66 + ...CrmGrademktMemberDetailQueryAPIResponse.go | 27 + ...baoCrmGrademktMemberDetailQueryResponse.go | 27 - .../TaobaoCrmGrademktMemberQueryAPIRequest.go | 80 + ...TaobaoCrmGrademktMemberQueryAPIResponse.go | 27 + .../TaobaoCrmGrademktMemberQueryResponse.go | 27 - model/crm/TaobaoCrmGroupAddAPIRequest.go | 52 + model/crm/TaobaoCrmGroupAddAPIResponse.go | 29 + model/crm/TaobaoCrmGroupAddResponse.go | 29 - model/crm/TaobaoCrmGroupAppendAPIRequest.go | 66 + model/crm/TaobaoCrmGroupAppendAPIResponse.go | 27 + model/crm/TaobaoCrmGroupAppendResponse.go | 27 - model/crm/TaobaoCrmGroupDeleteAPIRequest.go | 52 + model/crm/TaobaoCrmGroupDeleteAPIResponse.go | 27 + model/crm/TaobaoCrmGroupDeleteResponse.go | 27 - model/crm/TaobaoCrmGroupMoveAPIRequest.go | 66 + model/crm/TaobaoCrmGroupMoveAPIResponse.go | 27 + model/crm/TaobaoCrmGroupMoveResponse.go | 27 - model/crm/TaobaoCrmGroupUpdateAPIRequest.go | 66 + model/crm/TaobaoCrmGroupUpdateAPIResponse.go | 27 + model/crm/TaobaoCrmGroupUpdateResponse.go | 27 - model/crm/TaobaoCrmGroupsGetAPIRequest.go | 66 + model/crm/TaobaoCrmGroupsGetAPIResponse.go | 29 + model/crm/TaobaoCrmGroupsGetResponse.go | 29 - .../crm/TaobaoCrmGrouptaskCheckAPIRequest.go | 52 + .../crm/TaobaoCrmGrouptaskCheckAPIResponse.go | 27 + model/crm/TaobaoCrmGrouptaskCheckResponse.go | 27 - .../crm/TaobaoCrmMemberGroupGetAPIRequest.go | 52 + .../crm/TaobaoCrmMemberGroupGetAPIResponse.go | 27 + model/crm/TaobaoCrmMemberGroupGetResponse.go | 27 - .../TaobaoCrmMemberinfoUpdateAPIRequest.go | 192 ++ .../TaobaoCrmMemberinfoUpdateAPIResponse.go | 27 + .../crm/TaobaoCrmMemberinfoUpdateResponse.go | 27 - model/crm/TaobaoCrmMembersGetAPIRequest.go | 178 ++ model/crm/TaobaoCrmMembersGetAPIResponse.go | 29 + model/crm/TaobaoCrmMembersGetResponse.go | 29 - ...TaobaoCrmMembersGroupBatchaddAPIRequest.go | 66 + ...aobaoCrmMembersGroupBatchaddAPIResponse.go | 27 + .../TaobaoCrmMembersGroupBatchaddResponse.go | 27 - ...aoCrmMembersGroupsBatchdeleteAPIRequest.go | 66 + ...oCrmMembersGroupsBatchdeleteAPIResponse.go | 27 + ...obaoCrmMembersGroupsBatchdeleteResponse.go | 27 - .../TaobaoCrmMembersIncrementGetAPIRequest.go | 108 + ...TaobaoCrmMembersIncrementGetAPIResponse.go | 29 + .../TaobaoCrmMembersIncrementGetResponse.go | 29 - model/crm/TaobaoCrmMembersSearchAPIRequest.go | 206 ++ .../crm/TaobaoCrmMembersSearchAPIResponse.go | 29 + model/crm/TaobaoCrmMembersSearchResponse.go | 29 - ...ServiceChannelShortlinkCreateAPIRequest.go | 80 + ...erviceChannelShortlinkCreateAPIResponse.go | 27 + ...rmServiceChannelShortlinkCreateResponse.go | 27 - model/crm/TaobaoCrmShopvipCancelAPIRequest.go | 38 + .../crm/TaobaoCrmShopvipCancelAPIResponse.go | 27 + model/crm/TaobaoCrmShopvipCancelResponse.go | 27 - ...oMarketPictureGetuserpicturesAPIRequest.go | 52 + ...MarketPictureGetuserpicturesAPIResponse.go | 27 + ...baoMarketPictureGetuserpicturesResponse.go | 27 - ...abaDamaiEcSearchProjectSearchAPIRequest.go | 52 + ...baDamaiEcSearchProjectSearchAPIResponse.go | 27 + ...ibabaDamaiEcSearchProjectSearchResponse.go | 27 - ...baDamaiMevOpenBatchpushticketAPIRequest.go | 52 + ...aDamaiMevOpenBatchpushticketAPIResponse.go | 27 + ...babaDamaiMevOpenBatchpushticketResponse.go | 27 - ...ibabaDamaiMevOpenChangeticketAPIRequest.go | 52 + ...babaDamaiMevOpenChangeticketAPIResponse.go | 27 + ...AlibabaDamaiMevOpenChangeticketResponse.go | 27 - ...DamaiMevOpenDeleteFaceelementAPIRequest.go | 52 + ...amaiMevOpenDeleteFaceelementAPIResponse.go | 27 + ...baDamaiMevOpenDeleteFaceelementResponse.go | 27 - ...DamaiMevOpenDeletePaperformatAPIRequest.go | 52 + ...amaiMevOpenDeletePaperformatAPIResponse.go | 27 + ...baDamaiMevOpenDeletePaperformatResponse.go | 27 - ...AlibabaDamaiMevOpenDeletefaceAPIRequest.go | 52 + ...libabaDamaiMevOpenDeletefaceAPIResponse.go | 27 + .../AlibabaDamaiMevOpenDeletefaceResponse.go | 27 - ...libabaDamaiMevOpenDeletefloorAPIRequest.go | 52 + ...ibabaDamaiMevOpenDeletefloorAPIResponse.go | 27 + .../AlibabaDamaiMevOpenDeletefloorResponse.go | 27 - ...AlibabaDamaiMevOpenDeleteitemAPIRequest.go | 52 + ...libabaDamaiMevOpenDeleteitemAPIResponse.go | 27 + .../AlibabaDamaiMevOpenDeleteitemResponse.go | 27 - ...babaDamaiMevOpenDeleteperformAPIRequest.go | 52 + ...abaDamaiMevOpenDeleteperformAPIResponse.go | 27 + ...libabaDamaiMevOpenDeleteperformResponse.go | 27 - ...babaDamaiMevOpenDeleteprojectAPIRequest.go | 52 + ...abaDamaiMevOpenDeleteprojectAPIResponse.go | 27 + ...libabaDamaiMevOpenDeleteprojectResponse.go | 27 - ...libabaDamaiMevOpenDeletestandAPIRequest.go | 52 + ...ibabaDamaiMevOpenDeletestandAPIResponse.go | 27 + .../AlibabaDamaiMevOpenDeletestandResponse.go | 27 - ...libabaDamaiMevOpenDeletevenueAPIRequest.go | 52 + ...ibabaDamaiMevOpenDeletevenueAPIResponse.go | 27 + .../AlibabaDamaiMevOpenDeletevenueResponse.go | 27 - ...babaDamaiMevOpenInvalidticketAPIRequest.go | 52 + ...abaDamaiMevOpenInvalidticketAPIResponse.go | 27 + ...libabaDamaiMevOpenInvalidticketResponse.go | 27 - ...AlibabaDamaiMevOpenLockticketAPIRequest.go | 52 + ...libabaDamaiMevOpenLockticketAPIResponse.go | 27 + .../AlibabaDamaiMevOpenLockticketResponse.go | 27 - ...baDamaiMevOpenPushPaperformatAPIRequest.go | 52 + ...aDamaiMevOpenPushPaperformatAPIResponse.go | 27 + ...babaDamaiMevOpenPushPaperformatResponse.go | 27 - .../AlibabaDamaiMevOpenPushfaceAPIRequest.go | 52 + .../AlibabaDamaiMevOpenPushfaceAPIResponse.go | 27 + .../AlibabaDamaiMevOpenPushfaceResponse.go | 27 - ...baDamaiMevOpenPushfaceelementAPIRequest.go | 52 + ...aDamaiMevOpenPushfaceelementAPIResponse.go | 27 + ...babaDamaiMevOpenPushfaceelementResponse.go | 27 - .../AlibabaDamaiMevOpenPushfloorAPIRequest.go | 52 + ...AlibabaDamaiMevOpenPushfloorAPIResponse.go | 27 + .../AlibabaDamaiMevOpenPushfloorResponse.go | 27 - .../AlibabaDamaiMevOpenPushitemAPIRequest.go | 52 + .../AlibabaDamaiMevOpenPushitemAPIResponse.go | 27 + .../AlibabaDamaiMevOpenPushitemResponse.go | 27 - ...libabaDamaiMevOpenPushperformAPIRequest.go | 52 + ...ibabaDamaiMevOpenPushperformAPIResponse.go | 27 + .../AlibabaDamaiMevOpenPushperformResponse.go | 27 - ...libabaDamaiMevOpenPushprojectAPIRequest.go | 52 + ...ibabaDamaiMevOpenPushprojectAPIResponse.go | 27 + .../AlibabaDamaiMevOpenPushprojectResponse.go | 27 - .../AlibabaDamaiMevOpenPushstandAPIRequest.go | 52 + ...AlibabaDamaiMevOpenPushstandAPIResponse.go | 27 + .../AlibabaDamaiMevOpenPushstandResponse.go | 27 - .../AlibabaDamaiMevOpenPushvenueAPIRequest.go | 52 + ...AlibabaDamaiMevOpenPushvenueAPIResponse.go | 27 + .../AlibabaDamaiMevOpenPushvenueResponse.go | 27 - ...libabaDamaiMevOpenResetticketAPIRequest.go | 52 + ...ibabaDamaiMevOpenResetticketAPIResponse.go | 27 + .../AlibabaDamaiMevOpenResetticketResponse.go | 27 - ...ibabaDamaiMevOpenUnlockticketAPIRequest.go | 52 + ...babaDamaiMevOpenUnlockticketAPIResponse.go | 27 + ...AlibabaDamaiMevOpenUnlockticketResponse.go | 27 - ...abaDamaiMevOpenWithdrawticketAPIRequest.go | 52 + ...baDamaiMevOpenWithdrawticketAPIResponse.go | 27 + ...ibabaDamaiMevOpenWithdrawticketResponse.go | 27 - ...ibabaDamaiTickletQrcodeDecodeAPIRequest.go | 66 + ...babaDamaiTickletQrcodeDecodeAPIResponse.go | 33 + ...AlibabaDamaiTickletQrcodeDecodeResponse.go | 33 - ...aoDegoperationCheckAddrStatusAPIRequest.go | 52 + ...oDegoperationCheckAddrStatusAPIResponse.go | 27 + ...obaoDegoperationCheckAddrStatusResponse.go | 27 - ...aobaoDegoperationCreateqrcodeAPIRequest.go | 108 + ...obaoDegoperationCreateqrcodeAPIResponse.go | 33 + .../TaobaoDegoperationCreateqrcodeResponse.go | 33 - ...TaobaoDegoperationDoLuckydrawAPIRequest.go | 122 ++ ...aobaoDegoperationDoLuckydrawAPIResponse.go | 27 + .../TaobaoDegoperationDoLuckydrawResponse.go | 27 - ...obaoDegoperationGetByEventkeyAPIRequest.go | 80 + ...baoDegoperationGetByEventkeyAPIResponse.go | 27 + ...TaobaoDegoperationGetByEventkeyResponse.go | 27 - ...TaobaoDegoperationGetInfoUuidAPIRequest.go | 80 + ...aobaoDegoperationGetInfoUuidAPIResponse.go | 27 + .../TaobaoDegoperationGetInfoUuidResponse.go | 27 - ...baoDegoperationShowTopRecordsAPIRequest.go | 80 + ...aoDegoperationShowTopRecordsAPIResponse.go | 27 + ...aobaoDegoperationShowTopRecordsResponse.go | 27 - ...aoDegoperationShowUserRecordsAPIRequest.go | 108 + ...oDegoperationShowUserRecordsAPIResponse.go | 27 + ...obaoDegoperationShowUserRecordsResponse.go | 27 - ...eDeliveryvoucherCancelvoucherAPIRequest.go | 52 + ...DeliveryvoucherCancelvoucherAPIResponse.go | 31 + ...ameDeliveryvoucherCancelvoucherResponse.go | 31 - ...aoGameDeliveryvoucherEvaluateAPIRequest.go | 52 + ...oGameDeliveryvoucherEvaluateAPIResponse.go | 31 + ...obaoGameDeliveryvoucherEvaluateResponse.go | 31 - ...meDeliveryvoucherOrdervoucherAPIRequest.go | 52 + ...eDeliveryvoucherOrdervoucherAPIResponse.go | 31 + ...GameDeliveryvoucherOrdervoucherResponse.go | 31 - ...eliveryvoucherRollbackvoucherAPIRequest.go | 52 + ...liveryvoucherRollbackvoucherAPIResponse.go | 31 + ...eDeliveryvoucherRollbackvoucherResponse.go | 31 - ...oGameDeliveryvoucherSendgoodsAPIRequest.go | 52 + ...GameDeliveryvoucherSendgoodsAPIResponse.go | 31 + ...baoGameDeliveryvoucherSendgoodsResponse.go | 31 - ...ameDeliveryvoucherSendvoucherAPIRequest.go | 52 + ...meDeliveryvoucherSendvoucherAPIResponse.go | 31 + ...oGameDeliveryvoucherSendvoucherResponse.go | 31 - ...aobaoGameDeliveryvoucherWatchAPIRequest.go | 52 + ...obaoGameDeliveryvoucherWatchAPIResponse.go | 31 + .../TaobaoGameDeliveryvoucherWatchResponse.go | 31 - ...DengtaImsDouyinAccountChangedAPIRequest.go | 80 + ...engtaImsDouyinAccountChangedAPIResponse.go | 27 + ...esDengtaImsDouyinAccountChangedResponse.go | 27 - ...resDengtaImsOrderStatusChangeAPIRequest.go | 122 ++ ...esDengtaImsOrderStatusChangeAPIResponse.go | 27 + ...turesDengtaImsOrderStatusChangeResponse.go | 27 - ...cturesDengtaOrderEffectImportAPIRequest.go | 332 ++++ ...turesDengtaOrderEffectImportAPIResponse.go | 27 + ...PicturesDengtaOrderEffectImportResponse.go | 27 - ...cturesDengtaOrderStatusChangeAPIRequest.go | 108 + ...turesDengtaOrderStatusChangeAPIResponse.go | 27 + ...resDengtaOrderStatusChangeNewAPIRequest.go | 150 ++ ...esDengtaOrderStatusChangeNewAPIResponse.go | 27 + ...turesDengtaOrderStatusChangeNewResponse.go | 27 - ...PicturesDengtaOrderStatusChangeResponse.go | 27 - ...resDengtaWbaccountPriceChangeAPIRequest.go | 136 ++ ...esDengtaWbaccountPriceChangeAPIResponse.go | 27 + ...turesDengtaWbaccountPriceChangeResponse.go | 27 - ...resDengtaWxaccountPriceChangeAPIRequest.go | 192 ++ ...esDengtaWxaccountPriceChangeAPIResponse.go | 27 + ...turesDengtaWxaccountPriceChangeResponse.go | 27 - model/dmp/TaobaoDmpCrowdsGetAPIRequest.go | 38 + model/dmp/TaobaoDmpCrowdsGetAPIResponse.go | 27 + model/dmp/TaobaoDmpCrowdsGetResponse.go | 27 - ...libabaAlihealthNrRxQueryimageAPIRequest.go | 52 + ...ibabaAlihealthNrRxQueryimageAPIResponse.go | 33 + .../AlibabaAlihealthNrRxQueryimageResponse.go | 33 - .../AlibabaAlihealthNrSpuQueryAPIRequest.go | 66 + .../AlibabaAlihealthNrSpuQueryAPIResponse.go | 27 + .../AlibabaAlihealthNrSpuQueryResponse.go | 27 - ...lthNrTradeMedicalInsuranceGetAPIRequest.go | 52 + ...thNrTradeMedicalInsuranceGetAPIResponse.go | 27 + ...ealthNrTradeMedicalInsuranceGetResponse.go | 27 - ...ibabaAlihealthNrTradeOrderGetAPIRequest.go | 52 + ...babaAlihealthNrTradeOrderGetAPIResponse.go | 91 + ...AlibabaAlihealthNrTradeOrderGetResponse.go | 91 - ...lthNrTradeOrderGetorderdetailAPIRequest.go | 52 + ...thNrTradeOrderGetorderdetailAPIResponse.go | 91 + ...ealthNrTradeOrderGetorderdetailResponse.go | 91 - ...thNrLogisticsDeliverynoUpdateAPIRequest.go | 94 + ...hNrLogisticsDeliverynoUpdateAPIResponse.go | 27 + ...althNrLogisticsDeliverynoUpdateResponse.go | 27 - ...baHealthNrLogisticsWaybillGetAPIRequest.go | 52 + ...aHealthNrLogisticsWaybillGetAPIResponse.go | 27 + ...babaHealthNrLogisticsWaybillGetResponse.go | 27 - .../TaobaoAlihealthDrugStoreGetAPIRequest.go | 52 + .../TaobaoAlihealthDrugStoreGetAPIResponse.go | 27 + .../TaobaoAlihealthDrugStoreGetResponse.go | 27 - ...aobaoAlihealthDrugStoreSearchAPIRequest.go | 94 + ...obaoAlihealthDrugStoreSearchAPIResponse.go | 27 + .../TaobaoAlihealthDrugStoreSearchResponse.go | 27 - ...aobaoAlihealthDrugUserShopGetAPIRequest.go | 52 + ...obaoAlihealthDrugUserShopGetAPIResponse.go | 27 + .../TaobaoAlihealthDrugUserShopGetResponse.go | 27 - ...ihealthCodesellerGetuserawardAPIRequest.go | 52 + ...healthCodesellerGetuserawardAPIResponse.go | 33 + ...AlihealthCodesellerGetuserawardResponse.go | 33 - ...hDrugBillUpbillDetailWithcodeAPIRequest.go | 94 + ...DrugBillUpbillDetailWithcodeAPIResponse.go | 27 + ...lthDrugBillUpbillDetailWithcodeResponse.go | 27 - ...gCodeAdvanceBillFlowDirectionAPIRequest.go | 52 + ...CodeAdvanceBillFlowDirectionAPIResponse.go | 27 + ...rugCodeAdvanceBillFlowDirectionResponse.go | 27 - ...althDrugCodeCodeCheckHospitalAPIRequest.go | 136 ++ ...lthDrugCodeCodeCheckHospitalAPIResponse.go | 27 + ...healthDrugCodeCodeCheckHospitalResponse.go | 27 - ...CodeCodeCheckMedicalInsuranceAPIRequest.go | 127 ++ ...odeCodeCheckMedicalInsuranceAPIResponse.go | 32 + ...ugCodeCodeCheckMedicalInsuranceResponse.go | 32 - ...lthDrugCodeCommonListCodeinfoAPIRequest.go | 178 ++ ...thDrugCodeCommonListCodeinfoAPIResponse.go | 27 + ...ealthDrugCodeCommonListCodeinfoResponse.go | 27 - ...aAlihealthDrugCodeErrorReportAPIRequest.go | 150 ++ ...AlihealthDrugCodeErrorReportAPIResponse.go | 33 + ...abaAlihealthDrugCodeErrorReportResponse.go | 33 - ...ihealthDrugCodeKytDrQuerycodeAPIRequest.go | 68 + ...healthDrugCodeKytDrQuerycodeAPIResponse.go | 29 + ...AlihealthDrugCodeKytDrQuerycodeResponse.go | 29 - ...AlihealthDrugCodeKytQuerycodeAPIRequest.go | 67 + ...lihealthDrugCodeKytQuerycodeAPIResponse.go | 28 + ...baAlihealthDrugCodeKytQuerycodeResponse.go | 28 - ...ealthDrugCodeKytQuerycodeflowAPIRequest.go | 164 ++ ...althDrugCodeKytQuerycodeflowAPIResponse.go | 27 + ...ihealthDrugCodeKytQuerycodeflowResponse.go | 27 - ...ealthDrugCodeKytSmyxQuerycodeAPIRequest.go | 67 + ...althDrugCodeKytSmyxQuerycodeAPIResponse.go | 28 + ...ihealthDrugCodeKytSmyxQuerycodeResponse.go | 28 - ...ihealthDrugCodeKytVaQuerycodeAPIRequest.go | 68 + ...healthDrugCodeKytVaQuerycodeAPIResponse.go | 29 + ...AlihealthDrugCodeKytVaQuerycodeResponse.go | 29 - ...ihealthDrugCodeKytYdQuerycodeAPIRequest.go | 67 + ...healthDrugCodeKytYdQuerycodeAPIResponse.go | 28 + ...AlihealthDrugCodeKytYdQuerycodeResponse.go | 28 - ...ihealthDrugCodeKytYqQuerycodeAPIRequest.go | 80 + ...healthDrugCodeKytYqQuerycodeAPIResponse.go | 27 + ...AlihealthDrugCodeKytYqQuerycodeResponse.go | 27 - ...ihealthDrugCodeKytYyApplycodeAPIRequest.go | 80 + ...healthDrugCodeKytYyApplycodeAPIResponse.go | 27 + ...AlihealthDrugCodeKytYyApplycodeResponse.go | 27 - ...ihealthDrugCodeKytYyQuerycodeAPIRequest.go | 68 + ...healthDrugCodeKytYyQuerycodeAPIResponse.go | 29 + ...AlihealthDrugCodeKytYyQuerycodeResponse.go | 29 - ...ihealthDrugCodeListCodeAlkaliAPIRequest.go | 142 ++ ...healthDrugCodeListCodeAlkaliAPIResponse.go | 33 + ...AlihealthDrugCodeListCodeAlkaliResponse.go | 33 - ...gCodeListCodeMedicalInsuranceAPIRequest.go | 142 ++ ...CodeListCodeMedicalInsuranceAPIResponse.go | 33 + ...rugCodeListCodeMedicalInsuranceResponse.go | 33 - ...althDrugCodeListCodeSuperviseAPIRequest.go | 142 ++ ...lthDrugCodeListCodeSuperviseAPIResponse.go | 33 + ...healthDrugCodeListCodeSuperviseResponse.go | 33 - ...aAlihealthDrugDownloadEntlistAPIRequest.go | 52 + ...AlihealthDrugDownloadEntlistAPIResponse.go | 27 + ...abaAlihealthDrugDownloadEntlistResponse.go | 27 - ...althDrugDownloadFileacceptretAPIRequest.go | 66 + ...lthDrugDownloadFileacceptretAPIResponse.go | 27 + ...healthDrugDownloadFileacceptretResponse.go | 27 - ...althDrugDownloadGetentauthentAPIRequest.go | 66 + ...lthDrugDownloadGetentauthentAPIResponse.go | 27 + ...healthDrugDownloadGetentauthentResponse.go | 27 - ...ealthDrugGetbarcodeBytraccodeAPIRequest.go | 52 + ...althDrugGetbarcodeBytraccodeAPIResponse.go | 27 + ...ihealthDrugGetbarcodeBytraccodeResponse.go | 27 - ...baAlihealthDrugKytCodeprocessAPIRequest.go | 234 +++ ...aAlihealthDrugKytCodeprocessAPIResponse.go | 27 + ...babaAlihealthDrugKytCodeprocessResponse.go | 27 - ...abaAlihealthDrugKytCodetobillAPIRequest.go | 66 + ...baAlihealthDrugKytCodetobillAPIResponse.go | 27 + ...ibabaAlihealthDrugKytCodetobillResponse.go | 27 - ...AlihealthDrugKytDestbillCheckAPIRequest.go | 80 + ...lihealthDrugKytDestbillCheckAPIResponse.go | 33 + ...baAlihealthDrugKytDestbillCheckResponse.go | 33 - ...aAlihealthDrugKytDestbillListAPIRequest.go | 108 + ...AlihealthDrugKytDestbillListAPIResponse.go | 27 + ...abaAlihealthDrugKytDestbillListResponse.go | 27 - ...ihealthDrugKytDrAssociateequiAPIRequest.go | 80 + ...healthDrugKytDrAssociateequiAPIResponse.go | 27 + ...AlihealthDrugKytDrAssociateequiResponse.go | 27 - ...baAlihealthDrugKytDrBillcheckAPIRequest.go | 94 + ...aAlihealthDrugKytDrBillcheckAPIResponse.go | 27 + ...babaAlihealthDrugKytDrBillcheckResponse.go | 27 - ...baAlihealthDrugKytDrDrugrecalAPIRequest.go | 80 + ...aAlihealthDrugKytDrDrugrecalAPIResponse.go | 27 + ...babaAlihealthDrugKytDrDrugrecalResponse.go | 27 - ...aAlihealthDrugKytDrGetbyentidAPIRequest.go | 66 + ...AlihealthDrugKytDrGetbyentidAPIResponse.go | 27 + ...abaAlihealthDrugKytDrGetbyentidResponse.go | 27 - ...ihealthDrugKytDrGetbyrefentidAPIRequest.go | 66 + ...healthDrugKytDrGetbyrefentidAPIResponse.go | 27 + ...AlihealthDrugKytDrGetbyrefentidResponse.go | 27 - ...aAlihealthDrugKytDrGetentinfoAPIRequest.go | 52 + ...AlihealthDrugKytDrGetentinfoAPIResponse.go | 27 + ...abaAlihealthDrugKytDrGetentinfoResponse.go | 27 - ...ihealthDrugKytDrGetproteminfoAPIRequest.go | 94 + ...healthDrugKytDrGetproteminfoAPIResponse.go | 27 + ...AlihealthDrugKytDrGetproteminfoResponse.go | 27 - ...lihealthDrugKytDrGetupteminfoAPIRequest.go | 66 + ...ihealthDrugKytDrGetupteminfoAPIResponse.go | 27 + ...aAlihealthDrugKytDrGetupteminfoResponse.go | 27 - ...baAlihealthDrugKytDrListpartsAPIRequest.go | 136 ++ ...aAlihealthDrugKytDrListpartsAPIResponse.go | 27 + ...babaAlihealthDrugKytDrListpartsResponse.go | 27 - ...ealthDrugKytDrQueryupbillcodeAPIRequest.go | 66 + ...althDrugKytDrQueryupbillcodeAPIResponse.go | 27 + ...ihealthDrugKytDrQueryupbillcodeResponse.go | 27 - ...lihealthDrugKytDrSearchstatusAPIRequest.go | 206 ++ ...ihealthDrugKytDrSearchstatusAPIResponse.go | 27 + ...aAlihealthDrugKytDrSearchstatusResponse.go | 27 - ...healthDrugKytDrSinglerelationAPIRequest.go | 80 + ...ealthDrugKytDrSinglerelationAPIResponse.go | 27 + ...lihealthDrugKytDrSinglerelationResponse.go | 27 - ...ihealthDrugKytDrStorageuploadAPIRequest.go | 108 + ...healthDrugKytDrStorageuploadAPIResponse.go | 27 + ...AlihealthDrugKytDrStorageuploadResponse.go | 27 - ...ealthDrugKytDrTransportuploadAPIRequest.go | 150 ++ ...althDrugKytDrTransportuploadAPIResponse.go | 27 + ...ihealthDrugKytDrTransportuploadResponse.go | 27 - ...ealthDrugKytDrUploadinoutbillAPIRequest.go | 571 ++++++ ...althDrugKytDrUploadinoutbillAPIResponse.go | 34 + ...ihealthDrugKytDrUploadinoutbillResponse.go | 34 - ...ealthDrugKytDrVaequipmentListAPIRequest.go | 136 ++ ...althDrugKytDrVaequipmentListAPIResponse.go | 27 + ...ihealthDrugKytDrVaequipmentListResponse.go | 27 - ...babaAlihealthDrugKytDrugcodesAPIRequest.go | 122 ++ ...abaAlihealthDrugKytDrugcodesAPIResponse.go | 27 + ...libabaAlihealthDrugKytDrugcodesResponse.go | 27 - ...abaAlihealthDrugKytDrugdetailAPIRequest.go | 66 + ...baAlihealthDrugKytDrugdetailAPIResponse.go | 27 + ...ibabaAlihealthDrugKytDrugdetailResponse.go | 27 - ...baAlihealthDrugKytDrugrescodeAPIRequest.go | 178 ++ ...aAlihealthDrugKytDrugrescodeAPIResponse.go | 27 + ...babaAlihealthDrugKytDrugrescodeResponse.go | 27 - ...babaAlihealthDrugKytDrugtableAPIRequest.go | 178 ++ ...abaAlihealthDrugKytDrugtableAPIResponse.go | 27 + ...libabaAlihealthDrugKytDrugtableResponse.go | 27 - ...lihealthDrugKytDruploadretailAPIRequest.go | 276 +++ ...ihealthDrugKytDruploadretailAPIResponse.go | 33 + ...aAlihealthDrugKytDruploadretailResponse.go | 33 - ...aAlihealthDrugKytFiledownloadAPIRequest.go | 94 + ...AlihealthDrugKytFiledownloadAPIResponse.go | 33 + ...abaAlihealthDrugKytFiledownloadResponse.go | 33 - ...abaAlihealthDrugKytGetbyentidAPIRequest.go | 66 + ...baAlihealthDrugKytGetbyentidAPIResponse.go | 27 + ...ibabaAlihealthDrugKytGetbyentidResponse.go | 27 - ...AlihealthDrugKytGetbyrefentidAPIRequest.go | 66 + ...lihealthDrugKytGetbyrefentidAPIResponse.go | 27 + ...baAlihealthDrugKytGetbyrefentidResponse.go | 27 - ...ihealthDrugKytGetcodebaseinfoAPIRequest.go | 66 + ...healthDrugKytGetcodebaseinfoAPIResponse.go | 27 + ...AlihealthDrugKytGetcodebaseinfoResponse.go | 27 - ...ihealthDrugKytGetcodebillinfoAPIRequest.go | 66 + ...healthDrugKytGetcodebillinfoAPIResponse.go | 27 + ...AlihealthDrugKytGetcodebillinfoResponse.go | 27 - ...lihealthDrugKytGetdruglicenseAPIRequest.go | 66 + ...ihealthDrugKytGetdruglicenseAPIResponse.go | 27 + ...aAlihealthDrugKytGetdruglicenseResponse.go | 27 - ...abaAlihealthDrugKytGetentinfoAPIRequest.go | 52 + ...baAlihealthDrugKytGetentinfoAPIResponse.go | 27 + ...ibabaAlihealthDrugKytGetentinfoResponse.go | 27 - ...AlihealthDrugKytGetentlicenseAPIRequest.go | 52 + ...lihealthDrugKytGetentlicenseAPIResponse.go | 27 + ...baAlihealthDrugKytGetentlicenseResponse.go | 27 - ...abaAlihealthDrugKytIdgenerateAPIRequest.go | 66 + ...baAlihealthDrugKytIdgenerateAPIResponse.go | 33 + ...ibabaAlihealthDrugKytIdgenerateResponse.go | 33 - ...babaAlihealthDrugKytListauthsAPIRequest.go | 94 + ...abaAlihealthDrugKytListauthsAPIResponse.go | 27 + ...libabaAlihealthDrugKytListauthsResponse.go | 27 - ...babaAlihealthDrugKytListpartsAPIRequest.go | 136 ++ ...abaAlihealthDrugKytListpartsAPIResponse.go | 27 + ...healthDrugKytListpartsByagentAPIRequest.go | 150 ++ ...ealthDrugKytListpartsByagentAPIResponse.go | 27 + ...lihealthDrugKytListpartsByagentResponse.go | 27 - ...libabaAlihealthDrugKytListpartsResponse.go | 27 - ...babaAlihealthDrugKytListupoutAPIRequest.go | 206 ++ ...abaAlihealthDrugKytListupoutAPIResponse.go | 27 + ...libabaAlihealthDrugKytListupoutResponse.go | 27 - ...QueryCodeRelationFromBillcodeAPIRequest.go | 66 + ...ueryCodeRelationFromBillcodeAPIResponse.go | 27 + ...ytQueryCodeRelationFromBillcodeResponse.go | 27 - ...gKytQueryDruginfoFromBillcodeAPIRequest.go | 66 + ...KytQueryDruginfoFromBillcodeAPIResponse.go | 27 + ...rugKytQueryDruginfoFromBillcodeResponse.go | 27 - ...ihealthDrugKytQueryactivetimeAPIRequest.go | 109 + ...healthDrugKytQueryactivetimeAPIResponse.go | 28 + ...AlihealthDrugKytQueryactivetimeResponse.go | 28 - ...lihealthDrugKytQuerybatchprodAPIRequest.go | 122 ++ ...ihealthDrugKytQuerybatchprodAPIResponse.go | 27 + ...aAlihealthDrugKytQuerybatchprodResponse.go | 27 - ...ihealthDrugKytQuerycodeactiveAPIRequest.go | 66 + ...healthDrugKytQuerycodeactiveAPIResponse.go | 33 + ...AlihealthDrugKytQuerycodeactiveResponse.go | 33 - ...AlihealthDrugKytQuerydruginfoAPIRequest.go | 80 + ...lihealthDrugKytQuerydruginfoAPIResponse.go | 27 + ...baAlihealthDrugKytQuerydruginfoResponse.go | 27 - ...abaAlihealthDrugKytRecordinfoAPIRequest.go | 108 + ...baAlihealthDrugKytRecordinfoAPIResponse.go | 33 + ...ibabaAlihealthDrugKytRecordinfoResponse.go | 33 - ...lihealthDrugKytRelationdetailAPIRequest.go | 80 + ...ihealthDrugKytRelationdetailAPIResponse.go | 27 + ...aAlihealthDrugKytRelationdetailResponse.go | 27 - ...ealthDrugKytRemnantbillUploadAPIRequest.go | 220 ++ ...althDrugKytRemnantbillUploadAPIResponse.go | 33 + ...ihealthDrugKytRemnantbillUploadResponse.go | 33 - ...libabaAlihealthDrugKytSaveentAPIRequest.go | 80 + ...ibabaAlihealthDrugKytSaveentAPIResponse.go | 27 + .../AlibabaAlihealthDrugKytSaveentResponse.go | 27 - ...abaAlihealthDrugKytSearchbillAPIRequest.go | 192 ++ ...baAlihealthDrugKytSearchbillAPIResponse.go | 27 + ...ibabaAlihealthDrugKytSearchbillResponse.go | 27 - ...aAlihealthDrugKytSearchstatusAPIRequest.go | 206 ++ ...AlihealthDrugKytSearchstatusAPIResponse.go | 27 + ...abaAlihealthDrugKytSearchstatusResponse.go | 27 - ...lihealthDrugKytSinglerelationAPIRequest.go | 80 + ...ihealthDrugKytSinglerelationAPIResponse.go | 27 + ...aAlihealthDrugKytSinglerelationResponse.go | 27 - ...lihealthDrugKytSmyxGetentinfoAPIRequest.go | 52 + ...ihealthDrugKytSmyxGetentinfoAPIResponse.go | 27 + ...aAlihealthDrugKytSmyxGetentinfoResponse.go | 27 - ...AlihealthDrugKytSmyxListpartsAPIRequest.go | 136 ++ ...lihealthDrugKytSmyxListpartsAPIResponse.go | 27 + ...baAlihealthDrugKytSmyxListpartsResponse.go | 27 - ...lthDrugKytSmyxUploadinoutbillAPIRequest.go | 361 ++++ ...thDrugKytSmyxUploadinoutbillAPIResponse.go | 34 + ...ealthDrugKytSmyxUploadinoutbillResponse.go | 34 - ...ihealthDrugKytStorebilldeleteAPIRequest.go | 94 + ...healthDrugKytStorebilldeleteAPIResponse.go | 33 + ...AlihealthDrugKytStorebilldeleteResponse.go | 33 - ...AlihealthDrugKytStorebilllistAPIRequest.go | 122 ++ ...lihealthDrugKytStorebilllistAPIResponse.go | 27 + ...baAlihealthDrugKytStorebilllistResponse.go | 27 - ...aAlihealthDrugKytSynonymauthsAPIRequest.go | 108 + ...AlihealthDrugKytSynonymauthsAPIResponse.go | 27 + ...abaAlihealthDrugKytSynonymauthsResponse.go | 27 - ...lihealthDrugKytUpdatebillcodeAPIRequest.go | 108 + ...ihealthDrugKytUpdatebillcodeAPIResponse.go | 33 + ...aAlihealthDrugKytUpdatebillcodeResponse.go | 33 - ...lihealthDrugKytUpdatebillinfoAPIRequest.go | 164 ++ ...ihealthDrugKytUpdatebillinfoAPIResponse.go | 33 + ...aAlihealthDrugKytUpdatebillinfoResponse.go | 33 - ...baAlihealthDrugKytUpinoutfileAPIRequest.go | 374 ++++ ...aAlihealthDrugKytUpinoutfileAPIResponse.go | 33 + ...babaAlihealthDrugKytUpinoutfileResponse.go | 33 - ...AlihealthDrugKytUploadb2cbillAPIRequest.go | 178 ++ ...lihealthDrugKytUploadb2cbillAPIResponse.go | 33 + ...baAlihealthDrugKytUploadb2cbillResponse.go | 33 - ...ihealthDrugKytUploadcircubillAPIRequest.go | 445 +++++ ...healthDrugKytUploadcircubillAPIResponse.go | 34 + ...AlihealthDrugKytUploadcircubillResponse.go | 34 - ...ihealthDrugKytUploadinoutbillAPIRequest.go | 573 ++++++ ...healthDrugKytUploadinoutbillAPIResponse.go | 36 + ...AlihealthDrugKytUploadinoutbillResponse.go | 36 - ...aAlihealthDrugKytUploadinsignAPIRequest.go | 122 ++ ...AlihealthDrugKytUploadinsignAPIResponse.go | 33 + ...abaAlihealthDrugKytUploadinsignResponse.go | 33 - ...lihealthDrugKytUploadrelationAPIRequest.go | 122 ++ ...ihealthDrugKytUploadrelationAPIResponse.go | 27 + ...aAlihealthDrugKytUploadrelationResponse.go | 27 - ...aAlihealthDrugKytUploadretailAPIRequest.go | 290 +++ ...AlihealthDrugKytUploadretailAPIResponse.go | 33 + ...abaAlihealthDrugKytUploadretailResponse.go | 33 - ...ihealthDrugKytUpstorebillfileAPIRequest.go | 192 ++ ...healthDrugKytUpstorebillfileAPIResponse.go | 33 + ...AlihealthDrugKytUpstorebillfileResponse.go | 33 - ...aAlihealthDrugKytVaGetentinfoAPIRequest.go | 52 + ...AlihealthDrugKytVaGetentinfoAPIResponse.go | 27 + ...abaAlihealthDrugKytVaGetentinfoResponse.go | 27 - ...lihealthDrugKytVaUploadretailAPIRequest.go | 276 +++ ...ihealthDrugKytVaUploadretailAPIResponse.go | 33 + ...aAlihealthDrugKytVaUploadretailResponse.go | 33 - ...ealthDrugKytYbGetcoderelationAPIRequest.go | 109 + ...althDrugKytYbGetcoderelationAPIResponse.go | 28 + ...ihealthDrugKytYbGetcoderelationResponse.go | 28 - ...baAlihealthDrugKytYyDrugcodesAPIRequest.go | 122 ++ ...aAlihealthDrugKytYyDrugcodesAPIResponse.go | 27 + ...babaAlihealthDrugKytYyDrugcodesResponse.go | 27 - ...aAlihealthDrugKytYyGetentinfoAPIRequest.go | 52 + ...AlihealthDrugKytYyGetentinfoAPIResponse.go | 27 + ...abaAlihealthDrugKytYyGetentinfoResponse.go | 27 - ...baAlihealthDrugKytYyListpartsAPIRequest.go | 150 ++ ...aAlihealthDrugKytYyListpartsAPIResponse.go | 27 + ...babaAlihealthDrugKytYyListpartsResponse.go | 27 - ...ihealthDrugKytYyQuerysubcodesAPIRequest.go | 66 + ...healthDrugKytYyQuerysubcodesAPIResponse.go | 27 + ...AlihealthDrugKytYyQuerysubcodesResponse.go | 27 - ...ealthDrugKytYyUploadinoutbillAPIRequest.go | 361 ++++ ...althDrugKytYyUploadinoutbillAPIResponse.go | 34 + ...ihealthDrugKytYyUploadinoutbillResponse.go | 34 - ...lihealthDrugKytYyUploadretailAPIRequest.go | 276 +++ ...ihealthDrugKytYyUploadretailAPIResponse.go | 33 + ...aAlihealthDrugKytYyUploadretailResponse.go | 33 - ...ibabaAlihealthDrugLsydSaveentAPIRequest.go | 80 + ...babaAlihealthDrugLsydSaveentAPIResponse.go | 27 + ...AlibabaAlihealthDrugLsydSaveentResponse.go | 27 - ...abaAlihealthDrugScanQuerycodeAPIRequest.go | 122 ++ ...baAlihealthDrugScanQuerycodeAPIResponse.go | 27 + ...ibabaAlihealthDrugScanQuerycodeResponse.go | 27 - ...thDrugUpdatebarcodeBytraccodeAPIRequest.go | 66 + ...hDrugUpdatebarcodeBytraccodeAPIResponse.go | 29 + ...althDrugUpdatebarcodeBytraccodeResponse.go | 29 - ...abaAlihealthDrugUploadExtinfoAPIRequest.go | 94 + ...baAlihealthDrugUploadExtinfoAPIResponse.go | 27 + ...ibabaAlihealthDrugUploadExtinfoResponse.go | 27 - ...babaAlihealthDrugWxinfoUploadAPIRequest.go | 94 + ...abaAlihealthDrugWxinfoUploadAPIResponse.go | 31 + ...libabaAlihealthDrugWxinfoUploadResponse.go | 31 - ...abaAlihealthDrugcodeApplycertAPIRequest.go | 108 + ...baAlihealthDrugcodeApplycertAPIResponse.go | 27 + ...ibabaAlihealthDrugcodeApplycertResponse.go | 27 - ...gcodeCenterReceiveBoundStatusAPIRequest.go | 94 + ...codeCenterReceiveBoundStatusAPIResponse.go | 31 + ...rugcodeCenterReceiveBoundStatusResponse.go | 31 - ...odeDrugfactoryBlindfiledellogAPIRequest.go | 94 + ...deDrugfactoryBlindfiledellogAPIResponse.go | 31 + ...gcodeDrugfactoryBlindfiledellogResponse.go | 31 - ...odeDrugfactoryExportattributeAPIRequest.go | 52 + ...deDrugfactoryExportattributeAPIResponse.go | 27 + ...gcodeDrugfactoryExportattributeResponse.go | 27 - ...codeDrugfactoryExportcategoryAPIRequest.go | 52 + ...odeDrugfactoryExportcategoryAPIResponse.go | 31 + ...ugcodeDrugfactoryExportcategoryResponse.go | 31 - ...gcodeDrugfactoryExportprojectAPIRequest.go | 52 + ...codeDrugfactoryExportprojectAPIResponse.go | 27 + ...rugcodeDrugfactoryExportprojectResponse.go | 27 - ...codeDrugfactoryGetblindresultAPIRequest.go | 66 + ...odeDrugfactoryGetblindresultAPIResponse.go | 27 + ...ugcodeDrugfactoryGetblindresultResponse.go | 27 - ...ugcodeDrugfactoryGetencrptypkAPIRequest.go | 52 + ...gcodeDrugfactoryGetencrptypkAPIResponse.go | 31 + ...DrugcodeDrugfactoryGetencrptypkResponse.go | 31 - ...gcodeDrugfactoryTransferblindAPIRequest.go | 94 + ...codeDrugfactoryTransferblindAPIResponse.go | 31 + ...rugcodeDrugfactoryTransferblindResponse.go | 31 - ...ugcodeDrugfactoryTransferdataAPIRequest.go | 94 + ...gcodeDrugfactoryTransferdataAPIResponse.go | 31 + ...DrugcodeDrugfactoryTransferdataResponse.go | 31 - .../AlibabaAlihealthDrugcodeScanAPIRequest.go | 108 + ...AlibabaAlihealthDrugcodeScanAPIResponse.go | 27 + .../AlibabaAlihealthDrugcodeScanResponse.go | 27 - ...babaAlihealthDrugcodeUserDataAPIRequest.go | 66 + ...abaAlihealthDrugcodeUserDataAPIResponse.go | 27 + ...libabaAlihealthDrugcodeUserDataResponse.go | 27 - ...althDrugtraceTopLsydListupoutAPIRequest.go | 206 ++ ...lthDrugtraceTopLsydListupoutAPIResponse.go | 27 + ...ugtraceTopLsydListupoutDetailAPIRequest.go | 94 + ...gtraceTopLsydListupoutDetailAPIResponse.go | 27 + ...DrugtraceTopLsydListupoutDetailResponse.go | 27 - ...healthDrugtraceTopLsydListupoutResponse.go | 27 - ...ugtraceTopLsydQueryBillstatusAPIRequest.go | 206 ++ ...gtraceTopLsydQueryBillstatusAPIResponse.go | 27 + ...DrugtraceTopLsydQueryBillstatusResponse.go | 27 - ...ugtraceTopLsydQueryCodedetailAPIRequest.go | 68 + ...gtraceTopLsydQueryCodedetailAPIResponse.go | 29 + ...DrugtraceTopLsydQueryCodedetailResponse.go | 29 - ...ugtraceTopLsydQueryGetentinfoAPIRequest.go | 52 + ...gtraceTopLsydQueryGetentinfoAPIResponse.go | 27 + ...DrugtraceTopLsydQueryGetentinfoResponse.go | 27 - ...rugtraceTopLsydQueryListpartsAPIRequest.go | 136 ++ ...ugtraceTopLsydQueryListpartsAPIResponse.go | 27 + ...hDrugtraceTopLsydQueryListpartsResponse.go | 27 - ...DrugtraceTopLsydQueryRelationAPIRequest.go | 80 + ...rugtraceTopLsydQueryRelationAPIResponse.go | 27 + ...thDrugtraceTopLsydQueryRelationResponse.go | 27 - ...ugtraceTopLsydQueryUpbillcodeAPIRequest.go | 66 + ...gtraceTopLsydQueryUpbillcodeAPIResponse.go | 27 + ...DrugtraceTopLsydQueryUpbillcodeResponse.go | 27 - ...traceTopLsydQueryUpbilldetailAPIRequest.go | 66 + ...raceTopLsydQueryUpbilldetailAPIResponse.go | 27 + ...ugtraceTopLsydQueryUpbilldetailResponse.go | 27 - ...ugtraceTopLsydUploadinoutbillAPIRequest.go | 572 ++++++ ...gtraceTopLsydUploadinoutbillAPIResponse.go | 35 + ...DrugtraceTopLsydUploadinoutbillResponse.go | 35 - ...hDrugtraceTopLsydUploadretailAPIRequest.go | 276 +++ ...DrugtraceTopLsydUploadretailAPIResponse.go | 33 + ...lthDrugtraceTopLsydUploadretailResponse.go | 33 - ...althDrugtraceTopYljgListupoutAPIRequest.go | 206 ++ ...lthDrugtraceTopYljgListupoutAPIResponse.go | 27 + ...ugtraceTopYljgListupoutDetailAPIRequest.go | 94 + ...gtraceTopYljgListupoutDetailAPIResponse.go | 27 + ...DrugtraceTopYljgListupoutDetailResponse.go | 27 - ...healthDrugtraceTopYljgListupoutResponse.go | 27 - ...ugtraceTopYljgQueryBillstatusAPIRequest.go | 206 ++ ...gtraceTopYljgQueryBillstatusAPIResponse.go | 27 + ...DrugtraceTopYljgQueryBillstatusResponse.go | 27 - ...ugtraceTopYljgQueryCodedetailAPIRequest.go | 68 + ...gtraceTopYljgQueryCodedetailAPIResponse.go | 29 + ...DrugtraceTopYljgQueryCodedetailResponse.go | 29 - ...ugtraceTopYljgQueryGetentinfoAPIRequest.go | 52 + ...gtraceTopYljgQueryGetentinfoAPIResponse.go | 27 + ...DrugtraceTopYljgQueryGetentinfoResponse.go | 27 - ...rugtraceTopYljgQueryListpartsAPIRequest.go | 136 ++ ...ugtraceTopYljgQueryListpartsAPIResponse.go | 27 + ...hDrugtraceTopYljgQueryListpartsResponse.go | 27 - ...DrugtraceTopYljgQueryRelationAPIRequest.go | 80 + ...rugtraceTopYljgQueryRelationAPIResponse.go | 27 + ...thDrugtraceTopYljgQueryRelationResponse.go | 27 - ...ugtraceTopYljgQueryUpbillcodeAPIRequest.go | 66 + ...gtraceTopYljgQueryUpbillcodeAPIResponse.go | 27 + ...DrugtraceTopYljgQueryUpbillcodeResponse.go | 27 - ...traceTopYljgQueryUpbilldetailAPIRequest.go | 66 + ...raceTopYljgQueryUpbilldetailAPIResponse.go | 27 + ...ugtraceTopYljgQueryUpbilldetailResponse.go | 27 - ...ugtraceTopYljgUploadinoutbillAPIRequest.go | 571 ++++++ ...gtraceTopYljgUploadinoutbillAPIResponse.go | 34 + ...DrugtraceTopYljgUploadinoutbillResponse.go | 34 - ...hDrugtraceTopYljgUploadretailAPIRequest.go | 276 +++ ...DrugtraceTopYljgUploadretailAPIResponse.go | 33 + ...lthDrugtraceTopYljgUploadretailResponse.go | 33 - ...eCodeSearchGetDrugresourcetopAPIRequest.go | 122 ++ ...CodeSearchGetDrugresourcetopAPIResponse.go | 27 + ...aceCodeSearchGetDrugresourcetopResponse.go | 27 - ...acecodesearcGetinfomationVivoAPIRequest.go | 52 + ...cecodesearcGetinfomationVivoAPIResponse.go | 31 + ...TracecodesearcGetinfomationVivoResponse.go | 31 - ...TracecodesearchGetshowurlVivoAPIRequest.go | 66 + ...racecodesearchGetshowurlVivoAPIResponse.go | 31 + ...thTracecodesearchGetshowurlVivoResponse.go | 31 - ...racecodesellerBillRootcodeGetAPIRequest.go | 66 + ...acecodesellerBillRootcodeGetAPIResponse.go | 31 + ...hTracecodesellerBillRootcodeGetResponse.go | 31 - ...ellerMilkTraceTosourceAddDataAPIRequest.go | 66 + ...llerMilkTraceTosourceAddDataAPIResponse.go | 31 + ...esellerMilkTraceTosourceAddDataResponse.go | 31 - ...cecodesellerProductAttrSearchAPIRequest.go | 66 + ...ecodesellerProductAttrSearchAPIResponse.go | 27 + ...racecodesellerProductAttrSearchResponse.go | 27 - ...babaAlihealthZyUploadrelationAPIRequest.go | 122 ++ ...abaAlihealthZyUploadrelationAPIResponse.go | 27 + ...libabaAlihealthZyUploadrelationResponse.go | 27 - .../AlibabaCfdaXtptAppAcceptInfoAPIRequest.go | 150 ++ ...AlibabaCfdaXtptAppAcceptInfoAPIResponse.go | 27 + .../AlibabaCfdaXtptAppAcceptInfoResponse.go | 27 - .../AlibabaCfdaXtptAppGetshowurlAPIRequest.go | 52 + ...AlibabaCfdaXtptAppGetshowurlAPIResponse.go | 35 + .../AlibabaCfdaXtptAppGetshowurlResponse.go | 35 - .../dt/AlibabaDtTmllcarLeadsinfoAPIRequest.go | 94 + .../AlibabaDtTmllcarLeadsinfoAPIResponse.go | 27 + model/dt/AlibabaDtTmllcarLeadsinfoResponse.go | 27 - ...AlibabaDtTmllcarPricevalidateAPIRequest.go | 124 ++ ...libabaDtTmllcarPricevalidateAPIResponse.go | 29 + .../AlibabaDtTmllcarPricevalidateResponse.go | 29 - ...ibabaNrsItemPricetagRecognizeAPIRequest.go | 66 + ...babaNrsItemPricetagRecognizeAPIResponse.go | 27 + ...AlibabaNrsItemPricetagRecognizeResponse.go | 27 - .../AlibabaNrsItemRtdataBackflowAPIRequest.go | 52 + ...AlibabaNrsItemRtdataBackflowAPIResponse.go | 27 + .../AlibabaNrsItemRtdataBackflowResponse.go | 27 - .../AlibabaDutyfreeStockQueryAPIRequest.go | 52 + .../AlibabaDutyfreeStockQueryAPIResponse.go | 27 + .../AlibabaDutyfreeStockQueryResponse.go | 27 - .../AlibabaDutyfreeStockQueryResultDo.go | 13 + .../AlibabaEinvoiceAmountCheckAPIRequest.go | 80 + .../AlibabaEinvoiceAmountCheckAPIResponse.go | 31 + .../AlibabaEinvoiceAmountCheckResponse.go | 31 - ...ibabaEinvoiceBillEinvoiceListAPIRequest.go | 94 + ...babaEinvoiceBillEinvoiceListAPIResponse.go | 27 + ...AlibabaEinvoiceBillEinvoiceListResponse.go | 27 - ...babaEinvoiceBillForwordCreateAPIRequest.go | 248 +++ ...abaEinvoiceBillForwordCreateAPIResponse.go | 31 + ...libabaEinvoiceBillForwordCreateResponse.go | 31 - .../AlibabaEinvoiceBillSyncAPIRequest.go | 206 ++ .../AlibabaEinvoiceBillSyncAPIResponse.go | 33 + .../AlibabaEinvoiceBillSyncResponse.go | 33 - .../AlibabaEinvoiceClosereqAPIRequest.go | 66 + .../AlibabaEinvoiceClosereqAPIResponse.go | 27 + .../AlibabaEinvoiceClosereqResponse.go | 27 - .../AlibabaEinvoiceCoreInvUploadAPIRequest.go | 712 +++++++ ...AlibabaEinvoiceCoreInvUploadAPIResponse.go | 29 + .../AlibabaEinvoiceCoreInvUploadResponse.go | 29 - ...libabaEinvoiceCreateResultGetAPIRequest.go | 108 + ...ibabaEinvoiceCreateResultGetAPIResponse.go | 27 + .../AlibabaEinvoiceCreateResultGetResponse.go | 27 - ...oiceCreateResultsIncrementGetAPIRequest.go | 122 ++ ...iceCreateResultsIncrementGetAPIResponse.go | 29 + ...nvoiceCreateResultsIncrementGetResponse.go | 29 - .../AlibabaEinvoiceCreatereqAPIRequest.go | 514 +++++ .../AlibabaEinvoiceCreatereqAPIResponse.go | 27 + .../AlibabaEinvoiceCreatereqResponse.go | 27 - .../AlibabaEinvoiceDeductGetAPIRequest.go | 80 + .../AlibabaEinvoiceDeductGetAPIResponse.go | 27 + .../AlibabaEinvoiceDeductGetResponse.go | 27 - ...ibabaEinvoiceDeviceOrderQueryAPIRequest.go | 52 + ...babaEinvoiceDeviceOrderQueryAPIResponse.go | 27 + ...AlibabaEinvoiceDeviceOrderQueryResponse.go | 27 - ...babaEinvoiceDeviceOrderUpdateAPIRequest.go | 108 + ...abaEinvoiceDeviceOrderUpdateAPIResponse.go | 27 + ...libabaEinvoiceDeviceOrderUpdateResponse.go | 27 - .../AlibabaEinvoiceFlowRefundAPIRequest.go | 52 + .../AlibabaEinvoiceFlowRefundAPIResponse.go | 27 + .../AlibabaEinvoiceFlowRefundResponse.go | 27 - .../AlibabaEinvoiceFlowRenewAPIRequest.go | 52 + .../AlibabaEinvoiceFlowRenewAPIResponse.go | 27 + .../AlibabaEinvoiceFlowRenewResponse.go | 27 - .../AlibabaEinvoiceFlowTaxCreateAPIRequest.go | 52 + ...AlibabaEinvoiceFlowTaxCreateAPIResponse.go | 27 + .../AlibabaEinvoiceFlowTaxCreateResponse.go | 27 - .../AlibabaEinvoiceFlowTaxGetAPIRequest.go | 53 + .../AlibabaEinvoiceFlowTaxGetAPIResponse.go | 28 + .../AlibabaEinvoiceFlowTaxGetResponse.go | 28 - ...ibabaEinvoiceIncomeAgentCheckAPIRequest.go | 52 + ...babaEinvoiceIncomeAgentCheckAPIResponse.go | 27 + ...AlibabaEinvoiceIncomeAgentCheckResponse.go | 27 - ...nvoiceIncomeCertificateReturnAPIRequest.go | 108 + ...voiceIncomeCertificateReturnAPIResponse.go | 27 + ...EinvoiceIncomeCertificateReturnResponse.go | 27 - ...abaEinvoiceIncomeDeviceReturnAPIRequest.go | 108 + ...baEinvoiceIncomeDeviceReturnAPIResponse.go | 27 + ...ibabaEinvoiceIncomeDeviceReturnResponse.go | 27 - ...libabaEinvoiceIncomeOcrReturnAPIRequest.go | 220 ++ ...ibabaEinvoiceIncomeOcrReturnAPIResponse.go | 27 + .../AlibabaEinvoiceIncomeOcrReturnResponse.go | 27 - ...ibabaEinvoiceIncomeScanReturnAPIRequest.go | 122 ++ ...babaEinvoiceIncomeScanReturnAPIResponse.go | 27 + ...AlibabaEinvoiceIncomeScanReturnResponse.go | 27 - ...babaEinvoiceIncomeTokenReturnAPIRequest.go | 150 ++ ...abaEinvoiceIncomeTokenReturnAPIResponse.go | 27 + ...libabaEinvoiceIncomeTokenReturnResponse.go | 27 - ...abaEinvoiceIncomeVerifyReturnAPIRequest.go | 430 ++++ ...baEinvoiceIncomeVerifyReturnAPIResponse.go | 27 + ...ibabaEinvoiceIncomeVerifyReturnResponse.go | 27 - ...libabaEinvoiceInvoiceapplyGetAPIRequest.go | 52 + ...ibabaEinvoiceInvoiceapplyGetAPIResponse.go | 29 + .../AlibabaEinvoiceInvoiceapplyGetResponse.go | 29 - ...abaEinvoiceInvoiceapplyUpdateAPIRequest.go | 80 + ...baEinvoiceInvoiceapplyUpdateAPIResponse.go | 29 + ...ibabaEinvoiceInvoiceapplyUpdateResponse.go | 29 - .../AlibabaEinvoiceItemUpdateAPIRequest.go | 178 ++ .../AlibabaEinvoiceItemUpdateAPIResponse.go | 27 + .../AlibabaEinvoiceItemUpdateResponse.go | 27 - .../AlibabaEinvoiceMerchantAddAPIRequest.go | 137 ++ .../AlibabaEinvoiceMerchantAddAPIResponse.go | 28 + .../AlibabaEinvoiceMerchantAddResponse.go | 28 - ...baEinvoiceMerchantBindcompanyAPIRequest.go | 136 ++ ...aEinvoiceMerchantBindcompanyAPIResponse.go | 27 + ...babaEinvoiceMerchantBindcompanyResponse.go | 27 - ...babaEinvoiceMerchantCreatereqAPIRequest.go | 458 +++++ ...abaEinvoiceMerchantCreatereqAPIResponse.go | 27 + ...libabaEinvoiceMerchantCreatereqResponse.go | 27 - ...AlibabaEinvoiceMerchantDeleteAPIRequest.go | 108 + ...libabaEinvoiceMerchantDeleteAPIResponse.go | 27 + .../AlibabaEinvoiceMerchantDeleteResponse.go | 27 - ...babaEinvoiceMerchantResultGetAPIRequest.go | 94 + ...abaEinvoiceMerchantResultGetAPIResponse.go | 27 + ...libabaEinvoiceMerchantResultGetResponse.go | 27 - ...babaEinvoiceOrderRefundUpdateAPIRequest.go | 52 + ...abaEinvoiceOrderRefundUpdateAPIResponse.go | 27 + ...libabaEinvoiceOrderRefundUpdateResponse.go | 27 - ...babaEinvoicePaperCommonReturnAPIRequest.go | 108 + ...abaEinvoicePaperCommonReturnAPIResponse.go | 27 + ...libabaEinvoicePaperCommonReturnResponse.go | 27 - .../AlibabaEinvoicePaperInvalidAPIRequest.go | 122 ++ .../AlibabaEinvoicePaperInvalidAPIResponse.go | 27 + .../AlibabaEinvoicePaperInvalidResponse.go | 27 - .../AlibabaEinvoicePaperPrintAPIRequest.go | 108 + .../AlibabaEinvoicePaperPrintAPIResponse.go | 27 + .../AlibabaEinvoicePaperPrintResponse.go | 27 - .../AlibabaEinvoicePaperReturnAPIRequest.go | 178 ++ .../AlibabaEinvoicePaperReturnAPIResponse.go | 27 + .../AlibabaEinvoicePaperReturnResponse.go | 27 - .../AlibabaEinvoicePartnerReturnAPIRequest.go | 318 +++ ...AlibabaEinvoicePartnerReturnAPIResponse.go | 27 + .../AlibabaEinvoicePartnerReturnResponse.go | 27 - .../AlibabaEinvoicePartnerUploadAPIRequest.go | 234 +++ ...AlibabaEinvoicePartnerUploadAPIResponse.go | 27 + .../AlibabaEinvoicePartnerUploadResponse.go | 27 - .../AlibabaEinvoiceProdApplyAPIRequest.go | 52 + .../AlibabaEinvoiceProdApplyAPIResponse.go | 27 + .../AlibabaEinvoiceProdApplyGetAPIRequest.go | 53 + .../AlibabaEinvoiceProdApplyGetAPIResponse.go | 28 + .../AlibabaEinvoiceProdApplyGetResponse.go | 28 - .../AlibabaEinvoiceProdApplyResponse.go | 27 - ...aEinvoiceProdResultFileurlGetAPIRequest.go | 108 + ...EinvoiceProdResultFileurlGetAPIResponse.go | 27 + ...abaEinvoiceProdResultFileurlGetResponse.go | 27 - .../AlibabaEinvoiceQrcodeCreateAPIRequest.go | 178 ++ .../AlibabaEinvoiceQrcodeCreateAPIResponse.go | 27 + .../AlibabaEinvoiceQrcodeCreateResponse.go | 27 - .../AlibabaEinvoiceRedCreatereqAPIRequest.go | 108 + .../AlibabaEinvoiceRedCreatereqAPIResponse.go | 27 + .../AlibabaEinvoiceRedCreatereqResponse.go | 27 - ...EinvoiceSerialnoBatchGenerateAPIRequest.go | 39 + ...invoiceSerialnoBatchGenerateAPIResponse.go | 28 + ...baEinvoiceSerialnoBatchGenerateResponse.go | 28 - ...ibabaEinvoiceSerialnoGenerateAPIRequest.go | 38 + ...babaEinvoiceSerialnoGenerateAPIResponse.go | 27 + ...AlibabaEinvoiceSerialnoGenerateResponse.go | 27 - ...invoiceTaxOptEsignresultQueryAPIRequest.go | 66 + ...nvoiceTaxOptEsignresultQueryAPIResponse.go | 27 + ...aEinvoiceTaxOptEsignresultQueryResponse.go | 27 - ...voiceTaxOptSalaryaccountQueryAPIRequest.go | 52 + ...oiceTaxOptSalaryaccountQueryAPIResponse.go | 27 + ...invoiceTaxOptSalaryaccountQueryResponse.go | 27 - ...oiceTaxOptSalaryaccountUpdateAPIRequest.go | 52 + ...iceTaxOptSalaryaccountUpdateAPIResponse.go | 27 + ...nvoiceTaxOptSalaryaccountUpdateResponse.go | 27 - ...iceTaxOptSalarybillCommitbillAPIRequest.go | 52 + ...ceTaxOptSalarybillCommitbillAPIResponse.go | 25 + ...voiceTaxOptSalarybillCommitbillResponse.go | 25 - ...OptSalaryrequestAcceptpaymentAPIRequest.go | 52 + ...ptSalaryrequestAcceptpaymentAPIResponse.go | 27 + ...axOptSalaryrequestAcceptpaymentResponse.go | 27 - ...xOptSalaryrequestSingleacceptAPIRequest.go | 52 + ...OptSalaryrequestSingleacceptAPIResponse.go | 27 + ...TaxOptSalaryrequestSingleacceptResponse.go | 27 - ...nvoiceTaxOptSalaryresultQueryAPIRequest.go | 66 + ...voiceTaxOptSalaryresultQueryAPIResponse.go | 27 + ...EinvoiceTaxOptSalaryresultQueryResponse.go | 27 - ...AlibabaEinvoiceUnitorderCheckAPIRequest.go | 80 + ...libabaEinvoiceUnitorderCheckAPIResponse.go | 27 + .../AlibabaEinvoiceUnitorderCheckResponse.go | 27 - ...babaEleEnterpriseCartnewQueryAPIRequest.go | 94 + ...abaEleEnterpriseCartnewQueryAPIResponse.go | 33 + ...libabaEleEnterpriseCartnewQueryResponse.go | 33 - ...ibabaEleEnterpriseCartnewSaveAPIRequest.go | 108 + ...babaEleEnterpriseCartnewSaveAPIResponse.go | 33 + ...AlibabaEleEnterpriseCartnewSaveResponse.go | 33 - ...abaEleEnterpriseCartcouponGetAPIRequest.go | 66 + ...baEleEnterpriseCartcouponGetAPIResponse.go | 33 + ...ibabaEleEnterpriseCartcouponGetResponse.go | 33 - ...AlibabaEleEnterpriseCouponGetAPIRequest.go | 52 + ...libabaEleEnterpriseCouponGetAPIResponse.go | 33 + .../AlibabaEleEnterpriseCouponGetResponse.go | 33 - ...libabaEleEnterpriseCouponSendAPIRequest.go | 150 ++ ...ibabaEleEnterpriseCouponSendAPIResponse.go | 33 + .../AlibabaEleEnterpriseCouponSendResponse.go | 33 - ...EnterpriseEmployeeBatchdeleteAPIRequest.go | 52 + ...nterpriseEmployeeBatchdeleteAPIResponse.go | 33 + ...leEnterpriseEmployeeBatchdeleteResponse.go | 33 - ...EnterpriseEmployeeBatchupdateAPIRequest.go | 52 + ...nterpriseEmployeeBatchupdateAPIResponse.go | 33 + ...leEnterpriseEmployeeBatchupdateResponse.go | 33 - ...baEleEnterpriseOrdernewCancelAPIRequest.go | 80 + ...aEleEnterpriseOrdernewCancelAPIResponse.go | 31 + ...babaEleEnterpriseOrdernewCancelResponse.go | 31 - ...baEleEnterpriseOrdernewCreateAPIRequest.go | 248 +++ ...aEleEnterpriseOrdernewCreateAPIResponse.go | 33 + ...babaEleEnterpriseOrdernewCreateResponse.go | 33 - ...ibabaEleEnterpriseOrdernewGetAPIRequest.go | 66 + ...babaEleEnterpriseOrdernewGetAPIResponse.go | 33 + ...AlibabaEleEnterpriseOrdernewGetResponse.go | 33 - ...terpriseOrdernewGetrefundinfoAPIRequest.go | 52 + ...erpriseOrdernewGetrefundinfoAPIResponse.go | 33 + ...EnterpriseOrdernewGetrefundinfoResponse.go | 33 - ...leEnterpriseOrdernewGetstatusAPIRequest.go | 52 + ...eEnterpriseOrdernewGetstatusAPIResponse.go | 33 + ...aEleEnterpriseOrdernewGetstatusResponse.go | 33 - ...rpriseOrdernewGettrackinginfoAPIRequest.go | 66 + ...priseOrdernewGettrackinginfoAPIResponse.go | 33 + ...terpriseOrdernewGettrackinginfoResponse.go | 33 - ...terpriseOrdernewPaymentstatusAPIRequest.go | 66 + ...erpriseOrdernewPaymentstatusAPIResponse.go | 31 + ...EnterpriseOrdernewPaymentstatusResponse.go | 31 - ...nterpriseRestaurantCategoriesAPIRequest.go | 38 + ...terpriseRestaurantCategoriesAPIResponse.go | 33 + ...eEnterpriseRestaurantCategoriesResponse.go | 33 - ...erpriseRestaurantCheckaddressAPIRequest.go | 66 + ...rpriseRestaurantCheckaddressAPIResponse.go | 33 + ...nterpriseRestaurantCheckaddressResponse.go | 33 - ...abaEleEnterpriseRestaurantGetAPIRequest.go | 66 + ...baEleEnterpriseRestaurantGetAPIResponse.go | 33 + ...ibabaEleEnterpriseRestaurantGetResponse.go | 33 - ...abaEleEnterpriseRestaurantMixAPIRequest.go | 248 +++ ...baEleEnterpriseRestaurantMixAPIResponse.go | 33 + ...ibabaEleEnterpriseRestaurantMixResponse.go | 33 - ...rpriseRestaurantMultispecmenuAPIRequest.go | 52 + ...priseRestaurantMultispecmenuAPIResponse.go | 33 + ...terpriseRestaurantMultispecmenuResponse.go | 33 - ...EleEnterpriseRestaurantSearchAPIRequest.go | 248 +++ ...leEnterpriseRestaurantSearchAPIResponse.go | 33 + ...baEleEnterpriseRestaurantSearchResponse.go | 33 - .../TaobaoElifeLifecardConsumeAPIRequest.go | 52 + .../TaobaoElifeLifecardConsumeAPIResponse.go | 35 + .../TaobaoElifeLifecardConsumeResponse.go | 35 - .../TaobaoElifeLifecardQueryAPIRequest.go | 52 + .../TaobaoElifeLifecardQueryAPIResponse.go | 35 + .../elife/TaobaoElifeLifecardQueryResponse.go | 35 - .../TaobaoElifeLifecardReconAPIRequest.go | 52 + .../TaobaoElifeLifecardReconAPIResponse.go | 35 + .../elife/TaobaoElifeLifecardReconResponse.go | 35 - .../TaobaoElifeLifecardRefundAPIRequest.go | 52 + .../TaobaoElifeLifecardRefundAPIResponse.go | 35 + .../TaobaoElifeLifecardRefundResponse.go | 35 - ...aobaoEticketMerchantImgUploadAPIRequest.go | 52 + ...obaoEticketMerchantImgUploadAPIResponse.go | 31 + .../TaobaoEticketMerchantImgUploadResponse.go | 31 - ...baoEticketMerchantMaAvailableAPIRequest.go | 136 ++ ...aoEticketMerchantMaAvailableAPIResponse.go | 31 + ...aobaoEticketMerchantMaAvailableResponse.go | 31 - ...aobaoEticketMerchantMaConsumeAPIRequest.go | 150 ++ ...obaoEticketMerchantMaConsumeAPIResponse.go | 31 + .../TaobaoEticketMerchantMaConsumeResponse.go | 31 - .../TaobaoEticketMerchantMaDelayAPIRequest.go | 122 ++ ...TaobaoEticketMerchantMaDelayAPIResponse.go | 31 + .../TaobaoEticketMerchantMaDelayResponse.go | 31 - ...obaoEticketMerchantMaFailsendAPIRequest.go | 108 + ...baoEticketMerchantMaFailsendAPIResponse.go | 31 + ...TaobaoEticketMerchantMaFailsendResponse.go | 31 - ...TaobaoEticketMerchantMaResendAPIRequest.go | 94 + ...aobaoEticketMerchantMaResendAPIResponse.go | 31 + .../TaobaoEticketMerchantMaResendResponse.go | 31 - ...aobaoEticketMerchantMaReverseAPIRequest.go | 136 ++ ...obaoEticketMerchantMaReverseAPIResponse.go | 31 + .../TaobaoEticketMerchantMaReverseResponse.go | 31 - .../TaobaoEticketMerchantMaSendAPIRequest.go | 94 + .../TaobaoEticketMerchantMaSendAPIResponse.go | 31 + .../TaobaoEticketMerchantMaSendResponse.go | 31 - .../TaobaoEticketMerchantTbmaGetAPIRequest.go | 52 + ...TaobaoEticketMerchantTbmaGetAPIResponse.go | 31 + .../TaobaoEticketMerchantTbmaGetResponse.go | 31 - ...arketEticketAuthBeforeconsumeAPIRequest.go | 80 + ...rketEticketAuthBeforeconsumeAPIResponse.go | 41 + ...VmarketEticketAuthBeforeconsumeResponse.go | 41 - ...obaoVmarketEticketAuthConsumeAPIRequest.go | 108 + ...baoVmarketEticketAuthConsumeAPIResponse.go | 35 + ...TaobaoVmarketEticketAuthConsumeResponse.go | 35 - ...aoVmarketEticketBeforeconsumeAPIRequest.go | 122 ++ ...oVmarketEticketBeforeconsumeAPIResponse.go | 43 + ...obaoVmarketEticketBeforeconsumeResponse.go | 43 - ...VmarketEticketCardConsumecardAPIRequest.go | 178 ++ ...marketEticketCardConsumecardAPIResponse.go | 27 + ...aoVmarketEticketCardConsumecardResponse.go | 27 - .../TaobaoVmarketEticketCodesGetAPIRequest.go | 66 + ...TaobaoVmarketEticketCodesGetAPIResponse.go | 29 + .../TaobaoVmarketEticketCodesGetResponse.go | 29 - .../TaobaoVmarketEticketConsumeAPIRequest.go | 178 ++ .../TaobaoVmarketEticketConsumeAPIResponse.go | 39 + .../TaobaoVmarketEticketConsumeResponse.go | 39 - .../TaobaoVmarketEticketFailsendAPIRequest.go | 94 + ...TaobaoVmarketEticketFailsendAPIResponse.go | 27 + .../TaobaoVmarketEticketFailsendResponse.go | 27 - ...obaoVmarketEticketFlowConsumeAPIRequest.go | 94 + ...baoVmarketEticketFlowConsumeAPIResponse.go | 29 + ...TaobaoVmarketEticketFlowConsumeResponse.go | 29 - ...aobaoVmarketEticketFlowResendAPIRequest.go | 66 + ...obaoVmarketEticketFlowResendAPIResponse.go | 29 + .../TaobaoVmarketEticketFlowResendResponse.go | 29 - ...baoVmarketEticketManageNotifyAPIRequest.go | 80 + ...aoVmarketEticketManageNotifyAPIResponse.go | 27 + ...aobaoVmarketEticketManageNotifyResponse.go | 27 - ...TaobaoVmarketEticketOplogsGetAPIRequest.go | 178 ++ ...aobaoVmarketEticketOplogsGetAPIResponse.go | 29 + .../TaobaoVmarketEticketOplogsGetResponse.go | 29 - ...oVmarketEticketPackageBaseGetAPIRequest.go | 52 + ...VmarketEticketPackageBaseGetAPIResponse.go | 27 + ...baoVmarketEticketPackageBaseGetResponse.go | 27 - ...rketEticketPackageBaseListGetAPIRequest.go | 38 + ...ketEticketPackageBaseListGetAPIResponse.go | 27 + ...marketEticketPackageBaseListGetResponse.go | 27 - ...baoVmarketEticketQrcodeUploadAPIRequest.go | 66 + ...aoVmarketEticketQrcodeUploadAPIResponse.go | 29 + ...aobaoVmarketEticketQrcodeUploadResponse.go | 29 - .../TaobaoVmarketEticketResendAPIRequest.go | 108 + .../TaobaoVmarketEticketResendAPIResponse.go | 27 + .../TaobaoVmarketEticketResendResponse.go | 27 - .../TaobaoVmarketEticketReverseAPIRequest.go | 164 ++ .../TaobaoVmarketEticketReverseAPIResponse.go | 31 + .../TaobaoVmarketEticketReverseResponse.go | 31 - .../TaobaoVmarketEticketSendAPIRequest.go | 108 + .../TaobaoVmarketEticketSendAPIResponse.go | 27 + .../TaobaoVmarketEticketSendResponse.go | 27 - .../TaobaoVmarketEticketStoreGetAPIRequest.go | 52 + ...TaobaoVmarketEticketStoreGetAPIResponse.go | 41 + .../TaobaoVmarketEticketStoreGetResponse.go | 41 - .../TaobaoVmarketEticketTasksGetAPIRequest.go | 108 + ...TaobaoVmarketEticketTasksGetAPIResponse.go | 29 + .../TaobaoVmarketEticketTasksGetResponse.go | 29 - ...aobaoVmarketEticketTimeExpandAPIRequest.go | 66 + ...obaoVmarketEticketTimeExpandAPIResponse.go | 27 + .../TaobaoVmarketEticketTimeExpandResponse.go | 27 - ...ealthExaminationAgreementListAPIRequest.go | 52 + ...althExaminationAgreementListAPIResponse.go | 31 + ...ihealthExaminationAgreementListResponse.go | 31 - ...althExaminationGoodsOnofflineAPIRequest.go | 80 + ...lthExaminationGoodsOnofflineAPIResponse.go | 27 + ...healthExaminationGoodsOnofflineResponse.go | 27 - ...healthExaminationGoodsPublishAPIRequest.go | 178 ++ ...ealthExaminationGoodsPublishAPIResponse.go | 27 + ...lihealthExaminationGoodsPublishResponse.go | 27 - ...lthExaminationHospitalPublishAPIRequest.go | 430 ++++ ...thExaminationHospitalPublishAPIResponse.go | 27 + ...ealthExaminationHospitalPublishResponse.go | 27 - ...ExaminationHospitalSpecialTagAPIRequest.go | 38 + ...xaminationHospitalSpecialTagAPIResponse.go | 27 + ...thExaminationHospitalSpecialTagResponse.go | 27 - ...hExaminationInvoiceInfoNotifyAPIRequest.go | 80 + ...ExaminationInvoiceInfoNotifyAPIResponse.go | 27 + ...lthExaminationInvoiceInfoNotifyResponse.go | 27 - ...healthExaminationItemsPublishAPIRequest.go | 136 ++ ...ealthExaminationItemsPublishAPIResponse.go | 27 + ...lihealthExaminationItemsPublishResponse.go | 27 - ...tionReportDiagnoseFileCodeGetAPIRequest.go | 80 + ...ionReportDiagnoseFileCodeGetAPIResponse.go | 27 + ...nationReportDiagnoseFileCodeGetResponse.go | 27 - ...tionReportDiagnoseOrderStatusAPIRequest.go | 52 + ...ionReportDiagnoseOrderStatusAPIResponse.go | 27 + ...nationReportDiagnoseOrderStatusResponse.go | 27 - ...tionReportDiagnoseOrderSubmitAPIRequest.go | 136 ++ ...ionReportDiagnoseOrderSubmitAPIResponse.go | 33 + ...nationReportDiagnoseOrderSubmitResponse.go | 33 - ...ionReportDiagnoseOrderSummaryAPIRequest.go | 52 + ...onReportDiagnoseOrderSummaryAPIResponse.go | 27 + ...ationReportDiagnoseOrderSummaryResponse.go | 27 - ...ortDiagnoseTempmessageReceiveAPIRequest.go | 52 + ...rtDiagnoseTempmessageReceiveAPIResponse.go | 27 + ...eportDiagnoseTempmessageReceiveResponse.go | 27 - ...ealthExaminationReserveCancelAPIRequest.go | 122 ++ ...althExaminationReserveCancelAPIResponse.go | 31 + ...ihealthExaminationReserveCancelResponse.go | 31 - ...althExaminationReserveConfirmAPIRequest.go | 360 ++++ ...lthExaminationReserveConfirmAPIResponse.go | 31 + ...healthExaminationReserveConfirmResponse.go | 31 - ...thExaminationReserveIsvModifyAPIRequest.go | 108 + ...hExaminationReserveIsvModifyAPIResponse.go | 27 + ...althExaminationReserveIsvModifyResponse.go | 27 - ...xaminationReserveModifyNotifyAPIRequest.go | 192 ++ ...aminationReserveModifyNotifyAPIResponse.go | 27 + ...hExaminationReserveModifyNotifyResponse.go | 27 - ...ealthExaminationReserveReportAPIRequest.go | 122 ++ ...althExaminationReserveReportAPIResponse.go | 31 + ...xaminationReserveReportNofifyAPIRequest.go | 108 + ...aminationReserveReportNofifyAPIResponse.go | 29 + ...hExaminationReserveReportNofifyResponse.go | 29 - ...ihealthExaminationReserveReportResponse.go | 31 - ...healthExaminationReserveStateAPIRequest.go | 80 + ...ealthExaminationReserveStateAPIResponse.go | 31 + ...ExaminationReserveStateNotifyAPIRequest.go | 94 + ...xaminationReserveStateNotifyAPIResponse.go | 27 + ...thExaminationReserveStateNotifyResponse.go | 27 - ...lihealthExaminationReserveStateResponse.go | 31 - ...thExaminationServiceareaCheckAPIRequest.go | 178 ++ ...hExaminationServiceareaCheckAPIResponse.go | 29 + ...althExaminationServiceareaCheckResponse.go | 29 - ...minationTodoorServiceinfoSyncAPIRequest.go | 108 + ...inationTodoorServiceinfoSyncAPIResponse.go | 27 + ...xaminationTodoorServiceinfoSyncResponse.go | 27 - .../exchange/TmallExchangeAgreeAPIRequest.go | 150 ++ .../exchange/TmallExchangeAgreeAPIResponse.go | 27 + model/exchange/TmallExchangeAgreeResponse.go | 27 - .../TmallExchangeConsigngoodsAPIRequest.go | 108 + .../TmallExchangeConsigngoodsAPIResponse.go | 27 + .../TmallExchangeConsigngoodsResponse.go | 27 - model/exchange/TmallExchangeGetAPIRequest.go | 66 + model/exchange/TmallExchangeGetAPIResponse.go | 27 + model/exchange/TmallExchangeGetResponse.go | 27 - .../TmallExchangeMessageAddAPIRequest.go | 94 + .../TmallExchangeMessageAddAPIResponse.go | 27 + .../TmallExchangeMessageAddResponse.go | 27 - .../TmallExchangeMessagesGetAPIRequest.go | 108 + .../TmallExchangeMessagesGetAPIResponse.go | 27 + .../TmallExchangeMessagesGetResponse.go | 27 - .../TmallExchangeReceiveGetAPIRequest.go | 220 ++ .../TmallExchangeReceiveGetAPIResponse.go | 39 + .../TmallExchangeReceiveGetResponse.go | 39 - .../exchange/TmallExchangeRefuseAPIRequest.go | 108 + .../TmallExchangeRefuseAPIResponse.go | 27 + model/exchange/TmallExchangeRefuseResponse.go | 27 - .../TmallExchangeRefusereasonGetAPIRequest.go | 80 + ...TmallExchangeRefusereasonGetAPIResponse.go | 27 + .../TmallExchangeRefusereasonGetResponse.go | 27 - ...TmallExchangeReturngoodsAgreeAPIRequest.go | 66 + ...mallExchangeReturngoodsAgreeAPIResponse.go | 27 + .../TmallExchangeReturngoodsAgreeResponse.go | 27 - ...mallExchangeReturngoodsRefuseAPIRequest.go | 94 + ...allExchangeReturngoodsRefuseAPIResponse.go | 27 + .../TmallExchangeReturngoodsRefuseResponse.go | 27 - model/fans/TmallFansArenaPushAPIRequest.go | 52 + model/fans/TmallFansArenaPushAPIResponse.go | 27 + model/fans/TmallFansArenaPushResponse.go | 27 - model/fans/TmallFansArenaRecordAPIRequest.go | 80 + model/fans/TmallFansArenaRecordAPIResponse.go | 27 + model/fans/TmallFansArenaRecordResponse.go | 27 - .../TmallFansCashpoolCheckpayAPIRequest.go | 52 + .../TmallFansCashpoolCheckpayAPIResponse.go | 27 + .../fans/TmallFansCashpoolCheckpayResponse.go | 27 - .../fans/TmallFansCashpoolCreateAPIRequest.go | 52 + .../TmallFansCashpoolCreateAPIResponse.go | 27 + model/fans/TmallFansCashpoolCreateResponse.go | 27 - .../TaobaoFeedflowAccountGetAPIRequest.go | 41 + .../TaobaoFeedflowAccountGetAPIResponse.go | 30 + .../TaobaoFeedflowAccountGetResponse.go | 30 - ...aoFeedflowAccountRptdailylistAPIRequest.go | 52 + ...oFeedflowAccountRptdailylistAPIResponse.go | 27 + ...obaoFeedflowAccountRptdailylistResponse.go | 27 - ...baoFeedflowAccountRptdailylistResultDto.go | 11 + ...baoFeedflowAccountRpthourlistAPIRequest.go | 52 + ...aoFeedflowAccountRpthourlistAPIResponse.go | 27 + ...aobaoFeedflowAccountRpthourlistResponse.go | 27 - ...obaoFeedflowAccountRpthourlistResultDto.go | 15 + .../TaobaoFeedflowItemAdgroupAddAPIRequest.go | 52 + ...TaobaoFeedflowItemAdgroupAddAPIResponse.go | 27 + .../TaobaoFeedflowItemAdgroupAddResponse.go | 27 - .../TaobaoFeedflowItemAdgroupAddResultDto.go | 11 + ...FeedflowItemAdgroupAdzoneBindAPIRequest.go | 66 + ...eedflowItemAdgroupAdzoneBindAPIResponse.go | 27 + ...aoFeedflowItemAdgroupAdzoneBindResponse.go | 27 - ...oFeedflowItemAdgroupAdzoneBindResultDto.go | 9 + ...FeedflowItemAdgroupAdzonePageAPIRequest.go | 52 + ...eedflowItemAdgroupAdzonePageAPIResponse.go | 27 + ...aoFeedflowItemAdgroupAdzonePageResponse.go | 27 - ...oFeedflowItemAdgroupAdzonePageResultDto.go | 13 + ...edflowItemAdgroupAdzoneUnbindAPIRequest.go | 66 + ...dflowItemAdgroupAdzoneUnbindAPIResponse.go | 27 + ...FeedflowItemAdgroupAdzoneUnbindResponse.go | 27 - ...eedflowItemAdgroupAdzoneUnbindResultDto.go | 9 + ...lowItemAdgroupCreativeAddBindAPIRequest.go | 66 + ...owItemAdgroupCreativeAddBindAPIResponse.go | 27 + ...dflowItemAdgroupCreativeAddBindResponse.go | 27 - ...flowItemAdgroupCreativeAddBindResultDto.go | 9 + ...edflowItemAdgroupCreativePageAPIRequest.go | 52 + ...dflowItemAdgroupCreativePageAPIResponse.go | 27 + ...FeedflowItemAdgroupCreativePageResponse.go | 27 - ...eedflowItemAdgroupCreativePageResultDto.go | 13 + ...obaoFeedflowItemAdgroupDeleteAPIRequest.go | 66 + ...baoFeedflowItemAdgroupDeleteAPIResponse.go | 27 + ...TaobaoFeedflowItemAdgroupDeleteResponse.go | 27 - ...aobaoFeedflowItemAdgroupDeleteResultDto.go | 11 + ...obaoFeedflowItemAdgroupModifyAPIRequest.go | 52 + ...baoFeedflowItemAdgroupModifyAPIResponse.go | 27 + ...TaobaoFeedflowItemAdgroupModifyResponse.go | 27 - ...aobaoFeedflowItemAdgroupModifyResultDto.go | 11 + ...TaobaoFeedflowItemAdgroupPageAPIRequest.go | 52 + ...aobaoFeedflowItemAdgroupPageAPIResponse.go | 27 + .../TaobaoFeedflowItemAdgroupPageResponse.go | 27 - .../TaobaoFeedflowItemAdgroupPageResultDto.go | 13 + ...edflowItemAdgroupRptdailylistAPIRequest.go | 52 + ...dflowItemAdgroupRptdailylistAPIResponse.go | 27 + ...FeedflowItemAdgroupRptdailylistResponse.go | 27 - ...eedflowItemAdgroupRptdailylistResultDto.go | 11 + ...eedflowItemAdgroupRpthourlistAPIRequest.go | 52 + ...edflowItemAdgroupRpthourlistAPIResponse.go | 27 + ...oFeedflowItemAdgroupRpthourlistResponse.go | 27 - ...FeedflowItemAdgroupRpthourlistResultDto.go | 15 + .../TaobaoFeedflowItemAdzoneListAPIRequest.go | 52 + ...TaobaoFeedflowItemAdzoneListAPIResponse.go | 27 + .../TaobaoFeedflowItemAdzoneListResponse.go | 27 - .../TaobaoFeedflowItemAdzoneListResultDto.go | 11 + ...eedflowItemAdzoneRptdailylistAPIRequest.go | 52 + ...edflowItemAdzoneRptdailylistAPIResponse.go | 27 + ...oFeedflowItemAdzoneRptdailylistResponse.go | 27 - ...FeedflowItemAdzoneRptdailylistResultDto.go | 11 + ...FeedflowItemAdzoneRpthourlistAPIRequest.go | 52 + ...eedflowItemAdzoneRpthourlistAPIResponse.go | 27 + ...aoFeedflowItemAdzoneRpthourlistResponse.go | 27 - ...oFeedflowItemAdzoneRpthourlistResultDto.go | 15 + ...oFeedflowItemAlgoCrowdSuggestAPIRequest.go | 80 + ...FeedflowItemAlgoCrowdSuggestAPIResponse.go | 27 + ...baoFeedflowItemAlgoCrowdSuggestResponse.go | 27 - ...aoFeedflowItemAlgoCrowdSuggestResultDto.go | 11 + ...TaobaoFeedflowItemCampaignAddAPIRequest.go | 52 + ...aobaoFeedflowItemCampaignAddAPIResponse.go | 27 + .../TaobaoFeedflowItemCampaignAddResponse.go | 27 - .../TaobaoFeedflowItemCampaignAddResultDto.go | 11 + ...FeedflowItemCampaignDaybudgetAPIRequest.go | 38 + ...eedflowItemCampaignDaybudgetAPIResponse.go | 27 + ...aoFeedflowItemCampaignDaybudgetResponse.go | 27 - ...oFeedflowItemCampaignDaybudgetResultDto.go | 11 + ...baoFeedflowItemCampaignDeleteAPIRequest.go | 52 + ...aoFeedflowItemCampaignDeleteAPIResponse.go | 27 + ...aobaoFeedflowItemCampaignDeleteResponse.go | 27 - ...obaoFeedflowItemCampaignDeleteResultDto.go | 11 + ...TaobaoFeedflowItemCampaignGetAPIRequest.go | 52 + ...aobaoFeedflowItemCampaignGetAPIResponse.go | 27 + .../TaobaoFeedflowItemCampaignGetResponse.go | 27 - .../TaobaoFeedflowItemCampaignGetResultDto.go | 11 + ...baoFeedflowItemCampaignModifyAPIRequest.go | 52 + ...aoFeedflowItemCampaignModifyAPIResponse.go | 27 + ...aobaoFeedflowItemCampaignModifyResponse.go | 27 - ...obaoFeedflowItemCampaignModifyResultDto.go | 11 + ...aobaoFeedflowItemCampaignPageAPIRequest.go | 52 + ...obaoFeedflowItemCampaignPageAPIResponse.go | 27 + .../TaobaoFeedflowItemCampaignPageResponse.go | 27 - ...TaobaoFeedflowItemCampaignPageResultDto.go | 13 + ...dflowItemCampaignRptdailylistAPIRequest.go | 52 + ...flowItemCampaignRptdailylistAPIResponse.go | 27 + ...eedflowItemCampaignRptdailylistResponse.go | 27 - ...edflowItemCampaignRptdailylistResultDto.go | 11 + ...edflowItemCampaignRpthourlistAPIRequest.go | 52 + ...dflowItemCampaignRpthourlistAPIResponse.go | 27 + ...FeedflowItemCampaignRpthourlistResponse.go | 27 - ...eedflowItemCampaignRpthourlistResultDto.go | 15 + ...baoFeedflowItemCreativeDeleteAPIRequest.go | 52 + ...aoFeedflowItemCreativeDeleteAPIResponse.go | 27 + ...aobaoFeedflowItemCreativeDeleteResponse.go | 27 - ...obaoFeedflowItemCreativeDeleteResultDto.go | 11 + ...dflowItemCreativeRptdailylistAPIRequest.go | 52 + ...flowItemCreativeRptdailylistAPIResponse.go | 27 + ...eedflowItemCreativeRptdailylistResponse.go | 27 - ...edflowItemCreativeRptdailylistResultDto.go | 11 + ...edflowItemCreativeRpthourlistAPIRequest.go | 52 + ...dflowItemCreativeRpthourlistAPIResponse.go | 27 + ...FeedflowItemCreativeRpthourlistResponse.go | 27 - ...eedflowItemCreativeRpthourlistResultDto.go | 15 + .../TaobaoFeedflowItemCrowdAddAPIRequest.go | 66 + .../TaobaoFeedflowItemCrowdAddAPIResponse.go | 27 + .../TaobaoFeedflowItemCrowdAddResponse.go | 27 - .../TaobaoFeedflowItemCrowdAddResultDto.go | 9 + ...TaobaoFeedflowItemCrowdDeleteAPIRequest.go | 66 + ...aobaoFeedflowItemCrowdDeleteAPIResponse.go | 27 + .../TaobaoFeedflowItemCrowdDeleteResponse.go | 27 - .../TaobaoFeedflowItemCrowdDeleteResultDto.go | 9 + ...TaobaoFeedflowItemCrowdModifyAPIRequest.go | 66 + ...aobaoFeedflowItemCrowdModifyAPIResponse.go | 27 + .../TaobaoFeedflowItemCrowdModifyResponse.go | 27 - .../TaobaoFeedflowItemCrowdModifyResultDto.go | 9 + ...aoFeedflowItemCrowdModifybindAPIRequest.go | 66 + ...oFeedflowItemCrowdModifybindAPIResponse.go | 27 + ...obaoFeedflowItemCrowdModifybindResponse.go | 27 - ...baoFeedflowItemCrowdModifybindResultDto.go | 9 + .../TaobaoFeedflowItemCrowdPageAPIRequest.go | 52 + .../TaobaoFeedflowItemCrowdPageAPIResponse.go | 27 + .../TaobaoFeedflowItemCrowdPageResponse.go | 27 - .../TaobaoFeedflowItemCrowdPageResultDto.go | 13 + ...FeedflowItemCrowdRptdailylistAPIRequest.go | 52 + ...eedflowItemCrowdRptdailylistAPIResponse.go | 27 + ...aoFeedflowItemCrowdRptdailylistResponse.go | 27 - ...oFeedflowItemCrowdRptdailylistResultDto.go | 11 + ...oFeedflowItemCrowdRpthourlistAPIRequest.go | 52 + ...FeedflowItemCrowdRpthourlistAPIResponse.go | 27 + ...baoFeedflowItemCrowdRpthourlistResponse.go | 27 - ...aoFeedflowItemCrowdRpthourlistResultDto.go | 15 + .../TaobaoFeedflowItemItemPageAPIRequest.go | 52 + .../TaobaoFeedflowItemItemPageAPIResponse.go | 27 + .../TaobaoFeedflowItemItemPageResponse.go | 27 - .../TaobaoFeedflowItemItemPageResultDto.go | 13 + .../TaobaoFeedflowItemOptionPageAPIRequest.go | 52 + ...TaobaoFeedflowItemOptionPageAPIResponse.go | 27 + .../TaobaoFeedflowItemOptionPageResponse.go | 27 - .../TaobaoFeedflowItemOptionPageResultDto.go | 13 + ...aoFeedflowItemTargetValidlistAPIRequest.go | 52 + ...oFeedflowItemTargetValidlistAPIResponse.go | 27 + ...obaoFeedflowItemTargetValidlistResponse.go | 27 - ...baoFeedflowItemTargetValidlistResultDto.go | 11 + .../AlibabaAscpCnskuUpdateAPIRequest.go | 66 + .../AlibabaAscpCnskuUpdateAPIResponse.go | 35 + .../fenxiao/AlibabaAscpCnskuUpdateResponse.go | 35 - .../TaobaoFenxiaoCooperationGetAPIRequest.go | 150 ++ .../TaobaoFenxiaoCooperationGetAPIResponse.go | 29 + .../TaobaoFenxiaoCooperationGetResponse.go | 29 - ...aoDealerRequisitionorderAgreeAPIRequest.go | 52 + ...oDealerRequisitionorderAgreeAPIResponse.go | 27 + ...xiaoDealerRequisitionorderAgreeResponse.go | 27 - ...aoDealerRequisitionorderCloseAPIRequest.go | 80 + ...oDealerRequisitionorderCloseAPIResponse.go | 27 + ...xiaoDealerRequisitionorderCloseResponse.go | 27 - ...oDealerRequisitionorderCreateAPIRequest.go | 192 ++ ...DealerRequisitionorderCreateAPIResponse.go | 27 + ...iaoDealerRequisitionorderCreateResponse.go | 27 - ...xiaoDealerRequisitionorderGetAPIRequest.go | 136 ++ ...iaoDealerRequisitionorderGetAPIResponse.go | 29 + ...enxiaoDealerRequisitionorderGetResponse.go | 29 - ...aoDealerRequisitionorderQueryAPIRequest.go | 66 + ...oDealerRequisitionorderQueryAPIResponse.go | 27 + ...xiaoDealerRequisitionorderQueryResponse.go | 27 - ...rRequisitionorderRemarkUpdateAPIRequest.go | 80 + ...RequisitionorderRemarkUpdateAPIResponse.go | 27 + ...lerRequisitionorderRemarkUpdateResponse.go | 27 - .../TaobaoFenxiaoDiscountsGetAPIRequest.go | 66 + .../TaobaoFenxiaoDiscountsGetAPIResponse.go | 29 + .../TaobaoFenxiaoDiscountsGetResponse.go | 29 - ...baoFenxiaoDistributorItemsGetAPIRequest.go | 122 ++ ...aoFenxiaoDistributorItemsGetAPIResponse.go | 29 + ...aobaoFenxiaoDistributorItemsGetResponse.go | 29 - ...FenxiaoDistributorProductsGetAPIRequest.go | 220 ++ ...enxiaoDistributorProductsGetAPIResponse.go | 29 + ...aoFenxiaoDistributorProductsGetResponse.go | 29 - .../TaobaoFenxiaoDistributorsGetAPIRequest.go | 52 + ...TaobaoFenxiaoDistributorsGetAPIResponse.go | 27 + .../TaobaoFenxiaoDistributorsGetResponse.go | 27 - .../TaobaoFenxiaoGradesGetAPIRequest.go | 38 + .../TaobaoFenxiaoGradesGetAPIResponse.go | 27 + .../fenxiao/TaobaoFenxiaoGradesGetResponse.go | 27 - .../TaobaoFenxiaoLoginUserGetAPIRequest.go | 38 + .../TaobaoFenxiaoLoginUserGetAPIResponse.go | 27 + .../TaobaoFenxiaoLoginUserGetResponse.go | 27 - ...TaobaoFenxiaoOrderConfirmPaidAPIRequest.go | 66 + ...aobaoFenxiaoOrderConfirmPaidAPIResponse.go | 27 + .../TaobaoFenxiaoOrderConfirmPaidResponse.go | 27 - ...aobaoFenxiaoOrderRemarkUpdateAPIRequest.go | 80 + ...obaoFenxiaoOrderRemarkUpdateAPIResponse.go | 27 + .../TaobaoFenxiaoOrderRemarkUpdateResponse.go | 27 - .../TaobaoFenxiaoOrdersGetAPIRequest.go | 206 ++ .../TaobaoFenxiaoOrdersGetAPIResponse.go | 29 + .../fenxiao/TaobaoFenxiaoOrdersGetResponse.go | 29 - .../TaobaoFenxiaoProductAddAPIRequest.go | 556 ++++++ .../TaobaoFenxiaoProductAddAPIResponse.go | 29 + .../TaobaoFenxiaoProductAddResponse.go | 29 - ...aoFenxiaoProductGradepriceGetAPIRequest.go | 80 + ...oFenxiaoProductGradepriceGetAPIResponse.go | 29 + ...obaoFenxiaoProductGradepriceGetResponse.go | 29 - ...enxiaoProductGradepriceUpdateAPIRequest.go | 122 ++ ...nxiaoProductGradepriceUpdateAPIResponse.go | 27 + ...oFenxiaoProductGradepriceUpdateResponse.go | 27 - ...obaoFenxiaoProductImageDeleteAPIRequest.go | 80 + ...baoFenxiaoProductImageDeleteAPIResponse.go | 29 + ...TaobaoFenxiaoProductImageDeleteResponse.go | 29 - ...obaoFenxiaoProductImageUploadAPIRequest.go | 108 + ...baoFenxiaoProductImageUploadAPIResponse.go | 29 + ...TaobaoFenxiaoProductImageUploadResponse.go | 29 - ...nxiaoProductImportFromAuctionAPIRequest.go | 80 + ...xiaoProductImportFromAuctionAPIResponse.go | 29 + ...FenxiaoProductImportFromAuctionResponse.go | 29 - .../TaobaoFenxiaoProductMapAddAPIRequest.go | 108 + .../TaobaoFenxiaoProductMapAddAPIResponse.go | 27 + .../TaobaoFenxiaoProductMapAddResponse.go | 27 - ...oFenxiaoProductQuantityUpdateAPIRequest.go | 94 + ...FenxiaoProductQuantityUpdateAPIResponse.go | 29 + ...baoFenxiaoProductQuantityUpdateResponse.go | 29 - .../TaobaoFenxiaoProductSkuAddAPIRequest.go | 136 ++ .../TaobaoFenxiaoProductSkuAddAPIResponse.go | 29 + .../TaobaoFenxiaoProductSkuAddResponse.go | 29 - ...TaobaoFenxiaoProductSkuDeleteAPIRequest.go | 66 + ...aobaoFenxiaoProductSkuDeleteAPIResponse.go | 29 + .../TaobaoFenxiaoProductSkuDeleteResponse.go | 29 - ...TaobaoFenxiaoProductSkuUpdateAPIRequest.go | 136 ++ ...aobaoFenxiaoProductSkuUpdateAPIResponse.go | 29 + .../TaobaoFenxiaoProductSkuUpdateResponse.go | 29 - .../TaobaoFenxiaoProductSkusGetAPIRequest.go | 52 + .../TaobaoFenxiaoProductSkusGetAPIResponse.go | 29 + .../TaobaoFenxiaoProductSkusGetResponse.go | 29 - ...FenxiaoProductToChannelImportAPIRequest.go | 66 + ...enxiaoProductToChannelImportAPIResponse.go | 25 + ...aoFenxiaoProductToChannelImportResponse.go | 25 - .../TaobaoFenxiaoProductUpdateAPIRequest.go | 556 ++++++ .../TaobaoFenxiaoProductUpdateAPIResponse.go | 29 + .../TaobaoFenxiaoProductUpdateResponse.go | 29 - .../TaobaoFenxiaoProductcatAddAPIRequest.go | 108 + .../TaobaoFenxiaoProductcatAddAPIResponse.go | 29 + .../TaobaoFenxiaoProductcatAddResponse.go | 29 - ...TaobaoFenxiaoProductcatDeleteAPIRequest.go | 52 + ...aobaoFenxiaoProductcatDeleteAPIResponse.go | 27 + .../TaobaoFenxiaoProductcatDeleteResponse.go | 27 - ...TaobaoFenxiaoProductcatUpdateAPIRequest.go | 122 ++ ...aobaoFenxiaoProductcatUpdateAPIResponse.go | 27 + .../TaobaoFenxiaoProductcatUpdateResponse.go | 27 - .../TaobaoFenxiaoProductcatsGetAPIRequest.go | 52 + .../TaobaoFenxiaoProductcatsGetAPIResponse.go | 29 + .../TaobaoFenxiaoProductcatsGetResponse.go | 29 - .../TaobaoFenxiaoProductsGetAPIRequest.go | 192 ++ .../TaobaoFenxiaoProductsGetAPIResponse.go | 29 + .../TaobaoFenxiaoProductsGetResponse.go | 29 - .../TaobaoFenxiaoRefundGetAPIRequest.go | 66 + .../TaobaoFenxiaoRefundGetAPIResponse.go | 27 + .../fenxiao/TaobaoFenxiaoRefundGetResponse.go | 27 - .../TaobaoFenxiaoRefundQueryAPIRequest.go | 150 ++ .../TaobaoFenxiaoRefundQueryAPIResponse.go | 29 + .../TaobaoFenxiaoRefundQueryResponse.go | 29 - .../TaobaoFenxiaoRequisitionsGetAPIRequest.go | 108 + ...TaobaoFenxiaoRequisitionsGetAPIResponse.go | 31 + .../TaobaoFenxiaoRequisitionsGetResponse.go | 31 - ...oFenxiaoTradePrepayOfflineAddAPIRequest.go | 52 + ...FenxiaoTradePrepayOfflineAddAPIResponse.go | 27 + ...baoFenxiaoTradePrepayOfflineAddResponse.go | 27 - ...nxiaoTradePrepayOfflineReduceAPIRequest.go | 52 + ...xiaoTradePrepayOfflineReduceAPIResponse.go | 27 + ...FenxiaoTradePrepayOfflineReduceResponse.go | 27 - ...TaobaoInventoryAdjustExternalAPIRequest.go | 151 ++ ...aobaoInventoryAdjustExternalAPIResponse.go | 30 + .../TaobaoInventoryAdjustExternalResponse.go | 30 - .../TaobaoInventoryAdjustTradeAPIRequest.go | 94 + .../TaobaoInventoryAdjustTradeAPIResponse.go | 29 + .../TaobaoInventoryAdjustTradeResponse.go | 29 - .../TaobaoInventoryInitialAPIRequest.go | 67 + .../TaobaoInventoryInitialAPIResponse.go | 28 + .../TaobaoInventoryInitialItemAPIRequest.go | 67 + .../TaobaoInventoryInitialItemAPIResponse.go | 28 + .../TaobaoInventoryInitialItemResponse.go | 28 - .../fenxiao/TaobaoInventoryInitialResponse.go | 28 - .../fenxiao/TaobaoInventoryQueryAPIRequest.go | 95 + .../TaobaoInventoryQueryAPIResponse.go | 30 + model/fenxiao/TaobaoInventoryQueryResponse.go | 30 - .../TaobaoInventoryStoreManageAPIRequest.go | 178 ++ .../TaobaoInventoryStoreManageAPIResponse.go | 27 + .../TaobaoInventoryStoreManageResponse.go | 27 - .../TaobaoInventoryStoreQueryAPIRequest.go | 52 + .../TaobaoInventoryStoreQueryAPIResponse.go | 27 + .../TaobaoInventoryStoreQueryResponse.go | 27 - ...aobaoInventoryWarehouseManageAPIRequest.go | 52 + ...obaoInventoryWarehouseManageAPIResponse.go | 27 + .../TaobaoInventoryWarehouseManageResponse.go | 27 - ...TaobaoInventoryWarehouseQueryAPIRequest.go | 66 + ...aobaoInventoryWarehouseQueryAPIResponse.go | 27 + .../TaobaoInventoryWarehouseQueryResponse.go | 27 - .../fenxiao/TaobaoKaolaScitemAddAPIRequest.go | 66 + .../TaobaoKaolaScitemAddAPIResponse.go | 35 + model/fenxiao/TaobaoKaolaScitemAddResponse.go | 35 - .../TaobaoRegionPriceCancleAPIRequest.go | 66 + .../TaobaoRegionPriceCancleAPIResponse.go | 27 + .../TaobaoRegionPriceCancleResponse.go | 27 - .../TaobaoRegionPriceManageAPIRequest.go | 94 + .../TaobaoRegionPriceManageAPIResponse.go | 27 + .../TaobaoRegionPriceManageResponse.go | 27 - .../TaobaoRegionPriceQueryAPIRequest.go | 80 + .../TaobaoRegionPriceQueryAPIResponse.go | 27 + .../fenxiao/TaobaoRegionPriceQueryResponse.go | 27 - .../TaobaoRegionSaleQueryAPIRequest.go | 80 + .../TaobaoRegionSaleQueryAPIResponse.go | 27 + .../fenxiao/TaobaoRegionSaleQueryResponse.go | 27 - .../TaobaoRegionWarehouseManageAPIRequest.go | 66 + .../TaobaoRegionWarehouseManageAPIResponse.go | 27 + .../TaobaoRegionWarehouseManageResponse.go | 27 - .../TaobaoRegionWarehouseQueryAPIRequest.go | 52 + .../TaobaoRegionWarehouseQueryAPIResponse.go | 27 + .../TaobaoRegionWarehouseQueryResponse.go | 27 - model/fenxiao/TaobaoScitemAddAPIRequest.go | 346 ++++ model/fenxiao/TaobaoScitemAddAPIResponse.go | 27 + model/fenxiao/TaobaoScitemAddResponse.go | 27 - model/fenxiao/TaobaoScitemGetAPIRequest.go | 52 + model/fenxiao/TaobaoScitemGetAPIResponse.go | 27 + model/fenxiao/TaobaoScitemGetResponse.go | 27 - model/fenxiao/TaobaoScitemMapAddAPIRequest.go | 108 + .../fenxiao/TaobaoScitemMapAddAPIResponse.go | 27 + model/fenxiao/TaobaoScitemMapAddResponse.go | 27 - .../TaobaoScitemMapDeleteAPIRequest.go | 66 + .../TaobaoScitemMapDeleteAPIResponse.go | 27 + .../fenxiao/TaobaoScitemMapDeleteResponse.go | 27 - .../fenxiao/TaobaoScitemMapQueryAPIRequest.go | 66 + .../TaobaoScitemMapQueryAPIResponse.go | 27 + model/fenxiao/TaobaoScitemMapQueryResponse.go | 27 - .../TaobaoScitemOutercodeGetAPIRequest.go | 52 + .../TaobaoScitemOutercodeGetAPIResponse.go | 27 + .../TaobaoScitemOutercodeGetResponse.go | 27 - model/fenxiao/TaobaoScitemQueryAPIRequest.go | 136 ++ model/fenxiao/TaobaoScitemQueryAPIResponse.go | 31 + model/fenxiao/TaobaoScitemQueryResponse.go | 31 - model/fenxiao/TaobaoScitemUpdateAPIRequest.go | 374 ++++ .../fenxiao/TaobaoScitemUpdateAPIResponse.go | 27 + model/fenxiao/TaobaoScitemUpdateResponse.go | 27 - .../TmallChannelProductsGetAPIRequest.go | 60 + .../TmallChannelProductsGetAPIResponse.go | 37 + .../TmallChannelProductsGetResponse.go | 37 - .../TmallInventoryQueryForstoreAPIRequest.go | 52 + .../TmallInventoryQueryForstoreAPIResponse.go | 33 + .../TmallInventoryQueryForstoreResponse.go | 33 - ...ychainChannelProductDownshelfAPIRequest.go | 52 + ...chainChannelProductDownshelfAPIResponse.go | 27 + ...plychainChannelProductDownshelfResponse.go | 27 - ...lychainChannelProductDownshelfResultDto.go | 13 + ...lychainChannelProductPriceGetAPIRequest.go | 94 + ...ychainChannelProductPriceGetAPIResponse.go | 27 + ...pplychainChannelProductPriceGetResponse.go | 27 - ...plychainChannelProductPriceGetResultDto.go | 13 + ...hainChannelProductPriceUpdateAPIRequest.go | 136 ++ ...ainChannelProductPriceUpdateAPIResponse.go | 27 + ...ychainChannelProductPriceUpdateResponse.go | 27 - ...hainChannelProductQuantityGetAPIRequest.go | 66 + ...ainChannelProductQuantityGetAPIResponse.go | 27 + ...ychainChannelProductQuantityGetResponse.go | 27 - ...chainChannelProductQuantityGetResultDto.go | 13 + ...nChannelProductQuantityUpdateAPIRequest.go | 94 + ...ChannelProductQuantityUpdateAPIResponse.go | 27 + ...ainChannelProductQuantityUpdateResponse.go | 27 - ...inChannelProductQuantityUpdateResultDto.go | 13 + ...plychainChannelProductReleaseAPIRequest.go | 66 + ...lychainChannelProductReleaseAPIResponse.go | 27 + ...upplychainChannelProductReleaseResponse.go | 27 - ...pplychainChannelProductReleaseResultDto.go | 17 + ...hannelProductReleaseStatusGetAPIRequest.go | 66 + ...annelProductReleaseStatusGetAPIResponse.go | 27 + ...nChannelProductReleaseStatusGetResponse.go | 27 - ...ChannelProductReleaseStatusGetResultDto.go | 13 + ...plychainChannelProductUpshelfAPIRequest.go | 52 + ...lychainChannelProductUpshelfAPIResponse.go | 27 + ...upplychainChannelProductUpshelfResponse.go | 27 - ...pplychainChannelProductUpshelfResultDto.go | 13 + .../TaobaoFilmAccountPhoneQueryAPIRequest.go | 52 + .../TaobaoFilmAccountPhoneQueryAPIResponse.go | 27 + .../TaobaoFilmAccountPhoneQueryResponse.go | 27 - ...FilmDataThirdPartyRefundOrderAPIRequest.go | 150 ++ ...ilmDataThirdPartyRefundOrderAPIResponse.go | 27 + ...aoFilmDataThirdPartyRefundOrderResponse.go | 27 - ...aoFilmKoubeiCinemaGetactivityAPIRequest.go | 122 ++ ...oFilmKoubeiCinemaGetactivityAPIResponse.go | 27 + ...obaoFilmKoubeiCinemaGetactivityResponse.go | 27 - model/film/TaobaoFilmLotteryDrawAPIRequest.go | 108 + .../film/TaobaoFilmLotteryDrawAPIResponse.go | 27 + model/film/TaobaoFilmLotteryDrawResponse.go | 27 - .../TaobaoFilmLotteryRuleQueryAPIRequest.go | 80 + .../TaobaoFilmLotteryRuleQueryAPIResponse.go | 27 + .../TaobaoFilmLotteryRuleQueryResponse.go | 27 - .../TaobaoFilmLotterySendcodeAPIRequest.go | 52 + .../TaobaoFilmLotterySendcodeAPIResponse.go | 27 + .../film/TaobaoFilmLotterySendcodeResponse.go | 27 - ...mTfbackyardCardscheduleUpdateAPIRequest.go | 52 + ...TfbackyardCardscheduleUpdateAPIResponse.go | 27 + ...ilmTfbackyardCardscheduleUpdateResponse.go | 27 - ...mTfavatarBillSalePaymentQueryAPIRequest.go | 136 ++ ...TfavatarBillSalePaymentQueryAPIResponse.go | 27 + ...ilmTfavatarBillSalePaymentQueryResponse.go | 27 - ...ilmTfavatarBillSalePrintQueryAPIRequest.go | 137 ++ ...lmTfavatarBillSalePrintQueryAPIResponse.go | 28 + ...oFilmTfavatarBillSalePrintQueryResponse.go | 28 - ...lmTfavatarBillSaleRefundQueryAPIRequest.go | 136 ++ ...mTfavatarBillSaleRefundQueryAPIResponse.go | 27 + ...FilmTfavatarBillSaleRefundQueryResponse.go | 27 - ...favatarBillTicketPaymentQueryAPIRequest.go | 136 ++ ...avatarBillTicketPaymentQueryAPIResponse.go | 27 + ...mTfavatarBillTicketPaymentQueryResponse.go | 27 - ...TfavatarBillTicketRefundQueryAPIRequest.go | 137 ++ ...favatarBillTicketRefundQueryAPIResponse.go | 28 + ...lmTfavatarBillTicketRefundQueryResponse.go | 28 - .../fivee/TaobaoFiveeCompanyGetAPIRequest.go | 66 + .../fivee/TaobaoFiveeCompanyGetAPIResponse.go | 27 + model/fivee/TaobaoFiveeCompanyGetResponse.go | 27 - .../TaobaoFiveeCompanyUploadAPIRequest.go | 66 + .../TaobaoFiveeCompanyUploadAPIResponse.go | 33 + .../fivee/TaobaoFiveeCompanyUploadResponse.go | 33 - .../TaobaoFiveeImportproductGetAPIRequest.go | 66 + .../TaobaoFiveeImportproductGetAPIResponse.go | 27 + .../TaobaoFiveeImportproductGetResponse.go | 27 - ...obaoFiveeImportproductPublishAPIRequest.go | 66 + ...baoFiveeImportproductPublishAPIResponse.go | 33 + ...TaobaoFiveeImportproductPublishResponse.go | 33 - .../TaobaoFiveeInnerproductGetAPIRequest.go | 66 + .../TaobaoFiveeInnerproductGetAPIResponse.go | 27 + .../TaobaoFiveeInnerproductGetResponse.go | 27 - ...aobaoFiveeInnerproductPublishAPIRequest.go | 66 + ...obaoFiveeInnerproductPublishAPIResponse.go | 33 + .../TaobaoFiveeInnerproductPublishResponse.go | 33 - ...pAgentFlightSellModifyApproveAPIRequest.go | 52 + ...AgentFlightSellModifyApproveAPIResponse.go | 27 + ...ripAgentFlightSellModifyApproveResponse.go | 27 - ...ipAgentFlightSellModifyApproveResultDto.go | 11 + ...AgentFlightSellModifyBackfillAPIRequest.go | 52 + ...gentFlightSellModifyBackfillAPIResponse.go | 27 + ...ipAgentFlightSellModifyBackfillResponse.go | 27 - ...pAgentFlightSellModifyBackfillResultDto.go | 11 + ...ipAgentFlightSellModifyDetailAPIRequest.go | 66 + ...pAgentFlightSellModifyDetailAPIResponse.go | 27 + ...tripAgentFlightSellModifyDetailResponse.go | 27 - ...ripAgentFlightSellModifyDetailResultDto.go | 13 + ...tripAgentFlightSellModifyListAPIRequest.go | 52 + ...ripAgentFlightSellModifyListAPIResponse.go | 27 + ...litripAgentFlightSellModifyListResponse.go | 27 - ...ipAgentFlightSellModifyRefuseAPIRequest.go | 80 + ...pAgentFlightSellModifyRefuseAPIResponse.go | 27 + ...tripAgentFlightSellModifyRefuseResponse.go | 27 - ...ripAgentFlightSellModifyRefuseResultDto.go | 11 + ...pAgentFlightSellRefundApproveAPIRequest.go | 52 + ...AgentFlightSellRefundApproveAPIResponse.go | 27 + ...ripAgentFlightSellRefundApproveResponse.go | 27 - ...ipAgentFlightSellRefundApproveResultDto.go | 11 + ...ipAgentFlightSellRefundDetailAPIRequest.go | 66 + ...pAgentFlightSellRefundDetailAPIResponse.go | 27 + ...tripAgentFlightSellRefundDetailResponse.go | 27 - ...ripAgentFlightSellRefundDetailResultDto.go | 13 + ...tripAgentFlightSellRefundListAPIRequest.go | 52 + ...ripAgentFlightSellRefundListAPIResponse.go | 27 + ...litripAgentFlightSellRefundListResponse.go | 27 - ...ipAgentFlightSellRefundRefuseAPIRequest.go | 80 + ...pAgentFlightSellRefundRefuseAPIResponse.go | 27 + ...tripAgentFlightSellRefundRefuseResponse.go | 27 - ...ripAgentFlightSellRefundRefuseResultDto.go | 11 + ...gentFlightSellTicketingDetailAPIRequest.go | 66 + ...entFlightSellTicketingDetailAPIResponse.go | 27 + ...pAgentFlightSellTicketingDetailResponse.go | 27 - ...AgentFlightSellTicketingDetailResultDto.go | 13 + ...AgentFlightSellTicketingIssueAPIRequest.go | 52 + ...gentFlightSellTicketingIssueAPIResponse.go | 27 + ...ipAgentFlightSellTicketingIssueResponse.go | 27 - ...pAgentFlightSellTicketingIssueResultDto.go | 11 + ...pAgentFlightSellTicketingListAPIRequest.go | 52 + ...AgentFlightSellTicketingListAPIResponse.go | 27 + ...ripAgentFlightSellTicketingListResponse.go | 27 - .../AlitripTripvpAgentOrderGetAPIRequest.go | 66 + .../AlitripTripvpAgentOrderGetAPIResponse.go | 29 + .../AlitripTripvpAgentOrderGetResponse.go | 29 - .../AlitripTripvpAgentOrderIssueAPIRequest.go | 66 + ...AlitripTripvpAgentOrderIssueAPIResponse.go | 27 + .../AlitripTripvpAgentOrderIssueResponse.go | 27 - .../TaobaoAlitripFlightchangeAddAPIRequest.go | 54 + ...TaobaoAlitripFlightchangeAddAPIResponse.go | 29 + .../TaobaoAlitripFlightchangeAddResponse.go | 29 - .../TaobaoAlitripFlightchangeAddResultDo.go | 11 + .../TaobaoAlitripFlightchangeGetAPIRequest.go | 52 + ...TaobaoAlitripFlightchangeGetAPIResponse.go | 27 + .../TaobaoAlitripFlightchangeGetResponse.go | 27 - .../TaobaoAlitripFlightchangeGetResultDo.go | 13 + ...eAgentRefundNewFillconfirmfeeAPIRequest.go | 52 + ...AgentRefundNewFillconfirmfeeAPIResponse.go | 27 + ...pIeAgentRefundNewFillconfirmfeeResponse.go | 27 - ...baoAlitripIeAgentShoppingPushAPIRequest.go | 52 + ...aoAlitripIeAgentShoppingPushAPIResponse.go | 27 + ...aobaoAlitripIeAgentShoppingPushResponse.go | 27 - ...AlitripTotoroAuxproductDeleteAPIRequest.go | 52 + ...litripTotoroAuxproductDeleteAPIResponse.go | 27 + ...aoAlitripTotoroAuxproductDeleteResponse.go | 27 - ...aoAlitripTotoroAuxproductPushAPIRequest.go | 52 + ...oAlitripTotoroAuxproductPushAPIResponse.go | 31 + ...obaoAlitripTotoroAuxproductPushResponse.go | 31 - ...ipFlightBasicDataCityQueryAllAPIRequest.go | 38 + ...pFlightBasicDataCityQueryAllAPIResponse.go | 27 + ...tripFlightBasicDataCityQueryAllResponse.go | 27 - .../AlitripUppcMemberGainAPIRequest.go | 94 + .../AlitripUppcMemberGainAPIResponse.go | 27 + .../AlitripUppcMemberGainResponse.go | 27 - model/flightuppc/ResultDo.go | 15 + ...libabaFootscanMiniImageUploadAPIRequest.go | 66 + ...ibabaFootscanMiniImageUploadAPIResponse.go | 27 + .../AlibabaFootscanMiniImageUploadResponse.go | 27 - ...FootscanMiniQueryMobilereportAPIRequest.go | 66 + ...ootscanMiniQueryMobilereportAPIResponse.go | 27 + ...baFootscanMiniQueryMobilereportResponse.go | 27 - ...otscanMiniReportFragmentFirstAPIRequest.go | 66 + ...tscanMiniReportFragmentFirstAPIResponse.go | 27 + ...FootscanMiniReportFragmentFirstResponse.go | 27 - ...tscanMiniReportFragmentSecondAPIRequest.go | 66 + ...scanMiniReportFragmentSecondAPIResponse.go | 27 + ...ootscanMiniReportFragmentSecondResponse.go | 27 - ...AlibabaFootscanMiniReportListAPIRequest.go | 66 + ...libabaFootscanMiniReportListAPIResponse.go | 27 + .../AlibabaFootscanMiniReportListResponse.go | 27 - .../AlibabaFootscanMiniSavedAPIRequest.go | 66 + .../AlibabaFootscanMiniSavedAPIResponse.go | 27 + .../AlibabaFootscanMiniSavedResponse.go | 27 - model/fpm/AlibabaFpmFileUploadAPIRequest.go | 52 + model/fpm/AlibabaFpmFileUploadAPIResponse.go | 27 + model/fpm/AlibabaFpmFileUploadResponse.go | 27 - ...babaFundplatformAccountChargeAPIRequest.go | 66 + ...abaFundplatformAccountChargeAPIResponse.go | 27 + ...ndplatformAccountChargeNotifyAPIRequest.go | 52 + ...dplatformAccountChargeNotifyAPIResponse.go | 31 + ...FundplatformAccountChargeNotifyResponse.go | 31 - ...libabaFundplatformAccountChargeResponse.go | 27 - ...dplatformAccountJourQueryInfoAPIRequest.go | 52 + ...platformAccountJourQueryInfoAPIResponse.go | 27 + ...undplatformAccountJourQueryInfoResponse.go | 27 - ...aFundplatformAccountQueryInfoAPIRequest.go | 52 + ...FundplatformAccountQueryInfoAPIResponse.go | 27 + ...abaFundplatformAccountQueryInfoResponse.go | 27 - ...baFundplatformCardTemplateNewAPIRequest.go | 122 ++ ...aFundplatformCardTemplateNewAPIResponse.go | 31 + ...babaFundplatformCardTemplateNewResponse.go | 31 - ...ndplatformCardorderCardActiveAPIRequest.go | 53 + ...dplatformCardorderCardActiveAPIResponse.go | 28 + ...FundplatformCardorderCardActiveResponse.go | 28 - ...atformCardorderFetchCardAsyncAPIRequest.go | 52 + ...tformCardorderFetchCardAsyncAPIResponse.go | 27 + ...platformCardorderFetchCardAsyncResponse.go | 27 - ...babaFundplatformCardorderMakeAPIRequest.go | 94 + ...abaFundplatformCardorderMakeAPIResponse.go | 27 + ...libabaFundplatformCardorderMakeResponse.go | 27 - ...dplatformCardorderMakeSuccessAPIRequest.go | 52 + ...platformCardorderMakeSuccessAPIResponse.go | 31 + ...undplatformCardorderMakeSuccessResponse.go | 31 - ...aFundplatformCardorderReceiptAPIRequest.go | 66 + ...FundplatformCardorderReceiptAPIResponse.go | 31 + ...abaFundplatformCardorderReceiptResponse.go | 31 - ...dplatformCardorderStatusQueryAPIRequest.go | 52 + ...platformCardorderStatusQueryAPIResponse.go | 27 + ...undplatformCardorderStatusQueryResponse.go | 27 - ...ndplatformCardordersInfoQueryAPIRequest.go | 52 + ...dplatformCardordersInfoQueryAPIResponse.go | 27 + ...rmCardordersInfoQueryByCardnoAPIRequest.go | 52 + ...mCardordersInfoQueryByCardnoAPIResponse.go | 27 + ...formCardordersInfoQueryByCardnoResponse.go | 27 - ...FundplatformCardordersInfoQueryResponse.go | 27 - ...ormCardordersStatusMakeFinishAPIRequest.go | 52 + ...rmCardordersStatusMakeFinishAPIResponse.go | 27 + ...tformCardordersStatusMakeFinishResponse.go | 27 - ...latformCardordersStatusSendedAPIRequest.go | 80 + ...atformCardordersStatusSendedAPIResponse.go | 27 + ...dplatformCardordersStatusSendedResponse.go | 27 - .../AlibabaTaxInvoiceSyncLedgerAPIRequest.go | 52 + .../AlibabaTaxInvoiceSyncLedgerAPIResponse.go | 31 + .../AlibabaTaxInvoiceSyncLedgerResponse.go | 31 - ...baoAppleCardActiveApplyNotifyAPIRequest.go | 108 + ...aoAppleCardActiveApplyNotifyAPIResponse.go | 29 + ...aobaoAppleCardActiveApplyNotifyResponse.go | 29 - ...aoAppleCardActiveCancelNotifyAPIRequest.go | 108 + ...oAppleCardActiveCancelNotifyAPIResponse.go | 29 + ...obaoAppleCardActiveCancelNotifyResponse.go | 29 - ...baoAppleNewuserActivateNotifyAPIRequest.go | 80 + ...aoAppleNewuserActivateNotifyAPIResponse.go | 29 + ...aobaoAppleNewuserActivateNotifyResponse.go | 29 - .../TaobaoAppleNewuserSignNotifyAPIRequest.go | 80 + ...TaobaoAppleNewuserSignNotifyAPIResponse.go | 29 + ...leNewuserSignNotifyNewversionAPIRequest.go | 80 + ...eNewuserSignNotifyNewversionAPIResponse.go | 29 + ...ppleNewuserSignNotifyNewversionResponse.go | 29 - .../TaobaoAppleNewuserSignNotifyResponse.go | 29 - ...aobaoAppleOlduserChargeNotifyAPIRequest.go | 80 + ...obaoAppleOlduserChargeNotifyAPIResponse.go | 29 + .../TaobaoAppleOlduserChargeNotifyResponse.go | 29 - ...DeActivityDeliveryAddrConfirmAPIRequest.go | 66 + ...eActivityDeliveryAddrConfirmAPIResponse.go | 27 + ...aoDeActivityDeliveryAddrConfirmResponse.go | 27 - .../TaobaoDeActivityInfoGetAPIRequest.go | 52 + .../TaobaoDeActivityInfoGetAPIResponse.go | 27 + .../TaobaoDeActivityInfoGetResponse.go | 27 - .../TaobaoDeActivityLuckydrawAPIRequest.go | 192 ++ .../TaobaoDeActivityLuckydrawAPIResponse.go | 33 + .../TaobaoDeActivityLuckydrawResponse.go | 33 - .../TaobaoDeActivityMachineidGetAPIRequest.go | 38 + ...TaobaoDeActivityMachineidGetAPIResponse.go | 27 + .../TaobaoDeActivityMachineidGetResponse.go | 27 - .../AlibabaGlobalVirtualSendcodeAPIRequest.go | 66 + ...AlibabaGlobalVirtualSendcodeAPIResponse.go | 27 + ...uoBackupGraborderSubmitmailnoAPIRequest.go | 66 + ...oBackupGraborderSubmitmailnoAPIResponse.go | 27 + ...oguoBackupGraborderSubmitmailnoResponse.go | 27 - ...guoBackupGraborderTakepackageAPIRequest.go | 66 + ...uoBackupGraborderTakepackageAPIResponse.go | 27 + ...uoguoBackupGraborderTakepackageResponse.go | 27 - ...aoGuoguoCpBackupAssigncourierAPIRequest.go | 136 ++ ...oGuoguoCpBackupAssigncourierAPIResponse.go | 31 + ...niaoGuoguoCpBackupAssigncourierResponse.go | 31 - ...oguoCpBackupAssigncourierbyidAPIRequest.go | 108 + ...guoCpBackupAssigncourierbyidAPIResponse.go | 31 + ...GuoguoCpBackupAssigncourierbyidResponse.go | 31 - ...oguoCpNborderfrontrUpdateuserAPIRequest.go | 164 ++ ...guoCpNborderfrontrUpdateuserAPIResponse.go | 31 + ...GuoguoCpNborderfrontrUpdateuserResponse.go | 31 - ...NborderfrontrUploadcoordinateAPIRequest.go | 136 ++ ...borderfrontrUploadcoordinateAPIResponse.go | 31 + ...CpNborderfrontrUploadcoordinateResponse.go | 31 - ...pytripFreeloginGetusercontextAPIRequest.go | 52 + ...ytripFreeloginGetusercontextAPIResponse.go | 27 + ...appytripFreeloginGetusercontextResponse.go | 27 - .../AlibabaHappytripOrderGetAPIRequest.go | 52 + .../AlibabaHappytripOrderGetAPIResponse.go | 39 + .../AlibabaHappytripOrderGetResponse.go | 39 - ...AlibabaHappytripTaxiCityGetidAPIRequest.go | 80 + ...libabaHappytripTaxiCityGetidAPIResponse.go | 31 + .../AlibabaHappytripTaxiCityGetidResponse.go | 31 - ...ppytripTaxiDriverBlacklistAddAPIRequest.go | 80 + ...pytripTaxiDriverBlacklistAddAPIResponse.go | 29 + ...HappytripTaxiDriverBlacklistAddResponse.go | 29 - ...tripTaxiDriverBlacklistRemoveAPIRequest.go | 80 + ...ripTaxiDriverBlacklistRemoveAPIResponse.go | 29 + ...pytripTaxiDriverBlacklistRemoveResponse.go | 29 - ...appytripTaxiDriverLocationGetAPIRequest.go | 52 + ...ppytripTaxiDriverLocationGetAPIResponse.go | 31 + ...aHappytripTaxiDriverLocationGetResponse.go | 31 - .../AlibabaHappytripTaxiIdGetAPIRequest.go | 52 + .../AlibabaHappytripTaxiIdGetAPIResponse.go | 31 + .../AlibabaHappytripTaxiIdGetResponse.go | 31 - ...ibabaHappytripTaxiOrderAssignAPIRequest.go | 52 + ...babaHappytripTaxiOrderAssignAPIResponse.go | 29 + ...AlibabaHappytripTaxiOrderAssignResponse.go | 29 - ...ibabaHappytripTaxiOrderCancelAPIRequest.go | 80 + ...babaHappytripTaxiOrderCancelAPIResponse.go | 31 + ...AlibabaHappytripTaxiOrderCancelResponse.go | 31 - ...abaHappytripTaxiOrderComplainAPIRequest.go | 124 ++ ...baHappytripTaxiOrderComplainAPIResponse.go | 47 + ...ibabaHappytripTaxiOrderComplainResponse.go | 47 - ...appytripTaxiOrderComplaintGetAPIRequest.go | 66 + ...ppytripTaxiOrderComplaintGetAPIResponse.go | 31 + ...aHappytripTaxiOrderComplaintGetResponse.go | 31 - ...babaHappytripTaxiOrderConfirmAPIRequest.go | 53 + ...abaHappytripTaxiOrderConfirmAPIResponse.go | 32 + ...libabaHappytripTaxiOrderConfirmResponse.go | 32 - ...ibabaHappytripTaxiOrderCreateAPIRequest.go | 402 ++++ ...babaHappytripTaxiOrderCreateAPIResponse.go | 31 + ...AlibabaHappytripTaxiOrderCreateResponse.go | 31 - ...ripTaxiOrderDestinationModifyAPIRequest.go | 108 + ...ipTaxiOrderDestinationModifyAPIResponse.go | 29 + ...ytripTaxiOrderDestinationModifyResponse.go | 29 - .../AlibabaHappytripTaxiOrderGetAPIRequest.go | 52 + ...AlibabaHappytripTaxiOrderGetAPIResponse.go | 31 + .../AlibabaHappytripTaxiOrderGetResponse.go | 31 - ...ibabaHappytripTaxiOrderNotifyAPIRequest.go | 94 + ...babaHappytripTaxiOrderNotifyAPIResponse.go | 29 + ...AlibabaHappytripTaxiOrderNotifyResponse.go | 29 - ...libabaHappytripTaxiOrderScoreAPIRequest.go | 80 + ...ibabaHappytripTaxiOrderScoreAPIResponse.go | 29 + .../AlibabaHappytripTaxiOrderScoreResponse.go | 29 - .../AlibabaHappytripTaxiPriceGetAPIRequest.go | 234 +++ ...AlibabaHappytripTaxiPriceGetAPIResponse.go | 31 + .../AlibabaHappytripTaxiPriceGetResponse.go | 31 - ...ripTaxiProviderAccountBalanceAPIRequest.go | 52 + ...ipTaxiProviderAccountBalanceAPIResponse.go | 31 + ...ytripTaxiProviderAccountBalanceResponse.go | 31 - ...HappytripTaxiServicestatusGetAPIRequest.go | 52 + ...appytripTaxiServicestatusGetAPIResponse.go | 31 + ...baHappytripTaxiServicestatusGetResponse.go | 31 - .../AlibabaHappytripTravelSyncAPIRequest.go | 52 + .../AlibabaHappytripTravelSyncAPIResponse.go | 27 + .../AlibabaHappytripTravelSyncResponse.go | 27 - ...libabaHtorderHotelSyncBookingAPIRequest.go | 52 + ...ibabaHtorderHotelSyncBookingAPIResponse.go | 27 + .../AlibabaHtorderHotelSyncBookingResponse.go | 27 - ...AlibabaHtorderHotelSyncBookingResultDto.go | 15 + ...AlibabaHtorderHotelSyncConfigAPIRequest.go | 52 + ...libabaHtorderHotelSyncConfigAPIResponse.go | 35 + .../AlibabaHtorderHotelSyncConfigResponse.go | 35 - ...AlibabaHealthNrLogisticsQueryAPIRequest.go | 52 + ...libabaHealthNrLogisticsQueryAPIResponse.go | 27 + .../AlibabaHealthNrLogisticsQueryResponse.go | 27 - .../TaobaoHomeaiAlgPredictAPIRequest.go | 66 + .../TaobaoHomeaiAlgPredictAPIResponse.go | 27 + .../homeai/TaobaoHomeaiAlgPredictResponse.go | 27 - .../AlitripHotelDetailInfoGetAPIRequest.go | 52 + .../AlitripHotelDetailInfoGetAPIResponse.go | 27 + .../AlitripHotelDetailInfoGetResponse.go | 27 - ...itripHotelDetailStaticinfoGetAPIRequest.go | 52 + ...tripHotelDetailStaticinfoGetAPIResponse.go | 27 + ...AlitripHotelDetailStaticinfoGetResponse.go | 27 - ...ripHotelRateGetmixratelistGetAPIRequest.go | 52 + ...ipHotelRateGetmixratelistGetAPIResponse.go | 27 + ...itripHotelRateGetmixratelistGetResponse.go | 27 - ...tripHotelSearchCitysuggestGetAPIRequest.go | 66 + ...ripHotelSearchCitysuggestGetAPIResponse.go | 27 + ...litripHotelSearchCitysuggestGetResponse.go | 27 - .../AlitripHotelSearchListGetAPIRequest.go | 52 + .../AlitripHotelSearchListGetAPIResponse.go | 27 + .../AlitripHotelSearchListGetResponse.go | 27 - model/hotel/TaobaoXhotelCityGetAPIRequest.go | 66 + model/hotel/TaobaoXhotelCityGetAPIResponse.go | 31 + model/hotel/TaobaoXhotelCityGetResponse.go | 31 - .../TaobaoXhotelInfoListGetAPIRequest.go | 108 + .../TaobaoXhotelInfoListGetAPIResponse.go | 29 + ...obaoXhotelInfoListGetForHelloAPIRequest.go | 52 + ...baoXhotelInfoListGetForHelloAPIResponse.go | 27 + ...TaobaoXhotelInfoListGetForHelloResponse.go | 27 - .../hotel/TaobaoXhotelInfoListGetResponse.go | 29 - .../TaobaoXhotelPriceGetForHelloAPIRequest.go | 52 + ...TaobaoXhotelPriceGetForHelloAPIResponse.go | 27 + .../TaobaoXhotelPriceGetForHelloResponse.go | 27 - .../AlitripHotelAllianceHidGetAPIRequest.go | 52 + .../AlitripHotelAllianceHidGetAPIResponse.go | 27 + .../AlitripHotelAllianceHidGetResponse.go | 27 - ...ipHotelAllianceSettleOrderSynAPIRequest.go | 52 + ...pHotelAllianceSettleOrderSynAPIResponse.go | 27 + ...tripHotelAllianceSettleOrderSynResponse.go | 27 - ...AlitripHotelHmsPartnerInfoGetAPIRequest.go | 52 + ...litripHotelHmsPartnerInfoGetAPIResponse.go | 27 + .../AlitripHotelHmsPartnerInfoGetResponse.go | 27 - .../AlitripHotelSingleInfoGetAPIRequest.go | 52 + .../AlitripHotelSingleInfoGetAPIResponse.go | 27 + .../AlitripHotelSingleInfoGetResponse.go | 27 - ...tripHotelHstdfBusinessareaGetAPIRequest.go | 52 + ...ripHotelHstdfBusinessareaGetAPIResponse.go | 27 + ...litripHotelHstdfBusinessareaGetResponse.go | 27 - ...pHotelHstdfHotelroomstaticGetAPIRequest.go | 52 + ...HotelHstdfHotelroomstaticGetAPIResponse.go | 27 + ...ripHotelHstdfHotelroomstaticGetResponse.go | 27 - ...itripHotelHstdfPoilocationGetAPIRequest.go | 52 + ...tripHotelHstdfPoilocationGetAPIResponse.go | 27 + ...AlitripHotelHstdfPoilocationGetResponse.go | 27 - ...otelHstdfShotelExnotmatchroomAPIRequest.go | 52 + ...telHstdfShotelExnotmatchroomAPIResponse.go | 27 + ...pHotelHstdfShotelExnotmatchroomResponse.go | 27 - ...pHotelHstdfShotelExportshotelAPIRequest.go | 136 ++ ...HotelHstdfShotelExportshotelAPIResponse.go | 27 + ...ripHotelHstdfShotelExportshotelResponse.go | 27 - ...telHstdfShotelExportsroomtypeAPIRequest.go | 52 + ...elHstdfShotelExportsroomtypeAPIResponse.go | 27 + ...HotelHstdfShotelExportsroomtypeResponse.go | 27 - ...telHstdfShotelMatchshotelselfAPIRequest.go | 52 + ...elHstdfShotelMatchshotelselfAPIResponse.go | 31 + ...HotelHstdfShotelMatchshotelselfResponse.go | 31 - ...otelHstdfShotelMatchsroomselfAPIRequest.go | 52 + ...telHstdfShotelMatchsroomselfAPIResponse.go | 31 + ...pHotelHstdfShotelMatchsroomselfResponse.go | 31 - ...tdfShotelRoomtypeMappingsListAPIRequest.go | 52 + ...dfShotelRoomtypeMappingsListAPIResponse.go | 27 + ...HstdfShotelRoomtypeMappingsListResponse.go | 27 - ...ibabaIcbuCategoryAttributeGetAPIRequest.go | 52 + ...babaIcbuCategoryAttributeGetAPIResponse.go | 27 + ...AlibabaIcbuCategoryAttributeGetResponse.go | 27 - ...ibabaIcbuCategoryAttrvalueGetAPIRequest.go | 52 + ...babaIcbuCategoryAttrvalueGetAPIResponse.go | 27 + ...AlibabaIcbuCategoryAttrvalueGetResponse.go | 27 - .../icbu/AlibabaIcbuCategoryGetAPIRequest.go | 52 + .../icbu/AlibabaIcbuCategoryGetAPIResponse.go | 27 + .../AlibabaIcbuCategoryGetNewAPIRequest.go | 52 + .../AlibabaIcbuCategoryGetNewAPIResponse.go | 27 + .../icbu/AlibabaIcbuCategoryGetNewResponse.go | 27 - model/icbu/AlibabaIcbuCategoryGetResponse.go | 27 - .../AlibabaIcbuCategoryIdMappingAPIRequest.go | 94 + ...AlibabaIcbuCategoryIdMappingAPIResponse.go | 27 + .../AlibabaIcbuCategoryIdMappingResponse.go | 27 - ...ibabaIcbuCategoryLevelAttrGetAPIRequest.go | 52 + ...babaIcbuCategoryLevelAttrGetAPIResponse.go | 27 + ...AlibabaIcbuCategoryLevelAttrGetResponse.go | 27 - ...abaIcbuCategorySchemaLevelGetAPIRequest.go | 80 + ...baIcbuCategorySchemaLevelGetAPIResponse.go | 27 + ...ibabaIcbuCategorySchemaLevelGetResponse.go | 27 - ...AlibabaIcbuPhotobankGroupListAPIRequest.go | 66 + ...libabaIcbuPhotobankGroupListAPIResponse.go | 27 + .../AlibabaIcbuPhotobankGroupListResponse.go | 27 - ...babaIcbuPhotobankGroupOperateAPIRequest.go | 52 + ...abaIcbuPhotobankGroupOperateAPIResponse.go | 27 + ...libabaIcbuPhotobankGroupOperateResponse.go | 27 - .../AlibabaIcbuPhotobankListAPIRequest.go | 108 + .../AlibabaIcbuPhotobankListAPIResponse.go | 27 + .../icbu/AlibabaIcbuPhotobankListResponse.go | 27 - .../AlibabaIcbuPhotobankUploadAPIRequest.go | 94 + .../AlibabaIcbuPhotobankUploadAPIResponse.go | 27 + .../AlibabaIcbuPhotobankUploadResponse.go | 27 - model/icbu/AlibabaIcbuProductAddAPIRequest.go | 276 +++ .../icbu/AlibabaIcbuProductAddAPIResponse.go | 27 + .../AlibabaIcbuProductAddDraftAPIRequest.go | 276 +++ .../AlibabaIcbuProductAddDraftAPIResponse.go | 27 + .../AlibabaIcbuProductAddDraftResponse.go | 27 - model/icbu/AlibabaIcbuProductAddResponse.go | 27 - ...IcbuProductBatchUpdateDisplayAPIRequest.go | 66 + ...cbuProductBatchUpdateDisplayAPIResponse.go | 33 + ...baIcbuProductBatchUpdateDisplayResponse.go | 33 - model/icbu/AlibabaIcbuProductGetAPIRequest.go | 66 + .../icbu/AlibabaIcbuProductGetAPIResponse.go | 27 + model/icbu/AlibabaIcbuProductGetResponse.go | 27 - .../AlibabaIcbuProductGroupAddAPIRequest.go | 80 + .../AlibabaIcbuProductGroupAddAPIResponse.go | 27 + .../AlibabaIcbuProductGroupAddResponse.go | 27 - .../AlibabaIcbuProductGroupGetAPIRequest.go | 66 + .../AlibabaIcbuProductGroupGetAPIResponse.go | 27 + .../AlibabaIcbuProductGroupGetResponse.go | 27 - .../AlibabaIcbuProductIdDecryptAPIRequest.go | 66 + .../AlibabaIcbuProductIdDecryptAPIResponse.go | 27 + .../AlibabaIcbuProductIdDecryptResponse.go | 27 - .../icbu/AlibabaIcbuProductListAPIRequest.go | 192 ++ .../icbu/AlibabaIcbuProductListAPIResponse.go | 33 + model/icbu/AlibabaIcbuProductListResponse.go | 33 - .../AlibabaIcbuProductSchemaAddAPIRequest.go | 52 + .../AlibabaIcbuProductSchemaAddAPIResponse.go | 35 + ...babaIcbuProductSchemaAddDraftAPIRequest.go | 52 + ...abaIcbuProductSchemaAddDraftAPIResponse.go | 35 + ...libabaIcbuProductSchemaAddDraftResponse.go | 35 - .../AlibabaIcbuProductSchemaAddResponse.go | 35 - .../AlibabaIcbuProductSchemaGetAPIRequest.go | 52 + .../AlibabaIcbuProductSchemaGetAPIResponse.go | 35 + .../AlibabaIcbuProductSchemaGetResponse.go | 35 - ...libabaIcbuProductSchemaRenderAPIRequest.go | 52 + ...ibabaIcbuProductSchemaRenderAPIResponse.go | 35 + ...aIcbuProductSchemaRenderDraftAPIRequest.go | 52 + ...IcbuProductSchemaRenderDraftAPIResponse.go | 35 + ...abaIcbuProductSchemaRenderDraftResponse.go | 35 - .../AlibabaIcbuProductSchemaRenderResponse.go | 35 - ...libabaIcbuProductSchemaUpdateAPIRequest.go | 52 + ...ibabaIcbuProductSchemaUpdateAPIResponse.go | 35 + .../AlibabaIcbuProductSchemaUpdateResponse.go | 35 - .../AlibabaIcbuProductScoreGetAPIRequest.go | 52 + .../AlibabaIcbuProductScoreGetAPIResponse.go | 27 + .../AlibabaIcbuProductScoreGetResponse.go | 27 - .../AlibabaIcbuProductUpdateAPIRequest.go | 290 +++ .../AlibabaIcbuProductUpdateAPIResponse.go | 27 + ...AlibabaIcbuProductUpdateFieldAPIRequest.go | 304 +++ ...libabaIcbuProductUpdateFieldAPIResponse.go | 27 + .../AlibabaIcbuProductUpdateFieldResponse.go | 27 - .../icbu/AlibabaIcbuProductUpdateResponse.go | 27 - ...esaleShippinglineTemplateListAPIRequest.go | 66 + ...saleShippinglineTemplateListAPIResponse.go | 27 + ...olesaleShippinglineTemplateListResponse.go | 27 - ...aIcbuTradeAssuranceAccountGetAPIRequest.go | 38 + ...IcbuTradeAssuranceAccountGetAPIResponse.go | 27 + ...abaIcbuTradeAssuranceAccountGetResponse.go | 27 - .../AlibabaBuynowOrderCreateAPIRequest.go | 52 + .../AlibabaBuynowOrderCreateAPIResponse.go | 27 + .../AlibabaBuynowOrderCreateResponse.go | 27 - .../AlibabaDropshippingOrderPayAPIRequest.go | 52 + .../AlibabaDropshippingOrderPayAPIResponse.go | 27 + .../AlibabaDropshippingOrderPayResponse.go | 27 - ...AlibabaDropshippingProductGetAPIRequest.go | 52 + ...libabaDropshippingProductGetAPIResponse.go | 27 + .../AlibabaDropshippingProductGetResponse.go | 27 - ...libabaDropshippingTokenCreateAPIRequest.go | 38 + ...ibabaDropshippingTokenCreateAPIResponse.go | 27 + .../AlibabaDropshippingTokenCreateResponse.go | 27 - .../AlibabaOrderFreightCalculateAPIRequest.go | 53 + ...AlibabaOrderFreightCalculateAPIResponse.go | 28 + .../AlibabaOrderFreightCalculateResponse.go | 28 - ...babaOrderLogisticsTrackingGetAPIRequest.go | 52 + ...abaOrderLogisticsTrackingGetAPIResponse.go | 27 + ...libabaOrderLogisticsTrackingGetResponse.go | 27 - .../AlibabaOrderPayResultQueryAPIRequest.go | 52 + .../AlibabaOrderPayResultQueryAPIResponse.go | 27 + .../AlibabaOrderPayResultQueryResponse.go | 27 - ...ibabaShippingFreightCalculateAPIRequest.go | 52 + ...babaShippingFreightCalculateAPIResponse.go | 27 + ...AlibabaShippingFreightCalculateResponse.go | 27 - ...gisticsExpressAddressCityListAPIRequest.go | 52 + ...isticsExpressAddressCityListAPIResponse.go | 27 + ...LogisticsExpressAddressCityListResponse.go | 27 - ...icsExpressAddressDivisionListAPIRequest.go | 52 + ...csExpressAddressDivisionListAPIResponse.go | 27 + ...sticsExpressAddressDivisionListResponse.go | 27 - ...icsExpressAddressProvinceListAPIRequest.go | 52 + ...csExpressAddressProvinceListAPIResponse.go | 27 + ...sticsExpressAddressProvinceListResponse.go | 27 - ...sticsExpressAddressStreetListAPIRequest.go | 52 + ...ticsExpressAddressStreetListAPIResponse.go | 27 + ...gisticsExpressAddressStreetListResponse.go | 27 - ...gisticsExpressChargeCalculateAPIRequest.go | 52 + ...isticsExpressChargeCalculateAPIResponse.go | 27 + ...LogisticsExpressChargeCalculateResponse.go | 27 - ...csExpressLogisticsOrderCreateAPIRequest.go | 52 + ...sExpressLogisticsOrderCreateAPIResponse.go | 27 + ...ticsExpressLogisticsOrderCreateResponse.go | 27 - ...csExpressLogisticsProductListAPIRequest.go | 38 + ...sExpressLogisticsProductListAPIResponse.go | 27 + ...ticsExpressLogisticsProductListResponse.go | 27 - ...ogisticsExpressOrderDetailGetAPIRequest.go | 52 + ...gisticsExpressOrderDetailGetAPIResponse.go | 27 + ...hLogisticsExpressOrderDetailGetResponse.go | 27 - ...ExpressSpecialProductTypeListAPIRequest.go | 38 + ...xpressSpecialProductTypeListAPIResponse.go | 27 + ...csExpressSpecialProductTypeListResponse.go | 27 - .../AlibabaIcbuProductIdEncryptAPIRequest.go | 66 + .../AlibabaIcbuProductIdEncryptAPIResponse.go | 27 + .../AlibabaIcbuProductIdEncryptResponse.go | 27 - ...abaIcbuProductInventoryUpdateAPIRequest.go | 52 + ...baIcbuProductInventoryUpdateAPIResponse.go | 27 + ...ibabaIcbuProductInventoryUpdateResponse.go | 27 - .../AlibabaIcbuAnnexUploadAPIRequest.go | 80 + .../AlibabaIcbuAnnexUploadAPIResponse.go | 33 + .../icburfq/AlibabaIcbuAnnexUploadResponse.go | 33 - .../AlibabaIcbuQuotationPostAPIRequest.go | 66 + .../AlibabaIcbuQuotationPostAPIResponse.go | 27 + .../AlibabaIcbuQuotationPostResponse.go | 27 - .../AlibabaIcbuRfqMyequityAPIRequest.go | 38 + .../AlibabaIcbuRfqMyequityAPIResponse.go | 27 + .../icburfq/AlibabaIcbuRfqMyequityResponse.go | 27 - model/icburfq/AlibabaIcbuRfqReadAPIRequest.go | 52 + .../icburfq/AlibabaIcbuRfqReadAPIResponse.go | 27 + model/icburfq/AlibabaIcbuRfqReadResponse.go | 27 - .../AlibabaIcbuRfqRecommendAPIRequest.go | 52 + .../AlibabaIcbuRfqRecommendAPIResponse.go | 27 + .../AlibabaIcbuRfqRecommendResponse.go | 27 - .../icburfq/AlibabaIcbuRfqSearchAPIRequest.go | 66 + .../AlibabaIcbuRfqSearchAPIResponse.go | 27 + model/icburfq/AlibabaIcbuRfqSearchResponse.go | 27 - .../AlibabaIcbuRfqdetailGetAPIRequest.go | 66 + .../AlibabaIcbuRfqdetailGetAPIResponse.go | 27 + .../AlibabaIcbuRfqdetailGetResponse.go | 27 - ...AlibabaSellerCouponAuthVerifyAPIRequest.go | 66 + ...libabaSellerCouponAuthVerifyAPIResponse.go | 27 + .../AlibabaSellerCouponAuthVerifyResponse.go | 27 - .../AlibabaSellerCouponAuthVerifyResultDto.go | 13 + ...libabaSellerVendorOrderDetailAPIRequest.go | 52 + ...ibabaSellerVendorOrderDetailAPIResponse.go | 27 + .../AlibabaSellerVendorOrderDetailResponse.go | 27 - ...AlibabaSellerVendorOrderDetailResultDto.go | 7 + .../AlibabaSellerVendorOrderListAPIRequest.go | 52 + ...AlibabaSellerVendorOrderListAPIResponse.go | 27 + .../AlibabaSellerVendorOrderListResponse.go | 27 - ...abaSellerVendorServiceProcessAPIRequest.go | 52 + ...baSellerVendorServiceProcessAPIResponse.go | 27 + ...ibabaSellerVendorServiceProcessResponse.go | 27 - ...babaSellerVendorServiceProcessResultDto.go | 13 + ...lerVendorServiceVendorprocessAPIRequest.go | 52 + ...erVendorServiceVendorprocessAPIResponse.go | 27 + ...ellerVendorServiceVendorprocessResponse.go | 27 - ...llerVendorServiceVendorprocessResultDto.go | 13 + ...AlibabaScbpShowcaseAddproductAPIRequest.go | 52 + ...libabaScbpShowcaseAddproductAPIResponse.go | 27 + .../AlibabaScbpShowcaseAddproductResponse.go | 27 - ...babaScbpShowcaseDeleteproductAPIRequest.go | 52 + ...abaScbpShowcaseDeleteproductAPIResponse.go | 27 + ...libabaScbpShowcaseDeleteproductResponse.go | 27 - .../AlibabaScbpShowcaseListAPIRequest.go | 66 + .../AlibabaScbpShowcaseListAPIResponse.go | 27 + .../AlibabaScbpShowcaseListResponse.go | 27 - .../AlibabaScbpShowcaseSortAPIRequest.go | 80 + .../AlibabaScbpShowcaseSortAPIResponse.go | 27 + .../AlibabaScbpShowcaseSortResponse.go | 27 - .../AlibabaScbpShowcaseStatusAPIRequest.go | 38 + .../AlibabaScbpShowcaseStatusAPIResponse.go | 29 + .../AlibabaScbpShowcaseStatusResponse.go | 29 - ...babaScbpShowcaseUpdateproductAPIRequest.go | 66 + ...abaScbpShowcaseUpdateproductAPIResponse.go | 27 + ...libabaScbpShowcaseUpdateproductResponse.go | 27 - .../idle/AlibabaIdleAgreementPayAPIRequest.go | 52 + .../AlibabaIdleAgreementPayAPIResponse.go | 27 + .../AlibabaIdleAgreementPayQueryAPIRequest.go | 52 + ...AlibabaIdleAgreementPayQueryAPIResponse.go | 27 + .../AlibabaIdleAgreementPayQueryResponse.go | 27 - model/idle/AlibabaIdleAgreementPayResponse.go | 27 - ...ibabaIdleAppraiseOrderPerformAPIRequest.go | 52 + ...babaIdleAppraiseOrderPerformAPIResponse.go | 27 + ...AlibabaIdleAppraiseOrderPerformResponse.go | 27 - ...AlibabaIdleAppraiseOrderQueryAPIRequest.go | 52 + ...libabaIdleAppraiseOrderQueryAPIResponse.go | 27 + .../AlibabaIdleAppraiseOrderQueryResponse.go | 27 - ...IdleAppraiseSpuRegisterModifyAPIRequest.go | 52 + ...dleAppraiseSpuRegisterModifyAPIResponse.go | 27 + ...baIdleAppraiseSpuRegisterModifyResponse.go | 27 - ...baIdleApprizeOrderFulfillmentAPIRequest.go | 66 + ...aIdleApprizeOrderFulfillmentAPIResponse.go | 27 + ...babaIdleApprizeOrderFulfillmentResponse.go | 27 - ...libabaIdleConsignmentOrderGetAPIRequest.go | 52 + ...ibabaIdleConsignmentOrderGetAPIResponse.go | 27 + .../AlibabaIdleConsignmentOrderGetResponse.go | 27 - ...baIdleConsignmentOrderPerformAPIRequest.go | 52 + ...aIdleConsignmentOrderPerformAPIResponse.go | 27 + ...babaIdleConsignmentOrderPerformResponse.go | 27 - ...aIdleConsignmentSpuStatisticsAPIRequest.go | 52 + ...IdleConsignmentSpuStatisticsAPIResponse.go | 27 + ...abaIdleConsignmentSpuStatisticsResponse.go | 27 - ...babaIdleConsignmentiiOrderGetAPIRequest.go | 52 + ...abaIdleConsignmentiiOrderGetAPIResponse.go | 27 + ...libabaIdleConsignmentiiOrderGetResponse.go | 27 - ...IdleConsignmentiiOrderPerformAPIRequest.go | 52 + ...dleConsignmentiiOrderPerformAPIResponse.go | 27 + ...baIdleConsignmentiiOrderPerformResponse.go | 27 - ...AlibabaIdleIsvOrderDealrefundAPIRequest.go | 52 + ...libabaIdleIsvOrderDealrefundAPIResponse.go | 27 + .../AlibabaIdleIsvOrderDealrefundResponse.go | 27 - .../idle/AlibabaIdleIsvOrderShipAPIRequest.go | 80 + .../AlibabaIdleIsvOrderShipAPIResponse.go | 33 + model/idle/AlibabaIdleIsvOrderShipResponse.go | 33 - ...ibabaIdleItemUserPublishitemsAPIRequest.go | 52 + ...babaIdleItemUserPublishitemsAPIResponse.go | 27 + ...AlibabaIdleItemUserPublishitemsResponse.go | 27 - .../AlibabaIdleOrderDummySendAPIRequest.go | 52 + .../AlibabaIdleOrderDummySendAPIResponse.go | 27 + .../idle/AlibabaIdleOrderDummySendResponse.go | 27 - .../AlibabaIdlePayPlanCreateAPIRequest.go | 54 + .../AlibabaIdlePayPlanCreateAPIResponse.go | 29 + .../idle/AlibabaIdlePayPlanCreateResponse.go | 29 - ...baIdleRecycleInspectionReportAPIRequest.go | 52 + ...aIdleRecycleInspectionReportAPIResponse.go | 27 + ...babaIdleRecycleInspectionReportResponse.go | 27 - ...baIdleRecycleOrderFulfillmentAPIRequest.go | 52 + ...aIdleRecycleOrderFulfillmentAPIResponse.go | 27 + ...babaIdleRecycleOrderFulfillmentResponse.go | 27 - ...libabaIdleRecycleOrderPerformAPIRequest.go | 52 + ...ibabaIdleRecycleOrderPerformAPIResponse.go | 27 + .../AlibabaIdleRecycleOrderPerformResponse.go | 27 - .../AlibabaIdleRecycleOrderQueryAPIRequest.go | 52 + ...AlibabaIdleRecycleOrderQueryAPIResponse.go | 27 + .../AlibabaIdleRecycleOrderQueryResponse.go | 27 - .../AlibabaIdleRecycleOrderShowAPIRequest.go | 52 + .../AlibabaIdleRecycleOrderShowAPIResponse.go | 27 + .../AlibabaIdleRecycleOrderShowResponse.go | 27 - ...aIdleRecycleSpuTemplateModifyAPIRequest.go | 52 + ...IdleRecycleSpuTemplateModifyAPIResponse.go | 27 + ...abaIdleRecycleSpuTemplateModifyResponse.go | 27 - .../idle/AlibabaIdleRentItemAddAPIRequest.go | 52 + .../idle/AlibabaIdleRentItemAddAPIResponse.go | 27 + model/idle/AlibabaIdleRentItemAddResponse.go | 27 - .../idle/AlibabaIdleRentItemEditAPIRequest.go | 52 + .../AlibabaIdleRentItemEditAPIResponse.go | 27 + model/idle/AlibabaIdleRentItemEditResponse.go | 27 - .../AlibabaIdleRentItemQueryAPIRequest.go | 52 + .../AlibabaIdleRentItemQueryAPIResponse.go | 27 + .../idle/AlibabaIdleRentItemQueryResponse.go | 27 - .../AlibabaIdleRentItemSkuUpdateAPIRequest.go | 52 + ...AlibabaIdleRentItemSkuUpdateAPIResponse.go | 27 + .../AlibabaIdleRentItemSkuUpdateResponse.go | 27 - .../AlibabaIdleRentMediaUploadAPIRequest.go | 80 + .../AlibabaIdleRentMediaUploadAPIResponse.go | 27 + .../AlibabaIdleRentMediaUploadResponse.go | 27 - ...dleRentOrderCheckstatusUploadAPIRequest.go | 66 + ...leRentOrderCheckstatusUploadAPIResponse.go | 27 + ...aIdleRentOrderCheckstatusUploadResponse.go | 27 - ...IdleRentOrderLogisticsDeliverAPIRequest.go | 67 + ...dleRentOrderLogisticsDeliverAPIResponse.go | 28 + ...baIdleRentOrderLogisticsDeliverResponse.go | 28 - .../AlibabaIdleRentOrderPackageAPIRequest.go | 66 + .../AlibabaIdleRentOrderPackageAPIResponse.go | 27 + .../AlibabaIdleRentOrderPackageResponse.go | 27 - .../AlibabaIdleRentOrderQueryAPIRequest.go | 52 + .../AlibabaIdleRentOrderQueryAPIResponse.go | 27 + .../idle/AlibabaIdleRentOrderQueryResponse.go | 27 - ...ibabaIdleRentOrderReceiveitemAPIRequest.go | 52 + ...babaIdleRentOrderReceiveitemAPIResponse.go | 27 + ...AlibabaIdleRentOrderReceiveitemResponse.go | 27 - .../AlibabaIdleRentOrderSenditemAPIRequest.go | 66 + ...AlibabaIdleRentOrderSenditemAPIResponse.go | 27 + .../AlibabaIdleRentOrderSenditemResponse.go | 27 - .../AlibabaIdleSpuRegisterModifyAPIRequest.go | 52 + ...AlibabaIdleSpuRegisterModifyAPIResponse.go | 27 + .../AlibabaIdleSpuRegisterModifyResponse.go | 27 - .../AlibabaIdleTransferpayQueryAPIRequest.go | 52 + .../AlibabaIdleTransferpayQueryAPIResponse.go | 27 + .../AlibabaIdleTransferpayQueryResponse.go | 27 - model/idle/AlibabaIdleUserPermitAPIRequest.go | 52 + .../idle/AlibabaIdleUserPermitAPIResponse.go | 27 + model/idle/AlibabaIdleUserPermitResponse.go | 27 - .../TaobaoIdleRecycleRefundApplyAPIRequest.go | 52 + ...TaobaoIdleRecycleRefundApplyAPIResponse.go | 27 + .../TaobaoIdleRecycleRefundApplyResponse.go | 27 - ...oIdleRecycleRefundCancleapplyAPIRequest.go | 52 + ...IdleRecycleRefundCancleapplyAPIResponse.go | 27 + ...baoIdleRecycleRefundCancleapplyResponse.go | 27 - ...TaobaoIdleRecycleRefundDetailAPIRequest.go | 52 + ...aobaoIdleRecycleRefundDetailAPIResponse.go | 27 + .../TaobaoIdleRecycleRefundDetailResponse.go | 27 - ...oIdleRecycleRefundReturngoodsAPIRequest.go | 52 + ...IdleRecycleRefundReturngoodsAPIResponse.go | 27 + ...baoIdleRecycleRefundReturngoodsResponse.go | 27 - .../AlibabaIdleIsvItemDownshelfAPIRequest.go | 52 + .../AlibabaIdleIsvItemDownshelfAPIResponse.go | 27 + .../AlibabaIdleIsvItemDownshelfResponse.go | 27 - .../AlibabaIdleIsvItemEditAPIRequest.go | 52 + .../AlibabaIdleIsvItemEditAPIResponse.go | 27 + .../idleisv/AlibabaIdleIsvItemEditResponse.go | 27 - .../AlibabaIdleIsvItemPublishAPIRequest.go | 52 + .../AlibabaIdleIsvItemPublishAPIResponse.go | 27 + .../AlibabaIdleIsvItemPublishResponse.go | 27 - .../AlibabaIdleIsvItemQueryAPIRequest.go | 52 + .../AlibabaIdleIsvItemQueryAPIResponse.go | 27 + .../AlibabaIdleIsvItemQueryResponse.go | 27 - .../AlibabaIdleIsvMediaUploadAPIRequest.go | 80 + .../AlibabaIdleIsvMediaUploadAPIResponse.go | 27 + .../AlibabaIdleIsvMediaUploadResponse.go | 27 - ...libabaIdleIsvOrderAdjustpriceAPIRequest.go | 52 + ...ibabaIdleIsvOrderAdjustpriceAPIResponse.go | 27 + .../AlibabaIdleIsvOrderAdjustpriceResponse.go | 27 - .../AlibabaIdleIsvOrderCloseAPIRequest.go | 52 + .../AlibabaIdleIsvOrderCloseAPIResponse.go | 27 + .../AlibabaIdleIsvOrderCloseResponse.go | 27 - .../AlibabaIdleIsvOrderQueryAPIRequest.go | 52 + .../AlibabaIdleIsvOrderQueryAPIResponse.go | 27 + .../AlibabaIdleIsvOrderQueryResponse.go | 27 - .../idleisv/AlibabaIdleIsvPvListAPIRequest.go | 66 + .../AlibabaIdleIsvPvListAPIResponse.go | 27 + model/idleisv/AlibabaIdleIsvPvListResponse.go | 27 - .../AlibabaIdleIsvRefundQueryAPIRequest.go | 52 + .../AlibabaIdleIsvRefundQueryAPIResponse.go | 27 + .../AlibabaIdleIsvRefundQueryResponse.go | 27 - .../AlibabaIdleIsvSpuSearchAPIRequest.go | 66 + .../AlibabaIdleIsvSpuSearchAPIResponse.go | 27 + .../AlibabaIdleIsvSpuSearchResponse.go | 27 - .../AlibabaIdleIsvUserQueryAPIRequest.go | 38 + .../AlibabaIdleIsvUserQueryAPIResponse.go | 27 + .../AlibabaIdleIsvUserQueryResponse.go | 27 - .../AlibabaIdleItemIdlecoinAddAPIRequest.go | 52 + .../AlibabaIdleItemIdlecoinAddAPIResponse.go | 27 + .../AlibabaIdleItemIdlecoinAddResponse.go | 27 - .../AlibabaIdleItemMediaAddAPIRequest.go | 80 + .../AlibabaIdleItemMediaAddAPIResponse.go | 27 + .../AlibabaIdleItemMediaAddResponse.go | 27 - .../AlibabaIdleRecycleOrderGetAPIRequest.go | 52 + .../AlibabaIdleRecycleOrderGetAPIResponse.go | 31 + .../AlibabaIdleRecycleOrderGetResponse.go | 31 - .../AlibabaIdleParttimeJobsyncAPIRequest.go | 66 + .../AlibabaIdleParttimeJobsyncAPIResponse.go | 27 + .../AlibabaIdleParttimeJobsyncResponse.go | 27 - .../AlibabaIdleParttimeNotifyAPIRequest.go | 136 ++ .../AlibabaIdleParttimeNotifyAPIResponse.go | 27 + .../AlibabaIdleParttimeNotifyResponse.go | 27 - .../AlibabaIdleParttimeSynclogAPIRequest.go | 122 ++ .../AlibabaIdleParttimeSynclogAPIResponse.go | 27 + .../AlibabaIdleParttimeSynclogResponse.go | 27 - .../AlitripIeBuyerOrderBookpayAPIRequest.go | 52 + .../AlitripIeBuyerOrderBookpayAPIResponse.go | 27 + .../AlitripIeBuyerOrderBookpayResponse.go | 27 - ...AlitripTripvpAgentOrderSearchAPIRequest.go | 122 ++ ...litripTripvpAgentOrderSearchAPIResponse.go | 31 + .../AlitripTripvpAgentOrderSearchResponse.go | 31 - ...pIeAgentChangeQuerychangelistAPIRequest.go | 164 ++ ...IeAgentChangeQuerychangelistAPIResponse.go | 27 + ...ripIeAgentChangeQuerychangelistResponse.go | 27 - .../TaobaoAlitripIeAgentOrderGetAPIRequest.go | 66 + ...TaobaoAlitripIeAgentOrderGetAPIResponse.go | 27 + .../TaobaoAlitripIeAgentOrderGetResponse.go | 27 - .../TaobaoAlitripIeAgentOrderHkAPIRequest.go | 66 + .../TaobaoAlitripIeAgentOrderHkAPIResponse.go | 27 + .../TaobaoAlitripIeAgentOrderHkResponse.go | 27 - ...obaoAlitripIeAgentOrderSearchAPIRequest.go | 164 ++ ...baoAlitripIeAgentOrderSearchAPIResponse.go | 31 + ...TaobaoAlitripIeAgentOrderSearchResponse.go | 31 - ...obaoAlitripIeAgentRefundAgreeAPIRequest.go | 108 + ...baoAlitripIeAgentRefundAgreeAPIResponse.go | 27 + ...TaobaoAlitripIeAgentRefundAgreeResponse.go | 27 - ...TaobaoAlitripIeAgentRefundGetAPIRequest.go | 66 + ...aobaoAlitripIeAgentRefundGetAPIResponse.go | 27 + .../TaobaoAlitripIeAgentRefundGetResponse.go | 27 - ...tripIeAgentRefundNewGetdetailAPIRequest.go | 52 + ...ripIeAgentRefundNewGetdetailAPIResponse.go | 27 + ...litripIeAgentRefundNewGetdetailResponse.go | 27 - ...litripIeAgentRefundNewGetlistAPIRequest.go | 52 + ...itripIeAgentRefundNewGetlistAPIResponse.go | 27 + ...oAlitripIeAgentRefundNewGetlistResponse.go | 27 - ...AgentRefundNewMultiplerefundsAPIRequest.go | 52 + ...gentRefundNewMultiplerefundsAPIResponse.go | 27 + ...IeAgentRefundNewMultiplerefundsResponse.go | 27 - ...litripIeAgentRefundNewReceiveAPIRequest.go | 80 + ...itripIeAgentRefundNewReceiveAPIResponse.go | 27 + ...oAlitripIeAgentRefundNewReceiveResponse.go | 27 - ...itripIeAgentRefundRefundmoneyAPIRequest.go | 66 + ...tripIeAgentRefundRefundmoneyAPIResponse.go | 27 + ...AlitripIeAgentRefundRefundmoneyResponse.go | 27 - ...baoAlitripIeAgentRefundRefuseAPIRequest.go | 94 + ...aoAlitripIeAgentRefundRefuseAPIResponse.go | 27 + ...aobaoAlitripIeAgentRefundRefuseResponse.go | 27 - ...baoAlitripIeAgentRefundSearchAPIRequest.go | 122 ++ ...aoAlitripIeAgentRefundSearchAPIResponse.go | 27 + ...aobaoAlitripIeAgentRefundSearchResponse.go | 27 - ...obaoAlitripIeAgentTicketIssueAPIRequest.go | 66 + ...baoAlitripIeAgentTicketIssueAPIResponse.go | 27 + ...TaobaoAlitripIeAgentTicketIssueResponse.go | 27 - ...abaIhomeCtomCaseMainpicUpdateAPIRequest.go | 95 + ...baIhomeCtomCaseMainpicUpdateAPIResponse.go | 28 + ...ibabaIhomeCtomCaseMainpicUpdateResponse.go | 28 - ...babaIhomeCtomContentImgUploadAPIRequest.go | 52 + ...abaIhomeCtomContentImgUploadAPIResponse.go | 27 + ...libabaIhomeCtomContentImgUploadResponse.go | 27 - ...IhomeCtomContentPublishStatusAPIRequest.go | 52 + ...homeCtomContentPublishStatusAPIResponse.go | 27 + ...baIhomeCtomContentPublishStatusResponse.go | 27 - ...baIhomeCtomPostsaleOnsiteSyncAPIRequest.go | 192 ++ ...aIhomeCtomPostsaleOnsiteSyncAPIResponse.go | 27 + ...babaIhomeCtomPostsaleOnsiteSyncResponse.go | 27 - ...baIhomeCtomPostsaleStatusSyncAPIRequest.go | 192 ++ ...aIhomeCtomPostsaleStatusSyncAPIResponse.go | 27 + ...babaIhomeCtomPostsaleStatusSyncResponse.go | 27 - .../TaobaoIhomeAdvancepicUploadAPIRequest.go | 52 + .../TaobaoIhomeAdvancepicUploadAPIResponse.go | 27 + .../TaobaoIhomeAdvancepicUploadResponse.go | 27 - ...abaInteractActivityAddcommentAPIRequest.go | 80 + ...baInteractActivityAddcommentAPIResponse.go | 29 + ...ibabaInteractActivityAddcommentResponse.go | 29 - .../AlibabaInteractActivityApplyAPIRequest.go | 136 ++ ...AlibabaInteractActivityApplyAPIResponse.go | 31 + .../AlibabaInteractActivityApplyResponse.go | 31 - ...aInteractActivityPushtoalicomAPIRequest.go | 66 + ...InteractActivityPushtoalicomAPIResponse.go | 27 + ...abaInteractActivityPushtoalicomResponse.go | 27 - ...ibabaInteractActivityRegisterAPIRequest.go | 150 ++ ...babaInteractActivityRegisterAPIResponse.go | 27 + ...AlibabaInteractActivityRegisterResponse.go | 27 - ...abaInteractActivityUnregisterAPIRequest.go | 52 + ...baInteractActivityUnregisterAPIResponse.go | 27 + ...ibabaInteractActivityUnregisterResponse.go | 27 - .../AlibabaInteractCoinBuyerAddAPIRequest.go | 38 + .../AlibabaInteractCoinBuyerAddAPIResponse.go | 27 + .../AlibabaInteractCoinBuyerAddResponse.go | 27 - .../AlibabaInteractCouponApplyAPIRequest.go | 38 + .../AlibabaInteractCouponApplyAPIResponse.go | 27 + .../AlibabaInteractCouponApplyResponse.go | 27 - ...abaInteractCurrentMixusernickAPIRequest.go | 38 + ...baInteractCurrentMixusernickAPIResponse.go | 27 + ...ibabaInteractCurrentMixusernickResponse.go | 27 - .../AlibabaInteractIsvGatewayAPIRequest.go | 38 + .../AlibabaInteractIsvGatewayAPIResponse.go | 27 + .../AlibabaInteractIsvGatewayResponse.go | 27 - ...ibabaInteractIsvadminAllpondsAPIRequest.go | 38 + ...babaInteractIsvadminAllpondsAPIResponse.go | 33 + ...AlibabaInteractIsvadminAllpondsResponse.go | 33 - .../AlibabaInteractIsvadminBindAPIRequest.go | 108 + .../AlibabaInteractIsvadminBindAPIResponse.go | 27 + .../AlibabaInteractIsvadminBindResponse.go | 27 - ...vadminGetinteractbysellernickAPIRequest.go | 38 + ...adminGetinteractbysellernickAPIResponse.go | 33 + ...IsvadminGetinteractbysellernickResponse.go | 33 - ...ractIsvadminGetpondbyinteractAPIRequest.go | 52 + ...actIsvadminGetpondbyinteractAPIResponse.go | 33 + ...teractIsvadminGetpondbyinteractResponse.go | 33 - ...libabaInteractIsvlotteryIdrawAPIRequest.go | 80 + ...ibabaInteractIsvlotteryIdrawAPIResponse.go | 33 + .../AlibabaInteractIsvlotteryIdrawResponse.go | 33 - ...babaInteractIsvlotteryIsvdrawAPIRequest.go | 38 + ...abaInteractIsvlotteryIsvdrawAPIResponse.go | 27 + ...libabaInteractIsvlotteryIsvdrawResponse.go | 27 - ...libabaInteractLoginAlipayauthAPIRequest.go | 38 + ...ibabaInteractLoginAlipayauthAPIResponse.go | 27 + .../AlibabaInteractLoginAlipayauthResponse.go | 27 - .../AlibabaInteractOnecodeIssueAPIRequest.go | 38 + .../AlibabaInteractOnecodeIssueAPIResponse.go | 27 + .../AlibabaInteractOnecodeIssueResponse.go | 27 - ...libabaInteractOpenIsattentionAPIRequest.go | 52 + ...ibabaInteractOpenIsattentionAPIResponse.go | 27 + .../AlibabaInteractOpenIsattentionResponse.go | 27 - .../AlibabaInteractOpenIsattentionResultDo.go | 15 + .../AlibabaInteractSensorAudioAPIRequest.go | 38 + .../AlibabaInteractSensorAudioAPIResponse.go | 27 + .../AlibabaInteractSensorAudioResponse.go | 27 - ...libabaInteractSensorAuthorizeAPIRequest.go | 38 + ...ibabaInteractSensorAuthorizeAPIResponse.go | 27 + .../AlibabaInteractSensorAuthorizeResponse.go | 27 - .../AlibabaInteractSensorBlowAPIRequest.go | 38 + .../AlibabaInteractSensorBlowAPIResponse.go | 27 + .../AlibabaInteractSensorBlowResponse.go | 27 - ...AlibabaInteractSensorCalendarAPIRequest.go | 38 + ...libabaInteractSensorCalendarAPIResponse.go | 27 + .../AlibabaInteractSensorCalendarResponse.go | 27 - ...libabaInteractSensorFavoritesAPIRequest.go | 38 + ...ibabaInteractSensorFavoritesAPIResponse.go | 27 + .../AlibabaInteractSensorFavoritesResponse.go | 27 - .../AlibabaInteractSensorGcanvasAPIRequest.go | 38 + ...AlibabaInteractSensorGcanvasAPIResponse.go | 27 + .../AlibabaInteractSensorGcanvasResponse.go | 27 - .../AlibabaInteractSensorGlueAPIRequest.go | 38 + .../AlibabaInteractSensorGlueAPIResponse.go | 27 + .../AlibabaInteractSensorGlueResponse.go | 27 - .../AlibabaInteractSensorGmediaAPIRequest.go | 38 + .../AlibabaInteractSensorGmediaAPIResponse.go | 27 + .../AlibabaInteractSensorGmediaResponse.go | 27 - .../AlibabaInteractSensorGravityAPIRequest.go | 38 + ...AlibabaInteractSensorGravityAPIResponse.go | 27 + .../AlibabaInteractSensorGravityResponse.go | 27 - .../AlibabaInteractSensorGutilAPIRequest.go | 38 + .../AlibabaInteractSensorGutilAPIResponse.go | 27 + .../AlibabaInteractSensorGutilResponse.go | 27 - .../AlibabaInteractSensorGyroAPIRequest.go | 38 + .../AlibabaInteractSensorGyroAPIResponse.go | 27 + .../AlibabaInteractSensorGyroResponse.go | 27 - .../AlibabaInteractSensorLoginAPIRequest.go | 38 + .../AlibabaInteractSensorLoginAPIResponse.go | 27 + .../AlibabaInteractSensorLoginResponse.go | 27 - .../AlibabaInteractSensorMaAPIRequest.go | 38 + .../AlibabaInteractSensorMaAPIResponse.go | 27 + .../AlibabaInteractSensorMaResponse.go | 27 - .../AlibabaInteractSensorMakeupAPIRequest.go | 38 + .../AlibabaInteractSensorMakeupAPIResponse.go | 27 + .../AlibabaInteractSensorMakeupResponse.go | 27 - ...baInteractSensorNetworkstatusAPIRequest.go | 38 + ...aInteractSensorNetworkstatusAPIResponse.go | 27 + ...babaInteractSensorNetworkstatusResponse.go | 27 - ...ibabaInteractSensorOpenwindowAPIRequest.go | 38 + ...babaInteractSensorOpenwindowAPIResponse.go | 27 + ...AlibabaInteractSensorOpenwindowResponse.go | 27 - ...libabaInteractSensorPopwindowAPIRequest.go | 38 + ...ibabaInteractSensorPopwindowAPIResponse.go | 27 + .../AlibabaInteractSensorPopwindowResponse.go | 27 - .../AlibabaInteractSensorShakeAPIRequest.go | 38 + .../AlibabaInteractSensorShakeAPIResponse.go | 27 + .../AlibabaInteractSensorShakeResponse.go | 27 - .../AlibabaInteractSensorShareAPIRequest.go | 38 + .../AlibabaInteractSensorShareAPIResponse.go | 27 + .../AlibabaInteractSensorShareResponse.go | 27 - ...libabaInteractSensorTakephotoAPIRequest.go | 38 + ...ibabaInteractSensorTakephotoAPIResponse.go | 27 + .../AlibabaInteractSensorTakephotoResponse.go | 27 - ...abaInteractSensorTitlebarhideAPIRequest.go | 38 + ...baInteractSensorTitlebarhideAPIResponse.go | 27 + ...ibabaInteractSensorTitlebarhideResponse.go | 27 - .../AlibabaInteractSensorToastAPIRequest.go | 38 + .../AlibabaInteractSensorToastAPIResponse.go | 27 + .../AlibabaInteractSensorToastResponse.go | 27 - .../AlibabaInteractSensorVibrateAPIRequest.go | 38 + ...AlibabaInteractSensorVibrateAPIResponse.go | 27 + .../AlibabaInteractSensorVibrateResponse.go | 27 - ...AlibabaInteractSensorWangwangAPIRequest.go | 38 + ...libabaInteractSensorWangwangAPIResponse.go | 27 + .../AlibabaInteractSensorWangwangResponse.go | 27 - .../AlibabaInteractShopFavorAPIRequest.go | 38 + .../AlibabaInteractShopFavorAPIResponse.go | 27 + .../AlibabaInteractShopFavorResponse.go | 27 - .../AlibabaInteractUmpMealQueryAPIRequest.go | 38 + .../AlibabaInteractUmpMealQueryAPIResponse.go | 27 + .../AlibabaInteractUmpMealQueryResponse.go | 27 - .../AlibabaInteractUserIsloginAPIRequest.go | 52 + .../AlibabaInteractUserIsloginAPIResponse.go | 27 + .../AlibabaInteractUserIsloginResponse.go | 27 - .../AlibabaInteractWirelessDrawAPIRequest.go | 38 + .../AlibabaInteractWirelessDrawAPIResponse.go | 27 + .../AlibabaInteractWirelessDrawResponse.go | 27 - .../TaobaoMixnickPlaytoweAPIRequest.go | 52 + .../TaobaoMixnickPlaytoweAPIResponse.go | 27 + .../interact/TaobaoMixnickPlaytoweResponse.go | 27 - .../TaobaoMixnickWetoplayAPIRequest.go | 66 + .../TaobaoMixnickWetoplayAPIResponse.go | 27 + .../interact/TaobaoMixnickWetoplayResponse.go | 27 - .../TaobaoWeitaoFeedCancelAPIRequest.go | 80 + .../TaobaoWeitaoFeedCancelAPIResponse.go | 27 + .../TaobaoWeitaoFeedCancelResponse.go | 27 - .../TaobaoWeitaoFeedSynchronizeAPIRequest.go | 136 ++ .../TaobaoWeitaoFeedSynchronizeAPIResponse.go | 29 + ...aobaoWeitaoFeedSynchronizeNewAPIRequest.go | 150 ++ ...obaoWeitaoFeedSynchronizeNewAPIResponse.go | 29 + .../TaobaoWeitaoFeedSynchronizeNewResponse.go | 29 - .../TaobaoWeitaoFeedSynchronizeResponse.go | 29 - .../AlibabaInteractVipGetAPIRequest.go | 38 + .../AlibabaInteractVipGetAPIResponse.go | 25 + .../AlibabaInteractVipGetResponse.go | 25 - ...babaRetailDeviceInventorySyncAPIRequest.go | 94 + ...abaRetailDeviceInventorySyncAPIResponse.go | 27 + ...libabaRetailDeviceInventorySyncResponse.go | 27 - ...TaobaoInventoryMerchantAdjustAPIRequest.go | 52 + ...aobaoInventoryMerchantAdjustAPIResponse.go | 27 + .../TaobaoInventoryMerchantAdjustResponse.go | 27 - .../TaobaoInventoryPlanEditAPIRequest.go | 52 + .../TaobaoInventoryPlanEditAPIResponse.go | 27 + .../TaobaoInventoryPlanEditResponse.go | 27 - .../TaobaoInventoryPlanInvalidAPIRequest.go | 52 + .../TaobaoInventoryPlanInvalidAPIResponse.go | 27 + .../TaobaoInventoryPlanInvalidResponse.go | 27 - ...InventoryPlanQuantityIncreaseAPIRequest.go | 52 + ...nventoryPlanQuantityIncreaseAPIResponse.go | 27 + ...aoInventoryPlanQuantityIncreaseResponse.go | 27 - .../TaobaoInventoryPlanQueryAPIRequest.go | 52 + .../TaobaoInventoryPlanQueryAPIResponse.go | 27 + .../TaobaoInventoryPlanQueryResponse.go | 27 - .../TaobaoLocationRelationEditAPIRequest.go | 52 + .../TaobaoLocationRelationEditAPIResponse.go | 31 + .../TaobaoLocationRelationEditResponse.go | 31 - .../TaobaoLocationRelationQueryAPIRequest.go | 53 + .../TaobaoLocationRelationQueryAPIResponse.go | 28 + .../TaobaoLocationRelationQueryResponse.go | 28 - ...libabaAilabsAligenieAlbumsGetAPIRequest.go | 136 ++ ...ibabaAilabsAligenieAlbumsGetAPIResponse.go | 27 + .../AlibabaAilabsAligenieAlbumsGetResponse.go | 27 - ...abaAilabsAligenieAlbumsSearchAPIRequest.go | 164 ++ ...baAilabsAligenieAlbumsSearchAPIResponse.go | 27 + ...ibabaAilabsAligenieAlbumsSearchResponse.go | 27 - ...ligenieIotDeviceControlResultAPIRequest.go | 108 + ...igenieIotDeviceControlResultAPIResponse.go | 31 + ...sAligenieIotDeviceControlResultResponse.go | 31 - ...abaAilabsAligenieTracksSearchAPIRequest.go | 164 ++ ...baAilabsAligenieTracksSearchAPIResponse.go | 27 + ...ibabaAilabsAligenieTracksSearchResponse.go | 27 - ...absIotBusinessRecipeGetdetailAPIRequest.go | 66 + ...bsIotBusinessRecipeGetdetailAPIResponse.go | 27 + ...ilabsIotBusinessRecipeGetdetailResponse.go | 27 - ...ilabsIotBusinessRecipeGetpageAPIRequest.go | 80 + ...labsIotBusinessRecipeGetpageAPIResponse.go | 27 + ...aAilabsIotBusinessRecipeGetpageResponse.go | 27 - ...tBusinessRecipeInsertorupdateAPIRequest.go | 52 + ...BusinessRecipeInsertorupdateAPIResponse.go | 33 + ...IotBusinessRecipeInsertorupdateResponse.go | 33 - ...inessRecipestepInsertorupdateAPIRequest.go | 52 + ...nessRecipestepInsertorupdateAPIResponse.go | 33 + ...usinessRecipestepInsertorupdateResponse.go | 33 - .../AlibabaRetailDevicePayUrlGetAPIRequest.go | 108 + ...AlibabaRetailDevicePayUrlGetAPIResponse.go | 27 + .../AlibabaRetailDevicePayUrlGetResponse.go | 27 - ...thomeTopGenielinkReportdeviceAPIRequest.go | 94 + ...homeTopGenielinkReportdeviceAPIResponse.go | 27 + ...arthomeTopGenielinkReportdeviceResponse.go | 27 - .../TaobaoAilabAicloudTopAuthGetAPIRequest.go | 94 + ...TaobaoAilabAicloudTopAuthGetAPIResponse.go | 27 + .../TaobaoAilabAicloudTopAuthGetResponse.go | 27 - ...obaoAilabAicloudTopAuthLogoutAPIRequest.go | 80 + ...baoAilabAicloudTopAuthLogoutAPIResponse.go | 29 + ...TaobaoAilabAicloudTopAuthLogoutResponse.go | 29 - ...abAicloudTopDeviceAuthcodeGetAPIRequest.go | 94 + ...bAicloudTopDeviceAuthcodeGetAPIResponse.go | 31 + ...ilabAicloudTopDeviceAuthcodeGetResponse.go | 31 - ...AicloudTopDeviceAuthresultGetAPIRequest.go | 108 + ...icloudTopDeviceAuthresultGetAPIResponse.go | 27 + ...abAicloudTopDeviceAuthresultGetResponse.go | 27 - ...loudTopDeviceControlChildlockAPIRequest.go | 80 + ...oudTopDeviceControlChildlockAPIResponse.go | 33 + ...icloudTopDeviceControlChildlockResponse.go | 33 - ...AicloudTopDeviceControlCustomAPIRequest.go | 80 + ...icloudTopDeviceControlCustomAPIResponse.go | 33 + ...abAicloudTopDeviceControlCustomResponse.go | 33 - ...udTopDeviceControlHibernationAPIRequest.go | 80 + ...dTopDeviceControlHibernationAPIResponse.go | 33 + ...loudTopDeviceControlHibernationResponse.go | 33 - ...abAicloudTopDeviceControlLampAPIRequest.go | 94 + ...bAicloudTopDeviceControlLampAPIResponse.go | 27 + ...ilabAicloudTopDeviceControlLampResponse.go | 27 - ...opDeviceControlPauseandresumeAPIRequest.go | 80 + ...pDeviceControlPauseandresumeAPIResponse.go | 27 + ...dTopDeviceControlPauseandresumeResponse.go | 27 - ...cloudTopDeviceControlPlaybyidAPIRequest.go | 108 + ...loudTopDeviceControlPlaybyidAPIResponse.go | 27 + ...AicloudTopDeviceControlPlaybyidResponse.go | 27 - ...icloudTopDeviceControlPlayurlAPIRequest.go | 80 + ...cloudTopDeviceControlPlayurlAPIResponse.go | 33 + ...bAicloudTopDeviceControlPlayurlResponse.go | 33 - ...AicloudTopDeviceControlVolumeAPIRequest.go | 80 + ...icloudTopDeviceControlVolumeAPIResponse.go | 33 + ...abAicloudTopDeviceControlVolumeResponse.go | 33 - ...AicloudTopDeviceDetailinfoGetAPIRequest.go | 94 + ...icloudTopDeviceDetailinfoGetAPIResponse.go | 27 + ...abAicloudTopDeviceDetailinfoGetResponse.go | 27 - ...cloudTopDeviceDeviceidConvertAPIRequest.go | 66 + ...loudTopDeviceDeviceidConvertAPIResponse.go | 27 + ...AicloudTopDeviceDeviceidConvertResponse.go | 27 - ...labAicloudTopDeviceExtinfoGetAPIRequest.go | 94 + ...abAicloudTopDeviceExtinfoGetAPIResponse.go | 27 + ...AilabAicloudTopDeviceExtinfoGetResponse.go | 27 - ...ilabAicloudTopDeviceGetstatusAPIRequest.go | 66 + ...labAicloudTopDeviceGetstatusAPIResponse.go | 27 + ...oAilabAicloudTopDeviceGetstatusResponse.go | 27 - ...oudTopDeviceOpenidAuthcodeGetAPIRequest.go | 94 + ...udTopDeviceOpenidAuthcodeGetAPIResponse.go | 27 + ...cloudTopDeviceOpenidAuthcodeGetResponse.go | 27 - ...dTopDeviceOpenidAuthresultGetAPIRequest.go | 122 ++ ...TopDeviceOpenidAuthresultGetAPIResponse.go | 27 + ...oudTopDeviceOpenidAuthresultGetResponse.go | 27 - ...bAicloudTopDeviceOpenidUnbindAPIRequest.go | 122 ++ ...AicloudTopDeviceOpenidUnbindAPIResponse.go | 27 + ...labAicloudTopDeviceOpenidUnbindResponse.go | 27 - ...AicloudTopDeviceSettingsResetAPIRequest.go | 108 + ...icloudTopDeviceSettingsResetAPIResponse.go | 35 + ...abAicloudTopDeviceSettingsResetResponse.go | 35 - ...AicloudTopDeviceStatusinfoGetAPIRequest.go | 94 + ...icloudTopDeviceStatusinfoGetAPIResponse.go | 27 + ...abAicloudTopDeviceStatusinfoGetResponse.go | 27 - ...aoAilabAicloudTopDeviceUnbindAPIRequest.go | 94 + ...oAilabAicloudTopDeviceUnbindAPIResponse.go | 31 + ...obaoAilabAicloudTopDeviceUnbindResponse.go | 31 - ...AilabAicloudTopFeedlistDeleteAPIRequest.go | 108 + ...ilabAicloudTopFeedlistDeleteAPIResponse.go | 31 + ...aoAilabAicloudTopFeedlistDeleteResponse.go | 31 - ...baoAilabAicloudTopFeedlistGetAPIRequest.go | 94 + ...aoAilabAicloudTopFeedlistGetAPIResponse.go | 27 + ...aobaoAilabAicloudTopFeedlistGetResponse.go | 27 - ...oudTopFreelistenChildrenalbumAPIRequest.go | 136 ++ ...udTopFreelistenChildrenalbumAPIResponse.go | 27 + ...cloudTopFreelistenChildrenalbumResponse.go | 27 - .../TaobaoAilabAicloudTopLikeAddAPIRequest.go | 150 ++ ...TaobaoAilabAicloudTopLikeAddAPIResponse.go | 31 + .../TaobaoAilabAicloudTopLikeAddResponse.go | 31 - ...obaoAilabAicloudTopLikeDeleteAPIRequest.go | 136 ++ ...baoAilabAicloudTopLikeDeleteAPIResponse.go | 31 + ...TaobaoAilabAicloudTopLikeDeleteResponse.go | 31 - ...obaoAilabAicloudTopLikeFilterAPIRequest.go | 122 ++ ...baoAilabAicloudTopLikeFilterAPIResponse.go | 27 + ...TaobaoAilabAicloudTopLikeFilterResponse.go | 27 - ...TaobaoAilabAicloudTopLikeListAPIRequest.go | 136 ++ ...aobaoAilabAicloudTopLikeListAPIResponse.go | 27 + .../TaobaoAilabAicloudTopLikeListResponse.go | 27 - ...AilabAicloudTopMessageAddtextAPIRequest.go | 94 + ...ilabAicloudTopMessageAddtextAPIResponse.go | 27 + ...aoAilabAicloudTopMessageAddtextResponse.go | 27 - ...cloudTopMessageGetUnreadCountAPIRequest.go | 94 + ...loudTopMessageGetUnreadCountAPIResponse.go | 31 + ...AicloudTopMessageGetUnreadCountResponse.go | 31 - ...baoAilabAicloudTopMessageListAPIRequest.go | 122 ++ ...aoAilabAicloudTopMessageListAPIResponse.go | 27 + ...aobaoAilabAicloudTopMessageListResponse.go | 27 - ...baoAilabAicloudTopMessageSendAPIRequest.go | 108 + ...aoAilabAicloudTopMessageSendAPIResponse.go | 31 + ...aobaoAilabAicloudTopMessageSendResponse.go | 31 - .../TmallDeviceBrandMemberurlGetAPIRequest.go | 108 + ...TmallDeviceBrandMemberurlGetAPIResponse.go | 29 + .../TmallDeviceBrandMemberurlGetResponse.go | 29 - model/iot/TmallDeviceCarturlGetAPIRequest.go | 80 + model/iot/TmallDeviceCarturlGetAPIResponse.go | 29 + model/iot/TmallDeviceCarturlGetResponse.go | 29 - .../TmallDeviceItemPromotionGetAPIRequest.go | 52 + .../TmallDeviceItemPromotionGetAPIResponse.go | 27 + .../TmallDeviceItemPromotionGetResponse.go | 27 - .../TmallDeviceMemberIdentityGetAPIRequest.go | 80 + ...TmallDeviceMemberIdentityGetAPIResponse.go | 27 + .../TmallDeviceMemberIdentityGetResponse.go | 27 - .../TmallDeviceMemberIdentityGetResultDto.go | 13 + .../TmallDeviceShortchainurlGetAPIRequest.go | 108 + .../TmallDeviceShortchainurlGetAPIResponse.go | 29 + .../TmallDeviceShortchainurlGetResponse.go | 29 - .../TmallDeviceStoreFollowurlGetAPIRequest.go | 108 + ...TmallDeviceStoreFollowurlGetAPIResponse.go | 29 + .../TmallDeviceStoreFollowurlGetResponse.go | 29 - .../TmallDeviceTradePrecreateAPIRequest.go | 139 ++ .../TmallDeviceTradePrecreateAPIResponse.go | 36 + .../iot/TmallDeviceTradePrecreateResponse.go | 36 - ...AlibabaItAlbumDeviceSendimageAPIRequest.go | 52 + ...libabaItAlbumDeviceSendimageAPIResponse.go | 27 + .../AlibabaItAlbumDeviceSendimageResponse.go | 27 - ...babaItCloudliveGetagentconfigAPIRequest.go | 94 + ...abaItCloudliveGetagentconfigAPIResponse.go | 27 + ...libabaItCloudliveGetagentconfigResponse.go | 27 - ...AlibabaItEslEslimageSendimageAPIRequest.go | 52 + ...libabaItEslEslimageSendimageAPIResponse.go | 27 + .../AlibabaItEslEslimageSendimageResponse.go | 27 - ...aItEslEslimageShowimagecommonAPIRequest.go | 108 + ...ItEslEslimageShowimagecommonAPIResponse.go | 27 + ...abaItEslEslimageShowimagecommonResponse.go | 27 - model/ioti/AlibabaItEslSendledAPIRequest.go | 66 + model/ioti/AlibabaItEslSendledAPIResponse.go | 27 + model/ioti/AlibabaItEslSendledResponse.go | 27 - model/ioti/AlibabaItEslSendotaAPIRequest.go | 66 + model/ioti/AlibabaItEslSendotaAPIResponse.go | 27 + model/ioti/AlibabaItEslSendotaResponse.go | 27 - .../CainiaoIotTicketDetailQueryAPIRequest.go | 66 + .../CainiaoIotTicketDetailQueryAPIResponse.go | 27 + .../CainiaoIotTicketDetailQueryResponse.go | 27 - .../CainiaoIotTicketSpAcceptAPIRequest.go | 52 + .../CainiaoIotTicketSpAcceptAPIResponse.go | 27 + .../CainiaoIotTicketSpAcceptResponse.go | 27 - .../CainiaoIotTicketSpAcceptResultDto.go | 11 + .../CainiaoIotTicketSpCancleAPIRequest.go | 52 + .../CainiaoIotTicketSpCancleAPIResponse.go | 27 + .../CainiaoIotTicketSpCancleResponse.go | 27 - .../CainiaoIotTicketSpCancleResultDto.go | 11 + .../CainiaoIotTicketSpCommentAPIRequest.go | 52 + .../CainiaoIotTicketSpCommentAPIResponse.go | 27 + .../CainiaoIotTicketSpCommentResponse.go | 27 - .../CainiaoIotTicketSpCommentResultDto.go | 11 + ...niaoIotTicketSpMailSignUploadAPIRequest.go | 52 + ...iaoIotTicketSpMailSignUploadAPIResponse.go | 27 + ...ainiaoIotTicketSpMailSignUploadResponse.go | 27 - ...iniaoIotTicketSpMailSignUploadResultDto.go | 11 + ...oIotTicketSpMailVoucherUploadAPIRequest.go | 52 + ...IotTicketSpMailVoucherUploadAPIResponse.go | 27 + ...iaoIotTicketSpMailVoucherUploadResponse.go | 27 - ...aoIotTicketSpMailVoucherUploadResultDto.go | 11 + ...niaoIotTicketSpMaintainCreateAPIRequest.go | 52 + ...iaoIotTicketSpMaintainCreateAPIResponse.go | 27 + ...ainiaoIotTicketSpMaintainCreateResponse.go | 27 - ...iniaoIotTicketSpMaintainCreateResultDto.go | 11 + ...niaoIotTicketSpMaintainUpdateAPIRequest.go | 52 + ...iaoIotTicketSpMaintainUpdateAPIResponse.go | 27 + ...ainiaoIotTicketSpMaintainUpdateResponse.go | 27 - ...iniaoIotTicketSpMaintainUpdateResultDto.go | 11 + ...IotTicketSpMaintainVtwoCreateAPIRequest.go | 52 + ...otTicketSpMaintainVtwoCreateAPIResponse.go | 27 + ...aoIotTicketSpMaintainVtwoCreateResponse.go | 27 - ...oIotTicketSpMaintainVtwoCreateResultDto.go | 11 + .../CainiaoIotTicketSpVtwoAcceptAPIRequest.go | 52 + ...CainiaoIotTicketSpVtwoAcceptAPIResponse.go | 27 + .../CainiaoIotTicketSpVtwoAcceptResponse.go | 27 - .../CainiaoIotTicketSpVtwoAcceptResultDto.go | 11 + .../TaobaoAlitripItFareAddowAPIRequest.go | 1242 ++++++++++++ .../TaobaoAlitripItFareAddowAPIResponse.go | 29 + .../TaobaoAlitripItFareAddowResponse.go | 29 - .../TaobaoAlitripItFareAddrtAPIRequest.go | 1676 ++++++++++++++++ .../TaobaoAlitripItFareAddrtAPIResponse.go | 29 + .../TaobaoAlitripItFareAddrtResponse.go | 29 - .../TaobaoAlitripItFareBatchaddAPIRequest.go | 94 + .../TaobaoAlitripItFareBatchaddAPIResponse.go | 29 + .../TaobaoAlitripItFareBatchaddResponse.go | 29 - ...aobaoAlitripItFareBatchdeleteAPIRequest.go | 248 +++ ...obaoAlitripItFareBatchdeleteAPIResponse.go | 29 + .../TaobaoAlitripItFareBatchdeleteResponse.go | 29 - .../TaobaoAlitripItFareDeleteAPIRequest.go | 80 + .../TaobaoAlitripItFareDeleteAPIResponse.go | 27 + .../TaobaoAlitripItFareDeleteResponse.go | 27 - .../TaobaoAlitripItFareGetAPIRequest.go | 80 + .../TaobaoAlitripItFareGetAPIResponse.go | 35 + .../TaobaoAlitripItFareGetResponse.go | 35 - .../TaobaoAlitripItFareQuerytaskAPIRequest.go | 66 + ...TaobaoAlitripItFareQuerytaskAPIResponse.go | 35 + .../TaobaoAlitripItFareQuerytaskResponse.go | 35 - .../TaobaoAlitripItFareUpdateAPIRequest.go | 108 + .../TaobaoAlitripItFareUpdateAPIResponse.go | 29 + .../TaobaoAlitripItFareUpdateResponse.go | 29 - .../TaobaoAlitripItPolicyAddAPIRequest.go | 66 + .../TaobaoAlitripItPolicyAddAPIResponse.go | 29 + .../TaobaoAlitripItPolicyAddResponse.go | 29 - ...baoAlitripItPolicyBatchdeleteAPIRequest.go | 122 ++ ...aoAlitripItPolicyBatchdeleteAPIResponse.go | 29 + ...aobaoAlitripItPolicyBatchdeleteResponse.go | 29 - .../TaobaoAlitripItPolicyDeleteAPIRequest.go | 80 + .../TaobaoAlitripItPolicyDeleteAPIResponse.go | 27 + .../TaobaoAlitripItPolicyDeleteResponse.go | 27 - .../TaobaoAlitripItPolicyGetAPIRequest.go | 80 + .../TaobaoAlitripItPolicyGetAPIResponse.go | 33 + .../TaobaoAlitripItPolicyGetResponse.go | 33 - .../TaobaoAlitripItPolicyUpdateAPIRequest.go | 94 + .../TaobaoAlitripItPolicyUpdateAPIResponse.go | 29 + .../TaobaoAlitripItPolicyUpdateResponse.go | 29 - model/jae/TaobaoAplatformWeakgetAPIRequest.go | 66 + .../jae/TaobaoAplatformWeakgetAPIResponse.go | 27 + model/jae/TaobaoAplatformWeakgetResponse.go | 27 - .../jipiao/TaobaoAlitripBuyerGetAPIRequest.go | 52 + .../TaobaoAlitripBuyerGetAPIResponse.go | 29 + model/jipiao/TaobaoAlitripBuyerGetResponse.go | 29 - ...TaobaoAlitripSellerModifyListAPIRequest.go | 192 ++ ...aobaoAlitripSellerModifyListAPIResponse.go | 29 + .../TaobaoAlitripSellerModifyListResponse.go | 29 - ...obaoAlitripSellerOrderConfirmAPIRequest.go | 52 + ...baoAlitripSellerOrderConfirmAPIResponse.go | 27 + ...TaobaoAlitripSellerOrderConfirmResponse.go | 27 - ...tripSellerRefundConfirmreturnAPIRequest.go | 52 + ...ripSellerRefundConfirmreturnAPIResponse.go | 27 + ...litripSellerRefundConfirmreturnResponse.go | 27 - ...baoAlitripSellerRefundFillfeeAPIRequest.go | 108 + ...aoAlitripSellerRefundFillfeeAPIResponse.go | 27 + ...aobaoAlitripSellerRefundFillfeeResponse.go | 27 - .../TaobaoAlitripSellerRefundGetAPIRequest.go | 52 + ...TaobaoAlitripSellerRefundGetAPIResponse.go | 27 + .../TaobaoAlitripSellerRefundGetResponse.go | 27 - .../TaobaoAlitripSellerRefundGetResultDo.go | 13 + ...itripSellerRefundRefusereturnAPIRequest.go | 66 + ...tripSellerRefundRefusereturnAPIResponse.go | 27 + ...AlitripSellerRefundRefusereturnResponse.go | 27 - ...AlitripSellerRefundRefusereturnResultDo.go | 13 + ...obaoAlitripSellerRefundSearchAPIRequest.go | 80 + ...baoAlitripSellerRefundSearchAPIResponse.go | 27 + ...TaobaoAlitripSellerRefundSearchResponse.go | 27 - ...TaobaoAlitripSellerRefundSearchResultDo.go | 13 + ...itripSellerRefundmoneyConfirmAPIRequest.go | 52 + ...tripSellerRefundmoneyConfirmAPIResponse.go | 27 + ...AlitripSellerRefundmoneyConfirmResponse.go | 27 - ...ripSellerRefundorderlistFetchAPIRequest.go | 80 + ...ipSellerRefundorderlistFetchAPIResponse.go | 27 + ...itripSellerRefundorderlistFetchResponse.go | 27 - ...obaoAlitripSupplierModifyListAPIRequest.go | 136 ++ ...baoAlitripSupplierModifyListAPIResponse.go | 27 + ...TaobaoAlitripSupplierModifyListResponse.go | 27 - ...TaobaoJipiaoAgentOrderBdetailAPIRequest.go | 52 + ...aobaoJipiaoAgentOrderBdetailAPIResponse.go | 29 + .../TaobaoJipiaoAgentOrderBdetailResponse.go | 29 - .../TaobaoJipiaoAgentOrderDetailAPIRequest.go | 52 + ...TaobaoJipiaoAgentOrderDetailAPIResponse.go | 29 + .../TaobaoJipiaoAgentOrderDetailResponse.go | 29 - .../TaobaoJipiaoAgentOrderSearchAPIRequest.go | 136 ++ ...TaobaoJipiaoAgentOrderSearchAPIResponse.go | 31 + .../TaobaoJipiaoAgentOrderSearchResponse.go | 31 - .../TaobaoJipiaoAgentOrderTicketAPIRequest.go | 66 + ...TaobaoJipiaoAgentOrderTicketAPIResponse.go | 31 + .../TaobaoJipiaoAgentOrderTicketResponse.go | 31 - .../TaobaoJushitaJmsGroupDeleteAPIRequest.go | 80 + .../TaobaoJushitaJmsGroupDeleteAPIResponse.go | 27 + .../TaobaoJushitaJmsGroupDeleteResponse.go | 27 - .../jms/TaobaoJushitaJmsGroupGetAPIRequest.go | 80 + .../TaobaoJushitaJmsGroupGetAPIResponse.go | 29 + model/jms/TaobaoJushitaJmsGroupGetResponse.go | 29 - .../TaobaoJushitaJmsTopicsGetAPIRequest.go | 52 + .../TaobaoJushitaJmsTopicsGetAPIResponse.go | 31 + .../jms/TaobaoJushitaJmsTopicsGetResponse.go | 31 - .../jms/TaobaoJushitaJmsUserAddAPIRequest.go | 52 + .../jms/TaobaoJushitaJmsUserAddAPIResponse.go | 27 + model/jms/TaobaoJushitaJmsUserAddResponse.go | 27 - .../TaobaoJushitaJmsUserDeleteAPIRequest.go | 52 + .../TaobaoJushitaJmsUserDeleteAPIResponse.go | 27 + .../jms/TaobaoJushitaJmsUserDeleteResponse.go | 27 - .../jms/TaobaoJushitaJmsUserGetAPIRequest.go | 52 + .../jms/TaobaoJushitaJmsUserGetAPIResponse.go | 27 + model/jms/TaobaoJushitaJmsUserGetResponse.go | 27 - ...difyaddressIsvBindsellerCheckAPIRequest.go | 42 + ...ifyaddressIsvBindsellerCheckAPIResponse.go | 31 + ...ModifyaddressIsvBindsellerCheckResponse.go | 31 - model/jst/TaobaoJdsHluserGetAPIRequest.go | 38 + model/jst/TaobaoJdsHluserGetAPIResponse.go | 27 + model/jst/TaobaoJdsHluserGetResponse.go | 27 - model/jst/TaobaoJdsHluserUpdateAPIRequest.go | 66 + model/jst/TaobaoJdsHluserUpdateAPIResponse.go | 27 + model/jst/TaobaoJdsHluserUpdateResponse.go | 27 - .../jst/TaobaoJdsRefundTracesGetAPIRequest.go | 52 + .../TaobaoJdsRefundTracesGetAPIResponse.go | 29 + model/jst/TaobaoJdsRefundTracesGetResponse.go | 29 - .../jst/TaobaoJdsTradeTracesGetAPIRequest.go | 52 + .../jst/TaobaoJdsTradeTracesGetAPIResponse.go | 29 + model/jst/TaobaoJdsTradeTracesGetResponse.go | 29 - ...TaobaoJdsTradesStatisticsDiffAPIRequest.go | 94 + ...aobaoJdsTradesStatisticsDiffAPIResponse.go | 29 + .../TaobaoJdsTradesStatisticsDiffResponse.go | 29 - .../TaobaoJdsTradesStatisticsGetAPIRequest.go | 52 + ...TaobaoJdsTradesStatisticsGetAPIResponse.go | 27 + .../TaobaoJdsTradesStatisticsGetResponse.go | 27 - .../TaobaoJstMiniappCrowdCreateAPIRequest.go | 94 + .../TaobaoJstMiniappCrowdCreateAPIResponse.go | 29 + .../TaobaoJstMiniappCrowdCreateResponse.go | 29 - ...baoJstMiniappCrowdMessageSendAPIRequest.go | 108 + ...aoJstMiniappCrowdMessageSendAPIResponse.go | 29 + ...aobaoJstMiniappCrowdMessageSendResponse.go | 29 - .../TaobaoJstMiniappCrowdUserAddAPIRequest.go | 80 + ...TaobaoJstMiniappCrowdUserAddAPIResponse.go | 29 + .../TaobaoJstMiniappCrowdUserAddResponse.go | 29 - ...aoJstMiniappOpenidMessageSendAPIRequest.go | 150 ++ ...oJstMiniappOpenidMessageSendAPIResponse.go | 31 + ...obaoJstMiniappOpenidMessageSendResponse.go | 31 - .../TaobaoJstSmsExtendcodeQueryAPIRequest.go | 52 + .../TaobaoJstSmsExtendcodeQueryAPIResponse.go | 35 + .../TaobaoJstSmsExtendcodeQueryResponse.go | 35 - .../TaobaoJstSmsMenuinfoReportAPIRequest.go | 52 + .../TaobaoJstSmsMenuinfoReportAPIResponse.go | 35 + .../jst/TaobaoJstSmsMenuinfoReportResponse.go | 35 - ...oJstSmsMessageDirectBatchsendAPIRequest.go | 150 ++ ...JstSmsMessageDirectBatchsendAPIResponse.go | 27 + ...baoJstSmsMessageDirectBatchsendResponse.go | 27 - .../jst/TaobaoJstSmsMessageSendAPIRequest.go | 52 + .../jst/TaobaoJstSmsMessageSendAPIResponse.go | 33 + model/jst/TaobaoJstSmsMessageSendResponse.go | 33 - ...aoJstSmsMessageShorturlCreateAPIRequest.go | 94 + ...oJstSmsMessageShorturlCreateAPIResponse.go | 35 + ...obaoJstSmsMessageShorturlCreateResponse.go | 35 - ...baoJstSmsMessageShorturlQueryAPIRequest.go | 52 + ...aoJstSmsMessageShorturlQueryAPIResponse.go | 37 + ...aobaoJstSmsMessageShorturlQueryResponse.go | 37 - ...aoJstSmsOfficialaccountCancelAPIRequest.go | 52 + ...oJstSmsOfficialaccountCancelAPIResponse.go | 35 + ...obaoJstSmsOfficialaccountCancelResponse.go | 35 - ...oJstSmsOfficialaccountOfflineAPIRequest.go | 52 + ...JstSmsOfficialaccountOfflineAPIResponse.go | 35 + ...baoJstSmsOfficialaccountOfflineResponse.go | 35 - ...aoJstSmsOfficialaccountOnlineAPIRequest.go | 52 + ...oJstSmsOfficialaccountOnlineAPIResponse.go | 35 + ...obaoJstSmsOfficialaccountOnlineResponse.go | 35 - ...baoJstSmsOfficialaccountOrderAPIRequest.go | 52 + ...aoJstSmsOfficialaccountOrderAPIResponse.go | 35 + ...aobaoJstSmsOfficialaccountOrderResponse.go | 35 - ...aoJstSmsOfficialaccountReportAPIRequest.go | 52 + ...oJstSmsOfficialaccountReportAPIResponse.go | 35 + ...obaoJstSmsOfficialaccountReportResponse.go | 35 - .../jst/TaobaoJstSmsStatusQueryAPIRequest.go | 52 + .../jst/TaobaoJstSmsStatusQueryAPIResponse.go | 27 + model/jst/TaobaoJstSmsStatusQueryResponse.go | 27 - model/jst/TaobaoJstSmsTaskCreateAPIRequest.go | 52 + .../jst/TaobaoJstSmsTaskCreateAPIResponse.go | 27 + model/jst/TaobaoJstSmsTaskCreateResponse.go | 27 - .../jst/TaobaoJushitaJdpUserAddAPIRequest.go | 66 + .../jst/TaobaoJushitaJdpUserAddAPIResponse.go | 27 + model/jst/TaobaoJushitaJdpUserAddResponse.go | 27 - .../TaobaoJushitaJdpUserDeleteAPIRequest.go | 66 + .../TaobaoJushitaJdpUserDeleteAPIResponse.go | 27 + .../jst/TaobaoJushitaJdpUserDeleteResponse.go | 27 - .../jst/TaobaoJushitaJdpUsersGetAPIRequest.go | 108 + .../TaobaoJushitaJdpUsersGetAPIResponse.go | 29 + model/jst/TaobaoJushitaJdpUsersGetResponse.go | 29 - .../jst/TaobaoModifyaddressOpenAPIRequest.go | 38 + .../jst/TaobaoModifyaddressOpenAPIResponse.go | 31 + model/jst/TaobaoModifyaddressOpenResponse.go | 31 - .../TaobaoOcApContractsignedGetAPIRequest.go | 38 + .../TaobaoOcApContractsignedGetAPIResponse.go | 29 + .../TaobaoOcApContractsignedGetResponse.go | 29 - .../jst/TaobaoOcApContracturlGetAPIRequest.go | 38 + .../TaobaoOcApContracturlGetAPIResponse.go | 31 + model/jst/TaobaoOcApContracturlGetResponse.go | 31 - model/jst/TaobaoOcApRuleCreateAPIRequest.go | 66 + model/jst/TaobaoOcApRuleCreateAPIResponse.go | 31 + model/jst/TaobaoOcApRuleCreateResponse.go | 31 - .../TaobaoOcEserviceAppointListAPIRequest.go | 150 ++ .../TaobaoOcEserviceAppointListAPIResponse.go | 29 + .../TaobaoOcEserviceAppointListResponse.go | 29 - model/jst/TaobaoOcOrderApUpdateAPIRequest.go | 52 + model/jst/TaobaoOcOrderApUpdateAPIResponse.go | 31 + model/jst/TaobaoOcOrderApUpdateResponse.go | 31 - model/jst/TaobaoOcOrderCreateAPIRequest.go | 52 + model/jst/TaobaoOcOrderCreateAPIResponse.go | 31 + model/jst/TaobaoOcOrderCreateResponse.go | 31 - model/jst/TaobaoOcTradesBytagGetAPIRequest.go | 94 + .../jst/TaobaoOcTradesBytagGetAPIResponse.go | 29 + model/jst/TaobaoOcTradesBytagGetResponse.go | 29 - model/jst/TaobaoOcTradetagAttachAPIRequest.go | 108 + .../jst/TaobaoOcTradetagAttachAPIResponse.go | 27 + model/jst/TaobaoOcTradetagAttachResponse.go | 27 - model/jst/TaobaoOcTradetagsGetAPIRequest.go | 97 + model/jst/TaobaoOcTradetagsGetAPIResponse.go | 30 + model/jst/TaobaoOcTradetagsGetResponse.go | 30 - .../TaobaoOcTradetraceAlertsGetAPIRequest.go | 80 + .../TaobaoOcTradetraceAlertsGetAPIResponse.go | 27 + .../TaobaoOcTradetraceAlertsGetResponse.go | 27 - .../TaobaoQimenOrderstatusUpdateAPIRequest.go | 136 ++ ...TaobaoQimenOrderstatusUpdateAPIResponse.go | 31 + .../TaobaoQimenOrderstatusUpdateResponse.go | 31 - model/jst/TaobaoRdsDbCreateAPIRequest.go | 80 + model/jst/TaobaoRdsDbCreateAPIResponse.go | 27 + model/jst/TaobaoRdsDbCreateResponse.go | 27 - .../jst/TaobaoRdsDbCreateaccountAPIRequest.go | 52 + .../TaobaoRdsDbCreateaccountAPIResponse.go | 27 + model/jst/TaobaoRdsDbCreateaccountResponse.go | 27 - model/jst/TaobaoRdsDbDeleteAPIRequest.go | 66 + model/jst/TaobaoRdsDbDeleteAPIResponse.go | 27 + model/jst/TaobaoRdsDbDeleteResponse.go | 27 - model/jst/TaobaoRdsDbGetAPIRequest.go | 66 + model/jst/TaobaoRdsDbGetAPIResponse.go | 27 + model/jst/TaobaoRdsDbGetResponse.go | 27 - model/jst/TaobaoRdsDbGetdbAPIRequest.go | 66 + model/jst/TaobaoRdsDbGetdbAPIResponse.go | 27 + model/jst/TaobaoRdsDbGetdbResponse.go | 27 - ...oJstInteractiveActivityCreateAPIRequest.go | 94 + ...JstInteractiveActivityCreateAPIResponse.go | 27 + ...baoJstInteractiveActivityCreateResponse.go | 27 - ...aoJstInteractiveActivityQueryAPIRequest.go | 52 + ...oJstInteractiveActivityQueryAPIResponse.go | 27 + ...obaoJstInteractiveActivityQueryResponse.go | 27 - ...oJstInteractiveActivityUpdateAPIRequest.go | 94 + ...JstInteractiveActivityUpdateAPIResponse.go | 27 + ...baoJstInteractiveActivityUpdateResponse.go | 27 - ...baoJstInteractiveAssetsConfigAPIRequest.go | 66 + ...aoJstInteractiveAssetsConfigAPIResponse.go | 27 + ...aobaoJstInteractiveAssetsConfigResponse.go | 27 - ...eractiveAssetsConfiguredQueryAPIRequest.go | 52 + ...ractiveAssetsConfiguredQueryAPIResponse.go | 27 + ...nteractiveAssetsConfiguredQueryResponse.go | 27 - ...obaoJstInteractiveAssetsQueryAPIRequest.go | 52 + ...baoJstInteractiveAssetsQueryAPIResponse.go | 27 + ...TaobaoJstInteractiveAssetsQueryResponse.go | 27 - ...aoJstInteractivePointDecreaseAPIRequest.go | 66 + ...oJstInteractivePointDecreaseAPIResponse.go | 29 + ...obaoJstInteractivePointDecreaseResponse.go | 29 - ...aoJstInteractivePointIncreaseAPIRequest.go | 66 + ...oJstInteractivePointIncreaseAPIResponse.go | 29 + ...obaoJstInteractivePointIncreaseResponse.go | 29 - ...aobaoJstInteractivePointQueryAPIRequest.go | 38 + ...obaoJstInteractivePointQueryAPIResponse.go | 29 + .../TaobaoJstInteractivePointQueryResponse.go | 29 - ...TaobaoJstInteractiveTaskQueryAPIRequest.go | 38 + ...aobaoJstInteractiveTaskQueryAPIResponse.go | 29 + .../TaobaoJstInteractiveTaskQueryResponse.go | 29 - ...baoJstInteractiveTaskRegisterAPIRequest.go | 52 + ...aoJstInteractiveTaskRegisterAPIResponse.go | 27 + ...aobaoJstInteractiveTaskRegisterResponse.go | 27 - .../jstsecret/TaobaoJstSecretGetAPIRequest.go | 80 + .../TaobaoJstSecretGetAPIResponse.go | 27 + model/jstsecret/TaobaoJstSecretGetResponse.go | 27 - model/ju/TaobaoJuItemsSearchAPIRequest.go | 52 + model/ju/TaobaoJuItemsSearchAPIResponse.go | 27 + model/ju/TaobaoJuItemsSearchResponse.go | 27 - ...uirementOrdersOperationNotifyAPIRequest.go | 66 + ...irementOrdersOperationNotifyAPIResponse.go | 27 + ...equirementOrdersOperationNotifyResponse.go | 27 - ...quirementOrdersOperationNotifyResultDto.go | 13 + ...AlibabaJymRequirementsReceiveAPIRequest.go | 80 + ...libabaJymRequirementsReceiveAPIResponse.go | 27 + .../AlibabaJymRequirementsReceiveResponse.go | 27 - .../AlibabaJymRequirementsReceiveResultDto.go | 13 + ...emberRealnameVerifyWithoutuidAPIRequest.go | 66 + ...mberRealnameVerifyWithoutuidAPIResponse.go | 27 + ...mMemberRealnameVerifyWithoutuidResponse.go | 27 - ...MemberRealnameVerifyWithoutuidResultDto.go | 13 + .../AlibabaKbalgoAlscpoisGetAPIRequest.go | 66 + .../AlibabaKbalgoAlscpoisGetAPIResponse.go | 27 + .../AlibabaKbalgoAlscpoisGetResponse.go | 27 - ...AlibabaKclubKcGetcategorytreeAPIRequest.go | 66 + ...libabaKclubKcGetcategorytreeAPIResponse.go | 27 + .../AlibabaKclubKcGetcategorytreeResponse.go | 27 - model/kclub/AlibabaKclubKcQaGetAPIRequest.go | 80 + model/kclub/AlibabaKclubKcQaGetAPIResponse.go | 27 + model/kclub/AlibabaKclubKcQaGetResponse.go | 27 - .../kclub/AlibabaKclubKcQaSearchAPIRequest.go | 66 + .../AlibabaKclubKcQaSearchAPIResponse.go | 27 + .../AlibabaKclubKcQaSearchPageAPIRequest.go | 66 + .../AlibabaKclubKcQaSearchPageAPIResponse.go | 27 + .../AlibabaKclubKcQaSearchPageResponse.go | 27 - model/kclub/AlibabaKclubKcQaSearchResponse.go | 27 - .../AlibabaKclubKcQueryknowledgeAPIRequest.go | 66 + ...AlibabaKclubKcQueryknowledgeAPIResponse.go | 27 + .../AlibabaKclubKcQueryknowledgeResponse.go | 27 - ...ubeiMallCommonItemDetailQueryAPIRequest.go | 178 ++ ...beiMallCommonItemDetailQueryAPIResponse.go | 27 + ...KoubeiMallCommonItemDetailQueryResponse.go | 27 - ...KoubeiMallCommonItemShelfPageAPIRequest.go | 192 ++ ...oubeiMallCommonItemShelfPageAPIResponse.go | 27 + ...aoKoubeiMallCommonItemShelfPageResponse.go | 27 - ...llCommonItemSuperDiscountListAPIRequest.go | 164 ++ ...lCommonItemSuperDiscountListAPIResponse.go | 27 + ...MallCommonItemSuperDiscountListResponse.go | 27 - ...oKoubeiMallCommonMallAuthPageAPIRequest.go | 164 ++ ...KoubeiMallCommonMallAuthPageAPIResponse.go | 27 + ...baoKoubeiMallCommonMallAuthPageResponse.go | 27 - ...KoubeiMallCommonMallDetailGetAPIRequest.go | 150 ++ ...oubeiMallCommonMallDetailGetAPIResponse.go | 27 + ...aoKoubeiMallCommonMallDetailGetResponse.go | 27 - ...oKoubeiMallCommonMallNearListAPIRequest.go | 164 ++ ...KoubeiMallCommonMallNearListAPIResponse.go | 27 + ...baoKoubeiMallCommonMallNearListResponse.go | 27 - ...beiMallCommonStoreCommentPageAPIRequest.go | 192 ++ ...eiMallCommonStoreCommentPageAPIResponse.go | 27 + ...oubeiMallCommonStoreCommentPageResponse.go | 27 - ...beiMallCommonStoreDetailQueryAPIRequest.go | 164 ++ ...eiMallCommonStoreDetailQueryAPIResponse.go | 27 + ...oubeiMallCommonStoreDetailQueryResponse.go | 27 - ...llCommonStoreDisplayGoodsListAPIRequest.go | 164 ++ ...lCommonStoreDisplayGoodsListAPIResponse.go | 27 + ...MallCommonStoreDisplayGoodsListResponse.go | 27 - ...obaoKoubeiMallCommonStorePageAPIRequest.go | 234 +++ ...baoKoubeiMallCommonStorePageAPIResponse.go | 27 + ...TaobaoKoubeiMallCommonStorePageResponse.go | 27 - ...aobaoLarkIotOrderConfirmorderAPIRequest.go | 178 ++ ...obaoLarkIotOrderConfirmorderAPIResponse.go | 27 + .../TaobaoLarkIotOrderConfirmorderResponse.go | 27 - .../TaobaoLarkIotOrderGetcinemasAPIRequest.go | 52 + ...TaobaoLarkIotOrderGetcinemasAPIResponse.go | 27 + .../TaobaoLarkIotOrderGetcinemasResponse.go | 27 - ...aobaoLarkIotOrderGetgoodslistAPIRequest.go | 66 + ...obaoLarkIotOrderGetgoodslistAPIResponse.go | 27 + .../TaobaoLarkIotOrderGetgoodslistResponse.go | 27 - ...LarkPosBasedataGetworkstationAPIRequest.go | 66 + ...arkPosBasedataGetworkstationAPIResponse.go | 27 + ...aoLarkPosBasedataGetworkstationResponse.go | 27 - model/lbs/TaobaoLbsMessageUploadAPIRequest.go | 66 + .../lbs/TaobaoLbsMessageUploadAPIResponse.go | 31 + model/lbs/TaobaoLbsMessageUploadResponse.go | 31 - ...libabaLegalCaseCommonEnumdataAPIRequest.go | 66 + ...ibabaLegalCaseCommonEnumdataAPIResponse.go | 27 + .../AlibabaLegalCaseCommonEnumdataResponse.go | 27 - .../AlibabaLegalCaseCommonNoticeAPIRequest.go | 94 + ...AlibabaLegalCaseCommonNoticeAPIResponse.go | 33 + .../AlibabaLegalCaseCommonNoticeResponse.go | 33 - ...ibabaLegalCaseCourtTimeUpdateAPIRequest.go | 80 + ...babaLegalCaseCourtTimeUpdateAPIResponse.go | 27 + ...AlibabaLegalCaseCourtTimeUpdateResponse.go | 27 - ...ibabaLegalCaseEntrustCallbackAPIRequest.go | 66 + ...babaLegalCaseEntrustCallbackAPIResponse.go | 31 + ...AlibabaLegalCaseEntrustCallbackResponse.go | 31 - .../AlibabaLegalCaseEntrustGetAPIRequest.go | 52 + .../AlibabaLegalCaseEntrustGetAPIResponse.go | 27 + .../AlibabaLegalCaseEntrustGetResponse.go | 27 - ...abaLegalCaseMediateRecordSaveAPIRequest.go | 80 + ...baLegalCaseMediateRecordSaveAPIResponse.go | 27 + ...ibabaLegalCaseMediateRecordSaveResponse.go | 27 - ...baLegalCaseStandpointFeedbackAPIRequest.go | 52 + ...aLegalCaseStandpointFeedbackAPIResponse.go | 33 + ...babaLegalCaseStandpointFeedbackResponse.go | 33 - ...baLegalCaseStandpointQueryrefAPIRequest.go | 80 + ...aLegalCaseStandpointQueryrefAPIResponse.go | 27 + ...babaLegalCaseStandpointQueryrefResponse.go | 27 - ...lCaseStandpointSavestandpointAPIRequest.go | 108 + ...CaseStandpointSavestandpointAPIResponse.go | 33 + ...galCaseStandpointSavestandpointResponse.go | 33 - .../AlibabaLegalSuitFileUploadAPIRequest.go | 108 + .../AlibabaLegalSuitFileUploadAPIResponse.go | 33 + .../AlibabaLegalSuitFileUploadResponse.go | 33 - .../AlibabaLegalSuitCaseGetAPIRequest.go | 52 + .../AlibabaLegalSuitCaseGetAPIResponse.go | 27 + .../AlibabaLegalSuitCaseGetResponse.go | 27 - ...libabaLegalSuitCourtAfterPushAPIRequest.go | 52 + ...ibabaLegalSuitCourtAfterPushAPIResponse.go | 27 + .../AlibabaLegalSuitCourtAfterPushResponse.go | 27 - ...ibabaLegalSuitCourtBeforePushAPIRequest.go | 52 + ...babaLegalSuitCourtBeforePushAPIResponse.go | 27 + ...AlibabaLegalSuitCourtBeforePushResponse.go | 27 - ...ibabaLegalSuitCourtEntrustGetAPIRequest.go | 66 + ...babaLegalSuitCourtEntrustGetAPIResponse.go | 27 + ...AlibabaLegalSuitCourtEntrustGetResponse.go | 27 - ...ibabaLegalSuitCourtLawyerPushAPIRequest.go | 80 + ...babaLegalSuitCourtLawyerPushAPIResponse.go | 27 + ...AlibabaLegalSuitCourtLawyerPushResponse.go | 27 - ...AlibabaLegalSuitCourtOpenPushAPIRequest.go | 52 + ...libabaLegalSuitCourtOpenPushAPIResponse.go | 27 + .../AlibabaLegalSuitCourtOpenPushResponse.go | 27 - ...libabaLegalSuitDominationPushAPIRequest.go | 52 + ...ibabaLegalSuitDominationPushAPIResponse.go | 27 + .../AlibabaLegalSuitDominationPushResponse.go | 27 - .../AlibabaLegalSuitJudgementGetAPIRequest.go | 52 + ...AlibabaLegalSuitJudgementGetAPIResponse.go | 27 + .../AlibabaLegalSuitJudgementGetResponse.go | 27 - ...AlibabaLegalSuitJudgementPushAPIRequest.go | 52 + ...libabaLegalSuitJudgementPushAPIResponse.go | 27 + .../AlibabaLegalSuitJudgementPushResponse.go | 27 - .../TaobaoPlaceStoreRelationAddAPIRequest.go | 80 + .../TaobaoPlaceStoreRelationAddAPIResponse.go | 31 + .../TaobaoPlaceStoreRelationAddResponse.go | 31 - ...lihealthNrDeliveryHistorySaveAPIRequest.go | 52 + ...ihealthNrDeliveryHistorySaveAPIResponse.go | 27 + ...aAlihealthNrDeliveryHistorySaveResponse.go | 27 - ...babaAlinkMessageHistoryActionAPIRequest.go | 66 + ...abaAlinkMessageHistoryActionAPIResponse.go | 27 + ...libabaAlinkMessageHistoryActionResponse.go | 27 - ...abaAscpLogisticsConsignResendAPIRequest.go | 82 + ...baAscpLogisticsConsignResendAPIResponse.go | 29 + ...ibabaAscpLogisticsConsignResendResponse.go | 29 - ...babaAscpLogisticsConsignResendResultDto.go | 7 + ...ibabaAscpLogisticsOfflineSendAPIRequest.go | 122 ++ ...babaAscpLogisticsOfflineSendAPIResponse.go | 27 + ...AlibabaAscpLogisticsOfflineSendResponse.go | 27 - ...libabaAscpLogisticsOfflineSendResultDto.go | 7 + ...babaEleFengniaoCancelMerchantAPIRequest.go | 52 + ...abaEleFengniaoCancelMerchantAPIResponse.go | 27 + ...libabaEleFengniaoCancelMerchantResponse.go | 27 - ...eFengniaoCarrierCapacityQueryAPIRequest.go | 52 + ...FengniaoCarrierCapacityQueryAPIResponse.go | 27 + ...EleFengniaoCarrierCapacityQueryResponse.go | 27 - ...FengniaoCarrierdriverLocationAPIRequest.go | 66 + ...engniaoCarrierdriverLocationAPIResponse.go | 35 + ...leFengniaoCarrierdriverLocationResponse.go | 35 - ...gniaoChainstoreContractCancelAPIRequest.go | 52 + ...niaoChainstoreContractCancelAPIResponse.go | 27 + ...engniaoChainstoreContractCancelResponse.go | 27 - ...gniaoChainstoreContractChangeAPIRequest.go | 52 + ...niaoChainstoreContractChangeAPIResponse.go | 27 + ...engniaoChainstoreContractChangeResponse.go | 27 - ...baEleFengniaoChainstoreRangesAPIRequest.go | 80 + ...aEleFengniaoChainstoreRangesAPIResponse.go | 27 + ...babaEleFengniaoChainstoreRangesResponse.go | 27 - ...baEleFengniaoChainstoreUpdateAPIRequest.go | 52 + ...aEleFengniaoChainstoreUpdateAPIResponse.go | 27 + ...babaEleFengniaoChainstoreUpdateResponse.go | 27 - ...engniaoMerchantContractCancelAPIRequest.go | 52 + ...ngniaoMerchantContractCancelAPIResponse.go | 27 + ...eFengniaoMerchantContractCancelResponse.go | 27 - .../AlibabaEleFengniaoOrderPushAPIRequest.go | 52 + .../AlibabaEleFengniaoOrderPushAPIResponse.go | 27 + .../AlibabaEleFengniaoOrderPushResponse.go | 27 - .../AlibabaEleFengniaoOrderQueryAPIRequest.go | 52 + ...AlibabaEleFengniaoOrderQueryAPIResponse.go | 37 + .../AlibabaEleFengniaoOrderQueryResponse.go | 37 - ...leFengniaoServicePackageQueryAPIRequest.go | 52 + ...eFengniaoServicePackageQueryAPIResponse.go | 27 + ...aEleFengniaoServicePackageQueryResponse.go | 27 - ...EleFengniaoShippingorderEventAPIRequest.go | 66 + ...leFengniaoShippingorderEventAPIResponse.go | 33 + ...baEleFengniaoShippingorderEventResponse.go | 33 - ...AlibabaEleFengniaoTradeUpdateAPIRequest.go | 52 + ...libabaEleFengniaoTradeUpdateAPIResponse.go | 29 + .../AlibabaEleFengniaoTradeUpdateResponse.go | 29 - ...ibabaEleFengniaoUserTimeQueryAPIRequest.go | 52 + ...babaEleFengniaoUserTimeQueryAPIResponse.go | 29 + ...AlibabaEleFengniaoUserTimeQueryResponse.go | 29 - ...ibabaTclsFulfillQaOrderCreateAPIRequest.go | 94 + ...babaTclsFulfillQaOrderCreateAPIResponse.go | 35 + ...AlibabaTclsFulfillQaOrderCreateResponse.go | 35 - ...ssWorkplatformBiztypeQueryallAPIRequest.go | 66 + ...sWorkplatformBiztypeQueryallAPIResponse.go | 33 + ...bossWorkplatformBiztypeQueryallResponse.go | 33 - ...sWorkplatformBiztypeQuerybyidAPIRequest.go | 52 + ...WorkplatformBiztypeQuerybyidAPIResponse.go | 27 + ...ossWorkplatformBiztypeQuerybyidResponse.go | 27 - ...atformLogisticsIscainiaoorderAPIRequest.go | 52 + ...tformLogisticsIscainiaoorderAPIResponse.go | 33 + ...platformLogisticsIscainiaoorderResponse.go | 33 - ...ossWorkplatformOperationReplyAPIRequest.go | 164 ++ ...ssWorkplatformOperationReplyAPIResponse.go | 27 + ...CbossWorkplatformOperationReplyResponse.go | 27 - ...ssWorkplatformWorkorderCreateAPIRequest.go | 248 +++ ...sWorkplatformWorkorderCreateAPIResponse.go | 27 + ...bossWorkplatformWorkorderCreateResponse.go | 27 - ...latformWorkorderProcessNotifyAPIRequest.go | 52 + ...atformWorkorderProcessNotifyAPIResponse.go | 27 + ...kplatformWorkorderProcessNotifyResponse.go | 27 - ...rkplatformWorkorderTaskNotifyAPIRequest.go | 52 + ...kplatformWorkorderTaskNotifyAPIResponse.go | 27 + ...WorkplatformWorkorderTaskNotifyResponse.go | 27 - ...gisticsCpDeliveryAgingPredictAPIRequest.go | 184 ++ ...isticsCpDeliveryAgingPredictAPIResponse.go | 33 + ...LogisticsCpDeliveryAgingPredictResponse.go | 33 - ...LogisticsDeliveryAgingPredictAPIRequest.go | 168 ++ ...ogisticsDeliveryAgingPredictAPIResponse.go | 31 + ...taLogisticsDeliveryAgingPredictResponse.go | 31 - .../CainiaoMemberCourierCpresignAPIRequest.go | 52 + ...CainiaoMemberCourierCpresignAPIResponse.go | 33 + .../CainiaoMemberCourierCpresignResponse.go | 33 - .../CainiaoReachableBatchjudgeAPIRequest.go | 80 + .../CainiaoReachableBatchjudgeAPIResponse.go | 27 + .../CainiaoReachableBatchjudgeResponse.go | 27 - model/logistic/TaobaoAreasGetAPIRequest.go | 53 + model/logistic/TaobaoAreasGetAPIResponse.go | 28 + model/logistic/TaobaoAreasGetResponse.go | 28 - .../TaobaoDeliveryTemplateAddAPIRequest.go | 178 ++ .../TaobaoDeliveryTemplateAddAPIResponse.go | 27 + .../TaobaoDeliveryTemplateAddResponse.go | 27 - .../TaobaoDeliveryTemplateDeleteAPIRequest.go | 52 + ...TaobaoDeliveryTemplateDeleteAPIResponse.go | 27 + .../TaobaoDeliveryTemplateDeleteResponse.go | 27 - .../TaobaoDeliveryTemplateGetAPIRequest.go | 80 + .../TaobaoDeliveryTemplateGetAPIResponse.go | 29 + .../TaobaoDeliveryTemplateGetResponse.go | 29 - .../TaobaoDeliveryTemplateUpdateAPIRequest.go | 164 ++ ...TaobaoDeliveryTemplateUpdateAPIResponse.go | 27 + .../TaobaoDeliveryTemplateUpdateResponse.go | 27 - .../TaobaoDeliveryTemplatesGetAPIRequest.go | 52 + .../TaobaoDeliveryTemplatesGetAPIResponse.go | 29 + .../TaobaoDeliveryTemplatesGetResponse.go | 29 - .../TaobaoLogisticsAddressAddAPIRequest.go | 206 ++ .../TaobaoLogisticsAddressAddAPIResponse.go | 27 + .../TaobaoLogisticsAddressAddResponse.go | 27 - .../TaobaoLogisticsAddressModifyAPIRequest.go | 220 ++ ...TaobaoLogisticsAddressModifyAPIResponse.go | 27 + .../TaobaoLogisticsAddressModifyResponse.go | 27 - ...obaoLogisticsAddressReachableAPIRequest.go | 109 + ...baoLogisticsAddressReachableAPIResponse.go | 28 + ...TaobaoLogisticsAddressReachableResponse.go | 28 - ...sticsAddressReachablebatchGetAPIRequest.go | 52 + ...ticsAddressReachablebatchGetAPIResponse.go | 27 + ...gisticsAddressReachablebatchGetResponse.go | 27 - .../TaobaoLogisticsAddressRemoveAPIRequest.go | 52 + ...TaobaoLogisticsAddressRemoveAPIResponse.go | 27 + .../TaobaoLogisticsAddressRemoveResponse.go | 27 - .../TaobaoLogisticsAddressSearchAPIRequest.go | 52 + ...TaobaoLogisticsAddressSearchAPIResponse.go | 27 + .../TaobaoLogisticsAddressSearchResponse.go | 27 - .../TaobaoLogisticsCompaniesGetAPIRequest.go | 80 + .../TaobaoLogisticsCompaniesGetAPIResponse.go | 27 + .../TaobaoLogisticsCompaniesGetResponse.go | 27 - ...ticsConsignOrderCreateandsendAPIRequest.go | 416 ++++ ...icsConsignOrderCreateandsendAPIResponse.go | 31 + ...isticsConsignOrderCreateandsendResponse.go | 31 - .../TaobaoLogisticsConsignResendAPIRequest.go | 136 ++ ...TaobaoLogisticsConsignResendAPIResponse.go | 27 + .../TaobaoLogisticsConsignResendResponse.go | 27 - ...obaoLogisticsConsignTcConfirmAPIRequest.go | 138 ++ ...baoLogisticsConsignTcConfirmAPIResponse.go | 33 + ...TaobaoLogisticsConsignTcConfirmResponse.go | 33 - .../TaobaoLogisticsDummySendAPIRequest.go | 80 + .../TaobaoLogisticsDummySendAPIResponse.go | 27 + .../TaobaoLogisticsDummySendResponse.go | 27 - ...LogisticsExpressModifyAppointAPIRequest.go | 52 + ...ogisticsExpressModifyAppointAPIResponse.go | 27 + ...aoLogisticsExpressModifyAppointResponse.go | 27 - .../TaobaoLogisticsOfflineSendAPIRequest.go | 164 ++ .../TaobaoLogisticsOfflineSendAPIResponse.go | 27 + .../TaobaoLogisticsOfflineSendResponse.go | 27 - .../TaobaoLogisticsOnlineCancelAPIRequest.go | 52 + .../TaobaoLogisticsOnlineCancelAPIResponse.go | 31 + .../TaobaoLogisticsOnlineCancelResponse.go | 31 - .../TaobaoLogisticsOnlineConfirmAPIRequest.go | 109 + ...TaobaoLogisticsOnlineConfirmAPIResponse.go | 28 + .../TaobaoLogisticsOnlineConfirmResponse.go | 28 - .../TaobaoLogisticsOnlineSendAPIRequest.go | 164 ++ .../TaobaoLogisticsOnlineSendAPIResponse.go | 27 + .../TaobaoLogisticsOnlineSendResponse.go | 27 - .../TaobaoLogisticsOrderCreateAPIRequest.go | 178 ++ .../TaobaoLogisticsOrderCreateAPIResponse.go | 27 + .../TaobaoLogisticsOrderCreateResponse.go | 27 - ...ogisticsOrderShengxianConfirmAPIRequest.go | 150 ++ ...gisticsOrderShengxianConfirmAPIResponse.go | 29 + ...oLogisticsOrderShengxianConfirmResponse.go | 29 - ...aobaoLogisticsOrdersDetailGetAPIRequest.go | 206 ++ ...obaoLogisticsOrdersDetailGetAPIResponse.go | 29 + .../TaobaoLogisticsOrdersDetailGetResponse.go | 29 - .../TaobaoLogisticsOrdersGetAPIRequest.go | 206 ++ .../TaobaoLogisticsOrdersGetAPIResponse.go | 29 + .../TaobaoLogisticsOrdersGetResponse.go | 29 - .../TaobaoLogisticsPartnersGetAPIRequest.go | 108 + .../TaobaoLogisticsPartnersGetAPIResponse.go | 27 + .../TaobaoLogisticsPartnersGetResponse.go | 27 - .../TaobaoLogisticsTraceSearchAPIRequest.go | 80 + .../TaobaoLogisticsTraceSearchAPIResponse.go | 35 + .../TaobaoLogisticsTraceSearchResponse.go | 35 - ...baoNextoneLogisticsSignUpdateAPIRequest.go | 66 + ...aoNextoneLogisticsSignUpdateAPIResponse.go | 27 + ...aobaoNextoneLogisticsSignUpdateResponse.go | 27 - ...xtoneLogisticsWarehouseUpdateAPIRequest.go | 66 + ...toneLogisticsWarehouseUpdateAPIResponse.go | 33 + ...NextoneLogisticsWarehouseUpdateResponse.go | 33 - ...rehouseResendLogisticsMsgPostAPIRequest.go | 52 + ...ehouseResendLogisticsMsgPostAPIResponse.go | 27 + ...WarehouseResendLogisticsMsgPostResponse.go | 27 - ...ligeniusWarehouseResendUpdateAPIRequest.go | 52 + ...igeniusWarehouseResendUpdateAPIResponse.go | 27 + ...cAligeniusWarehouseResendUpdateResponse.go | 27 - ...usWarehouseReverseEventUpdateAPIRequest.go | 52 + ...sWarehouseReverseEventUpdateAPIResponse.go | 27 + ...niusWarehouseReverseEventUpdateResponse.go | 27 - ...niusWarehouseReverseUploadingAPIRequest.go | 52 + ...iusWarehouseReverseUploadingAPIResponse.go | 31 + ...geniusWarehouseReverseUploadingResponse.go | 31 - ...lbImportThreeplOfflineConsignAPIRequest.go | 108 + ...bImportThreeplOfflineConsignAPIResponse.go | 27 + ...oWlbImportThreeplOfflineConsignResponse.go | 27 - ...aoWlbImportThreeplResourceGetAPIRequest.go | 80 + ...oWlbImportThreeplResourceGetAPIResponse.go | 27 + ...obaoWlbImportThreeplResourceGetResponse.go | 27 - .../TaobaoWlbOrderJzConsignAPIRequest.go | 136 ++ .../TaobaoWlbOrderJzConsignAPIResponse.go | 31 + .../TaobaoWlbOrderJzConsignResponse.go | 31 - .../TaobaoWlbOrderJzQueryAPIRequest.go | 94 + .../TaobaoWlbOrderJzQueryAPIResponse.go | 33 + .../logistic/TaobaoWlbOrderJzQueryResponse.go | 33 - .../TaobaoWlbStoresBaseinfoGetAPIRequest.go | 52 + .../TaobaoWlbStoresBaseinfoGetAPIResponse.go | 29 + .../TaobaoWlbStoresBaseinfoGetResponse.go | 29 - ...obaoWmsOrderWarehouseRouteGetAPIRequest.go | 52 + ...baoWmsOrderWarehouseRouteGetAPIResponse.go | 35 + ...TaobaoWmsOrderWarehouseRouteGetResponse.go | 35 - ...sticNetworkResourceGroupQueryAPIRequest.go | 52 + ...ticNetworkResourceGroupQueryAPIResponse.go | 27 + ...gisticNetworkResourceGroupQueryResponse.go | 27 - ...arehouseDeliveryRelationQueryAPIRequest.go | 52 + ...rehouseDeliveryRelationQueryAPIResponse.go | 27 + ...kWarehouseDeliveryRelationQueryResponse.go | 27 - ...ouseResourceRelationQueryFromAPIRequest.go | 52 + ...useResourceRelationQueryFromAPIResponse.go | 27 + ...ehouseResourceRelationQueryFromResponse.go | 27 - ...eResourceRelationQueryToCodesAPIRequest.go | 52 + ...ResourceRelationQueryToCodesAPIResponse.go | 27 + ...useResourceRelationQueryToCodesResponse.go | 27 - model/lstbm/AlibabaLstBmStoreAddAPIRequest.go | 52 + .../lstbm/AlibabaLstBmStoreAddAPIResponse.go | 27 + model/lstbm/AlibabaLstBmStoreAddResponse.go | 27 - .../AlibabaLstBmStoreEmpSaveAPIRequest.go | 66 + .../AlibabaLstBmStoreEmpSaveAPIResponse.go | 27 + .../lstbm/AlibabaLstBmStoreEmpSaveResponse.go | 27 - .../AlibabaLstBmStoreUpdateAPIRequest.go | 52 + .../AlibabaLstBmStoreUpdateAPIResponse.go | 27 + .../lstbm/AlibabaLstBmStoreUpdateResponse.go | 27 - ...abaLstTradeOrderFundbillQueryAPIRequest.go | 94 + ...baLstTradeOrderFundbillQueryAPIResponse.go | 27 + ...ibabaLstTradeOrderFundbillQueryResponse.go | 27 - ...eSellerOrderFundbillListQueryAPIRequest.go | 80 + ...SellerOrderFundbillListQueryAPIResponse.go | 27 + ...adeSellerOrderFundbillListQueryResponse.go | 27 - .../AlibabaLstIcItemInfoQueryAPIRequest.go | 52 + .../AlibabaLstIcItemInfoQueryAPIResponse.go | 27 + .../AlibabaLstIcItemInfoQueryResponse.go | 27 - ...babaLstLogisticsSendinfoQueryAPIRequest.go | 52 + ...abaLstLogisticsSendinfoQueryAPIResponse.go | 27 + ...libabaLstLogisticsSendinfoQueryResponse.go | 27 - ...LogisticsThirdpartCompanyListAPIRequest.go | 52 + ...ogisticsThirdpartCompanyListAPIResponse.go | 27 + ...stLogisticsThirdpartCompanyListResponse.go | 27 - ...babaLstLogisticsThirdpartSendAPIRequest.go | 52 + ...abaLstLogisticsThirdpartSendAPIResponse.go | 27 + ...libabaLstLogisticsThirdpartSendResponse.go | 27 - ...AlibabaLstLogisticsTraceQueryAPIRequest.go | 52 + ...libabaLstLogisticsTraceQueryAPIResponse.go | 27 + .../AlibabaLstLogisticsTraceQueryResponse.go | 27 - .../AlibabaLstShiporderCancelAPIRequest.go | 80 + .../AlibabaLstShiporderCancelAPIResponse.go | 27 + .../AlibabaLstShiporderCancelResponse.go | 27 - .../AlibabaLstShiporderCreateAPIRequest.go | 52 + .../AlibabaLstShiporderCreateAPIResponse.go | 27 + .../AlibabaLstShiporderCreateResponse.go | 27 - .../AlibabaLstShiporderQueryAPIRequest.go | 66 + .../AlibabaLstShiporderQueryAPIResponse.go | 27 + .../AlibabaLstShiporderQueryResponse.go | 27 - ...libabaLstLogisticsNotraceSendAPIRequest.go | 52 + ...ibabaLstLogisticsNotraceSendAPIResponse.go | 27 + .../AlibabaLstLogisticsNotraceSendResponse.go | 27 - ...TradeSellerOfflineOrderCancelAPIRequest.go | 52 + ...radeSellerOfflineOrderCancelAPIResponse.go | 27 + ...stTradeSellerOfflineOrderCancelResponse.go | 27 - ...tTradeSellerOfflineOrderQueryAPIRequest.go | 52 + ...TradeSellerOfflineOrderQueryAPIResponse.go | 27 + ...LstTradeSellerOfflineOrderQueryResponse.go | 27 - ...TradeSellerOfflineOrderUploadAPIRequest.go | 52 + ...radeSellerOfflineOrderUploadAPIResponse.go | 27 + ...stTradeSellerOfflineOrderUploadResponse.go | 27 - ...abaLstMarketingQuerybyorderidAPIRequest.go | 66 + ...baLstMarketingQuerybyorderidAPIResponse.go | 27 + ...ibabaLstMarketingQuerybyorderidResponse.go | 27 - ...babaLstMarketingQuerybyorderidResultDto.go | 13 + ...tPosOpenAccountCheckissettledAPIRequest.go | 52 + ...PosOpenAccountCheckissettledAPIResponse.go | 27 + ...LstPosOpenAccountCheckissettledResponse.go | 27 - ...stPosOpenAccountCheckissettledResultDto.go | 13 + ...PosOpenCashierSynccashierdataAPIRequest.go | 66 + ...osOpenCashierSynccashierdataAPIResponse.go | 27 + ...stPosOpenCashierSynccashierdataResponse.go | 27 - ...tPosOpenCashierSynccashierdataResultDto.go | 13 + ...PosOpenGoodsGetgoodsbybarcodeAPIRequest.go | 52 + ...osOpenGoodsGetgoodsbybarcodeAPIResponse.go | 27 + ...stPosOpenGoodsGetgoodsbybarcodeResponse.go | 27 - ...tPosOpenGoodsGetgoodsbybarcodeResultDto.go | 13 + ...tPosOpenGoodsGetgoodsbypagingAPIRequest.go | 66 + ...PosOpenGoodsGetgoodsbypagingAPIResponse.go | 27 + ...LstPosOpenGoodsGetgoodsbypagingResponse.go | 27 - ...stPosOpenGoodsGetgoodsbypagingResultDto.go | 13 + ...aLstPosOpenGoodsSyncgoodsdataAPIRequest.go | 66 + ...LstPosOpenGoodsSyncgoodsdataAPIResponse.go | 27 + ...abaLstPosOpenGoodsSyncgoodsdataResponse.go | 27 - ...baLstPosOpenGoodsSyncgoodsdataResultDto.go | 13 + ...OpenInventoryGetinventorydataAPIRequest.go | 66 + ...penInventoryGetinventorydataAPIResponse.go | 27 + ...osOpenInventoryGetinventorydataResponse.go | 27 - ...sOpenInventoryGetinventorydataResultDto.go | 13 + ...penInventorySyncinventorydataAPIRequest.go | 66 + ...enInventorySyncinventorydataAPIResponse.go | 27 + ...sOpenInventorySyncinventorydataResponse.go | 27 - ...OpenInventorySyncinventorydataResultDto.go | 13 + .../AlibabaLstSpeakerConfigureAPIRequest.go | 80 + .../AlibabaLstSpeakerConfigureAPIResponse.go | 33 + ...tSpeakerConfigureAdjustvolumeAPIRequest.go | 80 + ...SpeakerConfigureAdjustvolumeAPIResponse.go | 33 + ...LstSpeakerConfigureAdjustvolumeResponse.go | 33 - .../AlibabaLstSpeakerConfigureResponse.go | 33 - ...LstSpeakerConfigureSetpaytimeAPIRequest.go | 108 + ...stSpeakerConfigureSetpaytimeAPIResponse.go | 33 + ...baLstSpeakerConfigureSetpaytimeResponse.go | 33 - ...aLstSpeakerConfigureSyncaudioAPIRequest.go | 66 + ...LstSpeakerConfigureSyncaudioAPIResponse.go | 33 + ...abaLstSpeakerConfigureSyncaudioResponse.go | 33 - ...eakerConfigureSyncaudioadvertAPIRequest.go | 66 + ...akerConfigureSyncaudioadvertAPIResponse.go | 33 + ...SpeakerConfigureSyncaudioadvertResponse.go | 33 - .../AlibabaLstSpeakerFileUploadAPIRequest.go | 94 + .../AlibabaLstSpeakerFileUploadAPIResponse.go | 27 + .../AlibabaLstSpeakerFileUploadResponse.go | 27 - .../AlibabaLstSpeakerFileUploadResultDto.go | 13 + .../AlibabaLstSpeakerStatusGetAPIRequest.go | 52 + .../AlibabaLstSpeakerStatusGetAPIResponse.go | 27 + .../AlibabaLstSpeakerStatusGetResponse.go | 27 - .../AlibabaLstSpeakerStatusGetResultDto.go | 13 + .../AlibabaLstNicetuanOrderSaveAPIRequest.go | 52 + .../AlibabaLstNicetuanOrderSaveAPIResponse.go | 27 + .../AlibabaLstNicetuanOrderSaveResponse.go | 27 - ...radeFastrefundGoodsstatusSyncAPIRequest.go | 80 + ...adeFastrefundGoodsstatusSyncAPIResponse.go | 27 + ...tTradeFastrefundGoodsstatusSyncResponse.go | 27 - .../AlibabaLstTradeOrderGetAPIRequest.go | 66 + .../AlibabaLstTradeOrderGetAPIResponse.go | 27 + .../AlibabaLstTradeOrderGetResponse.go | 27 - .../AlibabaLstTradeOrderGetResultDto.go | 13 + ...ibabaLstTradeOrderQuerychangeAPIRequest.go | 52 + ...babaLstTradeOrderQuerychangeAPIResponse.go | 27 + ...AlibabaLstTradeOrderQuerychangeResponse.go | 27 - ...aLstTradeOrderRefundListQueryAPIRequest.go | 52 + ...LstTradeOrderRefundListQueryAPIResponse.go | 33 + ...abaLstTradeOrderRefundListQueryResponse.go | 33 - ...AlibabaLstTradeRefundOrderGetAPIRequest.go | 66 + ...libabaLstTradeRefundOrderGetAPIResponse.go | 35 + .../AlibabaLstTradeRefundOrderGetResponse.go | 35 - ...stTradeSellerOrderDetailQueryAPIRequest.go | 52 + ...tTradeSellerOrderDetailQueryAPIResponse.go | 27 + ...aLstTradeSellerOrderDetailQueryResponse.go | 27 - ...LstTradeSellerOrderDetailQueryResultDto.go | 13 + ...aLstTradeSellerOrderListQueryAPIRequest.go | 52 + ...LstTradeSellerOrderListQueryAPIResponse.go | 27 + ...abaLstTradeSellerOrderListQueryResponse.go | 27 - ...AlibabaLstTradeShiporderQueryAPIRequest.go | 52 + ...libabaLstTradeShiporderQueryAPIResponse.go | 27 + .../AlibabaLstTradeShiporderQueryResponse.go | 27 - ...ibabaLstVendingCargospaceSaveAPIRequest.go | 52 + ...babaLstVendingCargospaceSaveAPIResponse.go | 27 + ...AlibabaLstVendingCargospaceSaveResponse.go | 27 - ...libabaLstVendingCargospaceSaveResultDto.go | 11 + ...ibabaLstVendingEquipmentQueryAPIRequest.go | 52 + ...babaLstVendingEquipmentQueryAPIResponse.go | 27 + ...AlibabaLstVendingEquipmentQueryResponse.go | 27 - ...libabaLstVendingEquipmentQueryResultDto.go | 13 + .../AlibabaLstVendingGoodsSaveAPIRequest.go | 52 + .../AlibabaLstVendingGoodsSaveAPIResponse.go | 27 + .../AlibabaLstVendingGoodsSaveResponse.go | 27 - .../AlibabaLstVendingGoodsSaveResultDto.go | 11 + .../AlibabaLstVendingOrderUpdateAPIRequest.go | 52 + ...AlibabaLstVendingOrderUpdateAPIResponse.go | 33 + .../AlibabaLstVendingOrderUpdateResponse.go | 33 - ...abaLstVendingShippingCallbackAPIRequest.go | 108 + ...baLstVendingShippingCallbackAPIResponse.go | 27 + ...ibabaLstVendingShippingCallbackResponse.go | 27 - ...ibabaLstVendingTradeflowQueryAPIRequest.go | 52 + ...babaLstVendingTradeflowQueryAPIResponse.go | 27 + ...AlibabaLstVendingTradeflowQueryResponse.go | 27 - ...libabaLstVendingTradeflowQueryResultDto.go | 13 + ...libabaLstVendingTradeflowSaveAPIRequest.go | 52 + ...ibabaLstVendingTradeflowSaveAPIResponse.go | 27 + .../AlibabaLstVendingTradeflowSaveResponse.go | 27 - ...AlibabaLstVendingTradeflowSaveResultDto.go | 11 + .../AlibabaLstVendngImageUploadAPIRequest.go | 52 + .../AlibabaLstVendngImageUploadAPIResponse.go | 27 + .../AlibabaLstVendngImageUploadResponse.go | 27 - .../AlibabaLstVendngImageUploadResultDto.go | 13 + ...tBranddatashareStockdataQueryAPIRequest.go | 52 + ...BranddatashareStockdataQueryAPIResponse.go | 27 + ...LstBranddatashareStockdataQueryResponse.go | 27 - ...nddatashareSuppliersListQueryAPIRequest.go | 52 + ...ddatashareSuppliersListQueryAPIResponse.go | 27 + ...randdatashareSuppliersListQueryResponse.go | 27 - .../AlibabaLstIcStockItemsUpdateAPIRequest.go | 52 + ...AlibabaLstIcStockItemsUpdateAPIResponse.go | 27 + .../AlibabaLstIcStockItemsUpdateResponse.go | 27 - ...aLstTradeSellerWarehouseQueryAPIRequest.go | 52 + ...LstTradeSellerWarehouseQueryAPIResponse.go | 27 + ...abaLstTradeSellerWarehouseQueryResponse.go | 27 - .../TaobaoMaQrcodeCommonCreateAPIRequest.go | 150 ++ .../TaobaoMaQrcodeCommonCreateAPIResponse.go | 29 + .../ma/TaobaoMaQrcodeCommonCreateResponse.go | 29 - .../ma/TaobaoWirelessXcodeCreateAPIRequest.go | 80 + .../TaobaoWirelessXcodeCreateAPIResponse.go | 27 + model/ma/TaobaoWirelessXcodeCreateResponse.go | 27 - ...ixDistributionCmbParamencryptAPIRequest.go | 52 + ...xDistributionCmbParamencryptAPIResponse.go | 27 + ...itixDistributionCmbParamencryptResponse.go | 27 - ...DistributionCmbQuerypayresultAPIRequest.go | 52 + ...istributionCmbQuerypayresultAPIResponse.go | 27 + ...ixDistributionCmbQuerypayresultResponse.go | 27 - ...DistributionDeliveryCalculateAPIRequest.go | 52 + ...istributionDeliveryCalculateAPIResponse.go | 27 + ...ixDistributionDeliveryCalculateResponse.go | 27 - ...itixDistributionDeliveryQueryAPIRequest.go | 52 + ...tixDistributionDeliveryQueryAPIResponse.go | 27 + ...MaitixDistributionDeliveryQueryResponse.go | 27 - ...istributionExchangepointQueryAPIRequest.go | 52 + ...stributionExchangepointQueryAPIResponse.go | 27 + ...xDistributionExchangepointQueryResponse.go | 27 - ...aitixEticketDistributionQueryAPIRequest.go | 52 + ...itixEticketDistributionQueryAPIResponse.go | 27 + ...iMaitixEticketDistributionQueryResponse.go | 27 - ...OpengatewayPerformStatusQueryAPIRequest.go | 52 + ...pengatewayPerformStatusQueryAPIResponse.go | 27 + ...ixOpengatewayPerformStatusQueryResponse.go | 27 - ...OpengatewayProjectStatusQueryAPIRequest.go | 52 + ...pengatewayProjectStatusQueryAPIResponse.go | 27 + ...ixOpengatewayProjectStatusQueryResponse.go | 27 - ...ngatewayTicketItemStatusQueryAPIRequest.go | 52 + ...gatewayTicketItemStatusQueryAPIResponse.go | 27 + ...pengatewayTicketItemStatusQueryResponse.go | 27 - ...AlibabaDamaiMaitixOrderCancelAPIRequest.go | 52 + ...libabaDamaiMaitixOrderCancelAPIResponse.go | 27 + .../AlibabaDamaiMaitixOrderCancelResponse.go | 27 - ...libabaDamaiMaitixOrderConfirmAPIRequest.go | 52 + ...ibabaDamaiMaitixOrderConfirmAPIResponse.go | 27 + .../AlibabaDamaiMaitixOrderConfirmResponse.go | 27 - ...aDamaiMaitixOrderDirectrefundAPIRequest.go | 52 + ...DamaiMaitixOrderDirectrefundAPIResponse.go | 27 + ...abaDamaiMaitixOrderDirectrefundResponse.go | 27 - ...MaitixOrderDistributionCreateAPIRequest.go | 52 + ...aitixOrderDistributionCreateAPIResponse.go | 27 + ...aiMaitixOrderDistributionCreateResponse.go | 27 - .../AlibabaDamaiMaitixOrderQueryAPIRequest.go | 52 + ...AlibabaDamaiMaitixOrderQueryAPIResponse.go | 27 + .../AlibabaDamaiMaitixOrderQueryResponse.go | 27 - ...rojectDistributionDetailQueryAPIRequest.go | 52 + ...ojectDistributionDetailQueryAPIResponse.go | 27 + ...xProjectDistributionDetailQueryResponse.go | 27 - ...aitixProjectDistributionQueryAPIRequest.go | 52 + ...itixProjectDistributionQueryAPIResponse.go | 27 + ...iMaitixProjectDistributionQueryResponse.go | 27 - ...rojectDistributionQuerybypageAPIRequest.go | 52 + ...ojectDistributionQuerybypageAPIResponse.go | 27 + ...xProjectDistributionQuerybypageResponse.go | 27 - ...xProjectDistributionQuerylistAPIRequest.go | 38 + ...ProjectDistributionQuerylistAPIResponse.go | 27 + ...tixProjectDistributionQuerylistResponse.go | 27 - ...ibabaDamaiMaitixSeatInfoQueryAPIRequest.go | 52 + ...babaDamaiMaitixSeatInfoQueryAPIResponse.go | 27 + ...AlibabaDamaiMaitixSeatInfoQueryResponse.go | 27 - ...babaDamaiMaitixSeatTokenQueryAPIRequest.go | 94 + ...abaDamaiMaitixSeatTokenQueryAPIResponse.go | 27 + ...libabaDamaiMaitixSeatTokenQueryResponse.go | 27 - .../AliyunUnimktTaskChargeLaunchAPIRequest.go | 108 + ...AliyunUnimktTaskChargeLaunchAPIResponse.go | 33 + .../AliyunUnimktTaskChargeLaunchResponse.go | 33 - .../mc/TmallMcDeviceCircleCheckAPIRequest.go | 66 + .../mc/TmallMcDeviceCircleCheckAPIResponse.go | 27 + model/mc/TmallMcDeviceCircleCheckResponse.go | 27 - model/mc/TmallMcRecordOrderSyncAPIRequest.go | 122 ++ model/mc/TmallMcRecordOrderSyncAPIResponse.go | 27 + model/mc/TmallMcRecordOrderSyncResponse.go | 27 - model/mc/TmallMcTaskChargeLaunchAPIRequest.go | 108 + .../mc/TmallMcTaskChargeLaunchAPIResponse.go | 27 + model/mc/TmallMcTaskChargeLaunchResponse.go | 27 - ...aobaoInteractiveListGetbyuserAPIRequest.go | 66 + ...obaoInteractiveListGetbyuserAPIResponse.go | 27 + .../TaobaoInteractiveListGetbyuserResponse.go | 27 - model/media/TaobaoMediaFileAddAPIRequest.go | 108 + model/media/TaobaoMediaFileAddAPIResponse.go | 27 + model/media/TaobaoMediaFileAddResponse.go | 27 - model/media/TaobaoMediaVideoListAPIRequest.go | 52 + .../media/TaobaoMediaVideoListAPIResponse.go | 27 + model/media/TaobaoMediaVideoListResponse.go | 27 - ...aobaoMiniappCloudPictureTokenAPIRequest.go | 59 + ...obaoMiniappCloudPictureTokenAPIResponse.go | 34 + .../TaobaoMiniappCloudPictureTokenResponse.go | 34 - .../TaobaoPictureCategoryAddAPIRequest.go | 66 + .../TaobaoPictureCategoryAddAPIResponse.go | 27 + .../media/TaobaoPictureCategoryAddResponse.go | 27 - .../TaobaoPictureCategoryGetAPIRequest.go | 108 + .../TaobaoPictureCategoryGetAPIResponse.go | 27 + .../media/TaobaoPictureCategoryGetResponse.go | 27 - .../TaobaoPictureCategoryUpdateAPIRequest.go | 80 + .../TaobaoPictureCategoryUpdateAPIResponse.go | 27 + .../TaobaoPictureCategoryUpdateResponse.go | 27 - .../TaobaoPictureChangecategoryAPIRequest.go | 66 + .../TaobaoPictureChangecategoryAPIResponse.go | 27 + .../TaobaoPictureChangecategoryResponse.go | 27 - model/media/TaobaoPictureDeleteAPIRequest.go | 52 + model/media/TaobaoPictureDeleteAPIResponse.go | 27 + model/media/TaobaoPictureDeleteResponse.go | 27 - model/media/TaobaoPictureGetAPIRequest.go | 220 ++ model/media/TaobaoPictureGetAPIResponse.go | 27 + model/media/TaobaoPictureGetResponse.go | 27 - .../TaobaoPictureIsreferencedGetAPIRequest.go | 52 + ...TaobaoPictureIsreferencedGetAPIResponse.go | 27 + .../TaobaoPictureIsreferencedGetResponse.go | 27 - .../TaobaoPicturePicturesCountAPIRequest.go | 150 ++ .../TaobaoPicturePicturesCountAPIResponse.go | 27 + .../TaobaoPicturePicturesCountResponse.go | 27 - .../TaobaoPicturePicturesGetAPIRequest.go | 220 ++ .../TaobaoPicturePicturesGetAPIResponse.go | 27 + .../media/TaobaoPicturePicturesGetResponse.go | 27 - model/media/TaobaoPictureReplaceAPIRequest.go | 66 + .../media/TaobaoPictureReplaceAPIResponse.go | 27 + model/media/TaobaoPictureReplaceResponse.go | 27 - model/media/TaobaoPictureUpdateAPIRequest.go | 66 + model/media/TaobaoPictureUpdateAPIResponse.go | 27 + model/media/TaobaoPictureUpdateResponse.go | 27 - model/media/TaobaoPictureUploadAPIRequest.go | 122 ++ model/media/TaobaoPictureUploadAPIResponse.go | 27 + model/media/TaobaoPictureUploadResponse.go | 27 - .../TaobaoPictureUserinfoGetAPIRequest.go | 38 + .../TaobaoPictureUserinfoGetAPIResponse.go | 27 + .../media/TaobaoPictureUserinfoGetResponse.go | 27 - .../TaobaoVasServiceGetServTimesAPIRequest.go | 52 + ...TaobaoVasServiceGetServTimesAPIResponse.go | 29 + .../TaobaoVasServiceGetServTimesResponse.go | 29 - ...lthMedicalbaseOrderStatusSyncAPIRequest.go | 52 + ...thMedicalbaseOrderStatusSyncAPIResponse.go | 27 + ...ealthMedicalbaseOrderStatusSyncResponse.go | 27 - model/mei/ResultDto.go | 13 + .../TmallCrmMemberFrontUnbindAPIRequest.go | 52 + .../TmallCrmMemberFrontUnbindAPIResponse.go | 27 + .../mei/TmallCrmMemberFrontUnbindResponse.go | 27 - .../TmallCrmMemberPointChangeAPIRequest.go | 108 + .../TmallCrmMemberPointChangeAPIResponse.go | 27 + .../mei/TmallCrmMemberPointChangeResponse.go | 27 - ...mallMeiCrmCallbackPointChangeAPIRequest.go | 122 ++ ...allMeiCrmCallbackPointChangeAPIResponse.go | 27 + .../TmallMeiCrmCallbackPointChangeResponse.go | 27 - ...TmallMeiCrmMemberGetbypaycodeAPIRequest.go | 52 + ...mallMeiCrmMemberGetbypaycodeAPIResponse.go | 27 + .../TmallMeiCrmMemberGetbypaycodeResponse.go | 27 - model/mei/TmallMeiCrmMemberSyncAPIRequest.go | 138 ++ model/mei/TmallMeiCrmMemberSyncAPIResponse.go | 29 + model/mei/TmallMeiCrmMemberSyncResponse.go | 29 - ...babaMiddleClaimsacceptReceiveAPIRequest.go | 52 + ...abaMiddleClaimsacceptReceiveAPIResponse.go | 27 + ...libabaMiddleClaimsacceptReceiveResponse.go | 27 - ...libabaMiddleClaimsbillReceiveAPIRequest.go | 52 + ...ibabaMiddleClaimsbillReceiveAPIResponse.go | 27 + .../AlibabaMiddleClaimsbillReceiveResponse.go | 27 - ...babaMiddleClaimsresultReceiveAPIRequest.go | 52 + ...abaMiddleClaimsresultReceiveAPIResponse.go | 27 + ...libabaMiddleClaimsresultReceiveResponse.go | 27 - ...baoMiniappCloudFunctionInvokeAPIRequest.go | 108 + ...aoMiniappCloudFunctionInvokeAPIResponse.go | 27 + ...aobaoMiniappCloudFunctionInvokeResponse.go | 27 - ...oMiniappCloudStoreRelationAddAPIRequest.go | 108 + ...MiniappCloudStoreRelationAddAPIResponse.go | 29 + ...baoMiniappCloudStoreRelationAddResponse.go | 29 - ...TaobaoMiniappCloudMongoInsertAPIRequest.go | 80 + ...aobaoMiniappCloudMongoInsertAPIResponse.go | 27 + .../TaobaoMiniappCloudMongoInsertResponse.go | 27 - ...TaobaoMiniappCloudMongoUpdateAPIRequest.go | 94 + ...aobaoMiniappCloudMongoUpdateAPIResponse.go | 27 + .../TaobaoMiniappCloudMongoUpdateResponse.go | 27 - ...obaoMiniappCloudStoreListfileAPIRequest.go | 66 + ...baoMiniappCloudStoreListfileAPIResponse.go | 27 + ...TaobaoMiniappCloudStoreListfileResponse.go | 27 - ...iniappAppSellerConfigCompleteAPIRequest.go | 66 + ...niappAppSellerConfigCompleteAPIResponse.go | 27 + ...oMiniappAppSellerConfigCompleteResponse.go | 27 - ...oMiniappDistributionItemsBindAPIRequest.go | 80 + ...MiniappDistributionItemsBindAPIResponse.go | 27 + ...baoMiniappDistributionItemsBindResponse.go | 27 - ...iniappDistributionOrderCreateAPIRequest.go | 52 + ...niappDistributionOrderCreateAPIResponse.go | 33 + ...oMiniappDistributionOrderCreateResponse.go | 33 - ...aoMiniappDistributionOrderGetAPIRequest.go | 52 + ...oMiniappDistributionOrderGetAPIResponse.go | 27 + ...obaoMiniappDistributionOrderGetResponse.go | 27 - ...DistributionOrderItemsAllBindAPIRequest.go | 52 + ...istributionOrderItemsAllBindAPIResponse.go | 27 + ...ppDistributionOrderItemsAllBindResponse.go | 27 - ...appDistributionOrderItemsBindAPIRequest.go | 80 + ...ppDistributionOrderItemsBindAPIResponse.go | 27 + ...niappDistributionOrderItemsBindResponse.go | 27 - .../TaobaoMiniappShorturlCreateAPIRequest.go | 53 + .../TaobaoMiniappShorturlCreateAPIResponse.go | 28 + .../TaobaoMiniappShorturlCreateResponse.go | 28 - ...baoMiniappTemplateInstantiateAPIRequest.go | 150 ++ ...aoMiniappTemplateInstantiateAPIResponse.go | 41 + ...aobaoMiniappTemplateInstantiateResponse.go | 41 - ...obaoMiniappTemplateOfflineappAPIRequest.go | 94 + ...baoMiniappTemplateOfflineappAPIResponse.go | 29 + ...TaobaoMiniappTemplateOfflineappResponse.go | 29 - ...aobaoMiniappTemplateOnlineappAPIRequest.go | 108 + ...obaoMiniappTemplateOnlineappAPIResponse.go | 29 + .../TaobaoMiniappTemplateOnlineappResponse.go | 29 - ...TaobaoMiniappTemplateQueryappAPIRequest.go | 80 + ...aobaoMiniappTemplateQueryappAPIResponse.go | 27 + .../TaobaoMiniappTemplateQueryappResponse.go | 27 - ...TaobaoMiniappTemplateRollbackAPIRequest.go | 108 + ...aobaoMiniappTemplateRollbackAPIResponse.go | 29 + .../TaobaoMiniappTemplateRollbackResponse.go | 29 - .../TaobaoMiniappTemplateUpdateAPIRequest.go | 108 + .../TaobaoMiniappTemplateUpdateAPIResponse.go | 27 + .../TaobaoMiniappTemplateUpdateResponse.go | 27 - ...aobaoMiniappTemplateUpdateappAPIRequest.go | 150 ++ ...obaoMiniappTemplateUpdateappAPIResponse.go | 41 + .../TaobaoMiniappTemplateUpdateappResponse.go | 41 - ...aoMiniapppTemplateInstantiateAPIRequest.go | 136 ++ ...oMiniapppTemplateInstantiateAPIResponse.go | 27 + ...obaoMiniapppTemplateInstantiateResponse.go | 27 - .../YoukuMirageQueryPermissionAPIRequest.go | 52 + .../YoukuMirageQueryPermissionAPIResponse.go | 27 + .../YoukuMirageQueryPermissionResponse.go | 27 - .../AlibabaMjMemberBindmemberAPIRequest.go | 94 + .../AlibabaMjMemberBindmemberAPIResponse.go | 27 + .../mos/AlibabaMjMemberBindmemberResponse.go | 27 - model/mos/AlibabaMjMemberHasbindAPIRequest.go | 66 + .../mos/AlibabaMjMemberHasbindAPIResponse.go | 27 + model/mos/AlibabaMjMemberHasbindResponse.go | 27 - .../AlibabaMjMosFundCancelbillAPIRequest.go | 52 + .../AlibabaMjMosFundCancelbillAPIResponse.go | 27 + .../mos/AlibabaMjMosFundCancelbillResponse.go | 27 - .../AlibabaMjMosFundCreatebillAPIRequest.go | 52 + .../AlibabaMjMosFundCreatebillAPIResponse.go | 27 + .../mos/AlibabaMjMosFundCreatebillResponse.go | 27 - ...jMosFundModifybillbankaccountAPIRequest.go | 52 + ...MosFundModifybillbankaccountAPIResponse.go | 27 + ...aMjMosFundModifybillbankaccountResponse.go | 27 - ...abaMjMoscarnivalReceivecouponAPIRequest.go | 66 + ...baMjMoscarnivalReceivecouponAPIResponse.go | 27 + ...ibabaMjMoscarnivalReceivecouponResponse.go | 27 - ...ibabaMjMoscarnivalReceivecouponResultDo.go | 21 + ...baMjMoscarnivalReceiveencryptAPIRequest.go | 66 + ...aMjMoscarnivalReceiveencryptAPIResponse.go | 27 + ...babaMjMoscarnivalReceiveencryptResponse.go | 27 - ...babaMjMoscarnivalReceiveencryptResultDo.go | 19 + ...BigposBanksaleAdjustmentApplyAPIRequest.go | 122 ++ ...igposBanksaleAdjustmentApplyAPIResponse.go | 25 + ...OcBigposBanksaleAdjustmentApplyResponse.go | 25 - ...libabaMjOcBigposBanksaleQueryAPIRequest.go | 94 + ...ibabaMjOcBigposBanksaleQueryAPIResponse.go | 29 + .../AlibabaMjOcBigposBanksaleQueryResponse.go | 29 - .../AlibabaMjOcCalldispatcherAPIRequest.go | 52 + .../AlibabaMjOcCalldispatcherAPIResponse.go | 27 + .../mos/AlibabaMjOcCalldispatcherResponse.go | 27 - .../AlibabaMjOcConfpickupgoodsAPIRequest.go | 52 + .../AlibabaMjOcConfpickupgoodsAPIResponse.go | 27 + .../mos/AlibabaMjOcConfpickupgoodsResponse.go | 27 - ...ibabaMjOcGetproductbyscancodeAPIRequest.go | 94 + ...babaMjOcGetproductbyscancodeAPIResponse.go | 27 + ...AlibabaMjOcGetproductbyscancodeResponse.go | 27 - ...babaMjOcOfflineMaxticketnoGetAPIRequest.go | 80 + ...abaMjOcOfflineMaxticketnoGetAPIResponse.go | 35 + ...libabaMjOcOfflineMaxticketnoGetResponse.go | 35 - .../AlibabaMjOcOnlineTicketnoGetAPIRequest.go | 52 + ...AlibabaMjOcOnlineTicketnoGetAPIResponse.go | 33 + .../AlibabaMjOcOnlineTicketnoGetResponse.go | 33 - model/mos/AlibabaMjOcOutboundAPIRequest.go | 52 + model/mos/AlibabaMjOcOutboundAPIResponse.go | 27 + model/mos/AlibabaMjOcOutboundResponse.go | 27 - model/mos/AlibabaMjOcPayAPIRequest.go | 52 + model/mos/AlibabaMjOcPayAPIResponse.go | 33 + model/mos/AlibabaMjOcPayResponse.go | 33 - model/mos/AlibabaMjOcSyncpayinfoAPIRequest.go | 52 + .../mos/AlibabaMjOcSyncpayinfoAPIResponse.go | 27 + model/mos/AlibabaMjOcSyncpayinfoResponse.go | 27 - model/mos/AlibabaMjOcSyncpayinfoResultDo.go | 13 + .../mos/AlibabaMjOcWritesaleslipAPIRequest.go | 52 + .../AlibabaMjOcWritesaleslipAPIResponse.go | 27 + model/mos/AlibabaMjOcWritesaleslipResponse.go | 27 - ...abaMjPresaleSettlementAddlistAPIRequest.go | 52 + ...baMjPresaleSettlementAddlistAPIResponse.go | 27 + ...ibabaMjPresaleSettlementAddlistResponse.go | 27 - ...MjPresaleSettlementStatisticsAPIRequest.go | 66 + ...jPresaleSettlementStatisticsAPIResponse.go | 27 + ...baMjPresaleSettlementStatisticsResponse.go | 27 - ...baMosArkHealthOfflineLevelGetAPIRequest.go | 52 + ...aMosArkHealthOfflineLevelGetAPIResponse.go | 33 + ...babaMosArkHealthOfflineLevelGetResponse.go | 33 - ...ibabaMosBunkBunkinfoQuerybunkAPIRequest.go | 80 + ...babaMosBunkBunkinfoQuerybunkAPIResponse.go | 27 + ...AlibabaMosBunkBunkinfoQuerybunkResponse.go | 27 - ...AlibabaMosBunkBunkinfoQuerybunkResultDo.go | 23 + ...baMosFinanceBankinfoQuerybankAPIRequest.go | 80 + ...aMosFinanceBankinfoQuerybankAPIResponse.go | 27 + ...babaMosFinanceBankinfoQuerybankResponse.go | 27 - ...babaMosFinanceBankinfoQuerybankResultDo.go | 21 + ...AlibabaMosOcTradeSyncbanksaleAPIRequest.go | 52 + ...libabaMosOcTradeSyncbanksaleAPIResponse.go | 27 + .../AlibabaMosOcTradeSyncbanksaleResponse.go | 27 - .../AlibabaMosOcTradeSyncbanksaleResultDo.go | 11 + ...baMosOnsiteTradeIsnewpayorderAPIRequest.go | 52 + ...aMosOnsiteTradeIsnewpayorderAPIResponse.go | 27 + ...babaMosOnsiteTradeIsnewpayorderResponse.go | 27 - ...babaMosOnsiteTradeIsnewpayorderResultDo.go | 13 + ...libabaMosOnsiteTradeOldrefundAPIRequest.go | 52 + ...ibabaMosOnsiteTradeOldrefundAPIResponse.go | 27 + .../AlibabaMosOnsiteTradeOldrefundResponse.go | 27 - .../mos/AlibabaMosOnsiteTradePayAPIRequest.go | 52 + .../AlibabaMosOnsiteTradePayAPIResponse.go | 27 + model/mos/AlibabaMosOnsiteTradePayResponse.go | 27 - .../AlibabaMosOnsiteTradeQueryAPIRequest.go | 95 + .../AlibabaMosOnsiteTradeQueryAPIResponse.go | 28 + .../mos/AlibabaMosOnsiteTradeQueryResponse.go | 28 - ...babaMosOnsiteTradeQueryrefundAPIRequest.go | 66 + ...abaMosOnsiteTradeQueryrefundAPIResponse.go | 27 + ...libabaMosOnsiteTradeQueryrefundResponse.go | 27 - ...libabaMosOnsiteTradeQueryrefundResultDo.go | 13 + .../AlibabaMosOnsiteTradeRefundAPIRequest.go | 55 + .../AlibabaMosOnsiteTradeRefundAPIResponse.go | 30 + .../AlibabaMosOnsiteTradeRefundResponse.go | 30 - .../AlibabaMosOnsiteTradeRefundResultDo.go | 13 + ...MosOrderqsMisbigposOrderQueryAPIRequest.go | 94 + ...osOrderqsMisbigposOrderQueryAPIResponse.go | 49 + ...baMosOrderqsMisbigposOrderQueryResponse.go | 49 - model/mos/AlibabaMosPosAlarmAPIRequest.go | 52 + model/mos/AlibabaMosPosAlarmAPIResponse.go | 31 + model/mos/AlibabaMosPosAlarmResponse.go | 31 - ...aMosStoreGetcloudshelfversionAPIRequest.go | 52 + ...MosStoreGetcloudshelfversionAPIResponse.go | 27 + ...abaMosStoreGetcloudshelfversionResponse.go | 27 - ...abaMosStoreGetcloudshelfversionResultDo.go | 13 + ...AlibabaMosStoreGetdefautitemsAPIRequest.go | 80 + ...libabaMosStoreGetdefautitemsAPIResponse.go | 27 + .../AlibabaMosStoreGetdefautitemsResponse.go | 27 - .../AlibabaMosStoreGetdefautitemsResultDo.go | 15 + .../AlibabaMosStoreGetstorelistAPIRequest.go | 52 + .../AlibabaMosStoreGetstorelistAPIResponse.go | 27 + .../AlibabaMosStoreGetstorelistResponse.go | 27 - .../AlibabaMosStoreGetstorelistResultDo.go | 13 + ...MosStoreRecordscreenpointinfoAPIRequest.go | 52 + ...osStoreRecordscreenpointinfoAPIResponse.go | 27 + ...baMosStoreRecordscreenpointinfoResponse.go | 27 - ...baMosStoreRecordscreenpointinfoResultDo.go | 11 + ...sSupplierBasisGetsupplierinfoAPIRequest.go | 52 + ...SupplierBasisGetsupplierinfoAPIResponse.go | 27 + ...MosSupplierBasisGetsupplierinfoResponse.go | 27 - ...babaMosflowWorkQueryvariablesAPIRequest.go | 52 + ...abaMosflowWorkQueryvariablesAPIResponse.go | 27 + ...libabaMosflowWorkQueryvariablesResponse.go | 27 - ...libabaMosflowWorkStartprocessAPIRequest.go | 66 + ...ibabaMosflowWorkStartprocessAPIResponse.go | 33 + .../AlibabaMosflowWorkStartprocessResponse.go | 33 - .../moscm/AlibabaMosDeliverySendAPIRequest.go | 52 + .../AlibabaMosDeliverySendAPIResponse.go | 27 + model/moscm/AlibabaMosDeliverySendResponse.go | 27 - model/moscm/AlibabaMosDeliverySendResultDo.go | 11 + .../moscm/AlibabaMosGoodsAdjustAPIRequest.go | 52 + .../moscm/AlibabaMosGoodsAdjustAPIResponse.go | 27 + model/moscm/AlibabaMosGoodsAdjustResponse.go | 27 - model/moscm/AlibabaMosGoodsAdjustResultDo.go | 7 + .../AlibabaMosGoodsBulkinputcspuAPIRequest.go | 52 + ...AlibabaMosGoodsBulkinputcspuAPIResponse.go | 27 + .../AlibabaMosGoodsBulkinputcspuResponse.go | 27 - ...osGoodsInventoryGetinventorysAPIRequest.go | 52 + ...sGoodsInventoryGetinventorysAPIResponse.go | 27 + ...aMosGoodsInventoryGetinventorysResponse.go | 27 - .../AlibabaMosGoodsSearchcspuAPIRequest.go | 66 + .../AlibabaMosGoodsSearchcspuAPIResponse.go | 27 + .../AlibabaMosGoodsSearchcspuResponse.go | 27 - .../AlibabaMosGoodsSetpriceAPIRequest.go | 52 + .../AlibabaMosGoodsSetpriceAPIResponse.go | 27 + .../moscm/AlibabaMosGoodsSetpriceResponse.go | 27 - ...GoodsSynchinventorybycountingAPIRequest.go | 67 + ...oodsSynchinventorybycountingAPIResponse.go | 28 + ...osGoodsSynchinventorybycountingResponse.go | 28 - ...osGoodsSynchinventorybycountingResultDo.go | 7 + .../moscm/AlibabaMosOrderListGetAPIRequest.go | 66 + .../AlibabaMosOrderListGetAPIResponse.go | 27 + model/moscm/AlibabaMosOrderListGetResponse.go | 27 - model/moscm/AlibabaMosOrderListGetResultDo.go | 13 + model/moscm/AlibabaMosOrderQueryAPIRequest.go | 66 + .../moscm/AlibabaMosOrderQueryAPIResponse.go | 27 + model/moscm/AlibabaMosOrderQueryResponse.go | 27 - model/moscm/AlibabaMosOrderQueryResultDo.go | 13 + .../AlibabaMosOrderRefundListGetAPIRequest.go | 66 + ...AlibabaMosOrderRefundListGetAPIResponse.go | 27 + .../AlibabaMosOrderRefundListGetResponse.go | 27 - .../AlibabaMosOrderRefundListGetResultDto.go | 13 + ...aMoziBucAccountListAccountidsAPIRequest.go | 52 + ...MoziBucAccountListAccountidsAPIResponse.go | 27 + ...abaMoziBucAccountListAccountidsResponse.go | 27 - .../AlibabaMoziBucAccountPageallAPIRequest.go | 52 + ...AlibabaMoziBucAccountPageallAPIResponse.go | 27 + .../AlibabaMoziBucAccountPageallResponse.go | 27 - ...ionAddorupdateEmployeeAccountAPIRequest.go | 52 + ...onAddorupdateEmployeeAccountAPIResponse.go | 27 + ...usionAddorupdateEmployeeAccountResponse.go | 27 - ...ziFusionCreateEmployeeAccountAPIRequest.go | 52 + ...iFusionCreateEmployeeAccountAPIResponse.go | 27 + ...MoziFusionCreateEmployeeAccountResponse.go | 27 - ...usionDimissionEmployeeAccountAPIRequest.go | 52 + ...sionDimissionEmployeeAccountAPIResponse.go | 27 + ...iFusionDimissionEmployeeAccountResponse.go | 27 - ...iFusionReentryEmployeeAccountAPIRequest.go | 52 + ...FusionReentryEmployeeAccountAPIResponse.go | 27 + ...oziFusionReentryEmployeeAccountResponse.go | 27 - ...ziFusionUpdateEmployeeAccountAPIRequest.go | 52 + ...iFusionUpdateEmployeeAccountAPIResponse.go | 27 + ...MoziFusionUpdateEmployeeAccountResponse.go | 27 - ...oziVdsTenantApiServiceDismissAPIRequest.go | 52 + ...ziVdsTenantApiServiceDismissAPIResponse.go | 27 + ...aMoziVdsTenantApiServiceDismissResponse.go | 27 - ...ziVdsTenantApiServiceGetadminAPIRequest.go | 52 + ...iVdsTenantApiServiceGetadminAPIResponse.go | 27 + ...MoziVdsTenantApiServiceGetadminResponse.go | 27 - ...TenantApiServiceMatchempcodesAPIRequest.go | 52 + ...enantApiServiceMatchempcodesAPIResponse.go | 27 + ...dsTenantApiServiceMatchempcodesResponse.go | 27 - ...TenantApiServicePagesubadminsAPIRequest.go | 52 + ...enantApiServicePagesubadminsAPIResponse.go | 27 + ...dsTenantApiServicePagesubadminsResponse.go | 27 - ...VdsTenantApiServiceTenantbyidAPIRequest.go | 52 + ...dsTenantApiServiceTenantbyidAPIResponse.go | 27 + ...ziVdsTenantApiServiceTenantbyidResponse.go | 27 - ...ibabaMoziAclAppGetpermisspkgsAPIRequest.go | 52 + ...babaMoziAclAppGetpermisspkgsAPIResponse.go | 27 + ...AlibabaMoziAclAppGetpermisspkgsResponse.go | 27 - .../AlibabaMoziAclGrantGrantroleAPIRequest.go | 52 + ...AlibabaMoziAclGrantGrantroleAPIResponse.go | 27 + .../AlibabaMoziAclGrantGrantroleResponse.go | 27 - ...lPermissionPageRolepermissionAPIRequest.go | 52 + ...PermissionPageRolepermissionAPIResponse.go | 27 + ...AclPermissionPageRolepermissionResponse.go | 27 - ...clPermissionpkgAddPermissionsAPIRequest.go | 52 + ...lPermissionpkgAddPermissionsAPIResponse.go | 27 + ...iAclPermissionpkgAddPermissionsResponse.go | 27 - ...aMoziAclPermissionpkgAddRolesAPIRequest.go | 52 + ...MoziAclPermissionpkgAddRolesAPIResponse.go | 27 + ...abaMoziAclPermissionpkgAddRolesResponse.go | 27 - .../AlibabaMoziAclRoleAddAPIRequest.go | 52 + .../AlibabaMoziAclRoleAddAPIResponse.go | 27 + ...babaMoziAclRoleAddPermissionsAPIRequest.go | 52 + ...abaMoziAclRoleAddPermissionsAPIResponse.go | 27 + ...libabaMoziAclRoleAddPermissionsResponse.go | 27 - .../moziacl/AlibabaMoziAclRoleAddResponse.go | 27 - .../AlibabaMoziAclRoleRemoveAPIRequest.go | 52 + .../AlibabaMoziAclRoleRemoveAPIResponse.go | 35 + ...aMoziAclRoleRemovePermissionsAPIRequest.go | 52 + ...MoziAclRoleRemovePermissionsAPIResponse.go | 27 + ...abaMoziAclRoleRemovePermissionsResponse.go | 27 - .../AlibabaMoziAclRoleRemoveResponse.go | 35 - ...aMoziAclUserpermissionsRevokeAPIRequest.go | 52 + ...MoziAclUserpermissionsRevokeAPIResponse.go | 27 + ...abaMoziAclUserpermissionsRevokeResponse.go | 27 - ...AlibabaMoziAclUserrolesRevokeAPIRequest.go | 52 + ...libabaMoziAclUserrolesRevokeAPIResponse.go | 27 + .../AlibabaMoziAclUserrolesRevokeResponse.go | 27 - ...ziVdsTenantApiServiceAddadminAPIRequest.go | 53 + ...iVdsTenantApiServiceAddadminAPIResponse.go | 28 + ...MoziVdsTenantApiServiceAddadminResponse.go | 28 - ...dsTenantApiServiceRemoveadminAPIRequest.go | 52 + ...sTenantApiServiceRemoveadminAPIResponse.go | 27 + ...iVdsTenantApiServiceRemoveadminResponse.go | 27 - model/msgamp/TaobaoMessageSendAPIRequest.go | 52 + model/msgamp/TaobaoMessageSendAPIResponse.go | 33 + model/msgamp/TaobaoMessageSendResponse.go | 33 - .../TaobaoMtopUploadTokenGetAPIRequest.go | 52 + .../TaobaoMtopUploadTokenGetAPIResponse.go | 39 + .../mtop/TaobaoMtopUploadTokenGetResponse.go | 39 - ...libabaInteractAllsparkisvDrawAPIRequest.go | 66 + ...ibabaInteractAllsparkisvDrawAPIResponse.go | 27 + .../AlibabaInteractAllsparkisvDrawResponse.go | 27 - ...libabaInteractAopdataRegisterAPIRequest.go | 52 + ...ibabaInteractAopdataRegisterAPIResponse.go | 27 + .../AlibabaInteractAopdataRegisterResponse.go | 27 - ...teractLotteryactivityRegisterAPIRequest.go | 52 + ...eractLotteryactivityRegisterAPIResponse.go | 27 + ...InteractLotteryactivityRegisterResponse.go | 27 - .../AlibabaInteractMediaArtworkAPIRequest.go | 52 + .../AlibabaInteractMediaArtworkAPIResponse.go | 25 + .../AlibabaInteractMediaArtworkResponse.go | 25 - .../AlibabaInteractMediaAudioAPIRequest.go | 52 + .../AlibabaInteractMediaAudioAPIResponse.go | 25 + .../AlibabaInteractMediaAudioResponse.go | 25 - .../AlibabaInteractSensorSocialAPIRequest.go | 52 + .../AlibabaInteractSensorSocialAPIResponse.go | 27 + .../AlibabaInteractSensorSocialResponse.go | 27 - .../AlibabaInteractSensorTradeAPIRequest.go | 52 + .../AlibabaInteractSensorTradeAPIResponse.go | 27 + ...AlibabaInteractSensorTradeBuyAPIRequest.go | 52 + ...libabaInteractSensorTradeBuyAPIResponse.go | 25 + .../AlibabaInteractSensorTradeBuyResponse.go | 25 - .../AlibabaInteractSensorTradeResponse.go | 27 - .../TaobaoOauthCodeCreateAPIRequest.go | 52 + .../TaobaoOauthCodeCreateAPIResponse.go | 27 + .../mtopopen/TaobaoOauthCodeCreateResponse.go | 27 - .../TaobaoWeitaoFeedIsrelationAPIRequest.go | 66 + .../TaobaoWeitaoFeedIsrelationAPIResponse.go | 27 + .../TaobaoWeitaoFeedIsrelationResponse.go | 27 - ...lessBuntingShopShorturlCreateAPIRequest.go | 52 + ...essBuntingShopShorturlCreateAPIResponse.go | 27 + ...relessBuntingShopShorturlCreateResponse.go | 27 - .../AlibabaMydataOverviewDateGetAPIRequest.go | 38 + ...AlibabaMydataOverviewDateGetAPIResponse.go | 27 + .../AlibabaMydataOverviewDateGetResponse.go | 27 - ...dataOverviewIndicatorBasicGetAPIRequest.go | 66 + ...ataOverviewIndicatorBasicGetAPIResponse.go | 27 + ...MydataOverviewIndicatorBasicGetResponse.go | 27 - ...babaMydataOverviewIndustryGetAPIRequest.go | 52 + ...abaMydataOverviewIndustryGetAPIResponse.go | 27 + ...libabaMydataOverviewIndustryGetResponse.go | 27 - ...ibabaMydataSelfProductDateGetAPIRequest.go | 52 + ...babaMydataSelfProductDateGetAPIResponse.go | 29 + ...AlibabaMydataSelfProductDateGetResponse.go | 29 - .../AlibabaMydataSelfProductGetAPIRequest.go | 80 + .../AlibabaMydataSelfProductGetAPIResponse.go | 27 + .../AlibabaMydataSelfProductGetResponse.go | 27 - ...fodeptLassenCasestatisticsGetAPIRequest.go | 80 + ...odeptLassenCasestatisticsGetAPIResponse.go | 27 + ...InfodeptLassenCasestatisticsGetResponse.go | 27 - ...abaNazcaAuthAuthapplyCallbackAPIRequest.go | 52 + ...baNazcaAuthAuthapplyCallbackAPIResponse.go | 27 + ...ibabaNazcaAuthAuthapplyCallbackResponse.go | 27 - ...caAuthChangeauthapplyCallbackAPIRequest.go | 52 + ...aAuthChangeauthapplyCallbackAPIResponse.go | 27 + ...azcaAuthChangeauthapplyCallbackResponse.go | 27 - ...zcaAuthIssueauthapplyCallbackAPIRequest.go | 108 + ...caAuthIssueauthapplyCallbackAPIResponse.go | 27 + ...NazcaAuthIssueauthapplyCallbackResponse.go | 27 - ...AlibabaNazcaTokenAuthapplyGetAPIRequest.go | 52 + ...libabaNazcaTokenAuthapplyGetAPIResponse.go | 27 + .../AlibabaNazcaTokenAuthapplyGetResponse.go | 27 - ...aNazcaTokenChangeauthapplyGetAPIRequest.go | 52 + ...NazcaTokenChangeauthapplyGetAPIResponse.go | 27 + ...abaNazcaTokenChangeauthapplyGetResponse.go | 27 - ...libabaNazcaTokenFilesecretGetAPIRequest.go | 66 + ...ibabaNazcaTokenFilesecretGetAPIResponse.go | 35 + .../AlibabaNazcaTokenFilesecretGetResponse.go | 35 - ...baNazcaTokenIssuecertapplyGetAPIRequest.go | 52 + ...aNazcaTokenIssuecertapplyGetAPIResponse.go | 27 + ...babaNazcaTokenIssuecertapplyGetResponse.go | 27 - .../AlibabaItApAddressGetAPIRequest.go | 108 + .../AlibabaItApAddressGetAPIResponse.go | 27 + .../AlibabaItApAddressGetResponse.go | 27 - .../AlibabaItApAddressSetAPIRequest.go | 248 +++ .../AlibabaItApAddressSetAPIResponse.go | 27 + .../AlibabaItApAddressSetResponse.go | 27 - .../AlibabaNlifeB2bTradeListAPIRequest.go | 108 + .../AlibabaNlifeB2bTradeListAPIResponse.go | 27 + .../nlife/AlibabaNlifeB2bTradeListResponse.go | 27 - ...libabaNlifeB2bTradeRefundListAPIRequest.go | 108 + ...ibabaNlifeB2bTradeRefundListAPIResponse.go | 27 + .../AlibabaNlifeB2bTradeRefundListResponse.go | 27 - .../AlibabaNlifeB2cCodeConvertAPIRequest.go | 66 + .../AlibabaNlifeB2cCodeConvertAPIResponse.go | 27 + .../AlibabaNlifeB2cCodeConvertResponse.go | 27 - .../AlibabaNlifeB2cItemDetailGetAPIRequest.go | 66 + ...AlibabaNlifeB2cItemDetailGetAPIResponse.go | 65 + .../AlibabaNlifeB2cItemDetailGetResponse.go | 65 - ...NlifeB2cMemberDiscountruleGetAPIRequest.go | 66 + ...lifeB2cMemberDiscountruleGetAPIResponse.go | 35 + ...baNlifeB2cMemberDiscountruleGetResponse.go | 35 - .../AlibabaNlifeB2cTradeCancelAPIRequest.go | 80 + .../AlibabaNlifeB2cTradeCancelAPIResponse.go | 29 + .../AlibabaNlifeB2cTradeCancelResponse.go | 29 - .../AlibabaNlifeB2cTradeDownloadAPIRequest.go | 108 + ...AlibabaNlifeB2cTradeDownloadAPIResponse.go | 29 + .../AlibabaNlifeB2cTradeDownloadResponse.go | 29 - .../AlibabaNlifeB2cTradeGetAPIRequest.go | 80 + .../AlibabaNlifeB2cTradeGetAPIResponse.go | 79 + .../nlife/AlibabaNlifeB2cTradeGetResponse.go | 79 - .../AlibabaNlifeB2cTradePayAPIRequest.go | 178 ++ .../AlibabaNlifeB2cTradePayAPIResponse.go | 29 + .../nlife/AlibabaNlifeB2cTradePayResponse.go | 29 - .../AlibabaNlifeB2cTradeRefundAPIRequest.go | 136 ++ .../AlibabaNlifeB2cTradeRefundAPIResponse.go | 29 + .../AlibabaNlifeB2cTradeRefundResponse.go | 29 - ...ibabaNlifeB2cTradestatusDriveAPIRequest.go | 136 ++ ...babaNlifeB2cTradestatusDriveAPIResponse.go | 27 + ...AlibabaNlifeB2cTradestatusDriveResponse.go | 27 - ...abaNlifeStoreDeliverdetailGetAPIRequest.go | 66 + ...baNlifeStoreDeliverdetailGetAPIResponse.go | 27 + ...ibabaNlifeStoreDeliverdetailGetResponse.go | 27 - .../AlibabaNlifeStoreDeliversGetAPIRequest.go | 94 + ...AlibabaNlifeStoreDeliversGetAPIResponse.go | 27 + .../AlibabaNlifeStoreDeliversGetResponse.go | 27 - ...libabaNlifeStoreItemdetailGetAPIRequest.go | 136 ++ ...ibabaNlifeStoreItemdetailGetAPIResponse.go | 29 + .../AlibabaNlifeStoreItemdetailGetResponse.go | 29 - ...ibabaNlifeStoreItemdetailsGetAPIRequest.go | 94 + ...babaNlifeStoreItemdetailsGetAPIResponse.go | 31 + ...AlibabaNlifeStoreItemdetailsGetResponse.go | 31 - .../AlibabaNlifeStoreItemsGetAPIRequest.go | 206 ++ .../AlibabaNlifeStoreItemsGetAPIResponse.go | 31 + .../AlibabaNlifeStoreItemsGetResponse.go | 31 - ...ibabaNlifeStoreTradedetailGetAPIRequest.go | 52 + ...babaNlifeStoreTradedetailGetAPIResponse.go | 27 + ...AlibabaNlifeStoreTradedetailGetResponse.go | 27 - model/nlp/TaobaoNlpPreprocessAPIRequest.go | 80 + model/nlp/TaobaoNlpPreprocessAPIResponse.go | 27 + model/nlp/TaobaoNlpPreprocessResponse.go | 27 - model/nlp/TaobaoNlpSimilarityAPIRequest.go | 52 + model/nlp/TaobaoNlpSimilarityAPIResponse.go | 27 + model/nlp/TaobaoNlpSimilarityResponse.go | 27 - model/nlp/TaobaoNlpWordAPIRequest.go | 66 + model/nlp/TaobaoNlpWordAPIResponse.go | 27 + model/nlp/TaobaoNlpWordResponse.go | 27 - ...tripTravelVisaApplicantImportAPIRequest.go | 136 ++ ...ripTravelVisaApplicantImportAPIResponse.go | 39 + ...litripTravelVisaApplicantImportResponse.go | 39 - ...itripTravelVisaApplicantQueryAPIRequest.go | 52 + ...tripTravelVisaApplicantQueryAPIResponse.go | 27 + ...AlitripTravelVisaApplicantQueryResponse.go | 27 - .../AlitripTravelVisaSignSendAPIRequest.go | 80 + .../AlitripTravelVisaSignSendAPIResponse.go | 29 + .../AlitripTravelVisaSignSendResponse.go | 29 - ...baoAlitripTravelNormalvisaGetAPIRequest.go | 52 + ...aoAlitripTravelNormalvisaGetAPIResponse.go | 27 + ...aobaoAlitripTravelNormalvisaGetResponse.go | 27 - ...ripTravelNormalvisaGetcompanyAPIRequest.go | 52 + ...ipTravelNormalvisaGetcompanyAPIResponse.go | 27 + ...itripTravelNormalvisaGetcompanyResponse.go | 27 - ...tripTravelNormalvisaGetdetailAPIRequest.go | 52 + ...ripTravelNormalvisaGetdetailAPIResponse.go | 27 + ...litripTravelNormalvisaGetdetailResponse.go | 27 - ...tripTravelNormalvisaStoreuserAPIRequest.go | 66 + ...ripTravelNormalvisaStoreuserAPIResponse.go | 27 + ...litripTravelNormalvisaStoreuserResponse.go | 27 - ...lNormalvisaUpdatepersonstautsAPIRequest.go | 66 + ...NormalvisaUpdatepersonstautsAPIResponse.go | 27 + ...velNormalvisaUpdatepersonstautsResponse.go | 27 - ...ripTravelNormalvisaUploadfileAPIRequest.go | 80 + ...ipTravelNormalvisaUploadfileAPIResponse.go | 27 + ...itripTravelNormalvisaUploadfileResponse.go | 27 - ...abaAscpIndustryDisivisonQueryAPIRequest.go | 52 + ...baAscpIndustryDisivisonQueryAPIResponse.go | 27 + ...ibabaAscpIndustryDisivisonQueryResponse.go | 27 - ...abaMosCommdyOfflineGetfileurlAPIRequest.go | 52 + ...baMosCommdyOfflineGetfileurlAPIResponse.go | 27 + ...ibabaMosCommdyOfflineGetfileurlResponse.go | 27 - ...ibabaMosCommdyOfflineGetfileurlResultDo.go | 21 + ...yPosmerchandiseGetmerchandiseAPIRequest.go | 52 + ...PosmerchandiseGetmerchandiseAPIResponse.go | 27 + ...mdyPosmerchandiseGetmerchandiseResponse.go | 27 - ...mdyPosmerchandiseGetmerchandiseResultDo.go | 21 + .../AlibabaAscpInventoryQueryAPIRequest.go | 52 + .../AlibabaAscpInventoryQueryAPIResponse.go | 27 + .../nrt/AlibabaAscpInventoryQueryResponse.go | 27 - .../nrt/AlibabaAscpInventorySyncAPIRequest.go | 52 + .../AlibabaAscpInventorySyncAPIResponse.go | 27 + model/nrt/AlibabaAscpInventorySyncResponse.go | 27 - ...baRetailDeviceVendingRegisterAPIRequest.go | 192 ++ ...aRetailDeviceVendingRegisterAPIResponse.go | 27 + ...babaRetailDeviceVendingRegisterResponse.go | 27 - ...babaRetailDeviceVendingRegisterResultDo.go | 13 + ...babaRetailVendingRoadItemSyncAPIRequest.go | 52 + ...abaRetailVendingRoadItemSyncAPIResponse.go | 33 + ...libabaRetailVendingRoadItemSyncResponse.go | 33 - .../nrt/TmallNrtBranddetailQueryAPIRequest.go | 52 + .../TmallNrtBranddetailQueryAPIResponse.go | 27 + model/nrt/TmallNrtBranddetailQueryResponse.go | 27 - model/nrt/TmallNrtBrandinfoQueryAPIRequest.go | 38 + .../nrt/TmallNrtBrandinfoQueryAPIResponse.go | 27 + model/nrt/TmallNrtBrandinfoQueryResponse.go | 27 - model/nrt/TmallNrtCouponSendAPIRequest.go | 52 + model/nrt/TmallNrtCouponSendAPIResponse.go | 27 + model/nrt/TmallNrtCouponSendResponse.go | 27 - .../TmallNrtCoupontemplateQueryAPIRequest.go | 94 + .../TmallNrtCoupontemplateQueryAPIResponse.go | 29 + .../TmallNrtCoupontemplateQueryResponse.go | 29 - .../TmallNrtEasyhomememberSynAPIRequest.go | 52 + .../TmallNrtEasyhomememberSynAPIResponse.go | 27 + .../nrt/TmallNrtEasyhomememberSynResponse.go | 27 - model/nrt/TmallNrtItemGetAPIRequest.go | 66 + model/nrt/TmallNrtItemGetAPIResponse.go | 27 + model/nrt/TmallNrtItemGetResponse.go | 27 - model/nrt/TmallNrtItemGetResultDo.go | 13 + .../TmallNrtItemMainSynchronizeAPIRequest.go | 164 ++ .../TmallNrtItemMainSynchronizeAPIResponse.go | 27 + .../TmallNrtItemMainSynchronizeResponse.go | 27 - .../TmallNrtItemMainSynchronizeResultDo.go | 9 + model/nrt/TmallNrtMemberOpenidAPIRequest.go | 52 + model/nrt/TmallNrtMemberOpenidAPIResponse.go | 27 + model/nrt/TmallNrtMemberOpenidResponse.go | 27 - model/nrt/TmallNrtMemberOpenidResultDo.go | 13 + .../TmallNrtMemberSynchronizeAPIRequest.go | 52 + .../TmallNrtMemberSynchronizeAPIResponse.go | 27 + .../nrt/TmallNrtMemberSynchronizeResponse.go | 27 - ...PayMerchantStallSigningModifyAPIRequest.go | 52 + ...ayMerchantStallSigningModifyAPIResponse.go | 27 + ...rtPayMerchantStallSigningModifyResponse.go | 27 - ...rtPayMerchantStallSigningModifyResultDo.go | 13 + .../nrt/TmallNrtSimpleitemQueryAPIRequest.go | 54 + .../nrt/TmallNrtSimpleitemQueryAPIResponse.go | 31 + model/nrt/TmallNrtSimpleitemQueryResponse.go | 31 - ...llNrtStallPayratioSynchronizeAPIRequest.go | 94 + ...lNrtStallPayratioSynchronizeAPIResponse.go | 25 + ...mallNrtStallPayratioSynchronizeResponse.go | 25 - .../nrt/TmallNrtStallSynchronizeAPIRequest.go | 52 + .../TmallNrtStallSynchronizeAPIResponse.go | 27 + model/nrt/TmallNrtStallSynchronizeResponse.go | 27 - ...abaRetailCommissionOrderQueryAPIRequest.go | 94 + ...baRetailCommissionOrderQueryAPIResponse.go | 27 + ...ibabaRetailCommissionOrderQueryResponse.go | 27 - ...babaRetailCommissionOrderSyncAPIRequest.go | 52 + ...abaRetailCommissionOrderSyncAPIResponse.go | 33 + ...libabaRetailCommissionOrderSyncResponse.go | 33 - ...baRetailCommissionResultQueryAPIRequest.go | 52 + ...aRetailCommissionResultQueryAPIResponse.go | 27 + ...babaRetailCommissionResultQueryResponse.go | 27 - ...aRetailCommissionStatusChangeAPIRequest.go | 52 + ...RetailCommissionStatusChangeAPIResponse.go | 33 + ...abaRetailCommissionStatusChangeResponse.go | 33 - ...aoJstAstrolabeOrderstatusSyncAPIRequest.go | 136 ++ ...oJstAstrolabeOrderstatusSyncAPIResponse.go | 29 + ...obaoJstAstrolabeOrderstatusSyncResponse.go | 29 - ...AstrolabeStoreinventoryAdjustAPIRequest.go | 66 + ...strolabeStoreinventoryAdjustAPIResponse.go | 31 + ...stAstrolabeStoreinventoryAdjustResponse.go | 31 - ...strolabeStoreinventoryInitialAPIRequest.go | 66 + ...trolabeStoreinventoryInitialAPIResponse.go | 33 + ...oJstAstrolabeStoreinventoryInitialError.go | 9 + ...tAstrolabeStoreinventoryInitialResponse.go | 33 - ...olabeStoreinventoryItemadjustAPIRequest.go | 66 + ...labeStoreinventoryItemadjustAPIResponse.go | 31 + ...trolabeStoreinventoryItemadjustResponse.go | 31 - ...labeStoreinventoryIteminitialAPIRequest.go | 66 + ...abeStoreinventoryIteminitialAPIResponse.go | 33 + ...AstrolabeStoreinventoryIteminitialError.go | 9 + ...rolabeStoreinventoryIteminitialResponse.go | 33 - ...rolabeStoreinventoryItemqueryAPIRequest.go | 52 + ...olabeStoreinventoryItemqueryAPIResponse.go | 33 + ...strolabeStoreinventoryItemqueryResponse.go | 33 - ...olabeStoreinventoryItemupdateAPIRequest.go | 66 + ...labeStoreinventoryItemupdateAPIResponse.go | 33 + ...tAstrolabeStoreinventoryItemupdateError.go | 9 + ...trolabeStoreinventoryItemupdateResponse.go | 33 - ...tAstrolabeStoreinventoryQueryAPIRequest.go | 52 + ...AstrolabeStoreinventoryQueryAPIResponse.go | 33 + ...JstAstrolabeStoreinventoryQueryResponse.go | 33 - ...AstrolabeStoreinventoryUpdateAPIRequest.go | 66 + ...strolabeStoreinventoryUpdateAPIResponse.go | 33 + ...aoJstAstrolabeStoreinventoryUpdateError.go | 9 + ...stAstrolabeStoreinventoryUpdateResponse.go | 33 - .../TaobaoOmniDealerOdersGetAPIRequest.go | 52 + .../TaobaoOmniDealerOdersGetAPIResponse.go | 27 + .../TaobaoOmniDealerOdersGetResponse.go | 27 - .../TaobaoOmniDealerOdersListAPIRequest.go | 52 + .../TaobaoOmniDealerOdersListAPIResponse.go | 27 + .../TaobaoOmniDealerOdersListResponse.go | 27 - .../TaobaoOmniitemCategoryGetAPIRequest.go | 52 + .../TaobaoOmniitemCategoryGetAPIResponse.go | 27 + .../TaobaoOmniitemCategoryGetResponse.go | 27 - .../TaobaoOmniitemClassifyDeleteAPIRequest.go | 66 + ...TaobaoOmniitemClassifyDeleteAPIResponse.go | 27 + .../TaobaoOmniitemClassifyDeleteResponse.go | 27 - ...iitemClassifyItemBatchOperateAPIRequest.go | 94 + ...itemClassifyItemBatchOperateAPIResponse.go | 27 + ...mniitemClassifyItemBatchOperateResponse.go | 27 - ...obaoOmniitemClassifyItemQueryAPIRequest.go | 80 + ...baoOmniitemClassifyItemQueryAPIResponse.go | 27 + ...TaobaoOmniitemClassifyItemQueryResponse.go | 27 - ...aobaoOmniitemClassifyOperatorAPIRequest.go | 94 + ...obaoOmniitemClassifyOperatorAPIResponse.go | 27 + .../TaobaoOmniitemClassifyOperatorResponse.go | 27 - .../TaobaoOmniitemClassifyQueryAPIRequest.go | 80 + .../TaobaoOmniitemClassifyQueryAPIResponse.go | 27 + .../TaobaoOmniitemClassifyQueryResponse.go | 27 - ...itemClassifyStoreBatchOperateAPIRequest.go | 94 + ...temClassifyStoreBatchOperateAPIResponse.go | 27 + ...niitemClassifyStoreBatchOperateResponse.go | 27 - ...baoOmniitemClassifyStoreQueryAPIRequest.go | 80 + ...aoOmniitemClassifyStoreQueryAPIResponse.go | 27 + ...aobaoOmniitemClassifyStoreQueryResponse.go | 27 - .../TaobaoOmniitemItemDeleteAPIRequest.go | 80 + .../TaobaoOmniitemItemDeleteAPIResponse.go | 27 + .../TaobaoOmniitemItemDeleteResponse.go | 27 - .../TaobaoOmniitemItemFullupdateAPIRequest.go | 68 + ...TaobaoOmniitemItemFullupdateAPIResponse.go | 29 + .../TaobaoOmniitemItemFullupdateResponse.go | 29 - .../TaobaoOmniitemItemGetAPIRequest.go | 94 + .../TaobaoOmniitemItemGetAPIResponse.go | 27 + .../TaobaoOmniitemItemGetResponse.go | 27 - ...TaobaoOmniitemItemImageUploadAPIRequest.go | 122 ++ ...aobaoOmniitemItemImageUploadAPIResponse.go | 27 + .../TaobaoOmniitemItemImageUploadResponse.go | 27 - .../TaobaoOmniitemItemPublishAPIRequest.go | 66 + .../TaobaoOmniitemItemPublishAPIResponse.go | 27 + .../TaobaoOmniitemItemPublishResponse.go | 27 - .../TaobaoOmniitemSkuGetAPIRequest.go | 80 + .../TaobaoOmniitemSkuGetAPIResponse.go | 27 + .../omniorder/TaobaoOmniitemSkuGetResponse.go | 27 - ...baoOmniorderAllocatedinfoSyncAPIRequest.go | 122 ++ ...aoOmniorderAllocatedinfoSyncAPIResponse.go | 29 + ...aobaoOmniorderAllocatedinfoSyncResponse.go | 29 - .../TaobaoOmniorderDtdConsignAPIRequest.go | 66 + .../TaobaoOmniorderDtdConsignAPIResponse.go | 29 + .../TaobaoOmniorderDtdConsignResponse.go | 29 - .../TaobaoOmniorderDtdConsumeAPIRequest.go | 52 + .../TaobaoOmniorderDtdConsumeAPIResponse.go | 29 + .../TaobaoOmniorderDtdConsumeResponse.go | 29 - .../TaobaoOmniorderDtdQueryAPIRequest.go | 52 + .../TaobaoOmniorderDtdQueryAPIResponse.go | 31 + .../TaobaoOmniorderDtdQueryResponse.go | 31 - .../TaobaoOmniorderDtdResendAPIRequest.go | 52 + .../TaobaoOmniorderDtdResendAPIResponse.go | 29 + .../TaobaoOmniorderDtdResendResponse.go | 29 - .../TaobaoOmniorderGuideDataGetAPIRequest.go | 94 + .../TaobaoOmniorderGuideDataGetAPIResponse.go | 27 + .../TaobaoOmniorderGuideDataGetResponse.go | 27 - ...TaobaoOmniorderItemTagOperateAPIRequest.go | 94 + ...aobaoOmniorderItemTagOperateAPIResponse.go | 29 + .../TaobaoOmniorderItemTagOperateResponse.go | 29 - ...TaobaoOmniorderPrintSaleJudgeAPIRequest.go | 52 + ...aobaoOmniorderPrintSaleJudgeAPIResponse.go | 27 + .../TaobaoOmniorderPrintSaleJudgeResponse.go | 27 - .../TaobaoOmniorderStoreAccpetedAPIRequest.go | 94 + ...TaobaoOmniorderStoreAccpetedAPIResponse.go | 29 + .../TaobaoOmniorderStoreAccpetedResponse.go | 29 - ...mniorderStoreCollectconfigGetAPIRequest.go | 66 + ...niorderStoreCollectconfigGetAPIResponse.go | 27 + ...oOmniorderStoreCollectconfigGetResponse.go | 27 - ...orderStoreCollectconfigUpdateAPIRequest.go | 66 + ...rderStoreCollectconfigUpdateAPIResponse.go | 27 + ...niorderStoreCollectconfigUpdateResponse.go | 27 - ...TaobaoOmniorderStoreConsignedAPIRequest.go | 178 ++ ...aobaoOmniorderStoreConsignedAPIResponse.go | 31 + .../TaobaoOmniorderStoreConsignedResponse.go | 31 - ...mniorderStoreDeliverconfigGetAPIRequest.go | 66 + ...niorderStoreDeliverconfigGetAPIResponse.go | 27 + ...oOmniorderStoreDeliverconfigGetResponse.go | 27 - ...orderStoreDeliverconfigUpdateAPIRequest.go | 66 + ...rderStoreDeliverconfigUpdateAPIResponse.go | 27 + ...niorderStoreDeliverconfigUpdateResponse.go | 27 - ...iorderStoreGetconsignmailcodeAPIRequest.go | 122 ++ ...orderStoreGetconsignmailcodeAPIResponse.go | 27 + ...mniorderStoreGetconsignmailcodeResponse.go | 27 - ...aobaoOmniorderStoreReallocateAPIRequest.go | 94 + ...obaoOmniorderStoreReallocateAPIResponse.go | 27 + .../TaobaoOmniorderStoreReallocateResponse.go | 27 - .../TaobaoOmniorderStoreRefusedAPIRequest.go | 94 + .../TaobaoOmniorderStoreRefusedAPIResponse.go | 29 + .../TaobaoOmniorderStoreRefusedResponse.go | 29 - ...TaobaoOmniorderStoreSdtcancelAPIRequest.go | 52 + ...aobaoOmniorderStoreSdtcancelAPIResponse.go | 27 + .../TaobaoOmniorderStoreSdtcancelResponse.go | 27 - ...aobaoOmniorderStoreSdtconsignAPIRequest.go | 66 + ...obaoOmniorderStoreSdtconsignAPIResponse.go | 31 + .../TaobaoOmniorderStoreSdtconsignResponse.go | 31 - ...OmniorderStoreSdtquerystationAPIRequest.go | 52 + ...mniorderStoreSdtquerystationAPIResponse.go | 27 + ...aoOmniorderStoreSdtquerystationResponse.go | 27 - ...TaobaoOmniorderStoreSdtstatusAPIRequest.go | 52 + ...aobaoOmniorderStoreSdtstatusAPIResponse.go | 27 + .../TaobaoOmniorderStoreSdtstatusResponse.go | 27 - ...OmniorderStoreSwitchstatusGetAPIRequest.go | 66 + ...mniorderStoreSwitchstatusGetAPIResponse.go | 27 + ...aoOmniorderStoreSwitchstatusGetResponse.go | 27 - ...iorderStoreSwitchstatusUpdateAPIRequest.go | 66 + ...orderStoreSwitchstatusUpdateAPIResponse.go | 27 + ...mniorderStoreSwitchstatusUpdateResponse.go | 27 - ...oOmniorderStorecollectConsumeAPIRequest.go | 80 + ...OmniorderStorecollectConsumeAPIResponse.go | 29 + ...baoOmniorderStorecollectConsumeResponse.go | 29 - ...baoOmniorderStorecollectQueryAPIRequest.go | 52 + ...aoOmniorderStorecollectQueryAPIResponse.go | 27 + ...aobaoOmniorderStorecollectQueryResponse.go | 27 - .../TaobaoQimenItemsMarkingAPIRequest.go | 94 + .../TaobaoQimenItemsMarkingAPIResponse.go | 29 + .../TaobaoQimenItemsMarkingResponse.go | 29 - .../TaobaoQimenItemsTagQueryAPIRequest.go | 52 + .../TaobaoQimenItemsTagQueryAPIResponse.go | 31 + .../TaobaoQimenItemsTagQueryResponse.go | 31 - .../TaobaoQimenTagItemsQueryAPIRequest.go | 66 + .../TaobaoQimenTagItemsQueryAPIResponse.go | 33 + .../TaobaoQimenTagItemsQueryResponse.go | 33 - .../TaobaoOpenimAppChatlogsGetAPIRequest.go | 94 + .../TaobaoOpenimAppChatlogsGetAPIResponse.go | 27 + .../TaobaoOpenimAppChatlogsGetResponse.go | 27 - .../TaobaoOpenimChatlogsGetAPIRequest.go | 122 ++ .../TaobaoOpenimChatlogsGetAPIResponse.go | 27 + .../openim/TaobaoOpenimChatlogsGetResponse.go | 27 - .../TaobaoOpenimChatlogsImportAPIRequest.go | 52 + .../TaobaoOpenimChatlogsImportAPIResponse.go | 31 + .../TaobaoOpenimChatlogsImportResponse.go | 31 - .../TaobaoOpenimCustmsgPushAPIRequest.go | 52 + .../TaobaoOpenimCustmsgPushAPIResponse.go | 27 + .../openim/TaobaoOpenimCustmsgPushResponse.go | 27 - .../openim/TaobaoOpenimImmsgPushAPIRequest.go | 52 + .../TaobaoOpenimImmsgPushAPIResponse.go | 27 + model/openim/TaobaoOpenimImmsgPushResponse.go | 27 - ...baoOpenimIoscertProductionSetAPIRequest.go | 66 + ...aoOpenimIoscertProductionSetAPIResponse.go | 27 + ...aobaoOpenimIoscertProductionSetResponse.go | 27 - ...TaobaoOpenimIoscertSandboxSetAPIRequest.go | 66 + ...aobaoOpenimIoscertSandboxSetAPIResponse.go | 27 + .../TaobaoOpenimIoscertSandboxSetResponse.go | 27 - .../TaobaoOpenimRelationsGetAPIRequest.go | 80 + .../TaobaoOpenimRelationsGetAPIResponse.go | 27 + .../TaobaoOpenimRelationsGetResponse.go | 27 - ...aoOpenimSnfilterwordSetfilterAPIRequest.go | 80 + ...oOpenimSnfilterwordSetfilterAPIResponse.go | 29 + ...obaoOpenimSnfilterwordSetfilterResponse.go | 29 - .../TaobaoOpenimTribeCreateAPIRequest.go | 108 + .../TaobaoOpenimTribeCreateAPIResponse.go | 27 + .../openim/TaobaoOpenimTribeCreateResponse.go | 27 - .../TaobaoOpenimTribeDismissAPIRequest.go | 66 + .../TaobaoOpenimTribeDismissAPIResponse.go | 27 + .../TaobaoOpenimTribeDismissResponse.go | 27 - .../TaobaoOpenimTribeExpelAPIRequest.go | 80 + .../TaobaoOpenimTribeExpelAPIResponse.go | 27 + .../openim/TaobaoOpenimTribeExpelResponse.go | 27 - ...TaobaoOpenimTribeGetalltribesAPIRequest.go | 66 + ...aobaoOpenimTribeGetalltribesAPIResponse.go | 27 + .../TaobaoOpenimTribeGetalltribesResponse.go | 27 - .../TaobaoOpenimTribeGetmembersAPIRequest.go | 66 + .../TaobaoOpenimTribeGetmembersAPIResponse.go | 27 + .../TaobaoOpenimTribeGetmembersResponse.go | 27 - ...TaobaoOpenimTribeGettribeinfoAPIRequest.go | 66 + ...aobaoOpenimTribeGettribeinfoAPIResponse.go | 27 + .../TaobaoOpenimTribeGettribeinfoResponse.go | 27 - .../TaobaoOpenimTribeInviteAPIRequest.go | 80 + .../TaobaoOpenimTribeInviteAPIResponse.go | 27 + .../openim/TaobaoOpenimTribeInviteResponse.go | 27 - .../openim/TaobaoOpenimTribeJoinAPIRequest.go | 66 + .../TaobaoOpenimTribeJoinAPIResponse.go | 27 + model/openim/TaobaoOpenimTribeJoinResponse.go | 27 - ...baoOpenimTribeModifytribeinfoAPIRequest.go | 94 + ...aoOpenimTribeModifytribeinfoAPIResponse.go | 27 + ...aobaoOpenimTribeModifytribeinfoResponse.go | 27 - .../openim/TaobaoOpenimTribeQuitAPIRequest.go | 66 + .../TaobaoOpenimTribeQuitAPIResponse.go | 27 + model/openim/TaobaoOpenimTribeQuitResponse.go | 27 - .../TaobaoOpenimTribeSendmsgAPIRequest.go | 80 + .../TaobaoOpenimTribeSendmsgAPIResponse.go | 29 + .../TaobaoOpenimTribeSendmsgResponse.go | 29 - .../TaobaoOpenimTribeSetmanagerAPIRequest.go | 80 + .../TaobaoOpenimTribeSetmanagerAPIResponse.go | 27 + .../TaobaoOpenimTribeSetmanagerResponse.go | 27 - ...aobaoOpenimTribeSetmembernickAPIRequest.go | 96 + ...obaoOpenimTribeSetmembernickAPIResponse.go | 29 + .../TaobaoOpenimTribeSetmembernickResponse.go | 29 - ...TaobaoOpenimTribeUnsetmanagerAPIRequest.go | 80 + ...aobaoOpenimTribeUnsetmanagerAPIResponse.go | 27 + .../TaobaoOpenimTribeUnsetmanagerResponse.go | 27 - .../TaobaoOpenimTribelogsGetAPIRequest.go | 108 + .../TaobaoOpenimTribelogsGetAPIResponse.go | 35 + .../TaobaoOpenimTribelogsGetResponse.go | 35 - .../TaobaoOpenimTribelogsImportAPIRequest.go | 66 + .../TaobaoOpenimTribelogsImportAPIResponse.go | 31 + .../TaobaoOpenimTribelogsImportResponse.go | 31 - .../openim/TaobaoOpenimUsersAddAPIRequest.go | 52 + .../openim/TaobaoOpenimUsersAddAPIResponse.go | 31 + model/openim/TaobaoOpenimUsersAddResponse.go | 31 - .../TaobaoOpenimUsersDeleteAPIRequest.go | 52 + .../TaobaoOpenimUsersDeleteAPIResponse.go | 27 + .../openim/TaobaoOpenimUsersDeleteResponse.go | 27 - .../openim/TaobaoOpenimUsersGetAPIRequest.go | 52 + .../openim/TaobaoOpenimUsersGetAPIResponse.go | 27 + model/openim/TaobaoOpenimUsersGetResponse.go | 27 - .../TaobaoOpenimUsersUpdateAPIRequest.go | 52 + .../TaobaoOpenimUsersUpdateAPIResponse.go | 31 + .../openim/TaobaoOpenimUsersUpdateResponse.go | 31 - .../TaobaoOpenmallItemGetAPIRequest.go | 52 + .../TaobaoOpenmallItemGetAPIResponse.go | 27 + .../openmall/TaobaoOpenmallItemGetResponse.go | 27 - .../openmall/TaobaoOpenmallItemGetResultDo.go | 13 + ...TaobaoOpenmallItemSaleareaGetAPIRequest.go | 66 + ...aobaoOpenmallItemSaleareaGetAPIResponse.go | 27 + .../TaobaoOpenmallItemSaleareaGetResponse.go | 27 - .../TaobaoOpenmallItemSaleareaGetResultDo.go | 13 + .../TaobaoOpenmallItemsQueryAPIRequest.go | 94 + .../TaobaoOpenmallItemsQueryAPIResponse.go | 27 + .../TaobaoOpenmallItemsQueryResponse.go | 27 - .../TaobaoOpenmallItemsQueryResultDo.go | 13 + .../TaobaoOpenmallRefundBatchGetAPIRequest.go | 109 + ...TaobaoOpenmallRefundBatchGetAPIResponse.go | 30 + .../TaobaoOpenmallRefundBatchGetResponse.go | 30 - .../TaobaoOpenmallRefundCloseAPIRequest.go | 66 + .../TaobaoOpenmallRefundCloseAPIResponse.go | 27 + .../TaobaoOpenmallRefundCloseResponse.go | 27 - .../TaobaoOpenmallRefundCreateAPIRequest.go | 137 ++ .../TaobaoOpenmallRefundCreateAPIResponse.go | 30 + .../TaobaoOpenmallRefundCreateResponse.go | 30 - .../TaobaoOpenmallRefundGetAPIRequest.go | 66 + .../TaobaoOpenmallRefundGetAPIResponse.go | 27 + .../TaobaoOpenmallRefundGetResponse.go | 27 - ...obaoOpenmallRefundImageUploadAPIRequest.go | 80 + ...baoOpenmallRefundImageUploadAPIResponse.go | 27 + ...TaobaoOpenmallRefundImageUploadResponse.go | 27 - ...aobaoOpenmallRefundMessageGetAPIRequest.go | 94 + ...obaoOpenmallRefundMessageGetAPIResponse.go | 27 + .../TaobaoOpenmallRefundMessageGetResponse.go | 27 - ...aoOpenmallRefundMessageSubmitAPIRequest.go | 80 + ...oOpenmallRefundMessageSubmitAPIResponse.go | 27 + ...obaoOpenmallRefundMessageSubmitResponse.go | 27 - .../TaobaoOpenmallRefundModifyAPIRequest.go | 136 ++ .../TaobaoOpenmallRefundModifyAPIResponse.go | 27 + .../TaobaoOpenmallRefundModifyResponse.go | 27 - .../TaobaoOpenmallRefundSubmitAPIRequest.go | 108 + .../TaobaoOpenmallRefundSubmitAPIResponse.go | 27 + .../TaobaoOpenmallRefundSubmitResponse.go | 27 - .../TaobaoOpenmallTraceSearchAPIRequest.go | 66 + .../TaobaoOpenmallTraceSearchAPIResponse.go | 27 + .../TaobaoOpenmallTraceSearchResponse.go | 27 - ...obaoOpenmallTradeAddressParseAPIRequest.go | 66 + ...baoOpenmallTradeAddressParseAPIResponse.go | 27 + ...TaobaoOpenmallTradeAddressParseResponse.go | 27 - .../TaobaoOpenmallTradeAgreepayAPIRequest.go | 66 + .../TaobaoOpenmallTradeAgreepayAPIResponse.go | 27 + .../TaobaoOpenmallTradeAgreepayResponse.go | 27 - .../TaobaoOpenmallTradeBatchGetAPIRequest.go | 109 + .../TaobaoOpenmallTradeBatchGetAPIResponse.go | 30 + .../TaobaoOpenmallTradeBatchGetResponse.go | 30 - .../TaobaoOpenmallTradeCloseAPIRequest.go | 80 + .../TaobaoOpenmallTradeCloseAPIResponse.go | 27 + .../TaobaoOpenmallTradeCloseResponse.go | 27 - .../TaobaoOpenmallTradeConfirmAPIRequest.go | 66 + .../TaobaoOpenmallTradeConfirmAPIResponse.go | 27 + .../TaobaoOpenmallTradeConfirmResponse.go | 27 - .../TaobaoOpenmallTradeCreateAPIRequest.go | 52 + .../TaobaoOpenmallTradeCreateAPIResponse.go | 27 + .../TaobaoOpenmallTradeCreateResponse.go | 27 - .../TaobaoOpenmallTradeGetAPIRequest.go | 66 + .../TaobaoOpenmallTradeGetAPIResponse.go | 27 + .../TaobaoOpenmallTradeGetResponse.go | 27 - .../TaobaoOpenmallTradeRenderAPIRequest.go | 52 + .../TaobaoOpenmallTradeRenderAPIResponse.go | 27 + .../TaobaoOpenmallTradeRenderResponse.go | 27 - ...penmallTradeShipaddressUpdateAPIRequest.go | 178 ++ ...enmallTradeShipaddressUpdateAPIResponse.go | 27 + ...oOpenmallTradeShipaddressUpdateResponse.go | 27 - .../TaobaoOpentradeActivityQueryAPIRequest.go | 94 + ...TaobaoOpentradeActivityQueryAPIResponse.go | 29 + .../TaobaoOpentradeActivityQueryResponse.go | 29 - .../TaobaoOpentradeActivitySyncAPIRequest.go | 111 ++ .../TaobaoOpentradeActivitySyncAPIResponse.go | 42 + .../TaobaoOpentradeActivitySyncResponse.go | 42 - .../TaobaoOpentradeCreateOrderAPIRequest.go | 150 ++ .../TaobaoOpentradeCreateOrderAPIResponse.go | 27 + .../TaobaoOpentradeCreateOrderResponse.go | 27 - ...aoOpentradeGroupActivtiyQueryAPIRequest.go | 94 + ...oOpentradeGroupActivtiyQueryAPIResponse.go | 29 + ...obaoOpentradeGroupActivtiyQueryResponse.go | 29 - .../TaobaoOpentradeGroupDetailAPIRequest.go | 52 + .../TaobaoOpentradeGroupDetailAPIResponse.go | 27 + .../TaobaoOpentradeGroupDetailResponse.go | 27 - .../TaobaoOpentradeGroupJoinAPIRequest.go | 80 + .../TaobaoOpentradeGroupJoinAPIResponse.go | 25 + .../TaobaoOpentradeGroupJoinResponse.go | 25 - ...aobaoOpentradeGroupMemberInfoAPIRequest.go | 66 + ...obaoOpentradeGroupMemberInfoAPIResponse.go | 27 + .../TaobaoOpentradeGroupMemberInfoResponse.go | 27 - ...obaoOpentradeGroupMemberInfosAPIRequest.go | 66 + ...baoOpentradeGroupMemberInfosAPIResponse.go | 27 + ...TaobaoOpentradeGroupMemberInfosResponse.go | 27 - .../TaobaoOpentradeGroupOpenAPIRequest.go | 80 + .../TaobaoOpentradeGroupOpenAPIResponse.go | 27 + .../TaobaoOpentradeGroupOpenResponse.go | 27 - .../TaobaoOpentradeGroupOrderAPIRequest.go | 52 + .../TaobaoOpentradeGroupOrderAPIResponse.go | 27 + .../TaobaoOpentradeGroupOrderResponse.go | 27 - .../TaobaoOpentradeGroupQueryAPIRequest.go | 136 ++ .../TaobaoOpentradeGroupQueryAPIResponse.go | 29 + .../TaobaoOpentradeGroupQueryResponse.go | 29 - .../TaobaoOpentradeGroupSyncAPIRequest.go | 206 ++ .../TaobaoOpentradeGroupSyncAPIResponse.go | 27 + .../TaobaoOpentradeGroupSyncResponse.go | 27 - .../TaobaoOpentradeQueueQueryAPIRequest.go | 122 ++ .../TaobaoOpentradeQueueQueryAPIResponse.go | 29 + .../TaobaoOpentradeQueueQueryResponse.go | 29 - ...TaobaoOpentradeQueueUsersMarkAPIRequest.go | 122 ++ ...aobaoOpentradeQueueUsersMarkAPIResponse.go | 27 + .../TaobaoOpentradeQueueUsersMarkResponse.go | 27 - ...obaoOpentradeSpecialItemsBindAPIRequest.go | 66 + ...baoOpentradeSpecialItemsBindAPIResponse.go | 27 + ...TaobaoOpentradeSpecialItemsBindResponse.go | 27 - ...baoOpentradeSpecialItemsQueryAPIRequest.go | 52 + ...aoOpentradeSpecialItemsQueryAPIResponse.go | 27 + ...aobaoOpentradeSpecialItemsQueryResponse.go | 27 - ...aoOpentradeSpecialItemsUnbindAPIRequest.go | 66 + ...oOpentradeSpecialItemsUnbindAPIResponse.go | 27 + ...obaoOpentradeSpecialItemsUnbindResponse.go | 27 - ...baoOpentradeSpecialRuleUpdateAPIRequest.go | 66 + ...aoOpentradeSpecialRuleUpdateAPIResponse.go | 27 + ...aobaoOpentradeSpecialRuleUpdateResponse.go | 27 - ...obaoOpentradeSpecialUsersMarkAPIRequest.go | 122 ++ ...baoOpentradeSpecialUsersMarkAPIResponse.go | 27 + ...TaobaoOpentradeSpecialUsersMarkResponse.go | 27 - ...baoOpentradeSpecialUsersQueryAPIRequest.go | 122 ++ ...aoOpentradeSpecialUsersQueryAPIResponse.go | 29 + ...aobaoOpentradeSpecialUsersQueryResponse.go | 29 - ...TaobaoOpentradeToolsItemsBindAPIRequest.go | 66 + ...aobaoOpentradeToolsItemsBindAPIResponse.go | 27 + .../TaobaoOpentradeToolsItemsBindResponse.go | 27 - ...aobaoOpentradeToolsItemsQueryAPIRequest.go | 52 + ...obaoOpentradeToolsItemsQueryAPIResponse.go | 27 + .../TaobaoOpentradeToolsItemsQueryResponse.go | 27 - ...obaoOpentradeToolsItemsUnbindAPIRequest.go | 66 + ...baoOpentradeToolsItemsUnbindAPIResponse.go | 27 + ...TaobaoOpentradeToolsItemsUnbindResponse.go | 27 - ...uOttAlicbFacadeserviceGetdataAPIRequest.go | 94 + ...OttAlicbFacadeserviceGetdataAPIResponse.go | 27 + ...ukuOttAlicbFacadeserviceGetdataResponse.go | 27 - ...YoukuOttPlayserviceGetplayurlAPIRequest.go | 94 + ...oukuOttPlayserviceGetplayurlAPIResponse.go | 27 + .../YoukuOttPlayserviceGetplayurlResponse.go | 27 - .../ott/YunosTvscreenLauncherGetAPIRequest.go | 66 + .../YunosTvscreenLauncherGetAPIResponse.go | 33 + model/ott/YunosTvscreenLauncherGetResponse.go | 33 - .../YoukuOttIotDevicelistChangeAPIRequest.go | 52 + .../YoukuOttIotDevicelistChangeAPIResponse.go | 29 + .../YoukuOttIotDevicelistChangeResponse.go | 29 - .../ottpay/YoukuOttIotStatusPushAPIRequest.go | 52 + .../YoukuOttIotStatusPushAPIResponse.go | 29 + model/ottpay/YoukuOttIotStatusPushResponse.go | 29 - .../YoukuOttPayOrderAuthpayAPIRequest.go | 108 + .../YoukuOttPayOrderAuthpayAPIResponse.go | 27 + .../ottpay/YoukuOttPayOrderAuthpayResponse.go | 27 - .../YoukuOttPayOrderCreateorderAPIRequest.go | 164 ++ .../YoukuOttPayOrderCreateorderAPIResponse.go | 27 + .../YoukuOttPayOrderCreateorderResponse.go | 27 - .../YoukuOttPayOrderDeleteorderAPIRequest.go | 150 ++ .../YoukuOttPayOrderDeleteorderAPIResponse.go | 27 + .../YoukuOttPayOrderDeleteorderResponse.go | 27 - ...oukuOttPayOrderQueryauthstateAPIRequest.go | 52 + ...ukuOttPayOrderQueryauthstateAPIResponse.go | 27 + .../YoukuOttPayOrderQueryauthstateResponse.go | 27 - .../YoukuOttPayOrderQuerycporderAPIRequest.go | 52 + ...YoukuOttPayOrderQuerycporderAPIResponse.go | 27 + .../YoukuOttPayOrderQuerycporderResponse.go | 27 - .../YoukuOttPayOrderQueryorderAPIRequest.go | 52 + .../YoukuOttPayOrderQueryorderAPIResponse.go | 27 + .../YoukuOttPayOrderQueryorderResponse.go | 27 - ...oukuOttPayOrderQueryorderbycpAPIRequest.go | 52 + ...ukuOttPayOrderQueryorderbycpAPIResponse.go | 27 + .../YoukuOttPayOrderQueryorderbycpResponse.go | 27 - .../AlibabaOverseaExchagerateGetAPIRequest.go | 80 + ...AlibabaOverseaExchagerateGetAPIResponse.go | 27 + .../AlibabaOverseaExchagerateGetResponse.go | 27 - .../AlibabaOverseaTranslateGetAPIRequest.go | 80 + .../AlibabaOverseaTranslateGetAPIResponse.go | 27 + .../AlibabaOverseaTranslateGetResponse.go | 27 - .../TaobaoPaimaiItempropsGetAPIRequest.go | 234 +++ .../TaobaoPaimaiItempropsGetAPIResponse.go | 29 + .../TaobaoPaimaiItempropsGetResponse.go | 29 - ...TaobaoPentaprismTaskQueryitemAPIRequest.go | 52 + ...aobaoPentaprismTaskQueryitemAPIResponse.go | 27 + .../TaobaoPentaprismTaskQueryitemResponse.go | 27 - .../TaobaoPentaprismTaskTriggerAPIRequest.go | 52 + .../TaobaoPentaprismTaskTriggerAPIResponse.go | 27 + .../TaobaoPentaprismTaskTriggerResponse.go | 27 - ...baPerfectPerformanceItemQueryAPIRequest.go | 52 + ...aPerfectPerformanceItemQueryAPIResponse.go | 27 + ...babaPerfectPerformanceItemQueryResponse.go | 27 - ...rfectPerformanceLocalitemEditAPIRequest.go | 52 + ...fectPerformanceLocalitemEditAPIResponse.go | 27 + ...PerfectPerformanceLocalitemEditResponse.go | 27 - ...ctPerformanceLocalitemPublishAPIRequest.go | 52 + ...tPerformanceLocalitemPublishAPIResponse.go | 27 + ...fectPerformanceLocalitemPublishResponse.go | 27 - .../AlibabaGpuAddSchemaGetAPIRequest.go | 80 + .../AlibabaGpuAddSchemaGetAPIResponse.go | 27 + .../product/AlibabaGpuAddSchemaGetResponse.go | 27 - .../product/AlibabaGpuSchemaAddAPIRequest.go | 94 + .../product/AlibabaGpuSchemaAddAPIResponse.go | 27 + model/product/AlibabaGpuSchemaAddResponse.go | 27 - .../AlibabaGpuSchemaCatsearchAPIRequest.go | 94 + .../AlibabaGpuSchemaCatsearchAPIResponse.go | 29 + .../AlibabaGpuSchemaCatsearchResponse.go | 29 - .../AlibabaGpuSchemaUpdateAPIRequest.go | 80 + .../AlibabaGpuSchemaUpdateAPIResponse.go | 27 + .../product/AlibabaGpuSchemaUpdateResponse.go | 27 - .../AlibabaGpuUpdateSchemaGetAPIRequest.go | 66 + .../AlibabaGpuUpdateSchemaGetAPIResponse.go | 27 + .../AlibabaGpuUpdateSchemaGetResponse.go | 27 - .../AlibabaGspSupplyImageUploadAPIRequest.go | 66 + .../AlibabaGspSupplyImageUploadAPIResponse.go | 35 + .../AlibabaGspSupplyImageUploadResponse.go | 35 - .../AlibabaItemCategoryPredictAPIRequest.go | 108 + .../AlibabaItemCategoryPredictAPIResponse.go | 31 + .../AlibabaItemCategoryPredictResponse.go | 31 - .../AlibabaItemEditFastupdateAPIRequest.go | 96 + .../AlibabaItemEditFastupdateAPIResponse.go | 33 + .../AlibabaItemEditFastupdateResponse.go | 33 - .../AlibabaItemEditSchemaGetAPIRequest.go | 80 + .../AlibabaItemEditSchemaGetAPIResponse.go | 27 + .../AlibabaItemEditSchemaGetResponse.go | 27 - .../AlibabaItemEditSubmitAPIRequest.go | 108 + .../AlibabaItemEditSubmitAPIResponse.go | 31 + .../product/AlibabaItemEditSubmitResponse.go | 31 - .../AlibabaItemOperateDeleteAPIRequest.go | 52 + .../AlibabaItemOperateDeleteAPIResponse.go | 27 + .../AlibabaItemOperateDeleteResponse.go | 27 - .../AlibabaItemOperateDownshelfAPIRequest.go | 52 + .../AlibabaItemOperateDownshelfAPIResponse.go | 27 + .../AlibabaItemOperateDownshelfResponse.go | 27 - .../AlibabaItemOperateUpshelfAPIRequest.go | 66 + .../AlibabaItemOperateUpshelfAPIResponse.go | 27 + .../AlibabaItemOperateUpshelfResponse.go | 27 - .../AlibabaItemPublishMarketGetAPIRequest.go | 38 + .../AlibabaItemPublishMarketGetAPIResponse.go | 27 + .../AlibabaItemPublishMarketGetResponse.go | 27 - .../AlibabaItemPublishPropsGetAPIRequest.go | 108 + .../AlibabaItemPublishPropsGetAPIResponse.go | 27 + .../AlibabaItemPublishPropsGetResponse.go | 27 - .../AlibabaItemPublishSchemaGetAPIRequest.go | 136 ++ .../AlibabaItemPublishSchemaGetAPIResponse.go | 27 + .../AlibabaItemPublishSchemaGetResponse.go | 27 - .../AlibabaItemPublishSubmitAPIRequest.go | 122 ++ .../AlibabaItemPublishSubmitAPIResponse.go | 31 + .../AlibabaItemPublishSubmitResponse.go | 31 - ...JymIndustryInformationCallbakAPIRequest.go | 94 + ...ymIndustryInformationCallbakAPIResponse.go | 29 + ...baJymIndustryInformationCallbakResponse.go | 29 - .../AlibabaWholesaleGoodsGetAPIRequest.go | 66 + .../AlibabaWholesaleGoodsGetAPIResponse.go | 27 + .../AlibabaWholesaleGoodsGetResponse.go | 27 - .../AlibabaWholesaleGoodsSearchAPIRequest.go | 52 + .../AlibabaWholesaleGoodsSearchAPIResponse.go | 27 + .../AlibabaWholesaleGoodsSearchResponse.go | 27 - ...esaleShippinglineTemplateInitAPIRequest.go | 52 + ...saleShippinglineTemplateInitAPIResponse.go | 27 + ...olesaleShippinglineTemplateInitResponse.go | 27 - ...AliexpressSocialItemPromotionAPIRequest.go | 108 + ...liexpressSocialItemPromotionAPIResponse.go | 33 + .../AliexpressSocialItemPromotionResponse.go | 33 - .../AliexpressSocialItemRankingAPIRequest.go | 122 ++ .../AliexpressSocialItemRankingAPIResponse.go | 27 + .../AliexpressSocialItemRankingResponse.go | 27 - .../AliexpressSocialItemSearchAPIRequest.go | 290 +++ .../AliexpressSocialItemSearchAPIResponse.go | 27 + .../AliexpressSocialItemSearchResponse.go | 27 - .../AlitripTravelElementsSearchAPIRequest.go | 94 + .../AlitripTravelElementsSearchAPIResponse.go | 27 + .../AlitripTravelElementsSearchResponse.go | 27 - ...CainiaoCntecItemChangeMessageAPIRequest.go | 52 + ...ainiaoCntecItemChangeMessageAPIResponse.go | 27 + .../CainiaoCntecItemChangeMessageResponse.go | 27 - model/product/TaobaoAftersaleGetAPIRequest.go | 38 + .../product/TaobaoAftersaleGetAPIResponse.go | 27 + model/product/TaobaoAftersaleGetResponse.go | 27 - .../TaobaoBaikeImportZhubaoDataAPIRequest.go | 52 + .../TaobaoBaikeImportZhubaoDataAPIResponse.go | 27 + .../TaobaoBaikeImportZhubaoDataResponse.go | 27 - ...aobaoBaikeImportZhubaoPictureAPIRequest.go | 52 + ...obaoBaikeImportZhubaoPictureAPIResponse.go | 27 + .../TaobaoBaikeImportZhubaoPictureResponse.go | 27 - .../TaobaoBanamadpcItemAddAPIRequest.go | 66 + .../TaobaoBanamadpcItemAddAPIResponse.go | 27 + .../product/TaobaoBanamadpcItemAddResponse.go | 27 - ...TaobaoBanamadpcItemEditRenderAPIRequest.go | 52 + ...aobaoBanamadpcItemEditRenderAPIResponse.go | 27 + .../TaobaoBanamadpcItemEditRenderResponse.go | 27 - .../TaobaoBanamadpcItemRenderAPIRequest.go | 52 + .../TaobaoBanamadpcItemRenderAPIResponse.go | 27 + .../TaobaoBanamadpcItemRenderResponse.go | 27 - ...TaobaoBanamadpcItemSelectPropAPIRequest.go | 80 + ...aobaoBanamadpcItemSelectPropAPIResponse.go | 27 + .../TaobaoBanamadpcItemSelectPropResponse.go | 27 - .../TaobaoBanamadpcItemUpdateAPIRequest.go | 66 + .../TaobaoBanamadpcItemUpdateAPIResponse.go | 27 + .../TaobaoBanamadpcItemUpdateResponse.go | 27 - model/product/TaobaoItemAddAPIRequest.go | 1765 +++++++++++++++++ model/product/TaobaoItemAddAPIResponse.go | 32 + model/product/TaobaoItemAddResponse.go | 32 - .../product/TaobaoItemAnchorGetAPIRequest.go | 66 + .../product/TaobaoItemAnchorGetAPIResponse.go | 29 + model/product/TaobaoItemAnchorGetResponse.go | 29 - .../TaobaoItemBarcodeUpdateAPIRequest.go | 122 ++ .../TaobaoItemBarcodeUpdateAPIResponse.go | 27 + .../TaobaoItemBarcodeUpdateResponse.go | 27 - .../product/TaobaoItemCarturlGetAPIRequest.go | 122 ++ .../TaobaoItemCarturlGetAPIResponse.go | 27 + model/product/TaobaoItemCarturlGetResponse.go | 27 - model/product/TaobaoItemDeleteAPIRequest.go | 52 + model/product/TaobaoItemDeleteAPIResponse.go | 27 + model/product/TaobaoItemDeleteResponse.go | 27 - .../product/TaobaoItemImgDeleteAPIRequest.go | 80 + .../product/TaobaoItemImgDeleteAPIResponse.go | 27 + model/product/TaobaoItemImgDeleteResponse.go | 27 - .../product/TaobaoItemImgUploadAPIRequest.go | 126 ++ .../product/TaobaoItemImgUploadAPIResponse.go | 31 + model/product/TaobaoItemImgUploadResponse.go | 31 - model/product/TaobaoItemJointImgAPIRequest.go | 122 ++ .../product/TaobaoItemJointImgAPIResponse.go | 27 + model/product/TaobaoItemJointImgResponse.go | 27 - .../TaobaoItemJointPropimgAPIRequest.go | 108 + .../TaobaoItemJointPropimgAPIResponse.go | 27 + .../product/TaobaoItemJointPropimgResponse.go | 27 - .../TaobaoItemPermitCheckAPIRequest.go | 80 + .../TaobaoItemPermitCheckAPIResponse.go | 31 + .../product/TaobaoItemPermitCheckResponse.go | 31 - .../TaobaoItemPriceUpdateAPIRequest.go | 724 +++++++ .../TaobaoItemPriceUpdateAPIResponse.go | 27 + .../product/TaobaoItemPriceUpdateResponse.go | 27 - .../TaobaoItemPromotionRuleGetAPIRequest.go | 52 + .../TaobaoItemPromotionRuleGetAPIResponse.go | 29 + .../TaobaoItemPromotionRuleGetResponse.go | 29 - .../TaobaoItemPropimgDeleteAPIRequest.go | 66 + .../TaobaoItemPropimgDeleteAPIResponse.go | 27 + .../TaobaoItemPropimgDeleteResponse.go | 27 - .../TaobaoItemPropimgUploadAPIRequest.go | 108 + .../TaobaoItemPropimgUploadAPIResponse.go | 27 + .../TaobaoItemPropimgUploadResponse.go | 27 - ...aoItemQualificationDisplayGetAPIRequest.go | 80 + ...oItemQualificationDisplayGetAPIResponse.go | 27 + ...obaoItemQualificationDisplayGetResponse.go | 27 - .../TaobaoItemQuantityUpdateAPIRequest.go | 108 + .../TaobaoItemQuantityUpdateAPIResponse.go | 27 + .../TaobaoItemQuantityUpdateResponse.go | 27 - .../product/TaobaoItemSellerGetAPIRequest.go | 67 + .../product/TaobaoItemSellerGetAPIResponse.go | 28 + model/product/TaobaoItemSellerGetResponse.go | 28 - model/product/TaobaoItemSkuAddAPIRequest.go | 150 ++ model/product/TaobaoItemSkuAddAPIResponse.go | 27 + model/product/TaobaoItemSkuAddResponse.go | 27 - .../product/TaobaoItemSkuDeleteAPIRequest.go | 122 ++ .../product/TaobaoItemSkuDeleteAPIResponse.go | 27 + model/product/TaobaoItemSkuDeleteResponse.go | 27 - model/product/TaobaoItemSkuGetAPIRequest.go | 82 + model/product/TaobaoItemSkuGetAPIResponse.go | 29 + model/product/TaobaoItemSkuGetResponse.go | 29 - .../TaobaoItemSkuPriceUpdateAPIRequest.go | 150 ++ .../TaobaoItemSkuPriceUpdateAPIResponse.go | 27 + .../TaobaoItemSkuPriceUpdateResponse.go | 27 - .../product/TaobaoItemSkuUpdateAPIRequest.go | 150 ++ .../product/TaobaoItemSkuUpdateAPIResponse.go | 27 + model/product/TaobaoItemSkuUpdateResponse.go | 27 - model/product/TaobaoItemSkusGetAPIRequest.go | 67 + model/product/TaobaoItemSkusGetAPIResponse.go | 28 + model/product/TaobaoItemSkusGetResponse.go | 28 - .../TaobaoItemTemplatesGetAPIRequest.go | 38 + .../TaobaoItemTemplatesGetAPIResponse.go | 27 + .../product/TaobaoItemTemplatesGetResponse.go | 27 - model/product/TaobaoItemUpdateAPIRequest.go | 1722 ++++++++++++++++ model/product/TaobaoItemUpdateAPIResponse.go | 31 + .../TaobaoItemUpdateDelistingAPIRequest.go | 52 + .../TaobaoItemUpdateDelistingAPIResponse.go | 27 + .../TaobaoItemUpdateDelistingResponse.go | 27 - ...aobaoItemUpdateDelistingTmallAPIRequest.go | 52 + ...obaoItemUpdateDelistingTmallAPIResponse.go | 27 + .../TaobaoItemUpdateDelistingTmallResponse.go | 27 - .../TaobaoItemUpdateListingAPIRequest.go | 66 + .../TaobaoItemUpdateListingAPIResponse.go | 27 + .../TaobaoItemUpdateListingResponse.go | 27 - .../TaobaoItemUpdateListingTmallAPIRequest.go | 66 + ...TaobaoItemUpdateListingTmallAPIResponse.go | 27 + .../TaobaoItemUpdateListingTmallResponse.go | 27 - model/product/TaobaoItemUpdateResponse.go | 31 - .../product/TaobaoItemsCustomGetAPIRequest.go | 67 + .../TaobaoItemsCustomGetAPIResponse.go | 28 + model/product/TaobaoItemsCustomGetResponse.go | 28 - .../TaobaoItemsInventoryGetAPIRequest.go | 236 +++ .../TaobaoItemsInventoryGetAPIResponse.go | 31 + .../TaobaoItemsInventoryGetResponse.go | 31 - .../product/TaobaoItemsOnsaleGetAPIRequest.go | 264 +++ .../TaobaoItemsOnsaleGetAPIResponse.go | 31 + model/product/TaobaoItemsOnsaleGetResponse.go | 31 - .../TaobaoItemsSellerListGetAPIRequest.go | 67 + .../TaobaoItemsSellerListGetAPIResponse.go | 28 + .../TaobaoItemsSellerListGetResponse.go | 28 - .../TaobaoMiniappItemsGetAPIRequest.go | 66 + .../TaobaoMiniappItemsGetAPIResponse.go | 27 + .../product/TaobaoMiniappItemsGetResponse.go | 27 - model/product/TaobaoProductAddAPIRequest.go | 234 +++ model/product/TaobaoProductAddAPIResponse.go | 27 + model/product/TaobaoProductAddResponse.go | 27 - model/product/TaobaoProductGetAPIRequest.go | 97 + model/product/TaobaoProductGetAPIResponse.go | 30 + model/product/TaobaoProductGetResponse.go | 30 - .../TaobaoProductImgUploadAPIRequest.go | 108 + .../TaobaoProductImgUploadAPIResponse.go | 27 + .../product/TaobaoProductImgUploadResponse.go | 27 - .../TaobaoProductPropimgUploadAPIRequest.go | 108 + .../TaobaoProductPropimgUploadAPIResponse.go | 27 + .../TaobaoProductPropimgUploadResponse.go | 27 - .../product/TaobaoProductUpdateAPIRequest.go | 178 ++ .../product/TaobaoProductUpdateAPIResponse.go | 27 + model/product/TaobaoProductUpdateResponse.go | 27 - model/product/TaobaoProductsGetAPIRequest.go | 95 + model/product/TaobaoProductsGetAPIResponse.go | 28 + model/product/TaobaoProductsGetResponse.go | 28 - .../product/TaobaoProductsSearchAPIRequest.go | 213 ++ .../TaobaoProductsSearchAPIResponse.go | 36 + model/product/TaobaoProductsSearchResponse.go | 36 - .../product/TaobaoSkusCustomGetAPIRequest.go | 66 + .../product/TaobaoSkusCustomGetAPIResponse.go | 27 + model/product/TaobaoSkusCustomGetResponse.go | 27 - .../TaobaoSkusQuantityUpdateAPIRequest.go | 94 + .../TaobaoSkusQuantityUpdateAPIResponse.go | 27 + .../TaobaoSkusQuantityUpdateResponse.go | 27 - .../TaobaoUmpPromotionGetAPIRequest.go | 52 + .../TaobaoUmpPromotionGetAPIResponse.go | 27 + .../product/TaobaoUmpPromotionGetResponse.go | 27 - .../TaobaoXhotelIntlAriNotifyAPIRequest.go | 52 + .../TaobaoXhotelIntlAriNotifyAPIResponse.go | 27 + .../TaobaoXhotelIntlAriNotifyResponse.go | 27 - .../TmallItemAddSchemaGetAPIRequest.go | 94 + .../TmallItemAddSchemaGetAPIResponse.go | 27 + .../product/TmallItemAddSchemaGetResponse.go | 27 - .../TmallItemAddSimpleschemaGetAPIRequest.go | 38 + .../TmallItemAddSimpleschemaGetAPIResponse.go | 27 + .../TmallItemAddSimpleschemaGetResponse.go | 27 - .../TmallItemCalculateHscodeGetAPIRequest.go | 52 + .../TmallItemCalculateHscodeGetAPIResponse.go | 27 + .../TmallItemCalculateHscodeGetResponse.go | 27 - .../product/TmallItemCombineGetAPIRequest.go | 52 + .../product/TmallItemCombineGetAPIResponse.go | 27 + model/product/TmallItemCombineGetResponse.go | 27 - .../TmallItemDapeiTemplateQueryAPIRequest.go | 80 + .../TmallItemDapeiTemplateQueryAPIResponse.go | 27 + .../TmallItemDapeiTemplateQueryResponse.go | 27 - .../TmallItemDescModulesGetAPIRequest.go | 66 + .../TmallItemDescModulesGetAPIResponse.go | 27 + .../TmallItemDescModulesGetResponse.go | 27 - ...llItemHscodeAuditResultsQueryAPIRequest.go | 52 + ...lItemHscodeAuditResultsQueryAPIResponse.go | 27 + ...mallItemHscodeAuditResultsQueryResponse.go | 27 - .../TmallItemHscodeDetailGetAPIRequest.go | 52 + .../TmallItemHscodeDetailGetAPIResponse.go | 27 + .../TmallItemHscodeDetailGetResponse.go | 27 - ...lItemIncrementUpdateSchemaGetAPIRequest.go | 66 + ...ItemIncrementUpdateSchemaGetAPIResponse.go | 27 + ...allItemIncrementUpdateSchemaGetResponse.go | 27 - .../TmallItemOuteridUpdateAPIRequest.go | 80 + .../TmallItemOuteridUpdateAPIResponse.go | 27 + .../product/TmallItemOuteridUpdateResponse.go | 27 - .../product/TmallItemPriceUpdateAPIRequest.go | 94 + .../TmallItemPriceUpdateAPIResponse.go | 27 + model/product/TmallItemPriceUpdateResponse.go | 27 - .../TmallItemQuantityUpdateAPIRequest.go | 94 + .../TmallItemQuantityUpdateAPIResponse.go | 27 + .../TmallItemQuantityUpdateResponse.go | 27 - model/product/TmallItemSchemaAddAPIRequest.go | 80 + .../product/TmallItemSchemaAddAPIResponse.go | 29 + model/product/TmallItemSchemaAddResponse.go | 29 - ...mallItemSchemaIncrementUpdateAPIRequest.go | 66 + ...allItemSchemaIncrementUpdateAPIResponse.go | 29 + .../TmallItemSchemaIncrementUpdateResponse.go | 29 - .../TmallItemSchemaUpdateAPIRequest.go | 94 + .../TmallItemSchemaUpdateAPIResponse.go | 29 + .../product/TmallItemSchemaUpdateResponse.go | 29 - .../TmallItemShiptimeUpdateAPIRequest.go | 124 ++ .../TmallItemShiptimeUpdateAPIResponse.go | 57 + .../TmallItemShiptimeUpdateResponse.go | 57 - .../TmallItemSimpleschemaAddAPIRequest.go | 52 + .../TmallItemSimpleschemaAddAPIResponse.go | 29 + .../TmallItemSimpleschemaAddResponse.go | 29 - .../TmallItemSimpleschemaUpdateAPIRequest.go | 66 + .../TmallItemSimpleschemaUpdateAPIResponse.go | 31 + .../TmallItemSimpleschemaUpdateResponse.go | 31 - ...ItemSizemappingTemplateCreateAPIRequest.go | 66 + ...temSizemappingTemplateCreateAPIResponse.go | 27 + ...llItemSizemappingTemplateCreateResponse.go | 27 - ...ItemSizemappingTemplateDeleteAPIRequest.go | 52 + ...temSizemappingTemplateDeleteAPIResponse.go | 27 + ...llItemSizemappingTemplateDeleteResponse.go | 27 - ...allItemSizemappingTemplateGetAPIRequest.go | 52 + ...llItemSizemappingTemplateGetAPIResponse.go | 27 + ...TmallItemSizemappingTemplateGetResponse.go | 27 - ...ItemSizemappingTemplateUpdateAPIRequest.go | 80 + ...temSizemappingTemplateUpdateAPIResponse.go | 27 + ...llItemSizemappingTemplateUpdateResponse.go | 27 - ...lItemSizemappingTemplatesListAPIRequest.go | 38 + ...ItemSizemappingTemplatesListAPIResponse.go | 27 + ...allItemSizemappingTemplatesListResponse.go | 27 - .../TmallItemStoreSchemaUpdateAPIRequest.go | 80 + .../TmallItemStoreSchemaUpdateAPIResponse.go | 27 + .../TmallItemStoreSchemaUpdateResponse.go | 27 - ...TmallItemStoreUpdateSchemaGetAPIRequest.go | 66 + ...mallItemStoreUpdateSchemaGetAPIResponse.go | 27 + .../TmallItemStoreUpdateSchemaGetResponse.go | 27 - .../TmallItemUpdateSchemaGetAPIRequest.go | 80 + .../TmallItemUpdateSchemaGetAPIResponse.go | 27 + .../TmallItemUpdateSchemaGetResponse.go | 27 - ...mallItemUpdateSimpleschemaGetAPIRequest.go | 52 + ...allItemUpdateSimpleschemaGetAPIResponse.go | 31 + .../TmallItemUpdateSimpleschemaGetResponse.go | 31 - .../TmallItemVipAddSchemaGetAPIRequest.go | 38 + .../TmallItemVipAddSchemaGetAPIResponse.go | 27 + .../TmallItemVipAddSchemaGetResponse.go | 27 - .../TmallItemVipSchemaAddAPIRequest.go | 52 + .../TmallItemVipSchemaAddAPIResponse.go | 31 + .../product/TmallItemVipSchemaAddResponse.go | 31 - .../TmallItemVipSchemaUpdateAPIRequest.go | 66 + .../TmallItemVipSchemaUpdateAPIResponse.go | 31 + .../TmallItemVipSchemaUpdateResponse.go | 31 - .../TmallItemVipUpdateSchemaGetAPIRequest.go | 52 + .../TmallItemVipUpdateSchemaGetAPIResponse.go | 27 + .../TmallItemVipUpdateSchemaGetResponse.go | 27 - .../TmallProductAddSchemaGetAPIRequest.go | 66 + .../TmallProductAddSchemaGetAPIResponse.go | 27 + .../TmallProductAddSchemaGetResponse.go | 27 - .../TmallProductMatchSchemaGetAPIRequest.go | 52 + .../TmallProductMatchSchemaGetAPIResponse.go | 27 + .../TmallProductMatchSchemaGetResponse.go | 27 - .../TmallProductSchemaAddAPIRequest.go | 80 + .../TmallProductSchemaAddAPIResponse.go | 27 + .../product/TmallProductSchemaAddResponse.go | 27 - .../TmallProductSchemaGetAPIRequest.go | 52 + .../TmallProductSchemaGetAPIResponse.go | 27 + .../product/TmallProductSchemaGetResponse.go | 27 - .../TmallProductSchemaMatchAPIRequest.go | 66 + .../TmallProductSchemaMatchAPIResponse.go | 27 + .../TmallProductSchemaMatchResponse.go | 27 - .../TmallProductSchemaUpdateAPIRequest.go | 66 + .../TmallProductSchemaUpdateAPIResponse.go | 27 + .../TmallProductSchemaUpdateResponse.go | 27 - .../product/TmallProductSpecAddAPIRequest.go | 206 ++ .../product/TmallProductSpecAddAPIResponse.go | 27 + model/product/TmallProductSpecAddResponse.go | 27 - .../product/TmallProductSpecGetAPIRequest.go | 52 + .../product/TmallProductSpecGetAPIResponse.go | 27 + model/product/TmallProductSpecGetResponse.go | 27 - .../TmallProductSpecPicUploadAPIRequest.go | 66 + .../TmallProductSpecPicUploadAPIResponse.go | 27 + .../TmallProductSpecPicUploadResponse.go | 27 - .../product/TmallProductSpecsGetAPIRequest.go | 80 + .../TmallProductSpecsGetAPIResponse.go | 27 + model/product/TmallProductSpecsGetResponse.go | 27 - .../TmallProductSpecsTicketGetAPIRequest.go | 52 + .../TmallProductSpecsTicketGetAPIResponse.go | 27 + .../TmallProductSpecsTicketGetResponse.go | 27 - .../TmallProductTemplateGetAPIRequest.go | 52 + .../TmallProductTemplateGetAPIResponse.go | 27 + .../TmallProductTemplateGetResponse.go | 27 - .../TmallProductUpdateSchemaGetAPIRequest.go | 52 + .../TmallProductUpdateSchemaGetAPIResponse.go | 27 + .../TmallProductUpdateSchemaGetResponse.go | 27 - .../AlibabaArgusUpdateredriskAPIRequest.go | 52 + .../AlibabaArgusUpdateredriskAPIResponse.go | 33 + .../AlibabaArgusUpdateredriskResponse.go | 33 - ...ataservicePromotionruleDeleteAPIRequest.go | 52 + ...taservicePromotionruleDeleteAPIResponse.go | 27 + ...rDataservicePromotionruleDeleteResponse.go | 27 - ...DataservicePromotionruleQueryAPIRequest.go | 66 + ...ataservicePromotionruleQueryAPIResponse.go | 27 + ...srDataservicePromotionruleQueryResponse.go | 27 - ...DataservicePromotionruleWriteAPIRequest.go | 52 + ...ataservicePromotionruleWriteAPIResponse.go | 27 + ...srDataservicePromotionruleWriteResponse.go | 27 - .../promotion/AlibabaBenefitDrawAPIRequest.go | 86 + .../AlibabaBenefitDrawAPIResponse.go | 39 + model/promotion/AlibabaBenefitDrawResponse.go | 39 - .../AlibabaBenefitQueryAPIRequest.go | 86 + .../AlibabaBenefitQueryAPIResponse.go | 33 + .../promotion/AlibabaBenefitQueryResponse.go | 33 - ...babaInteractLotterydrawDodrawAPIRequest.go | 52 + ...abaInteractLotterydrawDodrawAPIResponse.go | 27 + ...libabaInteractLotterydrawDodrawResponse.go | 27 - ...ibabaInteractLotterydrawDodrawResultDto.go | 13 + .../AlibabaLatourStrategyIssueAPIRequest.go | 192 ++ .../AlibabaLatourStrategyIssueAPIResponse.go | 27 + .../AlibabaLatourStrategyIssueResponse.go | 27 - .../AlibabaLatourStrategyShowAPIRequest.go | 220 ++ .../AlibabaLatourStrategyShowAPIResponse.go | 27 + .../AlibabaLatourStrategyShowResponse.go | 27 - ...aMarketingLotteryActivityBindAPIRequest.go | 52 + ...MarketingLotteryActivityBindAPIResponse.go | 33 + ...abaMarketingLotteryActivityBindResponse.go | 33 - ...arketingLotteryActivityCreateAPIRequest.go | 52 + ...rketingLotteryActivityCreateAPIResponse.go | 33 + ...aMarketingLotteryActivityCreateResponse.go | 33 - ...arketingLotteryActivityDeleteAPIRequest.go | 52 + ...rketingLotteryActivityDeleteAPIResponse.go | 33 + ...aMarketingLotteryActivityDeleteResponse.go | 33 - ...MarketingLotteryActivityQueryAPIRequest.go | 52 + ...arketingLotteryActivityQueryAPIResponse.go | 33 + ...baMarketingLotteryActivityQueryResponse.go | 33 - ...arketingLotteryActivityUnbindAPIRequest.go | 52 + ...rketingLotteryActivityUnbindAPIResponse.go | 33 + ...aMarketingLotteryActivityUnbindResponse.go | 33 - ...baMarketingLotteryAwardAppendAPIRequest.go | 52 + ...aMarketingLotteryAwardAppendAPIResponse.go | 33 + ...babaMarketingLotteryAwardAppendResponse.go | 33 - ...abaMarketingLotteryAwardQueryAPIRequest.go | 52 + ...baMarketingLotteryAwardQueryAPIResponse.go | 33 + ...ibabaMarketingLotteryAwardQueryResponse.go | 33 - ...abaMarketingLotteryDrawDodrawAPIRequest.go | 52 + ...baMarketingLotteryDrawDodrawAPIResponse.go | 33 + ...ibabaMarketingLotteryDrawDodrawResponse.go | 33 - ...ibabaMarketingLotteryRuleSaveAPIRequest.go | 52 + ...babaMarketingLotteryRuleSaveAPIResponse.go | 33 + ...AlibabaMarketingLotteryRuleSaveResponse.go | 33 - ...aMarketingLotterySchemaCreateAPIRequest.go | 52 + ...MarketingLotterySchemaCreateAPIResponse.go | 33 + ...abaMarketingLotterySchemaCreateResponse.go | 33 - .../AlibabaMoutonActivityListAPIRequest.go | 164 ++ .../AlibabaMoutonActivityListAPIResponse.go | 27 + .../AlibabaMoutonActivityListResponse.go | 27 - .../AlibabaWdkCouponAbandonAPIRequest.go | 52 + .../AlibabaWdkCouponAbandonAPIResponse.go | 27 + .../AlibabaWdkCouponAbandonResponse.go | 27 - .../AlibabaWdkCouponSkuAddAPIRequest.go | 52 + .../AlibabaWdkCouponSkuAddAPIResponse.go | 27 + .../AlibabaWdkCouponSkuAddResponse.go | 27 - .../AlibabaWdkCouponSkuQueryAPIRequest.go | 52 + .../AlibabaWdkCouponSkuQueryAPIResponse.go | 27 + .../AlibabaWdkCouponSkuQueryResponse.go | 27 - .../AlibabaWdkCouponSkuRemoveAPIRequest.go | 52 + .../AlibabaWdkCouponSkuRemoveAPIResponse.go | 27 + .../AlibabaWdkCouponSkuRemoveResponse.go | 27 - .../AlibabaWdkCouponSpreadApplyAPIRequest.go | 52 + .../AlibabaWdkCouponSpreadApplyAPIResponse.go | 27 + .../AlibabaWdkCouponSpreadApplyResponse.go | 27 - ...libabaWdkCouponTemplateCreateAPIRequest.go | 52 + ...ibabaWdkCouponTemplateCreateAPIResponse.go | 27 + .../AlibabaWdkCouponTemplateCreateResponse.go | 27 - ...AlibabaWdkCouponTemplateQueryAPIRequest.go | 52 + ...libabaWdkCouponTemplateQueryAPIResponse.go | 27 + .../AlibabaWdkCouponTemplateQueryResponse.go | 27 - ...abaWdkCouponTemplateTerminateAPIRequest.go | 52 + ...baWdkCouponTemplateTerminateAPIResponse.go | 27 + ...ibabaWdkCouponTemplateTerminateResponse.go | 27 - ...libabaWdkCouponTemplateUpdateAPIRequest.go | 52 + ...ibabaWdkCouponTemplateUpdateAPIResponse.go | 27 + .../AlibabaWdkCouponTemplateUpdateResponse.go | 27 - ...ibabaWdkMarketingCouponSendmaAPIRequest.go | 52 + ...babaWdkMarketingCouponSendmaAPIResponse.go | 27 + ...AlibabaWdkMarketingCouponSendmaResponse.go | 27 - .../TaobaoCardExpandcardQueryAPIRequest.go | 66 + .../TaobaoCardExpandcardQueryAPIResponse.go | 27 + .../TaobaoCardExpandcardQueryResponse.go | 27 - .../TaobaoMarketingPromotionKfcAPIRequest.go | 66 + .../TaobaoMarketingPromotionKfcAPIResponse.go | 27 + .../TaobaoMarketingPromotionKfcResponse.go | 27 - ...ePromotionBenefitActivitySendAPIRequest.go | 52 + ...PromotionBenefitActivitySendAPIResponse.go | 27 + ...ilePromotionBenefitActivitySendResponse.go | 27 - ...otionBenefitActivitySendShareAPIRequest.go | 178 ++ ...tionBenefitActivitySendShareAPIResponse.go | 27 + ...omotionBenefitActivitySendShareResponse.go | 27 - ...baoMobilePromotionCouponApplyAPIRequest.go | 94 + ...aoMobilePromotionCouponApplyAPIResponse.go | 27 + ...aobaoMobilePromotionCouponApplyResponse.go | 27 - ...lePromotionCouponSellerSearchAPIRequest.go | 94 + ...ePromotionCouponSellerSearchAPIResponse.go | 27 + ...bilePromotionCouponSellerSearchResponse.go | 27 - .../TaobaoPromotionActivityGetAPIRequest.go | 52 + .../TaobaoPromotionActivityGetAPIResponse.go | 27 + .../TaobaoPromotionActivityGetResponse.go | 27 - ...romotionBenefitActivityDeleteAPIRequest.go | 52 + ...omotionBenefitActivityDeleteAPIResponse.go | 27 + ...oPromotionBenefitActivityDeleteResponse.go | 27 - ...otionBenefitActivityDetailGetAPIRequest.go | 52 + ...tionBenefitActivityDetailGetAPIResponse.go | 29 + ...omotionBenefitActivityDetailGetResponse.go | 29 - ...motionBenefitActivityRelationAPIRequest.go | 52 + ...otionBenefitActivityRelationAPIResponse.go | 29 + ...romotionBenefitActivityRelationResponse.go | 29 - ...oPromotionBenefitActivitySendAPIRequest.go | 108 + ...PromotionBenefitActivitySendAPIResponse.go | 33 + ...baoPromotionBenefitActivitySendResponse.go | 33 - ...tionBenefitActivityTimeUpdateAPIRequest.go | 80 + ...ionBenefitActivityTimeUpdateAPIResponse.go | 27 + ...motionBenefitActivityTimeUpdateResponse.go | 27 - ...romotionBenefitActivityUpdateAPIRequest.go | 52 + ...omotionBenefitActivityUpdateAPIResponse.go | 27 + ...oPromotionBenefitActivityUpdateResponse.go | 27 - ...aobaoPromotionBenefitSelectorAPIRequest.go | 57 + ...obaoPromotionBenefitSelectorAPIResponse.go | 34 + .../TaobaoPromotionBenefitSelectorResponse.go | 34 - .../TaobaoPromotionCouponAddAPIRequest.go | 94 + .../TaobaoPromotionCouponAddAPIResponse.go | 27 + .../TaobaoPromotionCouponAddResponse.go | 27 - .../TaobaoPromotionCouponApplyAPIRequest.go | 66 + .../TaobaoPromotionCouponApplyAPIResponse.go | 33 + .../TaobaoPromotionCouponApplyResponse.go | 33 - ...baoPromotionCouponBuyerSearchAPIRequest.go | 108 + ...aoPromotionCouponBuyerSearchAPIResponse.go | 35 + ...aobaoPromotionCouponBuyerSearchResponse.go | 35 - ...aoPromotionCouponSellerSearchAPIRequest.go | 94 + ...oPromotionCouponSellerSearchAPIResponse.go | 35 + ...obaoPromotionCouponSellerSearchResponse.go | 35 - .../TaobaoPromotionCouponSendAPIRequest.go | 66 + .../TaobaoPromotionCouponSendAPIResponse.go | 31 + .../TaobaoPromotionCouponSendResponse.go | 31 - .../TaobaoPromotionCouponSnsSendAPIRequest.go | 66 + ...TaobaoPromotionCouponSnsSendAPIResponse.go | 29 + .../TaobaoPromotionCouponSnsSendResponse.go | 29 - .../TaobaoPromotionCouponsGetAPIRequest.go | 108 + .../TaobaoPromotionCouponsGetAPIResponse.go | 29 + .../TaobaoPromotionCouponsGetResponse.go | 29 - ...omotionLimitdiscountDetailGetAPIRequest.go | 52 + ...motionLimitdiscountDetailGetAPIResponse.go | 27 + ...PromotionLimitdiscountDetailGetResponse.go | 27 - ...obaoPromotionLimitdiscountGetAPIRequest.go | 108 + ...baoPromotionLimitdiscountGetAPIResponse.go | 29 + ...TaobaoPromotionLimitdiscountGetResponse.go | 29 - .../TaobaoPromotionMealGetAPIRequest.go | 66 + .../TaobaoPromotionMealGetAPIResponse.go | 27 + .../TaobaoPromotionMealGetResponse.go | 27 - ...PromotionmiscActivityRangeAddAPIRequest.go | 66 + ...romotionmiscActivityRangeAddAPIResponse.go | 27 + ...aoPromotionmiscActivityRangeAddResponse.go | 27 - ...ionmiscActivityRangeAllRemoveAPIRequest.go | 52 + ...onmiscActivityRangeAllRemoveAPIResponse.go | 27 + ...otionmiscActivityRangeAllRemoveResponse.go | 27 - ...otionmiscActivityRangeListGetAPIRequest.go | 52 + ...tionmiscActivityRangeListGetAPIResponse.go | 27 + ...omotionmiscActivityRangeListGetResponse.go | 27 - ...motionmiscActivityRangeRemoveAPIRequest.go | 66 + ...otionmiscActivityRangeRemoveAPIResponse.go | 27 + ...romotionmiscActivityRangeRemoveResponse.go | 27 - ...tionmiscCommonItemActivityAddAPIRequest.go | 124 ++ ...ionmiscCommonItemActivityAddAPIResponse.go | 31 + ...motionmiscCommonItemActivityAddResponse.go | 31 - ...nmiscCommonItemActivityDeleteAPIRequest.go | 52 + ...miscCommonItemActivityDeleteAPIResponse.go | 27 + ...ionmiscCommonItemActivityDeleteResponse.go | 27 - ...tionmiscCommonItemActivityGetAPIRequest.go | 52 + ...ionmiscCommonItemActivityGetAPIResponse.go | 29 + ...motionmiscCommonItemActivityGetResponse.go | 29 - ...miscCommonItemActivityListGetAPIRequest.go | 66 + ...iscCommonItemActivityListGetAPIResponse.go | 31 + ...onmiscCommonItemActivityListGetResponse.go | 31 - ...nmiscCommonItemActivityUpdateAPIRequest.go | 138 ++ ...miscCommonItemActivityUpdateAPIResponse.go | 29 + ...ionmiscCommonItemActivityUpdateResponse.go | 29 - ...motionmiscCommonItemDetailAddAPIRequest.go | 97 + ...otionmiscCommonItemDetailAddAPIResponse.go | 32 + ...romotionmiscCommonItemDetailAddResponse.go | 32 - ...ionmiscCommonItemDetailDeleteAPIRequest.go | 66 + ...onmiscCommonItemDetailDeleteAPIResponse.go | 27 + ...otionmiscCommonItemDetailDeleteResponse.go | 27 - ...onmiscCommonItemDetailListGetAPIRequest.go | 80 + ...nmiscCommonItemDetailListGetAPIResponse.go | 31 + ...tionmiscCommonItemDetailListGetResponse.go | 31 - ...ionmiscCommonItemDetailUpdateAPIRequest.go | 111 ++ ...onmiscCommonItemDetailUpdateAPIResponse.go | 30 + ...otionmiscCommonItemDetailUpdateResponse.go | 30 - ...oPromotionmiscItemActivityAddAPIRequest.go | 178 ++ ...PromotionmiscItemActivityAddAPIResponse.go | 29 + ...baoPromotionmiscItemActivityAddResponse.go | 29 - ...omotionmiscItemActivityDeleteAPIRequest.go | 52 + ...motionmiscItemActivityDeleteAPIResponse.go | 27 + ...PromotionmiscItemActivityDeleteResponse.go | 27 - ...oPromotionmiscItemActivityGetAPIRequest.go | 52 + ...PromotionmiscItemActivityGetAPIResponse.go | 27 + ...baoPromotionmiscItemActivityGetResponse.go | 27 - ...motionmiscItemActivityListGetAPIRequest.go | 66 + ...otionmiscItemActivityListGetAPIResponse.go | 29 + ...romotionmiscItemActivityListGetResponse.go | 29 - ...omotionmiscItemActivityUpdateAPIRequest.go | 192 ++ ...motionmiscItemActivityUpdateAPIResponse.go | 27 + ...PromotionmiscItemActivityUpdateResponse.go | 27 - ...aoPromotionmiscMjsActivityAddAPIRequest.go | 388 ++++ ...oPromotionmiscMjsActivityAddAPIResponse.go | 29 + ...obaoPromotionmiscMjsActivityAddResponse.go | 29 - ...romotionmiscMjsActivityDeleteAPIRequest.go | 52 + ...omotionmiscMjsActivityDeleteAPIResponse.go | 27 + ...oPromotionmiscMjsActivityDeleteResponse.go | 27 - ...aoPromotionmiscMjsActivityGetAPIRequest.go | 52 + ...oPromotionmiscMjsActivityGetAPIResponse.go | 27 + ...obaoPromotionmiscMjsActivityGetResponse.go | 27 - ...omotionmiscMjsActivityListGetAPIRequest.go | 80 + ...motionmiscMjsActivityListGetAPIResponse.go | 29 + ...PromotionmiscMjsActivityListGetResponse.go | 29 - ...romotionmiscMjsActivityUpdateAPIRequest.go | 388 ++++ ...omotionmiscMjsActivityUpdateAPIResponse.go | 27 + ...oPromotionmiscMjsActivityUpdateResponse.go | 27 - .../TaobaoPromotionmiscToolCheckAPIRequest.go | 66 + ...TaobaoPromotionmiscToolCheckAPIResponse.go | 31 + .../TaobaoPromotionmiscToolCheckResponse.go | 31 - .../TaobaoTradeOrdersortGetAPIRequest.go | 80 + .../TaobaoTradeOrdersortGetAPIResponse.go | 27 + .../TaobaoTradeOrdersortGetResponse.go | 27 - .../TaobaoUmpActivitiesGetAPIRequest.go | 80 + .../TaobaoUmpActivitiesGetAPIResponse.go | 29 + .../TaobaoUmpActivitiesGetResponse.go | 29 - .../TaobaoUmpActivitiesListGetAPIRequest.go | 52 + .../TaobaoUmpActivitiesListGetAPIResponse.go | 27 + .../TaobaoUmpActivitiesListGetResponse.go | 27 - .../TaobaoUmpActivityAddAPIRequest.go | 66 + .../TaobaoUmpActivityAddAPIResponse.go | 27 + .../promotion/TaobaoUmpActivityAddResponse.go | 27 - .../TaobaoUmpActivityDeleteAPIRequest.go | 52 + .../TaobaoUmpActivityDeleteAPIResponse.go | 27 + .../TaobaoUmpActivityDeleteResponse.go | 27 - .../TaobaoUmpActivityGetAPIRequest.go | 52 + .../TaobaoUmpActivityGetAPIResponse.go | 27 + .../promotion/TaobaoUmpActivityGetResponse.go | 27 - .../TaobaoUmpActivityUpdateAPIRequest.go | 66 + .../TaobaoUmpActivityUpdateAPIResponse.go | 27 + .../TaobaoUmpActivityUpdateResponse.go | 27 - .../promotion/TaobaoUmpDetailAddAPIRequest.go | 66 + .../TaobaoUmpDetailAddAPIResponse.go | 27 + model/promotion/TaobaoUmpDetailAddResponse.go | 27 - .../TaobaoUmpDetailDeleteAPIRequest.go | 52 + .../TaobaoUmpDetailDeleteAPIResponse.go | 27 + .../TaobaoUmpDetailDeleteResponse.go | 27 - .../promotion/TaobaoUmpDetailGetAPIRequest.go | 52 + .../TaobaoUmpDetailGetAPIResponse.go | 27 + model/promotion/TaobaoUmpDetailGetResponse.go | 27 - .../TaobaoUmpDetailListAddAPIRequest.go | 66 + .../TaobaoUmpDetailListAddAPIResponse.go | 27 + .../TaobaoUmpDetailListAddResponse.go | 27 - .../TaobaoUmpDetailUpdateAPIRequest.go | 66 + .../TaobaoUmpDetailUpdateAPIResponse.go | 27 + .../TaobaoUmpDetailUpdateResponse.go | 27 - .../TaobaoUmpDetailsGetAPIRequest.go | 80 + .../TaobaoUmpDetailsGetAPIResponse.go | 29 + .../promotion/TaobaoUmpDetailsGetResponse.go | 29 - .../TaobaoUmpMbbGetbycodeAPIRequest.go | 52 + .../TaobaoUmpMbbGetbycodeAPIResponse.go | 27 + .../TaobaoUmpMbbGetbycodeResponse.go | 27 - .../TaobaoUmpMbbGetbyidAPIRequest.go | 52 + .../TaobaoUmpMbbGetbyidAPIResponse.go | 27 + .../promotion/TaobaoUmpMbbGetbyidResponse.go | 27 - model/promotion/TaobaoUmpMbbsGetAPIRequest.go | 52 + .../promotion/TaobaoUmpMbbsGetAPIResponse.go | 27 + model/promotion/TaobaoUmpMbbsGetResponse.go | 27 - .../TaobaoUmpMbbsListGetAPIRequest.go | 52 + .../TaobaoUmpMbbsListGetAPIResponse.go | 27 + .../promotion/TaobaoUmpMbbsListGetResponse.go | 27 - ...UmpPromotionGlobalDiscountGetAPIRequest.go | 38 + ...mpPromotionGlobalDiscountGetAPIResponse.go | 27 + ...aoUmpPromotionGlobalDiscountGetResponse.go | 27 - .../promotion/TaobaoUmpRangeAddAPIRequest.go | 80 + .../promotion/TaobaoUmpRangeAddAPIResponse.go | 27 + model/promotion/TaobaoUmpRangeAddResponse.go | 27 - .../TaobaoUmpRangeDeleteAPIRequest.go | 80 + .../TaobaoUmpRangeDeleteAPIResponse.go | 27 + .../promotion/TaobaoUmpRangeDeleteResponse.go | 27 - .../promotion/TaobaoUmpRangeGetAPIRequest.go | 52 + .../promotion/TaobaoUmpRangeGetAPIResponse.go | 27 + model/promotion/TaobaoUmpRangeGetResponse.go | 27 - .../TaobaoUmpShoutaotagAddAPIRequest.go | 81 + .../TaobaoUmpShoutaotagAddAPIResponse.go | 28 + .../TaobaoUmpShoutaotagAddResponse.go | 28 - model/promotion/TaobaoUmpToolGetAPIRequest.go | 52 + .../promotion/TaobaoUmpToolGetAPIResponse.go | 27 + model/promotion/TaobaoUmpToolGetResponse.go | 27 - .../promotion/TaobaoUmpToolsGetAPIRequest.go | 52 + .../promotion/TaobaoUmpToolsGetAPIResponse.go | 27 + model/promotion/TaobaoUmpToolsGetResponse.go | 27 - ...allCcfCrowdActivityuserUploadAPIRequest.go | 94 + ...llCcfCrowdActivityuserUploadAPIResponse.go | 35 + ...TmallCcfCrowdActivityuserUploadResponse.go | 35 - .../TmallPromotagTagApplyAPIRequest.go | 94 + .../TmallPromotagTagApplyAPIResponse.go | 29 + .../TmallPromotagTagApplyResponse.go | 29 - .../TmallPromotagTagFindAPIRequest.go | 94 + .../TmallPromotagTagFindAPIResponse.go | 27 + .../promotion/TmallPromotagTagFindResponse.go | 27 - .../TmallPromotagTagRemovetagAPIRequest.go | 52 + .../TmallPromotagTagRemovetagAPIResponse.go | 27 + .../TmallPromotagTagRemovetagResponse.go | 27 - .../TmallPromotagTaguserJudgeAPIRequest.go | 66 + .../TmallPromotagTaguserJudgeAPIResponse.go | 29 + .../TmallPromotagTaguserJudgeResponse.go | 29 - .../TmallPromotagTaguserRemoveAPIRequest.go | 66 + .../TmallPromotagTaguserRemoveAPIResponse.go | 27 + .../TmallPromotagTaguserRemoveResponse.go | 27 - .../TmallPromotagTaguserSaveAPIRequest.go | 66 + .../TmallPromotagTaguserSaveAPIResponse.go | 27 + .../TmallPromotagTaguserSaveResponse.go | 27 - .../TmallPromotionCouponQueryAPIRequest.go | 80 + .../TmallPromotionCouponQueryAPIResponse.go | 27 + .../TmallPromotionCouponQueryResponse.go | 27 - .../TmallPromotionCouponUseAPIRequest.go | 122 ++ .../TmallPromotionCouponUseAPIResponse.go | 31 + .../TmallPromotionCouponUseResponse.go | 31 - .../TmallPromotionCouponUserAPIRequest.go | 80 + .../TmallPromotionCouponUserAPIResponse.go | 27 + .../TmallPromotionCouponUserResponse.go | 27 - .../AlibabaCeresSupplierPoQueryAPIRequest.go | 80 + .../AlibabaCeresSupplierPoQueryAPIResponse.go | 27 + .../AlibabaCeresSupplierPoQueryResponse.go | 27 - ...abaCeresSupplierPoQuerydetailAPIRequest.go | 52 + ...baCeresSupplierPoQuerydetailAPIResponse.go | 27 + ...ibabaCeresSupplierPoQuerydetailResponse.go | 27 - model/pur/AlibabaPurBasketMergeAPIRequest.go | 52 + model/pur/AlibabaPurBasketMergeAPIResponse.go | 27 + model/pur/AlibabaPurBasketMergeResponse.go | 27 - .../AlibabaPurMediaStatisticsAPIRequest.go | 52 + .../AlibabaPurMediaStatisticsAPIResponse.go | 27 + .../pur/AlibabaPurMediaStatisticsResponse.go | 27 - model/pur/AlibabaPurPrCreateAPIRequest.go | 52 + model/pur/AlibabaPurPrCreateAPIResponse.go | 27 + model/pur/AlibabaPurPrCreateResponse.go | 27 - model/pur/AlibabaPurProductSyncAPIRequest.go | 52 + model/pur/AlibabaPurProductSyncAPIResponse.go | 27 + model/pur/AlibabaPurProductSyncResponse.go | 27 - .../AlibabaPurSupplierAsncreateAPIRequest.go | 52 + .../AlibabaPurSupplierAsncreateAPIResponse.go | 27 + .../AlibabaPurSupplierAsncreateResponse.go | 27 - ...ibabaPurSupplierInvoicecreateAPIRequest.go | 52 + ...babaPurSupplierInvoicecreateAPIResponse.go | 27 + ...AlibabaPurSupplierInvoicecreateResponse.go | 27 - ...libabaPurSupplierPorespcreateAPIRequest.go | 52 + ...ibabaPurSupplierPorespcreateAPIResponse.go | 27 + .../AlibabaPurSupplierPorespcreateResponse.go | 27 - ...DaogoubaoOrderStatisticsTotalAPIRequest.go | 66 + ...aogoubaoOrderStatisticsTotalAPIResponse.go | 27 + ...aoDaogoubaoOrderStatisticsTotalResponse.go | 27 - .../TaobaoQianniuBuyerTagGetAPIRequest.go | 66 + .../TaobaoQianniuBuyerTagGetAPIResponse.go | 27 + .../TaobaoQianniuBuyerTagGetResponse.go | 27 - ...iuCloudkefuOnlinestatuslogGetAPIRequest.go | 81 + ...uCloudkefuOnlinestatuslogGetAPIResponse.go | 38 + ...nniuCloudkefuOnlinestatuslogGetResponse.go | 38 - .../TaobaoQianniuNumberPutAPIRequest.go | 52 + .../TaobaoQianniuNumberPutAPIResponse.go | 27 + .../qianniu/TaobaoQianniuNumberPutResponse.go | 27 - .../TaobaoQianniuTaskCancelAPIRequest.go | 66 + .../TaobaoQianniuTaskCancelAPIResponse.go | 27 + .../TaobaoQianniuTaskCancelResponse.go | 27 - .../TaobaoQianniuTaskCreateAPIRequest.go | 66 + .../TaobaoQianniuTaskCreateAPIResponse.go | 27 + .../TaobaoQianniuTaskCreateResponse.go | 27 - .../TaobaoQianniuTaskFinishAPIRequest.go | 66 + .../TaobaoQianniuTaskFinishAPIResponse.go | 27 + .../TaobaoQianniuTaskFinishResponse.go | 27 - .../TaobaoQianniuTaskIncreaseAPIRequest.go | 66 + .../TaobaoQianniuTaskIncreaseAPIResponse.go | 27 + .../TaobaoQianniuTaskIncreaseResponse.go | 27 - .../TaobaoQianniuTaskMessageSendAPIRequest.go | 66 + ...TaobaoQianniuTaskMessageSendAPIResponse.go | 27 + .../TaobaoQianniuTaskMessageSendResponse.go | 27 - .../TaobaoQianniuTaskRemoveAPIRequest.go | 52 + .../TaobaoQianniuTaskRemoveAPIResponse.go | 27 + .../TaobaoQianniuTaskRemoveResponse.go | 27 - .../TaobaoQianniuTaskUpdateAPIRequest.go | 192 ++ .../TaobaoQianniuTaskUpdateAPIResponse.go | 27 + .../TaobaoQianniuTaskUpdateResponse.go | 27 - .../TaobaoQianniuTaskmetaUpdateAPIRequest.go | 52 + .../TaobaoQianniuTaskmetaUpdateAPIResponse.go | 27 + .../TaobaoQianniuTaskmetaUpdateResponse.go | 27 - .../TaobaoQianniuTaskmetasGetAPIRequest.go | 206 ++ .../TaobaoQianniuTaskmetasGetAPIResponse.go | 27 + .../TaobaoQianniuTaskmetasGetResponse.go | 27 - .../TaobaoQianniuTasksCountAPIRequest.go | 262 +++ .../TaobaoQianniuTasksCountAPIResponse.go | 27 + .../TaobaoQianniuTasksCountResponse.go | 27 - .../TaobaoQianniuTasksGetAPIRequest.go | 402 ++++ .../TaobaoQianniuTasksGetAPIResponse.go | 27 + .../qianniu/TaobaoQianniuTasksGetResponse.go | 27 - model/qimen/RequestDo.go | 29 + ...baoQimenChannelinventoryQueryAPIRequest.go | 52 + ...aoQimenChannelinventoryQueryAPIResponse.go | 27 + ...aobaoQimenChannelinventoryQueryResponse.go | 27 - .../TaobaoQimenCombineitemDeleteAPIRequest.go | 52 + ...TaobaoQimenCombineitemDeleteAPIResponse.go | 27 + .../TaobaoQimenCombineitemDeleteResponse.go | 27 - .../TaobaoQimenCombineitemQueryAPIRequest.go | 52 + .../TaobaoQimenCombineitemQueryAPIResponse.go | 27 + ...aoQimenCombineitemSynchronizeAPIRequest.go | 52 + ...oQimenCombineitemSynchronizeAPIResponse.go | 27 + .../TaobaoQimenCombineitemSynchronizeBatch.go | 19 + ...imenDeliveryorderBatchconfirmAPIRequest.go | 52 + ...menDeliveryorderBatchconfirmAPIResponse.go | 27 + ...obaoQimenDeliveryorderBatchconfirmBatch.go | 17 + ...baoQimenDeliveryorderBatchconfirmDetail.go | 7 + ...QimenDeliveryorderBatchcreateAPIRequest.go | 52 + ...imenDeliveryorderBatchcreateAPIResponse.go | 27 + ...eliveryorderBatchcreateAnswerAPIRequest.go | 52 + ...liveryorderBatchcreateAnswerAPIResponse.go | 27 + ...obaoQimenDeliveryorderBatchcreateDetail.go | 7 + ...aoQimenDeliveryorderBatchcreateResponse.go | 27 - ...obaoQimenDeliveryorderConfirmAPIRequest.go | 52 + ...baoQimenDeliveryorderConfirmAPIResponse.go | 27 + .../TaobaoQimenDeliveryorderConfirmBatch.go | 19 + .../TaobaoQimenDeliveryorderConfirmDetail.go | 7 + ...aobaoQimenDeliveryorderCreateAPIRequest.go | 52 + ...obaoQimenDeliveryorderCreateAPIResponse.go | 27 + .../TaobaoQimenDeliveryorderCreateDetail.go | 7 + .../TaobaoQimenDeliveryorderCreateResponse.go | 27 - ...TaobaoQimenDeliveryorderQueryAPIRequest.go | 52 + ...aobaoQimenDeliveryorderQueryAPIResponse.go | 27 + .../TaobaoQimenDeliveryorderQueryBatch.go | 17 + .../TaobaoQimenDeliveryorderQueryDetail.go | 7 + .../TaobaoQimenDeliveryorderQueryResponse.go | 27 - .../TaobaoQimenEntryorderConfirmAPIRequest.go | 52 + ...TaobaoQimenEntryorderConfirmAPIResponse.go | 27 + .../TaobaoQimenEntryorderConfirmBatch.go | 17 + .../TaobaoQimenEntryorderCreateAPIRequest.go | 52 + .../TaobaoQimenEntryorderCreateAPIResponse.go | 27 + .../TaobaoQimenEntryorderQueryAPIRequest.go | 52 + .../TaobaoQimenEntryorderQueryAPIResponse.go | 27 + .../TaobaoQimenEntryorderQueryResponse.go | 27 - .../TaobaoQimenExpressinfoQueryAPIRequest.go | 52 + .../TaobaoQimenExpressinfoQueryAPIResponse.go | 27 + .../TaobaoQimenInventoryQueryAPIRequest.go | 52 + .../TaobaoQimenInventoryQueryAPIResponse.go | 27 + .../TaobaoQimenInventoryQueryResponse.go | 27 - .../TaobaoQimenInventoryReportAPIRequest.go | 52 + .../TaobaoQimenInventoryReportAPIResponse.go | 27 + ...aobaoQimenInventorybatchQueryAPIRequest.go | 52 + ...obaoQimenInventorybatchQueryAPIResponse.go | 27 + ...aoQimenInventoryreserveCancelAPIRequest.go | 52 + ...oQimenInventoryreserveCancelAPIResponse.go | 27 + ...aobaoQimenInventoryruleCreateAPIRequest.go | 52 + ...obaoQimenInventoryruleCreateAPIResponse.go | 27 + .../TaobaoQimenInventoryruleCreateResponse.go | 27 - .../TaobaoQimenItemlackReportAPIRequest.go | 52 + .../TaobaoQimenItemlackReportAPIResponse.go | 27 + .../TaobaoQimenItemmappingCreateAPIRequest.go | 52 + ...TaobaoQimenItemmappingCreateAPIResponse.go | 27 + .../TaobaoQimenItemmappingCreateResponse.go | 27 - .../TaobaoQimenItemmappingQueryAPIRequest.go | 52 + .../TaobaoQimenItemmappingQueryAPIResponse.go | 27 + .../TaobaoQimenItemsSynchronizeAPIRequest.go | 52 + .../TaobaoQimenItemsSynchronizeAPIResponse.go | 27 + .../TaobaoQimenItemsSynchronizeResponse.go | 27 - .../TaobaoQimenItemstoreBandingAPIRequest.go | 94 + .../TaobaoQimenItemstoreBandingAPIResponse.go | 31 + .../TaobaoQimenItemstoreBandingResponse.go | 31 - .../TaobaoQimenItemstoreQueryAPIRequest.go | 66 + .../TaobaoQimenItemstoreQueryAPIResponse.go | 35 + .../TaobaoQimenItemstoreQueryResponse.go | 35 - .../TaobaoQimenOrderCallbackAPIRequest.go | 52 + .../TaobaoQimenOrderCallbackAPIResponse.go | 27 + .../qimen/TaobaoQimenOrderCallbackResponse.go | 27 - .../qimen/TaobaoQimenOrderCancelAPIRequest.go | 52 + .../TaobaoQimenOrderCancelAPIResponse.go | 27 + model/qimen/TaobaoQimenOrderCancelResponse.go | 27 - .../TaobaoQimenOrderPendingAPIRequest.go | 52 + .../TaobaoQimenOrderPendingAPIResponse.go | 27 + .../qimen/TaobaoQimenOrderPendingResponse.go | 27 - .../qimen/TaobaoQimenOrderQueryAPIRequest.go | 52 + .../qimen/TaobaoQimenOrderQueryAPIResponse.go | 27 + .../TaobaoQimenOrderSnReportAPIRequest.go | 52 + .../TaobaoQimenOrderSnReportAPIResponse.go | 27 + ...obaoQimenOrderexceptionReportAPIRequest.go | 52 + ...baoQimenOrderexceptionReportAPIResponse.go | 27 + .../TaobaoQimenOrderexceptionReportBatch.go | 19 + .../TaobaoQimenOrderprocessQueryAPIRequest.go | 52 + ...TaobaoQimenOrderprocessQueryAPIResponse.go | 27 + .../TaobaoQimenOrderprocessQueryResponse.go | 27 - ...TaobaoQimenOrderprocessReportAPIRequest.go | 52 + ...aobaoQimenOrderprocessReportAPIResponse.go | 27 + .../TaobaoQimenReceiverinfoQueryAPIRequest.go | 52 + ...TaobaoQimenReceiverinfoQueryAPIResponse.go | 27 + ...TaobaoQimenReturnorderConfirmAPIRequest.go | 52 + ...aobaoQimenReturnorderConfirmAPIResponse.go | 27 + .../TaobaoQimenReturnorderConfirmBatch.go | 19 + .../TaobaoQimenReturnorderCreateAPIRequest.go | 52 + ...TaobaoQimenReturnorderCreateAPIResponse.go | 27 + ...aobaoQimenReturnpackageReportAPIRequest.go | 52 + ...obaoQimenReturnpackageReportAPIResponse.go | 27 + .../TaobaoQimenShopSynchronizeAPIRequest.go | 52 + .../TaobaoQimenShopSynchronizeAPIResponse.go | 27 + .../TaobaoQimenSingleitemQueryAPIRequest.go | 52 + .../TaobaoQimenSingleitemQueryAPIResponse.go | 27 + .../TaobaoQimenSingleitemQueryResponse.go | 27 - ...baoQimenSingleitemSynchronizeAPIRequest.go | 52 + ...aoQimenSingleitemSynchronizeAPIResponse.go | 27 + model/qimen/TaobaoQimenSnReportAPIRequest.go | 52 + model/qimen/TaobaoQimenSnReportAPIResponse.go | 27 + .../qimen/TaobaoQimenStockQueryAPIRequest.go | 52 + .../qimen/TaobaoQimenStockQueryAPIResponse.go | 27 + model/qimen/TaobaoQimenStockQueryResponse.go | 27 - .../TaobaoQimenStockchangeReportAPIRequest.go | 52 + ...TaobaoQimenStockchangeReportAPIResponse.go | 27 + .../TaobaoQimenStockchangeReportBatch.go | 17 + .../TaobaoQimenStockoutConfirmAPIRequest.go | 52 + .../TaobaoQimenStockoutConfirmAPIResponse.go | 27 + .../qimen/TaobaoQimenStockoutConfirmBatch.go | 17 + .../TaobaoQimenStockoutConfirmResponse.go | 27 - .../TaobaoQimenStockoutCreateAPIRequest.go | 52 + .../TaobaoQimenStockoutCreateAPIResponse.go | 27 + .../qimen/TaobaoQimenStoreCreateAPIRequest.go | 220 ++ .../TaobaoQimenStoreCreateAPIResponse.go | 33 + model/qimen/TaobaoQimenStoreCreateResponse.go | 33 - .../qimen/TaobaoQimenStoreDeleteAPIRequest.go | 52 + .../TaobaoQimenStoreDeleteAPIResponse.go | 31 + model/qimen/TaobaoQimenStoreDeleteResponse.go | 31 - .../qimen/TaobaoQimenStoreQueryAPIRequest.go | 52 + .../qimen/TaobaoQimenStoreQueryAPIResponse.go | 57 + model/qimen/TaobaoQimenStoreQueryResponse.go | 57 - .../qimen/TaobaoQimenStoreUpdateAPIRequest.go | 234 +++ .../TaobaoQimenStoreUpdateAPIResponse.go | 31 + model/qimen/TaobaoQimenStoreUpdateResponse.go | 31 - .../TaobaoQimenStorecategoryGetAPIRequest.go | 52 + .../TaobaoQimenStorecategoryGetAPIResponse.go | 33 + .../TaobaoQimenStorecategoryGetResponse.go | 33 - .../TaobaoQimenStoreitemQueryAPIRequest.go | 66 + .../TaobaoQimenStoreitemQueryAPIResponse.go | 35 + .../TaobaoQimenStoreitemQueryResponse.go | 35 - ...aobaoQimenStoreprocessConfirmAPIRequest.go | 52 + ...obaoQimenStoreprocessConfirmAPIResponse.go | 27 + ...TaobaoQimenStoreprocessCreateAPIRequest.go | 52 + ...aobaoQimenStoreprocessCreateAPIResponse.go | 27 + .../TaobaoQimenStoreprocessCreateResponse.go | 27 - ...aobaoQimenSupplierSynchronizeAPIRequest.go | 52 + ...obaoQimenSupplierSynchronizeAPIResponse.go | 27 + ...aobaoQimenTransferorderCreateAPIRequest.go | 52 + ...obaoQimenTransferorderCreateAPIResponse.go | 27 + .../TaobaoQimenTransferorderCreateResponse.go | 27 - ...TaobaoQimenTransferorderQueryAPIRequest.go | 52 + ...aobaoQimenTransferorderQueryAPIResponse.go | 27 + .../TaobaoQimenTransferorderQueryResponse.go | 27 - ...aobaoQimenTransferorderReportAPIRequest.go | 52 + ...obaoQimenTransferorderReportAPIResponse.go | 27 + .../TaobaoQimenTransferorderReportResponse.go | 27 - ...TaobaoQimenWarehouseinfoQueryAPIRequest.go | 52 + ...aobaoQimenWarehouseinfoQueryAPIResponse.go | 27 + ...QimenWarehouseinfoSynchronizeAPIRequest.go | 52 + ...imenWarehouseinfoSynchronizeAPIResponse.go | 27 + .../TaobaoQimenWavenumReportAPIRequest.go | 52 + .../TaobaoQimenWavenumReportAPIResponse.go | 27 + model/qt/TaobaoQtReportAddAPIRequest.go | 290 +++ model/qt/TaobaoQtReportAddAPIResponse.go | 27 + model/qt/TaobaoQtReportAddResponse.go | 27 - model/qt/TaobaoQtReportDeleteAPIRequest.go | 52 + model/qt/TaobaoQtReportDeleteAPIResponse.go | 27 + model/qt/TaobaoQtReportDeleteResponse.go | 27 - model/qt/TaobaoQtReportGetAPIRequest.go | 52 + model/qt/TaobaoQtReportGetAPIResponse.go | 27 + model/qt/TaobaoQtReportGetResponse.go | 27 - model/qt/TaobaoQtReportUpdateAPIRequest.go | 290 +++ model/qt/TaobaoQtReportUpdateAPIResponse.go | 27 + model/qt/TaobaoQtReportUpdateResponse.go | 27 - model/qt/TaobaoQtReportsGetAPIRequest.go | 122 ++ model/qt/TaobaoQtReportsGetAPIResponse.go | 27 + model/qt/TaobaoQtReportsGetResponse.go | 27 - model/qt/TaobaoTsPropertyGetAPIRequest.go | 52 + model/qt/TaobaoTsPropertyGetAPIResponse.go | 27 + model/qt/TaobaoTsPropertyGetResponse.go | 27 - model/qt/TaobaoTsSubscribeGetAPIRequest.go | 66 + model/qt/TaobaoTsSubscribeGetAPIResponse.go | 27 + model/qt/TaobaoTsSubscribeGetResponse.go | 27 - .../rail/AlitripRailIrCarrierGetAPIRequest.go | 52 + .../AlitripRailIrCarrierGetAPIResponse.go | 27 + model/rail/AlitripRailIrCarrierGetResponse.go | 27 - .../AlitripRailIrDivisionGetAPIRequest.go | 95 + .../AlitripRailIrDivisionGetAPIResponse.go | 28 + .../rail/AlitripRailIrDivisionGetResponse.go | 28 - .../rail/AlitripRailIrServiceGetAPIRequest.go | 66 + .../AlitripRailIrServiceGetAPIResponse.go | 27 + model/rail/AlitripRailIrServiceGetResponse.go | 27 - .../rail/AlitripRailIrStationGetAPIRequest.go | 80 + .../AlitripRailIrStationGetAPIResponse.go | 27 + model/rail/AlitripRailIrStationGetResponse.go | 27 - .../AlitripRailTradeCloseticketAPIRequest.go | 94 + .../AlitripRailTradeCloseticketAPIResponse.go | 27 + .../AlitripRailTradeCloseticketResponse.go | 27 - .../AlitripRailTradeIssueticketAPIRequest.go | 94 + .../AlitripRailTradeIssueticketAPIResponse.go | 27 + .../AlitripRailTradeIssueticketResponse.go | 27 - ...dentificationCaseResultUpdateAPIRequest.go | 52 + ...entificationCaseResultUpdateAPIResponse.go | 27 + ...sIdentificationCaseResultUpdateResponse.go | 27 - ...eniusIdentificationCaseUpdateAPIRequest.go | 52 + ...niusIdentificationCaseUpdateAPIResponse.go | 27 + ...igeniusIdentificationCaseUpdateResponse.go | 27 - ...aoRdcAligeniusSendgoodsCancelAPIRequest.go | 52 + ...oRdcAligeniusSendgoodsCancelAPIResponse.go | 27 + ...obaoRdcAligeniusSendgoodsCancelResponse.go | 27 - model/refund/TaobaoRefundGetAPIRequest.go | 66 + model/refund/TaobaoRefundGetAPIResponse.go | 27 + model/refund/TaobaoRefundGetResponse.go | 27 - .../TaobaoRefundMessageAddAPIRequest.go | 80 + .../TaobaoRefundMessageAddAPIResponse.go | 27 + .../refund/TaobaoRefundMessageAddResponse.go | 27 - .../TaobaoRefundMessagesGetAPIRequest.go | 108 + .../TaobaoRefundMessagesGetAPIResponse.go | 29 + .../refund/TaobaoRefundMessagesGetResponse.go | 29 - model/refund/TaobaoRefundRefuseAPIRequest.go | 122 ++ model/refund/TaobaoRefundRefuseAPIResponse.go | 29 + model/refund/TaobaoRefundRefuseResponse.go | 29 - .../TaobaoRefundRefusereasonGetAPIRequest.go | 80 + .../TaobaoRefundRefusereasonGetAPIResponse.go | 31 + .../TaobaoRefundRefusereasonGetResponse.go | 31 - .../refund/TaobaoRefundsApplyGetAPIRequest.go | 122 ++ .../TaobaoRefundsApplyGetAPIResponse.go | 29 + model/refund/TaobaoRefundsApplyGetResponse.go | 29 - .../refund/TaobaoRpRefundReviewAPIRequest.go | 122 ++ .../refund/TaobaoRpRefundReviewAPIResponse.go | 27 + model/refund/TaobaoRpRefundReviewResponse.go | 27 - .../refund/TaobaoRpRefundsAgreeAPIRequest.go | 66 + .../refund/TaobaoRpRefundsAgreeAPIResponse.go | 33 + model/refund/TaobaoRpRefundsAgreeResponse.go | 33 - .../TaobaoRpReturngoodsAgreeAPIRequest.go | 206 ++ .../TaobaoRpReturngoodsAgreeAPIResponse.go | 27 + .../TaobaoRpReturngoodsAgreeResponse.go | 27 - .../TaobaoRpReturngoodsRefillAPIRequest.go | 94 + .../TaobaoRpReturngoodsRefillAPIResponse.go | 27 + .../TaobaoRpReturngoodsRefillResponse.go | 27 - .../TaobaoRpReturngoodsRefuseAPIRequest.go | 108 + .../TaobaoRpReturngoodsRefuseAPIResponse.go | 27 + .../TaobaoRpReturngoodsRefuseResponse.go | 27 - .../TaobaoSpecialRefundGetAPIRequest.go | 66 + .../TaobaoSpecialRefundGetAPIResponse.go | 27 + .../refund/TaobaoSpecialRefundGetResponse.go | 27 - ...aobaoSpecialRefundsReceiveGetAPIRequest.go | 164 ++ ...obaoSpecialRefundsReceiveGetAPIResponse.go | 31 + .../TaobaoSpecialRefundsReceiveGetResponse.go | 31 - .../TmallDisputeReceiveGetAPIRequest.go | 178 ++ .../TmallDisputeReceiveGetAPIResponse.go | 27 + .../refund/TmallDisputeReceiveGetResponse.go | 27 - ...eractRetailQueryshelflocationAPIRequest.go | 52 + ...ractRetailQueryshelflocationAPIResponse.go | 27 + ...nteractRetailQueryshelflocationResponse.go | 27 - ...teractRetailSaveshelflocationAPIRequest.go | 122 ++ ...eractRetailSaveshelflocationAPIResponse.go | 27 + ...InteractRetailSaveshelflocationResponse.go | 27 - .../AlibabaRetailDeviceInfoGetAPIRequest.go | 80 + .../AlibabaRetailDeviceInfoGetAPIResponse.go | 27 + .../AlibabaRetailDeviceInfoGetResponse.go | 27 - ...AlibabaRetailDeviceOrderQueryAPIRequest.go | 164 ++ ...libabaRetailDeviceOrderQueryAPIResponse.go | 31 + .../AlibabaRetailDeviceOrderQueryResponse.go | 31 - ...baRetailDeviceRoadStatusResetAPIRequest.go | 94 + ...aRetailDeviceRoadStatusResetAPIResponse.go | 27 + ...babaRetailDeviceRoadStatusResetResponse.go | 27 - ...lElectronicCertificateConfirmAPIRequest.go | 80 + ...ElectronicCertificateConfirmAPIResponse.go | 27 + ...ailElectronicCertificateConfirmResponse.go | 27 - ...ectronicCertificatePreConfirmAPIRequest.go | 66 + ...ctronicCertificatePreConfirmAPIResponse.go | 27 + ...ElectronicCertificatePreConfirmResponse.go | 27 - ...etailVendingPriceWhitelistAddAPIRequest.go | 164 ++ ...tailVendingPriceWhitelistAddAPIResponse.go | 27 + ...aRetailVendingPriceWhitelistAddResponse.go | 27 - ...aRetailVendingPriceWhitelistAddResultDo.go | 11 + ...ilVendingPriceWhitelistRemoveAPIRequest.go | 122 ++ ...lVendingPriceWhitelistRemoveAPIResponse.go | 27 + ...tailVendingPriceWhitelistRemoveResponse.go | 27 - ...tailVendingPriceWhitelistRemoveResultDo.go | 11 + .../retail/TmallStoreOrderCreateAPIRequest.go | 66 + .../TmallStoreOrderCreateAPIResponse.go | 27 + model/retail/TmallStoreOrderCreateResponse.go | 27 - ...hinoSupplychainClothingAdjustAPIRequest.go | 52 + ...inoSupplychainClothingAdjustAPIResponse.go | 31 + ...oRhinoSupplychainClothingAdjustResponse.go | 31 - ...hinoSupplychainInboundConfirmAPIRequest.go | 52 + ...inoSupplychainInboundConfirmAPIResponse.go | 31 + ...oRhinoSupplychainInboundConfirmResponse.go | 31 - ...ychainOutboundPickingcompleteAPIRequest.go | 52 + ...chainOutboundPickingcompleteAPIResponse.go | 31 + ...plychainOutboundPickingcompleteResponse.go | 31 - .../AlibabaScbpAccountBudgetGetAPIRequest.go | 38 + .../AlibabaScbpAccountBudgetGetAPIResponse.go | 27 + .../AlibabaScbpAccountBudgetGetResponse.go | 27 - .../AlibabaScbpAccountDaycostGetAPIRequest.go | 38 + ...AlibabaScbpAccountDaycostGetAPIResponse.go | 27 + .../AlibabaScbpAccountDaycostGetResponse.go | 27 - ...libabaScbpAccountIsarrearsGetAPIRequest.go | 38 + ...ibabaScbpAccountIsarrearsGetAPIResponse.go | 27 + .../AlibabaScbpAccountIsarrearsGetResponse.go | 27 - .../AlibabaScbpAccountStatusGetAPIRequest.go | 38 + .../AlibabaScbpAccountStatusGetAPIResponse.go | 27 + .../AlibabaScbpAccountStatusGetResponse.go | 27 - ...libabaScbpAccountStatusUpdateAPIRequest.go | 52 + ...ibabaScbpAccountStatusUpdateAPIResponse.go | 27 + .../AlibabaScbpAccountStatusUpdateResponse.go | 27 - ...libabaScbpAdAccountBalanceGetAPIRequest.go | 38 + ...ibabaScbpAdAccountBalanceGetAPIResponse.go | 27 + .../AlibabaScbpAdAccountBalanceGetResponse.go | 27 - .../AlibabaScbpAdAccountLevelGetAPIRequest.go | 38 + ...AlibabaScbpAdAccountLevelGetAPIResponse.go | 27 + .../AlibabaScbpAdAccountLevelGetResponse.go | 27 - .../AlibabaScbpAdCampaignCreateAPIRequest.go | 66 + .../AlibabaScbpAdCampaignCreateAPIResponse.go | 27 + ...ampaignCreateForbiddenKeywordAPIRequest.go | 80 + ...mpaignCreateForbiddenKeywordAPIResponse.go | 27 + ...dCampaignCreateForbiddenKeywordResponse.go | 27 - .../AlibabaScbpAdCampaignCreateResponse.go | 27 - .../AlibabaScbpAdCampaignDeleteAPIRequest.go | 66 + .../AlibabaScbpAdCampaignDeleteAPIResponse.go | 27 + ...ampaignDeleteForbiddenKeywordAPIRequest.go | 80 + ...mpaignDeleteForbiddenKeywordAPIResponse.go | 27 + ...dCampaignDeleteForbiddenKeywordResponse.go | 27 - .../AlibabaScbpAdCampaignDeleteResponse.go | 27 - ...pAdCampaignFindCampaignEffectAPIRequest.go | 94 + ...AdCampaignFindCampaignEffectAPIResponse.go | 27 + ...cbpAdCampaignFindCampaignEffectResponse.go | 27 - ...cbpAdCampaignFindCampaignPageAPIRequest.go | 66 + ...bpAdCampaignFindCampaignPageAPIResponse.go | 29 + ...aScbpAdCampaignFindCampaignPageResponse.go | 29 - ...dCampaignFindForbiddenKeywordAPIRequest.go | 66 + ...CampaignFindForbiddenKeywordAPIResponse.go | 27 + ...pAdCampaignFindForbiddenKeywordResponse.go | 27 - ...AdCampaignFindForbiddenKeywordResultDto.go | 13 + ...abaScbpAdCampaignFindRealCostAPIRequest.go | 66 + ...baScbpAdCampaignFindRealCostAPIResponse.go | 27 + ...ibabaScbpAdCampaignFindRealCostResponse.go | 27 - .../AlibabaScbpAdCampaignUpdateAPIRequest.go | 66 + .../AlibabaScbpAdCampaignUpdateAPIResponse.go | 27 + .../AlibabaScbpAdCampaignUpdateResponse.go | 27 - ...libabaScbpAdGroupCountAdGroupAPIRequest.go | 80 + ...ibabaScbpAdGroupCountAdGroupAPIResponse.go | 27 + .../AlibabaScbpAdGroupCountAdGroupResponse.go | 27 - ...ScbpAdGroupCreateAdGroupBatchAPIRequest.go | 80 + ...cbpAdGroupCreateAdGroupBatchAPIResponse.go | 27 + ...baScbpAdGroupCreateAdGroupBatchResponse.go | 27 - ...AdGroupCreateForbiddenProductAPIRequest.go | 80 + ...dGroupCreateForbiddenProductAPIResponse.go | 27 + ...bpAdGroupCreateForbiddenProductResponse.go | 27 - ...ScbpAdGroupDeleteAdGroupBatchAPIRequest.go | 80 + ...cbpAdGroupDeleteAdGroupBatchAPIResponse.go | 27 + ...baScbpAdGroupDeleteAdGroupBatchResponse.go | 27 - ...AdGroupDeleteForbiddenProductAPIRequest.go | 80 + ...dGroupDeleteForbiddenProductAPIResponse.go | 27 + ...bpAdGroupDeleteForbiddenProductResponse.go | 27 - ...AlibabaScbpAdGroupFindAdGroupAPIRequest.go | 80 + ...libabaScbpAdGroupFindAdGroupAPIResponse.go | 27 + .../AlibabaScbpAdGroupFindAdGroupResponse.go | 27 - ...bpAdGroupFindForbiddenProductAPIRequest.go | 66 + ...pAdGroupFindForbiddenProductAPIResponse.go | 27 + ...ScbpAdGroupFindForbiddenProductResponse.go | 27 - ...ScbpAdGroupUpdateAdGroupBatchAPIRequest.go | 80 + ...cbpAdGroupUpdateAdGroupBatchAPIResponse.go | 27 + ...baScbpAdGroupUpdateAdGroupBatchResponse.go | 27 - .../scbp/AlibabaScbpAdKeywordAddAPIRequest.go | 80 + .../AlibabaScbpAdKeywordAddAPIResponse.go | 33 + model/scbp/AlibabaScbpAdKeywordAddResponse.go | 33 - ...ibabaScbpAdKeywordBatchdeleteAPIRequest.go | 52 + ...babaScbpAdKeywordBatchdeleteAPIResponse.go | 27 + ...AlibabaScbpAdKeywordBatchdeleteResponse.go | 27 - ...bpAdKeywordCreateKeywordBatchAPIRequest.go | 80 + ...pAdKeywordCreateKeywordBatchAPIResponse.go | 27 + ...ScbpAdKeywordCreateKeywordBatchResponse.go | 27 - .../AlibabaScbpAdKeywordDeleteAPIRequest.go | 52 + .../AlibabaScbpAdKeywordDeleteAPIResponse.go | 27 + ...bpAdKeywordDeleteKeywordBatchAPIRequest.go | 80 + ...pAdKeywordDeleteKeywordBatchAPIResponse.go | 27 + ...ScbpAdKeywordDeleteKeywordBatchResponse.go | 27 - .../AlibabaScbpAdKeywordDeleteResponse.go | 27 - .../scbp/AlibabaScbpAdKeywordGetAPIRequest.go | 52 + .../AlibabaScbpAdKeywordGetAPIResponse.go | 31 + ...KeywordGetKeywordCountByQueryAPIRequest.go | 66 + ...eywordGetKeywordCountByQueryAPIResponse.go | 27 + ...AdKeywordGetKeywordCountByQueryResponse.go | 27 - model/scbp/AlibabaScbpAdKeywordGetResponse.go | 31 - ...AdKeywordListCampaignKeywordsAPIRequest.go | 80 + ...dKeywordListCampaignKeywordsAPIResponse.go | 27 + ...bpAdKeywordListCampaignKeywordsResponse.go | 27 - ...ScbpAdKeywordPriceBatchupdateAPIRequest.go | 52 + ...cbpAdKeywordPriceBatchupdateAPIResponse.go | 27 + ...baScbpAdKeywordPriceBatchupdateResponse.go | 27 - ...ibabaScbpAdKeywordPriceUpdateAPIRequest.go | 66 + ...babaScbpAdKeywordPriceUpdateAPIResponse.go | 27 + ...AlibabaScbpAdKeywordPriceUpdateResponse.go | 27 - ...dKeywordQueryKeywordRankPriceAPIRequest.go | 80 + ...KeywordQueryKeywordRankPriceAPIResponse.go | 27 + ...pAdKeywordQueryKeywordRankPriceResponse.go | 27 - .../AlibabaScbpAdKeywordRankGetAPIRequest.go | 52 + .../AlibabaScbpAdKeywordRankGetAPIResponse.go | 27 + .../AlibabaScbpAdKeywordRankGetResponse.go | 27 - ...cbpAdKeywordRankPriceBatchgetAPIRequest.go | 66 + ...bpAdKeywordRankPriceBatchgetAPIResponse.go | 27 + ...aScbpAdKeywordRankPriceBatchgetResponse.go | 27 - ...babaScbpAdKeywordRankPriceGetAPIRequest.go | 52 + ...abaScbpAdKeywordRankPriceGetAPIResponse.go | 27 + ...libabaScbpAdKeywordRankPriceGetResponse.go | 27 - ...cbpAdKeywordStatusBatchupdateAPIRequest.go | 52 + ...bpAdKeywordStatusBatchupdateAPIResponse.go | 27 + ...aScbpAdKeywordStatusBatchupdateResponse.go | 27 - ...babaScbpAdKeywordStatusUpdateAPIRequest.go | 66 + ...abaScbpAdKeywordStatusUpdateAPIResponse.go | 27 + ...libabaScbpAdKeywordStatusUpdateResponse.go | 27 - ...AlibabaScbpAdKeywordTagUpdateAPIRequest.go | 66 + ...libabaScbpAdKeywordTagUpdateAPIResponse.go | 27 + .../AlibabaScbpAdKeywordTagUpdateResponse.go | 27 - ...eywordUpdateKeywordPriceBatchAPIRequest.go | 80 + ...ywordUpdateKeywordPriceBatchAPIResponse.go | 27 + ...dKeywordUpdateKeywordPriceBatchResponse.go | 27 - ...ywordUpdateKeywordStatusBatchAPIRequest.go | 80 + ...wordUpdateKeywordStatusBatchAPIResponse.go | 27 + ...KeywordUpdateKeywordStatusBatchResponse.go | 27 - ...aScbpAdReportGetAccountReportAPIRequest.go | 66 + ...ScbpAdReportGetAccountReportAPIResponse.go | 27 + ...abaScbpAdReportGetAccountReportResponse.go | 27 - ...aScbpAdReportGetProductReportAPIRequest.go | 66 + ...ScbpAdReportGetProductReportAPIResponse.go | 27 + ...abaScbpAdReportGetProductReportResponse.go | 27 - ...baScbpAdReportGetTargetReportAPIRequest.go | 66 + ...aScbpAdReportGetTargetReportAPIResponse.go | 27 + ...babaScbpAdReportGetTargetReportResponse.go | 27 - ...cbpAdReportQueryKeywordEffectAPIRequest.go | 66 + ...bpAdReportQueryKeywordEffectAPIResponse.go | 27 + ...aScbpAdReportQueryKeywordEffectResponse.go | 27 - ...eportQuerySingleKeywordEffectAPIRequest.go | 66 + ...portQuerySingleKeywordEffectAPIResponse.go | 27 + ...dReportQuerySingleKeywordEffectResponse.go | 27 - ...babaScbpAdTargetTagEstimateUvAPIRequest.go | 66 + ...abaScbpAdTargetTagEstimateUvAPIResponse.go | 27 + ...libabaScbpAdTargetTagEstimateUvResponse.go | 27 - ...argetTagFindCampaignTargetTagAPIRequest.go | 80 + ...rgetTagFindCampaignTargetTagAPIResponse.go | 27 + ...dTargetTagFindCampaignTargetTagResponse.go | 27 - ...rgetTagMergeCampaignTargetTagAPIRequest.go | 80 + ...getTagMergeCampaignTargetTagAPIResponse.go | 27 + ...TargetTagMergeCampaignTargetTagResponse.go | 27 - ...ibabaScbpEffectAccountDateGetAPIRequest.go | 38 + ...babaScbpEffectAccountDateGetAPIResponse.go | 27 + ...AlibabaScbpEffectAccountDateGetResponse.go | 27 - .../AlibabaScbpEffectAccountListAPIRequest.go | 52 + ...AlibabaScbpEffectAccountListAPIResponse.go | 31 + .../AlibabaScbpEffectAccountListResponse.go | 31 - .../AlibabaScbpEffectKeywordListAPIRequest.go | 52 + ...AlibabaScbpEffectKeywordListAPIResponse.go | 31 + .../AlibabaScbpEffectKeywordListResponse.go | 31 - ...abaScbpEffectKeywordSingleGetAPIRequest.go | 52 + ...baScbpEffectKeywordSingleGetAPIResponse.go | 31 + ...ibabaScbpEffectKeywordSingleGetResponse.go | 31 - ...libabaScbpEffectProductReportAPIRequest.go | 52 + ...ibabaScbpEffectProductReportAPIResponse.go | 31 + .../AlibabaScbpEffectProductReportResponse.go | 31 - ...abaScbpEffectProductSingleGetAPIRequest.go | 52 + ...baScbpEffectProductSingleGetAPIResponse.go | 31 + ...ibabaScbpEffectProductSingleGetResponse.go | 31 - ...ScbpKeywordMatchedProductsGetAPIRequest.go | 52 + ...cbpKeywordMatchedProductsGetAPIResponse.go | 27 + ...baScbpKeywordMatchedProductsGetResponse.go | 27 - .../AlibabaScbpProductGroupGetAPIRequest.go | 52 + .../AlibabaScbpProductGroupGetAPIResponse.go | 27 + .../AlibabaScbpProductGroupGetResponse.go | 27 - .../scbp/AlibabaScbpProductListAPIRequest.go | 80 + .../scbp/AlibabaScbpProductListAPIResponse.go | 31 + model/scbp/AlibabaScbpProductListResponse.go | 31 - ...ScbpProductPreferentialUpdateAPIRequest.go | 80 + ...cbpProductPreferentialUpdateAPIResponse.go | 27 + ...baScbpProductPreferentialUpdateResponse.go | 27 - ...libabaScbpProductStatusUpdateAPIRequest.go | 66 + ...ibabaScbpProductStatusUpdateAPIResponse.go | 27 + .../AlibabaScbpProductStatusUpdateResponse.go | 27 - .../AlibabaScbpReckeywordSearchAPIRequest.go | 52 + .../AlibabaScbpReckeywordSearchAPIResponse.go | 31 + .../AlibabaScbpReckeywordSearchResponse.go | 31 - .../AlibabaScbpReckeywordSysGetAPIRequest.go | 52 + .../AlibabaScbpReckeywordSysGetAPIResponse.go | 31 + .../AlibabaScbpReckeywordSysGetResponse.go | 31 - model/scbp/AlibabaScbpTagAddAPIRequest.go | 52 + model/scbp/AlibabaScbpTagAddAPIResponse.go | 27 + model/scbp/AlibabaScbpTagAddResponse.go | 27 - model/scbp/AlibabaScbpTagDeleteAPIRequest.go | 52 + model/scbp/AlibabaScbpTagDeleteAPIResponse.go | 27 + model/scbp/AlibabaScbpTagDeleteResponse.go | 27 - model/scbp/AlibabaScbpTagListAPIRequest.go | 38 + model/scbp/AlibabaScbpTagListAPIResponse.go | 27 + model/scbp/AlibabaScbpTagListResponse.go | 27 - model/scbp/AlibabaScbpTagRenameAPIRequest.go | 66 + model/scbp/AlibabaScbpTagRenameAPIResponse.go | 27 + model/scbp/AlibabaScbpTagRenameResponse.go | 27 - ...abaScbpTargetAdCampaignEffectAPIRequest.go | 94 + ...baScbpTargetAdCampaignEffectAPIResponse.go | 27 + ...ibabaScbpTargetAdCampaignEffectResponse.go | 27 - ...TargetAdCampaignProductEffectAPIRequest.go | 52 + ...argetAdCampaignProductEffectAPIResponse.go | 31 + ...bpTargetAdCampaignProductEffectResponse.go | 31 - ...ScbpTargetAdCampaignTagEffectAPIRequest.go | 52 + ...cbpTargetAdCampaignTagEffectAPIResponse.go | 29 + ...baScbpTargetAdCampaignTagEffectResponse.go | 29 - .../AlibabaScbpTargetAdPlanAddAPIRequest.go | 52 + .../AlibabaScbpTargetAdPlanAddAPIResponse.go | 27 + .../AlibabaScbpTargetAdPlanAddResponse.go | 27 - ...aScbpTargetAdPlanCountryIdGetAPIRequest.go | 38 + ...ScbpTargetAdPlanCountryIdGetAPIResponse.go | 27 + ...abaScbpTargetAdPlanCountryIdGetResponse.go | 27 - ...abaScbpTargetAdPlanCrowdIdGetAPIRequest.go | 38 + ...baScbpTargetAdPlanCrowdIdGetAPIResponse.go | 27 + ...ibabaScbpTargetAdPlanCrowdIdGetResponse.go | 27 - ...rgetAdPlanForbiddenWordModifyAPIRequest.go | 52 + ...getAdPlanForbiddenWordModifyAPIResponse.go | 27 + ...TargetAdPlanForbiddenWordModifyResponse.go | 27 - .../AlibabaScbpTargetAdPlanListAPIRequest.go | 52 + .../AlibabaScbpTargetAdPlanListAPIResponse.go | 31 + .../AlibabaScbpTargetAdPlanListResponse.go | 31 - ...babaScbpTargetAdPlanOperationAPIRequest.go | 52 + ...abaScbpTargetAdPlanOperationAPIResponse.go | 27 + ...libabaScbpTargetAdPlanOperationResponse.go | 27 - ...cbpTargetAdPlanProductListGetAPIRequest.go | 52 + ...bpTargetAdPlanProductListGetAPIResponse.go | 31 + ...aScbpTargetAdPlanProductListGetResponse.go | 31 - ...AlibabaScbpTargetAdPlanTagGetAPIRequest.go | 52 + ...libabaScbpTargetAdPlanTagGetAPIResponse.go | 27 + .../AlibabaScbpTargetAdPlanTagGetResponse.go | 27 - ...AlibabaScbpTargetAdPlanUpdateAPIRequest.go | 52 + ...libabaScbpTargetAdPlanUpdateAPIResponse.go | 27 + ...cbpTargetAdPlanUpdateProductsAPIRequest.go | 52 + ...bpTargetAdPlanUpdateProductsAPIResponse.go | 27 + ...aScbpTargetAdPlanUpdateProductsResponse.go | 27 - .../AlibabaScbpTargetAdPlanUpdateResponse.go | 27 - ...abaScbpTargetAdPlanUpdateTagsAPIRequest.go | 52 + ...baScbpTargetAdPlanUpdateTagsAPIResponse.go | 27 + ...ibabaScbpTargetAdPlanUpdateTagsResponse.go | 27 - model/scs/AlibabaScsImageMatteAPIRequest.go | 122 ++ model/scs/AlibabaScsImageMatteAPIResponse.go | 35 + model/scs/AlibabaScsImageMatteResponse.go | 35 - ...abaAlifanyiMarketAuthenticateAPIRequest.go | 52 + ...baAlifanyiMarketAuthenticateAPIResponse.go | 33 + ...ibabaAlifanyiMarketAuthenticateResponse.go | 33 - .../AlibabaAlifanyiMarketExamAPIRequest.go | 52 + .../AlibabaAlifanyiMarketExamAPIResponse.go | 27 + .../AlibabaAlifanyiMarketExamResponse.go | 27 - .../AlibabaAlifanyiMarketLoginAPIRequest.go | 52 + .../AlibabaAlifanyiMarketLoginAPIResponse.go | 27 + .../AlibabaAlifanyiMarketLoginResponse.go | 27 - ...AlibabaSeakingAititlegenerateAPIRequest.go | 150 ++ ...libabaSeakingAititlegenerateAPIResponse.go | 27 + .../AlibabaSeakingAititlegenerateResponse.go | 27 - .../AlibabaSeakingAuthmachineapiAPIRequest.go | 94 + ...AlibabaSeakingAuthmachineapiAPIResponse.go | 27 + .../AlibabaSeakingAuthmachineapiResponse.go | 27 - .../AlibabaSeakingDiagnosistitleAPIRequest.go | 136 ++ ...AlibabaSeakingDiagnosistitleAPIResponse.go | 43 + .../AlibabaSeakingDiagnosistitleResponse.go | 43 - .../AlibabaSeakingFeedbackAPIRequest.go | 136 ++ .../AlibabaSeakingFeedbackAPIResponse.go | 27 + .../seaking/AlibabaSeakingFeedbackResponse.go | 27 - .../AlibabaSeakingImageTranslateAPIRequest.go | 122 ++ ...AlibabaSeakingImageTranslateAPIResponse.go | 27 + .../AlibabaSeakingImageTranslateResponse.go | 27 - .../AlibabaSeakingImagerecognizeAPIRequest.go | 94 + ...AlibabaSeakingImagerecognizeAPIResponse.go | 27 + .../AlibabaSeakingImagerecognizeResponse.go | 27 - ...baSeakingImagetranslateResultAPIRequest.go | 80 + ...aSeakingImagetranslateResultAPIResponse.go | 27 + ...babaSeakingImagetranslateResultResponse.go | 27 - ...baSeakingImagetranslateSubmitAPIRequest.go | 80 + ...aSeakingImagetranslateSubmitAPIResponse.go | 27 + ...babaSeakingImagetranslateSubmitResponse.go | 27 - .../AlibabaSeakingServicepackAPIRequest.go | 66 + .../AlibabaSeakingServicepackAPIResponse.go | 27 + .../AlibabaSeakingServicepackResponse.go | 27 - .../AlibabaSeakingTaskReportAPIRequest.go | 94 + .../AlibabaSeakingTaskReportAPIResponse.go | 27 + .../AlibabaSeakingTaskReportResponse.go | 27 - ...babaSeakingTitlerewriteResultAPIRequest.go | 80 + ...abaSeakingTitlerewriteResultAPIResponse.go | 27 + ...libabaSeakingTitlerewriteResultResponse.go | 27 - ...babaSeakingTitlerewriteSubmitAPIRequest.go | 80 + ...abaSeakingTitlerewriteSubmitAPIResponse.go | 27 + ...libabaSeakingTitlerewriteSubmitResponse.go | 27 - .../AlibabaSeakingTranslateAPIRequest.go | 150 ++ .../AlibabaSeakingTranslateAPIResponse.go | 27 + .../AlibabaSeakingTranslateResponse.go | 27 - .../AlibabaSecurityJaqAfsCheckAPIRequest.go | 108 + .../AlibabaSecurityJaqAfsCheckAPIResponse.go | 27 + .../AlibabaSecurityJaqAfsCheckResponse.go | 27 - ...baSecurityJaqAppOfficialApplyAPIRequest.go | 52 + ...aSecurityJaqAppOfficialApplyAPIResponse.go | 27 + ...babaSecurityJaqAppOfficialApplyResponse.go | 27 - ...aSecurityJaqAppOfficialVerifyAPIRequest.go | 52 + ...SecurityJaqAppOfficialVerifyAPIResponse.go | 27 + ...abaSecurityJaqAppOfficialVerifyResponse.go | 27 - ...AlibabaSecurityJaqAppRiskScanAPIRequest.go | 80 + ...libabaSecurityJaqAppRiskScanAPIResponse.go | 27 + .../AlibabaSecurityJaqAppRiskScanResponse.go | 27 - ...baSecurityJaqAppRiskScanbatchAPIRequest.go | 66 + ...aSecurityJaqAppRiskScanbatchAPIResponse.go | 27 + ...babaSecurityJaqAppRiskScanbatchResponse.go | 27 - ...baSecurityJaqAppRiskdetailGetAPIRequest.go | 66 + ...aSecurityJaqAppRiskdetailGetAPIResponse.go | 27 + ...babaSecurityJaqAppRiskdetailGetResponse.go | 27 - ...urityJaqAppRiskdetailbatchGetAPIRequest.go | 66 + ...rityJaqAppRiskdetailbatchGetAPIResponse.go | 27 + ...ecurityJaqAppRiskdetailbatchGetResponse.go | 27 - ...aSecurityJaqAppRisksummaryGetAPIRequest.go | 52 + ...SecurityJaqAppRisksummaryGetAPIResponse.go | 27 + ...abaSecurityJaqAppRisksummaryGetResponse.go | 27 - .../AlibabaSecurityJaqAppShieldAPIRequest.go | 66 + .../AlibabaSecurityJaqAppShieldAPIResponse.go | 27 + .../AlibabaSecurityJaqAppShieldResponse.go | 27 - ...SecurityJaqAppShieldresultGetAPIRequest.go | 52 + ...ecurityJaqAppShieldresultGetAPIResponse.go | 27 + ...baSecurityJaqAppShieldresultGetResponse.go | 27 - ...CampaignpreventionResultFetchAPIRequest.go | 416 ++++ ...ampaignpreventionResultFetchAPIResponse.go | 27 + ...aqCampaignpreventionResultFetchResponse.go | 27 - ...AlibabaSecurityJaqCaptchaSendAPIRequest.go | 136 ++ ...libabaSecurityJaqCaptchaSendAPIResponse.go | 27 + .../AlibabaSecurityJaqCaptchaSendResponse.go | 27 - ...ibabaSecurityJaqCaptchaVerifyAPIRequest.go | 150 ++ ...babaSecurityJaqCaptchaVerifyAPIResponse.go | 27 + ...AlibabaSecurityJaqCaptchaVerifyResponse.go | 27 - ...tyJaqCaptchaVerifyResultFetchAPIRequest.go | 52 + ...yJaqCaptchaVerifyResultFetchAPIResponse.go | 27 + ...rityJaqCaptchaVerifyResultFetchResponse.go | 27 - ...JaqLoginpreventionResultFetchAPIRequest.go | 416 ++++ ...aqLoginpreventionResultFetchAPIResponse.go | 27 + ...tyJaqLoginpreventionResultFetchResponse.go | 27 - ...rImageAsyncDetectResultsFetchAPIRequest.go | 52 + ...ImageAsyncDetectResultsFetchAPIResponse.go | 27 + ...OcrImageAsyncDetectResultsFetchResponse.go | 27 - ...SecurityJaqOcrImageSyncDetectAPIRequest.go | 52 + ...ecurityJaqOcrImageSyncDetectAPIResponse.go | 27 + ...baSecurityJaqOcrImageSyncDetectResponse.go | 27 - ...ecurityJaqPornImageSyncDetectAPIRequest.go | 52 + ...curityJaqPornImageSyncDetectAPIResponse.go | 27 + ...aSecurityJaqPornImageSyncDetectResponse.go | 27 - ...ibabaSecurityJaqResourceFetchAPIRequest.go | 80 + ...babaSecurityJaqResourceFetchAPIResponse.go | 27 + ...AlibabaSecurityJaqResourceFetchResponse.go | 27 - ...libabaSecurityJaqRpCloudEventAPIRequest.go | 80 + ...ibabaSecurityJaqRpCloudEventAPIResponse.go | 27 + .../AlibabaSecurityJaqRpCloudEventResponse.go | 27 - ...abaSecurityJaqRpCloudOcrCheckAPIRequest.go | 66 + ...baSecurityJaqRpCloudOcrCheckAPIResponse.go | 27 + ...ibabaSecurityJaqRpCloudOcrCheckResponse.go | 27 - ...curityJaqRpCloudRealnameCheckAPIRequest.go | 94 + ...urityJaqRpCloudRealnameCheckAPIResponse.go | 27 + ...SecurityJaqRpCloudRealnameCheckResponse.go | 27 - ...libabaSecurityJaqRpCloudRphitAPIRequest.go | 52 + ...ibabaSecurityJaqRpCloudRphitAPIResponse.go | 27 + .../AlibabaSecurityJaqRpCloudRphitResponse.go | 27 - ...libabaSecurityJaqRpCloudStartAPIRequest.go | 80 + ...ibabaSecurityJaqRpCloudStartAPIResponse.go | 27 + .../AlibabaSecurityJaqRpCloudStartResponse.go | 27 - ...ibabaSecurityJaqRpCloudSubmitAPIRequest.go | 52 + ...babaSecurityJaqRpCloudSubmitAPIResponse.go | 27 + ...AlibabaSecurityJaqRpCloudSubmitResponse.go | 27 - ...ibabaSecurityJaqRpCloudUploadAPIRequest.go | 66 + ...babaSecurityJaqRpCloudUploadAPIResponse.go | 27 + ...AlibabaSecurityJaqRpCloudUploadResponse.go | 27 - ...abaSecurityJaqRpFetchmaterialAPIRequest.go | 52 + ...baSecurityJaqRpFetchmaterialAPIResponse.go | 27 + ...ibabaSecurityJaqRpFetchmaterialResponse.go | 27 - ...baSecurityJaqRpGetverifytokenAPIRequest.go | 108 + ...aSecurityJaqRpGetverifytokenAPIResponse.go | 27 + ...babaSecurityJaqRpGetverifytokenResponse.go | 27 - .../AlibabaSecurityJaqRpOcrAPIRequest.go | 66 + .../AlibabaSecurityJaqRpOcrAPIResponse.go | 27 + .../AlibabaSecurityJaqRpOcrCheckAPIRequest.go | 66 + ...AlibabaSecurityJaqRpOcrCheckAPIResponse.go | 27 + .../AlibabaSecurityJaqRpOcrCheckResponse.go | 27 - .../AlibabaSecurityJaqRpOcrResponse.go | 27 - .../AlibabaSecurityJaqRpQueryAPIRequest.go | 52 + .../AlibabaSecurityJaqRpQueryAPIResponse.go | 27 + .../AlibabaSecurityJaqRpQueryResponse.go | 27 - .../AlibabaSecurityJaqRpRphitAPIRequest.go | 52 + .../AlibabaSecurityJaqRpRphitAPIResponse.go | 27 + .../AlibabaSecurityJaqRpRphitResponse.go | 27 - .../AlibabaSecurityJaqRpStartAPIRequest.go | 80 + .../AlibabaSecurityJaqRpStartAPIResponse.go | 27 + .../AlibabaSecurityJaqRpStartResponse.go | 27 - .../AlibabaSecurityJaqRpStatusAPIRequest.go | 94 + .../AlibabaSecurityJaqRpStatusAPIResponse.go | 27 + .../AlibabaSecurityJaqRpStatusResponse.go | 27 - .../AlibabaSecurityJaqRpSubmitAPIRequest.go | 52 + .../AlibabaSecurityJaqRpSubmitAPIResponse.go | 27 + .../AlibabaSecurityJaqRpSubmitResponse.go | 27 - .../AlibabaSecurityJaqRpUploadAPIRequest.go | 66 + .../AlibabaSecurityJaqRpUploadAPIResponse.go | 27 + .../AlibabaSecurityJaqRpUploadResponse.go | 27 - ...pamregisterpreventionFeedbackAPIRequest.go | 108 + ...amregisterpreventionFeedbackAPIResponse.go | 27 + ...qSpamregisterpreventionFeedbackResponse.go | 27 - ...registerpreventionResultFetchAPIRequest.go | 304 +++ ...egisterpreventionResultFetchAPIResponse.go | 27 + ...isterpreventionResultFetchNewAPIRequest.go | 332 ++++ ...sterpreventionResultFetchNewAPIResponse.go | 27 + ...egisterpreventionResultFetchNewResponse.go | 27 - ...amregisterpreventionResultFetchResponse.go | 27 - .../AlibabaSecurityJaqUrlScanAPIRequest.go | 52 + .../AlibabaSecurityJaqUrlScanAPIResponse.go | 27 + .../AlibabaSecurityJaqUrlScanResponse.go | 27 - ...aSecurityJaqWsgriskdataReportAPIRequest.go | 66 + ...SecurityJaqWsgriskdataReportAPIResponse.go | 27 + ...abaSecurityJaqWsgriskdataReportResponse.go | 27 - ...aobaoFuwuPurchaseOrderConfirmAPIRequest.go | 52 + ...obaoFuwuPurchaseOrderConfirmAPIResponse.go | 27 + .../TaobaoFuwuPurchaseOrderConfirmResponse.go | 27 - .../TaobaoFuwuPurchaseOrderPayAPIRequest.go | 94 + .../TaobaoFuwuPurchaseOrderPayAPIResponse.go | 27 + .../TaobaoFuwuPurchaseOrderPayResponse.go | 27 - .../TaobaoFuwuSaleLinkGenAPIRequest.go | 66 + .../TaobaoFuwuSaleLinkGenAPIResponse.go | 27 + .../TaobaoFuwuSaleLinkGenResponse.go | 27 - .../TaobaoFuwuScoresGetAPIRequest.go | 80 + .../TaobaoFuwuScoresGetAPIResponse.go | 27 + .../TaobaoFuwuScoresGetResponse.go | 27 - .../TaobaoFuwuSkuGetAPIRequest.go | 66 + .../TaobaoFuwuSkuGetAPIResponse.go | 27 + .../servicecenter/TaobaoFuwuSkuGetResponse.go | 27 - .../TaobaoFuwuSpBillreordAddAPIRequest.go | 52 + .../TaobaoFuwuSpBillreordAddAPIResponse.go | 27 + .../TaobaoFuwuSpBillreordAddResponse.go | 27 - .../TaobaoFuwuSpConfirmApplyAPIRequest.go | 52 + .../TaobaoFuwuSpConfirmApplyAPIResponse.go | 27 + .../TaobaoFuwuSpConfirmApplyResponse.go | 27 - ...obaoRecycleOfnpreredpacketGetAPIRequest.go | 52 + ...baoRecycleOfnpreredpacketGetAPIResponse.go | 27 + ...TaobaoRecycleOfnpreredpacketGetResponse.go | 27 - ...fnpreredpacketTpdeductsuccessAPIRequest.go | 66 + ...npreredpacketTpdeductsuccessAPIResponse.go | 27 + ...eOfnpreredpacketTpdeductsuccessResponse.go | 27 - .../TaobaoVasOrderSearchAPIRequest.go | 178 ++ .../TaobaoVasOrderSearchAPIResponse.go | 29 + .../TaobaoVasOrderSearchResponse.go | 29 - .../TaobaoVasServiceValidateAPIRequest.go | 66 + .../TaobaoVasServiceValidateAPIResponse.go | 27 + .../TaobaoVasServiceValidateResponse.go | 27 - .../TaobaoVasSubscSearchAPIRequest.go | 178 ++ .../TaobaoVasSubscSearchAPIResponse.go | 29 + .../TaobaoVasSubscSearchResponse.go | 29 - .../TaobaoVasSubscribeGetAPIRequest.go | 66 + .../TaobaoVasSubscribeGetAPIResponse.go | 27 + .../TaobaoVasSubscribeGetResponse.go | 27 - .../TaobaoWeikeEserviceOrderGetAPIRequest.go | 136 ++ .../TaobaoWeikeEserviceOrderGetAPIResponse.go | 29 + .../TaobaoWeikeEserviceOrderGetResponse.go | 29 - ...aobaoWeikeEserviceScheduleGetAPIRequest.go | 108 + ...obaoWeikeEserviceScheduleGetAPIResponse.go | 27 + .../TaobaoWeikeEserviceScheduleGetResponse.go | 27 - ...aobaoWeikeEserviceSchedulePutAPIRequest.go | 66 + ...obaoWeikeEserviceSchedulePutAPIResponse.go | 27 + .../TaobaoWeikeEserviceSchedulePutResponse.go | 27 - ...aobaoWeikeEserviceSubusersGetAPIRequest.go | 52 + ...obaoWeikeEserviceSubusersGetAPIResponse.go | 27 + .../TaobaoWeikeEserviceSubusersGetResponse.go | 27 - .../TaobaoWeikePerformancePutAPIRequest.go | 66 + .../TaobaoWeikePerformancePutAPIResponse.go | 27 + .../TaobaoWeikePerformancePutResponse.go | 27 - .../TaobaoWeikeSubscinfoGetAPIRequest.go | 94 + .../TaobaoWeikeSubscinfoGetAPIResponse.go | 27 + .../TaobaoWeikeSubscinfoGetResponse.go | 27 - .../TmallCarContractDownloadAPIRequest.go | 67 + .../TmallCarContractDownloadAPIResponse.go | 28 + .../TmallCarContractDownloadResponse.go | 28 - .../TmallCarFpcarGetcarNotifyAPIRequest.go | 80 + .../TmallCarFpcarGetcarNotifyAPIResponse.go | 33 + .../TmallCarFpcarGetcarNotifyResponse.go | 33 - .../TmallCarFpcarRestpayReceiveAPIRequest.go | 80 + .../TmallCarFpcarRestpayReceiveAPIResponse.go | 33 + .../TmallCarFpcarRestpayReceiveResponse.go | 33 - .../TmallCarLeaseConsumeAPIRequest.go | 52 + .../TmallCarLeaseConsumeAPIResponse.go | 27 + .../TmallCarLeaseConsumeResponse.go | 27 - ...allCarLeaseFreedownpaymentPutAPIRequest.go | 108 + ...llCarLeaseFreedownpaymentPutAPIResponse.go | 27 + ...TmallCarLeaseFreedownpaymentPutResponse.go | 27 - .../TmallCarLeaseItemActivityGetAPIRequest.go | 38 + ...TmallCarLeaseItemActivityGetAPIResponse.go | 27 + .../TmallCarLeaseItemActivityGetResponse.go | 27 - .../TmallCarLeaseItemcarinfoAPIRequest.go | 52 + .../TmallCarLeaseItemcarinfoAPIResponse.go | 27 + .../TmallCarLeaseItemcarinfoResponse.go | 27 - .../TmallCarLeaseReserveAPIRequest.go | 122 ++ .../TmallCarLeaseReserveAPIResponse.go | 27 + .../TmallCarLeaseReserveResponse.go | 27 - .../TmallCarLeaseRiskcallbackAPIRequest.go | 52 + .../TmallCarLeaseRiskcallbackAPIResponse.go | 27 + .../TmallCarLeaseRiskcallbackResponse.go | 27 - ...TmallCarLeaseSynchronizeplansAPIRequest.go | 66 + ...mallCarLeaseSynchronizeplansAPIResponse.go | 27 + .../TmallCarLeaseSynchronizeplansResponse.go | 27 - .../TmallCarLeaseTailpaymentbackAPIRequest.go | 52 + ...TmallCarLeaseTailpaymentbackAPIResponse.go | 27 + .../TmallCarLeaseTailpaymentbackResponse.go | 27 - .../TmallCarLeaseorderGetAPIRequest.go | 52 + .../TmallCarLeaseorderGetAPIResponse.go | 27 + .../TmallCarLeaseorderGetResponse.go | 27 - .../TmallMsfReceiveAPIRequest.go | 80 + .../TmallMsfReceiveAPIResponse.go | 27 + .../servicecenter/TmallMsfReceiveResponse.go | 27 - .../servicecenter/TmallMsfVerifyAPIRequest.go | 80 + .../TmallMsfVerifyAPIResponse.go | 27 + model/servicecenter/TmallMsfVerifyResponse.go | 27 - ...ServiceSettleadjustmentSearchAPIRequest.go | 66 + ...erviceSettleadjustmentSearchAPIResponse.go | 27 + ...llServiceSettleadjustmentSearchResponse.go | 27 - ...vicecenterTpFundsRecoverQueryAPIRequest.go | 52 + ...icecenterTpFundsRecoverQueryAPIResponse.go | 27 + ...ervicecenterTpFundsRecoverQueryResponse.go | 27 - ...ServicecenterTpFundsSendQueryAPIRequest.go | 52 + ...ervicecenterTpFundsSendQueryAPIResponse.go | 27 + ...llServicecenterTpFundsSendQueryResponse.go | 27 - .../AlibabaIbCampusTmiQueryAPIRequest.go | 52 + .../AlibabaIbCampusTmiQueryAPIResponse.go | 27 + .../AlibabaIbCampusTmiQueryResponse.go | 27 - ...jingVisitorPadFetchcodeverifyAPIRequest.go | 66 + ...ingVisitorPadFetchcodeverifyAPIResponse.go | 33 + ...enjingVisitorPadFetchcodeverifyResponse.go | 33 - ...baIbShenjingVisitorPadGetinfoAPIRequest.go | 38 + ...aIbShenjingVisitorPadGetinfoAPIResponse.go | 35 + ...babaIbShenjingVisitorPadGetinfoResponse.go | 35 - ...enjingVisitorPadGetqrcodelinkAPIRequest.go | 52 + ...njingVisitorPadGetqrcodelinkAPIResponse.go | 37 + ...ShenjingVisitorPadGetqrcodelinkResponse.go | 37 - ...aIbShenjingVisitorPadOpendoorAPIRequest.go | 66 + ...IbShenjingVisitorPadOpendoorAPIResponse.go | 35 + ...abaIbShenjingVisitorPadOpendoorResponse.go | 35 - ...bShenjingVisitorPadUploadfaceAPIRequest.go | 66 + ...ShenjingVisitorPadUploadfaceAPIResponse.go | 33 + ...aIbShenjingVisitorPadUploadfaceResponse.go | 33 - ...ingCoreActivityGetappshowlistAPIRequest.go | 94 + ...ngCoreActivityGetappshowlistAPIResponse.go | 27 + ...njingCoreActivityGetappshowlistResponse.go | 27 - .../ship/AlitripShipOrderNotifyAPIRequest.go | 52 + .../ship/AlitripShipOrderNotifyAPIResponse.go | 31 + model/ship/AlitripShipOrderNotifyResponse.go | 31 - .../AlitripShipProductSyncbaseAPIRequest.go | 38 + .../AlitripShipProductSyncbaseAPIResponse.go | 31 + .../AlitripShipProductSyncbaseResponse.go | 31 - .../AlitripShipProductSynccallAPIRequest.go | 38 + .../AlitripShipProductSynccallAPIResponse.go | 31 + .../AlitripShipProductSynccallResponse.go | 31 - .../AlitripShipProductSyncnunberAPIRequest.go | 94 + ...AlitripShipProductSyncnunberAPIResponse.go | 31 + .../AlitripShipProductSyncnunberResponse.go | 31 - .../ship/AlitripShipReturnNotifyAPIRequest.go | 52 + .../AlitripShipReturnNotifyAPIResponse.go | 31 + model/ship/AlitripShipReturnNotifyResponse.go | 31 - model/shop/AlibabaDataCouponGetAPIRequest.go | 52 + model/shop/AlibabaDataCouponGetAPIResponse.go | 27 + model/shop/AlibabaDataCouponGetResponse.go | 27 - model/shop/AlibabaDataItemGetAPIRequest.go | 52 + model/shop/AlibabaDataItemGetAPIResponse.go | 27 + model/shop/AlibabaDataItemGetResponse.go | 27 - .../shop/AlibabaDataRecommondGetAPIRequest.go | 52 + .../AlibabaDataRecommondGetAPIResponse.go | 27 + model/shop/AlibabaDataRecommondGetResponse.go | 27 - ...libabaInteractSensorClipbroadAPIRequest.go | 52 + ...ibabaInteractSensorClipbroadAPIResponse.go | 27 + .../AlibabaInteractSensorClipbroadResponse.go | 27 - .../AlibabaInteractWindvaneCallAPIRequest.go | 52 + .../AlibabaInteractWindvaneCallAPIResponse.go | 27 + .../AlibabaInteractWindvaneCallResponse.go | 27 - ...AlibabaKoubeishopsPropertyGetAPIRequest.go | 52 + ...libabaKoubeishopsPropertyGetAPIResponse.go | 27 + .../AlibabaKoubeishopsPropertyGetResponse.go | 27 - .../AlibabaTaobaoShopCatNeoGetAPIRequest.go | 52 + .../AlibabaTaobaoShopCatNeoGetAPIResponse.go | 27 + .../AlibabaTaobaoShopCatNeoGetResponse.go | 27 - .../shop/TaobaoSellercatsListAddAPIRequest.go | 94 + .../TaobaoSellercatsListAddAPIResponse.go | 27 + model/shop/TaobaoSellercatsListAddResponse.go | 27 - .../shop/TaobaoSellercatsListGetAPIRequest.go | 38 + .../TaobaoSellercatsListGetAPIResponse.go | 27 + model/shop/TaobaoSellercatsListGetResponse.go | 27 - .../TaobaoSellercatsListUpdateAPIRequest.go | 94 + .../TaobaoSellercatsListUpdateAPIResponse.go | 27 + .../TaobaoSellercatsListUpdateResponse.go | 27 - model/shop/TaobaoShopSellerGetAPIRequest.go | 52 + model/shop/TaobaoShopSellerGetAPIResponse.go | 27 + model/shop/TaobaoShopSellerGetResponse.go | 27 - model/shop/TaobaoShopUpdateAPIRequest.go | 80 + model/shop/TaobaoShopUpdateAPIResponse.go | 27 + model/shop/TaobaoShopUpdateResponse.go | 27 - model/shop/TaobaoShopcatsListGetAPIRequest.go | 52 + .../shop/TaobaoShopcatsListGetAPIResponse.go | 27 + model/shop/TaobaoShopcatsListGetResponse.go | 27 - .../shop/TaobaoStoreFollowurlGetAPIRequest.go | 80 + .../TaobaoStoreFollowurlGetAPIResponse.go | 27 + model/shop/TaobaoStoreFollowurlGetResponse.go | 27 - .../TaobaoSimbaAccountBalanceGetAPIRequest.go | 52 + ...TaobaoSimbaAccountBalanceGetAPIResponse.go | 27 + .../TaobaoSimbaAccountBalanceGetResponse.go | 27 - .../simba/TaobaoSimbaAdgroupAddAPIRequest.go | 122 ++ .../simba/TaobaoSimbaAdgroupAddAPIResponse.go | 27 + model/simba/TaobaoSimbaAdgroupAddResponse.go | 27 - .../TaobaoSimbaAdgroupDeleteAPIRequest.go | 66 + .../TaobaoSimbaAdgroupDeleteAPIResponse.go | 27 + .../simba/TaobaoSimbaAdgroupDeleteResponse.go | 27 - ...baAdgroupMobilediscountDeleteAPIRequest.go | 66 + ...aAdgroupMobilediscountDeleteAPIResponse.go | 31 + ...imbaAdgroupMobilediscountDeleteResponse.go | 31 - ...baAdgroupMobilediscountUpdateAPIRequest.go | 80 + ...aAdgroupMobilediscountUpdateAPIResponse.go | 31 + ...imbaAdgroupMobilediscountUpdateResponse.go | 31 - ...SimbaAdgroupOnlineitemsvonGetAPIRequest.go | 122 ++ ...imbaAdgroupOnlineitemsvonGetAPIResponse.go | 27 + ...aoSimbaAdgroupOnlineitemsvonGetResponse.go | 27 - .../TaobaoSimbaAdgroupUpdateAPIRequest.go | 122 ++ .../TaobaoSimbaAdgroupUpdateAPIResponse.go | 27 + .../simba/TaobaoSimbaAdgroupUpdateResponse.go | 27 - ...obaoSimbaAdgroupidsChangedGetAPIRequest.go | 94 + ...baoSimbaAdgroupidsChangedGetAPIResponse.go | 27 + ...TaobaoSimbaAdgroupidsChangedGetResponse.go | 27 - ...obaoSimbaAdgroupidsDeletedGetAPIRequest.go | 94 + ...baoSimbaAdgroupidsDeletedGetAPIResponse.go | 27 + ...TaobaoSimbaAdgroupidsDeletedGetResponse.go | 27 - ...TaobaoSimbaAdgroupsChangedGetAPIRequest.go | 94 + ...aobaoSimbaAdgroupsChangedGetAPIResponse.go | 27 + .../TaobaoSimbaAdgroupsChangedGetResponse.go | 27 - .../TaobaoSimbaAdgroupsItemExistAPIRequest.go | 94 + ...TaobaoSimbaAdgroupsItemExistAPIResponse.go | 27 + .../TaobaoSimbaAdgroupsItemExistResponse.go | 27 - ...oSimbaAdgroupsbyadgroupidsGetAPIRequest.go | 94 + ...SimbaAdgroupsbyadgroupidsGetAPIResponse.go | 27 + ...baoSimbaAdgroupsbyadgroupidsGetResponse.go | 27 - ...oSimbaAdgroupsbycampaignidGetAPIRequest.go | 94 + ...SimbaAdgroupsbycampaignidGetAPIResponse.go | 27 + ...baoSimbaAdgroupsbycampaignidGetResponse.go | 27 - .../TaobaoSimbaBidwordPricetoolsAPIRequest.go | 94 + ...TaobaoSimbaBidwordPricetoolsAPIResponse.go | 27 + .../TaobaoSimbaBidwordPricetoolsResponse.go | 27 - .../simba/TaobaoSimbaCampaignAddAPIRequest.go | 80 + .../TaobaoSimbaCampaignAddAPIResponse.go | 27 + model/simba/TaobaoSimbaCampaignAddResponse.go | 27 - .../TaobaoSimbaCampaignAreaGetAPIRequest.go | 66 + .../TaobaoSimbaCampaignAreaGetAPIResponse.go | 27 + .../TaobaoSimbaCampaignAreaGetResponse.go | 27 - ...TaobaoSimbaCampaignAreaUpdateAPIRequest.go | 80 + ...aobaoSimbaCampaignAreaUpdateAPIResponse.go | 27 + .../TaobaoSimbaCampaignAreaUpdateResponse.go | 27 - ...aoSimbaCampaignAreaoptionsGetAPIRequest.go | 38 + ...oSimbaCampaignAreaoptionsGetAPIResponse.go | 27 + ...obaoSimbaCampaignAreaoptionsGetResponse.go | 27 - .../TaobaoSimbaCampaignBudgetGetAPIRequest.go | 66 + ...TaobaoSimbaCampaignBudgetGetAPIResponse.go | 27 + .../TaobaoSimbaCampaignBudgetGetResponse.go | 27 - ...obaoSimbaCampaignBudgetUpdateAPIRequest.go | 94 + ...baoSimbaCampaignBudgetUpdateAPIResponse.go | 27 + ...TaobaoSimbaCampaignBudgetUpdateResponse.go | 27 - ...aobaoSimbaCampaignPlatformGetAPIRequest.go | 66 + ...obaoSimbaCampaignPlatformGetAPIResponse.go | 27 + .../TaobaoSimbaCampaignPlatformGetResponse.go | 27 - ...aoSimbaCampaignPlatformUpdateAPIRequest.go | 122 ++ ...oSimbaCampaignPlatformUpdateAPIResponse.go | 27 + ...obaoSimbaCampaignPlatformUpdateResponse.go | 27 - ...aobaoSimbaCampaignScheduleGetAPIRequest.go | 66 + ...obaoSimbaCampaignScheduleGetAPIResponse.go | 27 + .../TaobaoSimbaCampaignScheduleGetResponse.go | 27 - ...aoSimbaCampaignScheduleUpdateAPIRequest.go | 80 + ...oSimbaCampaignScheduleUpdateAPIResponse.go | 27 + ...obaoSimbaCampaignScheduleUpdateResponse.go | 27 - ...SimbaCampaignTimetemplateFindAPIRequest.go | 38 + ...imbaCampaignTimetemplateFindAPIResponse.go | 27 + ...aoSimbaCampaignTimetemplateFindResponse.go | 27 - .../TaobaoSimbaCampaignUpdateAPIRequest.go | 94 + .../TaobaoSimbaCampaignUpdateAPIResponse.go | 27 + .../TaobaoSimbaCampaignUpdateResponse.go | 27 - .../TaobaoSimbaCampaignsGetAPIRequest.go | 66 + .../TaobaoSimbaCampaignsGetAPIResponse.go | 27 + .../simba/TaobaoSimbaCampaignsGetResponse.go | 27 - .../simba/TaobaoSimbaCreativeAddAPIRequest.go | 94 + .../TaobaoSimbaCreativeAddAPIResponse.go | 27 + model/simba/TaobaoSimbaCreativeAddResponse.go | 27 - .../TaobaoSimbaCreativeDeleteAPIRequest.go | 66 + .../TaobaoSimbaCreativeDeleteAPIResponse.go | 27 + .../TaobaoSimbaCreativeDeleteResponse.go | 27 - .../TaobaoSimbaCreativeUpdateAPIRequest.go | 122 ++ .../TaobaoSimbaCreativeUpdateAPIResponse.go | 27 + .../TaobaoSimbaCreativeUpdateResponse.go | 27 - ...baoSimbaCreativeidsDeletedGetAPIRequest.go | 94 + ...aoSimbaCreativeidsDeletedGetAPIResponse.go | 27 + ...aobaoSimbaCreativeidsDeletedGetResponse.go | 27 - ...aobaoSimbaCreativesChangedGetAPIRequest.go | 94 + ...obaoSimbaCreativesChangedGetAPIResponse.go | 27 + .../TaobaoSimbaCreativesChangedGetResponse.go | 27 - .../TaobaoSimbaCreativesGetAPIRequest.go | 80 + .../TaobaoSimbaCreativesGetAPIResponse.go | 27 + .../simba/TaobaoSimbaCreativesGetResponse.go | 27 - ...aoSimbaCustomersAuthorizedGetAPIRequest.go | 38 + ...oSimbaCustomersAuthorizedGetAPIResponse.go | 27 + ...obaoSimbaCustomersAuthorizedGetResponse.go | 27 - .../TaobaoSimbaCustomersSidGetAPIRequest.go | 38 + .../TaobaoSimbaCustomersSidGetAPIResponse.go | 27 + .../TaobaoSimbaCustomersSidGetResponse.go | 27 - ...obaoSimbaHourReportAccountGetAPIRequest.go | 80 + ...baoSimbaHourReportAccountGetAPIResponse.go | 27 + ...TaobaoSimbaHourReportAccountGetResponse.go | 27 - ...obaoSimbaHourReportAdgroupGetAPIRequest.go | 108 + ...baoSimbaHourReportAdgroupGetAPIResponse.go | 27 + ...TaobaoSimbaHourReportAdgroupGetResponse.go | 27 - ...baoSimbaHourReportCampaignGetAPIRequest.go | 94 + ...aoSimbaHourReportCampaignGetAPIResponse.go | 27 + ...aobaoSimbaHourReportCampaignGetResponse.go | 27 - ...TaobaoSimbaInsightCatsdataGetAPIRequest.go | 80 + ...aobaoSimbaInsightCatsdataGetAPIResponse.go | 27 + .../TaobaoSimbaInsightCatsdataGetResponse.go | 27 - ...imbaInsightCatsforecastnewGetAPIRequest.go | 52 + ...mbaInsightCatsforecastnewGetAPIResponse.go | 27 + ...oSimbaInsightCatsforecastnewGetResponse.go | 27 - ...TaobaoSimbaInsightCatsinfoGetAPIRequest.go | 66 + ...aobaoSimbaInsightCatsinfoGetAPIResponse.go | 27 + .../TaobaoSimbaInsightCatsinfoGetResponse.go | 27 - ...SimbaInsightCatstopwordnewGetAPIRequest.go | 108 + ...imbaInsightCatstopwordnewGetAPIResponse.go | 27 + ...aoSimbaInsightCatstopwordnewGetResponse.go | 27 - ...aoSimbaInsightCatsworddataGetAPIRequest.go | 94 + ...oSimbaInsightCatsworddataGetAPIResponse.go | 27 + ...obaoSimbaInsightCatsworddataGetResponse.go | 27 - ...aoSimbaInsightRelatedwordsGetAPIRequest.go | 66 + ...oSimbaInsightRelatedwordsGetAPIResponse.go | 27 + ...obaoSimbaInsightRelatedwordsGetResponse.go | 27 - ...oSimbaInsightWordsareadataGetAPIRequest.go | 80 + ...SimbaInsightWordsareadataGetAPIResponse.go | 27 + ...baoSimbaInsightWordsareadataGetResponse.go | 27 - ...aobaoSimbaInsightWordsdataGetAPIRequest.go | 80 + ...obaoSimbaInsightWordsdataGetAPIResponse.go | 27 + .../TaobaoSimbaInsightWordsdataGetResponse.go | 27 - ...SimbaInsightWordspricedataGetAPIRequest.go | 80 + ...imbaInsightWordspricedataGetAPIResponse.go | 27 + ...aoSimbaInsightWordspricedataGetResponse.go | 27 - ...aoSimbaInsightWordssubdataGetAPIRequest.go | 80 + ...oSimbaInsightWordssubdataGetAPIResponse.go | 27 + ...obaoSimbaInsightWordssubdataGetResponse.go | 27 - .../simba/TaobaoSimbaKeywordAddAPIRequest.go | 66 + .../simba/TaobaoSimbaKeywordAddAPIResponse.go | 29 + model/simba/TaobaoSimbaKeywordAddResponse.go | 29 - ...aoSimbaKeywordFindbyadgroupidAPIRequest.go | 52 + ...oSimbaKeywordFindbyadgroupidAPIResponse.go | 29 + ...obaoSimbaKeywordFindbyadgroupidResponse.go | 29 - .../TaobaoSimbaKeywordFindbyidsAPIRequest.go | 52 + .../TaobaoSimbaKeywordFindbyidsAPIResponse.go | 29 + .../TaobaoSimbaKeywordFindbyidsResponse.go | 29 - .../TaobaoSimbaKeywordUpdateAPIRequest.go | 52 + .../TaobaoSimbaKeywordUpdateAPIResponse.go | 29 + .../simba/TaobaoSimbaKeywordUpdateResponse.go | 29 - ...obaoSimbaKeywordidsChangedGetAPIRequest.go | 94 + ...baoSimbaKeywordidsChangedGetAPIResponse.go | 27 + ...TaobaoSimbaKeywordidsChangedGetResponse.go | 27 - ...obaoSimbaKeywordidsDeletedGetAPIRequest.go | 94 + ...baoSimbaKeywordidsDeletedGetAPIResponse.go | 27 + ...TaobaoSimbaKeywordidsDeletedGetResponse.go | 27 - ...TaobaoSimbaKeywordsChangedGetAPIRequest.go | 94 + ...aobaoSimbaKeywordsChangedGetAPIResponse.go | 27 + .../TaobaoSimbaKeywordsChangedGetResponse.go | 27 - .../TaobaoSimbaKeywordsDeleteAPIRequest.go | 80 + .../TaobaoSimbaKeywordsDeleteAPIResponse.go | 27 + .../TaobaoSimbaKeywordsDeleteResponse.go | 27 - ...aobaoSimbaKeywordsPricevonSetAPIRequest.go | 66 + ...obaoSimbaKeywordsPricevonSetAPIResponse.go | 27 + .../TaobaoSimbaKeywordsPricevonSetResponse.go | 27 - .../TaobaoSimbaKeywordsQscoreGetAPIRequest.go | 66 + ...TaobaoSimbaKeywordsQscoreGetAPIResponse.go | 27 + .../TaobaoSimbaKeywordsQscoreGetResponse.go | 27 - ...aoSimbaKeywordsQscoreSplitGetAPIRequest.go | 80 + ...oSimbaKeywordsQscoreSplitGetAPIResponse.go | 27 + ...obaoSimbaKeywordsQscoreSplitGetResponse.go | 27 - ...baoSimbaKeywordsQscoreSplitGetResultDto.go | 11 + ...ywordsRealtimeRankingBatchGetAPIRequest.go | 80 + ...wordsRealtimeRankingBatchGetAPIResponse.go | 27 + ...KeywordsRealtimeRankingBatchGetResponse.go | 27 - ...eywordsRealtimeRankingBatchGetResultDto.go | 15 + ...obaoSimbaKeywordsRecommendGetAPIRequest.go | 136 ++ ...baoSimbaKeywordsRecommendGetAPIResponse.go | 27 + ...TaobaoSimbaKeywordsRecommendGetResponse.go | 27 - ...aoSimbaKeywordsbyadgroupidGetAPIRequest.go | 66 + ...oSimbaKeywordsbyadgroupidGetAPIResponse.go | 27 + ...obaoSimbaKeywordsbyadgroupidGetResponse.go | 27 - ...oSimbaKeywordsbykeywordidsGetAPIRequest.go | 66 + ...SimbaKeywordsbykeywordidsGetAPIResponse.go | 27 + ...baoSimbaKeywordsbykeywordidsGetResponse.go | 27 - ...obaoSimbaKeywordscatQscoreGetAPIRequest.go | 66 + ...baoSimbaKeywordscatQscoreGetAPIResponse.go | 27 + ...TaobaoSimbaKeywordscatQscoreGetResponse.go | 27 - .../TaobaoSimbaKeywordsvonAddAPIRequest.go | 80 + .../TaobaoSimbaKeywordsvonAddAPIResponse.go | 27 + .../TaobaoSimbaKeywordsvonAddResponse.go | 27 - .../TaobaoSimbaLoginAuthsignGetAPIRequest.go | 52 + .../TaobaoSimbaLoginAuthsignGetAPIResponse.go | 27 + .../TaobaoSimbaLoginAuthsignGetResponse.go | 27 - .../TaobaoSimbaReportCityGetAPIRequest.go | 94 + .../TaobaoSimbaReportCityGetAPIResponse.go | 27 + .../simba/TaobaoSimbaReportCityGetResponse.go | 27 - .../TaobaoSimbaRptAdgroupbaseGetAPIRequest.go | 178 ++ ...TaobaoSimbaRptAdgroupbaseGetAPIResponse.go | 27 + .../TaobaoSimbaRptAdgroupbaseGetResponse.go | 27 - ...imbaRptAdgroupcreativebaseGetAPIRequest.go | 178 ++ ...mbaRptAdgroupcreativebaseGetAPIResponse.go | 27 + ...oSimbaRptAdgroupcreativebaseGetResponse.go | 27 - ...baRptAdgroupcreativeeffectGetAPIRequest.go | 178 ++ ...aRptAdgroupcreativeeffectGetAPIResponse.go | 27 + ...imbaRptAdgroupcreativeeffectGetResponse.go | 27 - ...aobaoSimbaRptAdgroupeffectGetAPIRequest.go | 178 ++ ...obaoSimbaRptAdgroupeffectGetAPIResponse.go | 27 + .../TaobaoSimbaRptAdgroupeffectGetResponse.go | 27 - ...SimbaRptAdgroupkeywordbaseGetAPIRequest.go | 178 ++ ...imbaRptAdgroupkeywordbaseGetAPIResponse.go | 27 + ...aoSimbaRptAdgroupkeywordbaseGetResponse.go | 27 - ...mbaRptAdgroupkeywordeffectGetAPIRequest.go | 178 ++ ...baRptAdgroupkeywordeffectGetAPIResponse.go | 27 + ...SimbaRptAdgroupkeywordeffectGetResponse.go | 27 - ...baoSimbaRptCampadgroupbaseGetAPIRequest.go | 164 ++ ...aoSimbaRptCampadgroupbaseGetAPIResponse.go | 27 + ...aobaoSimbaRptCampadgroupbaseGetResponse.go | 27 - ...oSimbaRptCampadgroupeffectGetAPIRequest.go | 164 ++ ...SimbaRptCampadgroupeffectGetAPIResponse.go | 27 + ...baoSimbaRptCampadgroupeffectGetResponse.go | 27 - ...TaobaoSimbaRptCampaignbaseGetAPIRequest.go | 164 ++ ...aobaoSimbaRptCampaignbaseGetAPIResponse.go | 27 + .../TaobaoSimbaRptCampaignbaseGetResponse.go | 27 - ...obaoSimbaRptCampaigneffectGetAPIRequest.go | 164 ++ ...baoSimbaRptCampaigneffectGetAPIResponse.go | 27 + ...TaobaoSimbaRptCampaigneffectGetResponse.go | 27 - .../TaobaoSimbaRptCustbaseGetAPIRequest.go | 136 ++ .../TaobaoSimbaRptCustbaseGetAPIResponse.go | 27 + .../TaobaoSimbaRptCustbaseGetResponse.go | 27 - .../TaobaoSimbaRptCusteffectGetAPIRequest.go | 136 ++ .../TaobaoSimbaRptCusteffectGetAPIResponse.go | 27 + .../TaobaoSimbaRptCusteffectGetResponse.go | 27 - ...TaobaoSimbaRptTargetingtagGetAPIRequest.go | 122 ++ ...aobaoSimbaRptTargetingtagGetAPIResponse.go | 27 + .../TaobaoSimbaRptTargetingtagGetResponse.go | 27 - ...aoSimbaRptTargetingtagbaseGetAPIRequest.go | 136 ++ ...oSimbaRptTargetingtagbaseGetAPIResponse.go | 27 + ...obaoSimbaRptTargetingtagbaseGetResponse.go | 27 - ...SimbaRptTargetingtageffectGetAPIRequest.go | 136 ++ ...imbaRptTargetingtageffectGetAPIResponse.go | 27 + ...aoSimbaRptTargetingtageffectGetResponse.go | 27 - .../TaobaoSimbaRtrptAdgroupGetAPIRequest.go | 108 + .../TaobaoSimbaRtrptAdgroupGetAPIResponse.go | 27 + .../TaobaoSimbaRtrptAdgroupGetResponse.go | 27 - .../TaobaoSimbaRtrptBidwordGetAPIRequest.go | 94 + .../TaobaoSimbaRtrptBidwordGetAPIResponse.go | 27 + .../TaobaoSimbaRtrptBidwordGetResponse.go | 27 - .../TaobaoSimbaRtrptCampaignGetAPIRequest.go | 66 + .../TaobaoSimbaRtrptCampaignGetAPIResponse.go | 27 + .../TaobaoSimbaRtrptCampaignGetResponse.go | 27 - .../TaobaoSimbaRtrptCreativeGetAPIRequest.go | 94 + .../TaobaoSimbaRtrptCreativeGetAPIResponse.go | 27 + .../TaobaoSimbaRtrptCreativeGetResponse.go | 27 - .../TaobaoSimbaRtrptCustGetAPIRequest.go | 66 + .../TaobaoSimbaRtrptCustGetAPIResponse.go | 27 + .../simba/TaobaoSimbaRtrptCustGetResponse.go | 27 - ...obaoSimbaRtrptTargetingtagGetAPIRequest.go | 108 + ...baoSimbaRtrptTargetingtagGetAPIResponse.go | 27 + ...TaobaoSimbaRtrptTargetingtagGetResponse.go | 27 - ...TaobaoSimbaSalestarAdgroupAddAPIRequest.go | 94 + ...aobaoSimbaSalestarAdgroupAddAPIResponse.go | 27 + .../TaobaoSimbaSalestarAdgroupAddResponse.go | 27 - ...baoSimbaSalestarAdgroupDeleteAPIRequest.go | 66 + ...aoSimbaSalestarAdgroupDeleteAPIResponse.go | 29 + ...aobaoSimbaSalestarAdgroupDeleteResponse.go | 29 - ...baSalestarAdgroupFindbycampidAPIRequest.go | 80 + ...aSalestarAdgroupFindbycampidAPIResponse.go | 27 + ...imbaSalestarAdgroupFindbycampidResponse.go | 27 - ...baoSimbaSalestarAdgroupUpdateAPIRequest.go | 66 + ...aoSimbaSalestarAdgroupUpdateAPIResponse.go | 27 + ...aobaoSimbaSalestarAdgroupUpdateResponse.go | 27 - ...aSalestarCampaignBudgetUpdateAPIRequest.go | 66 + ...SalestarCampaignBudgetUpdateAPIResponse.go | 27 + ...mbaSalestarCampaignBudgetUpdateResponse.go | 27 - ...aobaoSimbaSalestarCreativeAddAPIRequest.go | 94 + ...obaoSimbaSalestarCreativeAddAPIResponse.go | 27 + .../TaobaoSimbaSalestarCreativeAddResponse.go | 27 - ...aoSimbaSalestarCreativeDeleteAPIRequest.go | 52 + ...oSimbaSalestarCreativeDeleteAPIResponse.go | 27 + ...obaoSimbaSalestarCreativeDeleteResponse.go | 27 - ...aoSimbaSalestarCreativeUpdateAPIRequest.go | 108 + ...oSimbaSalestarCreativeUpdateAPIResponse.go | 27 + ...obaoSimbaSalestarCreativeUpdateResponse.go | 27 - ...obaoSimbaSalestarCreativesGetAPIRequest.go | 80 + ...baoSimbaSalestarCreativesGetAPIResponse.go | 27 + ...TaobaoSimbaSalestarCreativesGetResponse.go | 27 - ...aoSimbaSalestarKeywordsDeleteAPIRequest.go | 52 + ...oSimbaSalestarKeywordsDeleteAPIResponse.go | 29 + ...obaoSimbaSalestarKeywordsDeleteResponse.go | 29 - ...alestarKeywordsQscoreSplitGetAPIRequest.go | 80 + ...lestarKeywordsQscoreSplitGetAPIResponse.go | 27 + ...aSalestarKeywordsQscoreSplitGetResponse.go | 27 - ...SalestarKeywordsQscoreSplitGetResultDto.go | 11 + ...aSalestarKeywordsRecommendGetAPIRequest.go | 66 + ...SalestarKeywordsRecommendGetAPIResponse.go | 27 + ...mbaSalestarKeywordsRecommendGetResponse.go | 27 - ...aobaoSimbaSearchcrowdBatchAddAPIRequest.go | 80 + ...obaoSimbaSearchcrowdBatchAddAPIResponse.go | 27 + .../TaobaoSimbaSearchcrowdBatchAddResponse.go | 27 - ...obaoSimbaSearchtagtemplateGetAPIRequest.go | 66 + ...baoSimbaSearchtagtemplateGetAPIResponse.go | 27 + ...TaobaoSimbaSearchtagtemplateGetResponse.go | 27 - ...baoSimbaSerchcrowdBatchDeleteAPIRequest.go | 80 + ...aoSimbaSerchcrowdBatchDeleteAPIResponse.go | 31 + ...aobaoSimbaSerchcrowdBatchDeleteResponse.go | 31 - .../TaobaoSimbaSerchcrowdGetAPIRequest.go | 66 + .../TaobaoSimbaSerchcrowdGetAPIResponse.go | 27 + .../simba/TaobaoSimbaSerchcrowdGetResponse.go | 27 - ...mbaSerchcrowdPriceBatchUpdateAPIRequest.go | 108 + ...baSerchcrowdPriceBatchUpdateAPIResponse.go | 27 + ...SimbaSerchcrowdPriceBatchUpdateResponse.go | 27 - ...mbaSerchcrowdStateBatchUpdateAPIRequest.go | 94 + ...baSerchcrowdStateBatchUpdateAPIResponse.go | 29 + ...SimbaSerchcrowdStateBatchUpdateResponse.go | 29 - .../TaobaoSimbaToolsItemsTopGetAPIRequest.go | 80 + .../TaobaoSimbaToolsItemsTopGetAPIResponse.go | 27 + .../TaobaoSimbaToolsItemsTopGetResponse.go | 27 - .../TaobaoSubwayAutomatchRptGetAPIRequest.go | 108 + .../TaobaoSubwayAutomatchRptGetAPIResponse.go | 27 + .../TaobaoSubwayAutomatchRptGetResponse.go | 27 - model/simba/TaobaoSubwayCiaGetAPIRequest.go | 66 + model/simba/TaobaoSubwayCiaGetAPIResponse.go | 27 + model/simba/TaobaoSubwayCiaGetResponse.go | 27 - .../simba/TaobaoSubwayCiaUpdateAPIRequest.go | 66 + .../simba/TaobaoSubwayCiaUpdateAPIResponse.go | 27 + model/simba/TaobaoSubwayCiaUpdateResponse.go | 27 - .../TaobaoSubwayMarshLandRptGetAPIRequest.go | 122 ++ .../TaobaoSubwayMarshLandRptGetAPIResponse.go | 27 + .../TaobaoSubwayMarshLandRptGetResponse.go | 27 - .../TaobaoSubwayWordpackageGetAPIRequest.go | 66 + .../TaobaoSubwayWordpackageGetAPIResponse.go | 27 + .../TaobaoSubwayWordpackageGetResponse.go | 27 - ...TaobaoSubwayWordpackageUpdateAPIRequest.go | 80 + ...aobaoSubwayWordpackageUpdateAPIResponse.go | 27 + .../TaobaoSubwayWordpackageUpdateResponse.go | 27 - ...oSingletreasureActivityCreateAPIRequest.go | 52 + ...SingletreasureActivityCreateAPIResponse.go | 27 + ...baoSingletreasureActivityCreateResponse.go | 27 - ...aoSingletreasureActivityCreateResultDto.go | 13 + ...oSingletreasureActivityDeleteAPIRequest.go | 52 + ...SingletreasureActivityDeleteAPIResponse.go | 33 + ...baoSingletreasureActivityDeleteResponse.go | 33 - ...etreasureActivityItemBatchaddAPIRequest.go | 52 + ...treasureActivityItemBatchaddAPIResponse.go | 27 + ...gletreasureActivityItemBatchaddResponse.go | 27 - ...letreasureActivityItemBatchaddResultDto.go | 13 + ...easureActivityItemBatchupdateAPIRequest.go | 52 + ...asureActivityItemBatchupdateAPIResponse.go | 27 + ...treasureActivityItemBatchupdateResponse.go | 27 - ...reasureActivityItemBatchupdateResultDto.go | 13 + ...gletreasureActivityItemDeleteAPIRequest.go | 66 + ...letreasureActivityItemDeleteAPIResponse.go | 27 + ...ingletreasureActivityItemDeleteResponse.go | 27 - ...ngletreasureActivityItemDeleteResultDto.go | 13 + ...ngletreasureActivityItemQueryAPIRequest.go | 80 + ...gletreasureActivityItemQueryAPIResponse.go | 27 + ...SingletreasureActivityItemQueryResponse.go | 27 - ...gletreasureActivityItemUpdateAPIRequest.go | 52 + ...letreasureActivityItemUpdateAPIResponse.go | 27 + ...ingletreasureActivityItemUpdateResponse.go | 27 - ...ngletreasureActivityItemUpdateResultDto.go | 13 + ...ngletreasureActivityNameQueryAPIRequest.go | 38 + ...gletreasureActivityNameQueryAPIResponse.go | 27 + ...SingletreasureActivityNameQueryResponse.go | 27 - ...ingletreasureActivityNameQueryResultDto.go | 13 + ...aoSingletreasureActivityQueryAPIRequest.go | 52 + ...oSingletreasureActivityQueryAPIResponse.go | 27 + ...obaoSingletreasureActivityQueryResponse.go | 27 - ...baoSingletreasureActivityQueryResultDto.go | 19 + ...oSingletreasureActivityUpdateAPIRequest.go | 52 + ...SingletreasureActivityUpdateAPIResponse.go | 27 + ...baoSingletreasureActivityUpdateResponse.go | 27 - ...aoSingletreasureActivityUpdateResultDto.go | 13 + .../TaobaoIstoreAreasGetAPIRequest.go | 53 + .../TaobaoIstoreAreasGetAPIResponse.go | 28 + .../TaobaoIstoreAreasGetResponse.go | 28 - ...rrsAcceptanceTaskUpdateResultAPIRequest.go | 66 + ...rsAcceptanceTaskUpdateResultAPIResponse.go | 27 + ...oNrrsAcceptanceTaskUpdateResultResponse.go | 27 - .../TaobaoSmartstoreDeviceAddAPIRequest.go | 136 ++ .../TaobaoSmartstoreDeviceAddAPIResponse.go | 27 + .../TaobaoSmartstoreDeviceAddResponse.go | 27 - ...oreDeviceIashelfBatchFeedbackAPIRequest.go | 70 + ...reDeviceIashelfBatchFeedbackAPIResponse.go | 31 + ...storeDeviceIashelfBatchFeedbackResponse.go | 31 - ...artstoreDeviceIashelfFeedbackAPIRequest.go | 184 ++ ...rtstoreDeviceIashelfFeedbackAPIResponse.go | 33 + ...SmartstoreDeviceIashelfFeedbackResponse.go | 33 - ...oreDeviceMakeupmirrorFeedbackAPIRequest.go | 227 +++ ...reDeviceMakeupmirrorFeedbackAPIResponse.go | 34 + ...storeDeviceMakeupmirrorFeedbackResponse.go | 34 - ...SmartstoreDeviceShelfFeedbackAPIRequest.go | 139 ++ ...martstoreDeviceShelfFeedbackAPIResponse.go | 30 + ...aoSmartstoreDeviceShelfFeedbackResponse.go | 30 - ...martstoreDeviceStatusFeedbackAPIRequest.go | 80 + ...artstoreDeviceStatusFeedbackAPIResponse.go | 27 + ...oSmartstoreDeviceStatusFeedbackResponse.go | 27 - ...tstoreDeviceStoregameFeedbackAPIRequest.go | 212 ++ ...storeDeviceStoregameFeedbackAPIResponse.go | 33 + ...artstoreDeviceStoregameFeedbackResponse.go | 33 - ...PopupstoreActivityDeviceQueryAPIRequest.go | 52 + ...opupstoreActivityDeviceQueryAPIResponse.go | 27 + ...llPopupstoreActivityDeviceQueryResponse.go | 27 - ...lPopupstoreActivityDeviceQueryResultDto.go | 13 + .../TmallPopupstoreActivityQueryAPIRequest.go | 66 + ...TmallPopupstoreActivityQueryAPIResponse.go | 27 + .../TmallPopupstoreActivityQueryResponse.go | 27 - .../TmallPopupstoreActivityQueryResultDto.go | 13 + ...llPopupstoreItemDiscountPriceAPIRequest.go | 52 + ...lPopupstoreItemDiscountPriceAPIResponse.go | 27 + ...mallPopupstoreItemDiscountPriceResponse.go | 27 - ...allPopupstoreItemDiscountPriceResultDto.go | 13 + .../TaobaoPlaceStoreExtendUpdateAPIRequest.go | 52 + ...TaobaoPlaceStoreExtendUpdateAPIResponse.go | 27 + .../TaobaoPlaceStoreExtendUpdateResponse.go | 27 - .../TaobaoPlaceStoreExtendUpdateResultDo.go | 23 + ...TaobaoPlaceStoreItemstoreBandAPIRequest.go | 80 + ...aobaoPlaceStoreItemstoreBandAPIResponse.go | 27 + .../TaobaoPlaceStoreItemstoreBandResponse.go | 27 - .../store/TaobaoPlaceStoreQueryAPIRequest.go | 80 + .../store/TaobaoPlaceStoreQueryAPIResponse.go | 27 + model/store/TaobaoPlaceStoreQueryResponse.go | 27 - ...TaobaoPlaceStoreRelationQueryAPIRequest.go | 52 + ...aobaoPlaceStoreRelationQueryAPIResponse.go | 27 + .../TaobaoPlaceStoreRelationQueryResponse.go | 27 - .../TaobaoPlaceStoreUpdateLabelAPIRequest.go | 94 + .../TaobaoPlaceStoreUpdateLabelAPIResponse.go | 27 + .../TaobaoPlaceStoreUpdateLabelResponse.go | 27 - .../TaobaoPlaceStoregroupCreateAPIRequest.go | 66 + .../TaobaoPlaceStoregroupCreateAPIResponse.go | 27 + .../TaobaoPlaceStoregroupCreateResponse.go | 27 - .../TaobaoPlaceStoregroupDeleteAPIRequest.go | 52 + .../TaobaoPlaceStoregroupDeleteAPIResponse.go | 27 + .../TaobaoPlaceStoregroupDeleteResponse.go | 27 - .../TaobaoPlaceStoregroupUpdateAPIRequest.go | 80 + .../TaobaoPlaceStoregroupUpdateAPIResponse.go | 27 + .../TaobaoPlaceStoregroupUpdateResponse.go | 27 - .../TaobaoPlaceStorerelatesubAddAPIRequest.go | 66 + ...TaobaoPlaceStorerelatesubAddAPIResponse.go | 27 + .../TaobaoPlaceStorerelatesubAddResponse.go | 27 - ...obaoPlaceStorerelatesubDeleteAPIRequest.go | 66 + ...baoPlaceStorerelatesubDeleteAPIResponse.go | 27 + ...TaobaoPlaceStorerelatesubDeleteResponse.go | 27 - .../TaobaoPlaceStorerelatesubGetAPIRequest.go | 94 + ...TaobaoPlaceStorerelatesubGetAPIResponse.go | 27 + .../TaobaoPlaceStorerelatesubGetResponse.go | 27 - .../TaobaoSellercenterRoleAddAPIRequest.go | 94 + .../TaobaoSellercenterRoleAddAPIResponse.go | 27 + .../TaobaoSellercenterRoleAddResponse.go | 27 - .../TaobaoSellercenterRolesGetAPIRequest.go | 52 + .../TaobaoSellercenterRolesGetAPIResponse.go | 27 + .../TaobaoSellercenterRolesGetResponse.go | 27 - ...terSubuserPermissionsRolesGetAPIRequest.go | 52 + ...erSubuserPermissionsRolesGetAPIResponse.go | 27 + ...enterSubuserPermissionsRolesGetResponse.go | 27 - ...TaobaoSellercenterSubusersGetAPIRequest.go | 52 + ...aobaoSellercenterSubusersGetAPIResponse.go | 27 + .../TaobaoSellercenterSubusersGetResponse.go | 27 - ...ellercenterUserPermissionsGetAPIRequest.go | 52 + ...llercenterUserPermissionsGetAPIResponse.go | 27 + ...oSellercenterUserPermissionsGetResponse.go | 27 - .../TaobaoSubuserDepartmentsGetAPIRequest.go | 52 + .../TaobaoSubuserDepartmentsGetAPIResponse.go | 27 + .../TaobaoSubuserDepartmentsGetResponse.go | 27 - .../TaobaoSubuserDutysGetAPIRequest.go | 52 + .../TaobaoSubuserDutysGetAPIResponse.go | 27 + .../subuser/TaobaoSubuserDutysGetResponse.go | 27 - .../TaobaoSubuserFullinfoGetAPIRequest.go | 80 + .../TaobaoSubuserFullinfoGetAPIResponse.go | 27 + .../TaobaoSubuserFullinfoGetResponse.go | 27 - .../TaobaoSubuserInfoUpdateAPIRequest.go | 80 + .../TaobaoSubuserInfoUpdateAPIResponse.go | 27 + .../TaobaoSubuserInfoUpdateResponse.go | 27 - model/subuser/TaobaoSubusersGetAPIRequest.go | 52 + model/subuser/TaobaoSubusersGetAPIResponse.go | 27 + model/subuser/TaobaoSubusersGetResponse.go | 27 - ...oCloudbridgeCaseinvestExecuteAPIRequest.go | 66 + ...CloudbridgeCaseinvestExecuteAPIResponse.go | 27 + ...baoCloudbridgeCaseinvestExecuteResponse.go | 27 - .../TaobaoSungariDisposeQueryAPIRequest.go | 52 + .../TaobaoSungariDisposeQueryAPIResponse.go | 27 + .../TaobaoSungariDisposeQueryResponse.go | 27 - .../TaobaoSungariDisposeSubmitAPIRequest.go | 52 + .../TaobaoSungariDisposeSubmitAPIResponse.go | 31 + .../TaobaoSungariDisposeSubmitResponse.go | 31 - ...TaobaoSungariInspectionSubmitAPIRequest.go | 66 + ...aobaoSungariInspectionSubmitAPIResponse.go | 31 + .../TaobaoSungariInspectionSubmitResponse.go | 31 - .../TaobaoTanxAuditCreativeAddAPIRequest.go | 94 + .../TaobaoTanxAuditCreativeAddAPIResponse.go | 31 + .../TaobaoTanxAuditCreativeAddResponse.go | 31 - ...TaobaoTanxAuditCreativeModifyAPIRequest.go | 80 + ...aobaoTanxAuditCreativeModifyAPIResponse.go | 31 + .../TaobaoTanxAuditCreativeModifyResponse.go | 31 - ...aoTanxAuditDepositcreativeAddAPIRequest.go | 94 + ...oTanxAuditDepositcreativeAddAPIResponse.go | 31 + ...obaoTanxAuditDepositcreativeAddResponse.go | 31 - .../TaobaoTanxBiddingrefusesGetAPIRequest.go | 122 ++ .../TaobaoTanxBiddingrefusesGetAPIResponse.go | 29 + .../TaobaoTanxBiddingrefusesGetResponse.go | 29 - model/tanx/TaobaoTanxCreativeAddAPIRequest.go | 178 ++ .../tanx/TaobaoTanxCreativeAddAPIResponse.go | 31 + model/tanx/TaobaoTanxCreativeAddResponse.go | 31 - model/tanx/TaobaoTanxCreativeGetAPIRequest.go | 94 + .../tanx/TaobaoTanxCreativeGetAPIResponse.go | 33 + model/tanx/TaobaoTanxCreativeGetResponse.go | 33 - .../tanx/TaobaoTanxCreativesGetAPIRequest.go | 122 ++ .../tanx/TaobaoTanxCreativesGetAPIResponse.go | 33 + model/tanx/TaobaoTanxCreativesGetResponse.go | 33 - model/tanx/TaobaoTanxDealGetAPIRequest.go | 94 + model/tanx/TaobaoTanxDealGetAPIResponse.go | 33 + model/tanx/TaobaoTanxDealGetResponse.go | 33 - model/tanx/TaobaoTanxDealsGetAPIRequest.go | 122 ++ model/tanx/TaobaoTanxDealsGetAPIResponse.go | 33 + model/tanx/TaobaoTanxDealsGetResponse.go | 33 - .../TaobaoTanxNativetemplatesGetAPIRequest.go | 94 + ...TaobaoTanxNativetemplatesGetAPIResponse.go | 29 + .../TaobaoTanxNativetemplatesGetResponse.go | 29 - .../TaobaoTanxQualificationAddAPIRequest.go | 94 + .../TaobaoTanxQualificationAddAPIResponse.go | 29 + .../TaobaoTanxQualificationAddResponse.go | 29 - ...anxQualificationAdvertiserAddAPIRequest.go | 94 + ...nxQualificationAdvertiserAddAPIResponse.go | 29 + ...oTanxQualificationAdvertiserAddResponse.go | 29 - .../TaobaoTanxQualificationFindAPIRequest.go | 122 ++ .../TaobaoTanxQualificationFindAPIResponse.go | 31 + .../TaobaoTanxQualificationFindResponse.go | 31 - ...TaobaoTanxQualificationModifyAPIRequest.go | 94 + ...aobaoTanxQualificationModifyAPIResponse.go | 27 + .../TaobaoTanxQualificationModifyResponse.go | 27 - ...anxQualificationPictureUploadAPIRequest.go | 94 + ...nxQualificationPictureUploadAPIResponse.go | 29 + ...oTanxQualificationPictureUploadResponse.go | 29 - ...baoTanxQualificationSolidFindAPIRequest.go | 136 ++ ...aoTanxQualificationSolidFindAPIResponse.go | 31 + ...aobaoTanxQualificationSolidFindResponse.go | 31 - ...obaoTaotvCarouselCategoryListAPIRequest.go | 52 + ...baoTaotvCarouselCategoryListAPIResponse.go | 27 + ...TaobaoTaotvCarouselCategoryListResponse.go | 27 - ...TaobaoTaotvCarouselChannelAllAPIRequest.go | 52 + ...aobaoTaotvCarouselChannelAllAPIResponse.go | 27 + .../TaobaoTaotvCarouselChannelAllResponse.go | 27 - ...aobaoTaotvCarouselPlaylistGetAPIRequest.go | 66 + ...obaoTaotvCarouselPlaylistGetAPIResponse.go | 27 + .../TaobaoTaotvCarouselPlaylistGetResponse.go | 27 - .../TaobaoTaotvVideoPlaylistAllAPIRequest.go | 52 + .../TaobaoTaotvVideoPlaylistAllAPIResponse.go | 27 + .../TaobaoTaotvVideoPlaylistAllResponse.go | 27 - .../TaobaoTaotvVideoPlaylistGetAPIRequest.go | 66 + .../TaobaoTaotvVideoPlaylistGetAPIResponse.go | 27 + .../TaobaoTaotvVideoPlaylistGetResponse.go | 27 - ...aoTaotvVideoPlaylistOttnavGetAPIRequest.go | 80 + ...oTaotvVideoPlaylistOttnavGetAPIResponse.go | 27 + ...obaoTaotvVideoPlaylistOttnavGetResponse.go | 27 - .../TaobaoTaotvVideoPlaylistPageAPIRequest.go | 66 + ...TaobaoTaotvVideoPlaylistPageAPIResponse.go | 27 + .../TaobaoTaotvVideoPlaylistPageResponse.go | 27 - .../YoukuTvDesktopToyouRecommendAPIRequest.go | 206 ++ ...YoukuTvDesktopToyouRecommendAPIResponse.go | 27 + .../YoukuTvDesktopToyouRecommendResponse.go | 27 - model/tax/AlibabaTaxInvoiceSyncAPIRequest.go | 52 + model/tax/AlibabaTaxInvoiceSyncAPIResponse.go | 27 + model/tax/AlibabaTaxInvoiceSyncResponse.go | 27 - .../tbk/TaobaoTbkActivityInfoGetAPIRequest.go | 108 + .../TaobaoTbkActivityInfoGetAPIResponse.go | 27 + model/tbk/TaobaoTbkActivityInfoGetResponse.go | 27 - ...oTbkCartCouponExpireUserQueryAPIRequest.go | 80 + ...TbkCartCouponExpireUserQueryAPIResponse.go | 27 + ...baoTbkCartCouponExpireUserQueryResponse.go | 27 - model/tbk/TaobaoTbkCouponGetAPIRequest.go | 80 + model/tbk/TaobaoTbkCouponGetAPIResponse.go | 27 + model/tbk/TaobaoTbkCouponGetResponse.go | 27 - .../TaobaoTbkDgMaterialOptionalAPIRequest.go | 612 ++++++ .../TaobaoTbkDgMaterialOptionalAPIResponse.go | 31 + .../TaobaoTbkDgMaterialOptionalResponse.go | 31 - .../TaobaoTbkDgNewuserOrderGetAPIRequest.go | 122 ++ .../TaobaoTbkDgNewuserOrderGetAPIResponse.go | 27 + .../tbk/TaobaoTbkDgNewuserOrderGetResponse.go | 27 - .../TaobaoTbkDgNewuserOrderSumAPIRequest.go | 122 ++ .../TaobaoTbkDgNewuserOrderSumAPIResponse.go | 27 + .../tbk/TaobaoTbkDgNewuserOrderSumResponse.go | 27 - .../TaobaoTbkDgOptimusMaterialAPIRequest.go | 192 ++ .../TaobaoTbkDgOptimusMaterialAPIResponse.go | 31 + .../tbk/TaobaoTbkDgOptimusMaterialResponse.go | 31 - .../TaobaoTbkDgOptimusPromotionAPIRequest.go | 94 + .../TaobaoTbkDgOptimusPromotionAPIResponse.go | 27 + .../TaobaoTbkDgOptimusPromotionResponse.go | 27 - .../TaobaoTbkDgPunishOrderGetAPIRequest.go | 52 + .../TaobaoTbkDgPunishOrderGetAPIResponse.go | 27 + .../tbk/TaobaoTbkDgPunishOrderGetResponse.go | 27 - .../TaobaoTbkDgVegasSendStatusAPIRequest.go | 122 ++ .../TaobaoTbkDgVegasSendStatusAPIResponse.go | 29 + .../tbk/TaobaoTbkDgVegasSendStatusResponse.go | 29 - .../TaobaoTbkDgVegasTljCreateAPIRequest.go | 234 +++ .../TaobaoTbkDgVegasTljCreateAPIResponse.go | 27 + .../tbk/TaobaoTbkDgVegasTljCreateResponse.go | 27 - ...aoTbkDgVegasTljInstanceReportAPIRequest.go | 52 + ...oTbkDgVegasTljInstanceReportAPIResponse.go | 27 + ...obaoTbkDgVegasTljInstanceReportResponse.go | 27 - model/tbk/TaobaoTbkItemInfoGetAPIRequest.go | 80 + model/tbk/TaobaoTbkItemInfoGetAPIResponse.go | 27 + model/tbk/TaobaoTbkItemInfoGetResponse.go | 27 - .../tbk/TaobaoTbkScInvitecodeGetAPIRequest.go | 80 + .../TaobaoTbkScInvitecodeGetAPIResponse.go | 27 + model/tbk/TaobaoTbkScInvitecodeGetResponse.go | 27 - .../TaobaoTbkScPublisherInfoGetAPIRequest.go | 150 ++ .../TaobaoTbkScPublisherInfoGetAPIResponse.go | 27 + .../TaobaoTbkScPublisherInfoGetResponse.go | 27 - .../TaobaoTbkScPublisherInfoSaveAPIRequest.go | 136 ++ ...TaobaoTbkScPublisherInfoSaveAPIResponse.go | 27 + .../TaobaoTbkScPublisherInfoSaveResponse.go | 27 - model/tbk/TaobaoTbkShopGetAPIRequest.go | 248 +++ model/tbk/TaobaoTbkShopGetAPIResponse.go | 29 + model/tbk/TaobaoTbkShopGetResponse.go | 29 - .../TaobaoTbkShopRecommendGetAPIRequest.go | 94 + .../TaobaoTbkShopRecommendGetAPIResponse.go | 27 + .../tbk/TaobaoTbkShopRecommendGetResponse.go | 27 - model/tbk/TaobaoTbkSkuBestCouponAPIRequest.go | 66 + .../tbk/TaobaoTbkSkuBestCouponAPIResponse.go | 27 + model/tbk/TaobaoTbkSkuBestCouponResponse.go | 27 - model/tbk/TaobaoTbkSpreadGetAPIRequest.go | 53 + model/tbk/TaobaoTbkSpreadGetAPIResponse.go | 30 + model/tbk/TaobaoTbkSpreadGetResponse.go | 30 - model/tbk/TaobaoTbkTpwdCreateAPIRequest.go | 108 + model/tbk/TaobaoTbkTpwdCreateAPIResponse.go | 27 + model/tbk/TaobaoTbkTpwdCreateResponse.go | 27 - .../AlitripTicketProductQueryAPIRequest.go | 94 + .../AlitripTicketProductQueryAPIResponse.go | 27 + .../AlitripTicketProductQueryResponse.go | 27 - .../AlitripTicketProductUploadAPIRequest.go | 221 +++ .../AlitripTicketProductUploadAPIResponse.go | 28 + .../AlitripTicketProductUploadResponse.go | 28 - .../AlitripTicketRuleQueryAPIRequest.go | 52 + .../AlitripTicketRuleQueryAPIResponse.go | 27 + .../ticket/AlitripTicketRuleQueryResponse.go | 27 - .../AlitripTicketRuleUploadAPIRequest.go | 361 ++++ .../AlitripTicketRuleUploadAPIResponse.go | 28 + .../ticket/AlitripTicketRuleUploadResponse.go | 28 - .../AlitripTicketScenicBindAPIRequest.go | 136 ++ .../AlitripTicketScenicBindAPIResponse.go | 27 + .../ticket/AlitripTicketScenicBindResponse.go | 27 - .../AlitripTicketScenicQueryAPIRequest.go | 80 + .../AlitripTicketScenicQueryAPIResponse.go | 27 + .../AlitripTicketScenicQueryResponse.go | 27 - .../AlitripTicketSkusBatchUploadAPIRequest.go | 97 + ...AlitripTicketSkusBatchUploadAPIResponse.go | 30 + .../AlitripTicketSkusBatchUploadResponse.go | 30 - .../AlitripTicketSkusUploadAPIRequest.go | 139 ++ .../AlitripTicketSkusUploadAPIResponse.go | 30 + .../ticket/AlitripTicketSkusUploadResponse.go | 30 - ...llCampusIndustryAppAuditQueryAPIRequest.go | 52 + ...lCampusIndustryAppAuditQueryAPIResponse.go | 27 + ...mallCampusIndustryAppAuditQueryResponse.go | 27 - .../TaobaoCarVehicleinfoRegisterAPIRequest.go | 52 + ...TaobaoCarVehicleinfoRegisterAPIResponse.go | 33 + .../TaobaoCarVehicleinfoRegisterResponse.go | 33 - ...iautoAutofinanceCreditReceiveAPIRequest.go | 52 + ...autoAutofinanceCreditReceiveAPIResponse.go | 33 + ...AliautoAutofinanceCreditReceiveResponse.go | 33 - ...AliautoAutofinanceLoanReceiveAPIRequest.go | 52 + ...liautoAutofinanceLoanReceiveAPIResponse.go | 33 + ...llAliautoAutofinanceLoanReceiveResponse.go | 33 - .../TmallAliautoMetaReceiveAPIRequest.go | 52 + .../TmallAliautoMetaReceiveAPIResponse.go | 27 + .../TmallAliautoMetaReceiveResponse.go | 27 - ...mallAliautoReceiptStateUpdateAPIRequest.go | 66 + ...allAliautoReceiptStateUpdateAPIResponse.go | 27 + .../TmallAliautoReceiptStateUpdateResponse.go | 27 - ...TmallAliautoServiceReceiptGetAPIRequest.go | 52 + ...mallAliautoServiceReceiptGetAPIResponse.go | 27 + .../TmallAliautoServiceReceiptGetResponse.go | 27 - ...lAliautoWisdomdataModelReciveAPIRequest.go | 80 + ...AliautoWisdomdataModelReciveAPIResponse.go | 27 + ...allAliautoWisdomdataModelReciveResponse.go | 27 - .../TmallCarLeaseCitysynchronizeAPIRequest.go | 52 + ...TmallCarLeaseCitysynchronizeAPIResponse.go | 27 + .../TmallCarLeaseCitysynchronizeResponse.go | 27 - ...TmallCarLeaseContractdownloadAPIRequest.go | 66 + ...mallCarLeaseContractdownloadAPIResponse.go | 27 + .../TmallCarLeaseContractdownloadResponse.go | 27 - ...LeaseExceptionflowsynchronizeAPIRequest.go | 94 + ...easeExceptionflowsynchronizeAPIResponse.go | 27 + ...arLeaseExceptionflowsynchronizeResponse.go | 27 - .../TmallCarLeaseOrderidGetAPIRequest.go | 52 + .../TmallCarLeaseOrderidGetAPIResponse.go | 27 + .../TmallCarLeaseOrderidGetResponse.go | 27 - .../TmallCarLeasePayforcustomerAPIRequest.go | 122 ++ .../TmallCarLeasePayforcustomerAPIResponse.go | 27 + .../TmallCarLeasePayforcustomerResponse.go | 27 - .../TmallCarLeasePostsynchronizeAPIRequest.go | 52 + ...TmallCarLeasePostsynchronizeAPIResponse.go | 27 + .../TmallCarLeasePostsynchronizeResponse.go | 27 - .../TmallCarLeaseQueryloanplansAPIRequest.go | 66 + .../TmallCarLeaseQueryloanplansAPIResponse.go | 27 + .../TmallCarLeaseQueryloanplansResponse.go | 27 - ...mallCarLeaseStatussynchronizeAPIRequest.go | 108 + ...allCarLeaseStatussynchronizeAPIResponse.go | 27 + .../TmallCarLeaseStatussynchronizeResponse.go | 27 - ...CarXcarSynchronizeCarLineDataAPIRequest.go | 52 + ...arXcarSynchronizeCarLineDataAPIResponse.go | 27 + ...llCarXcarSynchronizeCarLineDataResponse.go | 27 - ...carSynchronizeCarLinePicsDataAPIRequest.go | 52 + ...arSynchronizeCarLinePicsDataAPIResponse.go | 27 + ...rXcarSynchronizeCarLinePicsDataResponse.go | 27 - ...arXcarSynchronizeCarModelDataAPIRequest.go | 52 + ...rXcarSynchronizeCarModelDataAPIResponse.go | 27 + ...lCarXcarSynchronizeCarModelDataResponse.go | 27 - ...lCarcenterVehicleChasisInsertAPIRequest.go | 52 + ...CarcenterVehicleChasisInsertAPIResponse.go | 27 + ...allCarcenterVehicleChasisInsertResponse.go | 27 - ...rcenterVehicleCvmappingInsertAPIRequest.go | 80 + ...centerVehicleCvmappingInsertAPIResponse.go | 27 + ...CarcenterVehicleCvmappingInsertResponse.go | 27 - ...CarcenterVehicleVersionInsertAPIRequest.go | 52 + ...arcenterVehicleVersionInsertAPIResponse.go | 27 + ...llCarcenterVehicleVersionInsertResponse.go | 27 - ...lCarcenterVehicleinfoRegisterAPIRequest.go | 52 + ...CarcenterVehicleinfoRegisterAPIResponse.go | 27 + ...allCarcenterVehicleinfoRegisterResponse.go | 27 - ...oChannelTradePrepayOfflineAddAPIRequest.go | 52 + ...ChannelTradePrepayOfflineAddAPIResponse.go | 27 + ...baoChannelTradePrepayOfflineAddResponse.go | 27 - ...annelTradePrepayOfflineReduceAPIRequest.go | 52 + ...nnelTradePrepayOfflineReduceAPIResponse.go | 27 + ...ChannelTradePrepayOfflineReduceResponse.go | 27 - .../TmallChannelProductsQueryAPIRequest.go | 122 ++ .../TmallChannelProductsQueryAPIResponse.go | 27 + .../TmallChannelProductsQueryResponse.go | 27 - ...llChannelTradeApplyorderAgreeAPIRequest.go | 66 + ...lChannelTradeApplyorderAgreeAPIResponse.go | 27 + ...mallChannelTradeApplyorderAgreeResponse.go | 27 - ...allChannelTradeApplyorderAgreeResultDto.go | 11 + ...mallChannelTradeApplyorderGetAPIRequest.go | 52 + ...allChannelTradeApplyorderGetAPIResponse.go | 47 + .../TmallChannelTradeApplyorderGetResponse.go | 47 - ...allChannelTradeApplyorderGetsAPIRequest.go | 150 ++ ...llChannelTradeApplyorderGetsAPIResponse.go | 33 + ...TmallChannelTradeApplyorderGetsResponse.go | 33 - ...lChannelTradeApplyorderModifyAPIRequest.go | 66 + ...ChannelTradeApplyorderModifyAPIResponse.go | 27 + ...allChannelTradeApplyorderModifyResponse.go | 27 - ...llChannelTradeApplyorderModifyResultDto.go | 11 + ...lChannelTradeApplyorderRefuseAPIRequest.go | 66 + ...ChannelTradeApplyorderRefuseAPIResponse.go | 27 + ...allChannelTradeApplyorderRefuseResponse.go | 27 - ...llChannelTradeApplyorderRefuseResultDto.go | 11 + ...ChannelTradeDeliverorderAgreeAPIRequest.go | 66 + ...hannelTradeDeliverorderAgreeAPIResponse.go | 27 + ...llChannelTradeDeliverorderAgreeResponse.go | 27 - ...lChannelTradeDeliverorderAgreeResultDto.go | 11 + ...llChannelTradeDeliverorderGetAPIRequest.go | 66 + ...lChannelTradeDeliverorderGetAPIResponse.go | 45 + ...mallChannelTradeDeliverorderGetResponse.go | 45 - ...lChannelTradeDeliverorderGetsAPIRequest.go | 136 ++ ...ChannelTradeDeliverorderGetsAPIResponse.go | 33 + ...allChannelTradeDeliverorderGetsResponse.go | 33 - ...hannelTradeDeliverorderRejectAPIRequest.go | 66 + ...annelTradeDeliverorderRejectAPIResponse.go | 27 + ...lChannelTradeDeliverorderRejectResponse.go | 27 - ...ChannelTradeDeliverorderRejectResultDto.go | 11 + .../TmallChannelTradeOrderCreateAPIRequest.go | 52 + ...TmallChannelTradeOrderCreateAPIResponse.go | 27 + .../TmallChannelTradeOrderCreateResponse.go | 27 - .../TmallChannelTradeOrderGetAPIRequest.go | 94 + .../TmallChannelTradeOrderGetAPIResponse.go | 61 + .../TmallChannelTradeOrderGetResponse.go | 61 - .../TmallChannelTradeOrderGetsAPIRequest.go | 220 ++ .../TmallChannelTradeOrderGetsAPIResponse.go | 33 + .../TmallChannelTradeOrderGetsResponse.go | 33 - .../TmallChannelTradeOrderStopAPIRequest.go | 66 + .../TmallChannelTradeOrderStopAPIResponse.go | 27 + .../TmallChannelTradeOrderStopResponse.go | 27 - .../TmallChannelTradeOrderStopResultDto.go | 11 + ...llChannelTradeRefundorderGetsAPIRequest.go | 94 + ...lChannelTradeRefundorderGetsAPIResponse.go | 33 + ...mallChannelTradeRefundorderGetsResponse.go | 33 - ...ngLiuliangbaoSpreadlinkCreateAPIRequest.go | 52 + ...gLiuliangbaoSpreadlinkCreateAPIResponse.go | 27 + ...tingLiuliangbaoSpreadlinkCreateResponse.go | 27 - .../tmallfcbox/TmallFcboxNotifyAPIRequest.go | 108 + .../tmallfcbox/TmallFcboxNotifyAPIResponse.go | 27 + model/tmallfcbox/TmallFcboxNotifyResponse.go | 27 - .../AlibabaAiUserQuickBindAPIRequest.go | 122 ++ .../AlibabaAiUserQuickBindAPIResponse.go | 33 + .../AlibabaAiUserQuickBindResponse.go | 33 - .../AlibabaAiUserQuickRegisterAPIRequest.go | 94 + .../AlibabaAiUserQuickRegisterAPIResponse.go | 33 + .../AlibabaAiUserQuickRegisterResponse.go | 33 - .../AlibabaAiUserQuickTokenBindAPIRequest.go | 122 ++ .../AlibabaAiUserQuickTokenBindAPIResponse.go | 29 + .../AlibabaAiUserQuickTokenBindResponse.go | 29 - ...aAilabsAligenieDeviceRegisterAPIRequest.go | 66 + ...AilabsAligenieDeviceRegisterAPIResponse.go | 27 + ...abaAilabsAligenieDeviceRegisterResponse.go | 27 - ...AilabsAligenieOpencontentPushAPIRequest.go | 66 + ...ilabsAligenieOpencontentPushAPIResponse.go | 27 + ...baAilabsAligenieOpencontentPushResponse.go | 27 - ...sAligenieOpencontentScenepushAPIRequest.go | 80 + ...AligenieOpencontentScenepushAPIResponse.go | 29 + ...absAligenieOpencontentScenepushResponse.go | 29 - ...baAilabsAligenieOpenvideoPushAPIRequest.go | 52 + ...aAilabsAligenieOpenvideoPushAPIResponse.go | 29 + ...babaAilabsAligenieOpenvideoPushResponse.go | 29 - ...absAligenieOpenvideoScenepushAPIRequest.go | 80 + ...bsAligenieOpenvideoScenepushAPIResponse.go | 29 + ...ilabsAligenieOpenvideoScenepushResponse.go | 29 - ...igenieOpenvideoalbumScenepushAPIRequest.go | 80 + ...genieOpenvideoalbumScenepushAPIResponse.go | 29 + ...AligenieOpenvideoalbumScenepushResponse.go | 29 - ...labsAligenieSkillEntityImportAPIRequest.go | 122 ++ ...absAligenieSkillEntityImportAPIResponse.go | 27 + ...AilabsAligenieSkillEntityImportResponse.go | 27 - ...ilabsAligenieSkillMessagePushAPIRequest.go | 150 ++ ...labsAligenieSkillMessagePushAPIResponse.go | 33 + ...aAilabsAligenieSkillMessagePushResponse.go | 33 - ...aAilabsAligenieVideoalbumPushAPIRequest.go | 52 + ...AilabsAligenieVideoalbumPushAPIResponse.go | 29 + ...abaAilabsAligenieVideoalbumPushResponse.go | 29 - .../AlibabaAilabsBotsSkilsListAPIRequest.go | 66 + .../AlibabaAilabsBotsSkilsListAPIResponse.go | 27 + .../AlibabaAilabsBotsSkilsListResponse.go | 27 - ...abaAilabsIotCloudDeviceReportAPIRequest.go | 52 + ...baAilabsIotCloudDeviceReportAPIResponse.go | 27 + ...ibabaAilabsIotCloudDeviceReportResponse.go | 27 - ...aAilabsIotDeviceControlNotifyAPIRequest.go | 52 + ...AilabsIotDeviceControlNotifyAPIResponse.go | 27 + ...abaAilabsIotDeviceControlNotifyResponse.go | 27 - ...AlibabaAilabsIotDeviceListGetAPIRequest.go | 66 + ...libabaAilabsIotDeviceListGetAPIResponse.go | 27 + .../AlibabaAilabsIotDeviceListGetResponse.go | 27 - ...nieAuthDeviceWithmacQrcodeGetAPIRequest.go | 66 + ...ieAuthDeviceWithmacQrcodeGetAPIResponse.go | 31 + ...genieAuthDeviceWithmacQrcodeGetResponse.go | 31 - ...eAuthDeviceWithshortQrcodeGetAPIRequest.go | 66 + ...AuthDeviceWithshortQrcodeGetAPIResponse.go | 31 + ...nieAuthDeviceWithshortQrcodeGetResponse.go | 31 - ...angsuCloudWatcherStatusUpdateAPIRequest.go | 94 + ...ngsuCloudWatcherStatusUpdateAPIResponse.go | 31 + ...JiangsuCloudWatcherStatusUpdateResponse.go | 31 - ...aasCtccJiangsuKeySecretUpdateAPIRequest.go | 66 + ...asCtccJiangsuKeySecretUpdateAPIResponse.go | 31 + ...nSaasCtccJiangsuKeySecretUpdateResponse.go | 31 - .../AlibabaIotDeviceCorpusGetAPIRequest.go | 80 + .../AlibabaIotDeviceCorpusGetAPIResponse.go | 27 + .../AlibabaIotDeviceCorpusGetResponse.go | 27 - ...AilabAicloudTopEarthquakeSendAPIRequest.go | 108 + ...ilabAicloudTopEarthquakeSendAPIResponse.go | 33 + ...aoAilabAicloudTopEarthquakeSendResponse.go | 33 - ...ilabAicloudTopMemoAlarmCreateAPIRequest.go | 108 + ...labAicloudTopMemoAlarmCreateAPIResponse.go | 31 + ...oAilabAicloudTopMemoAlarmCreateResponse.go | 31 - ...ilabAicloudTopMemoAlarmDeleteAPIRequest.go | 108 + ...labAicloudTopMemoAlarmDeleteAPIResponse.go | 27 + ...oAilabAicloudTopMemoAlarmDeleteResponse.go | 27 - ...oAilabAicloudTopMemoAlarmListAPIRequest.go | 108 + ...AilabAicloudTopMemoAlarmListAPIResponse.go | 27 + ...baoAilabAicloudTopMemoAlarmListResponse.go | 27 - ...abAicloudTopMemoMeetingDeleteAPIRequest.go | 108 + ...bAicloudTopMemoMeetingDeleteAPIResponse.go | 27 + ...ilabAicloudTopMemoMeetingDeleteResponse.go | 27 - ...ilabAicloudTopMemoMeetingListAPIRequest.go | 108 + ...labAicloudTopMemoMeetingListAPIResponse.go | 27 + ...oAilabAicloudTopMemoMeetingListResponse.go | 27 - ...AilabAicloudTopMemoNoteDeleteAPIRequest.go | 108 + ...ilabAicloudTopMemoNoteDeleteAPIResponse.go | 27 + ...aoAilabAicloudTopMemoNoteDeleteResponse.go | 27 - ...aoAilabAicloudTopMemoNoteListAPIRequest.go | 108 + ...oAilabAicloudTopMemoNoteListAPIResponse.go | 27 + ...obaoAilabAicloudTopMemoNoteListResponse.go | 27 - ...baoAilabAicloudTopMessagePushAPIRequest.go | 66 + ...aoAilabAicloudTopMessagePushAPIResponse.go | 27 + ...aobaoAilabAicloudTopMessagePushResponse.go | 27 - ...bAicloudTopMessagePushUnicastAPIRequest.go | 52 + ...AicloudTopMessagePushUnicastAPIResponse.go | 31 + ...labAicloudTopMessagePushUnicastResponse.go | 31 - ...labAicloudTopMessageSendaudioAPIRequest.go | 108 + ...abAicloudTopMessageSendaudioAPIResponse.go | 27 + ...AilabAicloudTopMessageSendaudioResponse.go | 27 - ...ilabAicloudTopMessageSendtextAPIRequest.go | 108 + ...labAicloudTopMessageSendtextAPIResponse.go | 27 + ...oAilabAicloudTopMessageSendtextResponse.go | 27 - ...baoAilabAicloudTopMusicSearchAPIRequest.go | 94 + ...aoAilabAicloudTopMusicSearchAPIResponse.go | 27 + ...aobaoAilabAicloudTopMusicSearchResponse.go | 27 - ...aobaoAilabAicloudTopSkilsListAPIRequest.go | 150 ++ ...obaoAilabAicloudTopSkilsListAPIResponse.go | 27 + .../TaobaoAilabAicloudTopSkilsListResponse.go | 27 - ...baoTmallgenieHotelplayerpauseAPIRequest.go | 66 + ...aoTmallgenieHotelplayerpauseAPIResponse.go | 29 + ...aobaoTmallgenieHotelplayerpauseResponse.go | 29 - .../TaobaoTmallgenieHotelwelcomeAPIRequest.go | 94 + ...TaobaoTmallgenieHotelwelcomeAPIResponse.go | 29 + .../TaobaoTmallgenieHotelwelcomeResponse.go | 29 - ...lTmjlappSapServiceorderCancelAPIRequest.go | 52 + ...TmjlappSapServiceorderCancelAPIResponse.go | 27 + ...allTmjlappSapServiceorderCancelResponse.go | 27 - ...ibabaTmallgenieScpLocationGetAPIRequest.go | 52 + ...babaTmallgenieScpLocationGetAPIResponse.go | 33 + ...AlibabaTmallgenieScpLocationGetResponse.go | 33 - ...abaTmallgenieScpPlanBomUploadAPIRequest.go | 52 + ...baTmallgenieScpPlanBomUploadAPIResponse.go | 33 + ...ibabaTmallgenieScpPlanBomUploadResponse.go | 33 - ...baTmallgenieScpPlanChannelGetAPIRequest.go | 52 + ...aTmallgenieScpPlanChannelGetAPIResponse.go | 27 + ...babaTmallgenieScpPlanChannelGetResponse.go | 27 - ...enieScpPlanChannelQuoteUploadAPIRequest.go | 52 + ...nieScpPlanChannelQuoteUploadAPIResponse.go | 33 + ...lgenieScpPlanChannelQuoteUploadResponse.go | 33 - ...eScpPlanConsensusDemandUploadAPIRequest.go | 52 + ...ScpPlanConsensusDemandUploadAPIResponse.go | 27 + ...nieScpPlanConsensusDemandUploadResponse.go | 27 - ...CorrectSupplierQuoteRawUploadAPIRequest.go | 52 + ...orrectSupplierQuoteRawUploadAPIResponse.go | 33 + ...anCorrectSupplierQuoteRawUploadResponse.go | 33 - ...lanCorrectSupplierQuoteUploadAPIRequest.go | 52 + ...anCorrectSupplierQuoteUploadAPIResponse.go | 33 + ...pPlanCorrectSupplierQuoteUploadResponse.go | 33 - ...PlanCtomConsensusDemandUploadAPIRequest.go | 52 + ...lanCtomConsensusDemandUploadAPIResponse.go | 31 + ...cpPlanCtomConsensusDemandUploadResponse.go | 31 - ...TmallgenieScpPlanCurrentPoGetAPIRequest.go | 52 + ...mallgenieScpPlanCurrentPoGetAPIResponse.go | 27 + ...baTmallgenieScpPlanCurrentPoGetResponse.go | 27 - ...llgenieScpPlanCurrentRawpoGetAPIRequest.go | 52 + ...lgenieScpPlanCurrentRawpoGetAPIResponse.go | 27 + ...mallgenieScpPlanCurrentRawpoGetResponse.go | 27 - ...genieScpPlanFeedbackOemUploadAPIRequest.go | 52 + ...enieScpPlanFeedbackOemUploadAPIResponse.go | 27 + ...llgenieScpPlanFeedbackOemUploadResponse.go | 27 - ...genieScpPlanFeedbackRawUploadAPIRequest.go | 52 + ...enieScpPlanFeedbackRawUploadAPIResponse.go | 27 + ...llgenieScpPlanFeedbackRawUploadResponse.go | 27 - ...genieScpPlanForecastOemUploadAPIRequest.go | 52 + ...enieScpPlanForecastOemUploadAPIResponse.go | 31 + ...llgenieScpPlanForecastOemUploadResponse.go | 31 - ...genieScpPlanForecastRawUploadAPIRequest.go | 52 + ...enieScpPlanForecastRawUploadAPIResponse.go | 31 + ...llgenieScpPlanForecastRawUploadResponse.go | 31 - ...TmallgenieScpPlanHistoryPoGetAPIRequest.go | 52 + ...mallgenieScpPlanHistoryPoGetAPIResponse.go | 27 + ...baTmallgenieScpPlanHistoryPoGetResponse.go | 27 - ...genieScpPlanHistorySaleQtyGetAPIRequest.go | 52 + ...enieScpPlanHistorySaleQtyGetAPIResponse.go | 27 + ...llgenieScpPlanHistorySaleQtyGetResponse.go | 27 - ...allgenieScpPlanInventorQtyGetAPIRequest.go | 52 + ...llgenieScpPlanInventorQtyGetAPIResponse.go | 27 + ...TmallgenieScpPlanInventorQtyGetResponse.go | 27 - ...nieScpPlanLocationQuoteUploadAPIRequest.go | 52 + ...ieScpPlanLocationQuoteUploadAPIResponse.go | 33 + ...genieScpPlanLocationQuoteUploadResponse.go | 33 - ...cpPlanMaterialPurchaseAttrGetAPIRequest.go | 52 + ...pPlanMaterialPurchaseAttrGetAPIResponse.go | 27 + ...eScpPlanMaterialPurchaseAttrGetResponse.go | 27 - ...aTmallgenieScpPlanMaterielGetAPIRequest.go | 52 + ...TmallgenieScpPlanMaterielGetAPIResponse.go | 27 + ...abaTmallgenieScpPlanMaterielGetResponse.go | 27 - ...llgenieScpPlanMouthfourUploadAPIRequest.go | 52 + ...lgenieScpPlanMouthfourUploadAPIResponse.go | 31 + ...mallgenieScpPlanMouthfourUploadResponse.go | 31 - ...enieScpPlanNetdemandRawUploadAPIRequest.go | 52 + ...nieScpPlanNetdemandRawUploadAPIResponse.go | 31 + ...lgenieScpPlanNetdemandRawUploadResponse.go | 31 - ...llgenieScpPlanNetdemandUploadAPIRequest.go | 52 + ...lgenieScpPlanNetdemandUploadAPIResponse.go | 31 + ...mallgenieScpPlanNetdemandUploadResponse.go | 31 - ...allgenieScpPlanRawpoGapReturnAPIRequest.go | 52 + ...llgenieScpPlanRawpoGapReturnAPIResponse.go | 31 + ...TmallgenieScpPlanRawpoGapReturnResponse.go | 31 - ...baTmallgenieScpPlanSaleQtyGetAPIRequest.go | 52 + ...aTmallgenieScpPlanSaleQtyGetAPIResponse.go | 27 + ...babaTmallgenieScpPlanSaleQtyGetResponse.go | 27 - ...pPlanSaleforcastPmMonthUploadAPIRequest.go | 52 + ...PlanSaleforcastPmMonthUploadAPIResponse.go | 31 + ...ScpPlanSaleforcastPmMonthUploadResponse.go | 31 - ...nieScpPlanSaleforcastPmUploadAPIRequest.go | 52 + ...ieScpPlanSaleforcastPmUploadAPIResponse.go | 31 + ...genieScpPlanSaleforcastPmUploadResponse.go | 31 - ...ScpPlanSaleforcastSalerUploadAPIRequest.go | 52 + ...cpPlanSaleforcastSalerUploadAPIResponse.go | 31 + ...ieScpPlanSaleforcastSalerUploadResponse.go | 31 - ...ScpPlanSkuSupplierQuoteUploadAPIRequest.go | 52 + ...cpPlanSkuSupplierQuoteUploadAPIResponse.go | 33 + ...ieScpPlanSkuSupplierQuoteUploadResponse.go | 33 - ...genieScpPlanSummarySaleQtyGetAPIRequest.go | 52 + ...enieScpPlanSummarySaleQtyGetAPIResponse.go | 27 + ...llgenieScpPlanSummarySaleQtyGetResponse.go | 27 - ...allHkClearanceDistributionGetAPIRequest.go | 66 + ...llHkClearanceDistributionGetAPIResponse.go | 27 + ...TmallHkClearanceDistributionGetResponse.go | 27 - .../tmallhk/TmallHkClearanceGetAPIRequest.go | 66 + .../tmallhk/TmallHkClearanceGetAPIResponse.go | 27 + model/tmallhk/TmallHkClearanceGetResponse.go | 27 - .../TmallHkOrderClearanceQueryAPIRequest.go | 66 + .../TmallHkOrderClearanceQueryAPIResponse.go | 33 + .../TmallHkOrderClearanceQueryResponse.go | 33 - ...llTraceplatformAwdcInfoUploadAPIRequest.go | 52 + ...lTraceplatformAwdcInfoUploadAPIResponse.go | 27 + ...mallTraceplatformAwdcInfoUploadResponse.go | 27 - ...aceplatformCcicTracecodeCheckAPIRequest.go | 66 + ...ceplatformCcicTracecodeCheckAPIResponse.go | 27 + ...TraceplatformCcicTracecodeCheckResponse.go | 27 - ...allTraceplatformCtsInfoUploadAPIRequest.go | 52 + ...llTraceplatformCtsInfoUploadAPIResponse.go | 27 + ...TmallTraceplatformCtsInfoUploadResponse.go | 27 - ...mallTraceplatformCtsOrderStopAPIRequest.go | 52 + ...allTraceplatformCtsOrderStopAPIResponse.go | 27 + .../TmallTraceplatformCtsOrderStopResponse.go | 27 - ...raceplatformTicketOrderUploadAPIRequest.go | 52 + ...aceplatformTicketOrderUploadAPIResponse.go | 27 + ...lTraceplatformTicketOrderUploadResponse.go | 27 - ...ceplatformTicketPictureUploadAPIRequest.go | 66 + ...eplatformTicketPictureUploadAPIResponse.go | 27 + ...raceplatformTicketPictureUploadResponse.go | 27 - .../TmallItemsExtendSearchAPIRequest.go | 346 ++++ .../TmallItemsExtendSearchAPIResponse.go | 35 + .../TmallItemsExtendSearchResponse.go | 35 - ...ibabaLsyCrmActivityDataUpdateAPIRequest.go | 52 + ...babaLsyCrmActivityDataUpdateAPIResponse.go | 27 + ...AlibabaLsyCrmActivityDataUpdateResponse.go | 27 - ...AlibabaLsyCrmActivityDataUpdateResultDo.go | 11 + .../AlibabaLsyCrmActivityGetAPIRequest.go | 80 + .../AlibabaLsyCrmActivityGetAPIResponse.go | 27 + .../AlibabaLsyCrmActivityGetResponse.go | 27 - .../AlibabaLsyCrmActivityGetResultDo.go | 13 + ...babaLsyCrmActivityGetbaseinfoAPIRequest.go | 52 + ...abaLsyCrmActivityGetbaseinfoAPIResponse.go | 27 + ...libabaLsyCrmActivityGetbaseinfoResponse.go | 27 - ...libabaLsyCrmActivityGetbaseinfoResultDo.go | 13 + ...ibabaLsyCrmActivityPageUpdateAPIRequest.go | 52 + ...babaLsyCrmActivityPageUpdateAPIResponse.go | 27 + ...AlibabaLsyCrmActivityPageUpdateResponse.go | 27 - ...AlibabaLsyCrmActivityPageUpdateResultDo.go | 13 + ...yCrmActivityStoreGetstorelistAPIRequest.go | 52 + ...CrmActivityStoreGetstorelistAPIResponse.go | 27 + ...LsyCrmActivityStoreGetstorelistResponse.go | 27 - .../AlibabaLsyCrmActivityUpdateAPIRequest.go | 52 + .../AlibabaLsyCrmActivityUpdateAPIResponse.go | 27 + .../AlibabaLsyCrmActivityUpdateResponse.go | 27 - .../AlibabaLsyCrmActivityUpdateResultDo.go | 11 + .../AlibabaLsyCrmCustomerAddAPIRequest.go | 52 + .../AlibabaLsyCrmCustomerAddAPIResponse.go | 27 + .../AlibabaLsyCrmCustomerAddResponse.go | 27 - .../AlibabaLsyCrmCustomerAddResultDo.go | 11 + .../tmallnr/TmallNrFulfillCancelAPIRequest.go | 52 + .../TmallNrFulfillCancelAPIResponse.go | 27 + ...allNrFulfillCancelReasonQueryAPIRequest.go | 66 + ...llNrFulfillCancelReasonQueryAPIResponse.go | 27 + ...TmallNrFulfillCancelReasonQueryResponse.go | 27 - model/tmallnr/TmallNrFulfillCancelResponse.go | 27 - ...mallNrFulfillLogisticsConsignAPIRequest.go | 52 + ...allNrFulfillLogisticsConsignAPIResponse.go | 27 + .../TmallNrFulfillLogisticsConsignResponse.go | 27 - .../TmallNrFulfillLogisticsQueryAPIRequest.go | 66 + ...TmallNrFulfillLogisticsQueryAPIResponse.go | 27 + .../TmallNrFulfillLogisticsQueryResponse.go | 27 - .../TmallNrFulfillLogisticsSyncAPIRequest.go | 52 + .../TmallNrFulfillLogisticsSyncAPIResponse.go | 27 + .../TmallNrFulfillLogisticsSyncResponse.go | 27 - .../TmallNrFulfillOrderQueryAPIRequest.go | 80 + .../TmallNrFulfillOrderQueryAPIResponse.go | 27 + .../TmallNrFulfillOrderQueryResponse.go | 27 - ...llNrFulfillSoldOrderlistQueryAPIRequest.go | 52 + ...lNrFulfillSoldOrderlistQueryAPIResponse.go | 27 + ...mallNrFulfillSoldOrderlistQueryResponse.go | 27 - .../TmallNrInventoryInitialAPIRequest.go | 52 + .../TmallNrInventoryInitialAPIResponse.go | 33 + .../TmallNrInventoryInitialResponse.go | 33 - .../TmallNrInventoryUpdateAPIRequest.go | 52 + .../TmallNrInventoryUpdateAPIResponse.go | 27 + .../tmallnr/TmallNrInventoryUpdateResponse.go | 27 - model/tmallnr/TmallNrItemTagOpsAPIRequest.go | 52 + model/tmallnr/TmallNrItemTagOpsAPIResponse.go | 27 + model/tmallnr/TmallNrItemTagOpsResponse.go | 27 - .../TmallNrNoticeGoodsReadyAPIRequest.go | 52 + .../TmallNrNoticeGoodsReadyAPIResponse.go | 33 + .../TmallNrNoticeGoodsReadyResponse.go | 33 - .../TmallNrOrderLogisInfoAPIRequest.go | 80 + .../TmallNrOrderLogisInfoAPIResponse.go | 27 + .../tmallnr/TmallNrOrderLogisInfoResponse.go | 27 - .../tmallnr/TmallNrOrderQueryJstAPIRequest.go | 80 + .../TmallNrOrderQueryJstAPIResponse.go | 27 + model/tmallnr/TmallNrOrderQueryJstResponse.go | 27 - .../TmallNrSellerStorerangeReadAPIRequest.go | 80 + .../TmallNrSellerStorerangeReadAPIResponse.go | 27 + .../TmallNrSellerStorerangeReadResponse.go | 27 - .../TmallNrSellerStorerangeSyncAPIRequest.go | 80 + .../TmallNrSellerStorerangeSyncAPIResponse.go | 29 + .../TmallNrSellerStorerangeSyncResponse.go | 29 - .../TmallNrSoldOrderlistQueryJstAPIRequest.go | 52 + ...TmallNrSoldOrderlistQueryJstAPIResponse.go | 27 + .../TmallNrSoldOrderlistQueryJstResponse.go | 27 - .../tmallnr/TmallNrZqsPlanQueryAPIRequest.go | 52 + .../tmallnr/TmallNrZqsPlanQueryAPIResponse.go | 27 + model/tmallnr/TmallNrZqsPlanQueryResponse.go | 27 - .../TmallNrtNewcouponSendAPIRequest.go | 52 + .../TmallNrtNewcouponSendAPIResponse.go | 27 + .../tmallnr/TmallNrtNewcouponSendResponse.go | 27 - ...iaoshifuCustomerComplaintsPutAPIRequest.go | 52 + ...aoshifuCustomerComplaintsPutAPIResponse.go | 35 + ...nMiaoshifuCustomerComplaintsPutResponse.go | 35 - .../AlibabaServiceBillingQueryAPIRequest.go | 66 + .../AlibabaServiceBillingQueryAPIResponse.go | 27 + .../AlibabaServiceBillingQueryResponse.go | 27 - ...AlibabaServiceSettlementQueryAPIRequest.go | 192 ++ ...libabaServiceSettlementQueryAPIResponse.go | 27 + .../AlibabaServiceSettlementQueryResponse.go | 27 - ...erAnomalyrecourseRemarkUpdateAPIRequest.go | 66 + ...rAnomalyrecourseRemarkUpdateAPIResponse.go | 27 + ...nterAnomalyrecourseRemarkUpdateResponse.go | 27 - ...cecenterAnomalyrecourseSearchAPIRequest.go | 66 + ...ecenterAnomalyrecourseSearchAPIResponse.go | 27 + ...vicecenterAnomalyrecourseSearchResponse.go | 27 - ...ervicecenterReservecondCreateAPIRequest.go | 52 + ...rvicecenterReservecondCreateAPIResponse.go | 31 + ...lServicecenterReservecondCreateResponse.go | 31 - ...ervicecenterReservecondDeleteAPIRequest.go | 52 + ...rvicecenterReservecondDeleteAPIResponse.go | 31 + ...lServicecenterReservecondDeleteResponse.go | 31 - ...ervicecenterReservecondUpdateAPIRequest.go | 52 + ...rvicecenterReservecondUpdateAPIResponse.go | 31 + ...lServicecenterReservecondUpdateResponse.go | 31 - ...oreCreateservicestorecapacityAPIRequest.go | 97 + ...reCreateservicestorecapacityAPIResponse.go | 30 + ...storeCreateservicestorecapacityResponse.go | 30 - ...reateservicestorecoverserviceAPIRequest.go | 97 + ...eateservicestorecoverserviceAPIResponse.go | 30 + ...eCreateservicestorecoverserviceResponse.go | 30 - ...oreDeleteservicestorecapacityAPIRequest.go | 67 + ...reDeleteservicestorecapacityAPIResponse.go | 28 + ...storeDeleteservicestorecapacityResponse.go | 28 - ...oreUpdateservicestorecapacityAPIRequest.go | 97 + ...reUpdateservicestorecapacityAPIResponse.go | 30 + ...storeUpdateservicestorecapacityResponse.go | 30 - ...pdateservicestorecoverserviceAPIRequest.go | 97 + ...dateservicestorecoverserviceAPIResponse.go | 30 + ...eUpdateservicestorecoverserviceResponse.go | 30 - ...ServicecenterWorkcardDeliveryAPIRequest.go | 52 + ...ervicecenterWorkcardDeliveryAPIResponse.go | 31 + ...llServicecenterWorkcardDeliveryResponse.go | 31 - ...llServicecenterWorkcardRefuseAPIRequest.go | 52 + ...lServicecenterWorkcardRefuseAPIResponse.go | 31 + ...mallServicecenterWorkcardRefuseResponse.go | 31 - .../TmallWorkcardIdentifyAPIRequest.go | 54 + .../TmallWorkcardIdentifyAPIResponse.go | 29 + .../tmallsc/TmallWorkcardIdentifyResponse.go | 29 - ...rEntitledserviceSupplierQueryAPIRequest.go | 80 + ...EntitledserviceSupplierQueryAPIResponse.go | 27 + ...terEntitledserviceSupplierQueryResponse.go | 27 - ...rFulfiltaskBuyeraddressChangeAPIRequest.go | 80 + ...FulfiltaskBuyeraddressChangeAPIResponse.go | 27 + ...terFulfiltaskBuyeraddressChangeResponse.go | 27 - ...ServicecenterFulfiltaskCreateAPIRequest.go | 66 + ...ervicecenterFulfiltaskCreateAPIResponse.go | 27 + ...baServicecenterFulfiltaskCreateResponse.go | 27 - ...aServicecenterFulfiltaskQueryAPIRequest.go | 122 ++ ...ServicecenterFulfiltaskQueryAPIResponse.go | 27 + ...abaServicecenterFulfiltaskQueryResponse.go | 27 - ...rvicecenterIdentifytaskCreateAPIRequest.go | 66 + ...vicecenterIdentifytaskCreateAPIResponse.go | 27 + ...ServicecenterIdentifytaskCreateResponse.go | 27 - ...vicecenterSpserviceorderQueryAPIRequest.go | 136 ++ ...icecenterSpserviceorderQueryAPIResponse.go | 27 + ...ervicecenterSpserviceorderQueryResponse.go | 27 - ...icecenterSpserviceorderUpdateAPIRequest.go | 122 ++ ...cecenterSpserviceorderUpdateAPIResponse.go | 27 + ...rvicecenterSpserviceorderUpdateResponse.go | 27 - ...baServicecenterWorkcardCancelAPIRequest.go | 94 + ...aServicecenterWorkcardCancelAPIResponse.go | 27 + ...babaServicecenterWorkcardCancelResponse.go | 27 - ...baServicecenterWorkcardCreateAPIRequest.go | 122 ++ ...aServicecenterWorkcardCreateAPIResponse.go | 27 + ...babaServicecenterWorkcardCreateResponse.go | 27 - ...ervicecenterServicestoreQueryAPIRequest.go | 52 + ...rvicecenterServicestoreQueryAPIResponse.go | 27 + ...cServicecenterServicestoreQueryResponse.go | 27 - ...yplatformServiceInventoryEditAPIRequest.go | 97 + ...platformServiceInventoryEditAPIResponse.go | 30 + ...plyplatformServiceInventoryEditResponse.go | 30 - ...platformServiceInventoryQueryAPIRequest.go | 94 + ...latformServiceInventoryQueryAPIResponse.go | 27 + ...lyplatformServiceInventoryQueryResponse.go | 27 - ...yplatformServiceabilityDeleteAPIRequest.go | 66 + ...platformServiceabilityDeleteAPIResponse.go | 27 + ...plyplatformServiceabilityDeleteResponse.go | 27 - ...plyplatformServiceabilitySaveAPIRequest.go | 108 + ...lyplatformServiceabilitySaveAPIResponse.go | 27 + ...upplyplatformServiceabilitySaveResponse.go | 27 - ...platformServicecapacityDeleteAPIRequest.go | 66 + ...latformServicecapacityDeleteAPIResponse.go | 27 + ...lyplatformServicecapacityDeleteResponse.go | 27 - ...lyplatformServicecapacitySaveAPIRequest.go | 108 + ...yplatformServicecapacitySaveAPIResponse.go | 27 + ...pplyplatformServicecapacitySaveResponse.go | 27 - ...lyplatformServicestoreOfflineAPIRequest.go | 66 + ...yplatformServicestoreOfflineAPIResponse.go | 27 + ...pplyplatformServicestoreOfflineResponse.go | 27 - ...upplyplatformServicestoreSaveAPIRequest.go | 52 + ...pplyplatformServicestoreSaveAPIResponse.go | 27 + ...cSupplyplatformServicestoreSaveResponse.go | 27 - ...pplyplatformServiceworkerSaveAPIRequest.go | 52 + ...plyplatformServiceworkerSaveAPIResponse.go | 27 + ...SupplyplatformServiceworkerSaveResponse.go | 27 - .../TmallFuwuServiceitemListAPIRequest.go | 66 + .../TmallFuwuServiceitemListAPIResponse.go | 27 + .../TmallFuwuServiceitemListResponse.go | 27 - ...itemcenterServiceproductQueryAPIRequest.go | 94 + ...temcenterServiceproductQueryAPIResponse.go | 27 + ...llitemcenterServiceproductQueryResponse.go | 27 - ...lMallitemcenterSubscribeQueryAPIRequest.go | 52 + ...MallitemcenterSubscribeQueryAPIResponse.go | 27 + ...allMallitemcenterSubscribeQueryResponse.go | 27 - ...emcenterSupplierAbilityUpdateAPIRequest.go | 52 + ...mcenterSupplierAbilityUpdateAPIResponse.go | 27 + ...itemcenterSupplierAbilityUpdateResponse.go | 27 - ...itemcenterSupplierPriceUploadAPIRequest.go | 66 + ...temcenterSupplierPriceUploadAPIResponse.go | 27 + ...llitemcenterSupplierPriceUploadResponse.go | 27 - .../TmallMsfIdentifyStatusQueryAPIRequest.go | 66 + .../TmallMsfIdentifyStatusQueryAPIResponse.go | 27 + .../TmallMsfIdentifyStatusQueryResponse.go | 27 - .../TmallMsfReservationAPIRequest.go | 52 + .../TmallMsfReservationAPIResponse.go | 27 + .../TmallMsfReservationResponse.go | 27 - .../TmallServiceCodeConsumeAPIRequest.go | 80 + .../TmallServiceCodeConsumeAPIResponse.go | 27 + .../TmallServiceCodeConsumeResponse.go | 27 - ...ServiceSettleadjustmentCancelAPIRequest.go | 67 + ...erviceSettleadjustmentCancelAPIResponse.go | 28 + ...llServiceSettleadjustmentCancelResponse.go | 28 - ...allServiceSettleadjustmentGetAPIRequest.go | 52 + ...llServiceSettleadjustmentGetAPIResponse.go | 27 + ...TmallServiceSettleadjustmentGetResponse.go | 27 - ...erviceSettleadjustmentRequestAPIRequest.go | 53 + ...rviceSettleadjustmentRequestAPIResponse.go | 28 + ...lServiceSettleadjustmentRequestResponse.go | 28 - ...enterAnomalyrecourseQuerybyidAPIRequest.go | 52 + ...nterAnomalyrecourseQuerybyidAPIResponse.go | 27 + ...ecenterAnomalyrecourseQuerybyidResponse.go | 27 - ...lServicecenterContractsSearchAPIRequest.go | 66 + ...ServicecenterContractsSearchAPIResponse.go | 27 + ...allServicecenterContractsSearchResponse.go | 27 - ...rvicecenterIdentifytaskCreateAPIRequest.go | 80 + ...vicecenterIdentifytaskCreateAPIResponse.go | 27 + ...ServicecenterIdentifytaskCreateResponse.go | 27 - ...llServicecenterMsfTasksUpdateAPIRequest.go | 108 + ...lServicecenterMsfTasksUpdateAPIResponse.go | 27 + ...mallServicecenterMsfTasksUpdateResponse.go | 27 - ...allServicecenterPictureUploadAPIRequest.go | 80 + ...llServicecenterPictureUploadAPIResponse.go | 27 + ...TmallServicecenterPictureUploadResponse.go | 27 - ...vicecenterServiceTypeQueryallAPIRequest.go | 38 + ...icecenterServiceTypeQueryallAPIResponse.go | 27 + ...ervicecenterServiceTypeQueryallResponse.go | 27 - ...erServicemonitormessageSearchAPIRequest.go | 66 + ...rServicemonitormessageSearchAPIResponse.go | 27 + ...nterServicemonitormessageSearchResponse.go | 27 - ...erServicemonitormessageUpdateAPIRequest.go | 80 + ...rServicemonitormessageUpdateAPIResponse.go | 27 + ...nterServicemonitormessageUpdateResponse.go | 27 - ...rvicecenterServicestoreCreateAPIRequest.go | 52 + ...vicecenterServicestoreCreateAPIResponse.go | 27 + ...ServicecenterServicestoreCreateResponse.go | 27 - ...ervicestoreCreateservicestoreAPIRequest.go | 65 + ...rvicestoreCreateservicestoreAPIResponse.go | 40 + ...rServicestoreCreateservicestoreResponse.go | 40 - ...ervicestoreDeleteservicestoreAPIRequest.go | 65 + ...rvicestoreDeleteservicestoreAPIResponse.go | 40 + ...rServicestoreDeleteservicestoreResponse.go | 40 - ...eleteservicestorecoverserviceAPIRequest.go | 67 + ...leteservicestorecoverserviceAPIResponse.go | 28 + ...eDeleteservicestorecoverserviceResponse.go | 28 - ...rvicecenterServicestoreUpdateAPIRequest.go | 52 + ...vicecenterServicestoreUpdateAPIResponse.go | 27 + ...ServicecenterServicestoreUpdateResponse.go | 27 - ...ervicestoreUpdateservicestoreAPIRequest.go | 65 + ...rvicestoreUpdateservicestoreAPIResponse.go | 40 + ...rServicestoreUpdateservicestoreResponse.go | 40 - ...enterServicestoreUpdatestatusAPIRequest.go | 80 + ...nterServicestoreUpdatestatusAPIResponse.go | 27 + ...ecenterServicestoreUpdatestatusResponse.go | 27 - ...rSettlementStoretransferAuditAPIRequest.go | 66 + ...SettlementStoretransferAuditAPIResponse.go | 27 + ...terSettlementStoretransferAuditResponse.go | 27 - ...vicecenterSpserviceorderQueryAPIRequest.go | 52 + ...icecenterSpserviceorderQueryAPIResponse.go | 27 + ...ervicecenterSpserviceorderQueryResponse.go | 27 - ...nterTaskFeedbacknoneedserviceAPIRequest.go | 52 + ...terTaskFeedbacknoneedserviceAPIResponse.go | 27 + ...centerTaskFeedbacknoneedserviceResponse.go | 27 - .../TmallServicecenterTaskGetAPIRequest.go | 52 + .../TmallServicecenterTaskGetAPIResponse.go | 27 + .../TmallServicecenterTaskGetResponse.go | 27 - ...lServicecenterTaskQueryrefundAPIRequest.go | 52 + ...ServicecenterTaskQueryrefundAPIResponse.go | 27 + ...allServicecenterTaskQueryrefundResponse.go | 27 - ...TmallServicecenterTasksSearchAPIRequest.go | 66 + ...mallServicecenterTasksSearchAPIResponse.go | 27 + .../TmallServicecenterTasksSearchResponse.go | 27 - ...icecenterWorkcardAssignworkerAPIRequest.go | 150 ++ ...cecenterWorkcardAssignworkerAPIResponse.go | 27 + ...rvicecenterWorkcardAssignworkerResponse.go | 27 - ...rvicecenterWorkcardCallRecordAPIRequest.go | 52 + ...vicecenterWorkcardCallRecordAPIResponse.go | 27 + ...ServicecenterWorkcardCallRecordResponse.go | 27 - ...lServicecenterWorkcardCollectAPIRequest.go | 80 + ...ServicecenterWorkcardCollectAPIResponse.go | 27 + ...allServicecenterWorkcardCollectResponse.go | 27 - ...ServicecenterWorkcardCompleteAPIRequest.go | 122 ++ ...ervicecenterWorkcardCompleteAPIResponse.go | 27 + ...llServicecenterWorkcardCompleteResponse.go | 27 - ...lServicecenterWorkcardConfirmAPIRequest.go | 52 + ...ServicecenterWorkcardConfirmAPIResponse.go | 27 + ...allServicecenterWorkcardConfirmResponse.go | 27 - ...ServicecenterWorkcardEvaluateAPIRequest.go | 94 + ...ervicecenterWorkcardEvaluateAPIResponse.go | 27 + ...llServicecenterWorkcardEvaluateResponse.go | 27 - ...erWorkcardExpressorderConsignAPIRequest.go | 94 + ...rWorkcardExpressorderConsignAPIResponse.go | 27 + ...nterWorkcardExpressorderConsignResponse.go | 27 - ...terWorkcardExpressorderCreateAPIRequest.go | 80 + ...erWorkcardExpressorderCreateAPIResponse.go | 27 + ...enterWorkcardExpressorderCreateResponse.go | 27 - ...erWorkcardLogisticsorderQueryAPIRequest.go | 52 + ...rWorkcardLogisticsorderQueryAPIResponse.go | 27 + ...nterWorkcardLogisticsorderQueryResponse.go | 27 - ...rWorkcardLogisticsorderUpdateAPIRequest.go | 276 +++ ...WorkcardLogisticsorderUpdateAPIResponse.go | 27 + ...terWorkcardLogisticsorderUpdateResponse.go | 27 - ...mallServicecenterWorkcardPushAPIRequest.go | 122 ++ ...allServicecenterWorkcardPushAPIResponse.go | 27 + .../TmallServicecenterWorkcardPushResponse.go | 27 - ...allServicecenterWorkcardQueryAPIRequest.go | 150 ++ ...llServicecenterWorkcardQueryAPIResponse.go | 27 + ...TmallServicecenterWorkcardQueryResponse.go | 27 - ...cecenterWorkcardQuerybysellerAPIRequest.go | 150 ++ ...ecenterWorkcardQuerybysellerAPIResponse.go | 27 + ...vicecenterWorkcardQuerybysellerResponse.go | 27 - ...ServicecenterWorkcardReassignAPIRequest.go | 52 + ...ervicecenterWorkcardReassignAPIResponse.go | 27 + ...llServicecenterWorkcardReassignResponse.go | 27 - ...rWorkcardRepairprogressUpdateAPIRequest.go | 122 ++ ...WorkcardRepairprogressUpdateAPIResponse.go | 27 + ...terWorkcardRepairprogressUpdateResponse.go | 27 - ...lServicecenterWorkcardReserveAPIRequest.go | 206 ++ ...ServicecenterWorkcardReserveAPIResponse.go | 27 + ...allServicecenterWorkcardReserveResponse.go | 27 - ...vicecenterWorkcardReservefailAPIRequest.go | 108 + ...icecenterWorkcardReservefailAPIResponse.go | 27 + ...ervicecenterWorkcardReservefailResponse.go | 27 - ...llServicecenterWorkcardSigninAPIRequest.go | 80 + ...lServicecenterWorkcardSigninAPIResponse.go | 27 + ...mallServicecenterWorkcardSigninResponse.go | 27 - ...icecenterWorkcardStatusUpdateAPIRequest.go | 472 +++++ ...cecenterWorkcardStatusUpdateAPIResponse.go | 31 + ...rvicecenterWorkcardStatusUpdateResponse.go | 31 - ...lServicecenterWorkcardSuspendAPIRequest.go | 108 + ...ServicecenterWorkcardSuspendAPIResponse.go | 27 + ...allServicecenterWorkcardSuspendResponse.go | 27 - ...centerWorkcardUpdatelogisticsAPIRequest.go | 94 + ...enterWorkcardUpdatelogisticsAPIResponse.go | 27 + ...cecenterWorkcardUpdatelogisticsResponse.go | 27 - ...enterWorkcardVerifycodeResendAPIRequest.go | 66 + ...nterWorkcardVerifycodeResendAPIResponse.go | 27 + ...ecenterWorkcardVerifycodeResendResponse.go | 27 - ...enterWorkcardVirtualphoneBindAPIRequest.go | 53 + ...nterWorkcardVirtualphoneBindAPIResponse.go | 28 + ...ecenterWorkcardVirtualphoneBindResponse.go | 28 - ...mallServicecenterWorkerCreateAPIRequest.go | 52 + ...allServicecenterWorkerCreateAPIResponse.go | 27 + .../TmallServicecenterWorkerCreateResponse.go | 27 - ...mallServicecenterWorkerDeleteAPIRequest.go | 95 + ...allServicecenterWorkerDeleteAPIResponse.go | 42 + .../TmallServicecenterWorkerDeleteResponse.go | 42 - ...TmallServicecenterWorkerQueryAPIRequest.go | 52 + ...mallServicecenterWorkerQueryAPIResponse.go | 27 + .../TmallServicecenterWorkerQueryResponse.go | 27 - ...centerWorkerQuerycapacitytaskAPIRequest.go | 52 + ...enterWorkerQuerycapacitytaskAPIResponse.go | 27 + ...cecenterWorkerQuerycapacitytaskResponse.go | 27 - ...lServicecenterWorkerQuerypageAPIRequest.go | 52 + ...ServicecenterWorkerQuerypageAPIResponse.go | 27 + ...allServicecenterWorkerQuerypageResponse.go | 27 - ...ServicecenterWorkerTaglistGetAPIRequest.go | 66 + ...ervicecenterWorkerTaglistGetAPIResponse.go | 27 + ...llServicecenterWorkerTaglistGetResponse.go | 27 - ...mallServicecenterWorkerUpdateAPIRequest.go | 67 + ...allServicecenterWorkerUpdateAPIResponse.go | 42 + .../TmallServicecenterWorkerUpdateResponse.go | 42 - .../TmallBrandItemCouponProtectAPIRequest.go | 80 + .../TmallBrandItemCouponProtectAPIResponse.go | 33 + .../TmallBrandItemCouponProtectResponse.go | 33 - .../TmallBrandItemUploadAPIRequest.go | 52 + .../TmallBrandItemUploadAPIResponse.go | 33 + .../TmallBrandItemUploadResponse.go | 33 - ...mallTrendStyleBasicinfoUploadAPIRequest.go | 52 + ...allTrendStyleBasicinfoUploadAPIResponse.go | 33 + .../TmallTrendStyleBasicinfoUploadResponse.go | 33 - ...TmallTrendStyleBindinfoUploadAPIRequest.go | 52 + ...mallTrendStyleBindinfoUploadAPIResponse.go | 33 + .../TmallTrendStyleBindinfoUploadResponse.go | 33 - ...llTrendStyleProduceinfoUploadAPIRequest.go | 52 + ...lTrendStyleProduceinfoUploadAPIResponse.go | 33 + ...mallTrendStyleProduceinfoUploadResponse.go | 33 - .../tmc/AlibabaLsyMiniappMsgPushAPIRequest.go | 108 + .../AlibabaLsyMiniappMsgPushAPIResponse.go | 31 + model/tmc/AlibabaLsyMiniappMsgPushResponse.go | 31 - .../tmc/AlipayXiaodaiUserPermitAPIRequest.go | 52 + .../tmc/AlipayXiaodaiUserPermitAPIResponse.go | 27 + model/tmc/AlipayXiaodaiUserPermitResponse.go | 27 - ...TaobaoIstoreGiftingMessageGetAPIRequest.go | 52 + ...aobaoIstoreGiftingMessageGetAPIResponse.go | 27 + .../TaobaoIstoreGiftingMessageGetResponse.go | 27 - .../TaobaoIstoreGiftingMessageGetResultDto.go | 15 + model/tmc/TaobaoTmcGroupAddAPIRequest.go | 80 + model/tmc/TaobaoTmcGroupAddAPIResponse.go | 29 + model/tmc/TaobaoTmcGroupAddResponse.go | 29 - model/tmc/TaobaoTmcGroupDeleteAPIRequest.go | 80 + model/tmc/TaobaoTmcGroupDeleteAPIResponse.go | 27 + model/tmc/TaobaoTmcGroupDeleteResponse.go | 27 - model/tmc/TaobaoTmcGroupsGetAPIRequest.go | 80 + model/tmc/TaobaoTmcGroupsGetAPIResponse.go | 29 + model/tmc/TaobaoTmcGroupsGetResponse.go | 29 - .../tmc/TaobaoTmcMessageProduceAPIRequest.go | 150 ++ .../tmc/TaobaoTmcMessageProduceAPIResponse.go | 31 + model/tmc/TaobaoTmcMessageProduceResponse.go | 31 - .../tmc/TaobaoTmcMessagesConfirmAPIRequest.go | 80 + .../TaobaoTmcMessagesConfirmAPIResponse.go | 27 + model/tmc/TaobaoTmcMessagesConfirmResponse.go | 27 - .../tmc/TaobaoTmcMessagesConsumeAPIRequest.go | 66 + .../TaobaoTmcMessagesConsumeAPIResponse.go | 27 + model/tmc/TaobaoTmcMessagesConsumeResponse.go | 27 - .../tmc/TaobaoTmcMessagesProduceAPIRequest.go | 52 + .../TaobaoTmcMessagesProduceAPIResponse.go | 29 + model/tmc/TaobaoTmcMessagesProduceResponse.go | 29 - model/tmc/TaobaoTmcMsgSendrecordAPIRequest.go | 80 + .../tmc/TaobaoTmcMsgSendrecordAPIResponse.go | 33 + model/tmc/TaobaoTmcMsgSendrecordResponse.go | 33 - model/tmc/TaobaoTmcQueueGetAPIRequest.go | 52 + model/tmc/TaobaoTmcQueueGetAPIResponse.go | 27 + model/tmc/TaobaoTmcQueueGetResponse.go | 27 - model/tmc/TaobaoTmcTopicGroupAddAPIRequest.go | 67 + .../tmc/TaobaoTmcTopicGroupAddAPIResponse.go | 28 + model/tmc/TaobaoTmcTopicGroupAddResponse.go | 28 - .../TaobaoTmcTopicGroupDeleteAPIRequest.go | 80 + .../TaobaoTmcTopicGroupDeleteAPIResponse.go | 27 + .../tmc/TaobaoTmcTopicGroupDeleteResponse.go | 27 - model/tmc/TaobaoTmcUserCancelAPIRequest.go | 66 + model/tmc/TaobaoTmcUserCancelAPIResponse.go | 27 + model/tmc/TaobaoTmcUserCancelResponse.go | 27 - model/tmc/TaobaoTmcUserGetAPIRequest.go | 80 + model/tmc/TaobaoTmcUserGetAPIResponse.go | 27 + model/tmc/TaobaoTmcUserGetResponse.go | 27 - model/tmc/TaobaoTmcUserPermitAPIRequest.go | 52 + model/tmc/TaobaoTmcUserPermitAPIResponse.go | 27 + model/tmc/TaobaoTmcUserPermitResponse.go | 27 - model/tmc/TaobaoTmcUserTopicsGetAPIRequest.go | 52 + .../tmc/TaobaoTmcUserTopicsGetAPIResponse.go | 31 + model/tmc/TaobaoTmcUserTopicsGetResponse.go | 31 - ...llTmicQuestionnaireAnswerPushAPIRequest.go | 122 ++ ...lTmicQuestionnaireAnswerPushAPIResponse.go | 31 + ...mallTmicQuestionnaireAnswerPushResponse.go | 31 - ...TmicQuestionnaireAnswerSubmitAPIRequest.go | 122 ++ ...micQuestionnaireAnswerSubmitAPIResponse.go | 31 + ...llTmicQuestionnaireAnswerSubmitResponse.go | 31 - ...allTmicQuestionnaireOptionGetAPIRequest.go | 136 ++ ...llTmicQuestionnaireOptionGetAPIResponse.go | 27 + ...TmallTmicQuestionnaireOptionGetResponse.go | 27 - ...allTmicQuestionnaireSurveyGetAPIRequest.go | 80 + ...llTmicQuestionnaireSurveyGetAPIResponse.go | 27 + ...TmallTmicQuestionnaireSurveyGetResponse.go | 27 - .../topoaid/TaobaoTopOaidDecryptAPIRequest.go | 52 + .../TaobaoTopOaidDecryptAPIResponse.go | 27 + model/topoaid/TaobaoTopOaidDecryptResponse.go | 27 - model/topoaid/TaobaoTopOaidMergeAPIRequest.go | 52 + .../topoaid/TaobaoTopOaidMergeAPIResponse.go | 27 + model/topoaid/TaobaoTopOaidMergeResponse.go | 27 - .../AlibabaLstVasTradeflowSaveAPIRequest.go | 52 + .../AlibabaLstVasTradeflowSaveAPIResponse.go | 27 + .../AlibabaLstVasTradeflowSaveResponse.go | 27 - .../AlibabaOmniSaasOrderCreateAPIRequest.go | 192 ++ .../AlibabaOmniSaasOrderCreateAPIResponse.go | 31 + .../AlibabaOmniSaasOrderCreateResponse.go | 31 - .../AlibabaTradeAlianceCreateAPIRequest.go | 52 + .../AlibabaTradeAlianceCreateAPIResponse.go | 27 + .../AlibabaTradeAlianceCreateResponse.go | 27 - .../AlibabaWdkPosTradeCloseAPIRequest.go | 52 + .../AlibabaWdkPosTradeCloseAPIResponse.go | 27 + .../trade/AlibabaWdkPosTradeCloseResponse.go | 27 - .../AlibabaWdkPosTradeCreateAPIRequest.go | 52 + .../AlibabaWdkPosTradeCreateAPIResponse.go | 27 + .../trade/AlibabaWdkPosTradeCreateResponse.go | 27 - .../trade/AlibabaWdkPosTradePayAPIRequest.go | 52 + .../trade/AlibabaWdkPosTradePayAPIResponse.go | 27 + model/trade/AlibabaWdkPosTradePayResponse.go | 27 - .../AlibabaWdkPosTradeQueryAPIRequest.go | 52 + .../AlibabaWdkPosTradeQueryAPIResponse.go | 27 + .../trade/AlibabaWdkPosTradeQueryResponse.go | 27 - .../AlibabaWdkPosTradeReverseAPIRequest.go | 52 + .../AlibabaWdkPosTradeReverseAPIResponse.go | 27 + .../AlibabaWdkPosTradeReverseResponse.go | 27 - ...libabaWdkTradeDiscountBillGetAPIRequest.go | 52 + ...ibabaWdkTradeDiscountBillGetAPIResponse.go | 27 + .../AlibabaWdkTradeDiscountBillGetResponse.go | 27 - .../AlibabaWdkTradeOrderCancelAPIRequest.go | 52 + .../AlibabaWdkTradeOrderCancelAPIResponse.go | 27 + .../AlibabaWdkTradeOrderCancelResponse.go | 27 - .../AlibabaWdkTradeOrderCreateAPIRequest.go | 52 + .../AlibabaWdkTradeOrderCreateAPIResponse.go | 27 + .../AlibabaWdkTradeOrderCreateResponse.go | 27 - .../AlibabaWdkTradeOrderQueryAPIRequest.go | 52 + .../AlibabaWdkTradeOrderQueryAPIResponse.go | 27 + .../AlibabaWdkTradeOrderQueryResponse.go | 27 - .../AlibabaWdkTradeRefundCreateAPIRequest.go | 52 + .../AlibabaWdkTradeRefundCreateAPIResponse.go | 27 + .../AlibabaWdkTradeRefundCreateResponse.go | 27 - .../AlibabaWdkTradeRefundInformAPIRequest.go | 52 + .../AlibabaWdkTradeRefundInformAPIResponse.go | 27 + .../AlibabaWdkTradeRefundInformResponse.go | 27 - .../AlibabaWdkTradeRefundQueryAPIRequest.go | 52 + .../AlibabaWdkTradeRefundQueryAPIResponse.go | 27 + .../AlibabaWdkTradeRefundQueryResponse.go | 27 - ...abaWdkTxdCrmStatementBackflowAPIRequest.go | 52 + ...baWdkTxdCrmStatementBackflowAPIResponse.go | 27 + ...ibabaWdkTxdCrmStatementBackflowResponse.go | 27 - .../AliexpressPaymentExchangeGetAPIRequest.go | 52 + ...AliexpressPaymentExchangeGetAPIResponse.go | 27 + .../AliexpressPaymentExchangeGetResponse.go | 27 - .../trade/AlitripRailTradeRefundAPIRequest.go | 52 + .../AlitripRailTradeRefundAPIResponse.go | 27 + model/trade/AlitripRailTradeRefundResponse.go | 27 - ...niaoCntecSupplierOrderServiceAPIRequest.go | 53 + ...iaoCntecSupplierOrderServiceAPIResponse.go | 28 + ...ainiaoCntecSupplierOrderServiceResponse.go | 28 - ...iaoRefundRefundactionsDisplayAPIRequest.go | 52 + ...aoRefundRefundactionsDisplayAPIResponse.go | 27 + ...iniaoRefundRefundactionsDisplayResponse.go | 27 - ...CainiaoRefundRefundactionsGetAPIRequest.go | 52 + ...ainiaoRefundRefundactionsGetAPIResponse.go | 27 + .../CainiaoRefundRefundactionsGetResponse.go | 27 - ...oRefundRefundactionsJudgementAPIRequest.go | 52 + ...RefundRefundactionsJudgementAPIResponse.go | 27 + ...iaoRefundRefundactionsJudgementResponse.go | 27 - ...aobaoKoubeiTribeOpenOrderPageAPIRequest.go | 108 + ...obaoKoubeiTribeOpenOrderPageAPIResponse.go | 27 + .../TaobaoKoubeiTribeOpenOrderPageResponse.go | 27 - ...ifeReservationItemOrderChangeAPIRequest.go | 108 + ...feReservationItemOrderChangeAPIResponse.go | 27 + ...oLifeReservationItemOrderChangeResponse.go | 27 - ...feReservationItemOrderConfirmAPIRequest.go | 80 + ...eReservationItemOrderConfirmAPIResponse.go | 27 + ...LifeReservationItemOrderConfirmResponse.go | 27 - ...ReservationTradeConsumeNoticeAPIRequest.go | 66 + ...eservationTradeConsumeNoticeAPIResponse.go | 27 + ...feReservationTradeConsumeNoticeResponse.go | 27 - ...LifeReservationTradeConsumeNoticeResult.go | 11 + model/trade/TaobaoOpenTradeGetAPIRequest.go | 67 + model/trade/TaobaoOpenTradeGetAPIResponse.go | 28 + model/trade/TaobaoOpenTradeGetResponse.go | 28 - .../TaobaoOpenTradesSoldGetAPIRequest.go | 167 ++ .../TaobaoOpenTradesSoldGetAPIResponse.go | 34 + .../trade/TaobaoOpenTradesSoldGetResponse.go | 34 - ...radeCustomizationRefundEnableAPIRequest.go | 52 + ...adeCustomizationRefundEnableAPIResponse.go | 27 + ...ntradeCustomizationRefundEnableResponse.go | 27 - ...baoRdcAligeniusOrdermsgUpdateAPIRequest.go | 80 + ...aoRdcAligeniusOrdermsgUpdateAPIResponse.go | 27 + ...aobaoRdcAligeniusOrdermsgUpdateResponse.go | 27 - .../TaobaoRefundsReceiveGetAPIRequest.go | 164 ++ .../TaobaoRefundsReceiveGetAPIResponse.go | 31 + .../trade/TaobaoRefundsReceiveGetResponse.go | 31 - model/trade/TaobaoTradeAmountGetAPIRequest.go | 68 + .../trade/TaobaoTradeAmountGetAPIResponse.go | 29 + model/trade/TaobaoTradeAmountGetResponse.go | 29 - model/trade/TaobaoTradeCloseAPIRequest.go | 66 + model/trade/TaobaoTradeCloseAPIResponse.go | 27 + model/trade/TaobaoTradeCloseResponse.go | 27 - .../TaobaoTradeConfirmfeeGetAPIRequest.go | 52 + .../TaobaoTradeConfirmfeeGetAPIResponse.go | 27 + .../trade/TaobaoTradeConfirmfeeGetResponse.go | 27 - .../trade/TaobaoTradeFullinfoGetAPIRequest.go | 85 + .../TaobaoTradeFullinfoGetAPIResponse.go | 32 + model/trade/TaobaoTradeFullinfoGetResponse.go | 32 - model/trade/TaobaoTradeGetAPIRequest.go | 67 + model/trade/TaobaoTradeGetAPIResponse.go | 28 + model/trade/TaobaoTradeGetResponse.go | 28 - .../TaobaoTradeInvoiceAmountGetAPIRequest.go | 52 + .../TaobaoTradeInvoiceAmountGetAPIResponse.go | 29 + .../TaobaoTradeInvoiceAmountGetResponse.go | 29 - model/trade/TaobaoTradeMemoAddAPIRequest.go | 80 + model/trade/TaobaoTradeMemoAddAPIResponse.go | 27 + model/trade/TaobaoTradeMemoAddResponse.go | 27 - .../trade/TaobaoTradeMemoUpdateAPIRequest.go | 94 + .../trade/TaobaoTradeMemoUpdateAPIResponse.go | 27 + model/trade/TaobaoTradeMemoUpdateResponse.go | 27 - .../TaobaoTradeOrderskuUpdateAPIRequest.go | 80 + .../TaobaoTradeOrderskuUpdateAPIResponse.go | 27 + .../TaobaoTradeOrderskuUpdateResponse.go | 27 - .../TaobaoTradePostageUpdateAPIRequest.go | 67 + .../TaobaoTradePostageUpdateAPIResponse.go | 28 + .../trade/TaobaoTradePostageUpdateResponse.go | 28 - .../TaobaoTradeReceivetimeDelayAPIRequest.go | 66 + .../TaobaoTradeReceivetimeDelayAPIResponse.go | 27 + .../TaobaoTradeReceivetimeDelayResponse.go | 27 - ...baoTradeShippingaddressUpdateAPIRequest.go | 178 ++ ...aoTradeShippingaddressUpdateAPIResponse.go | 27 + ...aobaoTradeShippingaddressUpdateResponse.go | 27 - .../TaobaoTradeVoucherUploadAPIRequest.go | 94 + .../TaobaoTradeVoucherUploadAPIResponse.go | 27 + .../trade/TaobaoTradeVoucherUploadResponse.go | 27 - .../TaobaoTradeWtverticalGetAPIRequest.go | 52 + .../TaobaoTradeWtverticalGetAPIResponse.go | 29 + .../trade/TaobaoTradeWtverticalGetResponse.go | 29 - model/trade/TaobaoTradesSoldGetAPIRequest.go | 224 +++ model/trade/TaobaoTradesSoldGetAPIResponse.go | 35 + model/trade/TaobaoTradesSoldGetResponse.go | 35 - .../TaobaoTradesSoldIncrementGetAPIRequest.go | 196 ++ ...TaobaoTradesSoldIncrementGetAPIResponse.go | 35 + .../TaobaoTradesSoldIncrementGetResponse.go | 35 - ...TaobaoTradesSoldIncrementvGetAPIRequest.go | 182 ++ ...aobaoTradesSoldIncrementvGetAPIResponse.go | 35 + .../TaobaoTradesSoldIncrementvGetResponse.go | 35 - .../trade/TaobaoTradesSoldQueryAPIRequest.go | 52 + .../trade/TaobaoTradesSoldQueryAPIResponse.go | 27 + model/trade/TaobaoTradesSoldQueryResponse.go | 27 - .../TaobaoWttTradeServiceGetAPIRequest.go | 52 + .../TaobaoWttTradeServiceGetAPIResponse.go | 27 + .../trade/TaobaoWttTradeServiceGetResponse.go | 27 - ...DistributionOrderDetailSearchAPIRequest.go | 80 + ...istributionOrderDetailSearchAPIResponse.go | 31 + ...elDistributionOrderDetailSearchResponse.go | 31 - .../TmallAscpOrdersSaleCreateAPIRequest.go | 52 + .../TmallAscpOrdersSaleCreateAPIResponse.go | 27 + .../TmallAscpOrdersSaleCreateResponse.go | 27 - .../TmallAscpOrdersSaleCreateResultDo.go | 15 + ...obaoFliggyWrateGetmixratelistAPIRequest.go | 52 + ...baoFliggyWrateGetmixratelistAPIResponse.go | 27 + ...TaobaoFliggyWrateGetmixratelistResponse.go | 27 - .../traderate/TaobaoTraderateAddAPIRequest.go | 122 ++ .../TaobaoTraderateAddAPIResponse.go | 27 + model/traderate/TaobaoTraderateAddResponse.go | 27 - .../TaobaoTraderateExplainAddAPIRequest.go | 66 + .../TaobaoTraderateExplainAddAPIResponse.go | 27 + .../TaobaoTraderateExplainAddResponse.go | 27 - ...obaoTraderateImprImprwordsGetAPIRequest.go | 66 + ...baoTraderateImprImprwordsGetAPIResponse.go | 27 + ...TaobaoTraderateImprImprwordsGetResponse.go | 27 - .../TaobaoTraderateListAddAPIRequest.go | 108 + .../TaobaoTraderateListAddAPIResponse.go | 27 + .../TaobaoTraderateListAddResponse.go | 27 - .../TaobaoTraderatesGetAPIRequest.go | 192 ++ .../TaobaoTraderatesGetAPIResponse.go | 31 + .../traderate/TaobaoTraderatesGetResponse.go | 31 - .../TmallTraderateFeedsGetAPIRequest.go | 52 + .../TmallTraderateFeedsGetAPIResponse.go | 27 + .../TmallTraderateFeedsGetResponse.go | 27 - .../TmallTraderateItemtagsGetAPIRequest.go | 52 + .../TmallTraderateItemtagsGetAPIResponse.go | 27 + .../TmallTraderateItemtagsGetResponse.go | 27 - ...TaobaoTrainAgentBookordersGetAPIRequest.go | 52 + ...aobaoTrainAgentBookordersGetAPIResponse.go | 31 + .../TaobaoTrainAgentBookordersGetResponse.go | 31 - ...aoTrainAgentBookordersGetVtwoAPIRequest.go | 52 + ...oTrainAgentBookordersGetVtwoAPIResponse.go | 31 + ...obaoTrainAgentBookordersGetVtwoResponse.go | 31 - ...aoTrainAgentBookticketConfirmAPIRequest.go | 276 +++ ...oTrainAgentBookticketConfirmAPIResponse.go | 27 + ...obaoTrainAgentBookticketConfirmResponse.go | 27 - ...ainAgentBookticketConfirmVtwoAPIRequest.go | 318 +++ ...inAgentBookticketConfirmVtwoAPIResponse.go | 27 + ...TrainAgentBookticketConfirmVtwoResponse.go | 27 - ...obaoTrainAgentChangeAgreeVtwoAPIRequest.go | 52 + ...baoTrainAgentChangeAgreeVtwoAPIResponse.go | 27 + ...TaobaoTrainAgentChangeAgreeVtwoResponse.go | 27 - ...TaobaoTrainAgentChangeGetVtwoAPIRequest.go | 66 + ...aobaoTrainAgentChangeGetVtwoAPIResponse.go | 51 + .../TaobaoTrainAgentChangeGetVtwoResponse.go | 51 - ...ainAgentChangeHoldseatConfirmAPIRequest.go | 52 + ...inAgentChangeHoldseatConfirmAPIResponse.go | 31 + ...TrainAgentChangeHoldseatConfirmResponse.go | 31 - ...baoTrainAgentChangeRefuseVtwoAPIRequest.go | 52 + ...aoTrainAgentChangeRefuseVtwoAPIResponse.go | 27 + ...aobaoTrainAgentChangeRefuseVtwoResponse.go | 27 - ...obaoTrainAgentChangeordersGetAPIRequest.go | 52 + ...baoTrainAgentChangeordersGetAPIResponse.go | 29 + ...TaobaoTrainAgentChangeordersGetResponse.go | 29 - ...TrainAgentChangeordersGetVtwoAPIRequest.go | 52 + ...rainAgentChangeordersGetVtwoAPIResponse.go | 29 + ...aoTrainAgentChangeordersGetVtwoResponse.go | 29 - ...baoTrainAgentDirectCompensateAPIRequest.go | 52 + ...aoTrainAgentDirectCompensateAPIResponse.go | 31 + ...aobaoTrainAgentDirectCompensateResponse.go | 31 - .../TaobaoTrainAgentExpressSetAPIRequest.go | 122 ++ .../TaobaoTrainAgentExpressSetAPIResponse.go | 33 + .../TaobaoTrainAgentExpressSetResponse.go | 33 - ...aobaoTrainAgentExpressSetVtwoAPIRequest.go | 122 ++ ...obaoTrainAgentExpressSetVtwoAPIResponse.go | 33 + .../TaobaoTrainAgentExpressSetVtwoResponse.go | 33 - .../TaobaoTrainAgentGetRefundAPIRequest.go | 66 + .../TaobaoTrainAgentGetRefundAPIResponse.go | 27 + .../TaobaoTrainAgentGetRefundResponse.go | 27 - .../TaobaoTrainAgentGrabAccountAPIRequest.go | 52 + .../TaobaoTrainAgentGrabAccountAPIResponse.go | 31 + .../TaobaoTrainAgentGrabAccountResponse.go | 31 - ...TrainAgentHandleticketConfirmAPIRequest.go | 80 + ...rainAgentHandleticketConfirmAPIResponse.go | 33 + ...aoTrainAgentHandleticketConfirmResponse.go | 33 - ...nAgentHandleticketConfirmVtwoAPIRequest.go | 80 + ...AgentHandleticketConfirmVtwoAPIResponse.go | 33 + ...ainAgentHandleticketConfirmVtwoResponse.go | 33 - ...TrainAgentHandrefundRefundfeeAPIRequest.go | 80 + ...rainAgentHandrefundRefundfeeAPIResponse.go | 31 + ...aoTrainAgentHandrefundRefundfeeResponse.go | 31 - ...obaoTrainAgentHoldseatConfirmAPIRequest.go | 52 + ...baoTrainAgentHoldseatConfirmAPIResponse.go | 31 + ...TaobaoTrainAgentHoldseatConfirmResponse.go | 31 - .../TaobaoTrainAgentOrderGetAPIRequest.go | 66 + .../TaobaoTrainAgentOrderGetAPIResponse.go | 69 + .../train/TaobaoTrainAgentOrderGetResponse.go | 69 - .../TaobaoTrainAgentOrderGetVtwoAPIRequest.go | 66 + ...TaobaoTrainAgentOrderGetVtwoAPIResponse.go | 83 + .../TaobaoTrainAgentOrderGetVtwoResponse.go | 83 - .../TaobaoTrainAgentOrderPayAPIRequest.go | 52 + .../TaobaoTrainAgentOrderPayAPIResponse.go | 27 + .../train/TaobaoTrainAgentOrderPayResponse.go | 27 - ...TrainAgentReturnordersGetVtwoAPIRequest.go | 66 + ...rainAgentReturnordersGetVtwoAPIResponse.go | 35 + ...aoTrainAgentReturnordersGetVtwoResponse.go | 35 - ...nAgentReturnticketConfirmVtwoAPIRequest.go | 150 ++ ...AgentReturnticketConfirmVtwoAPIResponse.go | 31 + ...ainAgentReturnticketConfirmVtwoResponse.go | 31 - ...baoTrainAgentTostationConfirmAPIRequest.go | 66 + ...aoTrainAgentTostationConfirmAPIResponse.go | 33 + ...aobaoTrainAgentTostationConfirmResponse.go | 33 - ...baoTrainAgentTostationReceiveAPIRequest.go | 66 + ...aoTrainAgentTostationReceiveAPIResponse.go | 33 + ...aobaoTrainAgentTostationReceiveResponse.go | 33 - model/train/TaobaoTrainMomentGetAPIRequest.go | 52 + .../train/TaobaoTrainMomentGetAPIResponse.go | 35 + model/train/TaobaoTrainMomentGetResponse.go | 35 - .../AlitripDaytoursProductUploadAPIRequest.go | 475 +++++ ...AlitripDaytoursProductUploadAPIResponse.go | 30 + .../AlitripDaytoursProductUploadResponse.go | 30 - .../AlitripFreetourProductUploadAPIRequest.go | 433 ++++ ...AlitripFreetourProductUploadAPIResponse.go | 30 + .../AlitripFreetourProductUploadResponse.go | 30 - ...AlitripGrouptourProductUploadAPIRequest.go | 472 +++++ ...litripGrouptourProductUploadAPIResponse.go | 27 + .../AlitripGrouptourProductUploadResponse.go | 27 - ...litripGrouptoursProductUploadAPIRequest.go | 489 +++++ ...itripGrouptoursProductUploadAPIResponse.go | 30 + .../AlitripGrouptoursProductUploadResponse.go | 30 - .../AlitripItemAddSchemaGetAPIRequest.go | 52 + .../AlitripItemAddSchemaGetAPIResponse.go | 27 + .../travel/AlitripItemAddSchemaGetResponse.go | 27 - .../travel/AlitripItemSchemaAddAPIRequest.go | 66 + .../travel/AlitripItemSchemaAddAPIResponse.go | 27 + model/travel/AlitripItemSchemaAddResponse.go | 27 - .../AlitripItemSchemaUpdateAPIRequest.go | 66 + .../AlitripItemSchemaUpdateAPIResponse.go | 27 + .../travel/AlitripItemSchemaUpdateResponse.go | 27 - .../AlitripItemUpdateSchemaGetAPIRequest.go | 66 + .../AlitripItemUpdateSchemaGetAPIResponse.go | 27 + .../AlitripItemUpdateSchemaGetResponse.go | 27 - ...AlitripLocalplayProductUploadAPIRequest.go | 419 ++++ ...litripLocalplayProductUploadAPIResponse.go | 30 + .../AlitripLocalplayProductUploadResponse.go | 30 - ...litripTravelGereralitemUpdateAPIRequest.go | 137 ++ ...itripTravelGereralitemUpdateAPIResponse.go | 28 + .../AlitripTravelGereralitemUpdateResponse.go | 28 - ...ripTravelGereralproductUpdateAPIRequest.go | 108 + ...ipTravelGereralproductUpdateAPIResponse.go | 27 + ...itripTravelGereralproductUpdateResponse.go | 27 - ...AlitripTravelGereralskuUpdateAPIRequest.go | 136 ++ ...litripTravelGereralskuUpdateAPIResponse.go | 27 + .../AlitripTravelGereralskuUpdateResponse.go | 27 - .../AlitripTravelPoiSearchAPIRequest.go | 80 + .../AlitripTravelPoiSearchAPIResponse.go | 27 + .../travel/AlitripTravelPoiSearchResponse.go | 27 - ...TravelProductGereralskuUpdateAPIRequest.go | 136 ++ ...ravelProductGereralskuUpdateAPIResponse.go | 27 + ...ipTravelProductGereralskuUpdateResponse.go | 27 - ...litripTravelBaseinfoCitiesGetAPIRequest.go | 66 + ...itripTravelBaseinfoCitiesGetAPIResponse.go | 27 + ...oAlitripTravelBaseinfoCitiesGetResponse.go | 27 - ...litripTravelBaseinfoCruiseGetAPIRequest.go | 52 + ...itripTravelBaseinfoCruiseGetAPIResponse.go | 27 + ...oAlitripTravelBaseinfoCruiseGetResponse.go | 27 - ...itripTravelBaseinfoScenicsGetAPIRequest.go | 80 + ...tripTravelBaseinfoScenicsGetAPIResponse.go | 27 + ...AlitripTravelBaseinfoScenicsGetResponse.go | 27 - ...aobaoAlitripTravelItemBaseAddAPIRequest.go | 164 ++ ...obaoAlitripTravelItemBaseAddAPIResponse.go | 27 + .../TaobaoAlitripTravelItemBaseAddResponse.go | 27 - ...aoAlitripTravelItemBaseModifyAPIRequest.go | 192 ++ ...oAlitripTravelItemBaseModifyAPIResponse.go | 27 + ...obaoAlitripTravelItemBaseModifyResponse.go | 27 - ...litripTravelItemElementManageAPIRequest.go | 136 ++ ...itripTravelItemElementManageAPIResponse.go | 27 + ...oAlitripTravelItemElementManageResponse.go | 27 - ...AlitripTravelItemElementQueryAPIRequest.go | 52 + ...litripTravelItemElementQueryAPIResponse.go | 27 + ...aoAlitripTravelItemElementQueryResponse.go | 27 - ...obaoAlitripTravelItemNewQueryAPIRequest.go | 66 + ...baoAlitripTravelItemNewQueryAPIResponse.go | 27 + ...TaobaoAlitripTravelItemNewQueryResponse.go | 27 - ...TaobaoAlitripTravelItemShelveAPIRequest.go | 95 + ...aobaoAlitripTravelItemShelveAPIResponse.go | 28 + .../TaobaoAlitripTravelItemShelveResponse.go | 28 - ...oAlitripTravelItemSingleQueryAPIRequest.go | 66 + ...AlitripTravelItemSingleQueryAPIResponse.go | 27 + ...baoAlitripTravelItemSingleQueryResponse.go | 27 - ...oAlitripTravelItemSkuOverrideAPIRequest.go | 80 + ...AlitripTravelItemSkuOverrideAPIResponse.go | 27 + ...baoAlitripTravelItemSkuOverrideResponse.go | 27 - ...ripTravelItemSkuPackageModifyAPIRequest.go | 80 + ...ipTravelItemSkuPackageModifyAPIResponse.go | 27 + ...itripTravelItemSkuPackageModifyResponse.go | 27 - ...itripTravelItemSkuPriceModifyAPIRequest.go | 80 + ...tripTravelItemSkuPriceModifyAPIResponse.go | 27 + ...AlitripTravelItemSkuPriceModifyResponse.go | 27 - ...aoAlitripTravelProductBaseAddAPIRequest.go | 122 ++ ...oAlitripTravelProductBaseAddAPIResponse.go | 27 + ...obaoAlitripTravelProductBaseAddResponse.go | 27 - ...litripTravelProductBaseModifyAPIRequest.go | 136 ++ ...itripTravelProductBaseModifyAPIResponse.go | 27 + ...oAlitripTravelProductBaseModifyResponse.go | 27 - ...itripTravelProductSkuOverrideAPIRequest.go | 80 + ...tripTravelProductSkuOverrideAPIResponse.go | 27 + ...AlitripTravelProductSkuOverrideResponse.go | 27 - .../AlitripTravelBookinfoQueryAPIRequest.go | 52 + .../AlitripTravelBookinfoQueryAPIResponse.go | 27 + .../AlitripTravelBookinfoQueryResponse.go | 27 - .../AlitripTravelBookinfosSearchAPIRequest.go | 94 + ...AlitripTravelBookinfosSearchAPIResponse.go | 33 + .../AlitripTravelBookinfosSearchResponse.go | 33 - .../AlitripTravelTradeCloseAPIRequest.go | 80 + .../AlitripTravelTradeCloseAPIResponse.go | 27 + .../AlitripTravelTradeCloseResponse.go | 27 - .../AlitripTravelTradeDeliverAPIRequest.go | 52 + .../AlitripTravelTradeDeliverAPIResponse.go | 27 + .../AlitripTravelTradeDeliverResponse.go | 27 - .../AlitripTravelTradeQueryAPIRequest.go | 52 + .../AlitripTravelTradeQueryAPIResponse.go | 27 + .../AlitripTravelTradeQueryResponse.go | 27 - ...ipTravelTradeServiceinfoWriteAPIRequest.go | 66 + ...pTravelTradeServiceinfoWriteAPIResponse.go | 27 + ...tripTravelTradeServiceinfoWriteResponse.go | 27 - ...itripTravelTradeTemplateQueryAPIRequest.go | 66 + ...tripTravelTradeTemplateQueryAPIResponse.go | 27 + ...AlitripTravelTradeTemplateQueryResponse.go | 27 - .../AlitripTravelTradesSearchAPIRequest.go | 122 ++ .../AlitripTravelTradesSearchAPIResponse.go | 31 + .../AlitripTravelTradesSearchResponse.go | 31 - ...tripTravelVisaApplicantUpdateAPIRequest.go | 234 +++ ...ripTravelVisaApplicantUpdateAPIResponse.go | 29 + ...litripTravelVisaApplicantUpdateResponse.go | 29 - ...obaoAlitripTravelTradeMemoAddAPIRequest.go | 80 + ...baoAlitripTravelTradeMemoAddAPIResponse.go | 27 + ...TaobaoAlitripTravelTradeMemoAddResponse.go | 27 - ...oAlitripTravelTradeMemoUpdateAPIRequest.go | 94 + ...AlitripTravelTradeMemoUpdateAPIResponse.go | 27 + ...baoAlitripTravelTradeMemoUpdateResponse.go | 27 - ...TaobaoTravelTicketOrderRefundAPIRequest.go | 80 + ...aobaoTravelTicketOrderRefundAPIResponse.go | 27 + .../TaobaoTravelTicketOrderRefundResponse.go | 27 - ...TaobaoTravelTicketOrderVerifyAPIRequest.go | 94 + ...aobaoTravelTicketOrderVerifyAPIResponse.go | 27 + .../TaobaoTravelTicketOrderVerifyResponse.go | 27 - .../AliyunIndustryTttmItemsSyncAPIRequest.go | 52 + .../AliyunIndustryTttmItemsSyncAPIResponse.go | 27 + .../AliyunIndustryTttmItemsSyncResponse.go | 27 - .../AliyunIndustryTttmOrderQueryAPIRequest.go | 66 + ...AliyunIndustryTttmOrderQueryAPIResponse.go | 27 + .../AliyunIndustryTttmOrderQueryResponse.go | 27 - .../AliyunIndustryTttmPlanSyncAPIRequest.go | 52 + .../AliyunIndustryTttmPlanSyncAPIResponse.go | 27 + .../AliyunIndustryTttmPlanSyncResponse.go | 27 - ...AliyunIndustryTttmProduceSyncAPIRequest.go | 52 + ...liyunIndustryTttmProduceSyncAPIResponse.go | 27 + .../AliyunIndustryTttmProduceSyncResponse.go | 27 - ...liyunIndustryTttmProductsSyncAPIRequest.go | 52 + ...iyunIndustryTttmProductsSyncAPIResponse.go | 27 + .../AliyunIndustryTttmProductsSyncResponse.go | 27 - .../AliyunIndustryTttmStockSyncAPIRequest.go | 52 + .../AliyunIndustryTttmStockSyncAPIResponse.go | 27 + .../AliyunIndustryTttmStockSyncResponse.go | 27 - ...AlitripTuanHotelAdaptStoreGetAPIRequest.go | 66 + ...litripTuanHotelAdaptStoreGetAPIResponse.go | 33 + .../AlitripTuanHotelAdaptStoreGetResponse.go | 33 - .../AlitripTuanHotelImageUploadAPIRequest.go | 52 + .../AlitripTuanHotelImageUploadAPIResponse.go | 33 + .../AlitripTuanHotelImageUploadResponse.go | 33 - .../AlitripTuanHotelItemInfoGetAPIRequest.go | 52 + .../AlitripTuanHotelItemInfoGetAPIResponse.go | 43 + .../AlitripTuanHotelItemInfoGetResponse.go | 43 - ...uanHotelItemSkuCalendarUpdateAPIRequest.go | 80 + ...anHotelItemSkuCalendarUpdateAPIResponse.go | 37 + ...pTuanHotelItemSkuCalendarUpdateResponse.go | 37 - ...AlitripTuanHotelItemSkuDeleteAPIRequest.go | 80 + ...litripTuanHotelItemSkuDeleteAPIResponse.go | 37 + .../AlitripTuanHotelItemSkuDeleteResponse.go | 37 - ...AlitripTuanHotelItemSkuUpdateAPIRequest.go | 80 + ...litripTuanHotelItemSkuUpdateAPIResponse.go | 37 + .../AlitripTuanHotelItemSkuUpdateResponse.go | 37 - .../AlitripTuanHotelRelatePoiGetAPIRequest.go | 80 + ...AlitripTuanHotelRelatePoiGetAPIResponse.go | 33 + .../AlitripTuanHotelRelatePoiGetResponse.go | 33 - ...itripTuanHotelShopCategoryGetAPIRequest.go | 38 + ...tripTuanHotelShopCategoryGetAPIResponse.go | 33 + ...AlitripTuanHotelShopCategoryGetResponse.go | 33 - model/tuike/AlibabaTuikeOfferGetAPIRequest.go | 66 + .../tuike/AlibabaTuikeOfferGetAPIResponse.go | 27 + .../AlibabaTuikeOfferGetProAPIRequest.go | 80 + .../AlibabaTuikeOfferGetProAPIResponse.go | 27 + .../tuike/AlibabaTuikeOfferGetProResponse.go | 27 - model/tuike/AlibabaTuikeOfferGetResponse.go | 27 - .../AlibabaTuikeOfferZhitokenAPIRequest.go | 178 ++ .../AlibabaTuikeOfferZhitokenAPIResponse.go | 27 + .../AlibabaTuikeOfferZhitokenResponse.go | 27 - .../AlibabaTuikeSingleOfferGetAPIRequest.go | 66 + .../AlibabaTuikeSingleOfferGetAPIResponse.go | 27 + .../AlibabaTuikeSingleOfferGetResponse.go | 27 - ...libabaTuikeWebUnionOrderQueryAPIRequest.go | 108 + ...ibabaTuikeWebUnionOrderQueryAPIResponse.go | 27 + .../AlibabaTuikeWebUnionOrderQueryResponse.go | 27 - .../TaobaoTvpayAccessDataGetAPIRequest.go | 94 + .../TaobaoTvpayAccessDataGetAPIResponse.go | 27 + .../tvpay/TaobaoTvpayAccessDataGetResponse.go | 27 - .../tvpay/TaobaoTvpayAppinfoGetAPIRequest.go | 80 + .../tvpay/TaobaoTvpayAppinfoGetAPIResponse.go | 27 + model/tvpay/TaobaoTvpayAppinfoGetResponse.go | 27 - model/tvpay/TaobaoTvpayAuthApplyAPIRequest.go | 136 ++ .../tvpay/TaobaoTvpayAuthApplyAPIResponse.go | 27 + model/tvpay/TaobaoTvpayAuthApplyResponse.go | 27 - model/tvpay/TaobaoTvpayAuthQueryAPIRequest.go | 122 ++ .../tvpay/TaobaoTvpayAuthQueryAPIResponse.go | 27 + model/tvpay/TaobaoTvpayAuthQueryResponse.go | 27 - .../TaobaoTvpayOrderPartnerpayAPIRequest.go | 108 + .../TaobaoTvpayOrderPartnerpayAPIResponse.go | 27 + .../TaobaoTvpayOrderPartnerpayResponse.go | 27 - .../TaobaoTvpayOrderPrecreateAPIRequest.go | 94 + .../TaobaoTvpayOrderPrecreateAPIResponse.go | 27 + .../TaobaoTvpayOrderPrecreateResponse.go | 27 - .../tvpay/TaobaoTvpayOrderQueryAPIRequest.go | 150 ++ .../tvpay/TaobaoTvpayOrderQueryAPIResponse.go | 27 + model/tvpay/TaobaoTvpayOrderQueryResponse.go | 27 - .../TaobaoTvpayPartnerOrderQueryAPIRequest.go | 52 + ...TaobaoTvpayPartnerOrderQueryAPIResponse.go | 27 + .../TaobaoTvpayPartnerOrderQueryResponse.go | 27 - .../TaobaoTvpayPromotionInfoGetAPIRequest.go | 122 ++ .../TaobaoTvpayPromotionInfoGetAPIResponse.go | 27 + .../TaobaoTvpayPromotionInfoGetResponse.go | 27 - ...YunosOsupdateAppversionCreateAPIRequest.go | 52 + ...unosOsupdateAppversionCreateAPIResponse.go | 27 + .../YunosOsupdateAppversionCreateResponse.go | 27 - .../YunosOsupdateAppversionInfoAPIRequest.go | 52 + .../YunosOsupdateAppversionInfoAPIResponse.go | 27 + .../YunosOsupdateAppversionInfoResponse.go | 27 - ...unosOsupdateAppversionPublishAPIRequest.go | 52 + ...nosOsupdateAppversionPublishAPIResponse.go | 27 + .../YunosOsupdateAppversionPublishResponse.go | 27 - .../YunosOsupdateAppversionQueryAPIRequest.go | 80 + ...YunosOsupdateAppversionQueryAPIResponse.go | 29 + .../YunosOsupdateAppversionQueryResponse.go | 29 - ...YunosOsupdateAppversionUpdateAPIRequest.go | 52 + ...unosOsupdateAppversionUpdateAPIResponse.go | 27 + .../YunosOsupdateAppversionUpdateResponse.go | 27 - ...dateDeviceserviceSearchmodelsAPIRequest.go | 66 + ...ateDeviceserviceSearchmodelsAPIResponse.go | 27 + ...updateDeviceserviceSearchmodelsResponse.go | 27 - .../YunosOsupdateModelSearchAPIRequest.go | 66 + .../YunosOsupdateModelSearchAPIResponse.go | 27 + .../YunosOsupdateModelSearchResponse.go | 27 - .../YunosOsupdateOsfotaAddAPIRequest.go | 52 + .../YunosOsupdateOsfotaAddAPIResponse.go | 27 + .../YunosOsupdateOsfotaAddResponse.go | 27 - .../YunosOsupdateOsfotaPublishAPIRequest.go | 52 + .../YunosOsupdateOsfotaPublishAPIResponse.go | 27 + .../YunosOsupdateOsfotaPublishResponse.go | 27 - .../YunosOsupdateOsfotaQueryAPIRequest.go | 80 + .../YunosOsupdateOsfotaQueryAPIResponse.go | 27 + .../YunosOsupdateOsfotaQueryResponse.go | 27 - ...osOsupdateVersionstatusUpdateAPIRequest.go | 66 + ...sOsupdateVersionstatusUpdateAPIResponse.go | 27 + ...unosOsupdateVersionstatusUpdateResponse.go | 27 - .../YunosPubadminCommonOperationAPIRequest.go | 80 + ...YunosPubadminCommonOperationAPIResponse.go | 27 + .../YunosPubadminCommonOperationResponse.go | 27 - ...unosTradeAdminCommonOperationAPIRequest.go | 80 + ...nosTradeAdminCommonOperationAPIResponse.go | 27 + .../YunosTradeAdminCommonOperationResponse.go | 27 - .../YunosTvmbosCommonOperationAPIRequest.go | 80 + .../YunosTvmbosCommonOperationAPIResponse.go | 27 + .../YunosTvmbosCommonOperationResponse.go | 27 - .../YunosTvpubadminAdmOttAuditAPIRequest.go | 52 + .../YunosTvpubadminAdmOttAuditAPIResponse.go | 27 + .../YunosTvpubadminAdmOttAuditResponse.go | 27 - .../YunosTvpubadminAdmOttQueryAPIRequest.go | 52 + .../YunosTvpubadminAdmOttQueryAPIResponse.go | 27 + .../YunosTvpubadminAdmOttQueryResponse.go | 27 - ...nosTvpubadminCommonFileUploadAPIRequest.go | 108 + ...osTvpubadminCommonFileUploadAPIResponse.go | 27 + ...YunosTvpubadminCommonFileUploadResponse.go | 27 - ...pubadminContentAdvertGettypesAPIRequest.go | 38 + ...ubadminContentAdvertGettypesAPIResponse.go | 27 + ...TvpubadminContentAdvertGettypesResponse.go | 27 - ...inContentAdvertManagescheduleAPIRequest.go | 52 + ...nContentAdvertManagescheduleAPIResponse.go | 27 + ...dminContentAdvertManagescheduleResponse.go | 27 - ...minContentAdvertQueryscheduleAPIRequest.go | 136 ++ ...inContentAdvertQueryscheduleAPIResponse.go | 27 + ...adminContentAdvertQueryscheduleResponse.go | 27 - ...inContentAppOnoffappbylicenseAPIRequest.go | 52 + ...nContentAppOnoffappbylicenseAPIResponse.go | 27 + ...dminContentAppOnoffappbylicenseResponse.go | 27 - ...sTvpubadminContentAppQueryappAPIRequest.go | 52 + ...TvpubadminContentAppQueryappAPIResponse.go | 27 + ...nosTvpubadminContentAppQueryappResponse.go | 27 - ...adminContentAppQuerybylicenceAPIRequest.go | 52 + ...dminContentAppQuerybylicenceAPIResponse.go | 27 + ...ubadminContentAppQuerybylicenceResponse.go | 27 - ...pubadminContentChannelOfflineAPIRequest.go | 52 + ...ubadminContentChannelOfflineAPIResponse.go | 27 + ...TvpubadminContentChannelOfflineResponse.go | 27 - ...TvpubadminContentChannelQueryAPIRequest.go | 52 + ...vpubadminContentChannelQueryAPIResponse.go | 27 + ...osTvpubadminContentChannelQueryResponse.go | 27 - ...badminContentChildLeafnodeGetAPIRequest.go | 38 + ...adminContentChildLeafnodeGetAPIResponse.go | 27 + ...pubadminContentChildLeafnodeGetResponse.go | 27 - ...inContentChildNodeitemOfflineAPIRequest.go | 52 + ...nContentChildNodeitemOfflineAPIResponse.go | 27 + ...dminContentChildNodeitemOfflineResponse.go | 27 - ...dminContentChildNodeitemQueryAPIRequest.go | 122 ++ ...minContentChildNodeitemQueryAPIResponse.go | 27 + ...badminContentChildNodeitemQueryResponse.go | 27 - ...inContentChildRecoitemOfflineAPIRequest.go | 52 + ...nContentChildRecoitemOfflineAPIResponse.go | 27 + ...dminContentChildRecoitemOfflineResponse.go | 27 - ...dminContentChildRecoitemQueryAPIRequest.go | 122 ++ ...minContentChildRecoitemQueryAPIResponse.go | 27 + ...badminContentChildRecoitemQueryResponse.go | 27 - ...badminContentChildRootnodeGetAPIRequest.go | 52 + ...adminContentChildRootnodeGetAPIResponse.go | 27 + ...pubadminContentChildRootnodeGetResponse.go | 27 - ...ntentDeviceGetterminaltypemapAPIRequest.go | 38 + ...tentDeviceGetterminaltypemapAPIResponse.go | 27 + ...ContentDeviceGetterminaltypemapResponse.go | 27 - ...ubadminContentDeviceGetvendorAPIRequest.go | 66 + ...badminContentDeviceGetvendorAPIResponse.go | 27 + ...vpubadminContentDeviceGetvendorResponse.go | 27 - ...unosTvpubadminContentShowEditAPIRequest.go | 52 + ...nosTvpubadminContentShowEditAPIResponse.go | 27 + .../YunosTvpubadminContentShowEditResponse.go | 27 - ...ubadminContentShowGetbyshowidAPIRequest.go | 52 + ...badminContentShowGetbyshowidAPIResponse.go | 27 + ...vpubadminContentShowGetbyshowidResponse.go | 27 - ...minContentShowGetbyshowlongidAPIRequest.go | 52 + ...inContentShowGetbyshowlongidAPIResponse.go | 27 + ...adminContentShowGetbyshowlongidResponse.go | 27 - ...sTvpubadminContentShowGetlistAPIRequest.go | 234 +++ ...TvpubadminContentShowGetlistAPIResponse.go | 27 + ...nosTvpubadminContentShowGetlistResponse.go | 27 - ...tentShowGetshowexemptauditmapAPIRequest.go | 66 + ...entShowGetshowexemptauditmapAPIResponse.go | 27 + ...ontentShowGetshowexemptauditmapResponse.go | 27 - ...dminContentShowSetexemptauditAPIRequest.go | 80 + ...minContentShowSetexemptauditAPIResponse.go | 27 + ...badminContentShowSetexemptauditResponse.go | 27 - ...dminContentSingleVideoGetlistAPIRequest.go | 220 ++ ...minContentSingleVideoGetlistAPIResponse.go | 27 + ...badminContentSingleVideoGetlistResponse.go | 27 - ...tSingleVideoSubmitauditresultAPIRequest.go | 108 + ...SingleVideoSubmitauditresultAPIResponse.go | 27 + ...entSingleVideoSubmitauditresultResponse.go | 27 - ...TableauditOfflinelauncheritemAPIRequest.go | 66 + ...ableauditOfflinelauncheritemAPIResponse.go | 27 + ...ntTableauditOfflinelauncheritemResponse.go | 27 - ...ntTableauditQuerychilddesktopAPIRequest.go | 52 + ...tTableauditQuerychilddesktopAPIResponse.go | 27 + ...tentTableauditQuerychilddesktopResponse.go | 27 - ...ontentTableauditQuerylauncherAPIRequest.go | 52 + ...ntentTableauditQuerylauncherAPIResponse.go | 27 + ...nContentTableauditQuerylauncherResponse.go | 27 - ...ontentTableauditQuerymetaitemAPIRequest.go | 52 + ...ntentTableauditQuerymetaitemAPIResponse.go | 27 + ...nContentTableauditQuerymetaitemResponse.go | 27 - ...TvpubadminContentTopicOfflineAPIRequest.go | 52 + ...vpubadminContentTopicOfflineAPIResponse.go | 27 + ...osTvpubadminContentTopicOfflineResponse.go | 27 - ...ubadminContentTopicQuerytopicAPIRequest.go | 52 + ...badminContentTopicQuerytopicAPIResponse.go | 27 + ...vpubadminContentTopicQuerytopicResponse.go | 27 - ...adminContentVideoGetauditlistAPIRequest.go | 52 + ...dminContentVideoGetauditlistAPIResponse.go | 27 + ...ubadminContentVideoGetauditlistResponse.go | 27 - ...ContentVideoSubmitauditresultAPIRequest.go | 52 + ...ontentVideoSubmitauditresultAPIResponse.go | 27 + ...inContentVideoSubmitauditresultResponse.go | 27 - .../YunosTvpubadminDataQueryAPIRequest.go | 136 ++ .../YunosTvpubadminDataQueryAPIResponse.go | 27 + .../YunosTvpubadminDataQueryResponse.go | 27 - .../YunosTvpubadminDeviceApkinfoAPIRequest.go | 52 + ...YunosTvpubadminDeviceApkinfoAPIResponse.go | 27 + .../YunosTvpubadminDeviceApkinfoResponse.go | 27 - .../YunosTvpubadminDeviceApksAPIRequest.go | 52 + .../YunosTvpubadminDeviceApksAPIResponse.go | 27 + .../YunosTvpubadminDeviceApksResponse.go | 27 - ...ubadminDeviceAppupgradedetailAPIRequest.go | 66 + ...badminDeviceAppupgradedetailAPIResponse.go | 27 + ...vpubadminDeviceAppupgradedetailResponse.go | 27 - ...pubadminDeviceAppupgradequeryAPIRequest.go | 108 + ...ubadminDeviceAppupgradequeryAPIResponse.go | 27 + ...TvpubadminDeviceAppupgradequeryResponse.go | 27 - .../YunosTvpubadminDeviceBrandsAPIRequest.go | 66 + .../YunosTvpubadminDeviceBrandsAPIResponse.go | 27 + .../YunosTvpubadminDeviceBrandsResponse.go | 27 - .../YunosTvpubadminDeviceModelsAPIRequest.go | 80 + .../YunosTvpubadminDeviceModelsAPIResponse.go | 27 + .../YunosTvpubadminDeviceModelsResponse.go | 27 - ...pubadminDeviceOsupgradedetailAPIRequest.go | 66 + ...ubadminDeviceOsupgradedetailAPIResponse.go | 27 + ...TvpubadminDeviceOsupgradedetailResponse.go | 27 - ...vpubadminDeviceOsupgradequeryAPIRequest.go | 108 + ...pubadminDeviceOsupgradequeryAPIResponse.go | 27 + ...sTvpubadminDeviceOsupgradequeryResponse.go | 27 - .../YunosTvpubadminDeviceQueryAPIRequest.go | 108 + .../YunosTvpubadminDeviceQueryAPIResponse.go | 27 + .../YunosTvpubadminDeviceQueryResponse.go | 27 - .../YunosTvpubadminDeviceStatsAPIRequest.go | 66 + .../YunosTvpubadminDeviceStatsAPIResponse.go | 27 + .../YunosTvpubadminDeviceStatsResponse.go | 27 - .../YunosTvpubadminDeviceTvidAPIRequest.go | 52 + .../YunosTvpubadminDeviceTvidAPIResponse.go | 27 + .../YunosTvpubadminDeviceTvidResponse.go | 27 - ...pubadminDeviceUpdateappstatusAPIRequest.go | 94 + ...ubadminDeviceUpdateappstatusAPIResponse.go | 27 + ...TvpubadminDeviceUpdateappstatusResponse.go | 27 - ...vpubadminDeviceUpdateosstatusAPIRequest.go | 94 + ...pubadminDeviceUpdateosstatusAPIResponse.go | 27 + ...sTvpubadminDeviceUpdateosstatusResponse.go | 27 - .../YunosTvpubadminDeviceYksBotsAPIRequest.go | 38 + ...YunosTvpubadminDeviceYksBotsAPIResponse.go | 27 + .../YunosTvpubadminDeviceYksBotsResponse.go | 27 - ...osTvpubadminDeviceYksSkillAddAPIRequest.go | 94 + ...sTvpubadminDeviceYksSkillAddAPIResponse.go | 27 + ...unosTvpubadminDeviceYksSkillAddResponse.go | 27 - ...vpubadminDeviceYksSkillDeleteAPIRequest.go | 66 + ...pubadminDeviceYksSkillDeleteAPIResponse.go | 27 + ...sTvpubadminDeviceYksSkillDeleteResponse.go | 27 - ...vpubadminDeviceYksSkillModifyAPIRequest.go | 80 + ...pubadminDeviceYksSkillModifyAPIResponse.go | 27 + ...sTvpubadminDeviceYksSkillModifyResponse.go | 27 - ...pubadminDeviceYksSkillOfflineAPIRequest.go | 52 + ...ubadminDeviceYksSkillOfflineAPIResponse.go | 27 + ...TvpubadminDeviceYksSkillOfflineResponse.go | 27 - ...vpubadminDeviceYksSkillOnlineAPIRequest.go | 52 + ...pubadminDeviceYksSkillOnlineAPIResponse.go | 27 + ...sTvpubadminDeviceYksSkillOnlineResponse.go | 27 - ...unosTvpubadminDeviceYksSkillsAPIRequest.go | 108 + ...nosTvpubadminDeviceYksSkillsAPIResponse.go | 27 + .../YunosTvpubadminDeviceYksSkillsResponse.go | 27 - ...osTvpubadminDiccontroltaskAddAPIRequest.go | 52 + ...sTvpubadminDiccontroltaskAddAPIResponse.go | 27 + ...unosTvpubadminDiccontroltaskAddResponse.go | 27 - ...pubadminDiccontroltaskGetinfoAPIRequest.go | 66 + ...ubadminDiccontroltaskGetinfoAPIResponse.go | 27 + ...TvpubadminDiccontroltaskGetinfoResponse.go | 27 - ...TvpubadminDiccontroltaskQueryAPIRequest.go | 108 + ...vpubadminDiccontroltaskQueryAPIResponse.go | 27 + ...osTvpubadminDiccontroltaskQueryResponse.go | 27 - ...vpubadminDiccontroltaskUpdateAPIRequest.go | 80 + ...pubadminDiccontroltaskUpdateAPIResponse.go | 27 + ...sTvpubadminDiccontroltaskUpdateResponse.go | 27 - ...TvpubadminEpgDesktopOperationAPIRequest.go | 80 + ...vpubadminEpgDesktopOperationAPIResponse.go | 27 + ...osTvpubadminEpgDesktopOperationResponse.go | 27 - ...unosTvpubadminManageDialogAddAPIRequest.go | 52 + ...nosTvpubadminManageDialogAddAPIResponse.go | 27 + .../YunosTvpubadminManageDialogAddResponse.go | 27 - ...sTvpubadminManageDialogDeleteAPIRequest.go | 52 + ...TvpubadminManageDialogDeleteAPIResponse.go | 27 + ...nosTvpubadminManageDialogDeleteResponse.go | 27 - ...nosTvpubadminManageDialogEditAPIRequest.go | 52 + ...osTvpubadminManageDialogEditAPIResponse.go | 27 + ...YunosTvpubadminManageDialogEditResponse.go | 27 - ...vpubadminManageDialogFindbyidAPIRequest.go | 52 + ...pubadminManageDialogFindbyidAPIResponse.go | 27 + ...sTvpubadminManageDialogFindbyidResponse.go | 27 - ...nosTvpubadminManageDialogListAPIRequest.go | 52 + ...osTvpubadminManageDialogListAPIResponse.go | 27 + ...YunosTvpubadminManageDialogListResponse.go | 27 - ...YunosTvpubadminManageTopicAddAPIRequest.go | 52 + ...unosTvpubadminManageTopicAddAPIResponse.go | 27 + .../YunosTvpubadminManageTopicAddResponse.go | 27 - ...pubadminManageTopicContentaddAPIRequest.go | 52 + ...ubadminManageTopicContentaddAPIResponse.go | 27 + ...TvpubadminManageTopicContentaddResponse.go | 27 - ...adminManageTopicContentdeleteAPIRequest.go | 52 + ...dminManageTopicContentdeleteAPIResponse.go | 27 + ...ubadminManageTopicContentdeleteResponse.go | 27 - ...ubadminManageTopicContenteditAPIRequest.go | 52 + ...badminManageTopicContenteditAPIResponse.go | 27 + ...vpubadminManageTopicContenteditResponse.go | 27 - ...ubadminManageTopicContentlistAPIRequest.go | 52 + ...badminManageTopicContentlistAPIResponse.go | 27 + ...vpubadminManageTopicContentlistResponse.go | 27 - ...unosTvpubadminManageTopicEditAPIRequest.go | 52 + ...nosTvpubadminManageTopicEditAPIResponse.go | 27 + .../YunosTvpubadminManageTopicEditResponse.go | 27 - ...TvpubadminManageTopicFindbyidAPIRequest.go | 52 + ...vpubadminManageTopicFindbyidAPIResponse.go | 27 + ...osTvpubadminManageTopicFindbyidResponse.go | 27 - ...unosTvpubadminManageTopicListAPIRequest.go | 52 + ...nosTvpubadminManageTopicListAPIResponse.go | 27 + .../YunosTvpubadminManageTopicListResponse.go | 27 - .../YunosTvpubadminUserOrderlistAPIRequest.go | 122 ++ ...YunosTvpubadminUserOrderlistAPIResponse.go | 27 + .../YunosTvpubadminUserOrderlistResponse.go | 27 - .../YunosTvpubadminUserRightsAPIRequest.go | 80 + .../YunosTvpubadminUserRightsAPIResponse.go | 27 + .../YunosTvpubadminUserRightsResponse.go | 27 - .../YunosTvpubadminUserSuggestAPIRequest.go | 52 + .../YunosTvpubadminUserSuggestAPIResponse.go | 27 + .../YunosTvpubadminUserSuggestResponse.go | 27 - ...sTvscreenAdminCommonOperationAPIRequest.go | 80 + ...TvscreenAdminCommonOperationAPIResponse.go | 27 + ...nosTvscreenAdminCommonOperationResponse.go | 27 - .../TmallTxcsFinanceBillCheckAPIRequest.go | 66 + .../TmallTxcsFinanceBillCheckAPIResponse.go | 27 + .../txcs/TmallTxcsFinanceBillCheckResponse.go | 27 - .../TmallTxcsFinanceBillConfirmAPIRequest.go | 66 + .../TmallTxcsFinanceBillConfirmAPIResponse.go | 27 + .../TmallTxcsFinanceBillConfirmResponse.go | 27 - .../TmallTxcsFinanceBillQueryAPIRequest.go | 52 + .../TmallTxcsFinanceBillQueryAPIResponse.go | 27 + .../txcs/TmallTxcsFinanceBillQueryResponse.go | 27 - .../TmallTxcsFinanceInvoiceInputAPIRequest.go | 66 + ...TmallTxcsFinanceInvoiceInputAPIResponse.go | 27 + .../TmallTxcsFinanceInvoiceInputResponse.go | 27 - ...xcsFinanceVerifyStatementBillAPIRequest.go | 66 + ...csFinanceVerifyStatementBillAPIResponse.go | 27 + ...lTxcsFinanceVerifyStatementBillResponse.go | 27 - .../TaobaoUsceslBizApActivateAPIRequest.go | 80 + .../TaobaoUsceslBizApActivateAPIResponse.go | 27 + .../TaobaoUsceslBizApActivateResponse.go | 27 - .../uscesl/TaobaoUsceslBizApAddAPIRequest.go | 80 + .../uscesl/TaobaoUsceslBizApAddAPIResponse.go | 27 + model/uscesl/TaobaoUsceslBizApAddResponse.go | 27 - .../TaobaoUsceslBizApDeleteAPIRequest.go | 80 + .../TaobaoUsceslBizApDeleteAPIResponse.go | 27 + .../uscesl/TaobaoUsceslBizApDeleteResponse.go | 27 - .../TaobaoUsceslBizApSearchAPIRequest.go | 122 ++ .../TaobaoUsceslBizApSearchAPIResponse.go | 27 + .../uscesl/TaobaoUsceslBizApSearchResponse.go | 27 - .../TaobaoUsceslBizBrandInsertAPIRequest.go | 66 + .../TaobaoUsceslBizBrandInsertAPIResponse.go | 27 + .../TaobaoUsceslBizBrandInsertResponse.go | 27 - .../TaobaoUsceslBizEslBindAPIRequest.go | 108 + .../TaobaoUsceslBizEslBindAPIResponse.go | 27 + .../uscesl/TaobaoUsceslBizEslBindResponse.go | 27 - .../TaobaoUsceslBizEslInfoGetAPIRequest.go | 80 + .../TaobaoUsceslBizEslInfoGetAPIResponse.go | 27 + .../TaobaoUsceslBizEslInfoGetResponse.go | 27 - .../TaobaoUsceslBizEslUnbindAPIRequest.go | 80 + .../TaobaoUsceslBizEslUnbindAPIResponse.go | 27 + .../TaobaoUsceslBizEslUnbindResponse.go | 27 - .../TaobaoUsceslBizItemLightUpAPIRequest.go | 108 + .../TaobaoUsceslBizItemLightUpAPIResponse.go | 27 + .../TaobaoUsceslBizItemLightUpResponse.go | 27 - .../TaobaoUsceslBizLightUpAPIRequest.go | 108 + .../TaobaoUsceslBizLightUpAPIResponse.go | 27 + .../uscesl/TaobaoUsceslBizLightUpResponse.go | 27 - .../TaobaoUsceslBizStoreInsertAPIRequest.go | 80 + .../TaobaoUsceslBizStoreInsertAPIResponse.go | 27 + .../TaobaoUsceslBizStoreInsertResponse.go | 27 - ...obaoUsceslIteminfoBatchInsertAPIRequest.go | 80 + ...baoUsceslIteminfoBatchInsertAPIResponse.go | 27 + ...TaobaoUsceslIteminfoBatchInsertResponse.go | 27 - .../TaobaoUsceslIteminfoBatchPutAPIRequest.go | 66 + ...TaobaoUsceslIteminfoBatchPutAPIResponse.go | 27 + .../TaobaoUsceslIteminfoBatchPutResponse.go | 27 - .../TaobaoUsceslIteminfoPutAPIRequest.go | 514 +++++ .../TaobaoUsceslIteminfoPutAPIResponse.go | 31 + .../uscesl/TaobaoUsceslIteminfoPutResponse.go | 31 - ...liyuncsComGetPubKey2013_07_01APIRequest.go | 52 + ...iyuncsComGetPubKey2013_07_01APIResponse.go | 39 + ...tAliyuncsComGetPubKey2013_07_01Response.go | 39 - .../AlibabaAilabsUserSpeechGuideAPIRequest.go | 52 + ...AlibabaAilabsUserSpeechGuideAPIResponse.go | 27 + .../AlibabaAilabsUserSpeechGuideResponse.go | 27 - ...aAliqinFlowWalletCheckBalanceAPIRequest.go | 52 + ...AliqinFlowWalletCheckBalanceAPIResponse.go | 27 + ...abaAliqinFlowWalletCheckBalanceResponse.go | 27 - model/user/AlibabaBenefitSendAPIRequest.go | 122 ++ model/user/AlibabaBenefitSendAPIResponse.go | 35 + model/user/AlibabaBenefitSendResponse.go | 35 - model/user/AlibabaBeneiftDrawAPIRequest.go | 80 + model/user/AlibabaBeneiftDrawAPIResponse.go | 35 + model/user/AlibabaBeneiftDrawResponse.go | 35 - .../user/AlibabaInteractUiVideoAPIRequest.go | 52 + .../user/AlibabaInteractUiVideoAPIResponse.go | 27 + model/user/AlibabaInteractUiVideoResponse.go | 27 - model/user/AlibabaLsyCrmCreateAPIRequest.go | 52 + model/user/AlibabaLsyCrmCreateAPIResponse.go | 33 + model/user/AlibabaLsyCrmCreateResponse.go | 33 - model/user/AlibabaLsyCrmUpdateAPIRequest.go | 52 + model/user/AlibabaLsyCrmUpdateAPIResponse.go | 33 + model/user/AlibabaLsyCrmUpdateResponse.go | 33 - .../AlibabaLsyMiniappUserGetAPIRequest.go | 94 + .../AlibabaLsyMiniappUserGetAPIResponse.go | 27 + .../user/AlibabaLsyMiniappUserGetResponse.go | 27 - .../TaobaoAppstoreSubscribeGetAPIRequest.go | 52 + .../TaobaoAppstoreSubscribeGetAPIResponse.go | 27 + .../TaobaoAppstoreSubscribeGetResponse.go | 27 - ...aobaoKoubeiTribeOpenUserQueryAPIRequest.go | 80 + ...obaoKoubeiTribeOpenUserQueryAPIResponse.go | 27 + .../TaobaoKoubeiTribeOpenUserQueryResponse.go | 27 - ...oubeiTribeOpenVerifyCodeApplyAPIRequest.go | 66 + ...ubeiTribeOpenVerifyCodeApplyAPIResponse.go | 27 + ...oKoubeiTribeOpenVerifyCodeApplyResponse.go | 27 - ...aoLarkPosItemprodFindterminalAPIRequest.go | 122 ++ ...oLarkPosItemprodFindterminalAPIResponse.go | 27 + ...obaoLarkPosItemprodFindterminalResponse.go | 27 - ...essageaccountMesssageMassSendAPIRequest.go | 52 + ...ssageaccountMesssageMassSendAPIResponse.go | 27 + ...oMessageaccountMesssageMassSendResponse.go | 27 - ...sageaccountMesssageNormalSendAPIRequest.go | 52 + ...ageaccountMesssageNormalSendAPIResponse.go | 27 + ...essageaccountMesssageNormalSendResponse.go | 27 - ...aoMessageaccountMesssageReplyAPIRequest.go | 52 + ...oMessageaccountMesssageReplyAPIResponse.go | 27 + ...obaoMessageaccountMesssageReplyResponse.go | 27 - .../TaobaoMiniappEleuserPhoneGetAPIRequest.go | 38 + ...TaobaoMiniappEleuserPhoneGetAPIResponse.go | 29 + .../TaobaoMiniappEleuserPhoneGetResponse.go | 29 - .../TaobaoMiniappEleuserinfoGetAPIRequest.go | 52 + .../TaobaoMiniappEleuserinfoGetAPIResponse.go | 29 + .../TaobaoMiniappEleuserinfoGetResponse.go | 29 - ...obaoMiniappMesssageNormalSendAPIRequest.go | 52 + ...baoMiniappMesssageNormalSendAPIResponse.go | 27 + ...TaobaoMiniappMesssageNormalSendResponse.go | 27 - .../TaobaoMiniappMesssageReplyAPIRequest.go | 52 + .../TaobaoMiniappMesssageReplyAPIResponse.go | 27 + .../TaobaoMiniappMesssageReplyResponse.go | 27 - .../TaobaoMiniappUserInfoGetAPIRequest.go | 38 + .../TaobaoMiniappUserInfoGetAPIResponse.go | 27 + .../user/TaobaoMiniappUserInfoGetResponse.go | 27 - .../TaobaoMiniappUserPhoneGetAPIRequest.go | 38 + .../TaobaoMiniappUserPhoneGetAPIResponse.go | 27 + .../user/TaobaoMiniappUserPhoneGetResponse.go | 27 - model/user/TaobaoMixnickChangeAPIRequest.go | 66 + model/user/TaobaoMixnickChangeAPIResponse.go | 29 + model/user/TaobaoMixnickChangeResponse.go | 29 - ...ewretailDivisionRecordListGetAPIRequest.go | 52 + ...wretailDivisionRecordListGetAPIResponse.go | 43 + ...oNewretailDivisionRecordListGetResponse.go | 43 - .../user/TaobaoOpenAccountCreateAPIRequest.go | 52 + .../TaobaoOpenAccountCreateAPIResponse.go | 27 + model/user/TaobaoOpenAccountCreateResponse.go | 27 - .../user/TaobaoOpenAccountDeleteAPIRequest.go | 66 + .../TaobaoOpenAccountDeleteAPIResponse.go | 27 + model/user/TaobaoOpenAccountDeleteResponse.go | 27 - .../TaobaoOpenAccountIndexFindAPIRequest.go | 66 + .../TaobaoOpenAccountIndexFindAPIResponse.go | 27 + .../TaobaoOpenAccountIndexFindResponse.go | 27 - model/user/TaobaoOpenAccountListAPIRequest.go | 66 + .../user/TaobaoOpenAccountListAPIResponse.go | 27 + model/user/TaobaoOpenAccountListResponse.go | 27 - .../user/TaobaoOpenAccountSearchAPIRequest.go | 52 + .../TaobaoOpenAccountSearchAPIResponse.go | 27 + model/user/TaobaoOpenAccountSearchResponse.go | 27 - .../TaobaoOpenAccountTokenApplyAPIRequest.go | 122 ++ .../TaobaoOpenAccountTokenApplyAPIResponse.go | 27 + .../TaobaoOpenAccountTokenApplyResponse.go | 27 - ...aobaoOpenAccountTokenValidateAPIRequest.go | 52 + ...obaoOpenAccountTokenValidateAPIResponse.go | 27 + .../TaobaoOpenAccountTokenValidateResponse.go | 27 - .../user/TaobaoOpenAccountUpdateAPIRequest.go | 52 + .../TaobaoOpenAccountUpdateAPIResponse.go | 27 + model/user/TaobaoOpenAccountUpdateResponse.go | 27 - .../TaobaoOpensecurityIsvUidGetAPIRequest.go | 52 + .../TaobaoOpensecurityIsvUidGetAPIResponse.go | 27 + .../TaobaoOpensecurityIsvUidGetResponse.go | 27 - .../TaobaoOpensecurityUidGetAPIRequest.go | 52 + .../TaobaoOpensecurityUidGetAPIResponse.go | 27 + .../user/TaobaoOpensecurityUidGetResponse.go | 27 - ...aoRdcAligeniusAccountValidateAPIRequest.go | 38 + ...oRdcAligeniusAccountValidateAPIResponse.go | 27 + ...obaoRdcAligeniusAccountValidateResponse.go | 27 - model/user/TaobaoUserAvatarGetAPIRequest.go | 52 + model/user/TaobaoUserAvatarGetAPIResponse.go | 27 + model/user/TaobaoUserAvatarGetResponse.go | 27 - model/user/TaobaoUserBuyerGetAPIRequest.go | 52 + model/user/TaobaoUserBuyerGetAPIResponse.go | 27 + model/user/TaobaoUserBuyerGetResponse.go | 27 - model/user/TaobaoUserSellerGetAPIRequest.go | 52 + model/user/TaobaoUserSellerGetAPIResponse.go | 27 + model/user/TaobaoUserSellerGetResponse.go | 27 - ...ServiceSettleadjustmentModifyAPIRequest.go | 53 + ...erviceSettleadjustmentModifyAPIResponse.go | 28 + ...llServiceSettleadjustmentModifyResponse.go | 28 - ...baoUsergrowthDeliveryBatchaskAPIRequest.go | 94 + ...aoUsergrowthDeliveryBatchaskAPIResponse.go | 27 + ...aobaoUsergrowthDeliveryBatchaskResponse.go | 27 - ...ergrowthDeliveryProfileReportAPIRequest.go | 66 + ...rgrowthDeliveryProfileReportAPIResponse.go | 27 + ...UsergrowthDeliveryProfileReportResponse.go | 27 - ...aobaoUsergrowthDhhDeliveryAskAPIRequest.go | 178 ++ ...obaoUsergrowthDhhDeliveryAskAPIResponse.go | 33 + .../TaobaoUsergrowthDhhDeliveryAskResponse.go | 33 - ...UsergrowthDhhDeliveryBatchaskAPIRequest.go | 108 + ...sergrowthDhhDeliveryBatchaskAPIResponse.go | 27 + ...aoUsergrowthDhhDeliveryBatchaskResponse.go | 27 - .../TaobaoUsergrowthDeliveryAskAPIRequest.go | 920 +++++++++ .../TaobaoUsergrowthDeliveryAskAPIResponse.go | 31 + .../TaobaoUsergrowthDeliveryAskResponse.go | 31 - ...lineConvertionDetailsEightGetAPIRequest.go | 52 + ...ineConvertionDetailsEightGetAPIResponse.go | 35 + ...fflineConvertionDetailsEightGetResponse.go | 35 - ...thOfflineConvertionDetailsGetAPIRequest.go | 52 + ...hOfflineConvertionDetailsGetAPIResponse.go | 35 + ...owthOfflineConvertionDetailsGetResponse.go | 35 - ...lineConvertionSummaryEightGetAPIRequest.go | 52 + ...ineConvertionSummaryEightGetAPIResponse.go | 35 + ...fflineConvertionSummaryEightGetResponse.go | 35 - ...fflineConvertionSummaryOneGetAPIRequest.go | 52 + ...flineConvertionSummaryOneGetAPIResponse.go | 35 + ...hOfflineConvertionSummaryOneGetResponse.go | 35 - ...hOfflineConvertionSyncInfoGetAPIRequest.go | 52 + ...OfflineConvertionSyncInfoGetAPIResponse.go | 27 + ...wthOfflineConvertionSyncInfoGetResponse.go | 27 - .../AlibabaAisAssetsTagAbortAPIRequest.go | 52 + .../AlibabaAisAssetsTagAbortAPIResponse.go | 27 + .../util/AlibabaAisAssetsTagAbortResponse.go | 27 - .../AlibabaAisAssetsTagGenerateAPIRequest.go | 52 + .../AlibabaAisAssetsTagGenerateAPIResponse.go | 27 + .../AlibabaAisAssetsTagGenerateResponse.go | 27 - .../util/AlibabaAisAssetsTagGetAPIRequest.go | 52 + .../util/AlibabaAisAssetsTagGetAPIResponse.go | 27 + model/util/AlibabaAisAssetsTagGetResponse.go | 27 - ...aCuntaoInteractRequisitionGetAPIRequest.go | 94 + ...CuntaoInteractRequisitionGetAPIResponse.go | 27 + ...abaCuntaoInteractRequisitionGetResponse.go | 27 - ...ntaoInteractRequisitionUpdateAPIRequest.go | 66 + ...taoInteractRequisitionUpdateAPIResponse.go | 27 + ...CuntaoInteractRequisitionUpdateResponse.go | 27 - .../util/AlibabaInteractSensorUiAPIRequest.go | 52 + .../AlibabaInteractSensorUiAPIResponse.go | 27 + model/util/AlibabaInteractSensorUiResponse.go | 27 - ...upplierAwardResourceGetCuntaoAPIRequest.go | 94 + ...pplierAwardResourceGetCuntaoAPIResponse.go | 27 + ...tSupplierAwardResourceGetCuntaoResponse.go | 27 - ...ibabaMosFalconPosCounterQueryAPIRequest.go | 80 + ...babaMosFalconPosCounterQueryAPIResponse.go | 27 + ...AlibabaMosFalconPosCounterQueryResponse.go | 27 - ...AlibabaMosFalconPosCounterQueryResultDo.go | 21 + .../AlibabaRetailDeviceTradeShipAPIRequest.go | 108 + ...AlibabaRetailDeviceTradeShipAPIResponse.go | 27 + .../AlibabaRetailDeviceTradeShipResponse.go | 27 - .../AlibabaRetailShorturlGetAPIRequest.go | 66 + .../AlibabaRetailShorturlGetAPIResponse.go | 27 + .../util/AlibabaRetailShorturlGetResponse.go | 27 - .../AlibabaTaobaoWtUserCrowdAPIRequest.go | 53 + .../AlibabaTaobaoWtUserCrowdAPIResponse.go | 28 + .../util/AlibabaTaobaoWtUserCrowdResponse.go | 28 - .../AliexpressSocialCountryGetAPIRequest.go | 52 + .../AliexpressSocialCountryGetAPIResponse.go | 27 + .../AliexpressSocialCountryGetResponse.go | 27 - .../AliexpressSocialCurrencyGetAPIRequest.go | 38 + .../AliexpressSocialCurrencyGetAPIResponse.go | 27 + .../AliexpressSocialCurrencyGetResponse.go | 27 - .../AliexpressSocialLocaleGetAPIRequest.go | 38 + .../AliexpressSocialLocaleGetAPIResponse.go | 27 + .../util/AliexpressSocialLocaleGetResponse.go | 27 - model/util/TaobaoAppipGetAPIRequest.go | 38 + model/util/TaobaoAppipGetAPIResponse.go | 27 + model/util/TaobaoAppipGetResponse.go | 27 - model/util/TaobaoFilesGetAPIRequest.go | 80 + model/util/TaobaoFilesGetAPIResponse.go | 27 + model/util/TaobaoFilesGetResponse.go | 27 - model/util/TaobaoHttpdnsGetAPIRequest.go | 38 + model/util/TaobaoHttpdnsGetAPIResponse.go | 27 + model/util/TaobaoHttpdnsGetResponse.go | 27 - .../util/TaobaoKfcKeywordSearchAPIRequest.go | 80 + .../util/TaobaoKfcKeywordSearchAPIResponse.go | 27 + model/util/TaobaoKfcKeywordSearchResponse.go | 27 - .../TaobaoOpenlinkSessionGetAPIRequest.go | 52 + .../TaobaoOpenlinkSessionGetAPIResponse.go | 27 + .../util/TaobaoOpenlinkSessionGetResponse.go | 27 - model/util/TaobaoOpenuidGetAPIRequest.go | 38 + model/util/TaobaoOpenuidGetAPIResponse.go | 27 + .../TaobaoOpenuidGetBymixnickAPIRequest.go | 52 + .../TaobaoOpenuidGetBymixnickAPIResponse.go | 27 + .../util/TaobaoOpenuidGetBymixnickResponse.go | 27 - .../util/TaobaoOpenuidGetBytradeAPIRequest.go | 52 + .../TaobaoOpenuidGetBytradeAPIResponse.go | 27 + model/util/TaobaoOpenuidGetBytradeResponse.go | 27 - model/util/TaobaoOpenuidGetResponse.go | 27 - .../util/TaobaoQimenEventProduceAPIRequest.go | 122 ++ .../TaobaoQimenEventProduceAPIResponse.go | 27 + model/util/TaobaoQimenEventProduceResponse.go | 27 - .../TaobaoQimenEventsProduceAPIRequest.go | 52 + .../TaobaoQimenEventsProduceAPIResponse.go | 29 + .../util/TaobaoQimenEventsProduceResponse.go | 29 - .../util/TaobaoQimenTradeUserAddAPIRequest.go | 52 + .../TaobaoQimenTradeUserAddAPIResponse.go | 31 + model/util/TaobaoQimenTradeUserAddResponse.go | 31 - .../TaobaoQimenTradeUserDeleteAPIRequest.go | 38 + .../TaobaoQimenTradeUserDeleteAPIResponse.go | 27 + .../TaobaoQimenTradeUserDeleteResponse.go | 27 - .../TaobaoQimenTradeUsersGetAPIRequest.go | 66 + .../TaobaoQimenTradeUsersGetAPIResponse.go | 29 + .../util/TaobaoQimenTradeUsersGetResponse.go | 29 - ...aobaoRdcAligeniusRefundsCheckAPIRequest.go | 52 + ...obaoRdcAligeniusRefundsCheckAPIResponse.go | 27 + .../TaobaoRdcAligeniusRefundsCheckResponse.go | 27 - .../TaobaoStreetestSessionGetAPIRequest.go | 38 + .../TaobaoStreetestSessionGetAPIResponse.go | 27 + .../util/TaobaoStreetestSessionGetResponse.go | 27 - model/util/TaobaoTimeGetAPIRequest.go | 38 + model/util/TaobaoTimeGetAPIResponse.go | 27 + model/util/TaobaoTimeGetResponse.go | 27 - model/util/TaobaoTmcAuthGetAPIRequest.go | 52 + model/util/TaobaoTmcAuthGetAPIResponse.go | 27 + model/util/TaobaoTmcAuthGetResponse.go | 27 - .../TaobaoTopAuthTokenCreateAPIRequest.go | 66 + .../TaobaoTopAuthTokenCreateAPIResponse.go | 27 + .../util/TaobaoTopAuthTokenCreateResponse.go | 27 - .../TaobaoTopAuthTokenRefreshAPIRequest.go | 52 + .../TaobaoTopAuthTokenRefreshAPIResponse.go | 27 + .../util/TaobaoTopAuthTokenRefreshResponse.go | 27 - model/util/TaobaoTopIpoutGetAPIRequest.go | 38 + model/util/TaobaoTopIpoutGetAPIResponse.go | 27 + model/util/TaobaoTopIpoutGetResponse.go | 27 - model/util/TaobaoTopOnceTokenGetAPIRequest.go | 52 + .../util/TaobaoTopOnceTokenGetAPIResponse.go | 31 + model/util/TaobaoTopOnceTokenGetResponse.go | 31 - .../util/TaobaoTopOpenidConvertAPIRequest.go | 52 + .../util/TaobaoTopOpenidConvertAPIResponse.go | 27 + model/util/TaobaoTopOpenidConvertResponse.go | 27 - .../TaobaoTopSdkFeedbackUploadAPIRequest.go | 66 + .../TaobaoTopSdkFeedbackUploadAPIResponse.go | 27 + .../TaobaoTopSdkFeedbackUploadResponse.go | 27 - model/util/TaobaoTopSecretGetAPIRequest.go | 80 + model/util/TaobaoTopSecretGetAPIResponse.go | 35 + model/util/TaobaoTopSecretGetResponse.go | 35 - .../util/TaobaoTopSecretRegisterAPIRequest.go | 52 + .../TaobaoTopSecretRegisterAPIResponse.go | 27 + model/util/TaobaoTopSecretRegisterResponse.go | 27 - .../TaobaoWirelessContentCheckAPIRequest.go | 52 + .../TaobaoWirelessContentCheckAPIResponse.go | 29 + .../TaobaoWirelessContentCheckResponse.go | 29 - .../TaobaoWirelessPictureCheckAPIRequest.go | 53 + .../TaobaoWirelessPictureCheckAPIResponse.go | 30 + .../TaobaoWirelessPictureCheckResponse.go | 30 - .../TaobaoWirelessVideoCheckAPIRequest.go | 70 + .../TaobaoWirelessVideoCheckAPIResponse.go | 31 + .../util/TaobaoWirelessVideoCheckResponse.go | 31 - .../TmallMarketingFaceSkindetectAPIRequest.go | 94 + ...TmallMarketingFaceSkindetectAPIResponse.go | 27 + .../TmallMarketingFaceSkindetectResponse.go | 27 - ...baAlihealthMsAreaDistrictListAPIRequest.go | 52 + ...aAlihealthMsAreaDistrictListAPIResponse.go | 27 + ...babaAlihealthMsAreaDistrictListResponse.go | 27 - ...ccinNoticeAnnouncementPublishAPIRequest.go | 136 ++ ...cinNoticeAnnouncementPublishAPIResponse.go | 33 + ...VaccinNoticeAnnouncementPublishResponse.go | 33 - ...aHealthVaccinNoticeMissRemindAPIRequest.go | 108 + ...HealthVaccinNoticeMissRemindAPIResponse.go | 33 + ...abaHealthVaccinNoticeMissRemindResponse.go | 33 - ...HealthVaccinNoticeOrderCancelAPIRequest.go | 66 + ...ealthVaccinNoticeOrderCancelAPIResponse.go | 33 + ...baHealthVaccinNoticeOrderCancelResponse.go | 33 - ...althVaccinNoticeOrderCompleteAPIRequest.go | 66 + ...lthVaccinNoticeOrderCompleteAPIResponse.go | 33 + ...HealthVaccinNoticeOrderCompleteResponse.go | 33 - ...HealthVaccinNoticeOrderCreateAPIRequest.go | 276 +++ ...ealthVaccinNoticeOrderCreateAPIResponse.go | 33 + ...baHealthVaccinNoticeOrderCreateResponse.go | 33 - ...baHealthVaccinNoticeOrderSignAPIRequest.go | 66 + ...aHealthVaccinNoticeOrderSignAPIResponse.go | 33 + ...babaHealthVaccinNoticeOrderSignResponse.go | 33 - ...althVaccinNoticeReplantRemindAPIRequest.go | 80 + ...lthVaccinNoticeReplantRemindAPIResponse.go | 33 + ...HealthVaccinNoticeReplantRemindResponse.go | 33 - ...AlibabaHealthVaccinNoticeSendAPIRequest.go | 290 +++ ...libabaHealthVaccinNoticeSendAPIResponse.go | 33 + .../AlibabaHealthVaccinNoticeSendResponse.go | 33 - ...hVaccinNoticeTimebucketRemindAPIRequest.go | 150 ++ ...VaccinNoticeTimebucketRemindAPIResponse.go | 33 + ...lthVaccinNoticeTimebucketRemindResponse.go | 33 - ...abaHealthVaccinNoticeUserBindAPIRequest.go | 108 + ...baHealthVaccinNoticeUserBindAPIResponse.go | 33 + ...ibabaHealthVaccinNoticeUserBindResponse.go | 33 - ...aHealthVaccinNoticeUserCreateAPIRequest.go | 80 + ...HealthVaccinNoticeUserCreateAPIResponse.go | 33 + ...abaHealthVaccinNoticeUserCreateResponse.go | 33 - .../AlibabaHealthVaccinPovUpdateAPIRequest.go | 122 ++ ...AlibabaHealthVaccinPovUpdateAPIResponse.go | 33 + .../AlibabaHealthVaccinPovUpdateResponse.go | 33 - ...HealthVaccinVaccinateCompleteAPIRequest.go | 150 ++ ...ealthVaccinVaccinateCompleteAPIResponse.go | 33 + ...baHealthVaccinVaccinateCompleteResponse.go | 33 - ...MicdetailAlihealthQuerystoresAPIRequest.go | 192 ++ ...icdetailAlihealthQuerystoresAPIResponse.go | 27 + ...aoMicdetailAlihealthQuerystoresResponse.go | 27 - ...liyunViapiFacebodyComparefaceAPIRequest.go | 80 + ...iyunViapiFacebodyComparefaceAPIResponse.go | 29 + .../AliyunViapiFacebodyComparefaceResponse.go | 29 - ...AliyunViapiFacebodyDetectfaceAPIRequest.go | 66 + ...liyunViapiFacebodyDetectfaceAPIResponse.go | 29 + .../AliyunViapiFacebodyDetectfaceResponse.go | 29 - ...yunViapiFacebodyRecognizefaceAPIRequest.go | 66 + ...unViapiFacebodyRecognizefaceAPIResponse.go | 29 + ...liyunViapiFacebodyRecognizefaceResponse.go | 29 - ...unViapiGoodstechClassifygoodsAPIRequest.go | 52 + ...nViapiGoodstechClassifygoodsAPIResponse.go | 29 + ...iyunViapiGoodstechClassifygoodsResponse.go | 29 - ...chRecognizeFurnitureAttributeAPIRequest.go | 52 + ...hRecognizeFurnitureAttributeAPIResponse.go | 29 + ...techRecognizeFurnitureAttributeResponse.go | 29 - ...oodstechRecognizeFurniturespuAPIRequest.go | 94 + ...odstechRecognizeFurniturespuAPIResponse.go | 29 + ...iGoodstechRecognizeFurniturespuResponse.go | 29 - ...liyunViapiImageauditScanimageAPIRequest.go | 66 + ...iyunViapiImageauditScanimageAPIResponse.go | 29 + .../AliyunViapiImageauditScanimageResponse.go | 29 - ...AliyunViapiImageauditScantextAPIRequest.go | 67 + ...liyunViapiImageauditScantextAPIResponse.go | 30 + .../AliyunViapiImageauditScantextDetail.go | 9 + .../AliyunViapiImageauditScantextResponse.go | 30 - ...apiImagesegSegmentCommonimageAPIRequest.go | 52 + ...piImagesegSegmentCommonimageAPIResponse.go | 29 + ...ViapiImagesegSegmentCommonimageResponse.go | 29 - ...nViapiImagesegSegmentcomodityAPIRequest.go | 52 + ...ViapiImagesegSegmentcomodityAPIResponse.go | 29 + ...yunViapiImagesegSegmentcomodityResponse.go | 29 - ...yunViapiImagesegSegmenthdbodyAPIRequest.go | 52 + ...unViapiImagesegSegmenthdbodyAPIResponse.go | 29 + ...liyunViapiImagesegSegmenthdbodyResponse.go | 29 - ...liyunViapiImagesegSegmentheadAPIRequest.go | 52 + ...iyunViapiImagesegSegmentheadAPIResponse.go | 29 + .../AliyunViapiImagesegSegmentheadResponse.go | 29 - ...yunViapiObjectdetDetectobjectAPIRequest.go | 53 + ...unViapiObjectdetDetectobjectAPIResponse.go | 30 + ...liyunViapiObjectdetDetectobjectResponse.go | 30 - .../AliyunViapiOcrCharacterAPIRequest.go | 94 + .../AliyunViapiOcrCharacterAPIResponse.go | 29 + .../viapi/AliyunViapiOcrCharacterResponse.go | 29 - ...aoVmsServiceVehicleinfoUploadAPIRequest.go | 108 + ...oVmsServiceVehicleinfoUploadAPIResponse.go | 27 + ...niaoVmsServiceVehicleinfoUploadResponse.go | 27 - .../TaobaoQianniuKefuevalGetAPIRequest.go | 80 + .../TaobaoQianniuKefuevalGetAPIResponse.go | 29 + .../TaobaoQianniuKefuevalGetResponse.go | 29 - ...TaobaoWangwangAbstractAddwordAPIRequest.go | 66 + ...aobaoWangwangAbstractAddwordAPIResponse.go | 29 + .../TaobaoWangwangAbstractAddwordResponse.go | 29 - ...baoWangwangAbstractDeletewordAPIRequest.go | 66 + ...aoWangwangAbstractDeletewordAPIResponse.go | 29 + ...aobaoWangwangAbstractDeletewordResponse.go | 29 - ...aoWangwangAbstractGetwordlistAPIRequest.go | 52 + ...oWangwangAbstractGetwordlistAPIResponse.go | 31 + ...obaoWangwangAbstractGetwordlistResponse.go | 31 - ...baoWangwangAbstractInitializeAPIRequest.go | 52 + ...aoWangwangAbstractInitializeAPIResponse.go | 29 + ...aobaoWangwangAbstractInitializeResponse.go | 29 - ...aobaoWangwangAbstractLogqueryAPIRequest.go | 136 ++ ...obaoWangwangAbstractLogqueryAPIResponse.go | 43 + .../TaobaoWangwangAbstractLogqueryResponse.go | 43 - ...ngwangEserviceChatrelationGetAPIRequest.go | 55 + ...gwangEserviceChatrelationGetAPIResponse.go | 30 + ...WangwangEserviceChatrelationGetResponse.go | 30 - ...ainiaoCloudprintClientinfoPutAPIRequest.go | 52 + ...iniaoCloudprintClientinfoPutAPIResponse.go | 27 + .../CainiaoCloudprintClientinfoPutResponse.go | 27 - ...iniaoCloudprintCmdprintRenderAPIRequest.go | 52 + ...niaoCloudprintCmdprintRenderAPIResponse.go | 33 + ...CainiaoCloudprintCmdprintRenderResponse.go | 33 - ...iaoCloudprintCustomareaUpdateAPIRequest.go | 80 + ...aoCloudprintCustomareaUpdateAPIResponse.go | 27 + ...iniaoCloudprintCustomareaUpdateResponse.go | 27 - ...ainiaoCloudprintCustomaresGetAPIRequest.go | 52 + ...iniaoCloudprintCustomaresGetAPIResponse.go | 27 + .../CainiaoCloudprintCustomaresGetResponse.go | 27 - ...niaoCloudprintIsvResourcesGetAPIRequest.go | 52 + ...iaoCloudprintIsvResourcesGetAPIResponse.go | 27 + ...ainiaoCloudprintIsvResourcesGetResponse.go | 27 - ...niaoCloudprintIsvtemplatesGetAPIRequest.go | 38 + ...iaoCloudprintIsvtemplatesGetAPIResponse.go | 27 + ...ainiaoCloudprintIsvtemplatesGetResponse.go | 27 - ...aoCloudprintMystdtemplatesGetAPIRequest.go | 38 + ...oCloudprintMystdtemplatesGetAPIResponse.go | 27 + ...niaoCloudprintMystdtemplatesGetResponse.go | 27 - ...CloudprintSingleCustomareaGetAPIRequest.go | 52 + ...loudprintSingleCustomareaGetAPIResponse.go | 27 + ...aoCloudprintSingleCustomareaGetResponse.go | 27 - ...niaoCloudprintStdtemplatesGetAPIRequest.go | 38 + ...iaoCloudprintStdtemplatesGetAPIResponse.go | 27 + ...ainiaoCloudprintStdtemplatesGetResponse.go | 27 - ...iaoCloudprintTemplatesMigrateAPIRequest.go | 80 + ...aoCloudprintTemplatesMigrateAPIResponse.go | 27 + ...iniaoCloudprintTemplatesMigrateResponse.go | 27 - ...iveryStrategyWarehouseIDeleteAPIRequest.go | 52 + ...veryStrategyWarehouseIDeleteAPIResponse.go | 27 + ...eliveryStrategyWarehouseIDeleteResponse.go | 27 - ...iveryStrategyWarehouseIUpdateAPIRequest.go | 52 + ...veryStrategyWarehouseIUpdateAPIResponse.go | 27 + ...eliveryStrategyWarehouseIUpdateResponse.go | 27 - .../CainiaoWaybillIiCancelAPIRequest.go | 66 + .../CainiaoWaybillIiCancelAPIResponse.go | 27 + .../waybill/CainiaoWaybillIiCancelResponse.go | 27 - .../waybill/CainiaoWaybillIiGetAPIRequest.go | 52 + .../waybill/CainiaoWaybillIiGetAPIResponse.go | 27 + model/waybill/CainiaoWaybillIiGetResponse.go | 27 - ...aybillIiLogisticsdetailUrlGetAPIRequest.go | 66 + ...ybillIiLogisticsdetailUrlGetAPIResponse.go | 27 + ...oWaybillIiLogisticsdetailUrlGetResponse.go | 27 - .../CainiaoWaybillIiProductAPIRequest.go | 52 + .../CainiaoWaybillIiProductAPIResponse.go | 27 + .../CainiaoWaybillIiProductResponse.go | 27 - ...niaoWaybillIiQueryByTradecodeAPIRequest.go | 52 + ...iaoWaybillIiQueryByTradecodeAPIResponse.go | 27 + ...ainiaoWaybillIiQueryByTradecodeResponse.go | 27 - ...aoWaybillIiQueryByWaybillcodeAPIRequest.go | 52 + ...oWaybillIiQueryByWaybillcodeAPIResponse.go | 27 + ...niaoWaybillIiQueryByWaybillcodeResponse.go | 27 - .../CainiaoWaybillIiSearchAPIRequest.go | 52 + .../CainiaoWaybillIiSearchAPIResponse.go | 27 + .../waybill/CainiaoWaybillIiSearchResponse.go | 27 - .../CainiaoWaybillIiUpdateAPIRequest.go | 52 + .../CainiaoWaybillIiUpdateAPIResponse.go | 29 + .../waybill/CainiaoWaybillIiUpdateResponse.go | 29 - ...oWaybillPrivacySellerOrderGetAPIRequest.go | 38 + ...WaybillPrivacySellerOrderGetAPIResponse.go | 37 + ...iaoWaybillPrivacySellerOrderGetResponse.go | 37 - ...WaybillPrivacySubscriptionGetAPIRequest.go | 38 + ...aybillPrivacySubscriptionGetAPIResponse.go | 27 + ...aoWaybillPrivacySubscriptionGetResponse.go | 27 - .../TaobaoWlbWaybillICancelAPIRequest.go | 52 + .../TaobaoWlbWaybillICancelAPIResponse.go | 27 + .../TaobaoWlbWaybillICancelResponse.go | 27 - .../TaobaoWlbWaybillIFullupdateAPIRequest.go | 52 + .../TaobaoWlbWaybillIFullupdateAPIResponse.go | 27 + .../TaobaoWlbWaybillIFullupdateResponse.go | 27 - .../waybill/TaobaoWlbWaybillIGetAPIRequest.go | 52 + .../TaobaoWlbWaybillIGetAPIResponse.go | 27 + model/waybill/TaobaoWlbWaybillIGetResponse.go | 27 - .../TaobaoWlbWaybillIPrintAPIRequest.go | 52 + .../TaobaoWlbWaybillIPrintAPIResponse.go | 27 + .../waybill/TaobaoWlbWaybillIPrintResponse.go | 27 - .../TaobaoWlbWaybillIProductAPIRequest.go | 52 + .../TaobaoWlbWaybillIProductAPIResponse.go | 27 + .../TaobaoWlbWaybillIProductResponse.go | 27 - .../TaobaoWlbWaybillIQuerydetailAPIRequest.go | 52 + ...TaobaoWlbWaybillIQuerydetailAPIResponse.go | 33 + .../TaobaoWlbWaybillIQuerydetailResponse.go | 33 - .../TaobaoWlbWaybillISearchAPIRequest.go | 52 + .../TaobaoWlbWaybillISearchAPIResponse.go | 27 + .../TaobaoWlbWaybillISearchResponse.go | 27 - ...IfpFulfillWarehouseTokenQueryAPIRequest.go | 52 + ...fpFulfillWarehouseTokenQueryAPIResponse.go | 27 + ...baIfpFulfillWarehouseTokenQueryResponse.go | 27 - ...aNewretailPurchasePriceDeleteAPIRequest.go | 52 + ...NewretailPurchasePriceDeleteAPIResponse.go | 27 + ...abaNewretailPurchasePriceDeleteResponse.go | 27 - ...abaNewretailPurchasePriceSaveAPIRequest.go | 52 + ...baNewretailPurchasePriceSaveAPIResponse.go | 27 + ...ibabaNewretailPurchasePriceSaveResponse.go | 27 - ...abaPosFundCashierShiftSummaryAPIRequest.go | 52 + ...baPosFundCashierShiftSummaryAPIResponse.go | 27 + ...ibabaPosFundCashierShiftSummaryResponse.go | 27 - ...aPricePromotionActivityDeleteAPIRequest.go | 66 + ...PricePromotionActivityDeleteAPIResponse.go | 27 + ...abaPricePromotionActivityDeleteResponse.go | 27 - ...baPricePromotionActivityQueryAPIRequest.go | 94 + ...aPricePromotionActivityQueryAPIResponse.go | 35 + ...babaPricePromotionActivityQueryResponse.go | 35 - .../AlibabaPricePromotionCreateAPIRequest.go | 52 + .../AlibabaPricePromotionCreateAPIResponse.go | 35 + .../AlibabaPricePromotionCreateResponse.go | 35 - .../AlibabaPricePromotionItemAddAPIRequest.go | 52 + ...AlibabaPricePromotionItemAddAPIResponse.go | 27 + .../AlibabaPricePromotionItemAddResponse.go | 27 - ...ibabaPricePromotionItemDeleteAPIRequest.go | 94 + ...babaPricePromotionItemDeleteAPIResponse.go | 27 + ...AlibabaPricePromotionItemDeleteResponse.go | 27 - ...arketingBuygiftActivityCreateAPIRequest.go | 52 + ...rketingBuygiftActivityCreateAPIResponse.go | 27 + ...lMarketingBuygiftActivityCreateResponse.go | 27 - ...arketingBuygiftActivityDeleteAPIRequest.go | 52 + ...rketingBuygiftActivityDeleteAPIResponse.go | 27 + ...lMarketingBuygiftActivityDeleteResponse.go | 27 - ...arketingBuygiftActivitySkuAddAPIRequest.go | 52 + ...rketingBuygiftActivitySkuAddAPIResponse.go | 27 + ...lMarketingBuygiftActivitySkuAddResponse.go | 27 - ...etingBuygiftActivitySkuDeleteAPIRequest.go | 52 + ...tingBuygiftActivitySkuDeleteAPIResponse.go | 27 + ...rketingBuygiftActivitySkuDeleteResponse.go | 27 - ...arketingBuygiftActivityUpdateAPIRequest.go | 52 + ...rketingBuygiftActivityUpdateAPIResponse.go | 27 + ...lMarketingBuygiftActivityUpdateResponse.go | 27 - ...ingItemdiscountActivityCreateAPIRequest.go | 52 + ...ngItemdiscountActivityCreateAPIResponse.go | 27 + ...etingItemdiscountActivityCreateResponse.go | 27 - ...ingItemdiscountActivityDeleteAPIRequest.go | 52 + ...ngItemdiscountActivityDeleteAPIResponse.go | 27 + ...etingItemdiscountActivityDeleteResponse.go | 27 - ...ingItemdiscountActivitySkuAddAPIRequest.go | 52 + ...ngItemdiscountActivitySkuAddAPIResponse.go | 27 + ...etingItemdiscountActivitySkuAddResponse.go | 27 - ...ItemdiscountActivitySkuDeleteAPIRequest.go | 52 + ...temdiscountActivitySkuDeleteAPIResponse.go | 27 + ...ngItemdiscountActivitySkuDeleteResponse.go | 27 - ...ingItemdiscountActivityUpdateAPIRequest.go | 52 + ...ngItemdiscountActivityUpdateAPIResponse.go | 27 + ...etingItemdiscountActivityUpdateResponse.go | 27 - ...rketingItempoolActivityCreateAPIRequest.go | 52 + ...ketingItempoolActivityCreateAPIResponse.go | 27 + ...MarketingItempoolActivityCreateResponse.go | 27 - ...rketingItempoolActivityDeleteAPIRequest.go | 80 + ...ketingItempoolActivityDeleteAPIResponse.go | 27 + ...MarketingItempoolActivityDeleteResponse.go | 27 - ...rketingItempoolActivitySkuAddAPIRequest.go | 52 + ...ketingItempoolActivitySkuAddAPIResponse.go | 27 + ...MarketingItempoolActivitySkuAddResponse.go | 27 - ...tingItempoolActivitySkuDeleteAPIRequest.go | 52 + ...ingItempoolActivitySkuDeleteAPIResponse.go | 27 + ...ketingItempoolActivitySkuDeleteResponse.go | 27 - ...rketingItempoolActivityUpdateAPIRequest.go | 52 + ...ketingItempoolActivityUpdateAPIResponse.go | 27 + ...MarketingItempoolActivityUpdateResponse.go | 27 - ...AelophyBillVerificateCallbackAPIRequest.go | 52 + ...elophyBillVerificateCallbackAPIResponse.go | 27 + ...lsAelophyBillVerificateCallbackResponse.go | 27 - ...phyMerchantChannelOrderCancelAPIRequest.go | 52 + ...hyMerchantChannelOrderCancelAPIResponse.go | 27 + ...lophyMerchantChannelOrderCancelResponse.go | 27 - ...phyMerchantChannelOrderCreateAPIRequest.go | 52 + ...hyMerchantChannelOrderCreateAPIResponse.go | 27 + ...lophyMerchantChannelOrderCreateResponse.go | 27 - ...chantChannelOrderUpdatestatusAPIRequest.go | 52 + ...hantChannelOrderUpdatestatusAPIResponse.go | 27 + ...erchantChannelOrderUpdatestatusResponse.go | 27 - ...phyMerchantChannelRefundApplyAPIRequest.go | 52 + ...hyMerchantChannelRefundApplyAPIResponse.go | 27 + ...lophyMerchantChannelRefundApplyResponse.go | 27 - ...hyMerchantChannelRefundCancelAPIRequest.go | 52 + ...yMerchantChannelRefundCancelAPIResponse.go | 27 + ...ophyMerchantChannelRefundCancelResponse.go | 27 - ...MerchantChannelRefundCompleteAPIRequest.go | 52 + ...erchantChannelRefundCompleteAPIResponse.go | 27 + ...hyMerchantChannelRefundCompleteResponse.go | 27 - ...ibabaTclsAelophyMerchantIdMixAPIRequest.go | 52 + ...babaTclsAelophyMerchantIdMixAPIResponse.go | 27 + ...AlibabaTclsAelophyMerchantIdMixResponse.go | 27 - ...clsAelophyMerchantOrderUploadAPIRequest.go | 52 + ...lsAelophyMerchantOrderUploadAPIResponse.go | 27 + ...aTclsAelophyMerchantOrderUploadResponse.go | 27 - ...TclsAelophyMerchantUserUploadAPIRequest.go | 52 + ...clsAelophyMerchantUserUploadAPIResponse.go | 27 + ...baTclsAelophyMerchantUserUploadResponse.go | 27 - ...AlibabaTclsAelophyRefundAgreeAPIRequest.go | 108 + ...libabaTclsAelophyRefundAgreeAPIResponse.go | 27 + .../AlibabaTclsAelophyRefundAgreeResponse.go | 27 - ...ibabaTclsAelophyRefundCsapplyAPIRequest.go | 52 + ...babaTclsAelophyRefundCsapplyAPIResponse.go | 27 + ...AlibabaTclsAelophyRefundCsapplyResponse.go | 27 - ...clsAelophyRefundCsapplyrenderAPIRequest.go | 52 + ...lsAelophyRefundCsapplyrenderAPIResponse.go | 27 + ...aTclsAelophyRefundCsapplyrenderResponse.go | 27 - ...babaTclsAelophyRefundDisagreeAPIRequest.go | 66 + ...abaTclsAelophyRefundDisagreeAPIResponse.go | 27 + ...libabaTclsAelophyRefundDisagreeResponse.go | 27 - ...baTclsAelophyRefundFetchgoodsAPIRequest.go | 136 ++ ...aTclsAelophyRefundFetchgoodsAPIResponse.go | 27 + ...babaTclsAelophyRefundFetchgoodsResponse.go | 27 - ...BrandmarketingCouponQrcodeGetAPIRequest.go | 52 + ...randmarketingCouponQrcodeGetAPIResponse.go | 27 + ...csBrandmarketingCouponQrcodeGetResponse.go | 27 - ...dmarketingCouponStatisticsGetAPIRequest.go | 52 + ...marketingCouponStatisticsGetAPIResponse.go | 27 + ...andmarketingCouponStatisticsGetResponse.go | 27 - .../wdk/AlibabaWdkBmCouponQueryAPIRequest.go | 52 + .../wdk/AlibabaWdkBmCouponQueryAPIResponse.go | 27 + model/wdk/AlibabaWdkBmCouponQueryResponse.go | 27 - ...babaWdkBmPaiyangStatDataQueryAPIRequest.go | 52 + ...abaWdkBmPaiyangStatDataQueryAPIResponse.go | 27 + ...libabaWdkBmPaiyangStatDataQueryResponse.go | 27 - ...AlibabaWdkBmPaiyangStockQueryAPIRequest.go | 52 + ...libabaWdkBmPaiyangStockQueryAPIResponse.go | 27 + .../AlibabaWdkBmPaiyangStockQueryResponse.go | 27 - ...babaWdkBmPaiyangSupplyPublishAPIRequest.go | 52 + ...abaWdkBmPaiyangSupplyPublishAPIResponse.go | 27 + ...libabaWdkBmPaiyangSupplyPublishResponse.go | 27 - .../wdk/AlibabaWdkBmStockPublishAPIRequest.go | 52 + .../AlibabaWdkBmStockPublishAPIResponse.go | 27 + model/wdk/AlibabaWdkBmStockPublishResponse.go | 27 - ...libabaWdkBmTradeActivityQueryAPIRequest.go | 52 + ...ibabaWdkBmTradeActivityQueryAPIResponse.go | 27 + .../AlibabaWdkBmTradeActivityQueryResponse.go | 27 - ...libabaWdkChannelCommentCreateAPIRequest.go | 52 + ...ibabaWdkChannelCommentCreateAPIResponse.go | 27 + .../AlibabaWdkChannelCommentCreateResponse.go | 27 - .../AlibabaWdkChannelOrderCreateAPIRequest.go | 52 + ...AlibabaWdkChannelOrderCreateAPIResponse.go | 27 + .../AlibabaWdkChannelOrderCreateResponse.go | 27 - ...aWdkChannelOrderRefundConfirmAPIRequest.go | 52 + ...WdkChannelOrderRefundConfirmAPIResponse.go | 27 + ...abaWdkChannelOrderRefundConfirmResponse.go | 27 - ...baWdkChannelOrderStatusUpdateAPIRequest.go | 52 + ...aWdkChannelOrderStatusUpdateAPIResponse.go | 27 + ...babaWdkChannelOrderStatusUpdateResponse.go | 27 - ...babaWdkChannelOrderUsercancelAPIRequest.go | 52 + ...abaWdkChannelOrderUsercancelAPIResponse.go | 27 + ...libabaWdkChannelOrderUsercancelResponse.go | 27 - ...babaWdkChannelOrderUserrefundAPIRequest.go | 52 + ...abaWdkChannelOrderUserrefundAPIResponse.go | 27 + ...libabaWdkChannelOrderUserrefundResponse.go | 27 - .../AlibabaWdkChannelUserSyncAPIRequest.go | 52 + .../AlibabaWdkChannelUserSyncAPIResponse.go | 27 + .../wdk/AlibabaWdkChannelUserSyncResponse.go | 27 - ...libabaWdkCouponContractCreateAPIRequest.go | 52 + ...ibabaWdkCouponContractCreateAPIResponse.go | 27 + .../AlibabaWdkCouponContractCreateResponse.go | 27 - ...dkCouponTemplateQueryumpactidAPIRequest.go | 66 + ...kCouponTemplateQueryumpactidAPIResponse.go | 27 + ...aWdkCouponTemplateQueryumpactidResponse.go | 27 - .../AlibabaWdkElemeBillDetailGetAPIRequest.go | 52 + ...AlibabaWdkElemeBillDetailGetAPIResponse.go | 27 + .../AlibabaWdkElemeBillDetailGetResponse.go | 27 - model/wdk/AlibabaWdkElemeBillGetAPIRequest.go | 52 + .../wdk/AlibabaWdkElemeBillGetAPIResponse.go | 27 + model/wdk/AlibabaWdkElemeBillGetResponse.go | 27 - ...libabaWdkFinanceOrderBackflowAPIRequest.go | 52 + ...ibabaWdkFinanceOrderBackflowAPIResponse.go | 27 + .../AlibabaWdkFinanceOrderBackflowResponse.go | 27 - ...lfillBatchOnTaskStatusChangedAPIRequest.go | 52 + ...fillBatchOnTaskStatusChangedAPIResponse.go | 27 + ...FulfillBatchOnTaskStatusChangedResponse.go | 27 - ...dkFulfillBatchQueryByBatchidsAPIRequest.go | 80 + ...kFulfillBatchQueryByBatchidsAPIResponse.go | 27 + ...aWdkFulfillBatchQueryByBatchidsResponse.go | 27 - ...nWarehouseOnTaskStatusChangedAPIRequest.go | 52 + ...WarehouseOnTaskStatusChangedAPIResponse.go | 27 + ...urnWarehouseOnTaskStatusChangedResponse.go | 27 - ...ibabaWdkFulfillBoxPostBackBoxAPIRequest.go | 52 + ...babaWdkFulfillBoxPostBackBoxAPIResponse.go | 27 + ...AlibabaWdkFulfillBoxPostBackBoxResponse.go | 27 - ...dkFulfillConfigReadLimitOrderAPIRequest.go | 52 + ...kFulfillConfigReadLimitOrderAPIResponse.go | 27 + ...aWdkFulfillConfigReadLimitOrderResponse.go | 27 - ...lDmsDeliveryWorkOrderCallbackAPIRequest.go | 52 + ...DmsDeliveryWorkOrderCallbackAPIResponse.go | 31 + ...illDmsDeliveryWorkOrderCallbackResponse.go | 31 - ...lDmsEbeecakeWorkOrderCallbackAPIRequest.go | 52 + ...DmsEbeecakeWorkOrderCallbackAPIResponse.go | 31 + ...illDmsEbeecakeWorkOrderCallbackResponse.go | 31 - ...eshWarehouseWorkOrderCallbackAPIRequest.go | 52 + ...shWarehouseWorkOrderCallbackAPIResponse.go | 31 + ...freshWarehouseWorkOrderCallbackResponse.go | 31 - ...tocWarehouseWorkOrderCallbackAPIRequest.go | 52 + ...ocWarehouseWorkOrderCallbackAPIResponse.go | 31 + ...tBtocWarehouseWorkOrderCallbackResponse.go | 31 - ...SfBtocFmsWmsWorkOrderCallbackAPIRequest.go | 52 + ...fBtocFmsWmsWorkOrderCallbackAPIResponse.go | 31 + ...llSfBtocFmsWmsWorkOrderCallbackResponse.go | 31 - ...illWarehouseWorkOrderCallbackAPIRequest.go | 52 + ...llWarehouseWorkOrderCallbackAPIResponse.go | 31 + ...lfillWarehouseWorkOrderCallbackResponse.go | 31 - ...fillWarehouseWorkOrderSealboxAPIRequest.go | 52 + ...illWarehouseWorkOrderSealboxAPIResponse.go | 31 + ...ulfillWarehouseWorkOrderSealboxResponse.go | 31 - ...abaWdkHrworkbenchCdpempsQueryAPIRequest.go | 94 + ...baWdkHrworkbenchCdpempsQueryAPIResponse.go | 43 + ...ibabaWdkHrworkbenchCdpempsQueryResponse.go | 43 - ...abaWdkHrworkbenchCdporgsQueryAPIRequest.go | 38 + ...baWdkHrworkbenchCdporgsQueryAPIResponse.go | 35 + ...ibabaWdkHrworkbenchCdporgsQueryResponse.go | 35 - ...orkbenchMokaEntryReceiptWriteAPIRequest.go | 52 + ...rkbenchMokaEntryReceiptWriteAPIResponse.go | 37 + ...rworkbenchMokaEntryReceiptWriteResponse.go | 37 - .../AlibabaWdkItemCategoryUpdateAPIRequest.go | 52 + ...AlibabaWdkItemCategoryUpdateAPIResponse.go | 27 + .../AlibabaWdkItemCategoryUpdateResponse.go | 27 - ...libabaWdkItemChangepriceQueryAPIRequest.go | 101 + ...ibabaWdkItemChangepriceQueryAPIResponse.go | 34 + .../AlibabaWdkItemChangepriceQueryResponse.go | 34 - ...ibabaWdkItemCurrentpriceQueryAPIRequest.go | 80 + ...babaWdkItemCurrentpriceQueryAPIResponse.go | 27 + ...AlibabaWdkItemCurrentpriceQueryResponse.go | 27 - ...aWdkItemMerchantCategoryQueryAPIRequest.go | 52 + ...WdkItemMerchantCategoryQueryAPIResponse.go | 27 + ...abaWdkItemMerchantCategoryQueryResponse.go | 27 - .../AlibabaWdkItemPriceUpdateAPIRequest.go | 94 + .../AlibabaWdkItemPriceUpdateAPIResponse.go | 27 + .../wdk/AlibabaWdkItemPriceUpdateResponse.go | 27 - ...libabaWdkItemServiceitemQueryAPIRequest.go | 66 + ...ibabaWdkItemServiceitemQueryAPIResponse.go | 27 + .../AlibabaWdkItemServiceitemQueryResponse.go | 27 - .../AlibabaWdkItemStoreskuUpdateAPIRequest.go | 80 + ...AlibabaWdkItemStoreskuUpdateAPIResponse.go | 27 + .../AlibabaWdkItemStoreskuUpdateResponse.go | 27 - .../AlibabaWdkItemTraceUrlGetAPIRequest.go | 80 + .../AlibabaWdkItemTraceUrlGetAPIResponse.go | 33 + .../wdk/AlibabaWdkItemTraceUrlGetResponse.go | 33 - ...kMarketingBuygiftItemAddAsyncAPIRequest.go | 80 + ...MarketingBuygiftItemAddAsyncAPIResponse.go | 27 + ...WdkMarketingBuygiftItemAddAsyncResponse.go | 27 - ...rketingBuygiftItemRemoveAsyncAPIRequest.go | 80 + ...ketingBuygiftItemRemoveAsyncAPIResponse.go | 27 + ...MarketingBuygiftItemRemoveAsyncResponse.go | 27 - ...babaWdkMarketingCouponAdditemAPIRequest.go | 68 + ...abaWdkMarketingCouponAdditemAPIResponse.go | 29 + ...libabaWdkMarketingCouponAdditemResponse.go | 29 - ...MarketingCouponCreateactivityAPIRequest.go | 52 + ...arketingCouponCreateactivityAPIResponse.go | 27 + ...dkMarketingCouponCreateactivityResponse.go | 27 - ...WdkMarketingCouponEndactivityAPIRequest.go | 52 + ...dkMarketingCouponEndactivityAPIResponse.go | 27 + ...baWdkMarketingCouponEndactivityResponse.go | 27 - ...kMarketingCouponQueryactivityAPIRequest.go | 52 + ...MarketingCouponQueryactivityAPIResponse.go | 27 + ...WdkMarketingCouponQueryactivityResponse.go | 27 - ...aWdkMarketingCouponQueryitemsAPIRequest.go | 52 + ...WdkMarketingCouponQueryitemsAPIResponse.go | 27 + ...abaWdkMarketingCouponQueryitemsResponse.go | 27 - ...MarketingDiscountItemAddAsyncAPIRequest.go | 80 + ...arketingDiscountItemAddAsyncAPIResponse.go | 27 + ...dkMarketingDiscountItemAddAsyncResponse.go | 27 - ...ketingDiscountItemRemoveAsyncAPIRequest.go | 80 + ...etingDiscountItemRemoveAsyncAPIResponse.go | 27 + ...arketingDiscountItemRemoveAsyncResponse.go | 27 - ...arketingExpirePromotionCreateAPIRequest.go | 52 + ...rketingExpirePromotionCreateAPIResponse.go | 33 + ...kMarketingExpirePromotionCreateResponse.go | 33 - ...arketingExpirePromotionDeleteAPIRequest.go | 52 + ...rketingExpirePromotionDeleteAPIResponse.go | 33 + ...kMarketingExpirePromotionDeleteResponse.go | 33 - ...MarketingExpirePromotionQueryAPIRequest.go | 66 + ...arketingExpirePromotionQueryAPIResponse.go | 27 + ...dkMarketingExpirePromotionQueryResponse.go | 27 - ...etingFullrangeAddexchangeitemAPIRequest.go | 66 + ...tingFullrangeAddexchangeitemAPIResponse.go | 27 + ...rketingFullrangeAddexchangeitemResponse.go | 27 - ...ketingFullrangeCreateactivityAPIRequest.go | 52 + ...etingFullrangeCreateactivityAPIResponse.go | 27 + ...arketingFullrangeCreateactivityResponse.go | 27 - ...ketingFullrangeDeleteactivityAPIRequest.go | 52 + ...etingFullrangeDeleteactivityAPIResponse.go | 27 + ...arketingFullrangeDeleteactivityResponse.go | 27 - ...rketingFullrangeQueryactivityAPIRequest.go | 52 + ...ketingFullrangeQueryactivityAPIResponse.go | 27 + ...MarketingFullrangeQueryactivityResponse.go | 27 - ...dkMarketingFullrangeQueryitemAPIRequest.go | 52 + ...kMarketingFullrangeQueryitemAPIResponse.go | 27 + ...aWdkMarketingFullrangeQueryitemResponse.go | 27 - ...kMarketingFullrangeRemoveitemAPIRequest.go | 66 + ...MarketingFullrangeRemoveitemAPIResponse.go | 27 + ...WdkMarketingFullrangeRemoveitemResponse.go | 27 - ...dkMarketingItembuygiftAdditemAPIRequest.go | 66 + ...kMarketingItembuygiftAdditemAPIResponse.go | 27 + ...aWdkMarketingItembuygiftAdditemResponse.go | 27 - ...tingItembuygiftCreateactivityAPIRequest.go | 52 + ...ingItembuygiftCreateactivityAPIResponse.go | 27 + ...ketingItembuygiftCreateactivityResponse.go | 27 - ...tingItembuygiftDeleteactivityAPIRequest.go | 52 + ...ingItembuygiftDeleteactivityAPIResponse.go | 27 + ...ketingItembuygiftDeleteactivityResponse.go | 27 - ...etingItembuygiftQueryactivityAPIRequest.go | 52 + ...tingItembuygiftQueryactivityAPIResponse.go | 27 + ...rketingItembuygiftQueryactivityResponse.go | 27 - ...arketingItembuygiftQueryitemsAPIRequest.go | 52 + ...rketingItembuygiftQueryitemsAPIResponse.go | 27 + ...kMarketingItembuygiftQueryitemsResponse.go | 27 - ...arketingItembuygiftRemoveitemAPIRequest.go | 66 + ...rketingItembuygiftRemoveitemAPIResponse.go | 27 + ...kMarketingItembuygiftRemoveitemResponse.go | 27 - ...kMarketingItemdiscountAdditemAPIRequest.go | 66 + ...MarketingItemdiscountAdditemAPIResponse.go | 27 + ...WdkMarketingItemdiscountAdditemResponse.go | 27 - ...ingItemdiscountCreateactivityAPIRequest.go | 52 + ...ngItemdiscountCreateactivityAPIResponse.go | 27 + ...etingItemdiscountCreateactivityResponse.go | 27 - ...ingItemdiscountDeleteactivityAPIRequest.go | 52 + ...ngItemdiscountDeleteactivityAPIResponse.go | 27 + ...etingItemdiscountDeleteactivityResponse.go | 27 - ...tingItemdiscountQueryactivityAPIRequest.go | 52 + ...ingItemdiscountQueryactivityAPIResponse.go | 27 + ...ketingItemdiscountQueryactivityResponse.go | 27 - ...rketingItemdiscountQueryitemsAPIRequest.go | 52 + ...ketingItemdiscountQueryitemsAPIResponse.go | 27 + ...MarketingItemdiscountQueryitemsResponse.go | 27 - ...rketingItemdiscountRemoveitemAPIRequest.go | 66 + ...ketingItemdiscountRemoveitemAPIResponse.go | 27 + ...MarketingItemdiscountRemoveitemResponse.go | 27 - ...rketingItempoolActivityCreateAPIRequest.go | 52 + ...ketingItempoolActivityCreateAPIResponse.go | 33 + ...MarketingItempoolActivityCreateResponse.go | 33 - ...kMarketingItempoolAddcategoryAPIRequest.go | 66 + ...MarketingItempoolAddcategoryAPIResponse.go | 27 + ...WdkMarketingItempoolAddcategoryResponse.go | 27 - ...baWdkMarketingItempoolAdditemAPIRequest.go | 66 + ...aWdkMarketingItempoolAdditemAPIResponse.go | 27 + ...babaWdkMarketingItempoolAdditemResponse.go | 27 - ...rketingItempoolCreateactivityAPIRequest.go | 52 + ...ketingItempoolCreateactivityAPIResponse.go | 27 + ...MarketingItempoolCreateactivityResponse.go | 27 - ...rketingItempoolDeleteactivityAPIRequest.go | 52 + ...ketingItempoolDeleteactivityAPIResponse.go | 27 + ...MarketingItempoolDeleteactivityResponse.go | 27 - ...rketingItempoolExcludeskucodeAPIRequest.go | 66 + ...ketingItempoolExcludeskucodeAPIResponse.go | 27 + ...MarketingItempoolExcludeskucodeResponse.go | 27 - ...MarketingItempoolItemAddAsyncAPIRequest.go | 80 + ...arketingItempoolItemAddAsyncAPIResponse.go | 27 + ...dkMarketingItempoolItemAddAsyncResponse.go | 27 - ...ketingItempoolItemRemoveAsyncAPIRequest.go | 80 + ...etingItempoolItemRemoveAsyncAPIResponse.go | 27 + ...arketingItempoolItemRemoveAsyncResponse.go | 27 - ...arketingItempoolQueryactivityAPIRequest.go | 52 + ...rketingItempoolQueryactivityAPIResponse.go | 27 + ...kMarketingItempoolQueryactivityResponse.go | 27 - ...dkMarketingItempoolQueryitemsAPIRequest.go | 52 + ...kMarketingItempoolQueryitemsAPIResponse.go | 27 + ...aWdkMarketingItempoolQueryitemsResponse.go | 27 - ...dkMarketingItempoolRemoveitemAPIRequest.go | 66 + ...kMarketingItempoolRemoveitemAPIResponse.go | 27 + ...aWdkMarketingItempoolRemoveitemResponse.go | 27 - ...MarketingItempoolStairAdditemAPIRequest.go | 66 + ...arketingItempoolStairAdditemAPIResponse.go | 27 + ...dkMarketingItempoolStairAdditemResponse.go | 27 - ...rketingItempoolStairQueryitemAPIRequest.go | 52 + ...ketingItempoolStairQueryitemAPIResponse.go | 27 + ...MarketingItempoolStairQueryitemResponse.go | 27 - ...ketingItempoolStairRemoveitemAPIRequest.go | 66 + ...etingItempoolStairRemoveitemAPIResponse.go | 27 + ...arketingItempoolStairRemoveitemResponse.go | 27 - ...ingOpenDarunfaActivitySkuSyncAPIRequest.go | 94 + ...ngOpenDarunfaActivitySkuSyncAPIResponse.go | 27 + ...etingOpenDarunfaActivitySkuSyncResponse.go | 27 - ...ketingOpenDarunfaActivitySyncAPIRequest.go | 80 + ...etingOpenDarunfaActivitySyncAPIResponse.go | 27 + ...arketingOpenDarunfaActivitySyncResponse.go | 27 - ...arketingOpenDataRelationQueryAPIRequest.go | 80 + ...rketingOpenDataRelationQueryAPIResponse.go | 27 + ...kMarketingOpenDataRelationQueryResponse.go | 27 - ...babaWdkMarketingOpenHeartbeatAPIRequest.go | 52 + ...abaWdkMarketingOpenHeartbeatAPIResponse.go | 27 + ...libabaWdkMarketingOpenHeartbeatResponse.go | 27 - ...aWdkMarketingOpenVersionApplyAPIRequest.go | 52 + ...WdkMarketingOpenVersionApplyAPIResponse.go | 27 + ...abaWdkMarketingOpenVersionApplyResponse.go | 27 - ...aWdkMarketingOpenVersionCountAPIRequest.go | 66 + ...WdkMarketingOpenVersionCountAPIResponse.go | 27 + ...abaWdkMarketingOpenVersionCountResponse.go | 27 - .../wdk/AlibabaWdkMarketingPriceAPIRequest.go | 122 ++ .../AlibabaWdkMarketingPriceAPIResponse.go | 27 + model/wdk/AlibabaWdkMarketingPriceResponse.go | 27 - ...babaWdkMarketingVersionCommitAPIRequest.go | 52 + ...abaWdkMarketingVersionCommitAPIResponse.go | 27 + ...libabaWdkMarketingVersionCommitResponse.go | 27 - ...baWdkMarketingVersionGenerateAPIRequest.go | 52 + ...aWdkMarketingVersionGenerateAPIResponse.go | 27 + ...babaWdkMarketingVersionGenerateResponse.go | 27 - .../wdk/AlibabaWdkMemberCardGetAPIRequest.go | 52 + .../wdk/AlibabaWdkMemberCardGetAPIResponse.go | 27 + model/wdk/AlibabaWdkMemberCardGetResponse.go | 27 - ...libabaWdkMemberQrcodeIdentifyAPIRequest.go | 52 + ...ibabaWdkMemberQrcodeIdentifyAPIResponse.go | 27 + .../AlibabaWdkMemberQrcodeIdentifyResponse.go | 27 - .../AlibabaWdkMerchantBrandQueryAPIRequest.go | 80 + ...AlibabaWdkMerchantBrandQueryAPIResponse.go | 27 + .../AlibabaWdkMerchantBrandQueryResponse.go | 27 - ...ibabaWdkMerchantCategoryQueryAPIRequest.go | 66 + ...babaWdkMerchantCategoryQueryAPIResponse.go | 33 + ...AlibabaWdkMerchantCategoryQueryResponse.go | 33 - ...abaWdkMerchantItemCreatedraftAPIRequest.go | 52 + ...baWdkMerchantItemCreatedraftAPIResponse.go | 27 + ...ibabaWdkMerchantItemCreatedraftResponse.go | 27 - .../AlibabaWdkMerchantItemQueryAPIRequest.go | 66 + .../AlibabaWdkMerchantItemQueryAPIResponse.go | 27 + .../AlibabaWdkMerchantItemQueryResponse.go | 27 - .../AlibabaWdkMerchantItemUpdateAPIRequest.go | 80 + ...AlibabaWdkMerchantItemUpdateAPIResponse.go | 27 + .../AlibabaWdkMerchantItemUpdateResponse.go | 27 - ...abaWdkMerchantRoutingRegisterAPIRequest.go | 52 + ...baWdkMerchantRoutingRegisterAPIResponse.go | 27 + ...ibabaWdkMerchantRoutingRegisterResponse.go | 27 - ...abaWdkMerchantStoreitemCreateAPIRequest.go | 94 + ...baWdkMerchantStoreitemCreateAPIResponse.go | 31 + ...ibabaWdkMerchantStoreitemCreateResponse.go | 31 - ...babaWdkMerchantStoreitemQueryAPIRequest.go | 80 + ...abaWdkMerchantStoreitemQueryAPIResponse.go | 27 + ...libabaWdkMerchantStoreitemQueryResponse.go | 27 - ...abaWdkMerchantStoreitemUpdateAPIRequest.go | 94 + ...baWdkMerchantStoreitemUpdateAPIResponse.go | 27 + ...ibabaWdkMerchantStoreitemUpdateResponse.go | 27 - ...AlibabaWdkMerchantproductEditAPIRequest.go | 52 + ...libabaWdkMerchantproductEditAPIResponse.go | 27 + .../AlibabaWdkMerchantproductEditResponse.go | 27 - .../AlibabaWdkOldposOrderCreateAPIRequest.go | 52 + .../AlibabaWdkOldposOrderCreateAPIResponse.go | 27 + .../AlibabaWdkOldposOrderCreateResponse.go | 27 - .../AlibabaWdkOldposRefundCreateAPIRequest.go | 52 + ...AlibabaWdkOldposRefundCreateAPIResponse.go | 27 + .../AlibabaWdkOldposRefundCreateResponse.go | 27 - .../wdk/AlibabaWdkOrderAggregateAPIRequest.go | 52 + .../AlibabaWdkOrderAggregateAPIResponse.go | 27 + model/wdk/AlibabaWdkOrderAggregateResponse.go | 27 - ...ibabaWdkOrderFinanceBillQueryAPIRequest.go | 52 + ...babaWdkOrderFinanceBillQueryAPIResponse.go | 27 + ...AlibabaWdkOrderFinanceBillQueryResponse.go | 27 - model/wdk/AlibabaWdkOrderGetAPIRequest.go | 52 + model/wdk/AlibabaWdkOrderGetAPIResponse.go | 27 + model/wdk/AlibabaWdkOrderGetResponse.go | 27 - model/wdk/AlibabaWdkOrderListAPIRequest.go | 52 + model/wdk/AlibabaWdkOrderListAPIResponse.go | 27 + model/wdk/AlibabaWdkOrderListResponse.go | 27 - .../wdk/AlibabaWdkOrderRefundGetAPIRequest.go | 108 + .../AlibabaWdkOrderRefundGetAPIResponse.go | 27 + model/wdk/AlibabaWdkOrderRefundGetResponse.go | 27 - .../AlibabaWdkOrderRefundListAPIRequest.go | 52 + .../AlibabaWdkOrderRefundListAPIResponse.go | 27 + .../wdk/AlibabaWdkOrderRefundListResponse.go | 27 - model/wdk/AlibabaWdkOrderSyncAPIRequest.go | 52 + model/wdk/AlibabaWdkOrderSyncAPIResponse.go | 33 + model/wdk/AlibabaWdkOrderSyncResponse.go | 33 - .../AlibabaWdkOrderSyncWithitemAPIRequest.go | 52 + .../AlibabaWdkOrderSyncWithitemAPIResponse.go | 27 + .../AlibabaWdkOrderSyncWithitemResponse.go | 27 - ...babaWdkPosAfterbuyBenefitSendAPIRequest.go | 52 + ...abaWdkPosAfterbuyBenefitSendAPIResponse.go | 27 + ...libabaWdkPosAfterbuyBenefitSendResponse.go | 27 - .../wdk/AlibabaWdkPurchasePriceAPIRequest.go | 52 + .../wdk/AlibabaWdkPurchasePriceAPIResponse.go | 31 + model/wdk/AlibabaWdkPurchasePriceResponse.go | 31 - .../AlibabaWdkRefundAggregateAPIRequest.go | 52 + .../AlibabaWdkRefundAggregateAPIResponse.go | 27 + .../wdk/AlibabaWdkRefundAggregateResponse.go | 27 - .../AlibabaWdkReverseApplyrefundAPIRequest.go | 52 + ...AlibabaWdkReverseApplyrefundAPIResponse.go | 27 + .../AlibabaWdkReverseApplyrefundResponse.go | 27 - .../AlibabaWdkReverseCreatrefundAPIRequest.go | 52 + ...AlibabaWdkReverseCreatrefundAPIResponse.go | 27 + .../AlibabaWdkReverseCreatrefundResponse.go | 27 - .../wdk/AlibabaWdkReverseRefundAPIRequest.go | 52 + .../wdk/AlibabaWdkReverseRefundAPIResponse.go | 27 + model/wdk/AlibabaWdkReverseRefundResponse.go | 27 - ...libabaWdkReverseReversedetailAPIRequest.go | 52 + ...ibabaWdkReverseReversedetailAPIResponse.go | 27 + .../AlibabaWdkReverseReversedetailResponse.go | 27 - .../AlibabaWdkScmLrpOrderPredictAPIRequest.go | 52 + ...AlibabaWdkScmLrpOrderPredictAPIResponse.go | 27 + .../AlibabaWdkScmLrpOrderPredictResponse.go | 27 - model/wdk/AlibabaWdkSeriesCreateAPIRequest.go | 52 + .../wdk/AlibabaWdkSeriesCreateAPIResponse.go | 27 + model/wdk/AlibabaWdkSeriesCreateResponse.go | 27 - ...ibabaWdkSeriesDefaultskuResetAPIRequest.go | 52 + ...babaWdkSeriesDefaultskuResetAPIResponse.go | 27 + ...AlibabaWdkSeriesDefaultskuResetResponse.go | 27 - model/wdk/AlibabaWdkSeriesEditAPIRequest.go | 52 + model/wdk/AlibabaWdkSeriesEditAPIResponse.go | 27 + model/wdk/AlibabaWdkSeriesEditResponse.go | 27 - model/wdk/AlibabaWdkSeriesSkuAddAPIRequest.go | 52 + .../wdk/AlibabaWdkSeriesSkuAddAPIResponse.go | 27 + model/wdk/AlibabaWdkSeriesSkuAddResponse.go | 27 - .../AlibabaWdkSeriesSkuRemoveAPIRequest.go | 52 + .../AlibabaWdkSeriesSkuRemoveAPIResponse.go | 27 + .../wdk/AlibabaWdkSeriesSkuRemoveResponse.go | 27 - model/wdk/AlibabaWdkSeriesSortAPIRequest.go | 52 + model/wdk/AlibabaWdkSeriesSortAPIResponse.go | 27 + model/wdk/AlibabaWdkSeriesSortResponse.go | 27 - model/wdk/AlibabaWdkShopQueryAPIRequest.go | 52 + model/wdk/AlibabaWdkShopQueryAPIResponse.go | 27 + model/wdk/AlibabaWdkShopQueryResponse.go | 27 - model/wdk/AlibabaWdkSkuAddAPIRequest.go | 52 + model/wdk/AlibabaWdkSkuAddAPIResponse.go | 27 + model/wdk/AlibabaWdkSkuAddResponse.go | 27 - .../AlibabaWdkSkuBarcodeQueryAPIRequest.go | 52 + .../AlibabaWdkSkuBarcodeQueryAPIResponse.go | 27 + .../wdk/AlibabaWdkSkuBarcodeQueryResponse.go | 27 - .../wdk/AlibabaWdkSkuCategoryAddAPIRequest.go | 52 + .../AlibabaWdkSkuCategoryAddAPIResponse.go | 27 + model/wdk/AlibabaWdkSkuCategoryAddResponse.go | 27 - .../AlibabaWdkSkuCategoryDeleteAPIRequest.go | 52 + .../AlibabaWdkSkuCategoryDeleteAPIResponse.go | 27 + .../AlibabaWdkSkuCategoryDeleteResponse.go | 27 - .../AlibabaWdkSkuCategoryQueryAPIRequest.go | 52 + .../AlibabaWdkSkuCategoryQueryAPIResponse.go | 27 + .../wdk/AlibabaWdkSkuCategoryQueryResponse.go | 27 - .../AlibabaWdkSkuCategoryUpdateAPIRequest.go | 52 + .../AlibabaWdkSkuCategoryUpdateAPIResponse.go | 27 + .../AlibabaWdkSkuCategoryUpdateResponse.go | 27 - .../AlibabaWdkSkuChannelskuAddAPIRequest.go | 52 + .../AlibabaWdkSkuChannelskuAddAPIResponse.go | 27 + .../wdk/AlibabaWdkSkuChannelskuAddResponse.go | 27 - .../AlibabaWdkSkuChannelskuQueryAPIRequest.go | 52 + ...AlibabaWdkSkuChannelskuQueryAPIResponse.go | 27 + .../AlibabaWdkSkuChannelskuQueryResponse.go | 27 - ...AlibabaWdkSkuChannelskuUpdateAPIRequest.go | 52 + ...libabaWdkSkuChannelskuUpdateAPIResponse.go | 27 + .../AlibabaWdkSkuChannelskuUpdateResponse.go | 27 - .../AlibabaWdkSkuCombineskuAddAPIRequest.go | 52 + .../AlibabaWdkSkuCombineskuAddAPIResponse.go | 27 + .../wdk/AlibabaWdkSkuCombineskuAddResponse.go | 27 - .../AlibabaWdkSkuCombineskuQueryAPIRequest.go | 52 + ...AlibabaWdkSkuCombineskuQueryAPIResponse.go | 27 + .../AlibabaWdkSkuCombineskuQueryResponse.go | 27 - ...AlibabaWdkSkuCombineskuUpdateAPIRequest.go | 52 + ...libabaWdkSkuCombineskuUpdateAPIResponse.go | 27 + .../AlibabaWdkSkuCombineskuUpdateResponse.go | 27 - model/wdk/AlibabaWdkSkuFeatureAPIRequest.go | 52 + model/wdk/AlibabaWdkSkuFeatureAPIResponse.go | 27 + model/wdk/AlibabaWdkSkuFeatureResponse.go | 27 - ...aWdkSkuMerchantskuScrollQueryAPIRequest.go | 66 + ...WdkSkuMerchantskuScrollQueryAPIResponse.go | 27 + ...abaWdkSkuMerchantskuScrollQueryResponse.go | 27 - model/wdk/AlibabaWdkSkuQueryAPIRequest.go | 52 + model/wdk/AlibabaWdkSkuQueryAPIResponse.go | 27 + model/wdk/AlibabaWdkSkuQueryResponse.go | 27 - .../wdk/AlibabaWdkSkuScrollQueryAPIRequest.go | 94 + .../AlibabaWdkSkuScrollQueryAPIResponse.go | 27 + model/wdk/AlibabaWdkSkuScrollQueryResponse.go | 27 - ...babaWdkSkuStoreskuScrollQueryAPIRequest.go | 66 + ...abaWdkSkuStoreskuScrollQueryAPIResponse.go | 27 + ...libabaWdkSkuStoreskuScrollQueryResponse.go | 27 - model/wdk/AlibabaWdkSkuUpdateAPIRequest.go | 52 + model/wdk/AlibabaWdkSkuUpdateAPIResponse.go | 27 + model/wdk/AlibabaWdkSkuUpdateResponse.go | 27 - ...libabaWdkSkuWarehouseskuQueryAPIRequest.go | 66 + ...ibabaWdkSkuWarehouseskuQueryAPIResponse.go | 27 + .../AlibabaWdkSkuWarehouseskuQueryResponse.go | 27 - ...WdkSkuWarehouseskuScrollQueryAPIRequest.go | 66 + ...dkSkuWarehouseskuScrollQueryAPIResponse.go | 27 + ...baWdkSkuWarehouseskuScrollQueryResponse.go | 27 - .../AlibabaWdkSopoPushTriggerAPIRequest.go | 52 + .../AlibabaWdkSopoPushTriggerAPIResponse.go | 27 + .../wdk/AlibabaWdkSopoPushTriggerResponse.go | 27 - .../AlibabaWdkStockCabinetQueryAPIRequest.go | 52 + .../AlibabaWdkStockCabinetQueryAPIResponse.go | 27 + .../AlibabaWdkStockCabinetQueryResponse.go | 27 - .../AlibabaWdkStockCabinetQueryResultDo.go | 13 + model/wdk/AlibabaWdkStockPublishAPIRequest.go | 52 + .../wdk/AlibabaWdkStockPublishAPIResponse.go | 31 + model/wdk/AlibabaWdkStockPublishResponse.go | 31 - .../wdk/AlibabaWdkStockRealQueryAPIRequest.go | 52 + .../AlibabaWdkStockRealQueryAPIResponse.go | 27 + model/wdk/AlibabaWdkStockRealQueryResponse.go | 27 - model/wdk/AlibabaWdkStockRealQueryResultDo.go | 13 + .../AlibabaWdkSupplierOrderGetAPIRequest.go | 52 + .../AlibabaWdkSupplierOrderGetAPIResponse.go | 27 + .../wdk/AlibabaWdkSupplierOrderGetResponse.go | 27 - .../AlibabaWdkSupplierOrderListAPIRequest.go | 52 + .../AlibabaWdkSupplierOrderListAPIResponse.go | 27 + .../AlibabaWdkSupplierOrderListResponse.go | 27 - .../AlibabaWdkSupplierRefundGetAPIRequest.go | 52 + .../AlibabaWdkSupplierRefundGetAPIResponse.go | 27 + .../AlibabaWdkSupplierRefundGetResponse.go | 27 - .../AlibabaWdkSupplierRefundListAPIRequest.go | 52 + ...AlibabaWdkSupplierRefundListAPIResponse.go | 27 + .../AlibabaWdkSupplierRefundListResponse.go | 27 - .../AlibabaWdkSyncedorderQueryAPIRequest.go | 66 + .../AlibabaWdkSyncedorderQueryAPIResponse.go | 33 + .../wdk/AlibabaWdkSyncedorderQueryResponse.go | 33 - model/wdk/AlibabaWdkTimeGetAPIRequest.go | 38 + model/wdk/AlibabaWdkTimeGetAPIResponse.go | 29 + model/wdk/AlibabaWdkTimeGetResponse.go | 29 - model/wdk/AlibabaWdkTraceUrlGetAPIRequest.go | 80 + model/wdk/AlibabaWdkTraceUrlGetAPIResponse.go | 33 + model/wdk/AlibabaWdkTraceUrlGetResponse.go | 33 - ...WdkTradeOrderBalanceBillQueryAPIRequest.go | 52 + ...dkTradeOrderBalanceBillQueryAPIResponse.go | 27 + ...baWdkTradeOrderBalanceBillQueryResponse.go | 27 - model/wdk/AlibabaWdkUmsFeedbackAPIRequest.go | 52 + model/wdk/AlibabaWdkUmsFeedbackAPIResponse.go | 27 + model/wdk/AlibabaWdkUmsFeedbackResponse.go | 27 - .../wdk/AlibabaWdkUmsHandlingGetAPIRequest.go | 52 + .../AlibabaWdkUmsHandlingGetAPIResponse.go | 27 + model/wdk/AlibabaWdkUmsHandlingGetResponse.go | 27 - model/wdk/AlibabaWdkUmsInboundAPIRequest.go | 52 + model/wdk/AlibabaWdkUmsInboundAPIResponse.go | 27 + model/wdk/AlibabaWdkUmsInboundResponse.go | 27 - ...ibabaWdkUmsInventoryAdjustGetAPIRequest.go | 52 + ...babaWdkUmsInventoryAdjustGetAPIResponse.go | 27 + ...AlibabaWdkUmsInventoryAdjustGetResponse.go | 27 - ...libabaWdkUmsInventoryCheckGetAPIRequest.go | 52 + ...ibabaWdkUmsInventoryCheckGetAPIResponse.go | 27 + .../AlibabaWdkUmsInventoryCheckGetResponse.go | 27 - ...AlibabaWdkUmsInventoryPublishAPIRequest.go | 52 + ...libabaWdkUmsInventoryPublishAPIResponse.go | 27 + .../AlibabaWdkUmsInventoryPublishResponse.go | 27 - model/wdk/AlibabaWdkUmsOrderGetAPIRequest.go | 52 + model/wdk/AlibabaWdkUmsOrderGetAPIResponse.go | 27 + model/wdk/AlibabaWdkUmsOrderGetResponse.go | 27 - model/wdk/AlibabaWdkUmsOutboundAPIRequest.go | 52 + model/wdk/AlibabaWdkUmsOutboundAPIResponse.go | 27 + ...ibabaWdkUmsOutboundProcessGetAPIRequest.go | 52 + ...babaWdkUmsOutboundProcessGetAPIResponse.go | 27 + ...AlibabaWdkUmsOutboundProcessGetResponse.go | 27 - model/wdk/AlibabaWdkUmsOutboundResponse.go | 27 - ...abaWdkUmsRetrieveBatchConfirmAPIRequest.go | 66 + ...baWdkUmsRetrieveBatchConfirmAPIResponse.go | 27 + ...ibabaWdkUmsRetrieveBatchConfirmResponse.go | 27 - .../AlibabaWdkUmsRetrieveConfirmAPIRequest.go | 66 + ...AlibabaWdkUmsRetrieveConfirmAPIResponse.go | 27 + .../AlibabaWdkUmsRetrieveConfirmResponse.go | 27 - .../AlibabaWdkUmsReturnitemsGetAPIRequest.go | 52 + .../AlibabaWdkUmsReturnitemsGetAPIResponse.go | 27 + .../AlibabaWdkUmsReturnitemsGetResponse.go | 27 - model/wdk/AlibabaWdkUmsShiftGetAPIRequest.go | 52 + model/wdk/AlibabaWdkUmsShiftGetAPIResponse.go | 27 + model/wdk/AlibabaWdkUmsShiftGetResponse.go | 27 - ...dkWholesaleInboundorderCommitAPIRequest.go | 52 + ...kWholesaleInboundorderCommitAPIResponse.go | 27 + ...aWdkWholesaleInboundorderCommitResponse.go | 27 - ...libabaWdkWholesaleOrderCommitAPIRequest.go | 52 + ...ibabaWdkWholesaleOrderCommitAPIResponse.go | 27 + .../AlibabaWdkWholesaleOrderCommitResponse.go | 27 - ...kWholesaleOutboundorderCommitAPIRequest.go | 52 + ...WholesaleOutboundorderCommitAPIResponse.go | 27 + ...WdkWholesaleOutboundorderCommitResponse.go | 27 - .../AlibabaWdkopenCateorderPullAPIRequest.go | 94 + .../AlibabaWdkopenCateorderPullAPIResponse.go | 27 + .../AlibabaWdkopenCateorderPullResponse.go | 27 - model/wdk/AlibabaWdkopenOrderGetAPIRequest.go | 80 + .../wdk/AlibabaWdkopenOrderGetAPIResponse.go | 27 + model/wdk/AlibabaWdkopenOrderGetResponse.go | 27 - ...aWdkorderSharestockFulfillGetAPIRequest.go | 52 + ...WdkorderSharestockFulfillGetAPIResponse.go | 27 + ...abaWdkorderSharestockFulfillGetResponse.go | 27 - ...erSharestockInsuranceCallbackAPIRequest.go | 66 + ...rSharestockInsuranceCallbackAPIResponse.go | 27 + ...rderSharestockInsuranceCallbackResponse.go | 27 - ...erSharestockInsuranceGetorderAPIRequest.go | 52 + ...rSharestockInsuranceGetorderAPIResponse.go | 27 + ...rderSharestockInsuranceGetorderResponse.go | 27 - ...estockInsuranceRefundcallbackAPIRequest.go | 80 + ...stockInsuranceRefundcallbackAPIResponse.go | 27 + ...arestockInsuranceRefundcallbackResponse.go | 27 - ...rSharestockInsuranceRefundgetAPIRequest.go | 66 + ...SharestockInsuranceRefundgetAPIResponse.go | 27 + ...derSharestockInsuranceRefundgetResponse.go | 27 - ...abaWdkorderSharestockOrderGetAPIRequest.go | 52 + ...baWdkorderSharestockOrderGetAPIResponse.go | 27 + ...ibabaWdkorderSharestockOrderGetResponse.go | 27 - ...EquipmentConveyorBatchconfirmAPIRequest.go | 66 + ...quipmentConveyorBatchconfirmAPIResponse.go | 27 + ...dkEquipmentConveyorBatchconfirmResponse.go | 27 - ...pmentConveyorContainerinfoGetAPIRequest.go | 94 + ...mentConveyorContainerinfoGetAPIResponse.go | 27 + ...uipmentConveyorContainerinfoGetResponse.go | 27 - ...ipmentConveyorConveyorinfoGetAPIRequest.go | 66 + ...pmentConveyorConveyorinfoGetAPIResponse.go | 27 + ...quipmentConveyorConveyorinfoGetResponse.go | 27 - ...nveyorExceptionslidewaylogGetAPIRequest.go | 80 + ...veyorExceptionslidewaylogGetAPIResponse.go | 27 + ...ConveyorExceptionslidewaylogGetResponse.go | 27 - ...tConveyorHardwarestatuslogGetAPIRequest.go | 80 + ...ConveyorHardwarestatuslogGetAPIResponse.go | 27 + ...entConveyorHardwarestatuslogGetResponse.go | 27 - ...dkEquipmentConveyorInfoUploadAPIRequest.go | 52 + ...kEquipmentConveyorInfoUploadAPIResponse.go | 33 + ...oWdkEquipmentConveyorInfoUploadResponse.go | 33 - ...quipmentConveyorStatusconfirmAPIRequest.go | 66 + ...uipmentConveyorStatusconfirmAPIResponse.go | 27 + ...kEquipmentConveyorStatusconfirmResponse.go | 27 - ...uipmentConveyorSystemeventGetAPIRequest.go | 80 + ...ipmentConveyorSystemeventGetAPIResponse.go | 27 + ...EquipmentConveyorSystemeventGetResponse.go | 27 - ...ocContainerassignedtoconveyorAPIRequest.go | 66 + ...cContainerassignedtoconveyorAPIResponse.go | 27 + ...btocContainerassignedtoconveyorResponse.go | 27 - ...tocContainerscannedbyconveyorAPIRequest.go | 66 + ...ocContainerscannedbyconveyorAPIResponse.go | 33 + ...sbtocContainerscannedbyconveyorResponse.go | 33 - ...pmentDeviceadminDeviceinfoGetAPIRequest.go | 66 + ...mentDeviceadminDeviceinfoGetAPIResponse.go | 27 + ...uipmentDeviceadminDeviceinfoGetResponse.go | 27 - ...oWdkEquipmentWcsWcsinfoUploadAPIRequest.go | 52 + ...WdkEquipmentWcsWcsinfoUploadAPIResponse.go | 33 + ...baoWdkEquipmentWcsWcsinfoUploadResponse.go | 33 - ...kIotConveyorConveyorconfigGetAPIRequest.go | 66 + ...IotConveyorConveyorconfigGetAPIResponse.go | 27 + ...WdkIotConveyorConveyorconfigGetResponse.go | 27 - ...ceadminMqttDeviceGetwithtokenAPIRequest.go | 108 + ...eadminMqttDeviceGetwithtokenAPIResponse.go | 27 + ...viceadminMqttDeviceGetwithtokenResponse.go | 27 - ...WdkIotDeviceadminMqttTokenGetAPIRequest.go | 66 + ...dkIotDeviceadminMqttTokenGetAPIResponse.go | 27 + ...aoWdkIotDeviceadminMqttTokenGetResponse.go | 27 - ...malCenterAbnormalStatusChangeAPIRequest.go | 52 + ...alCenterAbnormalStatusChangeAPIResponse.go | 27 + ...ormalCenterAbnormalStatusChangeResponse.go | 27 - .../WdkMealPosGetfetchmealcodeAPIRequest.go | 52 + .../WdkMealPosGetfetchmealcodeAPIResponse.go | 27 + .../wdk/WdkMealPosGetfetchmealcodeResponse.go | 27 - .../WdkWmsPickMedicineChecksellAPIRequest.go | 66 + .../WdkWmsPickMedicineChecksellAPIResponse.go | 27 + .../WdkWmsPickMedicineChecksellResponse.go | 27 - .../wdk/WdkWmsPickMedicineQueryAPIRequest.go | 66 + .../wdk/WdkWmsPickMedicineQueryAPIResponse.go | 27 + model/wdk/WdkWmsPickMedicineQueryResponse.go | 27 - .../AlibabaWdkItemBrandQueryAPIRequest.go | 80 + .../AlibabaWdkItemBrandQueryAPIResponse.go | 27 + .../AlibabaWdkItemBrandQueryResponse.go | 27 - .../AlibabaWdkItemCategoryQueryAPIRequest.go | 66 + .../AlibabaWdkItemCategoryQueryAPIResponse.go | 27 + .../AlibabaWdkItemCategoryQueryResponse.go | 27 - ...libabaWdkItemFuturepriceQueryAPIRequest.go | 108 + ...ibabaWdkItemFuturepriceQueryAPIResponse.go | 27 + .../AlibabaWdkItemFuturepriceQueryResponse.go | 27 - ...ibabaWdkItemMemberpriceUpdateAPIRequest.go | 122 ++ ...babaWdkItemMemberpriceUpdateAPIResponse.go | 27 + ...AlibabaWdkItemMemberpriceUpdateResponse.go | 27 - ...ibabaWdkItemMerchantskuCreateAPIRequest.go | 52 + ...babaWdkItemMerchantskuCreateAPIResponse.go | 27 + ...AlibabaWdkItemMerchantskuCreateResponse.go | 27 - ...libabaWdkItemMerchantskuQueryAPIRequest.go | 66 + ...ibabaWdkItemMerchantskuQueryAPIResponse.go | 27 + .../AlibabaWdkItemMerchantskuQueryResponse.go | 27 - ...ibabaWdkItemMerchantskuUpdateAPIRequest.go | 80 + ...babaWdkItemMerchantskuUpdateAPIResponse.go | 27 + ...AlibabaWdkItemMerchantskuUpdateResponse.go | 27 - ...WdkItemMerchantstoreskuCreateAPIRequest.go | 94 + ...dkItemMerchantstoreskuCreateAPIResponse.go | 27 + ...baWdkItemMerchantstoreskuCreateResponse.go | 27 - ...WdkItemMerchantstoreskuUpdateAPIRequest.go | 80 + ...dkItemMerchantstoreskuUpdateAPIResponse.go | 27 + ...baWdkItemMerchantstoreskuUpdateResponse.go | 27 - .../AlibabaWdkItemMorebarcodeOpsAPIRequest.go | 52 + ...AlibabaWdkItemMorebarcodeOpsAPIResponse.go | 27 + .../AlibabaWdkItemMorebarcodeOpsResponse.go | 27 - .../AlibabaWdkItemStoreskuQueryAPIRequest.go | 66 + .../AlibabaWdkItemStoreskuQueryAPIResponse.go | 27 + .../AlibabaWdkItemStoreskuQueryResponse.go | 27 - ...baWdkItemStoreskustatusUpdateAPIRequest.go | 52 + ...aWdkItemStoreskustatusUpdateAPIResponse.go | 27 + ...babaWdkItemStoreskustatusUpdateResponse.go | 27 - .../AlibabaWdkPictureUploadAPIRequest.go | 94 + .../AlibabaWdkPictureUploadAPIResponse.go | 27 + .../AlibabaWdkPictureUploadResponse.go | 27 - ...kLogisticsPusPickupCararrivedAPIRequest.go | 66 + ...LogisticsPusPickupCararrivedAPIResponse.go | 27 + ...WdkLogisticsPusPickupCararrivedResponse.go | 27 - .../YoukuWenyuvideoPersionGetAPIRequest.go | 66 + .../YoukuWenyuvideoPersionGetAPIResponse.go | 27 + .../YoukuWenyuvideoPersionGetResponse.go | 27 - .../YoukuWenyuvideoPersionSearchAPIRequest.go | 52 + ...YoukuWenyuvideoPersionSearchAPIResponse.go | 27 + .../YoukuWenyuvideoPersionSearchResponse.go | 27 - .../YoukuWenyuvideoSeetaGetAPIRequest.go | 52 + .../YoukuWenyuvideoSeetaGetAPIResponse.go | 27 + .../YoukuWenyuvideoSeetaGetResponse.go | 27 - .../AlibabaIbizapiBrandSubscribeAPIRequest.go | 38 + ...AlibabaIbizapiBrandSubscribeAPIResponse.go | 27 + .../AlibabaIbizapiBrandSubscribeResponse.go | 27 - .../AlibabaWestcrmAccountIdGetAPIRequest.go | 52 + .../AlibabaWestcrmAccountIdGetAPIResponse.go | 27 + .../AlibabaWestcrmAccountIdGetResponse.go | 27 - ...AlibabaWestcrmActivityInfoGetAPIRequest.go | 66 + ...libabaWestcrmActivityInfoGetAPIResponse.go | 27 + .../AlibabaWestcrmActivityInfoGetResponse.go | 27 - ...AlibabaWestcrmActivityListGetAPIRequest.go | 136 ++ ...libabaWestcrmActivityListGetAPIResponse.go | 27 + .../AlibabaWestcrmActivityListGetResponse.go | 27 - ...AlibabaWestcrmCustomerInfoGetAPIRequest.go | 80 + ...libabaWestcrmCustomerInfoGetAPIResponse.go | 27 + .../AlibabaWestcrmCustomerInfoGetResponse.go | 27 - .../AlibabaWestcrmGradeGetAPIRequest.go | 52 + .../AlibabaWestcrmGradeGetAPIResponse.go | 27 + .../westcrm/AlibabaWestcrmGradeGetResponse.go | 27 - .../AlibabaWestcrmIsMemberGetAPIRequest.go | 38 + .../AlibabaWestcrmIsMemberGetAPIResponse.go | 27 + .../AlibabaWestcrmIsMemberGetResponse.go | 27 - ...AlibabaWestcrmJobStatusUpdateAPIRequest.go | 94 + ...libabaWestcrmJobStatusUpdateAPIResponse.go | 27 + .../AlibabaWestcrmJobStatusUpdateResponse.go | 27 - .../AlibabaWestcrmMallListGetAPIRequest.go | 52 + .../AlibabaWestcrmMallListGetAPIResponse.go | 27 + .../AlibabaWestcrmMallListGetResponse.go | 27 - ...abaWestcrmMemberMessageHandleAPIRequest.go | 66 + ...baWestcrmMemberMessageHandleAPIResponse.go | 27 + ...ibabaWestcrmMemberMessageHandleResponse.go | 27 - .../AlibabaWestcrmMemberScoreGetAPIRequest.go | 94 + ...AlibabaWestcrmMemberScoreGetAPIResponse.go | 27 + .../AlibabaWestcrmMemberScoreGetResponse.go | 27 - .../AlibabaWestcrmShopListGetAPIRequest.go | 52 + .../AlibabaWestcrmShopListGetAPIResponse.go | 27 + .../AlibabaWestcrmShopListGetResponse.go | 27 - ...ibabaWestcrmUpdateAlipayCarnoAPIRequest.go | 94 + ...babaWestcrmUpdateAlipayCarnoAPIResponse.go | 27 + ...AlibabaWestcrmUpdateAlipayCarnoResponse.go | 27 - ...baWestcrmUserBenefitAuthorityAPIRequest.go | 66 + ...aWestcrmUserBenefitAuthorityAPIResponse.go | 27 + ...babaWestcrmUserBenefitAuthorityResponse.go | 27 - ...AlibabaWestcrmUserConsumerGetAPIRequest.go | 94 + ...libabaWestcrmUserConsumerGetAPIResponse.go | 27 + .../AlibabaWestcrmUserConsumerGetResponse.go | 27 - ...WestcrmUserStatisticAuthorityAPIRequest.go | 66 + ...estcrmUserStatisticAuthorityAPIResponse.go | 27 + ...baWestcrmUserStatisticAuthorityResponse.go | 27 - .../TaobaoWirelessShareTpwdQueryAPIRequest.go | 52 + ...TaobaoWirelessShareTpwdQueryAPIResponse.go | 41 + .../TaobaoWirelessShareTpwdQueryResponse.go | 41 - ...CainiaoBmsOrderConsignConfirmAPIRequest.go | 52 + ...ainiaoBmsOrderConsignConfirmAPIResponse.go | 27 + .../CainiaoBmsOrderConsignConfirmResponse.go | 27 - ...ainiaoMerchantInventoryAdjustAPIRequest.go | 80 + ...iniaoMerchantInventoryAdjustAPIResponse.go | 27 + .../CainiaoMerchantInventoryAdjustResponse.go | 27 - model/wlb/ResultDo.go | 11 + .../wlb/TaobaoUopTobOrderCreateAPIRequest.go | 52 + .../wlb/TaobaoUopTobOrderCreateAPIResponse.go | 31 + model/wlb/TaobaoUopTobOrderCreateResponse.go | 31 - .../TaobaoWlbInventoryDetailGetAPIRequest.go | 80 + .../TaobaoWlbInventoryDetailGetAPIResponse.go | 29 + .../TaobaoWlbInventoryDetailGetResponse.go | 29 - .../TaobaoWlbInventorylogQueryAPIRequest.go | 164 ++ .../TaobaoWlbInventorylogQueryAPIResponse.go | 29 + .../wlb/TaobaoWlbInventorylogQueryResponse.go | 29 - model/wlb/TaobaoWlbItemAddAPIRequest.go | 332 ++++ model/wlb/TaobaoWlbItemAddAPIResponse.go | 27 + model/wlb/TaobaoWlbItemAddResponse.go | 27 - .../wlb/TaobaoWlbItemBatchQueryAPIRequest.go | 94 + .../wlb/TaobaoWlbItemBatchQueryAPIResponse.go | 29 + model/wlb/TaobaoWlbItemBatchQueryResponse.go | 29 - .../TaobaoWlbItemCombinationGetAPIRequest.go | 52 + .../TaobaoWlbItemCombinationGetAPIResponse.go | 27 + .../TaobaoWlbItemCombinationGetResponse.go | 27 - model/wlb/TaobaoWlbItemGetAPIRequest.go | 52 + model/wlb/TaobaoWlbItemGetAPIResponse.go | 27 + model/wlb/TaobaoWlbItemGetResponse.go | 27 - model/wlb/TaobaoWlbItemMapGetAPIRequest.go | 52 + model/wlb/TaobaoWlbItemMapGetAPIResponse.go | 29 + model/wlb/TaobaoWlbItemMapGetResponse.go | 29 - model/wlb/TaobaoWlbItemQueryAPIRequest.go | 164 ++ model/wlb/TaobaoWlbItemQueryAPIResponse.go | 29 + model/wlb/TaobaoWlbItemQueryResponse.go | 29 - model/wlb/TaobaoWlbItemUpdateAPIRequest.go | 290 +++ model/wlb/TaobaoWlbItemUpdateAPIResponse.go | 27 + model/wlb/TaobaoWlbItemUpdateResponse.go | 27 - ...TaobaoWlbNotifyMessagePageGetAPIRequest.go | 122 ++ ...aobaoWlbNotifyMessagePageGetAPIResponse.go | 29 + .../TaobaoWlbNotifyMessagePageGetResponse.go | 29 - model/wlb/TaobaoWlbOrderCancelAPIRequest.go | 52 + model/wlb/TaobaoWlbOrderCancelAPIResponse.go | 29 + model/wlb/TaobaoWlbOrderCancelResponse.go | 29 - model/wlb/TaobaoWlbOrderConsignAPIRequest.go | 52 + model/wlb/TaobaoWlbOrderConsignAPIResponse.go | 27 + model/wlb/TaobaoWlbOrderConsignResponse.go | 27 - model/wlb/TaobaoWlbOrderCreateAPIRequest.go | 430 ++++ model/wlb/TaobaoWlbOrderCreateAPIResponse.go | 29 + model/wlb/TaobaoWlbOrderCreateResponse.go | 29 - .../TaobaoWlbOrderJzpartnerQueryAPIRequest.go | 66 + ...TaobaoWlbOrderJzpartnerQueryAPIResponse.go | 33 + .../TaobaoWlbOrderJzpartnerQueryResponse.go | 33 - ...aobaoWlbOrderJzwithinsConsignAPIRequest.go | 94 + ...obaoWlbOrderJzwithinsConsignAPIResponse.go | 29 + .../TaobaoWlbOrderJzwithinsConsignResponse.go | 29 - model/wlb/TaobaoWlbOrderPageGetAPIRequest.go | 150 ++ model/wlb/TaobaoWlbOrderPageGetAPIResponse.go | 29 + model/wlb/TaobaoWlbOrderPageGetResponse.go | 29 - .../TaobaoWlbOrderdetailDateGetAPIRequest.go | 94 + .../TaobaoWlbOrderdetailDateGetAPIResponse.go | 29 + .../TaobaoWlbOrderdetailDateGetResponse.go | 29 - .../wlb/TaobaoWlbOrderstatusGetAPIRequest.go | 52 + .../wlb/TaobaoWlbOrderstatusGetAPIResponse.go | 27 + model/wlb/TaobaoWlbOrderstatusGetResponse.go | 27 - ...aoWlbOutInventoryChangeNotifyAPIRequest.go | 164 ++ ...oWlbOutInventoryChangeNotifyAPIResponse.go | 27 + ...obaoWlbOutInventoryChangeNotifyResponse.go | 27 - .../TaobaoWlbSubscriptionQueryAPIRequest.go | 80 + .../TaobaoWlbSubscriptionQueryAPIResponse.go | 29 + .../wlb/TaobaoWlbSubscriptionQueryResponse.go | 29 - model/wlb/TaobaoWlbTmsorderQueryAPIRequest.go | 80 + .../wlb/TaobaoWlbTmsorderQueryAPIResponse.go | 29 + model/wlb/TaobaoWlbTmsorderQueryResponse.go | 29 - model/wlb/TaobaoWlbTradeorderGetAPIRequest.go | 80 + .../wlb/TaobaoWlbTradeorderGetAPIResponse.go | 27 + model/wlb/TaobaoWlbTradeorderGetResponse.go | 27 - .../TaobaoWlbWaybillShengxianGetAPIRequest.go | 136 ++ ...TaobaoWlbWaybillShengxianGetAPIResponse.go | 29 + .../TaobaoWlbWaybillShengxianGetResponse.go | 29 - model/wlb/TaobaoWlbWlborderGetAPIRequest.go | 52 + model/wlb/TaobaoWlbWlborderGetAPIResponse.go | 27 + model/wlb/TaobaoWlbWlborderGetResponse.go | 27 - ...obaoWlbWmsInventoryLackUploadAPIRequest.go | 52 + ...baoWlbWmsInventoryLackUploadAPIResponse.go | 27 + ...TaobaoWlbWmsInventoryLackUploadResponse.go | 27 - ...aobaoWlbCrossborderWaybillGetAPIRequest.go | 53 + ...obaoWlbCrossborderWaybillGetAPIResponse.go | 28 + .../TaobaoWlbCrossborderWaybillGetResponse.go | 28 - ...aobaoWlbImportsGeneralConsignAPIRequest.go | 153 ++ ...obaoWlbImportsGeneralConsignAPIResponse.go | 36 + .../TaobaoWlbImportsGeneralConsignResponse.go | 36 - .../TaobaoWlbImportsOrderCancelAPIRequest.go | 52 + .../TaobaoWlbImportsOrderCancelAPIResponse.go | 31 + .../TaobaoWlbImportsOrderCancelResponse.go | 31 - .../TaobaoWlbImportsOrderGetAPIRequest.go | 122 ++ .../TaobaoWlbImportsOrderGetAPIResponse.go | 29 + .../TaobaoWlbImportsOrderGetResponse.go | 29 - .../TaobaoWlbImportsResourceGetAPIRequest.go | 66 + .../TaobaoWlbImportsResourceGetAPIResponse.go | 27 + .../TaobaoWlbImportsResourceGetResponse.go | 27 - ...portsResourceTransferstoreGetAPIRequest.go | 94 + ...ortsResourceTransferstoreGetAPIResponse.go | 27 + ...ImportsResourceTransferstoreGetResponse.go | 27 - ...aoWlbImportsVasIdentityResultAPIRequest.go | 52 + ...oWlbImportsVasIdentityResultAPIResponse.go | 27 + ...obaoWlbImportsVasIdentityResultResponse.go | 27 - .../TaobaoWlbImportsWaybillGetAPIRequest.go | 52 + .../TaobaoWlbImportsWaybillGetAPIResponse.go | 27 + .../TaobaoWlbImportsWaybillGetResponse.go | 27 - .../CainiaoBimTradeorderConsignAPIRequest.go | 80 + .../CainiaoBimTradeorderConsignAPIResponse.go | 29 + .../CainiaoBimTradeorderConsignResponse.go | 29 - model/wms/CainiaoCrmOmsRuleSyncAPIRequest.go | 136 ++ model/wms/CainiaoCrmOmsRuleSyncAPIResponse.go | 31 + model/wms/CainiaoCrmOmsRuleSyncResponse.go | 31 - .../TaobaoWlbWmsCainiaoBillQueryAPIRequest.go | 108 + ...TaobaoWlbWmsCainiaoBillQueryAPIResponse.go | 29 + .../TaobaoWlbWmsCainiaoBillQueryResponse.go | 29 - .../TaobaoWlbWmsConsignBillGetAPIRequest.go | 66 + .../TaobaoWlbWmsConsignBillGetAPIResponse.go | 27 + .../wms/TaobaoWlbWmsConsignBillGetResponse.go | 27 - ...aobaoWlbWmsConsignOrderNotifyAPIRequest.go | 388 ++++ ...obaoWlbWmsConsignOrderNotifyAPIResponse.go | 35 + .../TaobaoWlbWmsConsignOrderNotifyResponse.go | 35 - ...oWlbWmsInventoryProfitlossGetAPIRequest.go | 52 + ...WlbWmsInventoryProfitlossGetAPIResponse.go | 27 + ...baoWlbWmsInventoryProfitlossGetResponse.go | 27 - .../TaobaoWlbWmsInventoryQueryAPIRequest.go | 178 ++ .../TaobaoWlbWmsInventoryQueryAPIResponse.go | 35 + .../wms/TaobaoWlbWmsInventoryQueryResponse.go | 35 - ...aobaoWlbWmsItemCombinationGetAPIRequest.go | 52 + ...obaoWlbWmsItemCombinationGetAPIResponse.go | 27 + .../TaobaoWlbWmsItemCombinationGetResponse.go | 27 - ...TaobaoWlbWmsOrderCancelNotifyAPIRequest.go | 80 + ...aobaoWlbWmsOrderCancelNotifyAPIResponse.go | 31 + .../TaobaoWlbWmsOrderCancelNotifyResponse.go | 31 - .../TaobaoWlbWmsReturnBillGetAPIRequest.go | 66 + .../TaobaoWlbWmsReturnBillGetAPIResponse.go | 27 + .../wms/TaobaoWlbWmsReturnBillGetResponse.go | 27 - ...TaobaoWlbWmsReturnOrderNotifyAPIRequest.go | 290 +++ ...aobaoWlbWmsReturnOrderNotifyAPIResponse.go | 35 + .../TaobaoWlbWmsReturnOrderNotifyResponse.go | 35 - model/wms/TaobaoWlbWmsSkuCreateAPIRequest.go | 570 ++++++ model/wms/TaobaoWlbWmsSkuCreateAPIResponse.go | 33 + model/wms/TaobaoWlbWmsSkuCreateResponse.go | 33 - model/wms/TaobaoWlbWmsSkuGetAPIRequest.go | 80 + model/wms/TaobaoWlbWmsSkuGetAPIResponse.go | 105 + model/wms/TaobaoWlbWmsSkuGetResponse.go | 105 - model/wms/TaobaoWlbWmsSkuUpdateAPIRequest.go | 570 ++++++ model/wms/TaobaoWlbWmsSkuUpdateAPIResponse.go | 31 + model/wms/TaobaoWlbWmsSkuUpdateResponse.go | 31 - .../wms/TaobaoWlbWmsSnInfoQueryAPIRequest.go | 80 + .../wms/TaobaoWlbWmsSnInfoQueryAPIResponse.go | 27 + model/wms/TaobaoWlbWmsSnInfoQueryResponse.go | 27 - .../TaobaoWlbWmsStockInBillGetAPIRequest.go | 66 + .../TaobaoWlbWmsStockInBillGetAPIResponse.go | 27 + .../wms/TaobaoWlbWmsStockInBillGetResponse.go | 27 - ...aobaoWlbWmsStockInOrderNotifyAPIRequest.go | 318 +++ ...obaoWlbWmsStockInOrderNotifyAPIResponse.go | 33 + .../TaobaoWlbWmsStockInOrderNotifyResponse.go | 33 - .../TaobaoWlbWmsStockOutBillGetAPIRequest.go | 66 + .../TaobaoWlbWmsStockOutBillGetAPIResponse.go | 27 + .../TaobaoWlbWmsStockOutBillGetResponse.go | 27 - ...obaoWlbWmsStockOutOrderNotifyAPIRequest.go | 290 +++ ...baoWlbWmsStockOutOrderNotifyAPIResponse.go | 33 + ...TaobaoWlbWmsStockOutOrderNotifyResponse.go | 33 - ...telChannelOrderCreateResQueryAPIRequest.go | 52 + ...elChannelOrderCreateResQueryAPIResponse.go | 27 + ...hotelChannelOrderCreateResQueryResponse.go | 27 - ...lDataServiceHotelServiceindexAPIRequest.go | 136 ++ ...DataServiceHotelServiceindexAPIResponse.go | 27 + ...telDataServiceHotelServiceindexResponse.go | 27 - ...oXhotelDataServiceOrderDetailAPIRequest.go | 206 ++ ...XhotelDataServiceOrderDetailAPIResponse.go | 27 + ...baoXhotelDataServiceOrderDetailResponse.go | 27 - ...DataServiceSellerServiceindexAPIRequest.go | 108 + ...ataServiceSellerServiceindexAPIResponse.go | 27 + ...elDataServiceSellerServiceindexResponse.go | 27 - ...obaoXhotelOrderHotelsignQueryAPIRequest.go | 108 + ...baoXhotelOrderHotelsignQueryAPIResponse.go | 31 + ...TaobaoXhotelOrderHotelsignQueryResponse.go | 31 - ...OrderOfficialQualificationGetAPIRequest.go | 304 +++ ...rderOfficialQualificationGetAPIResponse.go | 39 + ...elOrderOfficialQualificationGetResponse.go | 39 - ...hotelOrderOfflineSettleCancelAPIRequest.go | 108 + ...otelOrderOfflineSettleCancelAPIResponse.go | 27 + ...oXhotelOrderOfflineSettleCancelResponse.go | 27 - ...obaoXhotelPotentialMemberBindAPIRequest.go | 220 ++ ...baoXhotelPotentialMemberBindAPIResponse.go | 27 + ...TaobaoXhotelPotentialMemberBindResponse.go | 27 - model/xhotelitem/TaobaoXhotelAddAPIRequest.go | 654 ++++++ .../xhotelitem/TaobaoXhotelAddAPIResponse.go | 27 + model/xhotelitem/TaobaoXhotelAddResponse.go | 27 - .../TaobaoXhotelBaseinfoGetAPIRequest.go | 150 ++ .../TaobaoXhotelBaseinfoGetAPIResponse.go | 27 + .../TaobaoXhotelBaseinfoGetResponse.go | 27 - .../TaobaoXhotelBaseinfoRoomGetAPIRequest.go | 80 + .../TaobaoXhotelBaseinfoRoomGetAPIResponse.go | 27 + .../TaobaoXhotelBaseinfoRoomGetResponse.go | 27 - .../TaobaoXhotelBnbhouseAddAPIRequest.go | 542 +++++ .../TaobaoXhotelBnbhouseAddAPIResponse.go | 27 + .../TaobaoXhotelBnbhouseAddResponse.go | 27 - .../TaobaoXhotelBnbownerAddAPIRequest.go | 52 + .../TaobaoXhotelBnbownerAddAPIResponse.go | 27 + .../TaobaoXhotelBnbownerAddResponse.go | 27 - .../TaobaoXhotelBnbroomtypeAddAPIRequest.go | 836 ++++++++ .../TaobaoXhotelBnbroomtypeAddAPIResponse.go | 27 + .../TaobaoXhotelBnbroomtypeAddResponse.go | 27 - ...lCityCoordinatesBatchDownloadAPIRequest.go | 52 + ...CityCoordinatesBatchDownloadAPIResponse.go | 27 + ...telCityCoordinatesBatchDownloadResponse.go | 27 - ...telCityCoordinatesBatchUploadAPIRequest.go | 53 + ...elCityCoordinatesBatchUploadAPIResponse.go | 28 + ...hotelCityCoordinatesBatchUploadResponse.go | 28 - .../TaobaoXhotelDeleteAPIRequest.go | 80 + .../TaobaoXhotelDeleteAPIResponse.go | 27 + .../xhotelitem/TaobaoXhotelDeleteResponse.go | 27 - .../TaobaoXhotelEntityConfigAPIRequest.go | 108 + .../TaobaoXhotelEntityConfigAPIResponse.go | 27 + .../TaobaoXhotelEntityConfigResponse.go | 27 - model/xhotelitem/TaobaoXhotelGetAPIRequest.go | 94 + .../xhotelitem/TaobaoXhotelGetAPIResponse.go | 27 + .../TaobaoXhotelGetEntityByTagAPIRequest.go | 66 + .../TaobaoXhotelGetEntityByTagAPIResponse.go | 27 + .../TaobaoXhotelGetEntityByTagResponse.go | 27 - model/xhotelitem/TaobaoXhotelGetResponse.go | 27 - .../TaobaoXhotelHouseAddAPIRequest.go | 598 ++++++ .../TaobaoXhotelHouseAddAPIResponse.go | 27 + .../TaobaoXhotelHouseAddResponse.go | 27 - .../TaobaoXhotelHouseRoomtypeAddAPIRequest.go | 374 ++++ ...TaobaoXhotelHouseRoomtypeAddAPIResponse.go | 27 + .../TaobaoXhotelHouseRoomtypeAddResponse.go | 27 - ...emSelectionSellerStatExposureAPIRequest.go | 108 + ...mSelectionSellerStatExposureAPIResponse.go | 27 + ...ItemSelectionSellerStatExposureResponse.go | 27 - ...temSelectionSellerStatHotshidAPIRequest.go | 108 + ...emSelectionSellerStatHotshidAPIResponse.go | 27 + ...lItemSelectionSellerStatHotshidResponse.go | 27 - ...temSelectionSellerStatSummaryAPIRequest.go | 108 + ...emSelectionSellerStatSummaryAPIResponse.go | 27 + ...lItemSelectionSellerStatSummaryResponse.go | 27 - ...aobaoXhotelMultiplerateDeleteAPIRequest.go | 108 + ...obaoXhotelMultiplerateDeleteAPIResponse.go | 27 + .../TaobaoXhotelMultiplerateDeleteResponse.go | 27 - .../TaobaoXhotelMultiplerateGetAPIRequest.go | 136 ++ .../TaobaoXhotelMultiplerateGetAPIResponse.go | 27 + .../TaobaoXhotelMultiplerateGetResponse.go | 27 - ...aobaoXhotelMultiplerateUpdateAPIRequest.go | 277 +++ ...obaoXhotelMultiplerateUpdateAPIResponse.go | 28 + .../TaobaoXhotelMultiplerateUpdateResponse.go | 28 - ...oXhotelMultipleratesIncrementAPIRequest.go | 53 + ...XhotelMultipleratesIncrementAPIResponse.go | 30 + ...baoXhotelMultipleratesIncrementResponse.go | 30 - ...obaoXhotelMultipleratesUpdateAPIRequest.go | 53 + ...baoXhotelMultipleratesUpdateAPIResponse.go | 30 + ...TaobaoXhotelMultipleratesUpdateResponse.go | 30 - .../TaobaoXhotelQuotaUpdateAPIRequest.go | 136 ++ .../TaobaoXhotelQuotaUpdateAPIResponse.go | 31 + .../TaobaoXhotelQuotaUpdateResponse.go | 31 - .../TaobaoXhotelRateAddAPIRequest.go | 318 +++ .../TaobaoXhotelRateAddAPIResponse.go | 31 + .../xhotelitem/TaobaoXhotelRateAddResponse.go | 31 - .../TaobaoXhotelRateDeleteAPIRequest.go | 80 + .../TaobaoXhotelRateDeleteAPIResponse.go | 27 + .../TaobaoXhotelRateDeleteResponse.go | 27 - .../TaobaoXhotelRateGetAPIRequest.go | 122 ++ .../TaobaoXhotelRateGetAPIResponse.go | 27 + .../xhotelitem/TaobaoXhotelRateGetResponse.go | 27 - ...elRateRelationshipwithroomGetAPIRequest.go | 66 + ...lRateRelationshipwithroomGetAPIResponse.go | 29 + ...otelRateRelationshipwithroomGetResponse.go | 29 - ...otelRateRelationshipwithrpGetAPIRequest.go | 66 + ...telRateRelationshipwithrpGetAPIResponse.go | 29 + ...XhotelRateRelationshipwithrpGetResponse.go | 29 - .../TaobaoXhotelRateUpdateAPIRequest.go | 150 ++ .../TaobaoXhotelRateUpdateAPIResponse.go | 27 + .../TaobaoXhotelRateUpdateResponse.go | 27 - .../TaobaoXhotelRateplanAddAPIRequest.go | 836 ++++++++ .../TaobaoXhotelRateplanAddAPIResponse.go | 27 + .../TaobaoXhotelRateplanAddResponse.go | 27 - .../TaobaoXhotelRateplanDeleteAPIRequest.go | 80 + .../TaobaoXhotelRateplanDeleteAPIResponse.go | 27 + .../TaobaoXhotelRateplanDeleteResponse.go | 27 - .../TaobaoXhotelRateplanGetAPIRequest.go | 80 + .../TaobaoXhotelRateplanGetAPIResponse.go | 27 + .../TaobaoXhotelRateplanGetResponse.go | 27 - .../TaobaoXhotelRateplanUpdateAPIRequest.go | 864 ++++++++ .../TaobaoXhotelRateplanUpdateAPIResponse.go | 27 + .../TaobaoXhotelRateplanUpdateResponse.go | 27 - .../TaobaoXhotelRatesIncrementAPIRequest.go | 52 + .../TaobaoXhotelRatesIncrementAPIResponse.go | 27 + .../TaobaoXhotelRatesIncrementResponse.go | 27 - ...obaoXhotelRatesLiteIncrUpdateAPIRequest.go | 52 + ...baoXhotelRatesLiteIncrUpdateAPIResponse.go | 27 + ...TaobaoXhotelRatesLiteIncrUpdateResponse.go | 27 - .../TaobaoXhotelRatesUpdateAPIRequest.go | 52 + .../TaobaoXhotelRatesUpdateAPIResponse.go | 27 + .../TaobaoXhotelRatesUpdateResponse.go | 27 - .../TaobaoXhotelRoomGetAPIRequest.go | 80 + .../TaobaoXhotelRoomGetAPIResponse.go | 27 + .../xhotelitem/TaobaoXhotelRoomGetResponse.go | 27 - .../TaobaoXhotelRoomUpdateAPIRequest.go | 290 +++ .../TaobaoXhotelRoomUpdateAPIResponse.go | 27 + .../TaobaoXhotelRoomUpdateResponse.go | 27 - .../TaobaoXhotelRoomsIncrementAPIRequest.go | 52 + .../TaobaoXhotelRoomsIncrementAPIResponse.go | 27 + .../TaobaoXhotelRoomsIncrementResponse.go | 27 - .../TaobaoXhotelRoomsUpdateAPIRequest.go | 52 + .../TaobaoXhotelRoomsUpdateAPIResponse.go | 27 + .../TaobaoXhotelRoomsUpdateResponse.go | 27 - .../TaobaoXhotelRoomtypeAddAPIRequest.go | 332 ++++ .../TaobaoXhotelRoomtypeAddAPIResponse.go | 27 + .../TaobaoXhotelRoomtypeAddResponse.go | 27 - ...baoXhotelRoomtypeConflictDataAPIRequest.go | 52 + ...aoXhotelRoomtypeConflictDataAPIResponse.go | 27 + ...aobaoXhotelRoomtypeConflictDataResponse.go | 27 - ...baoXhotelRoomtypeDeletePublicAPIRequest.go | 94 + ...aoXhotelRoomtypeDeletePublicAPIResponse.go | 27 + ...aobaoXhotelRoomtypeDeletePublicResponse.go | 27 - .../TaobaoXhotelRoomtypeGetAPIRequest.go | 80 + .../TaobaoXhotelRoomtypeGetAPIResponse.go | 27 + .../TaobaoXhotelRoomtypeGetResponse.go | 27 - .../TaobaoXhotelRoomtypeUpdateAPIRequest.go | 374 ++++ .../TaobaoXhotelRoomtypeUpdateAPIResponse.go | 27 + .../TaobaoXhotelRoomtypeUpdateResponse.go | 27 - .../TaobaoXhotelServicetimeGetAPIRequest.go | 52 + .../TaobaoXhotelServicetimeGetAPIResponse.go | 27 + .../TaobaoXhotelServicetimeGetResponse.go | 27 - ...TaobaoXhotelServicetimeUpdateAPIRequest.go | 52 + ...aobaoXhotelServicetimeUpdateAPIResponse.go | 27 + .../TaobaoXhotelServicetimeUpdateResponse.go | 27 - .../TaobaoXhotelUpdateAPIRequest.go | 710 +++++++ .../TaobaoXhotelUpdateAPIResponse.go | 27 + .../xhotelitem/TaobaoXhotelUpdateResponse.go | 27 - ...obaoXhotelOrderOfficialCancelAPIRequest.go | 108 + ...baoXhotelOrderOfficialCancelAPIResponse.go | 27 + ...TaobaoXhotelOrderOfficialCancelResponse.go | 27 - ...aoXhotelOrderOfficialPrecheckAPIRequest.go | 168 ++ ...oXhotelOrderOfficialPrecheckAPIResponse.go | 37 + ...obaoXhotelOrderOfficialPrecheckResponse.go | 37 - ...otelOrderOfficialSettleCancelAPIRequest.go | 108 + ...telOrderOfficialSettleCancelAPIResponse.go | 27 + ...XhotelOrderOfficialSettleCancelResponse.go | 27 - ...oXhotelOrderOfficialSettlePutAPIRequest.go | 220 ++ ...XhotelOrderOfficialSettlePutAPIResponse.go | 27 + ...baoXhotelOrderOfficialSettlePutResponse.go | 27 - ...aoXhotelOrderAlipayfaceCancelAPIRequest.go | 108 + ...oXhotelOrderAlipayfaceCancelAPIResponse.go | 27 + ...obaoXhotelOrderAlipayfaceCancelResponse.go | 27 - ...baoXhotelOrderAlipayfaceCheckAPIRequest.go | 164 ++ ...aoXhotelOrderAlipayfaceCheckAPIResponse.go | 35 + ...aobaoXhotelOrderAlipayfaceCheckResponse.go | 35 - ...aoXhotelOrderAlipayfaceCreateAPIRequest.go | 234 +++ ...oXhotelOrderAlipayfaceCreateAPIResponse.go | 41 + ...obaoXhotelOrderAlipayfaceCreateResponse.go | 41 - ...aoXhotelOrderAlipayfaceExtendAPIRequest.go | 108 + ...oXhotelOrderAlipayfaceExtendAPIResponse.go | 27 + ...obaoXhotelOrderAlipayfaceExtendResponse.go | 27 - ...aoXhotelOrderOfflineSettlePutAPIRequest.go | 262 +++ ...oXhotelOrderOfflineSettlePutAPIResponse.go | 27 + ...obaoXhotelOrderOfflineSettlePutResponse.go | 27 - .../AlitripXhotelChannelNotifyAPIRequest.go | 52 + .../AlitripXhotelChannelNotifyAPIResponse.go | 27 + .../AlitripXhotelChannelNotifyResponse.go | 27 - ...itripXhotelChannelOrderCreateAPIRequest.go | 52 + ...tripXhotelChannelOrderCreateAPIResponse.go | 27 + ...AlitripXhotelChannelOrderCreateResponse.go | 27 - ...telChannelOrderMembertypeSyncAPIRequest.go | 52 + ...elChannelOrderMembertypeSyncAPIResponse.go | 27 + ...hotelChannelOrderMembertypeSyncResponse.go | 27 - ...aoXhotelCommoninvoiceListVtwoAPIRequest.go | 38 + ...oXhotelCommoninvoiceListVtwoAPIResponse.go | 27 + ...obaoXhotelCommoninvoiceListVtwoResponse.go | 27 - ...obaoXhotelCommoninvoiceRemoveAPIRequest.go | 66 + ...baoXhotelCommoninvoiceRemoveAPIResponse.go | 31 + ...TaobaoXhotelCommoninvoiceRemoveResponse.go | 31 - ...obaoXhotelCommoninvoiceUpdateAPIRequest.go | 52 + ...baoXhotelCommoninvoiceUpdateAPIResponse.go | 31 + ...TaobaoXhotelCommoninvoiceUpdateResponse.go | 31 - ...obaoXhotelFastinvoiceCompleteAPIRequest.go | 52 + ...baoXhotelFastinvoiceCompleteAPIResponse.go | 31 + ...TaobaoXhotelFastinvoiceCompleteResponse.go | 31 - ...aobaoXhotelFastinvoiceRequestAPIRequest.go | 52 + ...obaoXhotelFastinvoiceRequestAPIResponse.go | 31 + .../TaobaoXhotelFastinvoiceRequestResponse.go | 31 - .../TaobaoXhotelFutureSoftmodifyAPIRequest.go | 150 ++ ...TaobaoXhotelFutureSoftmodifyAPIResponse.go | 27 + .../TaobaoXhotelFutureSoftmodifyResponse.go | 27 - .../TaobaoXhotelIntlRateUpdateAPIRequest.go | 52 + .../TaobaoXhotelIntlRateUpdateAPIResponse.go | 27 + .../TaobaoXhotelIntlRateUpdateResponse.go | 27 - ...TaobaoXhotelMemberrightUpdateAPIRequest.go | 80 + ...aobaoXhotelMemberrightUpdateAPIResponse.go | 27 + .../TaobaoXhotelMemberrightUpdateResponse.go | 27 - ...elOrderAlipayfaceCancelsettleAPIRequest.go | 80 + ...lOrderAlipayfaceCancelsettleAPIResponse.go | 27 + ...otelOrderAlipayfaceCancelsettleResponse.go | 27 - ...aoXhotelOrderAlipayfaceSettleAPIRequest.go | 276 +++ ...oXhotelOrderAlipayfaceSettleAPIResponse.go | 27 + ...obaoXhotelOrderAlipayfaceSettleResponse.go | 27 - ...aoXhotelOrderAlipayfaceUpdateAPIRequest.go | 248 +++ ...oXhotelOrderAlipayfaceUpdateAPIResponse.go | 27 + ...obaoXhotelOrderAlipayfaceUpdateResponse.go | 27 - ...TaobaoXhotelOrderDetailSearchAPIRequest.go | 66 + ...aobaoXhotelOrderDetailSearchAPIResponse.go | 31 + .../TaobaoXhotelOrderDetailSearchResponse.go | 31 - ...oXhotelOrderFutureFacescanPutAPIRequest.go | 52 + ...XhotelOrderFutureFacescanPutAPIResponse.go | 27 + ...baoXhotelOrderFutureFacescanPutResponse.go | 27 - ...aobaoXhotelOrderFutureInfoGetAPIRequest.go | 136 ++ ...obaoXhotelOrderFutureInfoGetAPIResponse.go | 31 + .../TaobaoXhotelOrderFutureInfoGetResponse.go | 31 - ...aobaoXhotelOrderFutureInfoPutAPIRequest.go | 122 ++ ...obaoXhotelOrderFutureInfoPutAPIResponse.go | 33 + .../TaobaoXhotelOrderFutureInfoPutResponse.go | 33 - .../TaobaoXhotelOrderSearchAPIRequest.go | 136 ++ .../TaobaoXhotelOrderSearchAPIResponse.go | 29 + .../TaobaoXhotelOrderSearchResponse.go | 29 - ...TaobaoXhotelOrderStatementGetAPIRequest.go | 164 ++ ...aobaoXhotelOrderStatementGetAPIResponse.go | 27 + .../TaobaoXhotelOrderStatementGetResponse.go | 27 - .../TaobaoXhotelOrderUpdateAPIRequest.go | 122 ++ .../TaobaoXhotelOrderUpdateAPIResponse.go | 27 + ...oXhotelOrderUpdateConfirmcodeAPIRequest.go | 52 + ...XhotelOrderUpdateConfirmcodeAPIResponse.go | 31 + ...baoXhotelOrderUpdateConfirmcodeResponse.go | 31 - .../TaobaoXhotelOrderUpdateResponse.go | 27 - ...obaoXhotelPmsGuestbillGetVtwoAPIRequest.go | 108 + ...baoXhotelPmsGuestbillGetVtwoAPIResponse.go | 27 + ...TaobaoXhotelPmsGuestbillGetVtwoResponse.go | 27 - ...AlibabaXiamiApiAlbumDetailGetAPIRequest.go | 66 + ...libabaXiamiApiAlbumDetailGetAPIResponse.go | 27 + .../AlibabaXiamiApiAlbumDetailGetResponse.go | 27 - ...libabaXiamiApiArtistAlbumsGetAPIRequest.go | 80 + ...ibabaXiamiApiArtistAlbumsGetAPIResponse.go | 27 + .../AlibabaXiamiApiArtistAlbumsGetResponse.go | 27 - ...libabaXiamiApiArtistDetailGetAPIRequest.go | 66 + ...ibabaXiamiApiArtistDetailGetAPIResponse.go | 27 + .../AlibabaXiamiApiArtistDetailGetResponse.go | 27 - ...babaXiamiApiArtistHotSongsGetAPIRequest.go | 52 + ...abaXiamiApiArtistHotSongsGetAPIResponse.go | 27 + ...libabaXiamiApiArtistHotSongsGetResponse.go | 27 - ...abaXiamiApiArtistMusiclistGetAPIRequest.go | 66 + ...baXiamiApiArtistMusiclistGetAPIResponse.go | 27 + ...ibabaXiamiApiArtistMusiclistGetResponse.go | 27 - ...ibabaXiamiApiCollectDetailGetAPIRequest.go | 80 + ...babaXiamiApiCollectDetailGetAPIResponse.go | 27 + ...AlibabaXiamiApiCollectDetailGetResponse.go | 27 - ...AlibabaXiamiApiContractIssignAPIRequest.go | 38 + ...libabaXiamiApiContractIssignAPIResponse.go | 27 + .../AlibabaXiamiApiContractIssignResponse.go | 27 - .../AlibabaXiamiApiContractSignAPIRequest.go | 38 + .../AlibabaXiamiApiContractSignAPIResponse.go | 27 + .../AlibabaXiamiApiContractSignResponse.go | 27 - ...aXiamiApiMobileFigureimageGetAPIRequest.go | 108 + ...XiamiApiMobileFigureimageGetAPIResponse.go | 27 + ...abaXiamiApiMobileFigureimageGetResponse.go | 27 - ...AlibabaXiamiApiMvMusiclistGetAPIRequest.go | 94 + ...libabaXiamiApiMvMusiclistGetAPIResponse.go | 27 + .../AlibabaXiamiApiMvMusiclistGetResponse.go | 27 - ...AlibabaXiamiApiRadioMyselfGetAPIRequest.go | 52 + ...libabaXiamiApiRadioMyselfGetAPIResponse.go | 27 + .../AlibabaXiamiApiRadioMyselfGetResponse.go | 27 - .../AlibabaXiamiApiRadioSongsGetAPIRequest.go | 80 + ...AlibabaXiamiApiRadioSongsGetAPIResponse.go | 27 + .../AlibabaXiamiApiRadioSongsGetResponse.go | 27 - .../AlibabaXiamiApiRankDetailGetAPIRequest.go | 66 + ...AlibabaXiamiApiRankDetailGetAPIResponse.go | 29 + .../AlibabaXiamiApiRankDetailGetResponse.go | 29 - .../AlibabaXiamiApiRankSongsGetAPIRequest.go | 52 + .../AlibabaXiamiApiRankSongsGetAPIResponse.go | 27 + .../AlibabaXiamiApiRankSongsGetResponse.go | 27 - ...babaXiamiApiSearchHotwordsGetAPIRequest.go | 52 + ...abaXiamiApiSearchHotwordsGetAPIResponse.go | 27 + ...libabaXiamiApiSearchHotwordsGetResponse.go | 27 - ...libabaXiamiApiSearchLetterGetAPIRequest.go | 52 + ...ibabaXiamiApiSearchLetterGetAPIResponse.go | 27 + .../AlibabaXiamiApiSearchLetterGetResponse.go | 27 - ...ibabaXiamiApiTagGenreAlbumGetAPIRequest.go | 94 + ...babaXiamiApiTagGenreAlbumGetAPIResponse.go | 27 + ...AlibabaXiamiApiTagGenreAlbumGetResponse.go | 27 - ...libabaXiamiApiTagGenreSongGetAPIRequest.go | 94 + ...ibabaXiamiApiTagGenreSongGetAPIResponse.go | 27 + .../AlibabaXiamiApiTagGenreSongGetResponse.go | 27 - .../XiamiContentArtistInfoQueryAPIRequest.go | 94 + .../XiamiContentArtistInfoQueryAPIResponse.go | 29 + .../XiamiContentArtistInfoQueryResponse.go | 29 - .../XiamiContentMvDetailGetAPIRequest.go | 52 + .../XiamiContentMvDetailGetAPIResponse.go | 29 + .../XiamiContentMvDetailGetResponse.go | 29 - .../XiamiContentSongsAudioGetAPIRequest.go | 52 + .../XiamiContentSongsAudioGetAPIResponse.go | 29 + .../XiamiContentSongsAudioGetResponse.go | 29 - ...miContentSongsAudioGetrefrainAPIRequest.go | 52 + ...iContentSongsAudioGetrefrainAPIResponse.go | 29 + ...iamiContentSongsAudioGetrefrainResponse.go | 29 - .../XiamiContentSongsCollectGetAPIRequest.go | 66 + .../XiamiContentSongsCollectGetAPIResponse.go | 31 + .../XiamiContentSongsCollectGetResponse.go | 31 - .../XiamiContentSongsInfoGetAPIRequest.go | 52 + .../XiamiContentSongsInfoGetAPIResponse.go | 29 + .../XiamiContentSongsInfoGetResponse.go | 29 - .../XiamiContentSongsInfoQueryAPIRequest.go | 94 + .../XiamiContentSongsInfoQueryAPIResponse.go | 29 + .../XiamiContentSongsInfoQueryResponse.go | 29 - .../XiamiApiSongDetailGetAPIRequest.go | 52 + .../XiamiApiSongDetailGetAPIResponse.go | 27 + .../XiamiApiSongDetailGetResponse.go | 27 - .../XiamiApiSongListenfileGetAPIRequest.go | 52 + .../XiamiApiSongListenfileGetAPIResponse.go | 27 + .../XiamiApiSongListenfileGetResponse.go | 27 - ...miContentResourceActionReportAPIRequest.go | 150 ++ ...iContentResourceActionReportAPIResponse.go | 29 + ...iamiContentResourceActionReportResponse.go | 29 - ...kuDspDeliveryResourceMultigetAPIRequest.go | 108 + ...uDspDeliveryResourceMultigetAPIResponse.go | 35 + ...oukuDspDeliveryResourceMultigetResponse.go | 35 - ...YoukuMediaapiVideoSnapshotGetAPIRequest.go | 52 + ...oukuMediaapiVideoSnapshotGetAPIResponse.go | 31 + .../YoukuMediaapiVideoSnapshotGetResponse.go | 31 - .../YoukuOttDvbCardChangeAPIRequest.go | 80 + .../YoukuOttDvbCardChangeAPIResponse.go | 29 + .../youkuott/YoukuOttDvbCardChangeResponse.go | 29 - ...YoukuOttDvbFirstorderFeedbackAPIRequest.go | 80 + ...oukuOttDvbFirstorderFeedbackAPIResponse.go | 29 + .../YoukuOttDvbFirstorderFeedbackResponse.go | 29 - .../YoukuOttDvbRenewFeedbackAPIRequest.go | 80 + .../YoukuOttDvbRenewFeedbackAPIResponse.go | 29 + .../YoukuOttDvbRenewFeedbackResponse.go | 29 - .../YoukuOttDvbWorkorderFeedbackAPIRequest.go | 80 + ...YoukuOttDvbWorkorderFeedbackAPIResponse.go | 29 + .../YoukuOttDvbWorkorderFeedbackResponse.go | 29 - .../YoukuOttKittyCommonorderSyncAPIRequest.go | 136 ++ ...YoukuOttKittyCommonorderSyncAPIResponse.go | 31 + .../YoukuOttKittyCommonorderSyncResponse.go | 31 - ...YoukuTvoperatorMediaPageQueryAPIRequest.go | 94 + ...oukuTvoperatorMediaPageQueryAPIResponse.go | 33 + .../YoukuTvoperatorMediaPageQueryResponse.go | 33 - .../AliyunCosmoGatewayInvokeAPIRequest.go | 66 + .../AliyunCosmoGatewayInvokeAPIResponse.go | 27 + .../yunos/AliyunCosmoGatewayInvokeResponse.go | 27 - ...unosCloudcardBatchOpermsgSendAPIRequest.go | 52 + ...nosCloudcardBatchOpermsgSendAPIResponse.go | 27 + .../YunosCloudcardBatchOpermsgSendResponse.go | 27 - model/yunos/YunosCosmoDataPushAPIRequest.go | 66 + model/yunos/YunosCosmoDataPushAPIResponse.go | 27 + model/yunos/YunosCosmoDataPushResponse.go | 27 - .../YunosAccountCallapiAPIRequest.go | 108 + .../YunosAccountCallapiAPIResponse.go | 27 + .../YunosAccountCallapiResponse.go | 27 - .../YunosAdAuditCreativeAddAPIRequest.go | 66 + .../YunosAdAuditCreativeAddAPIResponse.go | 31 + .../YunosAdAuditCreativeAddResponse.go | 31 - .../YunosAdAuditCreativeGetAPIRequest.go | 66 + .../YunosAdAuditCreativeGetAPIResponse.go | 33 + .../YunosAdAuditCreativeGetResponse.go | 33 - .../YunosAdAuditCreativeGetlistAPIRequest.go | 80 + .../YunosAdAuditCreativeGetlistAPIResponse.go | 33 + .../YunosAdAuditCreativeGetlistResponse.go | 33 - .../YunosAppstoreAppsGetAPIRequest.go | 52 + .../YunosAppstoreAppsGetAPIResponse.go | 27 + .../YunosAppstoreAppsGetResponse.go | 27 - .../YunosAppstoreOpenGetadsAPIRequest.go | 276 +++ .../YunosAppstoreOpenGetadsAPIResponse.go | 33 + .../YunosAppstoreOpenGetadsResponse.go | 33 - .../YunosAppstoreOpenReportadAPIRequest.go | 108 + .../YunosAppstoreOpenReportadAPIResponse.go | 29 + .../YunosAppstoreOpenReportadResponse.go | 29 - .../YunosAppstorePadHpApplistAPIRequest.go | 52 + .../YunosAppstorePadHpApplistAPIResponse.go | 27 + .../YunosAppstorePadHpApplistResponse.go | 27 - .../yunosdm/YunosDmSysGetDomainAPIRequest.go | 80 + .../yunosdm/YunosDmSysGetDomainAPIResponse.go | 27 + model/yunosdm/YunosDmSysGetDomainResponse.go | 27 - .../YunosMiniappActivityCallAPIRequest.go | 80 + .../YunosMiniappActivityCallAPIResponse.go | 27 + .../YunosMiniappActivityCallResponse.go | 27 - .../YunosMiniappDatatunnelCallAPIRequest.go | 52 + .../YunosMiniappDatatunnelCallAPIResponse.go | 27 + .../YunosMiniappDatatunnelCallResponse.go | 27 - .../AlibabaZqsFulfillCompleteAPIRequest.go | 80 + .../AlibabaZqsFulfillCompleteAPIResponse.go | 31 + .../zqs/AlibabaZqsFulfillCompleteResponse.go | 31 - tests/json_test.go | 45 + tests/xml_test.go | 45 + 13200 files changed, 493275 insertions(+), 121405 deletions(-) delete mode 100644 example/tbk_item_info_get.go delete mode 100644 example/tbk_tpwd_create.go create mode 100755 metadata/assets/patch/baichuan/alibaba_baichuan_aso_query.json create mode 100755 metadata/assets/patch/category/alibaba_imap_pv_autofill.json create mode 100644 model/admarket/YunosAdmarketAdBidAPIRequest.go create mode 100644 model/admarket/YunosAdmarketAdBidAPIResponse.go delete mode 100644 model/admarket/YunosAdmarketAdBidResponse.go create mode 100644 model/admarket/YunosAdmarketMaterialAuditAPIRequest.go create mode 100644 model/admarket/YunosAdmarketMaterialAuditAPIResponse.go delete mode 100644 model/admarket/YunosAdmarketMaterialAuditResponse.go create mode 100644 model/aecreatives/AliexpressAffiliateCategoryGetAPIRequest.go create mode 100644 model/aecreatives/AliexpressAffiliateCategoryGetAPIResponse.go create mode 100644 model/aecreatives/AliexpressAffiliateFeaturedpromoGetAPIRequest.go create mode 100644 model/aecreatives/AliexpressAffiliateFeaturedpromoGetAPIResponse.go create mode 100644 model/aecreatives/AliexpressAffiliateFeaturedpromoProductsGetAPIRequest.go create mode 100644 model/aecreatives/AliexpressAffiliateFeaturedpromoProductsGetAPIResponse.go create mode 100644 model/aecreatives/AliexpressAffiliateHotproductDownloadAPIRequest.go create mode 100644 model/aecreatives/AliexpressAffiliateHotproductDownloadAPIResponse.go create mode 100644 model/aecreatives/AliexpressAffiliateHotproductQueryAPIRequest.go create mode 100644 model/aecreatives/AliexpressAffiliateHotproductQueryAPIResponse.go create mode 100644 model/aecreatives/AliexpressAffiliateImageSearchAPIRequest.go create mode 100644 model/aecreatives/AliexpressAffiliateImageSearchAPIResponse.go create mode 100644 model/aecreatives/AliexpressAffiliateProductQueryAPIRequest.go create mode 100644 model/aecreatives/AliexpressAffiliateProductQueryAPIResponse.go create mode 100644 model/aecreatives/AliexpressAffiliateProductSmartmatchAPIRequest.go create mode 100644 model/aecreatives/AliexpressAffiliateProductSmartmatchAPIResponse.go create mode 100644 model/aecreatives/AliexpressAffiliateProductdetailGetAPIRequest.go create mode 100644 model/aecreatives/AliexpressAffiliateProductdetailGetAPIResponse.go create mode 100644 model/aedata/AliexpressAffiliateOrderGetAPIRequest.go create mode 100644 model/aedata/AliexpressAffiliateOrderGetAPIResponse.go delete mode 100644 model/aedata/AliexpressAffiliateOrderGetResponse.go create mode 100644 model/aedata/AliexpressAffiliateOrderListAPIRequest.go create mode 100644 model/aedata/AliexpressAffiliateOrderListAPIResponse.go delete mode 100644 model/aedata/AliexpressAffiliateOrderListResponse.go create mode 100644 model/aedata/AliexpressAffiliateOrderListbyindexAPIRequest.go create mode 100644 model/aedata/AliexpressAffiliateOrderListbyindexAPIResponse.go delete mode 100644 model/aedata/AliexpressAffiliateOrderListbyindexResponse.go create mode 100644 model/aedropshiper/AliexpressLogisticsBuyerFreightCalculateAPIRequest.go create mode 100644 model/aedropshiper/AliexpressLogisticsBuyerFreightCalculateAPIResponse.go delete mode 100644 model/aedropshiper/AliexpressLogisticsBuyerFreightCalculateResponse.go create mode 100644 model/aedropshiper/AliexpressLogisticsDsTrackinginfoQueryAPIRequest.go create mode 100644 model/aedropshiper/AliexpressLogisticsDsTrackinginfoQueryAPIResponse.go delete mode 100644 model/aedropshiper/AliexpressLogisticsDsTrackinginfoQueryResponse.go create mode 100644 model/aedropshiper/AliexpressOfferDsProductSimplequeryAPIRequest.go create mode 100644 model/aedropshiper/AliexpressOfferDsProductSimplequeryAPIResponse.go delete mode 100644 model/aedropshiper/AliexpressOfferDsProductSimplequeryResponse.go create mode 100644 model/aedropshiper/AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIRequest.go create mode 100644 model/aedropshiper/AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIResponse.go delete mode 100644 model/aedropshiper/AliexpressPostproductRedefiningFindaeproductbyidfordropshipperResponse.go create mode 100644 model/aedropshiper/AliexpressTradeBuyPlaceorderAPIRequest.go create mode 100644 model/aedropshiper/AliexpressTradeBuyPlaceorderAPIResponse.go delete mode 100644 model/aedropshiper/AliexpressTradeBuyPlaceorderResponse.go create mode 100644 model/aedropshiper/AliexpressTradeDsOrderGetAPIRequest.go create mode 100644 model/aedropshiper/AliexpressTradeDsOrderGetAPIResponse.go delete mode 100644 model/aedropshiper/AliexpressTradeDsOrderGetResponse.go create mode 100644 model/aesolution/AliexpressSolutionBatchProductDeleteAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionBatchProductDeleteAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionBatchProductDeleteResponse.go create mode 100644 model/aesolution/AliexpressSolutionBatchProductInventoryUpdateAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionBatchProductInventoryUpdateAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionBatchProductInventoryUpdateResponse.go create mode 100644 model/aesolution/AliexpressSolutionBatchProductPriceUpdateAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionBatchProductPriceUpdateAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionBatchProductPriceUpdateResponse.go create mode 100644 model/aesolution/AliexpressSolutionFeedInvalidateAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionFeedInvalidateAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionFeedInvalidateResponse.go create mode 100644 model/aesolution/AliexpressSolutionFeedListGetAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionFeedListGetAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionFeedListGetResponse.go create mode 100644 model/aesolution/AliexpressSolutionFeedQueryAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionFeedQueryAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionFeedQueryResponse.go create mode 100644 model/aesolution/AliexpressSolutionFeedSubmitAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionFeedSubmitAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionFeedSubmitResponse.go create mode 100644 model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateResponse.go create mode 100644 model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateResponse.go create mode 100644 model/aesolution/AliexpressSolutionIssuePartnerRmaScreeningCreateAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionIssuePartnerRmaScreeningCreateAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionIssuePartnerRmaScreeningCreateResponse.go create mode 100644 model/aesolution/AliexpressSolutionIssuePartnerRmaStateUpdateAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionIssuePartnerRmaStateUpdateAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionIssuePartnerRmaStateUpdateResponse.go create mode 100644 model/aesolution/AliexpressSolutionMerchantProfileGetAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionMerchantProfileGetAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionMerchantProfileGetResponse.go create mode 100644 model/aesolution/AliexpressSolutionOrderFulfillAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionOrderFulfillAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionOrderFulfillResponse.go create mode 100644 model/aesolution/AliexpressSolutionOrderGetAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionOrderGetAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionOrderGetResponse.go create mode 100644 model/aesolution/AliexpressSolutionOrderInfoGetAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionOrderInfoGetAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionOrderInfoGetResponse.go create mode 100644 model/aesolution/AliexpressSolutionOrderReceiptinfoGetAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionOrderReceiptinfoGetAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionOrderReceiptinfoGetResponse.go create mode 100644 model/aesolution/AliexpressSolutionProductEditAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionProductEditAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionProductEditResponse.go create mode 100644 model/aesolution/AliexpressSolutionProductInfoGetAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionProductInfoGetAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionProductInfoGetResponse.go create mode 100644 model/aesolution/AliexpressSolutionProductListGetAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionProductListGetAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionProductListGetResponse.go create mode 100644 model/aesolution/AliexpressSolutionProductPostAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionProductPostAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionProductPostResponse.go create mode 100644 model/aesolution/AliexpressSolutionProductSchemaGetAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionProductSchemaGetAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionProductSchemaGetResponse.go create mode 100644 model/aesolution/AliexpressSolutionSchemaProductFullUpdateAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionSchemaProductFullUpdateAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionSchemaProductFullUpdateResponse.go create mode 100644 model/aesolution/AliexpressSolutionSchemaProductInstancePostAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionSchemaProductInstancePostAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionSchemaProductInstancePostResponse.go create mode 100644 model/aesolution/AliexpressSolutionSellerCategoryTreeQueryAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionSellerCategoryTreeQueryAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionSellerCategoryTreeQueryResponse.go create mode 100644 model/aesolution/AliexpressSolutionSkuAttributeQueryAPIRequest.go create mode 100644 model/aesolution/AliexpressSolutionSkuAttributeQueryAPIResponse.go delete mode 100644 model/aesolution/AliexpressSolutionSkuAttributeQueryResponse.go create mode 100644 model/aetask/AliexpressInteractiveTaskCompleteAPIRequest.go create mode 100644 model/aetask/AliexpressInteractiveTaskCompleteAPIResponse.go delete mode 100644 model/aetask/AliexpressInteractiveTaskCompleteResponse.go create mode 100644 model/aetask/AliexpressInteractiveTaskDeliveryQueryAPIRequest.go create mode 100644 model/aetask/AliexpressInteractiveTaskDeliveryQueryAPIResponse.go delete mode 100644 model/aetask/AliexpressInteractiveTaskDeliveryQueryResponse.go create mode 100644 model/aetools/AliexpressAffiliateLinkGenerateAPIRequest.go create mode 100644 model/aetools/AliexpressAffiliateLinkGenerateAPIResponse.go delete mode 100644 model/aetools/AliexpressAffiliateLinkGenerateResponse.go create mode 100644 model/aeusergrowth/AliexpressUsergrowthRecommendItemsGetAPIRequest.go create mode 100644 model/aeusergrowth/AliexpressUsergrowthRecommendItemsGetAPIResponse.go delete mode 100644 model/aeusergrowth/AliexpressUsergrowthRecommendItemsGetResponse.go create mode 100644 model/aeusergrowth/AliexpressUsergrowthSearchItemsGetAPIRequest.go create mode 100644 model/aeusergrowth/AliexpressUsergrowthSearchItemsGetAPIResponse.go delete mode 100644 model/aeusergrowth/AliexpressUsergrowthSearchItemsGetResponse.go create mode 100644 model/aiar/AlibabaAiArOpenPlatformDetectAPIRequest.go create mode 100644 model/aiar/AlibabaAiArOpenPlatformDetectAPIResponse.go delete mode 100644 model/aiar/AlibabaAiArOpenPlatformDetectResponse.go create mode 100644 model/aiar/AlibabaAiArServiceDetectAPIRequest.go create mode 100644 model/aiar/AlibabaAiArServiceDetectAPIResponse.go delete mode 100644 model/aiar/AlibabaAiArServiceDetectResponse.go create mode 100644 model/aiar/AlibabaAiArTmjlAppDetectAPIRequest.go create mode 100644 model/aiar/AlibabaAiArTmjlAppDetectAPIResponse.go delete mode 100644 model/aiar/AlibabaAiArTmjlAppDetectResponse.go create mode 100644 model/alicom/AlibabaAlicomExchangeCreatebymixnickAPIRequest.go create mode 100644 model/alicom/AlibabaAlicomExchangeCreatebymixnickAPIResponse.go delete mode 100644 model/alicom/AlibabaAlicomExchangeCreatebymixnickResponse.go create mode 100644 model/alicom/AlibabaAlicomOrderExchangeCreateAPIRequest.go create mode 100644 model/alicom/AlibabaAlicomOrderExchangeCreateAPIResponse.go delete mode 100644 model/alicom/AlibabaAlicomOrderExchangeCreateResponse.go create mode 100644 model/alicom/AlibabaAlicomOrderPreauthorizeCreateAPIRequest.go create mode 100644 model/alicom/AlibabaAlicomOrderPreauthorizeCreateAPIResponse.go delete mode 100644 model/alicom/AlibabaAlicomOrderPreauthorizeCreateResponse.go create mode 100644 model/alicom/AlibabaAlicomOrderPreauthorizeFulfillmentAPIRequest.go create mode 100644 model/alicom/AlibabaAlicomOrderPreauthorizeFulfillmentAPIResponse.go delete mode 100644 model/alicom/AlibabaAlicomOrderPreauthorizeFulfillmentResponse.go create mode 100644 model/alicom/AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIRequest.go create mode 100644 model/alicom/AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIResponse.go delete mode 100644 model/alicom/AlibabaAlicomOrderPreauthorizeQueryFulfillmentResponse.go create mode 100644 model/alicom/AlibabaAlicomOrderPreauthorizeQueryFundAPIRequest.go create mode 100644 model/alicom/AlibabaAlicomOrderPreauthorizeQueryFundAPIResponse.go delete mode 100644 model/alicom/AlibabaAlicomOrderPreauthorizeQueryFundResponse.go create mode 100644 model/alicom/AlibabaAlicomVtOpentradeGetproductinfoAPIRequest.go create mode 100644 model/alicom/AlibabaAlicomVtOpentradeGetproductinfoAPIResponse.go delete mode 100644 model/alicom/AlibabaAlicomVtOpentradeGetproductinfoResponse.go create mode 100644 model/alicom/AlibabaAlicomWttOpentradeCreateorderAPIRequest.go create mode 100644 model/alicom/AlibabaAlicomWttOpentradeCreateorderAPIResponse.go delete mode 100644 model/alicom/AlibabaAlicomWttOpentradeCreateorderResponse.go create mode 100644 model/alicom/AlibabaAlicomWttOpentradeGetgiftdetailsAPIRequest.go create mode 100644 model/alicom/AlibabaAlicomWttOpentradeGetgiftdetailsAPIResponse.go delete mode 100644 model/alicom/AlibabaAlicomWttOpentradeGetgiftdetailsResponse.go create mode 100644 model/alicom/AlibabaAlicomWttOpentradeGetproductinfoAPIRequest.go create mode 100644 model/alicom/AlibabaAlicomWttOpentradeGetproductinfoAPIResponse.go delete mode 100644 model/alicom/AlibabaAlicomWttOpentradeGetproductinfoResponse.go create mode 100644 model/alicom/AlibabaAliqinAxbVendorCallControlAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinAxbVendorCallControlAPIResponse.go create mode 100644 model/alicom/AlibabaAliqinAxbVendorExceptionNoSyncAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinAxbVendorExceptionNoSyncAPIResponse.go create mode 100644 model/alicom/AlibabaAliqinAxbVendorHeartBeatAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinAxbVendorHeartBeatAPIResponse.go create mode 100644 model/alicom/AlibabaAliqinAxbVendorPushCallReleaseAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinAxbVendorPushCallReleaseAPIResponse.go create mode 100644 model/alicom/AlibabaAliqinAxbVendorSmsInterceptAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinAxbVendorSmsInterceptAPIResponse.go create mode 100644 model/alicom/AlibabaAliqinFcVoiceGetdetailAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinFcVoiceGetdetailAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinFcVoiceGetdetailResponse.go create mode 100644 model/alicom/AlibabaAliqinFcVoiceNumCancelcallAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinFcVoiceNumCancelcallAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinFcVoiceNumCancelcallResponse.go create mode 100644 model/alicom/AlibabaAliqinFcVoiceRecordGeturlAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinFcVoiceRecordGeturlAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinFcVoiceRecordGeturlResponse.go create mode 100644 model/alicom/AlibabaAliqinFlowAlipayIsbindingtbaccountAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinFlowAlipayIsbindingtbaccountAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinFlowAlipayIsbindingtbaccountResponse.go create mode 100644 model/alicom/AlibabaAliqinFlowAlipayPublishAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinFlowAlipayPublishAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinFlowAlipayPublishResponse.go create mode 100644 model/alicom/AlibabaAliqinFlowCobrandcardSysnAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinFlowCobrandcardSysnAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinFlowCobrandcardSysnResponse.go create mode 100644 model/alicom/AlibabaAliqinFlowPublishAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinFlowPublishAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinFlowPublishResponse.go create mode 100644 model/alicom/AlibabaAliqinFlowWalletChargeAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinFlowWalletChargeAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinFlowWalletChargeResponse.go create mode 100644 model/alicom/AlibabaAliqinFlowWalletChargeRuleAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinFlowWalletChargeRuleAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinFlowWalletChargeRuleResponse.go create mode 100644 model/alicom/AlibabaAliqinFlowWalletConsumeAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinFlowWalletConsumeAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinFlowWalletConsumeResponse.go create mode 100644 model/alicom/AlibabaAliqinFlowWalletGradeAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinFlowWalletGradeAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinFlowWalletGradeResponse.go create mode 100644 model/alicom/AlibabaAliqinFlowWalletQueryChargeAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinFlowWalletQueryChargeAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinFlowWalletQueryChargeResponse.go create mode 100644 model/alicom/AlibabaAliqinFlowWalletSendFlowAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinFlowWalletSendFlowAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinFlowWalletSendFlowResponse.go create mode 100644 model/alicom/AlibabaAliqinFlowWalletSignAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinFlowWalletSignAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinFlowWalletSignResponse.go create mode 100644 model/alicom/AlibabaAliqinOfflineCustomerAddAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinOfflineCustomerAddAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinOfflineCustomerAddResponse.go create mode 100644 model/alicom/AlibabaAliqinTaNumberSinglecallbyttsAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinTaNumberSinglecallbyttsAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinTaNumberSinglecallbyttsResponse.go create mode 100644 model/alicom/AlibabaAliqinTaNumberSinglecallbyvoiceAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinTaNumberSinglecallbyvoiceAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinTaNumberSinglecallbyvoiceResponse.go create mode 100644 model/alicom/AlibabaAliqinTaSmsNumQueryAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinTaSmsNumQueryAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinTaSmsNumQueryResponse.go create mode 100644 model/alicom/AlibabaAliqinTaSmsNumSendAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinTaSmsNumSendAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinTaSmsNumSendResponse.go create mode 100644 model/alicom/AlibabaAliqinTaVoiceNumDoublecallAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinTaVoiceNumDoublecallAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinTaVoiceNumDoublecallResponse.go create mode 100644 model/alicom/AlibabaAliqinTccTradeIdentityGetAPIRequest.go create mode 100644 model/alicom/AlibabaAliqinTccTradeIdentityGetAPIResponse.go delete mode 100644 model/alicom/AlibabaAliqinTccTradeIdentityGetResponse.go create mode 100644 model/alicom/AlibabaAlitjOrderRealnamecardInfoSubmitAPIRequest.go create mode 100644 model/alicom/AlibabaAlitjOrderRealnamecardInfoSubmitAPIResponse.go delete mode 100644 model/alicom/AlibabaAlitjOrderRealnamecardInfoSubmitResponse.go create mode 100644 model/alicom/AlibabaBaseOrderSupplierNotifyAPIRequest.go create mode 100644 model/alicom/AlibabaBaseOrderSupplierNotifyAPIResponse.go delete mode 100644 model/alicom/AlibabaBaseOrderSupplierNotifyResponse.go create mode 100644 model/alicom/AlibabaChongzhiQueryecardsAPIRequest.go create mode 100644 model/alicom/AlibabaChongzhiQueryecardsAPIResponse.go delete mode 100644 model/alicom/AlibabaChongzhiQueryecardsResponse.go create mode 100644 model/alicom/AlibabaChongzhiQueryflowAPIRequest.go create mode 100644 model/alicom/AlibabaChongzhiQueryflowAPIResponse.go delete mode 100644 model/alicom/AlibabaChongzhiQueryflowResponse.go create mode 100644 model/alicom/AlibabaTelecomZhimaOrdernotifyCallbackAPIRequest.go create mode 100644 model/alicom/AlibabaTelecomZhimaOrdernotifyCallbackAPIResponse.go delete mode 100644 model/alicom/AlibabaTelecomZhimaOrdernotifyCallbackResponse.go create mode 100644 model/alicom/AlibabaTianjiDistributorOrderSubmitAPIRequest.go create mode 100644 model/alicom/AlibabaTianjiDistributorOrderSubmitAPIResponse.go delete mode 100644 model/alicom/AlibabaTianjiDistributorOrderSubmitResponse.go create mode 100644 model/alicom/AlibabaTianjiSupplierOrderDeliveryAPIRequest.go create mode 100644 model/alicom/AlibabaTianjiSupplierOrderDeliveryAPIResponse.go delete mode 100644 model/alicom/AlibabaTianjiSupplierOrderDeliveryResponse.go create mode 100644 model/alicom/AlibabaTianjiSupplierOrderQueryAPIRequest.go create mode 100644 model/alicom/AlibabaTianjiSupplierOrderQueryAPIResponse.go delete mode 100644 model/alicom/AlibabaTianjiSupplierOrderQueryResponse.go create mode 100644 model/alicom/AlibabaTianjiSupplierOrderResultAPIRequest.go create mode 100644 model/alicom/AlibabaTianjiSupplierOrderResultAPIResponse.go delete mode 100644 model/alicom/AlibabaTianjiSupplierOrderResultResponse.go create mode 100644 model/alicom/AlibabaWtCifCoopOsstokenGetAPIRequest.go create mode 100644 model/alicom/AlibabaWtCifCoopOsstokenGetAPIResponse.go delete mode 100644 model/alicom/AlibabaWtCifCoopOsstokenGetResponse.go create mode 100644 model/alicom/AlibabaWtOrderExchangePartnerChecktbuserAPIRequest.go create mode 100644 model/alicom/AlibabaWtOrderExchangePartnerChecktbuserAPIResponse.go delete mode 100644 model/alicom/AlibabaWtOrderExchangePartnerChecktbuserResponse.go create mode 100644 model/alicom/AlibabaWttOfflineRecordQueryagentinfoAPIRequest.go create mode 100644 model/alicom/AlibabaWttOfflineRecordQueryagentinfoAPIResponse.go delete mode 100644 model/alicom/AlibabaWttOfflineRecordQueryagentinfoResponse.go create mode 100644 model/alicom/AlibabaWttOrderContractSubscribeAPIRequest.go create mode 100644 model/alicom/AlibabaWttOrderContractSubscribeAPIResponse.go delete mode 100644 model/alicom/AlibabaWttOrderContractSubscribeResponse.go create mode 100644 model/alicom/AlibabaWttUserRegioninfoByipGetAPIRequest.go create mode 100644 model/alicom/AlibabaWttUserRegioninfoByipGetAPIResponse.go delete mode 100644 model/alicom/AlibabaWttUserRegioninfoByipGetResponse.go create mode 100644 model/alicom/TaobaoWtTradeOrderResultcallbackAPIRequest.go create mode 100644 model/alicom/TaobaoWtTradeOrderResultcallbackAPIResponse.go delete mode 100644 model/alicom/TaobaoWtTradeOrderResultcallbackResponse.go create mode 100644 model/alidoc/AlibabaAlihealthAlidocDrugStoreAddAPIRequest.go create mode 100644 model/alidoc/AlibabaAlihealthAlidocDrugStoreAddAPIResponse.go delete mode 100644 model/alidoc/AlibabaAlihealthAlidocDrugStoreAddResponse.go create mode 100644 model/alidoc/AlibabaAlihealthAlidocDrugStoreUpdateAPIRequest.go create mode 100644 model/alidoc/AlibabaAlihealthAlidocDrugStoreUpdateAPIResponse.go delete mode 100644 model/alidoc/AlibabaAlihealthAlidocDrugStoreUpdateResponse.go create mode 100644 model/alidoc/AlibabaAlihealthOutflowFrequencySaveorupdateAPIRequest.go create mode 100644 model/alidoc/AlibabaAlihealthOutflowFrequencySaveorupdateAPIResponse.go delete mode 100644 model/alidoc/AlibabaAlihealthOutflowFrequencySaveorupdateResponse.go create mode 100644 model/alidoc/AlibabaAlihealthRxPrescriptionDetailAPIRequest.go create mode 100644 model/alidoc/AlibabaAlihealthRxPrescriptionDetailAPIResponse.go delete mode 100644 model/alidoc/AlibabaAlihealthRxPrescriptionDetailResponse.go create mode 100644 model/aliexpress/AliexpressFeedPostPublishAPIRequest.go create mode 100644 model/aliexpress/AliexpressFeedPostPublishAPIResponse.go create mode 100644 model/aliexpress/AliexpressSocialInsDirectresultUpdateAPIRequest.go create mode 100644 model/aliexpress/AliexpressSocialInsDirectresultUpdateAPIResponse.go delete mode 100644 model/aliexpress/AliexpressSocialInsDirectresultUpdateResponse.go create mode 100644 model/aliexpresssumaitong/AliexpressTaxationCalculateOpenQueryAPIRequest.go create mode 100644 model/aliexpresssumaitong/AliexpressTaxationCalculateOpenQueryAPIResponse.go delete mode 100644 model/aliexpresssumaitong/AliexpressTaxationCalculateOpenQueryResponse.go create mode 100644 model/aliexpresssumaitong/AliexpressTaxationPlatformOpenGetAPIRequest.go create mode 100644 model/aliexpresssumaitong/AliexpressTaxationPlatformOpenGetAPIResponse.go delete mode 100644 model/aliexpresssumaitong/AliexpressTaxationPlatformOpenGetResponse.go create mode 100644 model/aliexpresssumaitong/AliexpressTradeOrderOpenCheckAPIRequest.go create mode 100644 model/aliexpresssumaitong/AliexpressTradeOrderOpenCheckAPIResponse.go delete mode 100644 model/aliexpresssumaitong/AliexpressTradeOrderOpenCheckResponse.go create mode 100644 model/aliexpresssumaitong/AliexpressTradeOrderOpenQueryAPIRequest.go create mode 100644 model/aliexpresssumaitong/AliexpressTradeOrderOpenQueryAPIResponse.go delete mode 100644 model/aliexpresssumaitong/AliexpressTradeOrderOpenQueryResponse.go create mode 100644 model/aligenie/AlibabaAilabsAligenieDeviceUnbindAPIRequest.go create mode 100644 model/aligenie/AlibabaAilabsAligenieDeviceUnbindAPIResponse.go delete mode 100644 model/aligenie/AlibabaAilabsAligenieDeviceUnbindResponse.go create mode 100644 model/alihealth/AlibabaAlihealthPrescriptionAuthGetAPIRequest.go create mode 100644 model/alihealth/AlibabaAlihealthPrescriptionAuthGetAPIResponse.go delete mode 100644 model/alihealth/AlibabaAlihealthPrescriptionAuthGetResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthBookingReserveCancelAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthBookingReserveCancelAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthBookingReserveCancelResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthBookingReserveCheckinAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthBookingReserveCheckinAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthBookingReserveCheckinResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthBookingReserveConfirmAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthBookingReserveConfirmAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthBookingReserveConfirmResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthBookingReserveModifyAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthBookingReserveModifyAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthBookingReserveModifyResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthBookingReserveRiseAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthBookingReserveRiseAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthBookingReserveRiseResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthBookingReserveTreatAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthBookingReserveTreatAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthBookingReserveTreatResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthDentalBindAuditQueryAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthDentalBindAuditQueryAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthDentalBindAuditQueryResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthDentalItemBindAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthDentalItemBindAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthDentalItemBindResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthDentalItemListAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthDentalItemListAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthDentalItemListResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthDentalItemUnbindAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthDentalItemUnbindAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthDentalItemUnbindResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthDentalStatementQueryAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthDentalStatementQueryAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthDentalStatementQueryResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthDentalStoreAuditQueryAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthDentalStoreAuditQueryAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthDentalStoreAuditQueryResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthDentalStoreInsertorupdateAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthDentalStoreInsertorupdateAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthDentalStoreInsertorupdateResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthDentalStoreInvisibleConsumeUpdateResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthDocbaseUserinfoAlipayidGetResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthDruguseQueryAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthDruguseQueryAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthDruguseQueryResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthExaminationStockQueryAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthExaminationStockQueryAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthExaminationStockQueryResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthMedicalDepartmentSyncAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthMedicalDepartmentSyncAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthMedicalDepartmentSyncResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthMedicalDoctorSyncAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthMedicalDoctorSyncAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthMedicalDoctorSyncResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthMedicalHospitalSyncAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthMedicalHospitalSyncAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthMedicalHospitalSyncResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthMedicalRegisterWeiyiSyncAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthMedicalRegisterWeiyiSyncAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthMedicalRegisterWeiyiSyncResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncnewAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncnewAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncnewResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthMsAreaProvinceListAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthMsAreaProvinceListAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthMsAreaProvinceListResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthNocovAlldiseaseinfoGetAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthNocovAlldiseaseinfoGetAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthNocovAlldiseaseinfoGetResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthReserveDentalBindshopanditemAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthReserveDentalBindshopanditemAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthReserveDentalBindshopanditemResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthReserveDentalMarkitemAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthReserveDentalMarkitemAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthReserveDentalMarkitemResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthReserveDentalModifyrestimeAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthReserveDentalModifyrestimeAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthReserveDentalModifyrestimeResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthReserveDentalStoresanditemsAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthReserveDentalStoresanditemsAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthReserveDentalStoresanditemsResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthReserveDentalUnbinditemAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthReserveDentalUnbinditemAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthReserveDentalUnbinditemResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthStoreCertificateCreateAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthStoreCertificateCreateAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthStoreCertificateCreateResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodeplatformCodeActiveAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodeplatformCodeActiveAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthTracecodeplatformCodeActiveResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodeplatformCodeEntscanAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodeplatformCodeEntscanAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthTracecodeplatformCodeEntscanResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerBillResultSearchAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerBillResultSearchResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerBillUploadAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerBillUploadAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerBillUploadResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerChannelSearchAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerChannelSearchAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerChannelSearchResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerCodeActiveAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerCodeActiveAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerCodeActiveResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerCodeSingleCodereplaceResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerEntSearchAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerEntSearchAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerEntSearchResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerProductSearchAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerProductSearchAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerProductSearchResponse.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerWarehouseSearchAPIRequest.go create mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerWarehouseSearchAPIResponse.go delete mode 100644 model/alihealth2/AlibabaAlihealthTracecodesellerWarehouseSearchResponse.go create mode 100644 model/alihealth2/AlibabaFmhealthPressureReportCreateAPIRequest.go create mode 100644 model/alihealth2/AlibabaFmhealthPressureReportCreateAPIResponse.go delete mode 100644 model/alihealth2/AlibabaFmhealthPressureReportCreateResponse.go create mode 100644 model/alihealth2/AlibabaFmhealthWeightLossplanSyncweightdataAPIRequest.go create mode 100644 model/alihealth2/AlibabaFmhealthWeightLossplanSyncweightdataAPIResponse.go delete mode 100644 model/alihealth2/AlibabaFmhealthWeightLossplanSyncweightdataResponse.go create mode 100644 model/alihealth2/AlibabaHealthNrCepOrderQueryAPIRequest.go create mode 100644 model/alihealth2/AlibabaHealthNrCepOrderQueryAPIResponse.go delete mode 100644 model/alihealth2/AlibabaHealthNrCepOrderQueryResponse.go create mode 100644 model/alihealth2/AlibabaHealthNrCepOutorderUploadAPIRequest.go create mode 100644 model/alihealth2/AlibabaHealthNrCepOutorderUploadAPIResponse.go delete mode 100644 model/alihealth2/AlibabaHealthNrCepOutorderUploadResponse.go create mode 100644 model/alihealth2/AlibabaHealthNrCepWarstqtyBatchupdateAPIRequest.go create mode 100644 model/alihealth2/AlibabaHealthNrCepWarstqtyBatchupdateAPIResponse.go delete mode 100644 model/alihealth2/AlibabaHealthNrCepWarstqtyBatchupdateResponse.go create mode 100644 model/alihealth2/TaobaoDrugPriceBatchUpdateAPIRequest.go create mode 100644 model/alihealth2/TaobaoDrugPriceBatchUpdateAPIResponse.go delete mode 100644 model/alihealth2/TaobaoDrugPriceBatchUpdateResponse.go create mode 100644 model/alihealth2/TaobaoDrugPriceUpdateAPIRequest.go create mode 100644 model/alihealth2/TaobaoDrugPriceUpdateAPIResponse.go delete mode 100644 model/alihealth2/TaobaoDrugPriceUpdateResponse.go create mode 100644 model/alihealth2/TaobaoDrugQuantityBatchUpdateAPIRequest.go create mode 100644 model/alihealth2/TaobaoDrugQuantityBatchUpdateAPIResponse.go delete mode 100644 model/alihealth2/TaobaoDrugQuantityBatchUpdateResponse.go create mode 100644 model/alihealth2/TaobaoDrugQuantityUpdateAPIRequest.go create mode 100644 model/alihealth2/TaobaoDrugQuantityUpdateAPIResponse.go delete mode 100644 model/alihealth2/TaobaoDrugQuantityUpdateResponse.go create mode 100644 model/alihealth2/TaobaoDrugShopListAPIRequest.go create mode 100644 model/alihealth2/TaobaoDrugShopListAPIResponse.go delete mode 100644 model/alihealth2/TaobaoDrugShopListResponse.go create mode 100644 model/alihealth2/TaobaoTradeDrugConfirmorderAPIRequest.go create mode 100644 model/alihealth2/TaobaoTradeDrugConfirmorderAPIResponse.go delete mode 100644 model/alihealth2/TaobaoTradeDrugConfirmorderResponse.go create mode 100644 model/alihealth2/TaobaoTradeDrugGetAPIRequest.go create mode 100644 model/alihealth2/TaobaoTradeDrugGetAPIResponse.go delete mode 100644 model/alihealth2/TaobaoTradeDrugGetResponse.go create mode 100644 model/alihealth2/TaobaoTradeDrugOrderGetAPIRequest.go create mode 100644 model/alihealth2/TaobaoTradeDrugOrderGetAPIResponse.go delete mode 100644 model/alihealth2/TaobaoTradeDrugOrderGetResponse.go create mode 100644 model/alihealth2/TaobaoTradeDrugOrdersGetAPIRequest.go create mode 100644 model/alihealth2/TaobaoTradeDrugOrdersGetAPIResponse.go delete mode 100644 model/alihealth2/TaobaoTradeDrugOrdersGetResponse.go create mode 100644 model/alihealth2/TaobaoTradeDrugRefuseorderAPIRequest.go create mode 100644 model/alihealth2/TaobaoTradeDrugRefuseorderAPIResponse.go delete mode 100644 model/alihealth2/TaobaoTradeDrugRefuseorderResponse.go create mode 100644 model/alihealthalgo/AlibabaAlihealthAlgoMedicationSafetyGetAPIRequest.go create mode 100644 model/alihealthalgo/AlibabaAlihealthAlgoMedicationSafetyGetAPIResponse.go delete mode 100644 model/alihealthalgo/AlibabaAlihealthAlgoMedicationSafetyGetResponse.go create mode 100644 model/alihealthcert/AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest.go create mode 100644 model/alihealthcert/AlibabaAlihealthExaminationReserveCertificateNotifyAPIResponse.go delete mode 100644 model/alihealthcert/AlibabaAlihealthExaminationReserveCertificateNotifyResponse.go create mode 100644 model/alihealthcrm/AlibabaAlihealthAlipaypfmAssessResultSyncAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaAlihealthAlipaypfmAssessResultSyncAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaAlihealthAlipaypfmAssessResultSyncResponse.go create mode 100644 model/alihealthcrm/AlibabaAlihealthAlipaypfmConsumeRecordAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaAlihealthAlipaypfmConsumeRecordAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaAlihealthAlipaypfmConsumeRecordResponse.go create mode 100644 model/alihealthcrm/AlibabaAlihealthAlipaypfmDietRecordAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaAlihealthAlipaypfmDietRecordAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaAlihealthAlipaypfmDietRecordResponse.go create mode 100644 model/alihealthcrm/AlibabaAlihealthAlipaypfmOrderSyncAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaAlihealthAlipaypfmOrderSyncAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaAlihealthAlipaypfmOrderSyncResponse.go create mode 100644 model/alihealthcrm/AlibabaAlihealthAlipaypfmUseridDecryptAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaAlihealthAlipaypfmUseridDecryptAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaAlihealthAlipaypfmUseridDecryptResponse.go create mode 100644 model/alihealthcrm/AlibabaAlihealthBabyBaseinfoGetAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaAlihealthBabyBaseinfoGetAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaAlihealthBabyBaseinfoGetResponse.go create mode 100644 model/alihealthcrm/AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaAlihealthBabyBaseinfoOrderSyncAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaAlihealthBabyBaseinfoOrderSyncResponse.go create mode 100644 model/alihealthcrm/AlibabaAlihealthBabyRemindBatchSendAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaAlihealthBabyRemindBatchSendAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaAlihealthBabyRemindBatchSendResponse.go create mode 100644 model/alihealthcrm/AlibabaAlihealthDapHuaweiCardinfosAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaAlihealthDapHuaweiCardinfosAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaAlihealthDapHuaweiCardinfosResponse.go create mode 100644 model/alihealthcrm/AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaAlihealthMedicalbaseHospitalSyncAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaAlihealthMedicalbaseHospitalSyncResponse.go create mode 100644 model/alihealthcrm/AlibabaAlihealthPregnancyBaseinfoGetAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaAlihealthPregnancyBaseinfoGetAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaAlihealthPregnancyBaseinfoGetResponse.go create mode 100644 model/alihealthcrm/AlibabaAlihealthPregnancyDataSyncAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaAlihealthPregnancyDataSyncAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaAlihealthPregnancyDataSyncResponse.go create mode 100644 model/alihealthcrm/AlibabaAlihealthPregnancyNavigateinfoQueryAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaAlihealthPregnancyNavigateinfoQueryAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaAlihealthPregnancyNavigateinfoQueryResponse.go create mode 100644 model/alihealthcrm/AlibabaAlihealthPregnancyPostsDataAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaAlihealthPregnancyPostsDataAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaAlihealthPregnancyPostsDataResponse.go create mode 100644 model/alihealthcrm/AlibabaAlihealthPregnancyProductGetAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaAlihealthPregnancyProductGetAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaAlihealthPregnancyProductGetResponse.go create mode 100644 model/alihealthcrm/AlibabaAlihealthPregnancyTaginfoAddrankAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaAlihealthPregnancyTaginfoAddrankAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaAlihealthPregnancyTaginfoAddrankResponse.go create mode 100644 model/alihealthcrm/AlibabaAlihealthUicSwipefaceSyncdataAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaAlihealthUicSwipefaceSyncdataAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaAlihealthUicSwipefaceSyncdataResponse.go create mode 100644 model/alihealthcrm/AlibabaAlihealthUicUserinfoHealthidGetAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaAlihealthUicUserinfoHealthidGetAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaAlihealthUicUserinfoHealthidGetResponse.go create mode 100644 model/alihealthcrm/AlibabaAlihealthUserBaseinfoGetAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaAlihealthUserBaseinfoGetAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaAlihealthUserBaseinfoGetResponse.go create mode 100644 model/alihealthcrm/AlibabaFmhealthButlerEnergySyncAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaFmhealthButlerEnergySyncAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaFmhealthButlerEnergySyncResponse.go create mode 100644 model/alihealthcrm/AlibabaFmhealthWeightLossplanSynclossplanAPIRequest.go create mode 100644 model/alihealthcrm/AlibabaFmhealthWeightLossplanSynclossplanAPIResponse.go delete mode 100644 model/alihealthcrm/AlibabaFmhealthWeightLossplanSynclossplanResponse.go create mode 100644 model/alihealthlab/AlibabaAlihealthLabItemStoreRelationSyncAPIRequest.go create mode 100644 model/alihealthlab/AlibabaAlihealthLabItemStoreRelationSyncAPIResponse.go delete mode 100644 model/alihealthlab/AlibabaAlihealthLabItemStoreRelationSyncResponse.go create mode 100644 model/alihealthlab/AlibabaAlihealthLabItemSyncAPIRequest.go create mode 100644 model/alihealthlab/AlibabaAlihealthLabItemSyncAPIResponse.go delete mode 100644 model/alihealthlab/AlibabaAlihealthLabItemSyncResponse.go create mode 100644 model/alihealthlab/AlibabaAlihealthLabItemTbitemskuRelationSyncAPIRequest.go create mode 100644 model/alihealthlab/AlibabaAlihealthLabItemTbitemskuRelationSyncAPIResponse.go delete mode 100644 model/alihealthlab/AlibabaAlihealthLabItemTbitemskuRelationSyncResponse.go create mode 100644 model/alihealthlab/AlibabaAlihealthLabStoreSyncAPIRequest.go create mode 100644 model/alihealthlab/AlibabaAlihealthLabStoreSyncAPIResponse.go delete mode 100644 model/alihealthlab/AlibabaAlihealthLabStoreSyncResponse.go create mode 100644 model/alihealthlab/AlibabaAlihealthReservationOrderVerifyAPIRequest.go create mode 100644 model/alihealthlab/AlibabaAlihealthReservationOrderVerifyAPIResponse.go delete mode 100644 model/alihealthlab/AlibabaAlihealthReservationOrderVerifyResponse.go create mode 100644 model/alihealthmdeer/AlibabaAlihealthMdeerScienceDeletearticleAPIRequest.go create mode 100644 model/alihealthmdeer/AlibabaAlihealthMdeerScienceDeletearticleAPIResponse.go delete mode 100644 model/alihealthmdeer/AlibabaAlihealthMdeerScienceDeletearticleResponse.go create mode 100644 model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynVideoAPIRequest.go create mode 100644 model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynVideoAPIResponse.go delete mode 100644 model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynVideoResponse.go create mode 100644 model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynarticleAPIRequest.go create mode 100644 model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynarticleAPIResponse.go delete mode 100644 model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynarticleResponse.go create mode 100644 model/alihealthmdeer/AlibabaAlihealthMdeerVideoSyncAPIRequest.go create mode 100644 model/alihealthmdeer/AlibabaAlihealthMdeerVideoSyncAPIResponse.go delete mode 100644 model/alihealthmdeer/AlibabaAlihealthMdeerVideoSyncResponse.go create mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalDoctorMsgSendAPIRequest.go create mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalDoctorMsgSendAPIResponse.go delete mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalDoctorMsgSendResponse.go create mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalDoctorPublishAPIRequest.go create mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalDoctorPublishAPIResponse.go delete mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalDoctorPublishResponse.go create mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalImDataUploadAPIRequest.go create mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalImDataUploadAPIResponse.go delete mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalImDataUploadResponse.go create mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalItemPublishAPIRequest.go create mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalItemPublishAPIResponse.go delete mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalItemPublishResponse.go create mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalItemStatusAPIRequest.go create mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalItemStatusAPIResponse.go delete mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalItemStatusResponse.go create mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalOrderQueryAPIRequest.go create mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalOrderQueryAPIResponse.go delete mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalOrderQueryResponse.go create mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalOrderRefuseAPIRequest.go create mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalOrderRefuseAPIResponse.go delete mode 100644 model/alihealthmedical/AlibabaAlihealthMedicalOrderRefuseResponse.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionDetailAPIRequest.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionDetailAPIResponse.go delete mode 100644 model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionDetailResponse.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionSearchAPIRequest.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionSearchAPIResponse.go delete mode 100644 model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionSearchResponse.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthHealthRecordHaveAPIRequest.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthHealthRecordHaveAPIResponse.go delete mode 100644 model/alihealthoutflow/AlibabaAlihealthHealthRecordHaveResponse.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIRequest.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIResponse.go delete mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowDiagnosisSaveorupdateResponse.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowDrugSaveorupdateAPIRequest.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowDrugSaveorupdateAPIResponse.go delete mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowDrugSaveorupdateResponse.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowDrugSupervisionQueryAPIRequest.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowDrugSupervisionQueryAPIResponse.go delete mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowDrugSupervisionQueryResponse.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowGetbyverifycodeAPIRequest.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowGetbyverifycodeAPIResponse.go delete mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowGetbyverifycodeResponse.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowOperationinfoSyncAPIRequest.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowOperationinfoSyncAPIResponse.go delete mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowOperationinfoSyncResponse.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowPatientinfoSyncAPIRequest.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowPatientinfoSyncAPIResponse.go delete mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowPatientinfoSyncResponse.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionCreateAPIRequest.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionCreateAPIResponse.go delete mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionCreateResponse.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIRequest.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIResponse.go delete mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionHospitalVerifyResponse.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionSyncstatusAPIRequest.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionSyncstatusAPIResponse.go delete mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionSyncstatusResponse.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionUpdateAPIRequest.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionUpdateAPIResponse.go delete mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionUpdateResponse.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowUsageSaveorupdateAPIRequest.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowUsageSaveorupdateAPIResponse.go delete mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowUsageSaveorupdateResponse.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowVerifyAPIRequest.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowVerifyAPIResponse.go delete mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowVerifyResponse.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowVisitinfoSyncAPIRequest.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowVisitinfoSyncAPIResponse.go delete mode 100644 model/alihealthoutflow/AlibabaAlihealthOutflowVisitinfoSyncResponse.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthShortUrlGetAPIRequest.go create mode 100644 model/alihealthoutflow/AlibabaAlihealthShortUrlGetAPIResponse.go delete mode 100644 model/alihealthoutflow/AlibabaAlihealthShortUrlGetResponse.go create mode 100644 model/alihealthpw/AlibabaAlihealthPwApplynodeUpdateAPIRequest.go create mode 100644 model/alihealthpw/AlibabaAlihealthPwApplynodeUpdateAPIResponse.go delete mode 100644 model/alihealthpw/AlibabaAlihealthPwApplynodeUpdateResponse.go create mode 100644 model/alihealthpw/AlibabaAlihealthPwApplynodeUpdatenameAPIRequest.go create mode 100644 model/alihealthpw/AlibabaAlihealthPwApplynodeUpdatenameAPIResponse.go delete mode 100644 model/alihealthpw/AlibabaAlihealthPwApplynodeUpdatenameResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeBaseLabelSubmitAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeBaseLabelSubmitAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeBaseLabelSubmitResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeBusinessSyncAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeBusinessSyncAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeBusinessSyncResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeCouponSubmitAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeCouponSubmitAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeCouponSubmitResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeLayoutSyncAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeLayoutSyncAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeLayoutSyncResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeLineSyncAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeLineSyncAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeLineSyncResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeMetroSyncAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeMetroSyncAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeMetroSyncResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomePictureSyncAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomePictureSyncAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomePictureSyncResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectAdviserDeleteAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectAdviserDeleteAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectAdviserDeleteResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectAdviserSubmitAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectAdviserSubmitAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectAdviserSubmitResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectCooperationSubmitAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectCooperationSubmitAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectCooperationSubmitResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectDynamicDeleteAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectDynamicDeleteAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectDynamicDeleteResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectDynamicSubmitAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectDynamicSubmitAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectDynamicSubmitResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectLineAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectLineAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectLineResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectPhoneSubmitAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectPhoneSubmitAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectPhoneSubmitResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitDeleteResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitSubmitResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectQueryAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectQueryAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectQueryResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectSubmitAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectSubmitAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeProjectSubmitResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeRcChangestatusAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeRcChangestatusAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeRcChangestatusResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeRcSyncAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeRcSyncAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeRcSyncResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeRegionSyncAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeRegionSyncAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeRegionSyncResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeReviewChangestatusAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeReviewChangestatusAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeReviewChangestatusResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeReviewSyncAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeReviewSyncAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeReviewSyncResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeVideoChangestatusAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeVideoChangestatusAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeVideoChangestatusResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeVideoSyncAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeVideoSyncAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeVideoSyncResponse.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeVrSyncAPIRequest.go create mode 100644 model/alihouse/AlibabaAlihouseNewhomeVrSyncAPIResponse.go delete mode 100644 model/alihouse/AlibabaAlihouseNewhomeVrSyncResponse.go create mode 100644 model/alilabs/AlibabaAilabTbUserSkillOauthAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabTbUserSkillOauthAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabTbUserSkillOauthResponse.go create mode 100644 model/alilabs/AlibabaAilabUserAuthorizedCancelAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabUserAuthorizedCancelAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabUserAuthorizedCancelResponse.go create mode 100644 model/alilabs/AlibabaAilabUserAuthorizedQueryAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabUserAuthorizedQueryAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabUserAuthorizedQueryResponse.go create mode 100644 model/alilabs/AlibabaAilabUserOpenUidGetAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabUserOpenUidGetAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabUserOpenUidGetResponse.go create mode 100644 model/alilabs/AlibabaAilabUserProfileGetAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabUserProfileGetAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabUserProfileGetResponse.go create mode 100644 model/alilabs/AlibabaAilabUserTokenGetAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabUserTokenGetAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabUserTokenGetResponse.go create mode 100644 model/alilabs/AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabsIotDeviceListUpdateNotifyAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabsIotDeviceListUpdateNotifyResponse.go create mode 100644 model/alilabs/AlibabaAilabsIotDeviceStatusUpdateAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabsIotDeviceStatusUpdateAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabsIotDeviceStatusUpdateResponse.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthDeviceGetAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthDeviceGetResponse.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthDeviceListAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthDeviceListAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthDeviceListResponse.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateResponse.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthDeviceStatusGetResponse.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthDeviceUnbindAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthDeviceUnbindResponse.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetResponse.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthGetcodeAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthGetcodeAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthGetcodeResponse.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthGettokenAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthGettokenAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthGettokenResponse.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthRefreshAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthRefreshAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthRefreshResponse.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthSwitchuserAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthSwitchuserResponse.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthTaobaoauthAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabsTmallgenieAuthTaobaoauthResponse.go create mode 100644 model/alilabs/AlibabaAilabsTvsDeviceListAPIRequest.go create mode 100644 model/alilabs/AlibabaAilabsTvsDeviceListAPIResponse.go delete mode 100644 model/alilabs/AlibabaAilabsTvsDeviceListResponse.go create mode 100644 model/alilabs/TaobaoAilabAicloudTopHotwordsGetAPIRequest.go create mode 100644 model/alilabs/TaobaoAilabAicloudTopHotwordsGetAPIResponse.go delete mode 100644 model/alilabs/TaobaoAilabAicloudTopHotwordsGetResponse.go create mode 100644 model/alilabs/TaobaoAilabAicloudTopHotwordsUpdateAPIRequest.go create mode 100644 model/alilabs/TaobaoAilabAicloudTopHotwordsUpdateAPIResponse.go delete mode 100644 model/alilabs/TaobaoAilabAicloudTopHotwordsUpdateResponse.go create mode 100644 model/alilabs/TaobaoAilabAicloudTopSkilsListNewAPIRequest.go create mode 100644 model/alilabs/TaobaoAilabAicloudTopSkilsListNewAPIResponse.go delete mode 100644 model/alilabs/TaobaoAilabAicloudTopSkilsListNewResponse.go create mode 100644 model/alime/TaobaoAlimeUserTokenAdvanceGetAPIRequest.go create mode 100644 model/alime/TaobaoAlimeUserTokenAdvanceGetAPIResponse.go delete mode 100644 model/alime/TaobaoAlimeUserTokenAdvanceGetResponse.go create mode 100644 model/alime/TaobaoAlimeUserTokenGetAPIRequest.go create mode 100644 model/alime/TaobaoAlimeUserTokenGetAPIResponse.go delete mode 100644 model/alime/TaobaoAlimeUserTokenGetResponse.go create mode 100644 model/alimember/AlibabaMemberCheckmerchantAPIRequest.go create mode 100644 model/alimember/AlibabaMemberCheckmerchantAPIResponse.go delete mode 100644 model/alimember/AlibabaMemberCheckmerchantResponse.go create mode 100644 model/alimember/AlibabaMemberIdentityRescindfinishAPIRequest.go create mode 100644 model/alimember/AlibabaMemberIdentityRescindfinishAPIResponse.go delete mode 100644 model/alimember/AlibabaMemberIdentityRescindfinishResponse.go create mode 100644 model/alimember/AlibabaMemberIdentitySignfinishAPIRequest.go create mode 100644 model/alimember/AlibabaMemberIdentitySignfinishAPIResponse.go delete mode 100644 model/alimember/AlibabaMemberIdentitySignfinishResponse.go create mode 100644 model/alimember/AlibabaMemberIdentitySyncAPIRequest.go create mode 100644 model/alimember/AlibabaMemberIdentitySyncAPIResponse.go delete mode 100644 model/alimember/AlibabaMemberIdentitySyncResponse.go create mode 100644 model/alimember/AlibabaMemberSyncAPIRequest.go create mode 100644 model/alimember/AlibabaMemberSyncAPIResponse.go delete mode 100644 model/alimember/AlibabaMemberSyncResponse.go create mode 100644 model/alimsg/AlibabaIdleOrderMsgSendAPIRequest.go create mode 100644 model/alimsg/AlibabaIdleOrderMsgSendAPIResponse.go delete mode 100644 model/alimsg/AlibabaIdleOrderMsgSendResponse.go create mode 100644 model/alimsg/AlibabaLegMsgPostAPIRequest.go create mode 100644 model/alimsg/AlibabaLegMsgPostAPIResponse.go delete mode 100644 model/alimsg/AlibabaLegMsgPostResponse.go create mode 100644 model/alink/AlibabaAlinkDeviceBindAPIRequest.go create mode 100644 model/alink/AlibabaAlinkDeviceBindAPIResponse.go delete mode 100644 model/alink/AlibabaAlinkDeviceBindResponse.go create mode 100644 model/alink/AlibabaAlinkDeviceDetailGetAPIRequest.go create mode 100644 model/alink/AlibabaAlinkDeviceDetailGetAPIResponse.go delete mode 100644 model/alink/AlibabaAlinkDeviceDetailGetResponse.go create mode 100644 model/alink/AlibabaAlinkDeviceInfoUpdateAPIRequest.go create mode 100644 model/alink/AlibabaAlinkDeviceInfoUpdateAPIResponse.go delete mode 100644 model/alink/AlibabaAlinkDeviceInfoUpdateResponse.go create mode 100644 model/alink/AlibabaAlinkDeviceUnbindAPIRequest.go create mode 100644 model/alink/AlibabaAlinkDeviceUnbindAPIResponse.go delete mode 100644 model/alink/AlibabaAlinkDeviceUnbindResponse.go create mode 100644 model/alink/AlibabaAlinkDeviceUnifyStatusGetAPIRequest.go create mode 100644 model/alink/AlibabaAlinkDeviceUnifyStatusGetAPIResponse.go delete mode 100644 model/alink/AlibabaAlinkDeviceUnifyStatusGetResponse.go create mode 100644 model/alink/AlibabaAlinkDeviceUnifyStatusSetAPIRequest.go create mode 100644 model/alink/AlibabaAlinkDeviceUnifyStatusSetAPIResponse.go delete mode 100644 model/alink/AlibabaAlinkDeviceUnifyStatusSetResponse.go create mode 100644 model/alink/AlibabaAlinkMessageConfigListAPIRequest.go create mode 100644 model/alink/AlibabaAlinkMessageConfigListAPIResponse.go delete mode 100644 model/alink/AlibabaAlinkMessageConfigListResponse.go create mode 100644 model/alink/AlibabaAlinkMessageConfigSetAPIRequest.go create mode 100644 model/alink/AlibabaAlinkMessageConfigSetAPIResponse.go delete mode 100644 model/alink/AlibabaAlinkMessageConfigSetResponse.go create mode 100644 model/alink/AlibabaAlinkMessageHistoryCountAPIRequest.go create mode 100644 model/alink/AlibabaAlinkMessageHistoryCountAPIResponse.go delete mode 100644 model/alink/AlibabaAlinkMessageHistoryCountResponse.go create mode 100644 model/alink/AlibabaAlinkMessageHistoryListAPIRequest.go create mode 100644 model/alink/AlibabaAlinkMessageHistoryListAPIResponse.go delete mode 100644 model/alink/AlibabaAlinkMessageHistoryListResponse.go create mode 100644 model/alink/AliyunAlinkDataStatReportAPIRequest.go create mode 100644 model/alink/AliyunAlinkDataStatReportAPIResponse.go delete mode 100644 model/alink/AliyunAlinkDataStatReportResponse.go create mode 100644 model/alink/AliyunAlinkOpendataUrlQueryAPIRequest.go create mode 100644 model/alink/AliyunAlinkOpendataUrlQueryAPIResponse.go delete mode 100644 model/alink/AliyunAlinkOpendataUrlQueryResponse.go create mode 100644 model/aliospay/AliyunAliosPayRecordListAPIRequest.go create mode 100644 model/aliospay/AliyunAliosPayRecordListAPIResponse.go delete mode 100644 model/aliospay/AliyunAliosPayRecordListResponse.go create mode 100644 model/aliospay/AliyunAliosPayRefundAPIRequest.go create mode 100644 model/aliospay/AliyunAliosPayRefundAPIResponse.go delete mode 100644 model/aliospay/AliyunAliosPayRefundResponse.go create mode 100644 model/aliospay/AliyunAliosPayTokenGetAPIRequest.go create mode 100644 model/aliospay/AliyunAliosPayTokenGetAPIResponse.go delete mode 100644 model/aliospay/AliyunAliosPayTokenGetResponse.go create mode 100644 model/aliospay/AliyunAliosPayTradeQueryAPIRequest.go create mode 100644 model/aliospay/AliyunAliosPayTradeQueryAPIResponse.go delete mode 100644 model/aliospay/AliyunAliosPayTradeQueryResponse.go create mode 100644 model/aliqin/AlibabaAliqinFcIotCardInfoAPIRequest.go create mode 100644 model/aliqin/AlibabaAliqinFcIotCardInfoAPIResponse.go delete mode 100644 model/aliqin/AlibabaAliqinFcIotCardInfoResponse.go create mode 100644 model/aliqin/AlibabaAliqinFcIotCardStatusAPIRequest.go create mode 100644 model/aliqin/AlibabaAliqinFcIotCardStatusAPIResponse.go delete mode 100644 model/aliqin/AlibabaAliqinFcIotCardStatusResponse.go create mode 100644 model/aliqin/AlibabaAliqinFcIotCardofferAPIRequest.go create mode 100644 model/aliqin/AlibabaAliqinFcIotCardofferAPIResponse.go delete mode 100644 model/aliqin/AlibabaAliqinFcIotCardofferResponse.go create mode 100644 model/aliqin/AlibabaAliqinFcIotDeviceIsexistAPIRequest.go create mode 100644 model/aliqin/AlibabaAliqinFcIotDeviceIsexistAPIResponse.go delete mode 100644 model/aliqin/AlibabaAliqinFcIotDeviceIsexistResponse.go create mode 100644 model/aliqin/AlibabaAliqinFcIotDevicePostAPIRequest.go create mode 100644 model/aliqin/AlibabaAliqinFcIotDevicePostAPIResponse.go delete mode 100644 model/aliqin/AlibabaAliqinFcIotDevicePostResponse.go create mode 100644 model/aliqin/AlibabaAliqinFcIotModbindAPIRequest.go create mode 100644 model/aliqin/AlibabaAliqinFcIotModbindAPIResponse.go delete mode 100644 model/aliqin/AlibabaAliqinFcIotModbindResponse.go create mode 100644 model/aliqin/AlibabaAliqinFcIotQryPersoninfoAPIRequest.go create mode 100644 model/aliqin/AlibabaAliqinFcIotQryPersoninfoAPIResponse.go delete mode 100644 model/aliqin/AlibabaAliqinFcIotQryPersoninfoResponse.go create mode 100644 model/aliqin/AlibabaAliqinFcIotQrycardAPIRequest.go create mode 100644 model/aliqin/AlibabaAliqinFcIotQrycardAPIResponse.go delete mode 100644 model/aliqin/AlibabaAliqinFcIotQrycardResponse.go create mode 100644 model/aliqin/AlibabaAliqinFcIotRechargeCardAPIRequest.go create mode 100644 model/aliqin/AlibabaAliqinFcIotRechargeCardAPIResponse.go delete mode 100644 model/aliqin/AlibabaAliqinFcIotRechargeCardResponse.go create mode 100644 model/aliqin/AlibabaAliqinFcIotSmsSendAPIRequest.go create mode 100644 model/aliqin/AlibabaAliqinFcIotSmsSendAPIResponse.go delete mode 100644 model/aliqin/AlibabaAliqinFcIotSmsSendResponse.go create mode 100644 model/aliqin/AlibabaAliqinFcIotUseroscontrolAPIRequest.go create mode 100644 model/aliqin/AlibabaAliqinFcIotUseroscontrolAPIResponse.go delete mode 100644 model/aliqin/AlibabaAliqinFcIotUseroscontrolResponse.go create mode 100644 model/aliqin/AlibabaAliqinFcIvrNumCallAPIRequest.go create mode 100644 model/aliqin/AlibabaAliqinFcIvrNumCallAPIResponse.go delete mode 100644 model/aliqin/AlibabaAliqinFcIvrNumCallResponse.go create mode 100644 model/aliqin/AlibabaAliqinFcSmsNumQueryAPIRequest.go create mode 100644 model/aliqin/AlibabaAliqinFcSmsNumQueryAPIResponse.go delete mode 100644 model/aliqin/AlibabaAliqinFcSmsNumQueryResponse.go create mode 100644 model/aliqin/AlibabaAliqinFcSmsNumSendAPIRequest.go create mode 100644 model/aliqin/AlibabaAliqinFcSmsNumSendAPIResponse.go delete mode 100644 model/aliqin/AlibabaAliqinFcSmsNumSendResponse.go create mode 100644 model/aliqin/AlibabaAliqinFcTtsNumSinglecallAPIRequest.go create mode 100644 model/aliqin/AlibabaAliqinFcTtsNumSinglecallAPIResponse.go delete mode 100644 model/aliqin/AlibabaAliqinFcTtsNumSinglecallResponse.go create mode 100644 model/aliqin/AlibabaAliqinFcVoiceNumDoublecallAPIRequest.go create mode 100644 model/aliqin/AlibabaAliqinFcVoiceNumDoublecallAPIResponse.go delete mode 100644 model/aliqin/AlibabaAliqinFcVoiceNumDoublecallResponse.go create mode 100644 model/aliqin/AlibabaAliqinFcVoiceNumSinglecallAPIRequest.go create mode 100644 model/aliqin/AlibabaAliqinFcVoiceNumSinglecallAPIResponse.go delete mode 100644 model/aliqin/AlibabaAliqinFcVoiceNumSinglecallResponse.go create mode 100644 model/aliqin/AlibabaAliyunindepDigitalsmsCreatetemplateAPIRequest.go create mode 100644 model/aliqin/AlibabaAliyunindepDigitalsmsCreatetemplateAPIResponse.go delete mode 100644 model/aliqin/AlibabaAliyunindepDigitalsmsCreatetemplateResponse.go create mode 100644 model/aliqin/AlibabaIsvDigitalsmsCreatetemplateAPIRequest.go create mode 100644 model/aliqin/AlibabaIsvDigitalsmsCreatetemplateAPIResponse.go delete mode 100644 model/aliqin/AlibabaIsvDigitalsmsCreatetemplateResponse.go create mode 100644 model/alisports/AlibabaAlisportsDataSportsSyncmatchdataAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsDataSportsSyncmatchdataAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsDataSportsSyncmatchdataResponse.go create mode 100644 model/alisports/AlibabaAlisportsDataSportsSyncsleepdataAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsDataSportsSyncsleepdataAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsDataSportsSyncsleepdataResponse.go create mode 100644 model/alisports/AlibabaAlisportsDataSportsSyncsportsdataAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsDataSportsSyncsportsdataAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsDataSportsSyncsportsdataResponse.go create mode 100644 model/alisports/AlibabaAlisportsDataSportsSyncstatdataAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsDataSportsSyncstatdataAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsDataSportsSyncstatdataResponse.go create mode 100644 model/alisports/AlibabaAlisportsDataSportsSyncuserdataAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsDataSportsSyncuserdataAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsDataSportsSyncuserdataResponse.go create mode 100644 model/alisports/AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsDatacenterDatasyncFatscaledataAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsDatacenterDatasyncFatscaledataResponse.go create mode 100644 model/alisports/AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsDatacenterDatasyncSportsdatasAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsDatacenterDatasyncSportsdatasResponse.go create mode 100644 model/alisports/AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsDatacenterDatasyncTreadmillAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsDatacenterDatasyncTreadmillResponse.go create mode 100644 model/alisports/AlibabaAlisportsEfspCountsubsidyAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsEfspCountsubsidyAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsEfspCountsubsidyResponse.go create mode 100644 model/alisports/AlibabaAlisportsEfspGetuserinfoAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsEfspGetuserinfoAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsEfspGetuserinfoResponse.go create mode 100644 model/alisports/AlibabaAlisportsEfspUsercancelorderAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsEfspUsercancelorderAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsEfspUsercancelorderResponse.go create mode 100644 model/alisports/AlibabaAlisportsEfspUserplaceorderAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsEfspUserplaceorderAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsEfspUserplaceorderResponse.go create mode 100644 model/alisports/AlibabaAlisportsEfspUserwriteoffAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsEfspUserwriteoffAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsEfspUserwriteoffResponse.go create mode 100644 model/alisports/AlibabaAlisportsLdlserverWxeventPostAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsLdlserverWxeventPostAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsLdlserverWxeventPostResponse.go create mode 100644 model/alisports/AlibabaAlisportsPassportAccountBindthirdidAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsPassportAccountBindthirdidAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsPassportAccountBindthirdidResponse.go create mode 100644 model/alisports/AlibabaAlisportsPassportAccountCheckmobileAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsPassportAccountCheckmobileAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsPassportAccountCheckmobileResponse.go create mode 100644 model/alisports/AlibabaAlisportsPassportAccountDelrelationAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsPassportAccountDelrelationAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsPassportAccountDelrelationResponse.go create mode 100644 model/alisports/AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsPassportAccountGetaccountinfoAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsPassportAccountGetaccountinfoResponse.go create mode 100644 model/alisports/AlibabaAlisportsPassportAccountSsotokenrefreshAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsPassportAccountSsotokenrefreshAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsPassportAccountSsotokenrefreshResponse.go create mode 100644 model/alisports/AlibabaAlisportsPassportAccountSsotokenvalidateAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsPassportAccountSsotokenvalidateAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsPassportAccountSsotokenvalidateResponse.go create mode 100644 model/alisports/AlibabaAlisportsPassportAccountTokenvalidateAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsPassportAccountTokenvalidateAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsPassportAccountTokenvalidateResponse.go create mode 100644 model/alisports/AlibabaAlisportsPassportOauthAlipaygrantAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsPassportOauthAlipaygrantAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsPassportOauthAlipaygrantResponse.go create mode 100644 model/alisports/AlibabaAlisportsPassportOauthTokenvalidateAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsPassportOauthTokenvalidateAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsPassportOauthTokenvalidateResponse.go create mode 100644 model/alisports/AlibabaAlisportsPassportParterSynccardAPIRequest.go create mode 100644 model/alisports/AlibabaAlisportsPassportParterSynccardAPIResponse.go delete mode 100644 model/alisports/AlibabaAlisportsPassportParterSynccardResponse.go create mode 100644 model/alitripbp/AlitripBpCouponinfoSyncAPIRequest.go create mode 100644 model/alitripbp/AlitripBpCouponinfoSyncAPIResponse.go delete mode 100644 model/alitripbp/AlitripBpCouponinfoSyncResponse.go create mode 100644 model/alitripcar/AlitripCarInvoiceConfirmAPIRequest.go create mode 100644 model/alitripcar/AlitripCarInvoiceConfirmAPIResponse.go delete mode 100644 model/alitripcar/AlitripCarInvoiceConfirmResponse.go create mode 100644 model/alitripcar/TaobaoAlitripCarOrderAgentCancelAPIRequest.go create mode 100644 model/alitripcar/TaobaoAlitripCarOrderAgentCancelAPIResponse.go delete mode 100644 model/alitripcar/TaobaoAlitripCarOrderAgentCancelResponse.go create mode 100644 model/alitripcar/TaobaoAlitripCarOrderRefundAPIRequest.go create mode 100644 model/alitripcar/TaobaoAlitripCarOrderRefundAPIResponse.go delete mode 100644 model/alitripcar/TaobaoAlitripCarOrderRefundResponse.go create mode 100644 model/alitripdivisions/AlitripPlatformDivisionsGetdivisionbynameAPIRequest.go create mode 100644 model/alitripdivisions/AlitripPlatformDivisionsGetdivisionbynameAPIResponse.go delete mode 100644 model/alitripdivisions/AlitripPlatformDivisionsGetdivisionbynameResponse.go create mode 100644 model/alitripdivisions/AlitripPlatformDivisionsQuerybyparentidAPIRequest.go create mode 100644 model/alitripdivisions/AlitripPlatformDivisionsQuerybyparentidAPIResponse.go delete mode 100644 model/alitripdivisions/AlitripPlatformDivisionsQuerybyparentidResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyBrandSearchAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyBrandSearchAPIResponse.go delete mode 100644 model/alitripmerchant/AlitripMerchantGalaxyBrandSearchResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyCityLikeAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyCityLikeAPIResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyCityListAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyCityListAPIResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyHotelDetailSearchAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyHotelDetailSearchAPIResponse.go delete mode 100644 model/alitripmerchant/AlitripMerchantGalaxyHotelDetailSearchResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyHotelListSearchAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyHotelListSearchAPIResponse.go delete mode 100644 model/alitripmerchant/AlitripMerchantGalaxyHotelListSearchResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyMemberCardAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyMemberCardAPIResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyMemberLogoutAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyMemberLogoutAPIResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyMemberProviderRegisterAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyMemberProviderRegisterAPIResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyMemberQueryAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyMemberQueryAPIResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyMemberRegisterAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyMemberRegisterAPIResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyMemberTokenAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyMemberTokenAPIResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyOfferQueryAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyOfferQueryAPIResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyOrderBookAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyOrderBookAPIResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyOrderCancelAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyOrderCancelAPIResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyOrderListQueryAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyOrderListQueryAPIResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyOrderQueryAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyOrderQueryAPIResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyOrderValidateAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyOrderValidateAPIResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyPaymentParamQueryAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyPaymentParamQueryAPIResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyProviderMemberQueryAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyProviderMemberQueryAPIResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyShareGetAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyShareGetAPIResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyWechatInfoAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyWechatInfoAPIResponse.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyWechatLoginAPIRequest.go create mode 100644 model/alitripmerchant/AlitripMerchantGalaxyWechatLoginAPIResponse.go create mode 100644 model/alitrippoi/AlitripPlatformContentRawAddAPIRequest.go create mode 100644 model/alitrippoi/AlitripPlatformContentRawAddAPIResponse.go delete mode 100644 model/alitrippoi/AlitripPlatformContentRawAddResponse.go create mode 100644 model/alitrippoi/AlitripPlatformPoiRawFeedAPIRequest.go create mode 100644 model/alitrippoi/AlitripPlatformPoiRawFeedAPIResponse.go delete mode 100644 model/alitrippoi/AlitripPlatformPoiRawFeedResponse.go create mode 100644 model/alitrippoi/AlitripPlatformPoiRawPoioutAPIRequest.go create mode 100644 model/alitrippoi/AlitripPlatformPoiRawPoioutAPIResponse.go delete mode 100644 model/alitrippoi/AlitripPlatformPoiRawPoioutResponse.go create mode 100644 model/alitrippoi/AlitripPlatformPoiRawPoioutbypoiidsAPIRequest.go create mode 100644 model/alitrippoi/AlitripPlatformPoiRawPoioutbypoiidsAPIResponse.go delete mode 100644 model/alitrippoi/AlitripPlatformPoiRawPoioutbypoiidsResponse.go create mode 100644 model/alitrippoi/AlitripPlatformPoiRawSaverawpoiAPIRequest.go create mode 100644 model/alitrippoi/AlitripPlatformPoiRawSaverawpoiAPIResponse.go delete mode 100644 model/alitrippoi/AlitripPlatformPoiRawSaverawpoiResponse.go create mode 100644 model/alitripreceipt/AlitripReceiptSellerInvoiceQueryAPIRequest.go create mode 100644 model/alitripreceipt/AlitripReceiptSellerInvoiceQueryAPIResponse.go delete mode 100644 model/alitripreceipt/AlitripReceiptSellerInvoiceQueryResponse.go create mode 100644 model/alitripreceipt/AlitripReceiptSellerInvoiceRedAPIRequest.go create mode 100644 model/alitripreceipt/AlitripReceiptSellerInvoiceRedAPIResponse.go delete mode 100644 model/alitripreceipt/AlitripReceiptSellerInvoiceRedResponse.go create mode 100644 model/alitripreceipt/AlitripReceiptSellerInvoiceReturnAPIRequest.go create mode 100644 model/alitripreceipt/AlitripReceiptSellerInvoiceReturnAPIResponse.go delete mode 100644 model/alitripreceipt/AlitripReceiptSellerInvoiceReturnResponse.go create mode 100644 model/aliyun/AccountAliyuncsComCreateAliyunAccount2013_07_01APIRequest.go create mode 100644 model/aliyun/AccountAliyuncsComCreateAliyunAccount2013_07_01APIResponse.go delete mode 100644 model/aliyun/AccountAliyuncsComCreateAliyunAccount2013_07_01Response.go create mode 100644 model/aliyun/AccountAliyuncsComCreateAliyunAccountForBid2013_07_01APIRequest.go create mode 100644 model/aliyun/AccountAliyuncsComCreateAliyunAccountForBid2013_07_01APIResponse.go delete mode 100644 model/aliyun/AccountAliyuncsComCreateAliyunAccountForBid2013_07_01Response.go create mode 100644 model/aliyun/AccountAliyuncsComCreateApp2013_07_01APIRequest.go create mode 100644 model/aliyun/AccountAliyuncsComCreateApp2013_07_01APIResponse.go delete mode 100644 model/aliyun/AccountAliyuncsComCreateApp2013_07_01Response.go create mode 100644 model/aliyun/AccountAliyuncsComCreateAppForBid2013_07_01APIRequest.go create mode 100644 model/aliyun/AccountAliyuncsComCreateAppForBid2013_07_01APIResponse.go delete mode 100644 model/aliyun/AccountAliyuncsComCreateAppForBid2013_07_01Response.go create mode 100644 model/aliyun/AccountAliyuncsComDeleteAppForBid2013_07_01APIRequest.go create mode 100644 model/aliyun/AccountAliyuncsComDeleteAppForBid2013_07_01APIResponse.go delete mode 100644 model/aliyun/AccountAliyuncsComDeleteAppForBid2013_07_01Response.go create mode 100644 model/aliyun/AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01APIRequest.go create mode 100644 model/aliyun/AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01APIResponse.go delete mode 100644 model/aliyun/AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01Response.go create mode 100644 model/aliyun/OdpsAliyuncsComDescribeOdpsService2014_12_15APIRequest.go create mode 100644 model/aliyun/OdpsAliyuncsComDescribeOdpsService2014_12_15APIResponse.go delete mode 100644 model/aliyun/OdpsAliyuncsComDescribeOdpsService2014_12_15Response.go create mode 100644 model/aliyun/PushAliyuncsComPush20150518APIRequest.go create mode 100644 model/aliyun/PushAliyuncsComPush20150518APIResponse.go delete mode 100644 model/aliyun/PushAliyuncsComPush20150518Response.go create mode 100644 model/aliyun/PushAliyuncsComPushMsg2015_03_18APIRequest.go create mode 100644 model/aliyun/PushAliyuncsComPushMsg2015_03_18APIResponse.go delete mode 100644 model/aliyun/PushAliyuncsComPushMsg2015_03_18Response.go create mode 100644 model/aliyun/PushAliyuncsComPushNotification2015_03_18APIRequest.go create mode 100644 model/aliyun/PushAliyuncsComPushNotification2015_03_18APIResponse.go delete mode 100644 model/aliyun/PushAliyuncsComPushNotification2015_03_18Response.go create mode 100644 model/aliyun/SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIRequest.go create mode 100644 model/aliyun/SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIResponse.go delete mode 100644 model/aliyun/SlbAliyuncsComDeleteLoadBalancerListener2013_02_21Response.go create mode 100644 model/aliyun/SlbAliyuncsComDescribeBackendServers2013_02_21APIRequest.go create mode 100644 model/aliyun/SlbAliyuncsComDescribeBackendServers2013_02_21APIResponse.go delete mode 100644 model/aliyun/SlbAliyuncsComDescribeBackendServers2013_02_21Response.go create mode 100644 model/aliyun/SlbAliyuncsComSetLoadBalancerName2013_02_21APIRequest.go create mode 100644 model/aliyun/SlbAliyuncsComSetLoadBalancerName2013_02_21APIResponse.go delete mode 100644 model/aliyun/SlbAliyuncsComSetLoadBalancerName2013_02_21Response.go create mode 100644 model/aliyunocs/M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest.go create mode 100644 model/aliyunocs/M_kvstoreAliyuncsComCreateInstance2015_03_01APIResponse.go delete mode 100644 model/aliyunocs/M_kvstoreAliyuncsComCreateInstance2015_03_01Response.go create mode 100644 model/aliyunocs/M_kvstoreAliyuncsComDescribeRegions2015_03_01APIRequest.go create mode 100644 model/aliyunocs/M_kvstoreAliyuncsComDescribeRegions2015_03_01APIResponse.go delete mode 100644 model/aliyunocs/M_kvstoreAliyuncsComDescribeRegions2015_03_01Response.go create mode 100644 model/alsc/AlibabaAlscChudaTemplateSendAPIRequest.go create mode 100644 model/alsc/AlibabaAlscChudaTemplateSendAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscChudaTemplateSendResponse.go create mode 100644 model/alsc/AlibabaAlscCrmCardActiveAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmCardActiveAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmCardActiveResponse.go create mode 100644 model/alsc/AlibabaAlscCrmCardBatchActiveAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmCardBatchActiveAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmCardBatchActiveResponse.go create mode 100644 model/alsc/AlibabaAlscCrmCardBatchSellAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmCardBatchSellAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmCardBatchSellResponse.go create mode 100644 model/alsc/AlibabaAlscCrmCardBindcardAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmCardBindcardAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmCardBindcardResponse.go create mode 100644 model/alsc/AlibabaAlscCrmCardBindcustomerAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmCardBindcustomerAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmCardBindcustomerResponse.go create mode 100644 model/alsc/AlibabaAlscCrmCardOpenAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmCardOpenAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmCardOpenResponse.go create mode 100644 model/alsc/AlibabaAlscCrmCardPagetmpAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmCardPagetmpAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmCardPagetmpResponse.go create mode 100644 model/alsc/AlibabaAlscCrmCardQryAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmCardQryAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmCardQryResponse.go create mode 100644 model/alsc/AlibabaAlscCrmCardQryphysicalAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmCardQryphysicalAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmCardQryphysicalResponse.go create mode 100644 model/alsc/AlibabaAlscCrmCardQueryTemplateAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmCardQueryTemplateAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmCardQueryTemplateResponse.go create mode 100644 model/alsc/AlibabaAlscCrmCardSearchcardAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmCardSearchcardAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmCardSearchcardResponse.go create mode 100644 model/alsc/AlibabaAlscCrmCustomerCheckppwAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmCustomerCheckppwAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmCustomerCheckppwResponse.go create mode 100644 model/alsc/AlibabaAlscCrmCustomerCreateAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmCustomerCreateAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmCustomerCreateResponse.go create mode 100644 model/alsc/AlibabaAlscCrmCustomerGetAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmCustomerGetAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmCustomerGetResponse.go create mode 100644 model/alsc/AlibabaAlscCrmCustomerResetppwAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmCustomerResetppwAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmCustomerResetppwResponse.go create mode 100644 model/alsc/AlibabaAlscCrmCustomerUpdateAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmCustomerUpdateAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmCustomerUpdateResponse.go create mode 100644 model/alsc/AlibabaAlscCrmCustomerUpdateppwAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmCustomerUpdateppwAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmCustomerUpdateppwResponse.go create mode 100644 model/alsc/AlibabaAlscCrmCustomerVoucherListAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmCustomerVoucherListAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmCustomerVoucherListResponse.go create mode 100644 model/alsc/AlibabaAlscCrmMarketingEncryptAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmMarketingEncryptAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmMarketingEncryptResponse.go create mode 100644 model/alsc/AlibabaAlscCrmMarketingIssueVoucherAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmMarketingIssueVoucherAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmMarketingIssueVoucherResponse.go create mode 100644 model/alsc/AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmMarketingShareCustomerInfoAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmMarketingShareCustomerInfoResponse.go create mode 100644 model/alsc/AlibabaAlscCrmMenuListAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmMenuListAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmMenuListResponse.go create mode 100644 model/alsc/AlibabaAlscCrmOpenAssertRefundAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmOpenAssertRefundAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmOpenAssertRefundResponse.go create mode 100644 model/alsc/AlibabaAlscCrmOpenAssertVerifyAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmOpenAssertVerifyAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmOpenAssertVerifyResponse.go create mode 100644 model/alsc/AlibabaAlscCrmOpenCustomerGetAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmOpenCustomerGetAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmOpenCustomerGetResponse.go create mode 100644 model/alsc/AlibabaAlscCrmOpenCustomerSaveAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmOpenCustomerSaveAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmOpenCustomerSaveResponse.go create mode 100644 model/alsc/AlibabaAlscCrmOpenOrderBackflowAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmOpenOrderBackflowAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmOpenOrderBackflowResponse.go create mode 100644 model/alsc/AlibabaAlscCrmOpenPointOperateAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmOpenPointOperateAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmOpenPointOperateResponse.go create mode 100644 model/alsc/AlibabaAlscCrmOpenRechargeOperateAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmOpenRechargeOperateAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmOpenRechargeOperateResponse.go create mode 100644 model/alsc/AlibabaAlscCrmOpenRuleGetAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmOpenRuleGetAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmOpenRuleGetResponse.go create mode 100644 model/alsc/AlibabaAlscCrmPointCalAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmPointCalAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmPointCalResponse.go create mode 100644 model/alsc/AlibabaAlscCrmPointChkpntbypayAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmPointChkpntbypayAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmPointChkpntbypayResponse.go create mode 100644 model/alsc/AlibabaAlscCrmPointConsumepointAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmPointConsumepointAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmPointConsumepointResponse.go create mode 100644 model/alsc/AlibabaAlscCrmPointExtraConsumeAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmPointExtraConsumeAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmPointExtraConsumeResponse.go create mode 100644 model/alsc/AlibabaAlscCrmPointExtrachargeAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmPointExtrachargeAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmPointExtrachargeResponse.go create mode 100644 model/alsc/AlibabaAlscCrmPointQuerypointflowAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmPointQuerypointflowAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmPointQuerypointflowResponse.go create mode 100644 model/alsc/AlibabaAlscCrmPointReversepointAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmPointReversepointAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmPointReversepointResponse.go create mode 100644 model/alsc/AlibabaAlscCrmPointRuleGetAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmPointRuleGetAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmPointRuleGetResponse.go create mode 100644 model/alsc/AlibabaAlscCrmPromotionListAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmPromotionListAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmPromotionListResponse.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeAccountFlowdetailGetAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeAccountFlowdetailGetAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmRechargeAccountFlowdetailGetResponse.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeAccountGetAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeAccountGetAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmRechargeAccountGetResponse.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeAccountflowsGetAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeAccountflowsGetAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmRechargeAccountflowsGetResponse.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeChargeUpdateAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeChargeUpdateAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmRechargeChargeUpdateResponse.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeChargeprecheckGetAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeChargeprecheckGetAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmRechargeChargeprecheckGetResponse.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeDedutUpdateAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeDedutUpdateAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmRechargeDedutUpdateResponse.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeDedutprecheckGetAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeDedutprecheckGetAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmRechargeDedutprecheckGetResponse.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeQryruleAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeQryruleAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmRechargeQryruleResponse.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeUnchargeUpdateAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeUnchargeUpdateAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmRechargeUnchargeUpdateResponse.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeUnchargecheckGetAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeUnchargecheckGetAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmRechargeUnchargecheckGetResponse.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeUndedutUpdateAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmRechargeUndedutUpdateAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmRechargeUndedutUpdateResponse.go create mode 100644 model/alsc/AlibabaAlscCrmRuleLevelQuerylevelruleAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmRuleLevelQuerylevelruleAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmRuleLevelQuerylevelruleResponse.go create mode 100644 model/alsc/AlibabaAlscCrmRuleQuerydishruleAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmRuleQuerydishruleAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmRuleQuerydishruleResponse.go create mode 100644 model/alsc/AlibabaAlscCrmRuleQuerygrowruleAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmRuleQuerygrowruleAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmRuleQuerygrowruleResponse.go create mode 100644 model/alsc/AlibabaAlscCrmRuleQueryjoinmruleAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmRuleQueryjoinmruleAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmRuleQueryjoinmruleResponse.go create mode 100644 model/alsc/AlibabaAlscCrmRuleQuerymdayeruleAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmRuleQuerymdayeruleAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmRuleQuerymdayeruleResponse.go create mode 100644 model/alsc/AlibabaAlscCrmRuleQuerympriceruleAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmRuleQuerympriceruleAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmRuleQuerympriceruleResponse.go create mode 100644 model/alsc/AlibabaAlscCrmRuleQueryoptplanAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmRuleQueryoptplanAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmRuleQueryoptplanResponse.go create mode 100644 model/alsc/AlibabaAlscCrmRuleQuerytaglistAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmRuleQuerytaglistAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmRuleQuerytaglistResponse.go create mode 100644 model/alsc/AlibabaAlscCrmVoucherSendAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmVoucherSendAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmVoucherSendResponse.go create mode 100644 model/alsc/AlibabaAlscCrmVoucherStatusChangeAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmVoucherStatusChangeAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmVoucherStatusChangeResponse.go create mode 100644 model/alsc/AlibabaAlscCrmVoucherTemplateListAPIRequest.go create mode 100644 model/alsc/AlibabaAlscCrmVoucherTemplateListAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscCrmVoucherTemplateListResponse.go create mode 100644 model/alsc/AlibabaAlscKmsAccessAPIRequest.go create mode 100644 model/alsc/AlibabaAlscKmsAccessAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscKmsAccessResponse.go create mode 100644 model/alsc/AlibabaAlscOrderOrderUploadAPIRequest.go create mode 100644 model/alsc/AlibabaAlscOrderOrderUploadAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscOrderOrderUploadResponse.go create mode 100644 model/alsc/AlibabaAlscSaasCodecCodeAttrsQueryAPIRequest.go create mode 100644 model/alsc/AlibabaAlscSaasCodecCodeAttrsQueryAPIResponse.go delete mode 100644 model/alsc/AlibabaAlscSaasCodecCodeAttrsQueryResponse.go create mode 100644 model/alsc/TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest.go create mode 100644 model/alsc/TaobaoKoubeiSaasBaseOperationConfigSyncAPIResponse.go delete mode 100644 model/alsc/TaobaoKoubeiSaasBaseOperationConfigSyncResponse.go create mode 100644 model/alsc/TaobaoPlaceStoreCreateAPIRequest.go create mode 100644 model/alsc/TaobaoPlaceStoreCreateAPIResponse.go delete mode 100644 model/alsc/TaobaoPlaceStoreCreateResponse.go create mode 100644 model/alsc/TaobaoPlaceStoreDeleteAPIRequest.go create mode 100644 model/alsc/TaobaoPlaceStoreDeleteAPIResponse.go delete mode 100644 model/alsc/TaobaoPlaceStoreDeleteResponse.go create mode 100644 model/alsc/TaobaoPlaceStoreExtendAddAPIRequest.go create mode 100644 model/alsc/TaobaoPlaceStoreExtendAddAPIResponse.go delete mode 100644 model/alsc/TaobaoPlaceStoreExtendAddResponse.go create mode 100644 model/alsc/TaobaoPlaceStoreModifyAPIRequest.go create mode 100644 model/alsc/TaobaoPlaceStoreModifyAPIResponse.go delete mode 100644 model/alsc/TaobaoPlaceStoreModifyResponse.go create mode 100644 model/alsc/TaobaoPlaceStoreTagsUpdateAPIRequest.go create mode 100644 model/alsc/TaobaoPlaceStoreTagsUpdateAPIResponse.go delete mode 100644 model/alsc/TaobaoPlaceStoreTagsUpdateResponse.go create mode 100644 model/alsc/TaobaoPlaceStorecategoryGetAPIRequest.go create mode 100644 model/alsc/TaobaoPlaceStorecategoryGetAPIResponse.go delete mode 100644 model/alsc/TaobaoPlaceStorecategoryGetResponse.go create mode 100644 model/alscmerchant/AlibabaAlscMerchantExtTicketRefundAPIRequest.go create mode 100644 model/alscmerchant/AlibabaAlscMerchantExtTicketRefundAPIResponse.go delete mode 100644 model/alscmerchant/AlibabaAlscMerchantExtTicketRefundResponse.go create mode 100644 model/alscmerchant/AlibabaAlscMerchantExtTicketcodeUseAPIRequest.go create mode 100644 model/alscmerchant/AlibabaAlscMerchantExtTicketcodeUseAPIResponse.go delete mode 100644 model/alscmerchant/AlibabaAlscMerchantExtTicketcodeUseResponse.go create mode 100644 model/antifraud/TaobaoAntifraudRiskassessmentGetAPIRequest.go create mode 100644 model/antifraud/TaobaoAntifraudRiskassessmentGetAPIResponse.go delete mode 100644 model/antifraud/TaobaoAntifraudRiskassessmentGetResponse.go create mode 100644 model/antifraud/TaobaoAntifraudRiskuserGetAPIRequest.go create mode 100644 model/antifraud/TaobaoAntifraudRiskuserGetAPIResponse.go delete mode 100644 model/antifraud/TaobaoAntifraudRiskuserGetResponse.go create mode 100644 model/antifraud/TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest.go create mode 100644 model/antifraud/TaobaoCollinafacadeNocaptchaSigAuthenticateAPIResponse.go delete mode 100644 model/antifraud/TaobaoCollinafacadeNocaptchaSigAuthenticateResponse.go create mode 100644 model/ascm/AlibabaAscmSettlementInvoiceSynchronizationImAPIRequest.go create mode 100644 model/ascm/AlibabaAscmSettlementInvoiceSynchronizationImAPIResponse.go delete mode 100644 model/ascm/AlibabaAscmSettlementInvoiceSynchronizationImResponse.go create mode 100644 model/ascp/TmallAscpPricingScmTofAPIRequest.go create mode 100644 model/ascp/TmallAscpPricingScmTofAPIResponse.go delete mode 100644 model/ascp/TmallAscpPricingScmTofResponse.go create mode 100644 model/ascpchannel/AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryResponse.go create mode 100644 model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateResponse.go create mode 100644 model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSalePublishResponse.go create mode 100644 model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryResponse.go create mode 100644 model/ascpchannel/AlibabaAscpAicSupplierAicinventoryPublishAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpAicSupplierAicinventoryPublishAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpAicSupplierAicinventoryPublishResponse.go create mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorInventoryGetAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorInventoryGetAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorInventoryGetResponse.go create mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorInventoryGetResultDto.go create mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorInventoryListGetAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorInventoryListGetAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorInventoryListGetResponse.go create mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorInventoryListGetResultDto.go create mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorPriceGetAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorPriceGetAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorPriceGetResponse.go create mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorPriceGetResultDto.go create mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorProductDetailAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorProductDetailAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorProductDetailResponse.go create mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorProductListAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorProductListAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorProductListResponse.go create mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorProductSelectAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorProductSelectAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpChannelDistributorProductSelectResponse.go create mode 100644 model/ascpchannel/AlibabaAscpChannelMainRefundCreateAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpChannelMainRefundCreateAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpChannelMainRefundCreateResponse.go create mode 100644 model/ascpchannel/AlibabaAscpChannelRefundGoodsWaybillAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpChannelRefundGoodsWaybillAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpChannelRefundGoodsWaybillResponse.go create mode 100644 model/ascpchannel/AlibabaAscpChannelRefundGoodsWaybillResultDto.go create mode 100644 model/ascpchannel/AlibabaAscpChannelSalesOrderCreateAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpChannelSalesOrderCreateAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpChannelSalesOrderCreateResponse.go create mode 100644 model/ascpchannel/AlibabaAscpChannelSubRefundCreateAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpChannelSubRefundCreateAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpChannelSubRefundCreateResponse.go create mode 100644 model/ascpchannel/AlibabaAscpChannelSubRefundCreateResultDto.go create mode 100644 model/ascpchannel/AlibabaAscpIndustryIcpQueryLbxAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpIndustryIcpQueryLbxAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpIndustryIcpQueryLbxResponse.go create mode 100644 model/ascpchannel/AlibabaAscpIndustryLogisticsSyncAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpIndustryLogisticsSyncAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpIndustryLogisticsSyncResponse.go create mode 100644 model/ascpchannel/AlibabaAscpIndustryLogisticsSyncResultDto.go create mode 100644 model/ascpchannel/AlibabaAscpIndustryUopSupplierConsignoderAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpIndustryUopSupplierConsignoderAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpIndustryUopSupplierConsignoderResponse.go create mode 100644 model/ascpchannel/AlibabaAscpPresalespackageConsignAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpPresalespackageConsignAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpPresalespackageConsignResponse.go create mode 100644 model/ascpchannel/AlibabaAscpPurchasePriceCreateAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpPurchasePriceCreateAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpPurchasePriceCreateResponse.go create mode 100644 model/ascpchannel/AlibabaAscpSalecategoryQueryAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpSalecategoryQueryAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpSalecategoryQueryResponse.go create mode 100644 model/ascpchannel/AlibabaAscpUopCnReverseWarehouseorderUpdateAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpUopCnReverseWarehouseorderUpdateAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpUopCnReverseWarehouseorderUpdateResponse.go create mode 100644 model/ascpchannel/AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpUopSupplierConsignorderCancelFeedbackResponse.go create mode 100644 model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyReceivedResponse.go create mode 100644 model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyTmsChangeResponse.go create mode 100644 model/ascpchannel/AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpUopSupplierConsignorderOutofstockCallbackResponse.go create mode 100644 model/ascpchannel/AlibabaAscpUopSupplierConsignorderShipAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpUopSupplierConsignorderShipAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpUopSupplierConsignorderShipResponse.go create mode 100644 model/ascpchannel/AlibabaAscpUopSupplierReverseorderCreateAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpUopSupplierReverseorderCreateAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpUopSupplierReverseorderCreateResponse.go create mode 100644 model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageFeedbackResponse.go create mode 100644 model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageResultAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageResultAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageResultResponse.go create mode 100644 model/ascpchannel/AlibabaAscpUopSupplierWaybillQueryAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpUopSupplierWaybillQueryAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpUopSupplierWaybillQueryResponse.go create mode 100644 model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderConsignconfirmResponse.go create mode 100644 model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderCreateAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderCreateAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderCreateResponse.go create mode 100644 model/ascpchannel/AlibabaAscpUopTaobaoWaybillQuerycpAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpUopTaobaoWaybillQuerycpAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpUopTaobaoWaybillQuerycpResponse.go create mode 100644 model/ascpchannel/AlibabaAscpUopTobPackageQueryAPIRequest.go create mode 100644 model/ascpchannel/AlibabaAscpUopTobPackageQueryAPIResponse.go delete mode 100644 model/ascpchannel/AlibabaAscpUopTobPackageQueryResponse.go create mode 100644 model/ascpffo/AliexpressAscpFfoItemQueryAPIRequest.go create mode 100644 model/ascpffo/AliexpressAscpFfoItemQueryAPIResponse.go delete mode 100644 model/ascpffo/AliexpressAscpFfoItemQueryResponse.go create mode 100644 model/ascpffo/AliexpressAscpFfoQueryAPIRequest.go create mode 100644 model/ascpffo/AliexpressAscpFfoQueryAPIResponse.go delete mode 100644 model/ascpffo/AliexpressAscpFfoQueryResponse.go create mode 100644 model/ascpffo/AliexpressAscpFroItemQueryAPIRequest.go create mode 100644 model/ascpffo/AliexpressAscpFroItemQueryAPIResponse.go delete mode 100644 model/ascpffo/AliexpressAscpFroItemQueryResponse.go create mode 100644 model/ascpffo/AliexpressAscpFroQueryAPIRequest.go create mode 100644 model/ascpffo/AliexpressAscpFroQueryAPIResponse.go delete mode 100644 model/ascpffo/AliexpressAscpFroQueryResponse.go create mode 100644 model/ascpffo/AliexpressAscpItemQueryAPIRequest.go create mode 100644 model/ascpffo/AliexpressAscpItemQueryAPIResponse.go delete mode 100644 model/ascpffo/AliexpressAscpItemQueryResponse.go create mode 100644 model/ascpffo/AliexpressAscpPoItemQueryAPIRequest.go create mode 100644 model/ascpffo/AliexpressAscpPoItemQueryAPIResponse.go delete mode 100644 model/ascpffo/AliexpressAscpPoItemQueryResponse.go create mode 100644 model/ascpffo/AliexpressAscpPoQueryAPIRequest.go create mode 100644 model/ascpffo/AliexpressAscpPoQueryAPIResponse.go delete mode 100644 model/ascpffo/AliexpressAscpPoQueryResponse.go create mode 100644 model/ascpffo/AliexpressAscpRoItemQueryAPIRequest.go create mode 100644 model/ascpffo/AliexpressAscpRoItemQueryAPIResponse.go delete mode 100644 model/ascpffo/AliexpressAscpRoItemQueryResponse.go create mode 100644 model/ascpffo/AliexpressAscpRoQueryAPIRequest.go create mode 100644 model/ascpffo/AliexpressAscpRoQueryAPIResponse.go delete mode 100644 model/ascpffo/AliexpressAscpRoQueryResponse.go create mode 100644 model/ascpffo/AliexpressFulfillmentEventAPIRequest.go create mode 100644 model/ascpffo/AliexpressFulfillmentEventAPIResponse.go delete mode 100644 model/ascpffo/AliexpressFulfillmentEventResponse.go create mode 100644 model/ascpqcc/AlibabaAscpQccSampleCancelItemRelationAPIRequest.go create mode 100644 model/ascpqcc/AlibabaAscpQccSampleCancelItemRelationAPIResponse.go delete mode 100644 model/ascpqcc/AlibabaAscpQccSampleCancelItemRelationResponse.go create mode 100644 model/ascpqcc/AlibabaAscpQccSampleUpdateAPIRequest.go create mode 100644 model/ascpqcc/AlibabaAscpQccSampleUpdateAPIResponse.go delete mode 100644 model/ascpqcc/AlibabaAscpQccSampleUpdateResponse.go create mode 100644 model/auction/TaobaoAuctionGovDataAnnuallyGetAPIRequest.go create mode 100644 model/auction/TaobaoAuctionGovDataAnnuallyGetAPIResponse.go delete mode 100644 model/auction/TaobaoAuctionGovDataAnnuallyGetResponse.go create mode 100644 model/auction/TaobaoAuctionGovDataMonthlyGetAPIRequest.go create mode 100644 model/auction/TaobaoAuctionGovDataMonthlyGetAPIResponse.go delete mode 100644 model/auction/TaobaoAuctionGovDataMonthlyGetResponse.go create mode 100644 model/auction/TaobaoAuctionGovDataRealtimeGetAPIRequest.go create mode 100644 model/auction/TaobaoAuctionGovDataRealtimeGetAPIResponse.go delete mode 100644 model/auction/TaobaoAuctionGovDataRealtimeGetResponse.go create mode 100644 model/auction/TaobaoAuctionGovDataTopnGetAPIRequest.go create mode 100644 model/auction/TaobaoAuctionGovDataTopnGetAPIResponse.go delete mode 100644 model/auction/TaobaoAuctionGovDataTopnGetResponse.go create mode 100644 model/auction/TaobaoAuctionGovGetLatestbidAPIRequest.go create mode 100644 model/auction/TaobaoAuctionGovGetLatestbidAPIResponse.go delete mode 100644 model/auction/TaobaoAuctionGovGetLatestbidResponse.go create mode 100644 model/autonavi/AlibabaAutonaviApiTrafficboardImageGetAPIRequest.go create mode 100644 model/autonavi/AlibabaAutonaviApiTrafficboardImageGetAPIResponse.go delete mode 100644 model/autonavi/AlibabaAutonaviApiTrafficboardImageGetResponse.go create mode 100644 model/axindata/TaobaoAlitripTravelAxinPoiDetailQueryAPIRequest.go create mode 100644 model/axindata/TaobaoAlitripTravelAxinPoiDetailQueryAPIResponse.go delete mode 100644 model/axindata/TaobaoAlitripTravelAxinPoiDetailQueryResponse.go create mode 100644 model/axindata/TaobaoAlitripTravelAxinPoiSearchAPIRequest.go create mode 100644 model/axindata/TaobaoAlitripTravelAxinPoiSearchAPIResponse.go delete mode 100644 model/axindata/TaobaoAlitripTravelAxinPoiSearchResponse.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransFundAddAPIRequest.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransFundAddAPIResponse.go delete mode 100644 model/axintrade/TaobaoAlitripAxinTransFundAddResponse.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransFundConfirmAPIRequest.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransFundConfirmAPIResponse.go delete mode 100644 model/axintrade/TaobaoAlitripAxinTransFundConfirmResponse.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransFundQueryByOrderAPIRequest.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransFundQueryByOrderAPIResponse.go delete mode 100644 model/axintrade/TaobaoAlitripAxinTransFundQueryByOrderResponse.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransFundUpdateAPIRequest.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransFundUpdateAPIResponse.go delete mode 100644 model/axintrade/TaobaoAlitripAxinTransFundUpdateResponse.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransPayImgUploadAPIRequest.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransPayImgUploadAPIResponse.go delete mode 100644 model/axintrade/TaobaoAlitripAxinTransPayImgUploadResponse.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransPayRegisterAuditAPIRequest.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransPayRegisterAuditAPIResponse.go delete mode 100644 model/axintrade/TaobaoAlitripAxinTransPayRegisterAuditResponse.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransPayRegisterCreateAPIRequest.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransPayRegisterCreateAPIResponse.go delete mode 100644 model/axintrade/TaobaoAlitripAxinTransPayRegisterCreateResponse.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransPayRegisterReapplyAPIRequest.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransPayRegisterReapplyAPIResponse.go delete mode 100644 model/axintrade/TaobaoAlitripAxinTransPayRegisterReapplyResponse.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransPaySignCheckAPIRequest.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransPaySignCheckAPIResponse.go delete mode 100644 model/axintrade/TaobaoAlitripAxinTransPaySignCheckResponse.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransRefundCreateAPIRequest.go create mode 100644 model/axintrade/TaobaoAlitripAxinTransRefundCreateAPIResponse.go delete mode 100644 model/axintrade/TaobaoAlitripAxinTransRefundCreateResponse.go create mode 100644 model/b2bcert/AlibabaAuthCertGetAPIRequest.go create mode 100644 model/b2bcert/AlibabaAuthCertGetAPIResponse.go create mode 100644 model/baichuan/AlibabaBaichuanAsoActivateAPIRequest.go create mode 100644 model/baichuan/AlibabaBaichuanAsoActivateAPIResponse.go delete mode 100644 model/baichuan/AlibabaBaichuanAsoActivateResponse.go create mode 100644 model/baichuan/AlibabaBaichuanAsoQueryAPIRequest.go create mode 100644 model/baichuan/AlibabaBaichuanAsoQueryAPIResponse.go delete mode 100644 model/baichuan/AlibabaBaichuanAsoQueryResponse.go create mode 100644 model/baichuan/AlibabaBaichuanCtgContentGetAPIRequest.go create mode 100644 model/baichuan/AlibabaBaichuanCtgContentGetAPIResponse.go delete mode 100644 model/baichuan/AlibabaBaichuanCtgContentGetResponse.go create mode 100644 model/baichuan/AlibabaBaichuanCtgUserRelationAPIRequest.go create mode 100644 model/baichuan/AlibabaBaichuanCtgUserRelationAPIResponse.go delete mode 100644 model/baichuan/AlibabaBaichuanCtgUserRelationResponse.go create mode 100644 model/baichuan/AlibabaBaichuanCtgVideoUploadAPIRequest.go create mode 100644 model/baichuan/AlibabaBaichuanCtgVideoUploadAPIResponse.go delete mode 100644 model/baichuan/AlibabaBaichuanCtgVideoUploadResponse.go create mode 100644 model/baichuan/AlibabaBaichuanTaopasswordCheckAPIRequest.go create mode 100644 model/baichuan/AlibabaBaichuanTaopasswordCheckAPIResponse.go delete mode 100644 model/baichuan/AlibabaBaichuanTaopasswordCheckResponse.go create mode 100644 model/baichuan/AlibabaBaichuanTaopasswordConfigAPIRequest.go create mode 100644 model/baichuan/AlibabaBaichuanTaopasswordConfigAPIResponse.go delete mode 100644 model/baichuan/AlibabaBaichuanTaopasswordConfigResponse.go create mode 100644 model/baichuan/AlibabaBaichuanTaopasswordQueryAPIRequest.go create mode 100644 model/baichuan/AlibabaBaichuanTaopasswordQueryAPIResponse.go delete mode 100644 model/baichuan/AlibabaBaichuanTaopasswordQueryResponse.go create mode 100644 model/baichuan/TaobaoBaichuanItemSubscribeAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanItemSubscribeAPIResponse.go create mode 100644 model/baichuan/TaobaoBaichuanItemSubscribeDailyLeftQueryAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanItemSubscribeDailyLeftQueryAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanItemSubscribeDailyLeftQueryResponse.go create mode 100644 model/baichuan/TaobaoBaichuanItemSubscribeRelationQueryAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanItemSubscribeRelationQueryAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanItemSubscribeRelationQueryResponse.go create mode 100644 model/baichuan/TaobaoBaichuanItemSubscribeRelationsQueryAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanItemSubscribeRelationsQueryAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanItemSubscribeRelationsQueryResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanItemSubscribeResponse.go create mode 100644 model/baichuan/TaobaoBaichuanItemUnsubscribeAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanItemUnsubscribeAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanItemUnsubscribeResponse.go create mode 100644 model/baichuan/TaobaoBaichuanItemsSubscribeAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanItemsSubscribeAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanItemsSubscribeResponse.go create mode 100644 model/baichuan/TaobaoBaichuanItemsUnsubscribeAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanItemsUnsubscribeAPIResponse.go create mode 100644 model/baichuan/TaobaoBaichuanItemsUnsubscribeByConditionAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanItemsUnsubscribeByConditionAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanItemsUnsubscribeByConditionResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanItemsUnsubscribeResponse.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountLoginAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountLoginAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanOpenaccountLoginResponse.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountLoginbytokenAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountLoginbytokenAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanOpenaccountLoginbytokenResponse.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountLogindoublecheckAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountLogindoublecheckAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanOpenaccountLogindoublecheckResponse.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountNewlogindoublecheckAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountNewlogindoublecheckAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanOpenaccountNewlogindoublecheckResponse.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountPasswordResetAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountPasswordResetAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanOpenaccountPasswordResetResponse.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountRegisterAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountRegisterAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanOpenaccountRegisterResponse.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountRegistercodeCheckAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountRegistercodeCheckAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanOpenaccountRegistercodeCheckResponse.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountRegistercodeSendAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountRegistercodeSendAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanOpenaccountRegistercodeSendResponse.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountResetcodeCheckAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountResetcodeCheckAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanOpenaccountResetcodeCheckResponse.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountResetcodeSendAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanOpenaccountResetcodeSendAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanOpenaccountResetcodeSendResponse.go create mode 100644 model/baichuan/TaobaoBaichuanOrderurlGetAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanOrderurlGetAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanOrderurlGetResponse.go create mode 100644 model/baichuan/TaobaoBaichuanPayresultQueryAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanPayresultQueryAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanPayresultQueryResponse.go create mode 100644 model/baichuan/TaobaoBaichuanTaokeTraceAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanTaokeTraceAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanTaokeTraceResponse.go create mode 100644 model/baichuan/TaobaoBaichuanUserLoginAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanUserLoginAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanUserLoginResponse.go create mode 100644 model/baichuan/TaobaoBaichuanUserLoginbytokenAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanUserLoginbytokenAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanUserLoginbytokenResponse.go create mode 100644 model/baichuan/TaobaoBaichuanUserLogindoublecheckAPIRequest.go create mode 100644 model/baichuan/TaobaoBaichuanUserLogindoublecheckAPIResponse.go delete mode 100644 model/baichuan/TaobaoBaichuanUserLogindoublecheckResponse.go create mode 100644 model/baichuanctg/AlibabaBaichuanCtgToutiaoContentAPIRequest.go create mode 100644 model/baichuanctg/AlibabaBaichuanCtgToutiaoContentAPIResponse.go delete mode 100644 model/baichuanctg/AlibabaBaichuanCtgToutiaoContentResponse.go create mode 100644 model/baodian/TaobaoBaodianDepositGetAPIRequest.go create mode 100644 model/baodian/TaobaoBaodianDepositGetAPIResponse.go delete mode 100644 model/baodian/TaobaoBaodianDepositGetResponse.go create mode 100644 model/baodian/TaobaoBaodianDepositGetWithSdkversionAPIRequest.go create mode 100644 model/baodian/TaobaoBaodianDepositGetWithSdkversionAPIResponse.go delete mode 100644 model/baodian/TaobaoBaodianDepositGetWithSdkversionResponse.go create mode 100644 model/baodian/TaobaoBaodianServerDateGetAPIRequest.go create mode 100644 model/baodian/TaobaoBaodianServerDateGetAPIResponse.go delete mode 100644 model/baodian/TaobaoBaodianServerDateGetResponse.go create mode 100644 model/baodian/TaobaoBaodianServerSdkConfigGetAPIRequest.go create mode 100644 model/baodian/TaobaoBaodianServerSdkConfigGetAPIResponse.go delete mode 100644 model/baodian/TaobaoBaodianServerSdkConfigGetResponse.go create mode 100644 model/baodian/TaobaoDegUserGamegiftQueryAPIRequest.go create mode 100644 model/baodian/TaobaoDegUserGamegiftQueryAPIResponse.go delete mode 100644 model/baodian/TaobaoDegUserGamegiftQueryResponse.go create mode 100644 model/baoxian/AlipayBaoxianClaimReturngoodsstatusUpdateAPIRequest.go create mode 100644 model/baoxian/AlipayBaoxianClaimReturngoodsstatusUpdateAPIResponse.go delete mode 100644 model/baoxian/AlipayBaoxianClaimReturngoodsstatusUpdateResponse.go create mode 100644 model/baoxian/AlipayBaoxianClaimSurveyConclusionSubmitAPIRequest.go create mode 100644 model/baoxian/AlipayBaoxianClaimSurveyConclusionSubmitAPIResponse.go delete mode 100644 model/baoxian/AlipayBaoxianClaimSurveyConclusionSubmitResponse.go create mode 100644 model/baoxian/AlipayBaoxianClaimUpdateAPIRequest.go create mode 100644 model/baoxian/AlipayBaoxianClaimUpdateAPIResponse.go delete mode 100644 model/baoxian/AlipayBaoxianClaimUpdateResponse.go create mode 100644 model/baoxian/AlipayBaoxianClaimUploadattachmentAPIRequest.go create mode 100644 model/baoxian/AlipayBaoxianClaimUploadattachmentAPIResponse.go delete mode 100644 model/baoxian/AlipayBaoxianClaimUploadattachmentResponse.go create mode 100644 model/beehive/TaobaoBeehiveItemCpsUrlAPIRequest.go create mode 100644 model/beehive/TaobaoBeehiveItemCpsUrlAPIResponse.go delete mode 100644 model/beehive/TaobaoBeehiveItemCpsUrlResponse.go create mode 100644 model/beehive/TaobaoBeehiveItemCpsUrlResultDo.go create mode 100644 model/bill/TaobaoBillAccountsGetAPIRequest.go create mode 100644 model/bill/TaobaoBillAccountsGetAPIResponse.go delete mode 100644 model/bill/TaobaoBillAccountsGetResponse.go create mode 100644 model/bill/TaobaoBillBillsGetAPIRequest.go create mode 100644 model/bill/TaobaoBillBillsGetAPIResponse.go delete mode 100644 model/bill/TaobaoBillBillsGetResponse.go create mode 100644 model/bill/TaobaoBillBookBillsGetAPIRequest.go create mode 100644 model/bill/TaobaoBillBookBillsGetAPIResponse.go delete mode 100644 model/bill/TaobaoBillBookBillsGetResponse.go create mode 100644 model/bill/TaobaoTaeAccountsGetAPIRequest.go create mode 100644 model/bill/TaobaoTaeAccountsGetAPIResponse.go delete mode 100644 model/bill/TaobaoTaeAccountsGetResponse.go create mode 100644 model/bill/TaobaoTaeBillGetAPIRequest.go create mode 100644 model/bill/TaobaoTaeBillGetAPIResponse.go delete mode 100644 model/bill/TaobaoTaeBillGetResponse.go create mode 100644 model/bill/TaobaoTaeBillsGetAPIRequest.go create mode 100644 model/bill/TaobaoTaeBillsGetAPIResponse.go delete mode 100644 model/bill/TaobaoTaeBillsGetResponse.go create mode 100644 model/bill/TaobaoTaeBookBillGetAPIRequest.go create mode 100644 model/bill/TaobaoTaeBookBillGetAPIResponse.go delete mode 100644 model/bill/TaobaoTaeBookBillGetResponse.go create mode 100644 model/bill/TaobaoTaeBookBillsGetAPIRequest.go create mode 100644 model/bill/TaobaoTaeBookBillsGetAPIResponse.go delete mode 100644 model/bill/TaobaoTaeBookBillsGetResponse.go create mode 100644 model/blackvip/TaobaoBlackvipUserinfoGetAPIRequest.go create mode 100644 model/blackvip/TaobaoBlackvipUserinfoGetAPIResponse.go delete mode 100644 model/blackvip/TaobaoBlackvipUserinfoGetResponse.go create mode 100644 model/brandhub/TaobaoBrandStarshopRptTargetGetAPIRequest.go create mode 100644 model/brandhub/TaobaoBrandStarshopRptTargetGetAPIResponse.go delete mode 100644 model/brandhub/TaobaoBrandStarshopRptTargetGetResponse.go create mode 100644 model/brandhub/TaobaoBrandStartshopRptAccountGetAPIRequest.go create mode 100644 model/brandhub/TaobaoBrandStartshopRptAccountGetAPIResponse.go delete mode 100644 model/brandhub/TaobaoBrandStartshopRptAccountGetResponse.go create mode 100644 model/brandhub/TaobaoBrandStartshopRptAdgroupGetAPIRequest.go create mode 100644 model/brandhub/TaobaoBrandStartshopRptAdgroupGetAPIResponse.go delete mode 100644 model/brandhub/TaobaoBrandStartshopRptAdgroupGetResponse.go create mode 100644 model/brandhub/TaobaoBrandStartshopRptCampaignGetAPIRequest.go create mode 100644 model/brandhub/TaobaoBrandStartshopRptCampaignGetAPIResponse.go delete mode 100644 model/brandhub/TaobaoBrandStartshopRptCampaignGetResponse.go create mode 100644 model/brandhub/TaobaoBrandStartshopRptCreativeGetAPIRequest.go create mode 100644 model/brandhub/TaobaoBrandStartshopRptCreativeGetAPIResponse.go delete mode 100644 model/brandhub/TaobaoBrandStartshopRptCreativeGetResponse.go create mode 100644 model/brandhub/TaobaoBrandStartshopRptWordpackageGetAPIRequest.go create mode 100644 model/brandhub/TaobaoBrandStartshopRptWordpackageGetAPIResponse.go delete mode 100644 model/brandhub/TaobaoBrandStartshopRptWordpackageGetResponse.go create mode 100644 model/brandhub/TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest.go create mode 100644 model/brandhub/TaobaoBrandhubSpecialshowRptAdgroupGetAPIResponse.go delete mode 100644 model/brandhub/TaobaoBrandhubSpecialshowRptAdgroupGetResponse.go create mode 100644 model/brandhub/TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest.go create mode 100644 model/brandhub/TaobaoBrandhubSpecialshowRptCampaignGetAPIResponse.go delete mode 100644 model/brandhub/TaobaoBrandhubSpecialshowRptCampaignGetResponse.go create mode 100644 model/btrip/AlitripBtipCostCenterQueryAPIRequest.go create mode 100644 model/btrip/AlitripBtipCostCenterQueryAPIResponse.go delete mode 100644 model/btrip/AlitripBtipCostCenterQueryResponse.go create mode 100644 model/btrip/AlitripBtripApplyGetAPIRequest.go create mode 100644 model/btrip/AlitripBtripApplyGetAPIResponse.go delete mode 100644 model/btrip/AlitripBtripApplyGetResponse.go create mode 100644 model/btrip/AlitripBtripApplySearchAPIRequest.go create mode 100644 model/btrip/AlitripBtripApplySearchAPIResponse.go delete mode 100644 model/btrip/AlitripBtripApplySearchResponse.go create mode 100644 model/btrip/AlitripBtripApprovalModifyAPIRequest.go create mode 100644 model/btrip/AlitripBtripApprovalModifyAPIResponse.go delete mode 100644 model/btrip/AlitripBtripApprovalModifyResponse.go create mode 100644 model/btrip/AlitripBtripApprovalNewAPIRequest.go create mode 100644 model/btrip/AlitripBtripApprovalNewAPIResponse.go delete mode 100644 model/btrip/AlitripBtripApprovalNewResponse.go create mode 100644 model/btrip/AlitripBtripApprovalUpdateAPIRequest.go create mode 100644 model/btrip/AlitripBtripApprovalUpdateAPIResponse.go delete mode 100644 model/btrip/AlitripBtripApprovalUpdateResponse.go create mode 100644 model/btrip/AlitripBtripCityCarApplyAddAPIRequest.go create mode 100644 model/btrip/AlitripBtripCityCarApplyAddAPIResponse.go delete mode 100644 model/btrip/AlitripBtripCityCarApplyAddResponse.go create mode 100644 model/btrip/AlitripBtripCityCarApplyApproveAPIRequest.go create mode 100644 model/btrip/AlitripBtripCityCarApplyApproveAPIResponse.go delete mode 100644 model/btrip/AlitripBtripCityCarApplyApproveResponse.go create mode 100644 model/btrip/AlitripBtripCityCarApplyQueryAPIRequest.go create mode 100644 model/btrip/AlitripBtripCityCarApplyQueryAPIResponse.go delete mode 100644 model/btrip/AlitripBtripCityCarApplyQueryResponse.go create mode 100644 model/btrip/AlitripBtripCorpopApplyAddAPIRequest.go create mode 100644 model/btrip/AlitripBtripCorpopApplyAddAPIResponse.go delete mode 100644 model/btrip/AlitripBtripCorpopApplyAddResponse.go create mode 100644 model/btrip/AlitripBtripCorpopApplyApproveAPIRequest.go create mode 100644 model/btrip/AlitripBtripCorpopApplyApproveAPIResponse.go delete mode 100644 model/btrip/AlitripBtripCorpopApplyApproveResponse.go create mode 100644 model/btrip/AlitripBtripCorpopApplyGetAPIRequest.go create mode 100644 model/btrip/AlitripBtripCorpopApplyGetAPIResponse.go delete mode 100644 model/btrip/AlitripBtripCorpopApplyGetResponse.go create mode 100644 model/btrip/AlitripBtripCorpopApplyModifyAPIRequest.go create mode 100644 model/btrip/AlitripBtripCorpopApplyModifyAPIResponse.go delete mode 100644 model/btrip/AlitripBtripCorpopApplyModifyResponse.go create mode 100644 model/btrip/AlitripBtripCorpopApplySearchAPIRequest.go create mode 100644 model/btrip/AlitripBtripCorpopApplySearchAPIResponse.go delete mode 100644 model/btrip/AlitripBtripCorpopApplySearchResponse.go create mode 100644 model/btrip/AlitripBtripCorpopDepartSyncAPIRequest.go create mode 100644 model/btrip/AlitripBtripCorpopDepartSyncAPIResponse.go delete mode 100644 model/btrip/AlitripBtripCorpopDepartSyncResponse.go create mode 100644 model/btrip/AlitripBtripCorpopUserSyncAPIRequest.go create mode 100644 model/btrip/AlitripBtripCorpopUserSyncAPIResponse.go delete mode 100644 model/btrip/AlitripBtripCorpopUserSyncResponse.go create mode 100644 model/btrip/AlitripBtripCostCenterDeleteAPIRequest.go create mode 100644 model/btrip/AlitripBtripCostCenterDeleteAPIResponse.go delete mode 100644 model/btrip/AlitripBtripCostCenterDeleteResponse.go create mode 100644 model/btrip/AlitripBtripCostCenterEntityAddAPIRequest.go create mode 100644 model/btrip/AlitripBtripCostCenterEntityAddAPIResponse.go delete mode 100644 model/btrip/AlitripBtripCostCenterEntityAddResponse.go create mode 100644 model/btrip/AlitripBtripCostCenterEntityDeleteAPIRequest.go create mode 100644 model/btrip/AlitripBtripCostCenterEntityDeleteAPIResponse.go delete mode 100644 model/btrip/AlitripBtripCostCenterEntityDeleteResponse.go create mode 100644 model/btrip/AlitripBtripCostCenterEntitySetAPIRequest.go create mode 100644 model/btrip/AlitripBtripCostCenterEntitySetAPIResponse.go delete mode 100644 model/btrip/AlitripBtripCostCenterEntitySetResponse.go create mode 100644 model/btrip/AlitripBtripCostCenterGetAPIRequest.go create mode 100644 model/btrip/AlitripBtripCostCenterGetAPIResponse.go delete mode 100644 model/btrip/AlitripBtripCostCenterGetResponse.go create mode 100644 model/btrip/AlitripBtripCostCenterModifyAPIRequest.go create mode 100644 model/btrip/AlitripBtripCostCenterModifyAPIResponse.go delete mode 100644 model/btrip/AlitripBtripCostCenterModifyResponse.go create mode 100644 model/btrip/AlitripBtripCostCenterNewAPIRequest.go create mode 100644 model/btrip/AlitripBtripCostCenterNewAPIResponse.go delete mode 100644 model/btrip/AlitripBtripCostCenterNewResponse.go create mode 100644 model/btrip/AlitripBtripCostCenterTransferAPIRequest.go create mode 100644 model/btrip/AlitripBtripCostCenterTransferAPIResponse.go delete mode 100644 model/btrip/AlitripBtripCostCenterTransferResponse.go create mode 100644 model/btrip/AlitripBtripEmployeeQueryAPIRequest.go create mode 100644 model/btrip/AlitripBtripEmployeeQueryAPIResponse.go delete mode 100644 model/btrip/AlitripBtripEmployeeQueryResponse.go create mode 100644 model/btrip/AlitripBtripFlightCitySuggestAPIRequest.go create mode 100644 model/btrip/AlitripBtripFlightCitySuggestAPIResponse.go delete mode 100644 model/btrip/AlitripBtripFlightCitySuggestResponse.go create mode 100644 model/btrip/AlitripBtripFlightOrderSearchAPIRequest.go create mode 100644 model/btrip/AlitripBtripFlightOrderSearchAPIResponse.go delete mode 100644 model/btrip/AlitripBtripFlightOrderSearchResponse.go create mode 100644 model/btrip/AlitripBtripHotelDistributionOrderCancelAPIRequest.go create mode 100644 model/btrip/AlitripBtripHotelDistributionOrderCancelAPIResponse.go delete mode 100644 model/btrip/AlitripBtripHotelDistributionOrderCancelResponse.go create mode 100644 model/btrip/AlitripBtripHotelDistributionOrderCreateAPIRequest.go create mode 100644 model/btrip/AlitripBtripHotelDistributionOrderCreateAPIResponse.go delete mode 100644 model/btrip/AlitripBtripHotelDistributionOrderCreateResponse.go create mode 100644 model/btrip/AlitripBtripHotelDistributionOrderPayAPIRequest.go create mode 100644 model/btrip/AlitripBtripHotelDistributionOrderPayAPIResponse.go delete mode 100644 model/btrip/AlitripBtripHotelDistributionOrderPayResponse.go create mode 100644 model/btrip/AlitripBtripHotelDistributionOrderValidateAPIRequest.go create mode 100644 model/btrip/AlitripBtripHotelDistributionOrderValidateAPIResponse.go delete mode 100644 model/btrip/AlitripBtripHotelDistributionOrderValidateResponse.go create mode 100644 model/btrip/AlitripBtripHotelDistributionSearchDetailAPIRequest.go create mode 100644 model/btrip/AlitripBtripHotelDistributionSearchDetailAPIResponse.go delete mode 100644 model/btrip/AlitripBtripHotelDistributionSearchDetailResponse.go create mode 100644 model/btrip/AlitripBtripHotelDistributionSearchLowPriceAPIRequest.go create mode 100644 model/btrip/AlitripBtripHotelDistributionSearchLowPriceAPIResponse.go delete mode 100644 model/btrip/AlitripBtripHotelDistributionSearchLowPriceResponse.go create mode 100644 model/btrip/AlitripBtripHotelDistributionSearchStaticAPIRequest.go create mode 100644 model/btrip/AlitripBtripHotelDistributionSearchStaticAPIResponse.go delete mode 100644 model/btrip/AlitripBtripHotelDistributionSearchStaticResponse.go create mode 100644 model/btrip/AlitripBtripHotelOrderSearchAPIRequest.go create mode 100644 model/btrip/AlitripBtripHotelOrderSearchAPIResponse.go delete mode 100644 model/btrip/AlitripBtripHotelOrderSearchResponse.go create mode 100644 model/btrip/AlitripBtripInvoiceGetAPIRequest.go create mode 100644 model/btrip/AlitripBtripInvoiceGetAPIResponse.go delete mode 100644 model/btrip/AlitripBtripInvoiceGetResponse.go create mode 100644 model/btrip/AlitripBtripInvoiceSearchAPIRequest.go create mode 100644 model/btrip/AlitripBtripInvoiceSearchAPIResponse.go delete mode 100644 model/btrip/AlitripBtripInvoiceSearchResponse.go create mode 100644 model/btrip/AlitripBtripInvoiceSettingAddAPIRequest.go create mode 100644 model/btrip/AlitripBtripInvoiceSettingAddAPIResponse.go delete mode 100644 model/btrip/AlitripBtripInvoiceSettingAddResponse.go create mode 100644 model/btrip/AlitripBtripInvoiceSettingDeleteAPIRequest.go create mode 100644 model/btrip/AlitripBtripInvoiceSettingDeleteAPIResponse.go delete mode 100644 model/btrip/AlitripBtripInvoiceSettingDeleteResponse.go create mode 100644 model/btrip/AlitripBtripInvoiceSettingModifyAPIRequest.go create mode 100644 model/btrip/AlitripBtripInvoiceSettingModifyAPIResponse.go delete mode 100644 model/btrip/AlitripBtripInvoiceSettingModifyResponse.go create mode 100644 model/btrip/AlitripBtripInvoiceSettingRuleAPIRequest.go create mode 100644 model/btrip/AlitripBtripInvoiceSettingRuleAPIResponse.go delete mode 100644 model/btrip/AlitripBtripInvoiceSettingRuleResponse.go create mode 100644 model/btrip/AlitripBtripMonthbillUrlGetAPIRequest.go create mode 100644 model/btrip/AlitripBtripMonthbillUrlGetAPIResponse.go delete mode 100644 model/btrip/AlitripBtripMonthbillUrlGetResponse.go create mode 100644 model/btrip/AlitripBtripOpenCostCenterDeleteAPIRequest.go create mode 100644 model/btrip/AlitripBtripOpenCostCenterDeleteAPIResponse.go delete mode 100644 model/btrip/AlitripBtripOpenCostCenterDeleteResponse.go create mode 100644 model/btrip/AlitripBtripOpenCostCenterEntityAddAPIRequest.go create mode 100644 model/btrip/AlitripBtripOpenCostCenterEntityAddAPIResponse.go delete mode 100644 model/btrip/AlitripBtripOpenCostCenterEntityAddResponse.go create mode 100644 model/btrip/AlitripBtripOpenCostCenterEntityDeleteAPIRequest.go create mode 100644 model/btrip/AlitripBtripOpenCostCenterEntityDeleteAPIResponse.go delete mode 100644 model/btrip/AlitripBtripOpenCostCenterEntityDeleteResponse.go create mode 100644 model/btrip/AlitripBtripOpenCostCenterEntitySetAPIRequest.go create mode 100644 model/btrip/AlitripBtripOpenCostCenterEntitySetAPIResponse.go delete mode 100644 model/btrip/AlitripBtripOpenCostCenterEntitySetResponse.go create mode 100644 model/btrip/AlitripBtripOpenCostCenterModifyAPIRequest.go create mode 100644 model/btrip/AlitripBtripOpenCostCenterModifyAPIResponse.go delete mode 100644 model/btrip/AlitripBtripOpenCostCenterModifyResponse.go create mode 100644 model/btrip/AlitripBtripOpenCostCenterNewAPIRequest.go create mode 100644 model/btrip/AlitripBtripOpenCostCenterNewAPIResponse.go delete mode 100644 model/btrip/AlitripBtripOpenCostCenterNewResponse.go create mode 100644 model/btrip/AlitripBtripOpenCostCenterQueryAPIRequest.go create mode 100644 model/btrip/AlitripBtripOpenCostCenterQueryAPIResponse.go delete mode 100644 model/btrip/AlitripBtripOpenCostCenterQueryResponse.go create mode 100644 model/btrip/AlitripBtripOpenCostCenterTransferAPIRequest.go create mode 100644 model/btrip/AlitripBtripOpenCostCenterTransferAPIResponse.go delete mode 100644 model/btrip/AlitripBtripOpenCostCenterTransferResponse.go create mode 100644 model/btrip/AlitripBtripOpenInvoiceSearchAPIRequest.go create mode 100644 model/btrip/AlitripBtripOpenInvoiceSearchAPIResponse.go delete mode 100644 model/btrip/AlitripBtripOpenInvoiceSearchResponse.go create mode 100644 model/btrip/AlitripBtripOpenSupplychainFlightTradeAPIRequest.go create mode 100644 model/btrip/AlitripBtripOpenSupplychainFlightTradeAPIResponse.go delete mode 100644 model/btrip/AlitripBtripOpenSupplychainFlightTradeResponse.go create mode 100644 model/btrip/AlitripBtripOpenSupplychainHotelTradeAPIRequest.go create mode 100644 model/btrip/AlitripBtripOpenSupplychainHotelTradeAPIResponse.go delete mode 100644 model/btrip/AlitripBtripOpenSupplychainHotelTradeResponse.go create mode 100644 model/btrip/AlitripBtripOpenSupplychainTrainTradeAPIRequest.go create mode 100644 model/btrip/AlitripBtripOpenSupplychainTrainTradeAPIResponse.go delete mode 100644 model/btrip/AlitripBtripOpenSupplychainTrainTradeResponse.go create mode 100644 model/btrip/AlitripBtripOpenSupplychainVehicleTradeAPIRequest.go create mode 100644 model/btrip/AlitripBtripOpenSupplychainVehicleTradeAPIResponse.go delete mode 100644 model/btrip/AlitripBtripOpenSupplychainVehicleTradeResponse.go create mode 100644 model/btrip/AlitripBtripOpenplatformAddressGetAPIRequest.go create mode 100644 model/btrip/AlitripBtripOpenplatformAddressGetAPIResponse.go delete mode 100644 model/btrip/AlitripBtripOpenplatformAddressGetResponse.go create mode 100644 model/btrip/AlitripBtripProjectAddAPIRequest.go create mode 100644 model/btrip/AlitripBtripProjectAddAPIResponse.go delete mode 100644 model/btrip/AlitripBtripProjectAddResponse.go create mode 100644 model/btrip/AlitripBtripProjectDeleteAPIRequest.go create mode 100644 model/btrip/AlitripBtripProjectDeleteAPIResponse.go delete mode 100644 model/btrip/AlitripBtripProjectDeleteResponse.go create mode 100644 model/btrip/AlitripBtripProjectModifyAPIRequest.go create mode 100644 model/btrip/AlitripBtripProjectModifyAPIResponse.go delete mode 100644 model/btrip/AlitripBtripProjectModifyResponse.go create mode 100644 model/btrip/AlitripBtripSupplychainBusIndustrySearchAPIRequest.go create mode 100644 model/btrip/AlitripBtripSupplychainBusIndustrySearchAPIResponse.go delete mode 100644 model/btrip/AlitripBtripSupplychainBusIndustrySearchResponse.go create mode 100644 model/btrip/AlitripBtripSupplychainFlightCityAPIRequest.go create mode 100644 model/btrip/AlitripBtripSupplychainFlightCityAPIResponse.go delete mode 100644 model/btrip/AlitripBtripSupplychainFlightCityResponse.go create mode 100644 model/btrip/AlitripBtripSupplychainFlightIndustrySearchAPIRequest.go create mode 100644 model/btrip/AlitripBtripSupplychainFlightIndustrySearchAPIResponse.go delete mode 100644 model/btrip/AlitripBtripSupplychainFlightIndustrySearchResponse.go create mode 100644 model/btrip/AlitripBtripSupplychainFlightSearchAPIRequest.go create mode 100644 model/btrip/AlitripBtripSupplychainFlightSearchAPIResponse.go delete mode 100644 model/btrip/AlitripBtripSupplychainFlightSearchResponse.go create mode 100644 model/btrip/AlitripBtripSupplychainHotelSearchAPIRequest.go create mode 100644 model/btrip/AlitripBtripSupplychainHotelSearchAPIResponse.go delete mode 100644 model/btrip/AlitripBtripSupplychainHotelSearchResponse.go create mode 100644 model/btrip/AlitripBtripSupplychainTrainCityAPIRequest.go create mode 100644 model/btrip/AlitripBtripSupplychainTrainCityAPIResponse.go delete mode 100644 model/btrip/AlitripBtripSupplychainTrainCityResponse.go create mode 100644 model/btrip/AlitripBtripSupplychainTrainIndustrySearchAPIRequest.go create mode 100644 model/btrip/AlitripBtripSupplychainTrainIndustrySearchAPIResponse.go delete mode 100644 model/btrip/AlitripBtripSupplychainTrainIndustrySearchResponse.go create mode 100644 model/btrip/AlitripBtripSupplychainTrainSearchAPIRequest.go create mode 100644 model/btrip/AlitripBtripSupplychainTrainSearchAPIResponse.go delete mode 100644 model/btrip/AlitripBtripSupplychainTrainSearchResponse.go create mode 100644 model/btrip/AlitripBtripSupplychainVehicleSearchAPIRequest.go create mode 100644 model/btrip/AlitripBtripSupplychainVehicleSearchAPIResponse.go delete mode 100644 model/btrip/AlitripBtripSupplychainVehicleSearchResponse.go create mode 100644 model/btrip/AlitripBtripTrainCitySuggestAPIRequest.go create mode 100644 model/btrip/AlitripBtripTrainCitySuggestAPIResponse.go delete mode 100644 model/btrip/AlitripBtripTrainCitySuggestResponse.go create mode 100644 model/btrip/AlitripBtripTrainOrderSearchAPIRequest.go create mode 100644 model/btrip/AlitripBtripTrainOrderSearchAPIResponse.go delete mode 100644 model/btrip/AlitripBtripTrainOrderSearchResponse.go create mode 100644 model/btrip/AlitripBtripVehicleOrderSearchAPIRequest.go create mode 100644 model/btrip/AlitripBtripVehicleOrderSearchAPIResponse.go delete mode 100644 model/btrip/AlitripBtripVehicleOrderSearchResponse.go create mode 100644 model/bus/TaobaoAlitripBusTicketsInsuranceRecommendAPIRequest.go create mode 100644 model/bus/TaobaoAlitripBusTicketsInsuranceRecommendAPIResponse.go delete mode 100644 model/bus/TaobaoAlitripBusTicketsInsuranceRecommendResponse.go create mode 100644 model/bus/TaobaoBusAgentBookticketConfirmAPIRequest.go create mode 100644 model/bus/TaobaoBusAgentBookticketConfirmAPIResponse.go delete mode 100644 model/bus/TaobaoBusAgentBookticketConfirmResponse.go create mode 100644 model/bus/TaobaoBusAgentCityChangeAPIRequest.go create mode 100644 model/bus/TaobaoBusAgentCityChangeAPIResponse.go delete mode 100644 model/bus/TaobaoBusAgentCityChangeResponse.go create mode 100644 model/bus/TaobaoBusAgentMultipleRefundConfirmAPIRequest.go create mode 100644 model/bus/TaobaoBusAgentMultipleRefundConfirmAPIResponse.go delete mode 100644 model/bus/TaobaoBusAgentMultipleRefundConfirmResponse.go create mode 100644 model/bus/TaobaoBusAgentRefundConfirmAPIRequest.go create mode 100644 model/bus/TaobaoBusAgentRefundConfirmAPIResponse.go delete mode 100644 model/bus/TaobaoBusAgentRefundConfirmResponse.go create mode 100644 model/bus/TaobaoBusAgentRefundticketConfirmAPIRequest.go create mode 100644 model/bus/TaobaoBusAgentRefundticketConfirmAPIResponse.go delete mode 100644 model/bus/TaobaoBusAgentRefundticketConfirmResponse.go create mode 100644 model/bus/TaobaoBusAgentReturnticketConfirmAPIRequest.go create mode 100644 model/bus/TaobaoBusAgentReturnticketConfirmAPIResponse.go delete mode 100644 model/bus/TaobaoBusAgentReturnticketConfirmResponse.go create mode 100644 model/bus/TaobaoBusBusnumberGetAPIRequest.go create mode 100644 model/bus/TaobaoBusBusnumberGetAPIResponse.go delete mode 100644 model/bus/TaobaoBusBusnumberGetResponse.go create mode 100644 model/bus/TaobaoBusBusnumberSetAPIRequest.go create mode 100644 model/bus/TaobaoBusBusnumberSetAPIResponse.go delete mode 100644 model/bus/TaobaoBusBusnumberSetResponse.go create mode 100644 model/bus/TaobaoBusCancleorderSetAPIRequest.go create mode 100644 model/bus/TaobaoBusCancleorderSetAPIResponse.go delete mode 100644 model/bus/TaobaoBusCancleorderSetResponse.go create mode 100644 model/bus/TaobaoBusCityGetAPIRequest.go create mode 100644 model/bus/TaobaoBusCityGetAPIResponse.go delete mode 100644 model/bus/TaobaoBusCityGetResponse.go create mode 100644 model/bus/TaobaoBusDisableqrcodeSetAPIRequest.go create mode 100644 model/bus/TaobaoBusDisableqrcodeSetAPIResponse.go delete mode 100644 model/bus/TaobaoBusDisableqrcodeSetResponse.go create mode 100644 model/bus/TaobaoBusHistoryorderGetAPIRequest.go create mode 100644 model/bus/TaobaoBusHistoryorderGetAPIResponse.go delete mode 100644 model/bus/TaobaoBusHistoryorderGetResponse.go create mode 100644 model/bus/TaobaoBusInvoiceReturnAPIRequest.go create mode 100644 model/bus/TaobaoBusInvoiceReturnAPIResponse.go delete mode 100644 model/bus/TaobaoBusInvoiceReturnResponse.go create mode 100644 model/bus/TaobaoBusLastplaceGetAPIRequest.go create mode 100644 model/bus/TaobaoBusLastplaceGetAPIResponse.go delete mode 100644 model/bus/TaobaoBusLastplaceGetResponse.go create mode 100644 model/bus/TaobaoBusNumbersStockpriceUpdateAPIRequest.go create mode 100644 model/bus/TaobaoBusNumbersStockpriceUpdateAPIResponse.go delete mode 100644 model/bus/TaobaoBusNumbersStockpriceUpdateResponse.go create mode 100644 model/bus/TaobaoBusNumbersUpdateAPIRequest.go create mode 100644 model/bus/TaobaoBusNumbersUpdateAPIResponse.go delete mode 100644 model/bus/TaobaoBusNumbersUpdateResponse.go create mode 100644 model/bus/TaobaoBusOrderGetAPIRequest.go create mode 100644 model/bus/TaobaoBusOrderGetAPIResponse.go delete mode 100644 model/bus/TaobaoBusOrderGetResponse.go create mode 100644 model/bus/TaobaoBusOrderSetAPIRequest.go create mode 100644 model/bus/TaobaoBusOrderSetAPIResponse.go delete mode 100644 model/bus/TaobaoBusOrderSetResponse.go create mode 100644 model/bus/TaobaoBusRefundSetAPIRequest.go create mode 100644 model/bus/TaobaoBusRefundSetAPIResponse.go delete mode 100644 model/bus/TaobaoBusRefundSetResponse.go create mode 100644 model/bus/TaobaoBusRefundfeeGetAPIRequest.go create mode 100644 model/bus/TaobaoBusRefundfeeGetAPIResponse.go delete mode 100644 model/bus/TaobaoBusRefundfeeGetResponse.go create mode 100644 model/bus/TaobaoBusRefundticketpriceSetAPIRequest.go create mode 100644 model/bus/TaobaoBusRefundticketpriceSetAPIResponse.go delete mode 100644 model/bus/TaobaoBusRefundticketpriceSetResponse.go create mode 100644 model/bus/TaobaoBusSeatpriceGetAPIRequest.go create mode 100644 model/bus/TaobaoBusSeatpriceGetAPIResponse.go delete mode 100644 model/bus/TaobaoBusSeatpriceGetResponse.go create mode 100644 model/bus/TaobaoBusTicketSetAPIRequest.go create mode 100644 model/bus/TaobaoBusTicketSetAPIResponse.go delete mode 100644 model/bus/TaobaoBusTicketSetResponse.go create mode 100644 model/bus/TaobaoBusTvmbookorderSetAPIRequest.go create mode 100644 model/bus/TaobaoBusTvmbookorderSetAPIResponse.go delete mode 100644 model/bus/TaobaoBusTvmbookorderSetResponse.go create mode 100644 model/bus/TaobaoBusTvmcancelorderSetAPIRequest.go create mode 100644 model/bus/TaobaoBusTvmcancelorderSetAPIResponse.go delete mode 100644 model/bus/TaobaoBusTvmcancelorderSetResponse.go create mode 100644 model/bus/TaobaoBusTvmcreateorderSetAPIRequest.go create mode 100644 model/bus/TaobaoBusTvmcreateorderSetAPIResponse.go delete mode 100644 model/bus/TaobaoBusTvmcreateorderSetResponse.go create mode 100644 model/bus/TaobaoBusTvmcreateqrcodeSetAPIRequest.go create mode 100644 model/bus/TaobaoBusTvmcreateqrcodeSetAPIResponse.go delete mode 100644 model/bus/TaobaoBusTvmcreateqrcodeSetResponse.go create mode 100644 model/bus/TaobaoBusTvmpayorderSetAPIRequest.go create mode 100644 model/bus/TaobaoBusTvmpayorderSetAPIResponse.go delete mode 100644 model/bus/TaobaoBusTvmpayorderSetResponse.go create mode 100644 model/bus/TaobaoBusTvmqueryorderGetAPIRequest.go create mode 100644 model/bus/TaobaoBusTvmqueryorderGetAPIResponse.go delete mode 100644 model/bus/TaobaoBusTvmqueryorderGetResponse.go create mode 100644 model/bus/TaobaoBusTvmrefundorderSetAPIRequest.go create mode 100644 model/bus/TaobaoBusTvmrefundorderSetAPIResponse.go delete mode 100644 model/bus/TaobaoBusTvmrefundorderSetResponse.go create mode 100644 model/c2m/TaobaoSebpCompanyGetorderinfoAPIRequest.go create mode 100644 model/c2m/TaobaoSebpCompanyGetorderinfoAPIResponse.go delete mode 100644 model/c2m/TaobaoSebpCompanyGetorderinfoResponse.go create mode 100644 model/c2m/TaobaoSebpCompanyGetorderinfoResultDo.go create mode 100644 model/c2m/TaobaoSebpIsvUserCheckAPIRequest.go create mode 100644 model/c2m/TaobaoSebpIsvUserCheckAPIResponse.go delete mode 100644 model/c2m/TaobaoSebpIsvUserCheckResponse.go create mode 100644 model/c2m/TaobaoSebpIsvUserSignAPIRequest.go create mode 100644 model/c2m/TaobaoSebpIsvUserSignAPIResponse.go delete mode 100644 model/c2m/TaobaoSebpIsvUserSignResponse.go create mode 100644 model/c2m/TaobaoSebpIsvWxrobotCallbackAPIRequest.go create mode 100644 model/c2m/TaobaoSebpIsvWxrobotCallbackAPIResponse.go delete mode 100644 model/c2m/TaobaoSebpIsvWxrobotCallbackResponse.go create mode 100644 model/c2m/TaobaoSebpOrganizationGetinviteinfoAPIRequest.go create mode 100644 model/c2m/TaobaoSebpOrganizationGetinviteinfoAPIResponse.go delete mode 100644 model/c2m/TaobaoSebpOrganizationGetinviteinfoResponse.go create mode 100644 model/c2m/TaobaoSebpOrganizationGetinviteinfoResultDo.go create mode 100644 model/c2m/TaobaoSebpOrganizationGetorderinfoAPIRequest.go create mode 100644 model/c2m/TaobaoSebpOrganizationGetorderinfoAPIResponse.go delete mode 100644 model/c2m/TaobaoSebpOrganizationGetorderinfoResponse.go create mode 100644 model/c2m/TaobaoSebpOrganizationGetorderinfoResultDo.go create mode 100644 model/c2m/TaobaoTxpItemItemlistgetAPIRequest.go create mode 100644 model/c2m/TaobaoTxpItemItemlistgetAPIResponse.go delete mode 100644 model/c2m/TaobaoTxpItemItemlistgetResponse.go create mode 100644 model/c2m/TaobaoTxpItemItemlistgetResultDto.go create mode 100644 model/cainiaocntec/CainiaoCntecShopkeeperSupplyStatisticsQueryAPIRequest.go create mode 100644 model/cainiaocntec/CainiaoCntecShopkeeperSupplyStatisticsQueryAPIResponse.go delete mode 100644 model/cainiaocntec/CainiaoCntecShopkeeperSupplyStatisticsQueryResponse.go create mode 100644 model/cainiaoecc/CainiaoEccExceptionsDelayCountAPIRequest.go create mode 100644 model/cainiaoecc/CainiaoEccExceptionsDelayCountAPIResponse.go delete mode 100644 model/cainiaoecc/CainiaoEccExceptionsDelayCountResponse.go create mode 100644 model/cainiaoecc/CainiaoEccExceptionsDelayGetAPIRequest.go create mode 100644 model/cainiaoecc/CainiaoEccExceptionsDelayGetAPIResponse.go delete mode 100644 model/cainiaoecc/CainiaoEccExceptionsDelayGetResponse.go create mode 100644 model/cainiaohandover/CainiaoGlobalHandoverCancelAPIRequest.go create mode 100644 model/cainiaohandover/CainiaoGlobalHandoverCancelAPIResponse.go delete mode 100644 model/cainiaohandover/CainiaoGlobalHandoverCancelResponse.go create mode 100644 model/cainiaohandover/CainiaoGlobalHandoverCloudprintGetAPIRequest.go create mode 100644 model/cainiaohandover/CainiaoGlobalHandoverCloudprintGetAPIResponse.go delete mode 100644 model/cainiaohandover/CainiaoGlobalHandoverCloudprintGetResponse.go create mode 100644 model/cainiaohandover/CainiaoGlobalHandoverCommitAPIRequest.go create mode 100644 model/cainiaohandover/CainiaoGlobalHandoverCommitAPIResponse.go delete mode 100644 model/cainiaohandover/CainiaoGlobalHandoverCommitResponse.go create mode 100644 model/cainiaohandover/CainiaoGlobalHandoverContentQueryAPIRequest.go create mode 100644 model/cainiaohandover/CainiaoGlobalHandoverContentQueryAPIResponse.go delete mode 100644 model/cainiaohandover/CainiaoGlobalHandoverContentQueryResponse.go create mode 100644 model/cainiaohandover/CainiaoGlobalHandoverParcelQueryAPIRequest.go create mode 100644 model/cainiaohandover/CainiaoGlobalHandoverParcelQueryAPIResponse.go delete mode 100644 model/cainiaohandover/CainiaoGlobalHandoverParcelQueryResponse.go create mode 100644 model/cainiaohandover/CainiaoGlobalHandoverPdfGetAPIRequest.go create mode 100644 model/cainiaohandover/CainiaoGlobalHandoverPdfGetAPIResponse.go delete mode 100644 model/cainiaohandover/CainiaoGlobalHandoverPdfGetResponse.go create mode 100644 model/cainiaohandover/CainiaoGlobalHandoverSavedraftAPIRequest.go create mode 100644 model/cainiaohandover/CainiaoGlobalHandoverSavedraftAPIResponse.go delete mode 100644 model/cainiaohandover/CainiaoGlobalHandoverSavedraftResponse.go create mode 100644 model/cainiaohandover/CainiaoGlobalHandoverUpdateAPIRequest.go create mode 100644 model/cainiaohandover/CainiaoGlobalHandoverUpdateAPIResponse.go delete mode 100644 model/cainiaohandover/CainiaoGlobalHandoverUpdateResponse.go create mode 100644 model/cainiaohandover/CainiaoGlobalLogisticOrderCreateAPIRequest.go create mode 100644 model/cainiaohandover/CainiaoGlobalLogisticOrderCreateAPIResponse.go delete mode 100644 model/cainiaohandover/CainiaoGlobalLogisticOrderCreateResponse.go create mode 100644 model/cainiaohandover/CainiaoGlobalLogisticsCarrierQuerylistAPIRequest.go create mode 100644 model/cainiaohandover/CainiaoGlobalLogisticsCarrierQuerylistAPIResponse.go delete mode 100644 model/cainiaohandover/CainiaoGlobalLogisticsCarrierQuerylistResponse.go create mode 100644 model/cainiaohandover/CainiaoGlobalSolutionInquiryAPIRequest.go create mode 100644 model/cainiaohandover/CainiaoGlobalSolutionInquiryAPIResponse.go delete mode 100644 model/cainiaohandover/CainiaoGlobalSolutionInquiryResponse.go create mode 100644 model/cainiaohandover/CainiaoGlobalSolutionServiceResourceQueryAPIRequest.go create mode 100644 model/cainiaohandover/CainiaoGlobalSolutionServiceResourceQueryAPIResponse.go delete mode 100644 model/cainiaohandover/CainiaoGlobalSolutionServiceResourceQueryResponse.go create mode 100644 model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticeAPIRequest.go create mode 100644 model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticeAPIResponse.go delete mode 100644 model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticeResponse.go create mode 100644 model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticesendQueryAPIRequest.go create mode 100644 model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticesendQueryAPIResponse.go delete mode 100644 model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticesendQueryResponse.go create mode 100644 model/cainiaolocker/CainiaoEndpointLockerTopOrderTrackingNewAPIRequest.go create mode 100644 model/cainiaolocker/CainiaoEndpointLockerTopOrderTrackingNewAPIResponse.go delete mode 100644 model/cainiaolocker/CainiaoEndpointLockerTopOrderTrackingNewResponse.go create mode 100644 model/cainiaolocker/CainiaoEndpointLockerTopOrderWithholdAPIRequest.go create mode 100644 model/cainiaolocker/CainiaoEndpointLockerTopOrderWithholdAPIResponse.go delete mode 100644 model/cainiaolocker/CainiaoEndpointLockerTopOrderWithholdResponse.go create mode 100644 model/cainiaolocker/CainiaoEndpointLockerTopStationAddorupdateAPIRequest.go create mode 100644 model/cainiaolocker/CainiaoEndpointLockerTopStationAddorupdateAPIResponse.go delete mode 100644 model/cainiaolocker/CainiaoEndpointLockerTopStationAddorupdateResponse.go create mode 100644 model/cainiaolocker/CainiaoEndpointLockerTopWithholdQueryAPIRequest.go create mode 100644 model/cainiaolocker/CainiaoEndpointLockerTopWithholdQueryAPIResponse.go delete mode 100644 model/cainiaolocker/CainiaoEndpointLockerTopWithholdQueryResponse.go create mode 100644 model/cainiaolocker/CainiaoNbaddAppointdeliverFeedbackcodesAPIRequest.go create mode 100644 model/cainiaolocker/CainiaoNbaddAppointdeliverFeedbackcodesAPIResponse.go delete mode 100644 model/cainiaolocker/CainiaoNbaddAppointdeliverFeedbackcodesResponse.go create mode 100644 model/cainiaolocker/CainiaoNbaddAppointdeliverGetconsigninfoAPIRequest.go create mode 100644 model/cainiaolocker/CainiaoNbaddAppointdeliverGetconsigninfoAPIResponse.go delete mode 100644 model/cainiaolocker/CainiaoNbaddAppointdeliverGetconsigninfoResponse.go create mode 100644 model/cainiaolocker/CainiaoNborderfrontUserOutsideQueryoutsideuserAPIRequest.go create mode 100644 model/cainiaolocker/CainiaoNborderfrontUserOutsideQueryoutsideuserAPIResponse.go delete mode 100644 model/cainiaolocker/CainiaoNborderfrontUserOutsideQueryoutsideuserResponse.go create mode 100644 model/cainiaoncwl/CainiaoNcwlJhorderQueryAPIRequest.go create mode 100644 model/cainiaoncwl/CainiaoNcwlJhorderQueryAPIResponse.go delete mode 100644 model/cainiaoncwl/CainiaoNcwlJhorderQueryResponse.go create mode 100644 model/caipiao/TaobaoCaipiaoGoodsInfoGetAPIRequest.go create mode 100644 model/caipiao/TaobaoCaipiaoGoodsInfoGetAPIResponse.go delete mode 100644 model/caipiao/TaobaoCaipiaoGoodsInfoGetResponse.go create mode 100644 model/caipiao/TaobaoCaipiaoGoodsInfoInputAPIRequest.go create mode 100644 model/caipiao/TaobaoCaipiaoGoodsInfoInputAPIResponse.go delete mode 100644 model/caipiao/TaobaoCaipiaoGoodsInfoInputResponse.go create mode 100644 model/caipiao/TaobaoCaipiaoLotterySendbynickAPIRequest.go create mode 100644 model/caipiao/TaobaoCaipiaoLotterySendbynickAPIResponse.go delete mode 100644 model/caipiao/TaobaoCaipiaoLotterySendbynickResponse.go create mode 100644 model/caipiao/TaobaoCaipiaoLotterytypesGetAPIRequest.go create mode 100644 model/caipiao/TaobaoCaipiaoLotterytypesGetAPIResponse.go delete mode 100644 model/caipiao/TaobaoCaipiaoLotterytypesGetResponse.go create mode 100644 model/caipiao/TaobaoCaipiaoMarketingPutAPIRequest.go create mode 100644 model/caipiao/TaobaoCaipiaoMarketingPutAPIResponse.go delete mode 100644 model/caipiao/TaobaoCaipiaoMarketingPutResponse.go create mode 100644 model/caipiao/TaobaoCaipiaoPresentStatGetAPIRequest.go create mode 100644 model/caipiao/TaobaoCaipiaoPresentStatGetAPIResponse.go delete mode 100644 model/caipiao/TaobaoCaipiaoPresentStatGetResponse.go create mode 100644 model/caipiao/TaobaoCaipiaoShopInfoInputAPIRequest.go create mode 100644 model/caipiao/TaobaoCaipiaoShopInfoInputAPIResponse.go delete mode 100644 model/caipiao/TaobaoCaipiaoShopInfoInputResponse.go create mode 100644 model/caipiao/TaobaoCaipiaoSignstatusCheckAPIRequest.go create mode 100644 model/caipiao/TaobaoCaipiaoSignstatusCheckAPIResponse.go delete mode 100644 model/caipiao/TaobaoCaipiaoSignstatusCheckResponse.go create mode 100644 model/campus/AlibabaCampusAclCancelpermiitemfromroleAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclCancelpermiitemfromroleAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclCancelpermiitemfromroleResponse.go create mode 100644 model/campus/AlibabaCampusAclCancelrolesfromuserAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclCancelrolesfromuserAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclCancelrolesfromuserResponse.go create mode 100644 model/campus/AlibabaCampusAclCheckemproleAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclCheckemproleAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclCheckemproleResponse.go create mode 100644 model/campus/AlibabaCampusAclGetmenubyempidAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclGetmenubyempidAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclGetmenubyempidResponse.go create mode 100644 model/campus/AlibabaCampusAclGetpermissionbyroleidAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclGetpermissionbyroleidAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclGetpermissionbyroleidResponse.go create mode 100644 model/campus/AlibabaCampusAclGetrolebyempidAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclGetrolebyempidAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclGetrolebyempidResponse.go create mode 100644 model/campus/AlibabaCampusAclGrantpermiitemstouserAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclGrantpermiitemstouserAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclGrantpermiitemstouserResponse.go create mode 100644 model/campus/AlibabaCampusAclGrantpermiitemtoroleAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclGrantpermiitemtoroleAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclGrantpermiitemtoroleResponse.go create mode 100644 model/campus/AlibabaCampusAclInsertroleAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclInsertroleAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclInsertroleResponse.go create mode 100644 model/campus/AlibabaCampusAclNewCheckusermenuAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclNewCheckusermenuAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclNewCheckusermenuResponse.go create mode 100644 model/campus/AlibabaCampusAclNewCheckuserpermissionAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclNewCheckuserpermissionAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclNewCheckuserpermissionResponse.go create mode 100644 model/campus/AlibabaCampusAclNewCheckuserroleAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclNewCheckuserroleAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclNewCheckuserroleResponse.go create mode 100644 model/campus/AlibabaCampusAclNewDeleteuserroleAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclNewDeleteuserroleAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclNewDeleteuserroleResponse.go create mode 100644 model/campus/AlibabaCampusAclNewFreezeroleAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclNewFreezeroleAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclNewFreezeroleResponse.go create mode 100644 model/campus/AlibabaCampusAclNewGetappmenutreeAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclNewGetappmenutreeAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclNewGetappmenutreeResponse.go create mode 100644 model/campus/AlibabaCampusAclNewGetrolewithmenutreenodesAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclNewGetrolewithmenutreenodesAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclNewGetrolewithmenutreenodesResponse.go create mode 100644 model/campus/AlibabaCampusAclNewListrolesAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclNewListrolesAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclNewListrolesResponse.go create mode 100644 model/campus/AlibabaCampusAclNewListuserbymenuAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclNewListuserbymenuAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclNewListuserbymenuResponse.go create mode 100644 model/campus/AlibabaCampusAclNewListusermenuAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclNewListusermenuAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclNewListusermenuResponse.go create mode 100644 model/campus/AlibabaCampusAclNewListuserrolesAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclNewListuserrolesAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclNewListuserrolesResponse.go create mode 100644 model/campus/AlibabaCampusAclNewPageuserroleAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclNewPageuserroleAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclNewPageuserroleResponse.go create mode 100644 model/campus/AlibabaCampusAclNewRemoveroleAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclNewRemoveroleAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclNewRemoveroleResponse.go create mode 100644 model/campus/AlibabaCampusAclNewSaverolewithmenuAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclNewSaverolewithmenuAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclNewSaverolewithmenuResponse.go create mode 100644 model/campus/AlibabaCampusAclNewUnfreezeroleAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclNewUnfreezeroleAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclNewUnfreezeroleResponse.go create mode 100644 model/campus/AlibabaCampusAclQueryallemppermiitemAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclQueryallemppermiitemAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclQueryallemppermiitemResponse.go create mode 100644 model/campus/AlibabaCampusAclQueryallroleAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclQueryallroleAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclQueryallroleResponse.go create mode 100644 model/campus/AlibabaCampusAclUpdategrantroletouserAPIRequest.go create mode 100644 model/campus/AlibabaCampusAclUpdategrantroletouserAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAclUpdategrantroletouserResponse.go create mode 100644 model/campus/AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIRequest.go create mode 100644 model/campus/AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAdminmapPoiinfoGetlistbygroupResponse.go create mode 100644 model/campus/AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIRequest.go create mode 100644 model/campus/AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsResponse.go create mode 100644 model/campus/AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIRequest.go create mode 100644 model/campus/AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsResponse.go create mode 100644 model/campus/AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIRequest.go create mode 100644 model/campus/AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIResponse.go delete mode 100644 model/campus/AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoResponse.go create mode 100644 model/campus/AlibabaCampusCoreAppGetappusagesAPIRequest.go create mode 100644 model/campus/AlibabaCampusCoreAppGetappusagesAPIResponse.go delete mode 100644 model/campus/AlibabaCampusCoreAppGetappusagesResponse.go create mode 100644 model/campus/AlibabaCampusCoreCompanycampusGetcombycamidAPIRequest.go create mode 100644 model/campus/AlibabaCampusCoreCompanycampusGetcombycamidAPIResponse.go delete mode 100644 model/campus/AlibabaCampusCoreCompanycampusGetcombycamidResponse.go create mode 100644 model/campus/AlibabaCampusCoreEmployeeModifyemployeeAPIRequest.go create mode 100644 model/campus/AlibabaCampusCoreEmployeeModifyemployeeAPIResponse.go delete mode 100644 model/campus/AlibabaCampusCoreEmployeeModifyemployeeResponse.go create mode 100644 model/campus/AlibabaCampusDeviceGetdeviceforqueryAPIRequest.go create mode 100644 model/campus/AlibabaCampusDeviceGetdeviceforqueryAPIResponse.go delete mode 100644 model/campus/AlibabaCampusDeviceGetdeviceforqueryResponse.go create mode 100644 model/campus/AlibabaCampusDeviceHistorydataGetAPIRequest.go create mode 100644 model/campus/AlibabaCampusDeviceHistorydataGetAPIResponse.go delete mode 100644 model/campus/AlibabaCampusDeviceHistorydataGetResponse.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIRequest.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIResponse.go delete mode 100644 model/campus/AlibabaCampusDeviceOpenapiFeedbackeventinfoResponse.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiGetdevicelistAPIRequest.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiGetdevicelistAPIResponse.go delete mode 100644 model/campus/AlibabaCampusDeviceOpenapiGetdevicelistResponse.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIRequest.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIResponse.go delete mode 100644 model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimedataResponse.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIRequest.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIResponse.go delete mode 100644 model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimelogResponse.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiGethistorydataAPIRequest.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiGethistorydataAPIResponse.go delete mode 100644 model/campus/AlibabaCampusDeviceOpenapiGethistorydataResponse.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiGetsimpledeviceAPIRequest.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiGetsimpledeviceAPIResponse.go delete mode 100644 model/campus/AlibabaCampusDeviceOpenapiGetsimpledeviceResponse.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIRequest.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIResponse.go delete mode 100644 model/campus/AlibabaCampusDeviceOpenapiGetsimpledevicelistResponse.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiGettemplatelistAPIRequest.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiGettemplatelistAPIResponse.go delete mode 100644 model/campus/AlibabaCampusDeviceOpenapiGettemplatelistResponse.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiGetuniquedeviceAPIRequest.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiGetuniquedeviceAPIResponse.go delete mode 100644 model/campus/AlibabaCampusDeviceOpenapiGetuniquedeviceResponse.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiOperatedeviceAPIRequest.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiOperatedeviceAPIResponse.go delete mode 100644 model/campus/AlibabaCampusDeviceOpenapiOperatedeviceResponse.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIRequest.go create mode 100644 model/campus/AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIResponse.go delete mode 100644 model/campus/AlibabaCampusDeviceOpenapiSaveeventinfoforibosResponse.go create mode 100644 model/campus/AlibabaCampusDevicehubOpenapiReportdataAPIRequest.go create mode 100644 model/campus/AlibabaCampusDevicehubOpenapiReportdataAPIResponse.go delete mode 100644 model/campus/AlibabaCampusDevicehubOpenapiReportdataResponse.go create mode 100644 model/campus/AlibabaCampusGuardDataSyncAPIRequest.go create mode 100644 model/campus/AlibabaCampusGuardDataSyncAPIResponse.go delete mode 100644 model/campus/AlibabaCampusGuardDataSyncResponse.go create mode 100644 model/campus/AlibabaCampusSpaceAttrSetattrAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceAttrSetattrAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceAttrSetattrResponse.go create mode 100644 model/campus/AlibabaCampusSpaceBuildingGetbycampusidAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceBuildingGetbycampusidAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceBuildingGetbycampusidResponse.go create mode 100644 model/campus/AlibabaCampusSpaceCampusGetbyidAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceCampusGetbyidAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceCampusGetbyidResponse.go create mode 100644 model/campus/AlibabaCampusSpaceFloorGetbybuildingidAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceFloorGetbybuildingidAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceFloorGetbybuildingidResponse.go create mode 100644 model/campus/AlibabaCampusSpaceFloorGetbyidAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceFloorGetbyidAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceFloorGetbyidResponse.go create mode 100644 model/campus/AlibabaCampusSpaceGetbyidsAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceGetbyidsAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceGetbyidsResponse.go create mode 100644 model/campus/AlibabaCampusSpaceGroupGetbyidAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceGroupGetbyidAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceGroupGetbyidResponse.go create mode 100644 model/campus/AlibabaCampusSpaceGroupGetlistAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceGroupGetlistAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceGroupGetlistResponse.go create mode 100644 model/campus/AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceGroupGetlistbycampusandtypeResponse.go create mode 100644 model/campus/AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceGroupGetspacegrouplistwithattrResponse.go create mode 100644 model/campus/AlibabaCampusSpaceGroupGetspacegroupwithattrAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceGroupGetspacegroupwithattrAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceGroupGetspacegroupwithattrResponse.go create mode 100644 model/campus/AlibabaCampusSpaceTypeGetbycodeAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceTypeGetbycodeAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceTypeGetbycodeResponse.go create mode 100644 model/campus/AlibabaCampusSpaceTypeGetpageresultAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceTypeGetpageresultAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceTypeGetpageresultResponse.go create mode 100644 model/campus/AlibabaCampusSpaceUnitGetbyidAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceUnitGetbyidAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceUnitGetbyidResponse.go create mode 100644 model/campus/AlibabaCampusSpaceUnitGetlistAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceUnitGetlistAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceUnitGetlistResponse.go create mode 100644 model/campus/AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceUnitGetlistbycampusandtypeResponse.go create mode 100644 model/campus/AlibabaCampusSpaceUnitGetlistbygroupidAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceUnitGetlistbygroupidAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceUnitGetlistbygroupidResponse.go create mode 100644 model/campus/AlibabaCampusSpaceUnitGetlistmapbygroupidAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceUnitGetlistmapbygroupidAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceUnitGetlistmapbygroupidResponse.go create mode 100644 model/campus/AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceUnitGetlistwithattrbygroupidResponse.go create mode 100644 model/campus/AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceUnitGetspaceunitlistwithattrResponse.go create mode 100644 model/campus/AlibabaCampusSpaceUnitGetspaceunitwithattrAPIRequest.go create mode 100644 model/campus/AlibabaCampusSpaceUnitGetspaceunitwithattrAPIResponse.go delete mode 100644 model/campus/AlibabaCampusSpaceUnitGetspaceunitwithattrResponse.go create mode 100644 model/campus/AlibabaCampusTopologyGetallAPIRequest.go create mode 100644 model/campus/AlibabaCampusTopologyGetallAPIResponse.go delete mode 100644 model/campus/AlibabaCampusTopologyGetallResponse.go create mode 100644 model/campus/AlibabaGuardAccessAuthAPIRequest.go create mode 100644 model/campus/AlibabaGuardAccessAuthAPIResponse.go delete mode 100644 model/campus/AlibabaGuardAccessAuthResponse.go create mode 100644 model/campus/AlibabaIworkCoreHrsGetpersonAPIRequest.go create mode 100644 model/campus/AlibabaIworkCoreHrsGetpersonAPIResponse.go delete mode 100644 model/campus/AlibabaIworkCoreHrsGetpersonResponse.go create mode 100644 model/campus/AlibabaIworkMcMsgSenddefaultAPIRequest.go create mode 100644 model/campus/AlibabaIworkMcMsgSenddefaultAPIResponse.go delete mode 100644 model/campus/AlibabaIworkMcMsgSenddefaultResponse.go create mode 100644 model/campus/AlibabaIworkMcMsgSendmobileAPIRequest.go create mode 100644 model/campus/AlibabaIworkMcMsgSendmobileAPIResponse.go delete mode 100644 model/campus/AlibabaIworkMcMsgSendmobileResponse.go create mode 100644 model/campus/AlibabaVisitorGetidsbyqrcodeAPIRequest.go create mode 100644 model/campus/AlibabaVisitorGetidsbyqrcodeAPIResponse.go delete mode 100644 model/campus/AlibabaVisitorGetidsbyqrcodeResponse.go create mode 100644 model/car/AlitripTravelCrsdriverArrangeAPIRequest.go create mode 100644 model/car/AlitripTravelCrsdriverArrangeAPIResponse.go delete mode 100644 model/car/AlitripTravelCrsdriverArrangeResponse.go create mode 100644 model/car/AlitripTravelCrsorderCompleteAPIRequest.go create mode 100644 model/car/AlitripTravelCrsorderCompleteAPIResponse.go delete mode 100644 model/car/AlitripTravelCrsorderCompleteResponse.go create mode 100644 model/car/AlitripTravelCrsorderSearchAPIRequest.go create mode 100644 model/car/AlitripTravelCrsorderSearchAPIResponse.go delete mode 100644 model/car/AlitripTravelCrsorderSearchResponse.go create mode 100644 model/car/TaobaoAlitripCarDriverStatusUpdateAPIRequest.go create mode 100644 model/car/TaobaoAlitripCarDriverStatusUpdateAPIResponse.go delete mode 100644 model/car/TaobaoAlitripCarDriverStatusUpdateResponse.go create mode 100644 model/car/TaobaoAlitripCarOrderAcceptAPIRequest.go create mode 100644 model/car/TaobaoAlitripCarOrderAcceptAPIResponse.go delete mode 100644 model/car/TaobaoAlitripCarOrderAcceptResponse.go create mode 100644 model/car/TaobaoAlitripCarOrderCompleteAPIRequest.go create mode 100644 model/car/TaobaoAlitripCarOrderCompleteAPIResponse.go delete mode 100644 model/car/TaobaoAlitripCarOrderCompleteResponse.go create mode 100644 model/car/TaobaoAlitripCarOrderConfirmAPIRequest.go create mode 100644 model/car/TaobaoAlitripCarOrderConfirmAPIResponse.go delete mode 100644 model/car/TaobaoAlitripCarOrderConfirmResponse.go create mode 100644 model/car/TaobaoAlitripCarOrderQueryAPIRequest.go create mode 100644 model/car/TaobaoAlitripCarOrderQueryAPIResponse.go delete mode 100644 model/car/TaobaoAlitripCarOrderQueryResponse.go create mode 100644 model/car/TaobaoAlitripCarOrderStatusAPIRequest.go create mode 100644 model/car/TaobaoAlitripCarOrderStatusAPIResponse.go delete mode 100644 model/car/TaobaoAlitripCarOrderStatusResponse.go create mode 100644 model/car/TaobaoAlitripCarRentOrderCancelAPIRequest.go create mode 100644 model/car/TaobaoAlitripCarRentOrderCancelAPIResponse.go delete mode 100644 model/car/TaobaoAlitripCarRentOrderCancelResponse.go create mode 100644 model/car/TaobaoAlitripDomesticRentCarStatusUpdateAPIRequest.go create mode 100644 model/car/TaobaoAlitripDomesticRentCarStatusUpdateAPIResponse.go delete mode 100644 model/car/TaobaoAlitripDomesticRentCarStatusUpdateResponse.go create mode 100644 model/category/AlibabaImapCategoryPredictAPIRequest.go create mode 100644 model/category/AlibabaImapCategoryPredictAPIResponse.go delete mode 100644 model/category/AlibabaImapCategoryPredictResponse.go create mode 100644 model/category/AlibabaImapFixedmappingQueryAPIRequest.go create mode 100644 model/category/AlibabaImapFixedmappingQueryAPIResponse.go delete mode 100644 model/category/AlibabaImapFixedmappingQueryResponse.go create mode 100644 model/category/AlibabaImapPvAutofillAPIRequest.go create mode 100644 model/category/AlibabaImapPvAutofillAPIResponse.go delete mode 100644 model/category/AlibabaImapPvAutofillResponse.go create mode 100644 model/category/AlibabaWholesaleCategoryGetAPIRequest.go create mode 100644 model/category/AlibabaWholesaleCategoryGetAPIResponse.go delete mode 100644 model/category/AlibabaWholesaleCategoryGetResponse.go create mode 100644 model/category/AliexpressSocialDiscategoryGetAPIRequest.go create mode 100644 model/category/AliexpressSocialDiscategoryGetAPIResponse.go delete mode 100644 model/category/AliexpressSocialDiscategoryGetResponse.go create mode 100644 model/category/TaobaoItemCatpropsModificationGetAPIRequest.go create mode 100644 model/category/TaobaoItemCatpropsModificationGetAPIResponse.go delete mode 100644 model/category/TaobaoItemCatpropsModificationGetResponse.go create mode 100644 model/category/TaobaoItemcatsAuthorizeGetAPIRequest.go create mode 100644 model/category/TaobaoItemcatsAuthorizeGetAPIResponse.go delete mode 100644 model/category/TaobaoItemcatsAuthorizeGetResponse.go create mode 100644 model/category/TaobaoItemcatsGetAPIRequest.go create mode 100644 model/category/TaobaoItemcatsGetAPIResponse.go delete mode 100644 model/category/TaobaoItemcatsGetResponse.go create mode 100644 model/category/TaobaoItempropsGetAPIRequest.go create mode 100644 model/category/TaobaoItempropsGetAPIResponse.go delete mode 100644 model/category/TaobaoItempropsGetResponse.go create mode 100644 model/category/TaobaoItempropvaluesGetAPIRequest.go create mode 100644 model/category/TaobaoItempropvaluesGetAPIResponse.go delete mode 100644 model/category/TaobaoItempropvaluesGetResponse.go create mode 100644 model/charity/AlibabaCharityCharitytimeQueryAPIRequest.go create mode 100644 model/charity/AlibabaCharityCharitytimeQueryAPIResponse.go delete mode 100644 model/charity/AlibabaCharityCharitytimeQueryResponse.go create mode 100644 model/charity/AlibabaCharityUseractionSyncAPIRequest.go create mode 100644 model/charity/AlibabaCharityUseractionSyncAPIResponse.go delete mode 100644 model/charity/AlibabaCharityUseractionSyncResponse.go create mode 100644 model/choujiang/TaobaoDeActivitySecuritytokenApplyAPIRequest.go create mode 100644 model/choujiang/TaobaoDeActivitySecuritytokenApplyAPIResponse.go delete mode 100644 model/choujiang/TaobaoDeActivitySecuritytokenApplyResponse.go create mode 100644 model/cityretail/TaobaoCityretailWmflConvertWarehouseAPIRequest.go create mode 100644 model/cityretail/TaobaoCityretailWmflConvertWarehouseAPIResponse.go delete mode 100644 model/cityretail/TaobaoCityretailWmflConvertWarehouseResponse.go create mode 100644 model/cityretail/TmallCityretailWmflOrderLogisticsQueryAPIRequest.go create mode 100644 model/cityretail/TmallCityretailWmflOrderLogisticsQueryAPIResponse.go delete mode 100644 model/cityretail/TmallCityretailWmflOrderLogisticsQueryResponse.go create mode 100644 model/cloudgame/AlibabaCgameAvatarUserbodyQueryAPIRequest.go create mode 100644 model/cloudgame/AlibabaCgameAvatarUserbodyQueryAPIResponse.go delete mode 100644 model/cloudgame/AlibabaCgameAvatarUserbodyQueryResponse.go create mode 100644 model/cloudgame/AlibabaCgameScoreReportAPIRequest.go create mode 100644 model/cloudgame/AlibabaCgameScoreReportAPIResponse.go delete mode 100644 model/cloudgame/AlibabaCgameScoreReportResponse.go create mode 100644 model/cloudgame/AlibabaCloudgameUserMixuseridCheckAPIRequest.go create mode 100644 model/cloudgame/AlibabaCloudgameUserMixuseridCheckAPIResponse.go delete mode 100644 model/cloudgame/AlibabaCloudgameUserMixuseridCheckResponse.go create mode 100644 model/cloudgame/YoukuCgameScoreReportAPIRequest.go create mode 100644 model/cloudgame/YoukuCgameScoreReportAPIResponse.go delete mode 100644 model/cloudgame/YoukuCgameScoreReportResponse.go create mode 100644 model/cloudpush/TaobaoCloudpushMessageAndroidAPIRequest.go create mode 100644 model/cloudpush/TaobaoCloudpushMessageAndroidAPIResponse.go delete mode 100644 model/cloudpush/TaobaoCloudpushMessageAndroidResponse.go create mode 100644 model/cloudpush/TaobaoCloudpushMessageIosAPIRequest.go create mode 100644 model/cloudpush/TaobaoCloudpushMessageIosAPIResponse.go delete mode 100644 model/cloudpush/TaobaoCloudpushMessageIosResponse.go create mode 100644 model/cloudpush/TaobaoCloudpushNoticeAndroidAPIRequest.go create mode 100644 model/cloudpush/TaobaoCloudpushNoticeAndroidAPIResponse.go delete mode 100644 model/cloudpush/TaobaoCloudpushNoticeAndroidResponse.go create mode 100644 model/cloudpush/TaobaoCloudpushNoticeIosAPIRequest.go create mode 100644 model/cloudpush/TaobaoCloudpushNoticeIosAPIResponse.go delete mode 100644 model/cloudpush/TaobaoCloudpushNoticeIosResponse.go create mode 100644 model/cloudpush/TaobaoCloudpushPushAPIRequest.go create mode 100644 model/cloudpush/TaobaoCloudpushPushAPIResponse.go delete mode 100644 model/cloudpush/TaobaoCloudpushPushResponse.go create mode 100644 model/cmns/YunosServiceCmnsCoaDeviceGetAPIRequest.go create mode 100644 model/cmns/YunosServiceCmnsCoaDeviceGetAPIResponse.go delete mode 100644 model/cmns/YunosServiceCmnsCoaDeviceGetResponse.go create mode 100644 model/cmns/YunosServiceCmnsCoaDeviceIsonlineAPIRequest.go create mode 100644 model/cmns/YunosServiceCmnsCoaDeviceIsonlineAPIResponse.go delete mode 100644 model/cmns/YunosServiceCmnsCoaDeviceIsonlineResponse.go create mode 100644 model/cmns/YunosServiceCmnsCoaMessageAckAPIRequest.go create mode 100644 model/cmns/YunosServiceCmnsCoaMessageAckAPIResponse.go delete mode 100644 model/cmns/YunosServiceCmnsCoaMessageAckResponse.go create mode 100644 model/cmns/YunosServiceCmnsCoaMessageAcksListAPIRequest.go create mode 100644 model/cmns/YunosServiceCmnsCoaMessageAcksListAPIResponse.go delete mode 100644 model/cmns/YunosServiceCmnsCoaMessageAcksListResponse.go create mode 100644 model/cmns/YunosServiceCmnsCoaMessageCancelAPIRequest.go create mode 100644 model/cmns/YunosServiceCmnsCoaMessageCancelAPIResponse.go delete mode 100644 model/cmns/YunosServiceCmnsCoaMessageCancelResponse.go create mode 100644 model/cmns/YunosServiceCmnsCoaMessageGetAPIRequest.go create mode 100644 model/cmns/YunosServiceCmnsCoaMessageGetAPIResponse.go delete mode 100644 model/cmns/YunosServiceCmnsCoaMessageGetResponse.go create mode 100644 model/cmns/YunosServiceCmnsCoaMessagePushAPIRequest.go create mode 100644 model/cmns/YunosServiceCmnsCoaMessagePushAPIResponse.go delete mode 100644 model/cmns/YunosServiceCmnsCoaMessagePushResponse.go create mode 100644 model/cmns/YunosServiceCmnsCoaMessageresultGetAPIRequest.go create mode 100644 model/cmns/YunosServiceCmnsCoaMessageresultGetAPIResponse.go delete mode 100644 model/cmns/YunosServiceCmnsCoaMessageresultGetResponse.go create mode 100644 model/cmns/YunosServiceCmnsCoaPushAPIRequest.go create mode 100644 model/cmns/YunosServiceCmnsCoaPushAPIResponse.go delete mode 100644 model/cmns/YunosServiceCmnsCoaPushResponse.go create mode 100644 model/cntms/CainiaoCntmsLogisticsOrderConsignAPIRequest.go create mode 100644 model/cntms/CainiaoCntmsLogisticsOrderConsignAPIResponse.go delete mode 100644 model/cntms/CainiaoCntmsLogisticsOrderConsignResponse.go create mode 100644 model/consignplatform/CainiaoConsignplatformOrderCancelAPIRequest.go create mode 100644 model/consignplatform/CainiaoConsignplatformOrderCancelAPIResponse.go delete mode 100644 model/consignplatform/CainiaoConsignplatformOrderCancelResponse.go create mode 100644 model/consignplatform/CainiaoConsignplatformOrderCreateAPIRequest.go create mode 100644 model/consignplatform/CainiaoConsignplatformOrderCreateAPIResponse.go delete mode 100644 model/consignplatform/CainiaoConsignplatformOrderCreateResponse.go create mode 100644 model/crm/TaobaoCrmExchangeActivityCreateAPIRequest.go create mode 100644 model/crm/TaobaoCrmExchangeActivityCreateAPIResponse.go delete mode 100644 model/crm/TaobaoCrmExchangeActivityCreateResponse.go create mode 100644 model/crm/TaobaoCrmExchangeCrowdinstanceAddAPIRequest.go create mode 100644 model/crm/TaobaoCrmExchangeCrowdinstanceAddAPIResponse.go delete mode 100644 model/crm/TaobaoCrmExchangeCrowdinstanceAddResponse.go create mode 100644 model/crm/TaobaoCrmExchangeCrowdinstanceDeleteAPIRequest.go create mode 100644 model/crm/TaobaoCrmExchangeCrowdinstanceDeleteAPIResponse.go delete mode 100644 model/crm/TaobaoCrmExchangeCrowdinstanceDeleteResponse.go create mode 100644 model/crm/TaobaoCrmGradeGetAPIRequest.go create mode 100644 model/crm/TaobaoCrmGradeGetAPIResponse.go delete mode 100644 model/crm/TaobaoCrmGradeGetResponse.go create mode 100644 model/crm/TaobaoCrmGradeSetAPIRequest.go create mode 100644 model/crm/TaobaoCrmGradeSetAPIResponse.go delete mode 100644 model/crm/TaobaoCrmGradeSetResponse.go create mode 100644 model/crm/TaobaoCrmGrademktMemberAddAPIRequest.go create mode 100644 model/crm/TaobaoCrmGrademktMemberAddAPIResponse.go delete mode 100644 model/crm/TaobaoCrmGrademktMemberAddResponse.go create mode 100644 model/crm/TaobaoCrmGrademktMemberDetailCreateAPIRequest.go create mode 100644 model/crm/TaobaoCrmGrademktMemberDetailCreateAPIResponse.go delete mode 100644 model/crm/TaobaoCrmGrademktMemberDetailCreateResponse.go create mode 100644 model/crm/TaobaoCrmGrademktMemberDetailDeleteAPIRequest.go create mode 100644 model/crm/TaobaoCrmGrademktMemberDetailDeleteAPIResponse.go delete mode 100644 model/crm/TaobaoCrmGrademktMemberDetailDeleteResponse.go create mode 100644 model/crm/TaobaoCrmGrademktMemberDetailQueryAPIRequest.go create mode 100644 model/crm/TaobaoCrmGrademktMemberDetailQueryAPIResponse.go delete mode 100644 model/crm/TaobaoCrmGrademktMemberDetailQueryResponse.go create mode 100644 model/crm/TaobaoCrmGrademktMemberQueryAPIRequest.go create mode 100644 model/crm/TaobaoCrmGrademktMemberQueryAPIResponse.go delete mode 100644 model/crm/TaobaoCrmGrademktMemberQueryResponse.go create mode 100644 model/crm/TaobaoCrmGroupAddAPIRequest.go create mode 100644 model/crm/TaobaoCrmGroupAddAPIResponse.go delete mode 100644 model/crm/TaobaoCrmGroupAddResponse.go create mode 100644 model/crm/TaobaoCrmGroupAppendAPIRequest.go create mode 100644 model/crm/TaobaoCrmGroupAppendAPIResponse.go delete mode 100644 model/crm/TaobaoCrmGroupAppendResponse.go create mode 100644 model/crm/TaobaoCrmGroupDeleteAPIRequest.go create mode 100644 model/crm/TaobaoCrmGroupDeleteAPIResponse.go delete mode 100644 model/crm/TaobaoCrmGroupDeleteResponse.go create mode 100644 model/crm/TaobaoCrmGroupMoveAPIRequest.go create mode 100644 model/crm/TaobaoCrmGroupMoveAPIResponse.go delete mode 100644 model/crm/TaobaoCrmGroupMoveResponse.go create mode 100644 model/crm/TaobaoCrmGroupUpdateAPIRequest.go create mode 100644 model/crm/TaobaoCrmGroupUpdateAPIResponse.go delete mode 100644 model/crm/TaobaoCrmGroupUpdateResponse.go create mode 100644 model/crm/TaobaoCrmGroupsGetAPIRequest.go create mode 100644 model/crm/TaobaoCrmGroupsGetAPIResponse.go delete mode 100644 model/crm/TaobaoCrmGroupsGetResponse.go create mode 100644 model/crm/TaobaoCrmGrouptaskCheckAPIRequest.go create mode 100644 model/crm/TaobaoCrmGrouptaskCheckAPIResponse.go delete mode 100644 model/crm/TaobaoCrmGrouptaskCheckResponse.go create mode 100644 model/crm/TaobaoCrmMemberGroupGetAPIRequest.go create mode 100644 model/crm/TaobaoCrmMemberGroupGetAPIResponse.go delete mode 100644 model/crm/TaobaoCrmMemberGroupGetResponse.go create mode 100644 model/crm/TaobaoCrmMemberinfoUpdateAPIRequest.go create mode 100644 model/crm/TaobaoCrmMemberinfoUpdateAPIResponse.go delete mode 100644 model/crm/TaobaoCrmMemberinfoUpdateResponse.go create mode 100644 model/crm/TaobaoCrmMembersGetAPIRequest.go create mode 100644 model/crm/TaobaoCrmMembersGetAPIResponse.go delete mode 100644 model/crm/TaobaoCrmMembersGetResponse.go create mode 100644 model/crm/TaobaoCrmMembersGroupBatchaddAPIRequest.go create mode 100644 model/crm/TaobaoCrmMembersGroupBatchaddAPIResponse.go delete mode 100644 model/crm/TaobaoCrmMembersGroupBatchaddResponse.go create mode 100644 model/crm/TaobaoCrmMembersGroupsBatchdeleteAPIRequest.go create mode 100644 model/crm/TaobaoCrmMembersGroupsBatchdeleteAPIResponse.go delete mode 100644 model/crm/TaobaoCrmMembersGroupsBatchdeleteResponse.go create mode 100644 model/crm/TaobaoCrmMembersIncrementGetAPIRequest.go create mode 100644 model/crm/TaobaoCrmMembersIncrementGetAPIResponse.go delete mode 100644 model/crm/TaobaoCrmMembersIncrementGetResponse.go create mode 100644 model/crm/TaobaoCrmMembersSearchAPIRequest.go create mode 100644 model/crm/TaobaoCrmMembersSearchAPIResponse.go delete mode 100644 model/crm/TaobaoCrmMembersSearchResponse.go create mode 100644 model/crm/TaobaoCrmServiceChannelShortlinkCreateAPIRequest.go create mode 100644 model/crm/TaobaoCrmServiceChannelShortlinkCreateAPIResponse.go delete mode 100644 model/crm/TaobaoCrmServiceChannelShortlinkCreateResponse.go create mode 100644 model/crm/TaobaoCrmShopvipCancelAPIRequest.go create mode 100644 model/crm/TaobaoCrmShopvipCancelAPIResponse.go delete mode 100644 model/crm/TaobaoCrmShopvipCancelResponse.go create mode 100644 model/customizemarket/TaobaoMarketPictureGetuserpicturesAPIRequest.go create mode 100644 model/customizemarket/TaobaoMarketPictureGetuserpicturesAPIResponse.go delete mode 100644 model/customizemarket/TaobaoMarketPictureGetuserpicturesResponse.go create mode 100644 model/damai/AlibabaDamaiEcSearchProjectSearchAPIRequest.go create mode 100644 model/damai/AlibabaDamaiEcSearchProjectSearchAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiEcSearchProjectSearchResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenBatchpushticketAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenBatchpushticketAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenBatchpushticketResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenChangeticketAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenChangeticketAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenChangeticketResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenDeleteFaceelementAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenDeleteFaceelementAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenDeleteFaceelementResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenDeletePaperformatAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenDeletePaperformatAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenDeletePaperformatResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenDeletefaceAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenDeletefaceAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenDeletefaceResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenDeletefloorAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenDeletefloorAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenDeletefloorResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenDeleteitemAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenDeleteitemAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenDeleteitemResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenDeleteperformAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenDeleteperformAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenDeleteperformResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenDeleteprojectAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenDeleteprojectAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenDeleteprojectResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenDeletestandAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenDeletestandAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenDeletestandResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenDeletevenueAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenDeletevenueAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenDeletevenueResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenInvalidticketAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenInvalidticketAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenInvalidticketResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenLockticketAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenLockticketAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenLockticketResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenPushPaperformatAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenPushPaperformatAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenPushPaperformatResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenPushfaceAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenPushfaceAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenPushfaceResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenPushfaceelementAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenPushfaceelementAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenPushfaceelementResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenPushfloorAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenPushfloorAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenPushfloorResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenPushitemAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenPushitemAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenPushitemResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenPushperformAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenPushperformAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenPushperformResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenPushprojectAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenPushprojectAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenPushprojectResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenPushstandAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenPushstandAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenPushstandResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenPushvenueAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenPushvenueAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenPushvenueResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenResetticketAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenResetticketAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenResetticketResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenUnlockticketAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenUnlockticketAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenUnlockticketResponse.go create mode 100644 model/damai/AlibabaDamaiMevOpenWithdrawticketAPIRequest.go create mode 100644 model/damai/AlibabaDamaiMevOpenWithdrawticketAPIResponse.go delete mode 100644 model/damai/AlibabaDamaiMevOpenWithdrawticketResponse.go create mode 100644 model/damaiticklet/AlibabaDamaiTickletQrcodeDecodeAPIRequest.go create mode 100644 model/damaiticklet/AlibabaDamaiTickletQrcodeDecodeAPIResponse.go delete mode 100644 model/damaiticklet/AlibabaDamaiTickletQrcodeDecodeResponse.go create mode 100644 model/degoperation/TaobaoDegoperationCheckAddrStatusAPIRequest.go create mode 100644 model/degoperation/TaobaoDegoperationCheckAddrStatusAPIResponse.go delete mode 100644 model/degoperation/TaobaoDegoperationCheckAddrStatusResponse.go create mode 100644 model/degoperation/TaobaoDegoperationCreateqrcodeAPIRequest.go create mode 100644 model/degoperation/TaobaoDegoperationCreateqrcodeAPIResponse.go delete mode 100644 model/degoperation/TaobaoDegoperationCreateqrcodeResponse.go create mode 100644 model/degoperation/TaobaoDegoperationDoLuckydrawAPIRequest.go create mode 100644 model/degoperation/TaobaoDegoperationDoLuckydrawAPIResponse.go delete mode 100644 model/degoperation/TaobaoDegoperationDoLuckydrawResponse.go create mode 100644 model/degoperation/TaobaoDegoperationGetByEventkeyAPIRequest.go create mode 100644 model/degoperation/TaobaoDegoperationGetByEventkeyAPIResponse.go delete mode 100644 model/degoperation/TaobaoDegoperationGetByEventkeyResponse.go create mode 100644 model/degoperation/TaobaoDegoperationGetInfoUuidAPIRequest.go create mode 100644 model/degoperation/TaobaoDegoperationGetInfoUuidAPIResponse.go delete mode 100644 model/degoperation/TaobaoDegoperationGetInfoUuidResponse.go create mode 100644 model/degoperation/TaobaoDegoperationShowTopRecordsAPIRequest.go create mode 100644 model/degoperation/TaobaoDegoperationShowTopRecordsAPIResponse.go delete mode 100644 model/degoperation/TaobaoDegoperationShowTopRecordsResponse.go create mode 100644 model/degoperation/TaobaoDegoperationShowUserRecordsAPIRequest.go create mode 100644 model/degoperation/TaobaoDegoperationShowUserRecordsAPIResponse.go delete mode 100644 model/degoperation/TaobaoDegoperationShowUserRecordsResponse.go create mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherCancelvoucherAPIRequest.go create mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherCancelvoucherAPIResponse.go delete mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherCancelvoucherResponse.go create mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherEvaluateAPIRequest.go create mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherEvaluateAPIResponse.go delete mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherEvaluateResponse.go create mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherOrdervoucherAPIRequest.go create mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherOrdervoucherAPIResponse.go delete mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherOrdervoucherResponse.go create mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherRollbackvoucherAPIRequest.go create mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherRollbackvoucherAPIResponse.go delete mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherRollbackvoucherResponse.go create mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherSendgoodsAPIRequest.go create mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherSendgoodsAPIResponse.go delete mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherSendgoodsResponse.go create mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherSendvoucherAPIRequest.go create mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherSendvoucherAPIResponse.go delete mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherSendvoucherResponse.go create mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherWatchAPIRequest.go create mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherWatchAPIResponse.go delete mode 100644 model/deliveryvoucher/TaobaoGameDeliveryvoucherWatchResponse.go create mode 100644 model/dengta/AlibabaPicturesDengtaImsDouyinAccountChangedAPIRequest.go create mode 100644 model/dengta/AlibabaPicturesDengtaImsDouyinAccountChangedAPIResponse.go delete mode 100644 model/dengta/AlibabaPicturesDengtaImsDouyinAccountChangedResponse.go create mode 100644 model/dengta/AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest.go create mode 100644 model/dengta/AlibabaPicturesDengtaImsOrderStatusChangeAPIResponse.go delete mode 100644 model/dengta/AlibabaPicturesDengtaImsOrderStatusChangeResponse.go create mode 100644 model/dengta/AlibabaPicturesDengtaOrderEffectImportAPIRequest.go create mode 100644 model/dengta/AlibabaPicturesDengtaOrderEffectImportAPIResponse.go delete mode 100644 model/dengta/AlibabaPicturesDengtaOrderEffectImportResponse.go create mode 100644 model/dengta/AlibabaPicturesDengtaOrderStatusChangeAPIRequest.go create mode 100644 model/dengta/AlibabaPicturesDengtaOrderStatusChangeAPIResponse.go create mode 100644 model/dengta/AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest.go create mode 100644 model/dengta/AlibabaPicturesDengtaOrderStatusChangeNewAPIResponse.go delete mode 100644 model/dengta/AlibabaPicturesDengtaOrderStatusChangeNewResponse.go delete mode 100644 model/dengta/AlibabaPicturesDengtaOrderStatusChangeResponse.go create mode 100644 model/dengta/AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest.go create mode 100644 model/dengta/AlibabaPicturesDengtaWbaccountPriceChangeAPIResponse.go delete mode 100644 model/dengta/AlibabaPicturesDengtaWbaccountPriceChangeResponse.go create mode 100644 model/dengta/AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest.go create mode 100644 model/dengta/AlibabaPicturesDengtaWxaccountPriceChangeAPIResponse.go delete mode 100644 model/dengta/AlibabaPicturesDengtaWxaccountPriceChangeResponse.go create mode 100644 model/dmp/TaobaoDmpCrowdsGetAPIRequest.go create mode 100644 model/dmp/TaobaoDmpCrowdsGetAPIResponse.go delete mode 100644 model/dmp/TaobaoDmpCrowdsGetResponse.go create mode 100644 model/drug/AlibabaAlihealthNrRxQueryimageAPIRequest.go create mode 100644 model/drug/AlibabaAlihealthNrRxQueryimageAPIResponse.go delete mode 100644 model/drug/AlibabaAlihealthNrRxQueryimageResponse.go create mode 100644 model/drug/AlibabaAlihealthNrSpuQueryAPIRequest.go create mode 100644 model/drug/AlibabaAlihealthNrSpuQueryAPIResponse.go delete mode 100644 model/drug/AlibabaAlihealthNrSpuQueryResponse.go create mode 100644 model/drug/AlibabaAlihealthNrTradeMedicalInsuranceGetAPIRequest.go create mode 100644 model/drug/AlibabaAlihealthNrTradeMedicalInsuranceGetAPIResponse.go delete mode 100644 model/drug/AlibabaAlihealthNrTradeMedicalInsuranceGetResponse.go create mode 100644 model/drug/AlibabaAlihealthNrTradeOrderGetAPIRequest.go create mode 100644 model/drug/AlibabaAlihealthNrTradeOrderGetAPIResponse.go delete mode 100644 model/drug/AlibabaAlihealthNrTradeOrderGetResponse.go create mode 100644 model/drug/AlibabaAlihealthNrTradeOrderGetorderdetailAPIRequest.go create mode 100644 model/drug/AlibabaAlihealthNrTradeOrderGetorderdetailAPIResponse.go delete mode 100644 model/drug/AlibabaAlihealthNrTradeOrderGetorderdetailResponse.go create mode 100644 model/drug/AlibabaHealthNrLogisticsDeliverynoUpdateAPIRequest.go create mode 100644 model/drug/AlibabaHealthNrLogisticsDeliverynoUpdateAPIResponse.go delete mode 100644 model/drug/AlibabaHealthNrLogisticsDeliverynoUpdateResponse.go create mode 100644 model/drug/AlibabaHealthNrLogisticsWaybillGetAPIRequest.go create mode 100644 model/drug/AlibabaHealthNrLogisticsWaybillGetAPIResponse.go delete mode 100644 model/drug/AlibabaHealthNrLogisticsWaybillGetResponse.go create mode 100644 model/drug/TaobaoAlihealthDrugStoreGetAPIRequest.go create mode 100644 model/drug/TaobaoAlihealthDrugStoreGetAPIResponse.go delete mode 100644 model/drug/TaobaoAlihealthDrugStoreGetResponse.go create mode 100644 model/drug/TaobaoAlihealthDrugStoreSearchAPIRequest.go create mode 100644 model/drug/TaobaoAlihealthDrugStoreSearchAPIResponse.go delete mode 100644 model/drug/TaobaoAlihealthDrugStoreSearchResponse.go create mode 100644 model/drug/TaobaoAlihealthDrugUserShopGetAPIRequest.go create mode 100644 model/drug/TaobaoAlihealthDrugUserShopGetAPIResponse.go delete mode 100644 model/drug/TaobaoAlihealthDrugUserShopGetResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthCodesellerGetuserawardAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthCodesellerGetuserawardAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthCodesellerGetuserawardResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugBillUpbillDetailWithcodeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckHospitalAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckHospitalResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeCommonListCodeinfoAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeCommonListCodeinfoResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeErrorReportAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeErrorReportAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeErrorReportResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytDrQuerycodeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytDrQuerycodeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytDrQuerycodeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeflowAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeflowResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytSmyxQuerycodeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytVaQuerycodeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytVaQuerycodeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytVaQuerycodeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytYdQuerycodeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytYdQuerycodeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytYdQuerycodeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytYqQuerycodeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytYqQuerycodeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytYqQuerycodeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytYyApplycodeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytYyApplycodeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytYyApplycodeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytYyQuerycodeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytYyQuerycodeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeKytYyQuerycodeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeListCodeAlkaliAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeListCodeAlkaliResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeListCodeMedicalInsuranceResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeListCodeSuperviseAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugCodeListCodeSuperviseResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugDownloadEntlistAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugDownloadEntlistAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugDownloadEntlistResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugDownloadFileacceptretAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugDownloadFileacceptretAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugDownloadFileacceptretResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugDownloadGetentauthentAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugDownloadGetentauthentAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugDownloadGetentauthentResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugGetbarcodeBytraccodeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugGetbarcodeBytraccodeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugGetbarcodeBytraccodeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytCodeprocessAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytCodeprocessAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytCodeprocessResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytCodetobillAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytCodetobillAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytCodetobillResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDestbillCheckAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDestbillCheckAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDestbillCheckResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDestbillListAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDestbillListAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDestbillListResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrAssociateequiAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrAssociateequiAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrAssociateequiResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrBillcheckAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrBillcheckAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrBillcheckResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrDrugrecalAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrDrugrecalAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrDrugrecalResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrGetbyentidAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrGetbyentidAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrGetbyentidResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrGetbyrefentidAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrGetbyrefentidAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrGetbyrefentidResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrGetentinfoAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrGetentinfoAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrGetentinfoResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrGetproteminfoAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrGetproteminfoAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrGetproteminfoResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrGetupteminfoAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrGetupteminfoAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrGetupteminfoResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrListpartsAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrListpartsAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrListpartsResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrQueryupbillcodeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrQueryupbillcodeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrQueryupbillcodeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrSearchstatusAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrSearchstatusAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrSearchstatusResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrSinglerelationAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrSinglerelationAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrSinglerelationResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrStorageuploadAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrStorageuploadAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrStorageuploadResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrTransportuploadAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrTransportuploadAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrTransportuploadResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrUploadinoutbillAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrUploadinoutbillResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrVaequipmentListAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrVaequipmentListResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrugcodesAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrugcodesAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrugcodesResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrugdetailAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrugdetailAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrugdetailResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrugrescodeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrugrescodeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrugrescodeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrugtableAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrugtableAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDrugtableResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDruploadretailAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDruploadretailAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytDruploadretailResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytFiledownloadAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytFiledownloadAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytFiledownloadResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetbyentidAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetbyentidAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetbyentidResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetbyrefentidAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetbyrefentidAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetbyrefentidResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetcodebaseinfoAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetcodebaseinfoAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetcodebaseinfoResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetcodebillinfoAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetcodebillinfoAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetcodebillinfoResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetdruglicenseAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetdruglicenseAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetdruglicenseResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetentinfoAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetentinfoAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetentinfoResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetentlicenseAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetentlicenseAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytGetentlicenseResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytIdgenerateAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytIdgenerateAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytIdgenerateResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytListauthsAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytListauthsAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytListauthsResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytListpartsAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytListpartsAPIResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytListpartsByagentAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytListpartsByagentAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytListpartsByagentResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytListpartsResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytListupoutAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytListupoutAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytListupoutResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytQueryactivetimeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytQueryactivetimeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytQueryactivetimeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytQuerybatchprodAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytQuerybatchprodAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytQuerybatchprodResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytQuerycodeactiveAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytQuerycodeactiveAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytQuerycodeactiveResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytQuerydruginfoAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytQuerydruginfoAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytQuerydruginfoResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytRecordinfoAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytRecordinfoAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytRecordinfoResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytRelationdetailAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytRelationdetailAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytRelationdetailResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytRemnantbillUploadAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytRemnantbillUploadResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSaveentAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSaveentAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSaveentResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSearchbillAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSearchbillAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSearchbillResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSearchstatusAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSearchstatusAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSearchstatusResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSinglerelationAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSinglerelationAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSinglerelationResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSmyxGetentinfoAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSmyxGetentinfoAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSmyxGetentinfoResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSmyxListpartsAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSmyxListpartsAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSmyxListpartsResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSmyxUploadinoutbillResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytStorebilldeleteAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytStorebilldeleteAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytStorebilldeleteResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytStorebilllistAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytStorebilllistAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytStorebilllistResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSynonymauthsAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSynonymauthsAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytSynonymauthsResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUpdatebillcodeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUpdatebillcodeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUpdatebillinfoAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUpdatebillinfoResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUpinoutfileAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUpinoutfileAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUpinoutfileResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUploadb2cbillAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUploadb2cbillAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUploadb2cbillResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUploadcircubillAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUploadcircubillAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUploadcircubillResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUploadinoutbillAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUploadinoutbillAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUploadinoutbillResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUploadinsignAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUploadinsignAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUploadinsignResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUploadrelationAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUploadrelationAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUploadrelationResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUploadretailAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUploadretailAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUploadretailResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUpstorebillfileAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUpstorebillfileAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytUpstorebillfileResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytVaGetentinfoAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytVaGetentinfoAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytVaGetentinfoResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytVaUploadretailAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytVaUploadretailAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytVaUploadretailResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYbGetcoderelationAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYbGetcoderelationResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYyDrugcodesAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYyDrugcodesAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYyDrugcodesResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYyGetentinfoAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYyGetentinfoAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYyGetentinfoResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYyListpartsAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYyListpartsAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYyListpartsResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYyQuerysubcodesAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYyQuerysubcodesAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYyQuerysubcodesResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYyUploadinoutbillAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYyUploadinoutbillResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYyUploadretailAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYyUploadretailAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugKytYyUploadretailResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugLsydSaveentAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugLsydSaveentAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugLsydSaveentResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugScanQuerycodeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugScanQuerycodeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugScanQuerycodeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugUpdatebarcodeBytraccodeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugUploadExtinfoAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugUploadExtinfoAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugUploadExtinfoResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugWxinfoUploadAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugWxinfoUploadAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugWxinfoUploadResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeApplycertAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeApplycertAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeApplycertResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeCenterReceiveBoundStatusResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportattributeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportcategoryResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportprojectResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetblindresultResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferblindResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferdataResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeScanAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeScanAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeScanResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeUserDataAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeUserDataAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugcodeUserDataResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutAPIResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutDetailResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryBillstatusResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryCodedetailResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryListpartsResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryRelationResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadinoutbillResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadretailAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadretailResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutAPIResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutDetailResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryBillstatusResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryCodedetailResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryListpartsResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryRelationResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadinoutbillResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadretailAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadretailResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthTraceCodeSearchGetDrugresourcetopResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthTracecodesearcGetinfomationVivoAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthTracecodesearcGetinfomationVivoAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthTracecodesearcGetinfomationVivoResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthTracecodesearchGetshowurlVivoAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthTracecodesearchGetshowurlVivoAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthTracecodesearchGetshowurlVivoResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthTracecodesellerBillRootcodeGetAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthTracecodesellerBillRootcodeGetAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthTracecodesellerBillRootcodeGetResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthTracecodesellerProductAttrSearchAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthTracecodesellerProductAttrSearchAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthTracecodesellerProductAttrSearchResponse.go create mode 100644 model/drugtrace/AlibabaAlihealthZyUploadrelationAPIRequest.go create mode 100644 model/drugtrace/AlibabaAlihealthZyUploadrelationAPIResponse.go delete mode 100644 model/drugtrace/AlibabaAlihealthZyUploadrelationResponse.go create mode 100644 model/drugtrace/AlibabaCfdaXtptAppAcceptInfoAPIRequest.go create mode 100644 model/drugtrace/AlibabaCfdaXtptAppAcceptInfoAPIResponse.go delete mode 100644 model/drugtrace/AlibabaCfdaXtptAppAcceptInfoResponse.go create mode 100644 model/drugtrace/AlibabaCfdaXtptAppGetshowurlAPIRequest.go create mode 100644 model/drugtrace/AlibabaCfdaXtptAppGetshowurlAPIResponse.go delete mode 100644 model/drugtrace/AlibabaCfdaXtptAppGetshowurlResponse.go create mode 100644 model/dt/AlibabaDtTmllcarLeadsinfoAPIRequest.go create mode 100644 model/dt/AlibabaDtTmllcarLeadsinfoAPIResponse.go delete mode 100644 model/dt/AlibabaDtTmllcarLeadsinfoResponse.go create mode 100644 model/dt/AlibabaDtTmllcarPricevalidateAPIRequest.go create mode 100644 model/dt/AlibabaDtTmllcarPricevalidateAPIResponse.go delete mode 100644 model/dt/AlibabaDtTmllcarPricevalidateResponse.go create mode 100644 model/dt/AlibabaNrsItemPricetagRecognizeAPIRequest.go create mode 100644 model/dt/AlibabaNrsItemPricetagRecognizeAPIResponse.go delete mode 100644 model/dt/AlibabaNrsItemPricetagRecognizeResponse.go create mode 100644 model/dt/AlibabaNrsItemRtdataBackflowAPIRequest.go create mode 100644 model/dt/AlibabaNrsItemRtdataBackflowAPIResponse.go delete mode 100644 model/dt/AlibabaNrsItemRtdataBackflowResponse.go create mode 100644 model/dutyfree/AlibabaDutyfreeStockQueryAPIRequest.go create mode 100644 model/dutyfree/AlibabaDutyfreeStockQueryAPIResponse.go delete mode 100644 model/dutyfree/AlibabaDutyfreeStockQueryResponse.go create mode 100644 model/dutyfree/AlibabaDutyfreeStockQueryResultDo.go create mode 100644 model/einvoice/AlibabaEinvoiceAmountCheckAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceAmountCheckAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceAmountCheckResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceBillEinvoiceListAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceBillEinvoiceListAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceBillEinvoiceListResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceBillForwordCreateAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceBillForwordCreateAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceBillForwordCreateResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceBillSyncAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceBillSyncAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceBillSyncResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceClosereqAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceClosereqAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceClosereqResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceCoreInvUploadAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceCoreInvUploadAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceCoreInvUploadResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceCreateResultGetAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceCreateResultGetAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceCreateResultGetResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceCreateResultsIncrementGetAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceCreateResultsIncrementGetAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceCreateResultsIncrementGetResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceCreatereqAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceCreatereqAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceCreatereqResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceDeductGetAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceDeductGetAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceDeductGetResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceDeviceOrderQueryAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceDeviceOrderQueryAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceDeviceOrderQueryResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceDeviceOrderUpdateAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceDeviceOrderUpdateAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceDeviceOrderUpdateResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceFlowRefundAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceFlowRefundAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceFlowRefundResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceFlowRenewAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceFlowRenewAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceFlowRenewResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceFlowTaxCreateAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceFlowTaxCreateAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceFlowTaxCreateResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceFlowTaxGetAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceFlowTaxGetAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceFlowTaxGetResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceIncomeAgentCheckAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceIncomeAgentCheckAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceIncomeAgentCheckResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceIncomeCertificateReturnAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceIncomeCertificateReturnAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceIncomeCertificateReturnResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceIncomeDeviceReturnAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceIncomeDeviceReturnAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceIncomeDeviceReturnResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceIncomeOcrReturnAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceIncomeOcrReturnAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceIncomeOcrReturnResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceIncomeScanReturnAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceIncomeScanReturnAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceIncomeScanReturnResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceIncomeTokenReturnAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceIncomeTokenReturnAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceIncomeTokenReturnResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceIncomeVerifyReturnAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceIncomeVerifyReturnAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceIncomeVerifyReturnResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceInvoiceapplyGetAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceInvoiceapplyGetAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceInvoiceapplyGetResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceInvoiceapplyUpdateAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceInvoiceapplyUpdateAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceInvoiceapplyUpdateResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceItemUpdateAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceItemUpdateAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceItemUpdateResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceMerchantAddAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceMerchantAddAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceMerchantAddResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceMerchantBindcompanyAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceMerchantBindcompanyAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceMerchantBindcompanyResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceMerchantCreatereqAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceMerchantCreatereqAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceMerchantCreatereqResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceMerchantDeleteAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceMerchantDeleteAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceMerchantDeleteResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceMerchantResultGetAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceMerchantResultGetAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceMerchantResultGetResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceOrderRefundUpdateAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceOrderRefundUpdateAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceOrderRefundUpdateResponse.go create mode 100644 model/einvoice/AlibabaEinvoicePaperCommonReturnAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoicePaperCommonReturnAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoicePaperCommonReturnResponse.go create mode 100644 model/einvoice/AlibabaEinvoicePaperInvalidAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoicePaperInvalidAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoicePaperInvalidResponse.go create mode 100644 model/einvoice/AlibabaEinvoicePaperPrintAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoicePaperPrintAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoicePaperPrintResponse.go create mode 100644 model/einvoice/AlibabaEinvoicePaperReturnAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoicePaperReturnAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoicePaperReturnResponse.go create mode 100644 model/einvoice/AlibabaEinvoicePartnerReturnAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoicePartnerReturnAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoicePartnerReturnResponse.go create mode 100644 model/einvoice/AlibabaEinvoicePartnerUploadAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoicePartnerUploadAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoicePartnerUploadResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceProdApplyAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceProdApplyAPIResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceProdApplyGetAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceProdApplyGetAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceProdApplyGetResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceProdApplyResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceProdResultFileurlGetAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceProdResultFileurlGetAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceProdResultFileurlGetResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceQrcodeCreateAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceQrcodeCreateAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceQrcodeCreateResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceRedCreatereqAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceRedCreatereqAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceRedCreatereqResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceSerialnoBatchGenerateAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceSerialnoBatchGenerateAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceSerialnoBatchGenerateResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceSerialnoGenerateAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceSerialnoGenerateAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceSerialnoGenerateResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceTaxOptEsignresultQueryAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceTaxOptEsignresultQueryAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceTaxOptEsignresultQueryResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountQueryAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountQueryAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountQueryResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountUpdateResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceTaxOptSalarybillCommitbillAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceTaxOptSalarybillCommitbillAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceTaxOptSalarybillCommitbillResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestSingleacceptResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceTaxOptSalaryresultQueryAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceTaxOptSalaryresultQueryAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceTaxOptSalaryresultQueryResponse.go create mode 100644 model/einvoice/AlibabaEinvoiceUnitorderCheckAPIRequest.go create mode 100644 model/einvoice/AlibabaEinvoiceUnitorderCheckAPIResponse.go delete mode 100644 model/einvoice/AlibabaEinvoiceUnitorderCheckResponse.go create mode 100644 model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewQueryAPIRequest.go create mode 100644 model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewQueryAPIResponse.go delete mode 100644 model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewQueryResponse.go create mode 100644 model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewSaveAPIRequest.go create mode 100644 model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewSaveAPIResponse.go delete mode 100644 model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewSaveResponse.go create mode 100644 model/eleenterprisecoupon/AlibabaEleEnterpriseCartcouponGetAPIRequest.go create mode 100644 model/eleenterprisecoupon/AlibabaEleEnterpriseCartcouponGetAPIResponse.go delete mode 100644 model/eleenterprisecoupon/AlibabaEleEnterpriseCartcouponGetResponse.go create mode 100644 model/eleenterprisecoupon/AlibabaEleEnterpriseCouponGetAPIRequest.go create mode 100644 model/eleenterprisecoupon/AlibabaEleEnterpriseCouponGetAPIResponse.go delete mode 100644 model/eleenterprisecoupon/AlibabaEleEnterpriseCouponGetResponse.go create mode 100644 model/eleenterprisecoupon/AlibabaEleEnterpriseCouponSendAPIRequest.go create mode 100644 model/eleenterprisecoupon/AlibabaEleEnterpriseCouponSendAPIResponse.go delete mode 100644 model/eleenterprisecoupon/AlibabaEleEnterpriseCouponSendResponse.go create mode 100644 model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest.go create mode 100644 model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchdeleteAPIResponse.go delete mode 100644 model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchdeleteResponse.go create mode 100644 model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest.go create mode 100644 model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchupdateAPIResponse.go delete mode 100644 model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchupdateResponse.go create mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCancelAPIRequest.go create mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCancelAPIResponse.go delete mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCancelResponse.go create mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCreateAPIRequest.go create mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCreateAPIResponse.go delete mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCreateResponse.go create mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetAPIRequest.go create mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetAPIResponse.go delete mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetResponse.go create mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetrefundinfoAPIRequest.go create mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetrefundinfoAPIResponse.go delete mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetrefundinfoResponse.go create mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetstatusAPIRequest.go create mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetstatusAPIResponse.go delete mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetstatusResponse.go create mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGettrackinginfoAPIRequest.go create mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGettrackinginfoAPIResponse.go delete mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGettrackinginfoResponse.go create mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewPaymentstatusAPIRequest.go create mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewPaymentstatusAPIResponse.go delete mode 100644 model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewPaymentstatusResponse.go create mode 100644 model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCategoriesAPIRequest.go create mode 100644 model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCategoriesAPIResponse.go delete mode 100644 model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCategoriesResponse.go create mode 100644 model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest.go create mode 100644 model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCheckaddressAPIResponse.go delete mode 100644 model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCheckaddressResponse.go create mode 100644 model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantGetAPIRequest.go create mode 100644 model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantGetAPIResponse.go delete mode 100644 model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantGetResponse.go create mode 100644 model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMixAPIRequest.go create mode 100644 model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMixAPIResponse.go delete mode 100644 model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMixResponse.go create mode 100644 model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest.go create mode 100644 model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMultispecmenuAPIResponse.go delete mode 100644 model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMultispecmenuResponse.go create mode 100644 model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantSearchAPIRequest.go create mode 100644 model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantSearchAPIResponse.go delete mode 100644 model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantSearchResponse.go create mode 100644 model/elife/TaobaoElifeLifecardConsumeAPIRequest.go create mode 100644 model/elife/TaobaoElifeLifecardConsumeAPIResponse.go delete mode 100644 model/elife/TaobaoElifeLifecardConsumeResponse.go create mode 100644 model/elife/TaobaoElifeLifecardQueryAPIRequest.go create mode 100644 model/elife/TaobaoElifeLifecardQueryAPIResponse.go delete mode 100644 model/elife/TaobaoElifeLifecardQueryResponse.go create mode 100644 model/elife/TaobaoElifeLifecardReconAPIRequest.go create mode 100644 model/elife/TaobaoElifeLifecardReconAPIResponse.go delete mode 100644 model/elife/TaobaoElifeLifecardReconResponse.go create mode 100644 model/elife/TaobaoElifeLifecardRefundAPIRequest.go create mode 100644 model/elife/TaobaoElifeLifecardRefundAPIResponse.go delete mode 100644 model/elife/TaobaoElifeLifecardRefundResponse.go create mode 100644 model/eticket/TaobaoEticketMerchantImgUploadAPIRequest.go create mode 100644 model/eticket/TaobaoEticketMerchantImgUploadAPIResponse.go delete mode 100644 model/eticket/TaobaoEticketMerchantImgUploadResponse.go create mode 100644 model/eticket/TaobaoEticketMerchantMaAvailableAPIRequest.go create mode 100644 model/eticket/TaobaoEticketMerchantMaAvailableAPIResponse.go delete mode 100644 model/eticket/TaobaoEticketMerchantMaAvailableResponse.go create mode 100644 model/eticket/TaobaoEticketMerchantMaConsumeAPIRequest.go create mode 100644 model/eticket/TaobaoEticketMerchantMaConsumeAPIResponse.go delete mode 100644 model/eticket/TaobaoEticketMerchantMaConsumeResponse.go create mode 100644 model/eticket/TaobaoEticketMerchantMaDelayAPIRequest.go create mode 100644 model/eticket/TaobaoEticketMerchantMaDelayAPIResponse.go delete mode 100644 model/eticket/TaobaoEticketMerchantMaDelayResponse.go create mode 100644 model/eticket/TaobaoEticketMerchantMaFailsendAPIRequest.go create mode 100644 model/eticket/TaobaoEticketMerchantMaFailsendAPIResponse.go delete mode 100644 model/eticket/TaobaoEticketMerchantMaFailsendResponse.go create mode 100644 model/eticket/TaobaoEticketMerchantMaResendAPIRequest.go create mode 100644 model/eticket/TaobaoEticketMerchantMaResendAPIResponse.go delete mode 100644 model/eticket/TaobaoEticketMerchantMaResendResponse.go create mode 100644 model/eticket/TaobaoEticketMerchantMaReverseAPIRequest.go create mode 100644 model/eticket/TaobaoEticketMerchantMaReverseAPIResponse.go delete mode 100644 model/eticket/TaobaoEticketMerchantMaReverseResponse.go create mode 100644 model/eticket/TaobaoEticketMerchantMaSendAPIRequest.go create mode 100644 model/eticket/TaobaoEticketMerchantMaSendAPIResponse.go delete mode 100644 model/eticket/TaobaoEticketMerchantMaSendResponse.go create mode 100644 model/eticket/TaobaoEticketMerchantTbmaGetAPIRequest.go create mode 100644 model/eticket/TaobaoEticketMerchantTbmaGetAPIResponse.go delete mode 100644 model/eticket/TaobaoEticketMerchantTbmaGetResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketAuthBeforeconsumeAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketAuthBeforeconsumeAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketAuthBeforeconsumeResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketAuthConsumeAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketAuthConsumeAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketAuthConsumeResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketBeforeconsumeAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketBeforeconsumeAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketBeforeconsumeResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketCardConsumecardAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketCardConsumecardAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketCardConsumecardResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketCodesGetAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketCodesGetAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketCodesGetResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketConsumeAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketConsumeAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketConsumeResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketFailsendAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketFailsendAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketFailsendResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketFlowConsumeAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketFlowConsumeAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketFlowConsumeResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketFlowResendAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketFlowResendAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketFlowResendResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketManageNotifyAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketManageNotifyAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketManageNotifyResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketOplogsGetAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketOplogsGetAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketOplogsGetResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketPackageBaseGetAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketPackageBaseGetAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketPackageBaseGetResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketPackageBaseListGetAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketPackageBaseListGetAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketPackageBaseListGetResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketQrcodeUploadAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketQrcodeUploadAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketQrcodeUploadResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketResendAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketResendAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketResendResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketReverseAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketReverseAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketReverseResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketSendAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketSendAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketSendResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketStoreGetAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketStoreGetAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketStoreGetResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketTasksGetAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketTasksGetAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketTasksGetResponse.go create mode 100644 model/eticket/TaobaoVmarketEticketTimeExpandAPIRequest.go create mode 100644 model/eticket/TaobaoVmarketEticketTimeExpandAPIResponse.go delete mode 100644 model/eticket/TaobaoVmarketEticketTimeExpandResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationAgreementListAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationAgreementListAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationAgreementListResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationGoodsOnofflineAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationGoodsOnofflineAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationGoodsOnofflineResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationGoodsPublishAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationGoodsPublishAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationGoodsPublishResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationHospitalPublishAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationHospitalPublishAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationHospitalPublishResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationHospitalSpecialTagAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationHospitalSpecialTagAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationHospitalSpecialTagResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationInvoiceInfoNotifyAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationInvoiceInfoNotifyAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationInvoiceInfoNotifyResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationItemsPublishAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationItemsPublishAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationItemsPublishResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationReportDiagnoseFileCodeGetResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderStatusResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSubmitResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSummaryResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationReserveCancelAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationReserveCancelAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationReserveCancelResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationReserveConfirmAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationReserveConfirmAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationReserveConfirmResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationReserveIsvModifyAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationReserveIsvModifyAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationReserveIsvModifyResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationReserveModifyNotifyAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationReserveModifyNotifyResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationReserveReportAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationReserveReportAPIResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationReserveReportNofifyAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationReserveReportNofifyAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationReserveReportNofifyResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationReserveReportResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationReserveStateAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationReserveStateAPIResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationReserveStateNotifyAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationReserveStateNotifyAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationReserveStateNotifyResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationReserveStateResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationServiceareaCheckAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationServiceareaCheckAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationServiceareaCheckResponse.go create mode 100644 model/examination/AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest.go create mode 100644 model/examination/AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIResponse.go delete mode 100644 model/examination/AlibabaAlihealthExaminationTodoorServiceinfoSyncResponse.go create mode 100644 model/exchange/TmallExchangeAgreeAPIRequest.go create mode 100644 model/exchange/TmallExchangeAgreeAPIResponse.go delete mode 100644 model/exchange/TmallExchangeAgreeResponse.go create mode 100644 model/exchange/TmallExchangeConsigngoodsAPIRequest.go create mode 100644 model/exchange/TmallExchangeConsigngoodsAPIResponse.go delete mode 100644 model/exchange/TmallExchangeConsigngoodsResponse.go create mode 100644 model/exchange/TmallExchangeGetAPIRequest.go create mode 100644 model/exchange/TmallExchangeGetAPIResponse.go delete mode 100644 model/exchange/TmallExchangeGetResponse.go create mode 100644 model/exchange/TmallExchangeMessageAddAPIRequest.go create mode 100644 model/exchange/TmallExchangeMessageAddAPIResponse.go delete mode 100644 model/exchange/TmallExchangeMessageAddResponse.go create mode 100644 model/exchange/TmallExchangeMessagesGetAPIRequest.go create mode 100644 model/exchange/TmallExchangeMessagesGetAPIResponse.go delete mode 100644 model/exchange/TmallExchangeMessagesGetResponse.go create mode 100644 model/exchange/TmallExchangeReceiveGetAPIRequest.go create mode 100644 model/exchange/TmallExchangeReceiveGetAPIResponse.go delete mode 100644 model/exchange/TmallExchangeReceiveGetResponse.go create mode 100644 model/exchange/TmallExchangeRefuseAPIRequest.go create mode 100644 model/exchange/TmallExchangeRefuseAPIResponse.go delete mode 100644 model/exchange/TmallExchangeRefuseResponse.go create mode 100644 model/exchange/TmallExchangeRefusereasonGetAPIRequest.go create mode 100644 model/exchange/TmallExchangeRefusereasonGetAPIResponse.go delete mode 100644 model/exchange/TmallExchangeRefusereasonGetResponse.go create mode 100644 model/exchange/TmallExchangeReturngoodsAgreeAPIRequest.go create mode 100644 model/exchange/TmallExchangeReturngoodsAgreeAPIResponse.go delete mode 100644 model/exchange/TmallExchangeReturngoodsAgreeResponse.go create mode 100644 model/exchange/TmallExchangeReturngoodsRefuseAPIRequest.go create mode 100644 model/exchange/TmallExchangeReturngoodsRefuseAPIResponse.go delete mode 100644 model/exchange/TmallExchangeReturngoodsRefuseResponse.go create mode 100644 model/fans/TmallFansArenaPushAPIRequest.go create mode 100644 model/fans/TmallFansArenaPushAPIResponse.go delete mode 100644 model/fans/TmallFansArenaPushResponse.go create mode 100644 model/fans/TmallFansArenaRecordAPIRequest.go create mode 100644 model/fans/TmallFansArenaRecordAPIResponse.go delete mode 100644 model/fans/TmallFansArenaRecordResponse.go create mode 100644 model/fans/TmallFansCashpoolCheckpayAPIRequest.go create mode 100644 model/fans/TmallFansCashpoolCheckpayAPIResponse.go delete mode 100644 model/fans/TmallFansCashpoolCheckpayResponse.go create mode 100644 model/fans/TmallFansCashpoolCreateAPIRequest.go create mode 100644 model/fans/TmallFansCashpoolCreateAPIResponse.go delete mode 100644 model/fans/TmallFansCashpoolCreateResponse.go create mode 100644 model/feedflow/TaobaoFeedflowAccountGetAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowAccountGetAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowAccountGetResponse.go create mode 100644 model/feedflow/TaobaoFeedflowAccountRptdailylistAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowAccountRptdailylistAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowAccountRptdailylistResponse.go create mode 100644 model/feedflow/TaobaoFeedflowAccountRptdailylistResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowAccountRpthourlistAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowAccountRpthourlistAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowAccountRpthourlistResponse.go create mode 100644 model/feedflow/TaobaoFeedflowAccountRpthourlistResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupAddAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupAddAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupAddResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupAddResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupAdzoneBindAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupAdzoneBindAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupAdzoneBindResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupAdzoneBindResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupAdzonePageAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupAdzonePageAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupAdzonePageResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupAdzonePageResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupAdzoneUnbindAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupAdzoneUnbindAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupAdzoneUnbindResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupAdzoneUnbindResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupCreativeAddBindAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupCreativeAddBindAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupCreativeAddBindResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupCreativeAddBindResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupCreativePageAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupCreativePageAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupCreativePageResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupCreativePageResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupDeleteAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupDeleteAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupDeleteResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupDeleteResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupModifyAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupModifyAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupModifyResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupModifyResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupPageAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupPageAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupPageResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupPageResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupRptdailylistAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupRptdailylistAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupRptdailylistResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupRptdailylistResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupRpthourlistAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupRpthourlistAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupRpthourlistResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdgroupRpthourlistResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdzoneListAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdzoneListAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemAdzoneListResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdzoneListResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdzoneRptdailylistAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdzoneRptdailylistAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemAdzoneRptdailylistResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdzoneRptdailylistResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdzoneRpthourlistAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdzoneRpthourlistAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemAdzoneRpthourlistResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemAdzoneRpthourlistResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemAlgoCrowdSuggestAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemAlgoCrowdSuggestAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemAlgoCrowdSuggestResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemAlgoCrowdSuggestResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignAddAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignAddAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemCampaignAddResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignAddResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignDaybudgetAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignDaybudgetAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemCampaignDaybudgetResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignDaybudgetResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignDeleteAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignDeleteAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemCampaignDeleteResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignDeleteResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignGetAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignGetAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemCampaignGetResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignGetResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignModifyAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignModifyAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemCampaignModifyResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignModifyResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignPageAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignPageAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemCampaignPageResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignPageResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignRptdailylistAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignRptdailylistAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemCampaignRptdailylistResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignRptdailylistResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignRpthourlistAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignRpthourlistAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemCampaignRpthourlistResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemCampaignRpthourlistResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemCreativeDeleteAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemCreativeDeleteAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemCreativeDeleteResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemCreativeDeleteResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemCreativeRptdailylistAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemCreativeRptdailylistAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemCreativeRptdailylistResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemCreativeRptdailylistResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemCreativeRpthourlistAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemCreativeRpthourlistAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemCreativeRpthourlistResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemCreativeRpthourlistResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdAddAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdAddAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemCrowdAddResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdAddResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdDeleteAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdDeleteAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemCrowdDeleteResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdDeleteResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdModifyAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdModifyAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemCrowdModifyResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdModifyResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdModifybindAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdModifybindAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemCrowdModifybindResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdModifybindResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdPageAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdPageAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemCrowdPageResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdPageResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdRptdailylistAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdRptdailylistAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemCrowdRptdailylistResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdRptdailylistResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdRpthourlistAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdRpthourlistAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemCrowdRpthourlistResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemCrowdRpthourlistResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemItemPageAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemItemPageAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemItemPageResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemItemPageResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemOptionPageAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemOptionPageAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemOptionPageResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemOptionPageResultDto.go create mode 100644 model/feedflow/TaobaoFeedflowItemTargetValidlistAPIRequest.go create mode 100644 model/feedflow/TaobaoFeedflowItemTargetValidlistAPIResponse.go delete mode 100644 model/feedflow/TaobaoFeedflowItemTargetValidlistResponse.go create mode 100644 model/feedflow/TaobaoFeedflowItemTargetValidlistResultDto.go create mode 100644 model/fenxiao/AlibabaAscpCnskuUpdateAPIRequest.go create mode 100644 model/fenxiao/AlibabaAscpCnskuUpdateAPIResponse.go delete mode 100644 model/fenxiao/AlibabaAscpCnskuUpdateResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoCooperationGetAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoCooperationGetAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoCooperationGetResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoDealerRequisitionorderAgreeAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoDealerRequisitionorderAgreeAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoDealerRequisitionorderAgreeResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCloseAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCloseAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCloseResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCreateAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCreateResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoDealerRequisitionorderGetAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoDealerRequisitionorderGetAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoDealerRequisitionorderGetResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoDealerRequisitionorderQueryAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoDealerRequisitionorderQueryAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoDealerRequisitionorderQueryResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoDealerRequisitionorderRemarkUpdateResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoDiscountsGetAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoDiscountsGetAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoDiscountsGetResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoDistributorItemsGetAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoDistributorItemsGetAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoDistributorItemsGetResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoDistributorProductsGetAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoDistributorProductsGetAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoDistributorProductsGetResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoDistributorsGetAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoDistributorsGetAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoDistributorsGetResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoGradesGetAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoGradesGetAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoGradesGetResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoLoginUserGetAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoLoginUserGetAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoLoginUserGetResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoOrderConfirmPaidAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoOrderConfirmPaidAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoOrderConfirmPaidResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoOrderRemarkUpdateAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoOrderRemarkUpdateAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoOrderRemarkUpdateResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoOrdersGetAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoOrdersGetAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoOrdersGetResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductAddAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductAddAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoProductAddResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductGradepriceGetAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductGradepriceGetAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoProductGradepriceGetResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductGradepriceUpdateAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductGradepriceUpdateAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoProductGradepriceUpdateResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductImageDeleteAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductImageDeleteAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoProductImageDeleteResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductImageUploadAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductImageUploadAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoProductImageUploadResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductImportFromAuctionAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductImportFromAuctionAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoProductImportFromAuctionResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductMapAddAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductMapAddAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoProductMapAddResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductQuantityUpdateAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductQuantityUpdateAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoProductQuantityUpdateResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductSkuAddAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductSkuAddAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoProductSkuAddResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductSkuDeleteAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductSkuDeleteAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoProductSkuDeleteResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductSkuUpdateAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductSkuUpdateAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoProductSkuUpdateResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductSkusGetAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductSkusGetAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoProductSkusGetResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductToChannelImportAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductToChannelImportAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoProductToChannelImportResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductUpdateAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductUpdateAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoProductUpdateResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductcatAddAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductcatAddAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoProductcatAddResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductcatDeleteAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductcatDeleteAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoProductcatDeleteResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductcatUpdateAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductcatUpdateAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoProductcatUpdateResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductcatsGetAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductcatsGetAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoProductcatsGetResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductsGetAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoProductsGetAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoProductsGetResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoRefundGetAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoRefundGetAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoRefundGetResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoRefundQueryAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoRefundQueryAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoRefundQueryResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoRequisitionsGetAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoRequisitionsGetAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoRequisitionsGetResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoTradePrepayOfflineAddAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoTradePrepayOfflineAddAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoTradePrepayOfflineAddResponse.go create mode 100644 model/fenxiao/TaobaoFenxiaoTradePrepayOfflineReduceAPIRequest.go create mode 100644 model/fenxiao/TaobaoFenxiaoTradePrepayOfflineReduceAPIResponse.go delete mode 100644 model/fenxiao/TaobaoFenxiaoTradePrepayOfflineReduceResponse.go create mode 100644 model/fenxiao/TaobaoInventoryAdjustExternalAPIRequest.go create mode 100644 model/fenxiao/TaobaoInventoryAdjustExternalAPIResponse.go delete mode 100644 model/fenxiao/TaobaoInventoryAdjustExternalResponse.go create mode 100644 model/fenxiao/TaobaoInventoryAdjustTradeAPIRequest.go create mode 100644 model/fenxiao/TaobaoInventoryAdjustTradeAPIResponse.go delete mode 100644 model/fenxiao/TaobaoInventoryAdjustTradeResponse.go create mode 100644 model/fenxiao/TaobaoInventoryInitialAPIRequest.go create mode 100644 model/fenxiao/TaobaoInventoryInitialAPIResponse.go create mode 100644 model/fenxiao/TaobaoInventoryInitialItemAPIRequest.go create mode 100644 model/fenxiao/TaobaoInventoryInitialItemAPIResponse.go delete mode 100644 model/fenxiao/TaobaoInventoryInitialItemResponse.go delete mode 100644 model/fenxiao/TaobaoInventoryInitialResponse.go create mode 100644 model/fenxiao/TaobaoInventoryQueryAPIRequest.go create mode 100644 model/fenxiao/TaobaoInventoryQueryAPIResponse.go delete mode 100644 model/fenxiao/TaobaoInventoryQueryResponse.go create mode 100644 model/fenxiao/TaobaoInventoryStoreManageAPIRequest.go create mode 100644 model/fenxiao/TaobaoInventoryStoreManageAPIResponse.go delete mode 100644 model/fenxiao/TaobaoInventoryStoreManageResponse.go create mode 100644 model/fenxiao/TaobaoInventoryStoreQueryAPIRequest.go create mode 100644 model/fenxiao/TaobaoInventoryStoreQueryAPIResponse.go delete mode 100644 model/fenxiao/TaobaoInventoryStoreQueryResponse.go create mode 100644 model/fenxiao/TaobaoInventoryWarehouseManageAPIRequest.go create mode 100644 model/fenxiao/TaobaoInventoryWarehouseManageAPIResponse.go delete mode 100644 model/fenxiao/TaobaoInventoryWarehouseManageResponse.go create mode 100644 model/fenxiao/TaobaoInventoryWarehouseQueryAPIRequest.go create mode 100644 model/fenxiao/TaobaoInventoryWarehouseQueryAPIResponse.go delete mode 100644 model/fenxiao/TaobaoInventoryWarehouseQueryResponse.go create mode 100644 model/fenxiao/TaobaoKaolaScitemAddAPIRequest.go create mode 100644 model/fenxiao/TaobaoKaolaScitemAddAPIResponse.go delete mode 100644 model/fenxiao/TaobaoKaolaScitemAddResponse.go create mode 100644 model/fenxiao/TaobaoRegionPriceCancleAPIRequest.go create mode 100644 model/fenxiao/TaobaoRegionPriceCancleAPIResponse.go delete mode 100644 model/fenxiao/TaobaoRegionPriceCancleResponse.go create mode 100644 model/fenxiao/TaobaoRegionPriceManageAPIRequest.go create mode 100644 model/fenxiao/TaobaoRegionPriceManageAPIResponse.go delete mode 100644 model/fenxiao/TaobaoRegionPriceManageResponse.go create mode 100644 model/fenxiao/TaobaoRegionPriceQueryAPIRequest.go create mode 100644 model/fenxiao/TaobaoRegionPriceQueryAPIResponse.go delete mode 100644 model/fenxiao/TaobaoRegionPriceQueryResponse.go create mode 100644 model/fenxiao/TaobaoRegionSaleQueryAPIRequest.go create mode 100644 model/fenxiao/TaobaoRegionSaleQueryAPIResponse.go delete mode 100644 model/fenxiao/TaobaoRegionSaleQueryResponse.go create mode 100644 model/fenxiao/TaobaoRegionWarehouseManageAPIRequest.go create mode 100644 model/fenxiao/TaobaoRegionWarehouseManageAPIResponse.go delete mode 100644 model/fenxiao/TaobaoRegionWarehouseManageResponse.go create mode 100644 model/fenxiao/TaobaoRegionWarehouseQueryAPIRequest.go create mode 100644 model/fenxiao/TaobaoRegionWarehouseQueryAPIResponse.go delete mode 100644 model/fenxiao/TaobaoRegionWarehouseQueryResponse.go create mode 100644 model/fenxiao/TaobaoScitemAddAPIRequest.go create mode 100644 model/fenxiao/TaobaoScitemAddAPIResponse.go delete mode 100644 model/fenxiao/TaobaoScitemAddResponse.go create mode 100644 model/fenxiao/TaobaoScitemGetAPIRequest.go create mode 100644 model/fenxiao/TaobaoScitemGetAPIResponse.go delete mode 100644 model/fenxiao/TaobaoScitemGetResponse.go create mode 100644 model/fenxiao/TaobaoScitemMapAddAPIRequest.go create mode 100644 model/fenxiao/TaobaoScitemMapAddAPIResponse.go delete mode 100644 model/fenxiao/TaobaoScitemMapAddResponse.go create mode 100644 model/fenxiao/TaobaoScitemMapDeleteAPIRequest.go create mode 100644 model/fenxiao/TaobaoScitemMapDeleteAPIResponse.go delete mode 100644 model/fenxiao/TaobaoScitemMapDeleteResponse.go create mode 100644 model/fenxiao/TaobaoScitemMapQueryAPIRequest.go create mode 100644 model/fenxiao/TaobaoScitemMapQueryAPIResponse.go delete mode 100644 model/fenxiao/TaobaoScitemMapQueryResponse.go create mode 100644 model/fenxiao/TaobaoScitemOutercodeGetAPIRequest.go create mode 100644 model/fenxiao/TaobaoScitemOutercodeGetAPIResponse.go delete mode 100644 model/fenxiao/TaobaoScitemOutercodeGetResponse.go create mode 100644 model/fenxiao/TaobaoScitemQueryAPIRequest.go create mode 100644 model/fenxiao/TaobaoScitemQueryAPIResponse.go delete mode 100644 model/fenxiao/TaobaoScitemQueryResponse.go create mode 100644 model/fenxiao/TaobaoScitemUpdateAPIRequest.go create mode 100644 model/fenxiao/TaobaoScitemUpdateAPIResponse.go delete mode 100644 model/fenxiao/TaobaoScitemUpdateResponse.go create mode 100644 model/fenxiao/TmallChannelProductsGetAPIRequest.go create mode 100644 model/fenxiao/TmallChannelProductsGetAPIResponse.go delete mode 100644 model/fenxiao/TmallChannelProductsGetResponse.go create mode 100644 model/fenxiao/TmallInventoryQueryForstoreAPIRequest.go create mode 100644 model/fenxiao/TmallInventoryQueryForstoreAPIResponse.go delete mode 100644 model/fenxiao/TmallInventoryQueryForstoreResponse.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductDownshelfAPIRequest.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductDownshelfAPIResponse.go delete mode 100644 model/fenxiao/TmallSupplychainChannelProductDownshelfResponse.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductDownshelfResultDto.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductPriceGetAPIRequest.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductPriceGetAPIResponse.go delete mode 100644 model/fenxiao/TmallSupplychainChannelProductPriceGetResponse.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductPriceGetResultDto.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductPriceUpdateAPIRequest.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductPriceUpdateAPIResponse.go delete mode 100644 model/fenxiao/TmallSupplychainChannelProductPriceUpdateResponse.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductQuantityGetAPIRequest.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductQuantityGetAPIResponse.go delete mode 100644 model/fenxiao/TmallSupplychainChannelProductQuantityGetResponse.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductQuantityGetResultDto.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductQuantityUpdateAPIRequest.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductQuantityUpdateAPIResponse.go delete mode 100644 model/fenxiao/TmallSupplychainChannelProductQuantityUpdateResponse.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductQuantityUpdateResultDto.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductReleaseAPIRequest.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductReleaseAPIResponse.go delete mode 100644 model/fenxiao/TmallSupplychainChannelProductReleaseResponse.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductReleaseResultDto.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductReleaseStatusGetAPIRequest.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductReleaseStatusGetAPIResponse.go delete mode 100644 model/fenxiao/TmallSupplychainChannelProductReleaseStatusGetResponse.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductReleaseStatusGetResultDto.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductUpshelfAPIRequest.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductUpshelfAPIResponse.go delete mode 100644 model/fenxiao/TmallSupplychainChannelProductUpshelfResponse.go create mode 100644 model/fenxiao/TmallSupplychainChannelProductUpshelfResultDto.go create mode 100644 model/film/TaobaoFilmAccountPhoneQueryAPIRequest.go create mode 100644 model/film/TaobaoFilmAccountPhoneQueryAPIResponse.go delete mode 100644 model/film/TaobaoFilmAccountPhoneQueryResponse.go create mode 100644 model/film/TaobaoFilmDataThirdPartyRefundOrderAPIRequest.go create mode 100644 model/film/TaobaoFilmDataThirdPartyRefundOrderAPIResponse.go delete mode 100644 model/film/TaobaoFilmDataThirdPartyRefundOrderResponse.go create mode 100644 model/film/TaobaoFilmKoubeiCinemaGetactivityAPIRequest.go create mode 100644 model/film/TaobaoFilmKoubeiCinemaGetactivityAPIResponse.go delete mode 100644 model/film/TaobaoFilmKoubeiCinemaGetactivityResponse.go create mode 100644 model/film/TaobaoFilmLotteryDrawAPIRequest.go create mode 100644 model/film/TaobaoFilmLotteryDrawAPIResponse.go delete mode 100644 model/film/TaobaoFilmLotteryDrawResponse.go create mode 100644 model/film/TaobaoFilmLotteryRuleQueryAPIRequest.go create mode 100644 model/film/TaobaoFilmLotteryRuleQueryAPIResponse.go delete mode 100644 model/film/TaobaoFilmLotteryRuleQueryResponse.go create mode 100644 model/film/TaobaoFilmLotterySendcodeAPIRequest.go create mode 100644 model/film/TaobaoFilmLotterySendcodeAPIResponse.go delete mode 100644 model/film/TaobaoFilmLotterySendcodeResponse.go create mode 100644 model/film/TaobaoFilmTfbackyardCardscheduleUpdateAPIRequest.go create mode 100644 model/film/TaobaoFilmTfbackyardCardscheduleUpdateAPIResponse.go delete mode 100644 model/film/TaobaoFilmTfbackyardCardscheduleUpdateResponse.go create mode 100644 model/filmtfavatar/TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest.go create mode 100644 model/filmtfavatar/TaobaoFilmTfavatarBillSalePaymentQueryAPIResponse.go delete mode 100644 model/filmtfavatar/TaobaoFilmTfavatarBillSalePaymentQueryResponse.go create mode 100644 model/filmtfavatar/TaobaoFilmTfavatarBillSalePrintQueryAPIRequest.go create mode 100644 model/filmtfavatar/TaobaoFilmTfavatarBillSalePrintQueryAPIResponse.go delete mode 100644 model/filmtfavatar/TaobaoFilmTfavatarBillSalePrintQueryResponse.go create mode 100644 model/filmtfavatar/TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest.go create mode 100644 model/filmtfavatar/TaobaoFilmTfavatarBillSaleRefundQueryAPIResponse.go delete mode 100644 model/filmtfavatar/TaobaoFilmTfavatarBillSaleRefundQueryResponse.go create mode 100644 model/filmtfavatar/TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest.go create mode 100644 model/filmtfavatar/TaobaoFilmTfavatarBillTicketPaymentQueryAPIResponse.go delete mode 100644 model/filmtfavatar/TaobaoFilmTfavatarBillTicketPaymentQueryResponse.go create mode 100644 model/filmtfavatar/TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest.go create mode 100644 model/filmtfavatar/TaobaoFilmTfavatarBillTicketRefundQueryAPIResponse.go delete mode 100644 model/filmtfavatar/TaobaoFilmTfavatarBillTicketRefundQueryResponse.go create mode 100644 model/fivee/TaobaoFiveeCompanyGetAPIRequest.go create mode 100644 model/fivee/TaobaoFiveeCompanyGetAPIResponse.go delete mode 100644 model/fivee/TaobaoFiveeCompanyGetResponse.go create mode 100644 model/fivee/TaobaoFiveeCompanyUploadAPIRequest.go create mode 100644 model/fivee/TaobaoFiveeCompanyUploadAPIResponse.go delete mode 100644 model/fivee/TaobaoFiveeCompanyUploadResponse.go create mode 100644 model/fivee/TaobaoFiveeImportproductGetAPIRequest.go create mode 100644 model/fivee/TaobaoFiveeImportproductGetAPIResponse.go delete mode 100644 model/fivee/TaobaoFiveeImportproductGetResponse.go create mode 100644 model/fivee/TaobaoFiveeImportproductPublishAPIRequest.go create mode 100644 model/fivee/TaobaoFiveeImportproductPublishAPIResponse.go delete mode 100644 model/fivee/TaobaoFiveeImportproductPublishResponse.go create mode 100644 model/fivee/TaobaoFiveeInnerproductGetAPIRequest.go create mode 100644 model/fivee/TaobaoFiveeInnerproductGetAPIResponse.go delete mode 100644 model/fivee/TaobaoFiveeInnerproductGetResponse.go create mode 100644 model/fivee/TaobaoFiveeInnerproductPublishAPIRequest.go create mode 100644 model/fivee/TaobaoFiveeInnerproductPublishAPIResponse.go delete mode 100644 model/fivee/TaobaoFiveeInnerproductPublishResponse.go create mode 100644 model/flight/AlitripAgentFlightSellModifyApproveAPIRequest.go create mode 100644 model/flight/AlitripAgentFlightSellModifyApproveAPIResponse.go delete mode 100644 model/flight/AlitripAgentFlightSellModifyApproveResponse.go create mode 100644 model/flight/AlitripAgentFlightSellModifyApproveResultDto.go create mode 100644 model/flight/AlitripAgentFlightSellModifyBackfillAPIRequest.go create mode 100644 model/flight/AlitripAgentFlightSellModifyBackfillAPIResponse.go delete mode 100644 model/flight/AlitripAgentFlightSellModifyBackfillResponse.go create mode 100644 model/flight/AlitripAgentFlightSellModifyBackfillResultDto.go create mode 100644 model/flight/AlitripAgentFlightSellModifyDetailAPIRequest.go create mode 100644 model/flight/AlitripAgentFlightSellModifyDetailAPIResponse.go delete mode 100644 model/flight/AlitripAgentFlightSellModifyDetailResponse.go create mode 100644 model/flight/AlitripAgentFlightSellModifyDetailResultDto.go create mode 100644 model/flight/AlitripAgentFlightSellModifyListAPIRequest.go create mode 100644 model/flight/AlitripAgentFlightSellModifyListAPIResponse.go delete mode 100644 model/flight/AlitripAgentFlightSellModifyListResponse.go create mode 100644 model/flight/AlitripAgentFlightSellModifyRefuseAPIRequest.go create mode 100644 model/flight/AlitripAgentFlightSellModifyRefuseAPIResponse.go delete mode 100644 model/flight/AlitripAgentFlightSellModifyRefuseResponse.go create mode 100644 model/flight/AlitripAgentFlightSellModifyRefuseResultDto.go create mode 100644 model/flight/AlitripAgentFlightSellRefundApproveAPIRequest.go create mode 100644 model/flight/AlitripAgentFlightSellRefundApproveAPIResponse.go delete mode 100644 model/flight/AlitripAgentFlightSellRefundApproveResponse.go create mode 100644 model/flight/AlitripAgentFlightSellRefundApproveResultDto.go create mode 100644 model/flight/AlitripAgentFlightSellRefundDetailAPIRequest.go create mode 100644 model/flight/AlitripAgentFlightSellRefundDetailAPIResponse.go delete mode 100644 model/flight/AlitripAgentFlightSellRefundDetailResponse.go create mode 100644 model/flight/AlitripAgentFlightSellRefundDetailResultDto.go create mode 100644 model/flight/AlitripAgentFlightSellRefundListAPIRequest.go create mode 100644 model/flight/AlitripAgentFlightSellRefundListAPIResponse.go delete mode 100644 model/flight/AlitripAgentFlightSellRefundListResponse.go create mode 100644 model/flight/AlitripAgentFlightSellRefundRefuseAPIRequest.go create mode 100644 model/flight/AlitripAgentFlightSellRefundRefuseAPIResponse.go delete mode 100644 model/flight/AlitripAgentFlightSellRefundRefuseResponse.go create mode 100644 model/flight/AlitripAgentFlightSellRefundRefuseResultDto.go create mode 100644 model/flight/AlitripAgentFlightSellTicketingDetailAPIRequest.go create mode 100644 model/flight/AlitripAgentFlightSellTicketingDetailAPIResponse.go delete mode 100644 model/flight/AlitripAgentFlightSellTicketingDetailResponse.go create mode 100644 model/flight/AlitripAgentFlightSellTicketingDetailResultDto.go create mode 100644 model/flight/AlitripAgentFlightSellTicketingIssueAPIRequest.go create mode 100644 model/flight/AlitripAgentFlightSellTicketingIssueAPIResponse.go delete mode 100644 model/flight/AlitripAgentFlightSellTicketingIssueResponse.go create mode 100644 model/flight/AlitripAgentFlightSellTicketingIssueResultDto.go create mode 100644 model/flight/AlitripAgentFlightSellTicketingListAPIRequest.go create mode 100644 model/flight/AlitripAgentFlightSellTicketingListAPIResponse.go delete mode 100644 model/flight/AlitripAgentFlightSellTicketingListResponse.go create mode 100644 model/flight/AlitripTripvpAgentOrderGetAPIRequest.go create mode 100644 model/flight/AlitripTripvpAgentOrderGetAPIResponse.go delete mode 100644 model/flight/AlitripTripvpAgentOrderGetResponse.go create mode 100644 model/flight/AlitripTripvpAgentOrderIssueAPIRequest.go create mode 100644 model/flight/AlitripTripvpAgentOrderIssueAPIResponse.go delete mode 100644 model/flight/AlitripTripvpAgentOrderIssueResponse.go create mode 100644 model/flight/TaobaoAlitripFlightchangeAddAPIRequest.go create mode 100644 model/flight/TaobaoAlitripFlightchangeAddAPIResponse.go delete mode 100644 model/flight/TaobaoAlitripFlightchangeAddResponse.go create mode 100644 model/flight/TaobaoAlitripFlightchangeAddResultDo.go create mode 100644 model/flight/TaobaoAlitripFlightchangeGetAPIRequest.go create mode 100644 model/flight/TaobaoAlitripFlightchangeGetAPIResponse.go delete mode 100644 model/flight/TaobaoAlitripFlightchangeGetResponse.go create mode 100644 model/flight/TaobaoAlitripFlightchangeGetResultDo.go create mode 100644 model/flight/TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIRequest.go create mode 100644 model/flight/TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIResponse.go delete mode 100644 model/flight/TaobaoAlitripIeAgentRefundNewFillconfirmfeeResponse.go create mode 100644 model/flight/TaobaoAlitripIeAgentShoppingPushAPIRequest.go create mode 100644 model/flight/TaobaoAlitripIeAgentShoppingPushAPIResponse.go delete mode 100644 model/flight/TaobaoAlitripIeAgentShoppingPushResponse.go create mode 100644 model/flight/TaobaoAlitripTotoroAuxproductDeleteAPIRequest.go create mode 100644 model/flight/TaobaoAlitripTotoroAuxproductDeleteAPIResponse.go delete mode 100644 model/flight/TaobaoAlitripTotoroAuxproductDeleteResponse.go create mode 100644 model/flight/TaobaoAlitripTotoroAuxproductPushAPIRequest.go create mode 100644 model/flight/TaobaoAlitripTotoroAuxproductPushAPIResponse.go delete mode 100644 model/flight/TaobaoAlitripTotoroAuxproductPushResponse.go create mode 100644 model/flightuppc/AlitripFlightBasicDataCityQueryAllAPIRequest.go create mode 100644 model/flightuppc/AlitripFlightBasicDataCityQueryAllAPIResponse.go delete mode 100644 model/flightuppc/AlitripFlightBasicDataCityQueryAllResponse.go create mode 100644 model/flightuppc/AlitripUppcMemberGainAPIRequest.go create mode 100644 model/flightuppc/AlitripUppcMemberGainAPIResponse.go delete mode 100644 model/flightuppc/AlitripUppcMemberGainResponse.go create mode 100644 model/flightuppc/ResultDo.go create mode 100644 model/foodscan/AlibabaFootscanMiniImageUploadAPIRequest.go create mode 100644 model/foodscan/AlibabaFootscanMiniImageUploadAPIResponse.go delete mode 100644 model/foodscan/AlibabaFootscanMiniImageUploadResponse.go create mode 100644 model/foodscan/AlibabaFootscanMiniQueryMobilereportAPIRequest.go create mode 100644 model/foodscan/AlibabaFootscanMiniQueryMobilereportAPIResponse.go delete mode 100644 model/foodscan/AlibabaFootscanMiniQueryMobilereportResponse.go create mode 100644 model/foodscan/AlibabaFootscanMiniReportFragmentFirstAPIRequest.go create mode 100644 model/foodscan/AlibabaFootscanMiniReportFragmentFirstAPIResponse.go delete mode 100644 model/foodscan/AlibabaFootscanMiniReportFragmentFirstResponse.go create mode 100644 model/foodscan/AlibabaFootscanMiniReportFragmentSecondAPIRequest.go create mode 100644 model/foodscan/AlibabaFootscanMiniReportFragmentSecondAPIResponse.go delete mode 100644 model/foodscan/AlibabaFootscanMiniReportFragmentSecondResponse.go create mode 100644 model/foodscan/AlibabaFootscanMiniReportListAPIRequest.go create mode 100644 model/foodscan/AlibabaFootscanMiniReportListAPIResponse.go delete mode 100644 model/foodscan/AlibabaFootscanMiniReportListResponse.go create mode 100644 model/foodscan/AlibabaFootscanMiniSavedAPIRequest.go create mode 100644 model/foodscan/AlibabaFootscanMiniSavedAPIResponse.go delete mode 100644 model/foodscan/AlibabaFootscanMiniSavedResponse.go create mode 100644 model/fpm/AlibabaFpmFileUploadAPIRequest.go create mode 100644 model/fpm/AlibabaFpmFileUploadAPIResponse.go delete mode 100644 model/fpm/AlibabaFpmFileUploadResponse.go create mode 100644 model/fundplatform/AlibabaFundplatformAccountChargeAPIRequest.go create mode 100644 model/fundplatform/AlibabaFundplatformAccountChargeAPIResponse.go create mode 100644 model/fundplatform/AlibabaFundplatformAccountChargeNotifyAPIRequest.go create mode 100644 model/fundplatform/AlibabaFundplatformAccountChargeNotifyAPIResponse.go delete mode 100644 model/fundplatform/AlibabaFundplatformAccountChargeNotifyResponse.go delete mode 100644 model/fundplatform/AlibabaFundplatformAccountChargeResponse.go create mode 100644 model/fundplatform/AlibabaFundplatformAccountJourQueryInfoAPIRequest.go create mode 100644 model/fundplatform/AlibabaFundplatformAccountJourQueryInfoAPIResponse.go delete mode 100644 model/fundplatform/AlibabaFundplatformAccountJourQueryInfoResponse.go create mode 100644 model/fundplatform/AlibabaFundplatformAccountQueryInfoAPIRequest.go create mode 100644 model/fundplatform/AlibabaFundplatformAccountQueryInfoAPIResponse.go delete mode 100644 model/fundplatform/AlibabaFundplatformAccountQueryInfoResponse.go create mode 100644 model/fundplatform/AlibabaFundplatformCardTemplateNewAPIRequest.go create mode 100644 model/fundplatform/AlibabaFundplatformCardTemplateNewAPIResponse.go delete mode 100644 model/fundplatform/AlibabaFundplatformCardTemplateNewResponse.go create mode 100644 model/fundplatform/AlibabaFundplatformCardorderCardActiveAPIRequest.go create mode 100644 model/fundplatform/AlibabaFundplatformCardorderCardActiveAPIResponse.go delete mode 100644 model/fundplatform/AlibabaFundplatformCardorderCardActiveResponse.go create mode 100644 model/fundplatform/AlibabaFundplatformCardorderFetchCardAsyncAPIRequest.go create mode 100644 model/fundplatform/AlibabaFundplatformCardorderFetchCardAsyncAPIResponse.go delete mode 100644 model/fundplatform/AlibabaFundplatformCardorderFetchCardAsyncResponse.go create mode 100644 model/fundplatform/AlibabaFundplatformCardorderMakeAPIRequest.go create mode 100644 model/fundplatform/AlibabaFundplatformCardorderMakeAPIResponse.go delete mode 100644 model/fundplatform/AlibabaFundplatformCardorderMakeResponse.go create mode 100644 model/fundplatform/AlibabaFundplatformCardorderMakeSuccessAPIRequest.go create mode 100644 model/fundplatform/AlibabaFundplatformCardorderMakeSuccessAPIResponse.go delete mode 100644 model/fundplatform/AlibabaFundplatformCardorderMakeSuccessResponse.go create mode 100644 model/fundplatform/AlibabaFundplatformCardorderReceiptAPIRequest.go create mode 100644 model/fundplatform/AlibabaFundplatformCardorderReceiptAPIResponse.go delete mode 100644 model/fundplatform/AlibabaFundplatformCardorderReceiptResponse.go create mode 100644 model/fundplatform/AlibabaFundplatformCardorderStatusQueryAPIRequest.go create mode 100644 model/fundplatform/AlibabaFundplatformCardorderStatusQueryAPIResponse.go delete mode 100644 model/fundplatform/AlibabaFundplatformCardorderStatusQueryResponse.go create mode 100644 model/fundplatform/AlibabaFundplatformCardordersInfoQueryAPIRequest.go create mode 100644 model/fundplatform/AlibabaFundplatformCardordersInfoQueryAPIResponse.go create mode 100644 model/fundplatform/AlibabaFundplatformCardordersInfoQueryByCardnoAPIRequest.go create mode 100644 model/fundplatform/AlibabaFundplatformCardordersInfoQueryByCardnoAPIResponse.go delete mode 100644 model/fundplatform/AlibabaFundplatformCardordersInfoQueryByCardnoResponse.go delete mode 100644 model/fundplatform/AlibabaFundplatformCardordersInfoQueryResponse.go create mode 100644 model/fundplatform/AlibabaFundplatformCardordersStatusMakeFinishAPIRequest.go create mode 100644 model/fundplatform/AlibabaFundplatformCardordersStatusMakeFinishAPIResponse.go delete mode 100644 model/fundplatform/AlibabaFundplatformCardordersStatusMakeFinishResponse.go create mode 100644 model/fundplatform/AlibabaFundplatformCardordersStatusSendedAPIRequest.go create mode 100644 model/fundplatform/AlibabaFundplatformCardordersStatusSendedAPIResponse.go delete mode 100644 model/fundplatform/AlibabaFundplatformCardordersStatusSendedResponse.go create mode 100644 model/fundplatform/AlibabaTaxInvoiceSyncLedgerAPIRequest.go create mode 100644 model/fundplatform/AlibabaTaxInvoiceSyncLedgerAPIResponse.go delete mode 100644 model/fundplatform/AlibabaTaxInvoiceSyncLedgerResponse.go create mode 100644 model/game/TaobaoAppleCardActiveApplyNotifyAPIRequest.go create mode 100644 model/game/TaobaoAppleCardActiveApplyNotifyAPIResponse.go delete mode 100644 model/game/TaobaoAppleCardActiveApplyNotifyResponse.go create mode 100644 model/game/TaobaoAppleCardActiveCancelNotifyAPIRequest.go create mode 100644 model/game/TaobaoAppleCardActiveCancelNotifyAPIResponse.go delete mode 100644 model/game/TaobaoAppleCardActiveCancelNotifyResponse.go create mode 100644 model/game/TaobaoAppleNewuserActivateNotifyAPIRequest.go create mode 100644 model/game/TaobaoAppleNewuserActivateNotifyAPIResponse.go delete mode 100644 model/game/TaobaoAppleNewuserActivateNotifyResponse.go create mode 100644 model/game/TaobaoAppleNewuserSignNotifyAPIRequest.go create mode 100644 model/game/TaobaoAppleNewuserSignNotifyAPIResponse.go create mode 100644 model/game/TaobaoAppleNewuserSignNotifyNewversionAPIRequest.go create mode 100644 model/game/TaobaoAppleNewuserSignNotifyNewversionAPIResponse.go delete mode 100644 model/game/TaobaoAppleNewuserSignNotifyNewversionResponse.go delete mode 100644 model/game/TaobaoAppleNewuserSignNotifyResponse.go create mode 100644 model/game/TaobaoAppleOlduserChargeNotifyAPIRequest.go create mode 100644 model/game/TaobaoAppleOlduserChargeNotifyAPIResponse.go delete mode 100644 model/game/TaobaoAppleOlduserChargeNotifyResponse.go create mode 100644 model/gameact/TaobaoDeActivityDeliveryAddrConfirmAPIRequest.go create mode 100644 model/gameact/TaobaoDeActivityDeliveryAddrConfirmAPIResponse.go delete mode 100644 model/gameact/TaobaoDeActivityDeliveryAddrConfirmResponse.go create mode 100644 model/gameact/TaobaoDeActivityInfoGetAPIRequest.go create mode 100644 model/gameact/TaobaoDeActivityInfoGetAPIResponse.go delete mode 100644 model/gameact/TaobaoDeActivityInfoGetResponse.go create mode 100644 model/gameact/TaobaoDeActivityLuckydrawAPIRequest.go create mode 100644 model/gameact/TaobaoDeActivityLuckydrawAPIResponse.go delete mode 100644 model/gameact/TaobaoDeActivityLuckydrawResponse.go create mode 100644 model/gameact/TaobaoDeActivityMachineidGetAPIRequest.go create mode 100644 model/gameact/TaobaoDeActivityMachineidGetAPIResponse.go delete mode 100644 model/gameact/TaobaoDeActivityMachineidGetResponse.go create mode 100644 model/globalvirtual/AlibabaGlobalVirtualSendcodeAPIRequest.go create mode 100644 model/globalvirtual/AlibabaGlobalVirtualSendcodeAPIResponse.go create mode 100644 model/guoguo/CainiaoGuoguoBackupGraborderSubmitmailnoAPIRequest.go create mode 100644 model/guoguo/CainiaoGuoguoBackupGraborderSubmitmailnoAPIResponse.go delete mode 100644 model/guoguo/CainiaoGuoguoBackupGraborderSubmitmailnoResponse.go create mode 100644 model/guoguo/CainiaoGuoguoBackupGraborderTakepackageAPIRequest.go create mode 100644 model/guoguo/CainiaoGuoguoBackupGraborderTakepackageAPIResponse.go delete mode 100644 model/guoguo/CainiaoGuoguoBackupGraborderTakepackageResponse.go create mode 100644 model/guoguo/CainiaoGuoguoCpBackupAssigncourierAPIRequest.go create mode 100644 model/guoguo/CainiaoGuoguoCpBackupAssigncourierAPIResponse.go delete mode 100644 model/guoguo/CainiaoGuoguoCpBackupAssigncourierResponse.go create mode 100644 model/guoguo/CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest.go create mode 100644 model/guoguo/CainiaoGuoguoCpBackupAssigncourierbyidAPIResponse.go delete mode 100644 model/guoguo/CainiaoGuoguoCpBackupAssigncourierbyidResponse.go create mode 100644 model/guoguo/CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest.go create mode 100644 model/guoguo/CainiaoGuoguoCpNborderfrontrUpdateuserAPIResponse.go delete mode 100644 model/guoguo/CainiaoGuoguoCpNborderfrontrUpdateuserResponse.go create mode 100644 model/guoguo/CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest.go create mode 100644 model/guoguo/CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIResponse.go delete mode 100644 model/guoguo/CainiaoGuoguoCpNborderfrontrUploadcoordinateResponse.go create mode 100644 model/happytrip/AlibabaHappytripFreeloginGetusercontextAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripFreeloginGetusercontextAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripFreeloginGetusercontextResponse.go create mode 100644 model/happytrip/AlibabaHappytripOrderGetAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripOrderGetAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripOrderGetResponse.go create mode 100644 model/happytrip/AlibabaHappytripTaxiCityGetidAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripTaxiCityGetidAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripTaxiCityGetidResponse.go create mode 100644 model/happytrip/AlibabaHappytripTaxiDriverBlacklistAddAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripTaxiDriverBlacklistAddAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripTaxiDriverBlacklistAddResponse.go create mode 100644 model/happytrip/AlibabaHappytripTaxiDriverBlacklistRemoveAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripTaxiDriverBlacklistRemoveAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripTaxiDriverBlacklistRemoveResponse.go create mode 100644 model/happytrip/AlibabaHappytripTaxiDriverLocationGetAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripTaxiDriverLocationGetAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripTaxiDriverLocationGetResponse.go create mode 100644 model/happytrip/AlibabaHappytripTaxiIdGetAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripTaxiIdGetAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripTaxiIdGetResponse.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderAssignAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderAssignAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripTaxiOrderAssignResponse.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderCancelAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderCancelAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripTaxiOrderCancelResponse.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderComplainAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderComplainAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripTaxiOrderComplainResponse.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderComplaintGetAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderComplaintGetAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripTaxiOrderComplaintGetResponse.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderConfirmAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderConfirmAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripTaxiOrderConfirmResponse.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderCreateAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderCreateAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripTaxiOrderCreateResponse.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderDestinationModifyAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderDestinationModifyAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripTaxiOrderDestinationModifyResponse.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderGetAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderGetAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripTaxiOrderGetResponse.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderNotifyAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderNotifyAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripTaxiOrderNotifyResponse.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderScoreAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripTaxiOrderScoreAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripTaxiOrderScoreResponse.go create mode 100644 model/happytrip/AlibabaHappytripTaxiPriceGetAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripTaxiPriceGetAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripTaxiPriceGetResponse.go create mode 100644 model/happytrip/AlibabaHappytripTaxiProviderAccountBalanceAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripTaxiProviderAccountBalanceAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripTaxiProviderAccountBalanceResponse.go create mode 100644 model/happytrip/AlibabaHappytripTaxiServicestatusGetAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripTaxiServicestatusGetAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripTaxiServicestatusGetResponse.go create mode 100644 model/happytrip/AlibabaHappytripTravelSyncAPIRequest.go create mode 100644 model/happytrip/AlibabaHappytripTravelSyncAPIResponse.go delete mode 100644 model/happytrip/AlibabaHappytripTravelSyncResponse.go create mode 100644 model/happytrip/AlibabaHtorderHotelSyncBookingAPIRequest.go create mode 100644 model/happytrip/AlibabaHtorderHotelSyncBookingAPIResponse.go delete mode 100644 model/happytrip/AlibabaHtorderHotelSyncBookingResponse.go create mode 100644 model/happytrip/AlibabaHtorderHotelSyncBookingResultDto.go create mode 100644 model/happytrip/AlibabaHtorderHotelSyncConfigAPIRequest.go create mode 100644 model/happytrip/AlibabaHtorderHotelSyncConfigAPIResponse.go delete mode 100644 model/happytrip/AlibabaHtorderHotelSyncConfigResponse.go create mode 100644 model/healthnr/AlibabaHealthNrLogisticsQueryAPIRequest.go create mode 100644 model/healthnr/AlibabaHealthNrLogisticsQueryAPIResponse.go delete mode 100644 model/healthnr/AlibabaHealthNrLogisticsQueryResponse.go create mode 100644 model/homeai/TaobaoHomeaiAlgPredictAPIRequest.go create mode 100644 model/homeai/TaobaoHomeaiAlgPredictAPIResponse.go delete mode 100644 model/homeai/TaobaoHomeaiAlgPredictResponse.go create mode 100644 model/hotel/AlitripHotelDetailInfoGetAPIRequest.go create mode 100644 model/hotel/AlitripHotelDetailInfoGetAPIResponse.go delete mode 100644 model/hotel/AlitripHotelDetailInfoGetResponse.go create mode 100644 model/hotel/AlitripHotelDetailStaticinfoGetAPIRequest.go create mode 100644 model/hotel/AlitripHotelDetailStaticinfoGetAPIResponse.go delete mode 100644 model/hotel/AlitripHotelDetailStaticinfoGetResponse.go create mode 100644 model/hotel/AlitripHotelRateGetmixratelistGetAPIRequest.go create mode 100644 model/hotel/AlitripHotelRateGetmixratelistGetAPIResponse.go delete mode 100644 model/hotel/AlitripHotelRateGetmixratelistGetResponse.go create mode 100644 model/hotel/AlitripHotelSearchCitysuggestGetAPIRequest.go create mode 100644 model/hotel/AlitripHotelSearchCitysuggestGetAPIResponse.go delete mode 100644 model/hotel/AlitripHotelSearchCitysuggestGetResponse.go create mode 100644 model/hotel/AlitripHotelSearchListGetAPIRequest.go create mode 100644 model/hotel/AlitripHotelSearchListGetAPIResponse.go delete mode 100644 model/hotel/AlitripHotelSearchListGetResponse.go create mode 100644 model/hotel/TaobaoXhotelCityGetAPIRequest.go create mode 100644 model/hotel/TaobaoXhotelCityGetAPIResponse.go delete mode 100644 model/hotel/TaobaoXhotelCityGetResponse.go create mode 100644 model/hotel/TaobaoXhotelInfoListGetAPIRequest.go create mode 100644 model/hotel/TaobaoXhotelInfoListGetAPIResponse.go create mode 100644 model/hotel/TaobaoXhotelInfoListGetForHelloAPIRequest.go create mode 100644 model/hotel/TaobaoXhotelInfoListGetForHelloAPIResponse.go delete mode 100644 model/hotel/TaobaoXhotelInfoListGetForHelloResponse.go delete mode 100644 model/hotel/TaobaoXhotelInfoListGetResponse.go create mode 100644 model/hotel/TaobaoXhotelPriceGetForHelloAPIRequest.go create mode 100644 model/hotel/TaobaoXhotelPriceGetForHelloAPIResponse.go delete mode 100644 model/hotel/TaobaoXhotelPriceGetForHelloResponse.go create mode 100644 model/hotelalliance/AlitripHotelAllianceHidGetAPIRequest.go create mode 100644 model/hotelalliance/AlitripHotelAllianceHidGetAPIResponse.go delete mode 100644 model/hotelalliance/AlitripHotelAllianceHidGetResponse.go create mode 100644 model/hotelalliance/AlitripHotelAllianceSettleOrderSynAPIRequest.go create mode 100644 model/hotelalliance/AlitripHotelAllianceSettleOrderSynAPIResponse.go delete mode 100644 model/hotelalliance/AlitripHotelAllianceSettleOrderSynResponse.go create mode 100644 model/hotelalliance/AlitripHotelHmsPartnerInfoGetAPIRequest.go create mode 100644 model/hotelalliance/AlitripHotelHmsPartnerInfoGetAPIResponse.go delete mode 100644 model/hotelalliance/AlitripHotelHmsPartnerInfoGetResponse.go create mode 100644 model/hotelalliance/AlitripHotelSingleInfoGetAPIRequest.go create mode 100644 model/hotelalliance/AlitripHotelSingleInfoGetAPIResponse.go delete mode 100644 model/hotelalliance/AlitripHotelSingleInfoGetResponse.go create mode 100644 model/hotelhstdf/AlitripHotelHstdfBusinessareaGetAPIRequest.go create mode 100644 model/hotelhstdf/AlitripHotelHstdfBusinessareaGetAPIResponse.go delete mode 100644 model/hotelhstdf/AlitripHotelHstdfBusinessareaGetResponse.go create mode 100644 model/hotelhstdf/AlitripHotelHstdfHotelroomstaticGetAPIRequest.go create mode 100644 model/hotelhstdf/AlitripHotelHstdfHotelroomstaticGetAPIResponse.go delete mode 100644 model/hotelhstdf/AlitripHotelHstdfHotelroomstaticGetResponse.go create mode 100644 model/hotelhstdf/AlitripHotelHstdfPoilocationGetAPIRequest.go create mode 100644 model/hotelhstdf/AlitripHotelHstdfPoilocationGetAPIResponse.go delete mode 100644 model/hotelhstdf/AlitripHotelHstdfPoilocationGetResponse.go create mode 100644 model/hotelhstdf/AlitripHotelHstdfShotelExnotmatchroomAPIRequest.go create mode 100644 model/hotelhstdf/AlitripHotelHstdfShotelExnotmatchroomAPIResponse.go delete mode 100644 model/hotelhstdf/AlitripHotelHstdfShotelExnotmatchroomResponse.go create mode 100644 model/hotelhstdf/AlitripHotelHstdfShotelExportshotelAPIRequest.go create mode 100644 model/hotelhstdf/AlitripHotelHstdfShotelExportshotelAPIResponse.go delete mode 100644 model/hotelhstdf/AlitripHotelHstdfShotelExportshotelResponse.go create mode 100644 model/hotelhstdf/AlitripHotelHstdfShotelExportsroomtypeAPIRequest.go create mode 100644 model/hotelhstdf/AlitripHotelHstdfShotelExportsroomtypeAPIResponse.go delete mode 100644 model/hotelhstdf/AlitripHotelHstdfShotelExportsroomtypeResponse.go create mode 100644 model/hotelhstdf/AlitripHotelHstdfShotelMatchshotelselfAPIRequest.go create mode 100644 model/hotelhstdf/AlitripHotelHstdfShotelMatchshotelselfAPIResponse.go delete mode 100644 model/hotelhstdf/AlitripHotelHstdfShotelMatchshotelselfResponse.go create mode 100644 model/hotelhstdf/AlitripHotelHstdfShotelMatchsroomselfAPIRequest.go create mode 100644 model/hotelhstdf/AlitripHotelHstdfShotelMatchsroomselfAPIResponse.go delete mode 100644 model/hotelhstdf/AlitripHotelHstdfShotelMatchsroomselfResponse.go create mode 100644 model/hotelhstdf/AlitripHotelHstdfShotelRoomtypeMappingsListAPIRequest.go create mode 100644 model/hotelhstdf/AlitripHotelHstdfShotelRoomtypeMappingsListAPIResponse.go delete mode 100644 model/hotelhstdf/AlitripHotelHstdfShotelRoomtypeMappingsListResponse.go create mode 100644 model/icbu/AlibabaIcbuCategoryAttributeGetAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuCategoryAttributeGetAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuCategoryAttributeGetResponse.go create mode 100644 model/icbu/AlibabaIcbuCategoryAttrvalueGetAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuCategoryAttrvalueGetAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuCategoryAttrvalueGetResponse.go create mode 100644 model/icbu/AlibabaIcbuCategoryGetAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuCategoryGetAPIResponse.go create mode 100644 model/icbu/AlibabaIcbuCategoryGetNewAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuCategoryGetNewAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuCategoryGetNewResponse.go delete mode 100644 model/icbu/AlibabaIcbuCategoryGetResponse.go create mode 100644 model/icbu/AlibabaIcbuCategoryIdMappingAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuCategoryIdMappingAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuCategoryIdMappingResponse.go create mode 100644 model/icbu/AlibabaIcbuCategoryLevelAttrGetAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuCategoryLevelAttrGetAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuCategoryLevelAttrGetResponse.go create mode 100644 model/icbu/AlibabaIcbuCategorySchemaLevelGetAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuCategorySchemaLevelGetAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuCategorySchemaLevelGetResponse.go create mode 100644 model/icbu/AlibabaIcbuPhotobankGroupListAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuPhotobankGroupListAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuPhotobankGroupListResponse.go create mode 100644 model/icbu/AlibabaIcbuPhotobankGroupOperateAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuPhotobankGroupOperateAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuPhotobankGroupOperateResponse.go create mode 100644 model/icbu/AlibabaIcbuPhotobankListAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuPhotobankListAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuPhotobankListResponse.go create mode 100644 model/icbu/AlibabaIcbuPhotobankUploadAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuPhotobankUploadAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuPhotobankUploadResponse.go create mode 100644 model/icbu/AlibabaIcbuProductAddAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuProductAddAPIResponse.go create mode 100644 model/icbu/AlibabaIcbuProductAddDraftAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuProductAddDraftAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuProductAddDraftResponse.go delete mode 100644 model/icbu/AlibabaIcbuProductAddResponse.go create mode 100644 model/icbu/AlibabaIcbuProductBatchUpdateDisplayAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuProductBatchUpdateDisplayAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuProductBatchUpdateDisplayResponse.go create mode 100644 model/icbu/AlibabaIcbuProductGetAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuProductGetAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuProductGetResponse.go create mode 100644 model/icbu/AlibabaIcbuProductGroupAddAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuProductGroupAddAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuProductGroupAddResponse.go create mode 100644 model/icbu/AlibabaIcbuProductGroupGetAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuProductGroupGetAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuProductGroupGetResponse.go create mode 100644 model/icbu/AlibabaIcbuProductIdDecryptAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuProductIdDecryptAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuProductIdDecryptResponse.go create mode 100644 model/icbu/AlibabaIcbuProductListAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuProductListAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuProductListResponse.go create mode 100644 model/icbu/AlibabaIcbuProductSchemaAddAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuProductSchemaAddAPIResponse.go create mode 100644 model/icbu/AlibabaIcbuProductSchemaAddDraftAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuProductSchemaAddDraftAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuProductSchemaAddDraftResponse.go delete mode 100644 model/icbu/AlibabaIcbuProductSchemaAddResponse.go create mode 100644 model/icbu/AlibabaIcbuProductSchemaGetAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuProductSchemaGetAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuProductSchemaGetResponse.go create mode 100644 model/icbu/AlibabaIcbuProductSchemaRenderAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuProductSchemaRenderAPIResponse.go create mode 100644 model/icbu/AlibabaIcbuProductSchemaRenderDraftAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuProductSchemaRenderDraftAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuProductSchemaRenderDraftResponse.go delete mode 100644 model/icbu/AlibabaIcbuProductSchemaRenderResponse.go create mode 100644 model/icbu/AlibabaIcbuProductSchemaUpdateAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuProductSchemaUpdateAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuProductSchemaUpdateResponse.go create mode 100644 model/icbu/AlibabaIcbuProductScoreGetAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuProductScoreGetAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuProductScoreGetResponse.go create mode 100644 model/icbu/AlibabaIcbuProductUpdateAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuProductUpdateAPIResponse.go create mode 100644 model/icbu/AlibabaIcbuProductUpdateFieldAPIRequest.go create mode 100644 model/icbu/AlibabaIcbuProductUpdateFieldAPIResponse.go delete mode 100644 model/icbu/AlibabaIcbuProductUpdateFieldResponse.go delete mode 100644 model/icbu/AlibabaIcbuProductUpdateResponse.go create mode 100644 model/icbu/AlibabaWholesaleShippinglineTemplateListAPIRequest.go create mode 100644 model/icbu/AlibabaWholesaleShippinglineTemplateListAPIResponse.go delete mode 100644 model/icbu/AlibabaWholesaleShippinglineTemplateListResponse.go create mode 100644 model/icbuassurance/AlibabaIcbuTradeAssuranceAccountGetAPIRequest.go create mode 100644 model/icbuassurance/AlibabaIcbuTradeAssuranceAccountGetAPIResponse.go delete mode 100644 model/icbuassurance/AlibabaIcbuTradeAssuranceAccountGetResponse.go create mode 100644 model/icbudropshipping/AlibabaBuynowOrderCreateAPIRequest.go create mode 100644 model/icbudropshipping/AlibabaBuynowOrderCreateAPIResponse.go delete mode 100644 model/icbudropshipping/AlibabaBuynowOrderCreateResponse.go create mode 100644 model/icbudropshipping/AlibabaDropshippingOrderPayAPIRequest.go create mode 100644 model/icbudropshipping/AlibabaDropshippingOrderPayAPIResponse.go delete mode 100644 model/icbudropshipping/AlibabaDropshippingOrderPayResponse.go create mode 100644 model/icbudropshipping/AlibabaDropshippingProductGetAPIRequest.go create mode 100644 model/icbudropshipping/AlibabaDropshippingProductGetAPIResponse.go delete mode 100644 model/icbudropshipping/AlibabaDropshippingProductGetResponse.go create mode 100644 model/icbudropshipping/AlibabaDropshippingTokenCreateAPIRequest.go create mode 100644 model/icbudropshipping/AlibabaDropshippingTokenCreateAPIResponse.go delete mode 100644 model/icbudropshipping/AlibabaDropshippingTokenCreateResponse.go create mode 100644 model/icbudropshipping/AlibabaOrderFreightCalculateAPIRequest.go create mode 100644 model/icbudropshipping/AlibabaOrderFreightCalculateAPIResponse.go delete mode 100644 model/icbudropshipping/AlibabaOrderFreightCalculateResponse.go create mode 100644 model/icbudropshipping/AlibabaOrderLogisticsTrackingGetAPIRequest.go create mode 100644 model/icbudropshipping/AlibabaOrderLogisticsTrackingGetAPIResponse.go delete mode 100644 model/icbudropshipping/AlibabaOrderLogisticsTrackingGetResponse.go create mode 100644 model/icbudropshipping/AlibabaOrderPayResultQueryAPIRequest.go create mode 100644 model/icbudropshipping/AlibabaOrderPayResultQueryAPIResponse.go delete mode 100644 model/icbudropshipping/AlibabaOrderPayResultQueryResponse.go create mode 100644 model/icbudropshipping/AlibabaShippingFreightCalculateAPIRequest.go create mode 100644 model/icbudropshipping/AlibabaShippingFreightCalculateAPIResponse.go delete mode 100644 model/icbudropshipping/AlibabaShippingFreightCalculateResponse.go create mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressCityListAPIRequest.go create mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressCityListAPIResponse.go delete mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressCityListResponse.go create mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressDivisionListAPIRequest.go create mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressDivisionListAPIResponse.go delete mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressDivisionListResponse.go create mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressProvinceListAPIRequest.go create mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressProvinceListAPIResponse.go delete mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressProvinceListResponse.go create mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressStreetListAPIRequest.go create mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressStreetListAPIResponse.go delete mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressStreetListResponse.go create mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressChargeCalculateAPIRequest.go create mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressChargeCalculateAPIResponse.go delete mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressChargeCalculateResponse.go create mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIRequest.go create mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIResponse.go delete mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsOrderCreateResponse.go create mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsProductListAPIRequest.go create mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsProductListAPIResponse.go delete mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsProductListResponse.go create mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressOrderDetailGetAPIRequest.go create mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressOrderDetailGetAPIResponse.go delete mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressOrderDetailGetResponse.go create mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressSpecialProductTypeListAPIRequest.go create mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressSpecialProductTypeListAPIResponse.go delete mode 100644 model/icbulogistics/AlibabaOnetouchLogisticsExpressSpecialProductTypeListResponse.go create mode 100644 model/icbuproduct/AlibabaIcbuProductIdEncryptAPIRequest.go create mode 100644 model/icbuproduct/AlibabaIcbuProductIdEncryptAPIResponse.go delete mode 100644 model/icbuproduct/AlibabaIcbuProductIdEncryptResponse.go create mode 100644 model/icbuproduct/AlibabaIcbuProductInventoryUpdateAPIRequest.go create mode 100644 model/icbuproduct/AlibabaIcbuProductInventoryUpdateAPIResponse.go delete mode 100644 model/icbuproduct/AlibabaIcbuProductInventoryUpdateResponse.go create mode 100644 model/icburfq/AlibabaIcbuAnnexUploadAPIRequest.go create mode 100644 model/icburfq/AlibabaIcbuAnnexUploadAPIResponse.go delete mode 100644 model/icburfq/AlibabaIcbuAnnexUploadResponse.go create mode 100644 model/icburfq/AlibabaIcbuQuotationPostAPIRequest.go create mode 100644 model/icburfq/AlibabaIcbuQuotationPostAPIResponse.go delete mode 100644 model/icburfq/AlibabaIcbuQuotationPostResponse.go create mode 100644 model/icburfq/AlibabaIcbuRfqMyequityAPIRequest.go create mode 100644 model/icburfq/AlibabaIcbuRfqMyequityAPIResponse.go delete mode 100644 model/icburfq/AlibabaIcbuRfqMyequityResponse.go create mode 100644 model/icburfq/AlibabaIcbuRfqReadAPIRequest.go create mode 100644 model/icburfq/AlibabaIcbuRfqReadAPIResponse.go delete mode 100644 model/icburfq/AlibabaIcbuRfqReadResponse.go create mode 100644 model/icburfq/AlibabaIcbuRfqRecommendAPIRequest.go create mode 100644 model/icburfq/AlibabaIcbuRfqRecommendAPIResponse.go delete mode 100644 model/icburfq/AlibabaIcbuRfqRecommendResponse.go create mode 100644 model/icburfq/AlibabaIcbuRfqSearchAPIRequest.go create mode 100644 model/icburfq/AlibabaIcbuRfqSearchAPIResponse.go delete mode 100644 model/icburfq/AlibabaIcbuRfqSearchResponse.go create mode 100644 model/icburfq/AlibabaIcbuRfqdetailGetAPIRequest.go create mode 100644 model/icburfq/AlibabaIcbuRfqdetailGetAPIResponse.go delete mode 100644 model/icburfq/AlibabaIcbuRfqdetailGetResponse.go create mode 100644 model/icbuseller/AlibabaSellerCouponAuthVerifyAPIRequest.go create mode 100644 model/icbuseller/AlibabaSellerCouponAuthVerifyAPIResponse.go delete mode 100644 model/icbuseller/AlibabaSellerCouponAuthVerifyResponse.go create mode 100644 model/icbuseller/AlibabaSellerCouponAuthVerifyResultDto.go create mode 100644 model/icbuseller/AlibabaSellerVendorOrderDetailAPIRequest.go create mode 100644 model/icbuseller/AlibabaSellerVendorOrderDetailAPIResponse.go delete mode 100644 model/icbuseller/AlibabaSellerVendorOrderDetailResponse.go create mode 100644 model/icbuseller/AlibabaSellerVendorOrderDetailResultDto.go create mode 100644 model/icbuseller/AlibabaSellerVendorOrderListAPIRequest.go create mode 100644 model/icbuseller/AlibabaSellerVendorOrderListAPIResponse.go delete mode 100644 model/icbuseller/AlibabaSellerVendorOrderListResponse.go create mode 100644 model/icbuseller/AlibabaSellerVendorServiceProcessAPIRequest.go create mode 100644 model/icbuseller/AlibabaSellerVendorServiceProcessAPIResponse.go delete mode 100644 model/icbuseller/AlibabaSellerVendorServiceProcessResponse.go create mode 100644 model/icbuseller/AlibabaSellerVendorServiceProcessResultDto.go create mode 100644 model/icbuseller/AlibabaSellerVendorServiceVendorprocessAPIRequest.go create mode 100644 model/icbuseller/AlibabaSellerVendorServiceVendorprocessAPIResponse.go delete mode 100644 model/icbuseller/AlibabaSellerVendorServiceVendorprocessResponse.go create mode 100644 model/icbuseller/AlibabaSellerVendorServiceVendorprocessResultDto.go create mode 100644 model/icbushowcase/AlibabaScbpShowcaseAddproductAPIRequest.go create mode 100644 model/icbushowcase/AlibabaScbpShowcaseAddproductAPIResponse.go delete mode 100644 model/icbushowcase/AlibabaScbpShowcaseAddproductResponse.go create mode 100644 model/icbushowcase/AlibabaScbpShowcaseDeleteproductAPIRequest.go create mode 100644 model/icbushowcase/AlibabaScbpShowcaseDeleteproductAPIResponse.go delete mode 100644 model/icbushowcase/AlibabaScbpShowcaseDeleteproductResponse.go create mode 100644 model/icbushowcase/AlibabaScbpShowcaseListAPIRequest.go create mode 100644 model/icbushowcase/AlibabaScbpShowcaseListAPIResponse.go delete mode 100644 model/icbushowcase/AlibabaScbpShowcaseListResponse.go create mode 100644 model/icbushowcase/AlibabaScbpShowcaseSortAPIRequest.go create mode 100644 model/icbushowcase/AlibabaScbpShowcaseSortAPIResponse.go delete mode 100644 model/icbushowcase/AlibabaScbpShowcaseSortResponse.go create mode 100644 model/icbushowcase/AlibabaScbpShowcaseStatusAPIRequest.go create mode 100644 model/icbushowcase/AlibabaScbpShowcaseStatusAPIResponse.go delete mode 100644 model/icbushowcase/AlibabaScbpShowcaseStatusResponse.go create mode 100644 model/icbushowcase/AlibabaScbpShowcaseUpdateproductAPIRequest.go create mode 100644 model/icbushowcase/AlibabaScbpShowcaseUpdateproductAPIResponse.go delete mode 100644 model/icbushowcase/AlibabaScbpShowcaseUpdateproductResponse.go create mode 100644 model/idle/AlibabaIdleAgreementPayAPIRequest.go create mode 100644 model/idle/AlibabaIdleAgreementPayAPIResponse.go create mode 100644 model/idle/AlibabaIdleAgreementPayQueryAPIRequest.go create mode 100644 model/idle/AlibabaIdleAgreementPayQueryAPIResponse.go delete mode 100644 model/idle/AlibabaIdleAgreementPayQueryResponse.go delete mode 100644 model/idle/AlibabaIdleAgreementPayResponse.go create mode 100644 model/idle/AlibabaIdleAppraiseOrderPerformAPIRequest.go create mode 100644 model/idle/AlibabaIdleAppraiseOrderPerformAPIResponse.go delete mode 100644 model/idle/AlibabaIdleAppraiseOrderPerformResponse.go create mode 100644 model/idle/AlibabaIdleAppraiseOrderQueryAPIRequest.go create mode 100644 model/idle/AlibabaIdleAppraiseOrderQueryAPIResponse.go delete mode 100644 model/idle/AlibabaIdleAppraiseOrderQueryResponse.go create mode 100644 model/idle/AlibabaIdleAppraiseSpuRegisterModifyAPIRequest.go create mode 100644 model/idle/AlibabaIdleAppraiseSpuRegisterModifyAPIResponse.go delete mode 100644 model/idle/AlibabaIdleAppraiseSpuRegisterModifyResponse.go create mode 100644 model/idle/AlibabaIdleApprizeOrderFulfillmentAPIRequest.go create mode 100644 model/idle/AlibabaIdleApprizeOrderFulfillmentAPIResponse.go delete mode 100644 model/idle/AlibabaIdleApprizeOrderFulfillmentResponse.go create mode 100644 model/idle/AlibabaIdleConsignmentOrderGetAPIRequest.go create mode 100644 model/idle/AlibabaIdleConsignmentOrderGetAPIResponse.go delete mode 100644 model/idle/AlibabaIdleConsignmentOrderGetResponse.go create mode 100644 model/idle/AlibabaIdleConsignmentOrderPerformAPIRequest.go create mode 100644 model/idle/AlibabaIdleConsignmentOrderPerformAPIResponse.go delete mode 100644 model/idle/AlibabaIdleConsignmentOrderPerformResponse.go create mode 100644 model/idle/AlibabaIdleConsignmentSpuStatisticsAPIRequest.go create mode 100644 model/idle/AlibabaIdleConsignmentSpuStatisticsAPIResponse.go delete mode 100644 model/idle/AlibabaIdleConsignmentSpuStatisticsResponse.go create mode 100644 model/idle/AlibabaIdleConsignmentiiOrderGetAPIRequest.go create mode 100644 model/idle/AlibabaIdleConsignmentiiOrderGetAPIResponse.go delete mode 100644 model/idle/AlibabaIdleConsignmentiiOrderGetResponse.go create mode 100644 model/idle/AlibabaIdleConsignmentiiOrderPerformAPIRequest.go create mode 100644 model/idle/AlibabaIdleConsignmentiiOrderPerformAPIResponse.go delete mode 100644 model/idle/AlibabaIdleConsignmentiiOrderPerformResponse.go create mode 100644 model/idle/AlibabaIdleIsvOrderDealrefundAPIRequest.go create mode 100644 model/idle/AlibabaIdleIsvOrderDealrefundAPIResponse.go delete mode 100644 model/idle/AlibabaIdleIsvOrderDealrefundResponse.go create mode 100644 model/idle/AlibabaIdleIsvOrderShipAPIRequest.go create mode 100644 model/idle/AlibabaIdleIsvOrderShipAPIResponse.go delete mode 100644 model/idle/AlibabaIdleIsvOrderShipResponse.go create mode 100644 model/idle/AlibabaIdleItemUserPublishitemsAPIRequest.go create mode 100644 model/idle/AlibabaIdleItemUserPublishitemsAPIResponse.go delete mode 100644 model/idle/AlibabaIdleItemUserPublishitemsResponse.go create mode 100644 model/idle/AlibabaIdleOrderDummySendAPIRequest.go create mode 100644 model/idle/AlibabaIdleOrderDummySendAPIResponse.go delete mode 100644 model/idle/AlibabaIdleOrderDummySendResponse.go create mode 100644 model/idle/AlibabaIdlePayPlanCreateAPIRequest.go create mode 100644 model/idle/AlibabaIdlePayPlanCreateAPIResponse.go delete mode 100644 model/idle/AlibabaIdlePayPlanCreateResponse.go create mode 100644 model/idle/AlibabaIdleRecycleInspectionReportAPIRequest.go create mode 100644 model/idle/AlibabaIdleRecycleInspectionReportAPIResponse.go delete mode 100644 model/idle/AlibabaIdleRecycleInspectionReportResponse.go create mode 100644 model/idle/AlibabaIdleRecycleOrderFulfillmentAPIRequest.go create mode 100644 model/idle/AlibabaIdleRecycleOrderFulfillmentAPIResponse.go delete mode 100644 model/idle/AlibabaIdleRecycleOrderFulfillmentResponse.go create mode 100644 model/idle/AlibabaIdleRecycleOrderPerformAPIRequest.go create mode 100644 model/idle/AlibabaIdleRecycleOrderPerformAPIResponse.go delete mode 100644 model/idle/AlibabaIdleRecycleOrderPerformResponse.go create mode 100644 model/idle/AlibabaIdleRecycleOrderQueryAPIRequest.go create mode 100644 model/idle/AlibabaIdleRecycleOrderQueryAPIResponse.go delete mode 100644 model/idle/AlibabaIdleRecycleOrderQueryResponse.go create mode 100644 model/idle/AlibabaIdleRecycleOrderShowAPIRequest.go create mode 100644 model/idle/AlibabaIdleRecycleOrderShowAPIResponse.go delete mode 100644 model/idle/AlibabaIdleRecycleOrderShowResponse.go create mode 100644 model/idle/AlibabaIdleRecycleSpuTemplateModifyAPIRequest.go create mode 100644 model/idle/AlibabaIdleRecycleSpuTemplateModifyAPIResponse.go delete mode 100644 model/idle/AlibabaIdleRecycleSpuTemplateModifyResponse.go create mode 100644 model/idle/AlibabaIdleRentItemAddAPIRequest.go create mode 100644 model/idle/AlibabaIdleRentItemAddAPIResponse.go delete mode 100644 model/idle/AlibabaIdleRentItemAddResponse.go create mode 100644 model/idle/AlibabaIdleRentItemEditAPIRequest.go create mode 100644 model/idle/AlibabaIdleRentItemEditAPIResponse.go delete mode 100644 model/idle/AlibabaIdleRentItemEditResponse.go create mode 100644 model/idle/AlibabaIdleRentItemQueryAPIRequest.go create mode 100644 model/idle/AlibabaIdleRentItemQueryAPIResponse.go delete mode 100644 model/idle/AlibabaIdleRentItemQueryResponse.go create mode 100644 model/idle/AlibabaIdleRentItemSkuUpdateAPIRequest.go create mode 100644 model/idle/AlibabaIdleRentItemSkuUpdateAPIResponse.go delete mode 100644 model/idle/AlibabaIdleRentItemSkuUpdateResponse.go create mode 100644 model/idle/AlibabaIdleRentMediaUploadAPIRequest.go create mode 100644 model/idle/AlibabaIdleRentMediaUploadAPIResponse.go delete mode 100644 model/idle/AlibabaIdleRentMediaUploadResponse.go create mode 100644 model/idle/AlibabaIdleRentOrderCheckstatusUploadAPIRequest.go create mode 100644 model/idle/AlibabaIdleRentOrderCheckstatusUploadAPIResponse.go delete mode 100644 model/idle/AlibabaIdleRentOrderCheckstatusUploadResponse.go create mode 100644 model/idle/AlibabaIdleRentOrderLogisticsDeliverAPIRequest.go create mode 100644 model/idle/AlibabaIdleRentOrderLogisticsDeliverAPIResponse.go delete mode 100644 model/idle/AlibabaIdleRentOrderLogisticsDeliverResponse.go create mode 100644 model/idle/AlibabaIdleRentOrderPackageAPIRequest.go create mode 100644 model/idle/AlibabaIdleRentOrderPackageAPIResponse.go delete mode 100644 model/idle/AlibabaIdleRentOrderPackageResponse.go create mode 100644 model/idle/AlibabaIdleRentOrderQueryAPIRequest.go create mode 100644 model/idle/AlibabaIdleRentOrderQueryAPIResponse.go delete mode 100644 model/idle/AlibabaIdleRentOrderQueryResponse.go create mode 100644 model/idle/AlibabaIdleRentOrderReceiveitemAPIRequest.go create mode 100644 model/idle/AlibabaIdleRentOrderReceiveitemAPIResponse.go delete mode 100644 model/idle/AlibabaIdleRentOrderReceiveitemResponse.go create mode 100644 model/idle/AlibabaIdleRentOrderSenditemAPIRequest.go create mode 100644 model/idle/AlibabaIdleRentOrderSenditemAPIResponse.go delete mode 100644 model/idle/AlibabaIdleRentOrderSenditemResponse.go create mode 100644 model/idle/AlibabaIdleSpuRegisterModifyAPIRequest.go create mode 100644 model/idle/AlibabaIdleSpuRegisterModifyAPIResponse.go delete mode 100644 model/idle/AlibabaIdleSpuRegisterModifyResponse.go create mode 100644 model/idle/AlibabaIdleTransferpayQueryAPIRequest.go create mode 100644 model/idle/AlibabaIdleTransferpayQueryAPIResponse.go delete mode 100644 model/idle/AlibabaIdleTransferpayQueryResponse.go create mode 100644 model/idle/AlibabaIdleUserPermitAPIRequest.go create mode 100644 model/idle/AlibabaIdleUserPermitAPIResponse.go delete mode 100644 model/idle/AlibabaIdleUserPermitResponse.go create mode 100644 model/idle/TaobaoIdleRecycleRefundApplyAPIRequest.go create mode 100644 model/idle/TaobaoIdleRecycleRefundApplyAPIResponse.go delete mode 100644 model/idle/TaobaoIdleRecycleRefundApplyResponse.go create mode 100644 model/idle/TaobaoIdleRecycleRefundCancleapplyAPIRequest.go create mode 100644 model/idle/TaobaoIdleRecycleRefundCancleapplyAPIResponse.go delete mode 100644 model/idle/TaobaoIdleRecycleRefundCancleapplyResponse.go create mode 100644 model/idle/TaobaoIdleRecycleRefundDetailAPIRequest.go create mode 100644 model/idle/TaobaoIdleRecycleRefundDetailAPIResponse.go delete mode 100644 model/idle/TaobaoIdleRecycleRefundDetailResponse.go create mode 100644 model/idle/TaobaoIdleRecycleRefundReturngoodsAPIRequest.go create mode 100644 model/idle/TaobaoIdleRecycleRefundReturngoodsAPIResponse.go delete mode 100644 model/idle/TaobaoIdleRecycleRefundReturngoodsResponse.go create mode 100644 model/idleisv/AlibabaIdleIsvItemDownshelfAPIRequest.go create mode 100644 model/idleisv/AlibabaIdleIsvItemDownshelfAPIResponse.go delete mode 100644 model/idleisv/AlibabaIdleIsvItemDownshelfResponse.go create mode 100644 model/idleisv/AlibabaIdleIsvItemEditAPIRequest.go create mode 100644 model/idleisv/AlibabaIdleIsvItemEditAPIResponse.go delete mode 100644 model/idleisv/AlibabaIdleIsvItemEditResponse.go create mode 100644 model/idleisv/AlibabaIdleIsvItemPublishAPIRequest.go create mode 100644 model/idleisv/AlibabaIdleIsvItemPublishAPIResponse.go delete mode 100644 model/idleisv/AlibabaIdleIsvItemPublishResponse.go create mode 100644 model/idleisv/AlibabaIdleIsvItemQueryAPIRequest.go create mode 100644 model/idleisv/AlibabaIdleIsvItemQueryAPIResponse.go delete mode 100644 model/idleisv/AlibabaIdleIsvItemQueryResponse.go create mode 100644 model/idleisv/AlibabaIdleIsvMediaUploadAPIRequest.go create mode 100644 model/idleisv/AlibabaIdleIsvMediaUploadAPIResponse.go delete mode 100644 model/idleisv/AlibabaIdleIsvMediaUploadResponse.go create mode 100644 model/idleisv/AlibabaIdleIsvOrderAdjustpriceAPIRequest.go create mode 100644 model/idleisv/AlibabaIdleIsvOrderAdjustpriceAPIResponse.go delete mode 100644 model/idleisv/AlibabaIdleIsvOrderAdjustpriceResponse.go create mode 100644 model/idleisv/AlibabaIdleIsvOrderCloseAPIRequest.go create mode 100644 model/idleisv/AlibabaIdleIsvOrderCloseAPIResponse.go delete mode 100644 model/idleisv/AlibabaIdleIsvOrderCloseResponse.go create mode 100644 model/idleisv/AlibabaIdleIsvOrderQueryAPIRequest.go create mode 100644 model/idleisv/AlibabaIdleIsvOrderQueryAPIResponse.go delete mode 100644 model/idleisv/AlibabaIdleIsvOrderQueryResponse.go create mode 100644 model/idleisv/AlibabaIdleIsvPvListAPIRequest.go create mode 100644 model/idleisv/AlibabaIdleIsvPvListAPIResponse.go delete mode 100644 model/idleisv/AlibabaIdleIsvPvListResponse.go create mode 100644 model/idleisv/AlibabaIdleIsvRefundQueryAPIRequest.go create mode 100644 model/idleisv/AlibabaIdleIsvRefundQueryAPIResponse.go delete mode 100644 model/idleisv/AlibabaIdleIsvRefundQueryResponse.go create mode 100644 model/idleisv/AlibabaIdleIsvSpuSearchAPIRequest.go create mode 100644 model/idleisv/AlibabaIdleIsvSpuSearchAPIResponse.go delete mode 100644 model/idleisv/AlibabaIdleIsvSpuSearchResponse.go create mode 100644 model/idleisv/AlibabaIdleIsvUserQueryAPIRequest.go create mode 100644 model/idleisv/AlibabaIdleIsvUserQueryAPIResponse.go delete mode 100644 model/idleisv/AlibabaIdleIsvUserQueryResponse.go create mode 100644 model/idleitem/AlibabaIdleItemIdlecoinAddAPIRequest.go create mode 100644 model/idleitem/AlibabaIdleItemIdlecoinAddAPIResponse.go delete mode 100644 model/idleitem/AlibabaIdleItemIdlecoinAddResponse.go create mode 100644 model/idleitem/AlibabaIdleItemMediaAddAPIRequest.go create mode 100644 model/idleitem/AlibabaIdleItemMediaAddAPIResponse.go delete mode 100644 model/idleitem/AlibabaIdleItemMediaAddResponse.go create mode 100644 model/idleitem/AlibabaIdleRecycleOrderGetAPIRequest.go create mode 100644 model/idleitem/AlibabaIdleRecycleOrderGetAPIResponse.go delete mode 100644 model/idleitem/AlibabaIdleRecycleOrderGetResponse.go create mode 100644 model/idleparttime/AlibabaIdleParttimeJobsyncAPIRequest.go create mode 100644 model/idleparttime/AlibabaIdleParttimeJobsyncAPIResponse.go delete mode 100644 model/idleparttime/AlibabaIdleParttimeJobsyncResponse.go create mode 100644 model/idleparttime/AlibabaIdleParttimeNotifyAPIRequest.go create mode 100644 model/idleparttime/AlibabaIdleParttimeNotifyAPIResponse.go delete mode 100644 model/idleparttime/AlibabaIdleParttimeNotifyResponse.go create mode 100644 model/idleparttime/AlibabaIdleParttimeSynclogAPIRequest.go create mode 100644 model/idleparttime/AlibabaIdleParttimeSynclogAPIResponse.go delete mode 100644 model/idleparttime/AlibabaIdleParttimeSynclogResponse.go create mode 100644 model/ieagency/AlitripIeBuyerOrderBookpayAPIRequest.go create mode 100644 model/ieagency/AlitripIeBuyerOrderBookpayAPIResponse.go delete mode 100644 model/ieagency/AlitripIeBuyerOrderBookpayResponse.go create mode 100644 model/ieagency/AlitripTripvpAgentOrderSearchAPIRequest.go create mode 100644 model/ieagency/AlitripTripvpAgentOrderSearchAPIResponse.go delete mode 100644 model/ieagency/AlitripTripvpAgentOrderSearchResponse.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentChangeQuerychangelistAPIResponse.go delete mode 100644 model/ieagency/TaobaoAlitripIeAgentChangeQuerychangelistResponse.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentOrderGetAPIRequest.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentOrderGetAPIResponse.go delete mode 100644 model/ieagency/TaobaoAlitripIeAgentOrderGetResponse.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentOrderHkAPIRequest.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentOrderHkAPIResponse.go delete mode 100644 model/ieagency/TaobaoAlitripIeAgentOrderHkResponse.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentOrderSearchAPIRequest.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentOrderSearchAPIResponse.go delete mode 100644 model/ieagency/TaobaoAlitripIeAgentOrderSearchResponse.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundAgreeAPIRequest.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundAgreeAPIResponse.go delete mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundAgreeResponse.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundGetAPIRequest.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundGetAPIResponse.go delete mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundGetResponse.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundNewGetdetailAPIRequest.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundNewGetdetailAPIResponse.go delete mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundNewGetdetailResponse.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundNewGetlistAPIRequest.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundNewGetlistAPIResponse.go delete mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundNewGetlistResponse.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIRequest.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIResponse.go delete mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundNewMultiplerefundsResponse.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundNewReceiveAPIRequest.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundNewReceiveAPIResponse.go delete mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundNewReceiveResponse.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundRefundmoneyAPIRequest.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundRefundmoneyAPIResponse.go delete mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundRefundmoneyResponse.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundRefuseAPIRequest.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundRefuseAPIResponse.go delete mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundRefuseResponse.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundSearchAPIRequest.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundSearchAPIResponse.go delete mode 100644 model/ieagency/TaobaoAlitripIeAgentRefundSearchResponse.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentTicketIssueAPIRequest.go create mode 100644 model/ieagency/TaobaoAlitripIeAgentTicketIssueAPIResponse.go delete mode 100644 model/ieagency/TaobaoAlitripIeAgentTicketIssueResponse.go create mode 100644 model/ihome/AlibabaIhomeCtomCaseMainpicUpdateAPIRequest.go create mode 100644 model/ihome/AlibabaIhomeCtomCaseMainpicUpdateAPIResponse.go delete mode 100644 model/ihome/AlibabaIhomeCtomCaseMainpicUpdateResponse.go create mode 100644 model/ihome/AlibabaIhomeCtomContentImgUploadAPIRequest.go create mode 100644 model/ihome/AlibabaIhomeCtomContentImgUploadAPIResponse.go delete mode 100644 model/ihome/AlibabaIhomeCtomContentImgUploadResponse.go create mode 100644 model/ihome/AlibabaIhomeCtomContentPublishStatusAPIRequest.go create mode 100644 model/ihome/AlibabaIhomeCtomContentPublishStatusAPIResponse.go delete mode 100644 model/ihome/AlibabaIhomeCtomContentPublishStatusResponse.go create mode 100644 model/ihome/AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest.go create mode 100644 model/ihome/AlibabaIhomeCtomPostsaleOnsiteSyncAPIResponse.go delete mode 100644 model/ihome/AlibabaIhomeCtomPostsaleOnsiteSyncResponse.go create mode 100644 model/ihome/AlibabaIhomeCtomPostsaleStatusSyncAPIRequest.go create mode 100644 model/ihome/AlibabaIhomeCtomPostsaleStatusSyncAPIResponse.go delete mode 100644 model/ihome/AlibabaIhomeCtomPostsaleStatusSyncResponse.go create mode 100644 model/ihome/TaobaoIhomeAdvancepicUploadAPIRequest.go create mode 100644 model/ihome/TaobaoIhomeAdvancepicUploadAPIResponse.go delete mode 100644 model/ihome/TaobaoIhomeAdvancepicUploadResponse.go create mode 100644 model/interact/AlibabaInteractActivityAddcommentAPIRequest.go create mode 100644 model/interact/AlibabaInteractActivityAddcommentAPIResponse.go delete mode 100644 model/interact/AlibabaInteractActivityAddcommentResponse.go create mode 100644 model/interact/AlibabaInteractActivityApplyAPIRequest.go create mode 100644 model/interact/AlibabaInteractActivityApplyAPIResponse.go delete mode 100644 model/interact/AlibabaInteractActivityApplyResponse.go create mode 100644 model/interact/AlibabaInteractActivityPushtoalicomAPIRequest.go create mode 100644 model/interact/AlibabaInteractActivityPushtoalicomAPIResponse.go delete mode 100644 model/interact/AlibabaInteractActivityPushtoalicomResponse.go create mode 100644 model/interact/AlibabaInteractActivityRegisterAPIRequest.go create mode 100644 model/interact/AlibabaInteractActivityRegisterAPIResponse.go delete mode 100644 model/interact/AlibabaInteractActivityRegisterResponse.go create mode 100644 model/interact/AlibabaInteractActivityUnregisterAPIRequest.go create mode 100644 model/interact/AlibabaInteractActivityUnregisterAPIResponse.go delete mode 100644 model/interact/AlibabaInteractActivityUnregisterResponse.go create mode 100644 model/interact/AlibabaInteractCoinBuyerAddAPIRequest.go create mode 100644 model/interact/AlibabaInteractCoinBuyerAddAPIResponse.go delete mode 100644 model/interact/AlibabaInteractCoinBuyerAddResponse.go create mode 100644 model/interact/AlibabaInteractCouponApplyAPIRequest.go create mode 100644 model/interact/AlibabaInteractCouponApplyAPIResponse.go delete mode 100644 model/interact/AlibabaInteractCouponApplyResponse.go create mode 100644 model/interact/AlibabaInteractCurrentMixusernickAPIRequest.go create mode 100644 model/interact/AlibabaInteractCurrentMixusernickAPIResponse.go delete mode 100644 model/interact/AlibabaInteractCurrentMixusernickResponse.go create mode 100644 model/interact/AlibabaInteractIsvGatewayAPIRequest.go create mode 100644 model/interact/AlibabaInteractIsvGatewayAPIResponse.go delete mode 100644 model/interact/AlibabaInteractIsvGatewayResponse.go create mode 100644 model/interact/AlibabaInteractIsvadminAllpondsAPIRequest.go create mode 100644 model/interact/AlibabaInteractIsvadminAllpondsAPIResponse.go delete mode 100644 model/interact/AlibabaInteractIsvadminAllpondsResponse.go create mode 100644 model/interact/AlibabaInteractIsvadminBindAPIRequest.go create mode 100644 model/interact/AlibabaInteractIsvadminBindAPIResponse.go delete mode 100644 model/interact/AlibabaInteractIsvadminBindResponse.go create mode 100644 model/interact/AlibabaInteractIsvadminGetinteractbysellernickAPIRequest.go create mode 100644 model/interact/AlibabaInteractIsvadminGetinteractbysellernickAPIResponse.go delete mode 100644 model/interact/AlibabaInteractIsvadminGetinteractbysellernickResponse.go create mode 100644 model/interact/AlibabaInteractIsvadminGetpondbyinteractAPIRequest.go create mode 100644 model/interact/AlibabaInteractIsvadminGetpondbyinteractAPIResponse.go delete mode 100644 model/interact/AlibabaInteractIsvadminGetpondbyinteractResponse.go create mode 100644 model/interact/AlibabaInteractIsvlotteryIdrawAPIRequest.go create mode 100644 model/interact/AlibabaInteractIsvlotteryIdrawAPIResponse.go delete mode 100644 model/interact/AlibabaInteractIsvlotteryIdrawResponse.go create mode 100644 model/interact/AlibabaInteractIsvlotteryIsvdrawAPIRequest.go create mode 100644 model/interact/AlibabaInteractIsvlotteryIsvdrawAPIResponse.go delete mode 100644 model/interact/AlibabaInteractIsvlotteryIsvdrawResponse.go create mode 100644 model/interact/AlibabaInteractLoginAlipayauthAPIRequest.go create mode 100644 model/interact/AlibabaInteractLoginAlipayauthAPIResponse.go delete mode 100644 model/interact/AlibabaInteractLoginAlipayauthResponse.go create mode 100644 model/interact/AlibabaInteractOnecodeIssueAPIRequest.go create mode 100644 model/interact/AlibabaInteractOnecodeIssueAPIResponse.go delete mode 100644 model/interact/AlibabaInteractOnecodeIssueResponse.go create mode 100644 model/interact/AlibabaInteractOpenIsattentionAPIRequest.go create mode 100644 model/interact/AlibabaInteractOpenIsattentionAPIResponse.go delete mode 100644 model/interact/AlibabaInteractOpenIsattentionResponse.go create mode 100644 model/interact/AlibabaInteractOpenIsattentionResultDo.go create mode 100644 model/interact/AlibabaInteractSensorAudioAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorAudioAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorAudioResponse.go create mode 100644 model/interact/AlibabaInteractSensorAuthorizeAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorAuthorizeAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorAuthorizeResponse.go create mode 100644 model/interact/AlibabaInteractSensorBlowAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorBlowAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorBlowResponse.go create mode 100644 model/interact/AlibabaInteractSensorCalendarAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorCalendarAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorCalendarResponse.go create mode 100644 model/interact/AlibabaInteractSensorFavoritesAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorFavoritesAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorFavoritesResponse.go create mode 100644 model/interact/AlibabaInteractSensorGcanvasAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorGcanvasAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorGcanvasResponse.go create mode 100644 model/interact/AlibabaInteractSensorGlueAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorGlueAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorGlueResponse.go create mode 100644 model/interact/AlibabaInteractSensorGmediaAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorGmediaAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorGmediaResponse.go create mode 100644 model/interact/AlibabaInteractSensorGravityAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorGravityAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorGravityResponse.go create mode 100644 model/interact/AlibabaInteractSensorGutilAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorGutilAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorGutilResponse.go create mode 100644 model/interact/AlibabaInteractSensorGyroAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorGyroAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorGyroResponse.go create mode 100644 model/interact/AlibabaInteractSensorLoginAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorLoginAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorLoginResponse.go create mode 100644 model/interact/AlibabaInteractSensorMaAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorMaAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorMaResponse.go create mode 100644 model/interact/AlibabaInteractSensorMakeupAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorMakeupAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorMakeupResponse.go create mode 100644 model/interact/AlibabaInteractSensorNetworkstatusAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorNetworkstatusAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorNetworkstatusResponse.go create mode 100644 model/interact/AlibabaInteractSensorOpenwindowAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorOpenwindowAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorOpenwindowResponse.go create mode 100644 model/interact/AlibabaInteractSensorPopwindowAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorPopwindowAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorPopwindowResponse.go create mode 100644 model/interact/AlibabaInteractSensorShakeAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorShakeAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorShakeResponse.go create mode 100644 model/interact/AlibabaInteractSensorShareAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorShareAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorShareResponse.go create mode 100644 model/interact/AlibabaInteractSensorTakephotoAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorTakephotoAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorTakephotoResponse.go create mode 100644 model/interact/AlibabaInteractSensorTitlebarhideAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorTitlebarhideAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorTitlebarhideResponse.go create mode 100644 model/interact/AlibabaInteractSensorToastAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorToastAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorToastResponse.go create mode 100644 model/interact/AlibabaInteractSensorVibrateAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorVibrateAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorVibrateResponse.go create mode 100644 model/interact/AlibabaInteractSensorWangwangAPIRequest.go create mode 100644 model/interact/AlibabaInteractSensorWangwangAPIResponse.go delete mode 100644 model/interact/AlibabaInteractSensorWangwangResponse.go create mode 100644 model/interact/AlibabaInteractShopFavorAPIRequest.go create mode 100644 model/interact/AlibabaInteractShopFavorAPIResponse.go delete mode 100644 model/interact/AlibabaInteractShopFavorResponse.go create mode 100644 model/interact/AlibabaInteractUmpMealQueryAPIRequest.go create mode 100644 model/interact/AlibabaInteractUmpMealQueryAPIResponse.go delete mode 100644 model/interact/AlibabaInteractUmpMealQueryResponse.go create mode 100644 model/interact/AlibabaInteractUserIsloginAPIRequest.go create mode 100644 model/interact/AlibabaInteractUserIsloginAPIResponse.go delete mode 100644 model/interact/AlibabaInteractUserIsloginResponse.go create mode 100644 model/interact/AlibabaInteractWirelessDrawAPIRequest.go create mode 100644 model/interact/AlibabaInteractWirelessDrawAPIResponse.go delete mode 100644 model/interact/AlibabaInteractWirelessDrawResponse.go create mode 100644 model/interact/TaobaoMixnickPlaytoweAPIRequest.go create mode 100644 model/interact/TaobaoMixnickPlaytoweAPIResponse.go delete mode 100644 model/interact/TaobaoMixnickPlaytoweResponse.go create mode 100644 model/interact/TaobaoMixnickWetoplayAPIRequest.go create mode 100644 model/interact/TaobaoMixnickWetoplayAPIResponse.go delete mode 100644 model/interact/TaobaoMixnickWetoplayResponse.go create mode 100644 model/interact/TaobaoWeitaoFeedCancelAPIRequest.go create mode 100644 model/interact/TaobaoWeitaoFeedCancelAPIResponse.go delete mode 100644 model/interact/TaobaoWeitaoFeedCancelResponse.go create mode 100644 model/interact/TaobaoWeitaoFeedSynchronizeAPIRequest.go create mode 100644 model/interact/TaobaoWeitaoFeedSynchronizeAPIResponse.go create mode 100644 model/interact/TaobaoWeitaoFeedSynchronizeNewAPIRequest.go create mode 100644 model/interact/TaobaoWeitaoFeedSynchronizeNewAPIResponse.go delete mode 100644 model/interact/TaobaoWeitaoFeedSynchronizeNewResponse.go delete mode 100644 model/interact/TaobaoWeitaoFeedSynchronizeResponse.go create mode 100644 model/interactvip/AlibabaInteractVipGetAPIRequest.go create mode 100644 model/interactvip/AlibabaInteractVipGetAPIResponse.go delete mode 100644 model/interactvip/AlibabaInteractVipGetResponse.go create mode 100644 model/inventory/AlibabaRetailDeviceInventorySyncAPIRequest.go create mode 100644 model/inventory/AlibabaRetailDeviceInventorySyncAPIResponse.go delete mode 100644 model/inventory/AlibabaRetailDeviceInventorySyncResponse.go create mode 100644 model/inventory/TaobaoInventoryMerchantAdjustAPIRequest.go create mode 100644 model/inventory/TaobaoInventoryMerchantAdjustAPIResponse.go delete mode 100644 model/inventory/TaobaoInventoryMerchantAdjustResponse.go create mode 100644 model/inventory/TaobaoInventoryPlanEditAPIRequest.go create mode 100644 model/inventory/TaobaoInventoryPlanEditAPIResponse.go delete mode 100644 model/inventory/TaobaoInventoryPlanEditResponse.go create mode 100644 model/inventory/TaobaoInventoryPlanInvalidAPIRequest.go create mode 100644 model/inventory/TaobaoInventoryPlanInvalidAPIResponse.go delete mode 100644 model/inventory/TaobaoInventoryPlanInvalidResponse.go create mode 100644 model/inventory/TaobaoInventoryPlanQuantityIncreaseAPIRequest.go create mode 100644 model/inventory/TaobaoInventoryPlanQuantityIncreaseAPIResponse.go delete mode 100644 model/inventory/TaobaoInventoryPlanQuantityIncreaseResponse.go create mode 100644 model/inventory/TaobaoInventoryPlanQueryAPIRequest.go create mode 100644 model/inventory/TaobaoInventoryPlanQueryAPIResponse.go delete mode 100644 model/inventory/TaobaoInventoryPlanQueryResponse.go create mode 100644 model/inventory/TaobaoLocationRelationEditAPIRequest.go create mode 100644 model/inventory/TaobaoLocationRelationEditAPIResponse.go delete mode 100644 model/inventory/TaobaoLocationRelationEditResponse.go create mode 100644 model/inventory/TaobaoLocationRelationQueryAPIRequest.go create mode 100644 model/inventory/TaobaoLocationRelationQueryAPIResponse.go delete mode 100644 model/inventory/TaobaoLocationRelationQueryResponse.go create mode 100644 model/iot/AlibabaAilabsAligenieAlbumsGetAPIRequest.go create mode 100644 model/iot/AlibabaAilabsAligenieAlbumsGetAPIResponse.go delete mode 100644 model/iot/AlibabaAilabsAligenieAlbumsGetResponse.go create mode 100644 model/iot/AlibabaAilabsAligenieAlbumsSearchAPIRequest.go create mode 100644 model/iot/AlibabaAilabsAligenieAlbumsSearchAPIResponse.go delete mode 100644 model/iot/AlibabaAilabsAligenieAlbumsSearchResponse.go create mode 100644 model/iot/AlibabaAilabsAligenieIotDeviceControlResultAPIRequest.go create mode 100644 model/iot/AlibabaAilabsAligenieIotDeviceControlResultAPIResponse.go delete mode 100644 model/iot/AlibabaAilabsAligenieIotDeviceControlResultResponse.go create mode 100644 model/iot/AlibabaAilabsAligenieTracksSearchAPIRequest.go create mode 100644 model/iot/AlibabaAilabsAligenieTracksSearchAPIResponse.go delete mode 100644 model/iot/AlibabaAilabsAligenieTracksSearchResponse.go create mode 100644 model/iot/AlibabaAilabsIotBusinessRecipeGetdetailAPIRequest.go create mode 100644 model/iot/AlibabaAilabsIotBusinessRecipeGetdetailAPIResponse.go delete mode 100644 model/iot/AlibabaAilabsIotBusinessRecipeGetdetailResponse.go create mode 100644 model/iot/AlibabaAilabsIotBusinessRecipeGetpageAPIRequest.go create mode 100644 model/iot/AlibabaAilabsIotBusinessRecipeGetpageAPIResponse.go delete mode 100644 model/iot/AlibabaAilabsIotBusinessRecipeGetpageResponse.go create mode 100644 model/iot/AlibabaAilabsIotBusinessRecipeInsertorupdateAPIRequest.go create mode 100644 model/iot/AlibabaAilabsIotBusinessRecipeInsertorupdateAPIResponse.go delete mode 100644 model/iot/AlibabaAilabsIotBusinessRecipeInsertorupdateResponse.go create mode 100644 model/iot/AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIRequest.go create mode 100644 model/iot/AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIResponse.go delete mode 100644 model/iot/AlibabaAilabsIotBusinessRecipestepInsertorupdateResponse.go create mode 100644 model/iot/AlibabaRetailDevicePayUrlGetAPIRequest.go create mode 100644 model/iot/AlibabaRetailDevicePayUrlGetAPIResponse.go delete mode 100644 model/iot/AlibabaRetailDevicePayUrlGetResponse.go create mode 100644 model/iot/TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopAuthGetAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopAuthGetAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopAuthGetResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopAuthLogoutAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopAuthLogoutAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopAuthLogoutResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceAuthcodeGetAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceAuthcodeGetAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceAuthcodeGetResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceAuthresultGetAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceAuthresultGetResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlChildlockAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlChildlockAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlChildlockResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlCustomAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlCustomAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlCustomResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlHibernationAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlHibernationAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlHibernationResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlLampAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlLampAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlLampResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlPauseandresumeResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlPlaybyidAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlPlaybyidResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlPlayurlAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlPlayurlAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlPlayurlResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlVolumeAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlVolumeAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceControlVolumeResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceDetailinfoGetAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceDetailinfoGetAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceDetailinfoGetResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceDeviceidConvertAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceDeviceidConvertAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceDeviceidConvertResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceExtinfoGetAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceExtinfoGetAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceExtinfoGetResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceGetstatusAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceGetstatusAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceGetstatusResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthresultGetResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceOpenidUnbindAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceOpenidUnbindResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceSettingsResetAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceSettingsResetResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceStatusinfoGetAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceStatusinfoGetAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceStatusinfoGetResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceUnbindAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopDeviceUnbindAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopDeviceUnbindResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopFeedlistDeleteAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopFeedlistDeleteAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopFeedlistDeleteResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopFeedlistGetAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopFeedlistGetAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopFeedlistGetResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopFreelistenChildrenalbumAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopFreelistenChildrenalbumResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopLikeAddAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopLikeAddAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopLikeAddResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopLikeDeleteAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopLikeDeleteAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopLikeDeleteResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopLikeFilterAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopLikeFilterAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopLikeFilterResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopLikeListAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopLikeListAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopLikeListResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopMessageAddtextAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopMessageAddtextAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopMessageAddtextResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopMessageGetUnreadCountAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopMessageGetUnreadCountAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopMessageGetUnreadCountResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopMessageListAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopMessageListAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopMessageListResponse.go create mode 100644 model/iot/TaobaoAilabAicloudTopMessageSendAPIRequest.go create mode 100644 model/iot/TaobaoAilabAicloudTopMessageSendAPIResponse.go delete mode 100644 model/iot/TaobaoAilabAicloudTopMessageSendResponse.go create mode 100644 model/iot/TmallDeviceBrandMemberurlGetAPIRequest.go create mode 100644 model/iot/TmallDeviceBrandMemberurlGetAPIResponse.go delete mode 100644 model/iot/TmallDeviceBrandMemberurlGetResponse.go create mode 100644 model/iot/TmallDeviceCarturlGetAPIRequest.go create mode 100644 model/iot/TmallDeviceCarturlGetAPIResponse.go delete mode 100644 model/iot/TmallDeviceCarturlGetResponse.go create mode 100644 model/iot/TmallDeviceItemPromotionGetAPIRequest.go create mode 100644 model/iot/TmallDeviceItemPromotionGetAPIResponse.go delete mode 100644 model/iot/TmallDeviceItemPromotionGetResponse.go create mode 100644 model/iot/TmallDeviceMemberIdentityGetAPIRequest.go create mode 100644 model/iot/TmallDeviceMemberIdentityGetAPIResponse.go delete mode 100644 model/iot/TmallDeviceMemberIdentityGetResponse.go create mode 100644 model/iot/TmallDeviceMemberIdentityGetResultDto.go create mode 100644 model/iot/TmallDeviceShortchainurlGetAPIRequest.go create mode 100644 model/iot/TmallDeviceShortchainurlGetAPIResponse.go delete mode 100644 model/iot/TmallDeviceShortchainurlGetResponse.go create mode 100644 model/iot/TmallDeviceStoreFollowurlGetAPIRequest.go create mode 100644 model/iot/TmallDeviceStoreFollowurlGetAPIResponse.go delete mode 100644 model/iot/TmallDeviceStoreFollowurlGetResponse.go create mode 100644 model/iot/TmallDeviceTradePrecreateAPIRequest.go create mode 100644 model/iot/TmallDeviceTradePrecreateAPIResponse.go delete mode 100644 model/iot/TmallDeviceTradePrecreateResponse.go create mode 100644 model/ioti/AlibabaItAlbumDeviceSendimageAPIRequest.go create mode 100644 model/ioti/AlibabaItAlbumDeviceSendimageAPIResponse.go delete mode 100644 model/ioti/AlibabaItAlbumDeviceSendimageResponse.go create mode 100644 model/ioti/AlibabaItCloudliveGetagentconfigAPIRequest.go create mode 100644 model/ioti/AlibabaItCloudliveGetagentconfigAPIResponse.go delete mode 100644 model/ioti/AlibabaItCloudliveGetagentconfigResponse.go create mode 100644 model/ioti/AlibabaItEslEslimageSendimageAPIRequest.go create mode 100644 model/ioti/AlibabaItEslEslimageSendimageAPIResponse.go delete mode 100644 model/ioti/AlibabaItEslEslimageSendimageResponse.go create mode 100644 model/ioti/AlibabaItEslEslimageShowimagecommonAPIRequest.go create mode 100644 model/ioti/AlibabaItEslEslimageShowimagecommonAPIResponse.go delete mode 100644 model/ioti/AlibabaItEslEslimageShowimagecommonResponse.go create mode 100644 model/ioti/AlibabaItEslSendledAPIRequest.go create mode 100644 model/ioti/AlibabaItEslSendledAPIResponse.go delete mode 100644 model/ioti/AlibabaItEslSendledResponse.go create mode 100644 model/ioti/AlibabaItEslSendotaAPIRequest.go create mode 100644 model/ioti/AlibabaItEslSendotaAPIResponse.go delete mode 100644 model/ioti/AlibabaItEslSendotaResponse.go create mode 100644 model/iotticket/CainiaoIotTicketDetailQueryAPIRequest.go create mode 100644 model/iotticket/CainiaoIotTicketDetailQueryAPIResponse.go delete mode 100644 model/iotticket/CainiaoIotTicketDetailQueryResponse.go create mode 100644 model/iotticket/CainiaoIotTicketSpAcceptAPIRequest.go create mode 100644 model/iotticket/CainiaoIotTicketSpAcceptAPIResponse.go delete mode 100644 model/iotticket/CainiaoIotTicketSpAcceptResponse.go create mode 100644 model/iotticket/CainiaoIotTicketSpAcceptResultDto.go create mode 100644 model/iotticket/CainiaoIotTicketSpCancleAPIRequest.go create mode 100644 model/iotticket/CainiaoIotTicketSpCancleAPIResponse.go delete mode 100644 model/iotticket/CainiaoIotTicketSpCancleResponse.go create mode 100644 model/iotticket/CainiaoIotTicketSpCancleResultDto.go create mode 100644 model/iotticket/CainiaoIotTicketSpCommentAPIRequest.go create mode 100644 model/iotticket/CainiaoIotTicketSpCommentAPIResponse.go delete mode 100644 model/iotticket/CainiaoIotTicketSpCommentResponse.go create mode 100644 model/iotticket/CainiaoIotTicketSpCommentResultDto.go create mode 100644 model/iotticket/CainiaoIotTicketSpMailSignUploadAPIRequest.go create mode 100644 model/iotticket/CainiaoIotTicketSpMailSignUploadAPIResponse.go delete mode 100644 model/iotticket/CainiaoIotTicketSpMailSignUploadResponse.go create mode 100644 model/iotticket/CainiaoIotTicketSpMailSignUploadResultDto.go create mode 100644 model/iotticket/CainiaoIotTicketSpMailVoucherUploadAPIRequest.go create mode 100644 model/iotticket/CainiaoIotTicketSpMailVoucherUploadAPIResponse.go delete mode 100644 model/iotticket/CainiaoIotTicketSpMailVoucherUploadResponse.go create mode 100644 model/iotticket/CainiaoIotTicketSpMailVoucherUploadResultDto.go create mode 100644 model/iotticket/CainiaoIotTicketSpMaintainCreateAPIRequest.go create mode 100644 model/iotticket/CainiaoIotTicketSpMaintainCreateAPIResponse.go delete mode 100644 model/iotticket/CainiaoIotTicketSpMaintainCreateResponse.go create mode 100644 model/iotticket/CainiaoIotTicketSpMaintainCreateResultDto.go create mode 100644 model/iotticket/CainiaoIotTicketSpMaintainUpdateAPIRequest.go create mode 100644 model/iotticket/CainiaoIotTicketSpMaintainUpdateAPIResponse.go delete mode 100644 model/iotticket/CainiaoIotTicketSpMaintainUpdateResponse.go create mode 100644 model/iotticket/CainiaoIotTicketSpMaintainUpdateResultDto.go create mode 100644 model/iotticket/CainiaoIotTicketSpMaintainVtwoCreateAPIRequest.go create mode 100644 model/iotticket/CainiaoIotTicketSpMaintainVtwoCreateAPIResponse.go delete mode 100644 model/iotticket/CainiaoIotTicketSpMaintainVtwoCreateResponse.go create mode 100644 model/iotticket/CainiaoIotTicketSpMaintainVtwoCreateResultDto.go create mode 100644 model/iotticket/CainiaoIotTicketSpVtwoAcceptAPIRequest.go create mode 100644 model/iotticket/CainiaoIotTicketSpVtwoAcceptAPIResponse.go delete mode 100644 model/iotticket/CainiaoIotTicketSpVtwoAcceptResponse.go create mode 100644 model/iotticket/CainiaoIotTicketSpVtwoAcceptResultDto.go create mode 100644 model/itpolicy/TaobaoAlitripItFareAddowAPIRequest.go create mode 100644 model/itpolicy/TaobaoAlitripItFareAddowAPIResponse.go delete mode 100644 model/itpolicy/TaobaoAlitripItFareAddowResponse.go create mode 100644 model/itpolicy/TaobaoAlitripItFareAddrtAPIRequest.go create mode 100644 model/itpolicy/TaobaoAlitripItFareAddrtAPIResponse.go delete mode 100644 model/itpolicy/TaobaoAlitripItFareAddrtResponse.go create mode 100644 model/itpolicy/TaobaoAlitripItFareBatchaddAPIRequest.go create mode 100644 model/itpolicy/TaobaoAlitripItFareBatchaddAPIResponse.go delete mode 100644 model/itpolicy/TaobaoAlitripItFareBatchaddResponse.go create mode 100644 model/itpolicy/TaobaoAlitripItFareBatchdeleteAPIRequest.go create mode 100644 model/itpolicy/TaobaoAlitripItFareBatchdeleteAPIResponse.go delete mode 100644 model/itpolicy/TaobaoAlitripItFareBatchdeleteResponse.go create mode 100644 model/itpolicy/TaobaoAlitripItFareDeleteAPIRequest.go create mode 100644 model/itpolicy/TaobaoAlitripItFareDeleteAPIResponse.go delete mode 100644 model/itpolicy/TaobaoAlitripItFareDeleteResponse.go create mode 100644 model/itpolicy/TaobaoAlitripItFareGetAPIRequest.go create mode 100644 model/itpolicy/TaobaoAlitripItFareGetAPIResponse.go delete mode 100644 model/itpolicy/TaobaoAlitripItFareGetResponse.go create mode 100644 model/itpolicy/TaobaoAlitripItFareQuerytaskAPIRequest.go create mode 100644 model/itpolicy/TaobaoAlitripItFareQuerytaskAPIResponse.go delete mode 100644 model/itpolicy/TaobaoAlitripItFareQuerytaskResponse.go create mode 100644 model/itpolicy/TaobaoAlitripItFareUpdateAPIRequest.go create mode 100644 model/itpolicy/TaobaoAlitripItFareUpdateAPIResponse.go delete mode 100644 model/itpolicy/TaobaoAlitripItFareUpdateResponse.go create mode 100644 model/itpolicy/TaobaoAlitripItPolicyAddAPIRequest.go create mode 100644 model/itpolicy/TaobaoAlitripItPolicyAddAPIResponse.go delete mode 100644 model/itpolicy/TaobaoAlitripItPolicyAddResponse.go create mode 100644 model/itpolicy/TaobaoAlitripItPolicyBatchdeleteAPIRequest.go create mode 100644 model/itpolicy/TaobaoAlitripItPolicyBatchdeleteAPIResponse.go delete mode 100644 model/itpolicy/TaobaoAlitripItPolicyBatchdeleteResponse.go create mode 100644 model/itpolicy/TaobaoAlitripItPolicyDeleteAPIRequest.go create mode 100644 model/itpolicy/TaobaoAlitripItPolicyDeleteAPIResponse.go delete mode 100644 model/itpolicy/TaobaoAlitripItPolicyDeleteResponse.go create mode 100644 model/itpolicy/TaobaoAlitripItPolicyGetAPIRequest.go create mode 100644 model/itpolicy/TaobaoAlitripItPolicyGetAPIResponse.go delete mode 100644 model/itpolicy/TaobaoAlitripItPolicyGetResponse.go create mode 100644 model/itpolicy/TaobaoAlitripItPolicyUpdateAPIRequest.go create mode 100644 model/itpolicy/TaobaoAlitripItPolicyUpdateAPIResponse.go delete mode 100644 model/itpolicy/TaobaoAlitripItPolicyUpdateResponse.go create mode 100644 model/jae/TaobaoAplatformWeakgetAPIRequest.go create mode 100644 model/jae/TaobaoAplatformWeakgetAPIResponse.go delete mode 100644 model/jae/TaobaoAplatformWeakgetResponse.go create mode 100644 model/jipiao/TaobaoAlitripBuyerGetAPIRequest.go create mode 100644 model/jipiao/TaobaoAlitripBuyerGetAPIResponse.go delete mode 100644 model/jipiao/TaobaoAlitripBuyerGetResponse.go create mode 100644 model/jipiao/TaobaoAlitripSellerModifyListAPIRequest.go create mode 100644 model/jipiao/TaobaoAlitripSellerModifyListAPIResponse.go delete mode 100644 model/jipiao/TaobaoAlitripSellerModifyListResponse.go create mode 100644 model/jipiao/TaobaoAlitripSellerOrderConfirmAPIRequest.go create mode 100644 model/jipiao/TaobaoAlitripSellerOrderConfirmAPIResponse.go delete mode 100644 model/jipiao/TaobaoAlitripSellerOrderConfirmResponse.go create mode 100644 model/jipiao/TaobaoAlitripSellerRefundConfirmreturnAPIRequest.go create mode 100644 model/jipiao/TaobaoAlitripSellerRefundConfirmreturnAPIResponse.go delete mode 100644 model/jipiao/TaobaoAlitripSellerRefundConfirmreturnResponse.go create mode 100644 model/jipiao/TaobaoAlitripSellerRefundFillfeeAPIRequest.go create mode 100644 model/jipiao/TaobaoAlitripSellerRefundFillfeeAPIResponse.go delete mode 100644 model/jipiao/TaobaoAlitripSellerRefundFillfeeResponse.go create mode 100644 model/jipiao/TaobaoAlitripSellerRefundGetAPIRequest.go create mode 100644 model/jipiao/TaobaoAlitripSellerRefundGetAPIResponse.go delete mode 100644 model/jipiao/TaobaoAlitripSellerRefundGetResponse.go create mode 100644 model/jipiao/TaobaoAlitripSellerRefundGetResultDo.go create mode 100644 model/jipiao/TaobaoAlitripSellerRefundRefusereturnAPIRequest.go create mode 100644 model/jipiao/TaobaoAlitripSellerRefundRefusereturnAPIResponse.go delete mode 100644 model/jipiao/TaobaoAlitripSellerRefundRefusereturnResponse.go create mode 100644 model/jipiao/TaobaoAlitripSellerRefundRefusereturnResultDo.go create mode 100644 model/jipiao/TaobaoAlitripSellerRefundSearchAPIRequest.go create mode 100644 model/jipiao/TaobaoAlitripSellerRefundSearchAPIResponse.go delete mode 100644 model/jipiao/TaobaoAlitripSellerRefundSearchResponse.go create mode 100644 model/jipiao/TaobaoAlitripSellerRefundSearchResultDo.go create mode 100644 model/jipiao/TaobaoAlitripSellerRefundmoneyConfirmAPIRequest.go create mode 100644 model/jipiao/TaobaoAlitripSellerRefundmoneyConfirmAPIResponse.go delete mode 100644 model/jipiao/TaobaoAlitripSellerRefundmoneyConfirmResponse.go create mode 100644 model/jipiao/TaobaoAlitripSellerRefundorderlistFetchAPIRequest.go create mode 100644 model/jipiao/TaobaoAlitripSellerRefundorderlistFetchAPIResponse.go delete mode 100644 model/jipiao/TaobaoAlitripSellerRefundorderlistFetchResponse.go create mode 100644 model/jipiao/TaobaoAlitripSupplierModifyListAPIRequest.go create mode 100644 model/jipiao/TaobaoAlitripSupplierModifyListAPIResponse.go delete mode 100644 model/jipiao/TaobaoAlitripSupplierModifyListResponse.go create mode 100644 model/jipiao/TaobaoJipiaoAgentOrderBdetailAPIRequest.go create mode 100644 model/jipiao/TaobaoJipiaoAgentOrderBdetailAPIResponse.go delete mode 100644 model/jipiao/TaobaoJipiaoAgentOrderBdetailResponse.go create mode 100644 model/jipiao/TaobaoJipiaoAgentOrderDetailAPIRequest.go create mode 100644 model/jipiao/TaobaoJipiaoAgentOrderDetailAPIResponse.go delete mode 100644 model/jipiao/TaobaoJipiaoAgentOrderDetailResponse.go create mode 100644 model/jipiao/TaobaoJipiaoAgentOrderSearchAPIRequest.go create mode 100644 model/jipiao/TaobaoJipiaoAgentOrderSearchAPIResponse.go delete mode 100644 model/jipiao/TaobaoJipiaoAgentOrderSearchResponse.go create mode 100644 model/jipiao/TaobaoJipiaoAgentOrderTicketAPIRequest.go create mode 100644 model/jipiao/TaobaoJipiaoAgentOrderTicketAPIResponse.go delete mode 100644 model/jipiao/TaobaoJipiaoAgentOrderTicketResponse.go create mode 100644 model/jms/TaobaoJushitaJmsGroupDeleteAPIRequest.go create mode 100644 model/jms/TaobaoJushitaJmsGroupDeleteAPIResponse.go delete mode 100644 model/jms/TaobaoJushitaJmsGroupDeleteResponse.go create mode 100644 model/jms/TaobaoJushitaJmsGroupGetAPIRequest.go create mode 100644 model/jms/TaobaoJushitaJmsGroupGetAPIResponse.go delete mode 100644 model/jms/TaobaoJushitaJmsGroupGetResponse.go create mode 100644 model/jms/TaobaoJushitaJmsTopicsGetAPIRequest.go create mode 100644 model/jms/TaobaoJushitaJmsTopicsGetAPIResponse.go delete mode 100644 model/jms/TaobaoJushitaJmsTopicsGetResponse.go create mode 100644 model/jms/TaobaoJushitaJmsUserAddAPIRequest.go create mode 100644 model/jms/TaobaoJushitaJmsUserAddAPIResponse.go delete mode 100644 model/jms/TaobaoJushitaJmsUserAddResponse.go create mode 100644 model/jms/TaobaoJushitaJmsUserDeleteAPIRequest.go create mode 100644 model/jms/TaobaoJushitaJmsUserDeleteAPIResponse.go delete mode 100644 model/jms/TaobaoJushitaJmsUserDeleteResponse.go create mode 100644 model/jms/TaobaoJushitaJmsUserGetAPIRequest.go create mode 100644 model/jms/TaobaoJushitaJmsUserGetAPIResponse.go delete mode 100644 model/jms/TaobaoJushitaJmsUserGetResponse.go create mode 100644 model/jst/AlibabaModifyaddressIsvBindsellerCheckAPIRequest.go create mode 100644 model/jst/AlibabaModifyaddressIsvBindsellerCheckAPIResponse.go delete mode 100644 model/jst/AlibabaModifyaddressIsvBindsellerCheckResponse.go create mode 100644 model/jst/TaobaoJdsHluserGetAPIRequest.go create mode 100644 model/jst/TaobaoJdsHluserGetAPIResponse.go delete mode 100644 model/jst/TaobaoJdsHluserGetResponse.go create mode 100644 model/jst/TaobaoJdsHluserUpdateAPIRequest.go create mode 100644 model/jst/TaobaoJdsHluserUpdateAPIResponse.go delete mode 100644 model/jst/TaobaoJdsHluserUpdateResponse.go create mode 100644 model/jst/TaobaoJdsRefundTracesGetAPIRequest.go create mode 100644 model/jst/TaobaoJdsRefundTracesGetAPIResponse.go delete mode 100644 model/jst/TaobaoJdsRefundTracesGetResponse.go create mode 100644 model/jst/TaobaoJdsTradeTracesGetAPIRequest.go create mode 100644 model/jst/TaobaoJdsTradeTracesGetAPIResponse.go delete mode 100644 model/jst/TaobaoJdsTradeTracesGetResponse.go create mode 100644 model/jst/TaobaoJdsTradesStatisticsDiffAPIRequest.go create mode 100644 model/jst/TaobaoJdsTradesStatisticsDiffAPIResponse.go delete mode 100644 model/jst/TaobaoJdsTradesStatisticsDiffResponse.go create mode 100644 model/jst/TaobaoJdsTradesStatisticsGetAPIRequest.go create mode 100644 model/jst/TaobaoJdsTradesStatisticsGetAPIResponse.go delete mode 100644 model/jst/TaobaoJdsTradesStatisticsGetResponse.go create mode 100644 model/jst/TaobaoJstMiniappCrowdCreateAPIRequest.go create mode 100644 model/jst/TaobaoJstMiniappCrowdCreateAPIResponse.go delete mode 100644 model/jst/TaobaoJstMiniappCrowdCreateResponse.go create mode 100644 model/jst/TaobaoJstMiniappCrowdMessageSendAPIRequest.go create mode 100644 model/jst/TaobaoJstMiniappCrowdMessageSendAPIResponse.go delete mode 100644 model/jst/TaobaoJstMiniappCrowdMessageSendResponse.go create mode 100644 model/jst/TaobaoJstMiniappCrowdUserAddAPIRequest.go create mode 100644 model/jst/TaobaoJstMiniappCrowdUserAddAPIResponse.go delete mode 100644 model/jst/TaobaoJstMiniappCrowdUserAddResponse.go create mode 100644 model/jst/TaobaoJstMiniappOpenidMessageSendAPIRequest.go create mode 100644 model/jst/TaobaoJstMiniappOpenidMessageSendAPIResponse.go delete mode 100644 model/jst/TaobaoJstMiniappOpenidMessageSendResponse.go create mode 100644 model/jst/TaobaoJstSmsExtendcodeQueryAPIRequest.go create mode 100644 model/jst/TaobaoJstSmsExtendcodeQueryAPIResponse.go delete mode 100644 model/jst/TaobaoJstSmsExtendcodeQueryResponse.go create mode 100644 model/jst/TaobaoJstSmsMenuinfoReportAPIRequest.go create mode 100644 model/jst/TaobaoJstSmsMenuinfoReportAPIResponse.go delete mode 100644 model/jst/TaobaoJstSmsMenuinfoReportResponse.go create mode 100644 model/jst/TaobaoJstSmsMessageDirectBatchsendAPIRequest.go create mode 100644 model/jst/TaobaoJstSmsMessageDirectBatchsendAPIResponse.go delete mode 100644 model/jst/TaobaoJstSmsMessageDirectBatchsendResponse.go create mode 100644 model/jst/TaobaoJstSmsMessageSendAPIRequest.go create mode 100644 model/jst/TaobaoJstSmsMessageSendAPIResponse.go delete mode 100644 model/jst/TaobaoJstSmsMessageSendResponse.go create mode 100644 model/jst/TaobaoJstSmsMessageShorturlCreateAPIRequest.go create mode 100644 model/jst/TaobaoJstSmsMessageShorturlCreateAPIResponse.go delete mode 100644 model/jst/TaobaoJstSmsMessageShorturlCreateResponse.go create mode 100644 model/jst/TaobaoJstSmsMessageShorturlQueryAPIRequest.go create mode 100644 model/jst/TaobaoJstSmsMessageShorturlQueryAPIResponse.go delete mode 100644 model/jst/TaobaoJstSmsMessageShorturlQueryResponse.go create mode 100644 model/jst/TaobaoJstSmsOfficialaccountCancelAPIRequest.go create mode 100644 model/jst/TaobaoJstSmsOfficialaccountCancelAPIResponse.go delete mode 100644 model/jst/TaobaoJstSmsOfficialaccountCancelResponse.go create mode 100644 model/jst/TaobaoJstSmsOfficialaccountOfflineAPIRequest.go create mode 100644 model/jst/TaobaoJstSmsOfficialaccountOfflineAPIResponse.go delete mode 100644 model/jst/TaobaoJstSmsOfficialaccountOfflineResponse.go create mode 100644 model/jst/TaobaoJstSmsOfficialaccountOnlineAPIRequest.go create mode 100644 model/jst/TaobaoJstSmsOfficialaccountOnlineAPIResponse.go delete mode 100644 model/jst/TaobaoJstSmsOfficialaccountOnlineResponse.go create mode 100644 model/jst/TaobaoJstSmsOfficialaccountOrderAPIRequest.go create mode 100644 model/jst/TaobaoJstSmsOfficialaccountOrderAPIResponse.go delete mode 100644 model/jst/TaobaoJstSmsOfficialaccountOrderResponse.go create mode 100644 model/jst/TaobaoJstSmsOfficialaccountReportAPIRequest.go create mode 100644 model/jst/TaobaoJstSmsOfficialaccountReportAPIResponse.go delete mode 100644 model/jst/TaobaoJstSmsOfficialaccountReportResponse.go create mode 100644 model/jst/TaobaoJstSmsStatusQueryAPIRequest.go create mode 100644 model/jst/TaobaoJstSmsStatusQueryAPIResponse.go delete mode 100644 model/jst/TaobaoJstSmsStatusQueryResponse.go create mode 100644 model/jst/TaobaoJstSmsTaskCreateAPIRequest.go create mode 100644 model/jst/TaobaoJstSmsTaskCreateAPIResponse.go delete mode 100644 model/jst/TaobaoJstSmsTaskCreateResponse.go create mode 100644 model/jst/TaobaoJushitaJdpUserAddAPIRequest.go create mode 100644 model/jst/TaobaoJushitaJdpUserAddAPIResponse.go delete mode 100644 model/jst/TaobaoJushitaJdpUserAddResponse.go create mode 100644 model/jst/TaobaoJushitaJdpUserDeleteAPIRequest.go create mode 100644 model/jst/TaobaoJushitaJdpUserDeleteAPIResponse.go delete mode 100644 model/jst/TaobaoJushitaJdpUserDeleteResponse.go create mode 100644 model/jst/TaobaoJushitaJdpUsersGetAPIRequest.go create mode 100644 model/jst/TaobaoJushitaJdpUsersGetAPIResponse.go delete mode 100644 model/jst/TaobaoJushitaJdpUsersGetResponse.go create mode 100644 model/jst/TaobaoModifyaddressOpenAPIRequest.go create mode 100644 model/jst/TaobaoModifyaddressOpenAPIResponse.go delete mode 100644 model/jst/TaobaoModifyaddressOpenResponse.go create mode 100644 model/jst/TaobaoOcApContractsignedGetAPIRequest.go create mode 100644 model/jst/TaobaoOcApContractsignedGetAPIResponse.go delete mode 100644 model/jst/TaobaoOcApContractsignedGetResponse.go create mode 100644 model/jst/TaobaoOcApContracturlGetAPIRequest.go create mode 100644 model/jst/TaobaoOcApContracturlGetAPIResponse.go delete mode 100644 model/jst/TaobaoOcApContracturlGetResponse.go create mode 100644 model/jst/TaobaoOcApRuleCreateAPIRequest.go create mode 100644 model/jst/TaobaoOcApRuleCreateAPIResponse.go delete mode 100644 model/jst/TaobaoOcApRuleCreateResponse.go create mode 100644 model/jst/TaobaoOcEserviceAppointListAPIRequest.go create mode 100644 model/jst/TaobaoOcEserviceAppointListAPIResponse.go delete mode 100644 model/jst/TaobaoOcEserviceAppointListResponse.go create mode 100644 model/jst/TaobaoOcOrderApUpdateAPIRequest.go create mode 100644 model/jst/TaobaoOcOrderApUpdateAPIResponse.go delete mode 100644 model/jst/TaobaoOcOrderApUpdateResponse.go create mode 100644 model/jst/TaobaoOcOrderCreateAPIRequest.go create mode 100644 model/jst/TaobaoOcOrderCreateAPIResponse.go delete mode 100644 model/jst/TaobaoOcOrderCreateResponse.go create mode 100644 model/jst/TaobaoOcTradesBytagGetAPIRequest.go create mode 100644 model/jst/TaobaoOcTradesBytagGetAPIResponse.go delete mode 100644 model/jst/TaobaoOcTradesBytagGetResponse.go create mode 100644 model/jst/TaobaoOcTradetagAttachAPIRequest.go create mode 100644 model/jst/TaobaoOcTradetagAttachAPIResponse.go delete mode 100644 model/jst/TaobaoOcTradetagAttachResponse.go create mode 100644 model/jst/TaobaoOcTradetagsGetAPIRequest.go create mode 100644 model/jst/TaobaoOcTradetagsGetAPIResponse.go delete mode 100644 model/jst/TaobaoOcTradetagsGetResponse.go create mode 100644 model/jst/TaobaoOcTradetraceAlertsGetAPIRequest.go create mode 100644 model/jst/TaobaoOcTradetraceAlertsGetAPIResponse.go delete mode 100644 model/jst/TaobaoOcTradetraceAlertsGetResponse.go create mode 100644 model/jst/TaobaoQimenOrderstatusUpdateAPIRequest.go create mode 100644 model/jst/TaobaoQimenOrderstatusUpdateAPIResponse.go delete mode 100644 model/jst/TaobaoQimenOrderstatusUpdateResponse.go create mode 100644 model/jst/TaobaoRdsDbCreateAPIRequest.go create mode 100644 model/jst/TaobaoRdsDbCreateAPIResponse.go delete mode 100644 model/jst/TaobaoRdsDbCreateResponse.go create mode 100644 model/jst/TaobaoRdsDbCreateaccountAPIRequest.go create mode 100644 model/jst/TaobaoRdsDbCreateaccountAPIResponse.go delete mode 100644 model/jst/TaobaoRdsDbCreateaccountResponse.go create mode 100644 model/jst/TaobaoRdsDbDeleteAPIRequest.go create mode 100644 model/jst/TaobaoRdsDbDeleteAPIResponse.go delete mode 100644 model/jst/TaobaoRdsDbDeleteResponse.go create mode 100644 model/jst/TaobaoRdsDbGetAPIRequest.go create mode 100644 model/jst/TaobaoRdsDbGetAPIResponse.go delete mode 100644 model/jst/TaobaoRdsDbGetResponse.go create mode 100644 model/jst/TaobaoRdsDbGetdbAPIRequest.go create mode 100644 model/jst/TaobaoRdsDbGetdbAPIResponse.go delete mode 100644 model/jst/TaobaoRdsDbGetdbResponse.go create mode 100644 model/jstinteractive/TaobaoJstInteractiveActivityCreateAPIRequest.go create mode 100644 model/jstinteractive/TaobaoJstInteractiveActivityCreateAPIResponse.go delete mode 100644 model/jstinteractive/TaobaoJstInteractiveActivityCreateResponse.go create mode 100644 model/jstinteractive/TaobaoJstInteractiveActivityQueryAPIRequest.go create mode 100644 model/jstinteractive/TaobaoJstInteractiveActivityQueryAPIResponse.go delete mode 100644 model/jstinteractive/TaobaoJstInteractiveActivityQueryResponse.go create mode 100644 model/jstinteractive/TaobaoJstInteractiveActivityUpdateAPIRequest.go create mode 100644 model/jstinteractive/TaobaoJstInteractiveActivityUpdateAPIResponse.go delete mode 100644 model/jstinteractive/TaobaoJstInteractiveActivityUpdateResponse.go create mode 100644 model/jstinteractive/TaobaoJstInteractiveAssetsConfigAPIRequest.go create mode 100644 model/jstinteractive/TaobaoJstInteractiveAssetsConfigAPIResponse.go delete mode 100644 model/jstinteractive/TaobaoJstInteractiveAssetsConfigResponse.go create mode 100644 model/jstinteractive/TaobaoJstInteractiveAssetsConfiguredQueryAPIRequest.go create mode 100644 model/jstinteractive/TaobaoJstInteractiveAssetsConfiguredQueryAPIResponse.go delete mode 100644 model/jstinteractive/TaobaoJstInteractiveAssetsConfiguredQueryResponse.go create mode 100644 model/jstinteractive/TaobaoJstInteractiveAssetsQueryAPIRequest.go create mode 100644 model/jstinteractive/TaobaoJstInteractiveAssetsQueryAPIResponse.go delete mode 100644 model/jstinteractive/TaobaoJstInteractiveAssetsQueryResponse.go create mode 100644 model/jstinteractive/TaobaoJstInteractivePointDecreaseAPIRequest.go create mode 100644 model/jstinteractive/TaobaoJstInteractivePointDecreaseAPIResponse.go delete mode 100644 model/jstinteractive/TaobaoJstInteractivePointDecreaseResponse.go create mode 100644 model/jstinteractive/TaobaoJstInteractivePointIncreaseAPIRequest.go create mode 100644 model/jstinteractive/TaobaoJstInteractivePointIncreaseAPIResponse.go delete mode 100644 model/jstinteractive/TaobaoJstInteractivePointIncreaseResponse.go create mode 100644 model/jstinteractive/TaobaoJstInteractivePointQueryAPIRequest.go create mode 100644 model/jstinteractive/TaobaoJstInteractivePointQueryAPIResponse.go delete mode 100644 model/jstinteractive/TaobaoJstInteractivePointQueryResponse.go create mode 100644 model/jstinteractive/TaobaoJstInteractiveTaskQueryAPIRequest.go create mode 100644 model/jstinteractive/TaobaoJstInteractiveTaskQueryAPIResponse.go delete mode 100644 model/jstinteractive/TaobaoJstInteractiveTaskQueryResponse.go create mode 100644 model/jstinteractive/TaobaoJstInteractiveTaskRegisterAPIRequest.go create mode 100644 model/jstinteractive/TaobaoJstInteractiveTaskRegisterAPIResponse.go delete mode 100644 model/jstinteractive/TaobaoJstInteractiveTaskRegisterResponse.go create mode 100644 model/jstsecret/TaobaoJstSecretGetAPIRequest.go create mode 100644 model/jstsecret/TaobaoJstSecretGetAPIResponse.go delete mode 100644 model/jstsecret/TaobaoJstSecretGetResponse.go create mode 100644 model/ju/TaobaoJuItemsSearchAPIRequest.go create mode 100644 model/ju/TaobaoJuItemsSearchAPIResponse.go delete mode 100644 model/ju/TaobaoJuItemsSearchResponse.go create mode 100644 model/jym/AlibabaJymRequirementOrdersOperationNotifyAPIRequest.go create mode 100644 model/jym/AlibabaJymRequirementOrdersOperationNotifyAPIResponse.go delete mode 100644 model/jym/AlibabaJymRequirementOrdersOperationNotifyResponse.go create mode 100644 model/jym/AlibabaJymRequirementOrdersOperationNotifyResultDto.go create mode 100644 model/jym/AlibabaJymRequirementsReceiveAPIRequest.go create mode 100644 model/jym/AlibabaJymRequirementsReceiveAPIResponse.go delete mode 100644 model/jym/AlibabaJymRequirementsReceiveResponse.go create mode 100644 model/jym/AlibabaJymRequirementsReceiveResultDto.go create mode 100644 model/jym/TaobaoJymMemberRealnameVerifyWithoutuidAPIRequest.go create mode 100644 model/jym/TaobaoJymMemberRealnameVerifyWithoutuidAPIResponse.go delete mode 100644 model/jym/TaobaoJymMemberRealnameVerifyWithoutuidResponse.go create mode 100644 model/jym/TaobaoJymMemberRealnameVerifyWithoutuidResultDto.go create mode 100644 model/kbalgo/AlibabaKbalgoAlscpoisGetAPIRequest.go create mode 100644 model/kbalgo/AlibabaKbalgoAlscpoisGetAPIResponse.go delete mode 100644 model/kbalgo/AlibabaKbalgoAlscpoisGetResponse.go create mode 100644 model/kclub/AlibabaKclubKcGetcategorytreeAPIRequest.go create mode 100644 model/kclub/AlibabaKclubKcGetcategorytreeAPIResponse.go delete mode 100644 model/kclub/AlibabaKclubKcGetcategorytreeResponse.go create mode 100644 model/kclub/AlibabaKclubKcQaGetAPIRequest.go create mode 100644 model/kclub/AlibabaKclubKcQaGetAPIResponse.go delete mode 100644 model/kclub/AlibabaKclubKcQaGetResponse.go create mode 100644 model/kclub/AlibabaKclubKcQaSearchAPIRequest.go create mode 100644 model/kclub/AlibabaKclubKcQaSearchAPIResponse.go create mode 100644 model/kclub/AlibabaKclubKcQaSearchPageAPIRequest.go create mode 100644 model/kclub/AlibabaKclubKcQaSearchPageAPIResponse.go delete mode 100644 model/kclub/AlibabaKclubKcQaSearchPageResponse.go delete mode 100644 model/kclub/AlibabaKclubKcQaSearchResponse.go create mode 100644 model/kclub/AlibabaKclubKcQueryknowledgeAPIRequest.go create mode 100644 model/kclub/AlibabaKclubKcQueryknowledgeAPIResponse.go delete mode 100644 model/kclub/AlibabaKclubKcQueryknowledgeResponse.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonItemDetailQueryAPIRequest.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonItemDetailQueryAPIResponse.go delete mode 100644 model/koubeimall/TaobaoKoubeiMallCommonItemDetailQueryResponse.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonItemShelfPageAPIRequest.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonItemShelfPageAPIResponse.go delete mode 100644 model/koubeimall/TaobaoKoubeiMallCommonItemShelfPageResponse.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonItemSuperDiscountListAPIResponse.go delete mode 100644 model/koubeimall/TaobaoKoubeiMallCommonItemSuperDiscountListResponse.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonMallAuthPageAPIRequest.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonMallAuthPageAPIResponse.go delete mode 100644 model/koubeimall/TaobaoKoubeiMallCommonMallAuthPageResponse.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonMallDetailGetAPIRequest.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonMallDetailGetAPIResponse.go delete mode 100644 model/koubeimall/TaobaoKoubeiMallCommonMallDetailGetResponse.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonMallNearListAPIRequest.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonMallNearListAPIResponse.go delete mode 100644 model/koubeimall/TaobaoKoubeiMallCommonMallNearListResponse.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonStoreCommentPageAPIRequest.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonStoreCommentPageAPIResponse.go delete mode 100644 model/koubeimall/TaobaoKoubeiMallCommonStoreCommentPageResponse.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonStoreDetailQueryAPIResponse.go delete mode 100644 model/koubeimall/TaobaoKoubeiMallCommonStoreDetailQueryResponse.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIResponse.go delete mode 100644 model/koubeimall/TaobaoKoubeiMallCommonStoreDisplayGoodsListResponse.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonStorePageAPIRequest.go create mode 100644 model/koubeimall/TaobaoKoubeiMallCommonStorePageAPIResponse.go delete mode 100644 model/koubeimall/TaobaoKoubeiMallCommonStorePageResponse.go create mode 100644 model/larkiot/TaobaoLarkIotOrderConfirmorderAPIRequest.go create mode 100644 model/larkiot/TaobaoLarkIotOrderConfirmorderAPIResponse.go delete mode 100644 model/larkiot/TaobaoLarkIotOrderConfirmorderResponse.go create mode 100644 model/larkiot/TaobaoLarkIotOrderGetcinemasAPIRequest.go create mode 100644 model/larkiot/TaobaoLarkIotOrderGetcinemasAPIResponse.go delete mode 100644 model/larkiot/TaobaoLarkIotOrderGetcinemasResponse.go create mode 100644 model/larkiot/TaobaoLarkIotOrderGetgoodslistAPIRequest.go create mode 100644 model/larkiot/TaobaoLarkIotOrderGetgoodslistAPIResponse.go delete mode 100644 model/larkiot/TaobaoLarkIotOrderGetgoodslistResponse.go create mode 100644 model/larkiot/TaobaoLarkPosBasedataGetworkstationAPIRequest.go create mode 100644 model/larkiot/TaobaoLarkPosBasedataGetworkstationAPIResponse.go delete mode 100644 model/larkiot/TaobaoLarkPosBasedataGetworkstationResponse.go create mode 100644 model/lbs/TaobaoLbsMessageUploadAPIRequest.go create mode 100644 model/lbs/TaobaoLbsMessageUploadAPIResponse.go delete mode 100644 model/lbs/TaobaoLbsMessageUploadResponse.go create mode 100644 model/legalcase/AlibabaLegalCaseCommonEnumdataAPIRequest.go create mode 100644 model/legalcase/AlibabaLegalCaseCommonEnumdataAPIResponse.go delete mode 100644 model/legalcase/AlibabaLegalCaseCommonEnumdataResponse.go create mode 100644 model/legalcase/AlibabaLegalCaseCommonNoticeAPIRequest.go create mode 100644 model/legalcase/AlibabaLegalCaseCommonNoticeAPIResponse.go delete mode 100644 model/legalcase/AlibabaLegalCaseCommonNoticeResponse.go create mode 100644 model/legalcase/AlibabaLegalCaseCourtTimeUpdateAPIRequest.go create mode 100644 model/legalcase/AlibabaLegalCaseCourtTimeUpdateAPIResponse.go delete mode 100644 model/legalcase/AlibabaLegalCaseCourtTimeUpdateResponse.go create mode 100644 model/legalcase/AlibabaLegalCaseEntrustCallbackAPIRequest.go create mode 100644 model/legalcase/AlibabaLegalCaseEntrustCallbackAPIResponse.go delete mode 100644 model/legalcase/AlibabaLegalCaseEntrustCallbackResponse.go create mode 100644 model/legalcase/AlibabaLegalCaseEntrustGetAPIRequest.go create mode 100644 model/legalcase/AlibabaLegalCaseEntrustGetAPIResponse.go delete mode 100644 model/legalcase/AlibabaLegalCaseEntrustGetResponse.go create mode 100644 model/legalcase/AlibabaLegalCaseMediateRecordSaveAPIRequest.go create mode 100644 model/legalcase/AlibabaLegalCaseMediateRecordSaveAPIResponse.go delete mode 100644 model/legalcase/AlibabaLegalCaseMediateRecordSaveResponse.go create mode 100644 model/legalcase/AlibabaLegalCaseStandpointFeedbackAPIRequest.go create mode 100644 model/legalcase/AlibabaLegalCaseStandpointFeedbackAPIResponse.go delete mode 100644 model/legalcase/AlibabaLegalCaseStandpointFeedbackResponse.go create mode 100644 model/legalcase/AlibabaLegalCaseStandpointQueryrefAPIRequest.go create mode 100644 model/legalcase/AlibabaLegalCaseStandpointQueryrefAPIResponse.go delete mode 100644 model/legalcase/AlibabaLegalCaseStandpointQueryrefResponse.go create mode 100644 model/legalcase/AlibabaLegalCaseStandpointSavestandpointAPIRequest.go create mode 100644 model/legalcase/AlibabaLegalCaseStandpointSavestandpointAPIResponse.go delete mode 100644 model/legalcase/AlibabaLegalCaseStandpointSavestandpointResponse.go create mode 100644 model/legalcase/AlibabaLegalSuitFileUploadAPIRequest.go create mode 100644 model/legalcase/AlibabaLegalSuitFileUploadAPIResponse.go delete mode 100644 model/legalcase/AlibabaLegalSuitFileUploadResponse.go create mode 100644 model/legalsuit/AlibabaLegalSuitCaseGetAPIRequest.go create mode 100644 model/legalsuit/AlibabaLegalSuitCaseGetAPIResponse.go delete mode 100644 model/legalsuit/AlibabaLegalSuitCaseGetResponse.go create mode 100644 model/legalsuit/AlibabaLegalSuitCourtAfterPushAPIRequest.go create mode 100644 model/legalsuit/AlibabaLegalSuitCourtAfterPushAPIResponse.go delete mode 100644 model/legalsuit/AlibabaLegalSuitCourtAfterPushResponse.go create mode 100644 model/legalsuit/AlibabaLegalSuitCourtBeforePushAPIRequest.go create mode 100644 model/legalsuit/AlibabaLegalSuitCourtBeforePushAPIResponse.go delete mode 100644 model/legalsuit/AlibabaLegalSuitCourtBeforePushResponse.go create mode 100644 model/legalsuit/AlibabaLegalSuitCourtEntrustGetAPIRequest.go create mode 100644 model/legalsuit/AlibabaLegalSuitCourtEntrustGetAPIResponse.go delete mode 100644 model/legalsuit/AlibabaLegalSuitCourtEntrustGetResponse.go create mode 100644 model/legalsuit/AlibabaLegalSuitCourtLawyerPushAPIRequest.go create mode 100644 model/legalsuit/AlibabaLegalSuitCourtLawyerPushAPIResponse.go delete mode 100644 model/legalsuit/AlibabaLegalSuitCourtLawyerPushResponse.go create mode 100644 model/legalsuit/AlibabaLegalSuitCourtOpenPushAPIRequest.go create mode 100644 model/legalsuit/AlibabaLegalSuitCourtOpenPushAPIResponse.go delete mode 100644 model/legalsuit/AlibabaLegalSuitCourtOpenPushResponse.go create mode 100644 model/legalsuit/AlibabaLegalSuitDominationPushAPIRequest.go create mode 100644 model/legalsuit/AlibabaLegalSuitDominationPushAPIResponse.go delete mode 100644 model/legalsuit/AlibabaLegalSuitDominationPushResponse.go create mode 100644 model/legalsuit/AlibabaLegalSuitJudgementGetAPIRequest.go create mode 100644 model/legalsuit/AlibabaLegalSuitJudgementGetAPIResponse.go delete mode 100644 model/legalsuit/AlibabaLegalSuitJudgementGetResponse.go create mode 100644 model/legalsuit/AlibabaLegalSuitJudgementPushAPIRequest.go create mode 100644 model/legalsuit/AlibabaLegalSuitJudgementPushAPIResponse.go delete mode 100644 model/legalsuit/AlibabaLegalSuitJudgementPushResponse.go create mode 100644 model/lifeservice/TaobaoPlaceStoreRelationAddAPIRequest.go create mode 100644 model/lifeservice/TaobaoPlaceStoreRelationAddAPIResponse.go delete mode 100644 model/lifeservice/TaobaoPlaceStoreRelationAddResponse.go create mode 100644 model/logistic/AlibabaAlihealthNrDeliveryHistorySaveAPIRequest.go create mode 100644 model/logistic/AlibabaAlihealthNrDeliveryHistorySaveAPIResponse.go delete mode 100644 model/logistic/AlibabaAlihealthNrDeliveryHistorySaveResponse.go create mode 100644 model/logistic/AlibabaAlinkMessageHistoryActionAPIRequest.go create mode 100644 model/logistic/AlibabaAlinkMessageHistoryActionAPIResponse.go delete mode 100644 model/logistic/AlibabaAlinkMessageHistoryActionResponse.go create mode 100644 model/logistic/AlibabaAscpLogisticsConsignResendAPIRequest.go create mode 100644 model/logistic/AlibabaAscpLogisticsConsignResendAPIResponse.go delete mode 100644 model/logistic/AlibabaAscpLogisticsConsignResendResponse.go create mode 100644 model/logistic/AlibabaAscpLogisticsConsignResendResultDto.go create mode 100644 model/logistic/AlibabaAscpLogisticsOfflineSendAPIRequest.go create mode 100644 model/logistic/AlibabaAscpLogisticsOfflineSendAPIResponse.go delete mode 100644 model/logistic/AlibabaAscpLogisticsOfflineSendResponse.go create mode 100644 model/logistic/AlibabaAscpLogisticsOfflineSendResultDto.go create mode 100644 model/logistic/AlibabaEleFengniaoCancelMerchantAPIRequest.go create mode 100644 model/logistic/AlibabaEleFengniaoCancelMerchantAPIResponse.go delete mode 100644 model/logistic/AlibabaEleFengniaoCancelMerchantResponse.go create mode 100644 model/logistic/AlibabaEleFengniaoCarrierCapacityQueryAPIRequest.go create mode 100644 model/logistic/AlibabaEleFengniaoCarrierCapacityQueryAPIResponse.go delete mode 100644 model/logistic/AlibabaEleFengniaoCarrierCapacityQueryResponse.go create mode 100644 model/logistic/AlibabaEleFengniaoCarrierdriverLocationAPIRequest.go create mode 100644 model/logistic/AlibabaEleFengniaoCarrierdriverLocationAPIResponse.go delete mode 100644 model/logistic/AlibabaEleFengniaoCarrierdriverLocationResponse.go create mode 100644 model/logistic/AlibabaEleFengniaoChainstoreContractCancelAPIRequest.go create mode 100644 model/logistic/AlibabaEleFengniaoChainstoreContractCancelAPIResponse.go delete mode 100644 model/logistic/AlibabaEleFengniaoChainstoreContractCancelResponse.go create mode 100644 model/logistic/AlibabaEleFengniaoChainstoreContractChangeAPIRequest.go create mode 100644 model/logistic/AlibabaEleFengniaoChainstoreContractChangeAPIResponse.go delete mode 100644 model/logistic/AlibabaEleFengniaoChainstoreContractChangeResponse.go create mode 100644 model/logistic/AlibabaEleFengniaoChainstoreRangesAPIRequest.go create mode 100644 model/logistic/AlibabaEleFengniaoChainstoreRangesAPIResponse.go delete mode 100644 model/logistic/AlibabaEleFengniaoChainstoreRangesResponse.go create mode 100644 model/logistic/AlibabaEleFengniaoChainstoreUpdateAPIRequest.go create mode 100644 model/logistic/AlibabaEleFengniaoChainstoreUpdateAPIResponse.go delete mode 100644 model/logistic/AlibabaEleFengniaoChainstoreUpdateResponse.go create mode 100644 model/logistic/AlibabaEleFengniaoMerchantContractCancelAPIRequest.go create mode 100644 model/logistic/AlibabaEleFengniaoMerchantContractCancelAPIResponse.go delete mode 100644 model/logistic/AlibabaEleFengniaoMerchantContractCancelResponse.go create mode 100644 model/logistic/AlibabaEleFengniaoOrderPushAPIRequest.go create mode 100644 model/logistic/AlibabaEleFengniaoOrderPushAPIResponse.go delete mode 100644 model/logistic/AlibabaEleFengniaoOrderPushResponse.go create mode 100644 model/logistic/AlibabaEleFengniaoOrderQueryAPIRequest.go create mode 100644 model/logistic/AlibabaEleFengniaoOrderQueryAPIResponse.go delete mode 100644 model/logistic/AlibabaEleFengniaoOrderQueryResponse.go create mode 100644 model/logistic/AlibabaEleFengniaoServicePackageQueryAPIRequest.go create mode 100644 model/logistic/AlibabaEleFengniaoServicePackageQueryAPIResponse.go delete mode 100644 model/logistic/AlibabaEleFengniaoServicePackageQueryResponse.go create mode 100644 model/logistic/AlibabaEleFengniaoShippingorderEventAPIRequest.go create mode 100644 model/logistic/AlibabaEleFengniaoShippingorderEventAPIResponse.go delete mode 100644 model/logistic/AlibabaEleFengniaoShippingorderEventResponse.go create mode 100644 model/logistic/AlibabaEleFengniaoTradeUpdateAPIRequest.go create mode 100644 model/logistic/AlibabaEleFengniaoTradeUpdateAPIResponse.go delete mode 100644 model/logistic/AlibabaEleFengniaoTradeUpdateResponse.go create mode 100644 model/logistic/AlibabaEleFengniaoUserTimeQueryAPIRequest.go create mode 100644 model/logistic/AlibabaEleFengniaoUserTimeQueryAPIResponse.go delete mode 100644 model/logistic/AlibabaEleFengniaoUserTimeQueryResponse.go create mode 100644 model/logistic/AlibabaTclsFulfillQaOrderCreateAPIRequest.go create mode 100644 model/logistic/AlibabaTclsFulfillQaOrderCreateAPIResponse.go delete mode 100644 model/logistic/AlibabaTclsFulfillQaOrderCreateResponse.go create mode 100644 model/logistic/CainiaoCbossWorkplatformBiztypeQueryallAPIRequest.go create mode 100644 model/logistic/CainiaoCbossWorkplatformBiztypeQueryallAPIResponse.go delete mode 100644 model/logistic/CainiaoCbossWorkplatformBiztypeQueryallResponse.go create mode 100644 model/logistic/CainiaoCbossWorkplatformBiztypeQuerybyidAPIRequest.go create mode 100644 model/logistic/CainiaoCbossWorkplatformBiztypeQuerybyidAPIResponse.go delete mode 100644 model/logistic/CainiaoCbossWorkplatformBiztypeQuerybyidResponse.go create mode 100644 model/logistic/CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIRequest.go create mode 100644 model/logistic/CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIResponse.go delete mode 100644 model/logistic/CainiaoCbossWorkplatformLogisticsIscainiaoorderResponse.go create mode 100644 model/logistic/CainiaoCbossWorkplatformOperationReplyAPIRequest.go create mode 100644 model/logistic/CainiaoCbossWorkplatformOperationReplyAPIResponse.go delete mode 100644 model/logistic/CainiaoCbossWorkplatformOperationReplyResponse.go create mode 100644 model/logistic/CainiaoCbossWorkplatformWorkorderCreateAPIRequest.go create mode 100644 model/logistic/CainiaoCbossWorkplatformWorkorderCreateAPIResponse.go delete mode 100644 model/logistic/CainiaoCbossWorkplatformWorkorderCreateResponse.go create mode 100644 model/logistic/CainiaoCbossWorkplatformWorkorderProcessNotifyAPIRequest.go create mode 100644 model/logistic/CainiaoCbossWorkplatformWorkorderProcessNotifyAPIResponse.go delete mode 100644 model/logistic/CainiaoCbossWorkplatformWorkorderProcessNotifyResponse.go create mode 100644 model/logistic/CainiaoCbossWorkplatformWorkorderTaskNotifyAPIRequest.go create mode 100644 model/logistic/CainiaoCbossWorkplatformWorkorderTaskNotifyAPIResponse.go delete mode 100644 model/logistic/CainiaoCbossWorkplatformWorkorderTaskNotifyResponse.go create mode 100644 model/logistic/CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest.go create mode 100644 model/logistic/CainiaoDataLogisticsCpDeliveryAgingPredictAPIResponse.go delete mode 100644 model/logistic/CainiaoDataLogisticsCpDeliveryAgingPredictResponse.go create mode 100644 model/logistic/CainiaoDataLogisticsDeliveryAgingPredictAPIRequest.go create mode 100644 model/logistic/CainiaoDataLogisticsDeliveryAgingPredictAPIResponse.go delete mode 100644 model/logistic/CainiaoDataLogisticsDeliveryAgingPredictResponse.go create mode 100644 model/logistic/CainiaoMemberCourierCpresignAPIRequest.go create mode 100644 model/logistic/CainiaoMemberCourierCpresignAPIResponse.go delete mode 100644 model/logistic/CainiaoMemberCourierCpresignResponse.go create mode 100644 model/logistic/CainiaoReachableBatchjudgeAPIRequest.go create mode 100644 model/logistic/CainiaoReachableBatchjudgeAPIResponse.go delete mode 100644 model/logistic/CainiaoReachableBatchjudgeResponse.go create mode 100644 model/logistic/TaobaoAreasGetAPIRequest.go create mode 100644 model/logistic/TaobaoAreasGetAPIResponse.go delete mode 100644 model/logistic/TaobaoAreasGetResponse.go create mode 100644 model/logistic/TaobaoDeliveryTemplateAddAPIRequest.go create mode 100644 model/logistic/TaobaoDeliveryTemplateAddAPIResponse.go delete mode 100644 model/logistic/TaobaoDeliveryTemplateAddResponse.go create mode 100644 model/logistic/TaobaoDeliveryTemplateDeleteAPIRequest.go create mode 100644 model/logistic/TaobaoDeliveryTemplateDeleteAPIResponse.go delete mode 100644 model/logistic/TaobaoDeliveryTemplateDeleteResponse.go create mode 100644 model/logistic/TaobaoDeliveryTemplateGetAPIRequest.go create mode 100644 model/logistic/TaobaoDeliveryTemplateGetAPIResponse.go delete mode 100644 model/logistic/TaobaoDeliveryTemplateGetResponse.go create mode 100644 model/logistic/TaobaoDeliveryTemplateUpdateAPIRequest.go create mode 100644 model/logistic/TaobaoDeliveryTemplateUpdateAPIResponse.go delete mode 100644 model/logistic/TaobaoDeliveryTemplateUpdateResponse.go create mode 100644 model/logistic/TaobaoDeliveryTemplatesGetAPIRequest.go create mode 100644 model/logistic/TaobaoDeliveryTemplatesGetAPIResponse.go delete mode 100644 model/logistic/TaobaoDeliveryTemplatesGetResponse.go create mode 100644 model/logistic/TaobaoLogisticsAddressAddAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsAddressAddAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsAddressAddResponse.go create mode 100644 model/logistic/TaobaoLogisticsAddressModifyAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsAddressModifyAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsAddressModifyResponse.go create mode 100644 model/logistic/TaobaoLogisticsAddressReachableAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsAddressReachableAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsAddressReachableResponse.go create mode 100644 model/logistic/TaobaoLogisticsAddressReachablebatchGetAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsAddressReachablebatchGetAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsAddressReachablebatchGetResponse.go create mode 100644 model/logistic/TaobaoLogisticsAddressRemoveAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsAddressRemoveAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsAddressRemoveResponse.go create mode 100644 model/logistic/TaobaoLogisticsAddressSearchAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsAddressSearchAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsAddressSearchResponse.go create mode 100644 model/logistic/TaobaoLogisticsCompaniesGetAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsCompaniesGetAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsCompaniesGetResponse.go create mode 100644 model/logistic/TaobaoLogisticsConsignOrderCreateandsendAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsConsignOrderCreateandsendAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsConsignOrderCreateandsendResponse.go create mode 100644 model/logistic/TaobaoLogisticsConsignResendAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsConsignResendAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsConsignResendResponse.go create mode 100644 model/logistic/TaobaoLogisticsConsignTcConfirmAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsConsignTcConfirmAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsConsignTcConfirmResponse.go create mode 100644 model/logistic/TaobaoLogisticsDummySendAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsDummySendAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsDummySendResponse.go create mode 100644 model/logistic/TaobaoLogisticsExpressModifyAppointAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsExpressModifyAppointAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsExpressModifyAppointResponse.go create mode 100644 model/logistic/TaobaoLogisticsOfflineSendAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsOfflineSendAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsOfflineSendResponse.go create mode 100644 model/logistic/TaobaoLogisticsOnlineCancelAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsOnlineCancelAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsOnlineCancelResponse.go create mode 100644 model/logistic/TaobaoLogisticsOnlineConfirmAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsOnlineConfirmAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsOnlineConfirmResponse.go create mode 100644 model/logistic/TaobaoLogisticsOnlineSendAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsOnlineSendAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsOnlineSendResponse.go create mode 100644 model/logistic/TaobaoLogisticsOrderCreateAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsOrderCreateAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsOrderCreateResponse.go create mode 100644 model/logistic/TaobaoLogisticsOrderShengxianConfirmAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsOrderShengxianConfirmAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsOrderShengxianConfirmResponse.go create mode 100644 model/logistic/TaobaoLogisticsOrdersDetailGetAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsOrdersDetailGetAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsOrdersDetailGetResponse.go create mode 100644 model/logistic/TaobaoLogisticsOrdersGetAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsOrdersGetAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsOrdersGetResponse.go create mode 100644 model/logistic/TaobaoLogisticsPartnersGetAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsPartnersGetAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsPartnersGetResponse.go create mode 100644 model/logistic/TaobaoLogisticsTraceSearchAPIRequest.go create mode 100644 model/logistic/TaobaoLogisticsTraceSearchAPIResponse.go delete mode 100644 model/logistic/TaobaoLogisticsTraceSearchResponse.go create mode 100644 model/logistic/TaobaoNextoneLogisticsSignUpdateAPIRequest.go create mode 100644 model/logistic/TaobaoNextoneLogisticsSignUpdateAPIResponse.go delete mode 100644 model/logistic/TaobaoNextoneLogisticsSignUpdateResponse.go create mode 100644 model/logistic/TaobaoNextoneLogisticsWarehouseUpdateAPIRequest.go create mode 100644 model/logistic/TaobaoNextoneLogisticsWarehouseUpdateAPIResponse.go delete mode 100644 model/logistic/TaobaoNextoneLogisticsWarehouseUpdateResponse.go create mode 100644 model/logistic/TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIRequest.go create mode 100644 model/logistic/TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIResponse.go delete mode 100644 model/logistic/TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostResponse.go create mode 100644 model/logistic/TaobaoRdcAligeniusWarehouseResendUpdateAPIRequest.go create mode 100644 model/logistic/TaobaoRdcAligeniusWarehouseResendUpdateAPIResponse.go delete mode 100644 model/logistic/TaobaoRdcAligeniusWarehouseResendUpdateResponse.go create mode 100644 model/logistic/TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIRequest.go create mode 100644 model/logistic/TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIResponse.go delete mode 100644 model/logistic/TaobaoRdcAligeniusWarehouseReverseEventUpdateResponse.go create mode 100644 model/logistic/TaobaoRdcAligeniusWarehouseReverseUploadingAPIRequest.go create mode 100644 model/logistic/TaobaoRdcAligeniusWarehouseReverseUploadingAPIResponse.go delete mode 100644 model/logistic/TaobaoRdcAligeniusWarehouseReverseUploadingResponse.go create mode 100644 model/logistic/TaobaoWlbImportThreeplOfflineConsignAPIRequest.go create mode 100644 model/logistic/TaobaoWlbImportThreeplOfflineConsignAPIResponse.go delete mode 100644 model/logistic/TaobaoWlbImportThreeplOfflineConsignResponse.go create mode 100644 model/logistic/TaobaoWlbImportThreeplResourceGetAPIRequest.go create mode 100644 model/logistic/TaobaoWlbImportThreeplResourceGetAPIResponse.go delete mode 100644 model/logistic/TaobaoWlbImportThreeplResourceGetResponse.go create mode 100644 model/logistic/TaobaoWlbOrderJzConsignAPIRequest.go create mode 100644 model/logistic/TaobaoWlbOrderJzConsignAPIResponse.go delete mode 100644 model/logistic/TaobaoWlbOrderJzConsignResponse.go create mode 100644 model/logistic/TaobaoWlbOrderJzQueryAPIRequest.go create mode 100644 model/logistic/TaobaoWlbOrderJzQueryAPIResponse.go delete mode 100644 model/logistic/TaobaoWlbOrderJzQueryResponse.go create mode 100644 model/logistic/TaobaoWlbStoresBaseinfoGetAPIRequest.go create mode 100644 model/logistic/TaobaoWlbStoresBaseinfoGetAPIResponse.go delete mode 100644 model/logistic/TaobaoWlbStoresBaseinfoGetResponse.go create mode 100644 model/logistic/TaobaoWmsOrderWarehouseRouteGetAPIRequest.go create mode 100644 model/logistic/TaobaoWmsOrderWarehouseRouteGetAPIResponse.go delete mode 100644 model/logistic/TaobaoWmsOrderWarehouseRouteGetResponse.go create mode 100644 model/logistic/WdkLogisticNetworkResourceGroupQueryAPIRequest.go create mode 100644 model/logistic/WdkLogisticNetworkResourceGroupQueryAPIResponse.go delete mode 100644 model/logistic/WdkLogisticNetworkResourceGroupQueryResponse.go create mode 100644 model/logistic/WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIRequest.go create mode 100644 model/logistic/WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIResponse.go delete mode 100644 model/logistic/WdkLogisticNetworkWarehouseDeliveryRelationQueryResponse.go create mode 100644 model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIRequest.go create mode 100644 model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIResponse.go delete mode 100644 model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryFromResponse.go create mode 100644 model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIRequest.go create mode 100644 model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIResponse.go delete mode 100644 model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryToCodesResponse.go create mode 100644 model/lstbm/AlibabaLstBmStoreAddAPIRequest.go create mode 100644 model/lstbm/AlibabaLstBmStoreAddAPIResponse.go delete mode 100644 model/lstbm/AlibabaLstBmStoreAddResponse.go create mode 100644 model/lstbm/AlibabaLstBmStoreEmpSaveAPIRequest.go create mode 100644 model/lstbm/AlibabaLstBmStoreEmpSaveAPIResponse.go delete mode 100644 model/lstbm/AlibabaLstBmStoreEmpSaveResponse.go create mode 100644 model/lstbm/AlibabaLstBmStoreUpdateAPIRequest.go create mode 100644 model/lstbm/AlibabaLstBmStoreUpdateAPIResponse.go delete mode 100644 model/lstbm/AlibabaLstBmStoreUpdateResponse.go create mode 100644 model/lstfundbill/AlibabaLstTradeOrderFundbillQueryAPIRequest.go create mode 100644 model/lstfundbill/AlibabaLstTradeOrderFundbillQueryAPIResponse.go delete mode 100644 model/lstfundbill/AlibabaLstTradeOrderFundbillQueryResponse.go create mode 100644 model/lstfundbill/AlibabaLstTradeSellerOrderFundbillListQueryAPIRequest.go create mode 100644 model/lstfundbill/AlibabaLstTradeSellerOrderFundbillListQueryAPIResponse.go delete mode 100644 model/lstfundbill/AlibabaLstTradeSellerOrderFundbillListQueryResponse.go create mode 100644 model/lsticitem/AlibabaLstIcItemInfoQueryAPIRequest.go create mode 100644 model/lsticitem/AlibabaLstIcItemInfoQueryAPIResponse.go delete mode 100644 model/lsticitem/AlibabaLstIcItemInfoQueryResponse.go create mode 100644 model/lstlogistics/AlibabaLstLogisticsSendinfoQueryAPIRequest.go create mode 100644 model/lstlogistics/AlibabaLstLogisticsSendinfoQueryAPIResponse.go delete mode 100644 model/lstlogistics/AlibabaLstLogisticsSendinfoQueryResponse.go create mode 100644 model/lstlogistics/AlibabaLstLogisticsThirdpartCompanyListAPIRequest.go create mode 100644 model/lstlogistics/AlibabaLstLogisticsThirdpartCompanyListAPIResponse.go delete mode 100644 model/lstlogistics/AlibabaLstLogisticsThirdpartCompanyListResponse.go create mode 100644 model/lstlogistics/AlibabaLstLogisticsThirdpartSendAPIRequest.go create mode 100644 model/lstlogistics/AlibabaLstLogisticsThirdpartSendAPIResponse.go delete mode 100644 model/lstlogistics/AlibabaLstLogisticsThirdpartSendResponse.go create mode 100644 model/lstlogistics/AlibabaLstLogisticsTraceQueryAPIRequest.go create mode 100644 model/lstlogistics/AlibabaLstLogisticsTraceQueryAPIResponse.go delete mode 100644 model/lstlogistics/AlibabaLstLogisticsTraceQueryResponse.go create mode 100644 model/lstlogistics/AlibabaLstShiporderCancelAPIRequest.go create mode 100644 model/lstlogistics/AlibabaLstShiporderCancelAPIResponse.go delete mode 100644 model/lstlogistics/AlibabaLstShiporderCancelResponse.go create mode 100644 model/lstlogistics/AlibabaLstShiporderCreateAPIRequest.go create mode 100644 model/lstlogistics/AlibabaLstShiporderCreateAPIResponse.go delete mode 100644 model/lstlogistics/AlibabaLstShiporderCreateResponse.go create mode 100644 model/lstlogistics/AlibabaLstShiporderQueryAPIRequest.go create mode 100644 model/lstlogistics/AlibabaLstShiporderQueryAPIResponse.go delete mode 100644 model/lstlogistics/AlibabaLstShiporderQueryResponse.go create mode 100644 model/lstlogistics2/AlibabaLstLogisticsNotraceSendAPIRequest.go create mode 100644 model/lstlogistics2/AlibabaLstLogisticsNotraceSendAPIResponse.go delete mode 100644 model/lstlogistics2/AlibabaLstLogisticsNotraceSendResponse.go create mode 100644 model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderCancelAPIRequest.go create mode 100644 model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderCancelAPIResponse.go delete mode 100644 model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderCancelResponse.go create mode 100644 model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderQueryAPIRequest.go create mode 100644 model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderQueryAPIResponse.go delete mode 100644 model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderQueryResponse.go create mode 100644 model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderUploadAPIRequest.go create mode 100644 model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderUploadAPIResponse.go delete mode 100644 model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderUploadResponse.go create mode 100644 model/lstmarketing/AlibabaLstMarketingQuerybyorderidAPIRequest.go create mode 100644 model/lstmarketing/AlibabaLstMarketingQuerybyorderidAPIResponse.go delete mode 100644 model/lstmarketing/AlibabaLstMarketingQuerybyorderidResponse.go create mode 100644 model/lstmarketing/AlibabaLstMarketingQuerybyorderidResultDto.go create mode 100644 model/lstpos/AlibabaLstPosOpenAccountCheckissettledAPIRequest.go create mode 100644 model/lstpos/AlibabaLstPosOpenAccountCheckissettledAPIResponse.go delete mode 100644 model/lstpos/AlibabaLstPosOpenAccountCheckissettledResponse.go create mode 100644 model/lstpos/AlibabaLstPosOpenAccountCheckissettledResultDto.go create mode 100644 model/lstpos/AlibabaLstPosOpenCashierSynccashierdataAPIRequest.go create mode 100644 model/lstpos/AlibabaLstPosOpenCashierSynccashierdataAPIResponse.go delete mode 100644 model/lstpos/AlibabaLstPosOpenCashierSynccashierdataResponse.go create mode 100644 model/lstpos/AlibabaLstPosOpenCashierSynccashierdataResultDto.go create mode 100644 model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIRequest.go create mode 100644 model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIResponse.go delete mode 100644 model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbybarcodeResponse.go create mode 100644 model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbybarcodeResultDto.go create mode 100644 model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbypagingAPIRequest.go create mode 100644 model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbypagingAPIResponse.go delete mode 100644 model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbypagingResponse.go create mode 100644 model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbypagingResultDto.go create mode 100644 model/lstpos/AlibabaLstPosOpenGoodsSyncgoodsdataAPIRequest.go create mode 100644 model/lstpos/AlibabaLstPosOpenGoodsSyncgoodsdataAPIResponse.go delete mode 100644 model/lstpos/AlibabaLstPosOpenGoodsSyncgoodsdataResponse.go create mode 100644 model/lstpos/AlibabaLstPosOpenGoodsSyncgoodsdataResultDto.go create mode 100644 model/lstpos/AlibabaLstPosOpenInventoryGetinventorydataAPIRequest.go create mode 100644 model/lstpos/AlibabaLstPosOpenInventoryGetinventorydataAPIResponse.go delete mode 100644 model/lstpos/AlibabaLstPosOpenInventoryGetinventorydataResponse.go create mode 100644 model/lstpos/AlibabaLstPosOpenInventoryGetinventorydataResultDto.go create mode 100644 model/lstpos/AlibabaLstPosOpenInventorySyncinventorydataAPIRequest.go create mode 100644 model/lstpos/AlibabaLstPosOpenInventorySyncinventorydataAPIResponse.go delete mode 100644 model/lstpos/AlibabaLstPosOpenInventorySyncinventorydataResponse.go create mode 100644 model/lstpos/AlibabaLstPosOpenInventorySyncinventorydataResultDto.go create mode 100644 model/lstspeacker/AlibabaLstSpeakerConfigureAPIRequest.go create mode 100644 model/lstspeacker/AlibabaLstSpeakerConfigureAPIResponse.go create mode 100644 model/lstspeacker/AlibabaLstSpeakerConfigureAdjustvolumeAPIRequest.go create mode 100644 model/lstspeacker/AlibabaLstSpeakerConfigureAdjustvolumeAPIResponse.go delete mode 100644 model/lstspeacker/AlibabaLstSpeakerConfigureAdjustvolumeResponse.go delete mode 100644 model/lstspeacker/AlibabaLstSpeakerConfigureResponse.go create mode 100644 model/lstspeacker/AlibabaLstSpeakerConfigureSetpaytimeAPIRequest.go create mode 100644 model/lstspeacker/AlibabaLstSpeakerConfigureSetpaytimeAPIResponse.go delete mode 100644 model/lstspeacker/AlibabaLstSpeakerConfigureSetpaytimeResponse.go create mode 100644 model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioAPIRequest.go create mode 100644 model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioAPIResponse.go delete mode 100644 model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioResponse.go create mode 100644 model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioadvertAPIRequest.go create mode 100644 model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioadvertAPIResponse.go delete mode 100644 model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioadvertResponse.go create mode 100644 model/lstspeacker/AlibabaLstSpeakerFileUploadAPIRequest.go create mode 100644 model/lstspeacker/AlibabaLstSpeakerFileUploadAPIResponse.go delete mode 100644 model/lstspeacker/AlibabaLstSpeakerFileUploadResponse.go create mode 100644 model/lstspeacker/AlibabaLstSpeakerFileUploadResultDto.go create mode 100644 model/lstspeacker/AlibabaLstSpeakerStatusGetAPIRequest.go create mode 100644 model/lstspeacker/AlibabaLstSpeakerStatusGetAPIResponse.go delete mode 100644 model/lstspeacker/AlibabaLstSpeakerStatusGetResponse.go create mode 100644 model/lstspeacker/AlibabaLstSpeakerStatusGetResultDto.go create mode 100644 model/lsttrade/AlibabaLstNicetuanOrderSaveAPIRequest.go create mode 100644 model/lsttrade/AlibabaLstNicetuanOrderSaveAPIResponse.go delete mode 100644 model/lsttrade/AlibabaLstNicetuanOrderSaveResponse.go create mode 100644 model/lsttrade/AlibabaLstTradeFastrefundGoodsstatusSyncAPIRequest.go create mode 100644 model/lsttrade/AlibabaLstTradeFastrefundGoodsstatusSyncAPIResponse.go delete mode 100644 model/lsttrade/AlibabaLstTradeFastrefundGoodsstatusSyncResponse.go create mode 100644 model/lsttrade/AlibabaLstTradeOrderGetAPIRequest.go create mode 100644 model/lsttrade/AlibabaLstTradeOrderGetAPIResponse.go delete mode 100644 model/lsttrade/AlibabaLstTradeOrderGetResponse.go create mode 100644 model/lsttrade/AlibabaLstTradeOrderGetResultDto.go create mode 100644 model/lsttrade/AlibabaLstTradeOrderQuerychangeAPIRequest.go create mode 100644 model/lsttrade/AlibabaLstTradeOrderQuerychangeAPIResponse.go delete mode 100644 model/lsttrade/AlibabaLstTradeOrderQuerychangeResponse.go create mode 100644 model/lsttrade/AlibabaLstTradeOrderRefundListQueryAPIRequest.go create mode 100644 model/lsttrade/AlibabaLstTradeOrderRefundListQueryAPIResponse.go delete mode 100644 model/lsttrade/AlibabaLstTradeOrderRefundListQueryResponse.go create mode 100644 model/lsttrade/AlibabaLstTradeRefundOrderGetAPIRequest.go create mode 100644 model/lsttrade/AlibabaLstTradeRefundOrderGetAPIResponse.go delete mode 100644 model/lsttrade/AlibabaLstTradeRefundOrderGetResponse.go create mode 100644 model/lsttrade/AlibabaLstTradeSellerOrderDetailQueryAPIRequest.go create mode 100644 model/lsttrade/AlibabaLstTradeSellerOrderDetailQueryAPIResponse.go delete mode 100644 model/lsttrade/AlibabaLstTradeSellerOrderDetailQueryResponse.go create mode 100644 model/lsttrade/AlibabaLstTradeSellerOrderDetailQueryResultDto.go create mode 100644 model/lsttrade/AlibabaLstTradeSellerOrderListQueryAPIRequest.go create mode 100644 model/lsttrade/AlibabaLstTradeSellerOrderListQueryAPIResponse.go delete mode 100644 model/lsttrade/AlibabaLstTradeSellerOrderListQueryResponse.go create mode 100644 model/lsttrade/AlibabaLstTradeShiporderQueryAPIRequest.go create mode 100644 model/lsttrade/AlibabaLstTradeShiporderQueryAPIResponse.go delete mode 100644 model/lsttrade/AlibabaLstTradeShiporderQueryResponse.go create mode 100644 model/lstvending/AlibabaLstVendingCargospaceSaveAPIRequest.go create mode 100644 model/lstvending/AlibabaLstVendingCargospaceSaveAPIResponse.go delete mode 100644 model/lstvending/AlibabaLstVendingCargospaceSaveResponse.go create mode 100644 model/lstvending/AlibabaLstVendingCargospaceSaveResultDto.go create mode 100644 model/lstvending/AlibabaLstVendingEquipmentQueryAPIRequest.go create mode 100644 model/lstvending/AlibabaLstVendingEquipmentQueryAPIResponse.go delete mode 100644 model/lstvending/AlibabaLstVendingEquipmentQueryResponse.go create mode 100644 model/lstvending/AlibabaLstVendingEquipmentQueryResultDto.go create mode 100644 model/lstvending/AlibabaLstVendingGoodsSaveAPIRequest.go create mode 100644 model/lstvending/AlibabaLstVendingGoodsSaveAPIResponse.go delete mode 100644 model/lstvending/AlibabaLstVendingGoodsSaveResponse.go create mode 100644 model/lstvending/AlibabaLstVendingGoodsSaveResultDto.go create mode 100644 model/lstvending/AlibabaLstVendingOrderUpdateAPIRequest.go create mode 100644 model/lstvending/AlibabaLstVendingOrderUpdateAPIResponse.go delete mode 100644 model/lstvending/AlibabaLstVendingOrderUpdateResponse.go create mode 100644 model/lstvending/AlibabaLstVendingShippingCallbackAPIRequest.go create mode 100644 model/lstvending/AlibabaLstVendingShippingCallbackAPIResponse.go delete mode 100644 model/lstvending/AlibabaLstVendingShippingCallbackResponse.go create mode 100644 model/lstvending/AlibabaLstVendingTradeflowQueryAPIRequest.go create mode 100644 model/lstvending/AlibabaLstVendingTradeflowQueryAPIResponse.go delete mode 100644 model/lstvending/AlibabaLstVendingTradeflowQueryResponse.go create mode 100644 model/lstvending/AlibabaLstVendingTradeflowQueryResultDto.go create mode 100644 model/lstvending/AlibabaLstVendingTradeflowSaveAPIRequest.go create mode 100644 model/lstvending/AlibabaLstVendingTradeflowSaveAPIResponse.go delete mode 100644 model/lstvending/AlibabaLstVendingTradeflowSaveResponse.go create mode 100644 model/lstvending/AlibabaLstVendingTradeflowSaveResultDto.go create mode 100644 model/lstvending/AlibabaLstVendngImageUploadAPIRequest.go create mode 100644 model/lstvending/AlibabaLstVendngImageUploadAPIResponse.go delete mode 100644 model/lstvending/AlibabaLstVendngImageUploadResponse.go create mode 100644 model/lstvending/AlibabaLstVendngImageUploadResultDto.go create mode 100644 model/lstwarehouse/AlibabaLstBranddatashareStockdataQueryAPIRequest.go create mode 100644 model/lstwarehouse/AlibabaLstBranddatashareStockdataQueryAPIResponse.go delete mode 100644 model/lstwarehouse/AlibabaLstBranddatashareStockdataQueryResponse.go create mode 100644 model/lstwarehouse/AlibabaLstBranddatashareSuppliersListQueryAPIRequest.go create mode 100644 model/lstwarehouse/AlibabaLstBranddatashareSuppliersListQueryAPIResponse.go delete mode 100644 model/lstwarehouse/AlibabaLstBranddatashareSuppliersListQueryResponse.go create mode 100644 model/lstwarehouse/AlibabaLstIcStockItemsUpdateAPIRequest.go create mode 100644 model/lstwarehouse/AlibabaLstIcStockItemsUpdateAPIResponse.go delete mode 100644 model/lstwarehouse/AlibabaLstIcStockItemsUpdateResponse.go create mode 100644 model/lstwarehouse/AlibabaLstTradeSellerWarehouseQueryAPIRequest.go create mode 100644 model/lstwarehouse/AlibabaLstTradeSellerWarehouseQueryAPIResponse.go delete mode 100644 model/lstwarehouse/AlibabaLstTradeSellerWarehouseQueryResponse.go create mode 100644 model/ma/TaobaoMaQrcodeCommonCreateAPIRequest.go create mode 100644 model/ma/TaobaoMaQrcodeCommonCreateAPIResponse.go delete mode 100644 model/ma/TaobaoMaQrcodeCommonCreateResponse.go create mode 100644 model/ma/TaobaoWirelessXcodeCreateAPIRequest.go create mode 100644 model/ma/TaobaoWirelessXcodeCreateAPIResponse.go delete mode 100644 model/ma/TaobaoWirelessXcodeCreateResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixDistributionCmbParamencryptAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixDistributionCmbParamencryptAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixDistributionCmbParamencryptResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixDistributionCmbQuerypayresultResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixDistributionDeliveryCalculateAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixDistributionDeliveryCalculateAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixDistributionDeliveryCalculateResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixDistributionDeliveryQueryAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixDistributionDeliveryQueryAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixDistributionDeliveryQueryResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixDistributionExchangepointQueryAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixDistributionExchangepointQueryAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixDistributionExchangepointQueryResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixEticketDistributionQueryAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixEticketDistributionQueryAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixEticketDistributionQueryResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixOpengatewayPerformStatusQueryResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixOpengatewayProjectStatusQueryResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixOrderCancelAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixOrderCancelAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixOrderCancelResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixOrderConfirmAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixOrderConfirmAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixOrderConfirmResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixOrderDirectrefundAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixOrderDirectrefundAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixOrderDirectrefundResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixOrderDistributionCreateAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixOrderDistributionCreateAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixOrderDistributionCreateResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixOrderQueryAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixOrderQueryAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixOrderQueryResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixProjectDistributionDetailQueryAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixProjectDistributionDetailQueryAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixProjectDistributionDetailQueryResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixProjectDistributionQueryAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixProjectDistributionQueryAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixProjectDistributionQueryResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixProjectDistributionQuerybypageAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixProjectDistributionQuerybypageAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixProjectDistributionQuerybypageResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixProjectDistributionQuerylistAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixProjectDistributionQuerylistAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixProjectDistributionQuerylistResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixSeatInfoQueryAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixSeatInfoQueryAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixSeatInfoQueryResponse.go create mode 100644 model/maitix/AlibabaDamaiMaitixSeatTokenQueryAPIRequest.go create mode 100644 model/maitix/AlibabaDamaiMaitixSeatTokenQueryAPIResponse.go delete mode 100644 model/maitix/AlibabaDamaiMaitixSeatTokenQueryResponse.go create mode 100644 model/mc/AliyunUnimktTaskChargeLaunchAPIRequest.go create mode 100644 model/mc/AliyunUnimktTaskChargeLaunchAPIResponse.go delete mode 100644 model/mc/AliyunUnimktTaskChargeLaunchResponse.go create mode 100644 model/mc/TmallMcDeviceCircleCheckAPIRequest.go create mode 100644 model/mc/TmallMcDeviceCircleCheckAPIResponse.go delete mode 100644 model/mc/TmallMcDeviceCircleCheckResponse.go create mode 100644 model/mc/TmallMcRecordOrderSyncAPIRequest.go create mode 100644 model/mc/TmallMcRecordOrderSyncAPIResponse.go delete mode 100644 model/mc/TmallMcRecordOrderSyncResponse.go create mode 100644 model/mc/TmallMcTaskChargeLaunchAPIRequest.go create mode 100644 model/mc/TmallMcTaskChargeLaunchAPIResponse.go delete mode 100644 model/mc/TmallMcTaskChargeLaunchResponse.go create mode 100644 model/media/TaobaoInteractiveListGetbyuserAPIRequest.go create mode 100644 model/media/TaobaoInteractiveListGetbyuserAPIResponse.go delete mode 100644 model/media/TaobaoInteractiveListGetbyuserResponse.go create mode 100644 model/media/TaobaoMediaFileAddAPIRequest.go create mode 100644 model/media/TaobaoMediaFileAddAPIResponse.go delete mode 100644 model/media/TaobaoMediaFileAddResponse.go create mode 100644 model/media/TaobaoMediaVideoListAPIRequest.go create mode 100644 model/media/TaobaoMediaVideoListAPIResponse.go delete mode 100644 model/media/TaobaoMediaVideoListResponse.go create mode 100644 model/media/TaobaoMiniappCloudPictureTokenAPIRequest.go create mode 100644 model/media/TaobaoMiniappCloudPictureTokenAPIResponse.go delete mode 100644 model/media/TaobaoMiniappCloudPictureTokenResponse.go create mode 100644 model/media/TaobaoPictureCategoryAddAPIRequest.go create mode 100644 model/media/TaobaoPictureCategoryAddAPIResponse.go delete mode 100644 model/media/TaobaoPictureCategoryAddResponse.go create mode 100644 model/media/TaobaoPictureCategoryGetAPIRequest.go create mode 100644 model/media/TaobaoPictureCategoryGetAPIResponse.go delete mode 100644 model/media/TaobaoPictureCategoryGetResponse.go create mode 100644 model/media/TaobaoPictureCategoryUpdateAPIRequest.go create mode 100644 model/media/TaobaoPictureCategoryUpdateAPIResponse.go delete mode 100644 model/media/TaobaoPictureCategoryUpdateResponse.go create mode 100644 model/media/TaobaoPictureChangecategoryAPIRequest.go create mode 100644 model/media/TaobaoPictureChangecategoryAPIResponse.go delete mode 100644 model/media/TaobaoPictureChangecategoryResponse.go create mode 100644 model/media/TaobaoPictureDeleteAPIRequest.go create mode 100644 model/media/TaobaoPictureDeleteAPIResponse.go delete mode 100644 model/media/TaobaoPictureDeleteResponse.go create mode 100644 model/media/TaobaoPictureGetAPIRequest.go create mode 100644 model/media/TaobaoPictureGetAPIResponse.go delete mode 100644 model/media/TaobaoPictureGetResponse.go create mode 100644 model/media/TaobaoPictureIsreferencedGetAPIRequest.go create mode 100644 model/media/TaobaoPictureIsreferencedGetAPIResponse.go delete mode 100644 model/media/TaobaoPictureIsreferencedGetResponse.go create mode 100644 model/media/TaobaoPicturePicturesCountAPIRequest.go create mode 100644 model/media/TaobaoPicturePicturesCountAPIResponse.go delete mode 100644 model/media/TaobaoPicturePicturesCountResponse.go create mode 100644 model/media/TaobaoPicturePicturesGetAPIRequest.go create mode 100644 model/media/TaobaoPicturePicturesGetAPIResponse.go delete mode 100644 model/media/TaobaoPicturePicturesGetResponse.go create mode 100644 model/media/TaobaoPictureReplaceAPIRequest.go create mode 100644 model/media/TaobaoPictureReplaceAPIResponse.go delete mode 100644 model/media/TaobaoPictureReplaceResponse.go create mode 100644 model/media/TaobaoPictureUpdateAPIRequest.go create mode 100644 model/media/TaobaoPictureUpdateAPIResponse.go delete mode 100644 model/media/TaobaoPictureUpdateResponse.go create mode 100644 model/media/TaobaoPictureUploadAPIRequest.go create mode 100644 model/media/TaobaoPictureUploadAPIResponse.go delete mode 100644 model/media/TaobaoPictureUploadResponse.go create mode 100644 model/media/TaobaoPictureUserinfoGetAPIRequest.go create mode 100644 model/media/TaobaoPictureUserinfoGetAPIResponse.go delete mode 100644 model/media/TaobaoPictureUserinfoGetResponse.go create mode 100644 model/media/TaobaoVasServiceGetServTimesAPIRequest.go create mode 100644 model/media/TaobaoVasServiceGetServTimesAPIResponse.go delete mode 100644 model/media/TaobaoVasServiceGetServTimesResponse.go create mode 100644 model/medicalbase/AlibabaAlihealthMedicalbaseOrderStatusSyncAPIRequest.go create mode 100644 model/medicalbase/AlibabaAlihealthMedicalbaseOrderStatusSyncAPIResponse.go delete mode 100644 model/medicalbase/AlibabaAlihealthMedicalbaseOrderStatusSyncResponse.go create mode 100644 model/mei/ResultDto.go create mode 100644 model/mei/TmallCrmMemberFrontUnbindAPIRequest.go create mode 100644 model/mei/TmallCrmMemberFrontUnbindAPIResponse.go delete mode 100644 model/mei/TmallCrmMemberFrontUnbindResponse.go create mode 100644 model/mei/TmallCrmMemberPointChangeAPIRequest.go create mode 100644 model/mei/TmallCrmMemberPointChangeAPIResponse.go delete mode 100644 model/mei/TmallCrmMemberPointChangeResponse.go create mode 100644 model/mei/TmallMeiCrmCallbackPointChangeAPIRequest.go create mode 100644 model/mei/TmallMeiCrmCallbackPointChangeAPIResponse.go delete mode 100644 model/mei/TmallMeiCrmCallbackPointChangeResponse.go create mode 100644 model/mei/TmallMeiCrmMemberGetbypaycodeAPIRequest.go create mode 100644 model/mei/TmallMeiCrmMemberGetbypaycodeAPIResponse.go delete mode 100644 model/mei/TmallMeiCrmMemberGetbypaycodeResponse.go create mode 100644 model/mei/TmallMeiCrmMemberSyncAPIRequest.go create mode 100644 model/mei/TmallMeiCrmMemberSyncAPIResponse.go delete mode 100644 model/mei/TmallMeiCrmMemberSyncResponse.go create mode 100644 model/middleclaims/AlibabaMiddleClaimsacceptReceiveAPIRequest.go create mode 100644 model/middleclaims/AlibabaMiddleClaimsacceptReceiveAPIResponse.go delete mode 100644 model/middleclaims/AlibabaMiddleClaimsacceptReceiveResponse.go create mode 100644 model/middleclaims/AlibabaMiddleClaimsbillReceiveAPIRequest.go create mode 100644 model/middleclaims/AlibabaMiddleClaimsbillReceiveAPIResponse.go delete mode 100644 model/middleclaims/AlibabaMiddleClaimsbillReceiveResponse.go create mode 100644 model/middleclaims/AlibabaMiddleClaimsresultReceiveAPIRequest.go create mode 100644 model/middleclaims/AlibabaMiddleClaimsresultReceiveAPIResponse.go delete mode 100644 model/middleclaims/AlibabaMiddleClaimsresultReceiveResponse.go create mode 100644 model/miniapp/TaobaoMiniappCloudFunctionInvokeAPIRequest.go create mode 100644 model/miniapp/TaobaoMiniappCloudFunctionInvokeAPIResponse.go delete mode 100644 model/miniapp/TaobaoMiniappCloudFunctionInvokeResponse.go create mode 100644 model/miniapp/TaobaoMiniappCloudStoreRelationAddAPIRequest.go create mode 100644 model/miniapp/TaobaoMiniappCloudStoreRelationAddAPIResponse.go delete mode 100644 model/miniapp/TaobaoMiniappCloudStoreRelationAddResponse.go create mode 100644 model/miniappcloud/TaobaoMiniappCloudMongoInsertAPIRequest.go create mode 100644 model/miniappcloud/TaobaoMiniappCloudMongoInsertAPIResponse.go delete mode 100644 model/miniappcloud/TaobaoMiniappCloudMongoInsertResponse.go create mode 100644 model/miniappcloud/TaobaoMiniappCloudMongoUpdateAPIRequest.go create mode 100644 model/miniappcloud/TaobaoMiniappCloudMongoUpdateAPIResponse.go delete mode 100644 model/miniappcloud/TaobaoMiniappCloudMongoUpdateResponse.go create mode 100644 model/miniappcloud/TaobaoMiniappCloudStoreListfileAPIRequest.go create mode 100644 model/miniappcloud/TaobaoMiniappCloudStoreListfileAPIResponse.go delete mode 100644 model/miniappcloud/TaobaoMiniappCloudStoreListfileResponse.go create mode 100644 model/miniappopen/TaobaoMiniappAppSellerConfigCompleteAPIRequest.go create mode 100644 model/miniappopen/TaobaoMiniappAppSellerConfigCompleteAPIResponse.go delete mode 100644 model/miniappopen/TaobaoMiniappAppSellerConfigCompleteResponse.go create mode 100644 model/miniappopen/TaobaoMiniappDistributionItemsBindAPIRequest.go create mode 100644 model/miniappopen/TaobaoMiniappDistributionItemsBindAPIResponse.go delete mode 100644 model/miniappopen/TaobaoMiniappDistributionItemsBindResponse.go create mode 100644 model/miniappopen/TaobaoMiniappDistributionOrderCreateAPIRequest.go create mode 100644 model/miniappopen/TaobaoMiniappDistributionOrderCreateAPIResponse.go delete mode 100644 model/miniappopen/TaobaoMiniappDistributionOrderCreateResponse.go create mode 100644 model/miniappopen/TaobaoMiniappDistributionOrderGetAPIRequest.go create mode 100644 model/miniappopen/TaobaoMiniappDistributionOrderGetAPIResponse.go delete mode 100644 model/miniappopen/TaobaoMiniappDistributionOrderGetResponse.go create mode 100644 model/miniappopen/TaobaoMiniappDistributionOrderItemsAllBindAPIRequest.go create mode 100644 model/miniappopen/TaobaoMiniappDistributionOrderItemsAllBindAPIResponse.go delete mode 100644 model/miniappopen/TaobaoMiniappDistributionOrderItemsAllBindResponse.go create mode 100644 model/miniappopen/TaobaoMiniappDistributionOrderItemsBindAPIRequest.go create mode 100644 model/miniappopen/TaobaoMiniappDistributionOrderItemsBindAPIResponse.go delete mode 100644 model/miniappopen/TaobaoMiniappDistributionOrderItemsBindResponse.go create mode 100644 model/miniappopen/TaobaoMiniappShorturlCreateAPIRequest.go create mode 100644 model/miniappopen/TaobaoMiniappShorturlCreateAPIResponse.go delete mode 100644 model/miniappopen/TaobaoMiniappShorturlCreateResponse.go create mode 100644 model/miniappopen/TaobaoMiniappTemplateInstantiateAPIRequest.go create mode 100644 model/miniappopen/TaobaoMiniappTemplateInstantiateAPIResponse.go delete mode 100644 model/miniappopen/TaobaoMiniappTemplateInstantiateResponse.go create mode 100644 model/miniappopen/TaobaoMiniappTemplateOfflineappAPIRequest.go create mode 100644 model/miniappopen/TaobaoMiniappTemplateOfflineappAPIResponse.go delete mode 100644 model/miniappopen/TaobaoMiniappTemplateOfflineappResponse.go create mode 100644 model/miniappopen/TaobaoMiniappTemplateOnlineappAPIRequest.go create mode 100644 model/miniappopen/TaobaoMiniappTemplateOnlineappAPIResponse.go delete mode 100644 model/miniappopen/TaobaoMiniappTemplateOnlineappResponse.go create mode 100644 model/miniappopen/TaobaoMiniappTemplateQueryappAPIRequest.go create mode 100644 model/miniappopen/TaobaoMiniappTemplateQueryappAPIResponse.go delete mode 100644 model/miniappopen/TaobaoMiniappTemplateQueryappResponse.go create mode 100644 model/miniappopen/TaobaoMiniappTemplateRollbackAPIRequest.go create mode 100644 model/miniappopen/TaobaoMiniappTemplateRollbackAPIResponse.go delete mode 100644 model/miniappopen/TaobaoMiniappTemplateRollbackResponse.go create mode 100644 model/miniappopen/TaobaoMiniappTemplateUpdateAPIRequest.go create mode 100644 model/miniappopen/TaobaoMiniappTemplateUpdateAPIResponse.go delete mode 100644 model/miniappopen/TaobaoMiniappTemplateUpdateResponse.go create mode 100644 model/miniappopen/TaobaoMiniappTemplateUpdateappAPIRequest.go create mode 100644 model/miniappopen/TaobaoMiniappTemplateUpdateappAPIResponse.go delete mode 100644 model/miniappopen/TaobaoMiniappTemplateUpdateappResponse.go create mode 100644 model/miniappopen/TaobaoMiniapppTemplateInstantiateAPIRequest.go create mode 100644 model/miniappopen/TaobaoMiniapppTemplateInstantiateAPIResponse.go delete mode 100644 model/miniappopen/TaobaoMiniapppTemplateInstantiateResponse.go create mode 100644 model/mirage/YoukuMirageQueryPermissionAPIRequest.go create mode 100644 model/mirage/YoukuMirageQueryPermissionAPIResponse.go delete mode 100644 model/mirage/YoukuMirageQueryPermissionResponse.go create mode 100644 model/mos/AlibabaMjMemberBindmemberAPIRequest.go create mode 100644 model/mos/AlibabaMjMemberBindmemberAPIResponse.go delete mode 100644 model/mos/AlibabaMjMemberBindmemberResponse.go create mode 100644 model/mos/AlibabaMjMemberHasbindAPIRequest.go create mode 100644 model/mos/AlibabaMjMemberHasbindAPIResponse.go delete mode 100644 model/mos/AlibabaMjMemberHasbindResponse.go create mode 100644 model/mos/AlibabaMjMosFundCancelbillAPIRequest.go create mode 100644 model/mos/AlibabaMjMosFundCancelbillAPIResponse.go delete mode 100644 model/mos/AlibabaMjMosFundCancelbillResponse.go create mode 100644 model/mos/AlibabaMjMosFundCreatebillAPIRequest.go create mode 100644 model/mos/AlibabaMjMosFundCreatebillAPIResponse.go delete mode 100644 model/mos/AlibabaMjMosFundCreatebillResponse.go create mode 100644 model/mos/AlibabaMjMosFundModifybillbankaccountAPIRequest.go create mode 100644 model/mos/AlibabaMjMosFundModifybillbankaccountAPIResponse.go delete mode 100644 model/mos/AlibabaMjMosFundModifybillbankaccountResponse.go create mode 100644 model/mos/AlibabaMjMoscarnivalReceivecouponAPIRequest.go create mode 100644 model/mos/AlibabaMjMoscarnivalReceivecouponAPIResponse.go delete mode 100644 model/mos/AlibabaMjMoscarnivalReceivecouponResponse.go create mode 100644 model/mos/AlibabaMjMoscarnivalReceivecouponResultDo.go create mode 100644 model/mos/AlibabaMjMoscarnivalReceiveencryptAPIRequest.go create mode 100644 model/mos/AlibabaMjMoscarnivalReceiveencryptAPIResponse.go delete mode 100644 model/mos/AlibabaMjMoscarnivalReceiveencryptResponse.go create mode 100644 model/mos/AlibabaMjMoscarnivalReceiveencryptResultDo.go create mode 100644 model/mos/AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest.go create mode 100644 model/mos/AlibabaMjOcBigposBanksaleAdjustmentApplyAPIResponse.go delete mode 100644 model/mos/AlibabaMjOcBigposBanksaleAdjustmentApplyResponse.go create mode 100644 model/mos/AlibabaMjOcBigposBanksaleQueryAPIRequest.go create mode 100644 model/mos/AlibabaMjOcBigposBanksaleQueryAPIResponse.go delete mode 100644 model/mos/AlibabaMjOcBigposBanksaleQueryResponse.go create mode 100644 model/mos/AlibabaMjOcCalldispatcherAPIRequest.go create mode 100644 model/mos/AlibabaMjOcCalldispatcherAPIResponse.go delete mode 100644 model/mos/AlibabaMjOcCalldispatcherResponse.go create mode 100644 model/mos/AlibabaMjOcConfpickupgoodsAPIRequest.go create mode 100644 model/mos/AlibabaMjOcConfpickupgoodsAPIResponse.go delete mode 100644 model/mos/AlibabaMjOcConfpickupgoodsResponse.go create mode 100644 model/mos/AlibabaMjOcGetproductbyscancodeAPIRequest.go create mode 100644 model/mos/AlibabaMjOcGetproductbyscancodeAPIResponse.go delete mode 100644 model/mos/AlibabaMjOcGetproductbyscancodeResponse.go create mode 100644 model/mos/AlibabaMjOcOfflineMaxticketnoGetAPIRequest.go create mode 100644 model/mos/AlibabaMjOcOfflineMaxticketnoGetAPIResponse.go delete mode 100644 model/mos/AlibabaMjOcOfflineMaxticketnoGetResponse.go create mode 100644 model/mos/AlibabaMjOcOnlineTicketnoGetAPIRequest.go create mode 100644 model/mos/AlibabaMjOcOnlineTicketnoGetAPIResponse.go delete mode 100644 model/mos/AlibabaMjOcOnlineTicketnoGetResponse.go create mode 100644 model/mos/AlibabaMjOcOutboundAPIRequest.go create mode 100644 model/mos/AlibabaMjOcOutboundAPIResponse.go delete mode 100644 model/mos/AlibabaMjOcOutboundResponse.go create mode 100644 model/mos/AlibabaMjOcPayAPIRequest.go create mode 100644 model/mos/AlibabaMjOcPayAPIResponse.go delete mode 100644 model/mos/AlibabaMjOcPayResponse.go create mode 100644 model/mos/AlibabaMjOcSyncpayinfoAPIRequest.go create mode 100644 model/mos/AlibabaMjOcSyncpayinfoAPIResponse.go delete mode 100644 model/mos/AlibabaMjOcSyncpayinfoResponse.go create mode 100644 model/mos/AlibabaMjOcSyncpayinfoResultDo.go create mode 100644 model/mos/AlibabaMjOcWritesaleslipAPIRequest.go create mode 100644 model/mos/AlibabaMjOcWritesaleslipAPIResponse.go delete mode 100644 model/mos/AlibabaMjOcWritesaleslipResponse.go create mode 100644 model/mos/AlibabaMjPresaleSettlementAddlistAPIRequest.go create mode 100644 model/mos/AlibabaMjPresaleSettlementAddlistAPIResponse.go delete mode 100644 model/mos/AlibabaMjPresaleSettlementAddlistResponse.go create mode 100644 model/mos/AlibabaMjPresaleSettlementStatisticsAPIRequest.go create mode 100644 model/mos/AlibabaMjPresaleSettlementStatisticsAPIResponse.go delete mode 100644 model/mos/AlibabaMjPresaleSettlementStatisticsResponse.go create mode 100644 model/mos/AlibabaMosArkHealthOfflineLevelGetAPIRequest.go create mode 100644 model/mos/AlibabaMosArkHealthOfflineLevelGetAPIResponse.go delete mode 100644 model/mos/AlibabaMosArkHealthOfflineLevelGetResponse.go create mode 100644 model/mos/AlibabaMosBunkBunkinfoQuerybunkAPIRequest.go create mode 100644 model/mos/AlibabaMosBunkBunkinfoQuerybunkAPIResponse.go delete mode 100644 model/mos/AlibabaMosBunkBunkinfoQuerybunkResponse.go create mode 100644 model/mos/AlibabaMosBunkBunkinfoQuerybunkResultDo.go create mode 100644 model/mos/AlibabaMosFinanceBankinfoQuerybankAPIRequest.go create mode 100644 model/mos/AlibabaMosFinanceBankinfoQuerybankAPIResponse.go delete mode 100644 model/mos/AlibabaMosFinanceBankinfoQuerybankResponse.go create mode 100644 model/mos/AlibabaMosFinanceBankinfoQuerybankResultDo.go create mode 100644 model/mos/AlibabaMosOcTradeSyncbanksaleAPIRequest.go create mode 100644 model/mos/AlibabaMosOcTradeSyncbanksaleAPIResponse.go delete mode 100644 model/mos/AlibabaMosOcTradeSyncbanksaleResponse.go create mode 100644 model/mos/AlibabaMosOcTradeSyncbanksaleResultDo.go create mode 100644 model/mos/AlibabaMosOnsiteTradeIsnewpayorderAPIRequest.go create mode 100644 model/mos/AlibabaMosOnsiteTradeIsnewpayorderAPIResponse.go delete mode 100644 model/mos/AlibabaMosOnsiteTradeIsnewpayorderResponse.go create mode 100644 model/mos/AlibabaMosOnsiteTradeIsnewpayorderResultDo.go create mode 100644 model/mos/AlibabaMosOnsiteTradeOldrefundAPIRequest.go create mode 100644 model/mos/AlibabaMosOnsiteTradeOldrefundAPIResponse.go delete mode 100644 model/mos/AlibabaMosOnsiteTradeOldrefundResponse.go create mode 100644 model/mos/AlibabaMosOnsiteTradePayAPIRequest.go create mode 100644 model/mos/AlibabaMosOnsiteTradePayAPIResponse.go delete mode 100644 model/mos/AlibabaMosOnsiteTradePayResponse.go create mode 100644 model/mos/AlibabaMosOnsiteTradeQueryAPIRequest.go create mode 100644 model/mos/AlibabaMosOnsiteTradeQueryAPIResponse.go delete mode 100644 model/mos/AlibabaMosOnsiteTradeQueryResponse.go create mode 100644 model/mos/AlibabaMosOnsiteTradeQueryrefundAPIRequest.go create mode 100644 model/mos/AlibabaMosOnsiteTradeQueryrefundAPIResponse.go delete mode 100644 model/mos/AlibabaMosOnsiteTradeQueryrefundResponse.go create mode 100644 model/mos/AlibabaMosOnsiteTradeQueryrefundResultDo.go create mode 100644 model/mos/AlibabaMosOnsiteTradeRefundAPIRequest.go create mode 100644 model/mos/AlibabaMosOnsiteTradeRefundAPIResponse.go delete mode 100644 model/mos/AlibabaMosOnsiteTradeRefundResponse.go create mode 100644 model/mos/AlibabaMosOnsiteTradeRefundResultDo.go create mode 100644 model/mos/AlibabaMosOrderqsMisbigposOrderQueryAPIRequest.go create mode 100644 model/mos/AlibabaMosOrderqsMisbigposOrderQueryAPIResponse.go delete mode 100644 model/mos/AlibabaMosOrderqsMisbigposOrderQueryResponse.go create mode 100644 model/mos/AlibabaMosPosAlarmAPIRequest.go create mode 100644 model/mos/AlibabaMosPosAlarmAPIResponse.go delete mode 100644 model/mos/AlibabaMosPosAlarmResponse.go create mode 100644 model/mos/AlibabaMosStoreGetcloudshelfversionAPIRequest.go create mode 100644 model/mos/AlibabaMosStoreGetcloudshelfversionAPIResponse.go delete mode 100644 model/mos/AlibabaMosStoreGetcloudshelfversionResponse.go create mode 100644 model/mos/AlibabaMosStoreGetcloudshelfversionResultDo.go create mode 100644 model/mos/AlibabaMosStoreGetdefautitemsAPIRequest.go create mode 100644 model/mos/AlibabaMosStoreGetdefautitemsAPIResponse.go delete mode 100644 model/mos/AlibabaMosStoreGetdefautitemsResponse.go create mode 100644 model/mos/AlibabaMosStoreGetdefautitemsResultDo.go create mode 100644 model/mos/AlibabaMosStoreGetstorelistAPIRequest.go create mode 100644 model/mos/AlibabaMosStoreGetstorelistAPIResponse.go delete mode 100644 model/mos/AlibabaMosStoreGetstorelistResponse.go create mode 100644 model/mos/AlibabaMosStoreGetstorelistResultDo.go create mode 100644 model/mos/AlibabaMosStoreRecordscreenpointinfoAPIRequest.go create mode 100644 model/mos/AlibabaMosStoreRecordscreenpointinfoAPIResponse.go delete mode 100644 model/mos/AlibabaMosStoreRecordscreenpointinfoResponse.go create mode 100644 model/mos/AlibabaMosStoreRecordscreenpointinfoResultDo.go create mode 100644 model/mos/AlibabaMosSupplierBasisGetsupplierinfoAPIRequest.go create mode 100644 model/mos/AlibabaMosSupplierBasisGetsupplierinfoAPIResponse.go delete mode 100644 model/mos/AlibabaMosSupplierBasisGetsupplierinfoResponse.go create mode 100644 model/mos/AlibabaMosflowWorkQueryvariablesAPIRequest.go create mode 100644 model/mos/AlibabaMosflowWorkQueryvariablesAPIResponse.go delete mode 100644 model/mos/AlibabaMosflowWorkQueryvariablesResponse.go create mode 100644 model/mos/AlibabaMosflowWorkStartprocessAPIRequest.go create mode 100644 model/mos/AlibabaMosflowWorkStartprocessAPIResponse.go delete mode 100644 model/mos/AlibabaMosflowWorkStartprocessResponse.go create mode 100644 model/moscm/AlibabaMosDeliverySendAPIRequest.go create mode 100644 model/moscm/AlibabaMosDeliverySendAPIResponse.go delete mode 100644 model/moscm/AlibabaMosDeliverySendResponse.go create mode 100644 model/moscm/AlibabaMosDeliverySendResultDo.go create mode 100644 model/moscm/AlibabaMosGoodsAdjustAPIRequest.go create mode 100644 model/moscm/AlibabaMosGoodsAdjustAPIResponse.go delete mode 100644 model/moscm/AlibabaMosGoodsAdjustResponse.go create mode 100644 model/moscm/AlibabaMosGoodsAdjustResultDo.go create mode 100644 model/moscm/AlibabaMosGoodsBulkinputcspuAPIRequest.go create mode 100644 model/moscm/AlibabaMosGoodsBulkinputcspuAPIResponse.go delete mode 100644 model/moscm/AlibabaMosGoodsBulkinputcspuResponse.go create mode 100644 model/moscm/AlibabaMosGoodsInventoryGetinventorysAPIRequest.go create mode 100644 model/moscm/AlibabaMosGoodsInventoryGetinventorysAPIResponse.go delete mode 100644 model/moscm/AlibabaMosGoodsInventoryGetinventorysResponse.go create mode 100644 model/moscm/AlibabaMosGoodsSearchcspuAPIRequest.go create mode 100644 model/moscm/AlibabaMosGoodsSearchcspuAPIResponse.go delete mode 100644 model/moscm/AlibabaMosGoodsSearchcspuResponse.go create mode 100644 model/moscm/AlibabaMosGoodsSetpriceAPIRequest.go create mode 100644 model/moscm/AlibabaMosGoodsSetpriceAPIResponse.go delete mode 100644 model/moscm/AlibabaMosGoodsSetpriceResponse.go create mode 100644 model/moscm/AlibabaMosGoodsSynchinventorybycountingAPIRequest.go create mode 100644 model/moscm/AlibabaMosGoodsSynchinventorybycountingAPIResponse.go delete mode 100644 model/moscm/AlibabaMosGoodsSynchinventorybycountingResponse.go create mode 100644 model/moscm/AlibabaMosGoodsSynchinventorybycountingResultDo.go create mode 100644 model/moscm/AlibabaMosOrderListGetAPIRequest.go create mode 100644 model/moscm/AlibabaMosOrderListGetAPIResponse.go delete mode 100644 model/moscm/AlibabaMosOrderListGetResponse.go create mode 100644 model/moscm/AlibabaMosOrderListGetResultDo.go create mode 100644 model/moscm/AlibabaMosOrderQueryAPIRequest.go create mode 100644 model/moscm/AlibabaMosOrderQueryAPIResponse.go delete mode 100644 model/moscm/AlibabaMosOrderQueryResponse.go create mode 100644 model/moscm/AlibabaMosOrderQueryResultDo.go create mode 100644 model/moscm/AlibabaMosOrderRefundListGetAPIRequest.go create mode 100644 model/moscm/AlibabaMosOrderRefundListGetAPIResponse.go delete mode 100644 model/moscm/AlibabaMosOrderRefundListGetResponse.go create mode 100644 model/moscm/AlibabaMosOrderRefundListGetResultDto.go create mode 100644 model/mozi/AlibabaMoziBucAccountListAccountidsAPIRequest.go create mode 100644 model/mozi/AlibabaMoziBucAccountListAccountidsAPIResponse.go delete mode 100644 model/mozi/AlibabaMoziBucAccountListAccountidsResponse.go create mode 100644 model/mozi/AlibabaMoziBucAccountPageallAPIRequest.go create mode 100644 model/mozi/AlibabaMoziBucAccountPageallAPIResponse.go delete mode 100644 model/mozi/AlibabaMoziBucAccountPageallResponse.go create mode 100644 model/mozi/AlibabaMoziFusionAddorupdateEmployeeAccountAPIRequest.go create mode 100644 model/mozi/AlibabaMoziFusionAddorupdateEmployeeAccountAPIResponse.go delete mode 100644 model/mozi/AlibabaMoziFusionAddorupdateEmployeeAccountResponse.go create mode 100644 model/mozi/AlibabaMoziFusionCreateEmployeeAccountAPIRequest.go create mode 100644 model/mozi/AlibabaMoziFusionCreateEmployeeAccountAPIResponse.go delete mode 100644 model/mozi/AlibabaMoziFusionCreateEmployeeAccountResponse.go create mode 100644 model/mozi/AlibabaMoziFusionDimissionEmployeeAccountAPIRequest.go create mode 100644 model/mozi/AlibabaMoziFusionDimissionEmployeeAccountAPIResponse.go delete mode 100644 model/mozi/AlibabaMoziFusionDimissionEmployeeAccountResponse.go create mode 100644 model/mozi/AlibabaMoziFusionReentryEmployeeAccountAPIRequest.go create mode 100644 model/mozi/AlibabaMoziFusionReentryEmployeeAccountAPIResponse.go delete mode 100644 model/mozi/AlibabaMoziFusionReentryEmployeeAccountResponse.go create mode 100644 model/mozi/AlibabaMoziFusionUpdateEmployeeAccountAPIRequest.go create mode 100644 model/mozi/AlibabaMoziFusionUpdateEmployeeAccountAPIResponse.go delete mode 100644 model/mozi/AlibabaMoziFusionUpdateEmployeeAccountResponse.go create mode 100644 model/mozi/AlibabaMoziVdsTenantApiServiceDismissAPIRequest.go create mode 100644 model/mozi/AlibabaMoziVdsTenantApiServiceDismissAPIResponse.go delete mode 100644 model/mozi/AlibabaMoziVdsTenantApiServiceDismissResponse.go create mode 100644 model/mozi/AlibabaMoziVdsTenantApiServiceGetadminAPIRequest.go create mode 100644 model/mozi/AlibabaMoziVdsTenantApiServiceGetadminAPIResponse.go delete mode 100644 model/mozi/AlibabaMoziVdsTenantApiServiceGetadminResponse.go create mode 100644 model/mozi/AlibabaMoziVdsTenantApiServiceMatchempcodesAPIRequest.go create mode 100644 model/mozi/AlibabaMoziVdsTenantApiServiceMatchempcodesAPIResponse.go delete mode 100644 model/mozi/AlibabaMoziVdsTenantApiServiceMatchempcodesResponse.go create mode 100644 model/mozi/AlibabaMoziVdsTenantApiServicePagesubadminsAPIRequest.go create mode 100644 model/mozi/AlibabaMoziVdsTenantApiServicePagesubadminsAPIResponse.go delete mode 100644 model/mozi/AlibabaMoziVdsTenantApiServicePagesubadminsResponse.go create mode 100644 model/mozi/AlibabaMoziVdsTenantApiServiceTenantbyidAPIRequest.go create mode 100644 model/mozi/AlibabaMoziVdsTenantApiServiceTenantbyidAPIResponse.go delete mode 100644 model/mozi/AlibabaMoziVdsTenantApiServiceTenantbyidResponse.go create mode 100644 model/moziacl/AlibabaMoziAclAppGetpermisspkgsAPIRequest.go create mode 100644 model/moziacl/AlibabaMoziAclAppGetpermisspkgsAPIResponse.go delete mode 100644 model/moziacl/AlibabaMoziAclAppGetpermisspkgsResponse.go create mode 100644 model/moziacl/AlibabaMoziAclGrantGrantroleAPIRequest.go create mode 100644 model/moziacl/AlibabaMoziAclGrantGrantroleAPIResponse.go delete mode 100644 model/moziacl/AlibabaMoziAclGrantGrantroleResponse.go create mode 100644 model/moziacl/AlibabaMoziAclPermissionPageRolepermissionAPIRequest.go create mode 100644 model/moziacl/AlibabaMoziAclPermissionPageRolepermissionAPIResponse.go delete mode 100644 model/moziacl/AlibabaMoziAclPermissionPageRolepermissionResponse.go create mode 100644 model/moziacl/AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest.go create mode 100644 model/moziacl/AlibabaMoziAclPermissionpkgAddPermissionsAPIResponse.go delete mode 100644 model/moziacl/AlibabaMoziAclPermissionpkgAddPermissionsResponse.go create mode 100644 model/moziacl/AlibabaMoziAclPermissionpkgAddRolesAPIRequest.go create mode 100644 model/moziacl/AlibabaMoziAclPermissionpkgAddRolesAPIResponse.go delete mode 100644 model/moziacl/AlibabaMoziAclPermissionpkgAddRolesResponse.go create mode 100644 model/moziacl/AlibabaMoziAclRoleAddAPIRequest.go create mode 100644 model/moziacl/AlibabaMoziAclRoleAddAPIResponse.go create mode 100644 model/moziacl/AlibabaMoziAclRoleAddPermissionsAPIRequest.go create mode 100644 model/moziacl/AlibabaMoziAclRoleAddPermissionsAPIResponse.go delete mode 100644 model/moziacl/AlibabaMoziAclRoleAddPermissionsResponse.go delete mode 100644 model/moziacl/AlibabaMoziAclRoleAddResponse.go create mode 100644 model/moziacl/AlibabaMoziAclRoleRemoveAPIRequest.go create mode 100644 model/moziacl/AlibabaMoziAclRoleRemoveAPIResponse.go create mode 100644 model/moziacl/AlibabaMoziAclRoleRemovePermissionsAPIRequest.go create mode 100644 model/moziacl/AlibabaMoziAclRoleRemovePermissionsAPIResponse.go delete mode 100644 model/moziacl/AlibabaMoziAclRoleRemovePermissionsResponse.go delete mode 100644 model/moziacl/AlibabaMoziAclRoleRemoveResponse.go create mode 100644 model/moziacl/AlibabaMoziAclUserpermissionsRevokeAPIRequest.go create mode 100644 model/moziacl/AlibabaMoziAclUserpermissionsRevokeAPIResponse.go delete mode 100644 model/moziacl/AlibabaMoziAclUserpermissionsRevokeResponse.go create mode 100644 model/moziacl/AlibabaMoziAclUserrolesRevokeAPIRequest.go create mode 100644 model/moziacl/AlibabaMoziAclUserrolesRevokeAPIResponse.go delete mode 100644 model/moziacl/AlibabaMoziAclUserrolesRevokeResponse.go create mode 100644 model/mozivds/AlibabaMoziVdsTenantApiServiceAddadminAPIRequest.go create mode 100644 model/mozivds/AlibabaMoziVdsTenantApiServiceAddadminAPIResponse.go delete mode 100644 model/mozivds/AlibabaMoziVdsTenantApiServiceAddadminResponse.go create mode 100644 model/mozivds/AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest.go create mode 100644 model/mozivds/AlibabaMoziVdsTenantApiServiceRemoveadminAPIResponse.go delete mode 100644 model/mozivds/AlibabaMoziVdsTenantApiServiceRemoveadminResponse.go create mode 100644 model/msgamp/TaobaoMessageSendAPIRequest.go create mode 100644 model/msgamp/TaobaoMessageSendAPIResponse.go delete mode 100644 model/msgamp/TaobaoMessageSendResponse.go create mode 100644 model/mtop/TaobaoMtopUploadTokenGetAPIRequest.go create mode 100644 model/mtop/TaobaoMtopUploadTokenGetAPIResponse.go delete mode 100644 model/mtop/TaobaoMtopUploadTokenGetResponse.go create mode 100644 model/mtopopen/AlibabaInteractAllsparkisvDrawAPIRequest.go create mode 100644 model/mtopopen/AlibabaInteractAllsparkisvDrawAPIResponse.go delete mode 100644 model/mtopopen/AlibabaInteractAllsparkisvDrawResponse.go create mode 100644 model/mtopopen/AlibabaInteractAopdataRegisterAPIRequest.go create mode 100644 model/mtopopen/AlibabaInteractAopdataRegisterAPIResponse.go delete mode 100644 model/mtopopen/AlibabaInteractAopdataRegisterResponse.go create mode 100644 model/mtopopen/AlibabaInteractLotteryactivityRegisterAPIRequest.go create mode 100644 model/mtopopen/AlibabaInteractLotteryactivityRegisterAPIResponse.go delete mode 100644 model/mtopopen/AlibabaInteractLotteryactivityRegisterResponse.go create mode 100644 model/mtopopen/AlibabaInteractMediaArtworkAPIRequest.go create mode 100644 model/mtopopen/AlibabaInteractMediaArtworkAPIResponse.go delete mode 100644 model/mtopopen/AlibabaInteractMediaArtworkResponse.go create mode 100644 model/mtopopen/AlibabaInteractMediaAudioAPIRequest.go create mode 100644 model/mtopopen/AlibabaInteractMediaAudioAPIResponse.go delete mode 100644 model/mtopopen/AlibabaInteractMediaAudioResponse.go create mode 100644 model/mtopopen/AlibabaInteractSensorSocialAPIRequest.go create mode 100644 model/mtopopen/AlibabaInteractSensorSocialAPIResponse.go delete mode 100644 model/mtopopen/AlibabaInteractSensorSocialResponse.go create mode 100644 model/mtopopen/AlibabaInteractSensorTradeAPIRequest.go create mode 100644 model/mtopopen/AlibabaInteractSensorTradeAPIResponse.go create mode 100644 model/mtopopen/AlibabaInteractSensorTradeBuyAPIRequest.go create mode 100644 model/mtopopen/AlibabaInteractSensorTradeBuyAPIResponse.go delete mode 100644 model/mtopopen/AlibabaInteractSensorTradeBuyResponse.go delete mode 100644 model/mtopopen/AlibabaInteractSensorTradeResponse.go create mode 100644 model/mtopopen/TaobaoOauthCodeCreateAPIRequest.go create mode 100644 model/mtopopen/TaobaoOauthCodeCreateAPIResponse.go delete mode 100644 model/mtopopen/TaobaoOauthCodeCreateResponse.go create mode 100644 model/mtopopen/TaobaoWeitaoFeedIsrelationAPIRequest.go create mode 100644 model/mtopopen/TaobaoWeitaoFeedIsrelationAPIResponse.go delete mode 100644 model/mtopopen/TaobaoWeitaoFeedIsrelationResponse.go create mode 100644 model/mtopopen/TaobaoWirelessBuntingShopShorturlCreateAPIRequest.go create mode 100644 model/mtopopen/TaobaoWirelessBuntingShopShorturlCreateAPIResponse.go delete mode 100644 model/mtopopen/TaobaoWirelessBuntingShopShorturlCreateResponse.go create mode 100644 model/mydata/AlibabaMydataOverviewDateGetAPIRequest.go create mode 100644 model/mydata/AlibabaMydataOverviewDateGetAPIResponse.go delete mode 100644 model/mydata/AlibabaMydataOverviewDateGetResponse.go create mode 100644 model/mydata/AlibabaMydataOverviewIndicatorBasicGetAPIRequest.go create mode 100644 model/mydata/AlibabaMydataOverviewIndicatorBasicGetAPIResponse.go delete mode 100644 model/mydata/AlibabaMydataOverviewIndicatorBasicGetResponse.go create mode 100644 model/mydata/AlibabaMydataOverviewIndustryGetAPIRequest.go create mode 100644 model/mydata/AlibabaMydataOverviewIndustryGetAPIResponse.go delete mode 100644 model/mydata/AlibabaMydataOverviewIndustryGetResponse.go create mode 100644 model/mydata/AlibabaMydataSelfProductDateGetAPIRequest.go create mode 100644 model/mydata/AlibabaMydataSelfProductDateGetAPIResponse.go delete mode 100644 model/mydata/AlibabaMydataSelfProductDateGetResponse.go create mode 100644 model/mydata/AlibabaMydataSelfProductGetAPIRequest.go create mode 100644 model/mydata/AlibabaMydataSelfProductGetAPIResponse.go delete mode 100644 model/mydata/AlibabaMydataSelfProductGetResponse.go create mode 100644 model/nazca/AlibabaInfodeptLassenCasestatisticsGetAPIRequest.go create mode 100644 model/nazca/AlibabaInfodeptLassenCasestatisticsGetAPIResponse.go delete mode 100644 model/nazca/AlibabaInfodeptLassenCasestatisticsGetResponse.go create mode 100644 model/nazca/AlibabaNazcaAuthAuthapplyCallbackAPIRequest.go create mode 100644 model/nazca/AlibabaNazcaAuthAuthapplyCallbackAPIResponse.go delete mode 100644 model/nazca/AlibabaNazcaAuthAuthapplyCallbackResponse.go create mode 100644 model/nazca/AlibabaNazcaAuthChangeauthapplyCallbackAPIRequest.go create mode 100644 model/nazca/AlibabaNazcaAuthChangeauthapplyCallbackAPIResponse.go delete mode 100644 model/nazca/AlibabaNazcaAuthChangeauthapplyCallbackResponse.go create mode 100644 model/nazca/AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest.go create mode 100644 model/nazca/AlibabaNazcaAuthIssueauthapplyCallbackAPIResponse.go delete mode 100644 model/nazca/AlibabaNazcaAuthIssueauthapplyCallbackResponse.go create mode 100644 model/nazca/AlibabaNazcaTokenAuthapplyGetAPIRequest.go create mode 100644 model/nazca/AlibabaNazcaTokenAuthapplyGetAPIResponse.go delete mode 100644 model/nazca/AlibabaNazcaTokenAuthapplyGetResponse.go create mode 100644 model/nazca/AlibabaNazcaTokenChangeauthapplyGetAPIRequest.go create mode 100644 model/nazca/AlibabaNazcaTokenChangeauthapplyGetAPIResponse.go delete mode 100644 model/nazca/AlibabaNazcaTokenChangeauthapplyGetResponse.go create mode 100644 model/nazca/AlibabaNazcaTokenFilesecretGetAPIRequest.go create mode 100644 model/nazca/AlibabaNazcaTokenFilesecretGetAPIResponse.go delete mode 100644 model/nazca/AlibabaNazcaTokenFilesecretGetResponse.go create mode 100644 model/nazca/AlibabaNazcaTokenIssuecertapplyGetAPIRequest.go create mode 100644 model/nazca/AlibabaNazcaTokenIssuecertapplyGetAPIResponse.go delete mode 100644 model/nazca/AlibabaNazcaTokenIssuecertapplyGetResponse.go create mode 100644 model/newretail/AlibabaItApAddressGetAPIRequest.go create mode 100644 model/newretail/AlibabaItApAddressGetAPIResponse.go delete mode 100644 model/newretail/AlibabaItApAddressGetResponse.go create mode 100644 model/newretail/AlibabaItApAddressSetAPIRequest.go create mode 100644 model/newretail/AlibabaItApAddressSetAPIResponse.go delete mode 100644 model/newretail/AlibabaItApAddressSetResponse.go create mode 100644 model/nlife/AlibabaNlifeB2bTradeListAPIRequest.go create mode 100644 model/nlife/AlibabaNlifeB2bTradeListAPIResponse.go delete mode 100644 model/nlife/AlibabaNlifeB2bTradeListResponse.go create mode 100644 model/nlife/AlibabaNlifeB2bTradeRefundListAPIRequest.go create mode 100644 model/nlife/AlibabaNlifeB2bTradeRefundListAPIResponse.go delete mode 100644 model/nlife/AlibabaNlifeB2bTradeRefundListResponse.go create mode 100644 model/nlife/AlibabaNlifeB2cCodeConvertAPIRequest.go create mode 100644 model/nlife/AlibabaNlifeB2cCodeConvertAPIResponse.go delete mode 100644 model/nlife/AlibabaNlifeB2cCodeConvertResponse.go create mode 100644 model/nlife/AlibabaNlifeB2cItemDetailGetAPIRequest.go create mode 100644 model/nlife/AlibabaNlifeB2cItemDetailGetAPIResponse.go delete mode 100644 model/nlife/AlibabaNlifeB2cItemDetailGetResponse.go create mode 100644 model/nlife/AlibabaNlifeB2cMemberDiscountruleGetAPIRequest.go create mode 100644 model/nlife/AlibabaNlifeB2cMemberDiscountruleGetAPIResponse.go delete mode 100644 model/nlife/AlibabaNlifeB2cMemberDiscountruleGetResponse.go create mode 100644 model/nlife/AlibabaNlifeB2cTradeCancelAPIRequest.go create mode 100644 model/nlife/AlibabaNlifeB2cTradeCancelAPIResponse.go delete mode 100644 model/nlife/AlibabaNlifeB2cTradeCancelResponse.go create mode 100644 model/nlife/AlibabaNlifeB2cTradeDownloadAPIRequest.go create mode 100644 model/nlife/AlibabaNlifeB2cTradeDownloadAPIResponse.go delete mode 100644 model/nlife/AlibabaNlifeB2cTradeDownloadResponse.go create mode 100644 model/nlife/AlibabaNlifeB2cTradeGetAPIRequest.go create mode 100644 model/nlife/AlibabaNlifeB2cTradeGetAPIResponse.go delete mode 100644 model/nlife/AlibabaNlifeB2cTradeGetResponse.go create mode 100644 model/nlife/AlibabaNlifeB2cTradePayAPIRequest.go create mode 100644 model/nlife/AlibabaNlifeB2cTradePayAPIResponse.go delete mode 100644 model/nlife/AlibabaNlifeB2cTradePayResponse.go create mode 100644 model/nlife/AlibabaNlifeB2cTradeRefundAPIRequest.go create mode 100644 model/nlife/AlibabaNlifeB2cTradeRefundAPIResponse.go delete mode 100644 model/nlife/AlibabaNlifeB2cTradeRefundResponse.go create mode 100644 model/nlife/AlibabaNlifeB2cTradestatusDriveAPIRequest.go create mode 100644 model/nlife/AlibabaNlifeB2cTradestatusDriveAPIResponse.go delete mode 100644 model/nlife/AlibabaNlifeB2cTradestatusDriveResponse.go create mode 100644 model/nlife/AlibabaNlifeStoreDeliverdetailGetAPIRequest.go create mode 100644 model/nlife/AlibabaNlifeStoreDeliverdetailGetAPIResponse.go delete mode 100644 model/nlife/AlibabaNlifeStoreDeliverdetailGetResponse.go create mode 100644 model/nlife/AlibabaNlifeStoreDeliversGetAPIRequest.go create mode 100644 model/nlife/AlibabaNlifeStoreDeliversGetAPIResponse.go delete mode 100644 model/nlife/AlibabaNlifeStoreDeliversGetResponse.go create mode 100644 model/nlife/AlibabaNlifeStoreItemdetailGetAPIRequest.go create mode 100644 model/nlife/AlibabaNlifeStoreItemdetailGetAPIResponse.go delete mode 100644 model/nlife/AlibabaNlifeStoreItemdetailGetResponse.go create mode 100644 model/nlife/AlibabaNlifeStoreItemdetailsGetAPIRequest.go create mode 100644 model/nlife/AlibabaNlifeStoreItemdetailsGetAPIResponse.go delete mode 100644 model/nlife/AlibabaNlifeStoreItemdetailsGetResponse.go create mode 100644 model/nlife/AlibabaNlifeStoreItemsGetAPIRequest.go create mode 100644 model/nlife/AlibabaNlifeStoreItemsGetAPIResponse.go delete mode 100644 model/nlife/AlibabaNlifeStoreItemsGetResponse.go create mode 100644 model/nlife/AlibabaNlifeStoreTradedetailGetAPIRequest.go create mode 100644 model/nlife/AlibabaNlifeStoreTradedetailGetAPIResponse.go delete mode 100644 model/nlife/AlibabaNlifeStoreTradedetailGetResponse.go create mode 100644 model/nlp/TaobaoNlpPreprocessAPIRequest.go create mode 100644 model/nlp/TaobaoNlpPreprocessAPIResponse.go delete mode 100644 model/nlp/TaobaoNlpPreprocessResponse.go create mode 100644 model/nlp/TaobaoNlpSimilarityAPIRequest.go create mode 100644 model/nlp/TaobaoNlpSimilarityAPIResponse.go delete mode 100644 model/nlp/TaobaoNlpSimilarityResponse.go create mode 100644 model/nlp/TaobaoNlpWordAPIRequest.go create mode 100644 model/nlp/TaobaoNlpWordAPIResponse.go delete mode 100644 model/nlp/TaobaoNlpWordResponse.go create mode 100644 model/normalvisa/AlitripTravelVisaApplicantImportAPIRequest.go create mode 100644 model/normalvisa/AlitripTravelVisaApplicantImportAPIResponse.go delete mode 100644 model/normalvisa/AlitripTravelVisaApplicantImportResponse.go create mode 100644 model/normalvisa/AlitripTravelVisaApplicantQueryAPIRequest.go create mode 100644 model/normalvisa/AlitripTravelVisaApplicantQueryAPIResponse.go delete mode 100644 model/normalvisa/AlitripTravelVisaApplicantQueryResponse.go create mode 100644 model/normalvisa/AlitripTravelVisaSignSendAPIRequest.go create mode 100644 model/normalvisa/AlitripTravelVisaSignSendAPIResponse.go delete mode 100644 model/normalvisa/AlitripTravelVisaSignSendResponse.go create mode 100644 model/normalvisa/TaobaoAlitripTravelNormalvisaGetAPIRequest.go create mode 100644 model/normalvisa/TaobaoAlitripTravelNormalvisaGetAPIResponse.go delete mode 100644 model/normalvisa/TaobaoAlitripTravelNormalvisaGetResponse.go create mode 100644 model/normalvisa/TaobaoAlitripTravelNormalvisaGetcompanyAPIRequest.go create mode 100644 model/normalvisa/TaobaoAlitripTravelNormalvisaGetcompanyAPIResponse.go delete mode 100644 model/normalvisa/TaobaoAlitripTravelNormalvisaGetcompanyResponse.go create mode 100644 model/normalvisa/TaobaoAlitripTravelNormalvisaGetdetailAPIRequest.go create mode 100644 model/normalvisa/TaobaoAlitripTravelNormalvisaGetdetailAPIResponse.go delete mode 100644 model/normalvisa/TaobaoAlitripTravelNormalvisaGetdetailResponse.go create mode 100644 model/normalvisa/TaobaoAlitripTravelNormalvisaStoreuserAPIRequest.go create mode 100644 model/normalvisa/TaobaoAlitripTravelNormalvisaStoreuserAPIResponse.go delete mode 100644 model/normalvisa/TaobaoAlitripTravelNormalvisaStoreuserResponse.go create mode 100644 model/normalvisa/TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIRequest.go create mode 100644 model/normalvisa/TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIResponse.go delete mode 100644 model/normalvisa/TaobaoAlitripTravelNormalvisaUpdatepersonstautsResponse.go create mode 100644 model/normalvisa/TaobaoAlitripTravelNormalvisaUploadfileAPIRequest.go create mode 100644 model/normalvisa/TaobaoAlitripTravelNormalvisaUploadfileAPIResponse.go delete mode 100644 model/normalvisa/TaobaoAlitripTravelNormalvisaUploadfileResponse.go create mode 100644 model/nropen/AlibabaAscpIndustryDisivisonQueryAPIRequest.go create mode 100644 model/nropen/AlibabaAscpIndustryDisivisonQueryAPIResponse.go delete mode 100644 model/nropen/AlibabaAscpIndustryDisivisonQueryResponse.go create mode 100644 model/nrpos/AlibabaMosCommdyOfflineGetfileurlAPIRequest.go create mode 100644 model/nrpos/AlibabaMosCommdyOfflineGetfileurlAPIResponse.go delete mode 100644 model/nrpos/AlibabaMosCommdyOfflineGetfileurlResponse.go create mode 100644 model/nrpos/AlibabaMosCommdyOfflineGetfileurlResultDo.go create mode 100644 model/nrpos/AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest.go create mode 100644 model/nrpos/AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse.go delete mode 100644 model/nrpos/AlibabaMosCommdyPosmerchandiseGetmerchandiseResponse.go create mode 100644 model/nrpos/AlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo.go create mode 100644 model/nrt/AlibabaAscpInventoryQueryAPIRequest.go create mode 100644 model/nrt/AlibabaAscpInventoryQueryAPIResponse.go delete mode 100644 model/nrt/AlibabaAscpInventoryQueryResponse.go create mode 100644 model/nrt/AlibabaAscpInventorySyncAPIRequest.go create mode 100644 model/nrt/AlibabaAscpInventorySyncAPIResponse.go delete mode 100644 model/nrt/AlibabaAscpInventorySyncResponse.go create mode 100644 model/nrt/AlibabaRetailDeviceVendingRegisterAPIRequest.go create mode 100644 model/nrt/AlibabaRetailDeviceVendingRegisterAPIResponse.go delete mode 100644 model/nrt/AlibabaRetailDeviceVendingRegisterResponse.go create mode 100644 model/nrt/AlibabaRetailDeviceVendingRegisterResultDo.go create mode 100644 model/nrt/AlibabaRetailVendingRoadItemSyncAPIRequest.go create mode 100644 model/nrt/AlibabaRetailVendingRoadItemSyncAPIResponse.go delete mode 100644 model/nrt/AlibabaRetailVendingRoadItemSyncResponse.go create mode 100644 model/nrt/TmallNrtBranddetailQueryAPIRequest.go create mode 100644 model/nrt/TmallNrtBranddetailQueryAPIResponse.go delete mode 100644 model/nrt/TmallNrtBranddetailQueryResponse.go create mode 100644 model/nrt/TmallNrtBrandinfoQueryAPIRequest.go create mode 100644 model/nrt/TmallNrtBrandinfoQueryAPIResponse.go delete mode 100644 model/nrt/TmallNrtBrandinfoQueryResponse.go create mode 100644 model/nrt/TmallNrtCouponSendAPIRequest.go create mode 100644 model/nrt/TmallNrtCouponSendAPIResponse.go delete mode 100644 model/nrt/TmallNrtCouponSendResponse.go create mode 100644 model/nrt/TmallNrtCoupontemplateQueryAPIRequest.go create mode 100644 model/nrt/TmallNrtCoupontemplateQueryAPIResponse.go delete mode 100644 model/nrt/TmallNrtCoupontemplateQueryResponse.go create mode 100644 model/nrt/TmallNrtEasyhomememberSynAPIRequest.go create mode 100644 model/nrt/TmallNrtEasyhomememberSynAPIResponse.go delete mode 100644 model/nrt/TmallNrtEasyhomememberSynResponse.go create mode 100644 model/nrt/TmallNrtItemGetAPIRequest.go create mode 100644 model/nrt/TmallNrtItemGetAPIResponse.go delete mode 100644 model/nrt/TmallNrtItemGetResponse.go create mode 100644 model/nrt/TmallNrtItemGetResultDo.go create mode 100644 model/nrt/TmallNrtItemMainSynchronizeAPIRequest.go create mode 100644 model/nrt/TmallNrtItemMainSynchronizeAPIResponse.go delete mode 100644 model/nrt/TmallNrtItemMainSynchronizeResponse.go create mode 100644 model/nrt/TmallNrtItemMainSynchronizeResultDo.go create mode 100644 model/nrt/TmallNrtMemberOpenidAPIRequest.go create mode 100644 model/nrt/TmallNrtMemberOpenidAPIResponse.go delete mode 100644 model/nrt/TmallNrtMemberOpenidResponse.go create mode 100644 model/nrt/TmallNrtMemberOpenidResultDo.go create mode 100644 model/nrt/TmallNrtMemberSynchronizeAPIRequest.go create mode 100644 model/nrt/TmallNrtMemberSynchronizeAPIResponse.go delete mode 100644 model/nrt/TmallNrtMemberSynchronizeResponse.go create mode 100644 model/nrt/TmallNrtPayMerchantStallSigningModifyAPIRequest.go create mode 100644 model/nrt/TmallNrtPayMerchantStallSigningModifyAPIResponse.go delete mode 100644 model/nrt/TmallNrtPayMerchantStallSigningModifyResponse.go create mode 100644 model/nrt/TmallNrtPayMerchantStallSigningModifyResultDo.go create mode 100644 model/nrt/TmallNrtSimpleitemQueryAPIRequest.go create mode 100644 model/nrt/TmallNrtSimpleitemQueryAPIResponse.go delete mode 100644 model/nrt/TmallNrtSimpleitemQueryResponse.go create mode 100644 model/nrt/TmallNrtStallPayratioSynchronizeAPIRequest.go create mode 100644 model/nrt/TmallNrtStallPayratioSynchronizeAPIResponse.go delete mode 100644 model/nrt/TmallNrtStallPayratioSynchronizeResponse.go create mode 100644 model/nrt/TmallNrtStallSynchronizeAPIRequest.go create mode 100644 model/nrt/TmallNrtStallSynchronizeAPIResponse.go delete mode 100644 model/nrt/TmallNrtStallSynchronizeResponse.go create mode 100644 model/omniorder/AlibabaRetailCommissionOrderQueryAPIRequest.go create mode 100644 model/omniorder/AlibabaRetailCommissionOrderQueryAPIResponse.go delete mode 100644 model/omniorder/AlibabaRetailCommissionOrderQueryResponse.go create mode 100644 model/omniorder/AlibabaRetailCommissionOrderSyncAPIRequest.go create mode 100644 model/omniorder/AlibabaRetailCommissionOrderSyncAPIResponse.go delete mode 100644 model/omniorder/AlibabaRetailCommissionOrderSyncResponse.go create mode 100644 model/omniorder/AlibabaRetailCommissionResultQueryAPIRequest.go create mode 100644 model/omniorder/AlibabaRetailCommissionResultQueryAPIResponse.go delete mode 100644 model/omniorder/AlibabaRetailCommissionResultQueryResponse.go create mode 100644 model/omniorder/AlibabaRetailCommissionStatusChangeAPIRequest.go create mode 100644 model/omniorder/AlibabaRetailCommissionStatusChangeAPIResponse.go delete mode 100644 model/omniorder/AlibabaRetailCommissionStatusChangeResponse.go create mode 100644 model/omniorder/TaobaoJstAstrolabeOrderstatusSyncAPIRequest.go create mode 100644 model/omniorder/TaobaoJstAstrolabeOrderstatusSyncAPIResponse.go delete mode 100644 model/omniorder/TaobaoJstAstrolabeOrderstatusSyncResponse.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryAdjustAPIRequest.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryAdjustAPIResponse.go delete mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryAdjustResponse.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryInitialAPIRequest.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryInitialAPIResponse.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryInitialError.go delete mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryInitialResponse.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryItemadjustAPIRequest.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryItemadjustAPIResponse.go delete mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryItemadjustResponse.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryIteminitialAPIRequest.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryIteminitialAPIResponse.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryIteminitialError.go delete mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryIteminitialResponse.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryItemqueryAPIRequest.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryItemqueryAPIResponse.go delete mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryItemqueryResponse.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryItemupdateAPIRequest.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryItemupdateAPIResponse.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryItemupdateError.go delete mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryItemupdateResponse.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryQueryAPIRequest.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryQueryAPIResponse.go delete mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryQueryResponse.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryUpdateAPIRequest.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryUpdateAPIResponse.go create mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryUpdateError.go delete mode 100644 model/omniorder/TaobaoJstAstrolabeStoreinventoryUpdateResponse.go create mode 100644 model/omniorder/TaobaoOmniDealerOdersGetAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniDealerOdersGetAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniDealerOdersGetResponse.go create mode 100644 model/omniorder/TaobaoOmniDealerOdersListAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniDealerOdersListAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniDealerOdersListResponse.go create mode 100644 model/omniorder/TaobaoOmniitemCategoryGetAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniitemCategoryGetAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniitemCategoryGetResponse.go create mode 100644 model/omniorder/TaobaoOmniitemClassifyDeleteAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniitemClassifyDeleteAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniitemClassifyDeleteResponse.go create mode 100644 model/omniorder/TaobaoOmniitemClassifyItemBatchOperateAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniitemClassifyItemBatchOperateAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniitemClassifyItemBatchOperateResponse.go create mode 100644 model/omniorder/TaobaoOmniitemClassifyItemQueryAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniitemClassifyItemQueryAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniitemClassifyItemQueryResponse.go create mode 100644 model/omniorder/TaobaoOmniitemClassifyOperatorAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniitemClassifyOperatorAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniitemClassifyOperatorResponse.go create mode 100644 model/omniorder/TaobaoOmniitemClassifyQueryAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniitemClassifyQueryAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniitemClassifyQueryResponse.go create mode 100644 model/omniorder/TaobaoOmniitemClassifyStoreBatchOperateAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniitemClassifyStoreBatchOperateAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniitemClassifyStoreBatchOperateResponse.go create mode 100644 model/omniorder/TaobaoOmniitemClassifyStoreQueryAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniitemClassifyStoreQueryAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniitemClassifyStoreQueryResponse.go create mode 100644 model/omniorder/TaobaoOmniitemItemDeleteAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniitemItemDeleteAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniitemItemDeleteResponse.go create mode 100644 model/omniorder/TaobaoOmniitemItemFullupdateAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniitemItemFullupdateAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniitemItemFullupdateResponse.go create mode 100644 model/omniorder/TaobaoOmniitemItemGetAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniitemItemGetAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniitemItemGetResponse.go create mode 100644 model/omniorder/TaobaoOmniitemItemImageUploadAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniitemItemImageUploadAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniitemItemImageUploadResponse.go create mode 100644 model/omniorder/TaobaoOmniitemItemPublishAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniitemItemPublishAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniitemItemPublishResponse.go create mode 100644 model/omniorder/TaobaoOmniitemSkuGetAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniitemSkuGetAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniitemSkuGetResponse.go create mode 100644 model/omniorder/TaobaoOmniorderAllocatedinfoSyncAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderAllocatedinfoSyncAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderAllocatedinfoSyncResponse.go create mode 100644 model/omniorder/TaobaoOmniorderDtdConsignAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderDtdConsignAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderDtdConsignResponse.go create mode 100644 model/omniorder/TaobaoOmniorderDtdConsumeAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderDtdConsumeAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderDtdConsumeResponse.go create mode 100644 model/omniorder/TaobaoOmniorderDtdQueryAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderDtdQueryAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderDtdQueryResponse.go create mode 100644 model/omniorder/TaobaoOmniorderDtdResendAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderDtdResendAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderDtdResendResponse.go create mode 100644 model/omniorder/TaobaoOmniorderGuideDataGetAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderGuideDataGetAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderGuideDataGetResponse.go create mode 100644 model/omniorder/TaobaoOmniorderItemTagOperateAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderItemTagOperateAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderItemTagOperateResponse.go create mode 100644 model/omniorder/TaobaoOmniorderPrintSaleJudgeAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderPrintSaleJudgeAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderPrintSaleJudgeResponse.go create mode 100644 model/omniorder/TaobaoOmniorderStoreAccpetedAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderStoreAccpetedAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderStoreAccpetedResponse.go create mode 100644 model/omniorder/TaobaoOmniorderStoreCollectconfigGetAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderStoreCollectconfigGetAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderStoreCollectconfigGetResponse.go create mode 100644 model/omniorder/TaobaoOmniorderStoreCollectconfigUpdateAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderStoreCollectconfigUpdateAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderStoreCollectconfigUpdateResponse.go create mode 100644 model/omniorder/TaobaoOmniorderStoreConsignedAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderStoreConsignedAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderStoreConsignedResponse.go create mode 100644 model/omniorder/TaobaoOmniorderStoreDeliverconfigGetAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderStoreDeliverconfigGetAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderStoreDeliverconfigGetResponse.go create mode 100644 model/omniorder/TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderStoreDeliverconfigUpdateAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderStoreDeliverconfigUpdateResponse.go create mode 100644 model/omniorder/TaobaoOmniorderStoreGetconsignmailcodeAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderStoreGetconsignmailcodeAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderStoreGetconsignmailcodeResponse.go create mode 100644 model/omniorder/TaobaoOmniorderStoreReallocateAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderStoreReallocateAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderStoreReallocateResponse.go create mode 100644 model/omniorder/TaobaoOmniorderStoreRefusedAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderStoreRefusedAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderStoreRefusedResponse.go create mode 100644 model/omniorder/TaobaoOmniorderStoreSdtcancelAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderStoreSdtcancelAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderStoreSdtcancelResponse.go create mode 100644 model/omniorder/TaobaoOmniorderStoreSdtconsignAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderStoreSdtconsignAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderStoreSdtconsignResponse.go create mode 100644 model/omniorder/TaobaoOmniorderStoreSdtquerystationAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderStoreSdtquerystationAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderStoreSdtquerystationResponse.go create mode 100644 model/omniorder/TaobaoOmniorderStoreSdtstatusAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderStoreSdtstatusAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderStoreSdtstatusResponse.go create mode 100644 model/omniorder/TaobaoOmniorderStoreSwitchstatusGetAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderStoreSwitchstatusGetAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderStoreSwitchstatusGetResponse.go create mode 100644 model/omniorder/TaobaoOmniorderStoreSwitchstatusUpdateAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderStoreSwitchstatusUpdateAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderStoreSwitchstatusUpdateResponse.go create mode 100644 model/omniorder/TaobaoOmniorderStorecollectConsumeAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderStorecollectConsumeAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderStorecollectConsumeResponse.go create mode 100644 model/omniorder/TaobaoOmniorderStorecollectQueryAPIRequest.go create mode 100644 model/omniorder/TaobaoOmniorderStorecollectQueryAPIResponse.go delete mode 100644 model/omniorder/TaobaoOmniorderStorecollectQueryResponse.go create mode 100644 model/omniorder/TaobaoQimenItemsMarkingAPIRequest.go create mode 100644 model/omniorder/TaobaoQimenItemsMarkingAPIResponse.go delete mode 100644 model/omniorder/TaobaoQimenItemsMarkingResponse.go create mode 100644 model/omniorder/TaobaoQimenItemsTagQueryAPIRequest.go create mode 100644 model/omniorder/TaobaoQimenItemsTagQueryAPIResponse.go delete mode 100644 model/omniorder/TaobaoQimenItemsTagQueryResponse.go create mode 100644 model/omniorder/TaobaoQimenTagItemsQueryAPIRequest.go create mode 100644 model/omniorder/TaobaoQimenTagItemsQueryAPIResponse.go delete mode 100644 model/omniorder/TaobaoQimenTagItemsQueryResponse.go create mode 100644 model/openim/TaobaoOpenimAppChatlogsGetAPIRequest.go create mode 100644 model/openim/TaobaoOpenimAppChatlogsGetAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimAppChatlogsGetResponse.go create mode 100644 model/openim/TaobaoOpenimChatlogsGetAPIRequest.go create mode 100644 model/openim/TaobaoOpenimChatlogsGetAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimChatlogsGetResponse.go create mode 100644 model/openim/TaobaoOpenimChatlogsImportAPIRequest.go create mode 100644 model/openim/TaobaoOpenimChatlogsImportAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimChatlogsImportResponse.go create mode 100644 model/openim/TaobaoOpenimCustmsgPushAPIRequest.go create mode 100644 model/openim/TaobaoOpenimCustmsgPushAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimCustmsgPushResponse.go create mode 100644 model/openim/TaobaoOpenimImmsgPushAPIRequest.go create mode 100644 model/openim/TaobaoOpenimImmsgPushAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimImmsgPushResponse.go create mode 100644 model/openim/TaobaoOpenimIoscertProductionSetAPIRequest.go create mode 100644 model/openim/TaobaoOpenimIoscertProductionSetAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimIoscertProductionSetResponse.go create mode 100644 model/openim/TaobaoOpenimIoscertSandboxSetAPIRequest.go create mode 100644 model/openim/TaobaoOpenimIoscertSandboxSetAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimIoscertSandboxSetResponse.go create mode 100644 model/openim/TaobaoOpenimRelationsGetAPIRequest.go create mode 100644 model/openim/TaobaoOpenimRelationsGetAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimRelationsGetResponse.go create mode 100644 model/openim/TaobaoOpenimSnfilterwordSetfilterAPIRequest.go create mode 100644 model/openim/TaobaoOpenimSnfilterwordSetfilterAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimSnfilterwordSetfilterResponse.go create mode 100644 model/openim/TaobaoOpenimTribeCreateAPIRequest.go create mode 100644 model/openim/TaobaoOpenimTribeCreateAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimTribeCreateResponse.go create mode 100644 model/openim/TaobaoOpenimTribeDismissAPIRequest.go create mode 100644 model/openim/TaobaoOpenimTribeDismissAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimTribeDismissResponse.go create mode 100644 model/openim/TaobaoOpenimTribeExpelAPIRequest.go create mode 100644 model/openim/TaobaoOpenimTribeExpelAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimTribeExpelResponse.go create mode 100644 model/openim/TaobaoOpenimTribeGetalltribesAPIRequest.go create mode 100644 model/openim/TaobaoOpenimTribeGetalltribesAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimTribeGetalltribesResponse.go create mode 100644 model/openim/TaobaoOpenimTribeGetmembersAPIRequest.go create mode 100644 model/openim/TaobaoOpenimTribeGetmembersAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimTribeGetmembersResponse.go create mode 100644 model/openim/TaobaoOpenimTribeGettribeinfoAPIRequest.go create mode 100644 model/openim/TaobaoOpenimTribeGettribeinfoAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimTribeGettribeinfoResponse.go create mode 100644 model/openim/TaobaoOpenimTribeInviteAPIRequest.go create mode 100644 model/openim/TaobaoOpenimTribeInviteAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimTribeInviteResponse.go create mode 100644 model/openim/TaobaoOpenimTribeJoinAPIRequest.go create mode 100644 model/openim/TaobaoOpenimTribeJoinAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimTribeJoinResponse.go create mode 100644 model/openim/TaobaoOpenimTribeModifytribeinfoAPIRequest.go create mode 100644 model/openim/TaobaoOpenimTribeModifytribeinfoAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimTribeModifytribeinfoResponse.go create mode 100644 model/openim/TaobaoOpenimTribeQuitAPIRequest.go create mode 100644 model/openim/TaobaoOpenimTribeQuitAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimTribeQuitResponse.go create mode 100644 model/openim/TaobaoOpenimTribeSendmsgAPIRequest.go create mode 100644 model/openim/TaobaoOpenimTribeSendmsgAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimTribeSendmsgResponse.go create mode 100644 model/openim/TaobaoOpenimTribeSetmanagerAPIRequest.go create mode 100644 model/openim/TaobaoOpenimTribeSetmanagerAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimTribeSetmanagerResponse.go create mode 100644 model/openim/TaobaoOpenimTribeSetmembernickAPIRequest.go create mode 100644 model/openim/TaobaoOpenimTribeSetmembernickAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimTribeSetmembernickResponse.go create mode 100644 model/openim/TaobaoOpenimTribeUnsetmanagerAPIRequest.go create mode 100644 model/openim/TaobaoOpenimTribeUnsetmanagerAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimTribeUnsetmanagerResponse.go create mode 100644 model/openim/TaobaoOpenimTribelogsGetAPIRequest.go create mode 100644 model/openim/TaobaoOpenimTribelogsGetAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimTribelogsGetResponse.go create mode 100644 model/openim/TaobaoOpenimTribelogsImportAPIRequest.go create mode 100644 model/openim/TaobaoOpenimTribelogsImportAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimTribelogsImportResponse.go create mode 100644 model/openim/TaobaoOpenimUsersAddAPIRequest.go create mode 100644 model/openim/TaobaoOpenimUsersAddAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimUsersAddResponse.go create mode 100644 model/openim/TaobaoOpenimUsersDeleteAPIRequest.go create mode 100644 model/openim/TaobaoOpenimUsersDeleteAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimUsersDeleteResponse.go create mode 100644 model/openim/TaobaoOpenimUsersGetAPIRequest.go create mode 100644 model/openim/TaobaoOpenimUsersGetAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimUsersGetResponse.go create mode 100644 model/openim/TaobaoOpenimUsersUpdateAPIRequest.go create mode 100644 model/openim/TaobaoOpenimUsersUpdateAPIResponse.go delete mode 100644 model/openim/TaobaoOpenimUsersUpdateResponse.go create mode 100644 model/openmall/TaobaoOpenmallItemGetAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallItemGetAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallItemGetResponse.go create mode 100644 model/openmall/TaobaoOpenmallItemGetResultDo.go create mode 100644 model/openmall/TaobaoOpenmallItemSaleareaGetAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallItemSaleareaGetAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallItemSaleareaGetResponse.go create mode 100644 model/openmall/TaobaoOpenmallItemSaleareaGetResultDo.go create mode 100644 model/openmall/TaobaoOpenmallItemsQueryAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallItemsQueryAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallItemsQueryResponse.go create mode 100644 model/openmall/TaobaoOpenmallItemsQueryResultDo.go create mode 100644 model/openmall/TaobaoOpenmallRefundBatchGetAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallRefundBatchGetAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallRefundBatchGetResponse.go create mode 100644 model/openmall/TaobaoOpenmallRefundCloseAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallRefundCloseAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallRefundCloseResponse.go create mode 100644 model/openmall/TaobaoOpenmallRefundCreateAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallRefundCreateAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallRefundCreateResponse.go create mode 100644 model/openmall/TaobaoOpenmallRefundGetAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallRefundGetAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallRefundGetResponse.go create mode 100644 model/openmall/TaobaoOpenmallRefundImageUploadAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallRefundImageUploadAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallRefundImageUploadResponse.go create mode 100644 model/openmall/TaobaoOpenmallRefundMessageGetAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallRefundMessageGetAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallRefundMessageGetResponse.go create mode 100644 model/openmall/TaobaoOpenmallRefundMessageSubmitAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallRefundMessageSubmitAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallRefundMessageSubmitResponse.go create mode 100644 model/openmall/TaobaoOpenmallRefundModifyAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallRefundModifyAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallRefundModifyResponse.go create mode 100644 model/openmall/TaobaoOpenmallRefundSubmitAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallRefundSubmitAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallRefundSubmitResponse.go create mode 100644 model/openmall/TaobaoOpenmallTraceSearchAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallTraceSearchAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallTraceSearchResponse.go create mode 100644 model/openmall/TaobaoOpenmallTradeAddressParseAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallTradeAddressParseAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallTradeAddressParseResponse.go create mode 100644 model/openmall/TaobaoOpenmallTradeAgreepayAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallTradeAgreepayAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallTradeAgreepayResponse.go create mode 100644 model/openmall/TaobaoOpenmallTradeBatchGetAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallTradeBatchGetAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallTradeBatchGetResponse.go create mode 100644 model/openmall/TaobaoOpenmallTradeCloseAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallTradeCloseAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallTradeCloseResponse.go create mode 100644 model/openmall/TaobaoOpenmallTradeConfirmAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallTradeConfirmAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallTradeConfirmResponse.go create mode 100644 model/openmall/TaobaoOpenmallTradeCreateAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallTradeCreateAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallTradeCreateResponse.go create mode 100644 model/openmall/TaobaoOpenmallTradeGetAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallTradeGetAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallTradeGetResponse.go create mode 100644 model/openmall/TaobaoOpenmallTradeRenderAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallTradeRenderAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallTradeRenderResponse.go create mode 100644 model/openmall/TaobaoOpenmallTradeShipaddressUpdateAPIRequest.go create mode 100644 model/openmall/TaobaoOpenmallTradeShipaddressUpdateAPIResponse.go delete mode 100644 model/openmall/TaobaoOpenmallTradeShipaddressUpdateResponse.go create mode 100644 model/opentrade/TaobaoOpentradeActivityQueryAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeActivityQueryAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeActivityQueryResponse.go create mode 100644 model/opentrade/TaobaoOpentradeActivitySyncAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeActivitySyncAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeActivitySyncResponse.go create mode 100644 model/opentrade/TaobaoOpentradeCreateOrderAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeCreateOrderAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeCreateOrderResponse.go create mode 100644 model/opentrade/TaobaoOpentradeGroupActivtiyQueryAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeGroupActivtiyQueryAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeGroupActivtiyQueryResponse.go create mode 100644 model/opentrade/TaobaoOpentradeGroupDetailAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeGroupDetailAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeGroupDetailResponse.go create mode 100644 model/opentrade/TaobaoOpentradeGroupJoinAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeGroupJoinAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeGroupJoinResponse.go create mode 100644 model/opentrade/TaobaoOpentradeGroupMemberInfoAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeGroupMemberInfoAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeGroupMemberInfoResponse.go create mode 100644 model/opentrade/TaobaoOpentradeGroupMemberInfosAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeGroupMemberInfosAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeGroupMemberInfosResponse.go create mode 100644 model/opentrade/TaobaoOpentradeGroupOpenAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeGroupOpenAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeGroupOpenResponse.go create mode 100644 model/opentrade/TaobaoOpentradeGroupOrderAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeGroupOrderAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeGroupOrderResponse.go create mode 100644 model/opentrade/TaobaoOpentradeGroupQueryAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeGroupQueryAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeGroupQueryResponse.go create mode 100644 model/opentrade/TaobaoOpentradeGroupSyncAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeGroupSyncAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeGroupSyncResponse.go create mode 100644 model/opentrade/TaobaoOpentradeQueueQueryAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeQueueQueryAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeQueueQueryResponse.go create mode 100644 model/opentrade/TaobaoOpentradeQueueUsersMarkAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeQueueUsersMarkAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeQueueUsersMarkResponse.go create mode 100644 model/opentrade/TaobaoOpentradeSpecialItemsBindAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeSpecialItemsBindAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeSpecialItemsBindResponse.go create mode 100644 model/opentrade/TaobaoOpentradeSpecialItemsQueryAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeSpecialItemsQueryAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeSpecialItemsQueryResponse.go create mode 100644 model/opentrade/TaobaoOpentradeSpecialItemsUnbindAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeSpecialItemsUnbindAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeSpecialItemsUnbindResponse.go create mode 100644 model/opentrade/TaobaoOpentradeSpecialRuleUpdateAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeSpecialRuleUpdateAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeSpecialRuleUpdateResponse.go create mode 100644 model/opentrade/TaobaoOpentradeSpecialUsersMarkAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeSpecialUsersMarkAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeSpecialUsersMarkResponse.go create mode 100644 model/opentrade/TaobaoOpentradeSpecialUsersQueryAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeSpecialUsersQueryAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeSpecialUsersQueryResponse.go create mode 100644 model/opentrade/TaobaoOpentradeToolsItemsBindAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeToolsItemsBindAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeToolsItemsBindResponse.go create mode 100644 model/opentrade/TaobaoOpentradeToolsItemsQueryAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeToolsItemsQueryAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeToolsItemsQueryResponse.go create mode 100644 model/opentrade/TaobaoOpentradeToolsItemsUnbindAPIRequest.go create mode 100644 model/opentrade/TaobaoOpentradeToolsItemsUnbindAPIResponse.go delete mode 100644 model/opentrade/TaobaoOpentradeToolsItemsUnbindResponse.go create mode 100644 model/ott/YoukuOttAlicbFacadeserviceGetdataAPIRequest.go create mode 100644 model/ott/YoukuOttAlicbFacadeserviceGetdataAPIResponse.go delete mode 100644 model/ott/YoukuOttAlicbFacadeserviceGetdataResponse.go create mode 100644 model/ott/YoukuOttPlayserviceGetplayurlAPIRequest.go create mode 100644 model/ott/YoukuOttPlayserviceGetplayurlAPIResponse.go delete mode 100644 model/ott/YoukuOttPlayserviceGetplayurlResponse.go create mode 100644 model/ott/YunosTvscreenLauncherGetAPIRequest.go create mode 100644 model/ott/YunosTvscreenLauncherGetAPIResponse.go delete mode 100644 model/ott/YunosTvscreenLauncherGetResponse.go create mode 100644 model/ottpay/YoukuOttIotDevicelistChangeAPIRequest.go create mode 100644 model/ottpay/YoukuOttIotDevicelistChangeAPIResponse.go delete mode 100644 model/ottpay/YoukuOttIotDevicelistChangeResponse.go create mode 100644 model/ottpay/YoukuOttIotStatusPushAPIRequest.go create mode 100644 model/ottpay/YoukuOttIotStatusPushAPIResponse.go delete mode 100644 model/ottpay/YoukuOttIotStatusPushResponse.go create mode 100644 model/ottpay/YoukuOttPayOrderAuthpayAPIRequest.go create mode 100644 model/ottpay/YoukuOttPayOrderAuthpayAPIResponse.go delete mode 100644 model/ottpay/YoukuOttPayOrderAuthpayResponse.go create mode 100644 model/ottpay/YoukuOttPayOrderCreateorderAPIRequest.go create mode 100644 model/ottpay/YoukuOttPayOrderCreateorderAPIResponse.go delete mode 100644 model/ottpay/YoukuOttPayOrderCreateorderResponse.go create mode 100644 model/ottpay/YoukuOttPayOrderDeleteorderAPIRequest.go create mode 100644 model/ottpay/YoukuOttPayOrderDeleteorderAPIResponse.go delete mode 100644 model/ottpay/YoukuOttPayOrderDeleteorderResponse.go create mode 100644 model/ottpay/YoukuOttPayOrderQueryauthstateAPIRequest.go create mode 100644 model/ottpay/YoukuOttPayOrderQueryauthstateAPIResponse.go delete mode 100644 model/ottpay/YoukuOttPayOrderQueryauthstateResponse.go create mode 100644 model/ottpay/YoukuOttPayOrderQuerycporderAPIRequest.go create mode 100644 model/ottpay/YoukuOttPayOrderQuerycporderAPIResponse.go delete mode 100644 model/ottpay/YoukuOttPayOrderQuerycporderResponse.go create mode 100644 model/ottpay/YoukuOttPayOrderQueryorderAPIRequest.go create mode 100644 model/ottpay/YoukuOttPayOrderQueryorderAPIResponse.go delete mode 100644 model/ottpay/YoukuOttPayOrderQueryorderResponse.go create mode 100644 model/ottpay/YoukuOttPayOrderQueryorderbycpAPIRequest.go create mode 100644 model/ottpay/YoukuOttPayOrderQueryorderbycpAPIResponse.go delete mode 100644 model/ottpay/YoukuOttPayOrderQueryorderbycpResponse.go create mode 100644 model/oversea/AlibabaOverseaExchagerateGetAPIRequest.go create mode 100644 model/oversea/AlibabaOverseaExchagerateGetAPIResponse.go delete mode 100644 model/oversea/AlibabaOverseaExchagerateGetResponse.go create mode 100644 model/oversea/AlibabaOverseaTranslateGetAPIRequest.go create mode 100644 model/oversea/AlibabaOverseaTranslateGetAPIResponse.go delete mode 100644 model/oversea/AlibabaOverseaTranslateGetResponse.go create mode 100644 model/paimai/TaobaoPaimaiItempropsGetAPIRequest.go create mode 100644 model/paimai/TaobaoPaimaiItempropsGetAPIResponse.go delete mode 100644 model/paimai/TaobaoPaimaiItempropsGetResponse.go create mode 100644 model/pentraprism/TaobaoPentaprismTaskQueryitemAPIRequest.go create mode 100644 model/pentraprism/TaobaoPentaprismTaskQueryitemAPIResponse.go delete mode 100644 model/pentraprism/TaobaoPentaprismTaskQueryitemResponse.go create mode 100644 model/pentraprism/TaobaoPentaprismTaskTriggerAPIRequest.go create mode 100644 model/pentraprism/TaobaoPentaprismTaskTriggerAPIResponse.go delete mode 100644 model/pentraprism/TaobaoPentaprismTaskTriggerResponse.go create mode 100644 model/perfect/AlibabaPerfectPerformanceItemQueryAPIRequest.go create mode 100644 model/perfect/AlibabaPerfectPerformanceItemQueryAPIResponse.go delete mode 100644 model/perfect/AlibabaPerfectPerformanceItemQueryResponse.go create mode 100644 model/perfect/AlibabaPerfectPerformanceLocalitemEditAPIRequest.go create mode 100644 model/perfect/AlibabaPerfectPerformanceLocalitemEditAPIResponse.go delete mode 100644 model/perfect/AlibabaPerfectPerformanceLocalitemEditResponse.go create mode 100644 model/perfect/AlibabaPerfectPerformanceLocalitemPublishAPIRequest.go create mode 100644 model/perfect/AlibabaPerfectPerformanceLocalitemPublishAPIResponse.go delete mode 100644 model/perfect/AlibabaPerfectPerformanceLocalitemPublishResponse.go create mode 100644 model/product/AlibabaGpuAddSchemaGetAPIRequest.go create mode 100644 model/product/AlibabaGpuAddSchemaGetAPIResponse.go delete mode 100644 model/product/AlibabaGpuAddSchemaGetResponse.go create mode 100644 model/product/AlibabaGpuSchemaAddAPIRequest.go create mode 100644 model/product/AlibabaGpuSchemaAddAPIResponse.go delete mode 100644 model/product/AlibabaGpuSchemaAddResponse.go create mode 100644 model/product/AlibabaGpuSchemaCatsearchAPIRequest.go create mode 100644 model/product/AlibabaGpuSchemaCatsearchAPIResponse.go delete mode 100644 model/product/AlibabaGpuSchemaCatsearchResponse.go create mode 100644 model/product/AlibabaGpuSchemaUpdateAPIRequest.go create mode 100644 model/product/AlibabaGpuSchemaUpdateAPIResponse.go delete mode 100644 model/product/AlibabaGpuSchemaUpdateResponse.go create mode 100644 model/product/AlibabaGpuUpdateSchemaGetAPIRequest.go create mode 100644 model/product/AlibabaGpuUpdateSchemaGetAPIResponse.go delete mode 100644 model/product/AlibabaGpuUpdateSchemaGetResponse.go create mode 100644 model/product/AlibabaGspSupplyImageUploadAPIRequest.go create mode 100644 model/product/AlibabaGspSupplyImageUploadAPIResponse.go delete mode 100644 model/product/AlibabaGspSupplyImageUploadResponse.go create mode 100644 model/product/AlibabaItemCategoryPredictAPIRequest.go create mode 100644 model/product/AlibabaItemCategoryPredictAPIResponse.go delete mode 100644 model/product/AlibabaItemCategoryPredictResponse.go create mode 100644 model/product/AlibabaItemEditFastupdateAPIRequest.go create mode 100644 model/product/AlibabaItemEditFastupdateAPIResponse.go delete mode 100644 model/product/AlibabaItemEditFastupdateResponse.go create mode 100644 model/product/AlibabaItemEditSchemaGetAPIRequest.go create mode 100644 model/product/AlibabaItemEditSchemaGetAPIResponse.go delete mode 100644 model/product/AlibabaItemEditSchemaGetResponse.go create mode 100644 model/product/AlibabaItemEditSubmitAPIRequest.go create mode 100644 model/product/AlibabaItemEditSubmitAPIResponse.go delete mode 100644 model/product/AlibabaItemEditSubmitResponse.go create mode 100644 model/product/AlibabaItemOperateDeleteAPIRequest.go create mode 100644 model/product/AlibabaItemOperateDeleteAPIResponse.go delete mode 100644 model/product/AlibabaItemOperateDeleteResponse.go create mode 100644 model/product/AlibabaItemOperateDownshelfAPIRequest.go create mode 100644 model/product/AlibabaItemOperateDownshelfAPIResponse.go delete mode 100644 model/product/AlibabaItemOperateDownshelfResponse.go create mode 100644 model/product/AlibabaItemOperateUpshelfAPIRequest.go create mode 100644 model/product/AlibabaItemOperateUpshelfAPIResponse.go delete mode 100644 model/product/AlibabaItemOperateUpshelfResponse.go create mode 100644 model/product/AlibabaItemPublishMarketGetAPIRequest.go create mode 100644 model/product/AlibabaItemPublishMarketGetAPIResponse.go delete mode 100644 model/product/AlibabaItemPublishMarketGetResponse.go create mode 100644 model/product/AlibabaItemPublishPropsGetAPIRequest.go create mode 100644 model/product/AlibabaItemPublishPropsGetAPIResponse.go delete mode 100644 model/product/AlibabaItemPublishPropsGetResponse.go create mode 100644 model/product/AlibabaItemPublishSchemaGetAPIRequest.go create mode 100644 model/product/AlibabaItemPublishSchemaGetAPIResponse.go delete mode 100644 model/product/AlibabaItemPublishSchemaGetResponse.go create mode 100644 model/product/AlibabaItemPublishSubmitAPIRequest.go create mode 100644 model/product/AlibabaItemPublishSubmitAPIResponse.go delete mode 100644 model/product/AlibabaItemPublishSubmitResponse.go create mode 100644 model/product/AlibabaJymIndustryInformationCallbakAPIRequest.go create mode 100644 model/product/AlibabaJymIndustryInformationCallbakAPIResponse.go delete mode 100644 model/product/AlibabaJymIndustryInformationCallbakResponse.go create mode 100644 model/product/AlibabaWholesaleGoodsGetAPIRequest.go create mode 100644 model/product/AlibabaWholesaleGoodsGetAPIResponse.go delete mode 100644 model/product/AlibabaWholesaleGoodsGetResponse.go create mode 100644 model/product/AlibabaWholesaleGoodsSearchAPIRequest.go create mode 100644 model/product/AlibabaWholesaleGoodsSearchAPIResponse.go delete mode 100644 model/product/AlibabaWholesaleGoodsSearchResponse.go create mode 100644 model/product/AlibabaWholesaleShippinglineTemplateInitAPIRequest.go create mode 100644 model/product/AlibabaWholesaleShippinglineTemplateInitAPIResponse.go delete mode 100644 model/product/AlibabaWholesaleShippinglineTemplateInitResponse.go create mode 100644 model/product/AliexpressSocialItemPromotionAPIRequest.go create mode 100644 model/product/AliexpressSocialItemPromotionAPIResponse.go delete mode 100644 model/product/AliexpressSocialItemPromotionResponse.go create mode 100644 model/product/AliexpressSocialItemRankingAPIRequest.go create mode 100644 model/product/AliexpressSocialItemRankingAPIResponse.go delete mode 100644 model/product/AliexpressSocialItemRankingResponse.go create mode 100644 model/product/AliexpressSocialItemSearchAPIRequest.go create mode 100644 model/product/AliexpressSocialItemSearchAPIResponse.go delete mode 100644 model/product/AliexpressSocialItemSearchResponse.go create mode 100644 model/product/AlitripTravelElementsSearchAPIRequest.go create mode 100644 model/product/AlitripTravelElementsSearchAPIResponse.go delete mode 100644 model/product/AlitripTravelElementsSearchResponse.go create mode 100644 model/product/CainiaoCntecItemChangeMessageAPIRequest.go create mode 100644 model/product/CainiaoCntecItemChangeMessageAPIResponse.go delete mode 100644 model/product/CainiaoCntecItemChangeMessageResponse.go create mode 100644 model/product/TaobaoAftersaleGetAPIRequest.go create mode 100644 model/product/TaobaoAftersaleGetAPIResponse.go delete mode 100644 model/product/TaobaoAftersaleGetResponse.go create mode 100644 model/product/TaobaoBaikeImportZhubaoDataAPIRequest.go create mode 100644 model/product/TaobaoBaikeImportZhubaoDataAPIResponse.go delete mode 100644 model/product/TaobaoBaikeImportZhubaoDataResponse.go create mode 100644 model/product/TaobaoBaikeImportZhubaoPictureAPIRequest.go create mode 100644 model/product/TaobaoBaikeImportZhubaoPictureAPIResponse.go delete mode 100644 model/product/TaobaoBaikeImportZhubaoPictureResponse.go create mode 100644 model/product/TaobaoBanamadpcItemAddAPIRequest.go create mode 100644 model/product/TaobaoBanamadpcItemAddAPIResponse.go delete mode 100644 model/product/TaobaoBanamadpcItemAddResponse.go create mode 100644 model/product/TaobaoBanamadpcItemEditRenderAPIRequest.go create mode 100644 model/product/TaobaoBanamadpcItemEditRenderAPIResponse.go delete mode 100644 model/product/TaobaoBanamadpcItemEditRenderResponse.go create mode 100644 model/product/TaobaoBanamadpcItemRenderAPIRequest.go create mode 100644 model/product/TaobaoBanamadpcItemRenderAPIResponse.go delete mode 100644 model/product/TaobaoBanamadpcItemRenderResponse.go create mode 100644 model/product/TaobaoBanamadpcItemSelectPropAPIRequest.go create mode 100644 model/product/TaobaoBanamadpcItemSelectPropAPIResponse.go delete mode 100644 model/product/TaobaoBanamadpcItemSelectPropResponse.go create mode 100644 model/product/TaobaoBanamadpcItemUpdateAPIRequest.go create mode 100644 model/product/TaobaoBanamadpcItemUpdateAPIResponse.go delete mode 100644 model/product/TaobaoBanamadpcItemUpdateResponse.go create mode 100644 model/product/TaobaoItemAddAPIRequest.go create mode 100644 model/product/TaobaoItemAddAPIResponse.go delete mode 100644 model/product/TaobaoItemAddResponse.go create mode 100644 model/product/TaobaoItemAnchorGetAPIRequest.go create mode 100644 model/product/TaobaoItemAnchorGetAPIResponse.go delete mode 100644 model/product/TaobaoItemAnchorGetResponse.go create mode 100644 model/product/TaobaoItemBarcodeUpdateAPIRequest.go create mode 100644 model/product/TaobaoItemBarcodeUpdateAPIResponse.go delete mode 100644 model/product/TaobaoItemBarcodeUpdateResponse.go create mode 100644 model/product/TaobaoItemCarturlGetAPIRequest.go create mode 100644 model/product/TaobaoItemCarturlGetAPIResponse.go delete mode 100644 model/product/TaobaoItemCarturlGetResponse.go create mode 100644 model/product/TaobaoItemDeleteAPIRequest.go create mode 100644 model/product/TaobaoItemDeleteAPIResponse.go delete mode 100644 model/product/TaobaoItemDeleteResponse.go create mode 100644 model/product/TaobaoItemImgDeleteAPIRequest.go create mode 100644 model/product/TaobaoItemImgDeleteAPIResponse.go delete mode 100644 model/product/TaobaoItemImgDeleteResponse.go create mode 100644 model/product/TaobaoItemImgUploadAPIRequest.go create mode 100644 model/product/TaobaoItemImgUploadAPIResponse.go delete mode 100644 model/product/TaobaoItemImgUploadResponse.go create mode 100644 model/product/TaobaoItemJointImgAPIRequest.go create mode 100644 model/product/TaobaoItemJointImgAPIResponse.go delete mode 100644 model/product/TaobaoItemJointImgResponse.go create mode 100644 model/product/TaobaoItemJointPropimgAPIRequest.go create mode 100644 model/product/TaobaoItemJointPropimgAPIResponse.go delete mode 100644 model/product/TaobaoItemJointPropimgResponse.go create mode 100644 model/product/TaobaoItemPermitCheckAPIRequest.go create mode 100644 model/product/TaobaoItemPermitCheckAPIResponse.go delete mode 100644 model/product/TaobaoItemPermitCheckResponse.go create mode 100644 model/product/TaobaoItemPriceUpdateAPIRequest.go create mode 100644 model/product/TaobaoItemPriceUpdateAPIResponse.go delete mode 100644 model/product/TaobaoItemPriceUpdateResponse.go create mode 100644 model/product/TaobaoItemPromotionRuleGetAPIRequest.go create mode 100644 model/product/TaobaoItemPromotionRuleGetAPIResponse.go delete mode 100644 model/product/TaobaoItemPromotionRuleGetResponse.go create mode 100644 model/product/TaobaoItemPropimgDeleteAPIRequest.go create mode 100644 model/product/TaobaoItemPropimgDeleteAPIResponse.go delete mode 100644 model/product/TaobaoItemPropimgDeleteResponse.go create mode 100644 model/product/TaobaoItemPropimgUploadAPIRequest.go create mode 100644 model/product/TaobaoItemPropimgUploadAPIResponse.go delete mode 100644 model/product/TaobaoItemPropimgUploadResponse.go create mode 100644 model/product/TaobaoItemQualificationDisplayGetAPIRequest.go create mode 100644 model/product/TaobaoItemQualificationDisplayGetAPIResponse.go delete mode 100644 model/product/TaobaoItemQualificationDisplayGetResponse.go create mode 100644 model/product/TaobaoItemQuantityUpdateAPIRequest.go create mode 100644 model/product/TaobaoItemQuantityUpdateAPIResponse.go delete mode 100644 model/product/TaobaoItemQuantityUpdateResponse.go create mode 100644 model/product/TaobaoItemSellerGetAPIRequest.go create mode 100644 model/product/TaobaoItemSellerGetAPIResponse.go delete mode 100644 model/product/TaobaoItemSellerGetResponse.go create mode 100644 model/product/TaobaoItemSkuAddAPIRequest.go create mode 100644 model/product/TaobaoItemSkuAddAPIResponse.go delete mode 100644 model/product/TaobaoItemSkuAddResponse.go create mode 100644 model/product/TaobaoItemSkuDeleteAPIRequest.go create mode 100644 model/product/TaobaoItemSkuDeleteAPIResponse.go delete mode 100644 model/product/TaobaoItemSkuDeleteResponse.go create mode 100644 model/product/TaobaoItemSkuGetAPIRequest.go create mode 100644 model/product/TaobaoItemSkuGetAPIResponse.go delete mode 100644 model/product/TaobaoItemSkuGetResponse.go create mode 100644 model/product/TaobaoItemSkuPriceUpdateAPIRequest.go create mode 100644 model/product/TaobaoItemSkuPriceUpdateAPIResponse.go delete mode 100644 model/product/TaobaoItemSkuPriceUpdateResponse.go create mode 100644 model/product/TaobaoItemSkuUpdateAPIRequest.go create mode 100644 model/product/TaobaoItemSkuUpdateAPIResponse.go delete mode 100644 model/product/TaobaoItemSkuUpdateResponse.go create mode 100644 model/product/TaobaoItemSkusGetAPIRequest.go create mode 100644 model/product/TaobaoItemSkusGetAPIResponse.go delete mode 100644 model/product/TaobaoItemSkusGetResponse.go create mode 100644 model/product/TaobaoItemTemplatesGetAPIRequest.go create mode 100644 model/product/TaobaoItemTemplatesGetAPIResponse.go delete mode 100644 model/product/TaobaoItemTemplatesGetResponse.go create mode 100644 model/product/TaobaoItemUpdateAPIRequest.go create mode 100644 model/product/TaobaoItemUpdateAPIResponse.go create mode 100644 model/product/TaobaoItemUpdateDelistingAPIRequest.go create mode 100644 model/product/TaobaoItemUpdateDelistingAPIResponse.go delete mode 100644 model/product/TaobaoItemUpdateDelistingResponse.go create mode 100644 model/product/TaobaoItemUpdateDelistingTmallAPIRequest.go create mode 100644 model/product/TaobaoItemUpdateDelistingTmallAPIResponse.go delete mode 100644 model/product/TaobaoItemUpdateDelistingTmallResponse.go create mode 100644 model/product/TaobaoItemUpdateListingAPIRequest.go create mode 100644 model/product/TaobaoItemUpdateListingAPIResponse.go delete mode 100644 model/product/TaobaoItemUpdateListingResponse.go create mode 100644 model/product/TaobaoItemUpdateListingTmallAPIRequest.go create mode 100644 model/product/TaobaoItemUpdateListingTmallAPIResponse.go delete mode 100644 model/product/TaobaoItemUpdateListingTmallResponse.go delete mode 100644 model/product/TaobaoItemUpdateResponse.go create mode 100644 model/product/TaobaoItemsCustomGetAPIRequest.go create mode 100644 model/product/TaobaoItemsCustomGetAPIResponse.go delete mode 100644 model/product/TaobaoItemsCustomGetResponse.go create mode 100644 model/product/TaobaoItemsInventoryGetAPIRequest.go create mode 100644 model/product/TaobaoItemsInventoryGetAPIResponse.go delete mode 100644 model/product/TaobaoItemsInventoryGetResponse.go create mode 100644 model/product/TaobaoItemsOnsaleGetAPIRequest.go create mode 100644 model/product/TaobaoItemsOnsaleGetAPIResponse.go delete mode 100644 model/product/TaobaoItemsOnsaleGetResponse.go create mode 100644 model/product/TaobaoItemsSellerListGetAPIRequest.go create mode 100644 model/product/TaobaoItemsSellerListGetAPIResponse.go delete mode 100644 model/product/TaobaoItemsSellerListGetResponse.go create mode 100644 model/product/TaobaoMiniappItemsGetAPIRequest.go create mode 100644 model/product/TaobaoMiniappItemsGetAPIResponse.go delete mode 100644 model/product/TaobaoMiniappItemsGetResponse.go create mode 100644 model/product/TaobaoProductAddAPIRequest.go create mode 100644 model/product/TaobaoProductAddAPIResponse.go delete mode 100644 model/product/TaobaoProductAddResponse.go create mode 100644 model/product/TaobaoProductGetAPIRequest.go create mode 100644 model/product/TaobaoProductGetAPIResponse.go delete mode 100644 model/product/TaobaoProductGetResponse.go create mode 100644 model/product/TaobaoProductImgUploadAPIRequest.go create mode 100644 model/product/TaobaoProductImgUploadAPIResponse.go delete mode 100644 model/product/TaobaoProductImgUploadResponse.go create mode 100644 model/product/TaobaoProductPropimgUploadAPIRequest.go create mode 100644 model/product/TaobaoProductPropimgUploadAPIResponse.go delete mode 100644 model/product/TaobaoProductPropimgUploadResponse.go create mode 100644 model/product/TaobaoProductUpdateAPIRequest.go create mode 100644 model/product/TaobaoProductUpdateAPIResponse.go delete mode 100644 model/product/TaobaoProductUpdateResponse.go create mode 100644 model/product/TaobaoProductsGetAPIRequest.go create mode 100644 model/product/TaobaoProductsGetAPIResponse.go delete mode 100644 model/product/TaobaoProductsGetResponse.go create mode 100644 model/product/TaobaoProductsSearchAPIRequest.go create mode 100644 model/product/TaobaoProductsSearchAPIResponse.go delete mode 100644 model/product/TaobaoProductsSearchResponse.go create mode 100644 model/product/TaobaoSkusCustomGetAPIRequest.go create mode 100644 model/product/TaobaoSkusCustomGetAPIResponse.go delete mode 100644 model/product/TaobaoSkusCustomGetResponse.go create mode 100644 model/product/TaobaoSkusQuantityUpdateAPIRequest.go create mode 100644 model/product/TaobaoSkusQuantityUpdateAPIResponse.go delete mode 100644 model/product/TaobaoSkusQuantityUpdateResponse.go create mode 100644 model/product/TaobaoUmpPromotionGetAPIRequest.go create mode 100644 model/product/TaobaoUmpPromotionGetAPIResponse.go delete mode 100644 model/product/TaobaoUmpPromotionGetResponse.go create mode 100644 model/product/TaobaoXhotelIntlAriNotifyAPIRequest.go create mode 100644 model/product/TaobaoXhotelIntlAriNotifyAPIResponse.go delete mode 100644 model/product/TaobaoXhotelIntlAriNotifyResponse.go create mode 100644 model/product/TmallItemAddSchemaGetAPIRequest.go create mode 100644 model/product/TmallItemAddSchemaGetAPIResponse.go delete mode 100644 model/product/TmallItemAddSchemaGetResponse.go create mode 100644 model/product/TmallItemAddSimpleschemaGetAPIRequest.go create mode 100644 model/product/TmallItemAddSimpleschemaGetAPIResponse.go delete mode 100644 model/product/TmallItemAddSimpleschemaGetResponse.go create mode 100644 model/product/TmallItemCalculateHscodeGetAPIRequest.go create mode 100644 model/product/TmallItemCalculateHscodeGetAPIResponse.go delete mode 100644 model/product/TmallItemCalculateHscodeGetResponse.go create mode 100644 model/product/TmallItemCombineGetAPIRequest.go create mode 100644 model/product/TmallItemCombineGetAPIResponse.go delete mode 100644 model/product/TmallItemCombineGetResponse.go create mode 100644 model/product/TmallItemDapeiTemplateQueryAPIRequest.go create mode 100644 model/product/TmallItemDapeiTemplateQueryAPIResponse.go delete mode 100644 model/product/TmallItemDapeiTemplateQueryResponse.go create mode 100644 model/product/TmallItemDescModulesGetAPIRequest.go create mode 100644 model/product/TmallItemDescModulesGetAPIResponse.go delete mode 100644 model/product/TmallItemDescModulesGetResponse.go create mode 100644 model/product/TmallItemHscodeAuditResultsQueryAPIRequest.go create mode 100644 model/product/TmallItemHscodeAuditResultsQueryAPIResponse.go delete mode 100644 model/product/TmallItemHscodeAuditResultsQueryResponse.go create mode 100644 model/product/TmallItemHscodeDetailGetAPIRequest.go create mode 100644 model/product/TmallItemHscodeDetailGetAPIResponse.go delete mode 100644 model/product/TmallItemHscodeDetailGetResponse.go create mode 100644 model/product/TmallItemIncrementUpdateSchemaGetAPIRequest.go create mode 100644 model/product/TmallItemIncrementUpdateSchemaGetAPIResponse.go delete mode 100644 model/product/TmallItemIncrementUpdateSchemaGetResponse.go create mode 100644 model/product/TmallItemOuteridUpdateAPIRequest.go create mode 100644 model/product/TmallItemOuteridUpdateAPIResponse.go delete mode 100644 model/product/TmallItemOuteridUpdateResponse.go create mode 100644 model/product/TmallItemPriceUpdateAPIRequest.go create mode 100644 model/product/TmallItemPriceUpdateAPIResponse.go delete mode 100644 model/product/TmallItemPriceUpdateResponse.go create mode 100644 model/product/TmallItemQuantityUpdateAPIRequest.go create mode 100644 model/product/TmallItemQuantityUpdateAPIResponse.go delete mode 100644 model/product/TmallItemQuantityUpdateResponse.go create mode 100644 model/product/TmallItemSchemaAddAPIRequest.go create mode 100644 model/product/TmallItemSchemaAddAPIResponse.go delete mode 100644 model/product/TmallItemSchemaAddResponse.go create mode 100644 model/product/TmallItemSchemaIncrementUpdateAPIRequest.go create mode 100644 model/product/TmallItemSchemaIncrementUpdateAPIResponse.go delete mode 100644 model/product/TmallItemSchemaIncrementUpdateResponse.go create mode 100644 model/product/TmallItemSchemaUpdateAPIRequest.go create mode 100644 model/product/TmallItemSchemaUpdateAPIResponse.go delete mode 100644 model/product/TmallItemSchemaUpdateResponse.go create mode 100644 model/product/TmallItemShiptimeUpdateAPIRequest.go create mode 100644 model/product/TmallItemShiptimeUpdateAPIResponse.go delete mode 100644 model/product/TmallItemShiptimeUpdateResponse.go create mode 100644 model/product/TmallItemSimpleschemaAddAPIRequest.go create mode 100644 model/product/TmallItemSimpleschemaAddAPIResponse.go delete mode 100644 model/product/TmallItemSimpleschemaAddResponse.go create mode 100644 model/product/TmallItemSimpleschemaUpdateAPIRequest.go create mode 100644 model/product/TmallItemSimpleschemaUpdateAPIResponse.go delete mode 100644 model/product/TmallItemSimpleschemaUpdateResponse.go create mode 100644 model/product/TmallItemSizemappingTemplateCreateAPIRequest.go create mode 100644 model/product/TmallItemSizemappingTemplateCreateAPIResponse.go delete mode 100644 model/product/TmallItemSizemappingTemplateCreateResponse.go create mode 100644 model/product/TmallItemSizemappingTemplateDeleteAPIRequest.go create mode 100644 model/product/TmallItemSizemappingTemplateDeleteAPIResponse.go delete mode 100644 model/product/TmallItemSizemappingTemplateDeleteResponse.go create mode 100644 model/product/TmallItemSizemappingTemplateGetAPIRequest.go create mode 100644 model/product/TmallItemSizemappingTemplateGetAPIResponse.go delete mode 100644 model/product/TmallItemSizemappingTemplateGetResponse.go create mode 100644 model/product/TmallItemSizemappingTemplateUpdateAPIRequest.go create mode 100644 model/product/TmallItemSizemappingTemplateUpdateAPIResponse.go delete mode 100644 model/product/TmallItemSizemappingTemplateUpdateResponse.go create mode 100644 model/product/TmallItemSizemappingTemplatesListAPIRequest.go create mode 100644 model/product/TmallItemSizemappingTemplatesListAPIResponse.go delete mode 100644 model/product/TmallItemSizemappingTemplatesListResponse.go create mode 100644 model/product/TmallItemStoreSchemaUpdateAPIRequest.go create mode 100644 model/product/TmallItemStoreSchemaUpdateAPIResponse.go delete mode 100644 model/product/TmallItemStoreSchemaUpdateResponse.go create mode 100644 model/product/TmallItemStoreUpdateSchemaGetAPIRequest.go create mode 100644 model/product/TmallItemStoreUpdateSchemaGetAPIResponse.go delete mode 100644 model/product/TmallItemStoreUpdateSchemaGetResponse.go create mode 100644 model/product/TmallItemUpdateSchemaGetAPIRequest.go create mode 100644 model/product/TmallItemUpdateSchemaGetAPIResponse.go delete mode 100644 model/product/TmallItemUpdateSchemaGetResponse.go create mode 100644 model/product/TmallItemUpdateSimpleschemaGetAPIRequest.go create mode 100644 model/product/TmallItemUpdateSimpleschemaGetAPIResponse.go delete mode 100644 model/product/TmallItemUpdateSimpleschemaGetResponse.go create mode 100644 model/product/TmallItemVipAddSchemaGetAPIRequest.go create mode 100644 model/product/TmallItemVipAddSchemaGetAPIResponse.go delete mode 100644 model/product/TmallItemVipAddSchemaGetResponse.go create mode 100644 model/product/TmallItemVipSchemaAddAPIRequest.go create mode 100644 model/product/TmallItemVipSchemaAddAPIResponse.go delete mode 100644 model/product/TmallItemVipSchemaAddResponse.go create mode 100644 model/product/TmallItemVipSchemaUpdateAPIRequest.go create mode 100644 model/product/TmallItemVipSchemaUpdateAPIResponse.go delete mode 100644 model/product/TmallItemVipSchemaUpdateResponse.go create mode 100644 model/product/TmallItemVipUpdateSchemaGetAPIRequest.go create mode 100644 model/product/TmallItemVipUpdateSchemaGetAPIResponse.go delete mode 100644 model/product/TmallItemVipUpdateSchemaGetResponse.go create mode 100644 model/product/TmallProductAddSchemaGetAPIRequest.go create mode 100644 model/product/TmallProductAddSchemaGetAPIResponse.go delete mode 100644 model/product/TmallProductAddSchemaGetResponse.go create mode 100644 model/product/TmallProductMatchSchemaGetAPIRequest.go create mode 100644 model/product/TmallProductMatchSchemaGetAPIResponse.go delete mode 100644 model/product/TmallProductMatchSchemaGetResponse.go create mode 100644 model/product/TmallProductSchemaAddAPIRequest.go create mode 100644 model/product/TmallProductSchemaAddAPIResponse.go delete mode 100644 model/product/TmallProductSchemaAddResponse.go create mode 100644 model/product/TmallProductSchemaGetAPIRequest.go create mode 100644 model/product/TmallProductSchemaGetAPIResponse.go delete mode 100644 model/product/TmallProductSchemaGetResponse.go create mode 100644 model/product/TmallProductSchemaMatchAPIRequest.go create mode 100644 model/product/TmallProductSchemaMatchAPIResponse.go delete mode 100644 model/product/TmallProductSchemaMatchResponse.go create mode 100644 model/product/TmallProductSchemaUpdateAPIRequest.go create mode 100644 model/product/TmallProductSchemaUpdateAPIResponse.go delete mode 100644 model/product/TmallProductSchemaUpdateResponse.go create mode 100644 model/product/TmallProductSpecAddAPIRequest.go create mode 100644 model/product/TmallProductSpecAddAPIResponse.go delete mode 100644 model/product/TmallProductSpecAddResponse.go create mode 100644 model/product/TmallProductSpecGetAPIRequest.go create mode 100644 model/product/TmallProductSpecGetAPIResponse.go delete mode 100644 model/product/TmallProductSpecGetResponse.go create mode 100644 model/product/TmallProductSpecPicUploadAPIRequest.go create mode 100644 model/product/TmallProductSpecPicUploadAPIResponse.go delete mode 100644 model/product/TmallProductSpecPicUploadResponse.go create mode 100644 model/product/TmallProductSpecsGetAPIRequest.go create mode 100644 model/product/TmallProductSpecsGetAPIResponse.go delete mode 100644 model/product/TmallProductSpecsGetResponse.go create mode 100644 model/product/TmallProductSpecsTicketGetAPIRequest.go create mode 100644 model/product/TmallProductSpecsTicketGetAPIResponse.go delete mode 100644 model/product/TmallProductSpecsTicketGetResponse.go create mode 100644 model/product/TmallProductTemplateGetAPIRequest.go create mode 100644 model/product/TmallProductTemplateGetAPIResponse.go delete mode 100644 model/product/TmallProductTemplateGetResponse.go create mode 100644 model/product/TmallProductUpdateSchemaGetAPIRequest.go create mode 100644 model/product/TmallProductUpdateSchemaGetAPIResponse.go delete mode 100644 model/product/TmallProductUpdateSchemaGetResponse.go create mode 100644 model/promotion/AlibabaArgusUpdateredriskAPIRequest.go create mode 100644 model/promotion/AlibabaArgusUpdateredriskAPIResponse.go delete mode 100644 model/promotion/AlibabaArgusUpdateredriskResponse.go create mode 100644 model/promotion/AlibabaAsrDataservicePromotionruleDeleteAPIRequest.go create mode 100644 model/promotion/AlibabaAsrDataservicePromotionruleDeleteAPIResponse.go delete mode 100644 model/promotion/AlibabaAsrDataservicePromotionruleDeleteResponse.go create mode 100644 model/promotion/AlibabaAsrDataservicePromotionruleQueryAPIRequest.go create mode 100644 model/promotion/AlibabaAsrDataservicePromotionruleQueryAPIResponse.go delete mode 100644 model/promotion/AlibabaAsrDataservicePromotionruleQueryResponse.go create mode 100644 model/promotion/AlibabaAsrDataservicePromotionruleWriteAPIRequest.go create mode 100644 model/promotion/AlibabaAsrDataservicePromotionruleWriteAPIResponse.go delete mode 100644 model/promotion/AlibabaAsrDataservicePromotionruleWriteResponse.go create mode 100644 model/promotion/AlibabaBenefitDrawAPIRequest.go create mode 100644 model/promotion/AlibabaBenefitDrawAPIResponse.go delete mode 100644 model/promotion/AlibabaBenefitDrawResponse.go create mode 100644 model/promotion/AlibabaBenefitQueryAPIRequest.go create mode 100644 model/promotion/AlibabaBenefitQueryAPIResponse.go delete mode 100644 model/promotion/AlibabaBenefitQueryResponse.go create mode 100644 model/promotion/AlibabaInteractLotterydrawDodrawAPIRequest.go create mode 100644 model/promotion/AlibabaInteractLotterydrawDodrawAPIResponse.go delete mode 100644 model/promotion/AlibabaInteractLotterydrawDodrawResponse.go create mode 100644 model/promotion/AlibabaInteractLotterydrawDodrawResultDto.go create mode 100644 model/promotion/AlibabaLatourStrategyIssueAPIRequest.go create mode 100644 model/promotion/AlibabaLatourStrategyIssueAPIResponse.go delete mode 100644 model/promotion/AlibabaLatourStrategyIssueResponse.go create mode 100644 model/promotion/AlibabaLatourStrategyShowAPIRequest.go create mode 100644 model/promotion/AlibabaLatourStrategyShowAPIResponse.go delete mode 100644 model/promotion/AlibabaLatourStrategyShowResponse.go create mode 100644 model/promotion/AlibabaMarketingLotteryActivityBindAPIRequest.go create mode 100644 model/promotion/AlibabaMarketingLotteryActivityBindAPIResponse.go delete mode 100644 model/promotion/AlibabaMarketingLotteryActivityBindResponse.go create mode 100644 model/promotion/AlibabaMarketingLotteryActivityCreateAPIRequest.go create mode 100644 model/promotion/AlibabaMarketingLotteryActivityCreateAPIResponse.go delete mode 100644 model/promotion/AlibabaMarketingLotteryActivityCreateResponse.go create mode 100644 model/promotion/AlibabaMarketingLotteryActivityDeleteAPIRequest.go create mode 100644 model/promotion/AlibabaMarketingLotteryActivityDeleteAPIResponse.go delete mode 100644 model/promotion/AlibabaMarketingLotteryActivityDeleteResponse.go create mode 100644 model/promotion/AlibabaMarketingLotteryActivityQueryAPIRequest.go create mode 100644 model/promotion/AlibabaMarketingLotteryActivityQueryAPIResponse.go delete mode 100644 model/promotion/AlibabaMarketingLotteryActivityQueryResponse.go create mode 100644 model/promotion/AlibabaMarketingLotteryActivityUnbindAPIRequest.go create mode 100644 model/promotion/AlibabaMarketingLotteryActivityUnbindAPIResponse.go delete mode 100644 model/promotion/AlibabaMarketingLotteryActivityUnbindResponse.go create mode 100644 model/promotion/AlibabaMarketingLotteryAwardAppendAPIRequest.go create mode 100644 model/promotion/AlibabaMarketingLotteryAwardAppendAPIResponse.go delete mode 100644 model/promotion/AlibabaMarketingLotteryAwardAppendResponse.go create mode 100644 model/promotion/AlibabaMarketingLotteryAwardQueryAPIRequest.go create mode 100644 model/promotion/AlibabaMarketingLotteryAwardQueryAPIResponse.go delete mode 100644 model/promotion/AlibabaMarketingLotteryAwardQueryResponse.go create mode 100644 model/promotion/AlibabaMarketingLotteryDrawDodrawAPIRequest.go create mode 100644 model/promotion/AlibabaMarketingLotteryDrawDodrawAPIResponse.go delete mode 100644 model/promotion/AlibabaMarketingLotteryDrawDodrawResponse.go create mode 100644 model/promotion/AlibabaMarketingLotteryRuleSaveAPIRequest.go create mode 100644 model/promotion/AlibabaMarketingLotteryRuleSaveAPIResponse.go delete mode 100644 model/promotion/AlibabaMarketingLotteryRuleSaveResponse.go create mode 100644 model/promotion/AlibabaMarketingLotterySchemaCreateAPIRequest.go create mode 100644 model/promotion/AlibabaMarketingLotterySchemaCreateAPIResponse.go delete mode 100644 model/promotion/AlibabaMarketingLotterySchemaCreateResponse.go create mode 100644 model/promotion/AlibabaMoutonActivityListAPIRequest.go create mode 100644 model/promotion/AlibabaMoutonActivityListAPIResponse.go delete mode 100644 model/promotion/AlibabaMoutonActivityListResponse.go create mode 100644 model/promotion/AlibabaWdkCouponAbandonAPIRequest.go create mode 100644 model/promotion/AlibabaWdkCouponAbandonAPIResponse.go delete mode 100644 model/promotion/AlibabaWdkCouponAbandonResponse.go create mode 100644 model/promotion/AlibabaWdkCouponSkuAddAPIRequest.go create mode 100644 model/promotion/AlibabaWdkCouponSkuAddAPIResponse.go delete mode 100644 model/promotion/AlibabaWdkCouponSkuAddResponse.go create mode 100644 model/promotion/AlibabaWdkCouponSkuQueryAPIRequest.go create mode 100644 model/promotion/AlibabaWdkCouponSkuQueryAPIResponse.go delete mode 100644 model/promotion/AlibabaWdkCouponSkuQueryResponse.go create mode 100644 model/promotion/AlibabaWdkCouponSkuRemoveAPIRequest.go create mode 100644 model/promotion/AlibabaWdkCouponSkuRemoveAPIResponse.go delete mode 100644 model/promotion/AlibabaWdkCouponSkuRemoveResponse.go create mode 100644 model/promotion/AlibabaWdkCouponSpreadApplyAPIRequest.go create mode 100644 model/promotion/AlibabaWdkCouponSpreadApplyAPIResponse.go delete mode 100644 model/promotion/AlibabaWdkCouponSpreadApplyResponse.go create mode 100644 model/promotion/AlibabaWdkCouponTemplateCreateAPIRequest.go create mode 100644 model/promotion/AlibabaWdkCouponTemplateCreateAPIResponse.go delete mode 100644 model/promotion/AlibabaWdkCouponTemplateCreateResponse.go create mode 100644 model/promotion/AlibabaWdkCouponTemplateQueryAPIRequest.go create mode 100644 model/promotion/AlibabaWdkCouponTemplateQueryAPIResponse.go delete mode 100644 model/promotion/AlibabaWdkCouponTemplateQueryResponse.go create mode 100644 model/promotion/AlibabaWdkCouponTemplateTerminateAPIRequest.go create mode 100644 model/promotion/AlibabaWdkCouponTemplateTerminateAPIResponse.go delete mode 100644 model/promotion/AlibabaWdkCouponTemplateTerminateResponse.go create mode 100644 model/promotion/AlibabaWdkCouponTemplateUpdateAPIRequest.go create mode 100644 model/promotion/AlibabaWdkCouponTemplateUpdateAPIResponse.go delete mode 100644 model/promotion/AlibabaWdkCouponTemplateUpdateResponse.go create mode 100644 model/promotion/AlibabaWdkMarketingCouponSendmaAPIRequest.go create mode 100644 model/promotion/AlibabaWdkMarketingCouponSendmaAPIResponse.go delete mode 100644 model/promotion/AlibabaWdkMarketingCouponSendmaResponse.go create mode 100644 model/promotion/TaobaoCardExpandcardQueryAPIRequest.go create mode 100644 model/promotion/TaobaoCardExpandcardQueryAPIResponse.go delete mode 100644 model/promotion/TaobaoCardExpandcardQueryResponse.go create mode 100644 model/promotion/TaobaoMarketingPromotionKfcAPIRequest.go create mode 100644 model/promotion/TaobaoMarketingPromotionKfcAPIResponse.go delete mode 100644 model/promotion/TaobaoMarketingPromotionKfcResponse.go create mode 100644 model/promotion/TaobaoMobilePromotionBenefitActivitySendAPIRequest.go create mode 100644 model/promotion/TaobaoMobilePromotionBenefitActivitySendAPIResponse.go delete mode 100644 model/promotion/TaobaoMobilePromotionBenefitActivitySendResponse.go create mode 100644 model/promotion/TaobaoMobilePromotionBenefitActivitySendShareAPIRequest.go create mode 100644 model/promotion/TaobaoMobilePromotionBenefitActivitySendShareAPIResponse.go delete mode 100644 model/promotion/TaobaoMobilePromotionBenefitActivitySendShareResponse.go create mode 100644 model/promotion/TaobaoMobilePromotionCouponApplyAPIRequest.go create mode 100644 model/promotion/TaobaoMobilePromotionCouponApplyAPIResponse.go delete mode 100644 model/promotion/TaobaoMobilePromotionCouponApplyResponse.go create mode 100644 model/promotion/TaobaoMobilePromotionCouponSellerSearchAPIRequest.go create mode 100644 model/promotion/TaobaoMobilePromotionCouponSellerSearchAPIResponse.go delete mode 100644 model/promotion/TaobaoMobilePromotionCouponSellerSearchResponse.go create mode 100644 model/promotion/TaobaoPromotionActivityGetAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionActivityGetAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionActivityGetResponse.go create mode 100644 model/promotion/TaobaoPromotionBenefitActivityDeleteAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionBenefitActivityDeleteAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionBenefitActivityDeleteResponse.go create mode 100644 model/promotion/TaobaoPromotionBenefitActivityDetailGetAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionBenefitActivityDetailGetAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionBenefitActivityDetailGetResponse.go create mode 100644 model/promotion/TaobaoPromotionBenefitActivityRelationAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionBenefitActivityRelationAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionBenefitActivityRelationResponse.go create mode 100644 model/promotion/TaobaoPromotionBenefitActivitySendAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionBenefitActivitySendAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionBenefitActivitySendResponse.go create mode 100644 model/promotion/TaobaoPromotionBenefitActivityTimeUpdateAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionBenefitActivityTimeUpdateAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionBenefitActivityTimeUpdateResponse.go create mode 100644 model/promotion/TaobaoPromotionBenefitActivityUpdateAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionBenefitActivityUpdateAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionBenefitActivityUpdateResponse.go create mode 100644 model/promotion/TaobaoPromotionBenefitSelectorAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionBenefitSelectorAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionBenefitSelectorResponse.go create mode 100644 model/promotion/TaobaoPromotionCouponAddAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionCouponAddAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionCouponAddResponse.go create mode 100644 model/promotion/TaobaoPromotionCouponApplyAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionCouponApplyAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionCouponApplyResponse.go create mode 100644 model/promotion/TaobaoPromotionCouponBuyerSearchAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionCouponBuyerSearchAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionCouponBuyerSearchResponse.go create mode 100644 model/promotion/TaobaoPromotionCouponSellerSearchAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionCouponSellerSearchAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionCouponSellerSearchResponse.go create mode 100644 model/promotion/TaobaoPromotionCouponSendAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionCouponSendAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionCouponSendResponse.go create mode 100644 model/promotion/TaobaoPromotionCouponSnsSendAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionCouponSnsSendAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionCouponSnsSendResponse.go create mode 100644 model/promotion/TaobaoPromotionCouponsGetAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionCouponsGetAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionCouponsGetResponse.go create mode 100644 model/promotion/TaobaoPromotionLimitdiscountDetailGetAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionLimitdiscountDetailGetAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionLimitdiscountDetailGetResponse.go create mode 100644 model/promotion/TaobaoPromotionLimitdiscountGetAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionLimitdiscountGetAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionLimitdiscountGetResponse.go create mode 100644 model/promotion/TaobaoPromotionMealGetAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionMealGetAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionMealGetResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscActivityRangeAddAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscActivityRangeAddAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscActivityRangeAddResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscActivityRangeAllRemoveAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscActivityRangeAllRemoveResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscActivityRangeListGetAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscActivityRangeListGetAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscActivityRangeListGetResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscActivityRangeRemoveAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscActivityRangeRemoveAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscActivityRangeRemoveResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscCommonItemActivityAddAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscCommonItemActivityAddAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscCommonItemActivityAddResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscCommonItemActivityDeleteAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscCommonItemActivityDeleteResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscCommonItemActivityGetAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscCommonItemActivityGetAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscCommonItemActivityGetResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscCommonItemActivityListGetAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscCommonItemActivityListGetAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscCommonItemActivityListGetResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscCommonItemActivityUpdateAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscCommonItemActivityUpdateResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscCommonItemDetailAddAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscCommonItemDetailAddAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscCommonItemDetailAddResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscCommonItemDetailDeleteAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscCommonItemDetailDeleteResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscCommonItemDetailListGetAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscCommonItemDetailListGetAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscCommonItemDetailListGetResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscCommonItemDetailUpdateAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscCommonItemDetailUpdateResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscItemActivityAddAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscItemActivityAddAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscItemActivityAddResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscItemActivityDeleteAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscItemActivityDeleteAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscItemActivityDeleteResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscItemActivityGetAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscItemActivityGetAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscItemActivityGetResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscItemActivityListGetAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscItemActivityListGetAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscItemActivityListGetResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscItemActivityUpdateAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscItemActivityUpdateAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscItemActivityUpdateResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscMjsActivityAddAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscMjsActivityAddAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscMjsActivityAddResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscMjsActivityDeleteAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscMjsActivityDeleteAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscMjsActivityDeleteResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscMjsActivityGetAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscMjsActivityGetAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscMjsActivityGetResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscMjsActivityListGetAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscMjsActivityListGetAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscMjsActivityListGetResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscMjsActivityUpdateAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscMjsActivityUpdateAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscMjsActivityUpdateResponse.go create mode 100644 model/promotion/TaobaoPromotionmiscToolCheckAPIRequest.go create mode 100644 model/promotion/TaobaoPromotionmiscToolCheckAPIResponse.go delete mode 100644 model/promotion/TaobaoPromotionmiscToolCheckResponse.go create mode 100644 model/promotion/TaobaoTradeOrdersortGetAPIRequest.go create mode 100644 model/promotion/TaobaoTradeOrdersortGetAPIResponse.go delete mode 100644 model/promotion/TaobaoTradeOrdersortGetResponse.go create mode 100644 model/promotion/TaobaoUmpActivitiesGetAPIRequest.go create mode 100644 model/promotion/TaobaoUmpActivitiesGetAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpActivitiesGetResponse.go create mode 100644 model/promotion/TaobaoUmpActivitiesListGetAPIRequest.go create mode 100644 model/promotion/TaobaoUmpActivitiesListGetAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpActivitiesListGetResponse.go create mode 100644 model/promotion/TaobaoUmpActivityAddAPIRequest.go create mode 100644 model/promotion/TaobaoUmpActivityAddAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpActivityAddResponse.go create mode 100644 model/promotion/TaobaoUmpActivityDeleteAPIRequest.go create mode 100644 model/promotion/TaobaoUmpActivityDeleteAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpActivityDeleteResponse.go create mode 100644 model/promotion/TaobaoUmpActivityGetAPIRequest.go create mode 100644 model/promotion/TaobaoUmpActivityGetAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpActivityGetResponse.go create mode 100644 model/promotion/TaobaoUmpActivityUpdateAPIRequest.go create mode 100644 model/promotion/TaobaoUmpActivityUpdateAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpActivityUpdateResponse.go create mode 100644 model/promotion/TaobaoUmpDetailAddAPIRequest.go create mode 100644 model/promotion/TaobaoUmpDetailAddAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpDetailAddResponse.go create mode 100644 model/promotion/TaobaoUmpDetailDeleteAPIRequest.go create mode 100644 model/promotion/TaobaoUmpDetailDeleteAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpDetailDeleteResponse.go create mode 100644 model/promotion/TaobaoUmpDetailGetAPIRequest.go create mode 100644 model/promotion/TaobaoUmpDetailGetAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpDetailGetResponse.go create mode 100644 model/promotion/TaobaoUmpDetailListAddAPIRequest.go create mode 100644 model/promotion/TaobaoUmpDetailListAddAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpDetailListAddResponse.go create mode 100644 model/promotion/TaobaoUmpDetailUpdateAPIRequest.go create mode 100644 model/promotion/TaobaoUmpDetailUpdateAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpDetailUpdateResponse.go create mode 100644 model/promotion/TaobaoUmpDetailsGetAPIRequest.go create mode 100644 model/promotion/TaobaoUmpDetailsGetAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpDetailsGetResponse.go create mode 100644 model/promotion/TaobaoUmpMbbGetbycodeAPIRequest.go create mode 100644 model/promotion/TaobaoUmpMbbGetbycodeAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpMbbGetbycodeResponse.go create mode 100644 model/promotion/TaobaoUmpMbbGetbyidAPIRequest.go create mode 100644 model/promotion/TaobaoUmpMbbGetbyidAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpMbbGetbyidResponse.go create mode 100644 model/promotion/TaobaoUmpMbbsGetAPIRequest.go create mode 100644 model/promotion/TaobaoUmpMbbsGetAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpMbbsGetResponse.go create mode 100644 model/promotion/TaobaoUmpMbbsListGetAPIRequest.go create mode 100644 model/promotion/TaobaoUmpMbbsListGetAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpMbbsListGetResponse.go create mode 100644 model/promotion/TaobaoUmpPromotionGlobalDiscountGetAPIRequest.go create mode 100644 model/promotion/TaobaoUmpPromotionGlobalDiscountGetAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpPromotionGlobalDiscountGetResponse.go create mode 100644 model/promotion/TaobaoUmpRangeAddAPIRequest.go create mode 100644 model/promotion/TaobaoUmpRangeAddAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpRangeAddResponse.go create mode 100644 model/promotion/TaobaoUmpRangeDeleteAPIRequest.go create mode 100644 model/promotion/TaobaoUmpRangeDeleteAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpRangeDeleteResponse.go create mode 100644 model/promotion/TaobaoUmpRangeGetAPIRequest.go create mode 100644 model/promotion/TaobaoUmpRangeGetAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpRangeGetResponse.go create mode 100644 model/promotion/TaobaoUmpShoutaotagAddAPIRequest.go create mode 100644 model/promotion/TaobaoUmpShoutaotagAddAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpShoutaotagAddResponse.go create mode 100644 model/promotion/TaobaoUmpToolGetAPIRequest.go create mode 100644 model/promotion/TaobaoUmpToolGetAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpToolGetResponse.go create mode 100644 model/promotion/TaobaoUmpToolsGetAPIRequest.go create mode 100644 model/promotion/TaobaoUmpToolsGetAPIResponse.go delete mode 100644 model/promotion/TaobaoUmpToolsGetResponse.go create mode 100644 model/promotion/TmallCcfCrowdActivityuserUploadAPIRequest.go create mode 100644 model/promotion/TmallCcfCrowdActivityuserUploadAPIResponse.go delete mode 100644 model/promotion/TmallCcfCrowdActivityuserUploadResponse.go create mode 100644 model/promotion/TmallPromotagTagApplyAPIRequest.go create mode 100644 model/promotion/TmallPromotagTagApplyAPIResponse.go delete mode 100644 model/promotion/TmallPromotagTagApplyResponse.go create mode 100644 model/promotion/TmallPromotagTagFindAPIRequest.go create mode 100644 model/promotion/TmallPromotagTagFindAPIResponse.go delete mode 100644 model/promotion/TmallPromotagTagFindResponse.go create mode 100644 model/promotion/TmallPromotagTagRemovetagAPIRequest.go create mode 100644 model/promotion/TmallPromotagTagRemovetagAPIResponse.go delete mode 100644 model/promotion/TmallPromotagTagRemovetagResponse.go create mode 100644 model/promotion/TmallPromotagTaguserJudgeAPIRequest.go create mode 100644 model/promotion/TmallPromotagTaguserJudgeAPIResponse.go delete mode 100644 model/promotion/TmallPromotagTaguserJudgeResponse.go create mode 100644 model/promotion/TmallPromotagTaguserRemoveAPIRequest.go create mode 100644 model/promotion/TmallPromotagTaguserRemoveAPIResponse.go delete mode 100644 model/promotion/TmallPromotagTaguserRemoveResponse.go create mode 100644 model/promotion/TmallPromotagTaguserSaveAPIRequest.go create mode 100644 model/promotion/TmallPromotagTaguserSaveAPIResponse.go delete mode 100644 model/promotion/TmallPromotagTaguserSaveResponse.go create mode 100644 model/promotion/TmallPromotionCouponQueryAPIRequest.go create mode 100644 model/promotion/TmallPromotionCouponQueryAPIResponse.go delete mode 100644 model/promotion/TmallPromotionCouponQueryResponse.go create mode 100644 model/promotion/TmallPromotionCouponUseAPIRequest.go create mode 100644 model/promotion/TmallPromotionCouponUseAPIResponse.go delete mode 100644 model/promotion/TmallPromotionCouponUseResponse.go create mode 100644 model/promotion/TmallPromotionCouponUserAPIRequest.go create mode 100644 model/promotion/TmallPromotionCouponUserAPIResponse.go delete mode 100644 model/promotion/TmallPromotionCouponUserResponse.go create mode 100644 model/pur/AlibabaCeresSupplierPoQueryAPIRequest.go create mode 100644 model/pur/AlibabaCeresSupplierPoQueryAPIResponse.go delete mode 100644 model/pur/AlibabaCeresSupplierPoQueryResponse.go create mode 100644 model/pur/AlibabaCeresSupplierPoQuerydetailAPIRequest.go create mode 100644 model/pur/AlibabaCeresSupplierPoQuerydetailAPIResponse.go delete mode 100644 model/pur/AlibabaCeresSupplierPoQuerydetailResponse.go create mode 100644 model/pur/AlibabaPurBasketMergeAPIRequest.go create mode 100644 model/pur/AlibabaPurBasketMergeAPIResponse.go delete mode 100644 model/pur/AlibabaPurBasketMergeResponse.go create mode 100644 model/pur/AlibabaPurMediaStatisticsAPIRequest.go create mode 100644 model/pur/AlibabaPurMediaStatisticsAPIResponse.go delete mode 100644 model/pur/AlibabaPurMediaStatisticsResponse.go create mode 100644 model/pur/AlibabaPurPrCreateAPIRequest.go create mode 100644 model/pur/AlibabaPurPrCreateAPIResponse.go delete mode 100644 model/pur/AlibabaPurPrCreateResponse.go create mode 100644 model/pur/AlibabaPurProductSyncAPIRequest.go create mode 100644 model/pur/AlibabaPurProductSyncAPIResponse.go delete mode 100644 model/pur/AlibabaPurProductSyncResponse.go create mode 100644 model/pur/AlibabaPurSupplierAsncreateAPIRequest.go create mode 100644 model/pur/AlibabaPurSupplierAsncreateAPIResponse.go delete mode 100644 model/pur/AlibabaPurSupplierAsncreateResponse.go create mode 100644 model/pur/AlibabaPurSupplierInvoicecreateAPIRequest.go create mode 100644 model/pur/AlibabaPurSupplierInvoicecreateAPIResponse.go delete mode 100644 model/pur/AlibabaPurSupplierInvoicecreateResponse.go create mode 100644 model/pur/AlibabaPurSupplierPorespcreateAPIRequest.go create mode 100644 model/pur/AlibabaPurSupplierPorespcreateAPIResponse.go delete mode 100644 model/pur/AlibabaPurSupplierPorespcreateResponse.go create mode 100644 model/qianniu/TaobaoDaogoubaoOrderStatisticsTotalAPIRequest.go create mode 100644 model/qianniu/TaobaoDaogoubaoOrderStatisticsTotalAPIResponse.go delete mode 100644 model/qianniu/TaobaoDaogoubaoOrderStatisticsTotalResponse.go create mode 100644 model/qianniu/TaobaoQianniuBuyerTagGetAPIRequest.go create mode 100644 model/qianniu/TaobaoQianniuBuyerTagGetAPIResponse.go delete mode 100644 model/qianniu/TaobaoQianniuBuyerTagGetResponse.go create mode 100644 model/qianniu/TaobaoQianniuCloudkefuOnlinestatuslogGetAPIRequest.go create mode 100644 model/qianniu/TaobaoQianniuCloudkefuOnlinestatuslogGetAPIResponse.go delete mode 100644 model/qianniu/TaobaoQianniuCloudkefuOnlinestatuslogGetResponse.go create mode 100644 model/qianniu/TaobaoQianniuNumberPutAPIRequest.go create mode 100644 model/qianniu/TaobaoQianniuNumberPutAPIResponse.go delete mode 100644 model/qianniu/TaobaoQianniuNumberPutResponse.go create mode 100644 model/qianniu/TaobaoQianniuTaskCancelAPIRequest.go create mode 100644 model/qianniu/TaobaoQianniuTaskCancelAPIResponse.go delete mode 100644 model/qianniu/TaobaoQianniuTaskCancelResponse.go create mode 100644 model/qianniu/TaobaoQianniuTaskCreateAPIRequest.go create mode 100644 model/qianniu/TaobaoQianniuTaskCreateAPIResponse.go delete mode 100644 model/qianniu/TaobaoQianniuTaskCreateResponse.go create mode 100644 model/qianniu/TaobaoQianniuTaskFinishAPIRequest.go create mode 100644 model/qianniu/TaobaoQianniuTaskFinishAPIResponse.go delete mode 100644 model/qianniu/TaobaoQianniuTaskFinishResponse.go create mode 100644 model/qianniu/TaobaoQianniuTaskIncreaseAPIRequest.go create mode 100644 model/qianniu/TaobaoQianniuTaskIncreaseAPIResponse.go delete mode 100644 model/qianniu/TaobaoQianniuTaskIncreaseResponse.go create mode 100644 model/qianniu/TaobaoQianniuTaskMessageSendAPIRequest.go create mode 100644 model/qianniu/TaobaoQianniuTaskMessageSendAPIResponse.go delete mode 100644 model/qianniu/TaobaoQianniuTaskMessageSendResponse.go create mode 100644 model/qianniu/TaobaoQianniuTaskRemoveAPIRequest.go create mode 100644 model/qianniu/TaobaoQianniuTaskRemoveAPIResponse.go delete mode 100644 model/qianniu/TaobaoQianniuTaskRemoveResponse.go create mode 100644 model/qianniu/TaobaoQianniuTaskUpdateAPIRequest.go create mode 100644 model/qianniu/TaobaoQianniuTaskUpdateAPIResponse.go delete mode 100644 model/qianniu/TaobaoQianniuTaskUpdateResponse.go create mode 100644 model/qianniu/TaobaoQianniuTaskmetaUpdateAPIRequest.go create mode 100644 model/qianniu/TaobaoQianniuTaskmetaUpdateAPIResponse.go delete mode 100644 model/qianniu/TaobaoQianniuTaskmetaUpdateResponse.go create mode 100644 model/qianniu/TaobaoQianniuTaskmetasGetAPIRequest.go create mode 100644 model/qianniu/TaobaoQianniuTaskmetasGetAPIResponse.go delete mode 100644 model/qianniu/TaobaoQianniuTaskmetasGetResponse.go create mode 100644 model/qianniu/TaobaoQianniuTasksCountAPIRequest.go create mode 100644 model/qianniu/TaobaoQianniuTasksCountAPIResponse.go delete mode 100644 model/qianniu/TaobaoQianniuTasksCountResponse.go create mode 100644 model/qianniu/TaobaoQianniuTasksGetAPIRequest.go create mode 100644 model/qianniu/TaobaoQianniuTasksGetAPIResponse.go delete mode 100644 model/qianniu/TaobaoQianniuTasksGetResponse.go create mode 100644 model/qimen/RequestDo.go create mode 100644 model/qimen/TaobaoQimenChannelinventoryQueryAPIRequest.go create mode 100644 model/qimen/TaobaoQimenChannelinventoryQueryAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenChannelinventoryQueryResponse.go create mode 100644 model/qimen/TaobaoQimenCombineitemDeleteAPIRequest.go create mode 100644 model/qimen/TaobaoQimenCombineitemDeleteAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenCombineitemDeleteResponse.go create mode 100644 model/qimen/TaobaoQimenCombineitemQueryAPIRequest.go create mode 100644 model/qimen/TaobaoQimenCombineitemQueryAPIResponse.go create mode 100644 model/qimen/TaobaoQimenCombineitemSynchronizeAPIRequest.go create mode 100644 model/qimen/TaobaoQimenCombineitemSynchronizeAPIResponse.go create mode 100644 model/qimen/TaobaoQimenCombineitemSynchronizeBatch.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderBatchconfirmAPIRequest.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderBatchconfirmAPIResponse.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderBatchconfirmBatch.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderBatchconfirmDetail.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderBatchcreateAPIRequest.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderBatchcreateAPIResponse.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderBatchcreateAnswerAPIRequest.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderBatchcreateAnswerAPIResponse.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderBatchcreateDetail.go delete mode 100644 model/qimen/TaobaoQimenDeliveryorderBatchcreateResponse.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderConfirmAPIRequest.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderConfirmAPIResponse.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderConfirmBatch.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderConfirmDetail.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderCreateAPIRequest.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderCreateAPIResponse.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderCreateDetail.go delete mode 100644 model/qimen/TaobaoQimenDeliveryorderCreateResponse.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderQueryAPIRequest.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderQueryAPIResponse.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderQueryBatch.go create mode 100644 model/qimen/TaobaoQimenDeliveryorderQueryDetail.go delete mode 100644 model/qimen/TaobaoQimenDeliveryorderQueryResponse.go create mode 100644 model/qimen/TaobaoQimenEntryorderConfirmAPIRequest.go create mode 100644 model/qimen/TaobaoQimenEntryorderConfirmAPIResponse.go create mode 100644 model/qimen/TaobaoQimenEntryorderConfirmBatch.go create mode 100644 model/qimen/TaobaoQimenEntryorderCreateAPIRequest.go create mode 100644 model/qimen/TaobaoQimenEntryorderCreateAPIResponse.go create mode 100644 model/qimen/TaobaoQimenEntryorderQueryAPIRequest.go create mode 100644 model/qimen/TaobaoQimenEntryorderQueryAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenEntryorderQueryResponse.go create mode 100644 model/qimen/TaobaoQimenExpressinfoQueryAPIRequest.go create mode 100644 model/qimen/TaobaoQimenExpressinfoQueryAPIResponse.go create mode 100644 model/qimen/TaobaoQimenInventoryQueryAPIRequest.go create mode 100644 model/qimen/TaobaoQimenInventoryQueryAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenInventoryQueryResponse.go create mode 100644 model/qimen/TaobaoQimenInventoryReportAPIRequest.go create mode 100644 model/qimen/TaobaoQimenInventoryReportAPIResponse.go create mode 100644 model/qimen/TaobaoQimenInventorybatchQueryAPIRequest.go create mode 100644 model/qimen/TaobaoQimenInventorybatchQueryAPIResponse.go create mode 100644 model/qimen/TaobaoQimenInventoryreserveCancelAPIRequest.go create mode 100644 model/qimen/TaobaoQimenInventoryreserveCancelAPIResponse.go create mode 100644 model/qimen/TaobaoQimenInventoryruleCreateAPIRequest.go create mode 100644 model/qimen/TaobaoQimenInventoryruleCreateAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenInventoryruleCreateResponse.go create mode 100644 model/qimen/TaobaoQimenItemlackReportAPIRequest.go create mode 100644 model/qimen/TaobaoQimenItemlackReportAPIResponse.go create mode 100644 model/qimen/TaobaoQimenItemmappingCreateAPIRequest.go create mode 100644 model/qimen/TaobaoQimenItemmappingCreateAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenItemmappingCreateResponse.go create mode 100644 model/qimen/TaobaoQimenItemmappingQueryAPIRequest.go create mode 100644 model/qimen/TaobaoQimenItemmappingQueryAPIResponse.go create mode 100644 model/qimen/TaobaoQimenItemsSynchronizeAPIRequest.go create mode 100644 model/qimen/TaobaoQimenItemsSynchronizeAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenItemsSynchronizeResponse.go create mode 100644 model/qimen/TaobaoQimenItemstoreBandingAPIRequest.go create mode 100644 model/qimen/TaobaoQimenItemstoreBandingAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenItemstoreBandingResponse.go create mode 100644 model/qimen/TaobaoQimenItemstoreQueryAPIRequest.go create mode 100644 model/qimen/TaobaoQimenItemstoreQueryAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenItemstoreQueryResponse.go create mode 100644 model/qimen/TaobaoQimenOrderCallbackAPIRequest.go create mode 100644 model/qimen/TaobaoQimenOrderCallbackAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenOrderCallbackResponse.go create mode 100644 model/qimen/TaobaoQimenOrderCancelAPIRequest.go create mode 100644 model/qimen/TaobaoQimenOrderCancelAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenOrderCancelResponse.go create mode 100644 model/qimen/TaobaoQimenOrderPendingAPIRequest.go create mode 100644 model/qimen/TaobaoQimenOrderPendingAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenOrderPendingResponse.go create mode 100644 model/qimen/TaobaoQimenOrderQueryAPIRequest.go create mode 100644 model/qimen/TaobaoQimenOrderQueryAPIResponse.go create mode 100644 model/qimen/TaobaoQimenOrderSnReportAPIRequest.go create mode 100644 model/qimen/TaobaoQimenOrderSnReportAPIResponse.go create mode 100644 model/qimen/TaobaoQimenOrderexceptionReportAPIRequest.go create mode 100644 model/qimen/TaobaoQimenOrderexceptionReportAPIResponse.go create mode 100644 model/qimen/TaobaoQimenOrderexceptionReportBatch.go create mode 100644 model/qimen/TaobaoQimenOrderprocessQueryAPIRequest.go create mode 100644 model/qimen/TaobaoQimenOrderprocessQueryAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenOrderprocessQueryResponse.go create mode 100644 model/qimen/TaobaoQimenOrderprocessReportAPIRequest.go create mode 100644 model/qimen/TaobaoQimenOrderprocessReportAPIResponse.go create mode 100644 model/qimen/TaobaoQimenReceiverinfoQueryAPIRequest.go create mode 100644 model/qimen/TaobaoQimenReceiverinfoQueryAPIResponse.go create mode 100644 model/qimen/TaobaoQimenReturnorderConfirmAPIRequest.go create mode 100644 model/qimen/TaobaoQimenReturnorderConfirmAPIResponse.go create mode 100644 model/qimen/TaobaoQimenReturnorderConfirmBatch.go create mode 100644 model/qimen/TaobaoQimenReturnorderCreateAPIRequest.go create mode 100644 model/qimen/TaobaoQimenReturnorderCreateAPIResponse.go create mode 100644 model/qimen/TaobaoQimenReturnpackageReportAPIRequest.go create mode 100644 model/qimen/TaobaoQimenReturnpackageReportAPIResponse.go create mode 100644 model/qimen/TaobaoQimenShopSynchronizeAPIRequest.go create mode 100644 model/qimen/TaobaoQimenShopSynchronizeAPIResponse.go create mode 100644 model/qimen/TaobaoQimenSingleitemQueryAPIRequest.go create mode 100644 model/qimen/TaobaoQimenSingleitemQueryAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenSingleitemQueryResponse.go create mode 100644 model/qimen/TaobaoQimenSingleitemSynchronizeAPIRequest.go create mode 100644 model/qimen/TaobaoQimenSingleitemSynchronizeAPIResponse.go create mode 100644 model/qimen/TaobaoQimenSnReportAPIRequest.go create mode 100644 model/qimen/TaobaoQimenSnReportAPIResponse.go create mode 100644 model/qimen/TaobaoQimenStockQueryAPIRequest.go create mode 100644 model/qimen/TaobaoQimenStockQueryAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenStockQueryResponse.go create mode 100644 model/qimen/TaobaoQimenStockchangeReportAPIRequest.go create mode 100644 model/qimen/TaobaoQimenStockchangeReportAPIResponse.go create mode 100644 model/qimen/TaobaoQimenStockchangeReportBatch.go create mode 100644 model/qimen/TaobaoQimenStockoutConfirmAPIRequest.go create mode 100644 model/qimen/TaobaoQimenStockoutConfirmAPIResponse.go create mode 100644 model/qimen/TaobaoQimenStockoutConfirmBatch.go delete mode 100644 model/qimen/TaobaoQimenStockoutConfirmResponse.go create mode 100644 model/qimen/TaobaoQimenStockoutCreateAPIRequest.go create mode 100644 model/qimen/TaobaoQimenStockoutCreateAPIResponse.go create mode 100644 model/qimen/TaobaoQimenStoreCreateAPIRequest.go create mode 100644 model/qimen/TaobaoQimenStoreCreateAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenStoreCreateResponse.go create mode 100644 model/qimen/TaobaoQimenStoreDeleteAPIRequest.go create mode 100644 model/qimen/TaobaoQimenStoreDeleteAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenStoreDeleteResponse.go create mode 100644 model/qimen/TaobaoQimenStoreQueryAPIRequest.go create mode 100644 model/qimen/TaobaoQimenStoreQueryAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenStoreQueryResponse.go create mode 100644 model/qimen/TaobaoQimenStoreUpdateAPIRequest.go create mode 100644 model/qimen/TaobaoQimenStoreUpdateAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenStoreUpdateResponse.go create mode 100644 model/qimen/TaobaoQimenStorecategoryGetAPIRequest.go create mode 100644 model/qimen/TaobaoQimenStorecategoryGetAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenStorecategoryGetResponse.go create mode 100644 model/qimen/TaobaoQimenStoreitemQueryAPIRequest.go create mode 100644 model/qimen/TaobaoQimenStoreitemQueryAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenStoreitemQueryResponse.go create mode 100644 model/qimen/TaobaoQimenStoreprocessConfirmAPIRequest.go create mode 100644 model/qimen/TaobaoQimenStoreprocessConfirmAPIResponse.go create mode 100644 model/qimen/TaobaoQimenStoreprocessCreateAPIRequest.go create mode 100644 model/qimen/TaobaoQimenStoreprocessCreateAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenStoreprocessCreateResponse.go create mode 100644 model/qimen/TaobaoQimenSupplierSynchronizeAPIRequest.go create mode 100644 model/qimen/TaobaoQimenSupplierSynchronizeAPIResponse.go create mode 100644 model/qimen/TaobaoQimenTransferorderCreateAPIRequest.go create mode 100644 model/qimen/TaobaoQimenTransferorderCreateAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenTransferorderCreateResponse.go create mode 100644 model/qimen/TaobaoQimenTransferorderQueryAPIRequest.go create mode 100644 model/qimen/TaobaoQimenTransferorderQueryAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenTransferorderQueryResponse.go create mode 100644 model/qimen/TaobaoQimenTransferorderReportAPIRequest.go create mode 100644 model/qimen/TaobaoQimenTransferorderReportAPIResponse.go delete mode 100644 model/qimen/TaobaoQimenTransferorderReportResponse.go create mode 100644 model/qimen/TaobaoQimenWarehouseinfoQueryAPIRequest.go create mode 100644 model/qimen/TaobaoQimenWarehouseinfoQueryAPIResponse.go create mode 100644 model/qimen/TaobaoQimenWarehouseinfoSynchronizeAPIRequest.go create mode 100644 model/qimen/TaobaoQimenWarehouseinfoSynchronizeAPIResponse.go create mode 100644 model/qimen/TaobaoQimenWavenumReportAPIRequest.go create mode 100644 model/qimen/TaobaoQimenWavenumReportAPIResponse.go create mode 100644 model/qt/TaobaoQtReportAddAPIRequest.go create mode 100644 model/qt/TaobaoQtReportAddAPIResponse.go delete mode 100644 model/qt/TaobaoQtReportAddResponse.go create mode 100644 model/qt/TaobaoQtReportDeleteAPIRequest.go create mode 100644 model/qt/TaobaoQtReportDeleteAPIResponse.go delete mode 100644 model/qt/TaobaoQtReportDeleteResponse.go create mode 100644 model/qt/TaobaoQtReportGetAPIRequest.go create mode 100644 model/qt/TaobaoQtReportGetAPIResponse.go delete mode 100644 model/qt/TaobaoQtReportGetResponse.go create mode 100644 model/qt/TaobaoQtReportUpdateAPIRequest.go create mode 100644 model/qt/TaobaoQtReportUpdateAPIResponse.go delete mode 100644 model/qt/TaobaoQtReportUpdateResponse.go create mode 100644 model/qt/TaobaoQtReportsGetAPIRequest.go create mode 100644 model/qt/TaobaoQtReportsGetAPIResponse.go delete mode 100644 model/qt/TaobaoQtReportsGetResponse.go create mode 100644 model/qt/TaobaoTsPropertyGetAPIRequest.go create mode 100644 model/qt/TaobaoTsPropertyGetAPIResponse.go delete mode 100644 model/qt/TaobaoTsPropertyGetResponse.go create mode 100644 model/qt/TaobaoTsSubscribeGetAPIRequest.go create mode 100644 model/qt/TaobaoTsSubscribeGetAPIResponse.go delete mode 100644 model/qt/TaobaoTsSubscribeGetResponse.go create mode 100644 model/rail/AlitripRailIrCarrierGetAPIRequest.go create mode 100644 model/rail/AlitripRailIrCarrierGetAPIResponse.go delete mode 100644 model/rail/AlitripRailIrCarrierGetResponse.go create mode 100644 model/rail/AlitripRailIrDivisionGetAPIRequest.go create mode 100644 model/rail/AlitripRailIrDivisionGetAPIResponse.go delete mode 100644 model/rail/AlitripRailIrDivisionGetResponse.go create mode 100644 model/rail/AlitripRailIrServiceGetAPIRequest.go create mode 100644 model/rail/AlitripRailIrServiceGetAPIResponse.go delete mode 100644 model/rail/AlitripRailIrServiceGetResponse.go create mode 100644 model/rail/AlitripRailIrStationGetAPIRequest.go create mode 100644 model/rail/AlitripRailIrStationGetAPIResponse.go delete mode 100644 model/rail/AlitripRailIrStationGetResponse.go create mode 100644 model/rail/AlitripRailTradeCloseticketAPIRequest.go create mode 100644 model/rail/AlitripRailTradeCloseticketAPIResponse.go delete mode 100644 model/rail/AlitripRailTradeCloseticketResponse.go create mode 100644 model/rail/AlitripRailTradeIssueticketAPIRequest.go create mode 100644 model/rail/AlitripRailTradeIssueticketAPIResponse.go delete mode 100644 model/rail/AlitripRailTradeIssueticketResponse.go create mode 100644 model/refund/TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIRequest.go create mode 100644 model/refund/TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIResponse.go delete mode 100644 model/refund/TaobaoRdcAligeniusIdentificationCaseResultUpdateResponse.go create mode 100644 model/refund/TaobaoRdcAligeniusIdentificationCaseUpdateAPIRequest.go create mode 100644 model/refund/TaobaoRdcAligeniusIdentificationCaseUpdateAPIResponse.go delete mode 100644 model/refund/TaobaoRdcAligeniusIdentificationCaseUpdateResponse.go create mode 100644 model/refund/TaobaoRdcAligeniusSendgoodsCancelAPIRequest.go create mode 100644 model/refund/TaobaoRdcAligeniusSendgoodsCancelAPIResponse.go delete mode 100644 model/refund/TaobaoRdcAligeniusSendgoodsCancelResponse.go create mode 100644 model/refund/TaobaoRefundGetAPIRequest.go create mode 100644 model/refund/TaobaoRefundGetAPIResponse.go delete mode 100644 model/refund/TaobaoRefundGetResponse.go create mode 100644 model/refund/TaobaoRefundMessageAddAPIRequest.go create mode 100644 model/refund/TaobaoRefundMessageAddAPIResponse.go delete mode 100644 model/refund/TaobaoRefundMessageAddResponse.go create mode 100644 model/refund/TaobaoRefundMessagesGetAPIRequest.go create mode 100644 model/refund/TaobaoRefundMessagesGetAPIResponse.go delete mode 100644 model/refund/TaobaoRefundMessagesGetResponse.go create mode 100644 model/refund/TaobaoRefundRefuseAPIRequest.go create mode 100644 model/refund/TaobaoRefundRefuseAPIResponse.go delete mode 100644 model/refund/TaobaoRefundRefuseResponse.go create mode 100644 model/refund/TaobaoRefundRefusereasonGetAPIRequest.go create mode 100644 model/refund/TaobaoRefundRefusereasonGetAPIResponse.go delete mode 100644 model/refund/TaobaoRefundRefusereasonGetResponse.go create mode 100644 model/refund/TaobaoRefundsApplyGetAPIRequest.go create mode 100644 model/refund/TaobaoRefundsApplyGetAPIResponse.go delete mode 100644 model/refund/TaobaoRefundsApplyGetResponse.go create mode 100644 model/refund/TaobaoRpRefundReviewAPIRequest.go create mode 100644 model/refund/TaobaoRpRefundReviewAPIResponse.go delete mode 100644 model/refund/TaobaoRpRefundReviewResponse.go create mode 100644 model/refund/TaobaoRpRefundsAgreeAPIRequest.go create mode 100644 model/refund/TaobaoRpRefundsAgreeAPIResponse.go delete mode 100644 model/refund/TaobaoRpRefundsAgreeResponse.go create mode 100644 model/refund/TaobaoRpReturngoodsAgreeAPIRequest.go create mode 100644 model/refund/TaobaoRpReturngoodsAgreeAPIResponse.go delete mode 100644 model/refund/TaobaoRpReturngoodsAgreeResponse.go create mode 100644 model/refund/TaobaoRpReturngoodsRefillAPIRequest.go create mode 100644 model/refund/TaobaoRpReturngoodsRefillAPIResponse.go delete mode 100644 model/refund/TaobaoRpReturngoodsRefillResponse.go create mode 100644 model/refund/TaobaoRpReturngoodsRefuseAPIRequest.go create mode 100644 model/refund/TaobaoRpReturngoodsRefuseAPIResponse.go delete mode 100644 model/refund/TaobaoRpReturngoodsRefuseResponse.go create mode 100644 model/refund/TaobaoSpecialRefundGetAPIRequest.go create mode 100644 model/refund/TaobaoSpecialRefundGetAPIResponse.go delete mode 100644 model/refund/TaobaoSpecialRefundGetResponse.go create mode 100644 model/refund/TaobaoSpecialRefundsReceiveGetAPIRequest.go create mode 100644 model/refund/TaobaoSpecialRefundsReceiveGetAPIResponse.go delete mode 100644 model/refund/TaobaoSpecialRefundsReceiveGetResponse.go create mode 100644 model/refund/TmallDisputeReceiveGetAPIRequest.go create mode 100644 model/refund/TmallDisputeReceiveGetAPIResponse.go delete mode 100644 model/refund/TmallDisputeReceiveGetResponse.go create mode 100644 model/retail/AlibabaInteractRetailQueryshelflocationAPIRequest.go create mode 100644 model/retail/AlibabaInteractRetailQueryshelflocationAPIResponse.go delete mode 100644 model/retail/AlibabaInteractRetailQueryshelflocationResponse.go create mode 100644 model/retail/AlibabaInteractRetailSaveshelflocationAPIRequest.go create mode 100644 model/retail/AlibabaInteractRetailSaveshelflocationAPIResponse.go delete mode 100644 model/retail/AlibabaInteractRetailSaveshelflocationResponse.go create mode 100644 model/retail/AlibabaRetailDeviceInfoGetAPIRequest.go create mode 100644 model/retail/AlibabaRetailDeviceInfoGetAPIResponse.go delete mode 100644 model/retail/AlibabaRetailDeviceInfoGetResponse.go create mode 100644 model/retail/AlibabaRetailDeviceOrderQueryAPIRequest.go create mode 100644 model/retail/AlibabaRetailDeviceOrderQueryAPIResponse.go delete mode 100644 model/retail/AlibabaRetailDeviceOrderQueryResponse.go create mode 100644 model/retail/AlibabaRetailDeviceRoadStatusResetAPIRequest.go create mode 100644 model/retail/AlibabaRetailDeviceRoadStatusResetAPIResponse.go delete mode 100644 model/retail/AlibabaRetailDeviceRoadStatusResetResponse.go create mode 100644 model/retail/AlibabaRetailElectronicCertificateConfirmAPIRequest.go create mode 100644 model/retail/AlibabaRetailElectronicCertificateConfirmAPIResponse.go delete mode 100644 model/retail/AlibabaRetailElectronicCertificateConfirmResponse.go create mode 100644 model/retail/AlibabaRetailElectronicCertificatePreConfirmAPIRequest.go create mode 100644 model/retail/AlibabaRetailElectronicCertificatePreConfirmAPIResponse.go delete mode 100644 model/retail/AlibabaRetailElectronicCertificatePreConfirmResponse.go create mode 100644 model/retail/AlibabaRetailVendingPriceWhitelistAddAPIRequest.go create mode 100644 model/retail/AlibabaRetailVendingPriceWhitelistAddAPIResponse.go delete mode 100644 model/retail/AlibabaRetailVendingPriceWhitelistAddResponse.go create mode 100644 model/retail/AlibabaRetailVendingPriceWhitelistAddResultDo.go create mode 100644 model/retail/AlibabaRetailVendingPriceWhitelistRemoveAPIRequest.go create mode 100644 model/retail/AlibabaRetailVendingPriceWhitelistRemoveAPIResponse.go delete mode 100644 model/retail/AlibabaRetailVendingPriceWhitelistRemoveResponse.go create mode 100644 model/retail/AlibabaRetailVendingPriceWhitelistRemoveResultDo.go create mode 100644 model/retail/TmallStoreOrderCreateAPIRequest.go create mode 100644 model/retail/TmallStoreOrderCreateAPIResponse.go delete mode 100644 model/retail/TmallStoreOrderCreateResponse.go create mode 100644 model/rhino/TaobaoRhinoSupplychainClothingAdjustAPIRequest.go create mode 100644 model/rhino/TaobaoRhinoSupplychainClothingAdjustAPIResponse.go delete mode 100644 model/rhino/TaobaoRhinoSupplychainClothingAdjustResponse.go create mode 100644 model/rhino/TaobaoRhinoSupplychainInboundConfirmAPIRequest.go create mode 100644 model/rhino/TaobaoRhinoSupplychainInboundConfirmAPIResponse.go delete mode 100644 model/rhino/TaobaoRhinoSupplychainInboundConfirmResponse.go create mode 100644 model/rhino/TaobaoRhinoSupplychainOutboundPickingcompleteAPIRequest.go create mode 100644 model/rhino/TaobaoRhinoSupplychainOutboundPickingcompleteAPIResponse.go delete mode 100644 model/rhino/TaobaoRhinoSupplychainOutboundPickingcompleteResponse.go create mode 100644 model/scbp/AlibabaScbpAccountBudgetGetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAccountBudgetGetAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAccountBudgetGetResponse.go create mode 100644 model/scbp/AlibabaScbpAccountDaycostGetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAccountDaycostGetAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAccountDaycostGetResponse.go create mode 100644 model/scbp/AlibabaScbpAccountIsarrearsGetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAccountIsarrearsGetAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAccountIsarrearsGetResponse.go create mode 100644 model/scbp/AlibabaScbpAccountStatusGetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAccountStatusGetAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAccountStatusGetResponse.go create mode 100644 model/scbp/AlibabaScbpAccountStatusUpdateAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAccountStatusUpdateAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAccountStatusUpdateResponse.go create mode 100644 model/scbp/AlibabaScbpAdAccountBalanceGetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdAccountBalanceGetAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdAccountBalanceGetResponse.go create mode 100644 model/scbp/AlibabaScbpAdAccountLevelGetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdAccountLevelGetAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdAccountLevelGetResponse.go create mode 100644 model/scbp/AlibabaScbpAdCampaignCreateAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdCampaignCreateAPIResponse.go create mode 100644 model/scbp/AlibabaScbpAdCampaignCreateForbiddenKeywordAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdCampaignCreateForbiddenKeywordAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdCampaignCreateForbiddenKeywordResponse.go delete mode 100644 model/scbp/AlibabaScbpAdCampaignCreateResponse.go create mode 100644 model/scbp/AlibabaScbpAdCampaignDeleteAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdCampaignDeleteAPIResponse.go create mode 100644 model/scbp/AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdCampaignDeleteForbiddenKeywordResponse.go delete mode 100644 model/scbp/AlibabaScbpAdCampaignDeleteResponse.go create mode 100644 model/scbp/AlibabaScbpAdCampaignFindCampaignEffectAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdCampaignFindCampaignEffectAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdCampaignFindCampaignEffectResponse.go create mode 100644 model/scbp/AlibabaScbpAdCampaignFindCampaignPageAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdCampaignFindCampaignPageAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdCampaignFindCampaignPageResponse.go create mode 100644 model/scbp/AlibabaScbpAdCampaignFindForbiddenKeywordAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdCampaignFindForbiddenKeywordAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdCampaignFindForbiddenKeywordResponse.go create mode 100644 model/scbp/AlibabaScbpAdCampaignFindForbiddenKeywordResultDto.go create mode 100644 model/scbp/AlibabaScbpAdCampaignFindRealCostAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdCampaignFindRealCostAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdCampaignFindRealCostResponse.go create mode 100644 model/scbp/AlibabaScbpAdCampaignUpdateAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdCampaignUpdateAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdCampaignUpdateResponse.go create mode 100644 model/scbp/AlibabaScbpAdGroupCountAdGroupAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdGroupCountAdGroupAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdGroupCountAdGroupResponse.go create mode 100644 model/scbp/AlibabaScbpAdGroupCreateAdGroupBatchAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdGroupCreateAdGroupBatchAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdGroupCreateAdGroupBatchResponse.go create mode 100644 model/scbp/AlibabaScbpAdGroupCreateForbiddenProductAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdGroupCreateForbiddenProductAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdGroupCreateForbiddenProductResponse.go create mode 100644 model/scbp/AlibabaScbpAdGroupDeleteAdGroupBatchAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdGroupDeleteAdGroupBatchAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdGroupDeleteAdGroupBatchResponse.go create mode 100644 model/scbp/AlibabaScbpAdGroupDeleteForbiddenProductAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdGroupDeleteForbiddenProductAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdGroupDeleteForbiddenProductResponse.go create mode 100644 model/scbp/AlibabaScbpAdGroupFindAdGroupAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdGroupFindAdGroupAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdGroupFindAdGroupResponse.go create mode 100644 model/scbp/AlibabaScbpAdGroupFindForbiddenProductAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdGroupFindForbiddenProductAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdGroupFindForbiddenProductResponse.go create mode 100644 model/scbp/AlibabaScbpAdGroupUpdateAdGroupBatchAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdGroupUpdateAdGroupBatchAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdGroupUpdateAdGroupBatchResponse.go create mode 100644 model/scbp/AlibabaScbpAdKeywordAddAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdKeywordAddAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdKeywordAddResponse.go create mode 100644 model/scbp/AlibabaScbpAdKeywordBatchdeleteAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdKeywordBatchdeleteAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdKeywordBatchdeleteResponse.go create mode 100644 model/scbp/AlibabaScbpAdKeywordCreateKeywordBatchAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdKeywordCreateKeywordBatchAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdKeywordCreateKeywordBatchResponse.go create mode 100644 model/scbp/AlibabaScbpAdKeywordDeleteAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdKeywordDeleteAPIResponse.go create mode 100644 model/scbp/AlibabaScbpAdKeywordDeleteKeywordBatchAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdKeywordDeleteKeywordBatchAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdKeywordDeleteKeywordBatchResponse.go delete mode 100644 model/scbp/AlibabaScbpAdKeywordDeleteResponse.go create mode 100644 model/scbp/AlibabaScbpAdKeywordGetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdKeywordGetAPIResponse.go create mode 100644 model/scbp/AlibabaScbpAdKeywordGetKeywordCountByQueryAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdKeywordGetKeywordCountByQueryAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdKeywordGetKeywordCountByQueryResponse.go delete mode 100644 model/scbp/AlibabaScbpAdKeywordGetResponse.go create mode 100644 model/scbp/AlibabaScbpAdKeywordListCampaignKeywordsAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdKeywordListCampaignKeywordsAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdKeywordListCampaignKeywordsResponse.go create mode 100644 model/scbp/AlibabaScbpAdKeywordPriceBatchupdateAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdKeywordPriceBatchupdateAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdKeywordPriceBatchupdateResponse.go create mode 100644 model/scbp/AlibabaScbpAdKeywordPriceUpdateAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdKeywordPriceUpdateAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdKeywordPriceUpdateResponse.go create mode 100644 model/scbp/AlibabaScbpAdKeywordQueryKeywordRankPriceAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdKeywordQueryKeywordRankPriceAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdKeywordQueryKeywordRankPriceResponse.go create mode 100644 model/scbp/AlibabaScbpAdKeywordRankGetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdKeywordRankGetAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdKeywordRankGetResponse.go create mode 100644 model/scbp/AlibabaScbpAdKeywordRankPriceBatchgetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdKeywordRankPriceBatchgetAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdKeywordRankPriceBatchgetResponse.go create mode 100644 model/scbp/AlibabaScbpAdKeywordRankPriceGetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdKeywordRankPriceGetAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdKeywordRankPriceGetResponse.go create mode 100644 model/scbp/AlibabaScbpAdKeywordStatusBatchupdateAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdKeywordStatusBatchupdateAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdKeywordStatusBatchupdateResponse.go create mode 100644 model/scbp/AlibabaScbpAdKeywordStatusUpdateAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdKeywordStatusUpdateAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdKeywordStatusUpdateResponse.go create mode 100644 model/scbp/AlibabaScbpAdKeywordTagUpdateAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdKeywordTagUpdateAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdKeywordTagUpdateResponse.go create mode 100644 model/scbp/AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdKeywordUpdateKeywordPriceBatchResponse.go create mode 100644 model/scbp/AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdKeywordUpdateKeywordStatusBatchResponse.go create mode 100644 model/scbp/AlibabaScbpAdReportGetAccountReportAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdReportGetAccountReportAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdReportGetAccountReportResponse.go create mode 100644 model/scbp/AlibabaScbpAdReportGetProductReportAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdReportGetProductReportAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdReportGetProductReportResponse.go create mode 100644 model/scbp/AlibabaScbpAdReportGetTargetReportAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdReportGetTargetReportAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdReportGetTargetReportResponse.go create mode 100644 model/scbp/AlibabaScbpAdReportQueryKeywordEffectAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdReportQueryKeywordEffectAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdReportQueryKeywordEffectResponse.go create mode 100644 model/scbp/AlibabaScbpAdReportQuerySingleKeywordEffectAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdReportQuerySingleKeywordEffectAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdReportQuerySingleKeywordEffectResponse.go create mode 100644 model/scbp/AlibabaScbpAdTargetTagEstimateUvAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdTargetTagEstimateUvAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdTargetTagEstimateUvResponse.go create mode 100644 model/scbp/AlibabaScbpAdTargetTagFindCampaignTargetTagAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdTargetTagFindCampaignTargetTagAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdTargetTagFindCampaignTargetTagResponse.go create mode 100644 model/scbp/AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIRequest.go create mode 100644 model/scbp/AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpAdTargetTagMergeCampaignTargetTagResponse.go create mode 100644 model/scbp/AlibabaScbpEffectAccountDateGetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpEffectAccountDateGetAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpEffectAccountDateGetResponse.go create mode 100644 model/scbp/AlibabaScbpEffectAccountListAPIRequest.go create mode 100644 model/scbp/AlibabaScbpEffectAccountListAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpEffectAccountListResponse.go create mode 100644 model/scbp/AlibabaScbpEffectKeywordListAPIRequest.go create mode 100644 model/scbp/AlibabaScbpEffectKeywordListAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpEffectKeywordListResponse.go create mode 100644 model/scbp/AlibabaScbpEffectKeywordSingleGetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpEffectKeywordSingleGetAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpEffectKeywordSingleGetResponse.go create mode 100644 model/scbp/AlibabaScbpEffectProductReportAPIRequest.go create mode 100644 model/scbp/AlibabaScbpEffectProductReportAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpEffectProductReportResponse.go create mode 100644 model/scbp/AlibabaScbpEffectProductSingleGetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpEffectProductSingleGetAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpEffectProductSingleGetResponse.go create mode 100644 model/scbp/AlibabaScbpKeywordMatchedProductsGetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpKeywordMatchedProductsGetAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpKeywordMatchedProductsGetResponse.go create mode 100644 model/scbp/AlibabaScbpProductGroupGetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpProductGroupGetAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpProductGroupGetResponse.go create mode 100644 model/scbp/AlibabaScbpProductListAPIRequest.go create mode 100644 model/scbp/AlibabaScbpProductListAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpProductListResponse.go create mode 100644 model/scbp/AlibabaScbpProductPreferentialUpdateAPIRequest.go create mode 100644 model/scbp/AlibabaScbpProductPreferentialUpdateAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpProductPreferentialUpdateResponse.go create mode 100644 model/scbp/AlibabaScbpProductStatusUpdateAPIRequest.go create mode 100644 model/scbp/AlibabaScbpProductStatusUpdateAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpProductStatusUpdateResponse.go create mode 100644 model/scbp/AlibabaScbpReckeywordSearchAPIRequest.go create mode 100644 model/scbp/AlibabaScbpReckeywordSearchAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpReckeywordSearchResponse.go create mode 100644 model/scbp/AlibabaScbpReckeywordSysGetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpReckeywordSysGetAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpReckeywordSysGetResponse.go create mode 100644 model/scbp/AlibabaScbpTagAddAPIRequest.go create mode 100644 model/scbp/AlibabaScbpTagAddAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpTagAddResponse.go create mode 100644 model/scbp/AlibabaScbpTagDeleteAPIRequest.go create mode 100644 model/scbp/AlibabaScbpTagDeleteAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpTagDeleteResponse.go create mode 100644 model/scbp/AlibabaScbpTagListAPIRequest.go create mode 100644 model/scbp/AlibabaScbpTagListAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpTagListResponse.go create mode 100644 model/scbp/AlibabaScbpTagRenameAPIRequest.go create mode 100644 model/scbp/AlibabaScbpTagRenameAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpTagRenameResponse.go create mode 100644 model/scbp/AlibabaScbpTargetAdCampaignEffectAPIRequest.go create mode 100644 model/scbp/AlibabaScbpTargetAdCampaignEffectAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpTargetAdCampaignEffectResponse.go create mode 100644 model/scbp/AlibabaScbpTargetAdCampaignProductEffectAPIRequest.go create mode 100644 model/scbp/AlibabaScbpTargetAdCampaignProductEffectAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpTargetAdCampaignProductEffectResponse.go create mode 100644 model/scbp/AlibabaScbpTargetAdCampaignTagEffectAPIRequest.go create mode 100644 model/scbp/AlibabaScbpTargetAdCampaignTagEffectAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpTargetAdCampaignTagEffectResponse.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanAddAPIRequest.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanAddAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpTargetAdPlanAddResponse.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanCountryIdGetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanCountryIdGetAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpTargetAdPlanCountryIdGetResponse.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanCrowdIdGetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanCrowdIdGetAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpTargetAdPlanCrowdIdGetResponse.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanForbiddenWordModifyAPIRequest.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanForbiddenWordModifyAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpTargetAdPlanForbiddenWordModifyResponse.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanListAPIRequest.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanListAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpTargetAdPlanListResponse.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanOperationAPIRequest.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanOperationAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpTargetAdPlanOperationResponse.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanProductListGetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanProductListGetAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpTargetAdPlanProductListGetResponse.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanTagGetAPIRequest.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanTagGetAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpTargetAdPlanTagGetResponse.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanUpdateAPIRequest.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanUpdateAPIResponse.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanUpdateProductsAPIRequest.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanUpdateProductsAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpTargetAdPlanUpdateProductsResponse.go delete mode 100644 model/scbp/AlibabaScbpTargetAdPlanUpdateResponse.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanUpdateTagsAPIRequest.go create mode 100644 model/scbp/AlibabaScbpTargetAdPlanUpdateTagsAPIResponse.go delete mode 100644 model/scbp/AlibabaScbpTargetAdPlanUpdateTagsResponse.go create mode 100644 model/scs/AlibabaScsImageMatteAPIRequest.go create mode 100644 model/scs/AlibabaScsImageMatteAPIResponse.go delete mode 100644 model/scs/AlibabaScsImageMatteResponse.go create mode 100644 model/seaking/AlibabaAlifanyiMarketAuthenticateAPIRequest.go create mode 100644 model/seaking/AlibabaAlifanyiMarketAuthenticateAPIResponse.go delete mode 100644 model/seaking/AlibabaAlifanyiMarketAuthenticateResponse.go create mode 100644 model/seaking/AlibabaAlifanyiMarketExamAPIRequest.go create mode 100644 model/seaking/AlibabaAlifanyiMarketExamAPIResponse.go delete mode 100644 model/seaking/AlibabaAlifanyiMarketExamResponse.go create mode 100644 model/seaking/AlibabaAlifanyiMarketLoginAPIRequest.go create mode 100644 model/seaking/AlibabaAlifanyiMarketLoginAPIResponse.go delete mode 100644 model/seaking/AlibabaAlifanyiMarketLoginResponse.go create mode 100644 model/seaking/AlibabaSeakingAititlegenerateAPIRequest.go create mode 100644 model/seaking/AlibabaSeakingAititlegenerateAPIResponse.go delete mode 100644 model/seaking/AlibabaSeakingAititlegenerateResponse.go create mode 100644 model/seaking/AlibabaSeakingAuthmachineapiAPIRequest.go create mode 100644 model/seaking/AlibabaSeakingAuthmachineapiAPIResponse.go delete mode 100644 model/seaking/AlibabaSeakingAuthmachineapiResponse.go create mode 100644 model/seaking/AlibabaSeakingDiagnosistitleAPIRequest.go create mode 100644 model/seaking/AlibabaSeakingDiagnosistitleAPIResponse.go delete mode 100644 model/seaking/AlibabaSeakingDiagnosistitleResponse.go create mode 100644 model/seaking/AlibabaSeakingFeedbackAPIRequest.go create mode 100644 model/seaking/AlibabaSeakingFeedbackAPIResponse.go delete mode 100644 model/seaking/AlibabaSeakingFeedbackResponse.go create mode 100644 model/seaking/AlibabaSeakingImageTranslateAPIRequest.go create mode 100644 model/seaking/AlibabaSeakingImageTranslateAPIResponse.go delete mode 100644 model/seaking/AlibabaSeakingImageTranslateResponse.go create mode 100644 model/seaking/AlibabaSeakingImagerecognizeAPIRequest.go create mode 100644 model/seaking/AlibabaSeakingImagerecognizeAPIResponse.go delete mode 100644 model/seaking/AlibabaSeakingImagerecognizeResponse.go create mode 100644 model/seaking/AlibabaSeakingImagetranslateResultAPIRequest.go create mode 100644 model/seaking/AlibabaSeakingImagetranslateResultAPIResponse.go delete mode 100644 model/seaking/AlibabaSeakingImagetranslateResultResponse.go create mode 100644 model/seaking/AlibabaSeakingImagetranslateSubmitAPIRequest.go create mode 100644 model/seaking/AlibabaSeakingImagetranslateSubmitAPIResponse.go delete mode 100644 model/seaking/AlibabaSeakingImagetranslateSubmitResponse.go create mode 100644 model/seaking/AlibabaSeakingServicepackAPIRequest.go create mode 100644 model/seaking/AlibabaSeakingServicepackAPIResponse.go delete mode 100644 model/seaking/AlibabaSeakingServicepackResponse.go create mode 100644 model/seaking/AlibabaSeakingTaskReportAPIRequest.go create mode 100644 model/seaking/AlibabaSeakingTaskReportAPIResponse.go delete mode 100644 model/seaking/AlibabaSeakingTaskReportResponse.go create mode 100644 model/seaking/AlibabaSeakingTitlerewriteResultAPIRequest.go create mode 100644 model/seaking/AlibabaSeakingTitlerewriteResultAPIResponse.go delete mode 100644 model/seaking/AlibabaSeakingTitlerewriteResultResponse.go create mode 100644 model/seaking/AlibabaSeakingTitlerewriteSubmitAPIRequest.go create mode 100644 model/seaking/AlibabaSeakingTitlerewriteSubmitAPIResponse.go delete mode 100644 model/seaking/AlibabaSeakingTitlerewriteSubmitResponse.go create mode 100644 model/seaking/AlibabaSeakingTranslateAPIRequest.go create mode 100644 model/seaking/AlibabaSeakingTranslateAPIResponse.go delete mode 100644 model/seaking/AlibabaSeakingTranslateResponse.go create mode 100644 model/security/AlibabaSecurityJaqAfsCheckAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqAfsCheckAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqAfsCheckResponse.go create mode 100644 model/security/AlibabaSecurityJaqAppOfficialApplyAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqAppOfficialApplyAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqAppOfficialApplyResponse.go create mode 100644 model/security/AlibabaSecurityJaqAppOfficialVerifyAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqAppOfficialVerifyAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqAppOfficialVerifyResponse.go create mode 100644 model/security/AlibabaSecurityJaqAppRiskScanAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqAppRiskScanAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqAppRiskScanResponse.go create mode 100644 model/security/AlibabaSecurityJaqAppRiskScanbatchAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqAppRiskScanbatchAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqAppRiskScanbatchResponse.go create mode 100644 model/security/AlibabaSecurityJaqAppRiskdetailGetAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqAppRiskdetailGetAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqAppRiskdetailGetResponse.go create mode 100644 model/security/AlibabaSecurityJaqAppRiskdetailbatchGetAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqAppRiskdetailbatchGetAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqAppRiskdetailbatchGetResponse.go create mode 100644 model/security/AlibabaSecurityJaqAppRisksummaryGetAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqAppRisksummaryGetAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqAppRisksummaryGetResponse.go create mode 100644 model/security/AlibabaSecurityJaqAppShieldAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqAppShieldAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqAppShieldResponse.go create mode 100644 model/security/AlibabaSecurityJaqAppShieldresultGetAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqAppShieldresultGetAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqAppShieldresultGetResponse.go create mode 100644 model/security/AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqCampaignpreventionResultFetchAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqCampaignpreventionResultFetchResponse.go create mode 100644 model/security/AlibabaSecurityJaqCaptchaSendAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqCaptchaSendAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqCaptchaSendResponse.go create mode 100644 model/security/AlibabaSecurityJaqCaptchaVerifyAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqCaptchaVerifyAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqCaptchaVerifyResponse.go create mode 100644 model/security/AlibabaSecurityJaqCaptchaVerifyResultFetchAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqCaptchaVerifyResultFetchAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqCaptchaVerifyResultFetchResponse.go create mode 100644 model/security/AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqLoginpreventionResultFetchAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqLoginpreventionResultFetchResponse.go create mode 100644 model/security/AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchResponse.go create mode 100644 model/security/AlibabaSecurityJaqOcrImageSyncDetectAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqOcrImageSyncDetectAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqOcrImageSyncDetectResponse.go create mode 100644 model/security/AlibabaSecurityJaqPornImageSyncDetectAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqPornImageSyncDetectAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqPornImageSyncDetectResponse.go create mode 100644 model/security/AlibabaSecurityJaqResourceFetchAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqResourceFetchAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqResourceFetchResponse.go create mode 100644 model/security/AlibabaSecurityJaqRpCloudEventAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqRpCloudEventAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqRpCloudEventResponse.go create mode 100644 model/security/AlibabaSecurityJaqRpCloudOcrCheckAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqRpCloudOcrCheckAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqRpCloudOcrCheckResponse.go create mode 100644 model/security/AlibabaSecurityJaqRpCloudRealnameCheckAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqRpCloudRealnameCheckAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqRpCloudRealnameCheckResponse.go create mode 100644 model/security/AlibabaSecurityJaqRpCloudRphitAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqRpCloudRphitAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqRpCloudRphitResponse.go create mode 100644 model/security/AlibabaSecurityJaqRpCloudStartAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqRpCloudStartAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqRpCloudStartResponse.go create mode 100644 model/security/AlibabaSecurityJaqRpCloudSubmitAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqRpCloudSubmitAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqRpCloudSubmitResponse.go create mode 100644 model/security/AlibabaSecurityJaqRpCloudUploadAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqRpCloudUploadAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqRpCloudUploadResponse.go create mode 100644 model/security/AlibabaSecurityJaqRpFetchmaterialAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqRpFetchmaterialAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqRpFetchmaterialResponse.go create mode 100644 model/security/AlibabaSecurityJaqRpGetverifytokenAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqRpGetverifytokenAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqRpGetverifytokenResponse.go create mode 100644 model/security/AlibabaSecurityJaqRpOcrAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqRpOcrAPIResponse.go create mode 100644 model/security/AlibabaSecurityJaqRpOcrCheckAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqRpOcrCheckAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqRpOcrCheckResponse.go delete mode 100644 model/security/AlibabaSecurityJaqRpOcrResponse.go create mode 100644 model/security/AlibabaSecurityJaqRpQueryAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqRpQueryAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqRpQueryResponse.go create mode 100644 model/security/AlibabaSecurityJaqRpRphitAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqRpRphitAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqRpRphitResponse.go create mode 100644 model/security/AlibabaSecurityJaqRpStartAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqRpStartAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqRpStartResponse.go create mode 100644 model/security/AlibabaSecurityJaqRpStatusAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqRpStatusAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqRpStatusResponse.go create mode 100644 model/security/AlibabaSecurityJaqRpSubmitAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqRpSubmitAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqRpSubmitResponse.go create mode 100644 model/security/AlibabaSecurityJaqRpUploadAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqRpUploadAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqRpUploadResponse.go create mode 100644 model/security/AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqSpamregisterpreventionFeedbackResponse.go create mode 100644 model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIResponse.go create mode 100644 model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchNewResponse.go delete mode 100644 model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchResponse.go create mode 100644 model/security/AlibabaSecurityJaqUrlScanAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqUrlScanAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqUrlScanResponse.go create mode 100644 model/security/AlibabaSecurityJaqWsgriskdataReportAPIRequest.go create mode 100644 model/security/AlibabaSecurityJaqWsgriskdataReportAPIResponse.go delete mode 100644 model/security/AlibabaSecurityJaqWsgriskdataReportResponse.go create mode 100644 model/servicecenter/TaobaoFuwuPurchaseOrderConfirmAPIRequest.go create mode 100644 model/servicecenter/TaobaoFuwuPurchaseOrderConfirmAPIResponse.go delete mode 100644 model/servicecenter/TaobaoFuwuPurchaseOrderConfirmResponse.go create mode 100644 model/servicecenter/TaobaoFuwuPurchaseOrderPayAPIRequest.go create mode 100644 model/servicecenter/TaobaoFuwuPurchaseOrderPayAPIResponse.go delete mode 100644 model/servicecenter/TaobaoFuwuPurchaseOrderPayResponse.go create mode 100644 model/servicecenter/TaobaoFuwuSaleLinkGenAPIRequest.go create mode 100644 model/servicecenter/TaobaoFuwuSaleLinkGenAPIResponse.go delete mode 100644 model/servicecenter/TaobaoFuwuSaleLinkGenResponse.go create mode 100644 model/servicecenter/TaobaoFuwuScoresGetAPIRequest.go create mode 100644 model/servicecenter/TaobaoFuwuScoresGetAPIResponse.go delete mode 100644 model/servicecenter/TaobaoFuwuScoresGetResponse.go create mode 100644 model/servicecenter/TaobaoFuwuSkuGetAPIRequest.go create mode 100644 model/servicecenter/TaobaoFuwuSkuGetAPIResponse.go delete mode 100644 model/servicecenter/TaobaoFuwuSkuGetResponse.go create mode 100644 model/servicecenter/TaobaoFuwuSpBillreordAddAPIRequest.go create mode 100644 model/servicecenter/TaobaoFuwuSpBillreordAddAPIResponse.go delete mode 100644 model/servicecenter/TaobaoFuwuSpBillreordAddResponse.go create mode 100644 model/servicecenter/TaobaoFuwuSpConfirmApplyAPIRequest.go create mode 100644 model/servicecenter/TaobaoFuwuSpConfirmApplyAPIResponse.go delete mode 100644 model/servicecenter/TaobaoFuwuSpConfirmApplyResponse.go create mode 100644 model/servicecenter/TaobaoRecycleOfnpreredpacketGetAPIRequest.go create mode 100644 model/servicecenter/TaobaoRecycleOfnpreredpacketGetAPIResponse.go delete mode 100644 model/servicecenter/TaobaoRecycleOfnpreredpacketGetResponse.go create mode 100644 model/servicecenter/TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIRequest.go create mode 100644 model/servicecenter/TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIResponse.go delete mode 100644 model/servicecenter/TaobaoRecycleOfnpreredpacketTpdeductsuccessResponse.go create mode 100644 model/servicecenter/TaobaoVasOrderSearchAPIRequest.go create mode 100644 model/servicecenter/TaobaoVasOrderSearchAPIResponse.go delete mode 100644 model/servicecenter/TaobaoVasOrderSearchResponse.go create mode 100644 model/servicecenter/TaobaoVasServiceValidateAPIRequest.go create mode 100644 model/servicecenter/TaobaoVasServiceValidateAPIResponse.go delete mode 100644 model/servicecenter/TaobaoVasServiceValidateResponse.go create mode 100644 model/servicecenter/TaobaoVasSubscSearchAPIRequest.go create mode 100644 model/servicecenter/TaobaoVasSubscSearchAPIResponse.go delete mode 100644 model/servicecenter/TaobaoVasSubscSearchResponse.go create mode 100644 model/servicecenter/TaobaoVasSubscribeGetAPIRequest.go create mode 100644 model/servicecenter/TaobaoVasSubscribeGetAPIResponse.go delete mode 100644 model/servicecenter/TaobaoVasSubscribeGetResponse.go create mode 100644 model/servicecenter/TaobaoWeikeEserviceOrderGetAPIRequest.go create mode 100644 model/servicecenter/TaobaoWeikeEserviceOrderGetAPIResponse.go delete mode 100644 model/servicecenter/TaobaoWeikeEserviceOrderGetResponse.go create mode 100644 model/servicecenter/TaobaoWeikeEserviceScheduleGetAPIRequest.go create mode 100644 model/servicecenter/TaobaoWeikeEserviceScheduleGetAPIResponse.go delete mode 100644 model/servicecenter/TaobaoWeikeEserviceScheduleGetResponse.go create mode 100644 model/servicecenter/TaobaoWeikeEserviceSchedulePutAPIRequest.go create mode 100644 model/servicecenter/TaobaoWeikeEserviceSchedulePutAPIResponse.go delete mode 100644 model/servicecenter/TaobaoWeikeEserviceSchedulePutResponse.go create mode 100644 model/servicecenter/TaobaoWeikeEserviceSubusersGetAPIRequest.go create mode 100644 model/servicecenter/TaobaoWeikeEserviceSubusersGetAPIResponse.go delete mode 100644 model/servicecenter/TaobaoWeikeEserviceSubusersGetResponse.go create mode 100644 model/servicecenter/TaobaoWeikePerformancePutAPIRequest.go create mode 100644 model/servicecenter/TaobaoWeikePerformancePutAPIResponse.go delete mode 100644 model/servicecenter/TaobaoWeikePerformancePutResponse.go create mode 100644 model/servicecenter/TaobaoWeikeSubscinfoGetAPIRequest.go create mode 100644 model/servicecenter/TaobaoWeikeSubscinfoGetAPIResponse.go delete mode 100644 model/servicecenter/TaobaoWeikeSubscinfoGetResponse.go create mode 100644 model/servicecenter/TmallCarContractDownloadAPIRequest.go create mode 100644 model/servicecenter/TmallCarContractDownloadAPIResponse.go delete mode 100644 model/servicecenter/TmallCarContractDownloadResponse.go create mode 100644 model/servicecenter/TmallCarFpcarGetcarNotifyAPIRequest.go create mode 100644 model/servicecenter/TmallCarFpcarGetcarNotifyAPIResponse.go delete mode 100644 model/servicecenter/TmallCarFpcarGetcarNotifyResponse.go create mode 100644 model/servicecenter/TmallCarFpcarRestpayReceiveAPIRequest.go create mode 100644 model/servicecenter/TmallCarFpcarRestpayReceiveAPIResponse.go delete mode 100644 model/servicecenter/TmallCarFpcarRestpayReceiveResponse.go create mode 100644 model/servicecenter/TmallCarLeaseConsumeAPIRequest.go create mode 100644 model/servicecenter/TmallCarLeaseConsumeAPIResponse.go delete mode 100644 model/servicecenter/TmallCarLeaseConsumeResponse.go create mode 100644 model/servicecenter/TmallCarLeaseFreedownpaymentPutAPIRequest.go create mode 100644 model/servicecenter/TmallCarLeaseFreedownpaymentPutAPIResponse.go delete mode 100644 model/servicecenter/TmallCarLeaseFreedownpaymentPutResponse.go create mode 100644 model/servicecenter/TmallCarLeaseItemActivityGetAPIRequest.go create mode 100644 model/servicecenter/TmallCarLeaseItemActivityGetAPIResponse.go delete mode 100644 model/servicecenter/TmallCarLeaseItemActivityGetResponse.go create mode 100644 model/servicecenter/TmallCarLeaseItemcarinfoAPIRequest.go create mode 100644 model/servicecenter/TmallCarLeaseItemcarinfoAPIResponse.go delete mode 100644 model/servicecenter/TmallCarLeaseItemcarinfoResponse.go create mode 100644 model/servicecenter/TmallCarLeaseReserveAPIRequest.go create mode 100644 model/servicecenter/TmallCarLeaseReserveAPIResponse.go delete mode 100644 model/servicecenter/TmallCarLeaseReserveResponse.go create mode 100644 model/servicecenter/TmallCarLeaseRiskcallbackAPIRequest.go create mode 100644 model/servicecenter/TmallCarLeaseRiskcallbackAPIResponse.go delete mode 100644 model/servicecenter/TmallCarLeaseRiskcallbackResponse.go create mode 100644 model/servicecenter/TmallCarLeaseSynchronizeplansAPIRequest.go create mode 100644 model/servicecenter/TmallCarLeaseSynchronizeplansAPIResponse.go delete mode 100644 model/servicecenter/TmallCarLeaseSynchronizeplansResponse.go create mode 100644 model/servicecenter/TmallCarLeaseTailpaymentbackAPIRequest.go create mode 100644 model/servicecenter/TmallCarLeaseTailpaymentbackAPIResponse.go delete mode 100644 model/servicecenter/TmallCarLeaseTailpaymentbackResponse.go create mode 100644 model/servicecenter/TmallCarLeaseorderGetAPIRequest.go create mode 100644 model/servicecenter/TmallCarLeaseorderGetAPIResponse.go delete mode 100644 model/servicecenter/TmallCarLeaseorderGetResponse.go create mode 100644 model/servicecenter/TmallMsfReceiveAPIRequest.go create mode 100644 model/servicecenter/TmallMsfReceiveAPIResponse.go delete mode 100644 model/servicecenter/TmallMsfReceiveResponse.go create mode 100644 model/servicecenter/TmallMsfVerifyAPIRequest.go create mode 100644 model/servicecenter/TmallMsfVerifyAPIResponse.go delete mode 100644 model/servicecenter/TmallMsfVerifyResponse.go create mode 100644 model/servicecenter/TmallServiceSettleadjustmentSearchAPIRequest.go create mode 100644 model/servicecenter/TmallServiceSettleadjustmentSearchAPIResponse.go delete mode 100644 model/servicecenter/TmallServiceSettleadjustmentSearchResponse.go create mode 100644 model/servicecenter/TmallServicecenterTpFundsRecoverQueryAPIRequest.go create mode 100644 model/servicecenter/TmallServicecenterTpFundsRecoverQueryAPIResponse.go delete mode 100644 model/servicecenter/TmallServicecenterTpFundsRecoverQueryResponse.go create mode 100644 model/servicecenter/TmallServicecenterTpFundsSendQueryAPIRequest.go create mode 100644 model/servicecenter/TmallServicecenterTpFundsSendQueryAPIResponse.go delete mode 100644 model/servicecenter/TmallServicecenterTpFundsSendQueryResponse.go create mode 100644 model/shenjing/AlibabaIbCampusTmiQueryAPIRequest.go create mode 100644 model/shenjing/AlibabaIbCampusTmiQueryAPIResponse.go delete mode 100644 model/shenjing/AlibabaIbCampusTmiQueryResponse.go create mode 100644 model/shenjing/AlibabaIbShenjingVisitorPadFetchcodeverifyAPIRequest.go create mode 100644 model/shenjing/AlibabaIbShenjingVisitorPadFetchcodeverifyAPIResponse.go delete mode 100644 model/shenjing/AlibabaIbShenjingVisitorPadFetchcodeverifyResponse.go create mode 100644 model/shenjing/AlibabaIbShenjingVisitorPadGetinfoAPIRequest.go create mode 100644 model/shenjing/AlibabaIbShenjingVisitorPadGetinfoAPIResponse.go delete mode 100644 model/shenjing/AlibabaIbShenjingVisitorPadGetinfoResponse.go create mode 100644 model/shenjing/AlibabaIbShenjingVisitorPadGetqrcodelinkAPIRequest.go create mode 100644 model/shenjing/AlibabaIbShenjingVisitorPadGetqrcodelinkAPIResponse.go delete mode 100644 model/shenjing/AlibabaIbShenjingVisitorPadGetqrcodelinkResponse.go create mode 100644 model/shenjing/AlibabaIbShenjingVisitorPadOpendoorAPIRequest.go create mode 100644 model/shenjing/AlibabaIbShenjingVisitorPadOpendoorAPIResponse.go delete mode 100644 model/shenjing/AlibabaIbShenjingVisitorPadOpendoorResponse.go create mode 100644 model/shenjing/AlibabaIbShenjingVisitorPadUploadfaceAPIRequest.go create mode 100644 model/shenjing/AlibabaIbShenjingVisitorPadUploadfaceAPIResponse.go delete mode 100644 model/shenjing/AlibabaIbShenjingVisitorPadUploadfaceResponse.go create mode 100644 model/shenjing/AlibabaShenjingCoreActivityGetappshowlistAPIRequest.go create mode 100644 model/shenjing/AlibabaShenjingCoreActivityGetappshowlistAPIResponse.go delete mode 100644 model/shenjing/AlibabaShenjingCoreActivityGetappshowlistResponse.go create mode 100644 model/ship/AlitripShipOrderNotifyAPIRequest.go create mode 100644 model/ship/AlitripShipOrderNotifyAPIResponse.go delete mode 100644 model/ship/AlitripShipOrderNotifyResponse.go create mode 100644 model/ship/AlitripShipProductSyncbaseAPIRequest.go create mode 100644 model/ship/AlitripShipProductSyncbaseAPIResponse.go delete mode 100644 model/ship/AlitripShipProductSyncbaseResponse.go create mode 100644 model/ship/AlitripShipProductSynccallAPIRequest.go create mode 100644 model/ship/AlitripShipProductSynccallAPIResponse.go delete mode 100644 model/ship/AlitripShipProductSynccallResponse.go create mode 100644 model/ship/AlitripShipProductSyncnunberAPIRequest.go create mode 100644 model/ship/AlitripShipProductSyncnunberAPIResponse.go delete mode 100644 model/ship/AlitripShipProductSyncnunberResponse.go create mode 100644 model/ship/AlitripShipReturnNotifyAPIRequest.go create mode 100644 model/ship/AlitripShipReturnNotifyAPIResponse.go delete mode 100644 model/ship/AlitripShipReturnNotifyResponse.go create mode 100644 model/shop/AlibabaDataCouponGetAPIRequest.go create mode 100644 model/shop/AlibabaDataCouponGetAPIResponse.go delete mode 100644 model/shop/AlibabaDataCouponGetResponse.go create mode 100644 model/shop/AlibabaDataItemGetAPIRequest.go create mode 100644 model/shop/AlibabaDataItemGetAPIResponse.go delete mode 100644 model/shop/AlibabaDataItemGetResponse.go create mode 100644 model/shop/AlibabaDataRecommondGetAPIRequest.go create mode 100644 model/shop/AlibabaDataRecommondGetAPIResponse.go delete mode 100644 model/shop/AlibabaDataRecommondGetResponse.go create mode 100644 model/shop/AlibabaInteractSensorClipbroadAPIRequest.go create mode 100644 model/shop/AlibabaInteractSensorClipbroadAPIResponse.go delete mode 100644 model/shop/AlibabaInteractSensorClipbroadResponse.go create mode 100644 model/shop/AlibabaInteractWindvaneCallAPIRequest.go create mode 100644 model/shop/AlibabaInteractWindvaneCallAPIResponse.go delete mode 100644 model/shop/AlibabaInteractWindvaneCallResponse.go create mode 100644 model/shop/AlibabaKoubeishopsPropertyGetAPIRequest.go create mode 100644 model/shop/AlibabaKoubeishopsPropertyGetAPIResponse.go delete mode 100644 model/shop/AlibabaKoubeishopsPropertyGetResponse.go create mode 100644 model/shop/AlibabaTaobaoShopCatNeoGetAPIRequest.go create mode 100644 model/shop/AlibabaTaobaoShopCatNeoGetAPIResponse.go delete mode 100644 model/shop/AlibabaTaobaoShopCatNeoGetResponse.go create mode 100644 model/shop/TaobaoSellercatsListAddAPIRequest.go create mode 100644 model/shop/TaobaoSellercatsListAddAPIResponse.go delete mode 100644 model/shop/TaobaoSellercatsListAddResponse.go create mode 100644 model/shop/TaobaoSellercatsListGetAPIRequest.go create mode 100644 model/shop/TaobaoSellercatsListGetAPIResponse.go delete mode 100644 model/shop/TaobaoSellercatsListGetResponse.go create mode 100644 model/shop/TaobaoSellercatsListUpdateAPIRequest.go create mode 100644 model/shop/TaobaoSellercatsListUpdateAPIResponse.go delete mode 100644 model/shop/TaobaoSellercatsListUpdateResponse.go create mode 100644 model/shop/TaobaoShopSellerGetAPIRequest.go create mode 100644 model/shop/TaobaoShopSellerGetAPIResponse.go delete mode 100644 model/shop/TaobaoShopSellerGetResponse.go create mode 100644 model/shop/TaobaoShopUpdateAPIRequest.go create mode 100644 model/shop/TaobaoShopUpdateAPIResponse.go delete mode 100644 model/shop/TaobaoShopUpdateResponse.go create mode 100644 model/shop/TaobaoShopcatsListGetAPIRequest.go create mode 100644 model/shop/TaobaoShopcatsListGetAPIResponse.go delete mode 100644 model/shop/TaobaoShopcatsListGetResponse.go create mode 100644 model/shop/TaobaoStoreFollowurlGetAPIRequest.go create mode 100644 model/shop/TaobaoStoreFollowurlGetAPIResponse.go delete mode 100644 model/shop/TaobaoStoreFollowurlGetResponse.go create mode 100644 model/simba/TaobaoSimbaAccountBalanceGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaAccountBalanceGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaAccountBalanceGetResponse.go create mode 100644 model/simba/TaobaoSimbaAdgroupAddAPIRequest.go create mode 100644 model/simba/TaobaoSimbaAdgroupAddAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaAdgroupAddResponse.go create mode 100644 model/simba/TaobaoSimbaAdgroupDeleteAPIRequest.go create mode 100644 model/simba/TaobaoSimbaAdgroupDeleteAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaAdgroupDeleteResponse.go create mode 100644 model/simba/TaobaoSimbaAdgroupMobilediscountDeleteAPIRequest.go create mode 100644 model/simba/TaobaoSimbaAdgroupMobilediscountDeleteAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaAdgroupMobilediscountDeleteResponse.go create mode 100644 model/simba/TaobaoSimbaAdgroupMobilediscountUpdateAPIRequest.go create mode 100644 model/simba/TaobaoSimbaAdgroupMobilediscountUpdateAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaAdgroupMobilediscountUpdateResponse.go create mode 100644 model/simba/TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaAdgroupOnlineitemsvonGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaAdgroupOnlineitemsvonGetResponse.go create mode 100644 model/simba/TaobaoSimbaAdgroupUpdateAPIRequest.go create mode 100644 model/simba/TaobaoSimbaAdgroupUpdateAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaAdgroupUpdateResponse.go create mode 100644 model/simba/TaobaoSimbaAdgroupidsChangedGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaAdgroupidsChangedGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaAdgroupidsChangedGetResponse.go create mode 100644 model/simba/TaobaoSimbaAdgroupidsDeletedGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaAdgroupidsDeletedGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaAdgroupidsDeletedGetResponse.go create mode 100644 model/simba/TaobaoSimbaAdgroupsChangedGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaAdgroupsChangedGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaAdgroupsChangedGetResponse.go create mode 100644 model/simba/TaobaoSimbaAdgroupsItemExistAPIRequest.go create mode 100644 model/simba/TaobaoSimbaAdgroupsItemExistAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaAdgroupsItemExistResponse.go create mode 100644 model/simba/TaobaoSimbaAdgroupsbyadgroupidsGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaAdgroupsbyadgroupidsGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaAdgroupsbyadgroupidsGetResponse.go create mode 100644 model/simba/TaobaoSimbaAdgroupsbycampaignidGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaAdgroupsbycampaignidGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaAdgroupsbycampaignidGetResponse.go create mode 100644 model/simba/TaobaoSimbaBidwordPricetoolsAPIRequest.go create mode 100644 model/simba/TaobaoSimbaBidwordPricetoolsAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaBidwordPricetoolsResponse.go create mode 100644 model/simba/TaobaoSimbaCampaignAddAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCampaignAddAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCampaignAddResponse.go create mode 100644 model/simba/TaobaoSimbaCampaignAreaGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCampaignAreaGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCampaignAreaGetResponse.go create mode 100644 model/simba/TaobaoSimbaCampaignAreaUpdateAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCampaignAreaUpdateAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCampaignAreaUpdateResponse.go create mode 100644 model/simba/TaobaoSimbaCampaignAreaoptionsGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCampaignAreaoptionsGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCampaignAreaoptionsGetResponse.go create mode 100644 model/simba/TaobaoSimbaCampaignBudgetGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCampaignBudgetGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCampaignBudgetGetResponse.go create mode 100644 model/simba/TaobaoSimbaCampaignBudgetUpdateAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCampaignBudgetUpdateAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCampaignBudgetUpdateResponse.go create mode 100644 model/simba/TaobaoSimbaCampaignPlatformGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCampaignPlatformGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCampaignPlatformGetResponse.go create mode 100644 model/simba/TaobaoSimbaCampaignPlatformUpdateAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCampaignPlatformUpdateAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCampaignPlatformUpdateResponse.go create mode 100644 model/simba/TaobaoSimbaCampaignScheduleGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCampaignScheduleGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCampaignScheduleGetResponse.go create mode 100644 model/simba/TaobaoSimbaCampaignScheduleUpdateAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCampaignScheduleUpdateAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCampaignScheduleUpdateResponse.go create mode 100644 model/simba/TaobaoSimbaCampaignTimetemplateFindAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCampaignTimetemplateFindAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCampaignTimetemplateFindResponse.go create mode 100644 model/simba/TaobaoSimbaCampaignUpdateAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCampaignUpdateAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCampaignUpdateResponse.go create mode 100644 model/simba/TaobaoSimbaCampaignsGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCampaignsGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCampaignsGetResponse.go create mode 100644 model/simba/TaobaoSimbaCreativeAddAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCreativeAddAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCreativeAddResponse.go create mode 100644 model/simba/TaobaoSimbaCreativeDeleteAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCreativeDeleteAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCreativeDeleteResponse.go create mode 100644 model/simba/TaobaoSimbaCreativeUpdateAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCreativeUpdateAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCreativeUpdateResponse.go create mode 100644 model/simba/TaobaoSimbaCreativeidsDeletedGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCreativeidsDeletedGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCreativeidsDeletedGetResponse.go create mode 100644 model/simba/TaobaoSimbaCreativesChangedGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCreativesChangedGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCreativesChangedGetResponse.go create mode 100644 model/simba/TaobaoSimbaCreativesGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCreativesGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCreativesGetResponse.go create mode 100644 model/simba/TaobaoSimbaCustomersAuthorizedGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCustomersAuthorizedGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCustomersAuthorizedGetResponse.go create mode 100644 model/simba/TaobaoSimbaCustomersSidGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaCustomersSidGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaCustomersSidGetResponse.go create mode 100644 model/simba/TaobaoSimbaHourReportAccountGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaHourReportAccountGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaHourReportAccountGetResponse.go create mode 100644 model/simba/TaobaoSimbaHourReportAdgroupGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaHourReportAdgroupGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaHourReportAdgroupGetResponse.go create mode 100644 model/simba/TaobaoSimbaHourReportCampaignGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaHourReportCampaignGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaHourReportCampaignGetResponse.go create mode 100644 model/simba/TaobaoSimbaInsightCatsdataGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaInsightCatsdataGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaInsightCatsdataGetResponse.go create mode 100644 model/simba/TaobaoSimbaInsightCatsforecastnewGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaInsightCatsforecastnewGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaInsightCatsforecastnewGetResponse.go create mode 100644 model/simba/TaobaoSimbaInsightCatsinfoGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaInsightCatsinfoGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaInsightCatsinfoGetResponse.go create mode 100644 model/simba/TaobaoSimbaInsightCatstopwordnewGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaInsightCatstopwordnewGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaInsightCatstopwordnewGetResponse.go create mode 100644 model/simba/TaobaoSimbaInsightCatsworddataGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaInsightCatsworddataGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaInsightCatsworddataGetResponse.go create mode 100644 model/simba/TaobaoSimbaInsightRelatedwordsGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaInsightRelatedwordsGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaInsightRelatedwordsGetResponse.go create mode 100644 model/simba/TaobaoSimbaInsightWordsareadataGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaInsightWordsareadataGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaInsightWordsareadataGetResponse.go create mode 100644 model/simba/TaobaoSimbaInsightWordsdataGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaInsightWordsdataGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaInsightWordsdataGetResponse.go create mode 100644 model/simba/TaobaoSimbaInsightWordspricedataGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaInsightWordspricedataGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaInsightWordspricedataGetResponse.go create mode 100644 model/simba/TaobaoSimbaInsightWordssubdataGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaInsightWordssubdataGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaInsightWordssubdataGetResponse.go create mode 100644 model/simba/TaobaoSimbaKeywordAddAPIRequest.go create mode 100644 model/simba/TaobaoSimbaKeywordAddAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaKeywordAddResponse.go create mode 100644 model/simba/TaobaoSimbaKeywordFindbyadgroupidAPIRequest.go create mode 100644 model/simba/TaobaoSimbaKeywordFindbyadgroupidAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaKeywordFindbyadgroupidResponse.go create mode 100644 model/simba/TaobaoSimbaKeywordFindbyidsAPIRequest.go create mode 100644 model/simba/TaobaoSimbaKeywordFindbyidsAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaKeywordFindbyidsResponse.go create mode 100644 model/simba/TaobaoSimbaKeywordUpdateAPIRequest.go create mode 100644 model/simba/TaobaoSimbaKeywordUpdateAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaKeywordUpdateResponse.go create mode 100644 model/simba/TaobaoSimbaKeywordidsChangedGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaKeywordidsChangedGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaKeywordidsChangedGetResponse.go create mode 100644 model/simba/TaobaoSimbaKeywordidsDeletedGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaKeywordidsDeletedGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaKeywordidsDeletedGetResponse.go create mode 100644 model/simba/TaobaoSimbaKeywordsChangedGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaKeywordsChangedGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaKeywordsChangedGetResponse.go create mode 100644 model/simba/TaobaoSimbaKeywordsDeleteAPIRequest.go create mode 100644 model/simba/TaobaoSimbaKeywordsDeleteAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaKeywordsDeleteResponse.go create mode 100644 model/simba/TaobaoSimbaKeywordsPricevonSetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaKeywordsPricevonSetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaKeywordsPricevonSetResponse.go create mode 100644 model/simba/TaobaoSimbaKeywordsQscoreGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaKeywordsQscoreGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaKeywordsQscoreGetResponse.go create mode 100644 model/simba/TaobaoSimbaKeywordsQscoreSplitGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaKeywordsQscoreSplitGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaKeywordsQscoreSplitGetResponse.go create mode 100644 model/simba/TaobaoSimbaKeywordsQscoreSplitGetResultDto.go create mode 100644 model/simba/TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaKeywordsRealtimeRankingBatchGetResponse.go create mode 100644 model/simba/TaobaoSimbaKeywordsRealtimeRankingBatchGetResultDto.go create mode 100644 model/simba/TaobaoSimbaKeywordsRecommendGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaKeywordsRecommendGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaKeywordsRecommendGetResponse.go create mode 100644 model/simba/TaobaoSimbaKeywordsbyadgroupidGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaKeywordsbyadgroupidGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaKeywordsbyadgroupidGetResponse.go create mode 100644 model/simba/TaobaoSimbaKeywordsbykeywordidsGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaKeywordsbykeywordidsGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaKeywordsbykeywordidsGetResponse.go create mode 100644 model/simba/TaobaoSimbaKeywordscatQscoreGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaKeywordscatQscoreGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaKeywordscatQscoreGetResponse.go create mode 100644 model/simba/TaobaoSimbaKeywordsvonAddAPIRequest.go create mode 100644 model/simba/TaobaoSimbaKeywordsvonAddAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaKeywordsvonAddResponse.go create mode 100644 model/simba/TaobaoSimbaLoginAuthsignGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaLoginAuthsignGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaLoginAuthsignGetResponse.go create mode 100644 model/simba/TaobaoSimbaReportCityGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaReportCityGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaReportCityGetResponse.go create mode 100644 model/simba/TaobaoSimbaRptAdgroupbaseGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRptAdgroupbaseGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRptAdgroupbaseGetResponse.go create mode 100644 model/simba/TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRptAdgroupcreativebaseGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRptAdgroupcreativebaseGetResponse.go create mode 100644 model/simba/TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRptAdgroupcreativeeffectGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRptAdgroupcreativeeffectGetResponse.go create mode 100644 model/simba/TaobaoSimbaRptAdgroupeffectGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRptAdgroupeffectGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRptAdgroupeffectGetResponse.go create mode 100644 model/simba/TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRptAdgroupkeywordbaseGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRptAdgroupkeywordbaseGetResponse.go create mode 100644 model/simba/TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRptAdgroupkeywordeffectGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRptAdgroupkeywordeffectGetResponse.go create mode 100644 model/simba/TaobaoSimbaRptCampadgroupbaseGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRptCampadgroupbaseGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRptCampadgroupbaseGetResponse.go create mode 100644 model/simba/TaobaoSimbaRptCampadgroupeffectGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRptCampadgroupeffectGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRptCampadgroupeffectGetResponse.go create mode 100644 model/simba/TaobaoSimbaRptCampaignbaseGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRptCampaignbaseGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRptCampaignbaseGetResponse.go create mode 100644 model/simba/TaobaoSimbaRptCampaigneffectGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRptCampaigneffectGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRptCampaigneffectGetResponse.go create mode 100644 model/simba/TaobaoSimbaRptCustbaseGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRptCustbaseGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRptCustbaseGetResponse.go create mode 100644 model/simba/TaobaoSimbaRptCusteffectGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRptCusteffectGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRptCusteffectGetResponse.go create mode 100644 model/simba/TaobaoSimbaRptTargetingtagGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRptTargetingtagGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRptTargetingtagGetResponse.go create mode 100644 model/simba/TaobaoSimbaRptTargetingtagbaseGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRptTargetingtagbaseGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRptTargetingtagbaseGetResponse.go create mode 100644 model/simba/TaobaoSimbaRptTargetingtageffectGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRptTargetingtageffectGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRptTargetingtageffectGetResponse.go create mode 100644 model/simba/TaobaoSimbaRtrptAdgroupGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRtrptAdgroupGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRtrptAdgroupGetResponse.go create mode 100644 model/simba/TaobaoSimbaRtrptBidwordGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRtrptBidwordGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRtrptBidwordGetResponse.go create mode 100644 model/simba/TaobaoSimbaRtrptCampaignGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRtrptCampaignGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRtrptCampaignGetResponse.go create mode 100644 model/simba/TaobaoSimbaRtrptCreativeGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRtrptCreativeGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRtrptCreativeGetResponse.go create mode 100644 model/simba/TaobaoSimbaRtrptCustGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRtrptCustGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRtrptCustGetResponse.go create mode 100644 model/simba/TaobaoSimbaRtrptTargetingtagGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaRtrptTargetingtagGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaRtrptTargetingtagGetResponse.go create mode 100644 model/simba/TaobaoSimbaSalestarAdgroupAddAPIRequest.go create mode 100644 model/simba/TaobaoSimbaSalestarAdgroupAddAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaSalestarAdgroupAddResponse.go create mode 100644 model/simba/TaobaoSimbaSalestarAdgroupDeleteAPIRequest.go create mode 100644 model/simba/TaobaoSimbaSalestarAdgroupDeleteAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaSalestarAdgroupDeleteResponse.go create mode 100644 model/simba/TaobaoSimbaSalestarAdgroupFindbycampidAPIRequest.go create mode 100644 model/simba/TaobaoSimbaSalestarAdgroupFindbycampidAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaSalestarAdgroupFindbycampidResponse.go create mode 100644 model/simba/TaobaoSimbaSalestarAdgroupUpdateAPIRequest.go create mode 100644 model/simba/TaobaoSimbaSalestarAdgroupUpdateAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaSalestarAdgroupUpdateResponse.go create mode 100644 model/simba/TaobaoSimbaSalestarCampaignBudgetUpdateAPIRequest.go create mode 100644 model/simba/TaobaoSimbaSalestarCampaignBudgetUpdateAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaSalestarCampaignBudgetUpdateResponse.go create mode 100644 model/simba/TaobaoSimbaSalestarCreativeAddAPIRequest.go create mode 100644 model/simba/TaobaoSimbaSalestarCreativeAddAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaSalestarCreativeAddResponse.go create mode 100644 model/simba/TaobaoSimbaSalestarCreativeDeleteAPIRequest.go create mode 100644 model/simba/TaobaoSimbaSalestarCreativeDeleteAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaSalestarCreativeDeleteResponse.go create mode 100644 model/simba/TaobaoSimbaSalestarCreativeUpdateAPIRequest.go create mode 100644 model/simba/TaobaoSimbaSalestarCreativeUpdateAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaSalestarCreativeUpdateResponse.go create mode 100644 model/simba/TaobaoSimbaSalestarCreativesGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaSalestarCreativesGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaSalestarCreativesGetResponse.go create mode 100644 model/simba/TaobaoSimbaSalestarKeywordsDeleteAPIRequest.go create mode 100644 model/simba/TaobaoSimbaSalestarKeywordsDeleteAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaSalestarKeywordsDeleteResponse.go create mode 100644 model/simba/TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaSalestarKeywordsQscoreSplitGetResponse.go create mode 100644 model/simba/TaobaoSimbaSalestarKeywordsQscoreSplitGetResultDto.go create mode 100644 model/simba/TaobaoSimbaSalestarKeywordsRecommendGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaSalestarKeywordsRecommendGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaSalestarKeywordsRecommendGetResponse.go create mode 100644 model/simba/TaobaoSimbaSearchcrowdBatchAddAPIRequest.go create mode 100644 model/simba/TaobaoSimbaSearchcrowdBatchAddAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaSearchcrowdBatchAddResponse.go create mode 100644 model/simba/TaobaoSimbaSearchtagtemplateGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaSearchtagtemplateGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaSearchtagtemplateGetResponse.go create mode 100644 model/simba/TaobaoSimbaSerchcrowdBatchDeleteAPIRequest.go create mode 100644 model/simba/TaobaoSimbaSerchcrowdBatchDeleteAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaSerchcrowdBatchDeleteResponse.go create mode 100644 model/simba/TaobaoSimbaSerchcrowdGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaSerchcrowdGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaSerchcrowdGetResponse.go create mode 100644 model/simba/TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest.go create mode 100644 model/simba/TaobaoSimbaSerchcrowdPriceBatchUpdateAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaSerchcrowdPriceBatchUpdateResponse.go create mode 100644 model/simba/TaobaoSimbaSerchcrowdStateBatchUpdateAPIRequest.go create mode 100644 model/simba/TaobaoSimbaSerchcrowdStateBatchUpdateAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaSerchcrowdStateBatchUpdateResponse.go create mode 100644 model/simba/TaobaoSimbaToolsItemsTopGetAPIRequest.go create mode 100644 model/simba/TaobaoSimbaToolsItemsTopGetAPIResponse.go delete mode 100644 model/simba/TaobaoSimbaToolsItemsTopGetResponse.go create mode 100644 model/simba/TaobaoSubwayAutomatchRptGetAPIRequest.go create mode 100644 model/simba/TaobaoSubwayAutomatchRptGetAPIResponse.go delete mode 100644 model/simba/TaobaoSubwayAutomatchRptGetResponse.go create mode 100644 model/simba/TaobaoSubwayCiaGetAPIRequest.go create mode 100644 model/simba/TaobaoSubwayCiaGetAPIResponse.go delete mode 100644 model/simba/TaobaoSubwayCiaGetResponse.go create mode 100644 model/simba/TaobaoSubwayCiaUpdateAPIRequest.go create mode 100644 model/simba/TaobaoSubwayCiaUpdateAPIResponse.go delete mode 100644 model/simba/TaobaoSubwayCiaUpdateResponse.go create mode 100644 model/simba/TaobaoSubwayMarshLandRptGetAPIRequest.go create mode 100644 model/simba/TaobaoSubwayMarshLandRptGetAPIResponse.go delete mode 100644 model/simba/TaobaoSubwayMarshLandRptGetResponse.go create mode 100644 model/simba/TaobaoSubwayWordpackageGetAPIRequest.go create mode 100644 model/simba/TaobaoSubwayWordpackageGetAPIResponse.go delete mode 100644 model/simba/TaobaoSubwayWordpackageGetResponse.go create mode 100644 model/simba/TaobaoSubwayWordpackageUpdateAPIRequest.go create mode 100644 model/simba/TaobaoSubwayWordpackageUpdateAPIResponse.go delete mode 100644 model/simba/TaobaoSubwayWordpackageUpdateResponse.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityCreateAPIRequest.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityCreateAPIResponse.go delete mode 100644 model/singletreasure/TaobaoSingletreasureActivityCreateResponse.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityCreateResultDto.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityDeleteAPIRequest.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityDeleteAPIResponse.go delete mode 100644 model/singletreasure/TaobaoSingletreasureActivityDeleteResponse.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityItemBatchaddAPIRequest.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityItemBatchaddAPIResponse.go delete mode 100644 model/singletreasure/TaobaoSingletreasureActivityItemBatchaddResponse.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityItemBatchaddResultDto.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityItemBatchupdateAPIRequest.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityItemBatchupdateAPIResponse.go delete mode 100644 model/singletreasure/TaobaoSingletreasureActivityItemBatchupdateResponse.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityItemBatchupdateResultDto.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityItemDeleteAPIRequest.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityItemDeleteAPIResponse.go delete mode 100644 model/singletreasure/TaobaoSingletreasureActivityItemDeleteResponse.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityItemDeleteResultDto.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityItemQueryAPIRequest.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityItemQueryAPIResponse.go delete mode 100644 model/singletreasure/TaobaoSingletreasureActivityItemQueryResponse.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityItemUpdateAPIRequest.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityItemUpdateAPIResponse.go delete mode 100644 model/singletreasure/TaobaoSingletreasureActivityItemUpdateResponse.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityItemUpdateResultDto.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityNameQueryAPIRequest.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityNameQueryAPIResponse.go delete mode 100644 model/singletreasure/TaobaoSingletreasureActivityNameQueryResponse.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityNameQueryResultDto.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityQueryAPIRequest.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityQueryAPIResponse.go delete mode 100644 model/singletreasure/TaobaoSingletreasureActivityQueryResponse.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityQueryResultDto.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityUpdateAPIRequest.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityUpdateAPIResponse.go delete mode 100644 model/singletreasure/TaobaoSingletreasureActivityUpdateResponse.go create mode 100644 model/singletreasure/TaobaoSingletreasureActivityUpdateResultDto.go create mode 100644 model/smartstore/TaobaoIstoreAreasGetAPIRequest.go create mode 100644 model/smartstore/TaobaoIstoreAreasGetAPIResponse.go delete mode 100644 model/smartstore/TaobaoIstoreAreasGetResponse.go create mode 100644 model/smartstore/TaobaoNrrsAcceptanceTaskUpdateResultAPIRequest.go create mode 100644 model/smartstore/TaobaoNrrsAcceptanceTaskUpdateResultAPIResponse.go delete mode 100644 model/smartstore/TaobaoNrrsAcceptanceTaskUpdateResultResponse.go create mode 100644 model/smartstore/TaobaoSmartstoreDeviceAddAPIRequest.go create mode 100644 model/smartstore/TaobaoSmartstoreDeviceAddAPIResponse.go delete mode 100644 model/smartstore/TaobaoSmartstoreDeviceAddResponse.go create mode 100644 model/smartstore/TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIRequest.go create mode 100644 model/smartstore/TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIResponse.go delete mode 100644 model/smartstore/TaobaoSmartstoreDeviceIashelfBatchFeedbackResponse.go create mode 100644 model/smartstore/TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest.go create mode 100644 model/smartstore/TaobaoSmartstoreDeviceIashelfFeedbackAPIResponse.go delete mode 100644 model/smartstore/TaobaoSmartstoreDeviceIashelfFeedbackResponse.go create mode 100644 model/smartstore/TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest.go create mode 100644 model/smartstore/TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIResponse.go delete mode 100644 model/smartstore/TaobaoSmartstoreDeviceMakeupmirrorFeedbackResponse.go create mode 100644 model/smartstore/TaobaoSmartstoreDeviceShelfFeedbackAPIRequest.go create mode 100644 model/smartstore/TaobaoSmartstoreDeviceShelfFeedbackAPIResponse.go delete mode 100644 model/smartstore/TaobaoSmartstoreDeviceShelfFeedbackResponse.go create mode 100644 model/smartstore/TaobaoSmartstoreDeviceStatusFeedbackAPIRequest.go create mode 100644 model/smartstore/TaobaoSmartstoreDeviceStatusFeedbackAPIResponse.go delete mode 100644 model/smartstore/TaobaoSmartstoreDeviceStatusFeedbackResponse.go create mode 100644 model/smartstore/TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest.go create mode 100644 model/smartstore/TaobaoSmartstoreDeviceStoregameFeedbackAPIResponse.go delete mode 100644 model/smartstore/TaobaoSmartstoreDeviceStoregameFeedbackResponse.go create mode 100644 model/smartstore/TmallPopupstoreActivityDeviceQueryAPIRequest.go create mode 100644 model/smartstore/TmallPopupstoreActivityDeviceQueryAPIResponse.go delete mode 100644 model/smartstore/TmallPopupstoreActivityDeviceQueryResponse.go create mode 100644 model/smartstore/TmallPopupstoreActivityDeviceQueryResultDto.go create mode 100644 model/smartstore/TmallPopupstoreActivityQueryAPIRequest.go create mode 100644 model/smartstore/TmallPopupstoreActivityQueryAPIResponse.go delete mode 100644 model/smartstore/TmallPopupstoreActivityQueryResponse.go create mode 100644 model/smartstore/TmallPopupstoreActivityQueryResultDto.go create mode 100644 model/smartstore/TmallPopupstoreItemDiscountPriceAPIRequest.go create mode 100644 model/smartstore/TmallPopupstoreItemDiscountPriceAPIResponse.go delete mode 100644 model/smartstore/TmallPopupstoreItemDiscountPriceResponse.go create mode 100644 model/smartstore/TmallPopupstoreItemDiscountPriceResultDto.go create mode 100644 model/store/TaobaoPlaceStoreExtendUpdateAPIRequest.go create mode 100644 model/store/TaobaoPlaceStoreExtendUpdateAPIResponse.go delete mode 100644 model/store/TaobaoPlaceStoreExtendUpdateResponse.go create mode 100644 model/store/TaobaoPlaceStoreExtendUpdateResultDo.go create mode 100644 model/store/TaobaoPlaceStoreItemstoreBandAPIRequest.go create mode 100644 model/store/TaobaoPlaceStoreItemstoreBandAPIResponse.go delete mode 100644 model/store/TaobaoPlaceStoreItemstoreBandResponse.go create mode 100644 model/store/TaobaoPlaceStoreQueryAPIRequest.go create mode 100644 model/store/TaobaoPlaceStoreQueryAPIResponse.go delete mode 100644 model/store/TaobaoPlaceStoreQueryResponse.go create mode 100644 model/store/TaobaoPlaceStoreRelationQueryAPIRequest.go create mode 100644 model/store/TaobaoPlaceStoreRelationQueryAPIResponse.go delete mode 100644 model/store/TaobaoPlaceStoreRelationQueryResponse.go create mode 100644 model/store/TaobaoPlaceStoreUpdateLabelAPIRequest.go create mode 100644 model/store/TaobaoPlaceStoreUpdateLabelAPIResponse.go delete mode 100644 model/store/TaobaoPlaceStoreUpdateLabelResponse.go create mode 100644 model/store/TaobaoPlaceStoregroupCreateAPIRequest.go create mode 100644 model/store/TaobaoPlaceStoregroupCreateAPIResponse.go delete mode 100644 model/store/TaobaoPlaceStoregroupCreateResponse.go create mode 100644 model/store/TaobaoPlaceStoregroupDeleteAPIRequest.go create mode 100644 model/store/TaobaoPlaceStoregroupDeleteAPIResponse.go delete mode 100644 model/store/TaobaoPlaceStoregroupDeleteResponse.go create mode 100644 model/store/TaobaoPlaceStoregroupUpdateAPIRequest.go create mode 100644 model/store/TaobaoPlaceStoregroupUpdateAPIResponse.go delete mode 100644 model/store/TaobaoPlaceStoregroupUpdateResponse.go create mode 100644 model/store/TaobaoPlaceStorerelatesubAddAPIRequest.go create mode 100644 model/store/TaobaoPlaceStorerelatesubAddAPIResponse.go delete mode 100644 model/store/TaobaoPlaceStorerelatesubAddResponse.go create mode 100644 model/store/TaobaoPlaceStorerelatesubDeleteAPIRequest.go create mode 100644 model/store/TaobaoPlaceStorerelatesubDeleteAPIResponse.go delete mode 100644 model/store/TaobaoPlaceStorerelatesubDeleteResponse.go create mode 100644 model/store/TaobaoPlaceStorerelatesubGetAPIRequest.go create mode 100644 model/store/TaobaoPlaceStorerelatesubGetAPIResponse.go delete mode 100644 model/store/TaobaoPlaceStorerelatesubGetResponse.go create mode 100644 model/subuser/TaobaoSellercenterRoleAddAPIRequest.go create mode 100644 model/subuser/TaobaoSellercenterRoleAddAPIResponse.go delete mode 100644 model/subuser/TaobaoSellercenterRoleAddResponse.go create mode 100644 model/subuser/TaobaoSellercenterRolesGetAPIRequest.go create mode 100644 model/subuser/TaobaoSellercenterRolesGetAPIResponse.go delete mode 100644 model/subuser/TaobaoSellercenterRolesGetResponse.go create mode 100644 model/subuser/TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest.go create mode 100644 model/subuser/TaobaoSellercenterSubuserPermissionsRolesGetAPIResponse.go delete mode 100644 model/subuser/TaobaoSellercenterSubuserPermissionsRolesGetResponse.go create mode 100644 model/subuser/TaobaoSellercenterSubusersGetAPIRequest.go create mode 100644 model/subuser/TaobaoSellercenterSubusersGetAPIResponse.go delete mode 100644 model/subuser/TaobaoSellercenterSubusersGetResponse.go create mode 100644 model/subuser/TaobaoSellercenterUserPermissionsGetAPIRequest.go create mode 100644 model/subuser/TaobaoSellercenterUserPermissionsGetAPIResponse.go delete mode 100644 model/subuser/TaobaoSellercenterUserPermissionsGetResponse.go create mode 100644 model/subuser/TaobaoSubuserDepartmentsGetAPIRequest.go create mode 100644 model/subuser/TaobaoSubuserDepartmentsGetAPIResponse.go delete mode 100644 model/subuser/TaobaoSubuserDepartmentsGetResponse.go create mode 100644 model/subuser/TaobaoSubuserDutysGetAPIRequest.go create mode 100644 model/subuser/TaobaoSubuserDutysGetAPIResponse.go delete mode 100644 model/subuser/TaobaoSubuserDutysGetResponse.go create mode 100644 model/subuser/TaobaoSubuserFullinfoGetAPIRequest.go create mode 100644 model/subuser/TaobaoSubuserFullinfoGetAPIResponse.go delete mode 100644 model/subuser/TaobaoSubuserFullinfoGetResponse.go create mode 100644 model/subuser/TaobaoSubuserInfoUpdateAPIRequest.go create mode 100644 model/subuser/TaobaoSubuserInfoUpdateAPIResponse.go delete mode 100644 model/subuser/TaobaoSubuserInfoUpdateResponse.go create mode 100644 model/subuser/TaobaoSubusersGetAPIRequest.go create mode 100644 model/subuser/TaobaoSubusersGetAPIResponse.go delete mode 100644 model/subuser/TaobaoSubusersGetResponse.go create mode 100644 model/sungari/TaobaoCloudbridgeCaseinvestExecuteAPIRequest.go create mode 100644 model/sungari/TaobaoCloudbridgeCaseinvestExecuteAPIResponse.go delete mode 100644 model/sungari/TaobaoCloudbridgeCaseinvestExecuteResponse.go create mode 100644 model/sungari/TaobaoSungariDisposeQueryAPIRequest.go create mode 100644 model/sungari/TaobaoSungariDisposeQueryAPIResponse.go delete mode 100644 model/sungari/TaobaoSungariDisposeQueryResponse.go create mode 100644 model/sungari/TaobaoSungariDisposeSubmitAPIRequest.go create mode 100644 model/sungari/TaobaoSungariDisposeSubmitAPIResponse.go delete mode 100644 model/sungari/TaobaoSungariDisposeSubmitResponse.go create mode 100644 model/sungari/TaobaoSungariInspectionSubmitAPIRequest.go create mode 100644 model/sungari/TaobaoSungariInspectionSubmitAPIResponse.go delete mode 100644 model/sungari/TaobaoSungariInspectionSubmitResponse.go create mode 100644 model/tanx/TaobaoTanxAuditCreativeAddAPIRequest.go create mode 100644 model/tanx/TaobaoTanxAuditCreativeAddAPIResponse.go delete mode 100644 model/tanx/TaobaoTanxAuditCreativeAddResponse.go create mode 100644 model/tanx/TaobaoTanxAuditCreativeModifyAPIRequest.go create mode 100644 model/tanx/TaobaoTanxAuditCreativeModifyAPIResponse.go delete mode 100644 model/tanx/TaobaoTanxAuditCreativeModifyResponse.go create mode 100644 model/tanx/TaobaoTanxAuditDepositcreativeAddAPIRequest.go create mode 100644 model/tanx/TaobaoTanxAuditDepositcreativeAddAPIResponse.go delete mode 100644 model/tanx/TaobaoTanxAuditDepositcreativeAddResponse.go create mode 100644 model/tanx/TaobaoTanxBiddingrefusesGetAPIRequest.go create mode 100644 model/tanx/TaobaoTanxBiddingrefusesGetAPIResponse.go delete mode 100644 model/tanx/TaobaoTanxBiddingrefusesGetResponse.go create mode 100644 model/tanx/TaobaoTanxCreativeAddAPIRequest.go create mode 100644 model/tanx/TaobaoTanxCreativeAddAPIResponse.go delete mode 100644 model/tanx/TaobaoTanxCreativeAddResponse.go create mode 100644 model/tanx/TaobaoTanxCreativeGetAPIRequest.go create mode 100644 model/tanx/TaobaoTanxCreativeGetAPIResponse.go delete mode 100644 model/tanx/TaobaoTanxCreativeGetResponse.go create mode 100644 model/tanx/TaobaoTanxCreativesGetAPIRequest.go create mode 100644 model/tanx/TaobaoTanxCreativesGetAPIResponse.go delete mode 100644 model/tanx/TaobaoTanxCreativesGetResponse.go create mode 100644 model/tanx/TaobaoTanxDealGetAPIRequest.go create mode 100644 model/tanx/TaobaoTanxDealGetAPIResponse.go delete mode 100644 model/tanx/TaobaoTanxDealGetResponse.go create mode 100644 model/tanx/TaobaoTanxDealsGetAPIRequest.go create mode 100644 model/tanx/TaobaoTanxDealsGetAPIResponse.go delete mode 100644 model/tanx/TaobaoTanxDealsGetResponse.go create mode 100644 model/tanx/TaobaoTanxNativetemplatesGetAPIRequest.go create mode 100644 model/tanx/TaobaoTanxNativetemplatesGetAPIResponse.go delete mode 100644 model/tanx/TaobaoTanxNativetemplatesGetResponse.go create mode 100644 model/tanx/TaobaoTanxQualificationAddAPIRequest.go create mode 100644 model/tanx/TaobaoTanxQualificationAddAPIResponse.go delete mode 100644 model/tanx/TaobaoTanxQualificationAddResponse.go create mode 100644 model/tanx/TaobaoTanxQualificationAdvertiserAddAPIRequest.go create mode 100644 model/tanx/TaobaoTanxQualificationAdvertiserAddAPIResponse.go delete mode 100644 model/tanx/TaobaoTanxQualificationAdvertiserAddResponse.go create mode 100644 model/tanx/TaobaoTanxQualificationFindAPIRequest.go create mode 100644 model/tanx/TaobaoTanxQualificationFindAPIResponse.go delete mode 100644 model/tanx/TaobaoTanxQualificationFindResponse.go create mode 100644 model/tanx/TaobaoTanxQualificationModifyAPIRequest.go create mode 100644 model/tanx/TaobaoTanxQualificationModifyAPIResponse.go delete mode 100644 model/tanx/TaobaoTanxQualificationModifyResponse.go create mode 100644 model/tanx/TaobaoTanxQualificationPictureUploadAPIRequest.go create mode 100644 model/tanx/TaobaoTanxQualificationPictureUploadAPIResponse.go delete mode 100644 model/tanx/TaobaoTanxQualificationPictureUploadResponse.go create mode 100644 model/tanx/TaobaoTanxQualificationSolidFindAPIRequest.go create mode 100644 model/tanx/TaobaoTanxQualificationSolidFindAPIResponse.go delete mode 100644 model/tanx/TaobaoTanxQualificationSolidFindResponse.go create mode 100644 model/taotv/TaobaoTaotvCarouselCategoryListAPIRequest.go create mode 100644 model/taotv/TaobaoTaotvCarouselCategoryListAPIResponse.go delete mode 100644 model/taotv/TaobaoTaotvCarouselCategoryListResponse.go create mode 100644 model/taotv/TaobaoTaotvCarouselChannelAllAPIRequest.go create mode 100644 model/taotv/TaobaoTaotvCarouselChannelAllAPIResponse.go delete mode 100644 model/taotv/TaobaoTaotvCarouselChannelAllResponse.go create mode 100644 model/taotv/TaobaoTaotvCarouselPlaylistGetAPIRequest.go create mode 100644 model/taotv/TaobaoTaotvCarouselPlaylistGetAPIResponse.go delete mode 100644 model/taotv/TaobaoTaotvCarouselPlaylistGetResponse.go create mode 100644 model/taotv/TaobaoTaotvVideoPlaylistAllAPIRequest.go create mode 100644 model/taotv/TaobaoTaotvVideoPlaylistAllAPIResponse.go delete mode 100644 model/taotv/TaobaoTaotvVideoPlaylistAllResponse.go create mode 100644 model/taotv/TaobaoTaotvVideoPlaylistGetAPIRequest.go create mode 100644 model/taotv/TaobaoTaotvVideoPlaylistGetAPIResponse.go delete mode 100644 model/taotv/TaobaoTaotvVideoPlaylistGetResponse.go create mode 100644 model/taotv/TaobaoTaotvVideoPlaylistOttnavGetAPIRequest.go create mode 100644 model/taotv/TaobaoTaotvVideoPlaylistOttnavGetAPIResponse.go delete mode 100644 model/taotv/TaobaoTaotvVideoPlaylistOttnavGetResponse.go create mode 100644 model/taotv/TaobaoTaotvVideoPlaylistPageAPIRequest.go create mode 100644 model/taotv/TaobaoTaotvVideoPlaylistPageAPIResponse.go delete mode 100644 model/taotv/TaobaoTaotvVideoPlaylistPageResponse.go create mode 100644 model/taotv/YoukuTvDesktopToyouRecommendAPIRequest.go create mode 100644 model/taotv/YoukuTvDesktopToyouRecommendAPIResponse.go delete mode 100644 model/taotv/YoukuTvDesktopToyouRecommendResponse.go create mode 100644 model/tax/AlibabaTaxInvoiceSyncAPIRequest.go create mode 100644 model/tax/AlibabaTaxInvoiceSyncAPIResponse.go delete mode 100644 model/tax/AlibabaTaxInvoiceSyncResponse.go create mode 100644 model/tbk/TaobaoTbkActivityInfoGetAPIRequest.go create mode 100644 model/tbk/TaobaoTbkActivityInfoGetAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkActivityInfoGetResponse.go create mode 100644 model/tbk/TaobaoTbkCartCouponExpireUserQueryAPIRequest.go create mode 100644 model/tbk/TaobaoTbkCartCouponExpireUserQueryAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkCartCouponExpireUserQueryResponse.go create mode 100644 model/tbk/TaobaoTbkCouponGetAPIRequest.go create mode 100644 model/tbk/TaobaoTbkCouponGetAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkCouponGetResponse.go create mode 100644 model/tbk/TaobaoTbkDgMaterialOptionalAPIRequest.go create mode 100644 model/tbk/TaobaoTbkDgMaterialOptionalAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkDgMaterialOptionalResponse.go create mode 100644 model/tbk/TaobaoTbkDgNewuserOrderGetAPIRequest.go create mode 100644 model/tbk/TaobaoTbkDgNewuserOrderGetAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkDgNewuserOrderGetResponse.go create mode 100644 model/tbk/TaobaoTbkDgNewuserOrderSumAPIRequest.go create mode 100644 model/tbk/TaobaoTbkDgNewuserOrderSumAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkDgNewuserOrderSumResponse.go create mode 100644 model/tbk/TaobaoTbkDgOptimusMaterialAPIRequest.go create mode 100644 model/tbk/TaobaoTbkDgOptimusMaterialAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkDgOptimusMaterialResponse.go create mode 100644 model/tbk/TaobaoTbkDgOptimusPromotionAPIRequest.go create mode 100644 model/tbk/TaobaoTbkDgOptimusPromotionAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkDgOptimusPromotionResponse.go create mode 100644 model/tbk/TaobaoTbkDgPunishOrderGetAPIRequest.go create mode 100644 model/tbk/TaobaoTbkDgPunishOrderGetAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkDgPunishOrderGetResponse.go create mode 100644 model/tbk/TaobaoTbkDgVegasSendStatusAPIRequest.go create mode 100644 model/tbk/TaobaoTbkDgVegasSendStatusAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkDgVegasSendStatusResponse.go create mode 100644 model/tbk/TaobaoTbkDgVegasTljCreateAPIRequest.go create mode 100644 model/tbk/TaobaoTbkDgVegasTljCreateAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkDgVegasTljCreateResponse.go create mode 100644 model/tbk/TaobaoTbkDgVegasTljInstanceReportAPIRequest.go create mode 100644 model/tbk/TaobaoTbkDgVegasTljInstanceReportAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkDgVegasTljInstanceReportResponse.go create mode 100644 model/tbk/TaobaoTbkItemInfoGetAPIRequest.go create mode 100644 model/tbk/TaobaoTbkItemInfoGetAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkItemInfoGetResponse.go create mode 100644 model/tbk/TaobaoTbkScInvitecodeGetAPIRequest.go create mode 100644 model/tbk/TaobaoTbkScInvitecodeGetAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkScInvitecodeGetResponse.go create mode 100644 model/tbk/TaobaoTbkScPublisherInfoGetAPIRequest.go create mode 100644 model/tbk/TaobaoTbkScPublisherInfoGetAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkScPublisherInfoGetResponse.go create mode 100644 model/tbk/TaobaoTbkScPublisherInfoSaveAPIRequest.go create mode 100644 model/tbk/TaobaoTbkScPublisherInfoSaveAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkScPublisherInfoSaveResponse.go create mode 100644 model/tbk/TaobaoTbkShopGetAPIRequest.go create mode 100644 model/tbk/TaobaoTbkShopGetAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkShopGetResponse.go create mode 100644 model/tbk/TaobaoTbkShopRecommendGetAPIRequest.go create mode 100644 model/tbk/TaobaoTbkShopRecommendGetAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkShopRecommendGetResponse.go create mode 100644 model/tbk/TaobaoTbkSkuBestCouponAPIRequest.go create mode 100644 model/tbk/TaobaoTbkSkuBestCouponAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkSkuBestCouponResponse.go create mode 100644 model/tbk/TaobaoTbkSpreadGetAPIRequest.go create mode 100644 model/tbk/TaobaoTbkSpreadGetAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkSpreadGetResponse.go create mode 100644 model/tbk/TaobaoTbkTpwdCreateAPIRequest.go create mode 100644 model/tbk/TaobaoTbkTpwdCreateAPIResponse.go delete mode 100644 model/tbk/TaobaoTbkTpwdCreateResponse.go create mode 100644 model/ticket/AlitripTicketProductQueryAPIRequest.go create mode 100644 model/ticket/AlitripTicketProductQueryAPIResponse.go delete mode 100644 model/ticket/AlitripTicketProductQueryResponse.go create mode 100644 model/ticket/AlitripTicketProductUploadAPIRequest.go create mode 100644 model/ticket/AlitripTicketProductUploadAPIResponse.go delete mode 100644 model/ticket/AlitripTicketProductUploadResponse.go create mode 100644 model/ticket/AlitripTicketRuleQueryAPIRequest.go create mode 100644 model/ticket/AlitripTicketRuleQueryAPIResponse.go delete mode 100644 model/ticket/AlitripTicketRuleQueryResponse.go create mode 100644 model/ticket/AlitripTicketRuleUploadAPIRequest.go create mode 100644 model/ticket/AlitripTicketRuleUploadAPIResponse.go delete mode 100644 model/ticket/AlitripTicketRuleUploadResponse.go create mode 100644 model/ticket/AlitripTicketScenicBindAPIRequest.go create mode 100644 model/ticket/AlitripTicketScenicBindAPIResponse.go delete mode 100644 model/ticket/AlitripTicketScenicBindResponse.go create mode 100644 model/ticket/AlitripTicketScenicQueryAPIRequest.go create mode 100644 model/ticket/AlitripTicketScenicQueryAPIResponse.go delete mode 100644 model/ticket/AlitripTicketScenicQueryResponse.go create mode 100644 model/ticket/AlitripTicketSkusBatchUploadAPIRequest.go create mode 100644 model/ticket/AlitripTicketSkusBatchUploadAPIResponse.go delete mode 100644 model/ticket/AlitripTicketSkusBatchUploadResponse.go create mode 100644 model/ticket/AlitripTicketSkusUploadAPIRequest.go create mode 100644 model/ticket/AlitripTicketSkusUploadAPIResponse.go delete mode 100644 model/ticket/AlitripTicketSkusUploadResponse.go create mode 100644 model/tmallcampus/TmallCampusIndustryAppAuditQueryAPIRequest.go create mode 100644 model/tmallcampus/TmallCampusIndustryAppAuditQueryAPIResponse.go delete mode 100644 model/tmallcampus/TmallCampusIndustryAppAuditQueryResponse.go create mode 100644 model/tmallcar/TaobaoCarVehicleinfoRegisterAPIRequest.go create mode 100644 model/tmallcar/TaobaoCarVehicleinfoRegisterAPIResponse.go delete mode 100644 model/tmallcar/TaobaoCarVehicleinfoRegisterResponse.go create mode 100644 model/tmallcar/TmallAliautoAutofinanceCreditReceiveAPIRequest.go create mode 100644 model/tmallcar/TmallAliautoAutofinanceCreditReceiveAPIResponse.go delete mode 100644 model/tmallcar/TmallAliautoAutofinanceCreditReceiveResponse.go create mode 100644 model/tmallcar/TmallAliautoAutofinanceLoanReceiveAPIRequest.go create mode 100644 model/tmallcar/TmallAliautoAutofinanceLoanReceiveAPIResponse.go delete mode 100644 model/tmallcar/TmallAliautoAutofinanceLoanReceiveResponse.go create mode 100644 model/tmallcar/TmallAliautoMetaReceiveAPIRequest.go create mode 100644 model/tmallcar/TmallAliautoMetaReceiveAPIResponse.go delete mode 100644 model/tmallcar/TmallAliautoMetaReceiveResponse.go create mode 100644 model/tmallcar/TmallAliautoReceiptStateUpdateAPIRequest.go create mode 100644 model/tmallcar/TmallAliautoReceiptStateUpdateAPIResponse.go delete mode 100644 model/tmallcar/TmallAliautoReceiptStateUpdateResponse.go create mode 100644 model/tmallcar/TmallAliautoServiceReceiptGetAPIRequest.go create mode 100644 model/tmallcar/TmallAliautoServiceReceiptGetAPIResponse.go delete mode 100644 model/tmallcar/TmallAliautoServiceReceiptGetResponse.go create mode 100644 model/tmallcar/TmallAliautoWisdomdataModelReciveAPIRequest.go create mode 100644 model/tmallcar/TmallAliautoWisdomdataModelReciveAPIResponse.go delete mode 100644 model/tmallcar/TmallAliautoWisdomdataModelReciveResponse.go create mode 100644 model/tmallcar/TmallCarLeaseCitysynchronizeAPIRequest.go create mode 100644 model/tmallcar/TmallCarLeaseCitysynchronizeAPIResponse.go delete mode 100644 model/tmallcar/TmallCarLeaseCitysynchronizeResponse.go create mode 100644 model/tmallcar/TmallCarLeaseContractdownloadAPIRequest.go create mode 100644 model/tmallcar/TmallCarLeaseContractdownloadAPIResponse.go delete mode 100644 model/tmallcar/TmallCarLeaseContractdownloadResponse.go create mode 100644 model/tmallcar/TmallCarLeaseExceptionflowsynchronizeAPIRequest.go create mode 100644 model/tmallcar/TmallCarLeaseExceptionflowsynchronizeAPIResponse.go delete mode 100644 model/tmallcar/TmallCarLeaseExceptionflowsynchronizeResponse.go create mode 100644 model/tmallcar/TmallCarLeaseOrderidGetAPIRequest.go create mode 100644 model/tmallcar/TmallCarLeaseOrderidGetAPIResponse.go delete mode 100644 model/tmallcar/TmallCarLeaseOrderidGetResponse.go create mode 100644 model/tmallcar/TmallCarLeasePayforcustomerAPIRequest.go create mode 100644 model/tmallcar/TmallCarLeasePayforcustomerAPIResponse.go delete mode 100644 model/tmallcar/TmallCarLeasePayforcustomerResponse.go create mode 100644 model/tmallcar/TmallCarLeasePostsynchronizeAPIRequest.go create mode 100644 model/tmallcar/TmallCarLeasePostsynchronizeAPIResponse.go delete mode 100644 model/tmallcar/TmallCarLeasePostsynchronizeResponse.go create mode 100644 model/tmallcar/TmallCarLeaseQueryloanplansAPIRequest.go create mode 100644 model/tmallcar/TmallCarLeaseQueryloanplansAPIResponse.go delete mode 100644 model/tmallcar/TmallCarLeaseQueryloanplansResponse.go create mode 100644 model/tmallcar/TmallCarLeaseStatussynchronizeAPIRequest.go create mode 100644 model/tmallcar/TmallCarLeaseStatussynchronizeAPIResponse.go delete mode 100644 model/tmallcar/TmallCarLeaseStatussynchronizeResponse.go create mode 100644 model/tmallcar/TmallCarXcarSynchronizeCarLineDataAPIRequest.go create mode 100644 model/tmallcar/TmallCarXcarSynchronizeCarLineDataAPIResponse.go delete mode 100644 model/tmallcar/TmallCarXcarSynchronizeCarLineDataResponse.go create mode 100644 model/tmallcar/TmallCarXcarSynchronizeCarLinePicsDataAPIRequest.go create mode 100644 model/tmallcar/TmallCarXcarSynchronizeCarLinePicsDataAPIResponse.go delete mode 100644 model/tmallcar/TmallCarXcarSynchronizeCarLinePicsDataResponse.go create mode 100644 model/tmallcar/TmallCarXcarSynchronizeCarModelDataAPIRequest.go create mode 100644 model/tmallcar/TmallCarXcarSynchronizeCarModelDataAPIResponse.go delete mode 100644 model/tmallcar/TmallCarXcarSynchronizeCarModelDataResponse.go create mode 100644 model/tmallcarenter/TmallCarcenterVehicleChasisInsertAPIRequest.go create mode 100644 model/tmallcarenter/TmallCarcenterVehicleChasisInsertAPIResponse.go delete mode 100644 model/tmallcarenter/TmallCarcenterVehicleChasisInsertResponse.go create mode 100644 model/tmallcarenter/TmallCarcenterVehicleCvmappingInsertAPIRequest.go create mode 100644 model/tmallcarenter/TmallCarcenterVehicleCvmappingInsertAPIResponse.go delete mode 100644 model/tmallcarenter/TmallCarcenterVehicleCvmappingInsertResponse.go create mode 100644 model/tmallcarenter/TmallCarcenterVehicleVersionInsertAPIRequest.go create mode 100644 model/tmallcarenter/TmallCarcenterVehicleVersionInsertAPIResponse.go delete mode 100644 model/tmallcarenter/TmallCarcenterVehicleVersionInsertResponse.go create mode 100644 model/tmallcarenter/TmallCarcenterVehicleinfoRegisterAPIRequest.go create mode 100644 model/tmallcarenter/TmallCarcenterVehicleinfoRegisterAPIResponse.go delete mode 100644 model/tmallcarenter/TmallCarcenterVehicleinfoRegisterResponse.go create mode 100644 model/tmallchannel/TaobaoChannelTradePrepayOfflineAddAPIRequest.go create mode 100644 model/tmallchannel/TaobaoChannelTradePrepayOfflineAddAPIResponse.go delete mode 100644 model/tmallchannel/TaobaoChannelTradePrepayOfflineAddResponse.go create mode 100644 model/tmallchannel/TaobaoChannelTradePrepayOfflineReduceAPIRequest.go create mode 100644 model/tmallchannel/TaobaoChannelTradePrepayOfflineReduceAPIResponse.go delete mode 100644 model/tmallchannel/TaobaoChannelTradePrepayOfflineReduceResponse.go create mode 100644 model/tmallchannel/TmallChannelProductsQueryAPIRequest.go create mode 100644 model/tmallchannel/TmallChannelProductsQueryAPIResponse.go delete mode 100644 model/tmallchannel/TmallChannelProductsQueryResponse.go create mode 100644 model/tmallchannel/TmallChannelTradeApplyorderAgreeAPIRequest.go create mode 100644 model/tmallchannel/TmallChannelTradeApplyorderAgreeAPIResponse.go delete mode 100644 model/tmallchannel/TmallChannelTradeApplyorderAgreeResponse.go create mode 100644 model/tmallchannel/TmallChannelTradeApplyorderAgreeResultDto.go create mode 100644 model/tmallchannel/TmallChannelTradeApplyorderGetAPIRequest.go create mode 100644 model/tmallchannel/TmallChannelTradeApplyorderGetAPIResponse.go delete mode 100644 model/tmallchannel/TmallChannelTradeApplyorderGetResponse.go create mode 100644 model/tmallchannel/TmallChannelTradeApplyorderGetsAPIRequest.go create mode 100644 model/tmallchannel/TmallChannelTradeApplyorderGetsAPIResponse.go delete mode 100644 model/tmallchannel/TmallChannelTradeApplyorderGetsResponse.go create mode 100644 model/tmallchannel/TmallChannelTradeApplyorderModifyAPIRequest.go create mode 100644 model/tmallchannel/TmallChannelTradeApplyorderModifyAPIResponse.go delete mode 100644 model/tmallchannel/TmallChannelTradeApplyorderModifyResponse.go create mode 100644 model/tmallchannel/TmallChannelTradeApplyorderModifyResultDto.go create mode 100644 model/tmallchannel/TmallChannelTradeApplyorderRefuseAPIRequest.go create mode 100644 model/tmallchannel/TmallChannelTradeApplyorderRefuseAPIResponse.go delete mode 100644 model/tmallchannel/TmallChannelTradeApplyorderRefuseResponse.go create mode 100644 model/tmallchannel/TmallChannelTradeApplyorderRefuseResultDto.go create mode 100644 model/tmallchannel/TmallChannelTradeDeliverorderAgreeAPIRequest.go create mode 100644 model/tmallchannel/TmallChannelTradeDeliverorderAgreeAPIResponse.go delete mode 100644 model/tmallchannel/TmallChannelTradeDeliverorderAgreeResponse.go create mode 100644 model/tmallchannel/TmallChannelTradeDeliverorderAgreeResultDto.go create mode 100644 model/tmallchannel/TmallChannelTradeDeliverorderGetAPIRequest.go create mode 100644 model/tmallchannel/TmallChannelTradeDeliverorderGetAPIResponse.go delete mode 100644 model/tmallchannel/TmallChannelTradeDeliverorderGetResponse.go create mode 100644 model/tmallchannel/TmallChannelTradeDeliverorderGetsAPIRequest.go create mode 100644 model/tmallchannel/TmallChannelTradeDeliverorderGetsAPIResponse.go delete mode 100644 model/tmallchannel/TmallChannelTradeDeliverorderGetsResponse.go create mode 100644 model/tmallchannel/TmallChannelTradeDeliverorderRejectAPIRequest.go create mode 100644 model/tmallchannel/TmallChannelTradeDeliverorderRejectAPIResponse.go delete mode 100644 model/tmallchannel/TmallChannelTradeDeliverorderRejectResponse.go create mode 100644 model/tmallchannel/TmallChannelTradeDeliverorderRejectResultDto.go create mode 100644 model/tmallchannel/TmallChannelTradeOrderCreateAPIRequest.go create mode 100644 model/tmallchannel/TmallChannelTradeOrderCreateAPIResponse.go delete mode 100644 model/tmallchannel/TmallChannelTradeOrderCreateResponse.go create mode 100644 model/tmallchannel/TmallChannelTradeOrderGetAPIRequest.go create mode 100644 model/tmallchannel/TmallChannelTradeOrderGetAPIResponse.go delete mode 100644 model/tmallchannel/TmallChannelTradeOrderGetResponse.go create mode 100644 model/tmallchannel/TmallChannelTradeOrderGetsAPIRequest.go create mode 100644 model/tmallchannel/TmallChannelTradeOrderGetsAPIResponse.go delete mode 100644 model/tmallchannel/TmallChannelTradeOrderGetsResponse.go create mode 100644 model/tmallchannel/TmallChannelTradeOrderStopAPIRequest.go create mode 100644 model/tmallchannel/TmallChannelTradeOrderStopAPIResponse.go delete mode 100644 model/tmallchannel/TmallChannelTradeOrderStopResponse.go create mode 100644 model/tmallchannel/TmallChannelTradeOrderStopResultDto.go create mode 100644 model/tmallchannel/TmallChannelTradeRefundorderGetsAPIRequest.go create mode 100644 model/tmallchannel/TmallChannelTradeRefundorderGetsAPIResponse.go delete mode 100644 model/tmallchannel/TmallChannelTradeRefundorderGetsResponse.go create mode 100644 model/tmallcms/TmallMarketingLiuliangbaoSpreadlinkCreateAPIRequest.go create mode 100644 model/tmallcms/TmallMarketingLiuliangbaoSpreadlinkCreateAPIResponse.go delete mode 100644 model/tmallcms/TmallMarketingLiuliangbaoSpreadlinkCreateResponse.go create mode 100644 model/tmallfcbox/TmallFcboxNotifyAPIRequest.go create mode 100644 model/tmallfcbox/TmallFcboxNotifyAPIResponse.go delete mode 100644 model/tmallfcbox/TmallFcboxNotifyResponse.go create mode 100644 model/tmallgenie/AlibabaAiUserQuickBindAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAiUserQuickBindAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAiUserQuickBindResponse.go create mode 100644 model/tmallgenie/AlibabaAiUserQuickRegisterAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAiUserQuickRegisterAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAiUserQuickRegisterResponse.go create mode 100644 model/tmallgenie/AlibabaAiUserQuickTokenBindAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAiUserQuickTokenBindAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAiUserQuickTokenBindResponse.go create mode 100644 model/tmallgenie/AlibabaAilabsAligenieDeviceRegisterAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAilabsAligenieDeviceRegisterAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAilabsAligenieDeviceRegisterResponse.go create mode 100644 model/tmallgenie/AlibabaAilabsAligenieOpencontentPushAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAilabsAligenieOpencontentPushAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAilabsAligenieOpencontentPushResponse.go create mode 100644 model/tmallgenie/AlibabaAilabsAligenieOpencontentScenepushAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAilabsAligenieOpencontentScenepushAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAilabsAligenieOpencontentScenepushResponse.go create mode 100644 model/tmallgenie/AlibabaAilabsAligenieOpenvideoPushAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAilabsAligenieOpenvideoPushAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAilabsAligenieOpenvideoPushResponse.go create mode 100644 model/tmallgenie/AlibabaAilabsAligenieOpenvideoScenepushAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAilabsAligenieOpenvideoScenepushAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAilabsAligenieOpenvideoScenepushResponse.go create mode 100644 model/tmallgenie/AlibabaAilabsAligenieOpenvideoalbumScenepushAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAilabsAligenieOpenvideoalbumScenepushAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAilabsAligenieOpenvideoalbumScenepushResponse.go create mode 100644 model/tmallgenie/AlibabaAilabsAligenieSkillEntityImportAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAilabsAligenieSkillEntityImportAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAilabsAligenieSkillEntityImportResponse.go create mode 100644 model/tmallgenie/AlibabaAilabsAligenieSkillMessagePushAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAilabsAligenieSkillMessagePushAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAilabsAligenieSkillMessagePushResponse.go create mode 100644 model/tmallgenie/AlibabaAilabsAligenieVideoalbumPushAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAilabsAligenieVideoalbumPushAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAilabsAligenieVideoalbumPushResponse.go create mode 100644 model/tmallgenie/AlibabaAilabsBotsSkilsListAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAilabsBotsSkilsListAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAilabsBotsSkilsListResponse.go create mode 100644 model/tmallgenie/AlibabaAilabsIotCloudDeviceReportAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAilabsIotCloudDeviceReportAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAilabsIotCloudDeviceReportResponse.go create mode 100644 model/tmallgenie/AlibabaAilabsIotDeviceControlNotifyAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAilabsIotDeviceControlNotifyAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAilabsIotDeviceControlNotifyResponse.go create mode 100644 model/tmallgenie/AlibabaAilabsIotDeviceListGetAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAilabsIotDeviceListGetAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAilabsIotDeviceListGetResponse.go create mode 100644 model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetResponse.go create mode 100644 model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetResponse.go create mode 100644 model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateResponse.go create mode 100644 model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIRequest.go create mode 100644 model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateResponse.go create mode 100644 model/tmallgenie/AlibabaIotDeviceCorpusGetAPIRequest.go create mode 100644 model/tmallgenie/AlibabaIotDeviceCorpusGetAPIResponse.go delete mode 100644 model/tmallgenie/AlibabaIotDeviceCorpusGetResponse.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopEarthquakeSendAPIRequest.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopEarthquakeSendAPIResponse.go delete mode 100644 model/tmallgenie/TaobaoAilabAicloudTopEarthquakeSendResponse.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmCreateAPIResponse.go delete mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmCreateResponse.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmDeleteAPIResponse.go delete mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmDeleteResponse.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmListAPIRequest.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmListAPIResponse.go delete mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmListResponse.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingDeleteAPIResponse.go delete mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingDeleteResponse.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingListAPIRequest.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingListAPIResponse.go delete mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingListResponse.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoNoteDeleteAPIResponse.go delete mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoNoteDeleteResponse.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoNoteListAPIRequest.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoNoteListAPIResponse.go delete mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMemoNoteListResponse.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMessagePushAPIRequest.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMessagePushAPIResponse.go delete mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMessagePushResponse.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMessagePushUnicastAPIRequest.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMessagePushUnicastAPIResponse.go delete mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMessagePushUnicastResponse.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMessageSendaudioAPIRequest.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMessageSendaudioAPIResponse.go delete mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMessageSendaudioResponse.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMessageSendtextAPIRequest.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMessageSendtextAPIResponse.go delete mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMessageSendtextResponse.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMusicSearchAPIRequest.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMusicSearchAPIResponse.go delete mode 100644 model/tmallgenie/TaobaoAilabAicloudTopMusicSearchResponse.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopSkilsListAPIRequest.go create mode 100644 model/tmallgenie/TaobaoAilabAicloudTopSkilsListAPIResponse.go delete mode 100644 model/tmallgenie/TaobaoAilabAicloudTopSkilsListResponse.go create mode 100644 model/tmallgenie/TaobaoTmallgenieHotelplayerpauseAPIRequest.go create mode 100644 model/tmallgenie/TaobaoTmallgenieHotelplayerpauseAPIResponse.go delete mode 100644 model/tmallgenie/TaobaoTmallgenieHotelplayerpauseResponse.go create mode 100644 model/tmallgenie/TaobaoTmallgenieHotelwelcomeAPIRequest.go create mode 100644 model/tmallgenie/TaobaoTmallgenieHotelwelcomeAPIResponse.go delete mode 100644 model/tmallgenie/TaobaoTmallgenieHotelwelcomeResponse.go create mode 100644 model/tmallgenie/TmallTmjlappSapServiceorderCancelAPIRequest.go create mode 100644 model/tmallgenie/TmallTmjlappSapServiceorderCancelAPIResponse.go delete mode 100644 model/tmallgenie/TmallTmjlappSapServiceorderCancelResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpLocationGetAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpLocationGetAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpLocationGetResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanBomUploadAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanBomUploadAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanBomUploadResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelGetAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelGetAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelGetResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelQuoteUploadAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelQuoteUploadAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelQuoteUploadResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanConsensusDemandUploadAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanConsensusDemandUploadAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanConsensusDemandUploadResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanCtomConsensusDemandUploadResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentPoGetAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentPoGetAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentPoGetResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentRawpoGetAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentRawpoGetAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentRawpoGetResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackOemUploadAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackOemUploadAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackOemUploadResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackRawUploadAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackRawUploadAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackRawUploadResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastOemUploadAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastOemUploadAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastOemUploadResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastRawUploadAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastRawUploadAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastRawUploadResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanHistoryPoGetAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanHistoryPoGetAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanHistoryPoGetResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanHistorySaleQtyGetResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanInventorQtyGetAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanInventorQtyGetAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanInventorQtyGetResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanLocationQuoteUploadAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanLocationQuoteUploadAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanLocationQuoteUploadResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterielGetAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterielGetAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterielGetResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanMouthfourUploadAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanMouthfourUploadAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanMouthfourUploadResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandRawUploadAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandRawUploadAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandRawUploadResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandUploadAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandUploadAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandUploadResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanRawpoGapReturnAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanRawpoGapReturnAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanRawpoGapReturnResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleQtyGetAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleQtyGetAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleQtyGetResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmUploadResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastSalerUploadResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadResponse.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIRequest.go create mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIResponse.go delete mode 100644 model/tmallgeniescp/AlibabaTmallgenieScpPlanSummarySaleQtyGetResponse.go create mode 100644 model/tmallhk/TmallHkClearanceDistributionGetAPIRequest.go create mode 100644 model/tmallhk/TmallHkClearanceDistributionGetAPIResponse.go delete mode 100644 model/tmallhk/TmallHkClearanceDistributionGetResponse.go create mode 100644 model/tmallhk/TmallHkClearanceGetAPIRequest.go create mode 100644 model/tmallhk/TmallHkClearanceGetAPIResponse.go delete mode 100644 model/tmallhk/TmallHkClearanceGetResponse.go create mode 100644 model/tmallhk/TmallHkOrderClearanceQueryAPIRequest.go create mode 100644 model/tmallhk/TmallHkOrderClearanceQueryAPIResponse.go delete mode 100644 model/tmallhk/TmallHkOrderClearanceQueryResponse.go create mode 100644 model/tmallhk/TmallTraceplatformAwdcInfoUploadAPIRequest.go create mode 100644 model/tmallhk/TmallTraceplatformAwdcInfoUploadAPIResponse.go delete mode 100644 model/tmallhk/TmallTraceplatformAwdcInfoUploadResponse.go create mode 100644 model/tmallhk/TmallTraceplatformCcicTracecodeCheckAPIRequest.go create mode 100644 model/tmallhk/TmallTraceplatformCcicTracecodeCheckAPIResponse.go delete mode 100644 model/tmallhk/TmallTraceplatformCcicTracecodeCheckResponse.go create mode 100644 model/tmallhk/TmallTraceplatformCtsInfoUploadAPIRequest.go create mode 100644 model/tmallhk/TmallTraceplatformCtsInfoUploadAPIResponse.go delete mode 100644 model/tmallhk/TmallTraceplatformCtsInfoUploadResponse.go create mode 100644 model/tmallhk/TmallTraceplatformCtsOrderStopAPIRequest.go create mode 100644 model/tmallhk/TmallTraceplatformCtsOrderStopAPIResponse.go delete mode 100644 model/tmallhk/TmallTraceplatformCtsOrderStopResponse.go create mode 100644 model/tmallhk/TmallTraceplatformTicketOrderUploadAPIRequest.go create mode 100644 model/tmallhk/TmallTraceplatformTicketOrderUploadAPIResponse.go delete mode 100644 model/tmallhk/TmallTraceplatformTicketOrderUploadResponse.go create mode 100644 model/tmallhk/TmallTraceplatformTicketPictureUploadAPIRequest.go create mode 100644 model/tmallhk/TmallTraceplatformTicketPictureUploadAPIResponse.go delete mode 100644 model/tmallhk/TmallTraceplatformTicketPictureUploadResponse.go create mode 100644 model/tmallitem/TmallItemsExtendSearchAPIRequest.go create mode 100644 model/tmallitem/TmallItemsExtendSearchAPIResponse.go delete mode 100644 model/tmallitem/TmallItemsExtendSearchResponse.go create mode 100644 model/tmallnr/AlibabaLsyCrmActivityDataUpdateAPIRequest.go create mode 100644 model/tmallnr/AlibabaLsyCrmActivityDataUpdateAPIResponse.go delete mode 100644 model/tmallnr/AlibabaLsyCrmActivityDataUpdateResponse.go create mode 100644 model/tmallnr/AlibabaLsyCrmActivityDataUpdateResultDo.go create mode 100644 model/tmallnr/AlibabaLsyCrmActivityGetAPIRequest.go create mode 100644 model/tmallnr/AlibabaLsyCrmActivityGetAPIResponse.go delete mode 100644 model/tmallnr/AlibabaLsyCrmActivityGetResponse.go create mode 100644 model/tmallnr/AlibabaLsyCrmActivityGetResultDo.go create mode 100644 model/tmallnr/AlibabaLsyCrmActivityGetbaseinfoAPIRequest.go create mode 100644 model/tmallnr/AlibabaLsyCrmActivityGetbaseinfoAPIResponse.go delete mode 100644 model/tmallnr/AlibabaLsyCrmActivityGetbaseinfoResponse.go create mode 100644 model/tmallnr/AlibabaLsyCrmActivityGetbaseinfoResultDo.go create mode 100644 model/tmallnr/AlibabaLsyCrmActivityPageUpdateAPIRequest.go create mode 100644 model/tmallnr/AlibabaLsyCrmActivityPageUpdateAPIResponse.go delete mode 100644 model/tmallnr/AlibabaLsyCrmActivityPageUpdateResponse.go create mode 100644 model/tmallnr/AlibabaLsyCrmActivityPageUpdateResultDo.go create mode 100644 model/tmallnr/AlibabaLsyCrmActivityStoreGetstorelistAPIRequest.go create mode 100644 model/tmallnr/AlibabaLsyCrmActivityStoreGetstorelistAPIResponse.go delete mode 100644 model/tmallnr/AlibabaLsyCrmActivityStoreGetstorelistResponse.go create mode 100644 model/tmallnr/AlibabaLsyCrmActivityUpdateAPIRequest.go create mode 100644 model/tmallnr/AlibabaLsyCrmActivityUpdateAPIResponse.go delete mode 100644 model/tmallnr/AlibabaLsyCrmActivityUpdateResponse.go create mode 100644 model/tmallnr/AlibabaLsyCrmActivityUpdateResultDo.go create mode 100644 model/tmallnr/AlibabaLsyCrmCustomerAddAPIRequest.go create mode 100644 model/tmallnr/AlibabaLsyCrmCustomerAddAPIResponse.go delete mode 100644 model/tmallnr/AlibabaLsyCrmCustomerAddResponse.go create mode 100644 model/tmallnr/AlibabaLsyCrmCustomerAddResultDo.go create mode 100644 model/tmallnr/TmallNrFulfillCancelAPIRequest.go create mode 100644 model/tmallnr/TmallNrFulfillCancelAPIResponse.go create mode 100644 model/tmallnr/TmallNrFulfillCancelReasonQueryAPIRequest.go create mode 100644 model/tmallnr/TmallNrFulfillCancelReasonQueryAPIResponse.go delete mode 100644 model/tmallnr/TmallNrFulfillCancelReasonQueryResponse.go delete mode 100644 model/tmallnr/TmallNrFulfillCancelResponse.go create mode 100644 model/tmallnr/TmallNrFulfillLogisticsConsignAPIRequest.go create mode 100644 model/tmallnr/TmallNrFulfillLogisticsConsignAPIResponse.go delete mode 100644 model/tmallnr/TmallNrFulfillLogisticsConsignResponse.go create mode 100644 model/tmallnr/TmallNrFulfillLogisticsQueryAPIRequest.go create mode 100644 model/tmallnr/TmallNrFulfillLogisticsQueryAPIResponse.go delete mode 100644 model/tmallnr/TmallNrFulfillLogisticsQueryResponse.go create mode 100644 model/tmallnr/TmallNrFulfillLogisticsSyncAPIRequest.go create mode 100644 model/tmallnr/TmallNrFulfillLogisticsSyncAPIResponse.go delete mode 100644 model/tmallnr/TmallNrFulfillLogisticsSyncResponse.go create mode 100644 model/tmallnr/TmallNrFulfillOrderQueryAPIRequest.go create mode 100644 model/tmallnr/TmallNrFulfillOrderQueryAPIResponse.go delete mode 100644 model/tmallnr/TmallNrFulfillOrderQueryResponse.go create mode 100644 model/tmallnr/TmallNrFulfillSoldOrderlistQueryAPIRequest.go create mode 100644 model/tmallnr/TmallNrFulfillSoldOrderlistQueryAPIResponse.go delete mode 100644 model/tmallnr/TmallNrFulfillSoldOrderlistQueryResponse.go create mode 100644 model/tmallnr/TmallNrInventoryInitialAPIRequest.go create mode 100644 model/tmallnr/TmallNrInventoryInitialAPIResponse.go delete mode 100644 model/tmallnr/TmallNrInventoryInitialResponse.go create mode 100644 model/tmallnr/TmallNrInventoryUpdateAPIRequest.go create mode 100644 model/tmallnr/TmallNrInventoryUpdateAPIResponse.go delete mode 100644 model/tmallnr/TmallNrInventoryUpdateResponse.go create mode 100644 model/tmallnr/TmallNrItemTagOpsAPIRequest.go create mode 100644 model/tmallnr/TmallNrItemTagOpsAPIResponse.go delete mode 100644 model/tmallnr/TmallNrItemTagOpsResponse.go create mode 100644 model/tmallnr/TmallNrNoticeGoodsReadyAPIRequest.go create mode 100644 model/tmallnr/TmallNrNoticeGoodsReadyAPIResponse.go delete mode 100644 model/tmallnr/TmallNrNoticeGoodsReadyResponse.go create mode 100644 model/tmallnr/TmallNrOrderLogisInfoAPIRequest.go create mode 100644 model/tmallnr/TmallNrOrderLogisInfoAPIResponse.go delete mode 100644 model/tmallnr/TmallNrOrderLogisInfoResponse.go create mode 100644 model/tmallnr/TmallNrOrderQueryJstAPIRequest.go create mode 100644 model/tmallnr/TmallNrOrderQueryJstAPIResponse.go delete mode 100644 model/tmallnr/TmallNrOrderQueryJstResponse.go create mode 100644 model/tmallnr/TmallNrSellerStorerangeReadAPIRequest.go create mode 100644 model/tmallnr/TmallNrSellerStorerangeReadAPIResponse.go delete mode 100644 model/tmallnr/TmallNrSellerStorerangeReadResponse.go create mode 100644 model/tmallnr/TmallNrSellerStorerangeSyncAPIRequest.go create mode 100644 model/tmallnr/TmallNrSellerStorerangeSyncAPIResponse.go delete mode 100644 model/tmallnr/TmallNrSellerStorerangeSyncResponse.go create mode 100644 model/tmallnr/TmallNrSoldOrderlistQueryJstAPIRequest.go create mode 100644 model/tmallnr/TmallNrSoldOrderlistQueryJstAPIResponse.go delete mode 100644 model/tmallnr/TmallNrSoldOrderlistQueryJstResponse.go create mode 100644 model/tmallnr/TmallNrZqsPlanQueryAPIRequest.go create mode 100644 model/tmallnr/TmallNrZqsPlanQueryAPIResponse.go delete mode 100644 model/tmallnr/TmallNrZqsPlanQueryResponse.go create mode 100644 model/tmallnr/TmallNrtNewcouponSendAPIRequest.go create mode 100644 model/tmallnr/TmallNrtNewcouponSendAPIResponse.go delete mode 100644 model/tmallnr/TmallNrtNewcouponSendResponse.go create mode 100644 model/tmallsc/AlibabaDchainMiaoshifuCustomerComplaintsPutAPIRequest.go create mode 100644 model/tmallsc/AlibabaDchainMiaoshifuCustomerComplaintsPutAPIResponse.go delete mode 100644 model/tmallsc/AlibabaDchainMiaoshifuCustomerComplaintsPutResponse.go create mode 100644 model/tmallsc/AlibabaServiceBillingQueryAPIRequest.go create mode 100644 model/tmallsc/AlibabaServiceBillingQueryAPIResponse.go delete mode 100644 model/tmallsc/AlibabaServiceBillingQueryResponse.go create mode 100644 model/tmallsc/AlibabaServiceSettlementQueryAPIRequest.go create mode 100644 model/tmallsc/AlibabaServiceSettlementQueryAPIResponse.go delete mode 100644 model/tmallsc/AlibabaServiceSettlementQueryResponse.go create mode 100644 model/tmallsc/TmallServicecenterAnomalyrecourseRemarkUpdateAPIRequest.go create mode 100644 model/tmallsc/TmallServicecenterAnomalyrecourseRemarkUpdateAPIResponse.go delete mode 100644 model/tmallsc/TmallServicecenterAnomalyrecourseRemarkUpdateResponse.go create mode 100644 model/tmallsc/TmallServicecenterAnomalyrecourseSearchAPIRequest.go create mode 100644 model/tmallsc/TmallServicecenterAnomalyrecourseSearchAPIResponse.go delete mode 100644 model/tmallsc/TmallServicecenterAnomalyrecourseSearchResponse.go create mode 100644 model/tmallsc/TmallServicecenterReservecondCreateAPIRequest.go create mode 100644 model/tmallsc/TmallServicecenterReservecondCreateAPIResponse.go delete mode 100644 model/tmallsc/TmallServicecenterReservecondCreateResponse.go create mode 100644 model/tmallsc/TmallServicecenterReservecondDeleteAPIRequest.go create mode 100644 model/tmallsc/TmallServicecenterReservecondDeleteAPIResponse.go delete mode 100644 model/tmallsc/TmallServicecenterReservecondDeleteResponse.go create mode 100644 model/tmallsc/TmallServicecenterReservecondUpdateAPIRequest.go create mode 100644 model/tmallsc/TmallServicecenterReservecondUpdateAPIResponse.go delete mode 100644 model/tmallsc/TmallServicecenterReservecondUpdateResponse.go create mode 100644 model/tmallsc/TmallServicecenterServicestoreCreateservicestorecapacityAPIRequest.go create mode 100644 model/tmallsc/TmallServicecenterServicestoreCreateservicestorecapacityAPIResponse.go delete mode 100644 model/tmallsc/TmallServicecenterServicestoreCreateservicestorecapacityResponse.go create mode 100644 model/tmallsc/TmallServicecenterServicestoreCreateservicestorecoverserviceAPIRequest.go create mode 100644 model/tmallsc/TmallServicecenterServicestoreCreateservicestorecoverserviceAPIResponse.go delete mode 100644 model/tmallsc/TmallServicecenterServicestoreCreateservicestorecoverserviceResponse.go create mode 100644 model/tmallsc/TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest.go create mode 100644 model/tmallsc/TmallServicecenterServicestoreDeleteservicestorecapacityAPIResponse.go delete mode 100644 model/tmallsc/TmallServicecenterServicestoreDeleteservicestorecapacityResponse.go create mode 100644 model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecapacityAPIRequest.go create mode 100644 model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecapacityAPIResponse.go delete mode 100644 model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecapacityResponse.go create mode 100644 model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIRequest.go create mode 100644 model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIResponse.go delete mode 100644 model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecoverserviceResponse.go create mode 100644 model/tmallsc/TmallServicecenterWorkcardDeliveryAPIRequest.go create mode 100644 model/tmallsc/TmallServicecenterWorkcardDeliveryAPIResponse.go delete mode 100644 model/tmallsc/TmallServicecenterWorkcardDeliveryResponse.go create mode 100644 model/tmallsc/TmallServicecenterWorkcardRefuseAPIRequest.go create mode 100644 model/tmallsc/TmallServicecenterWorkcardRefuseAPIResponse.go delete mode 100644 model/tmallsc/TmallServicecenterWorkcardRefuseResponse.go create mode 100644 model/tmallsc/TmallWorkcardIdentifyAPIRequest.go create mode 100644 model/tmallsc/TmallWorkcardIdentifyAPIResponse.go delete mode 100644 model/tmallsc/TmallWorkcardIdentifyResponse.go create mode 100644 model/tmallservice/AlibabaMallitemcenterEntitledserviceSupplierQueryAPIRequest.go create mode 100644 model/tmallservice/AlibabaMallitemcenterEntitledserviceSupplierQueryAPIResponse.go delete mode 100644 model/tmallservice/AlibabaMallitemcenterEntitledserviceSupplierQueryResponse.go create mode 100644 model/tmallservice/AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIRequest.go create mode 100644 model/tmallservice/AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIResponse.go delete mode 100644 model/tmallservice/AlibabaServicecenterFulfiltaskBuyeraddressChangeResponse.go create mode 100644 model/tmallservice/AlibabaServicecenterFulfiltaskCreateAPIRequest.go create mode 100644 model/tmallservice/AlibabaServicecenterFulfiltaskCreateAPIResponse.go delete mode 100644 model/tmallservice/AlibabaServicecenterFulfiltaskCreateResponse.go create mode 100644 model/tmallservice/AlibabaServicecenterFulfiltaskQueryAPIRequest.go create mode 100644 model/tmallservice/AlibabaServicecenterFulfiltaskQueryAPIResponse.go delete mode 100644 model/tmallservice/AlibabaServicecenterFulfiltaskQueryResponse.go create mode 100644 model/tmallservice/AlibabaServicecenterIdentifytaskCreateAPIRequest.go create mode 100644 model/tmallservice/AlibabaServicecenterIdentifytaskCreateAPIResponse.go delete mode 100644 model/tmallservice/AlibabaServicecenterIdentifytaskCreateResponse.go create mode 100644 model/tmallservice/AlibabaServicecenterSpserviceorderQueryAPIRequest.go create mode 100644 model/tmallservice/AlibabaServicecenterSpserviceorderQueryAPIResponse.go delete mode 100644 model/tmallservice/AlibabaServicecenterSpserviceorderQueryResponse.go create mode 100644 model/tmallservice/AlibabaServicecenterSpserviceorderUpdateAPIRequest.go create mode 100644 model/tmallservice/AlibabaServicecenterSpserviceorderUpdateAPIResponse.go delete mode 100644 model/tmallservice/AlibabaServicecenterSpserviceorderUpdateResponse.go create mode 100644 model/tmallservice/AlibabaServicecenterWorkcardCancelAPIRequest.go create mode 100644 model/tmallservice/AlibabaServicecenterWorkcardCancelAPIResponse.go delete mode 100644 model/tmallservice/AlibabaServicecenterWorkcardCancelResponse.go create mode 100644 model/tmallservice/AlibabaServicecenterWorkcardCreateAPIRequest.go create mode 100644 model/tmallservice/AlibabaServicecenterWorkcardCreateAPIResponse.go delete mode 100644 model/tmallservice/AlibabaServicecenterWorkcardCreateResponse.go create mode 100644 model/tmallservice/AlibabaSscServicecenterServicestoreQueryAPIRequest.go create mode 100644 model/tmallservice/AlibabaSscServicecenterServicestoreQueryAPIResponse.go delete mode 100644 model/tmallservice/AlibabaSscServicecenterServicestoreQueryResponse.go create mode 100644 model/tmallservice/AlibabaSscSupplyplatformServiceInventoryEditAPIRequest.go create mode 100644 model/tmallservice/AlibabaSscSupplyplatformServiceInventoryEditAPIResponse.go delete mode 100644 model/tmallservice/AlibabaSscSupplyplatformServiceInventoryEditResponse.go create mode 100644 model/tmallservice/AlibabaSscSupplyplatformServiceInventoryQueryAPIRequest.go create mode 100644 model/tmallservice/AlibabaSscSupplyplatformServiceInventoryQueryAPIResponse.go delete mode 100644 model/tmallservice/AlibabaSscSupplyplatformServiceInventoryQueryResponse.go create mode 100644 model/tmallservice/AlibabaSscSupplyplatformServiceabilityDeleteAPIRequest.go create mode 100644 model/tmallservice/AlibabaSscSupplyplatformServiceabilityDeleteAPIResponse.go delete mode 100644 model/tmallservice/AlibabaSscSupplyplatformServiceabilityDeleteResponse.go create mode 100644 model/tmallservice/AlibabaSscSupplyplatformServiceabilitySaveAPIRequest.go create mode 100644 model/tmallservice/AlibabaSscSupplyplatformServiceabilitySaveAPIResponse.go delete mode 100644 model/tmallservice/AlibabaSscSupplyplatformServiceabilitySaveResponse.go create mode 100644 model/tmallservice/AlibabaSscSupplyplatformServicecapacityDeleteAPIRequest.go create mode 100644 model/tmallservice/AlibabaSscSupplyplatformServicecapacityDeleteAPIResponse.go delete mode 100644 model/tmallservice/AlibabaSscSupplyplatformServicecapacityDeleteResponse.go create mode 100644 model/tmallservice/AlibabaSscSupplyplatformServicecapacitySaveAPIRequest.go create mode 100644 model/tmallservice/AlibabaSscSupplyplatformServicecapacitySaveAPIResponse.go delete mode 100644 model/tmallservice/AlibabaSscSupplyplatformServicecapacitySaveResponse.go create mode 100644 model/tmallservice/AlibabaSscSupplyplatformServicestoreOfflineAPIRequest.go create mode 100644 model/tmallservice/AlibabaSscSupplyplatformServicestoreOfflineAPIResponse.go delete mode 100644 model/tmallservice/AlibabaSscSupplyplatformServicestoreOfflineResponse.go create mode 100644 model/tmallservice/AlibabaSscSupplyplatformServicestoreSaveAPIRequest.go create mode 100644 model/tmallservice/AlibabaSscSupplyplatformServicestoreSaveAPIResponse.go delete mode 100644 model/tmallservice/AlibabaSscSupplyplatformServicestoreSaveResponse.go create mode 100644 model/tmallservice/AlibabaSscSupplyplatformServiceworkerSaveAPIRequest.go create mode 100644 model/tmallservice/AlibabaSscSupplyplatformServiceworkerSaveAPIResponse.go delete mode 100644 model/tmallservice/AlibabaSscSupplyplatformServiceworkerSaveResponse.go create mode 100644 model/tmallservice/TmallFuwuServiceitemListAPIRequest.go create mode 100644 model/tmallservice/TmallFuwuServiceitemListAPIResponse.go delete mode 100644 model/tmallservice/TmallFuwuServiceitemListResponse.go create mode 100644 model/tmallservice/TmallMallitemcenterServiceproductQueryAPIRequest.go create mode 100644 model/tmallservice/TmallMallitemcenterServiceproductQueryAPIResponse.go delete mode 100644 model/tmallservice/TmallMallitemcenterServiceproductQueryResponse.go create mode 100644 model/tmallservice/TmallMallitemcenterSubscribeQueryAPIRequest.go create mode 100644 model/tmallservice/TmallMallitemcenterSubscribeQueryAPIResponse.go delete mode 100644 model/tmallservice/TmallMallitemcenterSubscribeQueryResponse.go create mode 100644 model/tmallservice/TmallMallitemcenterSupplierAbilityUpdateAPIRequest.go create mode 100644 model/tmallservice/TmallMallitemcenterSupplierAbilityUpdateAPIResponse.go delete mode 100644 model/tmallservice/TmallMallitemcenterSupplierAbilityUpdateResponse.go create mode 100644 model/tmallservice/TmallMallitemcenterSupplierPriceUploadAPIRequest.go create mode 100644 model/tmallservice/TmallMallitemcenterSupplierPriceUploadAPIResponse.go delete mode 100644 model/tmallservice/TmallMallitemcenterSupplierPriceUploadResponse.go create mode 100644 model/tmallservice/TmallMsfIdentifyStatusQueryAPIRequest.go create mode 100644 model/tmallservice/TmallMsfIdentifyStatusQueryAPIResponse.go delete mode 100644 model/tmallservice/TmallMsfIdentifyStatusQueryResponse.go create mode 100644 model/tmallservice/TmallMsfReservationAPIRequest.go create mode 100644 model/tmallservice/TmallMsfReservationAPIResponse.go delete mode 100644 model/tmallservice/TmallMsfReservationResponse.go create mode 100644 model/tmallservice/TmallServiceCodeConsumeAPIRequest.go create mode 100644 model/tmallservice/TmallServiceCodeConsumeAPIResponse.go delete mode 100644 model/tmallservice/TmallServiceCodeConsumeResponse.go create mode 100644 model/tmallservice/TmallServiceSettleadjustmentCancelAPIRequest.go create mode 100644 model/tmallservice/TmallServiceSettleadjustmentCancelAPIResponse.go delete mode 100644 model/tmallservice/TmallServiceSettleadjustmentCancelResponse.go create mode 100644 model/tmallservice/TmallServiceSettleadjustmentGetAPIRequest.go create mode 100644 model/tmallservice/TmallServiceSettleadjustmentGetAPIResponse.go delete mode 100644 model/tmallservice/TmallServiceSettleadjustmentGetResponse.go create mode 100644 model/tmallservice/TmallServiceSettleadjustmentRequestAPIRequest.go create mode 100644 model/tmallservice/TmallServiceSettleadjustmentRequestAPIResponse.go delete mode 100644 model/tmallservice/TmallServiceSettleadjustmentRequestResponse.go create mode 100644 model/tmallservice/TmallServicecenterAnomalyrecourseQuerybyidAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterAnomalyrecourseQuerybyidAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterAnomalyrecourseQuerybyidResponse.go create mode 100644 model/tmallservice/TmallServicecenterContractsSearchAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterContractsSearchAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterContractsSearchResponse.go create mode 100644 model/tmallservice/TmallServicecenterIdentifytaskCreateAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterIdentifytaskCreateAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterIdentifytaskCreateResponse.go create mode 100644 model/tmallservice/TmallServicecenterMsfTasksUpdateAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterMsfTasksUpdateAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterMsfTasksUpdateResponse.go create mode 100644 model/tmallservice/TmallServicecenterPictureUploadAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterPictureUploadAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterPictureUploadResponse.go create mode 100644 model/tmallservice/TmallServicecenterServiceTypeQueryallAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterServiceTypeQueryallAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterServiceTypeQueryallResponse.go create mode 100644 model/tmallservice/TmallServicecenterServicemonitormessageSearchAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterServicemonitormessageSearchAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterServicemonitormessageSearchResponse.go create mode 100644 model/tmallservice/TmallServicecenterServicemonitormessageUpdateAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterServicemonitormessageUpdateAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterServicemonitormessageUpdateResponse.go create mode 100644 model/tmallservice/TmallServicecenterServicestoreCreateAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterServicestoreCreateAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterServicestoreCreateResponse.go create mode 100644 model/tmallservice/TmallServicecenterServicestoreCreateservicestoreAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterServicestoreCreateservicestoreAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterServicestoreCreateservicestoreResponse.go create mode 100644 model/tmallservice/TmallServicecenterServicestoreDeleteservicestoreAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterServicestoreDeleteservicestoreAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterServicestoreDeleteservicestoreResponse.go create mode 100644 model/tmallservice/TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterServicestoreDeleteservicestorecoverserviceResponse.go create mode 100644 model/tmallservice/TmallServicecenterServicestoreUpdateAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterServicestoreUpdateAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterServicestoreUpdateResponse.go create mode 100644 model/tmallservice/TmallServicecenterServicestoreUpdateservicestoreAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterServicestoreUpdateservicestoreAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterServicestoreUpdateservicestoreResponse.go create mode 100644 model/tmallservice/TmallServicecenterServicestoreUpdatestatusAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterServicestoreUpdatestatusAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterServicestoreUpdatestatusResponse.go create mode 100644 model/tmallservice/TmallServicecenterSettlementStoretransferAuditAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterSettlementStoretransferAuditAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterSettlementStoretransferAuditResponse.go create mode 100644 model/tmallservice/TmallServicecenterSpserviceorderQueryAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterSpserviceorderQueryAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterSpserviceorderQueryResponse.go create mode 100644 model/tmallservice/TmallServicecenterTaskFeedbacknoneedserviceAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterTaskFeedbacknoneedserviceAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterTaskFeedbacknoneedserviceResponse.go create mode 100644 model/tmallservice/TmallServicecenterTaskGetAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterTaskGetAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterTaskGetResponse.go create mode 100644 model/tmallservice/TmallServicecenterTaskQueryrefundAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterTaskQueryrefundAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterTaskQueryrefundResponse.go create mode 100644 model/tmallservice/TmallServicecenterTasksSearchAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterTasksSearchAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterTasksSearchResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardAssignworkerAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardAssignworkerAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardAssignworkerResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardCallRecordAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardCallRecordAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardCallRecordResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardCollectAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardCollectAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardCollectResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardCompleteAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardCompleteAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardCompleteResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardConfirmAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardConfirmAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardConfirmResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardEvaluateAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardEvaluateAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardEvaluateResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardExpressorderConsignAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardExpressorderConsignAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardExpressorderConsignResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardExpressorderCreateAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardExpressorderCreateAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardExpressorderCreateResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardLogisticsorderQueryAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardLogisticsorderQueryAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardLogisticsorderQueryResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardLogisticsorderUpdateAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardLogisticsorderUpdateResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardPushAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardPushAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardPushResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardQueryAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardQueryAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardQueryResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardQuerybysellerAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardQuerybysellerAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardQuerybysellerResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardReassignAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardReassignAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardReassignResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardRepairprogressUpdateAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardRepairprogressUpdateAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardRepairprogressUpdateResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardReserveAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardReserveAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardReserveResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardReservefailAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardReservefailAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardReservefailResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardSigninAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardSigninAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardSigninResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardStatusUpdateAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardStatusUpdateAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardStatusUpdateResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardSuspendAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardSuspendAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardSuspendResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardUpdatelogisticsAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardUpdatelogisticsAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardUpdatelogisticsResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardVerifycodeResendAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardVerifycodeResendAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardVerifycodeResendResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardVirtualphoneBindAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkcardVirtualphoneBindAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkcardVirtualphoneBindResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkerCreateAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkerCreateAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkerCreateResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkerDeleteAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkerDeleteAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkerDeleteResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkerQueryAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkerQueryAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkerQueryResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkerQuerycapacitytaskAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkerQuerycapacitytaskAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkerQuerycapacitytaskResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkerQuerypageAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkerQuerypageAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkerQuerypageResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkerTaglistGetAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkerTaglistGetAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkerTaglistGetResponse.go create mode 100644 model/tmallservice/TmallServicecenterWorkerUpdateAPIRequest.go create mode 100644 model/tmallservice/TmallServicecenterWorkerUpdateAPIResponse.go delete mode 100644 model/tmallservice/TmallServicecenterWorkerUpdateResponse.go create mode 100644 model/tmalltrend/TmallBrandItemCouponProtectAPIRequest.go create mode 100644 model/tmalltrend/TmallBrandItemCouponProtectAPIResponse.go delete mode 100644 model/tmalltrend/TmallBrandItemCouponProtectResponse.go create mode 100644 model/tmalltrend/TmallBrandItemUploadAPIRequest.go create mode 100644 model/tmalltrend/TmallBrandItemUploadAPIResponse.go delete mode 100644 model/tmalltrend/TmallBrandItemUploadResponse.go create mode 100644 model/tmalltrend/TmallTrendStyleBasicinfoUploadAPIRequest.go create mode 100644 model/tmalltrend/TmallTrendStyleBasicinfoUploadAPIResponse.go delete mode 100644 model/tmalltrend/TmallTrendStyleBasicinfoUploadResponse.go create mode 100644 model/tmalltrend/TmallTrendStyleBindinfoUploadAPIRequest.go create mode 100644 model/tmalltrend/TmallTrendStyleBindinfoUploadAPIResponse.go delete mode 100644 model/tmalltrend/TmallTrendStyleBindinfoUploadResponse.go create mode 100644 model/tmalltrend/TmallTrendStyleProduceinfoUploadAPIRequest.go create mode 100644 model/tmalltrend/TmallTrendStyleProduceinfoUploadAPIResponse.go delete mode 100644 model/tmalltrend/TmallTrendStyleProduceinfoUploadResponse.go create mode 100644 model/tmc/AlibabaLsyMiniappMsgPushAPIRequest.go create mode 100644 model/tmc/AlibabaLsyMiniappMsgPushAPIResponse.go delete mode 100644 model/tmc/AlibabaLsyMiniappMsgPushResponse.go create mode 100644 model/tmc/AlipayXiaodaiUserPermitAPIRequest.go create mode 100644 model/tmc/AlipayXiaodaiUserPermitAPIResponse.go delete mode 100644 model/tmc/AlipayXiaodaiUserPermitResponse.go create mode 100644 model/tmc/TaobaoIstoreGiftingMessageGetAPIRequest.go create mode 100644 model/tmc/TaobaoIstoreGiftingMessageGetAPIResponse.go delete mode 100644 model/tmc/TaobaoIstoreGiftingMessageGetResponse.go create mode 100644 model/tmc/TaobaoIstoreGiftingMessageGetResultDto.go create mode 100644 model/tmc/TaobaoTmcGroupAddAPIRequest.go create mode 100644 model/tmc/TaobaoTmcGroupAddAPIResponse.go delete mode 100644 model/tmc/TaobaoTmcGroupAddResponse.go create mode 100644 model/tmc/TaobaoTmcGroupDeleteAPIRequest.go create mode 100644 model/tmc/TaobaoTmcGroupDeleteAPIResponse.go delete mode 100644 model/tmc/TaobaoTmcGroupDeleteResponse.go create mode 100644 model/tmc/TaobaoTmcGroupsGetAPIRequest.go create mode 100644 model/tmc/TaobaoTmcGroupsGetAPIResponse.go delete mode 100644 model/tmc/TaobaoTmcGroupsGetResponse.go create mode 100644 model/tmc/TaobaoTmcMessageProduceAPIRequest.go create mode 100644 model/tmc/TaobaoTmcMessageProduceAPIResponse.go delete mode 100644 model/tmc/TaobaoTmcMessageProduceResponse.go create mode 100644 model/tmc/TaobaoTmcMessagesConfirmAPIRequest.go create mode 100644 model/tmc/TaobaoTmcMessagesConfirmAPIResponse.go delete mode 100644 model/tmc/TaobaoTmcMessagesConfirmResponse.go create mode 100644 model/tmc/TaobaoTmcMessagesConsumeAPIRequest.go create mode 100644 model/tmc/TaobaoTmcMessagesConsumeAPIResponse.go delete mode 100644 model/tmc/TaobaoTmcMessagesConsumeResponse.go create mode 100644 model/tmc/TaobaoTmcMessagesProduceAPIRequest.go create mode 100644 model/tmc/TaobaoTmcMessagesProduceAPIResponse.go delete mode 100644 model/tmc/TaobaoTmcMessagesProduceResponse.go create mode 100644 model/tmc/TaobaoTmcMsgSendrecordAPIRequest.go create mode 100644 model/tmc/TaobaoTmcMsgSendrecordAPIResponse.go delete mode 100644 model/tmc/TaobaoTmcMsgSendrecordResponse.go create mode 100644 model/tmc/TaobaoTmcQueueGetAPIRequest.go create mode 100644 model/tmc/TaobaoTmcQueueGetAPIResponse.go delete mode 100644 model/tmc/TaobaoTmcQueueGetResponse.go create mode 100644 model/tmc/TaobaoTmcTopicGroupAddAPIRequest.go create mode 100644 model/tmc/TaobaoTmcTopicGroupAddAPIResponse.go delete mode 100644 model/tmc/TaobaoTmcTopicGroupAddResponse.go create mode 100644 model/tmc/TaobaoTmcTopicGroupDeleteAPIRequest.go create mode 100644 model/tmc/TaobaoTmcTopicGroupDeleteAPIResponse.go delete mode 100644 model/tmc/TaobaoTmcTopicGroupDeleteResponse.go create mode 100644 model/tmc/TaobaoTmcUserCancelAPIRequest.go create mode 100644 model/tmc/TaobaoTmcUserCancelAPIResponse.go delete mode 100644 model/tmc/TaobaoTmcUserCancelResponse.go create mode 100644 model/tmc/TaobaoTmcUserGetAPIRequest.go create mode 100644 model/tmc/TaobaoTmcUserGetAPIResponse.go delete mode 100644 model/tmc/TaobaoTmcUserGetResponse.go create mode 100644 model/tmc/TaobaoTmcUserPermitAPIRequest.go create mode 100644 model/tmc/TaobaoTmcUserPermitAPIResponse.go delete mode 100644 model/tmc/TaobaoTmcUserPermitResponse.go create mode 100644 model/tmc/TaobaoTmcUserTopicsGetAPIRequest.go create mode 100644 model/tmc/TaobaoTmcUserTopicsGetAPIResponse.go delete mode 100644 model/tmc/TaobaoTmcUserTopicsGetResponse.go create mode 100644 model/tmic/TmallTmicQuestionnaireAnswerPushAPIRequest.go create mode 100644 model/tmic/TmallTmicQuestionnaireAnswerPushAPIResponse.go delete mode 100644 model/tmic/TmallTmicQuestionnaireAnswerPushResponse.go create mode 100644 model/tmic/TmallTmicQuestionnaireAnswerSubmitAPIRequest.go create mode 100644 model/tmic/TmallTmicQuestionnaireAnswerSubmitAPIResponse.go delete mode 100644 model/tmic/TmallTmicQuestionnaireAnswerSubmitResponse.go create mode 100644 model/tmic/TmallTmicQuestionnaireOptionGetAPIRequest.go create mode 100644 model/tmic/TmallTmicQuestionnaireOptionGetAPIResponse.go delete mode 100644 model/tmic/TmallTmicQuestionnaireOptionGetResponse.go create mode 100644 model/tmic/TmallTmicQuestionnaireSurveyGetAPIRequest.go create mode 100644 model/tmic/TmallTmicQuestionnaireSurveyGetAPIResponse.go delete mode 100644 model/tmic/TmallTmicQuestionnaireSurveyGetResponse.go create mode 100644 model/topoaid/TaobaoTopOaidDecryptAPIRequest.go create mode 100644 model/topoaid/TaobaoTopOaidDecryptAPIResponse.go delete mode 100644 model/topoaid/TaobaoTopOaidDecryptResponse.go create mode 100644 model/topoaid/TaobaoTopOaidMergeAPIRequest.go create mode 100644 model/topoaid/TaobaoTopOaidMergeAPIResponse.go delete mode 100644 model/topoaid/TaobaoTopOaidMergeResponse.go create mode 100644 model/trade/AlibabaLstVasTradeflowSaveAPIRequest.go create mode 100644 model/trade/AlibabaLstVasTradeflowSaveAPIResponse.go delete mode 100644 model/trade/AlibabaLstVasTradeflowSaveResponse.go create mode 100644 model/trade/AlibabaOmniSaasOrderCreateAPIRequest.go create mode 100644 model/trade/AlibabaOmniSaasOrderCreateAPIResponse.go delete mode 100644 model/trade/AlibabaOmniSaasOrderCreateResponse.go create mode 100644 model/trade/AlibabaTradeAlianceCreateAPIRequest.go create mode 100644 model/trade/AlibabaTradeAlianceCreateAPIResponse.go delete mode 100644 model/trade/AlibabaTradeAlianceCreateResponse.go create mode 100644 model/trade/AlibabaWdkPosTradeCloseAPIRequest.go create mode 100644 model/trade/AlibabaWdkPosTradeCloseAPIResponse.go delete mode 100644 model/trade/AlibabaWdkPosTradeCloseResponse.go create mode 100644 model/trade/AlibabaWdkPosTradeCreateAPIRequest.go create mode 100644 model/trade/AlibabaWdkPosTradeCreateAPIResponse.go delete mode 100644 model/trade/AlibabaWdkPosTradeCreateResponse.go create mode 100644 model/trade/AlibabaWdkPosTradePayAPIRequest.go create mode 100644 model/trade/AlibabaWdkPosTradePayAPIResponse.go delete mode 100644 model/trade/AlibabaWdkPosTradePayResponse.go create mode 100644 model/trade/AlibabaWdkPosTradeQueryAPIRequest.go create mode 100644 model/trade/AlibabaWdkPosTradeQueryAPIResponse.go delete mode 100644 model/trade/AlibabaWdkPosTradeQueryResponse.go create mode 100644 model/trade/AlibabaWdkPosTradeReverseAPIRequest.go create mode 100644 model/trade/AlibabaWdkPosTradeReverseAPIResponse.go delete mode 100644 model/trade/AlibabaWdkPosTradeReverseResponse.go create mode 100644 model/trade/AlibabaWdkTradeDiscountBillGetAPIRequest.go create mode 100644 model/trade/AlibabaWdkTradeDiscountBillGetAPIResponse.go delete mode 100644 model/trade/AlibabaWdkTradeDiscountBillGetResponse.go create mode 100644 model/trade/AlibabaWdkTradeOrderCancelAPIRequest.go create mode 100644 model/trade/AlibabaWdkTradeOrderCancelAPIResponse.go delete mode 100644 model/trade/AlibabaWdkTradeOrderCancelResponse.go create mode 100644 model/trade/AlibabaWdkTradeOrderCreateAPIRequest.go create mode 100644 model/trade/AlibabaWdkTradeOrderCreateAPIResponse.go delete mode 100644 model/trade/AlibabaWdkTradeOrderCreateResponse.go create mode 100644 model/trade/AlibabaWdkTradeOrderQueryAPIRequest.go create mode 100644 model/trade/AlibabaWdkTradeOrderQueryAPIResponse.go delete mode 100644 model/trade/AlibabaWdkTradeOrderQueryResponse.go create mode 100644 model/trade/AlibabaWdkTradeRefundCreateAPIRequest.go create mode 100644 model/trade/AlibabaWdkTradeRefundCreateAPIResponse.go delete mode 100644 model/trade/AlibabaWdkTradeRefundCreateResponse.go create mode 100644 model/trade/AlibabaWdkTradeRefundInformAPIRequest.go create mode 100644 model/trade/AlibabaWdkTradeRefundInformAPIResponse.go delete mode 100644 model/trade/AlibabaWdkTradeRefundInformResponse.go create mode 100644 model/trade/AlibabaWdkTradeRefundQueryAPIRequest.go create mode 100644 model/trade/AlibabaWdkTradeRefundQueryAPIResponse.go delete mode 100644 model/trade/AlibabaWdkTradeRefundQueryResponse.go create mode 100644 model/trade/AlibabaWdkTxdCrmStatementBackflowAPIRequest.go create mode 100644 model/trade/AlibabaWdkTxdCrmStatementBackflowAPIResponse.go delete mode 100644 model/trade/AlibabaWdkTxdCrmStatementBackflowResponse.go create mode 100644 model/trade/AliexpressPaymentExchangeGetAPIRequest.go create mode 100644 model/trade/AliexpressPaymentExchangeGetAPIResponse.go delete mode 100644 model/trade/AliexpressPaymentExchangeGetResponse.go create mode 100644 model/trade/AlitripRailTradeRefundAPIRequest.go create mode 100644 model/trade/AlitripRailTradeRefundAPIResponse.go delete mode 100644 model/trade/AlitripRailTradeRefundResponse.go create mode 100644 model/trade/CainiaoCntecSupplierOrderServiceAPIRequest.go create mode 100644 model/trade/CainiaoCntecSupplierOrderServiceAPIResponse.go delete mode 100644 model/trade/CainiaoCntecSupplierOrderServiceResponse.go create mode 100644 model/trade/CainiaoRefundRefundactionsDisplayAPIRequest.go create mode 100644 model/trade/CainiaoRefundRefundactionsDisplayAPIResponse.go delete mode 100644 model/trade/CainiaoRefundRefundactionsDisplayResponse.go create mode 100644 model/trade/CainiaoRefundRefundactionsGetAPIRequest.go create mode 100644 model/trade/CainiaoRefundRefundactionsGetAPIResponse.go delete mode 100644 model/trade/CainiaoRefundRefundactionsGetResponse.go create mode 100644 model/trade/CainiaoRefundRefundactionsJudgementAPIRequest.go create mode 100644 model/trade/CainiaoRefundRefundactionsJudgementAPIResponse.go delete mode 100644 model/trade/CainiaoRefundRefundactionsJudgementResponse.go create mode 100644 model/trade/TaobaoKoubeiTribeOpenOrderPageAPIRequest.go create mode 100644 model/trade/TaobaoKoubeiTribeOpenOrderPageAPIResponse.go delete mode 100644 model/trade/TaobaoKoubeiTribeOpenOrderPageResponse.go create mode 100644 model/trade/TaobaoLifeReservationItemOrderChangeAPIRequest.go create mode 100644 model/trade/TaobaoLifeReservationItemOrderChangeAPIResponse.go delete mode 100644 model/trade/TaobaoLifeReservationItemOrderChangeResponse.go create mode 100644 model/trade/TaobaoLifeReservationItemOrderConfirmAPIRequest.go create mode 100644 model/trade/TaobaoLifeReservationItemOrderConfirmAPIResponse.go delete mode 100644 model/trade/TaobaoLifeReservationItemOrderConfirmResponse.go create mode 100644 model/trade/TaobaoLifeReservationTradeConsumeNoticeAPIRequest.go create mode 100644 model/trade/TaobaoLifeReservationTradeConsumeNoticeAPIResponse.go delete mode 100644 model/trade/TaobaoLifeReservationTradeConsumeNoticeResponse.go create mode 100644 model/trade/TaobaoLifeReservationTradeConsumeNoticeResult.go create mode 100644 model/trade/TaobaoOpenTradeGetAPIRequest.go create mode 100644 model/trade/TaobaoOpenTradeGetAPIResponse.go delete mode 100644 model/trade/TaobaoOpenTradeGetResponse.go create mode 100644 model/trade/TaobaoOpenTradesSoldGetAPIRequest.go create mode 100644 model/trade/TaobaoOpenTradesSoldGetAPIResponse.go delete mode 100644 model/trade/TaobaoOpenTradesSoldGetResponse.go create mode 100644 model/trade/TaobaoOpentradeCustomizationRefundEnableAPIRequest.go create mode 100644 model/trade/TaobaoOpentradeCustomizationRefundEnableAPIResponse.go delete mode 100644 model/trade/TaobaoOpentradeCustomizationRefundEnableResponse.go create mode 100644 model/trade/TaobaoRdcAligeniusOrdermsgUpdateAPIRequest.go create mode 100644 model/trade/TaobaoRdcAligeniusOrdermsgUpdateAPIResponse.go delete mode 100644 model/trade/TaobaoRdcAligeniusOrdermsgUpdateResponse.go create mode 100644 model/trade/TaobaoRefundsReceiveGetAPIRequest.go create mode 100644 model/trade/TaobaoRefundsReceiveGetAPIResponse.go delete mode 100644 model/trade/TaobaoRefundsReceiveGetResponse.go create mode 100644 model/trade/TaobaoTradeAmountGetAPIRequest.go create mode 100644 model/trade/TaobaoTradeAmountGetAPIResponse.go delete mode 100644 model/trade/TaobaoTradeAmountGetResponse.go create mode 100644 model/trade/TaobaoTradeCloseAPIRequest.go create mode 100644 model/trade/TaobaoTradeCloseAPIResponse.go delete mode 100644 model/trade/TaobaoTradeCloseResponse.go create mode 100644 model/trade/TaobaoTradeConfirmfeeGetAPIRequest.go create mode 100644 model/trade/TaobaoTradeConfirmfeeGetAPIResponse.go delete mode 100644 model/trade/TaobaoTradeConfirmfeeGetResponse.go create mode 100644 model/trade/TaobaoTradeFullinfoGetAPIRequest.go create mode 100644 model/trade/TaobaoTradeFullinfoGetAPIResponse.go delete mode 100644 model/trade/TaobaoTradeFullinfoGetResponse.go create mode 100644 model/trade/TaobaoTradeGetAPIRequest.go create mode 100644 model/trade/TaobaoTradeGetAPIResponse.go delete mode 100644 model/trade/TaobaoTradeGetResponse.go create mode 100644 model/trade/TaobaoTradeInvoiceAmountGetAPIRequest.go create mode 100644 model/trade/TaobaoTradeInvoiceAmountGetAPIResponse.go delete mode 100644 model/trade/TaobaoTradeInvoiceAmountGetResponse.go create mode 100644 model/trade/TaobaoTradeMemoAddAPIRequest.go create mode 100644 model/trade/TaobaoTradeMemoAddAPIResponse.go delete mode 100644 model/trade/TaobaoTradeMemoAddResponse.go create mode 100644 model/trade/TaobaoTradeMemoUpdateAPIRequest.go create mode 100644 model/trade/TaobaoTradeMemoUpdateAPIResponse.go delete mode 100644 model/trade/TaobaoTradeMemoUpdateResponse.go create mode 100644 model/trade/TaobaoTradeOrderskuUpdateAPIRequest.go create mode 100644 model/trade/TaobaoTradeOrderskuUpdateAPIResponse.go delete mode 100644 model/trade/TaobaoTradeOrderskuUpdateResponse.go create mode 100644 model/trade/TaobaoTradePostageUpdateAPIRequest.go create mode 100644 model/trade/TaobaoTradePostageUpdateAPIResponse.go delete mode 100644 model/trade/TaobaoTradePostageUpdateResponse.go create mode 100644 model/trade/TaobaoTradeReceivetimeDelayAPIRequest.go create mode 100644 model/trade/TaobaoTradeReceivetimeDelayAPIResponse.go delete mode 100644 model/trade/TaobaoTradeReceivetimeDelayResponse.go create mode 100644 model/trade/TaobaoTradeShippingaddressUpdateAPIRequest.go create mode 100644 model/trade/TaobaoTradeShippingaddressUpdateAPIResponse.go delete mode 100644 model/trade/TaobaoTradeShippingaddressUpdateResponse.go create mode 100644 model/trade/TaobaoTradeVoucherUploadAPIRequest.go create mode 100644 model/trade/TaobaoTradeVoucherUploadAPIResponse.go delete mode 100644 model/trade/TaobaoTradeVoucherUploadResponse.go create mode 100644 model/trade/TaobaoTradeWtverticalGetAPIRequest.go create mode 100644 model/trade/TaobaoTradeWtverticalGetAPIResponse.go delete mode 100644 model/trade/TaobaoTradeWtverticalGetResponse.go create mode 100644 model/trade/TaobaoTradesSoldGetAPIRequest.go create mode 100644 model/trade/TaobaoTradesSoldGetAPIResponse.go delete mode 100644 model/trade/TaobaoTradesSoldGetResponse.go create mode 100644 model/trade/TaobaoTradesSoldIncrementGetAPIRequest.go create mode 100644 model/trade/TaobaoTradesSoldIncrementGetAPIResponse.go delete mode 100644 model/trade/TaobaoTradesSoldIncrementGetResponse.go create mode 100644 model/trade/TaobaoTradesSoldIncrementvGetAPIRequest.go create mode 100644 model/trade/TaobaoTradesSoldIncrementvGetAPIResponse.go delete mode 100644 model/trade/TaobaoTradesSoldIncrementvGetResponse.go create mode 100644 model/trade/TaobaoTradesSoldQueryAPIRequest.go create mode 100644 model/trade/TaobaoTradesSoldQueryAPIResponse.go delete mode 100644 model/trade/TaobaoTradesSoldQueryResponse.go create mode 100644 model/trade/TaobaoWttTradeServiceGetAPIRequest.go create mode 100644 model/trade/TaobaoWttTradeServiceGetAPIResponse.go delete mode 100644 model/trade/TaobaoWttTradeServiceGetResponse.go create mode 100644 model/trade/TaobaoXhotelDistributionOrderDetailSearchAPIRequest.go create mode 100644 model/trade/TaobaoXhotelDistributionOrderDetailSearchAPIResponse.go delete mode 100644 model/trade/TaobaoXhotelDistributionOrderDetailSearchResponse.go create mode 100644 model/trade/TmallAscpOrdersSaleCreateAPIRequest.go create mode 100644 model/trade/TmallAscpOrdersSaleCreateAPIResponse.go delete mode 100644 model/trade/TmallAscpOrdersSaleCreateResponse.go create mode 100644 model/trade/TmallAscpOrdersSaleCreateResultDo.go create mode 100644 model/traderate/TaobaoFliggyWrateGetmixratelistAPIRequest.go create mode 100644 model/traderate/TaobaoFliggyWrateGetmixratelistAPIResponse.go delete mode 100644 model/traderate/TaobaoFliggyWrateGetmixratelistResponse.go create mode 100644 model/traderate/TaobaoTraderateAddAPIRequest.go create mode 100644 model/traderate/TaobaoTraderateAddAPIResponse.go delete mode 100644 model/traderate/TaobaoTraderateAddResponse.go create mode 100644 model/traderate/TaobaoTraderateExplainAddAPIRequest.go create mode 100644 model/traderate/TaobaoTraderateExplainAddAPIResponse.go delete mode 100644 model/traderate/TaobaoTraderateExplainAddResponse.go create mode 100644 model/traderate/TaobaoTraderateImprImprwordsGetAPIRequest.go create mode 100644 model/traderate/TaobaoTraderateImprImprwordsGetAPIResponse.go delete mode 100644 model/traderate/TaobaoTraderateImprImprwordsGetResponse.go create mode 100644 model/traderate/TaobaoTraderateListAddAPIRequest.go create mode 100644 model/traderate/TaobaoTraderateListAddAPIResponse.go delete mode 100644 model/traderate/TaobaoTraderateListAddResponse.go create mode 100644 model/traderate/TaobaoTraderatesGetAPIRequest.go create mode 100644 model/traderate/TaobaoTraderatesGetAPIResponse.go delete mode 100644 model/traderate/TaobaoTraderatesGetResponse.go create mode 100644 model/traderate/TmallTraderateFeedsGetAPIRequest.go create mode 100644 model/traderate/TmallTraderateFeedsGetAPIResponse.go delete mode 100644 model/traderate/TmallTraderateFeedsGetResponse.go create mode 100644 model/traderate/TmallTraderateItemtagsGetAPIRequest.go create mode 100644 model/traderate/TmallTraderateItemtagsGetAPIResponse.go delete mode 100644 model/traderate/TmallTraderateItemtagsGetResponse.go create mode 100644 model/train/TaobaoTrainAgentBookordersGetAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentBookordersGetAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentBookordersGetResponse.go create mode 100644 model/train/TaobaoTrainAgentBookordersGetVtwoAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentBookordersGetVtwoAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentBookordersGetVtwoResponse.go create mode 100644 model/train/TaobaoTrainAgentBookticketConfirmAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentBookticketConfirmAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentBookticketConfirmResponse.go create mode 100644 model/train/TaobaoTrainAgentBookticketConfirmVtwoAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentBookticketConfirmVtwoAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentBookticketConfirmVtwoResponse.go create mode 100644 model/train/TaobaoTrainAgentChangeAgreeVtwoAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentChangeAgreeVtwoAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentChangeAgreeVtwoResponse.go create mode 100644 model/train/TaobaoTrainAgentChangeGetVtwoAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentChangeGetVtwoAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentChangeGetVtwoResponse.go create mode 100644 model/train/TaobaoTrainAgentChangeHoldseatConfirmAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentChangeHoldseatConfirmAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentChangeHoldseatConfirmResponse.go create mode 100644 model/train/TaobaoTrainAgentChangeRefuseVtwoAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentChangeRefuseVtwoAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentChangeRefuseVtwoResponse.go create mode 100644 model/train/TaobaoTrainAgentChangeordersGetAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentChangeordersGetAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentChangeordersGetResponse.go create mode 100644 model/train/TaobaoTrainAgentChangeordersGetVtwoAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentChangeordersGetVtwoAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentChangeordersGetVtwoResponse.go create mode 100644 model/train/TaobaoTrainAgentDirectCompensateAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentDirectCompensateAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentDirectCompensateResponse.go create mode 100644 model/train/TaobaoTrainAgentExpressSetAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentExpressSetAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentExpressSetResponse.go create mode 100644 model/train/TaobaoTrainAgentExpressSetVtwoAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentExpressSetVtwoAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentExpressSetVtwoResponse.go create mode 100644 model/train/TaobaoTrainAgentGetRefundAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentGetRefundAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentGetRefundResponse.go create mode 100644 model/train/TaobaoTrainAgentGrabAccountAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentGrabAccountAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentGrabAccountResponse.go create mode 100644 model/train/TaobaoTrainAgentHandleticketConfirmAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentHandleticketConfirmAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentHandleticketConfirmResponse.go create mode 100644 model/train/TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentHandleticketConfirmVtwoAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentHandleticketConfirmVtwoResponse.go create mode 100644 model/train/TaobaoTrainAgentHandrefundRefundfeeAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentHandrefundRefundfeeAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentHandrefundRefundfeeResponse.go create mode 100644 model/train/TaobaoTrainAgentHoldseatConfirmAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentHoldseatConfirmAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentHoldseatConfirmResponse.go create mode 100644 model/train/TaobaoTrainAgentOrderGetAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentOrderGetAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentOrderGetResponse.go create mode 100644 model/train/TaobaoTrainAgentOrderGetVtwoAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentOrderGetVtwoAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentOrderGetVtwoResponse.go create mode 100644 model/train/TaobaoTrainAgentOrderPayAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentOrderPayAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentOrderPayResponse.go create mode 100644 model/train/TaobaoTrainAgentReturnordersGetVtwoAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentReturnordersGetVtwoAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentReturnordersGetVtwoResponse.go create mode 100644 model/train/TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentReturnticketConfirmVtwoAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentReturnticketConfirmVtwoResponse.go create mode 100644 model/train/TaobaoTrainAgentTostationConfirmAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentTostationConfirmAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentTostationConfirmResponse.go create mode 100644 model/train/TaobaoTrainAgentTostationReceiveAPIRequest.go create mode 100644 model/train/TaobaoTrainAgentTostationReceiveAPIResponse.go delete mode 100644 model/train/TaobaoTrainAgentTostationReceiveResponse.go create mode 100644 model/train/TaobaoTrainMomentGetAPIRequest.go create mode 100644 model/train/TaobaoTrainMomentGetAPIResponse.go delete mode 100644 model/train/TaobaoTrainMomentGetResponse.go create mode 100644 model/travel/AlitripDaytoursProductUploadAPIRequest.go create mode 100644 model/travel/AlitripDaytoursProductUploadAPIResponse.go delete mode 100644 model/travel/AlitripDaytoursProductUploadResponse.go create mode 100644 model/travel/AlitripFreetourProductUploadAPIRequest.go create mode 100644 model/travel/AlitripFreetourProductUploadAPIResponse.go delete mode 100644 model/travel/AlitripFreetourProductUploadResponse.go create mode 100644 model/travel/AlitripGrouptourProductUploadAPIRequest.go create mode 100644 model/travel/AlitripGrouptourProductUploadAPIResponse.go delete mode 100644 model/travel/AlitripGrouptourProductUploadResponse.go create mode 100644 model/travel/AlitripGrouptoursProductUploadAPIRequest.go create mode 100644 model/travel/AlitripGrouptoursProductUploadAPIResponse.go delete mode 100644 model/travel/AlitripGrouptoursProductUploadResponse.go create mode 100644 model/travel/AlitripItemAddSchemaGetAPIRequest.go create mode 100644 model/travel/AlitripItemAddSchemaGetAPIResponse.go delete mode 100644 model/travel/AlitripItemAddSchemaGetResponse.go create mode 100644 model/travel/AlitripItemSchemaAddAPIRequest.go create mode 100644 model/travel/AlitripItemSchemaAddAPIResponse.go delete mode 100644 model/travel/AlitripItemSchemaAddResponse.go create mode 100644 model/travel/AlitripItemSchemaUpdateAPIRequest.go create mode 100644 model/travel/AlitripItemSchemaUpdateAPIResponse.go delete mode 100644 model/travel/AlitripItemSchemaUpdateResponse.go create mode 100644 model/travel/AlitripItemUpdateSchemaGetAPIRequest.go create mode 100644 model/travel/AlitripItemUpdateSchemaGetAPIResponse.go delete mode 100644 model/travel/AlitripItemUpdateSchemaGetResponse.go create mode 100644 model/travel/AlitripLocalplayProductUploadAPIRequest.go create mode 100644 model/travel/AlitripLocalplayProductUploadAPIResponse.go delete mode 100644 model/travel/AlitripLocalplayProductUploadResponse.go create mode 100644 model/travel/AlitripTravelGereralitemUpdateAPIRequest.go create mode 100644 model/travel/AlitripTravelGereralitemUpdateAPIResponse.go delete mode 100644 model/travel/AlitripTravelGereralitemUpdateResponse.go create mode 100644 model/travel/AlitripTravelGereralproductUpdateAPIRequest.go create mode 100644 model/travel/AlitripTravelGereralproductUpdateAPIResponse.go delete mode 100644 model/travel/AlitripTravelGereralproductUpdateResponse.go create mode 100644 model/travel/AlitripTravelGereralskuUpdateAPIRequest.go create mode 100644 model/travel/AlitripTravelGereralskuUpdateAPIResponse.go delete mode 100644 model/travel/AlitripTravelGereralskuUpdateResponse.go create mode 100644 model/travel/AlitripTravelPoiSearchAPIRequest.go create mode 100644 model/travel/AlitripTravelPoiSearchAPIResponse.go delete mode 100644 model/travel/AlitripTravelPoiSearchResponse.go create mode 100644 model/travel/AlitripTravelProductGereralskuUpdateAPIRequest.go create mode 100644 model/travel/AlitripTravelProductGereralskuUpdateAPIResponse.go delete mode 100644 model/travel/AlitripTravelProductGereralskuUpdateResponse.go create mode 100644 model/travel/TaobaoAlitripTravelBaseinfoCitiesGetAPIRequest.go create mode 100644 model/travel/TaobaoAlitripTravelBaseinfoCitiesGetAPIResponse.go delete mode 100644 model/travel/TaobaoAlitripTravelBaseinfoCitiesGetResponse.go create mode 100644 model/travel/TaobaoAlitripTravelBaseinfoCruiseGetAPIRequest.go create mode 100644 model/travel/TaobaoAlitripTravelBaseinfoCruiseGetAPIResponse.go delete mode 100644 model/travel/TaobaoAlitripTravelBaseinfoCruiseGetResponse.go create mode 100644 model/travel/TaobaoAlitripTravelBaseinfoScenicsGetAPIRequest.go create mode 100644 model/travel/TaobaoAlitripTravelBaseinfoScenicsGetAPIResponse.go delete mode 100644 model/travel/TaobaoAlitripTravelBaseinfoScenicsGetResponse.go create mode 100644 model/travel/TaobaoAlitripTravelItemBaseAddAPIRequest.go create mode 100644 model/travel/TaobaoAlitripTravelItemBaseAddAPIResponse.go delete mode 100644 model/travel/TaobaoAlitripTravelItemBaseAddResponse.go create mode 100644 model/travel/TaobaoAlitripTravelItemBaseModifyAPIRequest.go create mode 100644 model/travel/TaobaoAlitripTravelItemBaseModifyAPIResponse.go delete mode 100644 model/travel/TaobaoAlitripTravelItemBaseModifyResponse.go create mode 100644 model/travel/TaobaoAlitripTravelItemElementManageAPIRequest.go create mode 100644 model/travel/TaobaoAlitripTravelItemElementManageAPIResponse.go delete mode 100644 model/travel/TaobaoAlitripTravelItemElementManageResponse.go create mode 100644 model/travel/TaobaoAlitripTravelItemElementQueryAPIRequest.go create mode 100644 model/travel/TaobaoAlitripTravelItemElementQueryAPIResponse.go delete mode 100644 model/travel/TaobaoAlitripTravelItemElementQueryResponse.go create mode 100644 model/travel/TaobaoAlitripTravelItemNewQueryAPIRequest.go create mode 100644 model/travel/TaobaoAlitripTravelItemNewQueryAPIResponse.go delete mode 100644 model/travel/TaobaoAlitripTravelItemNewQueryResponse.go create mode 100644 model/travel/TaobaoAlitripTravelItemShelveAPIRequest.go create mode 100644 model/travel/TaobaoAlitripTravelItemShelveAPIResponse.go delete mode 100644 model/travel/TaobaoAlitripTravelItemShelveResponse.go create mode 100644 model/travel/TaobaoAlitripTravelItemSingleQueryAPIRequest.go create mode 100644 model/travel/TaobaoAlitripTravelItemSingleQueryAPIResponse.go delete mode 100644 model/travel/TaobaoAlitripTravelItemSingleQueryResponse.go create mode 100644 model/travel/TaobaoAlitripTravelItemSkuOverrideAPIRequest.go create mode 100644 model/travel/TaobaoAlitripTravelItemSkuOverrideAPIResponse.go delete mode 100644 model/travel/TaobaoAlitripTravelItemSkuOverrideResponse.go create mode 100644 model/travel/TaobaoAlitripTravelItemSkuPackageModifyAPIRequest.go create mode 100644 model/travel/TaobaoAlitripTravelItemSkuPackageModifyAPIResponse.go delete mode 100644 model/travel/TaobaoAlitripTravelItemSkuPackageModifyResponse.go create mode 100644 model/travel/TaobaoAlitripTravelItemSkuPriceModifyAPIRequest.go create mode 100644 model/travel/TaobaoAlitripTravelItemSkuPriceModifyAPIResponse.go delete mode 100644 model/travel/TaobaoAlitripTravelItemSkuPriceModifyResponse.go create mode 100644 model/travel/TaobaoAlitripTravelProductBaseAddAPIRequest.go create mode 100644 model/travel/TaobaoAlitripTravelProductBaseAddAPIResponse.go delete mode 100644 model/travel/TaobaoAlitripTravelProductBaseAddResponse.go create mode 100644 model/travel/TaobaoAlitripTravelProductBaseModifyAPIRequest.go create mode 100644 model/travel/TaobaoAlitripTravelProductBaseModifyAPIResponse.go delete mode 100644 model/travel/TaobaoAlitripTravelProductBaseModifyResponse.go create mode 100644 model/travel/TaobaoAlitripTravelProductSkuOverrideAPIRequest.go create mode 100644 model/travel/TaobaoAlitripTravelProductSkuOverrideAPIResponse.go delete mode 100644 model/travel/TaobaoAlitripTravelProductSkuOverrideResponse.go create mode 100644 model/traveltrade/AlitripTravelBookinfoQueryAPIRequest.go create mode 100644 model/traveltrade/AlitripTravelBookinfoQueryAPIResponse.go delete mode 100644 model/traveltrade/AlitripTravelBookinfoQueryResponse.go create mode 100644 model/traveltrade/AlitripTravelBookinfosSearchAPIRequest.go create mode 100644 model/traveltrade/AlitripTravelBookinfosSearchAPIResponse.go delete mode 100644 model/traveltrade/AlitripTravelBookinfosSearchResponse.go create mode 100644 model/traveltrade/AlitripTravelTradeCloseAPIRequest.go create mode 100644 model/traveltrade/AlitripTravelTradeCloseAPIResponse.go delete mode 100644 model/traveltrade/AlitripTravelTradeCloseResponse.go create mode 100644 model/traveltrade/AlitripTravelTradeDeliverAPIRequest.go create mode 100644 model/traveltrade/AlitripTravelTradeDeliverAPIResponse.go delete mode 100644 model/traveltrade/AlitripTravelTradeDeliverResponse.go create mode 100644 model/traveltrade/AlitripTravelTradeQueryAPIRequest.go create mode 100644 model/traveltrade/AlitripTravelTradeQueryAPIResponse.go delete mode 100644 model/traveltrade/AlitripTravelTradeQueryResponse.go create mode 100644 model/traveltrade/AlitripTravelTradeServiceinfoWriteAPIRequest.go create mode 100644 model/traveltrade/AlitripTravelTradeServiceinfoWriteAPIResponse.go delete mode 100644 model/traveltrade/AlitripTravelTradeServiceinfoWriteResponse.go create mode 100644 model/traveltrade/AlitripTravelTradeTemplateQueryAPIRequest.go create mode 100644 model/traveltrade/AlitripTravelTradeTemplateQueryAPIResponse.go delete mode 100644 model/traveltrade/AlitripTravelTradeTemplateQueryResponse.go create mode 100644 model/traveltrade/AlitripTravelTradesSearchAPIRequest.go create mode 100644 model/traveltrade/AlitripTravelTradesSearchAPIResponse.go delete mode 100644 model/traveltrade/AlitripTravelTradesSearchResponse.go create mode 100644 model/traveltrade/AlitripTravelVisaApplicantUpdateAPIRequest.go create mode 100644 model/traveltrade/AlitripTravelVisaApplicantUpdateAPIResponse.go delete mode 100644 model/traveltrade/AlitripTravelVisaApplicantUpdateResponse.go create mode 100644 model/traveltrade/TaobaoAlitripTravelTradeMemoAddAPIRequest.go create mode 100644 model/traveltrade/TaobaoAlitripTravelTradeMemoAddAPIResponse.go delete mode 100644 model/traveltrade/TaobaoAlitripTravelTradeMemoAddResponse.go create mode 100644 model/traveltrade/TaobaoAlitripTravelTradeMemoUpdateAPIRequest.go create mode 100644 model/traveltrade/TaobaoAlitripTravelTradeMemoUpdateAPIResponse.go delete mode 100644 model/traveltrade/TaobaoAlitripTravelTradeMemoUpdateResponse.go create mode 100644 model/traveltrade/TaobaoTravelTicketOrderRefundAPIRequest.go create mode 100644 model/traveltrade/TaobaoTravelTicketOrderRefundAPIResponse.go delete mode 100644 model/traveltrade/TaobaoTravelTicketOrderRefundResponse.go create mode 100644 model/traveltrade/TaobaoTravelTicketOrderVerifyAPIRequest.go create mode 100644 model/traveltrade/TaobaoTravelTicketOrderVerifyAPIResponse.go delete mode 100644 model/traveltrade/TaobaoTravelTicketOrderVerifyResponse.go create mode 100644 model/tttm/AliyunIndustryTttmItemsSyncAPIRequest.go create mode 100644 model/tttm/AliyunIndustryTttmItemsSyncAPIResponse.go delete mode 100644 model/tttm/AliyunIndustryTttmItemsSyncResponse.go create mode 100644 model/tttm/AliyunIndustryTttmOrderQueryAPIRequest.go create mode 100644 model/tttm/AliyunIndustryTttmOrderQueryAPIResponse.go delete mode 100644 model/tttm/AliyunIndustryTttmOrderQueryResponse.go create mode 100644 model/tttm/AliyunIndustryTttmPlanSyncAPIRequest.go create mode 100644 model/tttm/AliyunIndustryTttmPlanSyncAPIResponse.go delete mode 100644 model/tttm/AliyunIndustryTttmPlanSyncResponse.go create mode 100644 model/tttm/AliyunIndustryTttmProduceSyncAPIRequest.go create mode 100644 model/tttm/AliyunIndustryTttmProduceSyncAPIResponse.go delete mode 100644 model/tttm/AliyunIndustryTttmProduceSyncResponse.go create mode 100644 model/tttm/AliyunIndustryTttmProductsSyncAPIRequest.go create mode 100644 model/tttm/AliyunIndustryTttmProductsSyncAPIResponse.go delete mode 100644 model/tttm/AliyunIndustryTttmProductsSyncResponse.go create mode 100644 model/tttm/AliyunIndustryTttmStockSyncAPIRequest.go create mode 100644 model/tttm/AliyunIndustryTttmStockSyncAPIResponse.go delete mode 100644 model/tttm/AliyunIndustryTttmStockSyncResponse.go create mode 100644 model/tuanhotel/AlitripTuanHotelAdaptStoreGetAPIRequest.go create mode 100644 model/tuanhotel/AlitripTuanHotelAdaptStoreGetAPIResponse.go delete mode 100644 model/tuanhotel/AlitripTuanHotelAdaptStoreGetResponse.go create mode 100644 model/tuanhotel/AlitripTuanHotelImageUploadAPIRequest.go create mode 100644 model/tuanhotel/AlitripTuanHotelImageUploadAPIResponse.go delete mode 100644 model/tuanhotel/AlitripTuanHotelImageUploadResponse.go create mode 100644 model/tuanhotel/AlitripTuanHotelItemInfoGetAPIRequest.go create mode 100644 model/tuanhotel/AlitripTuanHotelItemInfoGetAPIResponse.go delete mode 100644 model/tuanhotel/AlitripTuanHotelItemInfoGetResponse.go create mode 100644 model/tuanhotel/AlitripTuanHotelItemSkuCalendarUpdateAPIRequest.go create mode 100644 model/tuanhotel/AlitripTuanHotelItemSkuCalendarUpdateAPIResponse.go delete mode 100644 model/tuanhotel/AlitripTuanHotelItemSkuCalendarUpdateResponse.go create mode 100644 model/tuanhotel/AlitripTuanHotelItemSkuDeleteAPIRequest.go create mode 100644 model/tuanhotel/AlitripTuanHotelItemSkuDeleteAPIResponse.go delete mode 100644 model/tuanhotel/AlitripTuanHotelItemSkuDeleteResponse.go create mode 100644 model/tuanhotel/AlitripTuanHotelItemSkuUpdateAPIRequest.go create mode 100644 model/tuanhotel/AlitripTuanHotelItemSkuUpdateAPIResponse.go delete mode 100644 model/tuanhotel/AlitripTuanHotelItemSkuUpdateResponse.go create mode 100644 model/tuanhotel/AlitripTuanHotelRelatePoiGetAPIRequest.go create mode 100644 model/tuanhotel/AlitripTuanHotelRelatePoiGetAPIResponse.go delete mode 100644 model/tuanhotel/AlitripTuanHotelRelatePoiGetResponse.go create mode 100644 model/tuanhotel/AlitripTuanHotelShopCategoryGetAPIRequest.go create mode 100644 model/tuanhotel/AlitripTuanHotelShopCategoryGetAPIResponse.go delete mode 100644 model/tuanhotel/AlitripTuanHotelShopCategoryGetResponse.go create mode 100644 model/tuike/AlibabaTuikeOfferGetAPIRequest.go create mode 100644 model/tuike/AlibabaTuikeOfferGetAPIResponse.go create mode 100644 model/tuike/AlibabaTuikeOfferGetProAPIRequest.go create mode 100644 model/tuike/AlibabaTuikeOfferGetProAPIResponse.go delete mode 100644 model/tuike/AlibabaTuikeOfferGetProResponse.go delete mode 100644 model/tuike/AlibabaTuikeOfferGetResponse.go create mode 100644 model/tuike/AlibabaTuikeOfferZhitokenAPIRequest.go create mode 100644 model/tuike/AlibabaTuikeOfferZhitokenAPIResponse.go delete mode 100644 model/tuike/AlibabaTuikeOfferZhitokenResponse.go create mode 100644 model/tuike/AlibabaTuikeSingleOfferGetAPIRequest.go create mode 100644 model/tuike/AlibabaTuikeSingleOfferGetAPIResponse.go delete mode 100644 model/tuike/AlibabaTuikeSingleOfferGetResponse.go create mode 100644 model/tuike/AlibabaTuikeWebUnionOrderQueryAPIRequest.go create mode 100644 model/tuike/AlibabaTuikeWebUnionOrderQueryAPIResponse.go delete mode 100644 model/tuike/AlibabaTuikeWebUnionOrderQueryResponse.go create mode 100644 model/tvpay/TaobaoTvpayAccessDataGetAPIRequest.go create mode 100644 model/tvpay/TaobaoTvpayAccessDataGetAPIResponse.go delete mode 100644 model/tvpay/TaobaoTvpayAccessDataGetResponse.go create mode 100644 model/tvpay/TaobaoTvpayAppinfoGetAPIRequest.go create mode 100644 model/tvpay/TaobaoTvpayAppinfoGetAPIResponse.go delete mode 100644 model/tvpay/TaobaoTvpayAppinfoGetResponse.go create mode 100644 model/tvpay/TaobaoTvpayAuthApplyAPIRequest.go create mode 100644 model/tvpay/TaobaoTvpayAuthApplyAPIResponse.go delete mode 100644 model/tvpay/TaobaoTvpayAuthApplyResponse.go create mode 100644 model/tvpay/TaobaoTvpayAuthQueryAPIRequest.go create mode 100644 model/tvpay/TaobaoTvpayAuthQueryAPIResponse.go delete mode 100644 model/tvpay/TaobaoTvpayAuthQueryResponse.go create mode 100644 model/tvpay/TaobaoTvpayOrderPartnerpayAPIRequest.go create mode 100644 model/tvpay/TaobaoTvpayOrderPartnerpayAPIResponse.go delete mode 100644 model/tvpay/TaobaoTvpayOrderPartnerpayResponse.go create mode 100644 model/tvpay/TaobaoTvpayOrderPrecreateAPIRequest.go create mode 100644 model/tvpay/TaobaoTvpayOrderPrecreateAPIResponse.go delete mode 100644 model/tvpay/TaobaoTvpayOrderPrecreateResponse.go create mode 100644 model/tvpay/TaobaoTvpayOrderQueryAPIRequest.go create mode 100644 model/tvpay/TaobaoTvpayOrderQueryAPIResponse.go delete mode 100644 model/tvpay/TaobaoTvpayOrderQueryResponse.go create mode 100644 model/tvpay/TaobaoTvpayPartnerOrderQueryAPIRequest.go create mode 100644 model/tvpay/TaobaoTvpayPartnerOrderQueryAPIResponse.go delete mode 100644 model/tvpay/TaobaoTvpayPartnerOrderQueryResponse.go create mode 100644 model/tvpay/TaobaoTvpayPromotionInfoGetAPIRequest.go create mode 100644 model/tvpay/TaobaoTvpayPromotionInfoGetAPIResponse.go delete mode 100644 model/tvpay/TaobaoTvpayPromotionInfoGetResponse.go create mode 100644 model/tvupadmin/YunosOsupdateAppversionCreateAPIRequest.go create mode 100644 model/tvupadmin/YunosOsupdateAppversionCreateAPIResponse.go delete mode 100644 model/tvupadmin/YunosOsupdateAppversionCreateResponse.go create mode 100644 model/tvupadmin/YunosOsupdateAppversionInfoAPIRequest.go create mode 100644 model/tvupadmin/YunosOsupdateAppversionInfoAPIResponse.go delete mode 100644 model/tvupadmin/YunosOsupdateAppversionInfoResponse.go create mode 100644 model/tvupadmin/YunosOsupdateAppversionPublishAPIRequest.go create mode 100644 model/tvupadmin/YunosOsupdateAppversionPublishAPIResponse.go delete mode 100644 model/tvupadmin/YunosOsupdateAppversionPublishResponse.go create mode 100644 model/tvupadmin/YunosOsupdateAppversionQueryAPIRequest.go create mode 100644 model/tvupadmin/YunosOsupdateAppversionQueryAPIResponse.go delete mode 100644 model/tvupadmin/YunosOsupdateAppversionQueryResponse.go create mode 100644 model/tvupadmin/YunosOsupdateAppversionUpdateAPIRequest.go create mode 100644 model/tvupadmin/YunosOsupdateAppversionUpdateAPIResponse.go delete mode 100644 model/tvupadmin/YunosOsupdateAppversionUpdateResponse.go create mode 100644 model/tvupadmin/YunosOsupdateDeviceserviceSearchmodelsAPIRequest.go create mode 100644 model/tvupadmin/YunosOsupdateDeviceserviceSearchmodelsAPIResponse.go delete mode 100644 model/tvupadmin/YunosOsupdateDeviceserviceSearchmodelsResponse.go create mode 100644 model/tvupadmin/YunosOsupdateModelSearchAPIRequest.go create mode 100644 model/tvupadmin/YunosOsupdateModelSearchAPIResponse.go delete mode 100644 model/tvupadmin/YunosOsupdateModelSearchResponse.go create mode 100644 model/tvupadmin/YunosOsupdateOsfotaAddAPIRequest.go create mode 100644 model/tvupadmin/YunosOsupdateOsfotaAddAPIResponse.go delete mode 100644 model/tvupadmin/YunosOsupdateOsfotaAddResponse.go create mode 100644 model/tvupadmin/YunosOsupdateOsfotaPublishAPIRequest.go create mode 100644 model/tvupadmin/YunosOsupdateOsfotaPublishAPIResponse.go delete mode 100644 model/tvupadmin/YunosOsupdateOsfotaPublishResponse.go create mode 100644 model/tvupadmin/YunosOsupdateOsfotaQueryAPIRequest.go create mode 100644 model/tvupadmin/YunosOsupdateOsfotaQueryAPIResponse.go delete mode 100644 model/tvupadmin/YunosOsupdateOsfotaQueryResponse.go create mode 100644 model/tvupadmin/YunosOsupdateVersionstatusUpdateAPIRequest.go create mode 100644 model/tvupadmin/YunosOsupdateVersionstatusUpdateAPIResponse.go delete mode 100644 model/tvupadmin/YunosOsupdateVersionstatusUpdateResponse.go create mode 100644 model/tvupadmin/YunosPubadminCommonOperationAPIRequest.go create mode 100644 model/tvupadmin/YunosPubadminCommonOperationAPIResponse.go delete mode 100644 model/tvupadmin/YunosPubadminCommonOperationResponse.go create mode 100644 model/tvupadmin/YunosTradeAdminCommonOperationAPIRequest.go create mode 100644 model/tvupadmin/YunosTradeAdminCommonOperationAPIResponse.go delete mode 100644 model/tvupadmin/YunosTradeAdminCommonOperationResponse.go create mode 100644 model/tvupadmin/YunosTvmbosCommonOperationAPIRequest.go create mode 100644 model/tvupadmin/YunosTvmbosCommonOperationAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvmbosCommonOperationResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminAdmOttAuditAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminAdmOttAuditAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminAdmOttAuditResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminAdmOttQueryAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminAdmOttQueryAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminAdmOttQueryResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminCommonFileUploadAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminCommonFileUploadAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminCommonFileUploadResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentAdvertGettypesAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentAdvertGettypesAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentAdvertGettypesResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentAdvertManagescheduleAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentAdvertManagescheduleAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentAdvertManagescheduleResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentAdvertQueryscheduleAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentAdvertQueryscheduleAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentAdvertQueryscheduleResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentAppOnoffappbylicenseAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentAppOnoffappbylicenseAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentAppOnoffappbylicenseResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentAppQueryappAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentAppQueryappAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentAppQueryappResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentAppQuerybylicenceAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentAppQuerybylicenceAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentAppQuerybylicenceResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentChannelOfflineAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentChannelOfflineAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentChannelOfflineResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentChannelQueryAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentChannelQueryAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentChannelQueryResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentChildLeafnodeGetAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentChildLeafnodeGetAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentChildLeafnodeGetResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentChildNodeitemOfflineAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentChildNodeitemOfflineAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentChildNodeitemOfflineResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentChildNodeitemQueryAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentChildNodeitemQueryAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentChildNodeitemQueryResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentChildRecoitemOfflineAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentChildRecoitemOfflineAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentChildRecoitemOfflineResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentChildRecoitemQueryAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentChildRecoitemQueryAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentChildRecoitemQueryResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentChildRootnodeGetAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentChildRootnodeGetAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentChildRootnodeGetResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentDeviceGetterminaltypemapAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentDeviceGetterminaltypemapAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentDeviceGetterminaltypemapResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentDeviceGetvendorAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentDeviceGetvendorAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentDeviceGetvendorResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentShowEditAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentShowEditAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentShowEditResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentShowGetbyshowidAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentShowGetbyshowidAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentShowGetbyshowidResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentShowGetbyshowlongidAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentShowGetbyshowlongidAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentShowGetbyshowlongidResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentShowGetlistAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentShowGetlistAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentShowGetlistResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentShowGetshowexemptauditmapAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentShowGetshowexemptauditmapAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentShowGetshowexemptauditmapResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentShowSetexemptauditAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentShowSetexemptauditAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentShowSetexemptauditResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentSingleVideoGetlistAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentSingleVideoGetlistAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentSingleVideoGetlistResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentSingleVideoSubmitauditresultAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentSingleVideoSubmitauditresultResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentTableauditOfflinelauncheritemAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentTableauditOfflinelauncheritemAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentTableauditOfflinelauncheritemResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentTableauditQuerychilddesktopAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentTableauditQuerychilddesktopAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentTableauditQuerychilddesktopResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentTableauditQuerylauncherAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentTableauditQuerylauncherAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentTableauditQuerylauncherResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentTableauditQuerymetaitemAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentTableauditQuerymetaitemAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentTableauditQuerymetaitemResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentTopicOfflineAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentTopicOfflineAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentTopicOfflineResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentTopicQuerytopicAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentTopicQuerytopicAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentTopicQuerytopicResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentVideoGetauditlistAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentVideoGetauditlistAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentVideoGetauditlistResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminContentVideoSubmitauditresultAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminContentVideoSubmitauditresultAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminContentVideoSubmitauditresultResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDataQueryAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDataQueryAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDataQueryResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceApkinfoAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceApkinfoAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceApkinfoResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceApksAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceApksAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceApksResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceAppupgradedetailAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceAppupgradedetailAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceAppupgradedetailResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceAppupgradequeryAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceAppupgradequeryAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceAppupgradequeryResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceBrandsAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceBrandsAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceBrandsResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceModelsAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceModelsAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceModelsResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceOsupgradedetailAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceOsupgradedetailAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceOsupgradedetailResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceOsupgradequeryAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceOsupgradequeryAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceOsupgradequeryResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceQueryAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceQueryAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceQueryResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceStatsAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceStatsAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceStatsResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceTvidAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceTvidAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceTvidResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceUpdateappstatusAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceUpdateappstatusAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceUpdateappstatusResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceUpdateosstatusAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceUpdateosstatusAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceUpdateosstatusResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksBotsAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksBotsAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksBotsResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksSkillAddAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksSkillAddAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksSkillAddResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksSkillDeleteAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksSkillDeleteAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksSkillDeleteResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksSkillModifyAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksSkillModifyAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksSkillModifyResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksSkillOfflineAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksSkillOfflineAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksSkillOfflineResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksSkillOnlineAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksSkillOnlineAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksSkillOnlineResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksSkillsAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksSkillsAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDeviceYksSkillsResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDiccontroltaskAddAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDiccontroltaskAddAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDiccontroltaskAddResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDiccontroltaskGetinfoAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDiccontroltaskGetinfoAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDiccontroltaskGetinfoResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDiccontroltaskQueryAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDiccontroltaskQueryAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDiccontroltaskQueryResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminDiccontroltaskUpdateAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminDiccontroltaskUpdateAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminDiccontroltaskUpdateResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminEpgDesktopOperationAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminEpgDesktopOperationAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminEpgDesktopOperationResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminManageDialogAddAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminManageDialogAddAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminManageDialogAddResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminManageDialogDeleteAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminManageDialogDeleteAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminManageDialogDeleteResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminManageDialogEditAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminManageDialogEditAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminManageDialogEditResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminManageDialogFindbyidAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminManageDialogFindbyidAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminManageDialogFindbyidResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminManageDialogListAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminManageDialogListAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminManageDialogListResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminManageTopicAddAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminManageTopicAddAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminManageTopicAddResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminManageTopicContentaddAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminManageTopicContentaddAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminManageTopicContentaddResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminManageTopicContentdeleteAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminManageTopicContentdeleteAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminManageTopicContentdeleteResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminManageTopicContenteditAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminManageTopicContenteditAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminManageTopicContenteditResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminManageTopicContentlistAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminManageTopicContentlistAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminManageTopicContentlistResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminManageTopicEditAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminManageTopicEditAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminManageTopicEditResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminManageTopicFindbyidAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminManageTopicFindbyidAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminManageTopicFindbyidResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminManageTopicListAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminManageTopicListAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminManageTopicListResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminUserOrderlistAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminUserOrderlistAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminUserOrderlistResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminUserRightsAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminUserRightsAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminUserRightsResponse.go create mode 100644 model/tvupadmin/YunosTvpubadminUserSuggestAPIRequest.go create mode 100644 model/tvupadmin/YunosTvpubadminUserSuggestAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvpubadminUserSuggestResponse.go create mode 100644 model/tvupadmin/YunosTvscreenAdminCommonOperationAPIRequest.go create mode 100644 model/tvupadmin/YunosTvscreenAdminCommonOperationAPIResponse.go delete mode 100644 model/tvupadmin/YunosTvscreenAdminCommonOperationResponse.go create mode 100644 model/txcs/TmallTxcsFinanceBillCheckAPIRequest.go create mode 100644 model/txcs/TmallTxcsFinanceBillCheckAPIResponse.go delete mode 100644 model/txcs/TmallTxcsFinanceBillCheckResponse.go create mode 100644 model/txcs/TmallTxcsFinanceBillConfirmAPIRequest.go create mode 100644 model/txcs/TmallTxcsFinanceBillConfirmAPIResponse.go delete mode 100644 model/txcs/TmallTxcsFinanceBillConfirmResponse.go create mode 100644 model/txcs/TmallTxcsFinanceBillQueryAPIRequest.go create mode 100644 model/txcs/TmallTxcsFinanceBillQueryAPIResponse.go delete mode 100644 model/txcs/TmallTxcsFinanceBillQueryResponse.go create mode 100644 model/txcs/TmallTxcsFinanceInvoiceInputAPIRequest.go create mode 100644 model/txcs/TmallTxcsFinanceInvoiceInputAPIResponse.go delete mode 100644 model/txcs/TmallTxcsFinanceInvoiceInputResponse.go create mode 100644 model/txcs/TmallTxcsFinanceVerifyStatementBillAPIRequest.go create mode 100644 model/txcs/TmallTxcsFinanceVerifyStatementBillAPIResponse.go delete mode 100644 model/txcs/TmallTxcsFinanceVerifyStatementBillResponse.go create mode 100644 model/uscesl/TaobaoUsceslBizApActivateAPIRequest.go create mode 100644 model/uscesl/TaobaoUsceslBizApActivateAPIResponse.go delete mode 100644 model/uscesl/TaobaoUsceslBizApActivateResponse.go create mode 100644 model/uscesl/TaobaoUsceslBizApAddAPIRequest.go create mode 100644 model/uscesl/TaobaoUsceslBizApAddAPIResponse.go delete mode 100644 model/uscesl/TaobaoUsceslBizApAddResponse.go create mode 100644 model/uscesl/TaobaoUsceslBizApDeleteAPIRequest.go create mode 100644 model/uscesl/TaobaoUsceslBizApDeleteAPIResponse.go delete mode 100644 model/uscesl/TaobaoUsceslBizApDeleteResponse.go create mode 100644 model/uscesl/TaobaoUsceslBizApSearchAPIRequest.go create mode 100644 model/uscesl/TaobaoUsceslBizApSearchAPIResponse.go delete mode 100644 model/uscesl/TaobaoUsceslBizApSearchResponse.go create mode 100644 model/uscesl/TaobaoUsceslBizBrandInsertAPIRequest.go create mode 100644 model/uscesl/TaobaoUsceslBizBrandInsertAPIResponse.go delete mode 100644 model/uscesl/TaobaoUsceslBizBrandInsertResponse.go create mode 100644 model/uscesl/TaobaoUsceslBizEslBindAPIRequest.go create mode 100644 model/uscesl/TaobaoUsceslBizEslBindAPIResponse.go delete mode 100644 model/uscesl/TaobaoUsceslBizEslBindResponse.go create mode 100644 model/uscesl/TaobaoUsceslBizEslInfoGetAPIRequest.go create mode 100644 model/uscesl/TaobaoUsceslBizEslInfoGetAPIResponse.go delete mode 100644 model/uscesl/TaobaoUsceslBizEslInfoGetResponse.go create mode 100644 model/uscesl/TaobaoUsceslBizEslUnbindAPIRequest.go create mode 100644 model/uscesl/TaobaoUsceslBizEslUnbindAPIResponse.go delete mode 100644 model/uscesl/TaobaoUsceslBizEslUnbindResponse.go create mode 100644 model/uscesl/TaobaoUsceslBizItemLightUpAPIRequest.go create mode 100644 model/uscesl/TaobaoUsceslBizItemLightUpAPIResponse.go delete mode 100644 model/uscesl/TaobaoUsceslBizItemLightUpResponse.go create mode 100644 model/uscesl/TaobaoUsceslBizLightUpAPIRequest.go create mode 100644 model/uscesl/TaobaoUsceslBizLightUpAPIResponse.go delete mode 100644 model/uscesl/TaobaoUsceslBizLightUpResponse.go create mode 100644 model/uscesl/TaobaoUsceslBizStoreInsertAPIRequest.go create mode 100644 model/uscesl/TaobaoUsceslBizStoreInsertAPIResponse.go delete mode 100644 model/uscesl/TaobaoUsceslBizStoreInsertResponse.go create mode 100644 model/uscesl/TaobaoUsceslIteminfoBatchInsertAPIRequest.go create mode 100644 model/uscesl/TaobaoUsceslIteminfoBatchInsertAPIResponse.go delete mode 100644 model/uscesl/TaobaoUsceslIteminfoBatchInsertResponse.go create mode 100644 model/uscesl/TaobaoUsceslIteminfoBatchPutAPIRequest.go create mode 100644 model/uscesl/TaobaoUsceslIteminfoBatchPutAPIResponse.go delete mode 100644 model/uscesl/TaobaoUsceslIteminfoBatchPutResponse.go create mode 100644 model/uscesl/TaobaoUsceslIteminfoPutAPIRequest.go create mode 100644 model/uscesl/TaobaoUsceslIteminfoPutAPIResponse.go delete mode 100644 model/uscesl/TaobaoUsceslIteminfoPutResponse.go create mode 100644 model/user/AccountAliyuncsComGetPubKey2013_07_01APIRequest.go create mode 100644 model/user/AccountAliyuncsComGetPubKey2013_07_01APIResponse.go delete mode 100644 model/user/AccountAliyuncsComGetPubKey2013_07_01Response.go create mode 100644 model/user/AlibabaAilabsUserSpeechGuideAPIRequest.go create mode 100644 model/user/AlibabaAilabsUserSpeechGuideAPIResponse.go delete mode 100644 model/user/AlibabaAilabsUserSpeechGuideResponse.go create mode 100644 model/user/AlibabaAliqinFlowWalletCheckBalanceAPIRequest.go create mode 100644 model/user/AlibabaAliqinFlowWalletCheckBalanceAPIResponse.go delete mode 100644 model/user/AlibabaAliqinFlowWalletCheckBalanceResponse.go create mode 100644 model/user/AlibabaBenefitSendAPIRequest.go create mode 100644 model/user/AlibabaBenefitSendAPIResponse.go delete mode 100644 model/user/AlibabaBenefitSendResponse.go create mode 100644 model/user/AlibabaBeneiftDrawAPIRequest.go create mode 100644 model/user/AlibabaBeneiftDrawAPIResponse.go delete mode 100644 model/user/AlibabaBeneiftDrawResponse.go create mode 100644 model/user/AlibabaInteractUiVideoAPIRequest.go create mode 100644 model/user/AlibabaInteractUiVideoAPIResponse.go delete mode 100644 model/user/AlibabaInteractUiVideoResponse.go create mode 100644 model/user/AlibabaLsyCrmCreateAPIRequest.go create mode 100644 model/user/AlibabaLsyCrmCreateAPIResponse.go delete mode 100644 model/user/AlibabaLsyCrmCreateResponse.go create mode 100644 model/user/AlibabaLsyCrmUpdateAPIRequest.go create mode 100644 model/user/AlibabaLsyCrmUpdateAPIResponse.go delete mode 100644 model/user/AlibabaLsyCrmUpdateResponse.go create mode 100644 model/user/AlibabaLsyMiniappUserGetAPIRequest.go create mode 100644 model/user/AlibabaLsyMiniappUserGetAPIResponse.go delete mode 100644 model/user/AlibabaLsyMiniappUserGetResponse.go create mode 100644 model/user/TaobaoAppstoreSubscribeGetAPIRequest.go create mode 100644 model/user/TaobaoAppstoreSubscribeGetAPIResponse.go delete mode 100644 model/user/TaobaoAppstoreSubscribeGetResponse.go create mode 100644 model/user/TaobaoKoubeiTribeOpenUserQueryAPIRequest.go create mode 100644 model/user/TaobaoKoubeiTribeOpenUserQueryAPIResponse.go delete mode 100644 model/user/TaobaoKoubeiTribeOpenUserQueryResponse.go create mode 100644 model/user/TaobaoKoubeiTribeOpenVerifyCodeApplyAPIRequest.go create mode 100644 model/user/TaobaoKoubeiTribeOpenVerifyCodeApplyAPIResponse.go delete mode 100644 model/user/TaobaoKoubeiTribeOpenVerifyCodeApplyResponse.go create mode 100644 model/user/TaobaoLarkPosItemprodFindterminalAPIRequest.go create mode 100644 model/user/TaobaoLarkPosItemprodFindterminalAPIResponse.go delete mode 100644 model/user/TaobaoLarkPosItemprodFindterminalResponse.go create mode 100644 model/user/TaobaoMessageaccountMesssageMassSendAPIRequest.go create mode 100644 model/user/TaobaoMessageaccountMesssageMassSendAPIResponse.go delete mode 100644 model/user/TaobaoMessageaccountMesssageMassSendResponse.go create mode 100644 model/user/TaobaoMessageaccountMesssageNormalSendAPIRequest.go create mode 100644 model/user/TaobaoMessageaccountMesssageNormalSendAPIResponse.go delete mode 100644 model/user/TaobaoMessageaccountMesssageNormalSendResponse.go create mode 100644 model/user/TaobaoMessageaccountMesssageReplyAPIRequest.go create mode 100644 model/user/TaobaoMessageaccountMesssageReplyAPIResponse.go delete mode 100644 model/user/TaobaoMessageaccountMesssageReplyResponse.go create mode 100644 model/user/TaobaoMiniappEleuserPhoneGetAPIRequest.go create mode 100644 model/user/TaobaoMiniappEleuserPhoneGetAPIResponse.go delete mode 100644 model/user/TaobaoMiniappEleuserPhoneGetResponse.go create mode 100644 model/user/TaobaoMiniappEleuserinfoGetAPIRequest.go create mode 100644 model/user/TaobaoMiniappEleuserinfoGetAPIResponse.go delete mode 100644 model/user/TaobaoMiniappEleuserinfoGetResponse.go create mode 100644 model/user/TaobaoMiniappMesssageNormalSendAPIRequest.go create mode 100644 model/user/TaobaoMiniappMesssageNormalSendAPIResponse.go delete mode 100644 model/user/TaobaoMiniappMesssageNormalSendResponse.go create mode 100644 model/user/TaobaoMiniappMesssageReplyAPIRequest.go create mode 100644 model/user/TaobaoMiniappMesssageReplyAPIResponse.go delete mode 100644 model/user/TaobaoMiniappMesssageReplyResponse.go create mode 100644 model/user/TaobaoMiniappUserInfoGetAPIRequest.go create mode 100644 model/user/TaobaoMiniappUserInfoGetAPIResponse.go delete mode 100644 model/user/TaobaoMiniappUserInfoGetResponse.go create mode 100644 model/user/TaobaoMiniappUserPhoneGetAPIRequest.go create mode 100644 model/user/TaobaoMiniappUserPhoneGetAPIResponse.go delete mode 100644 model/user/TaobaoMiniappUserPhoneGetResponse.go create mode 100644 model/user/TaobaoMixnickChangeAPIRequest.go create mode 100644 model/user/TaobaoMixnickChangeAPIResponse.go delete mode 100644 model/user/TaobaoMixnickChangeResponse.go create mode 100644 model/user/TaobaoNewretailDivisionRecordListGetAPIRequest.go create mode 100644 model/user/TaobaoNewretailDivisionRecordListGetAPIResponse.go delete mode 100644 model/user/TaobaoNewretailDivisionRecordListGetResponse.go create mode 100644 model/user/TaobaoOpenAccountCreateAPIRequest.go create mode 100644 model/user/TaobaoOpenAccountCreateAPIResponse.go delete mode 100644 model/user/TaobaoOpenAccountCreateResponse.go create mode 100644 model/user/TaobaoOpenAccountDeleteAPIRequest.go create mode 100644 model/user/TaobaoOpenAccountDeleteAPIResponse.go delete mode 100644 model/user/TaobaoOpenAccountDeleteResponse.go create mode 100644 model/user/TaobaoOpenAccountIndexFindAPIRequest.go create mode 100644 model/user/TaobaoOpenAccountIndexFindAPIResponse.go delete mode 100644 model/user/TaobaoOpenAccountIndexFindResponse.go create mode 100644 model/user/TaobaoOpenAccountListAPIRequest.go create mode 100644 model/user/TaobaoOpenAccountListAPIResponse.go delete mode 100644 model/user/TaobaoOpenAccountListResponse.go create mode 100644 model/user/TaobaoOpenAccountSearchAPIRequest.go create mode 100644 model/user/TaobaoOpenAccountSearchAPIResponse.go delete mode 100644 model/user/TaobaoOpenAccountSearchResponse.go create mode 100644 model/user/TaobaoOpenAccountTokenApplyAPIRequest.go create mode 100644 model/user/TaobaoOpenAccountTokenApplyAPIResponse.go delete mode 100644 model/user/TaobaoOpenAccountTokenApplyResponse.go create mode 100644 model/user/TaobaoOpenAccountTokenValidateAPIRequest.go create mode 100644 model/user/TaobaoOpenAccountTokenValidateAPIResponse.go delete mode 100644 model/user/TaobaoOpenAccountTokenValidateResponse.go create mode 100644 model/user/TaobaoOpenAccountUpdateAPIRequest.go create mode 100644 model/user/TaobaoOpenAccountUpdateAPIResponse.go delete mode 100644 model/user/TaobaoOpenAccountUpdateResponse.go create mode 100644 model/user/TaobaoOpensecurityIsvUidGetAPIRequest.go create mode 100644 model/user/TaobaoOpensecurityIsvUidGetAPIResponse.go delete mode 100644 model/user/TaobaoOpensecurityIsvUidGetResponse.go create mode 100644 model/user/TaobaoOpensecurityUidGetAPIRequest.go create mode 100644 model/user/TaobaoOpensecurityUidGetAPIResponse.go delete mode 100644 model/user/TaobaoOpensecurityUidGetResponse.go create mode 100644 model/user/TaobaoRdcAligeniusAccountValidateAPIRequest.go create mode 100644 model/user/TaobaoRdcAligeniusAccountValidateAPIResponse.go delete mode 100644 model/user/TaobaoRdcAligeniusAccountValidateResponse.go create mode 100644 model/user/TaobaoUserAvatarGetAPIRequest.go create mode 100644 model/user/TaobaoUserAvatarGetAPIResponse.go delete mode 100644 model/user/TaobaoUserAvatarGetResponse.go create mode 100644 model/user/TaobaoUserBuyerGetAPIRequest.go create mode 100644 model/user/TaobaoUserBuyerGetAPIResponse.go delete mode 100644 model/user/TaobaoUserBuyerGetResponse.go create mode 100644 model/user/TaobaoUserSellerGetAPIRequest.go create mode 100644 model/user/TaobaoUserSellerGetAPIResponse.go delete mode 100644 model/user/TaobaoUserSellerGetResponse.go create mode 100644 model/user/TmallServiceSettleadjustmentModifyAPIRequest.go create mode 100644 model/user/TmallServiceSettleadjustmentModifyAPIResponse.go delete mode 100644 model/user/TmallServiceSettleadjustmentModifyResponse.go create mode 100644 model/usergrowth/TaobaoUsergrowthDeliveryBatchaskAPIRequest.go create mode 100644 model/usergrowth/TaobaoUsergrowthDeliveryBatchaskAPIResponse.go delete mode 100644 model/usergrowth/TaobaoUsergrowthDeliveryBatchaskResponse.go create mode 100644 model/usergrowth/TaobaoUsergrowthDeliveryProfileReportAPIRequest.go create mode 100644 model/usergrowth/TaobaoUsergrowthDeliveryProfileReportAPIResponse.go delete mode 100644 model/usergrowth/TaobaoUsergrowthDeliveryProfileReportResponse.go create mode 100644 model/usergrowth/TaobaoUsergrowthDhhDeliveryAskAPIRequest.go create mode 100644 model/usergrowth/TaobaoUsergrowthDhhDeliveryAskAPIResponse.go delete mode 100644 model/usergrowth/TaobaoUsergrowthDhhDeliveryAskResponse.go create mode 100644 model/usergrowth/TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest.go create mode 100644 model/usergrowth/TaobaoUsergrowthDhhDeliveryBatchaskAPIResponse.go delete mode 100644 model/usergrowth/TaobaoUsergrowthDhhDeliveryBatchaskResponse.go create mode 100644 model/usergrowth2/TaobaoUsergrowthDeliveryAskAPIRequest.go create mode 100644 model/usergrowth2/TaobaoUsergrowthDeliveryAskAPIResponse.go delete mode 100644 model/usergrowth2/TaobaoUsergrowthDeliveryAskResponse.go create mode 100644 model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIRequest.go create mode 100644 model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIResponse.go delete mode 100644 model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsEightGetResponse.go create mode 100644 model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsGetAPIRequest.go create mode 100644 model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsGetAPIResponse.go delete mode 100644 model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsGetResponse.go create mode 100644 model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIRequest.go create mode 100644 model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIResponse.go delete mode 100644 model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryEightGetResponse.go create mode 100644 model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIRequest.go create mode 100644 model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIResponse.go delete mode 100644 model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryOneGetResponse.go create mode 100644 model/usergrowth2/TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIRequest.go create mode 100644 model/usergrowth2/TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIResponse.go delete mode 100644 model/usergrowth2/TaobaoUsergrowthOfflineConvertionSyncInfoGetResponse.go create mode 100644 model/util/AlibabaAisAssetsTagAbortAPIRequest.go create mode 100644 model/util/AlibabaAisAssetsTagAbortAPIResponse.go delete mode 100644 model/util/AlibabaAisAssetsTagAbortResponse.go create mode 100644 model/util/AlibabaAisAssetsTagGenerateAPIRequest.go create mode 100644 model/util/AlibabaAisAssetsTagGenerateAPIResponse.go delete mode 100644 model/util/AlibabaAisAssetsTagGenerateResponse.go create mode 100644 model/util/AlibabaAisAssetsTagGetAPIRequest.go create mode 100644 model/util/AlibabaAisAssetsTagGetAPIResponse.go delete mode 100644 model/util/AlibabaAisAssetsTagGetResponse.go create mode 100644 model/util/AlibabaCuntaoInteractRequisitionGetAPIRequest.go create mode 100644 model/util/AlibabaCuntaoInteractRequisitionGetAPIResponse.go delete mode 100644 model/util/AlibabaCuntaoInteractRequisitionGetResponse.go create mode 100644 model/util/AlibabaCuntaoInteractRequisitionUpdateAPIRequest.go create mode 100644 model/util/AlibabaCuntaoInteractRequisitionUpdateAPIResponse.go delete mode 100644 model/util/AlibabaCuntaoInteractRequisitionUpdateResponse.go create mode 100644 model/util/AlibabaInteractSensorUiAPIRequest.go create mode 100644 model/util/AlibabaInteractSensorUiAPIResponse.go delete mode 100644 model/util/AlibabaInteractSensorUiResponse.go create mode 100644 model/util/AlibabaInteractSupplierAwardResourceGetCuntaoAPIRequest.go create mode 100644 model/util/AlibabaInteractSupplierAwardResourceGetCuntaoAPIResponse.go delete mode 100644 model/util/AlibabaInteractSupplierAwardResourceGetCuntaoResponse.go create mode 100644 model/util/AlibabaMosFalconPosCounterQueryAPIRequest.go create mode 100644 model/util/AlibabaMosFalconPosCounterQueryAPIResponse.go delete mode 100644 model/util/AlibabaMosFalconPosCounterQueryResponse.go create mode 100644 model/util/AlibabaMosFalconPosCounterQueryResultDo.go create mode 100644 model/util/AlibabaRetailDeviceTradeShipAPIRequest.go create mode 100644 model/util/AlibabaRetailDeviceTradeShipAPIResponse.go delete mode 100644 model/util/AlibabaRetailDeviceTradeShipResponse.go create mode 100644 model/util/AlibabaRetailShorturlGetAPIRequest.go create mode 100644 model/util/AlibabaRetailShorturlGetAPIResponse.go delete mode 100644 model/util/AlibabaRetailShorturlGetResponse.go create mode 100644 model/util/AlibabaTaobaoWtUserCrowdAPIRequest.go create mode 100644 model/util/AlibabaTaobaoWtUserCrowdAPIResponse.go delete mode 100644 model/util/AlibabaTaobaoWtUserCrowdResponse.go create mode 100644 model/util/AliexpressSocialCountryGetAPIRequest.go create mode 100644 model/util/AliexpressSocialCountryGetAPIResponse.go delete mode 100644 model/util/AliexpressSocialCountryGetResponse.go create mode 100644 model/util/AliexpressSocialCurrencyGetAPIRequest.go create mode 100644 model/util/AliexpressSocialCurrencyGetAPIResponse.go delete mode 100644 model/util/AliexpressSocialCurrencyGetResponse.go create mode 100644 model/util/AliexpressSocialLocaleGetAPIRequest.go create mode 100644 model/util/AliexpressSocialLocaleGetAPIResponse.go delete mode 100644 model/util/AliexpressSocialLocaleGetResponse.go create mode 100644 model/util/TaobaoAppipGetAPIRequest.go create mode 100644 model/util/TaobaoAppipGetAPIResponse.go delete mode 100644 model/util/TaobaoAppipGetResponse.go create mode 100644 model/util/TaobaoFilesGetAPIRequest.go create mode 100644 model/util/TaobaoFilesGetAPIResponse.go delete mode 100644 model/util/TaobaoFilesGetResponse.go create mode 100644 model/util/TaobaoHttpdnsGetAPIRequest.go create mode 100644 model/util/TaobaoHttpdnsGetAPIResponse.go delete mode 100644 model/util/TaobaoHttpdnsGetResponse.go create mode 100644 model/util/TaobaoKfcKeywordSearchAPIRequest.go create mode 100644 model/util/TaobaoKfcKeywordSearchAPIResponse.go delete mode 100644 model/util/TaobaoKfcKeywordSearchResponse.go create mode 100644 model/util/TaobaoOpenlinkSessionGetAPIRequest.go create mode 100644 model/util/TaobaoOpenlinkSessionGetAPIResponse.go delete mode 100644 model/util/TaobaoOpenlinkSessionGetResponse.go create mode 100644 model/util/TaobaoOpenuidGetAPIRequest.go create mode 100644 model/util/TaobaoOpenuidGetAPIResponse.go create mode 100644 model/util/TaobaoOpenuidGetBymixnickAPIRequest.go create mode 100644 model/util/TaobaoOpenuidGetBymixnickAPIResponse.go delete mode 100644 model/util/TaobaoOpenuidGetBymixnickResponse.go create mode 100644 model/util/TaobaoOpenuidGetBytradeAPIRequest.go create mode 100644 model/util/TaobaoOpenuidGetBytradeAPIResponse.go delete mode 100644 model/util/TaobaoOpenuidGetBytradeResponse.go delete mode 100644 model/util/TaobaoOpenuidGetResponse.go create mode 100644 model/util/TaobaoQimenEventProduceAPIRequest.go create mode 100644 model/util/TaobaoQimenEventProduceAPIResponse.go delete mode 100644 model/util/TaobaoQimenEventProduceResponse.go create mode 100644 model/util/TaobaoQimenEventsProduceAPIRequest.go create mode 100644 model/util/TaobaoQimenEventsProduceAPIResponse.go delete mode 100644 model/util/TaobaoQimenEventsProduceResponse.go create mode 100644 model/util/TaobaoQimenTradeUserAddAPIRequest.go create mode 100644 model/util/TaobaoQimenTradeUserAddAPIResponse.go delete mode 100644 model/util/TaobaoQimenTradeUserAddResponse.go create mode 100644 model/util/TaobaoQimenTradeUserDeleteAPIRequest.go create mode 100644 model/util/TaobaoQimenTradeUserDeleteAPIResponse.go delete mode 100644 model/util/TaobaoQimenTradeUserDeleteResponse.go create mode 100644 model/util/TaobaoQimenTradeUsersGetAPIRequest.go create mode 100644 model/util/TaobaoQimenTradeUsersGetAPIResponse.go delete mode 100644 model/util/TaobaoQimenTradeUsersGetResponse.go create mode 100644 model/util/TaobaoRdcAligeniusRefundsCheckAPIRequest.go create mode 100644 model/util/TaobaoRdcAligeniusRefundsCheckAPIResponse.go delete mode 100644 model/util/TaobaoRdcAligeniusRefundsCheckResponse.go create mode 100644 model/util/TaobaoStreetestSessionGetAPIRequest.go create mode 100644 model/util/TaobaoStreetestSessionGetAPIResponse.go delete mode 100644 model/util/TaobaoStreetestSessionGetResponse.go create mode 100644 model/util/TaobaoTimeGetAPIRequest.go create mode 100644 model/util/TaobaoTimeGetAPIResponse.go delete mode 100644 model/util/TaobaoTimeGetResponse.go create mode 100644 model/util/TaobaoTmcAuthGetAPIRequest.go create mode 100644 model/util/TaobaoTmcAuthGetAPIResponse.go delete mode 100644 model/util/TaobaoTmcAuthGetResponse.go create mode 100644 model/util/TaobaoTopAuthTokenCreateAPIRequest.go create mode 100644 model/util/TaobaoTopAuthTokenCreateAPIResponse.go delete mode 100644 model/util/TaobaoTopAuthTokenCreateResponse.go create mode 100644 model/util/TaobaoTopAuthTokenRefreshAPIRequest.go create mode 100644 model/util/TaobaoTopAuthTokenRefreshAPIResponse.go delete mode 100644 model/util/TaobaoTopAuthTokenRefreshResponse.go create mode 100644 model/util/TaobaoTopIpoutGetAPIRequest.go create mode 100644 model/util/TaobaoTopIpoutGetAPIResponse.go delete mode 100644 model/util/TaobaoTopIpoutGetResponse.go create mode 100644 model/util/TaobaoTopOnceTokenGetAPIRequest.go create mode 100644 model/util/TaobaoTopOnceTokenGetAPIResponse.go delete mode 100644 model/util/TaobaoTopOnceTokenGetResponse.go create mode 100644 model/util/TaobaoTopOpenidConvertAPIRequest.go create mode 100644 model/util/TaobaoTopOpenidConvertAPIResponse.go delete mode 100644 model/util/TaobaoTopOpenidConvertResponse.go create mode 100644 model/util/TaobaoTopSdkFeedbackUploadAPIRequest.go create mode 100644 model/util/TaobaoTopSdkFeedbackUploadAPIResponse.go delete mode 100644 model/util/TaobaoTopSdkFeedbackUploadResponse.go create mode 100644 model/util/TaobaoTopSecretGetAPIRequest.go create mode 100644 model/util/TaobaoTopSecretGetAPIResponse.go delete mode 100644 model/util/TaobaoTopSecretGetResponse.go create mode 100644 model/util/TaobaoTopSecretRegisterAPIRequest.go create mode 100644 model/util/TaobaoTopSecretRegisterAPIResponse.go delete mode 100644 model/util/TaobaoTopSecretRegisterResponse.go create mode 100644 model/util/TaobaoWirelessContentCheckAPIRequest.go create mode 100644 model/util/TaobaoWirelessContentCheckAPIResponse.go delete mode 100644 model/util/TaobaoWirelessContentCheckResponse.go create mode 100644 model/util/TaobaoWirelessPictureCheckAPIRequest.go create mode 100644 model/util/TaobaoWirelessPictureCheckAPIResponse.go delete mode 100644 model/util/TaobaoWirelessPictureCheckResponse.go create mode 100644 model/util/TaobaoWirelessVideoCheckAPIRequest.go create mode 100644 model/util/TaobaoWirelessVideoCheckAPIResponse.go delete mode 100644 model/util/TaobaoWirelessVideoCheckResponse.go create mode 100644 model/util/TmallMarketingFaceSkindetectAPIRequest.go create mode 100644 model/util/TmallMarketingFaceSkindetectAPIResponse.go delete mode 100644 model/util/TmallMarketingFaceSkindetectResponse.go create mode 100644 model/vaccin/AlibabaAlihealthMsAreaDistrictListAPIRequest.go create mode 100644 model/vaccin/AlibabaAlihealthMsAreaDistrictListAPIResponse.go delete mode 100644 model/vaccin/AlibabaAlihealthMsAreaDistrictListResponse.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeAnnouncementPublishAPIResponse.go delete mode 100644 model/vaccin/AlibabaHealthVaccinNoticeAnnouncementPublishResponse.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeMissRemindAPIRequest.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeMissRemindAPIResponse.go delete mode 100644 model/vaccin/AlibabaHealthVaccinNoticeMissRemindResponse.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeOrderCancelAPIRequest.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeOrderCancelAPIResponse.go delete mode 100644 model/vaccin/AlibabaHealthVaccinNoticeOrderCancelResponse.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeOrderCompleteAPIRequest.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeOrderCompleteAPIResponse.go delete mode 100644 model/vaccin/AlibabaHealthVaccinNoticeOrderCompleteResponse.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeOrderCreateAPIRequest.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeOrderCreateAPIResponse.go delete mode 100644 model/vaccin/AlibabaHealthVaccinNoticeOrderCreateResponse.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeOrderSignAPIRequest.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeOrderSignAPIResponse.go delete mode 100644 model/vaccin/AlibabaHealthVaccinNoticeOrderSignResponse.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeReplantRemindAPIRequest.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeReplantRemindAPIResponse.go delete mode 100644 model/vaccin/AlibabaHealthVaccinNoticeReplantRemindResponse.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeSendAPIRequest.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeSendAPIResponse.go delete mode 100644 model/vaccin/AlibabaHealthVaccinNoticeSendResponse.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeTimebucketRemindAPIResponse.go delete mode 100644 model/vaccin/AlibabaHealthVaccinNoticeTimebucketRemindResponse.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeUserBindAPIRequest.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeUserBindAPIResponse.go delete mode 100644 model/vaccin/AlibabaHealthVaccinNoticeUserBindResponse.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeUserCreateAPIRequest.go create mode 100644 model/vaccin/AlibabaHealthVaccinNoticeUserCreateAPIResponse.go delete mode 100644 model/vaccin/AlibabaHealthVaccinNoticeUserCreateResponse.go create mode 100644 model/vaccin/AlibabaHealthVaccinPovUpdateAPIRequest.go create mode 100644 model/vaccin/AlibabaHealthVaccinPovUpdateAPIResponse.go delete mode 100644 model/vaccin/AlibabaHealthVaccinPovUpdateResponse.go create mode 100644 model/vaccin/AlibabaHealthVaccinVaccinateCompleteAPIRequest.go create mode 100644 model/vaccin/AlibabaHealthVaccinVaccinateCompleteAPIResponse.go delete mode 100644 model/vaccin/AlibabaHealthVaccinVaccinateCompleteResponse.go create mode 100644 model/vaccin/AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest.go create mode 100644 model/vaccin/AlibabaTaobaoMicdetailAlihealthQuerystoresAPIResponse.go delete mode 100644 model/vaccin/AlibabaTaobaoMicdetailAlihealthQuerystoresResponse.go create mode 100644 model/viapi/AliyunViapiFacebodyComparefaceAPIRequest.go create mode 100644 model/viapi/AliyunViapiFacebodyComparefaceAPIResponse.go delete mode 100644 model/viapi/AliyunViapiFacebodyComparefaceResponse.go create mode 100644 model/viapi/AliyunViapiFacebodyDetectfaceAPIRequest.go create mode 100644 model/viapi/AliyunViapiFacebodyDetectfaceAPIResponse.go delete mode 100644 model/viapi/AliyunViapiFacebodyDetectfaceResponse.go create mode 100644 model/viapi/AliyunViapiFacebodyRecognizefaceAPIRequest.go create mode 100644 model/viapi/AliyunViapiFacebodyRecognizefaceAPIResponse.go delete mode 100644 model/viapi/AliyunViapiFacebodyRecognizefaceResponse.go create mode 100644 model/viapi/AliyunViapiGoodstechClassifygoodsAPIRequest.go create mode 100644 model/viapi/AliyunViapiGoodstechClassifygoodsAPIResponse.go delete mode 100644 model/viapi/AliyunViapiGoodstechClassifygoodsResponse.go create mode 100644 model/viapi/AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest.go create mode 100644 model/viapi/AliyunViapiGoodstechRecognizeFurnitureAttributeAPIResponse.go delete mode 100644 model/viapi/AliyunViapiGoodstechRecognizeFurnitureAttributeResponse.go create mode 100644 model/viapi/AliyunViapiGoodstechRecognizeFurniturespuAPIRequest.go create mode 100644 model/viapi/AliyunViapiGoodstechRecognizeFurniturespuAPIResponse.go delete mode 100644 model/viapi/AliyunViapiGoodstechRecognizeFurniturespuResponse.go create mode 100644 model/viapi/AliyunViapiImageauditScanimageAPIRequest.go create mode 100644 model/viapi/AliyunViapiImageauditScanimageAPIResponse.go delete mode 100644 model/viapi/AliyunViapiImageauditScanimageResponse.go create mode 100644 model/viapi/AliyunViapiImageauditScantextAPIRequest.go create mode 100644 model/viapi/AliyunViapiImageauditScantextAPIResponse.go create mode 100644 model/viapi/AliyunViapiImageauditScantextDetail.go delete mode 100644 model/viapi/AliyunViapiImageauditScantextResponse.go create mode 100644 model/viapi/AliyunViapiImagesegSegmentCommonimageAPIRequest.go create mode 100644 model/viapi/AliyunViapiImagesegSegmentCommonimageAPIResponse.go delete mode 100644 model/viapi/AliyunViapiImagesegSegmentCommonimageResponse.go create mode 100644 model/viapi/AliyunViapiImagesegSegmentcomodityAPIRequest.go create mode 100644 model/viapi/AliyunViapiImagesegSegmentcomodityAPIResponse.go delete mode 100644 model/viapi/AliyunViapiImagesegSegmentcomodityResponse.go create mode 100644 model/viapi/AliyunViapiImagesegSegmenthdbodyAPIRequest.go create mode 100644 model/viapi/AliyunViapiImagesegSegmenthdbodyAPIResponse.go delete mode 100644 model/viapi/AliyunViapiImagesegSegmenthdbodyResponse.go create mode 100644 model/viapi/AliyunViapiImagesegSegmentheadAPIRequest.go create mode 100644 model/viapi/AliyunViapiImagesegSegmentheadAPIResponse.go delete mode 100644 model/viapi/AliyunViapiImagesegSegmentheadResponse.go create mode 100644 model/viapi/AliyunViapiObjectdetDetectobjectAPIRequest.go create mode 100644 model/viapi/AliyunViapiObjectdetDetectobjectAPIResponse.go delete mode 100644 model/viapi/AliyunViapiObjectdetDetectobjectResponse.go create mode 100644 model/viapi/AliyunViapiOcrCharacterAPIRequest.go create mode 100644 model/viapi/AliyunViapiOcrCharacterAPIResponse.go delete mode 100644 model/viapi/AliyunViapiOcrCharacterResponse.go create mode 100644 model/vms/CainiaoVmsServiceVehicleinfoUploadAPIRequest.go create mode 100644 model/vms/CainiaoVmsServiceVehicleinfoUploadAPIResponse.go delete mode 100644 model/vms/CainiaoVmsServiceVehicleinfoUploadResponse.go create mode 100644 model/wangwang/TaobaoQianniuKefuevalGetAPIRequest.go create mode 100644 model/wangwang/TaobaoQianniuKefuevalGetAPIResponse.go delete mode 100644 model/wangwang/TaobaoQianniuKefuevalGetResponse.go create mode 100644 model/wangwang/TaobaoWangwangAbstractAddwordAPIRequest.go create mode 100644 model/wangwang/TaobaoWangwangAbstractAddwordAPIResponse.go delete mode 100644 model/wangwang/TaobaoWangwangAbstractAddwordResponse.go create mode 100644 model/wangwang/TaobaoWangwangAbstractDeletewordAPIRequest.go create mode 100644 model/wangwang/TaobaoWangwangAbstractDeletewordAPIResponse.go delete mode 100644 model/wangwang/TaobaoWangwangAbstractDeletewordResponse.go create mode 100644 model/wangwang/TaobaoWangwangAbstractGetwordlistAPIRequest.go create mode 100644 model/wangwang/TaobaoWangwangAbstractGetwordlistAPIResponse.go delete mode 100644 model/wangwang/TaobaoWangwangAbstractGetwordlistResponse.go create mode 100644 model/wangwang/TaobaoWangwangAbstractInitializeAPIRequest.go create mode 100644 model/wangwang/TaobaoWangwangAbstractInitializeAPIResponse.go delete mode 100644 model/wangwang/TaobaoWangwangAbstractInitializeResponse.go create mode 100644 model/wangwang/TaobaoWangwangAbstractLogqueryAPIRequest.go create mode 100644 model/wangwang/TaobaoWangwangAbstractLogqueryAPIResponse.go delete mode 100644 model/wangwang/TaobaoWangwangAbstractLogqueryResponse.go create mode 100644 model/wangwang/TaobaoWangwangEserviceChatrelationGetAPIRequest.go create mode 100644 model/wangwang/TaobaoWangwangEserviceChatrelationGetAPIResponse.go delete mode 100644 model/wangwang/TaobaoWangwangEserviceChatrelationGetResponse.go create mode 100644 model/waybill/CainiaoCloudprintClientinfoPutAPIRequest.go create mode 100644 model/waybill/CainiaoCloudprintClientinfoPutAPIResponse.go delete mode 100644 model/waybill/CainiaoCloudprintClientinfoPutResponse.go create mode 100644 model/waybill/CainiaoCloudprintCmdprintRenderAPIRequest.go create mode 100644 model/waybill/CainiaoCloudprintCmdprintRenderAPIResponse.go delete mode 100644 model/waybill/CainiaoCloudprintCmdprintRenderResponse.go create mode 100644 model/waybill/CainiaoCloudprintCustomareaUpdateAPIRequest.go create mode 100644 model/waybill/CainiaoCloudprintCustomareaUpdateAPIResponse.go delete mode 100644 model/waybill/CainiaoCloudprintCustomareaUpdateResponse.go create mode 100644 model/waybill/CainiaoCloudprintCustomaresGetAPIRequest.go create mode 100644 model/waybill/CainiaoCloudprintCustomaresGetAPIResponse.go delete mode 100644 model/waybill/CainiaoCloudprintCustomaresGetResponse.go create mode 100644 model/waybill/CainiaoCloudprintIsvResourcesGetAPIRequest.go create mode 100644 model/waybill/CainiaoCloudprintIsvResourcesGetAPIResponse.go delete mode 100644 model/waybill/CainiaoCloudprintIsvResourcesGetResponse.go create mode 100644 model/waybill/CainiaoCloudprintIsvtemplatesGetAPIRequest.go create mode 100644 model/waybill/CainiaoCloudprintIsvtemplatesGetAPIResponse.go delete mode 100644 model/waybill/CainiaoCloudprintIsvtemplatesGetResponse.go create mode 100644 model/waybill/CainiaoCloudprintMystdtemplatesGetAPIRequest.go create mode 100644 model/waybill/CainiaoCloudprintMystdtemplatesGetAPIResponse.go delete mode 100644 model/waybill/CainiaoCloudprintMystdtemplatesGetResponse.go create mode 100644 model/waybill/CainiaoCloudprintSingleCustomareaGetAPIRequest.go create mode 100644 model/waybill/CainiaoCloudprintSingleCustomareaGetAPIResponse.go delete mode 100644 model/waybill/CainiaoCloudprintSingleCustomareaGetResponse.go create mode 100644 model/waybill/CainiaoCloudprintStdtemplatesGetAPIRequest.go create mode 100644 model/waybill/CainiaoCloudprintStdtemplatesGetAPIResponse.go delete mode 100644 model/waybill/CainiaoCloudprintStdtemplatesGetResponse.go create mode 100644 model/waybill/CainiaoCloudprintTemplatesMigrateAPIRequest.go create mode 100644 model/waybill/CainiaoCloudprintTemplatesMigrateAPIResponse.go delete mode 100644 model/waybill/CainiaoCloudprintTemplatesMigrateResponse.go create mode 100644 model/waybill/CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest.go create mode 100644 model/waybill/CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIResponse.go delete mode 100644 model/waybill/CainiaoSmartdeliveryStrategyWarehouseIDeleteResponse.go create mode 100644 model/waybill/CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest.go create mode 100644 model/waybill/CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIResponse.go delete mode 100644 model/waybill/CainiaoSmartdeliveryStrategyWarehouseIUpdateResponse.go create mode 100644 model/waybill/CainiaoWaybillIiCancelAPIRequest.go create mode 100644 model/waybill/CainiaoWaybillIiCancelAPIResponse.go delete mode 100644 model/waybill/CainiaoWaybillIiCancelResponse.go create mode 100644 model/waybill/CainiaoWaybillIiGetAPIRequest.go create mode 100644 model/waybill/CainiaoWaybillIiGetAPIResponse.go delete mode 100644 model/waybill/CainiaoWaybillIiGetResponse.go create mode 100644 model/waybill/CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest.go create mode 100644 model/waybill/CainiaoWaybillIiLogisticsdetailUrlGetAPIResponse.go delete mode 100644 model/waybill/CainiaoWaybillIiLogisticsdetailUrlGetResponse.go create mode 100644 model/waybill/CainiaoWaybillIiProductAPIRequest.go create mode 100644 model/waybill/CainiaoWaybillIiProductAPIResponse.go delete mode 100644 model/waybill/CainiaoWaybillIiProductResponse.go create mode 100644 model/waybill/CainiaoWaybillIiQueryByTradecodeAPIRequest.go create mode 100644 model/waybill/CainiaoWaybillIiQueryByTradecodeAPIResponse.go delete mode 100644 model/waybill/CainiaoWaybillIiQueryByTradecodeResponse.go create mode 100644 model/waybill/CainiaoWaybillIiQueryByWaybillcodeAPIRequest.go create mode 100644 model/waybill/CainiaoWaybillIiQueryByWaybillcodeAPIResponse.go delete mode 100644 model/waybill/CainiaoWaybillIiQueryByWaybillcodeResponse.go create mode 100644 model/waybill/CainiaoWaybillIiSearchAPIRequest.go create mode 100644 model/waybill/CainiaoWaybillIiSearchAPIResponse.go delete mode 100644 model/waybill/CainiaoWaybillIiSearchResponse.go create mode 100644 model/waybill/CainiaoWaybillIiUpdateAPIRequest.go create mode 100644 model/waybill/CainiaoWaybillIiUpdateAPIResponse.go delete mode 100644 model/waybill/CainiaoWaybillIiUpdateResponse.go create mode 100644 model/waybill/CainiaoWaybillPrivacySellerOrderGetAPIRequest.go create mode 100644 model/waybill/CainiaoWaybillPrivacySellerOrderGetAPIResponse.go delete mode 100644 model/waybill/CainiaoWaybillPrivacySellerOrderGetResponse.go create mode 100644 model/waybill/CainiaoWaybillPrivacySubscriptionGetAPIRequest.go create mode 100644 model/waybill/CainiaoWaybillPrivacySubscriptionGetAPIResponse.go delete mode 100644 model/waybill/CainiaoWaybillPrivacySubscriptionGetResponse.go create mode 100644 model/waybill/TaobaoWlbWaybillICancelAPIRequest.go create mode 100644 model/waybill/TaobaoWlbWaybillICancelAPIResponse.go delete mode 100644 model/waybill/TaobaoWlbWaybillICancelResponse.go create mode 100644 model/waybill/TaobaoWlbWaybillIFullupdateAPIRequest.go create mode 100644 model/waybill/TaobaoWlbWaybillIFullupdateAPIResponse.go delete mode 100644 model/waybill/TaobaoWlbWaybillIFullupdateResponse.go create mode 100644 model/waybill/TaobaoWlbWaybillIGetAPIRequest.go create mode 100644 model/waybill/TaobaoWlbWaybillIGetAPIResponse.go delete mode 100644 model/waybill/TaobaoWlbWaybillIGetResponse.go create mode 100644 model/waybill/TaobaoWlbWaybillIPrintAPIRequest.go create mode 100644 model/waybill/TaobaoWlbWaybillIPrintAPIResponse.go delete mode 100644 model/waybill/TaobaoWlbWaybillIPrintResponse.go create mode 100644 model/waybill/TaobaoWlbWaybillIProductAPIRequest.go create mode 100644 model/waybill/TaobaoWlbWaybillIProductAPIResponse.go delete mode 100644 model/waybill/TaobaoWlbWaybillIProductResponse.go create mode 100644 model/waybill/TaobaoWlbWaybillIQuerydetailAPIRequest.go create mode 100644 model/waybill/TaobaoWlbWaybillIQuerydetailAPIResponse.go delete mode 100644 model/waybill/TaobaoWlbWaybillIQuerydetailResponse.go create mode 100644 model/waybill/TaobaoWlbWaybillISearchAPIRequest.go create mode 100644 model/waybill/TaobaoWlbWaybillISearchAPIResponse.go delete mode 100644 model/waybill/TaobaoWlbWaybillISearchResponse.go create mode 100644 model/wdk/AlibabaIfpFulfillWarehouseTokenQueryAPIRequest.go create mode 100644 model/wdk/AlibabaIfpFulfillWarehouseTokenQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaIfpFulfillWarehouseTokenQueryResponse.go create mode 100644 model/wdk/AlibabaNewretailPurchasePriceDeleteAPIRequest.go create mode 100644 model/wdk/AlibabaNewretailPurchasePriceDeleteAPIResponse.go delete mode 100644 model/wdk/AlibabaNewretailPurchasePriceDeleteResponse.go create mode 100644 model/wdk/AlibabaNewretailPurchasePriceSaveAPIRequest.go create mode 100644 model/wdk/AlibabaNewretailPurchasePriceSaveAPIResponse.go delete mode 100644 model/wdk/AlibabaNewretailPurchasePriceSaveResponse.go create mode 100644 model/wdk/AlibabaPosFundCashierShiftSummaryAPIRequest.go create mode 100644 model/wdk/AlibabaPosFundCashierShiftSummaryAPIResponse.go delete mode 100644 model/wdk/AlibabaPosFundCashierShiftSummaryResponse.go create mode 100644 model/wdk/AlibabaPricePromotionActivityDeleteAPIRequest.go create mode 100644 model/wdk/AlibabaPricePromotionActivityDeleteAPIResponse.go delete mode 100644 model/wdk/AlibabaPricePromotionActivityDeleteResponse.go create mode 100644 model/wdk/AlibabaPricePromotionActivityQueryAPIRequest.go create mode 100644 model/wdk/AlibabaPricePromotionActivityQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaPricePromotionActivityQueryResponse.go create mode 100644 model/wdk/AlibabaPricePromotionCreateAPIRequest.go create mode 100644 model/wdk/AlibabaPricePromotionCreateAPIResponse.go delete mode 100644 model/wdk/AlibabaPricePromotionCreateResponse.go create mode 100644 model/wdk/AlibabaPricePromotionItemAddAPIRequest.go create mode 100644 model/wdk/AlibabaPricePromotionItemAddAPIResponse.go delete mode 100644 model/wdk/AlibabaPricePromotionItemAddResponse.go create mode 100644 model/wdk/AlibabaPricePromotionItemDeleteAPIRequest.go create mode 100644 model/wdk/AlibabaPricePromotionItemDeleteAPIResponse.go delete mode 100644 model/wdk/AlibabaPricePromotionItemDeleteResponse.go create mode 100644 model/wdk/AlibabaRetailMarketingBuygiftActivityCreateAPIRequest.go create mode 100644 model/wdk/AlibabaRetailMarketingBuygiftActivityCreateAPIResponse.go delete mode 100644 model/wdk/AlibabaRetailMarketingBuygiftActivityCreateResponse.go create mode 100644 model/wdk/AlibabaRetailMarketingBuygiftActivityDeleteAPIRequest.go create mode 100644 model/wdk/AlibabaRetailMarketingBuygiftActivityDeleteAPIResponse.go delete mode 100644 model/wdk/AlibabaRetailMarketingBuygiftActivityDeleteResponse.go create mode 100644 model/wdk/AlibabaRetailMarketingBuygiftActivitySkuAddAPIRequest.go create mode 100644 model/wdk/AlibabaRetailMarketingBuygiftActivitySkuAddAPIResponse.go delete mode 100644 model/wdk/AlibabaRetailMarketingBuygiftActivitySkuAddResponse.go create mode 100644 model/wdk/AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIRequest.go create mode 100644 model/wdk/AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIResponse.go delete mode 100644 model/wdk/AlibabaRetailMarketingBuygiftActivitySkuDeleteResponse.go create mode 100644 model/wdk/AlibabaRetailMarketingBuygiftActivityUpdateAPIRequest.go create mode 100644 model/wdk/AlibabaRetailMarketingBuygiftActivityUpdateAPIResponse.go delete mode 100644 model/wdk/AlibabaRetailMarketingBuygiftActivityUpdateResponse.go create mode 100644 model/wdk/AlibabaRetailMarketingItemdiscountActivityCreateAPIRequest.go create mode 100644 model/wdk/AlibabaRetailMarketingItemdiscountActivityCreateAPIResponse.go delete mode 100644 model/wdk/AlibabaRetailMarketingItemdiscountActivityCreateResponse.go create mode 100644 model/wdk/AlibabaRetailMarketingItemdiscountActivityDeleteAPIRequest.go create mode 100644 model/wdk/AlibabaRetailMarketingItemdiscountActivityDeleteAPIResponse.go delete mode 100644 model/wdk/AlibabaRetailMarketingItemdiscountActivityDeleteResponse.go create mode 100644 model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuAddAPIRequest.go create mode 100644 model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuAddAPIResponse.go delete mode 100644 model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuAddResponse.go create mode 100644 model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIRequest.go create mode 100644 model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIResponse.go delete mode 100644 model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuDeleteResponse.go create mode 100644 model/wdk/AlibabaRetailMarketingItemdiscountActivityUpdateAPIRequest.go create mode 100644 model/wdk/AlibabaRetailMarketingItemdiscountActivityUpdateAPIResponse.go delete mode 100644 model/wdk/AlibabaRetailMarketingItemdiscountActivityUpdateResponse.go create mode 100644 model/wdk/AlibabaRetailMarketingItempoolActivityCreateAPIRequest.go create mode 100644 model/wdk/AlibabaRetailMarketingItempoolActivityCreateAPIResponse.go delete mode 100644 model/wdk/AlibabaRetailMarketingItempoolActivityCreateResponse.go create mode 100644 model/wdk/AlibabaRetailMarketingItempoolActivityDeleteAPIRequest.go create mode 100644 model/wdk/AlibabaRetailMarketingItempoolActivityDeleteAPIResponse.go delete mode 100644 model/wdk/AlibabaRetailMarketingItempoolActivityDeleteResponse.go create mode 100644 model/wdk/AlibabaRetailMarketingItempoolActivitySkuAddAPIRequest.go create mode 100644 model/wdk/AlibabaRetailMarketingItempoolActivitySkuAddAPIResponse.go delete mode 100644 model/wdk/AlibabaRetailMarketingItempoolActivitySkuAddResponse.go create mode 100644 model/wdk/AlibabaRetailMarketingItempoolActivitySkuDeleteAPIRequest.go create mode 100644 model/wdk/AlibabaRetailMarketingItempoolActivitySkuDeleteAPIResponse.go delete mode 100644 model/wdk/AlibabaRetailMarketingItempoolActivitySkuDeleteResponse.go create mode 100644 model/wdk/AlibabaRetailMarketingItempoolActivityUpdateAPIRequest.go create mode 100644 model/wdk/AlibabaRetailMarketingItempoolActivityUpdateAPIResponse.go delete mode 100644 model/wdk/AlibabaRetailMarketingItempoolActivityUpdateResponse.go create mode 100644 model/wdk/AlibabaTclsAelophyBillVerificateCallbackAPIRequest.go create mode 100644 model/wdk/AlibabaTclsAelophyBillVerificateCallbackAPIResponse.go delete mode 100644 model/wdk/AlibabaTclsAelophyBillVerificateCallbackResponse.go create mode 100644 model/wdk/AlibabaTclsAelophyMerchantChannelOrderCancelAPIRequest.go create mode 100644 model/wdk/AlibabaTclsAelophyMerchantChannelOrderCancelAPIResponse.go delete mode 100644 model/wdk/AlibabaTclsAelophyMerchantChannelOrderCancelResponse.go create mode 100644 model/wdk/AlibabaTclsAelophyMerchantChannelOrderCreateAPIRequest.go create mode 100644 model/wdk/AlibabaTclsAelophyMerchantChannelOrderCreateAPIResponse.go delete mode 100644 model/wdk/AlibabaTclsAelophyMerchantChannelOrderCreateResponse.go create mode 100644 model/wdk/AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIRequest.go create mode 100644 model/wdk/AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIResponse.go delete mode 100644 model/wdk/AlibabaTclsAelophyMerchantChannelOrderUpdatestatusResponse.go create mode 100644 model/wdk/AlibabaTclsAelophyMerchantChannelRefundApplyAPIRequest.go create mode 100644 model/wdk/AlibabaTclsAelophyMerchantChannelRefundApplyAPIResponse.go delete mode 100644 model/wdk/AlibabaTclsAelophyMerchantChannelRefundApplyResponse.go create mode 100644 model/wdk/AlibabaTclsAelophyMerchantChannelRefundCancelAPIRequest.go create mode 100644 model/wdk/AlibabaTclsAelophyMerchantChannelRefundCancelAPIResponse.go delete mode 100644 model/wdk/AlibabaTclsAelophyMerchantChannelRefundCancelResponse.go create mode 100644 model/wdk/AlibabaTclsAelophyMerchantChannelRefundCompleteAPIRequest.go create mode 100644 model/wdk/AlibabaTclsAelophyMerchantChannelRefundCompleteAPIResponse.go delete mode 100644 model/wdk/AlibabaTclsAelophyMerchantChannelRefundCompleteResponse.go create mode 100644 model/wdk/AlibabaTclsAelophyMerchantIdMixAPIRequest.go create mode 100644 model/wdk/AlibabaTclsAelophyMerchantIdMixAPIResponse.go delete mode 100644 model/wdk/AlibabaTclsAelophyMerchantIdMixResponse.go create mode 100644 model/wdk/AlibabaTclsAelophyMerchantOrderUploadAPIRequest.go create mode 100644 model/wdk/AlibabaTclsAelophyMerchantOrderUploadAPIResponse.go delete mode 100644 model/wdk/AlibabaTclsAelophyMerchantOrderUploadResponse.go create mode 100644 model/wdk/AlibabaTclsAelophyMerchantUserUploadAPIRequest.go create mode 100644 model/wdk/AlibabaTclsAelophyMerchantUserUploadAPIResponse.go delete mode 100644 model/wdk/AlibabaTclsAelophyMerchantUserUploadResponse.go create mode 100644 model/wdk/AlibabaTclsAelophyRefundAgreeAPIRequest.go create mode 100644 model/wdk/AlibabaTclsAelophyRefundAgreeAPIResponse.go delete mode 100644 model/wdk/AlibabaTclsAelophyRefundAgreeResponse.go create mode 100644 model/wdk/AlibabaTclsAelophyRefundCsapplyAPIRequest.go create mode 100644 model/wdk/AlibabaTclsAelophyRefundCsapplyAPIResponse.go delete mode 100644 model/wdk/AlibabaTclsAelophyRefundCsapplyResponse.go create mode 100644 model/wdk/AlibabaTclsAelophyRefundCsapplyrenderAPIRequest.go create mode 100644 model/wdk/AlibabaTclsAelophyRefundCsapplyrenderAPIResponse.go delete mode 100644 model/wdk/AlibabaTclsAelophyRefundCsapplyrenderResponse.go create mode 100644 model/wdk/AlibabaTclsAelophyRefundDisagreeAPIRequest.go create mode 100644 model/wdk/AlibabaTclsAelophyRefundDisagreeAPIResponse.go delete mode 100644 model/wdk/AlibabaTclsAelophyRefundDisagreeResponse.go create mode 100644 model/wdk/AlibabaTclsAelophyRefundFetchgoodsAPIRequest.go create mode 100644 model/wdk/AlibabaTclsAelophyRefundFetchgoodsAPIResponse.go delete mode 100644 model/wdk/AlibabaTclsAelophyRefundFetchgoodsResponse.go create mode 100644 model/wdk/AlibabaTxcsBrandmarketingCouponQrcodeGetAPIRequest.go create mode 100644 model/wdk/AlibabaTxcsBrandmarketingCouponQrcodeGetAPIResponse.go delete mode 100644 model/wdk/AlibabaTxcsBrandmarketingCouponQrcodeGetResponse.go create mode 100644 model/wdk/AlibabaTxcsBrandmarketingCouponStatisticsGetAPIRequest.go create mode 100644 model/wdk/AlibabaTxcsBrandmarketingCouponStatisticsGetAPIResponse.go delete mode 100644 model/wdk/AlibabaTxcsBrandmarketingCouponStatisticsGetResponse.go create mode 100644 model/wdk/AlibabaWdkBmCouponQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkBmCouponQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkBmCouponQueryResponse.go create mode 100644 model/wdk/AlibabaWdkBmPaiyangStatDataQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkBmPaiyangStatDataQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkBmPaiyangStatDataQueryResponse.go create mode 100644 model/wdk/AlibabaWdkBmPaiyangStockQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkBmPaiyangStockQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkBmPaiyangStockQueryResponse.go create mode 100644 model/wdk/AlibabaWdkBmPaiyangSupplyPublishAPIRequest.go create mode 100644 model/wdk/AlibabaWdkBmPaiyangSupplyPublishAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkBmPaiyangSupplyPublishResponse.go create mode 100644 model/wdk/AlibabaWdkBmStockPublishAPIRequest.go create mode 100644 model/wdk/AlibabaWdkBmStockPublishAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkBmStockPublishResponse.go create mode 100644 model/wdk/AlibabaWdkBmTradeActivityQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkBmTradeActivityQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkBmTradeActivityQueryResponse.go create mode 100644 model/wdk/AlibabaWdkChannelCommentCreateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkChannelCommentCreateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkChannelCommentCreateResponse.go create mode 100644 model/wdk/AlibabaWdkChannelOrderCreateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkChannelOrderCreateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkChannelOrderCreateResponse.go create mode 100644 model/wdk/AlibabaWdkChannelOrderRefundConfirmAPIRequest.go create mode 100644 model/wdk/AlibabaWdkChannelOrderRefundConfirmAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkChannelOrderRefundConfirmResponse.go create mode 100644 model/wdk/AlibabaWdkChannelOrderStatusUpdateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkChannelOrderStatusUpdateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkChannelOrderStatusUpdateResponse.go create mode 100644 model/wdk/AlibabaWdkChannelOrderUsercancelAPIRequest.go create mode 100644 model/wdk/AlibabaWdkChannelOrderUsercancelAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkChannelOrderUsercancelResponse.go create mode 100644 model/wdk/AlibabaWdkChannelOrderUserrefundAPIRequest.go create mode 100644 model/wdk/AlibabaWdkChannelOrderUserrefundAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkChannelOrderUserrefundResponse.go create mode 100644 model/wdk/AlibabaWdkChannelUserSyncAPIRequest.go create mode 100644 model/wdk/AlibabaWdkChannelUserSyncAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkChannelUserSyncResponse.go create mode 100644 model/wdk/AlibabaWdkCouponContractCreateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkCouponContractCreateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkCouponContractCreateResponse.go create mode 100644 model/wdk/AlibabaWdkCouponTemplateQueryumpactidAPIRequest.go create mode 100644 model/wdk/AlibabaWdkCouponTemplateQueryumpactidAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkCouponTemplateQueryumpactidResponse.go create mode 100644 model/wdk/AlibabaWdkElemeBillDetailGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkElemeBillDetailGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkElemeBillDetailGetResponse.go create mode 100644 model/wdk/AlibabaWdkElemeBillGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkElemeBillGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkElemeBillGetResponse.go create mode 100644 model/wdk/AlibabaWdkFinanceOrderBackflowAPIRequest.go create mode 100644 model/wdk/AlibabaWdkFinanceOrderBackflowAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkFinanceOrderBackflowResponse.go create mode 100644 model/wdk/AlibabaWdkFulfillBatchOnTaskStatusChangedAPIRequest.go create mode 100644 model/wdk/AlibabaWdkFulfillBatchOnTaskStatusChangedAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkFulfillBatchOnTaskStatusChangedResponse.go create mode 100644 model/wdk/AlibabaWdkFulfillBatchQueryByBatchidsAPIRequest.go create mode 100644 model/wdk/AlibabaWdkFulfillBatchQueryByBatchidsAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkFulfillBatchQueryByBatchidsResponse.go create mode 100644 model/wdk/AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIRequest.go create mode 100644 model/wdk/AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedResponse.go create mode 100644 model/wdk/AlibabaWdkFulfillBoxPostBackBoxAPIRequest.go create mode 100644 model/wdk/AlibabaWdkFulfillBoxPostBackBoxAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkFulfillBoxPostBackBoxResponse.go create mode 100644 model/wdk/AlibabaWdkFulfillConfigReadLimitOrderAPIRequest.go create mode 100644 model/wdk/AlibabaWdkFulfillConfigReadLimitOrderAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkFulfillConfigReadLimitOrderResponse.go create mode 100644 model/wdk/AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIRequest.go create mode 100644 model/wdk/AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackResponse.go create mode 100644 model/wdk/AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIRequest.go create mode 100644 model/wdk/AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackResponse.go create mode 100644 model/wdk/AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIRequest.go create mode 100644 model/wdk/AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackResponse.go create mode 100644 model/wdk/AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIRequest.go create mode 100644 model/wdk/AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackResponse.go create mode 100644 model/wdk/AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIRequest.go create mode 100644 model/wdk/AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackResponse.go create mode 100644 model/wdk/AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIRequest.go create mode 100644 model/wdk/AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkFulfillWarehouseWorkOrderCallbackResponse.go create mode 100644 model/wdk/AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIRequest.go create mode 100644 model/wdk/AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkFulfillWarehouseWorkOrderSealboxResponse.go create mode 100644 model/wdk/AlibabaWdkHrworkbenchCdpempsQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkHrworkbenchCdpempsQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkHrworkbenchCdpempsQueryResponse.go create mode 100644 model/wdk/AlibabaWdkHrworkbenchCdporgsQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkHrworkbenchCdporgsQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkHrworkbenchCdporgsQueryResponse.go create mode 100644 model/wdk/AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIRequest.go create mode 100644 model/wdk/AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkHrworkbenchMokaEntryReceiptWriteResponse.go create mode 100644 model/wdk/AlibabaWdkItemCategoryUpdateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkItemCategoryUpdateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkItemCategoryUpdateResponse.go create mode 100644 model/wdk/AlibabaWdkItemChangepriceQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkItemChangepriceQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkItemChangepriceQueryResponse.go create mode 100644 model/wdk/AlibabaWdkItemCurrentpriceQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkItemCurrentpriceQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkItemCurrentpriceQueryResponse.go create mode 100644 model/wdk/AlibabaWdkItemMerchantCategoryQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkItemMerchantCategoryQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkItemMerchantCategoryQueryResponse.go create mode 100644 model/wdk/AlibabaWdkItemPriceUpdateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkItemPriceUpdateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkItemPriceUpdateResponse.go create mode 100644 model/wdk/AlibabaWdkItemServiceitemQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkItemServiceitemQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkItemServiceitemQueryResponse.go create mode 100644 model/wdk/AlibabaWdkItemStoreskuUpdateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkItemStoreskuUpdateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkItemStoreskuUpdateResponse.go create mode 100644 model/wdk/AlibabaWdkItemTraceUrlGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkItemTraceUrlGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkItemTraceUrlGetResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingBuygiftItemAddAsyncAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingBuygiftItemAddAsyncAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingBuygiftItemAddAsyncResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingBuygiftItemRemoveAsyncAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingBuygiftItemRemoveAsyncAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingBuygiftItemRemoveAsyncResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingCouponAdditemAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingCouponAdditemAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingCouponAdditemResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingCouponCreateactivityAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingCouponCreateactivityAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingCouponCreateactivityResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingCouponEndactivityAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingCouponEndactivityAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingCouponEndactivityResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingCouponQueryactivityAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingCouponQueryactivityAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingCouponQueryactivityResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingCouponQueryitemsAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingCouponQueryitemsAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingCouponQueryitemsResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingDiscountItemAddAsyncAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingDiscountItemAddAsyncAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingDiscountItemAddAsyncResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingDiscountItemRemoveAsyncAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingDiscountItemRemoveAsyncAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingDiscountItemRemoveAsyncResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingExpirePromotionCreateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingExpirePromotionCreateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingExpirePromotionCreateResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingExpirePromotionDeleteAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingExpirePromotionDeleteAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingExpirePromotionDeleteResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingExpirePromotionQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingExpirePromotionQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingExpirePromotionQueryResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingFullrangeAddexchangeitemAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingFullrangeAddexchangeitemAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingFullrangeAddexchangeitemResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingFullrangeCreateactivityAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingFullrangeCreateactivityAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingFullrangeCreateactivityResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingFullrangeDeleteactivityAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingFullrangeDeleteactivityAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingFullrangeDeleteactivityResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingFullrangeQueryactivityAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingFullrangeQueryactivityAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingFullrangeQueryactivityResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingFullrangeQueryitemAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingFullrangeQueryitemAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingFullrangeQueryitemResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingFullrangeRemoveitemAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingFullrangeRemoveitemAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingFullrangeRemoveitemResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItembuygiftAdditemAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItembuygiftAdditemAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItembuygiftAdditemResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItembuygiftCreateactivityAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItembuygiftCreateactivityAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItembuygiftCreateactivityResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItembuygiftDeleteactivityAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItembuygiftDeleteactivityAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItembuygiftDeleteactivityResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItembuygiftQueryactivityAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItembuygiftQueryactivityAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItembuygiftQueryactivityResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItembuygiftQueryitemsAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItembuygiftQueryitemsAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItembuygiftQueryitemsResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItembuygiftRemoveitemAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItembuygiftRemoveitemAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItembuygiftRemoveitemResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItemdiscountAdditemAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItemdiscountAdditemAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItemdiscountAdditemResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItemdiscountCreateactivityAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItemdiscountCreateactivityAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItemdiscountCreateactivityResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItemdiscountDeleteactivityAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItemdiscountDeleteactivityAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItemdiscountDeleteactivityResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItemdiscountQueryactivityAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItemdiscountQueryactivityAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItemdiscountQueryactivityResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItemdiscountQueryitemsAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItemdiscountQueryitemsAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItemdiscountQueryitemsResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItemdiscountRemoveitemAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItemdiscountRemoveitemAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItemdiscountRemoveitemResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolActivityCreateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolActivityCreateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItempoolActivityCreateResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolAddcategoryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolAddcategoryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItempoolAddcategoryResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolAdditemAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolAdditemAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItempoolAdditemResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolCreateactivityAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolCreateactivityAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItempoolCreateactivityResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolDeleteactivityAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolDeleteactivityAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItempoolDeleteactivityResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolExcludeskucodeAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolExcludeskucodeAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItempoolExcludeskucodeResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolItemAddAsyncAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolItemAddAsyncAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItempoolItemAddAsyncResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolItemRemoveAsyncAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolItemRemoveAsyncAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItempoolItemRemoveAsyncResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolQueryactivityAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolQueryactivityAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItempoolQueryactivityResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolQueryitemsAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolQueryitemsAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItempoolQueryitemsResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolRemoveitemAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolRemoveitemAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItempoolRemoveitemResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolStairAdditemAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolStairAdditemAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItempoolStairAdditemResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolStairQueryitemAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolStairQueryitemAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItempoolStairQueryitemResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingItempoolStairRemoveitemAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingItempoolStairRemoveitemResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySkuSyncResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySyncAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySyncAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySyncResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingOpenDataRelationQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingOpenDataRelationQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingOpenDataRelationQueryResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingOpenHeartbeatAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingOpenHeartbeatAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingOpenHeartbeatResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingOpenVersionApplyAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingOpenVersionApplyAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingOpenVersionApplyResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingOpenVersionCountAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingOpenVersionCountAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingOpenVersionCountResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingPriceAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingPriceAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingPriceResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingVersionCommitAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingVersionCommitAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingVersionCommitResponse.go create mode 100644 model/wdk/AlibabaWdkMarketingVersionGenerateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMarketingVersionGenerateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMarketingVersionGenerateResponse.go create mode 100644 model/wdk/AlibabaWdkMemberCardGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMemberCardGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMemberCardGetResponse.go create mode 100644 model/wdk/AlibabaWdkMemberQrcodeIdentifyAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMemberQrcodeIdentifyAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMemberQrcodeIdentifyResponse.go create mode 100644 model/wdk/AlibabaWdkMerchantBrandQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMerchantBrandQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMerchantBrandQueryResponse.go create mode 100644 model/wdk/AlibabaWdkMerchantCategoryQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMerchantCategoryQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMerchantCategoryQueryResponse.go create mode 100644 model/wdk/AlibabaWdkMerchantItemCreatedraftAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMerchantItemCreatedraftAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMerchantItemCreatedraftResponse.go create mode 100644 model/wdk/AlibabaWdkMerchantItemQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMerchantItemQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMerchantItemQueryResponse.go create mode 100644 model/wdk/AlibabaWdkMerchantItemUpdateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMerchantItemUpdateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMerchantItemUpdateResponse.go create mode 100644 model/wdk/AlibabaWdkMerchantRoutingRegisterAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMerchantRoutingRegisterAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMerchantRoutingRegisterResponse.go create mode 100644 model/wdk/AlibabaWdkMerchantStoreitemCreateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMerchantStoreitemCreateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMerchantStoreitemCreateResponse.go create mode 100644 model/wdk/AlibabaWdkMerchantStoreitemQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMerchantStoreitemQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMerchantStoreitemQueryResponse.go create mode 100644 model/wdk/AlibabaWdkMerchantStoreitemUpdateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMerchantStoreitemUpdateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMerchantStoreitemUpdateResponse.go create mode 100644 model/wdk/AlibabaWdkMerchantproductEditAPIRequest.go create mode 100644 model/wdk/AlibabaWdkMerchantproductEditAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkMerchantproductEditResponse.go create mode 100644 model/wdk/AlibabaWdkOldposOrderCreateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkOldposOrderCreateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkOldposOrderCreateResponse.go create mode 100644 model/wdk/AlibabaWdkOldposRefundCreateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkOldposRefundCreateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkOldposRefundCreateResponse.go create mode 100644 model/wdk/AlibabaWdkOrderAggregateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkOrderAggregateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkOrderAggregateResponse.go create mode 100644 model/wdk/AlibabaWdkOrderFinanceBillQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkOrderFinanceBillQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkOrderFinanceBillQueryResponse.go create mode 100644 model/wdk/AlibabaWdkOrderGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkOrderGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkOrderGetResponse.go create mode 100644 model/wdk/AlibabaWdkOrderListAPIRequest.go create mode 100644 model/wdk/AlibabaWdkOrderListAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkOrderListResponse.go create mode 100644 model/wdk/AlibabaWdkOrderRefundGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkOrderRefundGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkOrderRefundGetResponse.go create mode 100644 model/wdk/AlibabaWdkOrderRefundListAPIRequest.go create mode 100644 model/wdk/AlibabaWdkOrderRefundListAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkOrderRefundListResponse.go create mode 100644 model/wdk/AlibabaWdkOrderSyncAPIRequest.go create mode 100644 model/wdk/AlibabaWdkOrderSyncAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkOrderSyncResponse.go create mode 100644 model/wdk/AlibabaWdkOrderSyncWithitemAPIRequest.go create mode 100644 model/wdk/AlibabaWdkOrderSyncWithitemAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkOrderSyncWithitemResponse.go create mode 100644 model/wdk/AlibabaWdkPosAfterbuyBenefitSendAPIRequest.go create mode 100644 model/wdk/AlibabaWdkPosAfterbuyBenefitSendAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkPosAfterbuyBenefitSendResponse.go create mode 100644 model/wdk/AlibabaWdkPurchasePriceAPIRequest.go create mode 100644 model/wdk/AlibabaWdkPurchasePriceAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkPurchasePriceResponse.go create mode 100644 model/wdk/AlibabaWdkRefundAggregateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkRefundAggregateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkRefundAggregateResponse.go create mode 100644 model/wdk/AlibabaWdkReverseApplyrefundAPIRequest.go create mode 100644 model/wdk/AlibabaWdkReverseApplyrefundAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkReverseApplyrefundResponse.go create mode 100644 model/wdk/AlibabaWdkReverseCreatrefundAPIRequest.go create mode 100644 model/wdk/AlibabaWdkReverseCreatrefundAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkReverseCreatrefundResponse.go create mode 100644 model/wdk/AlibabaWdkReverseRefundAPIRequest.go create mode 100644 model/wdk/AlibabaWdkReverseRefundAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkReverseRefundResponse.go create mode 100644 model/wdk/AlibabaWdkReverseReversedetailAPIRequest.go create mode 100644 model/wdk/AlibabaWdkReverseReversedetailAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkReverseReversedetailResponse.go create mode 100644 model/wdk/AlibabaWdkScmLrpOrderPredictAPIRequest.go create mode 100644 model/wdk/AlibabaWdkScmLrpOrderPredictAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkScmLrpOrderPredictResponse.go create mode 100644 model/wdk/AlibabaWdkSeriesCreateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSeriesCreateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSeriesCreateResponse.go create mode 100644 model/wdk/AlibabaWdkSeriesDefaultskuResetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSeriesDefaultskuResetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSeriesDefaultskuResetResponse.go create mode 100644 model/wdk/AlibabaWdkSeriesEditAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSeriesEditAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSeriesEditResponse.go create mode 100644 model/wdk/AlibabaWdkSeriesSkuAddAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSeriesSkuAddAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSeriesSkuAddResponse.go create mode 100644 model/wdk/AlibabaWdkSeriesSkuRemoveAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSeriesSkuRemoveAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSeriesSkuRemoveResponse.go create mode 100644 model/wdk/AlibabaWdkSeriesSortAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSeriesSortAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSeriesSortResponse.go create mode 100644 model/wdk/AlibabaWdkShopQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkShopQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkShopQueryResponse.go create mode 100644 model/wdk/AlibabaWdkSkuAddAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuAddAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuAddResponse.go create mode 100644 model/wdk/AlibabaWdkSkuBarcodeQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuBarcodeQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuBarcodeQueryResponse.go create mode 100644 model/wdk/AlibabaWdkSkuCategoryAddAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuCategoryAddAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuCategoryAddResponse.go create mode 100644 model/wdk/AlibabaWdkSkuCategoryDeleteAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuCategoryDeleteAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuCategoryDeleteResponse.go create mode 100644 model/wdk/AlibabaWdkSkuCategoryQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuCategoryQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuCategoryQueryResponse.go create mode 100644 model/wdk/AlibabaWdkSkuCategoryUpdateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuCategoryUpdateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuCategoryUpdateResponse.go create mode 100644 model/wdk/AlibabaWdkSkuChannelskuAddAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuChannelskuAddAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuChannelskuAddResponse.go create mode 100644 model/wdk/AlibabaWdkSkuChannelskuQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuChannelskuQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuChannelskuQueryResponse.go create mode 100644 model/wdk/AlibabaWdkSkuChannelskuUpdateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuChannelskuUpdateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuChannelskuUpdateResponse.go create mode 100644 model/wdk/AlibabaWdkSkuCombineskuAddAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuCombineskuAddAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuCombineskuAddResponse.go create mode 100644 model/wdk/AlibabaWdkSkuCombineskuQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuCombineskuQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuCombineskuQueryResponse.go create mode 100644 model/wdk/AlibabaWdkSkuCombineskuUpdateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuCombineskuUpdateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuCombineskuUpdateResponse.go create mode 100644 model/wdk/AlibabaWdkSkuFeatureAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuFeatureAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuFeatureResponse.go create mode 100644 model/wdk/AlibabaWdkSkuMerchantskuScrollQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuMerchantskuScrollQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuMerchantskuScrollQueryResponse.go create mode 100644 model/wdk/AlibabaWdkSkuQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuQueryResponse.go create mode 100644 model/wdk/AlibabaWdkSkuScrollQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuScrollQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuScrollQueryResponse.go create mode 100644 model/wdk/AlibabaWdkSkuStoreskuScrollQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuStoreskuScrollQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuStoreskuScrollQueryResponse.go create mode 100644 model/wdk/AlibabaWdkSkuUpdateAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuUpdateAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuUpdateResponse.go create mode 100644 model/wdk/AlibabaWdkSkuWarehouseskuQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuWarehouseskuQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuWarehouseskuQueryResponse.go create mode 100644 model/wdk/AlibabaWdkSkuWarehouseskuScrollQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSkuWarehouseskuScrollQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSkuWarehouseskuScrollQueryResponse.go create mode 100644 model/wdk/AlibabaWdkSopoPushTriggerAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSopoPushTriggerAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSopoPushTriggerResponse.go create mode 100644 model/wdk/AlibabaWdkStockCabinetQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkStockCabinetQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkStockCabinetQueryResponse.go create mode 100644 model/wdk/AlibabaWdkStockCabinetQueryResultDo.go create mode 100644 model/wdk/AlibabaWdkStockPublishAPIRequest.go create mode 100644 model/wdk/AlibabaWdkStockPublishAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkStockPublishResponse.go create mode 100644 model/wdk/AlibabaWdkStockRealQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkStockRealQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkStockRealQueryResponse.go create mode 100644 model/wdk/AlibabaWdkStockRealQueryResultDo.go create mode 100644 model/wdk/AlibabaWdkSupplierOrderGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSupplierOrderGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSupplierOrderGetResponse.go create mode 100644 model/wdk/AlibabaWdkSupplierOrderListAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSupplierOrderListAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSupplierOrderListResponse.go create mode 100644 model/wdk/AlibabaWdkSupplierRefundGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSupplierRefundGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSupplierRefundGetResponse.go create mode 100644 model/wdk/AlibabaWdkSupplierRefundListAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSupplierRefundListAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSupplierRefundListResponse.go create mode 100644 model/wdk/AlibabaWdkSyncedorderQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkSyncedorderQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkSyncedorderQueryResponse.go create mode 100644 model/wdk/AlibabaWdkTimeGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkTimeGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkTimeGetResponse.go create mode 100644 model/wdk/AlibabaWdkTraceUrlGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkTraceUrlGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkTraceUrlGetResponse.go create mode 100644 model/wdk/AlibabaWdkTradeOrderBalanceBillQueryAPIRequest.go create mode 100644 model/wdk/AlibabaWdkTradeOrderBalanceBillQueryAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkTradeOrderBalanceBillQueryResponse.go create mode 100644 model/wdk/AlibabaWdkUmsFeedbackAPIRequest.go create mode 100644 model/wdk/AlibabaWdkUmsFeedbackAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkUmsFeedbackResponse.go create mode 100644 model/wdk/AlibabaWdkUmsHandlingGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkUmsHandlingGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkUmsHandlingGetResponse.go create mode 100644 model/wdk/AlibabaWdkUmsInboundAPIRequest.go create mode 100644 model/wdk/AlibabaWdkUmsInboundAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkUmsInboundResponse.go create mode 100644 model/wdk/AlibabaWdkUmsInventoryAdjustGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkUmsInventoryAdjustGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkUmsInventoryAdjustGetResponse.go create mode 100644 model/wdk/AlibabaWdkUmsInventoryCheckGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkUmsInventoryCheckGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkUmsInventoryCheckGetResponse.go create mode 100644 model/wdk/AlibabaWdkUmsInventoryPublishAPIRequest.go create mode 100644 model/wdk/AlibabaWdkUmsInventoryPublishAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkUmsInventoryPublishResponse.go create mode 100644 model/wdk/AlibabaWdkUmsOrderGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkUmsOrderGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkUmsOrderGetResponse.go create mode 100644 model/wdk/AlibabaWdkUmsOutboundAPIRequest.go create mode 100644 model/wdk/AlibabaWdkUmsOutboundAPIResponse.go create mode 100644 model/wdk/AlibabaWdkUmsOutboundProcessGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkUmsOutboundProcessGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkUmsOutboundProcessGetResponse.go delete mode 100644 model/wdk/AlibabaWdkUmsOutboundResponse.go create mode 100644 model/wdk/AlibabaWdkUmsRetrieveBatchConfirmAPIRequest.go create mode 100644 model/wdk/AlibabaWdkUmsRetrieveBatchConfirmAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkUmsRetrieveBatchConfirmResponse.go create mode 100644 model/wdk/AlibabaWdkUmsRetrieveConfirmAPIRequest.go create mode 100644 model/wdk/AlibabaWdkUmsRetrieveConfirmAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkUmsRetrieveConfirmResponse.go create mode 100644 model/wdk/AlibabaWdkUmsReturnitemsGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkUmsReturnitemsGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkUmsReturnitemsGetResponse.go create mode 100644 model/wdk/AlibabaWdkUmsShiftGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkUmsShiftGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkUmsShiftGetResponse.go create mode 100644 model/wdk/AlibabaWdkWholesaleInboundorderCommitAPIRequest.go create mode 100644 model/wdk/AlibabaWdkWholesaleInboundorderCommitAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkWholesaleInboundorderCommitResponse.go create mode 100644 model/wdk/AlibabaWdkWholesaleOrderCommitAPIRequest.go create mode 100644 model/wdk/AlibabaWdkWholesaleOrderCommitAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkWholesaleOrderCommitResponse.go create mode 100644 model/wdk/AlibabaWdkWholesaleOutboundorderCommitAPIRequest.go create mode 100644 model/wdk/AlibabaWdkWholesaleOutboundorderCommitAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkWholesaleOutboundorderCommitResponse.go create mode 100644 model/wdk/AlibabaWdkopenCateorderPullAPIRequest.go create mode 100644 model/wdk/AlibabaWdkopenCateorderPullAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkopenCateorderPullResponse.go create mode 100644 model/wdk/AlibabaWdkopenOrderGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkopenOrderGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkopenOrderGetResponse.go create mode 100644 model/wdk/AlibabaWdkorderSharestockFulfillGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkorderSharestockFulfillGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkorderSharestockFulfillGetResponse.go create mode 100644 model/wdk/AlibabaWdkorderSharestockInsuranceCallbackAPIRequest.go create mode 100644 model/wdk/AlibabaWdkorderSharestockInsuranceCallbackAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkorderSharestockInsuranceCallbackResponse.go create mode 100644 model/wdk/AlibabaWdkorderSharestockInsuranceGetorderAPIRequest.go create mode 100644 model/wdk/AlibabaWdkorderSharestockInsuranceGetorderAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkorderSharestockInsuranceGetorderResponse.go create mode 100644 model/wdk/AlibabaWdkorderSharestockInsuranceRefundcallbackAPIRequest.go create mode 100644 model/wdk/AlibabaWdkorderSharestockInsuranceRefundcallbackAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkorderSharestockInsuranceRefundcallbackResponse.go create mode 100644 model/wdk/AlibabaWdkorderSharestockInsuranceRefundgetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkorderSharestockInsuranceRefundgetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkorderSharestockInsuranceRefundgetResponse.go create mode 100644 model/wdk/AlibabaWdkorderSharestockOrderGetAPIRequest.go create mode 100644 model/wdk/AlibabaWdkorderSharestockOrderGetAPIResponse.go delete mode 100644 model/wdk/AlibabaWdkorderSharestockOrderGetResponse.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorBatchconfirmAPIRequest.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorBatchconfirmAPIResponse.go delete mode 100644 model/wdk/TaobaoWdkEquipmentConveyorBatchconfirmResponse.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorContainerinfoGetAPIRequest.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorContainerinfoGetAPIResponse.go delete mode 100644 model/wdk/TaobaoWdkEquipmentConveyorContainerinfoGetResponse.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorConveyorinfoGetAPIRequest.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorConveyorinfoGetAPIResponse.go delete mode 100644 model/wdk/TaobaoWdkEquipmentConveyorConveyorinfoGetResponse.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIRequest.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIResponse.go delete mode 100644 model/wdk/TaobaoWdkEquipmentConveyorExceptionslidewaylogGetResponse.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIRequest.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIResponse.go delete mode 100644 model/wdk/TaobaoWdkEquipmentConveyorHardwarestatuslogGetResponse.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorInfoUploadAPIRequest.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorInfoUploadAPIResponse.go delete mode 100644 model/wdk/TaobaoWdkEquipmentConveyorInfoUploadResponse.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorStatusconfirmAPIRequest.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorStatusconfirmAPIResponse.go delete mode 100644 model/wdk/TaobaoWdkEquipmentConveyorStatusconfirmResponse.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorSystemeventGetAPIRequest.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorSystemeventGetAPIResponse.go delete mode 100644 model/wdk/TaobaoWdkEquipmentConveyorSystemeventGetResponse.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIRequest.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIResponse.go delete mode 100644 model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorResponse.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIRequest.go create mode 100644 model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIResponse.go delete mode 100644 model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorResponse.go create mode 100644 model/wdk/TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest.go create mode 100644 model/wdk/TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIResponse.go delete mode 100644 model/wdk/TaobaoWdkEquipmentDeviceadminDeviceinfoGetResponse.go create mode 100644 model/wdk/TaobaoWdkEquipmentWcsWcsinfoUploadAPIRequest.go create mode 100644 model/wdk/TaobaoWdkEquipmentWcsWcsinfoUploadAPIResponse.go delete mode 100644 model/wdk/TaobaoWdkEquipmentWcsWcsinfoUploadResponse.go create mode 100644 model/wdk/TaobaoWdkIotConveyorConveyorconfigGetAPIRequest.go create mode 100644 model/wdk/TaobaoWdkIotConveyorConveyorconfigGetAPIResponse.go delete mode 100644 model/wdk/TaobaoWdkIotConveyorConveyorconfigGetResponse.go create mode 100644 model/wdk/TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest.go create mode 100644 model/wdk/TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIResponse.go delete mode 100644 model/wdk/TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenResponse.go create mode 100644 model/wdk/TaobaoWdkIotDeviceadminMqttTokenGetAPIRequest.go create mode 100644 model/wdk/TaobaoWdkIotDeviceadminMqttTokenGetAPIResponse.go delete mode 100644 model/wdk/TaobaoWdkIotDeviceadminMqttTokenGetResponse.go create mode 100644 model/wdk/TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIRequest.go create mode 100644 model/wdk/TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIResponse.go delete mode 100644 model/wdk/TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeResponse.go create mode 100644 model/wdk/WdkMealPosGetfetchmealcodeAPIRequest.go create mode 100644 model/wdk/WdkMealPosGetfetchmealcodeAPIResponse.go delete mode 100644 model/wdk/WdkMealPosGetfetchmealcodeResponse.go create mode 100644 model/wdk/WdkWmsPickMedicineChecksellAPIRequest.go create mode 100644 model/wdk/WdkWmsPickMedicineChecksellAPIResponse.go delete mode 100644 model/wdk/WdkWmsPickMedicineChecksellResponse.go create mode 100644 model/wdk/WdkWmsPickMedicineQueryAPIRequest.go create mode 100644 model/wdk/WdkWmsPickMedicineQueryAPIResponse.go delete mode 100644 model/wdk/WdkWmsPickMedicineQueryResponse.go create mode 100644 model/wdkitem/AlibabaWdkItemBrandQueryAPIRequest.go create mode 100644 model/wdkitem/AlibabaWdkItemBrandQueryAPIResponse.go delete mode 100644 model/wdkitem/AlibabaWdkItemBrandQueryResponse.go create mode 100644 model/wdkitem/AlibabaWdkItemCategoryQueryAPIRequest.go create mode 100644 model/wdkitem/AlibabaWdkItemCategoryQueryAPIResponse.go delete mode 100644 model/wdkitem/AlibabaWdkItemCategoryQueryResponse.go create mode 100644 model/wdkitem/AlibabaWdkItemFuturepriceQueryAPIRequest.go create mode 100644 model/wdkitem/AlibabaWdkItemFuturepriceQueryAPIResponse.go delete mode 100644 model/wdkitem/AlibabaWdkItemFuturepriceQueryResponse.go create mode 100644 model/wdkitem/AlibabaWdkItemMemberpriceUpdateAPIRequest.go create mode 100644 model/wdkitem/AlibabaWdkItemMemberpriceUpdateAPIResponse.go delete mode 100644 model/wdkitem/AlibabaWdkItemMemberpriceUpdateResponse.go create mode 100644 model/wdkitem/AlibabaWdkItemMerchantskuCreateAPIRequest.go create mode 100644 model/wdkitem/AlibabaWdkItemMerchantskuCreateAPIResponse.go delete mode 100644 model/wdkitem/AlibabaWdkItemMerchantskuCreateResponse.go create mode 100644 model/wdkitem/AlibabaWdkItemMerchantskuQueryAPIRequest.go create mode 100644 model/wdkitem/AlibabaWdkItemMerchantskuQueryAPIResponse.go delete mode 100644 model/wdkitem/AlibabaWdkItemMerchantskuQueryResponse.go create mode 100644 model/wdkitem/AlibabaWdkItemMerchantskuUpdateAPIRequest.go create mode 100644 model/wdkitem/AlibabaWdkItemMerchantskuUpdateAPIResponse.go delete mode 100644 model/wdkitem/AlibabaWdkItemMerchantskuUpdateResponse.go create mode 100644 model/wdkitem/AlibabaWdkItemMerchantstoreskuCreateAPIRequest.go create mode 100644 model/wdkitem/AlibabaWdkItemMerchantstoreskuCreateAPIResponse.go delete mode 100644 model/wdkitem/AlibabaWdkItemMerchantstoreskuCreateResponse.go create mode 100644 model/wdkitem/AlibabaWdkItemMerchantstoreskuUpdateAPIRequest.go create mode 100644 model/wdkitem/AlibabaWdkItemMerchantstoreskuUpdateAPIResponse.go delete mode 100644 model/wdkitem/AlibabaWdkItemMerchantstoreskuUpdateResponse.go create mode 100644 model/wdkitem/AlibabaWdkItemMorebarcodeOpsAPIRequest.go create mode 100644 model/wdkitem/AlibabaWdkItemMorebarcodeOpsAPIResponse.go delete mode 100644 model/wdkitem/AlibabaWdkItemMorebarcodeOpsResponse.go create mode 100644 model/wdkitem/AlibabaWdkItemStoreskuQueryAPIRequest.go create mode 100644 model/wdkitem/AlibabaWdkItemStoreskuQueryAPIResponse.go delete mode 100644 model/wdkitem/AlibabaWdkItemStoreskuQueryResponse.go create mode 100644 model/wdkitem/AlibabaWdkItemStoreskustatusUpdateAPIRequest.go create mode 100644 model/wdkitem/AlibabaWdkItemStoreskustatusUpdateAPIResponse.go delete mode 100644 model/wdkitem/AlibabaWdkItemStoreskustatusUpdateResponse.go create mode 100644 model/wdkitem/AlibabaWdkPictureUploadAPIRequest.go create mode 100644 model/wdkitem/AlibabaWdkPictureUploadAPIResponse.go delete mode 100644 model/wdkitem/AlibabaWdkPictureUploadResponse.go create mode 100644 model/wdklogistics/AlibabaWdkLogisticsPusPickupCararrivedAPIRequest.go create mode 100644 model/wdklogistics/AlibabaWdkLogisticsPusPickupCararrivedAPIResponse.go delete mode 100644 model/wdklogistics/AlibabaWdkLogisticsPusPickupCararrivedResponse.go create mode 100644 model/wenyuvideo/YoukuWenyuvideoPersionGetAPIRequest.go create mode 100644 model/wenyuvideo/YoukuWenyuvideoPersionGetAPIResponse.go delete mode 100644 model/wenyuvideo/YoukuWenyuvideoPersionGetResponse.go create mode 100644 model/wenyuvideo/YoukuWenyuvideoPersionSearchAPIRequest.go create mode 100644 model/wenyuvideo/YoukuWenyuvideoPersionSearchAPIResponse.go delete mode 100644 model/wenyuvideo/YoukuWenyuvideoPersionSearchResponse.go create mode 100644 model/wenyuvideo/YoukuWenyuvideoSeetaGetAPIRequest.go create mode 100644 model/wenyuvideo/YoukuWenyuvideoSeetaGetAPIResponse.go delete mode 100644 model/wenyuvideo/YoukuWenyuvideoSeetaGetResponse.go create mode 100644 model/westcrm/AlibabaIbizapiBrandSubscribeAPIRequest.go create mode 100644 model/westcrm/AlibabaIbizapiBrandSubscribeAPIResponse.go delete mode 100644 model/westcrm/AlibabaIbizapiBrandSubscribeResponse.go create mode 100644 model/westcrm/AlibabaWestcrmAccountIdGetAPIRequest.go create mode 100644 model/westcrm/AlibabaWestcrmAccountIdGetAPIResponse.go delete mode 100644 model/westcrm/AlibabaWestcrmAccountIdGetResponse.go create mode 100644 model/westcrm/AlibabaWestcrmActivityInfoGetAPIRequest.go create mode 100644 model/westcrm/AlibabaWestcrmActivityInfoGetAPIResponse.go delete mode 100644 model/westcrm/AlibabaWestcrmActivityInfoGetResponse.go create mode 100644 model/westcrm/AlibabaWestcrmActivityListGetAPIRequest.go create mode 100644 model/westcrm/AlibabaWestcrmActivityListGetAPIResponse.go delete mode 100644 model/westcrm/AlibabaWestcrmActivityListGetResponse.go create mode 100644 model/westcrm/AlibabaWestcrmCustomerInfoGetAPIRequest.go create mode 100644 model/westcrm/AlibabaWestcrmCustomerInfoGetAPIResponse.go delete mode 100644 model/westcrm/AlibabaWestcrmCustomerInfoGetResponse.go create mode 100644 model/westcrm/AlibabaWestcrmGradeGetAPIRequest.go create mode 100644 model/westcrm/AlibabaWestcrmGradeGetAPIResponse.go delete mode 100644 model/westcrm/AlibabaWestcrmGradeGetResponse.go create mode 100644 model/westcrm/AlibabaWestcrmIsMemberGetAPIRequest.go create mode 100644 model/westcrm/AlibabaWestcrmIsMemberGetAPIResponse.go delete mode 100644 model/westcrm/AlibabaWestcrmIsMemberGetResponse.go create mode 100644 model/westcrm/AlibabaWestcrmJobStatusUpdateAPIRequest.go create mode 100644 model/westcrm/AlibabaWestcrmJobStatusUpdateAPIResponse.go delete mode 100644 model/westcrm/AlibabaWestcrmJobStatusUpdateResponse.go create mode 100644 model/westcrm/AlibabaWestcrmMallListGetAPIRequest.go create mode 100644 model/westcrm/AlibabaWestcrmMallListGetAPIResponse.go delete mode 100644 model/westcrm/AlibabaWestcrmMallListGetResponse.go create mode 100644 model/westcrm/AlibabaWestcrmMemberMessageHandleAPIRequest.go create mode 100644 model/westcrm/AlibabaWestcrmMemberMessageHandleAPIResponse.go delete mode 100644 model/westcrm/AlibabaWestcrmMemberMessageHandleResponse.go create mode 100644 model/westcrm/AlibabaWestcrmMemberScoreGetAPIRequest.go create mode 100644 model/westcrm/AlibabaWestcrmMemberScoreGetAPIResponse.go delete mode 100644 model/westcrm/AlibabaWestcrmMemberScoreGetResponse.go create mode 100644 model/westcrm/AlibabaWestcrmShopListGetAPIRequest.go create mode 100644 model/westcrm/AlibabaWestcrmShopListGetAPIResponse.go delete mode 100644 model/westcrm/AlibabaWestcrmShopListGetResponse.go create mode 100644 model/westcrm/AlibabaWestcrmUpdateAlipayCarnoAPIRequest.go create mode 100644 model/westcrm/AlibabaWestcrmUpdateAlipayCarnoAPIResponse.go delete mode 100644 model/westcrm/AlibabaWestcrmUpdateAlipayCarnoResponse.go create mode 100644 model/westcrm/AlibabaWestcrmUserBenefitAuthorityAPIRequest.go create mode 100644 model/westcrm/AlibabaWestcrmUserBenefitAuthorityAPIResponse.go delete mode 100644 model/westcrm/AlibabaWestcrmUserBenefitAuthorityResponse.go create mode 100644 model/westcrm/AlibabaWestcrmUserConsumerGetAPIRequest.go create mode 100644 model/westcrm/AlibabaWestcrmUserConsumerGetAPIResponse.go delete mode 100644 model/westcrm/AlibabaWestcrmUserConsumerGetResponse.go create mode 100644 model/westcrm/AlibabaWestcrmUserStatisticAuthorityAPIRequest.go create mode 100644 model/westcrm/AlibabaWestcrmUserStatisticAuthorityAPIResponse.go delete mode 100644 model/westcrm/AlibabaWestcrmUserStatisticAuthorityResponse.go create mode 100644 model/wirelessshare/TaobaoWirelessShareTpwdQueryAPIRequest.go create mode 100644 model/wirelessshare/TaobaoWirelessShareTpwdQueryAPIResponse.go delete mode 100644 model/wirelessshare/TaobaoWirelessShareTpwdQueryResponse.go create mode 100644 model/wlb/CainiaoBmsOrderConsignConfirmAPIRequest.go create mode 100644 model/wlb/CainiaoBmsOrderConsignConfirmAPIResponse.go delete mode 100644 model/wlb/CainiaoBmsOrderConsignConfirmResponse.go create mode 100644 model/wlb/CainiaoMerchantInventoryAdjustAPIRequest.go create mode 100644 model/wlb/CainiaoMerchantInventoryAdjustAPIResponse.go delete mode 100644 model/wlb/CainiaoMerchantInventoryAdjustResponse.go create mode 100644 model/wlb/ResultDo.go create mode 100644 model/wlb/TaobaoUopTobOrderCreateAPIRequest.go create mode 100644 model/wlb/TaobaoUopTobOrderCreateAPIResponse.go delete mode 100644 model/wlb/TaobaoUopTobOrderCreateResponse.go create mode 100644 model/wlb/TaobaoWlbInventoryDetailGetAPIRequest.go create mode 100644 model/wlb/TaobaoWlbInventoryDetailGetAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbInventoryDetailGetResponse.go create mode 100644 model/wlb/TaobaoWlbInventorylogQueryAPIRequest.go create mode 100644 model/wlb/TaobaoWlbInventorylogQueryAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbInventorylogQueryResponse.go create mode 100644 model/wlb/TaobaoWlbItemAddAPIRequest.go create mode 100644 model/wlb/TaobaoWlbItemAddAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbItemAddResponse.go create mode 100644 model/wlb/TaobaoWlbItemBatchQueryAPIRequest.go create mode 100644 model/wlb/TaobaoWlbItemBatchQueryAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbItemBatchQueryResponse.go create mode 100644 model/wlb/TaobaoWlbItemCombinationGetAPIRequest.go create mode 100644 model/wlb/TaobaoWlbItemCombinationGetAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbItemCombinationGetResponse.go create mode 100644 model/wlb/TaobaoWlbItemGetAPIRequest.go create mode 100644 model/wlb/TaobaoWlbItemGetAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbItemGetResponse.go create mode 100644 model/wlb/TaobaoWlbItemMapGetAPIRequest.go create mode 100644 model/wlb/TaobaoWlbItemMapGetAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbItemMapGetResponse.go create mode 100644 model/wlb/TaobaoWlbItemQueryAPIRequest.go create mode 100644 model/wlb/TaobaoWlbItemQueryAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbItemQueryResponse.go create mode 100644 model/wlb/TaobaoWlbItemUpdateAPIRequest.go create mode 100644 model/wlb/TaobaoWlbItemUpdateAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbItemUpdateResponse.go create mode 100644 model/wlb/TaobaoWlbNotifyMessagePageGetAPIRequest.go create mode 100644 model/wlb/TaobaoWlbNotifyMessagePageGetAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbNotifyMessagePageGetResponse.go create mode 100644 model/wlb/TaobaoWlbOrderCancelAPIRequest.go create mode 100644 model/wlb/TaobaoWlbOrderCancelAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbOrderCancelResponse.go create mode 100644 model/wlb/TaobaoWlbOrderConsignAPIRequest.go create mode 100644 model/wlb/TaobaoWlbOrderConsignAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbOrderConsignResponse.go create mode 100644 model/wlb/TaobaoWlbOrderCreateAPIRequest.go create mode 100644 model/wlb/TaobaoWlbOrderCreateAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbOrderCreateResponse.go create mode 100644 model/wlb/TaobaoWlbOrderJzpartnerQueryAPIRequest.go create mode 100644 model/wlb/TaobaoWlbOrderJzpartnerQueryAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbOrderJzpartnerQueryResponse.go create mode 100644 model/wlb/TaobaoWlbOrderJzwithinsConsignAPIRequest.go create mode 100644 model/wlb/TaobaoWlbOrderJzwithinsConsignAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbOrderJzwithinsConsignResponse.go create mode 100644 model/wlb/TaobaoWlbOrderPageGetAPIRequest.go create mode 100644 model/wlb/TaobaoWlbOrderPageGetAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbOrderPageGetResponse.go create mode 100644 model/wlb/TaobaoWlbOrderdetailDateGetAPIRequest.go create mode 100644 model/wlb/TaobaoWlbOrderdetailDateGetAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbOrderdetailDateGetResponse.go create mode 100644 model/wlb/TaobaoWlbOrderstatusGetAPIRequest.go create mode 100644 model/wlb/TaobaoWlbOrderstatusGetAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbOrderstatusGetResponse.go create mode 100644 model/wlb/TaobaoWlbOutInventoryChangeNotifyAPIRequest.go create mode 100644 model/wlb/TaobaoWlbOutInventoryChangeNotifyAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbOutInventoryChangeNotifyResponse.go create mode 100644 model/wlb/TaobaoWlbSubscriptionQueryAPIRequest.go create mode 100644 model/wlb/TaobaoWlbSubscriptionQueryAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbSubscriptionQueryResponse.go create mode 100644 model/wlb/TaobaoWlbTmsorderQueryAPIRequest.go create mode 100644 model/wlb/TaobaoWlbTmsorderQueryAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbTmsorderQueryResponse.go create mode 100644 model/wlb/TaobaoWlbTradeorderGetAPIRequest.go create mode 100644 model/wlb/TaobaoWlbTradeorderGetAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbTradeorderGetResponse.go create mode 100644 model/wlb/TaobaoWlbWaybillShengxianGetAPIRequest.go create mode 100644 model/wlb/TaobaoWlbWaybillShengxianGetAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbWaybillShengxianGetResponse.go create mode 100644 model/wlb/TaobaoWlbWlborderGetAPIRequest.go create mode 100644 model/wlb/TaobaoWlbWlborderGetAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbWlborderGetResponse.go create mode 100644 model/wlb/TaobaoWlbWmsInventoryLackUploadAPIRequest.go create mode 100644 model/wlb/TaobaoWlbWmsInventoryLackUploadAPIResponse.go delete mode 100644 model/wlb/TaobaoWlbWmsInventoryLackUploadResponse.go create mode 100644 model/wlbimports/TaobaoWlbCrossborderWaybillGetAPIRequest.go create mode 100644 model/wlbimports/TaobaoWlbCrossborderWaybillGetAPIResponse.go delete mode 100644 model/wlbimports/TaobaoWlbCrossborderWaybillGetResponse.go create mode 100644 model/wlbimports/TaobaoWlbImportsGeneralConsignAPIRequest.go create mode 100644 model/wlbimports/TaobaoWlbImportsGeneralConsignAPIResponse.go delete mode 100644 model/wlbimports/TaobaoWlbImportsGeneralConsignResponse.go create mode 100644 model/wlbimports/TaobaoWlbImportsOrderCancelAPIRequest.go create mode 100644 model/wlbimports/TaobaoWlbImportsOrderCancelAPIResponse.go delete mode 100644 model/wlbimports/TaobaoWlbImportsOrderCancelResponse.go create mode 100644 model/wlbimports/TaobaoWlbImportsOrderGetAPIRequest.go create mode 100644 model/wlbimports/TaobaoWlbImportsOrderGetAPIResponse.go delete mode 100644 model/wlbimports/TaobaoWlbImportsOrderGetResponse.go create mode 100644 model/wlbimports/TaobaoWlbImportsResourceGetAPIRequest.go create mode 100644 model/wlbimports/TaobaoWlbImportsResourceGetAPIResponse.go delete mode 100644 model/wlbimports/TaobaoWlbImportsResourceGetResponse.go create mode 100644 model/wlbimports/TaobaoWlbImportsResourceTransferstoreGetAPIRequest.go create mode 100644 model/wlbimports/TaobaoWlbImportsResourceTransferstoreGetAPIResponse.go delete mode 100644 model/wlbimports/TaobaoWlbImportsResourceTransferstoreGetResponse.go create mode 100644 model/wlbimports/TaobaoWlbImportsVasIdentityResultAPIRequest.go create mode 100644 model/wlbimports/TaobaoWlbImportsVasIdentityResultAPIResponse.go delete mode 100644 model/wlbimports/TaobaoWlbImportsVasIdentityResultResponse.go create mode 100644 model/wlbimports/TaobaoWlbImportsWaybillGetAPIRequest.go create mode 100644 model/wlbimports/TaobaoWlbImportsWaybillGetAPIResponse.go delete mode 100644 model/wlbimports/TaobaoWlbImportsWaybillGetResponse.go create mode 100644 model/wms/CainiaoBimTradeorderConsignAPIRequest.go create mode 100644 model/wms/CainiaoBimTradeorderConsignAPIResponse.go delete mode 100644 model/wms/CainiaoBimTradeorderConsignResponse.go create mode 100644 model/wms/CainiaoCrmOmsRuleSyncAPIRequest.go create mode 100644 model/wms/CainiaoCrmOmsRuleSyncAPIResponse.go delete mode 100644 model/wms/CainiaoCrmOmsRuleSyncResponse.go create mode 100644 model/wms/TaobaoWlbWmsCainiaoBillQueryAPIRequest.go create mode 100644 model/wms/TaobaoWlbWmsCainiaoBillQueryAPIResponse.go delete mode 100644 model/wms/TaobaoWlbWmsCainiaoBillQueryResponse.go create mode 100644 model/wms/TaobaoWlbWmsConsignBillGetAPIRequest.go create mode 100644 model/wms/TaobaoWlbWmsConsignBillGetAPIResponse.go delete mode 100644 model/wms/TaobaoWlbWmsConsignBillGetResponse.go create mode 100644 model/wms/TaobaoWlbWmsConsignOrderNotifyAPIRequest.go create mode 100644 model/wms/TaobaoWlbWmsConsignOrderNotifyAPIResponse.go delete mode 100644 model/wms/TaobaoWlbWmsConsignOrderNotifyResponse.go create mode 100644 model/wms/TaobaoWlbWmsInventoryProfitlossGetAPIRequest.go create mode 100644 model/wms/TaobaoWlbWmsInventoryProfitlossGetAPIResponse.go delete mode 100644 model/wms/TaobaoWlbWmsInventoryProfitlossGetResponse.go create mode 100644 model/wms/TaobaoWlbWmsInventoryQueryAPIRequest.go create mode 100644 model/wms/TaobaoWlbWmsInventoryQueryAPIResponse.go delete mode 100644 model/wms/TaobaoWlbWmsInventoryQueryResponse.go create mode 100644 model/wms/TaobaoWlbWmsItemCombinationGetAPIRequest.go create mode 100644 model/wms/TaobaoWlbWmsItemCombinationGetAPIResponse.go delete mode 100644 model/wms/TaobaoWlbWmsItemCombinationGetResponse.go create mode 100644 model/wms/TaobaoWlbWmsOrderCancelNotifyAPIRequest.go create mode 100644 model/wms/TaobaoWlbWmsOrderCancelNotifyAPIResponse.go delete mode 100644 model/wms/TaobaoWlbWmsOrderCancelNotifyResponse.go create mode 100644 model/wms/TaobaoWlbWmsReturnBillGetAPIRequest.go create mode 100644 model/wms/TaobaoWlbWmsReturnBillGetAPIResponse.go delete mode 100644 model/wms/TaobaoWlbWmsReturnBillGetResponse.go create mode 100644 model/wms/TaobaoWlbWmsReturnOrderNotifyAPIRequest.go create mode 100644 model/wms/TaobaoWlbWmsReturnOrderNotifyAPIResponse.go delete mode 100644 model/wms/TaobaoWlbWmsReturnOrderNotifyResponse.go create mode 100644 model/wms/TaobaoWlbWmsSkuCreateAPIRequest.go create mode 100644 model/wms/TaobaoWlbWmsSkuCreateAPIResponse.go delete mode 100644 model/wms/TaobaoWlbWmsSkuCreateResponse.go create mode 100644 model/wms/TaobaoWlbWmsSkuGetAPIRequest.go create mode 100644 model/wms/TaobaoWlbWmsSkuGetAPIResponse.go delete mode 100644 model/wms/TaobaoWlbWmsSkuGetResponse.go create mode 100644 model/wms/TaobaoWlbWmsSkuUpdateAPIRequest.go create mode 100644 model/wms/TaobaoWlbWmsSkuUpdateAPIResponse.go delete mode 100644 model/wms/TaobaoWlbWmsSkuUpdateResponse.go create mode 100644 model/wms/TaobaoWlbWmsSnInfoQueryAPIRequest.go create mode 100644 model/wms/TaobaoWlbWmsSnInfoQueryAPIResponse.go delete mode 100644 model/wms/TaobaoWlbWmsSnInfoQueryResponse.go create mode 100644 model/wms/TaobaoWlbWmsStockInBillGetAPIRequest.go create mode 100644 model/wms/TaobaoWlbWmsStockInBillGetAPIResponse.go delete mode 100644 model/wms/TaobaoWlbWmsStockInBillGetResponse.go create mode 100644 model/wms/TaobaoWlbWmsStockInOrderNotifyAPIRequest.go create mode 100644 model/wms/TaobaoWlbWmsStockInOrderNotifyAPIResponse.go delete mode 100644 model/wms/TaobaoWlbWmsStockInOrderNotifyResponse.go create mode 100644 model/wms/TaobaoWlbWmsStockOutBillGetAPIRequest.go create mode 100644 model/wms/TaobaoWlbWmsStockOutBillGetAPIResponse.go delete mode 100644 model/wms/TaobaoWlbWmsStockOutBillGetResponse.go create mode 100644 model/wms/TaobaoWlbWmsStockOutOrderNotifyAPIRequest.go create mode 100644 model/wms/TaobaoWlbWmsStockOutOrderNotifyAPIResponse.go delete mode 100644 model/wms/TaobaoWlbWmsStockOutOrderNotifyResponse.go create mode 100644 model/xhotel/AlitripXhotelChannelOrderCreateResQueryAPIRequest.go create mode 100644 model/xhotel/AlitripXhotelChannelOrderCreateResQueryAPIResponse.go delete mode 100644 model/xhotel/AlitripXhotelChannelOrderCreateResQueryResponse.go create mode 100644 model/xhotel/TaobaoXhotelDataServiceHotelServiceindexAPIRequest.go create mode 100644 model/xhotel/TaobaoXhotelDataServiceHotelServiceindexAPIResponse.go delete mode 100644 model/xhotel/TaobaoXhotelDataServiceHotelServiceindexResponse.go create mode 100644 model/xhotel/TaobaoXhotelDataServiceOrderDetailAPIRequest.go create mode 100644 model/xhotel/TaobaoXhotelDataServiceOrderDetailAPIResponse.go delete mode 100644 model/xhotel/TaobaoXhotelDataServiceOrderDetailResponse.go create mode 100644 model/xhotel/TaobaoXhotelDataServiceSellerServiceindexAPIRequest.go create mode 100644 model/xhotel/TaobaoXhotelDataServiceSellerServiceindexAPIResponse.go delete mode 100644 model/xhotel/TaobaoXhotelDataServiceSellerServiceindexResponse.go create mode 100644 model/xhotel/TaobaoXhotelOrderHotelsignQueryAPIRequest.go create mode 100644 model/xhotel/TaobaoXhotelOrderHotelsignQueryAPIResponse.go delete mode 100644 model/xhotel/TaobaoXhotelOrderHotelsignQueryResponse.go create mode 100644 model/xhotel/TaobaoXhotelOrderOfficialQualificationGetAPIRequest.go create mode 100644 model/xhotel/TaobaoXhotelOrderOfficialQualificationGetAPIResponse.go delete mode 100644 model/xhotel/TaobaoXhotelOrderOfficialQualificationGetResponse.go create mode 100644 model/xhotel/TaobaoXhotelOrderOfflineSettleCancelAPIRequest.go create mode 100644 model/xhotel/TaobaoXhotelOrderOfflineSettleCancelAPIResponse.go delete mode 100644 model/xhotel/TaobaoXhotelOrderOfflineSettleCancelResponse.go create mode 100644 model/xhotelcrm/TaobaoXhotelPotentialMemberBindAPIRequest.go create mode 100644 model/xhotelcrm/TaobaoXhotelPotentialMemberBindAPIResponse.go delete mode 100644 model/xhotelcrm/TaobaoXhotelPotentialMemberBindResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelAddAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelAddAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelAddResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelBaseinfoGetAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelBaseinfoGetAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelBaseinfoGetResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelBaseinfoRoomGetAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelBaseinfoRoomGetAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelBaseinfoRoomGetResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelBnbhouseAddAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelBnbhouseAddAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelBnbhouseAddResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelBnbownerAddAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelBnbownerAddAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelBnbownerAddResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelBnbroomtypeAddAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelBnbroomtypeAddAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelBnbroomtypeAddResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelCityCoordinatesBatchDownloadAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelCityCoordinatesBatchDownloadAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelCityCoordinatesBatchDownloadResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelCityCoordinatesBatchUploadAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelCityCoordinatesBatchUploadAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelCityCoordinatesBatchUploadResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelDeleteAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelDeleteAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelDeleteResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelEntityConfigAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelEntityConfigAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelEntityConfigResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelGetAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelGetAPIResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelGetEntityByTagAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelGetEntityByTagAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelGetEntityByTagResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelGetResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelHouseAddAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelHouseAddAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelHouseAddResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelHouseRoomtypeAddAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelHouseRoomtypeAddAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelHouseRoomtypeAddResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelItemSelectionSellerStatExposureAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelItemSelectionSellerStatExposureAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelItemSelectionSellerStatExposureResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelItemSelectionSellerStatHotshidAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelItemSelectionSellerStatHotshidResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelItemSelectionSellerStatSummaryAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelItemSelectionSellerStatSummaryResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelMultiplerateDeleteAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelMultiplerateDeleteAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelMultiplerateDeleteResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelMultiplerateGetAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelMultiplerateGetAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelMultiplerateGetResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelMultiplerateUpdateAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelMultiplerateUpdateAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelMultiplerateUpdateResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelMultipleratesIncrementAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelMultipleratesIncrementAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelMultipleratesIncrementResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelMultipleratesUpdateAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelMultipleratesUpdateAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelMultipleratesUpdateResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelQuotaUpdateAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelQuotaUpdateAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelQuotaUpdateResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRateAddAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRateAddAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRateAddResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRateDeleteAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRateDeleteAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRateDeleteResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRateGetAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRateGetAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRateGetResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRateRelationshipwithroomGetAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRateRelationshipwithroomGetAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRateRelationshipwithroomGetResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRateRelationshipwithrpGetAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRateRelationshipwithrpGetAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRateRelationshipwithrpGetResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRateUpdateAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRateUpdateAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRateUpdateResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRateplanAddAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRateplanAddAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRateplanAddResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRateplanDeleteAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRateplanDeleteAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRateplanDeleteResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRateplanGetAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRateplanGetAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRateplanGetResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRateplanUpdateAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRateplanUpdateAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRateplanUpdateResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRatesIncrementAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRatesIncrementAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRatesIncrementResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRatesLiteIncrUpdateAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRatesLiteIncrUpdateAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRatesLiteIncrUpdateResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRatesUpdateAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRatesUpdateAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRatesUpdateResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRoomGetAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRoomGetAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRoomGetResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRoomUpdateAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRoomUpdateAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRoomUpdateResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRoomsIncrementAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRoomsIncrementAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRoomsIncrementResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRoomsUpdateAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRoomsUpdateAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRoomsUpdateResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRoomtypeAddAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRoomtypeAddAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRoomtypeAddResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRoomtypeConflictDataAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRoomtypeConflictDataAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRoomtypeConflictDataResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRoomtypeDeletePublicAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRoomtypeDeletePublicAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRoomtypeDeletePublicResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRoomtypeGetAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRoomtypeGetAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRoomtypeGetResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelRoomtypeUpdateAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelRoomtypeUpdateAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelRoomtypeUpdateResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelServicetimeGetAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelServicetimeGetAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelServicetimeGetResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelServicetimeUpdateAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelServicetimeUpdateAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelServicetimeUpdateResponse.go create mode 100644 model/xhotelitem/TaobaoXhotelUpdateAPIRequest.go create mode 100644 model/xhotelitem/TaobaoXhotelUpdateAPIResponse.go delete mode 100644 model/xhotelitem/TaobaoXhotelUpdateResponse.go create mode 100644 model/xhotelofficial/TaobaoXhotelOrderOfficialCancelAPIRequest.go create mode 100644 model/xhotelofficial/TaobaoXhotelOrderOfficialCancelAPIResponse.go delete mode 100644 model/xhotelofficial/TaobaoXhotelOrderOfficialCancelResponse.go create mode 100644 model/xhotelofficial/TaobaoXhotelOrderOfficialPrecheckAPIRequest.go create mode 100644 model/xhotelofficial/TaobaoXhotelOrderOfficialPrecheckAPIResponse.go delete mode 100644 model/xhotelofficial/TaobaoXhotelOrderOfficialPrecheckResponse.go create mode 100644 model/xhotelofficial/TaobaoXhotelOrderOfficialSettleCancelAPIRequest.go create mode 100644 model/xhotelofficial/TaobaoXhotelOrderOfficialSettleCancelAPIResponse.go delete mode 100644 model/xhotelofficial/TaobaoXhotelOrderOfficialSettleCancelResponse.go create mode 100644 model/xhotelofficial/TaobaoXhotelOrderOfficialSettlePutAPIRequest.go create mode 100644 model/xhotelofficial/TaobaoXhotelOrderOfficialSettlePutAPIResponse.go delete mode 100644 model/xhotelofficial/TaobaoXhotelOrderOfficialSettlePutResponse.go create mode 100644 model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCancelAPIRequest.go create mode 100644 model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCancelAPIResponse.go delete mode 100644 model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCancelResponse.go create mode 100644 model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCheckAPIRequest.go create mode 100644 model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCheckAPIResponse.go delete mode 100644 model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCheckResponse.go create mode 100644 model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCreateAPIRequest.go create mode 100644 model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCreateAPIResponse.go delete mode 100644 model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCreateResponse.go create mode 100644 model/xhoteloffline/TaobaoXhotelOrderAlipayfaceExtendAPIRequest.go create mode 100644 model/xhoteloffline/TaobaoXhotelOrderAlipayfaceExtendAPIResponse.go delete mode 100644 model/xhoteloffline/TaobaoXhotelOrderAlipayfaceExtendResponse.go create mode 100644 model/xhoteloffline/TaobaoXhotelOrderOfflineSettlePutAPIRequest.go create mode 100644 model/xhoteloffline/TaobaoXhotelOrderOfflineSettlePutAPIResponse.go delete mode 100644 model/xhoteloffline/TaobaoXhotelOrderOfflineSettlePutResponse.go create mode 100644 model/xhotelonlineorder/AlitripXhotelChannelNotifyAPIRequest.go create mode 100644 model/xhotelonlineorder/AlitripXhotelChannelNotifyAPIResponse.go delete mode 100644 model/xhotelonlineorder/AlitripXhotelChannelNotifyResponse.go create mode 100644 model/xhotelonlineorder/AlitripXhotelChannelOrderCreateAPIRequest.go create mode 100644 model/xhotelonlineorder/AlitripXhotelChannelOrderCreateAPIResponse.go delete mode 100644 model/xhotelonlineorder/AlitripXhotelChannelOrderCreateResponse.go create mode 100644 model/xhotelonlineorder/AlitripXhotelChannelOrderMembertypeSyncAPIRequest.go create mode 100644 model/xhotelonlineorder/AlitripXhotelChannelOrderMembertypeSyncAPIResponse.go delete mode 100644 model/xhotelonlineorder/AlitripXhotelChannelOrderMembertypeSyncResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelCommoninvoiceListVtwoAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelCommoninvoiceListVtwoAPIResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelCommoninvoiceListVtwoResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelCommoninvoiceRemoveAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelCommoninvoiceRemoveAPIResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelCommoninvoiceRemoveResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelCommoninvoiceUpdateAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelCommoninvoiceUpdateAPIResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelCommoninvoiceUpdateResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelFastinvoiceCompleteAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelFastinvoiceCompleteAPIResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelFastinvoiceCompleteResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelFastinvoiceRequestAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelFastinvoiceRequestAPIResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelFastinvoiceRequestResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelFutureSoftmodifyAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelFutureSoftmodifyAPIResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelFutureSoftmodifyResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelIntlRateUpdateAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelIntlRateUpdateAPIResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelIntlRateUpdateResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelMemberrightUpdateAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelMemberrightUpdateAPIResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelMemberrightUpdateResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceCancelsettleAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceCancelsettleAPIResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceCancelsettleResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceSettleAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceSettleAPIResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceSettleResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceUpdateAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceUpdateAPIResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceUpdateResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderDetailSearchAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderDetailSearchAPIResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderDetailSearchResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderFutureFacescanPutAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderFutureFacescanPutAPIResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderFutureFacescanPutResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoGetAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoGetAPIResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoGetResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoPutAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoPutAPIResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoPutResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderSearchAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderSearchAPIResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderSearchResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderStatementGetAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderStatementGetAPIResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderStatementGetResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderUpdateAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderUpdateAPIResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderUpdateConfirmcodeAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderUpdateConfirmcodeAPIResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderUpdateConfirmcodeResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelOrderUpdateResponse.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelPmsGuestbillGetVtwoAPIRequest.go create mode 100644 model/xhotelonlineorder/TaobaoXhotelPmsGuestbillGetVtwoAPIResponse.go delete mode 100644 model/xhotelonlineorder/TaobaoXhotelPmsGuestbillGetVtwoResponse.go create mode 100644 model/xiami/AlibabaXiamiApiAlbumDetailGetAPIRequest.go create mode 100644 model/xiami/AlibabaXiamiApiAlbumDetailGetAPIResponse.go delete mode 100644 model/xiami/AlibabaXiamiApiAlbumDetailGetResponse.go create mode 100644 model/xiami/AlibabaXiamiApiArtistAlbumsGetAPIRequest.go create mode 100644 model/xiami/AlibabaXiamiApiArtistAlbumsGetAPIResponse.go delete mode 100644 model/xiami/AlibabaXiamiApiArtistAlbumsGetResponse.go create mode 100644 model/xiami/AlibabaXiamiApiArtistDetailGetAPIRequest.go create mode 100644 model/xiami/AlibabaXiamiApiArtistDetailGetAPIResponse.go delete mode 100644 model/xiami/AlibabaXiamiApiArtistDetailGetResponse.go create mode 100644 model/xiami/AlibabaXiamiApiArtistHotSongsGetAPIRequest.go create mode 100644 model/xiami/AlibabaXiamiApiArtistHotSongsGetAPIResponse.go delete mode 100644 model/xiami/AlibabaXiamiApiArtistHotSongsGetResponse.go create mode 100644 model/xiami/AlibabaXiamiApiArtistMusiclistGetAPIRequest.go create mode 100644 model/xiami/AlibabaXiamiApiArtistMusiclistGetAPIResponse.go delete mode 100644 model/xiami/AlibabaXiamiApiArtistMusiclistGetResponse.go create mode 100644 model/xiami/AlibabaXiamiApiCollectDetailGetAPIRequest.go create mode 100644 model/xiami/AlibabaXiamiApiCollectDetailGetAPIResponse.go delete mode 100644 model/xiami/AlibabaXiamiApiCollectDetailGetResponse.go create mode 100644 model/xiami/AlibabaXiamiApiContractIssignAPIRequest.go create mode 100644 model/xiami/AlibabaXiamiApiContractIssignAPIResponse.go delete mode 100644 model/xiami/AlibabaXiamiApiContractIssignResponse.go create mode 100644 model/xiami/AlibabaXiamiApiContractSignAPIRequest.go create mode 100644 model/xiami/AlibabaXiamiApiContractSignAPIResponse.go delete mode 100644 model/xiami/AlibabaXiamiApiContractSignResponse.go create mode 100644 model/xiami/AlibabaXiamiApiMobileFigureimageGetAPIRequest.go create mode 100644 model/xiami/AlibabaXiamiApiMobileFigureimageGetAPIResponse.go delete mode 100644 model/xiami/AlibabaXiamiApiMobileFigureimageGetResponse.go create mode 100644 model/xiami/AlibabaXiamiApiMvMusiclistGetAPIRequest.go create mode 100644 model/xiami/AlibabaXiamiApiMvMusiclistGetAPIResponse.go delete mode 100644 model/xiami/AlibabaXiamiApiMvMusiclistGetResponse.go create mode 100644 model/xiami/AlibabaXiamiApiRadioMyselfGetAPIRequest.go create mode 100644 model/xiami/AlibabaXiamiApiRadioMyselfGetAPIResponse.go delete mode 100644 model/xiami/AlibabaXiamiApiRadioMyselfGetResponse.go create mode 100644 model/xiami/AlibabaXiamiApiRadioSongsGetAPIRequest.go create mode 100644 model/xiami/AlibabaXiamiApiRadioSongsGetAPIResponse.go delete mode 100644 model/xiami/AlibabaXiamiApiRadioSongsGetResponse.go create mode 100644 model/xiami/AlibabaXiamiApiRankDetailGetAPIRequest.go create mode 100644 model/xiami/AlibabaXiamiApiRankDetailGetAPIResponse.go delete mode 100644 model/xiami/AlibabaXiamiApiRankDetailGetResponse.go create mode 100644 model/xiami/AlibabaXiamiApiRankSongsGetAPIRequest.go create mode 100644 model/xiami/AlibabaXiamiApiRankSongsGetAPIResponse.go delete mode 100644 model/xiami/AlibabaXiamiApiRankSongsGetResponse.go create mode 100644 model/xiami/AlibabaXiamiApiSearchHotwordsGetAPIRequest.go create mode 100644 model/xiami/AlibabaXiamiApiSearchHotwordsGetAPIResponse.go delete mode 100644 model/xiami/AlibabaXiamiApiSearchHotwordsGetResponse.go create mode 100644 model/xiami/AlibabaXiamiApiSearchLetterGetAPIRequest.go create mode 100644 model/xiami/AlibabaXiamiApiSearchLetterGetAPIResponse.go delete mode 100644 model/xiami/AlibabaXiamiApiSearchLetterGetResponse.go create mode 100644 model/xiami/AlibabaXiamiApiTagGenreAlbumGetAPIRequest.go create mode 100644 model/xiami/AlibabaXiamiApiTagGenreAlbumGetAPIResponse.go delete mode 100644 model/xiami/AlibabaXiamiApiTagGenreAlbumGetResponse.go create mode 100644 model/xiami/AlibabaXiamiApiTagGenreSongGetAPIRequest.go create mode 100644 model/xiami/AlibabaXiamiApiTagGenreSongGetAPIResponse.go delete mode 100644 model/xiami/AlibabaXiamiApiTagGenreSongGetResponse.go create mode 100644 model/xiamiatrist/XiamiContentArtistInfoQueryAPIRequest.go create mode 100644 model/xiamiatrist/XiamiContentArtistInfoQueryAPIResponse.go delete mode 100644 model/xiamiatrist/XiamiContentArtistInfoQueryResponse.go create mode 100644 model/xiamicontent/XiamiContentMvDetailGetAPIRequest.go create mode 100644 model/xiamicontent/XiamiContentMvDetailGetAPIResponse.go delete mode 100644 model/xiamicontent/XiamiContentMvDetailGetResponse.go create mode 100644 model/xiamicontent/XiamiContentSongsAudioGetAPIRequest.go create mode 100644 model/xiamicontent/XiamiContentSongsAudioGetAPIResponse.go delete mode 100644 model/xiamicontent/XiamiContentSongsAudioGetResponse.go create mode 100644 model/xiamicontent/XiamiContentSongsAudioGetrefrainAPIRequest.go create mode 100644 model/xiamicontent/XiamiContentSongsAudioGetrefrainAPIResponse.go delete mode 100644 model/xiamicontent/XiamiContentSongsAudioGetrefrainResponse.go create mode 100644 model/xiamicontent/XiamiContentSongsCollectGetAPIRequest.go create mode 100644 model/xiamicontent/XiamiContentSongsCollectGetAPIResponse.go delete mode 100644 model/xiamicontent/XiamiContentSongsCollectGetResponse.go create mode 100644 model/xiamicontent/XiamiContentSongsInfoGetAPIRequest.go create mode 100644 model/xiamicontent/XiamiContentSongsInfoGetAPIResponse.go delete mode 100644 model/xiamicontent/XiamiContentSongsInfoGetResponse.go create mode 100644 model/xiamicontent/XiamiContentSongsInfoQueryAPIRequest.go create mode 100644 model/xiamicontent/XiamiContentSongsInfoQueryAPIResponse.go delete mode 100644 model/xiamicontent/XiamiContentSongsInfoQueryResponse.go create mode 100644 model/xiamiopen/XiamiApiSongDetailGetAPIRequest.go create mode 100644 model/xiamiopen/XiamiApiSongDetailGetAPIResponse.go delete mode 100644 model/xiamiopen/XiamiApiSongDetailGetResponse.go create mode 100644 model/xiamiopen/XiamiApiSongListenfileGetAPIRequest.go create mode 100644 model/xiamiopen/XiamiApiSongListenfileGetAPIResponse.go delete mode 100644 model/xiamiopen/XiamiApiSongListenfileGetResponse.go create mode 100644 model/xiamitrace/XiamiContentResourceActionReportAPIRequest.go create mode 100644 model/xiamitrace/XiamiContentResourceActionReportAPIResponse.go delete mode 100644 model/xiamitrace/XiamiContentResourceActionReportResponse.go create mode 100644 model/youkudsp/YoukuDspDeliveryResourceMultigetAPIRequest.go create mode 100644 model/youkudsp/YoukuDspDeliveryResourceMultigetAPIResponse.go delete mode 100644 model/youkudsp/YoukuDspDeliveryResourceMultigetResponse.go create mode 100644 model/youkuott/YoukuMediaapiVideoSnapshotGetAPIRequest.go create mode 100644 model/youkuott/YoukuMediaapiVideoSnapshotGetAPIResponse.go delete mode 100644 model/youkuott/YoukuMediaapiVideoSnapshotGetResponse.go create mode 100644 model/youkuott/YoukuOttDvbCardChangeAPIRequest.go create mode 100644 model/youkuott/YoukuOttDvbCardChangeAPIResponse.go delete mode 100644 model/youkuott/YoukuOttDvbCardChangeResponse.go create mode 100644 model/youkuott/YoukuOttDvbFirstorderFeedbackAPIRequest.go create mode 100644 model/youkuott/YoukuOttDvbFirstorderFeedbackAPIResponse.go delete mode 100644 model/youkuott/YoukuOttDvbFirstorderFeedbackResponse.go create mode 100644 model/youkuott/YoukuOttDvbRenewFeedbackAPIRequest.go create mode 100644 model/youkuott/YoukuOttDvbRenewFeedbackAPIResponse.go delete mode 100644 model/youkuott/YoukuOttDvbRenewFeedbackResponse.go create mode 100644 model/youkuott/YoukuOttDvbWorkorderFeedbackAPIRequest.go create mode 100644 model/youkuott/YoukuOttDvbWorkorderFeedbackAPIResponse.go delete mode 100644 model/youkuott/YoukuOttDvbWorkorderFeedbackResponse.go create mode 100644 model/youkuott/YoukuOttKittyCommonorderSyncAPIRequest.go create mode 100644 model/youkuott/YoukuOttKittyCommonorderSyncAPIResponse.go delete mode 100644 model/youkuott/YoukuOttKittyCommonorderSyncResponse.go create mode 100644 model/youkuott/YoukuTvoperatorMediaPageQueryAPIRequest.go create mode 100644 model/youkuott/YoukuTvoperatorMediaPageQueryAPIResponse.go delete mode 100644 model/youkuott/YoukuTvoperatorMediaPageQueryResponse.go create mode 100644 model/yunos/AliyunCosmoGatewayInvokeAPIRequest.go create mode 100644 model/yunos/AliyunCosmoGatewayInvokeAPIResponse.go delete mode 100644 model/yunos/AliyunCosmoGatewayInvokeResponse.go create mode 100644 model/yunos/YunosCloudcardBatchOpermsgSendAPIRequest.go create mode 100644 model/yunos/YunosCloudcardBatchOpermsgSendAPIResponse.go delete mode 100644 model/yunos/YunosCloudcardBatchOpermsgSendResponse.go create mode 100644 model/yunos/YunosCosmoDataPushAPIRequest.go create mode 100644 model/yunos/YunosCosmoDataPushAPIResponse.go delete mode 100644 model/yunos/YunosCosmoDataPushResponse.go create mode 100644 model/yunosaccount/YunosAccountCallapiAPIRequest.go create mode 100644 model/yunosaccount/YunosAccountCallapiAPIResponse.go delete mode 100644 model/yunosaccount/YunosAccountCallapiResponse.go create mode 100644 model/yunosad/YunosAdAuditCreativeAddAPIRequest.go create mode 100644 model/yunosad/YunosAdAuditCreativeAddAPIResponse.go delete mode 100644 model/yunosad/YunosAdAuditCreativeAddResponse.go create mode 100644 model/yunosad/YunosAdAuditCreativeGetAPIRequest.go create mode 100644 model/yunosad/YunosAdAuditCreativeGetAPIResponse.go delete mode 100644 model/yunosad/YunosAdAuditCreativeGetResponse.go create mode 100644 model/yunosad/YunosAdAuditCreativeGetlistAPIRequest.go create mode 100644 model/yunosad/YunosAdAuditCreativeGetlistAPIResponse.go delete mode 100644 model/yunosad/YunosAdAuditCreativeGetlistResponse.go create mode 100644 model/yunosappstore/YunosAppstoreAppsGetAPIRequest.go create mode 100644 model/yunosappstore/YunosAppstoreAppsGetAPIResponse.go delete mode 100644 model/yunosappstore/YunosAppstoreAppsGetResponse.go create mode 100644 model/yunosappstore/YunosAppstoreOpenGetadsAPIRequest.go create mode 100644 model/yunosappstore/YunosAppstoreOpenGetadsAPIResponse.go delete mode 100644 model/yunosappstore/YunosAppstoreOpenGetadsResponse.go create mode 100644 model/yunosappstore/YunosAppstoreOpenReportadAPIRequest.go create mode 100644 model/yunosappstore/YunosAppstoreOpenReportadAPIResponse.go delete mode 100644 model/yunosappstore/YunosAppstoreOpenReportadResponse.go create mode 100644 model/yunosappstore/YunosAppstorePadHpApplistAPIRequest.go create mode 100644 model/yunosappstore/YunosAppstorePadHpApplistAPIResponse.go delete mode 100644 model/yunosappstore/YunosAppstorePadHpApplistResponse.go create mode 100644 model/yunosdm/YunosDmSysGetDomainAPIRequest.go create mode 100644 model/yunosdm/YunosDmSysGetDomainAPIResponse.go delete mode 100644 model/yunosdm/YunosDmSysGetDomainResponse.go create mode 100644 model/yunosminiapp/YunosMiniappActivityCallAPIRequest.go create mode 100644 model/yunosminiapp/YunosMiniappActivityCallAPIResponse.go delete mode 100644 model/yunosminiapp/YunosMiniappActivityCallResponse.go create mode 100644 model/yunosminiapp/YunosMiniappDatatunnelCallAPIRequest.go create mode 100644 model/yunosminiapp/YunosMiniappDatatunnelCallAPIResponse.go delete mode 100644 model/yunosminiapp/YunosMiniappDatatunnelCallResponse.go create mode 100644 model/zqs/AlibabaZqsFulfillCompleteAPIRequest.go create mode 100644 model/zqs/AlibabaZqsFulfillCompleteAPIResponse.go delete mode 100644 model/zqs/AlibabaZqsFulfillCompleteResponse.go create mode 100644 tests/json_test.go create mode 100644 tests/xml_test.go diff --git a/bin/generator b/bin/generator index 5f153b3d89da7f312fa473e5bcfbc4d8a7dd6120..9cb862d6cc61ee3cc4df7c0ec88976166c0f097f 100755 GIT binary patch delta 311 zcmWm5yH3Jj0D#c|iUNwiih@x#h>2mWVc-EAn0yB| zc3y*p(U&0Mb2#H!Z&tQ7=0f;-M!EU*)+v-b!`DW!_tLBw>Q7W8{o}SaXqEcL)91&q z_5Ntqy7g+W%!+{;_!ihcX!v!}yIKUyiIKuxw#tBa0!x_%uM*tTK zOGtmuE>lqzqm(uCvym>f9a>JCE_Df)xIz#iTtmhU!iXS>TioFuF~pHT5-B_&jSRBL PK|vlW3X7#)4E=5a@_BJ* delta 311 zcmWm5!B0VP0KoAf3Z-8n^@=2lNb+9&o@1BHG_y9Bcd=)63CU{HoL+PA2RJzSAKcvi z8!nFi37c<+&+)TdFKkOpg$T$myopQ_%~pkMELE@7Kz& zJ)@I^afkqdI6?@=IGI^O zSykPQ_nanGO>d05rc!Z8DTi}Y!70uVMg-@G;sP;TB8~*EaE&BVxIr2j+#-uRaj5_R diff --git a/doc.go b/doc.go index 4602da8b1b..d94b447cd2 100644 --- a/doc.go +++ b/doc.go @@ -3,7 +3,7 @@ package opentaobao const ( GitVersion = "v1.1.5" - GitCommit = "be047348b" + GitCommit = "f242d80f3" GitDate = "" GitBuiltBy = "unknown" ) diff --git a/example/tbk_item_info_get.go b/example/tbk_item_info_get.go deleted file mode 100644 index 6876162d71..0000000000 --- a/example/tbk_item_info_get.go +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "log" - "os" - - tbkApi "github.com/bububa/opentaobao/api/tbk" - "github.com/bububa/opentaobao/core" - tbkModel "github.com/bububa/opentaobao/model/tbk" -) - -func main() { - appKey := os.Getenv("APPKEY") - secret := os.Getenv("SECRET") - clt := core.NewSDKClient(appKey, secret) - clt.SetDebug(true) - clt.SetAPIFormat("xml") - clt.SetSignMethod("hmac") - req := tbkModel.NewTaobaoTbkItemInfoGetRequest() - req.SetNumIids("617361236670") - req.SetPlatform(2) - resp, err := tbkApi.TaobaoTbkItemInfoGet(clt, req, "") - if err != nil { - log.Fatalln(err) - } - log.Printf("RESP: %+v\n", *resp) -} diff --git a/example/tbk_tpwd_create.go b/example/tbk_tpwd_create.go deleted file mode 100644 index 9e6ef6eea3..0000000000 --- a/example/tbk_tpwd_create.go +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "log" - "os" - - tbkApi "github.com/bububa/opentaobao/api/tbk" - "github.com/bububa/opentaobao/core" - tbkModel "github.com/bububa/opentaobao/model/tbk" -) - -func main() { - appKey := os.Getenv("APPKEY") - secret := os.Getenv("SECRET") - clt := core.NewSDKClient(appKey, secret) - clt.SetDebug(true) - clt.SetAPIFormat("xml") - clt.SetSignMethod("hmac") - req := tbkModel.NewTaobaoTbkTpwdCreateRequest() - req.SetUrl("https://s.click.taobao.com/GKQEZlu") - req.SetText("test tpwd create") - resp, err := tbkApi.TaobaoTbkTpwdCreate(clt, req, "") - if err != nil { - log.Fatalln(err) - } - log.Printf("RESP: %+v\n", *resp.Data) -} diff --git a/metadata/assets/patch/baichuan/alibaba_baichuan_aso_query.json b/metadata/assets/patch/baichuan/alibaba_baichuan_aso_query.json new file mode 100755 index 0000000000..beebd01fa0 --- /dev/null +++ b/metadata/assets/patch/baichuan/alibaba_baichuan_aso_query.json @@ -0,0 +1,109 @@ +{ + "id": 31055, + "name": "alibaba.baichuan.aso.query", + "apiChineseName": "查询app在设备上的安装信息", + "description": "查询app在设备上的安装信息", + "requestParams": [ + { + "name": "app_id", + "type": "String", + "description": "1-tmail,2-taobao", + "required": true + }, + { + "name": "app_os", + "type": "Number", + "description": "1-android,2-ios", + "required": true + }, + { + "name": "device_info_list", + "type": "AsoDeviceInfoDO[]", + "description": "设备信息,ios为idfa ,android 为imei + imsi", + "required": true, + "maxListSize": 20, + "subParams": [ + { + "name": "idfa", + "type": "String", + "description": "idfa" + }, + { + "name": "imei", + "type": "String", + "description": "imei" + }, + { + "name": "imsi", + "type": "String", + "description": "imsi" + } + ] + } + ], + "responseParams": [ + { + "name": "result", + "type": "AsoQueryDeviceResult", + "description": "result", + "subParams": [ + { + "name": "results", + "type": "AsoDeviceCheckResult[]", + "description": "result", + "required": true, + "subParams": [ + { + "name": "is_new_device", + "type": "Boolean", + "description": "isNewDevice", + "required": true + }, + { + "name": "imei", + "type": "String", + "description": "imei", + "required": true + }, + { + "name": "imsi", + "type": "String", + "description": "imsi", + "required": true + }, + { + "name": "idfa", + "type": "String", + "description": "idfa", + "required": true + }, + { + "name": "is_my_channal", + "type": "Boolean", + "description": "isMyChannal", + "required": true + } + ] + }, + { + "name": "error_detail", + "type": "String", + "description": "errorDetail", + "required": true + }, + { + "name": "error_code", + "type": "String", + "description": "errorCode", + "required": true + }, + { + "name": "success", + "type": "Boolean", + "description": "success", + "required": true + } + ] + } + ] +} diff --git a/metadata/assets/patch/category/alibaba_imap_pv_autofill.json b/metadata/assets/patch/category/alibaba_imap_pv_autofill.json new file mode 100755 index 0000000000..25a84e1780 --- /dev/null +++ b/metadata/assets/patch/category/alibaba_imap_pv_autofill.json @@ -0,0 +1,140 @@ +{ + "id": 47658, + "name": "alibaba.imap.pv.autofill", + "apiChineseName": "属性回填接口", + "description": "根据用户传入的标题、目标渠道id,目标渠道叶子类目,预测其对应的pv信息,返回给业务方,供其自动填充属性项属性值信息", + "requestParams": [ + { + "name": "top_imap_item_do", + "type": "TopImapItemDo", + "description": "系统入参", + "subParams": [ + { + "name": "item_id", + "type": "String", + "description": "商品DO" + }, + { + "name": "target_channel_id", + "type": "Number", + "description": "【有最好填上】商品id" + }, + { + "name": "brand_name", + "type": "String", + "description": "【必填】目标渠道ID" + }, + { + "name": "src_cat_name_path_list", + "type": "String[]", + "description": "【有最好填上】品牌名称" + }, + { + "name": "src_channel_id", + "type": "Number", + "description": "源渠道ID" + }, + { + "name": "pv_pair_do_list", + "type": "TopPVPairDO[]", + "description": "商品PV信息", + "subParams": [ + { + "name": "value_id", + "type": "Number", + "description": "属性值ID" + }, + { + "name": "property_name", + "type": "String", + "description": "属性项名称" + }, + { + "name": "value_name", + "type": "String", + "description": "属性值名称" + }, + { + "name": "property_id", + "type": "Number", + "description": "属性项ID" + } + ] + }, + { + "name": "barcode_list", + "type": "String[]", + "description": "【有最好填上】barcode列表" + }, + { + "name": "title", + "type": "String", + "description": "【必填】商品标题" + }, + { + "name": "target_category_id", + "type": "Number", + "description": "【必填】目标渠道叶子类目ID" + }, + { + "name": "src_category_id", + "type": "Number", + "description": "源叶子类目ID" + } + ] + } + ], + "responseParams": [ + { + "name": "result", + "type": "TopImapResultDo", + "description": "imap通用返回DO", + "subParams": [ + { + "name": "success", + "type": "Boolean", + "description": "true表示调用成功", + "required": true + }, + { + "name": "top_pv_pair_do_list", + "type": "TopPVPairDO[]", + "description": "返回的pv对列表", + "required": true, + "subParams": [ + { + "name": "value_id", + "type": "Number", + "description": "属性值ID", + "required": true + }, + { + "name": "value_name", + "type": "String", + "description": "属性值名称", + "required": true + }, + { + "name": "property_name", + "type": "String", + "description": "属性项名称", + "required": true + }, + { + "name": "property_id", + "type": "Number", + "description": "属性值名称", + "required": true + } + ] + }, + { + "name": "error_msg", + "type": "String", + "description": "错误信息", + "required": true + } + ] + } + ] +} diff --git a/metadata/template/request.tpl b/metadata/template/request.tpl index 664baac837..21a826c6ae 100644 --- a/metadata/template/request.tpl +++ b/metadata/template/request.tpl @@ -21,7 +21,7 @@ type {{ .Name }}APIRequest struct { } // 初始化{{ .Name }}APIRequest对象 -func New{{ .Name }}APIRequest() *{{ .Name }}APIRequest{ +func New{{ .Name }}Request() *{{ .Name }}APIRequest{ return &{{ .Name }}APIRequest{ Params: model.NewParams(), } diff --git a/model/admarket/YunosAdmarketAdBidAPIRequest.go b/model/admarket/YunosAdmarketAdBidAPIRequest.go new file mode 100644 index 0000000000..5fb3b77966 --- /dev/null +++ b/model/admarket/YunosAdmarketAdBidAPIRequest.go @@ -0,0 +1,52 @@ +package admarket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +广告竞价服务 API请求 +yunos.admarket.ad.bid + +广告竞价服务 +*/ +type YunosAdmarketAdBidAPIRequest struct { + model.Params + // 竞价请求 + _bidRequest *BidRequest +} + +// 初始化YunosAdmarketAdBidAPIRequest对象 +func NewYunosAdmarketAdBidRequest() *YunosAdmarketAdBidAPIRequest{ + return &YunosAdmarketAdBidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosAdmarketAdBidAPIRequest) GetApiMethodName() string { + return "yunos.admarket.ad.bid" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosAdmarketAdBidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BidRequest Setter +// 竞价请求 +func (r *YunosAdmarketAdBidAPIRequest) SetBidRequest(_bidRequest *BidRequest) error { + r._bidRequest = _bidRequest + r.Set("bid_request", _bidRequest) + return nil +} + +// BidRequest Getter +func (r YunosAdmarketAdBidAPIRequest) GetBidRequest() *BidRequest { + return r._bidRequest +} diff --git a/model/admarket/YunosAdmarketAdBidAPIResponse.go b/model/admarket/YunosAdmarketAdBidAPIResponse.go new file mode 100644 index 0000000000..0768a9dab3 --- /dev/null +++ b/model/admarket/YunosAdmarketAdBidAPIResponse.go @@ -0,0 +1,35 @@ +package admarket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +广告竞价服务 API返回值 +yunos.admarket.ad.bid + +广告竞价服务 +*/ +type YunosAdmarketAdBidAPIResponse struct { + model.CommonResponse + YunosAdmarketAdBidAPIResponseModel +} + +// 广告竞价服务 成功返回结果 +type YunosAdmarketAdBidAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_admarket_ad_bid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求id + Id string `json:"id,omitempty" xml:"id,omitempty"` + // 返回结果描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 返回结果 + Result *BidResponse `json:"result,omitempty" xml:"result,omitempty"` + // 响应码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 是否操作成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/admarket/YunosAdmarketAdBidResponse.go b/model/admarket/YunosAdmarketAdBidResponse.go deleted file mode 100644 index 24e5104c89..0000000000 --- a/model/admarket/YunosAdmarketAdBidResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package admarket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -广告竞价服务 API返回值 -yunos.admarket.ad.bid - -广告竞价服务 -*/ -type YunosAdmarketAdBidAPIResponse struct { - model.CommonResponse - YunosAdmarketAdBidResponse -} - -// 广告竞价服务 成功返回结果 -type YunosAdmarketAdBidResponse struct { - XMLName xml.Name `xml:"yunos_admarket_ad_bid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求id - Id string `json:"id,omitempty" xml:"id,omitempty"` - // 返回结果描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 返回结果 - Result *BidResponse `json:"result,omitempty" xml:"result,omitempty"` - // 响应码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 是否操作成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/admarket/YunosAdmarketMaterialAuditAPIRequest.go b/model/admarket/YunosAdmarketMaterialAuditAPIRequest.go new file mode 100644 index 0000000000..618c3b6262 --- /dev/null +++ b/model/admarket/YunosAdmarketMaterialAuditAPIRequest.go @@ -0,0 +1,52 @@ +package admarket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +广告平台创意审核 API请求 +yunos.admarket.material.audit + +用于厂商上报广告平台审核结果 +*/ +type YunosAdmarketMaterialAuditAPIRequest struct { + model.Params + // 创意审核结果 + _sspMaterialAuditResult *SspMaterialAuditResult +} + +// 初始化YunosAdmarketMaterialAuditAPIRequest对象 +func NewYunosAdmarketMaterialAuditRequest() *YunosAdmarketMaterialAuditAPIRequest{ + return &YunosAdmarketMaterialAuditAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosAdmarketMaterialAuditAPIRequest) GetApiMethodName() string { + return "yunos.admarket.material.audit" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosAdmarketMaterialAuditAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SspMaterialAuditResult Setter +// 创意审核结果 +func (r *YunosAdmarketMaterialAuditAPIRequest) SetSspMaterialAuditResult(_sspMaterialAuditResult *SspMaterialAuditResult) error { + r._sspMaterialAuditResult = _sspMaterialAuditResult + r.Set("ssp_material_audit_result", _sspMaterialAuditResult) + return nil +} + +// SspMaterialAuditResult Getter +func (r YunosAdmarketMaterialAuditAPIRequest) GetSspMaterialAuditResult() *SspMaterialAuditResult { + return r._sspMaterialAuditResult +} diff --git a/model/admarket/YunosAdmarketMaterialAuditAPIResponse.go b/model/admarket/YunosAdmarketMaterialAuditAPIResponse.go new file mode 100644 index 0000000000..bc89695968 --- /dev/null +++ b/model/admarket/YunosAdmarketMaterialAuditAPIResponse.go @@ -0,0 +1,27 @@ +package admarket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +广告平台创意审核 API返回值 +yunos.admarket.material.audit + +用于厂商上报广告平台审核结果 +*/ +type YunosAdmarketMaterialAuditAPIResponse struct { + model.CommonResponse + YunosAdmarketMaterialAuditAPIResponseModel +} + +// 广告平台创意审核 成功返回结果 +type YunosAdmarketMaterialAuditAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_admarket_material_audit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *YunosAdmarketMaterialAuditResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/admarket/YunosAdmarketMaterialAuditResponse.go b/model/admarket/YunosAdmarketMaterialAuditResponse.go deleted file mode 100644 index ed0e83a026..0000000000 --- a/model/admarket/YunosAdmarketMaterialAuditResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package admarket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -广告平台创意审核 API返回值 -yunos.admarket.material.audit - -用于厂商上报广告平台审核结果 -*/ -type YunosAdmarketMaterialAuditAPIResponse struct { - model.CommonResponse - YunosAdmarketMaterialAuditResponse -} - -// 广告平台创意审核 成功返回结果 -type YunosAdmarketMaterialAuditResponse struct { - XMLName xml.Name `xml:"yunos_admarket_material_audit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *YunosAdmarketMaterialAuditResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aecreatives/AliexpressAffiliateCategoryGetAPIRequest.go b/model/aecreatives/AliexpressAffiliateCategoryGetAPIRequest.go new file mode 100644 index 0000000000..5348d417c3 --- /dev/null +++ b/model/aecreatives/AliexpressAffiliateCategoryGetAPIRequest.go @@ -0,0 +1,52 @@ +package aecreatives + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AE流量推广类目信息获取API API请求 +aliexpress.affiliate.category.get + +获取AE流量推广类目的API +*/ +type AliexpressAffiliateCategoryGetAPIRequest struct { + model.Params + // 请求安全签名 + _appSignature string +} + +// 初始化AliexpressAffiliateCategoryGetAPIRequest对象 +func NewAliexpressAffiliateCategoryGetRequest() *AliexpressAffiliateCategoryGetAPIRequest{ + return &AliexpressAffiliateCategoryGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAffiliateCategoryGetAPIRequest) GetApiMethodName() string { + return "aliexpress.affiliate.category.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAffiliateCategoryGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppSignature Setter +// 请求安全签名 +func (r *AliexpressAffiliateCategoryGetAPIRequest) SetAppSignature(_appSignature string) error { + r._appSignature = _appSignature + r.Set("app_signature", _appSignature) + return nil +} + +// AppSignature Getter +func (r AliexpressAffiliateCategoryGetAPIRequest) GetAppSignature() string { + return r._appSignature +} diff --git a/model/aecreatives/AliexpressAffiliateCategoryGetAPIResponse.go b/model/aecreatives/AliexpressAffiliateCategoryGetAPIResponse.go new file mode 100644 index 0000000000..09c4353c6c --- /dev/null +++ b/model/aecreatives/AliexpressAffiliateCategoryGetAPIResponse.go @@ -0,0 +1,27 @@ +package aecreatives + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AE流量推广类目信息获取API API返回值 +aliexpress.affiliate.category.get + +获取AE流量推广类目的API +*/ +type AliexpressAffiliateCategoryGetAPIResponse struct { + model.CommonResponse + AliexpressAffiliateCategoryGetAPIResponseModel +} + +// AE流量推广类目信息获取API 成功返回结果 +type AliexpressAffiliateCategoryGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_affiliate_category_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + RespResult *ResponseResult `json:"resp_result,omitempty" xml:"resp_result,omitempty"` +} diff --git a/model/aecreatives/AliexpressAffiliateFeaturedpromoGetAPIRequest.go b/model/aecreatives/AliexpressAffiliateFeaturedpromoGetAPIRequest.go new file mode 100644 index 0000000000..bd5a512de1 --- /dev/null +++ b/model/aecreatives/AliexpressAffiliateFeaturedpromoGetAPIRequest.go @@ -0,0 +1,66 @@ +package aecreatives + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +联盟主题推广活动信息获取 API请求 +aliexpress.affiliate.featuredpromo.get + +获取联盟主题推广活动信息 +*/ +type AliexpressAffiliateFeaturedpromoGetAPIRequest struct { + model.Params + // 请求签名 + _appSignature string + // 返回字段列表 + _fields string +} + +// 初始化AliexpressAffiliateFeaturedpromoGetAPIRequest对象 +func NewAliexpressAffiliateFeaturedpromoGetRequest() *AliexpressAffiliateFeaturedpromoGetAPIRequest{ + return &AliexpressAffiliateFeaturedpromoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAffiliateFeaturedpromoGetAPIRequest) GetApiMethodName() string { + return "aliexpress.affiliate.featuredpromo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAffiliateFeaturedpromoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppSignature Setter +// 请求签名 +func (r *AliexpressAffiliateFeaturedpromoGetAPIRequest) SetAppSignature(_appSignature string) error { + r._appSignature = _appSignature + r.Set("app_signature", _appSignature) + return nil +} + +// AppSignature Getter +func (r AliexpressAffiliateFeaturedpromoGetAPIRequest) GetAppSignature() string { + return r._appSignature +} +// Fields Setter +// 返回字段列表 +func (r *AliexpressAffiliateFeaturedpromoGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r AliexpressAffiliateFeaturedpromoGetAPIRequest) GetFields() string { + return r._fields +} diff --git a/model/aecreatives/AliexpressAffiliateFeaturedpromoGetAPIResponse.go b/model/aecreatives/AliexpressAffiliateFeaturedpromoGetAPIResponse.go new file mode 100644 index 0000000000..186226e88e --- /dev/null +++ b/model/aecreatives/AliexpressAffiliateFeaturedpromoGetAPIResponse.go @@ -0,0 +1,27 @@ +package aecreatives + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +联盟主题推广活动信息获取 API返回值 +aliexpress.affiliate.featuredpromo.get + +获取联盟主题推广活动信息 +*/ +type AliexpressAffiliateFeaturedpromoGetAPIResponse struct { + model.CommonResponse + AliexpressAffiliateFeaturedpromoGetAPIResponseModel +} + +// 联盟主题推广活动信息获取 成功返回结果 +type AliexpressAffiliateFeaturedpromoGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_affiliate_featuredpromo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + RespResult *ResponseDto `json:"resp_result,omitempty" xml:"resp_result,omitempty"` +} diff --git a/model/aecreatives/AliexpressAffiliateFeaturedpromoProductsGetAPIRequest.go b/model/aecreatives/AliexpressAffiliateFeaturedpromoProductsGetAPIRequest.go new file mode 100644 index 0000000000..02db0707b4 --- /dev/null +++ b/model/aecreatives/AliexpressAffiliateFeaturedpromoProductsGetAPIRequest.go @@ -0,0 +1,220 @@ +package aecreatives + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +联盟主题推广活动商品信息获取 API请求 +aliexpress.affiliate.featuredpromo.products.get + +根据联盟主题推广活动或主题品库查询对应的商品。如下品库为固定品库,可长期调用。品库类型和名称如下:高佣品(Hot Product)、新品(New Arrival)、热销商品(Best Seller)、每周尖货(weeklydeals) +*/ +type AliexpressAffiliateFeaturedpromoProductsGetAPIRequest struct { + model.Params + // 请求签名 + _appSignature string + // 类目 ID 如何获取category_id,请参考,https://open.taobao.com/api.htm?docId=45801&docType=2&scopeId=17063 + _categoryId string + // 返回字段列表 + _fields string + // 查询页码 + _pageNo int64 + // 每页记录数,1-50 + _pageSize int64 + // 活动结束时间,PST 时区 + _promotionEndTime string + // 主题活动的名称,如何获取主题活动,请参考"get featuredpromo info" API. 固定主题:高佣品(Hot Product)、新品(New Arrival)、热销商品(Best Seller)、每周尖货(weeklydeals) + _promotionName string + // 活动开始时间,PST 时区 + _promotionStartTime string + // 排序方式:commissionAsc,commissionDesc, priceAsc,priceDesc,volumeAsc、volumeDesc, discountAsc, discountDesc, ratingAsc,ratingDesc, promotionTimeAsc, pr + _sort string + // 目标币种,可根据目标币种返回对应币种:USD, GBP, CAD, EUR, UAH, MXN, TRY, RUB, BRL, AUD, INR, JPY, IDR, SEK,KRW + _targetCurrency string + // 目标语言,可根据目标语言返回对应语言:EN,RU,PT,ES,FR,ID,IT,TH,JA,AR,VI,TR,DE,HE,KO,NL,PL,MX,CL,IN + _targetLanguage string + // trackingID + _trackingId string + // 商品收货国家,可筛选能销售至该国家的商品,并根据该国家税率政策返回对应商品价格 + _country string +} + +// 初始化AliexpressAffiliateFeaturedpromoProductsGetAPIRequest对象 +func NewAliexpressAffiliateFeaturedpromoProductsGetRequest() *AliexpressAffiliateFeaturedpromoProductsGetAPIRequest{ + return &AliexpressAffiliateFeaturedpromoProductsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) GetApiMethodName() string { + return "aliexpress.affiliate.featuredpromo.products.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppSignature Setter +// 请求签名 +func (r *AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) SetAppSignature(_appSignature string) error { + r._appSignature = _appSignature + r.Set("app_signature", _appSignature) + return nil +} + +// AppSignature Getter +func (r AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) GetAppSignature() string { + return r._appSignature +} +// CategoryId Setter +// 类目 ID 如何获取category_id,请参考,https://open.taobao.com/api.htm?docId=45801&docType=2&scopeId=17063 +func (r *AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) SetCategoryId(_categoryId string) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) GetCategoryId() string { + return r._categoryId +} +// Fields Setter +// 返回字段列表 +func (r *AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) GetFields() string { + return r._fields +} +// PageNo Setter +// 查询页码 +func (r *AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页记录数,1-50 +func (r *AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PromotionEndTime Setter +// 活动结束时间,PST 时区 +func (r *AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) SetPromotionEndTime(_promotionEndTime string) error { + r._promotionEndTime = _promotionEndTime + r.Set("promotion_end_time", _promotionEndTime) + return nil +} + +// PromotionEndTime Getter +func (r AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) GetPromotionEndTime() string { + return r._promotionEndTime +} +// PromotionName Setter +// 主题活动的名称,如何获取主题活动,请参考"get featuredpromo info" API. 固定主题:高佣品(Hot Product)、新品(New Arrival)、热销商品(Best Seller)、每周尖货(weeklydeals) +func (r *AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) SetPromotionName(_promotionName string) error { + r._promotionName = _promotionName + r.Set("promotion_name", _promotionName) + return nil +} + +// PromotionName Getter +func (r AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) GetPromotionName() string { + return r._promotionName +} +// PromotionStartTime Setter +// 活动开始时间,PST 时区 +func (r *AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) SetPromotionStartTime(_promotionStartTime string) error { + r._promotionStartTime = _promotionStartTime + r.Set("promotion_start_time", _promotionStartTime) + return nil +} + +// PromotionStartTime Getter +func (r AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) GetPromotionStartTime() string { + return r._promotionStartTime +} +// Sort Setter +// 排序方式:commissionAsc,commissionDesc, priceAsc,priceDesc,volumeAsc、volumeDesc, discountAsc, discountDesc, ratingAsc,ratingDesc, promotionTimeAsc, pr +func (r *AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) SetSort(_sort string) error { + r._sort = _sort + r.Set("sort", _sort) + return nil +} + +// Sort Getter +func (r AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) GetSort() string { + return r._sort +} +// TargetCurrency Setter +// 目标币种,可根据目标币种返回对应币种:USD, GBP, CAD, EUR, UAH, MXN, TRY, RUB, BRL, AUD, INR, JPY, IDR, SEK,KRW +func (r *AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) SetTargetCurrency(_targetCurrency string) error { + r._targetCurrency = _targetCurrency + r.Set("target_currency", _targetCurrency) + return nil +} + +// TargetCurrency Getter +func (r AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) GetTargetCurrency() string { + return r._targetCurrency +} +// TargetLanguage Setter +// 目标语言,可根据目标语言返回对应语言:EN,RU,PT,ES,FR,ID,IT,TH,JA,AR,VI,TR,DE,HE,KO,NL,PL,MX,CL,IN +func (r *AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) SetTargetLanguage(_targetLanguage string) error { + r._targetLanguage = _targetLanguage + r.Set("target_language", _targetLanguage) + return nil +} + +// TargetLanguage Getter +func (r AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) GetTargetLanguage() string { + return r._targetLanguage +} +// TrackingId Setter +// trackingID +func (r *AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) SetTrackingId(_trackingId string) error { + r._trackingId = _trackingId + r.Set("tracking_id", _trackingId) + return nil +} + +// TrackingId Getter +func (r AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) GetTrackingId() string { + return r._trackingId +} +// Country Setter +// 商品收货国家,可筛选能销售至该国家的商品,并根据该国家税率政策返回对应商品价格 +func (r *AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) SetCountry(_country string) error { + r._country = _country + r.Set("country", _country) + return nil +} + +// Country Getter +func (r AliexpressAffiliateFeaturedpromoProductsGetAPIRequest) GetCountry() string { + return r._country +} diff --git a/model/aecreatives/AliexpressAffiliateFeaturedpromoProductsGetAPIResponse.go b/model/aecreatives/AliexpressAffiliateFeaturedpromoProductsGetAPIResponse.go new file mode 100644 index 0000000000..dc57eae2e8 --- /dev/null +++ b/model/aecreatives/AliexpressAffiliateFeaturedpromoProductsGetAPIResponse.go @@ -0,0 +1,27 @@ +package aecreatives + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +联盟主题推广活动商品信息获取 API返回值 +aliexpress.affiliate.featuredpromo.products.get + +根据联盟主题推广活动或主题品库查询对应的商品。如下品库为固定品库,可长期调用。品库类型和名称如下:高佣品(Hot Product)、新品(New Arrival)、热销商品(Best Seller)、每周尖货(weeklydeals) +*/ +type AliexpressAffiliateFeaturedpromoProductsGetAPIResponse struct { + model.CommonResponse + AliexpressAffiliateFeaturedpromoProductsGetAPIResponseModel +} + +// 联盟主题推广活动商品信息获取 成功返回结果 +type AliexpressAffiliateFeaturedpromoProductsGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_affiliate_featuredpromo_products_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + RespResult *ResponseDto `json:"resp_result,omitempty" xml:"resp_result,omitempty"` +} diff --git a/model/aecreatives/AliexpressAffiliateHotproductDownloadAPIRequest.go b/model/aecreatives/AliexpressAffiliateHotproductDownloadAPIRequest.go new file mode 100644 index 0000000000..fc23a8194c --- /dev/null +++ b/model/aecreatives/AliexpressAffiliateHotproductDownloadAPIRequest.go @@ -0,0 +1,178 @@ +package aecreatives + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +联盟营销爆品下载接口 API请求 +aliexpress.affiliate.hotproduct.download + +查询联盟爆品API +*/ +type AliexpressAffiliateHotproductDownloadAPIRequest struct { + model.Params + // trackingId + _trackingId string + // 请求签名 + _appSignature string + // 类目ID + _categoryId string + // 返回字段列表 + _fields string + // 站点商品标:global,it_site,es_site,ru_site + _localeSite string + // 请求页数 + _pageNo int64 + // 每次请求数量 + _pageSize int64 + // 目标币种:USD, GBP, CAD, EUR, UAH, MXN, TRY, RUB, BRL, AUD, INR, JPY, IDR, SEK,KRW + _targetCurrency string + // 目标语言:EN,RU,PT,ES,FR,ID,IT,TH,JA,AR,VI,TR,DE,HE,KO,NL,PL,MX,CL,IW,IN + _targetLanguage string + // 收货国家,可筛选能销售至该国家的商品,并根据该国家税率政策返回对应商品价格 + _country string +} + +// 初始化AliexpressAffiliateHotproductDownloadAPIRequest对象 +func NewAliexpressAffiliateHotproductDownloadRequest() *AliexpressAffiliateHotproductDownloadAPIRequest{ + return &AliexpressAffiliateHotproductDownloadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAffiliateHotproductDownloadAPIRequest) GetApiMethodName() string { + return "aliexpress.affiliate.hotproduct.download" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAffiliateHotproductDownloadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TrackingId Setter +// trackingId +func (r *AliexpressAffiliateHotproductDownloadAPIRequest) SetTrackingId(_trackingId string) error { + r._trackingId = _trackingId + r.Set("tracking_id", _trackingId) + return nil +} + +// TrackingId Getter +func (r AliexpressAffiliateHotproductDownloadAPIRequest) GetTrackingId() string { + return r._trackingId +} +// AppSignature Setter +// 请求签名 +func (r *AliexpressAffiliateHotproductDownloadAPIRequest) SetAppSignature(_appSignature string) error { + r._appSignature = _appSignature + r.Set("app_signature", _appSignature) + return nil +} + +// AppSignature Getter +func (r AliexpressAffiliateHotproductDownloadAPIRequest) GetAppSignature() string { + return r._appSignature +} +// CategoryId Setter +// 类目ID +func (r *AliexpressAffiliateHotproductDownloadAPIRequest) SetCategoryId(_categoryId string) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r AliexpressAffiliateHotproductDownloadAPIRequest) GetCategoryId() string { + return r._categoryId +} +// Fields Setter +// 返回字段列表 +func (r *AliexpressAffiliateHotproductDownloadAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r AliexpressAffiliateHotproductDownloadAPIRequest) GetFields() string { + return r._fields +} +// LocaleSite Setter +// 站点商品标:global,it_site,es_site,ru_site +func (r *AliexpressAffiliateHotproductDownloadAPIRequest) SetLocaleSite(_localeSite string) error { + r._localeSite = _localeSite + r.Set("locale_site", _localeSite) + return nil +} + +// LocaleSite Getter +func (r AliexpressAffiliateHotproductDownloadAPIRequest) GetLocaleSite() string { + return r._localeSite +} +// PageNo Setter +// 请求页数 +func (r *AliexpressAffiliateHotproductDownloadAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r AliexpressAffiliateHotproductDownloadAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每次请求数量 +func (r *AliexpressAffiliateHotproductDownloadAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AliexpressAffiliateHotproductDownloadAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// TargetCurrency Setter +// 目标币种:USD, GBP, CAD, EUR, UAH, MXN, TRY, RUB, BRL, AUD, INR, JPY, IDR, SEK,KRW +func (r *AliexpressAffiliateHotproductDownloadAPIRequest) SetTargetCurrency(_targetCurrency string) error { + r._targetCurrency = _targetCurrency + r.Set("target_currency", _targetCurrency) + return nil +} + +// TargetCurrency Getter +func (r AliexpressAffiliateHotproductDownloadAPIRequest) GetTargetCurrency() string { + return r._targetCurrency +} +// TargetLanguage Setter +// 目标语言:EN,RU,PT,ES,FR,ID,IT,TH,JA,AR,VI,TR,DE,HE,KO,NL,PL,MX,CL,IW,IN +func (r *AliexpressAffiliateHotproductDownloadAPIRequest) SetTargetLanguage(_targetLanguage string) error { + r._targetLanguage = _targetLanguage + r.Set("target_language", _targetLanguage) + return nil +} + +// TargetLanguage Getter +func (r AliexpressAffiliateHotproductDownloadAPIRequest) GetTargetLanguage() string { + return r._targetLanguage +} +// Country Setter +// 收货国家,可筛选能销售至该国家的商品,并根据该国家税率政策返回对应商品价格 +func (r *AliexpressAffiliateHotproductDownloadAPIRequest) SetCountry(_country string) error { + r._country = _country + r.Set("country", _country) + return nil +} + +// Country Getter +func (r AliexpressAffiliateHotproductDownloadAPIRequest) GetCountry() string { + return r._country +} diff --git a/model/aecreatives/AliexpressAffiliateHotproductDownloadAPIResponse.go b/model/aecreatives/AliexpressAffiliateHotproductDownloadAPIResponse.go new file mode 100644 index 0000000000..f00029c4b5 --- /dev/null +++ b/model/aecreatives/AliexpressAffiliateHotproductDownloadAPIResponse.go @@ -0,0 +1,27 @@ +package aecreatives + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +联盟营销爆品下载接口 API返回值 +aliexpress.affiliate.hotproduct.download + +查询联盟爆品API +*/ +type AliexpressAffiliateHotproductDownloadAPIResponse struct { + model.CommonResponse + AliexpressAffiliateHotproductDownloadAPIResponseModel +} + +// 联盟营销爆品下载接口 成功返回结果 +type AliexpressAffiliateHotproductDownloadAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_affiliate_hotproduct_download_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + RespResult *ResponseDto `json:"resp_result,omitempty" xml:"resp_result,omitempty"` +} diff --git a/model/aecreatives/AliexpressAffiliateHotproductQueryAPIRequest.go b/model/aecreatives/AliexpressAffiliateHotproductQueryAPIRequest.go new file mode 100644 index 0000000000..114ccc16c1 --- /dev/null +++ b/model/aecreatives/AliexpressAffiliateHotproductQueryAPIRequest.go @@ -0,0 +1,248 @@ +package aecreatives + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询联盟爆品数据 API请求 +aliexpress.affiliate.hotproduct.query + +查询联盟爆品API +*/ +type AliexpressAffiliateHotproductQueryAPIRequest struct { + model.Params + // 请求签名 + _appSignature string + // 类目ID列表 + _categoryIds string + // 返回字段列表 + _fields string + // 关键词 + _keywords string + // 最大售价 + _maxSalePrice int64 + // 最小售价 + _minSalePrice int64 + // 请求页数 + _pageNo int64 + // 每次请求数量 + _pageSize int64 + // 平台商家类型:ALL,PLAZA,TMALL + _platformProductType string + // 排序方式:SALE_PRICE_ASC, SALE_PRICE_DESC, DISCOUNT_ASC, DISCOUNT_DESC, LAST_VOLUME_ASC, LAST_VOLUME_DESC + _sort string + // 目标币种:USD, GBP, CAD, EUR, UAH, MXN, TRY, RUB, BRL, AUD, INR, JPY, IDR, SEK,KRW + _targetCurrency string + // 目标语言:EN,RU,PT,ES,FR,ID,IT,TH,JA,AR,VI,TR,DE,HE,KO,NL,PL,MX,CL,IW,IN + _targetLanguage string + // trackingId + _trackingId string + // 物流到达时间。3:3日达,5:5 日达,7:7日达,10:10日达 + _deliveryDays string + // 商品收货国家,根据该国家税率政策返回对应商品价格 + _shipToCountry string +} + +// 初始化AliexpressAffiliateHotproductQueryAPIRequest对象 +func NewAliexpressAffiliateHotproductQueryRequest() *AliexpressAffiliateHotproductQueryAPIRequest{ + return &AliexpressAffiliateHotproductQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAffiliateHotproductQueryAPIRequest) GetApiMethodName() string { + return "aliexpress.affiliate.hotproduct.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAffiliateHotproductQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppSignature Setter +// 请求签名 +func (r *AliexpressAffiliateHotproductQueryAPIRequest) SetAppSignature(_appSignature string) error { + r._appSignature = _appSignature + r.Set("app_signature", _appSignature) + return nil +} + +// AppSignature Getter +func (r AliexpressAffiliateHotproductQueryAPIRequest) GetAppSignature() string { + return r._appSignature +} +// CategoryIds Setter +// 类目ID列表 +func (r *AliexpressAffiliateHotproductQueryAPIRequest) SetCategoryIds(_categoryIds string) error { + r._categoryIds = _categoryIds + r.Set("category_ids", _categoryIds) + return nil +} + +// CategoryIds Getter +func (r AliexpressAffiliateHotproductQueryAPIRequest) GetCategoryIds() string { + return r._categoryIds +} +// Fields Setter +// 返回字段列表 +func (r *AliexpressAffiliateHotproductQueryAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r AliexpressAffiliateHotproductQueryAPIRequest) GetFields() string { + return r._fields +} +// Keywords Setter +// 关键词 +func (r *AliexpressAffiliateHotproductQueryAPIRequest) SetKeywords(_keywords string) error { + r._keywords = _keywords + r.Set("keywords", _keywords) + return nil +} + +// Keywords Getter +func (r AliexpressAffiliateHotproductQueryAPIRequest) GetKeywords() string { + return r._keywords +} +// MaxSalePrice Setter +// 最大售价 +func (r *AliexpressAffiliateHotproductQueryAPIRequest) SetMaxSalePrice(_maxSalePrice int64) error { + r._maxSalePrice = _maxSalePrice + r.Set("max_sale_price", _maxSalePrice) + return nil +} + +// MaxSalePrice Getter +func (r AliexpressAffiliateHotproductQueryAPIRequest) GetMaxSalePrice() int64 { + return r._maxSalePrice +} +// MinSalePrice Setter +// 最小售价 +func (r *AliexpressAffiliateHotproductQueryAPIRequest) SetMinSalePrice(_minSalePrice int64) error { + r._minSalePrice = _minSalePrice + r.Set("min_sale_price", _minSalePrice) + return nil +} + +// MinSalePrice Getter +func (r AliexpressAffiliateHotproductQueryAPIRequest) GetMinSalePrice() int64 { + return r._minSalePrice +} +// PageNo Setter +// 请求页数 +func (r *AliexpressAffiliateHotproductQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r AliexpressAffiliateHotproductQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每次请求数量 +func (r *AliexpressAffiliateHotproductQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AliexpressAffiliateHotproductQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PlatformProductType Setter +// 平台商家类型:ALL,PLAZA,TMALL +func (r *AliexpressAffiliateHotproductQueryAPIRequest) SetPlatformProductType(_platformProductType string) error { + r._platformProductType = _platformProductType + r.Set("platform_product_type", _platformProductType) + return nil +} + +// PlatformProductType Getter +func (r AliexpressAffiliateHotproductQueryAPIRequest) GetPlatformProductType() string { + return r._platformProductType +} +// Sort Setter +// 排序方式:SALE_PRICE_ASC, SALE_PRICE_DESC, DISCOUNT_ASC, DISCOUNT_DESC, LAST_VOLUME_ASC, LAST_VOLUME_DESC +func (r *AliexpressAffiliateHotproductQueryAPIRequest) SetSort(_sort string) error { + r._sort = _sort + r.Set("sort", _sort) + return nil +} + +// Sort Getter +func (r AliexpressAffiliateHotproductQueryAPIRequest) GetSort() string { + return r._sort +} +// TargetCurrency Setter +// 目标币种:USD, GBP, CAD, EUR, UAH, MXN, TRY, RUB, BRL, AUD, INR, JPY, IDR, SEK,KRW +func (r *AliexpressAffiliateHotproductQueryAPIRequest) SetTargetCurrency(_targetCurrency string) error { + r._targetCurrency = _targetCurrency + r.Set("target_currency", _targetCurrency) + return nil +} + +// TargetCurrency Getter +func (r AliexpressAffiliateHotproductQueryAPIRequest) GetTargetCurrency() string { + return r._targetCurrency +} +// TargetLanguage Setter +// 目标语言:EN,RU,PT,ES,FR,ID,IT,TH,JA,AR,VI,TR,DE,HE,KO,NL,PL,MX,CL,IW,IN +func (r *AliexpressAffiliateHotproductQueryAPIRequest) SetTargetLanguage(_targetLanguage string) error { + r._targetLanguage = _targetLanguage + r.Set("target_language", _targetLanguage) + return nil +} + +// TargetLanguage Getter +func (r AliexpressAffiliateHotproductQueryAPIRequest) GetTargetLanguage() string { + return r._targetLanguage +} +// TrackingId Setter +// trackingId +func (r *AliexpressAffiliateHotproductQueryAPIRequest) SetTrackingId(_trackingId string) error { + r._trackingId = _trackingId + r.Set("tracking_id", _trackingId) + return nil +} + +// TrackingId Getter +func (r AliexpressAffiliateHotproductQueryAPIRequest) GetTrackingId() string { + return r._trackingId +} +// DeliveryDays Setter +// 物流到达时间。3:3日达,5:5 日达,7:7日达,10:10日达 +func (r *AliexpressAffiliateHotproductQueryAPIRequest) SetDeliveryDays(_deliveryDays string) error { + r._deliveryDays = _deliveryDays + r.Set("delivery_days", _deliveryDays) + return nil +} + +// DeliveryDays Getter +func (r AliexpressAffiliateHotproductQueryAPIRequest) GetDeliveryDays() string { + return r._deliveryDays +} +// ShipToCountry Setter +// 商品收货国家,根据该国家税率政策返回对应商品价格 +func (r *AliexpressAffiliateHotproductQueryAPIRequest) SetShipToCountry(_shipToCountry string) error { + r._shipToCountry = _shipToCountry + r.Set("ship_to_country", _shipToCountry) + return nil +} + +// ShipToCountry Getter +func (r AliexpressAffiliateHotproductQueryAPIRequest) GetShipToCountry() string { + return r._shipToCountry +} diff --git a/model/aecreatives/AliexpressAffiliateHotproductQueryAPIResponse.go b/model/aecreatives/AliexpressAffiliateHotproductQueryAPIResponse.go new file mode 100644 index 0000000000..16511cabbd --- /dev/null +++ b/model/aecreatives/AliexpressAffiliateHotproductQueryAPIResponse.go @@ -0,0 +1,27 @@ +package aecreatives + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询联盟爆品数据 API返回值 +aliexpress.affiliate.hotproduct.query + +查询联盟爆品API +*/ +type AliexpressAffiliateHotproductQueryAPIResponse struct { + model.CommonResponse + AliexpressAffiliateHotproductQueryAPIResponseModel +} + +// 查询联盟爆品数据 成功返回结果 +type AliexpressAffiliateHotproductQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_affiliate_hotproduct_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + RespResult *ResponseDto `json:"resp_result,omitempty" xml:"resp_result,omitempty"` +} diff --git a/model/aecreatives/AliexpressAffiliateImageSearchAPIRequest.go b/model/aecreatives/AliexpressAffiliateImageSearchAPIRequest.go new file mode 100644 index 0000000000..9846d82274 --- /dev/null +++ b/model/aecreatives/AliexpressAffiliateImageSearchAPIRequest.go @@ -0,0 +1,192 @@ +package aecreatives + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +图搜 API请求 +aliexpress.affiliate.image.search + +图片搜索接口 +*/ +type AliexpressAffiliateImageSearchAPIRequest struct { + model.Params + // API signature + _appSignature string + // 请求字段 + _fields string + // 图片文件字节数组,最大不超过 100 KB + _imageFileBytes *model.File + // 图片类目倾向,不填则为最佳匹配。0 - 服装;3 - 包;4 - 鞋子;88888888 - 其他类目 + _imgCid string + // 媒体用户唯一识别号 + _mediaUserId string + // 搜索结果数量,最高 50 + _productCnt int64 + // ship-to 国家 + _shptTo string + // 排序方式:SALE_PRICE_ASC, SALE_PRICE_DESC,LAST_VOLUME_ASC, LAST_VOLUME_DESC + _sort string + // 目标币种:USD, GBP, CAD, EUR, UAH, MXN,TRY, RUB, BRL, AUD, INR, JPY, IDR, SEK,KRW + _targetCurrency string + // 目标语言:en,ru,pt,es,fr,id,it,th,ja,ar,vi,tr,de,he,ko,nl,pl,mx,cl,iw,in + _targetLanguage string + // 媒体 trackingid + _trackingId string +} + +// 初始化AliexpressAffiliateImageSearchAPIRequest对象 +func NewAliexpressAffiliateImageSearchRequest() *AliexpressAffiliateImageSearchAPIRequest{ + return &AliexpressAffiliateImageSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAffiliateImageSearchAPIRequest) GetApiMethodName() string { + return "aliexpress.affiliate.image.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAffiliateImageSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppSignature Setter +// API signature +func (r *AliexpressAffiliateImageSearchAPIRequest) SetAppSignature(_appSignature string) error { + r._appSignature = _appSignature + r.Set("app_signature", _appSignature) + return nil +} + +// AppSignature Getter +func (r AliexpressAffiliateImageSearchAPIRequest) GetAppSignature() string { + return r._appSignature +} +// Fields Setter +// 请求字段 +func (r *AliexpressAffiliateImageSearchAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r AliexpressAffiliateImageSearchAPIRequest) GetFields() string { + return r._fields +} +// ImageFileBytes Setter +// 图片文件字节数组,最大不超过 100 KB +func (r *AliexpressAffiliateImageSearchAPIRequest) SetImageFileBytes(_imageFileBytes *model.File) error { + r._imageFileBytes = _imageFileBytes + r.Set("image_file_bytes", _imageFileBytes) + return nil +} + +// ImageFileBytes Getter +func (r AliexpressAffiliateImageSearchAPIRequest) GetImageFileBytes() *model.File { + return r._imageFileBytes +} +// ImgCid Setter +// 图片类目倾向,不填则为最佳匹配。0 - 服装;3 - 包;4 - 鞋子;88888888 - 其他类目 +func (r *AliexpressAffiliateImageSearchAPIRequest) SetImgCid(_imgCid string) error { + r._imgCid = _imgCid + r.Set("img_cid", _imgCid) + return nil +} + +// ImgCid Getter +func (r AliexpressAffiliateImageSearchAPIRequest) GetImgCid() string { + return r._imgCid +} +// MediaUserId Setter +// 媒体用户唯一识别号 +func (r *AliexpressAffiliateImageSearchAPIRequest) SetMediaUserId(_mediaUserId string) error { + r._mediaUserId = _mediaUserId + r.Set("media_user_id", _mediaUserId) + return nil +} + +// MediaUserId Getter +func (r AliexpressAffiliateImageSearchAPIRequest) GetMediaUserId() string { + return r._mediaUserId +} +// ProductCnt Setter +// 搜索结果数量,最高 50 +func (r *AliexpressAffiliateImageSearchAPIRequest) SetProductCnt(_productCnt int64) error { + r._productCnt = _productCnt + r.Set("product_cnt", _productCnt) + return nil +} + +// ProductCnt Getter +func (r AliexpressAffiliateImageSearchAPIRequest) GetProductCnt() int64 { + return r._productCnt +} +// ShptTo Setter +// ship-to 国家 +func (r *AliexpressAffiliateImageSearchAPIRequest) SetShptTo(_shptTo string) error { + r._shptTo = _shptTo + r.Set("shpt_to", _shptTo) + return nil +} + +// ShptTo Getter +func (r AliexpressAffiliateImageSearchAPIRequest) GetShptTo() string { + return r._shptTo +} +// Sort Setter +// 排序方式:SALE_PRICE_ASC, SALE_PRICE_DESC,LAST_VOLUME_ASC, LAST_VOLUME_DESC +func (r *AliexpressAffiliateImageSearchAPIRequest) SetSort(_sort string) error { + r._sort = _sort + r.Set("sort", _sort) + return nil +} + +// Sort Getter +func (r AliexpressAffiliateImageSearchAPIRequest) GetSort() string { + return r._sort +} +// TargetCurrency Setter +// 目标币种:USD, GBP, CAD, EUR, UAH, MXN,TRY, RUB, BRL, AUD, INR, JPY, IDR, SEK,KRW +func (r *AliexpressAffiliateImageSearchAPIRequest) SetTargetCurrency(_targetCurrency string) error { + r._targetCurrency = _targetCurrency + r.Set("target_currency", _targetCurrency) + return nil +} + +// TargetCurrency Getter +func (r AliexpressAffiliateImageSearchAPIRequest) GetTargetCurrency() string { + return r._targetCurrency +} +// TargetLanguage Setter +// 目标语言:en,ru,pt,es,fr,id,it,th,ja,ar,vi,tr,de,he,ko,nl,pl,mx,cl,iw,in +func (r *AliexpressAffiliateImageSearchAPIRequest) SetTargetLanguage(_targetLanguage string) error { + r._targetLanguage = _targetLanguage + r.Set("target_language", _targetLanguage) + return nil +} + +// TargetLanguage Getter +func (r AliexpressAffiliateImageSearchAPIRequest) GetTargetLanguage() string { + return r._targetLanguage +} +// TrackingId Setter +// 媒体 trackingid +func (r *AliexpressAffiliateImageSearchAPIRequest) SetTrackingId(_trackingId string) error { + r._trackingId = _trackingId + r.Set("tracking_id", _trackingId) + return nil +} + +// TrackingId Getter +func (r AliexpressAffiliateImageSearchAPIRequest) GetTrackingId() string { + return r._trackingId +} diff --git a/model/aecreatives/AliexpressAffiliateImageSearchAPIResponse.go b/model/aecreatives/AliexpressAffiliateImageSearchAPIResponse.go new file mode 100644 index 0000000000..968280e4af --- /dev/null +++ b/model/aecreatives/AliexpressAffiliateImageSearchAPIResponse.go @@ -0,0 +1,27 @@ +package aecreatives + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +图搜 API返回值 +aliexpress.affiliate.image.search + +图片搜索接口 +*/ +type AliexpressAffiliateImageSearchAPIResponse struct { + model.CommonResponse + AliexpressAffiliateImageSearchAPIResponseModel +} + +// 图搜 成功返回结果 +type AliexpressAffiliateImageSearchAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_affiliate_image_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AliexpressAffiliateImageSearchResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aecreatives/AliexpressAffiliateProductQueryAPIRequest.go b/model/aecreatives/AliexpressAffiliateProductQueryAPIRequest.go new file mode 100644 index 0000000000..d3949e7f9f --- /dev/null +++ b/model/aecreatives/AliexpressAffiliateProductQueryAPIRequest.go @@ -0,0 +1,248 @@ +package aecreatives + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +联盟推广商品获取接口 API请求 +aliexpress.affiliate.product.query + +联盟推广商品搜索接口,用于搜索联盟推广商品数据 +*/ +type AliexpressAffiliateProductQueryAPIRequest struct { + model.Params + // 安全签名 + _appSignature string + // 类目ID列表 + _categoryIds string + // 返回字段列表 + _fields string + // 关键词 + _keywords string + // 最大售价 + _maxSalePrice int64 + // 最小售价 + _minSalePrice int64 + // 查询页码 + _pageNo int64 + // 每页记录数 + _pageSize int64 + // 平台商品类型:ALL,PLAZA,TMALL + _platformProductType string + // 排序方式:SALE_PRICE_ASC, SALE_PRICE_DESC, LAST_VOLUME_ASC, LAST_VOLUME_DESC + _sort string + // 目标币种:USD, GBP, CAD, EUR, UAH, MXN, TRY, RUB, BRL, AUD, INR, JPY, IDR, SEK,KRW + _targetCurrency string + // 目标语言:EN,RU,PT,ES,FR,ID,IT,TH,JA,AR,VI,TR,DE,HE,KO,NL,PL,MX,CL,IW,IN + _targetLanguage string + // trackingId + _trackingId string + // 商品收货国家,根据该国家税率政策返回对应商品价格 + _shipToCountry string + // 物流到达时间。3:3日达,5:5 日达,7:7日达,10:10日达 + _deliveryDays string +} + +// 初始化AliexpressAffiliateProductQueryAPIRequest对象 +func NewAliexpressAffiliateProductQueryRequest() *AliexpressAffiliateProductQueryAPIRequest{ + return &AliexpressAffiliateProductQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAffiliateProductQueryAPIRequest) GetApiMethodName() string { + return "aliexpress.affiliate.product.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAffiliateProductQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppSignature Setter +// 安全签名 +func (r *AliexpressAffiliateProductQueryAPIRequest) SetAppSignature(_appSignature string) error { + r._appSignature = _appSignature + r.Set("app_signature", _appSignature) + return nil +} + +// AppSignature Getter +func (r AliexpressAffiliateProductQueryAPIRequest) GetAppSignature() string { + return r._appSignature +} +// CategoryIds Setter +// 类目ID列表 +func (r *AliexpressAffiliateProductQueryAPIRequest) SetCategoryIds(_categoryIds string) error { + r._categoryIds = _categoryIds + r.Set("category_ids", _categoryIds) + return nil +} + +// CategoryIds Getter +func (r AliexpressAffiliateProductQueryAPIRequest) GetCategoryIds() string { + return r._categoryIds +} +// Fields Setter +// 返回字段列表 +func (r *AliexpressAffiliateProductQueryAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r AliexpressAffiliateProductQueryAPIRequest) GetFields() string { + return r._fields +} +// Keywords Setter +// 关键词 +func (r *AliexpressAffiliateProductQueryAPIRequest) SetKeywords(_keywords string) error { + r._keywords = _keywords + r.Set("keywords", _keywords) + return nil +} + +// Keywords Getter +func (r AliexpressAffiliateProductQueryAPIRequest) GetKeywords() string { + return r._keywords +} +// MaxSalePrice Setter +// 最大售价 +func (r *AliexpressAffiliateProductQueryAPIRequest) SetMaxSalePrice(_maxSalePrice int64) error { + r._maxSalePrice = _maxSalePrice + r.Set("max_sale_price", _maxSalePrice) + return nil +} + +// MaxSalePrice Getter +func (r AliexpressAffiliateProductQueryAPIRequest) GetMaxSalePrice() int64 { + return r._maxSalePrice +} +// MinSalePrice Setter +// 最小售价 +func (r *AliexpressAffiliateProductQueryAPIRequest) SetMinSalePrice(_minSalePrice int64) error { + r._minSalePrice = _minSalePrice + r.Set("min_sale_price", _minSalePrice) + return nil +} + +// MinSalePrice Getter +func (r AliexpressAffiliateProductQueryAPIRequest) GetMinSalePrice() int64 { + return r._minSalePrice +} +// PageNo Setter +// 查询页码 +func (r *AliexpressAffiliateProductQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r AliexpressAffiliateProductQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页记录数 +func (r *AliexpressAffiliateProductQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AliexpressAffiliateProductQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PlatformProductType Setter +// 平台商品类型:ALL,PLAZA,TMALL +func (r *AliexpressAffiliateProductQueryAPIRequest) SetPlatformProductType(_platformProductType string) error { + r._platformProductType = _platformProductType + r.Set("platform_product_type", _platformProductType) + return nil +} + +// PlatformProductType Getter +func (r AliexpressAffiliateProductQueryAPIRequest) GetPlatformProductType() string { + return r._platformProductType +} +// Sort Setter +// 排序方式:SALE_PRICE_ASC, SALE_PRICE_DESC, LAST_VOLUME_ASC, LAST_VOLUME_DESC +func (r *AliexpressAffiliateProductQueryAPIRequest) SetSort(_sort string) error { + r._sort = _sort + r.Set("sort", _sort) + return nil +} + +// Sort Getter +func (r AliexpressAffiliateProductQueryAPIRequest) GetSort() string { + return r._sort +} +// TargetCurrency Setter +// 目标币种:USD, GBP, CAD, EUR, UAH, MXN, TRY, RUB, BRL, AUD, INR, JPY, IDR, SEK,KRW +func (r *AliexpressAffiliateProductQueryAPIRequest) SetTargetCurrency(_targetCurrency string) error { + r._targetCurrency = _targetCurrency + r.Set("target_currency", _targetCurrency) + return nil +} + +// TargetCurrency Getter +func (r AliexpressAffiliateProductQueryAPIRequest) GetTargetCurrency() string { + return r._targetCurrency +} +// TargetLanguage Setter +// 目标语言:EN,RU,PT,ES,FR,ID,IT,TH,JA,AR,VI,TR,DE,HE,KO,NL,PL,MX,CL,IW,IN +func (r *AliexpressAffiliateProductQueryAPIRequest) SetTargetLanguage(_targetLanguage string) error { + r._targetLanguage = _targetLanguage + r.Set("target_language", _targetLanguage) + return nil +} + +// TargetLanguage Getter +func (r AliexpressAffiliateProductQueryAPIRequest) GetTargetLanguage() string { + return r._targetLanguage +} +// TrackingId Setter +// trackingId +func (r *AliexpressAffiliateProductQueryAPIRequest) SetTrackingId(_trackingId string) error { + r._trackingId = _trackingId + r.Set("tracking_id", _trackingId) + return nil +} + +// TrackingId Getter +func (r AliexpressAffiliateProductQueryAPIRequest) GetTrackingId() string { + return r._trackingId +} +// ShipToCountry Setter +// 商品收货国家,根据该国家税率政策返回对应商品价格 +func (r *AliexpressAffiliateProductQueryAPIRequest) SetShipToCountry(_shipToCountry string) error { + r._shipToCountry = _shipToCountry + r.Set("ship_to_country", _shipToCountry) + return nil +} + +// ShipToCountry Getter +func (r AliexpressAffiliateProductQueryAPIRequest) GetShipToCountry() string { + return r._shipToCountry +} +// DeliveryDays Setter +// 物流到达时间。3:3日达,5:5 日达,7:7日达,10:10日达 +func (r *AliexpressAffiliateProductQueryAPIRequest) SetDeliveryDays(_deliveryDays string) error { + r._deliveryDays = _deliveryDays + r.Set("delivery_days", _deliveryDays) + return nil +} + +// DeliveryDays Getter +func (r AliexpressAffiliateProductQueryAPIRequest) GetDeliveryDays() string { + return r._deliveryDays +} diff --git a/model/aecreatives/AliexpressAffiliateProductQueryAPIResponse.go b/model/aecreatives/AliexpressAffiliateProductQueryAPIResponse.go new file mode 100644 index 0000000000..70fb15fd58 --- /dev/null +++ b/model/aecreatives/AliexpressAffiliateProductQueryAPIResponse.go @@ -0,0 +1,27 @@ +package aecreatives + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +联盟推广商品获取接口 API返回值 +aliexpress.affiliate.product.query + +联盟推广商品搜索接口,用于搜索联盟推广商品数据 +*/ +type AliexpressAffiliateProductQueryAPIResponse struct { + model.CommonResponse + AliexpressAffiliateProductQueryAPIResponseModel +} + +// 联盟推广商品获取接口 成功返回结果 +type AliexpressAffiliateProductQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_affiliate_product_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + RespResult *ResponseDto `json:"resp_result,omitempty" xml:"resp_result,omitempty"` +} diff --git a/model/aecreatives/AliexpressAffiliateProductSmartmatchAPIRequest.go b/model/aecreatives/AliexpressAffiliateProductSmartmatchAPIRequest.go new file mode 100644 index 0000000000..d9333e1be7 --- /dev/null +++ b/model/aecreatives/AliexpressAffiliateProductSmartmatchAPIRequest.go @@ -0,0 +1,234 @@ +package aecreatives + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +联盟物料智能推荐api API请求 +aliexpress.affiliate.product.smartmatch + +联盟物料算法智能推荐 +*/ +type AliexpressAffiliateProductSmartmatchAPIRequest struct { + model.Params + // 接入APP信息 + _app string + // 请求签名 + _appSignature string + // 设备信息 + _device string + // adid或者idfa + _deviceId string + // 返回字段列表 + _fields string + // 关键词 + _keywords string + // 商品ID + _productId string + // 站点信息 + _site string + // 目标币种:USD, GBP, CAD, EUR, UAH, MXN, TRY, RUB, BRL, AUD, INR, JPY, IDR, SEK,KRW + _targetCurrency string + // 目标语言:EN,RU,PT,ES,FR,ID,IT,TH,JA,AR,VI,TR,DE,HE,KO,NL,PL,MX,CL,IW,IN + _targetLanguage string + // trackingId + _trackingId string + // 用户信息 + _user string + // 请求页数 + _pageNo int64 + // 商品收货国家,可筛选能销售至该国家的商品,并根据该国家税率政策返回对应商品价格 + _country string +} + +// 初始化AliexpressAffiliateProductSmartmatchAPIRequest对象 +func NewAliexpressAffiliateProductSmartmatchRequest() *AliexpressAffiliateProductSmartmatchAPIRequest{ + return &AliexpressAffiliateProductSmartmatchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAffiliateProductSmartmatchAPIRequest) GetApiMethodName() string { + return "aliexpress.affiliate.product.smartmatch" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAffiliateProductSmartmatchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// App Setter +// 接入APP信息 +func (r *AliexpressAffiliateProductSmartmatchAPIRequest) SetApp(_app string) error { + r._app = _app + r.Set("app", _app) + return nil +} + +// App Getter +func (r AliexpressAffiliateProductSmartmatchAPIRequest) GetApp() string { + return r._app +} +// AppSignature Setter +// 请求签名 +func (r *AliexpressAffiliateProductSmartmatchAPIRequest) SetAppSignature(_appSignature string) error { + r._appSignature = _appSignature + r.Set("app_signature", _appSignature) + return nil +} + +// AppSignature Getter +func (r AliexpressAffiliateProductSmartmatchAPIRequest) GetAppSignature() string { + return r._appSignature +} +// Device Setter +// 设备信息 +func (r *AliexpressAffiliateProductSmartmatchAPIRequest) SetDevice(_device string) error { + r._device = _device + r.Set("device", _device) + return nil +} + +// Device Getter +func (r AliexpressAffiliateProductSmartmatchAPIRequest) GetDevice() string { + return r._device +} +// DeviceId Setter +// adid或者idfa +func (r *AliexpressAffiliateProductSmartmatchAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r AliexpressAffiliateProductSmartmatchAPIRequest) GetDeviceId() string { + return r._deviceId +} +// Fields Setter +// 返回字段列表 +func (r *AliexpressAffiliateProductSmartmatchAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r AliexpressAffiliateProductSmartmatchAPIRequest) GetFields() string { + return r._fields +} +// Keywords Setter +// 关键词 +func (r *AliexpressAffiliateProductSmartmatchAPIRequest) SetKeywords(_keywords string) error { + r._keywords = _keywords + r.Set("keywords", _keywords) + return nil +} + +// Keywords Getter +func (r AliexpressAffiliateProductSmartmatchAPIRequest) GetKeywords() string { + return r._keywords +} +// ProductId Setter +// 商品ID +func (r *AliexpressAffiliateProductSmartmatchAPIRequest) SetProductId(_productId string) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r AliexpressAffiliateProductSmartmatchAPIRequest) GetProductId() string { + return r._productId +} +// Site Setter +// 站点信息 +func (r *AliexpressAffiliateProductSmartmatchAPIRequest) SetSite(_site string) error { + r._site = _site + r.Set("site", _site) + return nil +} + +// Site Getter +func (r AliexpressAffiliateProductSmartmatchAPIRequest) GetSite() string { + return r._site +} +// TargetCurrency Setter +// 目标币种:USD, GBP, CAD, EUR, UAH, MXN, TRY, RUB, BRL, AUD, INR, JPY, IDR, SEK,KRW +func (r *AliexpressAffiliateProductSmartmatchAPIRequest) SetTargetCurrency(_targetCurrency string) error { + r._targetCurrency = _targetCurrency + r.Set("target_currency", _targetCurrency) + return nil +} + +// TargetCurrency Getter +func (r AliexpressAffiliateProductSmartmatchAPIRequest) GetTargetCurrency() string { + return r._targetCurrency +} +// TargetLanguage Setter +// 目标语言:EN,RU,PT,ES,FR,ID,IT,TH,JA,AR,VI,TR,DE,HE,KO,NL,PL,MX,CL,IW,IN +func (r *AliexpressAffiliateProductSmartmatchAPIRequest) SetTargetLanguage(_targetLanguage string) error { + r._targetLanguage = _targetLanguage + r.Set("target_language", _targetLanguage) + return nil +} + +// TargetLanguage Getter +func (r AliexpressAffiliateProductSmartmatchAPIRequest) GetTargetLanguage() string { + return r._targetLanguage +} +// TrackingId Setter +// trackingId +func (r *AliexpressAffiliateProductSmartmatchAPIRequest) SetTrackingId(_trackingId string) error { + r._trackingId = _trackingId + r.Set("tracking_id", _trackingId) + return nil +} + +// TrackingId Getter +func (r AliexpressAffiliateProductSmartmatchAPIRequest) GetTrackingId() string { + return r._trackingId +} +// User Setter +// 用户信息 +func (r *AliexpressAffiliateProductSmartmatchAPIRequest) SetUser(_user string) error { + r._user = _user + r.Set("user", _user) + return nil +} + +// User Getter +func (r AliexpressAffiliateProductSmartmatchAPIRequest) GetUser() string { + return r._user +} +// PageNo Setter +// 请求页数 +func (r *AliexpressAffiliateProductSmartmatchAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r AliexpressAffiliateProductSmartmatchAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// Country Setter +// 商品收货国家,可筛选能销售至该国家的商品,并根据该国家税率政策返回对应商品价格 +func (r *AliexpressAffiliateProductSmartmatchAPIRequest) SetCountry(_country string) error { + r._country = _country + r.Set("country", _country) + return nil +} + +// Country Getter +func (r AliexpressAffiliateProductSmartmatchAPIRequest) GetCountry() string { + return r._country +} diff --git a/model/aecreatives/AliexpressAffiliateProductSmartmatchAPIResponse.go b/model/aecreatives/AliexpressAffiliateProductSmartmatchAPIResponse.go new file mode 100644 index 0000000000..31437fc68f --- /dev/null +++ b/model/aecreatives/AliexpressAffiliateProductSmartmatchAPIResponse.go @@ -0,0 +1,27 @@ +package aecreatives + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +联盟物料智能推荐api API返回值 +aliexpress.affiliate.product.smartmatch + +联盟物料算法智能推荐 +*/ +type AliexpressAffiliateProductSmartmatchAPIResponse struct { + model.CommonResponse + AliexpressAffiliateProductSmartmatchAPIResponseModel +} + +// 联盟物料智能推荐api 成功返回结果 +type AliexpressAffiliateProductSmartmatchAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_affiliate_product_smartmatch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + RespResult *ResponseDto `json:"resp_result,omitempty" xml:"resp_result,omitempty"` +} diff --git a/model/aecreatives/AliexpressAffiliateProductdetailGetAPIRequest.go b/model/aecreatives/AliexpressAffiliateProductdetailGetAPIRequest.go new file mode 100644 index 0000000000..b0625e3cf9 --- /dev/null +++ b/model/aecreatives/AliexpressAffiliateProductdetailGetAPIRequest.go @@ -0,0 +1,136 @@ +package aecreatives + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +联盟商品详情获取接口 API请求 +aliexpress.affiliate.productdetail.get + +联盟推广商品搜索接口,用于搜索联盟推广商品数据 +*/ +type AliexpressAffiliateProductdetailGetAPIRequest struct { + model.Params + // 安全签名 + _appSignature string + // commission_rate,sale_price + _fields string + // 商品ID列表 + _productIds string + // 目标币种:USD, GBP, CAD, EUR, UAH, MXN, TRY, RUB, BRL, AUD, INR, JPY, IDR, SEK,KRW + _targetCurrency string + // 目标语言:EN,RU,PT,ES,FR,ID,IT,TH,JA,AR,VI,TR,DE,HE,KO,NL,PL,MX,CL,IW,IN + _targetLanguage string + // trackingId + _trackingId string + // 商品收货国家,可筛选能销售至该国家的商品,并根据该国家税率政策返回对应商品价格 + _country string +} + +// 初始化AliexpressAffiliateProductdetailGetAPIRequest对象 +func NewAliexpressAffiliateProductdetailGetRequest() *AliexpressAffiliateProductdetailGetAPIRequest{ + return &AliexpressAffiliateProductdetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAffiliateProductdetailGetAPIRequest) GetApiMethodName() string { + return "aliexpress.affiliate.productdetail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAffiliateProductdetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppSignature Setter +// 安全签名 +func (r *AliexpressAffiliateProductdetailGetAPIRequest) SetAppSignature(_appSignature string) error { + r._appSignature = _appSignature + r.Set("app_signature", _appSignature) + return nil +} + +// AppSignature Getter +func (r AliexpressAffiliateProductdetailGetAPIRequest) GetAppSignature() string { + return r._appSignature +} +// Fields Setter +// commission_rate,sale_price +func (r *AliexpressAffiliateProductdetailGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r AliexpressAffiliateProductdetailGetAPIRequest) GetFields() string { + return r._fields +} +// ProductIds Setter +// 商品ID列表 +func (r *AliexpressAffiliateProductdetailGetAPIRequest) SetProductIds(_productIds string) error { + r._productIds = _productIds + r.Set("product_ids", _productIds) + return nil +} + +// ProductIds Getter +func (r AliexpressAffiliateProductdetailGetAPIRequest) GetProductIds() string { + return r._productIds +} +// TargetCurrency Setter +// 目标币种:USD, GBP, CAD, EUR, UAH, MXN, TRY, RUB, BRL, AUD, INR, JPY, IDR, SEK,KRW +func (r *AliexpressAffiliateProductdetailGetAPIRequest) SetTargetCurrency(_targetCurrency string) error { + r._targetCurrency = _targetCurrency + r.Set("target_currency", _targetCurrency) + return nil +} + +// TargetCurrency Getter +func (r AliexpressAffiliateProductdetailGetAPIRequest) GetTargetCurrency() string { + return r._targetCurrency +} +// TargetLanguage Setter +// 目标语言:EN,RU,PT,ES,FR,ID,IT,TH,JA,AR,VI,TR,DE,HE,KO,NL,PL,MX,CL,IW,IN +func (r *AliexpressAffiliateProductdetailGetAPIRequest) SetTargetLanguage(_targetLanguage string) error { + r._targetLanguage = _targetLanguage + r.Set("target_language", _targetLanguage) + return nil +} + +// TargetLanguage Getter +func (r AliexpressAffiliateProductdetailGetAPIRequest) GetTargetLanguage() string { + return r._targetLanguage +} +// TrackingId Setter +// trackingId +func (r *AliexpressAffiliateProductdetailGetAPIRequest) SetTrackingId(_trackingId string) error { + r._trackingId = _trackingId + r.Set("tracking_id", _trackingId) + return nil +} + +// TrackingId Getter +func (r AliexpressAffiliateProductdetailGetAPIRequest) GetTrackingId() string { + return r._trackingId +} +// Country Setter +// 商品收货国家,可筛选能销售至该国家的商品,并根据该国家税率政策返回对应商品价格 +func (r *AliexpressAffiliateProductdetailGetAPIRequest) SetCountry(_country string) error { + r._country = _country + r.Set("country", _country) + return nil +} + +// Country Getter +func (r AliexpressAffiliateProductdetailGetAPIRequest) GetCountry() string { + return r._country +} diff --git a/model/aecreatives/AliexpressAffiliateProductdetailGetAPIResponse.go b/model/aecreatives/AliexpressAffiliateProductdetailGetAPIResponse.go new file mode 100644 index 0000000000..4d983c6d06 --- /dev/null +++ b/model/aecreatives/AliexpressAffiliateProductdetailGetAPIResponse.go @@ -0,0 +1,27 @@ +package aecreatives + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +联盟商品详情获取接口 API返回值 +aliexpress.affiliate.productdetail.get + +联盟推广商品搜索接口,用于搜索联盟推广商品数据 +*/ +type AliexpressAffiliateProductdetailGetAPIResponse struct { + model.CommonResponse + AliexpressAffiliateProductdetailGetAPIResponseModel +} + +// 联盟商品详情获取接口 成功返回结果 +type AliexpressAffiliateProductdetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_affiliate_productdetail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + RespResult *ResponseDto `json:"resp_result,omitempty" xml:"resp_result,omitempty"` +} diff --git a/model/aedata/AliexpressAffiliateOrderGetAPIRequest.go b/model/aedata/AliexpressAffiliateOrderGetAPIRequest.go new file mode 100644 index 0000000000..09a4673a15 --- /dev/null +++ b/model/aedata/AliexpressAffiliateOrderGetAPIRequest.go @@ -0,0 +1,80 @@ +package aedata + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AE流量订单详情获取API API请求 +aliexpress.affiliate.order.get + +联盟推广订单效果获取API +*/ +type AliexpressAffiliateOrderGetAPIRequest struct { + model.Params + // 安全签名 + _appSignature string + // 返回的字段列表 + _fields string + // 订单ID列表,以逗号分隔,当前只支持子订单ID查询 + _orderIds string +} + +// 初始化AliexpressAffiliateOrderGetAPIRequest对象 +func NewAliexpressAffiliateOrderGetRequest() *AliexpressAffiliateOrderGetAPIRequest{ + return &AliexpressAffiliateOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAffiliateOrderGetAPIRequest) GetApiMethodName() string { + return "aliexpress.affiliate.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAffiliateOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppSignature Setter +// 安全签名 +func (r *AliexpressAffiliateOrderGetAPIRequest) SetAppSignature(_appSignature string) error { + r._appSignature = _appSignature + r.Set("app_signature", _appSignature) + return nil +} + +// AppSignature Getter +func (r AliexpressAffiliateOrderGetAPIRequest) GetAppSignature() string { + return r._appSignature +} +// Fields Setter +// 返回的字段列表 +func (r *AliexpressAffiliateOrderGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r AliexpressAffiliateOrderGetAPIRequest) GetFields() string { + return r._fields +} +// OrderIds Setter +// 订单ID列表,以逗号分隔,当前只支持子订单ID查询 +func (r *AliexpressAffiliateOrderGetAPIRequest) SetOrderIds(_orderIds string) error { + r._orderIds = _orderIds + r.Set("order_ids", _orderIds) + return nil +} + +// OrderIds Getter +func (r AliexpressAffiliateOrderGetAPIRequest) GetOrderIds() string { + return r._orderIds +} diff --git a/model/aedata/AliexpressAffiliateOrderGetAPIResponse.go b/model/aedata/AliexpressAffiliateOrderGetAPIResponse.go new file mode 100644 index 0000000000..f3d2b8403e --- /dev/null +++ b/model/aedata/AliexpressAffiliateOrderGetAPIResponse.go @@ -0,0 +1,27 @@ +package aedata + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AE流量订单详情获取API API返回值 +aliexpress.affiliate.order.get + +联盟推广订单效果获取API +*/ +type AliexpressAffiliateOrderGetAPIResponse struct { + model.CommonResponse + AliexpressAffiliateOrderGetAPIResponseModel +} + +// AE流量订单详情获取API 成功返回结果 +type AliexpressAffiliateOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_affiliate_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + RespResult *ResponseDto `json:"resp_result,omitempty" xml:"resp_result,omitempty"` +} diff --git a/model/aedata/AliexpressAffiliateOrderGetResponse.go b/model/aedata/AliexpressAffiliateOrderGetResponse.go deleted file mode 100644 index 4418f841a4..0000000000 --- a/model/aedata/AliexpressAffiliateOrderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aedata - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AE流量订单详情获取API API返回值 -aliexpress.affiliate.order.get - -联盟推广订单效果获取API -*/ -type AliexpressAffiliateOrderGetAPIResponse struct { - model.CommonResponse - AliexpressAffiliateOrderGetResponse -} - -// AE流量订单详情获取API 成功返回结果 -type AliexpressAffiliateOrderGetResponse struct { - XMLName xml.Name `xml:"aliexpress_affiliate_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - RespResult *ResponseDto `json:"resp_result,omitempty" xml:"resp_result,omitempty"` -} diff --git a/model/aedata/AliexpressAffiliateOrderListAPIRequest.go b/model/aedata/AliexpressAffiliateOrderListAPIRequest.go new file mode 100644 index 0000000000..fd64dcf33b --- /dev/null +++ b/model/aedata/AliexpressAffiliateOrderListAPIRequest.go @@ -0,0 +1,150 @@ +package aedata + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AE推广者订单批量获取接口 API请求 +aliexpress.affiliate.order.list + +AE联盟推广者订单分页查询接口 +*/ +type AliexpressAffiliateOrderListAPIRequest struct { + model.Params + // 开始时间 + _startTime string + // 结束时间 + _endTime string + // 订单状态:Payment Completed,Buyer Confirmed Receipt + _status string + // 站点信息:global、ru_site、es_site、it_site + _localeSite string + // 页数 + _pageNo int64 + // 每页记录数 + _pageSize int64 + // 返回的字段信息 + _fields string + // 安全签名 + _appSignature string +} + +// 初始化AliexpressAffiliateOrderListAPIRequest对象 +func NewAliexpressAffiliateOrderListRequest() *AliexpressAffiliateOrderListAPIRequest{ + return &AliexpressAffiliateOrderListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAffiliateOrderListAPIRequest) GetApiMethodName() string { + return "aliexpress.affiliate.order.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAffiliateOrderListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartTime Setter +// 开始时间 +func (r *AliexpressAffiliateOrderListAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r AliexpressAffiliateOrderListAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束时间 +func (r *AliexpressAffiliateOrderListAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r AliexpressAffiliateOrderListAPIRequest) GetEndTime() string { + return r._endTime +} +// Status Setter +// 订单状态:Payment Completed,Buyer Confirmed Receipt +func (r *AliexpressAffiliateOrderListAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AliexpressAffiliateOrderListAPIRequest) GetStatus() string { + return r._status +} +// LocaleSite Setter +// 站点信息:global、ru_site、es_site、it_site +func (r *AliexpressAffiliateOrderListAPIRequest) SetLocaleSite(_localeSite string) error { + r._localeSite = _localeSite + r.Set("locale_site", _localeSite) + return nil +} + +// LocaleSite Getter +func (r AliexpressAffiliateOrderListAPIRequest) GetLocaleSite() string { + return r._localeSite +} +// PageNo Setter +// 页数 +func (r *AliexpressAffiliateOrderListAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r AliexpressAffiliateOrderListAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页记录数 +func (r *AliexpressAffiliateOrderListAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AliexpressAffiliateOrderListAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Fields Setter +// 返回的字段信息 +func (r *AliexpressAffiliateOrderListAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r AliexpressAffiliateOrderListAPIRequest) GetFields() string { + return r._fields +} +// AppSignature Setter +// 安全签名 +func (r *AliexpressAffiliateOrderListAPIRequest) SetAppSignature(_appSignature string) error { + r._appSignature = _appSignature + r.Set("app_signature", _appSignature) + return nil +} + +// AppSignature Getter +func (r AliexpressAffiliateOrderListAPIRequest) GetAppSignature() string { + return r._appSignature +} diff --git a/model/aedata/AliexpressAffiliateOrderListAPIResponse.go b/model/aedata/AliexpressAffiliateOrderListAPIResponse.go new file mode 100644 index 0000000000..443b984e13 --- /dev/null +++ b/model/aedata/AliexpressAffiliateOrderListAPIResponse.go @@ -0,0 +1,27 @@ +package aedata + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AE推广者订单批量获取接口 API返回值 +aliexpress.affiliate.order.list + +AE联盟推广者订单分页查询接口 +*/ +type AliexpressAffiliateOrderListAPIResponse struct { + model.CommonResponse + AliexpressAffiliateOrderListAPIResponseModel +} + +// AE推广者订单批量获取接口 成功返回结果 +type AliexpressAffiliateOrderListAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_affiliate_order_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + RespResult *ResponseDto `json:"resp_result,omitempty" xml:"resp_result,omitempty"` +} diff --git a/model/aedata/AliexpressAffiliateOrderListResponse.go b/model/aedata/AliexpressAffiliateOrderListResponse.go deleted file mode 100644 index eaeaa576fe..0000000000 --- a/model/aedata/AliexpressAffiliateOrderListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aedata - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AE推广者订单批量获取接口 API返回值 -aliexpress.affiliate.order.list - -AE联盟推广者订单分页查询接口 -*/ -type AliexpressAffiliateOrderListAPIResponse struct { - model.CommonResponse - AliexpressAffiliateOrderListResponse -} - -// AE推广者订单批量获取接口 成功返回结果 -type AliexpressAffiliateOrderListResponse struct { - XMLName xml.Name `xml:"aliexpress_affiliate_order_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - RespResult *ResponseDto `json:"resp_result,omitempty" xml:"resp_result,omitempty"` -} diff --git a/model/aedata/AliexpressAffiliateOrderListbyindexAPIRequest.go b/model/aedata/AliexpressAffiliateOrderListbyindexAPIRequest.go new file mode 100644 index 0000000000..48bf008df5 --- /dev/null +++ b/model/aedata/AliexpressAffiliateOrderListbyindexAPIRequest.go @@ -0,0 +1,136 @@ +package aedata + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AE联盟推广者订单查询接口-按游标索引查询 API请求 +aliexpress.affiliate.order.listbyindex + +AE联盟推广者订单按游标查询接口 +*/ +type AliexpressAffiliateOrderListbyindexAPIRequest struct { + model.Params + // 开始时间 + _startTime string + // 查询索引开始值:若不传,则只能查第一页 + _startQueryIndexId string + // 结束时间 + _endTime string + // 订单状态:Payment Completed,Buyer Confirmed Receipt + _status string + // 每页记录数 + _pageSize int64 + // 返回的字段信息 + _fields string + // 安全签名 + _appSignature string +} + +// 初始化AliexpressAffiliateOrderListbyindexAPIRequest对象 +func NewAliexpressAffiliateOrderListbyindexRequest() *AliexpressAffiliateOrderListbyindexAPIRequest{ + return &AliexpressAffiliateOrderListbyindexAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAffiliateOrderListbyindexAPIRequest) GetApiMethodName() string { + return "aliexpress.affiliate.order.listbyindex" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAffiliateOrderListbyindexAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartTime Setter +// 开始时间 +func (r *AliexpressAffiliateOrderListbyindexAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r AliexpressAffiliateOrderListbyindexAPIRequest) GetStartTime() string { + return r._startTime +} +// StartQueryIndexId Setter +// 查询索引开始值:若不传,则只能查第一页 +func (r *AliexpressAffiliateOrderListbyindexAPIRequest) SetStartQueryIndexId(_startQueryIndexId string) error { + r._startQueryIndexId = _startQueryIndexId + r.Set("start_query_index_id", _startQueryIndexId) + return nil +} + +// StartQueryIndexId Getter +func (r AliexpressAffiliateOrderListbyindexAPIRequest) GetStartQueryIndexId() string { + return r._startQueryIndexId +} +// EndTime Setter +// 结束时间 +func (r *AliexpressAffiliateOrderListbyindexAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r AliexpressAffiliateOrderListbyindexAPIRequest) GetEndTime() string { + return r._endTime +} +// Status Setter +// 订单状态:Payment Completed,Buyer Confirmed Receipt +func (r *AliexpressAffiliateOrderListbyindexAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AliexpressAffiliateOrderListbyindexAPIRequest) GetStatus() string { + return r._status +} +// PageSize Setter +// 每页记录数 +func (r *AliexpressAffiliateOrderListbyindexAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AliexpressAffiliateOrderListbyindexAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Fields Setter +// 返回的字段信息 +func (r *AliexpressAffiliateOrderListbyindexAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r AliexpressAffiliateOrderListbyindexAPIRequest) GetFields() string { + return r._fields +} +// AppSignature Setter +// 安全签名 +func (r *AliexpressAffiliateOrderListbyindexAPIRequest) SetAppSignature(_appSignature string) error { + r._appSignature = _appSignature + r.Set("app_signature", _appSignature) + return nil +} + +// AppSignature Getter +func (r AliexpressAffiliateOrderListbyindexAPIRequest) GetAppSignature() string { + return r._appSignature +} diff --git a/model/aedata/AliexpressAffiliateOrderListbyindexAPIResponse.go b/model/aedata/AliexpressAffiliateOrderListbyindexAPIResponse.go new file mode 100644 index 0000000000..665df1ad9d --- /dev/null +++ b/model/aedata/AliexpressAffiliateOrderListbyindexAPIResponse.go @@ -0,0 +1,27 @@ +package aedata + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AE联盟推广者订单查询接口-按游标索引查询 API返回值 +aliexpress.affiliate.order.listbyindex + +AE联盟推广者订单按游标查询接口 +*/ +type AliexpressAffiliateOrderListbyindexAPIResponse struct { + model.CommonResponse + AliexpressAffiliateOrderListbyindexAPIResponseModel +} + +// AE联盟推广者订单查询接口-按游标索引查询 成功返回结果 +type AliexpressAffiliateOrderListbyindexAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_affiliate_order_listbyindex_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + RespResult *ResponseDto `json:"resp_result,omitempty" xml:"resp_result,omitempty"` +} diff --git a/model/aedata/AliexpressAffiliateOrderListbyindexResponse.go b/model/aedata/AliexpressAffiliateOrderListbyindexResponse.go deleted file mode 100644 index 86ddf1c8cf..0000000000 --- a/model/aedata/AliexpressAffiliateOrderListbyindexResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aedata - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AE联盟推广者订单查询接口-按游标索引查询 API返回值 -aliexpress.affiliate.order.listbyindex - -AE联盟推广者订单按游标查询接口 -*/ -type AliexpressAffiliateOrderListbyindexAPIResponse struct { - model.CommonResponse - AliexpressAffiliateOrderListbyindexResponse -} - -// AE联盟推广者订单查询接口-按游标索引查询 成功返回结果 -type AliexpressAffiliateOrderListbyindexResponse struct { - XMLName xml.Name `xml:"aliexpress_affiliate_order_listbyindex_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - RespResult *ResponseDto `json:"resp_result,omitempty" xml:"resp_result,omitempty"` -} diff --git a/model/aedropshiper/AliexpressLogisticsBuyerFreightCalculateAPIRequest.go b/model/aedropshiper/AliexpressLogisticsBuyerFreightCalculateAPIRequest.go new file mode 100644 index 0000000000..c3813d425e --- /dev/null +++ b/model/aedropshiper/AliexpressLogisticsBuyerFreightCalculateAPIRequest.go @@ -0,0 +1,52 @@ +package aedropshiper + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提供给买家使用的运费计算接口 API请求 +aliexpress.logistics.buyer.freight.calculate + +提供给买家使用的运费计算接口 +*/ +type AliexpressLogisticsBuyerFreightCalculateAPIRequest struct { + model.Params + // 运费计算请求参数 + _paramAeopFreightCalculateForBuyerDTO *AeopFreightCalculateForBuyerDto +} + +// 初始化AliexpressLogisticsBuyerFreightCalculateAPIRequest对象 +func NewAliexpressLogisticsBuyerFreightCalculateRequest() *AliexpressLogisticsBuyerFreightCalculateAPIRequest{ + return &AliexpressLogisticsBuyerFreightCalculateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressLogisticsBuyerFreightCalculateAPIRequest) GetApiMethodName() string { + return "aliexpress.logistics.buyer.freight.calculate" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressLogisticsBuyerFreightCalculateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamAeopFreightCalculateForBuyerDTO Setter +// 运费计算请求参数 +func (r *AliexpressLogisticsBuyerFreightCalculateAPIRequest) SetParamAeopFreightCalculateForBuyerDTO(_paramAeopFreightCalculateForBuyerDTO *AeopFreightCalculateForBuyerDto) error { + r._paramAeopFreightCalculateForBuyerDTO = _paramAeopFreightCalculateForBuyerDTO + r.Set("param_aeop_freight_calculate_for_buyer_d_t_o", _paramAeopFreightCalculateForBuyerDTO) + return nil +} + +// ParamAeopFreightCalculateForBuyerDTO Getter +func (r AliexpressLogisticsBuyerFreightCalculateAPIRequest) GetParamAeopFreightCalculateForBuyerDTO() *AeopFreightCalculateForBuyerDto { + return r._paramAeopFreightCalculateForBuyerDTO +} diff --git a/model/aedropshiper/AliexpressLogisticsBuyerFreightCalculateAPIResponse.go b/model/aedropshiper/AliexpressLogisticsBuyerFreightCalculateAPIResponse.go new file mode 100644 index 0000000000..a0518c9109 --- /dev/null +++ b/model/aedropshiper/AliexpressLogisticsBuyerFreightCalculateAPIResponse.go @@ -0,0 +1,27 @@ +package aedropshiper + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提供给买家使用的运费计算接口 API返回值 +aliexpress.logistics.buyer.freight.calculate + +提供给买家使用的运费计算接口 +*/ +type AliexpressLogisticsBuyerFreightCalculateAPIResponse struct { + model.CommonResponse + AliexpressLogisticsBuyerFreightCalculateAPIResponseModel +} + +// 提供给买家使用的运费计算接口 成功返回结果 +type AliexpressLogisticsBuyerFreightCalculateAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_logistics_buyer_freight_calculate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AeopFreightCalculateResultListResponseForBuyer `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aedropshiper/AliexpressLogisticsBuyerFreightCalculateResponse.go b/model/aedropshiper/AliexpressLogisticsBuyerFreightCalculateResponse.go deleted file mode 100644 index 40655710c6..0000000000 --- a/model/aedropshiper/AliexpressLogisticsBuyerFreightCalculateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aedropshiper - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提供给买家使用的运费计算接口 API返回值 -aliexpress.logistics.buyer.freight.calculate - -提供给买家使用的运费计算接口 -*/ -type AliexpressLogisticsBuyerFreightCalculateAPIResponse struct { - model.CommonResponse - AliexpressLogisticsBuyerFreightCalculateResponse -} - -// 提供给买家使用的运费计算接口 成功返回结果 -type AliexpressLogisticsBuyerFreightCalculateResponse struct { - XMLName xml.Name `xml:"aliexpress_logistics_buyer_freight_calculate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AeopFreightCalculateResultListResponseForBuyer `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aedropshiper/AliexpressLogisticsDsTrackinginfoQueryAPIRequest.go b/model/aedropshiper/AliexpressLogisticsDsTrackinginfoQueryAPIRequest.go new file mode 100644 index 0000000000..af83378fb8 --- /dev/null +++ b/model/aedropshiper/AliexpressLogisticsDsTrackinginfoQueryAPIRequest.go @@ -0,0 +1,108 @@ +package aedropshiper + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询物流追踪信息 API请求 +aliexpress.logistics.ds.trackinginfo.query + +Dropshipper查询物流追踪信息 +*/ +type AliexpressLogisticsDsTrackinginfoQueryAPIRequest struct { + model.Params + // Logistics tracking number + _logisticsNo string + // Order origin to be queried. The origin of the AE order is “ESCROW”. + _origin string + // Order ID to be queried by the user + _outRef string + // Logistics service KEY + _serviceName string + // Country for receiving goods in the trade order (FJ,Fiji;FI,Finland;FR,France;FX,FranceMetropolitan;GF,FrenchGuiana;PF,FrenchPolynesia;TF,FrenchSouthernTerritories;GA,Gabon;GM,Gambia;GE,Georgia;DE,Germany;GH,Ghana;GI,Gibraltar;GR,Greece;GL,Greenland;GD,Grenada;GP,Guadeloupe;GU,Guam;GT,Guatemala;GN,Guinea;GW,Guinea-Bissau;GY,Guyana;HT,Haiti;HM,HeardandMcDonaldIslands;HN,Honduras;HK,HongKong;HU,Hungary;IS,Iceland;IN,India;ID,Indonesia;IR,Iran(IslamicRepublicof);IQ,Iraq;IE,Ireland;IL,Israel;IT,Italy;JM,Jamaica;JP,Japan;JO,Jordan;KZ,Kazakhstan;KE,Kenya;KI,Kiribati;KW,Kuwait;KG,Kyrgyzstan;LA,LaoPeople'sDemocraticRepublic;LV,Latvia;LB,Lebanon;LS,Lesotho;LR,Liberia;LY,LibyanArabJamahiriya;AF,Afghanistan;AL,Albania;DZ,Algeria;AS,AmericanSamoa;AD,Andorra;AO,Angola;AI,Anguilla;AQ,Antarctica;AG,AntiguaandBarbuda;AR,Argentina;AM,Armenia;AW,Aruba;AU,Australia;AT,Austria;AZ,Azerbaijan;BS,Bahamas;BH,Bahrain;BD,Bangladesh;BB,Barbados;BY,Belarus;BE,Belgium;BZ,Belize;BJ,Benin;BM,Bermuda;BT,Bhutan;BO,Bolivia;BA,BosniaandHerzegovina;BW,Botswana;BV,BouvetIsland;BR,Brazil;IO,BritishIndianOceanTerritory;BN,BruneiDarussalam;BG,Bulgaria;BF,BurkinaFaso;BI,Burundi;KH,Cambodia;CM,Cameroon;CA,Canada;CV,CapeVerde;KY,CaymanIslands;CF,CentralAfricanRepublic;TD,Chad;CL,Chile;CN,China(Mainland);CX,ChristmasIsland;CC,Cocos(Keeling)Islands;CO,Colombia;KM,Comoros;CG,Congo,TheRepublicofCongo;ZR,Congo,TheDemocraticRepublicOfThe;CK,CookIslands;CR,CostaRica;CI,CoteD'Ivoire;HR,Croatia(localname:Hrvatska);CU,Cuba;CY,Cyprus;CZ,CzechRepublic;DK,Denmark;DJ,Djibouti;DM,Dominica;DO,DominicanRepublic;TP,EastTimor;EC,Ecuador;EG,Egypt;SV,ElSalvador;GQ,EquatorialGuinea;ER,Eritrea;EE,Estonia;ET,Ethiopia;FK,FalklandIslands(Malvinas);FO,FaroeIslands;LI,Liechtenstein;LT,Lithuania;LU,Luxembourg;MO,Macau;MK,Macedonia;MG,Madagascar;MW,Malawi;MY,Malaysia;MV,Maldives;ML,Mali;MT,Malta;MH,MarshallIslands;MQ,Martinique;MR,Mauritania;MU,Mauritius;YT,Mayotte;MX,Mexico;FM,Micronesia;MD,Moldova;MC,Monaco;MN,Mongolia;MS,Montserrat;MA,Morocco;MZ,Mozambique;MM,Myanmar;NA,Namibia;NR,Nauru;NP,Nepal;NL,Netherlands;AN,NetherlandsAntilles;NC,NewCaledonia;NZ,NewZealand;NI,Nicaragua;NE,Niger;NG,Nigeria;NU,Niue;NF,NorfolkIsland;KP,NorthKorea;MP,NorthernMarianaIslands;NO,Norway;OM,Oman;Other,OtherCountry;PK,Pakistan;PW,Palau;PS,Palestine;PA,Panama;PG,PapuaNewGuinea;PY,Paraguay;PE,Peru;PH,Philippines;PN,Pitcairn;PL,Poland;PT,Portugal;PR,PuertoRico;QA,Qatar;RE,Reunion;RO,Romania;RU,RussianFederation;RW,Rwanda;KN,SaintKittsandNevis;LC,SaintLucia;VC,SaintVincentandtheGrenadines;WS,Samoa;SM,SanMarino;ST,SaoTomeandPrincipe;SA,SaudiArabia;SN,Senegal;SC,Seychelles;SL,SierraLeone;SG,Singapore;SK,Slovakia(SlovakRepublic);SI,Slovenia;SB,SolomonIslands;SO,Somalia;ZA,SouthAfrica;KR,SouthKorea;ES,Spain;LK,SriLanka;SH,St.Helena;PM,St.PierreandMiquelon;SD,Sudan;SR,Suriname;SJ,SvalbardandJanMayenIslands;SZ,Swaziland;SE,Sweden;CH,Switzerland;SY,SyrianArabRepublic;TW,T aiwan;TJ,Tajikistan;TZ,Tanzania;TH,Thailand;TG,Togo;TK,Tokelau;TO,Tonga;TT,TrinidadandTobago;TN,Tunisia;TR,Turkey;TM,Turkmenistan;TC,TurksandCaicosIslands;TV,Tuvalu;UG,Uganda;UA,Ukraine;AE,UnitedArabEmirates;IM,IsleofMan;UK,UnitedKingdom;US,UnitedStates;UM,UnitedStatesMinorOutlyingIslands;UY,Uruguay;UZ,Uzbekistan;VU,Vanuatu;VA,VaticanCityState(HolySee);VE,Venezuela;VN,Vietnam;VG,VirginIslands(British);VI,VirginIslands(U.S.);WF,WallisAndFutunaIslands;EH,WesternSahara;YE,Yemen;YU,Yugoslavia;ZM,Zambia;ZW,Zimbabwe;SRB,Serbia;MNE,Montenegro;KS,Kosovo;EAZ,Zanzibar;BLM,SaintBarthelemy;MAF,SaintMartin;GGY,Guernsey;JEY,Jersey;SGS,SouthGeorgiaandtheSouthSandwichIslands;TLS,Timor-Leste;ALA,AlandIslands;GBA,Alderney;ASC,AscensionIsland;) + _toArea string +} + +// 初始化AliexpressLogisticsDsTrackinginfoQueryAPIRequest对象 +func NewAliexpressLogisticsDsTrackinginfoQueryRequest() *AliexpressLogisticsDsTrackinginfoQueryAPIRequest{ + return &AliexpressLogisticsDsTrackinginfoQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressLogisticsDsTrackinginfoQueryAPIRequest) GetApiMethodName() string { + return "aliexpress.logistics.ds.trackinginfo.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressLogisticsDsTrackinginfoQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LogisticsNo Setter +// Logistics tracking number +func (r *AliexpressLogisticsDsTrackinginfoQueryAPIRequest) SetLogisticsNo(_logisticsNo string) error { + r._logisticsNo = _logisticsNo + r.Set("logistics_no", _logisticsNo) + return nil +} + +// LogisticsNo Getter +func (r AliexpressLogisticsDsTrackinginfoQueryAPIRequest) GetLogisticsNo() string { + return r._logisticsNo +} +// Origin Setter +// Order origin to be queried. The origin of the AE order is “ESCROW”. +func (r *AliexpressLogisticsDsTrackinginfoQueryAPIRequest) SetOrigin(_origin string) error { + r._origin = _origin + r.Set("origin", _origin) + return nil +} + +// Origin Getter +func (r AliexpressLogisticsDsTrackinginfoQueryAPIRequest) GetOrigin() string { + return r._origin +} +// OutRef Setter +// Order ID to be queried by the user +func (r *AliexpressLogisticsDsTrackinginfoQueryAPIRequest) SetOutRef(_outRef string) error { + r._outRef = _outRef + r.Set("out_ref", _outRef) + return nil +} + +// OutRef Getter +func (r AliexpressLogisticsDsTrackinginfoQueryAPIRequest) GetOutRef() string { + return r._outRef +} +// ServiceName Setter +// Logistics service KEY +func (r *AliexpressLogisticsDsTrackinginfoQueryAPIRequest) SetServiceName(_serviceName string) error { + r._serviceName = _serviceName + r.Set("service_name", _serviceName) + return nil +} + +// ServiceName Getter +func (r AliexpressLogisticsDsTrackinginfoQueryAPIRequest) GetServiceName() string { + return r._serviceName +} +// ToArea Setter +// Country for receiving goods in the trade order (FJ,Fiji;FI,Finland;FR,France;FX,FranceMetropolitan;GF,FrenchGuiana;PF,FrenchPolynesia;TF,FrenchSouthernTerritories;GA,Gabon;GM,Gambia;GE,Georgia;DE,Germany;GH,Ghana;GI,Gibraltar;GR,Greece;GL,Greenland;GD,Grenada;GP,Guadeloupe;GU,Guam;GT,Guatemala;GN,Guinea;GW,Guinea-Bissau;GY,Guyana;HT,Haiti;HM,HeardandMcDonaldIslands;HN,Honduras;HK,HongKong;HU,Hungary;IS,Iceland;IN,India;ID,Indonesia;IR,Iran(IslamicRepublicof);IQ,Iraq;IE,Ireland;IL,Israel;IT,Italy;JM,Jamaica;JP,Japan;JO,Jordan;KZ,Kazakhstan;KE,Kenya;KI,Kiribati;KW,Kuwait;KG,Kyrgyzstan;LA,LaoPeople'sDemocraticRepublic;LV,Latvia;LB,Lebanon;LS,Lesotho;LR,Liberia;LY,LibyanArabJamahiriya;AF,Afghanistan;AL,Albania;DZ,Algeria;AS,AmericanSamoa;AD,Andorra;AO,Angola;AI,Anguilla;AQ,Antarctica;AG,AntiguaandBarbuda;AR,Argentina;AM,Armenia;AW,Aruba;AU,Australia;AT,Austria;AZ,Azerbaijan;BS,Bahamas;BH,Bahrain;BD,Bangladesh;BB,Barbados;BY,Belarus;BE,Belgium;BZ,Belize;BJ,Benin;BM,Bermuda;BT,Bhutan;BO,Bolivia;BA,BosniaandHerzegovina;BW,Botswana;BV,BouvetIsland;BR,Brazil;IO,BritishIndianOceanTerritory;BN,BruneiDarussalam;BG,Bulgaria;BF,BurkinaFaso;BI,Burundi;KH,Cambodia;CM,Cameroon;CA,Canada;CV,CapeVerde;KY,CaymanIslands;CF,CentralAfricanRepublic;TD,Chad;CL,Chile;CN,China(Mainland);CX,ChristmasIsland;CC,Cocos(Keeling)Islands;CO,Colombia;KM,Comoros;CG,Congo,TheRepublicofCongo;ZR,Congo,TheDemocraticRepublicOfThe;CK,CookIslands;CR,CostaRica;CI,CoteD'Ivoire;HR,Croatia(localname:Hrvatska);CU,Cuba;CY,Cyprus;CZ,CzechRepublic;DK,Denmark;DJ,Djibouti;DM,Dominica;DO,DominicanRepublic;TP,EastTimor;EC,Ecuador;EG,Egypt;SV,ElSalvador;GQ,EquatorialGuinea;ER,Eritrea;EE,Estonia;ET,Ethiopia;FK,FalklandIslands(Malvinas);FO,FaroeIslands;LI,Liechtenstein;LT,Lithuania;LU,Luxembourg;MO,Macau;MK,Macedonia;MG,Madagascar;MW,Malawi;MY,Malaysia;MV,Maldives;ML,Mali;MT,Malta;MH,MarshallIslands;MQ,Martinique;MR,Mauritania;MU,Mauritius;YT,Mayotte;MX,Mexico;FM,Micronesia;MD,Moldova;MC,Monaco;MN,Mongolia;MS,Montserrat;MA,Morocco;MZ,Mozambique;MM,Myanmar;NA,Namibia;NR,Nauru;NP,Nepal;NL,Netherlands;AN,NetherlandsAntilles;NC,NewCaledonia;NZ,NewZealand;NI,Nicaragua;NE,Niger;NG,Nigeria;NU,Niue;NF,NorfolkIsland;KP,NorthKorea;MP,NorthernMarianaIslands;NO,Norway;OM,Oman;Other,OtherCountry;PK,Pakistan;PW,Palau;PS,Palestine;PA,Panama;PG,PapuaNewGuinea;PY,Paraguay;PE,Peru;PH,Philippines;PN,Pitcairn;PL,Poland;PT,Portugal;PR,PuertoRico;QA,Qatar;RE,Reunion;RO,Romania;RU,RussianFederation;RW,Rwanda;KN,SaintKittsandNevis;LC,SaintLucia;VC,SaintVincentandtheGrenadines;WS,Samoa;SM,SanMarino;ST,SaoTomeandPrincipe;SA,SaudiArabia;SN,Senegal;SC,Seychelles;SL,SierraLeone;SG,Singapore;SK,Slovakia(SlovakRepublic);SI,Slovenia;SB,SolomonIslands;SO,Somalia;ZA,SouthAfrica;KR,SouthKorea;ES,Spain;LK,SriLanka;SH,St.Helena;PM,St.PierreandMiquelon;SD,Sudan;SR,Suriname;SJ,SvalbardandJanMayenIslands;SZ,Swaziland;SE,Sweden;CH,Switzerland;SY,SyrianArabRepublic;TW,T aiwan;TJ,Tajikistan;TZ,Tanzania;TH,Thailand;TG,Togo;TK,Tokelau;TO,Tonga;TT,TrinidadandTobago;TN,Tunisia;TR,Turkey;TM,Turkmenistan;TC,TurksandCaicosIslands;TV,Tuvalu;UG,Uganda;UA,Ukraine;AE,UnitedArabEmirates;IM,IsleofMan;UK,UnitedKingdom;US,UnitedStates;UM,UnitedStatesMinorOutlyingIslands;UY,Uruguay;UZ,Uzbekistan;VU,Vanuatu;VA,VaticanCityState(HolySee);VE,Venezuela;VN,Vietnam;VG,VirginIslands(British);VI,VirginIslands(U.S.);WF,WallisAndFutunaIslands;EH,WesternSahara;YE,Yemen;YU,Yugoslavia;ZM,Zambia;ZW,Zimbabwe;SRB,Serbia;MNE,Montenegro;KS,Kosovo;EAZ,Zanzibar;BLM,SaintBarthelemy;MAF,SaintMartin;GGY,Guernsey;JEY,Jersey;SGS,SouthGeorgiaandtheSouthSandwichIslands;TLS,Timor-Leste;ALA,AlandIslands;GBA,Alderney;ASC,AscensionIsland;) +func (r *AliexpressLogisticsDsTrackinginfoQueryAPIRequest) SetToArea(_toArea string) error { + r._toArea = _toArea + r.Set("to_area", _toArea) + return nil +} + +// ToArea Getter +func (r AliexpressLogisticsDsTrackinginfoQueryAPIRequest) GetToArea() string { + return r._toArea +} diff --git a/model/aedropshiper/AliexpressLogisticsDsTrackinginfoQueryAPIResponse.go b/model/aedropshiper/AliexpressLogisticsDsTrackinginfoQueryAPIResponse.go new file mode 100644 index 0000000000..191ae001e5 --- /dev/null +++ b/model/aedropshiper/AliexpressLogisticsDsTrackinginfoQueryAPIResponse.go @@ -0,0 +1,33 @@ +package aedropshiper + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询物流追踪信息 API返回值 +aliexpress.logistics.ds.trackinginfo.query + +Dropshipper查询物流追踪信息 +*/ +type AliexpressLogisticsDsTrackinginfoQueryAPIResponse struct { + model.CommonResponse + AliexpressLogisticsDsTrackinginfoQueryAPIResponseModel +} + +// 查询物流追踪信息 成功返回结果 +type AliexpressLogisticsDsTrackinginfoQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_logistics_ds_trackinginfo_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 追踪详细信息列表 + Details []Details `json:"details,omitempty" xml:"details>details,omitempty"` + // 追踪网址 + OfficialWebsite string `json:"official_website,omitempty" xml:"official_website,omitempty"` + // error description + ErrorDesc string `json:"error_desc,omitempty" xml:"error_desc,omitempty"` + // success + ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` +} diff --git a/model/aedropshiper/AliexpressLogisticsDsTrackinginfoQueryResponse.go b/model/aedropshiper/AliexpressLogisticsDsTrackinginfoQueryResponse.go deleted file mode 100644 index 93b5f999c8..0000000000 --- a/model/aedropshiper/AliexpressLogisticsDsTrackinginfoQueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package aedropshiper - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询物流追踪信息 API返回值 -aliexpress.logistics.ds.trackinginfo.query - -Dropshipper查询物流追踪信息 -*/ -type AliexpressLogisticsDsTrackinginfoQueryAPIResponse struct { - model.CommonResponse - AliexpressLogisticsDsTrackinginfoQueryResponse -} - -// 查询物流追踪信息 成功返回结果 -type AliexpressLogisticsDsTrackinginfoQueryResponse struct { - XMLName xml.Name `xml:"aliexpress_logistics_ds_trackinginfo_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 追踪详细信息列表 - Details []Details `json:"details,omitempty" xml:"details>details,omitempty"` - // 追踪网址 - OfficialWebsite string `json:"official_website,omitempty" xml:"official_website,omitempty"` - // error description - ErrorDesc string `json:"error_desc,omitempty" xml:"error_desc,omitempty"` - // success - ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` -} diff --git a/model/aedropshiper/AliexpressOfferDsProductSimplequeryAPIRequest.go b/model/aedropshiper/AliexpressOfferDsProductSimplequeryAPIRequest.go new file mode 100644 index 0000000000..af711d5dfc --- /dev/null +++ b/model/aedropshiper/AliexpressOfferDsProductSimplequeryAPIRequest.go @@ -0,0 +1,80 @@ +package aedropshiper + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Dropshipper查询单个商品的简易信息 API请求 +aliexpress.offer.ds.product.simplequery + +提供给Dropshipper的通过商品ID查找商品简易信息(包括SKU-价格/库存、产品状态等)的接口,只有特定买家可以使用 +*/ +type AliexpressOfferDsProductSimplequeryAPIRequest struct { + model.Params + // 商品ID + _productId int64 + // 国家 + _localCountry string + // 语言 + _localLanguage string +} + +// 初始化AliexpressOfferDsProductSimplequeryAPIRequest对象 +func NewAliexpressOfferDsProductSimplequeryRequest() *AliexpressOfferDsProductSimplequeryAPIRequest{ + return &AliexpressOfferDsProductSimplequeryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressOfferDsProductSimplequeryAPIRequest) GetApiMethodName() string { + return "aliexpress.offer.ds.product.simplequery" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressOfferDsProductSimplequeryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 商品ID +func (r *AliexpressOfferDsProductSimplequeryAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r AliexpressOfferDsProductSimplequeryAPIRequest) GetProductId() int64 { + return r._productId +} +// LocalCountry Setter +// 国家 +func (r *AliexpressOfferDsProductSimplequeryAPIRequest) SetLocalCountry(_localCountry string) error { + r._localCountry = _localCountry + r.Set("local_country", _localCountry) + return nil +} + +// LocalCountry Getter +func (r AliexpressOfferDsProductSimplequeryAPIRequest) GetLocalCountry() string { + return r._localCountry +} +// LocalLanguage Setter +// 语言 +func (r *AliexpressOfferDsProductSimplequeryAPIRequest) SetLocalLanguage(_localLanguage string) error { + r._localLanguage = _localLanguage + r.Set("local_language", _localLanguage) + return nil +} + +// LocalLanguage Getter +func (r AliexpressOfferDsProductSimplequeryAPIRequest) GetLocalLanguage() string { + return r._localLanguage +} diff --git a/model/aedropshiper/AliexpressOfferDsProductSimplequeryAPIResponse.go b/model/aedropshiper/AliexpressOfferDsProductSimplequeryAPIResponse.go new file mode 100644 index 0000000000..d2de54ccf3 --- /dev/null +++ b/model/aedropshiper/AliexpressOfferDsProductSimplequeryAPIResponse.go @@ -0,0 +1,33 @@ +package aedropshiper + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Dropshipper查询单个商品的简易信息 API返回值 +aliexpress.offer.ds.product.simplequery + +提供给Dropshipper的通过商品ID查找商品简易信息(包括SKU-价格/库存、产品状态等)的接口,只有特定买家可以使用 +*/ +type AliexpressOfferDsProductSimplequeryAPIResponse struct { + model.CommonResponse + AliexpressOfferDsProductSimplequeryAPIResponseModel +} + +// Dropshipper查询单个商品的简易信息 成功返回结果 +type AliexpressOfferDsProductSimplequeryAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_offer_ds_product_simplequery_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 网站折扣后价格 + ItemOfferSiteSalePrice string `json:"item_offer_site_sale_price,omitempty" xml:"item_offer_site_sale_price,omitempty"` + // 库存 + TotalAvailableStock int64 `json:"total_available_stock,omitempty" xml:"total_available_stock,omitempty"` + // 商品的SKU信息 + AeopAeProductSKUs []AeopAeProductSku `json:"aeop_ae_product_s_k_us,omitempty" xml:"aeop_ae_product_s_k_us>aeop_ae_product_sku,omitempty"` + // 产品的状态 + ProductStatusType string `json:"product_status_type,omitempty" xml:"product_status_type,omitempty"` +} diff --git a/model/aedropshiper/AliexpressOfferDsProductSimplequeryResponse.go b/model/aedropshiper/AliexpressOfferDsProductSimplequeryResponse.go deleted file mode 100644 index 0a012bd7b9..0000000000 --- a/model/aedropshiper/AliexpressOfferDsProductSimplequeryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package aedropshiper - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Dropshipper查询单个商品的简易信息 API返回值 -aliexpress.offer.ds.product.simplequery - -提供给Dropshipper的通过商品ID查找商品简易信息(包括SKU-价格/库存、产品状态等)的接口,只有特定买家可以使用 -*/ -type AliexpressOfferDsProductSimplequeryAPIResponse struct { - model.CommonResponse - AliexpressOfferDsProductSimplequeryResponse -} - -// Dropshipper查询单个商品的简易信息 成功返回结果 -type AliexpressOfferDsProductSimplequeryResponse struct { - XMLName xml.Name `xml:"aliexpress_offer_ds_product_simplequery_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 网站折扣后价格 - ItemOfferSiteSalePrice string `json:"item_offer_site_sale_price,omitempty" xml:"item_offer_site_sale_price,omitempty"` - // 库存 - TotalAvailableStock int64 `json:"total_available_stock,omitempty" xml:"total_available_stock,omitempty"` - // 商品的SKU信息 - AeopAeProductSKUs []AeopAeProductSku `json:"aeop_ae_product_s_k_us,omitempty" xml:"aeop_ae_product_s_k_us>aeop_ae_product_sku,omitempty"` - // 产品的状态 - ProductStatusType string `json:"product_status_type,omitempty" xml:"product_status_type,omitempty"` -} diff --git a/model/aedropshiper/AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIRequest.go b/model/aedropshiper/AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIRequest.go new file mode 100644 index 0000000000..f6666f366e --- /dev/null +++ b/model/aedropshiper/AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIRequest.go @@ -0,0 +1,80 @@ +package aedropshiper + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Dropshipper查找商品信息接口 API请求 +aliexpress.postproduct.redefining.findaeproductbyidfordropshipper + +提供给Dropshipper的通过商品ID查找商品信息的接口,只有特定买家可以使用 +*/ +type AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIRequest struct { + model.Params + // 商品ID + _productId int64 + // 国家 + _localCountry string + // 语言 + _localLanguage string +} + +// 初始化AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIRequest对象 +func NewAliexpressPostproductRedefiningFindaeproductbyidfordropshipperRequest() *AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIRequest{ + return &AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIRequest) GetApiMethodName() string { + return "aliexpress.postproduct.redefining.findaeproductbyidfordropshipper" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 商品ID +func (r *AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIRequest) GetProductId() int64 { + return r._productId +} +// LocalCountry Setter +// 国家 +func (r *AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIRequest) SetLocalCountry(_localCountry string) error { + r._localCountry = _localCountry + r.Set("local_country", _localCountry) + return nil +} + +// LocalCountry Getter +func (r AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIRequest) GetLocalCountry() string { + return r._localCountry +} +// LocalLanguage Setter +// 语言 +func (r *AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIRequest) SetLocalLanguage(_localLanguage string) error { + r._localLanguage = _localLanguage + r.Set("local_language", _localLanguage) + return nil +} + +// LocalLanguage Getter +func (r AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIRequest) GetLocalLanguage() string { + return r._localLanguage +} diff --git a/model/aedropshiper/AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIResponse.go b/model/aedropshiper/AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIResponse.go new file mode 100644 index 0000000000..0b1810b0e3 --- /dev/null +++ b/model/aedropshiper/AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIResponse.go @@ -0,0 +1,27 @@ +package aedropshiper + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Dropshipper查找商品信息接口 API返回值 +aliexpress.postproduct.redefining.findaeproductbyidfordropshipper + +提供给Dropshipper的通过商品ID查找商品信息的接口,只有特定买家可以使用 +*/ +type AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIResponse struct { + model.CommonResponse + AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIResponseModel +} + +// Dropshipper查找商品信息接口 成功返回结果 +type AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_postproduct_redefining_findaeproductbyidfordropshipper_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AeopFindProductResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aedropshiper/AliexpressPostproductRedefiningFindaeproductbyidfordropshipperResponse.go b/model/aedropshiper/AliexpressPostproductRedefiningFindaeproductbyidfordropshipperResponse.go deleted file mode 100644 index 58978f5863..0000000000 --- a/model/aedropshiper/AliexpressPostproductRedefiningFindaeproductbyidfordropshipperResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aedropshiper - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Dropshipper查找商品信息接口 API返回值 -aliexpress.postproduct.redefining.findaeproductbyidfordropshipper - -提供给Dropshipper的通过商品ID查找商品信息的接口,只有特定买家可以使用 -*/ -type AliexpressPostproductRedefiningFindaeproductbyidfordropshipperAPIResponse struct { - model.CommonResponse - AliexpressPostproductRedefiningFindaeproductbyidfordropshipperResponse -} - -// Dropshipper查找商品信息接口 成功返回结果 -type AliexpressPostproductRedefiningFindaeproductbyidfordropshipperResponse struct { - XMLName xml.Name `xml:"aliexpress_postproduct_redefining_findaeproductbyidfordropshipper_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AeopFindProductResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aedropshiper/AliexpressTradeBuyPlaceorderAPIRequest.go b/model/aedropshiper/AliexpressTradeBuyPlaceorderAPIRequest.go new file mode 100644 index 0000000000..58e4e104a4 --- /dev/null +++ b/model/aedropshiper/AliexpressTradeBuyPlaceorderAPIRequest.go @@ -0,0 +1,52 @@ +package aedropshiper + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AE下单API API请求 +aliexpress.trade.buy.placeorder + +A006_INVALID_ACCOUNT_INFO +*/ +type AliexpressTradeBuyPlaceorderAPIRequest struct { + model.Params + // 下单具体参数 + _paramPlaceOrderRequest4OpenApiDTO *PlaceOrderRequest4OpenApiDto +} + +// 初始化AliexpressTradeBuyPlaceorderAPIRequest对象 +func NewAliexpressTradeBuyPlaceorderRequest() *AliexpressTradeBuyPlaceorderAPIRequest{ + return &AliexpressTradeBuyPlaceorderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressTradeBuyPlaceorderAPIRequest) GetApiMethodName() string { + return "aliexpress.trade.buy.placeorder" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressTradeBuyPlaceorderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamPlaceOrderRequest4OpenApiDTO Setter +// 下单具体参数 +func (r *AliexpressTradeBuyPlaceorderAPIRequest) SetParamPlaceOrderRequest4OpenApiDTO(_paramPlaceOrderRequest4OpenApiDTO *PlaceOrderRequest4OpenApiDto) error { + r._paramPlaceOrderRequest4OpenApiDTO = _paramPlaceOrderRequest4OpenApiDTO + r.Set("param_place_order_request4_open_api_d_t_o", _paramPlaceOrderRequest4OpenApiDTO) + return nil +} + +// ParamPlaceOrderRequest4OpenApiDTO Getter +func (r AliexpressTradeBuyPlaceorderAPIRequest) GetParamPlaceOrderRequest4OpenApiDTO() *PlaceOrderRequest4OpenApiDto { + return r._paramPlaceOrderRequest4OpenApiDTO +} diff --git a/model/aedropshiper/AliexpressTradeBuyPlaceorderAPIResponse.go b/model/aedropshiper/AliexpressTradeBuyPlaceorderAPIResponse.go new file mode 100644 index 0000000000..7d94f6fd8a --- /dev/null +++ b/model/aedropshiper/AliexpressTradeBuyPlaceorderAPIResponse.go @@ -0,0 +1,27 @@ +package aedropshiper + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AE下单API API返回值 +aliexpress.trade.buy.placeorder + +A006_INVALID_ACCOUNT_INFO +*/ +type AliexpressTradeBuyPlaceorderAPIResponse struct { + model.CommonResponse + AliexpressTradeBuyPlaceorderAPIResponseModel +} + +// AE下单API 成功返回结果 +type AliexpressTradeBuyPlaceorderAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_trade_buy_placeorder_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PlaceOrderRes4OpenApiDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aedropshiper/AliexpressTradeBuyPlaceorderResponse.go b/model/aedropshiper/AliexpressTradeBuyPlaceorderResponse.go deleted file mode 100644 index c45153806f..0000000000 --- a/model/aedropshiper/AliexpressTradeBuyPlaceorderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aedropshiper - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AE下单API API返回值 -aliexpress.trade.buy.placeorder - -A006_INVALID_ACCOUNT_INFO -*/ -type AliexpressTradeBuyPlaceorderAPIResponse struct { - model.CommonResponse - AliexpressTradeBuyPlaceorderResponse -} - -// AE下单API 成功返回结果 -type AliexpressTradeBuyPlaceorderResponse struct { - XMLName xml.Name `xml:"aliexpress_trade_buy_placeorder_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PlaceOrderRes4OpenApiDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aedropshiper/AliexpressTradeDsOrderGetAPIRequest.go b/model/aedropshiper/AliexpressTradeDsOrderGetAPIRequest.go new file mode 100644 index 0000000000..925213136f --- /dev/null +++ b/model/aedropshiper/AliexpressTradeDsOrderGetAPIRequest.go @@ -0,0 +1,52 @@ +package aedropshiper + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +买家查询订单详情 API请求 +aliexpress.trade.ds.order.get + +买家查询订单详情,用于dropshipper +*/ +type AliexpressTradeDsOrderGetAPIRequest struct { + model.Params + // 订单查询条件 + _singleOrderQuery *AeopSingleOrderQuery +} + +// 初始化AliexpressTradeDsOrderGetAPIRequest对象 +func NewAliexpressTradeDsOrderGetRequest() *AliexpressTradeDsOrderGetAPIRequest{ + return &AliexpressTradeDsOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressTradeDsOrderGetAPIRequest) GetApiMethodName() string { + return "aliexpress.trade.ds.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressTradeDsOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SingleOrderQuery Setter +// 订单查询条件 +func (r *AliexpressTradeDsOrderGetAPIRequest) SetSingleOrderQuery(_singleOrderQuery *AeopSingleOrderQuery) error { + r._singleOrderQuery = _singleOrderQuery + r.Set("single_order_query", _singleOrderQuery) + return nil +} + +// SingleOrderQuery Getter +func (r AliexpressTradeDsOrderGetAPIRequest) GetSingleOrderQuery() *AeopSingleOrderQuery { + return r._singleOrderQuery +} diff --git a/model/aedropshiper/AliexpressTradeDsOrderGetAPIResponse.go b/model/aedropshiper/AliexpressTradeDsOrderGetAPIResponse.go new file mode 100644 index 0000000000..166f506d12 --- /dev/null +++ b/model/aedropshiper/AliexpressTradeDsOrderGetAPIResponse.go @@ -0,0 +1,27 @@ +package aedropshiper + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +买家查询订单详情 API返回值 +aliexpress.trade.ds.order.get + +买家查询订单详情,用于dropshipper +*/ +type AliexpressTradeDsOrderGetAPIResponse struct { + model.CommonResponse + AliexpressTradeDsOrderGetAPIResponseModel +} + +// 买家查询订单详情 成功返回结果 +type AliexpressTradeDsOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_trade_ds_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单信息 + Result *AeopOrderInfo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aedropshiper/AliexpressTradeDsOrderGetResponse.go b/model/aedropshiper/AliexpressTradeDsOrderGetResponse.go deleted file mode 100644 index 2b537fd767..0000000000 --- a/model/aedropshiper/AliexpressTradeDsOrderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aedropshiper - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -买家查询订单详情 API返回值 -aliexpress.trade.ds.order.get - -买家查询订单详情,用于dropshipper -*/ -type AliexpressTradeDsOrderGetAPIResponse struct { - model.CommonResponse - AliexpressTradeDsOrderGetResponse -} - -// 买家查询订单详情 成功返回结果 -type AliexpressTradeDsOrderGetResponse struct { - XMLName xml.Name `xml:"aliexpress_trade_ds_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单信息 - Result *AeopOrderInfo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionBatchProductDeleteAPIRequest.go b/model/aesolution/AliexpressSolutionBatchProductDeleteAPIRequest.go new file mode 100644 index 0000000000..9da78de2b9 --- /dev/null +++ b/model/aesolution/AliexpressSolutionBatchProductDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.batch.product.delete API请求 +aliexpress.solution.batch.product.delete + +Product delete API. Please note that there is no reverse way to retrieve the products which have been deleted. Use this API in cautious. +*/ +type AliexpressSolutionBatchProductDeleteAPIRequest struct { + model.Params + // maximum 100 + _productIds []int64 +} + +// 初始化AliexpressSolutionBatchProductDeleteAPIRequest对象 +func NewAliexpressSolutionBatchProductDeleteRequest() *AliexpressSolutionBatchProductDeleteAPIRequest{ + return &AliexpressSolutionBatchProductDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionBatchProductDeleteAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.batch.product.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionBatchProductDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductIds Setter +// maximum 100 +func (r *AliexpressSolutionBatchProductDeleteAPIRequest) SetProductIds(_productIds []int64) error { + r._productIds = _productIds + r.Set("product_ids", _productIds) + return nil +} + +// ProductIds Getter +func (r AliexpressSolutionBatchProductDeleteAPIRequest) GetProductIds() []int64 { + return r._productIds +} diff --git a/model/aesolution/AliexpressSolutionBatchProductDeleteAPIResponse.go b/model/aesolution/AliexpressSolutionBatchProductDeleteAPIResponse.go new file mode 100644 index 0000000000..c1cfefb497 --- /dev/null +++ b/model/aesolution/AliexpressSolutionBatchProductDeleteAPIResponse.go @@ -0,0 +1,25 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.batch.product.delete API返回值 +aliexpress.solution.batch.product.delete + +Product delete API. Please note that there is no reverse way to retrieve the products which have been deleted. Use this API in cautious. +*/ +type AliexpressSolutionBatchProductDeleteAPIResponse struct { + model.CommonResponse + AliexpressSolutionBatchProductDeleteAPIResponseModel +} + +// aliexpress.solution.batch.product.delete 成功返回结果 +type AliexpressSolutionBatchProductDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_batch_product_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionBatchProductDeleteResponse.go b/model/aesolution/AliexpressSolutionBatchProductDeleteResponse.go deleted file mode 100644 index 4f6b59ae1d..0000000000 --- a/model/aesolution/AliexpressSolutionBatchProductDeleteResponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -aliexpress.solution.batch.product.delete API返回值 -aliexpress.solution.batch.product.delete - -Product delete API. Please note that there is no reverse way to retrieve the products which have been deleted. Use this API in cautious. -*/ -type AliexpressSolutionBatchProductDeleteAPIResponse struct { - model.CommonResponse - AliexpressSolutionBatchProductDeleteResponse -} - -// aliexpress.solution.batch.product.delete 成功返回结果 -type AliexpressSolutionBatchProductDeleteResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_batch_product_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionBatchProductInventoryUpdateAPIRequest.go b/model/aesolution/AliexpressSolutionBatchProductInventoryUpdateAPIRequest.go new file mode 100644 index 0000000000..1353770548 --- /dev/null +++ b/model/aesolution/AliexpressSolutionBatchProductInventoryUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.batch.product.inventory.update API请求 +aliexpress.solution.batch.product.inventory.update + +batch product inventory update API for oversea sellers. Sellers could update multiple skus among multiple products in a single call. Maximum 20 products could be updated at the same time and maximum 200 skus could be updated within one product. +*/ +type AliexpressSolutionBatchProductInventoryUpdateAPIRequest struct { + model.Params + // The product list, in which the inventory needs to be updated. Maximum 20 products. + _mutipleProductUpdateList []SynchronizeProductRequestDto +} + +// 初始化AliexpressSolutionBatchProductInventoryUpdateAPIRequest对象 +func NewAliexpressSolutionBatchProductInventoryUpdateRequest() *AliexpressSolutionBatchProductInventoryUpdateAPIRequest{ + return &AliexpressSolutionBatchProductInventoryUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionBatchProductInventoryUpdateAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.batch.product.inventory.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionBatchProductInventoryUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MutipleProductUpdateList Setter +// The product list, in which the inventory needs to be updated. Maximum 20 products. +func (r *AliexpressSolutionBatchProductInventoryUpdateAPIRequest) SetMutipleProductUpdateList(_mutipleProductUpdateList []SynchronizeProductRequestDto) error { + r._mutipleProductUpdateList = _mutipleProductUpdateList + r.Set("mutiple_product_update_list", _mutipleProductUpdateList) + return nil +} + +// MutipleProductUpdateList Getter +func (r AliexpressSolutionBatchProductInventoryUpdateAPIRequest) GetMutipleProductUpdateList() []SynchronizeProductRequestDto { + return r._mutipleProductUpdateList +} diff --git a/model/aesolution/AliexpressSolutionBatchProductInventoryUpdateAPIResponse.go b/model/aesolution/AliexpressSolutionBatchProductInventoryUpdateAPIResponse.go new file mode 100644 index 0000000000..8b25cc9a10 --- /dev/null +++ b/model/aesolution/AliexpressSolutionBatchProductInventoryUpdateAPIResponse.go @@ -0,0 +1,35 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.batch.product.inventory.update API返回值 +aliexpress.solution.batch.product.inventory.update + +batch product inventory update API for oversea sellers. Sellers could update multiple skus among multiple products in a single call. Maximum 20 products could be updated at the same time and maximum 200 skus could be updated within one product. +*/ +type AliexpressSolutionBatchProductInventoryUpdateAPIResponse struct { + model.CommonResponse + AliexpressSolutionBatchProductInventoryUpdateAPIResponseModel +} + +// aliexpress.solution.batch.product.inventory.update 成功返回结果 +type AliexpressSolutionBatchProductInventoryUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_batch_product_inventory_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // When success equals false, indicating the error code + UpdateErrorCode string `json:"update_error_code,omitempty" xml:"update_error_code,omitempty"` + // When success equals false, indicating the error message + UpdateErrorMessage string `json:"update_error_message,omitempty" xml:"update_error_message,omitempty"` + // Indicates the update result is successful or not. Only all the products in mutiple_product_update_list have been updated successfully will make the success to be true, otherwise false. + UpdateSuccess bool `json:"update_success,omitempty" xml:"update_success,omitempty"` + // update failed list + UpdateFailedList []SynchronizeProductResponseDto `json:"update_failed_list,omitempty" xml:"update_failed_list>synchronize_product_response_dto,omitempty"` + // update succesful list + UpdateSuccessfulList []SynchronizeProductResponseDto `json:"update_successful_list,omitempty" xml:"update_successful_list>synchronize_product_response_dto,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionBatchProductInventoryUpdateResponse.go b/model/aesolution/AliexpressSolutionBatchProductInventoryUpdateResponse.go deleted file mode 100644 index fc9693882f..0000000000 --- a/model/aesolution/AliexpressSolutionBatchProductInventoryUpdateResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -aliexpress.solution.batch.product.inventory.update API返回值 -aliexpress.solution.batch.product.inventory.update - -batch product inventory update API for oversea sellers. Sellers could update multiple skus among multiple products in a single call. Maximum 20 products could be updated at the same time and maximum 200 skus could be updated within one product. -*/ -type AliexpressSolutionBatchProductInventoryUpdateAPIResponse struct { - model.CommonResponse - AliexpressSolutionBatchProductInventoryUpdateResponse -} - -// aliexpress.solution.batch.product.inventory.update 成功返回结果 -type AliexpressSolutionBatchProductInventoryUpdateResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_batch_product_inventory_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // When success equals false, indicating the error code - UpdateErrorCode string `json:"update_error_code,omitempty" xml:"update_error_code,omitempty"` - // When success equals false, indicating the error message - UpdateErrorMessage string `json:"update_error_message,omitempty" xml:"update_error_message,omitempty"` - // Indicates the update result is successful or not. Only all the products in mutiple_product_update_list have been updated successfully will make the success to be true, otherwise false. - UpdateSuccess bool `json:"update_success,omitempty" xml:"update_success,omitempty"` - // update failed list - UpdateFailedList []SynchronizeProductResponseDto `json:"update_failed_list,omitempty" xml:"update_failed_list>synchronize_product_response_dto,omitempty"` - // update succesful list - UpdateSuccessfulList []SynchronizeProductResponseDto `json:"update_successful_list,omitempty" xml:"update_successful_list>synchronize_product_response_dto,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionBatchProductPriceUpdateAPIRequest.go b/model/aesolution/AliexpressSolutionBatchProductPriceUpdateAPIRequest.go new file mode 100644 index 0000000000..e118925112 --- /dev/null +++ b/model/aesolution/AliexpressSolutionBatchProductPriceUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.batch.product.price.update API请求 +aliexpress.solution.batch.product.price.update + +batch product price update operation for oversea sellers +*/ +type AliexpressSolutionBatchProductPriceUpdateAPIRequest struct { + model.Params + // The product list, in which the price needs to be updated. Maximum length:20 + _mutipleProductUpdateList []SynchronizeProductRequestDto +} + +// 初始化AliexpressSolutionBatchProductPriceUpdateAPIRequest对象 +func NewAliexpressSolutionBatchProductPriceUpdateRequest() *AliexpressSolutionBatchProductPriceUpdateAPIRequest{ + return &AliexpressSolutionBatchProductPriceUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionBatchProductPriceUpdateAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.batch.product.price.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionBatchProductPriceUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MutipleProductUpdateList Setter +// The product list, in which the price needs to be updated. Maximum length:20 +func (r *AliexpressSolutionBatchProductPriceUpdateAPIRequest) SetMutipleProductUpdateList(_mutipleProductUpdateList []SynchronizeProductRequestDto) error { + r._mutipleProductUpdateList = _mutipleProductUpdateList + r.Set("mutiple_product_update_list", _mutipleProductUpdateList) + return nil +} + +// MutipleProductUpdateList Getter +func (r AliexpressSolutionBatchProductPriceUpdateAPIRequest) GetMutipleProductUpdateList() []SynchronizeProductRequestDto { + return r._mutipleProductUpdateList +} diff --git a/model/aesolution/AliexpressSolutionBatchProductPriceUpdateAPIResponse.go b/model/aesolution/AliexpressSolutionBatchProductPriceUpdateAPIResponse.go new file mode 100644 index 0000000000..6abde44dc7 --- /dev/null +++ b/model/aesolution/AliexpressSolutionBatchProductPriceUpdateAPIResponse.go @@ -0,0 +1,35 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.batch.product.price.update API返回值 +aliexpress.solution.batch.product.price.update + +batch product price update operation for oversea sellers +*/ +type AliexpressSolutionBatchProductPriceUpdateAPIResponse struct { + model.CommonResponse + AliexpressSolutionBatchProductPriceUpdateAPIResponseModel +} + +// aliexpress.solution.batch.product.price.update 成功返回结果 +type AliexpressSolutionBatchProductPriceUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_batch_product_price_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // When success equals false, indicating the error code + UpdateErrorCode string `json:"update_error_code,omitempty" xml:"update_error_code,omitempty"` + // When success equals false, indicating the error message + UpdateErrorMessage string `json:"update_error_message,omitempty" xml:"update_error_message,omitempty"` + // Indicates the update result is successful or not. Only all the products in mutiple_product_update_list have been updated successfully will make the success to be true, otherwise false. + UpdateSuccess bool `json:"update_success,omitempty" xml:"update_success,omitempty"` + // update failed list + UpdateFailedList []SynchronizeProductResponseDto `json:"update_failed_list,omitempty" xml:"update_failed_list>synchronize_product_response_dto,omitempty"` + // update successful list + UpdateSuccessfulList []SynchronizeProductResponseDto `json:"update_successful_list,omitempty" xml:"update_successful_list>synchronize_product_response_dto,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionBatchProductPriceUpdateResponse.go b/model/aesolution/AliexpressSolutionBatchProductPriceUpdateResponse.go deleted file mode 100644 index d87ee27c48..0000000000 --- a/model/aesolution/AliexpressSolutionBatchProductPriceUpdateResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -aliexpress.solution.batch.product.price.update API返回值 -aliexpress.solution.batch.product.price.update - -batch product price update operation for oversea sellers -*/ -type AliexpressSolutionBatchProductPriceUpdateAPIResponse struct { - model.CommonResponse - AliexpressSolutionBatchProductPriceUpdateResponse -} - -// aliexpress.solution.batch.product.price.update 成功返回结果 -type AliexpressSolutionBatchProductPriceUpdateResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_batch_product_price_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // When success equals false, indicating the error code - UpdateErrorCode string `json:"update_error_code,omitempty" xml:"update_error_code,omitempty"` - // When success equals false, indicating the error message - UpdateErrorMessage string `json:"update_error_message,omitempty" xml:"update_error_message,omitempty"` - // Indicates the update result is successful or not. Only all the products in mutiple_product_update_list have been updated successfully will make the success to be true, otherwise false. - UpdateSuccess bool `json:"update_success,omitempty" xml:"update_success,omitempty"` - // update failed list - UpdateFailedList []SynchronizeProductResponseDto `json:"update_failed_list,omitempty" xml:"update_failed_list>synchronize_product_response_dto,omitempty"` - // update successful list - UpdateSuccessfulList []SynchronizeProductResponseDto `json:"update_successful_list,omitempty" xml:"update_successful_list>synchronize_product_response_dto,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionFeedInvalidateAPIRequest.go b/model/aesolution/AliexpressSolutionFeedInvalidateAPIRequest.go new file mode 100644 index 0000000000..a0c1bd7d68 --- /dev/null +++ b/model/aesolution/AliexpressSolutionFeedInvalidateAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.feed.invalidate API请求 +aliexpress.solution.feed.invalidate + +Api for invalidating specific feeds based on job Ids. Please use aliexpress.solution.feed.list.get to determine which job Ids needs to be sent for invalidation. +*/ +type AliexpressSolutionFeedInvalidateAPIRequest struct { + model.Params + // job id separated by ; No more than 100 job Ids could be passed in one request. + _jobIdList string +} + +// 初始化AliexpressSolutionFeedInvalidateAPIRequest对象 +func NewAliexpressSolutionFeedInvalidateRequest() *AliexpressSolutionFeedInvalidateAPIRequest{ + return &AliexpressSolutionFeedInvalidateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionFeedInvalidateAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.feed.invalidate" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionFeedInvalidateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// JobIdList Setter +// job id separated by ; No more than 100 job Ids could be passed in one request. +func (r *AliexpressSolutionFeedInvalidateAPIRequest) SetJobIdList(_jobIdList string) error { + r._jobIdList = _jobIdList + r.Set("job_id_list", _jobIdList) + return nil +} + +// JobIdList Getter +func (r AliexpressSolutionFeedInvalidateAPIRequest) GetJobIdList() string { + return r._jobIdList +} diff --git a/model/aesolution/AliexpressSolutionFeedInvalidateAPIResponse.go b/model/aesolution/AliexpressSolutionFeedInvalidateAPIResponse.go new file mode 100644 index 0000000000..8faf22faab --- /dev/null +++ b/model/aesolution/AliexpressSolutionFeedInvalidateAPIResponse.go @@ -0,0 +1,31 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.feed.invalidate API返回值 +aliexpress.solution.feed.invalidate + +Api for invalidating specific feeds based on job Ids. Please use aliexpress.solution.feed.list.get to determine which job Ids needs to be sent for invalidation. +*/ +type AliexpressSolutionFeedInvalidateAPIResponse struct { + model.CommonResponse + AliexpressSolutionFeedInvalidateAPIResponseModel +} + +// aliexpress.solution.feed.invalidate 成功返回结果 +type AliexpressSolutionFeedInvalidateAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_feed_invalidate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // successful list + SuccessfulList []int64 `json:"successful_list,omitempty" xml:"successful_list>int64,omitempty"` + // no need to be invalidated jobs. Usually caused by that the job is being or has already been executed. + NoNeedInvalidationList []int64 `json:"no_need_invalidation_list,omitempty" xml:"no_need_invalidation_list>int64,omitempty"` + // failed list + FailedList []int64 `json:"failed_list,omitempty" xml:"failed_list>int64,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionFeedInvalidateResponse.go b/model/aesolution/AliexpressSolutionFeedInvalidateResponse.go deleted file mode 100644 index c73382b230..0000000000 --- a/model/aesolution/AliexpressSolutionFeedInvalidateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -aliexpress.solution.feed.invalidate API返回值 -aliexpress.solution.feed.invalidate - -Api for invalidating specific feeds based on job Ids. Please use aliexpress.solution.feed.list.get to determine which job Ids needs to be sent for invalidation. -*/ -type AliexpressSolutionFeedInvalidateAPIResponse struct { - model.CommonResponse - AliexpressSolutionFeedInvalidateResponse -} - -// aliexpress.solution.feed.invalidate 成功返回结果 -type AliexpressSolutionFeedInvalidateResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_feed_invalidate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // successful list - SuccessfulList []int64 `json:"successful_list,omitempty" xml:"successful_list>int64,omitempty"` - // no need to be invalidated jobs. Usually caused by that the job is being or has already been executed. - NoNeedInvalidationList []int64 `json:"no_need_invalidation_list,omitempty" xml:"no_need_invalidation_list>int64,omitempty"` - // failed list - FailedList []int64 `json:"failed_list,omitempty" xml:"failed_list>int64,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionFeedListGetAPIRequest.go b/model/aesolution/AliexpressSolutionFeedListGetAPIRequest.go new file mode 100644 index 0000000000..f184105b56 --- /dev/null +++ b/model/aesolution/AliexpressSolutionFeedListGetAPIRequest.go @@ -0,0 +1,122 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.feed.list.get API请求 +aliexpress.solution.feed.list.get + +API to query the feed list belonged to a seller +*/ +type AliexpressSolutionFeedListGetAPIRequest struct { + model.Params + // current page + _currentPage int64 + // feed type + _feedType string + // page size + _pageSize int64 + // status of the job, currently there are 3 types: FINISH, PROCESSING, QUEUEING + _status string + // Search for feeds submitted before a specific time, format: yyyy-MM-dd hh:mm:ss. Timezone:America/Los_Angeles + _submittedTimeEnd string + // Search for feeds submitted after a specific time, format: yyyy-MM-dd hh:mm:ss .Timezone:America/Los_Angeles + _submittedTimeStart string +} + +// 初始化AliexpressSolutionFeedListGetAPIRequest对象 +func NewAliexpressSolutionFeedListGetRequest() *AliexpressSolutionFeedListGetAPIRequest{ + return &AliexpressSolutionFeedListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionFeedListGetAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.feed.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionFeedListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CurrentPage Setter +// current page +func (r *AliexpressSolutionFeedListGetAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AliexpressSolutionFeedListGetAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// FeedType Setter +// feed type +func (r *AliexpressSolutionFeedListGetAPIRequest) SetFeedType(_feedType string) error { + r._feedType = _feedType + r.Set("feed_type", _feedType) + return nil +} + +// FeedType Getter +func (r AliexpressSolutionFeedListGetAPIRequest) GetFeedType() string { + return r._feedType +} +// PageSize Setter +// page size +func (r *AliexpressSolutionFeedListGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AliexpressSolutionFeedListGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Status Setter +// status of the job, currently there are 3 types: FINISH, PROCESSING, QUEUEING +func (r *AliexpressSolutionFeedListGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AliexpressSolutionFeedListGetAPIRequest) GetStatus() string { + return r._status +} +// SubmittedTimeEnd Setter +// Search for feeds submitted before a specific time, format: yyyy-MM-dd hh:mm:ss. Timezone:America/Los_Angeles +func (r *AliexpressSolutionFeedListGetAPIRequest) SetSubmittedTimeEnd(_submittedTimeEnd string) error { + r._submittedTimeEnd = _submittedTimeEnd + r.Set("submitted_time_end", _submittedTimeEnd) + return nil +} + +// SubmittedTimeEnd Getter +func (r AliexpressSolutionFeedListGetAPIRequest) GetSubmittedTimeEnd() string { + return r._submittedTimeEnd +} +// SubmittedTimeStart Setter +// Search for feeds submitted after a specific time, format: yyyy-MM-dd hh:mm:ss .Timezone:America/Los_Angeles +func (r *AliexpressSolutionFeedListGetAPIRequest) SetSubmittedTimeStart(_submittedTimeStart string) error { + r._submittedTimeStart = _submittedTimeStart + r.Set("submitted_time_start", _submittedTimeStart) + return nil +} + +// SubmittedTimeStart Getter +func (r AliexpressSolutionFeedListGetAPIRequest) GetSubmittedTimeStart() string { + return r._submittedTimeStart +} diff --git a/model/aesolution/AliexpressSolutionFeedListGetAPIResponse.go b/model/aesolution/AliexpressSolutionFeedListGetAPIResponse.go new file mode 100644 index 0000000000..9a300d0cdd --- /dev/null +++ b/model/aesolution/AliexpressSolutionFeedListGetAPIResponse.go @@ -0,0 +1,35 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.feed.list.get API返回值 +aliexpress.solution.feed.list.get + +API to query the feed list belonged to a seller +*/ +type AliexpressSolutionFeedListGetAPIResponse struct { + model.CommonResponse + AliexpressSolutionFeedListGetAPIResponseModel +} + +// aliexpress.solution.feed.list.get 成功返回结果 +type AliexpressSolutionFeedListGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_feed_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // current page + CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"` + // data + JobList []BatchOperationJobDto `json:"job_list,omitempty" xml:"job_list>batch_operation_job_dto,omitempty"` + // page size + PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` + // total count of jobs submitted for this seller + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // total page based on the total_count and page_size + TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionFeedListGetResponse.go b/model/aesolution/AliexpressSolutionFeedListGetResponse.go deleted file mode 100644 index 01902e71eb..0000000000 --- a/model/aesolution/AliexpressSolutionFeedListGetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -aliexpress.solution.feed.list.get API返回值 -aliexpress.solution.feed.list.get - -API to query the feed list belonged to a seller -*/ -type AliexpressSolutionFeedListGetAPIResponse struct { - model.CommonResponse - AliexpressSolutionFeedListGetResponse -} - -// aliexpress.solution.feed.list.get 成功返回结果 -type AliexpressSolutionFeedListGetResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_feed_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // current page - CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"` - // data - JobList []BatchOperationJobDto `json:"job_list,omitempty" xml:"job_list>batch_operation_job_dto,omitempty"` - // page size - PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` - // total count of jobs submitted for this seller - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // total page based on the total_count and page_size - TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionFeedQueryAPIRequest.go b/model/aesolution/AliexpressSolutionFeedQueryAPIRequest.go new file mode 100644 index 0000000000..60966a4436 --- /dev/null +++ b/model/aesolution/AliexpressSolutionFeedQueryAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.feed.query API请求 +aliexpress.solution.feed.query + +API for query the execution result of feed. +*/ +type AliexpressSolutionFeedQueryAPIRequest struct { + model.Params + // job id + _jobId int64 +} + +// 初始化AliexpressSolutionFeedQueryAPIRequest对象 +func NewAliexpressSolutionFeedQueryRequest() *AliexpressSolutionFeedQueryAPIRequest{ + return &AliexpressSolutionFeedQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionFeedQueryAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.feed.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionFeedQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// JobId Setter +// job id +func (r *AliexpressSolutionFeedQueryAPIRequest) SetJobId(_jobId int64) error { + r._jobId = _jobId + r.Set("job_id", _jobId) + return nil +} + +// JobId Getter +func (r AliexpressSolutionFeedQueryAPIRequest) GetJobId() int64 { + return r._jobId +} diff --git a/model/aesolution/AliexpressSolutionFeedQueryAPIResponse.go b/model/aesolution/AliexpressSolutionFeedQueryAPIResponse.go new file mode 100644 index 0000000000..74b09359bb --- /dev/null +++ b/model/aesolution/AliexpressSolutionFeedQueryAPIResponse.go @@ -0,0 +1,33 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.feed.query API返回值 +aliexpress.solution.feed.query + +API for query the execution result of feed. +*/ +type AliexpressSolutionFeedQueryAPIResponse struct { + model.CommonResponse + AliexpressSolutionFeedQueryAPIResponseModel +} + +// aliexpress.solution.feed.query 成功返回结果 +type AliexpressSolutionFeedQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_feed_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // job id + JobId int64 `json:"job_id,omitempty" xml:"job_id,omitempty"` + // Count of successful items after executed under this job + SuccessItemCount int64 `json:"success_item_count,omitempty" xml:"success_item_count,omitempty"` + // Result list after all the item_content,which were previously submitted through API:aliexpress.solution.feed.submit, have been executed , including both successful and unsuccessful items. + ResultList []SingleItemResponseDto `json:"result_list,omitempty" xml:"result_list>single_item_response_dto,omitempty"` + // Count of total items under this job + TotalItemCount int64 `json:"total_item_count,omitempty" xml:"total_item_count,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionFeedQueryResponse.go b/model/aesolution/AliexpressSolutionFeedQueryResponse.go deleted file mode 100644 index 7ba43a60fd..0000000000 --- a/model/aesolution/AliexpressSolutionFeedQueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -aliexpress.solution.feed.query API返回值 -aliexpress.solution.feed.query - -API for query the execution result of feed. -*/ -type AliexpressSolutionFeedQueryAPIResponse struct { - model.CommonResponse - AliexpressSolutionFeedQueryResponse -} - -// aliexpress.solution.feed.query 成功返回结果 -type AliexpressSolutionFeedQueryResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_feed_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // job id - JobId int64 `json:"job_id,omitempty" xml:"job_id,omitempty"` - // Count of successful items after executed under this job - SuccessItemCount int64 `json:"success_item_count,omitempty" xml:"success_item_count,omitempty"` - // Result list after all the item_content,which were previously submitted through API:aliexpress.solution.feed.submit, have been executed , including both successful and unsuccessful items. - ResultList []SingleItemResponseDto `json:"result_list,omitempty" xml:"result_list>single_item_response_dto,omitempty"` - // Count of total items under this job - TotalItemCount int64 `json:"total_item_count,omitempty" xml:"total_item_count,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionFeedSubmitAPIRequest.go b/model/aesolution/AliexpressSolutionFeedSubmitAPIRequest.go new file mode 100644 index 0000000000..9819232304 --- /dev/null +++ b/model/aesolution/AliexpressSolutionFeedSubmitAPIRequest.go @@ -0,0 +1,66 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.feed.submit API请求 +aliexpress.solution.feed.submit + +API for merchants to submit feed data. Please note for each seller, the recommended number of feeds submitted for each operation_type every 24 hours should be lee than 150, otherwise significant delay might be encountered for processing the feed. +*/ +type AliexpressSolutionFeedSubmitAPIRequest struct { + model.Params + // Currently support 4 types of feeds:PRODUCT_CREATE,PRODUCT_FULL_UPDATE,PRODUCT_STOCKS_UPDATE,PRODUCT_PRICES_UPDATE + _operationType string + // item list, maximum size: 2000. + _itemList []SingleItemRequestDto +} + +// 初始化AliexpressSolutionFeedSubmitAPIRequest对象 +func NewAliexpressSolutionFeedSubmitRequest() *AliexpressSolutionFeedSubmitAPIRequest{ + return &AliexpressSolutionFeedSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionFeedSubmitAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.feed.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionFeedSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OperationType Setter +// Currently support 4 types of feeds:PRODUCT_CREATE,PRODUCT_FULL_UPDATE,PRODUCT_STOCKS_UPDATE,PRODUCT_PRICES_UPDATE +func (r *AliexpressSolutionFeedSubmitAPIRequest) SetOperationType(_operationType string) error { + r._operationType = _operationType + r.Set("operation_type", _operationType) + return nil +} + +// OperationType Getter +func (r AliexpressSolutionFeedSubmitAPIRequest) GetOperationType() string { + return r._operationType +} +// ItemList Setter +// item list, maximum size: 2000. +func (r *AliexpressSolutionFeedSubmitAPIRequest) SetItemList(_itemList []SingleItemRequestDto) error { + r._itemList = _itemList + r.Set("item_list", _itemList) + return nil +} + +// ItemList Getter +func (r AliexpressSolutionFeedSubmitAPIRequest) GetItemList() []SingleItemRequestDto { + return r._itemList +} diff --git a/model/aesolution/AliexpressSolutionFeedSubmitAPIResponse.go b/model/aesolution/AliexpressSolutionFeedSubmitAPIResponse.go new file mode 100644 index 0000000000..cec7ecd480 --- /dev/null +++ b/model/aesolution/AliexpressSolutionFeedSubmitAPIResponse.go @@ -0,0 +1,27 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.feed.submit API返回值 +aliexpress.solution.feed.submit + +API for merchants to submit feed data. Please note for each seller, the recommended number of feeds submitted for each operation_type every 24 hours should be lee than 150, otherwise significant delay might be encountered for processing the feed. +*/ +type AliexpressSolutionFeedSubmitAPIResponse struct { + model.CommonResponse + AliexpressSolutionFeedSubmitAPIResponseModel +} + +// aliexpress.solution.feed.submit 成功返回结果 +type AliexpressSolutionFeedSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_feed_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // job id,which is for querying the job response later. + JobId int64 `json:"job_id,omitempty" xml:"job_id,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionFeedSubmitResponse.go b/model/aesolution/AliexpressSolutionFeedSubmitResponse.go deleted file mode 100644 index f96c27d0a2..0000000000 --- a/model/aesolution/AliexpressSolutionFeedSubmitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -aliexpress.solution.feed.submit API返回值 -aliexpress.solution.feed.submit - -API for merchants to submit feed data. Please note for each seller, the recommended number of feeds submitted for each operation_type every 24 hours should be lee than 150, otherwise significant delay might be encountered for processing the feed. -*/ -type AliexpressSolutionFeedSubmitAPIResponse struct { - model.CommonResponse - AliexpressSolutionFeedSubmitResponse -} - -// aliexpress.solution.feed.submit 成功返回结果 -type AliexpressSolutionFeedSubmitResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_feed_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // job id,which is for querying the job response later. - JobId int64 `json:"job_id,omitempty" xml:"job_id,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIRequest.go b/model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIRequest.go new file mode 100644 index 0000000000..b8f53b5193 --- /dev/null +++ b/model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.issue.partner.rma.reverselogistic.state.update API请求 +aliexpress.solution.issue.partner.rma.reverselogistic.state.update + +Updates the reverse logistics state for after sales services +*/ +type AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIRequest struct { + model.Params + // Logistic order state update request + _logisticOrderStateUpdateRequest *LogisticOrderStateUpdateRequest +} + +// 初始化AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIRequest对象 +func NewAliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateRequest() *AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIRequest{ + return &AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.issue.partner.rma.reverselogistic.state.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LogisticOrderStateUpdateRequest Setter +// Logistic order state update request +func (r *AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIRequest) SetLogisticOrderStateUpdateRequest(_logisticOrderStateUpdateRequest *LogisticOrderStateUpdateRequest) error { + r._logisticOrderStateUpdateRequest = _logisticOrderStateUpdateRequest + r.Set("logistic_order_state_update_request", _logisticOrderStateUpdateRequest) + return nil +} + +// LogisticOrderStateUpdateRequest Getter +func (r AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIRequest) GetLogisticOrderStateUpdateRequest() *LogisticOrderStateUpdateRequest { + return r._logisticOrderStateUpdateRequest +} diff --git a/model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIResponse.go b/model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIResponse.go new file mode 100644 index 0000000000..ba9b32a9ba --- /dev/null +++ b/model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIResponse.go @@ -0,0 +1,29 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.issue.partner.rma.reverselogistic.state.update API返回值 +aliexpress.solution.issue.partner.rma.reverselogistic.state.update + +Updates the reverse logistics state for after sales services +*/ +type AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIResponse struct { + model.CommonResponse + AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIResponseModel +} + +// aliexpress.solution.issue.partner.rma.reverselogistic.state.update 成功返回结果 +type AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_issue_partner_rma_reverselogistic_state_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Error code. 0 value is no error. + CodeError string `json:"code_error,omitempty" xml:"code_error,omitempty"` + // Error description + ErrorDescription string `json:"error_description,omitempty" xml:"error_description,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateResponse.go b/model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateResponse.go deleted file mode 100644 index 36854da028..0000000000 --- a/model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -aliexpress.solution.issue.partner.rma.reverselogistic.state.update API返回值 -aliexpress.solution.issue.partner.rma.reverselogistic.state.update - -Updates the reverse logistics state for after sales services -*/ -type AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateAPIResponse struct { - model.CommonResponse - AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateResponse -} - -// aliexpress.solution.issue.partner.rma.reverselogistic.state.update 成功返回结果 -type AliexpressSolutionIssuePartnerRmaReverselogisticStateUpdateResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_issue_partner_rma_reverselogistic_state_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Error code. 0 value is no error. - CodeError string `json:"code_error,omitempty" xml:"code_error,omitempty"` - // Error description - ErrorDescription string `json:"error_description,omitempty" xml:"error_description,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIRequest.go b/model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIRequest.go new file mode 100644 index 0000000000..41754181f4 --- /dev/null +++ b/model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.issue.partner.rma.reverselogistic.trackinginfo.create API请求 +aliexpress.solution.issue.partner.rma.reverselogistic.trackinginfo.create + +Receives information about reverse logistics tracking info +*/ +type AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIRequest struct { + model.Params + // Logistic's order creation request + _logisticsOrderCreationRequest *LogisticOrderCreationForRmaRequest +} + +// 初始化AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIRequest对象 +func NewAliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateRequest() *AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIRequest{ + return &AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.issue.partner.rma.reverselogistic.trackinginfo.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LogisticsOrderCreationRequest Setter +// Logistic's order creation request +func (r *AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIRequest) SetLogisticsOrderCreationRequest(_logisticsOrderCreationRequest *LogisticOrderCreationForRmaRequest) error { + r._logisticsOrderCreationRequest = _logisticsOrderCreationRequest + r.Set("logistics_order_creation_request", _logisticsOrderCreationRequest) + return nil +} + +// LogisticsOrderCreationRequest Getter +func (r AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIRequest) GetLogisticsOrderCreationRequest() *LogisticOrderCreationForRmaRequest { + return r._logisticsOrderCreationRequest +} diff --git a/model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIResponse.go b/model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIResponse.go new file mode 100644 index 0000000000..0272dabdf1 --- /dev/null +++ b/model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIResponse.go @@ -0,0 +1,29 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.issue.partner.rma.reverselogistic.trackinginfo.create API返回值 +aliexpress.solution.issue.partner.rma.reverselogistic.trackinginfo.create + +Receives information about reverse logistics tracking info +*/ +type AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIResponse struct { + model.CommonResponse + AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIResponseModel +} + +// aliexpress.solution.issue.partner.rma.reverselogistic.trackinginfo.create 成功返回结果 +type AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_issue_partner_rma_reverselogistic_trackinginfo_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Error code. 0 value is no error. + CodeError string `json:"code_error,omitempty" xml:"code_error,omitempty"` + // Error description + ErrorDescription string `json:"error_description,omitempty" xml:"error_description,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateResponse.go b/model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateResponse.go deleted file mode 100644 index 0e3af747b8..0000000000 --- a/model/aesolution/AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -aliexpress.solution.issue.partner.rma.reverselogistic.trackinginfo.create API返回值 -aliexpress.solution.issue.partner.rma.reverselogistic.trackinginfo.create - -Receives information about reverse logistics tracking info -*/ -type AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateAPIResponse struct { - model.CommonResponse - AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateResponse -} - -// aliexpress.solution.issue.partner.rma.reverselogistic.trackinginfo.create 成功返回结果 -type AliexpressSolutionIssuePartnerRmaReverselogisticTrackinginfoCreateResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_issue_partner_rma_reverselogistic_trackinginfo_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Error code. 0 value is no error. - CodeError string `json:"code_error,omitempty" xml:"code_error,omitempty"` - // Error description - ErrorDescription string `json:"error_description,omitempty" xml:"error_description,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionIssuePartnerRmaScreeningCreateAPIRequest.go b/model/aesolution/AliexpressSolutionIssuePartnerRmaScreeningCreateAPIRequest.go new file mode 100644 index 0000000000..a85cba4bd8 --- /dev/null +++ b/model/aesolution/AliexpressSolutionIssuePartnerRmaScreeningCreateAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.issue.partner.rma.screening.create API请求 +aliexpress.solution.issue.partner.rma.screening.create + +Receives information about screening results from after sales partners +*/ +type AliexpressSolutionIssuePartnerRmaScreeningCreateAPIRequest struct { + model.Params + // Screening result creation request + _screeningResultCreationRequest *RmaScreeningCreationRequest +} + +// 初始化AliexpressSolutionIssuePartnerRmaScreeningCreateAPIRequest对象 +func NewAliexpressSolutionIssuePartnerRmaScreeningCreateRequest() *AliexpressSolutionIssuePartnerRmaScreeningCreateAPIRequest{ + return &AliexpressSolutionIssuePartnerRmaScreeningCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionIssuePartnerRmaScreeningCreateAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.issue.partner.rma.screening.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionIssuePartnerRmaScreeningCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ScreeningResultCreationRequest Setter +// Screening result creation request +func (r *AliexpressSolutionIssuePartnerRmaScreeningCreateAPIRequest) SetScreeningResultCreationRequest(_screeningResultCreationRequest *RmaScreeningCreationRequest) error { + r._screeningResultCreationRequest = _screeningResultCreationRequest + r.Set("screening_result_creation_request", _screeningResultCreationRequest) + return nil +} + +// ScreeningResultCreationRequest Getter +func (r AliexpressSolutionIssuePartnerRmaScreeningCreateAPIRequest) GetScreeningResultCreationRequest() *RmaScreeningCreationRequest { + return r._screeningResultCreationRequest +} diff --git a/model/aesolution/AliexpressSolutionIssuePartnerRmaScreeningCreateAPIResponse.go b/model/aesolution/AliexpressSolutionIssuePartnerRmaScreeningCreateAPIResponse.go new file mode 100644 index 0000000000..db68506850 --- /dev/null +++ b/model/aesolution/AliexpressSolutionIssuePartnerRmaScreeningCreateAPIResponse.go @@ -0,0 +1,29 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.issue.partner.rma.screening.create API返回值 +aliexpress.solution.issue.partner.rma.screening.create + +Receives information about screening results from after sales partners +*/ +type AliexpressSolutionIssuePartnerRmaScreeningCreateAPIResponse struct { + model.CommonResponse + AliexpressSolutionIssuePartnerRmaScreeningCreateAPIResponseModel +} + +// aliexpress.solution.issue.partner.rma.screening.create 成功返回结果 +type AliexpressSolutionIssuePartnerRmaScreeningCreateAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_issue_partner_rma_screening_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // error code. 0 means no error + CodeError string `json:"code_error,omitempty" xml:"code_error,omitempty"` + // error description + ErrorDescription string `json:"error_description,omitempty" xml:"error_description,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionIssuePartnerRmaScreeningCreateResponse.go b/model/aesolution/AliexpressSolutionIssuePartnerRmaScreeningCreateResponse.go deleted file mode 100644 index f6e9db3484..0000000000 --- a/model/aesolution/AliexpressSolutionIssuePartnerRmaScreeningCreateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -aliexpress.solution.issue.partner.rma.screening.create API返回值 -aliexpress.solution.issue.partner.rma.screening.create - -Receives information about screening results from after sales partners -*/ -type AliexpressSolutionIssuePartnerRmaScreeningCreateAPIResponse struct { - model.CommonResponse - AliexpressSolutionIssuePartnerRmaScreeningCreateResponse -} - -// aliexpress.solution.issue.partner.rma.screening.create 成功返回结果 -type AliexpressSolutionIssuePartnerRmaScreeningCreateResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_issue_partner_rma_screening_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // error code. 0 means no error - CodeError string `json:"code_error,omitempty" xml:"code_error,omitempty"` - // error description - ErrorDescription string `json:"error_description,omitempty" xml:"error_description,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionIssuePartnerRmaStateUpdateAPIRequest.go b/model/aesolution/AliexpressSolutionIssuePartnerRmaStateUpdateAPIRequest.go new file mode 100644 index 0000000000..25dc53d7d2 --- /dev/null +++ b/model/aesolution/AliexpressSolutionIssuePartnerRmaStateUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.issue.partner.rma.state.update API请求 +aliexpress.solution.issue.partner.rma.state.update + +Receive changes in state updates for RMAs orders from after sales partners +*/ +type AliexpressSolutionIssuePartnerRmaStateUpdateAPIRequest struct { + model.Params + // RMA's order state update request + _rmaStateUpdateRequest *RmaStateUpdateRequest +} + +// 初始化AliexpressSolutionIssuePartnerRmaStateUpdateAPIRequest对象 +func NewAliexpressSolutionIssuePartnerRmaStateUpdateRequest() *AliexpressSolutionIssuePartnerRmaStateUpdateAPIRequest{ + return &AliexpressSolutionIssuePartnerRmaStateUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionIssuePartnerRmaStateUpdateAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.issue.partner.rma.state.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionIssuePartnerRmaStateUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RmaStateUpdateRequest Setter +// RMA's order state update request +func (r *AliexpressSolutionIssuePartnerRmaStateUpdateAPIRequest) SetRmaStateUpdateRequest(_rmaStateUpdateRequest *RmaStateUpdateRequest) error { + r._rmaStateUpdateRequest = _rmaStateUpdateRequest + r.Set("rma_state_update_request", _rmaStateUpdateRequest) + return nil +} + +// RmaStateUpdateRequest Getter +func (r AliexpressSolutionIssuePartnerRmaStateUpdateAPIRequest) GetRmaStateUpdateRequest() *RmaStateUpdateRequest { + return r._rmaStateUpdateRequest +} diff --git a/model/aesolution/AliexpressSolutionIssuePartnerRmaStateUpdateAPIResponse.go b/model/aesolution/AliexpressSolutionIssuePartnerRmaStateUpdateAPIResponse.go new file mode 100644 index 0000000000..3933374ba7 --- /dev/null +++ b/model/aesolution/AliexpressSolutionIssuePartnerRmaStateUpdateAPIResponse.go @@ -0,0 +1,29 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.issue.partner.rma.state.update API返回值 +aliexpress.solution.issue.partner.rma.state.update + +Receive changes in state updates for RMAs orders from after sales partners +*/ +type AliexpressSolutionIssuePartnerRmaStateUpdateAPIResponse struct { + model.CommonResponse + AliexpressSolutionIssuePartnerRmaStateUpdateAPIResponseModel +} + +// aliexpress.solution.issue.partner.rma.state.update 成功返回结果 +type AliexpressSolutionIssuePartnerRmaStateUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_issue_partner_rma_state_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // error code. 0 means no error + CodeError string `json:"code_error,omitempty" xml:"code_error,omitempty"` + // error description + ErrorDescription string `json:"error_description,omitempty" xml:"error_description,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionIssuePartnerRmaStateUpdateResponse.go b/model/aesolution/AliexpressSolutionIssuePartnerRmaStateUpdateResponse.go deleted file mode 100644 index 02ed2e11e6..0000000000 --- a/model/aesolution/AliexpressSolutionIssuePartnerRmaStateUpdateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -aliexpress.solution.issue.partner.rma.state.update API返回值 -aliexpress.solution.issue.partner.rma.state.update - -Receive changes in state updates for RMAs orders from after sales partners -*/ -type AliexpressSolutionIssuePartnerRmaStateUpdateAPIResponse struct { - model.CommonResponse - AliexpressSolutionIssuePartnerRmaStateUpdateResponse -} - -// aliexpress.solution.issue.partner.rma.state.update 成功返回结果 -type AliexpressSolutionIssuePartnerRmaStateUpdateResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_issue_partner_rma_state_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // error code. 0 means no error - CodeError string `json:"code_error,omitempty" xml:"code_error,omitempty"` - // error description - ErrorDescription string `json:"error_description,omitempty" xml:"error_description,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionMerchantProfileGetAPIRequest.go b/model/aesolution/AliexpressSolutionMerchantProfileGetAPIRequest.go new file mode 100644 index 0000000000..a95d18535e --- /dev/null +++ b/model/aesolution/AliexpressSolutionMerchantProfileGetAPIRequest.go @@ -0,0 +1,38 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.merchant.profile.get API请求 +aliexpress.solution.merchant.profile.get + +API for oversea sellers to obtain the normal information, e.g. store id, registration country code. +*/ +type AliexpressSolutionMerchantProfileGetAPIRequest struct { + model.Params +} + +// 初始化AliexpressSolutionMerchantProfileGetAPIRequest对象 +func NewAliexpressSolutionMerchantProfileGetRequest() *AliexpressSolutionMerchantProfileGetAPIRequest{ + return &AliexpressSolutionMerchantProfileGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionMerchantProfileGetAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.merchant.profile.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionMerchantProfileGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/aesolution/AliexpressSolutionMerchantProfileGetAPIResponse.go b/model/aesolution/AliexpressSolutionMerchantProfileGetAPIResponse.go new file mode 100644 index 0000000000..9755485369 --- /dev/null +++ b/model/aesolution/AliexpressSolutionMerchantProfileGetAPIResponse.go @@ -0,0 +1,39 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.merchant.profile.get API返回值 +aliexpress.solution.merchant.profile.get + +API for oversea sellers to obtain the normal information, e.g. store id, registration country code. +*/ +type AliexpressSolutionMerchantProfileGetAPIResponse struct { + model.CommonResponse + AliexpressSolutionMerchantProfileGetAPIResponseModel +} + +// aliexpress.solution.merchant.profile.get 成功返回结果 +type AliexpressSolutionMerchantProfileGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_merchant_profile_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // country code which the merchant chose when registered + CountryCode string `json:"country_code,omitempty" xml:"country_code,omitempty"` + // Indicate whether the mechant could post product or not. FALSE means the merchant could normally post product. + ProductPostingForbidden bool `json:"product_posting_forbidden,omitempty" xml:"product_posting_forbidden,omitempty"` + // merchant login id of Aliexpress + MerchantLoginId string `json:"merchant_login_id,omitempty" xml:"merchant_login_id,omitempty"` + // shop id + ShopId int64 `json:"shop_id,omitempty" xml:"shop_id,omitempty"` + // shop name + ShopName string `json:"shop_name,omitempty" xml:"shop_name,omitempty"` + // shop type + ShopType string `json:"shop_type,omitempty" xml:"shop_type,omitempty"` + // shop url + ShopUrl string `json:"shop_url,omitempty" xml:"shop_url,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionMerchantProfileGetResponse.go b/model/aesolution/AliexpressSolutionMerchantProfileGetResponse.go deleted file mode 100644 index 60957837e6..0000000000 --- a/model/aesolution/AliexpressSolutionMerchantProfileGetResponse.go +++ /dev/null @@ -1,39 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -aliexpress.solution.merchant.profile.get API返回值 -aliexpress.solution.merchant.profile.get - -API for oversea sellers to obtain the normal information, e.g. store id, registration country code. -*/ -type AliexpressSolutionMerchantProfileGetAPIResponse struct { - model.CommonResponse - AliexpressSolutionMerchantProfileGetResponse -} - -// aliexpress.solution.merchant.profile.get 成功返回结果 -type AliexpressSolutionMerchantProfileGetResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_merchant_profile_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // country code which the merchant chose when registered - CountryCode string `json:"country_code,omitempty" xml:"country_code,omitempty"` - // Indicate whether the mechant could post product or not. FALSE means the merchant could normally post product. - ProductPostingForbidden bool `json:"product_posting_forbidden,omitempty" xml:"product_posting_forbidden,omitempty"` - // merchant login id of Aliexpress - MerchantLoginId string `json:"merchant_login_id,omitempty" xml:"merchant_login_id,omitempty"` - // shop id - ShopId int64 `json:"shop_id,omitempty" xml:"shop_id,omitempty"` - // shop name - ShopName string `json:"shop_name,omitempty" xml:"shop_name,omitempty"` - // shop type - ShopType string `json:"shop_type,omitempty" xml:"shop_type,omitempty"` - // shop url - ShopUrl string `json:"shop_url,omitempty" xml:"shop_url,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionOrderFulfillAPIRequest.go b/model/aesolution/AliexpressSolutionOrderFulfillAPIRequest.go new file mode 100644 index 0000000000..7919630c77 --- /dev/null +++ b/model/aesolution/AliexpressSolutionOrderFulfillAPIRequest.go @@ -0,0 +1,122 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +fulfill order API请求 +aliexpress.solution.order.fulfill + +fulfill order for seller +*/ +type AliexpressSolutionOrderFulfillAPIRequest struct { + model.Params + // Actual logistics service selected by the user (logistics service key: This interface obtains the currently supportable logistics according to all the supportable logistics services listed by api.listLogisticsService. Please visit the forum link http://bbs.seller.aliexpress.com/bbs/read.php?tid=266120&page=1&toread=1#tpc for the detailed list of logistics services supported by the platform.) + _serviceName string + // When serviceName=other, fill in the corresponding tracking website. + _trackingWebsite string + // order ID for delivery by the user + _outRef string + // Status including: all shipments (all), part of the delivery (part) + _sendType string + // Remarks (only in English, and the length is limited to 512 characters) + _description string + // logistics number + _logisticsNo string +} + +// 初始化AliexpressSolutionOrderFulfillAPIRequest对象 +func NewAliexpressSolutionOrderFulfillRequest() *AliexpressSolutionOrderFulfillAPIRequest{ + return &AliexpressSolutionOrderFulfillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionOrderFulfillAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.order.fulfill" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionOrderFulfillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceName Setter +// Actual logistics service selected by the user (logistics service key: This interface obtains the currently supportable logistics according to all the supportable logistics services listed by api.listLogisticsService. Please visit the forum link http://bbs.seller.aliexpress.com/bbs/read.php?tid=266120&page=1&toread=1#tpc for the detailed list of logistics services supported by the platform.) +func (r *AliexpressSolutionOrderFulfillAPIRequest) SetServiceName(_serviceName string) error { + r._serviceName = _serviceName + r.Set("service_name", _serviceName) + return nil +} + +// ServiceName Getter +func (r AliexpressSolutionOrderFulfillAPIRequest) GetServiceName() string { + return r._serviceName +} +// TrackingWebsite Setter +// When serviceName=other, fill in the corresponding tracking website. +func (r *AliexpressSolutionOrderFulfillAPIRequest) SetTrackingWebsite(_trackingWebsite string) error { + r._trackingWebsite = _trackingWebsite + r.Set("tracking_website", _trackingWebsite) + return nil +} + +// TrackingWebsite Getter +func (r AliexpressSolutionOrderFulfillAPIRequest) GetTrackingWebsite() string { + return r._trackingWebsite +} +// OutRef Setter +// order ID for delivery by the user +func (r *AliexpressSolutionOrderFulfillAPIRequest) SetOutRef(_outRef string) error { + r._outRef = _outRef + r.Set("out_ref", _outRef) + return nil +} + +// OutRef Getter +func (r AliexpressSolutionOrderFulfillAPIRequest) GetOutRef() string { + return r._outRef +} +// SendType Setter +// Status including: all shipments (all), part of the delivery (part) +func (r *AliexpressSolutionOrderFulfillAPIRequest) SetSendType(_sendType string) error { + r._sendType = _sendType + r.Set("send_type", _sendType) + return nil +} + +// SendType Getter +func (r AliexpressSolutionOrderFulfillAPIRequest) GetSendType() string { + return r._sendType +} +// Description Setter +// Remarks (only in English, and the length is limited to 512 characters) +func (r *AliexpressSolutionOrderFulfillAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r AliexpressSolutionOrderFulfillAPIRequest) GetDescription() string { + return r._description +} +// LogisticsNo Setter +// logistics number +func (r *AliexpressSolutionOrderFulfillAPIRequest) SetLogisticsNo(_logisticsNo string) error { + r._logisticsNo = _logisticsNo + r.Set("logistics_no", _logisticsNo) + return nil +} + +// LogisticsNo Getter +func (r AliexpressSolutionOrderFulfillAPIRequest) GetLogisticsNo() string { + return r._logisticsNo +} diff --git a/model/aesolution/AliexpressSolutionOrderFulfillAPIResponse.go b/model/aesolution/AliexpressSolutionOrderFulfillAPIResponse.go new file mode 100644 index 0000000000..b15bf359ef --- /dev/null +++ b/model/aesolution/AliexpressSolutionOrderFulfillAPIResponse.go @@ -0,0 +1,27 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +fulfill order API返回值 +aliexpress.solution.order.fulfill + +fulfill order for seller +*/ +type AliexpressSolutionOrderFulfillAPIResponse struct { + model.CommonResponse + AliexpressSolutionOrderFulfillAPIResponseModel +} + +// fulfill order 成功返回结果 +type AliexpressSolutionOrderFulfillAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_order_fulfill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionOrderFulfillResponse.go b/model/aesolution/AliexpressSolutionOrderFulfillResponse.go deleted file mode 100644 index 77433d872b..0000000000 --- a/model/aesolution/AliexpressSolutionOrderFulfillResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -fulfill order API返回值 -aliexpress.solution.order.fulfill - -fulfill order for seller -*/ -type AliexpressSolutionOrderFulfillAPIResponse struct { - model.CommonResponse - AliexpressSolutionOrderFulfillResponse -} - -// fulfill order 成功返回结果 -type AliexpressSolutionOrderFulfillResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_order_fulfill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionOrderGetAPIRequest.go b/model/aesolution/AliexpressSolutionOrderGetAPIRequest.go new file mode 100644 index 0000000000..fc1726ecfa --- /dev/null +++ b/model/aesolution/AliexpressSolutionOrderGetAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +get order list API请求 +aliexpress.solution.order.get + +Get Order List from AliExpress +*/ +type AliexpressSolutionOrderGetAPIRequest struct { + model.Params + // param + _param0 *OrderQuery +} + +// 初始化AliexpressSolutionOrderGetAPIRequest对象 +func NewAliexpressSolutionOrderGetRequest() *AliexpressSolutionOrderGetAPIRequest{ + return &AliexpressSolutionOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionOrderGetAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// param +func (r *AliexpressSolutionOrderGetAPIRequest) SetParam0(_param0 *OrderQuery) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AliexpressSolutionOrderGetAPIRequest) GetParam0() *OrderQuery { + return r._param0 +} diff --git a/model/aesolution/AliexpressSolutionOrderGetAPIResponse.go b/model/aesolution/AliexpressSolutionOrderGetAPIResponse.go new file mode 100644 index 0000000000..b6047adb08 --- /dev/null +++ b/model/aesolution/AliexpressSolutionOrderGetAPIResponse.go @@ -0,0 +1,27 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +get order list API返回值 +aliexpress.solution.order.get + +Get Order List from AliExpress +*/ +type AliexpressSolutionOrderGetAPIResponse struct { + model.CommonResponse + AliexpressSolutionOrderGetAPIResponseModel +} + +// get order list 成功返回结果 +type AliexpressSolutionOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PaginationResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionOrderGetResponse.go b/model/aesolution/AliexpressSolutionOrderGetResponse.go deleted file mode 100644 index b594ea8eea..0000000000 --- a/model/aesolution/AliexpressSolutionOrderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -get order list API返回值 -aliexpress.solution.order.get - -Get Order List from AliExpress -*/ -type AliexpressSolutionOrderGetAPIResponse struct { - model.CommonResponse - AliexpressSolutionOrderGetResponse -} - -// get order list 成功返回结果 -type AliexpressSolutionOrderGetResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PaginationResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionOrderInfoGetAPIRequest.go b/model/aesolution/AliexpressSolutionOrderInfoGetAPIRequest.go new file mode 100644 index 0000000000..1388c359a8 --- /dev/null +++ b/model/aesolution/AliexpressSolutionOrderInfoGetAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +get order detail info API请求 +aliexpress.solution.order.info.get + +get order detail info +*/ +type AliexpressSolutionOrderInfoGetAPIRequest struct { + model.Params + // param + _param1 *OrderDetailQuery +} + +// 初始化AliexpressSolutionOrderInfoGetAPIRequest对象 +func NewAliexpressSolutionOrderInfoGetRequest() *AliexpressSolutionOrderInfoGetAPIRequest{ + return &AliexpressSolutionOrderInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionOrderInfoGetAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.order.info.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionOrderInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param1 Setter +// param +func (r *AliexpressSolutionOrderInfoGetAPIRequest) SetParam1(_param1 *OrderDetailQuery) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AliexpressSolutionOrderInfoGetAPIRequest) GetParam1() *OrderDetailQuery { + return r._param1 +} diff --git a/model/aesolution/AliexpressSolutionOrderInfoGetAPIResponse.go b/model/aesolution/AliexpressSolutionOrderInfoGetAPIResponse.go new file mode 100644 index 0000000000..7cd3204ab1 --- /dev/null +++ b/model/aesolution/AliexpressSolutionOrderInfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +get order detail info API返回值 +aliexpress.solution.order.info.get + +get order detail info +*/ +type AliexpressSolutionOrderInfoGetAPIResponse struct { + model.CommonResponse + AliexpressSolutionOrderInfoGetAPIResponseModel +} + +// get order detail info 成功返回结果 +type AliexpressSolutionOrderInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_order_info_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionOrderInfoGetResponse.go b/model/aesolution/AliexpressSolutionOrderInfoGetResponse.go deleted file mode 100644 index d495b2eb2c..0000000000 --- a/model/aesolution/AliexpressSolutionOrderInfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -get order detail info API返回值 -aliexpress.solution.order.info.get - -get order detail info -*/ -type AliexpressSolutionOrderInfoGetAPIResponse struct { - model.CommonResponse - AliexpressSolutionOrderInfoGetResponse -} - -// get order detail info 成功返回结果 -type AliexpressSolutionOrderInfoGetResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_order_info_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionOrderReceiptinfoGetAPIRequest.go b/model/aesolution/AliexpressSolutionOrderReceiptinfoGetAPIRequest.go new file mode 100644 index 0000000000..371afdf0c5 --- /dev/null +++ b/model/aesolution/AliexpressSolutionOrderReceiptinfoGetAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Get Order Receipt Info API请求 +aliexpress.solution.order.receiptinfo.get + +Get Order Receipt Info, Support multi stores requirements for Turkey sellers. +*/ +type AliexpressSolutionOrderReceiptinfoGetAPIRequest struct { + model.Params + // query param + _param1 *SingleOrderQuery +} + +// 初始化AliexpressSolutionOrderReceiptinfoGetAPIRequest对象 +func NewAliexpressSolutionOrderReceiptinfoGetRequest() *AliexpressSolutionOrderReceiptinfoGetAPIRequest{ + return &AliexpressSolutionOrderReceiptinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionOrderReceiptinfoGetAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.order.receiptinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionOrderReceiptinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param1 Setter +// query param +func (r *AliexpressSolutionOrderReceiptinfoGetAPIRequest) SetParam1(_param1 *SingleOrderQuery) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AliexpressSolutionOrderReceiptinfoGetAPIRequest) GetParam1() *SingleOrderQuery { + return r._param1 +} diff --git a/model/aesolution/AliexpressSolutionOrderReceiptinfoGetAPIResponse.go b/model/aesolution/AliexpressSolutionOrderReceiptinfoGetAPIResponse.go new file mode 100644 index 0000000000..687f362d5b --- /dev/null +++ b/model/aesolution/AliexpressSolutionOrderReceiptinfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Get Order Receipt Info API返回值 +aliexpress.solution.order.receiptinfo.get + +Get Order Receipt Info, Support multi stores requirements for Turkey sellers. +*/ +type AliexpressSolutionOrderReceiptinfoGetAPIResponse struct { + model.CommonResponse + AliexpressSolutionOrderReceiptinfoGetAPIResponseModel +} + +// Get Order Receipt Info 成功返回结果 +type AliexpressSolutionOrderReceiptinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_order_receiptinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *OrderAddressDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionOrderReceiptinfoGetResponse.go b/model/aesolution/AliexpressSolutionOrderReceiptinfoGetResponse.go deleted file mode 100644 index e590c711ec..0000000000 --- a/model/aesolution/AliexpressSolutionOrderReceiptinfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Get Order Receipt Info API返回值 -aliexpress.solution.order.receiptinfo.get - -Get Order Receipt Info, Support multi stores requirements for Turkey sellers. -*/ -type AliexpressSolutionOrderReceiptinfoGetAPIResponse struct { - model.CommonResponse - AliexpressSolutionOrderReceiptinfoGetResponse -} - -// Get Order Receipt Info 成功返回结果 -type AliexpressSolutionOrderReceiptinfoGetResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_order_receiptinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *OrderAddressDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionProductEditAPIRequest.go b/model/aesolution/AliexpressSolutionProductEditAPIRequest.go new file mode 100644 index 0000000000..a86d968165 --- /dev/null +++ b/model/aesolution/AliexpressSolutionProductEditAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Edit Product API API请求 +aliexpress.solution.product.edit + +API for editing product, customized for Oversea merchants. Most of the input fields of this API is similar with aliexpress.solution.product.post. For editing, just fill in the fields you would like to edit, leave other fields to be blank. +*/ +type AliexpressSolutionProductEditAPIRequest struct { + model.Params + // input param + _editProductRequest *PostProductRequestDto +} + +// 初始化AliexpressSolutionProductEditAPIRequest对象 +func NewAliexpressSolutionProductEditRequest() *AliexpressSolutionProductEditAPIRequest{ + return &AliexpressSolutionProductEditAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionProductEditAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.product.edit" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionProductEditAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EditProductRequest Setter +// input param +func (r *AliexpressSolutionProductEditAPIRequest) SetEditProductRequest(_editProductRequest *PostProductRequestDto) error { + r._editProductRequest = _editProductRequest + r.Set("edit_product_request", _editProductRequest) + return nil +} + +// EditProductRequest Getter +func (r AliexpressSolutionProductEditAPIRequest) GetEditProductRequest() *PostProductRequestDto { + return r._editProductRequest +} diff --git a/model/aesolution/AliexpressSolutionProductEditAPIResponse.go b/model/aesolution/AliexpressSolutionProductEditAPIResponse.go new file mode 100644 index 0000000000..c988eabcdc --- /dev/null +++ b/model/aesolution/AliexpressSolutionProductEditAPIResponse.go @@ -0,0 +1,27 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Edit Product API API返回值 +aliexpress.solution.product.edit + +API for editing product, customized for Oversea merchants. Most of the input fields of this API is similar with aliexpress.solution.product.post. For editing, just fill in the fields you would like to edit, leave other fields to be blank. +*/ +type AliexpressSolutionProductEditAPIResponse struct { + model.CommonResponse + AliexpressSolutionProductEditAPIResponseModel +} + +// Edit Product API 成功返回结果 +type AliexpressSolutionProductEditAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_product_edit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PostItemResponseDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionProductEditResponse.go b/model/aesolution/AliexpressSolutionProductEditResponse.go deleted file mode 100644 index 577cb12cb9..0000000000 --- a/model/aesolution/AliexpressSolutionProductEditResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Edit Product API API返回值 -aliexpress.solution.product.edit - -API for editing product, customized for Oversea merchants. Most of the input fields of this API is similar with aliexpress.solution.product.post. For editing, just fill in the fields you would like to edit, leave other fields to be blank. -*/ -type AliexpressSolutionProductEditAPIResponse struct { - model.CommonResponse - AliexpressSolutionProductEditResponse -} - -// Edit Product API 成功返回结果 -type AliexpressSolutionProductEditResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_product_edit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PostItemResponseDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionProductInfoGetAPIRequest.go b/model/aesolution/AliexpressSolutionProductInfoGetAPIRequest.go new file mode 100644 index 0000000000..3aeef7092f --- /dev/null +++ b/model/aesolution/AliexpressSolutionProductInfoGetAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Get Single Product Info API请求 +aliexpress.solution.product.info.get + +Get Single Product Info +*/ +type AliexpressSolutionProductInfoGetAPIRequest struct { + model.Params + // product ID + _productId int64 +} + +// 初始化AliexpressSolutionProductInfoGetAPIRequest对象 +func NewAliexpressSolutionProductInfoGetRequest() *AliexpressSolutionProductInfoGetAPIRequest{ + return &AliexpressSolutionProductInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionProductInfoGetAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.product.info.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionProductInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// product ID +func (r *AliexpressSolutionProductInfoGetAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r AliexpressSolutionProductInfoGetAPIRequest) GetProductId() int64 { + return r._productId +} diff --git a/model/aesolution/AliexpressSolutionProductInfoGetAPIResponse.go b/model/aesolution/AliexpressSolutionProductInfoGetAPIResponse.go new file mode 100644 index 0000000000..06def37e1d --- /dev/null +++ b/model/aesolution/AliexpressSolutionProductInfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Get Single Product Info API返回值 +aliexpress.solution.product.info.get + +Get Single Product Info +*/ +type AliexpressSolutionProductInfoGetAPIResponse struct { + model.CommonResponse + AliexpressSolutionProductInfoGetAPIResponseModel +} + +// Get Single Product Info 成功返回结果 +type AliexpressSolutionProductInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_product_info_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *GlobalAeopFindProductResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionProductInfoGetResponse.go b/model/aesolution/AliexpressSolutionProductInfoGetResponse.go deleted file mode 100644 index 03605857f0..0000000000 --- a/model/aesolution/AliexpressSolutionProductInfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Get Single Product Info API返回值 -aliexpress.solution.product.info.get - -Get Single Product Info -*/ -type AliexpressSolutionProductInfoGetAPIResponse struct { - model.CommonResponse - AliexpressSolutionProductInfoGetResponse -} - -// Get Single Product Info 成功返回结果 -type AliexpressSolutionProductInfoGetResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_product_info_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *GlobalAeopFindProductResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionProductListGetAPIRequest.go b/model/aesolution/AliexpressSolutionProductListGetAPIRequest.go new file mode 100644 index 0000000000..5a7a16289a --- /dev/null +++ b/model/aesolution/AliexpressSolutionProductListGetAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Get product list API请求 +aliexpress.solution.product.list.get + +Get product list +*/ +type AliexpressSolutionProductListGetAPIRequest struct { + model.Params + // request parameters to query + _aeopAEProductListQuery *ItemListQuery +} + +// 初始化AliexpressSolutionProductListGetAPIRequest对象 +func NewAliexpressSolutionProductListGetRequest() *AliexpressSolutionProductListGetAPIRequest{ + return &AliexpressSolutionProductListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionProductListGetAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.product.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionProductListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AeopAEProductListQuery Setter +// request parameters to query +func (r *AliexpressSolutionProductListGetAPIRequest) SetAeopAEProductListQuery(_aeopAEProductListQuery *ItemListQuery) error { + r._aeopAEProductListQuery = _aeopAEProductListQuery + r.Set("aeop_a_e_product_list_query", _aeopAEProductListQuery) + return nil +} + +// AeopAEProductListQuery Getter +func (r AliexpressSolutionProductListGetAPIRequest) GetAeopAEProductListQuery() *ItemListQuery { + return r._aeopAEProductListQuery +} diff --git a/model/aesolution/AliexpressSolutionProductListGetAPIResponse.go b/model/aesolution/AliexpressSolutionProductListGetAPIResponse.go new file mode 100644 index 0000000000..eab5868c7f --- /dev/null +++ b/model/aesolution/AliexpressSolutionProductListGetAPIResponse.go @@ -0,0 +1,27 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Get product list API返回值 +aliexpress.solution.product.list.get + +Get product list +*/ +type AliexpressSolutionProductListGetAPIResponse struct { + model.CommonResponse + AliexpressSolutionProductListGetAPIResponseModel +} + +// Get product list 成功返回结果 +type AliexpressSolutionProductListGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_product_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ItemListResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionProductListGetResponse.go b/model/aesolution/AliexpressSolutionProductListGetResponse.go deleted file mode 100644 index ff36052953..0000000000 --- a/model/aesolution/AliexpressSolutionProductListGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Get product list API返回值 -aliexpress.solution.product.list.get - -Get product list -*/ -type AliexpressSolutionProductListGetAPIResponse struct { - model.CommonResponse - AliexpressSolutionProductListGetResponse -} - -// Get product list 成功返回结果 -type AliexpressSolutionProductListGetResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_product_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ItemListResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionProductPostAPIRequest.go b/model/aesolution/AliexpressSolutionProductPostAPIRequest.go new file mode 100644 index 0000000000..72e8792366 --- /dev/null +++ b/model/aesolution/AliexpressSolutionProductPostAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Product posting API API请求 +aliexpress.solution.product.post + +Product posting API for Oversea merchants, simplifying the complexity of integration that sellers and merchants face. For example, these sellers can use their own category and attributes instead of mapping those from AE. +*/ +type AliexpressSolutionProductPostAPIRequest struct { + model.Params + // input param + _postProductRequest *PostProductRequestDto +} + +// 初始化AliexpressSolutionProductPostAPIRequest对象 +func NewAliexpressSolutionProductPostRequest() *AliexpressSolutionProductPostAPIRequest{ + return &AliexpressSolutionProductPostAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionProductPostAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.product.post" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionProductPostAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PostProductRequest Setter +// input param +func (r *AliexpressSolutionProductPostAPIRequest) SetPostProductRequest(_postProductRequest *PostProductRequestDto) error { + r._postProductRequest = _postProductRequest + r.Set("post_product_request", _postProductRequest) + return nil +} + +// PostProductRequest Getter +func (r AliexpressSolutionProductPostAPIRequest) GetPostProductRequest() *PostProductRequestDto { + return r._postProductRequest +} diff --git a/model/aesolution/AliexpressSolutionProductPostAPIResponse.go b/model/aesolution/AliexpressSolutionProductPostAPIResponse.go new file mode 100644 index 0000000000..4caf54fcc8 --- /dev/null +++ b/model/aesolution/AliexpressSolutionProductPostAPIResponse.go @@ -0,0 +1,27 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Product posting API API返回值 +aliexpress.solution.product.post + +Product posting API for Oversea merchants, simplifying the complexity of integration that sellers and merchants face. For example, these sellers can use their own category and attributes instead of mapping those from AE. +*/ +type AliexpressSolutionProductPostAPIResponse struct { + model.CommonResponse + AliexpressSolutionProductPostAPIResponseModel +} + +// Product posting API 成功返回结果 +type AliexpressSolutionProductPostAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_product_post_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PostItemResponseDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionProductPostResponse.go b/model/aesolution/AliexpressSolutionProductPostResponse.go deleted file mode 100644 index 449f9aeb41..0000000000 --- a/model/aesolution/AliexpressSolutionProductPostResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Product posting API API返回值 -aliexpress.solution.product.post - -Product posting API for Oversea merchants, simplifying the complexity of integration that sellers and merchants face. For example, these sellers can use their own category and attributes instead of mapping those from AE. -*/ -type AliexpressSolutionProductPostAPIResponse struct { - model.CommonResponse - AliexpressSolutionProductPostResponse -} - -// Product posting API 成功返回结果 -type AliexpressSolutionProductPostResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_product_post_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PostItemResponseDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionProductSchemaGetAPIRequest.go b/model/aesolution/AliexpressSolutionProductSchemaGetAPIRequest.go new file mode 100644 index 0000000000..324782a1b4 --- /dev/null +++ b/model/aesolution/AliexpressSolutionProductSchemaGetAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +get product schema API请求 +aliexpress.solution.product.schema.get + +provide a new schema way to post product. With a pair of API, one for getting schema, one for posting instance +*/ +type AliexpressSolutionProductSchemaGetAPIRequest struct { + model.Params + // aliexpress category id. You can get it from category API + _aliexpressCategoryId int64 +} + +// 初始化AliexpressSolutionProductSchemaGetAPIRequest对象 +func NewAliexpressSolutionProductSchemaGetRequest() *AliexpressSolutionProductSchemaGetAPIRequest{ + return &AliexpressSolutionProductSchemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionProductSchemaGetAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.product.schema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionProductSchemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AliexpressCategoryId Setter +// aliexpress category id. You can get it from category API +func (r *AliexpressSolutionProductSchemaGetAPIRequest) SetAliexpressCategoryId(_aliexpressCategoryId int64) error { + r._aliexpressCategoryId = _aliexpressCategoryId + r.Set("aliexpress_category_id", _aliexpressCategoryId) + return nil +} + +// AliexpressCategoryId Getter +func (r AliexpressSolutionProductSchemaGetAPIRequest) GetAliexpressCategoryId() int64 { + return r._aliexpressCategoryId +} diff --git a/model/aesolution/AliexpressSolutionProductSchemaGetAPIResponse.go b/model/aesolution/AliexpressSolutionProductSchemaGetAPIResponse.go new file mode 100644 index 0000000000..16762c41a7 --- /dev/null +++ b/model/aesolution/AliexpressSolutionProductSchemaGetAPIResponse.go @@ -0,0 +1,27 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +get product schema API返回值 +aliexpress.solution.product.schema.get + +provide a new schema way to post product. With a pair of API, one for getting schema, one for posting instance +*/ +type AliexpressSolutionProductSchemaGetAPIResponse struct { + model.CommonResponse + AliexpressSolutionProductSchemaGetAPIResponseModel +} + +// get product schema 成功返回结果 +type AliexpressSolutionProductSchemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_product_schema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ProductSchemaDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionProductSchemaGetResponse.go b/model/aesolution/AliexpressSolutionProductSchemaGetResponse.go deleted file mode 100644 index 9b26db9a10..0000000000 --- a/model/aesolution/AliexpressSolutionProductSchemaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -get product schema API返回值 -aliexpress.solution.product.schema.get - -provide a new schema way to post product. With a pair of API, one for getting schema, one for posting instance -*/ -type AliexpressSolutionProductSchemaGetAPIResponse struct { - model.CommonResponse - AliexpressSolutionProductSchemaGetResponse -} - -// get product schema 成功返回结果 -type AliexpressSolutionProductSchemaGetResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_product_schema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ProductSchemaDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionSchemaProductFullUpdateAPIRequest.go b/model/aesolution/AliexpressSolutionSchemaProductFullUpdateAPIRequest.go new file mode 100644 index 0000000000..10206848f8 --- /dev/null +++ b/model/aesolution/AliexpressSolutionSchemaProductFullUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.schema.product.full.update API请求 +aliexpress.solution.schema.product.full.update + +Schema interface for product full update. QPS(Invoke per second) for this API is limited to 100 for each appkey and 50 for each seller. +*/ +type AliexpressSolutionSchemaProductFullUpdateAPIRequest struct { + model.Params + // Product full update request. To learn how to generate the content, please refer to https://developers.aliexpress.com/en/doc.htm?docId=109760&docType=1. Be aware that the aliexpress_product_id field should be replaced by the product ID belonged to the seller. + _schemaFullUpdateRequest string +} + +// 初始化AliexpressSolutionSchemaProductFullUpdateAPIRequest对象 +func NewAliexpressSolutionSchemaProductFullUpdateRequest() *AliexpressSolutionSchemaProductFullUpdateAPIRequest{ + return &AliexpressSolutionSchemaProductFullUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionSchemaProductFullUpdateAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.schema.product.full.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionSchemaProductFullUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SchemaFullUpdateRequest Setter +// Product full update request. To learn how to generate the content, please refer to https://developers.aliexpress.com/en/doc.htm?docId=109760&docType=1. Be aware that the aliexpress_product_id field should be replaced by the product ID belonged to the seller. +func (r *AliexpressSolutionSchemaProductFullUpdateAPIRequest) SetSchemaFullUpdateRequest(_schemaFullUpdateRequest string) error { + r._schemaFullUpdateRequest = _schemaFullUpdateRequest + r.Set("schema_full_update_request", _schemaFullUpdateRequest) + return nil +} + +// SchemaFullUpdateRequest Getter +func (r AliexpressSolutionSchemaProductFullUpdateAPIRequest) GetSchemaFullUpdateRequest() string { + return r._schemaFullUpdateRequest +} diff --git a/model/aesolution/AliexpressSolutionSchemaProductFullUpdateAPIResponse.go b/model/aesolution/AliexpressSolutionSchemaProductFullUpdateAPIResponse.go new file mode 100644 index 0000000000..00f6a62b87 --- /dev/null +++ b/model/aesolution/AliexpressSolutionSchemaProductFullUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.schema.product.full.update API返回值 +aliexpress.solution.schema.product.full.update + +Schema interface for product full update. QPS(Invoke per second) for this API is limited to 100 for each appkey and 50 for each seller. +*/ +type AliexpressSolutionSchemaProductFullUpdateAPIResponse struct { + model.CommonResponse + AliexpressSolutionSchemaProductFullUpdateAPIResponseModel +} + +// aliexpress.solution.schema.product.full.update 成功返回结果 +type AliexpressSolutionSchemaProductFullUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_schema_product_full_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Product id that has been updated. + ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionSchemaProductFullUpdateResponse.go b/model/aesolution/AliexpressSolutionSchemaProductFullUpdateResponse.go deleted file mode 100644 index 7663889d74..0000000000 --- a/model/aesolution/AliexpressSolutionSchemaProductFullUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -aliexpress.solution.schema.product.full.update API返回值 -aliexpress.solution.schema.product.full.update - -Schema interface for product full update. QPS(Invoke per second) for this API is limited to 100 for each appkey and 50 for each seller. -*/ -type AliexpressSolutionSchemaProductFullUpdateAPIResponse struct { - model.CommonResponse - AliexpressSolutionSchemaProductFullUpdateResponse -} - -// aliexpress.solution.schema.product.full.update 成功返回结果 -type AliexpressSolutionSchemaProductFullUpdateResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_schema_product_full_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Product id that has been updated. - ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionSchemaProductInstancePostAPIRequest.go b/model/aesolution/AliexpressSolutionSchemaProductInstancePostAPIRequest.go new file mode 100644 index 0000000000..e0095081e7 --- /dev/null +++ b/model/aesolution/AliexpressSolutionSchemaProductInstancePostAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.schema.product.instance.post API请求 +aliexpress.solution.schema.product.instance.post + +Upload product based on json schema instance.QPS(Invoke per second) for this API is limited to 100 for each appkey and 50 for each seller. +*/ +type AliexpressSolutionSchemaProductInstancePostAPIRequest struct { + model.Params + // Product instance data. Please note: the shipping_template_id should be replaced with your own shipping template id, which could be obtained through https://developers.aliexpress.com/en/doc.htm?docId=43456&docType=2 + _productInstanceRequest string +} + +// 初始化AliexpressSolutionSchemaProductInstancePostAPIRequest对象 +func NewAliexpressSolutionSchemaProductInstancePostRequest() *AliexpressSolutionSchemaProductInstancePostAPIRequest{ + return &AliexpressSolutionSchemaProductInstancePostAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionSchemaProductInstancePostAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.schema.product.instance.post" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionSchemaProductInstancePostAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductInstanceRequest Setter +// Product instance data. Please note: the shipping_template_id should be replaced with your own shipping template id, which could be obtained through https://developers.aliexpress.com/en/doc.htm?docId=43456&docType=2 +func (r *AliexpressSolutionSchemaProductInstancePostAPIRequest) SetProductInstanceRequest(_productInstanceRequest string) error { + r._productInstanceRequest = _productInstanceRequest + r.Set("product_instance_request", _productInstanceRequest) + return nil +} + +// ProductInstanceRequest Getter +func (r AliexpressSolutionSchemaProductInstancePostAPIRequest) GetProductInstanceRequest() string { + return r._productInstanceRequest +} diff --git a/model/aesolution/AliexpressSolutionSchemaProductInstancePostAPIResponse.go b/model/aesolution/AliexpressSolutionSchemaProductInstancePostAPIResponse.go new file mode 100644 index 0000000000..9945a67b72 --- /dev/null +++ b/model/aesolution/AliexpressSolutionSchemaProductInstancePostAPIResponse.go @@ -0,0 +1,27 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.schema.product.instance.post API返回值 +aliexpress.solution.schema.product.instance.post + +Upload product based on json schema instance.QPS(Invoke per second) for this API is limited to 100 for each appkey and 50 for each seller. +*/ +type AliexpressSolutionSchemaProductInstancePostAPIResponse struct { + model.CommonResponse + AliexpressSolutionSchemaProductInstancePostAPIResponseModel +} + +// aliexpress.solution.schema.product.instance.post 成功返回结果 +type AliexpressSolutionSchemaProductInstancePostAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_schema_product_instance_post_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result of the product posting + Result *PostItemResponseDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionSchemaProductInstancePostResponse.go b/model/aesolution/AliexpressSolutionSchemaProductInstancePostResponse.go deleted file mode 100644 index 4bf00c5c2e..0000000000 --- a/model/aesolution/AliexpressSolutionSchemaProductInstancePostResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -aliexpress.solution.schema.product.instance.post API返回值 -aliexpress.solution.schema.product.instance.post - -Upload product based on json schema instance.QPS(Invoke per second) for this API is limited to 100 for each appkey and 50 for each seller. -*/ -type AliexpressSolutionSchemaProductInstancePostAPIResponse struct { - model.CommonResponse - AliexpressSolutionSchemaProductInstancePostResponse -} - -// aliexpress.solution.schema.product.instance.post 成功返回结果 -type AliexpressSolutionSchemaProductInstancePostResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_schema_product_instance_post_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result of the product posting - Result *PostItemResponseDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionSellerCategoryTreeQueryAPIRequest.go b/model/aesolution/AliexpressSolutionSellerCategoryTreeQueryAPIRequest.go new file mode 100644 index 0000000000..e8fa3a311a --- /dev/null +++ b/model/aesolution/AliexpressSolutionSellerCategoryTreeQueryAPIRequest.go @@ -0,0 +1,66 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.seller.category.tree.query API请求 +aliexpress.solution.seller.category.tree.query + +API for seller to query the category tree. Support only displaying the categories which seller have permissions to publish products. +*/ +type AliexpressSolutionSellerCategoryTreeQueryAPIRequest struct { + model.Params + // parent category ID. To obtain the root categories, setting the category_id = 0 + _categoryId int64 + // filter the categories which seller does not have permission + _filterNoPermission bool +} + +// 初始化AliexpressSolutionSellerCategoryTreeQueryAPIRequest对象 +func NewAliexpressSolutionSellerCategoryTreeQueryRequest() *AliexpressSolutionSellerCategoryTreeQueryAPIRequest{ + return &AliexpressSolutionSellerCategoryTreeQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionSellerCategoryTreeQueryAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.seller.category.tree.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionSellerCategoryTreeQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CategoryId Setter +// parent category ID. To obtain the root categories, setting the category_id = 0 +func (r *AliexpressSolutionSellerCategoryTreeQueryAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r AliexpressSolutionSellerCategoryTreeQueryAPIRequest) GetCategoryId() int64 { + return r._categoryId +} +// FilterNoPermission Setter +// filter the categories which seller does not have permission +func (r *AliexpressSolutionSellerCategoryTreeQueryAPIRequest) SetFilterNoPermission(_filterNoPermission bool) error { + r._filterNoPermission = _filterNoPermission + r.Set("filter_no_permission", _filterNoPermission) + return nil +} + +// FilterNoPermission Getter +func (r AliexpressSolutionSellerCategoryTreeQueryAPIRequest) GetFilterNoPermission() bool { + return r._filterNoPermission +} diff --git a/model/aesolution/AliexpressSolutionSellerCategoryTreeQueryAPIResponse.go b/model/aesolution/AliexpressSolutionSellerCategoryTreeQueryAPIResponse.go new file mode 100644 index 0000000000..ea20721254 --- /dev/null +++ b/model/aesolution/AliexpressSolutionSellerCategoryTreeQueryAPIResponse.go @@ -0,0 +1,29 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +aliexpress.solution.seller.category.tree.query API返回值 +aliexpress.solution.seller.category.tree.query + +API for seller to query the category tree. Support only displaying the categories which seller have permissions to publish products. +*/ +type AliexpressSolutionSellerCategoryTreeQueryAPIResponse struct { + model.CommonResponse + AliexpressSolutionSellerCategoryTreeQueryAPIResponseModel +} + +// aliexpress.solution.seller.category.tree.query 成功返回结果 +type AliexpressSolutionSellerCategoryTreeQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_seller_category_tree_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // children category list under category_id + ChildrenCategoryList []CategoryInfo `json:"children_category_list,omitempty" xml:"children_category_list>category_info,omitempty"` + // whether success or not + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionSellerCategoryTreeQueryResponse.go b/model/aesolution/AliexpressSolutionSellerCategoryTreeQueryResponse.go deleted file mode 100644 index 2cf089f95b..0000000000 --- a/model/aesolution/AliexpressSolutionSellerCategoryTreeQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -aliexpress.solution.seller.category.tree.query API返回值 -aliexpress.solution.seller.category.tree.query - -API for seller to query the category tree. Support only displaying the categories which seller have permissions to publish products. -*/ -type AliexpressSolutionSellerCategoryTreeQueryAPIResponse struct { - model.CommonResponse - AliexpressSolutionSellerCategoryTreeQueryResponse -} - -// aliexpress.solution.seller.category.tree.query 成功返回结果 -type AliexpressSolutionSellerCategoryTreeQueryResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_seller_category_tree_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // children category list under category_id - ChildrenCategoryList []CategoryInfo `json:"children_category_list,omitempty" xml:"children_category_list>category_info,omitempty"` - // whether success or not - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/aesolution/AliexpressSolutionSkuAttributeQueryAPIRequest.go b/model/aesolution/AliexpressSolutionSkuAttributeQueryAPIRequest.go new file mode 100644 index 0000000000..6f10641421 --- /dev/null +++ b/model/aesolution/AliexpressSolutionSkuAttributeQueryAPIRequest.go @@ -0,0 +1,52 @@ +package aesolution + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Query the sku attribute information belonged to a specific category API请求 +aliexpress.solution.sku.attribute.query + +Query the sku attribute information belonged to a specific category, customized for oversea merchants. +*/ +type AliexpressSolutionSkuAttributeQueryAPIRequest struct { + model.Params + // input parameters + _querySkuAttributeInfoRequest *SkuAttributeInfoQueryRequest +} + +// 初始化AliexpressSolutionSkuAttributeQueryAPIRequest对象 +func NewAliexpressSolutionSkuAttributeQueryRequest() *AliexpressSolutionSkuAttributeQueryAPIRequest{ + return &AliexpressSolutionSkuAttributeQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSolutionSkuAttributeQueryAPIRequest) GetApiMethodName() string { + return "aliexpress.solution.sku.attribute.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSolutionSkuAttributeQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QuerySkuAttributeInfoRequest Setter +// input parameters +func (r *AliexpressSolutionSkuAttributeQueryAPIRequest) SetQuerySkuAttributeInfoRequest(_querySkuAttributeInfoRequest *SkuAttributeInfoQueryRequest) error { + r._querySkuAttributeInfoRequest = _querySkuAttributeInfoRequest + r.Set("query_sku_attribute_info_request", _querySkuAttributeInfoRequest) + return nil +} + +// QuerySkuAttributeInfoRequest Getter +func (r AliexpressSolutionSkuAttributeQueryAPIRequest) GetQuerySkuAttributeInfoRequest() *SkuAttributeInfoQueryRequest { + return r._querySkuAttributeInfoRequest +} diff --git a/model/aesolution/AliexpressSolutionSkuAttributeQueryAPIResponse.go b/model/aesolution/AliexpressSolutionSkuAttributeQueryAPIResponse.go new file mode 100644 index 0000000000..983cdbdc62 --- /dev/null +++ b/model/aesolution/AliexpressSolutionSkuAttributeQueryAPIResponse.go @@ -0,0 +1,27 @@ +package aesolution + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Query the sku attribute information belonged to a specific category API返回值 +aliexpress.solution.sku.attribute.query + +Query the sku attribute information belonged to a specific category, customized for oversea merchants. +*/ +type AliexpressSolutionSkuAttributeQueryAPIResponse struct { + model.CommonResponse + AliexpressSolutionSkuAttributeQueryAPIResponseModel +} + +// Query the sku attribute information belonged to a specific category 成功返回结果 +type AliexpressSolutionSkuAttributeQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_solution_sku_attribute_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *SkuAttributeInfoQueryResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aesolution/AliexpressSolutionSkuAttributeQueryResponse.go b/model/aesolution/AliexpressSolutionSkuAttributeQueryResponse.go deleted file mode 100644 index 19b911d532..0000000000 --- a/model/aesolution/AliexpressSolutionSkuAttributeQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aesolution - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Query the sku attribute information belonged to a specific category API返回值 -aliexpress.solution.sku.attribute.query - -Query the sku attribute information belonged to a specific category, customized for oversea merchants. -*/ -type AliexpressSolutionSkuAttributeQueryAPIResponse struct { - model.CommonResponse - AliexpressSolutionSkuAttributeQueryResponse -} - -// Query the sku attribute information belonged to a specific category 成功返回结果 -type AliexpressSolutionSkuAttributeQueryResponse struct { - XMLName xml.Name `xml:"aliexpress_solution_sku_attribute_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *SkuAttributeInfoQueryResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aetask/AliexpressInteractiveTaskCompleteAPIRequest.go b/model/aetask/AliexpressInteractiveTaskCompleteAPIRequest.go new file mode 100644 index 0000000000..bef9a5ed3e --- /dev/null +++ b/model/aetask/AliexpressInteractiveTaskCompleteAPIRequest.go @@ -0,0 +1,66 @@ +package aetask + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +任务完成接口 API请求 +aliexpress.interactive.task.complete + +用户完成任务 +*/ +type AliexpressInteractiveTaskCompleteAPIRequest struct { + model.Params + // 任务实例id + _taskInstanceId int64 + // appkey + _projectAppKey string +} + +// 初始化AliexpressInteractiveTaskCompleteAPIRequest对象 +func NewAliexpressInteractiveTaskCompleteRequest() *AliexpressInteractiveTaskCompleteAPIRequest{ + return &AliexpressInteractiveTaskCompleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressInteractiveTaskCompleteAPIRequest) GetApiMethodName() string { + return "aliexpress.interactive.task.complete" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressInteractiveTaskCompleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TaskInstanceId Setter +// 任务实例id +func (r *AliexpressInteractiveTaskCompleteAPIRequest) SetTaskInstanceId(_taskInstanceId int64) error { + r._taskInstanceId = _taskInstanceId + r.Set("task_instance_id", _taskInstanceId) + return nil +} + +// TaskInstanceId Getter +func (r AliexpressInteractiveTaskCompleteAPIRequest) GetTaskInstanceId() int64 { + return r._taskInstanceId +} +// ProjectAppKey Setter +// appkey +func (r *AliexpressInteractiveTaskCompleteAPIRequest) SetProjectAppKey(_projectAppKey string) error { + r._projectAppKey = _projectAppKey + r.Set("project_app_key", _projectAppKey) + return nil +} + +// ProjectAppKey Getter +func (r AliexpressInteractiveTaskCompleteAPIRequest) GetProjectAppKey() string { + return r._projectAppKey +} diff --git a/model/aetask/AliexpressInteractiveTaskCompleteAPIResponse.go b/model/aetask/AliexpressInteractiveTaskCompleteAPIResponse.go new file mode 100644 index 0000000000..1bc5545ad4 --- /dev/null +++ b/model/aetask/AliexpressInteractiveTaskCompleteAPIResponse.go @@ -0,0 +1,27 @@ +package aetask + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +任务完成接口 API返回值 +aliexpress.interactive.task.complete + +用户完成任务 +*/ +type AliexpressInteractiveTaskCompleteAPIResponse struct { + model.CommonResponse + AliexpressInteractiveTaskCompleteAPIResponseModel +} + +// 任务完成接口 成功返回结果 +type AliexpressInteractiveTaskCompleteAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_interactive_task_complete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AliexpressInteractiveTaskCompleteResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aetask/AliexpressInteractiveTaskCompleteResponse.go b/model/aetask/AliexpressInteractiveTaskCompleteResponse.go deleted file mode 100644 index 8f49cf47ca..0000000000 --- a/model/aetask/AliexpressInteractiveTaskCompleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aetask - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -任务完成接口 API返回值 -aliexpress.interactive.task.complete - -用户完成任务 -*/ -type AliexpressInteractiveTaskCompleteAPIResponse struct { - model.CommonResponse - AliexpressInteractiveTaskCompleteResponse -} - -// 任务完成接口 成功返回结果 -type AliexpressInteractiveTaskCompleteResponse struct { - XMLName xml.Name `xml:"aliexpress_interactive_task_complete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AliexpressInteractiveTaskCompleteResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aetask/AliexpressInteractiveTaskDeliveryQueryAPIRequest.go b/model/aetask/AliexpressInteractiveTaskDeliveryQueryAPIRequest.go new file mode 100644 index 0000000000..1a0aab561b --- /dev/null +++ b/model/aetask/AliexpressInteractiveTaskDeliveryQueryAPIRequest.go @@ -0,0 +1,52 @@ +package aetask + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AE互动任务投放 API请求 +aliexpress.interactive.task.delivery.query + +将内部配置好的任务,如浏览商品,店铺投放给外部ISV +*/ +type AliexpressInteractiveTaskDeliveryQueryAPIRequest struct { + model.Params + // 返回结果 + _requestDto *QueryDeliveryRequestDto +} + +// 初始化AliexpressInteractiveTaskDeliveryQueryAPIRequest对象 +func NewAliexpressInteractiveTaskDeliveryQueryRequest() *AliexpressInteractiveTaskDeliveryQueryAPIRequest{ + return &AliexpressInteractiveTaskDeliveryQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressInteractiveTaskDeliveryQueryAPIRequest) GetApiMethodName() string { + return "aliexpress.interactive.task.delivery.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressInteractiveTaskDeliveryQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestDto Setter +// 返回结果 +func (r *AliexpressInteractiveTaskDeliveryQueryAPIRequest) SetRequestDto(_requestDto *QueryDeliveryRequestDto) error { + r._requestDto = _requestDto + r.Set("request_dto", _requestDto) + return nil +} + +// RequestDto Getter +func (r AliexpressInteractiveTaskDeliveryQueryAPIRequest) GetRequestDto() *QueryDeliveryRequestDto { + return r._requestDto +} diff --git a/model/aetask/AliexpressInteractiveTaskDeliveryQueryAPIResponse.go b/model/aetask/AliexpressInteractiveTaskDeliveryQueryAPIResponse.go new file mode 100644 index 0000000000..0f56aafe9a --- /dev/null +++ b/model/aetask/AliexpressInteractiveTaskDeliveryQueryAPIResponse.go @@ -0,0 +1,31 @@ +package aetask + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AE互动任务投放 API返回值 +aliexpress.interactive.task.delivery.query + +将内部配置好的任务,如浏览商品,店铺投放给外部ISV +*/ +type AliexpressInteractiveTaskDeliveryQueryAPIResponse struct { + model.CommonResponse + AliexpressInteractiveTaskDeliveryQueryAPIResponseModel +} + +// AE互动任务投放 成功返回结果 +type AliexpressInteractiveTaskDeliveryQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_interactive_task_delivery_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务返回接口 + Results []AliexpressInteractiveTaskDeliveryQueryResult `json:"results,omitempty" xml:"results>aliexpress_interactive_task_delivery_query_result,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` +} diff --git a/model/aetask/AliexpressInteractiveTaskDeliveryQueryResponse.go b/model/aetask/AliexpressInteractiveTaskDeliveryQueryResponse.go deleted file mode 100644 index e51b0cd5dd..0000000000 --- a/model/aetask/AliexpressInteractiveTaskDeliveryQueryResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package aetask - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AE互动任务投放 API返回值 -aliexpress.interactive.task.delivery.query - -将内部配置好的任务,如浏览商品,店铺投放给外部ISV -*/ -type AliexpressInteractiveTaskDeliveryQueryAPIResponse struct { - model.CommonResponse - AliexpressInteractiveTaskDeliveryQueryResponse -} - -// AE互动任务投放 成功返回结果 -type AliexpressInteractiveTaskDeliveryQueryResponse struct { - XMLName xml.Name `xml:"aliexpress_interactive_task_delivery_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务返回接口 - Results []AliexpressInteractiveTaskDeliveryQueryResult `json:"results,omitempty" xml:"results>aliexpress_interactive_task_delivery_query_result,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` -} diff --git a/model/aetools/AliexpressAffiliateLinkGenerateAPIRequest.go b/model/aetools/AliexpressAffiliateLinkGenerateAPIRequest.go new file mode 100644 index 0000000000..1416f86b76 --- /dev/null +++ b/model/aetools/AliexpressAffiliateLinkGenerateAPIRequest.go @@ -0,0 +1,94 @@ +package aetools + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +联盟推广链接生成 API请求 +aliexpress.affiliate.link.generate + +AE联盟推广链接生成接口 +*/ +type AliexpressAffiliateLinkGenerateAPIRequest struct { + model.Params + // API请求签名 + _appSignature string + // 转换的链接类型:0代表普通Link,1代表Search Link,2代表 hot link + _promotionLinkType int64 + // 原始链接或者值 + _sourceValues string + // 推广者原始trackingID + _trackingId string +} + +// 初始化AliexpressAffiliateLinkGenerateAPIRequest对象 +func NewAliexpressAffiliateLinkGenerateRequest() *AliexpressAffiliateLinkGenerateAPIRequest{ + return &AliexpressAffiliateLinkGenerateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAffiliateLinkGenerateAPIRequest) GetApiMethodName() string { + return "aliexpress.affiliate.link.generate" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAffiliateLinkGenerateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppSignature Setter +// API请求签名 +func (r *AliexpressAffiliateLinkGenerateAPIRequest) SetAppSignature(_appSignature string) error { + r._appSignature = _appSignature + r.Set("app_signature", _appSignature) + return nil +} + +// AppSignature Getter +func (r AliexpressAffiliateLinkGenerateAPIRequest) GetAppSignature() string { + return r._appSignature +} +// PromotionLinkType Setter +// 转换的链接类型:0代表普通Link,1代表Search Link,2代表 hot link +func (r *AliexpressAffiliateLinkGenerateAPIRequest) SetPromotionLinkType(_promotionLinkType int64) error { + r._promotionLinkType = _promotionLinkType + r.Set("promotion_link_type", _promotionLinkType) + return nil +} + +// PromotionLinkType Getter +func (r AliexpressAffiliateLinkGenerateAPIRequest) GetPromotionLinkType() int64 { + return r._promotionLinkType +} +// SourceValues Setter +// 原始链接或者值 +func (r *AliexpressAffiliateLinkGenerateAPIRequest) SetSourceValues(_sourceValues string) error { + r._sourceValues = _sourceValues + r.Set("source_values", _sourceValues) + return nil +} + +// SourceValues Getter +func (r AliexpressAffiliateLinkGenerateAPIRequest) GetSourceValues() string { + return r._sourceValues +} +// TrackingId Setter +// 推广者原始trackingID +func (r *AliexpressAffiliateLinkGenerateAPIRequest) SetTrackingId(_trackingId string) error { + r._trackingId = _trackingId + r.Set("tracking_id", _trackingId) + return nil +} + +// TrackingId Getter +func (r AliexpressAffiliateLinkGenerateAPIRequest) GetTrackingId() string { + return r._trackingId +} diff --git a/model/aetools/AliexpressAffiliateLinkGenerateAPIResponse.go b/model/aetools/AliexpressAffiliateLinkGenerateAPIResponse.go new file mode 100644 index 0000000000..f9a15b5414 --- /dev/null +++ b/model/aetools/AliexpressAffiliateLinkGenerateAPIResponse.go @@ -0,0 +1,27 @@ +package aetools + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +联盟推广链接生成 API返回值 +aliexpress.affiliate.link.generate + +AE联盟推广链接生成接口 +*/ +type AliexpressAffiliateLinkGenerateAPIResponse struct { + model.CommonResponse + AliexpressAffiliateLinkGenerateAPIResponseModel +} + +// 联盟推广链接生成 成功返回结果 +type AliexpressAffiliateLinkGenerateAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_affiliate_link_generate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + RespResult *ResponseDto `json:"resp_result,omitempty" xml:"resp_result,omitempty"` +} diff --git a/model/aetools/AliexpressAffiliateLinkGenerateResponse.go b/model/aetools/AliexpressAffiliateLinkGenerateResponse.go deleted file mode 100644 index 97b424f149..0000000000 --- a/model/aetools/AliexpressAffiliateLinkGenerateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aetools - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -联盟推广链接生成 API返回值 -aliexpress.affiliate.link.generate - -AE联盟推广链接生成接口 -*/ -type AliexpressAffiliateLinkGenerateAPIResponse struct { - model.CommonResponse - AliexpressAffiliateLinkGenerateResponse -} - -// 联盟推广链接生成 成功返回结果 -type AliexpressAffiliateLinkGenerateResponse struct { - XMLName xml.Name `xml:"aliexpress_affiliate_link_generate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - RespResult *ResponseDto `json:"resp_result,omitempty" xml:"resp_result,omitempty"` -} diff --git a/model/aeusergrowth/AliexpressUsergrowthRecommendItemsGetAPIRequest.go b/model/aeusergrowth/AliexpressUsergrowthRecommendItemsGetAPIRequest.go new file mode 100644 index 0000000000..7950ce26bf --- /dev/null +++ b/model/aeusergrowth/AliexpressUsergrowthRecommendItemsGetAPIRequest.go @@ -0,0 +1,136 @@ +package aeusergrowth + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +第三方平台推荐商品 API请求 +aliexpress.usergrowth.recommend.items.get + +第三方平台的推荐AE商品 场景:skin 、底部推荐等 +*/ +type AliexpressUsergrowthRecommendItemsGetAPIRequest struct { + model.Params + // third party trackingId + _trackingId string + // currency Code + _currencyCode string + // language + _language string + // user type + _userTypeCode string + // page index,start from 1 + _pageIndex string + // page size + _pageSize string + // country code + _countryCode string +} + +// 初始化AliexpressUsergrowthRecommendItemsGetAPIRequest对象 +func NewAliexpressUsergrowthRecommendItemsGetRequest() *AliexpressUsergrowthRecommendItemsGetAPIRequest{ + return &AliexpressUsergrowthRecommendItemsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressUsergrowthRecommendItemsGetAPIRequest) GetApiMethodName() string { + return "aliexpress.usergrowth.recommend.items.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressUsergrowthRecommendItemsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TrackingId Setter +// third party trackingId +func (r *AliexpressUsergrowthRecommendItemsGetAPIRequest) SetTrackingId(_trackingId string) error { + r._trackingId = _trackingId + r.Set("tracking_id", _trackingId) + return nil +} + +// TrackingId Getter +func (r AliexpressUsergrowthRecommendItemsGetAPIRequest) GetTrackingId() string { + return r._trackingId +} +// CurrencyCode Setter +// currency Code +func (r *AliexpressUsergrowthRecommendItemsGetAPIRequest) SetCurrencyCode(_currencyCode string) error { + r._currencyCode = _currencyCode + r.Set("currency_code", _currencyCode) + return nil +} + +// CurrencyCode Getter +func (r AliexpressUsergrowthRecommendItemsGetAPIRequest) GetCurrencyCode() string { + return r._currencyCode +} +// Language Setter +// language +func (r *AliexpressUsergrowthRecommendItemsGetAPIRequest) SetLanguage(_language string) error { + r._language = _language + r.Set("language", _language) + return nil +} + +// Language Getter +func (r AliexpressUsergrowthRecommendItemsGetAPIRequest) GetLanguage() string { + return r._language +} +// UserTypeCode Setter +// user type +func (r *AliexpressUsergrowthRecommendItemsGetAPIRequest) SetUserTypeCode(_userTypeCode string) error { + r._userTypeCode = _userTypeCode + r.Set("user_type_code", _userTypeCode) + return nil +} + +// UserTypeCode Getter +func (r AliexpressUsergrowthRecommendItemsGetAPIRequest) GetUserTypeCode() string { + return r._userTypeCode +} +// PageIndex Setter +// page index,start from 1 +func (r *AliexpressUsergrowthRecommendItemsGetAPIRequest) SetPageIndex(_pageIndex string) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r AliexpressUsergrowthRecommendItemsGetAPIRequest) GetPageIndex() string { + return r._pageIndex +} +// PageSize Setter +// page size +func (r *AliexpressUsergrowthRecommendItemsGetAPIRequest) SetPageSize(_pageSize string) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AliexpressUsergrowthRecommendItemsGetAPIRequest) GetPageSize() string { + return r._pageSize +} +// CountryCode Setter +// country code +func (r *AliexpressUsergrowthRecommendItemsGetAPIRequest) SetCountryCode(_countryCode string) error { + r._countryCode = _countryCode + r.Set("country_code", _countryCode) + return nil +} + +// CountryCode Getter +func (r AliexpressUsergrowthRecommendItemsGetAPIRequest) GetCountryCode() string { + return r._countryCode +} diff --git a/model/aeusergrowth/AliexpressUsergrowthRecommendItemsGetAPIResponse.go b/model/aeusergrowth/AliexpressUsergrowthRecommendItemsGetAPIResponse.go new file mode 100644 index 0000000000..9dc1fe8ed1 --- /dev/null +++ b/model/aeusergrowth/AliexpressUsergrowthRecommendItemsGetAPIResponse.go @@ -0,0 +1,27 @@ +package aeusergrowth + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +第三方平台推荐商品 API返回值 +aliexpress.usergrowth.recommend.items.get + +第三方平台的推荐AE商品 场景:skin 、底部推荐等 +*/ +type AliexpressUsergrowthRecommendItemsGetAPIResponse struct { + model.CommonResponse + AliexpressUsergrowthRecommendItemsGetAPIResponseModel +} + +// 第三方平台推荐商品 成功返回结果 +type AliexpressUsergrowthRecommendItemsGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_usergrowth_recommend_items_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // response model + Result *AliexpressUsergrowthRecommendItemsGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aeusergrowth/AliexpressUsergrowthRecommendItemsGetResponse.go b/model/aeusergrowth/AliexpressUsergrowthRecommendItemsGetResponse.go deleted file mode 100644 index 896d7c8e44..0000000000 --- a/model/aeusergrowth/AliexpressUsergrowthRecommendItemsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aeusergrowth - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -第三方平台推荐商品 API返回值 -aliexpress.usergrowth.recommend.items.get - -第三方平台的推荐AE商品 场景:skin 、底部推荐等 -*/ -type AliexpressUsergrowthRecommendItemsGetAPIResponse struct { - model.CommonResponse - AliexpressUsergrowthRecommendItemsGetResponse -} - -// 第三方平台推荐商品 成功返回结果 -type AliexpressUsergrowthRecommendItemsGetResponse struct { - XMLName xml.Name `xml:"aliexpress_usergrowth_recommend_items_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // response model - Result *AliexpressUsergrowthRecommendItemsGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aeusergrowth/AliexpressUsergrowthSearchItemsGetAPIRequest.go b/model/aeusergrowth/AliexpressUsergrowthSearchItemsGetAPIRequest.go new file mode 100644 index 0000000000..527775d27a --- /dev/null +++ b/model/aeusergrowth/AliexpressUsergrowthSearchItemsGetAPIRequest.go @@ -0,0 +1,136 @@ +package aeusergrowth + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +第三方平台搜索AE商品 API请求 +aliexpress.usergrowth.search.items.get + +第三方平台的搜索服务 获取AE商品list +*/ +type AliexpressUsergrowthSearchItemsGetAPIRequest struct { + model.Params + // user input keypods + _keywords string + // Third party tracking_id + _trackingId string + // currency code + _currencyCode string + // language + _language string + // page size + _pageSize string + // page index + _pageIndex string + // ship to country + _countryCode string +} + +// 初始化AliexpressUsergrowthSearchItemsGetAPIRequest对象 +func NewAliexpressUsergrowthSearchItemsGetRequest() *AliexpressUsergrowthSearchItemsGetAPIRequest{ + return &AliexpressUsergrowthSearchItemsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressUsergrowthSearchItemsGetAPIRequest) GetApiMethodName() string { + return "aliexpress.usergrowth.search.items.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressUsergrowthSearchItemsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Keywords Setter +// user input keypods +func (r *AliexpressUsergrowthSearchItemsGetAPIRequest) SetKeywords(_keywords string) error { + r._keywords = _keywords + r.Set("keywords", _keywords) + return nil +} + +// Keywords Getter +func (r AliexpressUsergrowthSearchItemsGetAPIRequest) GetKeywords() string { + return r._keywords +} +// TrackingId Setter +// Third party tracking_id +func (r *AliexpressUsergrowthSearchItemsGetAPIRequest) SetTrackingId(_trackingId string) error { + r._trackingId = _trackingId + r.Set("tracking_id", _trackingId) + return nil +} + +// TrackingId Getter +func (r AliexpressUsergrowthSearchItemsGetAPIRequest) GetTrackingId() string { + return r._trackingId +} +// CurrencyCode Setter +// currency code +func (r *AliexpressUsergrowthSearchItemsGetAPIRequest) SetCurrencyCode(_currencyCode string) error { + r._currencyCode = _currencyCode + r.Set("currency_code", _currencyCode) + return nil +} + +// CurrencyCode Getter +func (r AliexpressUsergrowthSearchItemsGetAPIRequest) GetCurrencyCode() string { + return r._currencyCode +} +// Language Setter +// language +func (r *AliexpressUsergrowthSearchItemsGetAPIRequest) SetLanguage(_language string) error { + r._language = _language + r.Set("language", _language) + return nil +} + +// Language Getter +func (r AliexpressUsergrowthSearchItemsGetAPIRequest) GetLanguage() string { + return r._language +} +// PageSize Setter +// page size +func (r *AliexpressUsergrowthSearchItemsGetAPIRequest) SetPageSize(_pageSize string) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AliexpressUsergrowthSearchItemsGetAPIRequest) GetPageSize() string { + return r._pageSize +} +// PageIndex Setter +// page index +func (r *AliexpressUsergrowthSearchItemsGetAPIRequest) SetPageIndex(_pageIndex string) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r AliexpressUsergrowthSearchItemsGetAPIRequest) GetPageIndex() string { + return r._pageIndex +} +// CountryCode Setter +// ship to country +func (r *AliexpressUsergrowthSearchItemsGetAPIRequest) SetCountryCode(_countryCode string) error { + r._countryCode = _countryCode + r.Set("country_code", _countryCode) + return nil +} + +// CountryCode Getter +func (r AliexpressUsergrowthSearchItemsGetAPIRequest) GetCountryCode() string { + return r._countryCode +} diff --git a/model/aeusergrowth/AliexpressUsergrowthSearchItemsGetAPIResponse.go b/model/aeusergrowth/AliexpressUsergrowthSearchItemsGetAPIResponse.go new file mode 100644 index 0000000000..0810e75670 --- /dev/null +++ b/model/aeusergrowth/AliexpressUsergrowthSearchItemsGetAPIResponse.go @@ -0,0 +1,27 @@ +package aeusergrowth + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +第三方平台搜索AE商品 API返回值 +aliexpress.usergrowth.search.items.get + +第三方平台的搜索服务 获取AE商品list +*/ +type AliexpressUsergrowthSearchItemsGetAPIResponse struct { + model.CommonResponse + AliexpressUsergrowthSearchItemsGetAPIResponseModel +} + +// 第三方平台搜索AE商品 成功返回结果 +type AliexpressUsergrowthSearchItemsGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_usergrowth_search_items_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // response model + Result *AliexpressUsergrowthSearchItemsGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aeusergrowth/AliexpressUsergrowthSearchItemsGetResponse.go b/model/aeusergrowth/AliexpressUsergrowthSearchItemsGetResponse.go deleted file mode 100644 index 52d78a9112..0000000000 --- a/model/aeusergrowth/AliexpressUsergrowthSearchItemsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aeusergrowth - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -第三方平台搜索AE商品 API返回值 -aliexpress.usergrowth.search.items.get - -第三方平台的搜索服务 获取AE商品list -*/ -type AliexpressUsergrowthSearchItemsGetAPIResponse struct { - model.CommonResponse - AliexpressUsergrowthSearchItemsGetResponse -} - -// 第三方平台搜索AE商品 成功返回结果 -type AliexpressUsergrowthSearchItemsGetResponse struct { - XMLName xml.Name `xml:"aliexpress_usergrowth_search_items_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // response model - Result *AliexpressUsergrowthSearchItemsGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aiar/AlibabaAiArOpenPlatformDetectAPIRequest.go b/model/aiar/AlibabaAiArOpenPlatformDetectAPIRequest.go new file mode 100644 index 0000000000..7ce927a4b3 --- /dev/null +++ b/model/aiar/AlibabaAiArOpenPlatformDetectAPIRequest.go @@ -0,0 +1,108 @@ +package aiar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AR开发者平台marker图片检测服务 API请求 +alibaba.ai.ar.open.platform.detect + +AR开发者平台marker图片检测服务,给AR SDK 和 阿里火眼app使用 +*/ +type AlibabaAiArOpenPlatformDetectAPIRequest struct { + model.Params + // 原始图像数据 + _imgData *model.File + // 最多返回的结果数,默认为1 + _num int64 + // 本地已cache的target,多个target间以|||分隔 + _cachedTargets string + // map,描述所有设备相关信息,如设备ID,分辨率等 + _deviceInfo string + // 版本,默认1.0 + _version string +} + +// 初始化AlibabaAiArOpenPlatformDetectAPIRequest对象 +func NewAlibabaAiArOpenPlatformDetectRequest() *AlibabaAiArOpenPlatformDetectAPIRequest{ + return &AlibabaAiArOpenPlatformDetectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAiArOpenPlatformDetectAPIRequest) GetApiMethodName() string { + return "alibaba.ai.ar.open.platform.detect" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAiArOpenPlatformDetectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImgData Setter +// 原始图像数据 +func (r *AlibabaAiArOpenPlatformDetectAPIRequest) SetImgData(_imgData *model.File) error { + r._imgData = _imgData + r.Set("img_data", _imgData) + return nil +} + +// ImgData Getter +func (r AlibabaAiArOpenPlatformDetectAPIRequest) GetImgData() *model.File { + return r._imgData +} +// Num Setter +// 最多返回的结果数,默认为1 +func (r *AlibabaAiArOpenPlatformDetectAPIRequest) SetNum(_num int64) error { + r._num = _num + r.Set("num", _num) + return nil +} + +// Num Getter +func (r AlibabaAiArOpenPlatformDetectAPIRequest) GetNum() int64 { + return r._num +} +// CachedTargets Setter +// 本地已cache的target,多个target间以|||分隔 +func (r *AlibabaAiArOpenPlatformDetectAPIRequest) SetCachedTargets(_cachedTargets string) error { + r._cachedTargets = _cachedTargets + r.Set("cached_targets", _cachedTargets) + return nil +} + +// CachedTargets Getter +func (r AlibabaAiArOpenPlatformDetectAPIRequest) GetCachedTargets() string { + return r._cachedTargets +} +// DeviceInfo Setter +// map,描述所有设备相关信息,如设备ID,分辨率等 +func (r *AlibabaAiArOpenPlatformDetectAPIRequest) SetDeviceInfo(_deviceInfo string) error { + r._deviceInfo = _deviceInfo + r.Set("device_info", _deviceInfo) + return nil +} + +// DeviceInfo Getter +func (r AlibabaAiArOpenPlatformDetectAPIRequest) GetDeviceInfo() string { + return r._deviceInfo +} +// Version Setter +// 版本,默认1.0 +func (r *AlibabaAiArOpenPlatformDetectAPIRequest) SetVersion(_version string) error { + r._version = _version + r.Set("version", _version) + return nil +} + +// Version Getter +func (r AlibabaAiArOpenPlatformDetectAPIRequest) GetVersion() string { + return r._version +} diff --git a/model/aiar/AlibabaAiArOpenPlatformDetectAPIResponse.go b/model/aiar/AlibabaAiArOpenPlatformDetectAPIResponse.go new file mode 100644 index 0000000000..9800801abc --- /dev/null +++ b/model/aiar/AlibabaAiArOpenPlatformDetectAPIResponse.go @@ -0,0 +1,27 @@ +package aiar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AR开发者平台marker图片检测服务 API返回值 +alibaba.ai.ar.open.platform.detect + +AR开发者平台marker图片检测服务,给AR SDK 和 阿里火眼app使用 +*/ +type AlibabaAiArOpenPlatformDetectAPIResponse struct { + model.CommonResponse + AlibabaAiArOpenPlatformDetectAPIResponseModel +} + +// AR开发者平台marker图片检测服务 成功返回结果 +type AlibabaAiArOpenPlatformDetectAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ai_ar_open_platform_detect_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aiar/AlibabaAiArOpenPlatformDetectResponse.go b/model/aiar/AlibabaAiArOpenPlatformDetectResponse.go deleted file mode 100644 index d8edc22f1f..0000000000 --- a/model/aiar/AlibabaAiArOpenPlatformDetectResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aiar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AR开发者平台marker图片检测服务 API返回值 -alibaba.ai.ar.open.platform.detect - -AR开发者平台marker图片检测服务,给AR SDK 和 阿里火眼app使用 -*/ -type AlibabaAiArOpenPlatformDetectAPIResponse struct { - model.CommonResponse - AlibabaAiArOpenPlatformDetectResponse -} - -// AR开发者平台marker图片检测服务 成功返回结果 -type AlibabaAiArOpenPlatformDetectResponse struct { - XMLName xml.Name `xml:"alibaba_ai_ar_open_platform_detect_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aiar/AlibabaAiArServiceDetectAPIRequest.go b/model/aiar/AlibabaAiArServiceDetectAPIRequest.go new file mode 100644 index 0000000000..d500f9bd1c --- /dev/null +++ b/model/aiar/AlibabaAiArServiceDetectAPIRequest.go @@ -0,0 +1,108 @@ +package aiar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ailab AR图像检索 API请求 +alibaba.ai.ar.service.detect + +ailab AR图像检索 +*/ +type AlibabaAiArServiceDetectAPIRequest struct { + model.Params + // 原始图像数据 + _imgData *model.File + // 最多返回的结果数,默认为1 + _num int64 + // 本地已cache的target,多个target间以|||分隔 + _cachedTargets string + // map,描述所有设备相关信息,如设备ID,分辨率等 + _deviceInfo string + // 版本,默认1.0 + _version string +} + +// 初始化AlibabaAiArServiceDetectAPIRequest对象 +func NewAlibabaAiArServiceDetectRequest() *AlibabaAiArServiceDetectAPIRequest{ + return &AlibabaAiArServiceDetectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAiArServiceDetectAPIRequest) GetApiMethodName() string { + return "alibaba.ai.ar.service.detect" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAiArServiceDetectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImgData Setter +// 原始图像数据 +func (r *AlibabaAiArServiceDetectAPIRequest) SetImgData(_imgData *model.File) error { + r._imgData = _imgData + r.Set("img_data", _imgData) + return nil +} + +// ImgData Getter +func (r AlibabaAiArServiceDetectAPIRequest) GetImgData() *model.File { + return r._imgData +} +// Num Setter +// 最多返回的结果数,默认为1 +func (r *AlibabaAiArServiceDetectAPIRequest) SetNum(_num int64) error { + r._num = _num + r.Set("num", _num) + return nil +} + +// Num Getter +func (r AlibabaAiArServiceDetectAPIRequest) GetNum() int64 { + return r._num +} +// CachedTargets Setter +// 本地已cache的target,多个target间以|||分隔 +func (r *AlibabaAiArServiceDetectAPIRequest) SetCachedTargets(_cachedTargets string) error { + r._cachedTargets = _cachedTargets + r.Set("cached_targets", _cachedTargets) + return nil +} + +// CachedTargets Getter +func (r AlibabaAiArServiceDetectAPIRequest) GetCachedTargets() string { + return r._cachedTargets +} +// DeviceInfo Setter +// map,描述所有设备相关信息,如设备ID,分辨率等 +func (r *AlibabaAiArServiceDetectAPIRequest) SetDeviceInfo(_deviceInfo string) error { + r._deviceInfo = _deviceInfo + r.Set("device_info", _deviceInfo) + return nil +} + +// DeviceInfo Getter +func (r AlibabaAiArServiceDetectAPIRequest) GetDeviceInfo() string { + return r._deviceInfo +} +// Version Setter +// 版本,默认1.0 +func (r *AlibabaAiArServiceDetectAPIRequest) SetVersion(_version string) error { + r._version = _version + r.Set("version", _version) + return nil +} + +// Version Getter +func (r AlibabaAiArServiceDetectAPIRequest) GetVersion() string { + return r._version +} diff --git a/model/aiar/AlibabaAiArServiceDetectAPIResponse.go b/model/aiar/AlibabaAiArServiceDetectAPIResponse.go new file mode 100644 index 0000000000..3363271cf6 --- /dev/null +++ b/model/aiar/AlibabaAiArServiceDetectAPIResponse.go @@ -0,0 +1,27 @@ +package aiar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ailab AR图像检索 API返回值 +alibaba.ai.ar.service.detect + +ailab AR图像检索 +*/ +type AlibabaAiArServiceDetectAPIResponse struct { + model.CommonResponse + AlibabaAiArServiceDetectAPIResponseModel +} + +// ailab AR图像检索 成功返回结果 +type AlibabaAiArServiceDetectAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ai_ar_service_detect_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Results string `json:"results,omitempty" xml:"results,omitempty"` +} diff --git a/model/aiar/AlibabaAiArServiceDetectResponse.go b/model/aiar/AlibabaAiArServiceDetectResponse.go deleted file mode 100644 index b916f619e1..0000000000 --- a/model/aiar/AlibabaAiArServiceDetectResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aiar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ailab AR图像检索 API返回值 -alibaba.ai.ar.service.detect - -ailab AR图像检索 -*/ -type AlibabaAiArServiceDetectAPIResponse struct { - model.CommonResponse - AlibabaAiArServiceDetectResponse -} - -// ailab AR图像检索 成功返回结果 -type AlibabaAiArServiceDetectResponse struct { - XMLName xml.Name `xml:"alibaba_ai_ar_service_detect_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Results string `json:"results,omitempty" xml:"results,omitempty"` -} diff --git a/model/aiar/AlibabaAiArTmjlAppDetectAPIRequest.go b/model/aiar/AlibabaAiArTmjlAppDetectAPIRequest.go new file mode 100644 index 0000000000..7c8d391cbb --- /dev/null +++ b/model/aiar/AlibabaAiArTmjlAppDetectAPIRequest.go @@ -0,0 +1,108 @@ +package aiar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵扫一扫入口的服务 API请求 +alibaba.ai.ar.tmjl.app.detect + +天猫精灵扫一扫入口的图像检测服务 +*/ +type AlibabaAiArTmjlAppDetectAPIRequest struct { + model.Params + // 原始图像数据 + _imgData *model.File + // 最多返回的结果数,默认为1 + _num int64 + // 本地已cache的target,多个target间以|||分隔 + _cachedTargets string + // map,描述所有设备相关信息,如设备ID,分辨率等 + _deviceInfo string + // 版本,默认1.0 + _version string +} + +// 初始化AlibabaAiArTmjlAppDetectAPIRequest对象 +func NewAlibabaAiArTmjlAppDetectRequest() *AlibabaAiArTmjlAppDetectAPIRequest{ + return &AlibabaAiArTmjlAppDetectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAiArTmjlAppDetectAPIRequest) GetApiMethodName() string { + return "alibaba.ai.ar.tmjl.app.detect" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAiArTmjlAppDetectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImgData Setter +// 原始图像数据 +func (r *AlibabaAiArTmjlAppDetectAPIRequest) SetImgData(_imgData *model.File) error { + r._imgData = _imgData + r.Set("img_data", _imgData) + return nil +} + +// ImgData Getter +func (r AlibabaAiArTmjlAppDetectAPIRequest) GetImgData() *model.File { + return r._imgData +} +// Num Setter +// 最多返回的结果数,默认为1 +func (r *AlibabaAiArTmjlAppDetectAPIRequest) SetNum(_num int64) error { + r._num = _num + r.Set("num", _num) + return nil +} + +// Num Getter +func (r AlibabaAiArTmjlAppDetectAPIRequest) GetNum() int64 { + return r._num +} +// CachedTargets Setter +// 本地已cache的target,多个target间以|||分隔 +func (r *AlibabaAiArTmjlAppDetectAPIRequest) SetCachedTargets(_cachedTargets string) error { + r._cachedTargets = _cachedTargets + r.Set("cached_targets", _cachedTargets) + return nil +} + +// CachedTargets Getter +func (r AlibabaAiArTmjlAppDetectAPIRequest) GetCachedTargets() string { + return r._cachedTargets +} +// DeviceInfo Setter +// map,描述所有设备相关信息,如设备ID,分辨率等 +func (r *AlibabaAiArTmjlAppDetectAPIRequest) SetDeviceInfo(_deviceInfo string) error { + r._deviceInfo = _deviceInfo + r.Set("device_info", _deviceInfo) + return nil +} + +// DeviceInfo Getter +func (r AlibabaAiArTmjlAppDetectAPIRequest) GetDeviceInfo() string { + return r._deviceInfo +} +// Version Setter +// 版本,默认1.0 +func (r *AlibabaAiArTmjlAppDetectAPIRequest) SetVersion(_version string) error { + r._version = _version + r.Set("version", _version) + return nil +} + +// Version Getter +func (r AlibabaAiArTmjlAppDetectAPIRequest) GetVersion() string { + return r._version +} diff --git a/model/aiar/AlibabaAiArTmjlAppDetectAPIResponse.go b/model/aiar/AlibabaAiArTmjlAppDetectAPIResponse.go new file mode 100644 index 0000000000..9f13ea2139 --- /dev/null +++ b/model/aiar/AlibabaAiArTmjlAppDetectAPIResponse.go @@ -0,0 +1,27 @@ +package aiar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵扫一扫入口的服务 API返回值 +alibaba.ai.ar.tmjl.app.detect + +天猫精灵扫一扫入口的图像检测服务 +*/ +type AlibabaAiArTmjlAppDetectAPIResponse struct { + model.CommonResponse + AlibabaAiArTmjlAppDetectAPIResponseModel +} + +// 天猫精灵扫一扫入口的服务 成功返回结果 +type AlibabaAiArTmjlAppDetectAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ai_ar_tmjl_app_detect_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Results string `json:"results,omitempty" xml:"results,omitempty"` +} diff --git a/model/aiar/AlibabaAiArTmjlAppDetectResponse.go b/model/aiar/AlibabaAiArTmjlAppDetectResponse.go deleted file mode 100644 index cab5859fdf..0000000000 --- a/model/aiar/AlibabaAiArTmjlAppDetectResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aiar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵扫一扫入口的服务 API返回值 -alibaba.ai.ar.tmjl.app.detect - -天猫精灵扫一扫入口的图像检测服务 -*/ -type AlibabaAiArTmjlAppDetectAPIResponse struct { - model.CommonResponse - AlibabaAiArTmjlAppDetectResponse -} - -// 天猫精灵扫一扫入口的服务 成功返回结果 -type AlibabaAiArTmjlAppDetectResponse struct { - XMLName xml.Name `xml:"alibaba_ai_ar_tmjl_app_detect_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Results string `json:"results,omitempty" xml:"results,omitempty"` -} diff --git a/model/alicom/AlibabaAlicomExchangeCreatebymixnickAPIRequest.go b/model/alicom/AlibabaAlicomExchangeCreatebymixnickAPIRequest.go new file mode 100644 index 0000000000..3f1c339d63 --- /dev/null +++ b/model/alicom/AlibabaAlicomExchangeCreatebymixnickAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商积分兑换接口tae API请求 +alibaba.alicom.exchange.createbymixnick + +代理商调用该接口来进行积分兑换,tae +*/ +type AlibabaAlicomExchangeCreatebymixnickAPIRequest struct { + model.Params + // 入参 + _exchangeModel *ExchangeModel +} + +// 初始化AlibabaAlicomExchangeCreatebymixnickAPIRequest对象 +func NewAlibabaAlicomExchangeCreatebymixnickRequest() *AlibabaAlicomExchangeCreatebymixnickAPIRequest{ + return &AlibabaAlicomExchangeCreatebymixnickAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlicomExchangeCreatebymixnickAPIRequest) GetApiMethodName() string { + return "alibaba.alicom.exchange.createbymixnick" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlicomExchangeCreatebymixnickAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExchangeModel Setter +// 入参 +func (r *AlibabaAlicomExchangeCreatebymixnickAPIRequest) SetExchangeModel(_exchangeModel *ExchangeModel) error { + r._exchangeModel = _exchangeModel + r.Set("exchange_model", _exchangeModel) + return nil +} + +// ExchangeModel Getter +func (r AlibabaAlicomExchangeCreatebymixnickAPIRequest) GetExchangeModel() *ExchangeModel { + return r._exchangeModel +} diff --git a/model/alicom/AlibabaAlicomExchangeCreatebymixnickAPIResponse.go b/model/alicom/AlibabaAlicomExchangeCreatebymixnickAPIResponse.go new file mode 100644 index 0000000000..802cc4f88a --- /dev/null +++ b/model/alicom/AlibabaAlicomExchangeCreatebymixnickAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商积分兑换接口tae API返回值 +alibaba.alicom.exchange.createbymixnick + +代理商调用该接口来进行积分兑换,tae +*/ +type AlibabaAlicomExchangeCreatebymixnickAPIResponse struct { + model.CommonResponse + AlibabaAlicomExchangeCreatebymixnickAPIResponseModel +} + +// 代理商积分兑换接口tae 成功返回结果 +type AlibabaAlicomExchangeCreatebymixnickAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alicom_exchange_createbymixnick_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAlicomExchangeCreatebymixnickResponse.go b/model/alicom/AlibabaAlicomExchangeCreatebymixnickResponse.go deleted file mode 100644 index 25b3a50c99..0000000000 --- a/model/alicom/AlibabaAlicomExchangeCreatebymixnickResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -代理商积分兑换接口tae API返回值 -alibaba.alicom.exchange.createbymixnick - -代理商调用该接口来进行积分兑换,tae -*/ -type AlibabaAlicomExchangeCreatebymixnickAPIResponse struct { - model.CommonResponse - AlibabaAlicomExchangeCreatebymixnickResponse -} - -// 代理商积分兑换接口tae 成功返回结果 -type AlibabaAlicomExchangeCreatebymixnickResponse struct { - XMLName xml.Name `xml:"alibaba_alicom_exchange_createbymixnick_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaAlicomOrderExchangeCreateAPIRequest.go b/model/alicom/AlibabaAlicomOrderExchangeCreateAPIRequest.go new file mode 100644 index 0000000000..937469e4ba --- /dev/null +++ b/model/alicom/AlibabaAlicomOrderExchangeCreateAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商积分兑换接口 API请求 +alibaba.alicom.order.exchange.create + +代理商调用该接口来进行积分兑换 +*/ +type AlibabaAlicomOrderExchangeCreateAPIRequest struct { + model.Params + // 入参 + _exchangeModel *ExchangeModel +} + +// 初始化AlibabaAlicomOrderExchangeCreateAPIRequest对象 +func NewAlibabaAlicomOrderExchangeCreateRequest() *AlibabaAlicomOrderExchangeCreateAPIRequest{ + return &AlibabaAlicomOrderExchangeCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlicomOrderExchangeCreateAPIRequest) GetApiMethodName() string { + return "alibaba.alicom.order.exchange.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlicomOrderExchangeCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExchangeModel Setter +// 入参 +func (r *AlibabaAlicomOrderExchangeCreateAPIRequest) SetExchangeModel(_exchangeModel *ExchangeModel) error { + r._exchangeModel = _exchangeModel + r.Set("exchange_model", _exchangeModel) + return nil +} + +// ExchangeModel Getter +func (r AlibabaAlicomOrderExchangeCreateAPIRequest) GetExchangeModel() *ExchangeModel { + return r._exchangeModel +} diff --git a/model/alicom/AlibabaAlicomOrderExchangeCreateAPIResponse.go b/model/alicom/AlibabaAlicomOrderExchangeCreateAPIResponse.go new file mode 100644 index 0000000000..f9fe916290 --- /dev/null +++ b/model/alicom/AlibabaAlicomOrderExchangeCreateAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商积分兑换接口 API返回值 +alibaba.alicom.order.exchange.create + +代理商调用该接口来进行积分兑换 +*/ +type AlibabaAlicomOrderExchangeCreateAPIResponse struct { + model.CommonResponse + AlibabaAlicomOrderExchangeCreateAPIResponseModel +} + +// 代理商积分兑换接口 成功返回结果 +type AlibabaAlicomOrderExchangeCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alicom_order_exchange_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAlicomOrderExchangeCreateResponse.go b/model/alicom/AlibabaAlicomOrderExchangeCreateResponse.go deleted file mode 100644 index c5bbf7fba3..0000000000 --- a/model/alicom/AlibabaAlicomOrderExchangeCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -代理商积分兑换接口 API返回值 -alibaba.alicom.order.exchange.create - -代理商调用该接口来进行积分兑换 -*/ -type AlibabaAlicomOrderExchangeCreateAPIResponse struct { - model.CommonResponse - AlibabaAlicomOrderExchangeCreateResponse -} - -// 代理商积分兑换接口 成功返回结果 -type AlibabaAlicomOrderExchangeCreateResponse struct { - XMLName xml.Name `xml:"alibaba_alicom_order_exchange_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaAlicomOrderPreauthorizeCreateAPIRequest.go b/model/alicom/AlibabaAlicomOrderPreauthorizeCreateAPIRequest.go new file mode 100644 index 0000000000..15e70cdd17 --- /dev/null +++ b/model/alicom/AlibabaAlicomOrderPreauthorizeCreateAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +业务办理结果 API请求 +alibaba.alicom.order.preauthorize.create + +授授权:签约结果通知 +*/ +type AlibabaAlicomOrderPreauthorizeCreateAPIRequest struct { + model.Params + // 入参 + _preAuthorizeModel *PreAuthorizeModel +} + +// 初始化AlibabaAlicomOrderPreauthorizeCreateAPIRequest对象 +func NewAlibabaAlicomOrderPreauthorizeCreateRequest() *AlibabaAlicomOrderPreauthorizeCreateAPIRequest{ + return &AlibabaAlicomOrderPreauthorizeCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlicomOrderPreauthorizeCreateAPIRequest) GetApiMethodName() string { + return "alibaba.alicom.order.preauthorize.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlicomOrderPreauthorizeCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PreAuthorizeModel Setter +// 入参 +func (r *AlibabaAlicomOrderPreauthorizeCreateAPIRequest) SetPreAuthorizeModel(_preAuthorizeModel *PreAuthorizeModel) error { + r._preAuthorizeModel = _preAuthorizeModel + r.Set("pre_authorize_model", _preAuthorizeModel) + return nil +} + +// PreAuthorizeModel Getter +func (r AlibabaAlicomOrderPreauthorizeCreateAPIRequest) GetPreAuthorizeModel() *PreAuthorizeModel { + return r._preAuthorizeModel +} diff --git a/model/alicom/AlibabaAlicomOrderPreauthorizeCreateAPIResponse.go b/model/alicom/AlibabaAlicomOrderPreauthorizeCreateAPIResponse.go new file mode 100644 index 0000000000..316c444fef --- /dev/null +++ b/model/alicom/AlibabaAlicomOrderPreauthorizeCreateAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +业务办理结果 API返回值 +alibaba.alicom.order.preauthorize.create + +授授权:签约结果通知 +*/ +type AlibabaAlicomOrderPreauthorizeCreateAPIResponse struct { + model.CommonResponse + AlibabaAlicomOrderPreauthorizeCreateAPIResponseModel +} + +// 业务办理结果 成功返回结果 +type AlibabaAlicomOrderPreauthorizeCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alicom_order_preauthorize_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAlicomOrderPreauthorizeCreateResponse.go b/model/alicom/AlibabaAlicomOrderPreauthorizeCreateResponse.go deleted file mode 100644 index 219a6dddf5..0000000000 --- a/model/alicom/AlibabaAlicomOrderPreauthorizeCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -业务办理结果 API返回值 -alibaba.alicom.order.preauthorize.create - -授授权:签约结果通知 -*/ -type AlibabaAlicomOrderPreauthorizeCreateAPIResponse struct { - model.CommonResponse - AlibabaAlicomOrderPreauthorizeCreateResponse -} - -// 业务办理结果 成功返回结果 -type AlibabaAlicomOrderPreauthorizeCreateResponse struct { - XMLName xml.Name `xml:"alibaba_alicom_order_preauthorize_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaAlicomOrderPreauthorizeFulfillmentAPIRequest.go b/model/alicom/AlibabaAlicomOrderPreauthorizeFulfillmentAPIRequest.go new file mode 100644 index 0000000000..03e2cfdd79 --- /dev/null +++ b/model/alicom/AlibabaAlicomOrderPreauthorizeFulfillmentAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +履约结果 API请求 +alibaba.alicom.order.preauthorize.fulfillment + +预授权-履约结果 +*/ +type AlibabaAlicomOrderPreauthorizeFulfillmentAPIRequest struct { + model.Params + // 入参 + _preAuthorizeModel *PreAuthorizeModel +} + +// 初始化AlibabaAlicomOrderPreauthorizeFulfillmentAPIRequest对象 +func NewAlibabaAlicomOrderPreauthorizeFulfillmentRequest() *AlibabaAlicomOrderPreauthorizeFulfillmentAPIRequest{ + return &AlibabaAlicomOrderPreauthorizeFulfillmentAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlicomOrderPreauthorizeFulfillmentAPIRequest) GetApiMethodName() string { + return "alibaba.alicom.order.preauthorize.fulfillment" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlicomOrderPreauthorizeFulfillmentAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PreAuthorizeModel Setter +// 入参 +func (r *AlibabaAlicomOrderPreauthorizeFulfillmentAPIRequest) SetPreAuthorizeModel(_preAuthorizeModel *PreAuthorizeModel) error { + r._preAuthorizeModel = _preAuthorizeModel + r.Set("pre_authorize_model", _preAuthorizeModel) + return nil +} + +// PreAuthorizeModel Getter +func (r AlibabaAlicomOrderPreauthorizeFulfillmentAPIRequest) GetPreAuthorizeModel() *PreAuthorizeModel { + return r._preAuthorizeModel +} diff --git a/model/alicom/AlibabaAlicomOrderPreauthorizeFulfillmentAPIResponse.go b/model/alicom/AlibabaAlicomOrderPreauthorizeFulfillmentAPIResponse.go new file mode 100644 index 0000000000..6fa70f277a --- /dev/null +++ b/model/alicom/AlibabaAlicomOrderPreauthorizeFulfillmentAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +履约结果 API返回值 +alibaba.alicom.order.preauthorize.fulfillment + +预授权-履约结果 +*/ +type AlibabaAlicomOrderPreauthorizeFulfillmentAPIResponse struct { + model.CommonResponse + AlibabaAlicomOrderPreauthorizeFulfillmentAPIResponseModel +} + +// 履约结果 成功返回结果 +type AlibabaAlicomOrderPreauthorizeFulfillmentAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alicom_order_preauthorize_fulfillment_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAlicomOrderPreauthorizeFulfillmentResponse.go b/model/alicom/AlibabaAlicomOrderPreauthorizeFulfillmentResponse.go deleted file mode 100644 index 92258e6d42..0000000000 --- a/model/alicom/AlibabaAlicomOrderPreauthorizeFulfillmentResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -履约结果 API返回值 -alibaba.alicom.order.preauthorize.fulfillment - -预授权-履约结果 -*/ -type AlibabaAlicomOrderPreauthorizeFulfillmentAPIResponse struct { - model.CommonResponse - AlibabaAlicomOrderPreauthorizeFulfillmentResponse -} - -// 履约结果 成功返回结果 -type AlibabaAlicomOrderPreauthorizeFulfillmentResponse struct { - XMLName xml.Name `xml:"alibaba_alicom_order_preauthorize_fulfillment_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIRequest.go b/model/alicom/AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIRequest.go new file mode 100644 index 0000000000..a8f21c534f --- /dev/null +++ b/model/alicom/AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +履约结果查询 API请求 +alibaba.alicom.order.preauthorize.query.fulfillment + +预授权-履约结果查询 +*/ +type AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIRequest struct { + model.Params + // 入参 + _preAuthorizeModel *PreAuthorizeModel +} + +// 初始化AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIRequest对象 +func NewAlibabaAlicomOrderPreauthorizeQueryFulfillmentRequest() *AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIRequest{ + return &AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIRequest) GetApiMethodName() string { + return "alibaba.alicom.order.preauthorize.query.fulfillment" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PreAuthorizeModel Setter +// 入参 +func (r *AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIRequest) SetPreAuthorizeModel(_preAuthorizeModel *PreAuthorizeModel) error { + r._preAuthorizeModel = _preAuthorizeModel + r.Set("pre_authorize_model", _preAuthorizeModel) + return nil +} + +// PreAuthorizeModel Getter +func (r AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIRequest) GetPreAuthorizeModel() *PreAuthorizeModel { + return r._preAuthorizeModel +} diff --git a/model/alicom/AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIResponse.go b/model/alicom/AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIResponse.go new file mode 100644 index 0000000000..37a706b8bd --- /dev/null +++ b/model/alicom/AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +履约结果查询 API返回值 +alibaba.alicom.order.preauthorize.query.fulfillment + +预授权-履约结果查询 +*/ +type AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIResponse struct { + model.CommonResponse + AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIResponseModel +} + +// 履约结果查询 成功返回结果 +type AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alicom_order_preauthorize_query_fulfillment_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAlicomOrderPreauthorizeQueryFulfillmentResponse.go b/model/alicom/AlibabaAlicomOrderPreauthorizeQueryFulfillmentResponse.go deleted file mode 100644 index 7cb152f176..0000000000 --- a/model/alicom/AlibabaAlicomOrderPreauthorizeQueryFulfillmentResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -履约结果查询 API返回值 -alibaba.alicom.order.preauthorize.query.fulfillment - -预授权-履约结果查询 -*/ -type AlibabaAlicomOrderPreauthorizeQueryFulfillmentAPIResponse struct { - model.CommonResponse - AlibabaAlicomOrderPreauthorizeQueryFulfillmentResponse -} - -// 履约结果查询 成功返回结果 -type AlibabaAlicomOrderPreauthorizeQueryFulfillmentResponse struct { - XMLName xml.Name `xml:"alibaba_alicom_order_preauthorize_query_fulfillment_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaAlicomOrderPreauthorizeQueryFundAPIRequest.go b/model/alicom/AlibabaAlicomOrderPreauthorizeQueryFundAPIRequest.go new file mode 100644 index 0000000000..648a08aa28 --- /dev/null +++ b/model/alicom/AlibabaAlicomOrderPreauthorizeQueryFundAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +资金流水查询 API请求 +alibaba.alicom.order.preauthorize.query.fund + +预授权-资金流水查询 +*/ +type AlibabaAlicomOrderPreauthorizeQueryFundAPIRequest struct { + model.Params + // 入参 + _preAuthorizeModel *PreAuthorizeModel +} + +// 初始化AlibabaAlicomOrderPreauthorizeQueryFundAPIRequest对象 +func NewAlibabaAlicomOrderPreauthorizeQueryFundRequest() *AlibabaAlicomOrderPreauthorizeQueryFundAPIRequest{ + return &AlibabaAlicomOrderPreauthorizeQueryFundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlicomOrderPreauthorizeQueryFundAPIRequest) GetApiMethodName() string { + return "alibaba.alicom.order.preauthorize.query.fund" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlicomOrderPreauthorizeQueryFundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PreAuthorizeModel Setter +// 入参 +func (r *AlibabaAlicomOrderPreauthorizeQueryFundAPIRequest) SetPreAuthorizeModel(_preAuthorizeModel *PreAuthorizeModel) error { + r._preAuthorizeModel = _preAuthorizeModel + r.Set("pre_authorize_model", _preAuthorizeModel) + return nil +} + +// PreAuthorizeModel Getter +func (r AlibabaAlicomOrderPreauthorizeQueryFundAPIRequest) GetPreAuthorizeModel() *PreAuthorizeModel { + return r._preAuthorizeModel +} diff --git a/model/alicom/AlibabaAlicomOrderPreauthorizeQueryFundAPIResponse.go b/model/alicom/AlibabaAlicomOrderPreauthorizeQueryFundAPIResponse.go new file mode 100644 index 0000000000..68b9fb7b4d --- /dev/null +++ b/model/alicom/AlibabaAlicomOrderPreauthorizeQueryFundAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +资金流水查询 API返回值 +alibaba.alicom.order.preauthorize.query.fund + +预授权-资金流水查询 +*/ +type AlibabaAlicomOrderPreauthorizeQueryFundAPIResponse struct { + model.CommonResponse + AlibabaAlicomOrderPreauthorizeQueryFundAPIResponseModel +} + +// 资金流水查询 成功返回结果 +type AlibabaAlicomOrderPreauthorizeQueryFundAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alicom_order_preauthorize_query_fund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAlicomOrderPreauthorizeQueryFundResponse.go b/model/alicom/AlibabaAlicomOrderPreauthorizeQueryFundResponse.go deleted file mode 100644 index b32db76f6b..0000000000 --- a/model/alicom/AlibabaAlicomOrderPreauthorizeQueryFundResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -资金流水查询 API返回值 -alibaba.alicom.order.preauthorize.query.fund - -预授权-资金流水查询 -*/ -type AlibabaAlicomOrderPreauthorizeQueryFundAPIResponse struct { - model.CommonResponse - AlibabaAlicomOrderPreauthorizeQueryFundResponse -} - -// 资金流水查询 成功返回结果 -type AlibabaAlicomOrderPreauthorizeQueryFundResponse struct { - XMLName xml.Name `xml:"alibaba_alicom_order_preauthorize_query_fund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaAlicomVtOpentradeGetproductinfoAPIRequest.go b/model/alicom/AlibabaAlicomVtOpentradeGetproductinfoAPIRequest.go new file mode 100644 index 0000000000..577fb97f2c --- /dev/null +++ b/model/alicom/AlibabaAlicomVtOpentradeGetproductinfoAPIRequest.go @@ -0,0 +1,66 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询新虚拟产品配置信息 API请求 +alibaba.alicom.vt.opentrade.getproductinfo + +话费宝查询产品信息相关配置 +*/ +type AlibabaAlicomVtOpentradeGetproductinfoAPIRequest struct { + model.Params + // 阿里通信产品ID + _productId string + // 类型 + _bizType string +} + +// 初始化AlibabaAlicomVtOpentradeGetproductinfoAPIRequest对象 +func NewAlibabaAlicomVtOpentradeGetproductinfoRequest() *AlibabaAlicomVtOpentradeGetproductinfoAPIRequest{ + return &AlibabaAlicomVtOpentradeGetproductinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlicomVtOpentradeGetproductinfoAPIRequest) GetApiMethodName() string { + return "alibaba.alicom.vt.opentrade.getproductinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlicomVtOpentradeGetproductinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 阿里通信产品ID +func (r *AlibabaAlicomVtOpentradeGetproductinfoAPIRequest) SetProductId(_productId string) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r AlibabaAlicomVtOpentradeGetproductinfoAPIRequest) GetProductId() string { + return r._productId +} +// BizType Setter +// 类型 +func (r *AlibabaAlicomVtOpentradeGetproductinfoAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r AlibabaAlicomVtOpentradeGetproductinfoAPIRequest) GetBizType() string { + return r._bizType +} diff --git a/model/alicom/AlibabaAlicomVtOpentradeGetproductinfoAPIResponse.go b/model/alicom/AlibabaAlicomVtOpentradeGetproductinfoAPIResponse.go new file mode 100644 index 0000000000..9d663150ee --- /dev/null +++ b/model/alicom/AlibabaAlicomVtOpentradeGetproductinfoAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询新虚拟产品配置信息 API返回值 +alibaba.alicom.vt.opentrade.getproductinfo + +话费宝查询产品信息相关配置 +*/ +type AlibabaAlicomVtOpentradeGetproductinfoAPIResponse struct { + model.CommonResponse + AlibabaAlicomVtOpentradeGetproductinfoAPIResponseModel +} + +// 查询新虚拟产品配置信息 成功返回结果 +type AlibabaAlicomVtOpentradeGetproductinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alicom_vt_opentrade_getproductinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAlicomVtOpentradeGetproductinfoResponse.go b/model/alicom/AlibabaAlicomVtOpentradeGetproductinfoResponse.go deleted file mode 100644 index 3c75673ade..0000000000 --- a/model/alicom/AlibabaAlicomVtOpentradeGetproductinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询新虚拟产品配置信息 API返回值 -alibaba.alicom.vt.opentrade.getproductinfo - -话费宝查询产品信息相关配置 -*/ -type AlibabaAlicomVtOpentradeGetproductinfoAPIResponse struct { - model.CommonResponse - AlibabaAlicomVtOpentradeGetproductinfoResponse -} - -// 查询新虚拟产品配置信息 成功返回结果 -type AlibabaAlicomVtOpentradeGetproductinfoResponse struct { - XMLName xml.Name `xml:"alibaba_alicom_vt_opentrade_getproductinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaAlicomWttOpentradeCreateorderAPIRequest.go b/model/alicom/AlibabaAlicomWttOpentradeCreateorderAPIRequest.go new file mode 100644 index 0000000000..4bd94e9e67 --- /dev/null +++ b/model/alicom/AlibabaAlicomWttOpentradeCreateorderAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +充值送活动下单接口 API请求 +alibaba.alicom.wtt.opentrade.createorder + +提供给话费宝创建淘宝订单 +*/ +type AlibabaAlicomWttOpentradeCreateorderAPIRequest struct { + model.Params + // 入参请求说明 + _param0 *OpentradCreateOrderRequestDto +} + +// 初始化AlibabaAlicomWttOpentradeCreateorderAPIRequest对象 +func NewAlibabaAlicomWttOpentradeCreateorderRequest() *AlibabaAlicomWttOpentradeCreateorderAPIRequest{ + return &AlibabaAlicomWttOpentradeCreateorderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlicomWttOpentradeCreateorderAPIRequest) GetApiMethodName() string { + return "alibaba.alicom.wtt.opentrade.createorder" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlicomWttOpentradeCreateorderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 入参请求说明 +func (r *AlibabaAlicomWttOpentradeCreateorderAPIRequest) SetParam0(_param0 *OpentradCreateOrderRequestDto) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaAlicomWttOpentradeCreateorderAPIRequest) GetParam0() *OpentradCreateOrderRequestDto { + return r._param0 +} diff --git a/model/alicom/AlibabaAlicomWttOpentradeCreateorderAPIResponse.go b/model/alicom/AlibabaAlicomWttOpentradeCreateorderAPIResponse.go new file mode 100644 index 0000000000..89180cc3a9 --- /dev/null +++ b/model/alicom/AlibabaAlicomWttOpentradeCreateorderAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +充值送活动下单接口 API返回值 +alibaba.alicom.wtt.opentrade.createorder + +提供给话费宝创建淘宝订单 +*/ +type AlibabaAlicomWttOpentradeCreateorderAPIResponse struct { + model.CommonResponse + AlibabaAlicomWttOpentradeCreateorderAPIResponseModel +} + +// 充值送活动下单接口 成功返回结果 +type AlibabaAlicomWttOpentradeCreateorderAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alicom_wtt_opentrade_createorder_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAlicomWttOpentradeCreateorderResponse.go b/model/alicom/AlibabaAlicomWttOpentradeCreateorderResponse.go deleted file mode 100644 index 0f416645b7..0000000000 --- a/model/alicom/AlibabaAlicomWttOpentradeCreateorderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -充值送活动下单接口 API返回值 -alibaba.alicom.wtt.opentrade.createorder - -提供给话费宝创建淘宝订单 -*/ -type AlibabaAlicomWttOpentradeCreateorderAPIResponse struct { - model.CommonResponse - AlibabaAlicomWttOpentradeCreateorderResponse -} - -// 充值送活动下单接口 成功返回结果 -type AlibabaAlicomWttOpentradeCreateorderResponse struct { - XMLName xml.Name `xml:"alibaba_alicom_wtt_opentrade_createorder_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaAlicomWttOpentradeGetgiftdetailsAPIRequest.go b/model/alicom/AlibabaAlicomWttOpentradeGetgiftdetailsAPIRequest.go new file mode 100644 index 0000000000..b9d4b90859 --- /dev/null +++ b/model/alicom/AlibabaAlicomWttOpentradeGetgiftdetailsAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +存送业务查询奖品信息 API请求 +alibaba.alicom.wtt.opentrade.getgiftdetails + +话费宝充值送查询奖品信息 +*/ +type AlibabaAlicomWttOpentradeGetgiftdetailsAPIRequest struct { + model.Params + // 活动ID + _activityId string +} + +// 初始化AlibabaAlicomWttOpentradeGetgiftdetailsAPIRequest对象 +func NewAlibabaAlicomWttOpentradeGetgiftdetailsRequest() *AlibabaAlicomWttOpentradeGetgiftdetailsAPIRequest{ + return &AlibabaAlicomWttOpentradeGetgiftdetailsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlicomWttOpentradeGetgiftdetailsAPIRequest) GetApiMethodName() string { + return "alibaba.alicom.wtt.opentrade.getgiftdetails" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlicomWttOpentradeGetgiftdetailsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 活动ID +func (r *AlibabaAlicomWttOpentradeGetgiftdetailsAPIRequest) SetActivityId(_activityId string) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r AlibabaAlicomWttOpentradeGetgiftdetailsAPIRequest) GetActivityId() string { + return r._activityId +} diff --git a/model/alicom/AlibabaAlicomWttOpentradeGetgiftdetailsAPIResponse.go b/model/alicom/AlibabaAlicomWttOpentradeGetgiftdetailsAPIResponse.go new file mode 100644 index 0000000000..8d7073eb36 --- /dev/null +++ b/model/alicom/AlibabaAlicomWttOpentradeGetgiftdetailsAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +存送业务查询奖品信息 API返回值 +alibaba.alicom.wtt.opentrade.getgiftdetails + +话费宝充值送查询奖品信息 +*/ +type AlibabaAlicomWttOpentradeGetgiftdetailsAPIResponse struct { + model.CommonResponse + AlibabaAlicomWttOpentradeGetgiftdetailsAPIResponseModel +} + +// 存送业务查询奖品信息 成功返回结果 +type AlibabaAlicomWttOpentradeGetgiftdetailsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alicom_wtt_opentrade_getgiftdetails_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TopResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAlicomWttOpentradeGetgiftdetailsResponse.go b/model/alicom/AlibabaAlicomWttOpentradeGetgiftdetailsResponse.go deleted file mode 100644 index 89c27f7652..0000000000 --- a/model/alicom/AlibabaAlicomWttOpentradeGetgiftdetailsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -存送业务查询奖品信息 API返回值 -alibaba.alicom.wtt.opentrade.getgiftdetails - -话费宝充值送查询奖品信息 -*/ -type AlibabaAlicomWttOpentradeGetgiftdetailsAPIResponse struct { - model.CommonResponse - AlibabaAlicomWttOpentradeGetgiftdetailsResponse -} - -// 存送业务查询奖品信息 成功返回结果 -type AlibabaAlicomWttOpentradeGetgiftdetailsResponse struct { - XMLName xml.Name `xml:"alibaba_alicom_wtt_opentrade_getgiftdetails_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TopResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaAlicomWttOpentradeGetproductinfoAPIRequest.go b/model/alicom/AlibabaAlicomWttOpentradeGetproductinfoAPIRequest.go new file mode 100644 index 0000000000..39154f8350 --- /dev/null +++ b/model/alicom/AlibabaAlicomWttOpentradeGetproductinfoAPIRequest.go @@ -0,0 +1,66 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询存送产品信息 API请求 +alibaba.alicom.wtt.opentrade.getproductinfo + +话费宝查询产品信息相关配置 +*/ +type AlibabaAlicomWttOpentradeGetproductinfoAPIRequest struct { + model.Params + // 阿里通信产品ID + _productId string + // 类型 + _bizType string +} + +// 初始化AlibabaAlicomWttOpentradeGetproductinfoAPIRequest对象 +func NewAlibabaAlicomWttOpentradeGetproductinfoRequest() *AlibabaAlicomWttOpentradeGetproductinfoAPIRequest{ + return &AlibabaAlicomWttOpentradeGetproductinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlicomWttOpentradeGetproductinfoAPIRequest) GetApiMethodName() string { + return "alibaba.alicom.wtt.opentrade.getproductinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlicomWttOpentradeGetproductinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 阿里通信产品ID +func (r *AlibabaAlicomWttOpentradeGetproductinfoAPIRequest) SetProductId(_productId string) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r AlibabaAlicomWttOpentradeGetproductinfoAPIRequest) GetProductId() string { + return r._productId +} +// BizType Setter +// 类型 +func (r *AlibabaAlicomWttOpentradeGetproductinfoAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r AlibabaAlicomWttOpentradeGetproductinfoAPIRequest) GetBizType() string { + return r._bizType +} diff --git a/model/alicom/AlibabaAlicomWttOpentradeGetproductinfoAPIResponse.go b/model/alicom/AlibabaAlicomWttOpentradeGetproductinfoAPIResponse.go new file mode 100644 index 0000000000..94144544f7 --- /dev/null +++ b/model/alicom/AlibabaAlicomWttOpentradeGetproductinfoAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询存送产品信息 API返回值 +alibaba.alicom.wtt.opentrade.getproductinfo + +话费宝查询产品信息相关配置 +*/ +type AlibabaAlicomWttOpentradeGetproductinfoAPIResponse struct { + model.CommonResponse + AlibabaAlicomWttOpentradeGetproductinfoAPIResponseModel +} + +// 查询存送产品信息 成功返回结果 +type AlibabaAlicomWttOpentradeGetproductinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alicom_wtt_opentrade_getproductinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAlicomWttOpentradeGetproductinfoResponse.go b/model/alicom/AlibabaAlicomWttOpentradeGetproductinfoResponse.go deleted file mode 100644 index 19910eda66..0000000000 --- a/model/alicom/AlibabaAlicomWttOpentradeGetproductinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询存送产品信息 API返回值 -alibaba.alicom.wtt.opentrade.getproductinfo - -话费宝查询产品信息相关配置 -*/ -type AlibabaAlicomWttOpentradeGetproductinfoAPIResponse struct { - model.CommonResponse - AlibabaAlicomWttOpentradeGetproductinfoResponse -} - -// 查询存送产品信息 成功返回结果 -type AlibabaAlicomWttOpentradeGetproductinfoResponse struct { - XMLName xml.Name `xml:"alibaba_alicom_wtt_opentrade_getproductinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinAxbVendorCallControlAPIRequest.go b/model/alicom/AlibabaAliqinAxbVendorCallControlAPIRequest.go new file mode 100644 index 0000000000..b6b001d6a0 --- /dev/null +++ b/model/alicom/AlibabaAliqinAxbVendorCallControlAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +转呼控制接口 API请求 +alibaba.aliqin.axb.vendor.call.control + +转呼控制接口,用于查询小号绑定关系,控制呼叫转接目标 +*/ +type AlibabaAliqinAxbVendorCallControlAPIRequest struct { + model.Params + // 转接控制接口request对象 + _startCallRequest *StartCallRequest +} + +// 初始化AlibabaAliqinAxbVendorCallControlAPIRequest对象 +func NewAlibabaAliqinAxbVendorCallControlRequest() *AlibabaAliqinAxbVendorCallControlAPIRequest{ + return &AlibabaAliqinAxbVendorCallControlAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinAxbVendorCallControlAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.axb.vendor.call.control" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinAxbVendorCallControlAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartCallRequest Setter +// 转接控制接口request对象 +func (r *AlibabaAliqinAxbVendorCallControlAPIRequest) SetStartCallRequest(_startCallRequest *StartCallRequest) error { + r._startCallRequest = _startCallRequest + r.Set("start_call_request", _startCallRequest) + return nil +} + +// StartCallRequest Getter +func (r AlibabaAliqinAxbVendorCallControlAPIRequest) GetStartCallRequest() *StartCallRequest { + return r._startCallRequest +} diff --git a/model/alicom/AlibabaAliqinAxbVendorCallControlAPIResponse.go b/model/alicom/AlibabaAliqinAxbVendorCallControlAPIResponse.go new file mode 100644 index 0000000000..69932aa439 --- /dev/null +++ b/model/alicom/AlibabaAliqinAxbVendorCallControlAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +转呼控制接口 API返回值 +alibaba.aliqin.axb.vendor.call.control + +转呼控制接口,用于查询小号绑定关系,控制呼叫转接目标 +*/ +type AlibabaAliqinAxbVendorCallControlAPIResponse struct { + model.CommonResponse + AlibabaAliqinAxbVendorCallControlAPIResponseModel +} + +// 转呼控制接口 成功返回结果 +type AlibabaAliqinAxbVendorCallControlAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_axb_vendor_call_control_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 转呼控制接口响应 + Result *AlibabaAliqinAxbVendorCallControlResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinAxbVendorExceptionNoSyncAPIRequest.go b/model/alicom/AlibabaAliqinAxbVendorExceptionNoSyncAPIRequest.go new file mode 100644 index 0000000000..a908409661 --- /dev/null +++ b/model/alicom/AlibabaAliqinAxbVendorExceptionNoSyncAPIRequest.go @@ -0,0 +1,94 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +中心化供应商异常号码状态同步接口 API请求 +alibaba.aliqin.axb.vendor.exception.no.sync + +用于中心化供应商同步异常号码 +*/ +type AlibabaAliqinAxbVendorExceptionNoSyncAPIRequest struct { + model.Params + // 异常的中间号码 + _secretNo string + // 异常的原因 + _exceptionMsg string + // 0-异常状态 1-可恢复正常使用 + _status int64 + // 供应商KEY + _vendorKey string +} + +// 初始化AlibabaAliqinAxbVendorExceptionNoSyncAPIRequest对象 +func NewAlibabaAliqinAxbVendorExceptionNoSyncRequest() *AlibabaAliqinAxbVendorExceptionNoSyncAPIRequest{ + return &AlibabaAliqinAxbVendorExceptionNoSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinAxbVendorExceptionNoSyncAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.axb.vendor.exception.no.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinAxbVendorExceptionNoSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SecretNo Setter +// 异常的中间号码 +func (r *AlibabaAliqinAxbVendorExceptionNoSyncAPIRequest) SetSecretNo(_secretNo string) error { + r._secretNo = _secretNo + r.Set("secret_no", _secretNo) + return nil +} + +// SecretNo Getter +func (r AlibabaAliqinAxbVendorExceptionNoSyncAPIRequest) GetSecretNo() string { + return r._secretNo +} +// ExceptionMsg Setter +// 异常的原因 +func (r *AlibabaAliqinAxbVendorExceptionNoSyncAPIRequest) SetExceptionMsg(_exceptionMsg string) error { + r._exceptionMsg = _exceptionMsg + r.Set("exception_msg", _exceptionMsg) + return nil +} + +// ExceptionMsg Getter +func (r AlibabaAliqinAxbVendorExceptionNoSyncAPIRequest) GetExceptionMsg() string { + return r._exceptionMsg +} +// Status Setter +// 0-异常状态 1-可恢复正常使用 +func (r *AlibabaAliqinAxbVendorExceptionNoSyncAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaAliqinAxbVendorExceptionNoSyncAPIRequest) GetStatus() int64 { + return r._status +} +// VendorKey Setter +// 供应商KEY +func (r *AlibabaAliqinAxbVendorExceptionNoSyncAPIRequest) SetVendorKey(_vendorKey string) error { + r._vendorKey = _vendorKey + r.Set("vendor_key", _vendorKey) + return nil +} + +// VendorKey Getter +func (r AlibabaAliqinAxbVendorExceptionNoSyncAPIRequest) GetVendorKey() string { + return r._vendorKey +} diff --git a/model/alicom/AlibabaAliqinAxbVendorExceptionNoSyncAPIResponse.go b/model/alicom/AlibabaAliqinAxbVendorExceptionNoSyncAPIResponse.go new file mode 100644 index 0000000000..cc17f313d1 --- /dev/null +++ b/model/alicom/AlibabaAliqinAxbVendorExceptionNoSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +中心化供应商异常号码状态同步接口 API返回值 +alibaba.aliqin.axb.vendor.exception.no.sync + +用于中心化供应商同步异常号码 +*/ +type AlibabaAliqinAxbVendorExceptionNoSyncAPIResponse struct { + model.CommonResponse + AlibabaAliqinAxbVendorExceptionNoSyncAPIResponseModel +} + +// 中心化供应商异常号码状态同步接口 成功返回结果 +type AlibabaAliqinAxbVendorExceptionNoSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_axb_vendor_exception_no_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAliqinAxbVendorExceptionNoSyncResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinAxbVendorHeartBeatAPIRequest.go b/model/alicom/AlibabaAliqinAxbVendorHeartBeatAPIRequest.go new file mode 100644 index 0000000000..090f43942a --- /dev/null +++ b/model/alicom/AlibabaAliqinAxbVendorHeartBeatAPIRequest.go @@ -0,0 +1,66 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商心跳上报接口 API请求 +alibaba.aliqin.axb.vendor.heart.beat + +供应商上报自己的心跳信息 +*/ +type AlibabaAliqinAxbVendorHeartBeatAPIRequest struct { + model.Params + // 可选的预留字段 + _status string + // 供应商合作KEY + _vendorKey string +} + +// 初始化AlibabaAliqinAxbVendorHeartBeatAPIRequest对象 +func NewAlibabaAliqinAxbVendorHeartBeatRequest() *AlibabaAliqinAxbVendorHeartBeatAPIRequest{ + return &AlibabaAliqinAxbVendorHeartBeatAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinAxbVendorHeartBeatAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.axb.vendor.heart.beat" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinAxbVendorHeartBeatAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Status Setter +// 可选的预留字段 +func (r *AlibabaAliqinAxbVendorHeartBeatAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaAliqinAxbVendorHeartBeatAPIRequest) GetStatus() string { + return r._status +} +// VendorKey Setter +// 供应商合作KEY +func (r *AlibabaAliqinAxbVendorHeartBeatAPIRequest) SetVendorKey(_vendorKey string) error { + r._vendorKey = _vendorKey + r.Set("vendor_key", _vendorKey) + return nil +} + +// VendorKey Getter +func (r AlibabaAliqinAxbVendorHeartBeatAPIRequest) GetVendorKey() string { + return r._vendorKey +} diff --git a/model/alicom/AlibabaAliqinAxbVendorHeartBeatAPIResponse.go b/model/alicom/AlibabaAliqinAxbVendorHeartBeatAPIResponse.go new file mode 100644 index 0000000000..9730957102 --- /dev/null +++ b/model/alicom/AlibabaAliqinAxbVendorHeartBeatAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商心跳上报接口 API返回值 +alibaba.aliqin.axb.vendor.heart.beat + +供应商上报自己的心跳信息 +*/ +type AlibabaAliqinAxbVendorHeartBeatAPIResponse struct { + model.CommonResponse + AlibabaAliqinAxbVendorHeartBeatAPIResponseModel +} + +// 供应商心跳上报接口 成功返回结果 +type AlibabaAliqinAxbVendorHeartBeatAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_axb_vendor_heart_beat_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAliqinAxbVendorHeartBeatResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinAxbVendorPushCallReleaseAPIRequest.go b/model/alicom/AlibabaAliqinAxbVendorPushCallReleaseAPIRequest.go new file mode 100644 index 0000000000..1138bdd77a --- /dev/null +++ b/model/alicom/AlibabaAliqinAxbVendorPushCallReleaseAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商推送通话结束事件 API请求 +alibaba.aliqin.axb.vendor.push.call.release + +通话结束挂断的时候,供应商推送通话结束事件给阿里侧 +*/ +type AlibabaAliqinAxbVendorPushCallReleaseAPIRequest struct { + model.Params + // end_call_request + _endCallRequest *EndCallRequest +} + +// 初始化AlibabaAliqinAxbVendorPushCallReleaseAPIRequest对象 +func NewAlibabaAliqinAxbVendorPushCallReleaseRequest() *AlibabaAliqinAxbVendorPushCallReleaseAPIRequest{ + return &AlibabaAliqinAxbVendorPushCallReleaseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinAxbVendorPushCallReleaseAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.axb.vendor.push.call.release" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinAxbVendorPushCallReleaseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EndCallRequest Setter +// end_call_request +func (r *AlibabaAliqinAxbVendorPushCallReleaseAPIRequest) SetEndCallRequest(_endCallRequest *EndCallRequest) error { + r._endCallRequest = _endCallRequest + r.Set("end_call_request", _endCallRequest) + return nil +} + +// EndCallRequest Getter +func (r AlibabaAliqinAxbVendorPushCallReleaseAPIRequest) GetEndCallRequest() *EndCallRequest { + return r._endCallRequest +} diff --git a/model/alicom/AlibabaAliqinAxbVendorPushCallReleaseAPIResponse.go b/model/alicom/AlibabaAliqinAxbVendorPushCallReleaseAPIResponse.go new file mode 100644 index 0000000000..44aa76efad --- /dev/null +++ b/model/alicom/AlibabaAliqinAxbVendorPushCallReleaseAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商推送通话结束事件 API返回值 +alibaba.aliqin.axb.vendor.push.call.release + +通话结束挂断的时候,供应商推送通话结束事件给阿里侧 +*/ +type AlibabaAliqinAxbVendorPushCallReleaseAPIResponse struct { + model.CommonResponse + AlibabaAliqinAxbVendorPushCallReleaseAPIResponseModel +} + +// 供应商推送通话结束事件 成功返回结果 +type AlibabaAliqinAxbVendorPushCallReleaseAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_axb_vendor_push_call_release_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAliqinAxbVendorPushCallReleaseResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinAxbVendorSmsInterceptAPIRequest.go b/model/alicom/AlibabaAliqinAxbVendorSmsInterceptAPIRequest.go new file mode 100644 index 0000000000..d8ff072637 --- /dev/null +++ b/model/alicom/AlibabaAliqinAxbVendorSmsInterceptAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AXB短信托收推送接口 API请求 +alibaba.aliqin.axb.vendor.sms.intercept + +用于给供应商推送需要托收的短信 +*/ +type AlibabaAliqinAxbVendorSmsInterceptAPIRequest struct { + model.Params + // 短信托收结构体 + _smsInterceptRequest *SmsInterceptRequest +} + +// 初始化AlibabaAliqinAxbVendorSmsInterceptAPIRequest对象 +func NewAlibabaAliqinAxbVendorSmsInterceptRequest() *AlibabaAliqinAxbVendorSmsInterceptAPIRequest{ + return &AlibabaAliqinAxbVendorSmsInterceptAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinAxbVendorSmsInterceptAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.axb.vendor.sms.intercept" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinAxbVendorSmsInterceptAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SmsInterceptRequest Setter +// 短信托收结构体 +func (r *AlibabaAliqinAxbVendorSmsInterceptAPIRequest) SetSmsInterceptRequest(_smsInterceptRequest *SmsInterceptRequest) error { + r._smsInterceptRequest = _smsInterceptRequest + r.Set("sms_intercept_request", _smsInterceptRequest) + return nil +} + +// SmsInterceptRequest Getter +func (r AlibabaAliqinAxbVendorSmsInterceptAPIRequest) GetSmsInterceptRequest() *SmsInterceptRequest { + return r._smsInterceptRequest +} diff --git a/model/alicom/AlibabaAliqinAxbVendorSmsInterceptAPIResponse.go b/model/alicom/AlibabaAliqinAxbVendorSmsInterceptAPIResponse.go new file mode 100644 index 0000000000..0cc3d3dc76 --- /dev/null +++ b/model/alicom/AlibabaAliqinAxbVendorSmsInterceptAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AXB短信托收推送接口 API返回值 +alibaba.aliqin.axb.vendor.sms.intercept + +用于给供应商推送需要托收的短信 +*/ +type AlibabaAliqinAxbVendorSmsInterceptAPIResponse struct { + model.CommonResponse + AlibabaAliqinAxbVendorSmsInterceptAPIResponseModel +} + +// AXB短信托收推送接口 成功返回结果 +type AlibabaAliqinAxbVendorSmsInterceptAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_axb_vendor_sms_intercept_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应结构体 + Result *AlibabaAliqinAxbVendorSmsInterceptResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinFcVoiceGetdetailAPIRequest.go b/model/alicom/AlibabaAliqinFcVoiceGetdetailAPIRequest.go new file mode 100644 index 0000000000..b5ec8cb16c --- /dev/null +++ b/model/alicom/AlibabaAliqinFcVoiceGetdetailAPIRequest.go @@ -0,0 +1,80 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取呼叫详情 API请求 +alibaba.aliqin.fc.voice.getdetail + +通过呼叫id获取呼叫相关的数据 +*/ +type AlibabaAliqinFcVoiceGetdetailAPIRequest struct { + model.Params + // 呼叫唯一ID + _callId string + // 语音通知为:11000000300006, 语音验证码为:11010000138001, IVR为:11000000300005, 点击拨号为:11000000300004, SIP为:11000000300009 + _prodId int64 + // Unix时间戳,会查询这个时间点对应那一天的记录(单位毫秒) + _queryDate int64 +} + +// 初始化AlibabaAliqinFcVoiceGetdetailAPIRequest对象 +func NewAlibabaAliqinFcVoiceGetdetailRequest() *AlibabaAliqinFcVoiceGetdetailAPIRequest{ + return &AlibabaAliqinFcVoiceGetdetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcVoiceGetdetailAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.voice.getdetail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcVoiceGetdetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CallId Setter +// 呼叫唯一ID +func (r *AlibabaAliqinFcVoiceGetdetailAPIRequest) SetCallId(_callId string) error { + r._callId = _callId + r.Set("call_id", _callId) + return nil +} + +// CallId Getter +func (r AlibabaAliqinFcVoiceGetdetailAPIRequest) GetCallId() string { + return r._callId +} +// ProdId Setter +// 语音通知为:11000000300006, 语音验证码为:11010000138001, IVR为:11000000300005, 点击拨号为:11000000300004, SIP为:11000000300009 +func (r *AlibabaAliqinFcVoiceGetdetailAPIRequest) SetProdId(_prodId int64) error { + r._prodId = _prodId + r.Set("prod_id", _prodId) + return nil +} + +// ProdId Getter +func (r AlibabaAliqinFcVoiceGetdetailAPIRequest) GetProdId() int64 { + return r._prodId +} +// QueryDate Setter +// Unix时间戳,会查询这个时间点对应那一天的记录(单位毫秒) +func (r *AlibabaAliqinFcVoiceGetdetailAPIRequest) SetQueryDate(_queryDate int64) error { + r._queryDate = _queryDate + r.Set("query_date", _queryDate) + return nil +} + +// QueryDate Getter +func (r AlibabaAliqinFcVoiceGetdetailAPIRequest) GetQueryDate() int64 { + return r._queryDate +} diff --git a/model/alicom/AlibabaAliqinFcVoiceGetdetailAPIResponse.go b/model/alicom/AlibabaAliqinFcVoiceGetdetailAPIResponse.go new file mode 100644 index 0000000000..38b7b088cb --- /dev/null +++ b/model/alicom/AlibabaAliqinFcVoiceGetdetailAPIResponse.go @@ -0,0 +1,33 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取呼叫详情 API返回值 +alibaba.aliqin.fc.voice.getdetail + +通过呼叫id获取呼叫相关的数据 +*/ +type AlibabaAliqinFcVoiceGetdetailAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcVoiceGetdetailAPIResponseModel +} + +// 获取呼叫详情 成功返回结果 +type AlibabaAliqinFcVoiceGetdetailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_voice_getdetail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + AlicomCode string `json:"alicom_code,omitempty" xml:"alicom_code,omitempty"` + // 错误信息 + AlicomMsg string `json:"alicom_msg,omitempty" xml:"alicom_msg,omitempty"` + // 请求是否成功 + AlicomSuccess bool `json:"alicom_success,omitempty" xml:"alicom_success,omitempty"` + // 返回值,在没有结果时为空。recordFile表示的是录音文件地址 + Model string `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinFcVoiceGetdetailResponse.go b/model/alicom/AlibabaAliqinFcVoiceGetdetailResponse.go deleted file mode 100644 index 8f5cff85a4..0000000000 --- a/model/alicom/AlibabaAliqinFcVoiceGetdetailResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取呼叫详情 API返回值 -alibaba.aliqin.fc.voice.getdetail - -通过呼叫id获取呼叫相关的数据 -*/ -type AlibabaAliqinFcVoiceGetdetailAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcVoiceGetdetailResponse -} - -// 获取呼叫详情 成功返回结果 -type AlibabaAliqinFcVoiceGetdetailResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_voice_getdetail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - AlicomCode string `json:"alicom_code,omitempty" xml:"alicom_code,omitempty"` - // 错误信息 - AlicomMsg string `json:"alicom_msg,omitempty" xml:"alicom_msg,omitempty"` - // 请求是否成功 - AlicomSuccess bool `json:"alicom_success,omitempty" xml:"alicom_success,omitempty"` - // 返回值,在没有结果时为空。recordFile表示的是录音文件地址 - Model string `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinFcVoiceNumCancelcallAPIRequest.go b/model/alicom/AlibabaAliqinFcVoiceNumCancelcallAPIRequest.go new file mode 100644 index 0000000000..c95a733000 --- /dev/null +++ b/model/alicom/AlibabaAliqinFcVoiceNumCancelcallAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消呼叫 API请求 +alibaba.aliqin.fc.voice.num.cancelcall + +当通话通过阿里大于呼出后可以通过调用这个接口取消本次通话 +*/ +type AlibabaAliqinFcVoiceNumCancelcallAPIRequest struct { + model.Params + // 呼叫唯一id + _callId string +} + +// 初始化AlibabaAliqinFcVoiceNumCancelcallAPIRequest对象 +func NewAlibabaAliqinFcVoiceNumCancelcallRequest() *AlibabaAliqinFcVoiceNumCancelcallAPIRequest{ + return &AlibabaAliqinFcVoiceNumCancelcallAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcVoiceNumCancelcallAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.voice.num.cancelcall" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcVoiceNumCancelcallAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CallId Setter +// 呼叫唯一id +func (r *AlibabaAliqinFcVoiceNumCancelcallAPIRequest) SetCallId(_callId string) error { + r._callId = _callId + r.Set("call_id", _callId) + return nil +} + +// CallId Getter +func (r AlibabaAliqinFcVoiceNumCancelcallAPIRequest) GetCallId() string { + return r._callId +} diff --git a/model/alicom/AlibabaAliqinFcVoiceNumCancelcallAPIResponse.go b/model/alicom/AlibabaAliqinFcVoiceNumCancelcallAPIResponse.go new file mode 100644 index 0000000000..8c6f23454f --- /dev/null +++ b/model/alicom/AlibabaAliqinFcVoiceNumCancelcallAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消呼叫 API返回值 +alibaba.aliqin.fc.voice.num.cancelcall + +当通话通过阿里大于呼出后可以通过调用这个接口取消本次通话 +*/ +type AlibabaAliqinFcVoiceNumCancelcallAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcVoiceNumCancelcallAPIResponseModel +} + +// 取消呼叫 成功返回结果 +type AlibabaAliqinFcVoiceNumCancelcallAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_voice_num_cancelcall_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAliqinFcVoiceNumCancelcallBizResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinFcVoiceNumCancelcallResponse.go b/model/alicom/AlibabaAliqinFcVoiceNumCancelcallResponse.go deleted file mode 100644 index dcd0cee26d..0000000000 --- a/model/alicom/AlibabaAliqinFcVoiceNumCancelcallResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消呼叫 API返回值 -alibaba.aliqin.fc.voice.num.cancelcall - -当通话通过阿里大于呼出后可以通过调用这个接口取消本次通话 -*/ -type AlibabaAliqinFcVoiceNumCancelcallAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcVoiceNumCancelcallResponse -} - -// 取消呼叫 成功返回结果 -type AlibabaAliqinFcVoiceNumCancelcallResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_voice_num_cancelcall_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAliqinFcVoiceNumCancelcallBizResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinFcVoiceRecordGeturlAPIRequest.go b/model/alicom/AlibabaAliqinFcVoiceRecordGeturlAPIRequest.go new file mode 100644 index 0000000000..0330a42d0e --- /dev/null +++ b/model/alicom/AlibabaAliqinFcVoiceRecordGeturlAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +录音文件下载 API请求 +alibaba.aliqin.fc.voice.record.geturl + +完成录音文件的下载地址获取操作 +*/ +type AlibabaAliqinFcVoiceRecordGeturlAPIRequest struct { + model.Params + // 一次通话的唯一标识id + _callId string +} + +// 初始化AlibabaAliqinFcVoiceRecordGeturlAPIRequest对象 +func NewAlibabaAliqinFcVoiceRecordGeturlRequest() *AlibabaAliqinFcVoiceRecordGeturlAPIRequest{ + return &AlibabaAliqinFcVoiceRecordGeturlAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcVoiceRecordGeturlAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.voice.record.geturl" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcVoiceRecordGeturlAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CallId Setter +// 一次通话的唯一标识id +func (r *AlibabaAliqinFcVoiceRecordGeturlAPIRequest) SetCallId(_callId string) error { + r._callId = _callId + r.Set("call_id", _callId) + return nil +} + +// CallId Getter +func (r AlibabaAliqinFcVoiceRecordGeturlAPIRequest) GetCallId() string { + return r._callId +} diff --git a/model/alicom/AlibabaAliqinFcVoiceRecordGeturlAPIResponse.go b/model/alicom/AlibabaAliqinFcVoiceRecordGeturlAPIResponse.go new file mode 100644 index 0000000000..c6af69d562 --- /dev/null +++ b/model/alicom/AlibabaAliqinFcVoiceRecordGeturlAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +录音文件下载 API返回值 +alibaba.aliqin.fc.voice.record.geturl + +完成录音文件的下载地址获取操作 +*/ +type AlibabaAliqinFcVoiceRecordGeturlAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcVoiceRecordGeturlAPIResponseModel +} + +// 录音文件下载 成功返回结果 +type AlibabaAliqinFcVoiceRecordGeturlAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_voice_record_geturl_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAliqinFcVoiceRecordGeturlResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinFcVoiceRecordGeturlResponse.go b/model/alicom/AlibabaAliqinFcVoiceRecordGeturlResponse.go deleted file mode 100644 index 68f9a81d28..0000000000 --- a/model/alicom/AlibabaAliqinFcVoiceRecordGeturlResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -录音文件下载 API返回值 -alibaba.aliqin.fc.voice.record.geturl - -完成录音文件的下载地址获取操作 -*/ -type AlibabaAliqinFcVoiceRecordGeturlAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcVoiceRecordGeturlResponse -} - -// 录音文件下载 成功返回结果 -type AlibabaAliqinFcVoiceRecordGeturlResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_voice_record_geturl_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAliqinFcVoiceRecordGeturlResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinFlowAlipayIsbindingtbaccountAPIRequest.go b/model/alicom/AlibabaAliqinFlowAlipayIsbindingtbaccountAPIRequest.go new file mode 100644 index 0000000000..fd5b1cb6c4 --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowAlipayIsbindingtbaccountAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +判断支付宝用户是否绑定淘宝账号 API请求 +alibaba.aliqin.flow.alipay.isbindingtbaccount + +判断支付宝用户是否绑定淘宝账号 +*/ +type AlibabaAliqinFlowAlipayIsbindingtbaccountAPIRequest struct { + model.Params + // 支付宝ID + _alipayId string +} + +// 初始化AlibabaAliqinFlowAlipayIsbindingtbaccountAPIRequest对象 +func NewAlibabaAliqinFlowAlipayIsbindingtbaccountRequest() *AlibabaAliqinFlowAlipayIsbindingtbaccountAPIRequest{ + return &AlibabaAliqinFlowAlipayIsbindingtbaccountAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFlowAlipayIsbindingtbaccountAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.flow.alipay.isbindingtbaccount" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFlowAlipayIsbindingtbaccountAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlipayId Setter +// 支付宝ID +func (r *AlibabaAliqinFlowAlipayIsbindingtbaccountAPIRequest) SetAlipayId(_alipayId string) error { + r._alipayId = _alipayId + r.Set("alipay_id", _alipayId) + return nil +} + +// AlipayId Getter +func (r AlibabaAliqinFlowAlipayIsbindingtbaccountAPIRequest) GetAlipayId() string { + return r._alipayId +} diff --git a/model/alicom/AlibabaAliqinFlowAlipayIsbindingtbaccountAPIResponse.go b/model/alicom/AlibabaAliqinFlowAlipayIsbindingtbaccountAPIResponse.go new file mode 100644 index 0000000000..b236b35995 --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowAlipayIsbindingtbaccountAPIResponse.go @@ -0,0 +1,33 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +判断支付宝用户是否绑定淘宝账号 API返回值 +alibaba.aliqin.flow.alipay.isbindingtbaccount + +判断支付宝用户是否绑定淘宝账号 +*/ +type AlibabaAliqinFlowAlipayIsbindingtbaccountAPIResponse struct { + model.CommonResponse + AlibabaAliqinFlowAlipayIsbindingtbaccountAPIResponseModel +} + +// 判断支付宝用户是否绑定淘宝账号 成功返回结果 +type AlibabaAliqinFlowAlipayIsbindingtbaccountAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_flow_alipay_isbindingtbaccount_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // error + Error bool `json:"error,omitempty" xml:"error,omitempty"` + // TRUE代表绑定,FALSE代表未绑定 + Value string `json:"value,omitempty" xml:"value,omitempty"` + // errorCode + AlicomFlowErrorCode string `json:"alicom_flow_error_code,omitempty" xml:"alicom_flow_error_code,omitempty"` + // errorMsg + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinFlowAlipayIsbindingtbaccountResponse.go b/model/alicom/AlibabaAliqinFlowAlipayIsbindingtbaccountResponse.go deleted file mode 100644 index aebd294ab7..0000000000 --- a/model/alicom/AlibabaAliqinFlowAlipayIsbindingtbaccountResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -判断支付宝用户是否绑定淘宝账号 API返回值 -alibaba.aliqin.flow.alipay.isbindingtbaccount - -判断支付宝用户是否绑定淘宝账号 -*/ -type AlibabaAliqinFlowAlipayIsbindingtbaccountAPIResponse struct { - model.CommonResponse - AlibabaAliqinFlowAlipayIsbindingtbaccountResponse -} - -// 判断支付宝用户是否绑定淘宝账号 成功返回结果 -type AlibabaAliqinFlowAlipayIsbindingtbaccountResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_flow_alipay_isbindingtbaccount_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // error - Error bool `json:"error,omitempty" xml:"error,omitempty"` - // TRUE代表绑定,FALSE代表未绑定 - Value string `json:"value,omitempty" xml:"value,omitempty"` - // errorCode - AlicomFlowErrorCode string `json:"alicom_flow_error_code,omitempty" xml:"alicom_flow_error_code,omitempty"` - // errorMsg - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinFlowAlipayPublishAPIRequest.go b/model/alicom/AlibabaAliqinFlowAlipayPublishAPIRequest.go new file mode 100644 index 0000000000..7d664b42e7 --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowAlipayPublishAPIRequest.go @@ -0,0 +1,94 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +流量钱包流量发放-面向支付宝用户 API请求 +alibaba.aliqin.flow.alipay.publish + +用户淘宝流量钱包商家给支付宝用户发放流量 +*/ +type AlibabaAliqinFlowAlipayPublishAPIRequest struct { + model.Params + // 用户的支付宝ID + _alipayId string + // 外部流水号,用来做幂等校验 + _serial string + // 发放的流量数,单位MB + _flow string + // 发放原因 + _reason string +} + +// 初始化AlibabaAliqinFlowAlipayPublishAPIRequest对象 +func NewAlibabaAliqinFlowAlipayPublishRequest() *AlibabaAliqinFlowAlipayPublishAPIRequest{ + return &AlibabaAliqinFlowAlipayPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFlowAlipayPublishAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.flow.alipay.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFlowAlipayPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlipayId Setter +// 用户的支付宝ID +func (r *AlibabaAliqinFlowAlipayPublishAPIRequest) SetAlipayId(_alipayId string) error { + r._alipayId = _alipayId + r.Set("alipay_id", _alipayId) + return nil +} + +// AlipayId Getter +func (r AlibabaAliqinFlowAlipayPublishAPIRequest) GetAlipayId() string { + return r._alipayId +} +// Serial Setter +// 外部流水号,用来做幂等校验 +func (r *AlibabaAliqinFlowAlipayPublishAPIRequest) SetSerial(_serial string) error { + r._serial = _serial + r.Set("serial", _serial) + return nil +} + +// Serial Getter +func (r AlibabaAliqinFlowAlipayPublishAPIRequest) GetSerial() string { + return r._serial +} +// Flow Setter +// 发放的流量数,单位MB +func (r *AlibabaAliqinFlowAlipayPublishAPIRequest) SetFlow(_flow string) error { + r._flow = _flow + r.Set("flow", _flow) + return nil +} + +// Flow Getter +func (r AlibabaAliqinFlowAlipayPublishAPIRequest) GetFlow() string { + return r._flow +} +// Reason Setter +// 发放原因 +func (r *AlibabaAliqinFlowAlipayPublishAPIRequest) SetReason(_reason string) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r AlibabaAliqinFlowAlipayPublishAPIRequest) GetReason() string { + return r._reason +} diff --git a/model/alicom/AlibabaAliqinFlowAlipayPublishAPIResponse.go b/model/alicom/AlibabaAliqinFlowAlipayPublishAPIResponse.go new file mode 100644 index 0000000000..754ec27cea --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowAlipayPublishAPIResponse.go @@ -0,0 +1,33 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +流量钱包流量发放-面向支付宝用户 API返回值 +alibaba.aliqin.flow.alipay.publish + +用户淘宝流量钱包商家给支付宝用户发放流量 +*/ +type AlibabaAliqinFlowAlipayPublishAPIResponse struct { + model.CommonResponse + AlibabaAliqinFlowAlipayPublishAPIResponseModel +} + +// 流量钱包流量发放-面向支付宝用户 成功返回结果 +type AlibabaAliqinFlowAlipayPublishAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_flow_alipay_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // error + Error bool `json:"error,omitempty" xml:"error,omitempty"` + // value + Value string `json:"value,omitempty" xml:"value,omitempty"` + // errorCode + AlicomErrorCode string `json:"alicom_error_code,omitempty" xml:"alicom_error_code,omitempty"` + // errorMsg + AlicomErrorMsg string `json:"alicom_error_msg,omitempty" xml:"alicom_error_msg,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinFlowAlipayPublishResponse.go b/model/alicom/AlibabaAliqinFlowAlipayPublishResponse.go deleted file mode 100644 index 23800713b9..0000000000 --- a/model/alicom/AlibabaAliqinFlowAlipayPublishResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -流量钱包流量发放-面向支付宝用户 API返回值 -alibaba.aliqin.flow.alipay.publish - -用户淘宝流量钱包商家给支付宝用户发放流量 -*/ -type AlibabaAliqinFlowAlipayPublishAPIResponse struct { - model.CommonResponse - AlibabaAliqinFlowAlipayPublishResponse -} - -// 流量钱包流量发放-面向支付宝用户 成功返回结果 -type AlibabaAliqinFlowAlipayPublishResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_flow_alipay_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // error - Error bool `json:"error,omitempty" xml:"error,omitempty"` - // value - Value string `json:"value,omitempty" xml:"value,omitempty"` - // errorCode - AlicomErrorCode string `json:"alicom_error_code,omitempty" xml:"alicom_error_code,omitempty"` - // errorMsg - AlicomErrorMsg string `json:"alicom_error_msg,omitempty" xml:"alicom_error_msg,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinFlowCobrandcardSysnAPIRequest.go b/model/alicom/AlibabaAliqinFlowCobrandcardSysnAPIRequest.go new file mode 100644 index 0000000000..4be1c657a3 --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowCobrandcardSysnAPIRequest.go @@ -0,0 +1,94 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +联名卡信息同步 API请求 +alibaba.aliqin.flow.cobrandcard.sysn + +提供给浙江移动同步联名卡信息接口。 +*/ +type AlibabaAliqinFlowCobrandcardSysnAPIRequest struct { + model.Params + // 淘宝nick + _tbUserNick string + // 手机号码 + _phone string + // 联名卡类型cardType:1-大喵卡,2-小喵卡 + _cardType string + // 1-激活,0-失效 + _action string +} + +// 初始化AlibabaAliqinFlowCobrandcardSysnAPIRequest对象 +func NewAlibabaAliqinFlowCobrandcardSysnRequest() *AlibabaAliqinFlowCobrandcardSysnAPIRequest{ + return &AlibabaAliqinFlowCobrandcardSysnAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFlowCobrandcardSysnAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.flow.cobrandcard.sysn" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFlowCobrandcardSysnAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TbUserNick Setter +// 淘宝nick +func (r *AlibabaAliqinFlowCobrandcardSysnAPIRequest) SetTbUserNick(_tbUserNick string) error { + r._tbUserNick = _tbUserNick + r.Set("tb_user_nick", _tbUserNick) + return nil +} + +// TbUserNick Getter +func (r AlibabaAliqinFlowCobrandcardSysnAPIRequest) GetTbUserNick() string { + return r._tbUserNick +} +// Phone Setter +// 手机号码 +func (r *AlibabaAliqinFlowCobrandcardSysnAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r AlibabaAliqinFlowCobrandcardSysnAPIRequest) GetPhone() string { + return r._phone +} +// CardType Setter +// 联名卡类型cardType:1-大喵卡,2-小喵卡 +func (r *AlibabaAliqinFlowCobrandcardSysnAPIRequest) SetCardType(_cardType string) error { + r._cardType = _cardType + r.Set("card_type", _cardType) + return nil +} + +// CardType Getter +func (r AlibabaAliqinFlowCobrandcardSysnAPIRequest) GetCardType() string { + return r._cardType +} +// Action Setter +// 1-激活,0-失效 +func (r *AlibabaAliqinFlowCobrandcardSysnAPIRequest) SetAction(_action string) error { + r._action = _action + r.Set("action", _action) + return nil +} + +// Action Getter +func (r AlibabaAliqinFlowCobrandcardSysnAPIRequest) GetAction() string { + return r._action +} diff --git a/model/alicom/AlibabaAliqinFlowCobrandcardSysnAPIResponse.go b/model/alicom/AlibabaAliqinFlowCobrandcardSysnAPIResponse.go new file mode 100644 index 0000000000..4cb0294078 --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowCobrandcardSysnAPIResponse.go @@ -0,0 +1,33 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +联名卡信息同步 API返回值 +alibaba.aliqin.flow.cobrandcard.sysn + +提供给浙江移动同步联名卡信息接口。 +*/ +type AlibabaAliqinFlowCobrandcardSysnAPIResponse struct { + model.CommonResponse + AlibabaAliqinFlowCobrandcardSysnAPIResponseModel +} + +// 联名卡信息同步 成功返回结果 +type AlibabaAliqinFlowCobrandcardSysnAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_flow_cobrandcard_sysn_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // errorCode,错误码 + BizErrorCode string `json:"biz_error_code,omitempty" xml:"biz_error_code,omitempty"` + // errorMsg,错误描述 + BizErrorMsg string `json:"biz_error_msg,omitempty" xml:"biz_error_msg,omitempty"` + // 是否请求成功true 或者false + Value string `json:"value,omitempty" xml:"value,omitempty"` + // error,如果有错,这个为true + Error bool `json:"error,omitempty" xml:"error,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinFlowCobrandcardSysnResponse.go b/model/alicom/AlibabaAliqinFlowCobrandcardSysnResponse.go deleted file mode 100644 index 6b15f12f8c..0000000000 --- a/model/alicom/AlibabaAliqinFlowCobrandcardSysnResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -联名卡信息同步 API返回值 -alibaba.aliqin.flow.cobrandcard.sysn - -提供给浙江移动同步联名卡信息接口。 -*/ -type AlibabaAliqinFlowCobrandcardSysnAPIResponse struct { - model.CommonResponse - AlibabaAliqinFlowCobrandcardSysnResponse -} - -// 联名卡信息同步 成功返回结果 -type AlibabaAliqinFlowCobrandcardSysnResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_flow_cobrandcard_sysn_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // errorCode,错误码 - BizErrorCode string `json:"biz_error_code,omitempty" xml:"biz_error_code,omitempty"` - // errorMsg,错误描述 - BizErrorMsg string `json:"biz_error_msg,omitempty" xml:"biz_error_msg,omitempty"` - // 是否请求成功true 或者false - Value string `json:"value,omitempty" xml:"value,omitempty"` - // error,如果有错,这个为true - Error bool `json:"error,omitempty" xml:"error,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinFlowPublishAPIRequest.go b/model/alicom/AlibabaAliqinFlowPublishAPIRequest.go new file mode 100644 index 0000000000..e00fbe1244 --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowPublishAPIRequest.go @@ -0,0 +1,108 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +流量发放(用户id) API请求 +alibaba.aliqin.flow.publish + +阿里通信流量下发功能,允许用户补发 +*/ +type AlibabaAliqinFlowPublishAPIRequest struct { + model.Params + // 用户id + _userId string + // 流量 + _flow string + // 原因 + _reason string + // 唯一流水号(字母+数字) + _serial string + // 设置true为始终发送成功 + _always string +} + +// 初始化AlibabaAliqinFlowPublishAPIRequest对象 +func NewAlibabaAliqinFlowPublishRequest() *AlibabaAliqinFlowPublishAPIRequest{ + return &AlibabaAliqinFlowPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFlowPublishAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.flow.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFlowPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户id +func (r *AlibabaAliqinFlowPublishAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaAliqinFlowPublishAPIRequest) GetUserId() string { + return r._userId +} +// Flow Setter +// 流量 +func (r *AlibabaAliqinFlowPublishAPIRequest) SetFlow(_flow string) error { + r._flow = _flow + r.Set("flow", _flow) + return nil +} + +// Flow Getter +func (r AlibabaAliqinFlowPublishAPIRequest) GetFlow() string { + return r._flow +} +// Reason Setter +// 原因 +func (r *AlibabaAliqinFlowPublishAPIRequest) SetReason(_reason string) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r AlibabaAliqinFlowPublishAPIRequest) GetReason() string { + return r._reason +} +// Serial Setter +// 唯一流水号(字母+数字) +func (r *AlibabaAliqinFlowPublishAPIRequest) SetSerial(_serial string) error { + r._serial = _serial + r.Set("serial", _serial) + return nil +} + +// Serial Getter +func (r AlibabaAliqinFlowPublishAPIRequest) GetSerial() string { + return r._serial +} +// Always Setter +// 设置true为始终发送成功 +func (r *AlibabaAliqinFlowPublishAPIRequest) SetAlways(_always string) error { + r._always = _always + r.Set("always", _always) + return nil +} + +// Always Getter +func (r AlibabaAliqinFlowPublishAPIRequest) GetAlways() string { + return r._always +} diff --git a/model/alicom/AlibabaAliqinFlowPublishAPIResponse.go b/model/alicom/AlibabaAliqinFlowPublishAPIResponse.go new file mode 100644 index 0000000000..aa295145e4 --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowPublishAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +流量发放(用户id) API返回值 +alibaba.aliqin.flow.publish + +阿里通信流量下发功能,允许用户补发 +*/ +type AlibabaAliqinFlowPublishAPIResponse struct { + model.CommonResponse + AlibabaAliqinFlowPublishAPIResponseModel +} + +// 流量发放(用户id) 成功返回结果 +type AlibabaAliqinFlowPublishAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_flow_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true为成功,其他为失败 + Value string `json:"value,omitempty" xml:"value,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinFlowPublishResponse.go b/model/alicom/AlibabaAliqinFlowPublishResponse.go deleted file mode 100644 index bbc83b44fd..0000000000 --- a/model/alicom/AlibabaAliqinFlowPublishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -流量发放(用户id) API返回值 -alibaba.aliqin.flow.publish - -阿里通信流量下发功能,允许用户补发 -*/ -type AlibabaAliqinFlowPublishAPIResponse struct { - model.CommonResponse - AlibabaAliqinFlowPublishResponse -} - -// 流量发放(用户id) 成功返回结果 -type AlibabaAliqinFlowPublishResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_flow_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true为成功,其他为失败 - Value string `json:"value,omitempty" xml:"value,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinFlowWalletChargeAPIRequest.go b/model/alicom/AlibabaAliqinFlowWalletChargeAPIRequest.go new file mode 100644 index 0000000000..208f14d0f4 --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowWalletChargeAPIRequest.go @@ -0,0 +1,108 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +流量直充 API请求 +alibaba.aliqin.flow.wallet.charge + +流量直充 +*/ +type AlibabaAliqinFlowWalletChargeAPIRequest struct { + model.Params + // 充值号码 + _phoneNum string + // 原因 + _reason string + // 档位id + _gradeId string + // 唯一流水号 + _outRechargeId string + // 渠道id + _channelId string +} + +// 初始化AlibabaAliqinFlowWalletChargeAPIRequest对象 +func NewAlibabaAliqinFlowWalletChargeRequest() *AlibabaAliqinFlowWalletChargeAPIRequest{ + return &AlibabaAliqinFlowWalletChargeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFlowWalletChargeAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.flow.wallet.charge" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFlowWalletChargeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PhoneNum Setter +// 充值号码 +func (r *AlibabaAliqinFlowWalletChargeAPIRequest) SetPhoneNum(_phoneNum string) error { + r._phoneNum = _phoneNum + r.Set("phone_num", _phoneNum) + return nil +} + +// PhoneNum Getter +func (r AlibabaAliqinFlowWalletChargeAPIRequest) GetPhoneNum() string { + return r._phoneNum +} +// Reason Setter +// 原因 +func (r *AlibabaAliqinFlowWalletChargeAPIRequest) SetReason(_reason string) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r AlibabaAliqinFlowWalletChargeAPIRequest) GetReason() string { + return r._reason +} +// GradeId Setter +// 档位id +func (r *AlibabaAliqinFlowWalletChargeAPIRequest) SetGradeId(_gradeId string) error { + r._gradeId = _gradeId + r.Set("grade_id", _gradeId) + return nil +} + +// GradeId Getter +func (r AlibabaAliqinFlowWalletChargeAPIRequest) GetGradeId() string { + return r._gradeId +} +// OutRechargeId Setter +// 唯一流水号 +func (r *AlibabaAliqinFlowWalletChargeAPIRequest) SetOutRechargeId(_outRechargeId string) error { + r._outRechargeId = _outRechargeId + r.Set("out_recharge_id", _outRechargeId) + return nil +} + +// OutRechargeId Getter +func (r AlibabaAliqinFlowWalletChargeAPIRequest) GetOutRechargeId() string { + return r._outRechargeId +} +// ChannelId Setter +// 渠道id +func (r *AlibabaAliqinFlowWalletChargeAPIRequest) SetChannelId(_channelId string) error { + r._channelId = _channelId + r.Set("channel_id", _channelId) + return nil +} + +// ChannelId Getter +func (r AlibabaAliqinFlowWalletChargeAPIRequest) GetChannelId() string { + return r._channelId +} diff --git a/model/alicom/AlibabaAliqinFlowWalletChargeAPIResponse.go b/model/alicom/AlibabaAliqinFlowWalletChargeAPIResponse.go new file mode 100644 index 0000000000..38fd99f3f9 --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowWalletChargeAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +流量直充 API返回值 +alibaba.aliqin.flow.wallet.charge + +流量直充 +*/ +type AlibabaAliqinFlowWalletChargeAPIResponse struct { + model.CommonResponse + AlibabaAliqinFlowWalletChargeAPIResponseModel +} + +// 流量直充 成功返回结果 +type AlibabaAliqinFlowWalletChargeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_flow_wallet_charge_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 充值请求 + Charge string `json:"charge,omitempty" xml:"charge,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinFlowWalletChargeResponse.go b/model/alicom/AlibabaAliqinFlowWalletChargeResponse.go deleted file mode 100644 index 72c03e8ab3..0000000000 --- a/model/alicom/AlibabaAliqinFlowWalletChargeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -流量直充 API返回值 -alibaba.aliqin.flow.wallet.charge - -流量直充 -*/ -type AlibabaAliqinFlowWalletChargeAPIResponse struct { - model.CommonResponse - AlibabaAliqinFlowWalletChargeResponse -} - -// 流量直充 成功返回结果 -type AlibabaAliqinFlowWalletChargeResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_flow_wallet_charge_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 充值请求 - Charge string `json:"charge,omitempty" xml:"charge,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinFlowWalletChargeRuleAPIRequest.go b/model/alicom/AlibabaAliqinFlowWalletChargeRuleAPIRequest.go new file mode 100644 index 0000000000..6628f56118 --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowWalletChargeRuleAPIRequest.go @@ -0,0 +1,108 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +流量钱包直充(根据号码归属地省份路由) API请求 +alibaba.aliqin.flow.wallet.charge.rule + +流量钱包直充(根据号码归属地省份路由) +*/ +type AlibabaAliqinFlowWalletChargeRuleAPIRequest struct { + model.Params + // 号码 + _phoneNum string + // 原因 + _reason string + // 档位id + _gradeId string + // 唯一流水号 + _outRechargeId string + // 渠道id(运营分配) + _channelId string +} + +// 初始化AlibabaAliqinFlowWalletChargeRuleAPIRequest对象 +func NewAlibabaAliqinFlowWalletChargeRuleRequest() *AlibabaAliqinFlowWalletChargeRuleAPIRequest{ + return &AlibabaAliqinFlowWalletChargeRuleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFlowWalletChargeRuleAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.flow.wallet.charge.rule" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFlowWalletChargeRuleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PhoneNum Setter +// 号码 +func (r *AlibabaAliqinFlowWalletChargeRuleAPIRequest) SetPhoneNum(_phoneNum string) error { + r._phoneNum = _phoneNum + r.Set("phone_num", _phoneNum) + return nil +} + +// PhoneNum Getter +func (r AlibabaAliqinFlowWalletChargeRuleAPIRequest) GetPhoneNum() string { + return r._phoneNum +} +// Reason Setter +// 原因 +func (r *AlibabaAliqinFlowWalletChargeRuleAPIRequest) SetReason(_reason string) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r AlibabaAliqinFlowWalletChargeRuleAPIRequest) GetReason() string { + return r._reason +} +// GradeId Setter +// 档位id +func (r *AlibabaAliqinFlowWalletChargeRuleAPIRequest) SetGradeId(_gradeId string) error { + r._gradeId = _gradeId + r.Set("grade_id", _gradeId) + return nil +} + +// GradeId Getter +func (r AlibabaAliqinFlowWalletChargeRuleAPIRequest) GetGradeId() string { + return r._gradeId +} +// OutRechargeId Setter +// 唯一流水号 +func (r *AlibabaAliqinFlowWalletChargeRuleAPIRequest) SetOutRechargeId(_outRechargeId string) error { + r._outRechargeId = _outRechargeId + r.Set("out_recharge_id", _outRechargeId) + return nil +} + +// OutRechargeId Getter +func (r AlibabaAliqinFlowWalletChargeRuleAPIRequest) GetOutRechargeId() string { + return r._outRechargeId +} +// ChannelId Setter +// 渠道id(运营分配) +func (r *AlibabaAliqinFlowWalletChargeRuleAPIRequest) SetChannelId(_channelId string) error { + r._channelId = _channelId + r.Set("channel_id", _channelId) + return nil +} + +// ChannelId Getter +func (r AlibabaAliqinFlowWalletChargeRuleAPIRequest) GetChannelId() string { + return r._channelId +} diff --git a/model/alicom/AlibabaAliqinFlowWalletChargeRuleAPIResponse.go b/model/alicom/AlibabaAliqinFlowWalletChargeRuleAPIResponse.go new file mode 100644 index 0000000000..9b1d243d39 --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowWalletChargeRuleAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +流量钱包直充(根据号码归属地省份路由) API返回值 +alibaba.aliqin.flow.wallet.charge.rule + +流量钱包直充(根据号码归属地省份路由) +*/ +type AlibabaAliqinFlowWalletChargeRuleAPIResponse struct { + model.CommonResponse + AlibabaAliqinFlowWalletChargeRuleAPIResponseModel +} + +// 流量钱包直充(根据号码归属地省份路由) 成功返回结果 +type AlibabaAliqinFlowWalletChargeRuleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_flow_wallet_charge_rule_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // {"error":"true","msg":"返回信息"} + Charge string `json:"charge,omitempty" xml:"charge,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinFlowWalletChargeRuleResponse.go b/model/alicom/AlibabaAliqinFlowWalletChargeRuleResponse.go deleted file mode 100644 index 3957e3383c..0000000000 --- a/model/alicom/AlibabaAliqinFlowWalletChargeRuleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -流量钱包直充(根据号码归属地省份路由) API返回值 -alibaba.aliqin.flow.wallet.charge.rule - -流量钱包直充(根据号码归属地省份路由) -*/ -type AlibabaAliqinFlowWalletChargeRuleAPIResponse struct { - model.CommonResponse - AlibabaAliqinFlowWalletChargeRuleResponse -} - -// 流量钱包直充(根据号码归属地省份路由) 成功返回结果 -type AlibabaAliqinFlowWalletChargeRuleResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_flow_wallet_charge_rule_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // {"error":"true","msg":"返回信息"} - Charge string `json:"charge,omitempty" xml:"charge,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinFlowWalletConsumeAPIRequest.go b/model/alicom/AlibabaAliqinFlowWalletConsumeAPIRequest.go new file mode 100644 index 0000000000..7fe1d2642e --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowWalletConsumeAPIRequest.go @@ -0,0 +1,94 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +流量扣减 API请求 +alibaba.aliqin.flow.wallet.consume + +流量钱包流量扣减接口 +*/ +type AlibabaAliqinFlowWalletConsumeAPIRequest struct { + model.Params + // 扣减流量值 + _flow int64 + // 扣减流水号 + _serialNo string + // 扣减原因 + _reason string + // 备注 + _remark string +} + +// 初始化AlibabaAliqinFlowWalletConsumeAPIRequest对象 +func NewAlibabaAliqinFlowWalletConsumeRequest() *AlibabaAliqinFlowWalletConsumeAPIRequest{ + return &AlibabaAliqinFlowWalletConsumeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFlowWalletConsumeAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.flow.wallet.consume" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFlowWalletConsumeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Flow Setter +// 扣减流量值 +func (r *AlibabaAliqinFlowWalletConsumeAPIRequest) SetFlow(_flow int64) error { + r._flow = _flow + r.Set("flow", _flow) + return nil +} + +// Flow Getter +func (r AlibabaAliqinFlowWalletConsumeAPIRequest) GetFlow() int64 { + return r._flow +} +// SerialNo Setter +// 扣减流水号 +func (r *AlibabaAliqinFlowWalletConsumeAPIRequest) SetSerialNo(_serialNo string) error { + r._serialNo = _serialNo + r.Set("serial_no", _serialNo) + return nil +} + +// SerialNo Getter +func (r AlibabaAliqinFlowWalletConsumeAPIRequest) GetSerialNo() string { + return r._serialNo +} +// Reason Setter +// 扣减原因 +func (r *AlibabaAliqinFlowWalletConsumeAPIRequest) SetReason(_reason string) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r AlibabaAliqinFlowWalletConsumeAPIRequest) GetReason() string { + return r._reason +} +// Remark Setter +// 备注 +func (r *AlibabaAliqinFlowWalletConsumeAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r AlibabaAliqinFlowWalletConsumeAPIRequest) GetRemark() string { + return r._remark +} diff --git a/model/alicom/AlibabaAliqinFlowWalletConsumeAPIResponse.go b/model/alicom/AlibabaAliqinFlowWalletConsumeAPIResponse.go new file mode 100644 index 0000000000..f97ef24f5e --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowWalletConsumeAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +流量扣减 API返回值 +alibaba.aliqin.flow.wallet.consume + +流量钱包流量扣减接口 +*/ +type AlibabaAliqinFlowWalletConsumeAPIResponse struct { + model.CommonResponse + AlibabaAliqinFlowWalletConsumeAPIResponseModel +} + +// 流量扣减 成功返回结果 +type AlibabaAliqinFlowWalletConsumeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_flow_wallet_consume_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true为成功 + Value string `json:"value,omitempty" xml:"value,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinFlowWalletConsumeResponse.go b/model/alicom/AlibabaAliqinFlowWalletConsumeResponse.go deleted file mode 100644 index 05f8a5940b..0000000000 --- a/model/alicom/AlibabaAliqinFlowWalletConsumeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -流量扣减 API返回值 -alibaba.aliqin.flow.wallet.consume - -流量钱包流量扣减接口 -*/ -type AlibabaAliqinFlowWalletConsumeAPIResponse struct { - model.CommonResponse - AlibabaAliqinFlowWalletConsumeResponse -} - -// 流量扣减 成功返回结果 -type AlibabaAliqinFlowWalletConsumeResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_flow_wallet_consume_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true为成功 - Value string `json:"value,omitempty" xml:"value,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinFlowWalletGradeAPIRequest.go b/model/alicom/AlibabaAliqinFlowWalletGradeAPIRequest.go new file mode 100644 index 0000000000..1b49d96d58 --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowWalletGradeAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取流量档位 API请求 +alibaba.aliqin.flow.wallet.grade + +获取直充流量档位 +*/ +type AlibabaAliqinFlowWalletGradeAPIRequest struct { + model.Params + // 手机号码 + _phoneNum string +} + +// 初始化AlibabaAliqinFlowWalletGradeAPIRequest对象 +func NewAlibabaAliqinFlowWalletGradeRequest() *AlibabaAliqinFlowWalletGradeAPIRequest{ + return &AlibabaAliqinFlowWalletGradeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFlowWalletGradeAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.flow.wallet.grade" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFlowWalletGradeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PhoneNum Setter +// 手机号码 +func (r *AlibabaAliqinFlowWalletGradeAPIRequest) SetPhoneNum(_phoneNum string) error { + r._phoneNum = _phoneNum + r.Set("phone_num", _phoneNum) + return nil +} + +// PhoneNum Getter +func (r AlibabaAliqinFlowWalletGradeAPIRequest) GetPhoneNum() string { + return r._phoneNum +} diff --git a/model/alicom/AlibabaAliqinFlowWalletGradeAPIResponse.go b/model/alicom/AlibabaAliqinFlowWalletGradeAPIResponse.go new file mode 100644 index 0000000000..ec74f0a9b0 --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowWalletGradeAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取流量档位 API返回值 +alibaba.aliqin.flow.wallet.grade + +获取直充流量档位 +*/ +type AlibabaAliqinFlowWalletGradeAPIResponse struct { + model.CommonResponse + AlibabaAliqinFlowWalletGradeAPIResponseModel +} + +// 获取流量档位 成功返回结果 +type AlibabaAliqinFlowWalletGradeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_flow_wallet_grade_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 档位 + Grade string `json:"grade,omitempty" xml:"grade,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinFlowWalletGradeResponse.go b/model/alicom/AlibabaAliqinFlowWalletGradeResponse.go deleted file mode 100644 index ef29c3628e..0000000000 --- a/model/alicom/AlibabaAliqinFlowWalletGradeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取流量档位 API返回值 -alibaba.aliqin.flow.wallet.grade - -获取直充流量档位 -*/ -type AlibabaAliqinFlowWalletGradeAPIResponse struct { - model.CommonResponse - AlibabaAliqinFlowWalletGradeResponse -} - -// 获取流量档位 成功返回结果 -type AlibabaAliqinFlowWalletGradeResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_flow_wallet_grade_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 档位 - Grade string `json:"grade,omitempty" xml:"grade,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinFlowWalletQueryChargeAPIRequest.go b/model/alicom/AlibabaAliqinFlowWalletQueryChargeAPIRequest.go new file mode 100644 index 0000000000..0e622c6341 --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowWalletQueryChargeAPIRequest.go @@ -0,0 +1,66 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询流量充值状态 API请求 +alibaba.aliqin.flow.wallet.query.charge + +查询流量充值状态 +*/ +type AlibabaAliqinFlowWalletQueryChargeAPIRequest struct { + model.Params + // 唯一流水号 + _outRechargeId string + // 渠道id + _channelId string +} + +// 初始化AlibabaAliqinFlowWalletQueryChargeAPIRequest对象 +func NewAlibabaAliqinFlowWalletQueryChargeRequest() *AlibabaAliqinFlowWalletQueryChargeAPIRequest{ + return &AlibabaAliqinFlowWalletQueryChargeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFlowWalletQueryChargeAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.flow.wallet.query.charge" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFlowWalletQueryChargeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutRechargeId Setter +// 唯一流水号 +func (r *AlibabaAliqinFlowWalletQueryChargeAPIRequest) SetOutRechargeId(_outRechargeId string) error { + r._outRechargeId = _outRechargeId + r.Set("out_recharge_id", _outRechargeId) + return nil +} + +// OutRechargeId Getter +func (r AlibabaAliqinFlowWalletQueryChargeAPIRequest) GetOutRechargeId() string { + return r._outRechargeId +} +// ChannelId Setter +// 渠道id +func (r *AlibabaAliqinFlowWalletQueryChargeAPIRequest) SetChannelId(_channelId string) error { + r._channelId = _channelId + r.Set("channel_id", _channelId) + return nil +} + +// ChannelId Getter +func (r AlibabaAliqinFlowWalletQueryChargeAPIRequest) GetChannelId() string { + return r._channelId +} diff --git a/model/alicom/AlibabaAliqinFlowWalletQueryChargeAPIResponse.go b/model/alicom/AlibabaAliqinFlowWalletQueryChargeAPIResponse.go new file mode 100644 index 0000000000..f030d55ee0 --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowWalletQueryChargeAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询流量充值状态 API返回值 +alibaba.aliqin.flow.wallet.query.charge + +查询流量充值状态 +*/ +type AlibabaAliqinFlowWalletQueryChargeAPIResponse struct { + model.CommonResponse + AlibabaAliqinFlowWalletQueryChargeAPIResponseModel +} + +// 查询流量充值状态 成功返回结果 +type AlibabaAliqinFlowWalletQueryChargeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_flow_wallet_query_charge_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 充值状态 + Charge string `json:"charge,omitempty" xml:"charge,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinFlowWalletQueryChargeResponse.go b/model/alicom/AlibabaAliqinFlowWalletQueryChargeResponse.go deleted file mode 100644 index cb133987e0..0000000000 --- a/model/alicom/AlibabaAliqinFlowWalletQueryChargeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询流量充值状态 API返回值 -alibaba.aliqin.flow.wallet.query.charge - -查询流量充值状态 -*/ -type AlibabaAliqinFlowWalletQueryChargeAPIResponse struct { - model.CommonResponse - AlibabaAliqinFlowWalletQueryChargeResponse -} - -// 查询流量充值状态 成功返回结果 -type AlibabaAliqinFlowWalletQueryChargeResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_flow_wallet_query_charge_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 充值状态 - Charge string `json:"charge,omitempty" xml:"charge,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinFlowWalletSendFlowAPIRequest.go b/model/alicom/AlibabaAliqinFlowWalletSendFlowAPIRequest.go new file mode 100644 index 0000000000..9c7864c495 --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowWalletSendFlowAPIRequest.go @@ -0,0 +1,122 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +流量发放 API请求 +alibaba.aliqin.flow.wallet.send.flow + +阿里通信流量下发功能,允许用户补发 +*/ +type AlibabaAliqinFlowWalletSendFlowAPIRequest struct { + model.Params + // 混淆用户名 + _buyerNick string + // 真实用户名称,如果填写这个字段,buyer_nick失效 + _realNick string + // 唯一流水号,字母+数字组合 + _serial string + // 流量 + _flow string + // 购物送 + _reason string + // 设置true为始终发送成功 + _always string +} + +// 初始化AlibabaAliqinFlowWalletSendFlowAPIRequest对象 +func NewAlibabaAliqinFlowWalletSendFlowRequest() *AlibabaAliqinFlowWalletSendFlowAPIRequest{ + return &AlibabaAliqinFlowWalletSendFlowAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFlowWalletSendFlowAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.flow.wallet.send.flow" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFlowWalletSendFlowAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BuyerNick Setter +// 混淆用户名 +func (r *AlibabaAliqinFlowWalletSendFlowAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r AlibabaAliqinFlowWalletSendFlowAPIRequest) GetBuyerNick() string { + return r._buyerNick +} +// RealNick Setter +// 真实用户名称,如果填写这个字段,buyer_nick失效 +func (r *AlibabaAliqinFlowWalletSendFlowAPIRequest) SetRealNick(_realNick string) error { + r._realNick = _realNick + r.Set("real_nick", _realNick) + return nil +} + +// RealNick Getter +func (r AlibabaAliqinFlowWalletSendFlowAPIRequest) GetRealNick() string { + return r._realNick +} +// Serial Setter +// 唯一流水号,字母+数字组合 +func (r *AlibabaAliqinFlowWalletSendFlowAPIRequest) SetSerial(_serial string) error { + r._serial = _serial + r.Set("serial", _serial) + return nil +} + +// Serial Getter +func (r AlibabaAliqinFlowWalletSendFlowAPIRequest) GetSerial() string { + return r._serial +} +// Flow Setter +// 流量 +func (r *AlibabaAliqinFlowWalletSendFlowAPIRequest) SetFlow(_flow string) error { + r._flow = _flow + r.Set("flow", _flow) + return nil +} + +// Flow Getter +func (r AlibabaAliqinFlowWalletSendFlowAPIRequest) GetFlow() string { + return r._flow +} +// Reason Setter +// 购物送 +func (r *AlibabaAliqinFlowWalletSendFlowAPIRequest) SetReason(_reason string) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r AlibabaAliqinFlowWalletSendFlowAPIRequest) GetReason() string { + return r._reason +} +// Always Setter +// 设置true为始终发送成功 +func (r *AlibabaAliqinFlowWalletSendFlowAPIRequest) SetAlways(_always string) error { + r._always = _always + r.Set("always", _always) + return nil +} + +// Always Getter +func (r AlibabaAliqinFlowWalletSendFlowAPIRequest) GetAlways() string { + return r._always +} diff --git a/model/alicom/AlibabaAliqinFlowWalletSendFlowAPIResponse.go b/model/alicom/AlibabaAliqinFlowWalletSendFlowAPIResponse.go new file mode 100644 index 0000000000..8b86b76804 --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowWalletSendFlowAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +流量发放 API返回值 +alibaba.aliqin.flow.wallet.send.flow + +阿里通信流量下发功能,允许用户补发 +*/ +type AlibabaAliqinFlowWalletSendFlowAPIResponse struct { + model.CommonResponse + AlibabaAliqinFlowWalletSendFlowAPIResponseModel +} + +// 流量发放 成功返回结果 +type AlibabaAliqinFlowWalletSendFlowAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_flow_wallet_send_flow_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true为成功 + Value string `json:"value,omitempty" xml:"value,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinFlowWalletSendFlowResponse.go b/model/alicom/AlibabaAliqinFlowWalletSendFlowResponse.go deleted file mode 100644 index e63f08c745..0000000000 --- a/model/alicom/AlibabaAliqinFlowWalletSendFlowResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -流量发放 API返回值 -alibaba.aliqin.flow.wallet.send.flow - -阿里通信流量下发功能,允许用户补发 -*/ -type AlibabaAliqinFlowWalletSendFlowAPIResponse struct { - model.CommonResponse - AlibabaAliqinFlowWalletSendFlowResponse -} - -// 流量发放 成功返回结果 -type AlibabaAliqinFlowWalletSendFlowResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_flow_wallet_send_flow_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true为成功 - Value string `json:"value,omitempty" xml:"value,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinFlowWalletSignAPIRequest.go b/model/alicom/AlibabaAliqinFlowWalletSignAPIRequest.go new file mode 100644 index 0000000000..c1fe9844ea --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowWalletSignAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +流量平台用户签约情况查询 API请求 +alibaba.aliqin.flow.wallet.sign + +流量平台用户签约情况查询 +*/ +type AlibabaAliqinFlowWalletSignAPIRequest struct { + model.Params + // 用户昵称 + _userNick string +} + +// 初始化AlibabaAliqinFlowWalletSignAPIRequest对象 +func NewAlibabaAliqinFlowWalletSignRequest() *AlibabaAliqinFlowWalletSignAPIRequest{ + return &AlibabaAliqinFlowWalletSignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFlowWalletSignAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.flow.wallet.sign" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFlowWalletSignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserNick Setter +// 用户昵称 +func (r *AlibabaAliqinFlowWalletSignAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r AlibabaAliqinFlowWalletSignAPIRequest) GetUserNick() string { + return r._userNick +} diff --git a/model/alicom/AlibabaAliqinFlowWalletSignAPIResponse.go b/model/alicom/AlibabaAliqinFlowWalletSignAPIResponse.go new file mode 100644 index 0000000000..b9c484eef9 --- /dev/null +++ b/model/alicom/AlibabaAliqinFlowWalletSignAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +流量平台用户签约情况查询 API返回值 +alibaba.aliqin.flow.wallet.sign + +流量平台用户签约情况查询 +*/ +type AlibabaAliqinFlowWalletSignAPIResponse struct { + model.CommonResponse + AlibabaAliqinFlowWalletSignAPIResponseModel +} + +// 流量平台用户签约情况查询 成功返回结果 +type AlibabaAliqinFlowWalletSignAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_flow_wallet_sign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Value string `json:"value,omitempty" xml:"value,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinFlowWalletSignResponse.go b/model/alicom/AlibabaAliqinFlowWalletSignResponse.go deleted file mode 100644 index 6473e05d19..0000000000 --- a/model/alicom/AlibabaAliqinFlowWalletSignResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -流量平台用户签约情况查询 API返回值 -alibaba.aliqin.flow.wallet.sign - -流量平台用户签约情况查询 -*/ -type AlibabaAliqinFlowWalletSignAPIResponse struct { - model.CommonResponse - AlibabaAliqinFlowWalletSignResponse -} - -// 流量平台用户签约情况查询 成功返回结果 -type AlibabaAliqinFlowWalletSignResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_flow_wallet_sign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Value string `json:"value,omitempty" xml:"value,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinOfflineCustomerAddAPIRequest.go b/model/alicom/AlibabaAliqinOfflineCustomerAddAPIRequest.go new file mode 100644 index 0000000000..a0f869afc0 --- /dev/null +++ b/model/alicom/AlibabaAliqinOfflineCustomerAddAPIRequest.go @@ -0,0 +1,192 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +系外拉新代理商增加客户经理接口 API请求 +alibaba.aliqin.offline.customer.add + +阿里通信这边维护了代理商和其对应的客户经理的关系,用于业务处理,开放该接口用于代理商将他们系统下的客户经理信息同步给我们 +*/ +type AlibabaAliqinOfflineCustomerAddAPIRequest struct { + model.Params + // 代理商id + _distributeId string + // 网点id,如果存在填写,不存在的话,填0即可;注意:如果填写了这个字段,后面的pob_name等会失效;如果为0,下面的网点名称、省份、城市必填 + _agentId string + // 网点名称 + _pobName string + // 网点所在省份 + _province string + // 网点所在城市 + _city string + // 客户经理名称 + _customerName string + // 手机号码 + _phone string + // 客户经理编码,如果没有可以不填 + _otherKey string + // json类型,Map + _ext string + // 活动编码 + _activityCode string + // token,页面获取到的参数 + _token string +} + +// 初始化AlibabaAliqinOfflineCustomerAddAPIRequest对象 +func NewAlibabaAliqinOfflineCustomerAddRequest() *AlibabaAliqinOfflineCustomerAddAPIRequest{ + return &AlibabaAliqinOfflineCustomerAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinOfflineCustomerAddAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.offline.customer.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinOfflineCustomerAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DistributeId Setter +// 代理商id +func (r *AlibabaAliqinOfflineCustomerAddAPIRequest) SetDistributeId(_distributeId string) error { + r._distributeId = _distributeId + r.Set("distribute_id", _distributeId) + return nil +} + +// DistributeId Getter +func (r AlibabaAliqinOfflineCustomerAddAPIRequest) GetDistributeId() string { + return r._distributeId +} +// AgentId Setter +// 网点id,如果存在填写,不存在的话,填0即可;注意:如果填写了这个字段,后面的pob_name等会失效;如果为0,下面的网点名称、省份、城市必填 +func (r *AlibabaAliqinOfflineCustomerAddAPIRequest) SetAgentId(_agentId string) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r AlibabaAliqinOfflineCustomerAddAPIRequest) GetAgentId() string { + return r._agentId +} +// PobName Setter +// 网点名称 +func (r *AlibabaAliqinOfflineCustomerAddAPIRequest) SetPobName(_pobName string) error { + r._pobName = _pobName + r.Set("pob_name", _pobName) + return nil +} + +// PobName Getter +func (r AlibabaAliqinOfflineCustomerAddAPIRequest) GetPobName() string { + return r._pobName +} +// Province Setter +// 网点所在省份 +func (r *AlibabaAliqinOfflineCustomerAddAPIRequest) SetProvince(_province string) error { + r._province = _province + r.Set("province", _province) + return nil +} + +// Province Getter +func (r AlibabaAliqinOfflineCustomerAddAPIRequest) GetProvince() string { + return r._province +} +// City Setter +// 网点所在城市 +func (r *AlibabaAliqinOfflineCustomerAddAPIRequest) SetCity(_city string) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r AlibabaAliqinOfflineCustomerAddAPIRequest) GetCity() string { + return r._city +} +// CustomerName Setter +// 客户经理名称 +func (r *AlibabaAliqinOfflineCustomerAddAPIRequest) SetCustomerName(_customerName string) error { + r._customerName = _customerName + r.Set("customer_name", _customerName) + return nil +} + +// CustomerName Getter +func (r AlibabaAliqinOfflineCustomerAddAPIRequest) GetCustomerName() string { + return r._customerName +} +// Phone Setter +// 手机号码 +func (r *AlibabaAliqinOfflineCustomerAddAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r AlibabaAliqinOfflineCustomerAddAPIRequest) GetPhone() string { + return r._phone +} +// OtherKey Setter +// 客户经理编码,如果没有可以不填 +func (r *AlibabaAliqinOfflineCustomerAddAPIRequest) SetOtherKey(_otherKey string) error { + r._otherKey = _otherKey + r.Set("other_key", _otherKey) + return nil +} + +// OtherKey Getter +func (r AlibabaAliqinOfflineCustomerAddAPIRequest) GetOtherKey() string { + return r._otherKey +} +// Ext Setter +// json类型,Map +func (r *AlibabaAliqinOfflineCustomerAddAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r AlibabaAliqinOfflineCustomerAddAPIRequest) GetExt() string { + return r._ext +} +// ActivityCode Setter +// 活动编码 +func (r *AlibabaAliqinOfflineCustomerAddAPIRequest) SetActivityCode(_activityCode string) error { + r._activityCode = _activityCode + r.Set("activity_code", _activityCode) + return nil +} + +// ActivityCode Getter +func (r AlibabaAliqinOfflineCustomerAddAPIRequest) GetActivityCode() string { + return r._activityCode +} +// Token Setter +// token,页面获取到的参数 +func (r *AlibabaAliqinOfflineCustomerAddAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaAliqinOfflineCustomerAddAPIRequest) GetToken() string { + return r._token +} diff --git a/model/alicom/AlibabaAliqinOfflineCustomerAddAPIResponse.go b/model/alicom/AlibabaAliqinOfflineCustomerAddAPIResponse.go new file mode 100644 index 0000000000..ad2f6c5eec --- /dev/null +++ b/model/alicom/AlibabaAliqinOfflineCustomerAddAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +系外拉新代理商增加客户经理接口 API返回值 +alibaba.aliqin.offline.customer.add + +阿里通信这边维护了代理商和其对应的客户经理的关系,用于业务处理,开放该接口用于代理商将他们系统下的客户经理信息同步给我们 +*/ +type AlibabaAliqinOfflineCustomerAddAPIResponse struct { + model.CommonResponse + AlibabaAliqinOfflineCustomerAddAPIResponseModel +} + +// 系外拉新代理商增加客户经理接口 成功返回结果 +type AlibabaAliqinOfflineCustomerAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_offline_customer_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinOfflineCustomerAddResponse.go b/model/alicom/AlibabaAliqinOfflineCustomerAddResponse.go deleted file mode 100644 index f24483c1c0..0000000000 --- a/model/alicom/AlibabaAliqinOfflineCustomerAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -系外拉新代理商增加客户经理接口 API返回值 -alibaba.aliqin.offline.customer.add - -阿里通信这边维护了代理商和其对应的客户经理的关系,用于业务处理,开放该接口用于代理商将他们系统下的客户经理信息同步给我们 -*/ -type AlibabaAliqinOfflineCustomerAddAPIResponse struct { - model.CommonResponse - AlibabaAliqinOfflineCustomerAddResponse -} - -// 系外拉新代理商增加客户经理接口 成功返回结果 -type AlibabaAliqinOfflineCustomerAddResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_offline_customer_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinTaNumberSinglecallbyttsAPIRequest.go b/model/alicom/AlibabaAliqinTaNumberSinglecallbyttsAPIRequest.go new file mode 100644 index 0000000000..e66f81386e --- /dev/null +++ b/model/alicom/AlibabaAliqinTaNumberSinglecallbyttsAPIRequest.go @@ -0,0 +1,94 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据号码tts单呼 API请求 +alibaba.aliqin.ta.number.singlecallbytts + +将语音验证码和语音通知发布至聚石塔渠道 +*/ +type AlibabaAliqinTaNumberSinglecallbyttsAPIRequest struct { + model.Params + // 被叫号码 + _calledNum string + // 显示号码 + _calledShowNum string + // tts文本模板code + _ttsCode string + // 上下文参数,tts模板含有变量的, 此参数需填写。示例:{"date":"2015年 " ,"name":"测试","extend":"回传参数"} date、name 为模板里的变量名作为key,extend为扩展信息作为回传参数的key + _params string +} + +// 初始化AlibabaAliqinTaNumberSinglecallbyttsAPIRequest对象 +func NewAlibabaAliqinTaNumberSinglecallbyttsRequest() *AlibabaAliqinTaNumberSinglecallbyttsAPIRequest{ + return &AlibabaAliqinTaNumberSinglecallbyttsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinTaNumberSinglecallbyttsAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.ta.number.singlecallbytts" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinTaNumberSinglecallbyttsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CalledNum Setter +// 被叫号码 +func (r *AlibabaAliqinTaNumberSinglecallbyttsAPIRequest) SetCalledNum(_calledNum string) error { + r._calledNum = _calledNum + r.Set("called_num", _calledNum) + return nil +} + +// CalledNum Getter +func (r AlibabaAliqinTaNumberSinglecallbyttsAPIRequest) GetCalledNum() string { + return r._calledNum +} +// CalledShowNum Setter +// 显示号码 +func (r *AlibabaAliqinTaNumberSinglecallbyttsAPIRequest) SetCalledShowNum(_calledShowNum string) error { + r._calledShowNum = _calledShowNum + r.Set("called_show_num", _calledShowNum) + return nil +} + +// CalledShowNum Getter +func (r AlibabaAliqinTaNumberSinglecallbyttsAPIRequest) GetCalledShowNum() string { + return r._calledShowNum +} +// TtsCode Setter +// tts文本模板code +func (r *AlibabaAliqinTaNumberSinglecallbyttsAPIRequest) SetTtsCode(_ttsCode string) error { + r._ttsCode = _ttsCode + r.Set("tts_code", _ttsCode) + return nil +} + +// TtsCode Getter +func (r AlibabaAliqinTaNumberSinglecallbyttsAPIRequest) GetTtsCode() string { + return r._ttsCode +} +// Params Setter +// 上下文参数,tts模板含有变量的, 此参数需填写。示例:{"date":"2015年 " ,"name":"测试","extend":"回传参数"} date、name 为模板里的变量名作为key,extend为扩展信息作为回传参数的key +func (r *AlibabaAliqinTaNumberSinglecallbyttsAPIRequest) SetParams(_params string) error { + r._params = _params + r.Set("params", _params) + return nil +} + +// Params Getter +func (r AlibabaAliqinTaNumberSinglecallbyttsAPIRequest) GetParams() string { + return r._params +} diff --git a/model/alicom/AlibabaAliqinTaNumberSinglecallbyttsAPIResponse.go b/model/alicom/AlibabaAliqinTaNumberSinglecallbyttsAPIResponse.go new file mode 100644 index 0000000000..729badfda0 --- /dev/null +++ b/model/alicom/AlibabaAliqinTaNumberSinglecallbyttsAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据号码tts单呼 API返回值 +alibaba.aliqin.ta.number.singlecallbytts + +将语音验证码和语音通知发布至聚石塔渠道 +*/ +type AlibabaAliqinTaNumberSinglecallbyttsAPIResponse struct { + model.CommonResponse + AlibabaAliqinTaNumberSinglecallbyttsAPIResponseModel +} + +// 根据号码tts单呼 成功返回结果 +type AlibabaAliqinTaNumberSinglecallbyttsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_ta_number_singlecallbytts_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAliqinTaNumberSinglecallbyttsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinTaNumberSinglecallbyttsResponse.go b/model/alicom/AlibabaAliqinTaNumberSinglecallbyttsResponse.go deleted file mode 100644 index 7ab8398aaa..0000000000 --- a/model/alicom/AlibabaAliqinTaNumberSinglecallbyttsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据号码tts单呼 API返回值 -alibaba.aliqin.ta.number.singlecallbytts - -将语音验证码和语音通知发布至聚石塔渠道 -*/ -type AlibabaAliqinTaNumberSinglecallbyttsAPIResponse struct { - model.CommonResponse - AlibabaAliqinTaNumberSinglecallbyttsResponse -} - -// 根据号码tts单呼 成功返回结果 -type AlibabaAliqinTaNumberSinglecallbyttsResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_ta_number_singlecallbytts_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAliqinTaNumberSinglecallbyttsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinTaNumberSinglecallbyvoiceAPIRequest.go b/model/alicom/AlibabaAliqinTaNumberSinglecallbyvoiceAPIRequest.go new file mode 100644 index 0000000000..78bc303b8c --- /dev/null +++ b/model/alicom/AlibabaAliqinTaNumberSinglecallbyvoiceAPIRequest.go @@ -0,0 +1,94 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据号码tts单呼 API请求 +alibaba.aliqin.ta.number.singlecallbyvoice + +根据号码语音单呼 +*/ +type AlibabaAliqinTaNumberSinglecallbyvoiceAPIRequest struct { + model.Params + // 单呼号码 + _calledNum string + // 显示号码 + _calledShowNum string + // 语音文件code + _voiceCode string + // 上下文参数 示例:{"extend":"回传参数"} extend为扩展信息作为回传参数的key + _params string +} + +// 初始化AlibabaAliqinTaNumberSinglecallbyvoiceAPIRequest对象 +func NewAlibabaAliqinTaNumberSinglecallbyvoiceRequest() *AlibabaAliqinTaNumberSinglecallbyvoiceAPIRequest{ + return &AlibabaAliqinTaNumberSinglecallbyvoiceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinTaNumberSinglecallbyvoiceAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.ta.number.singlecallbyvoice" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinTaNumberSinglecallbyvoiceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CalledNum Setter +// 单呼号码 +func (r *AlibabaAliqinTaNumberSinglecallbyvoiceAPIRequest) SetCalledNum(_calledNum string) error { + r._calledNum = _calledNum + r.Set("called_num", _calledNum) + return nil +} + +// CalledNum Getter +func (r AlibabaAliqinTaNumberSinglecallbyvoiceAPIRequest) GetCalledNum() string { + return r._calledNum +} +// CalledShowNum Setter +// 显示号码 +func (r *AlibabaAliqinTaNumberSinglecallbyvoiceAPIRequest) SetCalledShowNum(_calledShowNum string) error { + r._calledShowNum = _calledShowNum + r.Set("called_show_num", _calledShowNum) + return nil +} + +// CalledShowNum Getter +func (r AlibabaAliqinTaNumberSinglecallbyvoiceAPIRequest) GetCalledShowNum() string { + return r._calledShowNum +} +// VoiceCode Setter +// 语音文件code +func (r *AlibabaAliqinTaNumberSinglecallbyvoiceAPIRequest) SetVoiceCode(_voiceCode string) error { + r._voiceCode = _voiceCode + r.Set("voice_code", _voiceCode) + return nil +} + +// VoiceCode Getter +func (r AlibabaAliqinTaNumberSinglecallbyvoiceAPIRequest) GetVoiceCode() string { + return r._voiceCode +} +// Params Setter +// 上下文参数 示例:{"extend":"回传参数"} extend为扩展信息作为回传参数的key +func (r *AlibabaAliqinTaNumberSinglecallbyvoiceAPIRequest) SetParams(_params string) error { + r._params = _params + r.Set("params", _params) + return nil +} + +// Params Getter +func (r AlibabaAliqinTaNumberSinglecallbyvoiceAPIRequest) GetParams() string { + return r._params +} diff --git a/model/alicom/AlibabaAliqinTaNumberSinglecallbyvoiceAPIResponse.go b/model/alicom/AlibabaAliqinTaNumberSinglecallbyvoiceAPIResponse.go new file mode 100644 index 0000000000..1f40a51dc2 --- /dev/null +++ b/model/alicom/AlibabaAliqinTaNumberSinglecallbyvoiceAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据号码tts单呼 API返回值 +alibaba.aliqin.ta.number.singlecallbyvoice + +根据号码语音单呼 +*/ +type AlibabaAliqinTaNumberSinglecallbyvoiceAPIResponse struct { + model.CommonResponse + AlibabaAliqinTaNumberSinglecallbyvoiceAPIResponseModel +} + +// 根据号码tts单呼 成功返回结果 +type AlibabaAliqinTaNumberSinglecallbyvoiceAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_ta_number_singlecallbyvoice_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAliqinTaNumberSinglecallbyvoiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinTaNumberSinglecallbyvoiceResponse.go b/model/alicom/AlibabaAliqinTaNumberSinglecallbyvoiceResponse.go deleted file mode 100644 index efa4bad8b4..0000000000 --- a/model/alicom/AlibabaAliqinTaNumberSinglecallbyvoiceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据号码tts单呼 API返回值 -alibaba.aliqin.ta.number.singlecallbyvoice - -根据号码语音单呼 -*/ -type AlibabaAliqinTaNumberSinglecallbyvoiceAPIResponse struct { - model.CommonResponse - AlibabaAliqinTaNumberSinglecallbyvoiceResponse -} - -// 根据号码tts单呼 成功返回结果 -type AlibabaAliqinTaNumberSinglecallbyvoiceResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_ta_number_singlecallbyvoice_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAliqinTaNumberSinglecallbyvoiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinTaSmsNumQueryAPIRequest.go b/model/alicom/AlibabaAliqinTaSmsNumQueryAPIRequest.go new file mode 100644 index 0000000000..79204cd01b --- /dev/null +++ b/model/alicom/AlibabaAliqinTaSmsNumQueryAPIRequest.go @@ -0,0 +1,108 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +短信查询 API请求 +alibaba.aliqin.ta.sms.num.query + +查询短信发送揭露 +*/ +type AlibabaAliqinTaSmsNumQueryAPIRequest struct { + model.Params + // 短信发送流水 + _bizId string + // 短信接收号码 + _recNum string + // 短信发送日期,支持近30天记录查询,格式yyyyMMdd + _queryDate string + // 分页参数,页码 + _currentPage int64 + // 分页参数,每页数量。最大值50 + _pageSize int64 +} + +// 初始化AlibabaAliqinTaSmsNumQueryAPIRequest对象 +func NewAlibabaAliqinTaSmsNumQueryRequest() *AlibabaAliqinTaSmsNumQueryAPIRequest{ + return &AlibabaAliqinTaSmsNumQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinTaSmsNumQueryAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.ta.sms.num.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinTaSmsNumQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizId Setter +// 短信发送流水 +func (r *AlibabaAliqinTaSmsNumQueryAPIRequest) SetBizId(_bizId string) error { + r._bizId = _bizId + r.Set("biz_id", _bizId) + return nil +} + +// BizId Getter +func (r AlibabaAliqinTaSmsNumQueryAPIRequest) GetBizId() string { + return r._bizId +} +// RecNum Setter +// 短信接收号码 +func (r *AlibabaAliqinTaSmsNumQueryAPIRequest) SetRecNum(_recNum string) error { + r._recNum = _recNum + r.Set("rec_num", _recNum) + return nil +} + +// RecNum Getter +func (r AlibabaAliqinTaSmsNumQueryAPIRequest) GetRecNum() string { + return r._recNum +} +// QueryDate Setter +// 短信发送日期,支持近30天记录查询,格式yyyyMMdd +func (r *AlibabaAliqinTaSmsNumQueryAPIRequest) SetQueryDate(_queryDate string) error { + r._queryDate = _queryDate + r.Set("query_date", _queryDate) + return nil +} + +// QueryDate Getter +func (r AlibabaAliqinTaSmsNumQueryAPIRequest) GetQueryDate() string { + return r._queryDate +} +// CurrentPage Setter +// 分页参数,页码 +func (r *AlibabaAliqinTaSmsNumQueryAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AlibabaAliqinTaSmsNumQueryAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// PageSize Setter +// 分页参数,每页数量。最大值50 +func (r *AlibabaAliqinTaSmsNumQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAliqinTaSmsNumQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/alicom/AlibabaAliqinTaSmsNumQueryAPIResponse.go b/model/alicom/AlibabaAliqinTaSmsNumQueryAPIResponse.go new file mode 100644 index 0000000000..add2cdcb83 --- /dev/null +++ b/model/alicom/AlibabaAliqinTaSmsNumQueryAPIResponse.go @@ -0,0 +1,35 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +短信查询 API返回值 +alibaba.aliqin.ta.sms.num.query + +查询短信发送揭露 +*/ +type AlibabaAliqinTaSmsNumQueryAPIResponse struct { + model.CommonResponse + AlibabaAliqinTaSmsNumQueryAPIResponseModel +} + +// 短信查询 成功返回结果 +type AlibabaAliqinTaSmsNumQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_ta_sms_num_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 当前页码 + CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"` + // 每页数量 + PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` + // 总量 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 总页数 + TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` + // 1 + Values []FcPartnerSmsDetailDto `json:"values,omitempty" xml:"values>fc_partner_sms_detail_dto,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinTaSmsNumQueryResponse.go b/model/alicom/AlibabaAliqinTaSmsNumQueryResponse.go deleted file mode 100644 index 4cb4dc7ccf..0000000000 --- a/model/alicom/AlibabaAliqinTaSmsNumQueryResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -短信查询 API返回值 -alibaba.aliqin.ta.sms.num.query - -查询短信发送揭露 -*/ -type AlibabaAliqinTaSmsNumQueryAPIResponse struct { - model.CommonResponse - AlibabaAliqinTaSmsNumQueryResponse -} - -// 短信查询 成功返回结果 -type AlibabaAliqinTaSmsNumQueryResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_ta_sms_num_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 当前页码 - CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"` - // 每页数量 - PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` - // 总量 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 总页数 - TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` - // 1 - Values []FcPartnerSmsDetailDto `json:"values,omitempty" xml:"values>fc_partner_sms_detail_dto,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinTaSmsNumSendAPIRequest.go b/model/alicom/AlibabaAliqinTaSmsNumSendAPIRequest.go new file mode 100644 index 0000000000..6d7c15106f --- /dev/null +++ b/model/alicom/AlibabaAliqinTaSmsNumSendAPIRequest.go @@ -0,0 +1,150 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +短信发送 API请求 +alibaba.aliqin.ta.sms.num.send + +短信发送 +*/ +type AlibabaAliqinTaSmsNumSendAPIRequest struct { + model.Params + // 公共回传参数 + _extend string + // 类型,normal:短信 + _smsType string + // 短信签名 + _smsFreeSignName string + // 短信模板变量,AckNum是变量参数 + _smsParam string + // 接收号码 + _recNum string + // 短信模板CODE + _smsTemplateCode string + // 商家自定义扩展码 + _extendCode string + // 商家自定义扩展名,例如店铺nick + _extendName string +} + +// 初始化AlibabaAliqinTaSmsNumSendAPIRequest对象 +func NewAlibabaAliqinTaSmsNumSendRequest() *AlibabaAliqinTaSmsNumSendAPIRequest{ + return &AlibabaAliqinTaSmsNumSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinTaSmsNumSendAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.ta.sms.num.send" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinTaSmsNumSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Extend Setter +// 公共回传参数 +func (r *AlibabaAliqinTaSmsNumSendAPIRequest) SetExtend(_extend string) error { + r._extend = _extend + r.Set("extend", _extend) + return nil +} + +// Extend Getter +func (r AlibabaAliqinTaSmsNumSendAPIRequest) GetExtend() string { + return r._extend +} +// SmsType Setter +// 类型,normal:短信 +func (r *AlibabaAliqinTaSmsNumSendAPIRequest) SetSmsType(_smsType string) error { + r._smsType = _smsType + r.Set("sms_type", _smsType) + return nil +} + +// SmsType Getter +func (r AlibabaAliqinTaSmsNumSendAPIRequest) GetSmsType() string { + return r._smsType +} +// SmsFreeSignName Setter +// 短信签名 +func (r *AlibabaAliqinTaSmsNumSendAPIRequest) SetSmsFreeSignName(_smsFreeSignName string) error { + r._smsFreeSignName = _smsFreeSignName + r.Set("sms_free_sign_name", _smsFreeSignName) + return nil +} + +// SmsFreeSignName Getter +func (r AlibabaAliqinTaSmsNumSendAPIRequest) GetSmsFreeSignName() string { + return r._smsFreeSignName +} +// SmsParam Setter +// 短信模板变量,AckNum是变量参数 +func (r *AlibabaAliqinTaSmsNumSendAPIRequest) SetSmsParam(_smsParam string) error { + r._smsParam = _smsParam + r.Set("sms_param", _smsParam) + return nil +} + +// SmsParam Getter +func (r AlibabaAliqinTaSmsNumSendAPIRequest) GetSmsParam() string { + return r._smsParam +} +// RecNum Setter +// 接收号码 +func (r *AlibabaAliqinTaSmsNumSendAPIRequest) SetRecNum(_recNum string) error { + r._recNum = _recNum + r.Set("rec_num", _recNum) + return nil +} + +// RecNum Getter +func (r AlibabaAliqinTaSmsNumSendAPIRequest) GetRecNum() string { + return r._recNum +} +// SmsTemplateCode Setter +// 短信模板CODE +func (r *AlibabaAliqinTaSmsNumSendAPIRequest) SetSmsTemplateCode(_smsTemplateCode string) error { + r._smsTemplateCode = _smsTemplateCode + r.Set("sms_template_code", _smsTemplateCode) + return nil +} + +// SmsTemplateCode Getter +func (r AlibabaAliqinTaSmsNumSendAPIRequest) GetSmsTemplateCode() string { + return r._smsTemplateCode +} +// ExtendCode Setter +// 商家自定义扩展码 +func (r *AlibabaAliqinTaSmsNumSendAPIRequest) SetExtendCode(_extendCode string) error { + r._extendCode = _extendCode + r.Set("extend_code", _extendCode) + return nil +} + +// ExtendCode Getter +func (r AlibabaAliqinTaSmsNumSendAPIRequest) GetExtendCode() string { + return r._extendCode +} +// ExtendName Setter +// 商家自定义扩展名,例如店铺nick +func (r *AlibabaAliqinTaSmsNumSendAPIRequest) SetExtendName(_extendName string) error { + r._extendName = _extendName + r.Set("extend_name", _extendName) + return nil +} + +// ExtendName Getter +func (r AlibabaAliqinTaSmsNumSendAPIRequest) GetExtendName() string { + return r._extendName +} diff --git a/model/alicom/AlibabaAliqinTaSmsNumSendAPIResponse.go b/model/alicom/AlibabaAliqinTaSmsNumSendAPIResponse.go new file mode 100644 index 0000000000..916383bd37 --- /dev/null +++ b/model/alicom/AlibabaAliqinTaSmsNumSendAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +短信发送 API返回值 +alibaba.aliqin.ta.sms.num.send + +短信发送 +*/ +type AlibabaAliqinTaSmsNumSendAPIResponse struct { + model.CommonResponse + AlibabaAliqinTaSmsNumSendAPIResponseModel +} + +// 短信发送 成功返回结果 +type AlibabaAliqinTaSmsNumSendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_ta_sms_num_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaAliqinTaSmsNumSendBizResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinTaSmsNumSendResponse.go b/model/alicom/AlibabaAliqinTaSmsNumSendResponse.go deleted file mode 100644 index 17ef7e1d56..0000000000 --- a/model/alicom/AlibabaAliqinTaSmsNumSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -短信发送 API返回值 -alibaba.aliqin.ta.sms.num.send - -短信发送 -*/ -type AlibabaAliqinTaSmsNumSendAPIResponse struct { - model.CommonResponse - AlibabaAliqinTaSmsNumSendResponse -} - -// 短信发送 成功返回结果 -type AlibabaAliqinTaSmsNumSendResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_ta_sms_num_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaAliqinTaSmsNumSendBizResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinTaVoiceNumDoublecallAPIRequest.go b/model/alicom/AlibabaAliqinTaVoiceNumDoublecallAPIRequest.go new file mode 100644 index 0000000000..819bfd00a6 --- /dev/null +++ b/model/alicom/AlibabaAliqinTaVoiceNumDoublecallAPIRequest.go @@ -0,0 +1,122 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔语音双呼接口 API请求 +alibaba.aliqin.ta.voice.num.doublecall + +根据传入的主叫号码与被叫号码,由系统依次向主叫号码与被叫号码发起呼叫,双方都应答后,开始一对一通话并开始计费。使用前需要在阿里大于管理中心添加呼叫双方的显示号码。 +*/ +type AlibabaAliqinTaVoiceNumDoublecallAPIRequest struct { + model.Params + // 通话超时时长,如接通后到达120秒时,通话会因为超时自动挂断。若无需设置超时时长,可不传。 + _sessionTimeOut string + // 公共回传参数,在“消息返回”中会透传回该参数;举例:用户可以传入自己下级的会员ID,在消息返回时,该会员ID会包含在内,用户可以根据该会员ID识别是哪位会员使用了你的应用 + _extend string + // 主叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500 + _callerNum string + // 主叫号码侧的号码显示,传入的显示号码必须是阿里大于“管理中心-号码管理”中申请通过的号码。显示号码格式如下057188773344,4001112222,95500 + _callerShowNum string + // 被叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500 + _calledNum string + // 被叫号码侧的号码显示,传入的显示号码可以是阿里大于“管理中心-号码管理”中申请通过的号码。显示号码格式如下057188773344,4001112222,95500。显示号码也可以为主叫号码。 + _calledShowNum string +} + +// 初始化AlibabaAliqinTaVoiceNumDoublecallAPIRequest对象 +func NewAlibabaAliqinTaVoiceNumDoublecallRequest() *AlibabaAliqinTaVoiceNumDoublecallAPIRequest{ + return &AlibabaAliqinTaVoiceNumDoublecallAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinTaVoiceNumDoublecallAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.ta.voice.num.doublecall" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinTaVoiceNumDoublecallAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SessionTimeOut Setter +// 通话超时时长,如接通后到达120秒时,通话会因为超时自动挂断。若无需设置超时时长,可不传。 +func (r *AlibabaAliqinTaVoiceNumDoublecallAPIRequest) SetSessionTimeOut(_sessionTimeOut string) error { + r._sessionTimeOut = _sessionTimeOut + r.Set("session_time_out", _sessionTimeOut) + return nil +} + +// SessionTimeOut Getter +func (r AlibabaAliqinTaVoiceNumDoublecallAPIRequest) GetSessionTimeOut() string { + return r._sessionTimeOut +} +// Extend Setter +// 公共回传参数,在“消息返回”中会透传回该参数;举例:用户可以传入自己下级的会员ID,在消息返回时,该会员ID会包含在内,用户可以根据该会员ID识别是哪位会员使用了你的应用 +func (r *AlibabaAliqinTaVoiceNumDoublecallAPIRequest) SetExtend(_extend string) error { + r._extend = _extend + r.Set("extend", _extend) + return nil +} + +// Extend Getter +func (r AlibabaAliqinTaVoiceNumDoublecallAPIRequest) GetExtend() string { + return r._extend +} +// CallerNum Setter +// 主叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500 +func (r *AlibabaAliqinTaVoiceNumDoublecallAPIRequest) SetCallerNum(_callerNum string) error { + r._callerNum = _callerNum + r.Set("caller_num", _callerNum) + return nil +} + +// CallerNum Getter +func (r AlibabaAliqinTaVoiceNumDoublecallAPIRequest) GetCallerNum() string { + return r._callerNum +} +// CallerShowNum Setter +// 主叫号码侧的号码显示,传入的显示号码必须是阿里大于“管理中心-号码管理”中申请通过的号码。显示号码格式如下057188773344,4001112222,95500 +func (r *AlibabaAliqinTaVoiceNumDoublecallAPIRequest) SetCallerShowNum(_callerShowNum string) error { + r._callerShowNum = _callerShowNum + r.Set("caller_show_num", _callerShowNum) + return nil +} + +// CallerShowNum Getter +func (r AlibabaAliqinTaVoiceNumDoublecallAPIRequest) GetCallerShowNum() string { + return r._callerShowNum +} +// CalledNum Setter +// 被叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500 +func (r *AlibabaAliqinTaVoiceNumDoublecallAPIRequest) SetCalledNum(_calledNum string) error { + r._calledNum = _calledNum + r.Set("called_num", _calledNum) + return nil +} + +// CalledNum Getter +func (r AlibabaAliqinTaVoiceNumDoublecallAPIRequest) GetCalledNum() string { + return r._calledNum +} +// CalledShowNum Setter +// 被叫号码侧的号码显示,传入的显示号码可以是阿里大于“管理中心-号码管理”中申请通过的号码。显示号码格式如下057188773344,4001112222,95500。显示号码也可以为主叫号码。 +func (r *AlibabaAliqinTaVoiceNumDoublecallAPIRequest) SetCalledShowNum(_calledShowNum string) error { + r._calledShowNum = _calledShowNum + r.Set("called_show_num", _calledShowNum) + return nil +} + +// CalledShowNum Getter +func (r AlibabaAliqinTaVoiceNumDoublecallAPIRequest) GetCalledShowNum() string { + return r._calledShowNum +} diff --git a/model/alicom/AlibabaAliqinTaVoiceNumDoublecallAPIResponse.go b/model/alicom/AlibabaAliqinTaVoiceNumDoublecallAPIResponse.go new file mode 100644 index 0000000000..8575dc8706 --- /dev/null +++ b/model/alicom/AlibabaAliqinTaVoiceNumDoublecallAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔语音双呼接口 API返回值 +alibaba.aliqin.ta.voice.num.doublecall + +根据传入的主叫号码与被叫号码,由系统依次向主叫号码与被叫号码发起呼叫,双方都应答后,开始一对一通话并开始计费。使用前需要在阿里大于管理中心添加呼叫双方的显示号码。 +*/ +type AlibabaAliqinTaVoiceNumDoublecallAPIResponse struct { + model.CommonResponse + AlibabaAliqinTaVoiceNumDoublecallAPIResponseModel +} + +// 聚石塔语音双呼接口 成功返回结果 +type AlibabaAliqinTaVoiceNumDoublecallAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_ta_voice_num_doublecall_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回参数 + Result *AlibabaAliqinTaVoiceNumDoublecallBizResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinTaVoiceNumDoublecallResponse.go b/model/alicom/AlibabaAliqinTaVoiceNumDoublecallResponse.go deleted file mode 100644 index e048da4234..0000000000 --- a/model/alicom/AlibabaAliqinTaVoiceNumDoublecallResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚石塔语音双呼接口 API返回值 -alibaba.aliqin.ta.voice.num.doublecall - -根据传入的主叫号码与被叫号码,由系统依次向主叫号码与被叫号码发起呼叫,双方都应答后,开始一对一通话并开始计费。使用前需要在阿里大于管理中心添加呼叫双方的显示号码。 -*/ -type AlibabaAliqinTaVoiceNumDoublecallAPIResponse struct { - model.CommonResponse - AlibabaAliqinTaVoiceNumDoublecallResponse -} - -// 聚石塔语音双呼接口 成功返回结果 -type AlibabaAliqinTaVoiceNumDoublecallResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_ta_voice_num_doublecall_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回参数 - Result *AlibabaAliqinTaVoiceNumDoublecallBizResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaAliqinTccTradeIdentityGetAPIRequest.go b/model/alicom/AlibabaAliqinTccTradeIdentityGetAPIRequest.go new file mode 100644 index 0000000000..920f8a0894 --- /dev/null +++ b/model/alicom/AlibabaAliqinTccTradeIdentityGetAPIRequest.go @@ -0,0 +1,66 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +运营商获得用户身份信息 API请求 +alibaba.aliqin.tcc.trade.identity.get + +天猫网厅运营商官方旗舰店获取用户身份信息 +*/ +type AlibabaAliqinTccTradeIdentityGetAPIRequest struct { + model.Params + // 订单编号 + _bizOrderId int64 + // 店铺名称 + _sellerNick string +} + +// 初始化AlibabaAliqinTccTradeIdentityGetAPIRequest对象 +func NewAlibabaAliqinTccTradeIdentityGetRequest() *AlibabaAliqinTccTradeIdentityGetAPIRequest{ + return &AlibabaAliqinTccTradeIdentityGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinTccTradeIdentityGetAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.tcc.trade.identity.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinTccTradeIdentityGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizOrderId Setter +// 订单编号 +func (r *AlibabaAliqinTccTradeIdentityGetAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r AlibabaAliqinTccTradeIdentityGetAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} +// SellerNick Setter +// 店铺名称 +func (r *AlibabaAliqinTccTradeIdentityGetAPIRequest) SetSellerNick(_sellerNick string) error { + r._sellerNick = _sellerNick + r.Set("seller_nick", _sellerNick) + return nil +} + +// SellerNick Getter +func (r AlibabaAliqinTccTradeIdentityGetAPIRequest) GetSellerNick() string { + return r._sellerNick +} diff --git a/model/alicom/AlibabaAliqinTccTradeIdentityGetAPIResponse.go b/model/alicom/AlibabaAliqinTccTradeIdentityGetAPIResponse.go new file mode 100644 index 0000000000..0eb2f942e0 --- /dev/null +++ b/model/alicom/AlibabaAliqinTccTradeIdentityGetAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +运营商获得用户身份信息 API返回值 +alibaba.aliqin.tcc.trade.identity.get + +天猫网厅运营商官方旗舰店获取用户身份信息 +*/ +type AlibabaAliqinTccTradeIdentityGetAPIResponse struct { + model.CommonResponse + AlibabaAliqinTccTradeIdentityGetAPIResponseModel +} + +// 运营商获得用户身份信息 成功返回结果 +type AlibabaAliqinTccTradeIdentityGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_tcc_trade_identity_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回身份信息 + Result *IdentityInfo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAliqinTccTradeIdentityGetResponse.go b/model/alicom/AlibabaAliqinTccTradeIdentityGetResponse.go deleted file mode 100644 index bba342e125..0000000000 --- a/model/alicom/AlibabaAliqinTccTradeIdentityGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -运营商获得用户身份信息 API返回值 -alibaba.aliqin.tcc.trade.identity.get - -天猫网厅运营商官方旗舰店获取用户身份信息 -*/ -type AlibabaAliqinTccTradeIdentityGetAPIResponse struct { - model.CommonResponse - AlibabaAliqinTccTradeIdentityGetResponse -} - -// 运营商获得用户身份信息 成功返回结果 -type AlibabaAliqinTccTradeIdentityGetResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_tcc_trade_identity_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回身份信息 - Result *IdentityInfo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaAlitjOrderRealnamecardInfoSubmitAPIRequest.go b/model/alicom/AlibabaAlitjOrderRealnamecardInfoSubmitAPIRequest.go new file mode 100644 index 0000000000..2528bbf1d6 --- /dev/null +++ b/model/alicom/AlibabaAlitjOrderRealnamecardInfoSubmitAPIRequest.go @@ -0,0 +1,66 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里实人认证卡片信息回传 API请求 +alibaba.alitj.order.realnamecard.info.submit + +阿里实人认证卡片信息回传。ISP相关商家在线对接阿里通信的实人认证功能,在线提交订单对应运营商的合约订购相关信息,以便完成在线使用实人认证功能。 +*/ +type AlibabaAlitjOrderRealnamecardInfoSubmitAPIRequest struct { + model.Params + // 淘宝订单号 + _orderNo int64 + // sim卡iccid(一般为18位到20位) + _iccid string +} + +// 初始化AlibabaAlitjOrderRealnamecardInfoSubmitAPIRequest对象 +func NewAlibabaAlitjOrderRealnamecardInfoSubmitRequest() *AlibabaAlitjOrderRealnamecardInfoSubmitAPIRequest{ + return &AlibabaAlitjOrderRealnamecardInfoSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlitjOrderRealnamecardInfoSubmitAPIRequest) GetApiMethodName() string { + return "alibaba.alitj.order.realnamecard.info.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlitjOrderRealnamecardInfoSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderNo Setter +// 淘宝订单号 +func (r *AlibabaAlitjOrderRealnamecardInfoSubmitAPIRequest) SetOrderNo(_orderNo int64) error { + r._orderNo = _orderNo + r.Set("order_no", _orderNo) + return nil +} + +// OrderNo Getter +func (r AlibabaAlitjOrderRealnamecardInfoSubmitAPIRequest) GetOrderNo() int64 { + return r._orderNo +} +// Iccid Setter +// sim卡iccid(一般为18位到20位) +func (r *AlibabaAlitjOrderRealnamecardInfoSubmitAPIRequest) SetIccid(_iccid string) error { + r._iccid = _iccid + r.Set("iccid", _iccid) + return nil +} + +// Iccid Getter +func (r AlibabaAlitjOrderRealnamecardInfoSubmitAPIRequest) GetIccid() string { + return r._iccid +} diff --git a/model/alicom/AlibabaAlitjOrderRealnamecardInfoSubmitAPIResponse.go b/model/alicom/AlibabaAlitjOrderRealnamecardInfoSubmitAPIResponse.go new file mode 100644 index 0000000000..7dce7455db --- /dev/null +++ b/model/alicom/AlibabaAlitjOrderRealnamecardInfoSubmitAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里实人认证卡片信息回传 API返回值 +alibaba.alitj.order.realnamecard.info.submit + +阿里实人认证卡片信息回传。ISP相关商家在线对接阿里通信的实人认证功能,在线提交订单对应运营商的合约订购相关信息,以便完成在线使用实人认证功能。 +*/ +type AlibabaAlitjOrderRealnamecardInfoSubmitAPIResponse struct { + model.CommonResponse + AlibabaAlitjOrderRealnamecardInfoSubmitAPIResponseModel +} + +// 阿里实人认证卡片信息回传 成功返回结果 +type AlibabaAlitjOrderRealnamecardInfoSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alitj_order_realnamecard_info_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaAlitjOrderRealnamecardInfoSubmitResponse.go b/model/alicom/AlibabaAlitjOrderRealnamecardInfoSubmitResponse.go deleted file mode 100644 index 2bcc1b32dc..0000000000 --- a/model/alicom/AlibabaAlitjOrderRealnamecardInfoSubmitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里实人认证卡片信息回传 API返回值 -alibaba.alitj.order.realnamecard.info.submit - -阿里实人认证卡片信息回传。ISP相关商家在线对接阿里通信的实人认证功能,在线提交订单对应运营商的合约订购相关信息,以便完成在线使用实人认证功能。 -*/ -type AlibabaAlitjOrderRealnamecardInfoSubmitAPIResponse struct { - model.CommonResponse - AlibabaAlitjOrderRealnamecardInfoSubmitResponse -} - -// 阿里实人认证卡片信息回传 成功返回结果 -type AlibabaAlitjOrderRealnamecardInfoSubmitResponse struct { - XMLName xml.Name `xml:"alibaba_alitj_order_realnamecard_info_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaBaseOrderSupplierNotifyAPIRequest.go b/model/alicom/AlibabaBaseOrderSupplierNotifyAPIRequest.go new file mode 100644 index 0000000000..348eb31c81 --- /dev/null +++ b/model/alicom/AlibabaBaseOrderSupplierNotifyAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里通信运营商信息回传 API请求 +alibaba.base.order.supplier.notify + +接收阿里通信流量运营商信息回传 +*/ +type AlibabaBaseOrderSupplierNotifyAPIRequest struct { + model.Params + // 入参对象 + _paramFlowSuppllierNotifyModel *FlowSuppllierNotifyModel +} + +// 初始化AlibabaBaseOrderSupplierNotifyAPIRequest对象 +func NewAlibabaBaseOrderSupplierNotifyRequest() *AlibabaBaseOrderSupplierNotifyAPIRequest{ + return &AlibabaBaseOrderSupplierNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaBaseOrderSupplierNotifyAPIRequest) GetApiMethodName() string { + return "alibaba.base.order.supplier.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaBaseOrderSupplierNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamFlowSuppllierNotifyModel Setter +// 入参对象 +func (r *AlibabaBaseOrderSupplierNotifyAPIRequest) SetParamFlowSuppllierNotifyModel(_paramFlowSuppllierNotifyModel *FlowSuppllierNotifyModel) error { + r._paramFlowSuppllierNotifyModel = _paramFlowSuppllierNotifyModel + r.Set("param_flow_suppllier_notify_model", _paramFlowSuppllierNotifyModel) + return nil +} + +// ParamFlowSuppllierNotifyModel Getter +func (r AlibabaBaseOrderSupplierNotifyAPIRequest) GetParamFlowSuppllierNotifyModel() *FlowSuppllierNotifyModel { + return r._paramFlowSuppllierNotifyModel +} diff --git a/model/alicom/AlibabaBaseOrderSupplierNotifyAPIResponse.go b/model/alicom/AlibabaBaseOrderSupplierNotifyAPIResponse.go new file mode 100644 index 0000000000..4e0b684e9e --- /dev/null +++ b/model/alicom/AlibabaBaseOrderSupplierNotifyAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里通信运营商信息回传 API返回值 +alibaba.base.order.supplier.notify + +接收阿里通信流量运营商信息回传 +*/ +type AlibabaBaseOrderSupplierNotifyAPIResponse struct { + model.CommonResponse + AlibabaBaseOrderSupplierNotifyAPIResponseModel +} + +// 阿里通信运营商信息回传 成功返回结果 +type AlibabaBaseOrderSupplierNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_base_order_supplier_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaBaseOrderSupplierNotifyResponse.go b/model/alicom/AlibabaBaseOrderSupplierNotifyResponse.go deleted file mode 100644 index 867ec43d29..0000000000 --- a/model/alicom/AlibabaBaseOrderSupplierNotifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里通信运营商信息回传 API返回值 -alibaba.base.order.supplier.notify - -接收阿里通信流量运营商信息回传 -*/ -type AlibabaBaseOrderSupplierNotifyAPIResponse struct { - model.CommonResponse - AlibabaBaseOrderSupplierNotifyResponse -} - -// 阿里通信运营商信息回传 成功返回结果 -type AlibabaBaseOrderSupplierNotifyResponse struct { - XMLName xml.Name `xml:"alibaba_base_order_supplier_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaChongzhiQueryecardsAPIRequest.go b/model/alicom/AlibabaChongzhiQueryecardsAPIRequest.go new file mode 100644 index 0000000000..73b3172057 --- /dev/null +++ b/model/alicom/AlibabaChongzhiQueryecardsAPIRequest.go @@ -0,0 +1,66 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询指定商家的可用的话费宝贝接口 API请求 +alibaba.chongzhi.queryecards + +查询指定商家的可用的话费宝贝 +*/ +type AlibabaChongzhiQueryecardsAPIRequest struct { + model.Params + // 号码 + _mobile int64 + // 来源 + _clientSource string +} + +// 初始化AlibabaChongzhiQueryecardsAPIRequest对象 +func NewAlibabaChongzhiQueryecardsRequest() *AlibabaChongzhiQueryecardsAPIRequest{ + return &AlibabaChongzhiQueryecardsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaChongzhiQueryecardsAPIRequest) GetApiMethodName() string { + return "alibaba.chongzhi.queryecards" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaChongzhiQueryecardsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Mobile Setter +// 号码 +func (r *AlibabaChongzhiQueryecardsAPIRequest) SetMobile(_mobile int64) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r AlibabaChongzhiQueryecardsAPIRequest) GetMobile() int64 { + return r._mobile +} +// ClientSource Setter +// 来源 +func (r *AlibabaChongzhiQueryecardsAPIRequest) SetClientSource(_clientSource string) error { + r._clientSource = _clientSource + r.Set("client_source", _clientSource) + return nil +} + +// ClientSource Getter +func (r AlibabaChongzhiQueryecardsAPIRequest) GetClientSource() string { + return r._clientSource +} diff --git a/model/alicom/AlibabaChongzhiQueryecardsAPIResponse.go b/model/alicom/AlibabaChongzhiQueryecardsAPIResponse.go new file mode 100644 index 0000000000..1f10b46c2a --- /dev/null +++ b/model/alicom/AlibabaChongzhiQueryecardsAPIResponse.go @@ -0,0 +1,33 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询指定商家的可用的话费宝贝接口 API返回值 +alibaba.chongzhi.queryecards + +查询指定商家的可用的话费宝贝 +*/ +type AlibabaChongzhiQueryecardsAPIResponse struct { + model.CommonResponse + AlibabaChongzhiQueryecardsAPIResponseModel +} + +// 查询指定商家的可用的话费宝贝接口 成功返回结果 +type AlibabaChongzhiQueryecardsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_chongzhi_queryecards_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` + // desc + Desc string `json:"desc,omitempty" xml:"desc,omitempty"` + // 订单列表 + EcardList []EcardItemDo `json:"ecard_list,omitempty" xml:"ecard_list>ecard_item_do,omitempty"` + // MtsInfoDo + CatInfo *MtsInfoDo `json:"cat_info,omitempty" xml:"cat_info,omitempty"` +} diff --git a/model/alicom/AlibabaChongzhiQueryecardsResponse.go b/model/alicom/AlibabaChongzhiQueryecardsResponse.go deleted file mode 100644 index a927c4b1b5..0000000000 --- a/model/alicom/AlibabaChongzhiQueryecardsResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询指定商家的可用的话费宝贝接口 API返回值 -alibaba.chongzhi.queryecards - -查询指定商家的可用的话费宝贝 -*/ -type AlibabaChongzhiQueryecardsAPIResponse struct { - model.CommonResponse - AlibabaChongzhiQueryecardsResponse -} - -// 查询指定商家的可用的话费宝贝接口 成功返回结果 -type AlibabaChongzhiQueryecardsResponse struct { - XMLName xml.Name `xml:"alibaba_chongzhi_queryecards_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` - // desc - Desc string `json:"desc,omitempty" xml:"desc,omitempty"` - // 订单列表 - EcardList []EcardItemDo `json:"ecard_list,omitempty" xml:"ecard_list>ecard_item_do,omitempty"` - // MtsInfoDo - CatInfo *MtsInfoDo `json:"cat_info,omitempty" xml:"cat_info,omitempty"` -} diff --git a/model/alicom/AlibabaChongzhiQueryflowAPIRequest.go b/model/alicom/AlibabaChongzhiQueryflowAPIRequest.go new file mode 100644 index 0000000000..b90a3f9d6d --- /dev/null +++ b/model/alicom/AlibabaChongzhiQueryflowAPIRequest.go @@ -0,0 +1,66 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询指定商家的可用的流量宝贝接口 API请求 +alibaba.chongzhi.queryflow + +查询指定商家的可用的流量宝贝 +*/ +type AlibabaChongzhiQueryflowAPIRequest struct { + model.Params + // 号码 + _mobile int64 + // 来源 + _clientSource string +} + +// 初始化AlibabaChongzhiQueryflowAPIRequest对象 +func NewAlibabaChongzhiQueryflowRequest() *AlibabaChongzhiQueryflowAPIRequest{ + return &AlibabaChongzhiQueryflowAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaChongzhiQueryflowAPIRequest) GetApiMethodName() string { + return "alibaba.chongzhi.queryflow" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaChongzhiQueryflowAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Mobile Setter +// 号码 +func (r *AlibabaChongzhiQueryflowAPIRequest) SetMobile(_mobile int64) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r AlibabaChongzhiQueryflowAPIRequest) GetMobile() int64 { + return r._mobile +} +// ClientSource Setter +// 来源 +func (r *AlibabaChongzhiQueryflowAPIRequest) SetClientSource(_clientSource string) error { + r._clientSource = _clientSource + r.Set("client_source", _clientSource) + return nil +} + +// ClientSource Getter +func (r AlibabaChongzhiQueryflowAPIRequest) GetClientSource() string { + return r._clientSource +} diff --git a/model/alicom/AlibabaChongzhiQueryflowAPIResponse.go b/model/alicom/AlibabaChongzhiQueryflowAPIResponse.go new file mode 100644 index 0000000000..141bd5b4b9 --- /dev/null +++ b/model/alicom/AlibabaChongzhiQueryflowAPIResponse.go @@ -0,0 +1,35 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询指定商家的可用的流量宝贝接口 API返回值 +alibaba.chongzhi.queryflow + +查询指定商家的可用的流量宝贝 +*/ +type AlibabaChongzhiQueryflowAPIResponse struct { + model.CommonResponse + AlibabaChongzhiQueryflowAPIResponseModel +} + +// 查询指定商家的可用的流量宝贝接口 成功返回结果 +type AlibabaChongzhiQueryflowAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_chongzhi_queryflow_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` + // desc + Desc string `json:"desc,omitempty" xml:"desc,omitempty"` + // MtsInfoDo + CatInfo *MtsInfoDo `json:"cat_info,omitempty" xml:"cat_info,omitempty"` + // flow_card_list + FlowCardList []Flowcardlist `json:"flow_card_list,omitempty" xml:"flow_card_list>flowcardlist,omitempty"` + // cn_desc + CnDesc string `json:"cn_desc,omitempty" xml:"cn_desc,omitempty"` +} diff --git a/model/alicom/AlibabaChongzhiQueryflowResponse.go b/model/alicom/AlibabaChongzhiQueryflowResponse.go deleted file mode 100644 index 488cdbedd3..0000000000 --- a/model/alicom/AlibabaChongzhiQueryflowResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询指定商家的可用的流量宝贝接口 API返回值 -alibaba.chongzhi.queryflow - -查询指定商家的可用的流量宝贝 -*/ -type AlibabaChongzhiQueryflowAPIResponse struct { - model.CommonResponse - AlibabaChongzhiQueryflowResponse -} - -// 查询指定商家的可用的流量宝贝接口 成功返回结果 -type AlibabaChongzhiQueryflowResponse struct { - XMLName xml.Name `xml:"alibaba_chongzhi_queryflow_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` - // desc - Desc string `json:"desc,omitempty" xml:"desc,omitempty"` - // MtsInfoDo - CatInfo *MtsInfoDo `json:"cat_info,omitempty" xml:"cat_info,omitempty"` - // flow_card_list - FlowCardList []Flowcardlist `json:"flow_card_list,omitempty" xml:"flow_card_list>flowcardlist,omitempty"` - // cn_desc - CnDesc string `json:"cn_desc,omitempty" xml:"cn_desc,omitempty"` -} diff --git a/model/alicom/AlibabaTelecomZhimaOrdernotifyCallbackAPIRequest.go b/model/alicom/AlibabaTelecomZhimaOrdernotifyCallbackAPIRequest.go new file mode 100644 index 0000000000..b6661009de --- /dev/null +++ b/model/alicom/AlibabaTelecomZhimaOrdernotifyCallbackAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里通信芝麻订单通知 API请求 +alibaba.telecom.zhima.ordernotify.callback + +商家通知阿里通信,芝麻订单状态,阿里通信侧进行代扣支付、发货并确认收货 +*/ +type AlibabaTelecomZhimaOrdernotifyCallbackAPIRequest struct { + model.Params + // 入参对象 + _param0 *OrderStatusNotifyRequest +} + +// 初始化AlibabaTelecomZhimaOrdernotifyCallbackAPIRequest对象 +func NewAlibabaTelecomZhimaOrdernotifyCallbackRequest() *AlibabaTelecomZhimaOrdernotifyCallbackAPIRequest{ + return &AlibabaTelecomZhimaOrdernotifyCallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTelecomZhimaOrdernotifyCallbackAPIRequest) GetApiMethodName() string { + return "alibaba.telecom.zhima.ordernotify.callback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTelecomZhimaOrdernotifyCallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 入参对象 +func (r *AlibabaTelecomZhimaOrdernotifyCallbackAPIRequest) SetParam0(_param0 *OrderStatusNotifyRequest) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaTelecomZhimaOrdernotifyCallbackAPIRequest) GetParam0() *OrderStatusNotifyRequest { + return r._param0 +} diff --git a/model/alicom/AlibabaTelecomZhimaOrdernotifyCallbackAPIResponse.go b/model/alicom/AlibabaTelecomZhimaOrdernotifyCallbackAPIResponse.go new file mode 100644 index 0000000000..6d0fc19d31 --- /dev/null +++ b/model/alicom/AlibabaTelecomZhimaOrdernotifyCallbackAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里通信芝麻订单通知 API返回值 +alibaba.telecom.zhima.ordernotify.callback + +商家通知阿里通信,芝麻订单状态,阿里通信侧进行代扣支付、发货并确认收货 +*/ +type AlibabaTelecomZhimaOrdernotifyCallbackAPIResponse struct { + model.CommonResponse + AlibabaTelecomZhimaOrdernotifyCallbackAPIResponseModel +} + +// 阿里通信芝麻订单通知 成功返回结果 +type AlibabaTelecomZhimaOrdernotifyCallbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_telecom_zhima_ordernotify_callback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参对象 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaTelecomZhimaOrdernotifyCallbackResponse.go b/model/alicom/AlibabaTelecomZhimaOrdernotifyCallbackResponse.go deleted file mode 100644 index 0b3d5171b1..0000000000 --- a/model/alicom/AlibabaTelecomZhimaOrdernotifyCallbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里通信芝麻订单通知 API返回值 -alibaba.telecom.zhima.ordernotify.callback - -商家通知阿里通信,芝麻订单状态,阿里通信侧进行代扣支付、发货并确认收货 -*/ -type AlibabaTelecomZhimaOrdernotifyCallbackAPIResponse struct { - model.CommonResponse - AlibabaTelecomZhimaOrdernotifyCallbackResponse -} - -// 阿里通信芝麻订单通知 成功返回结果 -type AlibabaTelecomZhimaOrdernotifyCallbackResponse struct { - XMLName xml.Name `xml:"alibaba_telecom_zhima_ordernotify_callback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参对象 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaTianjiDistributorOrderSubmitAPIRequest.go b/model/alicom/AlibabaTianjiDistributorOrderSubmitAPIRequest.go new file mode 100644 index 0000000000..acd1e57f95 --- /dev/null +++ b/model/alicom/AlibabaTianjiDistributorOrderSubmitAPIRequest.go @@ -0,0 +1,80 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分销商提交受理订单 API请求 +alibaba.tianji.distributor.order.submit + +分销商提交受理订单,如合约订购、充值受理等 +*/ +type AlibabaTianjiDistributorOrderSubmitAPIRequest struct { + model.Params + // 商品编码,如手机串号 + _itemSerialNo string + // 淘宝交易订单号 + _orderNo string + // 供应商产品编码,如SIM卡号 + _productSerialNo string +} + +// 初始化AlibabaTianjiDistributorOrderSubmitAPIRequest对象 +func NewAlibabaTianjiDistributorOrderSubmitRequest() *AlibabaTianjiDistributorOrderSubmitAPIRequest{ + return &AlibabaTianjiDistributorOrderSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTianjiDistributorOrderSubmitAPIRequest) GetApiMethodName() string { + return "alibaba.tianji.distributor.order.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTianjiDistributorOrderSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemSerialNo Setter +// 商品编码,如手机串号 +func (r *AlibabaTianjiDistributorOrderSubmitAPIRequest) SetItemSerialNo(_itemSerialNo string) error { + r._itemSerialNo = _itemSerialNo + r.Set("item_serial_no", _itemSerialNo) + return nil +} + +// ItemSerialNo Getter +func (r AlibabaTianjiDistributorOrderSubmitAPIRequest) GetItemSerialNo() string { + return r._itemSerialNo +} +// OrderNo Setter +// 淘宝交易订单号 +func (r *AlibabaTianjiDistributorOrderSubmitAPIRequest) SetOrderNo(_orderNo string) error { + r._orderNo = _orderNo + r.Set("order_no", _orderNo) + return nil +} + +// OrderNo Getter +func (r AlibabaTianjiDistributorOrderSubmitAPIRequest) GetOrderNo() string { + return r._orderNo +} +// ProductSerialNo Setter +// 供应商产品编码,如SIM卡号 +func (r *AlibabaTianjiDistributorOrderSubmitAPIRequest) SetProductSerialNo(_productSerialNo string) error { + r._productSerialNo = _productSerialNo + r.Set("product_serial_no", _productSerialNo) + return nil +} + +// ProductSerialNo Getter +func (r AlibabaTianjiDistributorOrderSubmitAPIRequest) GetProductSerialNo() string { + return r._productSerialNo +} diff --git a/model/alicom/AlibabaTianjiDistributorOrderSubmitAPIResponse.go b/model/alicom/AlibabaTianjiDistributorOrderSubmitAPIResponse.go new file mode 100644 index 0000000000..bc5a2cf192 --- /dev/null +++ b/model/alicom/AlibabaTianjiDistributorOrderSubmitAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分销商提交受理订单 API返回值 +alibaba.tianji.distributor.order.submit + +分销商提交受理订单,如合约订购、充值受理等 +*/ +type AlibabaTianjiDistributorOrderSubmitAPIResponse struct { + model.CommonResponse + AlibabaTianjiDistributorOrderSubmitAPIResponseModel +} + +// 分销商提交受理订单 成功返回结果 +type AlibabaTianjiDistributorOrderSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tianji_distributor_order_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaTianjiDistributorOrderSubmitResponse.go b/model/alicom/AlibabaTianjiDistributorOrderSubmitResponse.go deleted file mode 100644 index 0ac9543d57..0000000000 --- a/model/alicom/AlibabaTianjiDistributorOrderSubmitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分销商提交受理订单 API返回值 -alibaba.tianji.distributor.order.submit - -分销商提交受理订单,如合约订购、充值受理等 -*/ -type AlibabaTianjiDistributorOrderSubmitAPIResponse struct { - model.CommonResponse - AlibabaTianjiDistributorOrderSubmitResponse -} - -// 分销商提交受理订单 成功返回结果 -type AlibabaTianjiDistributorOrderSubmitResponse struct { - XMLName xml.Name `xml:"alibaba_tianji_distributor_order_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaTianjiSupplierOrderDeliveryAPIRequest.go b/model/alicom/AlibabaTianjiSupplierOrderDeliveryAPIRequest.go new file mode 100644 index 0000000000..a40c7156e4 --- /dev/null +++ b/model/alicom/AlibabaTianjiSupplierOrderDeliveryAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天机供应商发货 API请求 +alibaba.tianji.supplier.order.delivery + +天机供应商发货 +*/ +type AlibabaTianjiSupplierOrderDeliveryAPIRequest struct { + model.Params + // 物流信息 + _paramDistributionOrderLogisticsModel *DistributionOrderLogisticsModel +} + +// 初始化AlibabaTianjiSupplierOrderDeliveryAPIRequest对象 +func NewAlibabaTianjiSupplierOrderDeliveryRequest() *AlibabaTianjiSupplierOrderDeliveryAPIRequest{ + return &AlibabaTianjiSupplierOrderDeliveryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTianjiSupplierOrderDeliveryAPIRequest) GetApiMethodName() string { + return "alibaba.tianji.supplier.order.delivery" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTianjiSupplierOrderDeliveryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamDistributionOrderLogisticsModel Setter +// 物流信息 +func (r *AlibabaTianjiSupplierOrderDeliveryAPIRequest) SetParamDistributionOrderLogisticsModel(_paramDistributionOrderLogisticsModel *DistributionOrderLogisticsModel) error { + r._paramDistributionOrderLogisticsModel = _paramDistributionOrderLogisticsModel + r.Set("param_distribution_order_logistics_model", _paramDistributionOrderLogisticsModel) + return nil +} + +// ParamDistributionOrderLogisticsModel Getter +func (r AlibabaTianjiSupplierOrderDeliveryAPIRequest) GetParamDistributionOrderLogisticsModel() *DistributionOrderLogisticsModel { + return r._paramDistributionOrderLogisticsModel +} diff --git a/model/alicom/AlibabaTianjiSupplierOrderDeliveryAPIResponse.go b/model/alicom/AlibabaTianjiSupplierOrderDeliveryAPIResponse.go new file mode 100644 index 0000000000..f5fb14308d --- /dev/null +++ b/model/alicom/AlibabaTianjiSupplierOrderDeliveryAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天机供应商发货 API返回值 +alibaba.tianji.supplier.order.delivery + +天机供应商发货 +*/ +type AlibabaTianjiSupplierOrderDeliveryAPIResponse struct { + model.CommonResponse + AlibabaTianjiSupplierOrderDeliveryAPIResponseModel +} + +// 天机供应商发货 成功返回结果 +type AlibabaTianjiSupplierOrderDeliveryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tianji_supplier_order_delivery_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 发货是否成功 + Model bool `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/alicom/AlibabaTianjiSupplierOrderDeliveryResponse.go b/model/alicom/AlibabaTianjiSupplierOrderDeliveryResponse.go deleted file mode 100644 index e26e779dbb..0000000000 --- a/model/alicom/AlibabaTianjiSupplierOrderDeliveryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天机供应商发货 API返回值 -alibaba.tianji.supplier.order.delivery - -天机供应商发货 -*/ -type AlibabaTianjiSupplierOrderDeliveryAPIResponse struct { - model.CommonResponse - AlibabaTianjiSupplierOrderDeliveryResponse -} - -// 天机供应商发货 成功返回结果 -type AlibabaTianjiSupplierOrderDeliveryResponse struct { - XMLName xml.Name `xml:"alibaba_tianji_supplier_order_delivery_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 发货是否成功 - Model bool `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/alicom/AlibabaTianjiSupplierOrderQueryAPIRequest.go b/model/alicom/AlibabaTianjiSupplierOrderQueryAPIRequest.go new file mode 100644 index 0000000000..7b9d72bf2a --- /dev/null +++ b/model/alicom/AlibabaTianjiSupplierOrderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询供应商订单 API请求 +alibaba.tianji.supplier.order.query + +查询供应商订单 +*/ +type AlibabaTianjiSupplierOrderQueryAPIRequest struct { + model.Params + // 订单查询入参 + _paramSupplierTopQueryModel *SupplierTopQueryModel +} + +// 初始化AlibabaTianjiSupplierOrderQueryAPIRequest对象 +func NewAlibabaTianjiSupplierOrderQueryRequest() *AlibabaTianjiSupplierOrderQueryAPIRequest{ + return &AlibabaTianjiSupplierOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTianjiSupplierOrderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.tianji.supplier.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTianjiSupplierOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamSupplierTopQueryModel Setter +// 订单查询入参 +func (r *AlibabaTianjiSupplierOrderQueryAPIRequest) SetParamSupplierTopQueryModel(_paramSupplierTopQueryModel *SupplierTopQueryModel) error { + r._paramSupplierTopQueryModel = _paramSupplierTopQueryModel + r.Set("param_supplier_top_query_model", _paramSupplierTopQueryModel) + return nil +} + +// ParamSupplierTopQueryModel Getter +func (r AlibabaTianjiSupplierOrderQueryAPIRequest) GetParamSupplierTopQueryModel() *SupplierTopQueryModel { + return r._paramSupplierTopQueryModel +} diff --git a/model/alicom/AlibabaTianjiSupplierOrderQueryAPIResponse.go b/model/alicom/AlibabaTianjiSupplierOrderQueryAPIResponse.go new file mode 100644 index 0000000000..afd886f4c4 --- /dev/null +++ b/model/alicom/AlibabaTianjiSupplierOrderQueryAPIResponse.go @@ -0,0 +1,29 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询供应商订单 API返回值 +alibaba.tianji.supplier.order.query + +查询供应商订单 +*/ +type AlibabaTianjiSupplierOrderQueryAPIResponse struct { + model.CommonResponse + AlibabaTianjiSupplierOrderQueryAPIResponseModel +} + +// 查询供应商订单 成功返回结果 +type AlibabaTianjiSupplierOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tianji_supplier_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分销订单信息 + ModelList []DistributionOrderInfo `json:"model_list,omitempty" xml:"model_list>distribution_order_info,omitempty"` + // 查询总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/alicom/AlibabaTianjiSupplierOrderQueryResponse.go b/model/alicom/AlibabaTianjiSupplierOrderQueryResponse.go deleted file mode 100644 index f9cc66ed42..0000000000 --- a/model/alicom/AlibabaTianjiSupplierOrderQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询供应商订单 API返回值 -alibaba.tianji.supplier.order.query - -查询供应商订单 -*/ -type AlibabaTianjiSupplierOrderQueryAPIResponse struct { - model.CommonResponse - AlibabaTianjiSupplierOrderQueryResponse -} - -// 查询供应商订单 成功返回结果 -type AlibabaTianjiSupplierOrderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_tianji_supplier_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分销订单信息 - ModelList []DistributionOrderInfo `json:"model_list,omitempty" xml:"model_list>distribution_order_info,omitempty"` - // 查询总数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/alicom/AlibabaTianjiSupplierOrderResultAPIRequest.go b/model/alicom/AlibabaTianjiSupplierOrderResultAPIRequest.go new file mode 100644 index 0000000000..7fe20fb2cf --- /dev/null +++ b/model/alicom/AlibabaTianjiSupplierOrderResultAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商处理订单接口(订购成功/失败、发货) API请求 +alibaba.tianji.supplier.order.result + +供应商处理订单接口(订购成功/失败、发货) +*/ +type AlibabaTianjiSupplierOrderResultAPIRequest struct { + model.Params + // 供应商处理订单结果反馈参数 + _supplierOrderResultModel *SupplierOrderResultModel +} + +// 初始化AlibabaTianjiSupplierOrderResultAPIRequest对象 +func NewAlibabaTianjiSupplierOrderResultRequest() *AlibabaTianjiSupplierOrderResultAPIRequest{ + return &AlibabaTianjiSupplierOrderResultAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTianjiSupplierOrderResultAPIRequest) GetApiMethodName() string { + return "alibaba.tianji.supplier.order.result" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTianjiSupplierOrderResultAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SupplierOrderResultModel Setter +// 供应商处理订单结果反馈参数 +func (r *AlibabaTianjiSupplierOrderResultAPIRequest) SetSupplierOrderResultModel(_supplierOrderResultModel *SupplierOrderResultModel) error { + r._supplierOrderResultModel = _supplierOrderResultModel + r.Set("supplier_order_result_model", _supplierOrderResultModel) + return nil +} + +// SupplierOrderResultModel Getter +func (r AlibabaTianjiSupplierOrderResultAPIRequest) GetSupplierOrderResultModel() *SupplierOrderResultModel { + return r._supplierOrderResultModel +} diff --git a/model/alicom/AlibabaTianjiSupplierOrderResultAPIResponse.go b/model/alicom/AlibabaTianjiSupplierOrderResultAPIResponse.go new file mode 100644 index 0000000000..6c85456f22 --- /dev/null +++ b/model/alicom/AlibabaTianjiSupplierOrderResultAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商处理订单接口(订购成功/失败、发货) API返回值 +alibaba.tianji.supplier.order.result + +供应商处理订单接口(订购成功/失败、发货) +*/ +type AlibabaTianjiSupplierOrderResultAPIResponse struct { + model.CommonResponse + AlibabaTianjiSupplierOrderResultAPIResponseModel +} + +// 供应商处理订单接口(订购成功/失败、发货) 成功返回结果 +type AlibabaTianjiSupplierOrderResultAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tianji_supplier_order_result_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Model bool `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/alicom/AlibabaTianjiSupplierOrderResultResponse.go b/model/alicom/AlibabaTianjiSupplierOrderResultResponse.go deleted file mode 100644 index 5bebc78933..0000000000 --- a/model/alicom/AlibabaTianjiSupplierOrderResultResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商处理订单接口(订购成功/失败、发货) API返回值 -alibaba.tianji.supplier.order.result - -供应商处理订单接口(订购成功/失败、发货) -*/ -type AlibabaTianjiSupplierOrderResultAPIResponse struct { - model.CommonResponse - AlibabaTianjiSupplierOrderResultResponse -} - -// 供应商处理订单接口(订购成功/失败、发货) 成功返回结果 -type AlibabaTianjiSupplierOrderResultResponse struct { - XMLName xml.Name `xml:"alibaba_tianji_supplier_order_result_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Model bool `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/alicom/AlibabaWtCifCoopOsstokenGetAPIRequest.go b/model/alicom/AlibabaWtCifCoopOsstokenGetAPIRequest.go new file mode 100644 index 0000000000..b91e69bca2 --- /dev/null +++ b/model/alicom/AlibabaWtCifCoopOsstokenGetAPIRequest.go @@ -0,0 +1,80 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取oss签名接口 API请求 +alibaba.wt.cif.coop.osstoken.get + +商家合作上传oss图片获取token接口 +*/ +type AlibabaWtCifCoopOsstokenGetAPIRequest struct { + model.Params + // 调用方的应用名 + _appName string + // 系统分配的source + _source string + // 系统分配的biz + _biz string +} + +// 初始化AlibabaWtCifCoopOsstokenGetAPIRequest对象 +func NewAlibabaWtCifCoopOsstokenGetRequest() *AlibabaWtCifCoopOsstokenGetAPIRequest{ + return &AlibabaWtCifCoopOsstokenGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWtCifCoopOsstokenGetAPIRequest) GetApiMethodName() string { + return "alibaba.wt.cif.coop.osstoken.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWtCifCoopOsstokenGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppName Setter +// 调用方的应用名 +func (r *AlibabaWtCifCoopOsstokenGetAPIRequest) SetAppName(_appName string) error { + r._appName = _appName + r.Set("app_name", _appName) + return nil +} + +// AppName Getter +func (r AlibabaWtCifCoopOsstokenGetAPIRequest) GetAppName() string { + return r._appName +} +// Source Setter +// 系统分配的source +func (r *AlibabaWtCifCoopOsstokenGetAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r AlibabaWtCifCoopOsstokenGetAPIRequest) GetSource() string { + return r._source +} +// Biz Setter +// 系统分配的biz +func (r *AlibabaWtCifCoopOsstokenGetAPIRequest) SetBiz(_biz string) error { + r._biz = _biz + r.Set("biz", _biz) + return nil +} + +// Biz Getter +func (r AlibabaWtCifCoopOsstokenGetAPIRequest) GetBiz() string { + return r._biz +} diff --git a/model/alicom/AlibabaWtCifCoopOsstokenGetAPIResponse.go b/model/alicom/AlibabaWtCifCoopOsstokenGetAPIResponse.go new file mode 100644 index 0000000000..91f8558da3 --- /dev/null +++ b/model/alicom/AlibabaWtCifCoopOsstokenGetAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取oss签名接口 API返回值 +alibaba.wt.cif.coop.osstoken.get + +商家合作上传oss图片获取token接口 +*/ +type AlibabaWtCifCoopOsstokenGetAPIResponse struct { + model.CommonResponse + AlibabaWtCifCoopOsstokenGetAPIResponseModel +} + +// 获取oss签名接口 成功返回结果 +type AlibabaWtCifCoopOsstokenGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wt_cif_coop_osstoken_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaWtCifCoopOsstokenGetResponse.go b/model/alicom/AlibabaWtCifCoopOsstokenGetResponse.go deleted file mode 100644 index a1099f0dd6..0000000000 --- a/model/alicom/AlibabaWtCifCoopOsstokenGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取oss签名接口 API返回值 -alibaba.wt.cif.coop.osstoken.get - -商家合作上传oss图片获取token接口 -*/ -type AlibabaWtCifCoopOsstokenGetAPIResponse struct { - model.CommonResponse - AlibabaWtCifCoopOsstokenGetResponse -} - -// 获取oss签名接口 成功返回结果 -type AlibabaWtCifCoopOsstokenGetResponse struct { - XMLName xml.Name `xml:"alibaba_wt_cif_coop_osstoken_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaWtOrderExchangePartnerChecktbuserAPIRequest.go b/model/alicom/AlibabaWtOrderExchangePartnerChecktbuserAPIRequest.go new file mode 100644 index 0000000000..b42a502aca --- /dev/null +++ b/model/alicom/AlibabaWtOrderExchangePartnerChecktbuserAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +积分兑换校验淘宝账号是否存在 API请求 +alibaba.wt.order.exchange.partner.checktbuser + +积分兑换之前校验淘宝账号是否存在 +*/ +type AlibabaWtOrderExchangePartnerChecktbuserAPIRequest struct { + model.Params + // model入参 + _outExchangeModel *OutExchangeModel +} + +// 初始化AlibabaWtOrderExchangePartnerChecktbuserAPIRequest对象 +func NewAlibabaWtOrderExchangePartnerChecktbuserRequest() *AlibabaWtOrderExchangePartnerChecktbuserAPIRequest{ + return &AlibabaWtOrderExchangePartnerChecktbuserAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWtOrderExchangePartnerChecktbuserAPIRequest) GetApiMethodName() string { + return "alibaba.wt.order.exchange.partner.checktbuser" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWtOrderExchangePartnerChecktbuserAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutExchangeModel Setter +// model入参 +func (r *AlibabaWtOrderExchangePartnerChecktbuserAPIRequest) SetOutExchangeModel(_outExchangeModel *OutExchangeModel) error { + r._outExchangeModel = _outExchangeModel + r.Set("out_exchange_model", _outExchangeModel) + return nil +} + +// OutExchangeModel Getter +func (r AlibabaWtOrderExchangePartnerChecktbuserAPIRequest) GetOutExchangeModel() *OutExchangeModel { + return r._outExchangeModel +} diff --git a/model/alicom/AlibabaWtOrderExchangePartnerChecktbuserAPIResponse.go b/model/alicom/AlibabaWtOrderExchangePartnerChecktbuserAPIResponse.go new file mode 100644 index 0000000000..1fda205277 --- /dev/null +++ b/model/alicom/AlibabaWtOrderExchangePartnerChecktbuserAPIResponse.go @@ -0,0 +1,33 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +积分兑换校验淘宝账号是否存在 API返回值 +alibaba.wt.order.exchange.partner.checktbuser + +积分兑换之前校验淘宝账号是否存在 +*/ +type AlibabaWtOrderExchangePartnerChecktbuserAPIResponse struct { + model.CommonResponse + AlibabaWtOrderExchangePartnerChecktbuserAPIResponseModel +} + +// 积分兑换校验淘宝账号是否存在 成功返回结果 +type AlibabaWtOrderExchangePartnerChecktbuserAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wt_order_exchange_partner_checktbuser_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值,通过model的值true或者false来判断 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 成功 + Desc string `json:"desc,omitempty" xml:"desc,omitempty"` + // 成功 + ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"` + // 接口调用返回成功,真正是否存在号码通过model的返回值来判断 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/alicom/AlibabaWtOrderExchangePartnerChecktbuserResponse.go b/model/alicom/AlibabaWtOrderExchangePartnerChecktbuserResponse.go deleted file mode 100644 index b5cf4b6da1..0000000000 --- a/model/alicom/AlibabaWtOrderExchangePartnerChecktbuserResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -积分兑换校验淘宝账号是否存在 API返回值 -alibaba.wt.order.exchange.partner.checktbuser - -积分兑换之前校验淘宝账号是否存在 -*/ -type AlibabaWtOrderExchangePartnerChecktbuserAPIResponse struct { - model.CommonResponse - AlibabaWtOrderExchangePartnerChecktbuserResponse -} - -// 积分兑换校验淘宝账号是否存在 成功返回结果 -type AlibabaWtOrderExchangePartnerChecktbuserResponse struct { - XMLName xml.Name `xml:"alibaba_wt_order_exchange_partner_checktbuser_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值,通过model的值true或者false来判断 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 成功 - Desc string `json:"desc,omitempty" xml:"desc,omitempty"` - // 成功 - ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"` - // 接口调用返回成功,真正是否存在号码通过model的返回值来判断 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/alicom/AlibabaWttOfflineRecordQueryagentinfoAPIRequest.go b/model/alicom/AlibabaWttOfflineRecordQueryagentinfoAPIRequest.go new file mode 100644 index 0000000000..3a7f8b7980 --- /dev/null +++ b/model/alicom/AlibabaWttOfflineRecordQueryagentinfoAPIRequest.go @@ -0,0 +1,66 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线下推广充送等业务订单来源 API请求 +alibaba.wtt.offline.record.queryagentinfo + +线下推广充送等业务订单来源的查询接口 +*/ +type AlibabaWttOfflineRecordQueryagentinfoAPIRequest struct { + model.Params + // 淘宝订单号 + _orderId int64 + // 业务号码 + _phone string +} + +// 初始化AlibabaWttOfflineRecordQueryagentinfoAPIRequest对象 +func NewAlibabaWttOfflineRecordQueryagentinfoRequest() *AlibabaWttOfflineRecordQueryagentinfoAPIRequest{ + return &AlibabaWttOfflineRecordQueryagentinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWttOfflineRecordQueryagentinfoAPIRequest) GetApiMethodName() string { + return "alibaba.wtt.offline.record.queryagentinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWttOfflineRecordQueryagentinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 淘宝订单号 +func (r *AlibabaWttOfflineRecordQueryagentinfoAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaWttOfflineRecordQueryagentinfoAPIRequest) GetOrderId() int64 { + return r._orderId +} +// Phone Setter +// 业务号码 +func (r *AlibabaWttOfflineRecordQueryagentinfoAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r AlibabaWttOfflineRecordQueryagentinfoAPIRequest) GetPhone() string { + return r._phone +} diff --git a/model/alicom/AlibabaWttOfflineRecordQueryagentinfoAPIResponse.go b/model/alicom/AlibabaWttOfflineRecordQueryagentinfoAPIResponse.go new file mode 100644 index 0000000000..0d69837a78 --- /dev/null +++ b/model/alicom/AlibabaWttOfflineRecordQueryagentinfoAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线下推广充送等业务订单来源 API返回值 +alibaba.wtt.offline.record.queryagentinfo + +线下推广充送等业务订单来源的查询接口 +*/ +type AlibabaWttOfflineRecordQueryagentinfoAPIResponse struct { + model.CommonResponse + AlibabaWttOfflineRecordQueryagentinfoAPIResponseModel +} + +// 线下推广充送等业务订单来源 成功返回结果 +type AlibabaWttOfflineRecordQueryagentinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wtt_offline_record_queryagentinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/AlibabaWttOfflineRecordQueryagentinfoResponse.go b/model/alicom/AlibabaWttOfflineRecordQueryagentinfoResponse.go deleted file mode 100644 index 6599a15fec..0000000000 --- a/model/alicom/AlibabaWttOfflineRecordQueryagentinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线下推广充送等业务订单来源 API返回值 -alibaba.wtt.offline.record.queryagentinfo - -线下推广充送等业务订单来源的查询接口 -*/ -type AlibabaWttOfflineRecordQueryagentinfoAPIResponse struct { - model.CommonResponse - AlibabaWttOfflineRecordQueryagentinfoResponse -} - -// 线下推广充送等业务订单来源 成功返回结果 -type AlibabaWttOfflineRecordQueryagentinfoResponse struct { - XMLName xml.Name `xml:"alibaba_wtt_offline_record_queryagentinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alicom/AlibabaWttOrderContractSubscribeAPIRequest.go b/model/alicom/AlibabaWttOrderContractSubscribeAPIRequest.go new file mode 100644 index 0000000000..defd30f764 --- /dev/null +++ b/model/alicom/AlibabaWttOrderContractSubscribeAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分销商合约生产 API请求 +alibaba.wtt.order.contract.subscribe + +分销商合约生产 +*/ +type AlibabaWttOrderContractSubscribeAPIRequest struct { + model.Params + // 分销商合约生产 + _distributionOrderModel *DistributionOrderModel +} + +// 初始化AlibabaWttOrderContractSubscribeAPIRequest对象 +func NewAlibabaWttOrderContractSubscribeRequest() *AlibabaWttOrderContractSubscribeAPIRequest{ + return &AlibabaWttOrderContractSubscribeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWttOrderContractSubscribeAPIRequest) GetApiMethodName() string { + return "alibaba.wtt.order.contract.subscribe" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWttOrderContractSubscribeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DistributionOrderModel Setter +// 分销商合约生产 +func (r *AlibabaWttOrderContractSubscribeAPIRequest) SetDistributionOrderModel(_distributionOrderModel *DistributionOrderModel) error { + r._distributionOrderModel = _distributionOrderModel + r.Set("distribution_order_model", _distributionOrderModel) + return nil +} + +// DistributionOrderModel Getter +func (r AlibabaWttOrderContractSubscribeAPIRequest) GetDistributionOrderModel() *DistributionOrderModel { + return r._distributionOrderModel +} diff --git a/model/alicom/AlibabaWttOrderContractSubscribeAPIResponse.go b/model/alicom/AlibabaWttOrderContractSubscribeAPIResponse.go new file mode 100644 index 0000000000..e40e227eec --- /dev/null +++ b/model/alicom/AlibabaWttOrderContractSubscribeAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分销商合约生产 API返回值 +alibaba.wtt.order.contract.subscribe + +分销商合约生产 +*/ +type AlibabaWttOrderContractSubscribeAPIResponse struct { + model.CommonResponse + AlibabaWttOrderContractSubscribeAPIResponseModel +} + +// 分销商合约生产 成功返回结果 +type AlibabaWttOrderContractSubscribeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wtt_order_contract_subscribe_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 合约产生陈宫 + Issuccess bool `json:"issuccess,omitempty" xml:"issuccess,omitempty"` +} diff --git a/model/alicom/AlibabaWttOrderContractSubscribeResponse.go b/model/alicom/AlibabaWttOrderContractSubscribeResponse.go deleted file mode 100644 index 081b8ca6d5..0000000000 --- a/model/alicom/AlibabaWttOrderContractSubscribeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分销商合约生产 API返回值 -alibaba.wtt.order.contract.subscribe - -分销商合约生产 -*/ -type AlibabaWttOrderContractSubscribeAPIResponse struct { - model.CommonResponse - AlibabaWttOrderContractSubscribeResponse -} - -// 分销商合约生产 成功返回结果 -type AlibabaWttOrderContractSubscribeResponse struct { - XMLName xml.Name `xml:"alibaba_wtt_order_contract_subscribe_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 合约产生陈宫 - Issuccess bool `json:"issuccess,omitempty" xml:"issuccess,omitempty"` -} diff --git a/model/alicom/AlibabaWttUserRegioninfoByipGetAPIRequest.go b/model/alicom/AlibabaWttUserRegioninfoByipGetAPIRequest.go new file mode 100644 index 0000000000..90f6d3f1c0 --- /dev/null +++ b/model/alicom/AlibabaWttUserRegioninfoByipGetAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据ip获取省市信息 API请求 +alibaba.wtt.user.regioninfo.byip.get + +通过ip获取省市信息 +*/ +type AlibabaWttUserRegioninfoByipGetAPIRequest struct { + model.Params + // ip地址 + _ip string +} + +// 初始化AlibabaWttUserRegioninfoByipGetAPIRequest对象 +func NewAlibabaWttUserRegioninfoByipGetRequest() *AlibabaWttUserRegioninfoByipGetAPIRequest{ + return &AlibabaWttUserRegioninfoByipGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWttUserRegioninfoByipGetAPIRequest) GetApiMethodName() string { + return "alibaba.wtt.user.regioninfo.byip.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWttUserRegioninfoByipGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Ip Setter +// ip地址 +func (r *AlibabaWttUserRegioninfoByipGetAPIRequest) SetIp(_ip string) error { + r._ip = _ip + r.Set("ip", _ip) + return nil +} + +// Ip Getter +func (r AlibabaWttUserRegioninfoByipGetAPIRequest) GetIp() string { + return r._ip +} diff --git a/model/alicom/AlibabaWttUserRegioninfoByipGetAPIResponse.go b/model/alicom/AlibabaWttUserRegioninfoByipGetAPIResponse.go new file mode 100644 index 0000000000..5864ce1427 --- /dev/null +++ b/model/alicom/AlibabaWttUserRegioninfoByipGetAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据ip获取省市信息 API返回值 +alibaba.wtt.user.regioninfo.byip.get + +通过ip获取省市信息 +*/ +type AlibabaWttUserRegioninfoByipGetAPIResponse struct { + model.CommonResponse + AlibabaWttUserRegioninfoByipGetAPIResponseModel +} + +// 根据ip获取省市信息 成功返回结果 +type AlibabaWttUserRegioninfoByipGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wtt_user_regioninfo_byip_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 地址信息 + Model *RegionInfo `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/alicom/AlibabaWttUserRegioninfoByipGetResponse.go b/model/alicom/AlibabaWttUserRegioninfoByipGetResponse.go deleted file mode 100644 index fac6998947..0000000000 --- a/model/alicom/AlibabaWttUserRegioninfoByipGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据ip获取省市信息 API返回值 -alibaba.wtt.user.regioninfo.byip.get - -通过ip获取省市信息 -*/ -type AlibabaWttUserRegioninfoByipGetAPIResponse struct { - model.CommonResponse - AlibabaWttUserRegioninfoByipGetResponse -} - -// 根据ip获取省市信息 成功返回结果 -type AlibabaWttUserRegioninfoByipGetResponse struct { - XMLName xml.Name `xml:"alibaba_wtt_user_regioninfo_byip_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 地址信息 - Model *RegionInfo `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/alicom/TaobaoWtTradeOrderResultcallbackAPIRequest.go b/model/alicom/TaobaoWtTradeOrderResultcallbackAPIRequest.go new file mode 100644 index 0000000000..8015651f5c --- /dev/null +++ b/model/alicom/TaobaoWtTradeOrderResultcallbackAPIRequest.go @@ -0,0 +1,52 @@ +package alicom + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家回调接口 API请求 +taobao.wt.trade.order.resultcallback + +阿里通信定制服务,商家发货后进行调用该接口,用于自动发货并确认收货 +*/ +type TaobaoWtTradeOrderResultcallbackAPIRequest struct { + model.Params + // 系统自动生成 + _param0 *OrderResultDto +} + +// 初始化TaobaoWtTradeOrderResultcallbackAPIRequest对象 +func NewTaobaoWtTradeOrderResultcallbackRequest() *TaobaoWtTradeOrderResultcallbackAPIRequest{ + return &TaobaoWtTradeOrderResultcallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWtTradeOrderResultcallbackAPIRequest) GetApiMethodName() string { + return "taobao.wt.trade.order.resultcallback" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWtTradeOrderResultcallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 系统自动生成 +func (r *TaobaoWtTradeOrderResultcallbackAPIRequest) SetParam0(_param0 *OrderResultDto) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoWtTradeOrderResultcallbackAPIRequest) GetParam0() *OrderResultDto { + return r._param0 +} diff --git a/model/alicom/TaobaoWtTradeOrderResultcallbackAPIResponse.go b/model/alicom/TaobaoWtTradeOrderResultcallbackAPIResponse.go new file mode 100644 index 0000000000..f02d20dfad --- /dev/null +++ b/model/alicom/TaobaoWtTradeOrderResultcallbackAPIResponse.go @@ -0,0 +1,27 @@ +package alicom + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家回调接口 API返回值 +taobao.wt.trade.order.resultcallback + +阿里通信定制服务,商家发货后进行调用该接口,用于自动发货并确认收货 +*/ +type TaobaoWtTradeOrderResultcallbackAPIResponse struct { + model.CommonResponse + TaobaoWtTradeOrderResultcallbackAPIResponseModel +} + +// 商家回调接口 成功返回结果 +type TaobaoWtTradeOrderResultcallbackAPIResponseModel struct { + XMLName xml.Name `xml:"wt_trade_order_resultcallback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CommonRtnDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alicom/TaobaoWtTradeOrderResultcallbackResponse.go b/model/alicom/TaobaoWtTradeOrderResultcallbackResponse.go deleted file mode 100644 index ded1091388..0000000000 --- a/model/alicom/TaobaoWtTradeOrderResultcallbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alicom - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家回调接口 API返回值 -taobao.wt.trade.order.resultcallback - -阿里通信定制服务,商家发货后进行调用该接口,用于自动发货并确认收货 -*/ -type TaobaoWtTradeOrderResultcallbackAPIResponse struct { - model.CommonResponse - TaobaoWtTradeOrderResultcallbackResponse -} - -// 商家回调接口 成功返回结果 -type TaobaoWtTradeOrderResultcallbackResponse struct { - XMLName xml.Name `xml:"wt_trade_order_resultcallback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CommonRtnDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alidoc/AlibabaAlihealthAlidocDrugStoreAddAPIRequest.go b/model/alidoc/AlibabaAlihealthAlidocDrugStoreAddAPIRequest.go new file mode 100644 index 0000000000..a6a5e12498 --- /dev/null +++ b/model/alidoc/AlibabaAlihealthAlidocDrugStoreAddAPIRequest.go @@ -0,0 +1,52 @@ +package alidoc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +gsk新增药店 API请求 +alibaba.alihealth.alidoc.drug.store.add + +GSK上传药店信息 +*/ +type AlibabaAlihealthAlidocDrugStoreAddAPIRequest struct { + model.Params + // 新增药店 + _drugStoreAddTopRequest *DrugStoreAddTopRequest +} + +// 初始化AlibabaAlihealthAlidocDrugStoreAddAPIRequest对象 +func NewAlibabaAlihealthAlidocDrugStoreAddRequest() *AlibabaAlihealthAlidocDrugStoreAddAPIRequest{ + return &AlibabaAlihealthAlidocDrugStoreAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthAlidocDrugStoreAddAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.alidoc.drug.store.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthAlidocDrugStoreAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DrugStoreAddTopRequest Setter +// 新增药店 +func (r *AlibabaAlihealthAlidocDrugStoreAddAPIRequest) SetDrugStoreAddTopRequest(_drugStoreAddTopRequest *DrugStoreAddTopRequest) error { + r._drugStoreAddTopRequest = _drugStoreAddTopRequest + r.Set("drug_store_add_top_request", _drugStoreAddTopRequest) + return nil +} + +// DrugStoreAddTopRequest Getter +func (r AlibabaAlihealthAlidocDrugStoreAddAPIRequest) GetDrugStoreAddTopRequest() *DrugStoreAddTopRequest { + return r._drugStoreAddTopRequest +} diff --git a/model/alidoc/AlibabaAlihealthAlidocDrugStoreAddAPIResponse.go b/model/alidoc/AlibabaAlihealthAlidocDrugStoreAddAPIResponse.go new file mode 100644 index 0000000000..003fcf4d80 --- /dev/null +++ b/model/alidoc/AlibabaAlihealthAlidocDrugStoreAddAPIResponse.go @@ -0,0 +1,31 @@ +package alidoc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +gsk新增药店 API返回值 +alibaba.alihealth.alidoc.drug.store.add + +GSK上传药店信息 +*/ +type AlibabaAlihealthAlidocDrugStoreAddAPIResponse struct { + model.CommonResponse + AlibabaAlihealthAlidocDrugStoreAddAPIResponseModel +} + +// gsk新增药店 成功返回结果 +type AlibabaAlihealthAlidocDrugStoreAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_alidoc_drug_store_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + Successed bool `json:"successed,omitempty" xml:"successed,omitempty"` + // errCode + ErrorKode string `json:"error_kode,omitempty" xml:"error_kode,omitempty"` + // errMessage + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` +} diff --git a/model/alidoc/AlibabaAlihealthAlidocDrugStoreAddResponse.go b/model/alidoc/AlibabaAlihealthAlidocDrugStoreAddResponse.go deleted file mode 100644 index 9494ae2f32..0000000000 --- a/model/alidoc/AlibabaAlihealthAlidocDrugStoreAddResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alidoc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -gsk新增药店 API返回值 -alibaba.alihealth.alidoc.drug.store.add - -GSK上传药店信息 -*/ -type AlibabaAlihealthAlidocDrugStoreAddAPIResponse struct { - model.CommonResponse - AlibabaAlihealthAlidocDrugStoreAddResponse -} - -// gsk新增药店 成功返回结果 -type AlibabaAlihealthAlidocDrugStoreAddResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_alidoc_drug_store_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - Successed bool `json:"successed,omitempty" xml:"successed,omitempty"` - // errCode - ErrorKode string `json:"error_kode,omitempty" xml:"error_kode,omitempty"` - // errMessage - ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` -} diff --git a/model/alidoc/AlibabaAlihealthAlidocDrugStoreUpdateAPIRequest.go b/model/alidoc/AlibabaAlihealthAlidocDrugStoreUpdateAPIRequest.go new file mode 100644 index 0000000000..4653d6491a --- /dev/null +++ b/model/alidoc/AlibabaAlihealthAlidocDrugStoreUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package alidoc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新药店 API请求 +alibaba.alihealth.alidoc.drug.store.update + +药店信息更新接口 +*/ +type AlibabaAlihealthAlidocDrugStoreUpdateAPIRequest struct { + model.Params + // 更新对象 + _drugStoreUpdateTopRequest *DrugStoreUpdateTopRequest +} + +// 初始化AlibabaAlihealthAlidocDrugStoreUpdateAPIRequest对象 +func NewAlibabaAlihealthAlidocDrugStoreUpdateRequest() *AlibabaAlihealthAlidocDrugStoreUpdateAPIRequest{ + return &AlibabaAlihealthAlidocDrugStoreUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthAlidocDrugStoreUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.alidoc.drug.store.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthAlidocDrugStoreUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DrugStoreUpdateTopRequest Setter +// 更新对象 +func (r *AlibabaAlihealthAlidocDrugStoreUpdateAPIRequest) SetDrugStoreUpdateTopRequest(_drugStoreUpdateTopRequest *DrugStoreUpdateTopRequest) error { + r._drugStoreUpdateTopRequest = _drugStoreUpdateTopRequest + r.Set("drug_store_update_top_request", _drugStoreUpdateTopRequest) + return nil +} + +// DrugStoreUpdateTopRequest Getter +func (r AlibabaAlihealthAlidocDrugStoreUpdateAPIRequest) GetDrugStoreUpdateTopRequest() *DrugStoreUpdateTopRequest { + return r._drugStoreUpdateTopRequest +} diff --git a/model/alidoc/AlibabaAlihealthAlidocDrugStoreUpdateAPIResponse.go b/model/alidoc/AlibabaAlihealthAlidocDrugStoreUpdateAPIResponse.go new file mode 100644 index 0000000000..841e9d7989 --- /dev/null +++ b/model/alidoc/AlibabaAlihealthAlidocDrugStoreUpdateAPIResponse.go @@ -0,0 +1,31 @@ +package alidoc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新药店 API返回值 +alibaba.alihealth.alidoc.drug.store.update + +药店信息更新接口 +*/ +type AlibabaAlihealthAlidocDrugStoreUpdateAPIResponse struct { + model.CommonResponse + AlibabaAlihealthAlidocDrugStoreUpdateAPIResponseModel +} + +// 更新药店 成功返回结果 +type AlibabaAlihealthAlidocDrugStoreUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_alidoc_drug_store_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // errMessage + ErrMessage string `json:"err_message,omitempty" xml:"err_message,omitempty"` + // errCode + ErrKode string `json:"err_kode,omitempty" xml:"err_kode,omitempty"` + // success + Successed bool `json:"successed,omitempty" xml:"successed,omitempty"` +} diff --git a/model/alidoc/AlibabaAlihealthAlidocDrugStoreUpdateResponse.go b/model/alidoc/AlibabaAlihealthAlidocDrugStoreUpdateResponse.go deleted file mode 100644 index 6c443ff958..0000000000 --- a/model/alidoc/AlibabaAlihealthAlidocDrugStoreUpdateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alidoc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新药店 API返回值 -alibaba.alihealth.alidoc.drug.store.update - -药店信息更新接口 -*/ -type AlibabaAlihealthAlidocDrugStoreUpdateAPIResponse struct { - model.CommonResponse - AlibabaAlihealthAlidocDrugStoreUpdateResponse -} - -// 更新药店 成功返回结果 -type AlibabaAlihealthAlidocDrugStoreUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_alidoc_drug_store_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // errMessage - ErrMessage string `json:"err_message,omitempty" xml:"err_message,omitempty"` - // errCode - ErrKode string `json:"err_kode,omitempty" xml:"err_kode,omitempty"` - // success - Successed bool `json:"successed,omitempty" xml:"successed,omitempty"` -} diff --git a/model/alidoc/AlibabaAlihealthOutflowFrequencySaveorupdateAPIRequest.go b/model/alidoc/AlibabaAlihealthOutflowFrequencySaveorupdateAPIRequest.go new file mode 100644 index 0000000000..6dfd0ef394 --- /dev/null +++ b/model/alidoc/AlibabaAlihealthOutflowFrequencySaveorupdateAPIRequest.go @@ -0,0 +1,52 @@ +package alidoc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-药品频次同步接口 API请求 +alibaba.alihealth.outflow.frequency.saveorupdate + +处方外流-药品频次同步接口 +*/ +type AlibabaAlihealthOutflowFrequencySaveorupdateAPIRequest struct { + model.Params + // 系统自动生成 + _frequencyRequest *FrequencyRequest +} + +// 初始化AlibabaAlihealthOutflowFrequencySaveorupdateAPIRequest对象 +func NewAlibabaAlihealthOutflowFrequencySaveorupdateRequest() *AlibabaAlihealthOutflowFrequencySaveorupdateAPIRequest{ + return &AlibabaAlihealthOutflowFrequencySaveorupdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthOutflowFrequencySaveorupdateAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.outflow.frequency.saveorupdate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthOutflowFrequencySaveorupdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FrequencyRequest Setter +// 系统自动生成 +func (r *AlibabaAlihealthOutflowFrequencySaveorupdateAPIRequest) SetFrequencyRequest(_frequencyRequest *FrequencyRequest) error { + r._frequencyRequest = _frequencyRequest + r.Set("frequency_request", _frequencyRequest) + return nil +} + +// FrequencyRequest Getter +func (r AlibabaAlihealthOutflowFrequencySaveorupdateAPIRequest) GetFrequencyRequest() *FrequencyRequest { + return r._frequencyRequest +} diff --git a/model/alidoc/AlibabaAlihealthOutflowFrequencySaveorupdateAPIResponse.go b/model/alidoc/AlibabaAlihealthOutflowFrequencySaveorupdateAPIResponse.go new file mode 100644 index 0000000000..d1ae6c12fd --- /dev/null +++ b/model/alidoc/AlibabaAlihealthOutflowFrequencySaveorupdateAPIResponse.go @@ -0,0 +1,27 @@ +package alidoc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-药品频次同步接口 API返回值 +alibaba.alihealth.outflow.frequency.saveorupdate + +处方外流-药品频次同步接口 +*/ +type AlibabaAlihealthOutflowFrequencySaveorupdateAPIResponse struct { + model.CommonResponse + AlibabaAlihealthOutflowFrequencySaveorupdateAPIResponseModel +} + +// 处方外流-药品频次同步接口 成功返回结果 +type AlibabaAlihealthOutflowFrequencySaveorupdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_outflow_frequency_saveorupdate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/alidoc/AlibabaAlihealthOutflowFrequencySaveorupdateResponse.go b/model/alidoc/AlibabaAlihealthOutflowFrequencySaveorupdateResponse.go deleted file mode 100644 index e44ad89f93..0000000000 --- a/model/alidoc/AlibabaAlihealthOutflowFrequencySaveorupdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alidoc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -处方外流-药品频次同步接口 API返回值 -alibaba.alihealth.outflow.frequency.saveorupdate - -处方外流-药品频次同步接口 -*/ -type AlibabaAlihealthOutflowFrequencySaveorupdateAPIResponse struct { - model.CommonResponse - AlibabaAlihealthOutflowFrequencySaveorupdateResponse -} - -// 处方外流-药品频次同步接口 成功返回结果 -type AlibabaAlihealthOutflowFrequencySaveorupdateResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_outflow_frequency_saveorupdate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/alidoc/AlibabaAlihealthRxPrescriptionDetailAPIRequest.go b/model/alidoc/AlibabaAlihealthRxPrescriptionDetailAPIRequest.go new file mode 100644 index 0000000000..6f1a6e7413 --- /dev/null +++ b/model/alidoc/AlibabaAlihealthRxPrescriptionDetailAPIRequest.go @@ -0,0 +1,52 @@ +package alidoc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +处方详情 API请求 +alibaba.alihealth.rx.prescription.detail + +获取处方结构化信息 +*/ +type AlibabaAlihealthRxPrescriptionDetailAPIRequest struct { + model.Params + // 查询参数 + _query *RxPrescriptionQuery +} + +// 初始化AlibabaAlihealthRxPrescriptionDetailAPIRequest对象 +func NewAlibabaAlihealthRxPrescriptionDetailRequest() *AlibabaAlihealthRxPrescriptionDetailAPIRequest{ + return &AlibabaAlihealthRxPrescriptionDetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthRxPrescriptionDetailAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.rx.prescription.detail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthRxPrescriptionDetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 查询参数 +func (r *AlibabaAlihealthRxPrescriptionDetailAPIRequest) SetQuery(_query *RxPrescriptionQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaAlihealthRxPrescriptionDetailAPIRequest) GetQuery() *RxPrescriptionQuery { + return r._query +} diff --git a/model/alidoc/AlibabaAlihealthRxPrescriptionDetailAPIResponse.go b/model/alidoc/AlibabaAlihealthRxPrescriptionDetailAPIResponse.go new file mode 100644 index 0000000000..f00ba8c958 --- /dev/null +++ b/model/alidoc/AlibabaAlihealthRxPrescriptionDetailAPIResponse.go @@ -0,0 +1,27 @@ +package alidoc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +处方详情 API返回值 +alibaba.alihealth.rx.prescription.detail + +获取处方结构化信息 +*/ +type AlibabaAlihealthRxPrescriptionDetailAPIResponse struct { + model.CommonResponse + AlibabaAlihealthRxPrescriptionDetailAPIResponseModel +} + +// 处方详情 成功返回结果 +type AlibabaAlihealthRxPrescriptionDetailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_rx_prescription_detail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 数据集 + DataList []RxPrescriptionTopDto `json:"data_list,omitempty" xml:"data_list>rx_prescription_top_dto,omitempty"` +} diff --git a/model/alidoc/AlibabaAlihealthRxPrescriptionDetailResponse.go b/model/alidoc/AlibabaAlihealthRxPrescriptionDetailResponse.go deleted file mode 100644 index 6bb49fe6b6..0000000000 --- a/model/alidoc/AlibabaAlihealthRxPrescriptionDetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alidoc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -处方详情 API返回值 -alibaba.alihealth.rx.prescription.detail - -获取处方结构化信息 -*/ -type AlibabaAlihealthRxPrescriptionDetailAPIResponse struct { - model.CommonResponse - AlibabaAlihealthRxPrescriptionDetailResponse -} - -// 处方详情 成功返回结果 -type AlibabaAlihealthRxPrescriptionDetailResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_rx_prescription_detail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 数据集 - DataList []RxPrescriptionTopDto `json:"data_list,omitempty" xml:"data_list>rx_prescription_top_dto,omitempty"` -} diff --git a/model/aliexpress/AliexpressFeedPostPublishAPIRequest.go b/model/aliexpress/AliexpressFeedPostPublishAPIRequest.go new file mode 100644 index 0000000000..9a43b6db5c --- /dev/null +++ b/model/aliexpress/AliexpressFeedPostPublishAPIRequest.go @@ -0,0 +1,52 @@ +package aliexpress + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同步帖子 API请求 +aliexpress.feed.post.publish + +站外平台同步帖子至AE FEED域 +*/ +type AliexpressFeedPostPublishAPIRequest struct { + model.Params + // 站外导入内容请求参数 + _offsitePublishPostEntity *OffsitePublishPostEntity +} + +// 初始化AliexpressFeedPostPublishAPIRequest对象 +func NewAliexpressFeedPostPublishRequest() *AliexpressFeedPostPublishAPIRequest{ + return &AliexpressFeedPostPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressFeedPostPublishAPIRequest) GetApiMethodName() string { + return "aliexpress.feed.post.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressFeedPostPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OffsitePublishPostEntity Setter +// 站外导入内容请求参数 +func (r *AliexpressFeedPostPublishAPIRequest) SetOffsitePublishPostEntity(_offsitePublishPostEntity *OffsitePublishPostEntity) error { + r._offsitePublishPostEntity = _offsitePublishPostEntity + r.Set("offsite_publish_post_entity", _offsitePublishPostEntity) + return nil +} + +// OffsitePublishPostEntity Getter +func (r AliexpressFeedPostPublishAPIRequest) GetOffsitePublishPostEntity() *OffsitePublishPostEntity { + return r._offsitePublishPostEntity +} diff --git a/model/aliexpress/AliexpressFeedPostPublishAPIResponse.go b/model/aliexpress/AliexpressFeedPostPublishAPIResponse.go new file mode 100644 index 0000000000..6f1489c336 --- /dev/null +++ b/model/aliexpress/AliexpressFeedPostPublishAPIResponse.go @@ -0,0 +1,27 @@ +package aliexpress + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同步帖子 API返回值 +aliexpress.feed.post.publish + +站外平台同步帖子至AE FEED域 +*/ +type AliexpressFeedPostPublishAPIResponse struct { + model.CommonResponse + AliexpressFeedPostPublishAPIResponseModel +} + +// 同步帖子 成功返回结果 +type AliexpressFeedPostPublishAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_feed_post_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AliexpressFeedPostPublishResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliexpress/AliexpressSocialInsDirectresultUpdateAPIRequest.go b/model/aliexpress/AliexpressSocialInsDirectresultUpdateAPIRequest.go new file mode 100644 index 0000000000..d2b853872e --- /dev/null +++ b/model/aliexpress/AliexpressSocialInsDirectresultUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package aliexpress + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV更新INS私信发送的结果 API请求 +aliexpress.social.ins.directresult.update + +ISV更新INS私信发送的结果 +*/ +type AliexpressSocialInsDirectresultUpdateAPIRequest struct { + model.Params + // 回调id,在获取图片时会返回 + _id int64 + // 接受消息人INS_ID,也就是查询图片时的request_ins_id + _receiveInsId string + // ISV发送私信人的INS_ID + _senderInsId string + // 1.成功,2.失败。 + _result int64 +} + +// 初始化AliexpressSocialInsDirectresultUpdateAPIRequest对象 +func NewAliexpressSocialInsDirectresultUpdateRequest() *AliexpressSocialInsDirectresultUpdateAPIRequest{ + return &AliexpressSocialInsDirectresultUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSocialInsDirectresultUpdateAPIRequest) GetApiMethodName() string { + return "aliexpress.social.ins.directresult.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSocialInsDirectresultUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 回调id,在获取图片时会返回 +func (r *AliexpressSocialInsDirectresultUpdateAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AliexpressSocialInsDirectresultUpdateAPIRequest) GetId() int64 { + return r._id +} +// ReceiveInsId Setter +// 接受消息人INS_ID,也就是查询图片时的request_ins_id +func (r *AliexpressSocialInsDirectresultUpdateAPIRequest) SetReceiveInsId(_receiveInsId string) error { + r._receiveInsId = _receiveInsId + r.Set("receive_ins_id", _receiveInsId) + return nil +} + +// ReceiveInsId Getter +func (r AliexpressSocialInsDirectresultUpdateAPIRequest) GetReceiveInsId() string { + return r._receiveInsId +} +// SenderInsId Setter +// ISV发送私信人的INS_ID +func (r *AliexpressSocialInsDirectresultUpdateAPIRequest) SetSenderInsId(_senderInsId string) error { + r._senderInsId = _senderInsId + r.Set("sender_ins_id", _senderInsId) + return nil +} + +// SenderInsId Getter +func (r AliexpressSocialInsDirectresultUpdateAPIRequest) GetSenderInsId() string { + return r._senderInsId +} +// Result Setter +// 1.成功,2.失败。 +func (r *AliexpressSocialInsDirectresultUpdateAPIRequest) SetResult(_result int64) error { + r._result = _result + r.Set("result", _result) + return nil +} + +// Result Getter +func (r AliexpressSocialInsDirectresultUpdateAPIRequest) GetResult() int64 { + return r._result +} diff --git a/model/aliexpress/AliexpressSocialInsDirectresultUpdateAPIResponse.go b/model/aliexpress/AliexpressSocialInsDirectresultUpdateAPIResponse.go new file mode 100644 index 0000000000..a0af7b5a8d --- /dev/null +++ b/model/aliexpress/AliexpressSocialInsDirectresultUpdateAPIResponse.go @@ -0,0 +1,33 @@ +package aliexpress + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV更新INS私信发送的结果 API返回值 +aliexpress.social.ins.directresult.update + +ISV更新INS私信发送的结果 +*/ +type AliexpressSocialInsDirectresultUpdateAPIResponse struct { + model.CommonResponse + AliexpressSocialInsDirectresultUpdateAPIResponseModel +} + +// ISV更新INS私信发送的结果 成功返回结果 +type AliexpressSocialInsDirectresultUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_social_ins_directresult_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 更新是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 此次调用是否成功 + Successs bool `json:"successs,omitempty" xml:"successs,omitempty"` + // 错误码 + ErrorCodee string `json:"error_codee,omitempty" xml:"error_codee,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/aliexpress/AliexpressSocialInsDirectresultUpdateResponse.go b/model/aliexpress/AliexpressSocialInsDirectresultUpdateResponse.go deleted file mode 100644 index 0e8b1c2cc4..0000000000 --- a/model/aliexpress/AliexpressSocialInsDirectresultUpdateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package aliexpress - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV更新INS私信发送的结果 API返回值 -aliexpress.social.ins.directresult.update - -ISV更新INS私信发送的结果 -*/ -type AliexpressSocialInsDirectresultUpdateAPIResponse struct { - model.CommonResponse - AliexpressSocialInsDirectresultUpdateResponse -} - -// ISV更新INS私信发送的结果 成功返回结果 -type AliexpressSocialInsDirectresultUpdateResponse struct { - XMLName xml.Name `xml:"aliexpress_social_ins_directresult_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 更新是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 此次调用是否成功 - Successs bool `json:"successs,omitempty" xml:"successs,omitempty"` - // 错误码 - ErrorCodee string `json:"error_codee,omitempty" xml:"error_codee,omitempty"` - // 错误信息 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/aliexpresssumaitong/AliexpressTaxationCalculateOpenQueryAPIRequest.go b/model/aliexpresssumaitong/AliexpressTaxationCalculateOpenQueryAPIRequest.go new file mode 100644 index 0000000000..fb080e57b7 --- /dev/null +++ b/model/aliexpresssumaitong/AliexpressTaxationCalculateOpenQueryAPIRequest.go @@ -0,0 +1,52 @@ +package aliexpresssumaitong + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +关务所需的申报清关字段 API请求 +aliexpress.taxation.calculate.open.query + +关务所需的申报清关字段 +*/ +type AliexpressTaxationCalculateOpenQueryAPIRequest struct { + model.Params + // 主订单id + _orderId string +} + +// 初始化AliexpressTaxationCalculateOpenQueryAPIRequest对象 +func NewAliexpressTaxationCalculateOpenQueryRequest() *AliexpressTaxationCalculateOpenQueryAPIRequest{ + return &AliexpressTaxationCalculateOpenQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressTaxationCalculateOpenQueryAPIRequest) GetApiMethodName() string { + return "aliexpress.taxation.calculate.open.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressTaxationCalculateOpenQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 主订单id +func (r *AliexpressTaxationCalculateOpenQueryAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AliexpressTaxationCalculateOpenQueryAPIRequest) GetOrderId() string { + return r._orderId +} diff --git a/model/aliexpresssumaitong/AliexpressTaxationCalculateOpenQueryAPIResponse.go b/model/aliexpresssumaitong/AliexpressTaxationCalculateOpenQueryAPIResponse.go new file mode 100644 index 0000000000..6e0e9a07b5 --- /dev/null +++ b/model/aliexpresssumaitong/AliexpressTaxationCalculateOpenQueryAPIResponse.go @@ -0,0 +1,27 @@ +package aliexpresssumaitong + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +关务所需的申报清关字段 API返回值 +aliexpress.taxation.calculate.open.query + +关务所需的申报清关字段 +*/ +type AliexpressTaxationCalculateOpenQueryAPIResponse struct { + model.CommonResponse + AliexpressTaxationCalculateOpenQueryAPIResponseModel +} + +// 关务所需的申报清关字段 成功返回结果 +type AliexpressTaxationCalculateOpenQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_taxation_calculate_open_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *ResponseDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliexpresssumaitong/AliexpressTaxationCalculateOpenQueryResponse.go b/model/aliexpresssumaitong/AliexpressTaxationCalculateOpenQueryResponse.go deleted file mode 100644 index 514f165ade..0000000000 --- a/model/aliexpresssumaitong/AliexpressTaxationCalculateOpenQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliexpresssumaitong - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -关务所需的申报清关字段 API返回值 -aliexpress.taxation.calculate.open.query - -关务所需的申报清关字段 -*/ -type AliexpressTaxationCalculateOpenQueryAPIResponse struct { - model.CommonResponse - AliexpressTaxationCalculateOpenQueryResponse -} - -// 关务所需的申报清关字段 成功返回结果 -type AliexpressTaxationCalculateOpenQueryResponse struct { - XMLName xml.Name `xml:"aliexpress_taxation_calculate_open_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *ResponseDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliexpresssumaitong/AliexpressTaxationPlatformOpenGetAPIRequest.go b/model/aliexpresssumaitong/AliexpressTaxationPlatformOpenGetAPIRequest.go new file mode 100644 index 0000000000..db57dca559 --- /dev/null +++ b/model/aliexpresssumaitong/AliexpressTaxationPlatformOpenGetAPIRequest.go @@ -0,0 +1,38 @@ +package aliexpresssumaitong + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +平台固定参数获取 API请求 +aliexpress.taxation.platform.open.get + +Aliexpress开放平台固定参数获取 +*/ +type AliexpressTaxationPlatformOpenGetAPIRequest struct { + model.Params +} + +// 初始化AliexpressTaxationPlatformOpenGetAPIRequest对象 +func NewAliexpressTaxationPlatformOpenGetRequest() *AliexpressTaxationPlatformOpenGetAPIRequest{ + return &AliexpressTaxationPlatformOpenGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressTaxationPlatformOpenGetAPIRequest) GetApiMethodName() string { + return "aliexpress.taxation.platform.open.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressTaxationPlatformOpenGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/aliexpresssumaitong/AliexpressTaxationPlatformOpenGetAPIResponse.go b/model/aliexpresssumaitong/AliexpressTaxationPlatformOpenGetAPIResponse.go new file mode 100644 index 0000000000..e955737a9a --- /dev/null +++ b/model/aliexpresssumaitong/AliexpressTaxationPlatformOpenGetAPIResponse.go @@ -0,0 +1,27 @@ +package aliexpresssumaitong + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +平台固定参数获取 API返回值 +aliexpress.taxation.platform.open.get + +Aliexpress开放平台固定参数获取 +*/ +type AliexpressTaxationPlatformOpenGetAPIResponse struct { + model.CommonResponse + AliexpressTaxationPlatformOpenGetAPIResponseModel +} + +// 平台固定参数获取 成功返回结果 +type AliexpressTaxationPlatformOpenGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_taxation_platform_open_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *ResponseDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliexpresssumaitong/AliexpressTaxationPlatformOpenGetResponse.go b/model/aliexpresssumaitong/AliexpressTaxationPlatformOpenGetResponse.go deleted file mode 100644 index 2457946eee..0000000000 --- a/model/aliexpresssumaitong/AliexpressTaxationPlatformOpenGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliexpresssumaitong - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -平台固定参数获取 API返回值 -aliexpress.taxation.platform.open.get - -Aliexpress开放平台固定参数获取 -*/ -type AliexpressTaxationPlatformOpenGetAPIResponse struct { - model.CommonResponse - AliexpressTaxationPlatformOpenGetResponse -} - -// 平台固定参数获取 成功返回结果 -type AliexpressTaxationPlatformOpenGetResponse struct { - XMLName xml.Name `xml:"aliexpress_taxation_platform_open_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *ResponseDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliexpresssumaitong/AliexpressTradeOrderOpenCheckAPIRequest.go b/model/aliexpresssumaitong/AliexpressTradeOrderOpenCheckAPIRequest.go new file mode 100644 index 0000000000..044c30aa70 --- /dev/null +++ b/model/aliexpresssumaitong/AliexpressTradeOrderOpenCheckAPIRequest.go @@ -0,0 +1,66 @@ +package aliexpresssumaitong + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Aliexpress开放平台下单前置检查 API请求 +aliexpress.trade.order.open.check + +Aliexpress开放平台下单前通过下单入参获取token +*/ +type AliexpressTradeOrderOpenCheckAPIRequest struct { + model.Params + // 预下单入参 + _paramPreCreateOrderRequest *PreCreateOrderRequest + // 客户端信息 + _paramClientInfo *ClientInfo +} + +// 初始化AliexpressTradeOrderOpenCheckAPIRequest对象 +func NewAliexpressTradeOrderOpenCheckRequest() *AliexpressTradeOrderOpenCheckAPIRequest{ + return &AliexpressTradeOrderOpenCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressTradeOrderOpenCheckAPIRequest) GetApiMethodName() string { + return "aliexpress.trade.order.open.check" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressTradeOrderOpenCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamPreCreateOrderRequest Setter +// 预下单入参 +func (r *AliexpressTradeOrderOpenCheckAPIRequest) SetParamPreCreateOrderRequest(_paramPreCreateOrderRequest *PreCreateOrderRequest) error { + r._paramPreCreateOrderRequest = _paramPreCreateOrderRequest + r.Set("param_pre_create_order_request", _paramPreCreateOrderRequest) + return nil +} + +// ParamPreCreateOrderRequest Getter +func (r AliexpressTradeOrderOpenCheckAPIRequest) GetParamPreCreateOrderRequest() *PreCreateOrderRequest { + return r._paramPreCreateOrderRequest +} +// ParamClientInfo Setter +// 客户端信息 +func (r *AliexpressTradeOrderOpenCheckAPIRequest) SetParamClientInfo(_paramClientInfo *ClientInfo) error { + r._paramClientInfo = _paramClientInfo + r.Set("param_client_info", _paramClientInfo) + return nil +} + +// ParamClientInfo Getter +func (r AliexpressTradeOrderOpenCheckAPIRequest) GetParamClientInfo() *ClientInfo { + return r._paramClientInfo +} diff --git a/model/aliexpresssumaitong/AliexpressTradeOrderOpenCheckAPIResponse.go b/model/aliexpresssumaitong/AliexpressTradeOrderOpenCheckAPIResponse.go new file mode 100644 index 0000000000..ae274170c3 --- /dev/null +++ b/model/aliexpresssumaitong/AliexpressTradeOrderOpenCheckAPIResponse.go @@ -0,0 +1,27 @@ +package aliexpresssumaitong + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Aliexpress开放平台下单前置检查 API返回值 +aliexpress.trade.order.open.check + +Aliexpress开放平台下单前通过下单入参获取token +*/ +type AliexpressTradeOrderOpenCheckAPIResponse struct { + model.CommonResponse + AliexpressTradeOrderOpenCheckAPIResponseModel +} + +// Aliexpress开放平台下单前置检查 成功返回结果 +type AliexpressTradeOrderOpenCheckAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_trade_order_open_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 预下单返回值 + Result *PreCheckResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliexpresssumaitong/AliexpressTradeOrderOpenCheckResponse.go b/model/aliexpresssumaitong/AliexpressTradeOrderOpenCheckResponse.go deleted file mode 100644 index aa10f64a13..0000000000 --- a/model/aliexpresssumaitong/AliexpressTradeOrderOpenCheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliexpresssumaitong - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Aliexpress开放平台下单前置检查 API返回值 -aliexpress.trade.order.open.check - -Aliexpress开放平台下单前通过下单入参获取token -*/ -type AliexpressTradeOrderOpenCheckAPIResponse struct { - model.CommonResponse - AliexpressTradeOrderOpenCheckResponse -} - -// Aliexpress开放平台下单前置检查 成功返回结果 -type AliexpressTradeOrderOpenCheckResponse struct { - XMLName xml.Name `xml:"aliexpress_trade_order_open_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 预下单返回值 - Result *PreCheckResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliexpresssumaitong/AliexpressTradeOrderOpenQueryAPIRequest.go b/model/aliexpresssumaitong/AliexpressTradeOrderOpenQueryAPIRequest.go new file mode 100644 index 0000000000..4421702495 --- /dev/null +++ b/model/aliexpresssumaitong/AliexpressTradeOrderOpenQueryAPIRequest.go @@ -0,0 +1,108 @@ +package aliexpresssumaitong + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Aliexpress开放平台订单查询 API请求 +aliexpress.trade.order.open.query + +Aliexpress开放平台订单信息查询 +*/ +type AliexpressTradeOrderOpenQueryAPIRequest struct { + model.Params + // 买家用户id + _buyerId int64 + // 订单号 + _orderIds []int64 + // 外部订单号 + _outIds []string + // 小程序appId + _openAppKey string + // 业务编码 + _bizCode string +} + +// 初始化AliexpressTradeOrderOpenQueryAPIRequest对象 +func NewAliexpressTradeOrderOpenQueryRequest() *AliexpressTradeOrderOpenQueryAPIRequest{ + return &AliexpressTradeOrderOpenQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressTradeOrderOpenQueryAPIRequest) GetApiMethodName() string { + return "aliexpress.trade.order.open.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressTradeOrderOpenQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BuyerId Setter +// 买家用户id +func (r *AliexpressTradeOrderOpenQueryAPIRequest) SetBuyerId(_buyerId int64) error { + r._buyerId = _buyerId + r.Set("buyer_id", _buyerId) + return nil +} + +// BuyerId Getter +func (r AliexpressTradeOrderOpenQueryAPIRequest) GetBuyerId() int64 { + return r._buyerId +} +// OrderIds Setter +// 订单号 +func (r *AliexpressTradeOrderOpenQueryAPIRequest) SetOrderIds(_orderIds []int64) error { + r._orderIds = _orderIds + r.Set("order_ids", _orderIds) + return nil +} + +// OrderIds Getter +func (r AliexpressTradeOrderOpenQueryAPIRequest) GetOrderIds() []int64 { + return r._orderIds +} +// OutIds Setter +// 外部订单号 +func (r *AliexpressTradeOrderOpenQueryAPIRequest) SetOutIds(_outIds []string) error { + r._outIds = _outIds + r.Set("out_ids", _outIds) + return nil +} + +// OutIds Getter +func (r AliexpressTradeOrderOpenQueryAPIRequest) GetOutIds() []string { + return r._outIds +} +// OpenAppKey Setter +// 小程序appId +func (r *AliexpressTradeOrderOpenQueryAPIRequest) SetOpenAppKey(_openAppKey string) error { + r._openAppKey = _openAppKey + r.Set("open_app_key", _openAppKey) + return nil +} + +// OpenAppKey Getter +func (r AliexpressTradeOrderOpenQueryAPIRequest) GetOpenAppKey() string { + return r._openAppKey +} +// BizCode Setter +// 业务编码 +func (r *AliexpressTradeOrderOpenQueryAPIRequest) SetBizCode(_bizCode string) error { + r._bizCode = _bizCode + r.Set("biz_code", _bizCode) + return nil +} + +// BizCode Getter +func (r AliexpressTradeOrderOpenQueryAPIRequest) GetBizCode() string { + return r._bizCode +} diff --git a/model/aliexpresssumaitong/AliexpressTradeOrderOpenQueryAPIResponse.go b/model/aliexpresssumaitong/AliexpressTradeOrderOpenQueryAPIResponse.go new file mode 100644 index 0000000000..b4b90b75ad --- /dev/null +++ b/model/aliexpresssumaitong/AliexpressTradeOrderOpenQueryAPIResponse.go @@ -0,0 +1,27 @@ +package aliexpresssumaitong + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Aliexpress开放平台订单查询 API返回值 +aliexpress.trade.order.open.query + +Aliexpress开放平台订单信息查询 +*/ +type AliexpressTradeOrderOpenQueryAPIResponse struct { + model.CommonResponse + AliexpressTradeOrderOpenQueryAPIResponseModel +} + +// Aliexpress开放平台订单查询 成功返回结果 +type AliexpressTradeOrderOpenQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_trade_order_open_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单查询接口返回值 + Result *OrderQueryResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliexpresssumaitong/AliexpressTradeOrderOpenQueryResponse.go b/model/aliexpresssumaitong/AliexpressTradeOrderOpenQueryResponse.go deleted file mode 100644 index ed216c5d81..0000000000 --- a/model/aliexpresssumaitong/AliexpressTradeOrderOpenQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliexpresssumaitong - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Aliexpress开放平台订单查询 API返回值 -aliexpress.trade.order.open.query - -Aliexpress开放平台订单信息查询 -*/ -type AliexpressTradeOrderOpenQueryAPIResponse struct { - model.CommonResponse - AliexpressTradeOrderOpenQueryResponse -} - -// Aliexpress开放平台订单查询 成功返回结果 -type AliexpressTradeOrderOpenQueryResponse struct { - XMLName xml.Name `xml:"aliexpress_trade_order_open_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单查询接口返回值 - Result *OrderQueryResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aligenie/AlibabaAilabsAligenieDeviceUnbindAPIRequest.go b/model/aligenie/AlibabaAilabsAligenieDeviceUnbindAPIRequest.go new file mode 100644 index 0000000000..459df295fc --- /dev/null +++ b/model/aligenie/AlibabaAilabsAligenieDeviceUnbindAPIRequest.go @@ -0,0 +1,94 @@ +package aligenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设备解绑操作接口 API请求 +alibaba.ailabs.aligenie.device.unbind + +让开发者能根据设备ID进行解绑操作的接口 +*/ +type AlibabaAilabsAligenieDeviceUnbindAPIRequest struct { + model.Params + // 扩展信息,用于存放APP类型等 + _ext string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 账户体系隔离字符串 + _schema string + // 欲解绑的设备ID + _uuid string +} + +// 初始化AlibabaAilabsAligenieDeviceUnbindAPIRequest对象 +func NewAlibabaAilabsAligenieDeviceUnbindRequest() *AlibabaAilabsAligenieDeviceUnbindAPIRequest{ + return &AlibabaAilabsAligenieDeviceUnbindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsAligenieDeviceUnbindAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.aligenie.device.unbind" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsAligenieDeviceUnbindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *AlibabaAilabsAligenieDeviceUnbindAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r AlibabaAilabsAligenieDeviceUnbindAPIRequest) GetExt() string { + return r._ext +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *AlibabaAilabsAligenieDeviceUnbindAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaAilabsAligenieDeviceUnbindAPIRequest) GetUserId() string { + return r._userId +} +// Schema Setter +// 账户体系隔离字符串 +func (r *AlibabaAilabsAligenieDeviceUnbindAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r AlibabaAilabsAligenieDeviceUnbindAPIRequest) GetSchema() string { + return r._schema +} +// Uuid Setter +// 欲解绑的设备ID +func (r *AlibabaAilabsAligenieDeviceUnbindAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaAilabsAligenieDeviceUnbindAPIRequest) GetUuid() string { + return r._uuid +} diff --git a/model/aligenie/AlibabaAilabsAligenieDeviceUnbindAPIResponse.go b/model/aligenie/AlibabaAilabsAligenieDeviceUnbindAPIResponse.go new file mode 100644 index 0000000000..df244cff72 --- /dev/null +++ b/model/aligenie/AlibabaAilabsAligenieDeviceUnbindAPIResponse.go @@ -0,0 +1,27 @@ +package aligenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设备解绑操作接口 API返回值 +alibaba.ailabs.aligenie.device.unbind + +让开发者能根据设备ID进行解绑操作的接口 +*/ +type AlibabaAilabsAligenieDeviceUnbindAPIResponse struct { + model.CommonResponse + AlibabaAilabsAligenieDeviceUnbindAPIResponseModel +} + +// 设备解绑操作接口 成功返回结果 +type AlibabaAilabsAligenieDeviceUnbindAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_aligenie_device_unbind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 解绑是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aligenie/AlibabaAilabsAligenieDeviceUnbindResponse.go b/model/aligenie/AlibabaAilabsAligenieDeviceUnbindResponse.go deleted file mode 100644 index e1bba643ff..0000000000 --- a/model/aligenie/AlibabaAilabsAligenieDeviceUnbindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aligenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设备解绑操作接口 API返回值 -alibaba.ailabs.aligenie.device.unbind - -让开发者能根据设备ID进行解绑操作的接口 -*/ -type AlibabaAilabsAligenieDeviceUnbindAPIResponse struct { - model.CommonResponse - AlibabaAilabsAligenieDeviceUnbindResponse -} - -// 设备解绑操作接口 成功返回结果 -type AlibabaAilabsAligenieDeviceUnbindResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_aligenie_device_unbind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 解绑是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth/AlibabaAlihealthPrescriptionAuthGetAPIRequest.go b/model/alihealth/AlibabaAlihealthPrescriptionAuthGetAPIRequest.go new file mode 100644 index 0000000000..e20a094460 --- /dev/null +++ b/model/alihealth/AlibabaAlihealthPrescriptionAuthGetAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康处方平台获取授权码 API请求 +alibaba.alihealth.prescription.auth.get + +获取处方用户授权 +*/ +type AlibabaAlihealthPrescriptionAuthGetAPIRequest struct { + model.Params + // 请求入参 + _prescriptionRequest *PrescriptionDoctorAuthRequest +} + +// 初始化AlibabaAlihealthPrescriptionAuthGetAPIRequest对象 +func NewAlibabaAlihealthPrescriptionAuthGetRequest() *AlibabaAlihealthPrescriptionAuthGetAPIRequest{ + return &AlibabaAlihealthPrescriptionAuthGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthPrescriptionAuthGetAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.prescription.auth.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthPrescriptionAuthGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PrescriptionRequest Setter +// 请求入参 +func (r *AlibabaAlihealthPrescriptionAuthGetAPIRequest) SetPrescriptionRequest(_prescriptionRequest *PrescriptionDoctorAuthRequest) error { + r._prescriptionRequest = _prescriptionRequest + r.Set("prescription_request", _prescriptionRequest) + return nil +} + +// PrescriptionRequest Getter +func (r AlibabaAlihealthPrescriptionAuthGetAPIRequest) GetPrescriptionRequest() *PrescriptionDoctorAuthRequest { + return r._prescriptionRequest +} diff --git a/model/alihealth/AlibabaAlihealthPrescriptionAuthGetAPIResponse.go b/model/alihealth/AlibabaAlihealthPrescriptionAuthGetAPIResponse.go new file mode 100644 index 0000000000..fe82627918 --- /dev/null +++ b/model/alihealth/AlibabaAlihealthPrescriptionAuthGetAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康处方平台获取授权码 API返回值 +alibaba.alihealth.prescription.auth.get + +获取处方用户授权 +*/ +type AlibabaAlihealthPrescriptionAuthGetAPIResponse struct { + model.CommonResponse + AlibabaAlihealthPrescriptionAuthGetAPIResponseModel +} + +// 阿里健康处方平台获取授权码 成功返回结果 +type AlibabaAlihealthPrescriptionAuthGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_prescription_auth_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/alihealth/AlibabaAlihealthPrescriptionAuthGetResponse.go b/model/alihealth/AlibabaAlihealthPrescriptionAuthGetResponse.go deleted file mode 100644 index 9b46f93f29..0000000000 --- a/model/alihealth/AlibabaAlihealthPrescriptionAuthGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里健康处方平台获取授权码 API返回值 -alibaba.alihealth.prescription.auth.get - -获取处方用户授权 -*/ -type AlibabaAlihealthPrescriptionAuthGetAPIResponse struct { - model.CommonResponse - AlibabaAlihealthPrescriptionAuthGetResponse -} - -// 阿里健康处方平台获取授权码 成功返回结果 -type AlibabaAlihealthPrescriptionAuthGetResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_prescription_auth_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthBookingReserveCancelAPIRequest.go b/model/alihealth2/AlibabaAlihealthBookingReserveCancelAPIRequest.go new file mode 100644 index 0000000000..5e00331e77 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthBookingReserveCancelAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消预约 API请求 +alibaba.alihealth.booking.reserve.cancel + +消费医疗统一预约平台,ISV取消预约 +*/ +type AlibabaAlihealthBookingReserveCancelAPIRequest struct { + model.Params + // cancel + _cancel *IsvReserveRequest +} + +// 初始化AlibabaAlihealthBookingReserveCancelAPIRequest对象 +func NewAlibabaAlihealthBookingReserveCancelRequest() *AlibabaAlihealthBookingReserveCancelAPIRequest{ + return &AlibabaAlihealthBookingReserveCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthBookingReserveCancelAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.booking.reserve.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthBookingReserveCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Cancel Setter +// cancel +func (r *AlibabaAlihealthBookingReserveCancelAPIRequest) SetCancel(_cancel *IsvReserveRequest) error { + r._cancel = _cancel + r.Set("cancel", _cancel) + return nil +} + +// Cancel Getter +func (r AlibabaAlihealthBookingReserveCancelAPIRequest) GetCancel() *IsvReserveRequest { + return r._cancel +} diff --git a/model/alihealth2/AlibabaAlihealthBookingReserveCancelAPIResponse.go b/model/alihealth2/AlibabaAlihealthBookingReserveCancelAPIResponse.go new file mode 100644 index 0000000000..f0d9d49357 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthBookingReserveCancelAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消预约 API返回值 +alibaba.alihealth.booking.reserve.cancel + +消费医疗统一预约平台,ISV取消预约 +*/ +type AlibabaAlihealthBookingReserveCancelAPIResponse struct { + model.CommonResponse + AlibabaAlihealthBookingReserveCancelAPIResponseModel +} + +// 取消预约 成功返回结果 +type AlibabaAlihealthBookingReserveCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_booking_reserve_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthBookingReserveCancelResponse.go b/model/alihealth2/AlibabaAlihealthBookingReserveCancelResponse.go deleted file mode 100644 index 25cd5d9032..0000000000 --- a/model/alihealth2/AlibabaAlihealthBookingReserveCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消预约 API返回值 -alibaba.alihealth.booking.reserve.cancel - -消费医疗统一预约平台,ISV取消预约 -*/ -type AlibabaAlihealthBookingReserveCancelAPIResponse struct { - model.CommonResponse - AlibabaAlihealthBookingReserveCancelResponse -} - -// 取消预约 成功返回结果 -type AlibabaAlihealthBookingReserveCancelResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_booking_reserve_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthBookingReserveCheckinAPIRequest.go b/model/alihealth2/AlibabaAlihealthBookingReserveCheckinAPIRequest.go new file mode 100644 index 0000000000..c7e7e6cd16 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthBookingReserveCheckinAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +确认到店 API请求 +alibaba.alihealth.booking.reserve.checkin + +消费医疗统一预约平台,ISV 确认到店 +*/ +type AlibabaAlihealthBookingReserveCheckinAPIRequest struct { + model.Params + // check_in + _checkIn *IsvReserveRequest +} + +// 初始化AlibabaAlihealthBookingReserveCheckinAPIRequest对象 +func NewAlibabaAlihealthBookingReserveCheckinRequest() *AlibabaAlihealthBookingReserveCheckinAPIRequest{ + return &AlibabaAlihealthBookingReserveCheckinAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthBookingReserveCheckinAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.booking.reserve.checkin" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthBookingReserveCheckinAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CheckIn Setter +// check_in +func (r *AlibabaAlihealthBookingReserveCheckinAPIRequest) SetCheckIn(_checkIn *IsvReserveRequest) error { + r._checkIn = _checkIn + r.Set("check_in", _checkIn) + return nil +} + +// CheckIn Getter +func (r AlibabaAlihealthBookingReserveCheckinAPIRequest) GetCheckIn() *IsvReserveRequest { + return r._checkIn +} diff --git a/model/alihealth2/AlibabaAlihealthBookingReserveCheckinAPIResponse.go b/model/alihealth2/AlibabaAlihealthBookingReserveCheckinAPIResponse.go new file mode 100644 index 0000000000..05a169b0bd --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthBookingReserveCheckinAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +确认到店 API返回值 +alibaba.alihealth.booking.reserve.checkin + +消费医疗统一预约平台,ISV 确认到店 +*/ +type AlibabaAlihealthBookingReserveCheckinAPIResponse struct { + model.CommonResponse + AlibabaAlihealthBookingReserveCheckinAPIResponseModel +} + +// 确认到店 成功返回结果 +type AlibabaAlihealthBookingReserveCheckinAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_booking_reserve_checkin_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthBookingReserveCheckinResponse.go b/model/alihealth2/AlibabaAlihealthBookingReserveCheckinResponse.go deleted file mode 100644 index 7291822502..0000000000 --- a/model/alihealth2/AlibabaAlihealthBookingReserveCheckinResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -确认到店 API返回值 -alibaba.alihealth.booking.reserve.checkin - -消费医疗统一预约平台,ISV 确认到店 -*/ -type AlibabaAlihealthBookingReserveCheckinAPIResponse struct { - model.CommonResponse - AlibabaAlihealthBookingReserveCheckinResponse -} - -// 确认到店 成功返回结果 -type AlibabaAlihealthBookingReserveCheckinResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_booking_reserve_checkin_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthBookingReserveConfirmAPIRequest.go b/model/alihealth2/AlibabaAlihealthBookingReserveConfirmAPIRequest.go new file mode 100644 index 0000000000..f931923359 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthBookingReserveConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +确认预约 API请求 +alibaba.alihealth.booking.reserve.confirm + +确认预约 +*/ +type AlibabaAlihealthBookingReserveConfirmAPIRequest struct { + model.Params + // 参数 + _confirm *IsvReserveRequest +} + +// 初始化AlibabaAlihealthBookingReserveConfirmAPIRequest对象 +func NewAlibabaAlihealthBookingReserveConfirmRequest() *AlibabaAlihealthBookingReserveConfirmAPIRequest{ + return &AlibabaAlihealthBookingReserveConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthBookingReserveConfirmAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.booking.reserve.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthBookingReserveConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Confirm Setter +// 参数 +func (r *AlibabaAlihealthBookingReserveConfirmAPIRequest) SetConfirm(_confirm *IsvReserveRequest) error { + r._confirm = _confirm + r.Set("confirm", _confirm) + return nil +} + +// Confirm Getter +func (r AlibabaAlihealthBookingReserveConfirmAPIRequest) GetConfirm() *IsvReserveRequest { + return r._confirm +} diff --git a/model/alihealth2/AlibabaAlihealthBookingReserveConfirmAPIResponse.go b/model/alihealth2/AlibabaAlihealthBookingReserveConfirmAPIResponse.go new file mode 100644 index 0000000000..e60797824f --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthBookingReserveConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +确认预约 API返回值 +alibaba.alihealth.booking.reserve.confirm + +确认预约 +*/ +type AlibabaAlihealthBookingReserveConfirmAPIResponse struct { + model.CommonResponse + AlibabaAlihealthBookingReserveConfirmAPIResponseModel +} + +// 确认预约 成功返回结果 +type AlibabaAlihealthBookingReserveConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_booking_reserve_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthBookingReserveConfirmResponse.go b/model/alihealth2/AlibabaAlihealthBookingReserveConfirmResponse.go deleted file mode 100644 index cb2cd6bb07..0000000000 --- a/model/alihealth2/AlibabaAlihealthBookingReserveConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -确认预约 API返回值 -alibaba.alihealth.booking.reserve.confirm - -确认预约 -*/ -type AlibabaAlihealthBookingReserveConfirmAPIResponse struct { - model.CommonResponse - AlibabaAlihealthBookingReserveConfirmResponse -} - -// 确认预约 成功返回结果 -type AlibabaAlihealthBookingReserveConfirmResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_booking_reserve_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthBookingReserveModifyAPIRequest.go b/model/alihealth2/AlibabaAlihealthBookingReserveModifyAPIRequest.go new file mode 100644 index 0000000000..79b4092840 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthBookingReserveModifyAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改预约 API请求 +alibaba.alihealth.booking.reserve.modify + +消费医疗统一预约平台,取消预约 +*/ +type AlibabaAlihealthBookingReserveModifyAPIRequest struct { + model.Params + // modify + _modify *IsvReserveRequest +} + +// 初始化AlibabaAlihealthBookingReserveModifyAPIRequest对象 +func NewAlibabaAlihealthBookingReserveModifyRequest() *AlibabaAlihealthBookingReserveModifyAPIRequest{ + return &AlibabaAlihealthBookingReserveModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthBookingReserveModifyAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.booking.reserve.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthBookingReserveModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Modify Setter +// modify +func (r *AlibabaAlihealthBookingReserveModifyAPIRequest) SetModify(_modify *IsvReserveRequest) error { + r._modify = _modify + r.Set("modify", _modify) + return nil +} + +// Modify Getter +func (r AlibabaAlihealthBookingReserveModifyAPIRequest) GetModify() *IsvReserveRequest { + return r._modify +} diff --git a/model/alihealth2/AlibabaAlihealthBookingReserveModifyAPIResponse.go b/model/alihealth2/AlibabaAlihealthBookingReserveModifyAPIResponse.go new file mode 100644 index 0000000000..cad129fc7f --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthBookingReserveModifyAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改预约 API返回值 +alibaba.alihealth.booking.reserve.modify + +消费医疗统一预约平台,取消预约 +*/ +type AlibabaAlihealthBookingReserveModifyAPIResponse struct { + model.CommonResponse + AlibabaAlihealthBookingReserveModifyAPIResponseModel +} + +// 修改预约 成功返回结果 +type AlibabaAlihealthBookingReserveModifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_booking_reserve_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthBookingReserveModifyResponse.go b/model/alihealth2/AlibabaAlihealthBookingReserveModifyResponse.go deleted file mode 100644 index 9ef218a06f..0000000000 --- a/model/alihealth2/AlibabaAlihealthBookingReserveModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改预约 API返回值 -alibaba.alihealth.booking.reserve.modify - -消费医疗统一预约平台,取消预约 -*/ -type AlibabaAlihealthBookingReserveModifyAPIResponse struct { - model.CommonResponse - AlibabaAlihealthBookingReserveModifyResponse -} - -// 修改预约 成功返回结果 -type AlibabaAlihealthBookingReserveModifyResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_booking_reserve_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthBookingReserveRiseAPIRequest.go b/model/alihealth2/AlibabaAlihealthBookingReserveRiseAPIRequest.go new file mode 100644 index 0000000000..0e2ef71491 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthBookingReserveRiseAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV 新增/修改复诊预约信息 API请求 +alibaba.alihealth.booking.reserve.rise + +ISV 新增/修改复诊预约信息 +*/ +type AlibabaAlihealthBookingReserveRiseAPIRequest struct { + model.Params + // 参数 + _riseRequest *IsvRiseReserveRequest +} + +// 初始化AlibabaAlihealthBookingReserveRiseAPIRequest对象 +func NewAlibabaAlihealthBookingReserveRiseRequest() *AlibabaAlihealthBookingReserveRiseAPIRequest{ + return &AlibabaAlihealthBookingReserveRiseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthBookingReserveRiseAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.booking.reserve.rise" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthBookingReserveRiseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RiseRequest Setter +// 参数 +func (r *AlibabaAlihealthBookingReserveRiseAPIRequest) SetRiseRequest(_riseRequest *IsvRiseReserveRequest) error { + r._riseRequest = _riseRequest + r.Set("rise_request", _riseRequest) + return nil +} + +// RiseRequest Getter +func (r AlibabaAlihealthBookingReserveRiseAPIRequest) GetRiseRequest() *IsvRiseReserveRequest { + return r._riseRequest +} diff --git a/model/alihealth2/AlibabaAlihealthBookingReserveRiseAPIResponse.go b/model/alihealth2/AlibabaAlihealthBookingReserveRiseAPIResponse.go new file mode 100644 index 0000000000..3485e9c648 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthBookingReserveRiseAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV 新增/修改复诊预约信息 API返回值 +alibaba.alihealth.booking.reserve.rise + +ISV 新增/修改复诊预约信息 +*/ +type AlibabaAlihealthBookingReserveRiseAPIResponse struct { + model.CommonResponse + AlibabaAlihealthBookingReserveRiseAPIResponseModel +} + +// ISV 新增/修改复诊预约信息 成功返回结果 +type AlibabaAlihealthBookingReserveRiseAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_booking_reserve_rise_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthBookingReserveRiseResponse.go b/model/alihealth2/AlibabaAlihealthBookingReserveRiseResponse.go deleted file mode 100644 index f5f4ebd614..0000000000 --- a/model/alihealth2/AlibabaAlihealthBookingReserveRiseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV 新增/修改复诊预约信息 API返回值 -alibaba.alihealth.booking.reserve.rise - -ISV 新增/修改复诊预约信息 -*/ -type AlibabaAlihealthBookingReserveRiseAPIResponse struct { - model.CommonResponse - AlibabaAlihealthBookingReserveRiseResponse -} - -// ISV 新增/修改复诊预约信息 成功返回结果 -type AlibabaAlihealthBookingReserveRiseResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_booking_reserve_rise_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthBookingReserveTreatAPIRequest.go b/model/alihealth2/AlibabaAlihealthBookingReserveTreatAPIRequest.go new file mode 100644 index 0000000000..fec6136c91 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthBookingReserveTreatAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +确认就诊 API请求 +alibaba.alihealth.booking.reserve.treat + +统一预约平台,ISV确认就诊 +*/ +type AlibabaAlihealthBookingReserveTreatAPIRequest struct { + model.Params + // treat + _treat *IsvReserveRequest +} + +// 初始化AlibabaAlihealthBookingReserveTreatAPIRequest对象 +func NewAlibabaAlihealthBookingReserveTreatRequest() *AlibabaAlihealthBookingReserveTreatAPIRequest{ + return &AlibabaAlihealthBookingReserveTreatAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthBookingReserveTreatAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.booking.reserve.treat" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthBookingReserveTreatAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Treat Setter +// treat +func (r *AlibabaAlihealthBookingReserveTreatAPIRequest) SetTreat(_treat *IsvReserveRequest) error { + r._treat = _treat + r.Set("treat", _treat) + return nil +} + +// Treat Getter +func (r AlibabaAlihealthBookingReserveTreatAPIRequest) GetTreat() *IsvReserveRequest { + return r._treat +} diff --git a/model/alihealth2/AlibabaAlihealthBookingReserveTreatAPIResponse.go b/model/alihealth2/AlibabaAlihealthBookingReserveTreatAPIResponse.go new file mode 100644 index 0000000000..ee55387e0d --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthBookingReserveTreatAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +确认就诊 API返回值 +alibaba.alihealth.booking.reserve.treat + +统一预约平台,ISV确认就诊 +*/ +type AlibabaAlihealthBookingReserveTreatAPIResponse struct { + model.CommonResponse + AlibabaAlihealthBookingReserveTreatAPIResponseModel +} + +// 确认就诊 成功返回结果 +type AlibabaAlihealthBookingReserveTreatAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_booking_reserve_treat_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthBookingReserveTreatResponse.go b/model/alihealth2/AlibabaAlihealthBookingReserveTreatResponse.go deleted file mode 100644 index bb3b9d6795..0000000000 --- a/model/alihealth2/AlibabaAlihealthBookingReserveTreatResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -确认就诊 API返回值 -alibaba.alihealth.booking.reserve.treat - -统一预约平台,ISV确认就诊 -*/ -type AlibabaAlihealthBookingReserveTreatAPIResponse struct { - model.CommonResponse - AlibabaAlihealthBookingReserveTreatResponse -} - -// 确认就诊 成功返回结果 -type AlibabaAlihealthBookingReserveTreatResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_booking_reserve_treat_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthDentalBindAuditQueryAPIRequest.go b/model/alihealth2/AlibabaAlihealthDentalBindAuditQueryAPIRequest.go new file mode 100644 index 0000000000..8a402e2b5e --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDentalBindAuditQueryAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV查询绑定审核状态 API请求 +alibaba.alihealth.dental.bind.audit.query + +ISV查询绑定审核状态 +*/ +type AlibabaAlihealthDentalBindAuditQueryAPIRequest struct { + model.Params + // 绑定ID列表 + _bindIds []int64 +} + +// 初始化AlibabaAlihealthDentalBindAuditQueryAPIRequest对象 +func NewAlibabaAlihealthDentalBindAuditQueryRequest() *AlibabaAlihealthDentalBindAuditQueryAPIRequest{ + return &AlibabaAlihealthDentalBindAuditQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDentalBindAuditQueryAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.dental.bind.audit.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDentalBindAuditQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BindIds Setter +// 绑定ID列表 +func (r *AlibabaAlihealthDentalBindAuditQueryAPIRequest) SetBindIds(_bindIds []int64) error { + r._bindIds = _bindIds + r.Set("bind_ids", _bindIds) + return nil +} + +// BindIds Getter +func (r AlibabaAlihealthDentalBindAuditQueryAPIRequest) GetBindIds() []int64 { + return r._bindIds +} diff --git a/model/alihealth2/AlibabaAlihealthDentalBindAuditQueryAPIResponse.go b/model/alihealth2/AlibabaAlihealthDentalBindAuditQueryAPIResponse.go new file mode 100644 index 0000000000..cf48974beb --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDentalBindAuditQueryAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV查询绑定审核状态 API返回值 +alibaba.alihealth.dental.bind.audit.query + +ISV查询绑定审核状态 +*/ +type AlibabaAlihealthDentalBindAuditQueryAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDentalBindAuditQueryAPIResponseModel +} + +// ISV查询绑定审核状态 成功返回结果 +type AlibabaAlihealthDentalBindAuditQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_dental_bind_audit_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAlihealthDentalBindAuditQueryMtopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthDentalBindAuditQueryResponse.go b/model/alihealth2/AlibabaAlihealthDentalBindAuditQueryResponse.go deleted file mode 100644 index 65cc811e79..0000000000 --- a/model/alihealth2/AlibabaAlihealthDentalBindAuditQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV查询绑定审核状态 API返回值 -alibaba.alihealth.dental.bind.audit.query - -ISV查询绑定审核状态 -*/ -type AlibabaAlihealthDentalBindAuditQueryAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDentalBindAuditQueryResponse -} - -// ISV查询绑定审核状态 成功返回结果 -type AlibabaAlihealthDentalBindAuditQueryResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_dental_bind_audit_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAlihealthDentalBindAuditQueryMtopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthDentalItemBindAPIRequest.go b/model/alihealth2/AlibabaAlihealthDentalItemBindAPIRequest.go new file mode 100644 index 0000000000..a44c2fbf58 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDentalItemBindAPIRequest.go @@ -0,0 +1,66 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV绑定外部门店id和外部商品id API请求 +alibaba.alihealth.dental.item.bind + +ISV绑定外部门店id和外部商品id +*/ +type AlibabaAlihealthDentalItemBindAPIRequest struct { + model.Params + // bind_list + _bindList []StoreItemRelRequest + // 类型 1 天猫门店 2 支付宝门店 + _type int64 +} + +// 初始化AlibabaAlihealthDentalItemBindAPIRequest对象 +func NewAlibabaAlihealthDentalItemBindRequest() *AlibabaAlihealthDentalItemBindAPIRequest{ + return &AlibabaAlihealthDentalItemBindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDentalItemBindAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.dental.item.bind" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDentalItemBindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BindList Setter +// bind_list +func (r *AlibabaAlihealthDentalItemBindAPIRequest) SetBindList(_bindList []StoreItemRelRequest) error { + r._bindList = _bindList + r.Set("bind_list", _bindList) + return nil +} + +// BindList Getter +func (r AlibabaAlihealthDentalItemBindAPIRequest) GetBindList() []StoreItemRelRequest { + return r._bindList +} +// Type Setter +// 类型 1 天猫门店 2 支付宝门店 +func (r *AlibabaAlihealthDentalItemBindAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaAlihealthDentalItemBindAPIRequest) GetType() int64 { + return r._type +} diff --git a/model/alihealth2/AlibabaAlihealthDentalItemBindAPIResponse.go b/model/alihealth2/AlibabaAlihealthDentalItemBindAPIResponse.go new file mode 100644 index 0000000000..5b56c265b6 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDentalItemBindAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV绑定外部门店id和外部商品id API返回值 +alibaba.alihealth.dental.item.bind + +ISV绑定外部门店id和外部商品id +*/ +type AlibabaAlihealthDentalItemBindAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDentalItemBindAPIResponseModel +} + +// ISV绑定外部门店id和外部商品id 成功返回结果 +type AlibabaAlihealthDentalItemBindAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_dental_item_bind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAlihealthDentalItemBindMtopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthDentalItemBindResponse.go b/model/alihealth2/AlibabaAlihealthDentalItemBindResponse.go deleted file mode 100644 index 109023c491..0000000000 --- a/model/alihealth2/AlibabaAlihealthDentalItemBindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV绑定外部门店id和外部商品id API返回值 -alibaba.alihealth.dental.item.bind - -ISV绑定外部门店id和外部商品id -*/ -type AlibabaAlihealthDentalItemBindAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDentalItemBindResponse -} - -// ISV绑定外部门店id和外部商品id 成功返回结果 -type AlibabaAlihealthDentalItemBindResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_dental_item_bind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAlihealthDentalItemBindMtopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthDentalItemListAPIRequest.go b/model/alihealth2/AlibabaAlihealthDentalItemListAPIRequest.go new file mode 100644 index 0000000000..5961f58834 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDentalItemListAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV获取口腔标品列表 API请求 +alibaba.alihealth.dental.item.list + +ISV获取口腔标品列表 +*/ +type AlibabaAlihealthDentalItemListAPIRequest struct { + model.Params + // 是否需要测试商品 + _needTestItem bool +} + +// 初始化AlibabaAlihealthDentalItemListAPIRequest对象 +func NewAlibabaAlihealthDentalItemListRequest() *AlibabaAlihealthDentalItemListAPIRequest{ + return &AlibabaAlihealthDentalItemListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDentalItemListAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.dental.item.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDentalItemListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NeedTestItem Setter +// 是否需要测试商品 +func (r *AlibabaAlihealthDentalItemListAPIRequest) SetNeedTestItem(_needTestItem bool) error { + r._needTestItem = _needTestItem + r.Set("need_test_item", _needTestItem) + return nil +} + +// NeedTestItem Getter +func (r AlibabaAlihealthDentalItemListAPIRequest) GetNeedTestItem() bool { + return r._needTestItem +} diff --git a/model/alihealth2/AlibabaAlihealthDentalItemListAPIResponse.go b/model/alihealth2/AlibabaAlihealthDentalItemListAPIResponse.go new file mode 100644 index 0000000000..cb6e0194cb --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDentalItemListAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV获取口腔标品列表 API返回值 +alibaba.alihealth.dental.item.list + +ISV获取口腔标品列表 +*/ +type AlibabaAlihealthDentalItemListAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDentalItemListAPIResponseModel +} + +// ISV获取口腔标品列表 成功返回结果 +type AlibabaAlihealthDentalItemListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_dental_item_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAlihealthDentalItemListMtopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthDentalItemListResponse.go b/model/alihealth2/AlibabaAlihealthDentalItemListResponse.go deleted file mode 100644 index 03d8a29a74..0000000000 --- a/model/alihealth2/AlibabaAlihealthDentalItemListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV获取口腔标品列表 API返回值 -alibaba.alihealth.dental.item.list - -ISV获取口腔标品列表 -*/ -type AlibabaAlihealthDentalItemListAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDentalItemListResponse -} - -// ISV获取口腔标品列表 成功返回结果 -type AlibabaAlihealthDentalItemListResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_dental_item_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAlihealthDentalItemListMtopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthDentalItemUnbindAPIRequest.go b/model/alihealth2/AlibabaAlihealthDentalItemUnbindAPIRequest.go new file mode 100644 index 0000000000..72a8907de4 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDentalItemUnbindAPIRequest.go @@ -0,0 +1,66 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV解绑商品 API请求 +alibaba.alihealth.dental.item.unbind + +ISV解绑商品 +*/ +type AlibabaAlihealthDentalItemUnbindAPIRequest struct { + model.Params + // ISV门店ID + _spStoreId string + // ISV商品ID + _spItemId string +} + +// 初始化AlibabaAlihealthDentalItemUnbindAPIRequest对象 +func NewAlibabaAlihealthDentalItemUnbindRequest() *AlibabaAlihealthDentalItemUnbindAPIRequest{ + return &AlibabaAlihealthDentalItemUnbindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDentalItemUnbindAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.dental.item.unbind" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDentalItemUnbindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SpStoreId Setter +// ISV门店ID +func (r *AlibabaAlihealthDentalItemUnbindAPIRequest) SetSpStoreId(_spStoreId string) error { + r._spStoreId = _spStoreId + r.Set("sp_store_id", _spStoreId) + return nil +} + +// SpStoreId Getter +func (r AlibabaAlihealthDentalItemUnbindAPIRequest) GetSpStoreId() string { + return r._spStoreId +} +// SpItemId Setter +// ISV商品ID +func (r *AlibabaAlihealthDentalItemUnbindAPIRequest) SetSpItemId(_spItemId string) error { + r._spItemId = _spItemId + r.Set("sp_item_id", _spItemId) + return nil +} + +// SpItemId Getter +func (r AlibabaAlihealthDentalItemUnbindAPIRequest) GetSpItemId() string { + return r._spItemId +} diff --git a/model/alihealth2/AlibabaAlihealthDentalItemUnbindAPIResponse.go b/model/alihealth2/AlibabaAlihealthDentalItemUnbindAPIResponse.go new file mode 100644 index 0000000000..e0fbe525e2 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDentalItemUnbindAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV解绑商品 API返回值 +alibaba.alihealth.dental.item.unbind + +ISV解绑商品 +*/ +type AlibabaAlihealthDentalItemUnbindAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDentalItemUnbindAPIResponseModel +} + +// ISV解绑商品 成功返回结果 +type AlibabaAlihealthDentalItemUnbindAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_dental_item_unbind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAlihealthDentalItemUnbindMtopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthDentalItemUnbindResponse.go b/model/alihealth2/AlibabaAlihealthDentalItemUnbindResponse.go deleted file mode 100644 index 5f4adba064..0000000000 --- a/model/alihealth2/AlibabaAlihealthDentalItemUnbindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV解绑商品 API返回值 -alibaba.alihealth.dental.item.unbind - -ISV解绑商品 -*/ -type AlibabaAlihealthDentalItemUnbindAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDentalItemUnbindResponse -} - -// ISV解绑商品 成功返回结果 -type AlibabaAlihealthDentalItemUnbindResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_dental_item_unbind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAlihealthDentalItemUnbindMtopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthDentalStatementQueryAPIRequest.go b/model/alihealth2/AlibabaAlihealthDentalStatementQueryAPIRequest.go new file mode 100644 index 0000000000..c4ccf93805 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDentalStatementQueryAPIRequest.go @@ -0,0 +1,66 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV查询对账单 API请求 +alibaba.alihealth.dental.statement.query + +ISV查询对账单 +*/ +type AlibabaAlihealthDentalStatementQueryAPIRequest struct { + model.Params + // 订单ID + _orderId string + // 结算周期,单位月 + _statementTime string +} + +// 初始化AlibabaAlihealthDentalStatementQueryAPIRequest对象 +func NewAlibabaAlihealthDentalStatementQueryRequest() *AlibabaAlihealthDentalStatementQueryAPIRequest{ + return &AlibabaAlihealthDentalStatementQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDentalStatementQueryAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.dental.statement.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDentalStatementQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单ID +func (r *AlibabaAlihealthDentalStatementQueryAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaAlihealthDentalStatementQueryAPIRequest) GetOrderId() string { + return r._orderId +} +// StatementTime Setter +// 结算周期,单位月 +func (r *AlibabaAlihealthDentalStatementQueryAPIRequest) SetStatementTime(_statementTime string) error { + r._statementTime = _statementTime + r.Set("statement_time", _statementTime) + return nil +} + +// StatementTime Getter +func (r AlibabaAlihealthDentalStatementQueryAPIRequest) GetStatementTime() string { + return r._statementTime +} diff --git a/model/alihealth2/AlibabaAlihealthDentalStatementQueryAPIResponse.go b/model/alihealth2/AlibabaAlihealthDentalStatementQueryAPIResponse.go new file mode 100644 index 0000000000..dd9964ca38 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDentalStatementQueryAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV查询对账单 API返回值 +alibaba.alihealth.dental.statement.query + +ISV查询对账单 +*/ +type AlibabaAlihealthDentalStatementQueryAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDentalStatementQueryAPIResponseModel +} + +// ISV查询对账单 成功返回结果 +type AlibabaAlihealthDentalStatementQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_dental_statement_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAlihealthDentalStatementQueryMtopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthDentalStatementQueryResponse.go b/model/alihealth2/AlibabaAlihealthDentalStatementQueryResponse.go deleted file mode 100644 index 3655b6cd87..0000000000 --- a/model/alihealth2/AlibabaAlihealthDentalStatementQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV查询对账单 API返回值 -alibaba.alihealth.dental.statement.query - -ISV查询对账单 -*/ -type AlibabaAlihealthDentalStatementQueryAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDentalStatementQueryResponse -} - -// ISV查询对账单 成功返回结果 -type AlibabaAlihealthDentalStatementQueryResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_dental_statement_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAlihealthDentalStatementQueryMtopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthDentalStoreAuditQueryAPIRequest.go b/model/alihealth2/AlibabaAlihealthDentalStoreAuditQueryAPIRequest.go new file mode 100644 index 0000000000..b3ce591039 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDentalStoreAuditQueryAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV查询门店审核状态 API请求 +alibaba.alihealth.dental.store.audit.query + +ISV查询门店审核状态 +*/ +type AlibabaAlihealthDentalStoreAuditQueryAPIRequest struct { + model.Params + // 审核ID列表 + _storeAuditIds []int64 +} + +// 初始化AlibabaAlihealthDentalStoreAuditQueryAPIRequest对象 +func NewAlibabaAlihealthDentalStoreAuditQueryRequest() *AlibabaAlihealthDentalStoreAuditQueryAPIRequest{ + return &AlibabaAlihealthDentalStoreAuditQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDentalStoreAuditQueryAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.dental.store.audit.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDentalStoreAuditQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreAuditIds Setter +// 审核ID列表 +func (r *AlibabaAlihealthDentalStoreAuditQueryAPIRequest) SetStoreAuditIds(_storeAuditIds []int64) error { + r._storeAuditIds = _storeAuditIds + r.Set("store_audit_ids", _storeAuditIds) + return nil +} + +// StoreAuditIds Getter +func (r AlibabaAlihealthDentalStoreAuditQueryAPIRequest) GetStoreAuditIds() []int64 { + return r._storeAuditIds +} diff --git a/model/alihealth2/AlibabaAlihealthDentalStoreAuditQueryAPIResponse.go b/model/alihealth2/AlibabaAlihealthDentalStoreAuditQueryAPIResponse.go new file mode 100644 index 0000000000..a541add4d6 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDentalStoreAuditQueryAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV查询门店审核状态 API返回值 +alibaba.alihealth.dental.store.audit.query + +ISV查询门店审核状态 +*/ +type AlibabaAlihealthDentalStoreAuditQueryAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDentalStoreAuditQueryAPIResponseModel +} + +// ISV查询门店审核状态 成功返回结果 +type AlibabaAlihealthDentalStoreAuditQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_dental_store_audit_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAlihealthDentalStoreAuditQueryMtopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthDentalStoreAuditQueryResponse.go b/model/alihealth2/AlibabaAlihealthDentalStoreAuditQueryResponse.go deleted file mode 100644 index 67caebee86..0000000000 --- a/model/alihealth2/AlibabaAlihealthDentalStoreAuditQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV查询门店审核状态 API返回值 -alibaba.alihealth.dental.store.audit.query - -ISV查询门店审核状态 -*/ -type AlibabaAlihealthDentalStoreAuditQueryAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDentalStoreAuditQueryResponse -} - -// ISV查询门店审核状态 成功返回结果 -type AlibabaAlihealthDentalStoreAuditQueryResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_dental_store_audit_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAlihealthDentalStoreAuditQueryMtopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthDentalStoreInsertorupdateAPIRequest.go b/model/alihealth2/AlibabaAlihealthDentalStoreInsertorupdateAPIRequest.go new file mode 100644 index 0000000000..a4568e5da0 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDentalStoreInsertorupdateAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV新增/修改口腔门店 API请求 +alibaba.alihealth.dental.store.insertorupdate + +ISV新增/修改口腔门店 +*/ +type AlibabaAlihealthDentalStoreInsertorupdateAPIRequest struct { + model.Params + // 门店 + _store *DentalOuterStoreRequest +} + +// 初始化AlibabaAlihealthDentalStoreInsertorupdateAPIRequest对象 +func NewAlibabaAlihealthDentalStoreInsertorupdateRequest() *AlibabaAlihealthDentalStoreInsertorupdateAPIRequest{ + return &AlibabaAlihealthDentalStoreInsertorupdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDentalStoreInsertorupdateAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.dental.store.insertorupdate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDentalStoreInsertorupdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Store Setter +// 门店 +func (r *AlibabaAlihealthDentalStoreInsertorupdateAPIRequest) SetStore(_store *DentalOuterStoreRequest) error { + r._store = _store + r.Set("store", _store) + return nil +} + +// Store Getter +func (r AlibabaAlihealthDentalStoreInsertorupdateAPIRequest) GetStore() *DentalOuterStoreRequest { + return r._store +} diff --git a/model/alihealth2/AlibabaAlihealthDentalStoreInsertorupdateAPIResponse.go b/model/alihealth2/AlibabaAlihealthDentalStoreInsertorupdateAPIResponse.go new file mode 100644 index 0000000000..521e8d1c5a --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDentalStoreInsertorupdateAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV新增/修改口腔门店 API返回值 +alibaba.alihealth.dental.store.insertorupdate + +ISV新增/修改口腔门店 +*/ +type AlibabaAlihealthDentalStoreInsertorupdateAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDentalStoreInsertorupdateAPIResponseModel +} + +// ISV新增/修改口腔门店 成功返回结果 +type AlibabaAlihealthDentalStoreInsertorupdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_dental_store_insertorupdate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *AlibabaAlihealthDentalStoreInsertorupdateMtopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthDentalStoreInsertorupdateResponse.go b/model/alihealth2/AlibabaAlihealthDentalStoreInsertorupdateResponse.go deleted file mode 100644 index 4db1a55111..0000000000 --- a/model/alihealth2/AlibabaAlihealthDentalStoreInsertorupdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV新增/修改口腔门店 API返回值 -alibaba.alihealth.dental.store.insertorupdate - -ISV新增/修改口腔门店 -*/ -type AlibabaAlihealthDentalStoreInsertorupdateAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDentalStoreInsertorupdateResponse -} - -// ISV新增/修改口腔门店 成功返回结果 -type AlibabaAlihealthDentalStoreInsertorupdateResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_dental_store_insertorupdate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *AlibabaAlihealthDentalStoreInsertorupdateMtopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIRequest.go b/model/alihealth2/AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIRequest.go new file mode 100644 index 0000000000..0b631ae4a6 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店无隐形消费签约 API请求 +alibaba.alihealth.dental.store.invisible.consume.update + +门店无隐形消费签约 +*/ +type AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIRequest struct { + model.Params + // 入参 + _store *DentalOuterStoreNicRequest +} + +// 初始化AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIRequest对象 +func NewAlibabaAlihealthDentalStoreInvisibleConsumeUpdateRequest() *AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIRequest{ + return &AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.dental.store.invisible.consume.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Store Setter +// 入参 +func (r *AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIRequest) SetStore(_store *DentalOuterStoreNicRequest) error { + r._store = _store + r.Set("store", _store) + return nil +} + +// Store Getter +func (r AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIRequest) GetStore() *DentalOuterStoreNicRequest { + return r._store +} diff --git a/model/alihealth2/AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIResponse.go b/model/alihealth2/AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIResponse.go new file mode 100644 index 0000000000..f255369c97 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店无隐形消费签约 API返回值 +alibaba.alihealth.dental.store.invisible.consume.update + +门店无隐形消费签约 +*/ +type AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIResponseModel +} + +// 门店无隐形消费签约 成功返回结果 +type AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_dental_store_invisible_consume_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthDentalStoreInvisibleConsumeUpdateResponse.go b/model/alihealth2/AlibabaAlihealthDentalStoreInvisibleConsumeUpdateResponse.go deleted file mode 100644 index 8f4df581fe..0000000000 --- a/model/alihealth2/AlibabaAlihealthDentalStoreInvisibleConsumeUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店无隐形消费签约 API返回值 -alibaba.alihealth.dental.store.invisible.consume.update - -门店无隐形消费签约 -*/ -type AlibabaAlihealthDentalStoreInvisibleConsumeUpdateAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDentalStoreInvisibleConsumeUpdateResponse -} - -// 门店无隐形消费签约 成功返回结果 -type AlibabaAlihealthDentalStoreInvisibleConsumeUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_dental_store_invisible_consume_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIRequest.go b/model/alihealth2/AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIRequest.go new file mode 100644 index 0000000000..b9a40388fd --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIRequest.go @@ -0,0 +1,66 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据健康ID获取支付宝ID API请求 +alibaba.alihealth.docbase.userinfo.alipayid.get + +根据健康ID获取支付宝ID +*/ +type AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIRequest struct { + model.Params + // 阿里健康ID + _alihealthUserId string + // 渠道alipay taobao uc gaode + _appChannel string +} + +// 初始化AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIRequest对象 +func NewAlibabaAlihealthDocbaseUserinfoAlipayidGetRequest() *AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIRequest{ + return &AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.docbase.userinfo.alipayid.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlihealthUserId Setter +// 阿里健康ID +func (r *AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIRequest) SetAlihealthUserId(_alihealthUserId string) error { + r._alihealthUserId = _alihealthUserId + r.Set("alihealth_user_id", _alihealthUserId) + return nil +} + +// AlihealthUserId Getter +func (r AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIRequest) GetAlihealthUserId() string { + return r._alihealthUserId +} +// AppChannel Setter +// 渠道alipay taobao uc gaode +func (r *AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIRequest) SetAppChannel(_appChannel string) error { + r._appChannel = _appChannel + r.Set("app_channel", _appChannel) + return nil +} + +// AppChannel Getter +func (r AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIRequest) GetAppChannel() string { + return r._appChannel +} diff --git a/model/alihealth2/AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIResponse.go b/model/alihealth2/AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIResponse.go new file mode 100644 index 0000000000..09e7627814 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据健康ID获取支付宝ID API返回值 +alibaba.alihealth.docbase.userinfo.alipayid.get + +根据健康ID获取支付宝ID +*/ +type AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIResponseModel +} + +// 根据健康ID获取支付宝ID 成功返回结果 +type AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_docbase_userinfo_alipayid_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthDocbaseUserinfoAlipayidGetResponse.go b/model/alihealth2/AlibabaAlihealthDocbaseUserinfoAlipayidGetResponse.go deleted file mode 100644 index d0599cf142..0000000000 --- a/model/alihealth2/AlibabaAlihealthDocbaseUserinfoAlipayidGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据健康ID获取支付宝ID API返回值 -alibaba.alihealth.docbase.userinfo.alipayid.get - -根据健康ID获取支付宝ID -*/ -type AlibabaAlihealthDocbaseUserinfoAlipayidGetAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDocbaseUserinfoAlipayidGetResponse -} - -// 根据健康ID获取支付宝ID 成功返回结果 -type AlibabaAlihealthDocbaseUserinfoAlipayidGetResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_docbase_userinfo_alipayid_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthDruguseQueryAPIRequest.go b/model/alihealth2/AlibabaAlihealthDruguseQueryAPIRequest.go new file mode 100644 index 0000000000..31423c68ee --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDruguseQueryAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +合理用药规则查询 API请求 +alibaba.alihealth.druguse.query + +查询用户购买的药品命中的风险规则 +*/ +type AlibabaAlihealthDruguseQueryAPIRequest struct { + model.Params + // 入参 + _command *SafeMedicationReqCommand +} + +// 初始化AlibabaAlihealthDruguseQueryAPIRequest对象 +func NewAlibabaAlihealthDruguseQueryRequest() *AlibabaAlihealthDruguseQueryAPIRequest{ + return &AlibabaAlihealthDruguseQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDruguseQueryAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.druguse.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDruguseQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Command Setter +// 入参 +func (r *AlibabaAlihealthDruguseQueryAPIRequest) SetCommand(_command *SafeMedicationReqCommand) error { + r._command = _command + r.Set("command", _command) + return nil +} + +// Command Getter +func (r AlibabaAlihealthDruguseQueryAPIRequest) GetCommand() *SafeMedicationReqCommand { + return r._command +} diff --git a/model/alihealth2/AlibabaAlihealthDruguseQueryAPIResponse.go b/model/alihealth2/AlibabaAlihealthDruguseQueryAPIResponse.go new file mode 100644 index 0000000000..87775b8df8 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthDruguseQueryAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +合理用药规则查询 API返回值 +alibaba.alihealth.druguse.query + +查询用户购买的药品命中的风险规则 +*/ +type AlibabaAlihealthDruguseQueryAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDruguseQueryAPIResponseModel +} + +// 合理用药规则查询 成功返回结果 +type AlibabaAlihealthDruguseQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_druguse_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthDruguseQueryResponse.go b/model/alihealth2/AlibabaAlihealthDruguseQueryResponse.go deleted file mode 100644 index f24ef249ff..0000000000 --- a/model/alihealth2/AlibabaAlihealthDruguseQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -合理用药规则查询 API返回值 -alibaba.alihealth.druguse.query - -查询用户购买的药品命中的风险规则 -*/ -type AlibabaAlihealthDruguseQueryAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDruguseQueryResponse -} - -// 合理用药规则查询 成功返回结果 -type AlibabaAlihealthDruguseQueryResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_druguse_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthExaminationStockQueryAPIRequest.go b/model/alihealth2/AlibabaAlihealthExaminationStockQueryAPIRequest.go new file mode 100644 index 0000000000..d83c71740a --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthExaminationStockQueryAPIRequest.go @@ -0,0 +1,108 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构对接_体检套餐库存查询 API请求 +alibaba.alihealth.examination.stock.query + +体检机构对接_体检套餐库存查询 +*/ +type AlibabaAlihealthExaminationStockQueryAPIRequest struct { + model.Params + // 商户唯一码 + _merchantCode string + // 分院ID + _hospitalId string + // 套餐id + _packageId string + // 开始日期 + _timeFrom string + // 结束日期 + _timeTo string +} + +// 初始化AlibabaAlihealthExaminationStockQueryAPIRequest对象 +func NewAlibabaAlihealthExaminationStockQueryRequest() *AlibabaAlihealthExaminationStockQueryAPIRequest{ + return &AlibabaAlihealthExaminationStockQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationStockQueryAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.stock.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationStockQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MerchantCode Setter +// 商户唯一码 +func (r *AlibabaAlihealthExaminationStockQueryAPIRequest) SetMerchantCode(_merchantCode string) error { + r._merchantCode = _merchantCode + r.Set("merchant_code", _merchantCode) + return nil +} + +// MerchantCode Getter +func (r AlibabaAlihealthExaminationStockQueryAPIRequest) GetMerchantCode() string { + return r._merchantCode +} +// HospitalId Setter +// 分院ID +func (r *AlibabaAlihealthExaminationStockQueryAPIRequest) SetHospitalId(_hospitalId string) error { + r._hospitalId = _hospitalId + r.Set("hospital_id", _hospitalId) + return nil +} + +// HospitalId Getter +func (r AlibabaAlihealthExaminationStockQueryAPIRequest) GetHospitalId() string { + return r._hospitalId +} +// PackageId Setter +// 套餐id +func (r *AlibabaAlihealthExaminationStockQueryAPIRequest) SetPackageId(_packageId string) error { + r._packageId = _packageId + r.Set("package_id", _packageId) + return nil +} + +// PackageId Getter +func (r AlibabaAlihealthExaminationStockQueryAPIRequest) GetPackageId() string { + return r._packageId +} +// TimeFrom Setter +// 开始日期 +func (r *AlibabaAlihealthExaminationStockQueryAPIRequest) SetTimeFrom(_timeFrom string) error { + r._timeFrom = _timeFrom + r.Set("time_from", _timeFrom) + return nil +} + +// TimeFrom Getter +func (r AlibabaAlihealthExaminationStockQueryAPIRequest) GetTimeFrom() string { + return r._timeFrom +} +// TimeTo Setter +// 结束日期 +func (r *AlibabaAlihealthExaminationStockQueryAPIRequest) SetTimeTo(_timeTo string) error { + r._timeTo = _timeTo + r.Set("time_to", _timeTo) + return nil +} + +// TimeTo Getter +func (r AlibabaAlihealthExaminationStockQueryAPIRequest) GetTimeTo() string { + return r._timeTo +} diff --git a/model/alihealth2/AlibabaAlihealthExaminationStockQueryAPIResponse.go b/model/alihealth2/AlibabaAlihealthExaminationStockQueryAPIResponse.go new file mode 100644 index 0000000000..9717a70d8f --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthExaminationStockQueryAPIResponse.go @@ -0,0 +1,33 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构对接_体检套餐库存查询 API返回值 +alibaba.alihealth.examination.stock.query + +体检机构对接_体检套餐库存查询 +*/ +type AlibabaAlihealthExaminationStockQueryAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationStockQueryAPIResponseModel +} + +// 体检机构对接_体检套餐库存查询 成功返回结果 +type AlibabaAlihealthExaminationStockQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_stock_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果描述 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 门店库存列表 + StorageList []Storage `json:"storage_list,omitempty" xml:"storage_list>storage,omitempty"` + // 返回结果编码 + ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` + // 是否支持分时能力 + TimeSharingEnable bool `json:"time_sharing_enable,omitempty" xml:"time_sharing_enable,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthExaminationStockQueryResponse.go b/model/alihealth2/AlibabaAlihealthExaminationStockQueryResponse.go deleted file mode 100644 index 812dfbb53e..0000000000 --- a/model/alihealth2/AlibabaAlihealthExaminationStockQueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -体检机构对接_体检套餐库存查询 API返回值 -alibaba.alihealth.examination.stock.query - -体检机构对接_体检套餐库存查询 -*/ -type AlibabaAlihealthExaminationStockQueryAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationStockQueryResponse -} - -// 体检机构对接_体检套餐库存查询 成功返回结果 -type AlibabaAlihealthExaminationStockQueryResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_stock_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果描述 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 门店库存列表 - StorageList []Storage `json:"storage_list,omitempty" xml:"storage_list>storage,omitempty"` - // 返回结果编码 - ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` - // 是否支持分时能力 - TimeSharingEnable bool `json:"time_sharing_enable,omitempty" xml:"time_sharing_enable,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthMedicalDepartmentSyncAPIRequest.go b/model/alihealth2/AlibabaAlihealthMedicalDepartmentSyncAPIRequest.go new file mode 100644 index 0000000000..b4b7a51b37 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthMedicalDepartmentSyncAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康预约挂号科室同步接口 API请求 +alibaba.alihealth.medical.department.sync + +阿里健康预约挂号科室同步接口 +*/ +type AlibabaAlihealthMedicalDepartmentSyncAPIRequest struct { + model.Params + // 接口入参 + _saveRequest *CommonRequest4Top +} + +// 初始化AlibabaAlihealthMedicalDepartmentSyncAPIRequest对象 +func NewAlibabaAlihealthMedicalDepartmentSyncRequest() *AlibabaAlihealthMedicalDepartmentSyncAPIRequest{ + return &AlibabaAlihealthMedicalDepartmentSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMedicalDepartmentSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.medical.department.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMedicalDepartmentSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SaveRequest Setter +// 接口入参 +func (r *AlibabaAlihealthMedicalDepartmentSyncAPIRequest) SetSaveRequest(_saveRequest *CommonRequest4Top) error { + r._saveRequest = _saveRequest + r.Set("save_request", _saveRequest) + return nil +} + +// SaveRequest Getter +func (r AlibabaAlihealthMedicalDepartmentSyncAPIRequest) GetSaveRequest() *CommonRequest4Top { + return r._saveRequest +} diff --git a/model/alihealth2/AlibabaAlihealthMedicalDepartmentSyncAPIResponse.go b/model/alihealth2/AlibabaAlihealthMedicalDepartmentSyncAPIResponse.go new file mode 100644 index 0000000000..30cd8525df --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthMedicalDepartmentSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康预约挂号科室同步接口 API返回值 +alibaba.alihealth.medical.department.sync + +阿里健康预约挂号科室同步接口 +*/ +type AlibabaAlihealthMedicalDepartmentSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMedicalDepartmentSyncAPIResponseModel +} + +// 阿里健康预约挂号科室同步接口 成功返回结果 +type AlibabaAlihealthMedicalDepartmentSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_medical_department_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthMedicalDepartmentSyncResponse.go b/model/alihealth2/AlibabaAlihealthMedicalDepartmentSyncResponse.go deleted file mode 100644 index 6a1f3a1bff..0000000000 --- a/model/alihealth2/AlibabaAlihealthMedicalDepartmentSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里健康预约挂号科室同步接口 API返回值 -alibaba.alihealth.medical.department.sync - -阿里健康预约挂号科室同步接口 -*/ -type AlibabaAlihealthMedicalDepartmentSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMedicalDepartmentSyncResponse -} - -// 阿里健康预约挂号科室同步接口 成功返回结果 -type AlibabaAlihealthMedicalDepartmentSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_medical_department_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthMedicalDoctorSyncAPIRequest.go b/model/alihealth2/AlibabaAlihealthMedicalDoctorSyncAPIRequest.go new file mode 100644 index 0000000000..180139732a --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthMedicalDoctorSyncAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康预约挂号医生同步接口 API请求 +alibaba.alihealth.medical.doctor.sync + +阿里健康预约挂号医生同步接口 +*/ +type AlibabaAlihealthMedicalDoctorSyncAPIRequest struct { + model.Params + // 接口入参 + _saveRequest *CommonRequest4Top +} + +// 初始化AlibabaAlihealthMedicalDoctorSyncAPIRequest对象 +func NewAlibabaAlihealthMedicalDoctorSyncRequest() *AlibabaAlihealthMedicalDoctorSyncAPIRequest{ + return &AlibabaAlihealthMedicalDoctorSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMedicalDoctorSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.medical.doctor.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMedicalDoctorSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SaveRequest Setter +// 接口入参 +func (r *AlibabaAlihealthMedicalDoctorSyncAPIRequest) SetSaveRequest(_saveRequest *CommonRequest4Top) error { + r._saveRequest = _saveRequest + r.Set("save_request", _saveRequest) + return nil +} + +// SaveRequest Getter +func (r AlibabaAlihealthMedicalDoctorSyncAPIRequest) GetSaveRequest() *CommonRequest4Top { + return r._saveRequest +} diff --git a/model/alihealth2/AlibabaAlihealthMedicalDoctorSyncAPIResponse.go b/model/alihealth2/AlibabaAlihealthMedicalDoctorSyncAPIResponse.go new file mode 100644 index 0000000000..3d374ec74e --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthMedicalDoctorSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康预约挂号医生同步接口 API返回值 +alibaba.alihealth.medical.doctor.sync + +阿里健康预约挂号医生同步接口 +*/ +type AlibabaAlihealthMedicalDoctorSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMedicalDoctorSyncAPIResponseModel +} + +// 阿里健康预约挂号医生同步接口 成功返回结果 +type AlibabaAlihealthMedicalDoctorSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_medical_doctor_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthMedicalDoctorSyncResponse.go b/model/alihealth2/AlibabaAlihealthMedicalDoctorSyncResponse.go deleted file mode 100644 index 6228475ab7..0000000000 --- a/model/alihealth2/AlibabaAlihealthMedicalDoctorSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里健康预约挂号医生同步接口 API返回值 -alibaba.alihealth.medical.doctor.sync - -阿里健康预约挂号医生同步接口 -*/ -type AlibabaAlihealthMedicalDoctorSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMedicalDoctorSyncResponse -} - -// 阿里健康预约挂号医生同步接口 成功返回结果 -type AlibabaAlihealthMedicalDoctorSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_medical_doctor_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthMedicalHospitalSyncAPIRequest.go b/model/alihealth2/AlibabaAlihealthMedicalHospitalSyncAPIRequest.go new file mode 100644 index 0000000000..5bab2f8ee6 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthMedicalHospitalSyncAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里将康支付宝挂号数据医院回传接口 API请求 +alibaba.alihealth.medical.hospital.sync + +阿里将康支付宝挂号数据医院回传接口 +*/ +type AlibabaAlihealthMedicalHospitalSyncAPIRequest struct { + model.Params + // top保存入参 + _saveRequest *CommonRequest4Top +} + +// 初始化AlibabaAlihealthMedicalHospitalSyncAPIRequest对象 +func NewAlibabaAlihealthMedicalHospitalSyncRequest() *AlibabaAlihealthMedicalHospitalSyncAPIRequest{ + return &AlibabaAlihealthMedicalHospitalSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMedicalHospitalSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.medical.hospital.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMedicalHospitalSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SaveRequest Setter +// top保存入参 +func (r *AlibabaAlihealthMedicalHospitalSyncAPIRequest) SetSaveRequest(_saveRequest *CommonRequest4Top) error { + r._saveRequest = _saveRequest + r.Set("save_request", _saveRequest) + return nil +} + +// SaveRequest Getter +func (r AlibabaAlihealthMedicalHospitalSyncAPIRequest) GetSaveRequest() *CommonRequest4Top { + return r._saveRequest +} diff --git a/model/alihealth2/AlibabaAlihealthMedicalHospitalSyncAPIResponse.go b/model/alihealth2/AlibabaAlihealthMedicalHospitalSyncAPIResponse.go new file mode 100644 index 0000000000..9ec412ec61 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthMedicalHospitalSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里将康支付宝挂号数据医院回传接口 API返回值 +alibaba.alihealth.medical.hospital.sync + +阿里将康支付宝挂号数据医院回传接口 +*/ +type AlibabaAlihealthMedicalHospitalSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMedicalHospitalSyncAPIResponseModel +} + +// 阿里将康支付宝挂号数据医院回传接口 成功返回结果 +type AlibabaAlihealthMedicalHospitalSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_medical_hospital_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthMedicalHospitalSyncResponse.go b/model/alihealth2/AlibabaAlihealthMedicalHospitalSyncResponse.go deleted file mode 100644 index e52e350080..0000000000 --- a/model/alihealth2/AlibabaAlihealthMedicalHospitalSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里将康支付宝挂号数据医院回传接口 API返回值 -alibaba.alihealth.medical.hospital.sync - -阿里将康支付宝挂号数据医院回传接口 -*/ -type AlibabaAlihealthMedicalHospitalSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMedicalHospitalSyncResponse -} - -// 阿里将康支付宝挂号数据医院回传接口 成功返回结果 -type AlibabaAlihealthMedicalHospitalSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_medical_hospital_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthMedicalRegisterWeiyiSyncAPIRequest.go b/model/alihealth2/AlibabaAlihealthMedicalRegisterWeiyiSyncAPIRequest.go new file mode 100644 index 0000000000..c32f0b24e5 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthMedicalRegisterWeiyiSyncAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +微医数据号源回传 API请求 +alibaba.alihealth.medical.register.weiyi.sync + +微医号源数据回传 +*/ +type AlibabaAlihealthMedicalRegisterWeiyiSyncAPIRequest struct { + model.Params + // 号源数据实体 + _serviceRequest *SourcesReturnVo +} + +// 初始化AlibabaAlihealthMedicalRegisterWeiyiSyncAPIRequest对象 +func NewAlibabaAlihealthMedicalRegisterWeiyiSyncRequest() *AlibabaAlihealthMedicalRegisterWeiyiSyncAPIRequest{ + return &AlibabaAlihealthMedicalRegisterWeiyiSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMedicalRegisterWeiyiSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.medical.register.weiyi.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMedicalRegisterWeiyiSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceRequest Setter +// 号源数据实体 +func (r *AlibabaAlihealthMedicalRegisterWeiyiSyncAPIRequest) SetServiceRequest(_serviceRequest *SourcesReturnVo) error { + r._serviceRequest = _serviceRequest + r.Set("service_request", _serviceRequest) + return nil +} + +// ServiceRequest Getter +func (r AlibabaAlihealthMedicalRegisterWeiyiSyncAPIRequest) GetServiceRequest() *SourcesReturnVo { + return r._serviceRequest +} diff --git a/model/alihealth2/AlibabaAlihealthMedicalRegisterWeiyiSyncAPIResponse.go b/model/alihealth2/AlibabaAlihealthMedicalRegisterWeiyiSyncAPIResponse.go new file mode 100644 index 0000000000..916813f987 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthMedicalRegisterWeiyiSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +微医数据号源回传 API返回值 +alibaba.alihealth.medical.register.weiyi.sync + +微医号源数据回传 +*/ +type AlibabaAlihealthMedicalRegisterWeiyiSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMedicalRegisterWeiyiSyncAPIResponseModel +} + +// 微医数据号源回传 成功返回结果 +type AlibabaAlihealthMedicalRegisterWeiyiSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_medical_register_weiyi_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthMedicalRegisterWeiyiSyncResponse.go b/model/alihealth2/AlibabaAlihealthMedicalRegisterWeiyiSyncResponse.go deleted file mode 100644 index 9a0bac441b..0000000000 --- a/model/alihealth2/AlibabaAlihealthMedicalRegisterWeiyiSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -微医数据号源回传 API返回值 -alibaba.alihealth.medical.register.weiyi.sync - -微医号源数据回传 -*/ -type AlibabaAlihealthMedicalRegisterWeiyiSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMedicalRegisterWeiyiSyncResponse -} - -// 微医数据号源回传 成功返回结果 -type AlibabaAlihealthMedicalRegisterWeiyiSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_medical_register_weiyi_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncAPIRequest.go b/model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncAPIRequest.go new file mode 100644 index 0000000000..b164428572 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康支付宝挂号记录回传接口 API请求 +alibaba.alihealth.medical.registration.sync + +阿里健康支付宝挂号记录回传接口 +*/ +type AlibabaAlihealthMedicalRegistrationSyncAPIRequest struct { + model.Params + // 接口入参 + _saveRequest *CommonRequest4Top +} + +// 初始化AlibabaAlihealthMedicalRegistrationSyncAPIRequest对象 +func NewAlibabaAlihealthMedicalRegistrationSyncRequest() *AlibabaAlihealthMedicalRegistrationSyncAPIRequest{ + return &AlibabaAlihealthMedicalRegistrationSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMedicalRegistrationSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.medical.registration.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMedicalRegistrationSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SaveRequest Setter +// 接口入参 +func (r *AlibabaAlihealthMedicalRegistrationSyncAPIRequest) SetSaveRequest(_saveRequest *CommonRequest4Top) error { + r._saveRequest = _saveRequest + r.Set("save_request", _saveRequest) + return nil +} + +// SaveRequest Getter +func (r AlibabaAlihealthMedicalRegistrationSyncAPIRequest) GetSaveRequest() *CommonRequest4Top { + return r._saveRequest +} diff --git a/model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncAPIResponse.go b/model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncAPIResponse.go new file mode 100644 index 0000000000..a70760d1f3 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康支付宝挂号记录回传接口 API返回值 +alibaba.alihealth.medical.registration.sync + +阿里健康支付宝挂号记录回传接口 +*/ +type AlibabaAlihealthMedicalRegistrationSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMedicalRegistrationSyncAPIResponseModel +} + +// 阿里健康支付宝挂号记录回传接口 成功返回结果 +type AlibabaAlihealthMedicalRegistrationSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_medical_registration_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncResponse.go b/model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncResponse.go deleted file mode 100644 index 3a3c707348..0000000000 --- a/model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里健康支付宝挂号记录回传接口 API返回值 -alibaba.alihealth.medical.registration.sync - -阿里健康支付宝挂号记录回传接口 -*/ -type AlibabaAlihealthMedicalRegistrationSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMedicalRegistrationSyncResponse -} - -// 阿里健康支付宝挂号记录回传接口 成功返回结果 -type AlibabaAlihealthMedicalRegistrationSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_medical_registration_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncnewAPIRequest.go b/model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncnewAPIRequest.go new file mode 100644 index 0000000000..e34669be7c --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncnewAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康新挂号数据回传 API请求 +alibaba.alihealth.medical.registration.syncnew + +阿里健康新挂号记录回传接口 +*/ +type AlibabaAlihealthMedicalRegistrationSyncnewAPIRequest struct { + model.Params + // 接口入参 + _saveRequest *CommonRequest4Top +} + +// 初始化AlibabaAlihealthMedicalRegistrationSyncnewAPIRequest对象 +func NewAlibabaAlihealthMedicalRegistrationSyncnewRequest() *AlibabaAlihealthMedicalRegistrationSyncnewAPIRequest{ + return &AlibabaAlihealthMedicalRegistrationSyncnewAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMedicalRegistrationSyncnewAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.medical.registration.syncnew" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMedicalRegistrationSyncnewAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SaveRequest Setter +// 接口入参 +func (r *AlibabaAlihealthMedicalRegistrationSyncnewAPIRequest) SetSaveRequest(_saveRequest *CommonRequest4Top) error { + r._saveRequest = _saveRequest + r.Set("save_request", _saveRequest) + return nil +} + +// SaveRequest Getter +func (r AlibabaAlihealthMedicalRegistrationSyncnewAPIRequest) GetSaveRequest() *CommonRequest4Top { + return r._saveRequest +} diff --git a/model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncnewAPIResponse.go b/model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncnewAPIResponse.go new file mode 100644 index 0000000000..e01b9c8f0f --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncnewAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康新挂号数据回传 API返回值 +alibaba.alihealth.medical.registration.syncnew + +阿里健康新挂号记录回传接口 +*/ +type AlibabaAlihealthMedicalRegistrationSyncnewAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMedicalRegistrationSyncnewAPIResponseModel +} + +// 阿里健康新挂号数据回传 成功返回结果 +type AlibabaAlihealthMedicalRegistrationSyncnewAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_medical_registration_syncnew_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncnewResponse.go b/model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncnewResponse.go deleted file mode 100644 index cf0146c67e..0000000000 --- a/model/alihealth2/AlibabaAlihealthMedicalRegistrationSyncnewResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里健康新挂号数据回传 API返回值 -alibaba.alihealth.medical.registration.syncnew - -阿里健康新挂号记录回传接口 -*/ -type AlibabaAlihealthMedicalRegistrationSyncnewAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMedicalRegistrationSyncnewResponse -} - -// 阿里健康新挂号数据回传 成功返回结果 -type AlibabaAlihealthMedicalRegistrationSyncnewResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_medical_registration_syncnew_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthMsAreaProvinceListAPIRequest.go b/model/alihealth2/AlibabaAlihealthMsAreaProvinceListAPIRequest.go new file mode 100644 index 0000000000..8232181a23 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthMsAreaProvinceListAPIRequest.go @@ -0,0 +1,38 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗预约省份列表查询 API请求 +alibaba.alihealth.ms.area.province.list + +微信小程序疫苗预约省份列表查询 +*/ +type AlibabaAlihealthMsAreaProvinceListAPIRequest struct { + model.Params +} + +// 初始化AlibabaAlihealthMsAreaProvinceListAPIRequest对象 +func NewAlibabaAlihealthMsAreaProvinceListRequest() *AlibabaAlihealthMsAreaProvinceListAPIRequest{ + return &AlibabaAlihealthMsAreaProvinceListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMsAreaProvinceListAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.ms.area.province.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMsAreaProvinceListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/alihealth2/AlibabaAlihealthMsAreaProvinceListAPIResponse.go b/model/alihealth2/AlibabaAlihealthMsAreaProvinceListAPIResponse.go new file mode 100644 index 0000000000..f6e07169f8 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthMsAreaProvinceListAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗预约省份列表查询 API返回值 +alibaba.alihealth.ms.area.province.list + +微信小程序疫苗预约省份列表查询 +*/ +type AlibabaAlihealthMsAreaProvinceListAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMsAreaProvinceListAPIResponseModel +} + +// 疫苗预约省份列表查询 成功返回结果 +type AlibabaAlihealthMsAreaProvinceListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_ms_area_province_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthMsAreaProvinceListResponse.go b/model/alihealth2/AlibabaAlihealthMsAreaProvinceListResponse.go deleted file mode 100644 index 3f08410168..0000000000 --- a/model/alihealth2/AlibabaAlihealthMsAreaProvinceListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -疫苗预约省份列表查询 API返回值 -alibaba.alihealth.ms.area.province.list - -微信小程序疫苗预约省份列表查询 -*/ -type AlibabaAlihealthMsAreaProvinceListAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMsAreaProvinceListResponse -} - -// 疫苗预约省份列表查询 成功返回结果 -type AlibabaAlihealthMsAreaProvinceListResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_ms_area_province_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthNocovAlldiseaseinfoGetAPIRequest.go b/model/alihealth2/AlibabaAlihealthNocovAlldiseaseinfoGetAPIRequest.go new file mode 100644 index 0000000000..beac0b068b --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthNocovAlldiseaseinfoGetAPIRequest.go @@ -0,0 +1,80 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取全国疫情统计数据 API请求 +alibaba.alihealth.nocov.alldiseaseinfo.get + +获取全国疫情统计数据 +*/ +type AlibabaAlihealthNocovAlldiseaseinfoGetAPIRequest struct { + model.Params + // 省的 + _province string + // 城市 + _city string + // 城市code + _cityCode string +} + +// 初始化AlibabaAlihealthNocovAlldiseaseinfoGetAPIRequest对象 +func NewAlibabaAlihealthNocovAlldiseaseinfoGetRequest() *AlibabaAlihealthNocovAlldiseaseinfoGetAPIRequest{ + return &AlibabaAlihealthNocovAlldiseaseinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthNocovAlldiseaseinfoGetAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.nocov.alldiseaseinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthNocovAlldiseaseinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Province Setter +// 省的 +func (r *AlibabaAlihealthNocovAlldiseaseinfoGetAPIRequest) SetProvince(_province string) error { + r._province = _province + r.Set("province", _province) + return nil +} + +// Province Getter +func (r AlibabaAlihealthNocovAlldiseaseinfoGetAPIRequest) GetProvince() string { + return r._province +} +// City Setter +// 城市 +func (r *AlibabaAlihealthNocovAlldiseaseinfoGetAPIRequest) SetCity(_city string) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r AlibabaAlihealthNocovAlldiseaseinfoGetAPIRequest) GetCity() string { + return r._city +} +// CityCode Setter +// 城市code +func (r *AlibabaAlihealthNocovAlldiseaseinfoGetAPIRequest) SetCityCode(_cityCode string) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r AlibabaAlihealthNocovAlldiseaseinfoGetAPIRequest) GetCityCode() string { + return r._cityCode +} diff --git a/model/alihealth2/AlibabaAlihealthNocovAlldiseaseinfoGetAPIResponse.go b/model/alihealth2/AlibabaAlihealthNocovAlldiseaseinfoGetAPIResponse.go new file mode 100644 index 0000000000..d588c8111a --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthNocovAlldiseaseinfoGetAPIResponse.go @@ -0,0 +1,33 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取全国疫情统计数据 API返回值 +alibaba.alihealth.nocov.alldiseaseinfo.get + +获取全国疫情统计数据 +*/ +type AlibabaAlihealthNocovAlldiseaseinfoGetAPIResponse struct { + model.CommonResponse + AlibabaAlihealthNocovAlldiseaseinfoGetAPIResponseModel +} + +// 获取全国疫情统计数据 成功返回结果 +type AlibabaAlihealthNocovAlldiseaseinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_nocov_alldiseaseinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回全国疫情的统计数据 + Data string `json:"data,omitempty" xml:"data,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // errCode + BizErrCode string `json:"biz_err_code,omitempty" xml:"biz_err_code,omitempty"` + // errMessage + BizErrMessage string `json:"biz_err_message,omitempty" xml:"biz_err_message,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthNocovAlldiseaseinfoGetResponse.go b/model/alihealth2/AlibabaAlihealthNocovAlldiseaseinfoGetResponse.go deleted file mode 100644 index b502123347..0000000000 --- a/model/alihealth2/AlibabaAlihealthNocovAlldiseaseinfoGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取全国疫情统计数据 API返回值 -alibaba.alihealth.nocov.alldiseaseinfo.get - -获取全国疫情统计数据 -*/ -type AlibabaAlihealthNocovAlldiseaseinfoGetAPIResponse struct { - model.CommonResponse - AlibabaAlihealthNocovAlldiseaseinfoGetResponse -} - -// 获取全国疫情统计数据 成功返回结果 -type AlibabaAlihealthNocovAlldiseaseinfoGetResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_nocov_alldiseaseinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回全国疫情的统计数据 - Data string `json:"data,omitempty" xml:"data,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // errCode - BizErrCode string `json:"biz_err_code,omitempty" xml:"biz_err_code,omitempty"` - // errMessage - BizErrMessage string `json:"biz_err_message,omitempty" xml:"biz_err_message,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthReserveDentalBindshopanditemAPIRequest.go b/model/alihealth2/AlibabaAlihealthReserveDentalBindshopanditemAPIRequest.go new file mode 100644 index 0000000000..73fac849eb --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthReserveDentalBindshopanditemAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +绑定门店信息,商品信息 API请求 +alibaba.alihealth.reserve.dental.bindshopanditem + +绑定门店信息,商品信息 +*/ +type AlibabaAlihealthReserveDentalBindshopanditemAPIRequest struct { + model.Params + // bind_list + _bindList []BindDto +} + +// 初始化AlibabaAlihealthReserveDentalBindshopanditemAPIRequest对象 +func NewAlibabaAlihealthReserveDentalBindshopanditemRequest() *AlibabaAlihealthReserveDentalBindshopanditemAPIRequest{ + return &AlibabaAlihealthReserveDentalBindshopanditemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthReserveDentalBindshopanditemAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.reserve.dental.bindshopanditem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthReserveDentalBindshopanditemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BindList Setter +// bind_list +func (r *AlibabaAlihealthReserveDentalBindshopanditemAPIRequest) SetBindList(_bindList []BindDto) error { + r._bindList = _bindList + r.Set("bind_list", _bindList) + return nil +} + +// BindList Getter +func (r AlibabaAlihealthReserveDentalBindshopanditemAPIRequest) GetBindList() []BindDto { + return r._bindList +} diff --git a/model/alihealth2/AlibabaAlihealthReserveDentalBindshopanditemAPIResponse.go b/model/alihealth2/AlibabaAlihealthReserveDentalBindshopanditemAPIResponse.go new file mode 100644 index 0000000000..4b9e81db7f --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthReserveDentalBindshopanditemAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +绑定门店信息,商品信息 API返回值 +alibaba.alihealth.reserve.dental.bindshopanditem + +绑定门店信息,商品信息 +*/ +type AlibabaAlihealthReserveDentalBindshopanditemAPIResponse struct { + model.CommonResponse + AlibabaAlihealthReserveDentalBindshopanditemAPIResponseModel +} + +// 绑定门店信息,商品信息 成功返回结果 +type AlibabaAlihealthReserveDentalBindshopanditemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_reserve_dental_bindshopanditem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAlihealthReserveDentalBindshopanditemResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthReserveDentalBindshopanditemResponse.go b/model/alihealth2/AlibabaAlihealthReserveDentalBindshopanditemResponse.go deleted file mode 100644 index ac2fd0049e..0000000000 --- a/model/alihealth2/AlibabaAlihealthReserveDentalBindshopanditemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -绑定门店信息,商品信息 API返回值 -alibaba.alihealth.reserve.dental.bindshopanditem - -绑定门店信息,商品信息 -*/ -type AlibabaAlihealthReserveDentalBindshopanditemAPIResponse struct { - model.CommonResponse - AlibabaAlihealthReserveDentalBindshopanditemResponse -} - -// 绑定门店信息,商品信息 成功返回结果 -type AlibabaAlihealthReserveDentalBindshopanditemResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_reserve_dental_bindshopanditem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAlihealthReserveDentalBindshopanditemResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthReserveDentalMarkitemAPIRequest.go b/model/alihealth2/AlibabaAlihealthReserveDentalMarkitemAPIRequest.go new file mode 100644 index 0000000000..88f58b615f --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthReserveDentalMarkitemAPIRequest.go @@ -0,0 +1,66 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +标记商品是否可预约 API请求 +alibaba.alihealth.reserve.dental.markitem + +标记商品是否可预约 +*/ +type AlibabaAlihealthReserveDentalMarkitemAPIRequest struct { + model.Params + // 平台商品id + _itemId int64 + // 是否可预约,1.可预约 0.不可预约 + _status int64 +} + +// 初始化AlibabaAlihealthReserveDentalMarkitemAPIRequest对象 +func NewAlibabaAlihealthReserveDentalMarkitemRequest() *AlibabaAlihealthReserveDentalMarkitemAPIRequest{ + return &AlibabaAlihealthReserveDentalMarkitemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthReserveDentalMarkitemAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.reserve.dental.markitem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthReserveDentalMarkitemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 平台商品id +func (r *AlibabaAlihealthReserveDentalMarkitemAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaAlihealthReserveDentalMarkitemAPIRequest) GetItemId() int64 { + return r._itemId +} +// Status Setter +// 是否可预约,1.可预约 0.不可预约 +func (r *AlibabaAlihealthReserveDentalMarkitemAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaAlihealthReserveDentalMarkitemAPIRequest) GetStatus() int64 { + return r._status +} diff --git a/model/alihealth2/AlibabaAlihealthReserveDentalMarkitemAPIResponse.go b/model/alihealth2/AlibabaAlihealthReserveDentalMarkitemAPIResponse.go new file mode 100644 index 0000000000..164915148f --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthReserveDentalMarkitemAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +标记商品是否可预约 API返回值 +alibaba.alihealth.reserve.dental.markitem + +标记商品是否可预约 +*/ +type AlibabaAlihealthReserveDentalMarkitemAPIResponse struct { + model.CommonResponse + AlibabaAlihealthReserveDentalMarkitemAPIResponseModel +} + +// 标记商品是否可预约 成功返回结果 +type AlibabaAlihealthReserveDentalMarkitemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_reserve_dental_markitem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthReserveDentalMarkitemResponse.go b/model/alihealth2/AlibabaAlihealthReserveDentalMarkitemResponse.go deleted file mode 100644 index 47b3e688a2..0000000000 --- a/model/alihealth2/AlibabaAlihealthReserveDentalMarkitemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -标记商品是否可预约 API返回值 -alibaba.alihealth.reserve.dental.markitem - -标记商品是否可预约 -*/ -type AlibabaAlihealthReserveDentalMarkitemAPIResponse struct { - model.CommonResponse - AlibabaAlihealthReserveDentalMarkitemResponse -} - -// 标记商品是否可预约 成功返回结果 -type AlibabaAlihealthReserveDentalMarkitemResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_reserve_dental_markitem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthReserveDentalModifyrestimeAPIRequest.go b/model/alihealth2/AlibabaAlihealthReserveDentalModifyrestimeAPIRequest.go new file mode 100644 index 0000000000..87bf60bc40 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthReserveDentalModifyrestimeAPIRequest.go @@ -0,0 +1,66 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改预约时间 API请求 +alibaba.alihealth.reserve.dental.modifyrestime + +修改预约时间 +*/ +type AlibabaAlihealthReserveDentalModifyrestimeAPIRequest struct { + model.Params + // 预约单ID + _reserveId int64 + // 预约时间 + _reserveTime string +} + +// 初始化AlibabaAlihealthReserveDentalModifyrestimeAPIRequest对象 +func NewAlibabaAlihealthReserveDentalModifyrestimeRequest() *AlibabaAlihealthReserveDentalModifyrestimeAPIRequest{ + return &AlibabaAlihealthReserveDentalModifyrestimeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthReserveDentalModifyrestimeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.reserve.dental.modifyrestime" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthReserveDentalModifyrestimeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReserveId Setter +// 预约单ID +func (r *AlibabaAlihealthReserveDentalModifyrestimeAPIRequest) SetReserveId(_reserveId int64) error { + r._reserveId = _reserveId + r.Set("reserve_id", _reserveId) + return nil +} + +// ReserveId Getter +func (r AlibabaAlihealthReserveDentalModifyrestimeAPIRequest) GetReserveId() int64 { + return r._reserveId +} +// ReserveTime Setter +// 预约时间 +func (r *AlibabaAlihealthReserveDentalModifyrestimeAPIRequest) SetReserveTime(_reserveTime string) error { + r._reserveTime = _reserveTime + r.Set("reserve_time", _reserveTime) + return nil +} + +// ReserveTime Getter +func (r AlibabaAlihealthReserveDentalModifyrestimeAPIRequest) GetReserveTime() string { + return r._reserveTime +} diff --git a/model/alihealth2/AlibabaAlihealthReserveDentalModifyrestimeAPIResponse.go b/model/alihealth2/AlibabaAlihealthReserveDentalModifyrestimeAPIResponse.go new file mode 100644 index 0000000000..e76b05e62a --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthReserveDentalModifyrestimeAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改预约时间 API返回值 +alibaba.alihealth.reserve.dental.modifyrestime + +修改预约时间 +*/ +type AlibabaAlihealthReserveDentalModifyrestimeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthReserveDentalModifyrestimeAPIResponseModel +} + +// 修改预约时间 成功返回结果 +type AlibabaAlihealthReserveDentalModifyrestimeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_reserve_dental_modifyrestime_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAlihealthReserveDentalModifyrestimeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthReserveDentalModifyrestimeResponse.go b/model/alihealth2/AlibabaAlihealthReserveDentalModifyrestimeResponse.go deleted file mode 100644 index 8c026d881b..0000000000 --- a/model/alihealth2/AlibabaAlihealthReserveDentalModifyrestimeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改预约时间 API返回值 -alibaba.alihealth.reserve.dental.modifyrestime - -修改预约时间 -*/ -type AlibabaAlihealthReserveDentalModifyrestimeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthReserveDentalModifyrestimeResponse -} - -// 修改预约时间 成功返回结果 -type AlibabaAlihealthReserveDentalModifyrestimeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_reserve_dental_modifyrestime_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAlihealthReserveDentalModifyrestimeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthReserveDentalStoresanditemsAPIRequest.go b/model/alihealth2/AlibabaAlihealthReserveDentalStoresanditemsAPIRequest.go new file mode 100644 index 0000000000..a71b679028 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthReserveDentalStoresanditemsAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商户门店,商品列表 API请求 +alibaba.alihealth.reserve.dental.storesanditems + +查询商户门店,商品列表 +*/ +type AlibabaAlihealthReserveDentalStoresanditemsAPIRequest struct { + model.Params + // 页码,每页100个门店,超过100个门店分页请求 + _pageNo int64 +} + +// 初始化AlibabaAlihealthReserveDentalStoresanditemsAPIRequest对象 +func NewAlibabaAlihealthReserveDentalStoresanditemsRequest() *AlibabaAlihealthReserveDentalStoresanditemsAPIRequest{ + return &AlibabaAlihealthReserveDentalStoresanditemsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthReserveDentalStoresanditemsAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.reserve.dental.storesanditems" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthReserveDentalStoresanditemsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageNo Setter +// 页码,每页100个门店,超过100个门店分页请求 +func (r *AlibabaAlihealthReserveDentalStoresanditemsAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r AlibabaAlihealthReserveDentalStoresanditemsAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/alihealth2/AlibabaAlihealthReserveDentalStoresanditemsAPIResponse.go b/model/alihealth2/AlibabaAlihealthReserveDentalStoresanditemsAPIResponse.go new file mode 100644 index 0000000000..70d261c754 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthReserveDentalStoresanditemsAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商户门店,商品列表 API返回值 +alibaba.alihealth.reserve.dental.storesanditems + +查询商户门店,商品列表 +*/ +type AlibabaAlihealthReserveDentalStoresanditemsAPIResponse struct { + model.CommonResponse + AlibabaAlihealthReserveDentalStoresanditemsAPIResponseModel +} + +// 查询商户门店,商品列表 成功返回结果 +type AlibabaAlihealthReserveDentalStoresanditemsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_reserve_dental_storesanditems_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthReserveDentalStoresanditemsResponse.go b/model/alihealth2/AlibabaAlihealthReserveDentalStoresanditemsResponse.go deleted file mode 100644 index 8bea57ca12..0000000000 --- a/model/alihealth2/AlibabaAlihealthReserveDentalStoresanditemsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询商户门店,商品列表 API返回值 -alibaba.alihealth.reserve.dental.storesanditems - -查询商户门店,商品列表 -*/ -type AlibabaAlihealthReserveDentalStoresanditemsAPIResponse struct { - model.CommonResponse - AlibabaAlihealthReserveDentalStoresanditemsResponse -} - -// 查询商户门店,商品列表 成功返回结果 -type AlibabaAlihealthReserveDentalStoresanditemsResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_reserve_dental_storesanditems_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthReserveDentalUnbinditemAPIRequest.go b/model/alihealth2/AlibabaAlihealthReserveDentalUnbinditemAPIRequest.go new file mode 100644 index 0000000000..84f4cb3ccb --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthReserveDentalUnbinditemAPIRequest.go @@ -0,0 +1,66 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +解绑商品信息 API请求 +alibaba.alihealth.reserve.dental.unbinditem + +绑定门店信息,商品信息 +*/ +type AlibabaAlihealthReserveDentalUnbinditemAPIRequest struct { + model.Params + // 服务商门店id + _spStoreId string + // 服务商商品id + _spItemId string +} + +// 初始化AlibabaAlihealthReserveDentalUnbinditemAPIRequest对象 +func NewAlibabaAlihealthReserveDentalUnbinditemRequest() *AlibabaAlihealthReserveDentalUnbinditemAPIRequest{ + return &AlibabaAlihealthReserveDentalUnbinditemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthReserveDentalUnbinditemAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.reserve.dental.unbinditem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthReserveDentalUnbinditemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SpStoreId Setter +// 服务商门店id +func (r *AlibabaAlihealthReserveDentalUnbinditemAPIRequest) SetSpStoreId(_spStoreId string) error { + r._spStoreId = _spStoreId + r.Set("sp_store_id", _spStoreId) + return nil +} + +// SpStoreId Getter +func (r AlibabaAlihealthReserveDentalUnbinditemAPIRequest) GetSpStoreId() string { + return r._spStoreId +} +// SpItemId Setter +// 服务商商品id +func (r *AlibabaAlihealthReserveDentalUnbinditemAPIRequest) SetSpItemId(_spItemId string) error { + r._spItemId = _spItemId + r.Set("sp_item_id", _spItemId) + return nil +} + +// SpItemId Getter +func (r AlibabaAlihealthReserveDentalUnbinditemAPIRequest) GetSpItemId() string { + return r._spItemId +} diff --git a/model/alihealth2/AlibabaAlihealthReserveDentalUnbinditemAPIResponse.go b/model/alihealth2/AlibabaAlihealthReserveDentalUnbinditemAPIResponse.go new file mode 100644 index 0000000000..57d3639a3d --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthReserveDentalUnbinditemAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +解绑商品信息 API返回值 +alibaba.alihealth.reserve.dental.unbinditem + +绑定门店信息,商品信息 +*/ +type AlibabaAlihealthReserveDentalUnbinditemAPIResponse struct { + model.CommonResponse + AlibabaAlihealthReserveDentalUnbinditemAPIResponseModel +} + +// 解绑商品信息 成功返回结果 +type AlibabaAlihealthReserveDentalUnbinditemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_reserve_dental_unbinditem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAlihealthReserveDentalUnbinditemResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthReserveDentalUnbinditemResponse.go b/model/alihealth2/AlibabaAlihealthReserveDentalUnbinditemResponse.go deleted file mode 100644 index 5598876018..0000000000 --- a/model/alihealth2/AlibabaAlihealthReserveDentalUnbinditemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -解绑商品信息 API返回值 -alibaba.alihealth.reserve.dental.unbinditem - -绑定门店信息,商品信息 -*/ -type AlibabaAlihealthReserveDentalUnbinditemAPIResponse struct { - model.CommonResponse - AlibabaAlihealthReserveDentalUnbinditemResponse -} - -// 解绑商品信息 成功返回结果 -type AlibabaAlihealthReserveDentalUnbinditemResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_reserve_dental_unbinditem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAlihealthReserveDentalUnbinditemResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthStoreCertificateCreateAPIRequest.go b/model/alihealth2/AlibabaAlihealthStoreCertificateCreateAPIRequest.go new file mode 100644 index 0000000000..f9ca0bf33e --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthStoreCertificateCreateAPIRequest.go @@ -0,0 +1,94 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +仓库换证审批 API请求 +alibaba.alihealth.store.certificate.create + +仓库侧换证发起审批 +*/ +type AlibabaAlihealthStoreCertificateCreateAPIRequest struct { + model.Params + // 仓库code + _storeCode string + // 审批业务类型 + _auditType string + // 审批内容 + _content string + // 业务单号 + _bizNo string +} + +// 初始化AlibabaAlihealthStoreCertificateCreateAPIRequest对象 +func NewAlibabaAlihealthStoreCertificateCreateRequest() *AlibabaAlihealthStoreCertificateCreateAPIRequest{ + return &AlibabaAlihealthStoreCertificateCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthStoreCertificateCreateAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.store.certificate.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthStoreCertificateCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreCode Setter +// 仓库code +func (r *AlibabaAlihealthStoreCertificateCreateAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r AlibabaAlihealthStoreCertificateCreateAPIRequest) GetStoreCode() string { + return r._storeCode +} +// AuditType Setter +// 审批业务类型 +func (r *AlibabaAlihealthStoreCertificateCreateAPIRequest) SetAuditType(_auditType string) error { + r._auditType = _auditType + r.Set("audit_type", _auditType) + return nil +} + +// AuditType Getter +func (r AlibabaAlihealthStoreCertificateCreateAPIRequest) GetAuditType() string { + return r._auditType +} +// Content Setter +// 审批内容 +func (r *AlibabaAlihealthStoreCertificateCreateAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r AlibabaAlihealthStoreCertificateCreateAPIRequest) GetContent() string { + return r._content +} +// BizNo Setter +// 业务单号 +func (r *AlibabaAlihealthStoreCertificateCreateAPIRequest) SetBizNo(_bizNo string) error { + r._bizNo = _bizNo + r.Set("biz_no", _bizNo) + return nil +} + +// BizNo Getter +func (r AlibabaAlihealthStoreCertificateCreateAPIRequest) GetBizNo() string { + return r._bizNo +} diff --git a/model/alihealth2/AlibabaAlihealthStoreCertificateCreateAPIResponse.go b/model/alihealth2/AlibabaAlihealthStoreCertificateCreateAPIResponse.go new file mode 100644 index 0000000000..dd3f7e72d3 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthStoreCertificateCreateAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +仓库换证审批 API返回值 +alibaba.alihealth.store.certificate.create + +仓库侧换证发起审批 +*/ +type AlibabaAlihealthStoreCertificateCreateAPIResponse struct { + model.CommonResponse + AlibabaAlihealthStoreCertificateCreateAPIResponseModel +} + +// 仓库换证审批 成功返回结果 +type AlibabaAlihealthStoreCertificateCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_store_certificate_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *AlibabaAlihealthStoreCertificateCreateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthStoreCertificateCreateResponse.go b/model/alihealth2/AlibabaAlihealthStoreCertificateCreateResponse.go deleted file mode 100644 index e079ffb7ed..0000000000 --- a/model/alihealth2/AlibabaAlihealthStoreCertificateCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -仓库换证审批 API返回值 -alibaba.alihealth.store.certificate.create - -仓库侧换证发起审批 -*/ -type AlibabaAlihealthStoreCertificateCreateAPIResponse struct { - model.CommonResponse - AlibabaAlihealthStoreCertificateCreateResponse -} - -// 仓库换证审批 成功返回结果 -type AlibabaAlihealthStoreCertificateCreateResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_store_certificate_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *AlibabaAlihealthStoreCertificateCreateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthTracecodeplatformCodeActiveAPIRequest.go b/model/alihealth2/AlibabaAlihealthTracecodeplatformCodeActiveAPIRequest.go new file mode 100644 index 0000000000..07a6277e76 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodeplatformCodeActiveAPIRequest.go @@ -0,0 +1,94 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +正大鸡蛋激活追溯码 API请求 +alibaba.alihealth.tracecodeplatform.code.active + +用于正大鸡蛋激活追溯码 +*/ +type AlibabaAlihealthTracecodeplatformCodeActiveAPIRequest struct { + model.Params + // 文件信息(对文件内容16进制编码) + _fileInfo string + // 回调url + _callbackUrl string + // 文件名 + _fileName string + // 商品id + _prodId int64 +} + +// 初始化AlibabaAlihealthTracecodeplatformCodeActiveAPIRequest对象 +func NewAlibabaAlihealthTracecodeplatformCodeActiveRequest() *AlibabaAlihealthTracecodeplatformCodeActiveAPIRequest{ + return &AlibabaAlihealthTracecodeplatformCodeActiveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthTracecodeplatformCodeActiveAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.tracecodeplatform.code.active" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthTracecodeplatformCodeActiveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FileInfo Setter +// 文件信息(对文件内容16进制编码) +func (r *AlibabaAlihealthTracecodeplatformCodeActiveAPIRequest) SetFileInfo(_fileInfo string) error { + r._fileInfo = _fileInfo + r.Set("file_info", _fileInfo) + return nil +} + +// FileInfo Getter +func (r AlibabaAlihealthTracecodeplatformCodeActiveAPIRequest) GetFileInfo() string { + return r._fileInfo +} +// CallbackUrl Setter +// 回调url +func (r *AlibabaAlihealthTracecodeplatformCodeActiveAPIRequest) SetCallbackUrl(_callbackUrl string) error { + r._callbackUrl = _callbackUrl + r.Set("callback_url", _callbackUrl) + return nil +} + +// CallbackUrl Getter +func (r AlibabaAlihealthTracecodeplatformCodeActiveAPIRequest) GetCallbackUrl() string { + return r._callbackUrl +} +// FileName Setter +// 文件名 +func (r *AlibabaAlihealthTracecodeplatformCodeActiveAPIRequest) SetFileName(_fileName string) error { + r._fileName = _fileName + r.Set("file_name", _fileName) + return nil +} + +// FileName Getter +func (r AlibabaAlihealthTracecodeplatformCodeActiveAPIRequest) GetFileName() string { + return r._fileName +} +// ProdId Setter +// 商品id +func (r *AlibabaAlihealthTracecodeplatformCodeActiveAPIRequest) SetProdId(_prodId int64) error { + r._prodId = _prodId + r.Set("prod_id", _prodId) + return nil +} + +// ProdId Getter +func (r AlibabaAlihealthTracecodeplatformCodeActiveAPIRequest) GetProdId() int64 { + return r._prodId +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodeplatformCodeActiveAPIResponse.go b/model/alihealth2/AlibabaAlihealthTracecodeplatformCodeActiveAPIResponse.go new file mode 100644 index 0000000000..33bf8f6afb --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodeplatformCodeActiveAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +正大鸡蛋激活追溯码 API返回值 +alibaba.alihealth.tracecodeplatform.code.active + +用于正大鸡蛋激活追溯码 +*/ +type AlibabaAlihealthTracecodeplatformCodeActiveAPIResponse struct { + model.CommonResponse + AlibabaAlihealthTracecodeplatformCodeActiveAPIResponseModel +} + +// 正大鸡蛋激活追溯码 成功返回结果 +type AlibabaAlihealthTracecodeplatformCodeActiveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_tracecodeplatform_code_active_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaAlihealthTracecodeplatformCodeActiveResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodeplatformCodeActiveResponse.go b/model/alihealth2/AlibabaAlihealthTracecodeplatformCodeActiveResponse.go deleted file mode 100644 index 1613638b71..0000000000 --- a/model/alihealth2/AlibabaAlihealthTracecodeplatformCodeActiveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -正大鸡蛋激活追溯码 API返回值 -alibaba.alihealth.tracecodeplatform.code.active - -用于正大鸡蛋激活追溯码 -*/ -type AlibabaAlihealthTracecodeplatformCodeActiveAPIResponse struct { - model.CommonResponse - AlibabaAlihealthTracecodeplatformCodeActiveResponse -} - -// 正大鸡蛋激活追溯码 成功返回结果 -type AlibabaAlihealthTracecodeplatformCodeActiveResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_tracecodeplatform_code_active_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaAlihealthTracecodeplatformCodeActiveResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthTracecodeplatformCodeEntscanAPIRequest.go b/model/alihealth2/AlibabaAlihealthTracecodeplatformCodeEntscanAPIRequest.go new file mode 100644 index 0000000000..df34b00da3 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodeplatformCodeEntscanAPIRequest.go @@ -0,0 +1,66 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +药品商家扫码 API请求 +alibaba.alihealth.tracecodeplatform.code.entscan + +药品商家扫描药品监管码,只有该商家的药才返回 +*/ +type AlibabaAlihealthTracecodeplatformCodeEntscanAPIRequest struct { + model.Params + // 药监码 + _code string + // 不同企业有不同的标识 + _serviceFlag string +} + +// 初始化AlibabaAlihealthTracecodeplatformCodeEntscanAPIRequest对象 +func NewAlibabaAlihealthTracecodeplatformCodeEntscanRequest() *AlibabaAlihealthTracecodeplatformCodeEntscanAPIRequest{ + return &AlibabaAlihealthTracecodeplatformCodeEntscanAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthTracecodeplatformCodeEntscanAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.tracecodeplatform.code.entscan" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthTracecodeplatformCodeEntscanAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 药监码 +func (r *AlibabaAlihealthTracecodeplatformCodeEntscanAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthTracecodeplatformCodeEntscanAPIRequest) GetCode() string { + return r._code +} +// ServiceFlag Setter +// 不同企业有不同的标识 +func (r *AlibabaAlihealthTracecodeplatformCodeEntscanAPIRequest) SetServiceFlag(_serviceFlag string) error { + r._serviceFlag = _serviceFlag + r.Set("service_flag", _serviceFlag) + return nil +} + +// ServiceFlag Getter +func (r AlibabaAlihealthTracecodeplatformCodeEntscanAPIRequest) GetServiceFlag() string { + return r._serviceFlag +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodeplatformCodeEntscanAPIResponse.go b/model/alihealth2/AlibabaAlihealthTracecodeplatformCodeEntscanAPIResponse.go new file mode 100644 index 0000000000..daee0a5c74 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodeplatformCodeEntscanAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +药品商家扫码 API返回值 +alibaba.alihealth.tracecodeplatform.code.entscan + +药品商家扫描药品监管码,只有该商家的药才返回 +*/ +type AlibabaAlihealthTracecodeplatformCodeEntscanAPIResponse struct { + model.CommonResponse + AlibabaAlihealthTracecodeplatformCodeEntscanAPIResponseModel +} + +// 药品商家扫码 成功返回结果 +type AlibabaAlihealthTracecodeplatformCodeEntscanAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_tracecodeplatform_code_entscan_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodeplatformCodeEntscanResponse.go b/model/alihealth2/AlibabaAlihealthTracecodeplatformCodeEntscanResponse.go deleted file mode 100644 index da94e2de14..0000000000 --- a/model/alihealth2/AlibabaAlihealthTracecodeplatformCodeEntscanResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -药品商家扫码 API返回值 -alibaba.alihealth.tracecodeplatform.code.entscan - -药品商家扫描药品监管码,只有该商家的药才返回 -*/ -type AlibabaAlihealthTracecodeplatformCodeEntscanAPIResponse struct { - model.CommonResponse - AlibabaAlihealthTracecodeplatformCodeEntscanResponse -} - -// 药品商家扫码 成功返回结果 -type AlibabaAlihealthTracecodeplatformCodeEntscanResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_tracecodeplatform_code_entscan_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest.go b/model/alihealth2/AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest.go new file mode 100644 index 0000000000..dc17039f8d --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest.go @@ -0,0 +1,150 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询出入库单处理结果api API请求 +alibaba.alihealth.tracecodeseller.bill.result.search + +查询出入库单处理结果api +*/ +type AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest struct { + model.Params + // top身份认证 + _skeyCode string + // 商家id + _entInfoId int64 + // 单据编号 + _billCode string + // 查询开始日期 + _beginDate string + // 查询结束日期 + _endDate string + // 不需要 + _sellerName string + // 每页条数 + _pageSize int64 + // 当前页 + _page int64 +} + +// 初始化AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest对象 +func NewAlibabaAlihealthTracecodesellerBillResultSearchRequest() *AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest{ + return &AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.tracecodeseller.bill.result.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkeyCode Setter +// top身份认证 +func (r *AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest) SetSkeyCode(_skeyCode string) error { + r._skeyCode = _skeyCode + r.Set("skey_code", _skeyCode) + return nil +} + +// SkeyCode Getter +func (r AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest) GetSkeyCode() string { + return r._skeyCode +} +// EntInfoId Setter +// 商家id +func (r *AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest) SetEntInfoId(_entInfoId int64) error { + r._entInfoId = _entInfoId + r.Set("ent_info_id", _entInfoId) + return nil +} + +// EntInfoId Getter +func (r AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest) GetEntInfoId() int64 { + return r._entInfoId +} +// BillCode Setter +// 单据编号 +func (r *AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest) GetBillCode() string { + return r._billCode +} +// BeginDate Setter +// 查询开始日期 +func (r *AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest) GetBeginDate() string { + return r._beginDate +} +// EndDate Setter +// 查询结束日期 +func (r *AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest) GetEndDate() string { + return r._endDate +} +// SellerName Setter +// 不需要 +func (r *AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest) SetSellerName(_sellerName string) error { + r._sellerName = _sellerName + r.Set("seller_name", _sellerName) + return nil +} + +// SellerName Getter +func (r AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest) GetSellerName() string { + return r._sellerName +} +// PageSize Setter +// 每页条数 +func (r *AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Page Setter +// 当前页 +func (r *AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthTracecodesellerBillResultSearchAPIRequest) GetPage() int64 { + return r._page +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerBillResultSearchAPIResponse.go b/model/alihealth2/AlibabaAlihealthTracecodesellerBillResultSearchAPIResponse.go new file mode 100644 index 0000000000..2ed4d83698 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodesellerBillResultSearchAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询出入库单处理结果api API返回值 +alibaba.alihealth.tracecodeseller.bill.result.search + +查询出入库单处理结果api +*/ +type AlibabaAlihealthTracecodesellerBillResultSearchAPIResponse struct { + model.CommonResponse + AlibabaAlihealthTracecodesellerBillResultSearchAPIResponseModel +} + +// 查询出入库单处理结果api 成功返回结果 +type AlibabaAlihealthTracecodesellerBillResultSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_bill_result_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerBillResultSearchResponse.go b/model/alihealth2/AlibabaAlihealthTracecodesellerBillResultSearchResponse.go deleted file mode 100644 index f8efe59daa..0000000000 --- a/model/alihealth2/AlibabaAlihealthTracecodesellerBillResultSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询出入库单处理结果api API返回值 -alibaba.alihealth.tracecodeseller.bill.result.search - -查询出入库单处理结果api -*/ -type AlibabaAlihealthTracecodesellerBillResultSearchAPIResponse struct { - model.CommonResponse - AlibabaAlihealthTracecodesellerBillResultSearchResponse -} - -// 查询出入库单处理结果api 成功返回结果 -type AlibabaAlihealthTracecodesellerBillResultSearchResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_bill_result_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerBillUploadAPIRequest.go b/model/alihealth2/AlibabaAlihealthTracecodesellerBillUploadAPIRequest.go new file mode 100644 index 0000000000..16bcb6dca9 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodesellerBillUploadAPIRequest.go @@ -0,0 +1,150 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传入出库单api API请求 +alibaba.alihealth.tracecodeseller.bill.upload + +上传入出库单api +*/ +type AlibabaAlihealthTracecodesellerBillUploadAPIRequest struct { + model.Params + // 身份认证 + _skeyCode string + // 商家id + _entInfoId int64 + // 单据编号 + _billCode string + // 出入库类型 + _type string + // 出入库时间 精确到 年 月 日 时 分 秒 + _time string + // 自己仓库id + _warehouseId int64 + // 渠道商id + _entMerchantId int64 + // 把txt格式的文件转成16进制的字符串,txt文件是每个码一行 + _codeInfo string +} + +// 初始化AlibabaAlihealthTracecodesellerBillUploadAPIRequest对象 +func NewAlibabaAlihealthTracecodesellerBillUploadRequest() *AlibabaAlihealthTracecodesellerBillUploadAPIRequest{ + return &AlibabaAlihealthTracecodesellerBillUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthTracecodesellerBillUploadAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.tracecodeseller.bill.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthTracecodesellerBillUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkeyCode Setter +// 身份认证 +func (r *AlibabaAlihealthTracecodesellerBillUploadAPIRequest) SetSkeyCode(_skeyCode string) error { + r._skeyCode = _skeyCode + r.Set("skey_code", _skeyCode) + return nil +} + +// SkeyCode Getter +func (r AlibabaAlihealthTracecodesellerBillUploadAPIRequest) GetSkeyCode() string { + return r._skeyCode +} +// EntInfoId Setter +// 商家id +func (r *AlibabaAlihealthTracecodesellerBillUploadAPIRequest) SetEntInfoId(_entInfoId int64) error { + r._entInfoId = _entInfoId + r.Set("ent_info_id", _entInfoId) + return nil +} + +// EntInfoId Getter +func (r AlibabaAlihealthTracecodesellerBillUploadAPIRequest) GetEntInfoId() int64 { + return r._entInfoId +} +// BillCode Setter +// 单据编号 +func (r *AlibabaAlihealthTracecodesellerBillUploadAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthTracecodesellerBillUploadAPIRequest) GetBillCode() string { + return r._billCode +} +// Type Setter +// 出入库类型 +func (r *AlibabaAlihealthTracecodesellerBillUploadAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaAlihealthTracecodesellerBillUploadAPIRequest) GetType() string { + return r._type +} +// Time Setter +// 出入库时间 精确到 年 月 日 时 分 秒 +func (r *AlibabaAlihealthTracecodesellerBillUploadAPIRequest) SetTime(_time string) error { + r._time = _time + r.Set("time", _time) + return nil +} + +// Time Getter +func (r AlibabaAlihealthTracecodesellerBillUploadAPIRequest) GetTime() string { + return r._time +} +// WarehouseId Setter +// 自己仓库id +func (r *AlibabaAlihealthTracecodesellerBillUploadAPIRequest) SetWarehouseId(_warehouseId int64) error { + r._warehouseId = _warehouseId + r.Set("warehouse_id", _warehouseId) + return nil +} + +// WarehouseId Getter +func (r AlibabaAlihealthTracecodesellerBillUploadAPIRequest) GetWarehouseId() int64 { + return r._warehouseId +} +// EntMerchantId Setter +// 渠道商id +func (r *AlibabaAlihealthTracecodesellerBillUploadAPIRequest) SetEntMerchantId(_entMerchantId int64) error { + r._entMerchantId = _entMerchantId + r.Set("ent_merchant_id", _entMerchantId) + return nil +} + +// EntMerchantId Getter +func (r AlibabaAlihealthTracecodesellerBillUploadAPIRequest) GetEntMerchantId() int64 { + return r._entMerchantId +} +// CodeInfo Setter +// 把txt格式的文件转成16进制的字符串,txt文件是每个码一行 +func (r *AlibabaAlihealthTracecodesellerBillUploadAPIRequest) SetCodeInfo(_codeInfo string) error { + r._codeInfo = _codeInfo + r.Set("code_info", _codeInfo) + return nil +} + +// CodeInfo Getter +func (r AlibabaAlihealthTracecodesellerBillUploadAPIRequest) GetCodeInfo() string { + return r._codeInfo +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerBillUploadAPIResponse.go b/model/alihealth2/AlibabaAlihealthTracecodesellerBillUploadAPIResponse.go new file mode 100644 index 0000000000..de20275f0c --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodesellerBillUploadAPIResponse.go @@ -0,0 +1,31 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传入出库单api API返回值 +alibaba.alihealth.tracecodeseller.bill.upload + +上传入出库单api +*/ +type AlibabaAlihealthTracecodesellerBillUploadAPIResponse struct { + model.CommonResponse + AlibabaAlihealthTracecodesellerBillUploadAPIResponseModel +} + +// 上传入出库单api 成功返回结果 +type AlibabaAlihealthTracecodesellerBillUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_bill_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // model + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerBillUploadResponse.go b/model/alihealth2/AlibabaAlihealthTracecodesellerBillUploadResponse.go deleted file mode 100644 index 4436d44f80..0000000000 --- a/model/alihealth2/AlibabaAlihealthTracecodesellerBillUploadResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传入出库单api API返回值 -alibaba.alihealth.tracecodeseller.bill.upload - -上传入出库单api -*/ -type AlibabaAlihealthTracecodesellerBillUploadAPIResponse struct { - model.CommonResponse - AlibabaAlihealthTracecodesellerBillUploadResponse -} - -// 上传入出库单api 成功返回结果 -type AlibabaAlihealthTracecodesellerBillUploadResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_bill_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // model - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerChannelSearchAPIRequest.go b/model/alihealth2/AlibabaAlihealthTracecodesellerChannelSearchAPIRequest.go new file mode 100644 index 0000000000..897ef847f9 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodesellerChannelSearchAPIRequest.go @@ -0,0 +1,108 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询渠道商api API请求 +alibaba.alihealth.tracecodeseller.channel.search + +查询渠道商api +*/ +type AlibabaAlihealthTracecodesellerChannelSearchAPIRequest struct { + model.Params + // 身份认证 + _skeyCode string + // 商家id + _entInfoId int64 + // 第几页 + _page int64 + // 每页几条 + _pageSize int64 + // 0 出库 2 入库 + _outInType int64 +} + +// 初始化AlibabaAlihealthTracecodesellerChannelSearchAPIRequest对象 +func NewAlibabaAlihealthTracecodesellerChannelSearchRequest() *AlibabaAlihealthTracecodesellerChannelSearchAPIRequest{ + return &AlibabaAlihealthTracecodesellerChannelSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthTracecodesellerChannelSearchAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.tracecodeseller.channel.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthTracecodesellerChannelSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkeyCode Setter +// 身份认证 +func (r *AlibabaAlihealthTracecodesellerChannelSearchAPIRequest) SetSkeyCode(_skeyCode string) error { + r._skeyCode = _skeyCode + r.Set("skey_code", _skeyCode) + return nil +} + +// SkeyCode Getter +func (r AlibabaAlihealthTracecodesellerChannelSearchAPIRequest) GetSkeyCode() string { + return r._skeyCode +} +// EntInfoId Setter +// 商家id +func (r *AlibabaAlihealthTracecodesellerChannelSearchAPIRequest) SetEntInfoId(_entInfoId int64) error { + r._entInfoId = _entInfoId + r.Set("ent_info_id", _entInfoId) + return nil +} + +// EntInfoId Getter +func (r AlibabaAlihealthTracecodesellerChannelSearchAPIRequest) GetEntInfoId() int64 { + return r._entInfoId +} +// Page Setter +// 第几页 +func (r *AlibabaAlihealthTracecodesellerChannelSearchAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthTracecodesellerChannelSearchAPIRequest) GetPage() int64 { + return r._page +} +// PageSize Setter +// 每页几条 +func (r *AlibabaAlihealthTracecodesellerChannelSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthTracecodesellerChannelSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// OutInType Setter +// 0 出库 2 入库 +func (r *AlibabaAlihealthTracecodesellerChannelSearchAPIRequest) SetOutInType(_outInType int64) error { + r._outInType = _outInType + r.Set("out_in_type", _outInType) + return nil +} + +// OutInType Getter +func (r AlibabaAlihealthTracecodesellerChannelSearchAPIRequest) GetOutInType() int64 { + return r._outInType +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerChannelSearchAPIResponse.go b/model/alihealth2/AlibabaAlihealthTracecodesellerChannelSearchAPIResponse.go new file mode 100644 index 0000000000..b8c74d1b8c --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodesellerChannelSearchAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询渠道商api API返回值 +alibaba.alihealth.tracecodeseller.channel.search + +查询渠道商api +*/ +type AlibabaAlihealthTracecodesellerChannelSearchAPIResponse struct { + model.CommonResponse + AlibabaAlihealthTracecodesellerChannelSearchAPIResponseModel +} + +// 查询渠道商api 成功返回结果 +type AlibabaAlihealthTracecodesellerChannelSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_channel_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerChannelSearchResponse.go b/model/alihealth2/AlibabaAlihealthTracecodesellerChannelSearchResponse.go deleted file mode 100644 index edf87b8201..0000000000 --- a/model/alihealth2/AlibabaAlihealthTracecodesellerChannelSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询渠道商api API返回值 -alibaba.alihealth.tracecodeseller.channel.search - -查询渠道商api -*/ -type AlibabaAlihealthTracecodesellerChannelSearchAPIResponse struct { - model.CommonResponse - AlibabaAlihealthTracecodesellerChannelSearchResponse -} - -// 查询渠道商api 成功返回结果 -type AlibabaAlihealthTracecodesellerChannelSearchResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_channel_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerCodeActiveAPIRequest.go b/model/alihealth2/AlibabaAlihealthTracecodesellerCodeActiveAPIRequest.go new file mode 100644 index 0000000000..5ed150bcab --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodesellerCodeActiveAPIRequest.go @@ -0,0 +1,122 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传激活码的文件 API请求 +alibaba.alihealth.tracecodeseller.code.active + +上传商品的激活码文件,存到系统中 +*/ +type AlibabaAlihealthTracecodesellerCodeActiveAPIRequest struct { + model.Params + // 文件名 + _fileName string + // 商品编号 + _productInfoId int64 + // 文件内容,十六进制编码 + _fileContent string + // 关联类型,0:无关联,1:前关联,2:后关联 + _correlationType int64 + // 关联比例 + _correlationRatio string + // 语言标识 + _language string +} + +// 初始化AlibabaAlihealthTracecodesellerCodeActiveAPIRequest对象 +func NewAlibabaAlihealthTracecodesellerCodeActiveRequest() *AlibabaAlihealthTracecodesellerCodeActiveAPIRequest{ + return &AlibabaAlihealthTracecodesellerCodeActiveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthTracecodesellerCodeActiveAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.tracecodeseller.code.active" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthTracecodesellerCodeActiveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FileName Setter +// 文件名 +func (r *AlibabaAlihealthTracecodesellerCodeActiveAPIRequest) SetFileName(_fileName string) error { + r._fileName = _fileName + r.Set("file_name", _fileName) + return nil +} + +// FileName Getter +func (r AlibabaAlihealthTracecodesellerCodeActiveAPIRequest) GetFileName() string { + return r._fileName +} +// ProductInfoId Setter +// 商品编号 +func (r *AlibabaAlihealthTracecodesellerCodeActiveAPIRequest) SetProductInfoId(_productInfoId int64) error { + r._productInfoId = _productInfoId + r.Set("product_info_id", _productInfoId) + return nil +} + +// ProductInfoId Getter +func (r AlibabaAlihealthTracecodesellerCodeActiveAPIRequest) GetProductInfoId() int64 { + return r._productInfoId +} +// FileContent Setter +// 文件内容,十六进制编码 +func (r *AlibabaAlihealthTracecodesellerCodeActiveAPIRequest) SetFileContent(_fileContent string) error { + r._fileContent = _fileContent + r.Set("file_content", _fileContent) + return nil +} + +// FileContent Getter +func (r AlibabaAlihealthTracecodesellerCodeActiveAPIRequest) GetFileContent() string { + return r._fileContent +} +// CorrelationType Setter +// 关联类型,0:无关联,1:前关联,2:后关联 +func (r *AlibabaAlihealthTracecodesellerCodeActiveAPIRequest) SetCorrelationType(_correlationType int64) error { + r._correlationType = _correlationType + r.Set("correlation_type", _correlationType) + return nil +} + +// CorrelationType Getter +func (r AlibabaAlihealthTracecodesellerCodeActiveAPIRequest) GetCorrelationType() int64 { + return r._correlationType +} +// CorrelationRatio Setter +// 关联比例 +func (r *AlibabaAlihealthTracecodesellerCodeActiveAPIRequest) SetCorrelationRatio(_correlationRatio string) error { + r._correlationRatio = _correlationRatio + r.Set("correlation_ratio", _correlationRatio) + return nil +} + +// CorrelationRatio Getter +func (r AlibabaAlihealthTracecodesellerCodeActiveAPIRequest) GetCorrelationRatio() string { + return r._correlationRatio +} +// Language Setter +// 语言标识 +func (r *AlibabaAlihealthTracecodesellerCodeActiveAPIRequest) SetLanguage(_language string) error { + r._language = _language + r.Set("language", _language) + return nil +} + +// Language Getter +func (r AlibabaAlihealthTracecodesellerCodeActiveAPIRequest) GetLanguage() string { + return r._language +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerCodeActiveAPIResponse.go b/model/alihealth2/AlibabaAlihealthTracecodesellerCodeActiveAPIResponse.go new file mode 100644 index 0000000000..508127f66e --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodesellerCodeActiveAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传激活码的文件 API返回值 +alibaba.alihealth.tracecodeseller.code.active + +上传商品的激活码文件,存到系统中 +*/ +type AlibabaAlihealthTracecodesellerCodeActiveAPIResponse struct { + model.CommonResponse + AlibabaAlihealthTracecodesellerCodeActiveAPIResponseModel +} + +// 上传激活码的文件 成功返回结果 +type AlibabaAlihealthTracecodesellerCodeActiveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_code_active_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerCodeActiveResponse.go b/model/alihealth2/AlibabaAlihealthTracecodesellerCodeActiveResponse.go deleted file mode 100644 index 4ef0cfd692..0000000000 --- a/model/alihealth2/AlibabaAlihealthTracecodesellerCodeActiveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传激活码的文件 API返回值 -alibaba.alihealth.tracecodeseller.code.active - -上传商品的激活码文件,存到系统中 -*/ -type AlibabaAlihealthTracecodesellerCodeActiveAPIResponse struct { - model.CommonResponse - AlibabaAlihealthTracecodesellerCodeActiveResponse -} - -// 上传激活码的文件 成功返回结果 -type AlibabaAlihealthTracecodesellerCodeActiveResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_code_active_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIRequest.go b/model/alihealth2/AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIRequest.go new file mode 100644 index 0000000000..b28709ac15 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIRequest.go @@ -0,0 +1,80 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +解除码的关联关系 API请求 +alibaba.alihealth.tracecodeseller.code.relation.codeantiactive + +解除码的关联关系 +*/ +type AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIRequest struct { + model.Params + // 顶层码 + _topCode string + // 淘宝名 + _tbUserId string + // 企业id + _entInfoId int64 +} + +// 初始化AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIRequest对象 +func NewAlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveRequest() *AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIRequest{ + return &AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.tracecodeseller.code.relation.codeantiactive" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TopCode Setter +// 顶层码 +func (r *AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIRequest) SetTopCode(_topCode string) error { + r._topCode = _topCode + r.Set("top_code", _topCode) + return nil +} + +// TopCode Getter +func (r AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIRequest) GetTopCode() string { + return r._topCode +} +// TbUserId Setter +// 淘宝名 +func (r *AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIRequest) SetTbUserId(_tbUserId string) error { + r._tbUserId = _tbUserId + r.Set("tb_user_id", _tbUserId) + return nil +} + +// TbUserId Getter +func (r AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIRequest) GetTbUserId() string { + return r._tbUserId +} +// EntInfoId Setter +// 企业id +func (r *AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIRequest) SetEntInfoId(_entInfoId int64) error { + r._entInfoId = _entInfoId + r.Set("ent_info_id", _entInfoId) + return nil +} + +// EntInfoId Getter +func (r AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIRequest) GetEntInfoId() int64 { + return r._entInfoId +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIResponse.go b/model/alihealth2/AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIResponse.go new file mode 100644 index 0000000000..235ed0eed6 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIResponse.go @@ -0,0 +1,31 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +解除码的关联关系 API返回值 +alibaba.alihealth.tracecodeseller.code.relation.codeantiactive + +解除码的关联关系 +*/ +type AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIResponse struct { + model.CommonResponse + AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIResponseModel +} + +// 解除码的关联关系 成功返回结果 +type AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_code_relation_codeantiactive_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功失败标记 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 成功失败信息编码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 成功失败信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveResponse.go b/model/alihealth2/AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveResponse.go deleted file mode 100644 index 1f2ce0ec9f..0000000000 --- a/model/alihealth2/AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -解除码的关联关系 API返回值 -alibaba.alihealth.tracecodeseller.code.relation.codeantiactive - -解除码的关联关系 -*/ -type AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveAPIResponse struct { - model.CommonResponse - AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveResponse -} - -// 解除码的关联关系 成功返回结果 -type AlibabaAlihealthTracecodesellerCodeRelationCodeantiactiveResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_code_relation_codeantiactive_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功失败标记 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 成功失败信息编码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 成功失败信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIRequest.go b/model/alihealth2/AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIRequest.go new file mode 100644 index 0000000000..7a9782fb6a --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIRequest.go @@ -0,0 +1,80 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +非药单码替换 API请求 +alibaba.alihealth.tracecodeseller.code.single.codereplace + +提供非药追溯码单码替换功能 +*/ +type AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIRequest struct { + model.Params + // 企业id + _entInfoId string + // 新码 + _newCode string + // 老码 + _oldCode string +} + +// 初始化AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIRequest对象 +func NewAlibabaAlihealthTracecodesellerCodeSingleCodereplaceRequest() *AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIRequest{ + return &AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.tracecodeseller.code.single.codereplace" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EntInfoId Setter +// 企业id +func (r *AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIRequest) SetEntInfoId(_entInfoId string) error { + r._entInfoId = _entInfoId + r.Set("ent_info_id", _entInfoId) + return nil +} + +// EntInfoId Getter +func (r AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIRequest) GetEntInfoId() string { + return r._entInfoId +} +// NewCode Setter +// 新码 +func (r *AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIRequest) SetNewCode(_newCode string) error { + r._newCode = _newCode + r.Set("new_code", _newCode) + return nil +} + +// NewCode Getter +func (r AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIRequest) GetNewCode() string { + return r._newCode +} +// OldCode Setter +// 老码 +func (r *AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIRequest) SetOldCode(_oldCode string) error { + r._oldCode = _oldCode + r.Set("old_code", _oldCode) + return nil +} + +// OldCode Getter +func (r AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIRequest) GetOldCode() string { + return r._oldCode +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIResponse.go b/model/alihealth2/AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIResponse.go new file mode 100644 index 0000000000..dd407c4dd8 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIResponse.go @@ -0,0 +1,31 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +非药单码替换 API返回值 +alibaba.alihealth.tracecodeseller.code.single.codereplace + +提供非药追溯码单码替换功能 +*/ +type AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIResponse struct { + model.CommonResponse + AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIResponseModel +} + +// 非药单码替换 成功返回结果 +type AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_code_single_codereplace_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 操作说明 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 操作码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerCodeSingleCodereplaceResponse.go b/model/alihealth2/AlibabaAlihealthTracecodesellerCodeSingleCodereplaceResponse.go deleted file mode 100644 index 3a2fdbd518..0000000000 --- a/model/alihealth2/AlibabaAlihealthTracecodesellerCodeSingleCodereplaceResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -非药单码替换 API返回值 -alibaba.alihealth.tracecodeseller.code.single.codereplace - -提供非药追溯码单码替换功能 -*/ -type AlibabaAlihealthTracecodesellerCodeSingleCodereplaceAPIResponse struct { - model.CommonResponse - AlibabaAlihealthTracecodesellerCodeSingleCodereplaceResponse -} - -// 非药单码替换 成功返回结果 -type AlibabaAlihealthTracecodesellerCodeSingleCodereplaceResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_code_single_codereplace_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 操作说明 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 操作码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerEntSearchAPIRequest.go b/model/alihealth2/AlibabaAlihealthTracecodesellerEntSearchAPIRequest.go new file mode 100644 index 0000000000..d01ebffaf0 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodesellerEntSearchAPIRequest.go @@ -0,0 +1,80 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商家信息 API请求 +alibaba.alihealth.tracecodeseller.ent.search + +查询商家信息 +*/ +type AlibabaAlihealthTracecodesellerEntSearchAPIRequest struct { + model.Params + // appkey + _skeyCode string + // 商家名称 + _name string + // 淘宝名 + _tbUserId string +} + +// 初始化AlibabaAlihealthTracecodesellerEntSearchAPIRequest对象 +func NewAlibabaAlihealthTracecodesellerEntSearchRequest() *AlibabaAlihealthTracecodesellerEntSearchAPIRequest{ + return &AlibabaAlihealthTracecodesellerEntSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthTracecodesellerEntSearchAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.tracecodeseller.ent.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthTracecodesellerEntSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkeyCode Setter +// appkey +func (r *AlibabaAlihealthTracecodesellerEntSearchAPIRequest) SetSkeyCode(_skeyCode string) error { + r._skeyCode = _skeyCode + r.Set("skey_code", _skeyCode) + return nil +} + +// SkeyCode Getter +func (r AlibabaAlihealthTracecodesellerEntSearchAPIRequest) GetSkeyCode() string { + return r._skeyCode +} +// Name Setter +// 商家名称 +func (r *AlibabaAlihealthTracecodesellerEntSearchAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r AlibabaAlihealthTracecodesellerEntSearchAPIRequest) GetName() string { + return r._name +} +// TbUserId Setter +// 淘宝名 +func (r *AlibabaAlihealthTracecodesellerEntSearchAPIRequest) SetTbUserId(_tbUserId string) error { + r._tbUserId = _tbUserId + r.Set("tb_user_id", _tbUserId) + return nil +} + +// TbUserId Getter +func (r AlibabaAlihealthTracecodesellerEntSearchAPIRequest) GetTbUserId() string { + return r._tbUserId +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerEntSearchAPIResponse.go b/model/alihealth2/AlibabaAlihealthTracecodesellerEntSearchAPIResponse.go new file mode 100644 index 0000000000..e99e14d66a --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodesellerEntSearchAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商家信息 API返回值 +alibaba.alihealth.tracecodeseller.ent.search + +查询商家信息 +*/ +type AlibabaAlihealthTracecodesellerEntSearchAPIResponse struct { + model.CommonResponse + AlibabaAlihealthTracecodesellerEntSearchAPIResponseModel +} + +// 查询商家信息 成功返回结果 +type AlibabaAlihealthTracecodesellerEntSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_ent_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerEntSearchResponse.go b/model/alihealth2/AlibabaAlihealthTracecodesellerEntSearchResponse.go deleted file mode 100644 index 899b3b4b54..0000000000 --- a/model/alihealth2/AlibabaAlihealthTracecodesellerEntSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询商家信息 API返回值 -alibaba.alihealth.tracecodeseller.ent.search - -查询商家信息 -*/ -type AlibabaAlihealthTracecodesellerEntSearchAPIResponse struct { - model.CommonResponse - AlibabaAlihealthTracecodesellerEntSearchResponse -} - -// 查询商家信息 成功返回结果 -type AlibabaAlihealthTracecodesellerEntSearchResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_ent_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerProductSearchAPIRequest.go b/model/alihealth2/AlibabaAlihealthTracecodesellerProductSearchAPIRequest.go new file mode 100644 index 0000000000..68004e09cc --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodesellerProductSearchAPIRequest.go @@ -0,0 +1,94 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品api API请求 +alibaba.alihealth.tracecodeseller.product.search + +查询商品api +*/ +type AlibabaAlihealthTracecodesellerProductSearchAPIRequest struct { + model.Params + // 身份认证 + _skeyCode string + // 商家id + _entInfoId int64 + // 页数 + _page int64 + // 每页条数 + _pageSize int64 +} + +// 初始化AlibabaAlihealthTracecodesellerProductSearchAPIRequest对象 +func NewAlibabaAlihealthTracecodesellerProductSearchRequest() *AlibabaAlihealthTracecodesellerProductSearchAPIRequest{ + return &AlibabaAlihealthTracecodesellerProductSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthTracecodesellerProductSearchAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.tracecodeseller.product.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthTracecodesellerProductSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkeyCode Setter +// 身份认证 +func (r *AlibabaAlihealthTracecodesellerProductSearchAPIRequest) SetSkeyCode(_skeyCode string) error { + r._skeyCode = _skeyCode + r.Set("skey_code", _skeyCode) + return nil +} + +// SkeyCode Getter +func (r AlibabaAlihealthTracecodesellerProductSearchAPIRequest) GetSkeyCode() string { + return r._skeyCode +} +// EntInfoId Setter +// 商家id +func (r *AlibabaAlihealthTracecodesellerProductSearchAPIRequest) SetEntInfoId(_entInfoId int64) error { + r._entInfoId = _entInfoId + r.Set("ent_info_id", _entInfoId) + return nil +} + +// EntInfoId Getter +func (r AlibabaAlihealthTracecodesellerProductSearchAPIRequest) GetEntInfoId() int64 { + return r._entInfoId +} +// Page Setter +// 页数 +func (r *AlibabaAlihealthTracecodesellerProductSearchAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthTracecodesellerProductSearchAPIRequest) GetPage() int64 { + return r._page +} +// PageSize Setter +// 每页条数 +func (r *AlibabaAlihealthTracecodesellerProductSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthTracecodesellerProductSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerProductSearchAPIResponse.go b/model/alihealth2/AlibabaAlihealthTracecodesellerProductSearchAPIResponse.go new file mode 100644 index 0000000000..6e100d3d07 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodesellerProductSearchAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品api API返回值 +alibaba.alihealth.tracecodeseller.product.search + +查询商品api +*/ +type AlibabaAlihealthTracecodesellerProductSearchAPIResponse struct { + model.CommonResponse + AlibabaAlihealthTracecodesellerProductSearchAPIResponseModel +} + +// 查询商品api 成功返回结果 +type AlibabaAlihealthTracecodesellerProductSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_product_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerProductSearchResponse.go b/model/alihealth2/AlibabaAlihealthTracecodesellerProductSearchResponse.go deleted file mode 100644 index eb3d98a4e3..0000000000 --- a/model/alihealth2/AlibabaAlihealthTracecodesellerProductSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询商品api API返回值 -alibaba.alihealth.tracecodeseller.product.search - -查询商品api -*/ -type AlibabaAlihealthTracecodesellerProductSearchAPIResponse struct { - model.CommonResponse - AlibabaAlihealthTracecodesellerProductSearchResponse -} - -// 查询商品api 成功返回结果 -type AlibabaAlihealthTracecodesellerProductSearchResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_product_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerWarehouseSearchAPIRequest.go b/model/alihealth2/AlibabaAlihealthTracecodesellerWarehouseSearchAPIRequest.go new file mode 100644 index 0000000000..dedb52c162 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodesellerWarehouseSearchAPIRequest.go @@ -0,0 +1,94 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询仓库api API请求 +alibaba.alihealth.tracecodeseller.warehouse.search + +查询仓库api +*/ +type AlibabaAlihealthTracecodesellerWarehouseSearchAPIRequest struct { + model.Params + // 身份认证 + _appkey string + // 商家id + _entInfoId int64 + // 第几页 + _page int64 + // 每页多少条 + _pageSize int64 +} + +// 初始化AlibabaAlihealthTracecodesellerWarehouseSearchAPIRequest对象 +func NewAlibabaAlihealthTracecodesellerWarehouseSearchRequest() *AlibabaAlihealthTracecodesellerWarehouseSearchAPIRequest{ + return &AlibabaAlihealthTracecodesellerWarehouseSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthTracecodesellerWarehouseSearchAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.tracecodeseller.warehouse.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthTracecodesellerWarehouseSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Appkey Setter +// 身份认证 +func (r *AlibabaAlihealthTracecodesellerWarehouseSearchAPIRequest) SetAppkey(_appkey string) error { + r._appkey = _appkey + r.Set("appkey", _appkey) + return nil +} + +// Appkey Getter +func (r AlibabaAlihealthTracecodesellerWarehouseSearchAPIRequest) GetAppkey() string { + return r._appkey +} +// EntInfoId Setter +// 商家id +func (r *AlibabaAlihealthTracecodesellerWarehouseSearchAPIRequest) SetEntInfoId(_entInfoId int64) error { + r._entInfoId = _entInfoId + r.Set("ent_info_id", _entInfoId) + return nil +} + +// EntInfoId Getter +func (r AlibabaAlihealthTracecodesellerWarehouseSearchAPIRequest) GetEntInfoId() int64 { + return r._entInfoId +} +// Page Setter +// 第几页 +func (r *AlibabaAlihealthTracecodesellerWarehouseSearchAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthTracecodesellerWarehouseSearchAPIRequest) GetPage() int64 { + return r._page +} +// PageSize Setter +// 每页多少条 +func (r *AlibabaAlihealthTracecodesellerWarehouseSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthTracecodesellerWarehouseSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerWarehouseSearchAPIResponse.go b/model/alihealth2/AlibabaAlihealthTracecodesellerWarehouseSearchAPIResponse.go new file mode 100644 index 0000000000..c4e05c1d36 --- /dev/null +++ b/model/alihealth2/AlibabaAlihealthTracecodesellerWarehouseSearchAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询仓库api API返回值 +alibaba.alihealth.tracecodeseller.warehouse.search + +查询仓库api +*/ +type AlibabaAlihealthTracecodesellerWarehouseSearchAPIResponse struct { + model.CommonResponse + AlibabaAlihealthTracecodesellerWarehouseSearchAPIResponseModel +} + +// 查询仓库api 成功返回结果 +type AlibabaAlihealthTracecodesellerWarehouseSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_warehouse_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaAlihealthTracecodesellerWarehouseSearchResponse.go b/model/alihealth2/AlibabaAlihealthTracecodesellerWarehouseSearchResponse.go deleted file mode 100644 index 444f7a20c0..0000000000 --- a/model/alihealth2/AlibabaAlihealthTracecodesellerWarehouseSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询仓库api API返回值 -alibaba.alihealth.tracecodeseller.warehouse.search - -查询仓库api -*/ -type AlibabaAlihealthTracecodesellerWarehouseSearchAPIResponse struct { - model.CommonResponse - AlibabaAlihealthTracecodesellerWarehouseSearchResponse -} - -// 查询仓库api 成功返回结果 -type AlibabaAlihealthTracecodesellerWarehouseSearchResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_warehouse_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaFmhealthPressureReportCreateAPIRequest.go b/model/alihealth2/AlibabaFmhealthPressureReportCreateAPIRequest.go new file mode 100644 index 0000000000..c7b07f9c79 --- /dev/null +++ b/model/alihealth2/AlibabaFmhealthPressureReportCreateAPIRequest.go @@ -0,0 +1,136 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +血压报告接口 API请求 +alibaba.fmhealth.pressure.report.create + +生成用户血压测量报告 +*/ +type AlibabaFmhealthPressureReportCreateAPIRequest struct { + model.Params + // 用户id + _userId int64 + // 报告类型 + _reportType string + // 报告内容 + _reportData string + // 报告周期 + _reportPeriod string + // 报告时间 + _reportTime string + // 报告周期天数 + _reportPeriodDays string + // 数据来源 + _reportSource string +} + +// 初始化AlibabaFmhealthPressureReportCreateAPIRequest对象 +func NewAlibabaFmhealthPressureReportCreateRequest() *AlibabaFmhealthPressureReportCreateAPIRequest{ + return &AlibabaFmhealthPressureReportCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFmhealthPressureReportCreateAPIRequest) GetApiMethodName() string { + return "alibaba.fmhealth.pressure.report.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFmhealthPressureReportCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户id +func (r *AlibabaFmhealthPressureReportCreateAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaFmhealthPressureReportCreateAPIRequest) GetUserId() int64 { + return r._userId +} +// ReportType Setter +// 报告类型 +func (r *AlibabaFmhealthPressureReportCreateAPIRequest) SetReportType(_reportType string) error { + r._reportType = _reportType + r.Set("report_type", _reportType) + return nil +} + +// ReportType Getter +func (r AlibabaFmhealthPressureReportCreateAPIRequest) GetReportType() string { + return r._reportType +} +// ReportData Setter +// 报告内容 +func (r *AlibabaFmhealthPressureReportCreateAPIRequest) SetReportData(_reportData string) error { + r._reportData = _reportData + r.Set("report_data", _reportData) + return nil +} + +// ReportData Getter +func (r AlibabaFmhealthPressureReportCreateAPIRequest) GetReportData() string { + return r._reportData +} +// ReportPeriod Setter +// 报告周期 +func (r *AlibabaFmhealthPressureReportCreateAPIRequest) SetReportPeriod(_reportPeriod string) error { + r._reportPeriod = _reportPeriod + r.Set("report_period", _reportPeriod) + return nil +} + +// ReportPeriod Getter +func (r AlibabaFmhealthPressureReportCreateAPIRequest) GetReportPeriod() string { + return r._reportPeriod +} +// ReportTime Setter +// 报告时间 +func (r *AlibabaFmhealthPressureReportCreateAPIRequest) SetReportTime(_reportTime string) error { + r._reportTime = _reportTime + r.Set("report_time", _reportTime) + return nil +} + +// ReportTime Getter +func (r AlibabaFmhealthPressureReportCreateAPIRequest) GetReportTime() string { + return r._reportTime +} +// ReportPeriodDays Setter +// 报告周期天数 +func (r *AlibabaFmhealthPressureReportCreateAPIRequest) SetReportPeriodDays(_reportPeriodDays string) error { + r._reportPeriodDays = _reportPeriodDays + r.Set("report_period_days", _reportPeriodDays) + return nil +} + +// ReportPeriodDays Getter +func (r AlibabaFmhealthPressureReportCreateAPIRequest) GetReportPeriodDays() string { + return r._reportPeriodDays +} +// ReportSource Setter +// 数据来源 +func (r *AlibabaFmhealthPressureReportCreateAPIRequest) SetReportSource(_reportSource string) error { + r._reportSource = _reportSource + r.Set("report_source", _reportSource) + return nil +} + +// ReportSource Getter +func (r AlibabaFmhealthPressureReportCreateAPIRequest) GetReportSource() string { + return r._reportSource +} diff --git a/model/alihealth2/AlibabaFmhealthPressureReportCreateAPIResponse.go b/model/alihealth2/AlibabaFmhealthPressureReportCreateAPIResponse.go new file mode 100644 index 0000000000..0e9f77a4fd --- /dev/null +++ b/model/alihealth2/AlibabaFmhealthPressureReportCreateAPIResponse.go @@ -0,0 +1,33 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +血压报告接口 API返回值 +alibaba.fmhealth.pressure.report.create + +生成用户血压测量报告 +*/ +type AlibabaFmhealthPressureReportCreateAPIResponse struct { + model.CommonResponse + AlibabaFmhealthPressureReportCreateAPIResponseModel +} + +// 血压报告接口 成功返回结果 +type AlibabaFmhealthPressureReportCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fmhealth_pressure_report_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // msgCode + MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // data + Data string `json:"data,omitempty" xml:"data,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // success + Status bool `json:"status,omitempty" xml:"status,omitempty"` +} diff --git a/model/alihealth2/AlibabaFmhealthPressureReportCreateResponse.go b/model/alihealth2/AlibabaFmhealthPressureReportCreateResponse.go deleted file mode 100644 index c23ffc7b3b..0000000000 --- a/model/alihealth2/AlibabaFmhealthPressureReportCreateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -血压报告接口 API返回值 -alibaba.fmhealth.pressure.report.create - -生成用户血压测量报告 -*/ -type AlibabaFmhealthPressureReportCreateAPIResponse struct { - model.CommonResponse - AlibabaFmhealthPressureReportCreateResponse -} - -// 血压报告接口 成功返回结果 -type AlibabaFmhealthPressureReportCreateResponse struct { - XMLName xml.Name `xml:"alibaba_fmhealth_pressure_report_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // msgCode - MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // data - Data string `json:"data,omitempty" xml:"data,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // success - Status bool `json:"status,omitempty" xml:"status,omitempty"` -} diff --git a/model/alihealth2/AlibabaFmhealthWeightLossplanSyncweightdataAPIRequest.go b/model/alihealth2/AlibabaFmhealthWeightLossplanSyncweightdataAPIRequest.go new file mode 100644 index 0000000000..ae631f4539 --- /dev/null +++ b/model/alihealth2/AlibabaFmhealthWeightLossplanSyncweightdataAPIRequest.go @@ -0,0 +1,80 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +薄荷同步三方记录 API请求 +alibaba.fmhealth.weight.lossplan.syncweightdata + +用于三方薄荷同步数据到健康会员 +*/ +type AlibabaFmhealthWeightLossplanSyncweightdataAPIRequest struct { + model.Params + // 阿里健康id + _tpUserId int64 + // 记录体重 + _weight string + // 记录日期 + _recordDate string +} + +// 初始化AlibabaFmhealthWeightLossplanSyncweightdataAPIRequest对象 +func NewAlibabaFmhealthWeightLossplanSyncweightdataRequest() *AlibabaFmhealthWeightLossplanSyncweightdataAPIRequest{ + return &AlibabaFmhealthWeightLossplanSyncweightdataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFmhealthWeightLossplanSyncweightdataAPIRequest) GetApiMethodName() string { + return "alibaba.fmhealth.weight.lossplan.syncweightdata" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFmhealthWeightLossplanSyncweightdataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TpUserId Setter +// 阿里健康id +func (r *AlibabaFmhealthWeightLossplanSyncweightdataAPIRequest) SetTpUserId(_tpUserId int64) error { + r._tpUserId = _tpUserId + r.Set("tp_user_id", _tpUserId) + return nil +} + +// TpUserId Getter +func (r AlibabaFmhealthWeightLossplanSyncweightdataAPIRequest) GetTpUserId() int64 { + return r._tpUserId +} +// Weight Setter +// 记录体重 +func (r *AlibabaFmhealthWeightLossplanSyncweightdataAPIRequest) SetWeight(_weight string) error { + r._weight = _weight + r.Set("weight", _weight) + return nil +} + +// Weight Getter +func (r AlibabaFmhealthWeightLossplanSyncweightdataAPIRequest) GetWeight() string { + return r._weight +} +// RecordDate Setter +// 记录日期 +func (r *AlibabaFmhealthWeightLossplanSyncweightdataAPIRequest) SetRecordDate(_recordDate string) error { + r._recordDate = _recordDate + r.Set("record_date", _recordDate) + return nil +} + +// RecordDate Getter +func (r AlibabaFmhealthWeightLossplanSyncweightdataAPIRequest) GetRecordDate() string { + return r._recordDate +} diff --git a/model/alihealth2/AlibabaFmhealthWeightLossplanSyncweightdataAPIResponse.go b/model/alihealth2/AlibabaFmhealthWeightLossplanSyncweightdataAPIResponse.go new file mode 100644 index 0000000000..44046b8a10 --- /dev/null +++ b/model/alihealth2/AlibabaFmhealthWeightLossplanSyncweightdataAPIResponse.go @@ -0,0 +1,29 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +薄荷同步三方记录 API返回值 +alibaba.fmhealth.weight.lossplan.syncweightdata + +用于三方薄荷同步数据到健康会员 +*/ +type AlibabaFmhealthWeightLossplanSyncweightdataAPIResponse struct { + model.CommonResponse + AlibabaFmhealthWeightLossplanSyncweightdataAPIResponseModel +} + +// 薄荷同步三方记录 成功返回结果 +type AlibabaFmhealthWeightLossplanSyncweightdataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fmhealth_weight_lossplan_syncweightdata_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` +} diff --git a/model/alihealth2/AlibabaFmhealthWeightLossplanSyncweightdataResponse.go b/model/alihealth2/AlibabaFmhealthWeightLossplanSyncweightdataResponse.go deleted file mode 100644 index 8f10637fd1..0000000000 --- a/model/alihealth2/AlibabaFmhealthWeightLossplanSyncweightdataResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -薄荷同步三方记录 API返回值 -alibaba.fmhealth.weight.lossplan.syncweightdata - -用于三方薄荷同步数据到健康会员 -*/ -type AlibabaFmhealthWeightLossplanSyncweightdataAPIResponse struct { - model.CommonResponse - AlibabaFmhealthWeightLossplanSyncweightdataResponse -} - -// 薄荷同步三方记录 成功返回结果 -type AlibabaFmhealthWeightLossplanSyncweightdataResponse struct { - XMLName xml.Name `xml:"alibaba_fmhealth_weight_lossplan_syncweightdata_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` -} diff --git a/model/alihealth2/AlibabaHealthNrCepOrderQueryAPIRequest.go b/model/alihealth2/AlibabaHealthNrCepOrderQueryAPIRequest.go new file mode 100644 index 0000000000..de4bb7708e --- /dev/null +++ b/model/alihealth2/AlibabaHealthNrCepOrderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单详情查询接口 API请求 +alibaba.health.nr.cep.order.query + +订单详情查询接口 +*/ +type AlibabaHealthNrCepOrderQueryAPIRequest struct { + model.Params + // 订单号 + _orderId int64 +} + +// 初始化AlibabaHealthNrCepOrderQueryAPIRequest对象 +func NewAlibabaHealthNrCepOrderQueryRequest() *AlibabaHealthNrCepOrderQueryAPIRequest{ + return &AlibabaHealthNrCepOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHealthNrCepOrderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.health.nr.cep.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHealthNrCepOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单号 +func (r *AlibabaHealthNrCepOrderQueryAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHealthNrCepOrderQueryAPIRequest) GetOrderId() int64 { + return r._orderId +} diff --git a/model/alihealth2/AlibabaHealthNrCepOrderQueryAPIResponse.go b/model/alihealth2/AlibabaHealthNrCepOrderQueryAPIResponse.go new file mode 100644 index 0000000000..435c7235d0 --- /dev/null +++ b/model/alihealth2/AlibabaHealthNrCepOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单详情查询接口 API返回值 +alibaba.health.nr.cep.order.query + +订单详情查询接口 +*/ +type AlibabaHealthNrCepOrderQueryAPIResponse struct { + model.CommonResponse + AlibabaHealthNrCepOrderQueryAPIResponseModel +} + +// 订单详情查询接口 成功返回结果 +type AlibabaHealthNrCepOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_health_nr_cep_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + ResponseResult *ResponseResult `json:"response_result,omitempty" xml:"response_result,omitempty"` +} diff --git a/model/alihealth2/AlibabaHealthNrCepOrderQueryResponse.go b/model/alihealth2/AlibabaHealthNrCepOrderQueryResponse.go deleted file mode 100644 index 5b6809e879..0000000000 --- a/model/alihealth2/AlibabaHealthNrCepOrderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单详情查询接口 API返回值 -alibaba.health.nr.cep.order.query - -订单详情查询接口 -*/ -type AlibabaHealthNrCepOrderQueryAPIResponse struct { - model.CommonResponse - AlibabaHealthNrCepOrderQueryResponse -} - -// 订单详情查询接口 成功返回结果 -type AlibabaHealthNrCepOrderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_health_nr_cep_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - ResponseResult *ResponseResult `json:"response_result,omitempty" xml:"response_result,omitempty"` -} diff --git a/model/alihealth2/AlibabaHealthNrCepOutorderUploadAPIRequest.go b/model/alihealth2/AlibabaHealthNrCepOutorderUploadAPIRequest.go new file mode 100644 index 0000000000..8e23e6638d --- /dev/null +++ b/model/alihealth2/AlibabaHealthNrCepOutorderUploadAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线上订单收货验收单、出入库单据生成接口 API请求 +alibaba.health.nr.cep.outorder.upload + +线上订单收货验收单、出入库单据生成接口 +*/ +type AlibabaHealthNrCepOutorderUploadAPIRequest struct { + model.Params + // 出库单对象 + _topWarOutDto *TopWarOutDto +} + +// 初始化AlibabaHealthNrCepOutorderUploadAPIRequest对象 +func NewAlibabaHealthNrCepOutorderUploadRequest() *AlibabaHealthNrCepOutorderUploadAPIRequest{ + return &AlibabaHealthNrCepOutorderUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHealthNrCepOutorderUploadAPIRequest) GetApiMethodName() string { + return "alibaba.health.nr.cep.outorder.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHealthNrCepOutorderUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TopWarOutDto Setter +// 出库单对象 +func (r *AlibabaHealthNrCepOutorderUploadAPIRequest) SetTopWarOutDto(_topWarOutDto *TopWarOutDto) error { + r._topWarOutDto = _topWarOutDto + r.Set("top_war_out_dto", _topWarOutDto) + return nil +} + +// TopWarOutDto Getter +func (r AlibabaHealthNrCepOutorderUploadAPIRequest) GetTopWarOutDto() *TopWarOutDto { + return r._topWarOutDto +} diff --git a/model/alihealth2/AlibabaHealthNrCepOutorderUploadAPIResponse.go b/model/alihealth2/AlibabaHealthNrCepOutorderUploadAPIResponse.go new file mode 100644 index 0000000000..e5bb86656f --- /dev/null +++ b/model/alihealth2/AlibabaHealthNrCepOutorderUploadAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线上订单收货验收单、出入库单据生成接口 API返回值 +alibaba.health.nr.cep.outorder.upload + +线上订单收货验收单、出入库单据生成接口 +*/ +type AlibabaHealthNrCepOutorderUploadAPIResponse struct { + model.CommonResponse + AlibabaHealthNrCepOutorderUploadAPIResponseModel +} + +// 线上订单收货验收单、出入库单据生成接口 成功返回结果 +type AlibabaHealthNrCepOutorderUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_health_nr_cep_outorder_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务出参 + Result *ResponseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaHealthNrCepOutorderUploadResponse.go b/model/alihealth2/AlibabaHealthNrCepOutorderUploadResponse.go deleted file mode 100644 index 1dfbc269a7..0000000000 --- a/model/alihealth2/AlibabaHealthNrCepOutorderUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线上订单收货验收单、出入库单据生成接口 API返回值 -alibaba.health.nr.cep.outorder.upload - -线上订单收货验收单、出入库单据生成接口 -*/ -type AlibabaHealthNrCepOutorderUploadAPIResponse struct { - model.CommonResponse - AlibabaHealthNrCepOutorderUploadResponse -} - -// 线上订单收货验收单、出入库单据生成接口 成功返回结果 -type AlibabaHealthNrCepOutorderUploadResponse struct { - XMLName xml.Name `xml:"alibaba_health_nr_cep_outorder_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务出参 - Result *ResponseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/AlibabaHealthNrCepWarstqtyBatchupdateAPIRequest.go b/model/alihealth2/AlibabaHealthNrCepWarstqtyBatchupdateAPIRequest.go new file mode 100644 index 0000000000..76eff0a964 --- /dev/null +++ b/model/alihealth2/AlibabaHealthNrCepWarstqtyBatchupdateAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量更新ISV库存 API请求 +alibaba.health.nr.cep.warstqty.batchupdate + +青岛医保服务-ISV批量更新孔雀翎中库存数据 +*/ +type AlibabaHealthNrCepWarstqtyBatchupdateAPIRequest struct { + model.Params + // 库存更新对象 + _warStqtyList []TopIsvStqtyLstDto +} + +// 初始化AlibabaHealthNrCepWarstqtyBatchupdateAPIRequest对象 +func NewAlibabaHealthNrCepWarstqtyBatchupdateRequest() *AlibabaHealthNrCepWarstqtyBatchupdateAPIRequest{ + return &AlibabaHealthNrCepWarstqtyBatchupdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHealthNrCepWarstqtyBatchupdateAPIRequest) GetApiMethodName() string { + return "alibaba.health.nr.cep.warstqty.batchupdate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHealthNrCepWarstqtyBatchupdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarStqtyList Setter +// 库存更新对象 +func (r *AlibabaHealthNrCepWarstqtyBatchupdateAPIRequest) SetWarStqtyList(_warStqtyList []TopIsvStqtyLstDto) error { + r._warStqtyList = _warStqtyList + r.Set("war_stqty_list", _warStqtyList) + return nil +} + +// WarStqtyList Getter +func (r AlibabaHealthNrCepWarstqtyBatchupdateAPIRequest) GetWarStqtyList() []TopIsvStqtyLstDto { + return r._warStqtyList +} diff --git a/model/alihealth2/AlibabaHealthNrCepWarstqtyBatchupdateAPIResponse.go b/model/alihealth2/AlibabaHealthNrCepWarstqtyBatchupdateAPIResponse.go new file mode 100644 index 0000000000..80e6de0bca --- /dev/null +++ b/model/alihealth2/AlibabaHealthNrCepWarstqtyBatchupdateAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量更新ISV库存 API返回值 +alibaba.health.nr.cep.warstqty.batchupdate + +青岛医保服务-ISV批量更新孔雀翎中库存数据 +*/ +type AlibabaHealthNrCepWarstqtyBatchupdateAPIResponse struct { + model.CommonResponse + AlibabaHealthNrCepWarstqtyBatchupdateAPIResponseModel +} + +// 批量更新ISV库存 成功返回结果 +type AlibabaHealthNrCepWarstqtyBatchupdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_health_nr_cep_warstqty_batchupdate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务出参 + Result *ResponseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/AlibabaHealthNrCepWarstqtyBatchupdateResponse.go b/model/alihealth2/AlibabaHealthNrCepWarstqtyBatchupdateResponse.go deleted file mode 100644 index 73868efd19..0000000000 --- a/model/alihealth2/AlibabaHealthNrCepWarstqtyBatchupdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量更新ISV库存 API返回值 -alibaba.health.nr.cep.warstqty.batchupdate - -青岛医保服务-ISV批量更新孔雀翎中库存数据 -*/ -type AlibabaHealthNrCepWarstqtyBatchupdateAPIResponse struct { - model.CommonResponse - AlibabaHealthNrCepWarstqtyBatchupdateResponse -} - -// 批量更新ISV库存 成功返回结果 -type AlibabaHealthNrCepWarstqtyBatchupdateResponse struct { - XMLName xml.Name `xml:"alibaba_health_nr_cep_warstqty_batchupdate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务出参 - Result *ResponseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/TaobaoDrugPriceBatchUpdateAPIRequest.go b/model/alihealth2/TaobaoDrugPriceBatchUpdateAPIRequest.go new file mode 100644 index 0000000000..94966f50da --- /dev/null +++ b/model/alihealth2/TaobaoDrugPriceBatchUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家批量更新宝贝价格 API请求 +taobao.drug.price.batch.update + +商家批量更新宝贝价格 +*/ +type TaobaoDrugPriceBatchUpdateAPIRequest struct { + model.Params + // 外部店铺ID + _outStoreId string + // 商品ID和价格 + _outItemIdPriceMap string +} + +// 初始化TaobaoDrugPriceBatchUpdateAPIRequest对象 +func NewTaobaoDrugPriceBatchUpdateRequest() *TaobaoDrugPriceBatchUpdateAPIRequest{ + return &TaobaoDrugPriceBatchUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDrugPriceBatchUpdateAPIRequest) GetApiMethodName() string { + return "taobao.drug.price.batch.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDrugPriceBatchUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutStoreId Setter +// 外部店铺ID +func (r *TaobaoDrugPriceBatchUpdateAPIRequest) SetOutStoreId(_outStoreId string) error { + r._outStoreId = _outStoreId + r.Set("out_store_id", _outStoreId) + return nil +} + +// OutStoreId Getter +func (r TaobaoDrugPriceBatchUpdateAPIRequest) GetOutStoreId() string { + return r._outStoreId +} +// OutItemIdPriceMap Setter +// 商品ID和价格 +func (r *TaobaoDrugPriceBatchUpdateAPIRequest) SetOutItemIdPriceMap(_outItemIdPriceMap string) error { + r._outItemIdPriceMap = _outItemIdPriceMap + r.Set("out_item_id_price_map", _outItemIdPriceMap) + return nil +} + +// OutItemIdPriceMap Getter +func (r TaobaoDrugPriceBatchUpdateAPIRequest) GetOutItemIdPriceMap() string { + return r._outItemIdPriceMap +} diff --git a/model/alihealth2/TaobaoDrugPriceBatchUpdateAPIResponse.go b/model/alihealth2/TaobaoDrugPriceBatchUpdateAPIResponse.go new file mode 100644 index 0000000000..985a426516 --- /dev/null +++ b/model/alihealth2/TaobaoDrugPriceBatchUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家批量更新宝贝价格 API返回值 +taobao.drug.price.batch.update + +商家批量更新宝贝价格 +*/ +type TaobaoDrugPriceBatchUpdateAPIResponse struct { + model.CommonResponse + TaobaoDrugPriceBatchUpdateAPIResponseModel +} + +// 商家批量更新宝贝价格 成功返回结果 +type TaobaoDrugPriceBatchUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"drug_price_batch_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoDrugPriceBatchUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/TaobaoDrugPriceBatchUpdateResponse.go b/model/alihealth2/TaobaoDrugPriceBatchUpdateResponse.go deleted file mode 100644 index 5360e28881..0000000000 --- a/model/alihealth2/TaobaoDrugPriceBatchUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家批量更新宝贝价格 API返回值 -taobao.drug.price.batch.update - -商家批量更新宝贝价格 -*/ -type TaobaoDrugPriceBatchUpdateAPIResponse struct { - model.CommonResponse - TaobaoDrugPriceBatchUpdateResponse -} - -// 商家批量更新宝贝价格 成功返回结果 -type TaobaoDrugPriceBatchUpdateResponse struct { - XMLName xml.Name `xml:"drug_price_batch_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoDrugPriceBatchUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/TaobaoDrugPriceUpdateAPIRequest.go b/model/alihealth2/TaobaoDrugPriceUpdateAPIRequest.go new file mode 100644 index 0000000000..96ed6bb0d6 --- /dev/null +++ b/model/alihealth2/TaobaoDrugPriceUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家更新宝贝价格 API请求 +taobao.drug.price.update + +商家更新价格 +*/ +type TaobaoDrugPriceUpdateAPIRequest struct { + model.Params + // 对应的外部店铺ID + _outStoreId string + // 对应的外部商品编码 + _outItemId string + // 商品价格 + _price float64 +} + +// 初始化TaobaoDrugPriceUpdateAPIRequest对象 +func NewTaobaoDrugPriceUpdateRequest() *TaobaoDrugPriceUpdateAPIRequest{ + return &TaobaoDrugPriceUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDrugPriceUpdateAPIRequest) GetApiMethodName() string { + return "taobao.drug.price.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDrugPriceUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutStoreId Setter +// 对应的外部店铺ID +func (r *TaobaoDrugPriceUpdateAPIRequest) SetOutStoreId(_outStoreId string) error { + r._outStoreId = _outStoreId + r.Set("out_store_id", _outStoreId) + return nil +} + +// OutStoreId Getter +func (r TaobaoDrugPriceUpdateAPIRequest) GetOutStoreId() string { + return r._outStoreId +} +// OutItemId Setter +// 对应的外部商品编码 +func (r *TaobaoDrugPriceUpdateAPIRequest) SetOutItemId(_outItemId string) error { + r._outItemId = _outItemId + r.Set("out_item_id", _outItemId) + return nil +} + +// OutItemId Getter +func (r TaobaoDrugPriceUpdateAPIRequest) GetOutItemId() string { + return r._outItemId +} +// Price Setter +// 商品价格 +func (r *TaobaoDrugPriceUpdateAPIRequest) SetPrice(_price float64) error { + r._price = _price + r.Set("price", _price) + return nil +} + +// Price Getter +func (r TaobaoDrugPriceUpdateAPIRequest) GetPrice() float64 { + return r._price +} diff --git a/model/alihealth2/TaobaoDrugPriceUpdateAPIResponse.go b/model/alihealth2/TaobaoDrugPriceUpdateAPIResponse.go new file mode 100644 index 0000000000..e2ef1bf1a7 --- /dev/null +++ b/model/alihealth2/TaobaoDrugPriceUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家更新宝贝价格 API返回值 +taobao.drug.price.update + +商家更新价格 +*/ +type TaobaoDrugPriceUpdateAPIResponse struct { + model.CommonResponse + TaobaoDrugPriceUpdateAPIResponseModel +} + +// 商家更新宝贝价格 成功返回结果 +type TaobaoDrugPriceUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"drug_price_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoDrugPriceUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/TaobaoDrugPriceUpdateResponse.go b/model/alihealth2/TaobaoDrugPriceUpdateResponse.go deleted file mode 100644 index 3d1360f332..0000000000 --- a/model/alihealth2/TaobaoDrugPriceUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家更新宝贝价格 API返回值 -taobao.drug.price.update - -商家更新价格 -*/ -type TaobaoDrugPriceUpdateAPIResponse struct { - model.CommonResponse - TaobaoDrugPriceUpdateResponse -} - -// 商家更新宝贝价格 成功返回结果 -type TaobaoDrugPriceUpdateResponse struct { - XMLName xml.Name `xml:"drug_price_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoDrugPriceUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/TaobaoDrugQuantityBatchUpdateAPIRequest.go b/model/alihealth2/TaobaoDrugQuantityBatchUpdateAPIRequest.go new file mode 100644 index 0000000000..9036998b02 --- /dev/null +++ b/model/alihealth2/TaobaoDrugQuantityBatchUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量同步库存接口 API请求 +taobao.drug.quantity.batch.update + +商家通过top接口可以批量修改商品库存 +*/ +type TaobaoDrugQuantityBatchUpdateAPIRequest struct { + model.Params + // 外部店铺ID + _outStoreId string + // 商品ID和库存 + _outItemIdQuantityMap string +} + +// 初始化TaobaoDrugQuantityBatchUpdateAPIRequest对象 +func NewTaobaoDrugQuantityBatchUpdateRequest() *TaobaoDrugQuantityBatchUpdateAPIRequest{ + return &TaobaoDrugQuantityBatchUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDrugQuantityBatchUpdateAPIRequest) GetApiMethodName() string { + return "taobao.drug.quantity.batch.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDrugQuantityBatchUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutStoreId Setter +// 外部店铺ID +func (r *TaobaoDrugQuantityBatchUpdateAPIRequest) SetOutStoreId(_outStoreId string) error { + r._outStoreId = _outStoreId + r.Set("out_store_id", _outStoreId) + return nil +} + +// OutStoreId Getter +func (r TaobaoDrugQuantityBatchUpdateAPIRequest) GetOutStoreId() string { + return r._outStoreId +} +// OutItemIdQuantityMap Setter +// 商品ID和库存 +func (r *TaobaoDrugQuantityBatchUpdateAPIRequest) SetOutItemIdQuantityMap(_outItemIdQuantityMap string) error { + r._outItemIdQuantityMap = _outItemIdQuantityMap + r.Set("out_item_id_quantity_map", _outItemIdQuantityMap) + return nil +} + +// OutItemIdQuantityMap Getter +func (r TaobaoDrugQuantityBatchUpdateAPIRequest) GetOutItemIdQuantityMap() string { + return r._outItemIdQuantityMap +} diff --git a/model/alihealth2/TaobaoDrugQuantityBatchUpdateAPIResponse.go b/model/alihealth2/TaobaoDrugQuantityBatchUpdateAPIResponse.go new file mode 100644 index 0000000000..cc8e1616be --- /dev/null +++ b/model/alihealth2/TaobaoDrugQuantityBatchUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量同步库存接口 API返回值 +taobao.drug.quantity.batch.update + +商家通过top接口可以批量修改商品库存 +*/ +type TaobaoDrugQuantityBatchUpdateAPIResponse struct { + model.CommonResponse + TaobaoDrugQuantityBatchUpdateAPIResponseModel +} + +// 批量同步库存接口 成功返回结果 +type TaobaoDrugQuantityBatchUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"drug_quantity_batch_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoDrugQuantityBatchUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/TaobaoDrugQuantityBatchUpdateResponse.go b/model/alihealth2/TaobaoDrugQuantityBatchUpdateResponse.go deleted file mode 100644 index 4f923af2ff..0000000000 --- a/model/alihealth2/TaobaoDrugQuantityBatchUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量同步库存接口 API返回值 -taobao.drug.quantity.batch.update - -商家通过top接口可以批量修改商品库存 -*/ -type TaobaoDrugQuantityBatchUpdateAPIResponse struct { - model.CommonResponse - TaobaoDrugQuantityBatchUpdateResponse -} - -// 批量同步库存接口 成功返回结果 -type TaobaoDrugQuantityBatchUpdateResponse struct { - XMLName xml.Name `xml:"drug_quantity_batch_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoDrugQuantityBatchUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/TaobaoDrugQuantityUpdateAPIRequest.go b/model/alihealth2/TaobaoDrugQuantityUpdateAPIRequest.go new file mode 100644 index 0000000000..ac634984cf --- /dev/null +++ b/model/alihealth2/TaobaoDrugQuantityUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家更新库存 API请求 +taobao.drug.quantity.update + +商家通过top接口可以直接修改商品库存 +*/ +type TaobaoDrugQuantityUpdateAPIRequest struct { + model.Params + // 外部店铺ID + _outStoreId string + // 外部商品ID + _outItemId string + // 库存数量 + _quantity int64 +} + +// 初始化TaobaoDrugQuantityUpdateAPIRequest对象 +func NewTaobaoDrugQuantityUpdateRequest() *TaobaoDrugQuantityUpdateAPIRequest{ + return &TaobaoDrugQuantityUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDrugQuantityUpdateAPIRequest) GetApiMethodName() string { + return "taobao.drug.quantity.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDrugQuantityUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutStoreId Setter +// 外部店铺ID +func (r *TaobaoDrugQuantityUpdateAPIRequest) SetOutStoreId(_outStoreId string) error { + r._outStoreId = _outStoreId + r.Set("out_store_id", _outStoreId) + return nil +} + +// OutStoreId Getter +func (r TaobaoDrugQuantityUpdateAPIRequest) GetOutStoreId() string { + return r._outStoreId +} +// OutItemId Setter +// 外部商品ID +func (r *TaobaoDrugQuantityUpdateAPIRequest) SetOutItemId(_outItemId string) error { + r._outItemId = _outItemId + r.Set("out_item_id", _outItemId) + return nil +} + +// OutItemId Getter +func (r TaobaoDrugQuantityUpdateAPIRequest) GetOutItemId() string { + return r._outItemId +} +// Quantity Setter +// 库存数量 +func (r *TaobaoDrugQuantityUpdateAPIRequest) SetQuantity(_quantity int64) error { + r._quantity = _quantity + r.Set("quantity", _quantity) + return nil +} + +// Quantity Getter +func (r TaobaoDrugQuantityUpdateAPIRequest) GetQuantity() int64 { + return r._quantity +} diff --git a/model/alihealth2/TaobaoDrugQuantityUpdateAPIResponse.go b/model/alihealth2/TaobaoDrugQuantityUpdateAPIResponse.go new file mode 100644 index 0000000000..25457bc9f2 --- /dev/null +++ b/model/alihealth2/TaobaoDrugQuantityUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家更新库存 API返回值 +taobao.drug.quantity.update + +商家通过top接口可以直接修改商品库存 +*/ +type TaobaoDrugQuantityUpdateAPIResponse struct { + model.CommonResponse + TaobaoDrugQuantityUpdateAPIResponseModel +} + +// 商家更新库存 成功返回结果 +type TaobaoDrugQuantityUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"drug_quantity_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoDrugQuantityUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/TaobaoDrugQuantityUpdateResponse.go b/model/alihealth2/TaobaoDrugQuantityUpdateResponse.go deleted file mode 100644 index 74cd87ac69..0000000000 --- a/model/alihealth2/TaobaoDrugQuantityUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家更新库存 API返回值 -taobao.drug.quantity.update - -商家通过top接口可以直接修改商品库存 -*/ -type TaobaoDrugQuantityUpdateAPIResponse struct { - model.CommonResponse - TaobaoDrugQuantityUpdateResponse -} - -// 商家更新库存 成功返回结果 -type TaobaoDrugQuantityUpdateResponse struct { - XMLName xml.Name `xml:"drug_quantity_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoDrugQuantityUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/TaobaoDrugShopListAPIRequest.go b/model/alihealth2/TaobaoDrugShopListAPIRequest.go new file mode 100644 index 0000000000..deb2a627ed --- /dev/null +++ b/model/alihealth2/TaobaoDrugShopListAPIRequest.go @@ -0,0 +1,94 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家外卖店列表 API请求 +taobao.drug.shop.list + +查询卖家外卖店列表 +*/ +type TaobaoDrugShopListAPIRequest struct { + model.Params + // 查询关键字 + _keywords string + // 店铺状态,歇业:0,营业:1,所有:-1 + _status int64 + // 页码 + _page int64 + // 每页条数 + _pageSize int64 +} + +// 初始化TaobaoDrugShopListAPIRequest对象 +func NewTaobaoDrugShopListRequest() *TaobaoDrugShopListAPIRequest{ + return &TaobaoDrugShopListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDrugShopListAPIRequest) GetApiMethodName() string { + return "taobao.drug.shop.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDrugShopListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Keywords Setter +// 查询关键字 +func (r *TaobaoDrugShopListAPIRequest) SetKeywords(_keywords string) error { + r._keywords = _keywords + r.Set("keywords", _keywords) + return nil +} + +// Keywords Getter +func (r TaobaoDrugShopListAPIRequest) GetKeywords() string { + return r._keywords +} +// Status Setter +// 店铺状态,歇业:0,营业:1,所有:-1 +func (r *TaobaoDrugShopListAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoDrugShopListAPIRequest) GetStatus() int64 { + return r._status +} +// Page Setter +// 页码 +func (r *TaobaoDrugShopListAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r TaobaoDrugShopListAPIRequest) GetPage() int64 { + return r._page +} +// PageSize Setter +// 每页条数 +func (r *TaobaoDrugShopListAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoDrugShopListAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/alihealth2/TaobaoDrugShopListAPIResponse.go b/model/alihealth2/TaobaoDrugShopListAPIResponse.go new file mode 100644 index 0000000000..d89fc03b39 --- /dev/null +++ b/model/alihealth2/TaobaoDrugShopListAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家外卖店列表 API返回值 +taobao.drug.shop.list + +查询卖家外卖店列表 +*/ +type TaobaoDrugShopListAPIResponse struct { + model.CommonResponse + TaobaoDrugShopListAPIResponseModel +} + +// 查询卖家外卖店列表 成功返回结果 +type TaobaoDrugShopListAPIResponseModel struct { + XMLName xml.Name `xml:"drug_shop_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 数据结果集 + Result *TakeoutShopPage `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/TaobaoDrugShopListResponse.go b/model/alihealth2/TaobaoDrugShopListResponse.go deleted file mode 100644 index d7e6f3f281..0000000000 --- a/model/alihealth2/TaobaoDrugShopListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询卖家外卖店列表 API返回值 -taobao.drug.shop.list - -查询卖家外卖店列表 -*/ -type TaobaoDrugShopListAPIResponse struct { - model.CommonResponse - TaobaoDrugShopListResponse -} - -// 查询卖家外卖店列表 成功返回结果 -type TaobaoDrugShopListResponse struct { - XMLName xml.Name `xml:"drug_shop_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 数据结果集 - Result *TakeoutShopPage `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/TaobaoTradeDrugConfirmorderAPIRequest.go b/model/alihealth2/TaobaoTradeDrugConfirmorderAPIRequest.go new file mode 100644 index 0000000000..9e196e4b25 --- /dev/null +++ b/model/alihealth2/TaobaoTradeDrugConfirmorderAPIRequest.go @@ -0,0 +1,94 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康020接单 API请求 +taobao.trade.drug.confirmorder + +阿里健康020接单 +*/ +type TaobaoTradeDrugConfirmorderAPIRequest struct { + model.Params + // 代送宝 代送商ID + _deliveryId int64 + // public static int NORMAL_TYPE=0; 普通发货 默认 public static int DD_DAI_SONG=2; 代送宝 public static int DD_SONG_TYPE_V2=3; 点点送发货 + _confirmType int64 + // 订单ID + _orderId int64 + // 子账号nick + _subUserNick string +} + +// 初始化TaobaoTradeDrugConfirmorderAPIRequest对象 +func NewTaobaoTradeDrugConfirmorderRequest() *TaobaoTradeDrugConfirmorderAPIRequest{ + return &TaobaoTradeDrugConfirmorderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradeDrugConfirmorderAPIRequest) GetApiMethodName() string { + return "taobao.trade.drug.confirmorder" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradeDrugConfirmorderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeliveryId Setter +// 代送宝 代送商ID +func (r *TaobaoTradeDrugConfirmorderAPIRequest) SetDeliveryId(_deliveryId int64) error { + r._deliveryId = _deliveryId + r.Set("delivery_id", _deliveryId) + return nil +} + +// DeliveryId Getter +func (r TaobaoTradeDrugConfirmorderAPIRequest) GetDeliveryId() int64 { + return r._deliveryId +} +// ConfirmType Setter +// public static int NORMAL_TYPE=0; 普通发货 默认 public static int DD_DAI_SONG=2; 代送宝 public static int DD_SONG_TYPE_V2=3; 点点送发货 +func (r *TaobaoTradeDrugConfirmorderAPIRequest) SetConfirmType(_confirmType int64) error { + r._confirmType = _confirmType + r.Set("confirm_type", _confirmType) + return nil +} + +// ConfirmType Getter +func (r TaobaoTradeDrugConfirmorderAPIRequest) GetConfirmType() int64 { + return r._confirmType +} +// OrderId Setter +// 订单ID +func (r *TaobaoTradeDrugConfirmorderAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoTradeDrugConfirmorderAPIRequest) GetOrderId() int64 { + return r._orderId +} +// SubUserNick Setter +// 子账号nick +func (r *TaobaoTradeDrugConfirmorderAPIRequest) SetSubUserNick(_subUserNick string) error { + r._subUserNick = _subUserNick + r.Set("sub_user_nick", _subUserNick) + return nil +} + +// SubUserNick Getter +func (r TaobaoTradeDrugConfirmorderAPIRequest) GetSubUserNick() string { + return r._subUserNick +} diff --git a/model/alihealth2/TaobaoTradeDrugConfirmorderAPIResponse.go b/model/alihealth2/TaobaoTradeDrugConfirmorderAPIResponse.go new file mode 100644 index 0000000000..868278afa0 --- /dev/null +++ b/model/alihealth2/TaobaoTradeDrugConfirmorderAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康020接单 API返回值 +taobao.trade.drug.confirmorder + +阿里健康020接单 +*/ +type TaobaoTradeDrugConfirmorderAPIResponse struct { + model.CommonResponse + TaobaoTradeDrugConfirmorderAPIResponseModel +} + +// 阿里健康020接单 成功返回结果 +type TaobaoTradeDrugConfirmorderAPIResponseModel struct { + XMLName xml.Name `xml:"trade_drug_confirmorder_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // life的返回值 + Result *LifeResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/TaobaoTradeDrugConfirmorderResponse.go b/model/alihealth2/TaobaoTradeDrugConfirmorderResponse.go deleted file mode 100644 index 88cf51014c..0000000000 --- a/model/alihealth2/TaobaoTradeDrugConfirmorderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里健康020接单 API返回值 -taobao.trade.drug.confirmorder - -阿里健康020接单 -*/ -type TaobaoTradeDrugConfirmorderAPIResponse struct { - model.CommonResponse - TaobaoTradeDrugConfirmorderResponse -} - -// 阿里健康020接单 成功返回结果 -type TaobaoTradeDrugConfirmorderResponse struct { - XMLName xml.Name `xml:"trade_drug_confirmorder_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // life的返回值 - Result *LifeResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/TaobaoTradeDrugGetAPIRequest.go b/model/alihealth2/TaobaoTradeDrugGetAPIRequest.go new file mode 100644 index 0000000000..12b8e9c77e --- /dev/null +++ b/model/alihealth2/TaobaoTradeDrugGetAPIRequest.go @@ -0,0 +1,80 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商家未确认订单列表 API请求 +taobao.trade.drug.get + +可以按商家或是店铺维度的进行查询买家付款卖家未确认订单,一次返回不大于20条订单 +*/ +type TaobaoTradeDrugGetAPIRequest struct { + model.Params + // 店铺id + _storeId int64 + // true-商家下所有店铺的待确认订单, false—指定店铺的订单 + _isAll bool + // 返回记录数,超过20按20条返回数据 + _maxSize int64 +} + +// 初始化TaobaoTradeDrugGetAPIRequest对象 +func NewTaobaoTradeDrugGetRequest() *TaobaoTradeDrugGetAPIRequest{ + return &TaobaoTradeDrugGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradeDrugGetAPIRequest) GetApiMethodName() string { + return "taobao.trade.drug.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradeDrugGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 店铺id +func (r *TaobaoTradeDrugGetAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoTradeDrugGetAPIRequest) GetStoreId() int64 { + return r._storeId +} +// IsAll Setter +// true-商家下所有店铺的待确认订单, false—指定店铺的订单 +func (r *TaobaoTradeDrugGetAPIRequest) SetIsAll(_isAll bool) error { + r._isAll = _isAll + r.Set("is_all", _isAll) + return nil +} + +// IsAll Getter +func (r TaobaoTradeDrugGetAPIRequest) GetIsAll() bool { + return r._isAll +} +// MaxSize Setter +// 返回记录数,超过20按20条返回数据 +func (r *TaobaoTradeDrugGetAPIRequest) SetMaxSize(_maxSize int64) error { + r._maxSize = _maxSize + r.Set("max_size", _maxSize) + return nil +} + +// MaxSize Getter +func (r TaobaoTradeDrugGetAPIRequest) GetMaxSize() int64 { + return r._maxSize +} diff --git a/model/alihealth2/TaobaoTradeDrugGetAPIResponse.go b/model/alihealth2/TaobaoTradeDrugGetAPIResponse.go new file mode 100644 index 0000000000..0743baf817 --- /dev/null +++ b/model/alihealth2/TaobaoTradeDrugGetAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商家未确认订单列表 API返回值 +taobao.trade.drug.get + +可以按商家或是店铺维度的进行查询买家付款卖家未确认订单,一次返回不大于20条订单 +*/ +type TaobaoTradeDrugGetAPIResponse struct { + model.CommonResponse + TaobaoTradeDrugGetAPIResponseModel +} + +// 查询商家未确认订单列表 成功返回结果 +type TaobaoTradeDrugGetAPIResponseModel struct { + XMLName xml.Name `xml:"trade_drug_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询到的订单列表对象 + Result *TaobaoTradeDrugGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/TaobaoTradeDrugGetResponse.go b/model/alihealth2/TaobaoTradeDrugGetResponse.go deleted file mode 100644 index 55c5806746..0000000000 --- a/model/alihealth2/TaobaoTradeDrugGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询商家未确认订单列表 API返回值 -taobao.trade.drug.get - -可以按商家或是店铺维度的进行查询买家付款卖家未确认订单,一次返回不大于20条订单 -*/ -type TaobaoTradeDrugGetAPIResponse struct { - model.CommonResponse - TaobaoTradeDrugGetResponse -} - -// 查询商家未确认订单列表 成功返回结果 -type TaobaoTradeDrugGetResponse struct { - XMLName xml.Name `xml:"trade_drug_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询到的订单列表对象 - Result *TaobaoTradeDrugGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/TaobaoTradeDrugOrderGetAPIRequest.go b/model/alihealth2/TaobaoTradeDrugOrderGetAPIRequest.go new file mode 100644 index 0000000000..c1c520faf1 --- /dev/null +++ b/model/alihealth2/TaobaoTradeDrugOrderGetAPIRequest.go @@ -0,0 +1,52 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查看订单详情 API请求 +taobao.trade.drug.order.get + +商家查看订单详情 +*/ +type TaobaoTradeDrugOrderGetAPIRequest struct { + model.Params + // 订单id + _orderId int64 +} + +// 初始化TaobaoTradeDrugOrderGetAPIRequest对象 +func NewTaobaoTradeDrugOrderGetRequest() *TaobaoTradeDrugOrderGetAPIRequest{ + return &TaobaoTradeDrugOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradeDrugOrderGetAPIRequest) GetApiMethodName() string { + return "taobao.trade.drug.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradeDrugOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单id +func (r *TaobaoTradeDrugOrderGetAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoTradeDrugOrderGetAPIRequest) GetOrderId() int64 { + return r._orderId +} diff --git a/model/alihealth2/TaobaoTradeDrugOrderGetAPIResponse.go b/model/alihealth2/TaobaoTradeDrugOrderGetAPIResponse.go new file mode 100644 index 0000000000..a62eae3869 --- /dev/null +++ b/model/alihealth2/TaobaoTradeDrugOrderGetAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查看订单详情 API返回值 +taobao.trade.drug.order.get + +商家查看订单详情 +*/ +type TaobaoTradeDrugOrderGetAPIResponse struct { + model.CommonResponse + TaobaoTradeDrugOrderGetAPIResponseModel +} + +// 查看订单详情 成功返回结果 +type TaobaoTradeDrugOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"trade_drug_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoTradeDrugOrderGetResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/TaobaoTradeDrugOrderGetResponse.go b/model/alihealth2/TaobaoTradeDrugOrderGetResponse.go deleted file mode 100644 index 8fd0639bf3..0000000000 --- a/model/alihealth2/TaobaoTradeDrugOrderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查看订单详情 API返回值 -taobao.trade.drug.order.get - -商家查看订单详情 -*/ -type TaobaoTradeDrugOrderGetAPIResponse struct { - model.CommonResponse - TaobaoTradeDrugOrderGetResponse -} - -// 查看订单详情 成功返回结果 -type TaobaoTradeDrugOrderGetResponse struct { - XMLName xml.Name `xml:"trade_drug_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoTradeDrugOrderGetResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/TaobaoTradeDrugOrdersGetAPIRequest.go b/model/alihealth2/TaobaoTradeDrugOrdersGetAPIRequest.go new file mode 100644 index 0000000000..ed1d1d9da8 --- /dev/null +++ b/model/alihealth2/TaobaoTradeDrugOrdersGetAPIRequest.go @@ -0,0 +1,136 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康获取某一药店全部订单 API请求 +taobao.trade.drug.orders.get + +阿里健康获取某一药店全部订单 +*/ +type TaobaoTradeDrugOrdersGetAPIRequest struct { + model.Params + // 外卖分店ID + _shopId int64 + // 关键字 + _keyword string + // true-查询仅按商家维度 false-查询按商家下所属店铺维度 + _isAllShop bool + // true 仅有支付宝订单,false 包括所有类型订单(货到付款,支付券等) + _isAllOrder bool + // (必填字段)订单状态 待确认订单2 , 退款中订单4 , 已发货12 关闭20 交易成功21 + _orderStatus int64 + // 返回记录数,超过20按20条返回数据 + _pageSize int64 + // 页码 + _pageNo int64 +} + +// 初始化TaobaoTradeDrugOrdersGetAPIRequest对象 +func NewTaobaoTradeDrugOrdersGetRequest() *TaobaoTradeDrugOrdersGetAPIRequest{ + return &TaobaoTradeDrugOrdersGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradeDrugOrdersGetAPIRequest) GetApiMethodName() string { + return "taobao.trade.drug.orders.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradeDrugOrdersGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShopId Setter +// 外卖分店ID +func (r *TaobaoTradeDrugOrdersGetAPIRequest) SetShopId(_shopId int64) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r TaobaoTradeDrugOrdersGetAPIRequest) GetShopId() int64 { + return r._shopId +} +// Keyword Setter +// 关键字 +func (r *TaobaoTradeDrugOrdersGetAPIRequest) SetKeyword(_keyword string) error { + r._keyword = _keyword + r.Set("keyword", _keyword) + return nil +} + +// Keyword Getter +func (r TaobaoTradeDrugOrdersGetAPIRequest) GetKeyword() string { + return r._keyword +} +// IsAllShop Setter +// true-查询仅按商家维度 false-查询按商家下所属店铺维度 +func (r *TaobaoTradeDrugOrdersGetAPIRequest) SetIsAllShop(_isAllShop bool) error { + r._isAllShop = _isAllShop + r.Set("is_all_shop", _isAllShop) + return nil +} + +// IsAllShop Getter +func (r TaobaoTradeDrugOrdersGetAPIRequest) GetIsAllShop() bool { + return r._isAllShop +} +// IsAllOrder Setter +// true 仅有支付宝订单,false 包括所有类型订单(货到付款,支付券等) +func (r *TaobaoTradeDrugOrdersGetAPIRequest) SetIsAllOrder(_isAllOrder bool) error { + r._isAllOrder = _isAllOrder + r.Set("is_all_order", _isAllOrder) + return nil +} + +// IsAllOrder Getter +func (r TaobaoTradeDrugOrdersGetAPIRequest) GetIsAllOrder() bool { + return r._isAllOrder +} +// OrderStatus Setter +// (必填字段)订单状态 待确认订单2 , 退款中订单4 , 已发货12 关闭20 交易成功21 +func (r *TaobaoTradeDrugOrdersGetAPIRequest) SetOrderStatus(_orderStatus int64) error { + r._orderStatus = _orderStatus + r.Set("order_status", _orderStatus) + return nil +} + +// OrderStatus Getter +func (r TaobaoTradeDrugOrdersGetAPIRequest) GetOrderStatus() int64 { + return r._orderStatus +} +// PageSize Setter +// 返回记录数,超过20按20条返回数据 +func (r *TaobaoTradeDrugOrdersGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTradeDrugOrdersGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 页码 +func (r *TaobaoTradeDrugOrdersGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoTradeDrugOrdersGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/alihealth2/TaobaoTradeDrugOrdersGetAPIResponse.go b/model/alihealth2/TaobaoTradeDrugOrdersGetAPIResponse.go new file mode 100644 index 0000000000..21b6826498 --- /dev/null +++ b/model/alihealth2/TaobaoTradeDrugOrdersGetAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康获取某一药店全部订单 API返回值 +taobao.trade.drug.orders.get + +阿里健康获取某一药店全部订单 +*/ +type TaobaoTradeDrugOrdersGetAPIResponse struct { + model.CommonResponse + TaobaoTradeDrugOrdersGetAPIResponseModel +} + +// 阿里健康获取某一药店全部订单 成功返回结果 +type TaobaoTradeDrugOrdersGetAPIResponseModel struct { + XMLName xml.Name `xml:"trade_drug_orders_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询到的订单列表对象 + Result *TaobaoTradeDrugOrdersGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/TaobaoTradeDrugOrdersGetResponse.go b/model/alihealth2/TaobaoTradeDrugOrdersGetResponse.go deleted file mode 100644 index 1cb14f9682..0000000000 --- a/model/alihealth2/TaobaoTradeDrugOrdersGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里健康获取某一药店全部订单 API返回值 -taobao.trade.drug.orders.get - -阿里健康获取某一药店全部订单 -*/ -type TaobaoTradeDrugOrdersGetAPIResponse struct { - model.CommonResponse - TaobaoTradeDrugOrdersGetResponse -} - -// 阿里健康获取某一药店全部订单 成功返回结果 -type TaobaoTradeDrugOrdersGetResponse struct { - XMLName xml.Name `xml:"trade_drug_orders_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询到的订单列表对象 - Result *TaobaoTradeDrugOrdersGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealth2/TaobaoTradeDrugRefuseorderAPIRequest.go b/model/alihealth2/TaobaoTradeDrugRefuseorderAPIRequest.go new file mode 100644 index 0000000000..1ee0b70d40 --- /dev/null +++ b/model/alihealth2/TaobaoTradeDrugRefuseorderAPIRequest.go @@ -0,0 +1,66 @@ +package alihealth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康020拒单 API请求 +taobao.trade.drug.refuseorder + +阿里健康020拒单 +*/ +type TaobaoTradeDrugRefuseorderAPIRequest struct { + model.Params + // 订单ID + _orderId int64 + // 拒单原因 + _refuseReason string +} + +// 初始化TaobaoTradeDrugRefuseorderAPIRequest对象 +func NewTaobaoTradeDrugRefuseorderRequest() *TaobaoTradeDrugRefuseorderAPIRequest{ + return &TaobaoTradeDrugRefuseorderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradeDrugRefuseorderAPIRequest) GetApiMethodName() string { + return "taobao.trade.drug.refuseorder" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradeDrugRefuseorderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单ID +func (r *TaobaoTradeDrugRefuseorderAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoTradeDrugRefuseorderAPIRequest) GetOrderId() int64 { + return r._orderId +} +// RefuseReason Setter +// 拒单原因 +func (r *TaobaoTradeDrugRefuseorderAPIRequest) SetRefuseReason(_refuseReason string) error { + r._refuseReason = _refuseReason + r.Set("refuse_reason", _refuseReason) + return nil +} + +// RefuseReason Getter +func (r TaobaoTradeDrugRefuseorderAPIRequest) GetRefuseReason() string { + return r._refuseReason +} diff --git a/model/alihealth2/TaobaoTradeDrugRefuseorderAPIResponse.go b/model/alihealth2/TaobaoTradeDrugRefuseorderAPIResponse.go new file mode 100644 index 0000000000..f7fa853ac8 --- /dev/null +++ b/model/alihealth2/TaobaoTradeDrugRefuseorderAPIResponse.go @@ -0,0 +1,27 @@ +package alihealth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康020拒单 API返回值 +taobao.trade.drug.refuseorder + +阿里健康020拒单 +*/ +type TaobaoTradeDrugRefuseorderAPIResponse struct { + model.CommonResponse + TaobaoTradeDrugRefuseorderAPIResponseModel +} + +// 阿里健康020拒单 成功返回结果 +type TaobaoTradeDrugRefuseorderAPIResponseModel struct { + XMLName xml.Name `xml:"trade_drug_refuseorder_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // life的返回值 + Result *LifeResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealth2/TaobaoTradeDrugRefuseorderResponse.go b/model/alihealth2/TaobaoTradeDrugRefuseorderResponse.go deleted file mode 100644 index 3918472c6e..0000000000 --- a/model/alihealth2/TaobaoTradeDrugRefuseorderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里健康020拒单 API返回值 -taobao.trade.drug.refuseorder - -阿里健康020拒单 -*/ -type TaobaoTradeDrugRefuseorderAPIResponse struct { - model.CommonResponse - TaobaoTradeDrugRefuseorderResponse -} - -// 阿里健康020拒单 成功返回结果 -type TaobaoTradeDrugRefuseorderResponse struct { - XMLName xml.Name `xml:"trade_drug_refuseorder_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // life的返回值 - Result *LifeResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthalgo/AlibabaAlihealthAlgoMedicationSafetyGetAPIRequest.go b/model/alihealthalgo/AlibabaAlihealthAlgoMedicationSafetyGetAPIRequest.go new file mode 100644 index 0000000000..8b5de0046b --- /dev/null +++ b/model/alihealthalgo/AlibabaAlihealthAlgoMedicationSafetyGetAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthalgo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +合理用药api API请求 +alibaba.alihealth.algo.medication.safety.get + +合理用药规则引擎服务 +*/ +type AlibabaAlihealthAlgoMedicationSafetyGetAPIRequest struct { + model.Params + // 业务请求对象 + _paramSolutionRequestTopSupport *SolutionRequestTopSupport +} + +// 初始化AlibabaAlihealthAlgoMedicationSafetyGetAPIRequest对象 +func NewAlibabaAlihealthAlgoMedicationSafetyGetRequest() *AlibabaAlihealthAlgoMedicationSafetyGetAPIRequest{ + return &AlibabaAlihealthAlgoMedicationSafetyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthAlgoMedicationSafetyGetAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.algo.medication.safety.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthAlgoMedicationSafetyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamSolutionRequestTopSupport Setter +// 业务请求对象 +func (r *AlibabaAlihealthAlgoMedicationSafetyGetAPIRequest) SetParamSolutionRequestTopSupport(_paramSolutionRequestTopSupport *SolutionRequestTopSupport) error { + r._paramSolutionRequestTopSupport = _paramSolutionRequestTopSupport + r.Set("param_solution_request_top_support", _paramSolutionRequestTopSupport) + return nil +} + +// ParamSolutionRequestTopSupport Getter +func (r AlibabaAlihealthAlgoMedicationSafetyGetAPIRequest) GetParamSolutionRequestTopSupport() *SolutionRequestTopSupport { + return r._paramSolutionRequestTopSupport +} diff --git a/model/alihealthalgo/AlibabaAlihealthAlgoMedicationSafetyGetAPIResponse.go b/model/alihealthalgo/AlibabaAlihealthAlgoMedicationSafetyGetAPIResponse.go new file mode 100644 index 0000000000..c3f499eb86 --- /dev/null +++ b/model/alihealthalgo/AlibabaAlihealthAlgoMedicationSafetyGetAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthalgo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +合理用药api API返回值 +alibaba.alihealth.algo.medication.safety.get + +合理用药规则引擎服务 +*/ +type AlibabaAlihealthAlgoMedicationSafetyGetAPIResponse struct { + model.CommonResponse + AlibabaAlihealthAlgoMedicationSafetyGetAPIResponseModel +} + +// 合理用药api 成功返回结果 +type AlibabaAlihealthAlgoMedicationSafetyGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_algo_medication_safety_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *SolutionResultTopSupport `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthalgo/AlibabaAlihealthAlgoMedicationSafetyGetResponse.go b/model/alihealthalgo/AlibabaAlihealthAlgoMedicationSafetyGetResponse.go deleted file mode 100644 index 7689aa198b..0000000000 --- a/model/alihealthalgo/AlibabaAlihealthAlgoMedicationSafetyGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthalgo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -合理用药api API返回值 -alibaba.alihealth.algo.medication.safety.get - -合理用药规则引擎服务 -*/ -type AlibabaAlihealthAlgoMedicationSafetyGetAPIResponse struct { - model.CommonResponse - AlibabaAlihealthAlgoMedicationSafetyGetResponse -} - -// 合理用药api 成功返回结果 -type AlibabaAlihealthAlgoMedicationSafetyGetResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_algo_medication_safety_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *SolutionResultTopSupport `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthcert/AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest.go b/model/alihealthcert/AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest.go new file mode 100644 index 0000000000..31f58dae91 --- /dev/null +++ b/model/alihealthcert/AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest.go @@ -0,0 +1,108 @@ +package alihealthcert + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +健康证服务商预约结果通知阿里健康 API请求 +alibaba.alihealth.examination.reserve.certificate.notify + +当ISV执行完健康证预约成功之后, 调用通知阿里健康 +*/ +type AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest struct { + model.Params + // 服务商预约凭证 + _uniqReserveCode string + // 健康预约凭证 + _reserveNumber string + // 预约成功(ISSUED),预约失败(FAIL) + _reportStatus string + // 到检凭证,exam_done状态下,该字段必填 + _checkNo string + // 预约状态原因,描述预约状态如FAIL时的原因 + _statusReason string +} + +// 初始化AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest对象 +func NewAlibabaAlihealthExaminationReserveCertificateNotifyRequest() *AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest{ + return &AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.reserve.certificate.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UniqReserveCode Setter +// 服务商预约凭证 +func (r *AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest) SetUniqReserveCode(_uniqReserveCode string) error { + r._uniqReserveCode = _uniqReserveCode + r.Set("uniq_reserve_code", _uniqReserveCode) + return nil +} + +// UniqReserveCode Getter +func (r AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest) GetUniqReserveCode() string { + return r._uniqReserveCode +} +// ReserveNumber Setter +// 健康预约凭证 +func (r *AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest) SetReserveNumber(_reserveNumber string) error { + r._reserveNumber = _reserveNumber + r.Set("reserve_number", _reserveNumber) + return nil +} + +// ReserveNumber Getter +func (r AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest) GetReserveNumber() string { + return r._reserveNumber +} +// ReportStatus Setter +// 预约成功(ISSUED),预约失败(FAIL) +func (r *AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest) SetReportStatus(_reportStatus string) error { + r._reportStatus = _reportStatus + r.Set("report_status", _reportStatus) + return nil +} + +// ReportStatus Getter +func (r AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest) GetReportStatus() string { + return r._reportStatus +} +// CheckNo Setter +// 到检凭证,exam_done状态下,该字段必填 +func (r *AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest) SetCheckNo(_checkNo string) error { + r._checkNo = _checkNo + r.Set("check_no", _checkNo) + return nil +} + +// CheckNo Getter +func (r AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest) GetCheckNo() string { + return r._checkNo +} +// StatusReason Setter +// 预约状态原因,描述预约状态如FAIL时的原因 +func (r *AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest) SetStatusReason(_statusReason string) error { + r._statusReason = _statusReason + r.Set("status_reason", _statusReason) + return nil +} + +// StatusReason Getter +func (r AlibabaAlihealthExaminationReserveCertificateNotifyAPIRequest) GetStatusReason() string { + return r._statusReason +} diff --git a/model/alihealthcert/AlibabaAlihealthExaminationReserveCertificateNotifyAPIResponse.go b/model/alihealthcert/AlibabaAlihealthExaminationReserveCertificateNotifyAPIResponse.go new file mode 100644 index 0000000000..8e08dd5d4f --- /dev/null +++ b/model/alihealthcert/AlibabaAlihealthExaminationReserveCertificateNotifyAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthcert + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +健康证服务商预约结果通知阿里健康 API返回值 +alibaba.alihealth.examination.reserve.certificate.notify + +当ISV执行完健康证预约成功之后, 调用通知阿里健康 +*/ +type AlibabaAlihealthExaminationReserveCertificateNotifyAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationReserveCertificateNotifyAPIResponseModel +} + +// 健康证服务商预约结果通知阿里健康 成功返回结果 +type AlibabaAlihealthExaminationReserveCertificateNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_reserve_certificate_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthcert/AlibabaAlihealthExaminationReserveCertificateNotifyResponse.go b/model/alihealthcert/AlibabaAlihealthExaminationReserveCertificateNotifyResponse.go deleted file mode 100644 index 36b016ee35..0000000000 --- a/model/alihealthcert/AlibabaAlihealthExaminationReserveCertificateNotifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthcert - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -健康证服务商预约结果通知阿里健康 API返回值 -alibaba.alihealth.examination.reserve.certificate.notify - -当ISV执行完健康证预约成功之后, 调用通知阿里健康 -*/ -type AlibabaAlihealthExaminationReserveCertificateNotifyAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationReserveCertificateNotifyResponse -} - -// 健康证服务商预约结果通知阿里健康 成功返回结果 -type AlibabaAlihealthExaminationReserveCertificateNotifyResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_reserve_certificate_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaAlihealthAlipaypfmAssessResultSyncAPIRequest.go b/model/alihealthcrm/AlibabaAlihealthAlipaypfmAssessResultSyncAPIRequest.go new file mode 100644 index 0000000000..19346ac2bf --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthAlipaypfmAssessResultSyncAPIRequest.go @@ -0,0 +1,94 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户测评结果回传接口 API请求 +alibaba.alihealth.alipaypfm.assess.result.sync + +用户测评结果回传接口 +*/ +type AlibabaAlihealthAlipaypfmAssessResultSyncAPIRequest struct { + model.Params + // userId + _userId int64 + // 测评类型 + _assessType string + // 测评结果 + _assessResult string + // 测评结果冗余字段 + _refrenceResult string +} + +// 初始化AlibabaAlihealthAlipaypfmAssessResultSyncAPIRequest对象 +func NewAlibabaAlihealthAlipaypfmAssessResultSyncRequest() *AlibabaAlihealthAlipaypfmAssessResultSyncAPIRequest{ + return &AlibabaAlihealthAlipaypfmAssessResultSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthAlipaypfmAssessResultSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.alipaypfm.assess.result.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthAlipaypfmAssessResultSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// userId +func (r *AlibabaAlihealthAlipaypfmAssessResultSyncAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaAlihealthAlipaypfmAssessResultSyncAPIRequest) GetUserId() int64 { + return r._userId +} +// AssessType Setter +// 测评类型 +func (r *AlibabaAlihealthAlipaypfmAssessResultSyncAPIRequest) SetAssessType(_assessType string) error { + r._assessType = _assessType + r.Set("assess_type", _assessType) + return nil +} + +// AssessType Getter +func (r AlibabaAlihealthAlipaypfmAssessResultSyncAPIRequest) GetAssessType() string { + return r._assessType +} +// AssessResult Setter +// 测评结果 +func (r *AlibabaAlihealthAlipaypfmAssessResultSyncAPIRequest) SetAssessResult(_assessResult string) error { + r._assessResult = _assessResult + r.Set("assess_result", _assessResult) + return nil +} + +// AssessResult Getter +func (r AlibabaAlihealthAlipaypfmAssessResultSyncAPIRequest) GetAssessResult() string { + return r._assessResult +} +// RefrenceResult Setter +// 测评结果冗余字段 +func (r *AlibabaAlihealthAlipaypfmAssessResultSyncAPIRequest) SetRefrenceResult(_refrenceResult string) error { + r._refrenceResult = _refrenceResult + r.Set("refrence_result", _refrenceResult) + return nil +} + +// RefrenceResult Getter +func (r AlibabaAlihealthAlipaypfmAssessResultSyncAPIRequest) GetRefrenceResult() string { + return r._refrenceResult +} diff --git a/model/alihealthcrm/AlibabaAlihealthAlipaypfmAssessResultSyncAPIResponse.go b/model/alihealthcrm/AlibabaAlihealthAlipaypfmAssessResultSyncAPIResponse.go new file mode 100644 index 0000000000..53ab8470cb --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthAlipaypfmAssessResultSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户测评结果回传接口 API返回值 +alibaba.alihealth.alipaypfm.assess.result.sync + +用户测评结果回传接口 +*/ +type AlibabaAlihealthAlipaypfmAssessResultSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthAlipaypfmAssessResultSyncAPIResponseModel +} + +// 用户测评结果回传接口 成功返回结果 +type AlibabaAlihealthAlipaypfmAssessResultSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_alipaypfm_assess_result_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaAlihealthAlipaypfmAssessResultSyncResponse.go b/model/alihealthcrm/AlibabaAlihealthAlipaypfmAssessResultSyncResponse.go deleted file mode 100644 index d81da5fcb1..0000000000 --- a/model/alihealthcrm/AlibabaAlihealthAlipaypfmAssessResultSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户测评结果回传接口 API返回值 -alibaba.alihealth.alipaypfm.assess.result.sync - -用户测评结果回传接口 -*/ -type AlibabaAlihealthAlipaypfmAssessResultSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthAlipaypfmAssessResultSyncResponse -} - -// 用户测评结果回传接口 成功返回结果 -type AlibabaAlihealthAlipaypfmAssessResultSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_alipaypfm_assess_result_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaAlihealthAlipaypfmConsumeRecordAPIRequest.go b/model/alihealthcrm/AlibabaAlihealthAlipaypfmConsumeRecordAPIRequest.go new file mode 100644 index 0000000000..8ab4c46471 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthAlipaypfmConsumeRecordAPIRequest.go @@ -0,0 +1,80 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +记录用户每日消耗卡路里总量 API请求 +alibaba.alihealth.alipaypfm.consume.record + +记录用户每日消耗卡路里总量 +*/ +type AlibabaAlihealthAlipaypfmConsumeRecordAPIRequest struct { + model.Params + // 用户健康ID + _userId int64 + // 用户消耗卡路里总量 + _energy int64 + // 记录日期, 格式: yyyy-MM-dd + _date string +} + +// 初始化AlibabaAlihealthAlipaypfmConsumeRecordAPIRequest对象 +func NewAlibabaAlihealthAlipaypfmConsumeRecordRequest() *AlibabaAlihealthAlipaypfmConsumeRecordAPIRequest{ + return &AlibabaAlihealthAlipaypfmConsumeRecordAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthAlipaypfmConsumeRecordAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.alipaypfm.consume.record" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthAlipaypfmConsumeRecordAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户健康ID +func (r *AlibabaAlihealthAlipaypfmConsumeRecordAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaAlihealthAlipaypfmConsumeRecordAPIRequest) GetUserId() int64 { + return r._userId +} +// Energy Setter +// 用户消耗卡路里总量 +func (r *AlibabaAlihealthAlipaypfmConsumeRecordAPIRequest) SetEnergy(_energy int64) error { + r._energy = _energy + r.Set("energy", _energy) + return nil +} + +// Energy Getter +func (r AlibabaAlihealthAlipaypfmConsumeRecordAPIRequest) GetEnergy() int64 { + return r._energy +} +// Date Setter +// 记录日期, 格式: yyyy-MM-dd +func (r *AlibabaAlihealthAlipaypfmConsumeRecordAPIRequest) SetDate(_date string) error { + r._date = _date + r.Set("date", _date) + return nil +} + +// Date Getter +func (r AlibabaAlihealthAlipaypfmConsumeRecordAPIRequest) GetDate() string { + return r._date +} diff --git a/model/alihealthcrm/AlibabaAlihealthAlipaypfmConsumeRecordAPIResponse.go b/model/alihealthcrm/AlibabaAlihealthAlipaypfmConsumeRecordAPIResponse.go new file mode 100644 index 0000000000..c013565198 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthAlipaypfmConsumeRecordAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +记录用户每日消耗卡路里总量 API返回值 +alibaba.alihealth.alipaypfm.consume.record + +记录用户每日消耗卡路里总量 +*/ +type AlibabaAlihealthAlipaypfmConsumeRecordAPIResponse struct { + model.CommonResponse + AlibabaAlihealthAlipaypfmConsumeRecordAPIResponseModel +} + +// 记录用户每日消耗卡路里总量 成功返回结果 +type AlibabaAlihealthAlipaypfmConsumeRecordAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_alipaypfm_consume_record_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaAlihealthAlipaypfmConsumeRecordResponse.go b/model/alihealthcrm/AlibabaAlihealthAlipaypfmConsumeRecordResponse.go deleted file mode 100644 index 9949f3be7b..0000000000 --- a/model/alihealthcrm/AlibabaAlihealthAlipaypfmConsumeRecordResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -记录用户每日消耗卡路里总量 API返回值 -alibaba.alihealth.alipaypfm.consume.record - -记录用户每日消耗卡路里总量 -*/ -type AlibabaAlihealthAlipaypfmConsumeRecordAPIResponse struct { - model.CommonResponse - AlibabaAlihealthAlipaypfmConsumeRecordResponse -} - -// 记录用户每日消耗卡路里总量 成功返回结果 -type AlibabaAlihealthAlipaypfmConsumeRecordResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_alipaypfm_consume_record_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaAlihealthAlipaypfmDietRecordAPIRequest.go b/model/alihealthcrm/AlibabaAlihealthAlipaypfmDietRecordAPIRequest.go new file mode 100644 index 0000000000..21b7edc636 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthAlipaypfmDietRecordAPIRequest.go @@ -0,0 +1,80 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户每日摄入卡路里总量回传接口 API请求 +alibaba.alihealth.alipaypfm.diet.record + +用户每日摄入卡路里总量回传接口 +*/ +type AlibabaAlihealthAlipaypfmDietRecordAPIRequest struct { + model.Params + // 用户健康ID + _userId int64 + // 记录日期,format:yyyy-MM-dd + _date string + // 累积摄入卡路里 + _energy int64 +} + +// 初始化AlibabaAlihealthAlipaypfmDietRecordAPIRequest对象 +func NewAlibabaAlihealthAlipaypfmDietRecordRequest() *AlibabaAlihealthAlipaypfmDietRecordAPIRequest{ + return &AlibabaAlihealthAlipaypfmDietRecordAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthAlipaypfmDietRecordAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.alipaypfm.diet.record" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthAlipaypfmDietRecordAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户健康ID +func (r *AlibabaAlihealthAlipaypfmDietRecordAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaAlihealthAlipaypfmDietRecordAPIRequest) GetUserId() int64 { + return r._userId +} +// Date Setter +// 记录日期,format:yyyy-MM-dd +func (r *AlibabaAlihealthAlipaypfmDietRecordAPIRequest) SetDate(_date string) error { + r._date = _date + r.Set("date", _date) + return nil +} + +// Date Getter +func (r AlibabaAlihealthAlipaypfmDietRecordAPIRequest) GetDate() string { + return r._date +} +// Energy Setter +// 累积摄入卡路里 +func (r *AlibabaAlihealthAlipaypfmDietRecordAPIRequest) SetEnergy(_energy int64) error { + r._energy = _energy + r.Set("energy", _energy) + return nil +} + +// Energy Getter +func (r AlibabaAlihealthAlipaypfmDietRecordAPIRequest) GetEnergy() int64 { + return r._energy +} diff --git a/model/alihealthcrm/AlibabaAlihealthAlipaypfmDietRecordAPIResponse.go b/model/alihealthcrm/AlibabaAlihealthAlipaypfmDietRecordAPIResponse.go new file mode 100644 index 0000000000..c11861646d --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthAlipaypfmDietRecordAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户每日摄入卡路里总量回传接口 API返回值 +alibaba.alihealth.alipaypfm.diet.record + +用户每日摄入卡路里总量回传接口 +*/ +type AlibabaAlihealthAlipaypfmDietRecordAPIResponse struct { + model.CommonResponse + AlibabaAlihealthAlipaypfmDietRecordAPIResponseModel +} + +// 用户每日摄入卡路里总量回传接口 成功返回结果 +type AlibabaAlihealthAlipaypfmDietRecordAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_alipaypfm_diet_record_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaAlihealthAlipaypfmDietRecordResponse.go b/model/alihealthcrm/AlibabaAlihealthAlipaypfmDietRecordResponse.go deleted file mode 100644 index 6501763bc7..0000000000 --- a/model/alihealthcrm/AlibabaAlihealthAlipaypfmDietRecordResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户每日摄入卡路里总量回传接口 API返回值 -alibaba.alihealth.alipaypfm.diet.record - -用户每日摄入卡路里总量回传接口 -*/ -type AlibabaAlihealthAlipaypfmDietRecordAPIResponse struct { - model.CommonResponse - AlibabaAlihealthAlipaypfmDietRecordResponse -} - -// 用户每日摄入卡路里总量回传接口 成功返回结果 -type AlibabaAlihealthAlipaypfmDietRecordResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_alipaypfm_diet_record_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaAlihealthAlipaypfmOrderSyncAPIRequest.go b/model/alihealthcrm/AlibabaAlihealthAlipaypfmOrderSyncAPIRequest.go new file mode 100644 index 0000000000..e50f63ed44 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthAlipaypfmOrderSyncAPIRequest.go @@ -0,0 +1,108 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单数据回传接口 API请求 +alibaba.alihealth.alipaypfm.order.sync + +订单数据回传接口,各个isv通过我们渠道产生订单需要回传进行统计 +*/ +type AlibabaAlihealthAlipaypfmOrderSyncAPIRequest struct { + model.Params + // user_id + _userId int64 + // 订单id + _orderId string + // 订单价格 + _orderPrice string + // 订单状态 + _orderStatus string + // 扩展参数 + _extParam string +} + +// 初始化AlibabaAlihealthAlipaypfmOrderSyncAPIRequest对象 +func NewAlibabaAlihealthAlipaypfmOrderSyncRequest() *AlibabaAlihealthAlipaypfmOrderSyncAPIRequest{ + return &AlibabaAlihealthAlipaypfmOrderSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.alipaypfm.order.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// user_id +func (r *AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) GetUserId() int64 { + return r._userId +} +// OrderId Setter +// 订单id +func (r *AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) GetOrderId() string { + return r._orderId +} +// OrderPrice Setter +// 订单价格 +func (r *AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) SetOrderPrice(_orderPrice string) error { + r._orderPrice = _orderPrice + r.Set("order_price", _orderPrice) + return nil +} + +// OrderPrice Getter +func (r AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) GetOrderPrice() string { + return r._orderPrice +} +// OrderStatus Setter +// 订单状态 +func (r *AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) SetOrderStatus(_orderStatus string) error { + r._orderStatus = _orderStatus + r.Set("order_status", _orderStatus) + return nil +} + +// OrderStatus Getter +func (r AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) GetOrderStatus() string { + return r._orderStatus +} +// ExtParam Setter +// 扩展参数 +func (r *AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) SetExtParam(_extParam string) error { + r._extParam = _extParam + r.Set("ext_param", _extParam) + return nil +} + +// ExtParam Getter +func (r AlibabaAlihealthAlipaypfmOrderSyncAPIRequest) GetExtParam() string { + return r._extParam +} diff --git a/model/alihealthcrm/AlibabaAlihealthAlipaypfmOrderSyncAPIResponse.go b/model/alihealthcrm/AlibabaAlihealthAlipaypfmOrderSyncAPIResponse.go new file mode 100644 index 0000000000..085ec4a23c --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthAlipaypfmOrderSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单数据回传接口 API返回值 +alibaba.alihealth.alipaypfm.order.sync + +订单数据回传接口,各个isv通过我们渠道产生订单需要回传进行统计 +*/ +type AlibabaAlihealthAlipaypfmOrderSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthAlipaypfmOrderSyncAPIResponseModel +} + +// 订单数据回传接口 成功返回结果 +type AlibabaAlihealthAlipaypfmOrderSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_alipaypfm_order_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaAlihealthAlipaypfmOrderSyncResponse.go b/model/alihealthcrm/AlibabaAlihealthAlipaypfmOrderSyncResponse.go deleted file mode 100644 index d7fbb2d9e4..0000000000 --- a/model/alihealthcrm/AlibabaAlihealthAlipaypfmOrderSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单数据回传接口 API返回值 -alibaba.alihealth.alipaypfm.order.sync - -订单数据回传接口,各个isv通过我们渠道产生订单需要回传进行统计 -*/ -type AlibabaAlihealthAlipaypfmOrderSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthAlipaypfmOrderSyncResponse -} - -// 订单数据回传接口 成功返回结果 -type AlibabaAlihealthAlipaypfmOrderSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_alipaypfm_order_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaAlihealthAlipaypfmUseridDecryptAPIRequest.go b/model/alihealthcrm/AlibabaAlihealthAlipaypfmUseridDecryptAPIRequest.go new file mode 100644 index 0000000000..a420c60082 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthAlipaypfmUseridDecryptAPIRequest.go @@ -0,0 +1,66 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户标识解密接口 API请求 +alibaba.alihealth.alipaypfm.userid.decrypt + +用户唯一表示加密传输,调用方解密 +*/ +type AlibabaAlihealthAlipaypfmUseridDecryptAPIRequest struct { + model.Params + // 小程序appid + _appId string + // 加密后的userId + _content string +} + +// 初始化AlibabaAlihealthAlipaypfmUseridDecryptAPIRequest对象 +func NewAlibabaAlihealthAlipaypfmUseridDecryptRequest() *AlibabaAlihealthAlipaypfmUseridDecryptAPIRequest{ + return &AlibabaAlihealthAlipaypfmUseridDecryptAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthAlipaypfmUseridDecryptAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.alipaypfm.userid.decrypt" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthAlipaypfmUseridDecryptAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppId Setter +// 小程序appid +func (r *AlibabaAlihealthAlipaypfmUseridDecryptAPIRequest) SetAppId(_appId string) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r AlibabaAlihealthAlipaypfmUseridDecryptAPIRequest) GetAppId() string { + return r._appId +} +// Content Setter +// 加密后的userId +func (r *AlibabaAlihealthAlipaypfmUseridDecryptAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r AlibabaAlihealthAlipaypfmUseridDecryptAPIRequest) GetContent() string { + return r._content +} diff --git a/model/alihealthcrm/AlibabaAlihealthAlipaypfmUseridDecryptAPIResponse.go b/model/alihealthcrm/AlibabaAlihealthAlipaypfmUseridDecryptAPIResponse.go new file mode 100644 index 0000000000..761f8784b9 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthAlipaypfmUseridDecryptAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户标识解密接口 API返回值 +alibaba.alihealth.alipaypfm.userid.decrypt + +用户唯一表示加密传输,调用方解密 +*/ +type AlibabaAlihealthAlipaypfmUseridDecryptAPIResponse struct { + model.CommonResponse + AlibabaAlihealthAlipaypfmUseridDecryptAPIResponseModel +} + +// 用户标识解密接口 成功返回结果 +type AlibabaAlihealthAlipaypfmUseridDecryptAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_alipaypfm_userid_decrypt_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaAlihealthAlipaypfmUseridDecryptResponse.go b/model/alihealthcrm/AlibabaAlihealthAlipaypfmUseridDecryptResponse.go deleted file mode 100644 index a772659268..0000000000 --- a/model/alihealthcrm/AlibabaAlihealthAlipaypfmUseridDecryptResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户标识解密接口 API返回值 -alibaba.alihealth.alipaypfm.userid.decrypt - -用户唯一表示加密传输,调用方解密 -*/ -type AlibabaAlihealthAlipaypfmUseridDecryptAPIResponse struct { - model.CommonResponse - AlibabaAlihealthAlipaypfmUseridDecryptResponse -} - -// 用户标识解密接口 成功返回结果 -type AlibabaAlihealthAlipaypfmUseridDecryptResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_alipaypfm_userid_decrypt_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaAlihealthBabyBaseinfoGetAPIRequest.go b/model/alihealthcrm/AlibabaAlihealthBabyBaseinfoGetAPIRequest.go new file mode 100644 index 0000000000..7d3924cc22 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthBabyBaseinfoGetAPIRequest.go @@ -0,0 +1,66 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +三方从我们这获取宝宝信息 API请求 +alibaba.alihealth.baby.baseinfo.get + +三方从我们这获取宝宝信息 +*/ +type AlibabaAlihealthBabyBaseinfoGetAPIRequest struct { + model.Params + // 宝宝id + _babyId int64 + // 宝宝所属的用户 + _tpUserId int64 +} + +// 初始化AlibabaAlihealthBabyBaseinfoGetAPIRequest对象 +func NewAlibabaAlihealthBabyBaseinfoGetRequest() *AlibabaAlihealthBabyBaseinfoGetAPIRequest{ + return &AlibabaAlihealthBabyBaseinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthBabyBaseinfoGetAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.baby.baseinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthBabyBaseinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BabyId Setter +// 宝宝id +func (r *AlibabaAlihealthBabyBaseinfoGetAPIRequest) SetBabyId(_babyId int64) error { + r._babyId = _babyId + r.Set("baby_id", _babyId) + return nil +} + +// BabyId Getter +func (r AlibabaAlihealthBabyBaseinfoGetAPIRequest) GetBabyId() int64 { + return r._babyId +} +// TpUserId Setter +// 宝宝所属的用户 +func (r *AlibabaAlihealthBabyBaseinfoGetAPIRequest) SetTpUserId(_tpUserId int64) error { + r._tpUserId = _tpUserId + r.Set("tp_user_id", _tpUserId) + return nil +} + +// TpUserId Getter +func (r AlibabaAlihealthBabyBaseinfoGetAPIRequest) GetTpUserId() int64 { + return r._tpUserId +} diff --git a/model/alihealthcrm/AlibabaAlihealthBabyBaseinfoGetAPIResponse.go b/model/alihealthcrm/AlibabaAlihealthBabyBaseinfoGetAPIResponse.go new file mode 100644 index 0000000000..20884b7bf4 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthBabyBaseinfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +三方从我们这获取宝宝信息 API返回值 +alibaba.alihealth.baby.baseinfo.get + +三方从我们这获取宝宝信息 +*/ +type AlibabaAlihealthBabyBaseinfoGetAPIResponse struct { + model.CommonResponse + AlibabaAlihealthBabyBaseinfoGetAPIResponseModel +} + +// 三方从我们这获取宝宝信息 成功返回结果 +type AlibabaAlihealthBabyBaseinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_baby_baseinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BabyInfoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaAlihealthBabyBaseinfoGetResponse.go b/model/alihealthcrm/AlibabaAlihealthBabyBaseinfoGetResponse.go deleted file mode 100644 index 9b46bc1927..0000000000 --- a/model/alihealthcrm/AlibabaAlihealthBabyBaseinfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -三方从我们这获取宝宝信息 API返回值 -alibaba.alihealth.baby.baseinfo.get - -三方从我们这获取宝宝信息 -*/ -type AlibabaAlihealthBabyBaseinfoGetAPIResponse struct { - model.CommonResponse - AlibabaAlihealthBabyBaseinfoGetResponse -} - -// 三方从我们这获取宝宝信息 成功返回结果 -type AlibabaAlihealthBabyBaseinfoGetResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_baby_baseinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BabyInfoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest.go b/model/alihealthcrm/AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest.go new file mode 100644 index 0000000000..f7e8488855 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest.go @@ -0,0 +1,136 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +alibaba.alihealth.baby.baseinfo.order.sync API请求 +alibaba.alihealth.baby.baseinfo.order.sync + +育学园将订单信息回传给我们 +*/ +type AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest struct { + model.Params + // 健康id + _tpUserId int64 + // 商品id + _commodityId string + // 商品名称 + _commodityName string + // 价钱 + _amount *BigDecimal + // 状态,1是已支付,2是已退款 + _status int64 + // 订单时间 + _orderTime string + // 订单id + _orderId string +} + +// 初始化AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest对象 +func NewAlibabaAlihealthBabyBaseinfoOrderSyncRequest() *AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest{ + return &AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.baby.baseinfo.order.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TpUserId Setter +// 健康id +func (r *AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest) SetTpUserId(_tpUserId int64) error { + r._tpUserId = _tpUserId + r.Set("tp_user_id", _tpUserId) + return nil +} + +// TpUserId Getter +func (r AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest) GetTpUserId() int64 { + return r._tpUserId +} +// CommodityId Setter +// 商品id +func (r *AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest) SetCommodityId(_commodityId string) error { + r._commodityId = _commodityId + r.Set("commodity_id", _commodityId) + return nil +} + +// CommodityId Getter +func (r AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest) GetCommodityId() string { + return r._commodityId +} +// CommodityName Setter +// 商品名称 +func (r *AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest) SetCommodityName(_commodityName string) error { + r._commodityName = _commodityName + r.Set("commodity_name", _commodityName) + return nil +} + +// CommodityName Getter +func (r AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest) GetCommodityName() string { + return r._commodityName +} +// Amount Setter +// 价钱 +func (r *AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest) SetAmount(_amount *BigDecimal) error { + r._amount = _amount + r.Set("amount", _amount) + return nil +} + +// Amount Getter +func (r AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest) GetAmount() *BigDecimal { + return r._amount +} +// Status Setter +// 状态,1是已支付,2是已退款 +func (r *AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest) GetStatus() int64 { + return r._status +} +// OrderTime Setter +// 订单时间 +func (r *AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest) SetOrderTime(_orderTime string) error { + r._orderTime = _orderTime + r.Set("order_time", _orderTime) + return nil +} + +// OrderTime Getter +func (r AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest) GetOrderTime() string { + return r._orderTime +} +// OrderId Setter +// 订单id +func (r *AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaAlihealthBabyBaseinfoOrderSyncAPIRequest) GetOrderId() string { + return r._orderId +} diff --git a/model/alihealthcrm/AlibabaAlihealthBabyBaseinfoOrderSyncAPIResponse.go b/model/alihealthcrm/AlibabaAlihealthBabyBaseinfoOrderSyncAPIResponse.go new file mode 100644 index 0000000000..39a052cb1c --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthBabyBaseinfoOrderSyncAPIResponse.go @@ -0,0 +1,29 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +alibaba.alihealth.baby.baseinfo.order.sync API返回值 +alibaba.alihealth.baby.baseinfo.order.sync + +育学园将订单信息回传给我们 +*/ +type AlibabaAlihealthBabyBaseinfoOrderSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthBabyBaseinfoOrderSyncAPIResponseModel +} + +// alibaba.alihealth.baby.baseinfo.order.sync 成功返回结果 +type AlibabaAlihealthBabyBaseinfoOrderSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_baby_baseinfo_order_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作提示 + ReturnMsg string `json:"return_msg,omitempty" xml:"return_msg,omitempty"` + // 操作码 + ReturnCode int64 `json:"return_code,omitempty" xml:"return_code,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaAlihealthBabyBaseinfoOrderSyncResponse.go b/model/alihealthcrm/AlibabaAlihealthBabyBaseinfoOrderSyncResponse.go deleted file mode 100644 index 21bdc0d6a9..0000000000 --- a/model/alihealthcrm/AlibabaAlihealthBabyBaseinfoOrderSyncResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -alibaba.alihealth.baby.baseinfo.order.sync API返回值 -alibaba.alihealth.baby.baseinfo.order.sync - -育学园将订单信息回传给我们 -*/ -type AlibabaAlihealthBabyBaseinfoOrderSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthBabyBaseinfoOrderSyncResponse -} - -// alibaba.alihealth.baby.baseinfo.order.sync 成功返回结果 -type AlibabaAlihealthBabyBaseinfoOrderSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_baby_baseinfo_order_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作提示 - ReturnMsg string `json:"return_msg,omitempty" xml:"return_msg,omitempty"` - // 操作码 - ReturnCode int64 `json:"return_code,omitempty" xml:"return_code,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaAlihealthBabyRemindBatchSendAPIRequest.go b/model/alihealthcrm/AlibabaAlihealthBabyRemindBatchSendAPIRequest.go new file mode 100644 index 0000000000..1b55a12b94 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthBabyRemindBatchSendAPIRequest.go @@ -0,0 +1,66 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量发送母婴提醒 API请求 +alibaba.alihealth.baby.remind.batch.send + +批量发送母婴提醒 +*/ +type AlibabaAlihealthBabyRemindBatchSendAPIRequest struct { + model.Params + // 批量发送提醒 + _batchRemindRequests []BatchRemindRequestDto + // 提醒类型:1-每日任务,2-疫苗提醒,3-产检提醒 + _remindType int64 +} + +// 初始化AlibabaAlihealthBabyRemindBatchSendAPIRequest对象 +func NewAlibabaAlihealthBabyRemindBatchSendRequest() *AlibabaAlihealthBabyRemindBatchSendAPIRequest{ + return &AlibabaAlihealthBabyRemindBatchSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthBabyRemindBatchSendAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.baby.remind.batch.send" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthBabyRemindBatchSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BatchRemindRequests Setter +// 批量发送提醒 +func (r *AlibabaAlihealthBabyRemindBatchSendAPIRequest) SetBatchRemindRequests(_batchRemindRequests []BatchRemindRequestDto) error { + r._batchRemindRequests = _batchRemindRequests + r.Set("batch_remind_requests", _batchRemindRequests) + return nil +} + +// BatchRemindRequests Getter +func (r AlibabaAlihealthBabyRemindBatchSendAPIRequest) GetBatchRemindRequests() []BatchRemindRequestDto { + return r._batchRemindRequests +} +// RemindType Setter +// 提醒类型:1-每日任务,2-疫苗提醒,3-产检提醒 +func (r *AlibabaAlihealthBabyRemindBatchSendAPIRequest) SetRemindType(_remindType int64) error { + r._remindType = _remindType + r.Set("remind_type", _remindType) + return nil +} + +// RemindType Getter +func (r AlibabaAlihealthBabyRemindBatchSendAPIRequest) GetRemindType() int64 { + return r._remindType +} diff --git a/model/alihealthcrm/AlibabaAlihealthBabyRemindBatchSendAPIResponse.go b/model/alihealthcrm/AlibabaAlihealthBabyRemindBatchSendAPIResponse.go new file mode 100644 index 0000000000..d8696f601e --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthBabyRemindBatchSendAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量发送母婴提醒 API返回值 +alibaba.alihealth.baby.remind.batch.send + +批量发送母婴提醒 +*/ +type AlibabaAlihealthBabyRemindBatchSendAPIResponse struct { + model.CommonResponse + AlibabaAlihealthBabyRemindBatchSendAPIResponseModel +} + +// 批量发送母婴提醒 成功返回结果 +type AlibabaAlihealthBabyRemindBatchSendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_baby_remind_batch_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaAlihealthBabyRemindBatchSendResponse.go b/model/alihealthcrm/AlibabaAlihealthBabyRemindBatchSendResponse.go deleted file mode 100644 index 81b78cc1e4..0000000000 --- a/model/alihealthcrm/AlibabaAlihealthBabyRemindBatchSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量发送母婴提醒 API返回值 -alibaba.alihealth.baby.remind.batch.send - -批量发送母婴提醒 -*/ -type AlibabaAlihealthBabyRemindBatchSendAPIResponse struct { - model.CommonResponse - AlibabaAlihealthBabyRemindBatchSendResponse -} - -// 批量发送母婴提醒 成功返回结果 -type AlibabaAlihealthBabyRemindBatchSendResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_baby_remind_batch_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaAlihealthDapHuaweiCardinfosAPIRequest.go b/model/alihealthcrm/AlibabaAlihealthDapHuaweiCardinfosAPIRequest.go new file mode 100644 index 0000000000..c51a14136c --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthDapHuaweiCardinfosAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +华为负一屏卡片查询 API请求 +alibaba.alihealth.dap.huawei.cardinfos + +医疗健康频道卡片华为负一屏 +*/ +type AlibabaAlihealthDapHuaweiCardinfosAPIRequest struct { + model.Params + // source HUAWEI_HAG,OPPO_OAG + _param string +} + +// 初始化AlibabaAlihealthDapHuaweiCardinfosAPIRequest对象 +func NewAlibabaAlihealthDapHuaweiCardinfosRequest() *AlibabaAlihealthDapHuaweiCardinfosAPIRequest{ + return &AlibabaAlihealthDapHuaweiCardinfosAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDapHuaweiCardinfosAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.dap.huawei.cardinfos" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDapHuaweiCardinfosAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// source HUAWEI_HAG,OPPO_OAG +func (r *AlibabaAlihealthDapHuaweiCardinfosAPIRequest) SetParam(_param string) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaAlihealthDapHuaweiCardinfosAPIRequest) GetParam() string { + return r._param +} diff --git a/model/alihealthcrm/AlibabaAlihealthDapHuaweiCardinfosAPIResponse.go b/model/alihealthcrm/AlibabaAlihealthDapHuaweiCardinfosAPIResponse.go new file mode 100644 index 0000000000..0f13e09cd8 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthDapHuaweiCardinfosAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +华为负一屏卡片查询 API返回值 +alibaba.alihealth.dap.huawei.cardinfos + +医疗健康频道卡片华为负一屏 +*/ +type AlibabaAlihealthDapHuaweiCardinfosAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDapHuaweiCardinfosAPIResponseModel +} + +// 华为负一屏卡片查询 成功返回结果 +type AlibabaAlihealthDapHuaweiCardinfosAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_dap_huawei_cardinfos_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaAlihealthDapHuaweiCardinfosResponse.go b/model/alihealthcrm/AlibabaAlihealthDapHuaweiCardinfosResponse.go deleted file mode 100644 index 04eed9d7e5..0000000000 --- a/model/alihealthcrm/AlibabaAlihealthDapHuaweiCardinfosResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -华为负一屏卡片查询 API返回值 -alibaba.alihealth.dap.huawei.cardinfos - -医疗健康频道卡片华为负一屏 -*/ -type AlibabaAlihealthDapHuaweiCardinfosAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDapHuaweiCardinfosResponse -} - -// 华为负一屏卡片查询 成功返回结果 -type AlibabaAlihealthDapHuaweiCardinfosResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_dap_huawei_cardinfos_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest.go b/model/alihealthcrm/AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest.go new file mode 100644 index 0000000000..542ea99ce5 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest.go @@ -0,0 +1,430 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +互联网医院批量导入接口 API请求 +alibaba.alihealth.medicalbase.hospital.sync + +互联网医院isv批量通过接口批量导入 +*/ +type AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest struct { + model.Params + // 是否需要用户授权 + _isAuth string + // 主院区纬度 + _lat string + // 主院区经度 + _lon string + // 主院区地址 + _hosAddress string + // 主院区的联系电话 + _telephone string + // 院区名称 + _regionName string + // 是否公立医院(Y/N) + _isPublic string + // 标签 + _serviceInfo string + // 自定义科室 + _special string + // 生活号或者服务窗url + _serviceWindowUrl string + // 医院简介url + _descriptionUrl string + // 是否支持医保(Y/N) + _isInsurance string + // 医院等级 + _grade string + // 综合(general)、专科(special) + _category string + // 医院简称 + _shortName string + // 医院pid + _pid string + // 机构编码 + _unifyCode string + // 所在城市code + _cityCode string + // 营业执照上的医院全称 + _hosName string + // 公司名称 + _companyName string + // 支付宝BD的姓名 + _aliInterfaceMan string + // 邮箱地址 + _email string + // 联系人 + _technicalMan string + // 联系手机 + _phone string + // 单医院(main)/ 平台(platform) + _hosType string + // 服务项列表 + _functions string + // isv库里面的hosCode + _isvHosCode string + // 投放阵地alipay aliyy uc quark + _deliveryChannel string +} + +// 初始化AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest对象 +func NewAlibabaAlihealthMedicalbaseHospitalSyncRequest() *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest{ + return &AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.medicalbase.hospital.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IsAuth Setter +// 是否需要用户授权 +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetIsAuth(_isAuth string) error { + r._isAuth = _isAuth + r.Set("is_auth", _isAuth) + return nil +} + +// IsAuth Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetIsAuth() string { + return r._isAuth +} +// Lat Setter +// 主院区纬度 +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetLat(_lat string) error { + r._lat = _lat + r.Set("lat", _lat) + return nil +} + +// Lat Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetLat() string { + return r._lat +} +// Lon Setter +// 主院区经度 +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetLon(_lon string) error { + r._lon = _lon + r.Set("lon", _lon) + return nil +} + +// Lon Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetLon() string { + return r._lon +} +// HosAddress Setter +// 主院区地址 +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetHosAddress(_hosAddress string) error { + r._hosAddress = _hosAddress + r.Set("hos_address", _hosAddress) + return nil +} + +// HosAddress Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetHosAddress() string { + return r._hosAddress +} +// Telephone Setter +// 主院区的联系电话 +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetTelephone(_telephone string) error { + r._telephone = _telephone + r.Set("telephone", _telephone) + return nil +} + +// Telephone Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetTelephone() string { + return r._telephone +} +// RegionName Setter +// 院区名称 +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetRegionName(_regionName string) error { + r._regionName = _regionName + r.Set("region_name", _regionName) + return nil +} + +// RegionName Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetRegionName() string { + return r._regionName +} +// IsPublic Setter +// 是否公立医院(Y/N) +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetIsPublic(_isPublic string) error { + r._isPublic = _isPublic + r.Set("is_public", _isPublic) + return nil +} + +// IsPublic Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetIsPublic() string { + return r._isPublic +} +// ServiceInfo Setter +// 标签 +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetServiceInfo(_serviceInfo string) error { + r._serviceInfo = _serviceInfo + r.Set("service_info", _serviceInfo) + return nil +} + +// ServiceInfo Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetServiceInfo() string { + return r._serviceInfo +} +// Special Setter +// 自定义科室 +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetSpecial(_special string) error { + r._special = _special + r.Set("special", _special) + return nil +} + +// Special Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetSpecial() string { + return r._special +} +// ServiceWindowUrl Setter +// 生活号或者服务窗url +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetServiceWindowUrl(_serviceWindowUrl string) error { + r._serviceWindowUrl = _serviceWindowUrl + r.Set("service_window_url", _serviceWindowUrl) + return nil +} + +// ServiceWindowUrl Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetServiceWindowUrl() string { + return r._serviceWindowUrl +} +// DescriptionUrl Setter +// 医院简介url +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetDescriptionUrl(_descriptionUrl string) error { + r._descriptionUrl = _descriptionUrl + r.Set("description_url", _descriptionUrl) + return nil +} + +// DescriptionUrl Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetDescriptionUrl() string { + return r._descriptionUrl +} +// IsInsurance Setter +// 是否支持医保(Y/N) +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetIsInsurance(_isInsurance string) error { + r._isInsurance = _isInsurance + r.Set("is_insurance", _isInsurance) + return nil +} + +// IsInsurance Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetIsInsurance() string { + return r._isInsurance +} +// Grade Setter +// 医院等级 +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetGrade(_grade string) error { + r._grade = _grade + r.Set("grade", _grade) + return nil +} + +// Grade Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetGrade() string { + return r._grade +} +// Category Setter +// 综合(general)、专科(special) +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetCategory(_category string) error { + r._category = _category + r.Set("category", _category) + return nil +} + +// Category Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetCategory() string { + return r._category +} +// ShortName Setter +// 医院简称 +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetShortName(_shortName string) error { + r._shortName = _shortName + r.Set("short_name", _shortName) + return nil +} + +// ShortName Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetShortName() string { + return r._shortName +} +// Pid Setter +// 医院pid +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetPid(_pid string) error { + r._pid = _pid + r.Set("pid", _pid) + return nil +} + +// Pid Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetPid() string { + return r._pid +} +// UnifyCode Setter +// 机构编码 +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetUnifyCode(_unifyCode string) error { + r._unifyCode = _unifyCode + r.Set("unify_code", _unifyCode) + return nil +} + +// UnifyCode Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetUnifyCode() string { + return r._unifyCode +} +// CityCode Setter +// 所在城市code +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetCityCode(_cityCode string) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetCityCode() string { + return r._cityCode +} +// HosName Setter +// 营业执照上的医院全称 +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetHosName(_hosName string) error { + r._hosName = _hosName + r.Set("hos_name", _hosName) + return nil +} + +// HosName Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetHosName() string { + return r._hosName +} +// CompanyName Setter +// 公司名称 +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetCompanyName(_companyName string) error { + r._companyName = _companyName + r.Set("company_name", _companyName) + return nil +} + +// CompanyName Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetCompanyName() string { + return r._companyName +} +// AliInterfaceMan Setter +// 支付宝BD的姓名 +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetAliInterfaceMan(_aliInterfaceMan string) error { + r._aliInterfaceMan = _aliInterfaceMan + r.Set("ali_interface_man", _aliInterfaceMan) + return nil +} + +// AliInterfaceMan Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetAliInterfaceMan() string { + return r._aliInterfaceMan +} +// Email Setter +// 邮箱地址 +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetEmail(_email string) error { + r._email = _email + r.Set("email", _email) + return nil +} + +// Email Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetEmail() string { + return r._email +} +// TechnicalMan Setter +// 联系人 +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetTechnicalMan(_technicalMan string) error { + r._technicalMan = _technicalMan + r.Set("technical_man", _technicalMan) + return nil +} + +// TechnicalMan Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetTechnicalMan() string { + return r._technicalMan +} +// Phone Setter +// 联系手机 +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetPhone() string { + return r._phone +} +// HosType Setter +// 单医院(main)/ 平台(platform) +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetHosType(_hosType string) error { + r._hosType = _hosType + r.Set("hos_type", _hosType) + return nil +} + +// HosType Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetHosType() string { + return r._hosType +} +// Functions Setter +// 服务项列表 +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetFunctions(_functions string) error { + r._functions = _functions + r.Set("functions", _functions) + return nil +} + +// Functions Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetFunctions() string { + return r._functions +} +// IsvHosCode Setter +// isv库里面的hosCode +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetIsvHosCode(_isvHosCode string) error { + r._isvHosCode = _isvHosCode + r.Set("isv_hos_code", _isvHosCode) + return nil +} + +// IsvHosCode Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetIsvHosCode() string { + return r._isvHosCode +} +// DeliveryChannel Setter +// 投放阵地alipay aliyy uc quark +func (r *AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) SetDeliveryChannel(_deliveryChannel string) error { + r._deliveryChannel = _deliveryChannel + r.Set("delivery_channel", _deliveryChannel) + return nil +} + +// DeliveryChannel Getter +func (r AlibabaAlihealthMedicalbaseHospitalSyncAPIRequest) GetDeliveryChannel() string { + return r._deliveryChannel +} diff --git a/model/alihealthcrm/AlibabaAlihealthMedicalbaseHospitalSyncAPIResponse.go b/model/alihealthcrm/AlibabaAlihealthMedicalbaseHospitalSyncAPIResponse.go new file mode 100644 index 0000000000..a52238b8b7 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthMedicalbaseHospitalSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +互联网医院批量导入接口 API返回值 +alibaba.alihealth.medicalbase.hospital.sync + +互联网医院isv批量通过接口批量导入 +*/ +type AlibabaAlihealthMedicalbaseHospitalSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMedicalbaseHospitalSyncAPIResponseModel +} + +// 互联网医院批量导入接口 成功返回结果 +type AlibabaAlihealthMedicalbaseHospitalSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_medicalbase_hospital_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaAlihealthMedicalbaseHospitalSyncResponse.go b/model/alihealthcrm/AlibabaAlihealthMedicalbaseHospitalSyncResponse.go deleted file mode 100644 index c17886af48..0000000000 --- a/model/alihealthcrm/AlibabaAlihealthMedicalbaseHospitalSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -互联网医院批量导入接口 API返回值 -alibaba.alihealth.medicalbase.hospital.sync - -互联网医院isv批量通过接口批量导入 -*/ -type AlibabaAlihealthMedicalbaseHospitalSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMedicalbaseHospitalSyncResponse -} - -// 互联网医院批量导入接口 成功返回结果 -type AlibabaAlihealthMedicalbaseHospitalSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_medicalbase_hospital_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaAlihealthPregnancyBaseinfoGetAPIRequest.go b/model/alihealthcrm/AlibabaAlihealthPregnancyBaseinfoGetAPIRequest.go new file mode 100644 index 0000000000..13e7933cf2 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthPregnancyBaseinfoGetAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +拉取备孕初始化信息 API请求 +alibaba.alihealth.pregnancy.baseinfo.get + +拉取备孕初始化信息 +*/ +type AlibabaAlihealthPregnancyBaseinfoGetAPIRequest struct { + model.Params + // 用户id + _userId int64 +} + +// 初始化AlibabaAlihealthPregnancyBaseinfoGetAPIRequest对象 +func NewAlibabaAlihealthPregnancyBaseinfoGetRequest() *AlibabaAlihealthPregnancyBaseinfoGetAPIRequest{ + return &AlibabaAlihealthPregnancyBaseinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthPregnancyBaseinfoGetAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.pregnancy.baseinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthPregnancyBaseinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户id +func (r *AlibabaAlihealthPregnancyBaseinfoGetAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaAlihealthPregnancyBaseinfoGetAPIRequest) GetUserId() int64 { + return r._userId +} diff --git a/model/alihealthcrm/AlibabaAlihealthPregnancyBaseinfoGetAPIResponse.go b/model/alihealthcrm/AlibabaAlihealthPregnancyBaseinfoGetAPIResponse.go new file mode 100644 index 0000000000..679b9bc4d1 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthPregnancyBaseinfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +拉取备孕初始化信息 API返回值 +alibaba.alihealth.pregnancy.baseinfo.get + +拉取备孕初始化信息 +*/ +type AlibabaAlihealthPregnancyBaseinfoGetAPIResponse struct { + model.CommonResponse + AlibabaAlihealthPregnancyBaseinfoGetAPIResponseModel +} + +// 拉取备孕初始化信息 成功返回结果 +type AlibabaAlihealthPregnancyBaseinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_pregnancy_baseinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果集 + Result *AlibabaAlihealthPregnancyBaseinfoGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaAlihealthPregnancyBaseinfoGetResponse.go b/model/alihealthcrm/AlibabaAlihealthPregnancyBaseinfoGetResponse.go deleted file mode 100644 index f4402cbbaf..0000000000 --- a/model/alihealthcrm/AlibabaAlihealthPregnancyBaseinfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -拉取备孕初始化信息 API返回值 -alibaba.alihealth.pregnancy.baseinfo.get - -拉取备孕初始化信息 -*/ -type AlibabaAlihealthPregnancyBaseinfoGetAPIResponse struct { - model.CommonResponse - AlibabaAlihealthPregnancyBaseinfoGetResponse -} - -// 拉取备孕初始化信息 成功返回结果 -type AlibabaAlihealthPregnancyBaseinfoGetResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_pregnancy_baseinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果集 - Result *AlibabaAlihealthPregnancyBaseinfoGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaAlihealthPregnancyDataSyncAPIRequest.go b/model/alihealthcrm/AlibabaAlihealthPregnancyDataSyncAPIRequest.go new file mode 100644 index 0000000000..957bcd8f70 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthPregnancyDataSyncAPIRequest.go @@ -0,0 +1,136 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +四类数据同步 API请求 +alibaba.alihealth.pregnancy.data.sync + +经期调整;基础体温;排卵试纸;B超测排数据同步 +*/ +type AlibabaAlihealthPregnancyDataSyncAPIRequest struct { + model.Params + // 用户id + _userId int64 + // 三方id + _outerId int64 + // 4经期调整;1基础体温;2排卵试纸;3 B超测排 + _eventType int64 + // 四类数据定制化详情 + _data string + // 测量日期 + _measureDate int64 + // 0-新增 1-修改 2-删除 + _operationType int64 + // 经期数据json串 + _periodMsg string +} + +// 初始化AlibabaAlihealthPregnancyDataSyncAPIRequest对象 +func NewAlibabaAlihealthPregnancyDataSyncRequest() *AlibabaAlihealthPregnancyDataSyncAPIRequest{ + return &AlibabaAlihealthPregnancyDataSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthPregnancyDataSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.pregnancy.data.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthPregnancyDataSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户id +func (r *AlibabaAlihealthPregnancyDataSyncAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaAlihealthPregnancyDataSyncAPIRequest) GetUserId() int64 { + return r._userId +} +// OuterId Setter +// 三方id +func (r *AlibabaAlihealthPregnancyDataSyncAPIRequest) SetOuterId(_outerId int64) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r AlibabaAlihealthPregnancyDataSyncAPIRequest) GetOuterId() int64 { + return r._outerId +} +// EventType Setter +// 4经期调整;1基础体温;2排卵试纸;3 B超测排 +func (r *AlibabaAlihealthPregnancyDataSyncAPIRequest) SetEventType(_eventType int64) error { + r._eventType = _eventType + r.Set("event_type", _eventType) + return nil +} + +// EventType Getter +func (r AlibabaAlihealthPregnancyDataSyncAPIRequest) GetEventType() int64 { + return r._eventType +} +// Data Setter +// 四类数据定制化详情 +func (r *AlibabaAlihealthPregnancyDataSyncAPIRequest) SetData(_data string) error { + r._data = _data + r.Set("data", _data) + return nil +} + +// Data Getter +func (r AlibabaAlihealthPregnancyDataSyncAPIRequest) GetData() string { + return r._data +} +// MeasureDate Setter +// 测量日期 +func (r *AlibabaAlihealthPregnancyDataSyncAPIRequest) SetMeasureDate(_measureDate int64) error { + r._measureDate = _measureDate + r.Set("measure_date", _measureDate) + return nil +} + +// MeasureDate Getter +func (r AlibabaAlihealthPregnancyDataSyncAPIRequest) GetMeasureDate() int64 { + return r._measureDate +} +// OperationType Setter +// 0-新增 1-修改 2-删除 +func (r *AlibabaAlihealthPregnancyDataSyncAPIRequest) SetOperationType(_operationType int64) error { + r._operationType = _operationType + r.Set("operation_type", _operationType) + return nil +} + +// OperationType Getter +func (r AlibabaAlihealthPregnancyDataSyncAPIRequest) GetOperationType() int64 { + return r._operationType +} +// PeriodMsg Setter +// 经期数据json串 +func (r *AlibabaAlihealthPregnancyDataSyncAPIRequest) SetPeriodMsg(_periodMsg string) error { + r._periodMsg = _periodMsg + r.Set("period_msg", _periodMsg) + return nil +} + +// PeriodMsg Getter +func (r AlibabaAlihealthPregnancyDataSyncAPIRequest) GetPeriodMsg() string { + return r._periodMsg +} diff --git a/model/alihealthcrm/AlibabaAlihealthPregnancyDataSyncAPIResponse.go b/model/alihealthcrm/AlibabaAlihealthPregnancyDataSyncAPIResponse.go new file mode 100644 index 0000000000..efe38ef7ab --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthPregnancyDataSyncAPIResponse.go @@ -0,0 +1,29 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +四类数据同步 API返回值 +alibaba.alihealth.pregnancy.data.sync + +经期调整;基础体温;排卵试纸;B超测排数据同步 +*/ +type AlibabaAlihealthPregnancyDataSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthPregnancyDataSyncAPIResponseModel +} + +// 四类数据同步 成功返回结果 +type AlibabaAlihealthPregnancyDataSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_pregnancy_data_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaAlihealthPregnancyDataSyncResponse.go b/model/alihealthcrm/AlibabaAlihealthPregnancyDataSyncResponse.go deleted file mode 100644 index c6cabe479c..0000000000 --- a/model/alihealthcrm/AlibabaAlihealthPregnancyDataSyncResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -四类数据同步 API返回值 -alibaba.alihealth.pregnancy.data.sync - -经期调整;基础体温;排卵试纸;B超测排数据同步 -*/ -type AlibabaAlihealthPregnancyDataSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthPregnancyDataSyncResponse -} - -// 四类数据同步 成功返回结果 -type AlibabaAlihealthPregnancyDataSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_pregnancy_data_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaAlihealthPregnancyNavigateinfoQueryAPIRequest.go b/model/alihealthcrm/AlibabaAlihealthPregnancyNavigateinfoQueryAPIRequest.go new file mode 100644 index 0000000000..cc0fa7e4bc --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthPregnancyNavigateinfoQueryAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询底导数据 API请求 +alibaba.alihealth.pregnancy.navigateinfo.query + +备孕管理--获取底部导航信息 +*/ +type AlibabaAlihealthPregnancyNavigateinfoQueryAPIRequest struct { + model.Params + // 用户id + _userId int64 +} + +// 初始化AlibabaAlihealthPregnancyNavigateinfoQueryAPIRequest对象 +func NewAlibabaAlihealthPregnancyNavigateinfoQueryRequest() *AlibabaAlihealthPregnancyNavigateinfoQueryAPIRequest{ + return &AlibabaAlihealthPregnancyNavigateinfoQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthPregnancyNavigateinfoQueryAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.pregnancy.navigateinfo.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthPregnancyNavigateinfoQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户id +func (r *AlibabaAlihealthPregnancyNavigateinfoQueryAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaAlihealthPregnancyNavigateinfoQueryAPIRequest) GetUserId() int64 { + return r._userId +} diff --git a/model/alihealthcrm/AlibabaAlihealthPregnancyNavigateinfoQueryAPIResponse.go b/model/alihealthcrm/AlibabaAlihealthPregnancyNavigateinfoQueryAPIResponse.go new file mode 100644 index 0000000000..87007bd714 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthPregnancyNavigateinfoQueryAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询底导数据 API返回值 +alibaba.alihealth.pregnancy.navigateinfo.query + +备孕管理--获取底部导航信息 +*/ +type AlibabaAlihealthPregnancyNavigateinfoQueryAPIResponse struct { + model.CommonResponse + AlibabaAlihealthPregnancyNavigateinfoQueryAPIResponseModel +} + +// 查询底导数据 成功返回结果 +type AlibabaAlihealthPregnancyNavigateinfoQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_pregnancy_navigateinfo_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果集 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaAlihealthPregnancyNavigateinfoQueryResponse.go b/model/alihealthcrm/AlibabaAlihealthPregnancyNavigateinfoQueryResponse.go deleted file mode 100644 index 79f7c921d6..0000000000 --- a/model/alihealthcrm/AlibabaAlihealthPregnancyNavigateinfoQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询底导数据 API返回值 -alibaba.alihealth.pregnancy.navigateinfo.query - -备孕管理--获取底部导航信息 -*/ -type AlibabaAlihealthPregnancyNavigateinfoQueryAPIResponse struct { - model.CommonResponse - AlibabaAlihealthPregnancyNavigateinfoQueryResponse -} - -// 查询底导数据 成功返回结果 -type AlibabaAlihealthPregnancyNavigateinfoQueryResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_pregnancy_navigateinfo_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果集 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaAlihealthPregnancyPostsDataAPIRequest.go b/model/alihealthcrm/AlibabaAlihealthPregnancyPostsDataAPIRequest.go new file mode 100644 index 0000000000..af824239a9 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthPregnancyPostsDataAPIRequest.go @@ -0,0 +1,150 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发回帖子信息同步 API请求 +alibaba.alihealth.pregnancy.posts.data + +发回帖子信息同步 +*/ +type AlibabaAlihealthPregnancyPostsDataAPIRequest struct { + model.Params + // 用户id + _userId int64 + // 事件类型 0发帖 1回帖 + _eventType int64 + // 主贴id + _mainId int64 + // 回帖id + _replyId int64 + // 标题 + _title string + // 内容 + _content string + // 图片url + _picUrl string + // 发帖时间 + _date int64 +} + +// 初始化AlibabaAlihealthPregnancyPostsDataAPIRequest对象 +func NewAlibabaAlihealthPregnancyPostsDataRequest() *AlibabaAlihealthPregnancyPostsDataAPIRequest{ + return &AlibabaAlihealthPregnancyPostsDataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthPregnancyPostsDataAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.pregnancy.posts.data" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthPregnancyPostsDataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户id +func (r *AlibabaAlihealthPregnancyPostsDataAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaAlihealthPregnancyPostsDataAPIRequest) GetUserId() int64 { + return r._userId +} +// EventType Setter +// 事件类型 0发帖 1回帖 +func (r *AlibabaAlihealthPregnancyPostsDataAPIRequest) SetEventType(_eventType int64) error { + r._eventType = _eventType + r.Set("event_type", _eventType) + return nil +} + +// EventType Getter +func (r AlibabaAlihealthPregnancyPostsDataAPIRequest) GetEventType() int64 { + return r._eventType +} +// MainId Setter +// 主贴id +func (r *AlibabaAlihealthPregnancyPostsDataAPIRequest) SetMainId(_mainId int64) error { + r._mainId = _mainId + r.Set("main_id", _mainId) + return nil +} + +// MainId Getter +func (r AlibabaAlihealthPregnancyPostsDataAPIRequest) GetMainId() int64 { + return r._mainId +} +// ReplyId Setter +// 回帖id +func (r *AlibabaAlihealthPregnancyPostsDataAPIRequest) SetReplyId(_replyId int64) error { + r._replyId = _replyId + r.Set("reply_id", _replyId) + return nil +} + +// ReplyId Getter +func (r AlibabaAlihealthPregnancyPostsDataAPIRequest) GetReplyId() int64 { + return r._replyId +} +// Title Setter +// 标题 +func (r *AlibabaAlihealthPregnancyPostsDataAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r AlibabaAlihealthPregnancyPostsDataAPIRequest) GetTitle() string { + return r._title +} +// Content Setter +// 内容 +func (r *AlibabaAlihealthPregnancyPostsDataAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r AlibabaAlihealthPregnancyPostsDataAPIRequest) GetContent() string { + return r._content +} +// PicUrl Setter +// 图片url +func (r *AlibabaAlihealthPregnancyPostsDataAPIRequest) SetPicUrl(_picUrl string) error { + r._picUrl = _picUrl + r.Set("pic_url", _picUrl) + return nil +} + +// PicUrl Getter +func (r AlibabaAlihealthPregnancyPostsDataAPIRequest) GetPicUrl() string { + return r._picUrl +} +// Date Setter +// 发帖时间 +func (r *AlibabaAlihealthPregnancyPostsDataAPIRequest) SetDate(_date int64) error { + r._date = _date + r.Set("date", _date) + return nil +} + +// Date Getter +func (r AlibabaAlihealthPregnancyPostsDataAPIRequest) GetDate() int64 { + return r._date +} diff --git a/model/alihealthcrm/AlibabaAlihealthPregnancyPostsDataAPIResponse.go b/model/alihealthcrm/AlibabaAlihealthPregnancyPostsDataAPIResponse.go new file mode 100644 index 0000000000..a4bc0fced1 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthPregnancyPostsDataAPIResponse.go @@ -0,0 +1,29 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发回帖子信息同步 API返回值 +alibaba.alihealth.pregnancy.posts.data + +发回帖子信息同步 +*/ +type AlibabaAlihealthPregnancyPostsDataAPIResponse struct { + model.CommonResponse + AlibabaAlihealthPregnancyPostsDataAPIResponseModel +} + +// 发回帖子信息同步 成功返回结果 +type AlibabaAlihealthPregnancyPostsDataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_pregnancy_posts_data_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaAlihealthPregnancyPostsDataResponse.go b/model/alihealthcrm/AlibabaAlihealthPregnancyPostsDataResponse.go deleted file mode 100644 index ba140d12dd..0000000000 --- a/model/alihealthcrm/AlibabaAlihealthPregnancyPostsDataResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发回帖子信息同步 API返回值 -alibaba.alihealth.pregnancy.posts.data - -发回帖子信息同步 -*/ -type AlibabaAlihealthPregnancyPostsDataAPIResponse struct { - model.CommonResponse - AlibabaAlihealthPregnancyPostsDataResponse -} - -// 发回帖子信息同步 成功返回结果 -type AlibabaAlihealthPregnancyPostsDataResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_pregnancy_posts_data_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaAlihealthPregnancyProductGetAPIRequest.go b/model/alihealthcrm/AlibabaAlihealthPregnancyProductGetAPIRequest.go new file mode 100644 index 0000000000..745030deb2 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthPregnancyProductGetAPIRequest.go @@ -0,0 +1,80 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +备孕首页获取达人配置商品 API请求 +alibaba.alihealth.pregnancy.product.get + +备孕首页获取达人配置商品 +*/ +type AlibabaAlihealthPregnancyProductGetAPIRequest struct { + model.Params + // tab页对应id + _sceneId int64 + // 起始页码,大于0 + _currentPage int64 + // 每页条数 + _pageSize int64 +} + +// 初始化AlibabaAlihealthPregnancyProductGetAPIRequest对象 +func NewAlibabaAlihealthPregnancyProductGetRequest() *AlibabaAlihealthPregnancyProductGetAPIRequest{ + return &AlibabaAlihealthPregnancyProductGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthPregnancyProductGetAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.pregnancy.product.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthPregnancyProductGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SceneId Setter +// tab页对应id +func (r *AlibabaAlihealthPregnancyProductGetAPIRequest) SetSceneId(_sceneId int64) error { + r._sceneId = _sceneId + r.Set("scene_id", _sceneId) + return nil +} + +// SceneId Getter +func (r AlibabaAlihealthPregnancyProductGetAPIRequest) GetSceneId() int64 { + return r._sceneId +} +// CurrentPage Setter +// 起始页码,大于0 +func (r *AlibabaAlihealthPregnancyProductGetAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AlibabaAlihealthPregnancyProductGetAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// PageSize Setter +// 每页条数 +func (r *AlibabaAlihealthPregnancyProductGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthPregnancyProductGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/alihealthcrm/AlibabaAlihealthPregnancyProductGetAPIResponse.go b/model/alihealthcrm/AlibabaAlihealthPregnancyProductGetAPIResponse.go new file mode 100644 index 0000000000..087111d0f2 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthPregnancyProductGetAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +备孕首页获取达人配置商品 API返回值 +alibaba.alihealth.pregnancy.product.get + +备孕首页获取达人配置商品 +*/ +type AlibabaAlihealthPregnancyProductGetAPIResponse struct { + model.CommonResponse + AlibabaAlihealthPregnancyProductGetAPIResponseModel +} + +// 备孕首页获取达人配置商品 成功返回结果 +type AlibabaAlihealthPregnancyProductGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_pregnancy_product_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果集 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaAlihealthPregnancyProductGetResponse.go b/model/alihealthcrm/AlibabaAlihealthPregnancyProductGetResponse.go deleted file mode 100644 index 359f8e8c87..0000000000 --- a/model/alihealthcrm/AlibabaAlihealthPregnancyProductGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -备孕首页获取达人配置商品 API返回值 -alibaba.alihealth.pregnancy.product.get - -备孕首页获取达人配置商品 -*/ -type AlibabaAlihealthPregnancyProductGetAPIResponse struct { - model.CommonResponse - AlibabaAlihealthPregnancyProductGetResponse -} - -// 备孕首页获取达人配置商品 成功返回结果 -type AlibabaAlihealthPregnancyProductGetResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_pregnancy_product_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果集 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaAlihealthPregnancyTaginfoAddrankAPIRequest.go b/model/alihealthcrm/AlibabaAlihealthPregnancyTaginfoAddrankAPIRequest.go new file mode 100644 index 0000000000..cea0e6163a --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthPregnancyTaginfoAddrankAPIRequest.go @@ -0,0 +1,66 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +点击标签后排序接口 API请求 +alibaba.alihealth.pregnancy.taginfo.addrank + +备孕管理--点击标签后排序接口 +*/ +type AlibabaAlihealthPregnancyTaginfoAddrankAPIRequest struct { + model.Params + // 用户id + _userId int64 + // 标签编码,例如备孕标签为5122 + _tagCode string +} + +// 初始化AlibabaAlihealthPregnancyTaginfoAddrankAPIRequest对象 +func NewAlibabaAlihealthPregnancyTaginfoAddrankRequest() *AlibabaAlihealthPregnancyTaginfoAddrankAPIRequest{ + return &AlibabaAlihealthPregnancyTaginfoAddrankAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthPregnancyTaginfoAddrankAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.pregnancy.taginfo.addrank" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthPregnancyTaginfoAddrankAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户id +func (r *AlibabaAlihealthPregnancyTaginfoAddrankAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaAlihealthPregnancyTaginfoAddrankAPIRequest) GetUserId() int64 { + return r._userId +} +// TagCode Setter +// 标签编码,例如备孕标签为5122 +func (r *AlibabaAlihealthPregnancyTaginfoAddrankAPIRequest) SetTagCode(_tagCode string) error { + r._tagCode = _tagCode + r.Set("tag_code", _tagCode) + return nil +} + +// TagCode Getter +func (r AlibabaAlihealthPregnancyTaginfoAddrankAPIRequest) GetTagCode() string { + return r._tagCode +} diff --git a/model/alihealthcrm/AlibabaAlihealthPregnancyTaginfoAddrankAPIResponse.go b/model/alihealthcrm/AlibabaAlihealthPregnancyTaginfoAddrankAPIResponse.go new file mode 100644 index 0000000000..f87ff8f3b6 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthPregnancyTaginfoAddrankAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +点击标签后排序接口 API返回值 +alibaba.alihealth.pregnancy.taginfo.addrank + +备孕管理--点击标签后排序接口 +*/ +type AlibabaAlihealthPregnancyTaginfoAddrankAPIResponse struct { + model.CommonResponse + AlibabaAlihealthPregnancyTaginfoAddrankAPIResponseModel +} + +// 点击标签后排序接口 成功返回结果 +type AlibabaAlihealthPregnancyTaginfoAddrankAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_pregnancy_taginfo_addrank_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果集 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaAlihealthPregnancyTaginfoAddrankResponse.go b/model/alihealthcrm/AlibabaAlihealthPregnancyTaginfoAddrankResponse.go deleted file mode 100644 index b2f67e7571..0000000000 --- a/model/alihealthcrm/AlibabaAlihealthPregnancyTaginfoAddrankResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -点击标签后排序接口 API返回值 -alibaba.alihealth.pregnancy.taginfo.addrank - -备孕管理--点击标签后排序接口 -*/ -type AlibabaAlihealthPregnancyTaginfoAddrankAPIResponse struct { - model.CommonResponse - AlibabaAlihealthPregnancyTaginfoAddrankResponse -} - -// 点击标签后排序接口 成功返回结果 -type AlibabaAlihealthPregnancyTaginfoAddrankResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_pregnancy_taginfo_addrank_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果集 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaAlihealthUicSwipefaceSyncdataAPIRequest.go b/model/alihealthcrm/AlibabaAlihealthUicSwipefaceSyncdataAPIRequest.go new file mode 100644 index 0000000000..d7d6d55cb5 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthUicSwipefaceSyncdataAPIRequest.go @@ -0,0 +1,122 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +刷脸测睡眠数据同步 API请求 +alibaba.alihealth.uic.swipeface.syncdata + +刷脸测睡眠数据同步,三方数据回传 +*/ +type AlibabaAlihealthUicSwipefaceSyncdataAPIRequest struct { + model.Params + // 用户ID + _tpUserId int64 + // 缺觉小时数 + _lackSleepHours int64 + // 黑圆圈级别 + _blackEyeLevel int64 + // 眼袋级别 + _eyeBagSwollenLevel int64 + // 鱼尾纹数 + _fishTail int64 + // 嘴唇颜色 + _lipColor string +} + +// 初始化AlibabaAlihealthUicSwipefaceSyncdataAPIRequest对象 +func NewAlibabaAlihealthUicSwipefaceSyncdataRequest() *AlibabaAlihealthUicSwipefaceSyncdataAPIRequest{ + return &AlibabaAlihealthUicSwipefaceSyncdataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthUicSwipefaceSyncdataAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.uic.swipeface.syncdata" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthUicSwipefaceSyncdataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TpUserId Setter +// 用户ID +func (r *AlibabaAlihealthUicSwipefaceSyncdataAPIRequest) SetTpUserId(_tpUserId int64) error { + r._tpUserId = _tpUserId + r.Set("tp_user_id", _tpUserId) + return nil +} + +// TpUserId Getter +func (r AlibabaAlihealthUicSwipefaceSyncdataAPIRequest) GetTpUserId() int64 { + return r._tpUserId +} +// LackSleepHours Setter +// 缺觉小时数 +func (r *AlibabaAlihealthUicSwipefaceSyncdataAPIRequest) SetLackSleepHours(_lackSleepHours int64) error { + r._lackSleepHours = _lackSleepHours + r.Set("lack_sleep_hours", _lackSleepHours) + return nil +} + +// LackSleepHours Getter +func (r AlibabaAlihealthUicSwipefaceSyncdataAPIRequest) GetLackSleepHours() int64 { + return r._lackSleepHours +} +// BlackEyeLevel Setter +// 黑圆圈级别 +func (r *AlibabaAlihealthUicSwipefaceSyncdataAPIRequest) SetBlackEyeLevel(_blackEyeLevel int64) error { + r._blackEyeLevel = _blackEyeLevel + r.Set("black_eye_level", _blackEyeLevel) + return nil +} + +// BlackEyeLevel Getter +func (r AlibabaAlihealthUicSwipefaceSyncdataAPIRequest) GetBlackEyeLevel() int64 { + return r._blackEyeLevel +} +// EyeBagSwollenLevel Setter +// 眼袋级别 +func (r *AlibabaAlihealthUicSwipefaceSyncdataAPIRequest) SetEyeBagSwollenLevel(_eyeBagSwollenLevel int64) error { + r._eyeBagSwollenLevel = _eyeBagSwollenLevel + r.Set("eye_bag_swollen_level", _eyeBagSwollenLevel) + return nil +} + +// EyeBagSwollenLevel Getter +func (r AlibabaAlihealthUicSwipefaceSyncdataAPIRequest) GetEyeBagSwollenLevel() int64 { + return r._eyeBagSwollenLevel +} +// FishTail Setter +// 鱼尾纹数 +func (r *AlibabaAlihealthUicSwipefaceSyncdataAPIRequest) SetFishTail(_fishTail int64) error { + r._fishTail = _fishTail + r.Set("fish_tail", _fishTail) + return nil +} + +// FishTail Getter +func (r AlibabaAlihealthUicSwipefaceSyncdataAPIRequest) GetFishTail() int64 { + return r._fishTail +} +// LipColor Setter +// 嘴唇颜色 +func (r *AlibabaAlihealthUicSwipefaceSyncdataAPIRequest) SetLipColor(_lipColor string) error { + r._lipColor = _lipColor + r.Set("lip_color", _lipColor) + return nil +} + +// LipColor Getter +func (r AlibabaAlihealthUicSwipefaceSyncdataAPIRequest) GetLipColor() string { + return r._lipColor +} diff --git a/model/alihealthcrm/AlibabaAlihealthUicSwipefaceSyncdataAPIResponse.go b/model/alihealthcrm/AlibabaAlihealthUicSwipefaceSyncdataAPIResponse.go new file mode 100644 index 0000000000..63898d9cfe --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthUicSwipefaceSyncdataAPIResponse.go @@ -0,0 +1,31 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +刷脸测睡眠数据同步 API返回值 +alibaba.alihealth.uic.swipeface.syncdata + +刷脸测睡眠数据同步,三方数据回传 +*/ +type AlibabaAlihealthUicSwipefaceSyncdataAPIResponse struct { + model.CommonResponse + AlibabaAlihealthUicSwipefaceSyncdataAPIResponseModel +} + +// 刷脸测睡眠数据同步 成功返回结果 +type AlibabaAlihealthUicSwipefaceSyncdataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_uic_swipeface_syncdata_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true调用成功,false失败 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaAlihealthUicSwipefaceSyncdataResponse.go b/model/alihealthcrm/AlibabaAlihealthUicSwipefaceSyncdataResponse.go deleted file mode 100644 index 662e8c9638..0000000000 --- a/model/alihealthcrm/AlibabaAlihealthUicSwipefaceSyncdataResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -刷脸测睡眠数据同步 API返回值 -alibaba.alihealth.uic.swipeface.syncdata - -刷脸测睡眠数据同步,三方数据回传 -*/ -type AlibabaAlihealthUicSwipefaceSyncdataAPIResponse struct { - model.CommonResponse - AlibabaAlihealthUicSwipefaceSyncdataResponse -} - -// 刷脸测睡眠数据同步 成功返回结果 -type AlibabaAlihealthUicSwipefaceSyncdataResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_uic_swipeface_syncdata_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true调用成功,false失败 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaAlihealthUicUserinfoHealthidGetAPIRequest.go b/model/alihealthcrm/AlibabaAlihealthUicUserinfoHealthidGetAPIRequest.go new file mode 100644 index 0000000000..14544f7da5 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthUicUserinfoHealthidGetAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取健康id API请求 +alibaba.alihealth.uic.userinfo.healthid.get + +根据支付宝用户ID获取用户健康ID +*/ +type AlibabaAlihealthUicUserinfoHealthidGetAPIRequest struct { + model.Params + // 支付宝用户ID + _alipayUserId string +} + +// 初始化AlibabaAlihealthUicUserinfoHealthidGetAPIRequest对象 +func NewAlibabaAlihealthUicUserinfoHealthidGetRequest() *AlibabaAlihealthUicUserinfoHealthidGetAPIRequest{ + return &AlibabaAlihealthUicUserinfoHealthidGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthUicUserinfoHealthidGetAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.uic.userinfo.healthid.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthUicUserinfoHealthidGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlipayUserId Setter +// 支付宝用户ID +func (r *AlibabaAlihealthUicUserinfoHealthidGetAPIRequest) SetAlipayUserId(_alipayUserId string) error { + r._alipayUserId = _alipayUserId + r.Set("alipay_user_id", _alipayUserId) + return nil +} + +// AlipayUserId Getter +func (r AlibabaAlihealthUicUserinfoHealthidGetAPIRequest) GetAlipayUserId() string { + return r._alipayUserId +} diff --git a/model/alihealthcrm/AlibabaAlihealthUicUserinfoHealthidGetAPIResponse.go b/model/alihealthcrm/AlibabaAlihealthUicUserinfoHealthidGetAPIResponse.go new file mode 100644 index 0000000000..45aac36302 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthUicUserinfoHealthidGetAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取健康id API返回值 +alibaba.alihealth.uic.userinfo.healthid.get + +根据支付宝用户ID获取用户健康ID +*/ +type AlibabaAlihealthUicUserinfoHealthidGetAPIResponse struct { + model.CommonResponse + AlibabaAlihealthUicUserinfoHealthidGetAPIResponseModel +} + +// 获取健康id 成功返回结果 +type AlibabaAlihealthUicUserinfoHealthidGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_uic_userinfo_healthid_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaAlihealthUicUserinfoHealthidGetResponse.go b/model/alihealthcrm/AlibabaAlihealthUicUserinfoHealthidGetResponse.go deleted file mode 100644 index b06ad647e9..0000000000 --- a/model/alihealthcrm/AlibabaAlihealthUicUserinfoHealthidGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取健康id API返回值 -alibaba.alihealth.uic.userinfo.healthid.get - -根据支付宝用户ID获取用户健康ID -*/ -type AlibabaAlihealthUicUserinfoHealthidGetAPIResponse struct { - model.CommonResponse - AlibabaAlihealthUicUserinfoHealthidGetResponse -} - -// 获取健康id 成功返回结果 -type AlibabaAlihealthUicUserinfoHealthidGetResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_uic_userinfo_healthid_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaAlihealthUserBaseinfoGetAPIRequest.go b/model/alihealthcrm/AlibabaAlihealthUserBaseinfoGetAPIRequest.go new file mode 100644 index 0000000000..d73f293d65 --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthUserBaseinfoGetAPIRequest.go @@ -0,0 +1,66 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户基础信息 API请求 +alibaba.alihealth.user.baseinfo.get + +获取用户基础信息 +*/ +type AlibabaAlihealthUserBaseinfoGetAPIRequest struct { + model.Params + // 用户id + _userId int64 + // 三方服务商 + _appName string +} + +// 初始化AlibabaAlihealthUserBaseinfoGetAPIRequest对象 +func NewAlibabaAlihealthUserBaseinfoGetRequest() *AlibabaAlihealthUserBaseinfoGetAPIRequest{ + return &AlibabaAlihealthUserBaseinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthUserBaseinfoGetAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.user.baseinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthUserBaseinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户id +func (r *AlibabaAlihealthUserBaseinfoGetAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaAlihealthUserBaseinfoGetAPIRequest) GetUserId() int64 { + return r._userId +} +// AppName Setter +// 三方服务商 +func (r *AlibabaAlihealthUserBaseinfoGetAPIRequest) SetAppName(_appName string) error { + r._appName = _appName + r.Set("app_name", _appName) + return nil +} + +// AppName Getter +func (r AlibabaAlihealthUserBaseinfoGetAPIRequest) GetAppName() string { + return r._appName +} diff --git a/model/alihealthcrm/AlibabaAlihealthUserBaseinfoGetAPIResponse.go b/model/alihealthcrm/AlibabaAlihealthUserBaseinfoGetAPIResponse.go new file mode 100644 index 0000000000..201ad2874d --- /dev/null +++ b/model/alihealthcrm/AlibabaAlihealthUserBaseinfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户基础信息 API返回值 +alibaba.alihealth.user.baseinfo.get + +获取用户基础信息 +*/ +type AlibabaAlihealthUserBaseinfoGetAPIResponse struct { + model.CommonResponse + AlibabaAlihealthUserBaseinfoGetAPIResponseModel +} + +// 获取用户基础信息 成功返回结果 +type AlibabaAlihealthUserBaseinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_user_baseinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaAlihealthUserBaseinfoGetResponse.go b/model/alihealthcrm/AlibabaAlihealthUserBaseinfoGetResponse.go deleted file mode 100644 index 5154036d68..0000000000 --- a/model/alihealthcrm/AlibabaAlihealthUserBaseinfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户基础信息 API返回值 -alibaba.alihealth.user.baseinfo.get - -获取用户基础信息 -*/ -type AlibabaAlihealthUserBaseinfoGetAPIResponse struct { - model.CommonResponse - AlibabaAlihealthUserBaseinfoGetResponse -} - -// 获取用户基础信息 成功返回结果 -type AlibabaAlihealthUserBaseinfoGetResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_user_baseinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaFmhealthButlerEnergySyncAPIRequest.go b/model/alihealthcrm/AlibabaFmhealthButlerEnergySyncAPIRequest.go new file mode 100644 index 0000000000..c230ea7b4c --- /dev/null +++ b/model/alihealthcrm/AlibabaFmhealthButlerEnergySyncAPIRequest.go @@ -0,0 +1,108 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同步用户消耗能量 API请求 +alibaba.fmhealth.butler.energy.sync + +同步用户消耗能量,用户消耗s点或卡路里后,同步给健康平台 +*/ +type AlibabaFmhealthButlerEnergySyncAPIRequest struct { + model.Params + // 阿里用户id + _userId int64 + // 每日已消耗能量 + _value *BigDecimal + // “S”- s点 “CAL”- 卡路里 + _energyType string + // 每日可消耗能量 + _target *BigDecimal + // 每日运动消耗能量值 + _sport *BigDecimal +} + +// 初始化AlibabaFmhealthButlerEnergySyncAPIRequest对象 +func NewAlibabaFmhealthButlerEnergySyncRequest() *AlibabaFmhealthButlerEnergySyncAPIRequest{ + return &AlibabaFmhealthButlerEnergySyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFmhealthButlerEnergySyncAPIRequest) GetApiMethodName() string { + return "alibaba.fmhealth.butler.energy.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFmhealthButlerEnergySyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 阿里用户id +func (r *AlibabaFmhealthButlerEnergySyncAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaFmhealthButlerEnergySyncAPIRequest) GetUserId() int64 { + return r._userId +} +// Value Setter +// 每日已消耗能量 +func (r *AlibabaFmhealthButlerEnergySyncAPIRequest) SetValue(_value *BigDecimal) error { + r._value = _value + r.Set("value", _value) + return nil +} + +// Value Getter +func (r AlibabaFmhealthButlerEnergySyncAPIRequest) GetValue() *BigDecimal { + return r._value +} +// EnergyType Setter +// “S”- s点 “CAL”- 卡路里 +func (r *AlibabaFmhealthButlerEnergySyncAPIRequest) SetEnergyType(_energyType string) error { + r._energyType = _energyType + r.Set("energy_type", _energyType) + return nil +} + +// EnergyType Getter +func (r AlibabaFmhealthButlerEnergySyncAPIRequest) GetEnergyType() string { + return r._energyType +} +// Target Setter +// 每日可消耗能量 +func (r *AlibabaFmhealthButlerEnergySyncAPIRequest) SetTarget(_target *BigDecimal) error { + r._target = _target + r.Set("target", _target) + return nil +} + +// Target Getter +func (r AlibabaFmhealthButlerEnergySyncAPIRequest) GetTarget() *BigDecimal { + return r._target +} +// Sport Setter +// 每日运动消耗能量值 +func (r *AlibabaFmhealthButlerEnergySyncAPIRequest) SetSport(_sport *BigDecimal) error { + r._sport = _sport + r.Set("sport", _sport) + return nil +} + +// Sport Getter +func (r AlibabaFmhealthButlerEnergySyncAPIRequest) GetSport() *BigDecimal { + return r._sport +} diff --git a/model/alihealthcrm/AlibabaFmhealthButlerEnergySyncAPIResponse.go b/model/alihealthcrm/AlibabaFmhealthButlerEnergySyncAPIResponse.go new file mode 100644 index 0000000000..5a2eeeed06 --- /dev/null +++ b/model/alihealthcrm/AlibabaFmhealthButlerEnergySyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同步用户消耗能量 API返回值 +alibaba.fmhealth.butler.energy.sync + +同步用户消耗能量,用户消耗s点或卡路里后,同步给健康平台 +*/ +type AlibabaFmhealthButlerEnergySyncAPIResponse struct { + model.CommonResponse + AlibabaFmhealthButlerEnergySyncAPIResponseModel +} + +// 同步用户消耗能量 成功返回结果 +type AlibabaFmhealthButlerEnergySyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fmhealth_butler_energy_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaFmhealthButlerEnergySyncResponse.go b/model/alihealthcrm/AlibabaFmhealthButlerEnergySyncResponse.go deleted file mode 100644 index 9ef0109ba7..0000000000 --- a/model/alihealthcrm/AlibabaFmhealthButlerEnergySyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同步用户消耗能量 API返回值 -alibaba.fmhealth.butler.energy.sync - -同步用户消耗能量,用户消耗s点或卡路里后,同步给健康平台 -*/ -type AlibabaFmhealthButlerEnergySyncAPIResponse struct { - model.CommonResponse - AlibabaFmhealthButlerEnergySyncResponse -} - -// 同步用户消耗能量 成功返回结果 -type AlibabaFmhealthButlerEnergySyncResponse struct { - XMLName xml.Name `xml:"alibaba_fmhealth_butler_energy_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthcrm/AlibabaFmhealthWeightLossplanSynclossplanAPIRequest.go b/model/alihealthcrm/AlibabaFmhealthWeightLossplanSynclossplanAPIRequest.go new file mode 100644 index 0000000000..09dec4fd76 --- /dev/null +++ b/model/alihealthcrm/AlibabaFmhealthWeightLossplanSynclossplanAPIRequest.go @@ -0,0 +1,220 @@ +package alihealthcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +减重计划--同步减重计划 API请求 +alibaba.fmhealth.weight.lossplan.synclossplan + +减重计划--三方同步用户初始化减重计划给我们 +*/ +type AlibabaFmhealthWeightLossplanSynclossplanAPIRequest struct { + model.Params + // 用户id + _tpUserId int64 + // 性别0女 1男 + _gender int64 + // 生日 + _birthday string + // 身高170 即一米七 + _height int64 + // 当前体重(今天的体重),单位kg + _weight string + // 0创建减肥计划调用;1修改调用; + _type int64 + // 体年龄 + _bodyAge int64 + // 完成时间 + _finishDate string + // 每周减重 + _lossPerWeek string + // 目标体重 + _weightGoal string + // 减重类型0保持 1减肥 + _lossLevel int64 + // 每日可以摄入的标准总量 + _totalCalorie int64 + // 减重计划开始时间 + _beginDate string +} + +// 初始化AlibabaFmhealthWeightLossplanSynclossplanAPIRequest对象 +func NewAlibabaFmhealthWeightLossplanSynclossplanRequest() *AlibabaFmhealthWeightLossplanSynclossplanAPIRequest{ + return &AlibabaFmhealthWeightLossplanSynclossplanAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) GetApiMethodName() string { + return "alibaba.fmhealth.weight.lossplan.synclossplan" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TpUserId Setter +// 用户id +func (r *AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) SetTpUserId(_tpUserId int64) error { + r._tpUserId = _tpUserId + r.Set("tp_user_id", _tpUserId) + return nil +} + +// TpUserId Getter +func (r AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) GetTpUserId() int64 { + return r._tpUserId +} +// Gender Setter +// 性别0女 1男 +func (r *AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) SetGender(_gender int64) error { + r._gender = _gender + r.Set("gender", _gender) + return nil +} + +// Gender Getter +func (r AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) GetGender() int64 { + return r._gender +} +// Birthday Setter +// 生日 +func (r *AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) SetBirthday(_birthday string) error { + r._birthday = _birthday + r.Set("birthday", _birthday) + return nil +} + +// Birthday Getter +func (r AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) GetBirthday() string { + return r._birthday +} +// Height Setter +// 身高170 即一米七 +func (r *AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) SetHeight(_height int64) error { + r._height = _height + r.Set("height", _height) + return nil +} + +// Height Getter +func (r AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) GetHeight() int64 { + return r._height +} +// Weight Setter +// 当前体重(今天的体重),单位kg +func (r *AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) SetWeight(_weight string) error { + r._weight = _weight + r.Set("weight", _weight) + return nil +} + +// Weight Getter +func (r AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) GetWeight() string { + return r._weight +} +// Type Setter +// 0创建减肥计划调用;1修改调用; +func (r *AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) GetType() int64 { + return r._type +} +// BodyAge Setter +// 体年龄 +func (r *AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) SetBodyAge(_bodyAge int64) error { + r._bodyAge = _bodyAge + r.Set("body_age", _bodyAge) + return nil +} + +// BodyAge Getter +func (r AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) GetBodyAge() int64 { + return r._bodyAge +} +// FinishDate Setter +// 完成时间 +func (r *AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) SetFinishDate(_finishDate string) error { + r._finishDate = _finishDate + r.Set("finish_date", _finishDate) + return nil +} + +// FinishDate Getter +func (r AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) GetFinishDate() string { + return r._finishDate +} +// LossPerWeek Setter +// 每周减重 +func (r *AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) SetLossPerWeek(_lossPerWeek string) error { + r._lossPerWeek = _lossPerWeek + r.Set("loss_per_week", _lossPerWeek) + return nil +} + +// LossPerWeek Getter +func (r AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) GetLossPerWeek() string { + return r._lossPerWeek +} +// WeightGoal Setter +// 目标体重 +func (r *AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) SetWeightGoal(_weightGoal string) error { + r._weightGoal = _weightGoal + r.Set("weight_goal", _weightGoal) + return nil +} + +// WeightGoal Getter +func (r AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) GetWeightGoal() string { + return r._weightGoal +} +// LossLevel Setter +// 减重类型0保持 1减肥 +func (r *AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) SetLossLevel(_lossLevel int64) error { + r._lossLevel = _lossLevel + r.Set("loss_level", _lossLevel) + return nil +} + +// LossLevel Getter +func (r AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) GetLossLevel() int64 { + return r._lossLevel +} +// TotalCalorie Setter +// 每日可以摄入的标准总量 +func (r *AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) SetTotalCalorie(_totalCalorie int64) error { + r._totalCalorie = _totalCalorie + r.Set("total_calorie", _totalCalorie) + return nil +} + +// TotalCalorie Getter +func (r AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) GetTotalCalorie() int64 { + return r._totalCalorie +} +// BeginDate Setter +// 减重计划开始时间 +func (r *AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaFmhealthWeightLossplanSynclossplanAPIRequest) GetBeginDate() string { + return r._beginDate +} diff --git a/model/alihealthcrm/AlibabaFmhealthWeightLossplanSynclossplanAPIResponse.go b/model/alihealthcrm/AlibabaFmhealthWeightLossplanSynclossplanAPIResponse.go new file mode 100644 index 0000000000..8fdfda87fe --- /dev/null +++ b/model/alihealthcrm/AlibabaFmhealthWeightLossplanSynclossplanAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +减重计划--同步减重计划 API返回值 +alibaba.fmhealth.weight.lossplan.synclossplan + +减重计划--三方同步用户初始化减重计划给我们 +*/ +type AlibabaFmhealthWeightLossplanSynclossplanAPIResponse struct { + model.CommonResponse + AlibabaFmhealthWeightLossplanSynclossplanAPIResponseModel +} + +// 减重计划--同步减重计划 成功返回结果 +type AlibabaFmhealthWeightLossplanSynclossplanAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fmhealth_weight_lossplan_synclossplan_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthcrm/AlibabaFmhealthWeightLossplanSynclossplanResponse.go b/model/alihealthcrm/AlibabaFmhealthWeightLossplanSynclossplanResponse.go deleted file mode 100644 index 9c87e5a9ca..0000000000 --- a/model/alihealthcrm/AlibabaFmhealthWeightLossplanSynclossplanResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -减重计划--同步减重计划 API返回值 -alibaba.fmhealth.weight.lossplan.synclossplan - -减重计划--三方同步用户初始化减重计划给我们 -*/ -type AlibabaFmhealthWeightLossplanSynclossplanAPIResponse struct { - model.CommonResponse - AlibabaFmhealthWeightLossplanSynclossplanResponse -} - -// 减重计划--同步减重计划 成功返回结果 -type AlibabaFmhealthWeightLossplanSynclossplanResponse struct { - XMLName xml.Name `xml:"alibaba_fmhealth_weight_lossplan_synclossplan_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthlab/AlibabaAlihealthLabItemStoreRelationSyncAPIRequest.go b/model/alihealthlab/AlibabaAlihealthLabItemStoreRelationSyncAPIRequest.go new file mode 100644 index 0000000000..f3cc039594 --- /dev/null +++ b/model/alihealthlab/AlibabaAlihealthLabItemStoreRelationSyncAPIRequest.go @@ -0,0 +1,80 @@ +package alihealthlab + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +检验检测业务,isv项目门店关系同步 API请求 +alibaba.alihealth.lab.item.store.relation.sync + +阿里健康检验检测业务,isv检验检测项目门店关系同步到健康,支持检验检测项目门店关系的增加和删除 +*/ +type AlibabaAlihealthLabItemStoreRelationSyncAPIRequest struct { + model.Params + // EFFECTIVE 有效,INVALID 无效 + _isvRelationStatus string + // isv门店编码 + _isvStoreCodes []string + // 检验检测项目isv侧编码 + _isvItemCode string +} + +// 初始化AlibabaAlihealthLabItemStoreRelationSyncAPIRequest对象 +func NewAlibabaAlihealthLabItemStoreRelationSyncRequest() *AlibabaAlihealthLabItemStoreRelationSyncAPIRequest{ + return &AlibabaAlihealthLabItemStoreRelationSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthLabItemStoreRelationSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.lab.item.store.relation.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthLabItemStoreRelationSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IsvRelationStatus Setter +// EFFECTIVE 有效,INVALID 无效 +func (r *AlibabaAlihealthLabItemStoreRelationSyncAPIRequest) SetIsvRelationStatus(_isvRelationStatus string) error { + r._isvRelationStatus = _isvRelationStatus + r.Set("isv_relation_status", _isvRelationStatus) + return nil +} + +// IsvRelationStatus Getter +func (r AlibabaAlihealthLabItemStoreRelationSyncAPIRequest) GetIsvRelationStatus() string { + return r._isvRelationStatus +} +// IsvStoreCodes Setter +// isv门店编码 +func (r *AlibabaAlihealthLabItemStoreRelationSyncAPIRequest) SetIsvStoreCodes(_isvStoreCodes []string) error { + r._isvStoreCodes = _isvStoreCodes + r.Set("isv_store_codes", _isvStoreCodes) + return nil +} + +// IsvStoreCodes Getter +func (r AlibabaAlihealthLabItemStoreRelationSyncAPIRequest) GetIsvStoreCodes() []string { + return r._isvStoreCodes +} +// IsvItemCode Setter +// 检验检测项目isv侧编码 +func (r *AlibabaAlihealthLabItemStoreRelationSyncAPIRequest) SetIsvItemCode(_isvItemCode string) error { + r._isvItemCode = _isvItemCode + r.Set("isv_item_code", _isvItemCode) + return nil +} + +// IsvItemCode Getter +func (r AlibabaAlihealthLabItemStoreRelationSyncAPIRequest) GetIsvItemCode() string { + return r._isvItemCode +} diff --git a/model/alihealthlab/AlibabaAlihealthLabItemStoreRelationSyncAPIResponse.go b/model/alihealthlab/AlibabaAlihealthLabItemStoreRelationSyncAPIResponse.go new file mode 100644 index 0000000000..63bd724e7f --- /dev/null +++ b/model/alihealthlab/AlibabaAlihealthLabItemStoreRelationSyncAPIResponse.go @@ -0,0 +1,31 @@ +package alihealthlab + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +检验检测业务,isv项目门店关系同步 API返回值 +alibaba.alihealth.lab.item.store.relation.sync + +阿里健康检验检测业务,isv检验检测项目门店关系同步到健康,支持检验检测项目门店关系的增加和删除 +*/ +type AlibabaAlihealthLabItemStoreRelationSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthLabItemStoreRelationSyncAPIResponseModel +} + +// 检验检测业务,isv项目门店关系同步 成功返回结果 +type AlibabaAlihealthLabItemStoreRelationSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_lab_item_store_relation_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // SUCCESS - 成功,FAIL - 失败,UNKNOWN - 未知或处理中 + ResultStatus string `json:"result_status,omitempty" xml:"result_status,omitempty"` + // 可读的错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/alihealthlab/AlibabaAlihealthLabItemStoreRelationSyncResponse.go b/model/alihealthlab/AlibabaAlihealthLabItemStoreRelationSyncResponse.go deleted file mode 100644 index f6186b444b..0000000000 --- a/model/alihealthlab/AlibabaAlihealthLabItemStoreRelationSyncResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alihealthlab - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -检验检测业务,isv项目门店关系同步 API返回值 -alibaba.alihealth.lab.item.store.relation.sync - -阿里健康检验检测业务,isv检验检测项目门店关系同步到健康,支持检验检测项目门店关系的增加和删除 -*/ -type AlibabaAlihealthLabItemStoreRelationSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthLabItemStoreRelationSyncResponse -} - -// 检验检测业务,isv项目门店关系同步 成功返回结果 -type AlibabaAlihealthLabItemStoreRelationSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_lab_item_store_relation_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // SUCCESS - 成功,FAIL - 失败,UNKNOWN - 未知或处理中 - ResultStatus string `json:"result_status,omitempty" xml:"result_status,omitempty"` - // 可读的错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/alihealthlab/AlibabaAlihealthLabItemSyncAPIRequest.go b/model/alihealthlab/AlibabaAlihealthLabItemSyncAPIRequest.go new file mode 100644 index 0000000000..bb08ec117a --- /dev/null +++ b/model/alihealthlab/AlibabaAlihealthLabItemSyncAPIRequest.go @@ -0,0 +1,192 @@ +package alihealthlab + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康检验检测商品发布 API请求 +alibaba.alihealth.lab.item.sync + +iSV发布检验检测商品基本信息给健康,内部关联一个淘宝商品或SKU +*/ +type AlibabaAlihealthLabItemSyncAPIRequest struct { + model.Params + // 检验检测项目isv侧编码 + _isvItemCode string + // 检验检测项目名称 + _name string + // 采购价,单位分 + _costPrice int64 + // 性别限制 MALE FEMALE + _genderRestriction string + // 婚否状态限制 MARRIED UNMARRIED + _maritalStatusRestriction string + // 额外的属性 + _extraAttributes string + // 报告产出预计需要的时长,单位毫秒 + _reportGenerationTimeDuration int64 + // 打包的子项目 + _subItems []LabSubItemBrief + // EFFECTIVE 项目有效, INVALID 项目无效 + _isvItemStatus string + // 项目关联的门店 + _relatedIsvStoreCodes []string + // 项目介绍 + _intro string +} + +// 初始化AlibabaAlihealthLabItemSyncAPIRequest对象 +func NewAlibabaAlihealthLabItemSyncRequest() *AlibabaAlihealthLabItemSyncAPIRequest{ + return &AlibabaAlihealthLabItemSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthLabItemSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.lab.item.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthLabItemSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IsvItemCode Setter +// 检验检测项目isv侧编码 +func (r *AlibabaAlihealthLabItemSyncAPIRequest) SetIsvItemCode(_isvItemCode string) error { + r._isvItemCode = _isvItemCode + r.Set("isv_item_code", _isvItemCode) + return nil +} + +// IsvItemCode Getter +func (r AlibabaAlihealthLabItemSyncAPIRequest) GetIsvItemCode() string { + return r._isvItemCode +} +// Name Setter +// 检验检测项目名称 +func (r *AlibabaAlihealthLabItemSyncAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r AlibabaAlihealthLabItemSyncAPIRequest) GetName() string { + return r._name +} +// CostPrice Setter +// 采购价,单位分 +func (r *AlibabaAlihealthLabItemSyncAPIRequest) SetCostPrice(_costPrice int64) error { + r._costPrice = _costPrice + r.Set("cost_price", _costPrice) + return nil +} + +// CostPrice Getter +func (r AlibabaAlihealthLabItemSyncAPIRequest) GetCostPrice() int64 { + return r._costPrice +} +// GenderRestriction Setter +// 性别限制 MALE FEMALE +func (r *AlibabaAlihealthLabItemSyncAPIRequest) SetGenderRestriction(_genderRestriction string) error { + r._genderRestriction = _genderRestriction + r.Set("gender_restriction", _genderRestriction) + return nil +} + +// GenderRestriction Getter +func (r AlibabaAlihealthLabItemSyncAPIRequest) GetGenderRestriction() string { + return r._genderRestriction +} +// MaritalStatusRestriction Setter +// 婚否状态限制 MARRIED UNMARRIED +func (r *AlibabaAlihealthLabItemSyncAPIRequest) SetMaritalStatusRestriction(_maritalStatusRestriction string) error { + r._maritalStatusRestriction = _maritalStatusRestriction + r.Set("marital_status_restriction", _maritalStatusRestriction) + return nil +} + +// MaritalStatusRestriction Getter +func (r AlibabaAlihealthLabItemSyncAPIRequest) GetMaritalStatusRestriction() string { + return r._maritalStatusRestriction +} +// ExtraAttributes Setter +// 额外的属性 +func (r *AlibabaAlihealthLabItemSyncAPIRequest) SetExtraAttributes(_extraAttributes string) error { + r._extraAttributes = _extraAttributes + r.Set("extra_attributes", _extraAttributes) + return nil +} + +// ExtraAttributes Getter +func (r AlibabaAlihealthLabItemSyncAPIRequest) GetExtraAttributes() string { + return r._extraAttributes +} +// ReportGenerationTimeDuration Setter +// 报告产出预计需要的时长,单位毫秒 +func (r *AlibabaAlihealthLabItemSyncAPIRequest) SetReportGenerationTimeDuration(_reportGenerationTimeDuration int64) error { + r._reportGenerationTimeDuration = _reportGenerationTimeDuration + r.Set("report_generation_time_duration", _reportGenerationTimeDuration) + return nil +} + +// ReportGenerationTimeDuration Getter +func (r AlibabaAlihealthLabItemSyncAPIRequest) GetReportGenerationTimeDuration() int64 { + return r._reportGenerationTimeDuration +} +// SubItems Setter +// 打包的子项目 +func (r *AlibabaAlihealthLabItemSyncAPIRequest) SetSubItems(_subItems []LabSubItemBrief) error { + r._subItems = _subItems + r.Set("sub_items", _subItems) + return nil +} + +// SubItems Getter +func (r AlibabaAlihealthLabItemSyncAPIRequest) GetSubItems() []LabSubItemBrief { + return r._subItems +} +// IsvItemStatus Setter +// EFFECTIVE 项目有效, INVALID 项目无效 +func (r *AlibabaAlihealthLabItemSyncAPIRequest) SetIsvItemStatus(_isvItemStatus string) error { + r._isvItemStatus = _isvItemStatus + r.Set("isv_item_status", _isvItemStatus) + return nil +} + +// IsvItemStatus Getter +func (r AlibabaAlihealthLabItemSyncAPIRequest) GetIsvItemStatus() string { + return r._isvItemStatus +} +// RelatedIsvStoreCodes Setter +// 项目关联的门店 +func (r *AlibabaAlihealthLabItemSyncAPIRequest) SetRelatedIsvStoreCodes(_relatedIsvStoreCodes []string) error { + r._relatedIsvStoreCodes = _relatedIsvStoreCodes + r.Set("related_isv_store_codes", _relatedIsvStoreCodes) + return nil +} + +// RelatedIsvStoreCodes Getter +func (r AlibabaAlihealthLabItemSyncAPIRequest) GetRelatedIsvStoreCodes() []string { + return r._relatedIsvStoreCodes +} +// Intro Setter +// 项目介绍 +func (r *AlibabaAlihealthLabItemSyncAPIRequest) SetIntro(_intro string) error { + r._intro = _intro + r.Set("intro", _intro) + return nil +} + +// Intro Getter +func (r AlibabaAlihealthLabItemSyncAPIRequest) GetIntro() string { + return r._intro +} diff --git a/model/alihealthlab/AlibabaAlihealthLabItemSyncAPIResponse.go b/model/alihealthlab/AlibabaAlihealthLabItemSyncAPIResponse.go new file mode 100644 index 0000000000..d609e4fa49 --- /dev/null +++ b/model/alihealthlab/AlibabaAlihealthLabItemSyncAPIResponse.go @@ -0,0 +1,31 @@ +package alihealthlab + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康检验检测商品发布 API返回值 +alibaba.alihealth.lab.item.sync + +iSV发布检验检测商品基本信息给健康,内部关联一个淘宝商品或SKU +*/ +type AlibabaAlihealthLabItemSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthLabItemSyncAPIResponseModel +} + +// 阿里健康检验检测商品发布 成功返回结果 +type AlibabaAlihealthLabItemSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_lab_item_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // SUCCESS - 成功,FAIL - 失败,UNKNOWN - 未知或参数异常 + ResultStatus string `json:"result_status,omitempty" xml:"result_status,omitempty"` + // 可读的结果码(错误码) + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/alihealthlab/AlibabaAlihealthLabItemSyncResponse.go b/model/alihealthlab/AlibabaAlihealthLabItemSyncResponse.go deleted file mode 100644 index 9e0af23500..0000000000 --- a/model/alihealthlab/AlibabaAlihealthLabItemSyncResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alihealthlab - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里健康检验检测商品发布 API返回值 -alibaba.alihealth.lab.item.sync - -iSV发布检验检测商品基本信息给健康,内部关联一个淘宝商品或SKU -*/ -type AlibabaAlihealthLabItemSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthLabItemSyncResponse -} - -// 阿里健康检验检测商品发布 成功返回结果 -type AlibabaAlihealthLabItemSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_lab_item_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // SUCCESS - 成功,FAIL - 失败,UNKNOWN - 未知或参数异常 - ResultStatus string `json:"result_status,omitempty" xml:"result_status,omitempty"` - // 可读的结果码(错误码) - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/alihealthlab/AlibabaAlihealthLabItemTbitemskuRelationSyncAPIRequest.go b/model/alihealthlab/AlibabaAlihealthLabItemTbitemskuRelationSyncAPIRequest.go new file mode 100644 index 0000000000..4d6609519e --- /dev/null +++ b/model/alihealthlab/AlibabaAlihealthLabItemTbitemskuRelationSyncAPIRequest.go @@ -0,0 +1,94 @@ +package alihealthlab + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康检验检测业务,检验检测项目淘宝商品SKU关系同步 API请求 +alibaba.alihealth.lab.item.tbitemsku.relation.sync + +阿里健康检验检测业务,检验检测项目淘宝商品SKU关系同步 +*/ +type AlibabaAlihealthLabItemTbitemskuRelationSyncAPIRequest struct { + model.Params + // EFFECTIVE 有效,INVALID 无效 + _isvRelationStatus string + // 关联的淘宝商品SKU id,在商品没有sku的情况下传0 + _tbSkuId int64 + // 关联的淘宝商品 id + _tbItemId int64 + // 检验检测项目isv侧code + _isvItemCode string +} + +// 初始化AlibabaAlihealthLabItemTbitemskuRelationSyncAPIRequest对象 +func NewAlibabaAlihealthLabItemTbitemskuRelationSyncRequest() *AlibabaAlihealthLabItemTbitemskuRelationSyncAPIRequest{ + return &AlibabaAlihealthLabItemTbitemskuRelationSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthLabItemTbitemskuRelationSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.lab.item.tbitemsku.relation.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthLabItemTbitemskuRelationSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IsvRelationStatus Setter +// EFFECTIVE 有效,INVALID 无效 +func (r *AlibabaAlihealthLabItemTbitemskuRelationSyncAPIRequest) SetIsvRelationStatus(_isvRelationStatus string) error { + r._isvRelationStatus = _isvRelationStatus + r.Set("isv_relation_status", _isvRelationStatus) + return nil +} + +// IsvRelationStatus Getter +func (r AlibabaAlihealthLabItemTbitemskuRelationSyncAPIRequest) GetIsvRelationStatus() string { + return r._isvRelationStatus +} +// TbSkuId Setter +// 关联的淘宝商品SKU id,在商品没有sku的情况下传0 +func (r *AlibabaAlihealthLabItemTbitemskuRelationSyncAPIRequest) SetTbSkuId(_tbSkuId int64) error { + r._tbSkuId = _tbSkuId + r.Set("tb_sku_id", _tbSkuId) + return nil +} + +// TbSkuId Getter +func (r AlibabaAlihealthLabItemTbitemskuRelationSyncAPIRequest) GetTbSkuId() int64 { + return r._tbSkuId +} +// TbItemId Setter +// 关联的淘宝商品 id +func (r *AlibabaAlihealthLabItemTbitemskuRelationSyncAPIRequest) SetTbItemId(_tbItemId int64) error { + r._tbItemId = _tbItemId + r.Set("tb_item_id", _tbItemId) + return nil +} + +// TbItemId Getter +func (r AlibabaAlihealthLabItemTbitemskuRelationSyncAPIRequest) GetTbItemId() int64 { + return r._tbItemId +} +// IsvItemCode Setter +// 检验检测项目isv侧code +func (r *AlibabaAlihealthLabItemTbitemskuRelationSyncAPIRequest) SetIsvItemCode(_isvItemCode string) error { + r._isvItemCode = _isvItemCode + r.Set("isv_item_code", _isvItemCode) + return nil +} + +// IsvItemCode Getter +func (r AlibabaAlihealthLabItemTbitemskuRelationSyncAPIRequest) GetIsvItemCode() string { + return r._isvItemCode +} diff --git a/model/alihealthlab/AlibabaAlihealthLabItemTbitemskuRelationSyncAPIResponse.go b/model/alihealthlab/AlibabaAlihealthLabItemTbitemskuRelationSyncAPIResponse.go new file mode 100644 index 0000000000..3cbdf4398b --- /dev/null +++ b/model/alihealthlab/AlibabaAlihealthLabItemTbitemskuRelationSyncAPIResponse.go @@ -0,0 +1,31 @@ +package alihealthlab + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康检验检测业务,检验检测项目淘宝商品SKU关系同步 API返回值 +alibaba.alihealth.lab.item.tbitemsku.relation.sync + +阿里健康检验检测业务,检验检测项目淘宝商品SKU关系同步 +*/ +type AlibabaAlihealthLabItemTbitemskuRelationSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthLabItemTbitemskuRelationSyncAPIResponseModel +} + +// 阿里健康检验检测业务,检验检测项目淘宝商品SKU关系同步 成功返回结果 +type AlibabaAlihealthLabItemTbitemskuRelationSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_lab_item_tbitemsku_relation_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 可读的错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // SUCCESS - 成功,FAIL失败,UNKNOWN - 未知或处理中 + ResultStatus string `json:"result_status,omitempty" xml:"result_status,omitempty"` + // 错误描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/alihealthlab/AlibabaAlihealthLabItemTbitemskuRelationSyncResponse.go b/model/alihealthlab/AlibabaAlihealthLabItemTbitemskuRelationSyncResponse.go deleted file mode 100644 index 7b60c1dd4a..0000000000 --- a/model/alihealthlab/AlibabaAlihealthLabItemTbitemskuRelationSyncResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alihealthlab - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里健康检验检测业务,检验检测项目淘宝商品SKU关系同步 API返回值 -alibaba.alihealth.lab.item.tbitemsku.relation.sync - -阿里健康检验检测业务,检验检测项目淘宝商品SKU关系同步 -*/ -type AlibabaAlihealthLabItemTbitemskuRelationSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthLabItemTbitemskuRelationSyncResponse -} - -// 阿里健康检验检测业务,检验检测项目淘宝商品SKU关系同步 成功返回结果 -type AlibabaAlihealthLabItemTbitemskuRelationSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_lab_item_tbitemsku_relation_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 可读的错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // SUCCESS - 成功,FAIL失败,UNKNOWN - 未知或处理中 - ResultStatus string `json:"result_status,omitempty" xml:"result_status,omitempty"` - // 错误描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/alihealthlab/AlibabaAlihealthLabStoreSyncAPIRequest.go b/model/alihealthlab/AlibabaAlihealthLabStoreSyncAPIRequest.go new file mode 100644 index 0000000000..99e231351e --- /dev/null +++ b/model/alihealthlab/AlibabaAlihealthLabStoreSyncAPIRequest.go @@ -0,0 +1,290 @@ +package alihealthlab + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康检验检测业务,isv门店同步到健康 API请求 +alibaba.alihealth.lab.store.sync + +阿里健康检验检测业务,isv门店同步到健康。支持门店的上线、下线操作 +*/ +type AlibabaAlihealthLabStoreSyncAPIRequest struct { + model.Params + // EFFECTIVE 生效,INVALID 失效 + _isvStoreStatus string + // 预约须知 + _reserveNotice string + // 支持在线报告 + _supportOnlineReport bool + // 门店类型描述 + _storeTypeDesc string + // 企业社会征信号 + _socialCreditCode string + // 营业执照编号 + _licenseNo string + // 营业执照名称 + _licenseName string + // 门店交通路线 + _storeRoutesDesc string + // 营业时间描述 + _workTimeDesc string + // 门店电话号码 + _storePhone string + // 门店介绍 + _storeIntro string + // 经度 + _longitude *BigDecimal + // 纬度 + _latitude *BigDecimal + // 城市编码 + _cityCode int64 + // 门店地址 + _storeAddress string + // isv门店编码 + _isvStoreCode string + // 门店名称 + _storeName string + // 支持的淘宝商品类目ID,阿里医院场景 + _allowedTbItemCategoryIds []int64 +} + +// 初始化AlibabaAlihealthLabStoreSyncAPIRequest对象 +func NewAlibabaAlihealthLabStoreSyncRequest() *AlibabaAlihealthLabStoreSyncAPIRequest{ + return &AlibabaAlihealthLabStoreSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.lab.store.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IsvStoreStatus Setter +// EFFECTIVE 生效,INVALID 失效 +func (r *AlibabaAlihealthLabStoreSyncAPIRequest) SetIsvStoreStatus(_isvStoreStatus string) error { + r._isvStoreStatus = _isvStoreStatus + r.Set("isv_store_status", _isvStoreStatus) + return nil +} + +// IsvStoreStatus Getter +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetIsvStoreStatus() string { + return r._isvStoreStatus +} +// ReserveNotice Setter +// 预约须知 +func (r *AlibabaAlihealthLabStoreSyncAPIRequest) SetReserveNotice(_reserveNotice string) error { + r._reserveNotice = _reserveNotice + r.Set("reserve_notice", _reserveNotice) + return nil +} + +// ReserveNotice Getter +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetReserveNotice() string { + return r._reserveNotice +} +// SupportOnlineReport Setter +// 支持在线报告 +func (r *AlibabaAlihealthLabStoreSyncAPIRequest) SetSupportOnlineReport(_supportOnlineReport bool) error { + r._supportOnlineReport = _supportOnlineReport + r.Set("support_online_report", _supportOnlineReport) + return nil +} + +// SupportOnlineReport Getter +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetSupportOnlineReport() bool { + return r._supportOnlineReport +} +// StoreTypeDesc Setter +// 门店类型描述 +func (r *AlibabaAlihealthLabStoreSyncAPIRequest) SetStoreTypeDesc(_storeTypeDesc string) error { + r._storeTypeDesc = _storeTypeDesc + r.Set("store_type_desc", _storeTypeDesc) + return nil +} + +// StoreTypeDesc Getter +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetStoreTypeDesc() string { + return r._storeTypeDesc +} +// SocialCreditCode Setter +// 企业社会征信号 +func (r *AlibabaAlihealthLabStoreSyncAPIRequest) SetSocialCreditCode(_socialCreditCode string) error { + r._socialCreditCode = _socialCreditCode + r.Set("social_credit_code", _socialCreditCode) + return nil +} + +// SocialCreditCode Getter +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetSocialCreditCode() string { + return r._socialCreditCode +} +// LicenseNo Setter +// 营业执照编号 +func (r *AlibabaAlihealthLabStoreSyncAPIRequest) SetLicenseNo(_licenseNo string) error { + r._licenseNo = _licenseNo + r.Set("license_no", _licenseNo) + return nil +} + +// LicenseNo Getter +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetLicenseNo() string { + return r._licenseNo +} +// LicenseName Setter +// 营业执照名称 +func (r *AlibabaAlihealthLabStoreSyncAPIRequest) SetLicenseName(_licenseName string) error { + r._licenseName = _licenseName + r.Set("license_name", _licenseName) + return nil +} + +// LicenseName Getter +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetLicenseName() string { + return r._licenseName +} +// StoreRoutesDesc Setter +// 门店交通路线 +func (r *AlibabaAlihealthLabStoreSyncAPIRequest) SetStoreRoutesDesc(_storeRoutesDesc string) error { + r._storeRoutesDesc = _storeRoutesDesc + r.Set("store_routes_desc", _storeRoutesDesc) + return nil +} + +// StoreRoutesDesc Getter +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetStoreRoutesDesc() string { + return r._storeRoutesDesc +} +// WorkTimeDesc Setter +// 营业时间描述 +func (r *AlibabaAlihealthLabStoreSyncAPIRequest) SetWorkTimeDesc(_workTimeDesc string) error { + r._workTimeDesc = _workTimeDesc + r.Set("work_time_desc", _workTimeDesc) + return nil +} + +// WorkTimeDesc Getter +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetWorkTimeDesc() string { + return r._workTimeDesc +} +// StorePhone Setter +// 门店电话号码 +func (r *AlibabaAlihealthLabStoreSyncAPIRequest) SetStorePhone(_storePhone string) error { + r._storePhone = _storePhone + r.Set("store_phone", _storePhone) + return nil +} + +// StorePhone Getter +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetStorePhone() string { + return r._storePhone +} +// StoreIntro Setter +// 门店介绍 +func (r *AlibabaAlihealthLabStoreSyncAPIRequest) SetStoreIntro(_storeIntro string) error { + r._storeIntro = _storeIntro + r.Set("store_intro", _storeIntro) + return nil +} + +// StoreIntro Getter +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetStoreIntro() string { + return r._storeIntro +} +// Longitude Setter +// 经度 +func (r *AlibabaAlihealthLabStoreSyncAPIRequest) SetLongitude(_longitude *BigDecimal) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetLongitude() *BigDecimal { + return r._longitude +} +// Latitude Setter +// 纬度 +func (r *AlibabaAlihealthLabStoreSyncAPIRequest) SetLatitude(_latitude *BigDecimal) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetLatitude() *BigDecimal { + return r._latitude +} +// CityCode Setter +// 城市编码 +func (r *AlibabaAlihealthLabStoreSyncAPIRequest) SetCityCode(_cityCode int64) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetCityCode() int64 { + return r._cityCode +} +// StoreAddress Setter +// 门店地址 +func (r *AlibabaAlihealthLabStoreSyncAPIRequest) SetStoreAddress(_storeAddress string) error { + r._storeAddress = _storeAddress + r.Set("store_address", _storeAddress) + return nil +} + +// StoreAddress Getter +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetStoreAddress() string { + return r._storeAddress +} +// IsvStoreCode Setter +// isv门店编码 +func (r *AlibabaAlihealthLabStoreSyncAPIRequest) SetIsvStoreCode(_isvStoreCode string) error { + r._isvStoreCode = _isvStoreCode + r.Set("isv_store_code", _isvStoreCode) + return nil +} + +// IsvStoreCode Getter +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetIsvStoreCode() string { + return r._isvStoreCode +} +// StoreName Setter +// 门店名称 +func (r *AlibabaAlihealthLabStoreSyncAPIRequest) SetStoreName(_storeName string) error { + r._storeName = _storeName + r.Set("store_name", _storeName) + return nil +} + +// StoreName Getter +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetStoreName() string { + return r._storeName +} +// AllowedTbItemCategoryIds Setter +// 支持的淘宝商品类目ID,阿里医院场景 +func (r *AlibabaAlihealthLabStoreSyncAPIRequest) SetAllowedTbItemCategoryIds(_allowedTbItemCategoryIds []int64) error { + r._allowedTbItemCategoryIds = _allowedTbItemCategoryIds + r.Set("allowed_tb_item_category_ids", _allowedTbItemCategoryIds) + return nil +} + +// AllowedTbItemCategoryIds Getter +func (r AlibabaAlihealthLabStoreSyncAPIRequest) GetAllowedTbItemCategoryIds() []int64 { + return r._allowedTbItemCategoryIds +} diff --git a/model/alihealthlab/AlibabaAlihealthLabStoreSyncAPIResponse.go b/model/alihealthlab/AlibabaAlihealthLabStoreSyncAPIResponse.go new file mode 100644 index 0000000000..67f39bdee9 --- /dev/null +++ b/model/alihealthlab/AlibabaAlihealthLabStoreSyncAPIResponse.go @@ -0,0 +1,31 @@ +package alihealthlab + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康检验检测业务,isv门店同步到健康 API返回值 +alibaba.alihealth.lab.store.sync + +阿里健康检验检测业务,isv门店同步到健康。支持门店的上线、下线操作 +*/ +type AlibabaAlihealthLabStoreSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthLabStoreSyncAPIResponseModel +} + +// 阿里健康检验检测业务,isv门店同步到健康 成功返回结果 +type AlibabaAlihealthLabStoreSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_lab_store_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // SUCCESS - 成功,FAIL - 失败,UNKNOWN - 未知 + ResultStatus string `json:"result_status,omitempty" xml:"result_status,omitempty"` + // 可读的错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/alihealthlab/AlibabaAlihealthLabStoreSyncResponse.go b/model/alihealthlab/AlibabaAlihealthLabStoreSyncResponse.go deleted file mode 100644 index d2fcb62549..0000000000 --- a/model/alihealthlab/AlibabaAlihealthLabStoreSyncResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alihealthlab - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里健康检验检测业务,isv门店同步到健康 API返回值 -alibaba.alihealth.lab.store.sync - -阿里健康检验检测业务,isv门店同步到健康。支持门店的上线、下线操作 -*/ -type AlibabaAlihealthLabStoreSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthLabStoreSyncResponse -} - -// 阿里健康检验检测业务,isv门店同步到健康 成功返回结果 -type AlibabaAlihealthLabStoreSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_lab_store_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // SUCCESS - 成功,FAIL - 失败,UNKNOWN - 未知 - ResultStatus string `json:"result_status,omitempty" xml:"result_status,omitempty"` - // 可读的错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/alihealthlab/AlibabaAlihealthReservationOrderVerifyAPIRequest.go b/model/alihealthlab/AlibabaAlihealthReservationOrderVerifyAPIRequest.go new file mode 100644 index 0000000000..86421a2dd8 --- /dev/null +++ b/model/alihealthlab/AlibabaAlihealthReservationOrderVerifyAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthlab + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +预约单核销接口 API请求 +alibaba.alihealth.reservation.order.verify + +预约单核销 +*/ +type AlibabaAlihealthReservationOrderVerifyAPIRequest struct { + model.Params + // 请求参数 + _verify *VerifyOrderRequest +} + +// 初始化AlibabaAlihealthReservationOrderVerifyAPIRequest对象 +func NewAlibabaAlihealthReservationOrderVerifyRequest() *AlibabaAlihealthReservationOrderVerifyAPIRequest{ + return &AlibabaAlihealthReservationOrderVerifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthReservationOrderVerifyAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.reservation.order.verify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthReservationOrderVerifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Verify Setter +// 请求参数 +func (r *AlibabaAlihealthReservationOrderVerifyAPIRequest) SetVerify(_verify *VerifyOrderRequest) error { + r._verify = _verify + r.Set("verify", _verify) + return nil +} + +// Verify Getter +func (r AlibabaAlihealthReservationOrderVerifyAPIRequest) GetVerify() *VerifyOrderRequest { + return r._verify +} diff --git a/model/alihealthlab/AlibabaAlihealthReservationOrderVerifyAPIResponse.go b/model/alihealthlab/AlibabaAlihealthReservationOrderVerifyAPIResponse.go new file mode 100644 index 0000000000..52e5884595 --- /dev/null +++ b/model/alihealthlab/AlibabaAlihealthReservationOrderVerifyAPIResponse.go @@ -0,0 +1,31 @@ +package alihealthlab + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +预约单核销接口 API返回值 +alibaba.alihealth.reservation.order.verify + +预约单核销 +*/ +type AlibabaAlihealthReservationOrderVerifyAPIResponse struct { + model.CommonResponse + AlibabaAlihealthReservationOrderVerifyAPIResponseModel +} + +// 预约单核销接口 成功返回结果 +type AlibabaAlihealthReservationOrderVerifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_reservation_order_verify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // SUCCESS - 成功,FAIL - 失败,UNKNOWN - 未知或处理中 + ResultStatus string `json:"result_status,omitempty" xml:"result_status,omitempty"` + // 00000为成功 其它错误码 https://www.yuque.com/alibabahealth/mbhk06/gnvi8b#ICrXp + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/alihealthlab/AlibabaAlihealthReservationOrderVerifyResponse.go b/model/alihealthlab/AlibabaAlihealthReservationOrderVerifyResponse.go deleted file mode 100644 index 766613fee4..0000000000 --- a/model/alihealthlab/AlibabaAlihealthReservationOrderVerifyResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alihealthlab - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -预约单核销接口 API返回值 -alibaba.alihealth.reservation.order.verify - -预约单核销 -*/ -type AlibabaAlihealthReservationOrderVerifyAPIResponse struct { - model.CommonResponse - AlibabaAlihealthReservationOrderVerifyResponse -} - -// 预约单核销接口 成功返回结果 -type AlibabaAlihealthReservationOrderVerifyResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_reservation_order_verify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // SUCCESS - 成功,FAIL - 失败,UNKNOWN - 未知或处理中 - ResultStatus string `json:"result_status,omitempty" xml:"result_status,omitempty"` - // 00000为成功 其它错误码 https://www.yuque.com/alibabahealth/mbhk06/gnvi8b#ICrXp - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/alihealthmdeer/AlibabaAlihealthMdeerScienceDeletearticleAPIRequest.go b/model/alihealthmdeer/AlibabaAlihealthMdeerScienceDeletearticleAPIRequest.go new file mode 100644 index 0000000000..f4f781954a --- /dev/null +++ b/model/alihealthmdeer/AlibabaAlihealthMdeerScienceDeletearticleAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthmdeer + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +文章删除 API请求 +alibaba.alihealth.mdeer.science.deletearticle + +三方同步文章删除 +*/ +type AlibabaAlihealthMdeerScienceDeletearticleAPIRequest struct { + model.Params + // 文章ID + _articleId int64 +} + +// 初始化AlibabaAlihealthMdeerScienceDeletearticleAPIRequest对象 +func NewAlibabaAlihealthMdeerScienceDeletearticleRequest() *AlibabaAlihealthMdeerScienceDeletearticleAPIRequest{ + return &AlibabaAlihealthMdeerScienceDeletearticleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMdeerScienceDeletearticleAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.mdeer.science.deletearticle" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMdeerScienceDeletearticleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ArticleId Setter +// 文章ID +func (r *AlibabaAlihealthMdeerScienceDeletearticleAPIRequest) SetArticleId(_articleId int64) error { + r._articleId = _articleId + r.Set("article_id", _articleId) + return nil +} + +// ArticleId Getter +func (r AlibabaAlihealthMdeerScienceDeletearticleAPIRequest) GetArticleId() int64 { + return r._articleId +} diff --git a/model/alihealthmdeer/AlibabaAlihealthMdeerScienceDeletearticleAPIResponse.go b/model/alihealthmdeer/AlibabaAlihealthMdeerScienceDeletearticleAPIResponse.go new file mode 100644 index 0000000000..936ba822d6 --- /dev/null +++ b/model/alihealthmdeer/AlibabaAlihealthMdeerScienceDeletearticleAPIResponse.go @@ -0,0 +1,31 @@ +package alihealthmdeer + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +文章删除 API返回值 +alibaba.alihealth.mdeer.science.deletearticle + +三方同步文章删除 +*/ +type AlibabaAlihealthMdeerScienceDeletearticleAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMdeerScienceDeletearticleAPIResponseModel +} + +// 文章删除 成功返回结果 +type AlibabaAlihealthMdeerScienceDeletearticleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_mdeer_science_deletearticle_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 错误code + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 是否删除成功 + Model bool `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/alihealthmdeer/AlibabaAlihealthMdeerScienceDeletearticleResponse.go b/model/alihealthmdeer/AlibabaAlihealthMdeerScienceDeletearticleResponse.go deleted file mode 100644 index 3cabcef1be..0000000000 --- a/model/alihealthmdeer/AlibabaAlihealthMdeerScienceDeletearticleResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alihealthmdeer - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -文章删除 API返回值 -alibaba.alihealth.mdeer.science.deletearticle - -三方同步文章删除 -*/ -type AlibabaAlihealthMdeerScienceDeletearticleAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMdeerScienceDeletearticleResponse -} - -// 文章删除 成功返回结果 -type AlibabaAlihealthMdeerScienceDeletearticleResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_mdeer_science_deletearticle_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 错误code - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 是否删除成功 - Model bool `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynVideoAPIRequest.go b/model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynVideoAPIRequest.go new file mode 100644 index 0000000000..59ee4402dd --- /dev/null +++ b/model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynVideoAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthmdeer + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +视频同步【保存/更新】 API请求 +alibaba.alihealth.mdeer.science.synVideo + +视频同步【保存/更新】 +*/ +type AlibabaAlihealthMdeerScienceSynVideoAPIRequest struct { + model.Params + // 视频信息实体 + _synVideoInfo *SynVideoInfo +} + +// 初始化AlibabaAlihealthMdeerScienceSynVideoAPIRequest对象 +func NewAlibabaAlihealthMdeerScienceSynVideoRequest() *AlibabaAlihealthMdeerScienceSynVideoAPIRequest{ + return &AlibabaAlihealthMdeerScienceSynVideoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMdeerScienceSynVideoAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.mdeer.science.synVideo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMdeerScienceSynVideoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SynVideoInfo Setter +// 视频信息实体 +func (r *AlibabaAlihealthMdeerScienceSynVideoAPIRequest) SetSynVideoInfo(_synVideoInfo *SynVideoInfo) error { + r._synVideoInfo = _synVideoInfo + r.Set("syn_video_info", _synVideoInfo) + return nil +} + +// SynVideoInfo Getter +func (r AlibabaAlihealthMdeerScienceSynVideoAPIRequest) GetSynVideoInfo() *SynVideoInfo { + return r._synVideoInfo +} diff --git a/model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynVideoAPIResponse.go b/model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynVideoAPIResponse.go new file mode 100644 index 0000000000..4e30c1b5fc --- /dev/null +++ b/model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynVideoAPIResponse.go @@ -0,0 +1,31 @@ +package alihealthmdeer + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +视频同步【保存/更新】 API返回值 +alibaba.alihealth.mdeer.science.synVideo + +视频同步【保存/更新】 +*/ +type AlibabaAlihealthMdeerScienceSynVideoAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMdeerScienceSynVideoAPIResponseModel +} + +// 视频同步【保存/更新】 成功返回结果 +type AlibabaAlihealthMdeerScienceSynVideoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_mdeer_science_synVideo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果描述 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 调用结果code + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 调用是否成功 + Model bool `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynVideoResponse.go b/model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynVideoResponse.go deleted file mode 100644 index f3f4d9db5c..0000000000 --- a/model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynVideoResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alihealthmdeer - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -视频同步【保存/更新】 API返回值 -alibaba.alihealth.mdeer.science.synVideo - -视频同步【保存/更新】 -*/ -type AlibabaAlihealthMdeerScienceSynVideoAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMdeerScienceSynVideoResponse -} - -// 视频同步【保存/更新】 成功返回结果 -type AlibabaAlihealthMdeerScienceSynVideoResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_mdeer_science_synVideo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果描述 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 调用结果code - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 调用是否成功 - Model bool `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynarticleAPIRequest.go b/model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynarticleAPIRequest.go new file mode 100644 index 0000000000..6d64070abc --- /dev/null +++ b/model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynarticleAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthmdeer + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +医知鹿文章同步【保存/更新】 API请求 +alibaba.alihealth.mdeer.science.synarticle + +文章同步【保存/更新】 +*/ +type AlibabaAlihealthMdeerScienceSynarticleAPIRequest struct { + model.Params + // 同步文章对象 + _synArticleInfo *SynArticleInfo +} + +// 初始化AlibabaAlihealthMdeerScienceSynarticleAPIRequest对象 +func NewAlibabaAlihealthMdeerScienceSynarticleRequest() *AlibabaAlihealthMdeerScienceSynarticleAPIRequest{ + return &AlibabaAlihealthMdeerScienceSynarticleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMdeerScienceSynarticleAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.mdeer.science.synarticle" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMdeerScienceSynarticleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SynArticleInfo Setter +// 同步文章对象 +func (r *AlibabaAlihealthMdeerScienceSynarticleAPIRequest) SetSynArticleInfo(_synArticleInfo *SynArticleInfo) error { + r._synArticleInfo = _synArticleInfo + r.Set("syn_article_info", _synArticleInfo) + return nil +} + +// SynArticleInfo Getter +func (r AlibabaAlihealthMdeerScienceSynarticleAPIRequest) GetSynArticleInfo() *SynArticleInfo { + return r._synArticleInfo +} diff --git a/model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynarticleAPIResponse.go b/model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynarticleAPIResponse.go new file mode 100644 index 0000000000..8c7d3bc6a6 --- /dev/null +++ b/model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynarticleAPIResponse.go @@ -0,0 +1,31 @@ +package alihealthmdeer + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +医知鹿文章同步【保存/更新】 API返回值 +alibaba.alihealth.mdeer.science.synarticle + +文章同步【保存/更新】 +*/ +type AlibabaAlihealthMdeerScienceSynarticleAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMdeerScienceSynarticleAPIResponseModel +} + +// 医知鹿文章同步【保存/更新】 成功返回结果 +type AlibabaAlihealthMdeerScienceSynarticleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_mdeer_science_synarticle_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 信息code + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 返回值 + Model bool `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynarticleResponse.go b/model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynarticleResponse.go deleted file mode 100644 index 41790e2454..0000000000 --- a/model/alihealthmdeer/AlibabaAlihealthMdeerScienceSynarticleResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alihealthmdeer - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -医知鹿文章同步【保存/更新】 API返回值 -alibaba.alihealth.mdeer.science.synarticle - -文章同步【保存/更新】 -*/ -type AlibabaAlihealthMdeerScienceSynarticleAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMdeerScienceSynarticleResponse -} - -// 医知鹿文章同步【保存/更新】 成功返回结果 -type AlibabaAlihealthMdeerScienceSynarticleResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_mdeer_science_synarticle_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 信息code - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 返回值 - Model bool `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/alihealthmdeer/AlibabaAlihealthMdeerVideoSyncAPIRequest.go b/model/alihealthmdeer/AlibabaAlihealthMdeerVideoSyncAPIRequest.go new file mode 100644 index 0000000000..099abd3a81 --- /dev/null +++ b/model/alihealthmdeer/AlibabaAlihealthMdeerVideoSyncAPIRequest.go @@ -0,0 +1,332 @@ +package alihealthmdeer + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +合作伙伴视频同步给医知鹿接口 API请求 +alibaba.alihealth.mdeer.video.sync + +合伙做伴内容同步接口,用来视频同步 +*/ +type AlibabaAlihealthMdeerVideoSyncAPIRequest struct { + model.Params + // 合作方头像url + _partnerPortraitUrl string + // 作者电话 + _phoneNumber string + // 作者简介 + _authorIntroduction string + // 作者科室 + _authorDepartment string + // 作者级别 + _authorLevel string + // 医院级别 + _hospitalLevel string + // 医院名称 + _hospitalName string + // 作者头像 + _portraitUrl string + // 作者名称 + _authorName string + // 作者id + _authorId string + // 合作方主页 + _partnerHomepage string + // 合作方名称 + _partnerName string + // 发布日期 + _releaseDate string + // 视频文件url + _videoFileUrl string + // 视频落地页 + _videoMobileUrl string + // 视频简介 + _videoIntroduction string + // 视频长度 + _videoLength string + // 视频所述疾病 + _disease string + // 预览图url + _priviewUrl string + // 视频标题 + _videoTitle string + // 视频id + _videoId string +} + +// 初始化AlibabaAlihealthMdeerVideoSyncAPIRequest对象 +func NewAlibabaAlihealthMdeerVideoSyncRequest() *AlibabaAlihealthMdeerVideoSyncAPIRequest{ + return &AlibabaAlihealthMdeerVideoSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.mdeer.video.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PartnerPortraitUrl Setter +// 合作方头像url +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetPartnerPortraitUrl(_partnerPortraitUrl string) error { + r._partnerPortraitUrl = _partnerPortraitUrl + r.Set("partner_portrait_url", _partnerPortraitUrl) + return nil +} + +// PartnerPortraitUrl Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetPartnerPortraitUrl() string { + return r._partnerPortraitUrl +} +// PhoneNumber Setter +// 作者电话 +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetPhoneNumber(_phoneNumber string) error { + r._phoneNumber = _phoneNumber + r.Set("phone_number", _phoneNumber) + return nil +} + +// PhoneNumber Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetPhoneNumber() string { + return r._phoneNumber +} +// AuthorIntroduction Setter +// 作者简介 +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetAuthorIntroduction(_authorIntroduction string) error { + r._authorIntroduction = _authorIntroduction + r.Set("author_introduction", _authorIntroduction) + return nil +} + +// AuthorIntroduction Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetAuthorIntroduction() string { + return r._authorIntroduction +} +// AuthorDepartment Setter +// 作者科室 +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetAuthorDepartment(_authorDepartment string) error { + r._authorDepartment = _authorDepartment + r.Set("author_department", _authorDepartment) + return nil +} + +// AuthorDepartment Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetAuthorDepartment() string { + return r._authorDepartment +} +// AuthorLevel Setter +// 作者级别 +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetAuthorLevel(_authorLevel string) error { + r._authorLevel = _authorLevel + r.Set("author_level", _authorLevel) + return nil +} + +// AuthorLevel Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetAuthorLevel() string { + return r._authorLevel +} +// HospitalLevel Setter +// 医院级别 +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetHospitalLevel(_hospitalLevel string) error { + r._hospitalLevel = _hospitalLevel + r.Set("hospital_level", _hospitalLevel) + return nil +} + +// HospitalLevel Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetHospitalLevel() string { + return r._hospitalLevel +} +// HospitalName Setter +// 医院名称 +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetHospitalName(_hospitalName string) error { + r._hospitalName = _hospitalName + r.Set("hospital_name", _hospitalName) + return nil +} + +// HospitalName Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetHospitalName() string { + return r._hospitalName +} +// PortraitUrl Setter +// 作者头像 +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetPortraitUrl(_portraitUrl string) error { + r._portraitUrl = _portraitUrl + r.Set("portrait_url", _portraitUrl) + return nil +} + +// PortraitUrl Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetPortraitUrl() string { + return r._portraitUrl +} +// AuthorName Setter +// 作者名称 +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetAuthorName(_authorName string) error { + r._authorName = _authorName + r.Set("author_name", _authorName) + return nil +} + +// AuthorName Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetAuthorName() string { + return r._authorName +} +// AuthorId Setter +// 作者id +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetAuthorId(_authorId string) error { + r._authorId = _authorId + r.Set("author_id", _authorId) + return nil +} + +// AuthorId Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetAuthorId() string { + return r._authorId +} +// PartnerHomepage Setter +// 合作方主页 +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetPartnerHomepage(_partnerHomepage string) error { + r._partnerHomepage = _partnerHomepage + r.Set("partner_homepage", _partnerHomepage) + return nil +} + +// PartnerHomepage Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetPartnerHomepage() string { + return r._partnerHomepage +} +// PartnerName Setter +// 合作方名称 +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetPartnerName(_partnerName string) error { + r._partnerName = _partnerName + r.Set("partner_name", _partnerName) + return nil +} + +// PartnerName Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetPartnerName() string { + return r._partnerName +} +// ReleaseDate Setter +// 发布日期 +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetReleaseDate(_releaseDate string) error { + r._releaseDate = _releaseDate + r.Set("release_date", _releaseDate) + return nil +} + +// ReleaseDate Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetReleaseDate() string { + return r._releaseDate +} +// VideoFileUrl Setter +// 视频文件url +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetVideoFileUrl(_videoFileUrl string) error { + r._videoFileUrl = _videoFileUrl + r.Set("video_file_url", _videoFileUrl) + return nil +} + +// VideoFileUrl Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetVideoFileUrl() string { + return r._videoFileUrl +} +// VideoMobileUrl Setter +// 视频落地页 +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetVideoMobileUrl(_videoMobileUrl string) error { + r._videoMobileUrl = _videoMobileUrl + r.Set("video_mobile_url", _videoMobileUrl) + return nil +} + +// VideoMobileUrl Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetVideoMobileUrl() string { + return r._videoMobileUrl +} +// VideoIntroduction Setter +// 视频简介 +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetVideoIntroduction(_videoIntroduction string) error { + r._videoIntroduction = _videoIntroduction + r.Set("video_introduction", _videoIntroduction) + return nil +} + +// VideoIntroduction Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetVideoIntroduction() string { + return r._videoIntroduction +} +// VideoLength Setter +// 视频长度 +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetVideoLength(_videoLength string) error { + r._videoLength = _videoLength + r.Set("video_length", _videoLength) + return nil +} + +// VideoLength Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetVideoLength() string { + return r._videoLength +} +// Disease Setter +// 视频所述疾病 +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetDisease(_disease string) error { + r._disease = _disease + r.Set("disease", _disease) + return nil +} + +// Disease Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetDisease() string { + return r._disease +} +// PriviewUrl Setter +// 预览图url +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetPriviewUrl(_priviewUrl string) error { + r._priviewUrl = _priviewUrl + r.Set("priview_url", _priviewUrl) + return nil +} + +// PriviewUrl Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetPriviewUrl() string { + return r._priviewUrl +} +// VideoTitle Setter +// 视频标题 +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetVideoTitle(_videoTitle string) error { + r._videoTitle = _videoTitle + r.Set("video_title", _videoTitle) + return nil +} + +// VideoTitle Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetVideoTitle() string { + return r._videoTitle +} +// VideoId Setter +// 视频id +func (r *AlibabaAlihealthMdeerVideoSyncAPIRequest) SetVideoId(_videoId string) error { + r._videoId = _videoId + r.Set("video_id", _videoId) + return nil +} + +// VideoId Getter +func (r AlibabaAlihealthMdeerVideoSyncAPIRequest) GetVideoId() string { + return r._videoId +} diff --git a/model/alihealthmdeer/AlibabaAlihealthMdeerVideoSyncAPIResponse.go b/model/alihealthmdeer/AlibabaAlihealthMdeerVideoSyncAPIResponse.go new file mode 100644 index 0000000000..faa7a16f0d --- /dev/null +++ b/model/alihealthmdeer/AlibabaAlihealthMdeerVideoSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthmdeer + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +合作伙伴视频同步给医知鹿接口 API返回值 +alibaba.alihealth.mdeer.video.sync + +合伙做伴内容同步接口,用来视频同步 +*/ +type AlibabaAlihealthMdeerVideoSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMdeerVideoSyncAPIResponseModel +} + +// 合作伙伴视频同步给医知鹿接口 成功返回结果 +type AlibabaAlihealthMdeerVideoSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_mdeer_video_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthmdeer/AlibabaAlihealthMdeerVideoSyncResponse.go b/model/alihealthmdeer/AlibabaAlihealthMdeerVideoSyncResponse.go deleted file mode 100644 index a46b5f54db..0000000000 --- a/model/alihealthmdeer/AlibabaAlihealthMdeerVideoSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthmdeer - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -合作伙伴视频同步给医知鹿接口 API返回值 -alibaba.alihealth.mdeer.video.sync - -合伙做伴内容同步接口,用来视频同步 -*/ -type AlibabaAlihealthMdeerVideoSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMdeerVideoSyncResponse -} - -// 合作伙伴视频同步给医知鹿接口 成功返回结果 -type AlibabaAlihealthMdeerVideoSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_mdeer_video_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalDoctorMsgSendAPIRequest.go b/model/alihealthmedical/AlibabaAlihealthMedicalDoctorMsgSendAPIRequest.go new file mode 100644 index 0000000000..0dfe233f7c --- /dev/null +++ b/model/alihealthmedical/AlibabaAlihealthMedicalDoctorMsgSendAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthmedical + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +三方医生消息写入 API请求 +alibaba.alihealth.medical.doctor.msg.send + +三方机构医生端发送消息同步写入阿里健康IM +*/ +type AlibabaAlihealthMedicalDoctorMsgSendAPIRequest struct { + model.Params + // request + _inquiry *OuterMsgPullRequest +} + +// 初始化AlibabaAlihealthMedicalDoctorMsgSendAPIRequest对象 +func NewAlibabaAlihealthMedicalDoctorMsgSendRequest() *AlibabaAlihealthMedicalDoctorMsgSendAPIRequest{ + return &AlibabaAlihealthMedicalDoctorMsgSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMedicalDoctorMsgSendAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.medical.doctor.msg.send" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMedicalDoctorMsgSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Inquiry Setter +// request +func (r *AlibabaAlihealthMedicalDoctorMsgSendAPIRequest) SetInquiry(_inquiry *OuterMsgPullRequest) error { + r._inquiry = _inquiry + r.Set("inquiry", _inquiry) + return nil +} + +// Inquiry Getter +func (r AlibabaAlihealthMedicalDoctorMsgSendAPIRequest) GetInquiry() *OuterMsgPullRequest { + return r._inquiry +} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalDoctorMsgSendAPIResponse.go b/model/alihealthmedical/AlibabaAlihealthMedicalDoctorMsgSendAPIResponse.go new file mode 100644 index 0000000000..b913c4e377 --- /dev/null +++ b/model/alihealthmedical/AlibabaAlihealthMedicalDoctorMsgSendAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthmedical + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +三方医生消息写入 API返回值 +alibaba.alihealth.medical.doctor.msg.send + +三方机构医生端发送消息同步写入阿里健康IM +*/ +type AlibabaAlihealthMedicalDoctorMsgSendAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMedicalDoctorMsgSendAPIResponseModel +} + +// 三方医生消息写入 成功返回结果 +type AlibabaAlihealthMedicalDoctorMsgSendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_medical_doctor_msg_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalDoctorMsgSendResponse.go b/model/alihealthmedical/AlibabaAlihealthMedicalDoctorMsgSendResponse.go deleted file mode 100644 index 456115e273..0000000000 --- a/model/alihealthmedical/AlibabaAlihealthMedicalDoctorMsgSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthmedical - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -三方医生消息写入 API返回值 -alibaba.alihealth.medical.doctor.msg.send - -三方机构医生端发送消息同步写入阿里健康IM -*/ -type AlibabaAlihealthMedicalDoctorMsgSendAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMedicalDoctorMsgSendResponse -} - -// 三方医生消息写入 成功返回结果 -type AlibabaAlihealthMedicalDoctorMsgSendResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_medical_doctor_msg_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalDoctorPublishAPIRequest.go b/model/alihealthmedical/AlibabaAlihealthMedicalDoctorPublishAPIRequest.go new file mode 100644 index 0000000000..8df3cc7d1b --- /dev/null +++ b/model/alihealthmedical/AlibabaAlihealthMedicalDoctorPublishAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthmedical + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +三方机构医生信息上传 API请求 +alibaba.alihealth.medical.doctor.publish + +三方机构上传医生信息 +*/ +type AlibabaAlihealthMedicalDoctorPublishAPIRequest struct { + model.Params + // 三方机构医生上传request + _outerDoctorPublishRequest *OuterDoctorPublishRequest +} + +// 初始化AlibabaAlihealthMedicalDoctorPublishAPIRequest对象 +func NewAlibabaAlihealthMedicalDoctorPublishRequest() *AlibabaAlihealthMedicalDoctorPublishAPIRequest{ + return &AlibabaAlihealthMedicalDoctorPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMedicalDoctorPublishAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.medical.doctor.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMedicalDoctorPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterDoctorPublishRequest Setter +// 三方机构医生上传request +func (r *AlibabaAlihealthMedicalDoctorPublishAPIRequest) SetOuterDoctorPublishRequest(_outerDoctorPublishRequest *OuterDoctorPublishRequest) error { + r._outerDoctorPublishRequest = _outerDoctorPublishRequest + r.Set("outer_doctor_publish_request", _outerDoctorPublishRequest) + return nil +} + +// OuterDoctorPublishRequest Getter +func (r AlibabaAlihealthMedicalDoctorPublishAPIRequest) GetOuterDoctorPublishRequest() *OuterDoctorPublishRequest { + return r._outerDoctorPublishRequest +} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalDoctorPublishAPIResponse.go b/model/alihealthmedical/AlibabaAlihealthMedicalDoctorPublishAPIResponse.go new file mode 100644 index 0000000000..2cb1f64ac6 --- /dev/null +++ b/model/alihealthmedical/AlibabaAlihealthMedicalDoctorPublishAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthmedical + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +三方机构医生信息上传 API返回值 +alibaba.alihealth.medical.doctor.publish + +三方机构上传医生信息 +*/ +type AlibabaAlihealthMedicalDoctorPublishAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMedicalDoctorPublishAPIResponseModel +} + +// 三方机构医生信息上传 成功返回结果 +type AlibabaAlihealthMedicalDoctorPublishAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_medical_doctor_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalDoctorPublishResponse.go b/model/alihealthmedical/AlibabaAlihealthMedicalDoctorPublishResponse.go deleted file mode 100644 index f4712b79b0..0000000000 --- a/model/alihealthmedical/AlibabaAlihealthMedicalDoctorPublishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthmedical - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -三方机构医生信息上传 API返回值 -alibaba.alihealth.medical.doctor.publish - -三方机构上传医生信息 -*/ -type AlibabaAlihealthMedicalDoctorPublishAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMedicalDoctorPublishResponse -} - -// 三方机构医生信息上传 成功返回结果 -type AlibabaAlihealthMedicalDoctorPublishResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_medical_doctor_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalImDataUploadAPIRequest.go b/model/alihealthmedical/AlibabaAlihealthMedicalImDataUploadAPIRequest.go new file mode 100644 index 0000000000..625e5636e8 --- /dev/null +++ b/model/alihealthmedical/AlibabaAlihealthMedicalImDataUploadAPIRequest.go @@ -0,0 +1,66 @@ +package alihealthmedical + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +三方IM图片音频消息上传 API请求 +alibaba.alihealth.medical.im.data.upload + +三方IM图片音频消息上传 +*/ +type AlibabaAlihealthMedicalImDataUploadAPIRequest struct { + model.Params + // request + _uploadDataRequest *UploadDataRequest + // 文件字节流 + _file *model.File +} + +// 初始化AlibabaAlihealthMedicalImDataUploadAPIRequest对象 +func NewAlibabaAlihealthMedicalImDataUploadRequest() *AlibabaAlihealthMedicalImDataUploadAPIRequest{ + return &AlibabaAlihealthMedicalImDataUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMedicalImDataUploadAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.medical.im.data.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMedicalImDataUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UploadDataRequest Setter +// request +func (r *AlibabaAlihealthMedicalImDataUploadAPIRequest) SetUploadDataRequest(_uploadDataRequest *UploadDataRequest) error { + r._uploadDataRequest = _uploadDataRequest + r.Set("upload_data_request", _uploadDataRequest) + return nil +} + +// UploadDataRequest Getter +func (r AlibabaAlihealthMedicalImDataUploadAPIRequest) GetUploadDataRequest() *UploadDataRequest { + return r._uploadDataRequest +} +// File Setter +// 文件字节流 +func (r *AlibabaAlihealthMedicalImDataUploadAPIRequest) SetFile(_file *model.File) error { + r._file = _file + r.Set("file", _file) + return nil +} + +// File Getter +func (r AlibabaAlihealthMedicalImDataUploadAPIRequest) GetFile() *model.File { + return r._file +} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalImDataUploadAPIResponse.go b/model/alihealthmedical/AlibabaAlihealthMedicalImDataUploadAPIResponse.go new file mode 100644 index 0000000000..4e720a8106 --- /dev/null +++ b/model/alihealthmedical/AlibabaAlihealthMedicalImDataUploadAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthmedical + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +三方IM图片音频消息上传 API返回值 +alibaba.alihealth.medical.im.data.upload + +三方IM图片音频消息上传 +*/ +type AlibabaAlihealthMedicalImDataUploadAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMedicalImDataUploadAPIResponseModel +} + +// 三方IM图片音频消息上传 成功返回结果 +type AlibabaAlihealthMedicalImDataUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_medical_im_data_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalImDataUploadResponse.go b/model/alihealthmedical/AlibabaAlihealthMedicalImDataUploadResponse.go deleted file mode 100644 index f658d6de3f..0000000000 --- a/model/alihealthmedical/AlibabaAlihealthMedicalImDataUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthmedical - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -三方IM图片音频消息上传 API返回值 -alibaba.alihealth.medical.im.data.upload - -三方IM图片音频消息上传 -*/ -type AlibabaAlihealthMedicalImDataUploadAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMedicalImDataUploadResponse -} - -// 三方IM图片音频消息上传 成功返回结果 -type AlibabaAlihealthMedicalImDataUploadResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_medical_im_data_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalItemPublishAPIRequest.go b/model/alihealthmedical/AlibabaAlihealthMedicalItemPublishAPIRequest.go new file mode 100644 index 0000000000..6028db2503 --- /dev/null +++ b/model/alihealthmedical/AlibabaAlihealthMedicalItemPublishAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthmedical + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +三方入驻-开通服务 API请求 +alibaba.alihealth.medical.item.publish + +三方入驻-开通服务 +*/ +type AlibabaAlihealthMedicalItemPublishAPIRequest struct { + model.Params + // 请求 + _request1 *ItemPublishRequest +} + +// 初始化AlibabaAlihealthMedicalItemPublishAPIRequest对象 +func NewAlibabaAlihealthMedicalItemPublishRequest() *AlibabaAlihealthMedicalItemPublishAPIRequest{ + return &AlibabaAlihealthMedicalItemPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMedicalItemPublishAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.medical.item.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMedicalItemPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request1 Setter +// 请求 +func (r *AlibabaAlihealthMedicalItemPublishAPIRequest) SetRequest1(_request1 *ItemPublishRequest) error { + r._request1 = _request1 + r.Set("request1", _request1) + return nil +} + +// Request1 Getter +func (r AlibabaAlihealthMedicalItemPublishAPIRequest) GetRequest1() *ItemPublishRequest { + return r._request1 +} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalItemPublishAPIResponse.go b/model/alihealthmedical/AlibabaAlihealthMedicalItemPublishAPIResponse.go new file mode 100644 index 0000000000..7ec9071a34 --- /dev/null +++ b/model/alihealthmedical/AlibabaAlihealthMedicalItemPublishAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthmedical + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +三方入驻-开通服务 API返回值 +alibaba.alihealth.medical.item.publish + +三方入驻-开通服务 +*/ +type AlibabaAlihealthMedicalItemPublishAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMedicalItemPublishAPIResponseModel +} + +// 三方入驻-开通服务 成功返回结果 +type AlibabaAlihealthMedicalItemPublishAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_medical_item_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统返回的通用结果类 + Result1 *ServiceResult `json:"result1,omitempty" xml:"result1,omitempty"` +} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalItemPublishResponse.go b/model/alihealthmedical/AlibabaAlihealthMedicalItemPublishResponse.go deleted file mode 100644 index d0b0e3d0c3..0000000000 --- a/model/alihealthmedical/AlibabaAlihealthMedicalItemPublishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthmedical - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -三方入驻-开通服务 API返回值 -alibaba.alihealth.medical.item.publish - -三方入驻-开通服务 -*/ -type AlibabaAlihealthMedicalItemPublishAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMedicalItemPublishResponse -} - -// 三方入驻-开通服务 成功返回结果 -type AlibabaAlihealthMedicalItemPublishResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_medical_item_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统返回的通用结果类 - Result1 *ServiceResult `json:"result1,omitempty" xml:"result1,omitempty"` -} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalItemStatusAPIRequest.go b/model/alihealthmedical/AlibabaAlihealthMedicalItemStatusAPIRequest.go new file mode 100644 index 0000000000..740ba6e784 --- /dev/null +++ b/model/alihealthmedical/AlibabaAlihealthMedicalItemStatusAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthmedical + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品上下架 API请求 +alibaba.alihealth.medical.item.status + +医生通三方机构平台进行服务商品上下架操作 +*/ +type AlibabaAlihealthMedicalItemStatusAPIRequest struct { + model.Params + // 请求入参 + _shelfrequest *ThirdAgencyUpDownShelfRequest +} + +// 初始化AlibabaAlihealthMedicalItemStatusAPIRequest对象 +func NewAlibabaAlihealthMedicalItemStatusRequest() *AlibabaAlihealthMedicalItemStatusAPIRequest{ + return &AlibabaAlihealthMedicalItemStatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMedicalItemStatusAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.medical.item.status" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMedicalItemStatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Shelfrequest Setter +// 请求入参 +func (r *AlibabaAlihealthMedicalItemStatusAPIRequest) SetShelfrequest(_shelfrequest *ThirdAgencyUpDownShelfRequest) error { + r._shelfrequest = _shelfrequest + r.Set("shelfrequest", _shelfrequest) + return nil +} + +// Shelfrequest Getter +func (r AlibabaAlihealthMedicalItemStatusAPIRequest) GetShelfrequest() *ThirdAgencyUpDownShelfRequest { + return r._shelfrequest +} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalItemStatusAPIResponse.go b/model/alihealthmedical/AlibabaAlihealthMedicalItemStatusAPIResponse.go new file mode 100644 index 0000000000..13ab031734 --- /dev/null +++ b/model/alihealthmedical/AlibabaAlihealthMedicalItemStatusAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthmedical + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品上下架 API返回值 +alibaba.alihealth.medical.item.status + +医生通三方机构平台进行服务商品上下架操作 +*/ +type AlibabaAlihealthMedicalItemStatusAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMedicalItemStatusAPIResponseModel +} + +// 商品上下架 成功返回结果 +type AlibabaAlihealthMedicalItemStatusAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_medical_item_status_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Shelfresult *ServiceResult `json:"shelfresult,omitempty" xml:"shelfresult,omitempty"` +} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalItemStatusResponse.go b/model/alihealthmedical/AlibabaAlihealthMedicalItemStatusResponse.go deleted file mode 100644 index 1c6726ee17..0000000000 --- a/model/alihealthmedical/AlibabaAlihealthMedicalItemStatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthmedical - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品上下架 API返回值 -alibaba.alihealth.medical.item.status - -医生通三方机构平台进行服务商品上下架操作 -*/ -type AlibabaAlihealthMedicalItemStatusAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMedicalItemStatusResponse -} - -// 商品上下架 成功返回结果 -type AlibabaAlihealthMedicalItemStatusResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_medical_item_status_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Shelfresult *ServiceResult `json:"shelfresult,omitempty" xml:"shelfresult,omitempty"` -} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalOrderQueryAPIRequest.go b/model/alihealthmedical/AlibabaAlihealthMedicalOrderQueryAPIRequest.go new file mode 100644 index 0000000000..be74c7b5d8 --- /dev/null +++ b/model/alihealthmedical/AlibabaAlihealthMedicalOrderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthmedical + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +三方机构查询订单详情接口 API请求 +alibaba.alihealth.medical.order.query + +查询订单详情,包括评价 +*/ +type AlibabaAlihealthMedicalOrderQueryAPIRequest struct { + model.Params + // 请求入参 + _requestInfo *OrderQueryRequestDto +} + +// 初始化AlibabaAlihealthMedicalOrderQueryAPIRequest对象 +func NewAlibabaAlihealthMedicalOrderQueryRequest() *AlibabaAlihealthMedicalOrderQueryAPIRequest{ + return &AlibabaAlihealthMedicalOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMedicalOrderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.medical.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMedicalOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestInfo Setter +// 请求入参 +func (r *AlibabaAlihealthMedicalOrderQueryAPIRequest) SetRequestInfo(_requestInfo *OrderQueryRequestDto) error { + r._requestInfo = _requestInfo + r.Set("request_info", _requestInfo) + return nil +} + +// RequestInfo Getter +func (r AlibabaAlihealthMedicalOrderQueryAPIRequest) GetRequestInfo() *OrderQueryRequestDto { + return r._requestInfo +} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalOrderQueryAPIResponse.go b/model/alihealthmedical/AlibabaAlihealthMedicalOrderQueryAPIResponse.go new file mode 100644 index 0000000000..33a178beb6 --- /dev/null +++ b/model/alihealthmedical/AlibabaAlihealthMedicalOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthmedical + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +三方机构查询订单详情接口 API返回值 +alibaba.alihealth.medical.order.query + +查询订单详情,包括评价 +*/ +type AlibabaAlihealthMedicalOrderQueryAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMedicalOrderQueryAPIResponseModel +} + +// 三方机构查询订单详情接口 成功返回结果 +type AlibabaAlihealthMedicalOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_medical_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalOrderQueryResponse.go b/model/alihealthmedical/AlibabaAlihealthMedicalOrderQueryResponse.go deleted file mode 100644 index c97a6a8a5b..0000000000 --- a/model/alihealthmedical/AlibabaAlihealthMedicalOrderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthmedical - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -三方机构查询订单详情接口 API返回值 -alibaba.alihealth.medical.order.query - -查询订单详情,包括评价 -*/ -type AlibabaAlihealthMedicalOrderQueryAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMedicalOrderQueryResponse -} - -// 三方机构查询订单详情接口 成功返回结果 -type AlibabaAlihealthMedicalOrderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_medical_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalOrderRefuseAPIRequest.go b/model/alihealthmedical/AlibabaAlihealthMedicalOrderRefuseAPIRequest.go new file mode 100644 index 0000000000..cb2eb2857b --- /dev/null +++ b/model/alihealthmedical/AlibabaAlihealthMedicalOrderRefuseAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthmedical + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +三方机构通知平台"医生拒诊" API请求 +alibaba.alihealth.medical.order.refuse + +三方机构通知平台"医生拒诊" +*/ +type AlibabaAlihealthMedicalOrderRefuseAPIRequest struct { + model.Params + // 请求入参 + _requestInfo *RefuseOrderRequestDto +} + +// 初始化AlibabaAlihealthMedicalOrderRefuseAPIRequest对象 +func NewAlibabaAlihealthMedicalOrderRefuseRequest() *AlibabaAlihealthMedicalOrderRefuseAPIRequest{ + return &AlibabaAlihealthMedicalOrderRefuseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMedicalOrderRefuseAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.medical.order.refuse" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMedicalOrderRefuseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestInfo Setter +// 请求入参 +func (r *AlibabaAlihealthMedicalOrderRefuseAPIRequest) SetRequestInfo(_requestInfo *RefuseOrderRequestDto) error { + r._requestInfo = _requestInfo + r.Set("request_info", _requestInfo) + return nil +} + +// RequestInfo Getter +func (r AlibabaAlihealthMedicalOrderRefuseAPIRequest) GetRequestInfo() *RefuseOrderRequestDto { + return r._requestInfo +} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalOrderRefuseAPIResponse.go b/model/alihealthmedical/AlibabaAlihealthMedicalOrderRefuseAPIResponse.go new file mode 100644 index 0000000000..37d452742e --- /dev/null +++ b/model/alihealthmedical/AlibabaAlihealthMedicalOrderRefuseAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthmedical + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +三方机构通知平台"医生拒诊" API返回值 +alibaba.alihealth.medical.order.refuse + +三方机构通知平台"医生拒诊" +*/ +type AlibabaAlihealthMedicalOrderRefuseAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMedicalOrderRefuseAPIResponseModel +} + +// 三方机构通知平台"医生拒诊" 成功返回结果 +type AlibabaAlihealthMedicalOrderRefuseAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_medical_order_refuse_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthmedical/AlibabaAlihealthMedicalOrderRefuseResponse.go b/model/alihealthmedical/AlibabaAlihealthMedicalOrderRefuseResponse.go deleted file mode 100644 index af145b4463..0000000000 --- a/model/alihealthmedical/AlibabaAlihealthMedicalOrderRefuseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthmedical - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -三方机构通知平台"医生拒诊" API返回值 -alibaba.alihealth.medical.order.refuse - -三方机构通知平台"医生拒诊" -*/ -type AlibabaAlihealthMedicalOrderRefuseAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMedicalOrderRefuseResponse -} - -// 三方机构通知平台"医生拒诊" 成功返回结果 -type AlibabaAlihealthMedicalOrderRefuseResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_medical_order_refuse_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionDetailAPIRequest.go b/model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionDetailAPIRequest.go new file mode 100644 index 0000000000..ea8b28fc5c --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionDetailAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthoutflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +异步开方处方详情 API请求 +alibaba.alihealth.asyncprescribe.prescription.detail + +异步开方处方查询 +*/ +type AlibabaAlihealthAsyncprescribePrescriptionDetailAPIRequest struct { + model.Params + // 入参 + _detailRequest *AsyncPrescribeDetailRequest +} + +// 初始化AlibabaAlihealthAsyncprescribePrescriptionDetailAPIRequest对象 +func NewAlibabaAlihealthAsyncprescribePrescriptionDetailRequest() *AlibabaAlihealthAsyncprescribePrescriptionDetailAPIRequest{ + return &AlibabaAlihealthAsyncprescribePrescriptionDetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthAsyncprescribePrescriptionDetailAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.asyncprescribe.prescription.detail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthAsyncprescribePrescriptionDetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DetailRequest Setter +// 入参 +func (r *AlibabaAlihealthAsyncprescribePrescriptionDetailAPIRequest) SetDetailRequest(_detailRequest *AsyncPrescribeDetailRequest) error { + r._detailRequest = _detailRequest + r.Set("detail_request", _detailRequest) + return nil +} + +// DetailRequest Getter +func (r AlibabaAlihealthAsyncprescribePrescriptionDetailAPIRequest) GetDetailRequest() *AsyncPrescribeDetailRequest { + return r._detailRequest +} diff --git a/model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionDetailAPIResponse.go b/model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionDetailAPIResponse.go new file mode 100644 index 0000000000..01fc52743a --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionDetailAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthoutflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +异步开方处方详情 API返回值 +alibaba.alihealth.asyncprescribe.prescription.detail + +异步开方处方查询 +*/ +type AlibabaAlihealthAsyncprescribePrescriptionDetailAPIResponse struct { + model.CommonResponse + AlibabaAlihealthAsyncprescribePrescriptionDetailAPIResponseModel +} + +// 异步开方处方详情 成功返回结果 +type AlibabaAlihealthAsyncprescribePrescriptionDetailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_asyncprescribe_prescription_detail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionDetailResponse.go b/model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionDetailResponse.go deleted file mode 100644 index 15bfe78149..0000000000 --- a/model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionDetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthoutflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -异步开方处方详情 API返回值 -alibaba.alihealth.asyncprescribe.prescription.detail - -异步开方处方查询 -*/ -type AlibabaAlihealthAsyncprescribePrescriptionDetailAPIResponse struct { - model.CommonResponse - AlibabaAlihealthAsyncprescribePrescriptionDetailResponse -} - -// 异步开方处方详情 成功返回结果 -type AlibabaAlihealthAsyncprescribePrescriptionDetailResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_asyncprescribe_prescription_detail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionSearchAPIRequest.go b/model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionSearchAPIRequest.go new file mode 100644 index 0000000000..9518d4361a --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionSearchAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthoutflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +异步开方处方查询 API请求 +alibaba.alihealth.asyncprescribe.prescription.search + +异步开方处方查询 +*/ +type AlibabaAlihealthAsyncprescribePrescriptionSearchAPIRequest struct { + model.Params + // 查询入参 + _searchRequest *AsyncPrescribeSearchRequest +} + +// 初始化AlibabaAlihealthAsyncprescribePrescriptionSearchAPIRequest对象 +func NewAlibabaAlihealthAsyncprescribePrescriptionSearchRequest() *AlibabaAlihealthAsyncprescribePrescriptionSearchAPIRequest{ + return &AlibabaAlihealthAsyncprescribePrescriptionSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthAsyncprescribePrescriptionSearchAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.asyncprescribe.prescription.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthAsyncprescribePrescriptionSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SearchRequest Setter +// 查询入参 +func (r *AlibabaAlihealthAsyncprescribePrescriptionSearchAPIRequest) SetSearchRequest(_searchRequest *AsyncPrescribeSearchRequest) error { + r._searchRequest = _searchRequest + r.Set("search_request", _searchRequest) + return nil +} + +// SearchRequest Getter +func (r AlibabaAlihealthAsyncprescribePrescriptionSearchAPIRequest) GetSearchRequest() *AsyncPrescribeSearchRequest { + return r._searchRequest +} diff --git a/model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionSearchAPIResponse.go b/model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionSearchAPIResponse.go new file mode 100644 index 0000000000..2353941cb1 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionSearchAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthoutflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +异步开方处方查询 API返回值 +alibaba.alihealth.asyncprescribe.prescription.search + +异步开方处方查询 +*/ +type AlibabaAlihealthAsyncprescribePrescriptionSearchAPIResponse struct { + model.CommonResponse + AlibabaAlihealthAsyncprescribePrescriptionSearchAPIResponseModel +} + +// 异步开方处方查询 成功返回结果 +type AlibabaAlihealthAsyncprescribePrescriptionSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_asyncprescribe_prescription_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionSearchResponse.go b/model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionSearchResponse.go deleted file mode 100644 index 7337405ace..0000000000 --- a/model/alihealthoutflow/AlibabaAlihealthAsyncprescribePrescriptionSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthoutflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -异步开方处方查询 API返回值 -alibaba.alihealth.asyncprescribe.prescription.search - -异步开方处方查询 -*/ -type AlibabaAlihealthAsyncprescribePrescriptionSearchAPIResponse struct { - model.CommonResponse - AlibabaAlihealthAsyncprescribePrescriptionSearchResponse -} - -// 异步开方处方查询 成功返回结果 -type AlibabaAlihealthAsyncprescribePrescriptionSearchResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_asyncprescribe_prescription_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/alihealthoutflow/AlibabaAlihealthHealthRecordHaveAPIRequest.go b/model/alihealthoutflow/AlibabaAlihealthHealthRecordHaveAPIRequest.go new file mode 100644 index 0000000000..86a62fea80 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthHealthRecordHaveAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthoutflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +判断用户的慢健康健康档案是否建设完成 API请求 +alibaba.alihealth.health.record.have + +判断用户的慢健康健康档案是否建设完成 +*/ +type AlibabaAlihealthHealthRecordHaveAPIRequest struct { + model.Params + // 入参 + _request1 *HaveRecordRequest +} + +// 初始化AlibabaAlihealthHealthRecordHaveAPIRequest对象 +func NewAlibabaAlihealthHealthRecordHaveRequest() *AlibabaAlihealthHealthRecordHaveAPIRequest{ + return &AlibabaAlihealthHealthRecordHaveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthHealthRecordHaveAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.health.record.have" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthHealthRecordHaveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request1 Setter +// 入参 +func (r *AlibabaAlihealthHealthRecordHaveAPIRequest) SetRequest1(_request1 *HaveRecordRequest) error { + r._request1 = _request1 + r.Set("request1", _request1) + return nil +} + +// Request1 Getter +func (r AlibabaAlihealthHealthRecordHaveAPIRequest) GetRequest1() *HaveRecordRequest { + return r._request1 +} diff --git a/model/alihealthoutflow/AlibabaAlihealthHealthRecordHaveAPIResponse.go b/model/alihealthoutflow/AlibabaAlihealthHealthRecordHaveAPIResponse.go new file mode 100644 index 0000000000..919c90220d --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthHealthRecordHaveAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthoutflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +判断用户的慢健康健康档案是否建设完成 API返回值 +alibaba.alihealth.health.record.have + +判断用户的慢健康健康档案是否建设完成 +*/ +type AlibabaAlihealthHealthRecordHaveAPIResponse struct { + model.CommonResponse + AlibabaAlihealthHealthRecordHaveAPIResponseModel +} + +// 判断用户的慢健康健康档案是否建设完成 成功返回结果 +type AlibabaAlihealthHealthRecordHaveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_health_record_have_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result1 *AlibabaAlihealthHealthRecordHaveResult `json:"result1,omitempty" xml:"result1,omitempty"` +} diff --git a/model/alihealthoutflow/AlibabaAlihealthHealthRecordHaveResponse.go b/model/alihealthoutflow/AlibabaAlihealthHealthRecordHaveResponse.go deleted file mode 100644 index 7b2299615f..0000000000 --- a/model/alihealthoutflow/AlibabaAlihealthHealthRecordHaveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthoutflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -判断用户的慢健康健康档案是否建设完成 API返回值 -alibaba.alihealth.health.record.have - -判断用户的慢健康健康档案是否建设完成 -*/ -type AlibabaAlihealthHealthRecordHaveAPIResponse struct { - model.CommonResponse - AlibabaAlihealthHealthRecordHaveResponse -} - -// 判断用户的慢健康健康档案是否建设完成 成功返回结果 -type AlibabaAlihealthHealthRecordHaveResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_health_record_have_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result1 *AlibabaAlihealthHealthRecordHaveResult `json:"result1,omitempty" xml:"result1,omitempty"` -} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIRequest.go b/model/alihealthoutflow/AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIRequest.go new file mode 100644 index 0000000000..67c4b033ae --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthoutflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-诊断字典表 API请求 +alibaba.alihealth.outflow.diagnosis.saveorupdate + +阿里健康-处方外流-对外提供诊断字典表维护功能 +*/ +type AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIRequest struct { + model.Params + // 诊断数据 + _diagnoseDictDto *DiagnoseDictDto +} + +// 初始化AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIRequest对象 +func NewAlibabaAlihealthOutflowDiagnosisSaveorupdateRequest() *AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIRequest{ + return &AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.outflow.diagnosis.saveorupdate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DiagnoseDictDto Setter +// 诊断数据 +func (r *AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIRequest) SetDiagnoseDictDto(_diagnoseDictDto *DiagnoseDictDto) error { + r._diagnoseDictDto = _diagnoseDictDto + r.Set("diagnose_dict_dto", _diagnoseDictDto) + return nil +} + +// DiagnoseDictDto Getter +func (r AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIRequest) GetDiagnoseDictDto() *DiagnoseDictDto { + return r._diagnoseDictDto +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIResponse.go new file mode 100644 index 0000000000..146dd05367 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthoutflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-诊断字典表 API返回值 +alibaba.alihealth.outflow.diagnosis.saveorupdate + +阿里健康-处方外流-对外提供诊断字典表维护功能 +*/ +type AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIResponse struct { + model.CommonResponse + AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIResponseModel +} + +// 处方外流-诊断字典表 成功返回结果 +type AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_outflow_diagnosis_saveorupdate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ServiceResult + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowDiagnosisSaveorupdateResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowDiagnosisSaveorupdateResponse.go deleted file mode 100644 index 3342b5968a..0000000000 --- a/model/alihealthoutflow/AlibabaAlihealthOutflowDiagnosisSaveorupdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthoutflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -处方外流-诊断字典表 API返回值 -alibaba.alihealth.outflow.diagnosis.saveorupdate - -阿里健康-处方外流-对外提供诊断字典表维护功能 -*/ -type AlibabaAlihealthOutflowDiagnosisSaveorupdateAPIResponse struct { - model.CommonResponse - AlibabaAlihealthOutflowDiagnosisSaveorupdateResponse -} - -// 处方外流-诊断字典表 成功返回结果 -type AlibabaAlihealthOutflowDiagnosisSaveorupdateResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_outflow_diagnosis_saveorupdate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ServiceResult - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowDrugSaveorupdateAPIRequest.go b/model/alihealthoutflow/AlibabaAlihealthOutflowDrugSaveorupdateAPIRequest.go new file mode 100644 index 0000000000..22d5635787 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowDrugSaveorupdateAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthoutflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-药品同步接口 API请求 +alibaba.alihealth.outflow.drug.saveorupdate + +处方外流-药品同步接口 +*/ +type AlibabaAlihealthOutflowDrugSaveorupdateAPIRequest struct { + model.Params + // 结果集 + _drugRequest *DrugRequest +} + +// 初始化AlibabaAlihealthOutflowDrugSaveorupdateAPIRequest对象 +func NewAlibabaAlihealthOutflowDrugSaveorupdateRequest() *AlibabaAlihealthOutflowDrugSaveorupdateAPIRequest{ + return &AlibabaAlihealthOutflowDrugSaveorupdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthOutflowDrugSaveorupdateAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.outflow.drug.saveorupdate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthOutflowDrugSaveorupdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DrugRequest Setter +// 结果集 +func (r *AlibabaAlihealthOutflowDrugSaveorupdateAPIRequest) SetDrugRequest(_drugRequest *DrugRequest) error { + r._drugRequest = _drugRequest + r.Set("drug_request", _drugRequest) + return nil +} + +// DrugRequest Getter +func (r AlibabaAlihealthOutflowDrugSaveorupdateAPIRequest) GetDrugRequest() *DrugRequest { + return r._drugRequest +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowDrugSaveorupdateAPIResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowDrugSaveorupdateAPIResponse.go new file mode 100644 index 0000000000..3218cd0d9d --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowDrugSaveorupdateAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthoutflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-药品同步接口 API返回值 +alibaba.alihealth.outflow.drug.saveorupdate + +处方外流-药品同步接口 +*/ +type AlibabaAlihealthOutflowDrugSaveorupdateAPIResponse struct { + model.CommonResponse + AlibabaAlihealthOutflowDrugSaveorupdateAPIResponseModel +} + +// 处方外流-药品同步接口 成功返回结果 +type AlibabaAlihealthOutflowDrugSaveorupdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_outflow_drug_saveorupdate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowDrugSaveorupdateResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowDrugSaveorupdateResponse.go deleted file mode 100644 index 8f8c29427c..0000000000 --- a/model/alihealthoutflow/AlibabaAlihealthOutflowDrugSaveorupdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthoutflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -处方外流-药品同步接口 API返回值 -alibaba.alihealth.outflow.drug.saveorupdate - -处方外流-药品同步接口 -*/ -type AlibabaAlihealthOutflowDrugSaveorupdateAPIResponse struct { - model.CommonResponse - AlibabaAlihealthOutflowDrugSaveorupdateResponse -} - -// 处方外流-药品同步接口 成功返回结果 -type AlibabaAlihealthOutflowDrugSaveorupdateResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_outflow_drug_saveorupdate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowDrugSupervisionQueryAPIRequest.go b/model/alihealthoutflow/AlibabaAlihealthOutflowDrugSupervisionQueryAPIRequest.go new file mode 100644 index 0000000000..3b9974ae92 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowDrugSupervisionQueryAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthoutflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +监管平台药品查询 API请求 +alibaba.alihealth.outflow.drug.supervision.query + +获取监管平台药品数据 +*/ +type AlibabaAlihealthOutflowDrugSupervisionQueryAPIRequest struct { + model.Params + // 请求 + _request1 *OuterDrugVo +} + +// 初始化AlibabaAlihealthOutflowDrugSupervisionQueryAPIRequest对象 +func NewAlibabaAlihealthOutflowDrugSupervisionQueryRequest() *AlibabaAlihealthOutflowDrugSupervisionQueryAPIRequest{ + return &AlibabaAlihealthOutflowDrugSupervisionQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthOutflowDrugSupervisionQueryAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.outflow.drug.supervision.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthOutflowDrugSupervisionQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request1 Setter +// 请求 +func (r *AlibabaAlihealthOutflowDrugSupervisionQueryAPIRequest) SetRequest1(_request1 *OuterDrugVo) error { + r._request1 = _request1 + r.Set("request1", _request1) + return nil +} + +// Request1 Getter +func (r AlibabaAlihealthOutflowDrugSupervisionQueryAPIRequest) GetRequest1() *OuterDrugVo { + return r._request1 +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowDrugSupervisionQueryAPIResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowDrugSupervisionQueryAPIResponse.go new file mode 100644 index 0000000000..1a5865fd82 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowDrugSupervisionQueryAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthoutflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +监管平台药品查询 API返回值 +alibaba.alihealth.outflow.drug.supervision.query + +获取监管平台药品数据 +*/ +type AlibabaAlihealthOutflowDrugSupervisionQueryAPIResponse struct { + model.CommonResponse + AlibabaAlihealthOutflowDrugSupervisionQueryAPIResponseModel +} + +// 监管平台药品查询 成功返回结果 +type AlibabaAlihealthOutflowDrugSupervisionQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_outflow_drug_supervision_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowDrugSupervisionQueryResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowDrugSupervisionQueryResponse.go deleted file mode 100644 index c271193ead..0000000000 --- a/model/alihealthoutflow/AlibabaAlihealthOutflowDrugSupervisionQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthoutflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -监管平台药品查询 API返回值 -alibaba.alihealth.outflow.drug.supervision.query - -获取监管平台药品数据 -*/ -type AlibabaAlihealthOutflowDrugSupervisionQueryAPIResponse struct { - model.CommonResponse - AlibabaAlihealthOutflowDrugSupervisionQueryResponse -} - -// 监管平台药品查询 成功返回结果 -type AlibabaAlihealthOutflowDrugSupervisionQueryResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_outflow_drug_supervision_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowGetbyverifycodeAPIRequest.go b/model/alihealthoutflow/AlibabaAlihealthOutflowGetbyverifycodeAPIRequest.go new file mode 100644 index 0000000000..73e2637652 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowGetbyverifycodeAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthoutflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流药店通过核销码获取处方 API请求 +alibaba.alihealth.outflow.getbyverifycode + +阿里健康对合作药店提供通过核销码查看处方的功能 +*/ +type AlibabaAlihealthOutflowGetbyverifycodeAPIRequest struct { + model.Params + // 入参 + _prescriptionGetByVerifyRequest *PrescriptionGetByVerifyRequest +} + +// 初始化AlibabaAlihealthOutflowGetbyverifycodeAPIRequest对象 +func NewAlibabaAlihealthOutflowGetbyverifycodeRequest() *AlibabaAlihealthOutflowGetbyverifycodeAPIRequest{ + return &AlibabaAlihealthOutflowGetbyverifycodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthOutflowGetbyverifycodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.outflow.getbyverifycode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthOutflowGetbyverifycodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PrescriptionGetByVerifyRequest Setter +// 入参 +func (r *AlibabaAlihealthOutflowGetbyverifycodeAPIRequest) SetPrescriptionGetByVerifyRequest(_prescriptionGetByVerifyRequest *PrescriptionGetByVerifyRequest) error { + r._prescriptionGetByVerifyRequest = _prescriptionGetByVerifyRequest + r.Set("prescription_get_by_verify_request", _prescriptionGetByVerifyRequest) + return nil +} + +// PrescriptionGetByVerifyRequest Getter +func (r AlibabaAlihealthOutflowGetbyverifycodeAPIRequest) GetPrescriptionGetByVerifyRequest() *PrescriptionGetByVerifyRequest { + return r._prescriptionGetByVerifyRequest +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowGetbyverifycodeAPIResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowGetbyverifycodeAPIResponse.go new file mode 100644 index 0000000000..5fe8d178a9 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowGetbyverifycodeAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthoutflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流药店通过核销码获取处方 API返回值 +alibaba.alihealth.outflow.getbyverifycode + +阿里健康对合作药店提供通过核销码查看处方的功能 +*/ +type AlibabaAlihealthOutflowGetbyverifycodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthOutflowGetbyverifycodeAPIResponseModel +} + +// 处方外流药店通过核销码获取处方 成功返回结果 +type AlibabaAlihealthOutflowGetbyverifycodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_outflow_getbyverifycode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowGetbyverifycodeResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowGetbyverifycodeResponse.go deleted file mode 100644 index 45158b69d1..0000000000 --- a/model/alihealthoutflow/AlibabaAlihealthOutflowGetbyverifycodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthoutflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -处方外流药店通过核销码获取处方 API返回值 -alibaba.alihealth.outflow.getbyverifycode - -阿里健康对合作药店提供通过核销码查看处方的功能 -*/ -type AlibabaAlihealthOutflowGetbyverifycodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthOutflowGetbyverifycodeResponse -} - -// 处方外流药店通过核销码获取处方 成功返回结果 -type AlibabaAlihealthOutflowGetbyverifycodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_outflow_getbyverifycode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowOperationinfoSyncAPIRequest.go b/model/alihealthoutflow/AlibabaAlihealthOutflowOperationinfoSyncAPIRequest.go new file mode 100644 index 0000000000..d878f02481 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowOperationinfoSyncAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthoutflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-操作信息同步 API请求 +alibaba.alihealth.outflow.operationinfo.sync + +阿里健康-处方外流-对外提供同步操作信息功能 +*/ +type AlibabaAlihealthOutflowOperationinfoSyncAPIRequest struct { + model.Params + // 入参 + _syncOperationInfoRequest *SyncOperationInfoRequest +} + +// 初始化AlibabaAlihealthOutflowOperationinfoSyncAPIRequest对象 +func NewAlibabaAlihealthOutflowOperationinfoSyncRequest() *AlibabaAlihealthOutflowOperationinfoSyncAPIRequest{ + return &AlibabaAlihealthOutflowOperationinfoSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthOutflowOperationinfoSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.outflow.operationinfo.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthOutflowOperationinfoSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SyncOperationInfoRequest Setter +// 入参 +func (r *AlibabaAlihealthOutflowOperationinfoSyncAPIRequest) SetSyncOperationInfoRequest(_syncOperationInfoRequest *SyncOperationInfoRequest) error { + r._syncOperationInfoRequest = _syncOperationInfoRequest + r.Set("sync_operation_info_request", _syncOperationInfoRequest) + return nil +} + +// SyncOperationInfoRequest Getter +func (r AlibabaAlihealthOutflowOperationinfoSyncAPIRequest) GetSyncOperationInfoRequest() *SyncOperationInfoRequest { + return r._syncOperationInfoRequest +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowOperationinfoSyncAPIResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowOperationinfoSyncAPIResponse.go new file mode 100644 index 0000000000..730831b645 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowOperationinfoSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthoutflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-操作信息同步 API返回值 +alibaba.alihealth.outflow.operationinfo.sync + +阿里健康-处方外流-对外提供同步操作信息功能 +*/ +type AlibabaAlihealthOutflowOperationinfoSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthOutflowOperationinfoSyncAPIResponseModel +} + +// 处方外流-操作信息同步 成功返回结果 +type AlibabaAlihealthOutflowOperationinfoSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_outflow_operationinfo_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ServiceResult + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowOperationinfoSyncResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowOperationinfoSyncResponse.go deleted file mode 100644 index 8f043eb856..0000000000 --- a/model/alihealthoutflow/AlibabaAlihealthOutflowOperationinfoSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthoutflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -处方外流-操作信息同步 API返回值 -alibaba.alihealth.outflow.operationinfo.sync - -阿里健康-处方外流-对外提供同步操作信息功能 -*/ -type AlibabaAlihealthOutflowOperationinfoSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthOutflowOperationinfoSyncResponse -} - -// 处方外流-操作信息同步 成功返回结果 -type AlibabaAlihealthOutflowOperationinfoSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_outflow_operationinfo_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ServiceResult - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowPatientinfoSyncAPIRequest.go b/model/alihealthoutflow/AlibabaAlihealthOutflowPatientinfoSyncAPIRequest.go new file mode 100644 index 0000000000..4f80984623 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowPatientinfoSyncAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthoutflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-患者基础信息同步 API请求 +alibaba.alihealth.outflow.patientinfo.sync + +阿里健康-处方外流-对外提供同步患者基础信息功能 +*/ +type AlibabaAlihealthOutflowPatientinfoSyncAPIRequest struct { + model.Params + // 入参 + _syncPatientInfoRequest *SyncPatientInfoRequest +} + +// 初始化AlibabaAlihealthOutflowPatientinfoSyncAPIRequest对象 +func NewAlibabaAlihealthOutflowPatientinfoSyncRequest() *AlibabaAlihealthOutflowPatientinfoSyncAPIRequest{ + return &AlibabaAlihealthOutflowPatientinfoSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthOutflowPatientinfoSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.outflow.patientinfo.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthOutflowPatientinfoSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SyncPatientInfoRequest Setter +// 入参 +func (r *AlibabaAlihealthOutflowPatientinfoSyncAPIRequest) SetSyncPatientInfoRequest(_syncPatientInfoRequest *SyncPatientInfoRequest) error { + r._syncPatientInfoRequest = _syncPatientInfoRequest + r.Set("sync_patient_info_request", _syncPatientInfoRequest) + return nil +} + +// SyncPatientInfoRequest Getter +func (r AlibabaAlihealthOutflowPatientinfoSyncAPIRequest) GetSyncPatientInfoRequest() *SyncPatientInfoRequest { + return r._syncPatientInfoRequest +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowPatientinfoSyncAPIResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowPatientinfoSyncAPIResponse.go new file mode 100644 index 0000000000..64f123fd4a --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowPatientinfoSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthoutflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-患者基础信息同步 API返回值 +alibaba.alihealth.outflow.patientinfo.sync + +阿里健康-处方外流-对外提供同步患者基础信息功能 +*/ +type AlibabaAlihealthOutflowPatientinfoSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthOutflowPatientinfoSyncAPIResponseModel +} + +// 处方外流-患者基础信息同步 成功返回结果 +type AlibabaAlihealthOutflowPatientinfoSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_outflow_patientinfo_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ServiceResult + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowPatientinfoSyncResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowPatientinfoSyncResponse.go deleted file mode 100644 index fecdad254e..0000000000 --- a/model/alihealthoutflow/AlibabaAlihealthOutflowPatientinfoSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthoutflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -处方外流-患者基础信息同步 API返回值 -alibaba.alihealth.outflow.patientinfo.sync - -阿里健康-处方外流-对外提供同步患者基础信息功能 -*/ -type AlibabaAlihealthOutflowPatientinfoSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthOutflowPatientinfoSyncResponse -} - -// 处方外流-患者基础信息同步 成功返回结果 -type AlibabaAlihealthOutflowPatientinfoSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_outflow_patientinfo_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ServiceResult - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionCreateAPIRequest.go b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionCreateAPIRequest.go new file mode 100644 index 0000000000..7aafd799f7 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionCreateAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthoutflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-创建处方 API请求 +alibaba.alihealth.outflow.prescription.create + +阿里健康-处方外流-对外提供保存处方功能 +*/ +type AlibabaAlihealthOutflowPrescriptionCreateAPIRequest struct { + model.Params + // 保存处方入参 + _createRequest *PrescriptionOutflowUpdateRequest +} + +// 初始化AlibabaAlihealthOutflowPrescriptionCreateAPIRequest对象 +func NewAlibabaAlihealthOutflowPrescriptionCreateRequest() *AlibabaAlihealthOutflowPrescriptionCreateAPIRequest{ + return &AlibabaAlihealthOutflowPrescriptionCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthOutflowPrescriptionCreateAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.outflow.prescription.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthOutflowPrescriptionCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CreateRequest Setter +// 保存处方入参 +func (r *AlibabaAlihealthOutflowPrescriptionCreateAPIRequest) SetCreateRequest(_createRequest *PrescriptionOutflowUpdateRequest) error { + r._createRequest = _createRequest + r.Set("create_request", _createRequest) + return nil +} + +// CreateRequest Getter +func (r AlibabaAlihealthOutflowPrescriptionCreateAPIRequest) GetCreateRequest() *PrescriptionOutflowUpdateRequest { + return r._createRequest +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionCreateAPIResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionCreateAPIResponse.go new file mode 100644 index 0000000000..8a40385b96 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionCreateAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthoutflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-创建处方 API返回值 +alibaba.alihealth.outflow.prescription.create + +阿里健康-处方外流-对外提供保存处方功能 +*/ +type AlibabaAlihealthOutflowPrescriptionCreateAPIResponse struct { + model.CommonResponse + AlibabaAlihealthOutflowPrescriptionCreateAPIResponseModel +} + +// 处方外流-创建处方 成功返回结果 +type AlibabaAlihealthOutflowPrescriptionCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_outflow_prescription_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ServiceResult + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionCreateResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionCreateResponse.go deleted file mode 100644 index 620940a377..0000000000 --- a/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthoutflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -处方外流-创建处方 API返回值 -alibaba.alihealth.outflow.prescription.create - -阿里健康-处方外流-对外提供保存处方功能 -*/ -type AlibabaAlihealthOutflowPrescriptionCreateAPIResponse struct { - model.CommonResponse - AlibabaAlihealthOutflowPrescriptionCreateResponse -} - -// 处方外流-创建处方 成功返回结果 -type AlibabaAlihealthOutflowPrescriptionCreateResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_outflow_prescription_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ServiceResult - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIRequest.go b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIRequest.go new file mode 100644 index 0000000000..77535de55d --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthoutflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +处方同步至医院返回校验结果 API请求 +alibaba.alihealth.outflow.prescription.hospital.verify + +处方同步至医院返回校验结果 +*/ +type AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIRequest struct { + model.Params + // 入参对象 + _updateRequest *PrescriptionOutflowUpdateRequest +} + +// 初始化AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIRequest对象 +func NewAlibabaAlihealthOutflowPrescriptionHospitalVerifyRequest() *AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIRequest{ + return &AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.outflow.prescription.hospital.verify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UpdateRequest Setter +// 入参对象 +func (r *AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIRequest) SetUpdateRequest(_updateRequest *PrescriptionOutflowUpdateRequest) error { + r._updateRequest = _updateRequest + r.Set("update_request", _updateRequest) + return nil +} + +// UpdateRequest Getter +func (r AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIRequest) GetUpdateRequest() *PrescriptionOutflowUpdateRequest { + return r._updateRequest +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIResponse.go new file mode 100644 index 0000000000..372cec29f2 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthoutflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +处方同步至医院返回校验结果 API返回值 +alibaba.alihealth.outflow.prescription.hospital.verify + +处方同步至医院返回校验结果 +*/ +type AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIResponse struct { + model.CommonResponse + AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIResponseModel +} + +// 处方同步至医院返回校验结果 成功返回结果 +type AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_outflow_prescription_hospital_verify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ServiceResult + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionHospitalVerifyResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionHospitalVerifyResponse.go deleted file mode 100644 index 03fc5e26f4..0000000000 --- a/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionHospitalVerifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthoutflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -处方同步至医院返回校验结果 API返回值 -alibaba.alihealth.outflow.prescription.hospital.verify - -处方同步至医院返回校验结果 -*/ -type AlibabaAlihealthOutflowPrescriptionHospitalVerifyAPIResponse struct { - model.CommonResponse - AlibabaAlihealthOutflowPrescriptionHospitalVerifyResponse -} - -// 处方同步至医院返回校验结果 成功返回结果 -type AlibabaAlihealthOutflowPrescriptionHospitalVerifyResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_outflow_prescription_hospital_verify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ServiceResult - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionSyncstatusAPIRequest.go b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionSyncstatusAPIRequest.go new file mode 100644 index 0000000000..5a9a1a3b0d --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionSyncstatusAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthoutflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-处方状态同步 API请求 +alibaba.alihealth.outflow.prescription.syncstatus + +阿里健康-处方外流-对外提供同步处方状态功能 +*/ +type AlibabaAlihealthOutflowPrescriptionSyncstatusAPIRequest struct { + model.Params + // 入参 + _syncStatusRequest *SyncPrescriptionStatusRequest +} + +// 初始化AlibabaAlihealthOutflowPrescriptionSyncstatusAPIRequest对象 +func NewAlibabaAlihealthOutflowPrescriptionSyncstatusRequest() *AlibabaAlihealthOutflowPrescriptionSyncstatusAPIRequest{ + return &AlibabaAlihealthOutflowPrescriptionSyncstatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthOutflowPrescriptionSyncstatusAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.outflow.prescription.syncstatus" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthOutflowPrescriptionSyncstatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SyncStatusRequest Setter +// 入参 +func (r *AlibabaAlihealthOutflowPrescriptionSyncstatusAPIRequest) SetSyncStatusRequest(_syncStatusRequest *SyncPrescriptionStatusRequest) error { + r._syncStatusRequest = _syncStatusRequest + r.Set("sync_status_request", _syncStatusRequest) + return nil +} + +// SyncStatusRequest Getter +func (r AlibabaAlihealthOutflowPrescriptionSyncstatusAPIRequest) GetSyncStatusRequest() *SyncPrescriptionStatusRequest { + return r._syncStatusRequest +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionSyncstatusAPIResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionSyncstatusAPIResponse.go new file mode 100644 index 0000000000..8b60bee808 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionSyncstatusAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthoutflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-处方状态同步 API返回值 +alibaba.alihealth.outflow.prescription.syncstatus + +阿里健康-处方外流-对外提供同步处方状态功能 +*/ +type AlibabaAlihealthOutflowPrescriptionSyncstatusAPIResponse struct { + model.CommonResponse + AlibabaAlihealthOutflowPrescriptionSyncstatusAPIResponseModel +} + +// 处方外流-处方状态同步 成功返回结果 +type AlibabaAlihealthOutflowPrescriptionSyncstatusAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_outflow_prescription_syncstatus_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ServiceResult + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionSyncstatusResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionSyncstatusResponse.go deleted file mode 100644 index 3b98a9871a..0000000000 --- a/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionSyncstatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthoutflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -处方外流-处方状态同步 API返回值 -alibaba.alihealth.outflow.prescription.syncstatus - -阿里健康-处方外流-对外提供同步处方状态功能 -*/ -type AlibabaAlihealthOutflowPrescriptionSyncstatusAPIResponse struct { - model.CommonResponse - AlibabaAlihealthOutflowPrescriptionSyncstatusResponse -} - -// 处方外流-处方状态同步 成功返回结果 -type AlibabaAlihealthOutflowPrescriptionSyncstatusResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_outflow_prescription_syncstatus_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ServiceResult - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionUpdateAPIRequest.go b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionUpdateAPIRequest.go new file mode 100644 index 0000000000..9eb796dca9 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthoutflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-修改处方 API请求 +alibaba.alihealth.outflow.prescription.update + +阿里健康-处方外流-对外提供处方修改功能 +*/ +type AlibabaAlihealthOutflowPrescriptionUpdateAPIRequest struct { + model.Params + // 入参对象 + _updateRequest *PrescriptionOutflowUpdateRequest +} + +// 初始化AlibabaAlihealthOutflowPrescriptionUpdateAPIRequest对象 +func NewAlibabaAlihealthOutflowPrescriptionUpdateRequest() *AlibabaAlihealthOutflowPrescriptionUpdateAPIRequest{ + return &AlibabaAlihealthOutflowPrescriptionUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthOutflowPrescriptionUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.outflow.prescription.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthOutflowPrescriptionUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UpdateRequest Setter +// 入参对象 +func (r *AlibabaAlihealthOutflowPrescriptionUpdateAPIRequest) SetUpdateRequest(_updateRequest *PrescriptionOutflowUpdateRequest) error { + r._updateRequest = _updateRequest + r.Set("update_request", _updateRequest) + return nil +} + +// UpdateRequest Getter +func (r AlibabaAlihealthOutflowPrescriptionUpdateAPIRequest) GetUpdateRequest() *PrescriptionOutflowUpdateRequest { + return r._updateRequest +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionUpdateAPIResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionUpdateAPIResponse.go new file mode 100644 index 0000000000..26212fa62c --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthoutflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-修改处方 API返回值 +alibaba.alihealth.outflow.prescription.update + +阿里健康-处方外流-对外提供处方修改功能 +*/ +type AlibabaAlihealthOutflowPrescriptionUpdateAPIResponse struct { + model.CommonResponse + AlibabaAlihealthOutflowPrescriptionUpdateAPIResponseModel +} + +// 处方外流-修改处方 成功返回结果 +type AlibabaAlihealthOutflowPrescriptionUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_outflow_prescription_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ServiceResult + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionUpdateResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionUpdateResponse.go deleted file mode 100644 index b408df3d81..0000000000 --- a/model/alihealthoutflow/AlibabaAlihealthOutflowPrescriptionUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthoutflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -处方外流-修改处方 API返回值 -alibaba.alihealth.outflow.prescription.update - -阿里健康-处方外流-对外提供处方修改功能 -*/ -type AlibabaAlihealthOutflowPrescriptionUpdateAPIResponse struct { - model.CommonResponse - AlibabaAlihealthOutflowPrescriptionUpdateResponse -} - -// 处方外流-修改处方 成功返回结果 -type AlibabaAlihealthOutflowPrescriptionUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_outflow_prescription_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ServiceResult - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowUsageSaveorupdateAPIRequest.go b/model/alihealthoutflow/AlibabaAlihealthOutflowUsageSaveorupdateAPIRequest.go new file mode 100644 index 0000000000..5b1ebaee74 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowUsageSaveorupdateAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthoutflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-用法字典表 API请求 +alibaba.alihealth.outflow.usage.saveorupdate + +阿里健康-处方外流-对外提供用法字典表维护功能 +*/ +type AlibabaAlihealthOutflowUsageSaveorupdateAPIRequest struct { + model.Params + // 用法数据 + _usageRequest *UsageRequest +} + +// 初始化AlibabaAlihealthOutflowUsageSaveorupdateAPIRequest对象 +func NewAlibabaAlihealthOutflowUsageSaveorupdateRequest() *AlibabaAlihealthOutflowUsageSaveorupdateAPIRequest{ + return &AlibabaAlihealthOutflowUsageSaveorupdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthOutflowUsageSaveorupdateAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.outflow.usage.saveorupdate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthOutflowUsageSaveorupdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UsageRequest Setter +// 用法数据 +func (r *AlibabaAlihealthOutflowUsageSaveorupdateAPIRequest) SetUsageRequest(_usageRequest *UsageRequest) error { + r._usageRequest = _usageRequest + r.Set("usage_request", _usageRequest) + return nil +} + +// UsageRequest Getter +func (r AlibabaAlihealthOutflowUsageSaveorupdateAPIRequest) GetUsageRequest() *UsageRequest { + return r._usageRequest +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowUsageSaveorupdateAPIResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowUsageSaveorupdateAPIResponse.go new file mode 100644 index 0000000000..765450d1ed --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowUsageSaveorupdateAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthoutflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-用法字典表 API返回值 +alibaba.alihealth.outflow.usage.saveorupdate + +阿里健康-处方外流-对外提供用法字典表维护功能 +*/ +type AlibabaAlihealthOutflowUsageSaveorupdateAPIResponse struct { + model.CommonResponse + AlibabaAlihealthOutflowUsageSaveorupdateAPIResponseModel +} + +// 处方外流-用法字典表 成功返回结果 +type AlibabaAlihealthOutflowUsageSaveorupdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_outflow_usage_saveorupdate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ServiceResult + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowUsageSaveorupdateResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowUsageSaveorupdateResponse.go deleted file mode 100644 index c9696bec6b..0000000000 --- a/model/alihealthoutflow/AlibabaAlihealthOutflowUsageSaveorupdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthoutflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -处方外流-用法字典表 API返回值 -alibaba.alihealth.outflow.usage.saveorupdate - -阿里健康-处方外流-对外提供用法字典表维护功能 -*/ -type AlibabaAlihealthOutflowUsageSaveorupdateAPIResponse struct { - model.CommonResponse - AlibabaAlihealthOutflowUsageSaveorupdateResponse -} - -// 处方外流-用法字典表 成功返回结果 -type AlibabaAlihealthOutflowUsageSaveorupdateResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_outflow_usage_saveorupdate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ServiceResult - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowVerifyAPIRequest.go b/model/alihealthoutflow/AlibabaAlihealthOutflowVerifyAPIRequest.go new file mode 100644 index 0000000000..5ca72c4ec9 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowVerifyAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthoutflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流药店通过核销码核销处方 API请求 +alibaba.alihealth.outflow.verify + +处方外流药店通过核销码核销处方 +*/ +type AlibabaAlihealthOutflowVerifyAPIRequest struct { + model.Params + // 入参 + _prescriptionVerifyRequest *PrescriptionVerifyRequest +} + +// 初始化AlibabaAlihealthOutflowVerifyAPIRequest对象 +func NewAlibabaAlihealthOutflowVerifyRequest() *AlibabaAlihealthOutflowVerifyAPIRequest{ + return &AlibabaAlihealthOutflowVerifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthOutflowVerifyAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.outflow.verify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthOutflowVerifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PrescriptionVerifyRequest Setter +// 入参 +func (r *AlibabaAlihealthOutflowVerifyAPIRequest) SetPrescriptionVerifyRequest(_prescriptionVerifyRequest *PrescriptionVerifyRequest) error { + r._prescriptionVerifyRequest = _prescriptionVerifyRequest + r.Set("prescription_verify_request", _prescriptionVerifyRequest) + return nil +} + +// PrescriptionVerifyRequest Getter +func (r AlibabaAlihealthOutflowVerifyAPIRequest) GetPrescriptionVerifyRequest() *PrescriptionVerifyRequest { + return r._prescriptionVerifyRequest +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowVerifyAPIResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowVerifyAPIResponse.go new file mode 100644 index 0000000000..106498f9d4 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowVerifyAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthoutflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流药店通过核销码核销处方 API返回值 +alibaba.alihealth.outflow.verify + +处方外流药店通过核销码核销处方 +*/ +type AlibabaAlihealthOutflowVerifyAPIResponse struct { + model.CommonResponse + AlibabaAlihealthOutflowVerifyAPIResponseModel +} + +// 处方外流药店通过核销码核销处方 成功返回结果 +type AlibabaAlihealthOutflowVerifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_outflow_verify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowVerifyResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowVerifyResponse.go deleted file mode 100644 index 34a5e9bb81..0000000000 --- a/model/alihealthoutflow/AlibabaAlihealthOutflowVerifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthoutflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -处方外流药店通过核销码核销处方 API返回值 -alibaba.alihealth.outflow.verify - -处方外流药店通过核销码核销处方 -*/ -type AlibabaAlihealthOutflowVerifyAPIResponse struct { - model.CommonResponse - AlibabaAlihealthOutflowVerifyResponse -} - -// 处方外流药店通过核销码核销处方 成功返回结果 -type AlibabaAlihealthOutflowVerifyResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_outflow_verify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowVisitinfoSyncAPIRequest.go b/model/alihealthoutflow/AlibabaAlihealthOutflowVisitinfoSyncAPIRequest.go new file mode 100644 index 0000000000..1066944874 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowVisitinfoSyncAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthoutflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-问诊、处方同步 API请求 +alibaba.alihealth.outflow.visitinfo.sync + +阿里健康-处方外流-对外提供问诊、处方功能 +*/ +type AlibabaAlihealthOutflowVisitinfoSyncAPIRequest struct { + model.Params + // 入参 + _syncVisitInfoRequest *SyncVisitInfoRequest +} + +// 初始化AlibabaAlihealthOutflowVisitinfoSyncAPIRequest对象 +func NewAlibabaAlihealthOutflowVisitinfoSyncRequest() *AlibabaAlihealthOutflowVisitinfoSyncAPIRequest{ + return &AlibabaAlihealthOutflowVisitinfoSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthOutflowVisitinfoSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.outflow.visitinfo.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthOutflowVisitinfoSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SyncVisitInfoRequest Setter +// 入参 +func (r *AlibabaAlihealthOutflowVisitinfoSyncAPIRequest) SetSyncVisitInfoRequest(_syncVisitInfoRequest *SyncVisitInfoRequest) error { + r._syncVisitInfoRequest = _syncVisitInfoRequest + r.Set("sync_visit_info_request", _syncVisitInfoRequest) + return nil +} + +// SyncVisitInfoRequest Getter +func (r AlibabaAlihealthOutflowVisitinfoSyncAPIRequest) GetSyncVisitInfoRequest() *SyncVisitInfoRequest { + return r._syncVisitInfoRequest +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowVisitinfoSyncAPIResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowVisitinfoSyncAPIResponse.go new file mode 100644 index 0000000000..553e386592 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthOutflowVisitinfoSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthoutflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +处方外流-问诊、处方同步 API返回值 +alibaba.alihealth.outflow.visitinfo.sync + +阿里健康-处方外流-对外提供问诊、处方功能 +*/ +type AlibabaAlihealthOutflowVisitinfoSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthOutflowVisitinfoSyncAPIResponseModel +} + +// 处方外流-问诊、处方同步 成功返回结果 +type AlibabaAlihealthOutflowVisitinfoSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_outflow_visitinfo_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ServiceResult + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/alihealthoutflow/AlibabaAlihealthOutflowVisitinfoSyncResponse.go b/model/alihealthoutflow/AlibabaAlihealthOutflowVisitinfoSyncResponse.go deleted file mode 100644 index 0532a4a9c9..0000000000 --- a/model/alihealthoutflow/AlibabaAlihealthOutflowVisitinfoSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthoutflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -处方外流-问诊、处方同步 API返回值 -alibaba.alihealth.outflow.visitinfo.sync - -阿里健康-处方外流-对外提供问诊、处方功能 -*/ -type AlibabaAlihealthOutflowVisitinfoSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthOutflowVisitinfoSyncResponse -} - -// 处方外流-问诊、处方同步 成功返回结果 -type AlibabaAlihealthOutflowVisitinfoSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_outflow_visitinfo_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ServiceResult - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/alihealthoutflow/AlibabaAlihealthShortUrlGetAPIRequest.go b/model/alihealthoutflow/AlibabaAlihealthShortUrlGetAPIRequest.go new file mode 100644 index 0000000000..23403afb94 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthShortUrlGetAPIRequest.go @@ -0,0 +1,66 @@ +package alihealthoutflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +支付宝短链跳转三方h5通用接口 API请求 +alibaba.alihealth.short.url.get + +支付宝短链跳转三方h5通用接口 +*/ +type AlibabaAlihealthShortUrlGetAPIRequest struct { + model.Params + // 三方h5 + _url string + // 参数替换列表 + _params []string +} + +// 初始化AlibabaAlihealthShortUrlGetAPIRequest对象 +func NewAlibabaAlihealthShortUrlGetRequest() *AlibabaAlihealthShortUrlGetAPIRequest{ + return &AlibabaAlihealthShortUrlGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthShortUrlGetAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.short.url.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthShortUrlGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Url Setter +// 三方h5 +func (r *AlibabaAlihealthShortUrlGetAPIRequest) SetUrl(_url string) error { + r._url = _url + r.Set("url", _url) + return nil +} + +// Url Getter +func (r AlibabaAlihealthShortUrlGetAPIRequest) GetUrl() string { + return r._url +} +// Params Setter +// 参数替换列表 +func (r *AlibabaAlihealthShortUrlGetAPIRequest) SetParams(_params []string) error { + r._params = _params + r.Set("params", _params) + return nil +} + +// Params Getter +func (r AlibabaAlihealthShortUrlGetAPIRequest) GetParams() []string { + return r._params +} diff --git a/model/alihealthoutflow/AlibabaAlihealthShortUrlGetAPIResponse.go b/model/alihealthoutflow/AlibabaAlihealthShortUrlGetAPIResponse.go new file mode 100644 index 0000000000..2cac812161 --- /dev/null +++ b/model/alihealthoutflow/AlibabaAlihealthShortUrlGetAPIResponse.go @@ -0,0 +1,27 @@ +package alihealthoutflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +支付宝短链跳转三方h5通用接口 API返回值 +alibaba.alihealth.short.url.get + +支付宝短链跳转三方h5通用接口 +*/ +type AlibabaAlihealthShortUrlGetAPIResponse struct { + model.CommonResponse + AlibabaAlihealthShortUrlGetAPIResponseModel +} + +// 支付宝短链跳转三方h5通用接口 成功返回结果 +type AlibabaAlihealthShortUrlGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_short_url_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/alihealthoutflow/AlibabaAlihealthShortUrlGetResponse.go b/model/alihealthoutflow/AlibabaAlihealthShortUrlGetResponse.go deleted file mode 100644 index 5f8dfaebcb..0000000000 --- a/model/alihealthoutflow/AlibabaAlihealthShortUrlGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihealthoutflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -支付宝短链跳转三方h5通用接口 API返回值 -alibaba.alihealth.short.url.get - -支付宝短链跳转三方h5通用接口 -*/ -type AlibabaAlihealthShortUrlGetAPIResponse struct { - model.CommonResponse - AlibabaAlihealthShortUrlGetResponse -} - -// 支付宝短链跳转三方h5通用接口 成功返回结果 -type AlibabaAlihealthShortUrlGetResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_short_url_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/alihealthpw/AlibabaAlihealthPwApplynodeUpdateAPIRequest.go b/model/alihealthpw/AlibabaAlihealthPwApplynodeUpdateAPIRequest.go new file mode 100644 index 0000000000..b11b05b754 --- /dev/null +++ b/model/alihealthpw/AlibabaAlihealthPwApplynodeUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthpw + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +申请节点变更回调 API请求 +alibaba.alihealth.pw.applynode.update + +基金会回调阿里健康更新药品援助申请单的状态 +*/ +type AlibabaAlihealthPwApplynodeUpdateAPIRequest struct { + model.Params + // 回调入参 + _body *AuditRollbackRo +} + +// 初始化AlibabaAlihealthPwApplynodeUpdateAPIRequest对象 +func NewAlibabaAlihealthPwApplynodeUpdateRequest() *AlibabaAlihealthPwApplynodeUpdateAPIRequest{ + return &AlibabaAlihealthPwApplynodeUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthPwApplynodeUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.pw.applynode.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthPwApplynodeUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Body Setter +// 回调入参 +func (r *AlibabaAlihealthPwApplynodeUpdateAPIRequest) SetBody(_body *AuditRollbackRo) error { + r._body = _body + r.Set("body", _body) + return nil +} + +// Body Getter +func (r AlibabaAlihealthPwApplynodeUpdateAPIRequest) GetBody() *AuditRollbackRo { + return r._body +} diff --git a/model/alihealthpw/AlibabaAlihealthPwApplynodeUpdateAPIResponse.go b/model/alihealthpw/AlibabaAlihealthPwApplynodeUpdateAPIResponse.go new file mode 100644 index 0000000000..2279cad2a1 --- /dev/null +++ b/model/alihealthpw/AlibabaAlihealthPwApplynodeUpdateAPIResponse.go @@ -0,0 +1,29 @@ +package alihealthpw + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +申请节点变更回调 API返回值 +alibaba.alihealth.pw.applynode.update + +基金会回调阿里健康更新药品援助申请单的状态 +*/ +type AlibabaAlihealthPwApplynodeUpdateAPIResponse struct { + model.CommonResponse + AlibabaAlihealthPwApplynodeUpdateAPIResponseModel +} + +// 申请节点变更回调 成功返回结果 +type AlibabaAlihealthPwApplynodeUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_pw_applynode_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // pap项目状态码 + PapCode string `json:"pap_code,omitempty" xml:"pap_code,omitempty"` + // pap项目状态描述 + PapMessage string `json:"pap_message,omitempty" xml:"pap_message,omitempty"` +} diff --git a/model/alihealthpw/AlibabaAlihealthPwApplynodeUpdateResponse.go b/model/alihealthpw/AlibabaAlihealthPwApplynodeUpdateResponse.go deleted file mode 100644 index 5f4de2e17f..0000000000 --- a/model/alihealthpw/AlibabaAlihealthPwApplynodeUpdateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package alihealthpw - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -申请节点变更回调 API返回值 -alibaba.alihealth.pw.applynode.update - -基金会回调阿里健康更新药品援助申请单的状态 -*/ -type AlibabaAlihealthPwApplynodeUpdateAPIResponse struct { - model.CommonResponse - AlibabaAlihealthPwApplynodeUpdateResponse -} - -// 申请节点变更回调 成功返回结果 -type AlibabaAlihealthPwApplynodeUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_pw_applynode_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // pap项目状态码 - PapCode string `json:"pap_code,omitempty" xml:"pap_code,omitempty"` - // pap项目状态描述 - PapMessage string `json:"pap_message,omitempty" xml:"pap_message,omitempty"` -} diff --git a/model/alihealthpw/AlibabaAlihealthPwApplynodeUpdatenameAPIRequest.go b/model/alihealthpw/AlibabaAlihealthPwApplynodeUpdatenameAPIRequest.go new file mode 100644 index 0000000000..fd489371f0 --- /dev/null +++ b/model/alihealthpw/AlibabaAlihealthPwApplynodeUpdatenameAPIRequest.go @@ -0,0 +1,52 @@ +package alihealthpw + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +回调变更患者姓名 API请求 +alibaba.alihealth.pw.applynode.updatename + +回调变更患者姓名 +*/ +type AlibabaAlihealthPwApplynodeUpdatenameAPIRequest struct { + model.Params + // 回调入参 + _body *ModifyNameRo +} + +// 初始化AlibabaAlihealthPwApplynodeUpdatenameAPIRequest对象 +func NewAlibabaAlihealthPwApplynodeUpdatenameRequest() *AlibabaAlihealthPwApplynodeUpdatenameAPIRequest{ + return &AlibabaAlihealthPwApplynodeUpdatenameAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthPwApplynodeUpdatenameAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.pw.applynode.updatename" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthPwApplynodeUpdatenameAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Body Setter +// 回调入参 +func (r *AlibabaAlihealthPwApplynodeUpdatenameAPIRequest) SetBody(_body *ModifyNameRo) error { + r._body = _body + r.Set("body", _body) + return nil +} + +// Body Getter +func (r AlibabaAlihealthPwApplynodeUpdatenameAPIRequest) GetBody() *ModifyNameRo { + return r._body +} diff --git a/model/alihealthpw/AlibabaAlihealthPwApplynodeUpdatenameAPIResponse.go b/model/alihealthpw/AlibabaAlihealthPwApplynodeUpdatenameAPIResponse.go new file mode 100644 index 0000000000..45de3afcc1 --- /dev/null +++ b/model/alihealthpw/AlibabaAlihealthPwApplynodeUpdatenameAPIResponse.go @@ -0,0 +1,29 @@ +package alihealthpw + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +回调变更患者姓名 API返回值 +alibaba.alihealth.pw.applynode.updatename + +回调变更患者姓名 +*/ +type AlibabaAlihealthPwApplynodeUpdatenameAPIResponse struct { + model.CommonResponse + AlibabaAlihealthPwApplynodeUpdatenameAPIResponseModel +} + +// 回调变更患者姓名 成功返回结果 +type AlibabaAlihealthPwApplynodeUpdatenameAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_pw_applynode_updatename_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // pap项目状态码 + PapCode string `json:"pap_code,omitempty" xml:"pap_code,omitempty"` + // pap项目状态描述 + PapMessage string `json:"pap_message,omitempty" xml:"pap_message,omitempty"` +} diff --git a/model/alihealthpw/AlibabaAlihealthPwApplynodeUpdatenameResponse.go b/model/alihealthpw/AlibabaAlihealthPwApplynodeUpdatenameResponse.go deleted file mode 100644 index a9647c7557..0000000000 --- a/model/alihealthpw/AlibabaAlihealthPwApplynodeUpdatenameResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package alihealthpw - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -回调变更患者姓名 API返回值 -alibaba.alihealth.pw.applynode.updatename - -回调变更患者姓名 -*/ -type AlibabaAlihealthPwApplynodeUpdatenameAPIResponse struct { - model.CommonResponse - AlibabaAlihealthPwApplynodeUpdatenameResponse -} - -// 回调变更患者姓名 成功返回结果 -type AlibabaAlihealthPwApplynodeUpdatenameResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_pw_applynode_updatename_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // pap项目状态码 - PapCode string `json:"pap_code,omitempty" xml:"pap_code,omitempty"` - // pap项目状态描述 - PapMessage string `json:"pap_message,omitempty" xml:"pap_message,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeBaseLabelSubmitAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeBaseLabelSubmitAPIRequest.go new file mode 100644 index 0000000000..2f84c4d194 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeBaseLabelSubmitAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交标签库 API请求 +alibaba.alihouse.newhome.base.label.submit + +提交标签库 +*/ +type AlibabaAlihouseNewhomeBaseLabelSubmitAPIRequest struct { + model.Params + // 标签列表 + _labels []BaseLabelDto +} + +// 初始化AlibabaAlihouseNewhomeBaseLabelSubmitAPIRequest对象 +func NewAlibabaAlihouseNewhomeBaseLabelSubmitRequest() *AlibabaAlihouseNewhomeBaseLabelSubmitAPIRequest{ + return &AlibabaAlihouseNewhomeBaseLabelSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeBaseLabelSubmitAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.base.label.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeBaseLabelSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Labels Setter +// 标签列表 +func (r *AlibabaAlihouseNewhomeBaseLabelSubmitAPIRequest) SetLabels(_labels []BaseLabelDto) error { + r._labels = _labels + r.Set("labels", _labels) + return nil +} + +// Labels Getter +func (r AlibabaAlihouseNewhomeBaseLabelSubmitAPIRequest) GetLabels() []BaseLabelDto { + return r._labels +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeBaseLabelSubmitAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeBaseLabelSubmitAPIResponse.go new file mode 100644 index 0000000000..333512ed48 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeBaseLabelSubmitAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交标签库 API返回值 +alibaba.alihouse.newhome.base.label.submit + +提交标签库 +*/ +type AlibabaAlihouseNewhomeBaseLabelSubmitAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeBaseLabelSubmitAPIResponseModel +} + +// 提交标签库 成功返回结果 +type AlibabaAlihouseNewhomeBaseLabelSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_base_label_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeBaseLabelSubmitResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeBaseLabelSubmitResponse.go b/model/alihouse/AlibabaAlihouseNewhomeBaseLabelSubmitResponse.go deleted file mode 100644 index 2116bdff44..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeBaseLabelSubmitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交标签库 API返回值 -alibaba.alihouse.newhome.base.label.submit - -提交标签库 -*/ -type AlibabaAlihouseNewhomeBaseLabelSubmitAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeBaseLabelSubmitResponse -} - -// 提交标签库 成功返回结果 -type AlibabaAlihouseNewhomeBaseLabelSubmitResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_base_label_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeBaseLabelSubmitResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeBusinessSyncAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeBusinessSyncAPIRequest.go new file mode 100644 index 0000000000..738dc701b8 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeBusinessSyncAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商圈数据同步 API请求 +alibaba.alihouse.newhome.business.sync + +商圈数据同步 +*/ +type AlibabaAlihouseNewhomeBusinessSyncAPIRequest struct { + model.Params + // 入参数据 + _baseBusinessDto *BaseBusinessDto +} + +// 初始化AlibabaAlihouseNewhomeBusinessSyncAPIRequest对象 +func NewAlibabaAlihouseNewhomeBusinessSyncRequest() *AlibabaAlihouseNewhomeBusinessSyncAPIRequest{ + return &AlibabaAlihouseNewhomeBusinessSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeBusinessSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.business.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeBusinessSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BaseBusinessDto Setter +// 入参数据 +func (r *AlibabaAlihouseNewhomeBusinessSyncAPIRequest) SetBaseBusinessDto(_baseBusinessDto *BaseBusinessDto) error { + r._baseBusinessDto = _baseBusinessDto + r.Set("base_business_dto", _baseBusinessDto) + return nil +} + +// BaseBusinessDto Getter +func (r AlibabaAlihouseNewhomeBusinessSyncAPIRequest) GetBaseBusinessDto() *BaseBusinessDto { + return r._baseBusinessDto +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeBusinessSyncAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeBusinessSyncAPIResponse.go new file mode 100644 index 0000000000..d174a97563 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeBusinessSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商圈数据同步 API返回值 +alibaba.alihouse.newhome.business.sync + +商圈数据同步 +*/ +type AlibabaAlihouseNewhomeBusinessSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeBusinessSyncAPIResponseModel +} + +// 商圈数据同步 成功返回结果 +type AlibabaAlihouseNewhomeBusinessSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_business_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeBusinessSyncResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeBusinessSyncResponse.go b/model/alihouse/AlibabaAlihouseNewhomeBusinessSyncResponse.go deleted file mode 100644 index 89f59754aa..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeBusinessSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商圈数据同步 API返回值 -alibaba.alihouse.newhome.business.sync - -商圈数据同步 -*/ -type AlibabaAlihouseNewhomeBusinessSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeBusinessSyncResponse -} - -// 商圈数据同步 成功返回结果 -type AlibabaAlihouseNewhomeBusinessSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_business_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeBusinessSyncResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeCouponSubmitAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeCouponSubmitAPIRequest.go new file mode 100644 index 0000000000..6e4991ef3d --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeCouponSubmitAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交专车优惠券活动 API请求 +alibaba.alihouse.newhome.coupon.submit + +提交专车优惠券活动 +*/ +type AlibabaAlihouseNewhomeCouponSubmitAPIRequest struct { + model.Params + // 打车券活动对象 + _couponDto *MarketingCouponDto +} + +// 初始化AlibabaAlihouseNewhomeCouponSubmitAPIRequest对象 +func NewAlibabaAlihouseNewhomeCouponSubmitRequest() *AlibabaAlihouseNewhomeCouponSubmitAPIRequest{ + return &AlibabaAlihouseNewhomeCouponSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeCouponSubmitAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.coupon.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeCouponSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CouponDto Setter +// 打车券活动对象 +func (r *AlibabaAlihouseNewhomeCouponSubmitAPIRequest) SetCouponDto(_couponDto *MarketingCouponDto) error { + r._couponDto = _couponDto + r.Set("coupon_dto", _couponDto) + return nil +} + +// CouponDto Getter +func (r AlibabaAlihouseNewhomeCouponSubmitAPIRequest) GetCouponDto() *MarketingCouponDto { + return r._couponDto +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeCouponSubmitAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeCouponSubmitAPIResponse.go new file mode 100644 index 0000000000..a8d5086e06 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeCouponSubmitAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交专车优惠券活动 API返回值 +alibaba.alihouse.newhome.coupon.submit + +提交专车优惠券活动 +*/ +type AlibabaAlihouseNewhomeCouponSubmitAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeCouponSubmitAPIResponseModel +} + +// 提交专车优惠券活动 成功返回结果 +type AlibabaAlihouseNewhomeCouponSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_coupon_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeCouponSubmitResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeCouponSubmitResponse.go b/model/alihouse/AlibabaAlihouseNewhomeCouponSubmitResponse.go deleted file mode 100644 index c79fd73ef0..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeCouponSubmitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交专车优惠券活动 API返回值 -alibaba.alihouse.newhome.coupon.submit - -提交专车优惠券活动 -*/ -type AlibabaAlihouseNewhomeCouponSubmitAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeCouponSubmitResponse -} - -// 提交专车优惠券活动 成功返回结果 -type AlibabaAlihouseNewhomeCouponSubmitResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_coupon_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeCouponSubmitResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeLayoutSyncAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeLayoutSyncAPIRequest.go new file mode 100644 index 0000000000..25122160d8 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeLayoutSyncAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +房通户型数据同步 API请求 +alibaba.alihouse.newhome.layout.sync + +房通户型数据同步 +*/ +type AlibabaAlihouseNewhomeLayoutSyncAPIRequest struct { + model.Params + // 数据 + _syncProjectLayoutData *SyncProjectLayoutDto +} + +// 初始化AlibabaAlihouseNewhomeLayoutSyncAPIRequest对象 +func NewAlibabaAlihouseNewhomeLayoutSyncRequest() *AlibabaAlihouseNewhomeLayoutSyncAPIRequest{ + return &AlibabaAlihouseNewhomeLayoutSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeLayoutSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.layout.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeLayoutSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SyncProjectLayoutData Setter +// 数据 +func (r *AlibabaAlihouseNewhomeLayoutSyncAPIRequest) SetSyncProjectLayoutData(_syncProjectLayoutData *SyncProjectLayoutDto) error { + r._syncProjectLayoutData = _syncProjectLayoutData + r.Set("sync_project_layout_data", _syncProjectLayoutData) + return nil +} + +// SyncProjectLayoutData Getter +func (r AlibabaAlihouseNewhomeLayoutSyncAPIRequest) GetSyncProjectLayoutData() *SyncProjectLayoutDto { + return r._syncProjectLayoutData +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeLayoutSyncAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeLayoutSyncAPIResponse.go new file mode 100644 index 0000000000..4376ff0a44 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeLayoutSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +房通户型数据同步 API返回值 +alibaba.alihouse.newhome.layout.sync + +房通户型数据同步 +*/ +type AlibabaAlihouseNewhomeLayoutSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeLayoutSyncAPIResponseModel +} + +// 房通户型数据同步 成功返回结果 +type AlibabaAlihouseNewhomeLayoutSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_layout_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeLayoutSyncResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeLayoutSyncResponse.go b/model/alihouse/AlibabaAlihouseNewhomeLayoutSyncResponse.go deleted file mode 100644 index 76b0c2d6dd..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeLayoutSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -房通户型数据同步 API返回值 -alibaba.alihouse.newhome.layout.sync - -房通户型数据同步 -*/ -type AlibabaAlihouseNewhomeLayoutSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeLayoutSyncResponse -} - -// 房通户型数据同步 成功返回结果 -type AlibabaAlihouseNewhomeLayoutSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_layout_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeLayoutSyncResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeLineSyncAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeLineSyncAPIRequest.go new file mode 100644 index 0000000000..2cd0f887d0 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeLineSyncAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +环线数据同步 API请求 +alibaba.alihouse.newhome.line.sync + +环线数据同步 +*/ +type AlibabaAlihouseNewhomeLineSyncAPIRequest struct { + model.Params + // 环线入参 + _baseLoopLineDto *BaseLoopLineDto +} + +// 初始化AlibabaAlihouseNewhomeLineSyncAPIRequest对象 +func NewAlibabaAlihouseNewhomeLineSyncRequest() *AlibabaAlihouseNewhomeLineSyncAPIRequest{ + return &AlibabaAlihouseNewhomeLineSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeLineSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.line.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeLineSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BaseLoopLineDto Setter +// 环线入参 +func (r *AlibabaAlihouseNewhomeLineSyncAPIRequest) SetBaseLoopLineDto(_baseLoopLineDto *BaseLoopLineDto) error { + r._baseLoopLineDto = _baseLoopLineDto + r.Set("base_loop_line_dto", _baseLoopLineDto) + return nil +} + +// BaseLoopLineDto Getter +func (r AlibabaAlihouseNewhomeLineSyncAPIRequest) GetBaseLoopLineDto() *BaseLoopLineDto { + return r._baseLoopLineDto +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeLineSyncAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeLineSyncAPIResponse.go new file mode 100644 index 0000000000..c93a7157e5 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeLineSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +环线数据同步 API返回值 +alibaba.alihouse.newhome.line.sync + +环线数据同步 +*/ +type AlibabaAlihouseNewhomeLineSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeLineSyncAPIResponseModel +} + +// 环线数据同步 成功返回结果 +type AlibabaAlihouseNewhomeLineSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_line_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeLineSyncResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeLineSyncResponse.go b/model/alihouse/AlibabaAlihouseNewhomeLineSyncResponse.go deleted file mode 100644 index d1a750affd..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeLineSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -环线数据同步 API返回值 -alibaba.alihouse.newhome.line.sync - -环线数据同步 -*/ -type AlibabaAlihouseNewhomeLineSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeLineSyncResponse -} - -// 环线数据同步 成功返回结果 -type AlibabaAlihouseNewhomeLineSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_line_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeLineSyncResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeMetroSyncAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeMetroSyncAPIRequest.go new file mode 100644 index 0000000000..9101acba55 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeMetroSyncAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +地铁数据同步 API请求 +alibaba.alihouse.newhome.metro.sync + +地铁数据同步 +*/ +type AlibabaAlihouseNewhomeMetroSyncAPIRequest struct { + model.Params + // 地铁入参数据 + _baseMetroLineDto *BaseMetroLineDto +} + +// 初始化AlibabaAlihouseNewhomeMetroSyncAPIRequest对象 +func NewAlibabaAlihouseNewhomeMetroSyncRequest() *AlibabaAlihouseNewhomeMetroSyncAPIRequest{ + return &AlibabaAlihouseNewhomeMetroSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeMetroSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.metro.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeMetroSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BaseMetroLineDto Setter +// 地铁入参数据 +func (r *AlibabaAlihouseNewhomeMetroSyncAPIRequest) SetBaseMetroLineDto(_baseMetroLineDto *BaseMetroLineDto) error { + r._baseMetroLineDto = _baseMetroLineDto + r.Set("base_metro_line_dto", _baseMetroLineDto) + return nil +} + +// BaseMetroLineDto Getter +func (r AlibabaAlihouseNewhomeMetroSyncAPIRequest) GetBaseMetroLineDto() *BaseMetroLineDto { + return r._baseMetroLineDto +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeMetroSyncAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeMetroSyncAPIResponse.go new file mode 100644 index 0000000000..b8fe63bfd1 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeMetroSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +地铁数据同步 API返回值 +alibaba.alihouse.newhome.metro.sync + +地铁数据同步 +*/ +type AlibabaAlihouseNewhomeMetroSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeMetroSyncAPIResponseModel +} + +// 地铁数据同步 成功返回结果 +type AlibabaAlihouseNewhomeMetroSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_metro_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeMetroSyncResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeMetroSyncResponse.go b/model/alihouse/AlibabaAlihouseNewhomeMetroSyncResponse.go deleted file mode 100644 index ff7b6896bb..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeMetroSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -地铁数据同步 API返回值 -alibaba.alihouse.newhome.metro.sync - -地铁数据同步 -*/ -type AlibabaAlihouseNewhomeMetroSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeMetroSyncResponse -} - -// 地铁数据同步 成功返回结果 -type AlibabaAlihouseNewhomeMetroSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_metro_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeMetroSyncResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomePictureSyncAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomePictureSyncAPIRequest.go new file mode 100644 index 0000000000..e5c907d29b --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomePictureSyncAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +图片数据同步 API请求 +alibaba.alihouse.newhome.picture.sync + +图片数据同步 +*/ +type AlibabaAlihouseNewhomePictureSyncAPIRequest struct { + model.Params + // 数据 + _projectPictureData *ProjectPictureDto +} + +// 初始化AlibabaAlihouseNewhomePictureSyncAPIRequest对象 +func NewAlibabaAlihouseNewhomePictureSyncRequest() *AlibabaAlihouseNewhomePictureSyncAPIRequest{ + return &AlibabaAlihouseNewhomePictureSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomePictureSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.picture.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomePictureSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProjectPictureData Setter +// 数据 +func (r *AlibabaAlihouseNewhomePictureSyncAPIRequest) SetProjectPictureData(_projectPictureData *ProjectPictureDto) error { + r._projectPictureData = _projectPictureData + r.Set("project_picture_data", _projectPictureData) + return nil +} + +// ProjectPictureData Getter +func (r AlibabaAlihouseNewhomePictureSyncAPIRequest) GetProjectPictureData() *ProjectPictureDto { + return r._projectPictureData +} diff --git a/model/alihouse/AlibabaAlihouseNewhomePictureSyncAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomePictureSyncAPIResponse.go new file mode 100644 index 0000000000..6fe2260ea8 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomePictureSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +图片数据同步 API返回值 +alibaba.alihouse.newhome.picture.sync + +图片数据同步 +*/ +type AlibabaAlihouseNewhomePictureSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomePictureSyncAPIResponseModel +} + +// 图片数据同步 成功返回结果 +type AlibabaAlihouseNewhomePictureSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_picture_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomePictureSyncResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomePictureSyncResponse.go b/model/alihouse/AlibabaAlihouseNewhomePictureSyncResponse.go deleted file mode 100644 index 6028dcb899..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomePictureSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -图片数据同步 API返回值 -alibaba.alihouse.newhome.picture.sync - -图片数据同步 -*/ -type AlibabaAlihouseNewhomePictureSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomePictureSyncResponse -} - -// 图片数据同步 成功返回结果 -type AlibabaAlihouseNewhomePictureSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_picture_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomePictureSyncResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectAdviserDeleteAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeProjectAdviserDeleteAPIRequest.go new file mode 100644 index 0000000000..4c4e64d601 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectAdviserDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除楼盘顾问 API请求 +alibaba.alihouse.newhome.project.adviser.delete + +删除楼盘顾问 +*/ +type AlibabaAlihouseNewhomeProjectAdviserDeleteAPIRequest struct { + model.Params + // 外部顾问ID + _outerConsultantId string +} + +// 初始化AlibabaAlihouseNewhomeProjectAdviserDeleteAPIRequest对象 +func NewAlibabaAlihouseNewhomeProjectAdviserDeleteRequest() *AlibabaAlihouseNewhomeProjectAdviserDeleteAPIRequest{ + return &AlibabaAlihouseNewhomeProjectAdviserDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeProjectAdviserDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.project.adviser.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeProjectAdviserDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterConsultantId Setter +// 外部顾问ID +func (r *AlibabaAlihouseNewhomeProjectAdviserDeleteAPIRequest) SetOuterConsultantId(_outerConsultantId string) error { + r._outerConsultantId = _outerConsultantId + r.Set("outer_consultant_id", _outerConsultantId) + return nil +} + +// OuterConsultantId Getter +func (r AlibabaAlihouseNewhomeProjectAdviserDeleteAPIRequest) GetOuterConsultantId() string { + return r._outerConsultantId +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectAdviserDeleteAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectAdviserDeleteAPIResponse.go new file mode 100644 index 0000000000..89b3bb27de --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectAdviserDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除楼盘顾问 API返回值 +alibaba.alihouse.newhome.project.adviser.delete + +删除楼盘顾问 +*/ +type AlibabaAlihouseNewhomeProjectAdviserDeleteAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeProjectAdviserDeleteAPIResponseModel +} + +// 删除楼盘顾问 成功返回结果 +type AlibabaAlihouseNewhomeProjectAdviserDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_adviser_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeProjectAdviserDeleteResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectAdviserDeleteResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectAdviserDeleteResponse.go deleted file mode 100644 index ff47e2ed14..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeProjectAdviserDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除楼盘顾问 API返回值 -alibaba.alihouse.newhome.project.adviser.delete - -删除楼盘顾问 -*/ -type AlibabaAlihouseNewhomeProjectAdviserDeleteAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeProjectAdviserDeleteResponse -} - -// 删除楼盘顾问 成功返回结果 -type AlibabaAlihouseNewhomeProjectAdviserDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_adviser_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeProjectAdviserDeleteResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectAdviserSubmitAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeProjectAdviserSubmitAPIRequest.go new file mode 100644 index 0000000000..29816aa94b --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectAdviserSubmitAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交楼盘顾问 API请求 +alibaba.alihouse.newhome.project.adviser.submit + +提交楼盘顾问 +*/ +type AlibabaAlihouseNewhomeProjectAdviserSubmitAPIRequest struct { + model.Params + // 顾问列表 + _advisers []ProjectAdviserDto +} + +// 初始化AlibabaAlihouseNewhomeProjectAdviserSubmitAPIRequest对象 +func NewAlibabaAlihouseNewhomeProjectAdviserSubmitRequest() *AlibabaAlihouseNewhomeProjectAdviserSubmitAPIRequest{ + return &AlibabaAlihouseNewhomeProjectAdviserSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeProjectAdviserSubmitAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.project.adviser.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeProjectAdviserSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Advisers Setter +// 顾问列表 +func (r *AlibabaAlihouseNewhomeProjectAdviserSubmitAPIRequest) SetAdvisers(_advisers []ProjectAdviserDto) error { + r._advisers = _advisers + r.Set("advisers", _advisers) + return nil +} + +// Advisers Getter +func (r AlibabaAlihouseNewhomeProjectAdviserSubmitAPIRequest) GetAdvisers() []ProjectAdviserDto { + return r._advisers +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectAdviserSubmitAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectAdviserSubmitAPIResponse.go new file mode 100644 index 0000000000..1f7f89b3e5 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectAdviserSubmitAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交楼盘顾问 API返回值 +alibaba.alihouse.newhome.project.adviser.submit + +提交楼盘顾问 +*/ +type AlibabaAlihouseNewhomeProjectAdviserSubmitAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeProjectAdviserSubmitAPIResponseModel +} + +// 提交楼盘顾问 成功返回结果 +type AlibabaAlihouseNewhomeProjectAdviserSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_adviser_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeProjectAdviserSubmitResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectAdviserSubmitResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectAdviserSubmitResponse.go deleted file mode 100644 index 8a66352300..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeProjectAdviserSubmitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交楼盘顾问 API返回值 -alibaba.alihouse.newhome.project.adviser.submit - -提交楼盘顾问 -*/ -type AlibabaAlihouseNewhomeProjectAdviserSubmitAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeProjectAdviserSubmitResponse -} - -// 提交楼盘顾问 成功返回结果 -type AlibabaAlihouseNewhomeProjectAdviserSubmitResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_adviser_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeProjectAdviserSubmitResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectCooperationSubmitAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeProjectCooperationSubmitAPIRequest.go new file mode 100644 index 0000000000..c4a898e103 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectCooperationSubmitAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交KA合作楼盘 API请求 +alibaba.alihouse.newhome.project.cooperation.submit + +提交KA合作楼盘 +*/ +type AlibabaAlihouseNewhomeProjectCooperationSubmitAPIRequest struct { + model.Params + // ka合作对象 + _projectCooperationDto *ProjectCooperationDto +} + +// 初始化AlibabaAlihouseNewhomeProjectCooperationSubmitAPIRequest对象 +func NewAlibabaAlihouseNewhomeProjectCooperationSubmitRequest() *AlibabaAlihouseNewhomeProjectCooperationSubmitAPIRequest{ + return &AlibabaAlihouseNewhomeProjectCooperationSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeProjectCooperationSubmitAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.project.cooperation.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeProjectCooperationSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProjectCooperationDto Setter +// ka合作对象 +func (r *AlibabaAlihouseNewhomeProjectCooperationSubmitAPIRequest) SetProjectCooperationDto(_projectCooperationDto *ProjectCooperationDto) error { + r._projectCooperationDto = _projectCooperationDto + r.Set("project_cooperation_dto", _projectCooperationDto) + return nil +} + +// ProjectCooperationDto Getter +func (r AlibabaAlihouseNewhomeProjectCooperationSubmitAPIRequest) GetProjectCooperationDto() *ProjectCooperationDto { + return r._projectCooperationDto +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectCooperationSubmitAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectCooperationSubmitAPIResponse.go new file mode 100644 index 0000000000..32e5566039 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectCooperationSubmitAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交KA合作楼盘 API返回值 +alibaba.alihouse.newhome.project.cooperation.submit + +提交KA合作楼盘 +*/ +type AlibabaAlihouseNewhomeProjectCooperationSubmitAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeProjectCooperationSubmitAPIResponseModel +} + +// 提交KA合作楼盘 成功返回结果 +type AlibabaAlihouseNewhomeProjectCooperationSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_cooperation_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeProjectCooperationSubmitResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectCooperationSubmitResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectCooperationSubmitResponse.go deleted file mode 100644 index c09f795eee..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeProjectCooperationSubmitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交KA合作楼盘 API返回值 -alibaba.alihouse.newhome.project.cooperation.submit - -提交KA合作楼盘 -*/ -type AlibabaAlihouseNewhomeProjectCooperationSubmitAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeProjectCooperationSubmitResponse -} - -// 提交KA合作楼盘 成功返回结果 -type AlibabaAlihouseNewhomeProjectCooperationSubmitResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_cooperation_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeProjectCooperationSubmitResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectDynamicDeleteAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeProjectDynamicDeleteAPIRequest.go new file mode 100644 index 0000000000..d449be9120 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectDynamicDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +楼盘快讯删除 API请求 +alibaba.alihouse.newhome.project.dynamic.delete + +楼盘快讯删除 +*/ +type AlibabaAlihouseNewhomeProjectDynamicDeleteAPIRequest struct { + model.Params + // 外部动态ID + _outerDynamicId string +} + +// 初始化AlibabaAlihouseNewhomeProjectDynamicDeleteAPIRequest对象 +func NewAlibabaAlihouseNewhomeProjectDynamicDeleteRequest() *AlibabaAlihouseNewhomeProjectDynamicDeleteAPIRequest{ + return &AlibabaAlihouseNewhomeProjectDynamicDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeProjectDynamicDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.project.dynamic.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeProjectDynamicDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterDynamicId Setter +// 外部动态ID +func (r *AlibabaAlihouseNewhomeProjectDynamicDeleteAPIRequest) SetOuterDynamicId(_outerDynamicId string) error { + r._outerDynamicId = _outerDynamicId + r.Set("outer_dynamic_id", _outerDynamicId) + return nil +} + +// OuterDynamicId Getter +func (r AlibabaAlihouseNewhomeProjectDynamicDeleteAPIRequest) GetOuterDynamicId() string { + return r._outerDynamicId +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectDynamicDeleteAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectDynamicDeleteAPIResponse.go new file mode 100644 index 0000000000..7ff30d4fd3 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectDynamicDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +楼盘快讯删除 API返回值 +alibaba.alihouse.newhome.project.dynamic.delete + +楼盘快讯删除 +*/ +type AlibabaAlihouseNewhomeProjectDynamicDeleteAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeProjectDynamicDeleteAPIResponseModel +} + +// 楼盘快讯删除 成功返回结果 +type AlibabaAlihouseNewhomeProjectDynamicDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_dynamic_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeProjectDynamicDeleteResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectDynamicDeleteResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectDynamicDeleteResponse.go deleted file mode 100644 index b9b953d4e9..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeProjectDynamicDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -楼盘快讯删除 API返回值 -alibaba.alihouse.newhome.project.dynamic.delete - -楼盘快讯删除 -*/ -type AlibabaAlihouseNewhomeProjectDynamicDeleteAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeProjectDynamicDeleteResponse -} - -// 楼盘快讯删除 成功返回结果 -type AlibabaAlihouseNewhomeProjectDynamicDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_dynamic_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeProjectDynamicDeleteResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectDynamicSubmitAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeProjectDynamicSubmitAPIRequest.go new file mode 100644 index 0000000000..10d22623c8 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectDynamicSubmitAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交楼盘快讯 API请求 +alibaba.alihouse.newhome.project.dynamic.submit + +提交楼盘快讯 +*/ +type AlibabaAlihouseNewhomeProjectDynamicSubmitAPIRequest struct { + model.Params + // 楼盘动态列表 + _projectDynamics []ProjectDynamicDto +} + +// 初始化AlibabaAlihouseNewhomeProjectDynamicSubmitAPIRequest对象 +func NewAlibabaAlihouseNewhomeProjectDynamicSubmitRequest() *AlibabaAlihouseNewhomeProjectDynamicSubmitAPIRequest{ + return &AlibabaAlihouseNewhomeProjectDynamicSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeProjectDynamicSubmitAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.project.dynamic.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeProjectDynamicSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProjectDynamics Setter +// 楼盘动态列表 +func (r *AlibabaAlihouseNewhomeProjectDynamicSubmitAPIRequest) SetProjectDynamics(_projectDynamics []ProjectDynamicDto) error { + r._projectDynamics = _projectDynamics + r.Set("project_dynamics", _projectDynamics) + return nil +} + +// ProjectDynamics Getter +func (r AlibabaAlihouseNewhomeProjectDynamicSubmitAPIRequest) GetProjectDynamics() []ProjectDynamicDto { + return r._projectDynamics +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectDynamicSubmitAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectDynamicSubmitAPIResponse.go new file mode 100644 index 0000000000..97d5851c88 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectDynamicSubmitAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交楼盘快讯 API返回值 +alibaba.alihouse.newhome.project.dynamic.submit + +提交楼盘快讯 +*/ +type AlibabaAlihouseNewhomeProjectDynamicSubmitAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeProjectDynamicSubmitAPIResponseModel +} + +// 提交楼盘快讯 成功返回结果 +type AlibabaAlihouseNewhomeProjectDynamicSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_dynamic_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeProjectDynamicSubmitResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectDynamicSubmitResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectDynamicSubmitResponse.go deleted file mode 100644 index 045df7ee92..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeProjectDynamicSubmitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交楼盘快讯 API返回值 -alibaba.alihouse.newhome.project.dynamic.submit - -提交楼盘快讯 -*/ -type AlibabaAlihouseNewhomeProjectDynamicSubmitAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeProjectDynamicSubmitResponse -} - -// 提交楼盘快讯 成功返回结果 -type AlibabaAlihouseNewhomeProjectDynamicSubmitResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_dynamic_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeProjectDynamicSubmitResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectLineAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeProjectLineAPIRequest.go new file mode 100644 index 0000000000..6cbe806583 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectLineAPIRequest.go @@ -0,0 +1,66 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +楼盘上下架 API请求 +alibaba.alihouse.newhome.project.line + +上下架楼盘 +*/ +type AlibabaAlihouseNewhomeProjectLineAPIRequest struct { + model.Params + // 外部id + _outerId string + // 0-下架 1-上架 + _type *model.File +} + +// 初始化AlibabaAlihouseNewhomeProjectLineAPIRequest对象 +func NewAlibabaAlihouseNewhomeProjectLineRequest() *AlibabaAlihouseNewhomeProjectLineAPIRequest{ + return &AlibabaAlihouseNewhomeProjectLineAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeProjectLineAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.project.line" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeProjectLineAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterId Setter +// 外部id +func (r *AlibabaAlihouseNewhomeProjectLineAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r AlibabaAlihouseNewhomeProjectLineAPIRequest) GetOuterId() string { + return r._outerId +} +// Type Setter +// 0-下架 1-上架 +func (r *AlibabaAlihouseNewhomeProjectLineAPIRequest) SetType(_type *model.File) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaAlihouseNewhomeProjectLineAPIRequest) GetType() *model.File { + return r._type +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectLineAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectLineAPIResponse.go new file mode 100644 index 0000000000..5e727a63d7 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectLineAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +楼盘上下架 API返回值 +alibaba.alihouse.newhome.project.line + +上下架楼盘 +*/ +type AlibabaAlihouseNewhomeProjectLineAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeProjectLineAPIResponseModel +} + +// 楼盘上下架 成功返回结果 +type AlibabaAlihouseNewhomeProjectLineAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_line_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeProjectLineResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectLineResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectLineResponse.go deleted file mode 100644 index 1a1459f94a..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeProjectLineResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -楼盘上下架 API返回值 -alibaba.alihouse.newhome.project.line - -上下架楼盘 -*/ -type AlibabaAlihouseNewhomeProjectLineAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeProjectLineResponse -} - -// 楼盘上下架 成功返回结果 -type AlibabaAlihouseNewhomeProjectLineResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_line_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeProjectLineResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectPhoneSubmitAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeProjectPhoneSubmitAPIRequest.go new file mode 100644 index 0000000000..ab709e9099 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectPhoneSubmitAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交楼盘电话 API请求 +alibaba.alihouse.newhome.project.phone.submit + +提交楼盘电话 +*/ +type AlibabaAlihouseNewhomeProjectPhoneSubmitAPIRequest struct { + model.Params + // 楼盘电话 + _projectPhoneDto *ProjectPhoneDto +} + +// 初始化AlibabaAlihouseNewhomeProjectPhoneSubmitAPIRequest对象 +func NewAlibabaAlihouseNewhomeProjectPhoneSubmitRequest() *AlibabaAlihouseNewhomeProjectPhoneSubmitAPIRequest{ + return &AlibabaAlihouseNewhomeProjectPhoneSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeProjectPhoneSubmitAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.project.phone.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeProjectPhoneSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProjectPhoneDto Setter +// 楼盘电话 +func (r *AlibabaAlihouseNewhomeProjectPhoneSubmitAPIRequest) SetProjectPhoneDto(_projectPhoneDto *ProjectPhoneDto) error { + r._projectPhoneDto = _projectPhoneDto + r.Set("project_phone_dto", _projectPhoneDto) + return nil +} + +// ProjectPhoneDto Getter +func (r AlibabaAlihouseNewhomeProjectPhoneSubmitAPIRequest) GetProjectPhoneDto() *ProjectPhoneDto { + return r._projectPhoneDto +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectPhoneSubmitAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectPhoneSubmitAPIResponse.go new file mode 100644 index 0000000000..30ea5ab06f --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectPhoneSubmitAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交楼盘电话 API返回值 +alibaba.alihouse.newhome.project.phone.submit + +提交楼盘电话 +*/ +type AlibabaAlihouseNewhomeProjectPhoneSubmitAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeProjectPhoneSubmitAPIResponseModel +} + +// 提交楼盘电话 成功返回结果 +type AlibabaAlihouseNewhomeProjectPhoneSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_phone_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeProjectPhoneSubmitResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectPhoneSubmitResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectPhoneSubmitResponse.go deleted file mode 100644 index 2fc9528ba8..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeProjectPhoneSubmitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交楼盘电话 API返回值 -alibaba.alihouse.newhome.project.phone.submit - -提交楼盘电话 -*/ -type AlibabaAlihouseNewhomeProjectPhoneSubmitAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeProjectPhoneSubmitResponse -} - -// 提交楼盘电话 成功返回结果 -type AlibabaAlihouseNewhomeProjectPhoneSubmitResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_phone_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeProjectPhoneSubmitResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIRequest.go new file mode 100644 index 0000000000..40ac370612 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除楼盘预售证 API请求 +alibaba.alihouse.newhome.project.presalepermit.delete + +删除楼盘预售证信息 +*/ +type AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIRequest struct { + model.Params + // 外部顾问ID + _outerPermitId string +} + +// 初始化AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIRequest对象 +func NewAlibabaAlihouseNewhomeProjectPresalepermitDeleteRequest() *AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIRequest{ + return &AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.project.presalepermit.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterPermitId Setter +// 外部顾问ID +func (r *AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIRequest) SetOuterPermitId(_outerPermitId string) error { + r._outerPermitId = _outerPermitId + r.Set("outer_permit_id", _outerPermitId) + return nil +} + +// OuterPermitId Getter +func (r AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIRequest) GetOuterPermitId() string { + return r._outerPermitId +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIResponse.go new file mode 100644 index 0000000000..56b2ec981b --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除楼盘预售证 API返回值 +alibaba.alihouse.newhome.project.presalepermit.delete + +删除楼盘预售证信息 +*/ +type AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIResponseModel +} + +// 删除楼盘预售证 成功返回结果 +type AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_presalepermit_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeProjectPresalepermitDeleteResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitDeleteResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitDeleteResponse.go deleted file mode 100644 index 9c45c9c13a..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除楼盘预售证 API返回值 -alibaba.alihouse.newhome.project.presalepermit.delete - -删除楼盘预售证信息 -*/ -type AlibabaAlihouseNewhomeProjectPresalepermitDeleteAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeProjectPresalepermitDeleteResponse -} - -// 删除楼盘预售证 成功返回结果 -type AlibabaAlihouseNewhomeProjectPresalepermitDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_presalepermit_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeProjectPresalepermitDeleteResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIRequest.go new file mode 100644 index 0000000000..6e0b560752 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交预售证 API请求 +alibaba.alihouse.newhome.project.presalepermit.submit + +提交楼盘预售证信息 +*/ +type AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIRequest struct { + model.Params + // 预售证对象 + _preSalePermitDto *ProjectPreSalePermitDto +} + +// 初始化AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIRequest对象 +func NewAlibabaAlihouseNewhomeProjectPresalepermitSubmitRequest() *AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIRequest{ + return &AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.project.presalepermit.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PreSalePermitDto Setter +// 预售证对象 +func (r *AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIRequest) SetPreSalePermitDto(_preSalePermitDto *ProjectPreSalePermitDto) error { + r._preSalePermitDto = _preSalePermitDto + r.Set("pre_sale_permit_dto", _preSalePermitDto) + return nil +} + +// PreSalePermitDto Getter +func (r AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIRequest) GetPreSalePermitDto() *ProjectPreSalePermitDto { + return r._preSalePermitDto +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIResponse.go new file mode 100644 index 0000000000..6b2ee3257d --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交预售证 API返回值 +alibaba.alihouse.newhome.project.presalepermit.submit + +提交楼盘预售证信息 +*/ +type AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIResponseModel +} + +// 提交预售证 成功返回结果 +type AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_presalepermit_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *AlibabaAlihouseNewhomeProjectPresalepermitSubmitResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitSubmitResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitSubmitResponse.go deleted file mode 100644 index 9324a9a676..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeProjectPresalepermitSubmitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交预售证 API返回值 -alibaba.alihouse.newhome.project.presalepermit.submit - -提交楼盘预售证信息 -*/ -type AlibabaAlihouseNewhomeProjectPresalepermitSubmitAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeProjectPresalepermitSubmitResponse -} - -// 提交预售证 成功返回结果 -type AlibabaAlihouseNewhomeProjectPresalepermitSubmitResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_presalepermit_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *AlibabaAlihouseNewhomeProjectPresalepermitSubmitResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectQueryAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeProjectQueryAPIRequest.go new file mode 100644 index 0000000000..2c5d75383b --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectQueryAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询楼盘相关信息 API请求 +alibaba.alihouse.newhome.project.query + +根据outerid查询楼盘相关信息 +*/ +type AlibabaAlihouseNewhomeProjectQueryAPIRequest struct { + model.Params + // 外部楼盘/小区id + _outerId string +} + +// 初始化AlibabaAlihouseNewhomeProjectQueryAPIRequest对象 +func NewAlibabaAlihouseNewhomeProjectQueryRequest() *AlibabaAlihouseNewhomeProjectQueryAPIRequest{ + return &AlibabaAlihouseNewhomeProjectQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeProjectQueryAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.project.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeProjectQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterId Setter +// 外部楼盘/小区id +func (r *AlibabaAlihouseNewhomeProjectQueryAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r AlibabaAlihouseNewhomeProjectQueryAPIRequest) GetOuterId() string { + return r._outerId +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectQueryAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectQueryAPIResponse.go new file mode 100644 index 0000000000..f681e9dbf7 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectQueryAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询楼盘相关信息 API返回值 +alibaba.alihouse.newhome.project.query + +根据outerid查询楼盘相关信息 +*/ +type AlibabaAlihouseNewhomeProjectQueryAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeProjectQueryAPIResponseModel +} + +// 查询楼盘相关信息 成功返回结果 +type AlibabaAlihouseNewhomeProjectQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeProjectQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectQueryResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectQueryResponse.go deleted file mode 100644 index 02485c106f..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeProjectQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询楼盘相关信息 API返回值 -alibaba.alihouse.newhome.project.query - -根据outerid查询楼盘相关信息 -*/ -type AlibabaAlihouseNewhomeProjectQueryAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeProjectQueryResponse -} - -// 查询楼盘相关信息 成功返回结果 -type AlibabaAlihouseNewhomeProjectQueryResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeProjectQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectSubmitAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeProjectSubmitAPIRequest.go new file mode 100644 index 0000000000..e5657dd265 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectSubmitAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交楼盘信息 API请求 +alibaba.alihouse.newhome.project.submit + +提交楼盘信息 +*/ +type AlibabaAlihouseNewhomeProjectSubmitAPIRequest struct { + model.Params + // 楼盘对象 + _ebbasProjectDto *EbbasProjectDto +} + +// 初始化AlibabaAlihouseNewhomeProjectSubmitAPIRequest对象 +func NewAlibabaAlihouseNewhomeProjectSubmitRequest() *AlibabaAlihouseNewhomeProjectSubmitAPIRequest{ + return &AlibabaAlihouseNewhomeProjectSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeProjectSubmitAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.project.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeProjectSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EbbasProjectDto Setter +// 楼盘对象 +func (r *AlibabaAlihouseNewhomeProjectSubmitAPIRequest) SetEbbasProjectDto(_ebbasProjectDto *EbbasProjectDto) error { + r._ebbasProjectDto = _ebbasProjectDto + r.Set("ebbas_project_dto", _ebbasProjectDto) + return nil +} + +// EbbasProjectDto Getter +func (r AlibabaAlihouseNewhomeProjectSubmitAPIRequest) GetEbbasProjectDto() *EbbasProjectDto { + return r._ebbasProjectDto +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectSubmitAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectSubmitAPIResponse.go new file mode 100644 index 0000000000..7b2c0f98c3 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeProjectSubmitAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交楼盘信息 API返回值 +alibaba.alihouse.newhome.project.submit + +提交楼盘信息 +*/ +type AlibabaAlihouseNewhomeProjectSubmitAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeProjectSubmitAPIResponseModel +} + +// 提交楼盘信息 成功返回结果 +type AlibabaAlihouseNewhomeProjectSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回结果体 + Result *AlibabaAlihouseNewhomeProjectSubmitResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeProjectSubmitResponse.go b/model/alihouse/AlibabaAlihouseNewhomeProjectSubmitResponse.go deleted file mode 100644 index 4a73eb907b..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeProjectSubmitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交楼盘信息 API返回值 -alibaba.alihouse.newhome.project.submit - -提交楼盘信息 -*/ -type AlibabaAlihouseNewhomeProjectSubmitAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeProjectSubmitResponse -} - -// 提交楼盘信息 成功返回结果 -type AlibabaAlihouseNewhomeProjectSubmitResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_project_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回结果体 - Result *AlibabaAlihouseNewhomeProjectSubmitResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeRcChangestatusAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeRcChangestatusAPIRequest.go new file mode 100644 index 0000000000..d0b508d23f --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeRcChangestatusAPIRequest.go @@ -0,0 +1,66 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +图文草稿状态更新 API请求 +alibaba.alihouse.newhome.rc.changestatus + +图文草稿状态更新 +*/ +type AlibabaAlihouseNewhomeRcChangestatusAPIRequest struct { + model.Params + // 外部图文id + _outerId string + // 0 失效 1 有效 + _status int64 +} + +// 初始化AlibabaAlihouseNewhomeRcChangestatusAPIRequest对象 +func NewAlibabaAlihouseNewhomeRcChangestatusRequest() *AlibabaAlihouseNewhomeRcChangestatusAPIRequest{ + return &AlibabaAlihouseNewhomeRcChangestatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeRcChangestatusAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.rc.changestatus" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeRcChangestatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterId Setter +// 外部图文id +func (r *AlibabaAlihouseNewhomeRcChangestatusAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r AlibabaAlihouseNewhomeRcChangestatusAPIRequest) GetOuterId() string { + return r._outerId +} +// Status Setter +// 0 失效 1 有效 +func (r *AlibabaAlihouseNewhomeRcChangestatusAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaAlihouseNewhomeRcChangestatusAPIRequest) GetStatus() int64 { + return r._status +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeRcChangestatusAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeRcChangestatusAPIResponse.go new file mode 100644 index 0000000000..3ac5b39e6d --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeRcChangestatusAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +图文草稿状态更新 API返回值 +alibaba.alihouse.newhome.rc.changestatus + +图文草稿状态更新 +*/ +type AlibabaAlihouseNewhomeRcChangestatusAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeRcChangestatusAPIResponseModel +} + +// 图文草稿状态更新 成功返回结果 +type AlibabaAlihouseNewhomeRcChangestatusAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_rc_changestatus_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeRcChangestatusResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeRcChangestatusResponse.go b/model/alihouse/AlibabaAlihouseNewhomeRcChangestatusResponse.go deleted file mode 100644 index 0543df9b01..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeRcChangestatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -图文草稿状态更新 API返回值 -alibaba.alihouse.newhome.rc.changestatus - -图文草稿状态更新 -*/ -type AlibabaAlihouseNewhomeRcChangestatusAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeRcChangestatusResponse -} - -// 图文草稿状态更新 成功返回结果 -type AlibabaAlihouseNewhomeRcChangestatusResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_rc_changestatus_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeRcChangestatusResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeRcSyncAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeRcSyncAPIRequest.go new file mode 100644 index 0000000000..907e7892d5 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeRcSyncAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里房产图文草稿信息同步 API请求 +alibaba.alihouse.newhome.rc.sync + +接收图文草稿信息 +*/ +type AlibabaAlihouseNewhomeRcSyncAPIRequest struct { + model.Params + // 图文内容 + _rc *RichContentDraftDto +} + +// 初始化AlibabaAlihouseNewhomeRcSyncAPIRequest对象 +func NewAlibabaAlihouseNewhomeRcSyncRequest() *AlibabaAlihouseNewhomeRcSyncAPIRequest{ + return &AlibabaAlihouseNewhomeRcSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeRcSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.rc.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeRcSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rc Setter +// 图文内容 +func (r *AlibabaAlihouseNewhomeRcSyncAPIRequest) SetRc(_rc *RichContentDraftDto) error { + r._rc = _rc + r.Set("rc", _rc) + return nil +} + +// Rc Getter +func (r AlibabaAlihouseNewhomeRcSyncAPIRequest) GetRc() *RichContentDraftDto { + return r._rc +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeRcSyncAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeRcSyncAPIResponse.go new file mode 100644 index 0000000000..8b3dccf5a6 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeRcSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里房产图文草稿信息同步 API返回值 +alibaba.alihouse.newhome.rc.sync + +接收图文草稿信息 +*/ +type AlibabaAlihouseNewhomeRcSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeRcSyncAPIResponseModel +} + +// 阿里房产图文草稿信息同步 成功返回结果 +type AlibabaAlihouseNewhomeRcSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_rc_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeRcSyncResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeRcSyncResponse.go b/model/alihouse/AlibabaAlihouseNewhomeRcSyncResponse.go deleted file mode 100644 index 452993ea91..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeRcSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里房产图文草稿信息同步 API返回值 -alibaba.alihouse.newhome.rc.sync - -接收图文草稿信息 -*/ -type AlibabaAlihouseNewhomeRcSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeRcSyncResponse -} - -// 阿里房产图文草稿信息同步 成功返回结果 -type AlibabaAlihouseNewhomeRcSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_rc_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeRcSyncResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeRegionSyncAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeRegionSyncAPIRequest.go new file mode 100644 index 0000000000..d063f893c4 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeRegionSyncAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +城区数据同步 API请求 +alibaba.alihouse.newhome.region.sync + +城区数据同步 +*/ +type AlibabaAlihouseNewhomeRegionSyncAPIRequest struct { + model.Params + // 城区数据 + _baseRegionDto *BaseRegionDto +} + +// 初始化AlibabaAlihouseNewhomeRegionSyncAPIRequest对象 +func NewAlibabaAlihouseNewhomeRegionSyncRequest() *AlibabaAlihouseNewhomeRegionSyncAPIRequest{ + return &AlibabaAlihouseNewhomeRegionSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeRegionSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.region.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeRegionSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BaseRegionDto Setter +// 城区数据 +func (r *AlibabaAlihouseNewhomeRegionSyncAPIRequest) SetBaseRegionDto(_baseRegionDto *BaseRegionDto) error { + r._baseRegionDto = _baseRegionDto + r.Set("base_region_dto", _baseRegionDto) + return nil +} + +// BaseRegionDto Getter +func (r AlibabaAlihouseNewhomeRegionSyncAPIRequest) GetBaseRegionDto() *BaseRegionDto { + return r._baseRegionDto +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeRegionSyncAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeRegionSyncAPIResponse.go new file mode 100644 index 0000000000..c26389128e --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeRegionSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +城区数据同步 API返回值 +alibaba.alihouse.newhome.region.sync + +城区数据同步 +*/ +type AlibabaAlihouseNewhomeRegionSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeRegionSyncAPIResponseModel +} + +// 城区数据同步 成功返回结果 +type AlibabaAlihouseNewhomeRegionSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_region_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeRegionSyncResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeRegionSyncResponse.go b/model/alihouse/AlibabaAlihouseNewhomeRegionSyncResponse.go deleted file mode 100644 index ba41f1c7f7..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeRegionSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -城区数据同步 API返回值 -alibaba.alihouse.newhome.region.sync - -城区数据同步 -*/ -type AlibabaAlihouseNewhomeRegionSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeRegionSyncResponse -} - -// 城区数据同步 成功返回结果 -type AlibabaAlihouseNewhomeRegionSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_region_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeRegionSyncResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeReviewChangestatusAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeReviewChangestatusAPIRequest.go new file mode 100644 index 0000000000..36b50329ae --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeReviewChangestatusAPIRequest.go @@ -0,0 +1,66 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +楼盘测评草稿状态同步 API请求 +alibaba.alihouse.newhome.review.changestatus + +楼盘测评草稿状态更新 +*/ +type AlibabaAlihouseNewhomeReviewChangestatusAPIRequest struct { + model.Params + // 外部测评id + _outerId string + // 0 失效 1 有效 + _status int64 +} + +// 初始化AlibabaAlihouseNewhomeReviewChangestatusAPIRequest对象 +func NewAlibabaAlihouseNewhomeReviewChangestatusRequest() *AlibabaAlihouseNewhomeReviewChangestatusAPIRequest{ + return &AlibabaAlihouseNewhomeReviewChangestatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeReviewChangestatusAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.review.changestatus" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeReviewChangestatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterId Setter +// 外部测评id +func (r *AlibabaAlihouseNewhomeReviewChangestatusAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r AlibabaAlihouseNewhomeReviewChangestatusAPIRequest) GetOuterId() string { + return r._outerId +} +// Status Setter +// 0 失效 1 有效 +func (r *AlibabaAlihouseNewhomeReviewChangestatusAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaAlihouseNewhomeReviewChangestatusAPIRequest) GetStatus() int64 { + return r._status +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeReviewChangestatusAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeReviewChangestatusAPIResponse.go new file mode 100644 index 0000000000..506fda0d13 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeReviewChangestatusAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +楼盘测评草稿状态同步 API返回值 +alibaba.alihouse.newhome.review.changestatus + +楼盘测评草稿状态更新 +*/ +type AlibabaAlihouseNewhomeReviewChangestatusAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeReviewChangestatusAPIResponseModel +} + +// 楼盘测评草稿状态同步 成功返回结果 +type AlibabaAlihouseNewhomeReviewChangestatusAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_review_changestatus_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeReviewChangestatusResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeReviewChangestatusResponse.go b/model/alihouse/AlibabaAlihouseNewhomeReviewChangestatusResponse.go deleted file mode 100644 index 0d8b995b66..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeReviewChangestatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -楼盘测评草稿状态同步 API返回值 -alibaba.alihouse.newhome.review.changestatus - -楼盘测评草稿状态更新 -*/ -type AlibabaAlihouseNewhomeReviewChangestatusAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeReviewChangestatusResponse -} - -// 楼盘测评草稿状态同步 成功返回结果 -type AlibabaAlihouseNewhomeReviewChangestatusResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_review_changestatus_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeReviewChangestatusResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeReviewSyncAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeReviewSyncAPIRequest.go new file mode 100644 index 0000000000..b63969530c --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeReviewSyncAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫好房楼盘评测同步 API请求 +alibaba.alihouse.newhome.review.sync + +接受楼盘测评图文信息 +*/ +type AlibabaAlihouseNewhomeReviewSyncAPIRequest struct { + model.Params + // 测评草稿信息 + _review *ProjectReviewDraftDto +} + +// 初始化AlibabaAlihouseNewhomeReviewSyncAPIRequest对象 +func NewAlibabaAlihouseNewhomeReviewSyncRequest() *AlibabaAlihouseNewhomeReviewSyncAPIRequest{ + return &AlibabaAlihouseNewhomeReviewSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeReviewSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.review.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeReviewSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Review Setter +// 测评草稿信息 +func (r *AlibabaAlihouseNewhomeReviewSyncAPIRequest) SetReview(_review *ProjectReviewDraftDto) error { + r._review = _review + r.Set("review", _review) + return nil +} + +// Review Getter +func (r AlibabaAlihouseNewhomeReviewSyncAPIRequest) GetReview() *ProjectReviewDraftDto { + return r._review +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeReviewSyncAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeReviewSyncAPIResponse.go new file mode 100644 index 0000000000..1b73e91998 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeReviewSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫好房楼盘评测同步 API返回值 +alibaba.alihouse.newhome.review.sync + +接受楼盘测评图文信息 +*/ +type AlibabaAlihouseNewhomeReviewSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeReviewSyncAPIResponseModel +} + +// 天猫好房楼盘评测同步 成功返回结果 +type AlibabaAlihouseNewhomeReviewSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_review_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeReviewSyncResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeReviewSyncResponse.go b/model/alihouse/AlibabaAlihouseNewhomeReviewSyncResponse.go deleted file mode 100644 index 816dabfcc6..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeReviewSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫好房楼盘评测同步 API返回值 -alibaba.alihouse.newhome.review.sync - -接受楼盘测评图文信息 -*/ -type AlibabaAlihouseNewhomeReviewSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeReviewSyncResponse -} - -// 天猫好房楼盘评测同步 成功返回结果 -type AlibabaAlihouseNewhomeReviewSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_review_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeReviewSyncResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeVideoChangestatusAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeVideoChangestatusAPIRequest.go new file mode 100644 index 0000000000..cecf8e703d --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeVideoChangestatusAPIRequest.go @@ -0,0 +1,66 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +视频草稿状态更新 API请求 +alibaba.alihouse.newhome.video.changestatus + +视频草稿状态更新 +*/ +type AlibabaAlihouseNewhomeVideoChangestatusAPIRequest struct { + model.Params + // 外部视频id + _outerId string + // 0 失效 1 有效 + _status int64 +} + +// 初始化AlibabaAlihouseNewhomeVideoChangestatusAPIRequest对象 +func NewAlibabaAlihouseNewhomeVideoChangestatusRequest() *AlibabaAlihouseNewhomeVideoChangestatusAPIRequest{ + return &AlibabaAlihouseNewhomeVideoChangestatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeVideoChangestatusAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.video.changestatus" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeVideoChangestatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterId Setter +// 外部视频id +func (r *AlibabaAlihouseNewhomeVideoChangestatusAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r AlibabaAlihouseNewhomeVideoChangestatusAPIRequest) GetOuterId() string { + return r._outerId +} +// Status Setter +// 0 失效 1 有效 +func (r *AlibabaAlihouseNewhomeVideoChangestatusAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaAlihouseNewhomeVideoChangestatusAPIRequest) GetStatus() int64 { + return r._status +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeVideoChangestatusAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeVideoChangestatusAPIResponse.go new file mode 100644 index 0000000000..acd1ff0b91 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeVideoChangestatusAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +视频草稿状态更新 API返回值 +alibaba.alihouse.newhome.video.changestatus + +视频草稿状态更新 +*/ +type AlibabaAlihouseNewhomeVideoChangestatusAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeVideoChangestatusAPIResponseModel +} + +// 视频草稿状态更新 成功返回结果 +type AlibabaAlihouseNewhomeVideoChangestatusAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_video_changestatus_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeVideoChangestatusResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeVideoChangestatusResponse.go b/model/alihouse/AlibabaAlihouseNewhomeVideoChangestatusResponse.go deleted file mode 100644 index fca37676b0..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeVideoChangestatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -视频草稿状态更新 API返回值 -alibaba.alihouse.newhome.video.changestatus - -视频草稿状态更新 -*/ -type AlibabaAlihouseNewhomeVideoChangestatusAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeVideoChangestatusResponse -} - -// 视频草稿状态更新 成功返回结果 -type AlibabaAlihouseNewhomeVideoChangestatusResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_video_changestatus_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeVideoChangestatusResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeVideoSyncAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeVideoSyncAPIRequest.go new file mode 100644 index 0000000000..8229e872a1 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeVideoSyncAPIRequest.go @@ -0,0 +1,52 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +视频草稿信息同步 API请求 +alibaba.alihouse.newhome.video.sync + +接收视频信息记录 +*/ +type AlibabaAlihouseNewhomeVideoSyncAPIRequest struct { + model.Params + // 草稿对下 + _video *VideoDraftDto +} + +// 初始化AlibabaAlihouseNewhomeVideoSyncAPIRequest对象 +func NewAlibabaAlihouseNewhomeVideoSyncRequest() *AlibabaAlihouseNewhomeVideoSyncAPIRequest{ + return &AlibabaAlihouseNewhomeVideoSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeVideoSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.video.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeVideoSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Video Setter +// 草稿对下 +func (r *AlibabaAlihouseNewhomeVideoSyncAPIRequest) SetVideo(_video *VideoDraftDto) error { + r._video = _video + r.Set("video", _video) + return nil +} + +// Video Getter +func (r AlibabaAlihouseNewhomeVideoSyncAPIRequest) GetVideo() *VideoDraftDto { + return r._video +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeVideoSyncAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeVideoSyncAPIResponse.go new file mode 100644 index 0000000000..4532ed8888 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeVideoSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +视频草稿信息同步 API返回值 +alibaba.alihouse.newhome.video.sync + +接收视频信息记录 +*/ +type AlibabaAlihouseNewhomeVideoSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeVideoSyncAPIResponseModel +} + +// 视频草稿信息同步 成功返回结果 +type AlibabaAlihouseNewhomeVideoSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_video_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeVideoSyncResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeVideoSyncResponse.go b/model/alihouse/AlibabaAlihouseNewhomeVideoSyncResponse.go deleted file mode 100644 index 8a08e078f1..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeVideoSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -视频草稿信息同步 API返回值 -alibaba.alihouse.newhome.video.sync - -接收视频信息记录 -*/ -type AlibabaAlihouseNewhomeVideoSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeVideoSyncResponse -} - -// 视频草稿信息同步 成功返回结果 -type AlibabaAlihouseNewhomeVideoSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_video_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeVideoSyncResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alihouse/AlibabaAlihouseNewhomeVrSyncAPIRequest.go b/model/alihouse/AlibabaAlihouseNewhomeVrSyncAPIRequest.go new file mode 100644 index 0000000000..cfbba3d468 --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeVrSyncAPIRequest.go @@ -0,0 +1,136 @@ +package alihouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +VR关系数据同步 API请求 +alibaba.alihouse.newhome.vr.sync + +对接易居VR关系数据迁移 +*/ +type AlibabaAlihouseNewhomeVrSyncAPIRequest struct { + model.Params + // VR提取码 + _extractedCode string + // 户型ID + _layoutInfoId string + // 是否生效 + _isValid string + // 封面图 + _coverImage string + // vr展示链接 + _vrUrl string + // 营销户型图 + _markingLayoutImg string + // 是否是单层 1 是 0 否 + _isSingleLayout int64 +} + +// 初始化AlibabaAlihouseNewhomeVrSyncAPIRequest对象 +func NewAlibabaAlihouseNewhomeVrSyncRequest() *AlibabaAlihouseNewhomeVrSyncAPIRequest{ + return &AlibabaAlihouseNewhomeVrSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihouseNewhomeVrSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihouse.newhome.vr.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihouseNewhomeVrSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExtractedCode Setter +// VR提取码 +func (r *AlibabaAlihouseNewhomeVrSyncAPIRequest) SetExtractedCode(_extractedCode string) error { + r._extractedCode = _extractedCode + r.Set("extracted_code", _extractedCode) + return nil +} + +// ExtractedCode Getter +func (r AlibabaAlihouseNewhomeVrSyncAPIRequest) GetExtractedCode() string { + return r._extractedCode +} +// LayoutInfoId Setter +// 户型ID +func (r *AlibabaAlihouseNewhomeVrSyncAPIRequest) SetLayoutInfoId(_layoutInfoId string) error { + r._layoutInfoId = _layoutInfoId + r.Set("layout_info_id", _layoutInfoId) + return nil +} + +// LayoutInfoId Getter +func (r AlibabaAlihouseNewhomeVrSyncAPIRequest) GetLayoutInfoId() string { + return r._layoutInfoId +} +// IsValid Setter +// 是否生效 +func (r *AlibabaAlihouseNewhomeVrSyncAPIRequest) SetIsValid(_isValid string) error { + r._isValid = _isValid + r.Set("is_valid", _isValid) + return nil +} + +// IsValid Getter +func (r AlibabaAlihouseNewhomeVrSyncAPIRequest) GetIsValid() string { + return r._isValid +} +// CoverImage Setter +// 封面图 +func (r *AlibabaAlihouseNewhomeVrSyncAPIRequest) SetCoverImage(_coverImage string) error { + r._coverImage = _coverImage + r.Set("cover_image", _coverImage) + return nil +} + +// CoverImage Getter +func (r AlibabaAlihouseNewhomeVrSyncAPIRequest) GetCoverImage() string { + return r._coverImage +} +// VrUrl Setter +// vr展示链接 +func (r *AlibabaAlihouseNewhomeVrSyncAPIRequest) SetVrUrl(_vrUrl string) error { + r._vrUrl = _vrUrl + r.Set("vr_url", _vrUrl) + return nil +} + +// VrUrl Getter +func (r AlibabaAlihouseNewhomeVrSyncAPIRequest) GetVrUrl() string { + return r._vrUrl +} +// MarkingLayoutImg Setter +// 营销户型图 +func (r *AlibabaAlihouseNewhomeVrSyncAPIRequest) SetMarkingLayoutImg(_markingLayoutImg string) error { + r._markingLayoutImg = _markingLayoutImg + r.Set("marking_layout_img", _markingLayoutImg) + return nil +} + +// MarkingLayoutImg Getter +func (r AlibabaAlihouseNewhomeVrSyncAPIRequest) GetMarkingLayoutImg() string { + return r._markingLayoutImg +} +// IsSingleLayout Setter +// 是否是单层 1 是 0 否 +func (r *AlibabaAlihouseNewhomeVrSyncAPIRequest) SetIsSingleLayout(_isSingleLayout int64) error { + r._isSingleLayout = _isSingleLayout + r.Set("is_single_layout", _isSingleLayout) + return nil +} + +// IsSingleLayout Getter +func (r AlibabaAlihouseNewhomeVrSyncAPIRequest) GetIsSingleLayout() int64 { + return r._isSingleLayout +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeVrSyncAPIResponse.go b/model/alihouse/AlibabaAlihouseNewhomeVrSyncAPIResponse.go new file mode 100644 index 0000000000..9bfd1d735d --- /dev/null +++ b/model/alihouse/AlibabaAlihouseNewhomeVrSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alihouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +VR关系数据同步 API返回值 +alibaba.alihouse.newhome.vr.sync + +对接易居VR关系数据迁移 +*/ +type AlibabaAlihouseNewhomeVrSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihouseNewhomeVrSyncAPIResponseModel +} + +// VR关系数据同步 成功返回结果 +type AlibabaAlihouseNewhomeVrSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihouse_newhome_vr_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihouseNewhomeVrSyncResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alihouse/AlibabaAlihouseNewhomeVrSyncResponse.go b/model/alihouse/AlibabaAlihouseNewhomeVrSyncResponse.go deleted file mode 100644 index 8ebc603eb4..0000000000 --- a/model/alihouse/AlibabaAlihouseNewhomeVrSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alihouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -VR关系数据同步 API返回值 -alibaba.alihouse.newhome.vr.sync - -对接易居VR关系数据迁移 -*/ -type AlibabaAlihouseNewhomeVrSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihouseNewhomeVrSyncResponse -} - -// VR关系数据同步 成功返回结果 -type AlibabaAlihouseNewhomeVrSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihouse_newhome_vr_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihouseNewhomeVrSyncResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabTbUserSkillOauthAPIRequest.go b/model/alilabs/AlibabaAilabTbUserSkillOauthAPIRequest.go new file mode 100644 index 0000000000..b3a032071b --- /dev/null +++ b/model/alilabs/AlibabaAilabTbUserSkillOauthAPIRequest.go @@ -0,0 +1,94 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户技能 Oauth 授权(淘宝 openId) API请求 +alibaba.ailab.tb.user.skill.oauth + +定制机厂商,在用户配网完成后,厂商调用此接口,写入特定技能的 Oauth 信息 +*/ +type AlibabaAilabTbUserSkillOauthAPIRequest struct { + model.Params + // taobao open id + _taobaoId string + // access token 过期时间,单位:秒 + _expireIn int64 + // access token + _oauthAccessToken string + // refresh token + _refreshToken string +} + +// 初始化AlibabaAilabTbUserSkillOauthAPIRequest对象 +func NewAlibabaAilabTbUserSkillOauthRequest() *AlibabaAilabTbUserSkillOauthAPIRequest{ + return &AlibabaAilabTbUserSkillOauthAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabTbUserSkillOauthAPIRequest) GetApiMethodName() string { + return "alibaba.ailab.tb.user.skill.oauth" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabTbUserSkillOauthAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TaobaoId Setter +// taobao open id +func (r *AlibabaAilabTbUserSkillOauthAPIRequest) SetTaobaoId(_taobaoId string) error { + r._taobaoId = _taobaoId + r.Set("taobao_id", _taobaoId) + return nil +} + +// TaobaoId Getter +func (r AlibabaAilabTbUserSkillOauthAPIRequest) GetTaobaoId() string { + return r._taobaoId +} +// ExpireIn Setter +// access token 过期时间,单位:秒 +func (r *AlibabaAilabTbUserSkillOauthAPIRequest) SetExpireIn(_expireIn int64) error { + r._expireIn = _expireIn + r.Set("expire_in", _expireIn) + return nil +} + +// ExpireIn Getter +func (r AlibabaAilabTbUserSkillOauthAPIRequest) GetExpireIn() int64 { + return r._expireIn +} +// OauthAccessToken Setter +// access token +func (r *AlibabaAilabTbUserSkillOauthAPIRequest) SetOauthAccessToken(_oauthAccessToken string) error { + r._oauthAccessToken = _oauthAccessToken + r.Set("oauth_access_token", _oauthAccessToken) + return nil +} + +// OauthAccessToken Getter +func (r AlibabaAilabTbUserSkillOauthAPIRequest) GetOauthAccessToken() string { + return r._oauthAccessToken +} +// RefreshToken Setter +// refresh token +func (r *AlibabaAilabTbUserSkillOauthAPIRequest) SetRefreshToken(_refreshToken string) error { + r._refreshToken = _refreshToken + r.Set("refresh_token", _refreshToken) + return nil +} + +// RefreshToken Getter +func (r AlibabaAilabTbUserSkillOauthAPIRequest) GetRefreshToken() string { + return r._refreshToken +} diff --git a/model/alilabs/AlibabaAilabTbUserSkillOauthAPIResponse.go b/model/alilabs/AlibabaAilabTbUserSkillOauthAPIResponse.go new file mode 100644 index 0000000000..80f7de85d7 --- /dev/null +++ b/model/alilabs/AlibabaAilabTbUserSkillOauthAPIResponse.go @@ -0,0 +1,29 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户技能 Oauth 授权(淘宝 openId) API返回值 +alibaba.ailab.tb.user.skill.oauth + +定制机厂商,在用户配网完成后,厂商调用此接口,写入特定技能的 Oauth 信息 +*/ +type AlibabaAilabTbUserSkillOauthAPIResponse struct { + model.CommonResponse + AlibabaAilabTbUserSkillOauthAPIResponseModel +} + +// 用户技能 Oauth 授权(淘宝 openId) 成功返回结果 +type AlibabaAilabTbUserSkillOauthAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailab_tb_user_skill_oauth_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回码,200 代表成功 + StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabTbUserSkillOauthResponse.go b/model/alilabs/AlibabaAilabTbUserSkillOauthResponse.go deleted file mode 100644 index 44a06d06b9..0000000000 --- a/model/alilabs/AlibabaAilabTbUserSkillOauthResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户技能 Oauth 授权(淘宝 openId) API返回值 -alibaba.ailab.tb.user.skill.oauth - -定制机厂商,在用户配网完成后,厂商调用此接口,写入特定技能的 Oauth 信息 -*/ -type AlibabaAilabTbUserSkillOauthAPIResponse struct { - model.CommonResponse - AlibabaAilabTbUserSkillOauthResponse -} - -// 用户技能 Oauth 授权(淘宝 openId) 成功返回结果 -type AlibabaAilabTbUserSkillOauthResponse struct { - XMLName xml.Name `xml:"alibaba_ailab_tb_user_skill_oauth_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 返回码,200 代表成功 - StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabUserAuthorizedCancelAPIRequest.go b/model/alilabs/AlibabaAilabUserAuthorizedCancelAPIRequest.go new file mode 100644 index 0000000000..2c08817b7a --- /dev/null +++ b/model/alilabs/AlibabaAilabUserAuthorizedCancelAPIRequest.go @@ -0,0 +1,66 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消账号授权 API请求 +alibaba.ailab.user.authorized.cancel + +三方用户取消授权给天猫精灵用户 +*/ +type AlibabaAilabUserAuthorizedCancelAPIRequest struct { + model.Params + // 三方用户的唯一ID + _merchantUserId string + // 开放平台申请的schema + _schemaKey string +} + +// 初始化AlibabaAilabUserAuthorizedCancelAPIRequest对象 +func NewAlibabaAilabUserAuthorizedCancelRequest() *AlibabaAilabUserAuthorizedCancelAPIRequest{ + return &AlibabaAilabUserAuthorizedCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabUserAuthorizedCancelAPIRequest) GetApiMethodName() string { + return "alibaba.ailab.user.authorized.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabUserAuthorizedCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MerchantUserId Setter +// 三方用户的唯一ID +func (r *AlibabaAilabUserAuthorizedCancelAPIRequest) SetMerchantUserId(_merchantUserId string) error { + r._merchantUserId = _merchantUserId + r.Set("merchant_user_id", _merchantUserId) + return nil +} + +// MerchantUserId Getter +func (r AlibabaAilabUserAuthorizedCancelAPIRequest) GetMerchantUserId() string { + return r._merchantUserId +} +// SchemaKey Setter +// 开放平台申请的schema +func (r *AlibabaAilabUserAuthorizedCancelAPIRequest) SetSchemaKey(_schemaKey string) error { + r._schemaKey = _schemaKey + r.Set("schema_key", _schemaKey) + return nil +} + +// SchemaKey Getter +func (r AlibabaAilabUserAuthorizedCancelAPIRequest) GetSchemaKey() string { + return r._schemaKey +} diff --git a/model/alilabs/AlibabaAilabUserAuthorizedCancelAPIResponse.go b/model/alilabs/AlibabaAilabUserAuthorizedCancelAPIResponse.go new file mode 100644 index 0000000000..4fbd81e99b --- /dev/null +++ b/model/alilabs/AlibabaAilabUserAuthorizedCancelAPIResponse.go @@ -0,0 +1,31 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消账号授权 API返回值 +alibaba.ailab.user.authorized.cancel + +三方用户取消授权给天猫精灵用户 +*/ +type AlibabaAilabUserAuthorizedCancelAPIResponse struct { + model.CommonResponse + AlibabaAilabUserAuthorizedCancelAPIResponseModel +} + +// 取消账号授权 成功返回结果 +type AlibabaAilabUserAuthorizedCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailab_user_authorized_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回码 + StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` + // 错误中文描述 + Desc string `json:"desc,omitempty" xml:"desc,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabUserAuthorizedCancelResponse.go b/model/alilabs/AlibabaAilabUserAuthorizedCancelResponse.go deleted file mode 100644 index 6b0602ee1a..0000000000 --- a/model/alilabs/AlibabaAilabUserAuthorizedCancelResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消账号授权 API返回值 -alibaba.ailab.user.authorized.cancel - -三方用户取消授权给天猫精灵用户 -*/ -type AlibabaAilabUserAuthorizedCancelAPIResponse struct { - model.CommonResponse - AlibabaAilabUserAuthorizedCancelResponse -} - -// 取消账号授权 成功返回结果 -type AlibabaAilabUserAuthorizedCancelResponse struct { - XMLName xml.Name `xml:"alibaba_ailab_user_authorized_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 返回码 - StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` - // 错误中文描述 - Desc string `json:"desc,omitempty" xml:"desc,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabUserAuthorizedQueryAPIRequest.go b/model/alilabs/AlibabaAilabUserAuthorizedQueryAPIRequest.go new file mode 100644 index 0000000000..cf6ac4efd6 --- /dev/null +++ b/model/alilabs/AlibabaAilabUserAuthorizedQueryAPIRequest.go @@ -0,0 +1,66 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询授权状态接口 API请求 +alibaba.ailab.user.authorized.query + +查询三方用户授权状态 +*/ +type AlibabaAilabUserAuthorizedQueryAPIRequest struct { + model.Params + // 开放平台申请的schema + _schemaKey string + // 三方用户的唯一ID + _merchantUserId string +} + +// 初始化AlibabaAilabUserAuthorizedQueryAPIRequest对象 +func NewAlibabaAilabUserAuthorizedQueryRequest() *AlibabaAilabUserAuthorizedQueryAPIRequest{ + return &AlibabaAilabUserAuthorizedQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabUserAuthorizedQueryAPIRequest) GetApiMethodName() string { + return "alibaba.ailab.user.authorized.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabUserAuthorizedQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SchemaKey Setter +// 开放平台申请的schema +func (r *AlibabaAilabUserAuthorizedQueryAPIRequest) SetSchemaKey(_schemaKey string) error { + r._schemaKey = _schemaKey + r.Set("schema_key", _schemaKey) + return nil +} + +// SchemaKey Getter +func (r AlibabaAilabUserAuthorizedQueryAPIRequest) GetSchemaKey() string { + return r._schemaKey +} +// MerchantUserId Setter +// 三方用户的唯一ID +func (r *AlibabaAilabUserAuthorizedQueryAPIRequest) SetMerchantUserId(_merchantUserId string) error { + r._merchantUserId = _merchantUserId + r.Set("merchant_user_id", _merchantUserId) + return nil +} + +// MerchantUserId Getter +func (r AlibabaAilabUserAuthorizedQueryAPIRequest) GetMerchantUserId() string { + return r._merchantUserId +} diff --git a/model/alilabs/AlibabaAilabUserAuthorizedQueryAPIResponse.go b/model/alilabs/AlibabaAilabUserAuthorizedQueryAPIResponse.go new file mode 100644 index 0000000000..22815a992f --- /dev/null +++ b/model/alilabs/AlibabaAilabUserAuthorizedQueryAPIResponse.go @@ -0,0 +1,31 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询授权状态接口 API返回值 +alibaba.ailab.user.authorized.query + +查询三方用户授权状态 +*/ +type AlibabaAilabUserAuthorizedQueryAPIResponse struct { + model.CommonResponse + AlibabaAilabUserAuthorizedQueryAPIResponseModel +} + +// 查询授权状态接口 成功返回结果 +type AlibabaAilabUserAuthorizedQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailab_user_authorized_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 200 成功,其他失败 + StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` + // 是否已授权 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabUserAuthorizedQueryResponse.go b/model/alilabs/AlibabaAilabUserAuthorizedQueryResponse.go deleted file mode 100644 index 9a88346f56..0000000000 --- a/model/alilabs/AlibabaAilabUserAuthorizedQueryResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询授权状态接口 API返回值 -alibaba.ailab.user.authorized.query - -查询三方用户授权状态 -*/ -type AlibabaAilabUserAuthorizedQueryAPIResponse struct { - model.CommonResponse - AlibabaAilabUserAuthorizedQueryResponse -} - -// 查询授权状态接口 成功返回结果 -type AlibabaAilabUserAuthorizedQueryResponse struct { - XMLName xml.Name `xml:"alibaba_ailab_user_authorized_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 200 成功,其他失败 - StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` - // 是否已授权 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabUserOpenUidGetAPIRequest.go b/model/alilabs/AlibabaAilabUserOpenUidGetAPIRequest.go new file mode 100644 index 0000000000..60f694dfc2 --- /dev/null +++ b/model/alilabs/AlibabaAilabUserOpenUidGetAPIRequest.go @@ -0,0 +1,66 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +access token 获取精灵用户 id API请求 +alibaba.ailab.user.open.uid.get + +access token 获取精灵用户 id +*/ +type AlibabaAilabUserOpenUidGetAPIRequest struct { + model.Params + // access token + _skillAccessToken string + // skill id + _skillId int64 +} + +// 初始化AlibabaAilabUserOpenUidGetAPIRequest对象 +func NewAlibabaAilabUserOpenUidGetRequest() *AlibabaAilabUserOpenUidGetAPIRequest{ + return &AlibabaAilabUserOpenUidGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabUserOpenUidGetAPIRequest) GetApiMethodName() string { + return "alibaba.ailab.user.open.uid.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabUserOpenUidGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkillAccessToken Setter +// access token +func (r *AlibabaAilabUserOpenUidGetAPIRequest) SetSkillAccessToken(_skillAccessToken string) error { + r._skillAccessToken = _skillAccessToken + r.Set("skill_access_token", _skillAccessToken) + return nil +} + +// SkillAccessToken Getter +func (r AlibabaAilabUserOpenUidGetAPIRequest) GetSkillAccessToken() string { + return r._skillAccessToken +} +// SkillId Setter +// skill id +func (r *AlibabaAilabUserOpenUidGetAPIRequest) SetSkillId(_skillId int64) error { + r._skillId = _skillId + r.Set("skill_id", _skillId) + return nil +} + +// SkillId Getter +func (r AlibabaAilabUserOpenUidGetAPIRequest) GetSkillId() int64 { + return r._skillId +} diff --git a/model/alilabs/AlibabaAilabUserOpenUidGetAPIResponse.go b/model/alilabs/AlibabaAilabUserOpenUidGetAPIResponse.go new file mode 100644 index 0000000000..31d738c366 --- /dev/null +++ b/model/alilabs/AlibabaAilabUserOpenUidGetAPIResponse.go @@ -0,0 +1,31 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +access token 获取精灵用户 id API返回值 +alibaba.ailab.user.open.uid.get + +access token 获取精灵用户 id +*/ +type AlibabaAilabUserOpenUidGetAPIResponse struct { + model.CommonResponse + AlibabaAilabUserOpenUidGetAPIResponseModel +} + +// access token 获取精灵用户 id 成功返回结果 +type AlibabaAilabUserOpenUidGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailab_user_open_uid_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 详细信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // user id + Result string `json:"result,omitempty" xml:"result,omitempty"` + // 状态码,200 成功,其他失败 + StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabUserOpenUidGetResponse.go b/model/alilabs/AlibabaAilabUserOpenUidGetResponse.go deleted file mode 100644 index 91363ed5d9..0000000000 --- a/model/alilabs/AlibabaAilabUserOpenUidGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -access token 获取精灵用户 id API返回值 -alibaba.ailab.user.open.uid.get - -access token 获取精灵用户 id -*/ -type AlibabaAilabUserOpenUidGetAPIResponse struct { - model.CommonResponse - AlibabaAilabUserOpenUidGetResponse -} - -// access token 获取精灵用户 id 成功返回结果 -type AlibabaAilabUserOpenUidGetResponse struct { - XMLName xml.Name `xml:"alibaba_ailab_user_open_uid_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 详细信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // user id - Result string `json:"result,omitempty" xml:"result,omitempty"` - // 状态码,200 成功,其他失败 - StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabUserProfileGetAPIRequest.go b/model/alilabs/AlibabaAilabUserProfileGetAPIRequest.go new file mode 100644 index 0000000000..4d00902e8b --- /dev/null +++ b/model/alilabs/AlibabaAilabUserProfileGetAPIRequest.go @@ -0,0 +1,66 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询用户信息 API请求 +alibaba.ailab.user.profile.get + +提供天猫精灵用户头像、昵称的查询接口,供本田车载天猫精灵使用 +*/ +type AlibabaAilabUserProfileGetAPIRequest struct { + model.Params + // open uid + _openUid string + // client id + _clientId string +} + +// 初始化AlibabaAilabUserProfileGetAPIRequest对象 +func NewAlibabaAilabUserProfileGetRequest() *AlibabaAilabUserProfileGetAPIRequest{ + return &AlibabaAilabUserProfileGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabUserProfileGetAPIRequest) GetApiMethodName() string { + return "alibaba.ailab.user.profile.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabUserProfileGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenUid Setter +// open uid +func (r *AlibabaAilabUserProfileGetAPIRequest) SetOpenUid(_openUid string) error { + r._openUid = _openUid + r.Set("open_uid", _openUid) + return nil +} + +// OpenUid Getter +func (r AlibabaAilabUserProfileGetAPIRequest) GetOpenUid() string { + return r._openUid +} +// ClientId Setter +// client id +func (r *AlibabaAilabUserProfileGetAPIRequest) SetClientId(_clientId string) error { + r._clientId = _clientId + r.Set("client_id", _clientId) + return nil +} + +// ClientId Getter +func (r AlibabaAilabUserProfileGetAPIRequest) GetClientId() string { + return r._clientId +} diff --git a/model/alilabs/AlibabaAilabUserProfileGetAPIResponse.go b/model/alilabs/AlibabaAilabUserProfileGetAPIResponse.go new file mode 100644 index 0000000000..57bc9bb006 --- /dev/null +++ b/model/alilabs/AlibabaAilabUserProfileGetAPIResponse.go @@ -0,0 +1,27 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询用户信息 API返回值 +alibaba.ailab.user.profile.get + +提供天猫精灵用户头像、昵称的查询接口,供本田车载天猫精灵使用 +*/ +type AlibabaAilabUserProfileGetAPIResponse struct { + model.CommonResponse + AlibabaAilabUserProfileGetAPIResponseModel +} + +// 查询用户信息 成功返回结果 +type AlibabaAilabUserProfileGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailab_user_profile_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口model + Result *AlibabaAilabUserProfileGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabUserProfileGetResponse.go b/model/alilabs/AlibabaAilabUserProfileGetResponse.go deleted file mode 100644 index 2c00912c76..0000000000 --- a/model/alilabs/AlibabaAilabUserProfileGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询用户信息 API返回值 -alibaba.ailab.user.profile.get - -提供天猫精灵用户头像、昵称的查询接口,供本田车载天猫精灵使用 -*/ -type AlibabaAilabUserProfileGetAPIResponse struct { - model.CommonResponse - AlibabaAilabUserProfileGetResponse -} - -// 查询用户信息 成功返回结果 -type AlibabaAilabUserProfileGetResponse struct { - XMLName xml.Name `xml:"alibaba_ailab_user_profile_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口model - Result *AlibabaAilabUserProfileGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabUserTokenGetAPIRequest.go b/model/alilabs/AlibabaAilabUserTokenGetAPIRequest.go new file mode 100644 index 0000000000..83dd685860 --- /dev/null +++ b/model/alilabs/AlibabaAilabUserTokenGetAPIRequest.go @@ -0,0 +1,80 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +三方账号获取 token API请求 +alibaba.ailab.user.token.get + +inside 设备的三方 app,通过 extId、schema 生成 token +*/ +type AlibabaAilabUserTokenGetAPIRequest struct { + model.Params + // 三方用户的唯一ID + _merchantUserId string + // 开放平台申请的schema + _schemaKey string + // 用户点击同意授权,则会有授权结果:success/fail,此结果通过 callBackUrl 回调给三方 如果授权账号重复授权给已授权的淘宝账号,幂等返回成功 url 的调用是 表单 post 的方式, request body success example: merchantUserId=xxx&result=success request body fail example: merchantUserId=xxx&result=fail + _callBackUrl string +} + +// 初始化AlibabaAilabUserTokenGetAPIRequest对象 +func NewAlibabaAilabUserTokenGetRequest() *AlibabaAilabUserTokenGetAPIRequest{ + return &AlibabaAilabUserTokenGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabUserTokenGetAPIRequest) GetApiMethodName() string { + return "alibaba.ailab.user.token.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabUserTokenGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MerchantUserId Setter +// 三方用户的唯一ID +func (r *AlibabaAilabUserTokenGetAPIRequest) SetMerchantUserId(_merchantUserId string) error { + r._merchantUserId = _merchantUserId + r.Set("merchant_user_id", _merchantUserId) + return nil +} + +// MerchantUserId Getter +func (r AlibabaAilabUserTokenGetAPIRequest) GetMerchantUserId() string { + return r._merchantUserId +} +// SchemaKey Setter +// 开放平台申请的schema +func (r *AlibabaAilabUserTokenGetAPIRequest) SetSchemaKey(_schemaKey string) error { + r._schemaKey = _schemaKey + r.Set("schema_key", _schemaKey) + return nil +} + +// SchemaKey Getter +func (r AlibabaAilabUserTokenGetAPIRequest) GetSchemaKey() string { + return r._schemaKey +} +// CallBackUrl Setter +// 用户点击同意授权,则会有授权结果:success/fail,此结果通过 callBackUrl 回调给三方 如果授权账号重复授权给已授权的淘宝账号,幂等返回成功 url 的调用是 表单 post 的方式, request body success example: merchantUserId=xxx&result=success request body fail example: merchantUserId=xxx&result=fail +func (r *AlibabaAilabUserTokenGetAPIRequest) SetCallBackUrl(_callBackUrl string) error { + r._callBackUrl = _callBackUrl + r.Set("call_back_url", _callBackUrl) + return nil +} + +// CallBackUrl Getter +func (r AlibabaAilabUserTokenGetAPIRequest) GetCallBackUrl() string { + return r._callBackUrl +} diff --git a/model/alilabs/AlibabaAilabUserTokenGetAPIResponse.go b/model/alilabs/AlibabaAilabUserTokenGetAPIResponse.go new file mode 100644 index 0000000000..fe4536746f --- /dev/null +++ b/model/alilabs/AlibabaAilabUserTokenGetAPIResponse.go @@ -0,0 +1,31 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +三方账号获取 token API返回值 +alibaba.ailab.user.token.get + +inside 设备的三方 app,通过 extId、schema 生成 token +*/ +type AlibabaAilabUserTokenGetAPIResponse struct { + model.CommonResponse + AlibabaAilabUserTokenGetAPIResponseModel +} + +// 三方账号获取 token 成功返回结果 +type AlibabaAilabUserTokenGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailab_user_token_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // statusCode + StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` + // 随机 uuid,token 在5分钟后失效,token 在授权成功后失效;建议每次调用 api 获取最新 token + Token string `json:"token,omitempty" xml:"token,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabUserTokenGetResponse.go b/model/alilabs/AlibabaAilabUserTokenGetResponse.go deleted file mode 100644 index d8175bc0a7..0000000000 --- a/model/alilabs/AlibabaAilabUserTokenGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -三方账号获取 token API返回值 -alibaba.ailab.user.token.get - -inside 设备的三方 app,通过 extId、schema 生成 token -*/ -type AlibabaAilabUserTokenGetAPIResponse struct { - model.CommonResponse - AlibabaAilabUserTokenGetResponse -} - -// 三方账号获取 token 成功返回结果 -type AlibabaAilabUserTokenGetResponse struct { - XMLName xml.Name `xml:"alibaba_ailab_user_token_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // statusCode - StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` - // 随机 uuid,token 在5分钟后失效,token 在授权成功后失效;建议每次调用 api 获取最新 token - Token string `json:"token,omitempty" xml:"token,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest.go b/model/alilabs/AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest.go new file mode 100644 index 0000000000..6b16f19a5b --- /dev/null +++ b/model/alilabs/AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest.go @@ -0,0 +1,80 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设备列表更新通知 API请求 +alibaba.ailabs.iot.device.list.update.notify + +用于人工智能实验室IoT合作厂商上报三方接入IoT设备列表更新时的通知 +*/ +type AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest struct { + model.Params + // 用户OAuth授权后的token + _token string + // 厂商在天猫精灵开放平台申请的技能id + _skillId string + // 更新类型 1:设备更新 2:场景更新 + _type string +} + +// 初始化AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest对象 +func NewAlibabaAilabsIotDeviceListUpdateNotifyRequest() *AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest{ + return &AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.iot.device.list.update.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Token Setter +// 用户OAuth授权后的token +func (r *AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest) GetToken() string { + return r._token +} +// SkillId Setter +// 厂商在天猫精灵开放平台申请的技能id +func (r *AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest) SetSkillId(_skillId string) error { + r._skillId = _skillId + r.Set("skill_id", _skillId) + return nil +} + +// SkillId Getter +func (r AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest) GetSkillId() string { + return r._skillId +} +// Type Setter +// 更新类型 1:设备更新 2:场景更新 +func (r *AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaAilabsIotDeviceListUpdateNotifyAPIRequest) GetType() string { + return r._type +} diff --git a/model/alilabs/AlibabaAilabsIotDeviceListUpdateNotifyAPIResponse.go b/model/alilabs/AlibabaAilabsIotDeviceListUpdateNotifyAPIResponse.go new file mode 100644 index 0000000000..a5fe105d74 --- /dev/null +++ b/model/alilabs/AlibabaAilabsIotDeviceListUpdateNotifyAPIResponse.go @@ -0,0 +1,27 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设备列表更新通知 API返回值 +alibaba.ailabs.iot.device.list.update.notify + +用于人工智能实验室IoT合作厂商上报三方接入IoT设备列表更新时的通知 +*/ +type AlibabaAilabsIotDeviceListUpdateNotifyAPIResponse struct { + model.CommonResponse + AlibabaAilabsIotDeviceListUpdateNotifyAPIResponseModel +} + +// 设备列表更新通知 成功返回结果 +type AlibabaAilabsIotDeviceListUpdateNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_iot_device_list_update_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAilabsIotDeviceListUpdateNotifyResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabsIotDeviceListUpdateNotifyResponse.go b/model/alilabs/AlibabaAilabsIotDeviceListUpdateNotifyResponse.go deleted file mode 100644 index 9458e781e2..0000000000 --- a/model/alilabs/AlibabaAilabsIotDeviceListUpdateNotifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设备列表更新通知 API返回值 -alibaba.ailabs.iot.device.list.update.notify - -用于人工智能实验室IoT合作厂商上报三方接入IoT设备列表更新时的通知 -*/ -type AlibabaAilabsIotDeviceListUpdateNotifyAPIResponse struct { - model.CommonResponse - AlibabaAilabsIotDeviceListUpdateNotifyResponse -} - -// 设备列表更新通知 成功返回结果 -type AlibabaAilabsIotDeviceListUpdateNotifyResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_iot_device_list_update_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAilabsIotDeviceListUpdateNotifyResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabsIotDeviceStatusUpdateAPIRequest.go b/model/alilabs/AlibabaAilabsIotDeviceStatusUpdateAPIRequest.go new file mode 100644 index 0000000000..56eef8fe11 --- /dev/null +++ b/model/alilabs/AlibabaAilabsIotDeviceStatusUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ailabs iot 设备状态更新 API请求 +alibaba.ailabs.iot.device.status.update + +用于人工智能实验室IoT合作厂商上报三方接入IoT设备状态更新时的设备状态上报 +*/ +type AlibabaAilabsIotDeviceStatusUpdateAPIRequest struct { + model.Params + // 入参设备信息 + _deviceStatusDTO *DeviceStatusDto +} + +// 初始化AlibabaAilabsIotDeviceStatusUpdateAPIRequest对象 +func NewAlibabaAilabsIotDeviceStatusUpdateRequest() *AlibabaAilabsIotDeviceStatusUpdateAPIRequest{ + return &AlibabaAilabsIotDeviceStatusUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsIotDeviceStatusUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.iot.device.status.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsIotDeviceStatusUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceStatusDTO Setter +// 入参设备信息 +func (r *AlibabaAilabsIotDeviceStatusUpdateAPIRequest) SetDeviceStatusDTO(_deviceStatusDTO *DeviceStatusDto) error { + r._deviceStatusDTO = _deviceStatusDTO + r.Set("device_status_d_t_o", _deviceStatusDTO) + return nil +} + +// DeviceStatusDTO Getter +func (r AlibabaAilabsIotDeviceStatusUpdateAPIRequest) GetDeviceStatusDTO() *DeviceStatusDto { + return r._deviceStatusDTO +} diff --git a/model/alilabs/AlibabaAilabsIotDeviceStatusUpdateAPIResponse.go b/model/alilabs/AlibabaAilabsIotDeviceStatusUpdateAPIResponse.go new file mode 100644 index 0000000000..b2bf036172 --- /dev/null +++ b/model/alilabs/AlibabaAilabsIotDeviceStatusUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ailabs iot 设备状态更新 API返回值 +alibaba.ailabs.iot.device.status.update + +用于人工智能实验室IoT合作厂商上报三方接入IoT设备状态更新时的设备状态上报 +*/ +type AlibabaAilabsIotDeviceStatusUpdateAPIResponse struct { + model.CommonResponse + AlibabaAilabsIotDeviceStatusUpdateAPIResponseModel +} + +// ailabs iot 设备状态更新 成功返回结果 +type AlibabaAilabsIotDeviceStatusUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_iot_device_status_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 设备状态更新是否成功 + Result *AlibabaAilabsIotDeviceStatusUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabsIotDeviceStatusUpdateResponse.go b/model/alilabs/AlibabaAilabsIotDeviceStatusUpdateResponse.go deleted file mode 100644 index af163c5c78..0000000000 --- a/model/alilabs/AlibabaAilabsIotDeviceStatusUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ailabs iot 设备状态更新 API返回值 -alibaba.ailabs.iot.device.status.update - -用于人工智能实验室IoT合作厂商上报三方接入IoT设备状态更新时的设备状态上报 -*/ -type AlibabaAilabsIotDeviceStatusUpdateAPIResponse struct { - model.CommonResponse - AlibabaAilabsIotDeviceStatusUpdateResponse -} - -// ailabs iot 设备状态更新 成功返回结果 -type AlibabaAilabsIotDeviceStatusUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_iot_device_status_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 设备状态更新是否成功 - Result *AlibabaAilabsIotDeviceStatusUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest.go b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest.go new file mode 100644 index 0000000000..8ea009db3d --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest.go @@ -0,0 +1,80 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备详情 API请求 +alibaba.ailabs.tmallgenie.auth.device.get + +通过此接口获取设备详情 +*/ +type AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest struct { + model.Params + // 客户id + _clientId string + // 用户开放id + _userOpenId string + // 设备uuid + _uuid string +} + +// 初始化AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest对象 +func NewAlibabaAilabsTmallgenieAuthDeviceGetRequest() *AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest{ + return &AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.tmallgenie.auth.device.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ClientId Setter +// 客户id +func (r *AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest) SetClientId(_clientId string) error { + r._clientId = _clientId + r.Set("client_id", _clientId) + return nil +} + +// ClientId Getter +func (r AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest) GetClientId() string { + return r._clientId +} +// UserOpenId Setter +// 用户开放id +func (r *AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest) SetUserOpenId(_userOpenId string) error { + r._userOpenId = _userOpenId + r.Set("user_open_id", _userOpenId) + return nil +} + +// UserOpenId Getter +func (r AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest) GetUserOpenId() string { + return r._userOpenId +} +// Uuid Setter +// 设备uuid +func (r *AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaAilabsTmallgenieAuthDeviceGetAPIRequest) GetUuid() string { + return r._uuid +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceGetAPIResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceGetAPIResponse.go new file mode 100644 index 0000000000..10f1b4fa8f --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceGetAPIResponse.go @@ -0,0 +1,27 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备详情 API返回值 +alibaba.ailabs.tmallgenie.auth.device.get + +通过此接口获取设备详情 +*/ +type AlibabaAilabsTmallgenieAuthDeviceGetAPIResponse struct { + model.CommonResponse + AlibabaAilabsTmallgenieAuthDeviceGetAPIResponseModel +} + +// 获取设备详情 成功返回结果 +type AlibabaAilabsTmallgenieAuthDeviceGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 设备信息 + DeviceInfo *AlibabaAilabsTmallgenieAuthDeviceGetResult `json:"device_info,omitempty" xml:"device_info,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceGetResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceGetResponse.go deleted file mode 100644 index b1240fd29b..0000000000 --- a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取设备详情 API返回值 -alibaba.ailabs.tmallgenie.auth.device.get - -通过此接口获取设备详情 -*/ -type AlibabaAilabsTmallgenieAuthDeviceGetAPIResponse struct { - model.CommonResponse - AlibabaAilabsTmallgenieAuthDeviceGetResponse -} - -// 获取设备详情 成功返回结果 -type AlibabaAilabsTmallgenieAuthDeviceGetResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 设备信息 - DeviceInfo *AlibabaAilabsTmallgenieAuthDeviceGetResult `json:"device_info,omitempty" xml:"device_info,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceListAPIRequest.go b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceListAPIRequest.go new file mode 100644 index 0000000000..35fc32e7b7 --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceListAPIRequest.go @@ -0,0 +1,66 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户设备列表 API请求 +alibaba.ailabs.tmallgenie.auth.device.list + +通过此接口获取用户绑定的设备信息列表 +*/ +type AlibabaAilabsTmallgenieAuthDeviceListAPIRequest struct { + model.Params + // 客户id + _clientId string + // 用户开放id + _userOpenId string +} + +// 初始化AlibabaAilabsTmallgenieAuthDeviceListAPIRequest对象 +func NewAlibabaAilabsTmallgenieAuthDeviceListRequest() *AlibabaAilabsTmallgenieAuthDeviceListAPIRequest{ + return &AlibabaAilabsTmallgenieAuthDeviceListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsTmallgenieAuthDeviceListAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.tmallgenie.auth.device.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsTmallgenieAuthDeviceListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ClientId Setter +// 客户id +func (r *AlibabaAilabsTmallgenieAuthDeviceListAPIRequest) SetClientId(_clientId string) error { + r._clientId = _clientId + r.Set("client_id", _clientId) + return nil +} + +// ClientId Getter +func (r AlibabaAilabsTmallgenieAuthDeviceListAPIRequest) GetClientId() string { + return r._clientId +} +// UserOpenId Setter +// 用户开放id +func (r *AlibabaAilabsTmallgenieAuthDeviceListAPIRequest) SetUserOpenId(_userOpenId string) error { + r._userOpenId = _userOpenId + r.Set("user_open_id", _userOpenId) + return nil +} + +// UserOpenId Getter +func (r AlibabaAilabsTmallgenieAuthDeviceListAPIRequest) GetUserOpenId() string { + return r._userOpenId +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceListAPIResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceListAPIResponse.go new file mode 100644 index 0000000000..1b16708bc7 --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceListAPIResponse.go @@ -0,0 +1,27 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户设备列表 API返回值 +alibaba.ailabs.tmallgenie.auth.device.list + +通过此接口获取用户绑定的设备信息列表 +*/ +type AlibabaAilabsTmallgenieAuthDeviceListAPIResponse struct { + model.CommonResponse + AlibabaAilabsTmallgenieAuthDeviceListAPIResponseModel +} + +// 获取用户设备列表 成功返回结果 +type AlibabaAilabsTmallgenieAuthDeviceListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 设备列表 + Devices []AlibabaAilabsTmallgenieAuthDeviceListResult `json:"devices,omitempty" xml:"devices>alibaba_ailabs_tmallgenie_auth_device_list_result,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceListResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceListResponse.go deleted file mode 100644 index 3d987bd08a..0000000000 --- a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户设备列表 API返回值 -alibaba.ailabs.tmallgenie.auth.device.list - -通过此接口获取用户绑定的设备信息列表 -*/ -type AlibabaAilabsTmallgenieAuthDeviceListAPIResponse struct { - model.CommonResponse - AlibabaAilabsTmallgenieAuthDeviceListResponse -} - -// 获取用户设备列表 成功返回结果 -type AlibabaAilabsTmallgenieAuthDeviceListResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 设备列表 - Devices []AlibabaAilabsTmallgenieAuthDeviceListResult `json:"devices,omitempty" xml:"devices>alibaba_ailabs_tmallgenie_auth_device_list_result,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest.go b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest.go new file mode 100644 index 0000000000..bd8e584ccc --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest.go @@ -0,0 +1,94 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +扫码激活设备 API请求 +alibaba.ailabs.tmallgenie.auth.device.qrcode.activate + +三方带屏设备显示二维码(从天猫精灵云获取),使用三方APP扫码,将扫码到的安全code,通过TOP接口请求天猫精灵云,精灵云解析安全code的数据并激活对应的设备。 +*/ +type AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest struct { + model.Params + // OAUTH authcode码 + _code string + // 产品终端ID + _clientId string + // 淘宝授权ID + _taobaoUserOpenid string + // 扩展数据 + _extInfo string +} + +// 初始化AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest对象 +func NewAlibabaAilabsTmallgenieAuthDeviceQrcodeActivateRequest() *AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest{ + return &AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.tmallgenie.auth.device.qrcode.activate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// OAUTH authcode码 +func (r *AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) GetCode() string { + return r._code +} +// ClientId Setter +// 产品终端ID +func (r *AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) SetClientId(_clientId string) error { + r._clientId = _clientId + r.Set("client_id", _clientId) + return nil +} + +// ClientId Getter +func (r AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) GetClientId() string { + return r._clientId +} +// TaobaoUserOpenid Setter +// 淘宝授权ID +func (r *AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) SetTaobaoUserOpenid(_taobaoUserOpenid string) error { + r._taobaoUserOpenid = _taobaoUserOpenid + r.Set("taobao_user_openid", _taobaoUserOpenid) + return nil +} + +// TaobaoUserOpenid Getter +func (r AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) GetTaobaoUserOpenid() string { + return r._taobaoUserOpenid +} +// ExtInfo Setter +// 扩展数据 +func (r *AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) SetExtInfo(_extInfo string) error { + r._extInfo = _extInfo + r.Set("ext_info", _extInfo) + return nil +} + +// ExtInfo Getter +func (r AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIRequest) GetExtInfo() string { + return r._extInfo +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIResponse.go new file mode 100644 index 0000000000..4db50f8346 --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIResponse.go @@ -0,0 +1,31 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +扫码激活设备 API返回值 +alibaba.ailabs.tmallgenie.auth.device.qrcode.activate + +三方带屏设备显示二维码(从天猫精灵云获取),使用三方APP扫码,将扫码到的安全code,通过TOP接口请求天猫精灵云,精灵云解析安全code的数据并激活对应的设备。 +*/ +type AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIResponse struct { + model.CommonResponse + AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIResponseModel +} + +// 扫码激活设备 成功返回结果 +type AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_qrcode_activate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *SCanQrCodeResultVo `json:"result,omitempty" xml:"result,omitempty"` + // 结果码 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 结果消息 + RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateResponse.go deleted file mode 100644 index 5393100f8d..0000000000 --- a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -扫码激活设备 API返回值 -alibaba.ailabs.tmallgenie.auth.device.qrcode.activate - -三方带屏设备显示二维码(从天猫精灵云获取),使用三方APP扫码,将扫码到的安全code,通过TOP接口请求天猫精灵云,精灵云解析安全code的数据并激活对应的设备。 -*/ -type AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateAPIResponse struct { - model.CommonResponse - AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateResponse -} - -// 扫码激活设备 成功返回结果 -type AlibabaAilabsTmallgenieAuthDeviceQrcodeActivateResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_qrcode_activate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *SCanQrCodeResultVo `json:"result,omitempty" xml:"result,omitempty"` - // 结果码 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 结果消息 - RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest.go b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest.go new file mode 100644 index 0000000000..580e204595 --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest.go @@ -0,0 +1,80 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设备状态查询 API请求 +alibaba.ailabs.tmallgenie.auth.device.status.get + +提供给天猫精灵定制机厂商 查询设备在线状态值 +*/ +type AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest struct { + model.Params + // 给产品分配的唯一ID(22位) + _clientId string + // 精灵用户的唯一外部ID + _userOpenId string + // 精灵设备的唯一ID + _uuid string +} + +// 初始化AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest对象 +func NewAlibabaAilabsTmallgenieAuthDeviceStatusGetRequest() *AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest{ + return &AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.tmallgenie.auth.device.status.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ClientId Setter +// 给产品分配的唯一ID(22位) +func (r *AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest) SetClientId(_clientId string) error { + r._clientId = _clientId + r.Set("client_id", _clientId) + return nil +} + +// ClientId Getter +func (r AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest) GetClientId() string { + return r._clientId +} +// UserOpenId Setter +// 精灵用户的唯一外部ID +func (r *AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest) SetUserOpenId(_userOpenId string) error { + r._userOpenId = _userOpenId + r.Set("user_open_id", _userOpenId) + return nil +} + +// UserOpenId Getter +func (r AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest) GetUserOpenId() string { + return r._userOpenId +} +// Uuid Setter +// 精灵设备的唯一ID +func (r *AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIRequest) GetUuid() string { + return r._uuid +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIResponse.go new file mode 100644 index 0000000000..fa584bfb09 --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIResponse.go @@ -0,0 +1,27 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设备状态查询 API返回值 +alibaba.ailabs.tmallgenie.auth.device.status.get + +提供给天猫精灵定制机厂商 查询设备在线状态值 +*/ +type AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIResponse struct { + model.CommonResponse + AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIResponseModel +} + +// 设备状态查询 成功返回结果 +type AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_status_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口对象封装 + Result *AlibabaAilabsTmallgenieAuthDeviceStatusGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceStatusGetResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceStatusGetResponse.go deleted file mode 100644 index ffa8780946..0000000000 --- a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceStatusGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设备状态查询 API返回值 -alibaba.ailabs.tmallgenie.auth.device.status.get - -提供给天猫精灵定制机厂商 查询设备在线状态值 -*/ -type AlibabaAilabsTmallgenieAuthDeviceStatusGetAPIResponse struct { - model.CommonResponse - AlibabaAilabsTmallgenieAuthDeviceStatusGetResponse -} - -// 设备状态查询 成功返回结果 -type AlibabaAilabsTmallgenieAuthDeviceStatusGetResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_status_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口对象封装 - Result *AlibabaAilabsTmallgenieAuthDeviceStatusGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest.go b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest.go new file mode 100644 index 0000000000..8fbe228215 --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest.go @@ -0,0 +1,80 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +解绑设备 API请求 +alibaba.ailabs.tmallgenie.auth.device.unbind + +通过此接口解绑天猫精灵设备 +*/ +type AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest struct { + model.Params + // 客户id + _clientId string + // 用户开放id + _userOpenId string + // 设备uuid + _uuid string +} + +// 初始化AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest对象 +func NewAlibabaAilabsTmallgenieAuthDeviceUnbindRequest() *AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest{ + return &AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.tmallgenie.auth.device.unbind" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ClientId Setter +// 客户id +func (r *AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest) SetClientId(_clientId string) error { + r._clientId = _clientId + r.Set("client_id", _clientId) + return nil +} + +// ClientId Getter +func (r AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest) GetClientId() string { + return r._clientId +} +// UserOpenId Setter +// 用户开放id +func (r *AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest) SetUserOpenId(_userOpenId string) error { + r._userOpenId = _userOpenId + r.Set("user_open_id", _userOpenId) + return nil +} + +// UserOpenId Getter +func (r AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest) GetUserOpenId() string { + return r._userOpenId +} +// Uuid Setter +// 设备uuid +func (r *AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaAilabsTmallgenieAuthDeviceUnbindAPIRequest) GetUuid() string { + return r._uuid +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceUnbindAPIResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceUnbindAPIResponse.go new file mode 100644 index 0000000000..1521d63c86 --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceUnbindAPIResponse.go @@ -0,0 +1,27 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +解绑设备 API返回值 +alibaba.ailabs.tmallgenie.auth.device.unbind + +通过此接口解绑天猫精灵设备 +*/ +type AlibabaAilabsTmallgenieAuthDeviceUnbindAPIResponse struct { + model.CommonResponse + AlibabaAilabsTmallgenieAuthDeviceUnbindAPIResponseModel +} + +// 解绑设备 成功返回结果 +type AlibabaAilabsTmallgenieAuthDeviceUnbindAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_unbind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回包装类 + Result *AlibabaAilabsTmallgenieAuthDeviceUnbindResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceUnbindResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceUnbindResponse.go deleted file mode 100644 index 8951d82492..0000000000 --- a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceUnbindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -解绑设备 API返回值 -alibaba.ailabs.tmallgenie.auth.device.unbind - -通过此接口解绑天猫精灵设备 -*/ -type AlibabaAilabsTmallgenieAuthDeviceUnbindAPIResponse struct { - model.CommonResponse - AlibabaAilabsTmallgenieAuthDeviceUnbindResponse -} - -// 解绑设备 成功返回结果 -type AlibabaAilabsTmallgenieAuthDeviceUnbindResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_unbind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回包装类 - Result *AlibabaAilabsTmallgenieAuthDeviceUnbindResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest.go b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest.go new file mode 100644 index 0000000000..ba052083af --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest.go @@ -0,0 +1,66 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据三方ID查询设备注册激活信息 API请求 +alibaba.ailabs.tmallgenie.auth.device.withdeviceid.get + +根据三方ID查询设备注册激活信息 +*/ +type AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest struct { + model.Params + // 设备产品ID + _clientId string + // mac地址 + _mac string +} + +// 初始化AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest对象 +func NewAlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetRequest() *AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest{ + return &AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.tmallgenie.auth.device.withdeviceid.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ClientId Setter +// 设备产品ID +func (r *AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest) SetClientId(_clientId string) error { + r._clientId = _clientId + r.Set("client_id", _clientId) + return nil +} + +// ClientId Getter +func (r AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest) GetClientId() string { + return r._clientId +} +// Mac Setter +// mac地址 +func (r *AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest) SetMac(_mac string) error { + r._mac = _mac + r.Set("mac", _mac) + return nil +} + +// Mac Getter +func (r AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIRequest) GetMac() string { + return r._mac +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIResponse.go new file mode 100644 index 0000000000..89d6061abe --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIResponse.go @@ -0,0 +1,27 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据三方ID查询设备注册激活信息 API返回值 +alibaba.ailabs.tmallgenie.auth.device.withdeviceid.get + +根据三方ID查询设备注册激活信息 +*/ +type AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIResponse struct { + model.CommonResponse + AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIResponseModel +} + +// 根据三方ID查询设备注册激活信息 成功返回结果 +type AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_withdeviceid_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetResponse.go deleted file mode 100644 index 4d8b652c6a..0000000000 --- a/model/alilabs/AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据三方ID查询设备注册激活信息 API返回值 -alibaba.ailabs.tmallgenie.auth.device.withdeviceid.get - -根据三方ID查询设备注册激活信息 -*/ -type AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetAPIResponse struct { - model.CommonResponse - AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetResponse -} - -// 根据三方ID查询设备注册激活信息 成功返回结果 -type AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_withdeviceid_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAilabsTmallgenieAuthDeviceWithdeviceidGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthGetcodeAPIRequest.go b/model/alilabs/AlibabaAilabsTmallgenieAuthGetcodeAPIRequest.go new file mode 100644 index 0000000000..a3d5b0548d --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthGetcodeAPIRequest.go @@ -0,0 +1,66 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取token API请求 +alibaba.ailabs.tmallgenie.auth.getcode + +获取天猫精灵authCode +*/ +type AlibabaAilabsTmallgenieAuthGetcodeAPIRequest struct { + model.Params + // 授权参数 + _authParam *TopAuthReqDto + // 设备参数 + _deviceParam *TopDeviceReqDto +} + +// 初始化AlibabaAilabsTmallgenieAuthGetcodeAPIRequest对象 +func NewAlibabaAilabsTmallgenieAuthGetcodeRequest() *AlibabaAilabsTmallgenieAuthGetcodeAPIRequest{ + return &AlibabaAilabsTmallgenieAuthGetcodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsTmallgenieAuthGetcodeAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.tmallgenie.auth.getcode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsTmallgenieAuthGetcodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AuthParam Setter +// 授权参数 +func (r *AlibabaAilabsTmallgenieAuthGetcodeAPIRequest) SetAuthParam(_authParam *TopAuthReqDto) error { + r._authParam = _authParam + r.Set("auth_param", _authParam) + return nil +} + +// AuthParam Getter +func (r AlibabaAilabsTmallgenieAuthGetcodeAPIRequest) GetAuthParam() *TopAuthReqDto { + return r._authParam +} +// DeviceParam Setter +// 设备参数 +func (r *AlibabaAilabsTmallgenieAuthGetcodeAPIRequest) SetDeviceParam(_deviceParam *TopDeviceReqDto) error { + r._deviceParam = _deviceParam + r.Set("device_param", _deviceParam) + return nil +} + +// DeviceParam Getter +func (r AlibabaAilabsTmallgenieAuthGetcodeAPIRequest) GetDeviceParam() *TopDeviceReqDto { + return r._deviceParam +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthGetcodeAPIResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthGetcodeAPIResponse.go new file mode 100644 index 0000000000..7c0d0ec7f1 --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthGetcodeAPIResponse.go @@ -0,0 +1,27 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取token API返回值 +alibaba.ailabs.tmallgenie.auth.getcode + +获取天猫精灵authCode +*/ +type AlibabaAilabsTmallgenieAuthGetcodeAPIResponse struct { + model.CommonResponse + AlibabaAilabsTmallgenieAuthGetcodeAPIResponseModel +} + +// 获取token 成功返回结果 +type AlibabaAilabsTmallgenieAuthGetcodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_getcode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 授权码 json 串,包含授权码和二维码URL + AuthCode string `json:"auth_code,omitempty" xml:"auth_code,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthGetcodeResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthGetcodeResponse.go deleted file mode 100644 index 48113fdf65..0000000000 --- a/model/alilabs/AlibabaAilabsTmallgenieAuthGetcodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取token API返回值 -alibaba.ailabs.tmallgenie.auth.getcode - -获取天猫精灵authCode -*/ -type AlibabaAilabsTmallgenieAuthGetcodeAPIResponse struct { - model.CommonResponse - AlibabaAilabsTmallgenieAuthGetcodeResponse -} - -// 获取token 成功返回结果 -type AlibabaAilabsTmallgenieAuthGetcodeResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_getcode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 授权码 json 串,包含授权码和二维码URL - AuthCode string `json:"auth_code,omitempty" xml:"auth_code,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthGettokenAPIRequest.go b/model/alilabs/AlibabaAilabsTmallgenieAuthGettokenAPIRequest.go new file mode 100644 index 0000000000..efc1144d67 --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthGettokenAPIRequest.go @@ -0,0 +1,80 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设备授权 API请求 +alibaba.ailabs.tmallgenie.auth.gettoken + +获取设备授权码 +*/ +type AlibabaAilabsTmallgenieAuthGettokenAPIRequest struct { + model.Params + // clientId + _clientId string + // 授权码 + _authCode string + // 授权类型,只支持authorization_code + _grantType string +} + +// 初始化AlibabaAilabsTmallgenieAuthGettokenAPIRequest对象 +func NewAlibabaAilabsTmallgenieAuthGettokenRequest() *AlibabaAilabsTmallgenieAuthGettokenAPIRequest{ + return &AlibabaAilabsTmallgenieAuthGettokenAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsTmallgenieAuthGettokenAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.tmallgenie.auth.gettoken" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsTmallgenieAuthGettokenAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ClientId Setter +// clientId +func (r *AlibabaAilabsTmallgenieAuthGettokenAPIRequest) SetClientId(_clientId string) error { + r._clientId = _clientId + r.Set("client_id", _clientId) + return nil +} + +// ClientId Getter +func (r AlibabaAilabsTmallgenieAuthGettokenAPIRequest) GetClientId() string { + return r._clientId +} +// AuthCode Setter +// 授权码 +func (r *AlibabaAilabsTmallgenieAuthGettokenAPIRequest) SetAuthCode(_authCode string) error { + r._authCode = _authCode + r.Set("auth_code", _authCode) + return nil +} + +// AuthCode Getter +func (r AlibabaAilabsTmallgenieAuthGettokenAPIRequest) GetAuthCode() string { + return r._authCode +} +// GrantType Setter +// 授权类型,只支持authorization_code +func (r *AlibabaAilabsTmallgenieAuthGettokenAPIRequest) SetGrantType(_grantType string) error { + r._grantType = _grantType + r.Set("grant_type", _grantType) + return nil +} + +// GrantType Getter +func (r AlibabaAilabsTmallgenieAuthGettokenAPIRequest) GetGrantType() string { + return r._grantType +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthGettokenAPIResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthGettokenAPIResponse.go new file mode 100644 index 0000000000..db5a70b262 --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthGettokenAPIResponse.go @@ -0,0 +1,29 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设备授权 API返回值 +alibaba.ailabs.tmallgenie.auth.gettoken + +获取设备授权码 +*/ +type AlibabaAilabsTmallgenieAuthGettokenAPIResponse struct { + model.CommonResponse + AlibabaAilabsTmallgenieAuthGettokenAPIResponseModel +} + +// 设备授权 成功返回结果 +type AlibabaAilabsTmallgenieAuthGettokenAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_gettoken_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 设备注册结果 + RegisterResult *RegisterInfoVo `json:"register_result,omitempty" xml:"register_result,omitempty"` + // 授权结果 + AuthResult *DeviceTokenVo `json:"auth_result,omitempty" xml:"auth_result,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthGettokenResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthGettokenResponse.go deleted file mode 100644 index 25fe886712..0000000000 --- a/model/alilabs/AlibabaAilabsTmallgenieAuthGettokenResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设备授权 API返回值 -alibaba.ailabs.tmallgenie.auth.gettoken - -获取设备授权码 -*/ -type AlibabaAilabsTmallgenieAuthGettokenAPIResponse struct { - model.CommonResponse - AlibabaAilabsTmallgenieAuthGettokenResponse -} - -// 设备授权 成功返回结果 -type AlibabaAilabsTmallgenieAuthGettokenResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_gettoken_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 设备注册结果 - RegisterResult *RegisterInfoVo `json:"register_result,omitempty" xml:"register_result,omitempty"` - // 授权结果 - AuthResult *DeviceTokenVo `json:"auth_result,omitempty" xml:"auth_result,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthRefreshAPIRequest.go b/model/alilabs/AlibabaAilabsTmallgenieAuthRefreshAPIRequest.go new file mode 100644 index 0000000000..fcf4f00236 --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthRefreshAPIRequest.go @@ -0,0 +1,52 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +刷新token API请求 +alibaba.ailabs.tmallgenie.auth.refresh + +通过此接口刷新天猫精灵授权token +*/ +type AlibabaAilabsTmallgenieAuthRefreshAPIRequest struct { + model.Params + // refresh_token_request + _refreshTokenRequest *TopRefreshReqDto +} + +// 初始化AlibabaAilabsTmallgenieAuthRefreshAPIRequest对象 +func NewAlibabaAilabsTmallgenieAuthRefreshRequest() *AlibabaAilabsTmallgenieAuthRefreshAPIRequest{ + return &AlibabaAilabsTmallgenieAuthRefreshAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsTmallgenieAuthRefreshAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.tmallgenie.auth.refresh" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsTmallgenieAuthRefreshAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefreshTokenRequest Setter +// refresh_token_request +func (r *AlibabaAilabsTmallgenieAuthRefreshAPIRequest) SetRefreshTokenRequest(_refreshTokenRequest *TopRefreshReqDto) error { + r._refreshTokenRequest = _refreshTokenRequest + r.Set("refresh_token_request", _refreshTokenRequest) + return nil +} + +// RefreshTokenRequest Getter +func (r AlibabaAilabsTmallgenieAuthRefreshAPIRequest) GetRefreshTokenRequest() *TopRefreshReqDto { + return r._refreshTokenRequest +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthRefreshAPIResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthRefreshAPIResponse.go new file mode 100644 index 0000000000..445027997d --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthRefreshAPIResponse.go @@ -0,0 +1,33 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +刷新token API返回值 +alibaba.ailabs.tmallgenie.auth.refresh + +通过此接口刷新天猫精灵授权token +*/ +type AlibabaAilabsTmallgenieAuthRefreshAPIResponse struct { + model.CommonResponse + AlibabaAilabsTmallgenieAuthRefreshAPIResponseModel +} + +// 刷新token 成功返回结果 +type AlibabaAilabsTmallgenieAuthRefreshAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_refresh_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // access token过期时间,相对时间,单位为秒 + AccessExpiresIn int64 `json:"access_expires_in,omitempty" xml:"access_expires_in,omitempty"` + // access_token + AccessToken string `json:"access_token,omitempty" xml:"access_token,omitempty"` + // refresh token过期时间,相对时间,单位为秒 + RefreshExpiresIn int64 `json:"refresh_expires_in,omitempty" xml:"refresh_expires_in,omitempty"` + // refresh_token + RefreshToken string `json:"refresh_token,omitempty" xml:"refresh_token,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthRefreshResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthRefreshResponse.go deleted file mode 100644 index 89165910ef..0000000000 --- a/model/alilabs/AlibabaAilabsTmallgenieAuthRefreshResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -刷新token API返回值 -alibaba.ailabs.tmallgenie.auth.refresh - -通过此接口刷新天猫精灵授权token -*/ -type AlibabaAilabsTmallgenieAuthRefreshAPIResponse struct { - model.CommonResponse - AlibabaAilabsTmallgenieAuthRefreshResponse -} - -// 刷新token 成功返回结果 -type AlibabaAilabsTmallgenieAuthRefreshResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_refresh_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // access token过期时间,相对时间,单位为秒 - AccessExpiresIn int64 `json:"access_expires_in,omitempty" xml:"access_expires_in,omitempty"` - // access_token - AccessToken string `json:"access_token,omitempty" xml:"access_token,omitempty"` - // refresh token过期时间,相对时间,单位为秒 - RefreshExpiresIn int64 `json:"refresh_expires_in,omitempty" xml:"refresh_expires_in,omitempty"` - // refresh_token - RefreshToken string `json:"refresh_token,omitempty" xml:"refresh_token,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest.go b/model/alilabs/AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest.go new file mode 100644 index 0000000000..ebc4b29862 --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest.go @@ -0,0 +1,94 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +切换用户 API请求 +alibaba.ailabs.tmallgenie.auth.switchuser + +设备切换授权用户 +*/ +type AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest struct { + model.Params + // client_id + _clientId string + // 目标用户openId + _newUserOpenId string + // 当前拥有设备权限的用户openId + _oldUserOpenId string + // 设备uuid + _uuid string +} + +// 初始化AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest对象 +func NewAlibabaAilabsTmallgenieAuthSwitchuserRequest() *AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest{ + return &AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.tmallgenie.auth.switchuser" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ClientId Setter +// client_id +func (r *AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) SetClientId(_clientId string) error { + r._clientId = _clientId + r.Set("client_id", _clientId) + return nil +} + +// ClientId Getter +func (r AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) GetClientId() string { + return r._clientId +} +// NewUserOpenId Setter +// 目标用户openId +func (r *AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) SetNewUserOpenId(_newUserOpenId string) error { + r._newUserOpenId = _newUserOpenId + r.Set("new_user_open_id", _newUserOpenId) + return nil +} + +// NewUserOpenId Getter +func (r AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) GetNewUserOpenId() string { + return r._newUserOpenId +} +// OldUserOpenId Setter +// 当前拥有设备权限的用户openId +func (r *AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) SetOldUserOpenId(_oldUserOpenId string) error { + r._oldUserOpenId = _oldUserOpenId + r.Set("old_user_open_id", _oldUserOpenId) + return nil +} + +// OldUserOpenId Getter +func (r AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) GetOldUserOpenId() string { + return r._oldUserOpenId +} +// Uuid Setter +// 设备uuid +func (r *AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaAilabsTmallgenieAuthSwitchuserAPIRequest) GetUuid() string { + return r._uuid +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthSwitchuserAPIResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthSwitchuserAPIResponse.go new file mode 100644 index 0000000000..5d857b6fce --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthSwitchuserAPIResponse.go @@ -0,0 +1,27 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +切换用户 API返回值 +alibaba.ailabs.tmallgenie.auth.switchuser + +设备切换授权用户 +*/ +type AlibabaAilabsTmallgenieAuthSwitchuserAPIResponse struct { + model.CommonResponse + AlibabaAilabsTmallgenieAuthSwitchuserAPIResponseModel +} + +// 切换用户 成功返回结果 +type AlibabaAilabsTmallgenieAuthSwitchuserAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_switchuser_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *AlibabaAilabsTmallgenieAuthSwitchuserResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthSwitchuserResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthSwitchuserResponse.go deleted file mode 100644 index 68a2d0a4bb..0000000000 --- a/model/alilabs/AlibabaAilabsTmallgenieAuthSwitchuserResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -切换用户 API返回值 -alibaba.ailabs.tmallgenie.auth.switchuser - -设备切换授权用户 -*/ -type AlibabaAilabsTmallgenieAuthSwitchuserAPIResponse struct { - model.CommonResponse - AlibabaAilabsTmallgenieAuthSwitchuserResponse -} - -// 切换用户 成功返回结果 -type AlibabaAilabsTmallgenieAuthSwitchuserResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_switchuser_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *AlibabaAilabsTmallgenieAuthSwitchuserResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest.go b/model/alilabs/AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest.go new file mode 100644 index 0000000000..9dab141727 --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest.go @@ -0,0 +1,66 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵淘宝登录授权绑定接口 API请求 +alibaba.ailabs.tmallgenie.auth.taobaoauth + +厂商获取用户淘宝授权之后,通过此接口获取天猫精灵授权,并绑定一台设备 +*/ +type AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest struct { + model.Params + // 授权信息 + _authParam *TopAuthReqDto + // 设备信息 + _deviceParam *TopDeviceReqDto +} + +// 初始化AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest对象 +func NewAlibabaAilabsTmallgenieAuthTaobaoauthRequest() *AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest{ + return &AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.tmallgenie.auth.taobaoauth" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AuthParam Setter +// 授权信息 +func (r *AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest) SetAuthParam(_authParam *TopAuthReqDto) error { + r._authParam = _authParam + r.Set("auth_param", _authParam) + return nil +} + +// AuthParam Getter +func (r AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest) GetAuthParam() *TopAuthReqDto { + return r._authParam +} +// DeviceParam Setter +// 设备信息 +func (r *AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest) SetDeviceParam(_deviceParam *TopDeviceReqDto) error { + r._deviceParam = _deviceParam + r.Set("device_param", _deviceParam) + return nil +} + +// DeviceParam Getter +func (r AlibabaAilabsTmallgenieAuthTaobaoauthAPIRequest) GetDeviceParam() *TopDeviceReqDto { + return r._deviceParam +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthTaobaoauthAPIResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthTaobaoauthAPIResponse.go new file mode 100644 index 0000000000..7b5f73532c --- /dev/null +++ b/model/alilabs/AlibabaAilabsTmallgenieAuthTaobaoauthAPIResponse.go @@ -0,0 +1,29 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵淘宝登录授权绑定接口 API返回值 +alibaba.ailabs.tmallgenie.auth.taobaoauth + +厂商获取用户淘宝授权之后,通过此接口获取天猫精灵授权,并绑定一台设备 +*/ +type AlibabaAilabsTmallgenieAuthTaobaoauthAPIResponse struct { + model.CommonResponse + AlibabaAilabsTmallgenieAuthTaobaoauthAPIResponseModel +} + +// 天猫精灵淘宝登录授权绑定接口 成功返回结果 +type AlibabaAilabsTmallgenieAuthTaobaoauthAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_taobaoauth_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 注册结果 + RegisterResult *RegisterInfoVo `json:"register_result,omitempty" xml:"register_result,omitempty"` + // 授权结果 + AuthResult *DeviceTokenVo `json:"auth_result,omitempty" xml:"auth_result,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabsTmallgenieAuthTaobaoauthResponse.go b/model/alilabs/AlibabaAilabsTmallgenieAuthTaobaoauthResponse.go deleted file mode 100644 index 0eed56f273..0000000000 --- a/model/alilabs/AlibabaAilabsTmallgenieAuthTaobaoauthResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵淘宝登录授权绑定接口 API返回值 -alibaba.ailabs.tmallgenie.auth.taobaoauth - -厂商获取用户淘宝授权之后,通过此接口获取天猫精灵授权,并绑定一台设备 -*/ -type AlibabaAilabsTmallgenieAuthTaobaoauthAPIResponse struct { - model.CommonResponse - AlibabaAilabsTmallgenieAuthTaobaoauthResponse -} - -// 天猫精灵淘宝登录授权绑定接口 成功返回结果 -type AlibabaAilabsTmallgenieAuthTaobaoauthResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_taobaoauth_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 注册结果 - RegisterResult *RegisterInfoVo `json:"register_result,omitempty" xml:"register_result,omitempty"` - // 授权结果 - AuthResult *DeviceTokenVo `json:"auth_result,omitempty" xml:"auth_result,omitempty"` -} diff --git a/model/alilabs/AlibabaAilabsTvsDeviceListAPIRequest.go b/model/alilabs/AlibabaAilabsTvsDeviceListAPIRequest.go new file mode 100644 index 0000000000..8006e664f0 --- /dev/null +++ b/model/alilabs/AlibabaAilabsTvsDeviceListAPIRequest.go @@ -0,0 +1,38 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取TVS设备列表 API请求 +alibaba.ailabs.tvs.device.list + +获取用户所绑定的TVS设备列表 +*/ +type AlibabaAilabsTvsDeviceListAPIRequest struct { + model.Params +} + +// 初始化AlibabaAilabsTvsDeviceListAPIRequest对象 +func NewAlibabaAilabsTvsDeviceListRequest() *AlibabaAilabsTvsDeviceListAPIRequest{ + return &AlibabaAilabsTvsDeviceListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsTvsDeviceListAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.tvs.device.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsTvsDeviceListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/alilabs/AlibabaAilabsTvsDeviceListAPIResponse.go b/model/alilabs/AlibabaAilabsTvsDeviceListAPIResponse.go new file mode 100644 index 0000000000..bc3dcd4feb --- /dev/null +++ b/model/alilabs/AlibabaAilabsTvsDeviceListAPIResponse.go @@ -0,0 +1,33 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取TVS设备列表 API返回值 +alibaba.ailabs.tvs.device.list + +获取用户所绑定的TVS设备列表 +*/ +type AlibabaAilabsTvsDeviceListAPIResponse struct { + model.CommonResponse + AlibabaAilabsTvsDeviceListAPIResponseModel +} + +// 获取TVS设备列表 成功返回结果 +type AlibabaAilabsTvsDeviceListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_tvs_device_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 设备信息列表 + Devices []AlibabaAilabsTvsDeviceListData `json:"devices,omitempty" xml:"devices>alibaba_ailabs_tvs_device_list_data,omitempty"` + // 接口调用结果代码,200代表调用成功。 + StatusCode string `json:"status_code,omitempty" xml:"status_code,omitempty"` + // 接口调用错误时给出的错误相关信息。 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 服务请求是否成功。 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/alilabs/AlibabaAilabsTvsDeviceListResponse.go b/model/alilabs/AlibabaAilabsTvsDeviceListResponse.go deleted file mode 100644 index 8a46297108..0000000000 --- a/model/alilabs/AlibabaAilabsTvsDeviceListResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取TVS设备列表 API返回值 -alibaba.ailabs.tvs.device.list - -获取用户所绑定的TVS设备列表 -*/ -type AlibabaAilabsTvsDeviceListAPIResponse struct { - model.CommonResponse - AlibabaAilabsTvsDeviceListResponse -} - -// 获取TVS设备列表 成功返回结果 -type AlibabaAilabsTvsDeviceListResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_tvs_device_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 设备信息列表 - Devices []AlibabaAilabsTvsDeviceListData `json:"devices,omitempty" xml:"devices>alibaba_ailabs_tvs_device_list_data,omitempty"` - // 接口调用结果代码,200代表调用成功。 - StatusCode string `json:"status_code,omitempty" xml:"status_code,omitempty"` - // 接口调用错误时给出的错误相关信息。 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 服务请求是否成功。 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/alilabs/TaobaoAilabAicloudTopHotwordsGetAPIRequest.go b/model/alilabs/TaobaoAilabAicloudTopHotwordsGetAPIRequest.go new file mode 100644 index 0000000000..3db27ef45d --- /dev/null +++ b/model/alilabs/TaobaoAilabAicloudTopHotwordsGetAPIRequest.go @@ -0,0 +1,80 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取热词 API请求 +taobao.ailab.aicloud.top.hotwords.get + +获取ASR热词 +*/ +type TaobaoAilabAicloudTopHotwordsGetAPIRequest struct { + model.Params + // 三方用户id + _userId string + // 业务类型 + _bizClass string + // schemeKey + _schema string +} + +// 初始化TaobaoAilabAicloudTopHotwordsGetAPIRequest对象 +func NewTaobaoAilabAicloudTopHotwordsGetRequest() *TaobaoAilabAicloudTopHotwordsGetAPIRequest{ + return &TaobaoAilabAicloudTopHotwordsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopHotwordsGetAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.hotwords.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopHotwordsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 三方用户id +func (r *TaobaoAilabAicloudTopHotwordsGetAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopHotwordsGetAPIRequest) GetUserId() string { + return r._userId +} +// BizClass Setter +// 业务类型 +func (r *TaobaoAilabAicloudTopHotwordsGetAPIRequest) SetBizClass(_bizClass string) error { + r._bizClass = _bizClass + r.Set("biz_class", _bizClass) + return nil +} + +// BizClass Getter +func (r TaobaoAilabAicloudTopHotwordsGetAPIRequest) GetBizClass() string { + return r._bizClass +} +// Schema Setter +// schemeKey +func (r *TaobaoAilabAicloudTopHotwordsGetAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopHotwordsGetAPIRequest) GetSchema() string { + return r._schema +} diff --git a/model/alilabs/TaobaoAilabAicloudTopHotwordsGetAPIResponse.go b/model/alilabs/TaobaoAilabAicloudTopHotwordsGetAPIResponse.go new file mode 100644 index 0000000000..5d1856a024 --- /dev/null +++ b/model/alilabs/TaobaoAilabAicloudTopHotwordsGetAPIResponse.go @@ -0,0 +1,27 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取热词 API返回值 +taobao.ailab.aicloud.top.hotwords.get + +获取ASR热词 +*/ +type TaobaoAilabAicloudTopHotwordsGetAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopHotwordsGetAPIResponseModel +} + +// 获取热词 成功返回结果 +type TaobaoAilabAicloudTopHotwordsGetAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_hotwords_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // baseresult + Baseresult *BaseResult `json:"baseresult,omitempty" xml:"baseresult,omitempty"` +} diff --git a/model/alilabs/TaobaoAilabAicloudTopHotwordsGetResponse.go b/model/alilabs/TaobaoAilabAicloudTopHotwordsGetResponse.go deleted file mode 100644 index cf1d8876ac..0000000000 --- a/model/alilabs/TaobaoAilabAicloudTopHotwordsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取热词 API返回值 -taobao.ailab.aicloud.top.hotwords.get - -获取ASR热词 -*/ -type TaobaoAilabAicloudTopHotwordsGetAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopHotwordsGetResponse -} - -// 获取热词 成功返回结果 -type TaobaoAilabAicloudTopHotwordsGetResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_hotwords_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // baseresult - Baseresult *BaseResult `json:"baseresult,omitempty" xml:"baseresult,omitempty"` -} diff --git a/model/alilabs/TaobaoAilabAicloudTopHotwordsUpdateAPIRequest.go b/model/alilabs/TaobaoAilabAicloudTopHotwordsUpdateAPIRequest.go new file mode 100644 index 0000000000..2830eafe41 --- /dev/null +++ b/model/alilabs/TaobaoAilabAicloudTopHotwordsUpdateAPIRequest.go @@ -0,0 +1,108 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新热词 API请求 +taobao.ailab.aicloud.top.hotwords.update + +更新ASR热词 +*/ +type TaobaoAilabAicloudTopHotwordsUpdateAPIRequest struct { + model.Params + // schemaKey + _schema string + // 三方用户id + _userId string + // 业务类型 + _bizClass string + // 操作类型 + _opType string + // 热词内容 + _content *HotWordsContent +} + +// 初始化TaobaoAilabAicloudTopHotwordsUpdateAPIRequest对象 +func NewTaobaoAilabAicloudTopHotwordsUpdateRequest() *TaobaoAilabAicloudTopHotwordsUpdateAPIRequest{ + return &TaobaoAilabAicloudTopHotwordsUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.hotwords.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// schemaKey +func (r *TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 三方用户id +func (r *TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) GetUserId() string { + return r._userId +} +// BizClass Setter +// 业务类型 +func (r *TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) SetBizClass(_bizClass string) error { + r._bizClass = _bizClass + r.Set("biz_class", _bizClass) + return nil +} + +// BizClass Getter +func (r TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) GetBizClass() string { + return r._bizClass +} +// OpType Setter +// 操作类型 +func (r *TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) SetOpType(_opType string) error { + r._opType = _opType + r.Set("op_type", _opType) + return nil +} + +// OpType Getter +func (r TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) GetOpType() string { + return r._opType +} +// Content Setter +// 热词内容 +func (r *TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) SetContent(_content *HotWordsContent) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r TaobaoAilabAicloudTopHotwordsUpdateAPIRequest) GetContent() *HotWordsContent { + return r._content +} diff --git a/model/alilabs/TaobaoAilabAicloudTopHotwordsUpdateAPIResponse.go b/model/alilabs/TaobaoAilabAicloudTopHotwordsUpdateAPIResponse.go new file mode 100644 index 0000000000..8d3b30f24d --- /dev/null +++ b/model/alilabs/TaobaoAilabAicloudTopHotwordsUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新热词 API返回值 +taobao.ailab.aicloud.top.hotwords.update + +更新ASR热词 +*/ +type TaobaoAilabAicloudTopHotwordsUpdateAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopHotwordsUpdateAPIResponseModel +} + +// 更新热词 成功返回结果 +type TaobaoAilabAicloudTopHotwordsUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_hotwords_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // baseresult + Baseresult *BaseResult `json:"baseresult,omitempty" xml:"baseresult,omitempty"` +} diff --git a/model/alilabs/TaobaoAilabAicloudTopHotwordsUpdateResponse.go b/model/alilabs/TaobaoAilabAicloudTopHotwordsUpdateResponse.go deleted file mode 100644 index d6187b14b2..0000000000 --- a/model/alilabs/TaobaoAilabAicloudTopHotwordsUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新热词 API返回值 -taobao.ailab.aicloud.top.hotwords.update - -更新ASR热词 -*/ -type TaobaoAilabAicloudTopHotwordsUpdateAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopHotwordsUpdateResponse -} - -// 更新热词 成功返回结果 -type TaobaoAilabAicloudTopHotwordsUpdateResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_hotwords_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // baseresult - Baseresult *BaseResult `json:"baseresult,omitempty" xml:"baseresult,omitempty"` -} diff --git a/model/alilabs/TaobaoAilabAicloudTopSkilsListNewAPIRequest.go b/model/alilabs/TaobaoAilabAicloudTopSkilsListNewAPIRequest.go new file mode 100644 index 0000000000..7a3c76973d --- /dev/null +++ b/model/alilabs/TaobaoAilabAicloudTopSkilsListNewAPIRequest.go @@ -0,0 +1,150 @@ +package alilabs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取产品下挂载的技能列表 API请求 +taobao.ailab.aicloud.top.skils.list.new + +星空平台提供的获取产品下挂载的技能列表新接口 +*/ +type TaobaoAilabAicloudTopSkilsListNewAPIRequest struct { + model.Params + // 账户体系隔离 + _schema string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 扩展信息,用于存放APP类型等 + _ext string + // query(模糊匹配skillName) + _query string + // type(1000代表内容技能,3000代表自定义技能,4000代表官方技能) + _type string + // pageNo + _pageNo int64 + // pageSize + _pageSize int64 +} + +// 初始化TaobaoAilabAicloudTopSkilsListNewAPIRequest对象 +func NewTaobaoAilabAicloudTopSkilsListNewRequest() *TaobaoAilabAicloudTopSkilsListNewAPIRequest{ + return &TaobaoAilabAicloudTopSkilsListNewAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.skils.list.new" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// 账户体系隔离 +func (r *TaobaoAilabAicloudTopSkilsListNewAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *TaobaoAilabAicloudTopSkilsListNewAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopSkilsListNewAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopSkilsListNewAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetExt() string { + return r._ext +} +// Query Setter +// query(模糊匹配skillName) +func (r *TaobaoAilabAicloudTopSkilsListNewAPIRequest) SetQuery(_query string) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetQuery() string { + return r._query +} +// Type Setter +// type(1000代表内容技能,3000代表自定义技能,4000代表官方技能) +func (r *TaobaoAilabAicloudTopSkilsListNewAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetType() string { + return r._type +} +// PageNo Setter +// pageNo +func (r *TaobaoAilabAicloudTopSkilsListNewAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// pageSize +func (r *TaobaoAilabAicloudTopSkilsListNewAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoAilabAicloudTopSkilsListNewAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/alilabs/TaobaoAilabAicloudTopSkilsListNewAPIResponse.go b/model/alilabs/TaobaoAilabAicloudTopSkilsListNewAPIResponse.go new file mode 100644 index 0000000000..459f27d3f1 --- /dev/null +++ b/model/alilabs/TaobaoAilabAicloudTopSkilsListNewAPIResponse.go @@ -0,0 +1,27 @@ +package alilabs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取产品下挂载的技能列表 API返回值 +taobao.ailab.aicloud.top.skils.list.new + +星空平台提供的获取产品下挂载的技能列表新接口 +*/ +type TaobaoAilabAicloudTopSkilsListNewAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopSkilsListNewAPIResponseModel +} + +// 获取产品下挂载的技能列表 成功返回结果 +type TaobaoAilabAicloudTopSkilsListNewAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_skils_list_new_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回包装类 + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alilabs/TaobaoAilabAicloudTopSkilsListNewResponse.go b/model/alilabs/TaobaoAilabAicloudTopSkilsListNewResponse.go deleted file mode 100644 index a044973170..0000000000 --- a/model/alilabs/TaobaoAilabAicloudTopSkilsListNewResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alilabs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取产品下挂载的技能列表 API返回值 -taobao.ailab.aicloud.top.skils.list.new - -星空平台提供的获取产品下挂载的技能列表新接口 -*/ -type TaobaoAilabAicloudTopSkilsListNewAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopSkilsListNewResponse -} - -// 获取产品下挂载的技能列表 成功返回结果 -type TaobaoAilabAicloudTopSkilsListNewResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_skils_list_new_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回包装类 - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alime/TaobaoAlimeUserTokenAdvanceGetAPIRequest.go b/model/alime/TaobaoAlimeUserTokenAdvanceGetAPIRequest.go new file mode 100644 index 0000000000..96530d33c8 --- /dev/null +++ b/model/alime/TaobaoAlimeUserTokenAdvanceGetAPIRequest.go @@ -0,0 +1,136 @@ +package alime + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户免登录令牌v2 API请求 +taobao.alime.user.token.advance.get + +根据第三账号信息获取用户的免登录令牌 +*/ +type TaobaoAlimeUserTokenAdvanceGetAPIRequest struct { + model.Params + // 路由id, 一般为用户id,用于异地容灾 + _routing int64 + // 用户类型,0为普通用户,1为访客用户 + _type int64 + // 用户在第三方账号中的唯一id + _foreignId string + // 用户昵称 + _nick string + // 小蜜分配给第三方账号的来源 + _source int64 + // 用户在小蜜账号中的唯一id + _id int64 + // 令牌的过期时间(时间为秒),最大为3600 + _expires int64 +} + +// 初始化TaobaoAlimeUserTokenAdvanceGetAPIRequest对象 +func NewTaobaoAlimeUserTokenAdvanceGetRequest() *TaobaoAlimeUserTokenAdvanceGetAPIRequest{ + return &TaobaoAlimeUserTokenAdvanceGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetApiMethodName() string { + return "taobao.alime.user.token.advance.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Routing Setter +// 路由id, 一般为用户id,用于异地容灾 +func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetRouting(_routing int64) error { + r._routing = _routing + r.Set("routing", _routing) + return nil +} + +// Routing Getter +func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetRouting() int64 { + return r._routing +} +// Type Setter +// 用户类型,0为普通用户,1为访客用户 +func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetType() int64 { + return r._type +} +// ForeignId Setter +// 用户在第三方账号中的唯一id +func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetForeignId(_foreignId string) error { + r._foreignId = _foreignId + r.Set("foreign_id", _foreignId) + return nil +} + +// ForeignId Getter +func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetForeignId() string { + return r._foreignId +} +// Nick Setter +// 用户昵称 +func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetNick() string { + return r._nick +} +// Source Setter +// 小蜜分配给第三方账号的来源 +func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetSource(_source int64) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetSource() int64 { + return r._source +} +// Id Setter +// 用户在小蜜账号中的唯一id +func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetId() int64 { + return r._id +} +// Expires Setter +// 令牌的过期时间(时间为秒),最大为3600 +func (r *TaobaoAlimeUserTokenAdvanceGetAPIRequest) SetExpires(_expires int64) error { + r._expires = _expires + r.Set("expires", _expires) + return nil +} + +// Expires Getter +func (r TaobaoAlimeUserTokenAdvanceGetAPIRequest) GetExpires() int64 { + return r._expires +} diff --git a/model/alime/TaobaoAlimeUserTokenAdvanceGetAPIResponse.go b/model/alime/TaobaoAlimeUserTokenAdvanceGetAPIResponse.go new file mode 100644 index 0000000000..8e2aab2390 --- /dev/null +++ b/model/alime/TaobaoAlimeUserTokenAdvanceGetAPIResponse.go @@ -0,0 +1,31 @@ +package alime + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户免登录令牌v2 API返回值 +taobao.alime.user.token.advance.get + +根据第三账号信息获取用户的免登录令牌 +*/ +type TaobaoAlimeUserTokenAdvanceGetAPIResponse struct { + model.CommonResponse + TaobaoAlimeUserTokenAdvanceGetAPIResponseModel +} + +// 获取用户免登录令牌v2 成功返回结果 +type TaobaoAlimeUserTokenAdvanceGetAPIResponseModel struct { + XMLName xml.Name `xml:"alime_user_token_advance_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 响应数据 + Data string `json:"data,omitempty" xml:"data,omitempty"` + // 响应编码(由于"code"为top保留字,用code0以示区分,文档中均以code说明),code == 0为成功,其它为失败 + Code0 int64 `json:"code0,omitempty" xml:"code0,omitempty"` +} diff --git a/model/alime/TaobaoAlimeUserTokenAdvanceGetResponse.go b/model/alime/TaobaoAlimeUserTokenAdvanceGetResponse.go deleted file mode 100644 index 029f1dc830..0000000000 --- a/model/alime/TaobaoAlimeUserTokenAdvanceGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alime - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户免登录令牌v2 API返回值 -taobao.alime.user.token.advance.get - -根据第三账号信息获取用户的免登录令牌 -*/ -type TaobaoAlimeUserTokenAdvanceGetAPIResponse struct { - model.CommonResponse - TaobaoAlimeUserTokenAdvanceGetResponse -} - -// 获取用户免登录令牌v2 成功返回结果 -type TaobaoAlimeUserTokenAdvanceGetResponse struct { - XMLName xml.Name `xml:"alime_user_token_advance_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应消息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 响应数据 - Data string `json:"data,omitempty" xml:"data,omitempty"` - // 响应编码(由于"code"为top保留字,用code0以示区分,文档中均以code说明),code == 0为成功,其它为失败 - Code0 int64 `json:"code0,omitempty" xml:"code0,omitempty"` -} diff --git a/model/alime/TaobaoAlimeUserTokenGetAPIRequest.go b/model/alime/TaobaoAlimeUserTokenGetAPIRequest.go new file mode 100644 index 0000000000..efabb490e6 --- /dev/null +++ b/model/alime/TaobaoAlimeUserTokenGetAPIRequest.go @@ -0,0 +1,122 @@ +package alime + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户免登录令牌 API请求 +taobao.alime.user.token.get + +根据第三账号信息获取用户的免登录令牌 +*/ +type TaobaoAlimeUserTokenGetAPIRequest struct { + model.Params + // 用户在第三方账号中的唯一id + _foreignId string + // 用户昵称 + _nick string + // 小蜜分配给第三方账号的来源 + _source int64 + // 用户在小蜜账号中的唯一id + _id int64 + // 令牌的过期时间(时间为秒),最大为3600 + _expires int64 + // 路由id, 一般为用户id,用于异地容灾 + _routing int64 +} + +// 初始化TaobaoAlimeUserTokenGetAPIRequest对象 +func NewTaobaoAlimeUserTokenGetRequest() *TaobaoAlimeUserTokenGetAPIRequest{ + return &TaobaoAlimeUserTokenGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlimeUserTokenGetAPIRequest) GetApiMethodName() string { + return "taobao.alime.user.token.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlimeUserTokenGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ForeignId Setter +// 用户在第三方账号中的唯一id +func (r *TaobaoAlimeUserTokenGetAPIRequest) SetForeignId(_foreignId string) error { + r._foreignId = _foreignId + r.Set("foreign_id", _foreignId) + return nil +} + +// ForeignId Getter +func (r TaobaoAlimeUserTokenGetAPIRequest) GetForeignId() string { + return r._foreignId +} +// Nick Setter +// 用户昵称 +func (r *TaobaoAlimeUserTokenGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoAlimeUserTokenGetAPIRequest) GetNick() string { + return r._nick +} +// Source Setter +// 小蜜分配给第三方账号的来源 +func (r *TaobaoAlimeUserTokenGetAPIRequest) SetSource(_source int64) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoAlimeUserTokenGetAPIRequest) GetSource() int64 { + return r._source +} +// Id Setter +// 用户在小蜜账号中的唯一id +func (r *TaobaoAlimeUserTokenGetAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TaobaoAlimeUserTokenGetAPIRequest) GetId() int64 { + return r._id +} +// Expires Setter +// 令牌的过期时间(时间为秒),最大为3600 +func (r *TaobaoAlimeUserTokenGetAPIRequest) SetExpires(_expires int64) error { + r._expires = _expires + r.Set("expires", _expires) + return nil +} + +// Expires Getter +func (r TaobaoAlimeUserTokenGetAPIRequest) GetExpires() int64 { + return r._expires +} +// Routing Setter +// 路由id, 一般为用户id,用于异地容灾 +func (r *TaobaoAlimeUserTokenGetAPIRequest) SetRouting(_routing int64) error { + r._routing = _routing + r.Set("routing", _routing) + return nil +} + +// Routing Getter +func (r TaobaoAlimeUserTokenGetAPIRequest) GetRouting() int64 { + return r._routing +} diff --git a/model/alime/TaobaoAlimeUserTokenGetAPIResponse.go b/model/alime/TaobaoAlimeUserTokenGetAPIResponse.go new file mode 100644 index 0000000000..a9c81dea64 --- /dev/null +++ b/model/alime/TaobaoAlimeUserTokenGetAPIResponse.go @@ -0,0 +1,31 @@ +package alime + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户免登录令牌 API返回值 +taobao.alime.user.token.get + +根据第三账号信息获取用户的免登录令牌 +*/ +type TaobaoAlimeUserTokenGetAPIResponse struct { + model.CommonResponse + TaobaoAlimeUserTokenGetAPIResponseModel +} + +// 获取用户免登录令牌 成功返回结果 +type TaobaoAlimeUserTokenGetAPIResponseModel struct { + XMLName xml.Name `xml:"alime_user_token_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应编码(由于"code"为top保留字,用code0以示区分,文档中均以code说明),code == 0为成功,其它为失败 + Code0 int64 `json:"code0,omitempty" xml:"code0,omitempty"` + // 响应数据 + Data string `json:"data,omitempty" xml:"data,omitempty"` + // 响应消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/alime/TaobaoAlimeUserTokenGetResponse.go b/model/alime/TaobaoAlimeUserTokenGetResponse.go deleted file mode 100644 index 66ee57b3b9..0000000000 --- a/model/alime/TaobaoAlimeUserTokenGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alime - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户免登录令牌 API返回值 -taobao.alime.user.token.get - -根据第三账号信息获取用户的免登录令牌 -*/ -type TaobaoAlimeUserTokenGetAPIResponse struct { - model.CommonResponse - TaobaoAlimeUserTokenGetResponse -} - -// 获取用户免登录令牌 成功返回结果 -type TaobaoAlimeUserTokenGetResponse struct { - XMLName xml.Name `xml:"alime_user_token_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应编码(由于"code"为top保留字,用code0以示区分,文档中均以code说明),code == 0为成功,其它为失败 - Code0 int64 `json:"code0,omitempty" xml:"code0,omitempty"` - // 响应数据 - Data string `json:"data,omitempty" xml:"data,omitempty"` - // 响应消息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/alimember/AlibabaMemberCheckmerchantAPIRequest.go b/model/alimember/AlibabaMemberCheckmerchantAPIRequest.go new file mode 100644 index 0000000000..4026020010 --- /dev/null +++ b/model/alimember/AlibabaMemberCheckmerchantAPIRequest.go @@ -0,0 +1,52 @@ +package alimember + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +校验商家身份 API请求 +alibaba.member.checkmerchant + +校验商家身份 +*/ +type AlibabaMemberCheckmerchantAPIRequest struct { + model.Params + // 混淆后的商家id + _openMerchantId string +} + +// 初始化AlibabaMemberCheckmerchantAPIRequest对象 +func NewAlibabaMemberCheckmerchantRequest() *AlibabaMemberCheckmerchantAPIRequest{ + return &AlibabaMemberCheckmerchantAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMemberCheckmerchantAPIRequest) GetApiMethodName() string { + return "alibaba.member.checkmerchant" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMemberCheckmerchantAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenMerchantId Setter +// 混淆后的商家id +func (r *AlibabaMemberCheckmerchantAPIRequest) SetOpenMerchantId(_openMerchantId string) error { + r._openMerchantId = _openMerchantId + r.Set("open_merchant_id", _openMerchantId) + return nil +} + +// OpenMerchantId Getter +func (r AlibabaMemberCheckmerchantAPIRequest) GetOpenMerchantId() string { + return r._openMerchantId +} diff --git a/model/alimember/AlibabaMemberCheckmerchantAPIResponse.go b/model/alimember/AlibabaMemberCheckmerchantAPIResponse.go new file mode 100644 index 0000000000..b318388dac --- /dev/null +++ b/model/alimember/AlibabaMemberCheckmerchantAPIResponse.go @@ -0,0 +1,29 @@ +package alimember + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +校验商家身份 API返回值 +alibaba.member.checkmerchant + +校验商家身份 +*/ +type AlibabaMemberCheckmerchantAPIResponse struct { + model.CommonResponse + AlibabaMemberCheckmerchantAPIResponseModel +} + +// 校验商家身份 成功返回结果 +type AlibabaMemberCheckmerchantAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_member_checkmerchant_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + ReturnMessage string `json:"return_message,omitempty" xml:"return_message,omitempty"` + // code + ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"` +} diff --git a/model/alimember/AlibabaMemberCheckmerchantResponse.go b/model/alimember/AlibabaMemberCheckmerchantResponse.go deleted file mode 100644 index d85d9e12f1..0000000000 --- a/model/alimember/AlibabaMemberCheckmerchantResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package alimember - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -校验商家身份 API返回值 -alibaba.member.checkmerchant - -校验商家身份 -*/ -type AlibabaMemberCheckmerchantAPIResponse struct { - model.CommonResponse - AlibabaMemberCheckmerchantResponse -} - -// 校验商家身份 成功返回结果 -type AlibabaMemberCheckmerchantResponse struct { - XMLName xml.Name `xml:"alibaba_member_checkmerchant_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - ReturnMessage string `json:"return_message,omitempty" xml:"return_message,omitempty"` - // code - ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"` -} diff --git a/model/alimember/AlibabaMemberIdentityRescindfinishAPIRequest.go b/model/alimember/AlibabaMemberIdentityRescindfinishAPIRequest.go new file mode 100644 index 0000000000..626684e575 --- /dev/null +++ b/model/alimember/AlibabaMemberIdentityRescindfinishAPIRequest.go @@ -0,0 +1,52 @@ +package alimember + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消确认 API请求 +alibaba.member.identity.rescindfinish + +取消确认 +*/ +type AlibabaMemberIdentityRescindfinishAPIRequest struct { + model.Params + // 取消确认信息 + _rescindFinish *RescindIdentityFinishRequest +} + +// 初始化AlibabaMemberIdentityRescindfinishAPIRequest对象 +func NewAlibabaMemberIdentityRescindfinishRequest() *AlibabaMemberIdentityRescindfinishAPIRequest{ + return &AlibabaMemberIdentityRescindfinishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMemberIdentityRescindfinishAPIRequest) GetApiMethodName() string { + return "alibaba.member.identity.rescindfinish" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMemberIdentityRescindfinishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RescindFinish Setter +// 取消确认信息 +func (r *AlibabaMemberIdentityRescindfinishAPIRequest) SetRescindFinish(_rescindFinish *RescindIdentityFinishRequest) error { + r._rescindFinish = _rescindFinish + r.Set("rescind_finish", _rescindFinish) + return nil +} + +// RescindFinish Getter +func (r AlibabaMemberIdentityRescindfinishAPIRequest) GetRescindFinish() *RescindIdentityFinishRequest { + return r._rescindFinish +} diff --git a/model/alimember/AlibabaMemberIdentityRescindfinishAPIResponse.go b/model/alimember/AlibabaMemberIdentityRescindfinishAPIResponse.go new file mode 100644 index 0000000000..d84b5f02f7 --- /dev/null +++ b/model/alimember/AlibabaMemberIdentityRescindfinishAPIResponse.go @@ -0,0 +1,27 @@ +package alimember + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消确认 API返回值 +alibaba.member.identity.rescindfinish + +取消确认 +*/ +type AlibabaMemberIdentityRescindfinishAPIResponse struct { + model.CommonResponse + AlibabaMemberIdentityRescindfinishAPIResponseModel +} + +// 取消确认 成功返回结果 +type AlibabaMemberIdentityRescindfinishAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_member_identity_rescindfinish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alimember/AlibabaMemberIdentityRescindfinishResponse.go b/model/alimember/AlibabaMemberIdentityRescindfinishResponse.go deleted file mode 100644 index 104d7562f7..0000000000 --- a/model/alimember/AlibabaMemberIdentityRescindfinishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alimember - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消确认 API返回值 -alibaba.member.identity.rescindfinish - -取消确认 -*/ -type AlibabaMemberIdentityRescindfinishAPIResponse struct { - model.CommonResponse - AlibabaMemberIdentityRescindfinishResponse -} - -// 取消确认 成功返回结果 -type AlibabaMemberIdentityRescindfinishResponse struct { - XMLName xml.Name `xml:"alibaba_member_identity_rescindfinish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alimember/AlibabaMemberIdentitySignfinishAPIRequest.go b/model/alimember/AlibabaMemberIdentitySignfinishAPIRequest.go new file mode 100644 index 0000000000..bd6f23a7be --- /dev/null +++ b/model/alimember/AlibabaMemberIdentitySignfinishAPIRequest.go @@ -0,0 +1,52 @@ +package alimember + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +签约确认 API请求 +alibaba.member.identity.signfinish + +签约确认 +*/ +type AlibabaMemberIdentitySignfinishAPIRequest struct { + model.Params + // 签约确认信息 + _signFinish *SignIdentityFinishRequest +} + +// 初始化AlibabaMemberIdentitySignfinishAPIRequest对象 +func NewAlibabaMemberIdentitySignfinishRequest() *AlibabaMemberIdentitySignfinishAPIRequest{ + return &AlibabaMemberIdentitySignfinishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMemberIdentitySignfinishAPIRequest) GetApiMethodName() string { + return "alibaba.member.identity.signfinish" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMemberIdentitySignfinishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SignFinish Setter +// 签约确认信息 +func (r *AlibabaMemberIdentitySignfinishAPIRequest) SetSignFinish(_signFinish *SignIdentityFinishRequest) error { + r._signFinish = _signFinish + r.Set("sign_finish", _signFinish) + return nil +} + +// SignFinish Getter +func (r AlibabaMemberIdentitySignfinishAPIRequest) GetSignFinish() *SignIdentityFinishRequest { + return r._signFinish +} diff --git a/model/alimember/AlibabaMemberIdentitySignfinishAPIResponse.go b/model/alimember/AlibabaMemberIdentitySignfinishAPIResponse.go new file mode 100644 index 0000000000..219b212bed --- /dev/null +++ b/model/alimember/AlibabaMemberIdentitySignfinishAPIResponse.go @@ -0,0 +1,27 @@ +package alimember + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +签约确认 API返回值 +alibaba.member.identity.signfinish + +签约确认 +*/ +type AlibabaMemberIdentitySignfinishAPIResponse struct { + model.CommonResponse + AlibabaMemberIdentitySignfinishAPIResponseModel +} + +// 签约确认 成功返回结果 +type AlibabaMemberIdentitySignfinishAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_member_identity_signfinish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alimember/AlibabaMemberIdentitySignfinishResponse.go b/model/alimember/AlibabaMemberIdentitySignfinishResponse.go deleted file mode 100644 index cb7684c080..0000000000 --- a/model/alimember/AlibabaMemberIdentitySignfinishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alimember - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -签约确认 API返回值 -alibaba.member.identity.signfinish - -签约确认 -*/ -type AlibabaMemberIdentitySignfinishAPIResponse struct { - model.CommonResponse - AlibabaMemberIdentitySignfinishResponse -} - -// 签约确认 成功返回结果 -type AlibabaMemberIdentitySignfinishResponse struct { - XMLName xml.Name `xml:"alibaba_member_identity_signfinish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alimember/AlibabaMemberIdentitySyncAPIRequest.go b/model/alimember/AlibabaMemberIdentitySyncAPIRequest.go new file mode 100644 index 0000000000..4b137aef41 --- /dev/null +++ b/model/alimember/AlibabaMemberIdentitySyncAPIRequest.go @@ -0,0 +1,52 @@ +package alimember + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +会员身份信息同步 API请求 +alibaba.member.identity.sync + +会员身份信息同步 +*/ +type AlibabaMemberIdentitySyncAPIRequest struct { + model.Params + // 会员身份同步信息 + _syncDto *SyncMemberIdentityDto +} + +// 初始化AlibabaMemberIdentitySyncAPIRequest对象 +func NewAlibabaMemberIdentitySyncRequest() *AlibabaMemberIdentitySyncAPIRequest{ + return &AlibabaMemberIdentitySyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMemberIdentitySyncAPIRequest) GetApiMethodName() string { + return "alibaba.member.identity.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMemberIdentitySyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SyncDto Setter +// 会员身份同步信息 +func (r *AlibabaMemberIdentitySyncAPIRequest) SetSyncDto(_syncDto *SyncMemberIdentityDto) error { + r._syncDto = _syncDto + r.Set("sync_dto", _syncDto) + return nil +} + +// SyncDto Getter +func (r AlibabaMemberIdentitySyncAPIRequest) GetSyncDto() *SyncMemberIdentityDto { + return r._syncDto +} diff --git a/model/alimember/AlibabaMemberIdentitySyncAPIResponse.go b/model/alimember/AlibabaMemberIdentitySyncAPIResponse.go new file mode 100644 index 0000000000..5e5514bfdd --- /dev/null +++ b/model/alimember/AlibabaMemberIdentitySyncAPIResponse.go @@ -0,0 +1,27 @@ +package alimember + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +会员身份信息同步 API返回值 +alibaba.member.identity.sync + +会员身份信息同步 +*/ +type AlibabaMemberIdentitySyncAPIResponse struct { + model.CommonResponse + AlibabaMemberIdentitySyncAPIResponseModel +} + +// 会员身份信息同步 成功返回结果 +type AlibabaMemberIdentitySyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_member_identity_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alimember/AlibabaMemberIdentitySyncResponse.go b/model/alimember/AlibabaMemberIdentitySyncResponse.go deleted file mode 100644 index 7e50848972..0000000000 --- a/model/alimember/AlibabaMemberIdentitySyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alimember - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -会员身份信息同步 API返回值 -alibaba.member.identity.sync - -会员身份信息同步 -*/ -type AlibabaMemberIdentitySyncAPIResponse struct { - model.CommonResponse - AlibabaMemberIdentitySyncResponse -} - -// 会员身份信息同步 成功返回结果 -type AlibabaMemberIdentitySyncResponse struct { - XMLName xml.Name `xml:"alibaba_member_identity_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alimember/AlibabaMemberSyncAPIRequest.go b/model/alimember/AlibabaMemberSyncAPIRequest.go new file mode 100644 index 0000000000..61b9297071 --- /dev/null +++ b/model/alimember/AlibabaMemberSyncAPIRequest.go @@ -0,0 +1,52 @@ +package alimember + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +会员信息同步 API请求 +alibaba.member.sync + +会员信息同步 +*/ +type AlibabaMemberSyncAPIRequest struct { + model.Params + // 会员同步信息 + _syncMember *SyncMemberDto +} + +// 初始化AlibabaMemberSyncAPIRequest对象 +func NewAlibabaMemberSyncRequest() *AlibabaMemberSyncAPIRequest{ + return &AlibabaMemberSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMemberSyncAPIRequest) GetApiMethodName() string { + return "alibaba.member.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMemberSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SyncMember Setter +// 会员同步信息 +func (r *AlibabaMemberSyncAPIRequest) SetSyncMember(_syncMember *SyncMemberDto) error { + r._syncMember = _syncMember + r.Set("sync_member", _syncMember) + return nil +} + +// SyncMember Getter +func (r AlibabaMemberSyncAPIRequest) GetSyncMember() *SyncMemberDto { + return r._syncMember +} diff --git a/model/alimember/AlibabaMemberSyncAPIResponse.go b/model/alimember/AlibabaMemberSyncAPIResponse.go new file mode 100644 index 0000000000..0b6f295ca2 --- /dev/null +++ b/model/alimember/AlibabaMemberSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alimember + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +会员信息同步 API返回值 +alibaba.member.sync + +会员信息同步 +*/ +type AlibabaMemberSyncAPIResponse struct { + model.CommonResponse + AlibabaMemberSyncAPIResponseModel +} + +// 会员信息同步 成功返回结果 +type AlibabaMemberSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_member_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaMemberSyncResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alimember/AlibabaMemberSyncResponse.go b/model/alimember/AlibabaMemberSyncResponse.go deleted file mode 100644 index bcd4b975e2..0000000000 --- a/model/alimember/AlibabaMemberSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alimember - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -会员信息同步 API返回值 -alibaba.member.sync - -会员信息同步 -*/ -type AlibabaMemberSyncAPIResponse struct { - model.CommonResponse - AlibabaMemberSyncResponse -} - -// 会员信息同步 成功返回结果 -type AlibabaMemberSyncResponse struct { - XMLName xml.Name `xml:"alibaba_member_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaMemberSyncResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alimsg/AlibabaIdleOrderMsgSendAPIRequest.go b/model/alimsg/AlibabaIdleOrderMsgSendAPIRequest.go new file mode 100644 index 0000000000..c75ddb456a --- /dev/null +++ b/model/alimsg/AlibabaIdleOrderMsgSendAPIRequest.go @@ -0,0 +1,66 @@ +package alimsg + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +虚拟发货消息发送接口 API请求 +alibaba.idle.order.msg.send + +用户下单后服务商期望自动发货,该接口用于给用户发送文本消息,主要用于卡券类等虚拟商品场景 +*/ +type AlibabaIdleOrderMsgSendAPIRequest struct { + model.Params + // 订单id + _orderId string + // 消息发送内容 + _text string +} + +// 初始化AlibabaIdleOrderMsgSendAPIRequest对象 +func NewAlibabaIdleOrderMsgSendRequest() *AlibabaIdleOrderMsgSendAPIRequest{ + return &AlibabaIdleOrderMsgSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleOrderMsgSendAPIRequest) GetApiMethodName() string { + return "alibaba.idle.order.msg.send" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleOrderMsgSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单id +func (r *AlibabaIdleOrderMsgSendAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaIdleOrderMsgSendAPIRequest) GetOrderId() string { + return r._orderId +} +// Text Setter +// 消息发送内容 +func (r *AlibabaIdleOrderMsgSendAPIRequest) SetText(_text string) error { + r._text = _text + r.Set("text", _text) + return nil +} + +// Text Getter +func (r AlibabaIdleOrderMsgSendAPIRequest) GetText() string { + return r._text +} diff --git a/model/alimsg/AlibabaIdleOrderMsgSendAPIResponse.go b/model/alimsg/AlibabaIdleOrderMsgSendAPIResponse.go new file mode 100644 index 0000000000..4f0ac150bb --- /dev/null +++ b/model/alimsg/AlibabaIdleOrderMsgSendAPIResponse.go @@ -0,0 +1,27 @@ +package alimsg + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +虚拟发货消息发送接口 API返回值 +alibaba.idle.order.msg.send + +用户下单后服务商期望自动发货,该接口用于给用户发送文本消息,主要用于卡券类等虚拟商品场景 +*/ +type AlibabaIdleOrderMsgSendAPIResponse struct { + model.CommonResponse + AlibabaIdleOrderMsgSendAPIResponseModel +} + +// 虚拟发货消息发送接口 成功返回结果 +type AlibabaIdleOrderMsgSendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_order_msg_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否发送成功 + SendSuccess bool `json:"send_success,omitempty" xml:"send_success,omitempty"` +} diff --git a/model/alimsg/AlibabaIdleOrderMsgSendResponse.go b/model/alimsg/AlibabaIdleOrderMsgSendResponse.go deleted file mode 100644 index 95d5ae19fb..0000000000 --- a/model/alimsg/AlibabaIdleOrderMsgSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alimsg - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -虚拟发货消息发送接口 API返回值 -alibaba.idle.order.msg.send - -用户下单后服务商期望自动发货,该接口用于给用户发送文本消息,主要用于卡券类等虚拟商品场景 -*/ -type AlibabaIdleOrderMsgSendAPIResponse struct { - model.CommonResponse - AlibabaIdleOrderMsgSendResponse -} - -// 虚拟发货消息发送接口 成功返回结果 -type AlibabaIdleOrderMsgSendResponse struct { - XMLName xml.Name `xml:"alibaba_idle_order_msg_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否发送成功 - SendSuccess bool `json:"send_success,omitempty" xml:"send_success,omitempty"` -} diff --git a/model/alimsg/AlibabaLegMsgPostAPIRequest.go b/model/alimsg/AlibabaLegMsgPostAPIRequest.go new file mode 100644 index 0000000000..fc594cb27b --- /dev/null +++ b/model/alimsg/AlibabaLegMsgPostAPIRequest.go @@ -0,0 +1,206 @@ +package alimsg + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +集团法务消息发送 API请求 +alibaba.leg.msg.post + +消息发送能力 +*/ +type AlibabaLegMsgPostAPIRequest struct { + model.Params + // 应用标识 + _appId string + // 认证的code + _accessKey string + // 消息定义code + _messageDefinitionCode string + // 接收人类型 + _receiverType string + // 接收人数组 + _receivers string + // 发送的渠道类型数组 + _messageBodyListStr string + // 业务id + _businessId string + // 业务类型 + _businessType string + // 模版里定义的变量 + _messageParams string + // 三方租户id + _corpId string + // 发送时间 + _sendTime string + // 扩展参数 + _expandParamsMapStr string +} + +// 初始化AlibabaLegMsgPostAPIRequest对象 +func NewAlibabaLegMsgPostRequest() *AlibabaLegMsgPostAPIRequest{ + return &AlibabaLegMsgPostAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegMsgPostAPIRequest) GetApiMethodName() string { + return "alibaba.leg.msg.post" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegMsgPostAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppId Setter +// 应用标识 +func (r *AlibabaLegMsgPostAPIRequest) SetAppId(_appId string) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r AlibabaLegMsgPostAPIRequest) GetAppId() string { + return r._appId +} +// AccessKey Setter +// 认证的code +func (r *AlibabaLegMsgPostAPIRequest) SetAccessKey(_accessKey string) error { + r._accessKey = _accessKey + r.Set("access_key", _accessKey) + return nil +} + +// AccessKey Getter +func (r AlibabaLegMsgPostAPIRequest) GetAccessKey() string { + return r._accessKey +} +// MessageDefinitionCode Setter +// 消息定义code +func (r *AlibabaLegMsgPostAPIRequest) SetMessageDefinitionCode(_messageDefinitionCode string) error { + r._messageDefinitionCode = _messageDefinitionCode + r.Set("message_definition_code", _messageDefinitionCode) + return nil +} + +// MessageDefinitionCode Getter +func (r AlibabaLegMsgPostAPIRequest) GetMessageDefinitionCode() string { + return r._messageDefinitionCode +} +// ReceiverType Setter +// 接收人类型 +func (r *AlibabaLegMsgPostAPIRequest) SetReceiverType(_receiverType string) error { + r._receiverType = _receiverType + r.Set("receiver_type", _receiverType) + return nil +} + +// ReceiverType Getter +func (r AlibabaLegMsgPostAPIRequest) GetReceiverType() string { + return r._receiverType +} +// Receivers Setter +// 接收人数组 +func (r *AlibabaLegMsgPostAPIRequest) SetReceivers(_receivers string) error { + r._receivers = _receivers + r.Set("receivers", _receivers) + return nil +} + +// Receivers Getter +func (r AlibabaLegMsgPostAPIRequest) GetReceivers() string { + return r._receivers +} +// MessageBodyListStr Setter +// 发送的渠道类型数组 +func (r *AlibabaLegMsgPostAPIRequest) SetMessageBodyListStr(_messageBodyListStr string) error { + r._messageBodyListStr = _messageBodyListStr + r.Set("message_body_list_str", _messageBodyListStr) + return nil +} + +// MessageBodyListStr Getter +func (r AlibabaLegMsgPostAPIRequest) GetMessageBodyListStr() string { + return r._messageBodyListStr +} +// BusinessId Setter +// 业务id +func (r *AlibabaLegMsgPostAPIRequest) SetBusinessId(_businessId string) error { + r._businessId = _businessId + r.Set("business_id", _businessId) + return nil +} + +// BusinessId Getter +func (r AlibabaLegMsgPostAPIRequest) GetBusinessId() string { + return r._businessId +} +// BusinessType Setter +// 业务类型 +func (r *AlibabaLegMsgPostAPIRequest) SetBusinessType(_businessType string) error { + r._businessType = _businessType + r.Set("business_type", _businessType) + return nil +} + +// BusinessType Getter +func (r AlibabaLegMsgPostAPIRequest) GetBusinessType() string { + return r._businessType +} +// MessageParams Setter +// 模版里定义的变量 +func (r *AlibabaLegMsgPostAPIRequest) SetMessageParams(_messageParams string) error { + r._messageParams = _messageParams + r.Set("message_params", _messageParams) + return nil +} + +// MessageParams Getter +func (r AlibabaLegMsgPostAPIRequest) GetMessageParams() string { + return r._messageParams +} +// CorpId Setter +// 三方租户id +func (r *AlibabaLegMsgPostAPIRequest) SetCorpId(_corpId string) error { + r._corpId = _corpId + r.Set("corp_id", _corpId) + return nil +} + +// CorpId Getter +func (r AlibabaLegMsgPostAPIRequest) GetCorpId() string { + return r._corpId +} +// SendTime Setter +// 发送时间 +func (r *AlibabaLegMsgPostAPIRequest) SetSendTime(_sendTime string) error { + r._sendTime = _sendTime + r.Set("send_time", _sendTime) + return nil +} + +// SendTime Getter +func (r AlibabaLegMsgPostAPIRequest) GetSendTime() string { + return r._sendTime +} +// ExpandParamsMapStr Setter +// 扩展参数 +func (r *AlibabaLegMsgPostAPIRequest) SetExpandParamsMapStr(_expandParamsMapStr string) error { + r._expandParamsMapStr = _expandParamsMapStr + r.Set("expand_params_map_str", _expandParamsMapStr) + return nil +} + +// ExpandParamsMapStr Getter +func (r AlibabaLegMsgPostAPIRequest) GetExpandParamsMapStr() string { + return r._expandParamsMapStr +} diff --git a/model/alimsg/AlibabaLegMsgPostAPIResponse.go b/model/alimsg/AlibabaLegMsgPostAPIResponse.go new file mode 100644 index 0000000000..1b9bbf0519 --- /dev/null +++ b/model/alimsg/AlibabaLegMsgPostAPIResponse.go @@ -0,0 +1,27 @@ +package alimsg + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +集团法务消息发送 API返回值 +alibaba.leg.msg.post + +消息发送能力 +*/ +type AlibabaLegMsgPostAPIResponse struct { + model.CommonResponse + AlibabaLegMsgPostAPIResponseModel +} + +// 集团法务消息发送 成功返回结果 +type AlibabaLegMsgPostAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_leg_msg_post_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alimsg/AlibabaLegMsgPostResponse.go b/model/alimsg/AlibabaLegMsgPostResponse.go deleted file mode 100644 index 263ded9284..0000000000 --- a/model/alimsg/AlibabaLegMsgPostResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alimsg - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -集团法务消息发送 API返回值 -alibaba.leg.msg.post - -消息发送能力 -*/ -type AlibabaLegMsgPostAPIResponse struct { - model.CommonResponse - AlibabaLegMsgPostResponse -} - -// 集团法务消息发送 成功返回结果 -type AlibabaLegMsgPostResponse struct { - XMLName xml.Name `xml:"alibaba_leg_msg_post_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alink/AlibabaAlinkDeviceBindAPIRequest.go b/model/alink/AlibabaAlinkDeviceBindAPIRequest.go new file mode 100644 index 0000000000..08ff06b67d --- /dev/null +++ b/model/alink/AlibabaAlinkDeviceBindAPIRequest.go @@ -0,0 +1,52 @@ +package alink + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +绑定设备 API请求 +alibaba.alink.device.bind + +阿里智能解绑设备 +*/ +type AlibabaAlinkDeviceBindAPIRequest struct { + model.Params + // 设备id + _uuid string +} + +// 初始化AlibabaAlinkDeviceBindAPIRequest对象 +func NewAlibabaAlinkDeviceBindRequest() *AlibabaAlinkDeviceBindAPIRequest{ + return &AlibabaAlinkDeviceBindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlinkDeviceBindAPIRequest) GetApiMethodName() string { + return "alibaba.alink.device.bind" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlinkDeviceBindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Uuid Setter +// 设备id +func (r *AlibabaAlinkDeviceBindAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaAlinkDeviceBindAPIRequest) GetUuid() string { + return r._uuid +} diff --git a/model/alink/AlibabaAlinkDeviceBindAPIResponse.go b/model/alink/AlibabaAlinkDeviceBindAPIResponse.go new file mode 100644 index 0000000000..c1a9a75ee1 --- /dev/null +++ b/model/alink/AlibabaAlinkDeviceBindAPIResponse.go @@ -0,0 +1,27 @@ +package alink + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +绑定设备 API返回值 +alibaba.alink.device.bind + +阿里智能解绑设备 +*/ +type AlibabaAlinkDeviceBindAPIResponse struct { + model.CommonResponse + AlibabaAlinkDeviceBindAPIResponseModel +} + +// 绑定设备 成功返回结果 +type AlibabaAlinkDeviceBindAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alink_device_bind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alink/AlibabaAlinkDeviceBindResponse.go b/model/alink/AlibabaAlinkDeviceBindResponse.go deleted file mode 100644 index c1b601c818..0000000000 --- a/model/alink/AlibabaAlinkDeviceBindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alink - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -绑定设备 API返回值 -alibaba.alink.device.bind - -阿里智能解绑设备 -*/ -type AlibabaAlinkDeviceBindAPIResponse struct { - model.CommonResponse - AlibabaAlinkDeviceBindResponse -} - -// 绑定设备 成功返回结果 -type AlibabaAlinkDeviceBindResponse struct { - XMLName xml.Name `xml:"alibaba_alink_device_bind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alink/AlibabaAlinkDeviceDetailGetAPIRequest.go b/model/alink/AlibabaAlinkDeviceDetailGetAPIRequest.go new file mode 100644 index 0000000000..5850114384 --- /dev/null +++ b/model/alink/AlibabaAlinkDeviceDetailGetAPIRequest.go @@ -0,0 +1,52 @@ +package alink + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备详情 API请求 +alibaba.alink.device.detail.get + +阿里智能获取设备详情 +*/ +type AlibabaAlinkDeviceDetailGetAPIRequest struct { + model.Params + // 设备id + _uuid string +} + +// 初始化AlibabaAlinkDeviceDetailGetAPIRequest对象 +func NewAlibabaAlinkDeviceDetailGetRequest() *AlibabaAlinkDeviceDetailGetAPIRequest{ + return &AlibabaAlinkDeviceDetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlinkDeviceDetailGetAPIRequest) GetApiMethodName() string { + return "alibaba.alink.device.detail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlinkDeviceDetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Uuid Setter +// 设备id +func (r *AlibabaAlinkDeviceDetailGetAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaAlinkDeviceDetailGetAPIRequest) GetUuid() string { + return r._uuid +} diff --git a/model/alink/AlibabaAlinkDeviceDetailGetAPIResponse.go b/model/alink/AlibabaAlinkDeviceDetailGetAPIResponse.go new file mode 100644 index 0000000000..304bbfcebd --- /dev/null +++ b/model/alink/AlibabaAlinkDeviceDetailGetAPIResponse.go @@ -0,0 +1,27 @@ +package alink + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备详情 API返回值 +alibaba.alink.device.detail.get + +阿里智能获取设备详情 +*/ +type AlibabaAlinkDeviceDetailGetAPIResponse struct { + model.CommonResponse + AlibabaAlinkDeviceDetailGetAPIResponseModel +} + +// 获取设备详情 成功返回结果 +type AlibabaAlinkDeviceDetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alink_device_detail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alink/AlibabaAlinkDeviceDetailGetResponse.go b/model/alink/AlibabaAlinkDeviceDetailGetResponse.go deleted file mode 100644 index d8c87632f3..0000000000 --- a/model/alink/AlibabaAlinkDeviceDetailGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alink - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取设备详情 API返回值 -alibaba.alink.device.detail.get - -阿里智能获取设备详情 -*/ -type AlibabaAlinkDeviceDetailGetAPIResponse struct { - model.CommonResponse - AlibabaAlinkDeviceDetailGetResponse -} - -// 获取设备详情 成功返回结果 -type AlibabaAlinkDeviceDetailGetResponse struct { - XMLName xml.Name `xml:"alibaba_alink_device_detail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alink/AlibabaAlinkDeviceInfoUpdateAPIRequest.go b/model/alink/AlibabaAlinkDeviceInfoUpdateAPIRequest.go new file mode 100644 index 0000000000..110a553310 --- /dev/null +++ b/model/alink/AlibabaAlinkDeviceInfoUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package alink + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新设备昵称等信息 API请求 +alibaba.alink.device.info.update + +更新设备昵称等信息 +*/ +type AlibabaAlinkDeviceInfoUpdateAPIRequest struct { + model.Params + // 设备id + _uuid string + // 设备昵称 + _nickName string +} + +// 初始化AlibabaAlinkDeviceInfoUpdateAPIRequest对象 +func NewAlibabaAlinkDeviceInfoUpdateRequest() *AlibabaAlinkDeviceInfoUpdateAPIRequest{ + return &AlibabaAlinkDeviceInfoUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlinkDeviceInfoUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.alink.device.info.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlinkDeviceInfoUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Uuid Setter +// 设备id +func (r *AlibabaAlinkDeviceInfoUpdateAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaAlinkDeviceInfoUpdateAPIRequest) GetUuid() string { + return r._uuid +} +// NickName Setter +// 设备昵称 +func (r *AlibabaAlinkDeviceInfoUpdateAPIRequest) SetNickName(_nickName string) error { + r._nickName = _nickName + r.Set("nick_name", _nickName) + return nil +} + +// NickName Getter +func (r AlibabaAlinkDeviceInfoUpdateAPIRequest) GetNickName() string { + return r._nickName +} diff --git a/model/alink/AlibabaAlinkDeviceInfoUpdateAPIResponse.go b/model/alink/AlibabaAlinkDeviceInfoUpdateAPIResponse.go new file mode 100644 index 0000000000..8c5f753fc3 --- /dev/null +++ b/model/alink/AlibabaAlinkDeviceInfoUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package alink + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新设备昵称等信息 API返回值 +alibaba.alink.device.info.update + +更新设备昵称等信息 +*/ +type AlibabaAlinkDeviceInfoUpdateAPIResponse struct { + model.CommonResponse + AlibabaAlinkDeviceInfoUpdateAPIResponseModel +} + +// 更新设备昵称等信息 成功返回结果 +type AlibabaAlinkDeviceInfoUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alink_device_info_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alink/AlibabaAlinkDeviceInfoUpdateResponse.go b/model/alink/AlibabaAlinkDeviceInfoUpdateResponse.go deleted file mode 100644 index 3ad5fd0fc2..0000000000 --- a/model/alink/AlibabaAlinkDeviceInfoUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alink - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新设备昵称等信息 API返回值 -alibaba.alink.device.info.update - -更新设备昵称等信息 -*/ -type AlibabaAlinkDeviceInfoUpdateAPIResponse struct { - model.CommonResponse - AlibabaAlinkDeviceInfoUpdateResponse -} - -// 更新设备昵称等信息 成功返回结果 -type AlibabaAlinkDeviceInfoUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_alink_device_info_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alink/AlibabaAlinkDeviceUnbindAPIRequest.go b/model/alink/AlibabaAlinkDeviceUnbindAPIRequest.go new file mode 100644 index 0000000000..a7cbb7bd64 --- /dev/null +++ b/model/alink/AlibabaAlinkDeviceUnbindAPIRequest.go @@ -0,0 +1,52 @@ +package alink + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +解绑设备 API请求 +alibaba.alink.device.unbind + +阿里智能解绑设备 +*/ +type AlibabaAlinkDeviceUnbindAPIRequest struct { + model.Params + // 设备id + _uuid string +} + +// 初始化AlibabaAlinkDeviceUnbindAPIRequest对象 +func NewAlibabaAlinkDeviceUnbindRequest() *AlibabaAlinkDeviceUnbindAPIRequest{ + return &AlibabaAlinkDeviceUnbindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlinkDeviceUnbindAPIRequest) GetApiMethodName() string { + return "alibaba.alink.device.unbind" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlinkDeviceUnbindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Uuid Setter +// 设备id +func (r *AlibabaAlinkDeviceUnbindAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaAlinkDeviceUnbindAPIRequest) GetUuid() string { + return r._uuid +} diff --git a/model/alink/AlibabaAlinkDeviceUnbindAPIResponse.go b/model/alink/AlibabaAlinkDeviceUnbindAPIResponse.go new file mode 100644 index 0000000000..933152b553 --- /dev/null +++ b/model/alink/AlibabaAlinkDeviceUnbindAPIResponse.go @@ -0,0 +1,27 @@ +package alink + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +解绑设备 API返回值 +alibaba.alink.device.unbind + +阿里智能解绑设备 +*/ +type AlibabaAlinkDeviceUnbindAPIResponse struct { + model.CommonResponse + AlibabaAlinkDeviceUnbindAPIResponseModel +} + +// 解绑设备 成功返回结果 +type AlibabaAlinkDeviceUnbindAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alink_device_unbind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alink/AlibabaAlinkDeviceUnbindResponse.go b/model/alink/AlibabaAlinkDeviceUnbindResponse.go deleted file mode 100644 index 42a4e87eb5..0000000000 --- a/model/alink/AlibabaAlinkDeviceUnbindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alink - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -解绑设备 API返回值 -alibaba.alink.device.unbind - -阿里智能解绑设备 -*/ -type AlibabaAlinkDeviceUnbindAPIResponse struct { - model.CommonResponse - AlibabaAlinkDeviceUnbindResponse -} - -// 解绑设备 成功返回结果 -type AlibabaAlinkDeviceUnbindResponse struct { - XMLName xml.Name `xml:"alibaba_alink_device_unbind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alink/AlibabaAlinkDeviceUnifyStatusGetAPIRequest.go b/model/alink/AlibabaAlinkDeviceUnifyStatusGetAPIRequest.go new file mode 100644 index 0000000000..dbb032969e --- /dev/null +++ b/model/alink/AlibabaAlinkDeviceUnifyStatusGetAPIRequest.go @@ -0,0 +1,52 @@ +package alink + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询设备标准属性最新状态 API请求 +alibaba.alink.device.unify.status.get + +查询设备最新标准属性状态 +*/ +type AlibabaAlinkDeviceUnifyStatusGetAPIRequest struct { + model.Params + // 设备id + _uuid string +} + +// 初始化AlibabaAlinkDeviceUnifyStatusGetAPIRequest对象 +func NewAlibabaAlinkDeviceUnifyStatusGetRequest() *AlibabaAlinkDeviceUnifyStatusGetAPIRequest{ + return &AlibabaAlinkDeviceUnifyStatusGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlinkDeviceUnifyStatusGetAPIRequest) GetApiMethodName() string { + return "alibaba.alink.device.unify.status.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlinkDeviceUnifyStatusGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Uuid Setter +// 设备id +func (r *AlibabaAlinkDeviceUnifyStatusGetAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaAlinkDeviceUnifyStatusGetAPIRequest) GetUuid() string { + return r._uuid +} diff --git a/model/alink/AlibabaAlinkDeviceUnifyStatusGetAPIResponse.go b/model/alink/AlibabaAlinkDeviceUnifyStatusGetAPIResponse.go new file mode 100644 index 0000000000..d8c10425a4 --- /dev/null +++ b/model/alink/AlibabaAlinkDeviceUnifyStatusGetAPIResponse.go @@ -0,0 +1,27 @@ +package alink + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询设备标准属性最新状态 API返回值 +alibaba.alink.device.unify.status.get + +查询设备最新标准属性状态 +*/ +type AlibabaAlinkDeviceUnifyStatusGetAPIResponse struct { + model.CommonResponse + AlibabaAlinkDeviceUnifyStatusGetAPIResponseModel +} + +// 查询设备标准属性最新状态 成功返回结果 +type AlibabaAlinkDeviceUnifyStatusGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alink_device_unify_status_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alink/AlibabaAlinkDeviceUnifyStatusGetResponse.go b/model/alink/AlibabaAlinkDeviceUnifyStatusGetResponse.go deleted file mode 100644 index 23ce33fa8e..0000000000 --- a/model/alink/AlibabaAlinkDeviceUnifyStatusGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alink - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询设备标准属性最新状态 API返回值 -alibaba.alink.device.unify.status.get - -查询设备最新标准属性状态 -*/ -type AlibabaAlinkDeviceUnifyStatusGetAPIResponse struct { - model.CommonResponse - AlibabaAlinkDeviceUnifyStatusGetResponse -} - -// 查询设备标准属性最新状态 成功返回结果 -type AlibabaAlinkDeviceUnifyStatusGetResponse struct { - XMLName xml.Name `xml:"alibaba_alink_device_unify_status_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alink/AlibabaAlinkDeviceUnifyStatusSetAPIRequest.go b/model/alink/AlibabaAlinkDeviceUnifyStatusSetAPIRequest.go new file mode 100644 index 0000000000..a8995965d4 --- /dev/null +++ b/model/alink/AlibabaAlinkDeviceUnifyStatusSetAPIRequest.go @@ -0,0 +1,66 @@ +package alink + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设置设备标准属性状态 API请求 +alibaba.alink.device.unify.status.set + +操作用户绑定的设备 +*/ +type AlibabaAlinkDeviceUnifyStatusSetAPIRequest struct { + model.Params + // uuid + _uuid string + // 设备的设置参数数据 + _instructions string +} + +// 初始化AlibabaAlinkDeviceUnifyStatusSetAPIRequest对象 +func NewAlibabaAlinkDeviceUnifyStatusSetRequest() *AlibabaAlinkDeviceUnifyStatusSetAPIRequest{ + return &AlibabaAlinkDeviceUnifyStatusSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlinkDeviceUnifyStatusSetAPIRequest) GetApiMethodName() string { + return "alibaba.alink.device.unify.status.set" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlinkDeviceUnifyStatusSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Uuid Setter +// uuid +func (r *AlibabaAlinkDeviceUnifyStatusSetAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaAlinkDeviceUnifyStatusSetAPIRequest) GetUuid() string { + return r._uuid +} +// Instructions Setter +// 设备的设置参数数据 +func (r *AlibabaAlinkDeviceUnifyStatusSetAPIRequest) SetInstructions(_instructions string) error { + r._instructions = _instructions + r.Set("instructions", _instructions) + return nil +} + +// Instructions Getter +func (r AlibabaAlinkDeviceUnifyStatusSetAPIRequest) GetInstructions() string { + return r._instructions +} diff --git a/model/alink/AlibabaAlinkDeviceUnifyStatusSetAPIResponse.go b/model/alink/AlibabaAlinkDeviceUnifyStatusSetAPIResponse.go new file mode 100644 index 0000000000..72b5ea91cb --- /dev/null +++ b/model/alink/AlibabaAlinkDeviceUnifyStatusSetAPIResponse.go @@ -0,0 +1,27 @@ +package alink + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设置设备标准属性状态 API返回值 +alibaba.alink.device.unify.status.set + +操作用户绑定的设备 +*/ +type AlibabaAlinkDeviceUnifyStatusSetAPIResponse struct { + model.CommonResponse + AlibabaAlinkDeviceUnifyStatusSetAPIResponseModel +} + +// 设置设备标准属性状态 成功返回结果 +type AlibabaAlinkDeviceUnifyStatusSetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alink_device_unify_status_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alink/AlibabaAlinkDeviceUnifyStatusSetResponse.go b/model/alink/AlibabaAlinkDeviceUnifyStatusSetResponse.go deleted file mode 100644 index bca2544e1f..0000000000 --- a/model/alink/AlibabaAlinkDeviceUnifyStatusSetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alink - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设置设备标准属性状态 API返回值 -alibaba.alink.device.unify.status.set - -操作用户绑定的设备 -*/ -type AlibabaAlinkDeviceUnifyStatusSetAPIResponse struct { - model.CommonResponse - AlibabaAlinkDeviceUnifyStatusSetResponse -} - -// 设置设备标准属性状态 成功返回结果 -type AlibabaAlinkDeviceUnifyStatusSetResponse struct { - XMLName xml.Name `xml:"alibaba_alink_device_unify_status_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alink/AlibabaAlinkMessageConfigListAPIRequest.go b/model/alink/AlibabaAlinkMessageConfigListAPIRequest.go new file mode 100644 index 0000000000..2320fdcc07 --- /dev/null +++ b/model/alink/AlibabaAlinkMessageConfigListAPIRequest.go @@ -0,0 +1,38 @@ +package alink + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询消息开关配置列表 API请求 +alibaba.alink.message.config.list + +阿里智能获取消息开关配置列表 +*/ +type AlibabaAlinkMessageConfigListAPIRequest struct { + model.Params +} + +// 初始化AlibabaAlinkMessageConfigListAPIRequest对象 +func NewAlibabaAlinkMessageConfigListRequest() *AlibabaAlinkMessageConfigListAPIRequest{ + return &AlibabaAlinkMessageConfigListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlinkMessageConfigListAPIRequest) GetApiMethodName() string { + return "alibaba.alink.message.config.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlinkMessageConfigListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/alink/AlibabaAlinkMessageConfigListAPIResponse.go b/model/alink/AlibabaAlinkMessageConfigListAPIResponse.go new file mode 100644 index 0000000000..51b2de8d46 --- /dev/null +++ b/model/alink/AlibabaAlinkMessageConfigListAPIResponse.go @@ -0,0 +1,27 @@ +package alink + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询消息开关配置列表 API返回值 +alibaba.alink.message.config.list + +阿里智能获取消息开关配置列表 +*/ +type AlibabaAlinkMessageConfigListAPIResponse struct { + model.CommonResponse + AlibabaAlinkMessageConfigListAPIResponseModel +} + +// 查询消息开关配置列表 成功返回结果 +type AlibabaAlinkMessageConfigListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alink_message_config_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alink/AlibabaAlinkMessageConfigListResponse.go b/model/alink/AlibabaAlinkMessageConfigListResponse.go deleted file mode 100644 index a1479377b0..0000000000 --- a/model/alink/AlibabaAlinkMessageConfigListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alink - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询消息开关配置列表 API返回值 -alibaba.alink.message.config.list - -阿里智能获取消息开关配置列表 -*/ -type AlibabaAlinkMessageConfigListAPIResponse struct { - model.CommonResponse - AlibabaAlinkMessageConfigListResponse -} - -// 查询消息开关配置列表 成功返回结果 -type AlibabaAlinkMessageConfigListResponse struct { - XMLName xml.Name `xml:"alibaba_alink_message_config_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alink/AlibabaAlinkMessageConfigSetAPIRequest.go b/model/alink/AlibabaAlinkMessageConfigSetAPIRequest.go new file mode 100644 index 0000000000..dd5b798ef3 --- /dev/null +++ b/model/alink/AlibabaAlinkMessageConfigSetAPIRequest.go @@ -0,0 +1,66 @@ +package alink + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +消息提醒开关 API请求 +alibaba.alink.message.config.set + +阿里智能消息开关 +*/ +type AlibabaAlinkMessageConfigSetAPIRequest struct { + model.Params + // 设备id + _uuid string + // 0:开启,1:关闭 + _pushDisabled string +} + +// 初始化AlibabaAlinkMessageConfigSetAPIRequest对象 +func NewAlibabaAlinkMessageConfigSetRequest() *AlibabaAlinkMessageConfigSetAPIRequest{ + return &AlibabaAlinkMessageConfigSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlinkMessageConfigSetAPIRequest) GetApiMethodName() string { + return "alibaba.alink.message.config.set" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlinkMessageConfigSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Uuid Setter +// 设备id +func (r *AlibabaAlinkMessageConfigSetAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaAlinkMessageConfigSetAPIRequest) GetUuid() string { + return r._uuid +} +// PushDisabled Setter +// 0:开启,1:关闭 +func (r *AlibabaAlinkMessageConfigSetAPIRequest) SetPushDisabled(_pushDisabled string) error { + r._pushDisabled = _pushDisabled + r.Set("push_disabled", _pushDisabled) + return nil +} + +// PushDisabled Getter +func (r AlibabaAlinkMessageConfigSetAPIRequest) GetPushDisabled() string { + return r._pushDisabled +} diff --git a/model/alink/AlibabaAlinkMessageConfigSetAPIResponse.go b/model/alink/AlibabaAlinkMessageConfigSetAPIResponse.go new file mode 100644 index 0000000000..c5c016374b --- /dev/null +++ b/model/alink/AlibabaAlinkMessageConfigSetAPIResponse.go @@ -0,0 +1,27 @@ +package alink + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +消息提醒开关 API返回值 +alibaba.alink.message.config.set + +阿里智能消息开关 +*/ +type AlibabaAlinkMessageConfigSetAPIResponse struct { + model.CommonResponse + AlibabaAlinkMessageConfigSetAPIResponseModel +} + +// 消息提醒开关 成功返回结果 +type AlibabaAlinkMessageConfigSetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alink_message_config_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alink/AlibabaAlinkMessageConfigSetResponse.go b/model/alink/AlibabaAlinkMessageConfigSetResponse.go deleted file mode 100644 index 43b1958152..0000000000 --- a/model/alink/AlibabaAlinkMessageConfigSetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alink - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -消息提醒开关 API返回值 -alibaba.alink.message.config.set - -阿里智能消息开关 -*/ -type AlibabaAlinkMessageConfigSetAPIResponse struct { - model.CommonResponse - AlibabaAlinkMessageConfigSetResponse -} - -// 消息提醒开关 成功返回结果 -type AlibabaAlinkMessageConfigSetResponse struct { - XMLName xml.Name `xml:"alibaba_alink_message_config_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alink/AlibabaAlinkMessageHistoryCountAPIRequest.go b/model/alink/AlibabaAlinkMessageHistoryCountAPIRequest.go new file mode 100644 index 0000000000..44de4efba4 --- /dev/null +++ b/model/alink/AlibabaAlinkMessageHistoryCountAPIRequest.go @@ -0,0 +1,122 @@ +package alink + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询消息总数 API请求 +alibaba.alink.message.history.count + +查询消息总数 +*/ +type AlibabaAlinkMessageHistoryCountAPIRequest struct { + model.Params + // 设备id + _uuid string + // 消息类型 1:通知, 2:报警, 3:运营,5:语音控制机器人响应,6:语音控 + _type string + // 消息状态,0:未读;1:已读 + _status string + // 消息级别 1:普通;2:重要消息 + _level string + // 查询多少条数据 + _limit string + // 偏移量 + _offset string +} + +// 初始化AlibabaAlinkMessageHistoryCountAPIRequest对象 +func NewAlibabaAlinkMessageHistoryCountRequest() *AlibabaAlinkMessageHistoryCountAPIRequest{ + return &AlibabaAlinkMessageHistoryCountAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlinkMessageHistoryCountAPIRequest) GetApiMethodName() string { + return "alibaba.alink.message.history.count" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlinkMessageHistoryCountAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Uuid Setter +// 设备id +func (r *AlibabaAlinkMessageHistoryCountAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaAlinkMessageHistoryCountAPIRequest) GetUuid() string { + return r._uuid +} +// Type Setter +// 消息类型 1:通知, 2:报警, 3:运营,5:语音控制机器人响应,6:语音控 +func (r *AlibabaAlinkMessageHistoryCountAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaAlinkMessageHistoryCountAPIRequest) GetType() string { + return r._type +} +// Status Setter +// 消息状态,0:未读;1:已读 +func (r *AlibabaAlinkMessageHistoryCountAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaAlinkMessageHistoryCountAPIRequest) GetStatus() string { + return r._status +} +// Level Setter +// 消息级别 1:普通;2:重要消息 +func (r *AlibabaAlinkMessageHistoryCountAPIRequest) SetLevel(_level string) error { + r._level = _level + r.Set("level", _level) + return nil +} + +// Level Getter +func (r AlibabaAlinkMessageHistoryCountAPIRequest) GetLevel() string { + return r._level +} +// Limit Setter +// 查询多少条数据 +func (r *AlibabaAlinkMessageHistoryCountAPIRequest) SetLimit(_limit string) error { + r._limit = _limit + r.Set("limit", _limit) + return nil +} + +// Limit Getter +func (r AlibabaAlinkMessageHistoryCountAPIRequest) GetLimit() string { + return r._limit +} +// Offset Setter +// 偏移量 +func (r *AlibabaAlinkMessageHistoryCountAPIRequest) SetOffset(_offset string) error { + r._offset = _offset + r.Set("offset", _offset) + return nil +} + +// Offset Getter +func (r AlibabaAlinkMessageHistoryCountAPIRequest) GetOffset() string { + return r._offset +} diff --git a/model/alink/AlibabaAlinkMessageHistoryCountAPIResponse.go b/model/alink/AlibabaAlinkMessageHistoryCountAPIResponse.go new file mode 100644 index 0000000000..33b1ec2208 --- /dev/null +++ b/model/alink/AlibabaAlinkMessageHistoryCountAPIResponse.go @@ -0,0 +1,27 @@ +package alink + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询消息总数 API返回值 +alibaba.alink.message.history.count + +查询消息总数 +*/ +type AlibabaAlinkMessageHistoryCountAPIResponse struct { + model.CommonResponse + AlibabaAlinkMessageHistoryCountAPIResponseModel +} + +// 查询消息总数 成功返回结果 +type AlibabaAlinkMessageHistoryCountAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alink_message_history_count_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alink/AlibabaAlinkMessageHistoryCountResponse.go b/model/alink/AlibabaAlinkMessageHistoryCountResponse.go deleted file mode 100644 index aac50746cb..0000000000 --- a/model/alink/AlibabaAlinkMessageHistoryCountResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alink - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询消息总数 API返回值 -alibaba.alink.message.history.count - -查询消息总数 -*/ -type AlibabaAlinkMessageHistoryCountAPIResponse struct { - model.CommonResponse - AlibabaAlinkMessageHistoryCountResponse -} - -// 查询消息总数 成功返回结果 -type AlibabaAlinkMessageHistoryCountResponse struct { - XMLName xml.Name `xml:"alibaba_alink_message_history_count_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alink/AlibabaAlinkMessageHistoryListAPIRequest.go b/model/alink/AlibabaAlinkMessageHistoryListAPIRequest.go new file mode 100644 index 0000000000..780eb20a09 --- /dev/null +++ b/model/alink/AlibabaAlinkMessageHistoryListAPIRequest.go @@ -0,0 +1,122 @@ +package alink + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询消息列表 API请求 +alibaba.alink.message.history.list + +查询消息列表 +*/ +type AlibabaAlinkMessageHistoryListAPIRequest struct { + model.Params + // 设备id + _uuid string + // 消息类型 1:通知, 2:报警, 3:运营,5:语音控制机器人响应,6:语音控 + _type string + // 消息状态,0:未读;1:已读 + _status string + // 消息级别 1:普通;2:重要消息 + _level string + // 查询多少条数据 + _limit string + // 偏移量 + _offset string +} + +// 初始化AlibabaAlinkMessageHistoryListAPIRequest对象 +func NewAlibabaAlinkMessageHistoryListRequest() *AlibabaAlinkMessageHistoryListAPIRequest{ + return &AlibabaAlinkMessageHistoryListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlinkMessageHistoryListAPIRequest) GetApiMethodName() string { + return "alibaba.alink.message.history.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlinkMessageHistoryListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Uuid Setter +// 设备id +func (r *AlibabaAlinkMessageHistoryListAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaAlinkMessageHistoryListAPIRequest) GetUuid() string { + return r._uuid +} +// Type Setter +// 消息类型 1:通知, 2:报警, 3:运营,5:语音控制机器人响应,6:语音控 +func (r *AlibabaAlinkMessageHistoryListAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaAlinkMessageHistoryListAPIRequest) GetType() string { + return r._type +} +// Status Setter +// 消息状态,0:未读;1:已读 +func (r *AlibabaAlinkMessageHistoryListAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaAlinkMessageHistoryListAPIRequest) GetStatus() string { + return r._status +} +// Level Setter +// 消息级别 1:普通;2:重要消息 +func (r *AlibabaAlinkMessageHistoryListAPIRequest) SetLevel(_level string) error { + r._level = _level + r.Set("level", _level) + return nil +} + +// Level Getter +func (r AlibabaAlinkMessageHistoryListAPIRequest) GetLevel() string { + return r._level +} +// Limit Setter +// 查询多少条数据 +func (r *AlibabaAlinkMessageHistoryListAPIRequest) SetLimit(_limit string) error { + r._limit = _limit + r.Set("limit", _limit) + return nil +} + +// Limit Getter +func (r AlibabaAlinkMessageHistoryListAPIRequest) GetLimit() string { + return r._limit +} +// Offset Setter +// 偏移量 +func (r *AlibabaAlinkMessageHistoryListAPIRequest) SetOffset(_offset string) error { + r._offset = _offset + r.Set("offset", _offset) + return nil +} + +// Offset Getter +func (r AlibabaAlinkMessageHistoryListAPIRequest) GetOffset() string { + return r._offset +} diff --git a/model/alink/AlibabaAlinkMessageHistoryListAPIResponse.go b/model/alink/AlibabaAlinkMessageHistoryListAPIResponse.go new file mode 100644 index 0000000000..b54ebe20d0 --- /dev/null +++ b/model/alink/AlibabaAlinkMessageHistoryListAPIResponse.go @@ -0,0 +1,27 @@ +package alink + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询消息列表 API返回值 +alibaba.alink.message.history.list + +查询消息列表 +*/ +type AlibabaAlinkMessageHistoryListAPIResponse struct { + model.CommonResponse + AlibabaAlinkMessageHistoryListAPIResponseModel +} + +// 查询消息列表 成功返回结果 +type AlibabaAlinkMessageHistoryListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alink_message_history_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alink/AlibabaAlinkMessageHistoryListResponse.go b/model/alink/AlibabaAlinkMessageHistoryListResponse.go deleted file mode 100644 index 82304aceb2..0000000000 --- a/model/alink/AlibabaAlinkMessageHistoryListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alink - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询消息列表 API返回值 -alibaba.alink.message.history.list - -查询消息列表 -*/ -type AlibabaAlinkMessageHistoryListAPIResponse struct { - model.CommonResponse - AlibabaAlinkMessageHistoryListResponse -} - -// 查询消息列表 成功返回结果 -type AlibabaAlinkMessageHistoryListResponse struct { - XMLName xml.Name `xml:"alibaba_alink_message_history_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alink/AliyunAlinkDataStatReportAPIRequest.go b/model/alink/AliyunAlinkDataStatReportAPIRequest.go new file mode 100644 index 0000000000..71c8eb08dc --- /dev/null +++ b/model/alink/AliyunAlinkDataStatReportAPIRequest.go @@ -0,0 +1,52 @@ +package alink + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +外部离线统计数据上报 API请求 +aliyun.alink.data.stat.report + +外部合作厂商上报设备的明细数据,或者离线统计数据。 +*/ +type AliyunAlinkDataStatReportAPIRequest struct { + model.Params + // 入参对象 + _paramBean *OuterDataBean +} + +// 初始化AliyunAlinkDataStatReportAPIRequest对象 +func NewAliyunAlinkDataStatReportRequest() *AliyunAlinkDataStatReportAPIRequest{ + return &AliyunAlinkDataStatReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunAlinkDataStatReportAPIRequest) GetApiMethodName() string { + return "aliyun.alink.data.stat.report" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunAlinkDataStatReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBean Setter +// 入参对象 +func (r *AliyunAlinkDataStatReportAPIRequest) SetParamBean(_paramBean *OuterDataBean) error { + r._paramBean = _paramBean + r.Set("param_bean", _paramBean) + return nil +} + +// ParamBean Getter +func (r AliyunAlinkDataStatReportAPIRequest) GetParamBean() *OuterDataBean { + return r._paramBean +} diff --git a/model/alink/AliyunAlinkDataStatReportAPIResponse.go b/model/alink/AliyunAlinkDataStatReportAPIResponse.go new file mode 100644 index 0000000000..2fceb4d41c --- /dev/null +++ b/model/alink/AliyunAlinkDataStatReportAPIResponse.go @@ -0,0 +1,33 @@ +package alink + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +外部离线统计数据上报 API返回值 +aliyun.alink.data.stat.report + +外部合作厂商上报设备的明细数据,或者离线统计数据。 +*/ +type AliyunAlinkDataStatReportAPIResponse struct { + model.CommonResponse + AliyunAlinkDataStatReportAPIResponseModel +} + +// 外部离线统计数据上报 成功返回结果 +type AliyunAlinkDataStatReportAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_alink_data_stat_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 数据入库状态 + Module bool `json:"module,omitempty" xml:"module,omitempty"` + // 状态 + Status int64 `json:"status,omitempty" xml:"status,omitempty"` + // 调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/alink/AliyunAlinkDataStatReportResponse.go b/model/alink/AliyunAlinkDataStatReportResponse.go deleted file mode 100644 index 8a0d169448..0000000000 --- a/model/alink/AliyunAlinkDataStatReportResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package alink - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -外部离线统计数据上报 API返回值 -aliyun.alink.data.stat.report - -外部合作厂商上报设备的明细数据,或者离线统计数据。 -*/ -type AliyunAlinkDataStatReportAPIResponse struct { - model.CommonResponse - AliyunAlinkDataStatReportResponse -} - -// 外部离线统计数据上报 成功返回结果 -type AliyunAlinkDataStatReportResponse struct { - XMLName xml.Name `xml:"aliyun_alink_data_stat_report_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误消息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 数据入库状态 - Module bool `json:"module,omitempty" xml:"module,omitempty"` - // 状态 - Status int64 `json:"status,omitempty" xml:"status,omitempty"` - // 调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/alink/AliyunAlinkOpendataUrlQueryAPIRequest.go b/model/alink/AliyunAlinkOpendataUrlQueryAPIRequest.go new file mode 100644 index 0000000000..d35af19ec6 --- /dev/null +++ b/model/alink/AliyunAlinkOpendataUrlQueryAPIRequest.go @@ -0,0 +1,94 @@ +package alink + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +开放数据授权访问URL查询 API请求 +aliyun.alink.opendata.url.query + +厂商数据授权访问URL查询 +*/ +type AliyunAlinkOpendataUrlQueryAPIRequest struct { + model.Params + // 授权key,厂家在物联平台申请的云端授权key + _accessKey string + // 数据日期,格式:yyyyMMdd + _bizDay string + // 数据时点,范围[0,23] + _bizHour int64 + // 数据类型,1:设备数据,2:用户操作数据 + _dataType int64 +} + +// 初始化AliyunAlinkOpendataUrlQueryAPIRequest对象 +func NewAliyunAlinkOpendataUrlQueryRequest() *AliyunAlinkOpendataUrlQueryAPIRequest{ + return &AliyunAlinkOpendataUrlQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunAlinkOpendataUrlQueryAPIRequest) GetApiMethodName() string { + return "aliyun.alink.opendata.url.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunAlinkOpendataUrlQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccessKey Setter +// 授权key,厂家在物联平台申请的云端授权key +func (r *AliyunAlinkOpendataUrlQueryAPIRequest) SetAccessKey(_accessKey string) error { + r._accessKey = _accessKey + r.Set("access_key", _accessKey) + return nil +} + +// AccessKey Getter +func (r AliyunAlinkOpendataUrlQueryAPIRequest) GetAccessKey() string { + return r._accessKey +} +// BizDay Setter +// 数据日期,格式:yyyyMMdd +func (r *AliyunAlinkOpendataUrlQueryAPIRequest) SetBizDay(_bizDay string) error { + r._bizDay = _bizDay + r.Set("biz_day", _bizDay) + return nil +} + +// BizDay Getter +func (r AliyunAlinkOpendataUrlQueryAPIRequest) GetBizDay() string { + return r._bizDay +} +// BizHour Setter +// 数据时点,范围[0,23] +func (r *AliyunAlinkOpendataUrlQueryAPIRequest) SetBizHour(_bizHour int64) error { + r._bizHour = _bizHour + r.Set("biz_hour", _bizHour) + return nil +} + +// BizHour Getter +func (r AliyunAlinkOpendataUrlQueryAPIRequest) GetBizHour() int64 { + return r._bizHour +} +// DataType Setter +// 数据类型,1:设备数据,2:用户操作数据 +func (r *AliyunAlinkOpendataUrlQueryAPIRequest) SetDataType(_dataType int64) error { + r._dataType = _dataType + r.Set("data_type", _dataType) + return nil +} + +// DataType Getter +func (r AliyunAlinkOpendataUrlQueryAPIRequest) GetDataType() int64 { + return r._dataType +} diff --git a/model/alink/AliyunAlinkOpendataUrlQueryAPIResponse.go b/model/alink/AliyunAlinkOpendataUrlQueryAPIResponse.go new file mode 100644 index 0000000000..a4c7ee54a5 --- /dev/null +++ b/model/alink/AliyunAlinkOpendataUrlQueryAPIResponse.go @@ -0,0 +1,33 @@ +package alink + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +开放数据授权访问URL查询 API返回值 +aliyun.alink.opendata.url.query + +厂商数据授权访问URL查询 +*/ +type AliyunAlinkOpendataUrlQueryAPIResponse struct { + model.CommonResponse + AliyunAlinkOpendataUrlQueryAPIResponseModel +} + +// 开放数据授权访问URL查询 成功返回结果 +type AliyunAlinkOpendataUrlQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_alink_opendata_url_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 状态 + Status int64 `json:"status,omitempty" xml:"status,omitempty"` + // 接口描述 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 授权url + Module []string `json:"module,omitempty" xml:"module>string,omitempty"` +} diff --git a/model/alink/AliyunAlinkOpendataUrlQueryResponse.go b/model/alink/AliyunAlinkOpendataUrlQueryResponse.go deleted file mode 100644 index 2cd6868cc4..0000000000 --- a/model/alink/AliyunAlinkOpendataUrlQueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package alink - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -开放数据授权访问URL查询 API返回值 -aliyun.alink.opendata.url.query - -厂商数据授权访问URL查询 -*/ -type AliyunAlinkOpendataUrlQueryAPIResponse struct { - model.CommonResponse - AliyunAlinkOpendataUrlQueryResponse -} - -// 开放数据授权访问URL查询 成功返回结果 -type AliyunAlinkOpendataUrlQueryResponse struct { - XMLName xml.Name `xml:"aliyun_alink_opendata_url_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 状态 - Status int64 `json:"status,omitempty" xml:"status,omitempty"` - // 接口描述 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 授权url - Module []string `json:"module,omitempty" xml:"module>string,omitempty"` -} diff --git a/model/aliospay/AliyunAliosPayRecordListAPIRequest.go b/model/aliospay/AliyunAliosPayRecordListAPIRequest.go new file mode 100644 index 0000000000..0f266e090c --- /dev/null +++ b/model/aliospay/AliyunAliosPayRecordListAPIRequest.go @@ -0,0 +1,52 @@ +package aliospay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +支付记录批量查询接口 API请求 +aliyun.alios.pay.record.list + +商户用来对账的接口 +*/ +type AliyunAliosPayRecordListAPIRequest struct { + model.Params + // 请求参数 + _searchRecordRequest *SearchRecordRequest +} + +// 初始化AliyunAliosPayRecordListAPIRequest对象 +func NewAliyunAliosPayRecordListRequest() *AliyunAliosPayRecordListAPIRequest{ + return &AliyunAliosPayRecordListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunAliosPayRecordListAPIRequest) GetApiMethodName() string { + return "aliyun.alios.pay.record.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunAliosPayRecordListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SearchRecordRequest Setter +// 请求参数 +func (r *AliyunAliosPayRecordListAPIRequest) SetSearchRecordRequest(_searchRecordRequest *SearchRecordRequest) error { + r._searchRecordRequest = _searchRecordRequest + r.Set("search_record_request", _searchRecordRequest) + return nil +} + +// SearchRecordRequest Getter +func (r AliyunAliosPayRecordListAPIRequest) GetSearchRecordRequest() *SearchRecordRequest { + return r._searchRecordRequest +} diff --git a/model/aliospay/AliyunAliosPayRecordListAPIResponse.go b/model/aliospay/AliyunAliosPayRecordListAPIResponse.go new file mode 100644 index 0000000000..8efcbc3259 --- /dev/null +++ b/model/aliospay/AliyunAliosPayRecordListAPIResponse.go @@ -0,0 +1,27 @@ +package aliospay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +支付记录批量查询接口 API返回值 +aliyun.alios.pay.record.list + +商户用来对账的接口 +*/ +type AliyunAliosPayRecordListAPIResponse struct { + model.CommonResponse + AliyunAliosPayRecordListAPIResponseModel +} + +// 支付记录批量查询接口 成功返回结果 +type AliyunAliosPayRecordListAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_alios_pay_record_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应参数 + AliospayResponse *AliOSPayResponse `json:"aliospay_response,omitempty" xml:"aliospay_response,omitempty"` +} diff --git a/model/aliospay/AliyunAliosPayRecordListResponse.go b/model/aliospay/AliyunAliosPayRecordListResponse.go deleted file mode 100644 index 7c8d72d599..0000000000 --- a/model/aliospay/AliyunAliosPayRecordListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliospay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -支付记录批量查询接口 API返回值 -aliyun.alios.pay.record.list - -商户用来对账的接口 -*/ -type AliyunAliosPayRecordListAPIResponse struct { - model.CommonResponse - AliyunAliosPayRecordListResponse -} - -// 支付记录批量查询接口 成功返回结果 -type AliyunAliosPayRecordListResponse struct { - XMLName xml.Name `xml:"aliyun_alios_pay_record_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应参数 - AliospayResponse *AliOSPayResponse `json:"aliospay_response,omitempty" xml:"aliospay_response,omitempty"` -} diff --git a/model/aliospay/AliyunAliosPayRefundAPIRequest.go b/model/aliospay/AliyunAliosPayRefundAPIRequest.go new file mode 100644 index 0000000000..b4d6ad7d8c --- /dev/null +++ b/model/aliospay/AliyunAliosPayRefundAPIRequest.go @@ -0,0 +1,52 @@ +package aliospay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +退款接口 API请求 +aliyun.alios.pay.refund + +商户用来发起退款的接口 +*/ +type AliyunAliosPayRefundAPIRequest struct { + model.Params + // 请求参数 + _refundRequest *RefundRequest +} + +// 初始化AliyunAliosPayRefundAPIRequest对象 +func NewAliyunAliosPayRefundRequest() *AliyunAliosPayRefundAPIRequest{ + return &AliyunAliosPayRefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunAliosPayRefundAPIRequest) GetApiMethodName() string { + return "aliyun.alios.pay.refund" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunAliosPayRefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundRequest Setter +// 请求参数 +func (r *AliyunAliosPayRefundAPIRequest) SetRefundRequest(_refundRequest *RefundRequest) error { + r._refundRequest = _refundRequest + r.Set("refund_request", _refundRequest) + return nil +} + +// RefundRequest Getter +func (r AliyunAliosPayRefundAPIRequest) GetRefundRequest() *RefundRequest { + return r._refundRequest +} diff --git a/model/aliospay/AliyunAliosPayRefundAPIResponse.go b/model/aliospay/AliyunAliosPayRefundAPIResponse.go new file mode 100644 index 0000000000..2ccce952ab --- /dev/null +++ b/model/aliospay/AliyunAliosPayRefundAPIResponse.go @@ -0,0 +1,27 @@ +package aliospay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +退款接口 API返回值 +aliyun.alios.pay.refund + +商户用来发起退款的接口 +*/ +type AliyunAliosPayRefundAPIResponse struct { + model.CommonResponse + AliyunAliosPayRefundAPIResponseModel +} + +// 退款接口 成功返回结果 +type AliyunAliosPayRefundAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_alios_pay_refund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应参数 + AliospayResponse *AliOSPayResponse `json:"aliospay_response,omitempty" xml:"aliospay_response,omitempty"` +} diff --git a/model/aliospay/AliyunAliosPayRefundResponse.go b/model/aliospay/AliyunAliosPayRefundResponse.go deleted file mode 100644 index e9660852eb..0000000000 --- a/model/aliospay/AliyunAliosPayRefundResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliospay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -退款接口 API返回值 -aliyun.alios.pay.refund - -商户用来发起退款的接口 -*/ -type AliyunAliosPayRefundAPIResponse struct { - model.CommonResponse - AliyunAliosPayRefundResponse -} - -// 退款接口 成功返回结果 -type AliyunAliosPayRefundResponse struct { - XMLName xml.Name `xml:"aliyun_alios_pay_refund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应参数 - AliospayResponse *AliOSPayResponse `json:"aliospay_response,omitempty" xml:"aliospay_response,omitempty"` -} diff --git a/model/aliospay/AliyunAliosPayTokenGetAPIRequest.go b/model/aliospay/AliyunAliosPayTokenGetAPIRequest.go new file mode 100644 index 0000000000..6f4dfe2ef9 --- /dev/null +++ b/model/aliospay/AliyunAliosPayTokenGetAPIRequest.go @@ -0,0 +1,52 @@ +package aliospay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取支付token API请求 +aliyun.alios.pay.token.get + +商户用来获取支付的授权token +*/ +type AliyunAliosPayTokenGetAPIRequest struct { + model.Params + // 请求参数 + _getTokenRequest *GetTokenRequest +} + +// 初始化AliyunAliosPayTokenGetAPIRequest对象 +func NewAliyunAliosPayTokenGetRequest() *AliyunAliosPayTokenGetAPIRequest{ + return &AliyunAliosPayTokenGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunAliosPayTokenGetAPIRequest) GetApiMethodName() string { + return "aliyun.alios.pay.token.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunAliosPayTokenGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GetTokenRequest Setter +// 请求参数 +func (r *AliyunAliosPayTokenGetAPIRequest) SetGetTokenRequest(_getTokenRequest *GetTokenRequest) error { + r._getTokenRequest = _getTokenRequest + r.Set("get_token_request", _getTokenRequest) + return nil +} + +// GetTokenRequest Getter +func (r AliyunAliosPayTokenGetAPIRequest) GetGetTokenRequest() *GetTokenRequest { + return r._getTokenRequest +} diff --git a/model/aliospay/AliyunAliosPayTokenGetAPIResponse.go b/model/aliospay/AliyunAliosPayTokenGetAPIResponse.go new file mode 100644 index 0000000000..df20e4bb97 --- /dev/null +++ b/model/aliospay/AliyunAliosPayTokenGetAPIResponse.go @@ -0,0 +1,27 @@ +package aliospay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取支付token API返回值 +aliyun.alios.pay.token.get + +商户用来获取支付的授权token +*/ +type AliyunAliosPayTokenGetAPIResponse struct { + model.CommonResponse + AliyunAliosPayTokenGetAPIResponseModel +} + +// 获取支付token 成功返回结果 +type AliyunAliosPayTokenGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_alios_pay_token_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应参数 + AliospayResponse *AliOSPayResponse `json:"aliospay_response,omitempty" xml:"aliospay_response,omitempty"` +} diff --git a/model/aliospay/AliyunAliosPayTokenGetResponse.go b/model/aliospay/AliyunAliosPayTokenGetResponse.go deleted file mode 100644 index 3e34cb4498..0000000000 --- a/model/aliospay/AliyunAliosPayTokenGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliospay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取支付token API返回值 -aliyun.alios.pay.token.get - -商户用来获取支付的授权token -*/ -type AliyunAliosPayTokenGetAPIResponse struct { - model.CommonResponse - AliyunAliosPayTokenGetResponse -} - -// 获取支付token 成功返回结果 -type AliyunAliosPayTokenGetResponse struct { - XMLName xml.Name `xml:"aliyun_alios_pay_token_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应参数 - AliospayResponse *AliOSPayResponse `json:"aliospay_response,omitempty" xml:"aliospay_response,omitempty"` -} diff --git a/model/aliospay/AliyunAliosPayTradeQueryAPIRequest.go b/model/aliospay/AliyunAliosPayTradeQueryAPIRequest.go new file mode 100644 index 0000000000..f507e6a767 --- /dev/null +++ b/model/aliospay/AliyunAliosPayTradeQueryAPIRequest.go @@ -0,0 +1,52 @@ +package aliospay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询支付结果接口 API请求 +aliyun.alios.pay.trade.query + +商户用来查询支付结果接口 +*/ +type AliyunAliosPayTradeQueryAPIRequest struct { + model.Params + // 请求参数 + _queryTradeRequest *QueryTradeRequest +} + +// 初始化AliyunAliosPayTradeQueryAPIRequest对象 +func NewAliyunAliosPayTradeQueryRequest() *AliyunAliosPayTradeQueryAPIRequest{ + return &AliyunAliosPayTradeQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunAliosPayTradeQueryAPIRequest) GetApiMethodName() string { + return "aliyun.alios.pay.trade.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunAliosPayTradeQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryTradeRequest Setter +// 请求参数 +func (r *AliyunAliosPayTradeQueryAPIRequest) SetQueryTradeRequest(_queryTradeRequest *QueryTradeRequest) error { + r._queryTradeRequest = _queryTradeRequest + r.Set("query_trade_request", _queryTradeRequest) + return nil +} + +// QueryTradeRequest Getter +func (r AliyunAliosPayTradeQueryAPIRequest) GetQueryTradeRequest() *QueryTradeRequest { + return r._queryTradeRequest +} diff --git a/model/aliospay/AliyunAliosPayTradeQueryAPIResponse.go b/model/aliospay/AliyunAliosPayTradeQueryAPIResponse.go new file mode 100644 index 0000000000..116b9930df --- /dev/null +++ b/model/aliospay/AliyunAliosPayTradeQueryAPIResponse.go @@ -0,0 +1,27 @@ +package aliospay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询支付结果接口 API返回值 +aliyun.alios.pay.trade.query + +商户用来查询支付结果接口 +*/ +type AliyunAliosPayTradeQueryAPIResponse struct { + model.CommonResponse + AliyunAliosPayTradeQueryAPIResponseModel +} + +// 查询支付结果接口 成功返回结果 +type AliyunAliosPayTradeQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_alios_pay_trade_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应参数 + AliospayResponse *AliOSPayResponse `json:"aliospay_response,omitempty" xml:"aliospay_response,omitempty"` +} diff --git a/model/aliospay/AliyunAliosPayTradeQueryResponse.go b/model/aliospay/AliyunAliosPayTradeQueryResponse.go deleted file mode 100644 index a45359edf5..0000000000 --- a/model/aliospay/AliyunAliosPayTradeQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliospay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询支付结果接口 API返回值 -aliyun.alios.pay.trade.query - -商户用来查询支付结果接口 -*/ -type AliyunAliosPayTradeQueryAPIResponse struct { - model.CommonResponse - AliyunAliosPayTradeQueryResponse -} - -// 查询支付结果接口 成功返回结果 -type AliyunAliosPayTradeQueryResponse struct { - XMLName xml.Name `xml:"aliyun_alios_pay_trade_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应参数 - AliospayResponse *AliOSPayResponse `json:"aliospay_response,omitempty" xml:"aliospay_response,omitempty"` -} diff --git a/model/aliqin/AlibabaAliqinFcIotCardInfoAPIRequest.go b/model/aliqin/AlibabaAliqinFcIotCardInfoAPIRequest.go new file mode 100644 index 0000000000..e28481719a --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotCardInfoAPIRequest.go @@ -0,0 +1,52 @@ +package aliqin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物联卡信息查询 API请求 +alibaba.aliqin.fc.iot.cardInfo + +物联卡信息查询 +*/ +type AlibabaAliqinFcIotCardInfoAPIRequest struct { + model.Params + // SIM卡号 + _iccid string +} + +// 初始化AlibabaAliqinFcIotCardInfoAPIRequest对象 +func NewAlibabaAliqinFcIotCardInfoRequest() *AlibabaAliqinFcIotCardInfoAPIRequest{ + return &AlibabaAliqinFcIotCardInfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcIotCardInfoAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.iot.cardInfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcIotCardInfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Iccid Setter +// SIM卡号 +func (r *AlibabaAliqinFcIotCardInfoAPIRequest) SetIccid(_iccid string) error { + r._iccid = _iccid + r.Set("iccid", _iccid) + return nil +} + +// Iccid Getter +func (r AlibabaAliqinFcIotCardInfoAPIRequest) GetIccid() string { + return r._iccid +} diff --git a/model/aliqin/AlibabaAliqinFcIotCardInfoAPIResponse.go b/model/aliqin/AlibabaAliqinFcIotCardInfoAPIResponse.go new file mode 100644 index 0000000000..08eb89500c --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotCardInfoAPIResponse.go @@ -0,0 +1,27 @@ +package aliqin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物联卡信息查询 API返回值 +alibaba.aliqin.fc.iot.cardInfo + +物联卡信息查询 +*/ +type AlibabaAliqinFcIotCardInfoAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcIotCardInfoAPIResponseModel +} + +// 物联卡信息查询 成功返回结果 +type AlibabaAliqinFcIotCardInfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_cardInfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *AlibabaAliqinFcIotCardInfoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliqin/AlibabaAliqinFcIotCardInfoResponse.go b/model/aliqin/AlibabaAliqinFcIotCardInfoResponse.go deleted file mode 100644 index 50739dab45..0000000000 --- a/model/aliqin/AlibabaAliqinFcIotCardInfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliqin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物联卡信息查询 API返回值 -alibaba.aliqin.fc.iot.cardInfo - -物联卡信息查询 -*/ -type AlibabaAliqinFcIotCardInfoAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcIotCardInfoResponse -} - -// 物联卡信息查询 成功返回结果 -type AlibabaAliqinFcIotCardInfoResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_cardInfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *AlibabaAliqinFcIotCardInfoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliqin/AlibabaAliqinFcIotCardStatusAPIRequest.go b/model/aliqin/AlibabaAliqinFcIotCardStatusAPIRequest.go new file mode 100644 index 0000000000..d090abf369 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotCardStatusAPIRequest.go @@ -0,0 +1,52 @@ +package aliqin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物联卡状态查询 API请求 +alibaba.aliqin.fc.iot.cardStatus + +物联卡状态查询 +*/ +type AlibabaAliqinFcIotCardStatusAPIRequest struct { + model.Params + // SIM卡号 + _iccid string +} + +// 初始化AlibabaAliqinFcIotCardStatusAPIRequest对象 +func NewAlibabaAliqinFcIotCardStatusRequest() *AlibabaAliqinFcIotCardStatusAPIRequest{ + return &AlibabaAliqinFcIotCardStatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcIotCardStatusAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.iot.cardStatus" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcIotCardStatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Iccid Setter +// SIM卡号 +func (r *AlibabaAliqinFcIotCardStatusAPIRequest) SetIccid(_iccid string) error { + r._iccid = _iccid + r.Set("iccid", _iccid) + return nil +} + +// Iccid Getter +func (r AlibabaAliqinFcIotCardStatusAPIRequest) GetIccid() string { + return r._iccid +} diff --git a/model/aliqin/AlibabaAliqinFcIotCardStatusAPIResponse.go b/model/aliqin/AlibabaAliqinFcIotCardStatusAPIResponse.go new file mode 100644 index 0000000000..70eb6cb3e4 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotCardStatusAPIResponse.go @@ -0,0 +1,27 @@ +package aliqin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物联卡状态查询 API返回值 +alibaba.aliqin.fc.iot.cardStatus + +物联卡状态查询 +*/ +type AlibabaAliqinFcIotCardStatusAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcIotCardStatusAPIResponseModel +} + +// 物联卡状态查询 成功返回结果 +type AlibabaAliqinFcIotCardStatusAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_cardStatus_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *AlibabaAliqinFcIotCardStatusResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliqin/AlibabaAliqinFcIotCardStatusResponse.go b/model/aliqin/AlibabaAliqinFcIotCardStatusResponse.go deleted file mode 100644 index cd5ab1ea00..0000000000 --- a/model/aliqin/AlibabaAliqinFcIotCardStatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliqin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物联卡状态查询 API返回值 -alibaba.aliqin.fc.iot.cardStatus - -物联卡状态查询 -*/ -type AlibabaAliqinFcIotCardStatusAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcIotCardStatusResponse -} - -// 物联卡状态查询 成功返回结果 -type AlibabaAliqinFcIotCardStatusResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_cardStatus_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *AlibabaAliqinFcIotCardStatusResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliqin/AlibabaAliqinFcIotCardofferAPIRequest.go b/model/aliqin/AlibabaAliqinFcIotCardofferAPIRequest.go new file mode 100644 index 0000000000..dccf6c0e8f --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotCardofferAPIRequest.go @@ -0,0 +1,66 @@ +package aliqin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询物联网卡上订购的offer API请求 +alibaba.aliqin.fc.iot.cardoffer + +查询物联网卡上订购的offer +*/ +type AlibabaAliqinFcIotCardofferAPIRequest struct { + model.Params + // 具体ICCID的值 + _billreal string + // ICCID + _billsource string +} + +// 初始化AlibabaAliqinFcIotCardofferAPIRequest对象 +func NewAlibabaAliqinFcIotCardofferRequest() *AlibabaAliqinFcIotCardofferAPIRequest{ + return &AlibabaAliqinFcIotCardofferAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcIotCardofferAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.iot.cardoffer" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcIotCardofferAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Billreal Setter +// 具体ICCID的值 +func (r *AlibabaAliqinFcIotCardofferAPIRequest) SetBillreal(_billreal string) error { + r._billreal = _billreal + r.Set("billreal", _billreal) + return nil +} + +// Billreal Getter +func (r AlibabaAliqinFcIotCardofferAPIRequest) GetBillreal() string { + return r._billreal +} +// Billsource Setter +// ICCID +func (r *AlibabaAliqinFcIotCardofferAPIRequest) SetBillsource(_billsource string) error { + r._billsource = _billsource + r.Set("billsource", _billsource) + return nil +} + +// Billsource Getter +func (r AlibabaAliqinFcIotCardofferAPIRequest) GetBillsource() string { + return r._billsource +} diff --git a/model/aliqin/AlibabaAliqinFcIotCardofferAPIResponse.go b/model/aliqin/AlibabaAliqinFcIotCardofferAPIResponse.go new file mode 100644 index 0000000000..a0fa910183 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotCardofferAPIResponse.go @@ -0,0 +1,27 @@ +package aliqin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询物联网卡上订购的offer API返回值 +alibaba.aliqin.fc.iot.cardoffer + +查询物联网卡上订购的offer +*/ +type AlibabaAliqinFcIotCardofferAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcIotCardofferAPIResponseModel +} + +// 查询物联网卡上订购的offer 成功返回结果 +type AlibabaAliqinFcIotCardofferAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_cardoffer_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *AlibabaAliqinFcIotCardofferResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliqin/AlibabaAliqinFcIotCardofferResponse.go b/model/aliqin/AlibabaAliqinFcIotCardofferResponse.go deleted file mode 100644 index 17d59e5a01..0000000000 --- a/model/aliqin/AlibabaAliqinFcIotCardofferResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliqin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询物联网卡上订购的offer API返回值 -alibaba.aliqin.fc.iot.cardoffer - -查询物联网卡上订购的offer -*/ -type AlibabaAliqinFcIotCardofferAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcIotCardofferResponse -} - -// 查询物联网卡上订购的offer 成功返回结果 -type AlibabaAliqinFcIotCardofferResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_cardoffer_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *AlibabaAliqinFcIotCardofferResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliqin/AlibabaAliqinFcIotDeviceIsexistAPIRequest.go b/model/aliqin/AlibabaAliqinFcIotDeviceIsexistAPIRequest.go new file mode 100644 index 0000000000..5594888b32 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotDeviceIsexistAPIRequest.go @@ -0,0 +1,80 @@ +package aliqin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +判断设备是否存在 API请求 +alibaba.aliqin.fc.iot.device.isexist + +判断设备是否存在 +*/ +type AlibabaAliqinFcIotDeviceIsexistAPIRequest struct { + model.Params + // 设备编号 + _imei string + // 设备类型(预留将来扩展) + _deviceType string + // 渠道扩展编码(预留) + _midPatChannel string +} + +// 初始化AlibabaAliqinFcIotDeviceIsexistAPIRequest对象 +func NewAlibabaAliqinFcIotDeviceIsexistRequest() *AlibabaAliqinFcIotDeviceIsexistAPIRequest{ + return &AlibabaAliqinFcIotDeviceIsexistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcIotDeviceIsexistAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.iot.device.isexist" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcIotDeviceIsexistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Imei Setter +// 设备编号 +func (r *AlibabaAliqinFcIotDeviceIsexistAPIRequest) SetImei(_imei string) error { + r._imei = _imei + r.Set("imei", _imei) + return nil +} + +// Imei Getter +func (r AlibabaAliqinFcIotDeviceIsexistAPIRequest) GetImei() string { + return r._imei +} +// DeviceType Setter +// 设备类型(预留将来扩展) +func (r *AlibabaAliqinFcIotDeviceIsexistAPIRequest) SetDeviceType(_deviceType string) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r AlibabaAliqinFcIotDeviceIsexistAPIRequest) GetDeviceType() string { + return r._deviceType +} +// MidPatChannel Setter +// 渠道扩展编码(预留) +func (r *AlibabaAliqinFcIotDeviceIsexistAPIRequest) SetMidPatChannel(_midPatChannel string) error { + r._midPatChannel = _midPatChannel + r.Set("mid_pat_channel", _midPatChannel) + return nil +} + +// MidPatChannel Getter +func (r AlibabaAliqinFcIotDeviceIsexistAPIRequest) GetMidPatChannel() string { + return r._midPatChannel +} diff --git a/model/aliqin/AlibabaAliqinFcIotDeviceIsexistAPIResponse.go b/model/aliqin/AlibabaAliqinFcIotDeviceIsexistAPIResponse.go new file mode 100644 index 0000000000..e314d69e56 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotDeviceIsexistAPIResponse.go @@ -0,0 +1,27 @@ +package aliqin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +判断设备是否存在 API返回值 +alibaba.aliqin.fc.iot.device.isexist + +判断设备是否存在 +*/ +type AlibabaAliqinFcIotDeviceIsexistAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcIotDeviceIsexistAPIResponseModel +} + +// 判断设备是否存在 成功返回结果 +type AlibabaAliqinFcIotDeviceIsexistAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_device_isexist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAliqinFcIotDeviceIsexistResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliqin/AlibabaAliqinFcIotDeviceIsexistResponse.go b/model/aliqin/AlibabaAliqinFcIotDeviceIsexistResponse.go deleted file mode 100644 index 312398c363..0000000000 --- a/model/aliqin/AlibabaAliqinFcIotDeviceIsexistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliqin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -判断设备是否存在 API返回值 -alibaba.aliqin.fc.iot.device.isexist - -判断设备是否存在 -*/ -type AlibabaAliqinFcIotDeviceIsexistAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcIotDeviceIsexistResponse -} - -// 判断设备是否存在 成功返回结果 -type AlibabaAliqinFcIotDeviceIsexistResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_device_isexist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAliqinFcIotDeviceIsexistResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliqin/AlibabaAliqinFcIotDevicePostAPIRequest.go b/model/aliqin/AlibabaAliqinFcIotDevicePostAPIRequest.go new file mode 100644 index 0000000000..4749f09d28 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotDevicePostAPIRequest.go @@ -0,0 +1,94 @@ +package aliqin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家提交设备信息 API请求 +alibaba.aliqin.fc.iot.device.post + +物联网商家设备信息录入 +*/ +type AlibabaAliqinFcIotDevicePostAPIRequest struct { + model.Params + // 15位imei号 + _imei string + // 设备类型(将来扩展) + _deviceType string + // 备注 + _comments string + // 扩展字段 + _midPatChannel string +} + +// 初始化AlibabaAliqinFcIotDevicePostAPIRequest对象 +func NewAlibabaAliqinFcIotDevicePostRequest() *AlibabaAliqinFcIotDevicePostAPIRequest{ + return &AlibabaAliqinFcIotDevicePostAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcIotDevicePostAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.iot.device.post" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcIotDevicePostAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Imei Setter +// 15位imei号 +func (r *AlibabaAliqinFcIotDevicePostAPIRequest) SetImei(_imei string) error { + r._imei = _imei + r.Set("imei", _imei) + return nil +} + +// Imei Getter +func (r AlibabaAliqinFcIotDevicePostAPIRequest) GetImei() string { + return r._imei +} +// DeviceType Setter +// 设备类型(将来扩展) +func (r *AlibabaAliqinFcIotDevicePostAPIRequest) SetDeviceType(_deviceType string) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r AlibabaAliqinFcIotDevicePostAPIRequest) GetDeviceType() string { + return r._deviceType +} +// Comments Setter +// 备注 +func (r *AlibabaAliqinFcIotDevicePostAPIRequest) SetComments(_comments string) error { + r._comments = _comments + r.Set("comments", _comments) + return nil +} + +// Comments Getter +func (r AlibabaAliqinFcIotDevicePostAPIRequest) GetComments() string { + return r._comments +} +// MidPatChannel Setter +// 扩展字段 +func (r *AlibabaAliqinFcIotDevicePostAPIRequest) SetMidPatChannel(_midPatChannel string) error { + r._midPatChannel = _midPatChannel + r.Set("mid_pat_channel", _midPatChannel) + return nil +} + +// MidPatChannel Getter +func (r AlibabaAliqinFcIotDevicePostAPIRequest) GetMidPatChannel() string { + return r._midPatChannel +} diff --git a/model/aliqin/AlibabaAliqinFcIotDevicePostAPIResponse.go b/model/aliqin/AlibabaAliqinFcIotDevicePostAPIResponse.go new file mode 100644 index 0000000000..d383bea17a --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotDevicePostAPIResponse.go @@ -0,0 +1,27 @@ +package aliqin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家提交设备信息 API返回值 +alibaba.aliqin.fc.iot.device.post + +物联网商家设备信息录入 +*/ +type AlibabaAliqinFcIotDevicePostAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcIotDevicePostAPIResponseModel +} + +// 商家提交设备信息 成功返回结果 +type AlibabaAliqinFcIotDevicePostAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_device_post_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAliqinFcIotDevicePostResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliqin/AlibabaAliqinFcIotDevicePostResponse.go b/model/aliqin/AlibabaAliqinFcIotDevicePostResponse.go deleted file mode 100644 index 3d318f8c90..0000000000 --- a/model/aliqin/AlibabaAliqinFcIotDevicePostResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliqin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家提交设备信息 API返回值 -alibaba.aliqin.fc.iot.device.post - -物联网商家设备信息录入 -*/ -type AlibabaAliqinFcIotDevicePostAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcIotDevicePostResponse -} - -// 商家提交设备信息 成功返回结果 -type AlibabaAliqinFcIotDevicePostResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_device_post_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAliqinFcIotDevicePostResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliqin/AlibabaAliqinFcIotModbindAPIRequest.go b/model/aliqin/AlibabaAliqinFcIotModbindAPIRequest.go new file mode 100644 index 0000000000..07ea9a126e --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotModbindAPIRequest.go @@ -0,0 +1,136 @@ +package aliqin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物联网绑定/换绑API API请求 +alibaba.aliqin.fc.iot.modbind + +支持用户的设备的换绑和解绑操作 +*/ +type AlibabaAliqinFcIotModbindAPIRequest struct { + model.Params + // chgBind:换绑;unBind:解绑 + _opionType string + // 物联卡和iccid保持一致 + _billReal string + // iccid (20位) + _iccid string + // 换绑的时候必传,换的新设备imei + _newimei string + // 目前绑定的设备imei + _imei string + // 物联卡业务:若无特殊为ICCID + _billSource string + // 若无特殊物联卡传入122 + _midPatChannel string +} + +// 初始化AlibabaAliqinFcIotModbindAPIRequest对象 +func NewAlibabaAliqinFcIotModbindRequest() *AlibabaAliqinFcIotModbindAPIRequest{ + return &AlibabaAliqinFcIotModbindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcIotModbindAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.iot.modbind" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcIotModbindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpionType Setter +// chgBind:换绑;unBind:解绑 +func (r *AlibabaAliqinFcIotModbindAPIRequest) SetOpionType(_opionType string) error { + r._opionType = _opionType + r.Set("opion_type", _opionType) + return nil +} + +// OpionType Getter +func (r AlibabaAliqinFcIotModbindAPIRequest) GetOpionType() string { + return r._opionType +} +// BillReal Setter +// 物联卡和iccid保持一致 +func (r *AlibabaAliqinFcIotModbindAPIRequest) SetBillReal(_billReal string) error { + r._billReal = _billReal + r.Set("bill_real", _billReal) + return nil +} + +// BillReal Getter +func (r AlibabaAliqinFcIotModbindAPIRequest) GetBillReal() string { + return r._billReal +} +// Iccid Setter +// iccid (20位) +func (r *AlibabaAliqinFcIotModbindAPIRequest) SetIccid(_iccid string) error { + r._iccid = _iccid + r.Set("iccid", _iccid) + return nil +} + +// Iccid Getter +func (r AlibabaAliqinFcIotModbindAPIRequest) GetIccid() string { + return r._iccid +} +// Newimei Setter +// 换绑的时候必传,换的新设备imei +func (r *AlibabaAliqinFcIotModbindAPIRequest) SetNewimei(_newimei string) error { + r._newimei = _newimei + r.Set("newimei", _newimei) + return nil +} + +// Newimei Getter +func (r AlibabaAliqinFcIotModbindAPIRequest) GetNewimei() string { + return r._newimei +} +// Imei Setter +// 目前绑定的设备imei +func (r *AlibabaAliqinFcIotModbindAPIRequest) SetImei(_imei string) error { + r._imei = _imei + r.Set("imei", _imei) + return nil +} + +// Imei Getter +func (r AlibabaAliqinFcIotModbindAPIRequest) GetImei() string { + return r._imei +} +// BillSource Setter +// 物联卡业务:若无特殊为ICCID +func (r *AlibabaAliqinFcIotModbindAPIRequest) SetBillSource(_billSource string) error { + r._billSource = _billSource + r.Set("bill_source", _billSource) + return nil +} + +// BillSource Getter +func (r AlibabaAliqinFcIotModbindAPIRequest) GetBillSource() string { + return r._billSource +} +// MidPatChannel Setter +// 若无特殊物联卡传入122 +func (r *AlibabaAliqinFcIotModbindAPIRequest) SetMidPatChannel(_midPatChannel string) error { + r._midPatChannel = _midPatChannel + r.Set("mid_pat_channel", _midPatChannel) + return nil +} + +// MidPatChannel Getter +func (r AlibabaAliqinFcIotModbindAPIRequest) GetMidPatChannel() string { + return r._midPatChannel +} diff --git a/model/aliqin/AlibabaAliqinFcIotModbindAPIResponse.go b/model/aliqin/AlibabaAliqinFcIotModbindAPIResponse.go new file mode 100644 index 0000000000..d2985a11ee --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotModbindAPIResponse.go @@ -0,0 +1,27 @@ +package aliqin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物联网绑定/换绑API API返回值 +alibaba.aliqin.fc.iot.modbind + +支持用户的设备的换绑和解绑操作 +*/ +type AlibabaAliqinFcIotModbindAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcIotModbindAPIResponseModel +} + +// 物联网绑定/换绑API 成功返回结果 +type AlibabaAliqinFcIotModbindAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_modbind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAliqinFcIotModbindResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliqin/AlibabaAliqinFcIotModbindResponse.go b/model/aliqin/AlibabaAliqinFcIotModbindResponse.go deleted file mode 100644 index 859eaf72db..0000000000 --- a/model/aliqin/AlibabaAliqinFcIotModbindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliqin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物联网绑定/换绑API API返回值 -alibaba.aliqin.fc.iot.modbind - -支持用户的设备的换绑和解绑操作 -*/ -type AlibabaAliqinFcIotModbindAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcIotModbindResponse -} - -// 物联网绑定/换绑API 成功返回结果 -type AlibabaAliqinFcIotModbindResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_modbind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAliqinFcIotModbindResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliqin/AlibabaAliqinFcIotQryPersoninfoAPIRequest.go b/model/aliqin/AlibabaAliqinFcIotQryPersoninfoAPIRequest.go new file mode 100644 index 0000000000..6e2a089890 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotQryPersoninfoAPIRequest.go @@ -0,0 +1,80 @@ +package aliqin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询物联卡个人实人认证信息 API请求 +alibaba.aliqin.fc.iot.qry.personinfo + +查询物联卡个人实人认证信息 +*/ +type AlibabaAliqinFcIotQryPersoninfoAPIRequest struct { + model.Params + // 需要查询的iccid + _iccid string + // 指定查询某userid + _userid string + // 由系统根据业务分配 + _midPatChannel string +} + +// 初始化AlibabaAliqinFcIotQryPersoninfoAPIRequest对象 +func NewAlibabaAliqinFcIotQryPersoninfoRequest() *AlibabaAliqinFcIotQryPersoninfoAPIRequest{ + return &AlibabaAliqinFcIotQryPersoninfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcIotQryPersoninfoAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.iot.qry.personinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcIotQryPersoninfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Iccid Setter +// 需要查询的iccid +func (r *AlibabaAliqinFcIotQryPersoninfoAPIRequest) SetIccid(_iccid string) error { + r._iccid = _iccid + r.Set("iccid", _iccid) + return nil +} + +// Iccid Getter +func (r AlibabaAliqinFcIotQryPersoninfoAPIRequest) GetIccid() string { + return r._iccid +} +// Userid Setter +// 指定查询某userid +func (r *AlibabaAliqinFcIotQryPersoninfoAPIRequest) SetUserid(_userid string) error { + r._userid = _userid + r.Set("userid", _userid) + return nil +} + +// Userid Getter +func (r AlibabaAliqinFcIotQryPersoninfoAPIRequest) GetUserid() string { + return r._userid +} +// MidPatChannel Setter +// 由系统根据业务分配 +func (r *AlibabaAliqinFcIotQryPersoninfoAPIRequest) SetMidPatChannel(_midPatChannel string) error { + r._midPatChannel = _midPatChannel + r.Set("mid_pat_channel", _midPatChannel) + return nil +} + +// MidPatChannel Getter +func (r AlibabaAliqinFcIotQryPersoninfoAPIRequest) GetMidPatChannel() string { + return r._midPatChannel +} diff --git a/model/aliqin/AlibabaAliqinFcIotQryPersoninfoAPIResponse.go b/model/aliqin/AlibabaAliqinFcIotQryPersoninfoAPIResponse.go new file mode 100644 index 0000000000..695785caf9 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotQryPersoninfoAPIResponse.go @@ -0,0 +1,27 @@ +package aliqin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询物联卡个人实人认证信息 API返回值 +alibaba.aliqin.fc.iot.qry.personinfo + +查询物联卡个人实人认证信息 +*/ +type AlibabaAliqinFcIotQryPersoninfoAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcIotQryPersoninfoAPIResponseModel +} + +// 查询物联卡个人实人认证信息 成功返回结果 +type AlibabaAliqinFcIotQryPersoninfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_qry_personinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAliqinFcIotQryPersoninfoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliqin/AlibabaAliqinFcIotQryPersoninfoResponse.go b/model/aliqin/AlibabaAliqinFcIotQryPersoninfoResponse.go deleted file mode 100644 index 41d9cdfac5..0000000000 --- a/model/aliqin/AlibabaAliqinFcIotQryPersoninfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliqin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询物联卡个人实人认证信息 API返回值 -alibaba.aliqin.fc.iot.qry.personinfo - -查询物联卡个人实人认证信息 -*/ -type AlibabaAliqinFcIotQryPersoninfoAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcIotQryPersoninfoResponse -} - -// 查询物联卡个人实人认证信息 成功返回结果 -type AlibabaAliqinFcIotQryPersoninfoResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_qry_personinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAliqinFcIotQryPersoninfoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliqin/AlibabaAliqinFcIotQrycardAPIRequest.go b/model/aliqin/AlibabaAliqinFcIotQrycardAPIRequest.go new file mode 100644 index 0000000000..5aa0a5d329 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotQrycardAPIRequest.go @@ -0,0 +1,80 @@ +package aliqin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询终端信息 API请求 +alibaba.aliqin.fc.iot.qrycard + +查询终端信息 +*/ +type AlibabaAliqinFcIotQrycardAPIRequest struct { + model.Params + // 外部计费来源 + _billSource string + // 外部计费号 + _billReal string + // ICCID + _iccid string +} + +// 初始化AlibabaAliqinFcIotQrycardAPIRequest对象 +func NewAlibabaAliqinFcIotQrycardRequest() *AlibabaAliqinFcIotQrycardAPIRequest{ + return &AlibabaAliqinFcIotQrycardAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcIotQrycardAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.iot.qrycard" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcIotQrycardAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillSource Setter +// 外部计费来源 +func (r *AlibabaAliqinFcIotQrycardAPIRequest) SetBillSource(_billSource string) error { + r._billSource = _billSource + r.Set("bill_source", _billSource) + return nil +} + +// BillSource Getter +func (r AlibabaAliqinFcIotQrycardAPIRequest) GetBillSource() string { + return r._billSource +} +// BillReal Setter +// 外部计费号 +func (r *AlibabaAliqinFcIotQrycardAPIRequest) SetBillReal(_billReal string) error { + r._billReal = _billReal + r.Set("bill_real", _billReal) + return nil +} + +// BillReal Getter +func (r AlibabaAliqinFcIotQrycardAPIRequest) GetBillReal() string { + return r._billReal +} +// Iccid Setter +// ICCID +func (r *AlibabaAliqinFcIotQrycardAPIRequest) SetIccid(_iccid string) error { + r._iccid = _iccid + r.Set("iccid", _iccid) + return nil +} + +// Iccid Getter +func (r AlibabaAliqinFcIotQrycardAPIRequest) GetIccid() string { + return r._iccid +} diff --git a/model/aliqin/AlibabaAliqinFcIotQrycardAPIResponse.go b/model/aliqin/AlibabaAliqinFcIotQrycardAPIResponse.go new file mode 100644 index 0000000000..3a4d5bb4aa --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotQrycardAPIResponse.go @@ -0,0 +1,27 @@ +package aliqin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询终端信息 API返回值 +alibaba.aliqin.fc.iot.qrycard + +查询终端信息 +*/ +type AlibabaAliqinFcIotQrycardAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcIotQrycardAPIResponseModel +} + +// 查询终端信息 成功返回结果 +type AlibabaAliqinFcIotQrycardAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_qrycard_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *AlibabaAliqinFcIotQrycardResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliqin/AlibabaAliqinFcIotQrycardResponse.go b/model/aliqin/AlibabaAliqinFcIotQrycardResponse.go deleted file mode 100644 index 46933ddcc8..0000000000 --- a/model/aliqin/AlibabaAliqinFcIotQrycardResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliqin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询终端信息 API返回值 -alibaba.aliqin.fc.iot.qrycard - -查询终端信息 -*/ -type AlibabaAliqinFcIotQrycardAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcIotQrycardResponse -} - -// 查询终端信息 成功返回结果 -type AlibabaAliqinFcIotQrycardResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_qrycard_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *AlibabaAliqinFcIotQrycardResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliqin/AlibabaAliqinFcIotRechargeCardAPIRequest.go b/model/aliqin/AlibabaAliqinFcIotRechargeCardAPIRequest.go new file mode 100644 index 0000000000..b763636823 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotRechargeCardAPIRequest.go @@ -0,0 +1,136 @@ +package aliqin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +按终端号订购增值业务 API请求 +alibaba.aliqin.fc.iot.rechargeCard + +按终端号订购增值业务 +*/ +type AlibabaAliqinFcIotRechargeCardAPIRequest struct { + model.Params + // 外部计费号类型:写‘ICCID’ + _billSource string + // iccid的值 + _billReal string + // 流量包offerId + _offerId string + // 外部id,用来做幂等 + _outRechargeId string + // ICCID + _iccid string + // 生效时间,1000,立即生效; AUTO_ORD,下周期自动续订 + _effCode string + // yyyy-MM-dd HH:mm:ss + _effTime string +} + +// 初始化AlibabaAliqinFcIotRechargeCardAPIRequest对象 +func NewAlibabaAliqinFcIotRechargeCardRequest() *AlibabaAliqinFcIotRechargeCardAPIRequest{ + return &AlibabaAliqinFcIotRechargeCardAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcIotRechargeCardAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.iot.rechargeCard" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcIotRechargeCardAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillSource Setter +// 外部计费号类型:写‘ICCID’ +func (r *AlibabaAliqinFcIotRechargeCardAPIRequest) SetBillSource(_billSource string) error { + r._billSource = _billSource + r.Set("bill_source", _billSource) + return nil +} + +// BillSource Getter +func (r AlibabaAliqinFcIotRechargeCardAPIRequest) GetBillSource() string { + return r._billSource +} +// BillReal Setter +// iccid的值 +func (r *AlibabaAliqinFcIotRechargeCardAPIRequest) SetBillReal(_billReal string) error { + r._billReal = _billReal + r.Set("bill_real", _billReal) + return nil +} + +// BillReal Getter +func (r AlibabaAliqinFcIotRechargeCardAPIRequest) GetBillReal() string { + return r._billReal +} +// OfferId Setter +// 流量包offerId +func (r *AlibabaAliqinFcIotRechargeCardAPIRequest) SetOfferId(_offerId string) error { + r._offerId = _offerId + r.Set("offer_id", _offerId) + return nil +} + +// OfferId Getter +func (r AlibabaAliqinFcIotRechargeCardAPIRequest) GetOfferId() string { + return r._offerId +} +// OutRechargeId Setter +// 外部id,用来做幂等 +func (r *AlibabaAliqinFcIotRechargeCardAPIRequest) SetOutRechargeId(_outRechargeId string) error { + r._outRechargeId = _outRechargeId + r.Set("out_recharge_id", _outRechargeId) + return nil +} + +// OutRechargeId Getter +func (r AlibabaAliqinFcIotRechargeCardAPIRequest) GetOutRechargeId() string { + return r._outRechargeId +} +// Iccid Setter +// ICCID +func (r *AlibabaAliqinFcIotRechargeCardAPIRequest) SetIccid(_iccid string) error { + r._iccid = _iccid + r.Set("iccid", _iccid) + return nil +} + +// Iccid Getter +func (r AlibabaAliqinFcIotRechargeCardAPIRequest) GetIccid() string { + return r._iccid +} +// EffCode Setter +// 生效时间,1000,立即生效; AUTO_ORD,下周期自动续订 +func (r *AlibabaAliqinFcIotRechargeCardAPIRequest) SetEffCode(_effCode string) error { + r._effCode = _effCode + r.Set("eff_code", _effCode) + return nil +} + +// EffCode Getter +func (r AlibabaAliqinFcIotRechargeCardAPIRequest) GetEffCode() string { + return r._effCode +} +// EffTime Setter +// yyyy-MM-dd HH:mm:ss +func (r *AlibabaAliqinFcIotRechargeCardAPIRequest) SetEffTime(_effTime string) error { + r._effTime = _effTime + r.Set("eff_time", _effTime) + return nil +} + +// EffTime Getter +func (r AlibabaAliqinFcIotRechargeCardAPIRequest) GetEffTime() string { + return r._effTime +} diff --git a/model/aliqin/AlibabaAliqinFcIotRechargeCardAPIResponse.go b/model/aliqin/AlibabaAliqinFcIotRechargeCardAPIResponse.go new file mode 100644 index 0000000000..23ac2af970 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotRechargeCardAPIResponse.go @@ -0,0 +1,27 @@ +package aliqin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +按终端号订购增值业务 API返回值 +alibaba.aliqin.fc.iot.rechargeCard + +按终端号订购增值业务 +*/ +type AlibabaAliqinFcIotRechargeCardAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcIotRechargeCardAPIResponseModel +} + +// 按终端号订购增值业务 成功返回结果 +type AlibabaAliqinFcIotRechargeCardAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_rechargeCard_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAliqinFcIotRechargeCardResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliqin/AlibabaAliqinFcIotRechargeCardResponse.go b/model/aliqin/AlibabaAliqinFcIotRechargeCardResponse.go deleted file mode 100644 index 553de273d6..0000000000 --- a/model/aliqin/AlibabaAliqinFcIotRechargeCardResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliqin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -按终端号订购增值业务 API返回值 -alibaba.aliqin.fc.iot.rechargeCard - -按终端号订购增值业务 -*/ -type AlibabaAliqinFcIotRechargeCardAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcIotRechargeCardResponse -} - -// 按终端号订购增值业务 成功返回结果 -type AlibabaAliqinFcIotRechargeCardResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_rechargeCard_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAliqinFcIotRechargeCardResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliqin/AlibabaAliqinFcIotSmsSendAPIRequest.go b/model/aliqin/AlibabaAliqinFcIotSmsSendAPIRequest.go new file mode 100644 index 0000000000..31c5a16b4b --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotSmsSendAPIRequest.go @@ -0,0 +1,108 @@ +package aliqin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物联网短信发送 API请求 +alibaba.aliqin.fc.iot.sms.send + +发送物联网短信,只允许使用物联网短信模板 +*/ +type AlibabaAliqinFcIotSmsSendAPIRequest struct { + model.Params + // 公共回传参数,在“消息返回”中会透传回该参数;举例:用户可以传入自己下级的会员ID,在消息返回时,该会员ID会包含在内,用户可以根据该会员ID识别是哪位会员使用了你的应用 + _extend string + // 短信类型,传入值请填写normal + _smsType string + // 短信模板变量,传参规则{"key":"value"},key的名字须和申请模板中的变量名一致,多个变量之间以逗号隔开。示例:针对模板“验证码${code},您正在进行${product}身份验证,打死不要告诉别人哦!”,传参时需传入{"code":"1234","product":"alidayu"} + _smsParam string + // 短信接收号码。 + _recNum string + // 短信模板ID,传入的模板必须是在阿里大于“管理中心-短信模板管理”中的可用模板。示例:SMS_585014 + _smsTemplateCode string +} + +// 初始化AlibabaAliqinFcIotSmsSendAPIRequest对象 +func NewAlibabaAliqinFcIotSmsSendRequest() *AlibabaAliqinFcIotSmsSendAPIRequest{ + return &AlibabaAliqinFcIotSmsSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcIotSmsSendAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.iot.sms.send" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcIotSmsSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Extend Setter +// 公共回传参数,在“消息返回”中会透传回该参数;举例:用户可以传入自己下级的会员ID,在消息返回时,该会员ID会包含在内,用户可以根据该会员ID识别是哪位会员使用了你的应用 +func (r *AlibabaAliqinFcIotSmsSendAPIRequest) SetExtend(_extend string) error { + r._extend = _extend + r.Set("extend", _extend) + return nil +} + +// Extend Getter +func (r AlibabaAliqinFcIotSmsSendAPIRequest) GetExtend() string { + return r._extend +} +// SmsType Setter +// 短信类型,传入值请填写normal +func (r *AlibabaAliqinFcIotSmsSendAPIRequest) SetSmsType(_smsType string) error { + r._smsType = _smsType + r.Set("sms_type", _smsType) + return nil +} + +// SmsType Getter +func (r AlibabaAliqinFcIotSmsSendAPIRequest) GetSmsType() string { + return r._smsType +} +// SmsParam Setter +// 短信模板变量,传参规则{"key":"value"},key的名字须和申请模板中的变量名一致,多个变量之间以逗号隔开。示例:针对模板“验证码${code},您正在进行${product}身份验证,打死不要告诉别人哦!”,传参时需传入{"code":"1234","product":"alidayu"} +func (r *AlibabaAliqinFcIotSmsSendAPIRequest) SetSmsParam(_smsParam string) error { + r._smsParam = _smsParam + r.Set("sms_param", _smsParam) + return nil +} + +// SmsParam Getter +func (r AlibabaAliqinFcIotSmsSendAPIRequest) GetSmsParam() string { + return r._smsParam +} +// RecNum Setter +// 短信接收号码。 +func (r *AlibabaAliqinFcIotSmsSendAPIRequest) SetRecNum(_recNum string) error { + r._recNum = _recNum + r.Set("rec_num", _recNum) + return nil +} + +// RecNum Getter +func (r AlibabaAliqinFcIotSmsSendAPIRequest) GetRecNum() string { + return r._recNum +} +// SmsTemplateCode Setter +// 短信模板ID,传入的模板必须是在阿里大于“管理中心-短信模板管理”中的可用模板。示例:SMS_585014 +func (r *AlibabaAliqinFcIotSmsSendAPIRequest) SetSmsTemplateCode(_smsTemplateCode string) error { + r._smsTemplateCode = _smsTemplateCode + r.Set("sms_template_code", _smsTemplateCode) + return nil +} + +// SmsTemplateCode Getter +func (r AlibabaAliqinFcIotSmsSendAPIRequest) GetSmsTemplateCode() string { + return r._smsTemplateCode +} diff --git a/model/aliqin/AlibabaAliqinFcIotSmsSendAPIResponse.go b/model/aliqin/AlibabaAliqinFcIotSmsSendAPIResponse.go new file mode 100644 index 0000000000..05303a9ba2 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotSmsSendAPIResponse.go @@ -0,0 +1,27 @@ +package aliqin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物联网短信发送 API返回值 +alibaba.aliqin.fc.iot.sms.send + +发送物联网短信,只允许使用物联网短信模板 +*/ +type AlibabaAliqinFcIotSmsSendAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcIotSmsSendAPIResponseModel +} + +// 物联网短信发送 成功返回结果 +type AlibabaAliqinFcIotSmsSendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_sms_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *AlibabaAliqinFcIotSmsSendBizResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliqin/AlibabaAliqinFcIotSmsSendResponse.go b/model/aliqin/AlibabaAliqinFcIotSmsSendResponse.go deleted file mode 100644 index 8fa9787612..0000000000 --- a/model/aliqin/AlibabaAliqinFcIotSmsSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliqin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物联网短信发送 API返回值 -alibaba.aliqin.fc.iot.sms.send - -发送物联网短信,只允许使用物联网短信模板 -*/ -type AlibabaAliqinFcIotSmsSendAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcIotSmsSendResponse -} - -// 物联网短信发送 成功返回结果 -type AlibabaAliqinFcIotSmsSendResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_sms_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *AlibabaAliqinFcIotSmsSendBizResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliqin/AlibabaAliqinFcIotUseroscontrolAPIRequest.go b/model/aliqin/AlibabaAliqinFcIotUseroscontrolAPIRequest.go new file mode 100644 index 0000000000..5099149640 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotUseroscontrolAPIRequest.go @@ -0,0 +1,66 @@ +package aliqin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物联卡用户管理停开机功能 API请求 +alibaba.aliqin.fc.iot.useroscontrol + +物联网针对用户级管理停开支持 +*/ +type AlibabaAliqinFcIotUseroscontrolAPIRequest struct { + model.Params + // 物联卡的iccid + _iccid string + // 用户停开的操作类型:MANAGE_RESUME、MANAGE_STOP + _action string +} + +// 初始化AlibabaAliqinFcIotUseroscontrolAPIRequest对象 +func NewAlibabaAliqinFcIotUseroscontrolRequest() *AlibabaAliqinFcIotUseroscontrolAPIRequest{ + return &AlibabaAliqinFcIotUseroscontrolAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcIotUseroscontrolAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.iot.useroscontrol" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcIotUseroscontrolAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Iccid Setter +// 物联卡的iccid +func (r *AlibabaAliqinFcIotUseroscontrolAPIRequest) SetIccid(_iccid string) error { + r._iccid = _iccid + r.Set("iccid", _iccid) + return nil +} + +// Iccid Getter +func (r AlibabaAliqinFcIotUseroscontrolAPIRequest) GetIccid() string { + return r._iccid +} +// Action Setter +// 用户停开的操作类型:MANAGE_RESUME、MANAGE_STOP +func (r *AlibabaAliqinFcIotUseroscontrolAPIRequest) SetAction(_action string) error { + r._action = _action + r.Set("action", _action) + return nil +} + +// Action Getter +func (r AlibabaAliqinFcIotUseroscontrolAPIRequest) GetAction() string { + return r._action +} diff --git a/model/aliqin/AlibabaAliqinFcIotUseroscontrolAPIResponse.go b/model/aliqin/AlibabaAliqinFcIotUseroscontrolAPIResponse.go new file mode 100644 index 0000000000..b6df64dc2e --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIotUseroscontrolAPIResponse.go @@ -0,0 +1,27 @@ +package aliqin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物联卡用户管理停开机功能 API返回值 +alibaba.aliqin.fc.iot.useroscontrol + +物联网针对用户级管理停开支持 +*/ +type AlibabaAliqinFcIotUseroscontrolAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcIotUseroscontrolAPIResponseModel +} + +// 物联卡用户管理停开机功能 成功返回结果 +type AlibabaAliqinFcIotUseroscontrolAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_useroscontrol_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAliqinFcIotUseroscontrolResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliqin/AlibabaAliqinFcIotUseroscontrolResponse.go b/model/aliqin/AlibabaAliqinFcIotUseroscontrolResponse.go deleted file mode 100644 index 3383971b3a..0000000000 --- a/model/aliqin/AlibabaAliqinFcIotUseroscontrolResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliqin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物联卡用户管理停开机功能 API返回值 -alibaba.aliqin.fc.iot.useroscontrol - -物联网针对用户级管理停开支持 -*/ -type AlibabaAliqinFcIotUseroscontrolAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcIotUseroscontrolResponse -} - -// 物联卡用户管理停开机功能 成功返回结果 -type AlibabaAliqinFcIotUseroscontrolResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_iot_useroscontrol_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAliqinFcIotUseroscontrolResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliqin/AlibabaAliqinFcIvrNumCallAPIRequest.go b/model/aliqin/AlibabaAliqinFcIvrNumCallAPIRequest.go new file mode 100644 index 0000000000..da2d867394 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIvrNumCallAPIRequest.go @@ -0,0 +1,192 @@ +package aliqin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ivr呼叫 API请求 +alibaba.aliqin.fc.ivr.num.call + +ivr呼叫 +*/ +type AlibabaAliqinFcIvrNumCallAPIRequest struct { + model.Params + // 被叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500 + _calledNumber string + // 被叫号码侧的号码显示,传入的显示号码可以是阿里大鱼“管理中心-号码管理”中申请通过的号码。显示号码格式如下057188773344,4001112222,95500。显示号码也可以为主叫号码。 + _calledShowNumber string + // 可选值:tts或voice。 + _useTts string + // 当值为tts时,menu_codet填写tts模板;当值为voice时,menu_code填写语音模板编码 + _menuCode string + // 通话超时时长,如接通后到达120秒时,通话会因为超时自动挂断。若无需设置超时时长,可不传。 + _sessionTimeOut string + // 公共回传参数,在消息中带回 + _extend string + // 结束语编码,当use_tts=voice时,该字段填写语音文件编码,当use_tts=tts时,该字段填写tts模板编码 + _byeCode string + // 当use_tts=tts时,该字段可填写tts模板变量参数 + _menuArgs string + // 播放次数 + _playTimes int64 + // 按键映射事件 + _params string + // 人工服务号码 + _serviceNumber string +} + +// 初始化AlibabaAliqinFcIvrNumCallAPIRequest对象 +func NewAlibabaAliqinFcIvrNumCallRequest() *AlibabaAliqinFcIvrNumCallAPIRequest{ + return &AlibabaAliqinFcIvrNumCallAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcIvrNumCallAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.ivr.num.call" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcIvrNumCallAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CalledNumber Setter +// 被叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500 +func (r *AlibabaAliqinFcIvrNumCallAPIRequest) SetCalledNumber(_calledNumber string) error { + r._calledNumber = _calledNumber + r.Set("called_number", _calledNumber) + return nil +} + +// CalledNumber Getter +func (r AlibabaAliqinFcIvrNumCallAPIRequest) GetCalledNumber() string { + return r._calledNumber +} +// CalledShowNumber Setter +// 被叫号码侧的号码显示,传入的显示号码可以是阿里大鱼“管理中心-号码管理”中申请通过的号码。显示号码格式如下057188773344,4001112222,95500。显示号码也可以为主叫号码。 +func (r *AlibabaAliqinFcIvrNumCallAPIRequest) SetCalledShowNumber(_calledShowNumber string) error { + r._calledShowNumber = _calledShowNumber + r.Set("called_show_number", _calledShowNumber) + return nil +} + +// CalledShowNumber Getter +func (r AlibabaAliqinFcIvrNumCallAPIRequest) GetCalledShowNumber() string { + return r._calledShowNumber +} +// UseTts Setter +// 可选值:tts或voice。 +func (r *AlibabaAliqinFcIvrNumCallAPIRequest) SetUseTts(_useTts string) error { + r._useTts = _useTts + r.Set("use_tts", _useTts) + return nil +} + +// UseTts Getter +func (r AlibabaAliqinFcIvrNumCallAPIRequest) GetUseTts() string { + return r._useTts +} +// MenuCode Setter +// 当值为tts时,menu_codet填写tts模板;当值为voice时,menu_code填写语音模板编码 +func (r *AlibabaAliqinFcIvrNumCallAPIRequest) SetMenuCode(_menuCode string) error { + r._menuCode = _menuCode + r.Set("menu_code", _menuCode) + return nil +} + +// MenuCode Getter +func (r AlibabaAliqinFcIvrNumCallAPIRequest) GetMenuCode() string { + return r._menuCode +} +// SessionTimeOut Setter +// 通话超时时长,如接通后到达120秒时,通话会因为超时自动挂断。若无需设置超时时长,可不传。 +func (r *AlibabaAliqinFcIvrNumCallAPIRequest) SetSessionTimeOut(_sessionTimeOut string) error { + r._sessionTimeOut = _sessionTimeOut + r.Set("session_time_out", _sessionTimeOut) + return nil +} + +// SessionTimeOut Getter +func (r AlibabaAliqinFcIvrNumCallAPIRequest) GetSessionTimeOut() string { + return r._sessionTimeOut +} +// Extend Setter +// 公共回传参数,在消息中带回 +func (r *AlibabaAliqinFcIvrNumCallAPIRequest) SetExtend(_extend string) error { + r._extend = _extend + r.Set("extend", _extend) + return nil +} + +// Extend Getter +func (r AlibabaAliqinFcIvrNumCallAPIRequest) GetExtend() string { + return r._extend +} +// ByeCode Setter +// 结束语编码,当use_tts=voice时,该字段填写语音文件编码,当use_tts=tts时,该字段填写tts模板编码 +func (r *AlibabaAliqinFcIvrNumCallAPIRequest) SetByeCode(_byeCode string) error { + r._byeCode = _byeCode + r.Set("bye_code", _byeCode) + return nil +} + +// ByeCode Getter +func (r AlibabaAliqinFcIvrNumCallAPIRequest) GetByeCode() string { + return r._byeCode +} +// MenuArgs Setter +// 当use_tts=tts时,该字段可填写tts模板变量参数 +func (r *AlibabaAliqinFcIvrNumCallAPIRequest) SetMenuArgs(_menuArgs string) error { + r._menuArgs = _menuArgs + r.Set("menu_args", _menuArgs) + return nil +} + +// MenuArgs Getter +func (r AlibabaAliqinFcIvrNumCallAPIRequest) GetMenuArgs() string { + return r._menuArgs +} +// PlayTimes Setter +// 播放次数 +func (r *AlibabaAliqinFcIvrNumCallAPIRequest) SetPlayTimes(_playTimes int64) error { + r._playTimes = _playTimes + r.Set("play_times", _playTimes) + return nil +} + +// PlayTimes Getter +func (r AlibabaAliqinFcIvrNumCallAPIRequest) GetPlayTimes() int64 { + return r._playTimes +} +// Params Setter +// 按键映射事件 +func (r *AlibabaAliqinFcIvrNumCallAPIRequest) SetParams(_params string) error { + r._params = _params + r.Set("params", _params) + return nil +} + +// Params Getter +func (r AlibabaAliqinFcIvrNumCallAPIRequest) GetParams() string { + return r._params +} +// ServiceNumber Setter +// 人工服务号码 +func (r *AlibabaAliqinFcIvrNumCallAPIRequest) SetServiceNumber(_serviceNumber string) error { + r._serviceNumber = _serviceNumber + r.Set("service_number", _serviceNumber) + return nil +} + +// ServiceNumber Getter +func (r AlibabaAliqinFcIvrNumCallAPIRequest) GetServiceNumber() string { + return r._serviceNumber +} diff --git a/model/aliqin/AlibabaAliqinFcIvrNumCallAPIResponse.go b/model/aliqin/AlibabaAliqinFcIvrNumCallAPIResponse.go new file mode 100644 index 0000000000..650b944efe --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcIvrNumCallAPIResponse.go @@ -0,0 +1,27 @@ +package aliqin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ivr呼叫 API返回值 +alibaba.aliqin.fc.ivr.num.call + +ivr呼叫 +*/ +type AlibabaAliqinFcIvrNumCallAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcIvrNumCallAPIResponseModel +} + +// ivr呼叫 成功返回结果 +type AlibabaAliqinFcIvrNumCallAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_ivr_num_call_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAliqinFcIvrNumCallResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliqin/AlibabaAliqinFcIvrNumCallResponse.go b/model/aliqin/AlibabaAliqinFcIvrNumCallResponse.go deleted file mode 100644 index aaa46241fb..0000000000 --- a/model/aliqin/AlibabaAliqinFcIvrNumCallResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliqin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ivr呼叫 API返回值 -alibaba.aliqin.fc.ivr.num.call - -ivr呼叫 -*/ -type AlibabaAliqinFcIvrNumCallAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcIvrNumCallResponse -} - -// ivr呼叫 成功返回结果 -type AlibabaAliqinFcIvrNumCallResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_ivr_num_call_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAliqinFcIvrNumCallResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliqin/AlibabaAliqinFcSmsNumQueryAPIRequest.go b/model/aliqin/AlibabaAliqinFcSmsNumQueryAPIRequest.go new file mode 100644 index 0000000000..b9ea63a40e --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcSmsNumQueryAPIRequest.go @@ -0,0 +1,108 @@ +package aliqin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +短信发送记录查询 API请求 +alibaba.aliqin.fc.sms.num.query + +短信发送记录查询。 +*/ +type AlibabaAliqinFcSmsNumQueryAPIRequest struct { + model.Params + // 短信发送流水 + _bizId string + // 短信接收号码 + _recNum string + // 短信发送日期,支持近30天记录查询,格式yyyyMMdd + _queryDate string + // 分页参数,页码 + _currentPage int64 + // 分页参数,每页数量。最大值50 + _pageSize int64 +} + +// 初始化AlibabaAliqinFcSmsNumQueryAPIRequest对象 +func NewAlibabaAliqinFcSmsNumQueryRequest() *AlibabaAliqinFcSmsNumQueryAPIRequest{ + return &AlibabaAliqinFcSmsNumQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcSmsNumQueryAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.sms.num.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcSmsNumQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizId Setter +// 短信发送流水 +func (r *AlibabaAliqinFcSmsNumQueryAPIRequest) SetBizId(_bizId string) error { + r._bizId = _bizId + r.Set("biz_id", _bizId) + return nil +} + +// BizId Getter +func (r AlibabaAliqinFcSmsNumQueryAPIRequest) GetBizId() string { + return r._bizId +} +// RecNum Setter +// 短信接收号码 +func (r *AlibabaAliqinFcSmsNumQueryAPIRequest) SetRecNum(_recNum string) error { + r._recNum = _recNum + r.Set("rec_num", _recNum) + return nil +} + +// RecNum Getter +func (r AlibabaAliqinFcSmsNumQueryAPIRequest) GetRecNum() string { + return r._recNum +} +// QueryDate Setter +// 短信发送日期,支持近30天记录查询,格式yyyyMMdd +func (r *AlibabaAliqinFcSmsNumQueryAPIRequest) SetQueryDate(_queryDate string) error { + r._queryDate = _queryDate + r.Set("query_date", _queryDate) + return nil +} + +// QueryDate Getter +func (r AlibabaAliqinFcSmsNumQueryAPIRequest) GetQueryDate() string { + return r._queryDate +} +// CurrentPage Setter +// 分页参数,页码 +func (r *AlibabaAliqinFcSmsNumQueryAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AlibabaAliqinFcSmsNumQueryAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// PageSize Setter +// 分页参数,每页数量。最大值50 +func (r *AlibabaAliqinFcSmsNumQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAliqinFcSmsNumQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/aliqin/AlibabaAliqinFcSmsNumQueryAPIResponse.go b/model/aliqin/AlibabaAliqinFcSmsNumQueryAPIResponse.go new file mode 100644 index 0000000000..fe6a976634 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcSmsNumQueryAPIResponse.go @@ -0,0 +1,35 @@ +package aliqin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +短信发送记录查询 API返回值 +alibaba.aliqin.fc.sms.num.query + +短信发送记录查询。 +*/ +type AlibabaAliqinFcSmsNumQueryAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcSmsNumQueryAPIResponseModel +} + +// 短信发送记录查询 成功返回结果 +type AlibabaAliqinFcSmsNumQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_sms_num_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 当前页码 + CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"` + // 每页数量 + PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` + // 总量 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 总页数 + TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` + // 1 + Values []FcPartnerSmsDetailDto `json:"values,omitempty" xml:"values>fc_partner_sms_detail_dto,omitempty"` +} diff --git a/model/aliqin/AlibabaAliqinFcSmsNumQueryResponse.go b/model/aliqin/AlibabaAliqinFcSmsNumQueryResponse.go deleted file mode 100644 index 0ea4b8b73c..0000000000 --- a/model/aliqin/AlibabaAliqinFcSmsNumQueryResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package aliqin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -短信发送记录查询 API返回值 -alibaba.aliqin.fc.sms.num.query - -短信发送记录查询。 -*/ -type AlibabaAliqinFcSmsNumQueryAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcSmsNumQueryResponse -} - -// 短信发送记录查询 成功返回结果 -type AlibabaAliqinFcSmsNumQueryResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_sms_num_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 当前页码 - CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"` - // 每页数量 - PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` - // 总量 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 总页数 - TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` - // 1 - Values []FcPartnerSmsDetailDto `json:"values,omitempty" xml:"values>fc_partner_sms_detail_dto,omitempty"` -} diff --git a/model/aliqin/AlibabaAliqinFcSmsNumSendAPIRequest.go b/model/aliqin/AlibabaAliqinFcSmsNumSendAPIRequest.go new file mode 100644 index 0000000000..00941437a0 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcSmsNumSendAPIRequest.go @@ -0,0 +1,123 @@ +package aliqin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +短信发送 API请求 +alibaba.aliqin.fc.sms.num.send + +向指定手机号码发送模板短信,模板内可设置部分变量。使用前需要在阿里大于管理中心添加短信签名与短信模板。测试时请直接使用正式环境HTTP请求地址。 +【重要】批量发送(一次传递多个号码eg:1381111111,1382222222)会产生相应的延迟,触达时间要求高的建议单条发送 +*/ +type AlibabaAliqinFcSmsNumSendAPIRequest struct { + model.Params + // 公共回传参数,在“消息返回”中会透传回该参数;举例:用户可以传入自己下级的会员ID,在消息返回时,该会员ID会包含在内,用户可以根据该会员ID识别是哪位会员使用了你的应用 + _extend string + // 短信类型,传入值请填写normal + _smsType string + // 短信签名,传入的短信签名必须是在阿里大于“管理中心-验证码/短信通知/推广短信-配置短信签名”中的可用签名。如“阿里大于”已在短信签名管理中通过审核,则可传入”阿里大于“(传参时去掉引号)作为短信签名。短信效果示例:【阿里大于】欢迎使用阿里大于服务。 + _smsFreeSignName string + // 短信模板变量,传参规则{"key":"value"},key的名字须和申请模板中的变量名一致,多个变量之间以逗号隔开。示例:针对模板“验证码${code},您正在进行${product}身份验证,打死不要告诉别人哦!”,传参时需传入{"code":"1234","product":"alidayu"} + _smsParam string + // 短信接收号码。支持单个或多个手机号码,传入号码为11位手机号码,不能加0或+86。群发短信需传入多个号码,以英文逗号分隔,一次调用最多传入200个号码。示例:18600000000,13911111111,13322222222 + _recNum string + // 短信模板ID,传入的模板必须是在阿里大于“管理中心-短信模板管理”中的可用模板。示例:SMS_585014 + _smsTemplateCode string +} + +// 初始化AlibabaAliqinFcSmsNumSendAPIRequest对象 +func NewAlibabaAliqinFcSmsNumSendRequest() *AlibabaAliqinFcSmsNumSendAPIRequest{ + return &AlibabaAliqinFcSmsNumSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcSmsNumSendAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.sms.num.send" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcSmsNumSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Extend Setter +// 公共回传参数,在“消息返回”中会透传回该参数;举例:用户可以传入自己下级的会员ID,在消息返回时,该会员ID会包含在内,用户可以根据该会员ID识别是哪位会员使用了你的应用 +func (r *AlibabaAliqinFcSmsNumSendAPIRequest) SetExtend(_extend string) error { + r._extend = _extend + r.Set("extend", _extend) + return nil +} + +// Extend Getter +func (r AlibabaAliqinFcSmsNumSendAPIRequest) GetExtend() string { + return r._extend +} +// SmsType Setter +// 短信类型,传入值请填写normal +func (r *AlibabaAliqinFcSmsNumSendAPIRequest) SetSmsType(_smsType string) error { + r._smsType = _smsType + r.Set("sms_type", _smsType) + return nil +} + +// SmsType Getter +func (r AlibabaAliqinFcSmsNumSendAPIRequest) GetSmsType() string { + return r._smsType +} +// SmsFreeSignName Setter +// 短信签名,传入的短信签名必须是在阿里大于“管理中心-验证码/短信通知/推广短信-配置短信签名”中的可用签名。如“阿里大于”已在短信签名管理中通过审核,则可传入”阿里大于“(传参时去掉引号)作为短信签名。短信效果示例:【阿里大于】欢迎使用阿里大于服务。 +func (r *AlibabaAliqinFcSmsNumSendAPIRequest) SetSmsFreeSignName(_smsFreeSignName string) error { + r._smsFreeSignName = _smsFreeSignName + r.Set("sms_free_sign_name", _smsFreeSignName) + return nil +} + +// SmsFreeSignName Getter +func (r AlibabaAliqinFcSmsNumSendAPIRequest) GetSmsFreeSignName() string { + return r._smsFreeSignName +} +// SmsParam Setter +// 短信模板变量,传参规则{"key":"value"},key的名字须和申请模板中的变量名一致,多个变量之间以逗号隔开。示例:针对模板“验证码${code},您正在进行${product}身份验证,打死不要告诉别人哦!”,传参时需传入{"code":"1234","product":"alidayu"} +func (r *AlibabaAliqinFcSmsNumSendAPIRequest) SetSmsParam(_smsParam string) error { + r._smsParam = _smsParam + r.Set("sms_param", _smsParam) + return nil +} + +// SmsParam Getter +func (r AlibabaAliqinFcSmsNumSendAPIRequest) GetSmsParam() string { + return r._smsParam +} +// RecNum Setter +// 短信接收号码。支持单个或多个手机号码,传入号码为11位手机号码,不能加0或+86。群发短信需传入多个号码,以英文逗号分隔,一次调用最多传入200个号码。示例:18600000000,13911111111,13322222222 +func (r *AlibabaAliqinFcSmsNumSendAPIRequest) SetRecNum(_recNum string) error { + r._recNum = _recNum + r.Set("rec_num", _recNum) + return nil +} + +// RecNum Getter +func (r AlibabaAliqinFcSmsNumSendAPIRequest) GetRecNum() string { + return r._recNum +} +// SmsTemplateCode Setter +// 短信模板ID,传入的模板必须是在阿里大于“管理中心-短信模板管理”中的可用模板。示例:SMS_585014 +func (r *AlibabaAliqinFcSmsNumSendAPIRequest) SetSmsTemplateCode(_smsTemplateCode string) error { + r._smsTemplateCode = _smsTemplateCode + r.Set("sms_template_code", _smsTemplateCode) + return nil +} + +// SmsTemplateCode Getter +func (r AlibabaAliqinFcSmsNumSendAPIRequest) GetSmsTemplateCode() string { + return r._smsTemplateCode +} diff --git a/model/aliqin/AlibabaAliqinFcSmsNumSendAPIResponse.go b/model/aliqin/AlibabaAliqinFcSmsNumSendAPIResponse.go new file mode 100644 index 0000000000..7773bca4e4 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcSmsNumSendAPIResponse.go @@ -0,0 +1,28 @@ +package aliqin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +短信发送 API返回值 +alibaba.aliqin.fc.sms.num.send + +向指定手机号码发送模板短信,模板内可设置部分变量。使用前需要在阿里大于管理中心添加短信签名与短信模板。测试时请直接使用正式环境HTTP请求地址。 +【重要】批量发送(一次传递多个号码eg:1381111111,1382222222)会产生相应的延迟,触达时间要求高的建议单条发送 +*/ +type AlibabaAliqinFcSmsNumSendAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcSmsNumSendAPIResponseModel +} + +// 短信发送 成功返回结果 +type AlibabaAliqinFcSmsNumSendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_sms_num_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *AlibabaAliqinFcSmsNumSendBizResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliqin/AlibabaAliqinFcSmsNumSendResponse.go b/model/aliqin/AlibabaAliqinFcSmsNumSendResponse.go deleted file mode 100644 index a2683f50fb..0000000000 --- a/model/aliqin/AlibabaAliqinFcSmsNumSendResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package aliqin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -短信发送 API返回值 -alibaba.aliqin.fc.sms.num.send - -向指定手机号码发送模板短信,模板内可设置部分变量。使用前需要在阿里大于管理中心添加短信签名与短信模板。测试时请直接使用正式环境HTTP请求地址。 -【重要】批量发送(一次传递多个号码eg:1381111111,1382222222)会产生相应的延迟,触达时间要求高的建议单条发送 -*/ -type AlibabaAliqinFcSmsNumSendAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcSmsNumSendResponse -} - -// 短信发送 成功返回结果 -type AlibabaAliqinFcSmsNumSendResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_sms_num_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *AlibabaAliqinFcSmsNumSendBizResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliqin/AlibabaAliqinFcTtsNumSinglecallAPIRequest.go b/model/aliqin/AlibabaAliqinFcTtsNumSinglecallAPIRequest.go new file mode 100644 index 0000000000..290bc7ca4b --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcTtsNumSinglecallAPIRequest.go @@ -0,0 +1,108 @@ +package aliqin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +文本转语音通知 API请求 +alibaba.aliqin.fc.tts.num.singlecall + +向指定手机号码发起单向呼叫,将文本模板内容转化为语音播放给被叫方。使用前需要在阿里大于管理中心添加去电显示号码与文本转语音模板。 +*/ +type AlibabaAliqinFcTtsNumSinglecallAPIRequest struct { + model.Params + // 公共回传参数,在“消息返回”中会透传回该参数;举例:用户可以传入自己下级的会员ID,在消息返回时,该会员ID会包含在内,用户可以根据该会员ID识别是哪位会员使用了你的应用 + _extend string + // 文本转语音(TTS)模板变量,传参规则{"key":"value"},key的名字须和TTS模板中的变量名一致,多个变量之间以逗号隔开,示例:{"name":"xiaoming","code":"1234"} + _ttsParam string + // 被叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500 + _calledNum string + // 被叫号显,传入的显示号码必须是阿里大于“管理中心-号码管理”中申请或购买的号码 + _calledShowNum string + // TTS模板ID,传入的模板必须是在阿里大于“管理中心-语音TTS模板管理”中的可用模板 + _ttsCode string +} + +// 初始化AlibabaAliqinFcTtsNumSinglecallAPIRequest对象 +func NewAlibabaAliqinFcTtsNumSinglecallRequest() *AlibabaAliqinFcTtsNumSinglecallAPIRequest{ + return &AlibabaAliqinFcTtsNumSinglecallAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcTtsNumSinglecallAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.tts.num.singlecall" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcTtsNumSinglecallAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Extend Setter +// 公共回传参数,在“消息返回”中会透传回该参数;举例:用户可以传入自己下级的会员ID,在消息返回时,该会员ID会包含在内,用户可以根据该会员ID识别是哪位会员使用了你的应用 +func (r *AlibabaAliqinFcTtsNumSinglecallAPIRequest) SetExtend(_extend string) error { + r._extend = _extend + r.Set("extend", _extend) + return nil +} + +// Extend Getter +func (r AlibabaAliqinFcTtsNumSinglecallAPIRequest) GetExtend() string { + return r._extend +} +// TtsParam Setter +// 文本转语音(TTS)模板变量,传参规则{"key":"value"},key的名字须和TTS模板中的变量名一致,多个变量之间以逗号隔开,示例:{"name":"xiaoming","code":"1234"} +func (r *AlibabaAliqinFcTtsNumSinglecallAPIRequest) SetTtsParam(_ttsParam string) error { + r._ttsParam = _ttsParam + r.Set("tts_param", _ttsParam) + return nil +} + +// TtsParam Getter +func (r AlibabaAliqinFcTtsNumSinglecallAPIRequest) GetTtsParam() string { + return r._ttsParam +} +// CalledNum Setter +// 被叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500 +func (r *AlibabaAliqinFcTtsNumSinglecallAPIRequest) SetCalledNum(_calledNum string) error { + r._calledNum = _calledNum + r.Set("called_num", _calledNum) + return nil +} + +// CalledNum Getter +func (r AlibabaAliqinFcTtsNumSinglecallAPIRequest) GetCalledNum() string { + return r._calledNum +} +// CalledShowNum Setter +// 被叫号显,传入的显示号码必须是阿里大于“管理中心-号码管理”中申请或购买的号码 +func (r *AlibabaAliqinFcTtsNumSinglecallAPIRequest) SetCalledShowNum(_calledShowNum string) error { + r._calledShowNum = _calledShowNum + r.Set("called_show_num", _calledShowNum) + return nil +} + +// CalledShowNum Getter +func (r AlibabaAliqinFcTtsNumSinglecallAPIRequest) GetCalledShowNum() string { + return r._calledShowNum +} +// TtsCode Setter +// TTS模板ID,传入的模板必须是在阿里大于“管理中心-语音TTS模板管理”中的可用模板 +func (r *AlibabaAliqinFcTtsNumSinglecallAPIRequest) SetTtsCode(_ttsCode string) error { + r._ttsCode = _ttsCode + r.Set("tts_code", _ttsCode) + return nil +} + +// TtsCode Getter +func (r AlibabaAliqinFcTtsNumSinglecallAPIRequest) GetTtsCode() string { + return r._ttsCode +} diff --git a/model/aliqin/AlibabaAliqinFcTtsNumSinglecallAPIResponse.go b/model/aliqin/AlibabaAliqinFcTtsNumSinglecallAPIResponse.go new file mode 100644 index 0000000000..e13a96ec60 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcTtsNumSinglecallAPIResponse.go @@ -0,0 +1,27 @@ +package aliqin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +文本转语音通知 API返回值 +alibaba.aliqin.fc.tts.num.singlecall + +向指定手机号码发起单向呼叫,将文本模板内容转化为语音播放给被叫方。使用前需要在阿里大于管理中心添加去电显示号码与文本转语音模板。 +*/ +type AlibabaAliqinFcTtsNumSinglecallAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcTtsNumSinglecallAPIResponseModel +} + +// 文本转语音通知 成功返回结果 +type AlibabaAliqinFcTtsNumSinglecallAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_tts_num_singlecall_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回参数 + Result *AlibabaAliqinFcTtsNumSinglecallBizResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliqin/AlibabaAliqinFcTtsNumSinglecallResponse.go b/model/aliqin/AlibabaAliqinFcTtsNumSinglecallResponse.go deleted file mode 100644 index df758c196b..0000000000 --- a/model/aliqin/AlibabaAliqinFcTtsNumSinglecallResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliqin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -文本转语音通知 API返回值 -alibaba.aliqin.fc.tts.num.singlecall - -向指定手机号码发起单向呼叫,将文本模板内容转化为语音播放给被叫方。使用前需要在阿里大于管理中心添加去电显示号码与文本转语音模板。 -*/ -type AlibabaAliqinFcTtsNumSinglecallAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcTtsNumSinglecallResponse -} - -// 文本转语音通知 成功返回结果 -type AlibabaAliqinFcTtsNumSinglecallResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_tts_num_singlecall_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回参数 - Result *AlibabaAliqinFcTtsNumSinglecallBizResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliqin/AlibabaAliqinFcVoiceNumDoublecallAPIRequest.go b/model/aliqin/AlibabaAliqinFcVoiceNumDoublecallAPIRequest.go new file mode 100644 index 0000000000..c73f344971 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcVoiceNumDoublecallAPIRequest.go @@ -0,0 +1,122 @@ +package aliqin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +多方通话 API请求 +alibaba.aliqin.fc.voice.num.doublecall + +根据传入的主叫号码与被叫号码,由系统依次向主叫号码与被叫号码发起呼叫,双方都应答后,开始一对一通话并开始计费。使用前需要在阿里大于管理中心添加呼叫双方的显示号码。 +*/ +type AlibabaAliqinFcVoiceNumDoublecallAPIRequest struct { + model.Params + // 通话超时时长,如接通后到达120秒时,通话会因为超时自动挂断。若无需设置超时时长,可不传。 + _sessionTimeOut string + // 公共回传参数,在“消息返回”中会透传回该参数;举例:用户可以传入自己下级的会员ID,在消息返回时,该会员ID会包含在内,用户可以根据该会员ID识别是哪位会员使用了你的应用 + _extend string + // 主叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500 + _callerNum string + // 主叫号码侧的号码显示,传入的显示号码必须是阿里大于“管理中心-号码管理”中申请通过的号码。显示号码格式如下057188773344,4001112222,95500 + _callerShowNum string + // 被叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500 + _calledNum string + // 被叫号码侧的号码显示,传入的显示号码可以是阿里大于“管理中心-号码管理”中申请通过的号码。显示号码格式如下057188773344,4001112222,95500。显示号码也可以为主叫号码。 + _calledShowNum string +} + +// 初始化AlibabaAliqinFcVoiceNumDoublecallAPIRequest对象 +func NewAlibabaAliqinFcVoiceNumDoublecallRequest() *AlibabaAliqinFcVoiceNumDoublecallAPIRequest{ + return &AlibabaAliqinFcVoiceNumDoublecallAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcVoiceNumDoublecallAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.voice.num.doublecall" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcVoiceNumDoublecallAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SessionTimeOut Setter +// 通话超时时长,如接通后到达120秒时,通话会因为超时自动挂断。若无需设置超时时长,可不传。 +func (r *AlibabaAliqinFcVoiceNumDoublecallAPIRequest) SetSessionTimeOut(_sessionTimeOut string) error { + r._sessionTimeOut = _sessionTimeOut + r.Set("session_time_out", _sessionTimeOut) + return nil +} + +// SessionTimeOut Getter +func (r AlibabaAliqinFcVoiceNumDoublecallAPIRequest) GetSessionTimeOut() string { + return r._sessionTimeOut +} +// Extend Setter +// 公共回传参数,在“消息返回”中会透传回该参数;举例:用户可以传入自己下级的会员ID,在消息返回时,该会员ID会包含在内,用户可以根据该会员ID识别是哪位会员使用了你的应用 +func (r *AlibabaAliqinFcVoiceNumDoublecallAPIRequest) SetExtend(_extend string) error { + r._extend = _extend + r.Set("extend", _extend) + return nil +} + +// Extend Getter +func (r AlibabaAliqinFcVoiceNumDoublecallAPIRequest) GetExtend() string { + return r._extend +} +// CallerNum Setter +// 主叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500 +func (r *AlibabaAliqinFcVoiceNumDoublecallAPIRequest) SetCallerNum(_callerNum string) error { + r._callerNum = _callerNum + r.Set("caller_num", _callerNum) + return nil +} + +// CallerNum Getter +func (r AlibabaAliqinFcVoiceNumDoublecallAPIRequest) GetCallerNum() string { + return r._callerNum +} +// CallerShowNum Setter +// 主叫号码侧的号码显示,传入的显示号码必须是阿里大于“管理中心-号码管理”中申请通过的号码。显示号码格式如下057188773344,4001112222,95500 +func (r *AlibabaAliqinFcVoiceNumDoublecallAPIRequest) SetCallerShowNum(_callerShowNum string) error { + r._callerShowNum = _callerShowNum + r.Set("caller_show_num", _callerShowNum) + return nil +} + +// CallerShowNum Getter +func (r AlibabaAliqinFcVoiceNumDoublecallAPIRequest) GetCallerShowNum() string { + return r._callerShowNum +} +// CalledNum Setter +// 被叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500 +func (r *AlibabaAliqinFcVoiceNumDoublecallAPIRequest) SetCalledNum(_calledNum string) error { + r._calledNum = _calledNum + r.Set("called_num", _calledNum) + return nil +} + +// CalledNum Getter +func (r AlibabaAliqinFcVoiceNumDoublecallAPIRequest) GetCalledNum() string { + return r._calledNum +} +// CalledShowNum Setter +// 被叫号码侧的号码显示,传入的显示号码可以是阿里大于“管理中心-号码管理”中申请通过的号码。显示号码格式如下057188773344,4001112222,95500。显示号码也可以为主叫号码。 +func (r *AlibabaAliqinFcVoiceNumDoublecallAPIRequest) SetCalledShowNum(_calledShowNum string) error { + r._calledShowNum = _calledShowNum + r.Set("called_show_num", _calledShowNum) + return nil +} + +// CalledShowNum Getter +func (r AlibabaAliqinFcVoiceNumDoublecallAPIRequest) GetCalledShowNum() string { + return r._calledShowNum +} diff --git a/model/aliqin/AlibabaAliqinFcVoiceNumDoublecallAPIResponse.go b/model/aliqin/AlibabaAliqinFcVoiceNumDoublecallAPIResponse.go new file mode 100644 index 0000000000..20f52379ad --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcVoiceNumDoublecallAPIResponse.go @@ -0,0 +1,27 @@ +package aliqin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +多方通话 API返回值 +alibaba.aliqin.fc.voice.num.doublecall + +根据传入的主叫号码与被叫号码,由系统依次向主叫号码与被叫号码发起呼叫,双方都应答后,开始一对一通话并开始计费。使用前需要在阿里大于管理中心添加呼叫双方的显示号码。 +*/ +type AlibabaAliqinFcVoiceNumDoublecallAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcVoiceNumDoublecallAPIResponseModel +} + +// 多方通话 成功返回结果 +type AlibabaAliqinFcVoiceNumDoublecallAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_voice_num_doublecall_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回参数 + Result *AlibabaAliqinFcVoiceNumDoublecallBizResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliqin/AlibabaAliqinFcVoiceNumDoublecallResponse.go b/model/aliqin/AlibabaAliqinFcVoiceNumDoublecallResponse.go deleted file mode 100644 index 563bbda92d..0000000000 --- a/model/aliqin/AlibabaAliqinFcVoiceNumDoublecallResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliqin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -多方通话 API返回值 -alibaba.aliqin.fc.voice.num.doublecall - -根据传入的主叫号码与被叫号码,由系统依次向主叫号码与被叫号码发起呼叫,双方都应答后,开始一对一通话并开始计费。使用前需要在阿里大于管理中心添加呼叫双方的显示号码。 -*/ -type AlibabaAliqinFcVoiceNumDoublecallAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcVoiceNumDoublecallResponse -} - -// 多方通话 成功返回结果 -type AlibabaAliqinFcVoiceNumDoublecallResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_voice_num_doublecall_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回参数 - Result *AlibabaAliqinFcVoiceNumDoublecallBizResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliqin/AlibabaAliqinFcVoiceNumSinglecallAPIRequest.go b/model/aliqin/AlibabaAliqinFcVoiceNumSinglecallAPIRequest.go new file mode 100644 index 0000000000..4d061bf20b --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcVoiceNumSinglecallAPIRequest.go @@ -0,0 +1,94 @@ +package aliqin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +语音通知 API请求 +alibaba.aliqin.fc.voice.num.singlecall + +向指定手机号码发起单向呼叫,播放指定的语音文件内容。使用前需要在阿里大于管理中心添加去电显示号码与语音文件。 +*/ +type AlibabaAliqinFcVoiceNumSinglecallAPIRequest struct { + model.Params + // 公共回传参数,在“消息返回”中会透传回该参数;举例:用户可以传入自己下级的会员ID,在消息返回时,该会员ID会包含在内,用户可以根据该会员ID识别是哪位会员使用了你的应用 + _extend string + // 被叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500 + _calledNum string + // 被叫号显,传入的显示号码必须是阿里大于“管理中心-号码管理”中申请通过的号码 + _calledShowNum string + // 语音文件ID,传入的语音文件必须是在阿里大于“管理中心-语音文件管理”中的可用语音文件 + _voiceCode string +} + +// 初始化AlibabaAliqinFcVoiceNumSinglecallAPIRequest对象 +func NewAlibabaAliqinFcVoiceNumSinglecallRequest() *AlibabaAliqinFcVoiceNumSinglecallAPIRequest{ + return &AlibabaAliqinFcVoiceNumSinglecallAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFcVoiceNumSinglecallAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.fc.voice.num.singlecall" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFcVoiceNumSinglecallAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Extend Setter +// 公共回传参数,在“消息返回”中会透传回该参数;举例:用户可以传入自己下级的会员ID,在消息返回时,该会员ID会包含在内,用户可以根据该会员ID识别是哪位会员使用了你的应用 +func (r *AlibabaAliqinFcVoiceNumSinglecallAPIRequest) SetExtend(_extend string) error { + r._extend = _extend + r.Set("extend", _extend) + return nil +} + +// Extend Getter +func (r AlibabaAliqinFcVoiceNumSinglecallAPIRequest) GetExtend() string { + return r._extend +} +// CalledNum Setter +// 被叫号码,支持国内手机号与固话号码,格式如下057188773344,13911112222,4001112222,95500 +func (r *AlibabaAliqinFcVoiceNumSinglecallAPIRequest) SetCalledNum(_calledNum string) error { + r._calledNum = _calledNum + r.Set("called_num", _calledNum) + return nil +} + +// CalledNum Getter +func (r AlibabaAliqinFcVoiceNumSinglecallAPIRequest) GetCalledNum() string { + return r._calledNum +} +// CalledShowNum Setter +// 被叫号显,传入的显示号码必须是阿里大于“管理中心-号码管理”中申请通过的号码 +func (r *AlibabaAliqinFcVoiceNumSinglecallAPIRequest) SetCalledShowNum(_calledShowNum string) error { + r._calledShowNum = _calledShowNum + r.Set("called_show_num", _calledShowNum) + return nil +} + +// CalledShowNum Getter +func (r AlibabaAliqinFcVoiceNumSinglecallAPIRequest) GetCalledShowNum() string { + return r._calledShowNum +} +// VoiceCode Setter +// 语音文件ID,传入的语音文件必须是在阿里大于“管理中心-语音文件管理”中的可用语音文件 +func (r *AlibabaAliqinFcVoiceNumSinglecallAPIRequest) SetVoiceCode(_voiceCode string) error { + r._voiceCode = _voiceCode + r.Set("voice_code", _voiceCode) + return nil +} + +// VoiceCode Getter +func (r AlibabaAliqinFcVoiceNumSinglecallAPIRequest) GetVoiceCode() string { + return r._voiceCode +} diff --git a/model/aliqin/AlibabaAliqinFcVoiceNumSinglecallAPIResponse.go b/model/aliqin/AlibabaAliqinFcVoiceNumSinglecallAPIResponse.go new file mode 100644 index 0000000000..31406df540 --- /dev/null +++ b/model/aliqin/AlibabaAliqinFcVoiceNumSinglecallAPIResponse.go @@ -0,0 +1,27 @@ +package aliqin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +语音通知 API返回值 +alibaba.aliqin.fc.voice.num.singlecall + +向指定手机号码发起单向呼叫,播放指定的语音文件内容。使用前需要在阿里大于管理中心添加去电显示号码与语音文件。 +*/ +type AlibabaAliqinFcVoiceNumSinglecallAPIResponse struct { + model.CommonResponse + AlibabaAliqinFcVoiceNumSinglecallAPIResponseModel +} + +// 语音通知 成功返回结果 +type AlibabaAliqinFcVoiceNumSinglecallAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_fc_voice_num_singlecall_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *AlibabaAliqinFcVoiceNumSinglecallBizResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliqin/AlibabaAliqinFcVoiceNumSinglecallResponse.go b/model/aliqin/AlibabaAliqinFcVoiceNumSinglecallResponse.go deleted file mode 100644 index f6db87b9f4..0000000000 --- a/model/aliqin/AlibabaAliqinFcVoiceNumSinglecallResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliqin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -语音通知 API返回值 -alibaba.aliqin.fc.voice.num.singlecall - -向指定手机号码发起单向呼叫,播放指定的语音文件内容。使用前需要在阿里大于管理中心添加去电显示号码与语音文件。 -*/ -type AlibabaAliqinFcVoiceNumSinglecallAPIResponse struct { - model.CommonResponse - AlibabaAliqinFcVoiceNumSinglecallResponse -} - -// 语音通知 成功返回结果 -type AlibabaAliqinFcVoiceNumSinglecallResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_fc_voice_num_singlecall_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *AlibabaAliqinFcVoiceNumSinglecallBizResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliqin/AlibabaAliyunindepDigitalsmsCreatetemplateAPIRequest.go b/model/aliqin/AlibabaAliyunindepDigitalsmsCreatetemplateAPIRequest.go new file mode 100644 index 0000000000..8150e0806f --- /dev/null +++ b/model/aliqin/AlibabaAliyunindepDigitalsmsCreatetemplateAPIRequest.go @@ -0,0 +1,80 @@ +package aliqin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +数字短信模板创建 API请求 +alibaba.aliyunindep.digitalsms.createtemplate + +数字短信模板创建,给阿里云一方产品使用,类型:9 +*/ +type AlibabaAliyunindepDigitalsmsCreatetemplateAPIRequest struct { + model.Params + // 模板名称 + _templateName string + // 系统自动生成 + _templateContents []DigitalSmsTemplateContentDto + // 申请说明 + _applyRemark string +} + +// 初始化AlibabaAliyunindepDigitalsmsCreatetemplateAPIRequest对象 +func NewAlibabaAliyunindepDigitalsmsCreatetemplateRequest() *AlibabaAliyunindepDigitalsmsCreatetemplateAPIRequest{ + return &AlibabaAliyunindepDigitalsmsCreatetemplateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliyunindepDigitalsmsCreatetemplateAPIRequest) GetApiMethodName() string { + return "alibaba.aliyunindep.digitalsms.createtemplate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliyunindepDigitalsmsCreatetemplateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TemplateName Setter +// 模板名称 +func (r *AlibabaAliyunindepDigitalsmsCreatetemplateAPIRequest) SetTemplateName(_templateName string) error { + r._templateName = _templateName + r.Set("template_name", _templateName) + return nil +} + +// TemplateName Getter +func (r AlibabaAliyunindepDigitalsmsCreatetemplateAPIRequest) GetTemplateName() string { + return r._templateName +} +// TemplateContents Setter +// 系统自动生成 +func (r *AlibabaAliyunindepDigitalsmsCreatetemplateAPIRequest) SetTemplateContents(_templateContents []DigitalSmsTemplateContentDto) error { + r._templateContents = _templateContents + r.Set("template_contents", _templateContents) + return nil +} + +// TemplateContents Getter +func (r AlibabaAliyunindepDigitalsmsCreatetemplateAPIRequest) GetTemplateContents() []DigitalSmsTemplateContentDto { + return r._templateContents +} +// ApplyRemark Setter +// 申请说明 +func (r *AlibabaAliyunindepDigitalsmsCreatetemplateAPIRequest) SetApplyRemark(_applyRemark string) error { + r._applyRemark = _applyRemark + r.Set("apply_remark", _applyRemark) + return nil +} + +// ApplyRemark Getter +func (r AlibabaAliyunindepDigitalsmsCreatetemplateAPIRequest) GetApplyRemark() string { + return r._applyRemark +} diff --git a/model/aliqin/AlibabaAliyunindepDigitalsmsCreatetemplateAPIResponse.go b/model/aliqin/AlibabaAliyunindepDigitalsmsCreatetemplateAPIResponse.go new file mode 100644 index 0000000000..d09e448084 --- /dev/null +++ b/model/aliqin/AlibabaAliyunindepDigitalsmsCreatetemplateAPIResponse.go @@ -0,0 +1,27 @@ +package aliqin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +数字短信模板创建 API返回值 +alibaba.aliyunindep.digitalsms.createtemplate + +数字短信模板创建,给阿里云一方产品使用,类型:9 +*/ +type AlibabaAliyunindepDigitalsmsCreatetemplateAPIResponse struct { + model.CommonResponse + AlibabaAliyunindepDigitalsmsCreatetemplateAPIResponseModel +} + +// 数字短信模板创建 成功返回结果 +type AlibabaAliyunindepDigitalsmsCreatetemplateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliyunindep_digitalsms_createtemplate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *AlibabaAliyunindepDigitalsmsCreatetemplateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliqin/AlibabaAliyunindepDigitalsmsCreatetemplateResponse.go b/model/aliqin/AlibabaAliyunindepDigitalsmsCreatetemplateResponse.go deleted file mode 100644 index 190a3699d3..0000000000 --- a/model/aliqin/AlibabaAliyunindepDigitalsmsCreatetemplateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliqin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -数字短信模板创建 API返回值 -alibaba.aliyunindep.digitalsms.createtemplate - -数字短信模板创建,给阿里云一方产品使用,类型:9 -*/ -type AlibabaAliyunindepDigitalsmsCreatetemplateAPIResponse struct { - model.CommonResponse - AlibabaAliyunindepDigitalsmsCreatetemplateResponse -} - -// 数字短信模板创建 成功返回结果 -type AlibabaAliyunindepDigitalsmsCreatetemplateResponse struct { - XMLName xml.Name `xml:"alibaba_aliyunindep_digitalsms_createtemplate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *AlibabaAliyunindepDigitalsmsCreatetemplateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/aliqin/AlibabaIsvDigitalsmsCreatetemplateAPIRequest.go b/model/aliqin/AlibabaIsvDigitalsmsCreatetemplateAPIRequest.go new file mode 100644 index 0000000000..2fe5f016a1 --- /dev/null +++ b/model/aliqin/AlibabaIsvDigitalsmsCreatetemplateAPIRequest.go @@ -0,0 +1,80 @@ +package aliqin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +数字短信模板创建 API请求 +alibaba.isv.digitalsms.createtemplate + +数字短信模板创建,给聚石塔,类型:2 +*/ +type AlibabaIsvDigitalsmsCreatetemplateAPIRequest struct { + model.Params + // 模板名称 + _templateName string + // 系统自动生成 + _templateContents []DigitalSmsTemplateContentDto + // 申请说明 + _applyRemark string +} + +// 初始化AlibabaIsvDigitalsmsCreatetemplateAPIRequest对象 +func NewAlibabaIsvDigitalsmsCreatetemplateRequest() *AlibabaIsvDigitalsmsCreatetemplateAPIRequest{ + return &AlibabaIsvDigitalsmsCreatetemplateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIsvDigitalsmsCreatetemplateAPIRequest) GetApiMethodName() string { + return "alibaba.isv.digitalsms.createtemplate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIsvDigitalsmsCreatetemplateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TemplateName Setter +// 模板名称 +func (r *AlibabaIsvDigitalsmsCreatetemplateAPIRequest) SetTemplateName(_templateName string) error { + r._templateName = _templateName + r.Set("template_name", _templateName) + return nil +} + +// TemplateName Getter +func (r AlibabaIsvDigitalsmsCreatetemplateAPIRequest) GetTemplateName() string { + return r._templateName +} +// TemplateContents Setter +// 系统自动生成 +func (r *AlibabaIsvDigitalsmsCreatetemplateAPIRequest) SetTemplateContents(_templateContents []DigitalSmsTemplateContentDto) error { + r._templateContents = _templateContents + r.Set("template_contents", _templateContents) + return nil +} + +// TemplateContents Getter +func (r AlibabaIsvDigitalsmsCreatetemplateAPIRequest) GetTemplateContents() []DigitalSmsTemplateContentDto { + return r._templateContents +} +// ApplyRemark Setter +// 申请说明 +func (r *AlibabaIsvDigitalsmsCreatetemplateAPIRequest) SetApplyRemark(_applyRemark string) error { + r._applyRemark = _applyRemark + r.Set("apply_remark", _applyRemark) + return nil +} + +// ApplyRemark Getter +func (r AlibabaIsvDigitalsmsCreatetemplateAPIRequest) GetApplyRemark() string { + return r._applyRemark +} diff --git a/model/aliqin/AlibabaIsvDigitalsmsCreatetemplateAPIResponse.go b/model/aliqin/AlibabaIsvDigitalsmsCreatetemplateAPIResponse.go new file mode 100644 index 0000000000..989a453aa7 --- /dev/null +++ b/model/aliqin/AlibabaIsvDigitalsmsCreatetemplateAPIResponse.go @@ -0,0 +1,27 @@ +package aliqin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +数字短信模板创建 API返回值 +alibaba.isv.digitalsms.createtemplate + +数字短信模板创建,给聚石塔,类型:2 +*/ +type AlibabaIsvDigitalsmsCreatetemplateAPIResponse struct { + model.CommonResponse + AlibabaIsvDigitalsmsCreatetemplateAPIResponseModel +} + +// 数字短信模板创建 成功返回结果 +type AlibabaIsvDigitalsmsCreatetemplateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_isv_digitalsms_createtemplate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *AlibabaIsvDigitalsmsCreatetemplateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/aliqin/AlibabaIsvDigitalsmsCreatetemplateResponse.go b/model/aliqin/AlibabaIsvDigitalsmsCreatetemplateResponse.go deleted file mode 100644 index d1eaf4fe9f..0000000000 --- a/model/aliqin/AlibabaIsvDigitalsmsCreatetemplateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliqin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -数字短信模板创建 API返回值 -alibaba.isv.digitalsms.createtemplate - -数字短信模板创建,给聚石塔,类型:2 -*/ -type AlibabaIsvDigitalsmsCreatetemplateAPIResponse struct { - model.CommonResponse - AlibabaIsvDigitalsmsCreatetemplateResponse -} - -// 数字短信模板创建 成功返回结果 -type AlibabaIsvDigitalsmsCreatetemplateResponse struct { - XMLName xml.Name `xml:"alibaba_isv_digitalsms_createtemplate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *AlibabaIsvDigitalsmsCreatetemplateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsDataSportsSyncmatchdataAPIRequest.go b/model/alisports/AlibabaAlisportsDataSportsSyncmatchdataAPIRequest.go new file mode 100644 index 0000000000..8a3ebdd256 --- /dev/null +++ b/model/alisports/AlibabaAlisportsDataSportsSyncmatchdataAPIRequest.go @@ -0,0 +1,388 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育数据中心用户比赛数据同步接口 API请求 +alibaba.alisports.data.sports.syncmatchdata + +阿里体育数据中心用户比赛数据同步接口 +*/ +type AlibabaAlisportsDataSportsSyncmatchdataAPIRequest struct { + model.Params + // 应用appkey + _alispAppKey string + // 成绩(比赛用时) + _score string + // 组别 1001半程马拉松 1002全程马拉松 + _matchGroup int64 + // 国家 + _country string + // 出生日期 格式:Y-m-d + _birthday string + // 手机号 + _mobile string + // 证件ID + _cardId string + // 证件类型 1身份证 2军官证 4护照 8台胞证 16港澳通行证 32未设置 64 其他 + _cardType int64 + // 类型:1专业 2业余 + _type int64 + // 性别 0未知 1男 2女 + _gender int64 + // 姓名 + _name string + // 排名 + _ranking int64 + // 比赛名(展示用) + _match string + // 比赛类型 1马拉松 + _matchType int64 + // 参赛号 + _num string + // 阿里体育用户id + _aliuid string + // 接口签名 + _alispSign string + // 时间戳精确到秒 + _alispTime string + // 比赛日期 格式:Y-m-d + _matchTime string + // 枪声成绩 + _gunshotScore string + // 枪声排名 + _gunshotRanking int64 + // 平均配速 + _speed string + // 展示用,比如:男子半程马拉松 + _project string + // 比如马拉松 5KM 10KM 15KM分段成绩,json key->value 格式 + _subScore string + // 比如马拉松 5KM 10KM 15KM分段时间点,json key->value 格式 + _subPoint string +} + +// 初始化AlibabaAlisportsDataSportsSyncmatchdataAPIRequest对象 +func NewAlibabaAlisportsDataSportsSyncmatchdataRequest() *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest{ + return &AlibabaAlisportsDataSportsSyncmatchdataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.data.sports.syncmatchdata" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlispAppKey Setter +// 应用appkey +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetAlispAppKey(_alispAppKey string) error { + r._alispAppKey = _alispAppKey + r.Set("alisp_app_key", _alispAppKey) + return nil +} + +// AlispAppKey Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetAlispAppKey() string { + return r._alispAppKey +} +// Score Setter +// 成绩(比赛用时) +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetScore(_score string) error { + r._score = _score + r.Set("score", _score) + return nil +} + +// Score Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetScore() string { + return r._score +} +// MatchGroup Setter +// 组别 1001半程马拉松 1002全程马拉松 +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetMatchGroup(_matchGroup int64) error { + r._matchGroup = _matchGroup + r.Set("match_group", _matchGroup) + return nil +} + +// MatchGroup Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetMatchGroup() int64 { + return r._matchGroup +} +// Country Setter +// 国家 +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetCountry(_country string) error { + r._country = _country + r.Set("country", _country) + return nil +} + +// Country Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetCountry() string { + return r._country +} +// Birthday Setter +// 出生日期 格式:Y-m-d +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetBirthday(_birthday string) error { + r._birthday = _birthday + r.Set("birthday", _birthday) + return nil +} + +// Birthday Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetBirthday() string { + return r._birthday +} +// Mobile Setter +// 手机号 +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetMobile() string { + return r._mobile +} +// CardId Setter +// 证件ID +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetCardId(_cardId string) error { + r._cardId = _cardId + r.Set("card_id", _cardId) + return nil +} + +// CardId Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetCardId() string { + return r._cardId +} +// CardType Setter +// 证件类型 1身份证 2军官证 4护照 8台胞证 16港澳通行证 32未设置 64 其他 +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetCardType(_cardType int64) error { + r._cardType = _cardType + r.Set("card_type", _cardType) + return nil +} + +// CardType Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetCardType() int64 { + return r._cardType +} +// Type Setter +// 类型:1专业 2业余 +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetType() int64 { + return r._type +} +// Gender Setter +// 性别 0未知 1男 2女 +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetGender(_gender int64) error { + r._gender = _gender + r.Set("gender", _gender) + return nil +} + +// Gender Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetGender() int64 { + return r._gender +} +// Name Setter +// 姓名 +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetName() string { + return r._name +} +// Ranking Setter +// 排名 +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetRanking(_ranking int64) error { + r._ranking = _ranking + r.Set("ranking", _ranking) + return nil +} + +// Ranking Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetRanking() int64 { + return r._ranking +} +// Match Setter +// 比赛名(展示用) +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetMatch(_match string) error { + r._match = _match + r.Set("match", _match) + return nil +} + +// Match Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetMatch() string { + return r._match +} +// MatchType Setter +// 比赛类型 1马拉松 +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetMatchType(_matchType int64) error { + r._matchType = _matchType + r.Set("match_type", _matchType) + return nil +} + +// MatchType Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetMatchType() int64 { + return r._matchType +} +// Num Setter +// 参赛号 +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetNum(_num string) error { + r._num = _num + r.Set("num", _num) + return nil +} + +// Num Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetNum() string { + return r._num +} +// Aliuid Setter +// 阿里体育用户id +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetAliuid(_aliuid string) error { + r._aliuid = _aliuid + r.Set("aliuid", _aliuid) + return nil +} + +// Aliuid Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetAliuid() string { + return r._aliuid +} +// AlispSign Setter +// 接口签名 +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetAlispSign(_alispSign string) error { + r._alispSign = _alispSign + r.Set("alisp_sign", _alispSign) + return nil +} + +// AlispSign Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetAlispSign() string { + return r._alispSign +} +// AlispTime Setter +// 时间戳精确到秒 +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetAlispTime(_alispTime string) error { + r._alispTime = _alispTime + r.Set("alisp_time", _alispTime) + return nil +} + +// AlispTime Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetAlispTime() string { + return r._alispTime +} +// MatchTime Setter +// 比赛日期 格式:Y-m-d +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetMatchTime(_matchTime string) error { + r._matchTime = _matchTime + r.Set("match_time", _matchTime) + return nil +} + +// MatchTime Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetMatchTime() string { + return r._matchTime +} +// GunshotScore Setter +// 枪声成绩 +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetGunshotScore(_gunshotScore string) error { + r._gunshotScore = _gunshotScore + r.Set("gunshot_score", _gunshotScore) + return nil +} + +// GunshotScore Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetGunshotScore() string { + return r._gunshotScore +} +// GunshotRanking Setter +// 枪声排名 +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetGunshotRanking(_gunshotRanking int64) error { + r._gunshotRanking = _gunshotRanking + r.Set("gunshot_ranking", _gunshotRanking) + return nil +} + +// GunshotRanking Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetGunshotRanking() int64 { + return r._gunshotRanking +} +// Speed Setter +// 平均配速 +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetSpeed(_speed string) error { + r._speed = _speed + r.Set("speed", _speed) + return nil +} + +// Speed Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetSpeed() string { + return r._speed +} +// Project Setter +// 展示用,比如:男子半程马拉松 +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetProject(_project string) error { + r._project = _project + r.Set("project", _project) + return nil +} + +// Project Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetProject() string { + return r._project +} +// SubScore Setter +// 比如马拉松 5KM 10KM 15KM分段成绩,json key->value 格式 +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetSubScore(_subScore string) error { + r._subScore = _subScore + r.Set("sub_score", _subScore) + return nil +} + +// SubScore Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetSubScore() string { + return r._subScore +} +// SubPoint Setter +// 比如马拉松 5KM 10KM 15KM分段时间点,json key->value 格式 +func (r *AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) SetSubPoint(_subPoint string) error { + r._subPoint = _subPoint + r.Set("sub_point", _subPoint) + return nil +} + +// SubPoint Getter +func (r AlibabaAlisportsDataSportsSyncmatchdataAPIRequest) GetSubPoint() string { + return r._subPoint +} diff --git a/model/alisports/AlibabaAlisportsDataSportsSyncmatchdataAPIResponse.go b/model/alisports/AlibabaAlisportsDataSportsSyncmatchdataAPIResponse.go new file mode 100644 index 0000000000..bb2300ee43 --- /dev/null +++ b/model/alisports/AlibabaAlisportsDataSportsSyncmatchdataAPIResponse.go @@ -0,0 +1,29 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育数据中心用户比赛数据同步接口 API返回值 +alibaba.alisports.data.sports.syncmatchdata + +阿里体育数据中心用户比赛数据同步接口 +*/ +type AlibabaAlisportsDataSportsSyncmatchdataAPIResponse struct { + model.CommonResponse + AlibabaAlisportsDataSportsSyncmatchdataAPIResponseModel +} + +// 阿里体育数据中心用户比赛数据同步接口 成功返回结果 +type AlibabaAlisportsDataSportsSyncmatchdataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_data_sports_syncmatchdata_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应码 + AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` + // 响应信息 + AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsDataSportsSyncmatchdataResponse.go b/model/alisports/AlibabaAlisportsDataSportsSyncmatchdataResponse.go deleted file mode 100644 index aa30c928e9..0000000000 --- a/model/alisports/AlibabaAlisportsDataSportsSyncmatchdataResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里体育数据中心用户比赛数据同步接口 API返回值 -alibaba.alisports.data.sports.syncmatchdata - -阿里体育数据中心用户比赛数据同步接口 -*/ -type AlibabaAlisportsDataSportsSyncmatchdataAPIResponse struct { - model.CommonResponse - AlibabaAlisportsDataSportsSyncmatchdataResponse -} - -// 阿里体育数据中心用户比赛数据同步接口 成功返回结果 -type AlibabaAlisportsDataSportsSyncmatchdataResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_data_sports_syncmatchdata_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应码 - AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` - // 响应信息 - AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsDataSportsSyncsleepdataAPIRequest.go b/model/alisports/AlibabaAlisportsDataSportsSyncsleepdataAPIRequest.go new file mode 100644 index 0000000000..1193e0cd55 --- /dev/null +++ b/model/alisports/AlibabaAlisportsDataSportsSyncsleepdataAPIRequest.go @@ -0,0 +1,178 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育数据中心用户睡眠数据同步接口 API请求 +alibaba.alisports.data.sports.syncsleepdata + +阿里体育数据中心用户睡眠数据同步接口 +*/ +type AlibabaAlisportsDataSportsSyncsleepdataAPIRequest struct { + model.Params + // 应用appkey + _alispAppKey string + // 入睡时间,格式:y-m-d h:i:s + _stime string + // 清醒时间,单位:小时 + _soberTime string + // 浅度睡眠时间,单位:小时 + _shallowTime string + // 深度睡眠时间,单位:小时 + _deepTime string + // 睡眠总时间,单位:小时 + _allTime string + // 阿里体育用户id + _aliuid string + // 接口签名 + _alispSign string + // 时间戳精确到秒 + _alispTime string + // 醒来时间,格式:y-m-d h:i:s + _etime string +} + +// 初始化AlibabaAlisportsDataSportsSyncsleepdataAPIRequest对象 +func NewAlibabaAlisportsDataSportsSyncsleepdataRequest() *AlibabaAlisportsDataSportsSyncsleepdataAPIRequest{ + return &AlibabaAlisportsDataSportsSyncsleepdataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.data.sports.syncsleepdata" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlispAppKey Setter +// 应用appkey +func (r *AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) SetAlispAppKey(_alispAppKey string) error { + r._alispAppKey = _alispAppKey + r.Set("alisp_app_key", _alispAppKey) + return nil +} + +// AlispAppKey Getter +func (r AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) GetAlispAppKey() string { + return r._alispAppKey +} +// Stime Setter +// 入睡时间,格式:y-m-d h:i:s +func (r *AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) SetStime(_stime string) error { + r._stime = _stime + r.Set("stime", _stime) + return nil +} + +// Stime Getter +func (r AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) GetStime() string { + return r._stime +} +// SoberTime Setter +// 清醒时间,单位:小时 +func (r *AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) SetSoberTime(_soberTime string) error { + r._soberTime = _soberTime + r.Set("sober_time", _soberTime) + return nil +} + +// SoberTime Getter +func (r AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) GetSoberTime() string { + return r._soberTime +} +// ShallowTime Setter +// 浅度睡眠时间,单位:小时 +func (r *AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) SetShallowTime(_shallowTime string) error { + r._shallowTime = _shallowTime + r.Set("shallow_time", _shallowTime) + return nil +} + +// ShallowTime Getter +func (r AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) GetShallowTime() string { + return r._shallowTime +} +// DeepTime Setter +// 深度睡眠时间,单位:小时 +func (r *AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) SetDeepTime(_deepTime string) error { + r._deepTime = _deepTime + r.Set("deep_time", _deepTime) + return nil +} + +// DeepTime Getter +func (r AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) GetDeepTime() string { + return r._deepTime +} +// AllTime Setter +// 睡眠总时间,单位:小时 +func (r *AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) SetAllTime(_allTime string) error { + r._allTime = _allTime + r.Set("all_time", _allTime) + return nil +} + +// AllTime Getter +func (r AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) GetAllTime() string { + return r._allTime +} +// Aliuid Setter +// 阿里体育用户id +func (r *AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) SetAliuid(_aliuid string) error { + r._aliuid = _aliuid + r.Set("aliuid", _aliuid) + return nil +} + +// Aliuid Getter +func (r AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) GetAliuid() string { + return r._aliuid +} +// AlispSign Setter +// 接口签名 +func (r *AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) SetAlispSign(_alispSign string) error { + r._alispSign = _alispSign + r.Set("alisp_sign", _alispSign) + return nil +} + +// AlispSign Getter +func (r AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) GetAlispSign() string { + return r._alispSign +} +// AlispTime Setter +// 时间戳精确到秒 +func (r *AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) SetAlispTime(_alispTime string) error { + r._alispTime = _alispTime + r.Set("alisp_time", _alispTime) + return nil +} + +// AlispTime Getter +func (r AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) GetAlispTime() string { + return r._alispTime +} +// Etime Setter +// 醒来时间,格式:y-m-d h:i:s +func (r *AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) SetEtime(_etime string) error { + r._etime = _etime + r.Set("etime", _etime) + return nil +} + +// Etime Getter +func (r AlibabaAlisportsDataSportsSyncsleepdataAPIRequest) GetEtime() string { + return r._etime +} diff --git a/model/alisports/AlibabaAlisportsDataSportsSyncsleepdataAPIResponse.go b/model/alisports/AlibabaAlisportsDataSportsSyncsleepdataAPIResponse.go new file mode 100644 index 0000000000..af2a4ca797 --- /dev/null +++ b/model/alisports/AlibabaAlisportsDataSportsSyncsleepdataAPIResponse.go @@ -0,0 +1,29 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育数据中心用户睡眠数据同步接口 API返回值 +alibaba.alisports.data.sports.syncsleepdata + +阿里体育数据中心用户睡眠数据同步接口 +*/ +type AlibabaAlisportsDataSportsSyncsleepdataAPIResponse struct { + model.CommonResponse + AlibabaAlisportsDataSportsSyncsleepdataAPIResponseModel +} + +// 阿里体育数据中心用户睡眠数据同步接口 成功返回结果 +type AlibabaAlisportsDataSportsSyncsleepdataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_data_sports_syncsleepdata_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alisp_code + AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` + // alisp_msg + AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsDataSportsSyncsleepdataResponse.go b/model/alisports/AlibabaAlisportsDataSportsSyncsleepdataResponse.go deleted file mode 100644 index f046655db0..0000000000 --- a/model/alisports/AlibabaAlisportsDataSportsSyncsleepdataResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里体育数据中心用户睡眠数据同步接口 API返回值 -alibaba.alisports.data.sports.syncsleepdata - -阿里体育数据中心用户睡眠数据同步接口 -*/ -type AlibabaAlisportsDataSportsSyncsleepdataAPIResponse struct { - model.CommonResponse - AlibabaAlisportsDataSportsSyncsleepdataResponse -} - -// 阿里体育数据中心用户睡眠数据同步接口 成功返回结果 -type AlibabaAlisportsDataSportsSyncsleepdataResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_data_sports_syncsleepdata_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alisp_code - AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` - // alisp_msg - AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsDataSportsSyncsportsdataAPIRequest.go b/model/alisports/AlibabaAlisportsDataSportsSyncsportsdataAPIRequest.go new file mode 100644 index 0000000000..9a63652cbb --- /dev/null +++ b/model/alisports/AlibabaAlisportsDataSportsSyncsportsdataAPIRequest.go @@ -0,0 +1,486 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育数据中心用户运动数据同步接口 API请求 +alibaba.alisports.data.sports.syncsportsdata + +阿里体育数据中心用户运动数据同步接口 +*/ +type AlibabaAlisportsDataSportsSyncsportsdataAPIRequest struct { + model.Params + // 应用appkey + _alispAppKey string + // 最高速度 单位:米/每分 + _maxSpeed string + // 平均心率 单位:次/每分 + _averHeartrate int64 + // 最高心率 单位:次/每分 + _maxHeartrate int64 + // 最低心率 单位:次/每分 + _minHeartrate int64 + // 运动轨迹,有序的经纬度集合,json格式 例:[[1,2],[3,4]] [1,2]是一个坐标点,1是经度 2是纬度(有就传,阿里体育较依赖此字段) + _trail string + // 运动开始时间(如果不区分开始结束,两个时间值相同;格式:Y-m-d H:i:s) + _stime string + // 运动结束时间(如果不区分开始结束,两个时间值相同;格式:Y-m-d H:i:s) + _etime string + // 设备类型 :1.手环;2.手表;3.跑步机;4.智能运动鞋;5.耳机;6.智能运动鞋;7.智能运动Bra8.智能单车;9.智能跳绳10.智能背心11.脚环 + _deviceType int64 + // 设备名(展示会用到) + _deviceName string + // 设备型号 + _deviceModel string + // 平均速度 单位:米/每分 + _averSpeed string + // 二级运动量单位 定义:1.爬楼层数(跑步、健走、健身、登山);2.划水次数(游泳) + _subUnit int64 + // 二级运动量 + _subNum string + // 时间戳精确到秒 + _alispTime string + // 接口签名 + _alispSign string + // 阿里体育用户id + _aliuid string + // 业务来源二级分类(中英文) + _source string + // 三方运动数据主键id(数据唯一标记,去重使用) + _dataId string + // 运动类型一级分类 定义:1-跑步;2-健走;3-骑行;4-游泳;5-健身;6-篮球;7-足球;8-羽毛球;9-排球;10-乒乓球;11-瑜伽;12-电竞;13-登山;16-椭圆机;19-健身操;20-太极; + _sportsClass int64 + // 运动类型二级分类 定义: 1001-室内跑步;1002-室外跑步;2001-室内健走;2002-室外健走;3001-室内骑行;3002-室外骑行;4001-室内游泳;4002-户外游泳 + _sportsType int64 + // 运动量 + _num string + // 运动量单位 1.步数(跑步、健走、椭圆机、登山);2.趟数(游泳);3.平均踏频(骑行); + _unit int64 + // 运动消耗卡路里 单位:卡 + _calorie string + // 所属赛事(有就传,阿里体育较依赖此字段) + _match string + // 运动距离 单位:米(有就传,阿里体育较依赖此字段) + _distance string + // 运动时长 单位:秒(有就传,阿里体育较依赖此字段) + _time string + // 国家(中英文/运动发生地点,如有就传) + _country string + // 省份(中英文/运动发生地点,如有就传) + _province string + // 城市(中英文/运动发生地点,如有就传) + _city string + // 开始运动地点经纬度,格式:1,2 (1为经度,2为纬度) + _startPoint string + // 结束运动地点经纬度,格式:1,2 (1为经度,2为纬度) + _endPoint string +} + +// 初始化AlibabaAlisportsDataSportsSyncsportsdataAPIRequest对象 +func NewAlibabaAlisportsDataSportsSyncsportsdataRequest() *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest{ + return &AlibabaAlisportsDataSportsSyncsportsdataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.data.sports.syncsportsdata" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlispAppKey Setter +// 应用appkey +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetAlispAppKey(_alispAppKey string) error { + r._alispAppKey = _alispAppKey + r.Set("alisp_app_key", _alispAppKey) + return nil +} + +// AlispAppKey Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetAlispAppKey() string { + return r._alispAppKey +} +// MaxSpeed Setter +// 最高速度 单位:米/每分 +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetMaxSpeed(_maxSpeed string) error { + r._maxSpeed = _maxSpeed + r.Set("max_speed", _maxSpeed) + return nil +} + +// MaxSpeed Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetMaxSpeed() string { + return r._maxSpeed +} +// AverHeartrate Setter +// 平均心率 单位:次/每分 +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetAverHeartrate(_averHeartrate int64) error { + r._averHeartrate = _averHeartrate + r.Set("aver_heartrate", _averHeartrate) + return nil +} + +// AverHeartrate Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetAverHeartrate() int64 { + return r._averHeartrate +} +// MaxHeartrate Setter +// 最高心率 单位:次/每分 +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetMaxHeartrate(_maxHeartrate int64) error { + r._maxHeartrate = _maxHeartrate + r.Set("max_heartrate", _maxHeartrate) + return nil +} + +// MaxHeartrate Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetMaxHeartrate() int64 { + return r._maxHeartrate +} +// MinHeartrate Setter +// 最低心率 单位:次/每分 +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetMinHeartrate(_minHeartrate int64) error { + r._minHeartrate = _minHeartrate + r.Set("min_heartrate", _minHeartrate) + return nil +} + +// MinHeartrate Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetMinHeartrate() int64 { + return r._minHeartrate +} +// Trail Setter +// 运动轨迹,有序的经纬度集合,json格式 例:[[1,2],[3,4]] [1,2]是一个坐标点,1是经度 2是纬度(有就传,阿里体育较依赖此字段) +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetTrail(_trail string) error { + r._trail = _trail + r.Set("trail", _trail) + return nil +} + +// Trail Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetTrail() string { + return r._trail +} +// Stime Setter +// 运动开始时间(如果不区分开始结束,两个时间值相同;格式:Y-m-d H:i:s) +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetStime(_stime string) error { + r._stime = _stime + r.Set("stime", _stime) + return nil +} + +// Stime Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetStime() string { + return r._stime +} +// Etime Setter +// 运动结束时间(如果不区分开始结束,两个时间值相同;格式:Y-m-d H:i:s) +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetEtime(_etime string) error { + r._etime = _etime + r.Set("etime", _etime) + return nil +} + +// Etime Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetEtime() string { + return r._etime +} +// DeviceType Setter +// 设备类型 :1.手环;2.手表;3.跑步机;4.智能运动鞋;5.耳机;6.智能运动鞋;7.智能运动Bra8.智能单车;9.智能跳绳10.智能背心11.脚环 +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetDeviceType(_deviceType int64) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetDeviceType() int64 { + return r._deviceType +} +// DeviceName Setter +// 设备名(展示会用到) +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetDeviceName(_deviceName string) error { + r._deviceName = _deviceName + r.Set("device_name", _deviceName) + return nil +} + +// DeviceName Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetDeviceName() string { + return r._deviceName +} +// DeviceModel Setter +// 设备型号 +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetDeviceModel(_deviceModel string) error { + r._deviceModel = _deviceModel + r.Set("device_model", _deviceModel) + return nil +} + +// DeviceModel Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetDeviceModel() string { + return r._deviceModel +} +// AverSpeed Setter +// 平均速度 单位:米/每分 +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetAverSpeed(_averSpeed string) error { + r._averSpeed = _averSpeed + r.Set("aver_speed", _averSpeed) + return nil +} + +// AverSpeed Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetAverSpeed() string { + return r._averSpeed +} +// SubUnit Setter +// 二级运动量单位 定义:1.爬楼层数(跑步、健走、健身、登山);2.划水次数(游泳) +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetSubUnit(_subUnit int64) error { + r._subUnit = _subUnit + r.Set("sub_unit", _subUnit) + return nil +} + +// SubUnit Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetSubUnit() int64 { + return r._subUnit +} +// SubNum Setter +// 二级运动量 +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetSubNum(_subNum string) error { + r._subNum = _subNum + r.Set("sub_num", _subNum) + return nil +} + +// SubNum Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetSubNum() string { + return r._subNum +} +// AlispTime Setter +// 时间戳精确到秒 +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetAlispTime(_alispTime string) error { + r._alispTime = _alispTime + r.Set("alisp_time", _alispTime) + return nil +} + +// AlispTime Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetAlispTime() string { + return r._alispTime +} +// AlispSign Setter +// 接口签名 +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetAlispSign(_alispSign string) error { + r._alispSign = _alispSign + r.Set("alisp_sign", _alispSign) + return nil +} + +// AlispSign Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetAlispSign() string { + return r._alispSign +} +// Aliuid Setter +// 阿里体育用户id +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetAliuid(_aliuid string) error { + r._aliuid = _aliuid + r.Set("aliuid", _aliuid) + return nil +} + +// Aliuid Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetAliuid() string { + return r._aliuid +} +// Source Setter +// 业务来源二级分类(中英文) +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetSource() string { + return r._source +} +// DataId Setter +// 三方运动数据主键id(数据唯一标记,去重使用) +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetDataId(_dataId string) error { + r._dataId = _dataId + r.Set("data_id", _dataId) + return nil +} + +// DataId Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetDataId() string { + return r._dataId +} +// SportsClass Setter +// 运动类型一级分类 定义:1-跑步;2-健走;3-骑行;4-游泳;5-健身;6-篮球;7-足球;8-羽毛球;9-排球;10-乒乓球;11-瑜伽;12-电竞;13-登山;16-椭圆机;19-健身操;20-太极; +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetSportsClass(_sportsClass int64) error { + r._sportsClass = _sportsClass + r.Set("sports_class", _sportsClass) + return nil +} + +// SportsClass Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetSportsClass() int64 { + return r._sportsClass +} +// SportsType Setter +// 运动类型二级分类 定义: 1001-室内跑步;1002-室外跑步;2001-室内健走;2002-室外健走;3001-室内骑行;3002-室外骑行;4001-室内游泳;4002-户外游泳 +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetSportsType(_sportsType int64) error { + r._sportsType = _sportsType + r.Set("sports_type", _sportsType) + return nil +} + +// SportsType Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetSportsType() int64 { + return r._sportsType +} +// Num Setter +// 运动量 +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetNum(_num string) error { + r._num = _num + r.Set("num", _num) + return nil +} + +// Num Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetNum() string { + return r._num +} +// Unit Setter +// 运动量单位 1.步数(跑步、健走、椭圆机、登山);2.趟数(游泳);3.平均踏频(骑行); +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetUnit(_unit int64) error { + r._unit = _unit + r.Set("unit", _unit) + return nil +} + +// Unit Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetUnit() int64 { + return r._unit +} +// Calorie Setter +// 运动消耗卡路里 单位:卡 +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetCalorie(_calorie string) error { + r._calorie = _calorie + r.Set("calorie", _calorie) + return nil +} + +// Calorie Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetCalorie() string { + return r._calorie +} +// Match Setter +// 所属赛事(有就传,阿里体育较依赖此字段) +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetMatch(_match string) error { + r._match = _match + r.Set("match", _match) + return nil +} + +// Match Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetMatch() string { + return r._match +} +// Distance Setter +// 运动距离 单位:米(有就传,阿里体育较依赖此字段) +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetDistance(_distance string) error { + r._distance = _distance + r.Set("distance", _distance) + return nil +} + +// Distance Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetDistance() string { + return r._distance +} +// Time Setter +// 运动时长 单位:秒(有就传,阿里体育较依赖此字段) +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetTime(_time string) error { + r._time = _time + r.Set("time", _time) + return nil +} + +// Time Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetTime() string { + return r._time +} +// Country Setter +// 国家(中英文/运动发生地点,如有就传) +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetCountry(_country string) error { + r._country = _country + r.Set("country", _country) + return nil +} + +// Country Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetCountry() string { + return r._country +} +// Province Setter +// 省份(中英文/运动发生地点,如有就传) +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetProvince(_province string) error { + r._province = _province + r.Set("province", _province) + return nil +} + +// Province Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetProvince() string { + return r._province +} +// City Setter +// 城市(中英文/运动发生地点,如有就传) +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetCity(_city string) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetCity() string { + return r._city +} +// StartPoint Setter +// 开始运动地点经纬度,格式:1,2 (1为经度,2为纬度) +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetStartPoint(_startPoint string) error { + r._startPoint = _startPoint + r.Set("start_point", _startPoint) + return nil +} + +// StartPoint Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetStartPoint() string { + return r._startPoint +} +// EndPoint Setter +// 结束运动地点经纬度,格式:1,2 (1为经度,2为纬度) +func (r *AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) SetEndPoint(_endPoint string) error { + r._endPoint = _endPoint + r.Set("end_point", _endPoint) + return nil +} + +// EndPoint Getter +func (r AlibabaAlisportsDataSportsSyncsportsdataAPIRequest) GetEndPoint() string { + return r._endPoint +} diff --git a/model/alisports/AlibabaAlisportsDataSportsSyncsportsdataAPIResponse.go b/model/alisports/AlibabaAlisportsDataSportsSyncsportsdataAPIResponse.go new file mode 100644 index 0000000000..ebac657415 --- /dev/null +++ b/model/alisports/AlibabaAlisportsDataSportsSyncsportsdataAPIResponse.go @@ -0,0 +1,29 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育数据中心用户运动数据同步接口 API返回值 +alibaba.alisports.data.sports.syncsportsdata + +阿里体育数据中心用户运动数据同步接口 +*/ +type AlibabaAlisportsDataSportsSyncsportsdataAPIResponse struct { + model.CommonResponse + AlibabaAlisportsDataSportsSyncsportsdataAPIResponseModel +} + +// 阿里体育数据中心用户运动数据同步接口 成功返回结果 +type AlibabaAlisportsDataSportsSyncsportsdataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_data_sports_syncsportsdata_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alisp_code + AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` + // alisp_msg + AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsDataSportsSyncsportsdataResponse.go b/model/alisports/AlibabaAlisportsDataSportsSyncsportsdataResponse.go deleted file mode 100644 index 2376268824..0000000000 --- a/model/alisports/AlibabaAlisportsDataSportsSyncsportsdataResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里体育数据中心用户运动数据同步接口 API返回值 -alibaba.alisports.data.sports.syncsportsdata - -阿里体育数据中心用户运动数据同步接口 -*/ -type AlibabaAlisportsDataSportsSyncsportsdataAPIResponse struct { - model.CommonResponse - AlibabaAlisportsDataSportsSyncsportsdataResponse -} - -// 阿里体育数据中心用户运动数据同步接口 成功返回结果 -type AlibabaAlisportsDataSportsSyncsportsdataResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_data_sports_syncsportsdata_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alisp_code - AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` - // alisp_msg - AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsDataSportsSyncstatdataAPIRequest.go b/model/alisports/AlibabaAlisportsDataSportsSyncstatdataAPIRequest.go new file mode 100644 index 0000000000..a7f2cadc59 --- /dev/null +++ b/model/alisports/AlibabaAlisportsDataSportsSyncstatdataAPIRequest.go @@ -0,0 +1,192 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育数据中心用户当天累积数据同步接口 API请求 +alibaba.alisports.data.sports.syncstatdata + +阿里体育数据中心用户当天累积数据同步接口 +*/ +type AlibabaAlisportsDataSportsSyncstatdataAPIRequest struct { + model.Params + // 应用appkey + _alispAppKey string + // 时间戳精确到秒 + _alispTime string + // 签名 + _alispSign string + // 阿里体育用户id + _aliuid string + // 运动步数 + _steps string + // 消耗卡路里 单位:卡 + _calorie string + // 运动距离 单位:米 + _distance string + // 日期 格式:y-m-d h:i:s + _time string + // 设备类型:1手环 + _deviceType string + // 设备名 + _deviceName string + // 设备型号 + _deviceModel string +} + +// 初始化AlibabaAlisportsDataSportsSyncstatdataAPIRequest对象 +func NewAlibabaAlisportsDataSportsSyncstatdataRequest() *AlibabaAlisportsDataSportsSyncstatdataAPIRequest{ + return &AlibabaAlisportsDataSportsSyncstatdataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsDataSportsSyncstatdataAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.data.sports.syncstatdata" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsDataSportsSyncstatdataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlispAppKey Setter +// 应用appkey +func (r *AlibabaAlisportsDataSportsSyncstatdataAPIRequest) SetAlispAppKey(_alispAppKey string) error { + r._alispAppKey = _alispAppKey + r.Set("alisp_app_key", _alispAppKey) + return nil +} + +// AlispAppKey Getter +func (r AlibabaAlisportsDataSportsSyncstatdataAPIRequest) GetAlispAppKey() string { + return r._alispAppKey +} +// AlispTime Setter +// 时间戳精确到秒 +func (r *AlibabaAlisportsDataSportsSyncstatdataAPIRequest) SetAlispTime(_alispTime string) error { + r._alispTime = _alispTime + r.Set("alisp_time", _alispTime) + return nil +} + +// AlispTime Getter +func (r AlibabaAlisportsDataSportsSyncstatdataAPIRequest) GetAlispTime() string { + return r._alispTime +} +// AlispSign Setter +// 签名 +func (r *AlibabaAlisportsDataSportsSyncstatdataAPIRequest) SetAlispSign(_alispSign string) error { + r._alispSign = _alispSign + r.Set("alisp_sign", _alispSign) + return nil +} + +// AlispSign Getter +func (r AlibabaAlisportsDataSportsSyncstatdataAPIRequest) GetAlispSign() string { + return r._alispSign +} +// Aliuid Setter +// 阿里体育用户id +func (r *AlibabaAlisportsDataSportsSyncstatdataAPIRequest) SetAliuid(_aliuid string) error { + r._aliuid = _aliuid + r.Set("aliuid", _aliuid) + return nil +} + +// Aliuid Getter +func (r AlibabaAlisportsDataSportsSyncstatdataAPIRequest) GetAliuid() string { + return r._aliuid +} +// Steps Setter +// 运动步数 +func (r *AlibabaAlisportsDataSportsSyncstatdataAPIRequest) SetSteps(_steps string) error { + r._steps = _steps + r.Set("steps", _steps) + return nil +} + +// Steps Getter +func (r AlibabaAlisportsDataSportsSyncstatdataAPIRequest) GetSteps() string { + return r._steps +} +// Calorie Setter +// 消耗卡路里 单位:卡 +func (r *AlibabaAlisportsDataSportsSyncstatdataAPIRequest) SetCalorie(_calorie string) error { + r._calorie = _calorie + r.Set("calorie", _calorie) + return nil +} + +// Calorie Getter +func (r AlibabaAlisportsDataSportsSyncstatdataAPIRequest) GetCalorie() string { + return r._calorie +} +// Distance Setter +// 运动距离 单位:米 +func (r *AlibabaAlisportsDataSportsSyncstatdataAPIRequest) SetDistance(_distance string) error { + r._distance = _distance + r.Set("distance", _distance) + return nil +} + +// Distance Getter +func (r AlibabaAlisportsDataSportsSyncstatdataAPIRequest) GetDistance() string { + return r._distance +} +// Time Setter +// 日期 格式:y-m-d h:i:s +func (r *AlibabaAlisportsDataSportsSyncstatdataAPIRequest) SetTime(_time string) error { + r._time = _time + r.Set("time", _time) + return nil +} + +// Time Getter +func (r AlibabaAlisportsDataSportsSyncstatdataAPIRequest) GetTime() string { + return r._time +} +// DeviceType Setter +// 设备类型:1手环 +func (r *AlibabaAlisportsDataSportsSyncstatdataAPIRequest) SetDeviceType(_deviceType string) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r AlibabaAlisportsDataSportsSyncstatdataAPIRequest) GetDeviceType() string { + return r._deviceType +} +// DeviceName Setter +// 设备名 +func (r *AlibabaAlisportsDataSportsSyncstatdataAPIRequest) SetDeviceName(_deviceName string) error { + r._deviceName = _deviceName + r.Set("device_name", _deviceName) + return nil +} + +// DeviceName Getter +func (r AlibabaAlisportsDataSportsSyncstatdataAPIRequest) GetDeviceName() string { + return r._deviceName +} +// DeviceModel Setter +// 设备型号 +func (r *AlibabaAlisportsDataSportsSyncstatdataAPIRequest) SetDeviceModel(_deviceModel string) error { + r._deviceModel = _deviceModel + r.Set("device_model", _deviceModel) + return nil +} + +// DeviceModel Getter +func (r AlibabaAlisportsDataSportsSyncstatdataAPIRequest) GetDeviceModel() string { + return r._deviceModel +} diff --git a/model/alisports/AlibabaAlisportsDataSportsSyncstatdataAPIResponse.go b/model/alisports/AlibabaAlisportsDataSportsSyncstatdataAPIResponse.go new file mode 100644 index 0000000000..a9e087259a --- /dev/null +++ b/model/alisports/AlibabaAlisportsDataSportsSyncstatdataAPIResponse.go @@ -0,0 +1,29 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育数据中心用户当天累积数据同步接口 API返回值 +alibaba.alisports.data.sports.syncstatdata + +阿里体育数据中心用户当天累积数据同步接口 +*/ +type AlibabaAlisportsDataSportsSyncstatdataAPIResponse struct { + model.CommonResponse + AlibabaAlisportsDataSportsSyncstatdataAPIResponseModel +} + +// 阿里体育数据中心用户当天累积数据同步接口 成功返回结果 +type AlibabaAlisportsDataSportsSyncstatdataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_data_sports_syncstatdata_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alisp_code + AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` + // alisp_msg + AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsDataSportsSyncstatdataResponse.go b/model/alisports/AlibabaAlisportsDataSportsSyncstatdataResponse.go deleted file mode 100644 index 92489c9a42..0000000000 --- a/model/alisports/AlibabaAlisportsDataSportsSyncstatdataResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里体育数据中心用户当天累积数据同步接口 API返回值 -alibaba.alisports.data.sports.syncstatdata - -阿里体育数据中心用户当天累积数据同步接口 -*/ -type AlibabaAlisportsDataSportsSyncstatdataAPIResponse struct { - model.CommonResponse - AlibabaAlisportsDataSportsSyncstatdataResponse -} - -// 阿里体育数据中心用户当天累积数据同步接口 成功返回结果 -type AlibabaAlisportsDataSportsSyncstatdataResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_data_sports_syncstatdata_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alisp_code - AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` - // alisp_msg - AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsDataSportsSyncuserdataAPIRequest.go b/model/alisports/AlibabaAlisportsDataSportsSyncuserdataAPIRequest.go new file mode 100644 index 0000000000..8b40870980 --- /dev/null +++ b/model/alisports/AlibabaAlisportsDataSportsSyncuserdataAPIRequest.go @@ -0,0 +1,262 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育数据中心用户个人信息同步接口 API请求 +alibaba.alisports.data.sports.syncuserdata + +阿里体育数据中心用户个人信息同步接口 +*/ +type AlibabaAlisportsDataSportsSyncuserdataAPIRequest struct { + model.Params + // 应用appkey + _alispAppKey string + // 基础代谢率 + _metabolize string + // 蛋白质含量 + _protein string + // 骨量 + _bone string + // 水分率 + _water string + // 肌肉率 + _muscle string + // 体脂率 + _fat string + // 静息心率,单位:次/每分 + _heartRate int64 + // 体重,单位kg + _weight string + // 身高,单位m + _height string + // 年龄 + _age int64 + // 三方主键id,唯一标识数据 + _dataId string + // 阿里体育用户id + _aliuid string + // 接口签名 + _alispSign string + // 时间戳精确到秒 + _alispTime string + // 日期 格式:y-m-d h:i:s + _time string +} + +// 初始化AlibabaAlisportsDataSportsSyncuserdataAPIRequest对象 +func NewAlibabaAlisportsDataSportsSyncuserdataRequest() *AlibabaAlisportsDataSportsSyncuserdataAPIRequest{ + return &AlibabaAlisportsDataSportsSyncuserdataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsDataSportsSyncuserdataAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.data.sports.syncuserdata" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsDataSportsSyncuserdataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlispAppKey Setter +// 应用appkey +func (r *AlibabaAlisportsDataSportsSyncuserdataAPIRequest) SetAlispAppKey(_alispAppKey string) error { + r._alispAppKey = _alispAppKey + r.Set("alisp_app_key", _alispAppKey) + return nil +} + +// AlispAppKey Getter +func (r AlibabaAlisportsDataSportsSyncuserdataAPIRequest) GetAlispAppKey() string { + return r._alispAppKey +} +// Metabolize Setter +// 基础代谢率 +func (r *AlibabaAlisportsDataSportsSyncuserdataAPIRequest) SetMetabolize(_metabolize string) error { + r._metabolize = _metabolize + r.Set("metabolize", _metabolize) + return nil +} + +// Metabolize Getter +func (r AlibabaAlisportsDataSportsSyncuserdataAPIRequest) GetMetabolize() string { + return r._metabolize +} +// Protein Setter +// 蛋白质含量 +func (r *AlibabaAlisportsDataSportsSyncuserdataAPIRequest) SetProtein(_protein string) error { + r._protein = _protein + r.Set("protein", _protein) + return nil +} + +// Protein Getter +func (r AlibabaAlisportsDataSportsSyncuserdataAPIRequest) GetProtein() string { + return r._protein +} +// Bone Setter +// 骨量 +func (r *AlibabaAlisportsDataSportsSyncuserdataAPIRequest) SetBone(_bone string) error { + r._bone = _bone + r.Set("bone", _bone) + return nil +} + +// Bone Getter +func (r AlibabaAlisportsDataSportsSyncuserdataAPIRequest) GetBone() string { + return r._bone +} +// Water Setter +// 水分率 +func (r *AlibabaAlisportsDataSportsSyncuserdataAPIRequest) SetWater(_water string) error { + r._water = _water + r.Set("water", _water) + return nil +} + +// Water Getter +func (r AlibabaAlisportsDataSportsSyncuserdataAPIRequest) GetWater() string { + return r._water +} +// Muscle Setter +// 肌肉率 +func (r *AlibabaAlisportsDataSportsSyncuserdataAPIRequest) SetMuscle(_muscle string) error { + r._muscle = _muscle + r.Set("muscle", _muscle) + return nil +} + +// Muscle Getter +func (r AlibabaAlisportsDataSportsSyncuserdataAPIRequest) GetMuscle() string { + return r._muscle +} +// Fat Setter +// 体脂率 +func (r *AlibabaAlisportsDataSportsSyncuserdataAPIRequest) SetFat(_fat string) error { + r._fat = _fat + r.Set("fat", _fat) + return nil +} + +// Fat Getter +func (r AlibabaAlisportsDataSportsSyncuserdataAPIRequest) GetFat() string { + return r._fat +} +// HeartRate Setter +// 静息心率,单位:次/每分 +func (r *AlibabaAlisportsDataSportsSyncuserdataAPIRequest) SetHeartRate(_heartRate int64) error { + r._heartRate = _heartRate + r.Set("heart_rate", _heartRate) + return nil +} + +// HeartRate Getter +func (r AlibabaAlisportsDataSportsSyncuserdataAPIRequest) GetHeartRate() int64 { + return r._heartRate +} +// Weight Setter +// 体重,单位kg +func (r *AlibabaAlisportsDataSportsSyncuserdataAPIRequest) SetWeight(_weight string) error { + r._weight = _weight + r.Set("weight", _weight) + return nil +} + +// Weight Getter +func (r AlibabaAlisportsDataSportsSyncuserdataAPIRequest) GetWeight() string { + return r._weight +} +// Height Setter +// 身高,单位m +func (r *AlibabaAlisportsDataSportsSyncuserdataAPIRequest) SetHeight(_height string) error { + r._height = _height + r.Set("height", _height) + return nil +} + +// Height Getter +func (r AlibabaAlisportsDataSportsSyncuserdataAPIRequest) GetHeight() string { + return r._height +} +// Age Setter +// 年龄 +func (r *AlibabaAlisportsDataSportsSyncuserdataAPIRequest) SetAge(_age int64) error { + r._age = _age + r.Set("age", _age) + return nil +} + +// Age Getter +func (r AlibabaAlisportsDataSportsSyncuserdataAPIRequest) GetAge() int64 { + return r._age +} +// DataId Setter +// 三方主键id,唯一标识数据 +func (r *AlibabaAlisportsDataSportsSyncuserdataAPIRequest) SetDataId(_dataId string) error { + r._dataId = _dataId + r.Set("data_id", _dataId) + return nil +} + +// DataId Getter +func (r AlibabaAlisportsDataSportsSyncuserdataAPIRequest) GetDataId() string { + return r._dataId +} +// Aliuid Setter +// 阿里体育用户id +func (r *AlibabaAlisportsDataSportsSyncuserdataAPIRequest) SetAliuid(_aliuid string) error { + r._aliuid = _aliuid + r.Set("aliuid", _aliuid) + return nil +} + +// Aliuid Getter +func (r AlibabaAlisportsDataSportsSyncuserdataAPIRequest) GetAliuid() string { + return r._aliuid +} +// AlispSign Setter +// 接口签名 +func (r *AlibabaAlisportsDataSportsSyncuserdataAPIRequest) SetAlispSign(_alispSign string) error { + r._alispSign = _alispSign + r.Set("alisp_sign", _alispSign) + return nil +} + +// AlispSign Getter +func (r AlibabaAlisportsDataSportsSyncuserdataAPIRequest) GetAlispSign() string { + return r._alispSign +} +// AlispTime Setter +// 时间戳精确到秒 +func (r *AlibabaAlisportsDataSportsSyncuserdataAPIRequest) SetAlispTime(_alispTime string) error { + r._alispTime = _alispTime + r.Set("alisp_time", _alispTime) + return nil +} + +// AlispTime Getter +func (r AlibabaAlisportsDataSportsSyncuserdataAPIRequest) GetAlispTime() string { + return r._alispTime +} +// Time Setter +// 日期 格式:y-m-d h:i:s +func (r *AlibabaAlisportsDataSportsSyncuserdataAPIRequest) SetTime(_time string) error { + r._time = _time + r.Set("time", _time) + return nil +} + +// Time Getter +func (r AlibabaAlisportsDataSportsSyncuserdataAPIRequest) GetTime() string { + return r._time +} diff --git a/model/alisports/AlibabaAlisportsDataSportsSyncuserdataAPIResponse.go b/model/alisports/AlibabaAlisportsDataSportsSyncuserdataAPIResponse.go new file mode 100644 index 0000000000..663c3bbac2 --- /dev/null +++ b/model/alisports/AlibabaAlisportsDataSportsSyncuserdataAPIResponse.go @@ -0,0 +1,29 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育数据中心用户个人信息同步接口 API返回值 +alibaba.alisports.data.sports.syncuserdata + +阿里体育数据中心用户个人信息同步接口 +*/ +type AlibabaAlisportsDataSportsSyncuserdataAPIResponse struct { + model.CommonResponse + AlibabaAlisportsDataSportsSyncuserdataAPIResponseModel +} + +// 阿里体育数据中心用户个人信息同步接口 成功返回结果 +type AlibabaAlisportsDataSportsSyncuserdataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_data_sports_syncuserdata_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alisp_code + AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` + // alisp_msg + AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsDataSportsSyncuserdataResponse.go b/model/alisports/AlibabaAlisportsDataSportsSyncuserdataResponse.go deleted file mode 100644 index 99ec5160dd..0000000000 --- a/model/alisports/AlibabaAlisportsDataSportsSyncuserdataResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里体育数据中心用户个人信息同步接口 API返回值 -alibaba.alisports.data.sports.syncuserdata - -阿里体育数据中心用户个人信息同步接口 -*/ -type AlibabaAlisportsDataSportsSyncuserdataAPIResponse struct { - model.CommonResponse - AlibabaAlisportsDataSportsSyncuserdataResponse -} - -// 阿里体育数据中心用户个人信息同步接口 成功返回结果 -type AlibabaAlisportsDataSportsSyncuserdataResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_data_sports_syncuserdata_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alisp_code - AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` - // alisp_msg - AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest.go b/model/alisports/AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest.go new file mode 100644 index 0000000000..913f071a5f --- /dev/null +++ b/model/alisports/AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest.go @@ -0,0 +1,374 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育接入体脂秤数据 API请求 +alibaba.alisports.datacenter.datasync.fatscaledata + +阿里体育数据中心接入体脂秤数据 +*/ +type AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest struct { + model.Params + // 阿里体育用户id + _aliuid string + // 测量时间,秒级别时间戳 + _time int64 + // 年龄 + _age int64 + // 身高,单位cm + _height int64 + // 体重,单位kg + _weight *BigDecimal + // bmi + _bmi *BigDecimal + // 基础代谢率,单位卡 + _basalMetabolicRate *BigDecimal + // 去脂体重,单位kg + _fatFreeMass *BigDecimal + // 体脂率,百分比12.4%,传12.4 + _bodyFatRate *BigDecimal + // 脂肪重量,单位kg + _fatMass *BigDecimal + // 皮下脂肪率,百分比 + _subcutaneousFatRate *BigDecimal + // 内脏脂肪率,百分比 + _visceralFatIndex *BigDecimal + // 肌肉率,百分比 + _muscleRate *BigDecimal + // 肌肉重量,单位kg + _muscleMass *BigDecimal + // 骨骼肌率,百分比 + _skeletalMuscleRate *BigDecimal + // 水分率,百分比 + _moistureRate *BigDecimal + // 蛋白质率,百分比 + _proteinRate *BigDecimal + // 骨量,单位kg + _boneMass *BigDecimal + // 体重指数 + _weightIndex int64 + // 身体年龄 + _bodyAge int64 + // 设备类型:1.体脂秤,2智能手表,3智能手环 + _deviceType int64 + // 设备名称 + _deviceName string + // 设备编号 + _deviceModel string + // 三方唯一id + _messageId string +} + +// 初始化AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest对象 +func NewAlibabaAlisportsDatacenterDatasyncFatscaledataRequest() *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest{ + return &AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.datacenter.datasync.fatscaledata" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Aliuid Setter +// 阿里体育用户id +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetAliuid(_aliuid string) error { + r._aliuid = _aliuid + r.Set("aliuid", _aliuid) + return nil +} + +// Aliuid Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetAliuid() string { + return r._aliuid +} +// Time Setter +// 测量时间,秒级别时间戳 +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetTime(_time int64) error { + r._time = _time + r.Set("time", _time) + return nil +} + +// Time Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetTime() int64 { + return r._time +} +// Age Setter +// 年龄 +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetAge(_age int64) error { + r._age = _age + r.Set("age", _age) + return nil +} + +// Age Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetAge() int64 { + return r._age +} +// Height Setter +// 身高,单位cm +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetHeight(_height int64) error { + r._height = _height + r.Set("height", _height) + return nil +} + +// Height Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetHeight() int64 { + return r._height +} +// Weight Setter +// 体重,单位kg +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetWeight(_weight *BigDecimal) error { + r._weight = _weight + r.Set("weight", _weight) + return nil +} + +// Weight Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetWeight() *BigDecimal { + return r._weight +} +// Bmi Setter +// bmi +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetBmi(_bmi *BigDecimal) error { + r._bmi = _bmi + r.Set("bmi", _bmi) + return nil +} + +// Bmi Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetBmi() *BigDecimal { + return r._bmi +} +// BasalMetabolicRate Setter +// 基础代谢率,单位卡 +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetBasalMetabolicRate(_basalMetabolicRate *BigDecimal) error { + r._basalMetabolicRate = _basalMetabolicRate + r.Set("basal_metabolic_rate", _basalMetabolicRate) + return nil +} + +// BasalMetabolicRate Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetBasalMetabolicRate() *BigDecimal { + return r._basalMetabolicRate +} +// FatFreeMass Setter +// 去脂体重,单位kg +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetFatFreeMass(_fatFreeMass *BigDecimal) error { + r._fatFreeMass = _fatFreeMass + r.Set("fat_free_mass", _fatFreeMass) + return nil +} + +// FatFreeMass Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetFatFreeMass() *BigDecimal { + return r._fatFreeMass +} +// BodyFatRate Setter +// 体脂率,百分比12.4%,传12.4 +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetBodyFatRate(_bodyFatRate *BigDecimal) error { + r._bodyFatRate = _bodyFatRate + r.Set("body_fat_rate", _bodyFatRate) + return nil +} + +// BodyFatRate Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetBodyFatRate() *BigDecimal { + return r._bodyFatRate +} +// FatMass Setter +// 脂肪重量,单位kg +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetFatMass(_fatMass *BigDecimal) error { + r._fatMass = _fatMass + r.Set("fat_mass", _fatMass) + return nil +} + +// FatMass Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetFatMass() *BigDecimal { + return r._fatMass +} +// SubcutaneousFatRate Setter +// 皮下脂肪率,百分比 +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetSubcutaneousFatRate(_subcutaneousFatRate *BigDecimal) error { + r._subcutaneousFatRate = _subcutaneousFatRate + r.Set("subcutaneous_fat_rate", _subcutaneousFatRate) + return nil +} + +// SubcutaneousFatRate Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetSubcutaneousFatRate() *BigDecimal { + return r._subcutaneousFatRate +} +// VisceralFatIndex Setter +// 内脏脂肪率,百分比 +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetVisceralFatIndex(_visceralFatIndex *BigDecimal) error { + r._visceralFatIndex = _visceralFatIndex + r.Set("visceral_fat_index", _visceralFatIndex) + return nil +} + +// VisceralFatIndex Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetVisceralFatIndex() *BigDecimal { + return r._visceralFatIndex +} +// MuscleRate Setter +// 肌肉率,百分比 +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetMuscleRate(_muscleRate *BigDecimal) error { + r._muscleRate = _muscleRate + r.Set("muscle_rate", _muscleRate) + return nil +} + +// MuscleRate Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetMuscleRate() *BigDecimal { + return r._muscleRate +} +// MuscleMass Setter +// 肌肉重量,单位kg +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetMuscleMass(_muscleMass *BigDecimal) error { + r._muscleMass = _muscleMass + r.Set("muscle_mass", _muscleMass) + return nil +} + +// MuscleMass Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetMuscleMass() *BigDecimal { + return r._muscleMass +} +// SkeletalMuscleRate Setter +// 骨骼肌率,百分比 +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetSkeletalMuscleRate(_skeletalMuscleRate *BigDecimal) error { + r._skeletalMuscleRate = _skeletalMuscleRate + r.Set("skeletal_muscle_rate", _skeletalMuscleRate) + return nil +} + +// SkeletalMuscleRate Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetSkeletalMuscleRate() *BigDecimal { + return r._skeletalMuscleRate +} +// MoistureRate Setter +// 水分率,百分比 +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetMoistureRate(_moistureRate *BigDecimal) error { + r._moistureRate = _moistureRate + r.Set("moisture_rate", _moistureRate) + return nil +} + +// MoistureRate Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetMoistureRate() *BigDecimal { + return r._moistureRate +} +// ProteinRate Setter +// 蛋白质率,百分比 +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetProteinRate(_proteinRate *BigDecimal) error { + r._proteinRate = _proteinRate + r.Set("protein_rate", _proteinRate) + return nil +} + +// ProteinRate Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetProteinRate() *BigDecimal { + return r._proteinRate +} +// BoneMass Setter +// 骨量,单位kg +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetBoneMass(_boneMass *BigDecimal) error { + r._boneMass = _boneMass + r.Set("bone_mass", _boneMass) + return nil +} + +// BoneMass Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetBoneMass() *BigDecimal { + return r._boneMass +} +// WeightIndex Setter +// 体重指数 +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetWeightIndex(_weightIndex int64) error { + r._weightIndex = _weightIndex + r.Set("weight_index", _weightIndex) + return nil +} + +// WeightIndex Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetWeightIndex() int64 { + return r._weightIndex +} +// BodyAge Setter +// 身体年龄 +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetBodyAge(_bodyAge int64) error { + r._bodyAge = _bodyAge + r.Set("body_age", _bodyAge) + return nil +} + +// BodyAge Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetBodyAge() int64 { + return r._bodyAge +} +// DeviceType Setter +// 设备类型:1.体脂秤,2智能手表,3智能手环 +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetDeviceType(_deviceType int64) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetDeviceType() int64 { + return r._deviceType +} +// DeviceName Setter +// 设备名称 +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetDeviceName(_deviceName string) error { + r._deviceName = _deviceName + r.Set("device_name", _deviceName) + return nil +} + +// DeviceName Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetDeviceName() string { + return r._deviceName +} +// DeviceModel Setter +// 设备编号 +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetDeviceModel(_deviceModel string) error { + r._deviceModel = _deviceModel + r.Set("device_model", _deviceModel) + return nil +} + +// DeviceModel Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetDeviceModel() string { + return r._deviceModel +} +// MessageId Setter +// 三方唯一id +func (r *AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) SetMessageId(_messageId string) error { + r._messageId = _messageId + r.Set("message_id", _messageId) + return nil +} + +// MessageId Getter +func (r AlibabaAlisportsDatacenterDatasyncFatscaledataAPIRequest) GetMessageId() string { + return r._messageId +} diff --git a/model/alisports/AlibabaAlisportsDatacenterDatasyncFatscaledataAPIResponse.go b/model/alisports/AlibabaAlisportsDatacenterDatasyncFatscaledataAPIResponse.go new file mode 100644 index 0000000000..c8faaf4916 --- /dev/null +++ b/model/alisports/AlibabaAlisportsDatacenterDatasyncFatscaledataAPIResponse.go @@ -0,0 +1,33 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育接入体脂秤数据 API返回值 +alibaba.alisports.datacenter.datasync.fatscaledata + +阿里体育数据中心接入体脂秤数据 +*/ +type AlibabaAlisportsDatacenterDatasyncFatscaledataAPIResponse struct { + model.CommonResponse + AlibabaAlisportsDatacenterDatasyncFatscaledataAPIResponseModel +} + +// 阿里体育接入体脂秤数据 成功返回结果 +type AlibabaAlisportsDatacenterDatasyncFatscaledataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_datacenter_datasync_fatscaledata_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回消息 + RsMsg string `json:"rs_msg,omitempty" xml:"rs_msg,omitempty"` + // 返回码 + RsCode string `json:"rs_code,omitempty" xml:"rs_code,omitempty"` + // 是否成功 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 返回对象 + Model bool `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsDatacenterDatasyncFatscaledataResponse.go b/model/alisports/AlibabaAlisportsDatacenterDatasyncFatscaledataResponse.go deleted file mode 100644 index 9356a9ebf5..0000000000 --- a/model/alisports/AlibabaAlisportsDatacenterDatasyncFatscaledataResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里体育接入体脂秤数据 API返回值 -alibaba.alisports.datacenter.datasync.fatscaledata - -阿里体育数据中心接入体脂秤数据 -*/ -type AlibabaAlisportsDatacenterDatasyncFatscaledataAPIResponse struct { - model.CommonResponse - AlibabaAlisportsDatacenterDatasyncFatscaledataResponse -} - -// 阿里体育接入体脂秤数据 成功返回结果 -type AlibabaAlisportsDatacenterDatasyncFatscaledataResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_datacenter_datasync_fatscaledata_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回消息 - RsMsg string `json:"rs_msg,omitempty" xml:"rs_msg,omitempty"` - // 返回码 - RsCode string `json:"rs_code,omitempty" xml:"rs_code,omitempty"` - // 是否成功 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` - // 返回对象 - Model bool `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest.go b/model/alisports/AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest.go new file mode 100644 index 0000000000..fe32ab41ae --- /dev/null +++ b/model/alisports/AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest.go @@ -0,0 +1,486 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育运动数据同步统一接口 API请求 +alibaba.alisports.datacenter.datasync.sportsdatas + +给单方提供同步运动数据到阿里体育的接口 +*/ +type AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest struct { + model.Params + // 用户阿里体育id + _userId string + // 运动一级分类 + _sportsCat1Id int64 + // 运动二级分类 + _sportsCat2Id int64 + // 运动三级分类 + _sportsCat3Id string + // 运动开始时间,单位:毫秒 + _sportsStartTime int64 + // 运动结束时间,单位:毫秒 + _sportsEndTime int64 + // 时区 + _timezone int64 + // 最小心率 + _minHeartrate int64 + // 最大心率 + _maxHeartrate int64 + // 平均心率 + _avgHeartrate int64 + // 速度,单位:千米/小时 + _speed string + // 动作计数,如:步数、滑水次数 + _actionCount string + // 路径 + _path string + // 数据原始来源 + _subChannel string + // 里程,单位:米 + _mileage int64 + // 爬高,单位:米 + _climb int64 + // 运动持续时间,单位:毫秒 + _durationTime int64 + // 开始位置,格式:经度,维度 + _startPoint string + // 预留字段 + _resultOther string + // 最大速度,单位:千米/小时 + _maxSpeed string + // 结束位置,格式[经度,纬度] + _endPoint string + // 过程数据Json + _stage string + // 频率 + _powerFrequency int64 + // 消耗卡路里,单位:千卡 + _calorie string + // 路径节点数据下载地址 + _pathDataUrl string + // 过程数据下载地址 + _stageDataUrl string + // 数据类型:0.普通数据 1.赛事数据 + _dataType int64 + // 设备类型 + _deviceType int64 + // 设备型号(厂商) + _deviceModel string + // 设备名称 + _deviceName string + // 三方数据唯一码 + _messageId string + // 版本号 + _version string +} + +// 初始化AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest对象 +func NewAlibabaAlisportsDatacenterDatasyncSportsdatasRequest() *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest{ + return &AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.datacenter.datasync.sportsdatas" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户阿里体育id +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetUserId() string { + return r._userId +} +// SportsCat1Id Setter +// 运动一级分类 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetSportsCat1Id(_sportsCat1Id int64) error { + r._sportsCat1Id = _sportsCat1Id + r.Set("sports_cat1_id", _sportsCat1Id) + return nil +} + +// SportsCat1Id Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetSportsCat1Id() int64 { + return r._sportsCat1Id +} +// SportsCat2Id Setter +// 运动二级分类 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetSportsCat2Id(_sportsCat2Id int64) error { + r._sportsCat2Id = _sportsCat2Id + r.Set("sports_cat2_id", _sportsCat2Id) + return nil +} + +// SportsCat2Id Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetSportsCat2Id() int64 { + return r._sportsCat2Id +} +// SportsCat3Id Setter +// 运动三级分类 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetSportsCat3Id(_sportsCat3Id string) error { + r._sportsCat3Id = _sportsCat3Id + r.Set("sports_cat3_id", _sportsCat3Id) + return nil +} + +// SportsCat3Id Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetSportsCat3Id() string { + return r._sportsCat3Id +} +// SportsStartTime Setter +// 运动开始时间,单位:毫秒 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetSportsStartTime(_sportsStartTime int64) error { + r._sportsStartTime = _sportsStartTime + r.Set("sports_start_time", _sportsStartTime) + return nil +} + +// SportsStartTime Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetSportsStartTime() int64 { + return r._sportsStartTime +} +// SportsEndTime Setter +// 运动结束时间,单位:毫秒 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetSportsEndTime(_sportsEndTime int64) error { + r._sportsEndTime = _sportsEndTime + r.Set("sports_end_time", _sportsEndTime) + return nil +} + +// SportsEndTime Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetSportsEndTime() int64 { + return r._sportsEndTime +} +// Timezone Setter +// 时区 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetTimezone(_timezone int64) error { + r._timezone = _timezone + r.Set("timezone", _timezone) + return nil +} + +// Timezone Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetTimezone() int64 { + return r._timezone +} +// MinHeartrate Setter +// 最小心率 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetMinHeartrate(_minHeartrate int64) error { + r._minHeartrate = _minHeartrate + r.Set("min_heartrate", _minHeartrate) + return nil +} + +// MinHeartrate Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetMinHeartrate() int64 { + return r._minHeartrate +} +// MaxHeartrate Setter +// 最大心率 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetMaxHeartrate(_maxHeartrate int64) error { + r._maxHeartrate = _maxHeartrate + r.Set("max_heartrate", _maxHeartrate) + return nil +} + +// MaxHeartrate Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetMaxHeartrate() int64 { + return r._maxHeartrate +} +// AvgHeartrate Setter +// 平均心率 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetAvgHeartrate(_avgHeartrate int64) error { + r._avgHeartrate = _avgHeartrate + r.Set("avg_heartrate", _avgHeartrate) + return nil +} + +// AvgHeartrate Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetAvgHeartrate() int64 { + return r._avgHeartrate +} +// Speed Setter +// 速度,单位:千米/小时 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetSpeed(_speed string) error { + r._speed = _speed + r.Set("speed", _speed) + return nil +} + +// Speed Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetSpeed() string { + return r._speed +} +// ActionCount Setter +// 动作计数,如:步数、滑水次数 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetActionCount(_actionCount string) error { + r._actionCount = _actionCount + r.Set("action_count", _actionCount) + return nil +} + +// ActionCount Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetActionCount() string { + return r._actionCount +} +// Path Setter +// 路径 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetPath(_path string) error { + r._path = _path + r.Set("path", _path) + return nil +} + +// Path Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetPath() string { + return r._path +} +// SubChannel Setter +// 数据原始来源 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetSubChannel(_subChannel string) error { + r._subChannel = _subChannel + r.Set("sub_channel", _subChannel) + return nil +} + +// SubChannel Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetSubChannel() string { + return r._subChannel +} +// Mileage Setter +// 里程,单位:米 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetMileage(_mileage int64) error { + r._mileage = _mileage + r.Set("mileage", _mileage) + return nil +} + +// Mileage Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetMileage() int64 { + return r._mileage +} +// Climb Setter +// 爬高,单位:米 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetClimb(_climb int64) error { + r._climb = _climb + r.Set("climb", _climb) + return nil +} + +// Climb Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetClimb() int64 { + return r._climb +} +// DurationTime Setter +// 运动持续时间,单位:毫秒 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetDurationTime(_durationTime int64) error { + r._durationTime = _durationTime + r.Set("duration_time", _durationTime) + return nil +} + +// DurationTime Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetDurationTime() int64 { + return r._durationTime +} +// StartPoint Setter +// 开始位置,格式:经度,维度 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetStartPoint(_startPoint string) error { + r._startPoint = _startPoint + r.Set("start_point", _startPoint) + return nil +} + +// StartPoint Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetStartPoint() string { + return r._startPoint +} +// ResultOther Setter +// 预留字段 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetResultOther(_resultOther string) error { + r._resultOther = _resultOther + r.Set("result_other", _resultOther) + return nil +} + +// ResultOther Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetResultOther() string { + return r._resultOther +} +// MaxSpeed Setter +// 最大速度,单位:千米/小时 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetMaxSpeed(_maxSpeed string) error { + r._maxSpeed = _maxSpeed + r.Set("max_speed", _maxSpeed) + return nil +} + +// MaxSpeed Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetMaxSpeed() string { + return r._maxSpeed +} +// EndPoint Setter +// 结束位置,格式[经度,纬度] +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetEndPoint(_endPoint string) error { + r._endPoint = _endPoint + r.Set("end_point", _endPoint) + return nil +} + +// EndPoint Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetEndPoint() string { + return r._endPoint +} +// Stage Setter +// 过程数据Json +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetStage(_stage string) error { + r._stage = _stage + r.Set("stage", _stage) + return nil +} + +// Stage Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetStage() string { + return r._stage +} +// PowerFrequency Setter +// 频率 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetPowerFrequency(_powerFrequency int64) error { + r._powerFrequency = _powerFrequency + r.Set("power_frequency", _powerFrequency) + return nil +} + +// PowerFrequency Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetPowerFrequency() int64 { + return r._powerFrequency +} +// Calorie Setter +// 消耗卡路里,单位:千卡 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetCalorie(_calorie string) error { + r._calorie = _calorie + r.Set("calorie", _calorie) + return nil +} + +// Calorie Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetCalorie() string { + return r._calorie +} +// PathDataUrl Setter +// 路径节点数据下载地址 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetPathDataUrl(_pathDataUrl string) error { + r._pathDataUrl = _pathDataUrl + r.Set("path_data_url", _pathDataUrl) + return nil +} + +// PathDataUrl Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetPathDataUrl() string { + return r._pathDataUrl +} +// StageDataUrl Setter +// 过程数据下载地址 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetStageDataUrl(_stageDataUrl string) error { + r._stageDataUrl = _stageDataUrl + r.Set("stage_data_url", _stageDataUrl) + return nil +} + +// StageDataUrl Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetStageDataUrl() string { + return r._stageDataUrl +} +// DataType Setter +// 数据类型:0.普通数据 1.赛事数据 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetDataType(_dataType int64) error { + r._dataType = _dataType + r.Set("data_type", _dataType) + return nil +} + +// DataType Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetDataType() int64 { + return r._dataType +} +// DeviceType Setter +// 设备类型 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetDeviceType(_deviceType int64) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetDeviceType() int64 { + return r._deviceType +} +// DeviceModel Setter +// 设备型号(厂商) +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetDeviceModel(_deviceModel string) error { + r._deviceModel = _deviceModel + r.Set("device_model", _deviceModel) + return nil +} + +// DeviceModel Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetDeviceModel() string { + return r._deviceModel +} +// DeviceName Setter +// 设备名称 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetDeviceName(_deviceName string) error { + r._deviceName = _deviceName + r.Set("device_name", _deviceName) + return nil +} + +// DeviceName Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetDeviceName() string { + return r._deviceName +} +// MessageId Setter +// 三方数据唯一码 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetMessageId(_messageId string) error { + r._messageId = _messageId + r.Set("message_id", _messageId) + return nil +} + +// MessageId Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetMessageId() string { + return r._messageId +} +// Version Setter +// 版本号 +func (r *AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) SetVersion(_version string) error { + r._version = _version + r.Set("version", _version) + return nil +} + +// Version Getter +func (r AlibabaAlisportsDatacenterDatasyncSportsdatasAPIRequest) GetVersion() string { + return r._version +} diff --git a/model/alisports/AlibabaAlisportsDatacenterDatasyncSportsdatasAPIResponse.go b/model/alisports/AlibabaAlisportsDatacenterDatasyncSportsdatasAPIResponse.go new file mode 100644 index 0000000000..b16c5cca5c --- /dev/null +++ b/model/alisports/AlibabaAlisportsDatacenterDatasyncSportsdatasAPIResponse.go @@ -0,0 +1,33 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育运动数据同步统一接口 API返回值 +alibaba.alisports.datacenter.datasync.sportsdatas + +给单方提供同步运动数据到阿里体育的接口 +*/ +type AlibabaAlisportsDatacenterDatasyncSportsdatasAPIResponse struct { + model.CommonResponse + AlibabaAlisportsDatacenterDatasyncSportsdatasAPIResponseModel +} + +// 阿里体育运动数据同步统一接口 成功返回结果 +type AlibabaAlisportsDatacenterDatasyncSportsdatasAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_datacenter_datasync_sportsdatas_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回描述 + RsMsg string `json:"rs_msg,omitempty" xml:"rs_msg,omitempty"` + // 返回码 + RsCode string `json:"rs_code,omitempty" xml:"rs_code,omitempty"` + // 是否成功 + RsSuccess bool `json:"rs_success,omitempty" xml:"rs_success,omitempty"` + // 返回值 + RsModel bool `json:"rs_model,omitempty" xml:"rs_model,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsDatacenterDatasyncSportsdatasResponse.go b/model/alisports/AlibabaAlisportsDatacenterDatasyncSportsdatasResponse.go deleted file mode 100644 index 3193a46c17..0000000000 --- a/model/alisports/AlibabaAlisportsDatacenterDatasyncSportsdatasResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里体育运动数据同步统一接口 API返回值 -alibaba.alisports.datacenter.datasync.sportsdatas - -给单方提供同步运动数据到阿里体育的接口 -*/ -type AlibabaAlisportsDatacenterDatasyncSportsdatasAPIResponse struct { - model.CommonResponse - AlibabaAlisportsDatacenterDatasyncSportsdatasResponse -} - -// 阿里体育运动数据同步统一接口 成功返回结果 -type AlibabaAlisportsDatacenterDatasyncSportsdatasResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_datacenter_datasync_sportsdatas_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回描述 - RsMsg string `json:"rs_msg,omitempty" xml:"rs_msg,omitempty"` - // 返回码 - RsCode string `json:"rs_code,omitempty" xml:"rs_code,omitempty"` - // 是否成功 - RsSuccess bool `json:"rs_success,omitempty" xml:"rs_success,omitempty"` - // 返回值 - RsModel bool `json:"rs_model,omitempty" xml:"rs_model,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest.go b/model/alisports/AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest.go new file mode 100644 index 0000000000..d8c60abb87 --- /dev/null +++ b/model/alisports/AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest.go @@ -0,0 +1,458 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育同步跑步机设备数据 API请求 +alibaba.alisports.datacenter.datasync.treadmill + +合作方向阿里体育同步跑步机设备的数据 +*/ +type AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest struct { + model.Params + // 阿里体育用户id + _userId string + // 运动开始时间,秒级别时间戳 + _startTime int64 + // 运动结束时间,秒级别时间戳 + _endTime int64 + // 时区编码,不传默认东八区 + _timezone string + // 运动位置经纬度 + _location string + // 国家编码,https://zh.wikipedia.org/wiki/%E5%9C%8B%E5%AE%B6%E5%9C%B0%E5%8D%80%E4%BB%A3%E7%A2%BC + _countryCode int64 + // 省编码, https://www.ip33.com/area_code.html + _provinceCode int64 + // 城市编码 + _cityCode int64 + // 平均速度,单位km/h + _speed *BigDecimal + // 最大速度,单位km/h + _maxSpeed *BigDecimal + // 平均步频 + _powerFrequency int64 + // 累计里程,单位:m + _mileage int64 + // 累计爬升,单位m + _climb int64 + // 运动持续时常,单位:秒 + _durationTime int64 + // 总步数 + _steps int64 + // 消耗总热量,单位:卡路里 + _calorie *BigDecimal + // 最大心率 + _maxHeartrate int64 + // 最小心率 + _minHeartrate int64 + // 平均心率 + _avgHeartrate int64 + // 过程数据收集间隔时间 + _collectTimeInterval int64 + // 过程数据收集间隔时间单位,1.毫秒 2.秒 3.分 4.小时 + _collectTimeUnit int64 + // 速度过程数据,单位km/h + _speedDatas []string + // 步频/踏频/桨频过程数据 + _motionFrequencyDatas []string + // 步幅/踏幅/桨幅过程数据 + _hrzMotionRangeDatas []string + // 配速过程数据 + _tempoDatas []string + // 心率过程数据 + _heartrateDatas []int64 + // 三方数据唯一id + _messageId string + // 设备类型:4.跑步机 5.单车 6.划船机 + _deviceType int64 + // 设备名称 + _deviceName string + // 设备型号 + _deviceModel string +} + +// 初始化AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest对象 +func NewAlibabaAlisportsDatacenterDatasyncTreadmillRequest() *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest{ + return &AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.datacenter.datasync.treadmill" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 阿里体育用户id +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetUserId() string { + return r._userId +} +// StartTime Setter +// 运动开始时间,秒级别时间戳 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetStartTime(_startTime int64) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetStartTime() int64 { + return r._startTime +} +// EndTime Setter +// 运动结束时间,秒级别时间戳 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetEndTime(_endTime int64) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetEndTime() int64 { + return r._endTime +} +// Timezone Setter +// 时区编码,不传默认东八区 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetTimezone(_timezone string) error { + r._timezone = _timezone + r.Set("timezone", _timezone) + return nil +} + +// Timezone Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetTimezone() string { + return r._timezone +} +// Location Setter +// 运动位置经纬度 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetLocation(_location string) error { + r._location = _location + r.Set("location", _location) + return nil +} + +// Location Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetLocation() string { + return r._location +} +// CountryCode Setter +// 国家编码,https://zh.wikipedia.org/wiki/%E5%9C%8B%E5%AE%B6%E5%9C%B0%E5%8D%80%E4%BB%A3%E7%A2%BC +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetCountryCode(_countryCode int64) error { + r._countryCode = _countryCode + r.Set("country_code", _countryCode) + return nil +} + +// CountryCode Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetCountryCode() int64 { + return r._countryCode +} +// ProvinceCode Setter +// 省编码, https://www.ip33.com/area_code.html +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetProvinceCode(_provinceCode int64) error { + r._provinceCode = _provinceCode + r.Set("province_code", _provinceCode) + return nil +} + +// ProvinceCode Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetProvinceCode() int64 { + return r._provinceCode +} +// CityCode Setter +// 城市编码 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetCityCode(_cityCode int64) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetCityCode() int64 { + return r._cityCode +} +// Speed Setter +// 平均速度,单位km/h +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetSpeed(_speed *BigDecimal) error { + r._speed = _speed + r.Set("speed", _speed) + return nil +} + +// Speed Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetSpeed() *BigDecimal { + return r._speed +} +// MaxSpeed Setter +// 最大速度,单位km/h +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetMaxSpeed(_maxSpeed *BigDecimal) error { + r._maxSpeed = _maxSpeed + r.Set("max_speed", _maxSpeed) + return nil +} + +// MaxSpeed Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetMaxSpeed() *BigDecimal { + return r._maxSpeed +} +// PowerFrequency Setter +// 平均步频 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetPowerFrequency(_powerFrequency int64) error { + r._powerFrequency = _powerFrequency + r.Set("power_frequency", _powerFrequency) + return nil +} + +// PowerFrequency Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetPowerFrequency() int64 { + return r._powerFrequency +} +// Mileage Setter +// 累计里程,单位:m +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetMileage(_mileage int64) error { + r._mileage = _mileage + r.Set("mileage", _mileage) + return nil +} + +// Mileage Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetMileage() int64 { + return r._mileage +} +// Climb Setter +// 累计爬升,单位m +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetClimb(_climb int64) error { + r._climb = _climb + r.Set("climb", _climb) + return nil +} + +// Climb Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetClimb() int64 { + return r._climb +} +// DurationTime Setter +// 运动持续时常,单位:秒 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetDurationTime(_durationTime int64) error { + r._durationTime = _durationTime + r.Set("duration_time", _durationTime) + return nil +} + +// DurationTime Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetDurationTime() int64 { + return r._durationTime +} +// Steps Setter +// 总步数 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetSteps(_steps int64) error { + r._steps = _steps + r.Set("steps", _steps) + return nil +} + +// Steps Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetSteps() int64 { + return r._steps +} +// Calorie Setter +// 消耗总热量,单位:卡路里 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetCalorie(_calorie *BigDecimal) error { + r._calorie = _calorie + r.Set("calorie", _calorie) + return nil +} + +// Calorie Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetCalorie() *BigDecimal { + return r._calorie +} +// MaxHeartrate Setter +// 最大心率 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetMaxHeartrate(_maxHeartrate int64) error { + r._maxHeartrate = _maxHeartrate + r.Set("max_heartrate", _maxHeartrate) + return nil +} + +// MaxHeartrate Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetMaxHeartrate() int64 { + return r._maxHeartrate +} +// MinHeartrate Setter +// 最小心率 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetMinHeartrate(_minHeartrate int64) error { + r._minHeartrate = _minHeartrate + r.Set("min_heartrate", _minHeartrate) + return nil +} + +// MinHeartrate Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetMinHeartrate() int64 { + return r._minHeartrate +} +// AvgHeartrate Setter +// 平均心率 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetAvgHeartrate(_avgHeartrate int64) error { + r._avgHeartrate = _avgHeartrate + r.Set("avg_heartrate", _avgHeartrate) + return nil +} + +// AvgHeartrate Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetAvgHeartrate() int64 { + return r._avgHeartrate +} +// CollectTimeInterval Setter +// 过程数据收集间隔时间 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetCollectTimeInterval(_collectTimeInterval int64) error { + r._collectTimeInterval = _collectTimeInterval + r.Set("collect_time_interval", _collectTimeInterval) + return nil +} + +// CollectTimeInterval Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetCollectTimeInterval() int64 { + return r._collectTimeInterval +} +// CollectTimeUnit Setter +// 过程数据收集间隔时间单位,1.毫秒 2.秒 3.分 4.小时 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetCollectTimeUnit(_collectTimeUnit int64) error { + r._collectTimeUnit = _collectTimeUnit + r.Set("collect_time_unit", _collectTimeUnit) + return nil +} + +// CollectTimeUnit Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetCollectTimeUnit() int64 { + return r._collectTimeUnit +} +// SpeedDatas Setter +// 速度过程数据,单位km/h +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetSpeedDatas(_speedDatas []string) error { + r._speedDatas = _speedDatas + r.Set("speed_datas", _speedDatas) + return nil +} + +// SpeedDatas Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetSpeedDatas() []string { + return r._speedDatas +} +// MotionFrequencyDatas Setter +// 步频/踏频/桨频过程数据 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetMotionFrequencyDatas(_motionFrequencyDatas []string) error { + r._motionFrequencyDatas = _motionFrequencyDatas + r.Set("motion_frequency_datas", _motionFrequencyDatas) + return nil +} + +// MotionFrequencyDatas Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetMotionFrequencyDatas() []string { + return r._motionFrequencyDatas +} +// HrzMotionRangeDatas Setter +// 步幅/踏幅/桨幅过程数据 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetHrzMotionRangeDatas(_hrzMotionRangeDatas []string) error { + r._hrzMotionRangeDatas = _hrzMotionRangeDatas + r.Set("hrz_motion_range_datas", _hrzMotionRangeDatas) + return nil +} + +// HrzMotionRangeDatas Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetHrzMotionRangeDatas() []string { + return r._hrzMotionRangeDatas +} +// TempoDatas Setter +// 配速过程数据 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetTempoDatas(_tempoDatas []string) error { + r._tempoDatas = _tempoDatas + r.Set("tempo_datas", _tempoDatas) + return nil +} + +// TempoDatas Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetTempoDatas() []string { + return r._tempoDatas +} +// HeartrateDatas Setter +// 心率过程数据 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetHeartrateDatas(_heartrateDatas []int64) error { + r._heartrateDatas = _heartrateDatas + r.Set("heartrate_datas", _heartrateDatas) + return nil +} + +// HeartrateDatas Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetHeartrateDatas() []int64 { + return r._heartrateDatas +} +// MessageId Setter +// 三方数据唯一id +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetMessageId(_messageId string) error { + r._messageId = _messageId + r.Set("message_id", _messageId) + return nil +} + +// MessageId Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetMessageId() string { + return r._messageId +} +// DeviceType Setter +// 设备类型:4.跑步机 5.单车 6.划船机 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetDeviceType(_deviceType int64) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetDeviceType() int64 { + return r._deviceType +} +// DeviceName Setter +// 设备名称 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetDeviceName(_deviceName string) error { + r._deviceName = _deviceName + r.Set("device_name", _deviceName) + return nil +} + +// DeviceName Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetDeviceName() string { + return r._deviceName +} +// DeviceModel Setter +// 设备型号 +func (r *AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) SetDeviceModel(_deviceModel string) error { + r._deviceModel = _deviceModel + r.Set("device_model", _deviceModel) + return nil +} + +// DeviceModel Getter +func (r AlibabaAlisportsDatacenterDatasyncTreadmillAPIRequest) GetDeviceModel() string { + return r._deviceModel +} diff --git a/model/alisports/AlibabaAlisportsDatacenterDatasyncTreadmillAPIResponse.go b/model/alisports/AlibabaAlisportsDatacenterDatasyncTreadmillAPIResponse.go new file mode 100644 index 0000000000..69d0fcac42 --- /dev/null +++ b/model/alisports/AlibabaAlisportsDatacenterDatasyncTreadmillAPIResponse.go @@ -0,0 +1,33 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育同步跑步机设备数据 API返回值 +alibaba.alisports.datacenter.datasync.treadmill + +合作方向阿里体育同步跑步机设备的数据 +*/ +type AlibabaAlisportsDatacenterDatasyncTreadmillAPIResponse struct { + model.CommonResponse + AlibabaAlisportsDatacenterDatasyncTreadmillAPIResponseModel +} + +// 阿里体育同步跑步机设备数据 成功返回结果 +type AlibabaAlisportsDatacenterDatasyncTreadmillAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_datacenter_datasync_treadmill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回码描述 + RsMsg string `json:"rs_msg,omitempty" xml:"rs_msg,omitempty"` + // 返回码 + RsCode string `json:"rs_code,omitempty" xml:"rs_code,omitempty"` + // 是否成功 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 返回值 + Model bool `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsDatacenterDatasyncTreadmillResponse.go b/model/alisports/AlibabaAlisportsDatacenterDatasyncTreadmillResponse.go deleted file mode 100644 index a785598d0c..0000000000 --- a/model/alisports/AlibabaAlisportsDatacenterDatasyncTreadmillResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里体育同步跑步机设备数据 API返回值 -alibaba.alisports.datacenter.datasync.treadmill - -合作方向阿里体育同步跑步机设备的数据 -*/ -type AlibabaAlisportsDatacenterDatasyncTreadmillAPIResponse struct { - model.CommonResponse - AlibabaAlisportsDatacenterDatasyncTreadmillResponse -} - -// 阿里体育同步跑步机设备数据 成功返回结果 -type AlibabaAlisportsDatacenterDatasyncTreadmillResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_datacenter_datasync_treadmill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回码描述 - RsMsg string `json:"rs_msg,omitempty" xml:"rs_msg,omitempty"` - // 返回码 - RsCode string `json:"rs_code,omitempty" xml:"rs_code,omitempty"` - // 是否成功 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` - // 返回值 - Model bool `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsEfspCountsubsidyAPIRequest.go b/model/alisports/AlibabaAlisportsEfspCountsubsidyAPIRequest.go new file mode 100644 index 0000000000..1090dfee27 --- /dev/null +++ b/model/alisports/AlibabaAlisportsEfspCountsubsidyAPIRequest.go @@ -0,0 +1,108 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +计算补助金额 API请求 +alibaba.alisports.efsp.countsubsidy + +计算补助金额 +*/ +type AlibabaAlisportsEfspCountsubsidyAPIRequest struct { + model.Params + // 订单金额 + _sumAmount int64 + // 健身房ID + _gymId string + // 企业ID + _enterpriseId string + // alipayId + _alipayId string + // 健身房所在省市 + _districtCode string +} + +// 初始化AlibabaAlisportsEfspCountsubsidyAPIRequest对象 +func NewAlibabaAlisportsEfspCountsubsidyRequest() *AlibabaAlisportsEfspCountsubsidyAPIRequest{ + return &AlibabaAlisportsEfspCountsubsidyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsEfspCountsubsidyAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.efsp.countsubsidy" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsEfspCountsubsidyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SumAmount Setter +// 订单金额 +func (r *AlibabaAlisportsEfspCountsubsidyAPIRequest) SetSumAmount(_sumAmount int64) error { + r._sumAmount = _sumAmount + r.Set("sum_amount", _sumAmount) + return nil +} + +// SumAmount Getter +func (r AlibabaAlisportsEfspCountsubsidyAPIRequest) GetSumAmount() int64 { + return r._sumAmount +} +// GymId Setter +// 健身房ID +func (r *AlibabaAlisportsEfspCountsubsidyAPIRequest) SetGymId(_gymId string) error { + r._gymId = _gymId + r.Set("gym_id", _gymId) + return nil +} + +// GymId Getter +func (r AlibabaAlisportsEfspCountsubsidyAPIRequest) GetGymId() string { + return r._gymId +} +// EnterpriseId Setter +// 企业ID +func (r *AlibabaAlisportsEfspCountsubsidyAPIRequest) SetEnterpriseId(_enterpriseId string) error { + r._enterpriseId = _enterpriseId + r.Set("enterprise_id", _enterpriseId) + return nil +} + +// EnterpriseId Getter +func (r AlibabaAlisportsEfspCountsubsidyAPIRequest) GetEnterpriseId() string { + return r._enterpriseId +} +// AlipayId Setter +// alipayId +func (r *AlibabaAlisportsEfspCountsubsidyAPIRequest) SetAlipayId(_alipayId string) error { + r._alipayId = _alipayId + r.Set("alipay_id", _alipayId) + return nil +} + +// AlipayId Getter +func (r AlibabaAlisportsEfspCountsubsidyAPIRequest) GetAlipayId() string { + return r._alipayId +} +// DistrictCode Setter +// 健身房所在省市 +func (r *AlibabaAlisportsEfspCountsubsidyAPIRequest) SetDistrictCode(_districtCode string) error { + r._districtCode = _districtCode + r.Set("district_code", _districtCode) + return nil +} + +// DistrictCode Getter +func (r AlibabaAlisportsEfspCountsubsidyAPIRequest) GetDistrictCode() string { + return r._districtCode +} diff --git a/model/alisports/AlibabaAlisportsEfspCountsubsidyAPIResponse.go b/model/alisports/AlibabaAlisportsEfspCountsubsidyAPIResponse.go new file mode 100644 index 0000000000..afa6d4e00d --- /dev/null +++ b/model/alisports/AlibabaAlisportsEfspCountsubsidyAPIResponse.go @@ -0,0 +1,27 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +计算补助金额 API返回值 +alibaba.alisports.efsp.countsubsidy + +计算补助金额 +*/ +type AlibabaAlisportsEfspCountsubsidyAPIResponse struct { + model.CommonResponse + AlibabaAlisportsEfspCountsubsidyAPIResponseModel +} + +// 计算补助金额 成功返回结果 +type AlibabaAlisportsEfspCountsubsidyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_efsp_countsubsidy_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *TrilateralResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsEfspCountsubsidyResponse.go b/model/alisports/AlibabaAlisportsEfspCountsubsidyResponse.go deleted file mode 100644 index 907ca2d4e8..0000000000 --- a/model/alisports/AlibabaAlisportsEfspCountsubsidyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -计算补助金额 API返回值 -alibaba.alisports.efsp.countsubsidy - -计算补助金额 -*/ -type AlibabaAlisportsEfspCountsubsidyAPIResponse struct { - model.CommonResponse - AlibabaAlisportsEfspCountsubsidyResponse -} - -// 计算补助金额 成功返回结果 -type AlibabaAlisportsEfspCountsubsidyResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_efsp_countsubsidy_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *TrilateralResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsEfspGetuserinfoAPIRequest.go b/model/alisports/AlibabaAlisportsEfspGetuserinfoAPIRequest.go new file mode 100644 index 0000000000..a4b1dad63a --- /dev/null +++ b/model/alisports/AlibabaAlisportsEfspGetuserinfoAPIRequest.go @@ -0,0 +1,52 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户详细信息 API请求 +alibaba.alisports.efsp.getuserinfo + +阿里体育-体育健身-获取用户详细信息 +*/ +type AlibabaAlisportsEfspGetuserinfoAPIRequest struct { + model.Params + // 支付宝ID + _alipayId string +} + +// 初始化AlibabaAlisportsEfspGetuserinfoAPIRequest对象 +func NewAlibabaAlisportsEfspGetuserinfoRequest() *AlibabaAlisportsEfspGetuserinfoAPIRequest{ + return &AlibabaAlisportsEfspGetuserinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsEfspGetuserinfoAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.efsp.getuserinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsEfspGetuserinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlipayId Setter +// 支付宝ID +func (r *AlibabaAlisportsEfspGetuserinfoAPIRequest) SetAlipayId(_alipayId string) error { + r._alipayId = _alipayId + r.Set("alipay_id", _alipayId) + return nil +} + +// AlipayId Getter +func (r AlibabaAlisportsEfspGetuserinfoAPIRequest) GetAlipayId() string { + return r._alipayId +} diff --git a/model/alisports/AlibabaAlisportsEfspGetuserinfoAPIResponse.go b/model/alisports/AlibabaAlisportsEfspGetuserinfoAPIResponse.go new file mode 100644 index 0000000000..f43705a95a --- /dev/null +++ b/model/alisports/AlibabaAlisportsEfspGetuserinfoAPIResponse.go @@ -0,0 +1,27 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户详细信息 API返回值 +alibaba.alisports.efsp.getuserinfo + +阿里体育-体育健身-获取用户详细信息 +*/ +type AlibabaAlisportsEfspGetuserinfoAPIResponse struct { + model.CommonResponse + AlibabaAlisportsEfspGetuserinfoAPIResponseModel +} + +// 获取用户详细信息 成功返回结果 +type AlibabaAlisportsEfspGetuserinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_efsp_getuserinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TrilateralResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsEfspGetuserinfoResponse.go b/model/alisports/AlibabaAlisportsEfspGetuserinfoResponse.go deleted file mode 100644 index 5fad4f3b34..0000000000 --- a/model/alisports/AlibabaAlisportsEfspGetuserinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户详细信息 API返回值 -alibaba.alisports.efsp.getuserinfo - -阿里体育-体育健身-获取用户详细信息 -*/ -type AlibabaAlisportsEfspGetuserinfoAPIResponse struct { - model.CommonResponse - AlibabaAlisportsEfspGetuserinfoResponse -} - -// 获取用户详细信息 成功返回结果 -type AlibabaAlisportsEfspGetuserinfoResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_efsp_getuserinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TrilateralResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsEfspUsercancelorderAPIRequest.go b/model/alisports/AlibabaAlisportsEfspUsercancelorderAPIRequest.go new file mode 100644 index 0000000000..5ed46ddb01 --- /dev/null +++ b/model/alisports/AlibabaAlisportsEfspUsercancelorderAPIRequest.go @@ -0,0 +1,66 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户取消订单 API请求 +alibaba.alisports.efsp.usercancelorder + +用户取消订单 +*/ +type AlibabaAlisportsEfspUsercancelorderAPIRequest struct { + model.Params + // 订单编号 + _orderNo string + // 用户支付宝ID + _alipayId string +} + +// 初始化AlibabaAlisportsEfspUsercancelorderAPIRequest对象 +func NewAlibabaAlisportsEfspUsercancelorderRequest() *AlibabaAlisportsEfspUsercancelorderAPIRequest{ + return &AlibabaAlisportsEfspUsercancelorderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsEfspUsercancelorderAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.efsp.usercancelorder" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsEfspUsercancelorderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderNo Setter +// 订单编号 +func (r *AlibabaAlisportsEfspUsercancelorderAPIRequest) SetOrderNo(_orderNo string) error { + r._orderNo = _orderNo + r.Set("order_no", _orderNo) + return nil +} + +// OrderNo Getter +func (r AlibabaAlisportsEfspUsercancelorderAPIRequest) GetOrderNo() string { + return r._orderNo +} +// AlipayId Setter +// 用户支付宝ID +func (r *AlibabaAlisportsEfspUsercancelorderAPIRequest) SetAlipayId(_alipayId string) error { + r._alipayId = _alipayId + r.Set("alipay_id", _alipayId) + return nil +} + +// AlipayId Getter +func (r AlibabaAlisportsEfspUsercancelorderAPIRequest) GetAlipayId() string { + return r._alipayId +} diff --git a/model/alisports/AlibabaAlisportsEfspUsercancelorderAPIResponse.go b/model/alisports/AlibabaAlisportsEfspUsercancelorderAPIResponse.go new file mode 100644 index 0000000000..9ec4efa12a --- /dev/null +++ b/model/alisports/AlibabaAlisportsEfspUsercancelorderAPIResponse.go @@ -0,0 +1,27 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户取消订单 API返回值 +alibaba.alisports.efsp.usercancelorder + +用户取消订单 +*/ +type AlibabaAlisportsEfspUsercancelorderAPIResponse struct { + model.CommonResponse + AlibabaAlisportsEfspUsercancelorderAPIResponseModel +} + +// 用户取消订单 成功返回结果 +type AlibabaAlisportsEfspUsercancelorderAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_efsp_usercancelorder_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *TrilateralResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsEfspUsercancelorderResponse.go b/model/alisports/AlibabaAlisportsEfspUsercancelorderResponse.go deleted file mode 100644 index 8f933b7d07..0000000000 --- a/model/alisports/AlibabaAlisportsEfspUsercancelorderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户取消订单 API返回值 -alibaba.alisports.efsp.usercancelorder - -用户取消订单 -*/ -type AlibabaAlisportsEfspUsercancelorderAPIResponse struct { - model.CommonResponse - AlibabaAlisportsEfspUsercancelorderResponse -} - -// 用户取消订单 成功返回结果 -type AlibabaAlisportsEfspUsercancelorderResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_efsp_usercancelorder_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *TrilateralResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsEfspUserplaceorderAPIRequest.go b/model/alisports/AlibabaAlisportsEfspUserplaceorderAPIRequest.go new file mode 100644 index 0000000000..6523bd9c2b --- /dev/null +++ b/model/alisports/AlibabaAlisportsEfspUserplaceorderAPIRequest.go @@ -0,0 +1,52 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户完成支付同步订单 API请求 +alibaba.alisports.efsp.userplaceorder + +用户完成支付同步订单 +*/ +type AlibabaAlisportsEfspUserplaceorderAPIRequest struct { + model.Params + // 青橙订单的json + _orderJson string +} + +// 初始化AlibabaAlisportsEfspUserplaceorderAPIRequest对象 +func NewAlibabaAlisportsEfspUserplaceorderRequest() *AlibabaAlisportsEfspUserplaceorderAPIRequest{ + return &AlibabaAlisportsEfspUserplaceorderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsEfspUserplaceorderAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.efsp.userplaceorder" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsEfspUserplaceorderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderJson Setter +// 青橙订单的json +func (r *AlibabaAlisportsEfspUserplaceorderAPIRequest) SetOrderJson(_orderJson string) error { + r._orderJson = _orderJson + r.Set("order_json", _orderJson) + return nil +} + +// OrderJson Getter +func (r AlibabaAlisportsEfspUserplaceorderAPIRequest) GetOrderJson() string { + return r._orderJson +} diff --git a/model/alisports/AlibabaAlisportsEfspUserplaceorderAPIResponse.go b/model/alisports/AlibabaAlisportsEfspUserplaceorderAPIResponse.go new file mode 100644 index 0000000000..5c6f7d9e4d --- /dev/null +++ b/model/alisports/AlibabaAlisportsEfspUserplaceorderAPIResponse.go @@ -0,0 +1,27 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户完成支付同步订单 API返回值 +alibaba.alisports.efsp.userplaceorder + +用户完成支付同步订单 +*/ +type AlibabaAlisportsEfspUserplaceorderAPIResponse struct { + model.CommonResponse + AlibabaAlisportsEfspUserplaceorderAPIResponseModel +} + +// 用户完成支付同步订单 成功返回结果 +type AlibabaAlisportsEfspUserplaceorderAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_efsp_userplaceorder_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *TrilateralResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsEfspUserplaceorderResponse.go b/model/alisports/AlibabaAlisportsEfspUserplaceorderResponse.go deleted file mode 100644 index 3c4a3059e2..0000000000 --- a/model/alisports/AlibabaAlisportsEfspUserplaceorderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户完成支付同步订单 API返回值 -alibaba.alisports.efsp.userplaceorder - -用户完成支付同步订单 -*/ -type AlibabaAlisportsEfspUserplaceorderAPIResponse struct { - model.CommonResponse - AlibabaAlisportsEfspUserplaceorderResponse -} - -// 用户完成支付同步订单 成功返回结果 -type AlibabaAlisportsEfspUserplaceorderResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_efsp_userplaceorder_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *TrilateralResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsEfspUserwriteoffAPIRequest.go b/model/alisports/AlibabaAlisportsEfspUserwriteoffAPIRequest.go new file mode 100644 index 0000000000..5979583a1c --- /dev/null +++ b/model/alisports/AlibabaAlisportsEfspUserwriteoffAPIRequest.go @@ -0,0 +1,108 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户核销 API请求 +alibaba.alisports.efsp.userwriteoff + +用户核销 +*/ +type AlibabaAlisportsEfspUserwriteoffAPIRequest struct { + model.Params + // 订单编号 + _orderNo string + // 订单金额 + _sumAmount int64 + // 健身房Id + _gymId string + // 用户支付宝ID + _alipayId string + // 补助金额 + _subsidyAmount int64 +} + +// 初始化AlibabaAlisportsEfspUserwriteoffAPIRequest对象 +func NewAlibabaAlisportsEfspUserwriteoffRequest() *AlibabaAlisportsEfspUserwriteoffAPIRequest{ + return &AlibabaAlisportsEfspUserwriteoffAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsEfspUserwriteoffAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.efsp.userwriteoff" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsEfspUserwriteoffAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderNo Setter +// 订单编号 +func (r *AlibabaAlisportsEfspUserwriteoffAPIRequest) SetOrderNo(_orderNo string) error { + r._orderNo = _orderNo + r.Set("order_no", _orderNo) + return nil +} + +// OrderNo Getter +func (r AlibabaAlisportsEfspUserwriteoffAPIRequest) GetOrderNo() string { + return r._orderNo +} +// SumAmount Setter +// 订单金额 +func (r *AlibabaAlisportsEfspUserwriteoffAPIRequest) SetSumAmount(_sumAmount int64) error { + r._sumAmount = _sumAmount + r.Set("sum_amount", _sumAmount) + return nil +} + +// SumAmount Getter +func (r AlibabaAlisportsEfspUserwriteoffAPIRequest) GetSumAmount() int64 { + return r._sumAmount +} +// GymId Setter +// 健身房Id +func (r *AlibabaAlisportsEfspUserwriteoffAPIRequest) SetGymId(_gymId string) error { + r._gymId = _gymId + r.Set("gym_id", _gymId) + return nil +} + +// GymId Getter +func (r AlibabaAlisportsEfspUserwriteoffAPIRequest) GetGymId() string { + return r._gymId +} +// AlipayId Setter +// 用户支付宝ID +func (r *AlibabaAlisportsEfspUserwriteoffAPIRequest) SetAlipayId(_alipayId string) error { + r._alipayId = _alipayId + r.Set("alipay_id", _alipayId) + return nil +} + +// AlipayId Getter +func (r AlibabaAlisportsEfspUserwriteoffAPIRequest) GetAlipayId() string { + return r._alipayId +} +// SubsidyAmount Setter +// 补助金额 +func (r *AlibabaAlisportsEfspUserwriteoffAPIRequest) SetSubsidyAmount(_subsidyAmount int64) error { + r._subsidyAmount = _subsidyAmount + r.Set("subsidy_amount", _subsidyAmount) + return nil +} + +// SubsidyAmount Getter +func (r AlibabaAlisportsEfspUserwriteoffAPIRequest) GetSubsidyAmount() int64 { + return r._subsidyAmount +} diff --git a/model/alisports/AlibabaAlisportsEfspUserwriteoffAPIResponse.go b/model/alisports/AlibabaAlisportsEfspUserwriteoffAPIResponse.go new file mode 100644 index 0000000000..0c721bdbe5 --- /dev/null +++ b/model/alisports/AlibabaAlisportsEfspUserwriteoffAPIResponse.go @@ -0,0 +1,27 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户核销 API返回值 +alibaba.alisports.efsp.userwriteoff + +用户核销 +*/ +type AlibabaAlisportsEfspUserwriteoffAPIResponse struct { + model.CommonResponse + AlibabaAlisportsEfspUserwriteoffAPIResponseModel +} + +// 用户核销 成功返回结果 +type AlibabaAlisportsEfspUserwriteoffAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_efsp_userwriteoff_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *TrilateralResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsEfspUserwriteoffResponse.go b/model/alisports/AlibabaAlisportsEfspUserwriteoffResponse.go deleted file mode 100644 index 5a98f3ea76..0000000000 --- a/model/alisports/AlibabaAlisportsEfspUserwriteoffResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户核销 API返回值 -alibaba.alisports.efsp.userwriteoff - -用户核销 -*/ -type AlibabaAlisportsEfspUserwriteoffAPIResponse struct { - model.CommonResponse - AlibabaAlisportsEfspUserwriteoffResponse -} - -// 用户核销 成功返回结果 -type AlibabaAlisportsEfspUserwriteoffResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_efsp_userwriteoff_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *TrilateralResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsLdlserverWxeventPostAPIRequest.go b/model/alisports/AlibabaAlisportsLdlserverWxeventPostAPIRequest.go new file mode 100644 index 0000000000..966db86dd7 --- /dev/null +++ b/model/alisports/AlibabaAlisportsLdlserverWxeventPostAPIRequest.go @@ -0,0 +1,52 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +乐动力线-微信设备绑定通知 API请求 +alibaba.alisports.ldlserver.wxevent.post + +转发弹外微信服务到弹内 +*/ +type AlibabaAlisportsLdlserverWxeventPostAPIRequest struct { + model.Params + // 微信服务器消息数据 + _rawstr string +} + +// 初始化AlibabaAlisportsLdlserverWxeventPostAPIRequest对象 +func NewAlibabaAlisportsLdlserverWxeventPostRequest() *AlibabaAlisportsLdlserverWxeventPostAPIRequest{ + return &AlibabaAlisportsLdlserverWxeventPostAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsLdlserverWxeventPostAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.ldlserver.wxevent.post" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsLdlserverWxeventPostAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rawstr Setter +// 微信服务器消息数据 +func (r *AlibabaAlisportsLdlserverWxeventPostAPIRequest) SetRawstr(_rawstr string) error { + r._rawstr = _rawstr + r.Set("rawstr", _rawstr) + return nil +} + +// Rawstr Getter +func (r AlibabaAlisportsLdlserverWxeventPostAPIRequest) GetRawstr() string { + return r._rawstr +} diff --git a/model/alisports/AlibabaAlisportsLdlserverWxeventPostAPIResponse.go b/model/alisports/AlibabaAlisportsLdlserverWxeventPostAPIResponse.go new file mode 100644 index 0000000000..7747088772 --- /dev/null +++ b/model/alisports/AlibabaAlisportsLdlserverWxeventPostAPIResponse.go @@ -0,0 +1,29 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +乐动力线-微信设备绑定通知 API返回值 +alibaba.alisports.ldlserver.wxevent.post + +转发弹外微信服务到弹内 +*/ +type AlibabaAlisportsLdlserverWxeventPostAPIResponse struct { + model.CommonResponse + AlibabaAlisportsLdlserverWxeventPostAPIResponseModel +} + +// 乐动力线-微信设备绑定通知 成功返回结果 +type AlibabaAlisportsLdlserverWxeventPostAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_ldlserver_wxevent_post_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 业务成功 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 错误码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsLdlserverWxeventPostResponse.go b/model/alisports/AlibabaAlisportsLdlserverWxeventPostResponse.go deleted file mode 100644 index 2105620cfe..0000000000 --- a/model/alisports/AlibabaAlisportsLdlserverWxeventPostResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -乐动力线-微信设备绑定通知 API返回值 -alibaba.alisports.ldlserver.wxevent.post - -转发弹外微信服务到弹内 -*/ -type AlibabaAlisportsLdlserverWxeventPostAPIResponse struct { - model.CommonResponse - AlibabaAlisportsLdlserverWxeventPostResponse -} - -// 乐动力线-微信设备绑定通知 成功返回结果 -type AlibabaAlisportsLdlserverWxeventPostResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_ldlserver_wxevent_post_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 业务成功 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 错误码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsPassportAccountBindthirdidAPIRequest.go b/model/alisports/AlibabaAlisportsPassportAccountBindthirdidAPIRequest.go new file mode 100644 index 0000000000..3daeab9b85 --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportAccountBindthirdidAPIRequest.go @@ -0,0 +1,122 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育三方ID绑定接口 API请求 +alibaba.alisports.passport.account.bindthirdid + +阿里体育三方ID绑定接口 +*/ +type AlibabaAlisportsPassportAccountBindthirdidAPIRequest struct { + model.Params + // 业务方appkey + _alispAppKey string + // 时间戳精确到秒 + _alispTime string + // 接口签名 + _alispSign string + // 阿里体育用户ID + _aliuid string + // 三方ID + _appUid string + // 手机号 + _mobile string +} + +// 初始化AlibabaAlisportsPassportAccountBindthirdidAPIRequest对象 +func NewAlibabaAlisportsPassportAccountBindthirdidRequest() *AlibabaAlisportsPassportAccountBindthirdidAPIRequest{ + return &AlibabaAlisportsPassportAccountBindthirdidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsPassportAccountBindthirdidAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.passport.account.bindthirdid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsPassportAccountBindthirdidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlispAppKey Setter +// 业务方appkey +func (r *AlibabaAlisportsPassportAccountBindthirdidAPIRequest) SetAlispAppKey(_alispAppKey string) error { + r._alispAppKey = _alispAppKey + r.Set("alisp_app_key", _alispAppKey) + return nil +} + +// AlispAppKey Getter +func (r AlibabaAlisportsPassportAccountBindthirdidAPIRequest) GetAlispAppKey() string { + return r._alispAppKey +} +// AlispTime Setter +// 时间戳精确到秒 +func (r *AlibabaAlisportsPassportAccountBindthirdidAPIRequest) SetAlispTime(_alispTime string) error { + r._alispTime = _alispTime + r.Set("alisp_time", _alispTime) + return nil +} + +// AlispTime Getter +func (r AlibabaAlisportsPassportAccountBindthirdidAPIRequest) GetAlispTime() string { + return r._alispTime +} +// AlispSign Setter +// 接口签名 +func (r *AlibabaAlisportsPassportAccountBindthirdidAPIRequest) SetAlispSign(_alispSign string) error { + r._alispSign = _alispSign + r.Set("alisp_sign", _alispSign) + return nil +} + +// AlispSign Getter +func (r AlibabaAlisportsPassportAccountBindthirdidAPIRequest) GetAlispSign() string { + return r._alispSign +} +// Aliuid Setter +// 阿里体育用户ID +func (r *AlibabaAlisportsPassportAccountBindthirdidAPIRequest) SetAliuid(_aliuid string) error { + r._aliuid = _aliuid + r.Set("aliuid", _aliuid) + return nil +} + +// Aliuid Getter +func (r AlibabaAlisportsPassportAccountBindthirdidAPIRequest) GetAliuid() string { + return r._aliuid +} +// AppUid Setter +// 三方ID +func (r *AlibabaAlisportsPassportAccountBindthirdidAPIRequest) SetAppUid(_appUid string) error { + r._appUid = _appUid + r.Set("app_uid", _appUid) + return nil +} + +// AppUid Getter +func (r AlibabaAlisportsPassportAccountBindthirdidAPIRequest) GetAppUid() string { + return r._appUid +} +// Mobile Setter +// 手机号 +func (r *AlibabaAlisportsPassportAccountBindthirdidAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r AlibabaAlisportsPassportAccountBindthirdidAPIRequest) GetMobile() string { + return r._mobile +} diff --git a/model/alisports/AlibabaAlisportsPassportAccountBindthirdidAPIResponse.go b/model/alisports/AlibabaAlisportsPassportAccountBindthirdidAPIResponse.go new file mode 100644 index 0000000000..0c6ba628d7 --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportAccountBindthirdidAPIResponse.go @@ -0,0 +1,29 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育三方ID绑定接口 API返回值 +alibaba.alisports.passport.account.bindthirdid + +阿里体育三方ID绑定接口 +*/ +type AlibabaAlisportsPassportAccountBindthirdidAPIResponse struct { + model.CommonResponse + AlibabaAlisportsPassportAccountBindthirdidAPIResponseModel +} + +// 阿里体育三方ID绑定接口 成功返回结果 +type AlibabaAlisportsPassportAccountBindthirdidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_passport_account_bindthirdid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口响应码 + AlispCode string `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` + // 描述 + AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsPassportAccountBindthirdidResponse.go b/model/alisports/AlibabaAlisportsPassportAccountBindthirdidResponse.go deleted file mode 100644 index 056cec05c6..0000000000 --- a/model/alisports/AlibabaAlisportsPassportAccountBindthirdidResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里体育三方ID绑定接口 API返回值 -alibaba.alisports.passport.account.bindthirdid - -阿里体育三方ID绑定接口 -*/ -type AlibabaAlisportsPassportAccountBindthirdidAPIResponse struct { - model.CommonResponse - AlibabaAlisportsPassportAccountBindthirdidResponse -} - -// 阿里体育三方ID绑定接口 成功返回结果 -type AlibabaAlisportsPassportAccountBindthirdidResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_passport_account_bindthirdid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口响应码 - AlispCode string `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` - // 描述 - AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsPassportAccountCheckmobileAPIRequest.go b/model/alisports/AlibabaAlisportsPassportAccountCheckmobileAPIRequest.go new file mode 100644 index 0000000000..f03d95faf5 --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportAccountCheckmobileAPIRequest.go @@ -0,0 +1,150 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育会员系统--手机号验证接口 API请求 +alibaba.alisports.passport.account.checkmobile + +验证三方用户的手机号,获取对应的阿里体育会员id +*/ +type AlibabaAlisportsPassportAccountCheckmobileAPIRequest struct { + model.Params + // 业务appkey + _alispAppKey string + // 调用时间戳 + _alispTime string + // 签名字符串 + _alispSign string + // 合作方用户ID + _appUid string + // 用户呢称 + _nick string + // 手机号 + _mobile string + // 性别 0未设置 1男 2女 3保密 + _gender string + // 生日 + _birthday string +} + +// 初始化AlibabaAlisportsPassportAccountCheckmobileAPIRequest对象 +func NewAlibabaAlisportsPassportAccountCheckmobileRequest() *AlibabaAlisportsPassportAccountCheckmobileAPIRequest{ + return &AlibabaAlisportsPassportAccountCheckmobileAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsPassportAccountCheckmobileAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.passport.account.checkmobile" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsPassportAccountCheckmobileAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlispAppKey Setter +// 业务appkey +func (r *AlibabaAlisportsPassportAccountCheckmobileAPIRequest) SetAlispAppKey(_alispAppKey string) error { + r._alispAppKey = _alispAppKey + r.Set("alisp_app_key", _alispAppKey) + return nil +} + +// AlispAppKey Getter +func (r AlibabaAlisportsPassportAccountCheckmobileAPIRequest) GetAlispAppKey() string { + return r._alispAppKey +} +// AlispTime Setter +// 调用时间戳 +func (r *AlibabaAlisportsPassportAccountCheckmobileAPIRequest) SetAlispTime(_alispTime string) error { + r._alispTime = _alispTime + r.Set("alisp_time", _alispTime) + return nil +} + +// AlispTime Getter +func (r AlibabaAlisportsPassportAccountCheckmobileAPIRequest) GetAlispTime() string { + return r._alispTime +} +// AlispSign Setter +// 签名字符串 +func (r *AlibabaAlisportsPassportAccountCheckmobileAPIRequest) SetAlispSign(_alispSign string) error { + r._alispSign = _alispSign + r.Set("alisp_sign", _alispSign) + return nil +} + +// AlispSign Getter +func (r AlibabaAlisportsPassportAccountCheckmobileAPIRequest) GetAlispSign() string { + return r._alispSign +} +// AppUid Setter +// 合作方用户ID +func (r *AlibabaAlisportsPassportAccountCheckmobileAPIRequest) SetAppUid(_appUid string) error { + r._appUid = _appUid + r.Set("app_uid", _appUid) + return nil +} + +// AppUid Getter +func (r AlibabaAlisportsPassportAccountCheckmobileAPIRequest) GetAppUid() string { + return r._appUid +} +// Nick Setter +// 用户呢称 +func (r *AlibabaAlisportsPassportAccountCheckmobileAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r AlibabaAlisportsPassportAccountCheckmobileAPIRequest) GetNick() string { + return r._nick +} +// Mobile Setter +// 手机号 +func (r *AlibabaAlisportsPassportAccountCheckmobileAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r AlibabaAlisportsPassportAccountCheckmobileAPIRequest) GetMobile() string { + return r._mobile +} +// Gender Setter +// 性别 0未设置 1男 2女 3保密 +func (r *AlibabaAlisportsPassportAccountCheckmobileAPIRequest) SetGender(_gender string) error { + r._gender = _gender + r.Set("gender", _gender) + return nil +} + +// Gender Getter +func (r AlibabaAlisportsPassportAccountCheckmobileAPIRequest) GetGender() string { + return r._gender +} +// Birthday Setter +// 生日 +func (r *AlibabaAlisportsPassportAccountCheckmobileAPIRequest) SetBirthday(_birthday string) error { + r._birthday = _birthday + r.Set("birthday", _birthday) + return nil +} + +// Birthday Getter +func (r AlibabaAlisportsPassportAccountCheckmobileAPIRequest) GetBirthday() string { + return r._birthday +} diff --git a/model/alisports/AlibabaAlisportsPassportAccountCheckmobileAPIResponse.go b/model/alisports/AlibabaAlisportsPassportAccountCheckmobileAPIResponse.go new file mode 100644 index 0000000000..20e1d65bce --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportAccountCheckmobileAPIResponse.go @@ -0,0 +1,31 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育会员系统--手机号验证接口 API返回值 +alibaba.alisports.passport.account.checkmobile + +验证三方用户的手机号,获取对应的阿里体育会员id +*/ +type AlibabaAlisportsPassportAccountCheckmobileAPIResponse struct { + model.CommonResponse + AlibabaAlisportsPassportAccountCheckmobileAPIResponseModel +} + +// 阿里体育会员系统--手机号验证接口 成功返回结果 +type AlibabaAlisportsPassportAccountCheckmobileAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_passport_account_checkmobile_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alisp_msg + AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` + // alisp_code + AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` + // alisp_data + AlispData *AlispData `json:"alisp_data,omitempty" xml:"alisp_data,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsPassportAccountCheckmobileResponse.go b/model/alisports/AlibabaAlisportsPassportAccountCheckmobileResponse.go deleted file mode 100644 index 52624978be..0000000000 --- a/model/alisports/AlibabaAlisportsPassportAccountCheckmobileResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里体育会员系统--手机号验证接口 API返回值 -alibaba.alisports.passport.account.checkmobile - -验证三方用户的手机号,获取对应的阿里体育会员id -*/ -type AlibabaAlisportsPassportAccountCheckmobileAPIResponse struct { - model.CommonResponse - AlibabaAlisportsPassportAccountCheckmobileResponse -} - -// 阿里体育会员系统--手机号验证接口 成功返回结果 -type AlibabaAlisportsPassportAccountCheckmobileResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_passport_account_checkmobile_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alisp_msg - AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` - // alisp_code - AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` - // alisp_data - AlispData *AlispData `json:"alisp_data,omitempty" xml:"alisp_data,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsPassportAccountDelrelationAPIRequest.go b/model/alisports/AlibabaAlisportsPassportAccountDelrelationAPIRequest.go new file mode 100644 index 0000000000..0aec9d4e46 --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportAccountDelrelationAPIRequest.go @@ -0,0 +1,108 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育会员系统--取消三方关联接口 API请求 +alibaba.alisports.passport.account.delrelation + +阿里体育会员系统--取消三方关联接口 +*/ +type AlibabaAlisportsPassportAccountDelrelationAPIRequest struct { + model.Params + // 业务appkey + _alispAppKey string + // 调用时间戳 + _alispTime string + // 签名字符串 + _alispSign string + // 合作方用户ID + _appUid string + // 阿里体育会员id + _aliuid string +} + +// 初始化AlibabaAlisportsPassportAccountDelrelationAPIRequest对象 +func NewAlibabaAlisportsPassportAccountDelrelationRequest() *AlibabaAlisportsPassportAccountDelrelationAPIRequest{ + return &AlibabaAlisportsPassportAccountDelrelationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsPassportAccountDelrelationAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.passport.account.delrelation" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsPassportAccountDelrelationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlispAppKey Setter +// 业务appkey +func (r *AlibabaAlisportsPassportAccountDelrelationAPIRequest) SetAlispAppKey(_alispAppKey string) error { + r._alispAppKey = _alispAppKey + r.Set("alisp_app_key", _alispAppKey) + return nil +} + +// AlispAppKey Getter +func (r AlibabaAlisportsPassportAccountDelrelationAPIRequest) GetAlispAppKey() string { + return r._alispAppKey +} +// AlispTime Setter +// 调用时间戳 +func (r *AlibabaAlisportsPassportAccountDelrelationAPIRequest) SetAlispTime(_alispTime string) error { + r._alispTime = _alispTime + r.Set("alisp_time", _alispTime) + return nil +} + +// AlispTime Getter +func (r AlibabaAlisportsPassportAccountDelrelationAPIRequest) GetAlispTime() string { + return r._alispTime +} +// AlispSign Setter +// 签名字符串 +func (r *AlibabaAlisportsPassportAccountDelrelationAPIRequest) SetAlispSign(_alispSign string) error { + r._alispSign = _alispSign + r.Set("alisp_sign", _alispSign) + return nil +} + +// AlispSign Getter +func (r AlibabaAlisportsPassportAccountDelrelationAPIRequest) GetAlispSign() string { + return r._alispSign +} +// AppUid Setter +// 合作方用户ID +func (r *AlibabaAlisportsPassportAccountDelrelationAPIRequest) SetAppUid(_appUid string) error { + r._appUid = _appUid + r.Set("app_uid", _appUid) + return nil +} + +// AppUid Getter +func (r AlibabaAlisportsPassportAccountDelrelationAPIRequest) GetAppUid() string { + return r._appUid +} +// Aliuid Setter +// 阿里体育会员id +func (r *AlibabaAlisportsPassportAccountDelrelationAPIRequest) SetAliuid(_aliuid string) error { + r._aliuid = _aliuid + r.Set("aliuid", _aliuid) + return nil +} + +// Aliuid Getter +func (r AlibabaAlisportsPassportAccountDelrelationAPIRequest) GetAliuid() string { + return r._aliuid +} diff --git a/model/alisports/AlibabaAlisportsPassportAccountDelrelationAPIResponse.go b/model/alisports/AlibabaAlisportsPassportAccountDelrelationAPIResponse.go new file mode 100644 index 0000000000..68e6c4af82 --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportAccountDelrelationAPIResponse.go @@ -0,0 +1,31 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育会员系统--取消三方关联接口 API返回值 +alibaba.alisports.passport.account.delrelation + +阿里体育会员系统--取消三方关联接口 +*/ +type AlibabaAlisportsPassportAccountDelrelationAPIResponse struct { + model.CommonResponse + AlibabaAlisportsPassportAccountDelrelationAPIResponseModel +} + +// 阿里体育会员系统--取消三方关联接口 成功返回结果 +type AlibabaAlisportsPassportAccountDelrelationAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_passport_account_delrelation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alisp_code + AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` + // alisp_msg + AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` + // alisp_data + AlispData string `json:"alisp_data,omitempty" xml:"alisp_data,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsPassportAccountDelrelationResponse.go b/model/alisports/AlibabaAlisportsPassportAccountDelrelationResponse.go deleted file mode 100644 index 0761ab2813..0000000000 --- a/model/alisports/AlibabaAlisportsPassportAccountDelrelationResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里体育会员系统--取消三方关联接口 API返回值 -alibaba.alisports.passport.account.delrelation - -阿里体育会员系统--取消三方关联接口 -*/ -type AlibabaAlisportsPassportAccountDelrelationAPIResponse struct { - model.CommonResponse - AlibabaAlisportsPassportAccountDelrelationResponse -} - -// 阿里体育会员系统--取消三方关联接口 成功返回结果 -type AlibabaAlisportsPassportAccountDelrelationResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_passport_account_delrelation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alisp_code - AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` - // alisp_msg - AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` - // alisp_data - AlispData string `json:"alisp_data,omitempty" xml:"alisp_data,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest.go b/model/alisports/AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest.go new file mode 100644 index 0000000000..624274f750 --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest.go @@ -0,0 +1,136 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取会员信息 API请求 +alibaba.alisports.passport.account.getaccountinfo + +获取阿里体育会员信息 +*/ +type AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest struct { + model.Params + // 是否获取详情0否1是 默认0 + _needDetail int64 + // 当前时间戳 + _alispTime string + // 业务appkey + _alispAppKey string + // 业务加密参数 + _alispSign string + // 查询类型:1.用户的阿里体育id, 4.用户通过登录生成的sso_token + _type int64 + // 要查询的值 + _value string + // 决定返回值是否包含扩展字段 + _extInfoType string +} + +// 初始化AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest对象 +func NewAlibabaAlisportsPassportAccountGetaccountinfoRequest() *AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest{ + return &AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.passport.account.getaccountinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NeedDetail Setter +// 是否获取详情0否1是 默认0 +func (r *AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest) SetNeedDetail(_needDetail int64) error { + r._needDetail = _needDetail + r.Set("need_detail", _needDetail) + return nil +} + +// NeedDetail Getter +func (r AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest) GetNeedDetail() int64 { + return r._needDetail +} +// AlispTime Setter +// 当前时间戳 +func (r *AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest) SetAlispTime(_alispTime string) error { + r._alispTime = _alispTime + r.Set("alisp_time", _alispTime) + return nil +} + +// AlispTime Getter +func (r AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest) GetAlispTime() string { + return r._alispTime +} +// AlispAppKey Setter +// 业务appkey +func (r *AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest) SetAlispAppKey(_alispAppKey string) error { + r._alispAppKey = _alispAppKey + r.Set("alisp_app_key", _alispAppKey) + return nil +} + +// AlispAppKey Getter +func (r AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest) GetAlispAppKey() string { + return r._alispAppKey +} +// AlispSign Setter +// 业务加密参数 +func (r *AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest) SetAlispSign(_alispSign string) error { + r._alispSign = _alispSign + r.Set("alisp_sign", _alispSign) + return nil +} + +// AlispSign Getter +func (r AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest) GetAlispSign() string { + return r._alispSign +} +// Type Setter +// 查询类型:1.用户的阿里体育id, 4.用户通过登录生成的sso_token +func (r *AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest) GetType() int64 { + return r._type +} +// Value Setter +// 要查询的值 +func (r *AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest) SetValue(_value string) error { + r._value = _value + r.Set("value", _value) + return nil +} + +// Value Getter +func (r AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest) GetValue() string { + return r._value +} +// ExtInfoType Setter +// 决定返回值是否包含扩展字段 +func (r *AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest) SetExtInfoType(_extInfoType string) error { + r._extInfoType = _extInfoType + r.Set("ext_info_type", _extInfoType) + return nil +} + +// ExtInfoType Getter +func (r AlibabaAlisportsPassportAccountGetaccountinfoAPIRequest) GetExtInfoType() string { + return r._extInfoType +} diff --git a/model/alisports/AlibabaAlisportsPassportAccountGetaccountinfoAPIResponse.go b/model/alisports/AlibabaAlisportsPassportAccountGetaccountinfoAPIResponse.go new file mode 100644 index 0000000000..ec5d6ff1b9 --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportAccountGetaccountinfoAPIResponse.go @@ -0,0 +1,31 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取会员信息 API返回值 +alibaba.alisports.passport.account.getaccountinfo + +获取阿里体育会员信息 +*/ +type AlibabaAlisportsPassportAccountGetaccountinfoAPIResponse struct { + model.CommonResponse + AlibabaAlisportsPassportAccountGetaccountinfoAPIResponseModel +} + +// 获取会员信息 成功返回结果 +type AlibabaAlisportsPassportAccountGetaccountinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_passport_account_getaccountinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 状态码 200表示操作成功 + AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` + // 提示信息 + AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` + // 返回值 + AlispData string `json:"alisp_data,omitempty" xml:"alisp_data,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsPassportAccountGetaccountinfoResponse.go b/model/alisports/AlibabaAlisportsPassportAccountGetaccountinfoResponse.go deleted file mode 100644 index fd9e40635e..0000000000 --- a/model/alisports/AlibabaAlisportsPassportAccountGetaccountinfoResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取会员信息 API返回值 -alibaba.alisports.passport.account.getaccountinfo - -获取阿里体育会员信息 -*/ -type AlibabaAlisportsPassportAccountGetaccountinfoAPIResponse struct { - model.CommonResponse - AlibabaAlisportsPassportAccountGetaccountinfoResponse -} - -// 获取会员信息 成功返回结果 -type AlibabaAlisportsPassportAccountGetaccountinfoResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_passport_account_getaccountinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 状态码 200表示操作成功 - AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` - // 提示信息 - AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` - // 返回值 - AlispData string `json:"alisp_data,omitempty" xml:"alisp_data,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsPassportAccountSsotokenrefreshAPIRequest.go b/model/alisports/AlibabaAlisportsPassportAccountSsotokenrefreshAPIRequest.go new file mode 100644 index 0000000000..ebef3d9162 --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportAccountSsotokenrefreshAPIRequest.go @@ -0,0 +1,94 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +sso_token刷新 API请求 +alibaba.alisports.passport.account.ssotokenrefresh + +sso_token刷新 +*/ +type AlibabaAlisportsPassportAccountSsotokenrefreshAPIRequest struct { + model.Params + // 应用appkey + _alispAppKey string + // 当前时间戳[精确到秒,10位] + _alispTime string + // 签名 + _alispSign string + // 登录成功返回的access_token(access_token是TOP保留关键字,只能改名,望谅解) + _secret string +} + +// 初始化AlibabaAlisportsPassportAccountSsotokenrefreshAPIRequest对象 +func NewAlibabaAlisportsPassportAccountSsotokenrefreshRequest() *AlibabaAlisportsPassportAccountSsotokenrefreshAPIRequest{ + return &AlibabaAlisportsPassportAccountSsotokenrefreshAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsPassportAccountSsotokenrefreshAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.passport.account.ssotokenrefresh" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsPassportAccountSsotokenrefreshAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlispAppKey Setter +// 应用appkey +func (r *AlibabaAlisportsPassportAccountSsotokenrefreshAPIRequest) SetAlispAppKey(_alispAppKey string) error { + r._alispAppKey = _alispAppKey + r.Set("alisp_app_key", _alispAppKey) + return nil +} + +// AlispAppKey Getter +func (r AlibabaAlisportsPassportAccountSsotokenrefreshAPIRequest) GetAlispAppKey() string { + return r._alispAppKey +} +// AlispTime Setter +// 当前时间戳[精确到秒,10位] +func (r *AlibabaAlisportsPassportAccountSsotokenrefreshAPIRequest) SetAlispTime(_alispTime string) error { + r._alispTime = _alispTime + r.Set("alisp_time", _alispTime) + return nil +} + +// AlispTime Getter +func (r AlibabaAlisportsPassportAccountSsotokenrefreshAPIRequest) GetAlispTime() string { + return r._alispTime +} +// AlispSign Setter +// 签名 +func (r *AlibabaAlisportsPassportAccountSsotokenrefreshAPIRequest) SetAlispSign(_alispSign string) error { + r._alispSign = _alispSign + r.Set("alisp_sign", _alispSign) + return nil +} + +// AlispSign Getter +func (r AlibabaAlisportsPassportAccountSsotokenrefreshAPIRequest) GetAlispSign() string { + return r._alispSign +} +// Secret Setter +// 登录成功返回的access_token(access_token是TOP保留关键字,只能改名,望谅解) +func (r *AlibabaAlisportsPassportAccountSsotokenrefreshAPIRequest) SetSecret(_secret string) error { + r._secret = _secret + r.Set("secret", _secret) + return nil +} + +// Secret Getter +func (r AlibabaAlisportsPassportAccountSsotokenrefreshAPIRequest) GetSecret() string { + return r._secret +} diff --git a/model/alisports/AlibabaAlisportsPassportAccountSsotokenrefreshAPIResponse.go b/model/alisports/AlibabaAlisportsPassportAccountSsotokenrefreshAPIResponse.go new file mode 100644 index 0000000000..209bc7c48a --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportAccountSsotokenrefreshAPIResponse.go @@ -0,0 +1,31 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +sso_token刷新 API返回值 +alibaba.alisports.passport.account.ssotokenrefresh + +sso_token刷新 +*/ +type AlibabaAlisportsPassportAccountSsotokenrefreshAPIResponse struct { + model.CommonResponse + AlibabaAlisportsPassportAccountSsotokenrefreshAPIResponseModel +} + +// sso_token刷新 成功返回结果 +type AlibabaAlisportsPassportAccountSsotokenrefreshAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_passport_account_ssotokenrefresh_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alisp_data + AlispData *AlispData `json:"alisp_data,omitempty" xml:"alisp_data,omitempty"` + // 状态码 200表示操作成功 + AlispCode string `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` + // 提示信息 + AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsPassportAccountSsotokenrefreshResponse.go b/model/alisports/AlibabaAlisportsPassportAccountSsotokenrefreshResponse.go deleted file mode 100644 index 99af5f2bc4..0000000000 --- a/model/alisports/AlibabaAlisportsPassportAccountSsotokenrefreshResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -sso_token刷新 API返回值 -alibaba.alisports.passport.account.ssotokenrefresh - -sso_token刷新 -*/ -type AlibabaAlisportsPassportAccountSsotokenrefreshAPIResponse struct { - model.CommonResponse - AlibabaAlisportsPassportAccountSsotokenrefreshResponse -} - -// sso_token刷新 成功返回结果 -type AlibabaAlisportsPassportAccountSsotokenrefreshResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_passport_account_ssotokenrefresh_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alisp_data - AlispData *AlispData `json:"alisp_data,omitempty" xml:"alisp_data,omitempty"` - // 状态码 200表示操作成功 - AlispCode string `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` - // 提示信息 - AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsPassportAccountSsotokenvalidateAPIRequest.go b/model/alisports/AlibabaAlisportsPassportAccountSsotokenvalidateAPIRequest.go new file mode 100644 index 0000000000..e277db0dc3 --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportAccountSsotokenvalidateAPIRequest.go @@ -0,0 +1,94 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +sso_token验证 API请求 +alibaba.alisports.passport.account.ssotokenvalidate + +sso_token验证 +*/ +type AlibabaAlisportsPassportAccountSsotokenvalidateAPIRequest struct { + model.Params + // sso_token + _ssoToken string + // 应用APPKEY + _alispAppKey string + // 当前时间戳[精确到秒,10位] + _alispTime string + // 签名 + _alispSign string +} + +// 初始化AlibabaAlisportsPassportAccountSsotokenvalidateAPIRequest对象 +func NewAlibabaAlisportsPassportAccountSsotokenvalidateRequest() *AlibabaAlisportsPassportAccountSsotokenvalidateAPIRequest{ + return &AlibabaAlisportsPassportAccountSsotokenvalidateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsPassportAccountSsotokenvalidateAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.passport.account.ssotokenvalidate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsPassportAccountSsotokenvalidateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SsoToken Setter +// sso_token +func (r *AlibabaAlisportsPassportAccountSsotokenvalidateAPIRequest) SetSsoToken(_ssoToken string) error { + r._ssoToken = _ssoToken + r.Set("sso_token", _ssoToken) + return nil +} + +// SsoToken Getter +func (r AlibabaAlisportsPassportAccountSsotokenvalidateAPIRequest) GetSsoToken() string { + return r._ssoToken +} +// AlispAppKey Setter +// 应用APPKEY +func (r *AlibabaAlisportsPassportAccountSsotokenvalidateAPIRequest) SetAlispAppKey(_alispAppKey string) error { + r._alispAppKey = _alispAppKey + r.Set("alisp_app_key", _alispAppKey) + return nil +} + +// AlispAppKey Getter +func (r AlibabaAlisportsPassportAccountSsotokenvalidateAPIRequest) GetAlispAppKey() string { + return r._alispAppKey +} +// AlispTime Setter +// 当前时间戳[精确到秒,10位] +func (r *AlibabaAlisportsPassportAccountSsotokenvalidateAPIRequest) SetAlispTime(_alispTime string) error { + r._alispTime = _alispTime + r.Set("alisp_time", _alispTime) + return nil +} + +// AlispTime Getter +func (r AlibabaAlisportsPassportAccountSsotokenvalidateAPIRequest) GetAlispTime() string { + return r._alispTime +} +// AlispSign Setter +// 签名 +func (r *AlibabaAlisportsPassportAccountSsotokenvalidateAPIRequest) SetAlispSign(_alispSign string) error { + r._alispSign = _alispSign + r.Set("alisp_sign", _alispSign) + return nil +} + +// AlispSign Getter +func (r AlibabaAlisportsPassportAccountSsotokenvalidateAPIRequest) GetAlispSign() string { + return r._alispSign +} diff --git a/model/alisports/AlibabaAlisportsPassportAccountSsotokenvalidateAPIResponse.go b/model/alisports/AlibabaAlisportsPassportAccountSsotokenvalidateAPIResponse.go new file mode 100644 index 0000000000..f73d855ff5 --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportAccountSsotokenvalidateAPIResponse.go @@ -0,0 +1,33 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +sso_token验证 API返回值 +alibaba.alisports.passport.account.ssotokenvalidate + +sso_token验证 +*/ +type AlibabaAlisportsPassportAccountSsotokenvalidateAPIResponse struct { + model.CommonResponse + AlibabaAlisportsPassportAccountSsotokenvalidateAPIResponseModel +} + +// sso_token验证 成功返回结果 +type AlibabaAlisportsPassportAccountSsotokenvalidateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_passport_account_ssotokenvalidate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 状态码 200表示操作成功 + AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` + // 提示信息 + AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` + // 阿里体育用户ID + Aliuid string `json:"aliuid,omitempty" xml:"aliuid,omitempty"` + // 第三方用户ID + Appuid string `json:"appuid,omitempty" xml:"appuid,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsPassportAccountSsotokenvalidateResponse.go b/model/alisports/AlibabaAlisportsPassportAccountSsotokenvalidateResponse.go deleted file mode 100644 index 15829f1cd0..0000000000 --- a/model/alisports/AlibabaAlisportsPassportAccountSsotokenvalidateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -sso_token验证 API返回值 -alibaba.alisports.passport.account.ssotokenvalidate - -sso_token验证 -*/ -type AlibabaAlisportsPassportAccountSsotokenvalidateAPIResponse struct { - model.CommonResponse - AlibabaAlisportsPassportAccountSsotokenvalidateResponse -} - -// sso_token验证 成功返回结果 -type AlibabaAlisportsPassportAccountSsotokenvalidateResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_passport_account_ssotokenvalidate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 状态码 200表示操作成功 - AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` - // 提示信息 - AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` - // 阿里体育用户ID - Aliuid string `json:"aliuid,omitempty" xml:"aliuid,omitempty"` - // 第三方用户ID - Appuid string `json:"appuid,omitempty" xml:"appuid,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsPassportAccountTokenvalidateAPIRequest.go b/model/alisports/AlibabaAlisportsPassportAccountTokenvalidateAPIRequest.go new file mode 100644 index 0000000000..f4b728a5e6 --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportAccountTokenvalidateAPIRequest.go @@ -0,0 +1,150 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育会员系统帐号登录注册token验证接口 API请求 +alibaba.alisports.passport.account.tokenvalidate + +阿里体育会员系统帐号登录注册token验证接口 +*/ +type AlibabaAlisportsPassportAccountTokenvalidateAPIRequest struct { + model.Params + // 业务方appkey + _alispAppKey string + // 签名 + _alispSign string + // token + _token string + // 注册用户类型 + _userType int64 + // 时间戳 + _alispTime string + // 一键登录参数 + _secret string + // json字符串,传入扩展字段 + _extInfo string + // 选填,调用百川登录接口的appkey,百川登录时,需要传此字段 + _mtopAppkey string +} + +// 初始化AlibabaAlisportsPassportAccountTokenvalidateAPIRequest对象 +func NewAlibabaAlisportsPassportAccountTokenvalidateRequest() *AlibabaAlisportsPassportAccountTokenvalidateAPIRequest{ + return &AlibabaAlisportsPassportAccountTokenvalidateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsPassportAccountTokenvalidateAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.passport.account.tokenvalidate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsPassportAccountTokenvalidateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlispAppKey Setter +// 业务方appkey +func (r *AlibabaAlisportsPassportAccountTokenvalidateAPIRequest) SetAlispAppKey(_alispAppKey string) error { + r._alispAppKey = _alispAppKey + r.Set("alisp_app_key", _alispAppKey) + return nil +} + +// AlispAppKey Getter +func (r AlibabaAlisportsPassportAccountTokenvalidateAPIRequest) GetAlispAppKey() string { + return r._alispAppKey +} +// AlispSign Setter +// 签名 +func (r *AlibabaAlisportsPassportAccountTokenvalidateAPIRequest) SetAlispSign(_alispSign string) error { + r._alispSign = _alispSign + r.Set("alisp_sign", _alispSign) + return nil +} + +// AlispSign Getter +func (r AlibabaAlisportsPassportAccountTokenvalidateAPIRequest) GetAlispSign() string { + return r._alispSign +} +// Token Setter +// token +func (r *AlibabaAlisportsPassportAccountTokenvalidateAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaAlisportsPassportAccountTokenvalidateAPIRequest) GetToken() string { + return r._token +} +// UserType Setter +// 注册用户类型 +func (r *AlibabaAlisportsPassportAccountTokenvalidateAPIRequest) SetUserType(_userType int64) error { + r._userType = _userType + r.Set("user_type", _userType) + return nil +} + +// UserType Getter +func (r AlibabaAlisportsPassportAccountTokenvalidateAPIRequest) GetUserType() int64 { + return r._userType +} +// AlispTime Setter +// 时间戳 +func (r *AlibabaAlisportsPassportAccountTokenvalidateAPIRequest) SetAlispTime(_alispTime string) error { + r._alispTime = _alispTime + r.Set("alisp_time", _alispTime) + return nil +} + +// AlispTime Getter +func (r AlibabaAlisportsPassportAccountTokenvalidateAPIRequest) GetAlispTime() string { + return r._alispTime +} +// Secret Setter +// 一键登录参数 +func (r *AlibabaAlisportsPassportAccountTokenvalidateAPIRequest) SetSecret(_secret string) error { + r._secret = _secret + r.Set("secret", _secret) + return nil +} + +// Secret Getter +func (r AlibabaAlisportsPassportAccountTokenvalidateAPIRequest) GetSecret() string { + return r._secret +} +// ExtInfo Setter +// json字符串,传入扩展字段 +func (r *AlibabaAlisportsPassportAccountTokenvalidateAPIRequest) SetExtInfo(_extInfo string) error { + r._extInfo = _extInfo + r.Set("ext_info", _extInfo) + return nil +} + +// ExtInfo Getter +func (r AlibabaAlisportsPassportAccountTokenvalidateAPIRequest) GetExtInfo() string { + return r._extInfo +} +// MtopAppkey Setter +// 选填,调用百川登录接口的appkey,百川登录时,需要传此字段 +func (r *AlibabaAlisportsPassportAccountTokenvalidateAPIRequest) SetMtopAppkey(_mtopAppkey string) error { + r._mtopAppkey = _mtopAppkey + r.Set("mtop_appkey", _mtopAppkey) + return nil +} + +// MtopAppkey Getter +func (r AlibabaAlisportsPassportAccountTokenvalidateAPIRequest) GetMtopAppkey() string { + return r._mtopAppkey +} diff --git a/model/alisports/AlibabaAlisportsPassportAccountTokenvalidateAPIResponse.go b/model/alisports/AlibabaAlisportsPassportAccountTokenvalidateAPIResponse.go new file mode 100644 index 0000000000..2e31e63c62 --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportAccountTokenvalidateAPIResponse.go @@ -0,0 +1,31 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育会员系统帐号登录注册token验证接口 API返回值 +alibaba.alisports.passport.account.tokenvalidate + +阿里体育会员系统帐号登录注册token验证接口 +*/ +type AlibabaAlisportsPassportAccountTokenvalidateAPIResponse struct { + model.CommonResponse + AlibabaAlisportsPassportAccountTokenvalidateAPIResponseModel +} + +// 阿里体育会员系统帐号登录注册token验证接口 成功返回结果 +type AlibabaAlisportsPassportAccountTokenvalidateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_passport_account_tokenvalidate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回状态码 + AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` + // 返回状态信息 + AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` + // 返回数据结果 + AlispData string `json:"alisp_data,omitempty" xml:"alisp_data,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsPassportAccountTokenvalidateResponse.go b/model/alisports/AlibabaAlisportsPassportAccountTokenvalidateResponse.go deleted file mode 100644 index 7033978bf0..0000000000 --- a/model/alisports/AlibabaAlisportsPassportAccountTokenvalidateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里体育会员系统帐号登录注册token验证接口 API返回值 -alibaba.alisports.passport.account.tokenvalidate - -阿里体育会员系统帐号登录注册token验证接口 -*/ -type AlibabaAlisportsPassportAccountTokenvalidateAPIResponse struct { - model.CommonResponse - AlibabaAlisportsPassportAccountTokenvalidateResponse -} - -// 阿里体育会员系统帐号登录注册token验证接口 成功返回结果 -type AlibabaAlisportsPassportAccountTokenvalidateResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_passport_account_tokenvalidate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回状态码 - AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` - // 返回状态信息 - AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` - // 返回数据结果 - AlispData string `json:"alisp_data,omitempty" xml:"alisp_data,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsPassportOauthAlipaygrantAPIRequest.go b/model/alisports/AlibabaAlisportsPassportOauthAlipaygrantAPIRequest.go new file mode 100644 index 0000000000..c611353ed7 --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportOauthAlipaygrantAPIRequest.go @@ -0,0 +1,136 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育会员系统-支付宝授权接口 API请求 +alibaba.alisports.passport.oauth.alipaygrant + +开放给乐心运动使用的支付宝授权接口 +*/ +type AlibabaAlisportsPassportOauthAlipaygrantAPIRequest struct { + model.Params + // 阿里体育分配的用户appkey + _alispAppKey string + // 请求接口的时间戳 + _alispTime string + // 签名字符串 + _alispSign string + // 调用支付宝登录sdk返回的code + _authCode string + // 固定为rich_sports + _partnerMode string + // 支付宝的appid + _appid string + // 合作方的userid,即用户唯一的id标识 + _appUid string +} + +// 初始化AlibabaAlisportsPassportOauthAlipaygrantAPIRequest对象 +func NewAlibabaAlisportsPassportOauthAlipaygrantRequest() *AlibabaAlisportsPassportOauthAlipaygrantAPIRequest{ + return &AlibabaAlisportsPassportOauthAlipaygrantAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsPassportOauthAlipaygrantAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.passport.oauth.alipaygrant" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsPassportOauthAlipaygrantAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlispAppKey Setter +// 阿里体育分配的用户appkey +func (r *AlibabaAlisportsPassportOauthAlipaygrantAPIRequest) SetAlispAppKey(_alispAppKey string) error { + r._alispAppKey = _alispAppKey + r.Set("alisp_app_key", _alispAppKey) + return nil +} + +// AlispAppKey Getter +func (r AlibabaAlisportsPassportOauthAlipaygrantAPIRequest) GetAlispAppKey() string { + return r._alispAppKey +} +// AlispTime Setter +// 请求接口的时间戳 +func (r *AlibabaAlisportsPassportOauthAlipaygrantAPIRequest) SetAlispTime(_alispTime string) error { + r._alispTime = _alispTime + r.Set("alisp_time", _alispTime) + return nil +} + +// AlispTime Getter +func (r AlibabaAlisportsPassportOauthAlipaygrantAPIRequest) GetAlispTime() string { + return r._alispTime +} +// AlispSign Setter +// 签名字符串 +func (r *AlibabaAlisportsPassportOauthAlipaygrantAPIRequest) SetAlispSign(_alispSign string) error { + r._alispSign = _alispSign + r.Set("alisp_sign", _alispSign) + return nil +} + +// AlispSign Getter +func (r AlibabaAlisportsPassportOauthAlipaygrantAPIRequest) GetAlispSign() string { + return r._alispSign +} +// AuthCode Setter +// 调用支付宝登录sdk返回的code +func (r *AlibabaAlisportsPassportOauthAlipaygrantAPIRequest) SetAuthCode(_authCode string) error { + r._authCode = _authCode + r.Set("auth_code", _authCode) + return nil +} + +// AuthCode Getter +func (r AlibabaAlisportsPassportOauthAlipaygrantAPIRequest) GetAuthCode() string { + return r._authCode +} +// PartnerMode Setter +// 固定为rich_sports +func (r *AlibabaAlisportsPassportOauthAlipaygrantAPIRequest) SetPartnerMode(_partnerMode string) error { + r._partnerMode = _partnerMode + r.Set("partner_mode", _partnerMode) + return nil +} + +// PartnerMode Getter +func (r AlibabaAlisportsPassportOauthAlipaygrantAPIRequest) GetPartnerMode() string { + return r._partnerMode +} +// Appid Setter +// 支付宝的appid +func (r *AlibabaAlisportsPassportOauthAlipaygrantAPIRequest) SetAppid(_appid string) error { + r._appid = _appid + r.Set("appid", _appid) + return nil +} + +// Appid Getter +func (r AlibabaAlisportsPassportOauthAlipaygrantAPIRequest) GetAppid() string { + return r._appid +} +// AppUid Setter +// 合作方的userid,即用户唯一的id标识 +func (r *AlibabaAlisportsPassportOauthAlipaygrantAPIRequest) SetAppUid(_appUid string) error { + r._appUid = _appUid + r.Set("app_uid", _appUid) + return nil +} + +// AppUid Getter +func (r AlibabaAlisportsPassportOauthAlipaygrantAPIRequest) GetAppUid() string { + return r._appUid +} diff --git a/model/alisports/AlibabaAlisportsPassportOauthAlipaygrantAPIResponse.go b/model/alisports/AlibabaAlisportsPassportOauthAlipaygrantAPIResponse.go new file mode 100644 index 0000000000..4312852f64 --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportOauthAlipaygrantAPIResponse.go @@ -0,0 +1,31 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育会员系统-支付宝授权接口 API返回值 +alibaba.alisports.passport.oauth.alipaygrant + +开放给乐心运动使用的支付宝授权接口 +*/ +type AlibabaAlisportsPassportOauthAlipaygrantAPIResponse struct { + model.CommonResponse + AlibabaAlisportsPassportOauthAlipaygrantAPIResponseModel +} + +// 阿里体育会员系统-支付宝授权接口 成功返回结果 +type AlibabaAlisportsPassportOauthAlipaygrantAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_passport_oauth_alipaygrant_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回状态码,200标识成功 + AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` + // 返回信息 + AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` + // 返回数据 + AlispData *AlispData `json:"alisp_data,omitempty" xml:"alisp_data,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsPassportOauthAlipaygrantResponse.go b/model/alisports/AlibabaAlisportsPassportOauthAlipaygrantResponse.go deleted file mode 100644 index 66d5751194..0000000000 --- a/model/alisports/AlibabaAlisportsPassportOauthAlipaygrantResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里体育会员系统-支付宝授权接口 API返回值 -alibaba.alisports.passport.oauth.alipaygrant - -开放给乐心运动使用的支付宝授权接口 -*/ -type AlibabaAlisportsPassportOauthAlipaygrantAPIResponse struct { - model.CommonResponse - AlibabaAlisportsPassportOauthAlipaygrantResponse -} - -// 阿里体育会员系统-支付宝授权接口 成功返回结果 -type AlibabaAlisportsPassportOauthAlipaygrantResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_passport_oauth_alipaygrant_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回状态码,200标识成功 - AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` - // 返回信息 - AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` - // 返回数据 - AlispData *AlispData `json:"alisp_data,omitempty" xml:"alisp_data,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsPassportOauthTokenvalidateAPIRequest.go b/model/alisports/AlibabaAlisportsPassportOauthTokenvalidateAPIRequest.go new file mode 100644 index 0000000000..b2ef8d88b3 --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportOauthTokenvalidateAPIRequest.go @@ -0,0 +1,94 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育会员系统--获取登录信息接口 API请求 +alibaba.alisports.passport.oauth.tokenvalidate + +阿里体育会员系统--获取登录信息接口 +*/ +type AlibabaAlisportsPassportOauthTokenvalidateAPIRequest struct { + model.Params + // 登录时返回给前端的token + _token string + // 时间戳 + _alispTime string + // 应用的appkey + _alispAppKey string + // 参数加密之后的串 + _alispSign string +} + +// 初始化AlibabaAlisportsPassportOauthTokenvalidateAPIRequest对象 +func NewAlibabaAlisportsPassportOauthTokenvalidateRequest() *AlibabaAlisportsPassportOauthTokenvalidateAPIRequest{ + return &AlibabaAlisportsPassportOauthTokenvalidateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsPassportOauthTokenvalidateAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.passport.oauth.tokenvalidate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsPassportOauthTokenvalidateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Token Setter +// 登录时返回给前端的token +func (r *AlibabaAlisportsPassportOauthTokenvalidateAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaAlisportsPassportOauthTokenvalidateAPIRequest) GetToken() string { + return r._token +} +// AlispTime Setter +// 时间戳 +func (r *AlibabaAlisportsPassportOauthTokenvalidateAPIRequest) SetAlispTime(_alispTime string) error { + r._alispTime = _alispTime + r.Set("alisp_time", _alispTime) + return nil +} + +// AlispTime Getter +func (r AlibabaAlisportsPassportOauthTokenvalidateAPIRequest) GetAlispTime() string { + return r._alispTime +} +// AlispAppKey Setter +// 应用的appkey +func (r *AlibabaAlisportsPassportOauthTokenvalidateAPIRequest) SetAlispAppKey(_alispAppKey string) error { + r._alispAppKey = _alispAppKey + r.Set("alisp_app_key", _alispAppKey) + return nil +} + +// AlispAppKey Getter +func (r AlibabaAlisportsPassportOauthTokenvalidateAPIRequest) GetAlispAppKey() string { + return r._alispAppKey +} +// AlispSign Setter +// 参数加密之后的串 +func (r *AlibabaAlisportsPassportOauthTokenvalidateAPIRequest) SetAlispSign(_alispSign string) error { + r._alispSign = _alispSign + r.Set("alisp_sign", _alispSign) + return nil +} + +// AlispSign Getter +func (r AlibabaAlisportsPassportOauthTokenvalidateAPIRequest) GetAlispSign() string { + return r._alispSign +} diff --git a/model/alisports/AlibabaAlisportsPassportOauthTokenvalidateAPIResponse.go b/model/alisports/AlibabaAlisportsPassportOauthTokenvalidateAPIResponse.go new file mode 100644 index 0000000000..669454bf56 --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportOauthTokenvalidateAPIResponse.go @@ -0,0 +1,31 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育会员系统--获取登录信息接口 API返回值 +alibaba.alisports.passport.oauth.tokenvalidate + +阿里体育会员系统--获取登录信息接口 +*/ +type AlibabaAlisportsPassportOauthTokenvalidateAPIResponse struct { + model.CommonResponse + AlibabaAlisportsPassportOauthTokenvalidateAPIResponseModel +} + +// 阿里体育会员系统--获取登录信息接口 成功返回结果 +type AlibabaAlisportsPassportOauthTokenvalidateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_passport_oauth_tokenvalidate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alisp_code + AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` + // alisp_msg + AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` + // alisp_data + AlispData string `json:"alisp_data,omitempty" xml:"alisp_data,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsPassportOauthTokenvalidateResponse.go b/model/alisports/AlibabaAlisportsPassportOauthTokenvalidateResponse.go deleted file mode 100644 index f578c849ff..0000000000 --- a/model/alisports/AlibabaAlisportsPassportOauthTokenvalidateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里体育会员系统--获取登录信息接口 API返回值 -alibaba.alisports.passport.oauth.tokenvalidate - -阿里体育会员系统--获取登录信息接口 -*/ -type AlibabaAlisportsPassportOauthTokenvalidateAPIResponse struct { - model.CommonResponse - AlibabaAlisportsPassportOauthTokenvalidateResponse -} - -// 阿里体育会员系统--获取登录信息接口 成功返回结果 -type AlibabaAlisportsPassportOauthTokenvalidateResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_passport_oauth_tokenvalidate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alisp_code - AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` - // alisp_msg - AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` - // alisp_data - AlispData string `json:"alisp_data,omitempty" xml:"alisp_data,omitempty"` -} diff --git a/model/alisports/AlibabaAlisportsPassportParterSynccardAPIRequest.go b/model/alisports/AlibabaAlisportsPassportParterSynccardAPIRequest.go new file mode 100644 index 0000000000..a1717060fb --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportParterSynccardAPIRequest.go @@ -0,0 +1,136 @@ +package alisports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育-卡信息同步接口 API请求 +alibaba.alisports.passport.parter.synccard + +运享通修改卡号的时候,通知更新到阿里体育和支付宝卡包中 +*/ +type AlibabaAlisportsPassportParterSynccardAPIRequest struct { + model.Params + // 用户的id + _aliuid string + // 类型:1.修改,2.删除 + _type string + // 用户的老卡号(修改或删除之前的卡号) + _oldCardNum string + // 时间戳 + _alispTime string + // appkey + _alispAppKey string + // 签名字符串 + _alispSign string + // 改卡的中心id,如果卡号唯一则不需要传 + _centerNum string +} + +// 初始化AlibabaAlisportsPassportParterSynccardAPIRequest对象 +func NewAlibabaAlisportsPassportParterSynccardRequest() *AlibabaAlisportsPassportParterSynccardAPIRequest{ + return &AlibabaAlisportsPassportParterSynccardAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlisportsPassportParterSynccardAPIRequest) GetApiMethodName() string { + return "alibaba.alisports.passport.parter.synccard" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlisportsPassportParterSynccardAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Aliuid Setter +// 用户的id +func (r *AlibabaAlisportsPassportParterSynccardAPIRequest) SetAliuid(_aliuid string) error { + r._aliuid = _aliuid + r.Set("aliuid", _aliuid) + return nil +} + +// Aliuid Getter +func (r AlibabaAlisportsPassportParterSynccardAPIRequest) GetAliuid() string { + return r._aliuid +} +// Type Setter +// 类型:1.修改,2.删除 +func (r *AlibabaAlisportsPassportParterSynccardAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaAlisportsPassportParterSynccardAPIRequest) GetType() string { + return r._type +} +// OldCardNum Setter +// 用户的老卡号(修改或删除之前的卡号) +func (r *AlibabaAlisportsPassportParterSynccardAPIRequest) SetOldCardNum(_oldCardNum string) error { + r._oldCardNum = _oldCardNum + r.Set("old_card_num", _oldCardNum) + return nil +} + +// OldCardNum Getter +func (r AlibabaAlisportsPassportParterSynccardAPIRequest) GetOldCardNum() string { + return r._oldCardNum +} +// AlispTime Setter +// 时间戳 +func (r *AlibabaAlisportsPassportParterSynccardAPIRequest) SetAlispTime(_alispTime string) error { + r._alispTime = _alispTime + r.Set("alisp_time", _alispTime) + return nil +} + +// AlispTime Getter +func (r AlibabaAlisportsPassportParterSynccardAPIRequest) GetAlispTime() string { + return r._alispTime +} +// AlispAppKey Setter +// appkey +func (r *AlibabaAlisportsPassportParterSynccardAPIRequest) SetAlispAppKey(_alispAppKey string) error { + r._alispAppKey = _alispAppKey + r.Set("alisp_app_key", _alispAppKey) + return nil +} + +// AlispAppKey Getter +func (r AlibabaAlisportsPassportParterSynccardAPIRequest) GetAlispAppKey() string { + return r._alispAppKey +} +// AlispSign Setter +// 签名字符串 +func (r *AlibabaAlisportsPassportParterSynccardAPIRequest) SetAlispSign(_alispSign string) error { + r._alispSign = _alispSign + r.Set("alisp_sign", _alispSign) + return nil +} + +// AlispSign Getter +func (r AlibabaAlisportsPassportParterSynccardAPIRequest) GetAlispSign() string { + return r._alispSign +} +// CenterNum Setter +// 改卡的中心id,如果卡号唯一则不需要传 +func (r *AlibabaAlisportsPassportParterSynccardAPIRequest) SetCenterNum(_centerNum string) error { + r._centerNum = _centerNum + r.Set("center_num", _centerNum) + return nil +} + +// CenterNum Getter +func (r AlibabaAlisportsPassportParterSynccardAPIRequest) GetCenterNum() string { + return r._centerNum +} diff --git a/model/alisports/AlibabaAlisportsPassportParterSynccardAPIResponse.go b/model/alisports/AlibabaAlisportsPassportParterSynccardAPIResponse.go new file mode 100644 index 0000000000..db03b61386 --- /dev/null +++ b/model/alisports/AlibabaAlisportsPassportParterSynccardAPIResponse.go @@ -0,0 +1,31 @@ +package alisports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里体育-卡信息同步接口 API返回值 +alibaba.alisports.passport.parter.synccard + +运享通修改卡号的时候,通知更新到阿里体育和支付宝卡包中 +*/ +type AlibabaAlisportsPassportParterSynccardAPIResponse struct { + model.CommonResponse + AlibabaAlisportsPassportParterSynccardAPIResponseModel +} + +// 阿里体育-卡信息同步接口 成功返回结果 +type AlibabaAlisportsPassportParterSynccardAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alisports_passport_parter_synccard_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 200标识成功,其他的code为失败 + AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` + // 正确或错误的信息 + AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` + // 返回数据 + AlispData string `json:"alisp_data,omitempty" xml:"alisp_data,omitempty"` +} diff --git a/model/alisports/AlibabaAlisportsPassportParterSynccardResponse.go b/model/alisports/AlibabaAlisportsPassportParterSynccardResponse.go deleted file mode 100644 index 499a85e134..0000000000 --- a/model/alisports/AlibabaAlisportsPassportParterSynccardResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alisports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里体育-卡信息同步接口 API返回值 -alibaba.alisports.passport.parter.synccard - -运享通修改卡号的时候,通知更新到阿里体育和支付宝卡包中 -*/ -type AlibabaAlisportsPassportParterSynccardAPIResponse struct { - model.CommonResponse - AlibabaAlisportsPassportParterSynccardResponse -} - -// 阿里体育-卡信息同步接口 成功返回结果 -type AlibabaAlisportsPassportParterSynccardResponse struct { - XMLName xml.Name `xml:"alibaba_alisports_passport_parter_synccard_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 200标识成功,其他的code为失败 - AlispCode int64 `json:"alisp_code,omitempty" xml:"alisp_code,omitempty"` - // 正确或错误的信息 - AlispMsg string `json:"alisp_msg,omitempty" xml:"alisp_msg,omitempty"` - // 返回数据 - AlispData string `json:"alisp_data,omitempty" xml:"alisp_data,omitempty"` -} diff --git a/model/alitripbp/AlitripBpCouponinfoSyncAPIRequest.go b/model/alitripbp/AlitripBpCouponinfoSyncAPIRequest.go new file mode 100644 index 0000000000..fe08e15dd6 --- /dev/null +++ b/model/alitripbp/AlitripBpCouponinfoSyncAPIRequest.go @@ -0,0 +1,52 @@ +package alitripbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪广告券信息同步接口 API请求 +alitrip.bp.couponinfo.sync + +飞猪商业化券信息同步 +*/ +type AlitripBpCouponinfoSyncAPIRequest struct { + model.Params + // 商业化券同步接口请求 + _paramCouponDataRequest *CouponDataRequest +} + +// 初始化AlitripBpCouponinfoSyncAPIRequest对象 +func NewAlitripBpCouponinfoSyncRequest() *AlitripBpCouponinfoSyncAPIRequest{ + return &AlitripBpCouponinfoSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBpCouponinfoSyncAPIRequest) GetApiMethodName() string { + return "alitrip.bp.couponinfo.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBpCouponinfoSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCouponDataRequest Setter +// 商业化券同步接口请求 +func (r *AlitripBpCouponinfoSyncAPIRequest) SetParamCouponDataRequest(_paramCouponDataRequest *CouponDataRequest) error { + r._paramCouponDataRequest = _paramCouponDataRequest + r.Set("param_coupon_data_request", _paramCouponDataRequest) + return nil +} + +// ParamCouponDataRequest Getter +func (r AlitripBpCouponinfoSyncAPIRequest) GetParamCouponDataRequest() *CouponDataRequest { + return r._paramCouponDataRequest +} diff --git a/model/alitripbp/AlitripBpCouponinfoSyncAPIResponse.go b/model/alitripbp/AlitripBpCouponinfoSyncAPIResponse.go new file mode 100644 index 0000000000..02f37334ad --- /dev/null +++ b/model/alitripbp/AlitripBpCouponinfoSyncAPIResponse.go @@ -0,0 +1,27 @@ +package alitripbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪广告券信息同步接口 API返回值 +alitrip.bp.couponinfo.sync + +飞猪商业化券信息同步 +*/ +type AlitripBpCouponinfoSyncAPIResponse struct { + model.CommonResponse + AlitripBpCouponinfoSyncAPIResponseModel +} + +// 飞猪广告券信息同步接口 成功返回结果 +type AlitripBpCouponinfoSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_bp_couponinfo_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AdResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripbp/AlitripBpCouponinfoSyncResponse.go b/model/alitripbp/AlitripBpCouponinfoSyncResponse.go deleted file mode 100644 index bd30dd11e5..0000000000 --- a/model/alitripbp/AlitripBpCouponinfoSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alitripbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -飞猪广告券信息同步接口 API返回值 -alitrip.bp.couponinfo.sync - -飞猪商业化券信息同步 -*/ -type AlitripBpCouponinfoSyncAPIResponse struct { - model.CommonResponse - AlitripBpCouponinfoSyncResponse -} - -// 飞猪广告券信息同步接口 成功返回结果 -type AlitripBpCouponinfoSyncResponse struct { - XMLName xml.Name `xml:"alitrip_bp_couponinfo_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AdResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alitripcar/AlitripCarInvoiceConfirmAPIRequest.go b/model/alitripcar/AlitripCarInvoiceConfirmAPIRequest.go new file mode 100644 index 0000000000..da387ff931 --- /dev/null +++ b/model/alitripcar/AlitripCarInvoiceConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package alitripcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发票确认接口 API请求 +alitrip.car.invoice.confirm + +飞猪发票回调接口 +*/ +type AlitripCarInvoiceConfirmAPIRequest struct { + model.Params + // 入参对象 + _receiptDo *ReceiptDo +} + +// 初始化AlitripCarInvoiceConfirmAPIRequest对象 +func NewAlitripCarInvoiceConfirmRequest() *AlitripCarInvoiceConfirmAPIRequest{ + return &AlitripCarInvoiceConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripCarInvoiceConfirmAPIRequest) GetApiMethodName() string { + return "alitrip.car.invoice.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripCarInvoiceConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReceiptDo Setter +// 入参对象 +func (r *AlitripCarInvoiceConfirmAPIRequest) SetReceiptDo(_receiptDo *ReceiptDo) error { + r._receiptDo = _receiptDo + r.Set("receipt_do", _receiptDo) + return nil +} + +// ReceiptDo Getter +func (r AlitripCarInvoiceConfirmAPIRequest) GetReceiptDo() *ReceiptDo { + return r._receiptDo +} diff --git a/model/alitripcar/AlitripCarInvoiceConfirmAPIResponse.go b/model/alitripcar/AlitripCarInvoiceConfirmAPIResponse.go new file mode 100644 index 0000000000..c0259eb06f --- /dev/null +++ b/model/alitripcar/AlitripCarInvoiceConfirmAPIResponse.go @@ -0,0 +1,31 @@ +package alitripcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发票确认接口 API返回值 +alitrip.car.invoice.confirm + +飞猪发票回调接口 +*/ +type AlitripCarInvoiceConfirmAPIResponse struct { + model.CommonResponse + AlitripCarInvoiceConfirmAPIResponseModel +} + +// 发票确认接口 成功返回结果 +type AlitripCarInvoiceConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_car_invoice_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 错误消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 错误码 + MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` +} diff --git a/model/alitripcar/AlitripCarInvoiceConfirmResponse.go b/model/alitripcar/AlitripCarInvoiceConfirmResponse.go deleted file mode 100644 index e61b669f55..0000000000 --- a/model/alitripcar/AlitripCarInvoiceConfirmResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alitripcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发票确认接口 API返回值 -alitrip.car.invoice.confirm - -飞猪发票回调接口 -*/ -type AlitripCarInvoiceConfirmAPIResponse struct { - model.CommonResponse - AlitripCarInvoiceConfirmResponse -} - -// 发票确认接口 成功返回结果 -type AlitripCarInvoiceConfirmResponse struct { - XMLName xml.Name `xml:"alitrip_car_invoice_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 错误消息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 错误码 - MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` -} diff --git a/model/alitripcar/TaobaoAlitripCarOrderAgentCancelAPIRequest.go b/model/alitripcar/TaobaoAlitripCarOrderAgentCancelAPIRequest.go new file mode 100644 index 0000000000..0744ca8c9f --- /dev/null +++ b/model/alitripcar/TaobaoAlitripCarOrderAgentCancelAPIRequest.go @@ -0,0 +1,52 @@ +package alitripcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +司机或客服取消订单 API请求 +taobao.alitrip.car.order.agent.cancel + +司机或客服取消订单后通知飞猪订单取消 +*/ +type TaobaoAlitripCarOrderAgentCancelAPIRequest struct { + model.Params + // 取消对象 + _paramOrderCancel *OrderCancel +} + +// 初始化TaobaoAlitripCarOrderAgentCancelAPIRequest对象 +func NewTaobaoAlitripCarOrderAgentCancelRequest() *TaobaoAlitripCarOrderAgentCancelAPIRequest{ + return &TaobaoAlitripCarOrderAgentCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripCarOrderAgentCancelAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.car.order.agent.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripCarOrderAgentCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamOrderCancel Setter +// 取消对象 +func (r *TaobaoAlitripCarOrderAgentCancelAPIRequest) SetParamOrderCancel(_paramOrderCancel *OrderCancel) error { + r._paramOrderCancel = _paramOrderCancel + r.Set("param_order_cancel", _paramOrderCancel) + return nil +} + +// ParamOrderCancel Getter +func (r TaobaoAlitripCarOrderAgentCancelAPIRequest) GetParamOrderCancel() *OrderCancel { + return r._paramOrderCancel +} diff --git a/model/alitripcar/TaobaoAlitripCarOrderAgentCancelAPIResponse.go b/model/alitripcar/TaobaoAlitripCarOrderAgentCancelAPIResponse.go new file mode 100644 index 0000000000..c9e83beace --- /dev/null +++ b/model/alitripcar/TaobaoAlitripCarOrderAgentCancelAPIResponse.go @@ -0,0 +1,31 @@ +package alitripcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +司机或客服取消订单 API返回值 +taobao.alitrip.car.order.agent.cancel + +司机或客服取消订单后通知飞猪订单取消 +*/ +type TaobaoAlitripCarOrderAgentCancelAPIResponse struct { + model.CommonResponse + TaobaoAlitripCarOrderAgentCancelAPIResponseModel +} + +// 司机或客服取消订单 成功返回结果 +type TaobaoAlitripCarOrderAgentCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_car_order_agent_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 错误消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 错误码 + MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` +} diff --git a/model/alitripcar/TaobaoAlitripCarOrderAgentCancelResponse.go b/model/alitripcar/TaobaoAlitripCarOrderAgentCancelResponse.go deleted file mode 100644 index aa138b587c..0000000000 --- a/model/alitripcar/TaobaoAlitripCarOrderAgentCancelResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alitripcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -司机或客服取消订单 API返回值 -taobao.alitrip.car.order.agent.cancel - -司机或客服取消订单后通知飞猪订单取消 -*/ -type TaobaoAlitripCarOrderAgentCancelAPIResponse struct { - model.CommonResponse - TaobaoAlitripCarOrderAgentCancelResponse -} - -// 司机或客服取消订单 成功返回结果 -type TaobaoAlitripCarOrderAgentCancelResponse struct { - XMLName xml.Name `xml:"alitrip_car_order_agent_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 错误消息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 错误码 - MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` -} diff --git a/model/alitripcar/TaobaoAlitripCarOrderRefundAPIRequest.go b/model/alitripcar/TaobaoAlitripCarOrderRefundAPIRequest.go new file mode 100644 index 0000000000..fd3ad90ab0 --- /dev/null +++ b/model/alitripcar/TaobaoAlitripCarOrderRefundAPIRequest.go @@ -0,0 +1,52 @@ +package alitripcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户投诉达成一致后给用户退款 API请求 +taobao.alitrip.car.order.refund + +用户投诉后,供应商客服与客户沟通达成一致后通知飞猪给客户退款。退款金额以接口回调金额为准。 +*/ +type TaobaoAlitripCarOrderRefundAPIRequest struct { + model.Params + // 退款对象 + _paramOrderRefund *OrderRefund +} + +// 初始化TaobaoAlitripCarOrderRefundAPIRequest对象 +func NewTaobaoAlitripCarOrderRefundRequest() *TaobaoAlitripCarOrderRefundAPIRequest{ + return &TaobaoAlitripCarOrderRefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripCarOrderRefundAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.car.order.refund" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripCarOrderRefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamOrderRefund Setter +// 退款对象 +func (r *TaobaoAlitripCarOrderRefundAPIRequest) SetParamOrderRefund(_paramOrderRefund *OrderRefund) error { + r._paramOrderRefund = _paramOrderRefund + r.Set("param_order_refund", _paramOrderRefund) + return nil +} + +// ParamOrderRefund Getter +func (r TaobaoAlitripCarOrderRefundAPIRequest) GetParamOrderRefund() *OrderRefund { + return r._paramOrderRefund +} diff --git a/model/alitripcar/TaobaoAlitripCarOrderRefundAPIResponse.go b/model/alitripcar/TaobaoAlitripCarOrderRefundAPIResponse.go new file mode 100644 index 0000000000..81bd81d4da --- /dev/null +++ b/model/alitripcar/TaobaoAlitripCarOrderRefundAPIResponse.go @@ -0,0 +1,31 @@ +package alitripcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户投诉达成一致后给用户退款 API返回值 +taobao.alitrip.car.order.refund + +用户投诉后,供应商客服与客户沟通达成一致后通知飞猪给客户退款。退款金额以接口回调金额为准。 +*/ +type TaobaoAlitripCarOrderRefundAPIResponse struct { + model.CommonResponse + TaobaoAlitripCarOrderRefundAPIResponseModel +} + +// 用户投诉达成一致后给用户退款 成功返回结果 +type TaobaoAlitripCarOrderRefundAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_car_order_refund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 错误消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 错误码 + MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` +} diff --git a/model/alitripcar/TaobaoAlitripCarOrderRefundResponse.go b/model/alitripcar/TaobaoAlitripCarOrderRefundResponse.go deleted file mode 100644 index ae5373f275..0000000000 --- a/model/alitripcar/TaobaoAlitripCarOrderRefundResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alitripcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户投诉达成一致后给用户退款 API返回值 -taobao.alitrip.car.order.refund - -用户投诉后,供应商客服与客户沟通达成一致后通知飞猪给客户退款。退款金额以接口回调金额为准。 -*/ -type TaobaoAlitripCarOrderRefundAPIResponse struct { - model.CommonResponse - TaobaoAlitripCarOrderRefundResponse -} - -// 用户投诉达成一致后给用户退款 成功返回结果 -type TaobaoAlitripCarOrderRefundResponse struct { - XMLName xml.Name `xml:"alitrip_car_order_refund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 错误消息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 错误码 - MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` -} diff --git a/model/alitripdivisions/AlitripPlatformDivisionsGetdivisionbynameAPIRequest.go b/model/alitripdivisions/AlitripPlatformDivisionsGetdivisionbynameAPIRequest.go new file mode 100644 index 0000000000..9959b30a0f --- /dev/null +++ b/model/alitripdivisions/AlitripPlatformDivisionsGetdivisionbynameAPIRequest.go @@ -0,0 +1,66 @@ +package alitripdivisions + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据中文名称与行政区划级别查询行政区划数据 API请求 +alitrip.platform.divisions.getdivisionbyname + +根据中文名称与行政区划级别查询行政区划数据 +*/ +type AlitripPlatformDivisionsGetdivisionbynameAPIRequest struct { + model.Params + // 行政区划名称 + _name string + // 行政区划级别ALL(0, "全部"), CONTINENT(1, "大洲"), COUNTRY(2, "国家"), PROVINCE(3, "省份"), CITY(4, "城市"), DISTRICT(5, "区县"), STREET(6, "街道") + _level int64 +} + +// 初始化AlitripPlatformDivisionsGetdivisionbynameAPIRequest对象 +func NewAlitripPlatformDivisionsGetdivisionbynameRequest() *AlitripPlatformDivisionsGetdivisionbynameAPIRequest{ + return &AlitripPlatformDivisionsGetdivisionbynameAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripPlatformDivisionsGetdivisionbynameAPIRequest) GetApiMethodName() string { + return "alitrip.platform.divisions.getdivisionbyname" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripPlatformDivisionsGetdivisionbynameAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// 行政区划名称 +func (r *AlitripPlatformDivisionsGetdivisionbynameAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r AlitripPlatformDivisionsGetdivisionbynameAPIRequest) GetName() string { + return r._name +} +// Level Setter +// 行政区划级别ALL(0, "全部"), CONTINENT(1, "大洲"), COUNTRY(2, "国家"), PROVINCE(3, "省份"), CITY(4, "城市"), DISTRICT(5, "区县"), STREET(6, "街道") +func (r *AlitripPlatformDivisionsGetdivisionbynameAPIRequest) SetLevel(_level int64) error { + r._level = _level + r.Set("level", _level) + return nil +} + +// Level Getter +func (r AlitripPlatformDivisionsGetdivisionbynameAPIRequest) GetLevel() int64 { + return r._level +} diff --git a/model/alitripdivisions/AlitripPlatformDivisionsGetdivisionbynameAPIResponse.go b/model/alitripdivisions/AlitripPlatformDivisionsGetdivisionbynameAPIResponse.go new file mode 100644 index 0000000000..a27ef18fb2 --- /dev/null +++ b/model/alitripdivisions/AlitripPlatformDivisionsGetdivisionbynameAPIResponse.go @@ -0,0 +1,27 @@ +package alitripdivisions + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据中文名称与行政区划级别查询行政区划数据 API返回值 +alitrip.platform.divisions.getdivisionbyname + +根据中文名称与行政区划级别查询行政区划数据 +*/ +type AlitripPlatformDivisionsGetdivisionbynameAPIResponse struct { + model.CommonResponse + AlitripPlatformDivisionsGetdivisionbynameAPIResponseModel +} + +// 根据中文名称与行政区划级别查询行政区划数据 成功返回结果 +type AlitripPlatformDivisionsGetdivisionbynameAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_platform_divisions_getdivisionbyname_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Results []string `json:"results,omitempty" xml:"results>string,omitempty"` +} diff --git a/model/alitripdivisions/AlitripPlatformDivisionsGetdivisionbynameResponse.go b/model/alitripdivisions/AlitripPlatformDivisionsGetdivisionbynameResponse.go deleted file mode 100644 index 6c4bff1a9c..0000000000 --- a/model/alitripdivisions/AlitripPlatformDivisionsGetdivisionbynameResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alitripdivisions - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据中文名称与行政区划级别查询行政区划数据 API返回值 -alitrip.platform.divisions.getdivisionbyname - -根据中文名称与行政区划级别查询行政区划数据 -*/ -type AlitripPlatformDivisionsGetdivisionbynameAPIResponse struct { - model.CommonResponse - AlitripPlatformDivisionsGetdivisionbynameResponse -} - -// 根据中文名称与行政区划级别查询行政区划数据 成功返回结果 -type AlitripPlatformDivisionsGetdivisionbynameResponse struct { - XMLName xml.Name `xml:"alitrip_platform_divisions_getdivisionbyname_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Results []string `json:"results,omitempty" xml:"results>string,omitempty"` -} diff --git a/model/alitripdivisions/AlitripPlatformDivisionsQuerybyparentidAPIRequest.go b/model/alitripdivisions/AlitripPlatformDivisionsQuerybyparentidAPIRequest.go new file mode 100644 index 0000000000..4abbeafba1 --- /dev/null +++ b/model/alitripdivisions/AlitripPlatformDivisionsQuerybyparentidAPIRequest.go @@ -0,0 +1,52 @@ +package alitripdivisions + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据父节点id查询下级行政区划数据 API请求 +alitrip.platform.divisions.querybyparentid + +根据行政区划id查询下一层级行政区划数据 +*/ +type AlitripPlatformDivisionsQuerybyparentidAPIRequest struct { + model.Params + // 行政区划父id + _paramLong int64 +} + +// 初始化AlitripPlatformDivisionsQuerybyparentidAPIRequest对象 +func NewAlitripPlatformDivisionsQuerybyparentidRequest() *AlitripPlatformDivisionsQuerybyparentidAPIRequest{ + return &AlitripPlatformDivisionsQuerybyparentidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripPlatformDivisionsQuerybyparentidAPIRequest) GetApiMethodName() string { + return "alitrip.platform.divisions.querybyparentid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripPlatformDivisionsQuerybyparentidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamLong Setter +// 行政区划父id +func (r *AlitripPlatformDivisionsQuerybyparentidAPIRequest) SetParamLong(_paramLong int64) error { + r._paramLong = _paramLong + r.Set("param_long", _paramLong) + return nil +} + +// ParamLong Getter +func (r AlitripPlatformDivisionsQuerybyparentidAPIRequest) GetParamLong() int64 { + return r._paramLong +} diff --git a/model/alitripdivisions/AlitripPlatformDivisionsQuerybyparentidAPIResponse.go b/model/alitripdivisions/AlitripPlatformDivisionsQuerybyparentidAPIResponse.go new file mode 100644 index 0000000000..5643724a89 --- /dev/null +++ b/model/alitripdivisions/AlitripPlatformDivisionsQuerybyparentidAPIResponse.go @@ -0,0 +1,27 @@ +package alitripdivisions + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据父节点id查询下级行政区划数据 API返回值 +alitrip.platform.divisions.querybyparentid + +根据行政区划id查询下一层级行政区划数据 +*/ +type AlitripPlatformDivisionsQuerybyparentidAPIResponse struct { + model.CommonResponse + AlitripPlatformDivisionsQuerybyparentidAPIResponseModel +} + +// 根据父节点id查询下级行政区划数据 成功返回结果 +type AlitripPlatformDivisionsQuerybyparentidAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_platform_divisions_querybyparentid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlitripPlatformDivisionsQuerybyparentidResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripdivisions/AlitripPlatformDivisionsQuerybyparentidResponse.go b/model/alitripdivisions/AlitripPlatformDivisionsQuerybyparentidResponse.go deleted file mode 100644 index 7cd42eb2d1..0000000000 --- a/model/alitripdivisions/AlitripPlatformDivisionsQuerybyparentidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alitripdivisions - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据父节点id查询下级行政区划数据 API返回值 -alitrip.platform.divisions.querybyparentid - -根据行政区划id查询下一层级行政区划数据 -*/ -type AlitripPlatformDivisionsQuerybyparentidAPIResponse struct { - model.CommonResponse - AlitripPlatformDivisionsQuerybyparentidResponse -} - -// 根据父节点id查询下级行政区划数据 成功返回结果 -type AlitripPlatformDivisionsQuerybyparentidResponse struct { - XMLName xml.Name `xml:"alitrip_platform_divisions_querybyparentid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlitripPlatformDivisionsQuerybyparentidResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyBrandSearchAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyBrandSearchAPIRequest.go new file mode 100644 index 0000000000..8a8228dd5b --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyBrandSearchAPIRequest.go @@ -0,0 +1,52 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-品牌搜索 API请求 +alitrip.merchant.galaxy.brand.search + +星河服务=获取雅高品牌信息 +*/ +type AlitripMerchantGalaxyBrandSearchAPIRequest struct { + model.Params + // 租户信息 + _tenantKey string +} + +// 初始化AlitripMerchantGalaxyBrandSearchAPIRequest对象 +func NewAlitripMerchantGalaxyBrandSearchRequest() *AlitripMerchantGalaxyBrandSearchAPIRequest{ + return &AlitripMerchantGalaxyBrandSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyBrandSearchAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.brand.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyBrandSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 租户信息 +func (r *AlitripMerchantGalaxyBrandSearchAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyBrandSearchAPIRequest) GetTenantKey() string { + return r._tenantKey +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyBrandSearchAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyBrandSearchAPIResponse.go new file mode 100644 index 0000000000..f70e3d4608 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyBrandSearchAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-品牌搜索 API返回值 +alitrip.merchant.galaxy.brand.search + +星河服务=获取雅高品牌信息 +*/ +type AlitripMerchantGalaxyBrandSearchAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyBrandSearchAPIResponseModel +} + +// 星河-品牌搜索 成功返回结果 +type AlitripMerchantGalaxyBrandSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_brand_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlitripMerchantGalaxyBrandSearchResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyBrandSearchResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyBrandSearchResponse.go deleted file mode 100644 index fa227b9be1..0000000000 --- a/model/alitripmerchant/AlitripMerchantGalaxyBrandSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alitripmerchant - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -星河-品牌搜索 API返回值 -alitrip.merchant.galaxy.brand.search - -星河服务=获取雅高品牌信息 -*/ -type AlitripMerchantGalaxyBrandSearchAPIResponse struct { - model.CommonResponse - AlitripMerchantGalaxyBrandSearchResponse -} - -// 星河-品牌搜索 成功返回结果 -type AlitripMerchantGalaxyBrandSearchResponse struct { - XMLName xml.Name `xml:"alitrip_merchant_galaxy_brand_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlitripMerchantGalaxyBrandSearchResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyCityLikeAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyCityLikeAPIRequest.go new file mode 100644 index 0000000000..1aeb9c55c7 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyCityLikeAPIRequest.go @@ -0,0 +1,80 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-酒店城市模糊查询 API请求 +alitrip.merchant.galaxy.city.like + +根据城市模糊查询,雅高酒店所在城市的城市信息 +*/ +type AlitripMerchantGalaxyCityLikeAPIRequest struct { + model.Params + // 商家租户id + _tenantKey string + // 城市模糊 + _cityName string + // 0国内1国外 + _domestic int64 +} + +// 初始化AlitripMerchantGalaxyCityLikeAPIRequest对象 +func NewAlitripMerchantGalaxyCityLikeRequest() *AlitripMerchantGalaxyCityLikeAPIRequest{ + return &AlitripMerchantGalaxyCityLikeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyCityLikeAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.city.like" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyCityLikeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 商家租户id +func (r *AlitripMerchantGalaxyCityLikeAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyCityLikeAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// CityName Setter +// 城市模糊 +func (r *AlitripMerchantGalaxyCityLikeAPIRequest) SetCityName(_cityName string) error { + r._cityName = _cityName + r.Set("city_name", _cityName) + return nil +} + +// CityName Getter +func (r AlitripMerchantGalaxyCityLikeAPIRequest) GetCityName() string { + return r._cityName +} +// Domestic Setter +// 0国内1国外 +func (r *AlitripMerchantGalaxyCityLikeAPIRequest) SetDomestic(_domestic int64) error { + r._domestic = _domestic + r.Set("domestic", _domestic) + return nil +} + +// Domestic Getter +func (r AlitripMerchantGalaxyCityLikeAPIRequest) GetDomestic() int64 { + return r._domestic +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyCityLikeAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyCityLikeAPIResponse.go new file mode 100644 index 0000000000..42fee3deda --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyCityLikeAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-酒店城市模糊查询 API返回值 +alitrip.merchant.galaxy.city.like + +根据城市模糊查询,雅高酒店所在城市的城市信息 +*/ +type AlitripMerchantGalaxyCityLikeAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyCityLikeAPIResponseModel +} + +// 星河-酒店城市模糊查询 成功返回结果 +type AlitripMerchantGalaxyCityLikeAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_city_like_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AlitripMerchantGalaxyCityLikeResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyCityListAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyCityListAPIRequest.go new file mode 100644 index 0000000000..089471bf20 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyCityListAPIRequest.go @@ -0,0 +1,66 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-酒店城市列表展示 API请求 +alitrip.merchant.galaxy.city.list + +雅高酒店城市列表展示,并且首字母列出酒店城市 +*/ +type AlitripMerchantGalaxyCityListAPIRequest struct { + model.Params + // 商家租户id + _tenantKey string + // 0国内 1国外 + _domestic int64 +} + +// 初始化AlitripMerchantGalaxyCityListAPIRequest对象 +func NewAlitripMerchantGalaxyCityListRequest() *AlitripMerchantGalaxyCityListAPIRequest{ + return &AlitripMerchantGalaxyCityListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyCityListAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.city.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyCityListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 商家租户id +func (r *AlitripMerchantGalaxyCityListAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyCityListAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// Domestic Setter +// 0国内 1国外 +func (r *AlitripMerchantGalaxyCityListAPIRequest) SetDomestic(_domestic int64) error { + r._domestic = _domestic + r.Set("domestic", _domestic) + return nil +} + +// Domestic Getter +func (r AlitripMerchantGalaxyCityListAPIRequest) GetDomestic() int64 { + return r._domestic +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyCityListAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyCityListAPIResponse.go new file mode 100644 index 0000000000..8f2a665462 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyCityListAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-酒店城市列表展示 API返回值 +alitrip.merchant.galaxy.city.list + +雅高酒店城市列表展示,并且首字母列出酒店城市 +*/ +type AlitripMerchantGalaxyCityListAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyCityListAPIResponseModel +} + +// 星河-酒店城市列表展示 成功返回结果 +type AlitripMerchantGalaxyCityListAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_city_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AlitripMerchantGalaxyCityListResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyHotelDetailSearchAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyHotelDetailSearchAPIRequest.go new file mode 100644 index 0000000000..be10316123 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyHotelDetailSearchAPIRequest.go @@ -0,0 +1,66 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-酒店详细信息搜索 API请求 +alitrip.merchant.galaxy.hotel.detail.search + +星河服务=获取雅高酒店详细信息 +*/ +type AlitripMerchantGalaxyHotelDetailSearchAPIRequest struct { + model.Params + // 租户id + _tenantKey string + // 酒店详情入参 + _hotelDetailsParam *HotelDetailsParam +} + +// 初始化AlitripMerchantGalaxyHotelDetailSearchAPIRequest对象 +func NewAlitripMerchantGalaxyHotelDetailSearchRequest() *AlitripMerchantGalaxyHotelDetailSearchAPIRequest{ + return &AlitripMerchantGalaxyHotelDetailSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyHotelDetailSearchAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.hotel.detail.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyHotelDetailSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 租户id +func (r *AlitripMerchantGalaxyHotelDetailSearchAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyHotelDetailSearchAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// HotelDetailsParam Setter +// 酒店详情入参 +func (r *AlitripMerchantGalaxyHotelDetailSearchAPIRequest) SetHotelDetailsParam(_hotelDetailsParam *HotelDetailsParam) error { + r._hotelDetailsParam = _hotelDetailsParam + r.Set("hotel_details_param", _hotelDetailsParam) + return nil +} + +// HotelDetailsParam Getter +func (r AlitripMerchantGalaxyHotelDetailSearchAPIRequest) GetHotelDetailsParam() *HotelDetailsParam { + return r._hotelDetailsParam +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyHotelDetailSearchAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyHotelDetailSearchAPIResponse.go new file mode 100644 index 0000000000..8447f989c4 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyHotelDetailSearchAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-酒店详细信息搜索 API返回值 +alitrip.merchant.galaxy.hotel.detail.search + +星河服务=获取雅高酒店详细信息 +*/ +type AlitripMerchantGalaxyHotelDetailSearchAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyHotelDetailSearchAPIResponseModel +} + +// 星河-酒店详细信息搜索 成功返回结果 +type AlitripMerchantGalaxyHotelDetailSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_hotel_detail_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlitripMerchantGalaxyHotelDetailSearchResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyHotelDetailSearchResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyHotelDetailSearchResponse.go deleted file mode 100644 index fff911f947..0000000000 --- a/model/alitripmerchant/AlitripMerchantGalaxyHotelDetailSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alitripmerchant - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -星河-酒店详细信息搜索 API返回值 -alitrip.merchant.galaxy.hotel.detail.search - -星河服务=获取雅高酒店详细信息 -*/ -type AlitripMerchantGalaxyHotelDetailSearchAPIResponse struct { - model.CommonResponse - AlitripMerchantGalaxyHotelDetailSearchResponse -} - -// 星河-酒店详细信息搜索 成功返回结果 -type AlitripMerchantGalaxyHotelDetailSearchResponse struct { - XMLName xml.Name `xml:"alitrip_merchant_galaxy_hotel_detail_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlitripMerchantGalaxyHotelDetailSearchResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyHotelListSearchAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyHotelListSearchAPIRequest.go new file mode 100644 index 0000000000..b0ab79ff86 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyHotelListSearchAPIRequest.go @@ -0,0 +1,66 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-酒店列表页搜索 API请求 +alitrip.merchant.galaxy.hotel.list.search + +星河产品=酒店列表页搜索 +*/ +type AlitripMerchantGalaxyHotelListSearchAPIRequest struct { + model.Params + // 商家租户id + _tenantKey string + // 请求参数 + _listSearchParam *ListSearchParam +} + +// 初始化AlitripMerchantGalaxyHotelListSearchAPIRequest对象 +func NewAlitripMerchantGalaxyHotelListSearchRequest() *AlitripMerchantGalaxyHotelListSearchAPIRequest{ + return &AlitripMerchantGalaxyHotelListSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyHotelListSearchAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.hotel.list.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyHotelListSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 商家租户id +func (r *AlitripMerchantGalaxyHotelListSearchAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyHotelListSearchAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// ListSearchParam Setter +// 请求参数 +func (r *AlitripMerchantGalaxyHotelListSearchAPIRequest) SetListSearchParam(_listSearchParam *ListSearchParam) error { + r._listSearchParam = _listSearchParam + r.Set("list_search_param", _listSearchParam) + return nil +} + +// ListSearchParam Getter +func (r AlitripMerchantGalaxyHotelListSearchAPIRequest) GetListSearchParam() *ListSearchParam { + return r._listSearchParam +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyHotelListSearchAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyHotelListSearchAPIResponse.go new file mode 100644 index 0000000000..0c070b830d --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyHotelListSearchAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-酒店列表页搜索 API返回值 +alitrip.merchant.galaxy.hotel.list.search + +星河产品=酒店列表页搜索 +*/ +type AlitripMerchantGalaxyHotelListSearchAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyHotelListSearchAPIResponseModel +} + +// 星河-酒店列表页搜索 成功返回结果 +type AlitripMerchantGalaxyHotelListSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_hotel_list_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *PageableResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyHotelListSearchResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyHotelListSearchResponse.go deleted file mode 100644 index 7558f1e3ed..0000000000 --- a/model/alitripmerchant/AlitripMerchantGalaxyHotelListSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alitripmerchant - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -星河-酒店列表页搜索 API返回值 -alitrip.merchant.galaxy.hotel.list.search - -星河产品=酒店列表页搜索 -*/ -type AlitripMerchantGalaxyHotelListSearchAPIResponse struct { - model.CommonResponse - AlitripMerchantGalaxyHotelListSearchResponse -} - -// 星河-酒店列表页搜索 成功返回结果 -type AlitripMerchantGalaxyHotelListSearchResponse struct { - XMLName xml.Name `xml:"alitrip_merchant_galaxy_hotel_list_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *PageableResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyMemberCardAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyMemberCardAPIRequest.go new file mode 100644 index 0000000000..e27afe05e5 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyMemberCardAPIRequest.go @@ -0,0 +1,80 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-获取会员卡信息 API请求 +alitrip.merchant.galaxy.member.card + +星河=根据会员等级获取会员的权益 +*/ +type AlitripMerchantGalaxyMemberCardAPIRequest struct { + model.Params + // 租户信息 + _tenantKey string + // 飞猪等级 + _fliggyLevel string + // 卡类型 + _cardType string +} + +// 初始化AlitripMerchantGalaxyMemberCardAPIRequest对象 +func NewAlitripMerchantGalaxyMemberCardRequest() *AlitripMerchantGalaxyMemberCardAPIRequest{ + return &AlitripMerchantGalaxyMemberCardAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyMemberCardAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.member.card" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyMemberCardAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 租户信息 +func (r *AlitripMerchantGalaxyMemberCardAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyMemberCardAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// FliggyLevel Setter +// 飞猪等级 +func (r *AlitripMerchantGalaxyMemberCardAPIRequest) SetFliggyLevel(_fliggyLevel string) error { + r._fliggyLevel = _fliggyLevel + r.Set("fliggy_level", _fliggyLevel) + return nil +} + +// FliggyLevel Getter +func (r AlitripMerchantGalaxyMemberCardAPIRequest) GetFliggyLevel() string { + return r._fliggyLevel +} +// CardType Setter +// 卡类型 +func (r *AlitripMerchantGalaxyMemberCardAPIRequest) SetCardType(_cardType string) error { + r._cardType = _cardType + r.Set("card_type", _cardType) + return nil +} + +// CardType Getter +func (r AlitripMerchantGalaxyMemberCardAPIRequest) GetCardType() string { + return r._cardType +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyMemberCardAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyMemberCardAPIResponse.go new file mode 100644 index 0000000000..ba61ff1955 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyMemberCardAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-获取会员卡信息 API返回值 +alitrip.merchant.galaxy.member.card + +星河=根据会员等级获取会员的权益 +*/ +type AlitripMerchantGalaxyMemberCardAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyMemberCardAPIResponseModel +} + +// 星河-获取会员卡信息 成功返回结果 +type AlitripMerchantGalaxyMemberCardAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_member_card_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AlitripMerchantGalaxyMemberCardResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyMemberLogoutAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyMemberLogoutAPIRequest.go new file mode 100644 index 0000000000..ec86d82d88 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyMemberLogoutAPIRequest.go @@ -0,0 +1,66 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-用户登出 API请求 +alitrip.merchant.galaxy.member.logout + +星河=微信小程序用户登出 +*/ +type AlitripMerchantGalaxyMemberLogoutAPIRequest struct { + model.Params + // 租户信息 + _tenantKey string + // 用户登录token + _token string +} + +// 初始化AlitripMerchantGalaxyMemberLogoutAPIRequest对象 +func NewAlitripMerchantGalaxyMemberLogoutRequest() *AlitripMerchantGalaxyMemberLogoutAPIRequest{ + return &AlitripMerchantGalaxyMemberLogoutAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyMemberLogoutAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.member.logout" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyMemberLogoutAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 租户信息 +func (r *AlitripMerchantGalaxyMemberLogoutAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyMemberLogoutAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// Token Setter +// 用户登录token +func (r *AlitripMerchantGalaxyMemberLogoutAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlitripMerchantGalaxyMemberLogoutAPIRequest) GetToken() string { + return r._token +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyMemberLogoutAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyMemberLogoutAPIResponse.go new file mode 100644 index 0000000000..b108743ed8 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyMemberLogoutAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-用户登出 API返回值 +alitrip.merchant.galaxy.member.logout + +星河=微信小程序用户登出 +*/ +type AlitripMerchantGalaxyMemberLogoutAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyMemberLogoutAPIResponseModel +} + +// 星河-用户登出 成功返回结果 +type AlitripMerchantGalaxyMemberLogoutAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_member_logout_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AlitripMerchantGalaxyMemberLogoutResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyMemberProviderRegisterAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyMemberProviderRegisterAPIRequest.go new file mode 100644 index 0000000000..8c0a5310ef --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyMemberProviderRegisterAPIRequest.go @@ -0,0 +1,66 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +对外提供会员注册服务 API请求 +alitrip.merchant.galaxy.member.provider.register + +星河产品=对外提供注册雅高会员服务 +*/ +type AlitripMerchantGalaxyMemberProviderRegisterAPIRequest struct { + model.Params + // 租户身份信息 + _tenantKey string + // 注册入参 + _providerMemberParam *ProviderMemberParam +} + +// 初始化AlitripMerchantGalaxyMemberProviderRegisterAPIRequest对象 +func NewAlitripMerchantGalaxyMemberProviderRegisterRequest() *AlitripMerchantGalaxyMemberProviderRegisterAPIRequest{ + return &AlitripMerchantGalaxyMemberProviderRegisterAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyMemberProviderRegisterAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.member.provider.register" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyMemberProviderRegisterAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 租户身份信息 +func (r *AlitripMerchantGalaxyMemberProviderRegisterAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyMemberProviderRegisterAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// ProviderMemberParam Setter +// 注册入参 +func (r *AlitripMerchantGalaxyMemberProviderRegisterAPIRequest) SetProviderMemberParam(_providerMemberParam *ProviderMemberParam) error { + r._providerMemberParam = _providerMemberParam + r.Set("provider_member_param", _providerMemberParam) + return nil +} + +// ProviderMemberParam Getter +func (r AlitripMerchantGalaxyMemberProviderRegisterAPIRequest) GetProviderMemberParam() *ProviderMemberParam { + return r._providerMemberParam +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyMemberProviderRegisterAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyMemberProviderRegisterAPIResponse.go new file mode 100644 index 0000000000..b549ba5afb --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyMemberProviderRegisterAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +对外提供会员注册服务 API返回值 +alitrip.merchant.galaxy.member.provider.register + +星河产品=对外提供注册雅高会员服务 +*/ +type AlitripMerchantGalaxyMemberProviderRegisterAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyMemberProviderRegisterAPIResponseModel +} + +// 对外提供会员注册服务 成功返回结果 +type AlitripMerchantGalaxyMemberProviderRegisterAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_member_provider_register_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AlitripMerchantGalaxyMemberProviderRegisterResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyMemberQueryAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyMemberQueryAPIRequest.go new file mode 100644 index 0000000000..9bc66b1bf3 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyMemberQueryAPIRequest.go @@ -0,0 +1,66 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-获取登录用户的信息 API请求 +alitrip.merchant.galaxy.member.query + +获取登录用户的信息 +*/ +type AlitripMerchantGalaxyMemberQueryAPIRequest struct { + model.Params + // 租户身份信息 + _tenantKey string + // toekn + _token string +} + +// 初始化AlitripMerchantGalaxyMemberQueryAPIRequest对象 +func NewAlitripMerchantGalaxyMemberQueryRequest() *AlitripMerchantGalaxyMemberQueryAPIRequest{ + return &AlitripMerchantGalaxyMemberQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyMemberQueryAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.member.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyMemberQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 租户身份信息 +func (r *AlitripMerchantGalaxyMemberQueryAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyMemberQueryAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// Token Setter +// toekn +func (r *AlitripMerchantGalaxyMemberQueryAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlitripMerchantGalaxyMemberQueryAPIRequest) GetToken() string { + return r._token +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyMemberQueryAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyMemberQueryAPIResponse.go new file mode 100644 index 0000000000..5fe57198cf --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyMemberQueryAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-获取登录用户的信息 API返回值 +alitrip.merchant.galaxy.member.query + +获取登录用户的信息 +*/ +type AlitripMerchantGalaxyMemberQueryAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyMemberQueryAPIResponseModel +} + +// 星河-获取登录用户的信息 成功返回结果 +type AlitripMerchantGalaxyMemberQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_member_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AlitripMerchantGalaxyMemberQueryResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyMemberRegisterAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyMemberRegisterAPIRequest.go new file mode 100644 index 0000000000..8442a6668f --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyMemberRegisterAPIRequest.go @@ -0,0 +1,66 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-微信小程序会员注册 API请求 +alitrip.merchant.galaxy.member.register + +星河产品=微信小程序注册雅高会员服务 +*/ +type AlitripMerchantGalaxyMemberRegisterAPIRequest struct { + model.Params + // 租户身份信息 + _tenantKey string + // 注册入参 + _memberParam *MemberParam +} + +// 初始化AlitripMerchantGalaxyMemberRegisterAPIRequest对象 +func NewAlitripMerchantGalaxyMemberRegisterRequest() *AlitripMerchantGalaxyMemberRegisterAPIRequest{ + return &AlitripMerchantGalaxyMemberRegisterAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyMemberRegisterAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.member.register" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyMemberRegisterAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 租户身份信息 +func (r *AlitripMerchantGalaxyMemberRegisterAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyMemberRegisterAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// MemberParam Setter +// 注册入参 +func (r *AlitripMerchantGalaxyMemberRegisterAPIRequest) SetMemberParam(_memberParam *MemberParam) error { + r._memberParam = _memberParam + r.Set("member_param", _memberParam) + return nil +} + +// MemberParam Getter +func (r AlitripMerchantGalaxyMemberRegisterAPIRequest) GetMemberParam() *MemberParam { + return r._memberParam +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyMemberRegisterAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyMemberRegisterAPIResponse.go new file mode 100644 index 0000000000..270b74f273 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyMemberRegisterAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-微信小程序会员注册 API返回值 +alitrip.merchant.galaxy.member.register + +星河产品=微信小程序注册雅高会员服务 +*/ +type AlitripMerchantGalaxyMemberRegisterAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyMemberRegisterAPIResponseModel +} + +// 星河-微信小程序会员注册 成功返回结果 +type AlitripMerchantGalaxyMemberRegisterAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_member_register_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AlitripMerchantGalaxyMemberRegisterResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyMemberTokenAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyMemberTokenAPIRequest.go new file mode 100644 index 0000000000..5aa69b7357 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyMemberTokenAPIRequest.go @@ -0,0 +1,66 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-校验token API请求 +alitrip.merchant.galaxy.member.token + +校验或者刷新token +*/ +type AlitripMerchantGalaxyMemberTokenAPIRequest struct { + model.Params + // 租户身份信息 + _tenantKey string + // 访问携带toekn + _token string +} + +// 初始化AlitripMerchantGalaxyMemberTokenAPIRequest对象 +func NewAlitripMerchantGalaxyMemberTokenRequest() *AlitripMerchantGalaxyMemberTokenAPIRequest{ + return &AlitripMerchantGalaxyMemberTokenAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyMemberTokenAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.member.token" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyMemberTokenAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 租户身份信息 +func (r *AlitripMerchantGalaxyMemberTokenAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyMemberTokenAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// Token Setter +// 访问携带toekn +func (r *AlitripMerchantGalaxyMemberTokenAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlitripMerchantGalaxyMemberTokenAPIRequest) GetToken() string { + return r._token +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyMemberTokenAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyMemberTokenAPIResponse.go new file mode 100644 index 0000000000..e2678c2ae2 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyMemberTokenAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-校验token API返回值 +alitrip.merchant.galaxy.member.token + +校验或者刷新token +*/ +type AlitripMerchantGalaxyMemberTokenAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyMemberTokenAPIResponseModel +} + +// 星河-校验token 成功返回结果 +type AlitripMerchantGalaxyMemberTokenAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_member_token_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AlitripMerchantGalaxyMemberTokenResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyOfferQueryAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyOfferQueryAPIRequest.go new file mode 100644 index 0000000000..82f3fc3ce6 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyOfferQueryAPIRequest.go @@ -0,0 +1,80 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-offer查询 API请求 +alitrip.merchant.galaxy.offer.query + +根据offer的ID查询offer信息 +*/ +type AlitripMerchantGalaxyOfferQueryAPIRequest struct { + model.Params + // 租户身份信息 + _tenantKey string + // offer活动ID + _offerIds string + // 渠道来源 + _offerChannel string +} + +// 初始化AlitripMerchantGalaxyOfferQueryAPIRequest对象 +func NewAlitripMerchantGalaxyOfferQueryRequest() *AlitripMerchantGalaxyOfferQueryAPIRequest{ + return &AlitripMerchantGalaxyOfferQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyOfferQueryAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.offer.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyOfferQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 租户身份信息 +func (r *AlitripMerchantGalaxyOfferQueryAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyOfferQueryAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// OfferIds Setter +// offer活动ID +func (r *AlitripMerchantGalaxyOfferQueryAPIRequest) SetOfferIds(_offerIds string) error { + r._offerIds = _offerIds + r.Set("offer_ids", _offerIds) + return nil +} + +// OfferIds Getter +func (r AlitripMerchantGalaxyOfferQueryAPIRequest) GetOfferIds() string { + return r._offerIds +} +// OfferChannel Setter +// 渠道来源 +func (r *AlitripMerchantGalaxyOfferQueryAPIRequest) SetOfferChannel(_offerChannel string) error { + r._offerChannel = _offerChannel + r.Set("offer_channel", _offerChannel) + return nil +} + +// OfferChannel Getter +func (r AlitripMerchantGalaxyOfferQueryAPIRequest) GetOfferChannel() string { + return r._offerChannel +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyOfferQueryAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyOfferQueryAPIResponse.go new file mode 100644 index 0000000000..0a6f71a6bd --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyOfferQueryAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-offer查询 API返回值 +alitrip.merchant.galaxy.offer.query + +根据offer的ID查询offer信息 +*/ +type AlitripMerchantGalaxyOfferQueryAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyOfferQueryAPIResponseModel +} + +// 星河-offer查询 成功返回结果 +type AlitripMerchantGalaxyOfferQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_offer_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AlitripMerchantGalaxyOfferQueryResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyOrderBookAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyOrderBookAPIRequest.go new file mode 100644 index 0000000000..d4f3a664f1 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyOrderBookAPIRequest.go @@ -0,0 +1,108 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-订单预订接口 API请求 +alitrip.merchant.galaxy.order.book + +为星河酒店解决方案的C端用户提供酒店预订能力 +*/ +type AlitripMerchantGalaxyOrderBookAPIRequest struct { + model.Params + // 租户身份信息 + _tenantKey string + // 用户登录token + _token string + // 预订参数 + _orderParam *CreateOrderParam + // 订单编号 + _orderCode string + // 广告追踪信息 + _sourceQuery string +} + +// 初始化AlitripMerchantGalaxyOrderBookAPIRequest对象 +func NewAlitripMerchantGalaxyOrderBookRequest() *AlitripMerchantGalaxyOrderBookAPIRequest{ + return &AlitripMerchantGalaxyOrderBookAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyOrderBookAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.order.book" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyOrderBookAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 租户身份信息 +func (r *AlitripMerchantGalaxyOrderBookAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyOrderBookAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// Token Setter +// 用户登录token +func (r *AlitripMerchantGalaxyOrderBookAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlitripMerchantGalaxyOrderBookAPIRequest) GetToken() string { + return r._token +} +// OrderParam Setter +// 预订参数 +func (r *AlitripMerchantGalaxyOrderBookAPIRequest) SetOrderParam(_orderParam *CreateOrderParam) error { + r._orderParam = _orderParam + r.Set("order_param", _orderParam) + return nil +} + +// OrderParam Getter +func (r AlitripMerchantGalaxyOrderBookAPIRequest) GetOrderParam() *CreateOrderParam { + return r._orderParam +} +// OrderCode Setter +// 订单编号 +func (r *AlitripMerchantGalaxyOrderBookAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r AlitripMerchantGalaxyOrderBookAPIRequest) GetOrderCode() string { + return r._orderCode +} +// SourceQuery Setter +// 广告追踪信息 +func (r *AlitripMerchantGalaxyOrderBookAPIRequest) SetSourceQuery(_sourceQuery string) error { + r._sourceQuery = _sourceQuery + r.Set("source_query", _sourceQuery) + return nil +} + +// SourceQuery Getter +func (r AlitripMerchantGalaxyOrderBookAPIRequest) GetSourceQuery() string { + return r._sourceQuery +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyOrderBookAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyOrderBookAPIResponse.go new file mode 100644 index 0000000000..c9dbbe643e --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyOrderBookAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-订单预订接口 API返回值 +alitrip.merchant.galaxy.order.book + +为星河酒店解决方案的C端用户提供酒店预订能力 +*/ +type AlitripMerchantGalaxyOrderBookAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyOrderBookAPIResponseModel +} + +// 星河-订单预订接口 成功返回结果 +type AlitripMerchantGalaxyOrderBookAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_order_book_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AlitripMerchantGalaxyOrderBookResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyOrderCancelAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyOrderCancelAPIRequest.go new file mode 100644 index 0000000000..ab5377fde2 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyOrderCancelAPIRequest.go @@ -0,0 +1,94 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-取消预订 API请求 +alitrip.merchant.galaxy.order.cancel + +雅高酒店用户使用该接口,取消酒店预订 +*/ +type AlitripMerchantGalaxyOrderCancelAPIRequest struct { + model.Params + // 租户标识 + _tenantKey string + // 用户登录标识 + _token string + // 订单编号 + _orderId string + // 退款原因 + _reason string +} + +// 初始化AlitripMerchantGalaxyOrderCancelAPIRequest对象 +func NewAlitripMerchantGalaxyOrderCancelRequest() *AlitripMerchantGalaxyOrderCancelAPIRequest{ + return &AlitripMerchantGalaxyOrderCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyOrderCancelAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.order.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyOrderCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 租户标识 +func (r *AlitripMerchantGalaxyOrderCancelAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyOrderCancelAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// Token Setter +// 用户登录标识 +func (r *AlitripMerchantGalaxyOrderCancelAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlitripMerchantGalaxyOrderCancelAPIRequest) GetToken() string { + return r._token +} +// OrderId Setter +// 订单编号 +func (r *AlitripMerchantGalaxyOrderCancelAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlitripMerchantGalaxyOrderCancelAPIRequest) GetOrderId() string { + return r._orderId +} +// Reason Setter +// 退款原因 +func (r *AlitripMerchantGalaxyOrderCancelAPIRequest) SetReason(_reason string) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r AlitripMerchantGalaxyOrderCancelAPIRequest) GetReason() string { + return r._reason +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyOrderCancelAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyOrderCancelAPIResponse.go new file mode 100644 index 0000000000..e5132bbf98 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyOrderCancelAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-取消预订 API返回值 +alitrip.merchant.galaxy.order.cancel + +雅高酒店用户使用该接口,取消酒店预订 +*/ +type AlitripMerchantGalaxyOrderCancelAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyOrderCancelAPIResponseModel +} + +// 星河-取消预订 成功返回结果 +type AlitripMerchantGalaxyOrderCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_order_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AlitripMerchantGalaxyOrderCancelResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyOrderListQueryAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyOrderListQueryAPIRequest.go new file mode 100644 index 0000000000..bfbb4acf8b --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyOrderListQueryAPIRequest.go @@ -0,0 +1,136 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-订单列表查询 API请求 +alitrip.merchant.galaxy.order.list.query + +为C端用户提供酒店预订订单列表查询服务,包括订单支付状态、订单日期 +*/ +type AlitripMerchantGalaxyOrderListQueryAPIRequest struct { + model.Params + // 租户标识 + _tenantKey string + // 用户token + _token string + // 订单状态 + _orderStatus string + // 入住时间 + _startTime string + // 入住时间 + _endTime string + // 页数 + _page int64 + // 每页行数 + _row int64 +} + +// 初始化AlitripMerchantGalaxyOrderListQueryAPIRequest对象 +func NewAlitripMerchantGalaxyOrderListQueryRequest() *AlitripMerchantGalaxyOrderListQueryAPIRequest{ + return &AlitripMerchantGalaxyOrderListQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyOrderListQueryAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.order.list.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyOrderListQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 租户标识 +func (r *AlitripMerchantGalaxyOrderListQueryAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyOrderListQueryAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// Token Setter +// 用户token +func (r *AlitripMerchantGalaxyOrderListQueryAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlitripMerchantGalaxyOrderListQueryAPIRequest) GetToken() string { + return r._token +} +// OrderStatus Setter +// 订单状态 +func (r *AlitripMerchantGalaxyOrderListQueryAPIRequest) SetOrderStatus(_orderStatus string) error { + r._orderStatus = _orderStatus + r.Set("order_status", _orderStatus) + return nil +} + +// OrderStatus Getter +func (r AlitripMerchantGalaxyOrderListQueryAPIRequest) GetOrderStatus() string { + return r._orderStatus +} +// StartTime Setter +// 入住时间 +func (r *AlitripMerchantGalaxyOrderListQueryAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r AlitripMerchantGalaxyOrderListQueryAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 入住时间 +func (r *AlitripMerchantGalaxyOrderListQueryAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r AlitripMerchantGalaxyOrderListQueryAPIRequest) GetEndTime() string { + return r._endTime +} +// Page Setter +// 页数 +func (r *AlitripMerchantGalaxyOrderListQueryAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlitripMerchantGalaxyOrderListQueryAPIRequest) GetPage() int64 { + return r._page +} +// Row Setter +// 每页行数 +func (r *AlitripMerchantGalaxyOrderListQueryAPIRequest) SetRow(_row int64) error { + r._row = _row + r.Set("row", _row) + return nil +} + +// Row Getter +func (r AlitripMerchantGalaxyOrderListQueryAPIRequest) GetRow() int64 { + return r._row +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyOrderListQueryAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyOrderListQueryAPIResponse.go new file mode 100644 index 0000000000..0a2effa023 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyOrderListQueryAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-订单列表查询 API返回值 +alitrip.merchant.galaxy.order.list.query + +为C端用户提供酒店预订订单列表查询服务,包括订单支付状态、订单日期 +*/ +type AlitripMerchantGalaxyOrderListQueryAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyOrderListQueryAPIResponseModel +} + +// 星河-订单列表查询 成功返回结果 +type AlitripMerchantGalaxyOrderListQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_order_list_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AlitripMerchantGalaxyOrderListQueryResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyOrderQueryAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyOrderQueryAPIRequest.go new file mode 100644 index 0000000000..861e3442b5 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyOrderQueryAPIRequest.go @@ -0,0 +1,80 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-单个订单详细信息查询 API请求 +alitrip.merchant.galaxy.order.query + +为用户提供酒店订单的详细信息查询能力 +*/ +type AlitripMerchantGalaxyOrderQueryAPIRequest struct { + model.Params + // 租户标识 + _tenantKey string + // 用户登录标识 + _token string + // 订单号 + _orderId string +} + +// 初始化AlitripMerchantGalaxyOrderQueryAPIRequest对象 +func NewAlitripMerchantGalaxyOrderQueryRequest() *AlitripMerchantGalaxyOrderQueryAPIRequest{ + return &AlitripMerchantGalaxyOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyOrderQueryAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 租户标识 +func (r *AlitripMerchantGalaxyOrderQueryAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyOrderQueryAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// Token Setter +// 用户登录标识 +func (r *AlitripMerchantGalaxyOrderQueryAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlitripMerchantGalaxyOrderQueryAPIRequest) GetToken() string { + return r._token +} +// OrderId Setter +// 订单号 +func (r *AlitripMerchantGalaxyOrderQueryAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlitripMerchantGalaxyOrderQueryAPIRequest) GetOrderId() string { + return r._orderId +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyOrderQueryAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyOrderQueryAPIResponse.go new file mode 100644 index 0000000000..71d58b4452 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-单个订单详细信息查询 API返回值 +alitrip.merchant.galaxy.order.query + +为用户提供酒店订单的详细信息查询能力 +*/ +type AlitripMerchantGalaxyOrderQueryAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyOrderQueryAPIResponseModel +} + +// 星河-单个订单详细信息查询 成功返回结果 +type AlitripMerchantGalaxyOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AlitripMerchantGalaxyOrderQueryResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyOrderValidateAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyOrderValidateAPIRequest.go new file mode 100644 index 0000000000..9760cbc063 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyOrderValidateAPIRequest.go @@ -0,0 +1,80 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-订单试单接口 API请求 +alitrip.merchant.galaxy.order.validate + +根据用户选择酒店房型、入住人数、预订时间参数,获取是否可预订及价格变化信息 +*/ +type AlitripMerchantGalaxyOrderValidateAPIRequest struct { + model.Params + // 租户身份信息 + _tenantKey string + // 试单参数 + _validateOrderParam *ValidateOrderParam + // 用户标识 + _token string +} + +// 初始化AlitripMerchantGalaxyOrderValidateAPIRequest对象 +func NewAlitripMerchantGalaxyOrderValidateRequest() *AlitripMerchantGalaxyOrderValidateAPIRequest{ + return &AlitripMerchantGalaxyOrderValidateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyOrderValidateAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.order.validate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyOrderValidateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 租户身份信息 +func (r *AlitripMerchantGalaxyOrderValidateAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyOrderValidateAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// ValidateOrderParam Setter +// 试单参数 +func (r *AlitripMerchantGalaxyOrderValidateAPIRequest) SetValidateOrderParam(_validateOrderParam *ValidateOrderParam) error { + r._validateOrderParam = _validateOrderParam + r.Set("validate_order_param", _validateOrderParam) + return nil +} + +// ValidateOrderParam Getter +func (r AlitripMerchantGalaxyOrderValidateAPIRequest) GetValidateOrderParam() *ValidateOrderParam { + return r._validateOrderParam +} +// Token Setter +// 用户标识 +func (r *AlitripMerchantGalaxyOrderValidateAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlitripMerchantGalaxyOrderValidateAPIRequest) GetToken() string { + return r._token +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyOrderValidateAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyOrderValidateAPIResponse.go new file mode 100644 index 0000000000..4ca5d149b0 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyOrderValidateAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-订单试单接口 API返回值 +alitrip.merchant.galaxy.order.validate + +根据用户选择酒店房型、入住人数、预订时间参数,获取是否可预订及价格变化信息 +*/ +type AlitripMerchantGalaxyOrderValidateAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyOrderValidateAPIResponseModel +} + +// 星河-订单试单接口 成功返回结果 +type AlitripMerchantGalaxyOrderValidateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_order_validate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AlitripMerchantGalaxyOrderValidateResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyPaymentParamQueryAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyPaymentParamQueryAPIRequest.go new file mode 100644 index 0000000000..9c6f47243d --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyPaymentParamQueryAPIRequest.go @@ -0,0 +1,80 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-支付参数查询接口 API请求 +alitrip.merchant.galaxy.payment.param.query + +获取微信小程序的支付参数,供微信小程序调起支付请求。参数都为校验字段,不涉及用户隐私数据 +*/ +type AlitripMerchantGalaxyPaymentParamQueryAPIRequest struct { + model.Params + // 租户身份信息 + _tenantKey string + // 用户校验token + _token string + // 订单编号 + _orderId string +} + +// 初始化AlitripMerchantGalaxyPaymentParamQueryAPIRequest对象 +func NewAlitripMerchantGalaxyPaymentParamQueryRequest() *AlitripMerchantGalaxyPaymentParamQueryAPIRequest{ + return &AlitripMerchantGalaxyPaymentParamQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyPaymentParamQueryAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.payment.param.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyPaymentParamQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 租户身份信息 +func (r *AlitripMerchantGalaxyPaymentParamQueryAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyPaymentParamQueryAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// Token Setter +// 用户校验token +func (r *AlitripMerchantGalaxyPaymentParamQueryAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlitripMerchantGalaxyPaymentParamQueryAPIRequest) GetToken() string { + return r._token +} +// OrderId Setter +// 订单编号 +func (r *AlitripMerchantGalaxyPaymentParamQueryAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlitripMerchantGalaxyPaymentParamQueryAPIRequest) GetOrderId() string { + return r._orderId +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyPaymentParamQueryAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyPaymentParamQueryAPIResponse.go new file mode 100644 index 0000000000..f8dee798a0 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyPaymentParamQueryAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-支付参数查询接口 API返回值 +alitrip.merchant.galaxy.payment.param.query + +获取微信小程序的支付参数,供微信小程序调起支付请求。参数都为校验字段,不涉及用户隐私数据 +*/ +type AlitripMerchantGalaxyPaymentParamQueryAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyPaymentParamQueryAPIResponseModel +} + +// 星河-支付参数查询接口 成功返回结果 +type AlitripMerchantGalaxyPaymentParamQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_payment_param_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AlitripMerchantGalaxyPaymentParamQueryResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyProviderMemberQueryAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyProviderMemberQueryAPIRequest.go new file mode 100644 index 0000000000..151643f70a --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyProviderMemberQueryAPIRequest.go @@ -0,0 +1,66 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提供会员查询接口 API请求 +alitrip.merchant.galaxy.provider.member.query + +星河产品=提供会查询服务 +*/ +type AlitripMerchantGalaxyProviderMemberQueryAPIRequest struct { + model.Params + // 租户id + _tenantKey string + // 查询参数 + _queryMemberParam *QueryMemberParam +} + +// 初始化AlitripMerchantGalaxyProviderMemberQueryAPIRequest对象 +func NewAlitripMerchantGalaxyProviderMemberQueryRequest() *AlitripMerchantGalaxyProviderMemberQueryAPIRequest{ + return &AlitripMerchantGalaxyProviderMemberQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyProviderMemberQueryAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.provider.member.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyProviderMemberQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 租户id +func (r *AlitripMerchantGalaxyProviderMemberQueryAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyProviderMemberQueryAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// QueryMemberParam Setter +// 查询参数 +func (r *AlitripMerchantGalaxyProviderMemberQueryAPIRequest) SetQueryMemberParam(_queryMemberParam *QueryMemberParam) error { + r._queryMemberParam = _queryMemberParam + r.Set("query_member_param", _queryMemberParam) + return nil +} + +// QueryMemberParam Getter +func (r AlitripMerchantGalaxyProviderMemberQueryAPIRequest) GetQueryMemberParam() *QueryMemberParam { + return r._queryMemberParam +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyProviderMemberQueryAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyProviderMemberQueryAPIResponse.go new file mode 100644 index 0000000000..c2a8db1008 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyProviderMemberQueryAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提供会员查询接口 API返回值 +alitrip.merchant.galaxy.provider.member.query + +星河产品=提供会查询服务 +*/ +type AlitripMerchantGalaxyProviderMemberQueryAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyProviderMemberQueryAPIResponseModel +} + +// 提供会员查询接口 成功返回结果 +type AlitripMerchantGalaxyProviderMemberQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_provider_member_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AlitripMerchantGalaxyProviderMemberQueryResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyShareGetAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyShareGetAPIRequest.go new file mode 100644 index 0000000000..6f026ce163 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyShareGetAPIRequest.go @@ -0,0 +1,52 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-获取小程序分享文案和图片 API请求 +alitrip.merchant.galaxy.share.get + +获取 雅高微信小程序分享素材文案和图片。 +*/ +type AlitripMerchantGalaxyShareGetAPIRequest struct { + model.Params + // 租户ID + _tenantKey string +} + +// 初始化AlitripMerchantGalaxyShareGetAPIRequest对象 +func NewAlitripMerchantGalaxyShareGetRequest() *AlitripMerchantGalaxyShareGetAPIRequest{ + return &AlitripMerchantGalaxyShareGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyShareGetAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.share.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyShareGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 租户ID +func (r *AlitripMerchantGalaxyShareGetAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyShareGetAPIRequest) GetTenantKey() string { + return r._tenantKey +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyShareGetAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyShareGetAPIResponse.go new file mode 100644 index 0000000000..c5bd509ae6 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyShareGetAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-获取小程序分享文案和图片 API返回值 +alitrip.merchant.galaxy.share.get + +获取 雅高微信小程序分享素材文案和图片。 +*/ +type AlitripMerchantGalaxyShareGetAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyShareGetAPIResponseModel +} + +// 星河-获取小程序分享文案和图片 成功返回结果 +type AlitripMerchantGalaxyShareGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_share_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AlitripMerchantGalaxyShareGetResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyWechatInfoAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyWechatInfoAPIRequest.go new file mode 100644 index 0000000000..5872b79421 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyWechatInfoAPIRequest.go @@ -0,0 +1,66 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-获取微信用户的信息 API请求 +alitrip.merchant.galaxy.wechat.info + +获取微信用户的openId和unionId +*/ +type AlitripMerchantGalaxyWechatInfoAPIRequest struct { + model.Params + // 租户的id + _tenantKey string + // 微信小程序获取的code + _code string +} + +// 初始化AlitripMerchantGalaxyWechatInfoAPIRequest对象 +func NewAlitripMerchantGalaxyWechatInfoRequest() *AlitripMerchantGalaxyWechatInfoAPIRequest{ + return &AlitripMerchantGalaxyWechatInfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyWechatInfoAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.wechat.info" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyWechatInfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 租户的id +func (r *AlitripMerchantGalaxyWechatInfoAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyWechatInfoAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// Code Setter +// 微信小程序获取的code +func (r *AlitripMerchantGalaxyWechatInfoAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlitripMerchantGalaxyWechatInfoAPIRequest) GetCode() string { + return r._code +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyWechatInfoAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyWechatInfoAPIResponse.go new file mode 100644 index 0000000000..161477aca7 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyWechatInfoAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-获取微信用户的信息 API返回值 +alitrip.merchant.galaxy.wechat.info + +获取微信用户的openId和unionId +*/ +type AlitripMerchantGalaxyWechatInfoAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyWechatInfoAPIResponseModel +} + +// 星河-获取微信用户的信息 成功返回结果 +type AlitripMerchantGalaxyWechatInfoAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_wechat_info_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AlitripMerchantGalaxyWechatInfoResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyWechatLoginAPIRequest.go b/model/alitripmerchant/AlitripMerchantGalaxyWechatLoginAPIRequest.go new file mode 100644 index 0000000000..f670c529d9 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyWechatLoginAPIRequest.go @@ -0,0 +1,66 @@ +package alitripmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-用户使用微信登陆 API请求 +alitrip.merchant.galaxy.wechat.login + +星河产品=用户微信小程序登陆 +*/ +type AlitripMerchantGalaxyWechatLoginAPIRequest struct { + model.Params + // 租户身份信息 + _tenantKey string + // 微信小程序登陆请求参数 + _loginParam *LoginParam +} + +// 初始化AlitripMerchantGalaxyWechatLoginAPIRequest对象 +func NewAlitripMerchantGalaxyWechatLoginRequest() *AlitripMerchantGalaxyWechatLoginAPIRequest{ + return &AlitripMerchantGalaxyWechatLoginAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripMerchantGalaxyWechatLoginAPIRequest) GetApiMethodName() string { + return "alitrip.merchant.galaxy.wechat.login" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripMerchantGalaxyWechatLoginAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantKey Setter +// 租户身份信息 +func (r *AlitripMerchantGalaxyWechatLoginAPIRequest) SetTenantKey(_tenantKey string) error { + r._tenantKey = _tenantKey + r.Set("tenant_key", _tenantKey) + return nil +} + +// TenantKey Getter +func (r AlitripMerchantGalaxyWechatLoginAPIRequest) GetTenantKey() string { + return r._tenantKey +} +// LoginParam Setter +// 微信小程序登陆请求参数 +func (r *AlitripMerchantGalaxyWechatLoginAPIRequest) SetLoginParam(_loginParam *LoginParam) error { + r._loginParam = _loginParam + r.Set("login_param", _loginParam) + return nil +} + +// LoginParam Getter +func (r AlitripMerchantGalaxyWechatLoginAPIRequest) GetLoginParam() *LoginParam { + return r._loginParam +} diff --git a/model/alitripmerchant/AlitripMerchantGalaxyWechatLoginAPIResponse.go b/model/alitripmerchant/AlitripMerchantGalaxyWechatLoginAPIResponse.go new file mode 100644 index 0000000000..53746a5780 --- /dev/null +++ b/model/alitripmerchant/AlitripMerchantGalaxyWechatLoginAPIResponse.go @@ -0,0 +1,27 @@ +package alitripmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星河-用户使用微信登陆 API返回值 +alitrip.merchant.galaxy.wechat.login + +星河产品=用户微信小程序登陆 +*/ +type AlitripMerchantGalaxyWechatLoginAPIResponse struct { + model.CommonResponse + AlitripMerchantGalaxyWechatLoginAPIResponseModel +} + +// 星河-用户使用微信登陆 成功返回结果 +type AlitripMerchantGalaxyWechatLoginAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_merchant_galaxy_wechat_login_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 默认描述 + Result *AlitripMerchantGalaxyWechatLoginResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitrippoi/AlitripPlatformContentRawAddAPIRequest.go b/model/alitrippoi/AlitripPlatformContentRawAddAPIRequest.go new file mode 100644 index 0000000000..7eb55af518 --- /dev/null +++ b/model/alitrippoi/AlitripPlatformContentRawAddAPIRequest.go @@ -0,0 +1,52 @@ +package alitrippoi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +穷游内容写入接口 API请求 +alitrip.platform.content.raw.add + +穷游内容写入飞猪接口 +*/ +type AlitripPlatformContentRawAddAPIRequest struct { + model.Params + // 写入入参 + _fliggyContentRequest *FliggyContentRequest +} + +// 初始化AlitripPlatformContentRawAddAPIRequest对象 +func NewAlitripPlatformContentRawAddRequest() *AlitripPlatformContentRawAddAPIRequest{ + return &AlitripPlatformContentRawAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripPlatformContentRawAddAPIRequest) GetApiMethodName() string { + return "alitrip.platform.content.raw.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripPlatformContentRawAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FliggyContentRequest Setter +// 写入入参 +func (r *AlitripPlatformContentRawAddAPIRequest) SetFliggyContentRequest(_fliggyContentRequest *FliggyContentRequest) error { + r._fliggyContentRequest = _fliggyContentRequest + r.Set("fliggy_content_request", _fliggyContentRequest) + return nil +} + +// FliggyContentRequest Getter +func (r AlitripPlatformContentRawAddAPIRequest) GetFliggyContentRequest() *FliggyContentRequest { + return r._fliggyContentRequest +} diff --git a/model/alitrippoi/AlitripPlatformContentRawAddAPIResponse.go b/model/alitrippoi/AlitripPlatformContentRawAddAPIResponse.go new file mode 100644 index 0000000000..5999125aac --- /dev/null +++ b/model/alitrippoi/AlitripPlatformContentRawAddAPIResponse.go @@ -0,0 +1,27 @@ +package alitrippoi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +穷游内容写入接口 API返回值 +alitrip.platform.content.raw.add + +穷游内容写入飞猪接口 +*/ +type AlitripPlatformContentRawAddAPIResponse struct { + model.CommonResponse + AlitripPlatformContentRawAddAPIResponseModel +} + +// 穷游内容写入接口 成功返回结果 +type AlitripPlatformContentRawAddAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_platform_content_raw_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回包装类 + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitrippoi/AlitripPlatformContentRawAddResponse.go b/model/alitrippoi/AlitripPlatformContentRawAddResponse.go deleted file mode 100644 index e027783ac4..0000000000 --- a/model/alitrippoi/AlitripPlatformContentRawAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alitrippoi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -穷游内容写入接口 API返回值 -alitrip.platform.content.raw.add - -穷游内容写入飞猪接口 -*/ -type AlitripPlatformContentRawAddAPIResponse struct { - model.CommonResponse - AlitripPlatformContentRawAddResponse -} - -// 穷游内容写入接口 成功返回结果 -type AlitripPlatformContentRawAddResponse struct { - XMLName xml.Name `xml:"alitrip_platform_content_raw_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回包装类 - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alitrippoi/AlitripPlatformPoiRawFeedAPIRequest.go b/model/alitrippoi/AlitripPlatformPoiRawFeedAPIRequest.go new file mode 100644 index 0000000000..c4facb3812 --- /dev/null +++ b/model/alitrippoi/AlitripPlatformPoiRawFeedAPIRequest.go @@ -0,0 +1,52 @@ +package alitrippoi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +存储poi原始数据 API请求 +alitrip.platform.poi.raw.feed + +对接外部数据源,外部数据推送poi数据到飞猪 +*/ +type AlitripPlatformPoiRawFeedAPIRequest struct { + model.Params + // poi存储参数 + _param0 *TripPoiRawSaveParam +} + +// 初始化AlitripPlatformPoiRawFeedAPIRequest对象 +func NewAlitripPlatformPoiRawFeedRequest() *AlitripPlatformPoiRawFeedAPIRequest{ + return &AlitripPlatformPoiRawFeedAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripPlatformPoiRawFeedAPIRequest) GetApiMethodName() string { + return "alitrip.platform.poi.raw.feed" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripPlatformPoiRawFeedAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// poi存储参数 +func (r *AlitripPlatformPoiRawFeedAPIRequest) SetParam0(_param0 *TripPoiRawSaveParam) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlitripPlatformPoiRawFeedAPIRequest) GetParam0() *TripPoiRawSaveParam { + return r._param0 +} diff --git a/model/alitrippoi/AlitripPlatformPoiRawFeedAPIResponse.go b/model/alitrippoi/AlitripPlatformPoiRawFeedAPIResponse.go new file mode 100644 index 0000000000..21c283ada4 --- /dev/null +++ b/model/alitrippoi/AlitripPlatformPoiRawFeedAPIResponse.go @@ -0,0 +1,27 @@ +package alitrippoi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +存储poi原始数据 API返回值 +alitrip.platform.poi.raw.feed + +对接外部数据源,外部数据推送poi数据到飞猪 +*/ +type AlitripPlatformPoiRawFeedAPIResponse struct { + model.CommonResponse + AlitripPlatformPoiRawFeedAPIResponseModel +} + +// 存储poi原始数据 成功返回结果 +type AlitripPlatformPoiRawFeedAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_platform_poi_raw_feed_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlitripPlatformPoiRawFeedResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitrippoi/AlitripPlatformPoiRawFeedResponse.go b/model/alitrippoi/AlitripPlatformPoiRawFeedResponse.go deleted file mode 100644 index fb5a9349a1..0000000000 --- a/model/alitrippoi/AlitripPlatformPoiRawFeedResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alitrippoi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -存储poi原始数据 API返回值 -alitrip.platform.poi.raw.feed - -对接外部数据源,外部数据推送poi数据到飞猪 -*/ -type AlitripPlatformPoiRawFeedAPIResponse struct { - model.CommonResponse - AlitripPlatformPoiRawFeedResponse -} - -// 存储poi原始数据 成功返回结果 -type AlitripPlatformPoiRawFeedResponse struct { - XMLName xml.Name `xml:"alitrip_platform_poi_raw_feed_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlitripPlatformPoiRawFeedResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alitrippoi/AlitripPlatformPoiRawPoioutAPIRequest.go b/model/alitrippoi/AlitripPlatformPoiRawPoioutAPIRequest.go new file mode 100644 index 0000000000..f8b53ccc32 --- /dev/null +++ b/model/alitrippoi/AlitripPlatformPoiRawPoioutAPIRequest.go @@ -0,0 +1,52 @@ +package alitrippoi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪poi输出 API请求 +alitrip.platform.poi.raw.poiout + +输出指定城市poi指定信息 +*/ +type AlitripPlatformPoiRawPoioutAPIRequest struct { + model.Params + // 查询参数 + _fliggyPoiOutParam *FliggyPoiOutParam +} + +// 初始化AlitripPlatformPoiRawPoioutAPIRequest对象 +func NewAlitripPlatformPoiRawPoioutRequest() *AlitripPlatformPoiRawPoioutAPIRequest{ + return &AlitripPlatformPoiRawPoioutAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripPlatformPoiRawPoioutAPIRequest) GetApiMethodName() string { + return "alitrip.platform.poi.raw.poiout" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripPlatformPoiRawPoioutAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FliggyPoiOutParam Setter +// 查询参数 +func (r *AlitripPlatformPoiRawPoioutAPIRequest) SetFliggyPoiOutParam(_fliggyPoiOutParam *FliggyPoiOutParam) error { + r._fliggyPoiOutParam = _fliggyPoiOutParam + r.Set("fliggy_poi_out_param", _fliggyPoiOutParam) + return nil +} + +// FliggyPoiOutParam Getter +func (r AlitripPlatformPoiRawPoioutAPIRequest) GetFliggyPoiOutParam() *FliggyPoiOutParam { + return r._fliggyPoiOutParam +} diff --git a/model/alitrippoi/AlitripPlatformPoiRawPoioutAPIResponse.go b/model/alitrippoi/AlitripPlatformPoiRawPoioutAPIResponse.go new file mode 100644 index 0000000000..d1c0496c26 --- /dev/null +++ b/model/alitrippoi/AlitripPlatformPoiRawPoioutAPIResponse.go @@ -0,0 +1,27 @@ +package alitrippoi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪poi输出 API返回值 +alitrip.platform.poi.raw.poiout + +输出指定城市poi指定信息 +*/ +type AlitripPlatformPoiRawPoioutAPIResponse struct { + model.CommonResponse + AlitripPlatformPoiRawPoioutAPIResponseModel +} + +// 飞猪poi输出 成功返回结果 +type AlitripPlatformPoiRawPoioutAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_platform_poi_raw_poiout_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlitripPlatformPoiRawPoioutResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitrippoi/AlitripPlatformPoiRawPoioutResponse.go b/model/alitrippoi/AlitripPlatformPoiRawPoioutResponse.go deleted file mode 100644 index 9de388f68a..0000000000 --- a/model/alitrippoi/AlitripPlatformPoiRawPoioutResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alitrippoi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -飞猪poi输出 API返回值 -alitrip.platform.poi.raw.poiout - -输出指定城市poi指定信息 -*/ -type AlitripPlatformPoiRawPoioutAPIResponse struct { - model.CommonResponse - AlitripPlatformPoiRawPoioutResponse -} - -// 飞猪poi输出 成功返回结果 -type AlitripPlatformPoiRawPoioutResponse struct { - XMLName xml.Name `xml:"alitrip_platform_poi_raw_poiout_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlitripPlatformPoiRawPoioutResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alitrippoi/AlitripPlatformPoiRawPoioutbypoiidsAPIRequest.go b/model/alitrippoi/AlitripPlatformPoiRawPoioutbypoiidsAPIRequest.go new file mode 100644 index 0000000000..e04dd25b20 --- /dev/null +++ b/model/alitrippoi/AlitripPlatformPoiRawPoioutbypoiidsAPIRequest.go @@ -0,0 +1,52 @@ +package alitrippoi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据poiId输出飞猪poi数据 API请求 +alitrip.platform.poi.raw.poioutbypoiids + +根据poiId输出飞猪poi数据 +*/ +type AlitripPlatformPoiRawPoioutbypoiidsAPIRequest struct { + model.Params + // 查询参数 + _fliggyPoiidParam *FliggyPoiIdParam +} + +// 初始化AlitripPlatformPoiRawPoioutbypoiidsAPIRequest对象 +func NewAlitripPlatformPoiRawPoioutbypoiidsRequest() *AlitripPlatformPoiRawPoioutbypoiidsAPIRequest{ + return &AlitripPlatformPoiRawPoioutbypoiidsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripPlatformPoiRawPoioutbypoiidsAPIRequest) GetApiMethodName() string { + return "alitrip.platform.poi.raw.poioutbypoiids" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripPlatformPoiRawPoioutbypoiidsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FliggyPoiidParam Setter +// 查询参数 +func (r *AlitripPlatformPoiRawPoioutbypoiidsAPIRequest) SetFliggyPoiidParam(_fliggyPoiidParam *FliggyPoiIdParam) error { + r._fliggyPoiidParam = _fliggyPoiidParam + r.Set("fliggy_poiid_param", _fliggyPoiidParam) + return nil +} + +// FliggyPoiidParam Getter +func (r AlitripPlatformPoiRawPoioutbypoiidsAPIRequest) GetFliggyPoiidParam() *FliggyPoiIdParam { + return r._fliggyPoiidParam +} diff --git a/model/alitrippoi/AlitripPlatformPoiRawPoioutbypoiidsAPIResponse.go b/model/alitrippoi/AlitripPlatformPoiRawPoioutbypoiidsAPIResponse.go new file mode 100644 index 0000000000..0d9f086588 --- /dev/null +++ b/model/alitrippoi/AlitripPlatformPoiRawPoioutbypoiidsAPIResponse.go @@ -0,0 +1,27 @@ +package alitrippoi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据poiId输出飞猪poi数据 API返回值 +alitrip.platform.poi.raw.poioutbypoiids + +根据poiId输出飞猪poi数据 +*/ +type AlitripPlatformPoiRawPoioutbypoiidsAPIResponse struct { + model.CommonResponse + AlitripPlatformPoiRawPoioutbypoiidsAPIResponseModel +} + +// 根据poiId输出飞猪poi数据 成功返回结果 +type AlitripPlatformPoiRawPoioutbypoiidsAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_platform_poi_raw_poioutbypoiids_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlitripPlatformPoiRawPoioutbypoiidsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitrippoi/AlitripPlatformPoiRawPoioutbypoiidsResponse.go b/model/alitrippoi/AlitripPlatformPoiRawPoioutbypoiidsResponse.go deleted file mode 100644 index 299b780c34..0000000000 --- a/model/alitrippoi/AlitripPlatformPoiRawPoioutbypoiidsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alitrippoi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据poiId输出飞猪poi数据 API返回值 -alitrip.platform.poi.raw.poioutbypoiids - -根据poiId输出飞猪poi数据 -*/ -type AlitripPlatformPoiRawPoioutbypoiidsAPIResponse struct { - model.CommonResponse - AlitripPlatformPoiRawPoioutbypoiidsResponse -} - -// 根据poiId输出飞猪poi数据 成功返回结果 -type AlitripPlatformPoiRawPoioutbypoiidsResponse struct { - XMLName xml.Name `xml:"alitrip_platform_poi_raw_poioutbypoiids_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlitripPlatformPoiRawPoioutbypoiidsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alitrippoi/AlitripPlatformPoiRawSaverawpoiAPIRequest.go b/model/alitrippoi/AlitripPlatformPoiRawSaverawpoiAPIRequest.go new file mode 100644 index 0000000000..da2d95ccda --- /dev/null +++ b/model/alitrippoi/AlitripPlatformPoiRawSaverawpoiAPIRequest.go @@ -0,0 +1,52 @@ +package alitrippoi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +POI开放存储能力 API请求 +alitrip.platform.poi.raw.saverawpoi + +POI开放存储提供离线/在线/纬错更新的能力 +*/ +type AlitripPlatformPoiRawSaverawpoiAPIRequest struct { + model.Params + // poi存储参数 + _tripPoiRawSaveParam *TripPoiRawSaveParamV2 +} + +// 初始化AlitripPlatformPoiRawSaverawpoiAPIRequest对象 +func NewAlitripPlatformPoiRawSaverawpoiRequest() *AlitripPlatformPoiRawSaverawpoiAPIRequest{ + return &AlitripPlatformPoiRawSaverawpoiAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripPlatformPoiRawSaverawpoiAPIRequest) GetApiMethodName() string { + return "alitrip.platform.poi.raw.saverawpoi" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripPlatformPoiRawSaverawpoiAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TripPoiRawSaveParam Setter +// poi存储参数 +func (r *AlitripPlatformPoiRawSaverawpoiAPIRequest) SetTripPoiRawSaveParam(_tripPoiRawSaveParam *TripPoiRawSaveParamV2) error { + r._tripPoiRawSaveParam = _tripPoiRawSaveParam + r.Set("trip_poi_raw_save_param", _tripPoiRawSaveParam) + return nil +} + +// TripPoiRawSaveParam Getter +func (r AlitripPlatformPoiRawSaverawpoiAPIRequest) GetTripPoiRawSaveParam() *TripPoiRawSaveParamV2 { + return r._tripPoiRawSaveParam +} diff --git a/model/alitrippoi/AlitripPlatformPoiRawSaverawpoiAPIResponse.go b/model/alitrippoi/AlitripPlatformPoiRawSaverawpoiAPIResponse.go new file mode 100644 index 0000000000..79fc2dcd39 --- /dev/null +++ b/model/alitrippoi/AlitripPlatformPoiRawSaverawpoiAPIResponse.go @@ -0,0 +1,27 @@ +package alitrippoi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +POI开放存储能力 API返回值 +alitrip.platform.poi.raw.saverawpoi + +POI开放存储提供离线/在线/纬错更新的能力 +*/ +type AlitripPlatformPoiRawSaverawpoiAPIResponse struct { + model.CommonResponse + AlitripPlatformPoiRawSaverawpoiAPIResponseModel +} + +// POI开放存储能力 成功返回结果 +type AlitripPlatformPoiRawSaverawpoiAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_platform_poi_raw_saverawpoi_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlitripPlatformPoiRawSaverawpoiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alitrippoi/AlitripPlatformPoiRawSaverawpoiResponse.go b/model/alitrippoi/AlitripPlatformPoiRawSaverawpoiResponse.go deleted file mode 100644 index af1f06c4f3..0000000000 --- a/model/alitrippoi/AlitripPlatformPoiRawSaverawpoiResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alitrippoi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -POI开放存储能力 API返回值 -alitrip.platform.poi.raw.saverawpoi - -POI开放存储提供离线/在线/纬错更新的能力 -*/ -type AlitripPlatformPoiRawSaverawpoiAPIResponse struct { - model.CommonResponse - AlitripPlatformPoiRawSaverawpoiResponse -} - -// POI开放存储能力 成功返回结果 -type AlitripPlatformPoiRawSaverawpoiResponse struct { - XMLName xml.Name `xml:"alitrip_platform_poi_raw_saverawpoi_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlitripPlatformPoiRawSaverawpoiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alitripreceipt/AlitripReceiptSellerInvoiceQueryAPIRequest.go b/model/alitripreceipt/AlitripReceiptSellerInvoiceQueryAPIRequest.go new file mode 100644 index 0000000000..a0a925efa2 --- /dev/null +++ b/model/alitripreceipt/AlitripReceiptSellerInvoiceQueryAPIRequest.go @@ -0,0 +1,52 @@ +package alitripreceipt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪发票查询 API请求 +alitrip.receipt.seller.invoice.query + +飞猪发票查询 +*/ +type AlitripReceiptSellerInvoiceQueryAPIRequest struct { + model.Params + // 入参对象 + _queryReceiptParam *QueryReceiptParam +} + +// 初始化AlitripReceiptSellerInvoiceQueryAPIRequest对象 +func NewAlitripReceiptSellerInvoiceQueryRequest() *AlitripReceiptSellerInvoiceQueryAPIRequest{ + return &AlitripReceiptSellerInvoiceQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripReceiptSellerInvoiceQueryAPIRequest) GetApiMethodName() string { + return "alitrip.receipt.seller.invoice.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripReceiptSellerInvoiceQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryReceiptParam Setter +// 入参对象 +func (r *AlitripReceiptSellerInvoiceQueryAPIRequest) SetQueryReceiptParam(_queryReceiptParam *QueryReceiptParam) error { + r._queryReceiptParam = _queryReceiptParam + r.Set("query_receipt_param", _queryReceiptParam) + return nil +} + +// QueryReceiptParam Getter +func (r AlitripReceiptSellerInvoiceQueryAPIRequest) GetQueryReceiptParam() *QueryReceiptParam { + return r._queryReceiptParam +} diff --git a/model/alitripreceipt/AlitripReceiptSellerInvoiceQueryAPIResponse.go b/model/alitripreceipt/AlitripReceiptSellerInvoiceQueryAPIResponse.go new file mode 100644 index 0000000000..b7971eb634 --- /dev/null +++ b/model/alitripreceipt/AlitripReceiptSellerInvoiceQueryAPIResponse.go @@ -0,0 +1,33 @@ +package alitripreceipt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪发票查询 API返回值 +alitrip.receipt.seller.invoice.query + +飞猪发票查询 +*/ +type AlitripReceiptSellerInvoiceQueryAPIResponse struct { + model.CommonResponse + AlitripReceiptSellerInvoiceQueryAPIResponseModel +} + +// 飞猪发票查询 成功返回结果 +type AlitripReceiptSellerInvoiceQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_receipt_seller_invoice_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 返回发票数据 + ReceiptDOs string `json:"receipt_d_os,omitempty" xml:"receipt_d_os,omitempty"` + // 错误信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/alitripreceipt/AlitripReceiptSellerInvoiceQueryResponse.go b/model/alitripreceipt/AlitripReceiptSellerInvoiceQueryResponse.go deleted file mode 100644 index 35e83ac361..0000000000 --- a/model/alitripreceipt/AlitripReceiptSellerInvoiceQueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package alitripreceipt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -飞猪发票查询 API返回值 -alitrip.receipt.seller.invoice.query - -飞猪发票查询 -*/ -type AlitripReceiptSellerInvoiceQueryAPIResponse struct { - model.CommonResponse - AlitripReceiptSellerInvoiceQueryResponse -} - -// 飞猪发票查询 成功返回结果 -type AlitripReceiptSellerInvoiceQueryResponse struct { - XMLName xml.Name `xml:"alitrip_receipt_seller_invoice_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 返回发票数据 - ReceiptDOs string `json:"receipt_d_os,omitempty" xml:"receipt_d_os,omitempty"` - // 错误信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/alitripreceipt/AlitripReceiptSellerInvoiceRedAPIRequest.go b/model/alitripreceipt/AlitripReceiptSellerInvoiceRedAPIRequest.go new file mode 100644 index 0000000000..4cc95e6b54 --- /dev/null +++ b/model/alitripreceipt/AlitripReceiptSellerInvoiceRedAPIRequest.go @@ -0,0 +1,52 @@ +package alitripreceipt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪发票冲红 API请求 +alitrip.receipt.seller.invoice.red + +飞猪发票创建 +*/ +type AlitripReceiptSellerInvoiceRedAPIRequest struct { + model.Params + // 入参对象 + _redReceiptParam *RedReceiptParam +} + +// 初始化AlitripReceiptSellerInvoiceRedAPIRequest对象 +func NewAlitripReceiptSellerInvoiceRedRequest() *AlitripReceiptSellerInvoiceRedAPIRequest{ + return &AlitripReceiptSellerInvoiceRedAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripReceiptSellerInvoiceRedAPIRequest) GetApiMethodName() string { + return "alitrip.receipt.seller.invoice.red" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripReceiptSellerInvoiceRedAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RedReceiptParam Setter +// 入参对象 +func (r *AlitripReceiptSellerInvoiceRedAPIRequest) SetRedReceiptParam(_redReceiptParam *RedReceiptParam) error { + r._redReceiptParam = _redReceiptParam + r.Set("red_receipt_param", _redReceiptParam) + return nil +} + +// RedReceiptParam Getter +func (r AlitripReceiptSellerInvoiceRedAPIRequest) GetRedReceiptParam() *RedReceiptParam { + return r._redReceiptParam +} diff --git a/model/alitripreceipt/AlitripReceiptSellerInvoiceRedAPIResponse.go b/model/alitripreceipt/AlitripReceiptSellerInvoiceRedAPIResponse.go new file mode 100644 index 0000000000..59b06fb1d1 --- /dev/null +++ b/model/alitripreceipt/AlitripReceiptSellerInvoiceRedAPIResponse.go @@ -0,0 +1,31 @@ +package alitripreceipt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪发票冲红 API返回值 +alitrip.receipt.seller.invoice.red + +飞猪发票创建 +*/ +type AlitripReceiptSellerInvoiceRedAPIResponse struct { + model.CommonResponse + AlitripReceiptSellerInvoiceRedAPIResponseModel +} + +// 飞猪发票冲红 成功返回结果 +type AlitripReceiptSellerInvoiceRedAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_receipt_seller_invoice_red_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/alitripreceipt/AlitripReceiptSellerInvoiceRedResponse.go b/model/alitripreceipt/AlitripReceiptSellerInvoiceRedResponse.go deleted file mode 100644 index 9c2bce52bd..0000000000 --- a/model/alitripreceipt/AlitripReceiptSellerInvoiceRedResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alitripreceipt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -飞猪发票冲红 API返回值 -alitrip.receipt.seller.invoice.red - -飞猪发票创建 -*/ -type AlitripReceiptSellerInvoiceRedAPIResponse struct { - model.CommonResponse - AlitripReceiptSellerInvoiceRedResponse -} - -// 飞猪发票冲红 成功返回结果 -type AlitripReceiptSellerInvoiceRedResponse struct { - XMLName xml.Name `xml:"alitrip_receipt_seller_invoice_red_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/alitripreceipt/AlitripReceiptSellerInvoiceReturnAPIRequest.go b/model/alitripreceipt/AlitripReceiptSellerInvoiceReturnAPIRequest.go new file mode 100644 index 0000000000..a5b9ba94b4 --- /dev/null +++ b/model/alitripreceipt/AlitripReceiptSellerInvoiceReturnAPIRequest.go @@ -0,0 +1,52 @@ +package alitripreceipt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪发票商家回调接口 API请求 +alitrip.receipt.seller.invoice.return + +飞猪发票回调接口 +*/ +type AlitripReceiptSellerInvoiceReturnAPIRequest struct { + model.Params + // 入参对象 + _receiptDo *ReceiptDo +} + +// 初始化AlitripReceiptSellerInvoiceReturnAPIRequest对象 +func NewAlitripReceiptSellerInvoiceReturnRequest() *AlitripReceiptSellerInvoiceReturnAPIRequest{ + return &AlitripReceiptSellerInvoiceReturnAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripReceiptSellerInvoiceReturnAPIRequest) GetApiMethodName() string { + return "alitrip.receipt.seller.invoice.return" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripReceiptSellerInvoiceReturnAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReceiptDo Setter +// 入参对象 +func (r *AlitripReceiptSellerInvoiceReturnAPIRequest) SetReceiptDo(_receiptDo *ReceiptDo) error { + r._receiptDo = _receiptDo + r.Set("receipt_do", _receiptDo) + return nil +} + +// ReceiptDo Getter +func (r AlitripReceiptSellerInvoiceReturnAPIRequest) GetReceiptDo() *ReceiptDo { + return r._receiptDo +} diff --git a/model/alitripreceipt/AlitripReceiptSellerInvoiceReturnAPIResponse.go b/model/alitripreceipt/AlitripReceiptSellerInvoiceReturnAPIResponse.go new file mode 100644 index 0000000000..186220ba2e --- /dev/null +++ b/model/alitripreceipt/AlitripReceiptSellerInvoiceReturnAPIResponse.go @@ -0,0 +1,31 @@ +package alitripreceipt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪发票商家回调接口 API返回值 +alitrip.receipt.seller.invoice.return + +飞猪发票回调接口 +*/ +type AlitripReceiptSellerInvoiceReturnAPIResponse struct { + model.CommonResponse + AlitripReceiptSellerInvoiceReturnAPIResponseModel +} + +// 飞猪发票商家回调接口 成功返回结果 +type AlitripReceiptSellerInvoiceReturnAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_receipt_seller_invoice_return_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // code + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 返回数据 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/alitripreceipt/AlitripReceiptSellerInvoiceReturnResponse.go b/model/alitripreceipt/AlitripReceiptSellerInvoiceReturnResponse.go deleted file mode 100644 index dfdaf9eaf7..0000000000 --- a/model/alitripreceipt/AlitripReceiptSellerInvoiceReturnResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alitripreceipt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -飞猪发票商家回调接口 API返回值 -alitrip.receipt.seller.invoice.return - -飞猪发票回调接口 -*/ -type AlitripReceiptSellerInvoiceReturnAPIResponse struct { - model.CommonResponse - AlitripReceiptSellerInvoiceReturnResponse -} - -// 飞猪发票商家回调接口 成功返回结果 -type AlitripReceiptSellerInvoiceReturnResponse struct { - XMLName xml.Name `xml:"alitrip_receipt_seller_invoice_return_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // code - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 返回数据 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/aliyun/AccountAliyuncsComCreateAliyunAccount2013_07_01APIRequest.go b/model/aliyun/AccountAliyuncsComCreateAliyunAccount2013_07_01APIRequest.go new file mode 100644 index 0000000000..ceae68bf8d --- /dev/null +++ b/model/aliyun/AccountAliyuncsComCreateAliyunAccount2013_07_01APIRequest.go @@ -0,0 +1,38 @@ +package aliyun + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建阿里云账号 API请求 +account.aliyuncs.com.CreateAliyunAccount.2013-07-01 + +根据给定的阿里云账号,密码以及手机号创建阿里云账号 +*/ +type AccountAliyuncsComCreateAliyunAccount2013_07_01APIRequest struct { + model.Params +} + +// 初始化AccountAliyuncsComCreateAliyunAccount2013_07_01APIRequest对象 +func NewAccountAliyuncsComCreateAliyunAccount2013_07_01Request() *AccountAliyuncsComCreateAliyunAccount2013_07_01APIRequest{ + return &AccountAliyuncsComCreateAliyunAccount2013_07_01APIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AccountAliyuncsComCreateAliyunAccount2013_07_01APIRequest) GetApiMethodName() string { + return "account.aliyuncs.com.CreateAliyunAccount.2013-07-01" +} + +// IRequest interface 方法, 获取API参数 +func (r AccountAliyuncsComCreateAliyunAccount2013_07_01APIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/aliyun/AccountAliyuncsComCreateAliyunAccount2013_07_01APIResponse.go b/model/aliyun/AccountAliyuncsComCreateAliyunAccount2013_07_01APIResponse.go new file mode 100644 index 0000000000..d64395cb21 --- /dev/null +++ b/model/aliyun/AccountAliyuncsComCreateAliyunAccount2013_07_01APIResponse.go @@ -0,0 +1,27 @@ +package aliyun + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建阿里云账号 API返回值 +account.aliyuncs.com.CreateAliyunAccount.2013-07-01 + +根据给定的阿里云账号,密码以及手机号创建阿里云账号 +*/ +type AccountAliyuncsComCreateAliyunAccount2013_07_01APIResponse struct { + model.CommonResponse + AccountAliyuncsComCreateAliyunAccount2013_07_01APIResponseModel +} + +// 创建阿里云账号 成功返回结果 +type AccountAliyuncsComCreateAliyunAccount2013_07_01APIResponseModel struct { + XMLName xml.Name `xml:"account_aliyuncs_com_CreateAliyunAccount_2013-07-01_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + ResultData string `json:"result_data,omitempty" xml:"result_data,omitempty"` +} diff --git a/model/aliyun/AccountAliyuncsComCreateAliyunAccount2013_07_01Response.go b/model/aliyun/AccountAliyuncsComCreateAliyunAccount2013_07_01Response.go deleted file mode 100644 index cbd20add87..0000000000 --- a/model/aliyun/AccountAliyuncsComCreateAliyunAccount2013_07_01Response.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliyun - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建阿里云账号 API返回值 -account.aliyuncs.com.CreateAliyunAccount.2013-07-01 - -根据给定的阿里云账号,密码以及手机号创建阿里云账号 -*/ -type AccountAliyuncsComCreateAliyunAccount2013_07_01APIResponse struct { - model.CommonResponse - AccountAliyuncsComCreateAliyunAccount2013_07_01Response -} - -// 创建阿里云账号 成功返回结果 -type AccountAliyuncsComCreateAliyunAccount2013_07_01Response struct { - XMLName xml.Name `xml:"account_aliyuncs_com_CreateAliyunAccount_2013-07-01_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - ResultData string `json:"result_data,omitempty" xml:"result_data,omitempty"` -} diff --git a/model/aliyun/AccountAliyuncsComCreateAliyunAccountForBid2013_07_01APIRequest.go b/model/aliyun/AccountAliyuncsComCreateAliyunAccountForBid2013_07_01APIRequest.go new file mode 100644 index 0000000000..ced38d1240 --- /dev/null +++ b/model/aliyun/AccountAliyuncsComCreateAliyunAccountForBid2013_07_01APIRequest.go @@ -0,0 +1,38 @@ +package aliyun + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +为bid用户创建账号 API请求 +account.aliyuncs.com.CreateAliyunAccountForBid.2013-07-01 + +给指定的bid创建账号,同时账号打上owner bid的标记 +*/ +type AccountAliyuncsComCreateAliyunAccountForBid2013_07_01APIRequest struct { + model.Params +} + +// 初始化AccountAliyuncsComCreateAliyunAccountForBid2013_07_01APIRequest对象 +func NewAccountAliyuncsComCreateAliyunAccountForBid2013_07_01Request() *AccountAliyuncsComCreateAliyunAccountForBid2013_07_01APIRequest{ + return &AccountAliyuncsComCreateAliyunAccountForBid2013_07_01APIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AccountAliyuncsComCreateAliyunAccountForBid2013_07_01APIRequest) GetApiMethodName() string { + return "account.aliyuncs.com.CreateAliyunAccountForBid.2013-07-01" +} + +// IRequest interface 方法, 获取API参数 +func (r AccountAliyuncsComCreateAliyunAccountForBid2013_07_01APIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/aliyun/AccountAliyuncsComCreateAliyunAccountForBid2013_07_01APIResponse.go b/model/aliyun/AccountAliyuncsComCreateAliyunAccountForBid2013_07_01APIResponse.go new file mode 100644 index 0000000000..fc77a57798 --- /dev/null +++ b/model/aliyun/AccountAliyuncsComCreateAliyunAccountForBid2013_07_01APIResponse.go @@ -0,0 +1,27 @@ +package aliyun + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +为bid用户创建账号 API返回值 +account.aliyuncs.com.CreateAliyunAccountForBid.2013-07-01 + +给指定的bid创建账号,同时账号打上owner bid的标记 +*/ +type AccountAliyuncsComCreateAliyunAccountForBid2013_07_01APIResponse struct { + model.CommonResponse + AccountAliyuncsComCreateAliyunAccountForBid2013_07_01APIResponseModel +} + +// 为bid用户创建账号 成功返回结果 +type AccountAliyuncsComCreateAliyunAccountForBid2013_07_01APIResponseModel struct { + XMLName xml.Name `xml:"account_aliyuncs_com_CreateAliyunAccountForBid_2013-07-01_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + ResultData string `json:"result_data,omitempty" xml:"result_data,omitempty"` +} diff --git a/model/aliyun/AccountAliyuncsComCreateAliyunAccountForBid2013_07_01Response.go b/model/aliyun/AccountAliyuncsComCreateAliyunAccountForBid2013_07_01Response.go deleted file mode 100644 index bc845f8846..0000000000 --- a/model/aliyun/AccountAliyuncsComCreateAliyunAccountForBid2013_07_01Response.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliyun - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -为bid用户创建账号 API返回值 -account.aliyuncs.com.CreateAliyunAccountForBid.2013-07-01 - -给指定的bid创建账号,同时账号打上owner bid的标记 -*/ -type AccountAliyuncsComCreateAliyunAccountForBid2013_07_01APIResponse struct { - model.CommonResponse - AccountAliyuncsComCreateAliyunAccountForBid2013_07_01Response -} - -// 为bid用户创建账号 成功返回结果 -type AccountAliyuncsComCreateAliyunAccountForBid2013_07_01Response struct { - XMLName xml.Name `xml:"account_aliyuncs_com_CreateAliyunAccountForBid_2013-07-01_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - ResultData string `json:"result_data,omitempty" xml:"result_data,omitempty"` -} diff --git a/model/aliyun/AccountAliyuncsComCreateApp2013_07_01APIRequest.go b/model/aliyun/AccountAliyuncsComCreateApp2013_07_01APIRequest.go new file mode 100644 index 0000000000..5aa032e5e2 --- /dev/null +++ b/model/aliyun/AccountAliyuncsComCreateApp2013_07_01APIRequest.go @@ -0,0 +1,38 @@ +package aliyun + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +给指定用户创建appkey API请求 +account.aliyuncs.com.CreateApp.2013-07-01 + +为某个用户创建appkey +*/ +type AccountAliyuncsComCreateApp2013_07_01APIRequest struct { + model.Params +} + +// 初始化AccountAliyuncsComCreateApp2013_07_01APIRequest对象 +func NewAccountAliyuncsComCreateApp2013_07_01Request() *AccountAliyuncsComCreateApp2013_07_01APIRequest{ + return &AccountAliyuncsComCreateApp2013_07_01APIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AccountAliyuncsComCreateApp2013_07_01APIRequest) GetApiMethodName() string { + return "account.aliyuncs.com.CreateApp.2013-07-01" +} + +// IRequest interface 方法, 获取API参数 +func (r AccountAliyuncsComCreateApp2013_07_01APIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/aliyun/AccountAliyuncsComCreateApp2013_07_01APIResponse.go b/model/aliyun/AccountAliyuncsComCreateApp2013_07_01APIResponse.go new file mode 100644 index 0000000000..bd773abeeb --- /dev/null +++ b/model/aliyun/AccountAliyuncsComCreateApp2013_07_01APIResponse.go @@ -0,0 +1,31 @@ +package aliyun + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +给指定用户创建appkey API返回值 +account.aliyuncs.com.CreateApp.2013-07-01 + +为某个用户创建appkey +*/ +type AccountAliyuncsComCreateApp2013_07_01APIResponse struct { + model.CommonResponse + AccountAliyuncsComCreateApp2013_07_01APIResponseModel +} + +// 给指定用户创建appkey 成功返回结果 +type AccountAliyuncsComCreateApp2013_07_01APIResponseModel struct { + XMLName xml.Name `xml:"account_aliyuncs_com_CreateApp_2013-07-01_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回错误码 + Code string `json:"code,omitempty" xml:"code,omitempty"` + // 返回调用信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回结果 + ResultData string `json:"result_data,omitempty" xml:"result_data,omitempty"` +} diff --git a/model/aliyun/AccountAliyuncsComCreateApp2013_07_01Response.go b/model/aliyun/AccountAliyuncsComCreateApp2013_07_01Response.go deleted file mode 100644 index 2dcdbe965b..0000000000 --- a/model/aliyun/AccountAliyuncsComCreateApp2013_07_01Response.go +++ /dev/null @@ -1,31 +0,0 @@ -package aliyun - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -给指定用户创建appkey API返回值 -account.aliyuncs.com.CreateApp.2013-07-01 - -为某个用户创建appkey -*/ -type AccountAliyuncsComCreateApp2013_07_01APIResponse struct { - model.CommonResponse - AccountAliyuncsComCreateApp2013_07_01Response -} - -// 给指定用户创建appkey 成功返回结果 -type AccountAliyuncsComCreateApp2013_07_01Response struct { - XMLName xml.Name `xml:"account_aliyuncs_com_CreateApp_2013-07-01_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回错误码 - Code string `json:"code,omitempty" xml:"code,omitempty"` - // 返回调用信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 返回结果 - ResultData string `json:"result_data,omitempty" xml:"result_data,omitempty"` -} diff --git a/model/aliyun/AccountAliyuncsComCreateAppForBid2013_07_01APIRequest.go b/model/aliyun/AccountAliyuncsComCreateAppForBid2013_07_01APIRequest.go new file mode 100644 index 0000000000..fac4854e59 --- /dev/null +++ b/model/aliyun/AccountAliyuncsComCreateAppForBid2013_07_01APIRequest.go @@ -0,0 +1,38 @@ +package aliyun + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +给当前渠道下的用户创建app API请求 +account.aliyuncs.com.CreateAppForBid.2013-07-01 + +给自己渠道下的用户创建app +*/ +type AccountAliyuncsComCreateAppForBid2013_07_01APIRequest struct { + model.Params +} + +// 初始化AccountAliyuncsComCreateAppForBid2013_07_01APIRequest对象 +func NewAccountAliyuncsComCreateAppForBid2013_07_01Request() *AccountAliyuncsComCreateAppForBid2013_07_01APIRequest{ + return &AccountAliyuncsComCreateAppForBid2013_07_01APIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AccountAliyuncsComCreateAppForBid2013_07_01APIRequest) GetApiMethodName() string { + return "account.aliyuncs.com.CreateAppForBid.2013-07-01" +} + +// IRequest interface 方法, 获取API参数 +func (r AccountAliyuncsComCreateAppForBid2013_07_01APIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/aliyun/AccountAliyuncsComCreateAppForBid2013_07_01APIResponse.go b/model/aliyun/AccountAliyuncsComCreateAppForBid2013_07_01APIResponse.go new file mode 100644 index 0000000000..4b7952139f --- /dev/null +++ b/model/aliyun/AccountAliyuncsComCreateAppForBid2013_07_01APIResponse.go @@ -0,0 +1,27 @@ +package aliyun + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +给当前渠道下的用户创建app API返回值 +account.aliyuncs.com.CreateAppForBid.2013-07-01 + +给自己渠道下的用户创建app +*/ +type AccountAliyuncsComCreateAppForBid2013_07_01APIResponse struct { + model.CommonResponse + AccountAliyuncsComCreateAppForBid2013_07_01APIResponseModel +} + +// 给当前渠道下的用户创建app 成功返回结果 +type AccountAliyuncsComCreateAppForBid2013_07_01APIResponseModel struct { + XMLName xml.Name `xml:"account_aliyuncs_com_CreateAppForBid_2013-07-01_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + ResultData string `json:"result_data,omitempty" xml:"result_data,omitempty"` +} diff --git a/model/aliyun/AccountAliyuncsComCreateAppForBid2013_07_01Response.go b/model/aliyun/AccountAliyuncsComCreateAppForBid2013_07_01Response.go deleted file mode 100644 index f254bfbec4..0000000000 --- a/model/aliyun/AccountAliyuncsComCreateAppForBid2013_07_01Response.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliyun - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -给当前渠道下的用户创建app API返回值 -account.aliyuncs.com.CreateAppForBid.2013-07-01 - -给自己渠道下的用户创建app -*/ -type AccountAliyuncsComCreateAppForBid2013_07_01APIResponse struct { - model.CommonResponse - AccountAliyuncsComCreateAppForBid2013_07_01Response -} - -// 给当前渠道下的用户创建app 成功返回结果 -type AccountAliyuncsComCreateAppForBid2013_07_01Response struct { - XMLName xml.Name `xml:"account_aliyuncs_com_CreateAppForBid_2013-07-01_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - ResultData string `json:"result_data,omitempty" xml:"result_data,omitempty"` -} diff --git a/model/aliyun/AccountAliyuncsComDeleteAppForBid2013_07_01APIRequest.go b/model/aliyun/AccountAliyuncsComDeleteAppForBid2013_07_01APIRequest.go new file mode 100644 index 0000000000..3da97c2970 --- /dev/null +++ b/model/aliyun/AccountAliyuncsComDeleteAppForBid2013_07_01APIRequest.go @@ -0,0 +1,66 @@ +package aliyun + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +运营商删除用户的appkey API请求 +account.aliyuncs.com.DeleteAppForBid.2013-07-01 + +删除用户的appkey,会校验调用的用户是否为当前运营商所创建的。 +*/ +type AccountAliyuncsComDeleteAppForBid2013_07_01APIRequest struct { + model.Params + // 要删除的appkey的所有者用户的pk + _ownerId string + // 要删除的appkey + _ownerAppkey string +} + +// 初始化AccountAliyuncsComDeleteAppForBid2013_07_01APIRequest对象 +func NewAccountAliyuncsComDeleteAppForBid2013_07_01Request() *AccountAliyuncsComDeleteAppForBid2013_07_01APIRequest{ + return &AccountAliyuncsComDeleteAppForBid2013_07_01APIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AccountAliyuncsComDeleteAppForBid2013_07_01APIRequest) GetApiMethodName() string { + return "account.aliyuncs.com.DeleteAppForBid.2013-07-01" +} + +// IRequest interface 方法, 获取API参数 +func (r AccountAliyuncsComDeleteAppForBid2013_07_01APIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OwnerId Setter +// 要删除的appkey的所有者用户的pk +func (r *AccountAliyuncsComDeleteAppForBid2013_07_01APIRequest) SetOwnerId(_ownerId string) error { + r._ownerId = _ownerId + r.Set("OwnerId", _ownerId) + return nil +} + +// OwnerId Getter +func (r AccountAliyuncsComDeleteAppForBid2013_07_01APIRequest) GetOwnerId() string { + return r._ownerId +} +// OwnerAppkey Setter +// 要删除的appkey +func (r *AccountAliyuncsComDeleteAppForBid2013_07_01APIRequest) SetOwnerAppkey(_ownerAppkey string) error { + r._ownerAppkey = _ownerAppkey + r.Set("OwnerAppkey", _ownerAppkey) + return nil +} + +// OwnerAppkey Getter +func (r AccountAliyuncsComDeleteAppForBid2013_07_01APIRequest) GetOwnerAppkey() string { + return r._ownerAppkey +} diff --git a/model/aliyun/AccountAliyuncsComDeleteAppForBid2013_07_01APIResponse.go b/model/aliyun/AccountAliyuncsComDeleteAppForBid2013_07_01APIResponse.go new file mode 100644 index 0000000000..fd535f8e16 --- /dev/null +++ b/model/aliyun/AccountAliyuncsComDeleteAppForBid2013_07_01APIResponse.go @@ -0,0 +1,31 @@ +package aliyun + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +运营商删除用户的appkey API返回值 +account.aliyuncs.com.DeleteAppForBid.2013-07-01 + +删除用户的appkey,会校验调用的用户是否为当前运营商所创建的。 +*/ +type AccountAliyuncsComDeleteAppForBid2013_07_01APIResponse struct { + model.CommonResponse + AccountAliyuncsComDeleteAppForBid2013_07_01APIResponseModel +} + +// 运营商删除用户的appkey 成功返回结果 +type AccountAliyuncsComDeleteAppForBid2013_07_01APIResponseModel struct { + XMLName xml.Name `xml:"account_aliyuncs_com_DeleteAppForBid_2013-07-01_response"` + // 用户删除的appkey + AppKey string `json:"AppKey,omitempty" xml:"AppKey,omitempty"` + // 调用描述信息 + Message string `json:"Message,omitempty" xml:"Message,omitempty"` + // 结果code + Code string `json:"Code,omitempty" xml:"Code,omitempty"` + // 入参的requestId + RequestId string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` +} diff --git a/model/aliyun/AccountAliyuncsComDeleteAppForBid2013_07_01Response.go b/model/aliyun/AccountAliyuncsComDeleteAppForBid2013_07_01Response.go deleted file mode 100644 index cc20367508..0000000000 --- a/model/aliyun/AccountAliyuncsComDeleteAppForBid2013_07_01Response.go +++ /dev/null @@ -1,31 +0,0 @@ -package aliyun - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -运营商删除用户的appkey API返回值 -account.aliyuncs.com.DeleteAppForBid.2013-07-01 - -删除用户的appkey,会校验调用的用户是否为当前运营商所创建的。 -*/ -type AccountAliyuncsComDeleteAppForBid2013_07_01APIResponse struct { - model.CommonResponse - AccountAliyuncsComDeleteAppForBid2013_07_01Response -} - -// 运营商删除用户的appkey 成功返回结果 -type AccountAliyuncsComDeleteAppForBid2013_07_01Response struct { - XMLName xml.Name `xml:"account_aliyuncs_com_DeleteAppForBid_2013-07-01_response"` - // 用户删除的appkey - AppKey string `json:"AppKey,omitempty" xml:"AppKey,omitempty"` - // 调用描述信息 - Message string `json:"Message,omitempty" xml:"Message,omitempty"` - // 结果code - Code string `json:"Code,omitempty" xml:"Code,omitempty"` - // 入参的requestId - RequestId string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` -} diff --git a/model/aliyun/AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01APIRequest.go b/model/aliyun/AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01APIRequest.go new file mode 100644 index 0000000000..98a6f30943 --- /dev/null +++ b/model/aliyun/AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01APIRequest.go @@ -0,0 +1,38 @@ +package aliyun + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据渠道id和状态列出appkey API请求 +account.aliyuncs.com.ListAppkeyByOwnerAndBid.2013-07-01 + +根据渠道id和状态列出appkey +*/ +type AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01APIRequest struct { + model.Params +} + +// 初始化AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01APIRequest对象 +func NewAccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01Request() *AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01APIRequest{ + return &AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01APIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01APIRequest) GetApiMethodName() string { + return "account.aliyuncs.com.ListAppkeyByOwnerAndBid.2013-07-01" +} + +// IRequest interface 方法, 获取API参数 +func (r AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01APIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/aliyun/AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01APIResponse.go b/model/aliyun/AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01APIResponse.go new file mode 100644 index 0000000000..3e500d0360 --- /dev/null +++ b/model/aliyun/AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01APIResponse.go @@ -0,0 +1,27 @@ +package aliyun + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据渠道id和状态列出appkey API返回值 +account.aliyuncs.com.ListAppkeyByOwnerAndBid.2013-07-01 + +根据渠道id和状态列出appkey +*/ +type AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01APIResponse struct { + model.CommonResponse + AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01APIResponseModel +} + +// 根据渠道id和状态列出appkey 成功返回结果 +type AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01APIResponseModel struct { + XMLName xml.Name `xml:"account_aliyuncs_com_ListAppkeyByOwnerAndBid_2013-07-01_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // return result + ResultData string `json:"result_data,omitempty" xml:"result_data,omitempty"` +} diff --git a/model/aliyun/AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01Response.go b/model/aliyun/AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01Response.go deleted file mode 100644 index 15b1aeae60..0000000000 --- a/model/aliyun/AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01Response.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliyun - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据渠道id和状态列出appkey API返回值 -account.aliyuncs.com.ListAppkeyByOwnerAndBid.2013-07-01 - -根据渠道id和状态列出appkey -*/ -type AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01APIResponse struct { - model.CommonResponse - AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01Response -} - -// 根据渠道id和状态列出appkey 成功返回结果 -type AccountAliyuncsComListAppkeyByOwnerAndBid2013_07_01Response struct { - XMLName xml.Name `xml:"account_aliyuncs_com_ListAppkeyByOwnerAndBid_2013-07-01_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // return result - ResultData string `json:"result_data,omitempty" xml:"result_data,omitempty"` -} diff --git a/model/aliyun/OdpsAliyuncsComDescribeOdpsService2014_12_15APIRequest.go b/model/aliyun/OdpsAliyuncsComDescribeOdpsService2014_12_15APIRequest.go new file mode 100644 index 0000000000..6bc7203a86 --- /dev/null +++ b/model/aliyun/OdpsAliyuncsComDescribeOdpsService2014_12_15APIRequest.go @@ -0,0 +1,38 @@ +package aliyun + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询ODPS服务 API请求 +odps.aliyuncs.com.DescribeOdpsService.2014-12-15 + +查询ODPS服务 +*/ +type OdpsAliyuncsComDescribeOdpsService2014_12_15APIRequest struct { + model.Params +} + +// 初始化OdpsAliyuncsComDescribeOdpsService2014_12_15APIRequest对象 +func NewOdpsAliyuncsComDescribeOdpsService2014_12_15Request() *OdpsAliyuncsComDescribeOdpsService2014_12_15APIRequest{ + return &OdpsAliyuncsComDescribeOdpsService2014_12_15APIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r OdpsAliyuncsComDescribeOdpsService2014_12_15APIRequest) GetApiMethodName() string { + return "odps.aliyuncs.com.DescribeOdpsService.2014-12-15" +} + +// IRequest interface 方法, 获取API参数 +func (r OdpsAliyuncsComDescribeOdpsService2014_12_15APIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/aliyun/OdpsAliyuncsComDescribeOdpsService2014_12_15APIResponse.go b/model/aliyun/OdpsAliyuncsComDescribeOdpsService2014_12_15APIResponse.go new file mode 100644 index 0000000000..163926eefd --- /dev/null +++ b/model/aliyun/OdpsAliyuncsComDescribeOdpsService2014_12_15APIResponse.go @@ -0,0 +1,31 @@ +package aliyun + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询ODPS服务 API返回值 +odps.aliyuncs.com.DescribeOdpsService.2014-12-15 + +查询ODPS服务 +*/ +type OdpsAliyuncsComDescribeOdpsService2014_12_15APIResponse struct { + model.CommonResponse + OdpsAliyuncsComDescribeOdpsService2014_12_15APIResponseModel +} + +// 查询ODPS服务 成功返回结果 +type OdpsAliyuncsComDescribeOdpsService2014_12_15APIResponseModel struct { + XMLName xml.Name `xml:"odps_aliyuncs_com_DescribeOdpsService_2014-12-15_response"` + // 请求ID + RequestId string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` + // 服务Id + ServiceId string `json:"ServiceId,omitempty" xml:"ServiceId,omitempty"` + // 开通服务时间,ISO 8601时间格式 + OpeningTime string `json:"OpeningTime,omitempty" xml:"OpeningTime,omitempty"` + // 业务锁定状态,例如:欠费,安全等。 + OperationLocks string `json:"OperationLocks,omitempty" xml:"OperationLocks,omitempty"` +} diff --git a/model/aliyun/OdpsAliyuncsComDescribeOdpsService2014_12_15Response.go b/model/aliyun/OdpsAliyuncsComDescribeOdpsService2014_12_15Response.go deleted file mode 100644 index 531f6044d5..0000000000 --- a/model/aliyun/OdpsAliyuncsComDescribeOdpsService2014_12_15Response.go +++ /dev/null @@ -1,31 +0,0 @@ -package aliyun - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询ODPS服务 API返回值 -odps.aliyuncs.com.DescribeOdpsService.2014-12-15 - -查询ODPS服务 -*/ -type OdpsAliyuncsComDescribeOdpsService2014_12_15APIResponse struct { - model.CommonResponse - OdpsAliyuncsComDescribeOdpsService2014_12_15Response -} - -// 查询ODPS服务 成功返回结果 -type OdpsAliyuncsComDescribeOdpsService2014_12_15Response struct { - XMLName xml.Name `xml:"odps_aliyuncs_com_DescribeOdpsService_2014-12-15_response"` - // 请求ID - RequestId string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` - // 服务Id - ServiceId string `json:"ServiceId,omitempty" xml:"ServiceId,omitempty"` - // 开通服务时间,ISO 8601时间格式 - OpeningTime string `json:"OpeningTime,omitempty" xml:"OpeningTime,omitempty"` - // 业务锁定状态,例如:欠费,安全等。 - OperationLocks string `json:"OperationLocks,omitempty" xml:"OperationLocks,omitempty"` -} diff --git a/model/aliyun/PushAliyuncsComPush20150518APIRequest.go b/model/aliyun/PushAliyuncsComPush20150518APIRequest.go new file mode 100644 index 0000000000..b416382db2 --- /dev/null +++ b/model/aliyun/PushAliyuncsComPush20150518APIRequest.go @@ -0,0 +1,360 @@ +package aliyun + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +云推送指令API API请求 +push.aliyuncs.com.push.20150518 + +阿里云推送新增API,允许一条推送指令同时发布到多个终端上。 +*/ +type PushAliyuncsComPush20150518APIRequest struct { + model.Params + // 用户账号列表,以换行区分,仅sendType为3时有效 + _account string + // Android对应的activity,仅仅当androidOpenType=2有效 + _androidActivity string + // 自定义的kv结构,开发者扩展用 针对android + _androidExtParameters string + // android通知声音 + _androidMusic string + // 点击通知后动作,1:打开应用 2: 打开应用Activity 3:打开 url + _androidOpenType string + // Android收到推送后打开对应的url,仅仅当androidOpenType=3有效 + _androidOpenUrl string + // 防打扰时长,取值范围为1~23 + _antiHarassDuration int64 + // 防打扰开始时间点,取值范围为0~23 + _antiHarassStartTime int64 + // 应用标识 + _appId int64 + // 批次编号,用于活动效果统计 + _batchNumber string + // 推送内容 + _body string + // 推送接收设备,多个以逗号分隔 + _deviceId string + // 设备类型,取值范围为:0~3云推送支持多种设备,各 种设备类型编号如下: 0:IOS设备; 1:Andriod设备 3:全部. 默认为3. + _deviceType int64 + // iOS应用图标右上角角标 + _iOSBadge string + // 自定义的kv结构,开发者扩展用 针对iOS设备 + _iOSExtParameters string + // iOS通知声音 + _iOSMusic string + // 推送时间,若空表示立即推送,推送时间不能早于当前时间 + _pushTime string + // 当APP不在线时候,是否通过通知提醒 + _remind bool + // 推送类型,取值范围:1~4; 1:所有人,无需指定tag、 deviceType等2:一群人,必须指定tag3:指定用户,根据 用户账号列表文件发送消息4:指定设备,根据设备编码列 表文件发送消息默认值为1 + _sendType int64 + // 离线消息是否保存,若保存, 在推送时候,用户即使不在线,下一次上线则会收到 + _storeOffline bool + // 通知的摘要 + _summery string + // 离线消息保存时长,取值范围为1~72,若不填,则表示不保存离线消息 + _timeout int64 + // 推送的标题内容. + _title string +} + +// 初始化PushAliyuncsComPush20150518APIRequest对象 +func NewPushAliyuncsComPush20150518Request() *PushAliyuncsComPush20150518APIRequest{ + return &PushAliyuncsComPush20150518APIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r PushAliyuncsComPush20150518APIRequest) GetApiMethodName() string { + return "push.aliyuncs.com.push.20150518" +} + +// IRequest interface 方法, 获取API参数 +func (r PushAliyuncsComPush20150518APIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Account Setter +// 用户账号列表,以换行区分,仅sendType为3时有效 +func (r *PushAliyuncsComPush20150518APIRequest) SetAccount(_account string) error { + r._account = _account + r.Set("Account", _account) + return nil +} + +// Account Getter +func (r PushAliyuncsComPush20150518APIRequest) GetAccount() string { + return r._account +} +// AndroidActivity Setter +// Android对应的activity,仅仅当androidOpenType=2有效 +func (r *PushAliyuncsComPush20150518APIRequest) SetAndroidActivity(_androidActivity string) error { + r._androidActivity = _androidActivity + r.Set("AndroidActivity", _androidActivity) + return nil +} + +// AndroidActivity Getter +func (r PushAliyuncsComPush20150518APIRequest) GetAndroidActivity() string { + return r._androidActivity +} +// AndroidExtParameters Setter +// 自定义的kv结构,开发者扩展用 针对android +func (r *PushAliyuncsComPush20150518APIRequest) SetAndroidExtParameters(_androidExtParameters string) error { + r._androidExtParameters = _androidExtParameters + r.Set("AndroidExtParameters", _androidExtParameters) + return nil +} + +// AndroidExtParameters Getter +func (r PushAliyuncsComPush20150518APIRequest) GetAndroidExtParameters() string { + return r._androidExtParameters +} +// AndroidMusic Setter +// android通知声音 +func (r *PushAliyuncsComPush20150518APIRequest) SetAndroidMusic(_androidMusic string) error { + r._androidMusic = _androidMusic + r.Set("AndroidMusic", _androidMusic) + return nil +} + +// AndroidMusic Getter +func (r PushAliyuncsComPush20150518APIRequest) GetAndroidMusic() string { + return r._androidMusic +} +// AndroidOpenType Setter +// 点击通知后动作,1:打开应用 2: 打开应用Activity 3:打开 url +func (r *PushAliyuncsComPush20150518APIRequest) SetAndroidOpenType(_androidOpenType string) error { + r._androidOpenType = _androidOpenType + r.Set("AndroidOpenType", _androidOpenType) + return nil +} + +// AndroidOpenType Getter +func (r PushAliyuncsComPush20150518APIRequest) GetAndroidOpenType() string { + return r._androidOpenType +} +// AndroidOpenUrl Setter +// Android收到推送后打开对应的url,仅仅当androidOpenType=3有效 +func (r *PushAliyuncsComPush20150518APIRequest) SetAndroidOpenUrl(_androidOpenUrl string) error { + r._androidOpenUrl = _androidOpenUrl + r.Set("AndroidOpenUrl", _androidOpenUrl) + return nil +} + +// AndroidOpenUrl Getter +func (r PushAliyuncsComPush20150518APIRequest) GetAndroidOpenUrl() string { + return r._androidOpenUrl +} +// AntiHarassDuration Setter +// 防打扰时长,取值范围为1~23 +func (r *PushAliyuncsComPush20150518APIRequest) SetAntiHarassDuration(_antiHarassDuration int64) error { + r._antiHarassDuration = _antiHarassDuration + r.Set("AntiHarassDuration", _antiHarassDuration) + return nil +} + +// AntiHarassDuration Getter +func (r PushAliyuncsComPush20150518APIRequest) GetAntiHarassDuration() int64 { + return r._antiHarassDuration +} +// AntiHarassStartTime Setter +// 防打扰开始时间点,取值范围为0~23 +func (r *PushAliyuncsComPush20150518APIRequest) SetAntiHarassStartTime(_antiHarassStartTime int64) error { + r._antiHarassStartTime = _antiHarassStartTime + r.Set("AntiHarassStartTime", _antiHarassStartTime) + return nil +} + +// AntiHarassStartTime Getter +func (r PushAliyuncsComPush20150518APIRequest) GetAntiHarassStartTime() int64 { + return r._antiHarassStartTime +} +// AppId Setter +// 应用标识 +func (r *PushAliyuncsComPush20150518APIRequest) SetAppId(_appId int64) error { + r._appId = _appId + r.Set("AppId", _appId) + return nil +} + +// AppId Getter +func (r PushAliyuncsComPush20150518APIRequest) GetAppId() int64 { + return r._appId +} +// BatchNumber Setter +// 批次编号,用于活动效果统计 +func (r *PushAliyuncsComPush20150518APIRequest) SetBatchNumber(_batchNumber string) error { + r._batchNumber = _batchNumber + r.Set("BatchNumber", _batchNumber) + return nil +} + +// BatchNumber Getter +func (r PushAliyuncsComPush20150518APIRequest) GetBatchNumber() string { + return r._batchNumber +} +// Body Setter +// 推送内容 +func (r *PushAliyuncsComPush20150518APIRequest) SetBody(_body string) error { + r._body = _body + r.Set("Body", _body) + return nil +} + +// Body Getter +func (r PushAliyuncsComPush20150518APIRequest) GetBody() string { + return r._body +} +// DeviceId Setter +// 推送接收设备,多个以逗号分隔 +func (r *PushAliyuncsComPush20150518APIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("DeviceId", _deviceId) + return nil +} + +// DeviceId Getter +func (r PushAliyuncsComPush20150518APIRequest) GetDeviceId() string { + return r._deviceId +} +// DeviceType Setter +// 设备类型,取值范围为:0~3云推送支持多种设备,各 种设备类型编号如下: 0:IOS设备; 1:Andriod设备 3:全部. 默认为3. +func (r *PushAliyuncsComPush20150518APIRequest) SetDeviceType(_deviceType int64) error { + r._deviceType = _deviceType + r.Set("DeviceType", _deviceType) + return nil +} + +// DeviceType Getter +func (r PushAliyuncsComPush20150518APIRequest) GetDeviceType() int64 { + return r._deviceType +} +// IOSBadge Setter +// iOS应用图标右上角角标 +func (r *PushAliyuncsComPush20150518APIRequest) SetIOSBadge(_iOSBadge string) error { + r._iOSBadge = _iOSBadge + r.Set("IOSBadge", _iOSBadge) + return nil +} + +// IOSBadge Getter +func (r PushAliyuncsComPush20150518APIRequest) GetIOSBadge() string { + return r._iOSBadge +} +// IOSExtParameters Setter +// 自定义的kv结构,开发者扩展用 针对iOS设备 +func (r *PushAliyuncsComPush20150518APIRequest) SetIOSExtParameters(_iOSExtParameters string) error { + r._iOSExtParameters = _iOSExtParameters + r.Set("IOSExtParameters", _iOSExtParameters) + return nil +} + +// IOSExtParameters Getter +func (r PushAliyuncsComPush20150518APIRequest) GetIOSExtParameters() string { + return r._iOSExtParameters +} +// IOSMusic Setter +// iOS通知声音 +func (r *PushAliyuncsComPush20150518APIRequest) SetIOSMusic(_iOSMusic string) error { + r._iOSMusic = _iOSMusic + r.Set("IOSMusic", _iOSMusic) + return nil +} + +// IOSMusic Getter +func (r PushAliyuncsComPush20150518APIRequest) GetIOSMusic() string { + return r._iOSMusic +} +// PushTime Setter +// 推送时间,若空表示立即推送,推送时间不能早于当前时间 +func (r *PushAliyuncsComPush20150518APIRequest) SetPushTime(_pushTime string) error { + r._pushTime = _pushTime + r.Set("PushTime", _pushTime) + return nil +} + +// PushTime Getter +func (r PushAliyuncsComPush20150518APIRequest) GetPushTime() string { + return r._pushTime +} +// Remind Setter +// 当APP不在线时候,是否通过通知提醒 +func (r *PushAliyuncsComPush20150518APIRequest) SetRemind(_remind bool) error { + r._remind = _remind + r.Set("Remind", _remind) + return nil +} + +// Remind Getter +func (r PushAliyuncsComPush20150518APIRequest) GetRemind() bool { + return r._remind +} +// SendType Setter +// 推送类型,取值范围:1~4; 1:所有人,无需指定tag、 deviceType等2:一群人,必须指定tag3:指定用户,根据 用户账号列表文件发送消息4:指定设备,根据设备编码列 表文件发送消息默认值为1 +func (r *PushAliyuncsComPush20150518APIRequest) SetSendType(_sendType int64) error { + r._sendType = _sendType + r.Set("SendType", _sendType) + return nil +} + +// SendType Getter +func (r PushAliyuncsComPush20150518APIRequest) GetSendType() int64 { + return r._sendType +} +// StoreOffline Setter +// 离线消息是否保存,若保存, 在推送时候,用户即使不在线,下一次上线则会收到 +func (r *PushAliyuncsComPush20150518APIRequest) SetStoreOffline(_storeOffline bool) error { + r._storeOffline = _storeOffline + r.Set("StoreOffline", _storeOffline) + return nil +} + +// StoreOffline Getter +func (r PushAliyuncsComPush20150518APIRequest) GetStoreOffline() bool { + return r._storeOffline +} +// Summery Setter +// 通知的摘要 +func (r *PushAliyuncsComPush20150518APIRequest) SetSummery(_summery string) error { + r._summery = _summery + r.Set("Summery", _summery) + return nil +} + +// Summery Getter +func (r PushAliyuncsComPush20150518APIRequest) GetSummery() string { + return r._summery +} +// Timeout Setter +// 离线消息保存时长,取值范围为1~72,若不填,则表示不保存离线消息 +func (r *PushAliyuncsComPush20150518APIRequest) SetTimeout(_timeout int64) error { + r._timeout = _timeout + r.Set("Timeout", _timeout) + return nil +} + +// Timeout Getter +func (r PushAliyuncsComPush20150518APIRequest) GetTimeout() int64 { + return r._timeout +} +// Title Setter +// 推送的标题内容. +func (r *PushAliyuncsComPush20150518APIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("Title", _title) + return nil +} + +// Title Getter +func (r PushAliyuncsComPush20150518APIRequest) GetTitle() string { + return r._title +} diff --git a/model/aliyun/PushAliyuncsComPush20150518APIResponse.go b/model/aliyun/PushAliyuncsComPush20150518APIResponse.go new file mode 100644 index 0000000000..67561f61e1 --- /dev/null +++ b/model/aliyun/PushAliyuncsComPush20150518APIResponse.go @@ -0,0 +1,29 @@ +package aliyun + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +云推送指令API API返回值 +push.aliyuncs.com.push.20150518 + +阿里云推送新增API,允许一条推送指令同时发布到多个终端上。 +*/ +type PushAliyuncsComPush20150518APIResponse struct { + model.CommonResponse + PushAliyuncsComPush20150518APIResponseModel +} + +// 云推送指令API 成功返回结果 +type PushAliyuncsComPush20150518APIResponseModel struct { + XMLName xml.Name `xml:"push_aliyuncs_com_push_20150518_response"` + // 消息ID,用于查询 + ResponseParams string `json:"responseParams,omitempty" xml:"responseParams,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 该字段的值由服务端生成,返回给用户方便问题追查与定位。 + RequestId int64 `json:"requestId,omitempty" xml:"requestId,omitempty"` +} diff --git a/model/aliyun/PushAliyuncsComPush20150518Response.go b/model/aliyun/PushAliyuncsComPush20150518Response.go deleted file mode 100644 index d1804dcfdb..0000000000 --- a/model/aliyun/PushAliyuncsComPush20150518Response.go +++ /dev/null @@ -1,29 +0,0 @@ -package aliyun - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -云推送指令API API返回值 -push.aliyuncs.com.push.20150518 - -阿里云推送新增API,允许一条推送指令同时发布到多个终端上。 -*/ -type PushAliyuncsComPush20150518APIResponse struct { - model.CommonResponse - PushAliyuncsComPush20150518Response -} - -// 云推送指令API 成功返回结果 -type PushAliyuncsComPush20150518Response struct { - XMLName xml.Name `xml:"push_aliyuncs_com_push_20150518_response"` - // 消息ID,用于查询 - ResponseParams string `json:"responseParams,omitempty" xml:"responseParams,omitempty"` - // 是否成功 - Success bool `json:"success,omitempty" xml:"success,omitempty"` - // 该字段的值由服务端生成,返回给用户方便问题追查与定位。 - RequestId int64 `json:"requestId,omitempty" xml:"requestId,omitempty"` -} diff --git a/model/aliyun/PushAliyuncsComPushMsg2015_03_18APIRequest.go b/model/aliyun/PushAliyuncsComPushMsg2015_03_18APIRequest.go new file mode 100644 index 0000000000..6083219129 --- /dev/null +++ b/model/aliyun/PushAliyuncsComPushMsg2015_03_18APIRequest.go @@ -0,0 +1,220 @@ +package aliyun + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +消息推送 API请求 +push.aliyuncs.com.pushMsg.2015-03-18 + +消息推送 ,支持指定用户/账号/广播等模式 +*/ +type PushAliyuncsComPushMsg2015_03_18APIRequest struct { + model.Params + // 用户账号列表,以换行区分,仅sendType为3时有效 + _account string + // 防打扰时长,取值范围为1~23 + _antiHarassDuration int64 + // 防打扰开始时间点,取值范围为0~23 + _antiHarassStartTime int64 + // 应用标识 + _appId int64 + // 批次编号,用于统计活动推送效果 + _batchNumber string + // 消息体,UTF-8编码 + _body string + // 设备编号列表,以换行区分,仅sendType为4时有效 + _deviceId string + // 设备类型,取值范围为:0~3云推送支持多种设备, 各种设备类型编号如下:IOS设备:deviceType&1=1; Andriod设备:deviceType&2=2;如果存在此字段,则 向指定的设备类型推送消息。默认为全部(3); + _deviceType int64 + // 推送时间,若空表示立即推送,推送时间不能早于当前 时间 + _pushTime string + // 推送类型,取值范围:1~4; 1:所有人,无需指定tag、 deviceType等2:一群人,必须指定tag3:指定用户,根 据用户账号列表文件发送消息4:指定设备,根据设备编 码列表文件发送消息默认值为1 + _sendType int64 + // 标签名称,仅支持1个标签,仅sendType为2时有效 + _tag string + // 离线消息保存时长,取值范围为1~72,若不填,则表 示不保存离线消息 + _timeout int64 + // 标题 + _title string +} + +// 初始化PushAliyuncsComPushMsg2015_03_18APIRequest对象 +func NewPushAliyuncsComPushMsg2015_03_18Request() *PushAliyuncsComPushMsg2015_03_18APIRequest{ + return &PushAliyuncsComPushMsg2015_03_18APIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r PushAliyuncsComPushMsg2015_03_18APIRequest) GetApiMethodName() string { + return "push.aliyuncs.com.pushMsg.2015-03-18" +} + +// IRequest interface 方法, 获取API参数 +func (r PushAliyuncsComPushMsg2015_03_18APIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Account Setter +// 用户账号列表,以换行区分,仅sendType为3时有效 +func (r *PushAliyuncsComPushMsg2015_03_18APIRequest) SetAccount(_account string) error { + r._account = _account + r.Set("Account", _account) + return nil +} + +// Account Getter +func (r PushAliyuncsComPushMsg2015_03_18APIRequest) GetAccount() string { + return r._account +} +// AntiHarassDuration Setter +// 防打扰时长,取值范围为1~23 +func (r *PushAliyuncsComPushMsg2015_03_18APIRequest) SetAntiHarassDuration(_antiHarassDuration int64) error { + r._antiHarassDuration = _antiHarassDuration + r.Set("AntiHarassDuration", _antiHarassDuration) + return nil +} + +// AntiHarassDuration Getter +func (r PushAliyuncsComPushMsg2015_03_18APIRequest) GetAntiHarassDuration() int64 { + return r._antiHarassDuration +} +// AntiHarassStartTime Setter +// 防打扰开始时间点,取值范围为0~23 +func (r *PushAliyuncsComPushMsg2015_03_18APIRequest) SetAntiHarassStartTime(_antiHarassStartTime int64) error { + r._antiHarassStartTime = _antiHarassStartTime + r.Set("AntiHarassStartTime", _antiHarassStartTime) + return nil +} + +// AntiHarassStartTime Getter +func (r PushAliyuncsComPushMsg2015_03_18APIRequest) GetAntiHarassStartTime() int64 { + return r._antiHarassStartTime +} +// AppId Setter +// 应用标识 +func (r *PushAliyuncsComPushMsg2015_03_18APIRequest) SetAppId(_appId int64) error { + r._appId = _appId + r.Set("AppId", _appId) + return nil +} + +// AppId Getter +func (r PushAliyuncsComPushMsg2015_03_18APIRequest) GetAppId() int64 { + return r._appId +} +// BatchNumber Setter +// 批次编号,用于统计活动推送效果 +func (r *PushAliyuncsComPushMsg2015_03_18APIRequest) SetBatchNumber(_batchNumber string) error { + r._batchNumber = _batchNumber + r.Set("BatchNumber", _batchNumber) + return nil +} + +// BatchNumber Getter +func (r PushAliyuncsComPushMsg2015_03_18APIRequest) GetBatchNumber() string { + return r._batchNumber +} +// Body Setter +// 消息体,UTF-8编码 +func (r *PushAliyuncsComPushMsg2015_03_18APIRequest) SetBody(_body string) error { + r._body = _body + r.Set("Body", _body) + return nil +} + +// Body Getter +func (r PushAliyuncsComPushMsg2015_03_18APIRequest) GetBody() string { + return r._body +} +// DeviceId Setter +// 设备编号列表,以换行区分,仅sendType为4时有效 +func (r *PushAliyuncsComPushMsg2015_03_18APIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("DeviceId", _deviceId) + return nil +} + +// DeviceId Getter +func (r PushAliyuncsComPushMsg2015_03_18APIRequest) GetDeviceId() string { + return r._deviceId +} +// DeviceType Setter +// 设备类型,取值范围为:0~3云推送支持多种设备, 各种设备类型编号如下:IOS设备:deviceType&1=1; Andriod设备:deviceType&2=2;如果存在此字段,则 向指定的设备类型推送消息。默认为全部(3); +func (r *PushAliyuncsComPushMsg2015_03_18APIRequest) SetDeviceType(_deviceType int64) error { + r._deviceType = _deviceType + r.Set("DeviceType", _deviceType) + return nil +} + +// DeviceType Getter +func (r PushAliyuncsComPushMsg2015_03_18APIRequest) GetDeviceType() int64 { + return r._deviceType +} +// PushTime Setter +// 推送时间,若空表示立即推送,推送时间不能早于当前 时间 +func (r *PushAliyuncsComPushMsg2015_03_18APIRequest) SetPushTime(_pushTime string) error { + r._pushTime = _pushTime + r.Set("PushTime", _pushTime) + return nil +} + +// PushTime Getter +func (r PushAliyuncsComPushMsg2015_03_18APIRequest) GetPushTime() string { + return r._pushTime +} +// SendType Setter +// 推送类型,取值范围:1~4; 1:所有人,无需指定tag、 deviceType等2:一群人,必须指定tag3:指定用户,根 据用户账号列表文件发送消息4:指定设备,根据设备编 码列表文件发送消息默认值为1 +func (r *PushAliyuncsComPushMsg2015_03_18APIRequest) SetSendType(_sendType int64) error { + r._sendType = _sendType + r.Set("SendType", _sendType) + return nil +} + +// SendType Getter +func (r PushAliyuncsComPushMsg2015_03_18APIRequest) GetSendType() int64 { + return r._sendType +} +// Tag Setter +// 标签名称,仅支持1个标签,仅sendType为2时有效 +func (r *PushAliyuncsComPushMsg2015_03_18APIRequest) SetTag(_tag string) error { + r._tag = _tag + r.Set("Tag", _tag) + return nil +} + +// Tag Getter +func (r PushAliyuncsComPushMsg2015_03_18APIRequest) GetTag() string { + return r._tag +} +// Timeout Setter +// 离线消息保存时长,取值范围为1~72,若不填,则表 示不保存离线消息 +func (r *PushAliyuncsComPushMsg2015_03_18APIRequest) SetTimeout(_timeout int64) error { + r._timeout = _timeout + r.Set("Timeout", _timeout) + return nil +} + +// Timeout Getter +func (r PushAliyuncsComPushMsg2015_03_18APIRequest) GetTimeout() int64 { + return r._timeout +} +// Title Setter +// 标题 +func (r *PushAliyuncsComPushMsg2015_03_18APIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("Title", _title) + return nil +} + +// Title Getter +func (r PushAliyuncsComPushMsg2015_03_18APIRequest) GetTitle() string { + return r._title +} diff --git a/model/aliyun/PushAliyuncsComPushMsg2015_03_18APIResponse.go b/model/aliyun/PushAliyuncsComPushMsg2015_03_18APIResponse.go new file mode 100644 index 0000000000..8774ac130d --- /dev/null +++ b/model/aliyun/PushAliyuncsComPushMsg2015_03_18APIResponse.go @@ -0,0 +1,29 @@ +package aliyun + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +消息推送 API返回值 +push.aliyuncs.com.pushMsg.2015-03-18 + +消息推送 ,支持指定用户/账号/广播等模式 +*/ +type PushAliyuncsComPushMsg2015_03_18APIResponse struct { + model.CommonResponse + PushAliyuncsComPushMsg2015_03_18APIResponseModel +} + +// 消息推送 成功返回结果 +type PushAliyuncsComPushMsg2015_03_18APIResponseModel struct { + XMLName xml.Name `xml:"push_aliyuncs_com_pushMsg_2015-03-18_response"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 该字段的值由服务端生成,返回给用户方便问题追查与定位。 + RequestId int64 `json:"requestId,omitempty" xml:"requestId,omitempty"` + // 消息ID + ResponseParams int64 `json:"responseParams,omitempty" xml:"responseParams,omitempty"` +} diff --git a/model/aliyun/PushAliyuncsComPushMsg2015_03_18Response.go b/model/aliyun/PushAliyuncsComPushMsg2015_03_18Response.go deleted file mode 100644 index 1245f0ab90..0000000000 --- a/model/aliyun/PushAliyuncsComPushMsg2015_03_18Response.go +++ /dev/null @@ -1,29 +0,0 @@ -package aliyun - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -消息推送 API返回值 -push.aliyuncs.com.pushMsg.2015-03-18 - -消息推送 ,支持指定用户/账号/广播等模式 -*/ -type PushAliyuncsComPushMsg2015_03_18APIResponse struct { - model.CommonResponse - PushAliyuncsComPushMsg2015_03_18Response -} - -// 消息推送 成功返回结果 -type PushAliyuncsComPushMsg2015_03_18Response struct { - XMLName xml.Name `xml:"push_aliyuncs_com_pushMsg_2015-03-18_response"` - // 是否成功 - Success bool `json:"success,omitempty" xml:"success,omitempty"` - // 该字段的值由服务端生成,返回给用户方便问题追查与定位。 - RequestId int64 `json:"requestId,omitempty" xml:"requestId,omitempty"` - // 消息ID - ResponseParams int64 `json:"responseParams,omitempty" xml:"responseParams,omitempty"` -} diff --git a/model/aliyun/PushAliyuncsComPushNotification2015_03_18APIRequest.go b/model/aliyun/PushAliyuncsComPushNotification2015_03_18APIRequest.go new file mode 100644 index 0000000000..634ba8366f --- /dev/null +++ b/model/aliyun/PushAliyuncsComPushNotification2015_03_18APIRequest.go @@ -0,0 +1,346 @@ +package aliyun + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推送通知 API请求 +push.aliyuncs.com.pushNotification.2015-03-18 + +pushNotification +*/ +type PushAliyuncsComPushNotification2015_03_18APIRequest struct { + model.Params + // 用户账号列表,以换行区分,仅sendType为3时有效 + _account string + // 自定义的kv结构,开发者扩展用 + _androidExtraMap string + // 通知声音 + _androidMusic string + // 通知类型 1:震动 2:响铃 + _androidNotifyType int64 + // 打开app指定位置 + _androidOpenActivity string + // 点击通知后动作 + _androidOpenType int64 + // 打开应用,网页 + _androidOpenUrl string + // 防打扰时长,取值范围为1~23 + _antiHarassDuration int64 + // 防打扰开始时间点,取值范围为0~23 + _antiHarassStartTime int64 + // 应用标识 + _appId int64 + // 批次编号,用于活动效果统计 + _batchNumber string + // 设备编号列表,以换行区分,仅sendType为4时有效 + _deviceId string + // 设备类型,取值范围为:0~3云推送支持多种设备,各 种设备类型编号如下:IOS设备:deviceType&1=1; Andriod设备:deviceType&2=2;如果存在此字段,则向 指定的设备类型推送消息。默认为全部(3); + _deviceType int64 + // 自定义的kv结构,开发者扩展用 + _iosExtraMap string + // 角标 + _iosFooter int64 + // 默认音乐 + _iosMusic string + // 推送时间,若空表示立即推送,推送时间不能早于当前时间 + _pushTime string + // 推送类型,取值范围:1~4; 1:所有人,无需指定tag、 deviceType等2:一群人,必须指定tag3:指定用户,根据 用户账号列表文件发送消息4:指定设备,根据设备编码列 表文件发送消息默认值为1 + _sendType int64 + // 摘要 + _summary string + // 标签名称,仅支持1个标签,仅sendType为2时有效 + _tag string + // 离线消息保存时长,取值范围为1~72,若不填,则表示不保存离线消息 + _timeout int64 + // 标题 + _title string +} + +// 初始化PushAliyuncsComPushNotification2015_03_18APIRequest对象 +func NewPushAliyuncsComPushNotification2015_03_18Request() *PushAliyuncsComPushNotification2015_03_18APIRequest{ + return &PushAliyuncsComPushNotification2015_03_18APIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetApiMethodName() string { + return "push.aliyuncs.com.pushNotification.2015-03-18" +} + +// IRequest interface 方法, 获取API参数 +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Account Setter +// 用户账号列表,以换行区分,仅sendType为3时有效 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetAccount(_account string) error { + r._account = _account + r.Set("Account", _account) + return nil +} + +// Account Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetAccount() string { + return r._account +} +// AndroidExtraMap Setter +// 自定义的kv结构,开发者扩展用 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetAndroidExtraMap(_androidExtraMap string) error { + r._androidExtraMap = _androidExtraMap + r.Set("AndroidExtraMap", _androidExtraMap) + return nil +} + +// AndroidExtraMap Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetAndroidExtraMap() string { + return r._androidExtraMap +} +// AndroidMusic Setter +// 通知声音 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetAndroidMusic(_androidMusic string) error { + r._androidMusic = _androidMusic + r.Set("AndroidMusic", _androidMusic) + return nil +} + +// AndroidMusic Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetAndroidMusic() string { + return r._androidMusic +} +// AndroidNotifyType Setter +// 通知类型 1:震动 2:响铃 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetAndroidNotifyType(_androidNotifyType int64) error { + r._androidNotifyType = _androidNotifyType + r.Set("AndroidNotifyType", _androidNotifyType) + return nil +} + +// AndroidNotifyType Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetAndroidNotifyType() int64 { + return r._androidNotifyType +} +// AndroidOpenActivity Setter +// 打开app指定位置 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetAndroidOpenActivity(_androidOpenActivity string) error { + r._androidOpenActivity = _androidOpenActivity + r.Set("AndroidOpenActivity", _androidOpenActivity) + return nil +} + +// AndroidOpenActivity Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetAndroidOpenActivity() string { + return r._androidOpenActivity +} +// AndroidOpenType Setter +// 点击通知后动作 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetAndroidOpenType(_androidOpenType int64) error { + r._androidOpenType = _androidOpenType + r.Set("AndroidOpenType", _androidOpenType) + return nil +} + +// AndroidOpenType Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetAndroidOpenType() int64 { + return r._androidOpenType +} +// AndroidOpenUrl Setter +// 打开应用,网页 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetAndroidOpenUrl(_androidOpenUrl string) error { + r._androidOpenUrl = _androidOpenUrl + r.Set("AndroidOpenUrl", _androidOpenUrl) + return nil +} + +// AndroidOpenUrl Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetAndroidOpenUrl() string { + return r._androidOpenUrl +} +// AntiHarassDuration Setter +// 防打扰时长,取值范围为1~23 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetAntiHarassDuration(_antiHarassDuration int64) error { + r._antiHarassDuration = _antiHarassDuration + r.Set("AntiHarassDuration", _antiHarassDuration) + return nil +} + +// AntiHarassDuration Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetAntiHarassDuration() int64 { + return r._antiHarassDuration +} +// AntiHarassStartTime Setter +// 防打扰开始时间点,取值范围为0~23 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetAntiHarassStartTime(_antiHarassStartTime int64) error { + r._antiHarassStartTime = _antiHarassStartTime + r.Set("AntiHarassStartTime", _antiHarassStartTime) + return nil +} + +// AntiHarassStartTime Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetAntiHarassStartTime() int64 { + return r._antiHarassStartTime +} +// AppId Setter +// 应用标识 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetAppId(_appId int64) error { + r._appId = _appId + r.Set("AppId", _appId) + return nil +} + +// AppId Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetAppId() int64 { + return r._appId +} +// BatchNumber Setter +// 批次编号,用于活动效果统计 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetBatchNumber(_batchNumber string) error { + r._batchNumber = _batchNumber + r.Set("BatchNumber", _batchNumber) + return nil +} + +// BatchNumber Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetBatchNumber() string { + return r._batchNumber +} +// DeviceId Setter +// 设备编号列表,以换行区分,仅sendType为4时有效 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("DeviceId", _deviceId) + return nil +} + +// DeviceId Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetDeviceId() string { + return r._deviceId +} +// DeviceType Setter +// 设备类型,取值范围为:0~3云推送支持多种设备,各 种设备类型编号如下:IOS设备:deviceType&1=1; Andriod设备:deviceType&2=2;如果存在此字段,则向 指定的设备类型推送消息。默认为全部(3); +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetDeviceType(_deviceType int64) error { + r._deviceType = _deviceType + r.Set("DeviceType", _deviceType) + return nil +} + +// DeviceType Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetDeviceType() int64 { + return r._deviceType +} +// IosExtraMap Setter +// 自定义的kv结构,开发者扩展用 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetIosExtraMap(_iosExtraMap string) error { + r._iosExtraMap = _iosExtraMap + r.Set("IosExtraMap", _iosExtraMap) + return nil +} + +// IosExtraMap Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetIosExtraMap() string { + return r._iosExtraMap +} +// IosFooter Setter +// 角标 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetIosFooter(_iosFooter int64) error { + r._iosFooter = _iosFooter + r.Set("IosFooter", _iosFooter) + return nil +} + +// IosFooter Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetIosFooter() int64 { + return r._iosFooter +} +// IosMusic Setter +// 默认音乐 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetIosMusic(_iosMusic string) error { + r._iosMusic = _iosMusic + r.Set("IosMusic", _iosMusic) + return nil +} + +// IosMusic Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetIosMusic() string { + return r._iosMusic +} +// PushTime Setter +// 推送时间,若空表示立即推送,推送时间不能早于当前时间 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetPushTime(_pushTime string) error { + r._pushTime = _pushTime + r.Set("PushTime", _pushTime) + return nil +} + +// PushTime Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetPushTime() string { + return r._pushTime +} +// SendType Setter +// 推送类型,取值范围:1~4; 1:所有人,无需指定tag、 deviceType等2:一群人,必须指定tag3:指定用户,根据 用户账号列表文件发送消息4:指定设备,根据设备编码列 表文件发送消息默认值为1 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetSendType(_sendType int64) error { + r._sendType = _sendType + r.Set("SendType", _sendType) + return nil +} + +// SendType Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetSendType() int64 { + return r._sendType +} +// Summary Setter +// 摘要 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetSummary(_summary string) error { + r._summary = _summary + r.Set("Summary", _summary) + return nil +} + +// Summary Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetSummary() string { + return r._summary +} +// Tag Setter +// 标签名称,仅支持1个标签,仅sendType为2时有效 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetTag(_tag string) error { + r._tag = _tag + r.Set("Tag", _tag) + return nil +} + +// Tag Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetTag() string { + return r._tag +} +// Timeout Setter +// 离线消息保存时长,取值范围为1~72,若不填,则表示不保存离线消息 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetTimeout(_timeout int64) error { + r._timeout = _timeout + r.Set("Timeout", _timeout) + return nil +} + +// Timeout Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetTimeout() int64 { + return r._timeout +} +// Title Setter +// 标题 +func (r *PushAliyuncsComPushNotification2015_03_18APIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("Title", _title) + return nil +} + +// Title Getter +func (r PushAliyuncsComPushNotification2015_03_18APIRequest) GetTitle() string { + return r._title +} diff --git a/model/aliyun/PushAliyuncsComPushNotification2015_03_18APIResponse.go b/model/aliyun/PushAliyuncsComPushNotification2015_03_18APIResponse.go new file mode 100644 index 0000000000..8f070be8e3 --- /dev/null +++ b/model/aliyun/PushAliyuncsComPushNotification2015_03_18APIResponse.go @@ -0,0 +1,29 @@ +package aliyun + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推送通知 API返回值 +push.aliyuncs.com.pushNotification.2015-03-18 + +pushNotification +*/ +type PushAliyuncsComPushNotification2015_03_18APIResponse struct { + model.CommonResponse + PushAliyuncsComPushNotification2015_03_18APIResponseModel +} + +// 推送通知 成功返回结果 +type PushAliyuncsComPushNotification2015_03_18APIResponseModel struct { + XMLName xml.Name `xml:"push_aliyuncs_com_pushNotification_2015-03-18_response"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 该字段的值由服务端生成,返回给用户方便问题追查与定位。 + RequestId int64 `json:"requestId,omitempty" xml:"requestId,omitempty"` + // 消息ID,用于查询 + ResponseParams int64 `json:"responseParams,omitempty" xml:"responseParams,omitempty"` +} diff --git a/model/aliyun/PushAliyuncsComPushNotification2015_03_18Response.go b/model/aliyun/PushAliyuncsComPushNotification2015_03_18Response.go deleted file mode 100644 index dfa015fc00..0000000000 --- a/model/aliyun/PushAliyuncsComPushNotification2015_03_18Response.go +++ /dev/null @@ -1,29 +0,0 @@ -package aliyun - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推送通知 API返回值 -push.aliyuncs.com.pushNotification.2015-03-18 - -pushNotification -*/ -type PushAliyuncsComPushNotification2015_03_18APIResponse struct { - model.CommonResponse - PushAliyuncsComPushNotification2015_03_18Response -} - -// 推送通知 成功返回结果 -type PushAliyuncsComPushNotification2015_03_18Response struct { - XMLName xml.Name `xml:"push_aliyuncs_com_pushNotification_2015-03-18_response"` - // 是否成功 - Success bool `json:"success,omitempty" xml:"success,omitempty"` - // 该字段的值由服务端生成,返回给用户方便问题追查与定位。 - RequestId int64 `json:"requestId,omitempty" xml:"requestId,omitempty"` - // 消息ID,用于查询 - ResponseParams int64 `json:"responseParams,omitempty" xml:"responseParams,omitempty"` -} diff --git a/model/aliyun/SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIRequest.go b/model/aliyun/SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIRequest.go new file mode 100644 index 0000000000..5c0db36617 --- /dev/null +++ b/model/aliyun/SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIRequest.go @@ -0,0 +1,66 @@ +package aliyun + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除 slb listener API请求 +slb.aliyuncs.com.DeleteLoadBalancerListener.2013-02-21 + +delete_vip +*/ +type SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIRequest struct { + model.Params + // loadBalancerId + _loadBalancerId string + // listenerPort + _listenerPort int64 +} + +// 初始化SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIRequest对象 +func NewSlbAliyuncsComDeleteLoadBalancerListener2013_02_21Request() *SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIRequest{ + return &SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIRequest) GetApiMethodName() string { + return "slb.aliyuncs.com.DeleteLoadBalancerListener.2013-02-21" +} + +// IRequest interface 方法, 获取API参数 +func (r SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LoadBalancerId Setter +// loadBalancerId +func (r *SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIRequest) SetLoadBalancerId(_loadBalancerId string) error { + r._loadBalancerId = _loadBalancerId + r.Set("loadBalancerId", _loadBalancerId) + return nil +} + +// LoadBalancerId Getter +func (r SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIRequest) GetLoadBalancerId() string { + return r._loadBalancerId +} +// ListenerPort Setter +// listenerPort +func (r *SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIRequest) SetListenerPort(_listenerPort int64) error { + r._listenerPort = _listenerPort + r.Set("listenerPort", _listenerPort) + return nil +} + +// ListenerPort Getter +func (r SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIRequest) GetListenerPort() int64 { + return r._listenerPort +} diff --git a/model/aliyun/SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIResponse.go b/model/aliyun/SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIResponse.go new file mode 100644 index 0000000000..70f88de858 --- /dev/null +++ b/model/aliyun/SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIResponse.go @@ -0,0 +1,27 @@ +package aliyun + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除 slb listener API返回值 +slb.aliyuncs.com.DeleteLoadBalancerListener.2013-02-21 + +delete_vip +*/ +type SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIResponse struct { + model.CommonResponse + SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIResponseModel +} + +// 删除 slb listener 成功返回结果 +type SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIResponseModel struct { + XMLName xml.Name `xml:"slb_aliyuncs_com_DeleteLoadBalancerListener_2013-02-21_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // request id + Requestid string `json:"requestid,omitempty" xml:"requestid,omitempty"` +} diff --git a/model/aliyun/SlbAliyuncsComDeleteLoadBalancerListener2013_02_21Response.go b/model/aliyun/SlbAliyuncsComDeleteLoadBalancerListener2013_02_21Response.go deleted file mode 100644 index f20a9e5800..0000000000 --- a/model/aliyun/SlbAliyuncsComDeleteLoadBalancerListener2013_02_21Response.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliyun - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除 slb listener API返回值 -slb.aliyuncs.com.DeleteLoadBalancerListener.2013-02-21 - -delete_vip -*/ -type SlbAliyuncsComDeleteLoadBalancerListener2013_02_21APIResponse struct { - model.CommonResponse - SlbAliyuncsComDeleteLoadBalancerListener2013_02_21Response -} - -// 删除 slb listener 成功返回结果 -type SlbAliyuncsComDeleteLoadBalancerListener2013_02_21Response struct { - XMLName xml.Name `xml:"slb_aliyuncs_com_DeleteLoadBalancerListener_2013-02-21_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // request id - Requestid string `json:"requestid,omitempty" xml:"requestid,omitempty"` -} diff --git a/model/aliyun/SlbAliyuncsComDescribeBackendServers2013_02_21APIRequest.go b/model/aliyun/SlbAliyuncsComDescribeBackendServers2013_02_21APIRequest.go new file mode 100644 index 0000000000..763886455e --- /dev/null +++ b/model/aliyun/SlbAliyuncsComDescribeBackendServers2013_02_21APIRequest.go @@ -0,0 +1,66 @@ +package aliyun + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +后端服务器健康检查 API请求 +slb.aliyuncs.com.DescribeBackendServers.2013-02-21 + +后端服务器健康检查,对SLB实例的后端服务器进行健康检查,返回后端服务器的健康状况。后端服务器的健康状况为normal,abnormal和Unavailable三种。其中Unavailable表示这个SLB实例没有配置健康检查,无法获取后端服务器的健康状况。如果没有传入ListenerPort,则表示对这个SLB实例下的所有Listener后端服务器进行健康检查。 +*/ +type SlbAliyuncsComDescribeBackendServers2013_02_21APIRequest struct { + model.Params + // loadBalancerId + _loadBalancerId string + // listenerPort + _listenerPort int64 +} + +// 初始化SlbAliyuncsComDescribeBackendServers2013_02_21APIRequest对象 +func NewSlbAliyuncsComDescribeBackendServers2013_02_21Request() *SlbAliyuncsComDescribeBackendServers2013_02_21APIRequest{ + return &SlbAliyuncsComDescribeBackendServers2013_02_21APIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r SlbAliyuncsComDescribeBackendServers2013_02_21APIRequest) GetApiMethodName() string { + return "slb.aliyuncs.com.DescribeBackendServers.2013-02-21" +} + +// IRequest interface 方法, 获取API参数 +func (r SlbAliyuncsComDescribeBackendServers2013_02_21APIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LoadBalancerId Setter +// loadBalancerId +func (r *SlbAliyuncsComDescribeBackendServers2013_02_21APIRequest) SetLoadBalancerId(_loadBalancerId string) error { + r._loadBalancerId = _loadBalancerId + r.Set("loadBalancerId", _loadBalancerId) + return nil +} + +// LoadBalancerId Getter +func (r SlbAliyuncsComDescribeBackendServers2013_02_21APIRequest) GetLoadBalancerId() string { + return r._loadBalancerId +} +// ListenerPort Setter +// listenerPort +func (r *SlbAliyuncsComDescribeBackendServers2013_02_21APIRequest) SetListenerPort(_listenerPort int64) error { + r._listenerPort = _listenerPort + r.Set("listenerPort", _listenerPort) + return nil +} + +// ListenerPort Getter +func (r SlbAliyuncsComDescribeBackendServers2013_02_21APIRequest) GetListenerPort() int64 { + return r._listenerPort +} diff --git a/model/aliyun/SlbAliyuncsComDescribeBackendServers2013_02_21APIResponse.go b/model/aliyun/SlbAliyuncsComDescribeBackendServers2013_02_21APIResponse.go new file mode 100644 index 0000000000..e1e888e449 --- /dev/null +++ b/model/aliyun/SlbAliyuncsComDescribeBackendServers2013_02_21APIResponse.go @@ -0,0 +1,31 @@ +package aliyun + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +后端服务器健康检查 API返回值 +slb.aliyuncs.com.DescribeBackendServers.2013-02-21 + +后端服务器健康检查,对SLB实例的后端服务器进行健康检查,返回后端服务器的健康状况。后端服务器的健康状况为normal,abnormal和Unavailable三种。其中Unavailable表示这个SLB实例没有配置健康检查,无法获取后端服务器的健康状况。如果没有传入ListenerPort,则表示对这个SLB实例下的所有Listener后端服务器进行健康检查。 +*/ +type SlbAliyuncsComDescribeBackendServers2013_02_21APIResponse struct { + model.CommonResponse + SlbAliyuncsComDescribeBackendServers2013_02_21APIResponseModel +} + +// 后端服务器健康检查 成功返回结果 +type SlbAliyuncsComDescribeBackendServers2013_02_21APIResponseModel struct { + XMLName xml.Name `xml:"slb_aliyuncs_com_DescribeBackendServers_2013-02-21_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // request id + Requestid string `json:"requestid,omitempty" xml:"requestid,omitempty"` + // LoadBalancerId + Loadbalancerid string `json:"loadbalancerid,omitempty" xml:"loadbalancerid,omitempty"` + // Listeners + Listeners []Listener `json:"listeners,omitempty" xml:"listeners>listener,omitempty"` +} diff --git a/model/aliyun/SlbAliyuncsComDescribeBackendServers2013_02_21Response.go b/model/aliyun/SlbAliyuncsComDescribeBackendServers2013_02_21Response.go deleted file mode 100644 index fe95064f2e..0000000000 --- a/model/aliyun/SlbAliyuncsComDescribeBackendServers2013_02_21Response.go +++ /dev/null @@ -1,31 +0,0 @@ -package aliyun - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -后端服务器健康检查 API返回值 -slb.aliyuncs.com.DescribeBackendServers.2013-02-21 - -后端服务器健康检查,对SLB实例的后端服务器进行健康检查,返回后端服务器的健康状况。后端服务器的健康状况为normal,abnormal和Unavailable三种。其中Unavailable表示这个SLB实例没有配置健康检查,无法获取后端服务器的健康状况。如果没有传入ListenerPort,则表示对这个SLB实例下的所有Listener后端服务器进行健康检查。 -*/ -type SlbAliyuncsComDescribeBackendServers2013_02_21APIResponse struct { - model.CommonResponse - SlbAliyuncsComDescribeBackendServers2013_02_21Response -} - -// 后端服务器健康检查 成功返回结果 -type SlbAliyuncsComDescribeBackendServers2013_02_21Response struct { - XMLName xml.Name `xml:"slb_aliyuncs_com_DescribeBackendServers_2013-02-21_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // request id - Requestid string `json:"requestid,omitempty" xml:"requestid,omitempty"` - // LoadBalancerId - Loadbalancerid string `json:"loadbalancerid,omitempty" xml:"loadbalancerid,omitempty"` - // Listeners - Listeners []Listener `json:"listeners,omitempty" xml:"listeners>listener,omitempty"` -} diff --git a/model/aliyun/SlbAliyuncsComSetLoadBalancerName2013_02_21APIRequest.go b/model/aliyun/SlbAliyuncsComSetLoadBalancerName2013_02_21APIRequest.go new file mode 100644 index 0000000000..3653356863 --- /dev/null +++ b/model/aliyun/SlbAliyuncsComSetLoadBalancerName2013_02_21APIRequest.go @@ -0,0 +1,66 @@ +package aliyun + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +配置LoadBalancer的别名。 API请求 +slb.aliyuncs.com.SetLoadBalancerName.2013-02-21 + +配置LoadBalancer的别名。 +*/ +type SlbAliyuncsComSetLoadBalancerName2013_02_21APIRequest struct { + model.Params + // loadBalancerId + _loadBalancerId string + // loadBalancerName + _loadBalancerName string +} + +// 初始化SlbAliyuncsComSetLoadBalancerName2013_02_21APIRequest对象 +func NewSlbAliyuncsComSetLoadBalancerName2013_02_21Request() *SlbAliyuncsComSetLoadBalancerName2013_02_21APIRequest{ + return &SlbAliyuncsComSetLoadBalancerName2013_02_21APIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r SlbAliyuncsComSetLoadBalancerName2013_02_21APIRequest) GetApiMethodName() string { + return "slb.aliyuncs.com.SetLoadBalancerName.2013-02-21" +} + +// IRequest interface 方法, 获取API参数 +func (r SlbAliyuncsComSetLoadBalancerName2013_02_21APIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LoadBalancerId Setter +// loadBalancerId +func (r *SlbAliyuncsComSetLoadBalancerName2013_02_21APIRequest) SetLoadBalancerId(_loadBalancerId string) error { + r._loadBalancerId = _loadBalancerId + r.Set("loadBalancerId", _loadBalancerId) + return nil +} + +// LoadBalancerId Getter +func (r SlbAliyuncsComSetLoadBalancerName2013_02_21APIRequest) GetLoadBalancerId() string { + return r._loadBalancerId +} +// LoadBalancerName Setter +// loadBalancerName +func (r *SlbAliyuncsComSetLoadBalancerName2013_02_21APIRequest) SetLoadBalancerName(_loadBalancerName string) error { + r._loadBalancerName = _loadBalancerName + r.Set("loadBalancerName", _loadBalancerName) + return nil +} + +// LoadBalancerName Getter +func (r SlbAliyuncsComSetLoadBalancerName2013_02_21APIRequest) GetLoadBalancerName() string { + return r._loadBalancerName +} diff --git a/model/aliyun/SlbAliyuncsComSetLoadBalancerName2013_02_21APIResponse.go b/model/aliyun/SlbAliyuncsComSetLoadBalancerName2013_02_21APIResponse.go new file mode 100644 index 0000000000..72ce1c58ce --- /dev/null +++ b/model/aliyun/SlbAliyuncsComSetLoadBalancerName2013_02_21APIResponse.go @@ -0,0 +1,27 @@ +package aliyun + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +配置LoadBalancer的别名。 API返回值 +slb.aliyuncs.com.SetLoadBalancerName.2013-02-21 + +配置LoadBalancer的别名。 +*/ +type SlbAliyuncsComSetLoadBalancerName2013_02_21APIResponse struct { + model.CommonResponse + SlbAliyuncsComSetLoadBalancerName2013_02_21APIResponseModel +} + +// 配置LoadBalancer的别名。 成功返回结果 +type SlbAliyuncsComSetLoadBalancerName2013_02_21APIResponseModel struct { + XMLName xml.Name `xml:"slb_aliyuncs_com_SetLoadBalancerName_2013-02-21_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // request id + Requestid string `json:"requestid,omitempty" xml:"requestid,omitempty"` +} diff --git a/model/aliyun/SlbAliyuncsComSetLoadBalancerName2013_02_21Response.go b/model/aliyun/SlbAliyuncsComSetLoadBalancerName2013_02_21Response.go deleted file mode 100644 index 97bb06402f..0000000000 --- a/model/aliyun/SlbAliyuncsComSetLoadBalancerName2013_02_21Response.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliyun - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -配置LoadBalancer的别名。 API返回值 -slb.aliyuncs.com.SetLoadBalancerName.2013-02-21 - -配置LoadBalancer的别名。 -*/ -type SlbAliyuncsComSetLoadBalancerName2013_02_21APIResponse struct { - model.CommonResponse - SlbAliyuncsComSetLoadBalancerName2013_02_21Response -} - -// 配置LoadBalancer的别名。 成功返回结果 -type SlbAliyuncsComSetLoadBalancerName2013_02_21Response struct { - XMLName xml.Name `xml:"slb_aliyuncs_com_SetLoadBalancerName_2013-02-21_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // request id - Requestid string `json:"requestid,omitempty" xml:"requestid,omitempty"` -} diff --git a/model/aliyunocs/M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest.go b/model/aliyunocs/M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest.go new file mode 100644 index 0000000000..fa781bcfd6 --- /dev/null +++ b/model/aliyunocs/M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest.go @@ -0,0 +1,178 @@ +package aliyunocs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建OCS实例 API请求 +m-kvstore.aliyuncs.com.CreateInstance.2015-03-01 + +创建OCS实例 +*/ +type M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest struct { + model.Params + // 实例昵称长度为2-128个字符,以大小写英文字母或中文开头,不支持字符@/:="<>{[]}和空格 + _instanceName string + // 说明:实例密码规则:需同时且只能包含大写字母、小写字母和数字长度8~30个字符 + _password string + // 说明:实例容量设置单位:MByte输入范围请见OCS规格参数表 + _capacity int64 + // 华东杭州:cn-hangzhou 华北青岛:cn-qingdao + _regionId string + // 用于保证幂等性 + _token string + // RegionId下级可用区编码 + _zoneId string + // OCS实例的网络类型:classic或vpc。默认为classic + _networkType string + // OCS实例所属vpc实例id。如果NetworkType参数为vpc,则本参数为必须。 + _vpcId string + // OCS实例所属vpc实例的虚拟交换机ID。如果NetworkType参数为vpc,则本参数为必须。 + _vSwitchId string + // OCS实例所属vpc内的私网IP地址。当NetworkType参数为vpc时有效。如果不带本参数,则系统通过VpcId和VSwitchId自动分配。如果此参数对应的私网IP地址不在VSwitchId包含的IP地址段内,则创建失败。 + _privateIpAddress string +} + +// 初始化M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest对象 +func NewM_kvstoreAliyuncsComCreateInstance2015_03_01Request() *M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest{ + return &M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetApiMethodName() string { + return "m-kvstore.aliyuncs.com.CreateInstance.2015-03-01" +} + +// IRequest interface 方法, 获取API参数 +func (r M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InstanceName Setter +// 实例昵称长度为2-128个字符,以大小写英文字母或中文开头,不支持字符@/:="<>{[]}和空格 +func (r *M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetInstanceName(_instanceName string) error { + r._instanceName = _instanceName + r.Set("InstanceName", _instanceName) + return nil +} + +// InstanceName Getter +func (r M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetInstanceName() string { + return r._instanceName +} +// Password Setter +// 说明:实例密码规则:需同时且只能包含大写字母、小写字母和数字长度8~30个字符 +func (r *M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetPassword(_password string) error { + r._password = _password + r.Set("Password", _password) + return nil +} + +// Password Getter +func (r M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetPassword() string { + return r._password +} +// Capacity Setter +// 说明:实例容量设置单位:MByte输入范围请见OCS规格参数表 +func (r *M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetCapacity(_capacity int64) error { + r._capacity = _capacity + r.Set("Capacity", _capacity) + return nil +} + +// Capacity Getter +func (r M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetCapacity() int64 { + return r._capacity +} +// RegionId Setter +// 华东杭州:cn-hangzhou 华北青岛:cn-qingdao +func (r *M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetRegionId(_regionId string) error { + r._regionId = _regionId + r.Set("RegionId", _regionId) + return nil +} + +// RegionId Getter +func (r M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetRegionId() string { + return r._regionId +} +// Token Setter +// 用于保证幂等性 +func (r *M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetToken(_token string) error { + r._token = _token + r.Set("Token", _token) + return nil +} + +// Token Getter +func (r M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetToken() string { + return r._token +} +// ZoneId Setter +// RegionId下级可用区编码 +func (r *M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetZoneId(_zoneId string) error { + r._zoneId = _zoneId + r.Set("ZoneId", _zoneId) + return nil +} + +// ZoneId Getter +func (r M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetZoneId() string { + return r._zoneId +} +// NetworkType Setter +// OCS实例的网络类型:classic或vpc。默认为classic +func (r *M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetNetworkType(_networkType string) error { + r._networkType = _networkType + r.Set("NetworkType", _networkType) + return nil +} + +// NetworkType Getter +func (r M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetNetworkType() string { + return r._networkType +} +// VpcId Setter +// OCS实例所属vpc实例id。如果NetworkType参数为vpc,则本参数为必须。 +func (r *M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetVpcId(_vpcId string) error { + r._vpcId = _vpcId + r.Set("VpcId", _vpcId) + return nil +} + +// VpcId Getter +func (r M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetVpcId() string { + return r._vpcId +} +// VSwitchId Setter +// OCS实例所属vpc实例的虚拟交换机ID。如果NetworkType参数为vpc,则本参数为必须。 +func (r *M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetVSwitchId(_vSwitchId string) error { + r._vSwitchId = _vSwitchId + r.Set("VSwitchId", _vSwitchId) + return nil +} + +// VSwitchId Getter +func (r M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetVSwitchId() string { + return r._vSwitchId +} +// PrivateIpAddress Setter +// OCS实例所属vpc内的私网IP地址。当NetworkType参数为vpc时有效。如果不带本参数,则系统通过VpcId和VSwitchId自动分配。如果此参数对应的私网IP地址不在VSwitchId包含的IP地址段内,则创建失败。 +func (r *M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) SetPrivateIpAddress(_privateIpAddress string) error { + r._privateIpAddress = _privateIpAddress + r.Set("PrivateIpAddress", _privateIpAddress) + return nil +} + +// PrivateIpAddress Getter +func (r M_kvstoreAliyuncsComCreateInstance2015_03_01APIRequest) GetPrivateIpAddress() string { + return r._privateIpAddress +} diff --git a/model/aliyunocs/M_kvstoreAliyuncsComCreateInstance2015_03_01APIResponse.go b/model/aliyunocs/M_kvstoreAliyuncsComCreateInstance2015_03_01APIResponse.go new file mode 100644 index 0000000000..00b4e4ce51 --- /dev/null +++ b/model/aliyunocs/M_kvstoreAliyuncsComCreateInstance2015_03_01APIResponse.go @@ -0,0 +1,53 @@ +package aliyunocs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建OCS实例 API返回值 +m-kvstore.aliyuncs.com.CreateInstance.2015-03-01 + +创建OCS实例 +*/ +type M_kvstoreAliyuncsComCreateInstance2015_03_01APIResponse struct { + model.CommonResponse + M_kvstoreAliyuncsComCreateInstance2015_03_01APIResponseModel +} + +// 创建OCS实例 成功返回结果 +type M_kvstoreAliyuncsComCreateInstance2015_03_01APIResponseModel struct { + XMLName xml.Name `xml:"m-kvstore_aliyuncs_com_CreateInstance_2015-03-01_response"` + // OCS例ID;
16位字符串(全局唯一) + InstanceId string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` + // 实例名称 + InstanceName string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` + // Memcached连接域名
注:仅支持内网 + ConnectionDomain string `json:"ConnectionDomain,omitempty" xml:"ConnectionDomain,omitempty"` + // Memcached连接端口 + Port int64 `json:"Port,omitempty" xml:"Port,omitempty"` + // Memcached连接用户名
注:取InstanceId的值 + UserName string `json:"UserName,omitempty" xml:"UserName,omitempty"` + // 使用中:Available
已禁用:Unavailable
创建中:Creating
修改中:Changing + InstanceStatus string `json:"InstanceStatus,omitempty" xml:"InstanceStatus,omitempty"` + // cn-hangzhou
cn-qingdao
地域-城市 + RegionId string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` + // 实例容量上限 单位:MByte + Capacity int64 `json:"Capacity,omitempty" xml:"Capacity,omitempty"` + // 实例QPS限制
单位:次/秒 + QPS int64 `json:"QPS,omitempty" xml:"QPS,omitempty"` + // 实例带宽限制
单位:MKbps + Bandwidth int64 `json:"Bandwidth,omitempty" xml:"Bandwidth,omitempty"` + // 实例连接数限制
单位:个 + Connections int64 `json:"Connections,omitempty" xml:"Connections,omitempty"` + // 请求唯一标识 + RequestId string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` + // RegionId下级可用区编码 + ZoneId string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` + // OCS实例的网络类型 + NetworkType string `json:"NetworkType,omitempty" xml:"NetworkType,omitempty"` + // NetworkType为vpc时OCS实例所属vpc内由用户指定或系统分配的私网IP地址。NetworkType为classic时忽略此返回参数。 + PrivateIpAddress string `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty"` +} diff --git a/model/aliyunocs/M_kvstoreAliyuncsComCreateInstance2015_03_01Response.go b/model/aliyunocs/M_kvstoreAliyuncsComCreateInstance2015_03_01Response.go deleted file mode 100644 index ea571280e0..0000000000 --- a/model/aliyunocs/M_kvstoreAliyuncsComCreateInstance2015_03_01Response.go +++ /dev/null @@ -1,53 +0,0 @@ -package aliyunocs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建OCS实例 API返回值 -m-kvstore.aliyuncs.com.CreateInstance.2015-03-01 - -创建OCS实例 -*/ -type M_kvstoreAliyuncsComCreateInstance2015_03_01APIResponse struct { - model.CommonResponse - M_kvstoreAliyuncsComCreateInstance2015_03_01Response -} - -// 创建OCS实例 成功返回结果 -type M_kvstoreAliyuncsComCreateInstance2015_03_01Response struct { - XMLName xml.Name `xml:"m-kvstore_aliyuncs_com_CreateInstance_2015-03-01_response"` - // OCS例ID;
16位字符串(全局唯一) - InstanceId string `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"` - // 实例名称 - InstanceName string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"` - // Memcached连接域名
注:仅支持内网 - ConnectionDomain string `json:"ConnectionDomain,omitempty" xml:"ConnectionDomain,omitempty"` - // Memcached连接端口 - Port int64 `json:"Port,omitempty" xml:"Port,omitempty"` - // Memcached连接用户名
注:取InstanceId的值 - UserName string `json:"UserName,omitempty" xml:"UserName,omitempty"` - // 使用中:Available
已禁用:Unavailable
创建中:Creating
修改中:Changing - InstanceStatus string `json:"InstanceStatus,omitempty" xml:"InstanceStatus,omitempty"` - // cn-hangzhou
cn-qingdao
地域-城市 - RegionId string `json:"RegionId,omitempty" xml:"RegionId,omitempty"` - // 实例容量上限 单位:MByte - Capacity int64 `json:"Capacity,omitempty" xml:"Capacity,omitempty"` - // 实例QPS限制
单位:次/秒 - QPS int64 `json:"QPS,omitempty" xml:"QPS,omitempty"` - // 实例带宽限制
单位:MKbps - Bandwidth int64 `json:"Bandwidth,omitempty" xml:"Bandwidth,omitempty"` - // 实例连接数限制
单位:个 - Connections int64 `json:"Connections,omitempty" xml:"Connections,omitempty"` - // 请求唯一标识 - RequestId string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` - // RegionId下级可用区编码 - ZoneId string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` - // OCS实例的网络类型 - NetworkType string `json:"NetworkType,omitempty" xml:"NetworkType,omitempty"` - // NetworkType为vpc时OCS实例所属vpc内由用户指定或系统分配的私网IP地址。NetworkType为classic时忽略此返回参数。 - PrivateIpAddress string `json:"PrivateIpAddress,omitempty" xml:"PrivateIpAddress,omitempty"` -} diff --git a/model/aliyunocs/M_kvstoreAliyuncsComDescribeRegions2015_03_01APIRequest.go b/model/aliyunocs/M_kvstoreAliyuncsComDescribeRegions2015_03_01APIRequest.go new file mode 100644 index 0000000000..61bfa29332 --- /dev/null +++ b/model/aliyunocs/M_kvstoreAliyuncsComDescribeRegions2015_03_01APIRequest.go @@ -0,0 +1,38 @@ +package aliyunocs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查看Region列表 API请求 +m-kvstore.aliyuncs.com.DescribeRegions.2015-03-01 + +查看Region列表 +*/ +type M_kvstoreAliyuncsComDescribeRegions2015_03_01APIRequest struct { + model.Params +} + +// 初始化M_kvstoreAliyuncsComDescribeRegions2015_03_01APIRequest对象 +func NewM_kvstoreAliyuncsComDescribeRegions2015_03_01Request() *M_kvstoreAliyuncsComDescribeRegions2015_03_01APIRequest{ + return &M_kvstoreAliyuncsComDescribeRegions2015_03_01APIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r M_kvstoreAliyuncsComDescribeRegions2015_03_01APIRequest) GetApiMethodName() string { + return "m-kvstore.aliyuncs.com.DescribeRegions.2015-03-01" +} + +// IRequest interface 方法, 获取API参数 +func (r M_kvstoreAliyuncsComDescribeRegions2015_03_01APIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/aliyunocs/M_kvstoreAliyuncsComDescribeRegions2015_03_01APIResponse.go b/model/aliyunocs/M_kvstoreAliyuncsComDescribeRegions2015_03_01APIResponse.go new file mode 100644 index 0000000000..f43351c23e --- /dev/null +++ b/model/aliyunocs/M_kvstoreAliyuncsComDescribeRegions2015_03_01APIResponse.go @@ -0,0 +1,27 @@ +package aliyunocs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查看Region列表 API返回值 +m-kvstore.aliyuncs.com.DescribeRegions.2015-03-01 + +查看Region列表 +*/ +type M_kvstoreAliyuncsComDescribeRegions2015_03_01APIResponse struct { + model.CommonResponse + M_kvstoreAliyuncsComDescribeRegions2015_03_01APIResponseModel +} + +// 查看Region列表 成功返回结果 +type M_kvstoreAliyuncsComDescribeRegions2015_03_01APIResponseModel struct { + XMLName xml.Name `xml:"m-kvstore_aliyuncs_com_DescribeRegions_2015-03-01_response"` + // 请求的唯一ID + RequestId string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` + // RegionIds 为一个 List,里面每个元素由三部分组成【RegionId,LocalName,ZoneIds】,其中ZoneIds是多个值组成的String,多个值间用英文半角“,”分隔。 + RegionIds []AliyunOcsRegion `json:"RegionIds,omitempty" xml:"RegionIds>aliyun_ocs_region,omitempty"` +} diff --git a/model/aliyunocs/M_kvstoreAliyuncsComDescribeRegions2015_03_01Response.go b/model/aliyunocs/M_kvstoreAliyuncsComDescribeRegions2015_03_01Response.go deleted file mode 100644 index d128463fc4..0000000000 --- a/model/aliyunocs/M_kvstoreAliyuncsComDescribeRegions2015_03_01Response.go +++ /dev/null @@ -1,27 +0,0 @@ -package aliyunocs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查看Region列表 API返回值 -m-kvstore.aliyuncs.com.DescribeRegions.2015-03-01 - -查看Region列表 -*/ -type M_kvstoreAliyuncsComDescribeRegions2015_03_01APIResponse struct { - model.CommonResponse - M_kvstoreAliyuncsComDescribeRegions2015_03_01Response -} - -// 查看Region列表 成功返回结果 -type M_kvstoreAliyuncsComDescribeRegions2015_03_01Response struct { - XMLName xml.Name `xml:"m-kvstore_aliyuncs_com_DescribeRegions_2015-03-01_response"` - // 请求的唯一ID - RequestId string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` - // RegionIds 为一个 List,里面每个元素由三部分组成【RegionId,LocalName,ZoneIds】,其中ZoneIds是多个值组成的String,多个值间用英文半角“,”分隔。 - RegionIds []AliyunOcsRegion `json:"RegionIds,omitempty" xml:"RegionIds>aliyun_ocs_region,omitempty"` -} diff --git a/model/alsc/AlibabaAlscChudaTemplateSendAPIRequest.go b/model/alsc/AlibabaAlscChudaTemplateSendAPIRequest.go new file mode 100644 index 0000000000..cc72bbaf70 --- /dev/null +++ b/model/alsc/AlibabaAlscChudaTemplateSendAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +本地生活触达模板消息发送接口 API请求 +alibaba.alsc.chuda.template.send + +允许三方小程序通过该api发送本地生活触达消息 +*/ +type AlibabaAlscChudaTemplateSendAPIRequest struct { + model.Params + // 请求参数 + _notifyRequest *TemplateNotifyRequest +} + +// 初始化AlibabaAlscChudaTemplateSendAPIRequest对象 +func NewAlibabaAlscChudaTemplateSendRequest() *AlibabaAlscChudaTemplateSendAPIRequest{ + return &AlibabaAlscChudaTemplateSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscChudaTemplateSendAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.chuda.template.send" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscChudaTemplateSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NotifyRequest Setter +// 请求参数 +func (r *AlibabaAlscChudaTemplateSendAPIRequest) SetNotifyRequest(_notifyRequest *TemplateNotifyRequest) error { + r._notifyRequest = _notifyRequest + r.Set("notify_request", _notifyRequest) + return nil +} + +// NotifyRequest Getter +func (r AlibabaAlscChudaTemplateSendAPIRequest) GetNotifyRequest() *TemplateNotifyRequest { + return r._notifyRequest +} diff --git a/model/alsc/AlibabaAlscChudaTemplateSendAPIResponse.go b/model/alsc/AlibabaAlscChudaTemplateSendAPIResponse.go new file mode 100644 index 0000000000..39e4dd389d --- /dev/null +++ b/model/alsc/AlibabaAlscChudaTemplateSendAPIResponse.go @@ -0,0 +1,33 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +本地生活触达模板消息发送接口 API返回值 +alibaba.alsc.chuda.template.send + +允许三方小程序通过该api发送本地生活触达消息 +*/ +type AlibabaAlscChudaTemplateSendAPIResponse struct { + model.CommonResponse + AlibabaAlscChudaTemplateSendAPIResponseModel +} + +// 本地生活触达模板消息发送接口 成功返回结果 +type AlibabaAlscChudaTemplateSendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_chuda_template_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // msgId + ResultObj int64 `json:"result_obj,omitempty" xml:"result_obj,omitempty"` + // 发送是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 结果码,200表示成功 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 描述信息 + ResultDesc string `json:"result_desc,omitempty" xml:"result_desc,omitempty"` +} diff --git a/model/alsc/AlibabaAlscChudaTemplateSendResponse.go b/model/alsc/AlibabaAlscChudaTemplateSendResponse.go deleted file mode 100644 index 70b39581e6..0000000000 --- a/model/alsc/AlibabaAlscChudaTemplateSendResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -本地生活触达模板消息发送接口 API返回值 -alibaba.alsc.chuda.template.send - -允许三方小程序通过该api发送本地生活触达消息 -*/ -type AlibabaAlscChudaTemplateSendAPIResponse struct { - model.CommonResponse - AlibabaAlscChudaTemplateSendResponse -} - -// 本地生活触达模板消息发送接口 成功返回结果 -type AlibabaAlscChudaTemplateSendResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_chuda_template_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // msgId - ResultObj int64 `json:"result_obj,omitempty" xml:"result_obj,omitempty"` - // 发送是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 结果码,200表示成功 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 描述信息 - ResultDesc string `json:"result_desc,omitempty" xml:"result_desc,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmCardActiveAPIRequest.go b/model/alsc/AlibabaAlscCrmCardActiveAPIRequest.go new file mode 100644 index 0000000000..fe4d86fc64 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardActiveAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +标准激活卡 API请求 +alibaba.alsc.crm.card.active + +激活卡 +*/ +type AlibabaAlscCrmCardActiveAPIRequest struct { + model.Params + // 请求参数 + _paramActiveCardOpenReq *ActiveCardOpenReq +} + +// 初始化AlibabaAlscCrmCardActiveAPIRequest对象 +func NewAlibabaAlscCrmCardActiveRequest() *AlibabaAlscCrmCardActiveAPIRequest{ + return &AlibabaAlscCrmCardActiveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmCardActiveAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.card.active" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmCardActiveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamActiveCardOpenReq Setter +// 请求参数 +func (r *AlibabaAlscCrmCardActiveAPIRequest) SetParamActiveCardOpenReq(_paramActiveCardOpenReq *ActiveCardOpenReq) error { + r._paramActiveCardOpenReq = _paramActiveCardOpenReq + r.Set("param_active_card_open_req", _paramActiveCardOpenReq) + return nil +} + +// ParamActiveCardOpenReq Getter +func (r AlibabaAlscCrmCardActiveAPIRequest) GetParamActiveCardOpenReq() *ActiveCardOpenReq { + return r._paramActiveCardOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmCardActiveAPIResponse.go b/model/alsc/AlibabaAlscCrmCardActiveAPIResponse.go new file mode 100644 index 0000000000..05d51d996a --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardActiveAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +标准激活卡 API返回值 +alibaba.alsc.crm.card.active + +激活卡 +*/ +type AlibabaAlscCrmCardActiveAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmCardActiveAPIResponseModel +} + +// 标准激活卡 成功返回结果 +type AlibabaAlscCrmCardActiveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_card_active_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmCardActiveResponse.go b/model/alsc/AlibabaAlscCrmCardActiveResponse.go deleted file mode 100644 index 954c4dbd29..0000000000 --- a/model/alsc/AlibabaAlscCrmCardActiveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -标准激活卡 API返回值 -alibaba.alsc.crm.card.active - -激活卡 -*/ -type AlibabaAlscCrmCardActiveAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmCardActiveResponse -} - -// 标准激活卡 成功返回结果 -type AlibabaAlscCrmCardActiveResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_card_active_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmCardBatchActiveAPIRequest.go b/model/alsc/AlibabaAlscCrmCardBatchActiveAPIRequest.go new file mode 100644 index 0000000000..b880714156 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardBatchActiveAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量激活卡 API请求 +alibaba.alsc.crm.card.batch.active + +批量激活卡 +*/ +type AlibabaAlscCrmCardBatchActiveAPIRequest struct { + model.Params + // 请求对象 + _paramBatchActiveCardOpenReq *BatchActiveCardOpenReq +} + +// 初始化AlibabaAlscCrmCardBatchActiveAPIRequest对象 +func NewAlibabaAlscCrmCardBatchActiveRequest() *AlibabaAlscCrmCardBatchActiveAPIRequest{ + return &AlibabaAlscCrmCardBatchActiveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmCardBatchActiveAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.card.batch.active" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmCardBatchActiveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBatchActiveCardOpenReq Setter +// 请求对象 +func (r *AlibabaAlscCrmCardBatchActiveAPIRequest) SetParamBatchActiveCardOpenReq(_paramBatchActiveCardOpenReq *BatchActiveCardOpenReq) error { + r._paramBatchActiveCardOpenReq = _paramBatchActiveCardOpenReq + r.Set("param_batch_active_card_open_req", _paramBatchActiveCardOpenReq) + return nil +} + +// ParamBatchActiveCardOpenReq Getter +func (r AlibabaAlscCrmCardBatchActiveAPIRequest) GetParamBatchActiveCardOpenReq() *BatchActiveCardOpenReq { + return r._paramBatchActiveCardOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmCardBatchActiveAPIResponse.go b/model/alsc/AlibabaAlscCrmCardBatchActiveAPIResponse.go new file mode 100644 index 0000000000..bd900e1b29 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardBatchActiveAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量激活卡 API返回值 +alibaba.alsc.crm.card.batch.active + +批量激活卡 +*/ +type AlibabaAlscCrmCardBatchActiveAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmCardBatchActiveAPIResponseModel +} + +// 批量激活卡 成功返回结果 +type AlibabaAlscCrmCardBatchActiveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_card_batch_active_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmCardBatchActiveResponse.go b/model/alsc/AlibabaAlscCrmCardBatchActiveResponse.go deleted file mode 100644 index 14460773bb..0000000000 --- a/model/alsc/AlibabaAlscCrmCardBatchActiveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量激活卡 API返回值 -alibaba.alsc.crm.card.batch.active - -批量激活卡 -*/ -type AlibabaAlscCrmCardBatchActiveAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmCardBatchActiveResponse -} - -// 批量激活卡 成功返回结果 -type AlibabaAlscCrmCardBatchActiveResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_card_batch_active_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmCardBatchSellAPIRequest.go b/model/alsc/AlibabaAlscCrmCardBatchSellAPIRequest.go new file mode 100644 index 0000000000..1cd36e10e6 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardBatchSellAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量开卡(售卡) API请求 +alibaba.alsc.crm.card.batch.sell + +批量开卡(售卡) +*/ +type AlibabaAlscCrmCardBatchSellAPIRequest struct { + model.Params + // 请求对象 + _paramBatchOpenCardOpenReq *BatchOpenCardOpenReq +} + +// 初始化AlibabaAlscCrmCardBatchSellAPIRequest对象 +func NewAlibabaAlscCrmCardBatchSellRequest() *AlibabaAlscCrmCardBatchSellAPIRequest{ + return &AlibabaAlscCrmCardBatchSellAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmCardBatchSellAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.card.batch.sell" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmCardBatchSellAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBatchOpenCardOpenReq Setter +// 请求对象 +func (r *AlibabaAlscCrmCardBatchSellAPIRequest) SetParamBatchOpenCardOpenReq(_paramBatchOpenCardOpenReq *BatchOpenCardOpenReq) error { + r._paramBatchOpenCardOpenReq = _paramBatchOpenCardOpenReq + r.Set("param_batch_open_card_open_req", _paramBatchOpenCardOpenReq) + return nil +} + +// ParamBatchOpenCardOpenReq Getter +func (r AlibabaAlscCrmCardBatchSellAPIRequest) GetParamBatchOpenCardOpenReq() *BatchOpenCardOpenReq { + return r._paramBatchOpenCardOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmCardBatchSellAPIResponse.go b/model/alsc/AlibabaAlscCrmCardBatchSellAPIResponse.go new file mode 100644 index 0000000000..c41ea05015 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardBatchSellAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量开卡(售卡) API返回值 +alibaba.alsc.crm.card.batch.sell + +批量开卡(售卡) +*/ +type AlibabaAlscCrmCardBatchSellAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmCardBatchSellAPIResponseModel +} + +// 批量开卡(售卡) 成功返回结果 +type AlibabaAlscCrmCardBatchSellAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_card_batch_sell_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmCardBatchSellResponse.go b/model/alsc/AlibabaAlscCrmCardBatchSellResponse.go deleted file mode 100644 index 4cd491a45e..0000000000 --- a/model/alsc/AlibabaAlscCrmCardBatchSellResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量开卡(售卡) API返回值 -alibaba.alsc.crm.card.batch.sell - -批量开卡(售卡) -*/ -type AlibabaAlscCrmCardBatchSellAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmCardBatchSellResponse -} - -// 批量开卡(售卡) 成功返回结果 -type AlibabaAlscCrmCardBatchSellResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_card_batch_sell_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmCardBindcardAPIRequest.go b/model/alsc/AlibabaAlscCrmCardBindcardAPIRequest.go new file mode 100644 index 0000000000..d79ffdcca8 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardBindcardAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +绑定物理卡 API请求 +alibaba.alsc.crm.card.bindcard + +将会员卡和实例物理卡绑定在一起 +*/ +type AlibabaAlscCrmCardBindcardAPIRequest struct { + model.Params + // 请求参数 + _paramBindPhysicalCardOpenReq *BindPhysicalCardOpenReq +} + +// 初始化AlibabaAlscCrmCardBindcardAPIRequest对象 +func NewAlibabaAlscCrmCardBindcardRequest() *AlibabaAlscCrmCardBindcardAPIRequest{ + return &AlibabaAlscCrmCardBindcardAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmCardBindcardAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.card.bindcard" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmCardBindcardAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBindPhysicalCardOpenReq Setter +// 请求参数 +func (r *AlibabaAlscCrmCardBindcardAPIRequest) SetParamBindPhysicalCardOpenReq(_paramBindPhysicalCardOpenReq *BindPhysicalCardOpenReq) error { + r._paramBindPhysicalCardOpenReq = _paramBindPhysicalCardOpenReq + r.Set("param_bind_physical_card_open_req", _paramBindPhysicalCardOpenReq) + return nil +} + +// ParamBindPhysicalCardOpenReq Getter +func (r AlibabaAlscCrmCardBindcardAPIRequest) GetParamBindPhysicalCardOpenReq() *BindPhysicalCardOpenReq { + return r._paramBindPhysicalCardOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmCardBindcardAPIResponse.go b/model/alsc/AlibabaAlscCrmCardBindcardAPIResponse.go new file mode 100644 index 0000000000..19e94258f3 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardBindcardAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +绑定物理卡 API返回值 +alibaba.alsc.crm.card.bindcard + +将会员卡和实例物理卡绑定在一起 +*/ +type AlibabaAlscCrmCardBindcardAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmCardBindcardAPIResponseModel +} + +// 绑定物理卡 成功返回结果 +type AlibabaAlscCrmCardBindcardAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_card_bindcard_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmCardBindcardResponse.go b/model/alsc/AlibabaAlscCrmCardBindcardResponse.go deleted file mode 100644 index e930295209..0000000000 --- a/model/alsc/AlibabaAlscCrmCardBindcardResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -绑定物理卡 API返回值 -alibaba.alsc.crm.card.bindcard - -将会员卡和实例物理卡绑定在一起 -*/ -type AlibabaAlscCrmCardBindcardAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmCardBindcardResponse -} - -// 绑定物理卡 成功返回结果 -type AlibabaAlscCrmCardBindcardResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_card_bindcard_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmCardBindcustomerAPIRequest.go b/model/alsc/AlibabaAlscCrmCardBindcustomerAPIRequest.go new file mode 100644 index 0000000000..ec621f52e7 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardBindcustomerAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卡号绑定顾客 API请求 +alibaba.alsc.crm.card.bindcustomer + +为卡号绑定顾客 +*/ +type AlibabaAlscCrmCardBindcustomerAPIRequest struct { + model.Params + // 请求参数 + _paramBindCustomerOpenReq *BindCustomerOpenReq +} + +// 初始化AlibabaAlscCrmCardBindcustomerAPIRequest对象 +func NewAlibabaAlscCrmCardBindcustomerRequest() *AlibabaAlscCrmCardBindcustomerAPIRequest{ + return &AlibabaAlscCrmCardBindcustomerAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmCardBindcustomerAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.card.bindcustomer" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmCardBindcustomerAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBindCustomerOpenReq Setter +// 请求参数 +func (r *AlibabaAlscCrmCardBindcustomerAPIRequest) SetParamBindCustomerOpenReq(_paramBindCustomerOpenReq *BindCustomerOpenReq) error { + r._paramBindCustomerOpenReq = _paramBindCustomerOpenReq + r.Set("param_bind_customer_open_req", _paramBindCustomerOpenReq) + return nil +} + +// ParamBindCustomerOpenReq Getter +func (r AlibabaAlscCrmCardBindcustomerAPIRequest) GetParamBindCustomerOpenReq() *BindCustomerOpenReq { + return r._paramBindCustomerOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmCardBindcustomerAPIResponse.go b/model/alsc/AlibabaAlscCrmCardBindcustomerAPIResponse.go new file mode 100644 index 0000000000..e21cd1d60e --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardBindcustomerAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卡号绑定顾客 API返回值 +alibaba.alsc.crm.card.bindcustomer + +为卡号绑定顾客 +*/ +type AlibabaAlscCrmCardBindcustomerAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmCardBindcustomerAPIResponseModel +} + +// 卡号绑定顾客 成功返回结果 +type AlibabaAlscCrmCardBindcustomerAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_card_bindcustomer_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmCardBindcustomerResponse.go b/model/alsc/AlibabaAlscCrmCardBindcustomerResponse.go deleted file mode 100644 index 594537d5cc..0000000000 --- a/model/alsc/AlibabaAlscCrmCardBindcustomerResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卡号绑定顾客 API返回值 -alibaba.alsc.crm.card.bindcustomer - -为卡号绑定顾客 -*/ -type AlibabaAlscCrmCardBindcustomerAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmCardBindcustomerResponse -} - -// 卡号绑定顾客 成功返回结果 -type AlibabaAlscCrmCardBindcustomerResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_card_bindcustomer_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmCardOpenAPIRequest.go b/model/alsc/AlibabaAlscCrmCardOpenAPIRequest.go new file mode 100644 index 0000000000..32411372aa --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardOpenAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +标准开卡流程 API请求 +alibaba.alsc.crm.card.open + +标准开卡流程 +*/ +type AlibabaAlscCrmCardOpenAPIRequest struct { + model.Params + // 开卡参数 + _paramOpenCardStandardOpenReq *OpenCardStandardOpenReq +} + +// 初始化AlibabaAlscCrmCardOpenAPIRequest对象 +func NewAlibabaAlscCrmCardOpenRequest() *AlibabaAlscCrmCardOpenAPIRequest{ + return &AlibabaAlscCrmCardOpenAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmCardOpenAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.card.open" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmCardOpenAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamOpenCardStandardOpenReq Setter +// 开卡参数 +func (r *AlibabaAlscCrmCardOpenAPIRequest) SetParamOpenCardStandardOpenReq(_paramOpenCardStandardOpenReq *OpenCardStandardOpenReq) error { + r._paramOpenCardStandardOpenReq = _paramOpenCardStandardOpenReq + r.Set("param_open_card_standard_open_req", _paramOpenCardStandardOpenReq) + return nil +} + +// ParamOpenCardStandardOpenReq Getter +func (r AlibabaAlscCrmCardOpenAPIRequest) GetParamOpenCardStandardOpenReq() *OpenCardStandardOpenReq { + return r._paramOpenCardStandardOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmCardOpenAPIResponse.go b/model/alsc/AlibabaAlscCrmCardOpenAPIResponse.go new file mode 100644 index 0000000000..17ea6c631b --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardOpenAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +标准开卡流程 API返回值 +alibaba.alsc.crm.card.open + +标准开卡流程 +*/ +type AlibabaAlscCrmCardOpenAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmCardOpenAPIResponseModel +} + +// 标准开卡流程 成功返回结果 +type AlibabaAlscCrmCardOpenAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_card_open_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmCardOpenResponse.go b/model/alsc/AlibabaAlscCrmCardOpenResponse.go deleted file mode 100644 index bddaee934a..0000000000 --- a/model/alsc/AlibabaAlscCrmCardOpenResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -标准开卡流程 API返回值 -alibaba.alsc.crm.card.open - -标准开卡流程 -*/ -type AlibabaAlscCrmCardOpenAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmCardOpenResponse -} - -// 标准开卡流程 成功返回结果 -type AlibabaAlscCrmCardOpenResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_card_open_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmCardPagetmpAPIRequest.go b/model/alsc/AlibabaAlscCrmCardPagetmpAPIRequest.go new file mode 100644 index 0000000000..a43f2ee7fc --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardPagetmpAPIRequest.go @@ -0,0 +1,55 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卡模板列表(支持数据下行) API请求 +alibaba.alsc.crm.card.pagetmp + +查询卡模板列表(支持数据下行) +当传递了数据下行参数: + * isDeleted,lastMaxId,gmtModified,num时,进行数据下行处理,返回结果不带分页信息 + * 否则分页查询卡模板,返回结果带有分页信息 +*/ +type AlibabaAlscCrmCardPagetmpAPIRequest struct { + model.Params + // 请求结果 + _paramPullCardTemplateOpenReq *PullCardTemplateOpenReq +} + +// 初始化AlibabaAlscCrmCardPagetmpAPIRequest对象 +func NewAlibabaAlscCrmCardPagetmpRequest() *AlibabaAlscCrmCardPagetmpAPIRequest{ + return &AlibabaAlscCrmCardPagetmpAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmCardPagetmpAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.card.pagetmp" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmCardPagetmpAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamPullCardTemplateOpenReq Setter +// 请求结果 +func (r *AlibabaAlscCrmCardPagetmpAPIRequest) SetParamPullCardTemplateOpenReq(_paramPullCardTemplateOpenReq *PullCardTemplateOpenReq) error { + r._paramPullCardTemplateOpenReq = _paramPullCardTemplateOpenReq + r.Set("param_pull_card_template_open_req", _paramPullCardTemplateOpenReq) + return nil +} + +// ParamPullCardTemplateOpenReq Getter +func (r AlibabaAlscCrmCardPagetmpAPIRequest) GetParamPullCardTemplateOpenReq() *PullCardTemplateOpenReq { + return r._paramPullCardTemplateOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmCardPagetmpAPIResponse.go b/model/alsc/AlibabaAlscCrmCardPagetmpAPIResponse.go new file mode 100644 index 0000000000..a11bce8fc8 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardPagetmpAPIResponse.go @@ -0,0 +1,30 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卡模板列表(支持数据下行) API返回值 +alibaba.alsc.crm.card.pagetmp + +查询卡模板列表(支持数据下行) +当传递了数据下行参数: + * isDeleted,lastMaxId,gmtModified,num时,进行数据下行处理,返回结果不带分页信息 + * 否则分页查询卡模板,返回结果带有分页信息 +*/ +type AlibabaAlscCrmCardPagetmpAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmCardPagetmpAPIResponseModel +} + +// 查询卡模板列表(支持数据下行) 成功返回结果 +type AlibabaAlscCrmCardPagetmpAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_card_pagetmp_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分页返回模型 + Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmCardPagetmpResponse.go b/model/alsc/AlibabaAlscCrmCardPagetmpResponse.go deleted file mode 100644 index c951759295..0000000000 --- a/model/alsc/AlibabaAlscCrmCardPagetmpResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询卡模板列表(支持数据下行) API返回值 -alibaba.alsc.crm.card.pagetmp - -查询卡模板列表(支持数据下行) -当传递了数据下行参数: - * isDeleted,lastMaxId,gmtModified,num时,进行数据下行处理,返回结果不带分页信息 - * 否则分页查询卡模板,返回结果带有分页信息 -*/ -type AlibabaAlscCrmCardPagetmpAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmCardPagetmpResponse -} - -// 查询卡模板列表(支持数据下行) 成功返回结果 -type AlibabaAlscCrmCardPagetmpResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_card_pagetmp_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分页返回模型 - Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmCardQryAPIRequest.go b/model/alsc/AlibabaAlscCrmCardQryAPIRequest.go new file mode 100644 index 0000000000..2ee5b5ab1a --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardQryAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卡实例 API请求 +alibaba.alsc.crm.card.qry + +查询卡实例(优先使用卡实例ID查询,没有则用物理卡号查询) +*/ +type AlibabaAlscCrmCardQryAPIRequest struct { + model.Params + // 请求对象 + _paramQueryCardOpenReq *QueryCardOpenReq +} + +// 初始化AlibabaAlscCrmCardQryAPIRequest对象 +func NewAlibabaAlscCrmCardQryRequest() *AlibabaAlscCrmCardQryAPIRequest{ + return &AlibabaAlscCrmCardQryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmCardQryAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.card.qry" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmCardQryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamQueryCardOpenReq Setter +// 请求对象 +func (r *AlibabaAlscCrmCardQryAPIRequest) SetParamQueryCardOpenReq(_paramQueryCardOpenReq *QueryCardOpenReq) error { + r._paramQueryCardOpenReq = _paramQueryCardOpenReq + r.Set("param_query_card_open_req", _paramQueryCardOpenReq) + return nil +} + +// ParamQueryCardOpenReq Getter +func (r AlibabaAlscCrmCardQryAPIRequest) GetParamQueryCardOpenReq() *QueryCardOpenReq { + return r._paramQueryCardOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmCardQryAPIResponse.go b/model/alsc/AlibabaAlscCrmCardQryAPIResponse.go new file mode 100644 index 0000000000..18262eeb62 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardQryAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卡实例 API返回值 +alibaba.alsc.crm.card.qry + +查询卡实例(优先使用卡实例ID查询,没有则用物理卡号查询) +*/ +type AlibabaAlscCrmCardQryAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmCardQryAPIResponseModel +} + +// 查询卡实例 成功返回结果 +type AlibabaAlscCrmCardQryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_card_qry_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmCardQryResponse.go b/model/alsc/AlibabaAlscCrmCardQryResponse.go deleted file mode 100644 index e7d5834315..0000000000 --- a/model/alsc/AlibabaAlscCrmCardQryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询卡实例 API返回值 -alibaba.alsc.crm.card.qry - -查询卡实例(优先使用卡实例ID查询,没有则用物理卡号查询) -*/ -type AlibabaAlscCrmCardQryAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmCardQryResponse -} - -// 查询卡实例 成功返回结果 -type AlibabaAlscCrmCardQryResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_card_qry_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmCardQryphysicalAPIRequest.go b/model/alsc/AlibabaAlscCrmCardQryphysicalAPIRequest.go new file mode 100644 index 0000000000..3bc0e86d0a --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardQryphysicalAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询物理卡 API请求 +alibaba.alsc.crm.card.qryphysical + +查询物理卡 +*/ +type AlibabaAlscCrmCardQryphysicalAPIRequest struct { + model.Params + // 入参 + _paramQueryPhyCardOpenReq *QueryPhyCardOpenReq +} + +// 初始化AlibabaAlscCrmCardQryphysicalAPIRequest对象 +func NewAlibabaAlscCrmCardQryphysicalRequest() *AlibabaAlscCrmCardQryphysicalAPIRequest{ + return &AlibabaAlscCrmCardQryphysicalAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmCardQryphysicalAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.card.qryphysical" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmCardQryphysicalAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamQueryPhyCardOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmCardQryphysicalAPIRequest) SetParamQueryPhyCardOpenReq(_paramQueryPhyCardOpenReq *QueryPhyCardOpenReq) error { + r._paramQueryPhyCardOpenReq = _paramQueryPhyCardOpenReq + r.Set("param_query_phy_card_open_req", _paramQueryPhyCardOpenReq) + return nil +} + +// ParamQueryPhyCardOpenReq Getter +func (r AlibabaAlscCrmCardQryphysicalAPIRequest) GetParamQueryPhyCardOpenReq() *QueryPhyCardOpenReq { + return r._paramQueryPhyCardOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmCardQryphysicalAPIResponse.go b/model/alsc/AlibabaAlscCrmCardQryphysicalAPIResponse.go new file mode 100644 index 0000000000..0d13ee97af --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardQryphysicalAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询物理卡 API返回值 +alibaba.alsc.crm.card.qryphysical + +查询物理卡 +*/ +type AlibabaAlscCrmCardQryphysicalAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmCardQryphysicalAPIResponseModel +} + +// 查询物理卡 成功返回结果 +type AlibabaAlscCrmCardQryphysicalAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_card_qryphysical_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmCardQryphysicalResponse.go b/model/alsc/AlibabaAlscCrmCardQryphysicalResponse.go deleted file mode 100644 index e578ec38a7..0000000000 --- a/model/alsc/AlibabaAlscCrmCardQryphysicalResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询物理卡 API返回值 -alibaba.alsc.crm.card.qryphysical - -查询物理卡 -*/ -type AlibabaAlscCrmCardQryphysicalAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmCardQryphysicalResponse -} - -// 查询物理卡 成功返回结果 -type AlibabaAlscCrmCardQryphysicalResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_card_qryphysical_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmCardQueryTemplateAPIRequest.go b/model/alsc/AlibabaAlscCrmCardQueryTemplateAPIRequest.go new file mode 100644 index 0000000000..d333722a77 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardQueryTemplateAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卡模板详情 API请求 +alibaba.alsc.crm.card.query.template + +查询卡模板详情 +*/ +type AlibabaAlscCrmCardQueryTemplateAPIRequest struct { + model.Params + // 请求对象 + _paramQueryCardTemplateOpenReq *QueryCardTemplateOpenReq +} + +// 初始化AlibabaAlscCrmCardQueryTemplateAPIRequest对象 +func NewAlibabaAlscCrmCardQueryTemplateRequest() *AlibabaAlscCrmCardQueryTemplateAPIRequest{ + return &AlibabaAlscCrmCardQueryTemplateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmCardQueryTemplateAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.card.query.template" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmCardQueryTemplateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamQueryCardTemplateOpenReq Setter +// 请求对象 +func (r *AlibabaAlscCrmCardQueryTemplateAPIRequest) SetParamQueryCardTemplateOpenReq(_paramQueryCardTemplateOpenReq *QueryCardTemplateOpenReq) error { + r._paramQueryCardTemplateOpenReq = _paramQueryCardTemplateOpenReq + r.Set("param_query_card_template_open_req", _paramQueryCardTemplateOpenReq) + return nil +} + +// ParamQueryCardTemplateOpenReq Getter +func (r AlibabaAlscCrmCardQueryTemplateAPIRequest) GetParamQueryCardTemplateOpenReq() *QueryCardTemplateOpenReq { + return r._paramQueryCardTemplateOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmCardQueryTemplateAPIResponse.go b/model/alsc/AlibabaAlscCrmCardQueryTemplateAPIResponse.go new file mode 100644 index 0000000000..059b9aa658 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardQueryTemplateAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卡模板详情 API返回值 +alibaba.alsc.crm.card.query.template + +查询卡模板详情 +*/ +type AlibabaAlscCrmCardQueryTemplateAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmCardQueryTemplateAPIResponseModel +} + +// 查询卡模板详情 成功返回结果 +type AlibabaAlscCrmCardQueryTemplateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_card_query_template_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmCardQueryTemplateResponse.go b/model/alsc/AlibabaAlscCrmCardQueryTemplateResponse.go deleted file mode 100644 index 54f9cb27af..0000000000 --- a/model/alsc/AlibabaAlscCrmCardQueryTemplateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询卡模板详情 API返回值 -alibaba.alsc.crm.card.query.template - -查询卡模板详情 -*/ -type AlibabaAlscCrmCardQueryTemplateAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmCardQueryTemplateResponse -} - -// 查询卡模板详情 成功返回结果 -type AlibabaAlscCrmCardQueryTemplateResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_card_query_template_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmCardSearchcardAPIRequest.go b/model/alsc/AlibabaAlscCrmCardSearchcardAPIRequest.go new file mode 100644 index 0000000000..2eec03445f --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardSearchcardAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索卡实例列表(支持号段查询) API请求 +alibaba.alsc.crm.card.searchcard + +搜索卡实例列表(支持号段查询) +*/ +type AlibabaAlscCrmCardSearchcardAPIRequest struct { + model.Params + // 请求对象 + _paramSearchCardOpenReq *SearchCardOpenReq +} + +// 初始化AlibabaAlscCrmCardSearchcardAPIRequest对象 +func NewAlibabaAlscCrmCardSearchcardRequest() *AlibabaAlscCrmCardSearchcardAPIRequest{ + return &AlibabaAlscCrmCardSearchcardAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmCardSearchcardAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.card.searchcard" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmCardSearchcardAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamSearchCardOpenReq Setter +// 请求对象 +func (r *AlibabaAlscCrmCardSearchcardAPIRequest) SetParamSearchCardOpenReq(_paramSearchCardOpenReq *SearchCardOpenReq) error { + r._paramSearchCardOpenReq = _paramSearchCardOpenReq + r.Set("param_search_card_open_req", _paramSearchCardOpenReq) + return nil +} + +// ParamSearchCardOpenReq Getter +func (r AlibabaAlscCrmCardSearchcardAPIRequest) GetParamSearchCardOpenReq() *SearchCardOpenReq { + return r._paramSearchCardOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmCardSearchcardAPIResponse.go b/model/alsc/AlibabaAlscCrmCardSearchcardAPIResponse.go new file mode 100644 index 0000000000..8f9a494b32 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCardSearchcardAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索卡实例列表(支持号段查询) API返回值 +alibaba.alsc.crm.card.searchcard + +搜索卡实例列表(支持号段查询) +*/ +type AlibabaAlscCrmCardSearchcardAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmCardSearchcardAPIResponseModel +} + +// 搜索卡实例列表(支持号段查询) 成功返回结果 +type AlibabaAlscCrmCardSearchcardAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_card_searchcard_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分页返回模型 + Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmCardSearchcardResponse.go b/model/alsc/AlibabaAlscCrmCardSearchcardResponse.go deleted file mode 100644 index 67ed1743c8..0000000000 --- a/model/alsc/AlibabaAlscCrmCardSearchcardResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -搜索卡实例列表(支持号段查询) API返回值 -alibaba.alsc.crm.card.searchcard - -搜索卡实例列表(支持号段查询) -*/ -type AlibabaAlscCrmCardSearchcardAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmCardSearchcardResponse -} - -// 搜索卡实例列表(支持号段查询) 成功返回结果 -type AlibabaAlscCrmCardSearchcardResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_card_searchcard_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分页返回模型 - Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmCustomerCheckppwAPIRequest.go b/model/alsc/AlibabaAlscCrmCustomerCheckppwAPIRequest.go new file mode 100644 index 0000000000..342d10404e --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCustomerCheckppwAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +校验支付密码 API请求 +alibaba.alsc.crm.customer.checkppw + +校验支付密码 +*/ +type AlibabaAlscCrmCustomerCheckppwAPIRequest struct { + model.Params + // 请求参数 + _checkRequest *CheckPayPasswdReq +} + +// 初始化AlibabaAlscCrmCustomerCheckppwAPIRequest对象 +func NewAlibabaAlscCrmCustomerCheckppwRequest() *AlibabaAlscCrmCustomerCheckppwAPIRequest{ + return &AlibabaAlscCrmCustomerCheckppwAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmCustomerCheckppwAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.customer.checkppw" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmCustomerCheckppwAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CheckRequest Setter +// 请求参数 +func (r *AlibabaAlscCrmCustomerCheckppwAPIRequest) SetCheckRequest(_checkRequest *CheckPayPasswdReq) error { + r._checkRequest = _checkRequest + r.Set("check_request", _checkRequest) + return nil +} + +// CheckRequest Getter +func (r AlibabaAlscCrmCustomerCheckppwAPIRequest) GetCheckRequest() *CheckPayPasswdReq { + return r._checkRequest +} diff --git a/model/alsc/AlibabaAlscCrmCustomerCheckppwAPIResponse.go b/model/alsc/AlibabaAlscCrmCustomerCheckppwAPIResponse.go new file mode 100644 index 0000000000..eb5c3ad0ce --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCustomerCheckppwAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +校验支付密码 API返回值 +alibaba.alsc.crm.customer.checkppw + +校验支付密码 +*/ +type AlibabaAlscCrmCustomerCheckppwAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmCustomerCheckppwAPIResponseModel +} + +// 校验支付密码 成功返回结果 +type AlibabaAlscCrmCustomerCheckppwAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_customer_checkppw_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmCustomerCheckppwResponse.go b/model/alsc/AlibabaAlscCrmCustomerCheckppwResponse.go deleted file mode 100644 index 848c4de74a..0000000000 --- a/model/alsc/AlibabaAlscCrmCustomerCheckppwResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -校验支付密码 API返回值 -alibaba.alsc.crm.customer.checkppw - -校验支付密码 -*/ -type AlibabaAlscCrmCustomerCheckppwAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmCustomerCheckppwResponse -} - -// 校验支付密码 成功返回结果 -type AlibabaAlscCrmCustomerCheckppwResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_customer_checkppw_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmCustomerCreateAPIRequest.go b/model/alsc/AlibabaAlscCrmCustomerCreateAPIRequest.go new file mode 100644 index 0000000000..b0b6e40450 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCustomerCreateAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建顾客 API请求 +alibaba.alsc.crm.customer.create + +开放本地生活创建顾客功能 +*/ +type AlibabaAlscCrmCustomerCreateAPIRequest struct { + model.Params + // 创建顾客参数 + _paramCustomerCreateOpenReq *CustomerCreateOpenReq +} + +// 初始化AlibabaAlscCrmCustomerCreateAPIRequest对象 +func NewAlibabaAlscCrmCustomerCreateRequest() *AlibabaAlscCrmCustomerCreateAPIRequest{ + return &AlibabaAlscCrmCustomerCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmCustomerCreateAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.customer.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmCustomerCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCustomerCreateOpenReq Setter +// 创建顾客参数 +func (r *AlibabaAlscCrmCustomerCreateAPIRequest) SetParamCustomerCreateOpenReq(_paramCustomerCreateOpenReq *CustomerCreateOpenReq) error { + r._paramCustomerCreateOpenReq = _paramCustomerCreateOpenReq + r.Set("param_customer_create_open_req", _paramCustomerCreateOpenReq) + return nil +} + +// ParamCustomerCreateOpenReq Getter +func (r AlibabaAlscCrmCustomerCreateAPIRequest) GetParamCustomerCreateOpenReq() *CustomerCreateOpenReq { + return r._paramCustomerCreateOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmCustomerCreateAPIResponse.go b/model/alsc/AlibabaAlscCrmCustomerCreateAPIResponse.go new file mode 100644 index 0000000000..6d1f19f540 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCustomerCreateAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建顾客 API返回值 +alibaba.alsc.crm.customer.create + +开放本地生活创建顾客功能 +*/ +type AlibabaAlscCrmCustomerCreateAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmCustomerCreateAPIResponseModel +} + +// 创建顾客 成功返回结果 +type AlibabaAlscCrmCustomerCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_customer_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmCustomerCreateResponse.go b/model/alsc/AlibabaAlscCrmCustomerCreateResponse.go deleted file mode 100644 index 6683ec43d8..0000000000 --- a/model/alsc/AlibabaAlscCrmCustomerCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建顾客 API返回值 -alibaba.alsc.crm.customer.create - -开放本地生活创建顾客功能 -*/ -type AlibabaAlscCrmCustomerCreateAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmCustomerCreateResponse -} - -// 创建顾客 成功返回结果 -type AlibabaAlscCrmCustomerCreateResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_customer_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmCustomerGetAPIRequest.go b/model/alsc/AlibabaAlscCrmCustomerGetAPIRequest.go new file mode 100644 index 0000000000..684518dbb4 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCustomerGetAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询顾客详情 API请求 +alibaba.alsc.crm.customer.get + +查询顾客详情 +*/ +type AlibabaAlscCrmCustomerGetAPIRequest struct { + model.Params + // 顾客详情查询条件 + _paramCustomerIdQueryOpenReq *CustomerIdQueryOpenReq +} + +// 初始化AlibabaAlscCrmCustomerGetAPIRequest对象 +func NewAlibabaAlscCrmCustomerGetRequest() *AlibabaAlscCrmCustomerGetAPIRequest{ + return &AlibabaAlscCrmCustomerGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmCustomerGetAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.customer.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmCustomerGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCustomerIdQueryOpenReq Setter +// 顾客详情查询条件 +func (r *AlibabaAlscCrmCustomerGetAPIRequest) SetParamCustomerIdQueryOpenReq(_paramCustomerIdQueryOpenReq *CustomerIdQueryOpenReq) error { + r._paramCustomerIdQueryOpenReq = _paramCustomerIdQueryOpenReq + r.Set("param_customer_id_query_open_req", _paramCustomerIdQueryOpenReq) + return nil +} + +// ParamCustomerIdQueryOpenReq Getter +func (r AlibabaAlscCrmCustomerGetAPIRequest) GetParamCustomerIdQueryOpenReq() *CustomerIdQueryOpenReq { + return r._paramCustomerIdQueryOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmCustomerGetAPIResponse.go b/model/alsc/AlibabaAlscCrmCustomerGetAPIResponse.go new file mode 100644 index 0000000000..b5ef1a329a --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCustomerGetAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询顾客详情 API返回值 +alibaba.alsc.crm.customer.get + +查询顾客详情 +*/ +type AlibabaAlscCrmCustomerGetAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmCustomerGetAPIResponseModel +} + +// 查询顾客详情 成功返回结果 +type AlibabaAlscCrmCustomerGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_customer_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmCustomerGetResponse.go b/model/alsc/AlibabaAlscCrmCustomerGetResponse.go deleted file mode 100644 index 3eb66f7ec0..0000000000 --- a/model/alsc/AlibabaAlscCrmCustomerGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询顾客详情 API返回值 -alibaba.alsc.crm.customer.get - -查询顾客详情 -*/ -type AlibabaAlscCrmCustomerGetAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmCustomerGetResponse -} - -// 查询顾客详情 成功返回结果 -type AlibabaAlscCrmCustomerGetResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_customer_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmCustomerResetppwAPIRequest.go b/model/alsc/AlibabaAlscCrmCustomerResetppwAPIRequest.go new file mode 100644 index 0000000000..5550f560fd --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCustomerResetppwAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +重置支付密码 API请求 +alibaba.alsc.crm.customer.resetppw + +重置支付密码 +*/ +type AlibabaAlscCrmCustomerResetppwAPIRequest struct { + model.Params + // 系统自动生成 + _resetPayPwdRequest *ResetPayPasswdOpenReq +} + +// 初始化AlibabaAlscCrmCustomerResetppwAPIRequest对象 +func NewAlibabaAlscCrmCustomerResetppwRequest() *AlibabaAlscCrmCustomerResetppwAPIRequest{ + return &AlibabaAlscCrmCustomerResetppwAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmCustomerResetppwAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.customer.resetppw" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmCustomerResetppwAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ResetPayPwdRequest Setter +// 系统自动生成 +func (r *AlibabaAlscCrmCustomerResetppwAPIRequest) SetResetPayPwdRequest(_resetPayPwdRequest *ResetPayPasswdOpenReq) error { + r._resetPayPwdRequest = _resetPayPwdRequest + r.Set("reset_pay_pwd_request", _resetPayPwdRequest) + return nil +} + +// ResetPayPwdRequest Getter +func (r AlibabaAlscCrmCustomerResetppwAPIRequest) GetResetPayPwdRequest() *ResetPayPasswdOpenReq { + return r._resetPayPwdRequest +} diff --git a/model/alsc/AlibabaAlscCrmCustomerResetppwAPIResponse.go b/model/alsc/AlibabaAlscCrmCustomerResetppwAPIResponse.go new file mode 100644 index 0000000000..9d7f21b711 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCustomerResetppwAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +重置支付密码 API返回值 +alibaba.alsc.crm.customer.resetppw + +重置支付密码 +*/ +type AlibabaAlscCrmCustomerResetppwAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmCustomerResetppwAPIResponseModel +} + +// 重置支付密码 成功返回结果 +type AlibabaAlscCrmCustomerResetppwAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_customer_resetppw_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmCustomerResetppwResponse.go b/model/alsc/AlibabaAlscCrmCustomerResetppwResponse.go deleted file mode 100644 index 7c05ed8fcb..0000000000 --- a/model/alsc/AlibabaAlscCrmCustomerResetppwResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -重置支付密码 API返回值 -alibaba.alsc.crm.customer.resetppw - -重置支付密码 -*/ -type AlibabaAlscCrmCustomerResetppwAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmCustomerResetppwResponse -} - -// 重置支付密码 成功返回结果 -type AlibabaAlscCrmCustomerResetppwResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_customer_resetppw_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmCustomerUpdateAPIRequest.go b/model/alsc/AlibabaAlscCrmCustomerUpdateAPIRequest.go new file mode 100644 index 0000000000..c99b0f5536 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCustomerUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新顾客信息 API请求 +alibaba.alsc.crm.customer.update + +更新顾客信息 +*/ +type AlibabaAlscCrmCustomerUpdateAPIRequest struct { + model.Params + // 修改顾客参数 + _paramCustomerUpdateOpenReq *CustomerUpdateOpenReq +} + +// 初始化AlibabaAlscCrmCustomerUpdateAPIRequest对象 +func NewAlibabaAlscCrmCustomerUpdateRequest() *AlibabaAlscCrmCustomerUpdateAPIRequest{ + return &AlibabaAlscCrmCustomerUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmCustomerUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.customer.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmCustomerUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCustomerUpdateOpenReq Setter +// 修改顾客参数 +func (r *AlibabaAlscCrmCustomerUpdateAPIRequest) SetParamCustomerUpdateOpenReq(_paramCustomerUpdateOpenReq *CustomerUpdateOpenReq) error { + r._paramCustomerUpdateOpenReq = _paramCustomerUpdateOpenReq + r.Set("param_customer_update_open_req", _paramCustomerUpdateOpenReq) + return nil +} + +// ParamCustomerUpdateOpenReq Getter +func (r AlibabaAlscCrmCustomerUpdateAPIRequest) GetParamCustomerUpdateOpenReq() *CustomerUpdateOpenReq { + return r._paramCustomerUpdateOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmCustomerUpdateAPIResponse.go b/model/alsc/AlibabaAlscCrmCustomerUpdateAPIResponse.go new file mode 100644 index 0000000000..e143ff3c53 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCustomerUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新顾客信息 API返回值 +alibaba.alsc.crm.customer.update + +更新顾客信息 +*/ +type AlibabaAlscCrmCustomerUpdateAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmCustomerUpdateAPIResponseModel +} + +// 更新顾客信息 成功返回结果 +type AlibabaAlscCrmCustomerUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_customer_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmCustomerUpdateResponse.go b/model/alsc/AlibabaAlscCrmCustomerUpdateResponse.go deleted file mode 100644 index 91e15a48f0..0000000000 --- a/model/alsc/AlibabaAlscCrmCustomerUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新顾客信息 API返回值 -alibaba.alsc.crm.customer.update - -更新顾客信息 -*/ -type AlibabaAlscCrmCustomerUpdateAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmCustomerUpdateResponse -} - -// 更新顾客信息 成功返回结果 -type AlibabaAlscCrmCustomerUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_customer_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmCustomerUpdateppwAPIRequest.go b/model/alsc/AlibabaAlscCrmCustomerUpdateppwAPIRequest.go new file mode 100644 index 0000000000..07b95c6697 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCustomerUpdateppwAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改支付密码 API请求 +alibaba.alsc.crm.customer.updateppw + +修改支付密码 +*/ +type AlibabaAlscCrmCustomerUpdateppwAPIRequest struct { + model.Params + // 修改密码 + _updatePayPasswdReq *UpdatePayPasswdReq +} + +// 初始化AlibabaAlscCrmCustomerUpdateppwAPIRequest对象 +func NewAlibabaAlscCrmCustomerUpdateppwRequest() *AlibabaAlscCrmCustomerUpdateppwAPIRequest{ + return &AlibabaAlscCrmCustomerUpdateppwAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmCustomerUpdateppwAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.customer.updateppw" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmCustomerUpdateppwAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UpdatePayPasswdReq Setter +// 修改密码 +func (r *AlibabaAlscCrmCustomerUpdateppwAPIRequest) SetUpdatePayPasswdReq(_updatePayPasswdReq *UpdatePayPasswdReq) error { + r._updatePayPasswdReq = _updatePayPasswdReq + r.Set("update_pay_passwd_req", _updatePayPasswdReq) + return nil +} + +// UpdatePayPasswdReq Getter +func (r AlibabaAlscCrmCustomerUpdateppwAPIRequest) GetUpdatePayPasswdReq() *UpdatePayPasswdReq { + return r._updatePayPasswdReq +} diff --git a/model/alsc/AlibabaAlscCrmCustomerUpdateppwAPIResponse.go b/model/alsc/AlibabaAlscCrmCustomerUpdateppwAPIResponse.go new file mode 100644 index 0000000000..b90c2c5066 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCustomerUpdateppwAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改支付密码 API返回值 +alibaba.alsc.crm.customer.updateppw + +修改支付密码 +*/ +type AlibabaAlscCrmCustomerUpdateppwAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmCustomerUpdateppwAPIResponseModel +} + +// 修改支付密码 成功返回结果 +type AlibabaAlscCrmCustomerUpdateppwAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_customer_updateppw_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmCustomerUpdateppwResponse.go b/model/alsc/AlibabaAlscCrmCustomerUpdateppwResponse.go deleted file mode 100644 index e208dcd119..0000000000 --- a/model/alsc/AlibabaAlscCrmCustomerUpdateppwResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改支付密码 API返回值 -alibaba.alsc.crm.customer.updateppw - -修改支付密码 -*/ -type AlibabaAlscCrmCustomerUpdateppwAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmCustomerUpdateppwResponse -} - -// 修改支付密码 成功返回结果 -type AlibabaAlscCrmCustomerUpdateppwResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_customer_updateppw_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmCustomerVoucherListAPIRequest.go b/model/alsc/AlibabaAlscCrmCustomerVoucherListAPIRequest.go new file mode 100644 index 0000000000..dfd0e49930 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCustomerVoucherListAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取顾客优惠券列表 API请求 +alibaba.alsc.crm.customer.voucher.list + +获取顾客优惠券列表 +*/ +type AlibabaAlscCrmCustomerVoucherListAPIRequest struct { + model.Params + // 获取顾客优惠券列表 + _customerVoucherFullOpenReq *CustomerVoucherFullOpenReq +} + +// 初始化AlibabaAlscCrmCustomerVoucherListAPIRequest对象 +func NewAlibabaAlscCrmCustomerVoucherListRequest() *AlibabaAlscCrmCustomerVoucherListAPIRequest{ + return &AlibabaAlscCrmCustomerVoucherListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmCustomerVoucherListAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.customer.voucher.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmCustomerVoucherListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CustomerVoucherFullOpenReq Setter +// 获取顾客优惠券列表 +func (r *AlibabaAlscCrmCustomerVoucherListAPIRequest) SetCustomerVoucherFullOpenReq(_customerVoucherFullOpenReq *CustomerVoucherFullOpenReq) error { + r._customerVoucherFullOpenReq = _customerVoucherFullOpenReq + r.Set("customer_voucher_full_open_req", _customerVoucherFullOpenReq) + return nil +} + +// CustomerVoucherFullOpenReq Getter +func (r AlibabaAlscCrmCustomerVoucherListAPIRequest) GetCustomerVoucherFullOpenReq() *CustomerVoucherFullOpenReq { + return r._customerVoucherFullOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmCustomerVoucherListAPIResponse.go b/model/alsc/AlibabaAlscCrmCustomerVoucherListAPIResponse.go new file mode 100644 index 0000000000..169f9bbc58 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmCustomerVoucherListAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取顾客优惠券列表 API返回值 +alibaba.alsc.crm.customer.voucher.list + +获取顾客优惠券列表 +*/ +type AlibabaAlscCrmCustomerVoucherListAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmCustomerVoucherListAPIResponseModel +} + +// 获取顾客优惠券列表 成功返回结果 +type AlibabaAlscCrmCustomerVoucherListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_customer_voucher_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分页返回模型 + Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmCustomerVoucherListResponse.go b/model/alsc/AlibabaAlscCrmCustomerVoucherListResponse.go deleted file mode 100644 index f790007643..0000000000 --- a/model/alsc/AlibabaAlscCrmCustomerVoucherListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取顾客优惠券列表 API返回值 -alibaba.alsc.crm.customer.voucher.list - -获取顾客优惠券列表 -*/ -type AlibabaAlscCrmCustomerVoucherListAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmCustomerVoucherListResponse -} - -// 获取顾客优惠券列表 成功返回结果 -type AlibabaAlscCrmCustomerVoucherListResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_customer_voucher_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分页返回模型 - Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmMarketingEncryptAPIRequest.go b/model/alsc/AlibabaAlscCrmMarketingEncryptAPIRequest.go new file mode 100644 index 0000000000..b04416db2e --- /dev/null +++ b/model/alsc/AlibabaAlscCrmMarketingEncryptAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +加密 API请求 +alibaba.alsc.crm.marketing.encrypt + +加密 +*/ +type AlibabaAlscCrmMarketingEncryptAPIRequest struct { + model.Params + // 参数 + _param string +} + +// 初始化AlibabaAlscCrmMarketingEncryptAPIRequest对象 +func NewAlibabaAlscCrmMarketingEncryptRequest() *AlibabaAlscCrmMarketingEncryptAPIRequest{ + return &AlibabaAlscCrmMarketingEncryptAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmMarketingEncryptAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.marketing.encrypt" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmMarketingEncryptAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 参数 +func (r *AlibabaAlscCrmMarketingEncryptAPIRequest) SetParam(_param string) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaAlscCrmMarketingEncryptAPIRequest) GetParam() string { + return r._param +} diff --git a/model/alsc/AlibabaAlscCrmMarketingEncryptAPIResponse.go b/model/alsc/AlibabaAlscCrmMarketingEncryptAPIResponse.go new file mode 100644 index 0000000000..ce1cfdf1f6 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmMarketingEncryptAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +加密 API返回值 +alibaba.alsc.crm.marketing.encrypt + +加密 +*/ +type AlibabaAlscCrmMarketingEncryptAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmMarketingEncryptAPIResponseModel +} + +// 加密 成功返回结果 +type AlibabaAlscCrmMarketingEncryptAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_marketing_encrypt_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmMarketingEncryptResponse.go b/model/alsc/AlibabaAlscCrmMarketingEncryptResponse.go deleted file mode 100644 index 3605426892..0000000000 --- a/model/alsc/AlibabaAlscCrmMarketingEncryptResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -加密 API返回值 -alibaba.alsc.crm.marketing.encrypt - -加密 -*/ -type AlibabaAlscCrmMarketingEncryptAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmMarketingEncryptResponse -} - -// 加密 成功返回结果 -type AlibabaAlscCrmMarketingEncryptResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_marketing_encrypt_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmMarketingIssueVoucherAPIRequest.go b/model/alsc/AlibabaAlscCrmMarketingIssueVoucherAPIRequest.go new file mode 100644 index 0000000000..dc9d631e70 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmMarketingIssueVoucherAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发券 API请求 +alibaba.alsc.crm.marketing.issue.voucher + +提供发券功能 +*/ +type AlibabaAlscCrmMarketingIssueVoucherAPIRequest struct { + model.Params + // 参数 + _paramIssueVoucherReq *IssueVoucherReq +} + +// 初始化AlibabaAlscCrmMarketingIssueVoucherAPIRequest对象 +func NewAlibabaAlscCrmMarketingIssueVoucherRequest() *AlibabaAlscCrmMarketingIssueVoucherAPIRequest{ + return &AlibabaAlscCrmMarketingIssueVoucherAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmMarketingIssueVoucherAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.marketing.issue.voucher" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmMarketingIssueVoucherAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamIssueVoucherReq Setter +// 参数 +func (r *AlibabaAlscCrmMarketingIssueVoucherAPIRequest) SetParamIssueVoucherReq(_paramIssueVoucherReq *IssueVoucherReq) error { + r._paramIssueVoucherReq = _paramIssueVoucherReq + r.Set("param_issue_voucher_req", _paramIssueVoucherReq) + return nil +} + +// ParamIssueVoucherReq Getter +func (r AlibabaAlscCrmMarketingIssueVoucherAPIRequest) GetParamIssueVoucherReq() *IssueVoucherReq { + return r._paramIssueVoucherReq +} diff --git a/model/alsc/AlibabaAlscCrmMarketingIssueVoucherAPIResponse.go b/model/alsc/AlibabaAlscCrmMarketingIssueVoucherAPIResponse.go new file mode 100644 index 0000000000..4b657fdb8c --- /dev/null +++ b/model/alsc/AlibabaAlscCrmMarketingIssueVoucherAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发券 API返回值 +alibaba.alsc.crm.marketing.issue.voucher + +提供发券功能 +*/ +type AlibabaAlscCrmMarketingIssueVoucherAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmMarketingIssueVoucherAPIResponseModel +} + +// 发券 成功返回结果 +type AlibabaAlscCrmMarketingIssueVoucherAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_marketing_issue_voucher_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmMarketingIssueVoucherResponse.go b/model/alsc/AlibabaAlscCrmMarketingIssueVoucherResponse.go deleted file mode 100644 index f4ff284ddd..0000000000 --- a/model/alsc/AlibabaAlscCrmMarketingIssueVoucherResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发券 API返回值 -alibaba.alsc.crm.marketing.issue.voucher - -提供发券功能 -*/ -type AlibabaAlscCrmMarketingIssueVoucherAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmMarketingIssueVoucherResponse -} - -// 发券 成功返回结果 -type AlibabaAlscCrmMarketingIssueVoucherResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_marketing_issue_voucher_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest.go b/model/alsc/AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest.go new file mode 100644 index 0000000000..6a4d242bd5 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest.go @@ -0,0 +1,164 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询分享营销客户领券信息 API请求 +alibaba.alsc.crm.marketing.share.customer.info + +查询分享营销活动的客户领券信息 +*/ +type AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest struct { + model.Params + // 活动id + _activityId string + // 会员id + _customerId string + // 品牌id(brandId和outerBrandId必传其一) + _brandId string + // 操作人 + _operatorId string + // 操作人姓名 + _operatorName string + // 外部品牌id + _outBrandId string + // 外部门店id + _outShopId string + // 请求幂等id + _requestId string + // 门店id + _shopId string +} + +// 初始化AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest对象 +func NewAlibabaAlscCrmMarketingShareCustomerInfoRequest() *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest{ + return &AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.marketing.share.customer.info" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 活动id +func (r *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) SetActivityId(_activityId string) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetActivityId() string { + return r._activityId +} +// CustomerId Setter +// 会员id +func (r *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) SetCustomerId(_customerId string) error { + r._customerId = _customerId + r.Set("customer_id", _customerId) + return nil +} + +// CustomerId Getter +func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetCustomerId() string { + return r._customerId +} +// BrandId Setter +// 品牌id(brandId和outerBrandId必传其一) +func (r *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) SetBrandId(_brandId string) error { + r._brandId = _brandId + r.Set("brand_id", _brandId) + return nil +} + +// BrandId Getter +func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetBrandId() string { + return r._brandId +} +// OperatorId Setter +// 操作人 +func (r *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) SetOperatorId(_operatorId string) error { + r._operatorId = _operatorId + r.Set("operator_id", _operatorId) + return nil +} + +// OperatorId Getter +func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetOperatorId() string { + return r._operatorId +} +// OperatorName Setter +// 操作人姓名 +func (r *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) SetOperatorName(_operatorName string) error { + r._operatorName = _operatorName + r.Set("operator_name", _operatorName) + return nil +} + +// OperatorName Getter +func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetOperatorName() string { + return r._operatorName +} +// OutBrandId Setter +// 外部品牌id +func (r *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) SetOutBrandId(_outBrandId string) error { + r._outBrandId = _outBrandId + r.Set("out_brand_id", _outBrandId) + return nil +} + +// OutBrandId Getter +func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetOutBrandId() string { + return r._outBrandId +} +// OutShopId Setter +// 外部门店id +func (r *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) SetOutShopId(_outShopId string) error { + r._outShopId = _outShopId + r.Set("out_shop_id", _outShopId) + return nil +} + +// OutShopId Getter +func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetOutShopId() string { + return r._outShopId +} +// RequestId Setter +// 请求幂等id +func (r *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) SetRequestId(_requestId string) error { + r._requestId = _requestId + r.Set("request_id", _requestId) + return nil +} + +// RequestId Getter +func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetRequestId() string { + return r._requestId +} +// ShopId Setter +// 门店id +func (r *AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) SetShopId(_shopId string) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r AlibabaAlscCrmMarketingShareCustomerInfoAPIRequest) GetShopId() string { + return r._shopId +} diff --git a/model/alsc/AlibabaAlscCrmMarketingShareCustomerInfoAPIResponse.go b/model/alsc/AlibabaAlscCrmMarketingShareCustomerInfoAPIResponse.go new file mode 100644 index 0000000000..1db6e60ab3 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmMarketingShareCustomerInfoAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询分享营销客户领券信息 API返回值 +alibaba.alsc.crm.marketing.share.customer.info + +查询分享营销活动的客户领券信息 +*/ +type AlibabaAlscCrmMarketingShareCustomerInfoAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmMarketingShareCustomerInfoAPIResponseModel +} + +// 查询分享营销客户领券信息 成功返回结果 +type AlibabaAlscCrmMarketingShareCustomerInfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_marketing_share_customer_info_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmMarketingShareCustomerInfoResponse.go b/model/alsc/AlibabaAlscCrmMarketingShareCustomerInfoResponse.go deleted file mode 100644 index 96b92de2b8..0000000000 --- a/model/alsc/AlibabaAlscCrmMarketingShareCustomerInfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询分享营销客户领券信息 API返回值 -alibaba.alsc.crm.marketing.share.customer.info - -查询分享营销活动的客户领券信息 -*/ -type AlibabaAlscCrmMarketingShareCustomerInfoAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmMarketingShareCustomerInfoResponse -} - -// 查询分享营销客户领券信息 成功返回结果 -type AlibabaAlscCrmMarketingShareCustomerInfoResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_marketing_share_customer_info_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmMenuListAPIRequest.go b/model/alsc/AlibabaAlscCrmMenuListAPIRequest.go new file mode 100644 index 0000000000..952ffd864c --- /dev/null +++ b/model/alsc/AlibabaAlscCrmMenuListAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取特价菜单 API请求 +alibaba.alsc.crm.menu.list + +获取特价菜单 +*/ +type AlibabaAlscCrmMenuListAPIRequest struct { + model.Params + // 获取特价菜单请求参数 + _menuOpenReq *MenuOpenReq +} + +// 初始化AlibabaAlscCrmMenuListAPIRequest对象 +func NewAlibabaAlscCrmMenuListRequest() *AlibabaAlscCrmMenuListAPIRequest{ + return &AlibabaAlscCrmMenuListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmMenuListAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.menu.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmMenuListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MenuOpenReq Setter +// 获取特价菜单请求参数 +func (r *AlibabaAlscCrmMenuListAPIRequest) SetMenuOpenReq(_menuOpenReq *MenuOpenReq) error { + r._menuOpenReq = _menuOpenReq + r.Set("menu_open_req", _menuOpenReq) + return nil +} + +// MenuOpenReq Getter +func (r AlibabaAlscCrmMenuListAPIRequest) GetMenuOpenReq() *MenuOpenReq { + return r._menuOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmMenuListAPIResponse.go b/model/alsc/AlibabaAlscCrmMenuListAPIResponse.go new file mode 100644 index 0000000000..0378332534 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmMenuListAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取特价菜单 API返回值 +alibaba.alsc.crm.menu.list + +获取特价菜单 +*/ +type AlibabaAlscCrmMenuListAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmMenuListAPIResponseModel +} + +// 获取特价菜单 成功返回结果 +type AlibabaAlscCrmMenuListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_menu_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分页返回模型 + Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmMenuListResponse.go b/model/alsc/AlibabaAlscCrmMenuListResponse.go deleted file mode 100644 index 84d3bc16e8..0000000000 --- a/model/alsc/AlibabaAlscCrmMenuListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取特价菜单 API返回值 -alibaba.alsc.crm.menu.list - -获取特价菜单 -*/ -type AlibabaAlscCrmMenuListAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmMenuListResponse -} - -// 获取特价菜单 成功返回结果 -type AlibabaAlscCrmMenuListResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_menu_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分页返回模型 - Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmOpenAssertRefundAPIRequest.go b/model/alsc/AlibabaAlscCrmOpenAssertRefundAPIRequest.go new file mode 100644 index 0000000000..774b112349 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmOpenAssertRefundAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +资产核销回退接口 API请求 +alibaba.alsc.crm.open.assert.refund + +回退已经核销的储值积分券资产 +*/ +type AlibabaAlscCrmOpenAssertRefundAPIRequest struct { + model.Params + // 入参 + _paramPropertyRefundOpenReq *PropertyRefundOpenReq +} + +// 初始化AlibabaAlscCrmOpenAssertRefundAPIRequest对象 +func NewAlibabaAlscCrmOpenAssertRefundRequest() *AlibabaAlscCrmOpenAssertRefundAPIRequest{ + return &AlibabaAlscCrmOpenAssertRefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmOpenAssertRefundAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.open.assert.refund" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmOpenAssertRefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamPropertyRefundOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmOpenAssertRefundAPIRequest) SetParamPropertyRefundOpenReq(_paramPropertyRefundOpenReq *PropertyRefundOpenReq) error { + r._paramPropertyRefundOpenReq = _paramPropertyRefundOpenReq + r.Set("param_property_refund_open_req", _paramPropertyRefundOpenReq) + return nil +} + +// ParamPropertyRefundOpenReq Getter +func (r AlibabaAlscCrmOpenAssertRefundAPIRequest) GetParamPropertyRefundOpenReq() *PropertyRefundOpenReq { + return r._paramPropertyRefundOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmOpenAssertRefundAPIResponse.go b/model/alsc/AlibabaAlscCrmOpenAssertRefundAPIResponse.go new file mode 100644 index 0000000000..454ff00abb --- /dev/null +++ b/model/alsc/AlibabaAlscCrmOpenAssertRefundAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +资产核销回退接口 API返回值 +alibaba.alsc.crm.open.assert.refund + +回退已经核销的储值积分券资产 +*/ +type AlibabaAlscCrmOpenAssertRefundAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmOpenAssertRefundAPIResponseModel +} + +// 资产核销回退接口 成功返回结果 +type AlibabaAlscCrmOpenAssertRefundAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_open_assert_refund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmOpenAssertRefundResponse.go b/model/alsc/AlibabaAlscCrmOpenAssertRefundResponse.go deleted file mode 100644 index 40be82f5e7..0000000000 --- a/model/alsc/AlibabaAlscCrmOpenAssertRefundResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -资产核销回退接口 API返回值 -alibaba.alsc.crm.open.assert.refund - -回退已经核销的储值积分券资产 -*/ -type AlibabaAlscCrmOpenAssertRefundAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmOpenAssertRefundResponse -} - -// 资产核销回退接口 成功返回结果 -type AlibabaAlscCrmOpenAssertRefundResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_open_assert_refund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmOpenAssertVerifyAPIRequest.go b/model/alsc/AlibabaAlscCrmOpenAssertVerifyAPIRequest.go new file mode 100644 index 0000000000..2a3d84ced8 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmOpenAssertVerifyAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +资产核销接口 API请求 +alibaba.alsc.crm.open.assert.verify + +核销储值,积分,券资产 +*/ +type AlibabaAlscCrmOpenAssertVerifyAPIRequest struct { + model.Params + // 入参 + _paramPropertyVerifyOpenReq *PropertyVerifyOpenReq +} + +// 初始化AlibabaAlscCrmOpenAssertVerifyAPIRequest对象 +func NewAlibabaAlscCrmOpenAssertVerifyRequest() *AlibabaAlscCrmOpenAssertVerifyAPIRequest{ + return &AlibabaAlscCrmOpenAssertVerifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmOpenAssertVerifyAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.open.assert.verify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmOpenAssertVerifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamPropertyVerifyOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmOpenAssertVerifyAPIRequest) SetParamPropertyVerifyOpenReq(_paramPropertyVerifyOpenReq *PropertyVerifyOpenReq) error { + r._paramPropertyVerifyOpenReq = _paramPropertyVerifyOpenReq + r.Set("param_property_verify_open_req", _paramPropertyVerifyOpenReq) + return nil +} + +// ParamPropertyVerifyOpenReq Getter +func (r AlibabaAlscCrmOpenAssertVerifyAPIRequest) GetParamPropertyVerifyOpenReq() *PropertyVerifyOpenReq { + return r._paramPropertyVerifyOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmOpenAssertVerifyAPIResponse.go b/model/alsc/AlibabaAlscCrmOpenAssertVerifyAPIResponse.go new file mode 100644 index 0000000000..f86ec40738 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmOpenAssertVerifyAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +资产核销接口 API返回值 +alibaba.alsc.crm.open.assert.verify + +核销储值,积分,券资产 +*/ +type AlibabaAlscCrmOpenAssertVerifyAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmOpenAssertVerifyAPIResponseModel +} + +// 资产核销接口 成功返回结果 +type AlibabaAlscCrmOpenAssertVerifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_open_assert_verify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmOpenAssertVerifyResponse.go b/model/alsc/AlibabaAlscCrmOpenAssertVerifyResponse.go deleted file mode 100644 index 329212a429..0000000000 --- a/model/alsc/AlibabaAlscCrmOpenAssertVerifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -资产核销接口 API返回值 -alibaba.alsc.crm.open.assert.verify - -核销储值,积分,券资产 -*/ -type AlibabaAlscCrmOpenAssertVerifyAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmOpenAssertVerifyResponse -} - -// 资产核销接口 成功返回结果 -type AlibabaAlscCrmOpenAssertVerifyResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_open_assert_verify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmOpenCustomerGetAPIRequest.go b/model/alsc/AlibabaAlscCrmOpenCustomerGetAPIRequest.go new file mode 100644 index 0000000000..f84c787040 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmOpenCustomerGetAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询会员资产 API请求 +alibaba.alsc.crm.open.customer.get + +查询会员身份,资产等 +*/ +type AlibabaAlscCrmOpenCustomerGetAPIRequest struct { + model.Params + // 入参 + _paramCustomerGetOpenReq *CustomerGetOpenReq +} + +// 初始化AlibabaAlscCrmOpenCustomerGetAPIRequest对象 +func NewAlibabaAlscCrmOpenCustomerGetRequest() *AlibabaAlscCrmOpenCustomerGetAPIRequest{ + return &AlibabaAlscCrmOpenCustomerGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmOpenCustomerGetAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.open.customer.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmOpenCustomerGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCustomerGetOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmOpenCustomerGetAPIRequest) SetParamCustomerGetOpenReq(_paramCustomerGetOpenReq *CustomerGetOpenReq) error { + r._paramCustomerGetOpenReq = _paramCustomerGetOpenReq + r.Set("param_customer_get_open_req", _paramCustomerGetOpenReq) + return nil +} + +// ParamCustomerGetOpenReq Getter +func (r AlibabaAlscCrmOpenCustomerGetAPIRequest) GetParamCustomerGetOpenReq() *CustomerGetOpenReq { + return r._paramCustomerGetOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmOpenCustomerGetAPIResponse.go b/model/alsc/AlibabaAlscCrmOpenCustomerGetAPIResponse.go new file mode 100644 index 0000000000..006a407c81 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmOpenCustomerGetAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询会员资产 API返回值 +alibaba.alsc.crm.open.customer.get + +查询会员身份,资产等 +*/ +type AlibabaAlscCrmOpenCustomerGetAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmOpenCustomerGetAPIResponseModel +} + +// 查询会员资产 成功返回结果 +type AlibabaAlscCrmOpenCustomerGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_open_customer_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmOpenCustomerGetResponse.go b/model/alsc/AlibabaAlscCrmOpenCustomerGetResponse.go deleted file mode 100644 index f279010af3..0000000000 --- a/model/alsc/AlibabaAlscCrmOpenCustomerGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询会员资产 API返回值 -alibaba.alsc.crm.open.customer.get - -查询会员身份,资产等 -*/ -type AlibabaAlscCrmOpenCustomerGetAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmOpenCustomerGetResponse -} - -// 查询会员资产 成功返回结果 -type AlibabaAlscCrmOpenCustomerGetResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_open_customer_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmOpenCustomerSaveAPIRequest.go b/model/alsc/AlibabaAlscCrmOpenCustomerSaveAPIRequest.go new file mode 100644 index 0000000000..a093a0e8aa --- /dev/null +++ b/model/alsc/AlibabaAlscCrmOpenCustomerSaveAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +保存和更新顾客 API请求 +alibaba.alsc.crm.open.customer.save + +用来保存顾客,如果已经存在的话,则更新顾客 +*/ +type AlibabaAlscCrmOpenCustomerSaveAPIRequest struct { + model.Params + // 入参 + _paramCustomerSaveOpenReq *CustomerSaveOpenReq +} + +// 初始化AlibabaAlscCrmOpenCustomerSaveAPIRequest对象 +func NewAlibabaAlscCrmOpenCustomerSaveRequest() *AlibabaAlscCrmOpenCustomerSaveAPIRequest{ + return &AlibabaAlscCrmOpenCustomerSaveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmOpenCustomerSaveAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.open.customer.save" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmOpenCustomerSaveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCustomerSaveOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmOpenCustomerSaveAPIRequest) SetParamCustomerSaveOpenReq(_paramCustomerSaveOpenReq *CustomerSaveOpenReq) error { + r._paramCustomerSaveOpenReq = _paramCustomerSaveOpenReq + r.Set("param_customer_save_open_req", _paramCustomerSaveOpenReq) + return nil +} + +// ParamCustomerSaveOpenReq Getter +func (r AlibabaAlscCrmOpenCustomerSaveAPIRequest) GetParamCustomerSaveOpenReq() *CustomerSaveOpenReq { + return r._paramCustomerSaveOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmOpenCustomerSaveAPIResponse.go b/model/alsc/AlibabaAlscCrmOpenCustomerSaveAPIResponse.go new file mode 100644 index 0000000000..b83fa8b697 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmOpenCustomerSaveAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +保存和更新顾客 API返回值 +alibaba.alsc.crm.open.customer.save + +用来保存顾客,如果已经存在的话,则更新顾客 +*/ +type AlibabaAlscCrmOpenCustomerSaveAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmOpenCustomerSaveAPIResponseModel +} + +// 保存和更新顾客 成功返回结果 +type AlibabaAlscCrmOpenCustomerSaveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_open_customer_save_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmOpenCustomerSaveResponse.go b/model/alsc/AlibabaAlscCrmOpenCustomerSaveResponse.go deleted file mode 100644 index f1843b6bff..0000000000 --- a/model/alsc/AlibabaAlscCrmOpenCustomerSaveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -保存和更新顾客 API返回值 -alibaba.alsc.crm.open.customer.save - -用来保存顾客,如果已经存在的话,则更新顾客 -*/ -type AlibabaAlscCrmOpenCustomerSaveAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmOpenCustomerSaveResponse -} - -// 保存和更新顾客 成功返回结果 -type AlibabaAlscCrmOpenCustomerSaveResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_open_customer_save_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmOpenOrderBackflowAPIRequest.go b/model/alsc/AlibabaAlscCrmOpenOrderBackflowAPIRequest.go new file mode 100644 index 0000000000..f665379142 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmOpenOrderBackflowAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单回流接口 API请求 +alibaba.alsc.crm.open.order.backflow + +回流isv订单接口 +*/ +type AlibabaAlscCrmOpenOrderBackflowAPIRequest struct { + model.Params + // 入参 + _paramOrderBackflowOpenReq *OrderBackflowOpenReq +} + +// 初始化AlibabaAlscCrmOpenOrderBackflowAPIRequest对象 +func NewAlibabaAlscCrmOpenOrderBackflowRequest() *AlibabaAlscCrmOpenOrderBackflowAPIRequest{ + return &AlibabaAlscCrmOpenOrderBackflowAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmOpenOrderBackflowAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.open.order.backflow" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmOpenOrderBackflowAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamOrderBackflowOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmOpenOrderBackflowAPIRequest) SetParamOrderBackflowOpenReq(_paramOrderBackflowOpenReq *OrderBackflowOpenReq) error { + r._paramOrderBackflowOpenReq = _paramOrderBackflowOpenReq + r.Set("param_order_backflow_open_req", _paramOrderBackflowOpenReq) + return nil +} + +// ParamOrderBackflowOpenReq Getter +func (r AlibabaAlscCrmOpenOrderBackflowAPIRequest) GetParamOrderBackflowOpenReq() *OrderBackflowOpenReq { + return r._paramOrderBackflowOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmOpenOrderBackflowAPIResponse.go b/model/alsc/AlibabaAlscCrmOpenOrderBackflowAPIResponse.go new file mode 100644 index 0000000000..c18956c3d0 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmOpenOrderBackflowAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单回流接口 API返回值 +alibaba.alsc.crm.open.order.backflow + +回流isv订单接口 +*/ +type AlibabaAlscCrmOpenOrderBackflowAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmOpenOrderBackflowAPIResponseModel +} + +// 订单回流接口 成功返回结果 +type AlibabaAlscCrmOpenOrderBackflowAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_open_order_backflow_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmOpenOrderBackflowResponse.go b/model/alsc/AlibabaAlscCrmOpenOrderBackflowResponse.go deleted file mode 100644 index d22dc1f25a..0000000000 --- a/model/alsc/AlibabaAlscCrmOpenOrderBackflowResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单回流接口 API返回值 -alibaba.alsc.crm.open.order.backflow - -回流isv订单接口 -*/ -type AlibabaAlscCrmOpenOrderBackflowAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmOpenOrderBackflowResponse -} - -// 订单回流接口 成功返回结果 -type AlibabaAlscCrmOpenOrderBackflowResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_open_order_backflow_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmOpenPointOperateAPIRequest.go b/model/alsc/AlibabaAlscCrmOpenPointOperateAPIRequest.go new file mode 100644 index 0000000000..0544037c9b --- /dev/null +++ b/model/alsc/AlibabaAlscCrmOpenPointOperateAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +积分操作接口 API请求 +alibaba.alsc.crm.open.point.operate + +同步积分接口 +*/ +type AlibabaAlscCrmOpenPointOperateAPIRequest struct { + model.Params + // 入参 + _paramPointOperateOpenReq *PointOperateOpenReq +} + +// 初始化AlibabaAlscCrmOpenPointOperateAPIRequest对象 +func NewAlibabaAlscCrmOpenPointOperateRequest() *AlibabaAlscCrmOpenPointOperateAPIRequest{ + return &AlibabaAlscCrmOpenPointOperateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmOpenPointOperateAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.open.point.operate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmOpenPointOperateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamPointOperateOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmOpenPointOperateAPIRequest) SetParamPointOperateOpenReq(_paramPointOperateOpenReq *PointOperateOpenReq) error { + r._paramPointOperateOpenReq = _paramPointOperateOpenReq + r.Set("param_point_operate_open_req", _paramPointOperateOpenReq) + return nil +} + +// ParamPointOperateOpenReq Getter +func (r AlibabaAlscCrmOpenPointOperateAPIRequest) GetParamPointOperateOpenReq() *PointOperateOpenReq { + return r._paramPointOperateOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmOpenPointOperateAPIResponse.go b/model/alsc/AlibabaAlscCrmOpenPointOperateAPIResponse.go new file mode 100644 index 0000000000..89fe8820cc --- /dev/null +++ b/model/alsc/AlibabaAlscCrmOpenPointOperateAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +积分操作接口 API返回值 +alibaba.alsc.crm.open.point.operate + +同步积分接口 +*/ +type AlibabaAlscCrmOpenPointOperateAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmOpenPointOperateAPIResponseModel +} + +// 积分操作接口 成功返回结果 +type AlibabaAlscCrmOpenPointOperateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_open_point_operate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmOpenPointOperateResponse.go b/model/alsc/AlibabaAlscCrmOpenPointOperateResponse.go deleted file mode 100644 index 323ed4325c..0000000000 --- a/model/alsc/AlibabaAlscCrmOpenPointOperateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -积分操作接口 API返回值 -alibaba.alsc.crm.open.point.operate - -同步积分接口 -*/ -type AlibabaAlscCrmOpenPointOperateAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmOpenPointOperateResponse -} - -// 积分操作接口 成功返回结果 -type AlibabaAlscCrmOpenPointOperateResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_open_point_operate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmOpenRechargeOperateAPIRequest.go b/model/alsc/AlibabaAlscCrmOpenRechargeOperateAPIRequest.go new file mode 100644 index 0000000000..5425587915 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmOpenRechargeOperateAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +储值操作接口 API请求 +alibaba.alsc.crm.open.recharge.operate + +储值操作接口 +*/ +type AlibabaAlscCrmOpenRechargeOperateAPIRequest struct { + model.Params + // 储值操作参数 + _paramRechargeOperateOpenReq *RechargeOperateOpenReq +} + +// 初始化AlibabaAlscCrmOpenRechargeOperateAPIRequest对象 +func NewAlibabaAlscCrmOpenRechargeOperateRequest() *AlibabaAlscCrmOpenRechargeOperateAPIRequest{ + return &AlibabaAlscCrmOpenRechargeOperateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmOpenRechargeOperateAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.open.recharge.operate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmOpenRechargeOperateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamRechargeOperateOpenReq Setter +// 储值操作参数 +func (r *AlibabaAlscCrmOpenRechargeOperateAPIRequest) SetParamRechargeOperateOpenReq(_paramRechargeOperateOpenReq *RechargeOperateOpenReq) error { + r._paramRechargeOperateOpenReq = _paramRechargeOperateOpenReq + r.Set("param_recharge_operate_open_req", _paramRechargeOperateOpenReq) + return nil +} + +// ParamRechargeOperateOpenReq Getter +func (r AlibabaAlscCrmOpenRechargeOperateAPIRequest) GetParamRechargeOperateOpenReq() *RechargeOperateOpenReq { + return r._paramRechargeOperateOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmOpenRechargeOperateAPIResponse.go b/model/alsc/AlibabaAlscCrmOpenRechargeOperateAPIResponse.go new file mode 100644 index 0000000000..b2eb3bebf1 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmOpenRechargeOperateAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +储值操作接口 API返回值 +alibaba.alsc.crm.open.recharge.operate + +储值操作接口 +*/ +type AlibabaAlscCrmOpenRechargeOperateAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmOpenRechargeOperateAPIResponseModel +} + +// 储值操作接口 成功返回结果 +type AlibabaAlscCrmOpenRechargeOperateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_open_recharge_operate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmOpenRechargeOperateResponse.go b/model/alsc/AlibabaAlscCrmOpenRechargeOperateResponse.go deleted file mode 100644 index 8a524ab460..0000000000 --- a/model/alsc/AlibabaAlscCrmOpenRechargeOperateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -储值操作接口 API返回值 -alibaba.alsc.crm.open.recharge.operate - -储值操作接口 -*/ -type AlibabaAlscCrmOpenRechargeOperateAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmOpenRechargeOperateResponse -} - -// 储值操作接口 成功返回结果 -type AlibabaAlscCrmOpenRechargeOperateResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_open_recharge_operate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmOpenRuleGetAPIRequest.go b/model/alsc/AlibabaAlscCrmOpenRuleGetAPIRequest.go new file mode 100644 index 0000000000..3aad905978 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmOpenRuleGetAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询规则 API请求 +alibaba.alsc.crm.open.rule.get + +查询会员规则 +*/ +type AlibabaAlscCrmOpenRuleGetAPIRequest struct { + model.Params + // 入参 + _paramRuleOpenReq *RuleOpenReq +} + +// 初始化AlibabaAlscCrmOpenRuleGetAPIRequest对象 +func NewAlibabaAlscCrmOpenRuleGetRequest() *AlibabaAlscCrmOpenRuleGetAPIRequest{ + return &AlibabaAlscCrmOpenRuleGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmOpenRuleGetAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.open.rule.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmOpenRuleGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamRuleOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmOpenRuleGetAPIRequest) SetParamRuleOpenReq(_paramRuleOpenReq *RuleOpenReq) error { + r._paramRuleOpenReq = _paramRuleOpenReq + r.Set("param_rule_open_req", _paramRuleOpenReq) + return nil +} + +// ParamRuleOpenReq Getter +func (r AlibabaAlscCrmOpenRuleGetAPIRequest) GetParamRuleOpenReq() *RuleOpenReq { + return r._paramRuleOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmOpenRuleGetAPIResponse.go b/model/alsc/AlibabaAlscCrmOpenRuleGetAPIResponse.go new file mode 100644 index 0000000000..bdcd39bbca --- /dev/null +++ b/model/alsc/AlibabaAlscCrmOpenRuleGetAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询规则 API返回值 +alibaba.alsc.crm.open.rule.get + +查询会员规则 +*/ +type AlibabaAlscCrmOpenRuleGetAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmOpenRuleGetAPIResponseModel +} + +// 查询规则 成功返回结果 +type AlibabaAlscCrmOpenRuleGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_open_rule_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmOpenRuleGetResponse.go b/model/alsc/AlibabaAlscCrmOpenRuleGetResponse.go deleted file mode 100644 index 5114be2bfe..0000000000 --- a/model/alsc/AlibabaAlscCrmOpenRuleGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询规则 API返回值 -alibaba.alsc.crm.open.rule.get - -查询会员规则 -*/ -type AlibabaAlscCrmOpenRuleGetAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmOpenRuleGetResponse -} - -// 查询规则 成功返回结果 -type AlibabaAlscCrmOpenRuleGetResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_open_rule_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmPointCalAPIRequest.go b/model/alsc/AlibabaAlscCrmPointCalAPIRequest.go new file mode 100644 index 0000000000..f7dfd112c8 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmPointCalAPIRequest.go @@ -0,0 +1,55 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +计算积分可以抵扣的金额 API请求 +alibaba.alsc.crm.point.cal + +计算积分可以抵扣的金额 +积分的抵扣为区间型 +如抵扣规则为100积分抵扣50元,则输入消费120积分的话,回返回消费100积分抵扣50元 + 这里为纯计算逻辑,不会校验用户是否有足够的可用积分进行抵扣 +*/ +type AlibabaAlscCrmPointCalAPIRequest struct { + model.Params + // 入参 + _paramCalculateDeductedMoneyOpenReq *CalculateDeductedMoneyOpenReq +} + +// 初始化AlibabaAlscCrmPointCalAPIRequest对象 +func NewAlibabaAlscCrmPointCalRequest() *AlibabaAlscCrmPointCalAPIRequest{ + return &AlibabaAlscCrmPointCalAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmPointCalAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.point.cal" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmPointCalAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCalculateDeductedMoneyOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmPointCalAPIRequest) SetParamCalculateDeductedMoneyOpenReq(_paramCalculateDeductedMoneyOpenReq *CalculateDeductedMoneyOpenReq) error { + r._paramCalculateDeductedMoneyOpenReq = _paramCalculateDeductedMoneyOpenReq + r.Set("param_calculate_deducted_money_open_req", _paramCalculateDeductedMoneyOpenReq) + return nil +} + +// ParamCalculateDeductedMoneyOpenReq Getter +func (r AlibabaAlscCrmPointCalAPIRequest) GetParamCalculateDeductedMoneyOpenReq() *CalculateDeductedMoneyOpenReq { + return r._paramCalculateDeductedMoneyOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmPointCalAPIResponse.go b/model/alsc/AlibabaAlscCrmPointCalAPIResponse.go new file mode 100644 index 0000000000..e8aae63804 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmPointCalAPIResponse.go @@ -0,0 +1,30 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +计算积分可以抵扣的金额 API返回值 +alibaba.alsc.crm.point.cal + +计算积分可以抵扣的金额 +积分的抵扣为区间型 +如抵扣规则为100积分抵扣50元,则输入消费120积分的话,回返回消费100积分抵扣50元 + 这里为纯计算逻辑,不会校验用户是否有足够的可用积分进行抵扣 +*/ +type AlibabaAlscCrmPointCalAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmPointCalAPIResponseModel +} + +// 计算积分可以抵扣的金额 成功返回结果 +type AlibabaAlscCrmPointCalAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_point_cal_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmPointCalResponse.go b/model/alsc/AlibabaAlscCrmPointCalResponse.go deleted file mode 100644 index b8d236bf9b..0000000000 --- a/model/alsc/AlibabaAlscCrmPointCalResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -计算积分可以抵扣的金额 API返回值 -alibaba.alsc.crm.point.cal - -计算积分可以抵扣的金额 -积分的抵扣为区间型 -如抵扣规则为100积分抵扣50元,则输入消费120积分的话,回返回消费100积分抵扣50元 - 这里为纯计算逻辑,不会校验用户是否有足够的可用积分进行抵扣 -*/ -type AlibabaAlscCrmPointCalAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmPointCalResponse -} - -// 计算积分可以抵扣的金额 成功返回结果 -type AlibabaAlscCrmPointCalResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_point_cal_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmPointChkpntbypayAPIRequest.go b/model/alsc/AlibabaAlscCrmPointChkpntbypayAPIRequest.go new file mode 100644 index 0000000000..426cf2c48c --- /dev/null +++ b/model/alsc/AlibabaAlscCrmPointChkpntbypayAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +校验支付链路中的积分抵扣是否合法 API请求 +alibaba.alsc.crm.point.chkpntbypay + +校验支付链路中的积分抵扣是否合法 +*/ +type AlibabaAlscCrmPointChkpntbypayAPIRequest struct { + model.Params + // 入参 + _paramConsumePointByPayOpenReq *ConsumePointByPayOpenReq +} + +// 初始化AlibabaAlscCrmPointChkpntbypayAPIRequest对象 +func NewAlibabaAlscCrmPointChkpntbypayRequest() *AlibabaAlscCrmPointChkpntbypayAPIRequest{ + return &AlibabaAlscCrmPointChkpntbypayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmPointChkpntbypayAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.point.chkpntbypay" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmPointChkpntbypayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamConsumePointByPayOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmPointChkpntbypayAPIRequest) SetParamConsumePointByPayOpenReq(_paramConsumePointByPayOpenReq *ConsumePointByPayOpenReq) error { + r._paramConsumePointByPayOpenReq = _paramConsumePointByPayOpenReq + r.Set("param_consume_point_by_pay_open_req", _paramConsumePointByPayOpenReq) + return nil +} + +// ParamConsumePointByPayOpenReq Getter +func (r AlibabaAlscCrmPointChkpntbypayAPIRequest) GetParamConsumePointByPayOpenReq() *ConsumePointByPayOpenReq { + return r._paramConsumePointByPayOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmPointChkpntbypayAPIResponse.go b/model/alsc/AlibabaAlscCrmPointChkpntbypayAPIResponse.go new file mode 100644 index 0000000000..944060f0d9 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmPointChkpntbypayAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +校验支付链路中的积分抵扣是否合法 API返回值 +alibaba.alsc.crm.point.chkpntbypay + +校验支付链路中的积分抵扣是否合法 +*/ +type AlibabaAlscCrmPointChkpntbypayAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmPointChkpntbypayAPIResponseModel +} + +// 校验支付链路中的积分抵扣是否合法 成功返回结果 +type AlibabaAlscCrmPointChkpntbypayAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_point_chkpntbypay_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmPointChkpntbypayResponse.go b/model/alsc/AlibabaAlscCrmPointChkpntbypayResponse.go deleted file mode 100644 index 41e2ad6878..0000000000 --- a/model/alsc/AlibabaAlscCrmPointChkpntbypayResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -校验支付链路中的积分抵扣是否合法 API返回值 -alibaba.alsc.crm.point.chkpntbypay - -校验支付链路中的积分抵扣是否合法 -*/ -type AlibabaAlscCrmPointChkpntbypayAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmPointChkpntbypayResponse -} - -// 校验支付链路中的积分抵扣是否合法 成功返回结果 -type AlibabaAlscCrmPointChkpntbypayResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_point_chkpntbypay_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmPointConsumepointAPIRequest.go b/model/alsc/AlibabaAlscCrmPointConsumepointAPIRequest.go new file mode 100644 index 0000000000..647b5d466a --- /dev/null +++ b/model/alsc/AlibabaAlscCrmPointConsumepointAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +积分抵现 API请求 +alibaba.alsc.crm.point.consumepoint + +积分抵现 +*/ +type AlibabaAlscCrmPointConsumepointAPIRequest struct { + model.Params + // 入参 + _paramConsumePointOpenReq *ConsumePointOpenReq +} + +// 初始化AlibabaAlscCrmPointConsumepointAPIRequest对象 +func NewAlibabaAlscCrmPointConsumepointRequest() *AlibabaAlscCrmPointConsumepointAPIRequest{ + return &AlibabaAlscCrmPointConsumepointAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmPointConsumepointAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.point.consumepoint" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmPointConsumepointAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamConsumePointOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmPointConsumepointAPIRequest) SetParamConsumePointOpenReq(_paramConsumePointOpenReq *ConsumePointOpenReq) error { + r._paramConsumePointOpenReq = _paramConsumePointOpenReq + r.Set("param_consume_point_open_req", _paramConsumePointOpenReq) + return nil +} + +// ParamConsumePointOpenReq Getter +func (r AlibabaAlscCrmPointConsumepointAPIRequest) GetParamConsumePointOpenReq() *ConsumePointOpenReq { + return r._paramConsumePointOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmPointConsumepointAPIResponse.go b/model/alsc/AlibabaAlscCrmPointConsumepointAPIResponse.go new file mode 100644 index 0000000000..aa6729a0d3 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmPointConsumepointAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +积分抵现 API返回值 +alibaba.alsc.crm.point.consumepoint + +积分抵现 +*/ +type AlibabaAlscCrmPointConsumepointAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmPointConsumepointAPIResponseModel +} + +// 积分抵现 成功返回结果 +type AlibabaAlscCrmPointConsumepointAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_point_consumepoint_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmPointConsumepointResponse.go b/model/alsc/AlibabaAlscCrmPointConsumepointResponse.go deleted file mode 100644 index b1402988bb..0000000000 --- a/model/alsc/AlibabaAlscCrmPointConsumepointResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -积分抵现 API返回值 -alibaba.alsc.crm.point.consumepoint - -积分抵现 -*/ -type AlibabaAlscCrmPointConsumepointAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmPointConsumepointResponse -} - -// 积分抵现 成功返回结果 -type AlibabaAlscCrmPointConsumepointResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_point_consumepoint_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmPointExtraConsumeAPIRequest.go b/model/alsc/AlibabaAlscCrmPointExtraConsumeAPIRequest.go new file mode 100644 index 0000000000..3a8a04e6bc --- /dev/null +++ b/model/alsc/AlibabaAlscCrmPointExtraConsumeAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +积分补扣 API请求 +alibaba.alsc.crm.point.extra.consume + +积分补扣 +*/ +type AlibabaAlscCrmPointExtraConsumeAPIRequest struct { + model.Params + // 入参 + _paramExtraConsumePointOpenReq *ExtraConsumePointOpenReq +} + +// 初始化AlibabaAlscCrmPointExtraConsumeAPIRequest对象 +func NewAlibabaAlscCrmPointExtraConsumeRequest() *AlibabaAlscCrmPointExtraConsumeAPIRequest{ + return &AlibabaAlscCrmPointExtraConsumeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmPointExtraConsumeAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.point.extra.consume" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmPointExtraConsumeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamExtraConsumePointOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmPointExtraConsumeAPIRequest) SetParamExtraConsumePointOpenReq(_paramExtraConsumePointOpenReq *ExtraConsumePointOpenReq) error { + r._paramExtraConsumePointOpenReq = _paramExtraConsumePointOpenReq + r.Set("param_extra_consume_point_open_req", _paramExtraConsumePointOpenReq) + return nil +} + +// ParamExtraConsumePointOpenReq Getter +func (r AlibabaAlscCrmPointExtraConsumeAPIRequest) GetParamExtraConsumePointOpenReq() *ExtraConsumePointOpenReq { + return r._paramExtraConsumePointOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmPointExtraConsumeAPIResponse.go b/model/alsc/AlibabaAlscCrmPointExtraConsumeAPIResponse.go new file mode 100644 index 0000000000..878b88e4f3 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmPointExtraConsumeAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +积分补扣 API返回值 +alibaba.alsc.crm.point.extra.consume + +积分补扣 +*/ +type AlibabaAlscCrmPointExtraConsumeAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmPointExtraConsumeAPIResponseModel +} + +// 积分补扣 成功返回结果 +type AlibabaAlscCrmPointExtraConsumeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_point_extra_consume_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmPointExtraConsumeResponse.go b/model/alsc/AlibabaAlscCrmPointExtraConsumeResponse.go deleted file mode 100644 index 474385a9c7..0000000000 --- a/model/alsc/AlibabaAlscCrmPointExtraConsumeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -积分补扣 API返回值 -alibaba.alsc.crm.point.extra.consume - -积分补扣 -*/ -type AlibabaAlscCrmPointExtraConsumeAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmPointExtraConsumeResponse -} - -// 积分补扣 成功返回结果 -type AlibabaAlscCrmPointExtraConsumeResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_point_extra_consume_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmPointExtrachargeAPIRequest.go b/model/alsc/AlibabaAlscCrmPointExtrachargeAPIRequest.go new file mode 100644 index 0000000000..1a8303e251 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmPointExtrachargeAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +积分补录 API请求 +alibaba.alsc.crm.point.extracharge + +积分补录 +*/ +type AlibabaAlscCrmPointExtrachargeAPIRequest struct { + model.Params + // 入参 + _paramExtraChargePointOpenReq *ExtraChargePointOpenReq +} + +// 初始化AlibabaAlscCrmPointExtrachargeAPIRequest对象 +func NewAlibabaAlscCrmPointExtrachargeRequest() *AlibabaAlscCrmPointExtrachargeAPIRequest{ + return &AlibabaAlscCrmPointExtrachargeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmPointExtrachargeAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.point.extracharge" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmPointExtrachargeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamExtraChargePointOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmPointExtrachargeAPIRequest) SetParamExtraChargePointOpenReq(_paramExtraChargePointOpenReq *ExtraChargePointOpenReq) error { + r._paramExtraChargePointOpenReq = _paramExtraChargePointOpenReq + r.Set("param_extra_charge_point_open_req", _paramExtraChargePointOpenReq) + return nil +} + +// ParamExtraChargePointOpenReq Getter +func (r AlibabaAlscCrmPointExtrachargeAPIRequest) GetParamExtraChargePointOpenReq() *ExtraChargePointOpenReq { + return r._paramExtraChargePointOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmPointExtrachargeAPIResponse.go b/model/alsc/AlibabaAlscCrmPointExtrachargeAPIResponse.go new file mode 100644 index 0000000000..6ac677df39 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmPointExtrachargeAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +积分补录 API返回值 +alibaba.alsc.crm.point.extracharge + +积分补录 +*/ +type AlibabaAlscCrmPointExtrachargeAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmPointExtrachargeAPIResponseModel +} + +// 积分补录 成功返回结果 +type AlibabaAlscCrmPointExtrachargeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_point_extracharge_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmPointExtrachargeResponse.go b/model/alsc/AlibabaAlscCrmPointExtrachargeResponse.go deleted file mode 100644 index 6a178ab40e..0000000000 --- a/model/alsc/AlibabaAlscCrmPointExtrachargeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -积分补录 API返回值 -alibaba.alsc.crm.point.extracharge - -积分补录 -*/ -type AlibabaAlscCrmPointExtrachargeAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmPointExtrachargeResponse -} - -// 积分补录 成功返回结果 -type AlibabaAlscCrmPointExtrachargeResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_point_extracharge_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmPointQuerypointflowAPIRequest.go b/model/alsc/AlibabaAlscCrmPointQuerypointflowAPIRequest.go new file mode 100644 index 0000000000..d3cda97ff9 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmPointQuerypointflowAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询积分流水 API请求 +alibaba.alsc.crm.point.querypointflow + +分页查询积分流水 +*/ +type AlibabaAlscCrmPointQuerypointflowAPIRequest struct { + model.Params + // 入参 + _paramPageQueryPointFlowOpenReq *PageQueryPointFlowOpenReq +} + +// 初始化AlibabaAlscCrmPointQuerypointflowAPIRequest对象 +func NewAlibabaAlscCrmPointQuerypointflowRequest() *AlibabaAlscCrmPointQuerypointflowAPIRequest{ + return &AlibabaAlscCrmPointQuerypointflowAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmPointQuerypointflowAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.point.querypointflow" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmPointQuerypointflowAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamPageQueryPointFlowOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmPointQuerypointflowAPIRequest) SetParamPageQueryPointFlowOpenReq(_paramPageQueryPointFlowOpenReq *PageQueryPointFlowOpenReq) error { + r._paramPageQueryPointFlowOpenReq = _paramPageQueryPointFlowOpenReq + r.Set("param_page_query_point_flow_open_req", _paramPageQueryPointFlowOpenReq) + return nil +} + +// ParamPageQueryPointFlowOpenReq Getter +func (r AlibabaAlscCrmPointQuerypointflowAPIRequest) GetParamPageQueryPointFlowOpenReq() *PageQueryPointFlowOpenReq { + return r._paramPageQueryPointFlowOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmPointQuerypointflowAPIResponse.go b/model/alsc/AlibabaAlscCrmPointQuerypointflowAPIResponse.go new file mode 100644 index 0000000000..d4954ca7bf --- /dev/null +++ b/model/alsc/AlibabaAlscCrmPointQuerypointflowAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询积分流水 API返回值 +alibaba.alsc.crm.point.querypointflow + +分页查询积分流水 +*/ +type AlibabaAlscCrmPointQuerypointflowAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmPointQuerypointflowAPIResponseModel +} + +// 分页查询积分流水 成功返回结果 +type AlibabaAlscCrmPointQuerypointflowAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_point_querypointflow_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分页返回模型 + Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmPointQuerypointflowResponse.go b/model/alsc/AlibabaAlscCrmPointQuerypointflowResponse.go deleted file mode 100644 index e622e18fb1..0000000000 --- a/model/alsc/AlibabaAlscCrmPointQuerypointflowResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页查询积分流水 API返回值 -alibaba.alsc.crm.point.querypointflow - -分页查询积分流水 -*/ -type AlibabaAlscCrmPointQuerypointflowAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmPointQuerypointflowResponse -} - -// 分页查询积分流水 成功返回结果 -type AlibabaAlscCrmPointQuerypointflowResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_point_querypointflow_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分页返回模型 - Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmPointReversepointAPIRequest.go b/model/alsc/AlibabaAlscCrmPointReversepointAPIRequest.go new file mode 100644 index 0000000000..46bfa08c52 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmPointReversepointAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +积分消费回退 API请求 +alibaba.alsc.crm.point.reversepoint + +积分消费回退 +*/ +type AlibabaAlscCrmPointReversepointAPIRequest struct { + model.Params + // 入参 + _paramReverseConsumePointOpenReq *ReverseConsumePointOpenReq +} + +// 初始化AlibabaAlscCrmPointReversepointAPIRequest对象 +func NewAlibabaAlscCrmPointReversepointRequest() *AlibabaAlscCrmPointReversepointAPIRequest{ + return &AlibabaAlscCrmPointReversepointAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmPointReversepointAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.point.reversepoint" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmPointReversepointAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamReverseConsumePointOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmPointReversepointAPIRequest) SetParamReverseConsumePointOpenReq(_paramReverseConsumePointOpenReq *ReverseConsumePointOpenReq) error { + r._paramReverseConsumePointOpenReq = _paramReverseConsumePointOpenReq + r.Set("param_reverse_consume_point_open_req", _paramReverseConsumePointOpenReq) + return nil +} + +// ParamReverseConsumePointOpenReq Getter +func (r AlibabaAlscCrmPointReversepointAPIRequest) GetParamReverseConsumePointOpenReq() *ReverseConsumePointOpenReq { + return r._paramReverseConsumePointOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmPointReversepointAPIResponse.go b/model/alsc/AlibabaAlscCrmPointReversepointAPIResponse.go new file mode 100644 index 0000000000..18c7517b0d --- /dev/null +++ b/model/alsc/AlibabaAlscCrmPointReversepointAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +积分消费回退 API返回值 +alibaba.alsc.crm.point.reversepoint + +积分消费回退 +*/ +type AlibabaAlscCrmPointReversepointAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmPointReversepointAPIResponseModel +} + +// 积分消费回退 成功返回结果 +type AlibabaAlscCrmPointReversepointAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_point_reversepoint_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmPointReversepointResponse.go b/model/alsc/AlibabaAlscCrmPointReversepointResponse.go deleted file mode 100644 index 915caf7656..0000000000 --- a/model/alsc/AlibabaAlscCrmPointReversepointResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -积分消费回退 API返回值 -alibaba.alsc.crm.point.reversepoint - -积分消费回退 -*/ -type AlibabaAlscCrmPointReversepointAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmPointReversepointResponse -} - -// 积分消费回退 成功返回结果 -type AlibabaAlscCrmPointReversepointResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_point_reversepoint_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmPointRuleGetAPIRequest.go b/model/alsc/AlibabaAlscCrmPointRuleGetAPIRequest.go new file mode 100644 index 0000000000..b410743403 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmPointRuleGetAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询积分规则 API请求 +alibaba.alsc.crm.point.rule.get + +新增积分规则查询接口,传入includeLogicalDelete和maxUpdateTime时走同步下行逻辑不然则走普通积分规则查询接口 +*/ +type AlibabaAlscCrmPointRuleGetAPIRequest struct { + model.Params + // 入参 + _paramQueryPointRuleOpenReq *QueryPointRuleOpenReq +} + +// 初始化AlibabaAlscCrmPointRuleGetAPIRequest对象 +func NewAlibabaAlscCrmPointRuleGetRequest() *AlibabaAlscCrmPointRuleGetAPIRequest{ + return &AlibabaAlscCrmPointRuleGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmPointRuleGetAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.point.rule.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmPointRuleGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamQueryPointRuleOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmPointRuleGetAPIRequest) SetParamQueryPointRuleOpenReq(_paramQueryPointRuleOpenReq *QueryPointRuleOpenReq) error { + r._paramQueryPointRuleOpenReq = _paramQueryPointRuleOpenReq + r.Set("param_query_point_rule_open_req", _paramQueryPointRuleOpenReq) + return nil +} + +// ParamQueryPointRuleOpenReq Getter +func (r AlibabaAlscCrmPointRuleGetAPIRequest) GetParamQueryPointRuleOpenReq() *QueryPointRuleOpenReq { + return r._paramQueryPointRuleOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmPointRuleGetAPIResponse.go b/model/alsc/AlibabaAlscCrmPointRuleGetAPIResponse.go new file mode 100644 index 0000000000..44ed4a08c9 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmPointRuleGetAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询积分规则 API返回值 +alibaba.alsc.crm.point.rule.get + +新增积分规则查询接口,传入includeLogicalDelete和maxUpdateTime时走同步下行逻辑不然则走普通积分规则查询接口 +*/ +type AlibabaAlscCrmPointRuleGetAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmPointRuleGetAPIResponseModel +} + +// 查询积分规则 成功返回结果 +type AlibabaAlscCrmPointRuleGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_point_rule_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmPointRuleGetResponse.go b/model/alsc/AlibabaAlscCrmPointRuleGetResponse.go deleted file mode 100644 index 9bcfcefed5..0000000000 --- a/model/alsc/AlibabaAlscCrmPointRuleGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询积分规则 API返回值 -alibaba.alsc.crm.point.rule.get - -新增积分规则查询接口,传入includeLogicalDelete和maxUpdateTime时走同步下行逻辑不然则走普通积分规则查询接口 -*/ -type AlibabaAlscCrmPointRuleGetAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmPointRuleGetResponse -} - -// 查询积分规则 成功返回结果 -type AlibabaAlscCrmPointRuleGetResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_point_rule_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmPromotionListAPIRequest.go b/model/alsc/AlibabaAlscCrmPromotionListAPIRequest.go new file mode 100644 index 0000000000..710b36a45b --- /dev/null +++ b/model/alsc/AlibabaAlscCrmPromotionListAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取促销规则列表 API请求 +alibaba.alsc.crm.promotion.list + +获取品牌的促销规则列表 +*/ +type AlibabaAlscCrmPromotionListAPIRequest struct { + model.Params + // 获取促销规则请求参数 + _promotionFacadeOpenReq *PromotionFacadeOpenReq +} + +// 初始化AlibabaAlscCrmPromotionListAPIRequest对象 +func NewAlibabaAlscCrmPromotionListRequest() *AlibabaAlscCrmPromotionListAPIRequest{ + return &AlibabaAlscCrmPromotionListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmPromotionListAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.promotion.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmPromotionListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PromotionFacadeOpenReq Setter +// 获取促销规则请求参数 +func (r *AlibabaAlscCrmPromotionListAPIRequest) SetPromotionFacadeOpenReq(_promotionFacadeOpenReq *PromotionFacadeOpenReq) error { + r._promotionFacadeOpenReq = _promotionFacadeOpenReq + r.Set("promotion_facade_open_req", _promotionFacadeOpenReq) + return nil +} + +// PromotionFacadeOpenReq Getter +func (r AlibabaAlscCrmPromotionListAPIRequest) GetPromotionFacadeOpenReq() *PromotionFacadeOpenReq { + return r._promotionFacadeOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmPromotionListAPIResponse.go b/model/alsc/AlibabaAlscCrmPromotionListAPIResponse.go new file mode 100644 index 0000000000..688085e6f5 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmPromotionListAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取促销规则列表 API返回值 +alibaba.alsc.crm.promotion.list + +获取品牌的促销规则列表 +*/ +type AlibabaAlscCrmPromotionListAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmPromotionListAPIResponseModel +} + +// 获取促销规则列表 成功返回结果 +type AlibabaAlscCrmPromotionListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_promotion_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分页返回模型 + Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmPromotionListResponse.go b/model/alsc/AlibabaAlscCrmPromotionListResponse.go deleted file mode 100644 index 0a0d4de774..0000000000 --- a/model/alsc/AlibabaAlscCrmPromotionListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取促销规则列表 API返回值 -alibaba.alsc.crm.promotion.list - -获取品牌的促销规则列表 -*/ -type AlibabaAlscCrmPromotionListAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmPromotionListResponse -} - -// 获取促销规则列表 成功返回结果 -type AlibabaAlscCrmPromotionListResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_promotion_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分页返回模型 - Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmRechargeAccountFlowdetailGetAPIRequest.go b/model/alsc/AlibabaAlscCrmRechargeAccountFlowdetailGetAPIRequest.go new file mode 100644 index 0000000000..d64bf93639 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeAccountFlowdetailGetAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +储值流水详细 API请求 +alibaba.alsc.crm.recharge.account.flowdetail.get + +查询储值流水详细接口 +*/ +type AlibabaAlscCrmRechargeAccountFlowdetailGetAPIRequest struct { + model.Params + // 入参 + _paramQueryRechargeAccountFlowOpenReq *QueryRechargeAccountFlowOpenReq +} + +// 初始化AlibabaAlscCrmRechargeAccountFlowdetailGetAPIRequest对象 +func NewAlibabaAlscCrmRechargeAccountFlowdetailGetRequest() *AlibabaAlscCrmRechargeAccountFlowdetailGetAPIRequest{ + return &AlibabaAlscCrmRechargeAccountFlowdetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmRechargeAccountFlowdetailGetAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.recharge.account.flowdetail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmRechargeAccountFlowdetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamQueryRechargeAccountFlowOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmRechargeAccountFlowdetailGetAPIRequest) SetParamQueryRechargeAccountFlowOpenReq(_paramQueryRechargeAccountFlowOpenReq *QueryRechargeAccountFlowOpenReq) error { + r._paramQueryRechargeAccountFlowOpenReq = _paramQueryRechargeAccountFlowOpenReq + r.Set("param_query_recharge_account_flow_open_req", _paramQueryRechargeAccountFlowOpenReq) + return nil +} + +// ParamQueryRechargeAccountFlowOpenReq Getter +func (r AlibabaAlscCrmRechargeAccountFlowdetailGetAPIRequest) GetParamQueryRechargeAccountFlowOpenReq() *QueryRechargeAccountFlowOpenReq { + return r._paramQueryRechargeAccountFlowOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmRechargeAccountFlowdetailGetAPIResponse.go b/model/alsc/AlibabaAlscCrmRechargeAccountFlowdetailGetAPIResponse.go new file mode 100644 index 0000000000..e1fa5b00cb --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeAccountFlowdetailGetAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +储值流水详细 API返回值 +alibaba.alsc.crm.recharge.account.flowdetail.get + +查询储值流水详细接口 +*/ +type AlibabaAlscCrmRechargeAccountFlowdetailGetAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmRechargeAccountFlowdetailGetAPIResponseModel +} + +// 储值流水详细 成功返回结果 +type AlibabaAlscCrmRechargeAccountFlowdetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_account_flowdetail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmRechargeAccountFlowdetailGetResponse.go b/model/alsc/AlibabaAlscCrmRechargeAccountFlowdetailGetResponse.go deleted file mode 100644 index b0b439cff8..0000000000 --- a/model/alsc/AlibabaAlscCrmRechargeAccountFlowdetailGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -储值流水详细 API返回值 -alibaba.alsc.crm.recharge.account.flowdetail.get - -查询储值流水详细接口 -*/ -type AlibabaAlscCrmRechargeAccountFlowdetailGetAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmRechargeAccountFlowdetailGetResponse -} - -// 储值流水详细 成功返回结果 -type AlibabaAlscCrmRechargeAccountFlowdetailGetResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_account_flowdetail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmRechargeAccountGetAPIRequest.go b/model/alsc/AlibabaAlscCrmRechargeAccountGetAPIRequest.go new file mode 100644 index 0000000000..e8e90d55a4 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeAccountGetAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询储值账户信息 API请求 +alibaba.alsc.crm.recharge.account.get + +查询储值账户信息接口 +*/ +type AlibabaAlscCrmRechargeAccountGetAPIRequest struct { + model.Params + // 入参 + _paramQueryRechargeAccountOpenReq *QueryRechargeAccountOpenReq +} + +// 初始化AlibabaAlscCrmRechargeAccountGetAPIRequest对象 +func NewAlibabaAlscCrmRechargeAccountGetRequest() *AlibabaAlscCrmRechargeAccountGetAPIRequest{ + return &AlibabaAlscCrmRechargeAccountGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmRechargeAccountGetAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.recharge.account.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmRechargeAccountGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamQueryRechargeAccountOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmRechargeAccountGetAPIRequest) SetParamQueryRechargeAccountOpenReq(_paramQueryRechargeAccountOpenReq *QueryRechargeAccountOpenReq) error { + r._paramQueryRechargeAccountOpenReq = _paramQueryRechargeAccountOpenReq + r.Set("param_query_recharge_account_open_req", _paramQueryRechargeAccountOpenReq) + return nil +} + +// ParamQueryRechargeAccountOpenReq Getter +func (r AlibabaAlscCrmRechargeAccountGetAPIRequest) GetParamQueryRechargeAccountOpenReq() *QueryRechargeAccountOpenReq { + return r._paramQueryRechargeAccountOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmRechargeAccountGetAPIResponse.go b/model/alsc/AlibabaAlscCrmRechargeAccountGetAPIResponse.go new file mode 100644 index 0000000000..15d9df9182 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeAccountGetAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询储值账户信息 API返回值 +alibaba.alsc.crm.recharge.account.get + +查询储值账户信息接口 +*/ +type AlibabaAlscCrmRechargeAccountGetAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmRechargeAccountGetAPIResponseModel +} + +// 查询储值账户信息 成功返回结果 +type AlibabaAlscCrmRechargeAccountGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_account_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmRechargeAccountGetResponse.go b/model/alsc/AlibabaAlscCrmRechargeAccountGetResponse.go deleted file mode 100644 index 5e11550d13..0000000000 --- a/model/alsc/AlibabaAlscCrmRechargeAccountGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询储值账户信息 API返回值 -alibaba.alsc.crm.recharge.account.get - -查询储值账户信息接口 -*/ -type AlibabaAlscCrmRechargeAccountGetAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmRechargeAccountGetResponse -} - -// 查询储值账户信息 成功返回结果 -type AlibabaAlscCrmRechargeAccountGetResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_account_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmRechargeAccountflowsGetAPIRequest.go b/model/alsc/AlibabaAlscCrmRechargeAccountflowsGetAPIRequest.go new file mode 100644 index 0000000000..77c40ce5fe --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeAccountflowsGetAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询储值流水 API请求 +alibaba.alsc.crm.recharge.accountflows.get + +增加分页查询储值流水接口 +*/ +type AlibabaAlscCrmRechargeAccountflowsGetAPIRequest struct { + model.Params + // 入参 + _paramPageQueryAccountFlowsOpenReq *PageQueryAccountFlowsOpenReq +} + +// 初始化AlibabaAlscCrmRechargeAccountflowsGetAPIRequest对象 +func NewAlibabaAlscCrmRechargeAccountflowsGetRequest() *AlibabaAlscCrmRechargeAccountflowsGetAPIRequest{ + return &AlibabaAlscCrmRechargeAccountflowsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmRechargeAccountflowsGetAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.recharge.accountflows.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmRechargeAccountflowsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamPageQueryAccountFlowsOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmRechargeAccountflowsGetAPIRequest) SetParamPageQueryAccountFlowsOpenReq(_paramPageQueryAccountFlowsOpenReq *PageQueryAccountFlowsOpenReq) error { + r._paramPageQueryAccountFlowsOpenReq = _paramPageQueryAccountFlowsOpenReq + r.Set("param_page_query_account_flows_open_req", _paramPageQueryAccountFlowsOpenReq) + return nil +} + +// ParamPageQueryAccountFlowsOpenReq Getter +func (r AlibabaAlscCrmRechargeAccountflowsGetAPIRequest) GetParamPageQueryAccountFlowsOpenReq() *PageQueryAccountFlowsOpenReq { + return r._paramPageQueryAccountFlowsOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmRechargeAccountflowsGetAPIResponse.go b/model/alsc/AlibabaAlscCrmRechargeAccountflowsGetAPIResponse.go new file mode 100644 index 0000000000..5d28f97806 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeAccountflowsGetAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询储值流水 API返回值 +alibaba.alsc.crm.recharge.accountflows.get + +增加分页查询储值流水接口 +*/ +type AlibabaAlscCrmRechargeAccountflowsGetAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmRechargeAccountflowsGetAPIResponseModel +} + +// 分页查询储值流水 成功返回结果 +type AlibabaAlscCrmRechargeAccountflowsGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_accountflows_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分页返回模型 + Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmRechargeAccountflowsGetResponse.go b/model/alsc/AlibabaAlscCrmRechargeAccountflowsGetResponse.go deleted file mode 100644 index 10928ed8c9..0000000000 --- a/model/alsc/AlibabaAlscCrmRechargeAccountflowsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页查询储值流水 API返回值 -alibaba.alsc.crm.recharge.accountflows.get - -增加分页查询储值流水接口 -*/ -type AlibabaAlscCrmRechargeAccountflowsGetAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmRechargeAccountflowsGetResponse -} - -// 分页查询储值流水 成功返回结果 -type AlibabaAlscCrmRechargeAccountflowsGetResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_accountflows_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分页返回模型 - Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmRechargeChargeUpdateAPIRequest.go b/model/alsc/AlibabaAlscCrmRechargeChargeUpdateAPIRequest.go new file mode 100644 index 0000000000..c8ea536313 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeChargeUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +储值充值 API请求 +alibaba.alsc.crm.recharge.charge.update + +顾客储值账户充值 +*/ +type AlibabaAlscCrmRechargeChargeUpdateAPIRequest struct { + model.Params + // 入参 + _paramRechargeOpenReq *RechargeOpenReq +} + +// 初始化AlibabaAlscCrmRechargeChargeUpdateAPIRequest对象 +func NewAlibabaAlscCrmRechargeChargeUpdateRequest() *AlibabaAlscCrmRechargeChargeUpdateAPIRequest{ + return &AlibabaAlscCrmRechargeChargeUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmRechargeChargeUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.recharge.charge.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmRechargeChargeUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamRechargeOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmRechargeChargeUpdateAPIRequest) SetParamRechargeOpenReq(_paramRechargeOpenReq *RechargeOpenReq) error { + r._paramRechargeOpenReq = _paramRechargeOpenReq + r.Set("param_recharge_open_req", _paramRechargeOpenReq) + return nil +} + +// ParamRechargeOpenReq Getter +func (r AlibabaAlscCrmRechargeChargeUpdateAPIRequest) GetParamRechargeOpenReq() *RechargeOpenReq { + return r._paramRechargeOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmRechargeChargeUpdateAPIResponse.go b/model/alsc/AlibabaAlscCrmRechargeChargeUpdateAPIResponse.go new file mode 100644 index 0000000000..53fff08f7c --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeChargeUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +储值充值 API返回值 +alibaba.alsc.crm.recharge.charge.update + +顾客储值账户充值 +*/ +type AlibabaAlscCrmRechargeChargeUpdateAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmRechargeChargeUpdateAPIResponseModel +} + +// 储值充值 成功返回结果 +type AlibabaAlscCrmRechargeChargeUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_charge_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmRechargeChargeUpdateResponse.go b/model/alsc/AlibabaAlscCrmRechargeChargeUpdateResponse.go deleted file mode 100644 index 407eae7838..0000000000 --- a/model/alsc/AlibabaAlscCrmRechargeChargeUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -储值充值 API返回值 -alibaba.alsc.crm.recharge.charge.update - -顾客储值账户充值 -*/ -type AlibabaAlscCrmRechargeChargeUpdateAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmRechargeChargeUpdateResponse -} - -// 储值充值 成功返回结果 -type AlibabaAlscCrmRechargeChargeUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_charge_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmRechargeChargeprecheckGetAPIRequest.go b/model/alsc/AlibabaAlscCrmRechargeChargeprecheckGetAPIRequest.go new file mode 100644 index 0000000000..28247a0914 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeChargeprecheckGetAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +储值账户充值前校验 API请求 +alibaba.alsc.crm.recharge.chargeprecheck.get + +储值账户充值前校验接口 +*/ +type AlibabaAlscCrmRechargeChargeprecheckGetAPIRequest struct { + model.Params + // 入参 + _paramChargePreCheckOpenReq *ChargePreCheckOpenReq +} + +// 初始化AlibabaAlscCrmRechargeChargeprecheckGetAPIRequest对象 +func NewAlibabaAlscCrmRechargeChargeprecheckGetRequest() *AlibabaAlscCrmRechargeChargeprecheckGetAPIRequest{ + return &AlibabaAlscCrmRechargeChargeprecheckGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmRechargeChargeprecheckGetAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.recharge.chargeprecheck.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmRechargeChargeprecheckGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamChargePreCheckOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmRechargeChargeprecheckGetAPIRequest) SetParamChargePreCheckOpenReq(_paramChargePreCheckOpenReq *ChargePreCheckOpenReq) error { + r._paramChargePreCheckOpenReq = _paramChargePreCheckOpenReq + r.Set("param_charge_pre_check_open_req", _paramChargePreCheckOpenReq) + return nil +} + +// ParamChargePreCheckOpenReq Getter +func (r AlibabaAlscCrmRechargeChargeprecheckGetAPIRequest) GetParamChargePreCheckOpenReq() *ChargePreCheckOpenReq { + return r._paramChargePreCheckOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmRechargeChargeprecheckGetAPIResponse.go b/model/alsc/AlibabaAlscCrmRechargeChargeprecheckGetAPIResponse.go new file mode 100644 index 0000000000..11918f4bb1 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeChargeprecheckGetAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +储值账户充值前校验 API返回值 +alibaba.alsc.crm.recharge.chargeprecheck.get + +储值账户充值前校验接口 +*/ +type AlibabaAlscCrmRechargeChargeprecheckGetAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmRechargeChargeprecheckGetAPIResponseModel +} + +// 储值账户充值前校验 成功返回结果 +type AlibabaAlscCrmRechargeChargeprecheckGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_chargeprecheck_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmRechargeChargeprecheckGetResponse.go b/model/alsc/AlibabaAlscCrmRechargeChargeprecheckGetResponse.go deleted file mode 100644 index 97c5be0903..0000000000 --- a/model/alsc/AlibabaAlscCrmRechargeChargeprecheckGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -储值账户充值前校验 API返回值 -alibaba.alsc.crm.recharge.chargeprecheck.get - -储值账户充值前校验接口 -*/ -type AlibabaAlscCrmRechargeChargeprecheckGetAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmRechargeChargeprecheckGetResponse -} - -// 储值账户充值前校验 成功返回结果 -type AlibabaAlscCrmRechargeChargeprecheckGetResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_chargeprecheck_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmRechargeDedutUpdateAPIRequest.go b/model/alsc/AlibabaAlscCrmRechargeDedutUpdateAPIRequest.go new file mode 100644 index 0000000000..498b85dcc3 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeDedutUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +储值消费 API请求 +alibaba.alsc.crm.recharge.dedut.update + +增加储值消费接口 +*/ +type AlibabaAlscCrmRechargeDedutUpdateAPIRequest struct { + model.Params + // 入参 + _paramDedutOpenReq *DedutOpenReq +} + +// 初始化AlibabaAlscCrmRechargeDedutUpdateAPIRequest对象 +func NewAlibabaAlscCrmRechargeDedutUpdateRequest() *AlibabaAlscCrmRechargeDedutUpdateAPIRequest{ + return &AlibabaAlscCrmRechargeDedutUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmRechargeDedutUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.recharge.dedut.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmRechargeDedutUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamDedutOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmRechargeDedutUpdateAPIRequest) SetParamDedutOpenReq(_paramDedutOpenReq *DedutOpenReq) error { + r._paramDedutOpenReq = _paramDedutOpenReq + r.Set("param_dedut_open_req", _paramDedutOpenReq) + return nil +} + +// ParamDedutOpenReq Getter +func (r AlibabaAlscCrmRechargeDedutUpdateAPIRequest) GetParamDedutOpenReq() *DedutOpenReq { + return r._paramDedutOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmRechargeDedutUpdateAPIResponse.go b/model/alsc/AlibabaAlscCrmRechargeDedutUpdateAPIResponse.go new file mode 100644 index 0000000000..659812b22c --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeDedutUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +储值消费 API返回值 +alibaba.alsc.crm.recharge.dedut.update + +增加储值消费接口 +*/ +type AlibabaAlscCrmRechargeDedutUpdateAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmRechargeDedutUpdateAPIResponseModel +} + +// 储值消费 成功返回结果 +type AlibabaAlscCrmRechargeDedutUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_dedut_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmRechargeDedutUpdateResponse.go b/model/alsc/AlibabaAlscCrmRechargeDedutUpdateResponse.go deleted file mode 100644 index ee319fdb9d..0000000000 --- a/model/alsc/AlibabaAlscCrmRechargeDedutUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -储值消费 API返回值 -alibaba.alsc.crm.recharge.dedut.update - -增加储值消费接口 -*/ -type AlibabaAlscCrmRechargeDedutUpdateAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmRechargeDedutUpdateResponse -} - -// 储值消费 成功返回结果 -type AlibabaAlscCrmRechargeDedutUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_dedut_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmRechargeDedutprecheckGetAPIRequest.go b/model/alsc/AlibabaAlscCrmRechargeDedutprecheckGetAPIRequest.go new file mode 100644 index 0000000000..b4c9c657fd --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeDedutprecheckGetAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +储值核销预先校验 API请求 +alibaba.alsc.crm.recharge.dedutprecheck.get + +储值核销预先校验接口 +*/ +type AlibabaAlscCrmRechargeDedutprecheckGetAPIRequest struct { + model.Params + // 入参 + _paramDeductPreCheckOpenReq *DeductPreCheckOpenReq +} + +// 初始化AlibabaAlscCrmRechargeDedutprecheckGetAPIRequest对象 +func NewAlibabaAlscCrmRechargeDedutprecheckGetRequest() *AlibabaAlscCrmRechargeDedutprecheckGetAPIRequest{ + return &AlibabaAlscCrmRechargeDedutprecheckGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmRechargeDedutprecheckGetAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.recharge.dedutprecheck.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmRechargeDedutprecheckGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamDeductPreCheckOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmRechargeDedutprecheckGetAPIRequest) SetParamDeductPreCheckOpenReq(_paramDeductPreCheckOpenReq *DeductPreCheckOpenReq) error { + r._paramDeductPreCheckOpenReq = _paramDeductPreCheckOpenReq + r.Set("param_deduct_pre_check_open_req", _paramDeductPreCheckOpenReq) + return nil +} + +// ParamDeductPreCheckOpenReq Getter +func (r AlibabaAlscCrmRechargeDedutprecheckGetAPIRequest) GetParamDeductPreCheckOpenReq() *DeductPreCheckOpenReq { + return r._paramDeductPreCheckOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmRechargeDedutprecheckGetAPIResponse.go b/model/alsc/AlibabaAlscCrmRechargeDedutprecheckGetAPIResponse.go new file mode 100644 index 0000000000..07f7a9ccb7 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeDedutprecheckGetAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +储值核销预先校验 API返回值 +alibaba.alsc.crm.recharge.dedutprecheck.get + +储值核销预先校验接口 +*/ +type AlibabaAlscCrmRechargeDedutprecheckGetAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmRechargeDedutprecheckGetAPIResponseModel +} + +// 储值核销预先校验 成功返回结果 +type AlibabaAlscCrmRechargeDedutprecheckGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_dedutprecheck_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmRechargeDedutprecheckGetResponse.go b/model/alsc/AlibabaAlscCrmRechargeDedutprecheckGetResponse.go deleted file mode 100644 index 072cfdcda3..0000000000 --- a/model/alsc/AlibabaAlscCrmRechargeDedutprecheckGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -储值核销预先校验 API返回值 -alibaba.alsc.crm.recharge.dedutprecheck.get - -储值核销预先校验接口 -*/ -type AlibabaAlscCrmRechargeDedutprecheckGetAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmRechargeDedutprecheckGetResponse -} - -// 储值核销预先校验 成功返回结果 -type AlibabaAlscCrmRechargeDedutprecheckGetResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_dedutprecheck_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmRechargeQryruleAPIRequest.go b/model/alsc/AlibabaAlscCrmRechargeQryruleAPIRequest.go new file mode 100644 index 0000000000..8040c7fedc --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeQryruleAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +储值规则下行 API请求 +alibaba.alsc.crm.recharge.qryrule + +储值规则下行 +*/ +type AlibabaAlscCrmRechargeQryruleAPIRequest struct { + model.Params + // 请求对象 + _paramPullRechargeRuleByShopReq *PullRechargeRuleByShopReq +} + +// 初始化AlibabaAlscCrmRechargeQryruleAPIRequest对象 +func NewAlibabaAlscCrmRechargeQryruleRequest() *AlibabaAlscCrmRechargeQryruleAPIRequest{ + return &AlibabaAlscCrmRechargeQryruleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmRechargeQryruleAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.recharge.qryrule" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmRechargeQryruleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamPullRechargeRuleByShopReq Setter +// 请求对象 +func (r *AlibabaAlscCrmRechargeQryruleAPIRequest) SetParamPullRechargeRuleByShopReq(_paramPullRechargeRuleByShopReq *PullRechargeRuleByShopReq) error { + r._paramPullRechargeRuleByShopReq = _paramPullRechargeRuleByShopReq + r.Set("param_pull_recharge_rule_by_shop_req", _paramPullRechargeRuleByShopReq) + return nil +} + +// ParamPullRechargeRuleByShopReq Getter +func (r AlibabaAlscCrmRechargeQryruleAPIRequest) GetParamPullRechargeRuleByShopReq() *PullRechargeRuleByShopReq { + return r._paramPullRechargeRuleByShopReq +} diff --git a/model/alsc/AlibabaAlscCrmRechargeQryruleAPIResponse.go b/model/alsc/AlibabaAlscCrmRechargeQryruleAPIResponse.go new file mode 100644 index 0000000000..6bbb4f57e7 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeQryruleAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +储值规则下行 API返回值 +alibaba.alsc.crm.recharge.qryrule + +储值规则下行 +*/ +type AlibabaAlscCrmRechargeQryruleAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmRechargeQryruleAPIResponseModel +} + +// 储值规则下行 成功返回结果 +type AlibabaAlscCrmRechargeQryruleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_qryrule_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回模型 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmRechargeQryruleResponse.go b/model/alsc/AlibabaAlscCrmRechargeQryruleResponse.go deleted file mode 100644 index 800b0aa8b2..0000000000 --- a/model/alsc/AlibabaAlscCrmRechargeQryruleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -储值规则下行 API返回值 -alibaba.alsc.crm.recharge.qryrule - -储值规则下行 -*/ -type AlibabaAlscCrmRechargeQryruleAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmRechargeQryruleResponse -} - -// 储值规则下行 成功返回结果 -type AlibabaAlscCrmRechargeQryruleResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_qryrule_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回模型 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmRechargeUnchargeUpdateAPIRequest.go b/model/alsc/AlibabaAlscCrmRechargeUnchargeUpdateAPIRequest.go new file mode 100644 index 0000000000..fedc6da286 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeUnchargeUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +充值退款 API请求 +alibaba.alsc.crm.recharge.uncharge.update + +充值退款 +*/ +type AlibabaAlscCrmRechargeUnchargeUpdateAPIRequest struct { + model.Params + // 入参 + _paramUnchargeOpenReq *UnchargeOpenReq +} + +// 初始化AlibabaAlscCrmRechargeUnchargeUpdateAPIRequest对象 +func NewAlibabaAlscCrmRechargeUnchargeUpdateRequest() *AlibabaAlscCrmRechargeUnchargeUpdateAPIRequest{ + return &AlibabaAlscCrmRechargeUnchargeUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmRechargeUnchargeUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.recharge.uncharge.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmRechargeUnchargeUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamUnchargeOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmRechargeUnchargeUpdateAPIRequest) SetParamUnchargeOpenReq(_paramUnchargeOpenReq *UnchargeOpenReq) error { + r._paramUnchargeOpenReq = _paramUnchargeOpenReq + r.Set("param_uncharge_open_req", _paramUnchargeOpenReq) + return nil +} + +// ParamUnchargeOpenReq Getter +func (r AlibabaAlscCrmRechargeUnchargeUpdateAPIRequest) GetParamUnchargeOpenReq() *UnchargeOpenReq { + return r._paramUnchargeOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmRechargeUnchargeUpdateAPIResponse.go b/model/alsc/AlibabaAlscCrmRechargeUnchargeUpdateAPIResponse.go new file mode 100644 index 0000000000..f2ab15caf6 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeUnchargeUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +充值退款 API返回值 +alibaba.alsc.crm.recharge.uncharge.update + +充值退款 +*/ +type AlibabaAlscCrmRechargeUnchargeUpdateAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmRechargeUnchargeUpdateAPIResponseModel +} + +// 充值退款 成功返回结果 +type AlibabaAlscCrmRechargeUnchargeUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_uncharge_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmRechargeUnchargeUpdateResponse.go b/model/alsc/AlibabaAlscCrmRechargeUnchargeUpdateResponse.go deleted file mode 100644 index 44644e4b45..0000000000 --- a/model/alsc/AlibabaAlscCrmRechargeUnchargeUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -充值退款 API返回值 -alibaba.alsc.crm.recharge.uncharge.update - -充值退款 -*/ -type AlibabaAlscCrmRechargeUnchargeUpdateAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmRechargeUnchargeUpdateResponse -} - -// 充值退款 成功返回结果 -type AlibabaAlscCrmRechargeUnchargeUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_uncharge_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmRechargeUnchargecheckGetAPIRequest.go b/model/alsc/AlibabaAlscCrmRechargeUnchargecheckGetAPIRequest.go new file mode 100644 index 0000000000..45548f491f --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeUnchargecheckGetAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +储值账户退充值校验 API请求 +alibaba.alsc.crm.recharge.unchargecheck.get + +储值账户退充值校验接口 +*/ +type AlibabaAlscCrmRechargeUnchargecheckGetAPIRequest struct { + model.Params + // 入参 + _paramUnchargeCheckOpenReq *UnchargeCheckOpenReq +} + +// 初始化AlibabaAlscCrmRechargeUnchargecheckGetAPIRequest对象 +func NewAlibabaAlscCrmRechargeUnchargecheckGetRequest() *AlibabaAlscCrmRechargeUnchargecheckGetAPIRequest{ + return &AlibabaAlscCrmRechargeUnchargecheckGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmRechargeUnchargecheckGetAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.recharge.unchargecheck.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmRechargeUnchargecheckGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamUnchargeCheckOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmRechargeUnchargecheckGetAPIRequest) SetParamUnchargeCheckOpenReq(_paramUnchargeCheckOpenReq *UnchargeCheckOpenReq) error { + r._paramUnchargeCheckOpenReq = _paramUnchargeCheckOpenReq + r.Set("param_uncharge_check_open_req", _paramUnchargeCheckOpenReq) + return nil +} + +// ParamUnchargeCheckOpenReq Getter +func (r AlibabaAlscCrmRechargeUnchargecheckGetAPIRequest) GetParamUnchargeCheckOpenReq() *UnchargeCheckOpenReq { + return r._paramUnchargeCheckOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmRechargeUnchargecheckGetAPIResponse.go b/model/alsc/AlibabaAlscCrmRechargeUnchargecheckGetAPIResponse.go new file mode 100644 index 0000000000..105c8bf145 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeUnchargecheckGetAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +储值账户退充值校验 API返回值 +alibaba.alsc.crm.recharge.unchargecheck.get + +储值账户退充值校验接口 +*/ +type AlibabaAlscCrmRechargeUnchargecheckGetAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmRechargeUnchargecheckGetAPIResponseModel +} + +// 储值账户退充值校验 成功返回结果 +type AlibabaAlscCrmRechargeUnchargecheckGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_unchargecheck_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmRechargeUnchargecheckGetResponse.go b/model/alsc/AlibabaAlscCrmRechargeUnchargecheckGetResponse.go deleted file mode 100644 index 92e74a0319..0000000000 --- a/model/alsc/AlibabaAlscCrmRechargeUnchargecheckGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -储值账户退充值校验 API返回值 -alibaba.alsc.crm.recharge.unchargecheck.get - -储值账户退充值校验接口 -*/ -type AlibabaAlscCrmRechargeUnchargecheckGetAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmRechargeUnchargecheckGetResponse -} - -// 储值账户退充值校验 成功返回结果 -type AlibabaAlscCrmRechargeUnchargecheckGetResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_unchargecheck_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmRechargeUndedutUpdateAPIRequest.go b/model/alsc/AlibabaAlscCrmRechargeUndedutUpdateAPIRequest.go new file mode 100644 index 0000000000..8713b7f013 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeUndedutUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +储值消费退款(逆向) API请求 +alibaba.alsc.crm.recharge.undedut.update + +新增储值消费退款接口 +*/ +type AlibabaAlscCrmRechargeUndedutUpdateAPIRequest struct { + model.Params + // 入参 + _paramUndedutOpenReq *UndedutOpenReq +} + +// 初始化AlibabaAlscCrmRechargeUndedutUpdateAPIRequest对象 +func NewAlibabaAlscCrmRechargeUndedutUpdateRequest() *AlibabaAlscCrmRechargeUndedutUpdateAPIRequest{ + return &AlibabaAlscCrmRechargeUndedutUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmRechargeUndedutUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.recharge.undedut.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmRechargeUndedutUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamUndedutOpenReq Setter +// 入参 +func (r *AlibabaAlscCrmRechargeUndedutUpdateAPIRequest) SetParamUndedutOpenReq(_paramUndedutOpenReq *UndedutOpenReq) error { + r._paramUndedutOpenReq = _paramUndedutOpenReq + r.Set("param_undedut_open_req", _paramUndedutOpenReq) + return nil +} + +// ParamUndedutOpenReq Getter +func (r AlibabaAlscCrmRechargeUndedutUpdateAPIRequest) GetParamUndedutOpenReq() *UndedutOpenReq { + return r._paramUndedutOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmRechargeUndedutUpdateAPIResponse.go b/model/alsc/AlibabaAlscCrmRechargeUndedutUpdateAPIResponse.go new file mode 100644 index 0000000000..6b909c2a46 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRechargeUndedutUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +储值消费退款(逆向) API返回值 +alibaba.alsc.crm.recharge.undedut.update + +新增储值消费退款接口 +*/ +type AlibabaAlscCrmRechargeUndedutUpdateAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmRechargeUndedutUpdateAPIResponseModel +} + +// 储值消费退款(逆向) 成功返回结果 +type AlibabaAlscCrmRechargeUndedutUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_undedut_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmRechargeUndedutUpdateResponse.go b/model/alsc/AlibabaAlscCrmRechargeUndedutUpdateResponse.go deleted file mode 100644 index b27da73356..0000000000 --- a/model/alsc/AlibabaAlscCrmRechargeUndedutUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -储值消费退款(逆向) API返回值 -alibaba.alsc.crm.recharge.undedut.update - -新增储值消费退款接口 -*/ -type AlibabaAlscCrmRechargeUndedutUpdateAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmRechargeUndedutUpdateResponse -} - -// 储值消费退款(逆向) 成功返回结果 -type AlibabaAlscCrmRechargeUndedutUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_recharge_undedut_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmRuleLevelQuerylevelruleAPIRequest.go b/model/alsc/AlibabaAlscCrmRuleLevelQuerylevelruleAPIRequest.go new file mode 100644 index 0000000000..4ffa109482 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRuleLevelQuerylevelruleAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询会员等级规则 API请求 +alibaba.alsc.crm.rule.level.querylevelrule + +查询会员等级规则 +*/ +type AlibabaAlscCrmRuleLevelQuerylevelruleAPIRequest struct { + model.Params + // 请求参数 + _planRuleQueryRequest *PlanRuleQueryOpenReq +} + +// 初始化AlibabaAlscCrmRuleLevelQuerylevelruleAPIRequest对象 +func NewAlibabaAlscCrmRuleLevelQuerylevelruleRequest() *AlibabaAlscCrmRuleLevelQuerylevelruleAPIRequest{ + return &AlibabaAlscCrmRuleLevelQuerylevelruleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmRuleLevelQuerylevelruleAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.rule.level.querylevelrule" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmRuleLevelQuerylevelruleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PlanRuleQueryRequest Setter +// 请求参数 +func (r *AlibabaAlscCrmRuleLevelQuerylevelruleAPIRequest) SetPlanRuleQueryRequest(_planRuleQueryRequest *PlanRuleQueryOpenReq) error { + r._planRuleQueryRequest = _planRuleQueryRequest + r.Set("plan_rule_query_request", _planRuleQueryRequest) + return nil +} + +// PlanRuleQueryRequest Getter +func (r AlibabaAlscCrmRuleLevelQuerylevelruleAPIRequest) GetPlanRuleQueryRequest() *PlanRuleQueryOpenReq { + return r._planRuleQueryRequest +} diff --git a/model/alsc/AlibabaAlscCrmRuleLevelQuerylevelruleAPIResponse.go b/model/alsc/AlibabaAlscCrmRuleLevelQuerylevelruleAPIResponse.go new file mode 100644 index 0000000000..aae7d5c731 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRuleLevelQuerylevelruleAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询会员等级规则 API返回值 +alibaba.alsc.crm.rule.level.querylevelrule + +查询会员等级规则 +*/ +type AlibabaAlscCrmRuleLevelQuerylevelruleAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmRuleLevelQuerylevelruleAPIResponseModel +} + +// 查询会员等级规则 成功返回结果 +type AlibabaAlscCrmRuleLevelQuerylevelruleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_rule_level_querylevelrule_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 会员等级规则 + Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmRuleLevelQuerylevelruleResponse.go b/model/alsc/AlibabaAlscCrmRuleLevelQuerylevelruleResponse.go deleted file mode 100644 index 3605603449..0000000000 --- a/model/alsc/AlibabaAlscCrmRuleLevelQuerylevelruleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询会员等级规则 API返回值 -alibaba.alsc.crm.rule.level.querylevelrule - -查询会员等级规则 -*/ -type AlibabaAlscCrmRuleLevelQuerylevelruleAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmRuleLevelQuerylevelruleResponse -} - -// 查询会员等级规则 成功返回结果 -type AlibabaAlscCrmRuleLevelQuerylevelruleResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_rule_level_querylevelrule_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 会员等级规则 - Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmRuleQuerydishruleAPIRequest.go b/model/alsc/AlibabaAlscCrmRuleQuerydishruleAPIRequest.go new file mode 100644 index 0000000000..ec747b9df2 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRuleQuerydishruleAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询品牌下的入会菜品规则 API请求 +alibaba.alsc.crm.rule.querydishrule + +查询品牌下的入会菜品规则 +*/ +type AlibabaAlscCrmRuleQuerydishruleAPIRequest struct { + model.Params + // 系统自动生成 + _paramPlanRuleQueryOpenReq *PlanRuleQueryOpenReq +} + +// 初始化AlibabaAlscCrmRuleQuerydishruleAPIRequest对象 +func NewAlibabaAlscCrmRuleQuerydishruleRequest() *AlibabaAlscCrmRuleQuerydishruleAPIRequest{ + return &AlibabaAlscCrmRuleQuerydishruleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmRuleQuerydishruleAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.rule.querydishrule" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmRuleQuerydishruleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamPlanRuleQueryOpenReq Setter +// 系统自动生成 +func (r *AlibabaAlscCrmRuleQuerydishruleAPIRequest) SetParamPlanRuleQueryOpenReq(_paramPlanRuleQueryOpenReq *PlanRuleQueryOpenReq) error { + r._paramPlanRuleQueryOpenReq = _paramPlanRuleQueryOpenReq + r.Set("param_plan_rule_query_open_req", _paramPlanRuleQueryOpenReq) + return nil +} + +// ParamPlanRuleQueryOpenReq Getter +func (r AlibabaAlscCrmRuleQuerydishruleAPIRequest) GetParamPlanRuleQueryOpenReq() *PlanRuleQueryOpenReq { + return r._paramPlanRuleQueryOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmRuleQuerydishruleAPIResponse.go b/model/alsc/AlibabaAlscCrmRuleQuerydishruleAPIResponse.go new file mode 100644 index 0000000000..e4a0f00f18 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRuleQuerydishruleAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询品牌下的入会菜品规则 API返回值 +alibaba.alsc.crm.rule.querydishrule + +查询品牌下的入会菜品规则 +*/ +type AlibabaAlscCrmRuleQuerydishruleAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmRuleQuerydishruleAPIResponseModel +} + +// 查询品牌下的入会菜品规则 成功返回结果 +type AlibabaAlscCrmRuleQuerydishruleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_rule_querydishrule_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分页返回模型 + Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmRuleQuerydishruleResponse.go b/model/alsc/AlibabaAlscCrmRuleQuerydishruleResponse.go deleted file mode 100644 index 8493a17cc4..0000000000 --- a/model/alsc/AlibabaAlscCrmRuleQuerydishruleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询品牌下的入会菜品规则 API返回值 -alibaba.alsc.crm.rule.querydishrule - -查询品牌下的入会菜品规则 -*/ -type AlibabaAlscCrmRuleQuerydishruleAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmRuleQuerydishruleResponse -} - -// 查询品牌下的入会菜品规则 成功返回结果 -type AlibabaAlscCrmRuleQuerydishruleResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_rule_querydishrule_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分页返回模型 - Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmRuleQuerygrowruleAPIRequest.go b/model/alsc/AlibabaAlscCrmRuleQuerygrowruleAPIRequest.go new file mode 100644 index 0000000000..da5f5fbd83 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRuleQuerygrowruleAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询品牌下的会员成长规则 API请求 +alibaba.alsc.crm.rule.querygrowrule + +查询品牌下的会员成长规则 +*/ +type AlibabaAlscCrmRuleQuerygrowruleAPIRequest struct { + model.Params + // 系统自动生成 + _paramPlanRuleQueryOpenReq *PlanRuleQueryOpenReq +} + +// 初始化AlibabaAlscCrmRuleQuerygrowruleAPIRequest对象 +func NewAlibabaAlscCrmRuleQuerygrowruleRequest() *AlibabaAlscCrmRuleQuerygrowruleAPIRequest{ + return &AlibabaAlscCrmRuleQuerygrowruleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmRuleQuerygrowruleAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.rule.querygrowrule" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmRuleQuerygrowruleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamPlanRuleQueryOpenReq Setter +// 系统自动生成 +func (r *AlibabaAlscCrmRuleQuerygrowruleAPIRequest) SetParamPlanRuleQueryOpenReq(_paramPlanRuleQueryOpenReq *PlanRuleQueryOpenReq) error { + r._paramPlanRuleQueryOpenReq = _paramPlanRuleQueryOpenReq + r.Set("param_plan_rule_query_open_req", _paramPlanRuleQueryOpenReq) + return nil +} + +// ParamPlanRuleQueryOpenReq Getter +func (r AlibabaAlscCrmRuleQuerygrowruleAPIRequest) GetParamPlanRuleQueryOpenReq() *PlanRuleQueryOpenReq { + return r._paramPlanRuleQueryOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmRuleQuerygrowruleAPIResponse.go b/model/alsc/AlibabaAlscCrmRuleQuerygrowruleAPIResponse.go new file mode 100644 index 0000000000..39f800164a --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRuleQuerygrowruleAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询品牌下的会员成长规则 API返回值 +alibaba.alsc.crm.rule.querygrowrule + +查询品牌下的会员成长规则 +*/ +type AlibabaAlscCrmRuleQuerygrowruleAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmRuleQuerygrowruleAPIResponseModel +} + +// 查询品牌下的会员成长规则 成功返回结果 +type AlibabaAlscCrmRuleQuerygrowruleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_rule_querygrowrule_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmRuleQuerygrowruleResponse.go b/model/alsc/AlibabaAlscCrmRuleQuerygrowruleResponse.go deleted file mode 100644 index 7ba54773ef..0000000000 --- a/model/alsc/AlibabaAlscCrmRuleQuerygrowruleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询品牌下的会员成长规则 API返回值 -alibaba.alsc.crm.rule.querygrowrule - -查询品牌下的会员成长规则 -*/ -type AlibabaAlscCrmRuleQuerygrowruleAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmRuleQuerygrowruleResponse -} - -// 查询品牌下的会员成长规则 成功返回结果 -type AlibabaAlscCrmRuleQuerygrowruleResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_rule_querygrowrule_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmRuleQueryjoinmruleAPIRequest.go b/model/alsc/AlibabaAlscCrmRuleQueryjoinmruleAPIRequest.go new file mode 100644 index 0000000000..899b7ffba1 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRuleQueryjoinmruleAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询品牌下的成为会员规则 API请求 +alibaba.alsc.crm.rule.queryjoinmrule + +查询品牌下的成为会员规则 +*/ +type AlibabaAlscCrmRuleQueryjoinmruleAPIRequest struct { + model.Params + // 系统自动生成 + _paramPlanRuleQueryOpenReq *PlanRuleQueryOpenReq +} + +// 初始化AlibabaAlscCrmRuleQueryjoinmruleAPIRequest对象 +func NewAlibabaAlscCrmRuleQueryjoinmruleRequest() *AlibabaAlscCrmRuleQueryjoinmruleAPIRequest{ + return &AlibabaAlscCrmRuleQueryjoinmruleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmRuleQueryjoinmruleAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.rule.queryjoinmrule" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmRuleQueryjoinmruleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamPlanRuleQueryOpenReq Setter +// 系统自动生成 +func (r *AlibabaAlscCrmRuleQueryjoinmruleAPIRequest) SetParamPlanRuleQueryOpenReq(_paramPlanRuleQueryOpenReq *PlanRuleQueryOpenReq) error { + r._paramPlanRuleQueryOpenReq = _paramPlanRuleQueryOpenReq + r.Set("param_plan_rule_query_open_req", _paramPlanRuleQueryOpenReq) + return nil +} + +// ParamPlanRuleQueryOpenReq Getter +func (r AlibabaAlscCrmRuleQueryjoinmruleAPIRequest) GetParamPlanRuleQueryOpenReq() *PlanRuleQueryOpenReq { + return r._paramPlanRuleQueryOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmRuleQueryjoinmruleAPIResponse.go b/model/alsc/AlibabaAlscCrmRuleQueryjoinmruleAPIResponse.go new file mode 100644 index 0000000000..2fe88fc39e --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRuleQueryjoinmruleAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询品牌下的成为会员规则 API返回值 +alibaba.alsc.crm.rule.queryjoinmrule + +查询品牌下的成为会员规则 +*/ +type AlibabaAlscCrmRuleQueryjoinmruleAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmRuleQueryjoinmruleAPIResponseModel +} + +// 查询品牌下的成为会员规则 成功返回结果 +type AlibabaAlscCrmRuleQueryjoinmruleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_rule_queryjoinmrule_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmRuleQueryjoinmruleResponse.go b/model/alsc/AlibabaAlscCrmRuleQueryjoinmruleResponse.go deleted file mode 100644 index 6d869f40e7..0000000000 --- a/model/alsc/AlibabaAlscCrmRuleQueryjoinmruleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询品牌下的成为会员规则 API返回值 -alibaba.alsc.crm.rule.queryjoinmrule - -查询品牌下的成为会员规则 -*/ -type AlibabaAlscCrmRuleQueryjoinmruleAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmRuleQueryjoinmruleResponse -} - -// 查询品牌下的成为会员规则 成功返回结果 -type AlibabaAlscCrmRuleQueryjoinmruleResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_rule_queryjoinmrule_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmRuleQuerymdayeruleAPIRequest.go b/model/alsc/AlibabaAlscCrmRuleQuerymdayeruleAPIRequest.go new file mode 100644 index 0000000000..c1b6098a8d --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRuleQuerymdayeruleAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询品牌下的会员日规则 API请求 +alibaba.alsc.crm.rule.querymdayerule + +查询品牌下的会员日规则 +*/ +type AlibabaAlscCrmRuleQuerymdayeruleAPIRequest struct { + model.Params + // 系统自动生成 + _paramPlanRuleQueryOpenReq *PlanRuleQueryOpenReq +} + +// 初始化AlibabaAlscCrmRuleQuerymdayeruleAPIRequest对象 +func NewAlibabaAlscCrmRuleQuerymdayeruleRequest() *AlibabaAlscCrmRuleQuerymdayeruleAPIRequest{ + return &AlibabaAlscCrmRuleQuerymdayeruleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmRuleQuerymdayeruleAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.rule.querymdayerule" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmRuleQuerymdayeruleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamPlanRuleQueryOpenReq Setter +// 系统自动生成 +func (r *AlibabaAlscCrmRuleQuerymdayeruleAPIRequest) SetParamPlanRuleQueryOpenReq(_paramPlanRuleQueryOpenReq *PlanRuleQueryOpenReq) error { + r._paramPlanRuleQueryOpenReq = _paramPlanRuleQueryOpenReq + r.Set("param_plan_rule_query_open_req", _paramPlanRuleQueryOpenReq) + return nil +} + +// ParamPlanRuleQueryOpenReq Getter +func (r AlibabaAlscCrmRuleQuerymdayeruleAPIRequest) GetParamPlanRuleQueryOpenReq() *PlanRuleQueryOpenReq { + return r._paramPlanRuleQueryOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmRuleQuerymdayeruleAPIResponse.go b/model/alsc/AlibabaAlscCrmRuleQuerymdayeruleAPIResponse.go new file mode 100644 index 0000000000..3804d204a0 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRuleQuerymdayeruleAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询品牌下的会员日规则 API返回值 +alibaba.alsc.crm.rule.querymdayerule + +查询品牌下的会员日规则 +*/ +type AlibabaAlscCrmRuleQuerymdayeruleAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmRuleQuerymdayeruleAPIResponseModel +} + +// 查询品牌下的会员日规则 成功返回结果 +type AlibabaAlscCrmRuleQuerymdayeruleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_rule_querymdayerule_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmRuleQuerymdayeruleResponse.go b/model/alsc/AlibabaAlscCrmRuleQuerymdayeruleResponse.go deleted file mode 100644 index b8d82a1cfd..0000000000 --- a/model/alsc/AlibabaAlscCrmRuleQuerymdayeruleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询品牌下的会员日规则 API返回值 -alibaba.alsc.crm.rule.querymdayerule - -查询品牌下的会员日规则 -*/ -type AlibabaAlscCrmRuleQuerymdayeruleAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmRuleQuerymdayeruleResponse -} - -// 查询品牌下的会员日规则 成功返回结果 -type AlibabaAlscCrmRuleQuerymdayeruleResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_rule_querymdayerule_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmRuleQuerympriceruleAPIRequest.go b/model/alsc/AlibabaAlscCrmRuleQuerympriceruleAPIRequest.go new file mode 100644 index 0000000000..ddbcb2d5d4 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRuleQuerympriceruleAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询品牌下的会员价规则 API请求 +alibaba.alsc.crm.rule.querympricerule + +查询品牌下的会员价规则 +*/ +type AlibabaAlscCrmRuleQuerympriceruleAPIRequest struct { + model.Params + // 系统自动生成 + _paramPlanRuleQueryOpenReq *PlanRuleQueryOpenReq +} + +// 初始化AlibabaAlscCrmRuleQuerympriceruleAPIRequest对象 +func NewAlibabaAlscCrmRuleQuerympriceruleRequest() *AlibabaAlscCrmRuleQuerympriceruleAPIRequest{ + return &AlibabaAlscCrmRuleQuerympriceruleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmRuleQuerympriceruleAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.rule.querympricerule" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmRuleQuerympriceruleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamPlanRuleQueryOpenReq Setter +// 系统自动生成 +func (r *AlibabaAlscCrmRuleQuerympriceruleAPIRequest) SetParamPlanRuleQueryOpenReq(_paramPlanRuleQueryOpenReq *PlanRuleQueryOpenReq) error { + r._paramPlanRuleQueryOpenReq = _paramPlanRuleQueryOpenReq + r.Set("param_plan_rule_query_open_req", _paramPlanRuleQueryOpenReq) + return nil +} + +// ParamPlanRuleQueryOpenReq Getter +func (r AlibabaAlscCrmRuleQuerympriceruleAPIRequest) GetParamPlanRuleQueryOpenReq() *PlanRuleQueryOpenReq { + return r._paramPlanRuleQueryOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmRuleQuerympriceruleAPIResponse.go b/model/alsc/AlibabaAlscCrmRuleQuerympriceruleAPIResponse.go new file mode 100644 index 0000000000..87ac3477b7 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRuleQuerympriceruleAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询品牌下的会员价规则 API返回值 +alibaba.alsc.crm.rule.querympricerule + +查询品牌下的会员价规则 +*/ +type AlibabaAlscCrmRuleQuerympriceruleAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmRuleQuerympriceruleAPIResponseModel +} + +// 查询品牌下的会员价规则 成功返回结果 +type AlibabaAlscCrmRuleQuerympriceruleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_rule_querympricerule_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmRuleQuerympriceruleResponse.go b/model/alsc/AlibabaAlscCrmRuleQuerympriceruleResponse.go deleted file mode 100644 index 035dc47c84..0000000000 --- a/model/alsc/AlibabaAlscCrmRuleQuerympriceruleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询品牌下的会员价规则 API返回值 -alibaba.alsc.crm.rule.querympricerule - -查询品牌下的会员价规则 -*/ -type AlibabaAlscCrmRuleQuerympriceruleAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmRuleQuerympriceruleResponse -} - -// 查询品牌下的会员价规则 成功返回结果 -type AlibabaAlscCrmRuleQuerympriceruleResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_rule_querympricerule_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmRuleQueryoptplanAPIRequest.go b/model/alsc/AlibabaAlscCrmRuleQueryoptplanAPIRequest.go new file mode 100644 index 0000000000..125fd063e3 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRuleQueryoptplanAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询运营计划 API请求 +alibaba.alsc.crm.rule.queryoptplan + +查询运营计划 +*/ +type AlibabaAlscCrmRuleQueryoptplanAPIRequest struct { + model.Params + // 请求参数 + _planRuleQueryOpenRequest *PlanRuleQueryOpenReq +} + +// 初始化AlibabaAlscCrmRuleQueryoptplanAPIRequest对象 +func NewAlibabaAlscCrmRuleQueryoptplanRequest() *AlibabaAlscCrmRuleQueryoptplanAPIRequest{ + return &AlibabaAlscCrmRuleQueryoptplanAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmRuleQueryoptplanAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.rule.queryoptplan" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmRuleQueryoptplanAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PlanRuleQueryOpenRequest Setter +// 请求参数 +func (r *AlibabaAlscCrmRuleQueryoptplanAPIRequest) SetPlanRuleQueryOpenRequest(_planRuleQueryOpenRequest *PlanRuleQueryOpenReq) error { + r._planRuleQueryOpenRequest = _planRuleQueryOpenRequest + r.Set("plan_rule_query_open_request", _planRuleQueryOpenRequest) + return nil +} + +// PlanRuleQueryOpenRequest Getter +func (r AlibabaAlscCrmRuleQueryoptplanAPIRequest) GetPlanRuleQueryOpenRequest() *PlanRuleQueryOpenReq { + return r._planRuleQueryOpenRequest +} diff --git a/model/alsc/AlibabaAlscCrmRuleQueryoptplanAPIResponse.go b/model/alsc/AlibabaAlscCrmRuleQueryoptplanAPIResponse.go new file mode 100644 index 0000000000..e0afc773d8 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRuleQueryoptplanAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询运营计划 API返回值 +alibaba.alsc.crm.rule.queryoptplan + +查询运营计划 +*/ +type AlibabaAlscCrmRuleQueryoptplanAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmRuleQueryoptplanAPIResponseModel +} + +// 查询运营计划 成功返回结果 +type AlibabaAlscCrmRuleQueryoptplanAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_rule_queryoptplan_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求参数 + Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmRuleQueryoptplanResponse.go b/model/alsc/AlibabaAlscCrmRuleQueryoptplanResponse.go deleted file mode 100644 index 9dda8de082..0000000000 --- a/model/alsc/AlibabaAlscCrmRuleQueryoptplanResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询运营计划 API返回值 -alibaba.alsc.crm.rule.queryoptplan - -查询运营计划 -*/ -type AlibabaAlscCrmRuleQueryoptplanAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmRuleQueryoptplanResponse -} - -// 查询运营计划 成功返回结果 -type AlibabaAlscCrmRuleQueryoptplanResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_rule_queryoptplan_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求参数 - Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmRuleQuerytaglistAPIRequest.go b/model/alsc/AlibabaAlscCrmRuleQuerytaglistAPIRequest.go new file mode 100644 index 0000000000..2a4d4f49e3 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRuleQuerytaglistAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询标签列表 API请求 +alibaba.alsc.crm.rule.querytaglist + +查询标签列表 +*/ +type AlibabaAlscCrmRuleQuerytaglistAPIRequest struct { + model.Params + // 请求参数 + _paramPlanRuleQueryOpenReq *PlanRuleQueryOpenReq +} + +// 初始化AlibabaAlscCrmRuleQuerytaglistAPIRequest对象 +func NewAlibabaAlscCrmRuleQuerytaglistRequest() *AlibabaAlscCrmRuleQuerytaglistAPIRequest{ + return &AlibabaAlscCrmRuleQuerytaglistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmRuleQuerytaglistAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.rule.querytaglist" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmRuleQuerytaglistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamPlanRuleQueryOpenReq Setter +// 请求参数 +func (r *AlibabaAlscCrmRuleQuerytaglistAPIRequest) SetParamPlanRuleQueryOpenReq(_paramPlanRuleQueryOpenReq *PlanRuleQueryOpenReq) error { + r._paramPlanRuleQueryOpenReq = _paramPlanRuleQueryOpenReq + r.Set("param_plan_rule_query_open_req", _paramPlanRuleQueryOpenReq) + return nil +} + +// ParamPlanRuleQueryOpenReq Getter +func (r AlibabaAlscCrmRuleQuerytaglistAPIRequest) GetParamPlanRuleQueryOpenReq() *PlanRuleQueryOpenReq { + return r._paramPlanRuleQueryOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmRuleQuerytaglistAPIResponse.go b/model/alsc/AlibabaAlscCrmRuleQuerytaglistAPIResponse.go new file mode 100644 index 0000000000..8504d1af7d --- /dev/null +++ b/model/alsc/AlibabaAlscCrmRuleQuerytaglistAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询标签列表 API返回值 +alibaba.alsc.crm.rule.querytaglist + +查询标签列表 +*/ +type AlibabaAlscCrmRuleQuerytaglistAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmRuleQuerytaglistAPIResponseModel +} + +// 查询标签列表 成功返回结果 +type AlibabaAlscCrmRuleQuerytaglistAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_rule_querytaglist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分页返回模型 + Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmRuleQuerytaglistResponse.go b/model/alsc/AlibabaAlscCrmRuleQuerytaglistResponse.go deleted file mode 100644 index ff447a7fb1..0000000000 --- a/model/alsc/AlibabaAlscCrmRuleQuerytaglistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询标签列表 API返回值 -alibaba.alsc.crm.rule.querytaglist - -查询标签列表 -*/ -type AlibabaAlscCrmRuleQuerytaglistAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmRuleQuerytaglistResponse -} - -// 查询标签列表 成功返回结果 -type AlibabaAlscCrmRuleQuerytaglistResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_rule_querytaglist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分页返回模型 - Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmVoucherSendAPIRequest.go b/model/alsc/AlibabaAlscCrmVoucherSendAPIRequest.go new file mode 100644 index 0000000000..28d29b7fd8 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmVoucherSendAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发送券给指定用户 API请求 +alibaba.alsc.crm.voucher.send + +发送券给指定用户 +*/ +type AlibabaAlscCrmVoucherSendAPIRequest struct { + model.Params + // 请求参数 + _paramVoucherSendOpenReq *VoucherSendOpenReq +} + +// 初始化AlibabaAlscCrmVoucherSendAPIRequest对象 +func NewAlibabaAlscCrmVoucherSendRequest() *AlibabaAlscCrmVoucherSendAPIRequest{ + return &AlibabaAlscCrmVoucherSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmVoucherSendAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.voucher.send" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmVoucherSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamVoucherSendOpenReq Setter +// 请求参数 +func (r *AlibabaAlscCrmVoucherSendAPIRequest) SetParamVoucherSendOpenReq(_paramVoucherSendOpenReq *VoucherSendOpenReq) error { + r._paramVoucherSendOpenReq = _paramVoucherSendOpenReq + r.Set("param_voucher_send_open_req", _paramVoucherSendOpenReq) + return nil +} + +// ParamVoucherSendOpenReq Getter +func (r AlibabaAlscCrmVoucherSendAPIRequest) GetParamVoucherSendOpenReq() *VoucherSendOpenReq { + return r._paramVoucherSendOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmVoucherSendAPIResponse.go b/model/alsc/AlibabaAlscCrmVoucherSendAPIResponse.go new file mode 100644 index 0000000000..6290ce3bf1 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmVoucherSendAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发送券给指定用户 API返回值 +alibaba.alsc.crm.voucher.send + +发送券给指定用户 +*/ +type AlibabaAlscCrmVoucherSendAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmVoucherSendAPIResponseModel +} + +// 发送券给指定用户 成功返回结果 +type AlibabaAlscCrmVoucherSendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_voucher_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmVoucherSendResponse.go b/model/alsc/AlibabaAlscCrmVoucherSendResponse.go deleted file mode 100644 index ffe3667d3e..0000000000 --- a/model/alsc/AlibabaAlscCrmVoucherSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发送券给指定用户 API返回值 -alibaba.alsc.crm.voucher.send - -发送券给指定用户 -*/ -type AlibabaAlscCrmVoucherSendAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmVoucherSendResponse -} - -// 发送券给指定用户 成功返回结果 -type AlibabaAlscCrmVoucherSendResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_voucher_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmVoucherStatusChangeAPIRequest.go b/model/alsc/AlibabaAlscCrmVoucherStatusChangeAPIRequest.go new file mode 100644 index 0000000000..67adaeb3fd --- /dev/null +++ b/model/alsc/AlibabaAlscCrmVoucherStatusChangeAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券状态更改 API请求 +alibaba.alsc.crm.voucher.status.change + +核销优惠券 +*/ +type AlibabaAlscCrmVoucherStatusChangeAPIRequest struct { + model.Params + // 参数 + _paramVoucherStatusChangeOpenReq *VoucherStatusChangeOpenReq +} + +// 初始化AlibabaAlscCrmVoucherStatusChangeAPIRequest对象 +func NewAlibabaAlscCrmVoucherStatusChangeRequest() *AlibabaAlscCrmVoucherStatusChangeAPIRequest{ + return &AlibabaAlscCrmVoucherStatusChangeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmVoucherStatusChangeAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.voucher.status.change" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmVoucherStatusChangeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamVoucherStatusChangeOpenReq Setter +// 参数 +func (r *AlibabaAlscCrmVoucherStatusChangeAPIRequest) SetParamVoucherStatusChangeOpenReq(_paramVoucherStatusChangeOpenReq *VoucherStatusChangeOpenReq) error { + r._paramVoucherStatusChangeOpenReq = _paramVoucherStatusChangeOpenReq + r.Set("param_voucher_status_change_open_req", _paramVoucherStatusChangeOpenReq) + return nil +} + +// ParamVoucherStatusChangeOpenReq Getter +func (r AlibabaAlscCrmVoucherStatusChangeAPIRequest) GetParamVoucherStatusChangeOpenReq() *VoucherStatusChangeOpenReq { + return r._paramVoucherStatusChangeOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmVoucherStatusChangeAPIResponse.go b/model/alsc/AlibabaAlscCrmVoucherStatusChangeAPIResponse.go new file mode 100644 index 0000000000..30a4f5a826 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmVoucherStatusChangeAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券状态更改 API返回值 +alibaba.alsc.crm.voucher.status.change + +核销优惠券 +*/ +type AlibabaAlscCrmVoucherStatusChangeAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmVoucherStatusChangeAPIResponseModel +} + +// 优惠券状态更改 成功返回结果 +type AlibabaAlscCrmVoucherStatusChangeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_voucher_status_change_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmVoucherStatusChangeResponse.go b/model/alsc/AlibabaAlscCrmVoucherStatusChangeResponse.go deleted file mode 100644 index bde8cfb983..0000000000 --- a/model/alsc/AlibabaAlscCrmVoucherStatusChangeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -优惠券状态更改 API返回值 -alibaba.alsc.crm.voucher.status.change - -核销优惠券 -*/ -type AlibabaAlscCrmVoucherStatusChangeAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmVoucherStatusChangeResponse -} - -// 优惠券状态更改 成功返回结果 -type AlibabaAlscCrmVoucherStatusChangeResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_voucher_status_change_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscCrmVoucherTemplateListAPIRequest.go b/model/alsc/AlibabaAlscCrmVoucherTemplateListAPIRequest.go new file mode 100644 index 0000000000..7771e0539d --- /dev/null +++ b/model/alsc/AlibabaAlscCrmVoucherTemplateListAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取优惠券模版列表 API请求 +alibaba.alsc.crm.voucher.template.list + +获取优惠券模版列表 +*/ +type AlibabaAlscCrmVoucherTemplateListAPIRequest struct { + model.Params + // 获取优惠模版规则请求参数 + _voucherTemplateOpenReq *VoucherTemplateOpenReq +} + +// 初始化AlibabaAlscCrmVoucherTemplateListAPIRequest对象 +func NewAlibabaAlscCrmVoucherTemplateListRequest() *AlibabaAlscCrmVoucherTemplateListAPIRequest{ + return &AlibabaAlscCrmVoucherTemplateListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscCrmVoucherTemplateListAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.crm.voucher.template.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscCrmVoucherTemplateListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VoucherTemplateOpenReq Setter +// 获取优惠模版规则请求参数 +func (r *AlibabaAlscCrmVoucherTemplateListAPIRequest) SetVoucherTemplateOpenReq(_voucherTemplateOpenReq *VoucherTemplateOpenReq) error { + r._voucherTemplateOpenReq = _voucherTemplateOpenReq + r.Set("voucher_template_open_req", _voucherTemplateOpenReq) + return nil +} + +// VoucherTemplateOpenReq Getter +func (r AlibabaAlscCrmVoucherTemplateListAPIRequest) GetVoucherTemplateOpenReq() *VoucherTemplateOpenReq { + return r._voucherTemplateOpenReq +} diff --git a/model/alsc/AlibabaAlscCrmVoucherTemplateListAPIResponse.go b/model/alsc/AlibabaAlscCrmVoucherTemplateListAPIResponse.go new file mode 100644 index 0000000000..2dc6556075 --- /dev/null +++ b/model/alsc/AlibabaAlscCrmVoucherTemplateListAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取优惠券模版列表 API返回值 +alibaba.alsc.crm.voucher.template.list + +获取优惠券模版列表 +*/ +type AlibabaAlscCrmVoucherTemplateListAPIResponse struct { + model.CommonResponse + AlibabaAlscCrmVoucherTemplateListAPIResponseModel +} + +// 获取优惠券模版列表 成功返回结果 +type AlibabaAlscCrmVoucherTemplateListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_crm_voucher_template_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分页返回模型 + Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscCrmVoucherTemplateListResponse.go b/model/alsc/AlibabaAlscCrmVoucherTemplateListResponse.go deleted file mode 100644 index ef3f9daf21..0000000000 --- a/model/alsc/AlibabaAlscCrmVoucherTemplateListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取优惠券模版列表 API返回值 -alibaba.alsc.crm.voucher.template.list - -获取优惠券模版列表 -*/ -type AlibabaAlscCrmVoucherTemplateListAPIResponse struct { - model.CommonResponse - AlibabaAlscCrmVoucherTemplateListResponse -} - -// 获取优惠券模版列表 成功返回结果 -type AlibabaAlscCrmVoucherTemplateListResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_crm_voucher_template_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分页返回模型 - Result *CommonPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscKmsAccessAPIRequest.go b/model/alsc/AlibabaAlscKmsAccessAPIRequest.go new file mode 100644 index 0000000000..971ee2a554 --- /dev/null +++ b/model/alsc/AlibabaAlscKmsAccessAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +本地生活风控数据接入 API请求 +alibaba.alsc.kms.access + +第三方使用本地生活数据对外提供服务,上报访问日志信息接口 +*/ +type AlibabaAlscKmsAccessAPIRequest struct { + model.Params + // 接入参数 + _requestdata string +} + +// 初始化AlibabaAlscKmsAccessAPIRequest对象 +func NewAlibabaAlscKmsAccessRequest() *AlibabaAlscKmsAccessAPIRequest{ + return &AlibabaAlscKmsAccessAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscKmsAccessAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.kms.access" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscKmsAccessAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Requestdata Setter +// 接入参数 +func (r *AlibabaAlscKmsAccessAPIRequest) SetRequestdata(_requestdata string) error { + r._requestdata = _requestdata + r.Set("requestdata", _requestdata) + return nil +} + +// Requestdata Getter +func (r AlibabaAlscKmsAccessAPIRequest) GetRequestdata() string { + return r._requestdata +} diff --git a/model/alsc/AlibabaAlscKmsAccessAPIResponse.go b/model/alsc/AlibabaAlscKmsAccessAPIResponse.go new file mode 100644 index 0000000000..3a6a2a8d88 --- /dev/null +++ b/model/alsc/AlibabaAlscKmsAccessAPIResponse.go @@ -0,0 +1,31 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +本地生活风控数据接入 API返回值 +alibaba.alsc.kms.access + +第三方使用本地生活数据对外提供服务,上报访问日志信息接口 +*/ +type AlibabaAlscKmsAccessAPIResponse struct { + model.CommonResponse + AlibabaAlscKmsAccessAPIResponseModel +} + +// 本地生活风控数据接入 成功返回结果 +type AlibabaAlscKmsAccessAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_kms_access_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // code + Resultcode string `json:"resultcode,omitempty" xml:"resultcode,omitempty"` + // 是否成功 + Resultsuccess bool `json:"resultsuccess,omitempty" xml:"resultsuccess,omitempty"` + // message + Resultmessage string `json:"resultmessage,omitempty" xml:"resultmessage,omitempty"` +} diff --git a/model/alsc/AlibabaAlscKmsAccessResponse.go b/model/alsc/AlibabaAlscKmsAccessResponse.go deleted file mode 100644 index e1626d2750..0000000000 --- a/model/alsc/AlibabaAlscKmsAccessResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -本地生活风控数据接入 API返回值 -alibaba.alsc.kms.access - -第三方使用本地生活数据对外提供服务,上报访问日志信息接口 -*/ -type AlibabaAlscKmsAccessAPIResponse struct { - model.CommonResponse - AlibabaAlscKmsAccessResponse -} - -// 本地生活风控数据接入 成功返回结果 -type AlibabaAlscKmsAccessResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_kms_access_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // code - Resultcode string `json:"resultcode,omitempty" xml:"resultcode,omitempty"` - // 是否成功 - Resultsuccess bool `json:"resultsuccess,omitempty" xml:"resultsuccess,omitempty"` - // message - Resultmessage string `json:"resultmessage,omitempty" xml:"resultmessage,omitempty"` -} diff --git a/model/alsc/AlibabaAlscOrderOrderUploadAPIRequest.go b/model/alsc/AlibabaAlscOrderOrderUploadAPIRequest.go new file mode 100644 index 0000000000..5dbcee6bf6 --- /dev/null +++ b/model/alsc/AlibabaAlscOrderOrderUploadAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单回流 API请求 +alibaba.alsc.order.order.upload + +第三方订单回流 +*/ +type AlibabaAlscOrderOrderUploadAPIRequest struct { + model.Params + // 订单回流参数 + _paramBackflowRequest *BackflowRequest +} + +// 初始化AlibabaAlscOrderOrderUploadAPIRequest对象 +func NewAlibabaAlscOrderOrderUploadRequest() *AlibabaAlscOrderOrderUploadAPIRequest{ + return &AlibabaAlscOrderOrderUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscOrderOrderUploadAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.order.order.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscOrderOrderUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBackflowRequest Setter +// 订单回流参数 +func (r *AlibabaAlscOrderOrderUploadAPIRequest) SetParamBackflowRequest(_paramBackflowRequest *BackflowRequest) error { + r._paramBackflowRequest = _paramBackflowRequest + r.Set("param_backflow_request", _paramBackflowRequest) + return nil +} + +// ParamBackflowRequest Getter +func (r AlibabaAlscOrderOrderUploadAPIRequest) GetParamBackflowRequest() *BackflowRequest { + return r._paramBackflowRequest +} diff --git a/model/alsc/AlibabaAlscOrderOrderUploadAPIResponse.go b/model/alsc/AlibabaAlscOrderOrderUploadAPIResponse.go new file mode 100644 index 0000000000..38c5d23b03 --- /dev/null +++ b/model/alsc/AlibabaAlscOrderOrderUploadAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单回流 API返回值 +alibaba.alsc.order.order.upload + +第三方订单回流 +*/ +type AlibabaAlscOrderOrderUploadAPIResponse struct { + model.CommonResponse + AlibabaAlscOrderOrderUploadAPIResponseModel +} + +// 订单回流 成功返回结果 +type AlibabaAlscOrderOrderUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_order_order_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回包装类 + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscOrderOrderUploadResponse.go b/model/alsc/AlibabaAlscOrderOrderUploadResponse.go deleted file mode 100644 index 28381ac165..0000000000 --- a/model/alsc/AlibabaAlscOrderOrderUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单回流 API返回值 -alibaba.alsc.order.order.upload - -第三方订单回流 -*/ -type AlibabaAlscOrderOrderUploadAPIResponse struct { - model.CommonResponse - AlibabaAlscOrderOrderUploadResponse -} - -// 订单回流 成功返回结果 -type AlibabaAlscOrderOrderUploadResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_order_order_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回包装类 - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/AlibabaAlscSaasCodecCodeAttrsQueryAPIRequest.go b/model/alsc/AlibabaAlscSaasCodecCodeAttrsQueryAPIRequest.go new file mode 100644 index 0000000000..270e3943e8 --- /dev/null +++ b/model/alsc/AlibabaAlscSaasCodecCodeAttrsQueryAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +码业务属性查询 API请求 +alibaba.alsc.saas.codec.code.attrs.query + +码业务属性查询 +*/ +type AlibabaAlscSaasCodecCodeAttrsQueryAPIRequest struct { + model.Params + // 请求入参 + _queryCodeRequest *QueryCodeBizAttrRequest +} + +// 初始化AlibabaAlscSaasCodecCodeAttrsQueryAPIRequest对象 +func NewAlibabaAlscSaasCodecCodeAttrsQueryRequest() *AlibabaAlscSaasCodecCodeAttrsQueryAPIRequest{ + return &AlibabaAlscSaasCodecCodeAttrsQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscSaasCodecCodeAttrsQueryAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.saas.codec.code.attrs.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscSaasCodecCodeAttrsQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryCodeRequest Setter +// 请求入参 +func (r *AlibabaAlscSaasCodecCodeAttrsQueryAPIRequest) SetQueryCodeRequest(_queryCodeRequest *QueryCodeBizAttrRequest) error { + r._queryCodeRequest = _queryCodeRequest + r.Set("query_code_request", _queryCodeRequest) + return nil +} + +// QueryCodeRequest Getter +func (r AlibabaAlscSaasCodecCodeAttrsQueryAPIRequest) GetQueryCodeRequest() *QueryCodeBizAttrRequest { + return r._queryCodeRequest +} diff --git a/model/alsc/AlibabaAlscSaasCodecCodeAttrsQueryAPIResponse.go b/model/alsc/AlibabaAlscSaasCodecCodeAttrsQueryAPIResponse.go new file mode 100644 index 0000000000..5884339d81 --- /dev/null +++ b/model/alsc/AlibabaAlscSaasCodecCodeAttrsQueryAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +码业务属性查询 API返回值 +alibaba.alsc.saas.codec.code.attrs.query + +码业务属性查询 +*/ +type AlibabaAlscSaasCodecCodeAttrsQueryAPIResponse struct { + model.CommonResponse + AlibabaAlscSaasCodecCodeAttrsQueryAPIResponseModel +} + +// 码业务属性查询 成功返回结果 +type AlibabaAlscSaasCodecCodeAttrsQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_saas_codec_code_attrs_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlscSaasCodecCodeAttrsQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/AlibabaAlscSaasCodecCodeAttrsQueryResponse.go b/model/alsc/AlibabaAlscSaasCodecCodeAttrsQueryResponse.go deleted file mode 100644 index 7e9f7f6cac..0000000000 --- a/model/alsc/AlibabaAlscSaasCodecCodeAttrsQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -码业务属性查询 API返回值 -alibaba.alsc.saas.codec.code.attrs.query - -码业务属性查询 -*/ -type AlibabaAlscSaasCodecCodeAttrsQueryAPIResponse struct { - model.CommonResponse - AlibabaAlscSaasCodecCodeAttrsQueryResponse -} - -// 码业务属性查询 成功返回结果 -type AlibabaAlscSaasCodecCodeAttrsQueryResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_saas_codec_code_attrs_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlscSaasCodecCodeAttrsQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest.go b/model/alsc/TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest.go new file mode 100644 index 0000000000..d0b8887681 --- /dev/null +++ b/model/alsc/TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest.go @@ -0,0 +1,108 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家基础经营设置信息同步 API请求 +taobao.koubei.saas.base.operation.config.sync + +ISV接入口碑SAAS后, 经营设置数据同步到口碑SAAS +*/ +type TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest struct { + model.Params + // 商户ID + _merchantId string + // 请求ID + _requestId string + // 业务类型。支付方式:payment_method + _bizType string + // 经营设置json串 + _operationConfig string + // 操作员ID + _outerOperatorId string +} + +// 初始化TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest对象 +func NewTaobaoKoubeiSaasBaseOperationConfigSyncRequest() *TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest{ + return &TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest) GetApiMethodName() string { + return "taobao.koubei.saas.base.operation.config.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MerchantId Setter +// 商户ID +func (r *TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest) SetMerchantId(_merchantId string) error { + r._merchantId = _merchantId + r.Set("merchant_id", _merchantId) + return nil +} + +// MerchantId Getter +func (r TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest) GetMerchantId() string { + return r._merchantId +} +// RequestId Setter +// 请求ID +func (r *TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest) SetRequestId(_requestId string) error { + r._requestId = _requestId + r.Set("request_id", _requestId) + return nil +} + +// RequestId Getter +func (r TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest) GetRequestId() string { + return r._requestId +} +// BizType Setter +// 业务类型。支付方式:payment_method +func (r *TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest) GetBizType() string { + return r._bizType +} +// OperationConfig Setter +// 经营设置json串 +func (r *TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest) SetOperationConfig(_operationConfig string) error { + r._operationConfig = _operationConfig + r.Set("operation_config", _operationConfig) + return nil +} + +// OperationConfig Getter +func (r TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest) GetOperationConfig() string { + return r._operationConfig +} +// OuterOperatorId Setter +// 操作员ID +func (r *TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest) SetOuterOperatorId(_outerOperatorId string) error { + r._outerOperatorId = _outerOperatorId + r.Set("outer_operator_id", _outerOperatorId) + return nil +} + +// OuterOperatorId Getter +func (r TaobaoKoubeiSaasBaseOperationConfigSyncAPIRequest) GetOuterOperatorId() string { + return r._outerOperatorId +} diff --git a/model/alsc/TaobaoKoubeiSaasBaseOperationConfigSyncAPIResponse.go b/model/alsc/TaobaoKoubeiSaasBaseOperationConfigSyncAPIResponse.go new file mode 100644 index 0000000000..8f732f8e7a --- /dev/null +++ b/model/alsc/TaobaoKoubeiSaasBaseOperationConfigSyncAPIResponse.go @@ -0,0 +1,31 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家基础经营设置信息同步 API返回值 +taobao.koubei.saas.base.operation.config.sync + +ISV接入口碑SAAS后, 经营设置数据同步到口碑SAAS +*/ +type TaobaoKoubeiSaasBaseOperationConfigSyncAPIResponse struct { + model.CommonResponse + TaobaoKoubeiSaasBaseOperationConfigSyncAPIResponseModel +} + +// 商家基础经营设置信息同步 成功返回结果 +type TaobaoKoubeiSaasBaseOperationConfigSyncAPIResponseModel struct { + XMLName xml.Name `xml:"koubei_saas_base_operation_config_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异常信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 异常码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 是否成功 + BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` +} diff --git a/model/alsc/TaobaoKoubeiSaasBaseOperationConfigSyncResponse.go b/model/alsc/TaobaoKoubeiSaasBaseOperationConfigSyncResponse.go deleted file mode 100644 index c916168e2b..0000000000 --- a/model/alsc/TaobaoKoubeiSaasBaseOperationConfigSyncResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家基础经营设置信息同步 API返回值 -taobao.koubei.saas.base.operation.config.sync - -ISV接入口碑SAAS后, 经营设置数据同步到口碑SAAS -*/ -type TaobaoKoubeiSaasBaseOperationConfigSyncAPIResponse struct { - model.CommonResponse - TaobaoKoubeiSaasBaseOperationConfigSyncResponse -} - -// 商家基础经营设置信息同步 成功返回结果 -type TaobaoKoubeiSaasBaseOperationConfigSyncResponse struct { - XMLName xml.Name `xml:"koubei_saas_base_operation_config_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异常信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 异常码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 是否成功 - BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` -} diff --git a/model/alsc/TaobaoPlaceStoreCreateAPIRequest.go b/model/alsc/TaobaoPlaceStoreCreateAPIRequest.go new file mode 100644 index 0000000000..c2c9e227aa --- /dev/null +++ b/model/alsc/TaobaoPlaceStoreCreateAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商户门店创建接口 API请求 +taobao.place.store.create + +用于商家创建线下门店 +*/ +type TaobaoPlaceStoreCreateAPIRequest struct { + model.Params + // 门店创建入参 + _storeCreate *StoreUpdateTopDto +} + +// 初始化TaobaoPlaceStoreCreateAPIRequest对象 +func NewTaobaoPlaceStoreCreateRequest() *TaobaoPlaceStoreCreateAPIRequest{ + return &TaobaoPlaceStoreCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPlaceStoreCreateAPIRequest) GetApiMethodName() string { + return "taobao.place.store.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPlaceStoreCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreCreate Setter +// 门店创建入参 +func (r *TaobaoPlaceStoreCreateAPIRequest) SetStoreCreate(_storeCreate *StoreUpdateTopDto) error { + r._storeCreate = _storeCreate + r.Set("store_create", _storeCreate) + return nil +} + +// StoreCreate Getter +func (r TaobaoPlaceStoreCreateAPIRequest) GetStoreCreate() *StoreUpdateTopDto { + return r._storeCreate +} diff --git a/model/alsc/TaobaoPlaceStoreCreateAPIResponse.go b/model/alsc/TaobaoPlaceStoreCreateAPIResponse.go new file mode 100644 index 0000000000..6a28fa53bd --- /dev/null +++ b/model/alsc/TaobaoPlaceStoreCreateAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商户门店创建接口 API返回值 +taobao.place.store.create + +用于商家创建线下门店 +*/ +type TaobaoPlaceStoreCreateAPIResponse struct { + model.CommonResponse + TaobaoPlaceStoreCreateAPIResponseModel +} + +// 商户门店创建接口 成功返回结果 +type TaobaoPlaceStoreCreateAPIResponseModel struct { + XMLName xml.Name `xml:"place_store_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + StoreId int64 `json:"store_id,omitempty" xml:"store_id,omitempty"` +} diff --git a/model/alsc/TaobaoPlaceStoreCreateResponse.go b/model/alsc/TaobaoPlaceStoreCreateResponse.go deleted file mode 100644 index 159e124a1c..0000000000 --- a/model/alsc/TaobaoPlaceStoreCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商户门店创建接口 API返回值 -taobao.place.store.create - -用于商家创建线下门店 -*/ -type TaobaoPlaceStoreCreateAPIResponse struct { - model.CommonResponse - TaobaoPlaceStoreCreateResponse -} - -// 商户门店创建接口 成功返回结果 -type TaobaoPlaceStoreCreateResponse struct { - XMLName xml.Name `xml:"place_store_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - StoreId int64 `json:"store_id,omitempty" xml:"store_id,omitempty"` -} diff --git a/model/alsc/TaobaoPlaceStoreDeleteAPIRequest.go b/model/alsc/TaobaoPlaceStoreDeleteAPIRequest.go new file mode 100644 index 0000000000..6b5064adea --- /dev/null +++ b/model/alsc/TaobaoPlaceStoreDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线下门店删除 API请求 +taobao.place.store.delete + +用于商家删除线下门店 +*/ +type TaobaoPlaceStoreDeleteAPIRequest struct { + model.Params + // 门店id + _storeId int64 +} + +// 初始化TaobaoPlaceStoreDeleteAPIRequest对象 +func NewTaobaoPlaceStoreDeleteRequest() *TaobaoPlaceStoreDeleteAPIRequest{ + return &TaobaoPlaceStoreDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPlaceStoreDeleteAPIRequest) GetApiMethodName() string { + return "taobao.place.store.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPlaceStoreDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店id +func (r *TaobaoPlaceStoreDeleteAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoPlaceStoreDeleteAPIRequest) GetStoreId() int64 { + return r._storeId +} diff --git a/model/alsc/TaobaoPlaceStoreDeleteAPIResponse.go b/model/alsc/TaobaoPlaceStoreDeleteAPIResponse.go new file mode 100644 index 0000000000..b18239f9e5 --- /dev/null +++ b/model/alsc/TaobaoPlaceStoreDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线下门店删除 API返回值 +taobao.place.store.delete + +用于商家删除线下门店 +*/ +type TaobaoPlaceStoreDeleteAPIResponse struct { + model.CommonResponse + TaobaoPlaceStoreDeleteAPIResponseModel +} + +// 线下门店删除 成功返回结果 +type TaobaoPlaceStoreDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"place_store_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 门店删除结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/TaobaoPlaceStoreDeleteResponse.go b/model/alsc/TaobaoPlaceStoreDeleteResponse.go deleted file mode 100644 index 3e6bb55273..0000000000 --- a/model/alsc/TaobaoPlaceStoreDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线下门店删除 API返回值 -taobao.place.store.delete - -用于商家删除线下门店 -*/ -type TaobaoPlaceStoreDeleteAPIResponse struct { - model.CommonResponse - TaobaoPlaceStoreDeleteResponse -} - -// 线下门店删除 成功返回结果 -type TaobaoPlaceStoreDeleteResponse struct { - XMLName xml.Name `xml:"place_store_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 门店删除结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/TaobaoPlaceStoreExtendAddAPIRequest.go b/model/alsc/TaobaoPlaceStoreExtendAddAPIRequest.go new file mode 100644 index 0000000000..300ea720d7 --- /dev/null +++ b/model/alsc/TaobaoPlaceStoreExtendAddAPIRequest.go @@ -0,0 +1,66 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增门店扩展属性 API请求 +taobao.place.store.extend.add + +新增授权用户的门店扩展属性 +*/ +type TaobaoPlaceStoreExtendAddAPIRequest struct { + model.Params + // 门店ID + _storeId int64 + // 扩展信息 + _etv []ExtendTypeValueTopDto +} + +// 初始化TaobaoPlaceStoreExtendAddAPIRequest对象 +func NewTaobaoPlaceStoreExtendAddRequest() *TaobaoPlaceStoreExtendAddAPIRequest{ + return &TaobaoPlaceStoreExtendAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPlaceStoreExtendAddAPIRequest) GetApiMethodName() string { + return "taobao.place.store.extend.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPlaceStoreExtendAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店ID +func (r *TaobaoPlaceStoreExtendAddAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoPlaceStoreExtendAddAPIRequest) GetStoreId() int64 { + return r._storeId +} +// Etv Setter +// 扩展信息 +func (r *TaobaoPlaceStoreExtendAddAPIRequest) SetEtv(_etv []ExtendTypeValueTopDto) error { + r._etv = _etv + r.Set("etv", _etv) + return nil +} + +// Etv Getter +func (r TaobaoPlaceStoreExtendAddAPIRequest) GetEtv() []ExtendTypeValueTopDto { + return r._etv +} diff --git a/model/alsc/TaobaoPlaceStoreExtendAddAPIResponse.go b/model/alsc/TaobaoPlaceStoreExtendAddAPIResponse.go new file mode 100644 index 0000000000..238b773525 --- /dev/null +++ b/model/alsc/TaobaoPlaceStoreExtendAddAPIResponse.go @@ -0,0 +1,31 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增门店扩展属性 API返回值 +taobao.place.store.extend.add + +新增授权用户的门店扩展属性 +*/ +type TaobaoPlaceStoreExtendAddAPIResponse struct { + model.CommonResponse + TaobaoPlaceStoreExtendAddAPIResponseModel +} + +// 新增门店扩展属性 成功返回结果 +type TaobaoPlaceStoreExtendAddAPIResponseModel struct { + XMLName xml.Name `xml:"place_store_extend_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否失败 + Failure bool `json:"failure,omitempty" xml:"failure,omitempty"` + // 返回结果:true成功;false失败 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 个数 + TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` +} diff --git a/model/alsc/TaobaoPlaceStoreExtendAddResponse.go b/model/alsc/TaobaoPlaceStoreExtendAddResponse.go deleted file mode 100644 index 444b7f8cdb..0000000000 --- a/model/alsc/TaobaoPlaceStoreExtendAddResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增门店扩展属性 API返回值 -taobao.place.store.extend.add - -新增授权用户的门店扩展属性 -*/ -type TaobaoPlaceStoreExtendAddAPIResponse struct { - model.CommonResponse - TaobaoPlaceStoreExtendAddResponse -} - -// 新增门店扩展属性 成功返回结果 -type TaobaoPlaceStoreExtendAddResponse struct { - XMLName xml.Name `xml:"place_store_extend_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否失败 - Failure bool `json:"failure,omitempty" xml:"failure,omitempty"` - // 返回结果:true成功;false失败 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 个数 - TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` -} diff --git a/model/alsc/TaobaoPlaceStoreModifyAPIRequest.go b/model/alsc/TaobaoPlaceStoreModifyAPIRequest.go new file mode 100644 index 0000000000..3f99113b20 --- /dev/null +++ b/model/alsc/TaobaoPlaceStoreModifyAPIRequest.go @@ -0,0 +1,52 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家修改线下门店 API请求 +taobao.place.store.modify + +用于商家修改线下门店信息 +*/ +type TaobaoPlaceStoreModifyAPIRequest struct { + model.Params + // 门店创建入参 + _storeUpdate *StoreUpdateTopDto +} + +// 初始化TaobaoPlaceStoreModifyAPIRequest对象 +func NewTaobaoPlaceStoreModifyRequest() *TaobaoPlaceStoreModifyAPIRequest{ + return &TaobaoPlaceStoreModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPlaceStoreModifyAPIRequest) GetApiMethodName() string { + return "taobao.place.store.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPlaceStoreModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreUpdate Setter +// 门店创建入参 +func (r *TaobaoPlaceStoreModifyAPIRequest) SetStoreUpdate(_storeUpdate *StoreUpdateTopDto) error { + r._storeUpdate = _storeUpdate + r.Set("store_update", _storeUpdate) + return nil +} + +// StoreUpdate Getter +func (r TaobaoPlaceStoreModifyAPIRequest) GetStoreUpdate() *StoreUpdateTopDto { + return r._storeUpdate +} diff --git a/model/alsc/TaobaoPlaceStoreModifyAPIResponse.go b/model/alsc/TaobaoPlaceStoreModifyAPIResponse.go new file mode 100644 index 0000000000..596664890d --- /dev/null +++ b/model/alsc/TaobaoPlaceStoreModifyAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家修改线下门店 API返回值 +taobao.place.store.modify + +用于商家修改线下门店信息 +*/ +type TaobaoPlaceStoreModifyAPIResponse struct { + model.CommonResponse + TaobaoPlaceStoreModifyAPIResponseModel +} + +// 商家修改线下门店 成功返回结果 +type TaobaoPlaceStoreModifyAPIResponseModel struct { + XMLName xml.Name `xml:"place_store_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否修改成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/TaobaoPlaceStoreModifyResponse.go b/model/alsc/TaobaoPlaceStoreModifyResponse.go deleted file mode 100644 index a9fe4ddd15..0000000000 --- a/model/alsc/TaobaoPlaceStoreModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家修改线下门店 API返回值 -taobao.place.store.modify - -用于商家修改线下门店信息 -*/ -type TaobaoPlaceStoreModifyAPIResponse struct { - model.CommonResponse - TaobaoPlaceStoreModifyResponse -} - -// 商家修改线下门店 成功返回结果 -type TaobaoPlaceStoreModifyResponse struct { - XMLName xml.Name `xml:"place_store_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否修改成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/TaobaoPlaceStoreTagsUpdateAPIRequest.go b/model/alsc/TaobaoPlaceStoreTagsUpdateAPIRequest.go new file mode 100644 index 0000000000..6d81271f42 --- /dev/null +++ b/model/alsc/TaobaoPlaceStoreTagsUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店打标去标 API请求 +taobao.place.store.tags.update + +门店打标去标 +*/ +type TaobaoPlaceStoreTagsUpdateAPIRequest struct { + model.Params + // 门店信息 + _storeUpdate *StoreUpdateTopDto + // 新增标list + _addTags []int64 + // 删除标list + _removeTags []int64 +} + +// 初始化TaobaoPlaceStoreTagsUpdateAPIRequest对象 +func NewTaobaoPlaceStoreTagsUpdateRequest() *TaobaoPlaceStoreTagsUpdateAPIRequest{ + return &TaobaoPlaceStoreTagsUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPlaceStoreTagsUpdateAPIRequest) GetApiMethodName() string { + return "taobao.place.store.tags.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPlaceStoreTagsUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreUpdate Setter +// 门店信息 +func (r *TaobaoPlaceStoreTagsUpdateAPIRequest) SetStoreUpdate(_storeUpdate *StoreUpdateTopDto) error { + r._storeUpdate = _storeUpdate + r.Set("store_update", _storeUpdate) + return nil +} + +// StoreUpdate Getter +func (r TaobaoPlaceStoreTagsUpdateAPIRequest) GetStoreUpdate() *StoreUpdateTopDto { + return r._storeUpdate +} +// AddTags Setter +// 新增标list +func (r *TaobaoPlaceStoreTagsUpdateAPIRequest) SetAddTags(_addTags []int64) error { + r._addTags = _addTags + r.Set("add_tags", _addTags) + return nil +} + +// AddTags Getter +func (r TaobaoPlaceStoreTagsUpdateAPIRequest) GetAddTags() []int64 { + return r._addTags +} +// RemoveTags Setter +// 删除标list +func (r *TaobaoPlaceStoreTagsUpdateAPIRequest) SetRemoveTags(_removeTags []int64) error { + r._removeTags = _removeTags + r.Set("remove_tags", _removeTags) + return nil +} + +// RemoveTags Getter +func (r TaobaoPlaceStoreTagsUpdateAPIRequest) GetRemoveTags() []int64 { + return r._removeTags +} diff --git a/model/alsc/TaobaoPlaceStoreTagsUpdateAPIResponse.go b/model/alsc/TaobaoPlaceStoreTagsUpdateAPIResponse.go new file mode 100644 index 0000000000..100a17dd2b --- /dev/null +++ b/model/alsc/TaobaoPlaceStoreTagsUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店打标去标 API返回值 +taobao.place.store.tags.update + +门店打标去标 +*/ +type TaobaoPlaceStoreTagsUpdateAPIResponse struct { + model.CommonResponse + TaobaoPlaceStoreTagsUpdateAPIResponseModel +} + +// 门店打标去标 成功返回结果 +type TaobaoPlaceStoreTagsUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"place_store_tags_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果:true成功;false失败 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/alsc/TaobaoPlaceStoreTagsUpdateResponse.go b/model/alsc/TaobaoPlaceStoreTagsUpdateResponse.go deleted file mode 100644 index 21209cee4e..0000000000 --- a/model/alsc/TaobaoPlaceStoreTagsUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店打标去标 API返回值 -taobao.place.store.tags.update - -门店打标去标 -*/ -type TaobaoPlaceStoreTagsUpdateAPIResponse struct { - model.CommonResponse - TaobaoPlaceStoreTagsUpdateResponse -} - -// 门店打标去标 成功返回结果 -type TaobaoPlaceStoreTagsUpdateResponse struct { - XMLName xml.Name `xml:"place_store_tags_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果:true成功;false失败 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/alsc/TaobaoPlaceStorecategoryGetAPIRequest.go b/model/alsc/TaobaoPlaceStorecategoryGetAPIRequest.go new file mode 100644 index 0000000000..4ee8455f56 --- /dev/null +++ b/model/alsc/TaobaoPlaceStorecategoryGetAPIRequest.go @@ -0,0 +1,38 @@ +package alsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取门店类目信息 API请求 +taobao.place.storecategory.get + +获取门店类目信息 +*/ +type TaobaoPlaceStorecategoryGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoPlaceStorecategoryGetAPIRequest对象 +func NewTaobaoPlaceStorecategoryGetRequest() *TaobaoPlaceStorecategoryGetAPIRequest{ + return &TaobaoPlaceStorecategoryGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPlaceStorecategoryGetAPIRequest) GetApiMethodName() string { + return "taobao.place.storecategory.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPlaceStorecategoryGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/alsc/TaobaoPlaceStorecategoryGetAPIResponse.go b/model/alsc/TaobaoPlaceStorecategoryGetAPIResponse.go new file mode 100644 index 0000000000..9d7ec0b590 --- /dev/null +++ b/model/alsc/TaobaoPlaceStorecategoryGetAPIResponse.go @@ -0,0 +1,27 @@ +package alsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取门店类目信息 API返回值 +taobao.place.storecategory.get + +获取门店类目信息 +*/ +type TaobaoPlaceStorecategoryGetAPIResponse struct { + model.CommonResponse + TaobaoPlaceStorecategoryGetAPIResponseModel +} + +// 获取门店类目信息 成功返回结果 +type TaobaoPlaceStorecategoryGetAPIResponseModel struct { + XMLName xml.Name `xml:"place_storecategory_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 门店类目格式 + CategoryList string `json:"category_list,omitempty" xml:"category_list,omitempty"` +} diff --git a/model/alsc/TaobaoPlaceStorecategoryGetResponse.go b/model/alsc/TaobaoPlaceStorecategoryGetResponse.go deleted file mode 100644 index af267b83ae..0000000000 --- a/model/alsc/TaobaoPlaceStorecategoryGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package alsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取门店类目信息 API返回值 -taobao.place.storecategory.get - -获取门店类目信息 -*/ -type TaobaoPlaceStorecategoryGetAPIResponse struct { - model.CommonResponse - TaobaoPlaceStorecategoryGetResponse -} - -// 获取门店类目信息 成功返回结果 -type TaobaoPlaceStorecategoryGetResponse struct { - XMLName xml.Name `xml:"place_storecategory_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 门店类目格式 - CategoryList string `json:"category_list,omitempty" xml:"category_list,omitempty"` -} diff --git a/model/alscmerchant/AlibabaAlscMerchantExtTicketRefundAPIRequest.go b/model/alscmerchant/AlibabaAlscMerchantExtTicketRefundAPIRequest.go new file mode 100644 index 0000000000..928b24fe25 --- /dev/null +++ b/model/alscmerchant/AlibabaAlscMerchantExtTicketRefundAPIRequest.go @@ -0,0 +1,80 @@ +package alscmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +口碑凭证售后退 API请求 +alibaba.alsc.merchant.ext.ticket.refund + +口碑凭证售后退 +*/ +type AlibabaAlscMerchantExtTicketRefundAPIRequest struct { + model.Params + // 券核销流水号,针对该次核销发起售后退操作 + _transId string + // 外部请求号,支持英文字母和数字,由开发者自行定义(不允许重复) + _ticketRequestId string + // 凭证码,包括内部凭证码和外部凭证码,内部凭证码为12位,纯数字,且唯一不重复 + _ticketCode string +} + +// 初始化AlibabaAlscMerchantExtTicketRefundAPIRequest对象 +func NewAlibabaAlscMerchantExtTicketRefundRequest() *AlibabaAlscMerchantExtTicketRefundAPIRequest{ + return &AlibabaAlscMerchantExtTicketRefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscMerchantExtTicketRefundAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.merchant.ext.ticket.refund" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscMerchantExtTicketRefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TransId Setter +// 券核销流水号,针对该次核销发起售后退操作 +func (r *AlibabaAlscMerchantExtTicketRefundAPIRequest) SetTransId(_transId string) error { + r._transId = _transId + r.Set("trans_id", _transId) + return nil +} + +// TransId Getter +func (r AlibabaAlscMerchantExtTicketRefundAPIRequest) GetTransId() string { + return r._transId +} +// TicketRequestId Setter +// 外部请求号,支持英文字母和数字,由开发者自行定义(不允许重复) +func (r *AlibabaAlscMerchantExtTicketRefundAPIRequest) SetTicketRequestId(_ticketRequestId string) error { + r._ticketRequestId = _ticketRequestId + r.Set("ticket_request_id", _ticketRequestId) + return nil +} + +// TicketRequestId Getter +func (r AlibabaAlscMerchantExtTicketRefundAPIRequest) GetTicketRequestId() string { + return r._ticketRequestId +} +// TicketCode Setter +// 凭证码,包括内部凭证码和外部凭证码,内部凭证码为12位,纯数字,且唯一不重复 +func (r *AlibabaAlscMerchantExtTicketRefundAPIRequest) SetTicketCode(_ticketCode string) error { + r._ticketCode = _ticketCode + r.Set("ticket_code", _ticketCode) + return nil +} + +// TicketCode Getter +func (r AlibabaAlscMerchantExtTicketRefundAPIRequest) GetTicketCode() string { + return r._ticketCode +} diff --git a/model/alscmerchant/AlibabaAlscMerchantExtTicketRefundAPIResponse.go b/model/alscmerchant/AlibabaAlscMerchantExtTicketRefundAPIResponse.go new file mode 100644 index 0000000000..e92bcbb4e9 --- /dev/null +++ b/model/alscmerchant/AlibabaAlscMerchantExtTicketRefundAPIResponse.go @@ -0,0 +1,29 @@ +package alscmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +口碑凭证售后退 API返回值 +alibaba.alsc.merchant.ext.ticket.refund + +口碑凭证售后退 +*/ +type AlibabaAlscMerchantExtTicketRefundAPIResponse struct { + model.CommonResponse + AlibabaAlscMerchantExtTicketRefundAPIResponseModel +} + +// 口碑凭证售后退 成功返回结果 +type AlibabaAlscMerchantExtTicketRefundAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_merchant_ext_ticket_refund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 外部请求号,支持英文字母和数字,由开发者自行定义(不允许重复) + TicketRequestId string `json:"ticket_request_id,omitempty" xml:"ticket_request_id,omitempty"` + // 业务返回code + BizCode string `json:"biz_code,omitempty" xml:"biz_code,omitempty"` +} diff --git a/model/alscmerchant/AlibabaAlscMerchantExtTicketRefundResponse.go b/model/alscmerchant/AlibabaAlscMerchantExtTicketRefundResponse.go deleted file mode 100644 index fb60d17439..0000000000 --- a/model/alscmerchant/AlibabaAlscMerchantExtTicketRefundResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package alscmerchant - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -口碑凭证售后退 API返回值 -alibaba.alsc.merchant.ext.ticket.refund - -口碑凭证售后退 -*/ -type AlibabaAlscMerchantExtTicketRefundAPIResponse struct { - model.CommonResponse - AlibabaAlscMerchantExtTicketRefundResponse -} - -// 口碑凭证售后退 成功返回结果 -type AlibabaAlscMerchantExtTicketRefundResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_merchant_ext_ticket_refund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 外部请求号,支持英文字母和数字,由开发者自行定义(不允许重复) - TicketRequestId string `json:"ticket_request_id,omitempty" xml:"ticket_request_id,omitempty"` - // 业务返回code - BizCode string `json:"biz_code,omitempty" xml:"biz_code,omitempty"` -} diff --git a/model/alscmerchant/AlibabaAlscMerchantExtTicketcodeUseAPIRequest.go b/model/alscmerchant/AlibabaAlscMerchantExtTicketcodeUseAPIRequest.go new file mode 100644 index 0000000000..f05f2b5a92 --- /dev/null +++ b/model/alscmerchant/AlibabaAlscMerchantExtTicketcodeUseAPIRequest.go @@ -0,0 +1,52 @@ +package alscmerchant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +外部核销服务 API请求 +alibaba.alsc.merchant.ext.ticketcode.use + +外部核销服务 +*/ +type AlibabaAlscMerchantExtTicketcodeUseAPIRequest struct { + model.Params + // 外部券使用请求 + _useRequest *ExternalTicketUseRequest +} + +// 初始化AlibabaAlscMerchantExtTicketcodeUseAPIRequest对象 +func NewAlibabaAlscMerchantExtTicketcodeUseRequest() *AlibabaAlscMerchantExtTicketcodeUseAPIRequest{ + return &AlibabaAlscMerchantExtTicketcodeUseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlscMerchantExtTicketcodeUseAPIRequest) GetApiMethodName() string { + return "alibaba.alsc.merchant.ext.ticketcode.use" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlscMerchantExtTicketcodeUseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UseRequest Setter +// 外部券使用请求 +func (r *AlibabaAlscMerchantExtTicketcodeUseAPIRequest) SetUseRequest(_useRequest *ExternalTicketUseRequest) error { + r._useRequest = _useRequest + r.Set("use_request", _useRequest) + return nil +} + +// UseRequest Getter +func (r AlibabaAlscMerchantExtTicketcodeUseAPIRequest) GetUseRequest() *ExternalTicketUseRequest { + return r._useRequest +} diff --git a/model/alscmerchant/AlibabaAlscMerchantExtTicketcodeUseAPIResponse.go b/model/alscmerchant/AlibabaAlscMerchantExtTicketcodeUseAPIResponse.go new file mode 100644 index 0000000000..d8a5d41657 --- /dev/null +++ b/model/alscmerchant/AlibabaAlscMerchantExtTicketcodeUseAPIResponse.go @@ -0,0 +1,65 @@ +package alscmerchant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +外部核销服务 API返回值 +alibaba.alsc.merchant.ext.ticketcode.use + +外部核销服务 +*/ +type AlibabaAlscMerchantExtTicketcodeUseAPIResponse struct { + model.CommonResponse + AlibabaAlscMerchantExtTicketcodeUseAPIResponseModel +} + +// 外部核销服务 成功返回结果 +type AlibabaAlscMerchantExtTicketcodeUseAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alsc_merchant_ext_ticketcode_use_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 凭证码所属的订单id + OrderNo string `json:"order_no,omitempty" xml:"order_no,omitempty"` + // 用户购买时商品的原价,单位为元,精确到小数点后两位 + OriginalPrice string `json:"original_price,omitempty" xml:"original_price,omitempty"` + // 该字段用于描述本次返回中的业务属性,现有:BIZ_ALREADY_SUCCESS(幂等业务码) + BizCode string `json:"biz_code,omitempty" xml:"biz_code,omitempty"` + // 用户购买时商品的现价,单位为元,精确到小数点后两位 + CurrentPrice string `json:"current_price,omitempty" xml:"current_price,omitempty"` + // 商家优惠金额,单位为元,精确到小数点后两位,一次性核销多份券场景,返回总商家优惠金额 + DiscountAmount string `json:"discount_amount,omitempty" xml:"discount_amount,omitempty"` + // 交易中可给用户开具发票的金额,单位为元,精确到小数点后两位,一次性核销多份券场景,返回总开票金额 + InvoiceAmount string `json:"invoice_amount,omitempty" xml:"invoice_amount,omitempty"` + // 券核销门店ID + UseShopId string `json:"use_shop_id,omitempty" xml:"use_shop_id,omitempty"` + // 凭证对应商品别名,在口碑商品创建时候设置 + ItemAlias string `json:"item_alias,omitempty" xml:"item_alias,omitempty"` + // 券核销门店名称 + UseShopName string `json:"use_shop_name,omitempty" xml:"use_shop_name,omitempty"` + // 口碑商品ID + ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"` + // 商家实收金额,单位为元,精确到小数点后两位,一次性核销多份券场景,返回总商家实收金额 + ReceiptAmount string `json:"receipt_amount,omitempty" xml:"receipt_amount,omitempty"` + // 用户购买时商品的名称 + ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"` + // 核销流水号 + TicketTransId string `json:"ticket_trans_id,omitempty" xml:"ticket_trans_id,omitempty"` + // 券核销时间 + UseDate string `json:"use_date,omitempty" xml:"use_date,omitempty"` + // 凭证码对应的凭证资产id + VoucherId string `json:"voucher_id,omitempty" xml:"voucher_id,omitempty"` + // 外部请求号,支持英文字母和数字,由开发者自行定义(不允许重复) + TicketRequestId string `json:"ticket_request_id,omitempty" xml:"ticket_request_id,omitempty"` + // 用户购买券的时候实际支付的金额,单位为元,精确到小数点后两位,一次性核销多份券场景,返回总实际支付金额 + BuyerPayAmount string `json:"buyer_pay_amount,omitempty" xml:"buyer_pay_amount,omitempty"` + // 非次卡一次性核销多份场景,被核销的凭证明细信息 + TicketUseDetails []MerchantTicketUseDetail `json:"ticket_use_details,omitempty" xml:"ticket_use_details>merchant_ticket_use_detail,omitempty"` + // 口碑补贴金额,单位为元,精确到小数点后两位,一次性核销多份券场景,返回总口碑补贴金额 + MerchantSubsidyAmount string `json:"merchant_subsidy_amount,omitempty" xml:"merchant_subsidy_amount,omitempty"` + // 12位的券码,券码为纯数字,且唯一不重复 + TicketCode string `json:"ticket_code,omitempty" xml:"ticket_code,omitempty"` +} diff --git a/model/alscmerchant/AlibabaAlscMerchantExtTicketcodeUseResponse.go b/model/alscmerchant/AlibabaAlscMerchantExtTicketcodeUseResponse.go deleted file mode 100644 index af47151e5b..0000000000 --- a/model/alscmerchant/AlibabaAlscMerchantExtTicketcodeUseResponse.go +++ /dev/null @@ -1,65 +0,0 @@ -package alscmerchant - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -外部核销服务 API返回值 -alibaba.alsc.merchant.ext.ticketcode.use - -外部核销服务 -*/ -type AlibabaAlscMerchantExtTicketcodeUseAPIResponse struct { - model.CommonResponse - AlibabaAlscMerchantExtTicketcodeUseResponse -} - -// 外部核销服务 成功返回结果 -type AlibabaAlscMerchantExtTicketcodeUseResponse struct { - XMLName xml.Name `xml:"alibaba_alsc_merchant_ext_ticketcode_use_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 凭证码所属的订单id - OrderNo string `json:"order_no,omitempty" xml:"order_no,omitempty"` - // 用户购买时商品的原价,单位为元,精确到小数点后两位 - OriginalPrice string `json:"original_price,omitempty" xml:"original_price,omitempty"` - // 该字段用于描述本次返回中的业务属性,现有:BIZ_ALREADY_SUCCESS(幂等业务码) - BizCode string `json:"biz_code,omitempty" xml:"biz_code,omitempty"` - // 用户购买时商品的现价,单位为元,精确到小数点后两位 - CurrentPrice string `json:"current_price,omitempty" xml:"current_price,omitempty"` - // 商家优惠金额,单位为元,精确到小数点后两位,一次性核销多份券场景,返回总商家优惠金额 - DiscountAmount string `json:"discount_amount,omitempty" xml:"discount_amount,omitempty"` - // 交易中可给用户开具发票的金额,单位为元,精确到小数点后两位,一次性核销多份券场景,返回总开票金额 - InvoiceAmount string `json:"invoice_amount,omitempty" xml:"invoice_amount,omitempty"` - // 券核销门店ID - UseShopId string `json:"use_shop_id,omitempty" xml:"use_shop_id,omitempty"` - // 凭证对应商品别名,在口碑商品创建时候设置 - ItemAlias string `json:"item_alias,omitempty" xml:"item_alias,omitempty"` - // 券核销门店名称 - UseShopName string `json:"use_shop_name,omitempty" xml:"use_shop_name,omitempty"` - // 口碑商品ID - ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"` - // 商家实收金额,单位为元,精确到小数点后两位,一次性核销多份券场景,返回总商家实收金额 - ReceiptAmount string `json:"receipt_amount,omitempty" xml:"receipt_amount,omitempty"` - // 用户购买时商品的名称 - ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"` - // 核销流水号 - TicketTransId string `json:"ticket_trans_id,omitempty" xml:"ticket_trans_id,omitempty"` - // 券核销时间 - UseDate string `json:"use_date,omitempty" xml:"use_date,omitempty"` - // 凭证码对应的凭证资产id - VoucherId string `json:"voucher_id,omitempty" xml:"voucher_id,omitempty"` - // 外部请求号,支持英文字母和数字,由开发者自行定义(不允许重复) - TicketRequestId string `json:"ticket_request_id,omitempty" xml:"ticket_request_id,omitempty"` - // 用户购买券的时候实际支付的金额,单位为元,精确到小数点后两位,一次性核销多份券场景,返回总实际支付金额 - BuyerPayAmount string `json:"buyer_pay_amount,omitempty" xml:"buyer_pay_amount,omitempty"` - // 非次卡一次性核销多份场景,被核销的凭证明细信息 - TicketUseDetails []MerchantTicketUseDetail `json:"ticket_use_details,omitempty" xml:"ticket_use_details>merchant_ticket_use_detail,omitempty"` - // 口碑补贴金额,单位为元,精确到小数点后两位,一次性核销多份券场景,返回总口碑补贴金额 - MerchantSubsidyAmount string `json:"merchant_subsidy_amount,omitempty" xml:"merchant_subsidy_amount,omitempty"` - // 12位的券码,券码为纯数字,且唯一不重复 - TicketCode string `json:"ticket_code,omitempty" xml:"ticket_code,omitempty"` -} diff --git a/model/antifraud/TaobaoAntifraudRiskassessmentGetAPIRequest.go b/model/antifraud/TaobaoAntifraudRiskassessmentGetAPIRequest.go new file mode 100644 index 0000000000..e488c743f2 --- /dev/null +++ b/model/antifraud/TaobaoAntifraudRiskassessmentGetAPIRequest.go @@ -0,0 +1,52 @@ +package antifraud + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +反欺诈风险识别 API请求 +taobao.antifraud.riskassessment.get + +反欺诈服务是阿里大数据风控服务能力的对外输出,通过用户信誉、行为分析精准识别可信用户和风险用户并实时防御,解决交易、支付、活动等关键业务环节存在的欺诈威胁,保护企业品牌和数据,降低企业经济损失 +*/ +type TaobaoAntifraudRiskassessmentGetAPIRequest struct { + model.Params + // 风控查询参数 + _collinadataContext *CollinadataContext +} + +// 初始化TaobaoAntifraudRiskassessmentGetAPIRequest对象 +func NewTaobaoAntifraudRiskassessmentGetRequest() *TaobaoAntifraudRiskassessmentGetAPIRequest{ + return &TaobaoAntifraudRiskassessmentGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAntifraudRiskassessmentGetAPIRequest) GetApiMethodName() string { + return "taobao.antifraud.riskassessment.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAntifraudRiskassessmentGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CollinadataContext Setter +// 风控查询参数 +func (r *TaobaoAntifraudRiskassessmentGetAPIRequest) SetCollinadataContext(_collinadataContext *CollinadataContext) error { + r._collinadataContext = _collinadataContext + r.Set("collinadata_context", _collinadataContext) + return nil +} + +// CollinadataContext Getter +func (r TaobaoAntifraudRiskassessmentGetAPIRequest) GetCollinadataContext() *CollinadataContext { + return r._collinadataContext +} diff --git a/model/antifraud/TaobaoAntifraudRiskassessmentGetAPIResponse.go b/model/antifraud/TaobaoAntifraudRiskassessmentGetAPIResponse.go new file mode 100644 index 0000000000..69824fac82 --- /dev/null +++ b/model/antifraud/TaobaoAntifraudRiskassessmentGetAPIResponse.go @@ -0,0 +1,27 @@ +package antifraud + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +反欺诈风险识别 API返回值 +taobao.antifraud.riskassessment.get + +反欺诈服务是阿里大数据风控服务能力的对外输出,通过用户信誉、行为分析精准识别可信用户和风险用户并实时防御,解决交易、支付、活动等关键业务环节存在的欺诈威胁,保护企业品牌和数据,降低企业经济损失 +*/ +type TaobaoAntifraudRiskassessmentGetAPIResponse struct { + model.CommonResponse + TaobaoAntifraudRiskassessmentGetAPIResponseModel +} + +// 反欺诈风险识别 成功返回结果 +type TaobaoAntifraudRiskassessmentGetAPIResponseModel struct { + XMLName xml.Name `xml:"antifraud_riskassessment_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + RiskResult *ResultWrapper `json:"risk_result,omitempty" xml:"risk_result,omitempty"` +} diff --git a/model/antifraud/TaobaoAntifraudRiskassessmentGetResponse.go b/model/antifraud/TaobaoAntifraudRiskassessmentGetResponse.go deleted file mode 100644 index fec1262bd8..0000000000 --- a/model/antifraud/TaobaoAntifraudRiskassessmentGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package antifraud - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -反欺诈风险识别 API返回值 -taobao.antifraud.riskassessment.get - -反欺诈服务是阿里大数据风控服务能力的对外输出,通过用户信誉、行为分析精准识别可信用户和风险用户并实时防御,解决交易、支付、活动等关键业务环节存在的欺诈威胁,保护企业品牌和数据,降低企业经济损失 -*/ -type TaobaoAntifraudRiskassessmentGetAPIResponse struct { - model.CommonResponse - TaobaoAntifraudRiskassessmentGetResponse -} - -// 反欺诈风险识别 成功返回结果 -type TaobaoAntifraudRiskassessmentGetResponse struct { - XMLName xml.Name `xml:"antifraud_riskassessment_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - RiskResult *ResultWrapper `json:"risk_result,omitempty" xml:"risk_result,omitempty"` -} diff --git a/model/antifraud/TaobaoAntifraudRiskuserGetAPIRequest.go b/model/antifraud/TaobaoAntifraudRiskuserGetAPIRequest.go new file mode 100644 index 0000000000..c67ce1bd9b --- /dev/null +++ b/model/antifraud/TaobaoAntifraudRiskuserGetAPIRequest.go @@ -0,0 +1,52 @@ +package antifraud + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +反欺诈用户风险查询 API请求 +taobao.antifraud.riskuser.get + +根据用户基础信息,核实平台上的用户是否存在欺诈风险 +*/ +type TaobaoAntifraudRiskuserGetAPIRequest struct { + model.Params + // 风险用户查询条件 + _paramAccountQuery *ParamAccountQuery +} + +// 初始化TaobaoAntifraudRiskuserGetAPIRequest对象 +func NewTaobaoAntifraudRiskuserGetRequest() *TaobaoAntifraudRiskuserGetAPIRequest{ + return &TaobaoAntifraudRiskuserGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAntifraudRiskuserGetAPIRequest) GetApiMethodName() string { + return "taobao.antifraud.riskuser.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAntifraudRiskuserGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamAccountQuery Setter +// 风险用户查询条件 +func (r *TaobaoAntifraudRiskuserGetAPIRequest) SetParamAccountQuery(_paramAccountQuery *ParamAccountQuery) error { + r._paramAccountQuery = _paramAccountQuery + r.Set("param_account_query", _paramAccountQuery) + return nil +} + +// ParamAccountQuery Getter +func (r TaobaoAntifraudRiskuserGetAPIRequest) GetParamAccountQuery() *ParamAccountQuery { + return r._paramAccountQuery +} diff --git a/model/antifraud/TaobaoAntifraudRiskuserGetAPIResponse.go b/model/antifraud/TaobaoAntifraudRiskuserGetAPIResponse.go new file mode 100644 index 0000000000..2f421f1f87 --- /dev/null +++ b/model/antifraud/TaobaoAntifraudRiskuserGetAPIResponse.go @@ -0,0 +1,33 @@ +package antifraud + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +反欺诈用户风险查询 API返回值 +taobao.antifraud.riskuser.get + +根据用户基础信息,核实平台上的用户是否存在欺诈风险 +*/ +type TaobaoAntifraudRiskuserGetAPIResponse struct { + model.CommonResponse + TaobaoAntifraudRiskuserGetAPIResponseModel +} + +// 反欺诈用户风险查询 成功返回结果 +type TaobaoAntifraudRiskuserGetAPIResponseModel struct { + XMLName xml.Name `xml:"antifraud_riskuser_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务调用成功时, 返回的系统流水号 + EventId string `json:"event_id,omitempty" xml:"event_id,omitempty"` + // 风险分值 + Score string `json:"score,omitempty" xml:"score,omitempty"` + // 风险结果, 为reject, review, pass三者之一 + RiskLevel string `json:"risk_level,omitempty" xml:"risk_level,omitempty"` + // 风险结果详情列表,包含多个风险结果单项 + DetailList []AccountRiskDetail `json:"detail_list,omitempty" xml:"detail_list>account_risk_detail,omitempty"` +} diff --git a/model/antifraud/TaobaoAntifraudRiskuserGetResponse.go b/model/antifraud/TaobaoAntifraudRiskuserGetResponse.go deleted file mode 100644 index fd6f7875d8..0000000000 --- a/model/antifraud/TaobaoAntifraudRiskuserGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package antifraud - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -反欺诈用户风险查询 API返回值 -taobao.antifraud.riskuser.get - -根据用户基础信息,核实平台上的用户是否存在欺诈风险 -*/ -type TaobaoAntifraudRiskuserGetAPIResponse struct { - model.CommonResponse - TaobaoAntifraudRiskuserGetResponse -} - -// 反欺诈用户风险查询 成功返回结果 -type TaobaoAntifraudRiskuserGetResponse struct { - XMLName xml.Name `xml:"antifraud_riskuser_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务调用成功时, 返回的系统流水号 - EventId string `json:"event_id,omitempty" xml:"event_id,omitempty"` - // 风险分值 - Score string `json:"score,omitempty" xml:"score,omitempty"` - // 风险结果, 为reject, review, pass三者之一 - RiskLevel string `json:"risk_level,omitempty" xml:"risk_level,omitempty"` - // 风险结果详情列表,包含多个风险结果单项 - DetailList []AccountRiskDetail `json:"detail_list,omitempty" xml:"detail_list>account_risk_detail,omitempty"` -} diff --git a/model/antifraud/TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest.go b/model/antifraud/TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest.go new file mode 100644 index 0000000000..19d298b9c7 --- /dev/null +++ b/model/antifraud/TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest.go @@ -0,0 +1,52 @@ +package antifraud + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +人机识别 API请求 +taobao.collinafacade.nocaptcha.sig.authenticate + +人机识别颁发签名串后,本接口负责向ISV提供签名串校验服务 +*/ +type TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest struct { + model.Params + // 签名串校验接口入参 + _sigAuthenticateContext *SigAuthenticateContext +} + +// 初始化TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest对象 +func NewTaobaoCollinafacadeNocaptchaSigAuthenticateRequest() *TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest{ + return &TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest) GetApiMethodName() string { + return "taobao.collinafacade.nocaptcha.sig.authenticate" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SigAuthenticateContext Setter +// 签名串校验接口入参 +func (r *TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest) SetSigAuthenticateContext(_sigAuthenticateContext *SigAuthenticateContext) error { + r._sigAuthenticateContext = _sigAuthenticateContext + r.Set("sig_authenticate_context", _sigAuthenticateContext) + return nil +} + +// SigAuthenticateContext Getter +func (r TaobaoCollinafacadeNocaptchaSigAuthenticateAPIRequest) GetSigAuthenticateContext() *SigAuthenticateContext { + return r._sigAuthenticateContext +} diff --git a/model/antifraud/TaobaoCollinafacadeNocaptchaSigAuthenticateAPIResponse.go b/model/antifraud/TaobaoCollinafacadeNocaptchaSigAuthenticateAPIResponse.go new file mode 100644 index 0000000000..7e2c403a7a --- /dev/null +++ b/model/antifraud/TaobaoCollinafacadeNocaptchaSigAuthenticateAPIResponse.go @@ -0,0 +1,29 @@ +package antifraud + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +人机识别 API返回值 +taobao.collinafacade.nocaptcha.sig.authenticate + +人机识别颁发签名串后,本接口负责向ISV提供签名串校验服务 +*/ +type TaobaoCollinafacadeNocaptchaSigAuthenticateAPIResponse struct { + model.CommonResponse + TaobaoCollinafacadeNocaptchaSigAuthenticateAPIResponseModel +} + +// 人机识别 成功返回结果 +type TaobaoCollinafacadeNocaptchaSigAuthenticateAPIResponseModel struct { + XMLName xml.Name `xml:"collinafacade_nocaptcha_sig_authenticate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务出参 + Ret int64 `json:"ret,omitempty" xml:"ret,omitempty"` + // 返回authenticateResult + RetDetail *SigAuthenticateResult `json:"ret_detail,omitempty" xml:"ret_detail,omitempty"` +} diff --git a/model/antifraud/TaobaoCollinafacadeNocaptchaSigAuthenticateResponse.go b/model/antifraud/TaobaoCollinafacadeNocaptchaSigAuthenticateResponse.go deleted file mode 100644 index 7f573fec90..0000000000 --- a/model/antifraud/TaobaoCollinafacadeNocaptchaSigAuthenticateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package antifraud - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -人机识别 API返回值 -taobao.collinafacade.nocaptcha.sig.authenticate - -人机识别颁发签名串后,本接口负责向ISV提供签名串校验服务 -*/ -type TaobaoCollinafacadeNocaptchaSigAuthenticateAPIResponse struct { - model.CommonResponse - TaobaoCollinafacadeNocaptchaSigAuthenticateResponse -} - -// 人机识别 成功返回结果 -type TaobaoCollinafacadeNocaptchaSigAuthenticateResponse struct { - XMLName xml.Name `xml:"collinafacade_nocaptcha_sig_authenticate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务出参 - Ret int64 `json:"ret,omitempty" xml:"ret,omitempty"` - // 返回authenticateResult - RetDetail *SigAuthenticateResult `json:"ret_detail,omitempty" xml:"ret_detail,omitempty"` -} diff --git a/model/ascm/AlibabaAscmSettlementInvoiceSynchronizationImAPIRequest.go b/model/ascm/AlibabaAscmSettlementInvoiceSynchronizationImAPIRequest.go new file mode 100644 index 0000000000..289589a5e1 --- /dev/null +++ b/model/ascm/AlibabaAscmSettlementInvoiceSynchronizationImAPIRequest.go @@ -0,0 +1,52 @@ +package ascm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +英迈发票同步到结算 API请求 +alibaba.ascm.settlement.invoice.synchronization.im + +外部供应商通过此API将发货的发票信息推送给供应链中台结算系统 +*/ +type AlibabaAscmSettlementInvoiceSynchronizationImAPIRequest struct { + model.Params + // im invoice xml + _xmlDataSlot string +} + +// 初始化AlibabaAscmSettlementInvoiceSynchronizationImAPIRequest对象 +func NewAlibabaAscmSettlementInvoiceSynchronizationImRequest() *AlibabaAscmSettlementInvoiceSynchronizationImAPIRequest{ + return &AlibabaAscmSettlementInvoiceSynchronizationImAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscmSettlementInvoiceSynchronizationImAPIRequest) GetApiMethodName() string { + return "alibaba.ascm.settlement.invoice.synchronization.im" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscmSettlementInvoiceSynchronizationImAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// XmlDataSlot Setter +// im invoice xml +func (r *AlibabaAscmSettlementInvoiceSynchronizationImAPIRequest) SetXmlDataSlot(_xmlDataSlot string) error { + r._xmlDataSlot = _xmlDataSlot + r.Set("xml_data_slot", _xmlDataSlot) + return nil +} + +// XmlDataSlot Getter +func (r AlibabaAscmSettlementInvoiceSynchronizationImAPIRequest) GetXmlDataSlot() string { + return r._xmlDataSlot +} diff --git a/model/ascm/AlibabaAscmSettlementInvoiceSynchronizationImAPIResponse.go b/model/ascm/AlibabaAscmSettlementInvoiceSynchronizationImAPIResponse.go new file mode 100644 index 0000000000..6982ab89ae --- /dev/null +++ b/model/ascm/AlibabaAscmSettlementInvoiceSynchronizationImAPIResponse.go @@ -0,0 +1,27 @@ +package ascm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +英迈发票同步到结算 API返回值 +alibaba.ascm.settlement.invoice.synchronization.im + +外部供应商通过此API将发货的发票信息推送给供应链中台结算系统 +*/ +type AlibabaAscmSettlementInvoiceSynchronizationImAPIResponse struct { + model.CommonResponse + AlibabaAscmSettlementInvoiceSynchronizationImAPIResponseModel +} + +// 英迈发票同步到结算 成功返回结果 +type AlibabaAscmSettlementInvoiceSynchronizationImAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascm_settlement_invoice_synchronization_im_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *SettlementGatewayResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascm/AlibabaAscmSettlementInvoiceSynchronizationImResponse.go b/model/ascm/AlibabaAscmSettlementInvoiceSynchronizationImResponse.go deleted file mode 100644 index 81b61b7f30..0000000000 --- a/model/ascm/AlibabaAscmSettlementInvoiceSynchronizationImResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -英迈发票同步到结算 API返回值 -alibaba.ascm.settlement.invoice.synchronization.im - -外部供应商通过此API将发货的发票信息推送给供应链中台结算系统 -*/ -type AlibabaAscmSettlementInvoiceSynchronizationImAPIResponse struct { - model.CommonResponse - AlibabaAscmSettlementInvoiceSynchronizationImResponse -} - -// 英迈发票同步到结算 成功返回结果 -type AlibabaAscmSettlementInvoiceSynchronizationImResponse struct { - XMLName xml.Name `xml:"alibaba_ascm_settlement_invoice_synchronization_im_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *SettlementGatewayResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascp/TmallAscpPricingScmTofAPIRequest.go b/model/ascp/TmallAscpPricingScmTofAPIRequest.go new file mode 100644 index 0000000000..44dbb1a383 --- /dev/null +++ b/model/ascp/TmallAscpPricingScmTofAPIRequest.go @@ -0,0 +1,52 @@ +package ascp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +TOF&SCM营销域对接-成本录入设置 API请求 +tmall.ascp.pricing.scm.tof + +TOF&SCM营销域对接-成本录入设置 +*/ +type TmallAscpPricingScmTofAPIRequest struct { + model.Params + // 成本价集合 + _costs []ItemSkuCost +} + +// 初始化TmallAscpPricingScmTofAPIRequest对象 +func NewTmallAscpPricingScmTofRequest() *TmallAscpPricingScmTofAPIRequest{ + return &TmallAscpPricingScmTofAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallAscpPricingScmTofAPIRequest) GetApiMethodName() string { + return "tmall.ascp.pricing.scm.tof" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallAscpPricingScmTofAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Costs Setter +// 成本价集合 +func (r *TmallAscpPricingScmTofAPIRequest) SetCosts(_costs []ItemSkuCost) error { + r._costs = _costs + r.Set("costs", _costs) + return nil +} + +// Costs Getter +func (r TmallAscpPricingScmTofAPIRequest) GetCosts() []ItemSkuCost { + return r._costs +} diff --git a/model/ascp/TmallAscpPricingScmTofAPIResponse.go b/model/ascp/TmallAscpPricingScmTofAPIResponse.go new file mode 100644 index 0000000000..bf4fd9df42 --- /dev/null +++ b/model/ascp/TmallAscpPricingScmTofAPIResponse.go @@ -0,0 +1,31 @@ +package ascp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +TOF&SCM营销域对接-成本录入设置 API返回值 +tmall.ascp.pricing.scm.tof + +TOF&SCM营销域对接-成本录入设置 +*/ +type TmallAscpPricingScmTofAPIResponse struct { + model.CommonResponse + TmallAscpPricingScmTofAPIResponseModel +} + +// TOF&SCM营销域对接-成本录入设置 成功返回结果 +type TmallAscpPricingScmTofAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_ascp_pricing_scm_tof_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // reasonsForPartSucc + ReasonsForPartSuccList []string `json:"reasons_for_part_succ_list,omitempty" xml:"reasons_for_part_succ_list>string,omitempty"` + // 成功 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/ascp/TmallAscpPricingScmTofResponse.go b/model/ascp/TmallAscpPricingScmTofResponse.go deleted file mode 100644 index 8c7da11fca..0000000000 --- a/model/ascp/TmallAscpPricingScmTofResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package ascp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -TOF&SCM营销域对接-成本录入设置 API返回值 -tmall.ascp.pricing.scm.tof - -TOF&SCM营销域对接-成本录入设置 -*/ -type TmallAscpPricingScmTofAPIResponse struct { - model.CommonResponse - TmallAscpPricingScmTofResponse -} - -// TOF&SCM营销域对接-成本录入设置 成功返回结果 -type TmallAscpPricingScmTofResponse struct { - XMLName xml.Name `xml:"tmall_ascp_pricing_scm_tof_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // reasonsForPartSucc - ReasonsForPartSuccList []string `json:"reasons_for_part_succ_list,omitempty" xml:"reasons_for_part_succ_list>string,omitempty"` - // 成功 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIRequest.go b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIRequest.go new file mode 100644 index 0000000000..761177646b --- /dev/null +++ b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商直发-商家仓库存查询服务 API请求 +alibaba.ascp.aic.supplier.aicinventory.channel.inventory.query + +提供商家基于货品、供应商、仓,查询ascp 实时商家仓库存查询数据。 +*/ +type AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIRequest struct { + model.Params + // 商家仓库存查询请求参数 + _merchantInventoryQueryRequest *MerchantInventoryQuery +} + +// 初始化AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIRequest对象 +func NewAlibabaAscpAicSupplierAicinventoryChannelInventoryQueryRequest() *AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIRequest{ + return &AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.aic.supplier.aicinventory.channel.inventory.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MerchantInventoryQueryRequest Setter +// 商家仓库存查询请求参数 +func (r *AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIRequest) SetMerchantInventoryQueryRequest(_merchantInventoryQueryRequest *MerchantInventoryQuery) error { + r._merchantInventoryQueryRequest = _merchantInventoryQueryRequest + r.Set("merchant_inventory_query_request", _merchantInventoryQueryRequest) + return nil +} + +// MerchantInventoryQueryRequest Getter +func (r AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIRequest) GetMerchantInventoryQueryRequest() *MerchantInventoryQuery { + return r._merchantInventoryQueryRequest +} diff --git a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIResponse.go b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIResponse.go new file mode 100644 index 0000000000..bcffa81ea8 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商直发-商家仓库存查询服务 API返回值 +alibaba.ascp.aic.supplier.aicinventory.channel.inventory.query + +提供商家基于货品、供应商、仓,查询ascp 实时商家仓库存查询数据。 +*/ +type AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIResponse struct { + model.CommonResponse + AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIResponseModel +} + +// 供应商直发-商家仓库存查询服务 成功返回结果 +type AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_aic_supplier_aicinventory_channel_inventory_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应结果 + MerchantInventoryQueryResponse *ResultWrapper `json:"merchant_inventory_query_response,omitempty" xml:"merchant_inventory_query_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryResponse.go b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryResponse.go deleted file mode 100644 index 8ecb1a0694..0000000000 --- a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商直发-商家仓库存查询服务 API返回值 -alibaba.ascp.aic.supplier.aicinventory.channel.inventory.query - -提供商家基于货品、供应商、仓,查询ascp 实时商家仓库存查询数据。 -*/ -type AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryAPIResponse struct { - model.CommonResponse - AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryResponse -} - -// 供应商直发-商家仓库存查询服务 成功返回结果 -type AlibabaAscpAicSupplierAicinventoryChannelInventoryQueryResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_aic_supplier_aicinventory_channel_inventory_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应结果 - MerchantInventoryQueryResponse *ResultWrapper `json:"merchant_inventory_query_response,omitempty" xml:"merchant_inventory_query_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIRequest.go b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIRequest.go new file mode 100644 index 0000000000..802413be92 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +负卖库存失效接口 API请求 +alibaba.ascp.aic.supplier.aicinventory.negative.sale.invalidate + +失效负卖库存数据 +*/ +type AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIRequest struct { + model.Params + // 入参 + _futureInventoryMainOperationQuest *Futureinventorymainoperationquest +} + +// 初始化AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIRequest对象 +func NewAlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateRequest() *AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIRequest{ + return &AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.aic.supplier.aicinventory.negative.sale.invalidate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FutureInventoryMainOperationQuest Setter +// 入参 +func (r *AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIRequest) SetFutureInventoryMainOperationQuest(_futureInventoryMainOperationQuest *Futureinventorymainoperationquest) error { + r._futureInventoryMainOperationQuest = _futureInventoryMainOperationQuest + r.Set("future_inventory_main_operation_quest", _futureInventoryMainOperationQuest) + return nil +} + +// FutureInventoryMainOperationQuest Getter +func (r AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIRequest) GetFutureInventoryMainOperationQuest() *Futureinventorymainoperationquest { + return r._futureInventoryMainOperationQuest +} diff --git a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIResponse.go b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIResponse.go new file mode 100644 index 0000000000..f052d38142 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +负卖库存失效接口 API返回值 +alibaba.ascp.aic.supplier.aicinventory.negative.sale.invalidate + +失效负卖库存数据 +*/ +type AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIResponse struct { + model.CommonResponse + AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIResponseModel +} + +// 负卖库存失效接口 成功返回结果 +type AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_aic_supplier_aicinventory_negative_sale_invalidate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + FutureInvItemResponse *ResultWrapper `json:"future_inv_item_response,omitempty" xml:"future_inv_item_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateResponse.go b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateResponse.go deleted file mode 100644 index e4e5b6f4e8..0000000000 --- a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -负卖库存失效接口 API返回值 -alibaba.ascp.aic.supplier.aicinventory.negative.sale.invalidate - -失效负卖库存数据 -*/ -type AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateAPIResponse struct { - model.CommonResponse - AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateResponse -} - -// 负卖库存失效接口 成功返回结果 -type AlibabaAscpAicSupplierAicinventoryNegativeSaleInvalidateResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_aic_supplier_aicinventory_negative_sale_invalidate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - FutureInvItemResponse *ResultWrapper `json:"future_inv_item_response,omitempty" xml:"future_inv_item_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIRequest.go b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIRequest.go new file mode 100644 index 0000000000..3d8306c792 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AIC负卖库存新增和修改接口 API请求 +alibaba.ascp.aic.supplier.aicinventory.negative.sale.publish + +新增负卖库存记录和变更负卖库存记录 +*/ +type AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIRequest struct { + model.Params + // 入参 + _futureInventoryMainOperationQuest *Futureinventorymainoperationquest +} + +// 初始化AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIRequest对象 +func NewAlibabaAscpAicSupplierAicinventoryNegativeSalePublishRequest() *AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIRequest{ + return &AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.aic.supplier.aicinventory.negative.sale.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FutureInventoryMainOperationQuest Setter +// 入参 +func (r *AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIRequest) SetFutureInventoryMainOperationQuest(_futureInventoryMainOperationQuest *Futureinventorymainoperationquest) error { + r._futureInventoryMainOperationQuest = _futureInventoryMainOperationQuest + r.Set("future_inventory_main_operation_quest", _futureInventoryMainOperationQuest) + return nil +} + +// FutureInventoryMainOperationQuest Getter +func (r AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIRequest) GetFutureInventoryMainOperationQuest() *Futureinventorymainoperationquest { + return r._futureInventoryMainOperationQuest +} diff --git a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIResponse.go b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIResponse.go new file mode 100644 index 0000000000..cfb30fcd4e --- /dev/null +++ b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AIC负卖库存新增和修改接口 API返回值 +alibaba.ascp.aic.supplier.aicinventory.negative.sale.publish + +新增负卖库存记录和变更负卖库存记录 +*/ +type AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIResponse struct { + model.CommonResponse + AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIResponseModel +} + +// AIC负卖库存新增和修改接口 成功返回结果 +type AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_aic_supplier_aicinventory_negative_sale_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + FutureInvItemResponse *ResultWrapper `json:"future_inv_item_response,omitempty" xml:"future_inv_item_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSalePublishResponse.go b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSalePublishResponse.go deleted file mode 100644 index 88b9355c30..0000000000 --- a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSalePublishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AIC负卖库存新增和修改接口 API返回值 -alibaba.ascp.aic.supplier.aicinventory.negative.sale.publish - -新增负卖库存记录和变更负卖库存记录 -*/ -type AlibabaAscpAicSupplierAicinventoryNegativeSalePublishAPIResponse struct { - model.CommonResponse - AlibabaAscpAicSupplierAicinventoryNegativeSalePublishResponse -} - -// AIC负卖库存新增和修改接口 成功返回结果 -type AlibabaAscpAicSupplierAicinventoryNegativeSalePublishResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_aic_supplier_aicinventory_negative_sale_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - FutureInvItemResponse *ResultWrapper `json:"future_inv_item_response,omitempty" xml:"future_inv_item_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIRequest.go b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIRequest.go new file mode 100644 index 0000000000..f61645efb4 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家查询负卖库存 API请求 +alibaba.ascp.aic.supplier.aicinventory.negative.sale.query + +商家根据当前接口查询负卖货品的库存 +*/ +type AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIRequest struct { + model.Params + // 库存查询参数 + _aicinventoryQueryRequest *Aicinventoryqueryrequest +} + +// 初始化AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIRequest对象 +func NewAlibabaAscpAicSupplierAicinventoryNegativeSaleQueryRequest() *AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIRequest{ + return &AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.aic.supplier.aicinventory.negative.sale.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AicinventoryQueryRequest Setter +// 库存查询参数 +func (r *AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIRequest) SetAicinventoryQueryRequest(_aicinventoryQueryRequest *Aicinventoryqueryrequest) error { + r._aicinventoryQueryRequest = _aicinventoryQueryRequest + r.Set("aicinventory_query_request", _aicinventoryQueryRequest) + return nil +} + +// AicinventoryQueryRequest Getter +func (r AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIRequest) GetAicinventoryQueryRequest() *Aicinventoryqueryrequest { + return r._aicinventoryQueryRequest +} diff --git a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIResponse.go b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIResponse.go new file mode 100644 index 0000000000..3166a6ba63 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家查询负卖库存 API返回值 +alibaba.ascp.aic.supplier.aicinventory.negative.sale.query + +商家根据当前接口查询负卖货品的库存 +*/ +type AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIResponse struct { + model.CommonResponse + AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIResponseModel +} + +// 商家查询负卖库存 成功返回结果 +type AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_aic_supplier_aicinventory_negative_sale_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + AicinventoryQueryResponse *ResultWrapper `json:"aicinventory_query_response,omitempty" xml:"aicinventory_query_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryResponse.go b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryResponse.go deleted file mode 100644 index 059118c6a4..0000000000 --- a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家查询负卖库存 API返回值 -alibaba.ascp.aic.supplier.aicinventory.negative.sale.query - -商家根据当前接口查询负卖货品的库存 -*/ -type AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryAPIResponse struct { - model.CommonResponse - AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryResponse -} - -// 商家查询负卖库存 成功返回结果 -type AlibabaAscpAicSupplierAicinventoryNegativeSaleQueryResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_aic_supplier_aicinventory_negative_sale_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - AicinventoryQueryResponse *ResultWrapper `json:"aicinventory_query_response,omitempty" xml:"aicinventory_query_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryPublishAPIRequest.go b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryPublishAPIRequest.go new file mode 100644 index 0000000000..d223551a5e --- /dev/null +++ b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryPublishAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家仓操作aic库存发布服务 API请求 +alibaba.ascp.aic.supplier.aicinventory.publish + +商家调用这个接口来发布增加库存数据 +*/ +type AlibabaAscpAicSupplierAicinventoryPublishAPIRequest struct { + model.Params + // 库存发布请求参数 + _aicInventoryPublishRequest *Aicinventorypublishrequest +} + +// 初始化AlibabaAscpAicSupplierAicinventoryPublishAPIRequest对象 +func NewAlibabaAscpAicSupplierAicinventoryPublishRequest() *AlibabaAscpAicSupplierAicinventoryPublishAPIRequest{ + return &AlibabaAscpAicSupplierAicinventoryPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpAicSupplierAicinventoryPublishAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.aic.supplier.aicinventory.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpAicSupplierAicinventoryPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AicInventoryPublishRequest Setter +// 库存发布请求参数 +func (r *AlibabaAscpAicSupplierAicinventoryPublishAPIRequest) SetAicInventoryPublishRequest(_aicInventoryPublishRequest *Aicinventorypublishrequest) error { + r._aicInventoryPublishRequest = _aicInventoryPublishRequest + r.Set("aic_inventory_publish_request", _aicInventoryPublishRequest) + return nil +} + +// AicInventoryPublishRequest Getter +func (r AlibabaAscpAicSupplierAicinventoryPublishAPIRequest) GetAicInventoryPublishRequest() *Aicinventorypublishrequest { + return r._aicInventoryPublishRequest +} diff --git a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryPublishAPIResponse.go b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryPublishAPIResponse.go new file mode 100644 index 0000000000..4660792703 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryPublishAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家仓操作aic库存发布服务 API返回值 +alibaba.ascp.aic.supplier.aicinventory.publish + +商家调用这个接口来发布增加库存数据 +*/ +type AlibabaAscpAicSupplierAicinventoryPublishAPIResponse struct { + model.CommonResponse + AlibabaAscpAicSupplierAicinventoryPublishAPIResponseModel +} + +// 商家仓操作aic库存发布服务 成功返回结果 +type AlibabaAscpAicSupplierAicinventoryPublishAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_aic_supplier_aicinventory_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + AicInventoryPublishResponse *ResultWrapper `json:"aic_inventory_publish_response,omitempty" xml:"aic_inventory_publish_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryPublishResponse.go b/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryPublishResponse.go deleted file mode 100644 index afde219d8c..0000000000 --- a/model/ascpchannel/AlibabaAscpAicSupplierAicinventoryPublishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家仓操作aic库存发布服务 API返回值 -alibaba.ascp.aic.supplier.aicinventory.publish - -商家调用这个接口来发布增加库存数据 -*/ -type AlibabaAscpAicSupplierAicinventoryPublishAPIResponse struct { - model.CommonResponse - AlibabaAscpAicSupplierAicinventoryPublishResponse -} - -// 商家仓操作aic库存发布服务 成功返回结果 -type AlibabaAscpAicSupplierAicinventoryPublishResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_aic_supplier_aicinventory_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - AicInventoryPublishResponse *ResultWrapper `json:"aic_inventory_publish_response,omitempty" xml:"aic_inventory_publish_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorInventoryGetAPIRequest.go b/model/ascpchannel/AlibabaAscpChannelDistributorInventoryGetAPIRequest.go new file mode 100644 index 0000000000..ec20b55d79 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelDistributorInventoryGetAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +链渠道中心淘外库存查询 API请求 +alibaba.ascp.channel.distributor.inventory.get + +此api为淘外分销的渠道产品库存查询标准api,淘外分销商专用 +*/ +type AlibabaAscpChannelDistributorInventoryGetAPIRequest struct { + model.Params + // 入参 + _inventoryRequest *ChannelInventoryQuery +} + +// 初始化AlibabaAscpChannelDistributorInventoryGetAPIRequest对象 +func NewAlibabaAscpChannelDistributorInventoryGetRequest() *AlibabaAscpChannelDistributorInventoryGetAPIRequest{ + return &AlibabaAscpChannelDistributorInventoryGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpChannelDistributorInventoryGetAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.channel.distributor.inventory.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpChannelDistributorInventoryGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InventoryRequest Setter +// 入参 +func (r *AlibabaAscpChannelDistributorInventoryGetAPIRequest) SetInventoryRequest(_inventoryRequest *ChannelInventoryQuery) error { + r._inventoryRequest = _inventoryRequest + r.Set("inventory_request", _inventoryRequest) + return nil +} + +// InventoryRequest Getter +func (r AlibabaAscpChannelDistributorInventoryGetAPIRequest) GetInventoryRequest() *ChannelInventoryQuery { + return r._inventoryRequest +} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorInventoryGetAPIResponse.go b/model/ascpchannel/AlibabaAscpChannelDistributorInventoryGetAPIResponse.go new file mode 100644 index 0000000000..b2394b7681 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelDistributorInventoryGetAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +链渠道中心淘外库存查询 API返回值 +alibaba.ascp.channel.distributor.inventory.get + +此api为淘外分销的渠道产品库存查询标准api,淘外分销商专用 +*/ +type AlibabaAscpChannelDistributorInventoryGetAPIResponse struct { + model.CommonResponse + AlibabaAscpChannelDistributorInventoryGetAPIResponseModel +} + +// 链渠道中心淘外库存查询 成功返回结果 +type AlibabaAscpChannelDistributorInventoryGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_channel_distributor_inventory_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlibabaAscpChannelDistributorInventoryGetResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorInventoryGetResponse.go b/model/ascpchannel/AlibabaAscpChannelDistributorInventoryGetResponse.go deleted file mode 100644 index 307c81092c..0000000000 --- a/model/ascpchannel/AlibabaAscpChannelDistributorInventoryGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -链渠道中心淘外库存查询 API返回值 -alibaba.ascp.channel.distributor.inventory.get - -此api为淘外分销的渠道产品库存查询标准api,淘外分销商专用 -*/ -type AlibabaAscpChannelDistributorInventoryGetAPIResponse struct { - model.CommonResponse - AlibabaAscpChannelDistributorInventoryGetResponse -} - -// 链渠道中心淘外库存查询 成功返回结果 -type AlibabaAscpChannelDistributorInventoryGetResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_channel_distributor_inventory_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlibabaAscpChannelDistributorInventoryGetResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorInventoryGetResultDto.go b/model/ascpchannel/AlibabaAscpChannelDistributorInventoryGetResultDto.go new file mode 100644 index 0000000000..e96d3b2693 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelDistributorInventoryGetResultDto.go @@ -0,0 +1,15 @@ +package ascpchannel + +// AlibabaAscpChannelDistributorInventoryGetResultDto +type AlibabaAscpChannelDistributorInventoryGetResultDto struct { + // 调用链路ID + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 结果 + Datas []ChannelInventoryDto `json:"datas,omitempty" xml:"datas>channel_inventory_dto,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorInventoryListGetAPIRequest.go b/model/ascpchannel/AlibabaAscpChannelDistributorInventoryListGetAPIRequest.go new file mode 100644 index 0000000000..246f5b5b2a --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelDistributorInventoryListGetAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询渠道库存 API请求 +alibaba.ascp.channel.distributor.inventory.list.get + +淘外分销批量查询渠道产品的库存 +*/ +type AlibabaAscpChannelDistributorInventoryListGetAPIRequest struct { + model.Params + // 系统自动生成 + _inventoryRequest *BatchChannelInventoryQuery +} + +// 初始化AlibabaAscpChannelDistributorInventoryListGetAPIRequest对象 +func NewAlibabaAscpChannelDistributorInventoryListGetRequest() *AlibabaAscpChannelDistributorInventoryListGetAPIRequest{ + return &AlibabaAscpChannelDistributorInventoryListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpChannelDistributorInventoryListGetAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.channel.distributor.inventory.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpChannelDistributorInventoryListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InventoryRequest Setter +// 系统自动生成 +func (r *AlibabaAscpChannelDistributorInventoryListGetAPIRequest) SetInventoryRequest(_inventoryRequest *BatchChannelInventoryQuery) error { + r._inventoryRequest = _inventoryRequest + r.Set("inventory_request", _inventoryRequest) + return nil +} + +// InventoryRequest Getter +func (r AlibabaAscpChannelDistributorInventoryListGetAPIRequest) GetInventoryRequest() *BatchChannelInventoryQuery { + return r._inventoryRequest +} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorInventoryListGetAPIResponse.go b/model/ascpchannel/AlibabaAscpChannelDistributorInventoryListGetAPIResponse.go new file mode 100644 index 0000000000..f3334c5a90 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelDistributorInventoryListGetAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询渠道库存 API返回值 +alibaba.ascp.channel.distributor.inventory.list.get + +淘外分销批量查询渠道产品的库存 +*/ +type AlibabaAscpChannelDistributorInventoryListGetAPIResponse struct { + model.CommonResponse + AlibabaAscpChannelDistributorInventoryListGetAPIResponseModel +} + +// 批量查询渠道库存 成功返回结果 +type AlibabaAscpChannelDistributorInventoryListGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_channel_distributor_inventory_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlibabaAscpChannelDistributorInventoryListGetResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorInventoryListGetResponse.go b/model/ascpchannel/AlibabaAscpChannelDistributorInventoryListGetResponse.go deleted file mode 100644 index 87868d1724..0000000000 --- a/model/ascpchannel/AlibabaAscpChannelDistributorInventoryListGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量查询渠道库存 API返回值 -alibaba.ascp.channel.distributor.inventory.list.get - -淘外分销批量查询渠道产品的库存 -*/ -type AlibabaAscpChannelDistributorInventoryListGetAPIResponse struct { - model.CommonResponse - AlibabaAscpChannelDistributorInventoryListGetResponse -} - -// 批量查询渠道库存 成功返回结果 -type AlibabaAscpChannelDistributorInventoryListGetResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_channel_distributor_inventory_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlibabaAscpChannelDistributorInventoryListGetResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorInventoryListGetResultDto.go b/model/ascpchannel/AlibabaAscpChannelDistributorInventoryListGetResultDto.go new file mode 100644 index 0000000000..78bc931447 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelDistributorInventoryListGetResultDto.go @@ -0,0 +1,15 @@ +package ascpchannel + +// AlibabaAscpChannelDistributorInventoryListGetResultDto +type AlibabaAscpChannelDistributorInventoryListGetResultDto struct { + // 调用链路ID + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 结果 + Datas []ChannelInventoryDto `json:"datas,omitempty" xml:"datas>channel_inventory_dto,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorPriceGetAPIRequest.go b/model/ascpchannel/AlibabaAscpChannelDistributorPriceGetAPIRequest.go new file mode 100644 index 0000000000..3c4946a551 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelDistributorPriceGetAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +链渠道中心淘外分销价格查询(分销商专用) API请求 +alibaba.ascp.channel.distributor.price.get + +此api为淘外分销的渠道产品价格查询标准api,淘外分销商专用 +*/ +type AlibabaAscpChannelDistributorPriceGetAPIRequest struct { + model.Params + // 价格入参 + _priceRequest *Pricerequest +} + +// 初始化AlibabaAscpChannelDistributorPriceGetAPIRequest对象 +func NewAlibabaAscpChannelDistributorPriceGetRequest() *AlibabaAscpChannelDistributorPriceGetAPIRequest{ + return &AlibabaAscpChannelDistributorPriceGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpChannelDistributorPriceGetAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.channel.distributor.price.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpChannelDistributorPriceGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PriceRequest Setter +// 价格入参 +func (r *AlibabaAscpChannelDistributorPriceGetAPIRequest) SetPriceRequest(_priceRequest *Pricerequest) error { + r._priceRequest = _priceRequest + r.Set("price_request", _priceRequest) + return nil +} + +// PriceRequest Getter +func (r AlibabaAscpChannelDistributorPriceGetAPIRequest) GetPriceRequest() *Pricerequest { + return r._priceRequest +} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorPriceGetAPIResponse.go b/model/ascpchannel/AlibabaAscpChannelDistributorPriceGetAPIResponse.go new file mode 100644 index 0000000000..2098036712 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelDistributorPriceGetAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +链渠道中心淘外分销价格查询(分销商专用) API返回值 +alibaba.ascp.channel.distributor.price.get + +此api为淘外分销的渠道产品价格查询标准api,淘外分销商专用 +*/ +type AlibabaAscpChannelDistributorPriceGetAPIResponse struct { + model.CommonResponse + AlibabaAscpChannelDistributorPriceGetAPIResponseModel +} + +// 链渠道中心淘外分销价格查询(分销商专用) 成功返回结果 +type AlibabaAscpChannelDistributorPriceGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_channel_distributor_price_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlibabaAscpChannelDistributorPriceGetResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorPriceGetResponse.go b/model/ascpchannel/AlibabaAscpChannelDistributorPriceGetResponse.go deleted file mode 100644 index 231493e5d6..0000000000 --- a/model/ascpchannel/AlibabaAscpChannelDistributorPriceGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -链渠道中心淘外分销价格查询(分销商专用) API返回值 -alibaba.ascp.channel.distributor.price.get - -此api为淘外分销的渠道产品价格查询标准api,淘外分销商专用 -*/ -type AlibabaAscpChannelDistributorPriceGetAPIResponse struct { - model.CommonResponse - AlibabaAscpChannelDistributorPriceGetResponse -} - -// 链渠道中心淘外分销价格查询(分销商专用) 成功返回结果 -type AlibabaAscpChannelDistributorPriceGetResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_channel_distributor_price_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlibabaAscpChannelDistributorPriceGetResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorPriceGetResultDto.go b/model/ascpchannel/AlibabaAscpChannelDistributorPriceGetResultDto.go new file mode 100644 index 0000000000..d495962661 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelDistributorPriceGetResultDto.go @@ -0,0 +1,13 @@ +package ascpchannel + +// AlibabaAscpChannelDistributorPriceGetResultDto +type AlibabaAscpChannelDistributorPriceGetResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 价格数据 + Data *TopDistributorPriceResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorProductDetailAPIRequest.go b/model/ascpchannel/AlibabaAscpChannelDistributorProductDetailAPIRequest.go new file mode 100644 index 0000000000..bfcc5cf36b --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelDistributorProductDetailAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取供应链渠道中心品的详情接口(淘外分销商专用) API请求 +alibaba.ascp.channel.distributor.product.detail + +此api为淘外分销的品批量查询标准api,淘外分销商专用 +*/ +type AlibabaAscpChannelDistributorProductDetailAPIRequest struct { + model.Params + // 产品详情查询入参 + _productDetailRequest *ProductDetailQueryRequestForDistributor +} + +// 初始化AlibabaAscpChannelDistributorProductDetailAPIRequest对象 +func NewAlibabaAscpChannelDistributorProductDetailRequest() *AlibabaAscpChannelDistributorProductDetailAPIRequest{ + return &AlibabaAscpChannelDistributorProductDetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpChannelDistributorProductDetailAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.channel.distributor.product.detail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpChannelDistributorProductDetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductDetailRequest Setter +// 产品详情查询入参 +func (r *AlibabaAscpChannelDistributorProductDetailAPIRequest) SetProductDetailRequest(_productDetailRequest *ProductDetailQueryRequestForDistributor) error { + r._productDetailRequest = _productDetailRequest + r.Set("product_detail_request", _productDetailRequest) + return nil +} + +// ProductDetailRequest Getter +func (r AlibabaAscpChannelDistributorProductDetailAPIRequest) GetProductDetailRequest() *ProductDetailQueryRequestForDistributor { + return r._productDetailRequest +} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorProductDetailAPIResponse.go b/model/ascpchannel/AlibabaAscpChannelDistributorProductDetailAPIResponse.go new file mode 100644 index 0000000000..3d655996e5 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelDistributorProductDetailAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取供应链渠道中心品的详情接口(淘外分销商专用) API返回值 +alibaba.ascp.channel.distributor.product.detail + +此api为淘外分销的品批量查询标准api,淘外分销商专用 +*/ +type AlibabaAscpChannelDistributorProductDetailAPIResponse struct { + model.CommonResponse + AlibabaAscpChannelDistributorProductDetailAPIResponseModel +} + +// 获取供应链渠道中心品的详情接口(淘外分销商专用) 成功返回结果 +type AlibabaAscpChannelDistributorProductDetailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_channel_distributor_product_detail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *ResultWrapper `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorProductDetailResponse.go b/model/ascpchannel/AlibabaAscpChannelDistributorProductDetailResponse.go deleted file mode 100644 index 8716909ba3..0000000000 --- a/model/ascpchannel/AlibabaAscpChannelDistributorProductDetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取供应链渠道中心品的详情接口(淘外分销商专用) API返回值 -alibaba.ascp.channel.distributor.product.detail - -此api为淘外分销的品批量查询标准api,淘外分销商专用 -*/ -type AlibabaAscpChannelDistributorProductDetailAPIResponse struct { - model.CommonResponse - AlibabaAscpChannelDistributorProductDetailResponse -} - -// 获取供应链渠道中心品的详情接口(淘外分销商专用) 成功返回结果 -type AlibabaAscpChannelDistributorProductDetailResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_channel_distributor_product_detail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *ResultWrapper `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorProductListAPIRequest.go b/model/ascpchannel/AlibabaAscpChannelDistributorProductListAPIRequest.go new file mode 100644 index 0000000000..0a4791a7d4 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelDistributorProductListAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应链渠道中心淘外分销品批量查询(分销商专用) API请求 +alibaba.ascp.channel.distributor.product.list + +此api为淘外分销的品批量查询标准api,淘外分销商专用 +*/ +type AlibabaAscpChannelDistributorProductListAPIRequest struct { + model.Params + // 列表请求 + _productListRequest *Productlistrequest +} + +// 初始化AlibabaAscpChannelDistributorProductListAPIRequest对象 +func NewAlibabaAscpChannelDistributorProductListRequest() *AlibabaAscpChannelDistributorProductListAPIRequest{ + return &AlibabaAscpChannelDistributorProductListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpChannelDistributorProductListAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.channel.distributor.product.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpChannelDistributorProductListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductListRequest Setter +// 列表请求 +func (r *AlibabaAscpChannelDistributorProductListAPIRequest) SetProductListRequest(_productListRequest *Productlistrequest) error { + r._productListRequest = _productListRequest + r.Set("product_list_request", _productListRequest) + return nil +} + +// ProductListRequest Getter +func (r AlibabaAscpChannelDistributorProductListAPIRequest) GetProductListRequest() *Productlistrequest { + return r._productListRequest +} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorProductListAPIResponse.go b/model/ascpchannel/AlibabaAscpChannelDistributorProductListAPIResponse.go new file mode 100644 index 0000000000..f78280fabf --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelDistributorProductListAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应链渠道中心淘外分销品批量查询(分销商专用) API返回值 +alibaba.ascp.channel.distributor.product.list + +此api为淘外分销的品批量查询标准api,淘外分销商专用 +*/ +type AlibabaAscpChannelDistributorProductListAPIResponse struct { + model.CommonResponse + AlibabaAscpChannelDistributorProductListAPIResponseModel +} + +// 供应链渠道中心淘外分销品批量查询(分销商专用) 成功返回结果 +type AlibabaAscpChannelDistributorProductListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_channel_distributor_product_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + ProductListResponse *ResultWrapper `json:"product_list_response,omitempty" xml:"product_list_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorProductListResponse.go b/model/ascpchannel/AlibabaAscpChannelDistributorProductListResponse.go deleted file mode 100644 index abaa754275..0000000000 --- a/model/ascpchannel/AlibabaAscpChannelDistributorProductListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应链渠道中心淘外分销品批量查询(分销商专用) API返回值 -alibaba.ascp.channel.distributor.product.list - -此api为淘外分销的品批量查询标准api,淘外分销商专用 -*/ -type AlibabaAscpChannelDistributorProductListAPIResponse struct { - model.CommonResponse - AlibabaAscpChannelDistributorProductListResponse -} - -// 供应链渠道中心淘外分销品批量查询(分销商专用) 成功返回结果 -type AlibabaAscpChannelDistributorProductListResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_channel_distributor_product_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - ProductListResponse *ResultWrapper `json:"product_list_response,omitempty" xml:"product_list_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorProductSelectAPIRequest.go b/model/ascpchannel/AlibabaAscpChannelDistributorProductSelectAPIRequest.go new file mode 100644 index 0000000000..6eede2a318 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelDistributorProductSelectAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应链渠道中心品的选品接口(淘外分销商专用) API请求 +alibaba.ascp.channel.distributor.product.select + +此api为淘外分销的品的选品标准api,淘外分销商专用 +*/ +type AlibabaAscpChannelDistributorProductSelectAPIRequest struct { + model.Params + // 选品请求 + _selectProductRequest *ProductLinkRequest +} + +// 初始化AlibabaAscpChannelDistributorProductSelectAPIRequest对象 +func NewAlibabaAscpChannelDistributorProductSelectRequest() *AlibabaAscpChannelDistributorProductSelectAPIRequest{ + return &AlibabaAscpChannelDistributorProductSelectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpChannelDistributorProductSelectAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.channel.distributor.product.select" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpChannelDistributorProductSelectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SelectProductRequest Setter +// 选品请求 +func (r *AlibabaAscpChannelDistributorProductSelectAPIRequest) SetSelectProductRequest(_selectProductRequest *ProductLinkRequest) error { + r._selectProductRequest = _selectProductRequest + r.Set("select_product_request", _selectProductRequest) + return nil +} + +// SelectProductRequest Getter +func (r AlibabaAscpChannelDistributorProductSelectAPIRequest) GetSelectProductRequest() *ProductLinkRequest { + return r._selectProductRequest +} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorProductSelectAPIResponse.go b/model/ascpchannel/AlibabaAscpChannelDistributorProductSelectAPIResponse.go new file mode 100644 index 0000000000..9dc6b69127 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelDistributorProductSelectAPIResponse.go @@ -0,0 +1,31 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应链渠道中心品的选品接口(淘外分销商专用) API返回值 +alibaba.ascp.channel.distributor.product.select + +此api为淘外分销的品的选品标准api,淘外分销商专用 +*/ +type AlibabaAscpChannelDistributorProductSelectAPIResponse struct { + model.CommonResponse + AlibabaAscpChannelDistributorProductSelectAPIResponseModel +} + +// 供应链渠道中心品的选品接口(淘外分销商专用) 成功返回结果 +type AlibabaAscpChannelDistributorProductSelectAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_channel_distributor_product_select_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回是否成功 + ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` + // 系统自动生成 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 系统自动生成 + Error string `json:"error,omitempty" xml:"error,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpChannelDistributorProductSelectResponse.go b/model/ascpchannel/AlibabaAscpChannelDistributorProductSelectResponse.go deleted file mode 100644 index 6d9c9f8fe0..0000000000 --- a/model/ascpchannel/AlibabaAscpChannelDistributorProductSelectResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应链渠道中心品的选品接口(淘外分销商专用) API返回值 -alibaba.ascp.channel.distributor.product.select - -此api为淘外分销的品的选品标准api,淘外分销商专用 -*/ -type AlibabaAscpChannelDistributorProductSelectAPIResponse struct { - model.CommonResponse - AlibabaAscpChannelDistributorProductSelectResponse -} - -// 供应链渠道中心品的选品接口(淘外分销商专用) 成功返回结果 -type AlibabaAscpChannelDistributorProductSelectResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_channel_distributor_product_select_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回是否成功 - ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` - // 系统自动生成 - ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` - // 系统自动生成 - Error string `json:"error,omitempty" xml:"error,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpChannelMainRefundCreateAPIRequest.go b/model/ascpchannel/AlibabaAscpChannelMainRefundCreateAPIRequest.go new file mode 100644 index 0000000000..5ef446326d --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelMainRefundCreateAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘外分销逆向创单(未发货整单退) API请求 +alibaba.ascp.channel.main.refund.create + +淘外分销解决方案--订单--逆向创单(未发货整单退) +*/ +type AlibabaAscpChannelMainRefundCreateAPIRequest struct { + model.Params + // 逆向单创建请求 + _refundCreateRequest *ExternalCreateRefundOrderRequest +} + +// 初始化AlibabaAscpChannelMainRefundCreateAPIRequest对象 +func NewAlibabaAscpChannelMainRefundCreateRequest() *AlibabaAscpChannelMainRefundCreateAPIRequest{ + return &AlibabaAscpChannelMainRefundCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpChannelMainRefundCreateAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.channel.main.refund.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpChannelMainRefundCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundCreateRequest Setter +// 逆向单创建请求 +func (r *AlibabaAscpChannelMainRefundCreateAPIRequest) SetRefundCreateRequest(_refundCreateRequest *ExternalCreateRefundOrderRequest) error { + r._refundCreateRequest = _refundCreateRequest + r.Set("refund_create_request", _refundCreateRequest) + return nil +} + +// RefundCreateRequest Getter +func (r AlibabaAscpChannelMainRefundCreateAPIRequest) GetRefundCreateRequest() *ExternalCreateRefundOrderRequest { + return r._refundCreateRequest +} diff --git a/model/ascpchannel/AlibabaAscpChannelMainRefundCreateAPIResponse.go b/model/ascpchannel/AlibabaAscpChannelMainRefundCreateAPIResponse.go new file mode 100644 index 0000000000..4fdacfb481 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelMainRefundCreateAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘外分销逆向创单(未发货整单退) API返回值 +alibaba.ascp.channel.main.refund.create + +淘外分销解决方案--订单--逆向创单(未发货整单退) +*/ +type AlibabaAscpChannelMainRefundCreateAPIResponse struct { + model.CommonResponse + AlibabaAscpChannelMainRefundCreateAPIResponseModel +} + +// 淘外分销逆向创单(未发货整单退) 成功返回结果 +type AlibabaAscpChannelMainRefundCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_channel_main_refund_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + Result *ResultWrapper `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpChannelMainRefundCreateResponse.go b/model/ascpchannel/AlibabaAscpChannelMainRefundCreateResponse.go deleted file mode 100644 index 8eec5d0dd5..0000000000 --- a/model/ascpchannel/AlibabaAscpChannelMainRefundCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘外分销逆向创单(未发货整单退) API返回值 -alibaba.ascp.channel.main.refund.create - -淘外分销解决方案--订单--逆向创单(未发货整单退) -*/ -type AlibabaAscpChannelMainRefundCreateAPIResponse struct { - model.CommonResponse - AlibabaAscpChannelMainRefundCreateResponse -} - -// 淘外分销逆向创单(未发货整单退) 成功返回结果 -type AlibabaAscpChannelMainRefundCreateResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_channel_main_refund_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - Result *ResultWrapper `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpChannelRefundGoodsWaybillAPIRequest.go b/model/ascpchannel/AlibabaAscpChannelRefundGoodsWaybillAPIRequest.go new file mode 100644 index 0000000000..ec306e0cd0 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelRefundGoodsWaybillAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘外分销退货回传物流单号 API请求 +alibaba.ascp.channel.refund.goods.waybill + +淘外分销退货回传物流单号 +*/ +type AlibabaAscpChannelRefundGoodsWaybillAPIRequest struct { + model.Params + // 请求 + _refundWayBillReq *ExternalRefundGoodsWaybillRequest +} + +// 初始化AlibabaAscpChannelRefundGoodsWaybillAPIRequest对象 +func NewAlibabaAscpChannelRefundGoodsWaybillRequest() *AlibabaAscpChannelRefundGoodsWaybillAPIRequest{ + return &AlibabaAscpChannelRefundGoodsWaybillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpChannelRefundGoodsWaybillAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.channel.refund.goods.waybill" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpChannelRefundGoodsWaybillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundWayBillReq Setter +// 请求 +func (r *AlibabaAscpChannelRefundGoodsWaybillAPIRequest) SetRefundWayBillReq(_refundWayBillReq *ExternalRefundGoodsWaybillRequest) error { + r._refundWayBillReq = _refundWayBillReq + r.Set("refund_way_bill_req", _refundWayBillReq) + return nil +} + +// RefundWayBillReq Getter +func (r AlibabaAscpChannelRefundGoodsWaybillAPIRequest) GetRefundWayBillReq() *ExternalRefundGoodsWaybillRequest { + return r._refundWayBillReq +} diff --git a/model/ascpchannel/AlibabaAscpChannelRefundGoodsWaybillAPIResponse.go b/model/ascpchannel/AlibabaAscpChannelRefundGoodsWaybillAPIResponse.go new file mode 100644 index 0000000000..c83a92b278 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelRefundGoodsWaybillAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘外分销退货回传物流单号 API返回值 +alibaba.ascp.channel.refund.goods.waybill + +淘外分销退货回传物流单号 +*/ +type AlibabaAscpChannelRefundGoodsWaybillAPIResponse struct { + model.CommonResponse + AlibabaAscpChannelRefundGoodsWaybillAPIResponseModel +} + +// 淘外分销退货回传物流单号 成功返回结果 +type AlibabaAscpChannelRefundGoodsWaybillAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_channel_refund_goods_waybill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlibabaAscpChannelRefundGoodsWaybillResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpChannelRefundGoodsWaybillResponse.go b/model/ascpchannel/AlibabaAscpChannelRefundGoodsWaybillResponse.go deleted file mode 100644 index a65180bf28..0000000000 --- a/model/ascpchannel/AlibabaAscpChannelRefundGoodsWaybillResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘外分销退货回传物流单号 API返回值 -alibaba.ascp.channel.refund.goods.waybill - -淘外分销退货回传物流单号 -*/ -type AlibabaAscpChannelRefundGoodsWaybillAPIResponse struct { - model.CommonResponse - AlibabaAscpChannelRefundGoodsWaybillResponse -} - -// 淘外分销退货回传物流单号 成功返回结果 -type AlibabaAscpChannelRefundGoodsWaybillResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_channel_refund_goods_waybill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlibabaAscpChannelRefundGoodsWaybillResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpChannelRefundGoodsWaybillResultDto.go b/model/ascpchannel/AlibabaAscpChannelRefundGoodsWaybillResultDto.go new file mode 100644 index 0000000000..e4acce292c --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelRefundGoodsWaybillResultDto.go @@ -0,0 +1,11 @@ +package ascpchannel + +// AlibabaAscpChannelRefundGoodsWaybillResultDto +type AlibabaAscpChannelRefundGoodsWaybillResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpChannelSalesOrderCreateAPIRequest.go b/model/ascpchannel/AlibabaAscpChannelSalesOrderCreateAPIRequest.go new file mode 100644 index 0000000000..6280c87434 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelSalesOrderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应链渠道销售单创建接口 API请求 +alibaba.ascp.channel.sales.order.create + +阿里巴巴供应链渠道销售订单创建接口 +*/ +type AlibabaAscpChannelSalesOrderCreateAPIRequest struct { + model.Params + // 请求参数 + _createOrderRequest *ExternalCreateSalesOrderRequest +} + +// 初始化AlibabaAscpChannelSalesOrderCreateAPIRequest对象 +func NewAlibabaAscpChannelSalesOrderCreateRequest() *AlibabaAscpChannelSalesOrderCreateAPIRequest{ + return &AlibabaAscpChannelSalesOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpChannelSalesOrderCreateAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.channel.sales.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpChannelSalesOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CreateOrderRequest Setter +// 请求参数 +func (r *AlibabaAscpChannelSalesOrderCreateAPIRequest) SetCreateOrderRequest(_createOrderRequest *ExternalCreateSalesOrderRequest) error { + r._createOrderRequest = _createOrderRequest + r.Set("create_order_request", _createOrderRequest) + return nil +} + +// CreateOrderRequest Getter +func (r AlibabaAscpChannelSalesOrderCreateAPIRequest) GetCreateOrderRequest() *ExternalCreateSalesOrderRequest { + return r._createOrderRequest +} diff --git a/model/ascpchannel/AlibabaAscpChannelSalesOrderCreateAPIResponse.go b/model/ascpchannel/AlibabaAscpChannelSalesOrderCreateAPIResponse.go new file mode 100644 index 0000000000..e3572edec9 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelSalesOrderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应链渠道销售单创建接口 API返回值 +alibaba.ascp.channel.sales.order.create + +阿里巴巴供应链渠道销售订单创建接口 +*/ +type AlibabaAscpChannelSalesOrderCreateAPIResponse struct { + model.CommonResponse + AlibabaAscpChannelSalesOrderCreateAPIResponseModel +} + +// 供应链渠道销售单创建接口 成功返回结果 +type AlibabaAscpChannelSalesOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_channel_sales_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + CreateOrderResponse *ResultWrapper `json:"create_order_response,omitempty" xml:"create_order_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpChannelSalesOrderCreateResponse.go b/model/ascpchannel/AlibabaAscpChannelSalesOrderCreateResponse.go deleted file mode 100644 index 67f1d8a915..0000000000 --- a/model/ascpchannel/AlibabaAscpChannelSalesOrderCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应链渠道销售单创建接口 API返回值 -alibaba.ascp.channel.sales.order.create - -阿里巴巴供应链渠道销售订单创建接口 -*/ -type AlibabaAscpChannelSalesOrderCreateAPIResponse struct { - model.CommonResponse - AlibabaAscpChannelSalesOrderCreateResponse -} - -// 供应链渠道销售单创建接口 成功返回结果 -type AlibabaAscpChannelSalesOrderCreateResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_channel_sales_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - CreateOrderResponse *ResultWrapper `json:"create_order_response,omitempty" xml:"create_order_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpChannelSubRefundCreateAPIRequest.go b/model/ascpchannel/AlibabaAscpChannelSubRefundCreateAPIRequest.go new file mode 100644 index 0000000000..aa01c830cf --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelSubRefundCreateAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘外分销逆向创单(子单退) API请求 +alibaba.ascp.channel.sub.refund.create + +淘外分销逆向创单(子单退) +*/ +type AlibabaAscpChannelSubRefundCreateAPIRequest struct { + model.Params + // 子单退款创建请求 + _subRefundCreateReq *ExternalCreateRefundOrderDetailRequest +} + +// 初始化AlibabaAscpChannelSubRefundCreateAPIRequest对象 +func NewAlibabaAscpChannelSubRefundCreateRequest() *AlibabaAscpChannelSubRefundCreateAPIRequest{ + return &AlibabaAscpChannelSubRefundCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpChannelSubRefundCreateAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.channel.sub.refund.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpChannelSubRefundCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubRefundCreateReq Setter +// 子单退款创建请求 +func (r *AlibabaAscpChannelSubRefundCreateAPIRequest) SetSubRefundCreateReq(_subRefundCreateReq *ExternalCreateRefundOrderDetailRequest) error { + r._subRefundCreateReq = _subRefundCreateReq + r.Set("sub_refund_create_req", _subRefundCreateReq) + return nil +} + +// SubRefundCreateReq Getter +func (r AlibabaAscpChannelSubRefundCreateAPIRequest) GetSubRefundCreateReq() *ExternalCreateRefundOrderDetailRequest { + return r._subRefundCreateReq +} diff --git a/model/ascpchannel/AlibabaAscpChannelSubRefundCreateAPIResponse.go b/model/ascpchannel/AlibabaAscpChannelSubRefundCreateAPIResponse.go new file mode 100644 index 0000000000..84996a1777 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelSubRefundCreateAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘外分销逆向创单(子单退) API返回值 +alibaba.ascp.channel.sub.refund.create + +淘外分销逆向创单(子单退) +*/ +type AlibabaAscpChannelSubRefundCreateAPIResponse struct { + model.CommonResponse + AlibabaAscpChannelSubRefundCreateAPIResponseModel +} + +// 淘外分销逆向创单(子单退) 成功返回结果 +type AlibabaAscpChannelSubRefundCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_channel_sub_refund_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlibabaAscpChannelSubRefundCreateResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpChannelSubRefundCreateResponse.go b/model/ascpchannel/AlibabaAscpChannelSubRefundCreateResponse.go deleted file mode 100644 index fb2416e3ea..0000000000 --- a/model/ascpchannel/AlibabaAscpChannelSubRefundCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘外分销逆向创单(子单退) API返回值 -alibaba.ascp.channel.sub.refund.create - -淘外分销逆向创单(子单退) -*/ -type AlibabaAscpChannelSubRefundCreateAPIResponse struct { - model.CommonResponse - AlibabaAscpChannelSubRefundCreateResponse -} - -// 淘外分销逆向创单(子单退) 成功返回结果 -type AlibabaAscpChannelSubRefundCreateResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_channel_sub_refund_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlibabaAscpChannelSubRefundCreateResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpChannelSubRefundCreateResultDto.go b/model/ascpchannel/AlibabaAscpChannelSubRefundCreateResultDto.go new file mode 100644 index 0000000000..6aacaf2108 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpChannelSubRefundCreateResultDto.go @@ -0,0 +1,13 @@ +package ascpchannel + +// AlibabaAscpChannelSubRefundCreateResultDto +type AlibabaAscpChannelSubRefundCreateResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 返回主体 + Data *AlibabaAscpChannelSubRefundCreateData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpIndustryIcpQueryLbxAPIRequest.go b/model/ascpchannel/AlibabaAscpIndustryIcpQueryLbxAPIRequest.go new file mode 100644 index 0000000000..906c1973be --- /dev/null +++ b/model/ascpchannel/AlibabaAscpIndustryIcpQueryLbxAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +icp订单号查询lbx订单号 API请求 +alibaba.ascp.industry.icp.query.lbx + +根据icp订单号查询lbx订单号 +*/ +type AlibabaAscpIndustryIcpQueryLbxAPIRequest struct { + model.Params + // icps订单号 + _icpOrderCode string +} + +// 初始化AlibabaAscpIndustryIcpQueryLbxAPIRequest对象 +func NewAlibabaAscpIndustryIcpQueryLbxRequest() *AlibabaAscpIndustryIcpQueryLbxAPIRequest{ + return &AlibabaAscpIndustryIcpQueryLbxAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpIndustryIcpQueryLbxAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.industry.icp.query.lbx" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpIndustryIcpQueryLbxAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IcpOrderCode Setter +// icps订单号 +func (r *AlibabaAscpIndustryIcpQueryLbxAPIRequest) SetIcpOrderCode(_icpOrderCode string) error { + r._icpOrderCode = _icpOrderCode + r.Set("icp_order_code", _icpOrderCode) + return nil +} + +// IcpOrderCode Getter +func (r AlibabaAscpIndustryIcpQueryLbxAPIRequest) GetIcpOrderCode() string { + return r._icpOrderCode +} diff --git a/model/ascpchannel/AlibabaAscpIndustryIcpQueryLbxAPIResponse.go b/model/ascpchannel/AlibabaAscpIndustryIcpQueryLbxAPIResponse.go new file mode 100644 index 0000000000..36d336402f --- /dev/null +++ b/model/ascpchannel/AlibabaAscpIndustryIcpQueryLbxAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +icp订单号查询lbx订单号 API返回值 +alibaba.ascp.industry.icp.query.lbx + +根据icp订单号查询lbx订单号 +*/ +type AlibabaAscpIndustryIcpQueryLbxAPIResponse struct { + model.CommonResponse + AlibabaAscpIndustryIcpQueryLbxAPIResponseModel +} + +// icp订单号查询lbx订单号 成功返回结果 +type AlibabaAscpIndustryIcpQueryLbxAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_industry_icp_query_lbx_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + BizResponse *ResultWrapper `json:"biz_response,omitempty" xml:"biz_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpIndustryIcpQueryLbxResponse.go b/model/ascpchannel/AlibabaAscpIndustryIcpQueryLbxResponse.go deleted file mode 100644 index 86abe68984..0000000000 --- a/model/ascpchannel/AlibabaAscpIndustryIcpQueryLbxResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -icp订单号查询lbx订单号 API返回值 -alibaba.ascp.industry.icp.query.lbx - -根据icp订单号查询lbx订单号 -*/ -type AlibabaAscpIndustryIcpQueryLbxAPIResponse struct { - model.CommonResponse - AlibabaAscpIndustryIcpQueryLbxResponse -} - -// icp订单号查询lbx订单号 成功返回结果 -type AlibabaAscpIndustryIcpQueryLbxResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_industry_icp_query_lbx_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - BizResponse *ResultWrapper `json:"biz_response,omitempty" xml:"biz_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpIndustryLogisticsSyncAPIRequest.go b/model/ascpchannel/AlibabaAscpIndustryLogisticsSyncAPIRequest.go new file mode 100644 index 0000000000..2710cf568f --- /dev/null +++ b/model/ascpchannel/AlibabaAscpIndustryLogisticsSyncAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物流状态同步 API请求 +alibaba.ascp.industry.logistics.sync + +履约物流状态同步 +*/ +type AlibabaAscpIndustryLogisticsSyncAPIRequest struct { + model.Params + // 参数 + _param *LogisticsSyncSellerRequest +} + +// 初始化AlibabaAscpIndustryLogisticsSyncAPIRequest对象 +func NewAlibabaAscpIndustryLogisticsSyncRequest() *AlibabaAscpIndustryLogisticsSyncAPIRequest{ + return &AlibabaAscpIndustryLogisticsSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpIndustryLogisticsSyncAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.industry.logistics.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpIndustryLogisticsSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 参数 +func (r *AlibabaAscpIndustryLogisticsSyncAPIRequest) SetParam(_param *LogisticsSyncSellerRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaAscpIndustryLogisticsSyncAPIRequest) GetParam() *LogisticsSyncSellerRequest { + return r._param +} diff --git a/model/ascpchannel/AlibabaAscpIndustryLogisticsSyncAPIResponse.go b/model/ascpchannel/AlibabaAscpIndustryLogisticsSyncAPIResponse.go new file mode 100644 index 0000000000..7cc2316b18 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpIndustryLogisticsSyncAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物流状态同步 API返回值 +alibaba.ascp.industry.logistics.sync + +履约物流状态同步 +*/ +type AlibabaAscpIndustryLogisticsSyncAPIResponse struct { + model.CommonResponse + AlibabaAscpIndustryLogisticsSyncAPIResponseModel +} + +// 物流状态同步 成功返回结果 +type AlibabaAscpIndustryLogisticsSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_industry_logistics_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlibabaAscpIndustryLogisticsSyncResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpIndustryLogisticsSyncResponse.go b/model/ascpchannel/AlibabaAscpIndustryLogisticsSyncResponse.go deleted file mode 100644 index d3cb056ac6..0000000000 --- a/model/ascpchannel/AlibabaAscpIndustryLogisticsSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物流状态同步 API返回值 -alibaba.ascp.industry.logistics.sync - -履约物流状态同步 -*/ -type AlibabaAscpIndustryLogisticsSyncAPIResponse struct { - model.CommonResponse - AlibabaAscpIndustryLogisticsSyncResponse -} - -// 物流状态同步 成功返回结果 -type AlibabaAscpIndustryLogisticsSyncResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_industry_logistics_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlibabaAscpIndustryLogisticsSyncResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpIndustryLogisticsSyncResultDto.go b/model/ascpchannel/AlibabaAscpIndustryLogisticsSyncResultDto.go new file mode 100644 index 0000000000..624d451cc4 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpIndustryLogisticsSyncResultDto.go @@ -0,0 +1,13 @@ +package ascpchannel + +// AlibabaAscpIndustryLogisticsSyncResultDto +type AlibabaAscpIndustryLogisticsSyncResultDto struct { + // 错误描述 + Msg string `json:"msg,omitempty" xml:"msg,omitempty"` + // 错误编码 + Code string `json:"code,omitempty" xml:"code,omitempty"` + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 数据内容 + Module bool `json:"module,omitempty" xml:"module,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpIndustryUopSupplierConsignoderAPIRequest.go b/model/ascpchannel/AlibabaAscpIndustryUopSupplierConsignoderAPIRequest.go new file mode 100644 index 0000000000..64d07751b2 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpIndustryUopSupplierConsignoderAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家推单 API请求 +alibaba.ascp.industry.uop.supplier.consignoder + +商家推单 +*/ +type AlibabaAscpIndustryUopSupplierConsignoderAPIRequest struct { + model.Params + // 发货主单信息 + _erpNormalConsignOrderRequest *Erpnormalconsignorderrequest +} + +// 初始化AlibabaAscpIndustryUopSupplierConsignoderAPIRequest对象 +func NewAlibabaAscpIndustryUopSupplierConsignoderRequest() *AlibabaAscpIndustryUopSupplierConsignoderAPIRequest{ + return &AlibabaAscpIndustryUopSupplierConsignoderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpIndustryUopSupplierConsignoderAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.industry.uop.supplier.consignoder" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpIndustryUopSupplierConsignoderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ErpNormalConsignOrderRequest Setter +// 发货主单信息 +func (r *AlibabaAscpIndustryUopSupplierConsignoderAPIRequest) SetErpNormalConsignOrderRequest(_erpNormalConsignOrderRequest *Erpnormalconsignorderrequest) error { + r._erpNormalConsignOrderRequest = _erpNormalConsignOrderRequest + r.Set("erp_normal_consign_order_request", _erpNormalConsignOrderRequest) + return nil +} + +// ErpNormalConsignOrderRequest Getter +func (r AlibabaAscpIndustryUopSupplierConsignoderAPIRequest) GetErpNormalConsignOrderRequest() *Erpnormalconsignorderrequest { + return r._erpNormalConsignOrderRequest +} diff --git a/model/ascpchannel/AlibabaAscpIndustryUopSupplierConsignoderAPIResponse.go b/model/ascpchannel/AlibabaAscpIndustryUopSupplierConsignoderAPIResponse.go new file mode 100644 index 0000000000..f595712018 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpIndustryUopSupplierConsignoderAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家推单 API返回值 +alibaba.ascp.industry.uop.supplier.consignoder + +商家推单 +*/ +type AlibabaAscpIndustryUopSupplierConsignoderAPIResponse struct { + model.CommonResponse + AlibabaAscpIndustryUopSupplierConsignoderAPIResponseModel +} + +// 商家推单 成功返回结果 +type AlibabaAscpIndustryUopSupplierConsignoderAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_industry_uop_supplier_consignoder_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商家推送天猫信息后,由天猫回传的字段 + Data *AlibabaAscpIndustryUopSupplierConsignoderData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpIndustryUopSupplierConsignoderResponse.go b/model/ascpchannel/AlibabaAscpIndustryUopSupplierConsignoderResponse.go deleted file mode 100644 index 8724ccb227..0000000000 --- a/model/ascpchannel/AlibabaAscpIndustryUopSupplierConsignoderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家推单 API返回值 -alibaba.ascp.industry.uop.supplier.consignoder - -商家推单 -*/ -type AlibabaAscpIndustryUopSupplierConsignoderAPIResponse struct { - model.CommonResponse - AlibabaAscpIndustryUopSupplierConsignoderResponse -} - -// 商家推单 成功返回结果 -type AlibabaAscpIndustryUopSupplierConsignoderResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_industry_uop_supplier_consignoder_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商家推送天猫信息后,由天猫回传的字段 - Data *AlibabaAscpIndustryUopSupplierConsignoderData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpPresalespackageConsignAPIRequest.go b/model/ascpchannel/AlibabaAscpPresalespackageConsignAPIRequest.go new file mode 100644 index 0000000000..a2a1c08c8a --- /dev/null +++ b/model/ascpchannel/AlibabaAscpPresalespackageConsignAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +预售预包尾款推单发货 API请求 +alibaba.ascp.presalespackage.consign + +预售预包尾款发货后推单处理 +*/ +type AlibabaAscpPresalespackageConsignAPIRequest struct { + model.Params + // 入参 + _requestParams *Requestparams +} + +// 初始化AlibabaAscpPresalespackageConsignAPIRequest对象 +func NewAlibabaAscpPresalespackageConsignRequest() *AlibabaAscpPresalespackageConsignAPIRequest{ + return &AlibabaAscpPresalespackageConsignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpPresalespackageConsignAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.presalespackage.consign" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpPresalespackageConsignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestParams Setter +// 入参 +func (r *AlibabaAscpPresalespackageConsignAPIRequest) SetRequestParams(_requestParams *Requestparams) error { + r._requestParams = _requestParams + r.Set("request_params", _requestParams) + return nil +} + +// RequestParams Getter +func (r AlibabaAscpPresalespackageConsignAPIRequest) GetRequestParams() *Requestparams { + return r._requestParams +} diff --git a/model/ascpchannel/AlibabaAscpPresalespackageConsignAPIResponse.go b/model/ascpchannel/AlibabaAscpPresalespackageConsignAPIResponse.go new file mode 100644 index 0000000000..4a337b6800 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpPresalespackageConsignAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +预售预包尾款推单发货 API返回值 +alibaba.ascp.presalespackage.consign + +预售预包尾款发货后推单处理 +*/ +type AlibabaAscpPresalespackageConsignAPIResponse struct { + model.CommonResponse + AlibabaAscpPresalespackageConsignAPIResponseModel +} + +// 预售预包尾款推单发货 成功返回结果 +type AlibabaAscpPresalespackageConsignAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_presalespackage_consign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *ErpPresaleFinalPayResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpPresalespackageConsignResponse.go b/model/ascpchannel/AlibabaAscpPresalespackageConsignResponse.go deleted file mode 100644 index 6a22f97849..0000000000 --- a/model/ascpchannel/AlibabaAscpPresalespackageConsignResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -预售预包尾款推单发货 API返回值 -alibaba.ascp.presalespackage.consign - -预售预包尾款发货后推单处理 -*/ -type AlibabaAscpPresalespackageConsignAPIResponse struct { - model.CommonResponse - AlibabaAscpPresalespackageConsignResponse -} - -// 预售预包尾款推单发货 成功返回结果 -type AlibabaAscpPresalespackageConsignResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_presalespackage_consign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *ErpPresaleFinalPayResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpPurchasePriceCreateAPIRequest.go b/model/ascpchannel/AlibabaAscpPurchasePriceCreateAPIRequest.go new file mode 100644 index 0000000000..d47a601fb4 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpPurchasePriceCreateAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ascp采购价写入接口 API请求 +alibaba.ascp.purchase.price.create + +供应链平台采购价创建或修改接口 +*/ +type AlibabaAscpPurchasePriceCreateAPIRequest struct { + model.Params + // 采购价创建/更新请求 + _createRequest *AlibabaAscpPurchasePriceCreateRequest +} + +// 初始化AlibabaAscpPurchasePriceCreateAPIRequest对象 +func NewAlibabaAscpPurchasePriceCreateRequest() *AlibabaAscpPurchasePriceCreateAPIRequest{ + return &AlibabaAscpPurchasePriceCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpPurchasePriceCreateAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.purchase.price.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpPurchasePriceCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CreateRequest Setter +// 采购价创建/更新请求 +func (r *AlibabaAscpPurchasePriceCreateAPIRequest) SetCreateRequest(_createRequest *AlibabaAscpPurchasePriceCreateRequest) error { + r._createRequest = _createRequest + r.Set("create_request", _createRequest) + return nil +} + +// CreateRequest Getter +func (r AlibabaAscpPurchasePriceCreateAPIRequest) GetCreateRequest() *AlibabaAscpPurchasePriceCreateRequest { + return r._createRequest +} diff --git a/model/ascpchannel/AlibabaAscpPurchasePriceCreateAPIResponse.go b/model/ascpchannel/AlibabaAscpPurchasePriceCreateAPIResponse.go new file mode 100644 index 0000000000..ad9ea602b5 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpPurchasePriceCreateAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ascp采购价写入接口 API返回值 +alibaba.ascp.purchase.price.create + +供应链平台采购价创建或修改接口 +*/ +type AlibabaAscpPurchasePriceCreateAPIResponse struct { + model.CommonResponse + AlibabaAscpPurchasePriceCreateAPIResponseModel +} + +// ascp采购价写入接口 成功返回结果 +type AlibabaAscpPurchasePriceCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_purchase_price_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *ResultWrapper `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpPurchasePriceCreateResponse.go b/model/ascpchannel/AlibabaAscpPurchasePriceCreateResponse.go deleted file mode 100644 index 8d55bec1dc..0000000000 --- a/model/ascpchannel/AlibabaAscpPurchasePriceCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ascp采购价写入接口 API返回值 -alibaba.ascp.purchase.price.create - -供应链平台采购价创建或修改接口 -*/ -type AlibabaAscpPurchasePriceCreateAPIResponse struct { - model.CommonResponse - AlibabaAscpPurchasePriceCreateResponse -} - -// ascp采购价写入接口 成功返回结果 -type AlibabaAscpPurchasePriceCreateResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_purchase_price_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *ResultWrapper `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpSalecategoryQueryAPIRequest.go b/model/ascpchannel/AlibabaAscpSalecategoryQueryAPIRequest.go new file mode 100644 index 0000000000..44a2f2d923 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpSalecategoryQueryAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +货品品类查询 API请求 +alibaba.ascp.salecategory.query + +根据货品ID查询对应销售品类ID +*/ +type AlibabaAscpSalecategoryQueryAPIRequest struct { + model.Params + // 货品ID + _itemId []int64 +} + +// 初始化AlibabaAscpSalecategoryQueryAPIRequest对象 +func NewAlibabaAscpSalecategoryQueryRequest() *AlibabaAscpSalecategoryQueryAPIRequest{ + return &AlibabaAscpSalecategoryQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpSalecategoryQueryAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.salecategory.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpSalecategoryQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 货品ID +func (r *AlibabaAscpSalecategoryQueryAPIRequest) SetItemId(_itemId []int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaAscpSalecategoryQueryAPIRequest) GetItemId() []int64 { + return r._itemId +} diff --git a/model/ascpchannel/AlibabaAscpSalecategoryQueryAPIResponse.go b/model/ascpchannel/AlibabaAscpSalecategoryQueryAPIResponse.go new file mode 100644 index 0000000000..de999856fa --- /dev/null +++ b/model/ascpchannel/AlibabaAscpSalecategoryQueryAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +货品品类查询 API返回值 +alibaba.ascp.salecategory.query + +根据货品ID查询对应销售品类ID +*/ +type AlibabaAscpSalecategoryQueryAPIResponse struct { + model.CommonResponse + AlibabaAscpSalecategoryQueryAPIResponseModel +} + +// 货品品类查询 成功返回结果 +type AlibabaAscpSalecategoryQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_salecategory_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 货品查询结构化对象 + DataList []SalecategoryQueryResponse `json:"data_list,omitempty" xml:"data_list>salecategory_query_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpSalecategoryQueryResponse.go b/model/ascpchannel/AlibabaAscpSalecategoryQueryResponse.go deleted file mode 100644 index b165d56be8..0000000000 --- a/model/ascpchannel/AlibabaAscpSalecategoryQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -货品品类查询 API返回值 -alibaba.ascp.salecategory.query - -根据货品ID查询对应销售品类ID -*/ -type AlibabaAscpSalecategoryQueryAPIResponse struct { - model.CommonResponse - AlibabaAscpSalecategoryQueryResponse -} - -// 货品品类查询 成功返回结果 -type AlibabaAscpSalecategoryQueryResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_salecategory_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 货品查询结构化对象 - DataList []SalecategoryQueryResponse `json:"data_list,omitempty" xml:"data_list>salecategory_query_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpUopCnReverseWarehouseorderUpdateAPIRequest.go b/model/ascpchannel/AlibabaAscpUopCnReverseWarehouseorderUpdateAPIRequest.go new file mode 100644 index 0000000000..4f545e25f7 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopCnReverseWarehouseorderUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应链中台逆向入库单修改服务 API请求 +alibaba.ascp.uop.cn.reverse.warehouseorder.update + +供应链中台逆向入库单修改服务 +*/ +type AlibabaAscpUopCnReverseWarehouseorderUpdateAPIRequest struct { + model.Params + // 逆向入库单号 + _orderCode string + // 是否已经退款 + _refunded bool + // 退款原因 + _refundReason string +} + +// 初始化AlibabaAscpUopCnReverseWarehouseorderUpdateAPIRequest对象 +func NewAlibabaAscpUopCnReverseWarehouseorderUpdateRequest() *AlibabaAscpUopCnReverseWarehouseorderUpdateAPIRequest{ + return &AlibabaAscpUopCnReverseWarehouseorderUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpUopCnReverseWarehouseorderUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.uop.cn.reverse.warehouseorder.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpUopCnReverseWarehouseorderUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderCode Setter +// 逆向入库单号 +func (r *AlibabaAscpUopCnReverseWarehouseorderUpdateAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r AlibabaAscpUopCnReverseWarehouseorderUpdateAPIRequest) GetOrderCode() string { + return r._orderCode +} +// Refunded Setter +// 是否已经退款 +func (r *AlibabaAscpUopCnReverseWarehouseorderUpdateAPIRequest) SetRefunded(_refunded bool) error { + r._refunded = _refunded + r.Set("refunded", _refunded) + return nil +} + +// Refunded Getter +func (r AlibabaAscpUopCnReverseWarehouseorderUpdateAPIRequest) GetRefunded() bool { + return r._refunded +} +// RefundReason Setter +// 退款原因 +func (r *AlibabaAscpUopCnReverseWarehouseorderUpdateAPIRequest) SetRefundReason(_refundReason string) error { + r._refundReason = _refundReason + r.Set("refund_reason", _refundReason) + return nil +} + +// RefundReason Getter +func (r AlibabaAscpUopCnReverseWarehouseorderUpdateAPIRequest) GetRefundReason() string { + return r._refundReason +} diff --git a/model/ascpchannel/AlibabaAscpUopCnReverseWarehouseorderUpdateAPIResponse.go b/model/ascpchannel/AlibabaAscpUopCnReverseWarehouseorderUpdateAPIResponse.go new file mode 100644 index 0000000000..78b06dba0b --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopCnReverseWarehouseorderUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应链中台逆向入库单修改服务 API返回值 +alibaba.ascp.uop.cn.reverse.warehouseorder.update + +供应链中台逆向入库单修改服务 +*/ +type AlibabaAscpUopCnReverseWarehouseorderUpdateAPIResponse struct { + model.CommonResponse + AlibabaAscpUopCnReverseWarehouseorderUpdateAPIResponseModel +} + +// 供应链中台逆向入库单修改服务 成功返回结果 +type AlibabaAscpUopCnReverseWarehouseorderUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_uop_cn_reverse_warehouseorder_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + UpdateReverseWarehouseOrderResponse *ResultWrapper `json:"update_reverse_warehouse_order_response,omitempty" xml:"update_reverse_warehouse_order_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpUopCnReverseWarehouseorderUpdateResponse.go b/model/ascpchannel/AlibabaAscpUopCnReverseWarehouseorderUpdateResponse.go deleted file mode 100644 index 5dfa370f90..0000000000 --- a/model/ascpchannel/AlibabaAscpUopCnReverseWarehouseorderUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应链中台逆向入库单修改服务 API返回值 -alibaba.ascp.uop.cn.reverse.warehouseorder.update - -供应链中台逆向入库单修改服务 -*/ -type AlibabaAscpUopCnReverseWarehouseorderUpdateAPIResponse struct { - model.CommonResponse - AlibabaAscpUopCnReverseWarehouseorderUpdateResponse -} - -// 供应链中台逆向入库单修改服务 成功返回结果 -type AlibabaAscpUopCnReverseWarehouseorderUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_uop_cn_reverse_warehouseorder_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - UpdateReverseWarehouseOrderResponse *ResultWrapper `json:"update_reverse_warehouse_order_response,omitempty" xml:"update_reverse_warehouse_order_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIRequest.go b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIRequest.go new file mode 100644 index 0000000000..10b4d392dc --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家仓wms取消发货反馈回告服务 API请求 +alibaba.ascp.uop.supplier.consignorder.cancel.feedback + +履约单纬度通知商家仓wms取消发货结果反馈回告服务 +*/ +type AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIRequest struct { + model.Params + // 取消发货反馈回告请求 + _consignorderCancelFeedbackRequest *Consignordercancelfeedbackrequest +} + +// 初始化AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIRequest对象 +func NewAlibabaAscpUopSupplierConsignorderCancelFeedbackRequest() *AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIRequest{ + return &AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.uop.supplier.consignorder.cancel.feedback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ConsignorderCancelFeedbackRequest Setter +// 取消发货反馈回告请求 +func (r *AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIRequest) SetConsignorderCancelFeedbackRequest(_consignorderCancelFeedbackRequest *Consignordercancelfeedbackrequest) error { + r._consignorderCancelFeedbackRequest = _consignorderCancelFeedbackRequest + r.Set("consignorder_cancel_feedback_request", _consignorderCancelFeedbackRequest) + return nil +} + +// ConsignorderCancelFeedbackRequest Getter +func (r AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIRequest) GetConsignorderCancelFeedbackRequest() *Consignordercancelfeedbackrequest { + return r._consignorderCancelFeedbackRequest +} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIResponse.go b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIResponse.go new file mode 100644 index 0000000000..3692dea1bf --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家仓wms取消发货反馈回告服务 API返回值 +alibaba.ascp.uop.supplier.consignorder.cancel.feedback + +履约单纬度通知商家仓wms取消发货结果反馈回告服务 +*/ +type AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIResponse struct { + model.CommonResponse + AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIResponseModel +} + +// 商家仓wms取消发货反馈回告服务 成功返回结果 +type AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_uop_supplier_consignorder_cancel_feedback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + ConsignorderCancelFeedbackResponse *ResultWrapper `json:"consignorder_cancel_feedback_response,omitempty" xml:"consignorder_cancel_feedback_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderCancelFeedbackResponse.go b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderCancelFeedbackResponse.go deleted file mode 100644 index 7d7709b1e4..0000000000 --- a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderCancelFeedbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家仓wms取消发货反馈回告服务 API返回值 -alibaba.ascp.uop.supplier.consignorder.cancel.feedback - -履约单纬度通知商家仓wms取消发货结果反馈回告服务 -*/ -type AlibabaAscpUopSupplierConsignorderCancelFeedbackAPIResponse struct { - model.CommonResponse - AlibabaAscpUopSupplierConsignorderCancelFeedbackResponse -} - -// 商家仓wms取消发货反馈回告服务 成功返回结果 -type AlibabaAscpUopSupplierConsignorderCancelFeedbackResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_uop_supplier_consignorder_cancel_feedback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - ConsignorderCancelFeedbackResponse *ResultWrapper `json:"consignorder_cancel_feedback_response,omitempty" xml:"consignorder_cancel_feedback_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIRequest.go b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIRequest.go new file mode 100644 index 0000000000..1f91649cfb --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIRequest.go @@ -0,0 +1,80 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家仓物流发货推单接单回告 API请求 +alibaba.ascp.uop.supplier.consignorder.notify.received + +ASCP通过该接口接收商家仓开始接单生产订单对应的物流订单信息 +*/ +type AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIRequest struct { + model.Params + // qimen.alibaba.ascp.uop.consignorder.notify报文中的supplierId字段值 + _supplierId string + // qimen.alibaba.ascp.uop.consignorder.notify报文中bizOrderCode履约单号 + _bizOrderCode string + // 业务请求时间 + _bizTime string +} + +// 初始化AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIRequest对象 +func NewAlibabaAscpUopSupplierConsignorderNotifyReceivedRequest() *AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIRequest{ + return &AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.uop.supplier.consignorder.notify.received" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SupplierId Setter +// qimen.alibaba.ascp.uop.consignorder.notify报文中的supplierId字段值 +func (r *AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIRequest) SetSupplierId(_supplierId string) error { + r._supplierId = _supplierId + r.Set("supplier_id", _supplierId) + return nil +} + +// SupplierId Getter +func (r AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIRequest) GetSupplierId() string { + return r._supplierId +} +// BizOrderCode Setter +// qimen.alibaba.ascp.uop.consignorder.notify报文中bizOrderCode履约单号 +func (r *AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIRequest) SetBizOrderCode(_bizOrderCode string) error { + r._bizOrderCode = _bizOrderCode + r.Set("biz_order_code", _bizOrderCode) + return nil +} + +// BizOrderCode Getter +func (r AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIRequest) GetBizOrderCode() string { + return r._bizOrderCode +} +// BizTime Setter +// 业务请求时间 +func (r *AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIRequest) SetBizTime(_bizTime string) error { + r._bizTime = _bizTime + r.Set("biz_time", _bizTime) + return nil +} + +// BizTime Getter +func (r AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIRequest) GetBizTime() string { + return r._bizTime +} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIResponse.go b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIResponse.go new file mode 100644 index 0000000000..44617f487b --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家仓物流发货推单接单回告 API返回值 +alibaba.ascp.uop.supplier.consignorder.notify.received + +ASCP通过该接口接收商家仓开始接单生产订单对应的物流订单信息 +*/ +type AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIResponse struct { + model.CommonResponse + AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIResponseModel +} + +// 商家仓物流发货推单接单回告 成功返回结果 +type AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_uop_supplier_consignorder_notify_received_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + ConsignorderNotifyReceivedResponse *ResultWrapper `json:"consignorder_notify_received_response,omitempty" xml:"consignorder_notify_received_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyReceivedResponse.go b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyReceivedResponse.go deleted file mode 100644 index 0d7a09b7b3..0000000000 --- a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyReceivedResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家仓物流发货推单接单回告 API返回值 -alibaba.ascp.uop.supplier.consignorder.notify.received - -ASCP通过该接口接收商家仓开始接单生产订单对应的物流订单信息 -*/ -type AlibabaAscpUopSupplierConsignorderNotifyReceivedAPIResponse struct { - model.CommonResponse - AlibabaAscpUopSupplierConsignorderNotifyReceivedResponse -} - -// 商家仓物流发货推单接单回告 成功返回结果 -type AlibabaAscpUopSupplierConsignorderNotifyReceivedResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_uop_supplier_consignorder_notify_received_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - ConsignorderNotifyReceivedResponse *ResultWrapper `json:"consignorder_notify_received_response,omitempty" xml:"consignorder_notify_received_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIRequest.go b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIRequest.go new file mode 100644 index 0000000000..69fcc96fe4 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家修改运单号 API请求 +alibaba.ascp.uop.supplier.consignorder.notify.tms.change + +供应商可以通过此接口,对出库回告上报的运单号进行修改,目前一次调用只能支持一个运单号的修改 +*/ +type AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIRequest struct { + model.Params + // 修改运单号请求模型 + _modifyMailNoRequest *Modifymailnorequest +} + +// 初始化AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIRequest对象 +func NewAlibabaAscpUopSupplierConsignorderNotifyTmsChangeRequest() *AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIRequest{ + return &AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.uop.supplier.consignorder.notify.tms.change" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ModifyMailNoRequest Setter +// 修改运单号请求模型 +func (r *AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIRequest) SetModifyMailNoRequest(_modifyMailNoRequest *Modifymailnorequest) error { + r._modifyMailNoRequest = _modifyMailNoRequest + r.Set("modify_mail_no_request", _modifyMailNoRequest) + return nil +} + +// ModifyMailNoRequest Getter +func (r AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIRequest) GetModifyMailNoRequest() *Modifymailnorequest { + return r._modifyMailNoRequest +} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIResponse.go b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIResponse.go new file mode 100644 index 0000000000..c4a822f0bb --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家修改运单号 API返回值 +alibaba.ascp.uop.supplier.consignorder.notify.tms.change + +供应商可以通过此接口,对出库回告上报的运单号进行修改,目前一次调用只能支持一个运单号的修改 +*/ +type AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIResponse struct { + model.CommonResponse + AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIResponseModel +} + +// 商家修改运单号 成功返回结果 +type AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_uop_supplier_consignorder_notify_tms_change_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + ModifyMailNoResponse *ResultWrapper `json:"modify_mail_no_response,omitempty" xml:"modify_mail_no_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyTmsChangeResponse.go b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyTmsChangeResponse.go deleted file mode 100644 index f642772110..0000000000 --- a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderNotifyTmsChangeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家修改运单号 API返回值 -alibaba.ascp.uop.supplier.consignorder.notify.tms.change - -供应商可以通过此接口,对出库回告上报的运单号进行修改,目前一次调用只能支持一个运单号的修改 -*/ -type AlibabaAscpUopSupplierConsignorderNotifyTmsChangeAPIResponse struct { - model.CommonResponse - AlibabaAscpUopSupplierConsignorderNotifyTmsChangeResponse -} - -// 商家修改运单号 成功返回结果 -type AlibabaAscpUopSupplierConsignorderNotifyTmsChangeResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_uop_supplier_consignorder_notify_tms_change_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - ModifyMailNoResponse *ResultWrapper `json:"modify_mail_no_response,omitempty" xml:"modify_mail_no_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIRequest.go b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIRequest.go new file mode 100644 index 0000000000..3c42a554f1 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +履约单纬度的仓缺货回告服务 API请求 +alibaba.ascp.uop.supplier.consignorder.outofstock.callback + +商家仓履约单纬度的仓缺货回告接口 +*/ +type AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIRequest struct { + model.Params + // 缺货回告请求模型 + _consignorderOutofstockCallbackRequest *Consignorderoutofstockcallbackrequest +} + +// 初始化AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIRequest对象 +func NewAlibabaAscpUopSupplierConsignorderOutofstockCallbackRequest() *AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIRequest{ + return &AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.uop.supplier.consignorder.outofstock.callback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ConsignorderOutofstockCallbackRequest Setter +// 缺货回告请求模型 +func (r *AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIRequest) SetConsignorderOutofstockCallbackRequest(_consignorderOutofstockCallbackRequest *Consignorderoutofstockcallbackrequest) error { + r._consignorderOutofstockCallbackRequest = _consignorderOutofstockCallbackRequest + r.Set("consignorder_outofstock_callback_request", _consignorderOutofstockCallbackRequest) + return nil +} + +// ConsignorderOutofstockCallbackRequest Getter +func (r AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIRequest) GetConsignorderOutofstockCallbackRequest() *Consignorderoutofstockcallbackrequest { + return r._consignorderOutofstockCallbackRequest +} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIResponse.go b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIResponse.go new file mode 100644 index 0000000000..1a77d80ea5 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +履约单纬度的仓缺货回告服务 API返回值 +alibaba.ascp.uop.supplier.consignorder.outofstock.callback + +商家仓履约单纬度的仓缺货回告接口 +*/ +type AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIResponse struct { + model.CommonResponse + AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIResponseModel +} + +// 履约单纬度的仓缺货回告服务 成功返回结果 +type AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_uop_supplier_consignorder_outofstock_callback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + ConsignorderOutofstockCallbackResponse *ResultWrapper `json:"consignorder_outofstock_callback_response,omitempty" xml:"consignorder_outofstock_callback_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderOutofstockCallbackResponse.go b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderOutofstockCallbackResponse.go deleted file mode 100644 index ab7d65d948..0000000000 --- a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderOutofstockCallbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -履约单纬度的仓缺货回告服务 API返回值 -alibaba.ascp.uop.supplier.consignorder.outofstock.callback - -商家仓履约单纬度的仓缺货回告接口 -*/ -type AlibabaAscpUopSupplierConsignorderOutofstockCallbackAPIResponse struct { - model.CommonResponse - AlibabaAscpUopSupplierConsignorderOutofstockCallbackResponse -} - -// 履约单纬度的仓缺货回告服务 成功返回结果 -type AlibabaAscpUopSupplierConsignorderOutofstockCallbackResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_uop_supplier_consignorder_outofstock_callback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - ConsignorderOutofstockCallbackResponse *ResultWrapper `json:"consignorder_outofstock_callback_response,omitempty" xml:"consignorder_outofstock_callback_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderShipAPIRequest.go b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderShipAPIRequest.go new file mode 100644 index 0000000000..e45d35a062 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderShipAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +履约单商家仓发货结果回传服务 API请求 +alibaba.ascp.uop.supplier.consignorder.ship + +ERP通过该接口通知商家仓声明销售订单出库信息,支持履约单纬度全部发货的回传(目前不支持分批回传) +*/ +type AlibabaAscpUopSupplierConsignorderShipAPIRequest struct { + model.Params + // 发货回传请求模型 + _consignorderShipRequest *Consignordershiprequest +} + +// 初始化AlibabaAscpUopSupplierConsignorderShipAPIRequest对象 +func NewAlibabaAscpUopSupplierConsignorderShipRequest() *AlibabaAscpUopSupplierConsignorderShipAPIRequest{ + return &AlibabaAscpUopSupplierConsignorderShipAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpUopSupplierConsignorderShipAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.uop.supplier.consignorder.ship" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpUopSupplierConsignorderShipAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ConsignorderShipRequest Setter +// 发货回传请求模型 +func (r *AlibabaAscpUopSupplierConsignorderShipAPIRequest) SetConsignorderShipRequest(_consignorderShipRequest *Consignordershiprequest) error { + r._consignorderShipRequest = _consignorderShipRequest + r.Set("consignorder_ship_request", _consignorderShipRequest) + return nil +} + +// ConsignorderShipRequest Getter +func (r AlibabaAscpUopSupplierConsignorderShipAPIRequest) GetConsignorderShipRequest() *Consignordershiprequest { + return r._consignorderShipRequest +} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderShipAPIResponse.go b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderShipAPIResponse.go new file mode 100644 index 0000000000..2f08a9bedd --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderShipAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +履约单商家仓发货结果回传服务 API返回值 +alibaba.ascp.uop.supplier.consignorder.ship + +ERP通过该接口通知商家仓声明销售订单出库信息,支持履约单纬度全部发货的回传(目前不支持分批回传) +*/ +type AlibabaAscpUopSupplierConsignorderShipAPIResponse struct { + model.CommonResponse + AlibabaAscpUopSupplierConsignorderShipAPIResponseModel +} + +// 履约单商家仓发货结果回传服务 成功返回结果 +type AlibabaAscpUopSupplierConsignorderShipAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_uop_supplier_consignorder_ship_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + ConsignorderShipResponse *ResultWrapper `json:"consignorder_ship_response,omitempty" xml:"consignorder_ship_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderShipResponse.go b/model/ascpchannel/AlibabaAscpUopSupplierConsignorderShipResponse.go deleted file mode 100644 index f80aa33bce..0000000000 --- a/model/ascpchannel/AlibabaAscpUopSupplierConsignorderShipResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -履约单商家仓发货结果回传服务 API返回值 -alibaba.ascp.uop.supplier.consignorder.ship - -ERP通过该接口通知商家仓声明销售订单出库信息,支持履约单纬度全部发货的回传(目前不支持分批回传) -*/ -type AlibabaAscpUopSupplierConsignorderShipAPIResponse struct { - model.CommonResponse - AlibabaAscpUopSupplierConsignorderShipResponse -} - -// 履约单商家仓发货结果回传服务 成功返回结果 -type AlibabaAscpUopSupplierConsignorderShipResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_uop_supplier_consignorder_ship_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - ConsignorderShipResponse *ResultWrapper `json:"consignorder_ship_response,omitempty" xml:"consignorder_ship_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierReverseorderCreateAPIRequest.go b/model/ascpchannel/AlibabaAscpUopSupplierReverseorderCreateAPIRequest.go new file mode 100644 index 0000000000..32b59027f3 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopSupplierReverseorderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家ERP发起创建销退单服务 API请求 +alibaba.ascp.uop.supplier.reverseorder.create + +商家在收到消费者实物退货后,在ERP发起创建销退单服务 +*/ +type AlibabaAscpUopSupplierReverseorderCreateAPIRequest struct { + model.Params + // 逆向销退单创建请求 + _reverseCreateRequest *ReverseCreateRequest +} + +// 初始化AlibabaAscpUopSupplierReverseorderCreateAPIRequest对象 +func NewAlibabaAscpUopSupplierReverseorderCreateRequest() *AlibabaAscpUopSupplierReverseorderCreateAPIRequest{ + return &AlibabaAscpUopSupplierReverseorderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpUopSupplierReverseorderCreateAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.uop.supplier.reverseorder.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpUopSupplierReverseorderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReverseCreateRequest Setter +// 逆向销退单创建请求 +func (r *AlibabaAscpUopSupplierReverseorderCreateAPIRequest) SetReverseCreateRequest(_reverseCreateRequest *ReverseCreateRequest) error { + r._reverseCreateRequest = _reverseCreateRequest + r.Set("reverse_create_request", _reverseCreateRequest) + return nil +} + +// ReverseCreateRequest Getter +func (r AlibabaAscpUopSupplierReverseorderCreateAPIRequest) GetReverseCreateRequest() *ReverseCreateRequest { + return r._reverseCreateRequest +} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierReverseorderCreateAPIResponse.go b/model/ascpchannel/AlibabaAscpUopSupplierReverseorderCreateAPIResponse.go new file mode 100644 index 0000000000..7077bb0bcc --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopSupplierReverseorderCreateAPIResponse.go @@ -0,0 +1,25 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家ERP发起创建销退单服务 API返回值 +alibaba.ascp.uop.supplier.reverseorder.create + +商家在收到消费者实物退货后,在ERP发起创建销退单服务 +*/ +type AlibabaAscpUopSupplierReverseorderCreateAPIResponse struct { + model.CommonResponse + AlibabaAscpUopSupplierReverseorderCreateAPIResponseModel +} + +// 商家ERP发起创建销退单服务 成功返回结果 +type AlibabaAscpUopSupplierReverseorderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_uop_supplier_reverseorder_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierReverseorderCreateResponse.go b/model/ascpchannel/AlibabaAscpUopSupplierReverseorderCreateResponse.go deleted file mode 100644 index 6d8b27ecba..0000000000 --- a/model/ascpchannel/AlibabaAscpUopSupplierReverseorderCreateResponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家ERP发起创建销退单服务 API返回值 -alibaba.ascp.uop.supplier.reverseorder.create - -商家在收到消费者实物退货后,在ERP发起创建销退单服务 -*/ -type AlibabaAscpUopSupplierReverseorderCreateAPIResponse struct { - model.CommonResponse - AlibabaAscpUopSupplierReverseorderCreateResponse -} - -// 商家ERP发起创建销退单服务 成功返回结果 -type AlibabaAscpUopSupplierReverseorderCreateResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_uop_supplier_reverseorder_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIRequest.go b/model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIRequest.go new file mode 100644 index 0000000000..bbe8cdf5ee --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +逆向销退入库单入库结果回告 API请求 +alibaba.ascp.uop.supplier.reverseorder.instorage.feedback + +ASCP按照逆向履约单纬度,通过该接口接收商家在退货完成时,自动创建销退单做入库回传。 +*/ +type AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIRequest struct { + model.Params + // 销退单入库结果请求 + _instorageFeedbackRequest *Instoragefeedbackrequest +} + +// 初始化AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIRequest对象 +func NewAlibabaAscpUopSupplierReverseorderInstorageFeedbackRequest() *AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIRequest{ + return &AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.uop.supplier.reverseorder.instorage.feedback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InstorageFeedbackRequest Setter +// 销退单入库结果请求 +func (r *AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIRequest) SetInstorageFeedbackRequest(_instorageFeedbackRequest *Instoragefeedbackrequest) error { + r._instorageFeedbackRequest = _instorageFeedbackRequest + r.Set("instorage_feedback_request", _instorageFeedbackRequest) + return nil +} + +// InstorageFeedbackRequest Getter +func (r AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIRequest) GetInstorageFeedbackRequest() *Instoragefeedbackrequest { + return r._instorageFeedbackRequest +} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIResponse.go b/model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIResponse.go new file mode 100644 index 0000000000..76ed96ba22 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +逆向销退入库单入库结果回告 API返回值 +alibaba.ascp.uop.supplier.reverseorder.instorage.feedback + +ASCP按照逆向履约单纬度,通过该接口接收商家在退货完成时,自动创建销退单做入库回传。 +*/ +type AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIResponse struct { + model.CommonResponse + AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIResponseModel +} + +// 逆向销退入库单入库结果回告 成功返回结果 +type AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_uop_supplier_reverseorder_instorage_feedback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + InstorageFeedbackResponse *ResultWrapper `json:"instorage_feedback_response,omitempty" xml:"instorage_feedback_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageFeedbackResponse.go b/model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageFeedbackResponse.go deleted file mode 100644 index 431d27deeb..0000000000 --- a/model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageFeedbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -逆向销退入库单入库结果回告 API返回值 -alibaba.ascp.uop.supplier.reverseorder.instorage.feedback - -ASCP按照逆向履约单纬度,通过该接口接收商家在退货完成时,自动创建销退单做入库回传。 -*/ -type AlibabaAscpUopSupplierReverseorderInstorageFeedbackAPIResponse struct { - model.CommonResponse - AlibabaAscpUopSupplierReverseorderInstorageFeedbackResponse -} - -// 逆向销退入库单入库结果回告 成功返回结果 -type AlibabaAscpUopSupplierReverseorderInstorageFeedbackResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_uop_supplier_reverseorder_instorage_feedback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - InstorageFeedbackResponse *ResultWrapper `json:"instorage_feedback_response,omitempty" xml:"instorage_feedback_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageResultAPIRequest.go b/model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageResultAPIRequest.go new file mode 100644 index 0000000000..74f6ffaa11 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageResultAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +逆向销退入库单到仓结果回告 API请求 +alibaba.ascp.uop.supplier.reverseorder.instorage.result + +ERP回告销退入库单到仓信息回告 +*/ +type AlibabaAscpUopSupplierReverseorderInstorageResultAPIRequest struct { + model.Params + // 消退入库单结果请求 + _instorageResultRequest *Instorageresultrequest +} + +// 初始化AlibabaAscpUopSupplierReverseorderInstorageResultAPIRequest对象 +func NewAlibabaAscpUopSupplierReverseorderInstorageResultRequest() *AlibabaAscpUopSupplierReverseorderInstorageResultAPIRequest{ + return &AlibabaAscpUopSupplierReverseorderInstorageResultAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpUopSupplierReverseorderInstorageResultAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.uop.supplier.reverseorder.instorage.result" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpUopSupplierReverseorderInstorageResultAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InstorageResultRequest Setter +// 消退入库单结果请求 +func (r *AlibabaAscpUopSupplierReverseorderInstorageResultAPIRequest) SetInstorageResultRequest(_instorageResultRequest *Instorageresultrequest) error { + r._instorageResultRequest = _instorageResultRequest + r.Set("instorage_result_request", _instorageResultRequest) + return nil +} + +// InstorageResultRequest Getter +func (r AlibabaAscpUopSupplierReverseorderInstorageResultAPIRequest) GetInstorageResultRequest() *Instorageresultrequest { + return r._instorageResultRequest +} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageResultAPIResponse.go b/model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageResultAPIResponse.go new file mode 100644 index 0000000000..47ce257500 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageResultAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +逆向销退入库单到仓结果回告 API返回值 +alibaba.ascp.uop.supplier.reverseorder.instorage.result + +ERP回告销退入库单到仓信息回告 +*/ +type AlibabaAscpUopSupplierReverseorderInstorageResultAPIResponse struct { + model.CommonResponse + AlibabaAscpUopSupplierReverseorderInstorageResultAPIResponseModel +} + +// 逆向销退入库单到仓结果回告 成功返回结果 +type AlibabaAscpUopSupplierReverseorderInstorageResultAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_uop_supplier_reverseorder_instorage_result_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + InstorageResultResponse *ResultWrapper `json:"instorage_result_response,omitempty" xml:"instorage_result_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageResultResponse.go b/model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageResultResponse.go deleted file mode 100644 index d71cf80c2b..0000000000 --- a/model/ascpchannel/AlibabaAscpUopSupplierReverseorderInstorageResultResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -逆向销退入库单到仓结果回告 API返回值 -alibaba.ascp.uop.supplier.reverseorder.instorage.result - -ERP回告销退入库单到仓信息回告 -*/ -type AlibabaAscpUopSupplierReverseorderInstorageResultAPIResponse struct { - model.CommonResponse - AlibabaAscpUopSupplierReverseorderInstorageResultResponse -} - -// 逆向销退入库单到仓结果回告 成功返回结果 -type AlibabaAscpUopSupplierReverseorderInstorageResultResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_uop_supplier_reverseorder_instorage_result_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - InstorageResultResponse *ResultWrapper `json:"instorage_result_response,omitempty" xml:"instorage_result_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierWaybillQueryAPIRequest.go b/model/ascpchannel/AlibabaAscpUopSupplierWaybillQueryAPIRequest.go new file mode 100644 index 0000000000..e0ce94a301 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopSupplierWaybillQueryAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ERP调用打印面单取号接口 API请求 +alibaba.ascp.uop.supplier.waybill.query + +ERP调用打印面单取号接口 +*/ +type AlibabaAscpUopSupplierWaybillQueryAPIRequest struct { + model.Params + // 查询面单请求参数 + _waybillQueryRequest *Waybillqueryrequest +} + +// 初始化AlibabaAscpUopSupplierWaybillQueryAPIRequest对象 +func NewAlibabaAscpUopSupplierWaybillQueryRequest() *AlibabaAscpUopSupplierWaybillQueryAPIRequest{ + return &AlibabaAscpUopSupplierWaybillQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpUopSupplierWaybillQueryAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.uop.supplier.waybill.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpUopSupplierWaybillQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WaybillQueryRequest Setter +// 查询面单请求参数 +func (r *AlibabaAscpUopSupplierWaybillQueryAPIRequest) SetWaybillQueryRequest(_waybillQueryRequest *Waybillqueryrequest) error { + r._waybillQueryRequest = _waybillQueryRequest + r.Set("waybill_query_request", _waybillQueryRequest) + return nil +} + +// WaybillQueryRequest Getter +func (r AlibabaAscpUopSupplierWaybillQueryAPIRequest) GetWaybillQueryRequest() *Waybillqueryrequest { + return r._waybillQueryRequest +} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierWaybillQueryAPIResponse.go b/model/ascpchannel/AlibabaAscpUopSupplierWaybillQueryAPIResponse.go new file mode 100644 index 0000000000..336e1d2c47 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopSupplierWaybillQueryAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ERP调用打印面单取号接口 API返回值 +alibaba.ascp.uop.supplier.waybill.query + +ERP调用打印面单取号接口 +*/ +type AlibabaAscpUopSupplierWaybillQueryAPIResponse struct { + model.CommonResponse + AlibabaAscpUopSupplierWaybillQueryAPIResponseModel +} + +// ERP调用打印面单取号接口 成功返回结果 +type AlibabaAscpUopSupplierWaybillQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_uop_supplier_waybill_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + WaybillQueryResponse *ResultWrapper `json:"waybill_query_response,omitempty" xml:"waybill_query_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpUopSupplierWaybillQueryResponse.go b/model/ascpchannel/AlibabaAscpUopSupplierWaybillQueryResponse.go deleted file mode 100644 index 0c263e1f64..0000000000 --- a/model/ascpchannel/AlibabaAscpUopSupplierWaybillQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ERP调用打印面单取号接口 API返回值 -alibaba.ascp.uop.supplier.waybill.query - -ERP调用打印面单取号接口 -*/ -type AlibabaAscpUopSupplierWaybillQueryAPIResponse struct { - model.CommonResponse - AlibabaAscpUopSupplierWaybillQueryResponse -} - -// ERP调用打印面单取号接口 成功返回结果 -type AlibabaAscpUopSupplierWaybillQueryResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_uop_supplier_waybill_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - WaybillQueryResponse *ResultWrapper `json:"waybill_query_response,omitempty" xml:"waybill_query_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIRequest.go b/model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIRequest.go new file mode 100644 index 0000000000..6496817acc --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +预售商家仓出库 API请求 +alibaba.ascp.uop.taobao.presalesorder.consignconfirm + +预售商家仓出库 +*/ +type AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIRequest struct { + model.Params + // 预售订单商家仓出库对象 + _presalesOrderConsignConfirmRequest *Presalesorderconsignconfirmrequest +} + +// 初始化AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIRequest对象 +func NewAlibabaAscpUopTaobaoPresalesorderConsignconfirmRequest() *AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIRequest{ + return &AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.uop.taobao.presalesorder.consignconfirm" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PresalesOrderConsignConfirmRequest Setter +// 预售订单商家仓出库对象 +func (r *AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIRequest) SetPresalesOrderConsignConfirmRequest(_presalesOrderConsignConfirmRequest *Presalesorderconsignconfirmrequest) error { + r._presalesOrderConsignConfirmRequest = _presalesOrderConsignConfirmRequest + r.Set("presales_order_consign_confirm_request", _presalesOrderConsignConfirmRequest) + return nil +} + +// PresalesOrderConsignConfirmRequest Getter +func (r AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIRequest) GetPresalesOrderConsignConfirmRequest() *Presalesorderconsignconfirmrequest { + return r._presalesOrderConsignConfirmRequest +} diff --git a/model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIResponse.go b/model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIResponse.go new file mode 100644 index 0000000000..f8e0ac9d51 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +预售商家仓出库 API返回值 +alibaba.ascp.uop.taobao.presalesorder.consignconfirm + +预售商家仓出库 +*/ +type AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIResponse struct { + model.CommonResponse + AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIResponseModel +} + +// 预售商家仓出库 成功返回结果 +type AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_uop_taobao_presalesorder_consignconfirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + PresalesOrderConsignConfirmResponse *ResultWrapper `json:"presales_order_consign_confirm_response,omitempty" xml:"presales_order_consign_confirm_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderConsignconfirmResponse.go b/model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderConsignconfirmResponse.go deleted file mode 100644 index 16cebaa08f..0000000000 --- a/model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderConsignconfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -预售商家仓出库 API返回值 -alibaba.ascp.uop.taobao.presalesorder.consignconfirm - -预售商家仓出库 -*/ -type AlibabaAscpUopTaobaoPresalesorderConsignconfirmAPIResponse struct { - model.CommonResponse - AlibabaAscpUopTaobaoPresalesorderConsignconfirmResponse -} - -// 预售商家仓出库 成功返回结果 -type AlibabaAscpUopTaobaoPresalesorderConsignconfirmResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_uop_taobao_presalesorder_consignconfirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - PresalesOrderConsignConfirmResponse *ResultWrapper `json:"presales_order_consign_confirm_response,omitempty" xml:"presales_order_consign_confirm_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderCreateAPIRequest.go b/model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderCreateAPIRequest.go new file mode 100644 index 0000000000..d4e7ed3adb --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +预售商家仓接单 API请求 +alibaba.ascp.uop.taobao.presalesorder.create + +预售商家仓接单 +*/ +type AlibabaAscpUopTaobaoPresalesorderCreateAPIRequest struct { + model.Params + // 预售商家仓接单对象 + _presalesOrderCreateRequest *PresalesordercreaterequestTest +} + +// 初始化AlibabaAscpUopTaobaoPresalesorderCreateAPIRequest对象 +func NewAlibabaAscpUopTaobaoPresalesorderCreateRequest() *AlibabaAscpUopTaobaoPresalesorderCreateAPIRequest{ + return &AlibabaAscpUopTaobaoPresalesorderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpUopTaobaoPresalesorderCreateAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.uop.taobao.presalesorder.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpUopTaobaoPresalesorderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PresalesOrderCreateRequest Setter +// 预售商家仓接单对象 +func (r *AlibabaAscpUopTaobaoPresalesorderCreateAPIRequest) SetPresalesOrderCreateRequest(_presalesOrderCreateRequest *PresalesordercreaterequestTest) error { + r._presalesOrderCreateRequest = _presalesOrderCreateRequest + r.Set("presales_order_create_request", _presalesOrderCreateRequest) + return nil +} + +// PresalesOrderCreateRequest Getter +func (r AlibabaAscpUopTaobaoPresalesorderCreateAPIRequest) GetPresalesOrderCreateRequest() *PresalesordercreaterequestTest { + return r._presalesOrderCreateRequest +} diff --git a/model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderCreateAPIResponse.go b/model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderCreateAPIResponse.go new file mode 100644 index 0000000000..f3837de20c --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +预售商家仓接单 API返回值 +alibaba.ascp.uop.taobao.presalesorder.create + +预售商家仓接单 +*/ +type AlibabaAscpUopTaobaoPresalesorderCreateAPIResponse struct { + model.CommonResponse + AlibabaAscpUopTaobaoPresalesorderCreateAPIResponseModel +} + +// 预售商家仓接单 成功返回结果 +type AlibabaAscpUopTaobaoPresalesorderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_uop_taobao_presalesorder_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + PresalesOrderCreateResponse *ResultWrapper `json:"presales_order_create_response,omitempty" xml:"presales_order_create_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderCreateResponse.go b/model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderCreateResponse.go deleted file mode 100644 index cc2ab99a90..0000000000 --- a/model/ascpchannel/AlibabaAscpUopTaobaoPresalesorderCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -预售商家仓接单 API返回值 -alibaba.ascp.uop.taobao.presalesorder.create - -预售商家仓接单 -*/ -type AlibabaAscpUopTaobaoPresalesorderCreateAPIResponse struct { - model.CommonResponse - AlibabaAscpUopTaobaoPresalesorderCreateResponse -} - -// 预售商家仓接单 成功返回结果 -type AlibabaAscpUopTaobaoPresalesorderCreateResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_uop_taobao_presalesorder_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - PresalesOrderCreateResponse *ResultWrapper `json:"presales_order_create_response,omitempty" xml:"presales_order_create_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpUopTaobaoWaybillQuerycpAPIRequest.go b/model/ascpchannel/AlibabaAscpUopTaobaoWaybillQuerycpAPIRequest.go new file mode 100644 index 0000000000..aafa44a414 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopTaobaoWaybillQuerycpAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询电子面单开放的CP列表 API请求 +alibaba.ascp.uop.taobao.waybill.querycp + +查询电子面单开放的CP列表 +*/ +type AlibabaAscpUopTaobaoWaybillQuerycpAPIRequest struct { + model.Params + // 系统自动生成 + _queryCpRequest *Querycprequest +} + +// 初始化AlibabaAscpUopTaobaoWaybillQuerycpAPIRequest对象 +func NewAlibabaAscpUopTaobaoWaybillQuerycpRequest() *AlibabaAscpUopTaobaoWaybillQuerycpAPIRequest{ + return &AlibabaAscpUopTaobaoWaybillQuerycpAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpUopTaobaoWaybillQuerycpAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.uop.taobao.waybill.querycp" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpUopTaobaoWaybillQuerycpAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryCpRequest Setter +// 系统自动生成 +func (r *AlibabaAscpUopTaobaoWaybillQuerycpAPIRequest) SetQueryCpRequest(_queryCpRequest *Querycprequest) error { + r._queryCpRequest = _queryCpRequest + r.Set("query_cp_request", _queryCpRequest) + return nil +} + +// QueryCpRequest Getter +func (r AlibabaAscpUopTaobaoWaybillQuerycpAPIRequest) GetQueryCpRequest() *Querycprequest { + return r._queryCpRequest +} diff --git a/model/ascpchannel/AlibabaAscpUopTaobaoWaybillQuerycpAPIResponse.go b/model/ascpchannel/AlibabaAscpUopTaobaoWaybillQuerycpAPIResponse.go new file mode 100644 index 0000000000..efcf80593d --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopTaobaoWaybillQuerycpAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询电子面单开放的CP列表 API返回值 +alibaba.ascp.uop.taobao.waybill.querycp + +查询电子面单开放的CP列表 +*/ +type AlibabaAscpUopTaobaoWaybillQuerycpAPIResponse struct { + model.CommonResponse + AlibabaAscpUopTaobaoWaybillQuerycpAPIResponseModel +} + +// 查询电子面单开放的CP列表 成功返回结果 +type AlibabaAscpUopTaobaoWaybillQuerycpAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_uop_taobao_waybill_querycp_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + QueryCpResponse *ResultWrapper `json:"query_cp_response,omitempty" xml:"query_cp_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpUopTaobaoWaybillQuerycpResponse.go b/model/ascpchannel/AlibabaAscpUopTaobaoWaybillQuerycpResponse.go deleted file mode 100644 index 4e41c9d164..0000000000 --- a/model/ascpchannel/AlibabaAscpUopTaobaoWaybillQuerycpResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询电子面单开放的CP列表 API返回值 -alibaba.ascp.uop.taobao.waybill.querycp - -查询电子面单开放的CP列表 -*/ -type AlibabaAscpUopTaobaoWaybillQuerycpAPIResponse struct { - model.CommonResponse - AlibabaAscpUopTaobaoWaybillQuerycpResponse -} - -// 查询电子面单开放的CP列表 成功返回结果 -type AlibabaAscpUopTaobaoWaybillQuerycpResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_uop_taobao_waybill_querycp_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - QueryCpResponse *ResultWrapper `json:"query_cp_response,omitempty" xml:"query_cp_response,omitempty"` -} diff --git a/model/ascpchannel/AlibabaAscpUopTobPackageQueryAPIRequest.go b/model/ascpchannel/AlibabaAscpUopTobPackageQueryAPIRequest.go new file mode 100644 index 0000000000..760422d970 --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopTobPackageQueryAPIRequest.go @@ -0,0 +1,52 @@ +package ascpchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +B2B包裹查询接口 API请求 +alibaba.ascp.uop.tob.package.query + +供应链中台TOB包裹查询接口 +*/ +type AlibabaAscpUopTobPackageQueryAPIRequest struct { + model.Params + // 系统自动生成 + _packageQueryRequest *Packagequeryrequest +} + +// 初始化AlibabaAscpUopTobPackageQueryAPIRequest对象 +func NewAlibabaAscpUopTobPackageQueryRequest() *AlibabaAscpUopTobPackageQueryAPIRequest{ + return &AlibabaAscpUopTobPackageQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpUopTobPackageQueryAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.uop.tob.package.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpUopTobPackageQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PackageQueryRequest Setter +// 系统自动生成 +func (r *AlibabaAscpUopTobPackageQueryAPIRequest) SetPackageQueryRequest(_packageQueryRequest *Packagequeryrequest) error { + r._packageQueryRequest = _packageQueryRequest + r.Set("package_query_request", _packageQueryRequest) + return nil +} + +// PackageQueryRequest Getter +func (r AlibabaAscpUopTobPackageQueryAPIRequest) GetPackageQueryRequest() *Packagequeryrequest { + return r._packageQueryRequest +} diff --git a/model/ascpchannel/AlibabaAscpUopTobPackageQueryAPIResponse.go b/model/ascpchannel/AlibabaAscpUopTobPackageQueryAPIResponse.go new file mode 100644 index 0000000000..67e15ab0af --- /dev/null +++ b/model/ascpchannel/AlibabaAscpUopTobPackageQueryAPIResponse.go @@ -0,0 +1,27 @@ +package ascpchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +B2B包裹查询接口 API返回值 +alibaba.ascp.uop.tob.package.query + +供应链中台TOB包裹查询接口 +*/ +type AlibabaAscpUopTobPackageQueryAPIResponse struct { + model.CommonResponse + AlibabaAscpUopTobPackageQueryAPIResponseModel +} + +// B2B包裹查询接口 成功返回结果 +type AlibabaAscpUopTobPackageQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_uop_tob_package_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值包装,result为返回具体消息内容 + PackageQueryResponse *ResultWrapper `json:"package_query_response,omitempty" xml:"package_query_response,omitempty"` +} diff --git a/model/ascpchannel/AlibabaAscpUopTobPackageQueryResponse.go b/model/ascpchannel/AlibabaAscpUopTobPackageQueryResponse.go deleted file mode 100644 index a4e0b0c669..0000000000 --- a/model/ascpchannel/AlibabaAscpUopTobPackageQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -B2B包裹查询接口 API返回值 -alibaba.ascp.uop.tob.package.query - -供应链中台TOB包裹查询接口 -*/ -type AlibabaAscpUopTobPackageQueryAPIResponse struct { - model.CommonResponse - AlibabaAscpUopTobPackageQueryResponse -} - -// B2B包裹查询接口 成功返回结果 -type AlibabaAscpUopTobPackageQueryResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_uop_tob_package_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值包装,result为返回具体消息内容 - PackageQueryResponse *ResultWrapper `json:"package_query_response,omitempty" xml:"package_query_response,omitempty"` -} diff --git a/model/ascpffo/AliexpressAscpFfoItemQueryAPIRequest.go b/model/ascpffo/AliexpressAscpFfoItemQueryAPIRequest.go new file mode 100644 index 0000000000..d313b1d83b --- /dev/null +++ b/model/ascpffo/AliexpressAscpFfoItemQueryAPIRequest.go @@ -0,0 +1,52 @@ +package ascpffo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AliExpress发货单明细分页查询API API请求 +aliexpress.ascp.ffo.item.query + +AE履约发货单明细分页查询 +*/ +type AliexpressAscpFfoItemQueryAPIRequest struct { + model.Params + // DTO + _fulfillmentForwardOrderItemQuery *FulfillmentForwardOrderItemQueryDto +} + +// 初始化AliexpressAscpFfoItemQueryAPIRequest对象 +func NewAliexpressAscpFfoItemQueryRequest() *AliexpressAscpFfoItemQueryAPIRequest{ + return &AliexpressAscpFfoItemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAscpFfoItemQueryAPIRequest) GetApiMethodName() string { + return "aliexpress.ascp.ffo.item.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAscpFfoItemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FulfillmentForwardOrderItemQuery Setter +// DTO +func (r *AliexpressAscpFfoItemQueryAPIRequest) SetFulfillmentForwardOrderItemQuery(_fulfillmentForwardOrderItemQuery *FulfillmentForwardOrderItemQueryDto) error { + r._fulfillmentForwardOrderItemQuery = _fulfillmentForwardOrderItemQuery + r.Set("fulfillment_forward_order_item_query", _fulfillmentForwardOrderItemQuery) + return nil +} + +// FulfillmentForwardOrderItemQuery Getter +func (r AliexpressAscpFfoItemQueryAPIRequest) GetFulfillmentForwardOrderItemQuery() *FulfillmentForwardOrderItemQueryDto { + return r._fulfillmentForwardOrderItemQuery +} diff --git a/model/ascpffo/AliexpressAscpFfoItemQueryAPIResponse.go b/model/ascpffo/AliexpressAscpFfoItemQueryAPIResponse.go new file mode 100644 index 0000000000..33752c7d17 --- /dev/null +++ b/model/ascpffo/AliexpressAscpFfoItemQueryAPIResponse.go @@ -0,0 +1,27 @@ +package ascpffo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AliExpress发货单明细分页查询API API返回值 +aliexpress.ascp.ffo.item.query + +AE履约发货单明细分页查询 +*/ +type AliexpressAscpFfoItemQueryAPIResponse struct { + model.CommonResponse + AliexpressAscpFfoItemQueryAPIResponseModel +} + +// AliExpress发货单明细分页查询API 成功返回结果 +type AliexpressAscpFfoItemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_ascp_ffo_item_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AliexpressAscpFfoItemQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpffo/AliexpressAscpFfoItemQueryResponse.go b/model/ascpffo/AliexpressAscpFfoItemQueryResponse.go deleted file mode 100644 index 35ab626a72..0000000000 --- a/model/ascpffo/AliexpressAscpFfoItemQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpffo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AliExpress发货单明细分页查询API API返回值 -aliexpress.ascp.ffo.item.query - -AE履约发货单明细分页查询 -*/ -type AliexpressAscpFfoItemQueryAPIResponse struct { - model.CommonResponse - AliexpressAscpFfoItemQueryResponse -} - -// AliExpress发货单明细分页查询API 成功返回结果 -type AliexpressAscpFfoItemQueryResponse struct { - XMLName xml.Name `xml:"aliexpress_ascp_ffo_item_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AliexpressAscpFfoItemQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpffo/AliexpressAscpFfoQueryAPIRequest.go b/model/ascpffo/AliexpressAscpFfoQueryAPIRequest.go new file mode 100644 index 0000000000..d29b4a789f --- /dev/null +++ b/model/ascpffo/AliexpressAscpFfoQueryAPIRequest.go @@ -0,0 +1,52 @@ +package ascpffo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AliExpress发货单查询API API请求 +aliexpress.ascp.ffo.query + +AE 履约发货单分页查询接口 +*/ +type AliexpressAscpFfoQueryAPIRequest struct { + model.Params + // dto + _fulfillmentForwardOrderQuery *FulfillmentForwardOrderQueryDto +} + +// 初始化AliexpressAscpFfoQueryAPIRequest对象 +func NewAliexpressAscpFfoQueryRequest() *AliexpressAscpFfoQueryAPIRequest{ + return &AliexpressAscpFfoQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAscpFfoQueryAPIRequest) GetApiMethodName() string { + return "aliexpress.ascp.ffo.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAscpFfoQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FulfillmentForwardOrderQuery Setter +// dto +func (r *AliexpressAscpFfoQueryAPIRequest) SetFulfillmentForwardOrderQuery(_fulfillmentForwardOrderQuery *FulfillmentForwardOrderQueryDto) error { + r._fulfillmentForwardOrderQuery = _fulfillmentForwardOrderQuery + r.Set("fulfillment_forward_order_query", _fulfillmentForwardOrderQuery) + return nil +} + +// FulfillmentForwardOrderQuery Getter +func (r AliexpressAscpFfoQueryAPIRequest) GetFulfillmentForwardOrderQuery() *FulfillmentForwardOrderQueryDto { + return r._fulfillmentForwardOrderQuery +} diff --git a/model/ascpffo/AliexpressAscpFfoQueryAPIResponse.go b/model/ascpffo/AliexpressAscpFfoQueryAPIResponse.go new file mode 100644 index 0000000000..e328d221b6 --- /dev/null +++ b/model/ascpffo/AliexpressAscpFfoQueryAPIResponse.go @@ -0,0 +1,27 @@ +package ascpffo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AliExpress发货单查询API API返回值 +aliexpress.ascp.ffo.query + +AE 履约发货单分页查询接口 +*/ +type AliexpressAscpFfoQueryAPIResponse struct { + model.CommonResponse + AliexpressAscpFfoQueryAPIResponseModel +} + +// AliExpress发货单查询API 成功返回结果 +type AliexpressAscpFfoQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_ascp_ffo_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // dto + Result *PageQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpffo/AliexpressAscpFfoQueryResponse.go b/model/ascpffo/AliexpressAscpFfoQueryResponse.go deleted file mode 100644 index 465a527d85..0000000000 --- a/model/ascpffo/AliexpressAscpFfoQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpffo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AliExpress发货单查询API API返回值 -aliexpress.ascp.ffo.query - -AE 履约发货单分页查询接口 -*/ -type AliexpressAscpFfoQueryAPIResponse struct { - model.CommonResponse - AliexpressAscpFfoQueryResponse -} - -// AliExpress发货单查询API 成功返回结果 -type AliexpressAscpFfoQueryResponse struct { - XMLName xml.Name `xml:"aliexpress_ascp_ffo_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // dto - Result *PageQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpffo/AliexpressAscpFroItemQueryAPIRequest.go b/model/ascpffo/AliexpressAscpFroItemQueryAPIRequest.go new file mode 100644 index 0000000000..845b9ebfb3 --- /dev/null +++ b/model/ascpffo/AliexpressAscpFroItemQueryAPIRequest.go @@ -0,0 +1,52 @@ +package ascpffo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AliExpress销退单明细查询API API请求 +aliexpress.ascp.fro.item.query + +AE履约销退单明细查询API +*/ +type AliexpressAscpFroItemQueryAPIRequest struct { + model.Params + // dto + _fulfillmentReverseOrderItemQuery *FulfillmentReverseOrderItemQueryDto +} + +// 初始化AliexpressAscpFroItemQueryAPIRequest对象 +func NewAliexpressAscpFroItemQueryRequest() *AliexpressAscpFroItemQueryAPIRequest{ + return &AliexpressAscpFroItemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAscpFroItemQueryAPIRequest) GetApiMethodName() string { + return "aliexpress.ascp.fro.item.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAscpFroItemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FulfillmentReverseOrderItemQuery Setter +// dto +func (r *AliexpressAscpFroItemQueryAPIRequest) SetFulfillmentReverseOrderItemQuery(_fulfillmentReverseOrderItemQuery *FulfillmentReverseOrderItemQueryDto) error { + r._fulfillmentReverseOrderItemQuery = _fulfillmentReverseOrderItemQuery + r.Set("fulfillment_reverse_order_item_query", _fulfillmentReverseOrderItemQuery) + return nil +} + +// FulfillmentReverseOrderItemQuery Getter +func (r AliexpressAscpFroItemQueryAPIRequest) GetFulfillmentReverseOrderItemQuery() *FulfillmentReverseOrderItemQueryDto { + return r._fulfillmentReverseOrderItemQuery +} diff --git a/model/ascpffo/AliexpressAscpFroItemQueryAPIResponse.go b/model/ascpffo/AliexpressAscpFroItemQueryAPIResponse.go new file mode 100644 index 0000000000..9605fba1fa --- /dev/null +++ b/model/ascpffo/AliexpressAscpFroItemQueryAPIResponse.go @@ -0,0 +1,27 @@ +package ascpffo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AliExpress销退单明细查询API API返回值 +aliexpress.ascp.fro.item.query + +AE履约销退单明细查询API +*/ +type AliexpressAscpFroItemQueryAPIResponse struct { + model.CommonResponse + AliexpressAscpFroItemQueryAPIResponseModel +} + +// AliExpress销退单明细查询API 成功返回结果 +type AliexpressAscpFroItemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_ascp_fro_item_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AliexpressAscpFroItemQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpffo/AliexpressAscpFroItemQueryResponse.go b/model/ascpffo/AliexpressAscpFroItemQueryResponse.go deleted file mode 100644 index ac933efc18..0000000000 --- a/model/ascpffo/AliexpressAscpFroItemQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpffo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AliExpress销退单明细查询API API返回值 -aliexpress.ascp.fro.item.query - -AE履约销退单明细查询API -*/ -type AliexpressAscpFroItemQueryAPIResponse struct { - model.CommonResponse - AliexpressAscpFroItemQueryResponse -} - -// AliExpress销退单明细查询API 成功返回结果 -type AliexpressAscpFroItemQueryResponse struct { - XMLName xml.Name `xml:"aliexpress_ascp_fro_item_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AliexpressAscpFroItemQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpffo/AliexpressAscpFroQueryAPIRequest.go b/model/ascpffo/AliexpressAscpFroQueryAPIRequest.go new file mode 100644 index 0000000000..d1febd7372 --- /dev/null +++ b/model/ascpffo/AliexpressAscpFroQueryAPIRequest.go @@ -0,0 +1,52 @@ +package ascpffo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AliExpress销退单查询API API请求 +aliexpress.ascp.fro.query + +AE履约销退单查询接口 +*/ +type AliexpressAscpFroQueryAPIRequest struct { + model.Params + // dto + _fulfillmentReverseOrderQuery *FulfillmentReverseOrderQueryDto +} + +// 初始化AliexpressAscpFroQueryAPIRequest对象 +func NewAliexpressAscpFroQueryRequest() *AliexpressAscpFroQueryAPIRequest{ + return &AliexpressAscpFroQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAscpFroQueryAPIRequest) GetApiMethodName() string { + return "aliexpress.ascp.fro.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAscpFroQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FulfillmentReverseOrderQuery Setter +// dto +func (r *AliexpressAscpFroQueryAPIRequest) SetFulfillmentReverseOrderQuery(_fulfillmentReverseOrderQuery *FulfillmentReverseOrderQueryDto) error { + r._fulfillmentReverseOrderQuery = _fulfillmentReverseOrderQuery + r.Set("fulfillment_reverse_order_query", _fulfillmentReverseOrderQuery) + return nil +} + +// FulfillmentReverseOrderQuery Getter +func (r AliexpressAscpFroQueryAPIRequest) GetFulfillmentReverseOrderQuery() *FulfillmentReverseOrderQueryDto { + return r._fulfillmentReverseOrderQuery +} diff --git a/model/ascpffo/AliexpressAscpFroQueryAPIResponse.go b/model/ascpffo/AliexpressAscpFroQueryAPIResponse.go new file mode 100644 index 0000000000..e3001a5e66 --- /dev/null +++ b/model/ascpffo/AliexpressAscpFroQueryAPIResponse.go @@ -0,0 +1,27 @@ +package ascpffo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AliExpress销退单查询API API返回值 +aliexpress.ascp.fro.query + +AE履约销退单查询接口 +*/ +type AliexpressAscpFroQueryAPIResponse struct { + model.CommonResponse + AliexpressAscpFroQueryAPIResponseModel +} + +// AliExpress销退单查询API 成功返回结果 +type AliexpressAscpFroQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_ascp_fro_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // DTO + Result *PageQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpffo/AliexpressAscpFroQueryResponse.go b/model/ascpffo/AliexpressAscpFroQueryResponse.go deleted file mode 100644 index 15ec05ff56..0000000000 --- a/model/ascpffo/AliexpressAscpFroQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpffo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AliExpress销退单查询API API返回值 -aliexpress.ascp.fro.query - -AE履约销退单查询接口 -*/ -type AliexpressAscpFroQueryAPIResponse struct { - model.CommonResponse - AliexpressAscpFroQueryResponse -} - -// AliExpress销退单查询API 成功返回结果 -type AliexpressAscpFroQueryResponse struct { - XMLName xml.Name `xml:"aliexpress_ascp_fro_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // DTO - Result *PageQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpffo/AliexpressAscpItemQueryAPIRequest.go b/model/ascpffo/AliexpressAscpItemQueryAPIRequest.go new file mode 100644 index 0000000000..52338bc397 --- /dev/null +++ b/model/ascpffo/AliexpressAscpItemQueryAPIRequest.go @@ -0,0 +1,52 @@ +package ascpffo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AliExpress货品查询查询API API请求 +aliexpress.ascp.item.query + +AE货品查询API +*/ +type AliexpressAscpItemQueryAPIRequest struct { + model.Params + // DTO + _scItemQuery *ScItemQueryDto +} + +// 初始化AliexpressAscpItemQueryAPIRequest对象 +func NewAliexpressAscpItemQueryRequest() *AliexpressAscpItemQueryAPIRequest{ + return &AliexpressAscpItemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAscpItemQueryAPIRequest) GetApiMethodName() string { + return "aliexpress.ascp.item.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAscpItemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ScItemQuery Setter +// DTO +func (r *AliexpressAscpItemQueryAPIRequest) SetScItemQuery(_scItemQuery *ScItemQueryDto) error { + r._scItemQuery = _scItemQuery + r.Set("sc_item_query", _scItemQuery) + return nil +} + +// ScItemQuery Getter +func (r AliexpressAscpItemQueryAPIRequest) GetScItemQuery() *ScItemQueryDto { + return r._scItemQuery +} diff --git a/model/ascpffo/AliexpressAscpItemQueryAPIResponse.go b/model/ascpffo/AliexpressAscpItemQueryAPIResponse.go new file mode 100644 index 0000000000..0e2c4d9eb8 --- /dev/null +++ b/model/ascpffo/AliexpressAscpItemQueryAPIResponse.go @@ -0,0 +1,27 @@ +package ascpffo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AliExpress货品查询查询API API返回值 +aliexpress.ascp.item.query + +AE货品查询API +*/ +type AliexpressAscpItemQueryAPIResponse struct { + model.CommonResponse + AliexpressAscpItemQueryAPIResponseModel +} + +// AliExpress货品查询查询API 成功返回结果 +type AliexpressAscpItemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_ascp_item_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // DTO + Result *PageQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpffo/AliexpressAscpItemQueryResponse.go b/model/ascpffo/AliexpressAscpItemQueryResponse.go deleted file mode 100644 index 87b23ecaa3..0000000000 --- a/model/ascpffo/AliexpressAscpItemQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpffo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AliExpress货品查询查询API API返回值 -aliexpress.ascp.item.query - -AE货品查询API -*/ -type AliexpressAscpItemQueryAPIResponse struct { - model.CommonResponse - AliexpressAscpItemQueryResponse -} - -// AliExpress货品查询查询API 成功返回结果 -type AliexpressAscpItemQueryResponse struct { - XMLName xml.Name `xml:"aliexpress_ascp_item_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // DTO - Result *PageQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpffo/AliexpressAscpPoItemQueryAPIRequest.go b/model/ascpffo/AliexpressAscpPoItemQueryAPIRequest.go new file mode 100644 index 0000000000..9f2f37c622 --- /dev/null +++ b/model/ascpffo/AliexpressAscpPoItemQueryAPIRequest.go @@ -0,0 +1,52 @@ +package ascpffo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AliExpress采购单明细查询API API请求 +aliexpress.ascp.po.item.query + +AE 供应链仓发 采购单明细查询 +*/ +type AliexpressAscpPoItemQueryAPIRequest struct { + model.Params + // demo + _purchaseOrderItemQuery *PurchaseOrderItemQueryDto +} + +// 初始化AliexpressAscpPoItemQueryAPIRequest对象 +func NewAliexpressAscpPoItemQueryRequest() *AliexpressAscpPoItemQueryAPIRequest{ + return &AliexpressAscpPoItemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAscpPoItemQueryAPIRequest) GetApiMethodName() string { + return "aliexpress.ascp.po.item.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAscpPoItemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PurchaseOrderItemQuery Setter +// demo +func (r *AliexpressAscpPoItemQueryAPIRequest) SetPurchaseOrderItemQuery(_purchaseOrderItemQuery *PurchaseOrderItemQueryDto) error { + r._purchaseOrderItemQuery = _purchaseOrderItemQuery + r.Set("purchase_order_item_query", _purchaseOrderItemQuery) + return nil +} + +// PurchaseOrderItemQuery Getter +func (r AliexpressAscpPoItemQueryAPIRequest) GetPurchaseOrderItemQuery() *PurchaseOrderItemQueryDto { + return r._purchaseOrderItemQuery +} diff --git a/model/ascpffo/AliexpressAscpPoItemQueryAPIResponse.go b/model/ascpffo/AliexpressAscpPoItemQueryAPIResponse.go new file mode 100644 index 0000000000..ea40c75bcc --- /dev/null +++ b/model/ascpffo/AliexpressAscpPoItemQueryAPIResponse.go @@ -0,0 +1,27 @@ +package ascpffo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AliExpress采购单明细查询API API返回值 +aliexpress.ascp.po.item.query + +AE 供应链仓发 采购单明细查询 +*/ +type AliexpressAscpPoItemQueryAPIResponse struct { + model.CommonResponse + AliexpressAscpPoItemQueryAPIResponseModel +} + +// AliExpress采购单明细查询API 成功返回结果 +type AliexpressAscpPoItemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_ascp_po_item_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // demo + Result *PageQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpffo/AliexpressAscpPoItemQueryResponse.go b/model/ascpffo/AliexpressAscpPoItemQueryResponse.go deleted file mode 100644 index 840914c373..0000000000 --- a/model/ascpffo/AliexpressAscpPoItemQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpffo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AliExpress采购单明细查询API API返回值 -aliexpress.ascp.po.item.query - -AE 供应链仓发 采购单明细查询 -*/ -type AliexpressAscpPoItemQueryAPIResponse struct { - model.CommonResponse - AliexpressAscpPoItemQueryResponse -} - -// AliExpress采购单明细查询API 成功返回结果 -type AliexpressAscpPoItemQueryResponse struct { - XMLName xml.Name `xml:"aliexpress_ascp_po_item_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // demo - Result *PageQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpffo/AliexpressAscpPoQueryAPIRequest.go b/model/ascpffo/AliexpressAscpPoQueryAPIRequest.go new file mode 100644 index 0000000000..53f39ec2a4 --- /dev/null +++ b/model/ascpffo/AliexpressAscpPoQueryAPIRequest.go @@ -0,0 +1,52 @@ +package ascpffo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AliExpress采购单查询API API请求 +aliexpress.ascp.po.query + +AE仓发业务采购单查询 +*/ +type AliexpressAscpPoQueryAPIRequest struct { + model.Params + // 系统自动生成 + _purchaseOrderQuery *PurchaseOrderQueryDto +} + +// 初始化AliexpressAscpPoQueryAPIRequest对象 +func NewAliexpressAscpPoQueryRequest() *AliexpressAscpPoQueryAPIRequest{ + return &AliexpressAscpPoQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAscpPoQueryAPIRequest) GetApiMethodName() string { + return "aliexpress.ascp.po.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAscpPoQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PurchaseOrderQuery Setter +// 系统自动生成 +func (r *AliexpressAscpPoQueryAPIRequest) SetPurchaseOrderQuery(_purchaseOrderQuery *PurchaseOrderQueryDto) error { + r._purchaseOrderQuery = _purchaseOrderQuery + r.Set("purchase_order_query", _purchaseOrderQuery) + return nil +} + +// PurchaseOrderQuery Getter +func (r AliexpressAscpPoQueryAPIRequest) GetPurchaseOrderQuery() *PurchaseOrderQueryDto { + return r._purchaseOrderQuery +} diff --git a/model/ascpffo/AliexpressAscpPoQueryAPIResponse.go b/model/ascpffo/AliexpressAscpPoQueryAPIResponse.go new file mode 100644 index 0000000000..b0eaf0dedc --- /dev/null +++ b/model/ascpffo/AliexpressAscpPoQueryAPIResponse.go @@ -0,0 +1,27 @@ +package ascpffo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AliExpress采购单查询API API返回值 +aliexpress.ascp.po.query + +AE仓发业务采购单查询 +*/ +type AliexpressAscpPoQueryAPIResponse struct { + model.CommonResponse + AliexpressAscpPoQueryAPIResponseModel +} + +// AliExpress采购单查询API 成功返回结果 +type AliexpressAscpPoQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_ascp_po_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务出参 + Result *AliexpressAscpPoQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpffo/AliexpressAscpPoQueryResponse.go b/model/ascpffo/AliexpressAscpPoQueryResponse.go deleted file mode 100644 index 54a2da470c..0000000000 --- a/model/ascpffo/AliexpressAscpPoQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpffo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AliExpress采购单查询API API返回值 -aliexpress.ascp.po.query - -AE仓发业务采购单查询 -*/ -type AliexpressAscpPoQueryAPIResponse struct { - model.CommonResponse - AliexpressAscpPoQueryResponse -} - -// AliExpress采购单查询API 成功返回结果 -type AliexpressAscpPoQueryResponse struct { - XMLName xml.Name `xml:"aliexpress_ascp_po_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务出参 - Result *AliexpressAscpPoQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpffo/AliexpressAscpRoItemQueryAPIRequest.go b/model/ascpffo/AliexpressAscpRoItemQueryAPIRequest.go new file mode 100644 index 0000000000..1b32244bec --- /dev/null +++ b/model/ascpffo/AliexpressAscpRoItemQueryAPIRequest.go @@ -0,0 +1,52 @@ +package ascpffo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AliExpress退供单明细查询API API请求 +aliexpress.ascp.ro.item.query + +AE仓发 单个退供单明细查询 +*/ +type AliexpressAscpRoItemQueryAPIRequest struct { + model.Params + // dto + _returnOrderItemQuery *ReturnOrderItemQueryDto +} + +// 初始化AliexpressAscpRoItemQueryAPIRequest对象 +func NewAliexpressAscpRoItemQueryRequest() *AliexpressAscpRoItemQueryAPIRequest{ + return &AliexpressAscpRoItemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAscpRoItemQueryAPIRequest) GetApiMethodName() string { + return "aliexpress.ascp.ro.item.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAscpRoItemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReturnOrderItemQuery Setter +// dto +func (r *AliexpressAscpRoItemQueryAPIRequest) SetReturnOrderItemQuery(_returnOrderItemQuery *ReturnOrderItemQueryDto) error { + r._returnOrderItemQuery = _returnOrderItemQuery + r.Set("return_order_item_query", _returnOrderItemQuery) + return nil +} + +// ReturnOrderItemQuery Getter +func (r AliexpressAscpRoItemQueryAPIRequest) GetReturnOrderItemQuery() *ReturnOrderItemQueryDto { + return r._returnOrderItemQuery +} diff --git a/model/ascpffo/AliexpressAscpRoItemQueryAPIResponse.go b/model/ascpffo/AliexpressAscpRoItemQueryAPIResponse.go new file mode 100644 index 0000000000..3e508233dc --- /dev/null +++ b/model/ascpffo/AliexpressAscpRoItemQueryAPIResponse.go @@ -0,0 +1,27 @@ +package ascpffo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AliExpress退供单明细查询API API返回值 +aliexpress.ascp.ro.item.query + +AE仓发 单个退供单明细查询 +*/ +type AliexpressAscpRoItemQueryAPIResponse struct { + model.CommonResponse + AliexpressAscpRoItemQueryAPIResponseModel +} + +// AliExpress退供单明细查询API 成功返回结果 +type AliexpressAscpRoItemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_ascp_ro_item_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // dto + Result *PageQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpffo/AliexpressAscpRoItemQueryResponse.go b/model/ascpffo/AliexpressAscpRoItemQueryResponse.go deleted file mode 100644 index f230abc076..0000000000 --- a/model/ascpffo/AliexpressAscpRoItemQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpffo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AliExpress退供单明细查询API API返回值 -aliexpress.ascp.ro.item.query - -AE仓发 单个退供单明细查询 -*/ -type AliexpressAscpRoItemQueryAPIResponse struct { - model.CommonResponse - AliexpressAscpRoItemQueryResponse -} - -// AliExpress退供单明细查询API 成功返回结果 -type AliexpressAscpRoItemQueryResponse struct { - XMLName xml.Name `xml:"aliexpress_ascp_ro_item_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // dto - Result *PageQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpffo/AliexpressAscpRoQueryAPIRequest.go b/model/ascpffo/AliexpressAscpRoQueryAPIRequest.go new file mode 100644 index 0000000000..68c5c8292c --- /dev/null +++ b/model/ascpffo/AliexpressAscpRoQueryAPIRequest.go @@ -0,0 +1,52 @@ +package ascpffo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AliExpress退供单查询API API请求 +aliexpress.ascp.ro.query + +AE仓发商家单个退供单查询接口 +*/ +type AliexpressAscpRoQueryAPIRequest struct { + model.Params + // dto + _returnOrderQuery *ReturnOrderQueryDto +} + +// 初始化AliexpressAscpRoQueryAPIRequest对象 +func NewAliexpressAscpRoQueryRequest() *AliexpressAscpRoQueryAPIRequest{ + return &AliexpressAscpRoQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressAscpRoQueryAPIRequest) GetApiMethodName() string { + return "aliexpress.ascp.ro.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressAscpRoQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReturnOrderQuery Setter +// dto +func (r *AliexpressAscpRoQueryAPIRequest) SetReturnOrderQuery(_returnOrderQuery *ReturnOrderQueryDto) error { + r._returnOrderQuery = _returnOrderQuery + r.Set("return_order_query", _returnOrderQuery) + return nil +} + +// ReturnOrderQuery Getter +func (r AliexpressAscpRoQueryAPIRequest) GetReturnOrderQuery() *ReturnOrderQueryDto { + return r._returnOrderQuery +} diff --git a/model/ascpffo/AliexpressAscpRoQueryAPIResponse.go b/model/ascpffo/AliexpressAscpRoQueryAPIResponse.go new file mode 100644 index 0000000000..e1d7c3e93a --- /dev/null +++ b/model/ascpffo/AliexpressAscpRoQueryAPIResponse.go @@ -0,0 +1,27 @@ +package ascpffo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AliExpress退供单查询API API返回值 +aliexpress.ascp.ro.query + +AE仓发商家单个退供单查询接口 +*/ +type AliexpressAscpRoQueryAPIResponse struct { + model.CommonResponse + AliexpressAscpRoQueryAPIResponseModel +} + +// AliExpress退供单查询API 成功返回结果 +type AliexpressAscpRoQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_ascp_ro_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AliexpressAscpRoQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpffo/AliexpressAscpRoQueryResponse.go b/model/ascpffo/AliexpressAscpRoQueryResponse.go deleted file mode 100644 index 8a7b620aac..0000000000 --- a/model/ascpffo/AliexpressAscpRoQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpffo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AliExpress退供单查询API API返回值 -aliexpress.ascp.ro.query - -AE仓发商家单个退供单查询接口 -*/ -type AliexpressAscpRoQueryAPIResponse struct { - model.CommonResponse - AliexpressAscpRoQueryResponse -} - -// AliExpress退供单查询API 成功返回结果 -type AliexpressAscpRoQueryResponse struct { - XMLName xml.Name `xml:"aliexpress_ascp_ro_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AliexpressAscpRoQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpffo/AliexpressFulfillmentEventAPIRequest.go b/model/ascpffo/AliexpressFulfillmentEventAPIRequest.go new file mode 100644 index 0000000000..8bab349e98 --- /dev/null +++ b/model/ascpffo/AliexpressFulfillmentEventAPIRequest.go @@ -0,0 +1,52 @@ +package ascpffo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AE履约事件处理 API请求 +aliexpress.fulfillment.event + +AE用 履约底层声明发货能力 +*/ +type AliexpressFulfillmentEventAPIRequest struct { + model.Params + // 入参对象 + _param *FulfillmentOrderStatusUpdateRequest +} + +// 初始化AliexpressFulfillmentEventAPIRequest对象 +func NewAliexpressFulfillmentEventRequest() *AliexpressFulfillmentEventAPIRequest{ + return &AliexpressFulfillmentEventAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressFulfillmentEventAPIRequest) GetApiMethodName() string { + return "aliexpress.fulfillment.event" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressFulfillmentEventAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参对象 +func (r *AliexpressFulfillmentEventAPIRequest) SetParam(_param *FulfillmentOrderStatusUpdateRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AliexpressFulfillmentEventAPIRequest) GetParam() *FulfillmentOrderStatusUpdateRequest { + return r._param +} diff --git a/model/ascpffo/AliexpressFulfillmentEventAPIResponse.go b/model/ascpffo/AliexpressFulfillmentEventAPIResponse.go new file mode 100644 index 0000000000..186f8e5c0b --- /dev/null +++ b/model/ascpffo/AliexpressFulfillmentEventAPIResponse.go @@ -0,0 +1,27 @@ +package ascpffo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AE履约事件处理 API返回值 +aliexpress.fulfillment.event + +AE用 履约底层声明发货能力 +*/ +type AliexpressFulfillmentEventAPIResponse struct { + model.CommonResponse + AliexpressFulfillmentEventAPIResponseModel +} + +// AE履约事件处理 成功返回结果 +type AliexpressFulfillmentEventAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_fulfillment_event_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AliexpressFulfillmentEventResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpffo/AliexpressFulfillmentEventResponse.go b/model/ascpffo/AliexpressFulfillmentEventResponse.go deleted file mode 100644 index 467e23e7c1..0000000000 --- a/model/ascpffo/AliexpressFulfillmentEventResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpffo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AE履约事件处理 API返回值 -aliexpress.fulfillment.event - -AE用 履约底层声明发货能力 -*/ -type AliexpressFulfillmentEventAPIResponse struct { - model.CommonResponse - AliexpressFulfillmentEventResponse -} - -// AE履约事件处理 成功返回结果 -type AliexpressFulfillmentEventResponse struct { - XMLName xml.Name `xml:"aliexpress_fulfillment_event_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AliexpressFulfillmentEventResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpqcc/AlibabaAscpQccSampleCancelItemRelationAPIRequest.go b/model/ascpqcc/AlibabaAscpQccSampleCancelItemRelationAPIRequest.go new file mode 100644 index 0000000000..2b1a971155 --- /dev/null +++ b/model/ascpqcc/AlibabaAscpQccSampleCancelItemRelationAPIRequest.go @@ -0,0 +1,52 @@ +package ascpqcc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +魅力惠样品解除父子商品关系 API请求 +alibaba.ascp.qcc.sample.cancel.item.relation + +品控中心魅力惠样品解除父子商品关系 +*/ +type AlibabaAscpQccSampleCancelItemRelationAPIRequest struct { + model.Params + // 请求参数对象 + _cancelRequest *CancelSampleRelationRequest +} + +// 初始化AlibabaAscpQccSampleCancelItemRelationAPIRequest对象 +func NewAlibabaAscpQccSampleCancelItemRelationRequest() *AlibabaAscpQccSampleCancelItemRelationAPIRequest{ + return &AlibabaAscpQccSampleCancelItemRelationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpQccSampleCancelItemRelationAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.qcc.sample.cancel.item.relation" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpQccSampleCancelItemRelationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CancelRequest Setter +// 请求参数对象 +func (r *AlibabaAscpQccSampleCancelItemRelationAPIRequest) SetCancelRequest(_cancelRequest *CancelSampleRelationRequest) error { + r._cancelRequest = _cancelRequest + r.Set("cancel_request", _cancelRequest) + return nil +} + +// CancelRequest Getter +func (r AlibabaAscpQccSampleCancelItemRelationAPIRequest) GetCancelRequest() *CancelSampleRelationRequest { + return r._cancelRequest +} diff --git a/model/ascpqcc/AlibabaAscpQccSampleCancelItemRelationAPIResponse.go b/model/ascpqcc/AlibabaAscpQccSampleCancelItemRelationAPIResponse.go new file mode 100644 index 0000000000..d11b310b75 --- /dev/null +++ b/model/ascpqcc/AlibabaAscpQccSampleCancelItemRelationAPIResponse.go @@ -0,0 +1,27 @@ +package ascpqcc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +魅力惠样品解除父子商品关系 API返回值 +alibaba.ascp.qcc.sample.cancel.item.relation + +品控中心魅力惠样品解除父子商品关系 +*/ +type AlibabaAscpQccSampleCancelItemRelationAPIResponse struct { + model.CommonResponse + AlibabaAscpQccSampleCancelItemRelationAPIResponseModel +} + +// 魅力惠样品解除父子商品关系 成功返回结果 +type AlibabaAscpQccSampleCancelItemRelationAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_qcc_sample_cancel_item_relation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *SendResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpqcc/AlibabaAscpQccSampleCancelItemRelationResponse.go b/model/ascpqcc/AlibabaAscpQccSampleCancelItemRelationResponse.go deleted file mode 100644 index 1ba5214cc1..0000000000 --- a/model/ascpqcc/AlibabaAscpQccSampleCancelItemRelationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpqcc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -魅力惠样品解除父子商品关系 API返回值 -alibaba.ascp.qcc.sample.cancel.item.relation - -品控中心魅力惠样品解除父子商品关系 -*/ -type AlibabaAscpQccSampleCancelItemRelationAPIResponse struct { - model.CommonResponse - AlibabaAscpQccSampleCancelItemRelationResponse -} - -// 魅力惠样品解除父子商品关系 成功返回结果 -type AlibabaAscpQccSampleCancelItemRelationResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_qcc_sample_cancel_item_relation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *SendResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ascpqcc/AlibabaAscpQccSampleUpdateAPIRequest.go b/model/ascpqcc/AlibabaAscpQccSampleUpdateAPIRequest.go new file mode 100644 index 0000000000..fbd3856298 --- /dev/null +++ b/model/ascpqcc/AlibabaAscpQccSampleUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package ascpqcc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +品控中心更新样品信息 API请求 +alibaba.ascp.qcc.sample.update + +品控中心更新样品信息 +*/ +type AlibabaAscpQccSampleUpdateAPIRequest struct { + model.Params + // 更新请求参数 + _updateRequest *UpdateSampleRequest +} + +// 初始化AlibabaAscpQccSampleUpdateAPIRequest对象 +func NewAlibabaAscpQccSampleUpdateRequest() *AlibabaAscpQccSampleUpdateAPIRequest{ + return &AlibabaAscpQccSampleUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpQccSampleUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.qcc.sample.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpQccSampleUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UpdateRequest Setter +// 更新请求参数 +func (r *AlibabaAscpQccSampleUpdateAPIRequest) SetUpdateRequest(_updateRequest *UpdateSampleRequest) error { + r._updateRequest = _updateRequest + r.Set("update_request", _updateRequest) + return nil +} + +// UpdateRequest Getter +func (r AlibabaAscpQccSampleUpdateAPIRequest) GetUpdateRequest() *UpdateSampleRequest { + return r._updateRequest +} diff --git a/model/ascpqcc/AlibabaAscpQccSampleUpdateAPIResponse.go b/model/ascpqcc/AlibabaAscpQccSampleUpdateAPIResponse.go new file mode 100644 index 0000000000..d270a630c2 --- /dev/null +++ b/model/ascpqcc/AlibabaAscpQccSampleUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package ascpqcc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +品控中心更新样品信息 API返回值 +alibaba.ascp.qcc.sample.update + +品控中心更新样品信息 +*/ +type AlibabaAscpQccSampleUpdateAPIResponse struct { + model.CommonResponse + AlibabaAscpQccSampleUpdateAPIResponseModel +} + +// 品控中心更新样品信息 成功返回结果 +type AlibabaAscpQccSampleUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_qcc_sample_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *SendResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ascpqcc/AlibabaAscpQccSampleUpdateResponse.go b/model/ascpqcc/AlibabaAscpQccSampleUpdateResponse.go deleted file mode 100644 index 69bf272ebe..0000000000 --- a/model/ascpqcc/AlibabaAscpQccSampleUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ascpqcc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -品控中心更新样品信息 API返回值 -alibaba.ascp.qcc.sample.update - -品控中心更新样品信息 -*/ -type AlibabaAscpQccSampleUpdateAPIResponse struct { - model.CommonResponse - AlibabaAscpQccSampleUpdateResponse -} - -// 品控中心更新样品信息 成功返回结果 -type AlibabaAscpQccSampleUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_qcc_sample_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *SendResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/auction/TaobaoAuctionGovDataAnnuallyGetAPIRequest.go b/model/auction/TaobaoAuctionGovDataAnnuallyGetAPIRequest.go new file mode 100644 index 0000000000..fada8a0074 --- /dev/null +++ b/model/auction/TaobaoAuctionGovDataAnnuallyGetAPIRequest.go @@ -0,0 +1,99 @@ +package auction + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +按年统计法院拍卖数据 API请求 +taobao.auction.gov.data.annually.get + +按月统计法院拍卖数据 包含: +标的件数统计:发布标的件数、结束标的件数、开拍标的件数 +竞价实况:预计成交金额、出价次数、报名人数 +在线标的:在线标的件数、意向用户数、网拍围观人次 + +最长6年,年起始时间2017年 +*/ +type TaobaoAuctionGovDataAnnuallyGetAPIRequest struct { + model.Params + // 法院名称 + _courtName string + // 统计数据是够包含下属法院 + _isIncludeSub bool + // 开始年份 + _startYear string + // 结束年份 + _endYear string +} + +// 初始化TaobaoAuctionGovDataAnnuallyGetAPIRequest对象 +func NewTaobaoAuctionGovDataAnnuallyGetRequest() *TaobaoAuctionGovDataAnnuallyGetAPIRequest{ + return &TaobaoAuctionGovDataAnnuallyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAuctionGovDataAnnuallyGetAPIRequest) GetApiMethodName() string { + return "taobao.auction.gov.data.annually.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAuctionGovDataAnnuallyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CourtName Setter +// 法院名称 +func (r *TaobaoAuctionGovDataAnnuallyGetAPIRequest) SetCourtName(_courtName string) error { + r._courtName = _courtName + r.Set("court_name", _courtName) + return nil +} + +// CourtName Getter +func (r TaobaoAuctionGovDataAnnuallyGetAPIRequest) GetCourtName() string { + return r._courtName +} +// IsIncludeSub Setter +// 统计数据是够包含下属法院 +func (r *TaobaoAuctionGovDataAnnuallyGetAPIRequest) SetIsIncludeSub(_isIncludeSub bool) error { + r._isIncludeSub = _isIncludeSub + r.Set("is_include_sub", _isIncludeSub) + return nil +} + +// IsIncludeSub Getter +func (r TaobaoAuctionGovDataAnnuallyGetAPIRequest) GetIsIncludeSub() bool { + return r._isIncludeSub +} +// StartYear Setter +// 开始年份 +func (r *TaobaoAuctionGovDataAnnuallyGetAPIRequest) SetStartYear(_startYear string) error { + r._startYear = _startYear + r.Set("start_year", _startYear) + return nil +} + +// StartYear Getter +func (r TaobaoAuctionGovDataAnnuallyGetAPIRequest) GetStartYear() string { + return r._startYear +} +// EndYear Setter +// 结束年份 +func (r *TaobaoAuctionGovDataAnnuallyGetAPIRequest) SetEndYear(_endYear string) error { + r._endYear = _endYear + r.Set("end_year", _endYear) + return nil +} + +// EndYear Getter +func (r TaobaoAuctionGovDataAnnuallyGetAPIRequest) GetEndYear() string { + return r._endYear +} diff --git a/model/auction/TaobaoAuctionGovDataAnnuallyGetAPIResponse.go b/model/auction/TaobaoAuctionGovDataAnnuallyGetAPIResponse.go new file mode 100644 index 0000000000..accafe3dbb --- /dev/null +++ b/model/auction/TaobaoAuctionGovDataAnnuallyGetAPIResponse.go @@ -0,0 +1,32 @@ +package auction + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +按年统计法院拍卖数据 API返回值 +taobao.auction.gov.data.annually.get + +按月统计法院拍卖数据 包含: +标的件数统计:发布标的件数、结束标的件数、开拍标的件数 +竞价实况:预计成交金额、出价次数、报名人数 +在线标的:在线标的件数、意向用户数、网拍围观人次 + +最长6年,年起始时间2017年 +*/ +type TaobaoAuctionGovDataAnnuallyGetAPIResponse struct { + model.CommonResponse + TaobaoAuctionGovDataAnnuallyGetAPIResponseModel +} + +// 按年统计法院拍卖数据 成功返回结果 +type TaobaoAuctionGovDataAnnuallyGetAPIResponseModel struct { + XMLName xml.Name `xml:"auction_gov_data_annually_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 按年统计结果列表 + Results []CourtsBidStatAnnuallyList `json:"results,omitempty" xml:"results>courts_bid_stat_annually_list,omitempty"` +} diff --git a/model/auction/TaobaoAuctionGovDataAnnuallyGetResponse.go b/model/auction/TaobaoAuctionGovDataAnnuallyGetResponse.go deleted file mode 100644 index e444243381..0000000000 --- a/model/auction/TaobaoAuctionGovDataAnnuallyGetResponse.go +++ /dev/null @@ -1,32 +0,0 @@ -package auction - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -按年统计法院拍卖数据 API返回值 -taobao.auction.gov.data.annually.get - -按月统计法院拍卖数据 包含: -标的件数统计:发布标的件数、结束标的件数、开拍标的件数 -竞价实况:预计成交金额、出价次数、报名人数 -在线标的:在线标的件数、意向用户数、网拍围观人次 - -最长6年,年起始时间2017年 -*/ -type TaobaoAuctionGovDataAnnuallyGetAPIResponse struct { - model.CommonResponse - TaobaoAuctionGovDataAnnuallyGetResponse -} - -// 按年统计法院拍卖数据 成功返回结果 -type TaobaoAuctionGovDataAnnuallyGetResponse struct { - XMLName xml.Name `xml:"auction_gov_data_annually_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 按年统计结果列表 - Results []CourtsBidStatAnnuallyList `json:"results,omitempty" xml:"results>courts_bid_stat_annually_list,omitempty"` -} diff --git a/model/auction/TaobaoAuctionGovDataMonthlyGetAPIRequest.go b/model/auction/TaobaoAuctionGovDataMonthlyGetAPIRequest.go new file mode 100644 index 0000000000..3ed3d76d62 --- /dev/null +++ b/model/auction/TaobaoAuctionGovDataMonthlyGetAPIRequest.go @@ -0,0 +1,100 @@ +package auction + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +按月统计法院拍卖数据 API请求 +taobao.auction.gov.data.monthly.get + +按月统计法院拍卖数据 +包含: +标的件数统计:发布标的件数、结束标的件数、开拍标的件数 +竞价实况:预计成交金额、出价次数、报名人数 +在线标的:在线标的件数、意向用户数、网拍围观人次 + +最长12个月,月的起始时间不能早于2017年3月 +*/ +type TaobaoAuctionGovDataMonthlyGetAPIRequest struct { + model.Params + // 法院名称 + _courtName string + // 统计数据是够包含下属法院 + _isIncludeSub bool + // 开始月份 + _startMonth string + // 截止月份(统计数据包含这个月) + _endMonth string +} + +// 初始化TaobaoAuctionGovDataMonthlyGetAPIRequest对象 +func NewTaobaoAuctionGovDataMonthlyGetRequest() *TaobaoAuctionGovDataMonthlyGetAPIRequest{ + return &TaobaoAuctionGovDataMonthlyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAuctionGovDataMonthlyGetAPIRequest) GetApiMethodName() string { + return "taobao.auction.gov.data.monthly.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAuctionGovDataMonthlyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CourtName Setter +// 法院名称 +func (r *TaobaoAuctionGovDataMonthlyGetAPIRequest) SetCourtName(_courtName string) error { + r._courtName = _courtName + r.Set("court_name", _courtName) + return nil +} + +// CourtName Getter +func (r TaobaoAuctionGovDataMonthlyGetAPIRequest) GetCourtName() string { + return r._courtName +} +// IsIncludeSub Setter +// 统计数据是够包含下属法院 +func (r *TaobaoAuctionGovDataMonthlyGetAPIRequest) SetIsIncludeSub(_isIncludeSub bool) error { + r._isIncludeSub = _isIncludeSub + r.Set("is_include_sub", _isIncludeSub) + return nil +} + +// IsIncludeSub Getter +func (r TaobaoAuctionGovDataMonthlyGetAPIRequest) GetIsIncludeSub() bool { + return r._isIncludeSub +} +// StartMonth Setter +// 开始月份 +func (r *TaobaoAuctionGovDataMonthlyGetAPIRequest) SetStartMonth(_startMonth string) error { + r._startMonth = _startMonth + r.Set("start_month", _startMonth) + return nil +} + +// StartMonth Getter +func (r TaobaoAuctionGovDataMonthlyGetAPIRequest) GetStartMonth() string { + return r._startMonth +} +// EndMonth Setter +// 截止月份(统计数据包含这个月) +func (r *TaobaoAuctionGovDataMonthlyGetAPIRequest) SetEndMonth(_endMonth string) error { + r._endMonth = _endMonth + r.Set("end_month", _endMonth) + return nil +} + +// EndMonth Getter +func (r TaobaoAuctionGovDataMonthlyGetAPIRequest) GetEndMonth() string { + return r._endMonth +} diff --git a/model/auction/TaobaoAuctionGovDataMonthlyGetAPIResponse.go b/model/auction/TaobaoAuctionGovDataMonthlyGetAPIResponse.go new file mode 100644 index 0000000000..04fb70bf0a --- /dev/null +++ b/model/auction/TaobaoAuctionGovDataMonthlyGetAPIResponse.go @@ -0,0 +1,33 @@ +package auction + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +按月统计法院拍卖数据 API返回值 +taobao.auction.gov.data.monthly.get + +按月统计法院拍卖数据 +包含: +标的件数统计:发布标的件数、结束标的件数、开拍标的件数 +竞价实况:预计成交金额、出价次数、报名人数 +在线标的:在线标的件数、意向用户数、网拍围观人次 + +最长12个月,月的起始时间不能早于2017年3月 +*/ +type TaobaoAuctionGovDataMonthlyGetAPIResponse struct { + model.CommonResponse + TaobaoAuctionGovDataMonthlyGetAPIResponseModel +} + +// 按月统计法院拍卖数据 成功返回结果 +type TaobaoAuctionGovDataMonthlyGetAPIResponseModel struct { + XMLName xml.Name `xml:"auction_gov_data_monthly_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 按月统计结果列表 + Results []CourtsBidStatMonthlyList `json:"results,omitempty" xml:"results>courts_bid_stat_monthly_list,omitempty"` +} diff --git a/model/auction/TaobaoAuctionGovDataMonthlyGetResponse.go b/model/auction/TaobaoAuctionGovDataMonthlyGetResponse.go deleted file mode 100644 index 529bb306b1..0000000000 --- a/model/auction/TaobaoAuctionGovDataMonthlyGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package auction - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -按月统计法院拍卖数据 API返回值 -taobao.auction.gov.data.monthly.get - -按月统计法院拍卖数据 -包含: -标的件数统计:发布标的件数、结束标的件数、开拍标的件数 -竞价实况:预计成交金额、出价次数、报名人数 -在线标的:在线标的件数、意向用户数、网拍围观人次 - -最长12个月,月的起始时间不能早于2017年3月 -*/ -type TaobaoAuctionGovDataMonthlyGetAPIResponse struct { - model.CommonResponse - TaobaoAuctionGovDataMonthlyGetResponse -} - -// 按月统计法院拍卖数据 成功返回结果 -type TaobaoAuctionGovDataMonthlyGetResponse struct { - XMLName xml.Name `xml:"auction_gov_data_monthly_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 按月统计结果列表 - Results []CourtsBidStatMonthlyList `json:"results,omitempty" xml:"results>courts_bid_stat_monthly_list,omitempty"` -} diff --git a/model/auction/TaobaoAuctionGovDataRealtimeGetAPIRequest.go b/model/auction/TaobaoAuctionGovDataRealtimeGetAPIRequest.go new file mode 100644 index 0000000000..ca4f6aca72 --- /dev/null +++ b/model/auction/TaobaoAuctionGovDataRealtimeGetAPIRequest.go @@ -0,0 +1,66 @@ +package auction + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取实时(今日)统计数据 API请求 +taobao.auction.gov.data.realtime.get + +提供查询当日法院及下属法院的拍卖统计数据 +*/ +type TaobaoAuctionGovDataRealtimeGetAPIRequest struct { + model.Params + // 法院名称 + _courtName string + // 统计数据是否包含下级法院 + _isIncludeSub bool +} + +// 初始化TaobaoAuctionGovDataRealtimeGetAPIRequest对象 +func NewTaobaoAuctionGovDataRealtimeGetRequest() *TaobaoAuctionGovDataRealtimeGetAPIRequest{ + return &TaobaoAuctionGovDataRealtimeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAuctionGovDataRealtimeGetAPIRequest) GetApiMethodName() string { + return "taobao.auction.gov.data.realtime.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAuctionGovDataRealtimeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CourtName Setter +// 法院名称 +func (r *TaobaoAuctionGovDataRealtimeGetAPIRequest) SetCourtName(_courtName string) error { + r._courtName = _courtName + r.Set("court_name", _courtName) + return nil +} + +// CourtName Getter +func (r TaobaoAuctionGovDataRealtimeGetAPIRequest) GetCourtName() string { + return r._courtName +} +// IsIncludeSub Setter +// 统计数据是否包含下级法院 +func (r *TaobaoAuctionGovDataRealtimeGetAPIRequest) SetIsIncludeSub(_isIncludeSub bool) error { + r._isIncludeSub = _isIncludeSub + r.Set("is_include_sub", _isIncludeSub) + return nil +} + +// IsIncludeSub Getter +func (r TaobaoAuctionGovDataRealtimeGetAPIRequest) GetIsIncludeSub() bool { + return r._isIncludeSub +} diff --git a/model/auction/TaobaoAuctionGovDataRealtimeGetAPIResponse.go b/model/auction/TaobaoAuctionGovDataRealtimeGetAPIResponse.go new file mode 100644 index 0000000000..8c7f08ab5b --- /dev/null +++ b/model/auction/TaobaoAuctionGovDataRealtimeGetAPIResponse.go @@ -0,0 +1,27 @@ +package auction + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取实时(今日)统计数据 API返回值 +taobao.auction.gov.data.realtime.get + +提供查询当日法院及下属法院的拍卖统计数据 +*/ +type TaobaoAuctionGovDataRealtimeGetAPIResponse struct { + model.CommonResponse + TaobaoAuctionGovDataRealtimeGetAPIResponseModel +} + +// 获取实时(今日)统计数据 成功返回结果 +type TaobaoAuctionGovDataRealtimeGetAPIResponseModel struct { + XMLName xml.Name `xml:"auction_gov_data_realtime_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 今日拍卖统计数据 + RealTimeData *RealTimeData `json:"real_time_data,omitempty" xml:"real_time_data,omitempty"` +} diff --git a/model/auction/TaobaoAuctionGovDataRealtimeGetResponse.go b/model/auction/TaobaoAuctionGovDataRealtimeGetResponse.go deleted file mode 100644 index 95b1dba71f..0000000000 --- a/model/auction/TaobaoAuctionGovDataRealtimeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package auction - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取实时(今日)统计数据 API返回值 -taobao.auction.gov.data.realtime.get - -提供查询当日法院及下属法院的拍卖统计数据 -*/ -type TaobaoAuctionGovDataRealtimeGetAPIResponse struct { - model.CommonResponse - TaobaoAuctionGovDataRealtimeGetResponse -} - -// 获取实时(今日)统计数据 成功返回结果 -type TaobaoAuctionGovDataRealtimeGetResponse struct { - XMLName xml.Name `xml:"auction_gov_data_realtime_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 今日拍卖统计数据 - RealTimeData *RealTimeData `json:"real_time_data,omitempty" xml:"real_time_data,omitempty"` -} diff --git a/model/auction/TaobaoAuctionGovDataTopnGetAPIRequest.go b/model/auction/TaobaoAuctionGovDataTopnGetAPIRequest.go new file mode 100644 index 0000000000..a1f56b47ab --- /dev/null +++ b/model/auction/TaobaoAuctionGovDataTopnGetAPIRequest.go @@ -0,0 +1,108 @@ +package auction + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据不同维度,获取排行榜列表 API请求 +taobao.auction.gov.data.topn.get + +根据不同时间维度(周,月,年),获取(成交额或发拍件数)排行榜列表 +*/ +type TaobaoAuctionGovDataTopnGetAPIRequest struct { + model.Params + // 周期类型 (2:周,3:月,4:年) + _circleType int64 + // 周期区间 周期(周填0、月份 yyyyMM、年份 yyyy) + _circle int64 + // 业务类型 (1:成交额,2:发拍件数) + _busiType int64 + // 区域类型(1:全国,2:全省) + _zoneType int64 + // 法院名称 + _courtName string +} + +// 初始化TaobaoAuctionGovDataTopnGetAPIRequest对象 +func NewTaobaoAuctionGovDataTopnGetRequest() *TaobaoAuctionGovDataTopnGetAPIRequest{ + return &TaobaoAuctionGovDataTopnGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAuctionGovDataTopnGetAPIRequest) GetApiMethodName() string { + return "taobao.auction.gov.data.topn.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAuctionGovDataTopnGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CircleType Setter +// 周期类型 (2:周,3:月,4:年) +func (r *TaobaoAuctionGovDataTopnGetAPIRequest) SetCircleType(_circleType int64) error { + r._circleType = _circleType + r.Set("circle_type", _circleType) + return nil +} + +// CircleType Getter +func (r TaobaoAuctionGovDataTopnGetAPIRequest) GetCircleType() int64 { + return r._circleType +} +// Circle Setter +// 周期区间 周期(周填0、月份 yyyyMM、年份 yyyy) +func (r *TaobaoAuctionGovDataTopnGetAPIRequest) SetCircle(_circle int64) error { + r._circle = _circle + r.Set("circle", _circle) + return nil +} + +// Circle Getter +func (r TaobaoAuctionGovDataTopnGetAPIRequest) GetCircle() int64 { + return r._circle +} +// BusiType Setter +// 业务类型 (1:成交额,2:发拍件数) +func (r *TaobaoAuctionGovDataTopnGetAPIRequest) SetBusiType(_busiType int64) error { + r._busiType = _busiType + r.Set("busi_type", _busiType) + return nil +} + +// BusiType Getter +func (r TaobaoAuctionGovDataTopnGetAPIRequest) GetBusiType() int64 { + return r._busiType +} +// ZoneType Setter +// 区域类型(1:全国,2:全省) +func (r *TaobaoAuctionGovDataTopnGetAPIRequest) SetZoneType(_zoneType int64) error { + r._zoneType = _zoneType + r.Set("zone_type", _zoneType) + return nil +} + +// ZoneType Getter +func (r TaobaoAuctionGovDataTopnGetAPIRequest) GetZoneType() int64 { + return r._zoneType +} +// CourtName Setter +// 法院名称 +func (r *TaobaoAuctionGovDataTopnGetAPIRequest) SetCourtName(_courtName string) error { + r._courtName = _courtName + r.Set("court_name", _courtName) + return nil +} + +// CourtName Getter +func (r TaobaoAuctionGovDataTopnGetAPIRequest) GetCourtName() string { + return r._courtName +} diff --git a/model/auction/TaobaoAuctionGovDataTopnGetAPIResponse.go b/model/auction/TaobaoAuctionGovDataTopnGetAPIResponse.go new file mode 100644 index 0000000000..5ef1a6c0eb --- /dev/null +++ b/model/auction/TaobaoAuctionGovDataTopnGetAPIResponse.go @@ -0,0 +1,27 @@ +package auction + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据不同维度,获取排行榜列表 API返回值 +taobao.auction.gov.data.topn.get + +根据不同时间维度(周,月,年),获取(成交额或发拍件数)排行榜列表 +*/ +type TaobaoAuctionGovDataTopnGetAPIResponse struct { + model.CommonResponse + TaobaoAuctionGovDataTopnGetAPIResponseModel +} + +// 根据不同维度,获取排行榜列表 成功返回结果 +type TaobaoAuctionGovDataTopnGetAPIResponseModel struct { + XMLName xml.Name `xml:"auction_gov_data_topn_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 法院维度标的统计排行 + Ranks []CourtsBidStatTopnDto `json:"ranks,omitempty" xml:"ranks>courts_bid_stat_topn_dto,omitempty"` +} diff --git a/model/auction/TaobaoAuctionGovDataTopnGetResponse.go b/model/auction/TaobaoAuctionGovDataTopnGetResponse.go deleted file mode 100644 index 41b2b0bc33..0000000000 --- a/model/auction/TaobaoAuctionGovDataTopnGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package auction - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据不同维度,获取排行榜列表 API返回值 -taobao.auction.gov.data.topn.get - -根据不同时间维度(周,月,年),获取(成交额或发拍件数)排行榜列表 -*/ -type TaobaoAuctionGovDataTopnGetAPIResponse struct { - model.CommonResponse - TaobaoAuctionGovDataTopnGetResponse -} - -// 根据不同维度,获取排行榜列表 成功返回结果 -type TaobaoAuctionGovDataTopnGetResponse struct { - XMLName xml.Name `xml:"auction_gov_data_topn_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 法院维度标的统计排行 - Ranks []CourtsBidStatTopnDto `json:"ranks,omitempty" xml:"ranks>courts_bid_stat_topn_dto,omitempty"` -} diff --git a/model/auction/TaobaoAuctionGovGetLatestbidAPIRequest.go b/model/auction/TaobaoAuctionGovGetLatestbidAPIRequest.go new file mode 100644 index 0000000000..3ac74b5b86 --- /dev/null +++ b/model/auction/TaobaoAuctionGovGetLatestbidAPIRequest.go @@ -0,0 +1,80 @@ +package auction + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取司法拍卖最新出价数据 API请求 +taobao.auction.gov.get.latestbid + +获取司法拍卖最新出价数据 +*/ +type TaobaoAuctionGovGetLatestbidAPIRequest struct { + model.Params + // 法院名称 + _courtName string + // 死否包含下属法院 + _containChild bool + // 获取最新出价条数 + _maxCount int64 +} + +// 初始化TaobaoAuctionGovGetLatestbidAPIRequest对象 +func NewTaobaoAuctionGovGetLatestbidRequest() *TaobaoAuctionGovGetLatestbidAPIRequest{ + return &TaobaoAuctionGovGetLatestbidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAuctionGovGetLatestbidAPIRequest) GetApiMethodName() string { + return "taobao.auction.gov.get.latestbid" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAuctionGovGetLatestbidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CourtName Setter +// 法院名称 +func (r *TaobaoAuctionGovGetLatestbidAPIRequest) SetCourtName(_courtName string) error { + r._courtName = _courtName + r.Set("court_name", _courtName) + return nil +} + +// CourtName Getter +func (r TaobaoAuctionGovGetLatestbidAPIRequest) GetCourtName() string { + return r._courtName +} +// ContainChild Setter +// 死否包含下属法院 +func (r *TaobaoAuctionGovGetLatestbidAPIRequest) SetContainChild(_containChild bool) error { + r._containChild = _containChild + r.Set("contain_child", _containChild) + return nil +} + +// ContainChild Getter +func (r TaobaoAuctionGovGetLatestbidAPIRequest) GetContainChild() bool { + return r._containChild +} +// MaxCount Setter +// 获取最新出价条数 +func (r *TaobaoAuctionGovGetLatestbidAPIRequest) SetMaxCount(_maxCount int64) error { + r._maxCount = _maxCount + r.Set("max_count", _maxCount) + return nil +} + +// MaxCount Getter +func (r TaobaoAuctionGovGetLatestbidAPIRequest) GetMaxCount() int64 { + return r._maxCount +} diff --git a/model/auction/TaobaoAuctionGovGetLatestbidAPIResponse.go b/model/auction/TaobaoAuctionGovGetLatestbidAPIResponse.go new file mode 100644 index 0000000000..75c412caab --- /dev/null +++ b/model/auction/TaobaoAuctionGovGetLatestbidAPIResponse.go @@ -0,0 +1,27 @@ +package auction + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取司法拍卖最新出价数据 API返回值 +taobao.auction.gov.get.latestbid + +获取司法拍卖最新出价数据 +*/ +type TaobaoAuctionGovGetLatestbidAPIResponse struct { + model.CommonResponse + TaobaoAuctionGovGetLatestbidAPIResponseModel +} + +// 获取司法拍卖最新出价数据 成功返回结果 +type TaobaoAuctionGovGetLatestbidAPIResponseModel struct { + XMLName xml.Name `xml:"auction_gov_get_latestbid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *Result4Top `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/auction/TaobaoAuctionGovGetLatestbidResponse.go b/model/auction/TaobaoAuctionGovGetLatestbidResponse.go deleted file mode 100644 index bbd1d7be44..0000000000 --- a/model/auction/TaobaoAuctionGovGetLatestbidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package auction - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取司法拍卖最新出价数据 API返回值 -taobao.auction.gov.get.latestbid - -获取司法拍卖最新出价数据 -*/ -type TaobaoAuctionGovGetLatestbidAPIResponse struct { - model.CommonResponse - TaobaoAuctionGovGetLatestbidResponse -} - -// 获取司法拍卖最新出价数据 成功返回结果 -type TaobaoAuctionGovGetLatestbidResponse struct { - XMLName xml.Name `xml:"auction_gov_get_latestbid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *Result4Top `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/autonavi/AlibabaAutonaviApiTrafficboardImageGetAPIRequest.go b/model/autonavi/AlibabaAutonaviApiTrafficboardImageGetAPIRequest.go new file mode 100644 index 0000000000..2dc5764b7a --- /dev/null +++ b/model/autonavi/AlibabaAutonaviApiTrafficboardImageGetAPIRequest.go @@ -0,0 +1,122 @@ +package autonavi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +交通看板-栅格情报获取 API请求 +alibaba.autonavi.api.trafficboard.image.get + +获取指定情报板ID的二进制数据(图片) +*/ +type AlibabaAutonaviApiTrafficboardImageGetAPIRequest struct { + model.Params + // 设备id, 按照userid 的配置,决定是否需要 + _deviceid string + // 批次,终端批次,按照userid 的配置,决定是否需要 + _batch string + // 图片 id + _panelid string + // 图像尺寸(可选),默认尺寸为原始大小(960x600) 参数为:width x height (例如:960x600),参数不正确时返回原始大小 + _size string + // 是否为宽高等比例(可选),参数值 true(默认),表示宽高等比例缩放 false: 按请求尺寸缩放 + _whscale string + // 城市编码 + _adcodes string +} + +// 初始化AlibabaAutonaviApiTrafficboardImageGetAPIRequest对象 +func NewAlibabaAutonaviApiTrafficboardImageGetRequest() *AlibabaAutonaviApiTrafficboardImageGetAPIRequest{ + return &AlibabaAutonaviApiTrafficboardImageGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAutonaviApiTrafficboardImageGetAPIRequest) GetApiMethodName() string { + return "alibaba.autonavi.api.trafficboard.image.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAutonaviApiTrafficboardImageGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Deviceid Setter +// 设备id, 按照userid 的配置,决定是否需要 +func (r *AlibabaAutonaviApiTrafficboardImageGetAPIRequest) SetDeviceid(_deviceid string) error { + r._deviceid = _deviceid + r.Set("deviceid", _deviceid) + return nil +} + +// Deviceid Getter +func (r AlibabaAutonaviApiTrafficboardImageGetAPIRequest) GetDeviceid() string { + return r._deviceid +} +// Batch Setter +// 批次,终端批次,按照userid 的配置,决定是否需要 +func (r *AlibabaAutonaviApiTrafficboardImageGetAPIRequest) SetBatch(_batch string) error { + r._batch = _batch + r.Set("batch", _batch) + return nil +} + +// Batch Getter +func (r AlibabaAutonaviApiTrafficboardImageGetAPIRequest) GetBatch() string { + return r._batch +} +// Panelid Setter +// 图片 id +func (r *AlibabaAutonaviApiTrafficboardImageGetAPIRequest) SetPanelid(_panelid string) error { + r._panelid = _panelid + r.Set("panelid", _panelid) + return nil +} + +// Panelid Getter +func (r AlibabaAutonaviApiTrafficboardImageGetAPIRequest) GetPanelid() string { + return r._panelid +} +// Size Setter +// 图像尺寸(可选),默认尺寸为原始大小(960x600) 参数为:width x height (例如:960x600),参数不正确时返回原始大小 +func (r *AlibabaAutonaviApiTrafficboardImageGetAPIRequest) SetSize(_size string) error { + r._size = _size + r.Set("size", _size) + return nil +} + +// Size Getter +func (r AlibabaAutonaviApiTrafficboardImageGetAPIRequest) GetSize() string { + return r._size +} +// Whscale Setter +// 是否为宽高等比例(可选),参数值 true(默认),表示宽高等比例缩放 false: 按请求尺寸缩放 +func (r *AlibabaAutonaviApiTrafficboardImageGetAPIRequest) SetWhscale(_whscale string) error { + r._whscale = _whscale + r.Set("whscale", _whscale) + return nil +} + +// Whscale Getter +func (r AlibabaAutonaviApiTrafficboardImageGetAPIRequest) GetWhscale() string { + return r._whscale +} +// Adcodes Setter +// 城市编码 +func (r *AlibabaAutonaviApiTrafficboardImageGetAPIRequest) SetAdcodes(_adcodes string) error { + r._adcodes = _adcodes + r.Set("adcodes", _adcodes) + return nil +} + +// Adcodes Getter +func (r AlibabaAutonaviApiTrafficboardImageGetAPIRequest) GetAdcodes() string { + return r._adcodes +} diff --git a/model/autonavi/AlibabaAutonaviApiTrafficboardImageGetAPIResponse.go b/model/autonavi/AlibabaAutonaviApiTrafficboardImageGetAPIResponse.go new file mode 100644 index 0000000000..e25459e76b --- /dev/null +++ b/model/autonavi/AlibabaAutonaviApiTrafficboardImageGetAPIResponse.go @@ -0,0 +1,27 @@ +package autonavi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +交通看板-栅格情报获取 API返回值 +alibaba.autonavi.api.trafficboard.image.get + +获取指定情报板ID的二进制数据(图片) +*/ +type AlibabaAutonaviApiTrafficboardImageGetAPIResponse struct { + model.CommonResponse + AlibabaAutonaviApiTrafficboardImageGetAPIResponseModel +} + +// 交通看板-栅格情报获取 成功返回结果 +type AlibabaAutonaviApiTrafficboardImageGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_autonavi_api_trafficboard_image_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 二进制图片流(png) + RespResult []*model.File `json:"resp_result,omitempty" xml:"resp_result>*model.File,omitempty"` +} diff --git a/model/autonavi/AlibabaAutonaviApiTrafficboardImageGetResponse.go b/model/autonavi/AlibabaAutonaviApiTrafficboardImageGetResponse.go deleted file mode 100644 index 4b56f96d44..0000000000 --- a/model/autonavi/AlibabaAutonaviApiTrafficboardImageGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package autonavi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -交通看板-栅格情报获取 API返回值 -alibaba.autonavi.api.trafficboard.image.get - -获取指定情报板ID的二进制数据(图片) -*/ -type AlibabaAutonaviApiTrafficboardImageGetAPIResponse struct { - model.CommonResponse - AlibabaAutonaviApiTrafficboardImageGetResponse -} - -// 交通看板-栅格情报获取 成功返回结果 -type AlibabaAutonaviApiTrafficboardImageGetResponse struct { - XMLName xml.Name `xml:"alibaba_autonavi_api_trafficboard_image_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 二进制图片流(png) - RespResult []*model.File `json:"resp_result,omitempty" xml:"resp_result>*model.File,omitempty"` -} diff --git a/model/axindata/TaobaoAlitripTravelAxinPoiDetailQueryAPIRequest.go b/model/axindata/TaobaoAlitripTravelAxinPoiDetailQueryAPIRequest.go new file mode 100644 index 0000000000..95120ddc2c --- /dev/null +++ b/model/axindata/TaobaoAlitripTravelAxinPoiDetailQueryAPIRequest.go @@ -0,0 +1,52 @@ +package axindata + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +景点poi详情查询-阿信 API请求 +taobao.alitrip.travel.axin.poi.detail.query + +景点poi详情查询-阿信 +*/ +type TaobaoAlitripTravelAxinPoiDetailQueryAPIRequest struct { + model.Params + // poiId + _poiId int64 +} + +// 初始化TaobaoAlitripTravelAxinPoiDetailQueryAPIRequest对象 +func NewTaobaoAlitripTravelAxinPoiDetailQueryRequest() *TaobaoAlitripTravelAxinPoiDetailQueryAPIRequest{ + return &TaobaoAlitripTravelAxinPoiDetailQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelAxinPoiDetailQueryAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.axin.poi.detail.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelAxinPoiDetailQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PoiId Setter +// poiId +func (r *TaobaoAlitripTravelAxinPoiDetailQueryAPIRequest) SetPoiId(_poiId int64) error { + r._poiId = _poiId + r.Set("poi_id", _poiId) + return nil +} + +// PoiId Getter +func (r TaobaoAlitripTravelAxinPoiDetailQueryAPIRequest) GetPoiId() int64 { + return r._poiId +} diff --git a/model/axindata/TaobaoAlitripTravelAxinPoiDetailQueryAPIResponse.go b/model/axindata/TaobaoAlitripTravelAxinPoiDetailQueryAPIResponse.go new file mode 100644 index 0000000000..c66df85734 --- /dev/null +++ b/model/axindata/TaobaoAlitripTravelAxinPoiDetailQueryAPIResponse.go @@ -0,0 +1,27 @@ +package axindata + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +景点poi详情查询-阿信 API返回值 +taobao.alitrip.travel.axin.poi.detail.query + +景点poi详情查询-阿信 +*/ +type TaobaoAlitripTravelAxinPoiDetailQueryAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelAxinPoiDetailQueryAPIResponseModel +} + +// 景点poi详情查询-阿信 成功返回结果 +type TaobaoAlitripTravelAxinPoiDetailQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_axin_poi_detail_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoAlitripTravelAxinPoiDetailQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/axindata/TaobaoAlitripTravelAxinPoiDetailQueryResponse.go b/model/axindata/TaobaoAlitripTravelAxinPoiDetailQueryResponse.go deleted file mode 100644 index 69e2a584c4..0000000000 --- a/model/axindata/TaobaoAlitripTravelAxinPoiDetailQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package axindata - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -景点poi详情查询-阿信 API返回值 -taobao.alitrip.travel.axin.poi.detail.query - -景点poi详情查询-阿信 -*/ -type TaobaoAlitripTravelAxinPoiDetailQueryAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelAxinPoiDetailQueryResponse -} - -// 景点poi详情查询-阿信 成功返回结果 -type TaobaoAlitripTravelAxinPoiDetailQueryResponse struct { - XMLName xml.Name `xml:"alitrip_travel_axin_poi_detail_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoAlitripTravelAxinPoiDetailQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/axindata/TaobaoAlitripTravelAxinPoiSearchAPIRequest.go b/model/axindata/TaobaoAlitripTravelAxinPoiSearchAPIRequest.go new file mode 100644 index 0000000000..92e94421e2 --- /dev/null +++ b/model/axindata/TaobaoAlitripTravelAxinPoiSearchAPIRequest.go @@ -0,0 +1,52 @@ +package axindata + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +景点poi搜索-阿信 API请求 +taobao.alitrip.travel.axin.poi.search + +给阿信提供景点poi搜索 +*/ +type TaobaoAlitripTravelAxinPoiSearchAPIRequest struct { + model.Params + // 搜索关键词 + _keyWord string +} + +// 初始化TaobaoAlitripTravelAxinPoiSearchAPIRequest对象 +func NewTaobaoAlitripTravelAxinPoiSearchRequest() *TaobaoAlitripTravelAxinPoiSearchAPIRequest{ + return &TaobaoAlitripTravelAxinPoiSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelAxinPoiSearchAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.axin.poi.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelAxinPoiSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// KeyWord Setter +// 搜索关键词 +func (r *TaobaoAlitripTravelAxinPoiSearchAPIRequest) SetKeyWord(_keyWord string) error { + r._keyWord = _keyWord + r.Set("key_word", _keyWord) + return nil +} + +// KeyWord Getter +func (r TaobaoAlitripTravelAxinPoiSearchAPIRequest) GetKeyWord() string { + return r._keyWord +} diff --git a/model/axindata/TaobaoAlitripTravelAxinPoiSearchAPIResponse.go b/model/axindata/TaobaoAlitripTravelAxinPoiSearchAPIResponse.go new file mode 100644 index 0000000000..f63fdea731 --- /dev/null +++ b/model/axindata/TaobaoAlitripTravelAxinPoiSearchAPIResponse.go @@ -0,0 +1,27 @@ +package axindata + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +景点poi搜索-阿信 API返回值 +taobao.alitrip.travel.axin.poi.search + +给阿信提供景点poi搜索 +*/ +type TaobaoAlitripTravelAxinPoiSearchAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelAxinPoiSearchAPIResponseModel +} + +// 景点poi搜索-阿信 成功返回结果 +type TaobaoAlitripTravelAxinPoiSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_axin_poi_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoAlitripTravelAxinPoiSearchResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/axindata/TaobaoAlitripTravelAxinPoiSearchResponse.go b/model/axindata/TaobaoAlitripTravelAxinPoiSearchResponse.go deleted file mode 100644 index 86ed53461d..0000000000 --- a/model/axindata/TaobaoAlitripTravelAxinPoiSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package axindata - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -景点poi搜索-阿信 API返回值 -taobao.alitrip.travel.axin.poi.search - -给阿信提供景点poi搜索 -*/ -type TaobaoAlitripTravelAxinPoiSearchAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelAxinPoiSearchResponse -} - -// 景点poi搜索-阿信 成功返回结果 -type TaobaoAlitripTravelAxinPoiSearchResponse struct { - XMLName xml.Name `xml:"alitrip_travel_axin_poi_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoAlitripTravelAxinPoiSearchResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/axintrade/TaobaoAlitripAxinTransFundAddAPIRequest.go b/model/axintrade/TaobaoAlitripAxinTransFundAddAPIRequest.go new file mode 100644 index 0000000000..6fcc8e88b1 --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransFundAddAPIRequest.go @@ -0,0 +1,52 @@ +package axintrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建资金单接口 API请求 +taobao.alitrip.axin.trans.fund.add + +创建资金单 +*/ +type TaobaoAlitripAxinTransFundAddAPIRequest struct { + model.Params + // 创建资金单接口入参 + _axinFundCreateDTO *AxinFundCreateDto +} + +// 初始化TaobaoAlitripAxinTransFundAddAPIRequest对象 +func NewTaobaoAlitripAxinTransFundAddRequest() *TaobaoAlitripAxinTransFundAddAPIRequest{ + return &TaobaoAlitripAxinTransFundAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripAxinTransFundAddAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.axin.trans.fund.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripAxinTransFundAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AxinFundCreateDTO Setter +// 创建资金单接口入参 +func (r *TaobaoAlitripAxinTransFundAddAPIRequest) SetAxinFundCreateDTO(_axinFundCreateDTO *AxinFundCreateDto) error { + r._axinFundCreateDTO = _axinFundCreateDTO + r.Set("axin_fund_create_d_t_o", _axinFundCreateDTO) + return nil +} + +// AxinFundCreateDTO Getter +func (r TaobaoAlitripAxinTransFundAddAPIRequest) GetAxinFundCreateDTO() *AxinFundCreateDto { + return r._axinFundCreateDTO +} diff --git a/model/axintrade/TaobaoAlitripAxinTransFundAddAPIResponse.go b/model/axintrade/TaobaoAlitripAxinTransFundAddAPIResponse.go new file mode 100644 index 0000000000..901346c756 --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransFundAddAPIResponse.go @@ -0,0 +1,27 @@ +package axintrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建资金单接口 API返回值 +taobao.alitrip.axin.trans.fund.add + +创建资金单 +*/ +type TaobaoAlitripAxinTransFundAddAPIResponse struct { + model.CommonResponse + TaobaoAlitripAxinTransFundAddAPIResponseModel +} + +// 创建资金单接口 成功返回结果 +type TaobaoAlitripAxinTransFundAddAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_axin_trans_fund_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoAlitripAxinTransFundAddResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/axintrade/TaobaoAlitripAxinTransFundAddResponse.go b/model/axintrade/TaobaoAlitripAxinTransFundAddResponse.go deleted file mode 100644 index 6b44da9bb4..0000000000 --- a/model/axintrade/TaobaoAlitripAxinTransFundAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package axintrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建资金单接口 API返回值 -taobao.alitrip.axin.trans.fund.add - -创建资金单 -*/ -type TaobaoAlitripAxinTransFundAddAPIResponse struct { - model.CommonResponse - TaobaoAlitripAxinTransFundAddResponse -} - -// 创建资金单接口 成功返回结果 -type TaobaoAlitripAxinTransFundAddResponse struct { - XMLName xml.Name `xml:"alitrip_axin_trans_fund_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoAlitripAxinTransFundAddResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/axintrade/TaobaoAlitripAxinTransFundConfirmAPIRequest.go b/model/axintrade/TaobaoAlitripAxinTransFundConfirmAPIRequest.go new file mode 100644 index 0000000000..ed1489125a --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransFundConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package axintrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +确认资金单 API请求 +taobao.alitrip.axin.trans.fund.confirm + +通过外部订单号进行资金结算 +*/ +type TaobaoAlitripAxinTransFundConfirmAPIRequest struct { + model.Params + // 外部订单编号 + _outerOrderId string +} + +// 初始化TaobaoAlitripAxinTransFundConfirmAPIRequest对象 +func NewTaobaoAlitripAxinTransFundConfirmRequest() *TaobaoAlitripAxinTransFundConfirmAPIRequest{ + return &TaobaoAlitripAxinTransFundConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripAxinTransFundConfirmAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.axin.trans.fund.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripAxinTransFundConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterOrderId Setter +// 外部订单编号 +func (r *TaobaoAlitripAxinTransFundConfirmAPIRequest) SetOuterOrderId(_outerOrderId string) error { + r._outerOrderId = _outerOrderId + r.Set("outer_order_id", _outerOrderId) + return nil +} + +// OuterOrderId Getter +func (r TaobaoAlitripAxinTransFundConfirmAPIRequest) GetOuterOrderId() string { + return r._outerOrderId +} diff --git a/model/axintrade/TaobaoAlitripAxinTransFundConfirmAPIResponse.go b/model/axintrade/TaobaoAlitripAxinTransFundConfirmAPIResponse.go new file mode 100644 index 0000000000..d0fad30209 --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransFundConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package axintrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +确认资金单 API返回值 +taobao.alitrip.axin.trans.fund.confirm + +通过外部订单号进行资金结算 +*/ +type TaobaoAlitripAxinTransFundConfirmAPIResponse struct { + model.CommonResponse + TaobaoAlitripAxinTransFundConfirmAPIResponseModel +} + +// 确认资金单 成功返回结果 +type TaobaoAlitripAxinTransFundConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_axin_trans_fund_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 简单数据类型出参,用于测试top接入流程 + Result *TaobaoAlitripAxinTransFundConfirmResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/axintrade/TaobaoAlitripAxinTransFundConfirmResponse.go b/model/axintrade/TaobaoAlitripAxinTransFundConfirmResponse.go deleted file mode 100644 index 3a0ff69805..0000000000 --- a/model/axintrade/TaobaoAlitripAxinTransFundConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package axintrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -确认资金单 API返回值 -taobao.alitrip.axin.trans.fund.confirm - -通过外部订单号进行资金结算 -*/ -type TaobaoAlitripAxinTransFundConfirmAPIResponse struct { - model.CommonResponse - TaobaoAlitripAxinTransFundConfirmResponse -} - -// 确认资金单 成功返回结果 -type TaobaoAlitripAxinTransFundConfirmResponse struct { - XMLName xml.Name `xml:"alitrip_axin_trans_fund_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 简单数据类型出参,用于测试top接入流程 - Result *TaobaoAlitripAxinTransFundConfirmResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/axintrade/TaobaoAlitripAxinTransFundQueryByOrderAPIRequest.go b/model/axintrade/TaobaoAlitripAxinTransFundQueryByOrderAPIRequest.go new file mode 100644 index 0000000000..de81388d2e --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransFundQueryByOrderAPIRequest.go @@ -0,0 +1,52 @@ +package axintrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过外部订单ID查询所有资金单 API请求 +taobao.alitrip.axin.trans.fund.query.by.order + +阿信供销平台-通过外部订单ID查询所有资金单 +*/ +type TaobaoAlitripAxinTransFundQueryByOrderAPIRequest struct { + model.Params + // 入参 + _paramAxinFundListQueryDTO *AxinFundListQueryDto +} + +// 初始化TaobaoAlitripAxinTransFundQueryByOrderAPIRequest对象 +func NewTaobaoAlitripAxinTransFundQueryByOrderRequest() *TaobaoAlitripAxinTransFundQueryByOrderAPIRequest{ + return &TaobaoAlitripAxinTransFundQueryByOrderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripAxinTransFundQueryByOrderAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.axin.trans.fund.query.by.order" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripAxinTransFundQueryByOrderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamAxinFundListQueryDTO Setter +// 入参 +func (r *TaobaoAlitripAxinTransFundQueryByOrderAPIRequest) SetParamAxinFundListQueryDTO(_paramAxinFundListQueryDTO *AxinFundListQueryDto) error { + r._paramAxinFundListQueryDTO = _paramAxinFundListQueryDTO + r.Set("param_axin_fund_list_query_d_t_o", _paramAxinFundListQueryDTO) + return nil +} + +// ParamAxinFundListQueryDTO Getter +func (r TaobaoAlitripAxinTransFundQueryByOrderAPIRequest) GetParamAxinFundListQueryDTO() *AxinFundListQueryDto { + return r._paramAxinFundListQueryDTO +} diff --git a/model/axintrade/TaobaoAlitripAxinTransFundQueryByOrderAPIResponse.go b/model/axintrade/TaobaoAlitripAxinTransFundQueryByOrderAPIResponse.go new file mode 100644 index 0000000000..563161c9cb --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransFundQueryByOrderAPIResponse.go @@ -0,0 +1,27 @@ +package axintrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过外部订单ID查询所有资金单 API返回值 +taobao.alitrip.axin.trans.fund.query.by.order + +阿信供销平台-通过外部订单ID查询所有资金单 +*/ +type TaobaoAlitripAxinTransFundQueryByOrderAPIResponse struct { + model.CommonResponse + TaobaoAlitripAxinTransFundQueryByOrderAPIResponseModel +} + +// 通过外部订单ID查询所有资金单 成功返回结果 +type TaobaoAlitripAxinTransFundQueryByOrderAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_axin_trans_fund_query_by_order_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoAlitripAxinTransFundQueryByOrderResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/axintrade/TaobaoAlitripAxinTransFundQueryByOrderResponse.go b/model/axintrade/TaobaoAlitripAxinTransFundQueryByOrderResponse.go deleted file mode 100644 index 6a63d9942b..0000000000 --- a/model/axintrade/TaobaoAlitripAxinTransFundQueryByOrderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package axintrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过外部订单ID查询所有资金单 API返回值 -taobao.alitrip.axin.trans.fund.query.by.order - -阿信供销平台-通过外部订单ID查询所有资金单 -*/ -type TaobaoAlitripAxinTransFundQueryByOrderAPIResponse struct { - model.CommonResponse - TaobaoAlitripAxinTransFundQueryByOrderResponse -} - -// 通过外部订单ID查询所有资金单 成功返回结果 -type TaobaoAlitripAxinTransFundQueryByOrderResponse struct { - XMLName xml.Name `xml:"alitrip_axin_trans_fund_query_by_order_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoAlitripAxinTransFundQueryByOrderResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/axintrade/TaobaoAlitripAxinTransFundUpdateAPIRequest.go b/model/axintrade/TaobaoAlitripAxinTransFundUpdateAPIRequest.go new file mode 100644 index 0000000000..afb51cd733 --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransFundUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package axintrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改资金单接口 API请求 +taobao.alitrip.axin.trans.fund.update + +阿信供销平台-修改资金单接口 +*/ +type TaobaoAlitripAxinTransFundUpdateAPIRequest struct { + model.Params + // 更新资金单接口入参 + _axinFundUpdateDTO *AxinFundUpdateDto +} + +// 初始化TaobaoAlitripAxinTransFundUpdateAPIRequest对象 +func NewTaobaoAlitripAxinTransFundUpdateRequest() *TaobaoAlitripAxinTransFundUpdateAPIRequest{ + return &TaobaoAlitripAxinTransFundUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripAxinTransFundUpdateAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.axin.trans.fund.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripAxinTransFundUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AxinFundUpdateDTO Setter +// 更新资金单接口入参 +func (r *TaobaoAlitripAxinTransFundUpdateAPIRequest) SetAxinFundUpdateDTO(_axinFundUpdateDTO *AxinFundUpdateDto) error { + r._axinFundUpdateDTO = _axinFundUpdateDTO + r.Set("axin_fund_update_d_t_o", _axinFundUpdateDTO) + return nil +} + +// AxinFundUpdateDTO Getter +func (r TaobaoAlitripAxinTransFundUpdateAPIRequest) GetAxinFundUpdateDTO() *AxinFundUpdateDto { + return r._axinFundUpdateDTO +} diff --git a/model/axintrade/TaobaoAlitripAxinTransFundUpdateAPIResponse.go b/model/axintrade/TaobaoAlitripAxinTransFundUpdateAPIResponse.go new file mode 100644 index 0000000000..ec007474d2 --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransFundUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package axintrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改资金单接口 API返回值 +taobao.alitrip.axin.trans.fund.update + +阿信供销平台-修改资金单接口 +*/ +type TaobaoAlitripAxinTransFundUpdateAPIResponse struct { + model.CommonResponse + TaobaoAlitripAxinTransFundUpdateAPIResponseModel +} + +// 修改资金单接口 成功返回结果 +type TaobaoAlitripAxinTransFundUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_axin_trans_fund_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoAlitripAxinTransFundUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/axintrade/TaobaoAlitripAxinTransFundUpdateResponse.go b/model/axintrade/TaobaoAlitripAxinTransFundUpdateResponse.go deleted file mode 100644 index 3fec35efe0..0000000000 --- a/model/axintrade/TaobaoAlitripAxinTransFundUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package axintrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改资金单接口 API返回值 -taobao.alitrip.axin.trans.fund.update - -阿信供销平台-修改资金单接口 -*/ -type TaobaoAlitripAxinTransFundUpdateAPIResponse struct { - model.CommonResponse - TaobaoAlitripAxinTransFundUpdateResponse -} - -// 修改资金单接口 成功返回结果 -type TaobaoAlitripAxinTransFundUpdateResponse struct { - XMLName xml.Name `xml:"alitrip_axin_trans_fund_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoAlitripAxinTransFundUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/axintrade/TaobaoAlitripAxinTransPayImgUploadAPIRequest.go b/model/axintrade/TaobaoAlitripAxinTransPayImgUploadAPIRequest.go new file mode 100644 index 0000000000..44100f0f51 --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransPayImgUploadAPIRequest.go @@ -0,0 +1,66 @@ +package axintrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传图片到支付宝图片空间接口 API请求 +taobao.alitrip.axin.trans.pay.img.upload + +阿信供销平台-上传图片到支付宝图片空间接口 +*/ +type TaobaoAlitripAxinTransPayImgUploadAPIRequest struct { + model.Params + // 上传图片到支付宝图片空间接口入参 + _axinPayImgUploadDTO *AxinPayImgUploadDto + // 图片字节流 + _imgContents *model.File +} + +// 初始化TaobaoAlitripAxinTransPayImgUploadAPIRequest对象 +func NewTaobaoAlitripAxinTransPayImgUploadRequest() *TaobaoAlitripAxinTransPayImgUploadAPIRequest{ + return &TaobaoAlitripAxinTransPayImgUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripAxinTransPayImgUploadAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.axin.trans.pay.img.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripAxinTransPayImgUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AxinPayImgUploadDTO Setter +// 上传图片到支付宝图片空间接口入参 +func (r *TaobaoAlitripAxinTransPayImgUploadAPIRequest) SetAxinPayImgUploadDTO(_axinPayImgUploadDTO *AxinPayImgUploadDto) error { + r._axinPayImgUploadDTO = _axinPayImgUploadDTO + r.Set("axin_pay_img_upload_d_t_o", _axinPayImgUploadDTO) + return nil +} + +// AxinPayImgUploadDTO Getter +func (r TaobaoAlitripAxinTransPayImgUploadAPIRequest) GetAxinPayImgUploadDTO() *AxinPayImgUploadDto { + return r._axinPayImgUploadDTO +} +// ImgContents Setter +// 图片字节流 +func (r *TaobaoAlitripAxinTransPayImgUploadAPIRequest) SetImgContents(_imgContents *model.File) error { + r._imgContents = _imgContents + r.Set("img_contents", _imgContents) + return nil +} + +// ImgContents Getter +func (r TaobaoAlitripAxinTransPayImgUploadAPIRequest) GetImgContents() *model.File { + return r._imgContents +} diff --git a/model/axintrade/TaobaoAlitripAxinTransPayImgUploadAPIResponse.go b/model/axintrade/TaobaoAlitripAxinTransPayImgUploadAPIResponse.go new file mode 100644 index 0000000000..c5150c2edf --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransPayImgUploadAPIResponse.go @@ -0,0 +1,27 @@ +package axintrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传图片到支付宝图片空间接口 API返回值 +taobao.alitrip.axin.trans.pay.img.upload + +阿信供销平台-上传图片到支付宝图片空间接口 +*/ +type TaobaoAlitripAxinTransPayImgUploadAPIResponse struct { + model.CommonResponse + TaobaoAlitripAxinTransPayImgUploadAPIResponseModel +} + +// 上传图片到支付宝图片空间接口 成功返回结果 +type TaobaoAlitripAxinTransPayImgUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_axin_trans_pay_img_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoAlitripAxinTransPayImgUploadResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/axintrade/TaobaoAlitripAxinTransPayImgUploadResponse.go b/model/axintrade/TaobaoAlitripAxinTransPayImgUploadResponse.go deleted file mode 100644 index 866728ca65..0000000000 --- a/model/axintrade/TaobaoAlitripAxinTransPayImgUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package axintrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传图片到支付宝图片空间接口 API返回值 -taobao.alitrip.axin.trans.pay.img.upload - -阿信供销平台-上传图片到支付宝图片空间接口 -*/ -type TaobaoAlitripAxinTransPayImgUploadAPIResponse struct { - model.CommonResponse - TaobaoAlitripAxinTransPayImgUploadResponse -} - -// 上传图片到支付宝图片空间接口 成功返回结果 -type TaobaoAlitripAxinTransPayImgUploadResponse struct { - XMLName xml.Name `xml:"alitrip_axin_trans_pay_img_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoAlitripAxinTransPayImgUploadResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/axintrade/TaobaoAlitripAxinTransPayRegisterAuditAPIRequest.go b/model/axintrade/TaobaoAlitripAxinTransPayRegisterAuditAPIRequest.go new file mode 100644 index 0000000000..4ed67bf26c --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransPayRegisterAuditAPIRequest.go @@ -0,0 +1,52 @@ +package axintrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿信支付入驻审核通知 API请求 +taobao.alitrip.axin.trans.pay.register.audit + +阿信支付入驻审核通知 +*/ +type TaobaoAlitripAxinTransPayRegisterAuditAPIRequest struct { + model.Params + // 支付入驻审核对象 + _axinPayRegisterAuditDto *AxinPayRegisterAuditDto +} + +// 初始化TaobaoAlitripAxinTransPayRegisterAuditAPIRequest对象 +func NewTaobaoAlitripAxinTransPayRegisterAuditRequest() *TaobaoAlitripAxinTransPayRegisterAuditAPIRequest{ + return &TaobaoAlitripAxinTransPayRegisterAuditAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripAxinTransPayRegisterAuditAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.axin.trans.pay.register.audit" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripAxinTransPayRegisterAuditAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AxinPayRegisterAuditDto Setter +// 支付入驻审核对象 +func (r *TaobaoAlitripAxinTransPayRegisterAuditAPIRequest) SetAxinPayRegisterAuditDto(_axinPayRegisterAuditDto *AxinPayRegisterAuditDto) error { + r._axinPayRegisterAuditDto = _axinPayRegisterAuditDto + r.Set("axin_pay_register_audit_dto", _axinPayRegisterAuditDto) + return nil +} + +// AxinPayRegisterAuditDto Getter +func (r TaobaoAlitripAxinTransPayRegisterAuditAPIRequest) GetAxinPayRegisterAuditDto() *AxinPayRegisterAuditDto { + return r._axinPayRegisterAuditDto +} diff --git a/model/axintrade/TaobaoAlitripAxinTransPayRegisterAuditAPIResponse.go b/model/axintrade/TaobaoAlitripAxinTransPayRegisterAuditAPIResponse.go new file mode 100644 index 0000000000..6071da98b2 --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransPayRegisterAuditAPIResponse.go @@ -0,0 +1,27 @@ +package axintrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿信支付入驻审核通知 API返回值 +taobao.alitrip.axin.trans.pay.register.audit + +阿信支付入驻审核通知 +*/ +type TaobaoAlitripAxinTransPayRegisterAuditAPIResponse struct { + model.CommonResponse + TaobaoAlitripAxinTransPayRegisterAuditAPIResponseModel +} + +// 阿信支付入驻审核通知 成功返回结果 +type TaobaoAlitripAxinTransPayRegisterAuditAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_axin_trans_pay_register_audit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *BaseResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/axintrade/TaobaoAlitripAxinTransPayRegisterAuditResponse.go b/model/axintrade/TaobaoAlitripAxinTransPayRegisterAuditResponse.go deleted file mode 100644 index 5044d253a5..0000000000 --- a/model/axintrade/TaobaoAlitripAxinTransPayRegisterAuditResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package axintrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿信支付入驻审核通知 API返回值 -taobao.alitrip.axin.trans.pay.register.audit - -阿信支付入驻审核通知 -*/ -type TaobaoAlitripAxinTransPayRegisterAuditAPIResponse struct { - model.CommonResponse - TaobaoAlitripAxinTransPayRegisterAuditResponse -} - -// 阿信支付入驻审核通知 成功返回结果 -type TaobaoAlitripAxinTransPayRegisterAuditResponse struct { - XMLName xml.Name `xml:"alitrip_axin_trans_pay_register_audit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *BaseResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/axintrade/TaobaoAlitripAxinTransPayRegisterCreateAPIRequest.go b/model/axintrade/TaobaoAlitripAxinTransPayRegisterCreateAPIRequest.go new file mode 100644 index 0000000000..b92f089cb7 --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransPayRegisterCreateAPIRequest.go @@ -0,0 +1,52 @@ +package axintrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交支付服务开通 API请求 +taobao.alitrip.axin.trans.pay.register.create + +阿信供销平台-提交支付服务开通接口 +*/ +type TaobaoAlitripAxinTransPayRegisterCreateAPIRequest struct { + model.Params + // 提交支付服务开通接口入参 + _createDTO *AxinPayRegisterCreateDto +} + +// 初始化TaobaoAlitripAxinTransPayRegisterCreateAPIRequest对象 +func NewTaobaoAlitripAxinTransPayRegisterCreateRequest() *TaobaoAlitripAxinTransPayRegisterCreateAPIRequest{ + return &TaobaoAlitripAxinTransPayRegisterCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripAxinTransPayRegisterCreateAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.axin.trans.pay.register.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripAxinTransPayRegisterCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CreateDTO Setter +// 提交支付服务开通接口入参 +func (r *TaobaoAlitripAxinTransPayRegisterCreateAPIRequest) SetCreateDTO(_createDTO *AxinPayRegisterCreateDto) error { + r._createDTO = _createDTO + r.Set("create_d_t_o", _createDTO) + return nil +} + +// CreateDTO Getter +func (r TaobaoAlitripAxinTransPayRegisterCreateAPIRequest) GetCreateDTO() *AxinPayRegisterCreateDto { + return r._createDTO +} diff --git a/model/axintrade/TaobaoAlitripAxinTransPayRegisterCreateAPIResponse.go b/model/axintrade/TaobaoAlitripAxinTransPayRegisterCreateAPIResponse.go new file mode 100644 index 0000000000..6727a9687f --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransPayRegisterCreateAPIResponse.go @@ -0,0 +1,27 @@ +package axintrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交支付服务开通 API返回值 +taobao.alitrip.axin.trans.pay.register.create + +阿信供销平台-提交支付服务开通接口 +*/ +type TaobaoAlitripAxinTransPayRegisterCreateAPIResponse struct { + model.CommonResponse + TaobaoAlitripAxinTransPayRegisterCreateAPIResponseModel +} + +// 提交支付服务开通 成功返回结果 +type TaobaoAlitripAxinTransPayRegisterCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_axin_trans_pay_register_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoAlitripAxinTransPayRegisterCreateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/axintrade/TaobaoAlitripAxinTransPayRegisterCreateResponse.go b/model/axintrade/TaobaoAlitripAxinTransPayRegisterCreateResponse.go deleted file mode 100644 index 0c9793aabf..0000000000 --- a/model/axintrade/TaobaoAlitripAxinTransPayRegisterCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package axintrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交支付服务开通 API返回值 -taobao.alitrip.axin.trans.pay.register.create - -阿信供销平台-提交支付服务开通接口 -*/ -type TaobaoAlitripAxinTransPayRegisterCreateAPIResponse struct { - model.CommonResponse - TaobaoAlitripAxinTransPayRegisterCreateResponse -} - -// 提交支付服务开通 成功返回结果 -type TaobaoAlitripAxinTransPayRegisterCreateResponse struct { - XMLName xml.Name `xml:"alitrip_axin_trans_pay_register_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoAlitripAxinTransPayRegisterCreateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/axintrade/TaobaoAlitripAxinTransPayRegisterReapplyAPIRequest.go b/model/axintrade/TaobaoAlitripAxinTransPayRegisterReapplyAPIRequest.go new file mode 100644 index 0000000000..85f6b2b0db --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransPayRegisterReapplyAPIRequest.go @@ -0,0 +1,53 @@ +package axintrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿信支付入驻重新申请 API请求 +taobao.alitrip.axin.trans.pay.register.reapply + +阿信支付入驻重新申请 +用于支付平台驳回,商户提交时的业务场景 +*/ +type TaobaoAlitripAxinTransPayRegisterReapplyAPIRequest struct { + model.Params + // 阿信支付入驻重新申请参数 + _axinPayRegisterCreateDTO *AxinPayRegisterCreateDto +} + +// 初始化TaobaoAlitripAxinTransPayRegisterReapplyAPIRequest对象 +func NewTaobaoAlitripAxinTransPayRegisterReapplyRequest() *TaobaoAlitripAxinTransPayRegisterReapplyAPIRequest{ + return &TaobaoAlitripAxinTransPayRegisterReapplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripAxinTransPayRegisterReapplyAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.axin.trans.pay.register.reapply" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripAxinTransPayRegisterReapplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AxinPayRegisterCreateDTO Setter +// 阿信支付入驻重新申请参数 +func (r *TaobaoAlitripAxinTransPayRegisterReapplyAPIRequest) SetAxinPayRegisterCreateDTO(_axinPayRegisterCreateDTO *AxinPayRegisterCreateDto) error { + r._axinPayRegisterCreateDTO = _axinPayRegisterCreateDTO + r.Set("axin_pay_register_create_d_t_o", _axinPayRegisterCreateDTO) + return nil +} + +// AxinPayRegisterCreateDTO Getter +func (r TaobaoAlitripAxinTransPayRegisterReapplyAPIRequest) GetAxinPayRegisterCreateDTO() *AxinPayRegisterCreateDto { + return r._axinPayRegisterCreateDTO +} diff --git a/model/axintrade/TaobaoAlitripAxinTransPayRegisterReapplyAPIResponse.go b/model/axintrade/TaobaoAlitripAxinTransPayRegisterReapplyAPIResponse.go new file mode 100644 index 0000000000..5e459d6766 --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransPayRegisterReapplyAPIResponse.go @@ -0,0 +1,28 @@ +package axintrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿信支付入驻重新申请 API返回值 +taobao.alitrip.axin.trans.pay.register.reapply + +阿信支付入驻重新申请 +用于支付平台驳回,商户提交时的业务场景 +*/ +type TaobaoAlitripAxinTransPayRegisterReapplyAPIResponse struct { + model.CommonResponse + TaobaoAlitripAxinTransPayRegisterReapplyAPIResponseModel +} + +// 阿信支付入驻重新申请 成功返回结果 +type TaobaoAlitripAxinTransPayRegisterReapplyAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_axin_trans_pay_register_reapply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *BaseResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/axintrade/TaobaoAlitripAxinTransPayRegisterReapplyResponse.go b/model/axintrade/TaobaoAlitripAxinTransPayRegisterReapplyResponse.go deleted file mode 100644 index ed1f5b498e..0000000000 --- a/model/axintrade/TaobaoAlitripAxinTransPayRegisterReapplyResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package axintrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿信支付入驻重新申请 API返回值 -taobao.alitrip.axin.trans.pay.register.reapply - -阿信支付入驻重新申请 -用于支付平台驳回,商户提交时的业务场景 -*/ -type TaobaoAlitripAxinTransPayRegisterReapplyAPIResponse struct { - model.CommonResponse - TaobaoAlitripAxinTransPayRegisterReapplyResponse -} - -// 阿信支付入驻重新申请 成功返回结果 -type TaobaoAlitripAxinTransPayRegisterReapplyResponse struct { - XMLName xml.Name `xml:"alitrip_axin_trans_pay_register_reapply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *BaseResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/axintrade/TaobaoAlitripAxinTransPaySignCheckAPIRequest.go b/model/axintrade/TaobaoAlitripAxinTransPaySignCheckAPIRequest.go new file mode 100644 index 0000000000..c0d0876de2 --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransPaySignCheckAPIRequest.go @@ -0,0 +1,52 @@ +package axintrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿信支付宝验签服务 API请求 +taobao.alitrip.axin.trans.pay.sign.check + +阿信支付宝验签服务 +*/ +type TaobaoAlitripAxinTransPaySignCheckAPIRequest struct { + model.Params + // 验签对象 + _axinPayCheckSignDto *AxinPayCheckSignDto +} + +// 初始化TaobaoAlitripAxinTransPaySignCheckAPIRequest对象 +func NewTaobaoAlitripAxinTransPaySignCheckRequest() *TaobaoAlitripAxinTransPaySignCheckAPIRequest{ + return &TaobaoAlitripAxinTransPaySignCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripAxinTransPaySignCheckAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.axin.trans.pay.sign.check" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripAxinTransPaySignCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AxinPayCheckSignDto Setter +// 验签对象 +func (r *TaobaoAlitripAxinTransPaySignCheckAPIRequest) SetAxinPayCheckSignDto(_axinPayCheckSignDto *AxinPayCheckSignDto) error { + r._axinPayCheckSignDto = _axinPayCheckSignDto + r.Set("axin_pay_check_sign_dto", _axinPayCheckSignDto) + return nil +} + +// AxinPayCheckSignDto Getter +func (r TaobaoAlitripAxinTransPaySignCheckAPIRequest) GetAxinPayCheckSignDto() *AxinPayCheckSignDto { + return r._axinPayCheckSignDto +} diff --git a/model/axintrade/TaobaoAlitripAxinTransPaySignCheckAPIResponse.go b/model/axintrade/TaobaoAlitripAxinTransPaySignCheckAPIResponse.go new file mode 100644 index 0000000000..cef146b22f --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransPaySignCheckAPIResponse.go @@ -0,0 +1,27 @@ +package axintrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿信支付宝验签服务 API返回值 +taobao.alitrip.axin.trans.pay.sign.check + +阿信支付宝验签服务 +*/ +type TaobaoAlitripAxinTransPaySignCheckAPIResponse struct { + model.CommonResponse + TaobaoAlitripAxinTransPaySignCheckAPIResponseModel +} + +// 阿信支付宝验签服务 成功返回结果 +type TaobaoAlitripAxinTransPaySignCheckAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_axin_trans_pay_sign_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *BaseResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/axintrade/TaobaoAlitripAxinTransPaySignCheckResponse.go b/model/axintrade/TaobaoAlitripAxinTransPaySignCheckResponse.go deleted file mode 100644 index de69c9db41..0000000000 --- a/model/axintrade/TaobaoAlitripAxinTransPaySignCheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package axintrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿信支付宝验签服务 API返回值 -taobao.alitrip.axin.trans.pay.sign.check - -阿信支付宝验签服务 -*/ -type TaobaoAlitripAxinTransPaySignCheckAPIResponse struct { - model.CommonResponse - TaobaoAlitripAxinTransPaySignCheckResponse -} - -// 阿信支付宝验签服务 成功返回结果 -type TaobaoAlitripAxinTransPaySignCheckResponse struct { - XMLName xml.Name `xml:"alitrip_axin_trans_pay_sign_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *BaseResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/axintrade/TaobaoAlitripAxinTransRefundCreateAPIRequest.go b/model/axintrade/TaobaoAlitripAxinTransRefundCreateAPIRequest.go new file mode 100644 index 0000000000..03d7d65ca5 --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransRefundCreateAPIRequest.go @@ -0,0 +1,52 @@ +package axintrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿信创建退款单 API请求 +taobao.alitrip.axin.trans.refund.create + +阿信供销平台-创建退款单服务 +*/ +type TaobaoAlitripAxinTransRefundCreateAPIRequest struct { + model.Params + // 阿信创建退款单入参 + _axinRefundCreateDTO *AxinRefundCreateDto +} + +// 初始化TaobaoAlitripAxinTransRefundCreateAPIRequest对象 +func NewTaobaoAlitripAxinTransRefundCreateRequest() *TaobaoAlitripAxinTransRefundCreateAPIRequest{ + return &TaobaoAlitripAxinTransRefundCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripAxinTransRefundCreateAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.axin.trans.refund.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripAxinTransRefundCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AxinRefundCreateDTO Setter +// 阿信创建退款单入参 +func (r *TaobaoAlitripAxinTransRefundCreateAPIRequest) SetAxinRefundCreateDTO(_axinRefundCreateDTO *AxinRefundCreateDto) error { + r._axinRefundCreateDTO = _axinRefundCreateDTO + r.Set("axin_refund_create_d_t_o", _axinRefundCreateDTO) + return nil +} + +// AxinRefundCreateDTO Getter +func (r TaobaoAlitripAxinTransRefundCreateAPIRequest) GetAxinRefundCreateDTO() *AxinRefundCreateDto { + return r._axinRefundCreateDTO +} diff --git a/model/axintrade/TaobaoAlitripAxinTransRefundCreateAPIResponse.go b/model/axintrade/TaobaoAlitripAxinTransRefundCreateAPIResponse.go new file mode 100644 index 0000000000..3f8fc4198f --- /dev/null +++ b/model/axintrade/TaobaoAlitripAxinTransRefundCreateAPIResponse.go @@ -0,0 +1,27 @@ +package axintrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿信创建退款单 API返回值 +taobao.alitrip.axin.trans.refund.create + +阿信供销平台-创建退款单服务 +*/ +type TaobaoAlitripAxinTransRefundCreateAPIResponse struct { + model.CommonResponse + TaobaoAlitripAxinTransRefundCreateAPIResponseModel +} + +// 阿信创建退款单 成功返回结果 +type TaobaoAlitripAxinTransRefundCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_axin_trans_refund_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoAlitripAxinTransRefundCreateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/axintrade/TaobaoAlitripAxinTransRefundCreateResponse.go b/model/axintrade/TaobaoAlitripAxinTransRefundCreateResponse.go deleted file mode 100644 index d537175d4b..0000000000 --- a/model/axintrade/TaobaoAlitripAxinTransRefundCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package axintrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿信创建退款单 API返回值 -taobao.alitrip.axin.trans.refund.create - -阿信供销平台-创建退款单服务 -*/ -type TaobaoAlitripAxinTransRefundCreateAPIResponse struct { - model.CommonResponse - TaobaoAlitripAxinTransRefundCreateResponse -} - -// 阿信创建退款单 成功返回结果 -type TaobaoAlitripAxinTransRefundCreateResponse struct { - XMLName xml.Name `xml:"alitrip_axin_trans_refund_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoAlitripAxinTransRefundCreateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/b2bcert/AlibabaAuthCertGetAPIRequest.go b/model/b2bcert/AlibabaAuthCertGetAPIRequest.go new file mode 100644 index 0000000000..c30a60e020 --- /dev/null +++ b/model/b2bcert/AlibabaAuthCertGetAPIRequest.go @@ -0,0 +1,66 @@ +package b2bcert + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取证书数据 API请求 +alibaba.auth.cert.get + +获取证书数据 +*/ +type AlibabaAuthCertGetAPIRequest struct { + model.Params + // 认证商 + _provider string + // 证书数据 + _receiveInfo string +} + +// 初始化AlibabaAuthCertGetAPIRequest对象 +func NewAlibabaAuthCertGetRequest() *AlibabaAuthCertGetAPIRequest{ + return &AlibabaAuthCertGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAuthCertGetAPIRequest) GetApiMethodName() string { + return "alibaba.auth.cert.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAuthCertGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Provider Setter +// 认证商 +func (r *AlibabaAuthCertGetAPIRequest) SetProvider(_provider string) error { + r._provider = _provider + r.Set("provider", _provider) + return nil +} + +// Provider Getter +func (r AlibabaAuthCertGetAPIRequest) GetProvider() string { + return r._provider +} +// ReceiveInfo Setter +// 证书数据 +func (r *AlibabaAuthCertGetAPIRequest) SetReceiveInfo(_receiveInfo string) error { + r._receiveInfo = _receiveInfo + r.Set("receive_info", _receiveInfo) + return nil +} + +// ReceiveInfo Getter +func (r AlibabaAuthCertGetAPIRequest) GetReceiveInfo() string { + return r._receiveInfo +} diff --git a/model/b2bcert/AlibabaAuthCertGetAPIResponse.go b/model/b2bcert/AlibabaAuthCertGetAPIResponse.go new file mode 100644 index 0000000000..7f3743dba7 --- /dev/null +++ b/model/b2bcert/AlibabaAuthCertGetAPIResponse.go @@ -0,0 +1,27 @@ +package b2bcert + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取证书数据 API返回值 +alibaba.auth.cert.get + +获取证书数据 +*/ +type AlibabaAuthCertGetAPIResponse struct { + model.CommonResponse + AlibabaAuthCertGetAPIResponseModel +} + +// 获取证书数据 成功返回结果 +type AlibabaAuthCertGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_auth_cert_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAuthCertGetResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baichuan/AlibabaBaichuanAsoActivateAPIRequest.go b/model/baichuan/AlibabaBaichuanAsoActivateAPIRequest.go new file mode 100644 index 0000000000..757bc3caa8 --- /dev/null +++ b/model/baichuan/AlibabaBaichuanAsoActivateAPIRequest.go @@ -0,0 +1,94 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设备安装活动激活 API请求 +alibaba.baichuan.aso.activate + +设备安装活动激活 +*/ +type AlibabaBaichuanAsoActivateAPIRequest struct { + model.Params + // 来源 + _source string + // 1-tmail,2-taobao + _appId string + // 1-android,2-ios + _appOs int64 + // 设备信息,ios为idfa ,android 为imei + imsi + _deviceInfo *AsoDeviceInfoDo +} + +// 初始化AlibabaBaichuanAsoActivateAPIRequest对象 +func NewAlibabaBaichuanAsoActivateRequest() *AlibabaBaichuanAsoActivateAPIRequest{ + return &AlibabaBaichuanAsoActivateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaBaichuanAsoActivateAPIRequest) GetApiMethodName() string { + return "alibaba.baichuan.aso.activate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaBaichuanAsoActivateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Source Setter +// 来源 +func (r *AlibabaBaichuanAsoActivateAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r AlibabaBaichuanAsoActivateAPIRequest) GetSource() string { + return r._source +} +// AppId Setter +// 1-tmail,2-taobao +func (r *AlibabaBaichuanAsoActivateAPIRequest) SetAppId(_appId string) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r AlibabaBaichuanAsoActivateAPIRequest) GetAppId() string { + return r._appId +} +// AppOs Setter +// 1-android,2-ios +func (r *AlibabaBaichuanAsoActivateAPIRequest) SetAppOs(_appOs int64) error { + r._appOs = _appOs + r.Set("app_os", _appOs) + return nil +} + +// AppOs Getter +func (r AlibabaBaichuanAsoActivateAPIRequest) GetAppOs() int64 { + return r._appOs +} +// DeviceInfo Setter +// 设备信息,ios为idfa ,android 为imei + imsi +func (r *AlibabaBaichuanAsoActivateAPIRequest) SetDeviceInfo(_deviceInfo *AsoDeviceInfoDo) error { + r._deviceInfo = _deviceInfo + r.Set("device_info", _deviceInfo) + return nil +} + +// DeviceInfo Getter +func (r AlibabaBaichuanAsoActivateAPIRequest) GetDeviceInfo() *AsoDeviceInfoDo { + return r._deviceInfo +} diff --git a/model/baichuan/AlibabaBaichuanAsoActivateAPIResponse.go b/model/baichuan/AlibabaBaichuanAsoActivateAPIResponse.go new file mode 100644 index 0000000000..ac0a833b26 --- /dev/null +++ b/model/baichuan/AlibabaBaichuanAsoActivateAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设备安装活动激活 API返回值 +alibaba.baichuan.aso.activate + +设备安装活动激活 +*/ +type AlibabaBaichuanAsoActivateAPIResponse struct { + model.CommonResponse + AlibabaBaichuanAsoActivateAPIResponseModel +} + +// 设备安装活动激活 成功返回结果 +type AlibabaBaichuanAsoActivateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_baichuan_aso_activate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AsoActivateDeviceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baichuan/AlibabaBaichuanAsoActivateResponse.go b/model/baichuan/AlibabaBaichuanAsoActivateResponse.go deleted file mode 100644 index f789eafa2d..0000000000 --- a/model/baichuan/AlibabaBaichuanAsoActivateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设备安装活动激活 API返回值 -alibaba.baichuan.aso.activate - -设备安装活动激活 -*/ -type AlibabaBaichuanAsoActivateAPIResponse struct { - model.CommonResponse - AlibabaBaichuanAsoActivateResponse -} - -// 设备安装活动激活 成功返回结果 -type AlibabaBaichuanAsoActivateResponse struct { - XMLName xml.Name `xml:"alibaba_baichuan_aso_activate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AsoActivateDeviceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baichuan/AlibabaBaichuanAsoQueryAPIRequest.go b/model/baichuan/AlibabaBaichuanAsoQueryAPIRequest.go new file mode 100644 index 0000000000..2702469744 --- /dev/null +++ b/model/baichuan/AlibabaBaichuanAsoQueryAPIRequest.go @@ -0,0 +1,80 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询app在设备上的安装信息 API请求 +alibaba.baichuan.aso.query + +查询app在设备上的安装信息 +*/ +type AlibabaBaichuanAsoQueryAPIRequest struct { + model.Params + // 1-tmail,2-taobao + _appId string + // 1-android,2-ios + _appOs int64 + // 设备信息,ios为idfa ,android 为imei + imsi + _deviceInfoList []AsoDeviceInfoDo +} + +// 初始化AlibabaBaichuanAsoQueryAPIRequest对象 +func NewAlibabaBaichuanAsoQueryRequest() *AlibabaBaichuanAsoQueryAPIRequest{ + return &AlibabaBaichuanAsoQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaBaichuanAsoQueryAPIRequest) GetApiMethodName() string { + return "alibaba.baichuan.aso.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaBaichuanAsoQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppId Setter +// 1-tmail,2-taobao +func (r *AlibabaBaichuanAsoQueryAPIRequest) SetAppId(_appId string) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r AlibabaBaichuanAsoQueryAPIRequest) GetAppId() string { + return r._appId +} +// AppOs Setter +// 1-android,2-ios +func (r *AlibabaBaichuanAsoQueryAPIRequest) SetAppOs(_appOs int64) error { + r._appOs = _appOs + r.Set("app_os", _appOs) + return nil +} + +// AppOs Getter +func (r AlibabaBaichuanAsoQueryAPIRequest) GetAppOs() int64 { + return r._appOs +} +// DeviceInfoList Setter +// 设备信息,ios为idfa ,android 为imei + imsi +func (r *AlibabaBaichuanAsoQueryAPIRequest) SetDeviceInfoList(_deviceInfoList []AsoDeviceInfoDo) error { + r._deviceInfoList = _deviceInfoList + r.Set("device_info_list", _deviceInfoList) + return nil +} + +// DeviceInfoList Getter +func (r AlibabaBaichuanAsoQueryAPIRequest) GetDeviceInfoList() []AsoDeviceInfoDo { + return r._deviceInfoList +} diff --git a/model/baichuan/AlibabaBaichuanAsoQueryAPIResponse.go b/model/baichuan/AlibabaBaichuanAsoQueryAPIResponse.go new file mode 100644 index 0000000000..49ec1c09b1 --- /dev/null +++ b/model/baichuan/AlibabaBaichuanAsoQueryAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询app在设备上的安装信息 API返回值 +alibaba.baichuan.aso.query + +查询app在设备上的安装信息 +*/ +type AlibabaBaichuanAsoQueryAPIResponse struct { + model.CommonResponse + AlibabaBaichuanAsoQueryAPIResponseModel +} + +// 查询app在设备上的安装信息 成功返回结果 +type AlibabaBaichuanAsoQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_baichuan_aso_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AsoQueryDeviceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baichuan/AlibabaBaichuanAsoQueryResponse.go b/model/baichuan/AlibabaBaichuanAsoQueryResponse.go deleted file mode 100644 index b3694e5b9c..0000000000 --- a/model/baichuan/AlibabaBaichuanAsoQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询app在设备上的安装信息 API返回值 -alibaba.baichuan.aso.query - -查询app在设备上的安装信息 -*/ -type AlibabaBaichuanAsoQueryAPIResponse struct { - model.CommonResponse - AlibabaBaichuanAsoQueryResponse -} - -// 查询app在设备上的安装信息 成功返回结果 -type AlibabaBaichuanAsoQueryResponse struct { - XMLName xml.Name `xml:"alibaba_baichuan_aso_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AsoQueryDeviceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baichuan/AlibabaBaichuanCtgContentGetAPIRequest.go b/model/baichuan/AlibabaBaichuanCtgContentGetAPIRequest.go new file mode 100644 index 0000000000..8da65b2918 --- /dev/null +++ b/model/baichuan/AlibabaBaichuanCtgContentGetAPIRequest.go @@ -0,0 +1,108 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川内容平台内容获取 API请求 +alibaba.baichuan.ctg.content.get + +百川内容平台内容获取 +*/ +type AlibabaBaichuanCtgContentGetAPIRequest struct { + model.Params + // 投放位置 + _deliveryId string + // 分页大小 + _pageSize int64 + // 当前页 + _currentPage int64 + // 资源位 + _resId string + // 日期 + _date string +} + +// 初始化AlibabaBaichuanCtgContentGetAPIRequest对象 +func NewAlibabaBaichuanCtgContentGetRequest() *AlibabaBaichuanCtgContentGetAPIRequest{ + return &AlibabaBaichuanCtgContentGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaBaichuanCtgContentGetAPIRequest) GetApiMethodName() string { + return "alibaba.baichuan.ctg.content.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaBaichuanCtgContentGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeliveryId Setter +// 投放位置 +func (r *AlibabaBaichuanCtgContentGetAPIRequest) SetDeliveryId(_deliveryId string) error { + r._deliveryId = _deliveryId + r.Set("delivery_id", _deliveryId) + return nil +} + +// DeliveryId Getter +func (r AlibabaBaichuanCtgContentGetAPIRequest) GetDeliveryId() string { + return r._deliveryId +} +// PageSize Setter +// 分页大小 +func (r *AlibabaBaichuanCtgContentGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaBaichuanCtgContentGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// CurrentPage Setter +// 当前页 +func (r *AlibabaBaichuanCtgContentGetAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AlibabaBaichuanCtgContentGetAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// ResId Setter +// 资源位 +func (r *AlibabaBaichuanCtgContentGetAPIRequest) SetResId(_resId string) error { + r._resId = _resId + r.Set("res_id", _resId) + return nil +} + +// ResId Getter +func (r AlibabaBaichuanCtgContentGetAPIRequest) GetResId() string { + return r._resId +} +// Date Setter +// 日期 +func (r *AlibabaBaichuanCtgContentGetAPIRequest) SetDate(_date string) error { + r._date = _date + r.Set("date", _date) + return nil +} + +// Date Getter +func (r AlibabaBaichuanCtgContentGetAPIRequest) GetDate() string { + return r._date +} diff --git a/model/baichuan/AlibabaBaichuanCtgContentGetAPIResponse.go b/model/baichuan/AlibabaBaichuanCtgContentGetAPIResponse.go new file mode 100644 index 0000000000..58392e42ed --- /dev/null +++ b/model/baichuan/AlibabaBaichuanCtgContentGetAPIResponse.go @@ -0,0 +1,35 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川内容平台内容获取 API返回值 +alibaba.baichuan.ctg.content.get + +百川内容平台内容获取 +*/ +type AlibabaBaichuanCtgContentGetAPIResponse struct { + model.CommonResponse + AlibabaBaichuanCtgContentGetAPIResponseModel +} + +// 百川内容平台内容获取 成功返回结果 +type AlibabaBaichuanCtgContentGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_baichuan_ctg_content_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // errorMessage + ErrMessage string `json:"err_message,omitempty" xml:"err_message,omitempty"` + // hasNext + HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` + // errorCode + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` + // data + DataList []AlibabaBaichuanCtgContentGetData `json:"data_list,omitempty" xml:"data_list>alibaba_baichuan_ctg_content_get_data,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/baichuan/AlibabaBaichuanCtgContentGetResponse.go b/model/baichuan/AlibabaBaichuanCtgContentGetResponse.go deleted file mode 100644 index 548bb7b715..0000000000 --- a/model/baichuan/AlibabaBaichuanCtgContentGetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川内容平台内容获取 API返回值 -alibaba.baichuan.ctg.content.get - -百川内容平台内容获取 -*/ -type AlibabaBaichuanCtgContentGetAPIResponse struct { - model.CommonResponse - AlibabaBaichuanCtgContentGetResponse -} - -// 百川内容平台内容获取 成功返回结果 -type AlibabaBaichuanCtgContentGetResponse struct { - XMLName xml.Name `xml:"alibaba_baichuan_ctg_content_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // errorMessage - ErrMessage string `json:"err_message,omitempty" xml:"err_message,omitempty"` - // hasNext - HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` - // errorCode - ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` - // data - DataList []AlibabaBaichuanCtgContentGetData `json:"data_list,omitempty" xml:"data_list>alibaba_baichuan_ctg_content_get_data,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/baichuan/AlibabaBaichuanCtgUserRelationAPIRequest.go b/model/baichuan/AlibabaBaichuanCtgUserRelationAPIRequest.go new file mode 100644 index 0000000000..be1248379a --- /dev/null +++ b/model/baichuan/AlibabaBaichuanCtgUserRelationAPIRequest.go @@ -0,0 +1,80 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户 API请求 +alibaba.baichuan.ctg.user.relation + +提供给优酷查询道长和淘宝账户的绑定关系 +*/ +type AlibabaBaichuanCtgUserRelationAPIRequest struct { + model.Params + // 调用的业务方 + _app string + // 业务方的用户ID + _uid string + // 淘宝的用户ID + _tbUid string +} + +// 初始化AlibabaBaichuanCtgUserRelationAPIRequest对象 +func NewAlibabaBaichuanCtgUserRelationRequest() *AlibabaBaichuanCtgUserRelationAPIRequest{ + return &AlibabaBaichuanCtgUserRelationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaBaichuanCtgUserRelationAPIRequest) GetApiMethodName() string { + return "alibaba.baichuan.ctg.user.relation" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaBaichuanCtgUserRelationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// App Setter +// 调用的业务方 +func (r *AlibabaBaichuanCtgUserRelationAPIRequest) SetApp(_app string) error { + r._app = _app + r.Set("app", _app) + return nil +} + +// App Getter +func (r AlibabaBaichuanCtgUserRelationAPIRequest) GetApp() string { + return r._app +} +// Uid Setter +// 业务方的用户ID +func (r *AlibabaBaichuanCtgUserRelationAPIRequest) SetUid(_uid string) error { + r._uid = _uid + r.Set("uid", _uid) + return nil +} + +// Uid Getter +func (r AlibabaBaichuanCtgUserRelationAPIRequest) GetUid() string { + return r._uid +} +// TbUid Setter +// 淘宝的用户ID +func (r *AlibabaBaichuanCtgUserRelationAPIRequest) SetTbUid(_tbUid string) error { + r._tbUid = _tbUid + r.Set("tb_uid", _tbUid) + return nil +} + +// TbUid Getter +func (r AlibabaBaichuanCtgUserRelationAPIRequest) GetTbUid() string { + return r._tbUid +} diff --git a/model/baichuan/AlibabaBaichuanCtgUserRelationAPIResponse.go b/model/baichuan/AlibabaBaichuanCtgUserRelationAPIResponse.go new file mode 100644 index 0000000000..99cb90798a --- /dev/null +++ b/model/baichuan/AlibabaBaichuanCtgUserRelationAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户 API返回值 +alibaba.baichuan.ctg.user.relation + +提供给优酷查询道长和淘宝账户的绑定关系 +*/ +type AlibabaBaichuanCtgUserRelationAPIResponse struct { + model.CommonResponse + AlibabaBaichuanCtgUserRelationAPIResponseModel +} + +// 用户 成功返回结果 +type AlibabaBaichuanCtgUserRelationAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_baichuan_ctg_user_relation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的整体结果 + Result *AlibabaBaichuanCtgUserRelationResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baichuan/AlibabaBaichuanCtgUserRelationResponse.go b/model/baichuan/AlibabaBaichuanCtgUserRelationResponse.go deleted file mode 100644 index 5d67d6ff3d..0000000000 --- a/model/baichuan/AlibabaBaichuanCtgUserRelationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户 API返回值 -alibaba.baichuan.ctg.user.relation - -提供给优酷查询道长和淘宝账户的绑定关系 -*/ -type AlibabaBaichuanCtgUserRelationAPIResponse struct { - model.CommonResponse - AlibabaBaichuanCtgUserRelationResponse -} - -// 用户 成功返回结果 -type AlibabaBaichuanCtgUserRelationResponse struct { - XMLName xml.Name `xml:"alibaba_baichuan_ctg_user_relation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的整体结果 - Result *AlibabaBaichuanCtgUserRelationResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baichuan/AlibabaBaichuanCtgVideoUploadAPIRequest.go b/model/baichuan/AlibabaBaichuanCtgVideoUploadAPIRequest.go new file mode 100644 index 0000000000..dfd8541e69 --- /dev/null +++ b/model/baichuan/AlibabaBaichuanCtgVideoUploadAPIRequest.go @@ -0,0 +1,206 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提供优酷的短视频入淘API API请求 +alibaba.baichuan.ctg.video.upload + +提供优酷的短视频入淘API +*/ +type AlibabaBaichuanCtgVideoUploadAPIRequest struct { + model.Params + // app + _app string + // type + _type string + // 优酷道长绑定的淘宝账号ID + _tbUid string + // 视频VID,若为多个视频,则支持分组上传多个VID + _videoId string + // 作者名称 + _ownerName string + // 发布时间 + _publishTime string + // 上传时间 + _uploadTime string + // 视频标题 + _videoTitle string + // 视频描述 + _videoInfo string + // 视频的分类ID,目前是优酷的分类ID + _videoCategory string + // 视频标签 + _videoTag string + // 视频的平台来源,如,优酷 + _source string +} + +// 初始化AlibabaBaichuanCtgVideoUploadAPIRequest对象 +func NewAlibabaBaichuanCtgVideoUploadRequest() *AlibabaBaichuanCtgVideoUploadAPIRequest{ + return &AlibabaBaichuanCtgVideoUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaBaichuanCtgVideoUploadAPIRequest) GetApiMethodName() string { + return "alibaba.baichuan.ctg.video.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaBaichuanCtgVideoUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// App Setter +// app +func (r *AlibabaBaichuanCtgVideoUploadAPIRequest) SetApp(_app string) error { + r._app = _app + r.Set("app", _app) + return nil +} + +// App Getter +func (r AlibabaBaichuanCtgVideoUploadAPIRequest) GetApp() string { + return r._app +} +// Type Setter +// type +func (r *AlibabaBaichuanCtgVideoUploadAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaBaichuanCtgVideoUploadAPIRequest) GetType() string { + return r._type +} +// TbUid Setter +// 优酷道长绑定的淘宝账号ID +func (r *AlibabaBaichuanCtgVideoUploadAPIRequest) SetTbUid(_tbUid string) error { + r._tbUid = _tbUid + r.Set("tb_uid", _tbUid) + return nil +} + +// TbUid Getter +func (r AlibabaBaichuanCtgVideoUploadAPIRequest) GetTbUid() string { + return r._tbUid +} +// VideoId Setter +// 视频VID,若为多个视频,则支持分组上传多个VID +func (r *AlibabaBaichuanCtgVideoUploadAPIRequest) SetVideoId(_videoId string) error { + r._videoId = _videoId + r.Set("video_id", _videoId) + return nil +} + +// VideoId Getter +func (r AlibabaBaichuanCtgVideoUploadAPIRequest) GetVideoId() string { + return r._videoId +} +// OwnerName Setter +// 作者名称 +func (r *AlibabaBaichuanCtgVideoUploadAPIRequest) SetOwnerName(_ownerName string) error { + r._ownerName = _ownerName + r.Set("owner_name", _ownerName) + return nil +} + +// OwnerName Getter +func (r AlibabaBaichuanCtgVideoUploadAPIRequest) GetOwnerName() string { + return r._ownerName +} +// PublishTime Setter +// 发布时间 +func (r *AlibabaBaichuanCtgVideoUploadAPIRequest) SetPublishTime(_publishTime string) error { + r._publishTime = _publishTime + r.Set("publish_time", _publishTime) + return nil +} + +// PublishTime Getter +func (r AlibabaBaichuanCtgVideoUploadAPIRequest) GetPublishTime() string { + return r._publishTime +} +// UploadTime Setter +// 上传时间 +func (r *AlibabaBaichuanCtgVideoUploadAPIRequest) SetUploadTime(_uploadTime string) error { + r._uploadTime = _uploadTime + r.Set("upload_time", _uploadTime) + return nil +} + +// UploadTime Getter +func (r AlibabaBaichuanCtgVideoUploadAPIRequest) GetUploadTime() string { + return r._uploadTime +} +// VideoTitle Setter +// 视频标题 +func (r *AlibabaBaichuanCtgVideoUploadAPIRequest) SetVideoTitle(_videoTitle string) error { + r._videoTitle = _videoTitle + r.Set("video_title", _videoTitle) + return nil +} + +// VideoTitle Getter +func (r AlibabaBaichuanCtgVideoUploadAPIRequest) GetVideoTitle() string { + return r._videoTitle +} +// VideoInfo Setter +// 视频描述 +func (r *AlibabaBaichuanCtgVideoUploadAPIRequest) SetVideoInfo(_videoInfo string) error { + r._videoInfo = _videoInfo + r.Set("video_info", _videoInfo) + return nil +} + +// VideoInfo Getter +func (r AlibabaBaichuanCtgVideoUploadAPIRequest) GetVideoInfo() string { + return r._videoInfo +} +// VideoCategory Setter +// 视频的分类ID,目前是优酷的分类ID +func (r *AlibabaBaichuanCtgVideoUploadAPIRequest) SetVideoCategory(_videoCategory string) error { + r._videoCategory = _videoCategory + r.Set("video_category", _videoCategory) + return nil +} + +// VideoCategory Getter +func (r AlibabaBaichuanCtgVideoUploadAPIRequest) GetVideoCategory() string { + return r._videoCategory +} +// VideoTag Setter +// 视频标签 +func (r *AlibabaBaichuanCtgVideoUploadAPIRequest) SetVideoTag(_videoTag string) error { + r._videoTag = _videoTag + r.Set("video_tag", _videoTag) + return nil +} + +// VideoTag Getter +func (r AlibabaBaichuanCtgVideoUploadAPIRequest) GetVideoTag() string { + return r._videoTag +} +// Source Setter +// 视频的平台来源,如,优酷 +func (r *AlibabaBaichuanCtgVideoUploadAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r AlibabaBaichuanCtgVideoUploadAPIRequest) GetSource() string { + return r._source +} diff --git a/model/baichuan/AlibabaBaichuanCtgVideoUploadAPIResponse.go b/model/baichuan/AlibabaBaichuanCtgVideoUploadAPIResponse.go new file mode 100644 index 0000000000..67d5aeaa56 --- /dev/null +++ b/model/baichuan/AlibabaBaichuanCtgVideoUploadAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提供优酷的短视频入淘API API返回值 +alibaba.baichuan.ctg.video.upload + +提供优酷的短视频入淘API +*/ +type AlibabaBaichuanCtgVideoUploadAPIResponse struct { + model.CommonResponse + AlibabaBaichuanCtgVideoUploadAPIResponseModel +} + +// 提供优酷的短视频入淘API 成功返回结果 +type AlibabaBaichuanCtgVideoUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_baichuan_ctg_video_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CtgResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baichuan/AlibabaBaichuanCtgVideoUploadResponse.go b/model/baichuan/AlibabaBaichuanCtgVideoUploadResponse.go deleted file mode 100644 index 2236221a19..0000000000 --- a/model/baichuan/AlibabaBaichuanCtgVideoUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提供优酷的短视频入淘API API返回值 -alibaba.baichuan.ctg.video.upload - -提供优酷的短视频入淘API -*/ -type AlibabaBaichuanCtgVideoUploadAPIResponse struct { - model.CommonResponse - AlibabaBaichuanCtgVideoUploadResponse -} - -// 提供优酷的短视频入淘API 成功返回结果 -type AlibabaBaichuanCtgVideoUploadResponse struct { - XMLName xml.Name `xml:"alibaba_baichuan_ctg_video_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CtgResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baichuan/AlibabaBaichuanTaopasswordCheckAPIRequest.go b/model/baichuan/AlibabaBaichuanTaopasswordCheckAPIRequest.go new file mode 100644 index 0000000000..e9dd05094b --- /dev/null +++ b/model/baichuan/AlibabaBaichuanTaopasswordCheckAPIRequest.go @@ -0,0 +1,66 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘口令检查 API请求 +alibaba.baichuan.taopassword.check + +检查当前文本是否为淘口令 +*/ +type AlibabaBaichuanTaopasswordCheckAPIRequest struct { + model.Params + // 参数DTO + _paramDto *ParamDto + // 系统自动生成 + _clientInfo *RichClientInfo +} + +// 初始化AlibabaBaichuanTaopasswordCheckAPIRequest对象 +func NewAlibabaBaichuanTaopasswordCheckRequest() *AlibabaBaichuanTaopasswordCheckAPIRequest{ + return &AlibabaBaichuanTaopasswordCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaBaichuanTaopasswordCheckAPIRequest) GetApiMethodName() string { + return "alibaba.baichuan.taopassword.check" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaBaichuanTaopasswordCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamDto Setter +// 参数DTO +func (r *AlibabaBaichuanTaopasswordCheckAPIRequest) SetParamDto(_paramDto *ParamDto) error { + r._paramDto = _paramDto + r.Set("param_dto", _paramDto) + return nil +} + +// ParamDto Getter +func (r AlibabaBaichuanTaopasswordCheckAPIRequest) GetParamDto() *ParamDto { + return r._paramDto +} +// ClientInfo Setter +// 系统自动生成 +func (r *AlibabaBaichuanTaopasswordCheckAPIRequest) SetClientInfo(_clientInfo *RichClientInfo) error { + r._clientInfo = _clientInfo + r.Set("client_info", _clientInfo) + return nil +} + +// ClientInfo Getter +func (r AlibabaBaichuanTaopasswordCheckAPIRequest) GetClientInfo() *RichClientInfo { + return r._clientInfo +} diff --git a/model/baichuan/AlibabaBaichuanTaopasswordCheckAPIResponse.go b/model/baichuan/AlibabaBaichuanTaopasswordCheckAPIResponse.go new file mode 100644 index 0000000000..fe9d7c57a1 --- /dev/null +++ b/model/baichuan/AlibabaBaichuanTaopasswordCheckAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘口令检查 API返回值 +alibaba.baichuan.taopassword.check + +检查当前文本是否为淘口令 +*/ +type AlibabaBaichuanTaopasswordCheckAPIResponse struct { + model.CommonResponse + AlibabaBaichuanTaopasswordCheckAPIResponseModel +} + +// 淘口令检查 成功返回结果 +type AlibabaBaichuanTaopasswordCheckAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_baichuan_taopassword_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaBaichuanTaopasswordCheckResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baichuan/AlibabaBaichuanTaopasswordCheckResponse.go b/model/baichuan/AlibabaBaichuanTaopasswordCheckResponse.go deleted file mode 100644 index e1eec75b52..0000000000 --- a/model/baichuan/AlibabaBaichuanTaopasswordCheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘口令检查 API返回值 -alibaba.baichuan.taopassword.check - -检查当前文本是否为淘口令 -*/ -type AlibabaBaichuanTaopasswordCheckAPIResponse struct { - model.CommonResponse - AlibabaBaichuanTaopasswordCheckResponse -} - -// 淘口令检查 成功返回结果 -type AlibabaBaichuanTaopasswordCheckResponse struct { - XMLName xml.Name `xml:"alibaba_baichuan_taopassword_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaBaichuanTaopasswordCheckResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baichuan/AlibabaBaichuanTaopasswordConfigAPIRequest.go b/model/baichuan/AlibabaBaichuanTaopasswordConfigAPIRequest.go new file mode 100644 index 0000000000..0cf3c4c45a --- /dev/null +++ b/model/baichuan/AlibabaBaichuanTaopasswordConfigAPIRequest.go @@ -0,0 +1,38 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘口令配置数据 API请求 +alibaba.baichuan.taopassword.config + +百川淘口令规则配置接口 +*/ +type AlibabaBaichuanTaopasswordConfigAPIRequest struct { + model.Params +} + +// 初始化AlibabaBaichuanTaopasswordConfigAPIRequest对象 +func NewAlibabaBaichuanTaopasswordConfigRequest() *AlibabaBaichuanTaopasswordConfigAPIRequest{ + return &AlibabaBaichuanTaopasswordConfigAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaBaichuanTaopasswordConfigAPIRequest) GetApiMethodName() string { + return "alibaba.baichuan.taopassword.config" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaBaichuanTaopasswordConfigAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/baichuan/AlibabaBaichuanTaopasswordConfigAPIResponse.go b/model/baichuan/AlibabaBaichuanTaopasswordConfigAPIResponse.go new file mode 100644 index 0000000000..6197732176 --- /dev/null +++ b/model/baichuan/AlibabaBaichuanTaopasswordConfigAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘口令配置数据 API返回值 +alibaba.baichuan.taopassword.config + +百川淘口令规则配置接口 +*/ +type AlibabaBaichuanTaopasswordConfigAPIResponse struct { + model.CommonResponse + AlibabaBaichuanTaopasswordConfigAPIResponseModel +} + +// 淘口令配置数据 成功返回结果 +type AlibabaBaichuanTaopasswordConfigAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_baichuan_taopassword_config_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ShareResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baichuan/AlibabaBaichuanTaopasswordConfigResponse.go b/model/baichuan/AlibabaBaichuanTaopasswordConfigResponse.go deleted file mode 100644 index dec35e41f5..0000000000 --- a/model/baichuan/AlibabaBaichuanTaopasswordConfigResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘口令配置数据 API返回值 -alibaba.baichuan.taopassword.config - -百川淘口令规则配置接口 -*/ -type AlibabaBaichuanTaopasswordConfigAPIResponse struct { - model.CommonResponse - AlibabaBaichuanTaopasswordConfigResponse -} - -// 淘口令配置数据 成功返回结果 -type AlibabaBaichuanTaopasswordConfigResponse struct { - XMLName xml.Name `xml:"alibaba_baichuan_taopassword_config_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ShareResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baichuan/AlibabaBaichuanTaopasswordQueryAPIRequest.go b/model/baichuan/AlibabaBaichuanTaopasswordQueryAPIRequest.go new file mode 100644 index 0000000000..720ef81a53 --- /dev/null +++ b/model/baichuan/AlibabaBaichuanTaopasswordQueryAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询解析淘口令 API请求 +alibaba.baichuan.taopassword.query + +查询,解析淘口令 +*/ +type AlibabaBaichuanTaopasswordQueryAPIRequest struct { + model.Params + // 淘口令 + _passwordContent string +} + +// 初始化AlibabaBaichuanTaopasswordQueryAPIRequest对象 +func NewAlibabaBaichuanTaopasswordQueryRequest() *AlibabaBaichuanTaopasswordQueryAPIRequest{ + return &AlibabaBaichuanTaopasswordQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaBaichuanTaopasswordQueryAPIRequest) GetApiMethodName() string { + return "alibaba.baichuan.taopassword.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaBaichuanTaopasswordQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PasswordContent Setter +// 淘口令 +func (r *AlibabaBaichuanTaopasswordQueryAPIRequest) SetPasswordContent(_passwordContent string) error { + r._passwordContent = _passwordContent + r.Set("password_content", _passwordContent) + return nil +} + +// PasswordContent Getter +func (r AlibabaBaichuanTaopasswordQueryAPIRequest) GetPasswordContent() string { + return r._passwordContent +} diff --git a/model/baichuan/AlibabaBaichuanTaopasswordQueryAPIResponse.go b/model/baichuan/AlibabaBaichuanTaopasswordQueryAPIResponse.go new file mode 100644 index 0000000000..4804c6fd1b --- /dev/null +++ b/model/baichuan/AlibabaBaichuanTaopasswordQueryAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询解析淘口令 API返回值 +alibaba.baichuan.taopassword.query + +查询,解析淘口令 +*/ +type AlibabaBaichuanTaopasswordQueryAPIResponse struct { + model.CommonResponse + AlibabaBaichuanTaopasswordQueryAPIResponseModel +} + +// 查询解析淘口令 成功返回结果 +type AlibabaBaichuanTaopasswordQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_baichuan_taopassword_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BcTaoPasswordResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baichuan/AlibabaBaichuanTaopasswordQueryResponse.go b/model/baichuan/AlibabaBaichuanTaopasswordQueryResponse.go deleted file mode 100644 index 3b6a7e8766..0000000000 --- a/model/baichuan/AlibabaBaichuanTaopasswordQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询解析淘口令 API返回值 -alibaba.baichuan.taopassword.query - -查询,解析淘口令 -*/ -type AlibabaBaichuanTaopasswordQueryAPIResponse struct { - model.CommonResponse - AlibabaBaichuanTaopasswordQueryResponse -} - -// 查询解析淘口令 成功返回结果 -type AlibabaBaichuanTaopasswordQueryResponse struct { - XMLName xml.Name `xml:"alibaba_baichuan_taopassword_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BcTaoPasswordResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanItemSubscribeAPIRequest.go b/model/baichuan/TaobaoBaichuanItemSubscribeAPIRequest.go new file mode 100644 index 0000000000..c7611a232d --- /dev/null +++ b/model/baichuan/TaobaoBaichuanItemSubscribeAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单个商品订阅 API请求 +taobao.baichuan.item.subscribe + +百川单个商品订阅 +*/ +type TaobaoBaichuanItemSubscribeAPIRequest struct { + model.Params + // 商品id + _itemId int64 +} + +// 初始化TaobaoBaichuanItemSubscribeAPIRequest对象 +func NewTaobaoBaichuanItemSubscribeRequest() *TaobaoBaichuanItemSubscribeAPIRequest{ + return &TaobaoBaichuanItemSubscribeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanItemSubscribeAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.item.subscribe" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanItemSubscribeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TaobaoBaichuanItemSubscribeAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoBaichuanItemSubscribeAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/baichuan/TaobaoBaichuanItemSubscribeAPIResponse.go b/model/baichuan/TaobaoBaichuanItemSubscribeAPIResponse.go new file mode 100644 index 0000000000..bb85fbb5a7 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanItemSubscribeAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单个商品订阅 API返回值 +taobao.baichuan.item.subscribe + +百川单个商品订阅 +*/ +type TaobaoBaichuanItemSubscribeAPIResponse struct { + model.CommonResponse + TaobaoBaichuanItemSubscribeAPIResponseModel +} + +// 单个商品订阅 成功返回结果 +type TaobaoBaichuanItemSubscribeAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_item_subscribe_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoBaichuanItemSubscribeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanItemSubscribeDailyLeftQueryAPIRequest.go b/model/baichuan/TaobaoBaichuanItemSubscribeDailyLeftQueryAPIRequest.go new file mode 100644 index 0000000000..0d2821a877 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanItemSubscribeDailyLeftQueryAPIRequest.go @@ -0,0 +1,38 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询当天可添加的余量 API请求 +taobao.baichuan.item.subscribe.daily.left.query + +查询当天可添加的余量 +*/ +type TaobaoBaichuanItemSubscribeDailyLeftQueryAPIRequest struct { + model.Params +} + +// 初始化TaobaoBaichuanItemSubscribeDailyLeftQueryAPIRequest对象 +func NewTaobaoBaichuanItemSubscribeDailyLeftQueryRequest() *TaobaoBaichuanItemSubscribeDailyLeftQueryAPIRequest{ + return &TaobaoBaichuanItemSubscribeDailyLeftQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanItemSubscribeDailyLeftQueryAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.item.subscribe.daily.left.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanItemSubscribeDailyLeftQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/baichuan/TaobaoBaichuanItemSubscribeDailyLeftQueryAPIResponse.go b/model/baichuan/TaobaoBaichuanItemSubscribeDailyLeftQueryAPIResponse.go new file mode 100644 index 0000000000..186215f2b3 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanItemSubscribeDailyLeftQueryAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询当天可添加的余量 API返回值 +taobao.baichuan.item.subscribe.daily.left.query + +查询当天可添加的余量 +*/ +type TaobaoBaichuanItemSubscribeDailyLeftQueryAPIResponse struct { + model.CommonResponse + TaobaoBaichuanItemSubscribeDailyLeftQueryAPIResponseModel +} + +// 查询当天可添加的余量 成功返回结果 +type TaobaoBaichuanItemSubscribeDailyLeftQueryAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_item_subscribe_daily_left_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoBaichuanItemSubscribeDailyLeftQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanItemSubscribeDailyLeftQueryResponse.go b/model/baichuan/TaobaoBaichuanItemSubscribeDailyLeftQueryResponse.go deleted file mode 100644 index 2a802b7c30..0000000000 --- a/model/baichuan/TaobaoBaichuanItemSubscribeDailyLeftQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询当天可添加的余量 API返回值 -taobao.baichuan.item.subscribe.daily.left.query - -查询当天可添加的余量 -*/ -type TaobaoBaichuanItemSubscribeDailyLeftQueryAPIResponse struct { - model.CommonResponse - TaobaoBaichuanItemSubscribeDailyLeftQueryResponse -} - -// 查询当天可添加的余量 成功返回结果 -type TaobaoBaichuanItemSubscribeDailyLeftQueryResponse struct { - XMLName xml.Name `xml:"baichuan_item_subscribe_daily_left_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoBaichuanItemSubscribeDailyLeftQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanItemSubscribeRelationQueryAPIRequest.go b/model/baichuan/TaobaoBaichuanItemSubscribeRelationQueryAPIRequest.go new file mode 100644 index 0000000000..2391a288eb --- /dev/null +++ b/model/baichuan/TaobaoBaichuanItemSubscribeRelationQueryAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询单个订阅关系 API请求 +taobao.baichuan.item.subscribe.relation.query + +查询单个订阅关系 +*/ +type TaobaoBaichuanItemSubscribeRelationQueryAPIRequest struct { + model.Params + // 商品Id + _itemId int64 +} + +// 初始化TaobaoBaichuanItemSubscribeRelationQueryAPIRequest对象 +func NewTaobaoBaichuanItemSubscribeRelationQueryRequest() *TaobaoBaichuanItemSubscribeRelationQueryAPIRequest{ + return &TaobaoBaichuanItemSubscribeRelationQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanItemSubscribeRelationQueryAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.item.subscribe.relation.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanItemSubscribeRelationQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品Id +func (r *TaobaoBaichuanItemSubscribeRelationQueryAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoBaichuanItemSubscribeRelationQueryAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/baichuan/TaobaoBaichuanItemSubscribeRelationQueryAPIResponse.go b/model/baichuan/TaobaoBaichuanItemSubscribeRelationQueryAPIResponse.go new file mode 100644 index 0000000000..bf3f2429df --- /dev/null +++ b/model/baichuan/TaobaoBaichuanItemSubscribeRelationQueryAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询单个订阅关系 API返回值 +taobao.baichuan.item.subscribe.relation.query + +查询单个订阅关系 +*/ +type TaobaoBaichuanItemSubscribeRelationQueryAPIResponse struct { + model.CommonResponse + TaobaoBaichuanItemSubscribeRelationQueryAPIResponseModel +} + +// 查询单个订阅关系 成功返回结果 +type TaobaoBaichuanItemSubscribeRelationQueryAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_item_subscribe_relation_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoBaichuanItemSubscribeRelationQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanItemSubscribeRelationQueryResponse.go b/model/baichuan/TaobaoBaichuanItemSubscribeRelationQueryResponse.go deleted file mode 100644 index 3d2e89ae58..0000000000 --- a/model/baichuan/TaobaoBaichuanItemSubscribeRelationQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询单个订阅关系 API返回值 -taobao.baichuan.item.subscribe.relation.query - -查询单个订阅关系 -*/ -type TaobaoBaichuanItemSubscribeRelationQueryAPIResponse struct { - model.CommonResponse - TaobaoBaichuanItemSubscribeRelationQueryResponse -} - -// 查询单个订阅关系 成功返回结果 -type TaobaoBaichuanItemSubscribeRelationQueryResponse struct { - XMLName xml.Name `xml:"baichuan_item_subscribe_relation_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoBaichuanItemSubscribeRelationQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanItemSubscribeRelationsQueryAPIRequest.go b/model/baichuan/TaobaoBaichuanItemSubscribeRelationsQueryAPIRequest.go new file mode 100644 index 0000000000..4fda250f7b --- /dev/null +++ b/model/baichuan/TaobaoBaichuanItemSubscribeRelationsQueryAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +按条件查询订阅关系 API请求 +taobao.baichuan.item.subscribe.relations.query + +按条件查询订阅关系 +*/ +type TaobaoBaichuanItemSubscribeRelationsQueryAPIRequest struct { + model.Params + // 查询条件 + _condition *Condition +} + +// 初始化TaobaoBaichuanItemSubscribeRelationsQueryAPIRequest对象 +func NewTaobaoBaichuanItemSubscribeRelationsQueryRequest() *TaobaoBaichuanItemSubscribeRelationsQueryAPIRequest{ + return &TaobaoBaichuanItemSubscribeRelationsQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanItemSubscribeRelationsQueryAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.item.subscribe.relations.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanItemSubscribeRelationsQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Condition Setter +// 查询条件 +func (r *TaobaoBaichuanItemSubscribeRelationsQueryAPIRequest) SetCondition(_condition *Condition) error { + r._condition = _condition + r.Set("condition", _condition) + return nil +} + +// Condition Getter +func (r TaobaoBaichuanItemSubscribeRelationsQueryAPIRequest) GetCondition() *Condition { + return r._condition +} diff --git a/model/baichuan/TaobaoBaichuanItemSubscribeRelationsQueryAPIResponse.go b/model/baichuan/TaobaoBaichuanItemSubscribeRelationsQueryAPIResponse.go new file mode 100644 index 0000000000..3103762f0e --- /dev/null +++ b/model/baichuan/TaobaoBaichuanItemSubscribeRelationsQueryAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +按条件查询订阅关系 API返回值 +taobao.baichuan.item.subscribe.relations.query + +按条件查询订阅关系 +*/ +type TaobaoBaichuanItemSubscribeRelationsQueryAPIResponse struct { + model.CommonResponse + TaobaoBaichuanItemSubscribeRelationsQueryAPIResponseModel +} + +// 按条件查询订阅关系 成功返回结果 +type TaobaoBaichuanItemSubscribeRelationsQueryAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_item_subscribe_relations_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoBaichuanItemSubscribeRelationsQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanItemSubscribeRelationsQueryResponse.go b/model/baichuan/TaobaoBaichuanItemSubscribeRelationsQueryResponse.go deleted file mode 100644 index 82ebfde116..0000000000 --- a/model/baichuan/TaobaoBaichuanItemSubscribeRelationsQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -按条件查询订阅关系 API返回值 -taobao.baichuan.item.subscribe.relations.query - -按条件查询订阅关系 -*/ -type TaobaoBaichuanItemSubscribeRelationsQueryAPIResponse struct { - model.CommonResponse - TaobaoBaichuanItemSubscribeRelationsQueryResponse -} - -// 按条件查询订阅关系 成功返回结果 -type TaobaoBaichuanItemSubscribeRelationsQueryResponse struct { - XMLName xml.Name `xml:"baichuan_item_subscribe_relations_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoBaichuanItemSubscribeRelationsQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanItemSubscribeResponse.go b/model/baichuan/TaobaoBaichuanItemSubscribeResponse.go deleted file mode 100644 index c4b1787d26..0000000000 --- a/model/baichuan/TaobaoBaichuanItemSubscribeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单个商品订阅 API返回值 -taobao.baichuan.item.subscribe - -百川单个商品订阅 -*/ -type TaobaoBaichuanItemSubscribeAPIResponse struct { - model.CommonResponse - TaobaoBaichuanItemSubscribeResponse -} - -// 单个商品订阅 成功返回结果 -type TaobaoBaichuanItemSubscribeResponse struct { - XMLName xml.Name `xml:"baichuan_item_subscribe_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoBaichuanItemSubscribeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanItemUnsubscribeAPIRequest.go b/model/baichuan/TaobaoBaichuanItemUnsubscribeAPIRequest.go new file mode 100644 index 0000000000..da27a89120 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanItemUnsubscribeAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单个删除订阅关系 API请求 +taobao.baichuan.item.unsubscribe + +删除单个商品订阅关系 +*/ +type TaobaoBaichuanItemUnsubscribeAPIRequest struct { + model.Params + // 商品id + _itemId int64 +} + +// 初始化TaobaoBaichuanItemUnsubscribeAPIRequest对象 +func NewTaobaoBaichuanItemUnsubscribeRequest() *TaobaoBaichuanItemUnsubscribeAPIRequest{ + return &TaobaoBaichuanItemUnsubscribeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanItemUnsubscribeAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.item.unsubscribe" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanItemUnsubscribeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TaobaoBaichuanItemUnsubscribeAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoBaichuanItemUnsubscribeAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/baichuan/TaobaoBaichuanItemUnsubscribeAPIResponse.go b/model/baichuan/TaobaoBaichuanItemUnsubscribeAPIResponse.go new file mode 100644 index 0000000000..787094bb36 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanItemUnsubscribeAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单个删除订阅关系 API返回值 +taobao.baichuan.item.unsubscribe + +删除单个商品订阅关系 +*/ +type TaobaoBaichuanItemUnsubscribeAPIResponse struct { + model.CommonResponse + TaobaoBaichuanItemUnsubscribeAPIResponseModel +} + +// 单个删除订阅关系 成功返回结果 +type TaobaoBaichuanItemUnsubscribeAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_item_unsubscribe_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoBaichuanItemUnsubscribeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanItemUnsubscribeResponse.go b/model/baichuan/TaobaoBaichuanItemUnsubscribeResponse.go deleted file mode 100644 index 2d9e89b779..0000000000 --- a/model/baichuan/TaobaoBaichuanItemUnsubscribeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单个删除订阅关系 API返回值 -taobao.baichuan.item.unsubscribe - -删除单个商品订阅关系 -*/ -type TaobaoBaichuanItemUnsubscribeAPIResponse struct { - model.CommonResponse - TaobaoBaichuanItemUnsubscribeResponse -} - -// 单个删除订阅关系 成功返回结果 -type TaobaoBaichuanItemUnsubscribeResponse struct { - XMLName xml.Name `xml:"baichuan_item_unsubscribe_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoBaichuanItemUnsubscribeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanItemsSubscribeAPIRequest.go b/model/baichuan/TaobaoBaichuanItemsSubscribeAPIRequest.go new file mode 100644 index 0000000000..1f8f028e88 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanItemsSubscribeAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川批量商品订阅 API请求 +taobao.baichuan.items.subscribe + +百川批量添加订阅的商品 +*/ +type TaobaoBaichuanItemsSubscribeAPIRequest struct { + model.Params + // 订阅的商品id列表 + _itemIds []int64 +} + +// 初始化TaobaoBaichuanItemsSubscribeAPIRequest对象 +func NewTaobaoBaichuanItemsSubscribeRequest() *TaobaoBaichuanItemsSubscribeAPIRequest{ + return &TaobaoBaichuanItemsSubscribeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanItemsSubscribeAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.items.subscribe" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanItemsSubscribeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemIds Setter +// 订阅的商品id列表 +func (r *TaobaoBaichuanItemsSubscribeAPIRequest) SetItemIds(_itemIds []int64) error { + r._itemIds = _itemIds + r.Set("item_ids", _itemIds) + return nil +} + +// ItemIds Getter +func (r TaobaoBaichuanItemsSubscribeAPIRequest) GetItemIds() []int64 { + return r._itemIds +} diff --git a/model/baichuan/TaobaoBaichuanItemsSubscribeAPIResponse.go b/model/baichuan/TaobaoBaichuanItemsSubscribeAPIResponse.go new file mode 100644 index 0000000000..a8657fc05c --- /dev/null +++ b/model/baichuan/TaobaoBaichuanItemsSubscribeAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川批量商品订阅 API返回值 +taobao.baichuan.items.subscribe + +百川批量添加订阅的商品 +*/ +type TaobaoBaichuanItemsSubscribeAPIResponse struct { + model.CommonResponse + TaobaoBaichuanItemsSubscribeAPIResponseModel +} + +// 百川批量商品订阅 成功返回结果 +type TaobaoBaichuanItemsSubscribeAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_items_subscribe_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoBaichuanItemsSubscribeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanItemsSubscribeResponse.go b/model/baichuan/TaobaoBaichuanItemsSubscribeResponse.go deleted file mode 100644 index 2b744c422e..0000000000 --- a/model/baichuan/TaobaoBaichuanItemsSubscribeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川批量商品订阅 API返回值 -taobao.baichuan.items.subscribe - -百川批量添加订阅的商品 -*/ -type TaobaoBaichuanItemsSubscribeAPIResponse struct { - model.CommonResponse - TaobaoBaichuanItemsSubscribeResponse -} - -// 百川批量商品订阅 成功返回结果 -type TaobaoBaichuanItemsSubscribeResponse struct { - XMLName xml.Name `xml:"baichuan_items_subscribe_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoBaichuanItemsSubscribeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanItemsUnsubscribeAPIRequest.go b/model/baichuan/TaobaoBaichuanItemsUnsubscribeAPIRequest.go new file mode 100644 index 0000000000..277f502f15 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanItemsUnsubscribeAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量删除商品订阅 API请求 +taobao.baichuan.items.unsubscribe + +批量删除商品订阅 +*/ +type TaobaoBaichuanItemsUnsubscribeAPIRequest struct { + model.Params + // 删除的商品id + _itemIds []int64 +} + +// 初始化TaobaoBaichuanItemsUnsubscribeAPIRequest对象 +func NewTaobaoBaichuanItemsUnsubscribeRequest() *TaobaoBaichuanItemsUnsubscribeAPIRequest{ + return &TaobaoBaichuanItemsUnsubscribeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanItemsUnsubscribeAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.items.unsubscribe" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanItemsUnsubscribeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemIds Setter +// 删除的商品id +func (r *TaobaoBaichuanItemsUnsubscribeAPIRequest) SetItemIds(_itemIds []int64) error { + r._itemIds = _itemIds + r.Set("item_ids", _itemIds) + return nil +} + +// ItemIds Getter +func (r TaobaoBaichuanItemsUnsubscribeAPIRequest) GetItemIds() []int64 { + return r._itemIds +} diff --git a/model/baichuan/TaobaoBaichuanItemsUnsubscribeAPIResponse.go b/model/baichuan/TaobaoBaichuanItemsUnsubscribeAPIResponse.go new file mode 100644 index 0000000000..f23b70dbc3 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanItemsUnsubscribeAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量删除商品订阅 API返回值 +taobao.baichuan.items.unsubscribe + +批量删除商品订阅 +*/ +type TaobaoBaichuanItemsUnsubscribeAPIResponse struct { + model.CommonResponse + TaobaoBaichuanItemsUnsubscribeAPIResponseModel +} + +// 批量删除商品订阅 成功返回结果 +type TaobaoBaichuanItemsUnsubscribeAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_items_unsubscribe_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoBaichuanItemsUnsubscribeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanItemsUnsubscribeByConditionAPIRequest.go b/model/baichuan/TaobaoBaichuanItemsUnsubscribeByConditionAPIRequest.go new file mode 100644 index 0000000000..b49070a4c2 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanItemsUnsubscribeByConditionAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据条件删除订阅关系 API请求 +taobao.baichuan.items.unsubscribe.by.condition + +根据条件删除订阅关系 +*/ +type TaobaoBaichuanItemsUnsubscribeByConditionAPIRequest struct { + model.Params + // 删除条件 + _condition *Condition +} + +// 初始化TaobaoBaichuanItemsUnsubscribeByConditionAPIRequest对象 +func NewTaobaoBaichuanItemsUnsubscribeByConditionRequest() *TaobaoBaichuanItemsUnsubscribeByConditionAPIRequest{ + return &TaobaoBaichuanItemsUnsubscribeByConditionAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanItemsUnsubscribeByConditionAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.items.unsubscribe.by.condition" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanItemsUnsubscribeByConditionAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Condition Setter +// 删除条件 +func (r *TaobaoBaichuanItemsUnsubscribeByConditionAPIRequest) SetCondition(_condition *Condition) error { + r._condition = _condition + r.Set("condition", _condition) + return nil +} + +// Condition Getter +func (r TaobaoBaichuanItemsUnsubscribeByConditionAPIRequest) GetCondition() *Condition { + return r._condition +} diff --git a/model/baichuan/TaobaoBaichuanItemsUnsubscribeByConditionAPIResponse.go b/model/baichuan/TaobaoBaichuanItemsUnsubscribeByConditionAPIResponse.go new file mode 100644 index 0000000000..afecab0bb7 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanItemsUnsubscribeByConditionAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据条件删除订阅关系 API返回值 +taobao.baichuan.items.unsubscribe.by.condition + +根据条件删除订阅关系 +*/ +type TaobaoBaichuanItemsUnsubscribeByConditionAPIResponse struct { + model.CommonResponse + TaobaoBaichuanItemsUnsubscribeByConditionAPIResponseModel +} + +// 根据条件删除订阅关系 成功返回结果 +type TaobaoBaichuanItemsUnsubscribeByConditionAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_items_unsubscribe_by_condition_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoBaichuanItemsUnsubscribeByConditionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanItemsUnsubscribeByConditionResponse.go b/model/baichuan/TaobaoBaichuanItemsUnsubscribeByConditionResponse.go deleted file mode 100644 index 383bde62c2..0000000000 --- a/model/baichuan/TaobaoBaichuanItemsUnsubscribeByConditionResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据条件删除订阅关系 API返回值 -taobao.baichuan.items.unsubscribe.by.condition - -根据条件删除订阅关系 -*/ -type TaobaoBaichuanItemsUnsubscribeByConditionAPIResponse struct { - model.CommonResponse - TaobaoBaichuanItemsUnsubscribeByConditionResponse -} - -// 根据条件删除订阅关系 成功返回结果 -type TaobaoBaichuanItemsUnsubscribeByConditionResponse struct { - XMLName xml.Name `xml:"baichuan_items_unsubscribe_by_condition_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoBaichuanItemsUnsubscribeByConditionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanItemsUnsubscribeResponse.go b/model/baichuan/TaobaoBaichuanItemsUnsubscribeResponse.go deleted file mode 100644 index 296c053e1a..0000000000 --- a/model/baichuan/TaobaoBaichuanItemsUnsubscribeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量删除商品订阅 API返回值 -taobao.baichuan.items.unsubscribe - -批量删除商品订阅 -*/ -type TaobaoBaichuanItemsUnsubscribeAPIResponse struct { - model.CommonResponse - TaobaoBaichuanItemsUnsubscribeResponse -} - -// 批量删除商品订阅 成功返回结果 -type TaobaoBaichuanItemsUnsubscribeResponse struct { - XMLName xml.Name `xml:"baichuan_items_unsubscribe_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoBaichuanItemsUnsubscribeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountLoginAPIRequest.go b/model/baichuan/TaobaoBaichuanOpenaccountLoginAPIRequest.go new file mode 100644 index 0000000000..2fb87e75c8 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountLoginAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川用户名密码登录 API请求 +taobao.baichuan.openaccount.login + +百川用户名密码登录 +*/ +type TaobaoBaichuanOpenaccountLoginAPIRequest struct { + model.Params + // name + _name string +} + +// 初始化TaobaoBaichuanOpenaccountLoginAPIRequest对象 +func NewTaobaoBaichuanOpenaccountLoginRequest() *TaobaoBaichuanOpenaccountLoginAPIRequest{ + return &TaobaoBaichuanOpenaccountLoginAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanOpenaccountLoginAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.openaccount.login" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanOpenaccountLoginAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// name +func (r *TaobaoBaichuanOpenaccountLoginAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoBaichuanOpenaccountLoginAPIRequest) GetName() string { + return r._name +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountLoginAPIResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountLoginAPIResponse.go new file mode 100644 index 0000000000..17b21eef72 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountLoginAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川用户名密码登录 API返回值 +taobao.baichuan.openaccount.login + +百川用户名密码登录 +*/ +type TaobaoBaichuanOpenaccountLoginAPIResponse struct { + model.CommonResponse + TaobaoBaichuanOpenaccountLoginAPIResponseModel +} + +// 百川用户名密码登录 成功返回结果 +type TaobaoBaichuanOpenaccountLoginAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_openaccount_login_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // name + Name string `json:"name,omitempty" xml:"name,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountLoginResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountLoginResponse.go deleted file mode 100644 index 865c9284a3..0000000000 --- a/model/baichuan/TaobaoBaichuanOpenaccountLoginResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川用户名密码登录 API返回值 -taobao.baichuan.openaccount.login - -百川用户名密码登录 -*/ -type TaobaoBaichuanOpenaccountLoginAPIResponse struct { - model.CommonResponse - TaobaoBaichuanOpenaccountLoginResponse -} - -// 百川用户名密码登录 成功返回结果 -type TaobaoBaichuanOpenaccountLoginResponse struct { - XMLName xml.Name `xml:"baichuan_openaccount_login_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // name - Name string `json:"name,omitempty" xml:"name,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountLoginbytokenAPIRequest.go b/model/baichuan/TaobaoBaichuanOpenaccountLoginbytokenAPIRequest.go new file mode 100644 index 0000000000..53436a7261 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountLoginbytokenAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川TOKEN 登录 API请求 +taobao.baichuan.openaccount.loginbytoken + +百川TOKEN 登录 +*/ +type TaobaoBaichuanOpenaccountLoginbytokenAPIRequest struct { + model.Params + // name + _name string +} + +// 初始化TaobaoBaichuanOpenaccountLoginbytokenAPIRequest对象 +func NewTaobaoBaichuanOpenaccountLoginbytokenRequest() *TaobaoBaichuanOpenaccountLoginbytokenAPIRequest{ + return &TaobaoBaichuanOpenaccountLoginbytokenAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanOpenaccountLoginbytokenAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.openaccount.loginbytoken" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanOpenaccountLoginbytokenAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// name +func (r *TaobaoBaichuanOpenaccountLoginbytokenAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoBaichuanOpenaccountLoginbytokenAPIRequest) GetName() string { + return r._name +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountLoginbytokenAPIResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountLoginbytokenAPIResponse.go new file mode 100644 index 0000000000..485f22e9e8 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountLoginbytokenAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川TOKEN 登录 API返回值 +taobao.baichuan.openaccount.loginbytoken + +百川TOKEN 登录 +*/ +type TaobaoBaichuanOpenaccountLoginbytokenAPIResponse struct { + model.CommonResponse + TaobaoBaichuanOpenaccountLoginbytokenAPIResponseModel +} + +// 百川TOKEN 登录 成功返回结果 +type TaobaoBaichuanOpenaccountLoginbytokenAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_openaccount_loginbytoken_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // name + Name string `json:"name,omitempty" xml:"name,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountLoginbytokenResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountLoginbytokenResponse.go deleted file mode 100644 index fce4508849..0000000000 --- a/model/baichuan/TaobaoBaichuanOpenaccountLoginbytokenResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川TOKEN 登录 API返回值 -taobao.baichuan.openaccount.loginbytoken - -百川TOKEN 登录 -*/ -type TaobaoBaichuanOpenaccountLoginbytokenAPIResponse struct { - model.CommonResponse - TaobaoBaichuanOpenaccountLoginbytokenResponse -} - -// 百川TOKEN 登录 成功返回结果 -type TaobaoBaichuanOpenaccountLoginbytokenResponse struct { - XMLName xml.Name `xml:"baichuan_openaccount_loginbytoken_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // name - Name string `json:"name,omitempty" xml:"name,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountLogindoublecheckAPIRequest.go b/model/baichuan/TaobaoBaichuanOpenaccountLogindoublecheckAPIRequest.go new file mode 100644 index 0000000000..3886d10282 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountLogindoublecheckAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川登录二次验证 API请求 +taobao.baichuan.openaccount.logindoublecheck + +百川登录二次验证 +*/ +type TaobaoBaichuanOpenaccountLogindoublecheckAPIRequest struct { + model.Params + // name + _name string +} + +// 初始化TaobaoBaichuanOpenaccountLogindoublecheckAPIRequest对象 +func NewTaobaoBaichuanOpenaccountLogindoublecheckRequest() *TaobaoBaichuanOpenaccountLogindoublecheckAPIRequest{ + return &TaobaoBaichuanOpenaccountLogindoublecheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanOpenaccountLogindoublecheckAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.openaccount.logindoublecheck" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanOpenaccountLogindoublecheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// name +func (r *TaobaoBaichuanOpenaccountLogindoublecheckAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoBaichuanOpenaccountLogindoublecheckAPIRequest) GetName() string { + return r._name +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountLogindoublecheckAPIResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountLogindoublecheckAPIResponse.go new file mode 100644 index 0000000000..5f6c058eb0 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountLogindoublecheckAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川登录二次验证 API返回值 +taobao.baichuan.openaccount.logindoublecheck + +百川登录二次验证 +*/ +type TaobaoBaichuanOpenaccountLogindoublecheckAPIResponse struct { + model.CommonResponse + TaobaoBaichuanOpenaccountLogindoublecheckAPIResponseModel +} + +// 百川登录二次验证 成功返回结果 +type TaobaoBaichuanOpenaccountLogindoublecheckAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_openaccount_logindoublecheck_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // name + Name string `json:"name,omitempty" xml:"name,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountLogindoublecheckResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountLogindoublecheckResponse.go deleted file mode 100644 index 8ab587fd3a..0000000000 --- a/model/baichuan/TaobaoBaichuanOpenaccountLogindoublecheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川登录二次验证 API返回值 -taobao.baichuan.openaccount.logindoublecheck - -百川登录二次验证 -*/ -type TaobaoBaichuanOpenaccountLogindoublecheckAPIResponse struct { - model.CommonResponse - TaobaoBaichuanOpenaccountLogindoublecheckResponse -} - -// 百川登录二次验证 成功返回结果 -type TaobaoBaichuanOpenaccountLogindoublecheckResponse struct { - XMLName xml.Name `xml:"baichuan_openaccount_logindoublecheck_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // name - Name string `json:"name,omitempty" xml:"name,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountNewlogindoublecheckAPIRequest.go b/model/baichuan/TaobaoBaichuanOpenaccountNewlogindoublecheckAPIRequest.go new file mode 100644 index 0000000000..34d9810f59 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountNewlogindoublecheckAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川新登录二次验证 API请求 +taobao.baichuan.openaccount.newlogindoublecheck + +百川新登录二次验证 +*/ +type TaobaoBaichuanOpenaccountNewlogindoublecheckAPIRequest struct { + model.Params + // name + _name string +} + +// 初始化TaobaoBaichuanOpenaccountNewlogindoublecheckAPIRequest对象 +func NewTaobaoBaichuanOpenaccountNewlogindoublecheckRequest() *TaobaoBaichuanOpenaccountNewlogindoublecheckAPIRequest{ + return &TaobaoBaichuanOpenaccountNewlogindoublecheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanOpenaccountNewlogindoublecheckAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.openaccount.newlogindoublecheck" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanOpenaccountNewlogindoublecheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// name +func (r *TaobaoBaichuanOpenaccountNewlogindoublecheckAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoBaichuanOpenaccountNewlogindoublecheckAPIRequest) GetName() string { + return r._name +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountNewlogindoublecheckAPIResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountNewlogindoublecheckAPIResponse.go new file mode 100644 index 0000000000..03af7a60f0 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountNewlogindoublecheckAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川新登录二次验证 API返回值 +taobao.baichuan.openaccount.newlogindoublecheck + +百川新登录二次验证 +*/ +type TaobaoBaichuanOpenaccountNewlogindoublecheckAPIResponse struct { + model.CommonResponse + TaobaoBaichuanOpenaccountNewlogindoublecheckAPIResponseModel +} + +// 百川新登录二次验证 成功返回结果 +type TaobaoBaichuanOpenaccountNewlogindoublecheckAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_openaccount_newlogindoublecheck_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // name + Name string `json:"name,omitempty" xml:"name,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountNewlogindoublecheckResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountNewlogindoublecheckResponse.go deleted file mode 100644 index 6eb5e8cbcc..0000000000 --- a/model/baichuan/TaobaoBaichuanOpenaccountNewlogindoublecheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川新登录二次验证 API返回值 -taobao.baichuan.openaccount.newlogindoublecheck - -百川新登录二次验证 -*/ -type TaobaoBaichuanOpenaccountNewlogindoublecheckAPIResponse struct { - model.CommonResponse - TaobaoBaichuanOpenaccountNewlogindoublecheckResponse -} - -// 百川新登录二次验证 成功返回结果 -type TaobaoBaichuanOpenaccountNewlogindoublecheckResponse struct { - XMLName xml.Name `xml:"baichuan_openaccount_newlogindoublecheck_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // name - Name string `json:"name,omitempty" xml:"name,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountPasswordResetAPIRequest.go b/model/baichuan/TaobaoBaichuanOpenaccountPasswordResetAPIRequest.go new file mode 100644 index 0000000000..17b3704b42 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountPasswordResetAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川找回密码 API请求 +taobao.baichuan.openaccount.password.reset + +百川找回密码 +*/ +type TaobaoBaichuanOpenaccountPasswordResetAPIRequest struct { + model.Params + // name + _name string +} + +// 初始化TaobaoBaichuanOpenaccountPasswordResetAPIRequest对象 +func NewTaobaoBaichuanOpenaccountPasswordResetRequest() *TaobaoBaichuanOpenaccountPasswordResetAPIRequest{ + return &TaobaoBaichuanOpenaccountPasswordResetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanOpenaccountPasswordResetAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.openaccount.password.reset" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanOpenaccountPasswordResetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// name +func (r *TaobaoBaichuanOpenaccountPasswordResetAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoBaichuanOpenaccountPasswordResetAPIRequest) GetName() string { + return r._name +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountPasswordResetAPIResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountPasswordResetAPIResponse.go new file mode 100644 index 0000000000..5cc971c81b --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountPasswordResetAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川找回密码 API返回值 +taobao.baichuan.openaccount.password.reset + +百川找回密码 +*/ +type TaobaoBaichuanOpenaccountPasswordResetAPIResponse struct { + model.CommonResponse + TaobaoBaichuanOpenaccountPasswordResetAPIResponseModel +} + +// 百川找回密码 成功返回结果 +type TaobaoBaichuanOpenaccountPasswordResetAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_openaccount_password_reset_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // name + Name string `json:"name,omitempty" xml:"name,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountPasswordResetResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountPasswordResetResponse.go deleted file mode 100644 index 2c53f1f482..0000000000 --- a/model/baichuan/TaobaoBaichuanOpenaccountPasswordResetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川找回密码 API返回值 -taobao.baichuan.openaccount.password.reset - -百川找回密码 -*/ -type TaobaoBaichuanOpenaccountPasswordResetAPIResponse struct { - model.CommonResponse - TaobaoBaichuanOpenaccountPasswordResetResponse -} - -// 百川找回密码 成功返回结果 -type TaobaoBaichuanOpenaccountPasswordResetResponse struct { - XMLName xml.Name `xml:"baichuan_openaccount_password_reset_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // name - Name string `json:"name,omitempty" xml:"name,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountRegisterAPIRequest.go b/model/baichuan/TaobaoBaichuanOpenaccountRegisterAPIRequest.go new file mode 100644 index 0000000000..d34357397e --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountRegisterAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川账号注册 API请求 +taobao.baichuan.openaccount.register + +百川账号注册 +*/ +type TaobaoBaichuanOpenaccountRegisterAPIRequest struct { + model.Params + // name + _name string +} + +// 初始化TaobaoBaichuanOpenaccountRegisterAPIRequest对象 +func NewTaobaoBaichuanOpenaccountRegisterRequest() *TaobaoBaichuanOpenaccountRegisterAPIRequest{ + return &TaobaoBaichuanOpenaccountRegisterAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanOpenaccountRegisterAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.openaccount.register" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanOpenaccountRegisterAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// name +func (r *TaobaoBaichuanOpenaccountRegisterAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoBaichuanOpenaccountRegisterAPIRequest) GetName() string { + return r._name +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountRegisterAPIResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountRegisterAPIResponse.go new file mode 100644 index 0000000000..0c023fb035 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountRegisterAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川账号注册 API返回值 +taobao.baichuan.openaccount.register + +百川账号注册 +*/ +type TaobaoBaichuanOpenaccountRegisterAPIResponse struct { + model.CommonResponse + TaobaoBaichuanOpenaccountRegisterAPIResponseModel +} + +// 百川账号注册 成功返回结果 +type TaobaoBaichuanOpenaccountRegisterAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_openaccount_register_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // name + Name string `json:"name,omitempty" xml:"name,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountRegisterResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountRegisterResponse.go deleted file mode 100644 index a53ab0f4ca..0000000000 --- a/model/baichuan/TaobaoBaichuanOpenaccountRegisterResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川账号注册 API返回值 -taobao.baichuan.openaccount.register - -百川账号注册 -*/ -type TaobaoBaichuanOpenaccountRegisterAPIResponse struct { - model.CommonResponse - TaobaoBaichuanOpenaccountRegisterResponse -} - -// 百川账号注册 成功返回结果 -type TaobaoBaichuanOpenaccountRegisterResponse struct { - XMLName xml.Name `xml:"baichuan_openaccount_register_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // name - Name string `json:"name,omitempty" xml:"name,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountRegistercodeCheckAPIRequest.go b/model/baichuan/TaobaoBaichuanOpenaccountRegistercodeCheckAPIRequest.go new file mode 100644 index 0000000000..b22400436a --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountRegistercodeCheckAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川检查注册验证码 API请求 +taobao.baichuan.openaccount.registercode.check + +百川检查注册验证码 +*/ +type TaobaoBaichuanOpenaccountRegistercodeCheckAPIRequest struct { + model.Params + // name + _name string +} + +// 初始化TaobaoBaichuanOpenaccountRegistercodeCheckAPIRequest对象 +func NewTaobaoBaichuanOpenaccountRegistercodeCheckRequest() *TaobaoBaichuanOpenaccountRegistercodeCheckAPIRequest{ + return &TaobaoBaichuanOpenaccountRegistercodeCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanOpenaccountRegistercodeCheckAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.openaccount.registercode.check" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanOpenaccountRegistercodeCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// name +func (r *TaobaoBaichuanOpenaccountRegistercodeCheckAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoBaichuanOpenaccountRegistercodeCheckAPIRequest) GetName() string { + return r._name +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountRegistercodeCheckAPIResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountRegistercodeCheckAPIResponse.go new file mode 100644 index 0000000000..e8958d3696 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountRegistercodeCheckAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川检查注册验证码 API返回值 +taobao.baichuan.openaccount.registercode.check + +百川检查注册验证码 +*/ +type TaobaoBaichuanOpenaccountRegistercodeCheckAPIResponse struct { + model.CommonResponse + TaobaoBaichuanOpenaccountRegistercodeCheckAPIResponseModel +} + +// 百川检查注册验证码 成功返回结果 +type TaobaoBaichuanOpenaccountRegistercodeCheckAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_openaccount_registercode_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // name + Name string `json:"name,omitempty" xml:"name,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountRegistercodeCheckResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountRegistercodeCheckResponse.go deleted file mode 100644 index eb214f7d15..0000000000 --- a/model/baichuan/TaobaoBaichuanOpenaccountRegistercodeCheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川检查注册验证码 API返回值 -taobao.baichuan.openaccount.registercode.check - -百川检查注册验证码 -*/ -type TaobaoBaichuanOpenaccountRegistercodeCheckAPIResponse struct { - model.CommonResponse - TaobaoBaichuanOpenaccountRegistercodeCheckResponse -} - -// 百川检查注册验证码 成功返回结果 -type TaobaoBaichuanOpenaccountRegistercodeCheckResponse struct { - XMLName xml.Name `xml:"baichuan_openaccount_registercode_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // name - Name string `json:"name,omitempty" xml:"name,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountRegistercodeSendAPIRequest.go b/model/baichuan/TaobaoBaichuanOpenaccountRegistercodeSendAPIRequest.go new file mode 100644 index 0000000000..0f9b08c044 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountRegistercodeSendAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川发送注册验证码 API请求 +taobao.baichuan.openaccount.registercode.send + +百川发送注册验证码 +*/ +type TaobaoBaichuanOpenaccountRegistercodeSendAPIRequest struct { + model.Params + // name + _name string +} + +// 初始化TaobaoBaichuanOpenaccountRegistercodeSendAPIRequest对象 +func NewTaobaoBaichuanOpenaccountRegistercodeSendRequest() *TaobaoBaichuanOpenaccountRegistercodeSendAPIRequest{ + return &TaobaoBaichuanOpenaccountRegistercodeSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanOpenaccountRegistercodeSendAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.openaccount.registercode.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanOpenaccountRegistercodeSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// name +func (r *TaobaoBaichuanOpenaccountRegistercodeSendAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoBaichuanOpenaccountRegistercodeSendAPIRequest) GetName() string { + return r._name +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountRegistercodeSendAPIResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountRegistercodeSendAPIResponse.go new file mode 100644 index 0000000000..3a1d8661c9 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountRegistercodeSendAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川发送注册验证码 API返回值 +taobao.baichuan.openaccount.registercode.send + +百川发送注册验证码 +*/ +type TaobaoBaichuanOpenaccountRegistercodeSendAPIResponse struct { + model.CommonResponse + TaobaoBaichuanOpenaccountRegistercodeSendAPIResponseModel +} + +// 百川发送注册验证码 成功返回结果 +type TaobaoBaichuanOpenaccountRegistercodeSendAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_openaccount_registercode_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // name + Name string `json:"name,omitempty" xml:"name,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountRegistercodeSendResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountRegistercodeSendResponse.go deleted file mode 100644 index 80229808ee..0000000000 --- a/model/baichuan/TaobaoBaichuanOpenaccountRegistercodeSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川发送注册验证码 API返回值 -taobao.baichuan.openaccount.registercode.send - -百川发送注册验证码 -*/ -type TaobaoBaichuanOpenaccountRegistercodeSendAPIResponse struct { - model.CommonResponse - TaobaoBaichuanOpenaccountRegistercodeSendResponse -} - -// 百川发送注册验证码 成功返回结果 -type TaobaoBaichuanOpenaccountRegistercodeSendResponse struct { - XMLName xml.Name `xml:"baichuan_openaccount_registercode_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // name - Name string `json:"name,omitempty" xml:"name,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountResetcodeCheckAPIRequest.go b/model/baichuan/TaobaoBaichuanOpenaccountResetcodeCheckAPIRequest.go new file mode 100644 index 0000000000..1cba6bc52a --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountResetcodeCheckAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川验证找回密码验证码 API请求 +taobao.baichuan.openaccount.resetcode.check + +百川验证找回密码验证码 +*/ +type TaobaoBaichuanOpenaccountResetcodeCheckAPIRequest struct { + model.Params + // name + _name string +} + +// 初始化TaobaoBaichuanOpenaccountResetcodeCheckAPIRequest对象 +func NewTaobaoBaichuanOpenaccountResetcodeCheckRequest() *TaobaoBaichuanOpenaccountResetcodeCheckAPIRequest{ + return &TaobaoBaichuanOpenaccountResetcodeCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanOpenaccountResetcodeCheckAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.openaccount.resetcode.check" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanOpenaccountResetcodeCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// name +func (r *TaobaoBaichuanOpenaccountResetcodeCheckAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoBaichuanOpenaccountResetcodeCheckAPIRequest) GetName() string { + return r._name +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountResetcodeCheckAPIResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountResetcodeCheckAPIResponse.go new file mode 100644 index 0000000000..982a2de293 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountResetcodeCheckAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川验证找回密码验证码 API返回值 +taobao.baichuan.openaccount.resetcode.check + +百川验证找回密码验证码 +*/ +type TaobaoBaichuanOpenaccountResetcodeCheckAPIResponse struct { + model.CommonResponse + TaobaoBaichuanOpenaccountResetcodeCheckAPIResponseModel +} + +// 百川验证找回密码验证码 成功返回结果 +type TaobaoBaichuanOpenaccountResetcodeCheckAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_openaccount_resetcode_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // name + Name string `json:"name,omitempty" xml:"name,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountResetcodeCheckResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountResetcodeCheckResponse.go deleted file mode 100644 index 471dc5ff71..0000000000 --- a/model/baichuan/TaobaoBaichuanOpenaccountResetcodeCheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川验证找回密码验证码 API返回值 -taobao.baichuan.openaccount.resetcode.check - -百川验证找回密码验证码 -*/ -type TaobaoBaichuanOpenaccountResetcodeCheckAPIResponse struct { - model.CommonResponse - TaobaoBaichuanOpenaccountResetcodeCheckResponse -} - -// 百川验证找回密码验证码 成功返回结果 -type TaobaoBaichuanOpenaccountResetcodeCheckResponse struct { - XMLName xml.Name `xml:"baichuan_openaccount_resetcode_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // name - Name string `json:"name,omitempty" xml:"name,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountResetcodeSendAPIRequest.go b/model/baichuan/TaobaoBaichuanOpenaccountResetcodeSendAPIRequest.go new file mode 100644 index 0000000000..cb16a160f8 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountResetcodeSendAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川发送找回密码验证码 API请求 +taobao.baichuan.openaccount.resetcode.send + +百川发送找回密码验证码 +*/ +type TaobaoBaichuanOpenaccountResetcodeSendAPIRequest struct { + model.Params + // name + _name string +} + +// 初始化TaobaoBaichuanOpenaccountResetcodeSendAPIRequest对象 +func NewTaobaoBaichuanOpenaccountResetcodeSendRequest() *TaobaoBaichuanOpenaccountResetcodeSendAPIRequest{ + return &TaobaoBaichuanOpenaccountResetcodeSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanOpenaccountResetcodeSendAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.openaccount.resetcode.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanOpenaccountResetcodeSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// name +func (r *TaobaoBaichuanOpenaccountResetcodeSendAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoBaichuanOpenaccountResetcodeSendAPIRequest) GetName() string { + return r._name +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountResetcodeSendAPIResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountResetcodeSendAPIResponse.go new file mode 100644 index 0000000000..c2fff2c11e --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOpenaccountResetcodeSendAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川发送找回密码验证码 API返回值 +taobao.baichuan.openaccount.resetcode.send + +百川发送找回密码验证码 +*/ +type TaobaoBaichuanOpenaccountResetcodeSendAPIResponse struct { + model.CommonResponse + TaobaoBaichuanOpenaccountResetcodeSendAPIResponseModel +} + +// 百川发送找回密码验证码 成功返回结果 +type TaobaoBaichuanOpenaccountResetcodeSendAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_openaccount_resetcode_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // name + Name string `json:"name,omitempty" xml:"name,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanOpenaccountResetcodeSendResponse.go b/model/baichuan/TaobaoBaichuanOpenaccountResetcodeSendResponse.go deleted file mode 100644 index 61aca69cfa..0000000000 --- a/model/baichuan/TaobaoBaichuanOpenaccountResetcodeSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川发送找回密码验证码 API返回值 -taobao.baichuan.openaccount.resetcode.send - -百川发送找回密码验证码 -*/ -type TaobaoBaichuanOpenaccountResetcodeSendAPIResponse struct { - model.CommonResponse - TaobaoBaichuanOpenaccountResetcodeSendResponse -} - -// 百川发送找回密码验证码 成功返回结果 -type TaobaoBaichuanOpenaccountResetcodeSendResponse struct { - XMLName xml.Name `xml:"baichuan_openaccount_resetcode_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // name - Name string `json:"name,omitempty" xml:"name,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanOrderurlGetAPIRequest.go b/model/baichuan/TaobaoBaichuanOrderurlGetAPIRequest.go new file mode 100644 index 0000000000..b9b4092c95 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOrderurlGetAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川订单详情 API请求 +taobao.baichuan.orderurl.get + +百川订单详情 +*/ +type TaobaoBaichuanOrderurlGetAPIRequest struct { + model.Params + // name + _name string +} + +// 初始化TaobaoBaichuanOrderurlGetAPIRequest对象 +func NewTaobaoBaichuanOrderurlGetRequest() *TaobaoBaichuanOrderurlGetAPIRequest{ + return &TaobaoBaichuanOrderurlGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanOrderurlGetAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.orderurl.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanOrderurlGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// name +func (r *TaobaoBaichuanOrderurlGetAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoBaichuanOrderurlGetAPIRequest) GetName() string { + return r._name +} diff --git a/model/baichuan/TaobaoBaichuanOrderurlGetAPIResponse.go b/model/baichuan/TaobaoBaichuanOrderurlGetAPIResponse.go new file mode 100644 index 0000000000..891e653ea3 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanOrderurlGetAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川订单详情 API返回值 +taobao.baichuan.orderurl.get + +百川订单详情 +*/ +type TaobaoBaichuanOrderurlGetAPIResponse struct { + model.CommonResponse + TaobaoBaichuanOrderurlGetAPIResponseModel +} + +// 百川订单详情 成功返回结果 +type TaobaoBaichuanOrderurlGetAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_orderurl_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // name + Name string `json:"name,omitempty" xml:"name,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanOrderurlGetResponse.go b/model/baichuan/TaobaoBaichuanOrderurlGetResponse.go deleted file mode 100644 index c594f1a322..0000000000 --- a/model/baichuan/TaobaoBaichuanOrderurlGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川订单详情 API返回值 -taobao.baichuan.orderurl.get - -百川订单详情 -*/ -type TaobaoBaichuanOrderurlGetAPIResponse struct { - model.CommonResponse - TaobaoBaichuanOrderurlGetResponse -} - -// 百川订单详情 成功返回结果 -type TaobaoBaichuanOrderurlGetResponse struct { - XMLName xml.Name `xml:"baichuan_orderurl_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // name - Name string `json:"name,omitempty" xml:"name,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanPayresultQueryAPIRequest.go b/model/baichuan/TaobaoBaichuanPayresultQueryAPIRequest.go new file mode 100644 index 0000000000..f389529d93 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanPayresultQueryAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川支付完成回调 API请求 +taobao.baichuan.payresult.query + +百川支付完成回调 +*/ +type TaobaoBaichuanPayresultQueryAPIRequest struct { + model.Params + // name + _name string +} + +// 初始化TaobaoBaichuanPayresultQueryAPIRequest对象 +func NewTaobaoBaichuanPayresultQueryRequest() *TaobaoBaichuanPayresultQueryAPIRequest{ + return &TaobaoBaichuanPayresultQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanPayresultQueryAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.payresult.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanPayresultQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// name +func (r *TaobaoBaichuanPayresultQueryAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoBaichuanPayresultQueryAPIRequest) GetName() string { + return r._name +} diff --git a/model/baichuan/TaobaoBaichuanPayresultQueryAPIResponse.go b/model/baichuan/TaobaoBaichuanPayresultQueryAPIResponse.go new file mode 100644 index 0000000000..cabae97d5c --- /dev/null +++ b/model/baichuan/TaobaoBaichuanPayresultQueryAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川支付完成回调 API返回值 +taobao.baichuan.payresult.query + +百川支付完成回调 +*/ +type TaobaoBaichuanPayresultQueryAPIResponse struct { + model.CommonResponse + TaobaoBaichuanPayresultQueryAPIResponseModel +} + +// 百川支付完成回调 成功返回结果 +type TaobaoBaichuanPayresultQueryAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_payresult_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // name + Name string `json:"name,omitempty" xml:"name,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanPayresultQueryResponse.go b/model/baichuan/TaobaoBaichuanPayresultQueryResponse.go deleted file mode 100644 index 5c878463d3..0000000000 --- a/model/baichuan/TaobaoBaichuanPayresultQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川支付完成回调 API返回值 -taobao.baichuan.payresult.query - -百川支付完成回调 -*/ -type TaobaoBaichuanPayresultQueryAPIResponse struct { - model.CommonResponse - TaobaoBaichuanPayresultQueryResponse -} - -// 百川支付完成回调 成功返回结果 -type TaobaoBaichuanPayresultQueryResponse struct { - XMLName xml.Name `xml:"baichuan_payresult_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // name - Name string `json:"name,omitempty" xml:"name,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanTaokeTraceAPIRequest.go b/model/baichuan/TaobaoBaichuanTaokeTraceAPIRequest.go new file mode 100644 index 0000000000..b21da2a81f --- /dev/null +++ b/model/baichuan/TaobaoBaichuanTaokeTraceAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川淘客打点 API请求 +taobao.baichuan.taoke.trace + +百川淘客打点 +*/ +type TaobaoBaichuanTaokeTraceAPIRequest struct { + model.Params + // name + _name string +} + +// 初始化TaobaoBaichuanTaokeTraceAPIRequest对象 +func NewTaobaoBaichuanTaokeTraceRequest() *TaobaoBaichuanTaokeTraceAPIRequest{ + return &TaobaoBaichuanTaokeTraceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanTaokeTraceAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.taoke.trace" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanTaokeTraceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// name +func (r *TaobaoBaichuanTaokeTraceAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoBaichuanTaokeTraceAPIRequest) GetName() string { + return r._name +} diff --git a/model/baichuan/TaobaoBaichuanTaokeTraceAPIResponse.go b/model/baichuan/TaobaoBaichuanTaokeTraceAPIResponse.go new file mode 100644 index 0000000000..f4c94842a9 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanTaokeTraceAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川淘客打点 API返回值 +taobao.baichuan.taoke.trace + +百川淘客打点 +*/ +type TaobaoBaichuanTaokeTraceAPIResponse struct { + model.CommonResponse + TaobaoBaichuanTaokeTraceAPIResponseModel +} + +// 百川淘客打点 成功返回结果 +type TaobaoBaichuanTaokeTraceAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_taoke_trace_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // name + Name string `json:"name,omitempty" xml:"name,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanTaokeTraceResponse.go b/model/baichuan/TaobaoBaichuanTaokeTraceResponse.go deleted file mode 100644 index b8e83eac0d..0000000000 --- a/model/baichuan/TaobaoBaichuanTaokeTraceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川淘客打点 API返回值 -taobao.baichuan.taoke.trace - -百川淘客打点 -*/ -type TaobaoBaichuanTaokeTraceAPIResponse struct { - model.CommonResponse - TaobaoBaichuanTaokeTraceResponse -} - -// 百川淘客打点 成功返回结果 -type TaobaoBaichuanTaokeTraceResponse struct { - XMLName xml.Name `xml:"baichuan_taoke_trace_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // name - Name string `json:"name,omitempty" xml:"name,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanUserLoginAPIRequest.go b/model/baichuan/TaobaoBaichuanUserLoginAPIRequest.go new file mode 100644 index 0000000000..18e9c3aa36 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanUserLoginAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川H5登录 API请求 +taobao.baichuan.user.login + +百川H5登录 +*/ +type TaobaoBaichuanUserLoginAPIRequest struct { + model.Params + // name + _name string +} + +// 初始化TaobaoBaichuanUserLoginAPIRequest对象 +func NewTaobaoBaichuanUserLoginRequest() *TaobaoBaichuanUserLoginAPIRequest{ + return &TaobaoBaichuanUserLoginAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanUserLoginAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.user.login" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanUserLoginAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// name +func (r *TaobaoBaichuanUserLoginAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoBaichuanUserLoginAPIRequest) GetName() string { + return r._name +} diff --git a/model/baichuan/TaobaoBaichuanUserLoginAPIResponse.go b/model/baichuan/TaobaoBaichuanUserLoginAPIResponse.go new file mode 100644 index 0000000000..449d47d92d --- /dev/null +++ b/model/baichuan/TaobaoBaichuanUserLoginAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川H5登录 API返回值 +taobao.baichuan.user.login + +百川H5登录 +*/ +type TaobaoBaichuanUserLoginAPIResponse struct { + model.CommonResponse + TaobaoBaichuanUserLoginAPIResponseModel +} + +// 百川H5登录 成功返回结果 +type TaobaoBaichuanUserLoginAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_user_login_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // name + Name string `json:"name,omitempty" xml:"name,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanUserLoginResponse.go b/model/baichuan/TaobaoBaichuanUserLoginResponse.go deleted file mode 100644 index d69537bc05..0000000000 --- a/model/baichuan/TaobaoBaichuanUserLoginResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川H5登录 API返回值 -taobao.baichuan.user.login - -百川H5登录 -*/ -type TaobaoBaichuanUserLoginAPIResponse struct { - model.CommonResponse - TaobaoBaichuanUserLoginResponse -} - -// 百川H5登录 成功返回结果 -type TaobaoBaichuanUserLoginResponse struct { - XMLName xml.Name `xml:"baichuan_user_login_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // name - Name string `json:"name,omitempty" xml:"name,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanUserLoginbytokenAPIRequest.go b/model/baichuan/TaobaoBaichuanUserLoginbytokenAPIRequest.go new file mode 100644 index 0000000000..a7312c3369 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanUserLoginbytokenAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川手淘信任登录 API请求 +taobao.baichuan.user.loginbytoken + +百川手淘信任登录 +*/ +type TaobaoBaichuanUserLoginbytokenAPIRequest struct { + model.Params + // name + _name string +} + +// 初始化TaobaoBaichuanUserLoginbytokenAPIRequest对象 +func NewTaobaoBaichuanUserLoginbytokenRequest() *TaobaoBaichuanUserLoginbytokenAPIRequest{ + return &TaobaoBaichuanUserLoginbytokenAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanUserLoginbytokenAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.user.loginbytoken" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanUserLoginbytokenAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// name +func (r *TaobaoBaichuanUserLoginbytokenAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoBaichuanUserLoginbytokenAPIRequest) GetName() string { + return r._name +} diff --git a/model/baichuan/TaobaoBaichuanUserLoginbytokenAPIResponse.go b/model/baichuan/TaobaoBaichuanUserLoginbytokenAPIResponse.go new file mode 100644 index 0000000000..deea4420f0 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanUserLoginbytokenAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川手淘信任登录 API返回值 +taobao.baichuan.user.loginbytoken + +百川手淘信任登录 +*/ +type TaobaoBaichuanUserLoginbytokenAPIResponse struct { + model.CommonResponse + TaobaoBaichuanUserLoginbytokenAPIResponseModel +} + +// 百川手淘信任登录 成功返回结果 +type TaobaoBaichuanUserLoginbytokenAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_user_loginbytoken_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // name + Name string `json:"name,omitempty" xml:"name,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanUserLoginbytokenResponse.go b/model/baichuan/TaobaoBaichuanUserLoginbytokenResponse.go deleted file mode 100644 index b8431b71f0..0000000000 --- a/model/baichuan/TaobaoBaichuanUserLoginbytokenResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川手淘信任登录 API返回值 -taobao.baichuan.user.loginbytoken - -百川手淘信任登录 -*/ -type TaobaoBaichuanUserLoginbytokenAPIResponse struct { - model.CommonResponse - TaobaoBaichuanUserLoginbytokenResponse -} - -// 百川手淘信任登录 成功返回结果 -type TaobaoBaichuanUserLoginbytokenResponse struct { - XMLName xml.Name `xml:"baichuan_user_loginbytoken_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // name - Name string `json:"name,omitempty" xml:"name,omitempty"` -} diff --git a/model/baichuan/TaobaoBaichuanUserLogindoublecheckAPIRequest.go b/model/baichuan/TaobaoBaichuanUserLogindoublecheckAPIRequest.go new file mode 100644 index 0000000000..c39f2aef07 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanUserLogindoublecheckAPIRequest.go @@ -0,0 +1,52 @@ +package baichuan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川H5登录二次验证 API请求 +taobao.baichuan.user.logindoublecheck + +百川H5登录二次验证 +*/ +type TaobaoBaichuanUserLogindoublecheckAPIRequest struct { + model.Params + // name + _name string +} + +// 初始化TaobaoBaichuanUserLogindoublecheckAPIRequest对象 +func NewTaobaoBaichuanUserLogindoublecheckRequest() *TaobaoBaichuanUserLogindoublecheckAPIRequest{ + return &TaobaoBaichuanUserLogindoublecheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaichuanUserLogindoublecheckAPIRequest) GetApiMethodName() string { + return "taobao.baichuan.user.logindoublecheck" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaichuanUserLogindoublecheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// name +func (r *TaobaoBaichuanUserLogindoublecheckAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoBaichuanUserLogindoublecheckAPIRequest) GetName() string { + return r._name +} diff --git a/model/baichuan/TaobaoBaichuanUserLogindoublecheckAPIResponse.go b/model/baichuan/TaobaoBaichuanUserLogindoublecheckAPIResponse.go new file mode 100644 index 0000000000..de083c8250 --- /dev/null +++ b/model/baichuan/TaobaoBaichuanUserLogindoublecheckAPIResponse.go @@ -0,0 +1,27 @@ +package baichuan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川H5登录二次验证 API返回值 +taobao.baichuan.user.logindoublecheck + +百川H5登录二次验证 +*/ +type TaobaoBaichuanUserLogindoublecheckAPIResponse struct { + model.CommonResponse + TaobaoBaichuanUserLogindoublecheckAPIResponseModel +} + +// 百川H5登录二次验证 成功返回结果 +type TaobaoBaichuanUserLogindoublecheckAPIResponseModel struct { + XMLName xml.Name `xml:"baichuan_user_logindoublecheck_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // name + Name string `json:"name,omitempty" xml:"name,omitempty"` +} diff --git a/model/baichuan/TaobaoBaichuanUserLogindoublecheckResponse.go b/model/baichuan/TaobaoBaichuanUserLogindoublecheckResponse.go deleted file mode 100644 index 45ea370284..0000000000 --- a/model/baichuan/TaobaoBaichuanUserLogindoublecheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川H5登录二次验证 API返回值 -taobao.baichuan.user.logindoublecheck - -百川H5登录二次验证 -*/ -type TaobaoBaichuanUserLogindoublecheckAPIResponse struct { - model.CommonResponse - TaobaoBaichuanUserLogindoublecheckResponse -} - -// 百川H5登录二次验证 成功返回结果 -type TaobaoBaichuanUserLogindoublecheckResponse struct { - XMLName xml.Name `xml:"baichuan_user_logindoublecheck_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // name - Name string `json:"name,omitempty" xml:"name,omitempty"` -} diff --git a/model/baichuanctg/AlibabaBaichuanCtgToutiaoContentAPIRequest.go b/model/baichuanctg/AlibabaBaichuanCtgToutiaoContentAPIRequest.go new file mode 100644 index 0000000000..16655c1397 --- /dev/null +++ b/model/baichuanctg/AlibabaBaichuanCtgToutiaoContentAPIRequest.go @@ -0,0 +1,52 @@ +package baichuanctg + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +微博输出头条数据 API请求 +alibaba.baichuan.ctg.toutiao.content + +百川头条内容获取 +*/ +type AlibabaBaichuanCtgToutiaoContentAPIRequest struct { + model.Params + // param0 + _param0 *CtgRequest +} + +// 初始化AlibabaBaichuanCtgToutiaoContentAPIRequest对象 +func NewAlibabaBaichuanCtgToutiaoContentRequest() *AlibabaBaichuanCtgToutiaoContentAPIRequest{ + return &AlibabaBaichuanCtgToutiaoContentAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaBaichuanCtgToutiaoContentAPIRequest) GetApiMethodName() string { + return "alibaba.baichuan.ctg.toutiao.content" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaBaichuanCtgToutiaoContentAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// param0 +func (r *AlibabaBaichuanCtgToutiaoContentAPIRequest) SetParam0(_param0 *CtgRequest) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaBaichuanCtgToutiaoContentAPIRequest) GetParam0() *CtgRequest { + return r._param0 +} diff --git a/model/baichuanctg/AlibabaBaichuanCtgToutiaoContentAPIResponse.go b/model/baichuanctg/AlibabaBaichuanCtgToutiaoContentAPIResponse.go new file mode 100644 index 0000000000..36cc029e76 --- /dev/null +++ b/model/baichuanctg/AlibabaBaichuanCtgToutiaoContentAPIResponse.go @@ -0,0 +1,27 @@ +package baichuanctg + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +微博输出头条数据 API返回值 +alibaba.baichuan.ctg.toutiao.content + +百川头条内容获取 +*/ +type AlibabaBaichuanCtgToutiaoContentAPIResponse struct { + model.CommonResponse + AlibabaBaichuanCtgToutiaoContentAPIResponseModel +} + +// 微博输出头条数据 成功返回结果 +type AlibabaBaichuanCtgToutiaoContentAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_baichuan_ctg_toutiao_content_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 内容总体结构 + Result *CtgResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baichuanctg/AlibabaBaichuanCtgToutiaoContentResponse.go b/model/baichuanctg/AlibabaBaichuanCtgToutiaoContentResponse.go deleted file mode 100644 index 6521b977f9..0000000000 --- a/model/baichuanctg/AlibabaBaichuanCtgToutiaoContentResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baichuanctg - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -微博输出头条数据 API返回值 -alibaba.baichuan.ctg.toutiao.content - -百川头条内容获取 -*/ -type AlibabaBaichuanCtgToutiaoContentAPIResponse struct { - model.CommonResponse - AlibabaBaichuanCtgToutiaoContentResponse -} - -// 微博输出头条数据 成功返回结果 -type AlibabaBaichuanCtgToutiaoContentResponse struct { - XMLName xml.Name `xml:"alibaba_baichuan_ctg_toutiao_content_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 内容总体结构 - Result *CtgResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baodian/TaobaoBaodianDepositGetAPIRequest.go b/model/baodian/TaobaoBaodianDepositGetAPIRequest.go new file mode 100644 index 0000000000..4d14805090 --- /dev/null +++ b/model/baodian/TaobaoBaodianDepositGetAPIRequest.go @@ -0,0 +1,38 @@ +package baodian + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +宝点用户帐户查询(已迁移) API请求 +taobao.baodian.deposit.get + +查询用户宝点帐户信息及当前宝点价格 +*/ +type TaobaoBaodianDepositGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoBaodianDepositGetAPIRequest对象 +func NewTaobaoBaodianDepositGetRequest() *TaobaoBaodianDepositGetAPIRequest{ + return &TaobaoBaodianDepositGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaodianDepositGetAPIRequest) GetApiMethodName() string { + return "taobao.baodian.deposit.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaodianDepositGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/baodian/TaobaoBaodianDepositGetAPIResponse.go b/model/baodian/TaobaoBaodianDepositGetAPIResponse.go new file mode 100644 index 0000000000..c3ed3ca160 --- /dev/null +++ b/model/baodian/TaobaoBaodianDepositGetAPIResponse.go @@ -0,0 +1,27 @@ +package baodian + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +宝点用户帐户查询(已迁移) API返回值 +taobao.baodian.deposit.get + +查询用户宝点帐户信息及当前宝点价格 +*/ +type TaobaoBaodianDepositGetAPIResponse struct { + model.CommonResponse + TaobaoBaodianDepositGetAPIResponseModel +} + +// 宝点用户帐户查询(已迁移) 成功返回结果 +type TaobaoBaodianDepositGetAPIResponseModel struct { + XMLName xml.Name `xml:"baodian_deposit_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 用户宝点帐户信息 + UserCoinDeposit *UserCoinDeposit `json:"user_coin_deposit,omitempty" xml:"user_coin_deposit,omitempty"` +} diff --git a/model/baodian/TaobaoBaodianDepositGetResponse.go b/model/baodian/TaobaoBaodianDepositGetResponse.go deleted file mode 100644 index a41f48acf0..0000000000 --- a/model/baodian/TaobaoBaodianDepositGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baodian - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -宝点用户帐户查询(已迁移) API返回值 -taobao.baodian.deposit.get - -查询用户宝点帐户信息及当前宝点价格 -*/ -type TaobaoBaodianDepositGetAPIResponse struct { - model.CommonResponse - TaobaoBaodianDepositGetResponse -} - -// 宝点用户帐户查询(已迁移) 成功返回结果 -type TaobaoBaodianDepositGetResponse struct { - XMLName xml.Name `xml:"baodian_deposit_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 用户宝点帐户信息 - UserCoinDeposit *UserCoinDeposit `json:"user_coin_deposit,omitempty" xml:"user_coin_deposit,omitempty"` -} diff --git a/model/baodian/TaobaoBaodianDepositGetWithSdkversionAPIRequest.go b/model/baodian/TaobaoBaodianDepositGetWithSdkversionAPIRequest.go new file mode 100644 index 0000000000..c9bc7c8ca9 --- /dev/null +++ b/model/baodian/TaobaoBaodianDepositGetWithSdkversionAPIRequest.go @@ -0,0 +1,80 @@ +package baodian + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询用户宝点信息(带sdk版本,已迁移) API请求 +taobao.baodian.deposit.get.with.sdkversion + +获取用户宝点信息(带sdk版本,已迁移) +*/ +type TaobaoBaodianDepositGetWithSdkversionAPIRequest struct { + model.Params + // 设备型号 + _deviceModel string + // uuid + _uuid string + // sdk版本 + _sdkVersion string +} + +// 初始化TaobaoBaodianDepositGetWithSdkversionAPIRequest对象 +func NewTaobaoBaodianDepositGetWithSdkversionRequest() *TaobaoBaodianDepositGetWithSdkversionAPIRequest{ + return &TaobaoBaodianDepositGetWithSdkversionAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaodianDepositGetWithSdkversionAPIRequest) GetApiMethodName() string { + return "taobao.baodian.deposit.get.with.sdkversion" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaodianDepositGetWithSdkversionAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceModel Setter +// 设备型号 +func (r *TaobaoBaodianDepositGetWithSdkversionAPIRequest) SetDeviceModel(_deviceModel string) error { + r._deviceModel = _deviceModel + r.Set("device_model", _deviceModel) + return nil +} + +// DeviceModel Getter +func (r TaobaoBaodianDepositGetWithSdkversionAPIRequest) GetDeviceModel() string { + return r._deviceModel +} +// Uuid Setter +// uuid +func (r *TaobaoBaodianDepositGetWithSdkversionAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r TaobaoBaodianDepositGetWithSdkversionAPIRequest) GetUuid() string { + return r._uuid +} +// SdkVersion Setter +// sdk版本 +func (r *TaobaoBaodianDepositGetWithSdkversionAPIRequest) SetSdkVersion(_sdkVersion string) error { + r._sdkVersion = _sdkVersion + r.Set("sdk_version", _sdkVersion) + return nil +} + +// SdkVersion Getter +func (r TaobaoBaodianDepositGetWithSdkversionAPIRequest) GetSdkVersion() string { + return r._sdkVersion +} diff --git a/model/baodian/TaobaoBaodianDepositGetWithSdkversionAPIResponse.go b/model/baodian/TaobaoBaodianDepositGetWithSdkversionAPIResponse.go new file mode 100644 index 0000000000..5d078948e6 --- /dev/null +++ b/model/baodian/TaobaoBaodianDepositGetWithSdkversionAPIResponse.go @@ -0,0 +1,27 @@ +package baodian + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询用户宝点信息(带sdk版本,已迁移) API返回值 +taobao.baodian.deposit.get.with.sdkversion + +获取用户宝点信息(带sdk版本,已迁移) +*/ +type TaobaoBaodianDepositGetWithSdkversionAPIResponse struct { + model.CommonResponse + TaobaoBaodianDepositGetWithSdkversionAPIResponseModel +} + +// 查询用户宝点信息(带sdk版本,已迁移) 成功返回结果 +type TaobaoBaodianDepositGetWithSdkversionAPIResponseModel struct { + XMLName xml.Name `xml:"baodian_deposit_get_with_sdkversion_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结构体 + Result *CoinUserDepositV2 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baodian/TaobaoBaodianDepositGetWithSdkversionResponse.go b/model/baodian/TaobaoBaodianDepositGetWithSdkversionResponse.go deleted file mode 100644 index fec544ea9f..0000000000 --- a/model/baodian/TaobaoBaodianDepositGetWithSdkversionResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baodian - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询用户宝点信息(带sdk版本,已迁移) API返回值 -taobao.baodian.deposit.get.with.sdkversion - -获取用户宝点信息(带sdk版本,已迁移) -*/ -type TaobaoBaodianDepositGetWithSdkversionAPIResponse struct { - model.CommonResponse - TaobaoBaodianDepositGetWithSdkversionResponse -} - -// 查询用户宝点信息(带sdk版本,已迁移) 成功返回结果 -type TaobaoBaodianDepositGetWithSdkversionResponse struct { - XMLName xml.Name `xml:"baodian_deposit_get_with_sdkversion_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结构体 - Result *CoinUserDepositV2 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baodian/TaobaoBaodianServerDateGetAPIRequest.go b/model/baodian/TaobaoBaodianServerDateGetAPIRequest.go new file mode 100644 index 0000000000..c522daaf2d --- /dev/null +++ b/model/baodian/TaobaoBaodianServerDateGetAPIRequest.go @@ -0,0 +1,38 @@ +package baodian + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务器时间获取 API请求 +taobao.baodian.server.date.get + +获取服务器时间 +*/ +type TaobaoBaodianServerDateGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoBaodianServerDateGetAPIRequest对象 +func NewTaobaoBaodianServerDateGetRequest() *TaobaoBaodianServerDateGetAPIRequest{ + return &TaobaoBaodianServerDateGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaodianServerDateGetAPIRequest) GetApiMethodName() string { + return "taobao.baodian.server.date.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaodianServerDateGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/baodian/TaobaoBaodianServerDateGetAPIResponse.go b/model/baodian/TaobaoBaodianServerDateGetAPIResponse.go new file mode 100644 index 0000000000..597aca8897 --- /dev/null +++ b/model/baodian/TaobaoBaodianServerDateGetAPIResponse.go @@ -0,0 +1,27 @@ +package baodian + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务器时间获取 API返回值 +taobao.baodian.server.date.get + +获取服务器时间 +*/ +type TaobaoBaodianServerDateGetAPIResponse struct { + model.CommonResponse + TaobaoBaodianServerDateGetAPIResponseModel +} + +// 服务器时间获取 成功返回结果 +type TaobaoBaodianServerDateGetAPIResponseModel struct { + XMLName xml.Name `xml:"baodian_server_date_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回时间为毫秒 + ServerDate int64 `json:"server_date,omitempty" xml:"server_date,omitempty"` +} diff --git a/model/baodian/TaobaoBaodianServerDateGetResponse.go b/model/baodian/TaobaoBaodianServerDateGetResponse.go deleted file mode 100644 index 97bd01e295..0000000000 --- a/model/baodian/TaobaoBaodianServerDateGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baodian - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务器时间获取 API返回值 -taobao.baodian.server.date.get - -获取服务器时间 -*/ -type TaobaoBaodianServerDateGetAPIResponse struct { - model.CommonResponse - TaobaoBaodianServerDateGetResponse -} - -// 服务器时间获取 成功返回结果 -type TaobaoBaodianServerDateGetResponse struct { - XMLName xml.Name `xml:"baodian_server_date_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回时间为毫秒 - ServerDate int64 `json:"server_date,omitempty" xml:"server_date,omitempty"` -} diff --git a/model/baodian/TaobaoBaodianServerSdkConfigGetAPIRequest.go b/model/baodian/TaobaoBaodianServerSdkConfigGetAPIRequest.go new file mode 100644 index 0000000000..c47050b6e9 --- /dev/null +++ b/model/baodian/TaobaoBaodianServerSdkConfigGetAPIRequest.go @@ -0,0 +1,94 @@ +package baodian + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取宝点SDK的配置项(已迁移) API请求 +taobao.baodian.server.sdk.config.get + +获取SDK各种配置项(已迁移) +*/ +type TaobaoBaodianServerSdkConfigGetAPIRequest struct { + model.Params + // appKey + _appkey string + // 渠道 + _channel string + // sdk版本号 + _sdkVer string + // 与后端约定 + _type int64 +} + +// 初始化TaobaoBaodianServerSdkConfigGetAPIRequest对象 +func NewTaobaoBaodianServerSdkConfigGetRequest() *TaobaoBaodianServerSdkConfigGetAPIRequest{ + return &TaobaoBaodianServerSdkConfigGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaodianServerSdkConfigGetAPIRequest) GetApiMethodName() string { + return "taobao.baodian.server.sdk.config.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaodianServerSdkConfigGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Appkey Setter +// appKey +func (r *TaobaoBaodianServerSdkConfigGetAPIRequest) SetAppkey(_appkey string) error { + r._appkey = _appkey + r.Set("appkey", _appkey) + return nil +} + +// Appkey Getter +func (r TaobaoBaodianServerSdkConfigGetAPIRequest) GetAppkey() string { + return r._appkey +} +// Channel Setter +// 渠道 +func (r *TaobaoBaodianServerSdkConfigGetAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r TaobaoBaodianServerSdkConfigGetAPIRequest) GetChannel() string { + return r._channel +} +// SdkVer Setter +// sdk版本号 +func (r *TaobaoBaodianServerSdkConfigGetAPIRequest) SetSdkVer(_sdkVer string) error { + r._sdkVer = _sdkVer + r.Set("sdk_ver", _sdkVer) + return nil +} + +// SdkVer Getter +func (r TaobaoBaodianServerSdkConfigGetAPIRequest) GetSdkVer() string { + return r._sdkVer +} +// Type Setter +// 与后端约定 +func (r *TaobaoBaodianServerSdkConfigGetAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoBaodianServerSdkConfigGetAPIRequest) GetType() int64 { + return r._type +} diff --git a/model/baodian/TaobaoBaodianServerSdkConfigGetAPIResponse.go b/model/baodian/TaobaoBaodianServerSdkConfigGetAPIResponse.go new file mode 100644 index 0000000000..0d517b7189 --- /dev/null +++ b/model/baodian/TaobaoBaodianServerSdkConfigGetAPIResponse.go @@ -0,0 +1,27 @@ +package baodian + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取宝点SDK的配置项(已迁移) API返回值 +taobao.baodian.server.sdk.config.get + +获取SDK各种配置项(已迁移) +*/ +type TaobaoBaodianServerSdkConfigGetAPIResponse struct { + model.CommonResponse + TaobaoBaodianServerSdkConfigGetAPIResponseModel +} + +// 获取宝点SDK的配置项(已迁移) 成功返回结果 +type TaobaoBaodianServerSdkConfigGetAPIResponseModel struct { + XMLName xml.Name `xml:"baodian_server_sdk_config_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回sdk配置的字符串 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baodian/TaobaoBaodianServerSdkConfigGetResponse.go b/model/baodian/TaobaoBaodianServerSdkConfigGetResponse.go deleted file mode 100644 index 6788e12ded..0000000000 --- a/model/baodian/TaobaoBaodianServerSdkConfigGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baodian - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取宝点SDK的配置项(已迁移) API返回值 -taobao.baodian.server.sdk.config.get - -获取SDK各种配置项(已迁移) -*/ -type TaobaoBaodianServerSdkConfigGetAPIResponse struct { - model.CommonResponse - TaobaoBaodianServerSdkConfigGetResponse -} - -// 获取宝点SDK的配置项(已迁移) 成功返回结果 -type TaobaoBaodianServerSdkConfigGetResponse struct { - XMLName xml.Name `xml:"baodian_server_sdk_config_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回sdk配置的字符串 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baodian/TaobaoDegUserGamegiftQueryAPIRequest.go b/model/baodian/TaobaoDegUserGamegiftQueryAPIRequest.go new file mode 100644 index 0000000000..6a212d0457 --- /dev/null +++ b/model/baodian/TaobaoDegUserGamegiftQueryAPIRequest.go @@ -0,0 +1,66 @@ +package baodian + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户数娱游戏礼包查询 API请求 +taobao.deg.user.gamegift.query + +查询用户数娱礼包列表 +*/ +type TaobaoDegUserGamegiftQueryAPIRequest struct { + model.Params + // 状态,1为待发放,2为已发放,3为过期 + _status int64 + // cp item id列表 + _cpItemIds []string +} + +// 初始化TaobaoDegUserGamegiftQueryAPIRequest对象 +func NewTaobaoDegUserGamegiftQueryRequest() *TaobaoDegUserGamegiftQueryAPIRequest{ + return &TaobaoDegUserGamegiftQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDegUserGamegiftQueryAPIRequest) GetApiMethodName() string { + return "taobao.deg.user.gamegift.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDegUserGamegiftQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Status Setter +// 状态,1为待发放,2为已发放,3为过期 +func (r *TaobaoDegUserGamegiftQueryAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoDegUserGamegiftQueryAPIRequest) GetStatus() int64 { + return r._status +} +// CpItemIds Setter +// cp item id列表 +func (r *TaobaoDegUserGamegiftQueryAPIRequest) SetCpItemIds(_cpItemIds []string) error { + r._cpItemIds = _cpItemIds + r.Set("cp_item_ids", _cpItemIds) + return nil +} + +// CpItemIds Getter +func (r TaobaoDegUserGamegiftQueryAPIRequest) GetCpItemIds() []string { + return r._cpItemIds +} diff --git a/model/baodian/TaobaoDegUserGamegiftQueryAPIResponse.go b/model/baodian/TaobaoDegUserGamegiftQueryAPIResponse.go new file mode 100644 index 0000000000..01cf8095f3 --- /dev/null +++ b/model/baodian/TaobaoDegUserGamegiftQueryAPIResponse.go @@ -0,0 +1,27 @@ +package baodian + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户数娱游戏礼包查询 API返回值 +taobao.deg.user.gamegift.query + +查询用户数娱礼包列表 +*/ +type TaobaoDegUserGamegiftQueryAPIResponse struct { + model.CommonResponse + TaobaoDegUserGamegiftQueryAPIResponseModel +} + +// 用户数娱游戏礼包查询 成功返回结果 +type TaobaoDegUserGamegiftQueryAPIResponseModel struct { + XMLName xml.Name `xml:"deg_user_gamegift_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 礼包信息 + Records []GameGiftRecordDto `json:"records,omitempty" xml:"records>game_gift_record_dto,omitempty"` +} diff --git a/model/baodian/TaobaoDegUserGamegiftQueryResponse.go b/model/baodian/TaobaoDegUserGamegiftQueryResponse.go deleted file mode 100644 index 3565a57d74..0000000000 --- a/model/baodian/TaobaoDegUserGamegiftQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baodian - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户数娱游戏礼包查询 API返回值 -taobao.deg.user.gamegift.query - -查询用户数娱礼包列表 -*/ -type TaobaoDegUserGamegiftQueryAPIResponse struct { - model.CommonResponse - TaobaoDegUserGamegiftQueryResponse -} - -// 用户数娱游戏礼包查询 成功返回结果 -type TaobaoDegUserGamegiftQueryResponse struct { - XMLName xml.Name `xml:"deg_user_gamegift_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 礼包信息 - Records []GameGiftRecordDto `json:"records,omitempty" xml:"records>game_gift_record_dto,omitempty"` -} diff --git a/model/baoxian/AlipayBaoxianClaimReturngoodsstatusUpdateAPIRequest.go b/model/baoxian/AlipayBaoxianClaimReturngoodsstatusUpdateAPIRequest.go new file mode 100644 index 0000000000..76f39d0ba4 --- /dev/null +++ b/model/baoxian/AlipayBaoxianClaimReturngoodsstatusUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package baoxian + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新理赔单退货货物状态 API请求 +alipay.baoxian.claim.returngoodsstatus.update + +更新理赔单退货货物状态 +*/ +type AlipayBaoxianClaimReturngoodsstatusUpdateAPIRequest struct { + model.Params + // 理赔单号 + _claimNo string + // 退货货物状态 + _goodsStatus string +} + +// 初始化AlipayBaoxianClaimReturngoodsstatusUpdateAPIRequest对象 +func NewAlipayBaoxianClaimReturngoodsstatusUpdateRequest() *AlipayBaoxianClaimReturngoodsstatusUpdateAPIRequest{ + return &AlipayBaoxianClaimReturngoodsstatusUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlipayBaoxianClaimReturngoodsstatusUpdateAPIRequest) GetApiMethodName() string { + return "alipay.baoxian.claim.returngoodsstatus.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlipayBaoxianClaimReturngoodsstatusUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ClaimNo Setter +// 理赔单号 +func (r *AlipayBaoxianClaimReturngoodsstatusUpdateAPIRequest) SetClaimNo(_claimNo string) error { + r._claimNo = _claimNo + r.Set("claim_no", _claimNo) + return nil +} + +// ClaimNo Getter +func (r AlipayBaoxianClaimReturngoodsstatusUpdateAPIRequest) GetClaimNo() string { + return r._claimNo +} +// GoodsStatus Setter +// 退货货物状态 +func (r *AlipayBaoxianClaimReturngoodsstatusUpdateAPIRequest) SetGoodsStatus(_goodsStatus string) error { + r._goodsStatus = _goodsStatus + r.Set("goods_status", _goodsStatus) + return nil +} + +// GoodsStatus Getter +func (r AlipayBaoxianClaimReturngoodsstatusUpdateAPIRequest) GetGoodsStatus() string { + return r._goodsStatus +} diff --git a/model/baoxian/AlipayBaoxianClaimReturngoodsstatusUpdateAPIResponse.go b/model/baoxian/AlipayBaoxianClaimReturngoodsstatusUpdateAPIResponse.go new file mode 100644 index 0000000000..989b612242 --- /dev/null +++ b/model/baoxian/AlipayBaoxianClaimReturngoodsstatusUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package baoxian + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新理赔单退货货物状态 API返回值 +alipay.baoxian.claim.returngoodsstatus.update + +更新理赔单退货货物状态 +*/ +type AlipayBaoxianClaimReturngoodsstatusUpdateAPIResponse struct { + model.CommonResponse + AlipayBaoxianClaimReturngoodsstatusUpdateAPIResponseModel +} + +// 更新理赔单退货货物状态 成功返回结果 +type AlipayBaoxianClaimReturngoodsstatusUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alipay_baoxian_claim_returngoodsstatus_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlipayBaoxianClaimReturngoodsstatusUpdateMtopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baoxian/AlipayBaoxianClaimReturngoodsstatusUpdateResponse.go b/model/baoxian/AlipayBaoxianClaimReturngoodsstatusUpdateResponse.go deleted file mode 100644 index 5b029cf493..0000000000 --- a/model/baoxian/AlipayBaoxianClaimReturngoodsstatusUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baoxian - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新理赔单退货货物状态 API返回值 -alipay.baoxian.claim.returngoodsstatus.update - -更新理赔单退货货物状态 -*/ -type AlipayBaoxianClaimReturngoodsstatusUpdateAPIResponse struct { - model.CommonResponse - AlipayBaoxianClaimReturngoodsstatusUpdateResponse -} - -// 更新理赔单退货货物状态 成功返回结果 -type AlipayBaoxianClaimReturngoodsstatusUpdateResponse struct { - XMLName xml.Name `xml:"alipay_baoxian_claim_returngoodsstatus_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlipayBaoxianClaimReturngoodsstatusUpdateMtopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baoxian/AlipayBaoxianClaimSurveyConclusionSubmitAPIRequest.go b/model/baoxian/AlipayBaoxianClaimSurveyConclusionSubmitAPIRequest.go new file mode 100644 index 0000000000..2d552c83f4 --- /dev/null +++ b/model/baoxian/AlipayBaoxianClaimSurveyConclusionSubmitAPIRequest.go @@ -0,0 +1,52 @@ +package baoxian + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +保险退货服务商勘察结论提交接口 API请求 +alipay.baoxian.claim.survey.conclusion.submit + +保险退货服务商提交勘察结论 +*/ +type AlipayBaoxianClaimSurveyConclusionSubmitAPIRequest struct { + model.Params + // 勘察结论 + _facilitatorSurveyConclusions []InsFacilitatorSurveyConclusionDto +} + +// 初始化AlipayBaoxianClaimSurveyConclusionSubmitAPIRequest对象 +func NewAlipayBaoxianClaimSurveyConclusionSubmitRequest() *AlipayBaoxianClaimSurveyConclusionSubmitAPIRequest{ + return &AlipayBaoxianClaimSurveyConclusionSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlipayBaoxianClaimSurveyConclusionSubmitAPIRequest) GetApiMethodName() string { + return "alipay.baoxian.claim.survey.conclusion.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlipayBaoxianClaimSurveyConclusionSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FacilitatorSurveyConclusions Setter +// 勘察结论 +func (r *AlipayBaoxianClaimSurveyConclusionSubmitAPIRequest) SetFacilitatorSurveyConclusions(_facilitatorSurveyConclusions []InsFacilitatorSurveyConclusionDto) error { + r._facilitatorSurveyConclusions = _facilitatorSurveyConclusions + r.Set("facilitator_survey_conclusions", _facilitatorSurveyConclusions) + return nil +} + +// FacilitatorSurveyConclusions Getter +func (r AlipayBaoxianClaimSurveyConclusionSubmitAPIRequest) GetFacilitatorSurveyConclusions() []InsFacilitatorSurveyConclusionDto { + return r._facilitatorSurveyConclusions +} diff --git a/model/baoxian/AlipayBaoxianClaimSurveyConclusionSubmitAPIResponse.go b/model/baoxian/AlipayBaoxianClaimSurveyConclusionSubmitAPIResponse.go new file mode 100644 index 0000000000..70a453286b --- /dev/null +++ b/model/baoxian/AlipayBaoxianClaimSurveyConclusionSubmitAPIResponse.go @@ -0,0 +1,27 @@ +package baoxian + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +保险退货服务商勘察结论提交接口 API返回值 +alipay.baoxian.claim.survey.conclusion.submit + +保险退货服务商提交勘察结论 +*/ +type AlipayBaoxianClaimSurveyConclusionSubmitAPIResponse struct { + model.CommonResponse + AlipayBaoxianClaimSurveyConclusionSubmitAPIResponseModel +} + +// 保险退货服务商勘察结论提交接口 成功返回结果 +type AlipayBaoxianClaimSurveyConclusionSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"alipay_baoxian_claim_survey_conclusion_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *AliSceneResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baoxian/AlipayBaoxianClaimSurveyConclusionSubmitResponse.go b/model/baoxian/AlipayBaoxianClaimSurveyConclusionSubmitResponse.go deleted file mode 100644 index 76be01a826..0000000000 --- a/model/baoxian/AlipayBaoxianClaimSurveyConclusionSubmitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baoxian - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -保险退货服务商勘察结论提交接口 API返回值 -alipay.baoxian.claim.survey.conclusion.submit - -保险退货服务商提交勘察结论 -*/ -type AlipayBaoxianClaimSurveyConclusionSubmitAPIResponse struct { - model.CommonResponse - AlipayBaoxianClaimSurveyConclusionSubmitResponse -} - -// 保险退货服务商勘察结论提交接口 成功返回结果 -type AlipayBaoxianClaimSurveyConclusionSubmitResponse struct { - XMLName xml.Name `xml:"alipay_baoxian_claim_survey_conclusion_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *AliSceneResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baoxian/AlipayBaoxianClaimUpdateAPIRequest.go b/model/baoxian/AlipayBaoxianClaimUpdateAPIRequest.go new file mode 100644 index 0000000000..e54b25c4d8 --- /dev/null +++ b/model/baoxian/AlipayBaoxianClaimUpdateAPIRequest.go @@ -0,0 +1,178 @@ +package baoxian + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新赔案 API请求 +alipay.baoxian.claim.update + +更新保险理赔单 +*/ +type AlipayBaoxianClaimUpdateAPIRequest struct { + model.Params + // 业务数据 + _bizData string + // 进度列表 + _progressList []string + // 附件列表 + _claimAttachments []ClaimAttachment + // 保单业务单号 + _policyBizNo string + // 外部业务单号 + _outBizNo string + // 业务来源 + _bizSource string + // 理赔金额(单位为分) + _claimFee int64 + // 理赔单号 + _claimNo string + // 理赔外部业务单号 + _claimOutBizNo string + // 标准产品ID + _spNo string +} + +// 初始化AlipayBaoxianClaimUpdateAPIRequest对象 +func NewAlipayBaoxianClaimUpdateRequest() *AlipayBaoxianClaimUpdateAPIRequest{ + return &AlipayBaoxianClaimUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlipayBaoxianClaimUpdateAPIRequest) GetApiMethodName() string { + return "alipay.baoxian.claim.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlipayBaoxianClaimUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizData Setter +// 业务数据 +func (r *AlipayBaoxianClaimUpdateAPIRequest) SetBizData(_bizData string) error { + r._bizData = _bizData + r.Set("biz_data", _bizData) + return nil +} + +// BizData Getter +func (r AlipayBaoxianClaimUpdateAPIRequest) GetBizData() string { + return r._bizData +} +// ProgressList Setter +// 进度列表 +func (r *AlipayBaoxianClaimUpdateAPIRequest) SetProgressList(_progressList []string) error { + r._progressList = _progressList + r.Set("progress_list", _progressList) + return nil +} + +// ProgressList Getter +func (r AlipayBaoxianClaimUpdateAPIRequest) GetProgressList() []string { + return r._progressList +} +// ClaimAttachments Setter +// 附件列表 +func (r *AlipayBaoxianClaimUpdateAPIRequest) SetClaimAttachments(_claimAttachments []ClaimAttachment) error { + r._claimAttachments = _claimAttachments + r.Set("claim_attachments", _claimAttachments) + return nil +} + +// ClaimAttachments Getter +func (r AlipayBaoxianClaimUpdateAPIRequest) GetClaimAttachments() []ClaimAttachment { + return r._claimAttachments +} +// PolicyBizNo Setter +// 保单业务单号 +func (r *AlipayBaoxianClaimUpdateAPIRequest) SetPolicyBizNo(_policyBizNo string) error { + r._policyBizNo = _policyBizNo + r.Set("policy_biz_no", _policyBizNo) + return nil +} + +// PolicyBizNo Getter +func (r AlipayBaoxianClaimUpdateAPIRequest) GetPolicyBizNo() string { + return r._policyBizNo +} +// OutBizNo Setter +// 外部业务单号 +func (r *AlipayBaoxianClaimUpdateAPIRequest) SetOutBizNo(_outBizNo string) error { + r._outBizNo = _outBizNo + r.Set("out_biz_no", _outBizNo) + return nil +} + +// OutBizNo Getter +func (r AlipayBaoxianClaimUpdateAPIRequest) GetOutBizNo() string { + return r._outBizNo +} +// BizSource Setter +// 业务来源 +func (r *AlipayBaoxianClaimUpdateAPIRequest) SetBizSource(_bizSource string) error { + r._bizSource = _bizSource + r.Set("biz_source", _bizSource) + return nil +} + +// BizSource Getter +func (r AlipayBaoxianClaimUpdateAPIRequest) GetBizSource() string { + return r._bizSource +} +// ClaimFee Setter +// 理赔金额(单位为分) +func (r *AlipayBaoxianClaimUpdateAPIRequest) SetClaimFee(_claimFee int64) error { + r._claimFee = _claimFee + r.Set("claim_fee", _claimFee) + return nil +} + +// ClaimFee Getter +func (r AlipayBaoxianClaimUpdateAPIRequest) GetClaimFee() int64 { + return r._claimFee +} +// ClaimNo Setter +// 理赔单号 +func (r *AlipayBaoxianClaimUpdateAPIRequest) SetClaimNo(_claimNo string) error { + r._claimNo = _claimNo + r.Set("claim_no", _claimNo) + return nil +} + +// ClaimNo Getter +func (r AlipayBaoxianClaimUpdateAPIRequest) GetClaimNo() string { + return r._claimNo +} +// ClaimOutBizNo Setter +// 理赔外部业务单号 +func (r *AlipayBaoxianClaimUpdateAPIRequest) SetClaimOutBizNo(_claimOutBizNo string) error { + r._claimOutBizNo = _claimOutBizNo + r.Set("claim_out_biz_no", _claimOutBizNo) + return nil +} + +// ClaimOutBizNo Getter +func (r AlipayBaoxianClaimUpdateAPIRequest) GetClaimOutBizNo() string { + return r._claimOutBizNo +} +// SpNo Setter +// 标准产品ID +func (r *AlipayBaoxianClaimUpdateAPIRequest) SetSpNo(_spNo string) error { + r._spNo = _spNo + r.Set("sp_no", _spNo) + return nil +} + +// SpNo Getter +func (r AlipayBaoxianClaimUpdateAPIRequest) GetSpNo() string { + return r._spNo +} diff --git a/model/baoxian/AlipayBaoxianClaimUpdateAPIResponse.go b/model/baoxian/AlipayBaoxianClaimUpdateAPIResponse.go new file mode 100644 index 0000000000..d40be914df --- /dev/null +++ b/model/baoxian/AlipayBaoxianClaimUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package baoxian + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新赔案 API返回值 +alipay.baoxian.claim.update + +更新保险理赔单 +*/ +type AlipayBaoxianClaimUpdateAPIResponse struct { + model.CommonResponse + AlipayBaoxianClaimUpdateAPIResponseModel +} + +// 更新赔案 成功返回结果 +type AlipayBaoxianClaimUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alipay_baoxian_claim_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlipayBaoxianClaimUpdateMtopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/baoxian/AlipayBaoxianClaimUpdateResponse.go b/model/baoxian/AlipayBaoxianClaimUpdateResponse.go deleted file mode 100644 index 8138ef2c0f..0000000000 --- a/model/baoxian/AlipayBaoxianClaimUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baoxian - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新赔案 API返回值 -alipay.baoxian.claim.update - -更新保险理赔单 -*/ -type AlipayBaoxianClaimUpdateAPIResponse struct { - model.CommonResponse - AlipayBaoxianClaimUpdateResponse -} - -// 更新赔案 成功返回结果 -type AlipayBaoxianClaimUpdateResponse struct { - XMLName xml.Name `xml:"alipay_baoxian_claim_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlipayBaoxianClaimUpdateMtopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/baoxian/AlipayBaoxianClaimUploadattachmentAPIRequest.go b/model/baoxian/AlipayBaoxianClaimUploadattachmentAPIRequest.go new file mode 100644 index 0000000000..e51033ed73 --- /dev/null +++ b/model/baoxian/AlipayBaoxianClaimUploadattachmentAPIRequest.go @@ -0,0 +1,150 @@ +package baoxian + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +资料上传接口 API请求 +alipay.baoxian.claim.uploadattachment + +给合作伙伴上传申请理赔材料 +*/ +type AlipayBaoxianClaimUploadattachmentAPIRequest struct { + model.Params + // 外部业务号,唯一 + _outBizNo string + // 业务来源 + _bizSource string + // 标准产品ID + _spNo string + // 文件名,必须带后缀名。例如:test.png,test.doc,test.pdf + _attachmentKey string + // 文件字节数组 + _attachmentByte *model.File + // 是否base格式的字节数组 + _base64Bytes bool + // 保单外部业务单号 + _policyBizNo string + // 上传者用户标识 + _uploadUser string +} + +// 初始化AlipayBaoxianClaimUploadattachmentAPIRequest对象 +func NewAlipayBaoxianClaimUploadattachmentRequest() *AlipayBaoxianClaimUploadattachmentAPIRequest{ + return &AlipayBaoxianClaimUploadattachmentAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlipayBaoxianClaimUploadattachmentAPIRequest) GetApiMethodName() string { + return "alipay.baoxian.claim.uploadattachment" +} + +// IRequest interface 方法, 获取API参数 +func (r AlipayBaoxianClaimUploadattachmentAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutBizNo Setter +// 外部业务号,唯一 +func (r *AlipayBaoxianClaimUploadattachmentAPIRequest) SetOutBizNo(_outBizNo string) error { + r._outBizNo = _outBizNo + r.Set("out_biz_no", _outBizNo) + return nil +} + +// OutBizNo Getter +func (r AlipayBaoxianClaimUploadattachmentAPIRequest) GetOutBizNo() string { + return r._outBizNo +} +// BizSource Setter +// 业务来源 +func (r *AlipayBaoxianClaimUploadattachmentAPIRequest) SetBizSource(_bizSource string) error { + r._bizSource = _bizSource + r.Set("biz_source", _bizSource) + return nil +} + +// BizSource Getter +func (r AlipayBaoxianClaimUploadattachmentAPIRequest) GetBizSource() string { + return r._bizSource +} +// SpNo Setter +// 标准产品ID +func (r *AlipayBaoxianClaimUploadattachmentAPIRequest) SetSpNo(_spNo string) error { + r._spNo = _spNo + r.Set("sp_no", _spNo) + return nil +} + +// SpNo Getter +func (r AlipayBaoxianClaimUploadattachmentAPIRequest) GetSpNo() string { + return r._spNo +} +// AttachmentKey Setter +// 文件名,必须带后缀名。例如:test.png,test.doc,test.pdf +func (r *AlipayBaoxianClaimUploadattachmentAPIRequest) SetAttachmentKey(_attachmentKey string) error { + r._attachmentKey = _attachmentKey + r.Set("attachment_key", _attachmentKey) + return nil +} + +// AttachmentKey Getter +func (r AlipayBaoxianClaimUploadattachmentAPIRequest) GetAttachmentKey() string { + return r._attachmentKey +} +// AttachmentByte Setter +// 文件字节数组 +func (r *AlipayBaoxianClaimUploadattachmentAPIRequest) SetAttachmentByte(_attachmentByte *model.File) error { + r._attachmentByte = _attachmentByte + r.Set("attachment_byte", _attachmentByte) + return nil +} + +// AttachmentByte Getter +func (r AlipayBaoxianClaimUploadattachmentAPIRequest) GetAttachmentByte() *model.File { + return r._attachmentByte +} +// Base64Bytes Setter +// 是否base格式的字节数组 +func (r *AlipayBaoxianClaimUploadattachmentAPIRequest) SetBase64Bytes(_base64Bytes bool) error { + r._base64Bytes = _base64Bytes + r.Set("base64_bytes", _base64Bytes) + return nil +} + +// Base64Bytes Getter +func (r AlipayBaoxianClaimUploadattachmentAPIRequest) GetBase64Bytes() bool { + return r._base64Bytes +} +// PolicyBizNo Setter +// 保单外部业务单号 +func (r *AlipayBaoxianClaimUploadattachmentAPIRequest) SetPolicyBizNo(_policyBizNo string) error { + r._policyBizNo = _policyBizNo + r.Set("policy_biz_no", _policyBizNo) + return nil +} + +// PolicyBizNo Getter +func (r AlipayBaoxianClaimUploadattachmentAPIRequest) GetPolicyBizNo() string { + return r._policyBizNo +} +// UploadUser Setter +// 上传者用户标识 +func (r *AlipayBaoxianClaimUploadattachmentAPIRequest) SetUploadUser(_uploadUser string) error { + r._uploadUser = _uploadUser + r.Set("upload_user", _uploadUser) + return nil +} + +// UploadUser Getter +func (r AlipayBaoxianClaimUploadattachmentAPIRequest) GetUploadUser() string { + return r._uploadUser +} diff --git a/model/baoxian/AlipayBaoxianClaimUploadattachmentAPIResponse.go b/model/baoxian/AlipayBaoxianClaimUploadattachmentAPIResponse.go new file mode 100644 index 0000000000..6dd88e81de --- /dev/null +++ b/model/baoxian/AlipayBaoxianClaimUploadattachmentAPIResponse.go @@ -0,0 +1,27 @@ +package baoxian + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +资料上传接口 API返回值 +alipay.baoxian.claim.uploadattachment + +给合作伙伴上传申请理赔材料 +*/ +type AlipayBaoxianClaimUploadattachmentAPIResponse struct { + model.CommonResponse + AlipayBaoxianClaimUploadattachmentAPIResponseModel +} + +// 资料上传接口 成功返回结果 +type AlipayBaoxianClaimUploadattachmentAPIResponseModel struct { + XMLName xml.Name `xml:"alipay_baoxian_claim_uploadattachment_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + UploadResult *UploadResult `json:"upload_result,omitempty" xml:"upload_result,omitempty"` +} diff --git a/model/baoxian/AlipayBaoxianClaimUploadattachmentResponse.go b/model/baoxian/AlipayBaoxianClaimUploadattachmentResponse.go deleted file mode 100644 index 97fdfb05d0..0000000000 --- a/model/baoxian/AlipayBaoxianClaimUploadattachmentResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package baoxian - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -资料上传接口 API返回值 -alipay.baoxian.claim.uploadattachment - -给合作伙伴上传申请理赔材料 -*/ -type AlipayBaoxianClaimUploadattachmentAPIResponse struct { - model.CommonResponse - AlipayBaoxianClaimUploadattachmentResponse -} - -// 资料上传接口 成功返回结果 -type AlipayBaoxianClaimUploadattachmentResponse struct { - XMLName xml.Name `xml:"alipay_baoxian_claim_uploadattachment_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - UploadResult *UploadResult `json:"upload_result,omitempty" xml:"upload_result,omitempty"` -} diff --git a/model/beehive/TaobaoBeehiveItemCpsUrlAPIRequest.go b/model/beehive/TaobaoBeehiveItemCpsUrlAPIRequest.go new file mode 100644 index 0000000000..edd129b027 --- /dev/null +++ b/model/beehive/TaobaoBeehiveItemCpsUrlAPIRequest.go @@ -0,0 +1,108 @@ +package beehive + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分佣链接生成接口 API请求 +taobao.beehive.item.cps.url + +传入包括itemId,accountId,bizType在内的参数,对应参数返回分佣链接 +*/ +type TaobaoBeehiveItemCpsUrlAPIRequest struct { + model.Params + // 平台,一般为手机 + _platform string + // 达人ID + _adUserId int64 + // 站外是1 + _sourceType int64 + // 业务方,新浪为sina + _bizType string + // 商品ID + _itemId int64 +} + +// 初始化TaobaoBeehiveItemCpsUrlAPIRequest对象 +func NewTaobaoBeehiveItemCpsUrlRequest() *TaobaoBeehiveItemCpsUrlAPIRequest{ + return &TaobaoBeehiveItemCpsUrlAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetApiMethodName() string { + return "taobao.beehive.item.cps.url" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Platform Setter +// 平台,一般为手机 +func (r *TaobaoBeehiveItemCpsUrlAPIRequest) SetPlatform(_platform string) error { + r._platform = _platform + r.Set("platform", _platform) + return nil +} + +// Platform Getter +func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetPlatform() string { + return r._platform +} +// AdUserId Setter +// 达人ID +func (r *TaobaoBeehiveItemCpsUrlAPIRequest) SetAdUserId(_adUserId int64) error { + r._adUserId = _adUserId + r.Set("ad_user_id", _adUserId) + return nil +} + +// AdUserId Getter +func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetAdUserId() int64 { + return r._adUserId +} +// SourceType Setter +// 站外是1 +func (r *TaobaoBeehiveItemCpsUrlAPIRequest) SetSourceType(_sourceType int64) error { + r._sourceType = _sourceType + r.Set("source_type", _sourceType) + return nil +} + +// SourceType Getter +func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetSourceType() int64 { + return r._sourceType +} +// BizType Setter +// 业务方,新浪为sina +func (r *TaobaoBeehiveItemCpsUrlAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetBizType() string { + return r._bizType +} +// ItemId Setter +// 商品ID +func (r *TaobaoBeehiveItemCpsUrlAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoBeehiveItemCpsUrlAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/beehive/TaobaoBeehiveItemCpsUrlAPIResponse.go b/model/beehive/TaobaoBeehiveItemCpsUrlAPIResponse.go new file mode 100644 index 0000000000..9b9589d4c5 --- /dev/null +++ b/model/beehive/TaobaoBeehiveItemCpsUrlAPIResponse.go @@ -0,0 +1,27 @@ +package beehive + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分佣链接生成接口 API返回值 +taobao.beehive.item.cps.url + +传入包括itemId,accountId,bizType在内的参数,对应参数返回分佣链接 +*/ +type TaobaoBeehiveItemCpsUrlAPIResponse struct { + model.CommonResponse + TaobaoBeehiveItemCpsUrlAPIResponseModel +} + +// 分佣链接生成接口 成功返回结果 +type TaobaoBeehiveItemCpsUrlAPIResponseModel struct { + XMLName xml.Name `xml:"beehive_item_cps_url_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *TaobaoBeehiveItemCpsUrlResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/beehive/TaobaoBeehiveItemCpsUrlResponse.go b/model/beehive/TaobaoBeehiveItemCpsUrlResponse.go deleted file mode 100644 index 44526e6bb1..0000000000 --- a/model/beehive/TaobaoBeehiveItemCpsUrlResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package beehive - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分佣链接生成接口 API返回值 -taobao.beehive.item.cps.url - -传入包括itemId,accountId,bizType在内的参数,对应参数返回分佣链接 -*/ -type TaobaoBeehiveItemCpsUrlAPIResponse struct { - model.CommonResponse - TaobaoBeehiveItemCpsUrlResponse -} - -// 分佣链接生成接口 成功返回结果 -type TaobaoBeehiveItemCpsUrlResponse struct { - XMLName xml.Name `xml:"beehive_item_cps_url_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *TaobaoBeehiveItemCpsUrlResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/beehive/TaobaoBeehiveItemCpsUrlResultDo.go b/model/beehive/TaobaoBeehiveItemCpsUrlResultDo.go new file mode 100644 index 0000000000..6af66db5e3 --- /dev/null +++ b/model/beehive/TaobaoBeehiveItemCpsUrlResultDo.go @@ -0,0 +1,13 @@ +package beehive + +// TaobaoBeehiveItemCpsUrlResultDo +type TaobaoBeehiveItemCpsUrlResultDo struct { + // 商品id和对应的url map + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 错误码 + Code string `json:"code,omitempty" xml:"code,omitempty"` + // 是否调用成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误信息 + Msg string `json:"msg,omitempty" xml:"msg,omitempty"` +} diff --git a/model/bill/TaobaoBillAccountsGetAPIRequest.go b/model/bill/TaobaoBillAccountsGetAPIRequest.go new file mode 100644 index 0000000000..3cf3662981 --- /dev/null +++ b/model/bill/TaobaoBillAccountsGetAPIRequest.go @@ -0,0 +1,66 @@ +package bill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询费用科目信息(限自研商家) API请求 +taobao.bill.accounts.get + +查询费用账户信息 +*/ +type TaobaoBillAccountsGetAPIRequest struct { + model.Params + // 需要返回的字段 + _fields []string + // 需要获取的科目ID + _aids []int64 +} + +// 初始化TaobaoBillAccountsGetAPIRequest对象 +func NewTaobaoBillAccountsGetRequest() *TaobaoBillAccountsGetAPIRequest{ + return &TaobaoBillAccountsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBillAccountsGetAPIRequest) GetApiMethodName() string { + return "taobao.bill.accounts.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBillAccountsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的字段 +func (r *TaobaoBillAccountsGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoBillAccountsGetAPIRequest) GetFields() []string { + return r._fields +} +// Aids Setter +// 需要获取的科目ID +func (r *TaobaoBillAccountsGetAPIRequest) SetAids(_aids []int64) error { + r._aids = _aids + r.Set("aids", _aids) + return nil +} + +// Aids Getter +func (r TaobaoBillAccountsGetAPIRequest) GetAids() []int64 { + return r._aids +} diff --git a/model/bill/TaobaoBillAccountsGetAPIResponse.go b/model/bill/TaobaoBillAccountsGetAPIResponse.go new file mode 100644 index 0000000000..fbed67d081 --- /dev/null +++ b/model/bill/TaobaoBillAccountsGetAPIResponse.go @@ -0,0 +1,29 @@ +package bill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询费用科目信息(限自研商家) API返回值 +taobao.bill.accounts.get + +查询费用账户信息 +*/ +type TaobaoBillAccountsGetAPIResponse struct { + model.CommonResponse + TaobaoBillAccountsGetAPIResponseModel +} + +// 查询费用科目信息(限自研商家) 成功返回结果 +type TaobaoBillAccountsGetAPIResponseModel struct { + XMLName xml.Name `xml:"bill_accounts_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的科目信息 + Accounts []Account `json:"accounts,omitempty" xml:"accounts>account,omitempty"` + // 返回记录行数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/bill/TaobaoBillAccountsGetResponse.go b/model/bill/TaobaoBillAccountsGetResponse.go deleted file mode 100644 index 78aa3e3761..0000000000 --- a/model/bill/TaobaoBillAccountsGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package bill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询费用科目信息(限自研商家) API返回值 -taobao.bill.accounts.get - -查询费用账户信息 -*/ -type TaobaoBillAccountsGetAPIResponse struct { - model.CommonResponse - TaobaoBillAccountsGetResponse -} - -// 查询费用科目信息(限自研商家) 成功返回结果 -type TaobaoBillAccountsGetResponse struct { - XMLName xml.Name `xml:"bill_accounts_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的科目信息 - Accounts []Account `json:"accounts,omitempty" xml:"accounts>account,omitempty"` - // 返回记录行数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/bill/TaobaoBillBillsGetAPIRequest.go b/model/bill/TaobaoBillBillsGetAPIRequest.go new file mode 100644 index 0000000000..65901de98f --- /dev/null +++ b/model/bill/TaobaoBillBillsGetAPIRequest.go @@ -0,0 +1,164 @@ +package bill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询账单明细数据(自研发商家专用) API请求 +taobao.bill.bills.get + +查询账单明细数据 +*/ +type TaobaoBillBillsGetAPIRequest struct { + model.Params + // 传入需要返回的字段,参见Bill结构体 + _fields []string + // 科目编号 + _accountId int64 + // 交易编号 + _tradeId int64 + // 子订单编号 + _orderId int64 + // 开始时间 + _startTime string + // 结束时间,限制:结束时间-开始时间不能大于1天(根据order_id或者trade_id查询除外) + _endTime string + // 查询条件中的时间类型:1-交易订单完成时间biz_time 2-支付宝扣款时间pay_time 如果不填默认为2即根据支付时间查询,查询的结果会根据该时间倒排序 + _timeType int64 + // 页数,建议不要超过100页,越大性能越低,有可能会超时 + _pageNo int64 + // 每页大小,默认40条,可选范围 :40~100 + _pageSize int64 +} + +// 初始化TaobaoBillBillsGetAPIRequest对象 +func NewTaobaoBillBillsGetRequest() *TaobaoBillBillsGetAPIRequest{ + return &TaobaoBillBillsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBillBillsGetAPIRequest) GetApiMethodName() string { + return "taobao.bill.bills.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBillBillsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 传入需要返回的字段,参见Bill结构体 +func (r *TaobaoBillBillsGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoBillBillsGetAPIRequest) GetFields() []string { + return r._fields +} +// AccountId Setter +// 科目编号 +func (r *TaobaoBillBillsGetAPIRequest) SetAccountId(_accountId int64) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r TaobaoBillBillsGetAPIRequest) GetAccountId() int64 { + return r._accountId +} +// TradeId Setter +// 交易编号 +func (r *TaobaoBillBillsGetAPIRequest) SetTradeId(_tradeId int64) error { + r._tradeId = _tradeId + r.Set("trade_id", _tradeId) + return nil +} + +// TradeId Getter +func (r TaobaoBillBillsGetAPIRequest) GetTradeId() int64 { + return r._tradeId +} +// OrderId Setter +// 子订单编号 +func (r *TaobaoBillBillsGetAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoBillBillsGetAPIRequest) GetOrderId() int64 { + return r._orderId +} +// StartTime Setter +// 开始时间 +func (r *TaobaoBillBillsGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoBillBillsGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束时间,限制:结束时间-开始时间不能大于1天(根据order_id或者trade_id查询除外) +func (r *TaobaoBillBillsGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoBillBillsGetAPIRequest) GetEndTime() string { + return r._endTime +} +// TimeType Setter +// 查询条件中的时间类型:1-交易订单完成时间biz_time 2-支付宝扣款时间pay_time 如果不填默认为2即根据支付时间查询,查询的结果会根据该时间倒排序 +func (r *TaobaoBillBillsGetAPIRequest) SetTimeType(_timeType int64) error { + r._timeType = _timeType + r.Set("time_type", _timeType) + return nil +} + +// TimeType Getter +func (r TaobaoBillBillsGetAPIRequest) GetTimeType() int64 { + return r._timeType +} +// PageNo Setter +// 页数,建议不要超过100页,越大性能越低,有可能会超时 +func (r *TaobaoBillBillsGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoBillBillsGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页大小,默认40条,可选范围 :40~100 +func (r *TaobaoBillBillsGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoBillBillsGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/bill/TaobaoBillBillsGetAPIResponse.go b/model/bill/TaobaoBillBillsGetAPIResponse.go new file mode 100644 index 0000000000..4c428a8d49 --- /dev/null +++ b/model/bill/TaobaoBillBillsGetAPIResponse.go @@ -0,0 +1,31 @@ +package bill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询账单明细数据(自研发商家专用) API返回值 +taobao.bill.bills.get + +查询账单明细数据 +*/ +type TaobaoBillBillsGetAPIResponse struct { + model.CommonResponse + TaobaoBillBillsGetAPIResponseModel +} + +// 查询账单明细数据(自研发商家专用) 成功返回结果 +type TaobaoBillBillsGetAPIResponseModel struct { + XMLName xml.Name `xml:"bill_bills_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 账单列表 + Bills []Bill `json:"bills,omitempty" xml:"bills>bill,omitempty"` + // 是否存在下一页 + HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` + // 当前页查询返回的结果数(0-100)。相同的查询时间段条件下,最大只能获取总共5000条记录。所以当大于等于5000时 ISV可以通过start_time及end_time来进行拆分,以保证可以查询到全部数据 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/bill/TaobaoBillBillsGetResponse.go b/model/bill/TaobaoBillBillsGetResponse.go deleted file mode 100644 index 6cb05bdb8c..0000000000 --- a/model/bill/TaobaoBillBillsGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package bill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询账单明细数据(自研发商家专用) API返回值 -taobao.bill.bills.get - -查询账单明细数据 -*/ -type TaobaoBillBillsGetAPIResponse struct { - model.CommonResponse - TaobaoBillBillsGetResponse -} - -// 查询账单明细数据(自研发商家专用) 成功返回结果 -type TaobaoBillBillsGetResponse struct { - XMLName xml.Name `xml:"bill_bills_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 账单列表 - Bills []Bill `json:"bills,omitempty" xml:"bills>bill,omitempty"` - // 是否存在下一页 - HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` - // 当前页查询返回的结果数(0-100)。相同的查询时间段条件下,最大只能获取总共5000条记录。所以当大于等于5000时 ISV可以通过start_time及end_time来进行拆分,以保证可以查询到全部数据 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/bill/TaobaoBillBookBillsGetAPIRequest.go b/model/bill/TaobaoBillBookBillsGetAPIRequest.go new file mode 100644 index 0000000000..253092e3d6 --- /dev/null +++ b/model/bill/TaobaoBillBookBillsGetAPIRequest.go @@ -0,0 +1,136 @@ +package bill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询虚拟账户明细数据(自研发商家专用) API请求 +taobao.bill.book.bills.get + +查询虚拟账户明细数据 +*/ +type TaobaoBillBookBillsGetAPIRequest struct { + model.Params + // 虚拟账户科目编号 + _accountId int64 + // 明细流水类型:流水类型:101、可用金充值;102、可用金扣除;103、冻结;104、解冻;105、冻结金充值;106、冻结金扣除 + _journalTypes []int64 + // 记账开始时间 + _startTime string + // 记账结束时间,end_time与start_time相差不能超过30天 + _endTime string + // 每页大小,建议40~100,不能超过100 + _pageSize int64 + // 需要返回的字段:bid,account_id,journal_type,amount,book_time,description,gmt_create,gmt_modified ,如果不是以上字段将自动忽略 + _fields string + // 页码,传入值为1代表第一页,传入值为2代表第二页,依此类推.默认返回的数据是从第一页开始 + _pageNo int64 +} + +// 初始化TaobaoBillBookBillsGetAPIRequest对象 +func NewTaobaoBillBookBillsGetRequest() *TaobaoBillBookBillsGetAPIRequest{ + return &TaobaoBillBookBillsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBillBookBillsGetAPIRequest) GetApiMethodName() string { + return "taobao.bill.book.bills.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBillBookBillsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccountId Setter +// 虚拟账户科目编号 +func (r *TaobaoBillBookBillsGetAPIRequest) SetAccountId(_accountId int64) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r TaobaoBillBookBillsGetAPIRequest) GetAccountId() int64 { + return r._accountId +} +// JournalTypes Setter +// 明细流水类型:流水类型:101、可用金充值;102、可用金扣除;103、冻结;104、解冻;105、冻结金充值;106、冻结金扣除 +func (r *TaobaoBillBookBillsGetAPIRequest) SetJournalTypes(_journalTypes []int64) error { + r._journalTypes = _journalTypes + r.Set("journal_types", _journalTypes) + return nil +} + +// JournalTypes Getter +func (r TaobaoBillBookBillsGetAPIRequest) GetJournalTypes() []int64 { + return r._journalTypes +} +// StartTime Setter +// 记账开始时间 +func (r *TaobaoBillBookBillsGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoBillBookBillsGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 记账结束时间,end_time与start_time相差不能超过30天 +func (r *TaobaoBillBookBillsGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoBillBookBillsGetAPIRequest) GetEndTime() string { + return r._endTime +} +// PageSize Setter +// 每页大小,建议40~100,不能超过100 +func (r *TaobaoBillBookBillsGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoBillBookBillsGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Fields Setter +// 需要返回的字段:bid,account_id,journal_type,amount,book_time,description,gmt_create,gmt_modified ,如果不是以上字段将自动忽略 +func (r *TaobaoBillBookBillsGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoBillBookBillsGetAPIRequest) GetFields() string { + return r._fields +} +// PageNo Setter +// 页码,传入值为1代表第一页,传入值为2代表第二页,依此类推.默认返回的数据是从第一页开始 +func (r *TaobaoBillBookBillsGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoBillBookBillsGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/bill/TaobaoBillBookBillsGetAPIResponse.go b/model/bill/TaobaoBillBookBillsGetAPIResponse.go new file mode 100644 index 0000000000..2f1e7a666e --- /dev/null +++ b/model/bill/TaobaoBillBookBillsGetAPIResponse.go @@ -0,0 +1,31 @@ +package bill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询虚拟账户明细数据(自研发商家专用) API返回值 +taobao.bill.book.bills.get + +查询虚拟账户明细数据 +*/ +type TaobaoBillBookBillsGetAPIResponse struct { + model.CommonResponse + TaobaoBillBookBillsGetAPIResponseModel +} + +// 查询虚拟账户明细数据(自研发商家专用) 成功返回结果 +type TaobaoBillBookBillsGetAPIResponseModel struct { + XMLName xml.Name `xml:"bill_book_bills_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否有下一页 + HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` + // 虚拟账户账单列表 + Bills []BookBill `json:"bills,omitempty" xml:"bills>book_bill,omitempty"` + // 当前查询的结果数,非总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/bill/TaobaoBillBookBillsGetResponse.go b/model/bill/TaobaoBillBookBillsGetResponse.go deleted file mode 100644 index 7c32986dbe..0000000000 --- a/model/bill/TaobaoBillBookBillsGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package bill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询虚拟账户明细数据(自研发商家专用) API返回值 -taobao.bill.book.bills.get - -查询虚拟账户明细数据 -*/ -type TaobaoBillBookBillsGetAPIResponse struct { - model.CommonResponse - TaobaoBillBookBillsGetResponse -} - -// 查询虚拟账户明细数据(自研发商家专用) 成功返回结果 -type TaobaoBillBookBillsGetResponse struct { - XMLName xml.Name `xml:"bill_book_bills_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否有下一页 - HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` - // 虚拟账户账单列表 - Bills []BookBill `json:"bills,omitempty" xml:"bills>book_bill,omitempty"` - // 当前查询的结果数,非总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/bill/TaobaoTaeAccountsGetAPIRequest.go b/model/bill/TaobaoTaeAccountsGetAPIRequest.go new file mode 100644 index 0000000000..cb132398a8 --- /dev/null +++ b/model/bill/TaobaoTaeAccountsGetAPIRequest.go @@ -0,0 +1,66 @@ +package bill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +tae查询费用科目信息 API请求 +taobao.tae.accounts.get + +tae查询费用科目信息 +*/ +type TaobaoTaeAccountsGetAPIRequest struct { + model.Params + // 需要返回的字段 + _fields []string + // 需要获取的科目ID + _aids []int64 +} + +// 初始化TaobaoTaeAccountsGetAPIRequest对象 +func NewTaobaoTaeAccountsGetRequest() *TaobaoTaeAccountsGetAPIRequest{ + return &TaobaoTaeAccountsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTaeAccountsGetAPIRequest) GetApiMethodName() string { + return "taobao.tae.accounts.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTaeAccountsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的字段 +func (r *TaobaoTaeAccountsGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoTaeAccountsGetAPIRequest) GetFields() []string { + return r._fields +} +// Aids Setter +// 需要获取的科目ID +func (r *TaobaoTaeAccountsGetAPIRequest) SetAids(_aids []int64) error { + r._aids = _aids + r.Set("aids", _aids) + return nil +} + +// Aids Getter +func (r TaobaoTaeAccountsGetAPIRequest) GetAids() []int64 { + return r._aids +} diff --git a/model/bill/TaobaoTaeAccountsGetAPIResponse.go b/model/bill/TaobaoTaeAccountsGetAPIResponse.go new file mode 100644 index 0000000000..027e27a53e --- /dev/null +++ b/model/bill/TaobaoTaeAccountsGetAPIResponse.go @@ -0,0 +1,29 @@ +package bill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +tae查询费用科目信息 API返回值 +taobao.tae.accounts.get + +tae查询费用科目信息 +*/ +type TaobaoTaeAccountsGetAPIResponse struct { + model.CommonResponse + TaobaoTaeAccountsGetAPIResponseModel +} + +// tae查询费用科目信息 成功返回结果 +type TaobaoTaeAccountsGetAPIResponseModel struct { + XMLName xml.Name `xml:"tae_accounts_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的科目信息 + Accounts []TopAccountDto `json:"accounts,omitempty" xml:"accounts>top_account_dto,omitempty"` + // 返回记录行数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/bill/TaobaoTaeAccountsGetResponse.go b/model/bill/TaobaoTaeAccountsGetResponse.go deleted file mode 100644 index 580e95334c..0000000000 --- a/model/bill/TaobaoTaeAccountsGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package bill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -tae查询费用科目信息 API返回值 -taobao.tae.accounts.get - -tae查询费用科目信息 -*/ -type TaobaoTaeAccountsGetAPIResponse struct { - model.CommonResponse - TaobaoTaeAccountsGetResponse -} - -// tae查询费用科目信息 成功返回结果 -type TaobaoTaeAccountsGetResponse struct { - XMLName xml.Name `xml:"tae_accounts_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的科目信息 - Accounts []TopAccountDto `json:"accounts,omitempty" xml:"accounts>top_account_dto,omitempty"` - // 返回记录行数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/bill/TaobaoTaeBillGetAPIRequest.go b/model/bill/TaobaoTaeBillGetAPIRequest.go new file mode 100644 index 0000000000..4f1232842d --- /dev/null +++ b/model/bill/TaobaoTaeBillGetAPIRequest.go @@ -0,0 +1,94 @@ +package bill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +tae查询单笔账单明细 API请求 +taobao.tae.bill.get + +查询单笔账单明细 +*/ +type TaobaoTaeBillGetAPIRequest struct { + model.Params + // 账单编号 + _bid int64 + // 传入需要返回的字段 + _fields []string + // 账单编号 + _id int64 + // 虚拟账户科目编号 + _accountId int64 +} + +// 初始化TaobaoTaeBillGetAPIRequest对象 +func NewTaobaoTaeBillGetRequest() *TaobaoTaeBillGetAPIRequest{ + return &TaobaoTaeBillGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTaeBillGetAPIRequest) GetApiMethodName() string { + return "taobao.tae.bill.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTaeBillGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Bid Setter +// 账单编号 +func (r *TaobaoTaeBillGetAPIRequest) SetBid(_bid int64) error { + r._bid = _bid + r.Set("bid", _bid) + return nil +} + +// Bid Getter +func (r TaobaoTaeBillGetAPIRequest) GetBid() int64 { + return r._bid +} +// Fields Setter +// 传入需要返回的字段 +func (r *TaobaoTaeBillGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoTaeBillGetAPIRequest) GetFields() []string { + return r._fields +} +// Id Setter +// 账单编号 +func (r *TaobaoTaeBillGetAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TaobaoTaeBillGetAPIRequest) GetId() int64 { + return r._id +} +// AccountId Setter +// 虚拟账户科目编号 +func (r *TaobaoTaeBillGetAPIRequest) SetAccountId(_accountId int64) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r TaobaoTaeBillGetAPIRequest) GetAccountId() int64 { + return r._accountId +} diff --git a/model/bill/TaobaoTaeBillGetAPIResponse.go b/model/bill/TaobaoTaeBillGetAPIResponse.go new file mode 100644 index 0000000000..cc135798d6 --- /dev/null +++ b/model/bill/TaobaoTaeBillGetAPIResponse.go @@ -0,0 +1,27 @@ +package bill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +tae查询单笔账单明细 API返回值 +taobao.tae.bill.get + +查询单笔账单明细 +*/ +type TaobaoTaeBillGetAPIResponse struct { + model.CommonResponse + TaobaoTaeBillGetAPIResponseModel +} + +// tae查询单笔账单明细 成功返回结果 +type TaobaoTaeBillGetAPIResponseModel struct { + XMLName xml.Name `xml:"tae_bill_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 账单明细 + Bill *BillDto `json:"bill,omitempty" xml:"bill,omitempty"` +} diff --git a/model/bill/TaobaoTaeBillGetResponse.go b/model/bill/TaobaoTaeBillGetResponse.go deleted file mode 100644 index d499757010..0000000000 --- a/model/bill/TaobaoTaeBillGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package bill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -tae查询单笔账单明细 API返回值 -taobao.tae.bill.get - -查询单笔账单明细 -*/ -type TaobaoTaeBillGetAPIResponse struct { - model.CommonResponse - TaobaoTaeBillGetResponse -} - -// tae查询单笔账单明细 成功返回结果 -type TaobaoTaeBillGetResponse struct { - XMLName xml.Name `xml:"tae_bill_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 账单明细 - Bill *BillDto `json:"bill,omitempty" xml:"bill,omitempty"` -} diff --git a/model/bill/TaobaoTaeBillsGetAPIRequest.go b/model/bill/TaobaoTaeBillsGetAPIRequest.go new file mode 100644 index 0000000000..96936f03ba --- /dev/null +++ b/model/bill/TaobaoTaeBillsGetAPIRequest.go @@ -0,0 +1,164 @@ +package bill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +tae查询账单明细 API请求 +taobao.tae.bills.get + +tae查询账单明细 +*/ +type TaobaoTaeBillsGetAPIRequest struct { + model.Params + // 开始时间 + _queryStartDate string + // 交易编号 + _pTradeId int64 + // 子订单编号 + _tradeId int64 + // 每页大小,默认40条,可选范围 :40~100 + _pageSize int64 + // 查询条件中的时间类型:1-交易订单完成时间biz_time 2-支付宝扣款时间pay_time 如果不填默认为2即根据支付时间查询,查询的结果会根据该时间倒排序 + _queryDateType int64 + // 页数,建议不要超过100页,越大性能越低,有可能会超时 + _currentPage int64 + // 科目编号 + _itemId int64 + // 结束时间,限制:结束时间-开始时间不能大于1天(根据order_id或者trade_id查询除外) + _queryEndDate string + // 传入需要返回的字段,参见Bill结构体 + _fields []string +} + +// 初始化TaobaoTaeBillsGetAPIRequest对象 +func NewTaobaoTaeBillsGetRequest() *TaobaoTaeBillsGetAPIRequest{ + return &TaobaoTaeBillsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTaeBillsGetAPIRequest) GetApiMethodName() string { + return "taobao.tae.bills.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTaeBillsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryStartDate Setter +// 开始时间 +func (r *TaobaoTaeBillsGetAPIRequest) SetQueryStartDate(_queryStartDate string) error { + r._queryStartDate = _queryStartDate + r.Set("query_start_date", _queryStartDate) + return nil +} + +// QueryStartDate Getter +func (r TaobaoTaeBillsGetAPIRequest) GetQueryStartDate() string { + return r._queryStartDate +} +// PTradeId Setter +// 交易编号 +func (r *TaobaoTaeBillsGetAPIRequest) SetPTradeId(_pTradeId int64) error { + r._pTradeId = _pTradeId + r.Set("p_trade_id", _pTradeId) + return nil +} + +// PTradeId Getter +func (r TaobaoTaeBillsGetAPIRequest) GetPTradeId() int64 { + return r._pTradeId +} +// TradeId Setter +// 子订单编号 +func (r *TaobaoTaeBillsGetAPIRequest) SetTradeId(_tradeId int64) error { + r._tradeId = _tradeId + r.Set("trade_id", _tradeId) + return nil +} + +// TradeId Getter +func (r TaobaoTaeBillsGetAPIRequest) GetTradeId() int64 { + return r._tradeId +} +// PageSize Setter +// 每页大小,默认40条,可选范围 :40~100 +func (r *TaobaoTaeBillsGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTaeBillsGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// QueryDateType Setter +// 查询条件中的时间类型:1-交易订单完成时间biz_time 2-支付宝扣款时间pay_time 如果不填默认为2即根据支付时间查询,查询的结果会根据该时间倒排序 +func (r *TaobaoTaeBillsGetAPIRequest) SetQueryDateType(_queryDateType int64) error { + r._queryDateType = _queryDateType + r.Set("query_date_type", _queryDateType) + return nil +} + +// QueryDateType Getter +func (r TaobaoTaeBillsGetAPIRequest) GetQueryDateType() int64 { + return r._queryDateType +} +// CurrentPage Setter +// 页数,建议不要超过100页,越大性能越低,有可能会超时 +func (r *TaobaoTaeBillsGetAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TaobaoTaeBillsGetAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// ItemId Setter +// 科目编号 +func (r *TaobaoTaeBillsGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoTaeBillsGetAPIRequest) GetItemId() int64 { + return r._itemId +} +// QueryEndDate Setter +// 结束时间,限制:结束时间-开始时间不能大于1天(根据order_id或者trade_id查询除外) +func (r *TaobaoTaeBillsGetAPIRequest) SetQueryEndDate(_queryEndDate string) error { + r._queryEndDate = _queryEndDate + r.Set("query_end_date", _queryEndDate) + return nil +} + +// QueryEndDate Getter +func (r TaobaoTaeBillsGetAPIRequest) GetQueryEndDate() string { + return r._queryEndDate +} +// Fields Setter +// 传入需要返回的字段,参见Bill结构体 +func (r *TaobaoTaeBillsGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoTaeBillsGetAPIRequest) GetFields() []string { + return r._fields +} diff --git a/model/bill/TaobaoTaeBillsGetAPIResponse.go b/model/bill/TaobaoTaeBillsGetAPIResponse.go new file mode 100644 index 0000000000..d81e77f81d --- /dev/null +++ b/model/bill/TaobaoTaeBillsGetAPIResponse.go @@ -0,0 +1,31 @@ +package bill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +tae查询账单明细 API返回值 +taobao.tae.bills.get + +tae查询账单明细 +*/ +type TaobaoTaeBillsGetAPIResponse struct { + model.CommonResponse + TaobaoTaeBillsGetAPIResponseModel +} + +// tae查询账单明细 成功返回结果 +type TaobaoTaeBillsGetAPIResponseModel struct { + XMLName xml.Name `xml:"tae_bills_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 当前页查询返回的结果数(0-100)。相同的查询时间段条件下,最大只能获取总共5000条记录。所以当大于等于5000时 ISV可以通过start_time及end_time来进行拆分,以保证可以查询到全部数据 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 是否存在下一页 + HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` + // 账单列表 + Bills []BillDto `json:"bills,omitempty" xml:"bills>bill_dto,omitempty"` +} diff --git a/model/bill/TaobaoTaeBillsGetResponse.go b/model/bill/TaobaoTaeBillsGetResponse.go deleted file mode 100644 index c9bcbab9ac..0000000000 --- a/model/bill/TaobaoTaeBillsGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package bill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -tae查询账单明细 API返回值 -taobao.tae.bills.get - -tae查询账单明细 -*/ -type TaobaoTaeBillsGetAPIResponse struct { - model.CommonResponse - TaobaoTaeBillsGetResponse -} - -// tae查询账单明细 成功返回结果 -type TaobaoTaeBillsGetResponse struct { - XMLName xml.Name `xml:"tae_bills_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 当前页查询返回的结果数(0-100)。相同的查询时间段条件下,最大只能获取总共5000条记录。所以当大于等于5000时 ISV可以通过start_time及end_time来进行拆分,以保证可以查询到全部数据 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 是否存在下一页 - HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` - // 账单列表 - Bills []BillDto `json:"bills,omitempty" xml:"bills>bill_dto,omitempty"` -} diff --git a/model/bill/TaobaoTaeBookBillGetAPIRequest.go b/model/bill/TaobaoTaeBookBillGetAPIRequest.go new file mode 100644 index 0000000000..46e6e23fd4 --- /dev/null +++ b/model/bill/TaobaoTaeBookBillGetAPIRequest.go @@ -0,0 +1,94 @@ +package bill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +tae查询单笔虚拟账户明细 API请求 +taobao.tae.book.bill.get + +tae查询单笔虚拟账户明细 +*/ +type TaobaoTaeBookBillGetAPIRequest struct { + model.Params + // 虚拟账户流水编号 + _bid int64 + // 需要返回的字段:参见BookBill结构体 + _fields []string + // 虚拟账户流水编号 + _id int64 + // 虚拟账户科目编号 + _accountId int64 +} + +// 初始化TaobaoTaeBookBillGetAPIRequest对象 +func NewTaobaoTaeBookBillGetRequest() *TaobaoTaeBookBillGetAPIRequest{ + return &TaobaoTaeBookBillGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTaeBookBillGetAPIRequest) GetApiMethodName() string { + return "taobao.tae.book.bill.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTaeBookBillGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Bid Setter +// 虚拟账户流水编号 +func (r *TaobaoTaeBookBillGetAPIRequest) SetBid(_bid int64) error { + r._bid = _bid + r.Set("bid", _bid) + return nil +} + +// Bid Getter +func (r TaobaoTaeBookBillGetAPIRequest) GetBid() int64 { + return r._bid +} +// Fields Setter +// 需要返回的字段:参见BookBill结构体 +func (r *TaobaoTaeBookBillGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoTaeBookBillGetAPIRequest) GetFields() []string { + return r._fields +} +// Id Setter +// 虚拟账户流水编号 +func (r *TaobaoTaeBookBillGetAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TaobaoTaeBookBillGetAPIRequest) GetId() int64 { + return r._id +} +// AccountId Setter +// 虚拟账户科目编号 +func (r *TaobaoTaeBookBillGetAPIRequest) SetAccountId(_accountId int64) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r TaobaoTaeBookBillGetAPIRequest) GetAccountId() int64 { + return r._accountId +} diff --git a/model/bill/TaobaoTaeBookBillGetAPIResponse.go b/model/bill/TaobaoTaeBookBillGetAPIResponse.go new file mode 100644 index 0000000000..3c5bd58211 --- /dev/null +++ b/model/bill/TaobaoTaeBookBillGetAPIResponse.go @@ -0,0 +1,27 @@ +package bill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +tae查询单笔虚拟账户明细 API返回值 +taobao.tae.book.bill.get + +tae查询单笔虚拟账户明细 +*/ +type TaobaoTaeBookBillGetAPIResponse struct { + model.CommonResponse + TaobaoTaeBookBillGetAPIResponseModel +} + +// tae查询单笔虚拟账户明细 成功返回结果 +type TaobaoTaeBookBillGetAPIResponseModel struct { + XMLName xml.Name `xml:"tae_book_bill_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 虚拟账户账单 + Bookbill *TopAcctCashJourDto `json:"bookbill,omitempty" xml:"bookbill,omitempty"` +} diff --git a/model/bill/TaobaoTaeBookBillGetResponse.go b/model/bill/TaobaoTaeBookBillGetResponse.go deleted file mode 100644 index 6dea5ec23e..0000000000 --- a/model/bill/TaobaoTaeBookBillGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package bill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -tae查询单笔虚拟账户明细 API返回值 -taobao.tae.book.bill.get - -tae查询单笔虚拟账户明细 -*/ -type TaobaoTaeBookBillGetAPIResponse struct { - model.CommonResponse - TaobaoTaeBookBillGetResponse -} - -// tae查询单笔虚拟账户明细 成功返回结果 -type TaobaoTaeBookBillGetResponse struct { - XMLName xml.Name `xml:"tae_book_bill_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 虚拟账户账单 - Bookbill *TopAcctCashJourDto `json:"bookbill,omitempty" xml:"bookbill,omitempty"` -} diff --git a/model/bill/TaobaoTaeBookBillsGetAPIRequest.go b/model/bill/TaobaoTaeBookBillsGetAPIRequest.go new file mode 100644 index 0000000000..34a60c93b7 --- /dev/null +++ b/model/bill/TaobaoTaeBookBillsGetAPIRequest.go @@ -0,0 +1,136 @@ +package bill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +tae查询虚拟账户明细数据 API请求 +taobao.tae.book.bills.get + +tae查询虚拟账户明细数据 +*/ +type TaobaoTaeBookBillsGetAPIRequest struct { + model.Params + // 记账开始时间 + _startTime string + // 明细流水类型:流水类型:101、可用金充值;102、可用金扣除;103、冻结;104、解冻;105、冻结金充值;106、冻结金扣除 + _journalTypes []int64 + // 每页大小,建议40~100,不能超过100 + _pageSize int64 + // 页码,传入值为1代表第一页,传入值为2代表第二页,依此类推.默认返回的数据是从第一页开始 + _pageNo int64 + // 虚拟账户科目编号 + _accountId int64 + // 记账结束时间,end_time与start_time相差不能超过30天 + _endTime string + // 需要返回的字段:bid,account_id,journal_type,amount,book_time,description,gmt_create,gmt_modified ,如果不是以上字段将自动忽略 + _fields []string +} + +// 初始化TaobaoTaeBookBillsGetAPIRequest对象 +func NewTaobaoTaeBookBillsGetRequest() *TaobaoTaeBookBillsGetAPIRequest{ + return &TaobaoTaeBookBillsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTaeBookBillsGetAPIRequest) GetApiMethodName() string { + return "taobao.tae.book.bills.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTaeBookBillsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartTime Setter +// 记账开始时间 +func (r *TaobaoTaeBookBillsGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoTaeBookBillsGetAPIRequest) GetStartTime() string { + return r._startTime +} +// JournalTypes Setter +// 明细流水类型:流水类型:101、可用金充值;102、可用金扣除;103、冻结;104、解冻;105、冻结金充值;106、冻结金扣除 +func (r *TaobaoTaeBookBillsGetAPIRequest) SetJournalTypes(_journalTypes []int64) error { + r._journalTypes = _journalTypes + r.Set("journal_types", _journalTypes) + return nil +} + +// JournalTypes Getter +func (r TaobaoTaeBookBillsGetAPIRequest) GetJournalTypes() []int64 { + return r._journalTypes +} +// PageSize Setter +// 每页大小,建议40~100,不能超过100 +func (r *TaobaoTaeBookBillsGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTaeBookBillsGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 页码,传入值为1代表第一页,传入值为2代表第二页,依此类推.默认返回的数据是从第一页开始 +func (r *TaobaoTaeBookBillsGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoTaeBookBillsGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// AccountId Setter +// 虚拟账户科目编号 +func (r *TaobaoTaeBookBillsGetAPIRequest) SetAccountId(_accountId int64) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r TaobaoTaeBookBillsGetAPIRequest) GetAccountId() int64 { + return r._accountId +} +// EndTime Setter +// 记账结束时间,end_time与start_time相差不能超过30天 +func (r *TaobaoTaeBookBillsGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoTaeBookBillsGetAPIRequest) GetEndTime() string { + return r._endTime +} +// Fields Setter +// 需要返回的字段:bid,account_id,journal_type,amount,book_time,description,gmt_create,gmt_modified ,如果不是以上字段将自动忽略 +func (r *TaobaoTaeBookBillsGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoTaeBookBillsGetAPIRequest) GetFields() []string { + return r._fields +} diff --git a/model/bill/TaobaoTaeBookBillsGetAPIResponse.go b/model/bill/TaobaoTaeBookBillsGetAPIResponse.go new file mode 100644 index 0000000000..2d3d3ddf8a --- /dev/null +++ b/model/bill/TaobaoTaeBookBillsGetAPIResponse.go @@ -0,0 +1,31 @@ +package bill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +tae查询虚拟账户明细数据 API返回值 +taobao.tae.book.bills.get + +tae查询虚拟账户明细数据 +*/ +type TaobaoTaeBookBillsGetAPIResponse struct { + model.CommonResponse + TaobaoTaeBookBillsGetAPIResponseModel +} + +// tae查询虚拟账户明细数据 成功返回结果 +type TaobaoTaeBookBillsGetAPIResponseModel struct { + XMLName xml.Name `xml:"tae_book_bills_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 虚拟账户账单列表 + Bills []TopAcctCashJourDto `json:"bills,omitempty" xml:"bills>top_acct_cash_jour_dto,omitempty"` + // 是否有下一页 + HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` + // 当前查询的结果数,非总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/bill/TaobaoTaeBookBillsGetResponse.go b/model/bill/TaobaoTaeBookBillsGetResponse.go deleted file mode 100644 index 02a35ce423..0000000000 --- a/model/bill/TaobaoTaeBookBillsGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package bill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -tae查询虚拟账户明细数据 API返回值 -taobao.tae.book.bills.get - -tae查询虚拟账户明细数据 -*/ -type TaobaoTaeBookBillsGetAPIResponse struct { - model.CommonResponse - TaobaoTaeBookBillsGetResponse -} - -// tae查询虚拟账户明细数据 成功返回结果 -type TaobaoTaeBookBillsGetResponse struct { - XMLName xml.Name `xml:"tae_book_bills_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 虚拟账户账单列表 - Bills []TopAcctCashJourDto `json:"bills,omitempty" xml:"bills>top_acct_cash_jour_dto,omitempty"` - // 是否有下一页 - HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` - // 当前查询的结果数,非总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/blackvip/TaobaoBlackvipUserinfoGetAPIRequest.go b/model/blackvip/TaobaoBlackvipUserinfoGetAPIRequest.go new file mode 100644 index 0000000000..0cd6b38092 --- /dev/null +++ b/model/blackvip/TaobaoBlackvipUserinfoGetAPIRequest.go @@ -0,0 +1,38 @@ +package blackvip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +88VIP用户信息查询 API请求 +taobao.blackvip.userinfo.get + +查询88VIP用户信息,比如用户是否是88VIP,88VIP的失效时间等 +*/ +type TaobaoBlackvipUserinfoGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoBlackvipUserinfoGetAPIRequest对象 +func NewTaobaoBlackvipUserinfoGetRequest() *TaobaoBlackvipUserinfoGetAPIRequest{ + return &TaobaoBlackvipUserinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBlackvipUserinfoGetAPIRequest) GetApiMethodName() string { + return "taobao.blackvip.userinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBlackvipUserinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/blackvip/TaobaoBlackvipUserinfoGetAPIResponse.go b/model/blackvip/TaobaoBlackvipUserinfoGetAPIResponse.go new file mode 100644 index 0000000000..8ce998b7c2 --- /dev/null +++ b/model/blackvip/TaobaoBlackvipUserinfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package blackvip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +88VIP用户信息查询 API返回值 +taobao.blackvip.userinfo.get + +查询88VIP用户信息,比如用户是否是88VIP,88VIP的失效时间等 +*/ +type TaobaoBlackvipUserinfoGetAPIResponse struct { + model.CommonResponse + TaobaoBlackvipUserinfoGetAPIResponseModel +} + +// 88VIP用户信息查询 成功返回结果 +type TaobaoBlackvipUserinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"blackvip_userinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果支持对象 + Result *ResultSupport `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/blackvip/TaobaoBlackvipUserinfoGetResponse.go b/model/blackvip/TaobaoBlackvipUserinfoGetResponse.go deleted file mode 100644 index 4d09b4f3e3..0000000000 --- a/model/blackvip/TaobaoBlackvipUserinfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package blackvip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -88VIP用户信息查询 API返回值 -taobao.blackvip.userinfo.get - -查询88VIP用户信息,比如用户是否是88VIP,88VIP的失效时间等 -*/ -type TaobaoBlackvipUserinfoGetAPIResponse struct { - model.CommonResponse - TaobaoBlackvipUserinfoGetResponse -} - -// 88VIP用户信息查询 成功返回结果 -type TaobaoBlackvipUserinfoGetResponse struct { - XMLName xml.Name `xml:"blackvip_userinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果支持对象 - Result *ResultSupport `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/brandhub/TaobaoBrandStarshopRptTargetGetAPIRequest.go b/model/brandhub/TaobaoBrandStarshopRptTargetGetAPIRequest.go new file mode 100644 index 0000000000..8ea1b30041 --- /dev/null +++ b/model/brandhub/TaobaoBrandStarshopRptTargetGetAPIRequest.go @@ -0,0 +1,122 @@ +package brandhub + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +明星店铺定向维度报表 API请求 +taobao.brand.starshop.rpt.target.get + +获取明星店铺定向维度分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 +*/ +type TaobaoBrandStarshopRptTargetGetAPIRequest struct { + model.Params + // 流量类型 1: PC站内, 2: PC站外 , 4: 无线站内, 5: 无线站外,支持多种一起查询,如1,2,4,5 + _trafficType string + // 当前页数 + _pageIndex string + // 每页条数 + _pageSize string + // 转化周期,默认15, 3,7,15 + _effect string + // 开始日期(最多查询1个月的数据) + _startDate string + // 截至日期(最晚到昨天) + _endDate string +} + +// 初始化TaobaoBrandStarshopRptTargetGetAPIRequest对象 +func NewTaobaoBrandStarshopRptTargetGetRequest() *TaobaoBrandStarshopRptTargetGetAPIRequest{ + return &TaobaoBrandStarshopRptTargetGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBrandStarshopRptTargetGetAPIRequest) GetApiMethodName() string { + return "taobao.brand.starshop.rpt.target.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBrandStarshopRptTargetGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TrafficType Setter +// 流量类型 1: PC站内, 2: PC站外 , 4: 无线站内, 5: 无线站外,支持多种一起查询,如1,2,4,5 +func (r *TaobaoBrandStarshopRptTargetGetAPIRequest) SetTrafficType(_trafficType string) error { + r._trafficType = _trafficType + r.Set("traffic_type", _trafficType) + return nil +} + +// TrafficType Getter +func (r TaobaoBrandStarshopRptTargetGetAPIRequest) GetTrafficType() string { + return r._trafficType +} +// PageIndex Setter +// 当前页数 +func (r *TaobaoBrandStarshopRptTargetGetAPIRequest) SetPageIndex(_pageIndex string) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TaobaoBrandStarshopRptTargetGetAPIRequest) GetPageIndex() string { + return r._pageIndex +} +// PageSize Setter +// 每页条数 +func (r *TaobaoBrandStarshopRptTargetGetAPIRequest) SetPageSize(_pageSize string) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoBrandStarshopRptTargetGetAPIRequest) GetPageSize() string { + return r._pageSize +} +// Effect Setter +// 转化周期,默认15, 3,7,15 +func (r *TaobaoBrandStarshopRptTargetGetAPIRequest) SetEffect(_effect string) error { + r._effect = _effect + r.Set("effect", _effect) + return nil +} + +// Effect Getter +func (r TaobaoBrandStarshopRptTargetGetAPIRequest) GetEffect() string { + return r._effect +} +// StartDate Setter +// 开始日期(最多查询1个月的数据) +func (r *TaobaoBrandStarshopRptTargetGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoBrandStarshopRptTargetGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 截至日期(最晚到昨天) +func (r *TaobaoBrandStarshopRptTargetGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoBrandStarshopRptTargetGetAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/brandhub/TaobaoBrandStarshopRptTargetGetAPIResponse.go b/model/brandhub/TaobaoBrandStarshopRptTargetGetAPIResponse.go new file mode 100644 index 0000000000..debe6a4232 --- /dev/null +++ b/model/brandhub/TaobaoBrandStarshopRptTargetGetAPIResponse.go @@ -0,0 +1,29 @@ +package brandhub + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +明星店铺定向维度报表 API返回值 +taobao.brand.starshop.rpt.target.get + +获取明星店铺定向维度分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 +*/ +type TaobaoBrandStarshopRptTargetGetAPIResponse struct { + model.CommonResponse + TaobaoBrandStarshopRptTargetGetAPIResponseModel +} + +// 明星店铺定向维度报表 成功返回结果 +type TaobaoBrandStarshopRptTargetGetAPIResponseModel struct { + XMLName xml.Name `xml:"brand_starshop_rpt_target_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + ErrorParam string `json:"error_param,omitempty" xml:"error_param,omitempty"` + // 返回结果 + CampaignRptList []TaobaoBrandStarshopRptTargetGetResult `json:"campaign_rpt_list,omitempty" xml:"campaign_rpt_list>taobao_brand_starshop_rpt_target_get_result,omitempty"` +} diff --git a/model/brandhub/TaobaoBrandStarshopRptTargetGetResponse.go b/model/brandhub/TaobaoBrandStarshopRptTargetGetResponse.go deleted file mode 100644 index 83b50d26d8..0000000000 --- a/model/brandhub/TaobaoBrandStarshopRptTargetGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package brandhub - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -明星店铺定向维度报表 API返回值 -taobao.brand.starshop.rpt.target.get - -获取明星店铺定向维度分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 -*/ -type TaobaoBrandStarshopRptTargetGetAPIResponse struct { - model.CommonResponse - TaobaoBrandStarshopRptTargetGetResponse -} - -// 明星店铺定向维度报表 成功返回结果 -type TaobaoBrandStarshopRptTargetGetResponse struct { - XMLName xml.Name `xml:"brand_starshop_rpt_target_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - ErrorParam string `json:"error_param,omitempty" xml:"error_param,omitempty"` - // 返回结果 - CampaignRptList []TaobaoBrandStarshopRptTargetGetResult `json:"campaign_rpt_list,omitempty" xml:"campaign_rpt_list>taobao_brand_starshop_rpt_target_get_result,omitempty"` -} diff --git a/model/brandhub/TaobaoBrandStartshopRptAccountGetAPIRequest.go b/model/brandhub/TaobaoBrandStartshopRptAccountGetAPIRequest.go new file mode 100644 index 0000000000..c23b0b446f --- /dev/null +++ b/model/brandhub/TaobaoBrandStartshopRptAccountGetAPIRequest.go @@ -0,0 +1,94 @@ +package brandhub + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +明星店铺账户报表数据查询 API请求 +taobao.brand.startshop.rpt.account.get + +获取明星店铺广告主账户整体报表数据,只能查询近90天内的数据,包括展现量,点击量等 +*/ +type TaobaoBrandStartshopRptAccountGetAPIRequest struct { + model.Params + // 流量类型 1: PC站内, 2: PC站外 , 4: 无线站内, 5: 无线站外,支持多种一起查询,如1,2,4,5 + _trafficType string + // 默认15天 + _effect string + // 开始时间(最多可查询最近90天) + _endDate string + // 截至时间(最晚到昨天) + _startDate string +} + +// 初始化TaobaoBrandStartshopRptAccountGetAPIRequest对象 +func NewTaobaoBrandStartshopRptAccountGetRequest() *TaobaoBrandStartshopRptAccountGetAPIRequest{ + return &TaobaoBrandStartshopRptAccountGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBrandStartshopRptAccountGetAPIRequest) GetApiMethodName() string { + return "taobao.brand.startshop.rpt.account.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBrandStartshopRptAccountGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TrafficType Setter +// 流量类型 1: PC站内, 2: PC站外 , 4: 无线站内, 5: 无线站外,支持多种一起查询,如1,2,4,5 +func (r *TaobaoBrandStartshopRptAccountGetAPIRequest) SetTrafficType(_trafficType string) error { + r._trafficType = _trafficType + r.Set("traffic_type", _trafficType) + return nil +} + +// TrafficType Getter +func (r TaobaoBrandStartshopRptAccountGetAPIRequest) GetTrafficType() string { + return r._trafficType +} +// Effect Setter +// 默认15天 +func (r *TaobaoBrandStartshopRptAccountGetAPIRequest) SetEffect(_effect string) error { + r._effect = _effect + r.Set("effect", _effect) + return nil +} + +// Effect Getter +func (r TaobaoBrandStartshopRptAccountGetAPIRequest) GetEffect() string { + return r._effect +} +// EndDate Setter +// 开始时间(最多可查询最近90天) +func (r *TaobaoBrandStartshopRptAccountGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoBrandStartshopRptAccountGetAPIRequest) GetEndDate() string { + return r._endDate +} +// StartDate Setter +// 截至时间(最晚到昨天) +func (r *TaobaoBrandStartshopRptAccountGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoBrandStartshopRptAccountGetAPIRequest) GetStartDate() string { + return r._startDate +} diff --git a/model/brandhub/TaobaoBrandStartshopRptAccountGetAPIResponse.go b/model/brandhub/TaobaoBrandStartshopRptAccountGetAPIResponse.go new file mode 100644 index 0000000000..982c1ba4ba --- /dev/null +++ b/model/brandhub/TaobaoBrandStartshopRptAccountGetAPIResponse.go @@ -0,0 +1,29 @@ +package brandhub + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +明星店铺账户报表数据查询 API返回值 +taobao.brand.startshop.rpt.account.get + +获取明星店铺广告主账户整体报表数据,只能查询近90天内的数据,包括展现量,点击量等 +*/ +type TaobaoBrandStartshopRptAccountGetAPIResponse struct { + model.CommonResponse + TaobaoBrandStartshopRptAccountGetAPIResponseModel +} + +// 明星店铺账户报表数据查询 成功返回结果 +type TaobaoBrandStartshopRptAccountGetAPIResponseModel struct { + XMLName xml.Name `xml:"brand_startshop_rpt_account_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + ErrorParam string `json:"error_param,omitempty" xml:"error_param,omitempty"` + // result + AdvertiserRptList []TaobaoBrandStartshopRptAccountGetResult `json:"advertiser_rpt_list,omitempty" xml:"advertiser_rpt_list>taobao_brand_startshop_rpt_account_get_result,omitempty"` +} diff --git a/model/brandhub/TaobaoBrandStartshopRptAccountGetResponse.go b/model/brandhub/TaobaoBrandStartshopRptAccountGetResponse.go deleted file mode 100644 index df008f6b23..0000000000 --- a/model/brandhub/TaobaoBrandStartshopRptAccountGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package brandhub - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -明星店铺账户报表数据查询 API返回值 -taobao.brand.startshop.rpt.account.get - -获取明星店铺广告主账户整体报表数据,只能查询近90天内的数据,包括展现量,点击量等 -*/ -type TaobaoBrandStartshopRptAccountGetAPIResponse struct { - model.CommonResponse - TaobaoBrandStartshopRptAccountGetResponse -} - -// 明星店铺账户报表数据查询 成功返回结果 -type TaobaoBrandStartshopRptAccountGetResponse struct { - XMLName xml.Name `xml:"brand_startshop_rpt_account_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - ErrorParam string `json:"error_param,omitempty" xml:"error_param,omitempty"` - // result - AdvertiserRptList []TaobaoBrandStartshopRptAccountGetResult `json:"advertiser_rpt_list,omitempty" xml:"advertiser_rpt_list>taobao_brand_startshop_rpt_account_get_result,omitempty"` -} diff --git a/model/brandhub/TaobaoBrandStartshopRptAdgroupGetAPIRequest.go b/model/brandhub/TaobaoBrandStartshopRptAdgroupGetAPIRequest.go new file mode 100644 index 0000000000..003cb26193 --- /dev/null +++ b/model/brandhub/TaobaoBrandStartshopRptAdgroupGetAPIRequest.go @@ -0,0 +1,122 @@ +package brandhub + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +明星店铺推广单元报表数据查询 API请求 +taobao.brand.startshop.rpt.adgroup.get + +获取明星店铺广告adgroup分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 +*/ +type TaobaoBrandStartshopRptAdgroupGetAPIRequest struct { + model.Params + // 流量类型 1: PC站内, 2: PC站外 , 4: 无线站内, 5: 无线站外,支持多种一起查询,如1,2,4,5 + _trafficType string + // 转化周期默认15天,3,7,15 + _effect int64 + // 当前页数 + _pageIndex string + // 每页条数 + _pageSize string + // 开始时间(最多可查询最近90天) + _startDate string + // 截至时间(最晚到昨天) + _endDate string +} + +// 初始化TaobaoBrandStartshopRptAdgroupGetAPIRequest对象 +func NewTaobaoBrandStartshopRptAdgroupGetRequest() *TaobaoBrandStartshopRptAdgroupGetAPIRequest{ + return &TaobaoBrandStartshopRptAdgroupGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBrandStartshopRptAdgroupGetAPIRequest) GetApiMethodName() string { + return "taobao.brand.startshop.rpt.adgroup.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBrandStartshopRptAdgroupGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TrafficType Setter +// 流量类型 1: PC站内, 2: PC站外 , 4: 无线站内, 5: 无线站外,支持多种一起查询,如1,2,4,5 +func (r *TaobaoBrandStartshopRptAdgroupGetAPIRequest) SetTrafficType(_trafficType string) error { + r._trafficType = _trafficType + r.Set("traffic_type", _trafficType) + return nil +} + +// TrafficType Getter +func (r TaobaoBrandStartshopRptAdgroupGetAPIRequest) GetTrafficType() string { + return r._trafficType +} +// Effect Setter +// 转化周期默认15天,3,7,15 +func (r *TaobaoBrandStartshopRptAdgroupGetAPIRequest) SetEffect(_effect int64) error { + r._effect = _effect + r.Set("effect", _effect) + return nil +} + +// Effect Getter +func (r TaobaoBrandStartshopRptAdgroupGetAPIRequest) GetEffect() int64 { + return r._effect +} +// PageIndex Setter +// 当前页数 +func (r *TaobaoBrandStartshopRptAdgroupGetAPIRequest) SetPageIndex(_pageIndex string) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TaobaoBrandStartshopRptAdgroupGetAPIRequest) GetPageIndex() string { + return r._pageIndex +} +// PageSize Setter +// 每页条数 +func (r *TaobaoBrandStartshopRptAdgroupGetAPIRequest) SetPageSize(_pageSize string) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoBrandStartshopRptAdgroupGetAPIRequest) GetPageSize() string { + return r._pageSize +} +// StartDate Setter +// 开始时间(最多可查询最近90天) +func (r *TaobaoBrandStartshopRptAdgroupGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoBrandStartshopRptAdgroupGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 截至时间(最晚到昨天) +func (r *TaobaoBrandStartshopRptAdgroupGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoBrandStartshopRptAdgroupGetAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/brandhub/TaobaoBrandStartshopRptAdgroupGetAPIResponse.go b/model/brandhub/TaobaoBrandStartshopRptAdgroupGetAPIResponse.go new file mode 100644 index 0000000000..6030987163 --- /dev/null +++ b/model/brandhub/TaobaoBrandStartshopRptAdgroupGetAPIResponse.go @@ -0,0 +1,29 @@ +package brandhub + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +明星店铺推广单元报表数据查询 API返回值 +taobao.brand.startshop.rpt.adgroup.get + +获取明星店铺广告adgroup分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 +*/ +type TaobaoBrandStartshopRptAdgroupGetAPIResponse struct { + model.CommonResponse + TaobaoBrandStartshopRptAdgroupGetAPIResponseModel +} + +// 明星店铺推广单元报表数据查询 成功返回结果 +type TaobaoBrandStartshopRptAdgroupGetAPIResponseModel struct { + XMLName xml.Name `xml:"brand_startshop_rpt_adgroup_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + ErrorParam string `json:"error_param,omitempty" xml:"error_param,omitempty"` + // 返回结果 + CampaignRptList []TaobaoBrandStartshopRptAdgroupGetResult `json:"campaign_rpt_list,omitempty" xml:"campaign_rpt_list>taobao_brand_startshop_rpt_adgroup_get_result,omitempty"` +} diff --git a/model/brandhub/TaobaoBrandStartshopRptAdgroupGetResponse.go b/model/brandhub/TaobaoBrandStartshopRptAdgroupGetResponse.go deleted file mode 100644 index ccbed7a962..0000000000 --- a/model/brandhub/TaobaoBrandStartshopRptAdgroupGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package brandhub - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -明星店铺推广单元报表数据查询 API返回值 -taobao.brand.startshop.rpt.adgroup.get - -获取明星店铺广告adgroup分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 -*/ -type TaobaoBrandStartshopRptAdgroupGetAPIResponse struct { - model.CommonResponse - TaobaoBrandStartshopRptAdgroupGetResponse -} - -// 明星店铺推广单元报表数据查询 成功返回结果 -type TaobaoBrandStartshopRptAdgroupGetResponse struct { - XMLName xml.Name `xml:"brand_startshop_rpt_adgroup_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - ErrorParam string `json:"error_param,omitempty" xml:"error_param,omitempty"` - // 返回结果 - CampaignRptList []TaobaoBrandStartshopRptAdgroupGetResult `json:"campaign_rpt_list,omitempty" xml:"campaign_rpt_list>taobao_brand_startshop_rpt_adgroup_get_result,omitempty"` -} diff --git a/model/brandhub/TaobaoBrandStartshopRptCampaignGetAPIRequest.go b/model/brandhub/TaobaoBrandStartshopRptCampaignGetAPIRequest.go new file mode 100644 index 0000000000..68fbed08df --- /dev/null +++ b/model/brandhub/TaobaoBrandStartshopRptCampaignGetAPIRequest.go @@ -0,0 +1,94 @@ +package brandhub + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +明星店铺推广计划报表数据查询 API请求 +taobao.brand.startshop.rpt.campaign.get + +获取明星店铺广告campaign分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 +*/ +type TaobaoBrandStartshopRptCampaignGetAPIRequest struct { + model.Params + // 流量类型 1: PC站内, 2: PC站外 , 4: 无线站内, 5: 无线站外,支持多种一起查询,如1,2,4,5 + _traffictype string + // 查询开始时间(最多查询90天数据) + _startdate string + // 查询截至时间(最晚查询到昨天) + _enddate string + // 转化周期,默认15天,可选 3,7,15 + _effect int64 +} + +// 初始化TaobaoBrandStartshopRptCampaignGetAPIRequest对象 +func NewTaobaoBrandStartshopRptCampaignGetRequest() *TaobaoBrandStartshopRptCampaignGetAPIRequest{ + return &TaobaoBrandStartshopRptCampaignGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBrandStartshopRptCampaignGetAPIRequest) GetApiMethodName() string { + return "taobao.brand.startshop.rpt.campaign.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBrandStartshopRptCampaignGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Traffictype Setter +// 流量类型 1: PC站内, 2: PC站外 , 4: 无线站内, 5: 无线站外,支持多种一起查询,如1,2,4,5 +func (r *TaobaoBrandStartshopRptCampaignGetAPIRequest) SetTraffictype(_traffictype string) error { + r._traffictype = _traffictype + r.Set("traffictype", _traffictype) + return nil +} + +// Traffictype Getter +func (r TaobaoBrandStartshopRptCampaignGetAPIRequest) GetTraffictype() string { + return r._traffictype +} +// Startdate Setter +// 查询开始时间(最多查询90天数据) +func (r *TaobaoBrandStartshopRptCampaignGetAPIRequest) SetStartdate(_startdate string) error { + r._startdate = _startdate + r.Set("startdate", _startdate) + return nil +} + +// Startdate Getter +func (r TaobaoBrandStartshopRptCampaignGetAPIRequest) GetStartdate() string { + return r._startdate +} +// Enddate Setter +// 查询截至时间(最晚查询到昨天) +func (r *TaobaoBrandStartshopRptCampaignGetAPIRequest) SetEnddate(_enddate string) error { + r._enddate = _enddate + r.Set("enddate", _enddate) + return nil +} + +// Enddate Getter +func (r TaobaoBrandStartshopRptCampaignGetAPIRequest) GetEnddate() string { + return r._enddate +} +// Effect Setter +// 转化周期,默认15天,可选 3,7,15 +func (r *TaobaoBrandStartshopRptCampaignGetAPIRequest) SetEffect(_effect int64) error { + r._effect = _effect + r.Set("effect", _effect) + return nil +} + +// Effect Getter +func (r TaobaoBrandStartshopRptCampaignGetAPIRequest) GetEffect() int64 { + return r._effect +} diff --git a/model/brandhub/TaobaoBrandStartshopRptCampaignGetAPIResponse.go b/model/brandhub/TaobaoBrandStartshopRptCampaignGetAPIResponse.go new file mode 100644 index 0000000000..c3780c65ea --- /dev/null +++ b/model/brandhub/TaobaoBrandStartshopRptCampaignGetAPIResponse.go @@ -0,0 +1,29 @@ +package brandhub + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +明星店铺推广计划报表数据查询 API返回值 +taobao.brand.startshop.rpt.campaign.get + +获取明星店铺广告campaign分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 +*/ +type TaobaoBrandStartshopRptCampaignGetAPIResponse struct { + model.CommonResponse + TaobaoBrandStartshopRptCampaignGetAPIResponseModel +} + +// 明星店铺推广计划报表数据查询 成功返回结果 +type TaobaoBrandStartshopRptCampaignGetAPIResponseModel struct { + XMLName xml.Name `xml:"brand_startshop_rpt_campaign_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + ErrorParam string `json:"error_param,omitempty" xml:"error_param,omitempty"` + // 返回结果 + CampaignRptList []TaobaoBrandStartshopRptCampaignGetResult `json:"campaign_rpt_list,omitempty" xml:"campaign_rpt_list>taobao_brand_startshop_rpt_campaign_get_result,omitempty"` +} diff --git a/model/brandhub/TaobaoBrandStartshopRptCampaignGetResponse.go b/model/brandhub/TaobaoBrandStartshopRptCampaignGetResponse.go deleted file mode 100644 index 20d40ad292..0000000000 --- a/model/brandhub/TaobaoBrandStartshopRptCampaignGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package brandhub - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -明星店铺推广计划报表数据查询 API返回值 -taobao.brand.startshop.rpt.campaign.get - -获取明星店铺广告campaign分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 -*/ -type TaobaoBrandStartshopRptCampaignGetAPIResponse struct { - model.CommonResponse - TaobaoBrandStartshopRptCampaignGetResponse -} - -// 明星店铺推广计划报表数据查询 成功返回结果 -type TaobaoBrandStartshopRptCampaignGetResponse struct { - XMLName xml.Name `xml:"brand_startshop_rpt_campaign_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - ErrorParam string `json:"error_param,omitempty" xml:"error_param,omitempty"` - // 返回结果 - CampaignRptList []TaobaoBrandStartshopRptCampaignGetResult `json:"campaign_rpt_list,omitempty" xml:"campaign_rpt_list>taobao_brand_startshop_rpt_campaign_get_result,omitempty"` -} diff --git a/model/brandhub/TaobaoBrandStartshopRptCreativeGetAPIRequest.go b/model/brandhub/TaobaoBrandStartshopRptCreativeGetAPIRequest.go new file mode 100644 index 0000000000..e928e4ee2a --- /dev/null +++ b/model/brandhub/TaobaoBrandStartshopRptCreativeGetAPIRequest.go @@ -0,0 +1,122 @@ +package brandhub + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +明星店铺创意报表数据查询 API请求 +taobao.brand.startshop.rpt.creative.get + +获取明星店铺广告creative分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 +*/ +type TaobaoBrandStartshopRptCreativeGetAPIRequest struct { + model.Params + // 流量类型 1: PC站内, 2: PC站外 , 4: 无线站内, 5: 无线站外,支持多种一起查询,如1,2,4,5 + _trafficType string + // 当前页数 + _pageIndex string + // 每页条数 + _pageSize string + // 转化周期,默认15, 3,7,15 + _effect string + // 开始日期(最多查询1个月的数据) + _startDate string + // 截至日期(最晚到昨天) + _endDate string +} + +// 初始化TaobaoBrandStartshopRptCreativeGetAPIRequest对象 +func NewTaobaoBrandStartshopRptCreativeGetRequest() *TaobaoBrandStartshopRptCreativeGetAPIRequest{ + return &TaobaoBrandStartshopRptCreativeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBrandStartshopRptCreativeGetAPIRequest) GetApiMethodName() string { + return "taobao.brand.startshop.rpt.creative.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBrandStartshopRptCreativeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TrafficType Setter +// 流量类型 1: PC站内, 2: PC站外 , 4: 无线站内, 5: 无线站外,支持多种一起查询,如1,2,4,5 +func (r *TaobaoBrandStartshopRptCreativeGetAPIRequest) SetTrafficType(_trafficType string) error { + r._trafficType = _trafficType + r.Set("traffic_type", _trafficType) + return nil +} + +// TrafficType Getter +func (r TaobaoBrandStartshopRptCreativeGetAPIRequest) GetTrafficType() string { + return r._trafficType +} +// PageIndex Setter +// 当前页数 +func (r *TaobaoBrandStartshopRptCreativeGetAPIRequest) SetPageIndex(_pageIndex string) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TaobaoBrandStartshopRptCreativeGetAPIRequest) GetPageIndex() string { + return r._pageIndex +} +// PageSize Setter +// 每页条数 +func (r *TaobaoBrandStartshopRptCreativeGetAPIRequest) SetPageSize(_pageSize string) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoBrandStartshopRptCreativeGetAPIRequest) GetPageSize() string { + return r._pageSize +} +// Effect Setter +// 转化周期,默认15, 3,7,15 +func (r *TaobaoBrandStartshopRptCreativeGetAPIRequest) SetEffect(_effect string) error { + r._effect = _effect + r.Set("effect", _effect) + return nil +} + +// Effect Getter +func (r TaobaoBrandStartshopRptCreativeGetAPIRequest) GetEffect() string { + return r._effect +} +// StartDate Setter +// 开始日期(最多查询1个月的数据) +func (r *TaobaoBrandStartshopRptCreativeGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoBrandStartshopRptCreativeGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 截至日期(最晚到昨天) +func (r *TaobaoBrandStartshopRptCreativeGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoBrandStartshopRptCreativeGetAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/brandhub/TaobaoBrandStartshopRptCreativeGetAPIResponse.go b/model/brandhub/TaobaoBrandStartshopRptCreativeGetAPIResponse.go new file mode 100644 index 0000000000..80ce4c3507 --- /dev/null +++ b/model/brandhub/TaobaoBrandStartshopRptCreativeGetAPIResponse.go @@ -0,0 +1,29 @@ +package brandhub + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +明星店铺创意报表数据查询 API返回值 +taobao.brand.startshop.rpt.creative.get + +获取明星店铺广告creative分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 +*/ +type TaobaoBrandStartshopRptCreativeGetAPIResponse struct { + model.CommonResponse + TaobaoBrandStartshopRptCreativeGetAPIResponseModel +} + +// 明星店铺创意报表数据查询 成功返回结果 +type TaobaoBrandStartshopRptCreativeGetAPIResponseModel struct { + XMLName xml.Name `xml:"brand_startshop_rpt_creative_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + ErrorParam string `json:"error_param,omitempty" xml:"error_param,omitempty"` + // 返回结果 + CampaignRptList []TaobaoBrandStartshopRptCreativeGetResult `json:"campaign_rpt_list,omitempty" xml:"campaign_rpt_list>taobao_brand_startshop_rpt_creative_get_result,omitempty"` +} diff --git a/model/brandhub/TaobaoBrandStartshopRptCreativeGetResponse.go b/model/brandhub/TaobaoBrandStartshopRptCreativeGetResponse.go deleted file mode 100644 index 2e4916d5dd..0000000000 --- a/model/brandhub/TaobaoBrandStartshopRptCreativeGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package brandhub - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -明星店铺创意报表数据查询 API返回值 -taobao.brand.startshop.rpt.creative.get - -获取明星店铺广告creative分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 -*/ -type TaobaoBrandStartshopRptCreativeGetAPIResponse struct { - model.CommonResponse - TaobaoBrandStartshopRptCreativeGetResponse -} - -// 明星店铺创意报表数据查询 成功返回结果 -type TaobaoBrandStartshopRptCreativeGetResponse struct { - XMLName xml.Name `xml:"brand_startshop_rpt_creative_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - ErrorParam string `json:"error_param,omitempty" xml:"error_param,omitempty"` - // 返回结果 - CampaignRptList []TaobaoBrandStartshopRptCreativeGetResult `json:"campaign_rpt_list,omitempty" xml:"campaign_rpt_list>taobao_brand_startshop_rpt_creative_get_result,omitempty"` -} diff --git a/model/brandhub/TaobaoBrandStartshopRptWordpackageGetAPIRequest.go b/model/brandhub/TaobaoBrandStartshopRptWordpackageGetAPIRequest.go new file mode 100644 index 0000000000..c8fd2eb230 --- /dev/null +++ b/model/brandhub/TaobaoBrandStartshopRptWordpackageGetAPIRequest.go @@ -0,0 +1,122 @@ +package brandhub + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +明星店铺品牌流量包报表数据查询 API请求 +taobao.brand.startshop.rpt.wordpackage.get + +获取明星店铺广告词包分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 +*/ +type TaobaoBrandStartshopRptWordpackageGetAPIRequest struct { + model.Params + // 开始日期 + _startDate string + // 结束日期 + _endDate string + // 转化周期 + _effect string + // 流量类型 + _trafficType string + // 每页显示条数(0,200] + _pageSize string + // 当前页数 ,从1开始 + _pageIndex string +} + +// 初始化TaobaoBrandStartshopRptWordpackageGetAPIRequest对象 +func NewTaobaoBrandStartshopRptWordpackageGetRequest() *TaobaoBrandStartshopRptWordpackageGetAPIRequest{ + return &TaobaoBrandStartshopRptWordpackageGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBrandStartshopRptWordpackageGetAPIRequest) GetApiMethodName() string { + return "taobao.brand.startshop.rpt.wordpackage.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBrandStartshopRptWordpackageGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartDate Setter +// 开始日期 +func (r *TaobaoBrandStartshopRptWordpackageGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoBrandStartshopRptWordpackageGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 结束日期 +func (r *TaobaoBrandStartshopRptWordpackageGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoBrandStartshopRptWordpackageGetAPIRequest) GetEndDate() string { + return r._endDate +} +// Effect Setter +// 转化周期 +func (r *TaobaoBrandStartshopRptWordpackageGetAPIRequest) SetEffect(_effect string) error { + r._effect = _effect + r.Set("effect", _effect) + return nil +} + +// Effect Getter +func (r TaobaoBrandStartshopRptWordpackageGetAPIRequest) GetEffect() string { + return r._effect +} +// TrafficType Setter +// 流量类型 +func (r *TaobaoBrandStartshopRptWordpackageGetAPIRequest) SetTrafficType(_trafficType string) error { + r._trafficType = _trafficType + r.Set("traffic_type", _trafficType) + return nil +} + +// TrafficType Getter +func (r TaobaoBrandStartshopRptWordpackageGetAPIRequest) GetTrafficType() string { + return r._trafficType +} +// PageSize Setter +// 每页显示条数(0,200] +func (r *TaobaoBrandStartshopRptWordpackageGetAPIRequest) SetPageSize(_pageSize string) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoBrandStartshopRptWordpackageGetAPIRequest) GetPageSize() string { + return r._pageSize +} +// PageIndex Setter +// 当前页数 ,从1开始 +func (r *TaobaoBrandStartshopRptWordpackageGetAPIRequest) SetPageIndex(_pageIndex string) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TaobaoBrandStartshopRptWordpackageGetAPIRequest) GetPageIndex() string { + return r._pageIndex +} diff --git a/model/brandhub/TaobaoBrandStartshopRptWordpackageGetAPIResponse.go b/model/brandhub/TaobaoBrandStartshopRptWordpackageGetAPIResponse.go new file mode 100644 index 0000000000..c88cf28b99 --- /dev/null +++ b/model/brandhub/TaobaoBrandStartshopRptWordpackageGetAPIResponse.go @@ -0,0 +1,29 @@ +package brandhub + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +明星店铺品牌流量包报表数据查询 API返回值 +taobao.brand.startshop.rpt.wordpackage.get + +获取明星店铺广告词包分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 +*/ +type TaobaoBrandStartshopRptWordpackageGetAPIResponse struct { + model.CommonResponse + TaobaoBrandStartshopRptWordpackageGetAPIResponseModel +} + +// 明星店铺品牌流量包报表数据查询 成功返回结果 +type TaobaoBrandStartshopRptWordpackageGetAPIResponseModel struct { + XMLName xml.Name `xml:"brand_startshop_rpt_wordpackage_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + ErrorParam string `json:"error_param,omitempty" xml:"error_param,omitempty"` + // 返回结果 + CampaignRptList []TaobaoBrandStartshopRptWordpackageGetResult `json:"campaign_rpt_list,omitempty" xml:"campaign_rpt_list>taobao_brand_startshop_rpt_wordpackage_get_result,omitempty"` +} diff --git a/model/brandhub/TaobaoBrandStartshopRptWordpackageGetResponse.go b/model/brandhub/TaobaoBrandStartshopRptWordpackageGetResponse.go deleted file mode 100644 index 26329be6ac..0000000000 --- a/model/brandhub/TaobaoBrandStartshopRptWordpackageGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package brandhub - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -明星店铺品牌流量包报表数据查询 API返回值 -taobao.brand.startshop.rpt.wordpackage.get - -获取明星店铺广告词包分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 -*/ -type TaobaoBrandStartshopRptWordpackageGetAPIResponse struct { - model.CommonResponse - TaobaoBrandStartshopRptWordpackageGetResponse -} - -// 明星店铺品牌流量包报表数据查询 成功返回结果 -type TaobaoBrandStartshopRptWordpackageGetResponse struct { - XMLName xml.Name `xml:"brand_startshop_rpt_wordpackage_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - ErrorParam string `json:"error_param,omitempty" xml:"error_param,omitempty"` - // 返回结果 - CampaignRptList []TaobaoBrandStartshopRptWordpackageGetResult `json:"campaign_rpt_list,omitempty" xml:"campaign_rpt_list>taobao_brand_startshop_rpt_wordpackage_get_result,omitempty"` -} diff --git a/model/brandhub/TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest.go b/model/brandhub/TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest.go new file mode 100644 index 0000000000..40f6096dd1 --- /dev/null +++ b/model/brandhub/TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest.go @@ -0,0 +1,122 @@ +package brandhub + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌号品牌特秀单元报表数据查询 API请求 +taobao.brandhub.specialshow.rpt.adgroup.get + +获取品牌号品牌特秀广告adgroup分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 +*/ +type TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest struct { + model.Params + // 开始时间(最多可查询最近90天) + _startDate string + // 截至时间(最晚到昨天) + _endDate string + // 指定计划id + _solutionId string + // 指定任务id + _taskId string + // 当前页数 + _pageIndex string + // 可选页数 + _pageSize string +} + +// 初始化TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest对象 +func NewTaobaoBrandhubSpecialshowRptAdgroupGetRequest() *TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest{ + return &TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest) GetApiMethodName() string { + return "taobao.brandhub.specialshow.rpt.adgroup.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartDate Setter +// 开始时间(最多可查询最近90天) +func (r *TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 截至时间(最晚到昨天) +func (r *TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest) GetEndDate() string { + return r._endDate +} +// SolutionId Setter +// 指定计划id +func (r *TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest) SetSolutionId(_solutionId string) error { + r._solutionId = _solutionId + r.Set("solution_id", _solutionId) + return nil +} + +// SolutionId Getter +func (r TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest) GetSolutionId() string { + return r._solutionId +} +// TaskId Setter +// 指定任务id +func (r *TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest) SetTaskId(_taskId string) error { + r._taskId = _taskId + r.Set("task_id", _taskId) + return nil +} + +// TaskId Getter +func (r TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest) GetTaskId() string { + return r._taskId +} +// PageIndex Setter +// 当前页数 +func (r *TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest) SetPageIndex(_pageIndex string) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest) GetPageIndex() string { + return r._pageIndex +} +// PageSize Setter +// 可选页数 +func (r *TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest) SetPageSize(_pageSize string) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoBrandhubSpecialshowRptAdgroupGetAPIRequest) GetPageSize() string { + return r._pageSize +} diff --git a/model/brandhub/TaobaoBrandhubSpecialshowRptAdgroupGetAPIResponse.go b/model/brandhub/TaobaoBrandhubSpecialshowRptAdgroupGetAPIResponse.go new file mode 100644 index 0000000000..46eb22dbbe --- /dev/null +++ b/model/brandhub/TaobaoBrandhubSpecialshowRptAdgroupGetAPIResponse.go @@ -0,0 +1,29 @@ +package brandhub + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌号品牌特秀单元报表数据查询 API返回值 +taobao.brandhub.specialshow.rpt.adgroup.get + +获取品牌号品牌特秀广告adgroup分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 +*/ +type TaobaoBrandhubSpecialshowRptAdgroupGetAPIResponse struct { + model.CommonResponse + TaobaoBrandhubSpecialshowRptAdgroupGetAPIResponseModel +} + +// 品牌号品牌特秀单元报表数据查询 成功返回结果 +type TaobaoBrandhubSpecialshowRptAdgroupGetAPIResponseModel struct { + XMLName xml.Name `xml:"brandhub_specialshow_rpt_adgroup_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + ErrorParam string `json:"error_param,omitempty" xml:"error_param,omitempty"` + // 返回结果 + AdgroupRptList []TaobaoBrandhubSpecialshowRptAdgroupGetResult `json:"adgroup_rpt_list,omitempty" xml:"adgroup_rpt_list>taobao_brandhub_specialshow_rpt_adgroup_get_result,omitempty"` +} diff --git a/model/brandhub/TaobaoBrandhubSpecialshowRptAdgroupGetResponse.go b/model/brandhub/TaobaoBrandhubSpecialshowRptAdgroupGetResponse.go deleted file mode 100644 index 217c670c8a..0000000000 --- a/model/brandhub/TaobaoBrandhubSpecialshowRptAdgroupGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package brandhub - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -品牌号品牌特秀单元报表数据查询 API返回值 -taobao.brandhub.specialshow.rpt.adgroup.get - -获取品牌号品牌特秀广告adgroup分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 -*/ -type TaobaoBrandhubSpecialshowRptAdgroupGetAPIResponse struct { - model.CommonResponse - TaobaoBrandhubSpecialshowRptAdgroupGetResponse -} - -// 品牌号品牌特秀单元报表数据查询 成功返回结果 -type TaobaoBrandhubSpecialshowRptAdgroupGetResponse struct { - XMLName xml.Name `xml:"brandhub_specialshow_rpt_adgroup_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - ErrorParam string `json:"error_param,omitempty" xml:"error_param,omitempty"` - // 返回结果 - AdgroupRptList []TaobaoBrandhubSpecialshowRptAdgroupGetResult `json:"adgroup_rpt_list,omitempty" xml:"adgroup_rpt_list>taobao_brandhub_specialshow_rpt_adgroup_get_result,omitempty"` -} diff --git a/model/brandhub/TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest.go b/model/brandhub/TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest.go new file mode 100644 index 0000000000..65053e0833 --- /dev/null +++ b/model/brandhub/TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest.go @@ -0,0 +1,108 @@ +package brandhub + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌号品牌特秀计划报表数据查询 API请求 +taobao.brandhub.specialshow.rpt.campaign.get + +获取品牌号品牌特秀广告campaign分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 +*/ +type TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest struct { + model.Params + // 开始时间(最多可查询最近90天) + _startDate string + // 指定计划id + _solutionId string + // 截至时间(最晚到昨天) + _endDate string + // 当前页数 + _pageIndex string + // 每页条数 + _pageSize string +} + +// 初始化TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest对象 +func NewTaobaoBrandhubSpecialshowRptCampaignGetRequest() *TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest{ + return &TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest) GetApiMethodName() string { + return "taobao.brandhub.specialshow.rpt.campaign.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartDate Setter +// 开始时间(最多可查询最近90天) +func (r *TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest) GetStartDate() string { + return r._startDate +} +// SolutionId Setter +// 指定计划id +func (r *TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest) SetSolutionId(_solutionId string) error { + r._solutionId = _solutionId + r.Set("solution_id", _solutionId) + return nil +} + +// SolutionId Getter +func (r TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest) GetSolutionId() string { + return r._solutionId +} +// EndDate Setter +// 截至时间(最晚到昨天) +func (r *TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest) GetEndDate() string { + return r._endDate +} +// PageIndex Setter +// 当前页数 +func (r *TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest) SetPageIndex(_pageIndex string) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest) GetPageIndex() string { + return r._pageIndex +} +// PageSize Setter +// 每页条数 +func (r *TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest) SetPageSize(_pageSize string) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoBrandhubSpecialshowRptCampaignGetAPIRequest) GetPageSize() string { + return r._pageSize +} diff --git a/model/brandhub/TaobaoBrandhubSpecialshowRptCampaignGetAPIResponse.go b/model/brandhub/TaobaoBrandhubSpecialshowRptCampaignGetAPIResponse.go new file mode 100644 index 0000000000..427e141fd3 --- /dev/null +++ b/model/brandhub/TaobaoBrandhubSpecialshowRptCampaignGetAPIResponse.go @@ -0,0 +1,29 @@ +package brandhub + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌号品牌特秀计划报表数据查询 API返回值 +taobao.brandhub.specialshow.rpt.campaign.get + +获取品牌号品牌特秀广告campaign分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 +*/ +type TaobaoBrandhubSpecialshowRptCampaignGetAPIResponse struct { + model.CommonResponse + TaobaoBrandhubSpecialshowRptCampaignGetAPIResponseModel +} + +// 品牌号品牌特秀计划报表数据查询 成功返回结果 +type TaobaoBrandhubSpecialshowRptCampaignGetAPIResponseModel struct { + XMLName xml.Name `xml:"brandhub_specialshow_rpt_campaign_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + ErrorParam string `json:"error_param,omitempty" xml:"error_param,omitempty"` + // 返回结果 + CampaignRptList []TaobaoBrandhubSpecialshowRptCampaignGetResult `json:"campaign_rpt_list,omitempty" xml:"campaign_rpt_list>taobao_brandhub_specialshow_rpt_campaign_get_result,omitempty"` +} diff --git a/model/brandhub/TaobaoBrandhubSpecialshowRptCampaignGetResponse.go b/model/brandhub/TaobaoBrandhubSpecialshowRptCampaignGetResponse.go deleted file mode 100644 index fa21148033..0000000000 --- a/model/brandhub/TaobaoBrandhubSpecialshowRptCampaignGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package brandhub - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -品牌号品牌特秀计划报表数据查询 API返回值 -taobao.brandhub.specialshow.rpt.campaign.get - -获取品牌号品牌特秀广告campaign分日报表数据,只能查询近90天内的数据,包括展现量,点击量等 -*/ -type TaobaoBrandhubSpecialshowRptCampaignGetAPIResponse struct { - model.CommonResponse - TaobaoBrandhubSpecialshowRptCampaignGetResponse -} - -// 品牌号品牌特秀计划报表数据查询 成功返回结果 -type TaobaoBrandhubSpecialshowRptCampaignGetResponse struct { - XMLName xml.Name `xml:"brandhub_specialshow_rpt_campaign_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - ErrorParam string `json:"error_param,omitempty" xml:"error_param,omitempty"` - // 返回结果 - CampaignRptList []TaobaoBrandhubSpecialshowRptCampaignGetResult `json:"campaign_rpt_list,omitempty" xml:"campaign_rpt_list>taobao_brandhub_specialshow_rpt_campaign_get_result,omitempty"` -} diff --git a/model/btrip/AlitripBtipCostCenterQueryAPIRequest.go b/model/btrip/AlitripBtipCostCenterQueryAPIRequest.go new file mode 100644 index 0000000000..7fb0aa4bb1 --- /dev/null +++ b/model/btrip/AlitripBtipCostCenterQueryAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询外部成本中心 API请求 +alitrip.btip.cost.center.query + +查询外部成本中心 +*/ +type AlitripBtipCostCenterQueryAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenCostCenterQueryRq +} + +// 初始化AlitripBtipCostCenterQueryAPIRequest对象 +func NewAlitripBtipCostCenterQueryRequest() *AlitripBtipCostCenterQueryAPIRequest{ + return &AlitripBtipCostCenterQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtipCostCenterQueryAPIRequest) GetApiMethodName() string { + return "alitrip.btip.cost.center.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtipCostCenterQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtipCostCenterQueryAPIRequest) SetRq(_rq *OpenCostCenterQueryRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtipCostCenterQueryAPIRequest) GetRq() *OpenCostCenterQueryRq { + return r._rq +} diff --git a/model/btrip/AlitripBtipCostCenterQueryAPIResponse.go b/model/btrip/AlitripBtipCostCenterQueryAPIResponse.go new file mode 100644 index 0000000000..8225a76fec --- /dev/null +++ b/model/btrip/AlitripBtipCostCenterQueryAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询外部成本中心 API返回值 +alitrip.btip.cost.center.query + +查询外部成本中心 +*/ +type AlitripBtipCostCenterQueryAPIResponse struct { + model.CommonResponse + AlitripBtipCostCenterQueryAPIResponseModel +} + +// 查询外部成本中心 成功返回结果 +type AlitripBtipCostCenterQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btip_cost_center_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtipCostCenterQueryResponse.go b/model/btrip/AlitripBtipCostCenterQueryResponse.go deleted file mode 100644 index 07ad724100..0000000000 --- a/model/btrip/AlitripBtipCostCenterQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询外部成本中心 API返回值 -alitrip.btip.cost.center.query - -查询外部成本中心 -*/ -type AlitripBtipCostCenterQueryAPIResponse struct { - model.CommonResponse - AlitripBtipCostCenterQueryResponse -} - -// 查询外部成本中心 成功返回结果 -type AlitripBtipCostCenterQueryResponse struct { - XMLName xml.Name `xml:"alitrip_btip_cost_center_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripApplyGetAPIRequest.go b/model/btrip/AlitripBtripApplyGetAPIRequest.go new file mode 100644 index 0000000000..907dd7f0fb --- /dev/null +++ b/model/btrip/AlitripBtripApplyGetAPIRequest.go @@ -0,0 +1,94 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单个审批单 API请求 +alitrip.btrip.apply.get + +获取单个审批单的详情数据 +*/ +type AlitripBtripApplyGetAPIRequest struct { + model.Params + // 外部审批单id + _thirdpartApplyId string + // 阿里商旅审批单id + _applyId int64 + // 企业id + _corpId string + // 审批单展示id + _applyShowId string +} + +// 初始化AlitripBtripApplyGetAPIRequest对象 +func NewAlitripBtripApplyGetRequest() *AlitripBtripApplyGetAPIRequest{ + return &AlitripBtripApplyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripApplyGetAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.apply.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripApplyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ThirdpartApplyId Setter +// 外部审批单id +func (r *AlitripBtripApplyGetAPIRequest) SetThirdpartApplyId(_thirdpartApplyId string) error { + r._thirdpartApplyId = _thirdpartApplyId + r.Set("thirdpart_apply_id", _thirdpartApplyId) + return nil +} + +// ThirdpartApplyId Getter +func (r AlitripBtripApplyGetAPIRequest) GetThirdpartApplyId() string { + return r._thirdpartApplyId +} +// ApplyId Setter +// 阿里商旅审批单id +func (r *AlitripBtripApplyGetAPIRequest) SetApplyId(_applyId int64) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r AlitripBtripApplyGetAPIRequest) GetApplyId() int64 { + return r._applyId +} +// CorpId Setter +// 企业id +func (r *AlitripBtripApplyGetAPIRequest) SetCorpId(_corpId string) error { + r._corpId = _corpId + r.Set("corp_id", _corpId) + return nil +} + +// CorpId Getter +func (r AlitripBtripApplyGetAPIRequest) GetCorpId() string { + return r._corpId +} +// ApplyShowId Setter +// 审批单展示id +func (r *AlitripBtripApplyGetAPIRequest) SetApplyShowId(_applyShowId string) error { + r._applyShowId = _applyShowId + r.Set("apply_show_id", _applyShowId) + return nil +} + +// ApplyShowId Getter +func (r AlitripBtripApplyGetAPIRequest) GetApplyShowId() string { + return r._applyShowId +} diff --git a/model/btrip/AlitripBtripApplyGetAPIResponse.go b/model/btrip/AlitripBtripApplyGetAPIResponse.go new file mode 100644 index 0000000000..efab2667f0 --- /dev/null +++ b/model/btrip/AlitripBtripApplyGetAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单个审批单 API返回值 +alitrip.btrip.apply.get + +获取单个审批单的详情数据 +*/ +type AlitripBtripApplyGetAPIResponse struct { + model.CommonResponse + AlitripBtripApplyGetAPIResponseModel +} + +// 获取单个审批单 成功返回结果 +type AlitripBtripApplyGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_apply_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BtriphomeResultSupport `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripApplyGetResponse.go b/model/btrip/AlitripBtripApplyGetResponse.go deleted file mode 100644 index cdcc28ed51..0000000000 --- a/model/btrip/AlitripBtripApplyGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取单个审批单 API返回值 -alitrip.btrip.apply.get - -获取单个审批单的详情数据 -*/ -type AlitripBtripApplyGetAPIResponse struct { - model.CommonResponse - AlitripBtripApplyGetResponse -} - -// 获取单个审批单 成功返回结果 -type AlitripBtripApplyGetResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_apply_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BtriphomeResultSupport `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripApplySearchAPIRequest.go b/model/btrip/AlitripBtripApplySearchAPIRequest.go new file mode 100644 index 0000000000..fc1168070a --- /dev/null +++ b/model/btrip/AlitripBtripApplySearchAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索审批单 API请求 +alitrip.btrip.apply.search + +外部企业调用获取本企业审批单列表数据 +*/ +type AlitripBtripApplySearchAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenSearchRq +} + +// 初始化AlitripBtripApplySearchAPIRequest对象 +func NewAlitripBtripApplySearchRequest() *AlitripBtripApplySearchAPIRequest{ + return &AlitripBtripApplySearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripApplySearchAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.apply.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripApplySearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripApplySearchAPIRequest) SetRq(_rq *OpenSearchRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripApplySearchAPIRequest) GetRq() *OpenSearchRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripApplySearchAPIResponse.go b/model/btrip/AlitripBtripApplySearchAPIResponse.go new file mode 100644 index 0000000000..de5e53a2f6 --- /dev/null +++ b/model/btrip/AlitripBtripApplySearchAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索审批单 API返回值 +alitrip.btrip.apply.search + +外部企业调用获取本企业审批单列表数据 +*/ +type AlitripBtripApplySearchAPIResponse struct { + model.CommonResponse + AlitripBtripApplySearchAPIResponseModel +} + +// 搜索审批单 成功返回结果 +type AlitripBtripApplySearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_apply_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BtriphomeResultSupport `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripApplySearchResponse.go b/model/btrip/AlitripBtripApplySearchResponse.go deleted file mode 100644 index b32fa9a63a..0000000000 --- a/model/btrip/AlitripBtripApplySearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -搜索审批单 API返回值 -alitrip.btrip.apply.search - -外部企业调用获取本企业审批单列表数据 -*/ -type AlitripBtripApplySearchAPIResponse struct { - model.CommonResponse - AlitripBtripApplySearchResponse -} - -// 搜索审批单 成功返回结果 -type AlitripBtripApplySearchResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_apply_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BtriphomeResultSupport `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripApprovalModifyAPIRequest.go b/model/btrip/AlitripBtripApprovalModifyAPIRequest.go new file mode 100644 index 0000000000..ec2c7f5fa9 --- /dev/null +++ b/model/btrip/AlitripBtripApprovalModifyAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改审批单 API请求 +alitrip.btrip.approval.modify + +修改审批单 +*/ +type AlitripBtripApprovalModifyAPIRequest struct { + model.Params + // 申请单 + _addApplyRequest *OpenApiNewApplyRq +} + +// 初始化AlitripBtripApprovalModifyAPIRequest对象 +func NewAlitripBtripApprovalModifyRequest() *AlitripBtripApprovalModifyAPIRequest{ + return &AlitripBtripApprovalModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripApprovalModifyAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.approval.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripApprovalModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AddApplyRequest Setter +// 申请单 +func (r *AlitripBtripApprovalModifyAPIRequest) SetAddApplyRequest(_addApplyRequest *OpenApiNewApplyRq) error { + r._addApplyRequest = _addApplyRequest + r.Set("add_apply_request", _addApplyRequest) + return nil +} + +// AddApplyRequest Getter +func (r AlitripBtripApprovalModifyAPIRequest) GetAddApplyRequest() *OpenApiNewApplyRq { + return r._addApplyRequest +} diff --git a/model/btrip/AlitripBtripApprovalModifyAPIResponse.go b/model/btrip/AlitripBtripApprovalModifyAPIResponse.go new file mode 100644 index 0000000000..489e973eea --- /dev/null +++ b/model/btrip/AlitripBtripApprovalModifyAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改审批单 API返回值 +alitrip.btrip.approval.modify + +修改审批单 +*/ +type AlitripBtripApprovalModifyAPIResponse struct { + model.CommonResponse + AlitripBtripApprovalModifyAPIResponseModel +} + +// 修改审批单 成功返回结果 +type AlitripBtripApprovalModifyAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_approval_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BtripApplyResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripApprovalModifyResponse.go b/model/btrip/AlitripBtripApprovalModifyResponse.go deleted file mode 100644 index 100f68ebfc..0000000000 --- a/model/btrip/AlitripBtripApprovalModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改审批单 API返回值 -alitrip.btrip.approval.modify - -修改审批单 -*/ -type AlitripBtripApprovalModifyAPIResponse struct { - model.CommonResponse - AlitripBtripApprovalModifyResponse -} - -// 修改审批单 成功返回结果 -type AlitripBtripApprovalModifyResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_approval_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BtripApplyResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripApprovalNewAPIRequest.go b/model/btrip/AlitripBtripApprovalNewAPIRequest.go new file mode 100644 index 0000000000..4722be41eb --- /dev/null +++ b/model/btrip/AlitripBtripApprovalNewAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新建审批单 API请求 +alitrip.btrip.approval.new + +用户新建审批单 +*/ +type AlitripBtripApprovalNewAPIRequest struct { + model.Params + // 申请单 + _addApplyRequest *OpenAddApplyRq +} + +// 初始化AlitripBtripApprovalNewAPIRequest对象 +func NewAlitripBtripApprovalNewRequest() *AlitripBtripApprovalNewAPIRequest{ + return &AlitripBtripApprovalNewAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripApprovalNewAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.approval.new" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripApprovalNewAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AddApplyRequest Setter +// 申请单 +func (r *AlitripBtripApprovalNewAPIRequest) SetAddApplyRequest(_addApplyRequest *OpenAddApplyRq) error { + r._addApplyRequest = _addApplyRequest + r.Set("add_apply_request", _addApplyRequest) + return nil +} + +// AddApplyRequest Getter +func (r AlitripBtripApprovalNewAPIRequest) GetAddApplyRequest() *OpenAddApplyRq { + return r._addApplyRequest +} diff --git a/model/btrip/AlitripBtripApprovalNewAPIResponse.go b/model/btrip/AlitripBtripApprovalNewAPIResponse.go new file mode 100644 index 0000000000..cc7ecfb3b9 --- /dev/null +++ b/model/btrip/AlitripBtripApprovalNewAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新建审批单 API返回值 +alitrip.btrip.approval.new + +用户新建审批单 +*/ +type AlitripBtripApprovalNewAPIResponse struct { + model.CommonResponse + AlitripBtripApprovalNewAPIResponseModel +} + +// 新建审批单 成功返回结果 +type AlitripBtripApprovalNewAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_approval_new_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripApprovalNewResponse.go b/model/btrip/AlitripBtripApprovalNewResponse.go deleted file mode 100644 index 057c35c47f..0000000000 --- a/model/btrip/AlitripBtripApprovalNewResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新建审批单 API返回值 -alitrip.btrip.approval.new - -用户新建审批单 -*/ -type AlitripBtripApprovalNewAPIResponse struct { - model.CommonResponse - AlitripBtripApprovalNewResponse -} - -// 新建审批单 成功返回结果 -type AlitripBtripApprovalNewResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_approval_new_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripApprovalUpdateAPIRequest.go b/model/btrip/AlitripBtripApprovalUpdateAPIRequest.go new file mode 100644 index 0000000000..94a990ff0b --- /dev/null +++ b/model/btrip/AlitripBtripApprovalUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新审批单 API请求 +alitrip.btrip.approval.update + +更新审批单 +*/ +type AlitripBtripApprovalUpdateAPIRequest struct { + model.Params + // 审批请求对象 + _approveApplyRequest *OpenApproveApplyRq +} + +// 初始化AlitripBtripApprovalUpdateAPIRequest对象 +func NewAlitripBtripApprovalUpdateRequest() *AlitripBtripApprovalUpdateAPIRequest{ + return &AlitripBtripApprovalUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripApprovalUpdateAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.approval.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripApprovalUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApproveApplyRequest Setter +// 审批请求对象 +func (r *AlitripBtripApprovalUpdateAPIRequest) SetApproveApplyRequest(_approveApplyRequest *OpenApproveApplyRq) error { + r._approveApplyRequest = _approveApplyRequest + r.Set("approve_apply_request", _approveApplyRequest) + return nil +} + +// ApproveApplyRequest Getter +func (r AlitripBtripApprovalUpdateAPIRequest) GetApproveApplyRequest() *OpenApproveApplyRq { + return r._approveApplyRequest +} diff --git a/model/btrip/AlitripBtripApprovalUpdateAPIResponse.go b/model/btrip/AlitripBtripApprovalUpdateAPIResponse.go new file mode 100644 index 0000000000..b506c90875 --- /dev/null +++ b/model/btrip/AlitripBtripApprovalUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新审批单 API返回值 +alitrip.btrip.approval.update + +更新审批单 +*/ +type AlitripBtripApprovalUpdateAPIResponse struct { + model.CommonResponse + AlitripBtripApprovalUpdateAPIResponseModel +} + +// 更新审批单 成功返回结果 +type AlitripBtripApprovalUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_approval_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripApprovalUpdateResponse.go b/model/btrip/AlitripBtripApprovalUpdateResponse.go deleted file mode 100644 index f458733c92..0000000000 --- a/model/btrip/AlitripBtripApprovalUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新审批单 API返回值 -alitrip.btrip.approval.update - -更新审批单 -*/ -type AlitripBtripApprovalUpdateAPIResponse struct { - model.CommonResponse - AlitripBtripApprovalUpdateResponse -} - -// 更新审批单 成功返回结果 -type AlitripBtripApprovalUpdateResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_approval_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripCityCarApplyAddAPIRequest.go b/model/btrip/AlitripBtripCityCarApplyAddAPIRequest.go new file mode 100644 index 0000000000..27f36d734c --- /dev/null +++ b/model/btrip/AlitripBtripCityCarApplyAddAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +三方市内用车申请单同步 API请求 +alitrip.btrip.city.car.apply.add + +三方市内用车申请单同步 +*/ +type AlitripBtripCityCarApplyAddAPIRequest struct { + model.Params + // 入参对象 + _rq *CityCarApplyAddRq +} + +// 初始化AlitripBtripCityCarApplyAddAPIRequest对象 +func NewAlitripBtripCityCarApplyAddRequest() *AlitripBtripCityCarApplyAddAPIRequest{ + return &AlitripBtripCityCarApplyAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripCityCarApplyAddAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.city.car.apply.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripCityCarApplyAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参对象 +func (r *AlitripBtripCityCarApplyAddAPIRequest) SetRq(_rq *CityCarApplyAddRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripCityCarApplyAddAPIRequest) GetRq() *CityCarApplyAddRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripCityCarApplyAddAPIResponse.go b/model/btrip/AlitripBtripCityCarApplyAddAPIResponse.go new file mode 100644 index 0000000000..cd18b18f77 --- /dev/null +++ b/model/btrip/AlitripBtripCityCarApplyAddAPIResponse.go @@ -0,0 +1,31 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +三方市内用车申请单同步 API返回值 +alitrip.btrip.city.car.apply.add + +三方市内用车申请单同步 +*/ +type AlitripBtripCityCarApplyAddAPIResponse struct { + model.CommonResponse + AlitripBtripCityCarApplyAddAPIResponseModel +} + +// 三方市内用车申请单同步 成功返回结果 +type AlitripBtripCityCarApplyAddAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_city_car_apply_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 商旅内部审批单ID + Module int64 `json:"module,omitempty" xml:"module,omitempty"` +} diff --git a/model/btrip/AlitripBtripCityCarApplyAddResponse.go b/model/btrip/AlitripBtripCityCarApplyAddResponse.go deleted file mode 100644 index 9ca968593d..0000000000 --- a/model/btrip/AlitripBtripCityCarApplyAddResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -三方市内用车申请单同步 API返回值 -alitrip.btrip.city.car.apply.add - -三方市内用车申请单同步 -*/ -type AlitripBtripCityCarApplyAddAPIResponse struct { - model.CommonResponse - AlitripBtripCityCarApplyAddResponse -} - -// 三方市内用车申请单同步 成功返回结果 -type AlitripBtripCityCarApplyAddResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_city_car_apply_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 商旅内部审批单ID - Module int64 `json:"module,omitempty" xml:"module,omitempty"` -} diff --git a/model/btrip/AlitripBtripCityCarApplyApproveAPIRequest.go b/model/btrip/AlitripBtripCityCarApplyApproveAPIRequest.go new file mode 100644 index 0000000000..40be97fd2c --- /dev/null +++ b/model/btrip/AlitripBtripCityCarApplyApproveAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +三方市内用车申请单审批 API请求 +alitrip.btrip.city.car.apply.approve + +三方市内用车申请单审批 +*/ +type AlitripBtripCityCarApplyApproveAPIRequest struct { + model.Params + // 入参对象 + _rq *CityCarApplyApproveRq +} + +// 初始化AlitripBtripCityCarApplyApproveAPIRequest对象 +func NewAlitripBtripCityCarApplyApproveRequest() *AlitripBtripCityCarApplyApproveAPIRequest{ + return &AlitripBtripCityCarApplyApproveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripCityCarApplyApproveAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.city.car.apply.approve" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripCityCarApplyApproveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参对象 +func (r *AlitripBtripCityCarApplyApproveAPIRequest) SetRq(_rq *CityCarApplyApproveRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripCityCarApplyApproveAPIRequest) GetRq() *CityCarApplyApproveRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripCityCarApplyApproveAPIResponse.go b/model/btrip/AlitripBtripCityCarApplyApproveAPIResponse.go new file mode 100644 index 0000000000..aa76cacc5d --- /dev/null +++ b/model/btrip/AlitripBtripCityCarApplyApproveAPIResponse.go @@ -0,0 +1,31 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +三方市内用车申请单审批 API返回值 +alitrip.btrip.city.car.apply.approve + +三方市内用车申请单审批 +*/ +type AlitripBtripCityCarApplyApproveAPIResponse struct { + model.CommonResponse + AlitripBtripCityCarApplyApproveAPIResponseModel +} + +// 三方市内用车申请单审批 成功返回结果 +type AlitripBtripCityCarApplyApproveAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_city_car_apply_approve_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 审批是否成功 + Module bool `json:"module,omitempty" xml:"module,omitempty"` +} diff --git a/model/btrip/AlitripBtripCityCarApplyApproveResponse.go b/model/btrip/AlitripBtripCityCarApplyApproveResponse.go deleted file mode 100644 index 0d6cfb0371..0000000000 --- a/model/btrip/AlitripBtripCityCarApplyApproveResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -三方市内用车申请单审批 API返回值 -alitrip.btrip.city.car.apply.approve - -三方市内用车申请单审批 -*/ -type AlitripBtripCityCarApplyApproveAPIResponse struct { - model.CommonResponse - AlitripBtripCityCarApplyApproveResponse -} - -// 三方市内用车申请单审批 成功返回结果 -type AlitripBtripCityCarApplyApproveResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_city_car_apply_approve_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 审批是否成功 - Module bool `json:"module,omitempty" xml:"module,omitempty"` -} diff --git a/model/btrip/AlitripBtripCityCarApplyQueryAPIRequest.go b/model/btrip/AlitripBtripCityCarApplyQueryAPIRequest.go new file mode 100644 index 0000000000..9f05eef229 --- /dev/null +++ b/model/btrip/AlitripBtripCityCarApplyQueryAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +三方市内用车申请单查询 API请求 +alitrip.btrip.city.car.apply.query + +三方市内用车申请单查询 +*/ +type AlitripBtripCityCarApplyQueryAPIRequest struct { + model.Params + // 入参对象 + _rq *CityCarApplyQueryRq +} + +// 初始化AlitripBtripCityCarApplyQueryAPIRequest对象 +func NewAlitripBtripCityCarApplyQueryRequest() *AlitripBtripCityCarApplyQueryAPIRequest{ + return &AlitripBtripCityCarApplyQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripCityCarApplyQueryAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.city.car.apply.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripCityCarApplyQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参对象 +func (r *AlitripBtripCityCarApplyQueryAPIRequest) SetRq(_rq *CityCarApplyQueryRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripCityCarApplyQueryAPIRequest) GetRq() *CityCarApplyQueryRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripCityCarApplyQueryAPIResponse.go b/model/btrip/AlitripBtripCityCarApplyQueryAPIResponse.go new file mode 100644 index 0000000000..0683100fa4 --- /dev/null +++ b/model/btrip/AlitripBtripCityCarApplyQueryAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +三方市内用车申请单查询 API返回值 +alitrip.btrip.city.car.apply.query + +三方市内用车申请单查询 +*/ +type AlitripBtripCityCarApplyQueryAPIResponse struct { + model.CommonResponse + AlitripBtripCityCarApplyQueryAPIResponseModel +} + +// 三方市内用车申请单查询 成功返回结果 +type AlitripBtripCityCarApplyQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_city_car_apply_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *BtripApplyResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripCityCarApplyQueryResponse.go b/model/btrip/AlitripBtripCityCarApplyQueryResponse.go deleted file mode 100644 index 0c4be5f51a..0000000000 --- a/model/btrip/AlitripBtripCityCarApplyQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -三方市内用车申请单查询 API返回值 -alitrip.btrip.city.car.apply.query - -三方市内用车申请单查询 -*/ -type AlitripBtripCityCarApplyQueryAPIResponse struct { - model.CommonResponse - AlitripBtripCityCarApplyQueryResponse -} - -// 三方市内用车申请单查询 成功返回结果 -type AlitripBtripCityCarApplyQueryResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_city_car_apply_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *BtripApplyResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripCorpopApplyAddAPIRequest.go b/model/btrip/AlitripBtripCorpopApplyAddAPIRequest.go new file mode 100644 index 0000000000..59b7dd541a --- /dev/null +++ b/model/btrip/AlitripBtripCorpopApplyAddAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】isv添加审批单 API请求 +alitrip.btrip.corpop.apply.add + +【商旅】isv添加审批单 +*/ +type AlitripBtripCorpopApplyAddAPIRequest struct { + model.Params + // 请求参数 + _rq *OpenApiApplyRq +} + +// 初始化AlitripBtripCorpopApplyAddAPIRequest对象 +func NewAlitripBtripCorpopApplyAddRequest() *AlitripBtripCorpopApplyAddAPIRequest{ + return &AlitripBtripCorpopApplyAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripCorpopApplyAddAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.corpop.apply.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripCorpopApplyAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求参数 +func (r *AlitripBtripCorpopApplyAddAPIRequest) SetRq(_rq *OpenApiApplyRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripCorpopApplyAddAPIRequest) GetRq() *OpenApiApplyRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripCorpopApplyAddAPIResponse.go b/model/btrip/AlitripBtripCorpopApplyAddAPIResponse.go new file mode 100644 index 0000000000..19089e8dcd --- /dev/null +++ b/model/btrip/AlitripBtripCorpopApplyAddAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】isv添加审批单 API返回值 +alitrip.btrip.corpop.apply.add + +【商旅】isv添加审批单 +*/ +type AlitripBtripCorpopApplyAddAPIResponse struct { + model.CommonResponse + AlitripBtripCorpopApplyAddAPIResponseModel +} + +// 【商旅】isv添加审批单 成功返回结果 +type AlitripBtripCorpopApplyAddAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_corpop_apply_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参数 + Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripCorpopApplyAddResponse.go b/model/btrip/AlitripBtripCorpopApplyAddResponse.go deleted file mode 100644 index 05feb2edae..0000000000 --- a/model/btrip/AlitripBtripCorpopApplyAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【商旅】isv添加审批单 API返回值 -alitrip.btrip.corpop.apply.add - -【商旅】isv添加审批单 -*/ -type AlitripBtripCorpopApplyAddAPIResponse struct { - model.CommonResponse - AlitripBtripCorpopApplyAddResponse -} - -// 【商旅】isv添加审批单 成功返回结果 -type AlitripBtripCorpopApplyAddResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_corpop_apply_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参数 - Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripCorpopApplyApproveAPIRequest.go b/model/btrip/AlitripBtripCorpopApplyApproveAPIRequest.go new file mode 100644 index 0000000000..218851bb48 --- /dev/null +++ b/model/btrip/AlitripBtripCorpopApplyApproveAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】更新审批单状态 API请求 +alitrip.btrip.corpop.apply.approve + +【商旅】更新审批单状态 +*/ +type AlitripBtripCorpopApplyApproveAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenApiUpdateApplyRq +} + +// 初始化AlitripBtripCorpopApplyApproveAPIRequest对象 +func NewAlitripBtripCorpopApplyApproveRequest() *AlitripBtripCorpopApplyApproveAPIRequest{ + return &AlitripBtripCorpopApplyApproveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripCorpopApplyApproveAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.corpop.apply.approve" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripCorpopApplyApproveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripCorpopApplyApproveAPIRequest) SetRq(_rq *OpenApiUpdateApplyRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripCorpopApplyApproveAPIRequest) GetRq() *OpenApiUpdateApplyRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripCorpopApplyApproveAPIResponse.go b/model/btrip/AlitripBtripCorpopApplyApproveAPIResponse.go new file mode 100644 index 0000000000..7eb76184d6 --- /dev/null +++ b/model/btrip/AlitripBtripCorpopApplyApproveAPIResponse.go @@ -0,0 +1,33 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】更新审批单状态 API返回值 +alitrip.btrip.corpop.apply.approve + +【商旅】更新审批单状态 +*/ +type AlitripBtripCorpopApplyApproveAPIResponse struct { + model.CommonResponse + AlitripBtripCorpopApplyApproveAPIResponseModel +} + +// 【商旅】更新审批单状态 成功返回结果 +type AlitripBtripCorpopApplyApproveAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_corpop_apply_approve_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 传参 + Module string `json:"module,omitempty" xml:"module,omitempty"` + // 0 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 成功 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 成功标识 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/btrip/AlitripBtripCorpopApplyApproveResponse.go b/model/btrip/AlitripBtripCorpopApplyApproveResponse.go deleted file mode 100644 index 0c8cf62874..0000000000 --- a/model/btrip/AlitripBtripCorpopApplyApproveResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【商旅】更新审批单状态 API返回值 -alitrip.btrip.corpop.apply.approve - -【商旅】更新审批单状态 -*/ -type AlitripBtripCorpopApplyApproveAPIResponse struct { - model.CommonResponse - AlitripBtripCorpopApplyApproveResponse -} - -// 【商旅】更新审批单状态 成功返回结果 -type AlitripBtripCorpopApplyApproveResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_corpop_apply_approve_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 传参 - Module string `json:"module,omitempty" xml:"module,omitempty"` - // 0 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 成功 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 成功标识 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/btrip/AlitripBtripCorpopApplyGetAPIRequest.go b/model/btrip/AlitripBtripCorpopApplyGetAPIRequest.go new file mode 100644 index 0000000000..25f3dfbde9 --- /dev/null +++ b/model/btrip/AlitripBtripCorpopApplyGetAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】查询审批单 API请求 +alitrip.btrip.corpop.apply.get + +【商旅】查询审批单 +*/ +type AlitripBtripCorpopApplyGetAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenIsvSearchRq +} + +// 初始化AlitripBtripCorpopApplyGetAPIRequest对象 +func NewAlitripBtripCorpopApplyGetRequest() *AlitripBtripCorpopApplyGetAPIRequest{ + return &AlitripBtripCorpopApplyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripCorpopApplyGetAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.corpop.apply.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripCorpopApplyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripCorpopApplyGetAPIRequest) SetRq(_rq *OpenIsvSearchRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripCorpopApplyGetAPIRequest) GetRq() *OpenIsvSearchRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripCorpopApplyGetAPIResponse.go b/model/btrip/AlitripBtripCorpopApplyGetAPIResponse.go new file mode 100644 index 0000000000..c86c6f65c0 --- /dev/null +++ b/model/btrip/AlitripBtripCorpopApplyGetAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】查询审批单 API返回值 +alitrip.btrip.corpop.apply.get + +【商旅】查询审批单 +*/ +type AlitripBtripCorpopApplyGetAPIResponse struct { + model.CommonResponse + AlitripBtripCorpopApplyGetAPIResponseModel +} + +// 【商旅】查询审批单 成功返回结果 +type AlitripBtripCorpopApplyGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_corpop_apply_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参对象 + Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripCorpopApplyGetResponse.go b/model/btrip/AlitripBtripCorpopApplyGetResponse.go deleted file mode 100644 index 2c333d9938..0000000000 --- a/model/btrip/AlitripBtripCorpopApplyGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【商旅】查询审批单 API返回值 -alitrip.btrip.corpop.apply.get - -【商旅】查询审批单 -*/ -type AlitripBtripCorpopApplyGetAPIResponse struct { - model.CommonResponse - AlitripBtripCorpopApplyGetResponse -} - -// 【商旅】查询审批单 成功返回结果 -type AlitripBtripCorpopApplyGetResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_corpop_apply_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参对象 - Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripCorpopApplyModifyAPIRequest.go b/model/btrip/AlitripBtripCorpopApplyModifyAPIRequest.go new file mode 100644 index 0000000000..cec3d86132 --- /dev/null +++ b/model/btrip/AlitripBtripCorpopApplyModifyAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】修改出差审批单(行程) API请求 +alitrip.btrip.corpop.apply.modify + +【商旅】修改出差审批单(行程) +*/ +type AlitripBtripCorpopApplyModifyAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenApiApplyRq +} + +// 初始化AlitripBtripCorpopApplyModifyAPIRequest对象 +func NewAlitripBtripCorpopApplyModifyRequest() *AlitripBtripCorpopApplyModifyAPIRequest{ + return &AlitripBtripCorpopApplyModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripCorpopApplyModifyAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.corpop.apply.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripCorpopApplyModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripCorpopApplyModifyAPIRequest) SetRq(_rq *OpenApiApplyRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripCorpopApplyModifyAPIRequest) GetRq() *OpenApiApplyRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripCorpopApplyModifyAPIResponse.go b/model/btrip/AlitripBtripCorpopApplyModifyAPIResponse.go new file mode 100644 index 0000000000..1393abe8d0 --- /dev/null +++ b/model/btrip/AlitripBtripCorpopApplyModifyAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】修改出差审批单(行程) API返回值 +alitrip.btrip.corpop.apply.modify + +【商旅】修改出差审批单(行程) +*/ +type AlitripBtripCorpopApplyModifyAPIResponse struct { + model.CommonResponse + AlitripBtripCorpopApplyModifyAPIResponseModel +} + +// 【商旅】修改出差审批单(行程) 成功返回结果 +type AlitripBtripCorpopApplyModifyAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_corpop_apply_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripCorpopApplyModifyResponse.go b/model/btrip/AlitripBtripCorpopApplyModifyResponse.go deleted file mode 100644 index 5df0441e15..0000000000 --- a/model/btrip/AlitripBtripCorpopApplyModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【商旅】修改出差审批单(行程) API返回值 -alitrip.btrip.corpop.apply.modify - -【商旅】修改出差审批单(行程) -*/ -type AlitripBtripCorpopApplyModifyAPIResponse struct { - model.CommonResponse - AlitripBtripCorpopApplyModifyResponse -} - -// 【商旅】修改出差审批单(行程) 成功返回结果 -type AlitripBtripCorpopApplyModifyResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_corpop_apply_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripCorpopApplySearchAPIRequest.go b/model/btrip/AlitripBtripCorpopApplySearchAPIRequest.go new file mode 100644 index 0000000000..c18b249927 --- /dev/null +++ b/model/btrip/AlitripBtripCorpopApplySearchAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】搜索审批单列表 API请求 +alitrip.btrip.corpop.apply.search + +【商旅】搜索审批单列表 +*/ +type AlitripBtripCorpopApplySearchAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenIsvSearchRq +} + +// 初始化AlitripBtripCorpopApplySearchAPIRequest对象 +func NewAlitripBtripCorpopApplySearchRequest() *AlitripBtripCorpopApplySearchAPIRequest{ + return &AlitripBtripCorpopApplySearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripCorpopApplySearchAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.corpop.apply.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripCorpopApplySearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripCorpopApplySearchAPIRequest) SetRq(_rq *OpenIsvSearchRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripCorpopApplySearchAPIRequest) GetRq() *OpenIsvSearchRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripCorpopApplySearchAPIResponse.go b/model/btrip/AlitripBtripCorpopApplySearchAPIResponse.go new file mode 100644 index 0000000000..6505f871c0 --- /dev/null +++ b/model/btrip/AlitripBtripCorpopApplySearchAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】搜索审批单列表 API返回值 +alitrip.btrip.corpop.apply.search + +【商旅】搜索审批单列表 +*/ +type AlitripBtripCorpopApplySearchAPIResponse struct { + model.CommonResponse + AlitripBtripCorpopApplySearchAPIResponseModel +} + +// 【商旅】搜索审批单列表 成功返回结果 +type AlitripBtripCorpopApplySearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_corpop_apply_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务出参 + Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripCorpopApplySearchResponse.go b/model/btrip/AlitripBtripCorpopApplySearchResponse.go deleted file mode 100644 index 29aef5613b..0000000000 --- a/model/btrip/AlitripBtripCorpopApplySearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【商旅】搜索审批单列表 API返回值 -alitrip.btrip.corpop.apply.search - -【商旅】搜索审批单列表 -*/ -type AlitripBtripCorpopApplySearchAPIResponse struct { - model.CommonResponse - AlitripBtripCorpopApplySearchResponse -} - -// 【商旅】搜索审批单列表 成功返回结果 -type AlitripBtripCorpopApplySearchResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_corpop_apply_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务出参 - Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripCorpopDepartSyncAPIRequest.go b/model/btrip/AlitripBtripCorpopDepartSyncAPIRequest.go new file mode 100644 index 0000000000..95d03f67ab --- /dev/null +++ b/model/btrip/AlitripBtripCorpopDepartSyncAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +外部部门同步 API请求 +alitrip.btrip.corpop.depart.sync + +同步外部平台部门信息至商旅内部 +*/ +type AlitripBtripCorpopDepartSyncAPIRequest struct { + model.Params + // 同步部门请求 + _rq *BtripDepartSyncRq +} + +// 初始化AlitripBtripCorpopDepartSyncAPIRequest对象 +func NewAlitripBtripCorpopDepartSyncRequest() *AlitripBtripCorpopDepartSyncAPIRequest{ + return &AlitripBtripCorpopDepartSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripCorpopDepartSyncAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.corpop.depart.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripCorpopDepartSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 同步部门请求 +func (r *AlitripBtripCorpopDepartSyncAPIRequest) SetRq(_rq *BtripDepartSyncRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripCorpopDepartSyncAPIRequest) GetRq() *BtripDepartSyncRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripCorpopDepartSyncAPIResponse.go b/model/btrip/AlitripBtripCorpopDepartSyncAPIResponse.go new file mode 100644 index 0000000000..dd2b842640 --- /dev/null +++ b/model/btrip/AlitripBtripCorpopDepartSyncAPIResponse.go @@ -0,0 +1,33 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +外部部门同步 API返回值 +alitrip.btrip.corpop.depart.sync + +同步外部平台部门信息至商旅内部 +*/ +type AlitripBtripCorpopDepartSyncAPIResponse struct { + model.CommonResponse + AlitripBtripCorpopDepartSyncAPIResponseModel +} + +// 外部部门同步 成功返回结果 +type AlitripBtripCorpopDepartSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_corpop_depart_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 错误码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 导入失败原因以及导入失败部门信息 + Module string `json:"module,omitempty" xml:"module,omitempty"` + // 正确 + SuccessFlag bool `json:"success_flag,omitempty" xml:"success_flag,omitempty"` +} diff --git a/model/btrip/AlitripBtripCorpopDepartSyncResponse.go b/model/btrip/AlitripBtripCorpopDepartSyncResponse.go deleted file mode 100644 index b17abe5b4f..0000000000 --- a/model/btrip/AlitripBtripCorpopDepartSyncResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -外部部门同步 API返回值 -alitrip.btrip.corpop.depart.sync - -同步外部平台部门信息至商旅内部 -*/ -type AlitripBtripCorpopDepartSyncAPIResponse struct { - model.CommonResponse - AlitripBtripCorpopDepartSyncResponse -} - -// 外部部门同步 成功返回结果 -type AlitripBtripCorpopDepartSyncResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_corpop_depart_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 错误码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 导入失败原因以及导入失败部门信息 - Module string `json:"module,omitempty" xml:"module,omitempty"` - // 正确 - SuccessFlag bool `json:"success_flag,omitempty" xml:"success_flag,omitempty"` -} diff --git a/model/btrip/AlitripBtripCorpopUserSyncAPIRequest.go b/model/btrip/AlitripBtripCorpopUserSyncAPIRequest.go new file mode 100644 index 0000000000..75c5ed7e79 --- /dev/null +++ b/model/btrip/AlitripBtripCorpopUserSyncAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +外部人员同步 API请求 +alitrip.btrip.corpop.user.sync + +同步外部平台用户信息至商旅内部 +*/ +type AlitripBtripCorpopUserSyncAPIRequest struct { + model.Params + // 人员同步请求 + _rq *BtripUserSyncRq +} + +// 初始化AlitripBtripCorpopUserSyncAPIRequest对象 +func NewAlitripBtripCorpopUserSyncRequest() *AlitripBtripCorpopUserSyncAPIRequest{ + return &AlitripBtripCorpopUserSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripCorpopUserSyncAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.corpop.user.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripCorpopUserSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 人员同步请求 +func (r *AlitripBtripCorpopUserSyncAPIRequest) SetRq(_rq *BtripUserSyncRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripCorpopUserSyncAPIRequest) GetRq() *BtripUserSyncRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripCorpopUserSyncAPIResponse.go b/model/btrip/AlitripBtripCorpopUserSyncAPIResponse.go new file mode 100644 index 0000000000..9d0ce2c1b4 --- /dev/null +++ b/model/btrip/AlitripBtripCorpopUserSyncAPIResponse.go @@ -0,0 +1,33 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +外部人员同步 API返回值 +alitrip.btrip.corpop.user.sync + +同步外部平台用户信息至商旅内部 +*/ +type AlitripBtripCorpopUserSyncAPIResponse struct { + model.CommonResponse + AlitripBtripCorpopUserSyncAPIResponseModel +} + +// 外部人员同步 成功返回结果 +type AlitripBtripCorpopUserSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_corpop_user_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 错误码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 返回错误用户信息 + Module string `json:"module,omitempty" xml:"module,omitempty"` + // 成功标示 + SuccessFlag bool `json:"success_flag,omitempty" xml:"success_flag,omitempty"` +} diff --git a/model/btrip/AlitripBtripCorpopUserSyncResponse.go b/model/btrip/AlitripBtripCorpopUserSyncResponse.go deleted file mode 100644 index 591a285ad8..0000000000 --- a/model/btrip/AlitripBtripCorpopUserSyncResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -外部人员同步 API返回值 -alitrip.btrip.corpop.user.sync - -同步外部平台用户信息至商旅内部 -*/ -type AlitripBtripCorpopUserSyncAPIResponse struct { - model.CommonResponse - AlitripBtripCorpopUserSyncResponse -} - -// 外部人员同步 成功返回结果 -type AlitripBtripCorpopUserSyncResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_corpop_user_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 错误码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 返回错误用户信息 - Module string `json:"module,omitempty" xml:"module,omitempty"` - // 成功标示 - SuccessFlag bool `json:"success_flag,omitempty" xml:"success_flag,omitempty"` -} diff --git a/model/btrip/AlitripBtripCostCenterDeleteAPIRequest.go b/model/btrip/AlitripBtripCostCenterDeleteAPIRequest.go new file mode 100644 index 0000000000..a3df22ffa4 --- /dev/null +++ b/model/btrip/AlitripBtripCostCenterDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除外部成本中心 API请求 +alitrip.btrip.cost.center.delete + +删除外部成本中心 +*/ +type AlitripBtripCostCenterDeleteAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenCostCenterDeleteRq +} + +// 初始化AlitripBtripCostCenterDeleteAPIRequest对象 +func NewAlitripBtripCostCenterDeleteRequest() *AlitripBtripCostCenterDeleteAPIRequest{ + return &AlitripBtripCostCenterDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripCostCenterDeleteAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.cost.center.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripCostCenterDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripCostCenterDeleteAPIRequest) SetRq(_rq *OpenCostCenterDeleteRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripCostCenterDeleteAPIRequest) GetRq() *OpenCostCenterDeleteRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripCostCenterDeleteAPIResponse.go b/model/btrip/AlitripBtripCostCenterDeleteAPIResponse.go new file mode 100644 index 0000000000..fe3e6d5533 --- /dev/null +++ b/model/btrip/AlitripBtripCostCenterDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除外部成本中心 API返回值 +alitrip.btrip.cost.center.delete + +删除外部成本中心 +*/ +type AlitripBtripCostCenterDeleteAPIResponse struct { + model.CommonResponse + AlitripBtripCostCenterDeleteAPIResponseModel +} + +// 删除外部成本中心 成功返回结果 +type AlitripBtripCostCenterDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_cost_center_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripCostCenterDeleteResponse.go b/model/btrip/AlitripBtripCostCenterDeleteResponse.go deleted file mode 100644 index 02607230e4..0000000000 --- a/model/btrip/AlitripBtripCostCenterDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除外部成本中心 API返回值 -alitrip.btrip.cost.center.delete - -删除外部成本中心 -*/ -type AlitripBtripCostCenterDeleteAPIResponse struct { - model.CommonResponse - AlitripBtripCostCenterDeleteResponse -} - -// 删除外部成本中心 成功返回结果 -type AlitripBtripCostCenterDeleteResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_cost_center_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripCostCenterEntityAddAPIRequest.go b/model/btrip/AlitripBtripCostCenterEntityAddAPIRequest.go new file mode 100644 index 0000000000..9ee55f9cc9 --- /dev/null +++ b/model/btrip/AlitripBtripCostCenterEntityAddAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +增加外部成本中心人员信息 API请求 +alitrip.btrip.cost.center.entity.add + +增加外部成本中心人员信息 +*/ +type AlitripBtripCostCenterEntityAddAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenCostCenterAddEntityRq +} + +// 初始化AlitripBtripCostCenterEntityAddAPIRequest对象 +func NewAlitripBtripCostCenterEntityAddRequest() *AlitripBtripCostCenterEntityAddAPIRequest{ + return &AlitripBtripCostCenterEntityAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripCostCenterEntityAddAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.cost.center.entity.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripCostCenterEntityAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripCostCenterEntityAddAPIRequest) SetRq(_rq *OpenCostCenterAddEntityRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripCostCenterEntityAddAPIRequest) GetRq() *OpenCostCenterAddEntityRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripCostCenterEntityAddAPIResponse.go b/model/btrip/AlitripBtripCostCenterEntityAddAPIResponse.go new file mode 100644 index 0000000000..3000fe864f --- /dev/null +++ b/model/btrip/AlitripBtripCostCenterEntityAddAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +增加外部成本中心人员信息 API返回值 +alitrip.btrip.cost.center.entity.add + +增加外部成本中心人员信息 +*/ +type AlitripBtripCostCenterEntityAddAPIResponse struct { + model.CommonResponse + AlitripBtripCostCenterEntityAddAPIResponseModel +} + +// 增加外部成本中心人员信息 成功返回结果 +type AlitripBtripCostCenterEntityAddAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_cost_center_entity_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripCostCenterEntityAddResponse.go b/model/btrip/AlitripBtripCostCenterEntityAddResponse.go deleted file mode 100644 index b28d63709b..0000000000 --- a/model/btrip/AlitripBtripCostCenterEntityAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -增加外部成本中心人员信息 API返回值 -alitrip.btrip.cost.center.entity.add - -增加外部成本中心人员信息 -*/ -type AlitripBtripCostCenterEntityAddAPIResponse struct { - model.CommonResponse - AlitripBtripCostCenterEntityAddResponse -} - -// 增加外部成本中心人员信息 成功返回结果 -type AlitripBtripCostCenterEntityAddResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_cost_center_entity_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripCostCenterEntityDeleteAPIRequest.go b/model/btrip/AlitripBtripCostCenterEntityDeleteAPIRequest.go new file mode 100644 index 0000000000..6b0331ad19 --- /dev/null +++ b/model/btrip/AlitripBtripCostCenterEntityDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除外部成本中心人员信息 API请求 +alitrip.btrip.cost.center.entity.delete + +删除外部成本中心人员信息 +*/ +type AlitripBtripCostCenterEntityDeleteAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenCostCenterDeleteEntityRq +} + +// 初始化AlitripBtripCostCenterEntityDeleteAPIRequest对象 +func NewAlitripBtripCostCenterEntityDeleteRequest() *AlitripBtripCostCenterEntityDeleteAPIRequest{ + return &AlitripBtripCostCenterEntityDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripCostCenterEntityDeleteAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.cost.center.entity.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripCostCenterEntityDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripCostCenterEntityDeleteAPIRequest) SetRq(_rq *OpenCostCenterDeleteEntityRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripCostCenterEntityDeleteAPIRequest) GetRq() *OpenCostCenterDeleteEntityRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripCostCenterEntityDeleteAPIResponse.go b/model/btrip/AlitripBtripCostCenterEntityDeleteAPIResponse.go new file mode 100644 index 0000000000..ae8c100771 --- /dev/null +++ b/model/btrip/AlitripBtripCostCenterEntityDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除外部成本中心人员信息 API返回值 +alitrip.btrip.cost.center.entity.delete + +删除外部成本中心人员信息 +*/ +type AlitripBtripCostCenterEntityDeleteAPIResponse struct { + model.CommonResponse + AlitripBtripCostCenterEntityDeleteAPIResponseModel +} + +// 删除外部成本中心人员信息 成功返回结果 +type AlitripBtripCostCenterEntityDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_cost_center_entity_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripCostCenterEntityDeleteResponse.go b/model/btrip/AlitripBtripCostCenterEntityDeleteResponse.go deleted file mode 100644 index 9812aa8ce2..0000000000 --- a/model/btrip/AlitripBtripCostCenterEntityDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除外部成本中心人员信息 API返回值 -alitrip.btrip.cost.center.entity.delete - -删除外部成本中心人员信息 -*/ -type AlitripBtripCostCenterEntityDeleteAPIResponse struct { - model.CommonResponse - AlitripBtripCostCenterEntityDeleteResponse -} - -// 删除外部成本中心人员信息 成功返回结果 -type AlitripBtripCostCenterEntityDeleteResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_cost_center_entity_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripCostCenterEntitySetAPIRequest.go b/model/btrip/AlitripBtripCostCenterEntitySetAPIRequest.go new file mode 100644 index 0000000000..73e6a57288 --- /dev/null +++ b/model/btrip/AlitripBtripCostCenterEntitySetAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设置外部成本中心人员信息 API请求 +alitrip.btrip.cost.center.entity.set + +设置外部成本中心人员信息 +*/ +type AlitripBtripCostCenterEntitySetAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenCostCenterSetEntityRq +} + +// 初始化AlitripBtripCostCenterEntitySetAPIRequest对象 +func NewAlitripBtripCostCenterEntitySetRequest() *AlitripBtripCostCenterEntitySetAPIRequest{ + return &AlitripBtripCostCenterEntitySetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripCostCenterEntitySetAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.cost.center.entity.set" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripCostCenterEntitySetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripCostCenterEntitySetAPIRequest) SetRq(_rq *OpenCostCenterSetEntityRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripCostCenterEntitySetAPIRequest) GetRq() *OpenCostCenterSetEntityRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripCostCenterEntitySetAPIResponse.go b/model/btrip/AlitripBtripCostCenterEntitySetAPIResponse.go new file mode 100644 index 0000000000..50e09e38c8 --- /dev/null +++ b/model/btrip/AlitripBtripCostCenterEntitySetAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设置外部成本中心人员信息 API返回值 +alitrip.btrip.cost.center.entity.set + +设置外部成本中心人员信息 +*/ +type AlitripBtripCostCenterEntitySetAPIResponse struct { + model.CommonResponse + AlitripBtripCostCenterEntitySetAPIResponseModel +} + +// 设置外部成本中心人员信息 成功返回结果 +type AlitripBtripCostCenterEntitySetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_cost_center_entity_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripCostCenterEntitySetResponse.go b/model/btrip/AlitripBtripCostCenterEntitySetResponse.go deleted file mode 100644 index 25ed573932..0000000000 --- a/model/btrip/AlitripBtripCostCenterEntitySetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设置外部成本中心人员信息 API返回值 -alitrip.btrip.cost.center.entity.set - -设置外部成本中心人员信息 -*/ -type AlitripBtripCostCenterEntitySetAPIResponse struct { - model.CommonResponse - AlitripBtripCostCenterEntitySetResponse -} - -// 设置外部成本中心人员信息 成功返回结果 -type AlitripBtripCostCenterEntitySetResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_cost_center_entity_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripCostCenterGetAPIRequest.go b/model/btrip/AlitripBtripCostCenterGetAPIRequest.go new file mode 100644 index 0000000000..300d3ce429 --- /dev/null +++ b/model/btrip/AlitripBtripCostCenterGetAPIRequest.go @@ -0,0 +1,66 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户费用归属 API请求 +alitrip.btrip.cost.center.get + +获取差旅申请用户的费用归属列表 +*/ +type AlitripBtripCostCenterGetAPIRequest struct { + model.Params + // 企业id + _corpId string + // 用户id + _userId string +} + +// 初始化AlitripBtripCostCenterGetAPIRequest对象 +func NewAlitripBtripCostCenterGetRequest() *AlitripBtripCostCenterGetAPIRequest{ + return &AlitripBtripCostCenterGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripCostCenterGetAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.cost.center.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripCostCenterGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CorpId Setter +// 企业id +func (r *AlitripBtripCostCenterGetAPIRequest) SetCorpId(_corpId string) error { + r._corpId = _corpId + r.Set("corp_id", _corpId) + return nil +} + +// CorpId Getter +func (r AlitripBtripCostCenterGetAPIRequest) GetCorpId() string { + return r._corpId +} +// UserId Setter +// 用户id +func (r *AlitripBtripCostCenterGetAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlitripBtripCostCenterGetAPIRequest) GetUserId() string { + return r._userId +} diff --git a/model/btrip/AlitripBtripCostCenterGetAPIResponse.go b/model/btrip/AlitripBtripCostCenterGetAPIResponse.go new file mode 100644 index 0000000000..bf19bde273 --- /dev/null +++ b/model/btrip/AlitripBtripCostCenterGetAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户费用归属 API返回值 +alitrip.btrip.cost.center.get + +获取差旅申请用户的费用归属列表 +*/ +type AlitripBtripCostCenterGetAPIResponse struct { + model.CommonResponse + AlitripBtripCostCenterGetAPIResponseModel +} + +// 获取用户费用归属 成功返回结果 +type AlitripBtripCostCenterGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_cost_center_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripCostCenterGetResponse.go b/model/btrip/AlitripBtripCostCenterGetResponse.go deleted file mode 100644 index 850dc5633d..0000000000 --- a/model/btrip/AlitripBtripCostCenterGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户费用归属 API返回值 -alitrip.btrip.cost.center.get - -获取差旅申请用户的费用归属列表 -*/ -type AlitripBtripCostCenterGetAPIResponse struct { - model.CommonResponse - AlitripBtripCostCenterGetResponse -} - -// 获取用户费用归属 成功返回结果 -type AlitripBtripCostCenterGetResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_cost_center_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripCostCenterModifyAPIRequest.go b/model/btrip/AlitripBtripCostCenterModifyAPIRequest.go new file mode 100644 index 0000000000..8556893c0f --- /dev/null +++ b/model/btrip/AlitripBtripCostCenterModifyAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改外部成本中心 API请求 +alitrip.btrip.cost.center.modify + +修改外部成本中心,设置成员,设置支付宝账号,设置名称,编号等 +*/ +type AlitripBtripCostCenterModifyAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenCostCenterModifyRq +} + +// 初始化AlitripBtripCostCenterModifyAPIRequest对象 +func NewAlitripBtripCostCenterModifyRequest() *AlitripBtripCostCenterModifyAPIRequest{ + return &AlitripBtripCostCenterModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripCostCenterModifyAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.cost.center.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripCostCenterModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripCostCenterModifyAPIRequest) SetRq(_rq *OpenCostCenterModifyRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripCostCenterModifyAPIRequest) GetRq() *OpenCostCenterModifyRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripCostCenterModifyAPIResponse.go b/model/btrip/AlitripBtripCostCenterModifyAPIResponse.go new file mode 100644 index 0000000000..796ac4c82f --- /dev/null +++ b/model/btrip/AlitripBtripCostCenterModifyAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改外部成本中心 API返回值 +alitrip.btrip.cost.center.modify + +修改外部成本中心,设置成员,设置支付宝账号,设置名称,编号等 +*/ +type AlitripBtripCostCenterModifyAPIResponse struct { + model.CommonResponse + AlitripBtripCostCenterModifyAPIResponseModel +} + +// 修改外部成本中心 成功返回结果 +type AlitripBtripCostCenterModifyAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_cost_center_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripCostCenterModifyResponse.go b/model/btrip/AlitripBtripCostCenterModifyResponse.go deleted file mode 100644 index d055be1094..0000000000 --- a/model/btrip/AlitripBtripCostCenterModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改外部成本中心 API返回值 -alitrip.btrip.cost.center.modify - -修改外部成本中心,设置成员,设置支付宝账号,设置名称,编号等 -*/ -type AlitripBtripCostCenterModifyAPIResponse struct { - model.CommonResponse - AlitripBtripCostCenterModifyResponse -} - -// 修改外部成本中心 成功返回结果 -type AlitripBtripCostCenterModifyResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_cost_center_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripCostCenterNewAPIRequest.go b/model/btrip/AlitripBtripCostCenterNewAPIRequest.go new file mode 100644 index 0000000000..c2c63adfee --- /dev/null +++ b/model/btrip/AlitripBtripCostCenterNewAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新建外部成本中心 API请求 +alitrip.btrip.cost.center.new + +新建外部成本中心 +*/ +type AlitripBtripCostCenterNewAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenCostCenterSaveRq +} + +// 初始化AlitripBtripCostCenterNewAPIRequest对象 +func NewAlitripBtripCostCenterNewRequest() *AlitripBtripCostCenterNewAPIRequest{ + return &AlitripBtripCostCenterNewAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripCostCenterNewAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.cost.center.new" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripCostCenterNewAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripCostCenterNewAPIRequest) SetRq(_rq *OpenCostCenterSaveRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripCostCenterNewAPIRequest) GetRq() *OpenCostCenterSaveRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripCostCenterNewAPIResponse.go b/model/btrip/AlitripBtripCostCenterNewAPIResponse.go new file mode 100644 index 0000000000..0e0dfdfc61 --- /dev/null +++ b/model/btrip/AlitripBtripCostCenterNewAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新建外部成本中心 API返回值 +alitrip.btrip.cost.center.new + +新建外部成本中心 +*/ +type AlitripBtripCostCenterNewAPIResponse struct { + model.CommonResponse + AlitripBtripCostCenterNewAPIResponseModel +} + +// 新建外部成本中心 成功返回结果 +type AlitripBtripCostCenterNewAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_cost_center_new_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripCostCenterNewResponse.go b/model/btrip/AlitripBtripCostCenterNewResponse.go deleted file mode 100644 index 9f1f83aebd..0000000000 --- a/model/btrip/AlitripBtripCostCenterNewResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新建外部成本中心 API返回值 -alitrip.btrip.cost.center.new - -新建外部成本中心 -*/ -type AlitripBtripCostCenterNewAPIResponse struct { - model.CommonResponse - AlitripBtripCostCenterNewResponse -} - -// 新建外部成本中心 成功返回结果 -type AlitripBtripCostCenterNewResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_cost_center_new_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripCostCenterTransferAPIRequest.go b/model/btrip/AlitripBtripCostCenterTransferAPIRequest.go new file mode 100644 index 0000000000..72d675c4f1 --- /dev/null +++ b/model/btrip/AlitripBtripCostCenterTransferAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅成本中心转换为外部成本中心 API请求 +alitrip.btrip.cost.center.transfer + +商旅成本中心转换为外部成本中心 +*/ +type AlitripBtripCostCenterTransferAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenCostCenterTransferRq +} + +// 初始化AlitripBtripCostCenterTransferAPIRequest对象 +func NewAlitripBtripCostCenterTransferRequest() *AlitripBtripCostCenterTransferAPIRequest{ + return &AlitripBtripCostCenterTransferAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripCostCenterTransferAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.cost.center.transfer" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripCostCenterTransferAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripCostCenterTransferAPIRequest) SetRq(_rq *OpenCostCenterTransferRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripCostCenterTransferAPIRequest) GetRq() *OpenCostCenterTransferRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripCostCenterTransferAPIResponse.go b/model/btrip/AlitripBtripCostCenterTransferAPIResponse.go new file mode 100644 index 0000000000..93754cc409 --- /dev/null +++ b/model/btrip/AlitripBtripCostCenterTransferAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅成本中心转换为外部成本中心 API返回值 +alitrip.btrip.cost.center.transfer + +商旅成本中心转换为外部成本中心 +*/ +type AlitripBtripCostCenterTransferAPIResponse struct { + model.CommonResponse + AlitripBtripCostCenterTransferAPIResponseModel +} + +// 商旅成本中心转换为外部成本中心 成功返回结果 +type AlitripBtripCostCenterTransferAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_cost_center_transfer_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *BcmcResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripCostCenterTransferResponse.go b/model/btrip/AlitripBtripCostCenterTransferResponse.go deleted file mode 100644 index 2df062ab8f..0000000000 --- a/model/btrip/AlitripBtripCostCenterTransferResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商旅成本中心转换为外部成本中心 API返回值 -alitrip.btrip.cost.center.transfer - -商旅成本中心转换为外部成本中心 -*/ -type AlitripBtripCostCenterTransferAPIResponse struct { - model.CommonResponse - AlitripBtripCostCenterTransferResponse -} - -// 商旅成本中心转换为外部成本中心 成功返回结果 -type AlitripBtripCostCenterTransferResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_cost_center_transfer_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *BcmcResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripEmployeeQueryAPIRequest.go b/model/btrip/AlitripBtripEmployeeQueryAPIRequest.go new file mode 100644 index 0000000000..132eaeb1ca --- /dev/null +++ b/model/btrip/AlitripBtripEmployeeQueryAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +企业员工查询 API请求 +alitrip.btrip.employee.query + +企业员工查询 +*/ +type AlitripBtripEmployeeQueryAPIRequest struct { + model.Params + // 入参对象。 + _paramOpenEmployeeQueryRequest *OpenEmployeeQueryRequest +} + +// 初始化AlitripBtripEmployeeQueryAPIRequest对象 +func NewAlitripBtripEmployeeQueryRequest() *AlitripBtripEmployeeQueryAPIRequest{ + return &AlitripBtripEmployeeQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripEmployeeQueryAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.employee.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripEmployeeQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamOpenEmployeeQueryRequest Setter +// 入参对象。 +func (r *AlitripBtripEmployeeQueryAPIRequest) SetParamOpenEmployeeQueryRequest(_paramOpenEmployeeQueryRequest *OpenEmployeeQueryRequest) error { + r._paramOpenEmployeeQueryRequest = _paramOpenEmployeeQueryRequest + r.Set("param_open_employee_query_request", _paramOpenEmployeeQueryRequest) + return nil +} + +// ParamOpenEmployeeQueryRequest Getter +func (r AlitripBtripEmployeeQueryAPIRequest) GetParamOpenEmployeeQueryRequest() *OpenEmployeeQueryRequest { + return r._paramOpenEmployeeQueryRequest +} diff --git a/model/btrip/AlitripBtripEmployeeQueryAPIResponse.go b/model/btrip/AlitripBtripEmployeeQueryAPIResponse.go new file mode 100644 index 0000000000..e1c590fd58 --- /dev/null +++ b/model/btrip/AlitripBtripEmployeeQueryAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +企业员工查询 API返回值 +alitrip.btrip.employee.query + +企业员工查询 +*/ +type AlitripBtripEmployeeQueryAPIResponse struct { + model.CommonResponse + AlitripBtripEmployeeQueryAPIResponseModel +} + +// 企业员工查询 成功返回结果 +type AlitripBtripEmployeeQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_employee_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象。 + Result *BtmsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripEmployeeQueryResponse.go b/model/btrip/AlitripBtripEmployeeQueryResponse.go deleted file mode 100644 index fdcce77571..0000000000 --- a/model/btrip/AlitripBtripEmployeeQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -企业员工查询 API返回值 -alitrip.btrip.employee.query - -企业员工查询 -*/ -type AlitripBtripEmployeeQueryAPIResponse struct { - model.CommonResponse - AlitripBtripEmployeeQueryResponse -} - -// 企业员工查询 成功返回结果 -type AlitripBtripEmployeeQueryResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_employee_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象。 - Result *BtmsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripFlightCitySuggestAPIRequest.go b/model/btrip/AlitripBtripFlightCitySuggestAPIRequest.go new file mode 100644 index 0000000000..3b14e8d927 --- /dev/null +++ b/model/btrip/AlitripBtripFlightCitySuggestAPIRequest.go @@ -0,0 +1,80 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +机票城市搜索 API请求 +alitrip.btrip.flight.city.suggest + +提供机票城市搜索接口,提高OA用户对接效率 +*/ +type AlitripBtripFlightCitySuggestAPIRequest struct { + model.Params + // 用户id + _userId string + // 搜索关键字 + _keyword string + // 企业id + _corpId string +} + +// 初始化AlitripBtripFlightCitySuggestAPIRequest对象 +func NewAlitripBtripFlightCitySuggestRequest() *AlitripBtripFlightCitySuggestAPIRequest{ + return &AlitripBtripFlightCitySuggestAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripFlightCitySuggestAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.flight.city.suggest" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripFlightCitySuggestAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户id +func (r *AlitripBtripFlightCitySuggestAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlitripBtripFlightCitySuggestAPIRequest) GetUserId() string { + return r._userId +} +// Keyword Setter +// 搜索关键字 +func (r *AlitripBtripFlightCitySuggestAPIRequest) SetKeyword(_keyword string) error { + r._keyword = _keyword + r.Set("keyword", _keyword) + return nil +} + +// Keyword Getter +func (r AlitripBtripFlightCitySuggestAPIRequest) GetKeyword() string { + return r._keyword +} +// CorpId Setter +// 企业id +func (r *AlitripBtripFlightCitySuggestAPIRequest) SetCorpId(_corpId string) error { + r._corpId = _corpId + r.Set("corp_id", _corpId) + return nil +} + +// CorpId Getter +func (r AlitripBtripFlightCitySuggestAPIRequest) GetCorpId() string { + return r._corpId +} diff --git a/model/btrip/AlitripBtripFlightCitySuggestAPIResponse.go b/model/btrip/AlitripBtripFlightCitySuggestAPIResponse.go new file mode 100644 index 0000000000..eb1d716014 --- /dev/null +++ b/model/btrip/AlitripBtripFlightCitySuggestAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +机票城市搜索 API返回值 +alitrip.btrip.flight.city.suggest + +提供机票城市搜索接口,提高OA用户对接效率 +*/ +type AlitripBtripFlightCitySuggestAPIResponse struct { + model.CommonResponse + AlitripBtripFlightCitySuggestAPIResponseModel +} + +// 机票城市搜索 成功返回结果 +type AlitripBtripFlightCitySuggestAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_flight_city_suggest_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *BtripApplyResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripFlightCitySuggestResponse.go b/model/btrip/AlitripBtripFlightCitySuggestResponse.go deleted file mode 100644 index 3e44557070..0000000000 --- a/model/btrip/AlitripBtripFlightCitySuggestResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -机票城市搜索 API返回值 -alitrip.btrip.flight.city.suggest - -提供机票城市搜索接口,提高OA用户对接效率 -*/ -type AlitripBtripFlightCitySuggestAPIResponse struct { - model.CommonResponse - AlitripBtripFlightCitySuggestResponse -} - -// 机票城市搜索 成功返回结果 -type AlitripBtripFlightCitySuggestResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_flight_city_suggest_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *BtripApplyResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripFlightOrderSearchAPIRequest.go b/model/btrip/AlitripBtripFlightOrderSearchAPIRequest.go new file mode 100644 index 0000000000..0add9378a9 --- /dev/null +++ b/model/btrip/AlitripBtripFlightOrderSearchAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取机票订单列表 API请求 +alitrip.btrip.flight.order.search + +第三方OA厂商获取机票订单列表 +*/ +type AlitripBtripFlightOrderSearchAPIRequest struct { + model.Params + // 请求 + _rq *OpenSearchRq +} + +// 初始化AlitripBtripFlightOrderSearchAPIRequest对象 +func NewAlitripBtripFlightOrderSearchRequest() *AlitripBtripFlightOrderSearchAPIRequest{ + return &AlitripBtripFlightOrderSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripFlightOrderSearchAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.flight.order.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripFlightOrderSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求 +func (r *AlitripBtripFlightOrderSearchAPIRequest) SetRq(_rq *OpenSearchRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripFlightOrderSearchAPIRequest) GetRq() *OpenSearchRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripFlightOrderSearchAPIResponse.go b/model/btrip/AlitripBtripFlightOrderSearchAPIResponse.go new file mode 100644 index 0000000000..dbe9d55481 --- /dev/null +++ b/model/btrip/AlitripBtripFlightOrderSearchAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取机票订单列表 API返回值 +alitrip.btrip.flight.order.search + +第三方OA厂商获取机票订单列表 +*/ +type AlitripBtripFlightOrderSearchAPIResponse struct { + model.CommonResponse + AlitripBtripFlightOrderSearchAPIResponseModel +} + +// 获取机票订单列表 成功返回结果 +type AlitripBtripFlightOrderSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_flight_order_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据 + Result *BtriphomeResultSupport `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripFlightOrderSearchResponse.go b/model/btrip/AlitripBtripFlightOrderSearchResponse.go deleted file mode 100644 index 0c8e6a1866..0000000000 --- a/model/btrip/AlitripBtripFlightOrderSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取机票订单列表 API返回值 -alitrip.btrip.flight.order.search - -第三方OA厂商获取机票订单列表 -*/ -type AlitripBtripFlightOrderSearchAPIResponse struct { - model.CommonResponse - AlitripBtripFlightOrderSearchResponse -} - -// 获取机票订单列表 成功返回结果 -type AlitripBtripFlightOrderSearchResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_flight_order_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据 - Result *BtriphomeResultSupport `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripHotelDistributionOrderCancelAPIRequest.go b/model/btrip/AlitripBtripHotelDistributionOrderCancelAPIRequest.go new file mode 100644 index 0000000000..f4917fc78d --- /dev/null +++ b/model/btrip/AlitripBtripHotelDistributionOrderCancelAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅酒店API分销取消订单 API请求 +alitrip.btrip.hotel.distribution.order.cancel + +商旅酒店API分销取消订单 +*/ +type AlitripBtripHotelDistributionOrderCancelAPIRequest struct { + model.Params + // 取消订单接口入参 + _paramBtripHotelOrderOperateRq *BtripHotelOrderOperateRq +} + +// 初始化AlitripBtripHotelDistributionOrderCancelAPIRequest对象 +func NewAlitripBtripHotelDistributionOrderCancelRequest() *AlitripBtripHotelDistributionOrderCancelAPIRequest{ + return &AlitripBtripHotelDistributionOrderCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripHotelDistributionOrderCancelAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.hotel.distribution.order.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripHotelDistributionOrderCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBtripHotelOrderOperateRq Setter +// 取消订单接口入参 +func (r *AlitripBtripHotelDistributionOrderCancelAPIRequest) SetParamBtripHotelOrderOperateRq(_paramBtripHotelOrderOperateRq *BtripHotelOrderOperateRq) error { + r._paramBtripHotelOrderOperateRq = _paramBtripHotelOrderOperateRq + r.Set("param_btrip_hotel_order_operate_rq", _paramBtripHotelOrderOperateRq) + return nil +} + +// ParamBtripHotelOrderOperateRq Getter +func (r AlitripBtripHotelDistributionOrderCancelAPIRequest) GetParamBtripHotelOrderOperateRq() *BtripHotelOrderOperateRq { + return r._paramBtripHotelOrderOperateRq +} diff --git a/model/btrip/AlitripBtripHotelDistributionOrderCancelAPIResponse.go b/model/btrip/AlitripBtripHotelDistributionOrderCancelAPIResponse.go new file mode 100644 index 0000000000..589da3c565 --- /dev/null +++ b/model/btrip/AlitripBtripHotelDistributionOrderCancelAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅酒店API分销取消订单 API返回值 +alitrip.btrip.hotel.distribution.order.cancel + +商旅酒店API分销取消订单 +*/ +type AlitripBtripHotelDistributionOrderCancelAPIResponse struct { + model.CommonResponse + AlitripBtripHotelDistributionOrderCancelAPIResponseModel +} + +// 商旅酒店API分销取消订单 成功返回结果 +type AlitripBtripHotelDistributionOrderCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_hotel_distribution_order_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 取消订单返回结果 + Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripHotelDistributionOrderCancelResponse.go b/model/btrip/AlitripBtripHotelDistributionOrderCancelResponse.go deleted file mode 100644 index 07dfbc60ab..0000000000 --- a/model/btrip/AlitripBtripHotelDistributionOrderCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商旅酒店API分销取消订单 API返回值 -alitrip.btrip.hotel.distribution.order.cancel - -商旅酒店API分销取消订单 -*/ -type AlitripBtripHotelDistributionOrderCancelAPIResponse struct { - model.CommonResponse - AlitripBtripHotelDistributionOrderCancelResponse -} - -// 商旅酒店API分销取消订单 成功返回结果 -type AlitripBtripHotelDistributionOrderCancelResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_hotel_distribution_order_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 取消订单返回结果 - Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripHotelDistributionOrderCreateAPIRequest.go b/model/btrip/AlitripBtripHotelDistributionOrderCreateAPIRequest.go new file mode 100644 index 0000000000..0ddf7ed489 --- /dev/null +++ b/model/btrip/AlitripBtripHotelDistributionOrderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅酒店分销-创建订单 API请求 +alitrip.btrip.hotel.distribution.order.create + +商旅酒店分销-创建订单 +*/ +type AlitripBtripHotelDistributionOrderCreateAPIRequest struct { + model.Params + // 创建订单请求入参 + _paramBtripHotelCreateOrderRq *BtripHotelCreateOrderRq +} + +// 初始化AlitripBtripHotelDistributionOrderCreateAPIRequest对象 +func NewAlitripBtripHotelDistributionOrderCreateRequest() *AlitripBtripHotelDistributionOrderCreateAPIRequest{ + return &AlitripBtripHotelDistributionOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripHotelDistributionOrderCreateAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.hotel.distribution.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripHotelDistributionOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBtripHotelCreateOrderRq Setter +// 创建订单请求入参 +func (r *AlitripBtripHotelDistributionOrderCreateAPIRequest) SetParamBtripHotelCreateOrderRq(_paramBtripHotelCreateOrderRq *BtripHotelCreateOrderRq) error { + r._paramBtripHotelCreateOrderRq = _paramBtripHotelCreateOrderRq + r.Set("param_btrip_hotel_create_order_rq", _paramBtripHotelCreateOrderRq) + return nil +} + +// ParamBtripHotelCreateOrderRq Getter +func (r AlitripBtripHotelDistributionOrderCreateAPIRequest) GetParamBtripHotelCreateOrderRq() *BtripHotelCreateOrderRq { + return r._paramBtripHotelCreateOrderRq +} diff --git a/model/btrip/AlitripBtripHotelDistributionOrderCreateAPIResponse.go b/model/btrip/AlitripBtripHotelDistributionOrderCreateAPIResponse.go new file mode 100644 index 0000000000..89870ee38a --- /dev/null +++ b/model/btrip/AlitripBtripHotelDistributionOrderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅酒店分销-创建订单 API返回值 +alitrip.btrip.hotel.distribution.order.create + +商旅酒店分销-创建订单 +*/ +type AlitripBtripHotelDistributionOrderCreateAPIResponse struct { + model.CommonResponse + AlitripBtripHotelDistributionOrderCreateAPIResponseModel +} + +// 商旅酒店分销-创建订单 成功返回结果 +type AlitripBtripHotelDistributionOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_hotel_distribution_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创单返回结果 + Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripHotelDistributionOrderCreateResponse.go b/model/btrip/AlitripBtripHotelDistributionOrderCreateResponse.go deleted file mode 100644 index 4c5c8a0a48..0000000000 --- a/model/btrip/AlitripBtripHotelDistributionOrderCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商旅酒店分销-创建订单 API返回值 -alitrip.btrip.hotel.distribution.order.create - -商旅酒店分销-创建订单 -*/ -type AlitripBtripHotelDistributionOrderCreateAPIResponse struct { - model.CommonResponse - AlitripBtripHotelDistributionOrderCreateResponse -} - -// 商旅酒店分销-创建订单 成功返回结果 -type AlitripBtripHotelDistributionOrderCreateResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_hotel_distribution_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创单返回结果 - Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripHotelDistributionOrderPayAPIRequest.go b/model/btrip/AlitripBtripHotelDistributionOrderPayAPIRequest.go new file mode 100644 index 0000000000..11e043794f --- /dev/null +++ b/model/btrip/AlitripBtripHotelDistributionOrderPayAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅酒店分销订单支付 API请求 +alitrip.btrip.hotel.distribution.order.pay + +商旅酒店分销订单支付 +*/ +type AlitripBtripHotelDistributionOrderPayAPIRequest struct { + model.Params + // 通知商旅支付成功接口参数 + _paramBtripHotelOrderOperateRq *BtripHotelOrderOperateRq +} + +// 初始化AlitripBtripHotelDistributionOrderPayAPIRequest对象 +func NewAlitripBtripHotelDistributionOrderPayRequest() *AlitripBtripHotelDistributionOrderPayAPIRequest{ + return &AlitripBtripHotelDistributionOrderPayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripHotelDistributionOrderPayAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.hotel.distribution.order.pay" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripHotelDistributionOrderPayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBtripHotelOrderOperateRq Setter +// 通知商旅支付成功接口参数 +func (r *AlitripBtripHotelDistributionOrderPayAPIRequest) SetParamBtripHotelOrderOperateRq(_paramBtripHotelOrderOperateRq *BtripHotelOrderOperateRq) error { + r._paramBtripHotelOrderOperateRq = _paramBtripHotelOrderOperateRq + r.Set("param_btrip_hotel_order_operate_rq", _paramBtripHotelOrderOperateRq) + return nil +} + +// ParamBtripHotelOrderOperateRq Getter +func (r AlitripBtripHotelDistributionOrderPayAPIRequest) GetParamBtripHotelOrderOperateRq() *BtripHotelOrderOperateRq { + return r._paramBtripHotelOrderOperateRq +} diff --git a/model/btrip/AlitripBtripHotelDistributionOrderPayAPIResponse.go b/model/btrip/AlitripBtripHotelDistributionOrderPayAPIResponse.go new file mode 100644 index 0000000000..d2e8bfdf97 --- /dev/null +++ b/model/btrip/AlitripBtripHotelDistributionOrderPayAPIResponse.go @@ -0,0 +1,31 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅酒店分销订单支付 API返回值 +alitrip.btrip.hotel.distribution.order.pay + +商旅酒店分销订单支付 +*/ +type AlitripBtripHotelDistributionOrderPayAPIResponse struct { + model.CommonResponse + AlitripBtripHotelDistributionOrderPayAPIResponseModel +} + +// 商旅酒店分销订单支付 成功返回结果 +type AlitripBtripHotelDistributionOrderPayAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_hotel_distribution_order_pay_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否支付成功 + Module bool `json:"module,omitempty" xml:"module,omitempty"` + // 支付结果返回码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 支付结果返回信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripHotelDistributionOrderPayResponse.go b/model/btrip/AlitripBtripHotelDistributionOrderPayResponse.go deleted file mode 100644 index 33fe0b1ed2..0000000000 --- a/model/btrip/AlitripBtripHotelDistributionOrderPayResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商旅酒店分销订单支付 API返回值 -alitrip.btrip.hotel.distribution.order.pay - -商旅酒店分销订单支付 -*/ -type AlitripBtripHotelDistributionOrderPayAPIResponse struct { - model.CommonResponse - AlitripBtripHotelDistributionOrderPayResponse -} - -// 商旅酒店分销订单支付 成功返回结果 -type AlitripBtripHotelDistributionOrderPayResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_hotel_distribution_order_pay_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否支付成功 - Module bool `json:"module,omitempty" xml:"module,omitempty"` - // 支付结果返回码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 支付结果返回信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripHotelDistributionOrderValidateAPIRequest.go b/model/btrip/AlitripBtripHotelDistributionOrderValidateAPIRequest.go new file mode 100644 index 0000000000..f104ebbf2c --- /dev/null +++ b/model/btrip/AlitripBtripHotelDistributionOrderValidateAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅酒店API分销下单前校验 API请求 +alitrip.btrip.hotel.distribution.order.validate + +商旅酒店API分销下单前校验 +*/ +type AlitripBtripHotelDistributionOrderValidateAPIRequest struct { + model.Params + // 下单前校验入参 + _paramBtripHotelValidateOrderRq *BtripHotelValidateOrderRq +} + +// 初始化AlitripBtripHotelDistributionOrderValidateAPIRequest对象 +func NewAlitripBtripHotelDistributionOrderValidateRequest() *AlitripBtripHotelDistributionOrderValidateAPIRequest{ + return &AlitripBtripHotelDistributionOrderValidateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripHotelDistributionOrderValidateAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.hotel.distribution.order.validate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripHotelDistributionOrderValidateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBtripHotelValidateOrderRq Setter +// 下单前校验入参 +func (r *AlitripBtripHotelDistributionOrderValidateAPIRequest) SetParamBtripHotelValidateOrderRq(_paramBtripHotelValidateOrderRq *BtripHotelValidateOrderRq) error { + r._paramBtripHotelValidateOrderRq = _paramBtripHotelValidateOrderRq + r.Set("param_btrip_hotel_validate_order_rq", _paramBtripHotelValidateOrderRq) + return nil +} + +// ParamBtripHotelValidateOrderRq Getter +func (r AlitripBtripHotelDistributionOrderValidateAPIRequest) GetParamBtripHotelValidateOrderRq() *BtripHotelValidateOrderRq { + return r._paramBtripHotelValidateOrderRq +} diff --git a/model/btrip/AlitripBtripHotelDistributionOrderValidateAPIResponse.go b/model/btrip/AlitripBtripHotelDistributionOrderValidateAPIResponse.go new file mode 100644 index 0000000000..d7a8cd331d --- /dev/null +++ b/model/btrip/AlitripBtripHotelDistributionOrderValidateAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅酒店API分销下单前校验 API返回值 +alitrip.btrip.hotel.distribution.order.validate + +商旅酒店API分销下单前校验 +*/ +type AlitripBtripHotelDistributionOrderValidateAPIResponse struct { + model.CommonResponse + AlitripBtripHotelDistributionOrderValidateAPIResponseModel +} + +// 商旅酒店API分销下单前校验 成功返回结果 +type AlitripBtripHotelDistributionOrderValidateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_hotel_distribution_order_validate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 下单前校验结果 + Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripHotelDistributionOrderValidateResponse.go b/model/btrip/AlitripBtripHotelDistributionOrderValidateResponse.go deleted file mode 100644 index aba00278a8..0000000000 --- a/model/btrip/AlitripBtripHotelDistributionOrderValidateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商旅酒店API分销下单前校验 API返回值 -alitrip.btrip.hotel.distribution.order.validate - -商旅酒店API分销下单前校验 -*/ -type AlitripBtripHotelDistributionOrderValidateAPIResponse struct { - model.CommonResponse - AlitripBtripHotelDistributionOrderValidateResponse -} - -// 商旅酒店API分销下单前校验 成功返回结果 -type AlitripBtripHotelDistributionOrderValidateResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_hotel_distribution_order_validate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 下单前校验结果 - Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripHotelDistributionSearchDetailAPIRequest.go b/model/btrip/AlitripBtripHotelDistributionSearchDetailAPIRequest.go new file mode 100644 index 0000000000..0dc22a5338 --- /dev/null +++ b/model/btrip/AlitripBtripHotelDistributionSearchDetailAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅酒店api分销-详情报价接口 API请求 +alitrip.btrip.hotel.distribution.search.detail + +商旅酒店api分销-详情报价接口 +*/ +type AlitripBtripHotelDistributionSearchDetailAPIRequest struct { + model.Params + // 详情报价入参 + _paramHotelDetailRQ *HotelDetailRq +} + +// 初始化AlitripBtripHotelDistributionSearchDetailAPIRequest对象 +func NewAlitripBtripHotelDistributionSearchDetailRequest() *AlitripBtripHotelDistributionSearchDetailAPIRequest{ + return &AlitripBtripHotelDistributionSearchDetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripHotelDistributionSearchDetailAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.hotel.distribution.search.detail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripHotelDistributionSearchDetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamHotelDetailRQ Setter +// 详情报价入参 +func (r *AlitripBtripHotelDistributionSearchDetailAPIRequest) SetParamHotelDetailRQ(_paramHotelDetailRQ *HotelDetailRq) error { + r._paramHotelDetailRQ = _paramHotelDetailRQ + r.Set("param_hotel_detail_r_q", _paramHotelDetailRQ) + return nil +} + +// ParamHotelDetailRQ Getter +func (r AlitripBtripHotelDistributionSearchDetailAPIRequest) GetParamHotelDetailRQ() *HotelDetailRq { + return r._paramHotelDetailRQ +} diff --git a/model/btrip/AlitripBtripHotelDistributionSearchDetailAPIResponse.go b/model/btrip/AlitripBtripHotelDistributionSearchDetailAPIResponse.go new file mode 100644 index 0000000000..e5f718f9d4 --- /dev/null +++ b/model/btrip/AlitripBtripHotelDistributionSearchDetailAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅酒店api分销-详情报价接口 API返回值 +alitrip.btrip.hotel.distribution.search.detail + +商旅酒店api分销-详情报价接口 +*/ +type AlitripBtripHotelDistributionSearchDetailAPIResponse struct { + model.CommonResponse + AlitripBtripHotelDistributionSearchDetailAPIResponseModel +} + +// 商旅酒店api分销-详情报价接口 成功返回结果 +type AlitripBtripHotelDistributionSearchDetailAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_hotel_distribution_search_detail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 详情报价回参 + Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripHotelDistributionSearchDetailResponse.go b/model/btrip/AlitripBtripHotelDistributionSearchDetailResponse.go deleted file mode 100644 index 6f514b7272..0000000000 --- a/model/btrip/AlitripBtripHotelDistributionSearchDetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商旅酒店api分销-详情报价接口 API返回值 -alitrip.btrip.hotel.distribution.search.detail - -商旅酒店api分销-详情报价接口 -*/ -type AlitripBtripHotelDistributionSearchDetailAPIResponse struct { - model.CommonResponse - AlitripBtripHotelDistributionSearchDetailResponse -} - -// 商旅酒店api分销-详情报价接口 成功返回结果 -type AlitripBtripHotelDistributionSearchDetailResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_hotel_distribution_search_detail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 详情报价回参 - Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripHotelDistributionSearchLowPriceAPIRequest.go b/model/btrip/AlitripBtripHotelDistributionSearchLowPriceAPIRequest.go new file mode 100644 index 0000000000..ff1dcddcb5 --- /dev/null +++ b/model/btrip/AlitripBtripHotelDistributionSearchLowPriceAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅酒店api分销-酒店最低价 API请求 +alitrip.btrip.hotel.distribution.search.low.price + +商旅酒店api分销-酒店最低价 +*/ +type AlitripBtripHotelDistributionSearchLowPriceAPIRequest struct { + model.Params + // 列表最低价入参 + _paramHotelSearchListRQ *HotelSearchListRq +} + +// 初始化AlitripBtripHotelDistributionSearchLowPriceAPIRequest对象 +func NewAlitripBtripHotelDistributionSearchLowPriceRequest() *AlitripBtripHotelDistributionSearchLowPriceAPIRequest{ + return &AlitripBtripHotelDistributionSearchLowPriceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripHotelDistributionSearchLowPriceAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.hotel.distribution.search.low.price" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripHotelDistributionSearchLowPriceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamHotelSearchListRQ Setter +// 列表最低价入参 +func (r *AlitripBtripHotelDistributionSearchLowPriceAPIRequest) SetParamHotelSearchListRQ(_paramHotelSearchListRQ *HotelSearchListRq) error { + r._paramHotelSearchListRQ = _paramHotelSearchListRQ + r.Set("param_hotel_search_list_r_q", _paramHotelSearchListRQ) + return nil +} + +// ParamHotelSearchListRQ Getter +func (r AlitripBtripHotelDistributionSearchLowPriceAPIRequest) GetParamHotelSearchListRQ() *HotelSearchListRq { + return r._paramHotelSearchListRQ +} diff --git a/model/btrip/AlitripBtripHotelDistributionSearchLowPriceAPIResponse.go b/model/btrip/AlitripBtripHotelDistributionSearchLowPriceAPIResponse.go new file mode 100644 index 0000000000..b133b0be5e --- /dev/null +++ b/model/btrip/AlitripBtripHotelDistributionSearchLowPriceAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅酒店api分销-酒店最低价 API返回值 +alitrip.btrip.hotel.distribution.search.low.price + +商旅酒店api分销-酒店最低价 +*/ +type AlitripBtripHotelDistributionSearchLowPriceAPIResponse struct { + model.CommonResponse + AlitripBtripHotelDistributionSearchLowPriceAPIResponseModel +} + +// 商旅酒店api分销-酒店最低价 成功返回结果 +type AlitripBtripHotelDistributionSearchLowPriceAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_hotel_distribution_search_low_price_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回出参 + Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripHotelDistributionSearchLowPriceResponse.go b/model/btrip/AlitripBtripHotelDistributionSearchLowPriceResponse.go deleted file mode 100644 index 57bbd454b1..0000000000 --- a/model/btrip/AlitripBtripHotelDistributionSearchLowPriceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商旅酒店api分销-酒店最低价 API返回值 -alitrip.btrip.hotel.distribution.search.low.price - -商旅酒店api分销-酒店最低价 -*/ -type AlitripBtripHotelDistributionSearchLowPriceAPIResponse struct { - model.CommonResponse - AlitripBtripHotelDistributionSearchLowPriceResponse -} - -// 商旅酒店api分销-酒店最低价 成功返回结果 -type AlitripBtripHotelDistributionSearchLowPriceResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_hotel_distribution_search_low_price_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回出参 - Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripHotelDistributionSearchStaticAPIRequest.go b/model/btrip/AlitripBtripHotelDistributionSearchStaticAPIRequest.go new file mode 100644 index 0000000000..b5ef8f6f60 --- /dev/null +++ b/model/btrip/AlitripBtripHotelDistributionSearchStaticAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅酒店api分销-酒店静态信息接口 API请求 +alitrip.btrip.hotel.distribution.search.static + +商旅酒店api分销-酒店静态信息接口 +*/ +type AlitripBtripHotelDistributionSearchStaticAPIRequest struct { + model.Params + // 基础信息入参 + _paramHotelInfoRQ *HotelInfoRq +} + +// 初始化AlitripBtripHotelDistributionSearchStaticAPIRequest对象 +func NewAlitripBtripHotelDistributionSearchStaticRequest() *AlitripBtripHotelDistributionSearchStaticAPIRequest{ + return &AlitripBtripHotelDistributionSearchStaticAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripHotelDistributionSearchStaticAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.hotel.distribution.search.static" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripHotelDistributionSearchStaticAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamHotelInfoRQ Setter +// 基础信息入参 +func (r *AlitripBtripHotelDistributionSearchStaticAPIRequest) SetParamHotelInfoRQ(_paramHotelInfoRQ *HotelInfoRq) error { + r._paramHotelInfoRQ = _paramHotelInfoRQ + r.Set("param_hotel_info_r_q", _paramHotelInfoRQ) + return nil +} + +// ParamHotelInfoRQ Getter +func (r AlitripBtripHotelDistributionSearchStaticAPIRequest) GetParamHotelInfoRQ() *HotelInfoRq { + return r._paramHotelInfoRQ +} diff --git a/model/btrip/AlitripBtripHotelDistributionSearchStaticAPIResponse.go b/model/btrip/AlitripBtripHotelDistributionSearchStaticAPIResponse.go new file mode 100644 index 0000000000..8a275fdc67 --- /dev/null +++ b/model/btrip/AlitripBtripHotelDistributionSearchStaticAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅酒店api分销-酒店静态信息接口 API返回值 +alitrip.btrip.hotel.distribution.search.static + +商旅酒店api分销-酒店静态信息接口 +*/ +type AlitripBtripHotelDistributionSearchStaticAPIResponse struct { + model.CommonResponse + AlitripBtripHotelDistributionSearchStaticAPIResponseModel +} + +// 商旅酒店api分销-酒店静态信息接口 成功返回结果 +type AlitripBtripHotelDistributionSearchStaticAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_hotel_distribution_search_static_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回报文 + Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripHotelDistributionSearchStaticResponse.go b/model/btrip/AlitripBtripHotelDistributionSearchStaticResponse.go deleted file mode 100644 index 66f0c1d28d..0000000000 --- a/model/btrip/AlitripBtripHotelDistributionSearchStaticResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商旅酒店api分销-酒店静态信息接口 API返回值 -alitrip.btrip.hotel.distribution.search.static - -商旅酒店api分销-酒店静态信息接口 -*/ -type AlitripBtripHotelDistributionSearchStaticAPIResponse struct { - model.CommonResponse - AlitripBtripHotelDistributionSearchStaticResponse -} - -// 商旅酒店api分销-酒店静态信息接口 成功返回结果 -type AlitripBtripHotelDistributionSearchStaticResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_hotel_distribution_search_static_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回报文 - Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripHotelOrderSearchAPIRequest.go b/model/btrip/AlitripBtripHotelOrderSearchAPIRequest.go new file mode 100644 index 0000000000..fc093c241c --- /dev/null +++ b/model/btrip/AlitripBtripHotelOrderSearchAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索酒店订单列表 API请求 +alitrip.btrip.hotel.order.search + +企业获取商旅酒店订单数据 +*/ +type AlitripBtripHotelOrderSearchAPIRequest struct { + model.Params + // 请求 + _rq *OpenSearchRq +} + +// 初始化AlitripBtripHotelOrderSearchAPIRequest对象 +func NewAlitripBtripHotelOrderSearchRequest() *AlitripBtripHotelOrderSearchAPIRequest{ + return &AlitripBtripHotelOrderSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripHotelOrderSearchAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.hotel.order.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripHotelOrderSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求 +func (r *AlitripBtripHotelOrderSearchAPIRequest) SetRq(_rq *OpenSearchRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripHotelOrderSearchAPIRequest) GetRq() *OpenSearchRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripHotelOrderSearchAPIResponse.go b/model/btrip/AlitripBtripHotelOrderSearchAPIResponse.go new file mode 100644 index 0000000000..c4b56f90b9 --- /dev/null +++ b/model/btrip/AlitripBtripHotelOrderSearchAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索酒店订单列表 API返回值 +alitrip.btrip.hotel.order.search + +企业获取商旅酒店订单数据 +*/ +type AlitripBtripHotelOrderSearchAPIResponse struct { + model.CommonResponse + AlitripBtripHotelOrderSearchAPIResponseModel +} + +// 搜索酒店订单列表 成功返回结果 +type AlitripBtripHotelOrderSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_hotel_order_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *BtriphomeResultSupport `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripHotelOrderSearchResponse.go b/model/btrip/AlitripBtripHotelOrderSearchResponse.go deleted file mode 100644 index 3b9430cff4..0000000000 --- a/model/btrip/AlitripBtripHotelOrderSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -搜索酒店订单列表 API返回值 -alitrip.btrip.hotel.order.search - -企业获取商旅酒店订单数据 -*/ -type AlitripBtripHotelOrderSearchAPIResponse struct { - model.CommonResponse - AlitripBtripHotelOrderSearchResponse -} - -// 搜索酒店订单列表 成功返回结果 -type AlitripBtripHotelOrderSearchResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_hotel_order_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *BtriphomeResultSupport `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripInvoiceGetAPIRequest.go b/model/btrip/AlitripBtripInvoiceGetAPIRequest.go new file mode 100644 index 0000000000..339a00aeb0 --- /dev/null +++ b/model/btrip/AlitripBtripInvoiceGetAPIRequest.go @@ -0,0 +1,66 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户可用发票列表 API请求 +alitrip.btrip.invoice.get + +差旅申请用户获取可用发票列表 +*/ +type AlitripBtripInvoiceGetAPIRequest struct { + model.Params + // 企业id + _corpId string + // 用户id + _userId string +} + +// 初始化AlitripBtripInvoiceGetAPIRequest对象 +func NewAlitripBtripInvoiceGetRequest() *AlitripBtripInvoiceGetAPIRequest{ + return &AlitripBtripInvoiceGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripInvoiceGetAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.invoice.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripInvoiceGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CorpId Setter +// 企业id +func (r *AlitripBtripInvoiceGetAPIRequest) SetCorpId(_corpId string) error { + r._corpId = _corpId + r.Set("corp_id", _corpId) + return nil +} + +// CorpId Getter +func (r AlitripBtripInvoiceGetAPIRequest) GetCorpId() string { + return r._corpId +} +// UserId Setter +// 用户id +func (r *AlitripBtripInvoiceGetAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlitripBtripInvoiceGetAPIRequest) GetUserId() string { + return r._userId +} diff --git a/model/btrip/AlitripBtripInvoiceGetAPIResponse.go b/model/btrip/AlitripBtripInvoiceGetAPIResponse.go new file mode 100644 index 0000000000..15a3d7a715 --- /dev/null +++ b/model/btrip/AlitripBtripInvoiceGetAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户可用发票列表 API返回值 +alitrip.btrip.invoice.get + +差旅申请用户获取可用发票列表 +*/ +type AlitripBtripInvoiceGetAPIResponse struct { + model.CommonResponse + AlitripBtripInvoiceGetAPIResponseModel +} + +// 获取用户可用发票列表 成功返回结果 +type AlitripBtripInvoiceGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_invoice_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripInvoiceGetResponse.go b/model/btrip/AlitripBtripInvoiceGetResponse.go deleted file mode 100644 index 2d955c2756..0000000000 --- a/model/btrip/AlitripBtripInvoiceGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户可用发票列表 API返回值 -alitrip.btrip.invoice.get - -差旅申请用户获取可用发票列表 -*/ -type AlitripBtripInvoiceGetAPIResponse struct { - model.CommonResponse - AlitripBtripInvoiceGetResponse -} - -// 获取用户可用发票列表 成功返回结果 -type AlitripBtripInvoiceGetResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_invoice_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripInvoiceSearchAPIRequest.go b/model/btrip/AlitripBtripInvoiceSearchAPIRequest.go new file mode 100644 index 0000000000..224ed1995f --- /dev/null +++ b/model/btrip/AlitripBtripInvoiceSearchAPIRequest.go @@ -0,0 +1,80 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据发票抬头搜索发票 API请求 +alitrip.btrip.invoice.search + +用户根据发票抬头搜索发票信息 +*/ +type AlitripBtripInvoiceSearchAPIRequest struct { + model.Params + // 企业id + _corpId string + // 用户id + _userId string + // 发票抬头 + _title string +} + +// 初始化AlitripBtripInvoiceSearchAPIRequest对象 +func NewAlitripBtripInvoiceSearchRequest() *AlitripBtripInvoiceSearchAPIRequest{ + return &AlitripBtripInvoiceSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripInvoiceSearchAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.invoice.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripInvoiceSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CorpId Setter +// 企业id +func (r *AlitripBtripInvoiceSearchAPIRequest) SetCorpId(_corpId string) error { + r._corpId = _corpId + r.Set("corp_id", _corpId) + return nil +} + +// CorpId Getter +func (r AlitripBtripInvoiceSearchAPIRequest) GetCorpId() string { + return r._corpId +} +// UserId Setter +// 用户id +func (r *AlitripBtripInvoiceSearchAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlitripBtripInvoiceSearchAPIRequest) GetUserId() string { + return r._userId +} +// Title Setter +// 发票抬头 +func (r *AlitripBtripInvoiceSearchAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r AlitripBtripInvoiceSearchAPIRequest) GetTitle() string { + return r._title +} diff --git a/model/btrip/AlitripBtripInvoiceSearchAPIResponse.go b/model/btrip/AlitripBtripInvoiceSearchAPIResponse.go new file mode 100644 index 0000000000..e18b85ca42 --- /dev/null +++ b/model/btrip/AlitripBtripInvoiceSearchAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据发票抬头搜索发票 API返回值 +alitrip.btrip.invoice.search + +用户根据发票抬头搜索发票信息 +*/ +type AlitripBtripInvoiceSearchAPIResponse struct { + model.CommonResponse + AlitripBtripInvoiceSearchAPIResponseModel +} + +// 根据发票抬头搜索发票 成功返回结果 +type AlitripBtripInvoiceSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_invoice_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripInvoiceSearchResponse.go b/model/btrip/AlitripBtripInvoiceSearchResponse.go deleted file mode 100644 index aaaf3061d3..0000000000 --- a/model/btrip/AlitripBtripInvoiceSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据发票抬头搜索发票 API返回值 -alitrip.btrip.invoice.search - -用户根据发票抬头搜索发票信息 -*/ -type AlitripBtripInvoiceSearchAPIResponse struct { - model.CommonResponse - AlitripBtripInvoiceSearchResponse -} - -// 根据发票抬头搜索发票 成功返回结果 -type AlitripBtripInvoiceSearchResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_invoice_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripInvoiceSettingAddAPIRequest.go b/model/btrip/AlitripBtripInvoiceSettingAddAPIRequest.go new file mode 100644 index 0000000000..ff0231cc87 --- /dev/null +++ b/model/btrip/AlitripBtripInvoiceSettingAddAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发票设置 API请求 +alitrip.btrip.invoice.setting.add + +发票设置 +*/ +type AlitripBtripInvoiceSettingAddAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenInvoiceModifyAndNewRq +} + +// 初始化AlitripBtripInvoiceSettingAddAPIRequest对象 +func NewAlitripBtripInvoiceSettingAddRequest() *AlitripBtripInvoiceSettingAddAPIRequest{ + return &AlitripBtripInvoiceSettingAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripInvoiceSettingAddAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.invoice.setting.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripInvoiceSettingAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripInvoiceSettingAddAPIRequest) SetRq(_rq *OpenInvoiceModifyAndNewRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripInvoiceSettingAddAPIRequest) GetRq() *OpenInvoiceModifyAndNewRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripInvoiceSettingAddAPIResponse.go b/model/btrip/AlitripBtripInvoiceSettingAddAPIResponse.go new file mode 100644 index 0000000000..0f73232a0f --- /dev/null +++ b/model/btrip/AlitripBtripInvoiceSettingAddAPIResponse.go @@ -0,0 +1,31 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发票设置 API返回值 +alitrip.btrip.invoice.setting.add + +发票设置 +*/ +type AlitripBtripInvoiceSettingAddAPIResponse struct { + model.CommonResponse + AlitripBtripInvoiceSettingAddAPIResponseModel +} + +// 发票设置 成功返回结果 +type AlitripBtripInvoiceSettingAddAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_invoice_setting_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果值 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripInvoiceSettingAddResponse.go b/model/btrip/AlitripBtripInvoiceSettingAddResponse.go deleted file mode 100644 index af64403f62..0000000000 --- a/model/btrip/AlitripBtripInvoiceSettingAddResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发票设置 API返回值 -alitrip.btrip.invoice.setting.add - -发票设置 -*/ -type AlitripBtripInvoiceSettingAddAPIResponse struct { - model.CommonResponse - AlitripBtripInvoiceSettingAddResponse -} - -// 发票设置 成功返回结果 -type AlitripBtripInvoiceSettingAddResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_invoice_setting_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果值 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripInvoiceSettingDeleteAPIRequest.go b/model/btrip/AlitripBtripInvoiceSettingDeleteAPIRequest.go new file mode 100644 index 0000000000..daf21a4fd9 --- /dev/null +++ b/model/btrip/AlitripBtripInvoiceSettingDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发票删除 API请求 +alitrip.btrip.invoice.setting.delete + +发票删除 +*/ +type AlitripBtripInvoiceSettingDeleteAPIRequest struct { + model.Params + // 入参 + _rq *OpenInvoiceDeleteRq +} + +// 初始化AlitripBtripInvoiceSettingDeleteAPIRequest对象 +func NewAlitripBtripInvoiceSettingDeleteRequest() *AlitripBtripInvoiceSettingDeleteAPIRequest{ + return &AlitripBtripInvoiceSettingDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripInvoiceSettingDeleteAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.invoice.setting.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripInvoiceSettingDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参 +func (r *AlitripBtripInvoiceSettingDeleteAPIRequest) SetRq(_rq *OpenInvoiceDeleteRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripInvoiceSettingDeleteAPIRequest) GetRq() *OpenInvoiceDeleteRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripInvoiceSettingDeleteAPIResponse.go b/model/btrip/AlitripBtripInvoiceSettingDeleteAPIResponse.go new file mode 100644 index 0000000000..3969eee2b4 --- /dev/null +++ b/model/btrip/AlitripBtripInvoiceSettingDeleteAPIResponse.go @@ -0,0 +1,31 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发票删除 API返回值 +alitrip.btrip.invoice.setting.delete + +发票删除 +*/ +type AlitripBtripInvoiceSettingDeleteAPIResponse struct { + model.CommonResponse + AlitripBtripInvoiceSettingDeleteAPIResponseModel +} + +// 发票删除 成功返回结果 +type AlitripBtripInvoiceSettingDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_invoice_setting_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripInvoiceSettingDeleteResponse.go b/model/btrip/AlitripBtripInvoiceSettingDeleteResponse.go deleted file mode 100644 index e87ba3a685..0000000000 --- a/model/btrip/AlitripBtripInvoiceSettingDeleteResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发票删除 API返回值 -alitrip.btrip.invoice.setting.delete - -发票删除 -*/ -type AlitripBtripInvoiceSettingDeleteAPIResponse struct { - model.CommonResponse - AlitripBtripInvoiceSettingDeleteResponse -} - -// 发票删除 成功返回结果 -type AlitripBtripInvoiceSettingDeleteResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_invoice_setting_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripInvoiceSettingModifyAPIRequest.go b/model/btrip/AlitripBtripInvoiceSettingModifyAPIRequest.go new file mode 100644 index 0000000000..343d9aace5 --- /dev/null +++ b/model/btrip/AlitripBtripInvoiceSettingModifyAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发票变更 API请求 +alitrip.btrip.invoice.setting.modify + +发票变更 +*/ +type AlitripBtripInvoiceSettingModifyAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenInvoiceModifyAndNewRq +} + +// 初始化AlitripBtripInvoiceSettingModifyAPIRequest对象 +func NewAlitripBtripInvoiceSettingModifyRequest() *AlitripBtripInvoiceSettingModifyAPIRequest{ + return &AlitripBtripInvoiceSettingModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripInvoiceSettingModifyAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.invoice.setting.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripInvoiceSettingModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripInvoiceSettingModifyAPIRequest) SetRq(_rq *OpenInvoiceModifyAndNewRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripInvoiceSettingModifyAPIRequest) GetRq() *OpenInvoiceModifyAndNewRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripInvoiceSettingModifyAPIResponse.go b/model/btrip/AlitripBtripInvoiceSettingModifyAPIResponse.go new file mode 100644 index 0000000000..081d5af6ec --- /dev/null +++ b/model/btrip/AlitripBtripInvoiceSettingModifyAPIResponse.go @@ -0,0 +1,31 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发票变更 API返回值 +alitrip.btrip.invoice.setting.modify + +发票变更 +*/ +type AlitripBtripInvoiceSettingModifyAPIResponse struct { + model.CommonResponse + AlitripBtripInvoiceSettingModifyAPIResponseModel +} + +// 发票变更 成功返回结果 +type AlitripBtripInvoiceSettingModifyAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_invoice_setting_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripInvoiceSettingModifyResponse.go b/model/btrip/AlitripBtripInvoiceSettingModifyResponse.go deleted file mode 100644 index e907e0bd67..0000000000 --- a/model/btrip/AlitripBtripInvoiceSettingModifyResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发票变更 API返回值 -alitrip.btrip.invoice.setting.modify - -发票变更 -*/ -type AlitripBtripInvoiceSettingModifyAPIResponse struct { - model.CommonResponse - AlitripBtripInvoiceSettingModifyResponse -} - -// 发票变更 成功返回结果 -type AlitripBtripInvoiceSettingModifyResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_invoice_setting_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripInvoiceSettingRuleAPIRequest.go b/model/btrip/AlitripBtripInvoiceSettingRuleAPIRequest.go new file mode 100644 index 0000000000..0ed9c38367 --- /dev/null +++ b/model/btrip/AlitripBtripInvoiceSettingRuleAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发票规则设置 API请求 +alitrip.btrip.invoice.setting.rule + +发票规则设置 +*/ +type AlitripBtripInvoiceSettingRuleAPIRequest struct { + model.Params + // 入参对象 + _rq *OpenInvoiceRuleRq +} + +// 初始化AlitripBtripInvoiceSettingRuleAPIRequest对象 +func NewAlitripBtripInvoiceSettingRuleRequest() *AlitripBtripInvoiceSettingRuleAPIRequest{ + return &AlitripBtripInvoiceSettingRuleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripInvoiceSettingRuleAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.invoice.setting.rule" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripInvoiceSettingRuleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参对象 +func (r *AlitripBtripInvoiceSettingRuleAPIRequest) SetRq(_rq *OpenInvoiceRuleRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripInvoiceSettingRuleAPIRequest) GetRq() *OpenInvoiceRuleRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripInvoiceSettingRuleAPIResponse.go b/model/btrip/AlitripBtripInvoiceSettingRuleAPIResponse.go new file mode 100644 index 0000000000..6c3183a437 --- /dev/null +++ b/model/btrip/AlitripBtripInvoiceSettingRuleAPIResponse.go @@ -0,0 +1,31 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发票规则设置 API返回值 +alitrip.btrip.invoice.setting.rule + +发票规则设置 +*/ +type AlitripBtripInvoiceSettingRuleAPIResponse struct { + model.CommonResponse + AlitripBtripInvoiceSettingRuleAPIResponseModel +} + +// 发票规则设置 成功返回结果 +type AlitripBtripInvoiceSettingRuleAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_invoice_setting_rule_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *OpenInvoiceRuleRs `json:"result,omitempty" xml:"result,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripInvoiceSettingRuleResponse.go b/model/btrip/AlitripBtripInvoiceSettingRuleResponse.go deleted file mode 100644 index 27089a2071..0000000000 --- a/model/btrip/AlitripBtripInvoiceSettingRuleResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发票规则设置 API返回值 -alitrip.btrip.invoice.setting.rule - -发票规则设置 -*/ -type AlitripBtripInvoiceSettingRuleAPIResponse struct { - model.CommonResponse - AlitripBtripInvoiceSettingRuleResponse -} - -// 发票规则设置 成功返回结果 -type AlitripBtripInvoiceSettingRuleResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_invoice_setting_rule_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *OpenInvoiceRuleRs `json:"result,omitempty" xml:"result,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripMonthbillUrlGetAPIRequest.go b/model/btrip/AlitripBtripMonthbillUrlGetAPIRequest.go new file mode 100644 index 0000000000..618d11e53f --- /dev/null +++ b/model/btrip/AlitripBtripMonthbillUrlGetAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +月账单数据查询 API请求 +alitrip.btrip.monthbill.url.get + +月账单数据查询 +*/ +type AlitripBtripMonthbillUrlGetAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenAccountRq +} + +// 初始化AlitripBtripMonthbillUrlGetAPIRequest对象 +func NewAlitripBtripMonthbillUrlGetRequest() *AlitripBtripMonthbillUrlGetAPIRequest{ + return &AlitripBtripMonthbillUrlGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripMonthbillUrlGetAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.monthbill.url.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripMonthbillUrlGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripMonthbillUrlGetAPIRequest) SetRq(_rq *OpenAccountRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripMonthbillUrlGetAPIRequest) GetRq() *OpenAccountRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripMonthbillUrlGetAPIResponse.go b/model/btrip/AlitripBtripMonthbillUrlGetAPIResponse.go new file mode 100644 index 0000000000..e4393fd84a --- /dev/null +++ b/model/btrip/AlitripBtripMonthbillUrlGetAPIResponse.go @@ -0,0 +1,31 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +月账单数据查询 API返回值 +alitrip.btrip.monthbill.url.get + +月账单数据查询 +*/ +type AlitripBtripMonthbillUrlGetAPIResponse struct { + model.CommonResponse + AlitripBtripMonthbillUrlGetAPIResponseModel +} + +// 月账单数据查询 成功返回结果 +type AlitripBtripMonthbillUrlGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_monthbill_url_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Results []OpenAccountRs `json:"results,omitempty" xml:"results>open_account_rs,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripMonthbillUrlGetResponse.go b/model/btrip/AlitripBtripMonthbillUrlGetResponse.go deleted file mode 100644 index b045c59920..0000000000 --- a/model/btrip/AlitripBtripMonthbillUrlGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -月账单数据查询 API返回值 -alitrip.btrip.monthbill.url.get - -月账单数据查询 -*/ -type AlitripBtripMonthbillUrlGetAPIResponse struct { - model.CommonResponse - AlitripBtripMonthbillUrlGetResponse -} - -// 月账单数据查询 成功返回结果 -type AlitripBtripMonthbillUrlGetResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_monthbill_url_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Results []OpenAccountRs `json:"results,omitempty" xml:"results>open_account_rs,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripOpenCostCenterDeleteAPIRequest.go b/model/btrip/AlitripBtripOpenCostCenterDeleteAPIRequest.go new file mode 100644 index 0000000000..a36f913605 --- /dev/null +++ b/model/btrip/AlitripBtripOpenCostCenterDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除成本中心 API请求 +alitrip.btrip.open.cost.center.delete + +删除成本中心 +*/ +type AlitripBtripOpenCostCenterDeleteAPIRequest struct { + model.Params + // 入参对象 + _rq *OpenCostCenterDeleteRq +} + +// 初始化AlitripBtripOpenCostCenterDeleteAPIRequest对象 +func NewAlitripBtripOpenCostCenterDeleteRequest() *AlitripBtripOpenCostCenterDeleteAPIRequest{ + return &AlitripBtripOpenCostCenterDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripOpenCostCenterDeleteAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.open.cost.center.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripOpenCostCenterDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参对象 +func (r *AlitripBtripOpenCostCenterDeleteAPIRequest) SetRq(_rq *OpenCostCenterDeleteRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripOpenCostCenterDeleteAPIRequest) GetRq() *OpenCostCenterDeleteRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripOpenCostCenterDeleteAPIResponse.go b/model/btrip/AlitripBtripOpenCostCenterDeleteAPIResponse.go new file mode 100644 index 0000000000..f42bc5839a --- /dev/null +++ b/model/btrip/AlitripBtripOpenCostCenterDeleteAPIResponse.go @@ -0,0 +1,29 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除成本中心 API返回值 +alitrip.btrip.open.cost.center.delete + +删除成本中心 +*/ +type AlitripBtripOpenCostCenterDeleteAPIResponse struct { + model.CommonResponse + AlitripBtripOpenCostCenterDeleteAPIResponseModel +} + +// 删除成本中心 成功返回结果 +type AlitripBtripOpenCostCenterDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_open_cost_center_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripOpenCostCenterDeleteResponse.go b/model/btrip/AlitripBtripOpenCostCenterDeleteResponse.go deleted file mode 100644 index 4a64087b55..0000000000 --- a/model/btrip/AlitripBtripOpenCostCenterDeleteResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除成本中心 API返回值 -alitrip.btrip.open.cost.center.delete - -删除成本中心 -*/ -type AlitripBtripOpenCostCenterDeleteAPIResponse struct { - model.CommonResponse - AlitripBtripOpenCostCenterDeleteResponse -} - -// 删除成本中心 成功返回结果 -type AlitripBtripOpenCostCenterDeleteResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_open_cost_center_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripOpenCostCenterEntityAddAPIRequest.go b/model/btrip/AlitripBtripOpenCostCenterEntityAddAPIRequest.go new file mode 100644 index 0000000000..99ba5c161c --- /dev/null +++ b/model/btrip/AlitripBtripOpenCostCenterEntityAddAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +增加成本中心人员信息 API请求 +alitrip.btrip.open.cost.center.entity.add + +增加成本中心人员信息 +*/ +type AlitripBtripOpenCostCenterEntityAddAPIRequest struct { + model.Params + // 入参对象 + _rq *OpenCostCenterAddEntityRq +} + +// 初始化AlitripBtripOpenCostCenterEntityAddAPIRequest对象 +func NewAlitripBtripOpenCostCenterEntityAddRequest() *AlitripBtripOpenCostCenterEntityAddAPIRequest{ + return &AlitripBtripOpenCostCenterEntityAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripOpenCostCenterEntityAddAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.open.cost.center.entity.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripOpenCostCenterEntityAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参对象 +func (r *AlitripBtripOpenCostCenterEntityAddAPIRequest) SetRq(_rq *OpenCostCenterAddEntityRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripOpenCostCenterEntityAddAPIRequest) GetRq() *OpenCostCenterAddEntityRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripOpenCostCenterEntityAddAPIResponse.go b/model/btrip/AlitripBtripOpenCostCenterEntityAddAPIResponse.go new file mode 100644 index 0000000000..e8184aaa1c --- /dev/null +++ b/model/btrip/AlitripBtripOpenCostCenterEntityAddAPIResponse.go @@ -0,0 +1,31 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +增加成本中心人员信息 API返回值 +alitrip.btrip.open.cost.center.entity.add + +增加成本中心人员信息 +*/ +type AlitripBtripOpenCostCenterEntityAddAPIResponse struct { + model.CommonResponse + AlitripBtripOpenCostCenterEntityAddAPIResponseModel +} + +// 增加成本中心人员信息 成功返回结果 +type AlitripBtripOpenCostCenterEntityAddAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_open_cost_center_entity_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *OpenCostCenterAddEntityRs `json:"result,omitempty" xml:"result,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripOpenCostCenterEntityAddResponse.go b/model/btrip/AlitripBtripOpenCostCenterEntityAddResponse.go deleted file mode 100644 index a574d96972..0000000000 --- a/model/btrip/AlitripBtripOpenCostCenterEntityAddResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -增加成本中心人员信息 API返回值 -alitrip.btrip.open.cost.center.entity.add - -增加成本中心人员信息 -*/ -type AlitripBtripOpenCostCenterEntityAddAPIResponse struct { - model.CommonResponse - AlitripBtripOpenCostCenterEntityAddResponse -} - -// 增加成本中心人员信息 成功返回结果 -type AlitripBtripOpenCostCenterEntityAddResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_open_cost_center_entity_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *OpenCostCenterAddEntityRs `json:"result,omitempty" xml:"result,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripOpenCostCenterEntityDeleteAPIRequest.go b/model/btrip/AlitripBtripOpenCostCenterEntityDeleteAPIRequest.go new file mode 100644 index 0000000000..82b8e2ef1b --- /dev/null +++ b/model/btrip/AlitripBtripOpenCostCenterEntityDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除成本中心人员信息 API请求 +alitrip.btrip.open.cost.center.entity.delete + +删除成本中心人员信息 +*/ +type AlitripBtripOpenCostCenterEntityDeleteAPIRequest struct { + model.Params + // 入参对象 + _rq *OpenCostCenterDeleteEntityRq +} + +// 初始化AlitripBtripOpenCostCenterEntityDeleteAPIRequest对象 +func NewAlitripBtripOpenCostCenterEntityDeleteRequest() *AlitripBtripOpenCostCenterEntityDeleteAPIRequest{ + return &AlitripBtripOpenCostCenterEntityDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripOpenCostCenterEntityDeleteAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.open.cost.center.entity.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripOpenCostCenterEntityDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参对象 +func (r *AlitripBtripOpenCostCenterEntityDeleteAPIRequest) SetRq(_rq *OpenCostCenterDeleteEntityRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripOpenCostCenterEntityDeleteAPIRequest) GetRq() *OpenCostCenterDeleteEntityRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripOpenCostCenterEntityDeleteAPIResponse.go b/model/btrip/AlitripBtripOpenCostCenterEntityDeleteAPIResponse.go new file mode 100644 index 0000000000..bc33e0adf4 --- /dev/null +++ b/model/btrip/AlitripBtripOpenCostCenterEntityDeleteAPIResponse.go @@ -0,0 +1,31 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除成本中心人员信息 API返回值 +alitrip.btrip.open.cost.center.entity.delete + +删除成本中心人员信息 +*/ +type AlitripBtripOpenCostCenterEntityDeleteAPIResponse struct { + model.CommonResponse + AlitripBtripOpenCostCenterEntityDeleteAPIResponseModel +} + +// 删除成本中心人员信息 成功返回结果 +type AlitripBtripOpenCostCenterEntityDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_open_cost_center_entity_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *OpenCostCenterDeleteEntityRs `json:"result,omitempty" xml:"result,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripOpenCostCenterEntityDeleteResponse.go b/model/btrip/AlitripBtripOpenCostCenterEntityDeleteResponse.go deleted file mode 100644 index d38b49dbfd..0000000000 --- a/model/btrip/AlitripBtripOpenCostCenterEntityDeleteResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除成本中心人员信息 API返回值 -alitrip.btrip.open.cost.center.entity.delete - -删除成本中心人员信息 -*/ -type AlitripBtripOpenCostCenterEntityDeleteAPIResponse struct { - model.CommonResponse - AlitripBtripOpenCostCenterEntityDeleteResponse -} - -// 删除成本中心人员信息 成功返回结果 -type AlitripBtripOpenCostCenterEntityDeleteResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_open_cost_center_entity_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *OpenCostCenterDeleteEntityRs `json:"result,omitempty" xml:"result,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripOpenCostCenterEntitySetAPIRequest.go b/model/btrip/AlitripBtripOpenCostCenterEntitySetAPIRequest.go new file mode 100644 index 0000000000..caebb4fb4f --- /dev/null +++ b/model/btrip/AlitripBtripOpenCostCenterEntitySetAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设置成本中心人员信息 API请求 +alitrip.btrip.open.cost.center.entity.set + +设置成本中心人员信息 +*/ +type AlitripBtripOpenCostCenterEntitySetAPIRequest struct { + model.Params + // 入参对象 + _rq *OpenCostCenterSetEntityRq +} + +// 初始化AlitripBtripOpenCostCenterEntitySetAPIRequest对象 +func NewAlitripBtripOpenCostCenterEntitySetRequest() *AlitripBtripOpenCostCenterEntitySetAPIRequest{ + return &AlitripBtripOpenCostCenterEntitySetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripOpenCostCenterEntitySetAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.open.cost.center.entity.set" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripOpenCostCenterEntitySetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参对象 +func (r *AlitripBtripOpenCostCenterEntitySetAPIRequest) SetRq(_rq *OpenCostCenterSetEntityRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripOpenCostCenterEntitySetAPIRequest) GetRq() *OpenCostCenterSetEntityRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripOpenCostCenterEntitySetAPIResponse.go b/model/btrip/AlitripBtripOpenCostCenterEntitySetAPIResponse.go new file mode 100644 index 0000000000..200b9759ff --- /dev/null +++ b/model/btrip/AlitripBtripOpenCostCenterEntitySetAPIResponse.go @@ -0,0 +1,31 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设置成本中心人员信息 API返回值 +alitrip.btrip.open.cost.center.entity.set + +设置成本中心人员信息 +*/ +type AlitripBtripOpenCostCenterEntitySetAPIResponse struct { + model.CommonResponse + AlitripBtripOpenCostCenterEntitySetAPIResponseModel +} + +// 设置成本中心人员信息 成功返回结果 +type AlitripBtripOpenCostCenterEntitySetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_open_cost_center_entity_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *OpenCostCenterSetEntityRs `json:"result,omitempty" xml:"result,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripOpenCostCenterEntitySetResponse.go b/model/btrip/AlitripBtripOpenCostCenterEntitySetResponse.go deleted file mode 100644 index 9588b470bb..0000000000 --- a/model/btrip/AlitripBtripOpenCostCenterEntitySetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设置成本中心人员信息 API返回值 -alitrip.btrip.open.cost.center.entity.set - -设置成本中心人员信息 -*/ -type AlitripBtripOpenCostCenterEntitySetAPIResponse struct { - model.CommonResponse - AlitripBtripOpenCostCenterEntitySetResponse -} - -// 设置成本中心人员信息 成功返回结果 -type AlitripBtripOpenCostCenterEntitySetResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_open_cost_center_entity_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *OpenCostCenterSetEntityRs `json:"result,omitempty" xml:"result,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripOpenCostCenterModifyAPIRequest.go b/model/btrip/AlitripBtripOpenCostCenterModifyAPIRequest.go new file mode 100644 index 0000000000..c74247c194 --- /dev/null +++ b/model/btrip/AlitripBtripOpenCostCenterModifyAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改成本中心 API请求 +alitrip.btrip.open.cost.center.modify + +修改成本中心 +*/ +type AlitripBtripOpenCostCenterModifyAPIRequest struct { + model.Params + // 入参对象 + _rq *OpenCostCenterModifyRq +} + +// 初始化AlitripBtripOpenCostCenterModifyAPIRequest对象 +func NewAlitripBtripOpenCostCenterModifyRequest() *AlitripBtripOpenCostCenterModifyAPIRequest{ + return &AlitripBtripOpenCostCenterModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripOpenCostCenterModifyAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.open.cost.center.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripOpenCostCenterModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参对象 +func (r *AlitripBtripOpenCostCenterModifyAPIRequest) SetRq(_rq *OpenCostCenterModifyRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripOpenCostCenterModifyAPIRequest) GetRq() *OpenCostCenterModifyRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripOpenCostCenterModifyAPIResponse.go b/model/btrip/AlitripBtripOpenCostCenterModifyAPIResponse.go new file mode 100644 index 0000000000..d4434a88f0 --- /dev/null +++ b/model/btrip/AlitripBtripOpenCostCenterModifyAPIResponse.go @@ -0,0 +1,29 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改成本中心 API返回值 +alitrip.btrip.open.cost.center.modify + +修改成本中心 +*/ +type AlitripBtripOpenCostCenterModifyAPIResponse struct { + model.CommonResponse + AlitripBtripOpenCostCenterModifyAPIResponseModel +} + +// 修改成本中心 成功返回结果 +type AlitripBtripOpenCostCenterModifyAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_open_cost_center_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripOpenCostCenterModifyResponse.go b/model/btrip/AlitripBtripOpenCostCenterModifyResponse.go deleted file mode 100644 index a6bdcdb466..0000000000 --- a/model/btrip/AlitripBtripOpenCostCenterModifyResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改成本中心 API返回值 -alitrip.btrip.open.cost.center.modify - -修改成本中心 -*/ -type AlitripBtripOpenCostCenterModifyAPIResponse struct { - model.CommonResponse - AlitripBtripOpenCostCenterModifyResponse -} - -// 修改成本中心 成功返回结果 -type AlitripBtripOpenCostCenterModifyResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_open_cost_center_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripOpenCostCenterNewAPIRequest.go b/model/btrip/AlitripBtripOpenCostCenterNewAPIRequest.go new file mode 100644 index 0000000000..076848f12b --- /dev/null +++ b/model/btrip/AlitripBtripOpenCostCenterNewAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增成本中心 API请求 +alitrip.btrip.open.cost.center.new + +新增成本中心 +*/ +type AlitripBtripOpenCostCenterNewAPIRequest struct { + model.Params + // 入参对象 + _rq *OpenCostCenterSaveRq +} + +// 初始化AlitripBtripOpenCostCenterNewAPIRequest对象 +func NewAlitripBtripOpenCostCenterNewRequest() *AlitripBtripOpenCostCenterNewAPIRequest{ + return &AlitripBtripOpenCostCenterNewAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripOpenCostCenterNewAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.open.cost.center.new" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripOpenCostCenterNewAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参对象 +func (r *AlitripBtripOpenCostCenterNewAPIRequest) SetRq(_rq *OpenCostCenterSaveRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripOpenCostCenterNewAPIRequest) GetRq() *OpenCostCenterSaveRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripOpenCostCenterNewAPIResponse.go b/model/btrip/AlitripBtripOpenCostCenterNewAPIResponse.go new file mode 100644 index 0000000000..1be49b3a8d --- /dev/null +++ b/model/btrip/AlitripBtripOpenCostCenterNewAPIResponse.go @@ -0,0 +1,31 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增成本中心 API返回值 +alitrip.btrip.open.cost.center.new + +新增成本中心 +*/ +type AlitripBtripOpenCostCenterNewAPIResponse struct { + model.CommonResponse + AlitripBtripOpenCostCenterNewAPIResponseModel +} + +// 新增成本中心 成功返回结果 +type AlitripBtripOpenCostCenterNewAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_open_cost_center_new_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成本中心对象 + Module *OpenCostCenterSaveRs `json:"module,omitempty" xml:"module,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripOpenCostCenterNewResponse.go b/model/btrip/AlitripBtripOpenCostCenterNewResponse.go deleted file mode 100644 index 96e36a2d88..0000000000 --- a/model/btrip/AlitripBtripOpenCostCenterNewResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增成本中心 API返回值 -alitrip.btrip.open.cost.center.new - -新增成本中心 -*/ -type AlitripBtripOpenCostCenterNewAPIResponse struct { - model.CommonResponse - AlitripBtripOpenCostCenterNewResponse -} - -// 新增成本中心 成功返回结果 -type AlitripBtripOpenCostCenterNewResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_open_cost_center_new_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成本中心对象 - Module *OpenCostCenterSaveRs `json:"module,omitempty" xml:"module,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripOpenCostCenterQueryAPIRequest.go b/model/btrip/AlitripBtripOpenCostCenterQueryAPIRequest.go new file mode 100644 index 0000000000..53fdab8d22 --- /dev/null +++ b/model/btrip/AlitripBtripOpenCostCenterQueryAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询成本中心 API请求 +alitrip.btrip.open.cost.center.query + +查询成本中心 +*/ +type AlitripBtripOpenCostCenterQueryAPIRequest struct { + model.Params + // 入参对象 + _rq *OpenCostCenterQueryRq +} + +// 初始化AlitripBtripOpenCostCenterQueryAPIRequest对象 +func NewAlitripBtripOpenCostCenterQueryRequest() *AlitripBtripOpenCostCenterQueryAPIRequest{ + return &AlitripBtripOpenCostCenterQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripOpenCostCenterQueryAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.open.cost.center.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripOpenCostCenterQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参对象 +func (r *AlitripBtripOpenCostCenterQueryAPIRequest) SetRq(_rq *OpenCostCenterQueryRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripOpenCostCenterQueryAPIRequest) GetRq() *OpenCostCenterQueryRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripOpenCostCenterQueryAPIResponse.go b/model/btrip/AlitripBtripOpenCostCenterQueryAPIResponse.go new file mode 100644 index 0000000000..38c914fc86 --- /dev/null +++ b/model/btrip/AlitripBtripOpenCostCenterQueryAPIResponse.go @@ -0,0 +1,31 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询成本中心 API返回值 +alitrip.btrip.open.cost.center.query + +查询成本中心 +*/ +type AlitripBtripOpenCostCenterQueryAPIResponse struct { + model.CommonResponse + AlitripBtripOpenCostCenterQueryAPIResponseModel +} + +// 查询成本中心 成功返回结果 +type AlitripBtripOpenCostCenterQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_open_cost_center_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成本中心列表 + CostCenterList []OpenCostCenterQueryRs `json:"cost_center_list,omitempty" xml:"cost_center_list>open_cost_center_query_rs,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripOpenCostCenterQueryResponse.go b/model/btrip/AlitripBtripOpenCostCenterQueryResponse.go deleted file mode 100644 index 6a03e4e595..0000000000 --- a/model/btrip/AlitripBtripOpenCostCenterQueryResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询成本中心 API返回值 -alitrip.btrip.open.cost.center.query - -查询成本中心 -*/ -type AlitripBtripOpenCostCenterQueryAPIResponse struct { - model.CommonResponse - AlitripBtripOpenCostCenterQueryResponse -} - -// 查询成本中心 成功返回结果 -type AlitripBtripOpenCostCenterQueryResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_open_cost_center_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成本中心列表 - CostCenterList []OpenCostCenterQueryRs `json:"cost_center_list,omitempty" xml:"cost_center_list>open_cost_center_query_rs,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripOpenCostCenterTransferAPIRequest.go b/model/btrip/AlitripBtripOpenCostCenterTransferAPIRequest.go new file mode 100644 index 0000000000..2cb317a178 --- /dev/null +++ b/model/btrip/AlitripBtripOpenCostCenterTransferAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅成本中心转换为外部成本中心 API请求 +alitrip.btrip.open.cost.center.transfer + +商旅成本中心转换为外部成本中心 +*/ +type AlitripBtripOpenCostCenterTransferAPIRequest struct { + model.Params + // 入参对象 + _rq *OpenCostCenterTransferRq +} + +// 初始化AlitripBtripOpenCostCenterTransferAPIRequest对象 +func NewAlitripBtripOpenCostCenterTransferRequest() *AlitripBtripOpenCostCenterTransferAPIRequest{ + return &AlitripBtripOpenCostCenterTransferAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripOpenCostCenterTransferAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.open.cost.center.transfer" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripOpenCostCenterTransferAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参对象 +func (r *AlitripBtripOpenCostCenterTransferAPIRequest) SetRq(_rq *OpenCostCenterTransferRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripOpenCostCenterTransferAPIRequest) GetRq() *OpenCostCenterTransferRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripOpenCostCenterTransferAPIResponse.go b/model/btrip/AlitripBtripOpenCostCenterTransferAPIResponse.go new file mode 100644 index 0000000000..8b75054bed --- /dev/null +++ b/model/btrip/AlitripBtripOpenCostCenterTransferAPIResponse.go @@ -0,0 +1,29 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅成本中心转换为外部成本中心 API返回值 +alitrip.btrip.open.cost.center.transfer + +商旅成本中心转换为外部成本中心 +*/ +type AlitripBtripOpenCostCenterTransferAPIResponse struct { + model.CommonResponse + AlitripBtripOpenCostCenterTransferAPIResponseModel +} + +// 商旅成本中心转换为外部成本中心 成功返回结果 +type AlitripBtripOpenCostCenterTransferAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_open_cost_center_transfer_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripOpenCostCenterTransferResponse.go b/model/btrip/AlitripBtripOpenCostCenterTransferResponse.go deleted file mode 100644 index 63e53d0909..0000000000 --- a/model/btrip/AlitripBtripOpenCostCenterTransferResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商旅成本中心转换为外部成本中心 API返回值 -alitrip.btrip.open.cost.center.transfer - -商旅成本中心转换为外部成本中心 -*/ -type AlitripBtripOpenCostCenterTransferAPIResponse struct { - model.CommonResponse - AlitripBtripOpenCostCenterTransferResponse -} - -// 商旅成本中心转换为外部成本中心 成功返回结果 -type AlitripBtripOpenCostCenterTransferResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_open_cost_center_transfer_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripOpenInvoiceSearchAPIRequest.go b/model/btrip/AlitripBtripOpenInvoiceSearchAPIRequest.go new file mode 100644 index 0000000000..0c35457315 --- /dev/null +++ b/model/btrip/AlitripBtripOpenInvoiceSearchAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +差旅申请用户搜索可用发票列表 API请求 +alitrip.btrip.open.invoice.search + +差旅申请用户搜索可用发票列表 +*/ +type AlitripBtripOpenInvoiceSearchAPIRequest struct { + model.Params + // 入参对象 + _rq *OpenInvoiceRq +} + +// 初始化AlitripBtripOpenInvoiceSearchAPIRequest对象 +func NewAlitripBtripOpenInvoiceSearchRequest() *AlitripBtripOpenInvoiceSearchAPIRequest{ + return &AlitripBtripOpenInvoiceSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripOpenInvoiceSearchAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.open.invoice.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripOpenInvoiceSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参对象 +func (r *AlitripBtripOpenInvoiceSearchAPIRequest) SetRq(_rq *OpenInvoiceRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripOpenInvoiceSearchAPIRequest) GetRq() *OpenInvoiceRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripOpenInvoiceSearchAPIResponse.go b/model/btrip/AlitripBtripOpenInvoiceSearchAPIResponse.go new file mode 100644 index 0000000000..7eaa4467e2 --- /dev/null +++ b/model/btrip/AlitripBtripOpenInvoiceSearchAPIResponse.go @@ -0,0 +1,31 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +差旅申请用户搜索可用发票列表 API返回值 +alitrip.btrip.open.invoice.search + +差旅申请用户搜索可用发票列表 +*/ +type AlitripBtripOpenInvoiceSearchAPIResponse struct { + model.CommonResponse + AlitripBtripOpenInvoiceSearchAPIResponseModel +} + +// 差旅申请用户搜索可用发票列表 成功返回结果 +type AlitripBtripOpenInvoiceSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_open_invoice_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 发票列表 + InvoiceList []OpenInvoiceDo `json:"invoice_list,omitempty" xml:"invoice_list>open_invoice_do,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripOpenInvoiceSearchResponse.go b/model/btrip/AlitripBtripOpenInvoiceSearchResponse.go deleted file mode 100644 index 38cf50bac8..0000000000 --- a/model/btrip/AlitripBtripOpenInvoiceSearchResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -差旅申请用户搜索可用发票列表 API返回值 -alitrip.btrip.open.invoice.search - -差旅申请用户搜索可用发票列表 -*/ -type AlitripBtripOpenInvoiceSearchAPIResponse struct { - model.CommonResponse - AlitripBtripOpenInvoiceSearchResponse -} - -// 差旅申请用户搜索可用发票列表 成功返回结果 -type AlitripBtripOpenInvoiceSearchResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_open_invoice_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 发票列表 - InvoiceList []OpenInvoiceDo `json:"invoice_list,omitempty" xml:"invoice_list>open_invoice_do,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripOpenSupplychainFlightTradeAPIRequest.go b/model/btrip/AlitripBtripOpenSupplychainFlightTradeAPIRequest.go new file mode 100644 index 0000000000..4c8603010b --- /dev/null +++ b/model/btrip/AlitripBtripOpenSupplychainFlightTradeAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】机票交易流水查询接口 API请求 +alitrip.btrip.open.supplychain.flight.trade + +【商旅】杭州市政府机票交易流水接口查询 +*/ +type AlitripBtripOpenSupplychainFlightTradeAPIRequest struct { + model.Params + // 入参对象 + _rq *OpenApiZzdSearchRq +} + +// 初始化AlitripBtripOpenSupplychainFlightTradeAPIRequest对象 +func NewAlitripBtripOpenSupplychainFlightTradeRequest() *AlitripBtripOpenSupplychainFlightTradeAPIRequest{ + return &AlitripBtripOpenSupplychainFlightTradeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripOpenSupplychainFlightTradeAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.open.supplychain.flight.trade" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripOpenSupplychainFlightTradeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参对象 +func (r *AlitripBtripOpenSupplychainFlightTradeAPIRequest) SetRq(_rq *OpenApiZzdSearchRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripOpenSupplychainFlightTradeAPIRequest) GetRq() *OpenApiZzdSearchRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripOpenSupplychainFlightTradeAPIResponse.go b/model/btrip/AlitripBtripOpenSupplychainFlightTradeAPIResponse.go new file mode 100644 index 0000000000..db132eff33 --- /dev/null +++ b/model/btrip/AlitripBtripOpenSupplychainFlightTradeAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】机票交易流水查询接口 API返回值 +alitrip.btrip.open.supplychain.flight.trade + +【商旅】杭州市政府机票交易流水接口查询 +*/ +type AlitripBtripOpenSupplychainFlightTradeAPIResponse struct { + model.CommonResponse + AlitripBtripOpenSupplychainFlightTradeAPIResponseModel +} + +// 【商旅】机票交易流水查询接口 成功返回结果 +type AlitripBtripOpenSupplychainFlightTradeAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_open_supplychain_flight_trade_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *HisvResultSupport `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripOpenSupplychainFlightTradeResponse.go b/model/btrip/AlitripBtripOpenSupplychainFlightTradeResponse.go deleted file mode 100644 index 841024c25a..0000000000 --- a/model/btrip/AlitripBtripOpenSupplychainFlightTradeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【商旅】机票交易流水查询接口 API返回值 -alitrip.btrip.open.supplychain.flight.trade - -【商旅】杭州市政府机票交易流水接口查询 -*/ -type AlitripBtripOpenSupplychainFlightTradeAPIResponse struct { - model.CommonResponse - AlitripBtripOpenSupplychainFlightTradeResponse -} - -// 【商旅】机票交易流水查询接口 成功返回结果 -type AlitripBtripOpenSupplychainFlightTradeResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_open_supplychain_flight_trade_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *HisvResultSupport `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripOpenSupplychainHotelTradeAPIRequest.go b/model/btrip/AlitripBtripOpenSupplychainHotelTradeAPIRequest.go new file mode 100644 index 0000000000..7abf32b7d5 --- /dev/null +++ b/model/btrip/AlitripBtripOpenSupplychainHotelTradeAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】酒店交易查询流水接口 API请求 +alitrip.btrip.open.supplychain.hotel.trade + +【商旅】酒店交易查询流水接口——杭州市政府 +*/ +type AlitripBtripOpenSupplychainHotelTradeAPIRequest struct { + model.Params + // 入参 + _rq *OpenApiZzdSearchRq +} + +// 初始化AlitripBtripOpenSupplychainHotelTradeAPIRequest对象 +func NewAlitripBtripOpenSupplychainHotelTradeRequest() *AlitripBtripOpenSupplychainHotelTradeAPIRequest{ + return &AlitripBtripOpenSupplychainHotelTradeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripOpenSupplychainHotelTradeAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.open.supplychain.hotel.trade" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripOpenSupplychainHotelTradeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参 +func (r *AlitripBtripOpenSupplychainHotelTradeAPIRequest) SetRq(_rq *OpenApiZzdSearchRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripOpenSupplychainHotelTradeAPIRequest) GetRq() *OpenApiZzdSearchRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripOpenSupplychainHotelTradeAPIResponse.go b/model/btrip/AlitripBtripOpenSupplychainHotelTradeAPIResponse.go new file mode 100644 index 0000000000..92c69e42b0 --- /dev/null +++ b/model/btrip/AlitripBtripOpenSupplychainHotelTradeAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】酒店交易查询流水接口 API返回值 +alitrip.btrip.open.supplychain.hotel.trade + +【商旅】酒店交易查询流水接口——杭州市政府 +*/ +type AlitripBtripOpenSupplychainHotelTradeAPIResponse struct { + model.CommonResponse + AlitripBtripOpenSupplychainHotelTradeAPIResponseModel +} + +// 【商旅】酒店交易查询流水接口 成功返回结果 +type AlitripBtripOpenSupplychainHotelTradeAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_open_supplychain_hotel_trade_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *HisvResultSupport `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripOpenSupplychainHotelTradeResponse.go b/model/btrip/AlitripBtripOpenSupplychainHotelTradeResponse.go deleted file mode 100644 index beddd53e4d..0000000000 --- a/model/btrip/AlitripBtripOpenSupplychainHotelTradeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【商旅】酒店交易查询流水接口 API返回值 -alitrip.btrip.open.supplychain.hotel.trade - -【商旅】酒店交易查询流水接口——杭州市政府 -*/ -type AlitripBtripOpenSupplychainHotelTradeAPIResponse struct { - model.CommonResponse - AlitripBtripOpenSupplychainHotelTradeResponse -} - -// 【商旅】酒店交易查询流水接口 成功返回结果 -type AlitripBtripOpenSupplychainHotelTradeResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_open_supplychain_hotel_trade_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *HisvResultSupport `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripOpenSupplychainTrainTradeAPIRequest.go b/model/btrip/AlitripBtripOpenSupplychainTrainTradeAPIRequest.go new file mode 100644 index 0000000000..3b6d82b090 --- /dev/null +++ b/model/btrip/AlitripBtripOpenSupplychainTrainTradeAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅火车票交易流水接口 API请求 +alitrip.btrip.open.supplychain.train.trade + +商旅火车票交易流水接口 +*/ +type AlitripBtripOpenSupplychainTrainTradeAPIRequest struct { + model.Params + // 入参 + _rq *OpenApiZzdSearchRq +} + +// 初始化AlitripBtripOpenSupplychainTrainTradeAPIRequest对象 +func NewAlitripBtripOpenSupplychainTrainTradeRequest() *AlitripBtripOpenSupplychainTrainTradeAPIRequest{ + return &AlitripBtripOpenSupplychainTrainTradeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripOpenSupplychainTrainTradeAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.open.supplychain.train.trade" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripOpenSupplychainTrainTradeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参 +func (r *AlitripBtripOpenSupplychainTrainTradeAPIRequest) SetRq(_rq *OpenApiZzdSearchRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripOpenSupplychainTrainTradeAPIRequest) GetRq() *OpenApiZzdSearchRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripOpenSupplychainTrainTradeAPIResponse.go b/model/btrip/AlitripBtripOpenSupplychainTrainTradeAPIResponse.go new file mode 100644 index 0000000000..d096a80427 --- /dev/null +++ b/model/btrip/AlitripBtripOpenSupplychainTrainTradeAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅火车票交易流水接口 API返回值 +alitrip.btrip.open.supplychain.train.trade + +商旅火车票交易流水接口 +*/ +type AlitripBtripOpenSupplychainTrainTradeAPIResponse struct { + model.CommonResponse + AlitripBtripOpenSupplychainTrainTradeAPIResponseModel +} + +// 商旅火车票交易流水接口 成功返回结果 +type AlitripBtripOpenSupplychainTrainTradeAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_open_supplychain_train_trade_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *HisvResultSupport `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripOpenSupplychainTrainTradeResponse.go b/model/btrip/AlitripBtripOpenSupplychainTrainTradeResponse.go deleted file mode 100644 index 978334c536..0000000000 --- a/model/btrip/AlitripBtripOpenSupplychainTrainTradeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商旅火车票交易流水接口 API返回值 -alitrip.btrip.open.supplychain.train.trade - -商旅火车票交易流水接口 -*/ -type AlitripBtripOpenSupplychainTrainTradeAPIResponse struct { - model.CommonResponse - AlitripBtripOpenSupplychainTrainTradeResponse -} - -// 商旅火车票交易流水接口 成功返回结果 -type AlitripBtripOpenSupplychainTrainTradeResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_open_supplychain_train_trade_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *HisvResultSupport `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripOpenSupplychainVehicleTradeAPIRequest.go b/model/btrip/AlitripBtripOpenSupplychainVehicleTradeAPIRequest.go new file mode 100644 index 0000000000..7a57fba8e4 --- /dev/null +++ b/model/btrip/AlitripBtripOpenSupplychainVehicleTradeAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅用车交易流水接口 API请求 +alitrip.btrip.open.supplychain.vehicle.trade + +商旅用车交易流水接口 +*/ +type AlitripBtripOpenSupplychainVehicleTradeAPIRequest struct { + model.Params + // 入参 + _rq *OpenApiZzdSearchRq +} + +// 初始化AlitripBtripOpenSupplychainVehicleTradeAPIRequest对象 +func NewAlitripBtripOpenSupplychainVehicleTradeRequest() *AlitripBtripOpenSupplychainVehicleTradeAPIRequest{ + return &AlitripBtripOpenSupplychainVehicleTradeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripOpenSupplychainVehicleTradeAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.open.supplychain.vehicle.trade" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripOpenSupplychainVehicleTradeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参 +func (r *AlitripBtripOpenSupplychainVehicleTradeAPIRequest) SetRq(_rq *OpenApiZzdSearchRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripOpenSupplychainVehicleTradeAPIRequest) GetRq() *OpenApiZzdSearchRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripOpenSupplychainVehicleTradeAPIResponse.go b/model/btrip/AlitripBtripOpenSupplychainVehicleTradeAPIResponse.go new file mode 100644 index 0000000000..da40953e54 --- /dev/null +++ b/model/btrip/AlitripBtripOpenSupplychainVehicleTradeAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商旅用车交易流水接口 API返回值 +alitrip.btrip.open.supplychain.vehicle.trade + +商旅用车交易流水接口 +*/ +type AlitripBtripOpenSupplychainVehicleTradeAPIResponse struct { + model.CommonResponse + AlitripBtripOpenSupplychainVehicleTradeAPIResponseModel +} + +// 商旅用车交易流水接口 成功返回结果 +type AlitripBtripOpenSupplychainVehicleTradeAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_open_supplychain_vehicle_trade_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *HisvResultSupport `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripOpenSupplychainVehicleTradeResponse.go b/model/btrip/AlitripBtripOpenSupplychainVehicleTradeResponse.go deleted file mode 100644 index a828450e89..0000000000 --- a/model/btrip/AlitripBtripOpenSupplychainVehicleTradeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商旅用车交易流水接口 API返回值 -alitrip.btrip.open.supplychain.vehicle.trade - -商旅用车交易流水接口 -*/ -type AlitripBtripOpenSupplychainVehicleTradeAPIResponse struct { - model.CommonResponse - AlitripBtripOpenSupplychainVehicleTradeResponse -} - -// 商旅用车交易流水接口 成功返回结果 -type AlitripBtripOpenSupplychainVehicleTradeResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_open_supplychain_vehicle_trade_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *HisvResultSupport `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripOpenplatformAddressGetAPIRequest.go b/model/btrip/AlitripBtripOpenplatformAddressGetAPIRequest.go new file mode 100644 index 0000000000..902d8821ae --- /dev/null +++ b/model/btrip/AlitripBtripOpenplatformAddressGetAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】开放平台对外页面跳转 API请求 +alitrip.btrip.openplatform.address.get + +获取类目预定页跳转地址 +*/ +type AlitripBtripOpenplatformAddressGetAPIRequest struct { + model.Params + // 入参 + _rq *OpenApiJumpInfoRq +} + +// 初始化AlitripBtripOpenplatformAddressGetAPIRequest对象 +func NewAlitripBtripOpenplatformAddressGetRequest() *AlitripBtripOpenplatformAddressGetAPIRequest{ + return &AlitripBtripOpenplatformAddressGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripOpenplatformAddressGetAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.openplatform.address.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripOpenplatformAddressGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参 +func (r *AlitripBtripOpenplatformAddressGetAPIRequest) SetRq(_rq *OpenApiJumpInfoRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripOpenplatformAddressGetAPIRequest) GetRq() *OpenApiJumpInfoRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripOpenplatformAddressGetAPIResponse.go b/model/btrip/AlitripBtripOpenplatformAddressGetAPIResponse.go new file mode 100644 index 0000000000..ffb0cdf975 --- /dev/null +++ b/model/btrip/AlitripBtripOpenplatformAddressGetAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】开放平台对外页面跳转 API返回值 +alitrip.btrip.openplatform.address.get + +获取类目预定页跳转地址 +*/ +type AlitripBtripOpenplatformAddressGetAPIResponse struct { + model.CommonResponse + AlitripBtripOpenplatformAddressGetAPIResponseModel +} + +// 【商旅】开放平台对外页面跳转 成功返回结果 +type AlitripBtripOpenplatformAddressGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_openplatform_address_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripOpenplatformAddressGetResponse.go b/model/btrip/AlitripBtripOpenplatformAddressGetResponse.go deleted file mode 100644 index 35eb652284..0000000000 --- a/model/btrip/AlitripBtripOpenplatformAddressGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【商旅】开放平台对外页面跳转 API返回值 -alitrip.btrip.openplatform.address.get - -获取类目预定页跳转地址 -*/ -type AlitripBtripOpenplatformAddressGetAPIResponse struct { - model.CommonResponse - AlitripBtripOpenplatformAddressGetResponse -} - -// 【商旅】开放平台对外页面跳转 成功返回结果 -type AlitripBtripOpenplatformAddressGetResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_openplatform_address_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripProjectAddAPIRequest.go b/model/btrip/AlitripBtripProjectAddAPIRequest.go new file mode 100644 index 0000000000..38ea2d21f5 --- /dev/null +++ b/model/btrip/AlitripBtripProjectAddAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加项目 API请求 +alitrip.btrip.project.add + +添加项目 +*/ +type AlitripBtripProjectAddAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenProjectRq +} + +// 初始化AlitripBtripProjectAddAPIRequest对象 +func NewAlitripBtripProjectAddRequest() *AlitripBtripProjectAddAPIRequest{ + return &AlitripBtripProjectAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripProjectAddAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.project.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripProjectAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripProjectAddAPIRequest) SetRq(_rq *OpenProjectRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripProjectAddAPIRequest) GetRq() *OpenProjectRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripProjectAddAPIResponse.go b/model/btrip/AlitripBtripProjectAddAPIResponse.go new file mode 100644 index 0000000000..36596b94e1 --- /dev/null +++ b/model/btrip/AlitripBtripProjectAddAPIResponse.go @@ -0,0 +1,31 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加项目 API返回值 +alitrip.btrip.project.add + +添加项目 +*/ +type AlitripBtripProjectAddAPIResponse struct { + model.CommonResponse + AlitripBtripProjectAddAPIResponseModel +} + +// 添加项目 成功返回结果 +type AlitripBtripProjectAddAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_project_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripProjectAddResponse.go b/model/btrip/AlitripBtripProjectAddResponse.go deleted file mode 100644 index dc933d2481..0000000000 --- a/model/btrip/AlitripBtripProjectAddResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加项目 API返回值 -alitrip.btrip.project.add - -添加项目 -*/ -type AlitripBtripProjectAddAPIResponse struct { - model.CommonResponse - AlitripBtripProjectAddResponse -} - -// 添加项目 成功返回结果 -type AlitripBtripProjectAddResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_project_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripProjectDeleteAPIRequest.go b/model/btrip/AlitripBtripProjectDeleteAPIRequest.go new file mode 100644 index 0000000000..7eb4049cae --- /dev/null +++ b/model/btrip/AlitripBtripProjectDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除项目 API请求 +alitrip.btrip.project.delete + +删除项目 +*/ +type AlitripBtripProjectDeleteAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenProjectRq +} + +// 初始化AlitripBtripProjectDeleteAPIRequest对象 +func NewAlitripBtripProjectDeleteRequest() *AlitripBtripProjectDeleteAPIRequest{ + return &AlitripBtripProjectDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripProjectDeleteAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.project.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripProjectDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripProjectDeleteAPIRequest) SetRq(_rq *OpenProjectRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripProjectDeleteAPIRequest) GetRq() *OpenProjectRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripProjectDeleteAPIResponse.go b/model/btrip/AlitripBtripProjectDeleteAPIResponse.go new file mode 100644 index 0000000000..c130ae5368 --- /dev/null +++ b/model/btrip/AlitripBtripProjectDeleteAPIResponse.go @@ -0,0 +1,31 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除项目 API返回值 +alitrip.btrip.project.delete + +删除项目 +*/ +type AlitripBtripProjectDeleteAPIResponse struct { + model.CommonResponse + AlitripBtripProjectDeleteAPIResponseModel +} + +// 删除项目 成功返回结果 +type AlitripBtripProjectDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_project_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripProjectDeleteResponse.go b/model/btrip/AlitripBtripProjectDeleteResponse.go deleted file mode 100644 index e5cb98743f..0000000000 --- a/model/btrip/AlitripBtripProjectDeleteResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除项目 API返回值 -alitrip.btrip.project.delete - -删除项目 -*/ -type AlitripBtripProjectDeleteAPIResponse struct { - model.CommonResponse - AlitripBtripProjectDeleteResponse -} - -// 删除项目 成功返回结果 -type AlitripBtripProjectDeleteResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_project_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripProjectModifyAPIRequest.go b/model/btrip/AlitripBtripProjectModifyAPIRequest.go new file mode 100644 index 0000000000..125c489db5 --- /dev/null +++ b/model/btrip/AlitripBtripProjectModifyAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +变更项目 API请求 +alitrip.btrip.project.modify + +变更项目 +*/ +type AlitripBtripProjectModifyAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenProjectRq +} + +// 初始化AlitripBtripProjectModifyAPIRequest对象 +func NewAlitripBtripProjectModifyRequest() *AlitripBtripProjectModifyAPIRequest{ + return &AlitripBtripProjectModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripProjectModifyAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.project.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripProjectModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripProjectModifyAPIRequest) SetRq(_rq *OpenProjectRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripProjectModifyAPIRequest) GetRq() *OpenProjectRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripProjectModifyAPIResponse.go b/model/btrip/AlitripBtripProjectModifyAPIResponse.go new file mode 100644 index 0000000000..d0231cc189 --- /dev/null +++ b/model/btrip/AlitripBtripProjectModifyAPIResponse.go @@ -0,0 +1,31 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +变更项目 API返回值 +alitrip.btrip.project.modify + +变更项目 +*/ +type AlitripBtripProjectModifyAPIResponse struct { + model.CommonResponse + AlitripBtripProjectModifyAPIResponseModel +} + +// 变更项目 成功返回结果 +type AlitripBtripProjectModifyAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_project_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripProjectModifyResponse.go b/model/btrip/AlitripBtripProjectModifyResponse.go deleted file mode 100644 index c3b3fd44be..0000000000 --- a/model/btrip/AlitripBtripProjectModifyResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -变更项目 API返回值 -alitrip.btrip.project.modify - -变更项目 -*/ -type AlitripBtripProjectModifyAPIResponse struct { - model.CommonResponse - AlitripBtripProjectModifyResponse -} - -// 变更项目 成功返回结果 -type AlitripBtripProjectModifyResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_project_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripSupplychainBusIndustrySearchAPIRequest.go b/model/btrip/AlitripBtripSupplychainBusIndustrySearchAPIRequest.go new file mode 100644 index 0000000000..38e1dbf8a0 --- /dev/null +++ b/model/btrip/AlitripBtripSupplychainBusIndustrySearchAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票行业搜索接口 API请求 +alitrip.btrip.supplychain.bus.industry.search + +汽车票行业搜索接口 +*/ +type AlitripBtripSupplychainBusIndustrySearchAPIRequest struct { + model.Params + // 入参 + _rq *BusSearchRq +} + +// 初始化AlitripBtripSupplychainBusIndustrySearchAPIRequest对象 +func NewAlitripBtripSupplychainBusIndustrySearchRequest() *AlitripBtripSupplychainBusIndustrySearchAPIRequest{ + return &AlitripBtripSupplychainBusIndustrySearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripSupplychainBusIndustrySearchAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.supplychain.bus.industry.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripSupplychainBusIndustrySearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参 +func (r *AlitripBtripSupplychainBusIndustrySearchAPIRequest) SetRq(_rq *BusSearchRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripSupplychainBusIndustrySearchAPIRequest) GetRq() *BusSearchRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripSupplychainBusIndustrySearchAPIResponse.go b/model/btrip/AlitripBtripSupplychainBusIndustrySearchAPIResponse.go new file mode 100644 index 0000000000..60a04421a0 --- /dev/null +++ b/model/btrip/AlitripBtripSupplychainBusIndustrySearchAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票行业搜索接口 API返回值 +alitrip.btrip.supplychain.bus.industry.search + +汽车票行业搜索接口 +*/ +type AlitripBtripSupplychainBusIndustrySearchAPIResponse struct { + model.CommonResponse + AlitripBtripSupplychainBusIndustrySearchAPIResponseModel +} + +// 汽车票行业搜索接口 成功返回结果 +type AlitripBtripSupplychainBusIndustrySearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_supplychain_bus_industry_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripSupplychainBusIndustrySearchResponse.go b/model/btrip/AlitripBtripSupplychainBusIndustrySearchResponse.go deleted file mode 100644 index 96b0840de9..0000000000 --- a/model/btrip/AlitripBtripSupplychainBusIndustrySearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -汽车票行业搜索接口 API返回值 -alitrip.btrip.supplychain.bus.industry.search - -汽车票行业搜索接口 -*/ -type AlitripBtripSupplychainBusIndustrySearchAPIResponse struct { - model.CommonResponse - AlitripBtripSupplychainBusIndustrySearchResponse -} - -// 汽车票行业搜索接口 成功返回结果 -type AlitripBtripSupplychainBusIndustrySearchResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_supplychain_bus_industry_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripSupplychainFlightCityAPIRequest.go b/model/btrip/AlitripBtripSupplychainFlightCityAPIRequest.go new file mode 100644 index 0000000000..757ea3160c --- /dev/null +++ b/model/btrip/AlitripBtripSupplychainFlightCityAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +机场数据查询 API请求 +alitrip.btrip.supplychain.flight.city + +机场数据查询 +*/ +type AlitripBtripSupplychainFlightCityAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenSuggestRq +} + +// 初始化AlitripBtripSupplychainFlightCityAPIRequest对象 +func NewAlitripBtripSupplychainFlightCityRequest() *AlitripBtripSupplychainFlightCityAPIRequest{ + return &AlitripBtripSupplychainFlightCityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripSupplychainFlightCityAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.supplychain.flight.city" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripSupplychainFlightCityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripSupplychainFlightCityAPIRequest) SetRq(_rq *OpenSuggestRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripSupplychainFlightCityAPIRequest) GetRq() *OpenSuggestRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripSupplychainFlightCityAPIResponse.go b/model/btrip/AlitripBtripSupplychainFlightCityAPIResponse.go new file mode 100644 index 0000000000..875fd080a5 --- /dev/null +++ b/model/btrip/AlitripBtripSupplychainFlightCityAPIResponse.go @@ -0,0 +1,31 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +机场数据查询 API返回值 +alitrip.btrip.supplychain.flight.city + +机场数据查询 +*/ +type AlitripBtripSupplychainFlightCityAPIResponse struct { + model.CommonResponse + AlitripBtripSupplychainFlightCityAPIResponseModel +} + +// 机场数据查询 成功返回结果 +type AlitripBtripSupplychainFlightCityAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_supplychain_flight_city_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *SuggestRs `json:"result,omitempty" xml:"result,omitempty"` + // 结果码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripSupplychainFlightCityResponse.go b/model/btrip/AlitripBtripSupplychainFlightCityResponse.go deleted file mode 100644 index c3a696b64f..0000000000 --- a/model/btrip/AlitripBtripSupplychainFlightCityResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -机场数据查询 API返回值 -alitrip.btrip.supplychain.flight.city - -机场数据查询 -*/ -type AlitripBtripSupplychainFlightCityAPIResponse struct { - model.CommonResponse - AlitripBtripSupplychainFlightCityResponse -} - -// 机场数据查询 成功返回结果 -type AlitripBtripSupplychainFlightCityResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_supplychain_flight_city_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *SuggestRs `json:"result,omitempty" xml:"result,omitempty"` - // 结果码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripSupplychainFlightIndustrySearchAPIRequest.go b/model/btrip/AlitripBtripSupplychainFlightIndustrySearchAPIRequest.go new file mode 100644 index 0000000000..2267ce4ed2 --- /dev/null +++ b/model/btrip/AlitripBtripSupplychainFlightIndustrySearchAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +机票行业搜索接口 API请求 +alitrip.btrip.supplychain.flight.industry.search + +【商旅】机票行业搜索 +*/ +type AlitripBtripSupplychainFlightIndustrySearchAPIRequest struct { + model.Params + // 入参 + _rq *FlightSearchRq +} + +// 初始化AlitripBtripSupplychainFlightIndustrySearchAPIRequest对象 +func NewAlitripBtripSupplychainFlightIndustrySearchRequest() *AlitripBtripSupplychainFlightIndustrySearchAPIRequest{ + return &AlitripBtripSupplychainFlightIndustrySearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripSupplychainFlightIndustrySearchAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.supplychain.flight.industry.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripSupplychainFlightIndustrySearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参 +func (r *AlitripBtripSupplychainFlightIndustrySearchAPIRequest) SetRq(_rq *FlightSearchRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripSupplychainFlightIndustrySearchAPIRequest) GetRq() *FlightSearchRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripSupplychainFlightIndustrySearchAPIResponse.go b/model/btrip/AlitripBtripSupplychainFlightIndustrySearchAPIResponse.go new file mode 100644 index 0000000000..2886454d77 --- /dev/null +++ b/model/btrip/AlitripBtripSupplychainFlightIndustrySearchAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +机票行业搜索接口 API返回值 +alitrip.btrip.supplychain.flight.industry.search + +【商旅】机票行业搜索 +*/ +type AlitripBtripSupplychainFlightIndustrySearchAPIResponse struct { + model.CommonResponse + AlitripBtripSupplychainFlightIndustrySearchAPIResponseModel +} + +// 机票行业搜索接口 成功返回结果 +type AlitripBtripSupplychainFlightIndustrySearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_supplychain_flight_industry_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripSupplychainFlightIndustrySearchResponse.go b/model/btrip/AlitripBtripSupplychainFlightIndustrySearchResponse.go deleted file mode 100644 index eeb033fff6..0000000000 --- a/model/btrip/AlitripBtripSupplychainFlightIndustrySearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -机票行业搜索接口 API返回值 -alitrip.btrip.supplychain.flight.industry.search - -【商旅】机票行业搜索 -*/ -type AlitripBtripSupplychainFlightIndustrySearchAPIResponse struct { - model.CommonResponse - AlitripBtripSupplychainFlightIndustrySearchResponse -} - -// 机票行业搜索接口 成功返回结果 -type AlitripBtripSupplychainFlightIndustrySearchResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_supplychain_flight_industry_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripSupplychainFlightSearchAPIRequest.go b/model/btrip/AlitripBtripSupplychainFlightSearchAPIRequest.go new file mode 100644 index 0000000000..70a77d2da1 --- /dev/null +++ b/model/btrip/AlitripBtripSupplychainFlightSearchAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】机票订单查询 API请求 +alitrip.btrip.supplychain.flight.search + +【商旅】机票订单查询 +*/ +type AlitripBtripSupplychainFlightSearchAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenApiSearchRq +} + +// 初始化AlitripBtripSupplychainFlightSearchAPIRequest对象 +func NewAlitripBtripSupplychainFlightSearchRequest() *AlitripBtripSupplychainFlightSearchAPIRequest{ + return &AlitripBtripSupplychainFlightSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripSupplychainFlightSearchAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.supplychain.flight.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripSupplychainFlightSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripSupplychainFlightSearchAPIRequest) SetRq(_rq *OpenApiSearchRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripSupplychainFlightSearchAPIRequest) GetRq() *OpenApiSearchRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripSupplychainFlightSearchAPIResponse.go b/model/btrip/AlitripBtripSupplychainFlightSearchAPIResponse.go new file mode 100644 index 0000000000..224aa2e64a --- /dev/null +++ b/model/btrip/AlitripBtripSupplychainFlightSearchAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】机票订单查询 API返回值 +alitrip.btrip.supplychain.flight.search + +【商旅】机票订单查询 +*/ +type AlitripBtripSupplychainFlightSearchAPIResponse struct { + model.CommonResponse + AlitripBtripSupplychainFlightSearchAPIResponseModel +} + +// 【商旅】机票订单查询 成功返回结果 +type AlitripBtripSupplychainFlightSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_supplychain_flight_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参对象 + Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripSupplychainFlightSearchResponse.go b/model/btrip/AlitripBtripSupplychainFlightSearchResponse.go deleted file mode 100644 index 02a1d62cd6..0000000000 --- a/model/btrip/AlitripBtripSupplychainFlightSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【商旅】机票订单查询 API返回值 -alitrip.btrip.supplychain.flight.search - -【商旅】机票订单查询 -*/ -type AlitripBtripSupplychainFlightSearchAPIResponse struct { - model.CommonResponse - AlitripBtripSupplychainFlightSearchResponse -} - -// 【商旅】机票订单查询 成功返回结果 -type AlitripBtripSupplychainFlightSearchResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_supplychain_flight_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参对象 - Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripSupplychainHotelSearchAPIRequest.go b/model/btrip/AlitripBtripSupplychainHotelSearchAPIRequest.go new file mode 100644 index 0000000000..3cbf978a17 --- /dev/null +++ b/model/btrip/AlitripBtripSupplychainHotelSearchAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】酒店订单查询 API请求 +alitrip.btrip.supplychain.hotel.search + +【商旅】酒店订单查询 +*/ +type AlitripBtripSupplychainHotelSearchAPIRequest struct { + model.Params + // 入参 + _rq *OpenApiSearchRq +} + +// 初始化AlitripBtripSupplychainHotelSearchAPIRequest对象 +func NewAlitripBtripSupplychainHotelSearchRequest() *AlitripBtripSupplychainHotelSearchAPIRequest{ + return &AlitripBtripSupplychainHotelSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripSupplychainHotelSearchAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.supplychain.hotel.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripSupplychainHotelSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参 +func (r *AlitripBtripSupplychainHotelSearchAPIRequest) SetRq(_rq *OpenApiSearchRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripSupplychainHotelSearchAPIRequest) GetRq() *OpenApiSearchRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripSupplychainHotelSearchAPIResponse.go b/model/btrip/AlitripBtripSupplychainHotelSearchAPIResponse.go new file mode 100644 index 0000000000..48a71fa837 --- /dev/null +++ b/model/btrip/AlitripBtripSupplychainHotelSearchAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】酒店订单查询 API返回值 +alitrip.btrip.supplychain.hotel.search + +【商旅】酒店订单查询 +*/ +type AlitripBtripSupplychainHotelSearchAPIResponse struct { + model.CommonResponse + AlitripBtripSupplychainHotelSearchAPIResponseModel +} + +// 【商旅】酒店订单查询 成功返回结果 +type AlitripBtripSupplychainHotelSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_supplychain_hotel_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripSupplychainHotelSearchResponse.go b/model/btrip/AlitripBtripSupplychainHotelSearchResponse.go deleted file mode 100644 index e8b49262b1..0000000000 --- a/model/btrip/AlitripBtripSupplychainHotelSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【商旅】酒店订单查询 API返回值 -alitrip.btrip.supplychain.hotel.search - -【商旅】酒店订单查询 -*/ -type AlitripBtripSupplychainHotelSearchAPIResponse struct { - model.CommonResponse - AlitripBtripSupplychainHotelSearchResponse -} - -// 【商旅】酒店订单查询 成功返回结果 -type AlitripBtripSupplychainHotelSearchResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_supplychain_hotel_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripSupplychainTrainCityAPIRequest.go b/model/btrip/AlitripBtripSupplychainTrainCityAPIRequest.go new file mode 100644 index 0000000000..6d91706576 --- /dev/null +++ b/model/btrip/AlitripBtripSupplychainTrainCityAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +火车站数据查询 API请求 +alitrip.btrip.supplychain.train.city + +火车站数据查询 +*/ +type AlitripBtripSupplychainTrainCityAPIRequest struct { + model.Params + // 入参对象 + _rq *OpenSuggestRq +} + +// 初始化AlitripBtripSupplychainTrainCityAPIRequest对象 +func NewAlitripBtripSupplychainTrainCityRequest() *AlitripBtripSupplychainTrainCityAPIRequest{ + return &AlitripBtripSupplychainTrainCityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripSupplychainTrainCityAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.supplychain.train.city" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripSupplychainTrainCityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参对象 +func (r *AlitripBtripSupplychainTrainCityAPIRequest) SetRq(_rq *OpenSuggestRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripSupplychainTrainCityAPIRequest) GetRq() *OpenSuggestRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripSupplychainTrainCityAPIResponse.go b/model/btrip/AlitripBtripSupplychainTrainCityAPIResponse.go new file mode 100644 index 0000000000..8c2c2eae89 --- /dev/null +++ b/model/btrip/AlitripBtripSupplychainTrainCityAPIResponse.go @@ -0,0 +1,31 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +火车站数据查询 API返回值 +alitrip.btrip.supplychain.train.city + +火车站数据查询 +*/ +type AlitripBtripSupplychainTrainCityAPIResponse struct { + model.CommonResponse + AlitripBtripSupplychainTrainCityAPIResponseModel +} + +// 火车站数据查询 成功返回结果 +type AlitripBtripSupplychainTrainCityAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_supplychain_train_city_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *OpenApiSuggestRs `json:"result,omitempty" xml:"result,omitempty"` + // 结果信息 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果码 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/btrip/AlitripBtripSupplychainTrainCityResponse.go b/model/btrip/AlitripBtripSupplychainTrainCityResponse.go deleted file mode 100644 index 8f085fd4d8..0000000000 --- a/model/btrip/AlitripBtripSupplychainTrainCityResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -火车站数据查询 API返回值 -alitrip.btrip.supplychain.train.city - -火车站数据查询 -*/ -type AlitripBtripSupplychainTrainCityAPIResponse struct { - model.CommonResponse - AlitripBtripSupplychainTrainCityResponse -} - -// 火车站数据查询 成功返回结果 -type AlitripBtripSupplychainTrainCityResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_supplychain_train_city_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *OpenApiSuggestRs `json:"result,omitempty" xml:"result,omitempty"` - // 结果信息 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果码 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/btrip/AlitripBtripSupplychainTrainIndustrySearchAPIRequest.go b/model/btrip/AlitripBtripSupplychainTrainIndustrySearchAPIRequest.go new file mode 100644 index 0000000000..2090c93518 --- /dev/null +++ b/model/btrip/AlitripBtripSupplychainTrainIndustrySearchAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +火车票行业搜索接口 API请求 +alitrip.btrip.supplychain.train.industry.search + +【商旅】火车票行业搜索接口 +*/ +type AlitripBtripSupplychainTrainIndustrySearchAPIRequest struct { + model.Params + // 入参 + _rq *TrainSearchRq +} + +// 初始化AlitripBtripSupplychainTrainIndustrySearchAPIRequest对象 +func NewAlitripBtripSupplychainTrainIndustrySearchRequest() *AlitripBtripSupplychainTrainIndustrySearchAPIRequest{ + return &AlitripBtripSupplychainTrainIndustrySearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripSupplychainTrainIndustrySearchAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.supplychain.train.industry.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripSupplychainTrainIndustrySearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参 +func (r *AlitripBtripSupplychainTrainIndustrySearchAPIRequest) SetRq(_rq *TrainSearchRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripSupplychainTrainIndustrySearchAPIRequest) GetRq() *TrainSearchRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripSupplychainTrainIndustrySearchAPIResponse.go b/model/btrip/AlitripBtripSupplychainTrainIndustrySearchAPIResponse.go new file mode 100644 index 0000000000..e22f1f3bfb --- /dev/null +++ b/model/btrip/AlitripBtripSupplychainTrainIndustrySearchAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +火车票行业搜索接口 API返回值 +alitrip.btrip.supplychain.train.industry.search + +【商旅】火车票行业搜索接口 +*/ +type AlitripBtripSupplychainTrainIndustrySearchAPIResponse struct { + model.CommonResponse + AlitripBtripSupplychainTrainIndustrySearchAPIResponseModel +} + +// 火车票行业搜索接口 成功返回结果 +type AlitripBtripSupplychainTrainIndustrySearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_supplychain_train_industry_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripSupplychainTrainIndustrySearchResponse.go b/model/btrip/AlitripBtripSupplychainTrainIndustrySearchResponse.go deleted file mode 100644 index 2a0172da71..0000000000 --- a/model/btrip/AlitripBtripSupplychainTrainIndustrySearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -火车票行业搜索接口 API返回值 -alitrip.btrip.supplychain.train.industry.search - -【商旅】火车票行业搜索接口 -*/ -type AlitripBtripSupplychainTrainIndustrySearchAPIResponse struct { - model.CommonResponse - AlitripBtripSupplychainTrainIndustrySearchResponse -} - -// 火车票行业搜索接口 成功返回结果 -type AlitripBtripSupplychainTrainIndustrySearchResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_supplychain_train_industry_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripSupplychainTrainSearchAPIRequest.go b/model/btrip/AlitripBtripSupplychainTrainSearchAPIRequest.go new file mode 100644 index 0000000000..998f2b36ee --- /dev/null +++ b/model/btrip/AlitripBtripSupplychainTrainSearchAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】火车票订单查询 API请求 +alitrip.btrip.supplychain.train.search + +【商旅】火车票订单查询 +*/ +type AlitripBtripSupplychainTrainSearchAPIRequest struct { + model.Params + // 入参 + _rq *OpenApiSearchRq +} + +// 初始化AlitripBtripSupplychainTrainSearchAPIRequest对象 +func NewAlitripBtripSupplychainTrainSearchRequest() *AlitripBtripSupplychainTrainSearchAPIRequest{ + return &AlitripBtripSupplychainTrainSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripSupplychainTrainSearchAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.supplychain.train.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripSupplychainTrainSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 入参 +func (r *AlitripBtripSupplychainTrainSearchAPIRequest) SetRq(_rq *OpenApiSearchRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripSupplychainTrainSearchAPIRequest) GetRq() *OpenApiSearchRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripSupplychainTrainSearchAPIResponse.go b/model/btrip/AlitripBtripSupplychainTrainSearchAPIResponse.go new file mode 100644 index 0000000000..dba6523572 --- /dev/null +++ b/model/btrip/AlitripBtripSupplychainTrainSearchAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】火车票订单查询 API返回值 +alitrip.btrip.supplychain.train.search + +【商旅】火车票订单查询 +*/ +type AlitripBtripSupplychainTrainSearchAPIResponse struct { + model.CommonResponse + AlitripBtripSupplychainTrainSearchAPIResponseModel +} + +// 【商旅】火车票订单查询 成功返回结果 +type AlitripBtripSupplychainTrainSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_supplychain_train_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口对外数据透出 + Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripSupplychainTrainSearchResponse.go b/model/btrip/AlitripBtripSupplychainTrainSearchResponse.go deleted file mode 100644 index cf3b568af6..0000000000 --- a/model/btrip/AlitripBtripSupplychainTrainSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【商旅】火车票订单查询 API返回值 -alitrip.btrip.supplychain.train.search - -【商旅】火车票订单查询 -*/ -type AlitripBtripSupplychainTrainSearchAPIResponse struct { - model.CommonResponse - AlitripBtripSupplychainTrainSearchResponse -} - -// 【商旅】火车票订单查询 成功返回结果 -type AlitripBtripSupplychainTrainSearchResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_supplychain_train_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口对外数据透出 - Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripSupplychainVehicleSearchAPIRequest.go b/model/btrip/AlitripBtripSupplychainVehicleSearchAPIRequest.go new file mode 100644 index 0000000000..810b9e15b7 --- /dev/null +++ b/model/btrip/AlitripBtripSupplychainVehicleSearchAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】用车订单搜索 API请求 +alitrip.btrip.supplychain.vehicle.search + +【商旅】用车订单搜索 +*/ +type AlitripBtripSupplychainVehicleSearchAPIRequest struct { + model.Params + // 出参 + _rq *OpenApiSearchRq +} + +// 初始化AlitripBtripSupplychainVehicleSearchAPIRequest对象 +func NewAlitripBtripSupplychainVehicleSearchRequest() *AlitripBtripSupplychainVehicleSearchAPIRequest{ + return &AlitripBtripSupplychainVehicleSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripSupplychainVehicleSearchAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.supplychain.vehicle.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripSupplychainVehicleSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 出参 +func (r *AlitripBtripSupplychainVehicleSearchAPIRequest) SetRq(_rq *OpenApiSearchRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripSupplychainVehicleSearchAPIRequest) GetRq() *OpenApiSearchRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripSupplychainVehicleSearchAPIResponse.go b/model/btrip/AlitripBtripSupplychainVehicleSearchAPIResponse.go new file mode 100644 index 0000000000..3a7f499b99 --- /dev/null +++ b/model/btrip/AlitripBtripSupplychainVehicleSearchAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【商旅】用车订单搜索 API返回值 +alitrip.btrip.supplychain.vehicle.search + +【商旅】用车订单搜索 +*/ +type AlitripBtripSupplychainVehicleSearchAPIResponse struct { + model.CommonResponse + AlitripBtripSupplychainVehicleSearchAPIResponseModel +} + +// 【商旅】用车订单搜索 成功返回结果 +type AlitripBtripSupplychainVehicleSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_supplychain_vehicle_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripSupplychainVehicleSearchResponse.go b/model/btrip/AlitripBtripSupplychainVehicleSearchResponse.go deleted file mode 100644 index 8fe42cd1e2..0000000000 --- a/model/btrip/AlitripBtripSupplychainVehicleSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【商旅】用车订单搜索 API返回值 -alitrip.btrip.supplychain.vehicle.search - -【商旅】用车订单搜索 -*/ -type AlitripBtripSupplychainVehicleSearchAPIResponse struct { - model.CommonResponse - AlitripBtripSupplychainVehicleSearchResponse -} - -// 【商旅】用车订单搜索 成功返回结果 -type AlitripBtripSupplychainVehicleSearchResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_supplychain_vehicle_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *HisvResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripTrainCitySuggestAPIRequest.go b/model/btrip/AlitripBtripTrainCitySuggestAPIRequest.go new file mode 100644 index 0000000000..0ff7e3a209 --- /dev/null +++ b/model/btrip/AlitripBtripTrainCitySuggestAPIRequest.go @@ -0,0 +1,80 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +火车票城市搜索 API请求 +alitrip.btrip.train.city.suggest + +阿里商旅提供火车票搜索接口,方便OA厂商更精准的对接 +*/ +type AlitripBtripTrainCitySuggestAPIRequest struct { + model.Params + // 用户id + _userId string + // 搜索关键字 + _keyword string + // 企业id + _corpId string +} + +// 初始化AlitripBtripTrainCitySuggestAPIRequest对象 +func NewAlitripBtripTrainCitySuggestRequest() *AlitripBtripTrainCitySuggestAPIRequest{ + return &AlitripBtripTrainCitySuggestAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripTrainCitySuggestAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.train.city.suggest" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripTrainCitySuggestAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户id +func (r *AlitripBtripTrainCitySuggestAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlitripBtripTrainCitySuggestAPIRequest) GetUserId() string { + return r._userId +} +// Keyword Setter +// 搜索关键字 +func (r *AlitripBtripTrainCitySuggestAPIRequest) SetKeyword(_keyword string) error { + r._keyword = _keyword + r.Set("keyword", _keyword) + return nil +} + +// Keyword Getter +func (r AlitripBtripTrainCitySuggestAPIRequest) GetKeyword() string { + return r._keyword +} +// CorpId Setter +// 企业id +func (r *AlitripBtripTrainCitySuggestAPIRequest) SetCorpId(_corpId string) error { + r._corpId = _corpId + r.Set("corp_id", _corpId) + return nil +} + +// CorpId Getter +func (r AlitripBtripTrainCitySuggestAPIRequest) GetCorpId() string { + return r._corpId +} diff --git a/model/btrip/AlitripBtripTrainCitySuggestAPIResponse.go b/model/btrip/AlitripBtripTrainCitySuggestAPIResponse.go new file mode 100644 index 0000000000..5261b02ad2 --- /dev/null +++ b/model/btrip/AlitripBtripTrainCitySuggestAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +火车票城市搜索 API返回值 +alitrip.btrip.train.city.suggest + +阿里商旅提供火车票搜索接口,方便OA厂商更精准的对接 +*/ +type AlitripBtripTrainCitySuggestAPIResponse struct { + model.CommonResponse + AlitripBtripTrainCitySuggestAPIResponseModel +} + +// 火车票城市搜索 成功返回结果 +type AlitripBtripTrainCitySuggestAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_train_city_suggest_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *BtripApplyResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripTrainCitySuggestResponse.go b/model/btrip/AlitripBtripTrainCitySuggestResponse.go deleted file mode 100644 index e6e90384c5..0000000000 --- a/model/btrip/AlitripBtripTrainCitySuggestResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -火车票城市搜索 API返回值 -alitrip.btrip.train.city.suggest - -阿里商旅提供火车票搜索接口,方便OA厂商更精准的对接 -*/ -type AlitripBtripTrainCitySuggestAPIResponse struct { - model.CommonResponse - AlitripBtripTrainCitySuggestResponse -} - -// 火车票城市搜索 成功返回结果 -type AlitripBtripTrainCitySuggestResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_train_city_suggest_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *BtripApplyResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripTrainOrderSearchAPIRequest.go b/model/btrip/AlitripBtripTrainOrderSearchAPIRequest.go new file mode 100644 index 0000000000..6771a2f197 --- /dev/null +++ b/model/btrip/AlitripBtripTrainOrderSearchAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取火车票订单列表 API请求 +alitrip.btrip.train.order.search + +第三方OA厂商获取自己的火车票数据 +*/ +type AlitripBtripTrainOrderSearchAPIRequest struct { + model.Params + // 请求 + _rq *OpenSearchRq +} + +// 初始化AlitripBtripTrainOrderSearchAPIRequest对象 +func NewAlitripBtripTrainOrderSearchRequest() *AlitripBtripTrainOrderSearchAPIRequest{ + return &AlitripBtripTrainOrderSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripTrainOrderSearchAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.train.order.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripTrainOrderSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求 +func (r *AlitripBtripTrainOrderSearchAPIRequest) SetRq(_rq *OpenSearchRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripTrainOrderSearchAPIRequest) GetRq() *OpenSearchRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripTrainOrderSearchAPIResponse.go b/model/btrip/AlitripBtripTrainOrderSearchAPIResponse.go new file mode 100644 index 0000000000..5a5700eac7 --- /dev/null +++ b/model/btrip/AlitripBtripTrainOrderSearchAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取火车票订单列表 API返回值 +alitrip.btrip.train.order.search + +第三方OA厂商获取自己的火车票数据 +*/ +type AlitripBtripTrainOrderSearchAPIResponse struct { + model.CommonResponse + AlitripBtripTrainOrderSearchAPIResponseModel +} + +// 获取火车票订单列表 成功返回结果 +type AlitripBtripTrainOrderSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_train_order_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *BtriphomeResultSupport `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripTrainOrderSearchResponse.go b/model/btrip/AlitripBtripTrainOrderSearchResponse.go deleted file mode 100644 index 36372b490a..0000000000 --- a/model/btrip/AlitripBtripTrainOrderSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取火车票订单列表 API返回值 -alitrip.btrip.train.order.search - -第三方OA厂商获取自己的火车票数据 -*/ -type AlitripBtripTrainOrderSearchAPIResponse struct { - model.CommonResponse - AlitripBtripTrainOrderSearchResponse -} - -// 获取火车票订单列表 成功返回结果 -type AlitripBtripTrainOrderSearchResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_train_order_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *BtriphomeResultSupport `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/btrip/AlitripBtripVehicleOrderSearchAPIRequest.go b/model/btrip/AlitripBtripVehicleOrderSearchAPIRequest.go new file mode 100644 index 0000000000..0ddfc50174 --- /dev/null +++ b/model/btrip/AlitripBtripVehicleOrderSearchAPIRequest.go @@ -0,0 +1,52 @@ +package btrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用车订单查询接口 API请求 +alitrip.btrip.vehicle.order.search + +企业获取商旅用车订单数据 +*/ +type AlitripBtripVehicleOrderSearchAPIRequest struct { + model.Params + // 请求对象 + _rq *OpenSearchRq +} + +// 初始化AlitripBtripVehicleOrderSearchAPIRequest对象 +func NewAlitripBtripVehicleOrderSearchRequest() *AlitripBtripVehicleOrderSearchAPIRequest{ + return &AlitripBtripVehicleOrderSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripBtripVehicleOrderSearchAPIRequest) GetApiMethodName() string { + return "alitrip.btrip.vehicle.order.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripBtripVehicleOrderSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rq Setter +// 请求对象 +func (r *AlitripBtripVehicleOrderSearchAPIRequest) SetRq(_rq *OpenSearchRq) error { + r._rq = _rq + r.Set("rq", _rq) + return nil +} + +// Rq Getter +func (r AlitripBtripVehicleOrderSearchAPIRequest) GetRq() *OpenSearchRq { + return r._rq +} diff --git a/model/btrip/AlitripBtripVehicleOrderSearchAPIResponse.go b/model/btrip/AlitripBtripVehicleOrderSearchAPIResponse.go new file mode 100644 index 0000000000..bd49ec7775 --- /dev/null +++ b/model/btrip/AlitripBtripVehicleOrderSearchAPIResponse.go @@ -0,0 +1,27 @@ +package btrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用车订单查询接口 API返回值 +alitrip.btrip.vehicle.order.search + +企业获取商旅用车订单数据 +*/ +type AlitripBtripVehicleOrderSearchAPIResponse struct { + model.CommonResponse + AlitripBtripVehicleOrderSearchAPIResponseModel +} + +// 用车订单查询接口 成功返回结果 +type AlitripBtripVehicleOrderSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_btrip_vehicle_order_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/btrip/AlitripBtripVehicleOrderSearchResponse.go b/model/btrip/AlitripBtripVehicleOrderSearchResponse.go deleted file mode 100644 index a04f23f24a..0000000000 --- a/model/btrip/AlitripBtripVehicleOrderSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package btrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用车订单查询接口 API返回值 -alitrip.btrip.vehicle.order.search - -企业获取商旅用车订单数据 -*/ -type AlitripBtripVehicleOrderSearchAPIResponse struct { - model.CommonResponse - AlitripBtripVehicleOrderSearchResponse -} - -// 用车订单查询接口 成功返回结果 -type AlitripBtripVehicleOrderSearchResponse struct { - XMLName xml.Name `xml:"alitrip_btrip_vehicle_order_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *BtriphomeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/bus/TaobaoAlitripBusTicketsInsuranceRecommendAPIRequest.go b/model/bus/TaobaoAlitripBusTicketsInsuranceRecommendAPIRequest.go new file mode 100644 index 0000000000..d2b8688798 --- /dev/null +++ b/model/bus/TaobaoAlitripBusTicketsInsuranceRecommendAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票保险推荐 API请求 +taobao.alitrip.bus.tickets.insurance.recommend + +获取推荐保险内容 +*/ +type TaobaoAlitripBusTicketsInsuranceRecommendAPIRequest struct { + model.Params + // 请求对象 + _recommendReq *TopStandardInsRecommendRequest +} + +// 初始化TaobaoAlitripBusTicketsInsuranceRecommendAPIRequest对象 +func NewTaobaoAlitripBusTicketsInsuranceRecommendRequest() *TaobaoAlitripBusTicketsInsuranceRecommendAPIRequest{ + return &TaobaoAlitripBusTicketsInsuranceRecommendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripBusTicketsInsuranceRecommendAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.bus.tickets.insurance.recommend" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripBusTicketsInsuranceRecommendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RecommendReq Setter +// 请求对象 +func (r *TaobaoAlitripBusTicketsInsuranceRecommendAPIRequest) SetRecommendReq(_recommendReq *TopStandardInsRecommendRequest) error { + r._recommendReq = _recommendReq + r.Set("recommend_req", _recommendReq) + return nil +} + +// RecommendReq Getter +func (r TaobaoAlitripBusTicketsInsuranceRecommendAPIRequest) GetRecommendReq() *TopStandardInsRecommendRequest { + return r._recommendReq +} diff --git a/model/bus/TaobaoAlitripBusTicketsInsuranceRecommendAPIResponse.go b/model/bus/TaobaoAlitripBusTicketsInsuranceRecommendAPIResponse.go new file mode 100644 index 0000000000..40e87f303a --- /dev/null +++ b/model/bus/TaobaoAlitripBusTicketsInsuranceRecommendAPIResponse.go @@ -0,0 +1,27 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票保险推荐 API返回值 +taobao.alitrip.bus.tickets.insurance.recommend + +获取推荐保险内容 +*/ +type TaobaoAlitripBusTicketsInsuranceRecommendAPIResponse struct { + model.CommonResponse + TaobaoAlitripBusTicketsInsuranceRecommendAPIResponseModel +} + +// 汽车票保险推荐 成功返回结果 +type TaobaoAlitripBusTicketsInsuranceRecommendAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_bus_tickets_insurance_recommend_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回结果数据 + Result *TaobaoAlitripBusTicketsInsuranceRecommendResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/bus/TaobaoAlitripBusTicketsInsuranceRecommendResponse.go b/model/bus/TaobaoAlitripBusTicketsInsuranceRecommendResponse.go deleted file mode 100644 index e2b7fd42b0..0000000000 --- a/model/bus/TaobaoAlitripBusTicketsInsuranceRecommendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -汽车票保险推荐 API返回值 -taobao.alitrip.bus.tickets.insurance.recommend - -获取推荐保险内容 -*/ -type TaobaoAlitripBusTicketsInsuranceRecommendAPIResponse struct { - model.CommonResponse - TaobaoAlitripBusTicketsInsuranceRecommendResponse -} - -// 汽车票保险推荐 成功返回结果 -type TaobaoAlitripBusTicketsInsuranceRecommendResponse struct { - XMLName xml.Name `xml:"alitrip_bus_tickets_insurance_recommend_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回结果数据 - Result *TaobaoAlitripBusTicketsInsuranceRecommendResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/bus/TaobaoBusAgentBookticketConfirmAPIRequest.go b/model/bus/TaobaoBusAgentBookticketConfirmAPIRequest.go new file mode 100644 index 0000000000..73add644ef --- /dev/null +++ b/model/bus/TaobaoBusAgentBookticketConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票代理商接口—确认出票是否成功 API请求 +taobao.bus.agent.bookticket.confirm + +代理商通过该接口通知汽车票系统订单出票结果。 +*/ +type TaobaoBusAgentBookticketConfirmAPIRequest struct { + model.Params + // 请求对象 + _paramAgentConfirmBookRQ *AgentConfirmBookRq +} + +// 初始化TaobaoBusAgentBookticketConfirmAPIRequest对象 +func NewTaobaoBusAgentBookticketConfirmRequest() *TaobaoBusAgentBookticketConfirmAPIRequest{ + return &TaobaoBusAgentBookticketConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusAgentBookticketConfirmAPIRequest) GetApiMethodName() string { + return "taobao.bus.agent.bookticket.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusAgentBookticketConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamAgentConfirmBookRQ Setter +// 请求对象 +func (r *TaobaoBusAgentBookticketConfirmAPIRequest) SetParamAgentConfirmBookRQ(_paramAgentConfirmBookRQ *AgentConfirmBookRq) error { + r._paramAgentConfirmBookRQ = _paramAgentConfirmBookRQ + r.Set("param_agent_confirm_book_r_q", _paramAgentConfirmBookRQ) + return nil +} + +// ParamAgentConfirmBookRQ Getter +func (r TaobaoBusAgentBookticketConfirmAPIRequest) GetParamAgentConfirmBookRQ() *AgentConfirmBookRq { + return r._paramAgentConfirmBookRQ +} diff --git a/model/bus/TaobaoBusAgentBookticketConfirmAPIResponse.go b/model/bus/TaobaoBusAgentBookticketConfirmAPIResponse.go new file mode 100644 index 0000000000..23234f729e --- /dev/null +++ b/model/bus/TaobaoBusAgentBookticketConfirmAPIResponse.go @@ -0,0 +1,31 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票代理商接口—确认出票是否成功 API返回值 +taobao.bus.agent.bookticket.confirm + +代理商通过该接口通知汽车票系统订单出票结果。 +*/ +type TaobaoBusAgentBookticketConfirmAPIResponse struct { + model.CommonResponse + TaobaoBusAgentBookticketConfirmAPIResponseModel +} + +// 汽车票代理商接口—确认出票是否成功 成功返回结果 +type TaobaoBusAgentBookticketConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"bus_agent_bookticket_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否确认成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/bus/TaobaoBusAgentBookticketConfirmResponse.go b/model/bus/TaobaoBusAgentBookticketConfirmResponse.go deleted file mode 100644 index 0b820f8b9b..0000000000 --- a/model/bus/TaobaoBusAgentBookticketConfirmResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -汽车票代理商接口—确认出票是否成功 API返回值 -taobao.bus.agent.bookticket.confirm - -代理商通过该接口通知汽车票系统订单出票结果。 -*/ -type TaobaoBusAgentBookticketConfirmAPIResponse struct { - model.CommonResponse - TaobaoBusAgentBookticketConfirmResponse -} - -// 汽车票代理商接口—确认出票是否成功 成功返回结果 -type TaobaoBusAgentBookticketConfirmResponse struct { - XMLName xml.Name `xml:"bus_agent_bookticket_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否确认成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/bus/TaobaoBusAgentCityChangeAPIRequest.go b/model/bus/TaobaoBusAgentCityChangeAPIRequest.go new file mode 100644 index 0000000000..ce5b27c910 --- /dev/null +++ b/model/bus/TaobaoBusAgentCityChangeAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +城市变更 API请求 +taobao.bus.agent.city.change + +代理商通知城市变更,比如可售变为不可售等 +*/ +type TaobaoBusAgentCityChangeAPIRequest struct { + model.Params + // 城市变更请求对象 + _paramCityChangeRQ *CityChangeRq +} + +// 初始化TaobaoBusAgentCityChangeAPIRequest对象 +func NewTaobaoBusAgentCityChangeRequest() *TaobaoBusAgentCityChangeAPIRequest{ + return &TaobaoBusAgentCityChangeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusAgentCityChangeAPIRequest) GetApiMethodName() string { + return "taobao.bus.agent.city.change" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusAgentCityChangeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCityChangeRQ Setter +// 城市变更请求对象 +func (r *TaobaoBusAgentCityChangeAPIRequest) SetParamCityChangeRQ(_paramCityChangeRQ *CityChangeRq) error { + r._paramCityChangeRQ = _paramCityChangeRQ + r.Set("param_city_change_r_q", _paramCityChangeRQ) + return nil +} + +// ParamCityChangeRQ Getter +func (r TaobaoBusAgentCityChangeAPIRequest) GetParamCityChangeRQ() *CityChangeRq { + return r._paramCityChangeRQ +} diff --git a/model/bus/TaobaoBusAgentCityChangeAPIResponse.go b/model/bus/TaobaoBusAgentCityChangeAPIResponse.go new file mode 100644 index 0000000000..0cb35d1aa9 --- /dev/null +++ b/model/bus/TaobaoBusAgentCityChangeAPIResponse.go @@ -0,0 +1,31 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +城市变更 API返回值 +taobao.bus.agent.city.change + +代理商通知城市变更,比如可售变为不可售等 +*/ +type TaobaoBusAgentCityChangeAPIResponse struct { + model.CommonResponse + TaobaoBusAgentCityChangeAPIResponseModel +} + +// 城市变更 成功返回结果 +type TaobaoBusAgentCityChangeAPIResponseModel struct { + XMLName xml.Name `xml:"bus_agent_city_change_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 系统异常错误码 + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 异常描述 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` +} diff --git a/model/bus/TaobaoBusAgentCityChangeResponse.go b/model/bus/TaobaoBusAgentCityChangeResponse.go deleted file mode 100644 index 94323ae9dd..0000000000 --- a/model/bus/TaobaoBusAgentCityChangeResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -城市变更 API返回值 -taobao.bus.agent.city.change - -代理商通知城市变更,比如可售变为不可售等 -*/ -type TaobaoBusAgentCityChangeAPIResponse struct { - model.CommonResponse - TaobaoBusAgentCityChangeResponse -} - -// 城市变更 成功返回结果 -type TaobaoBusAgentCityChangeResponse struct { - XMLName xml.Name `xml:"bus_agent_city_change_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 系统异常错误码 - ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` - // 异常描述 - ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` -} diff --git a/model/bus/TaobaoBusAgentMultipleRefundConfirmAPIRequest.go b/model/bus/TaobaoBusAgentMultipleRefundConfirmAPIRequest.go new file mode 100644 index 0000000000..7ddd30b3b9 --- /dev/null +++ b/model/bus/TaobaoBusAgentMultipleRefundConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +综合交通多次退款接口 API请求 +taobao.bus.agent.multiple.refund.confirm + +此接口支持多次按照单客进行多次退款操作,只进行退款操作。 +*/ +type TaobaoBusAgentMultipleRefundConfirmAPIRequest struct { + model.Params + // 入参 + _paramAgentMultipleRefundRQ *AgentMultipleRefundRq +} + +// 初始化TaobaoBusAgentMultipleRefundConfirmAPIRequest对象 +func NewTaobaoBusAgentMultipleRefundConfirmRequest() *TaobaoBusAgentMultipleRefundConfirmAPIRequest{ + return &TaobaoBusAgentMultipleRefundConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusAgentMultipleRefundConfirmAPIRequest) GetApiMethodName() string { + return "taobao.bus.agent.multiple.refund.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusAgentMultipleRefundConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamAgentMultipleRefundRQ Setter +// 入参 +func (r *TaobaoBusAgentMultipleRefundConfirmAPIRequest) SetParamAgentMultipleRefundRQ(_paramAgentMultipleRefundRQ *AgentMultipleRefundRq) error { + r._paramAgentMultipleRefundRQ = _paramAgentMultipleRefundRQ + r.Set("param_agent_multiple_refund_r_q", _paramAgentMultipleRefundRQ) + return nil +} + +// ParamAgentMultipleRefundRQ Getter +func (r TaobaoBusAgentMultipleRefundConfirmAPIRequest) GetParamAgentMultipleRefundRQ() *AgentMultipleRefundRq { + return r._paramAgentMultipleRefundRQ +} diff --git a/model/bus/TaobaoBusAgentMultipleRefundConfirmAPIResponse.go b/model/bus/TaobaoBusAgentMultipleRefundConfirmAPIResponse.go new file mode 100644 index 0000000000..5b585a425a --- /dev/null +++ b/model/bus/TaobaoBusAgentMultipleRefundConfirmAPIResponse.go @@ -0,0 +1,31 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +综合交通多次退款接口 API返回值 +taobao.bus.agent.multiple.refund.confirm + +此接口支持多次按照单客进行多次退款操作,只进行退款操作。 +*/ +type TaobaoBusAgentMultipleRefundConfirmAPIResponse struct { + model.CommonResponse + TaobaoBusAgentMultipleRefundConfirmAPIResponseModel +} + +// 综合交通多次退款接口 成功返回结果 +type TaobaoBusAgentMultipleRefundConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"bus_agent_multiple_refund_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 失败错误信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 退款成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/bus/TaobaoBusAgentMultipleRefundConfirmResponse.go b/model/bus/TaobaoBusAgentMultipleRefundConfirmResponse.go deleted file mode 100644 index f81192542a..0000000000 --- a/model/bus/TaobaoBusAgentMultipleRefundConfirmResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -综合交通多次退款接口 API返回值 -taobao.bus.agent.multiple.refund.confirm - -此接口支持多次按照单客进行多次退款操作,只进行退款操作。 -*/ -type TaobaoBusAgentMultipleRefundConfirmAPIResponse struct { - model.CommonResponse - TaobaoBusAgentMultipleRefundConfirmResponse -} - -// 综合交通多次退款接口 成功返回结果 -type TaobaoBusAgentMultipleRefundConfirmResponse struct { - XMLName xml.Name `xml:"bus_agent_multiple_refund_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 失败错误信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 退款成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/bus/TaobaoBusAgentRefundConfirmAPIRequest.go b/model/bus/TaobaoBusAgentRefundConfirmAPIRequest.go new file mode 100644 index 0000000000..3c4c06ea7d --- /dev/null +++ b/model/bus/TaobaoBusAgentRefundConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票退票和退款二合一接口 API请求 +taobao.bus.agent.refund.confirm + +1.商家退票成功后,回调飞猪平台汽车票退票接口,平台进行退票和退款操作。 +*/ +type TaobaoBusAgentRefundConfirmAPIRequest struct { + model.Params + // 入参 + _paramAgentConfirmReturnAndRefundRQ *AgentConfirmReturnAndRefundRq +} + +// 初始化TaobaoBusAgentRefundConfirmAPIRequest对象 +func NewTaobaoBusAgentRefundConfirmRequest() *TaobaoBusAgentRefundConfirmAPIRequest{ + return &TaobaoBusAgentRefundConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusAgentRefundConfirmAPIRequest) GetApiMethodName() string { + return "taobao.bus.agent.refund.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusAgentRefundConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamAgentConfirmReturnAndRefundRQ Setter +// 入参 +func (r *TaobaoBusAgentRefundConfirmAPIRequest) SetParamAgentConfirmReturnAndRefundRQ(_paramAgentConfirmReturnAndRefundRQ *AgentConfirmReturnAndRefundRq) error { + r._paramAgentConfirmReturnAndRefundRQ = _paramAgentConfirmReturnAndRefundRQ + r.Set("param_agent_confirm_return_and_refund_r_q", _paramAgentConfirmReturnAndRefundRQ) + return nil +} + +// ParamAgentConfirmReturnAndRefundRQ Getter +func (r TaobaoBusAgentRefundConfirmAPIRequest) GetParamAgentConfirmReturnAndRefundRQ() *AgentConfirmReturnAndRefundRq { + return r._paramAgentConfirmReturnAndRefundRQ +} diff --git a/model/bus/TaobaoBusAgentRefundConfirmAPIResponse.go b/model/bus/TaobaoBusAgentRefundConfirmAPIResponse.go new file mode 100644 index 0000000000..c3bb8f2a87 --- /dev/null +++ b/model/bus/TaobaoBusAgentRefundConfirmAPIResponse.go @@ -0,0 +1,31 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票退票和退款二合一接口 API返回值 +taobao.bus.agent.refund.confirm + +1.商家退票成功后,回调飞猪平台汽车票退票接口,平台进行退票和退款操作。 +*/ +type TaobaoBusAgentRefundConfirmAPIResponse struct { + model.CommonResponse + TaobaoBusAgentRefundConfirmAPIResponseModel +} + +// 汽车票退票和退款二合一接口 成功返回结果 +type TaobaoBusAgentRefundConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"bus_agent_refund_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 退票回调是否收到 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/bus/TaobaoBusAgentRefundConfirmResponse.go b/model/bus/TaobaoBusAgentRefundConfirmResponse.go deleted file mode 100644 index c897ba91b1..0000000000 --- a/model/bus/TaobaoBusAgentRefundConfirmResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -汽车票退票和退款二合一接口 API返回值 -taobao.bus.agent.refund.confirm - -1.商家退票成功后,回调飞猪平台汽车票退票接口,平台进行退票和退款操作。 -*/ -type TaobaoBusAgentRefundConfirmAPIResponse struct { - model.CommonResponse - TaobaoBusAgentRefundConfirmResponse -} - -// 汽车票退票和退款二合一接口 成功返回结果 -type TaobaoBusAgentRefundConfirmResponse struct { - XMLName xml.Name `xml:"bus_agent_refund_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 退票回调是否收到 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/bus/TaobaoBusAgentRefundticketConfirmAPIRequest.go b/model/bus/TaobaoBusAgentRefundticketConfirmAPIRequest.go new file mode 100644 index 0000000000..f38ffd158b --- /dev/null +++ b/model/bus/TaobaoBusAgentRefundticketConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家top回调退款明细 API请求 +taobao.bus.agent.refundticket.confirm + +商家通过top回调告知平台退款明细 +*/ +type TaobaoBusAgentRefundticketConfirmAPIRequest struct { + model.Params + // 退款入参 + _paramAgentConfirmRefundRQ *AgentConfirmRefundRq +} + +// 初始化TaobaoBusAgentRefundticketConfirmAPIRequest对象 +func NewTaobaoBusAgentRefundticketConfirmRequest() *TaobaoBusAgentRefundticketConfirmAPIRequest{ + return &TaobaoBusAgentRefundticketConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusAgentRefundticketConfirmAPIRequest) GetApiMethodName() string { + return "taobao.bus.agent.refundticket.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusAgentRefundticketConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamAgentConfirmRefundRQ Setter +// 退款入参 +func (r *TaobaoBusAgentRefundticketConfirmAPIRequest) SetParamAgentConfirmRefundRQ(_paramAgentConfirmRefundRQ *AgentConfirmRefundRq) error { + r._paramAgentConfirmRefundRQ = _paramAgentConfirmRefundRQ + r.Set("param_agent_confirm_refund_r_q", _paramAgentConfirmRefundRQ) + return nil +} + +// ParamAgentConfirmRefundRQ Getter +func (r TaobaoBusAgentRefundticketConfirmAPIRequest) GetParamAgentConfirmRefundRQ() *AgentConfirmRefundRq { + return r._paramAgentConfirmRefundRQ +} diff --git a/model/bus/TaobaoBusAgentRefundticketConfirmAPIResponse.go b/model/bus/TaobaoBusAgentRefundticketConfirmAPIResponse.go new file mode 100644 index 0000000000..43fca3534c --- /dev/null +++ b/model/bus/TaobaoBusAgentRefundticketConfirmAPIResponse.go @@ -0,0 +1,31 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家top回调退款明细 API返回值 +taobao.bus.agent.refundticket.confirm + +商家通过top回调告知平台退款明细 +*/ +type TaobaoBusAgentRefundticketConfirmAPIResponse struct { + model.CommonResponse + TaobaoBusAgentRefundticketConfirmAPIResponseModel +} + +// 商家top回调退款明细 成功返回结果 +type TaobaoBusAgentRefundticketConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"bus_agent_refundticket_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 退款回调是否收到 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/bus/TaobaoBusAgentRefundticketConfirmResponse.go b/model/bus/TaobaoBusAgentRefundticketConfirmResponse.go deleted file mode 100644 index d30c992797..0000000000 --- a/model/bus/TaobaoBusAgentRefundticketConfirmResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家top回调退款明细 API返回值 -taobao.bus.agent.refundticket.confirm - -商家通过top回调告知平台退款明细 -*/ -type TaobaoBusAgentRefundticketConfirmAPIResponse struct { - model.CommonResponse - TaobaoBusAgentRefundticketConfirmResponse -} - -// 商家top回调退款明细 成功返回结果 -type TaobaoBusAgentRefundticketConfirmResponse struct { - XMLName xml.Name `xml:"bus_agent_refundticket_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 退款回调是否收到 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/bus/TaobaoBusAgentReturnticketConfirmAPIRequest.go b/model/bus/TaobaoBusAgentReturnticketConfirmAPIRequest.go new file mode 100644 index 0000000000..95cc925ef5 --- /dev/null +++ b/model/bus/TaobaoBusAgentReturnticketConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家回调退票 API请求 +taobao.bus.agent.returnticket.confirm + +商家通过TOP接口调用来回传退票状态 +*/ +type TaobaoBusAgentReturnticketConfirmAPIRequest struct { + model.Params + // 退票入参 + _paramAgentConfirmReturnRQ *AgentConfirmReturnRq +} + +// 初始化TaobaoBusAgentReturnticketConfirmAPIRequest对象 +func NewTaobaoBusAgentReturnticketConfirmRequest() *TaobaoBusAgentReturnticketConfirmAPIRequest{ + return &TaobaoBusAgentReturnticketConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusAgentReturnticketConfirmAPIRequest) GetApiMethodName() string { + return "taobao.bus.agent.returnticket.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusAgentReturnticketConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamAgentConfirmReturnRQ Setter +// 退票入参 +func (r *TaobaoBusAgentReturnticketConfirmAPIRequest) SetParamAgentConfirmReturnRQ(_paramAgentConfirmReturnRQ *AgentConfirmReturnRq) error { + r._paramAgentConfirmReturnRQ = _paramAgentConfirmReturnRQ + r.Set("param_agent_confirm_return_r_q", _paramAgentConfirmReturnRQ) + return nil +} + +// ParamAgentConfirmReturnRQ Getter +func (r TaobaoBusAgentReturnticketConfirmAPIRequest) GetParamAgentConfirmReturnRQ() *AgentConfirmReturnRq { + return r._paramAgentConfirmReturnRQ +} diff --git a/model/bus/TaobaoBusAgentReturnticketConfirmAPIResponse.go b/model/bus/TaobaoBusAgentReturnticketConfirmAPIResponse.go new file mode 100644 index 0000000000..efc3dc208d --- /dev/null +++ b/model/bus/TaobaoBusAgentReturnticketConfirmAPIResponse.go @@ -0,0 +1,31 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家回调退票 API返回值 +taobao.bus.agent.returnticket.confirm + +商家通过TOP接口调用来回传退票状态 +*/ +type TaobaoBusAgentReturnticketConfirmAPIResponse struct { + model.CommonResponse + TaobaoBusAgentReturnticketConfirmAPIResponseModel +} + +// 商家回调退票 成功返回结果 +type TaobaoBusAgentReturnticketConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"bus_agent_returnticket_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 是否确认成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/bus/TaobaoBusAgentReturnticketConfirmResponse.go b/model/bus/TaobaoBusAgentReturnticketConfirmResponse.go deleted file mode 100644 index bf90f8406f..0000000000 --- a/model/bus/TaobaoBusAgentReturnticketConfirmResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家回调退票 API返回值 -taobao.bus.agent.returnticket.confirm - -商家通过TOP接口调用来回传退票状态 -*/ -type TaobaoBusAgentReturnticketConfirmAPIResponse struct { - model.CommonResponse - TaobaoBusAgentReturnticketConfirmResponse -} - -// 商家回调退票 成功返回结果 -type TaobaoBusAgentReturnticketConfirmResponse struct { - XMLName xml.Name `xml:"bus_agent_returnticket_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 是否确认成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/bus/TaobaoBusBusnumberGetAPIRequest.go b/model/bus/TaobaoBusBusnumberGetAPIRequest.go new file mode 100644 index 0000000000..ee9a299097 --- /dev/null +++ b/model/bus/TaobaoBusBusnumberGetAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票车次查询 API请求 +taobao.bus.busnumber.get + +提供汽车票车次查询服务 +*/ +type TaobaoBusBusnumberGetAPIRequest struct { + model.Params + // 车次查询入参 + _paramBusNumberSearchRQ *BusNumberSearchRq +} + +// 初始化TaobaoBusBusnumberGetAPIRequest对象 +func NewTaobaoBusBusnumberGetRequest() *TaobaoBusBusnumberGetAPIRequest{ + return &TaobaoBusBusnumberGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusBusnumberGetAPIRequest) GetApiMethodName() string { + return "taobao.bus.busnumber.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusBusnumberGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBusNumberSearchRQ Setter +// 车次查询入参 +func (r *TaobaoBusBusnumberGetAPIRequest) SetParamBusNumberSearchRQ(_paramBusNumberSearchRQ *BusNumberSearchRq) error { + r._paramBusNumberSearchRQ = _paramBusNumberSearchRQ + r.Set("param_bus_number_search_r_q", _paramBusNumberSearchRQ) + return nil +} + +// ParamBusNumberSearchRQ Getter +func (r TaobaoBusBusnumberGetAPIRequest) GetParamBusNumberSearchRQ() *BusNumberSearchRq { + return r._paramBusNumberSearchRQ +} diff --git a/model/bus/TaobaoBusBusnumberGetAPIResponse.go b/model/bus/TaobaoBusBusnumberGetAPIResponse.go new file mode 100644 index 0000000000..5a12a3b2d3 --- /dev/null +++ b/model/bus/TaobaoBusBusnumberGetAPIResponse.go @@ -0,0 +1,27 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票车次查询 API返回值 +taobao.bus.busnumber.get + +提供汽车票车次查询服务 +*/ +type TaobaoBusBusnumberGetAPIResponse struct { + model.CommonResponse + TaobaoBusBusnumberGetAPIResponseModel +} + +// 汽车票车次查询 成功返回结果 +type TaobaoBusBusnumberGetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_busnumber_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoBusBusnumberGetResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/bus/TaobaoBusBusnumberGetResponse.go b/model/bus/TaobaoBusBusnumberGetResponse.go deleted file mode 100644 index a1e3ae2f16..0000000000 --- a/model/bus/TaobaoBusBusnumberGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -汽车票车次查询 API返回值 -taobao.bus.busnumber.get - -提供汽车票车次查询服务 -*/ -type TaobaoBusBusnumberGetAPIResponse struct { - model.CommonResponse - TaobaoBusBusnumberGetResponse -} - -// 汽车票车次查询 成功返回结果 -type TaobaoBusBusnumberGetResponse struct { - XMLName xml.Name `xml:"bus_busnumber_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoBusBusnumberGetResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/bus/TaobaoBusBusnumberSetAPIRequest.go b/model/bus/TaobaoBusBusnumberSetAPIRequest.go new file mode 100644 index 0000000000..91fb51a68b --- /dev/null +++ b/model/bus/TaobaoBusBusnumberSetAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家汽车票车次更新通知接口 API请求 +taobao.bus.busnumber.set + +商家汽车票车次更新后,调用该接口通知平台。 +*/ +type TaobaoBusBusnumberSetAPIRequest struct { + model.Params + // 车次更新通知参数 + _pushParam *TopBusNumerPushRq +} + +// 初始化TaobaoBusBusnumberSetAPIRequest对象 +func NewTaobaoBusBusnumberSetRequest() *TaobaoBusBusnumberSetAPIRequest{ + return &TaobaoBusBusnumberSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusBusnumberSetAPIRequest) GetApiMethodName() string { + return "taobao.bus.busnumber.set" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusBusnumberSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PushParam Setter +// 车次更新通知参数 +func (r *TaobaoBusBusnumberSetAPIRequest) SetPushParam(_pushParam *TopBusNumerPushRq) error { + r._pushParam = _pushParam + r.Set("push_param", _pushParam) + return nil +} + +// PushParam Getter +func (r TaobaoBusBusnumberSetAPIRequest) GetPushParam() *TopBusNumerPushRq { + return r._pushParam +} diff --git a/model/bus/TaobaoBusBusnumberSetAPIResponse.go b/model/bus/TaobaoBusBusnumberSetAPIResponse.go new file mode 100644 index 0000000000..a9bf7c2475 --- /dev/null +++ b/model/bus/TaobaoBusBusnumberSetAPIResponse.go @@ -0,0 +1,33 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家汽车票车次更新通知接口 API返回值 +taobao.bus.busnumber.set + +商家汽车票车次更新后,调用该接口通知平台。 +*/ +type TaobaoBusBusnumberSetAPIResponse struct { + model.CommonResponse + TaobaoBusBusnumberSetAPIResponseModel +} + +// 商家汽车票车次更新通知接口 成功返回结果 +type TaobaoBusBusnumberSetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_busnumber_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 返回对象 + Module string `json:"module,omitempty" xml:"module,omitempty"` + // 错误编码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 接口调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/bus/TaobaoBusBusnumberSetResponse.go b/model/bus/TaobaoBusBusnumberSetResponse.go deleted file mode 100644 index d5ed78c3b7..0000000000 --- a/model/bus/TaobaoBusBusnumberSetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家汽车票车次更新通知接口 API返回值 -taobao.bus.busnumber.set - -商家汽车票车次更新后,调用该接口通知平台。 -*/ -type TaobaoBusBusnumberSetAPIResponse struct { - model.CommonResponse - TaobaoBusBusnumberSetResponse -} - -// 商家汽车票车次更新通知接口 成功返回结果 -type TaobaoBusBusnumberSetResponse struct { - XMLName xml.Name `xml:"bus_busnumber_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 返回对象 - Module string `json:"module,omitempty" xml:"module,omitempty"` - // 错误编码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 接口调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/bus/TaobaoBusCancleorderSetAPIRequest.go b/model/bus/TaobaoBusCancleorderSetAPIRequest.go new file mode 100644 index 0000000000..ca7fff741a --- /dev/null +++ b/model/bus/TaobaoBusCancleorderSetAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消订单 API请求 +taobao.bus.cancleorder.set + +取消订单 +*/ +type TaobaoBusCancleorderSetAPIRequest struct { + model.Params + // 阿里订单号 + _aliOrderId string +} + +// 初始化TaobaoBusCancleorderSetAPIRequest对象 +func NewTaobaoBusCancleorderSetRequest() *TaobaoBusCancleorderSetAPIRequest{ + return &TaobaoBusCancleorderSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusCancleorderSetAPIRequest) GetApiMethodName() string { + return "taobao.bus.cancleorder.set" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusCancleorderSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AliOrderId Setter +// 阿里订单号 +func (r *TaobaoBusCancleorderSetAPIRequest) SetAliOrderId(_aliOrderId string) error { + r._aliOrderId = _aliOrderId + r.Set("ali_order_id", _aliOrderId) + return nil +} + +// AliOrderId Getter +func (r TaobaoBusCancleorderSetAPIRequest) GetAliOrderId() string { + return r._aliOrderId +} diff --git a/model/bus/TaobaoBusCancleorderSetAPIResponse.go b/model/bus/TaobaoBusCancleorderSetAPIResponse.go new file mode 100644 index 0000000000..b04f3dec7d --- /dev/null +++ b/model/bus/TaobaoBusCancleorderSetAPIResponse.go @@ -0,0 +1,31 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消订单 API返回值 +taobao.bus.cancleorder.set + +取消订单 +*/ +type TaobaoBusCancleorderSetAPIResponse struct { + model.CommonResponse + TaobaoBusCancleorderSetAPIResponseModel +} + +// 取消订单 成功返回结果 +type TaobaoBusCancleorderSetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_cancleorder_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误代码 + ErrorCode1 string `json:"error_code1,omitempty" xml:"error_code1,omitempty"` + // 错误描述 + ErrorMsg1 string `json:"error_msg1,omitempty" xml:"error_msg1,omitempty"` + // success + Success1 bool `json:"success1,omitempty" xml:"success1,omitempty"` +} diff --git a/model/bus/TaobaoBusCancleorderSetResponse.go b/model/bus/TaobaoBusCancleorderSetResponse.go deleted file mode 100644 index 20e6c2a061..0000000000 --- a/model/bus/TaobaoBusCancleorderSetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消订单 API返回值 -taobao.bus.cancleorder.set - -取消订单 -*/ -type TaobaoBusCancleorderSetAPIResponse struct { - model.CommonResponse - TaobaoBusCancleorderSetResponse -} - -// 取消订单 成功返回结果 -type TaobaoBusCancleorderSetResponse struct { - XMLName xml.Name `xml:"bus_cancleorder_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误代码 - ErrorCode1 string `json:"error_code1,omitempty" xml:"error_code1,omitempty"` - // 错误描述 - ErrorMsg1 string `json:"error_msg1,omitempty" xml:"error_msg1,omitempty"` - // success - Success1 bool `json:"success1,omitempty" xml:"success1,omitempty"` -} diff --git a/model/bus/TaobaoBusCityGetAPIRequest.go b/model/bus/TaobaoBusCityGetAPIRequest.go new file mode 100644 index 0000000000..447481c011 --- /dev/null +++ b/model/bus/TaobaoBusCityGetAPIRequest.go @@ -0,0 +1,38 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +城市接口 API请求 +taobao.bus.city.get + +汽车票出发城市获取接口,获取所有出发城市 +*/ +type TaobaoBusCityGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoBusCityGetAPIRequest对象 +func NewTaobaoBusCityGetRequest() *TaobaoBusCityGetAPIRequest{ + return &TaobaoBusCityGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusCityGetAPIRequest) GetApiMethodName() string { + return "taobao.bus.city.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusCityGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/bus/TaobaoBusCityGetAPIResponse.go b/model/bus/TaobaoBusCityGetAPIResponse.go new file mode 100644 index 0000000000..810838737e --- /dev/null +++ b/model/bus/TaobaoBusCityGetAPIResponse.go @@ -0,0 +1,27 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +城市接口 API返回值 +taobao.bus.city.get + +汽车票出发城市获取接口,获取所有出发城市 +*/ +type TaobaoBusCityGetAPIResponse struct { + model.CommonResponse + TaobaoBusCityGetAPIResponseModel +} + +// 城市接口 成功返回结果 +type TaobaoBusCityGetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_city_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 城市返回结果 + Result *CitySearchRp `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/bus/TaobaoBusCityGetResponse.go b/model/bus/TaobaoBusCityGetResponse.go deleted file mode 100644 index bd2ea86713..0000000000 --- a/model/bus/TaobaoBusCityGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -城市接口 API返回值 -taobao.bus.city.get - -汽车票出发城市获取接口,获取所有出发城市 -*/ -type TaobaoBusCityGetAPIResponse struct { - model.CommonResponse - TaobaoBusCityGetResponse -} - -// 城市接口 成功返回结果 -type TaobaoBusCityGetResponse struct { - XMLName xml.Name `xml:"bus_city_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 城市返回结果 - Result *CitySearchRp `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/bus/TaobaoBusDisableqrcodeSetAPIRequest.go b/model/bus/TaobaoBusDisableqrcodeSetAPIRequest.go new file mode 100644 index 0000000000..c50bb76736 --- /dev/null +++ b/model/bus/TaobaoBusDisableqrcodeSetAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +自助机失效二维码 API请求 +taobao.bus.disableqrcode.set + +使创建的二维码失效 +*/ +type TaobaoBusDisableqrcodeSetAPIRequest struct { + model.Params + // 飞猪订单号 + _alitripOrderId string +} + +// 初始化TaobaoBusDisableqrcodeSetAPIRequest对象 +func NewTaobaoBusDisableqrcodeSetRequest() *TaobaoBusDisableqrcodeSetAPIRequest{ + return &TaobaoBusDisableqrcodeSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusDisableqrcodeSetAPIRequest) GetApiMethodName() string { + return "taobao.bus.disableqrcode.set" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusDisableqrcodeSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlitripOrderId Setter +// 飞猪订单号 +func (r *TaobaoBusDisableqrcodeSetAPIRequest) SetAlitripOrderId(_alitripOrderId string) error { + r._alitripOrderId = _alitripOrderId + r.Set("alitrip_order_id", _alitripOrderId) + return nil +} + +// AlitripOrderId Getter +func (r TaobaoBusDisableqrcodeSetAPIRequest) GetAlitripOrderId() string { + return r._alitripOrderId +} diff --git a/model/bus/TaobaoBusDisableqrcodeSetAPIResponse.go b/model/bus/TaobaoBusDisableqrcodeSetAPIResponse.go new file mode 100644 index 0000000000..fbeb811082 --- /dev/null +++ b/model/bus/TaobaoBusDisableqrcodeSetAPIResponse.go @@ -0,0 +1,31 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +自助机失效二维码 API返回值 +taobao.bus.disableqrcode.set + +使创建的二维码失效 +*/ +type TaobaoBusDisableqrcodeSetAPIResponse struct { + model.CommonResponse + TaobaoBusDisableqrcodeSetAPIResponseModel +} + +// 自助机失效二维码 成功返回结果 +type TaobaoBusDisableqrcodeSetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_disableqrcode_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // errorCode + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // errorMsg + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/bus/TaobaoBusDisableqrcodeSetResponse.go b/model/bus/TaobaoBusDisableqrcodeSetResponse.go deleted file mode 100644 index c674d9a695..0000000000 --- a/model/bus/TaobaoBusDisableqrcodeSetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -自助机失效二维码 API返回值 -taobao.bus.disableqrcode.set - -使创建的二维码失效 -*/ -type TaobaoBusDisableqrcodeSetAPIResponse struct { - model.CommonResponse - TaobaoBusDisableqrcodeSetResponse -} - -// 自助机失效二维码 成功返回结果 -type TaobaoBusDisableqrcodeSetResponse struct { - XMLName xml.Name `xml:"bus_disableqrcode_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // errorCode - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // errorMsg - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/bus/TaobaoBusHistoryorderGetAPIRequest.go b/model/bus/TaobaoBusHistoryorderGetAPIRequest.go new file mode 100644 index 0000000000..a4d335eb04 --- /dev/null +++ b/model/bus/TaobaoBusHistoryorderGetAPIRequest.go @@ -0,0 +1,108 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +历史订单查询(对账) API请求 +taobao.bus.historyorder.get + +历史订单查询,对账接口 +*/ +type TaobaoBusHistoryorderGetAPIRequest struct { + model.Params + // 开始时间 2017-04-23 13:33:43 + _fromDate string + // 分页大小 不超过1w + _pageSize int64 + // 结束时间 2017-04-23 13:33:43 + _toDate string + // offline_ticket 线下自助机; online_ticket:线上售票; 空 代表查全部 + _type string + // 第几页 从1开始 + _pageIndex int64 +} + +// 初始化TaobaoBusHistoryorderGetAPIRequest对象 +func NewTaobaoBusHistoryorderGetRequest() *TaobaoBusHistoryorderGetAPIRequest{ + return &TaobaoBusHistoryorderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusHistoryorderGetAPIRequest) GetApiMethodName() string { + return "taobao.bus.historyorder.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusHistoryorderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FromDate Setter +// 开始时间 2017-04-23 13:33:43 +func (r *TaobaoBusHistoryorderGetAPIRequest) SetFromDate(_fromDate string) error { + r._fromDate = _fromDate + r.Set("from_date", _fromDate) + return nil +} + +// FromDate Getter +func (r TaobaoBusHistoryorderGetAPIRequest) GetFromDate() string { + return r._fromDate +} +// PageSize Setter +// 分页大小 不超过1w +func (r *TaobaoBusHistoryorderGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoBusHistoryorderGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// ToDate Setter +// 结束时间 2017-04-23 13:33:43 +func (r *TaobaoBusHistoryorderGetAPIRequest) SetToDate(_toDate string) error { + r._toDate = _toDate + r.Set("to_date", _toDate) + return nil +} + +// ToDate Getter +func (r TaobaoBusHistoryorderGetAPIRequest) GetToDate() string { + return r._toDate +} +// Type Setter +// offline_ticket 线下自助机; online_ticket:线上售票; 空 代表查全部 +func (r *TaobaoBusHistoryorderGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoBusHistoryorderGetAPIRequest) GetType() string { + return r._type +} +// PageIndex Setter +// 第几页 从1开始 +func (r *TaobaoBusHistoryorderGetAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TaobaoBusHistoryorderGetAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} diff --git a/model/bus/TaobaoBusHistoryorderGetAPIResponse.go b/model/bus/TaobaoBusHistoryorderGetAPIResponse.go new file mode 100644 index 0000000000..1c2e97ff14 --- /dev/null +++ b/model/bus/TaobaoBusHistoryorderGetAPIResponse.go @@ -0,0 +1,33 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +历史订单查询(对账) API返回值 +taobao.bus.historyorder.get + +历史订单查询,对账接口 +*/ +type TaobaoBusHistoryorderGetAPIResponse struct { + model.CommonResponse + TaobaoBusHistoryorderGetAPIResponseModel +} + +// 历史订单查询(对账) 成功返回结果 +type TaobaoBusHistoryorderGetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_historyorder_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // errorCode 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // errorMsg 错误原因 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // busoMainOrderHistoryPageVO 订单详情 + BusoMainOrderHistoryPageVO *BusoMainOrderHistoryPageVo `json:"buso_main_order_history_page_v_o,omitempty" xml:"buso_main_order_history_page_v_o,omitempty"` + // success true 成功 false失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/bus/TaobaoBusHistoryorderGetResponse.go b/model/bus/TaobaoBusHistoryorderGetResponse.go deleted file mode 100644 index 248c3d8710..0000000000 --- a/model/bus/TaobaoBusHistoryorderGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -历史订单查询(对账) API返回值 -taobao.bus.historyorder.get - -历史订单查询,对账接口 -*/ -type TaobaoBusHistoryorderGetAPIResponse struct { - model.CommonResponse - TaobaoBusHistoryorderGetResponse -} - -// 历史订单查询(对账) 成功返回结果 -type TaobaoBusHistoryorderGetResponse struct { - XMLName xml.Name `xml:"bus_historyorder_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // errorCode 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // errorMsg 错误原因 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // busoMainOrderHistoryPageVO 订单详情 - BusoMainOrderHistoryPageVO *BusoMainOrderHistoryPageVo `json:"buso_main_order_history_page_v_o,omitempty" xml:"buso_main_order_history_page_v_o,omitempty"` - // success true 成功 false失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/bus/TaobaoBusInvoiceReturnAPIRequest.go b/model/bus/TaobaoBusInvoiceReturnAPIRequest.go new file mode 100644 index 0000000000..04261b3857 --- /dev/null +++ b/model/bus/TaobaoBusInvoiceReturnAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发票回调接口 API请求 +taobao.bus.invoice.return + +汽车票发票回调接口 +*/ +type TaobaoBusInvoiceReturnAPIRequest struct { + model.Params + // 入参对象 + _invoiceParam *ReceiptDo +} + +// 初始化TaobaoBusInvoiceReturnAPIRequest对象 +func NewTaobaoBusInvoiceReturnRequest() *TaobaoBusInvoiceReturnAPIRequest{ + return &TaobaoBusInvoiceReturnAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusInvoiceReturnAPIRequest) GetApiMethodName() string { + return "taobao.bus.invoice.return" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusInvoiceReturnAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InvoiceParam Setter +// 入参对象 +func (r *TaobaoBusInvoiceReturnAPIRequest) SetInvoiceParam(_invoiceParam *ReceiptDo) error { + r._invoiceParam = _invoiceParam + r.Set("invoice_param", _invoiceParam) + return nil +} + +// InvoiceParam Getter +func (r TaobaoBusInvoiceReturnAPIRequest) GetInvoiceParam() *ReceiptDo { + return r._invoiceParam +} diff --git a/model/bus/TaobaoBusInvoiceReturnAPIResponse.go b/model/bus/TaobaoBusInvoiceReturnAPIResponse.go new file mode 100644 index 0000000000..aa1e9c1e68 --- /dev/null +++ b/model/bus/TaobaoBusInvoiceReturnAPIResponse.go @@ -0,0 +1,31 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发票回调接口 API返回值 +taobao.bus.invoice.return + +汽车票发票回调接口 +*/ +type TaobaoBusInvoiceReturnAPIResponse struct { + model.CommonResponse + TaobaoBusInvoiceReturnAPIResponseModel +} + +// 发票回调接口 成功返回结果 +type TaobaoBusInvoiceReturnAPIResponseModel struct { + XMLName xml.Name `xml:"bus_invoice_return_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/bus/TaobaoBusInvoiceReturnResponse.go b/model/bus/TaobaoBusInvoiceReturnResponse.go deleted file mode 100644 index 3c8359529a..0000000000 --- a/model/bus/TaobaoBusInvoiceReturnResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发票回调接口 API返回值 -taobao.bus.invoice.return - -汽车票发票回调接口 -*/ -type TaobaoBusInvoiceReturnAPIResponse struct { - model.CommonResponse - TaobaoBusInvoiceReturnResponse -} - -// 发票回调接口 成功返回结果 -type TaobaoBusInvoiceReturnResponse struct { - XMLName xml.Name `xml:"bus_invoice_return_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/bus/TaobaoBusLastplaceGetAPIRequest.go b/model/bus/TaobaoBusLastplaceGetAPIRequest.go new file mode 100644 index 0000000000..8501b814ce --- /dev/null +++ b/model/bus/TaobaoBusLastplaceGetAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取目的地数据 API请求 +taobao.bus.lastplace.get + +传入城市 获取对应的目的地 +*/ +type TaobaoBusLastplaceGetAPIRequest struct { + model.Params + // 目的地查询参数 + _paramLastPlaceSearchRQ *ParamLastPlaceSearchRq +} + +// 初始化TaobaoBusLastplaceGetAPIRequest对象 +func NewTaobaoBusLastplaceGetRequest() *TaobaoBusLastplaceGetAPIRequest{ + return &TaobaoBusLastplaceGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusLastplaceGetAPIRequest) GetApiMethodName() string { + return "taobao.bus.lastplace.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusLastplaceGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamLastPlaceSearchRQ Setter +// 目的地查询参数 +func (r *TaobaoBusLastplaceGetAPIRequest) SetParamLastPlaceSearchRQ(_paramLastPlaceSearchRQ *ParamLastPlaceSearchRq) error { + r._paramLastPlaceSearchRQ = _paramLastPlaceSearchRQ + r.Set("param_last_place_search_r_q", _paramLastPlaceSearchRQ) + return nil +} + +// ParamLastPlaceSearchRQ Getter +func (r TaobaoBusLastplaceGetAPIRequest) GetParamLastPlaceSearchRQ() *ParamLastPlaceSearchRq { + return r._paramLastPlaceSearchRQ +} diff --git a/model/bus/TaobaoBusLastplaceGetAPIResponse.go b/model/bus/TaobaoBusLastplaceGetAPIResponse.go new file mode 100644 index 0000000000..20fc176d30 --- /dev/null +++ b/model/bus/TaobaoBusLastplaceGetAPIResponse.go @@ -0,0 +1,27 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取目的地数据 API返回值 +taobao.bus.lastplace.get + +传入城市 获取对应的目的地 +*/ +type TaobaoBusLastplaceGetAPIResponse struct { + model.CommonResponse + TaobaoBusLastplaceGetAPIResponseModel +} + +// 获取目的地数据 成功返回结果 +type TaobaoBusLastplaceGetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_lastplace_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 目的地返回结果 + Result *TaobaoBusLastplaceGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/bus/TaobaoBusLastplaceGetResponse.go b/model/bus/TaobaoBusLastplaceGetResponse.go deleted file mode 100644 index 747e7a4ab3..0000000000 --- a/model/bus/TaobaoBusLastplaceGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取目的地数据 API返回值 -taobao.bus.lastplace.get - -传入城市 获取对应的目的地 -*/ -type TaobaoBusLastplaceGetAPIResponse struct { - model.CommonResponse - TaobaoBusLastplaceGetResponse -} - -// 获取目的地数据 成功返回结果 -type TaobaoBusLastplaceGetResponse struct { - XMLName xml.Name `xml:"bus_lastplace_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 目的地返回结果 - Result *TaobaoBusLastplaceGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/bus/TaobaoBusNumbersStockpriceUpdateAPIRequest.go b/model/bus/TaobaoBusNumbersStockpriceUpdateAPIRequest.go new file mode 100644 index 0000000000..0b101e6860 --- /dev/null +++ b/model/bus/TaobaoBusNumbersStockpriceUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票更新价格库存 API请求 +taobao.bus.numbers.stockprice.update + +用于汽车票代理商更新价格库存 +*/ +type TaobaoBusNumbersStockpriceUpdateAPIRequest struct { + model.Params + // 请求参数 + _paramTopBusPriceAndStockUpdateRQ *TopBusPriceAndStockUpdateRq +} + +// 初始化TaobaoBusNumbersStockpriceUpdateAPIRequest对象 +func NewTaobaoBusNumbersStockpriceUpdateRequest() *TaobaoBusNumbersStockpriceUpdateAPIRequest{ + return &TaobaoBusNumbersStockpriceUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusNumbersStockpriceUpdateAPIRequest) GetApiMethodName() string { + return "taobao.bus.numbers.stockprice.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusNumbersStockpriceUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamTopBusPriceAndStockUpdateRQ Setter +// 请求参数 +func (r *TaobaoBusNumbersStockpriceUpdateAPIRequest) SetParamTopBusPriceAndStockUpdateRQ(_paramTopBusPriceAndStockUpdateRQ *TopBusPriceAndStockUpdateRq) error { + r._paramTopBusPriceAndStockUpdateRQ = _paramTopBusPriceAndStockUpdateRQ + r.Set("param_top_bus_price_and_stock_update_r_q", _paramTopBusPriceAndStockUpdateRQ) + return nil +} + +// ParamTopBusPriceAndStockUpdateRQ Getter +func (r TaobaoBusNumbersStockpriceUpdateAPIRequest) GetParamTopBusPriceAndStockUpdateRQ() *TopBusPriceAndStockUpdateRq { + return r._paramTopBusPriceAndStockUpdateRQ +} diff --git a/model/bus/TaobaoBusNumbersStockpriceUpdateAPIResponse.go b/model/bus/TaobaoBusNumbersStockpriceUpdateAPIResponse.go new file mode 100644 index 0000000000..127f29e2cd --- /dev/null +++ b/model/bus/TaobaoBusNumbersStockpriceUpdateAPIResponse.go @@ -0,0 +1,33 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票更新价格库存 API返回值 +taobao.bus.numbers.stockprice.update + +用于汽车票代理商更新价格库存 +*/ +type TaobaoBusNumbersStockpriceUpdateAPIResponse struct { + model.CommonResponse + TaobaoBusNumbersStockpriceUpdateAPIResponseModel +} + +// 汽车票更新价格库存 成功返回结果 +type TaobaoBusNumbersStockpriceUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"bus_numbers_stockprice_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 成功数量 + SuccCount int64 `json:"succ_count,omitempty" xml:"succ_count,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/bus/TaobaoBusNumbersStockpriceUpdateResponse.go b/model/bus/TaobaoBusNumbersStockpriceUpdateResponse.go deleted file mode 100644 index 2b7c3970b6..0000000000 --- a/model/bus/TaobaoBusNumbersStockpriceUpdateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -汽车票更新价格库存 API返回值 -taobao.bus.numbers.stockprice.update - -用于汽车票代理商更新价格库存 -*/ -type TaobaoBusNumbersStockpriceUpdateAPIResponse struct { - model.CommonResponse - TaobaoBusNumbersStockpriceUpdateResponse -} - -// 汽车票更新价格库存 成功返回结果 -type TaobaoBusNumbersStockpriceUpdateResponse struct { - XMLName xml.Name `xml:"bus_numbers_stockprice_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 成功数量 - SuccCount int64 `json:"succ_count,omitempty" xml:"succ_count,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/bus/TaobaoBusNumbersUpdateAPIRequest.go b/model/bus/TaobaoBusNumbersUpdateAPIRequest.go new file mode 100644 index 0000000000..25f35038c6 --- /dev/null +++ b/model/bus/TaobaoBusNumbersUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票车次更新服务 API请求 +taobao.bus.numbers.update + +用于汽车票车次信息的新增、更新和逻辑删除 +*/ +type TaobaoBusNumbersUpdateAPIRequest struct { + model.Params + // 请求参数 + _paramTopBusNumberUpdateRQ *TopBusNumberUpdateRq +} + +// 初始化TaobaoBusNumbersUpdateAPIRequest对象 +func NewTaobaoBusNumbersUpdateRequest() *TaobaoBusNumbersUpdateAPIRequest{ + return &TaobaoBusNumbersUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusNumbersUpdateAPIRequest) GetApiMethodName() string { + return "taobao.bus.numbers.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusNumbersUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamTopBusNumberUpdateRQ Setter +// 请求参数 +func (r *TaobaoBusNumbersUpdateAPIRequest) SetParamTopBusNumberUpdateRQ(_paramTopBusNumberUpdateRQ *TopBusNumberUpdateRq) error { + r._paramTopBusNumberUpdateRQ = _paramTopBusNumberUpdateRQ + r.Set("param_top_bus_number_update_r_q", _paramTopBusNumberUpdateRQ) + return nil +} + +// ParamTopBusNumberUpdateRQ Getter +func (r TaobaoBusNumbersUpdateAPIRequest) GetParamTopBusNumberUpdateRQ() *TopBusNumberUpdateRq { + return r._paramTopBusNumberUpdateRQ +} diff --git a/model/bus/TaobaoBusNumbersUpdateAPIResponse.go b/model/bus/TaobaoBusNumbersUpdateAPIResponse.go new file mode 100644 index 0000000000..21c1a5d98a --- /dev/null +++ b/model/bus/TaobaoBusNumbersUpdateAPIResponse.go @@ -0,0 +1,33 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票车次更新服务 API返回值 +taobao.bus.numbers.update + +用于汽车票车次信息的新增、更新和逻辑删除 +*/ +type TaobaoBusNumbersUpdateAPIResponse struct { + model.CommonResponse + TaobaoBusNumbersUpdateAPIResponseModel +} + +// 汽车票车次更新服务 成功返回结果 +type TaobaoBusNumbersUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"bus_numbers_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 成功数量 + SuccCount int64 `json:"succ_count,omitempty" xml:"succ_count,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/bus/TaobaoBusNumbersUpdateResponse.go b/model/bus/TaobaoBusNumbersUpdateResponse.go deleted file mode 100644 index 27cabe6422..0000000000 --- a/model/bus/TaobaoBusNumbersUpdateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -汽车票车次更新服务 API返回值 -taobao.bus.numbers.update - -用于汽车票车次信息的新增、更新和逻辑删除 -*/ -type TaobaoBusNumbersUpdateAPIResponse struct { - model.CommonResponse - TaobaoBusNumbersUpdateResponse -} - -// 汽车票车次更新服务 成功返回结果 -type TaobaoBusNumbersUpdateResponse struct { - XMLName xml.Name `xml:"bus_numbers_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 成功数量 - SuccCount int64 `json:"succ_count,omitempty" xml:"succ_count,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/bus/TaobaoBusOrderGetAPIRequest.go b/model/bus/TaobaoBusOrderGetAPIRequest.go new file mode 100644 index 0000000000..d0b11595ff --- /dev/null +++ b/model/bus/TaobaoBusOrderGetAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票订单查询 API请求 +taobao.bus.order.get + +商家汽车票订单查询 +*/ +type TaobaoBusOrderGetAPIRequest struct { + model.Params + // 订单查询对象 + _paramB2BOrderQueryRQ *B2BOrderQueryRq +} + +// 初始化TaobaoBusOrderGetAPIRequest对象 +func NewTaobaoBusOrderGetRequest() *TaobaoBusOrderGetAPIRequest{ + return &TaobaoBusOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusOrderGetAPIRequest) GetApiMethodName() string { + return "taobao.bus.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamB2BOrderQueryRQ Setter +// 订单查询对象 +func (r *TaobaoBusOrderGetAPIRequest) SetParamB2BOrderQueryRQ(_paramB2BOrderQueryRQ *B2BOrderQueryRq) error { + r._paramB2BOrderQueryRQ = _paramB2BOrderQueryRQ + r.Set("param_b2_b_order_query_r_q", _paramB2BOrderQueryRQ) + return nil +} + +// ParamB2BOrderQueryRQ Getter +func (r TaobaoBusOrderGetAPIRequest) GetParamB2BOrderQueryRQ() *B2BOrderQueryRq { + return r._paramB2BOrderQueryRQ +} diff --git a/model/bus/TaobaoBusOrderGetAPIResponse.go b/model/bus/TaobaoBusOrderGetAPIResponse.go new file mode 100644 index 0000000000..5d710b1f5d --- /dev/null +++ b/model/bus/TaobaoBusOrderGetAPIResponse.go @@ -0,0 +1,27 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票订单查询 API返回值 +taobao.bus.order.get + +商家汽车票订单查询 +*/ +type TaobaoBusOrderGetAPIResponse struct { + model.CommonResponse + TaobaoBusOrderGetAPIResponseModel +} + +// 汽车票订单查询 成功返回结果 +type TaobaoBusOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单查询返回对象 + Result *B2BOrderQueryRp `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/bus/TaobaoBusOrderGetResponse.go b/model/bus/TaobaoBusOrderGetResponse.go deleted file mode 100644 index 2d2720a8c8..0000000000 --- a/model/bus/TaobaoBusOrderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -汽车票订单查询 API返回值 -taobao.bus.order.get - -商家汽车票订单查询 -*/ -type TaobaoBusOrderGetAPIResponse struct { - model.CommonResponse - TaobaoBusOrderGetResponse -} - -// 汽车票订单查询 成功返回结果 -type TaobaoBusOrderGetResponse struct { - XMLName xml.Name `xml:"bus_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单查询返回对象 - Result *B2BOrderQueryRp `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/bus/TaobaoBusOrderSetAPIRequest.go b/model/bus/TaobaoBusOrderSetAPIRequest.go new file mode 100644 index 0000000000..f0f13fbb89 --- /dev/null +++ b/model/bus/TaobaoBusOrderSetAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票下单接口 API请求 +taobao.bus.order.set + +提供给汽车票商家进行下单 +*/ +type TaobaoBusOrderSetAPIRequest struct { + model.Params + // 下单参数 + _paramB2BCreateOrderRQ *B2BCreateOrderRq +} + +// 初始化TaobaoBusOrderSetAPIRequest对象 +func NewTaobaoBusOrderSetRequest() *TaobaoBusOrderSetAPIRequest{ + return &TaobaoBusOrderSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusOrderSetAPIRequest) GetApiMethodName() string { + return "taobao.bus.order.set" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusOrderSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamB2BCreateOrderRQ Setter +// 下单参数 +func (r *TaobaoBusOrderSetAPIRequest) SetParamB2BCreateOrderRQ(_paramB2BCreateOrderRQ *B2BCreateOrderRq) error { + r._paramB2BCreateOrderRQ = _paramB2BCreateOrderRQ + r.Set("param_b2_b_create_order_r_q", _paramB2BCreateOrderRQ) + return nil +} + +// ParamB2BCreateOrderRQ Getter +func (r TaobaoBusOrderSetAPIRequest) GetParamB2BCreateOrderRQ() *B2BCreateOrderRq { + return r._paramB2BCreateOrderRQ +} diff --git a/model/bus/TaobaoBusOrderSetAPIResponse.go b/model/bus/TaobaoBusOrderSetAPIResponse.go new file mode 100644 index 0000000000..457c10726a --- /dev/null +++ b/model/bus/TaobaoBusOrderSetAPIResponse.go @@ -0,0 +1,35 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票下单接口 API返回值 +taobao.bus.order.set + +提供给汽车票商家进行下单 +*/ +type TaobaoBusOrderSetAPIResponse struct { + model.CommonResponse + TaobaoBusOrderSetAPIResponseModel +} + +// 汽车票下单接口 成功返回结果 +type TaobaoBusOrderSetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_order_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 支付宝交易流水号 + AliPayTradeId string `json:"ali_pay_trade_id,omitempty" xml:"ali_pay_trade_id,omitempty"` + // 阿里订单号 + AlitripOrderId string `json:"alitrip_order_id,omitempty" xml:"alitrip_order_id,omitempty"` + // 错误代码 + ErrorCode1 string `json:"error_code_1,omitempty" xml:"error_code_1,omitempty"` + // 错误描述 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 是否下单成功 + Issuccess bool `json:"issuccess,omitempty" xml:"issuccess,omitempty"` +} diff --git a/model/bus/TaobaoBusOrderSetResponse.go b/model/bus/TaobaoBusOrderSetResponse.go deleted file mode 100644 index ddcd26e5c8..0000000000 --- a/model/bus/TaobaoBusOrderSetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -汽车票下单接口 API返回值 -taobao.bus.order.set - -提供给汽车票商家进行下单 -*/ -type TaobaoBusOrderSetAPIResponse struct { - model.CommonResponse - TaobaoBusOrderSetResponse -} - -// 汽车票下单接口 成功返回结果 -type TaobaoBusOrderSetResponse struct { - XMLName xml.Name `xml:"bus_order_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 支付宝交易流水号 - AliPayTradeId string `json:"ali_pay_trade_id,omitempty" xml:"ali_pay_trade_id,omitempty"` - // 阿里订单号 - AlitripOrderId string `json:"alitrip_order_id,omitempty" xml:"alitrip_order_id,omitempty"` - // 错误代码 - ErrorCode1 string `json:"error_code_1,omitempty" xml:"error_code_1,omitempty"` - // 错误描述 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 是否下单成功 - Issuccess bool `json:"issuccess,omitempty" xml:"issuccess,omitempty"` -} diff --git a/model/bus/TaobaoBusRefundSetAPIRequest.go b/model/bus/TaobaoBusRefundSetAPIRequest.go new file mode 100644 index 0000000000..531bd894bc --- /dev/null +++ b/model/bus/TaobaoBusRefundSetAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +B2B退票申请接口 API请求 +taobao.bus.refund.set + +B2B业务支持退票 +*/ +type TaobaoBusRefundSetAPIRequest struct { + model.Params + // 入参 + _param0 *B2BRefundOrderRq +} + +// 初始化TaobaoBusRefundSetAPIRequest对象 +func NewTaobaoBusRefundSetRequest() *TaobaoBusRefundSetAPIRequest{ + return &TaobaoBusRefundSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusRefundSetAPIRequest) GetApiMethodName() string { + return "taobao.bus.refund.set" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusRefundSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 入参 +func (r *TaobaoBusRefundSetAPIRequest) SetParam0(_param0 *B2BRefundOrderRq) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoBusRefundSetAPIRequest) GetParam0() *B2BRefundOrderRq { + return r._param0 +} diff --git a/model/bus/TaobaoBusRefundSetAPIResponse.go b/model/bus/TaobaoBusRefundSetAPIResponse.go new file mode 100644 index 0000000000..73b06c4490 --- /dev/null +++ b/model/bus/TaobaoBusRefundSetAPIResponse.go @@ -0,0 +1,27 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +B2B退票申请接口 API返回值 +taobao.bus.refund.set + +B2B业务支持退票 +*/ +type TaobaoBusRefundSetAPIResponse struct { + model.CommonResponse + TaobaoBusRefundSetAPIResponseModel +} + +// B2B退票申请接口 成功返回结果 +type TaobaoBusRefundSetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_refund_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *B2BRefundOrderRp `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/bus/TaobaoBusRefundSetResponse.go b/model/bus/TaobaoBusRefundSetResponse.go deleted file mode 100644 index 3f1e708178..0000000000 --- a/model/bus/TaobaoBusRefundSetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -B2B退票申请接口 API返回值 -taobao.bus.refund.set - -B2B业务支持退票 -*/ -type TaobaoBusRefundSetAPIResponse struct { - model.CommonResponse - TaobaoBusRefundSetResponse -} - -// B2B退票申请接口 成功返回结果 -type TaobaoBusRefundSetResponse struct { - XMLName xml.Name `xml:"bus_refund_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *B2BRefundOrderRp `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/bus/TaobaoBusRefundfeeGetAPIRequest.go b/model/bus/TaobaoBusRefundfeeGetAPIRequest.go new file mode 100644 index 0000000000..fd578e94ab --- /dev/null +++ b/model/bus/TaobaoBusRefundfeeGetAPIRequest.go @@ -0,0 +1,66 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询退票费用明细 API请求 +taobao.bus.refundfee.get + +查询退票的费用信息 +*/ +type TaobaoBusRefundfeeGetAPIRequest struct { + model.Params + // 飞猪订单号 + _aliTripOrderId string + // 飞猪子订单号 + _subOrderIds []int64 +} + +// 初始化TaobaoBusRefundfeeGetAPIRequest对象 +func NewTaobaoBusRefundfeeGetRequest() *TaobaoBusRefundfeeGetAPIRequest{ + return &TaobaoBusRefundfeeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusRefundfeeGetAPIRequest) GetApiMethodName() string { + return "taobao.bus.refundfee.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusRefundfeeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AliTripOrderId Setter +// 飞猪订单号 +func (r *TaobaoBusRefundfeeGetAPIRequest) SetAliTripOrderId(_aliTripOrderId string) error { + r._aliTripOrderId = _aliTripOrderId + r.Set("ali_trip_order_id", _aliTripOrderId) + return nil +} + +// AliTripOrderId Getter +func (r TaobaoBusRefundfeeGetAPIRequest) GetAliTripOrderId() string { + return r._aliTripOrderId +} +// SubOrderIds Setter +// 飞猪子订单号 +func (r *TaobaoBusRefundfeeGetAPIRequest) SetSubOrderIds(_subOrderIds []int64) error { + r._subOrderIds = _subOrderIds + r.Set("sub_order_ids", _subOrderIds) + return nil +} + +// SubOrderIds Getter +func (r TaobaoBusRefundfeeGetAPIRequest) GetSubOrderIds() []int64 { + return r._subOrderIds +} diff --git a/model/bus/TaobaoBusRefundfeeGetAPIResponse.go b/model/bus/TaobaoBusRefundfeeGetAPIResponse.go new file mode 100644 index 0000000000..6e8b06437c --- /dev/null +++ b/model/bus/TaobaoBusRefundfeeGetAPIResponse.go @@ -0,0 +1,27 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询退票费用明细 API返回值 +taobao.bus.refundfee.get + +查询退票的费用信息 +*/ +type TaobaoBusRefundfeeGetAPIResponse struct { + model.CommonResponse + TaobaoBusRefundfeeGetAPIResponseModel +} + +// 查询退票费用明细 成功返回结果 +type TaobaoBusRefundfeeGetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_refundfee_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *B2BQueryRefundFeeRp `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/bus/TaobaoBusRefundfeeGetResponse.go b/model/bus/TaobaoBusRefundfeeGetResponse.go deleted file mode 100644 index 71272d8f2c..0000000000 --- a/model/bus/TaobaoBusRefundfeeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询退票费用明细 API返回值 -taobao.bus.refundfee.get - -查询退票的费用信息 -*/ -type TaobaoBusRefundfeeGetAPIResponse struct { - model.CommonResponse - TaobaoBusRefundfeeGetResponse -} - -// 查询退票费用明细 成功返回结果 -type TaobaoBusRefundfeeGetResponse struct { - XMLName xml.Name `xml:"bus_refundfee_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *B2BQueryRefundFeeRp `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/bus/TaobaoBusRefundticketpriceSetAPIRequest.go b/model/bus/TaobaoBusRefundticketpriceSetAPIRequest.go new file mode 100644 index 0000000000..61e0ae9bda --- /dev/null +++ b/model/bus/TaobaoBusRefundticketpriceSetAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票退款申请接口 API请求 +taobao.bus.refundticketprice.set + +汽车票代理商利用该接口申请退票 +*/ +type TaobaoBusRefundticketpriceSetAPIRequest struct { + model.Params + // 退票申请入参 + _offlineRefundTicketRq *OfflineRefundTicketPriceRq +} + +// 初始化TaobaoBusRefundticketpriceSetAPIRequest对象 +func NewTaobaoBusRefundticketpriceSetRequest() *TaobaoBusRefundticketpriceSetAPIRequest{ + return &TaobaoBusRefundticketpriceSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusRefundticketpriceSetAPIRequest) GetApiMethodName() string { + return "taobao.bus.refundticketprice.set" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusRefundticketpriceSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OfflineRefundTicketRq Setter +// 退票申请入参 +func (r *TaobaoBusRefundticketpriceSetAPIRequest) SetOfflineRefundTicketRq(_offlineRefundTicketRq *OfflineRefundTicketPriceRq) error { + r._offlineRefundTicketRq = _offlineRefundTicketRq + r.Set("offline_refund_ticket_rq", _offlineRefundTicketRq) + return nil +} + +// OfflineRefundTicketRq Getter +func (r TaobaoBusRefundticketpriceSetAPIRequest) GetOfflineRefundTicketRq() *OfflineRefundTicketPriceRq { + return r._offlineRefundTicketRq +} diff --git a/model/bus/TaobaoBusRefundticketpriceSetAPIResponse.go b/model/bus/TaobaoBusRefundticketpriceSetAPIResponse.go new file mode 100644 index 0000000000..cd97a58344 --- /dev/null +++ b/model/bus/TaobaoBusRefundticketpriceSetAPIResponse.go @@ -0,0 +1,27 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票退款申请接口 API返回值 +taobao.bus.refundticketprice.set + +汽车票代理商利用该接口申请退票 +*/ +type TaobaoBusRefundticketpriceSetAPIResponse struct { + model.CommonResponse + TaobaoBusRefundticketpriceSetAPIResponseModel +} + +// 汽车票退款申请接口 成功返回结果 +type TaobaoBusRefundticketpriceSetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_refundticketprice_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 退票成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/bus/TaobaoBusRefundticketpriceSetResponse.go b/model/bus/TaobaoBusRefundticketpriceSetResponse.go deleted file mode 100644 index 16b91cd0c4..0000000000 --- a/model/bus/TaobaoBusRefundticketpriceSetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -汽车票退款申请接口 API返回值 -taobao.bus.refundticketprice.set - -汽车票代理商利用该接口申请退票 -*/ -type TaobaoBusRefundticketpriceSetAPIResponse struct { - model.CommonResponse - TaobaoBusRefundticketpriceSetResponse -} - -// 汽车票退款申请接口 成功返回结果 -type TaobaoBusRefundticketpriceSetResponse struct { - XMLName xml.Name `xml:"bus_refundticketprice_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 退票成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/bus/TaobaoBusSeatpriceGetAPIRequest.go b/model/bus/TaobaoBusSeatpriceGetAPIRequest.go new file mode 100644 index 0000000000..a42d2c2a38 --- /dev/null +++ b/model/bus/TaobaoBusSeatpriceGetAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票余票接口 API请求 +taobao.bus.seatprice.get + +提供给商家,查询汽车票班次余票 +*/ +type TaobaoBusSeatpriceGetAPIRequest struct { + model.Params + // 余票请求参数 + _paramBusSeatPriceRQ *BusSeatPriceRq +} + +// 初始化TaobaoBusSeatpriceGetAPIRequest对象 +func NewTaobaoBusSeatpriceGetRequest() *TaobaoBusSeatpriceGetAPIRequest{ + return &TaobaoBusSeatpriceGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusSeatpriceGetAPIRequest) GetApiMethodName() string { + return "taobao.bus.seatprice.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusSeatpriceGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBusSeatPriceRQ Setter +// 余票请求参数 +func (r *TaobaoBusSeatpriceGetAPIRequest) SetParamBusSeatPriceRQ(_paramBusSeatPriceRQ *BusSeatPriceRq) error { + r._paramBusSeatPriceRQ = _paramBusSeatPriceRQ + r.Set("param_bus_seat_price_r_q", _paramBusSeatPriceRQ) + return nil +} + +// ParamBusSeatPriceRQ Getter +func (r TaobaoBusSeatpriceGetAPIRequest) GetParamBusSeatPriceRQ() *BusSeatPriceRq { + return r._paramBusSeatPriceRQ +} diff --git a/model/bus/TaobaoBusSeatpriceGetAPIResponse.go b/model/bus/TaobaoBusSeatpriceGetAPIResponse.go new file mode 100644 index 0000000000..d7c5e26021 --- /dev/null +++ b/model/bus/TaobaoBusSeatpriceGetAPIResponse.go @@ -0,0 +1,27 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车票余票接口 API返回值 +taobao.bus.seatprice.get + +提供给商家,查询汽车票班次余票 +*/ +type TaobaoBusSeatpriceGetAPIResponse struct { + model.CommonResponse + TaobaoBusSeatpriceGetAPIResponseModel +} + +// 汽车票余票接口 成功返回结果 +type TaobaoBusSeatpriceGetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_seatprice_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoBusSeatpriceGetResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/bus/TaobaoBusSeatpriceGetResponse.go b/model/bus/TaobaoBusSeatpriceGetResponse.go deleted file mode 100644 index bad160d586..0000000000 --- a/model/bus/TaobaoBusSeatpriceGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -汽车票余票接口 API返回值 -taobao.bus.seatprice.get - -提供给商家,查询汽车票班次余票 -*/ -type TaobaoBusSeatpriceGetAPIResponse struct { - model.CommonResponse - TaobaoBusSeatpriceGetResponse -} - -// 汽车票余票接口 成功返回结果 -type TaobaoBusSeatpriceGetResponse struct { - XMLName xml.Name `xml:"bus_seatprice_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoBusSeatpriceGetResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/bus/TaobaoBusTicketSetAPIRequest.go b/model/bus/TaobaoBusTicketSetAPIRequest.go new file mode 100644 index 0000000000..4c8a280e88 --- /dev/null +++ b/model/bus/TaobaoBusTicketSetAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +出票接口 API请求 +taobao.bus.ticket.set + +提供给汽车票商家出票使用 +*/ +type TaobaoBusTicketSetAPIRequest struct { + model.Params + // 系统自动生成 + _ticketParams *B2BBookOrderRq +} + +// 初始化TaobaoBusTicketSetAPIRequest对象 +func NewTaobaoBusTicketSetRequest() *TaobaoBusTicketSetAPIRequest{ + return &TaobaoBusTicketSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusTicketSetAPIRequest) GetApiMethodName() string { + return "taobao.bus.ticket.set" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusTicketSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TicketParams Setter +// 系统自动生成 +func (r *TaobaoBusTicketSetAPIRequest) SetTicketParams(_ticketParams *B2BBookOrderRq) error { + r._ticketParams = _ticketParams + r.Set("ticket_params", _ticketParams) + return nil +} + +// TicketParams Getter +func (r TaobaoBusTicketSetAPIRequest) GetTicketParams() *B2BBookOrderRq { + return r._ticketParams +} diff --git a/model/bus/TaobaoBusTicketSetAPIResponse.go b/model/bus/TaobaoBusTicketSetAPIResponse.go new file mode 100644 index 0000000000..0452f1a0c6 --- /dev/null +++ b/model/bus/TaobaoBusTicketSetAPIResponse.go @@ -0,0 +1,31 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +出票接口 API返回值 +taobao.bus.ticket.set + +提供给汽车票商家出票使用 +*/ +type TaobaoBusTicketSetAPIResponse struct { + model.CommonResponse + TaobaoBusTicketSetAPIResponseModel +} + +// 出票接口 成功返回结果 +type TaobaoBusTicketSetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_ticket_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // errorCode + ErrorCode1 string `json:"error_code1,omitempty" xml:"error_code1,omitempty"` + // errorMsg + ErrorMsg1 string `json:"error_msg1,omitempty" xml:"error_msg1,omitempty"` + // success1 + Success1 bool `json:"success1,omitempty" xml:"success1,omitempty"` +} diff --git a/model/bus/TaobaoBusTicketSetResponse.go b/model/bus/TaobaoBusTicketSetResponse.go deleted file mode 100644 index 213a5d4c0f..0000000000 --- a/model/bus/TaobaoBusTicketSetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -出票接口 API返回值 -taobao.bus.ticket.set - -提供给汽车票商家出票使用 -*/ -type TaobaoBusTicketSetAPIResponse struct { - model.CommonResponse - TaobaoBusTicketSetResponse -} - -// 出票接口 成功返回结果 -type TaobaoBusTicketSetResponse struct { - XMLName xml.Name `xml:"bus_ticket_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // errorCode - ErrorCode1 string `json:"error_code1,omitempty" xml:"error_code1,omitempty"` - // errorMsg - ErrorMsg1 string `json:"error_msg1,omitempty" xml:"error_msg1,omitempty"` - // success1 - Success1 bool `json:"success1,omitempty" xml:"success1,omitempty"` -} diff --git a/model/bus/TaobaoBusTvmbookorderSetAPIRequest.go b/model/bus/TaobaoBusTvmbookorderSetAPIRequest.go new file mode 100644 index 0000000000..156f2e39cc --- /dev/null +++ b/model/bus/TaobaoBusTvmbookorderSetAPIRequest.go @@ -0,0 +1,150 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线下自助机通知出票接口 API请求 +taobao.bus.tvmbookorder.set + +出票,当成功的时候告知出票;当失败的时候告知出票失败,飞猪退款给用户。 +*/ +type TaobaoBusTvmbookorderSetAPIRequest struct { + model.Params + // 飞猪订单号 + _alitripOrderId string + // 出票时间 2017-03-03 11:22:33 + _bookTime string + // true代表出票成功;false代表出票失败 + _success bool + // 取值范围 ALIPAY (飞猪渠道); WECHAT(微信); BANKCARD(银行卡);CASH(现金); OWN_ALIPAY(自身支付宝渠道,非飞猪渠道) + _payMode string + // 取票人手机号 + _fetchPhone string + // 乘客票面信息 + _passengers []TvmPassengerVo + // 是否支持电子票 + _supportEticket bool + // 检票口 + _ticketGate string +} + +// 初始化TaobaoBusTvmbookorderSetAPIRequest对象 +func NewTaobaoBusTvmbookorderSetRequest() *TaobaoBusTvmbookorderSetAPIRequest{ + return &TaobaoBusTvmbookorderSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusTvmbookorderSetAPIRequest) GetApiMethodName() string { + return "taobao.bus.tvmbookorder.set" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusTvmbookorderSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlitripOrderId Setter +// 飞猪订单号 +func (r *TaobaoBusTvmbookorderSetAPIRequest) SetAlitripOrderId(_alitripOrderId string) error { + r._alitripOrderId = _alitripOrderId + r.Set("alitrip_order_id", _alitripOrderId) + return nil +} + +// AlitripOrderId Getter +func (r TaobaoBusTvmbookorderSetAPIRequest) GetAlitripOrderId() string { + return r._alitripOrderId +} +// BookTime Setter +// 出票时间 2017-03-03 11:22:33 +func (r *TaobaoBusTvmbookorderSetAPIRequest) SetBookTime(_bookTime string) error { + r._bookTime = _bookTime + r.Set("book_time", _bookTime) + return nil +} + +// BookTime Getter +func (r TaobaoBusTvmbookorderSetAPIRequest) GetBookTime() string { + return r._bookTime +} +// Success Setter +// true代表出票成功;false代表出票失败 +func (r *TaobaoBusTvmbookorderSetAPIRequest) SetSuccess(_success bool) error { + r._success = _success + r.Set("success", _success) + return nil +} + +// Success Getter +func (r TaobaoBusTvmbookorderSetAPIRequest) GetSuccess() bool { + return r._success +} +// PayMode Setter +// 取值范围 ALIPAY (飞猪渠道); WECHAT(微信); BANKCARD(银行卡);CASH(现金); OWN_ALIPAY(自身支付宝渠道,非飞猪渠道) +func (r *TaobaoBusTvmbookorderSetAPIRequest) SetPayMode(_payMode string) error { + r._payMode = _payMode + r.Set("pay_mode", _payMode) + return nil +} + +// PayMode Getter +func (r TaobaoBusTvmbookorderSetAPIRequest) GetPayMode() string { + return r._payMode +} +// FetchPhone Setter +// 取票人手机号 +func (r *TaobaoBusTvmbookorderSetAPIRequest) SetFetchPhone(_fetchPhone string) error { + r._fetchPhone = _fetchPhone + r.Set("fetch_phone", _fetchPhone) + return nil +} + +// FetchPhone Getter +func (r TaobaoBusTvmbookorderSetAPIRequest) GetFetchPhone() string { + return r._fetchPhone +} +// Passengers Setter +// 乘客票面信息 +func (r *TaobaoBusTvmbookorderSetAPIRequest) SetPassengers(_passengers []TvmPassengerVo) error { + r._passengers = _passengers + r.Set("passengers", _passengers) + return nil +} + +// Passengers Getter +func (r TaobaoBusTvmbookorderSetAPIRequest) GetPassengers() []TvmPassengerVo { + return r._passengers +} +// SupportEticket Setter +// 是否支持电子票 +func (r *TaobaoBusTvmbookorderSetAPIRequest) SetSupportEticket(_supportEticket bool) error { + r._supportEticket = _supportEticket + r.Set("support_eticket", _supportEticket) + return nil +} + +// SupportEticket Getter +func (r TaobaoBusTvmbookorderSetAPIRequest) GetSupportEticket() bool { + return r._supportEticket +} +// TicketGate Setter +// 检票口 +func (r *TaobaoBusTvmbookorderSetAPIRequest) SetTicketGate(_ticketGate string) error { + r._ticketGate = _ticketGate + r.Set("ticket_gate", _ticketGate) + return nil +} + +// TicketGate Getter +func (r TaobaoBusTvmbookorderSetAPIRequest) GetTicketGate() string { + return r._ticketGate +} diff --git a/model/bus/TaobaoBusTvmbookorderSetAPIResponse.go b/model/bus/TaobaoBusTvmbookorderSetAPIResponse.go new file mode 100644 index 0000000000..4eb4144811 --- /dev/null +++ b/model/bus/TaobaoBusTvmbookorderSetAPIResponse.go @@ -0,0 +1,31 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线下自助机通知出票接口 API返回值 +taobao.bus.tvmbookorder.set + +出票,当成功的时候告知出票;当失败的时候告知出票失败,飞猪退款给用户。 +*/ +type TaobaoBusTvmbookorderSetAPIResponse struct { + model.CommonResponse + TaobaoBusTvmbookorderSetAPIResponseModel +} + +// 线下自助机通知出票接口 成功返回结果 +type TaobaoBusTvmbookorderSetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_tvmbookorder_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // errorCode + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // errorMsg + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/bus/TaobaoBusTvmbookorderSetResponse.go b/model/bus/TaobaoBusTvmbookorderSetResponse.go deleted file mode 100644 index 2e83077e9c..0000000000 --- a/model/bus/TaobaoBusTvmbookorderSetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线下自助机通知出票接口 API返回值 -taobao.bus.tvmbookorder.set - -出票,当成功的时候告知出票;当失败的时候告知出票失败,飞猪退款给用户。 -*/ -type TaobaoBusTvmbookorderSetAPIResponse struct { - model.CommonResponse - TaobaoBusTvmbookorderSetResponse -} - -// 线下自助机通知出票接口 成功返回结果 -type TaobaoBusTvmbookorderSetResponse struct { - XMLName xml.Name `xml:"bus_tvmbookorder_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // errorCode - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // errorMsg - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/bus/TaobaoBusTvmcancelorderSetAPIRequest.go b/model/bus/TaobaoBusTvmcancelorderSetAPIRequest.go new file mode 100644 index 0000000000..a4793625e0 --- /dev/null +++ b/model/bus/TaobaoBusTvmcancelorderSetAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线下自助机未付款取消订单 API请求 +taobao.bus.tvmcancelorder.set + +自助机汽车票未付款取消订单 +*/ +type TaobaoBusTvmcancelorderSetAPIRequest struct { + model.Params + // 飞猪订单号 + _alitripOrderId string +} + +// 初始化TaobaoBusTvmcancelorderSetAPIRequest对象 +func NewTaobaoBusTvmcancelorderSetRequest() *TaobaoBusTvmcancelorderSetAPIRequest{ + return &TaobaoBusTvmcancelorderSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusTvmcancelorderSetAPIRequest) GetApiMethodName() string { + return "taobao.bus.tvmcancelorder.set" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusTvmcancelorderSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlitripOrderId Setter +// 飞猪订单号 +func (r *TaobaoBusTvmcancelorderSetAPIRequest) SetAlitripOrderId(_alitripOrderId string) error { + r._alitripOrderId = _alitripOrderId + r.Set("alitrip_order_id", _alitripOrderId) + return nil +} + +// AlitripOrderId Getter +func (r TaobaoBusTvmcancelorderSetAPIRequest) GetAlitripOrderId() string { + return r._alitripOrderId +} diff --git a/model/bus/TaobaoBusTvmcancelorderSetAPIResponse.go b/model/bus/TaobaoBusTvmcancelorderSetAPIResponse.go new file mode 100644 index 0000000000..55c56e0929 --- /dev/null +++ b/model/bus/TaobaoBusTvmcancelorderSetAPIResponse.go @@ -0,0 +1,31 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线下自助机未付款取消订单 API返回值 +taobao.bus.tvmcancelorder.set + +自助机汽车票未付款取消订单 +*/ +type TaobaoBusTvmcancelorderSetAPIResponse struct { + model.CommonResponse + TaobaoBusTvmcancelorderSetAPIResponseModel +} + +// 线下自助机未付款取消订单 成功返回结果 +type TaobaoBusTvmcancelorderSetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_tvmcancelorder_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 ORDER_NOT_FOUND + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误描述 订单无法查询 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // true代表成功 false 代表失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/bus/TaobaoBusTvmcancelorderSetResponse.go b/model/bus/TaobaoBusTvmcancelorderSetResponse.go deleted file mode 100644 index 805a309c7a..0000000000 --- a/model/bus/TaobaoBusTvmcancelorderSetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线下自助机未付款取消订单 API返回值 -taobao.bus.tvmcancelorder.set - -自助机汽车票未付款取消订单 -*/ -type TaobaoBusTvmcancelorderSetAPIResponse struct { - model.CommonResponse - TaobaoBusTvmcancelorderSetResponse -} - -// 线下自助机未付款取消订单 成功返回结果 -type TaobaoBusTvmcancelorderSetResponse struct { - XMLName xml.Name `xml:"bus_tvmcancelorder_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 ORDER_NOT_FOUND - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误描述 订单无法查询 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // true代表成功 false 代表失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/bus/TaobaoBusTvmcreateorderSetAPIRequest.go b/model/bus/TaobaoBusTvmcreateorderSetAPIRequest.go new file mode 100644 index 0000000000..74242d8d33 --- /dev/null +++ b/model/bus/TaobaoBusTvmcreateorderSetAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线下自助机创建订单 API请求 +taobao.bus.tvmcreateorder.set + +提供给汽车票线下自助机的创建订单使用 +*/ +type TaobaoBusTvmcreateorderSetAPIRequest struct { + model.Params + // 创建订单对象 + _paramTVMCreateOrderRQ *TvmCreateOrderRq +} + +// 初始化TaobaoBusTvmcreateorderSetAPIRequest对象 +func NewTaobaoBusTvmcreateorderSetRequest() *TaobaoBusTvmcreateorderSetAPIRequest{ + return &TaobaoBusTvmcreateorderSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusTvmcreateorderSetAPIRequest) GetApiMethodName() string { + return "taobao.bus.tvmcreateorder.set" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusTvmcreateorderSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamTVMCreateOrderRQ Setter +// 创建订单对象 +func (r *TaobaoBusTvmcreateorderSetAPIRequest) SetParamTVMCreateOrderRQ(_paramTVMCreateOrderRQ *TvmCreateOrderRq) error { + r._paramTVMCreateOrderRQ = _paramTVMCreateOrderRQ + r.Set("param_t_v_m_create_order_r_q", _paramTVMCreateOrderRQ) + return nil +} + +// ParamTVMCreateOrderRQ Getter +func (r TaobaoBusTvmcreateorderSetAPIRequest) GetParamTVMCreateOrderRQ() *TvmCreateOrderRq { + return r._paramTVMCreateOrderRQ +} diff --git a/model/bus/TaobaoBusTvmcreateorderSetAPIResponse.go b/model/bus/TaobaoBusTvmcreateorderSetAPIResponse.go new file mode 100644 index 0000000000..16e4213ede --- /dev/null +++ b/model/bus/TaobaoBusTvmcreateorderSetAPIResponse.go @@ -0,0 +1,33 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线下自助机创建订单 API返回值 +taobao.bus.tvmcreateorder.set + +提供给汽车票线下自助机的创建订单使用 +*/ +type TaobaoBusTvmcreateorderSetAPIResponse struct { + model.CommonResponse + TaobaoBusTvmcreateorderSetAPIResponseModel +} + +// 线下自助机创建订单 成功返回结果 +type TaobaoBusTvmcreateorderSetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_tvmcreateorder_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alitripOrderId + AlitripOrderId string `json:"alitrip_order_id,omitempty" xml:"alitrip_order_id,omitempty"` + // errorCode + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // errorMsg + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/bus/TaobaoBusTvmcreateorderSetResponse.go b/model/bus/TaobaoBusTvmcreateorderSetResponse.go deleted file mode 100644 index 1098bb83ea..0000000000 --- a/model/bus/TaobaoBusTvmcreateorderSetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线下自助机创建订单 API返回值 -taobao.bus.tvmcreateorder.set - -提供给汽车票线下自助机的创建订单使用 -*/ -type TaobaoBusTvmcreateorderSetAPIResponse struct { - model.CommonResponse - TaobaoBusTvmcreateorderSetResponse -} - -// 线下自助机创建订单 成功返回结果 -type TaobaoBusTvmcreateorderSetResponse struct { - XMLName xml.Name `xml:"bus_tvmcreateorder_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alitripOrderId - AlitripOrderId string `json:"alitrip_order_id,omitempty" xml:"alitrip_order_id,omitempty"` - // errorCode - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // errorMsg - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/bus/TaobaoBusTvmcreateqrcodeSetAPIRequest.go b/model/bus/TaobaoBusTvmcreateqrcodeSetAPIRequest.go new file mode 100644 index 0000000000..7d9d9deedf --- /dev/null +++ b/model/bus/TaobaoBusTvmcreateqrcodeSetAPIRequest.go @@ -0,0 +1,66 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +自助机生成支付宝支付二维码 API请求 +taobao.bus.tvmcreateqrcode.set + +用于汽车票线下自助机调用获取支付宝的二维码 +*/ +type TaobaoBusTvmcreateqrcodeSetAPIRequest struct { + model.Params + // 飞猪订单号 + _alitripOrderId string + // 超时时间(分钟) + _timeoutExpress int64 +} + +// 初始化TaobaoBusTvmcreateqrcodeSetAPIRequest对象 +func NewTaobaoBusTvmcreateqrcodeSetRequest() *TaobaoBusTvmcreateqrcodeSetAPIRequest{ + return &TaobaoBusTvmcreateqrcodeSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusTvmcreateqrcodeSetAPIRequest) GetApiMethodName() string { + return "taobao.bus.tvmcreateqrcode.set" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusTvmcreateqrcodeSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlitripOrderId Setter +// 飞猪订单号 +func (r *TaobaoBusTvmcreateqrcodeSetAPIRequest) SetAlitripOrderId(_alitripOrderId string) error { + r._alitripOrderId = _alitripOrderId + r.Set("alitrip_order_id", _alitripOrderId) + return nil +} + +// AlitripOrderId Getter +func (r TaobaoBusTvmcreateqrcodeSetAPIRequest) GetAlitripOrderId() string { + return r._alitripOrderId +} +// TimeoutExpress Setter +// 超时时间(分钟) +func (r *TaobaoBusTvmcreateqrcodeSetAPIRequest) SetTimeoutExpress(_timeoutExpress int64) error { + r._timeoutExpress = _timeoutExpress + r.Set("timeout_express", _timeoutExpress) + return nil +} + +// TimeoutExpress Getter +func (r TaobaoBusTvmcreateqrcodeSetAPIRequest) GetTimeoutExpress() int64 { + return r._timeoutExpress +} diff --git a/model/bus/TaobaoBusTvmcreateqrcodeSetAPIResponse.go b/model/bus/TaobaoBusTvmcreateqrcodeSetAPIResponse.go new file mode 100644 index 0000000000..b4c9975166 --- /dev/null +++ b/model/bus/TaobaoBusTvmcreateqrcodeSetAPIResponse.go @@ -0,0 +1,33 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +自助机生成支付宝支付二维码 API返回值 +taobao.bus.tvmcreateqrcode.set + +用于汽车票线下自助机调用获取支付宝的二维码 +*/ +type TaobaoBusTvmcreateqrcodeSetAPIResponse struct { + model.CommonResponse + TaobaoBusTvmcreateqrcodeSetAPIResponseModel +} + +// 自助机生成支付宝支付二维码 成功返回结果 +type TaobaoBusTvmcreateqrcodeSetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_tvmcreateqrcode_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // errorCode 错误码 及其 描述 ("PAYED_OR_CANCEL_FAIL_NOT_CREATE_QRCODE", "已支付/取消/失败订单不能创建二维码"), ("PAYED_OR_CANCEL_FAIL_NOT_CREATE_SCAN_CODE", "已支付/取消/失败订单不能创建条形码"), ("CREATE_QRCODE_ERROR", "创建二维码失败"), ("DISABLE_QRCODE_ERROR", "失效二维码失败"), ("CREATE_SCANCODE_ERROR", "扫码失败"), ("CREATE_SCANCODE_PROCESSING", "扫码处理中") + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // errorMsg 错误码 及其 描述 ("PAYED_OR_CANCEL_FAIL_NOT_CREATE_QRCODE", "已支付/取消/失败订单不能创建二维码"), ("PAYED_OR_CANCEL_FAIL_NOT_CREATE_SCAN_CODE", "已支付/取消/失败订单不能创建条形码"), ("CREATE_QRCODE_ERROR", "创建二维码失败"), ("DISABLE_QRCODE_ERROR", "失效二维码失败"), ("CREATE_SCANCODE_ERROR", "扫码失败"), ("CREATE_SCANCODE_PROCESSING", "扫码处理中") + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // qrCode 二维码连接 + QrCode string `json:"qr_code,omitempty" xml:"qr_code,omitempty"` + // success true 成功 false 失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/bus/TaobaoBusTvmcreateqrcodeSetResponse.go b/model/bus/TaobaoBusTvmcreateqrcodeSetResponse.go deleted file mode 100644 index eb0717c946..0000000000 --- a/model/bus/TaobaoBusTvmcreateqrcodeSetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -自助机生成支付宝支付二维码 API返回值 -taobao.bus.tvmcreateqrcode.set - -用于汽车票线下自助机调用获取支付宝的二维码 -*/ -type TaobaoBusTvmcreateqrcodeSetAPIResponse struct { - model.CommonResponse - TaobaoBusTvmcreateqrcodeSetResponse -} - -// 自助机生成支付宝支付二维码 成功返回结果 -type TaobaoBusTvmcreateqrcodeSetResponse struct { - XMLName xml.Name `xml:"bus_tvmcreateqrcode_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // errorCode 错误码 及其 描述 ("PAYED_OR_CANCEL_FAIL_NOT_CREATE_QRCODE", "已支付/取消/失败订单不能创建二维码"), ("PAYED_OR_CANCEL_FAIL_NOT_CREATE_SCAN_CODE", "已支付/取消/失败订单不能创建条形码"), ("CREATE_QRCODE_ERROR", "创建二维码失败"), ("DISABLE_QRCODE_ERROR", "失效二维码失败"), ("CREATE_SCANCODE_ERROR", "扫码失败"), ("CREATE_SCANCODE_PROCESSING", "扫码处理中") - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // errorMsg 错误码 及其 描述 ("PAYED_OR_CANCEL_FAIL_NOT_CREATE_QRCODE", "已支付/取消/失败订单不能创建二维码"), ("PAYED_OR_CANCEL_FAIL_NOT_CREATE_SCAN_CODE", "已支付/取消/失败订单不能创建条形码"), ("CREATE_QRCODE_ERROR", "创建二维码失败"), ("DISABLE_QRCODE_ERROR", "失效二维码失败"), ("CREATE_SCANCODE_ERROR", "扫码失败"), ("CREATE_SCANCODE_PROCESSING", "扫码处理中") - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // qrCode 二维码连接 - QrCode string `json:"qr_code,omitempty" xml:"qr_code,omitempty"` - // success true 成功 false 失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/bus/TaobaoBusTvmpayorderSetAPIRequest.go b/model/bus/TaobaoBusTvmpayorderSetAPIRequest.go new file mode 100644 index 0000000000..221342db8e --- /dev/null +++ b/model/bus/TaobaoBusTvmpayorderSetAPIRequest.go @@ -0,0 +1,66 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +自助机条形码被动支付 API请求 +taobao.bus.tvmpayorder.set + +汽车票线下自助机条形码支付 +*/ +type TaobaoBusTvmpayorderSetAPIRequest struct { + model.Params + // 条形码认证码 + _alipayAuthCode string + // 飞猪订单号 + _alitripOrderId string +} + +// 初始化TaobaoBusTvmpayorderSetAPIRequest对象 +func NewTaobaoBusTvmpayorderSetRequest() *TaobaoBusTvmpayorderSetAPIRequest{ + return &TaobaoBusTvmpayorderSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusTvmpayorderSetAPIRequest) GetApiMethodName() string { + return "taobao.bus.tvmpayorder.set" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusTvmpayorderSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlipayAuthCode Setter +// 条形码认证码 +func (r *TaobaoBusTvmpayorderSetAPIRequest) SetAlipayAuthCode(_alipayAuthCode string) error { + r._alipayAuthCode = _alipayAuthCode + r.Set("alipay_auth_code", _alipayAuthCode) + return nil +} + +// AlipayAuthCode Getter +func (r TaobaoBusTvmpayorderSetAPIRequest) GetAlipayAuthCode() string { + return r._alipayAuthCode +} +// AlitripOrderId Setter +// 飞猪订单号 +func (r *TaobaoBusTvmpayorderSetAPIRequest) SetAlitripOrderId(_alitripOrderId string) error { + r._alitripOrderId = _alitripOrderId + r.Set("alitrip_order_id", _alitripOrderId) + return nil +} + +// AlitripOrderId Getter +func (r TaobaoBusTvmpayorderSetAPIRequest) GetAlitripOrderId() string { + return r._alitripOrderId +} diff --git a/model/bus/TaobaoBusTvmpayorderSetAPIResponse.go b/model/bus/TaobaoBusTvmpayorderSetAPIResponse.go new file mode 100644 index 0000000000..c36fdad4db --- /dev/null +++ b/model/bus/TaobaoBusTvmpayorderSetAPIResponse.go @@ -0,0 +1,33 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +自助机条形码被动支付 API返回值 +taobao.bus.tvmpayorder.set + +汽车票线下自助机条形码支付 +*/ +type TaobaoBusTvmpayorderSetAPIResponse struct { + model.CommonResponse + TaobaoBusTvmpayorderSetAPIResponseModel +} + +// 自助机条形码被动支付 成功返回结果 +type TaobaoBusTvmpayorderSetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_tvmpayorder_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // errorCode 线下扫码支付 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // errorMsg 错误信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // success true 成功 false 失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // payTime + PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"` +} diff --git a/model/bus/TaobaoBusTvmpayorderSetResponse.go b/model/bus/TaobaoBusTvmpayorderSetResponse.go deleted file mode 100644 index 274804f667..0000000000 --- a/model/bus/TaobaoBusTvmpayorderSetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -自助机条形码被动支付 API返回值 -taobao.bus.tvmpayorder.set - -汽车票线下自助机条形码支付 -*/ -type TaobaoBusTvmpayorderSetAPIResponse struct { - model.CommonResponse - TaobaoBusTvmpayorderSetResponse -} - -// 自助机条形码被动支付 成功返回结果 -type TaobaoBusTvmpayorderSetResponse struct { - XMLName xml.Name `xml:"bus_tvmpayorder_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // errorCode 线下扫码支付 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // errorMsg 错误信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // success true 成功 false 失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // payTime - PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"` -} diff --git a/model/bus/TaobaoBusTvmqueryorderGetAPIRequest.go b/model/bus/TaobaoBusTvmqueryorderGetAPIRequest.go new file mode 100644 index 0000000000..fa3cd8f172 --- /dev/null +++ b/model/bus/TaobaoBusTvmqueryorderGetAPIRequest.go @@ -0,0 +1,52 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线下自助机查询订单信息 API请求 +taobao.bus.tvmqueryorder.get + +查询订单详情 +*/ +type TaobaoBusTvmqueryorderGetAPIRequest struct { + model.Params + // 阿里订单标编号 + _alitripOrderId string +} + +// 初始化TaobaoBusTvmqueryorderGetAPIRequest对象 +func NewTaobaoBusTvmqueryorderGetRequest() *TaobaoBusTvmqueryorderGetAPIRequest{ + return &TaobaoBusTvmqueryorderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusTvmqueryorderGetAPIRequest) GetApiMethodName() string { + return "taobao.bus.tvmqueryorder.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusTvmqueryorderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlitripOrderId Setter +// 阿里订单标编号 +func (r *TaobaoBusTvmqueryorderGetAPIRequest) SetAlitripOrderId(_alitripOrderId string) error { + r._alitripOrderId = _alitripOrderId + r.Set("alitrip_order_id", _alitripOrderId) + return nil +} + +// AlitripOrderId Getter +func (r TaobaoBusTvmqueryorderGetAPIRequest) GetAlitripOrderId() string { + return r._alitripOrderId +} diff --git a/model/bus/TaobaoBusTvmqueryorderGetAPIResponse.go b/model/bus/TaobaoBusTvmqueryorderGetAPIResponse.go new file mode 100644 index 0000000000..0c0b192b79 --- /dev/null +++ b/model/bus/TaobaoBusTvmqueryorderGetAPIResponse.go @@ -0,0 +1,33 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线下自助机查询订单信息 API返回值 +taobao.bus.tvmqueryorder.get + +查询订单详情 +*/ +type TaobaoBusTvmqueryorderGetAPIResponse struct { + model.CommonResponse + TaobaoBusTvmqueryorderGetAPIResponseModel +} + +// 线下自助机查询订单信息 成功返回结果 +type TaobaoBusTvmqueryorderGetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_tvmqueryorder_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // errorCode + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // errorMsg + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // tvmBusOrderLineInfo + TvmBusOrderLineInfo *TvmBusOrderLineInfo `json:"tvm_bus_order_line_info,omitempty" xml:"tvm_bus_order_line_info,omitempty"` +} diff --git a/model/bus/TaobaoBusTvmqueryorderGetResponse.go b/model/bus/TaobaoBusTvmqueryorderGetResponse.go deleted file mode 100644 index 47b6102f06..0000000000 --- a/model/bus/TaobaoBusTvmqueryorderGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线下自助机查询订单信息 API返回值 -taobao.bus.tvmqueryorder.get - -查询订单详情 -*/ -type TaobaoBusTvmqueryorderGetAPIResponse struct { - model.CommonResponse - TaobaoBusTvmqueryorderGetResponse -} - -// 线下自助机查询订单信息 成功返回结果 -type TaobaoBusTvmqueryorderGetResponse struct { - XMLName xml.Name `xml:"bus_tvmqueryorder_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // errorCode - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // errorMsg - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // tvmBusOrderLineInfo - TvmBusOrderLineInfo *TvmBusOrderLineInfo `json:"tvm_bus_order_line_info,omitempty" xml:"tvm_bus_order_line_info,omitempty"` -} diff --git a/model/bus/TaobaoBusTvmrefundorderSetAPIRequest.go b/model/bus/TaobaoBusTvmrefundorderSetAPIRequest.go new file mode 100644 index 0000000000..426e8ee2d0 --- /dev/null +++ b/model/bus/TaobaoBusTvmrefundorderSetAPIRequest.go @@ -0,0 +1,122 @@ +package bus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线下自助机逆向退款接口 API请求 +taobao.bus.tvmrefundorder.set + +汽车票线下自助机 逆向退票接口;用于已出票完成后,再发起退款(注意这是售后退款,如出票异常但是告诉我们出票成功,后续给客户退款,需要调用这个接口,一般开放给财务。出票过程中的失败,请直接调用出票接口并且传递false标志,我们会自动退款。) +*/ +type TaobaoBusTvmrefundorderSetAPIRequest struct { + model.Params + // 飞猪订单号 + _alitripOrderId string + // 分账退款明细 + _refundAccountInDetails []RefundAccountInDetail + // 退款金额(单位分) 票金额 + _refundAmount int64 + // 退款原因 + _refundReason string + // 批次号必须唯一,同一批次号只能退款一次 (多账号分润的该值 填写refundAccountInDetails中批次号的任意一个即可 + _refundBatchNo string + // 保险退款详情 + _insuranceRefundDetails []InsuranceRefundDetail +} + +// 初始化TaobaoBusTvmrefundorderSetAPIRequest对象 +func NewTaobaoBusTvmrefundorderSetRequest() *TaobaoBusTvmrefundorderSetAPIRequest{ + return &TaobaoBusTvmrefundorderSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBusTvmrefundorderSetAPIRequest) GetApiMethodName() string { + return "taobao.bus.tvmrefundorder.set" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBusTvmrefundorderSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlitripOrderId Setter +// 飞猪订单号 +func (r *TaobaoBusTvmrefundorderSetAPIRequest) SetAlitripOrderId(_alitripOrderId string) error { + r._alitripOrderId = _alitripOrderId + r.Set("alitrip_order_id", _alitripOrderId) + return nil +} + +// AlitripOrderId Getter +func (r TaobaoBusTvmrefundorderSetAPIRequest) GetAlitripOrderId() string { + return r._alitripOrderId +} +// RefundAccountInDetails Setter +// 分账退款明细 +func (r *TaobaoBusTvmrefundorderSetAPIRequest) SetRefundAccountInDetails(_refundAccountInDetails []RefundAccountInDetail) error { + r._refundAccountInDetails = _refundAccountInDetails + r.Set("refund_account_in_details", _refundAccountInDetails) + return nil +} + +// RefundAccountInDetails Getter +func (r TaobaoBusTvmrefundorderSetAPIRequest) GetRefundAccountInDetails() []RefundAccountInDetail { + return r._refundAccountInDetails +} +// RefundAmount Setter +// 退款金额(单位分) 票金额 +func (r *TaobaoBusTvmrefundorderSetAPIRequest) SetRefundAmount(_refundAmount int64) error { + r._refundAmount = _refundAmount + r.Set("refund_amount", _refundAmount) + return nil +} + +// RefundAmount Getter +func (r TaobaoBusTvmrefundorderSetAPIRequest) GetRefundAmount() int64 { + return r._refundAmount +} +// RefundReason Setter +// 退款原因 +func (r *TaobaoBusTvmrefundorderSetAPIRequest) SetRefundReason(_refundReason string) error { + r._refundReason = _refundReason + r.Set("refund_reason", _refundReason) + return nil +} + +// RefundReason Getter +func (r TaobaoBusTvmrefundorderSetAPIRequest) GetRefundReason() string { + return r._refundReason +} +// RefundBatchNo Setter +// 批次号必须唯一,同一批次号只能退款一次 (多账号分润的该值 填写refundAccountInDetails中批次号的任意一个即可 +func (r *TaobaoBusTvmrefundorderSetAPIRequest) SetRefundBatchNo(_refundBatchNo string) error { + r._refundBatchNo = _refundBatchNo + r.Set("refund_batch_no", _refundBatchNo) + return nil +} + +// RefundBatchNo Getter +func (r TaobaoBusTvmrefundorderSetAPIRequest) GetRefundBatchNo() string { + return r._refundBatchNo +} +// InsuranceRefundDetails Setter +// 保险退款详情 +func (r *TaobaoBusTvmrefundorderSetAPIRequest) SetInsuranceRefundDetails(_insuranceRefundDetails []InsuranceRefundDetail) error { + r._insuranceRefundDetails = _insuranceRefundDetails + r.Set("insurance_refund_details", _insuranceRefundDetails) + return nil +} + +// InsuranceRefundDetails Getter +func (r TaobaoBusTvmrefundorderSetAPIRequest) GetInsuranceRefundDetails() []InsuranceRefundDetail { + return r._insuranceRefundDetails +} diff --git a/model/bus/TaobaoBusTvmrefundorderSetAPIResponse.go b/model/bus/TaobaoBusTvmrefundorderSetAPIResponse.go new file mode 100644 index 0000000000..3d352a380b --- /dev/null +++ b/model/bus/TaobaoBusTvmrefundorderSetAPIResponse.go @@ -0,0 +1,31 @@ +package bus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线下自助机逆向退款接口 API返回值 +taobao.bus.tvmrefundorder.set + +汽车票线下自助机 逆向退票接口;用于已出票完成后,再发起退款(注意这是售后退款,如出票异常但是告诉我们出票成功,后续给客户退款,需要调用这个接口,一般开放给财务。出票过程中的失败,请直接调用出票接口并且传递false标志,我们会自动退款。) +*/ +type TaobaoBusTvmrefundorderSetAPIResponse struct { + model.CommonResponse + TaobaoBusTvmrefundorderSetAPIResponseModel +} + +// 线下自助机逆向退款接口 成功返回结果 +type TaobaoBusTvmrefundorderSetAPIResponseModel struct { + XMLName xml.Name `xml:"bus_tvmrefundorder_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // errorCode 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // errorMsg 错误信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // success true 成功 false 失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/bus/TaobaoBusTvmrefundorderSetResponse.go b/model/bus/TaobaoBusTvmrefundorderSetResponse.go deleted file mode 100644 index 820147f912..0000000000 --- a/model/bus/TaobaoBusTvmrefundorderSetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package bus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线下自助机逆向退款接口 API返回值 -taobao.bus.tvmrefundorder.set - -汽车票线下自助机 逆向退票接口;用于已出票完成后,再发起退款(注意这是售后退款,如出票异常但是告诉我们出票成功,后续给客户退款,需要调用这个接口,一般开放给财务。出票过程中的失败,请直接调用出票接口并且传递false标志,我们会自动退款。) -*/ -type TaobaoBusTvmrefundorderSetAPIResponse struct { - model.CommonResponse - TaobaoBusTvmrefundorderSetResponse -} - -// 线下自助机逆向退款接口 成功返回结果 -type TaobaoBusTvmrefundorderSetResponse struct { - XMLName xml.Name `xml:"bus_tvmrefundorder_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // errorCode 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // errorMsg 错误信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // success true 成功 false 失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/c2m/TaobaoSebpCompanyGetorderinfoAPIRequest.go b/model/c2m/TaobaoSebpCompanyGetorderinfoAPIRequest.go new file mode 100644 index 0000000000..b496e8c53c --- /dev/null +++ b/model/c2m/TaobaoSebpCompanyGetorderinfoAPIRequest.go @@ -0,0 +1,66 @@ +package c2m + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘小铺公司订单信息 API请求 +taobao.sebp.company.getorderinfo + +淘小铺合作公司获取公司订单信息,用于公司结算使用 +*/ +type TaobaoSebpCompanyGetorderinfoAPIRequest struct { + model.Params + // null-请求所有,20200616-请求2020年6月16号的变更信息 + _modifyDate string + // 第几页 + _pageNum int64 +} + +// 初始化TaobaoSebpCompanyGetorderinfoAPIRequest对象 +func NewTaobaoSebpCompanyGetorderinfoRequest() *TaobaoSebpCompanyGetorderinfoAPIRequest{ + return &TaobaoSebpCompanyGetorderinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSebpCompanyGetorderinfoAPIRequest) GetApiMethodName() string { + return "taobao.sebp.company.getorderinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSebpCompanyGetorderinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ModifyDate Setter +// null-请求所有,20200616-请求2020年6月16号的变更信息 +func (r *TaobaoSebpCompanyGetorderinfoAPIRequest) SetModifyDate(_modifyDate string) error { + r._modifyDate = _modifyDate + r.Set("modify_date", _modifyDate) + return nil +} + +// ModifyDate Getter +func (r TaobaoSebpCompanyGetorderinfoAPIRequest) GetModifyDate() string { + return r._modifyDate +} +// PageNum Setter +// 第几页 +func (r *TaobaoSebpCompanyGetorderinfoAPIRequest) SetPageNum(_pageNum int64) error { + r._pageNum = _pageNum + r.Set("page_num", _pageNum) + return nil +} + +// PageNum Getter +func (r TaobaoSebpCompanyGetorderinfoAPIRequest) GetPageNum() int64 { + return r._pageNum +} diff --git a/model/c2m/TaobaoSebpCompanyGetorderinfoAPIResponse.go b/model/c2m/TaobaoSebpCompanyGetorderinfoAPIResponse.go new file mode 100644 index 0000000000..c596c7a425 --- /dev/null +++ b/model/c2m/TaobaoSebpCompanyGetorderinfoAPIResponse.go @@ -0,0 +1,27 @@ +package c2m + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘小铺公司订单信息 API返回值 +taobao.sebp.company.getorderinfo + +淘小铺合作公司获取公司订单信息,用于公司结算使用 +*/ +type TaobaoSebpCompanyGetorderinfoAPIResponse struct { + model.CommonResponse + TaobaoSebpCompanyGetorderinfoAPIResponseModel +} + +// 淘小铺公司订单信息 成功返回结果 +type TaobaoSebpCompanyGetorderinfoAPIResponseModel struct { + XMLName xml.Name `xml:"sebp_company_getorderinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoSebpCompanyGetorderinfoResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/c2m/TaobaoSebpCompanyGetorderinfoResponse.go b/model/c2m/TaobaoSebpCompanyGetorderinfoResponse.go deleted file mode 100644 index a4482f291f..0000000000 --- a/model/c2m/TaobaoSebpCompanyGetorderinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package c2m - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘小铺公司订单信息 API返回值 -taobao.sebp.company.getorderinfo - -淘小铺合作公司获取公司订单信息,用于公司结算使用 -*/ -type TaobaoSebpCompanyGetorderinfoAPIResponse struct { - model.CommonResponse - TaobaoSebpCompanyGetorderinfoResponse -} - -// 淘小铺公司订单信息 成功返回结果 -type TaobaoSebpCompanyGetorderinfoResponse struct { - XMLName xml.Name `xml:"sebp_company_getorderinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoSebpCompanyGetorderinfoResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/c2m/TaobaoSebpCompanyGetorderinfoResultDo.go b/model/c2m/TaobaoSebpCompanyGetorderinfoResultDo.go new file mode 100644 index 0000000000..f19753e69b --- /dev/null +++ b/model/c2m/TaobaoSebpCompanyGetorderinfoResultDo.go @@ -0,0 +1,13 @@ +package c2m + +// TaobaoSebpCompanyGetorderinfoResultDo +type TaobaoSebpCompanyGetorderinfoResultDo struct { + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 结果信息 + Module *PageInfo `json:"module,omitempty" xml:"module,omitempty"` + // 错误信息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/c2m/TaobaoSebpIsvUserCheckAPIRequest.go b/model/c2m/TaobaoSebpIsvUserCheckAPIRequest.go new file mode 100644 index 0000000000..9ab8a051fb --- /dev/null +++ b/model/c2m/TaobaoSebpIsvUserCheckAPIRequest.go @@ -0,0 +1,94 @@ +package c2m + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘小铺账户实名校验接口 API请求 +taobao.sebp.isv.user.check + +校验淘小铺账户和身份信息匹配成功 +*/ +type TaobaoSebpIsvUserCheckAPIRequest struct { + model.Params + // 淘宝账号 + _userName string + // 姓名 + _name string + // 证件号 + _identity string + // 支付宝账号 + _alipay string +} + +// 初始化TaobaoSebpIsvUserCheckAPIRequest对象 +func NewTaobaoSebpIsvUserCheckRequest() *TaobaoSebpIsvUserCheckAPIRequest{ + return &TaobaoSebpIsvUserCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSebpIsvUserCheckAPIRequest) GetApiMethodName() string { + return "taobao.sebp.isv.user.check" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSebpIsvUserCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserName Setter +// 淘宝账号 +func (r *TaobaoSebpIsvUserCheckAPIRequest) SetUserName(_userName string) error { + r._userName = _userName + r.Set("user_name", _userName) + return nil +} + +// UserName Getter +func (r TaobaoSebpIsvUserCheckAPIRequest) GetUserName() string { + return r._userName +} +// Name Setter +// 姓名 +func (r *TaobaoSebpIsvUserCheckAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoSebpIsvUserCheckAPIRequest) GetName() string { + return r._name +} +// Identity Setter +// 证件号 +func (r *TaobaoSebpIsvUserCheckAPIRequest) SetIdentity(_identity string) error { + r._identity = _identity + r.Set("identity", _identity) + return nil +} + +// Identity Getter +func (r TaobaoSebpIsvUserCheckAPIRequest) GetIdentity() string { + return r._identity +} +// Alipay Setter +// 支付宝账号 +func (r *TaobaoSebpIsvUserCheckAPIRequest) SetAlipay(_alipay string) error { + r._alipay = _alipay + r.Set("alipay", _alipay) + return nil +} + +// Alipay Getter +func (r TaobaoSebpIsvUserCheckAPIRequest) GetAlipay() string { + return r._alipay +} diff --git a/model/c2m/TaobaoSebpIsvUserCheckAPIResponse.go b/model/c2m/TaobaoSebpIsvUserCheckAPIResponse.go new file mode 100644 index 0000000000..52229bd6d3 --- /dev/null +++ b/model/c2m/TaobaoSebpIsvUserCheckAPIResponse.go @@ -0,0 +1,27 @@ +package c2m + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘小铺账户实名校验接口 API返回值 +taobao.sebp.isv.user.check + +校验淘小铺账户和身份信息匹配成功 +*/ +type TaobaoSebpIsvUserCheckAPIResponse struct { + model.CommonResponse + TaobaoSebpIsvUserCheckAPIResponseModel +} + +// 淘小铺账户实名校验接口 成功返回结果 +type TaobaoSebpIsvUserCheckAPIResponseModel struct { + XMLName xml.Name `xml:"sebp_isv_user_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/c2m/TaobaoSebpIsvUserCheckResponse.go b/model/c2m/TaobaoSebpIsvUserCheckResponse.go deleted file mode 100644 index 4f40d56e7c..0000000000 --- a/model/c2m/TaobaoSebpIsvUserCheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package c2m - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘小铺账户实名校验接口 API返回值 -taobao.sebp.isv.user.check - -校验淘小铺账户和身份信息匹配成功 -*/ -type TaobaoSebpIsvUserCheckAPIResponse struct { - model.CommonResponse - TaobaoSebpIsvUserCheckResponse -} - -// 淘小铺账户实名校验接口 成功返回结果 -type TaobaoSebpIsvUserCheckResponse struct { - XMLName xml.Name `xml:"sebp_isv_user_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Success bool `json:"success,omitempty" xml:"success,omitempty"` -} diff --git a/model/c2m/TaobaoSebpIsvUserSignAPIRequest.go b/model/c2m/TaobaoSebpIsvUserSignAPIRequest.go new file mode 100644 index 0000000000..aa29923c11 --- /dev/null +++ b/model/c2m/TaobaoSebpIsvUserSignAPIRequest.go @@ -0,0 +1,94 @@ +package c2m + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘小铺三方签约同步 API请求 +taobao.sebp.isv.user.sign + +同步淘小铺三方服务签约信息 +*/ +type TaobaoSebpIsvUserSignAPIRequest struct { + model.Params + // 淘宝账号 + _userName string + // 身份证 + _identity string + // 到期日期 + _endTime string + // 签约日期 + _startTime string +} + +// 初始化TaobaoSebpIsvUserSignAPIRequest对象 +func NewTaobaoSebpIsvUserSignRequest() *TaobaoSebpIsvUserSignAPIRequest{ + return &TaobaoSebpIsvUserSignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSebpIsvUserSignAPIRequest) GetApiMethodName() string { + return "taobao.sebp.isv.user.sign" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSebpIsvUserSignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserName Setter +// 淘宝账号 +func (r *TaobaoSebpIsvUserSignAPIRequest) SetUserName(_userName string) error { + r._userName = _userName + r.Set("user_name", _userName) + return nil +} + +// UserName Getter +func (r TaobaoSebpIsvUserSignAPIRequest) GetUserName() string { + return r._userName +} +// Identity Setter +// 身份证 +func (r *TaobaoSebpIsvUserSignAPIRequest) SetIdentity(_identity string) error { + r._identity = _identity + r.Set("identity", _identity) + return nil +} + +// Identity Getter +func (r TaobaoSebpIsvUserSignAPIRequest) GetIdentity() string { + return r._identity +} +// EndTime Setter +// 到期日期 +func (r *TaobaoSebpIsvUserSignAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSebpIsvUserSignAPIRequest) GetEndTime() string { + return r._endTime +} +// StartTime Setter +// 签约日期 +func (r *TaobaoSebpIsvUserSignAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSebpIsvUserSignAPIRequest) GetStartTime() string { + return r._startTime +} diff --git a/model/c2m/TaobaoSebpIsvUserSignAPIResponse.go b/model/c2m/TaobaoSebpIsvUserSignAPIResponse.go new file mode 100644 index 0000000000..14ef51feba --- /dev/null +++ b/model/c2m/TaobaoSebpIsvUserSignAPIResponse.go @@ -0,0 +1,27 @@ +package c2m + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘小铺三方签约同步 API返回值 +taobao.sebp.isv.user.sign + +同步淘小铺三方服务签约信息 +*/ +type TaobaoSebpIsvUserSignAPIResponse struct { + model.CommonResponse + TaobaoSebpIsvUserSignAPIResponseModel +} + +// 淘小铺三方签约同步 成功返回结果 +type TaobaoSebpIsvUserSignAPIResponseModel struct { + XMLName xml.Name `xml:"sebp_isv_user_sign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/c2m/TaobaoSebpIsvUserSignResponse.go b/model/c2m/TaobaoSebpIsvUserSignResponse.go deleted file mode 100644 index 724854d2f6..0000000000 --- a/model/c2m/TaobaoSebpIsvUserSignResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package c2m - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘小铺三方签约同步 API返回值 -taobao.sebp.isv.user.sign - -同步淘小铺三方服务签约信息 -*/ -type TaobaoSebpIsvUserSignAPIResponse struct { - model.CommonResponse - TaobaoSebpIsvUserSignResponse -} - -// 淘小铺三方签约同步 成功返回结果 -type TaobaoSebpIsvUserSignResponse struct { - XMLName xml.Name `xml:"sebp_isv_user_sign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Success bool `json:"success,omitempty" xml:"success,omitempty"` -} diff --git a/model/c2m/TaobaoSebpIsvWxrobotCallbackAPIRequest.go b/model/c2m/TaobaoSebpIsvWxrobotCallbackAPIRequest.go new file mode 100644 index 0000000000..321c82b61d --- /dev/null +++ b/model/c2m/TaobaoSebpIsvWxrobotCallbackAPIRequest.go @@ -0,0 +1,80 @@ +package c2m + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +isv机器人回调接口 API请求 +taobao.sebp.isv.wxrobot.callback + +机器人入群回调,进行校验、功能开通等操作 +*/ +type TaobaoSebpIsvWxrobotCallbackAPIRequest struct { + model.Params + // 操作类型 + _nType string + // 调用签名 + _strSign string + // 参数 + _strContext string +} + +// 初始化TaobaoSebpIsvWxrobotCallbackAPIRequest对象 +func NewTaobaoSebpIsvWxrobotCallbackRequest() *TaobaoSebpIsvWxrobotCallbackAPIRequest{ + return &TaobaoSebpIsvWxrobotCallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSebpIsvWxrobotCallbackAPIRequest) GetApiMethodName() string { + return "taobao.sebp.isv.wxrobot.callback" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSebpIsvWxrobotCallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NType Setter +// 操作类型 +func (r *TaobaoSebpIsvWxrobotCallbackAPIRequest) SetNType(_nType string) error { + r._nType = _nType + r.Set("n_type", _nType) + return nil +} + +// NType Getter +func (r TaobaoSebpIsvWxrobotCallbackAPIRequest) GetNType() string { + return r._nType +} +// StrSign Setter +// 调用签名 +func (r *TaobaoSebpIsvWxrobotCallbackAPIRequest) SetStrSign(_strSign string) error { + r._strSign = _strSign + r.Set("str_sign", _strSign) + return nil +} + +// StrSign Getter +func (r TaobaoSebpIsvWxrobotCallbackAPIRequest) GetStrSign() string { + return r._strSign +} +// StrContext Setter +// 参数 +func (r *TaobaoSebpIsvWxrobotCallbackAPIRequest) SetStrContext(_strContext string) error { + r._strContext = _strContext + r.Set("str_context", _strContext) + return nil +} + +// StrContext Getter +func (r TaobaoSebpIsvWxrobotCallbackAPIRequest) GetStrContext() string { + return r._strContext +} diff --git a/model/c2m/TaobaoSebpIsvWxrobotCallbackAPIResponse.go b/model/c2m/TaobaoSebpIsvWxrobotCallbackAPIResponse.go new file mode 100644 index 0000000000..0cd825d1b0 --- /dev/null +++ b/model/c2m/TaobaoSebpIsvWxrobotCallbackAPIResponse.go @@ -0,0 +1,27 @@ +package c2m + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +isv机器人回调接口 API返回值 +taobao.sebp.isv.wxrobot.callback + +机器人入群回调,进行校验、功能开通等操作 +*/ +type TaobaoSebpIsvWxrobotCallbackAPIResponse struct { + model.CommonResponse + TaobaoSebpIsvWxrobotCallbackAPIResponseModel +} + +// isv机器人回调接口 成功返回结果 +type TaobaoSebpIsvWxrobotCallbackAPIResponseModel struct { + XMLName xml.Name `xml:"sebp_isv_wxrobot_callback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/c2m/TaobaoSebpIsvWxrobotCallbackResponse.go b/model/c2m/TaobaoSebpIsvWxrobotCallbackResponse.go deleted file mode 100644 index 8726d703ff..0000000000 --- a/model/c2m/TaobaoSebpIsvWxrobotCallbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package c2m - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -isv机器人回调接口 API返回值 -taobao.sebp.isv.wxrobot.callback - -机器人入群回调,进行校验、功能开通等操作 -*/ -type TaobaoSebpIsvWxrobotCallbackAPIResponse struct { - model.CommonResponse - TaobaoSebpIsvWxrobotCallbackResponse -} - -// isv机器人回调接口 成功返回结果 -type TaobaoSebpIsvWxrobotCallbackResponse struct { - XMLName xml.Name `xml:"sebp_isv_wxrobot_callback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/c2m/TaobaoSebpOrganizationGetinviteinfoAPIRequest.go b/model/c2m/TaobaoSebpOrganizationGetinviteinfoAPIRequest.go new file mode 100644 index 0000000000..c54b44d31e --- /dev/null +++ b/model/c2m/TaobaoSebpOrganizationGetinviteinfoAPIRequest.go @@ -0,0 +1,66 @@ +package c2m + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘小铺机构上下级关系 API请求 +taobao.sebp.organization.getinviteinfo + +机构人员获取机构上下级关系信息 +*/ +type TaobaoSebpOrganizationGetinviteinfoAPIRequest struct { + model.Params + // null-请求所有,20200616-请求2020年6月16号的变更信息 + _modifyDate string + // 第几页 + _pageNum int64 +} + +// 初始化TaobaoSebpOrganizationGetinviteinfoAPIRequest对象 +func NewTaobaoSebpOrganizationGetinviteinfoRequest() *TaobaoSebpOrganizationGetinviteinfoAPIRequest{ + return &TaobaoSebpOrganizationGetinviteinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSebpOrganizationGetinviteinfoAPIRequest) GetApiMethodName() string { + return "taobao.sebp.organization.getinviteinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSebpOrganizationGetinviteinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ModifyDate Setter +// null-请求所有,20200616-请求2020年6月16号的变更信息 +func (r *TaobaoSebpOrganizationGetinviteinfoAPIRequest) SetModifyDate(_modifyDate string) error { + r._modifyDate = _modifyDate + r.Set("modify_date", _modifyDate) + return nil +} + +// ModifyDate Getter +func (r TaobaoSebpOrganizationGetinviteinfoAPIRequest) GetModifyDate() string { + return r._modifyDate +} +// PageNum Setter +// 第几页 +func (r *TaobaoSebpOrganizationGetinviteinfoAPIRequest) SetPageNum(_pageNum int64) error { + r._pageNum = _pageNum + r.Set("page_num", _pageNum) + return nil +} + +// PageNum Getter +func (r TaobaoSebpOrganizationGetinviteinfoAPIRequest) GetPageNum() int64 { + return r._pageNum +} diff --git a/model/c2m/TaobaoSebpOrganizationGetinviteinfoAPIResponse.go b/model/c2m/TaobaoSebpOrganizationGetinviteinfoAPIResponse.go new file mode 100644 index 0000000000..c9738dc1ff --- /dev/null +++ b/model/c2m/TaobaoSebpOrganizationGetinviteinfoAPIResponse.go @@ -0,0 +1,27 @@ +package c2m + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘小铺机构上下级关系 API返回值 +taobao.sebp.organization.getinviteinfo + +机构人员获取机构上下级关系信息 +*/ +type TaobaoSebpOrganizationGetinviteinfoAPIResponse struct { + model.CommonResponse + TaobaoSebpOrganizationGetinviteinfoAPIResponseModel +} + +// 淘小铺机构上下级关系 成功返回结果 +type TaobaoSebpOrganizationGetinviteinfoAPIResponseModel struct { + XMLName xml.Name `xml:"sebp_organization_getinviteinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoSebpOrganizationGetinviteinfoResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/c2m/TaobaoSebpOrganizationGetinviteinfoResponse.go b/model/c2m/TaobaoSebpOrganizationGetinviteinfoResponse.go deleted file mode 100644 index cf1ec25b22..0000000000 --- a/model/c2m/TaobaoSebpOrganizationGetinviteinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package c2m - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘小铺机构上下级关系 API返回值 -taobao.sebp.organization.getinviteinfo - -机构人员获取机构上下级关系信息 -*/ -type TaobaoSebpOrganizationGetinviteinfoAPIResponse struct { - model.CommonResponse - TaobaoSebpOrganizationGetinviteinfoResponse -} - -// 淘小铺机构上下级关系 成功返回结果 -type TaobaoSebpOrganizationGetinviteinfoResponse struct { - XMLName xml.Name `xml:"sebp_organization_getinviteinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoSebpOrganizationGetinviteinfoResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/c2m/TaobaoSebpOrganizationGetinviteinfoResultDo.go b/model/c2m/TaobaoSebpOrganizationGetinviteinfoResultDo.go new file mode 100644 index 0000000000..04d889289d --- /dev/null +++ b/model/c2m/TaobaoSebpOrganizationGetinviteinfoResultDo.go @@ -0,0 +1,13 @@ +package c2m + +// TaobaoSebpOrganizationGetinviteinfoResultDo +type TaobaoSebpOrganizationGetinviteinfoResultDo struct { + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 结果信息 + Module *PageInfo `json:"module,omitempty" xml:"module,omitempty"` + // 错误信息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/c2m/TaobaoSebpOrganizationGetorderinfoAPIRequest.go b/model/c2m/TaobaoSebpOrganizationGetorderinfoAPIRequest.go new file mode 100644 index 0000000000..07a735b179 --- /dev/null +++ b/model/c2m/TaobaoSebpOrganizationGetorderinfoAPIRequest.go @@ -0,0 +1,94 @@ +package c2m + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘小铺机构订单信息 API请求 +taobao.sebp.organization.getorderinfo + +淘小铺合作机构获取机构订单信息,用于机构结算使用 +*/ +type TaobaoSebpOrganizationGetorderinfoAPIRequest struct { + model.Params + // null-请求所有,20200616-请求2020年6月16号的变更信息 + _modifyDate string + // 第几页 + _pageNum int64 + // 查询实时数据时,必传,开始时间结束时间间隔不能超过4个小时 + _endTime string + // 查询实时数据时,必传,开始时间不能早于2天前 + _startTime string +} + +// 初始化TaobaoSebpOrganizationGetorderinfoAPIRequest对象 +func NewTaobaoSebpOrganizationGetorderinfoRequest() *TaobaoSebpOrganizationGetorderinfoAPIRequest{ + return &TaobaoSebpOrganizationGetorderinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSebpOrganizationGetorderinfoAPIRequest) GetApiMethodName() string { + return "taobao.sebp.organization.getorderinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSebpOrganizationGetorderinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ModifyDate Setter +// null-请求所有,20200616-请求2020年6月16号的变更信息 +func (r *TaobaoSebpOrganizationGetorderinfoAPIRequest) SetModifyDate(_modifyDate string) error { + r._modifyDate = _modifyDate + r.Set("modify_date", _modifyDate) + return nil +} + +// ModifyDate Getter +func (r TaobaoSebpOrganizationGetorderinfoAPIRequest) GetModifyDate() string { + return r._modifyDate +} +// PageNum Setter +// 第几页 +func (r *TaobaoSebpOrganizationGetorderinfoAPIRequest) SetPageNum(_pageNum int64) error { + r._pageNum = _pageNum + r.Set("page_num", _pageNum) + return nil +} + +// PageNum Getter +func (r TaobaoSebpOrganizationGetorderinfoAPIRequest) GetPageNum() int64 { + return r._pageNum +} +// EndTime Setter +// 查询实时数据时,必传,开始时间结束时间间隔不能超过4个小时 +func (r *TaobaoSebpOrganizationGetorderinfoAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSebpOrganizationGetorderinfoAPIRequest) GetEndTime() string { + return r._endTime +} +// StartTime Setter +// 查询实时数据时,必传,开始时间不能早于2天前 +func (r *TaobaoSebpOrganizationGetorderinfoAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSebpOrganizationGetorderinfoAPIRequest) GetStartTime() string { + return r._startTime +} diff --git a/model/c2m/TaobaoSebpOrganizationGetorderinfoAPIResponse.go b/model/c2m/TaobaoSebpOrganizationGetorderinfoAPIResponse.go new file mode 100644 index 0000000000..cd6561e6a8 --- /dev/null +++ b/model/c2m/TaobaoSebpOrganizationGetorderinfoAPIResponse.go @@ -0,0 +1,27 @@ +package c2m + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘小铺机构订单信息 API返回值 +taobao.sebp.organization.getorderinfo + +淘小铺合作机构获取机构订单信息,用于机构结算使用 +*/ +type TaobaoSebpOrganizationGetorderinfoAPIResponse struct { + model.CommonResponse + TaobaoSebpOrganizationGetorderinfoAPIResponseModel +} + +// 淘小铺机构订单信息 成功返回结果 +type TaobaoSebpOrganizationGetorderinfoAPIResponseModel struct { + XMLName xml.Name `xml:"sebp_organization_getorderinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoSebpOrganizationGetorderinfoResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/c2m/TaobaoSebpOrganizationGetorderinfoResponse.go b/model/c2m/TaobaoSebpOrganizationGetorderinfoResponse.go deleted file mode 100644 index 0d8b3eac0b..0000000000 --- a/model/c2m/TaobaoSebpOrganizationGetorderinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package c2m - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘小铺机构订单信息 API返回值 -taobao.sebp.organization.getorderinfo - -淘小铺合作机构获取机构订单信息,用于机构结算使用 -*/ -type TaobaoSebpOrganizationGetorderinfoAPIResponse struct { - model.CommonResponse - TaobaoSebpOrganizationGetorderinfoResponse -} - -// 淘小铺机构订单信息 成功返回结果 -type TaobaoSebpOrganizationGetorderinfoResponse struct { - XMLName xml.Name `xml:"sebp_organization_getorderinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoSebpOrganizationGetorderinfoResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/c2m/TaobaoSebpOrganizationGetorderinfoResultDo.go b/model/c2m/TaobaoSebpOrganizationGetorderinfoResultDo.go new file mode 100644 index 0000000000..a7ee155161 --- /dev/null +++ b/model/c2m/TaobaoSebpOrganizationGetorderinfoResultDo.go @@ -0,0 +1,13 @@ +package c2m + +// TaobaoSebpOrganizationGetorderinfoResultDo +type TaobaoSebpOrganizationGetorderinfoResultDo struct { + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 结果信息 + Module *PageInfo `json:"module,omitempty" xml:"module,omitempty"` + // 错误信息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/c2m/TaobaoTxpItemItemlistgetAPIRequest.go b/model/c2m/TaobaoTxpItemItemlistgetAPIRequest.go new file mode 100644 index 0000000000..29a42f2cc7 --- /dev/null +++ b/model/c2m/TaobaoTxpItemItemlistgetAPIRequest.go @@ -0,0 +1,66 @@ +package c2m + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘小铺商品接口 API请求 +taobao.txp.item.itemlistget + +淘小铺商品的查询服务。 +*/ +type TaobaoTxpItemItemlistgetAPIRequest struct { + model.Params + // 第几页 + _beginPage int64 + // 每页多少条 + _pageSize int64 +} + +// 初始化TaobaoTxpItemItemlistgetAPIRequest对象 +func NewTaobaoTxpItemItemlistgetRequest() *TaobaoTxpItemItemlistgetAPIRequest{ + return &TaobaoTxpItemItemlistgetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTxpItemItemlistgetAPIRequest) GetApiMethodName() string { + return "taobao.txp.item.itemlistget" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTxpItemItemlistgetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BeginPage Setter +// 第几页 +func (r *TaobaoTxpItemItemlistgetAPIRequest) SetBeginPage(_beginPage int64) error { + r._beginPage = _beginPage + r.Set("begin_page", _beginPage) + return nil +} + +// BeginPage Getter +func (r TaobaoTxpItemItemlistgetAPIRequest) GetBeginPage() int64 { + return r._beginPage +} +// PageSize Setter +// 每页多少条 +func (r *TaobaoTxpItemItemlistgetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTxpItemItemlistgetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/c2m/TaobaoTxpItemItemlistgetAPIResponse.go b/model/c2m/TaobaoTxpItemItemlistgetAPIResponse.go new file mode 100644 index 0000000000..08b8bf2f76 --- /dev/null +++ b/model/c2m/TaobaoTxpItemItemlistgetAPIResponse.go @@ -0,0 +1,27 @@ +package c2m + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘小铺商品接口 API返回值 +taobao.txp.item.itemlistget + +淘小铺商品的查询服务。 +*/ +type TaobaoTxpItemItemlistgetAPIResponse struct { + model.CommonResponse + TaobaoTxpItemItemlistgetAPIResponseModel +} + +// 淘小铺商品接口 成功返回结果 +type TaobaoTxpItemItemlistgetAPIResponseModel struct { + XMLName xml.Name `xml:"txp_item_itemlistget_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *TaobaoTxpItemItemlistgetResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/c2m/TaobaoTxpItemItemlistgetResponse.go b/model/c2m/TaobaoTxpItemItemlistgetResponse.go deleted file mode 100644 index 75590897e6..0000000000 --- a/model/c2m/TaobaoTxpItemItemlistgetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package c2m - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘小铺商品接口 API返回值 -taobao.txp.item.itemlistget - -淘小铺商品的查询服务。 -*/ -type TaobaoTxpItemItemlistgetAPIResponse struct { - model.CommonResponse - TaobaoTxpItemItemlistgetResponse -} - -// 淘小铺商品接口 成功返回结果 -type TaobaoTxpItemItemlistgetResponse struct { - XMLName xml.Name `xml:"txp_item_itemlistget_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *TaobaoTxpItemItemlistgetResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/c2m/TaobaoTxpItemItemlistgetResultDto.go b/model/c2m/TaobaoTxpItemItemlistgetResultDto.go new file mode 100644 index 0000000000..d2a944765d --- /dev/null +++ b/model/c2m/TaobaoTxpItemItemlistgetResultDto.go @@ -0,0 +1,13 @@ +package c2m + +// TaobaoTxpItemItemlistgetResultDto +type TaobaoTxpItemItemlistgetResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 返回的结果信息 + Model *ItemTopResponse `json:"model,omitempty" xml:"model,omitempty"` + // 执行的错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/cainiaocntec/CainiaoCntecShopkeeperSupplyStatisticsQueryAPIRequest.go b/model/cainiaocntec/CainiaoCntecShopkeeperSupplyStatisticsQueryAPIRequest.go new file mode 100644 index 0000000000..dd836cac9f --- /dev/null +++ b/model/cainiaocntec/CainiaoCntecShopkeeperSupplyStatisticsQueryAPIRequest.go @@ -0,0 +1,52 @@ +package cainiaocntec + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +团购业务供货商查询门店统计数据 API请求 +cainiao.cntec.shopkeeper.supply.statistics.query + +查询门店售卖商品统计数据 +*/ +type CainiaoCntecShopkeeperSupplyStatisticsQueryAPIRequest struct { + model.Params + // 查询参数 + _queryActivityDto *QueryActivityDto +} + +// 初始化CainiaoCntecShopkeeperSupplyStatisticsQueryAPIRequest对象 +func NewCainiaoCntecShopkeeperSupplyStatisticsQueryRequest() *CainiaoCntecShopkeeperSupplyStatisticsQueryAPIRequest{ + return &CainiaoCntecShopkeeperSupplyStatisticsQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCntecShopkeeperSupplyStatisticsQueryAPIRequest) GetApiMethodName() string { + return "cainiao.cntec.shopkeeper.supply.statistics.query" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCntecShopkeeperSupplyStatisticsQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryActivityDto Setter +// 查询参数 +func (r *CainiaoCntecShopkeeperSupplyStatisticsQueryAPIRequest) SetQueryActivityDto(_queryActivityDto *QueryActivityDto) error { + r._queryActivityDto = _queryActivityDto + r.Set("query_activity_dto", _queryActivityDto) + return nil +} + +// QueryActivityDto Getter +func (r CainiaoCntecShopkeeperSupplyStatisticsQueryAPIRequest) GetQueryActivityDto() *QueryActivityDto { + return r._queryActivityDto +} diff --git a/model/cainiaocntec/CainiaoCntecShopkeeperSupplyStatisticsQueryAPIResponse.go b/model/cainiaocntec/CainiaoCntecShopkeeperSupplyStatisticsQueryAPIResponse.go new file mode 100644 index 0000000000..3c06b149e0 --- /dev/null +++ b/model/cainiaocntec/CainiaoCntecShopkeeperSupplyStatisticsQueryAPIResponse.go @@ -0,0 +1,27 @@ +package cainiaocntec + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +团购业务供货商查询门店统计数据 API返回值 +cainiao.cntec.shopkeeper.supply.statistics.query + +查询门店售卖商品统计数据 +*/ +type CainiaoCntecShopkeeperSupplyStatisticsQueryAPIResponse struct { + model.CommonResponse + CainiaoCntecShopkeeperSupplyStatisticsQueryAPIResponseModel +} + +// 团购业务供货商查询门店统计数据 成功返回结果 +type CainiaoCntecShopkeeperSupplyStatisticsQueryAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cntec_shopkeeper_supply_statistics_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *CainiaoCntecShopkeeperSupplyStatisticsQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaocntec/CainiaoCntecShopkeeperSupplyStatisticsQueryResponse.go b/model/cainiaocntec/CainiaoCntecShopkeeperSupplyStatisticsQueryResponse.go deleted file mode 100644 index a1faabc276..0000000000 --- a/model/cainiaocntec/CainiaoCntecShopkeeperSupplyStatisticsQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cainiaocntec - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -团购业务供货商查询门店统计数据 API返回值 -cainiao.cntec.shopkeeper.supply.statistics.query - -查询门店售卖商品统计数据 -*/ -type CainiaoCntecShopkeeperSupplyStatisticsQueryAPIResponse struct { - model.CommonResponse - CainiaoCntecShopkeeperSupplyStatisticsQueryResponse -} - -// 团购业务供货商查询门店统计数据 成功返回结果 -type CainiaoCntecShopkeeperSupplyStatisticsQueryResponse struct { - XMLName xml.Name `xml:"cainiao_cntec_shopkeeper_supply_statistics_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *CainiaoCntecShopkeeperSupplyStatisticsQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaoecc/CainiaoEccExceptionsDelayCountAPIRequest.go b/model/cainiaoecc/CainiaoEccExceptionsDelayCountAPIRequest.go new file mode 100644 index 0000000000..d6aa84ff84 --- /dev/null +++ b/model/cainiaoecc/CainiaoEccExceptionsDelayCountAPIRequest.go @@ -0,0 +1,38 @@ +package cainiaoecc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟控制塔包裹滞留异常统计信息获取 API请求 +cainiao.ecc.exceptions.delay.count + +菜鸟控制塔包裹滞留异常统计信息获取 +*/ +type CainiaoEccExceptionsDelayCountAPIRequest struct { + model.Params +} + +// 初始化CainiaoEccExceptionsDelayCountAPIRequest对象 +func NewCainiaoEccExceptionsDelayCountRequest() *CainiaoEccExceptionsDelayCountAPIRequest{ + return &CainiaoEccExceptionsDelayCountAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoEccExceptionsDelayCountAPIRequest) GetApiMethodName() string { + return "cainiao.ecc.exceptions.delay.count" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoEccExceptionsDelayCountAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/cainiaoecc/CainiaoEccExceptionsDelayCountAPIResponse.go b/model/cainiaoecc/CainiaoEccExceptionsDelayCountAPIResponse.go new file mode 100644 index 0000000000..23c58209d7 --- /dev/null +++ b/model/cainiaoecc/CainiaoEccExceptionsDelayCountAPIResponse.go @@ -0,0 +1,27 @@ +package cainiaoecc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟控制塔包裹滞留异常统计信息获取 API返回值 +cainiao.ecc.exceptions.delay.count + +菜鸟控制塔包裹滞留异常统计信息获取 +*/ +type CainiaoEccExceptionsDelayCountAPIResponse struct { + model.CommonResponse + CainiaoEccExceptionsDelayCountAPIResponseModel +} + +// 菜鸟控制塔包裹滞留异常统计信息获取 成功返回结果 +type CainiaoEccExceptionsDelayCountAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_ecc_exceptions_delay_count_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaoecc/CainiaoEccExceptionsDelayCountResponse.go b/model/cainiaoecc/CainiaoEccExceptionsDelayCountResponse.go deleted file mode 100644 index 1bb81cf063..0000000000 --- a/model/cainiaoecc/CainiaoEccExceptionsDelayCountResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cainiaoecc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -菜鸟控制塔包裹滞留异常统计信息获取 API返回值 -cainiao.ecc.exceptions.delay.count - -菜鸟控制塔包裹滞留异常统计信息获取 -*/ -type CainiaoEccExceptionsDelayCountAPIResponse struct { - model.CommonResponse - CainiaoEccExceptionsDelayCountResponse -} - -// 菜鸟控制塔包裹滞留异常统计信息获取 成功返回结果 -type CainiaoEccExceptionsDelayCountResponse struct { - XMLName xml.Name `xml:"cainiao_ecc_exceptions_delay_count_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaoecc/CainiaoEccExceptionsDelayGetAPIRequest.go b/model/cainiaoecc/CainiaoEccExceptionsDelayGetAPIRequest.go new file mode 100644 index 0000000000..d5f2bf2341 --- /dev/null +++ b/model/cainiaoecc/CainiaoEccExceptionsDelayGetAPIRequest.go @@ -0,0 +1,52 @@ +package cainiaoecc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟控制塔包裹滞留异常信息获取 API请求 +cainiao.ecc.exceptions.delay.get + +菜鸟控制塔包裹滞留异常信息获取 +*/ +type CainiaoEccExceptionsDelayGetAPIRequest struct { + model.Params + // 运单号 + _mailNo string +} + +// 初始化CainiaoEccExceptionsDelayGetAPIRequest对象 +func NewCainiaoEccExceptionsDelayGetRequest() *CainiaoEccExceptionsDelayGetAPIRequest{ + return &CainiaoEccExceptionsDelayGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoEccExceptionsDelayGetAPIRequest) GetApiMethodName() string { + return "cainiao.ecc.exceptions.delay.get" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoEccExceptionsDelayGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MailNo Setter +// 运单号 +func (r *CainiaoEccExceptionsDelayGetAPIRequest) SetMailNo(_mailNo string) error { + r._mailNo = _mailNo + r.Set("mail_no", _mailNo) + return nil +} + +// MailNo Getter +func (r CainiaoEccExceptionsDelayGetAPIRequest) GetMailNo() string { + return r._mailNo +} diff --git a/model/cainiaoecc/CainiaoEccExceptionsDelayGetAPIResponse.go b/model/cainiaoecc/CainiaoEccExceptionsDelayGetAPIResponse.go new file mode 100644 index 0000000000..e37fad5767 --- /dev/null +++ b/model/cainiaoecc/CainiaoEccExceptionsDelayGetAPIResponse.go @@ -0,0 +1,27 @@ +package cainiaoecc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟控制塔包裹滞留异常信息获取 API返回值 +cainiao.ecc.exceptions.delay.get + +菜鸟控制塔包裹滞留异常信息获取 +*/ +type CainiaoEccExceptionsDelayGetAPIResponse struct { + model.CommonResponse + CainiaoEccExceptionsDelayGetAPIResponseModel +} + +// 菜鸟控制塔包裹滞留异常信息获取 成功返回结果 +type CainiaoEccExceptionsDelayGetAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_ecc_exceptions_delay_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaoecc/CainiaoEccExceptionsDelayGetResponse.go b/model/cainiaoecc/CainiaoEccExceptionsDelayGetResponse.go deleted file mode 100644 index bb3a6a3506..0000000000 --- a/model/cainiaoecc/CainiaoEccExceptionsDelayGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cainiaoecc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -菜鸟控制塔包裹滞留异常信息获取 API返回值 -cainiao.ecc.exceptions.delay.get - -菜鸟控制塔包裹滞留异常信息获取 -*/ -type CainiaoEccExceptionsDelayGetAPIResponse struct { - model.CommonResponse - CainiaoEccExceptionsDelayGetResponse -} - -// 菜鸟控制塔包裹滞留异常信息获取 成功返回结果 -type CainiaoEccExceptionsDelayGetResponse struct { - XMLName xml.Name `xml:"cainiao_ecc_exceptions_delay_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverCancelAPIRequest.go b/model/cainiaohandover/CainiaoGlobalHandoverCancelAPIRequest.go new file mode 100644 index 0000000000..cc546fb7d5 --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalHandoverCancelAPIRequest.go @@ -0,0 +1,122 @@ +package cainiaohandover + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消交接单 API请求 +cainiao.global.handover.cancel + +提供给ISV通过该接口取消交接单 +*/ +type CainiaoGlobalHandoverCancelAPIRequest struct { + model.Params + // 系统自动生成 + _userInfo *UserInfoDto + // 要取消的交接物运单号,即大包运单号 + _trackingNumber string + // 要取消的交接单id + _handoverOrderId int64 + // 要取消的交接物id,即大包id + _handoverContentId int64 + // ISV名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称 + _client string + // 多语言 + _locale string +} + +// 初始化CainiaoGlobalHandoverCancelAPIRequest对象 +func NewCainiaoGlobalHandoverCancelRequest() *CainiaoGlobalHandoverCancelAPIRequest{ + return &CainiaoGlobalHandoverCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoGlobalHandoverCancelAPIRequest) GetApiMethodName() string { + return "cainiao.global.handover.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoGlobalHandoverCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserInfo Setter +// 系统自动生成 +func (r *CainiaoGlobalHandoverCancelAPIRequest) SetUserInfo(_userInfo *UserInfoDto) error { + r._userInfo = _userInfo + r.Set("user_info", _userInfo) + return nil +} + +// UserInfo Getter +func (r CainiaoGlobalHandoverCancelAPIRequest) GetUserInfo() *UserInfoDto { + return r._userInfo +} +// TrackingNumber Setter +// 要取消的交接物运单号,即大包运单号 +func (r *CainiaoGlobalHandoverCancelAPIRequest) SetTrackingNumber(_trackingNumber string) error { + r._trackingNumber = _trackingNumber + r.Set("tracking_number", _trackingNumber) + return nil +} + +// TrackingNumber Getter +func (r CainiaoGlobalHandoverCancelAPIRequest) GetTrackingNumber() string { + return r._trackingNumber +} +// HandoverOrderId Setter +// 要取消的交接单id +func (r *CainiaoGlobalHandoverCancelAPIRequest) SetHandoverOrderId(_handoverOrderId int64) error { + r._handoverOrderId = _handoverOrderId + r.Set("handover_order_id", _handoverOrderId) + return nil +} + +// HandoverOrderId Getter +func (r CainiaoGlobalHandoverCancelAPIRequest) GetHandoverOrderId() int64 { + return r._handoverOrderId +} +// HandoverContentId Setter +// 要取消的交接物id,即大包id +func (r *CainiaoGlobalHandoverCancelAPIRequest) SetHandoverContentId(_handoverContentId int64) error { + r._handoverContentId = _handoverContentId + r.Set("handover_content_id", _handoverContentId) + return nil +} + +// HandoverContentId Getter +func (r CainiaoGlobalHandoverCancelAPIRequest) GetHandoverContentId() int64 { + return r._handoverContentId +} +// Client Setter +// ISV名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称 +func (r *CainiaoGlobalHandoverCancelAPIRequest) SetClient(_client string) error { + r._client = _client + r.Set("client", _client) + return nil +} + +// Client Getter +func (r CainiaoGlobalHandoverCancelAPIRequest) GetClient() string { + return r._client +} +// Locale Setter +// 多语言 +func (r *CainiaoGlobalHandoverCancelAPIRequest) SetLocale(_locale string) error { + r._locale = _locale + r.Set("locale", _locale) + return nil +} + +// Locale Getter +func (r CainiaoGlobalHandoverCancelAPIRequest) GetLocale() string { + return r._locale +} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverCancelAPIResponse.go b/model/cainiaohandover/CainiaoGlobalHandoverCancelAPIResponse.go new file mode 100644 index 0000000000..77dbea04cd --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalHandoverCancelAPIResponse.go @@ -0,0 +1,27 @@ +package cainiaohandover + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消交接单 API返回值 +cainiao.global.handover.cancel + +提供给ISV通过该接口取消交接单 +*/ +type CainiaoGlobalHandoverCancelAPIResponse struct { + model.CommonResponse + CainiaoGlobalHandoverCancelAPIResponseModel +} + +// 取消交接单 成功返回结果 +type CainiaoGlobalHandoverCancelAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_global_handover_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求结果 + Result *HsfResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverCancelResponse.go b/model/cainiaohandover/CainiaoGlobalHandoverCancelResponse.go deleted file mode 100644 index c069033310..0000000000 --- a/model/cainiaohandover/CainiaoGlobalHandoverCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cainiaohandover - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消交接单 API返回值 -cainiao.global.handover.cancel - -提供给ISV通过该接口取消交接单 -*/ -type CainiaoGlobalHandoverCancelAPIResponse struct { - model.CommonResponse - CainiaoGlobalHandoverCancelResponse -} - -// 取消交接单 成功返回结果 -type CainiaoGlobalHandoverCancelResponse struct { - XMLName xml.Name `xml:"cainiao_global_handover_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求结果 - Result *HsfResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverCloudprintGetAPIRequest.go b/model/cainiaohandover/CainiaoGlobalHandoverCloudprintGetAPIRequest.go new file mode 100644 index 0000000000..5a583bd67f --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalHandoverCloudprintGetAPIRequest.go @@ -0,0 +1,108 @@ +package cainiaohandover + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取面单云打印数据 API请求 +cainiao.global.handover.cloudprint.get + +提供给ISV通过该接口获取面单云打印数据 +*/ +type CainiaoGlobalHandoverCloudprintGetAPIRequest struct { + model.Params + // 用户信息 + _userInfo *UserInfoDto + // 大包运单号 + _trackingNumber string + // ISV名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称 + _client string + // 大包物流单LP号 + _orderCode string + // 多语言 + _locale string +} + +// 初始化CainiaoGlobalHandoverCloudprintGetAPIRequest对象 +func NewCainiaoGlobalHandoverCloudprintGetRequest() *CainiaoGlobalHandoverCloudprintGetAPIRequest{ + return &CainiaoGlobalHandoverCloudprintGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoGlobalHandoverCloudprintGetAPIRequest) GetApiMethodName() string { + return "cainiao.global.handover.cloudprint.get" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoGlobalHandoverCloudprintGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserInfo Setter +// 用户信息 +func (r *CainiaoGlobalHandoverCloudprintGetAPIRequest) SetUserInfo(_userInfo *UserInfoDto) error { + r._userInfo = _userInfo + r.Set("user_info", _userInfo) + return nil +} + +// UserInfo Getter +func (r CainiaoGlobalHandoverCloudprintGetAPIRequest) GetUserInfo() *UserInfoDto { + return r._userInfo +} +// TrackingNumber Setter +// 大包运单号 +func (r *CainiaoGlobalHandoverCloudprintGetAPIRequest) SetTrackingNumber(_trackingNumber string) error { + r._trackingNumber = _trackingNumber + r.Set("tracking_number", _trackingNumber) + return nil +} + +// TrackingNumber Getter +func (r CainiaoGlobalHandoverCloudprintGetAPIRequest) GetTrackingNumber() string { + return r._trackingNumber +} +// Client Setter +// ISV名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称 +func (r *CainiaoGlobalHandoverCloudprintGetAPIRequest) SetClient(_client string) error { + r._client = _client + r.Set("client", _client) + return nil +} + +// Client Getter +func (r CainiaoGlobalHandoverCloudprintGetAPIRequest) GetClient() string { + return r._client +} +// OrderCode Setter +// 大包物流单LP号 +func (r *CainiaoGlobalHandoverCloudprintGetAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r CainiaoGlobalHandoverCloudprintGetAPIRequest) GetOrderCode() string { + return r._orderCode +} +// Locale Setter +// 多语言 +func (r *CainiaoGlobalHandoverCloudprintGetAPIRequest) SetLocale(_locale string) error { + r._locale = _locale + r.Set("locale", _locale) + return nil +} + +// Locale Getter +func (r CainiaoGlobalHandoverCloudprintGetAPIRequest) GetLocale() string { + return r._locale +} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverCloudprintGetAPIResponse.go b/model/cainiaohandover/CainiaoGlobalHandoverCloudprintGetAPIResponse.go new file mode 100644 index 0000000000..54b80c0cd5 --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalHandoverCloudprintGetAPIResponse.go @@ -0,0 +1,27 @@ +package cainiaohandover + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取面单云打印数据 API返回值 +cainiao.global.handover.cloudprint.get + +提供给ISV通过该接口获取面单云打印数据 +*/ +type CainiaoGlobalHandoverCloudprintGetAPIResponse struct { + model.CommonResponse + CainiaoGlobalHandoverCloudprintGetAPIResponseModel +} + +// 获取面单云打印数据 成功返回结果 +type CainiaoGlobalHandoverCloudprintGetAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_global_handover_cloudprint_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求结果 + Result *HsfResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverCloudprintGetResponse.go b/model/cainiaohandover/CainiaoGlobalHandoverCloudprintGetResponse.go deleted file mode 100644 index b5e4a9cd6f..0000000000 --- a/model/cainiaohandover/CainiaoGlobalHandoverCloudprintGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cainiaohandover - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取面单云打印数据 API返回值 -cainiao.global.handover.cloudprint.get - -提供给ISV通过该接口获取面单云打印数据 -*/ -type CainiaoGlobalHandoverCloudprintGetAPIResponse struct { - model.CommonResponse - CainiaoGlobalHandoverCloudprintGetResponse -} - -// 获取面单云打印数据 成功返回结果 -type CainiaoGlobalHandoverCloudprintGetResponse struct { - XMLName xml.Name `xml:"cainiao_global_handover_cloudprint_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求结果 - Result *HsfResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverCommitAPIRequest.go b/model/cainiaohandover/CainiaoGlobalHandoverCommitAPIRequest.go new file mode 100644 index 0000000000..14300ed6b2 --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalHandoverCommitAPIRequest.go @@ -0,0 +1,206 @@ +package cainiaohandover + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交发布交接单 API请求 +cainiao.global.handover.commit + +提供给ISV通过该接口提交发布交接单 +*/ +type CainiaoGlobalHandoverCommitAPIRequest struct { + model.Params + // 用户信息 + _userInfo *UserInfoDto + // 大包备注 + _remark string + // 退件信息 + _returnInfo *ReturnerDto + // 揽收信息 + _pickupInfo *PickupDto + // 大包重量 + _weight int64 + // 交接单id + _handoverOrderId int64 + // 重量单位,克:g, 千克:kg,默认g + _weightUnit string + // 交接单类型:cainiao_pickup(菜鸟揽收)、self_post(自寄) + _type string + // ISV名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称 + _client string + // 要创建交接单的小包编码集合,数量上限1000 + _orderCodeList []string + // 多语言 + _locale string + // 扩展字段 + _features *Features +} + +// 初始化CainiaoGlobalHandoverCommitAPIRequest对象 +func NewCainiaoGlobalHandoverCommitRequest() *CainiaoGlobalHandoverCommitAPIRequest{ + return &CainiaoGlobalHandoverCommitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoGlobalHandoverCommitAPIRequest) GetApiMethodName() string { + return "cainiao.global.handover.commit" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoGlobalHandoverCommitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserInfo Setter +// 用户信息 +func (r *CainiaoGlobalHandoverCommitAPIRequest) SetUserInfo(_userInfo *UserInfoDto) error { + r._userInfo = _userInfo + r.Set("user_info", _userInfo) + return nil +} + +// UserInfo Getter +func (r CainiaoGlobalHandoverCommitAPIRequest) GetUserInfo() *UserInfoDto { + return r._userInfo +} +// Remark Setter +// 大包备注 +func (r *CainiaoGlobalHandoverCommitAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r CainiaoGlobalHandoverCommitAPIRequest) GetRemark() string { + return r._remark +} +// ReturnInfo Setter +// 退件信息 +func (r *CainiaoGlobalHandoverCommitAPIRequest) SetReturnInfo(_returnInfo *ReturnerDto) error { + r._returnInfo = _returnInfo + r.Set("return_info", _returnInfo) + return nil +} + +// ReturnInfo Getter +func (r CainiaoGlobalHandoverCommitAPIRequest) GetReturnInfo() *ReturnerDto { + return r._returnInfo +} +// PickupInfo Setter +// 揽收信息 +func (r *CainiaoGlobalHandoverCommitAPIRequest) SetPickupInfo(_pickupInfo *PickupDto) error { + r._pickupInfo = _pickupInfo + r.Set("pickup_info", _pickupInfo) + return nil +} + +// PickupInfo Getter +func (r CainiaoGlobalHandoverCommitAPIRequest) GetPickupInfo() *PickupDto { + return r._pickupInfo +} +// Weight Setter +// 大包重量 +func (r *CainiaoGlobalHandoverCommitAPIRequest) SetWeight(_weight int64) error { + r._weight = _weight + r.Set("weight", _weight) + return nil +} + +// Weight Getter +func (r CainiaoGlobalHandoverCommitAPIRequest) GetWeight() int64 { + return r._weight +} +// HandoverOrderId Setter +// 交接单id +func (r *CainiaoGlobalHandoverCommitAPIRequest) SetHandoverOrderId(_handoverOrderId int64) error { + r._handoverOrderId = _handoverOrderId + r.Set("handover_order_id", _handoverOrderId) + return nil +} + +// HandoverOrderId Getter +func (r CainiaoGlobalHandoverCommitAPIRequest) GetHandoverOrderId() int64 { + return r._handoverOrderId +} +// WeightUnit Setter +// 重量单位,克:g, 千克:kg,默认g +func (r *CainiaoGlobalHandoverCommitAPIRequest) SetWeightUnit(_weightUnit string) error { + r._weightUnit = _weightUnit + r.Set("weight_unit", _weightUnit) + return nil +} + +// WeightUnit Getter +func (r CainiaoGlobalHandoverCommitAPIRequest) GetWeightUnit() string { + return r._weightUnit +} +// Type Setter +// 交接单类型:cainiao_pickup(菜鸟揽收)、self_post(自寄) +func (r *CainiaoGlobalHandoverCommitAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r CainiaoGlobalHandoverCommitAPIRequest) GetType() string { + return r._type +} +// Client Setter +// ISV名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称 +func (r *CainiaoGlobalHandoverCommitAPIRequest) SetClient(_client string) error { + r._client = _client + r.Set("client", _client) + return nil +} + +// Client Getter +func (r CainiaoGlobalHandoverCommitAPIRequest) GetClient() string { + return r._client +} +// OrderCodeList Setter +// 要创建交接单的小包编码集合,数量上限1000 +func (r *CainiaoGlobalHandoverCommitAPIRequest) SetOrderCodeList(_orderCodeList []string) error { + r._orderCodeList = _orderCodeList + r.Set("order_code_list", _orderCodeList) + return nil +} + +// OrderCodeList Getter +func (r CainiaoGlobalHandoverCommitAPIRequest) GetOrderCodeList() []string { + return r._orderCodeList +} +// Locale Setter +// 多语言 +func (r *CainiaoGlobalHandoverCommitAPIRequest) SetLocale(_locale string) error { + r._locale = _locale + r.Set("locale", _locale) + return nil +} + +// Locale Getter +func (r CainiaoGlobalHandoverCommitAPIRequest) GetLocale() string { + return r._locale +} +// Features Setter +// 扩展字段 +func (r *CainiaoGlobalHandoverCommitAPIRequest) SetFeatures(_features *Features) error { + r._features = _features + r.Set("features", _features) + return nil +} + +// Features Getter +func (r CainiaoGlobalHandoverCommitAPIRequest) GetFeatures() *Features { + return r._features +} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverCommitAPIResponse.go b/model/cainiaohandover/CainiaoGlobalHandoverCommitAPIResponse.go new file mode 100644 index 0000000000..f0799387e1 --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalHandoverCommitAPIResponse.go @@ -0,0 +1,27 @@ +package cainiaohandover + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交发布交接单 API返回值 +cainiao.global.handover.commit + +提供给ISV通过该接口提交发布交接单 +*/ +type CainiaoGlobalHandoverCommitAPIResponse struct { + model.CommonResponse + CainiaoGlobalHandoverCommitAPIResponseModel +} + +// 提交发布交接单 成功返回结果 +type CainiaoGlobalHandoverCommitAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_global_handover_commit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求结果 + Result *HsfResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverCommitResponse.go b/model/cainiaohandover/CainiaoGlobalHandoverCommitResponse.go deleted file mode 100644 index 714f98ec06..0000000000 --- a/model/cainiaohandover/CainiaoGlobalHandoverCommitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cainiaohandover - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交发布交接单 API返回值 -cainiao.global.handover.commit - -提供给ISV通过该接口提交发布交接单 -*/ -type CainiaoGlobalHandoverCommitAPIResponse struct { - model.CommonResponse - CainiaoGlobalHandoverCommitResponse -} - -// 提交发布交接单 成功返回结果 -type CainiaoGlobalHandoverCommitResponse struct { - XMLName xml.Name `xml:"cainiao_global_handover_commit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求结果 - Result *HsfResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverContentQueryAPIRequest.go b/model/cainiaohandover/CainiaoGlobalHandoverContentQueryAPIRequest.go new file mode 100644 index 0000000000..d89c607464 --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalHandoverContentQueryAPIRequest.go @@ -0,0 +1,108 @@ +package cainiaohandover + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询大包详情 API请求 +cainiao.global.handover.content.query + +查询大包详情 +*/ +type CainiaoGlobalHandoverContentQueryAPIRequest struct { + model.Params + // 用户信息 + _userInfo *UserInfoDto + // 交接物运单号,和交接物物流订单编码参数任选其一即可 + _trackingNumber string + // 客户端名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称 + _client string + // 交接物物流订单编码,和交接物运单号参数可以任选其一即可 + _orderCode string + // 多语言 + _locale string +} + +// 初始化CainiaoGlobalHandoverContentQueryAPIRequest对象 +func NewCainiaoGlobalHandoverContentQueryRequest() *CainiaoGlobalHandoverContentQueryAPIRequest{ + return &CainiaoGlobalHandoverContentQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoGlobalHandoverContentQueryAPIRequest) GetApiMethodName() string { + return "cainiao.global.handover.content.query" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoGlobalHandoverContentQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserInfo Setter +// 用户信息 +func (r *CainiaoGlobalHandoverContentQueryAPIRequest) SetUserInfo(_userInfo *UserInfoDto) error { + r._userInfo = _userInfo + r.Set("user_info", _userInfo) + return nil +} + +// UserInfo Getter +func (r CainiaoGlobalHandoverContentQueryAPIRequest) GetUserInfo() *UserInfoDto { + return r._userInfo +} +// TrackingNumber Setter +// 交接物运单号,和交接物物流订单编码参数任选其一即可 +func (r *CainiaoGlobalHandoverContentQueryAPIRequest) SetTrackingNumber(_trackingNumber string) error { + r._trackingNumber = _trackingNumber + r.Set("tracking_number", _trackingNumber) + return nil +} + +// TrackingNumber Getter +func (r CainiaoGlobalHandoverContentQueryAPIRequest) GetTrackingNumber() string { + return r._trackingNumber +} +// Client Setter +// 客户端名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称 +func (r *CainiaoGlobalHandoverContentQueryAPIRequest) SetClient(_client string) error { + r._client = _client + r.Set("client", _client) + return nil +} + +// Client Getter +func (r CainiaoGlobalHandoverContentQueryAPIRequest) GetClient() string { + return r._client +} +// OrderCode Setter +// 交接物物流订单编码,和交接物运单号参数可以任选其一即可 +func (r *CainiaoGlobalHandoverContentQueryAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r CainiaoGlobalHandoverContentQueryAPIRequest) GetOrderCode() string { + return r._orderCode +} +// Locale Setter +// 多语言 +func (r *CainiaoGlobalHandoverContentQueryAPIRequest) SetLocale(_locale string) error { + r._locale = _locale + r.Set("locale", _locale) + return nil +} + +// Locale Getter +func (r CainiaoGlobalHandoverContentQueryAPIRequest) GetLocale() string { + return r._locale +} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverContentQueryAPIResponse.go b/model/cainiaohandover/CainiaoGlobalHandoverContentQueryAPIResponse.go new file mode 100644 index 0000000000..8018342e3b --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalHandoverContentQueryAPIResponse.go @@ -0,0 +1,27 @@ +package cainiaohandover + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询大包详情 API返回值 +cainiao.global.handover.content.query + +查询大包详情 +*/ +type CainiaoGlobalHandoverContentQueryAPIResponse struct { + model.CommonResponse + CainiaoGlobalHandoverContentQueryAPIResponseModel +} + +// 查询大包详情 成功返回结果 +type CainiaoGlobalHandoverContentQueryAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_global_handover_content_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求响应 + Result *HsfResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverContentQueryResponse.go b/model/cainiaohandover/CainiaoGlobalHandoverContentQueryResponse.go deleted file mode 100644 index 08095da1fa..0000000000 --- a/model/cainiaohandover/CainiaoGlobalHandoverContentQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cainiaohandover - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询大包详情 API返回值 -cainiao.global.handover.content.query - -查询大包详情 -*/ -type CainiaoGlobalHandoverContentQueryAPIResponse struct { - model.CommonResponse - CainiaoGlobalHandoverContentQueryResponse -} - -// 查询大包详情 成功返回结果 -type CainiaoGlobalHandoverContentQueryResponse struct { - XMLName xml.Name `xml:"cainiao_global_handover_content_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求响应 - Result *HsfResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverParcelQueryAPIRequest.go b/model/cainiaohandover/CainiaoGlobalHandoverParcelQueryAPIRequest.go new file mode 100644 index 0000000000..7ab6206151 --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalHandoverParcelQueryAPIRequest.go @@ -0,0 +1,108 @@ +package cainiaohandover + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取交接单小包信息 API请求 +cainiao.global.handover.parcel.query + +提供给ISV通过该接口查询小包信息 +*/ +type CainiaoGlobalHandoverParcelQueryAPIRequest struct { + model.Params + // 用户信息 + _userInfo *UserInfoDto + // 多语言 + _locale string + // 小包的物流订单号,和小包的国际运单号参数任选其一即可 + _orderCode string + // 小包的国际运单号,和小包的物流订单号参数任选其一即可 + _trackingNumber string + // 客户端名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称 + _client string +} + +// 初始化CainiaoGlobalHandoverParcelQueryAPIRequest对象 +func NewCainiaoGlobalHandoverParcelQueryRequest() *CainiaoGlobalHandoverParcelQueryAPIRequest{ + return &CainiaoGlobalHandoverParcelQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoGlobalHandoverParcelQueryAPIRequest) GetApiMethodName() string { + return "cainiao.global.handover.parcel.query" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoGlobalHandoverParcelQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserInfo Setter +// 用户信息 +func (r *CainiaoGlobalHandoverParcelQueryAPIRequest) SetUserInfo(_userInfo *UserInfoDto) error { + r._userInfo = _userInfo + r.Set("user_info", _userInfo) + return nil +} + +// UserInfo Getter +func (r CainiaoGlobalHandoverParcelQueryAPIRequest) GetUserInfo() *UserInfoDto { + return r._userInfo +} +// Locale Setter +// 多语言 +func (r *CainiaoGlobalHandoverParcelQueryAPIRequest) SetLocale(_locale string) error { + r._locale = _locale + r.Set("locale", _locale) + return nil +} + +// Locale Getter +func (r CainiaoGlobalHandoverParcelQueryAPIRequest) GetLocale() string { + return r._locale +} +// OrderCode Setter +// 小包的物流订单号,和小包的国际运单号参数任选其一即可 +func (r *CainiaoGlobalHandoverParcelQueryAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r CainiaoGlobalHandoverParcelQueryAPIRequest) GetOrderCode() string { + return r._orderCode +} +// TrackingNumber Setter +// 小包的国际运单号,和小包的物流订单号参数任选其一即可 +func (r *CainiaoGlobalHandoverParcelQueryAPIRequest) SetTrackingNumber(_trackingNumber string) error { + r._trackingNumber = _trackingNumber + r.Set("tracking_number", _trackingNumber) + return nil +} + +// TrackingNumber Getter +func (r CainiaoGlobalHandoverParcelQueryAPIRequest) GetTrackingNumber() string { + return r._trackingNumber +} +// Client Setter +// 客户端名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称 +func (r *CainiaoGlobalHandoverParcelQueryAPIRequest) SetClient(_client string) error { + r._client = _client + r.Set("client", _client) + return nil +} + +// Client Getter +func (r CainiaoGlobalHandoverParcelQueryAPIRequest) GetClient() string { + return r._client +} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverParcelQueryAPIResponse.go b/model/cainiaohandover/CainiaoGlobalHandoverParcelQueryAPIResponse.go new file mode 100644 index 0000000000..26c5c58cfc --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalHandoverParcelQueryAPIResponse.go @@ -0,0 +1,27 @@ +package cainiaohandover + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取交接单小包信息 API返回值 +cainiao.global.handover.parcel.query + +提供给ISV通过该接口查询小包信息 +*/ +type CainiaoGlobalHandoverParcelQueryAPIResponse struct { + model.CommonResponse + CainiaoGlobalHandoverParcelQueryAPIResponseModel +} + +// 获取交接单小包信息 成功返回结果 +type CainiaoGlobalHandoverParcelQueryAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_global_handover_parcel_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求结果 + Result *HsfResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverParcelQueryResponse.go b/model/cainiaohandover/CainiaoGlobalHandoverParcelQueryResponse.go deleted file mode 100644 index 0e4b9649ae..0000000000 --- a/model/cainiaohandover/CainiaoGlobalHandoverParcelQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cainiaohandover - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取交接单小包信息 API返回值 -cainiao.global.handover.parcel.query - -提供给ISV通过该接口查询小包信息 -*/ -type CainiaoGlobalHandoverParcelQueryAPIResponse struct { - model.CommonResponse - CainiaoGlobalHandoverParcelQueryResponse -} - -// 获取交接单小包信息 成功返回结果 -type CainiaoGlobalHandoverParcelQueryResponse struct { - XMLName xml.Name `xml:"cainiao_global_handover_parcel_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求结果 - Result *HsfResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverPdfGetAPIRequest.go b/model/cainiaohandover/CainiaoGlobalHandoverPdfGetAPIRequest.go new file mode 100644 index 0000000000..954c17a4d8 --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalHandoverPdfGetAPIRequest.go @@ -0,0 +1,108 @@ +package cainiaohandover + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取面单PDF文件数据 API请求 +cainiao.global.handover.pdf.get + +返回指定大包面单的PDF文件数据 +*/ +type CainiaoGlobalHandoverPdfGetAPIRequest struct { + model.Params + // 用户信息 + _userInfo *UserInfoDto + // 客户端名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称 + _client string + // 多语言 + _locale string + // 大包编号id + _handoverContentId int64 + // 打印数据类型,1:面单、4:发货标签、512:交接清单 + _type int64 +} + +// 初始化CainiaoGlobalHandoverPdfGetAPIRequest对象 +func NewCainiaoGlobalHandoverPdfGetRequest() *CainiaoGlobalHandoverPdfGetAPIRequest{ + return &CainiaoGlobalHandoverPdfGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoGlobalHandoverPdfGetAPIRequest) GetApiMethodName() string { + return "cainiao.global.handover.pdf.get" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoGlobalHandoverPdfGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserInfo Setter +// 用户信息 +func (r *CainiaoGlobalHandoverPdfGetAPIRequest) SetUserInfo(_userInfo *UserInfoDto) error { + r._userInfo = _userInfo + r.Set("user_info", _userInfo) + return nil +} + +// UserInfo Getter +func (r CainiaoGlobalHandoverPdfGetAPIRequest) GetUserInfo() *UserInfoDto { + return r._userInfo +} +// Client Setter +// 客户端名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称 +func (r *CainiaoGlobalHandoverPdfGetAPIRequest) SetClient(_client string) error { + r._client = _client + r.Set("client", _client) + return nil +} + +// Client Getter +func (r CainiaoGlobalHandoverPdfGetAPIRequest) GetClient() string { + return r._client +} +// Locale Setter +// 多语言 +func (r *CainiaoGlobalHandoverPdfGetAPIRequest) SetLocale(_locale string) error { + r._locale = _locale + r.Set("locale", _locale) + return nil +} + +// Locale Getter +func (r CainiaoGlobalHandoverPdfGetAPIRequest) GetLocale() string { + return r._locale +} +// HandoverContentId Setter +// 大包编号id +func (r *CainiaoGlobalHandoverPdfGetAPIRequest) SetHandoverContentId(_handoverContentId int64) error { + r._handoverContentId = _handoverContentId + r.Set("handover_content_id", _handoverContentId) + return nil +} + +// HandoverContentId Getter +func (r CainiaoGlobalHandoverPdfGetAPIRequest) GetHandoverContentId() int64 { + return r._handoverContentId +} +// Type Setter +// 打印数据类型,1:面单、4:发货标签、512:交接清单 +func (r *CainiaoGlobalHandoverPdfGetAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r CainiaoGlobalHandoverPdfGetAPIRequest) GetType() int64 { + return r._type +} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverPdfGetAPIResponse.go b/model/cainiaohandover/CainiaoGlobalHandoverPdfGetAPIResponse.go new file mode 100644 index 0000000000..31801842d5 --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalHandoverPdfGetAPIResponse.go @@ -0,0 +1,27 @@ +package cainiaohandover + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取面单PDF文件数据 API返回值 +cainiao.global.handover.pdf.get + +返回指定大包面单的PDF文件数据 +*/ +type CainiaoGlobalHandoverPdfGetAPIResponse struct { + model.CommonResponse + CainiaoGlobalHandoverPdfGetAPIResponseModel +} + +// 获取面单PDF文件数据 成功返回结果 +type CainiaoGlobalHandoverPdfGetAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_global_handover_pdf_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求结果 + Result *HsfResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverPdfGetResponse.go b/model/cainiaohandover/CainiaoGlobalHandoverPdfGetResponse.go deleted file mode 100644 index fed80370f7..0000000000 --- a/model/cainiaohandover/CainiaoGlobalHandoverPdfGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cainiaohandover - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取面单PDF文件数据 API返回值 -cainiao.global.handover.pdf.get - -返回指定大包面单的PDF文件数据 -*/ -type CainiaoGlobalHandoverPdfGetAPIResponse struct { - model.CommonResponse - CainiaoGlobalHandoverPdfGetResponse -} - -// 获取面单PDF文件数据 成功返回结果 -type CainiaoGlobalHandoverPdfGetResponse struct { - XMLName xml.Name `xml:"cainiao_global_handover_pdf_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求结果 - Result *HsfResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverSavedraftAPIRequest.go b/model/cainiaohandover/CainiaoGlobalHandoverSavedraftAPIRequest.go new file mode 100644 index 0000000000..c01a96f786 --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalHandoverSavedraftAPIRequest.go @@ -0,0 +1,164 @@ +package cainiaohandover + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建交接单草稿 API请求 +cainiao.global.handover.savedraft + +提供给ISV通过该接口创建交接单草稿 +*/ +type CainiaoGlobalHandoverSavedraftAPIRequest struct { + model.Params + // 用户信息 + _userInfo *UserInfoDto + // 备注 + _remark string + // 大包重量 + _weight int64 + // 重量单位,克:g, 千克:kg,默认g + _weightUnit string + // 揽收信息 + _pickupInfo *PickupDto + // 退件信息 + _returnInfo *ReturnerDto + // 客户端名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称 + _client string + // 需要组装大包的小包编码集合,最多限制200个小包 + _orderCodeList []string + // 多语言 + _locale string +} + +// 初始化CainiaoGlobalHandoverSavedraftAPIRequest对象 +func NewCainiaoGlobalHandoverSavedraftRequest() *CainiaoGlobalHandoverSavedraftAPIRequest{ + return &CainiaoGlobalHandoverSavedraftAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoGlobalHandoverSavedraftAPIRequest) GetApiMethodName() string { + return "cainiao.global.handover.savedraft" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoGlobalHandoverSavedraftAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserInfo Setter +// 用户信息 +func (r *CainiaoGlobalHandoverSavedraftAPIRequest) SetUserInfo(_userInfo *UserInfoDto) error { + r._userInfo = _userInfo + r.Set("user_info", _userInfo) + return nil +} + +// UserInfo Getter +func (r CainiaoGlobalHandoverSavedraftAPIRequest) GetUserInfo() *UserInfoDto { + return r._userInfo +} +// Remark Setter +// 备注 +func (r *CainiaoGlobalHandoverSavedraftAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r CainiaoGlobalHandoverSavedraftAPIRequest) GetRemark() string { + return r._remark +} +// Weight Setter +// 大包重量 +func (r *CainiaoGlobalHandoverSavedraftAPIRequest) SetWeight(_weight int64) error { + r._weight = _weight + r.Set("weight", _weight) + return nil +} + +// Weight Getter +func (r CainiaoGlobalHandoverSavedraftAPIRequest) GetWeight() int64 { + return r._weight +} +// WeightUnit Setter +// 重量单位,克:g, 千克:kg,默认g +func (r *CainiaoGlobalHandoverSavedraftAPIRequest) SetWeightUnit(_weightUnit string) error { + r._weightUnit = _weightUnit + r.Set("weight_unit", _weightUnit) + return nil +} + +// WeightUnit Getter +func (r CainiaoGlobalHandoverSavedraftAPIRequest) GetWeightUnit() string { + return r._weightUnit +} +// PickupInfo Setter +// 揽收信息 +func (r *CainiaoGlobalHandoverSavedraftAPIRequest) SetPickupInfo(_pickupInfo *PickupDto) error { + r._pickupInfo = _pickupInfo + r.Set("pickup_info", _pickupInfo) + return nil +} + +// PickupInfo Getter +func (r CainiaoGlobalHandoverSavedraftAPIRequest) GetPickupInfo() *PickupDto { + return r._pickupInfo +} +// ReturnInfo Setter +// 退件信息 +func (r *CainiaoGlobalHandoverSavedraftAPIRequest) SetReturnInfo(_returnInfo *ReturnerDto) error { + r._returnInfo = _returnInfo + r.Set("return_info", _returnInfo) + return nil +} + +// ReturnInfo Getter +func (r CainiaoGlobalHandoverSavedraftAPIRequest) GetReturnInfo() *ReturnerDto { + return r._returnInfo +} +// Client Setter +// 客户端名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称 +func (r *CainiaoGlobalHandoverSavedraftAPIRequest) SetClient(_client string) error { + r._client = _client + r.Set("client", _client) + return nil +} + +// Client Getter +func (r CainiaoGlobalHandoverSavedraftAPIRequest) GetClient() string { + return r._client +} +// OrderCodeList Setter +// 需要组装大包的小包编码集合,最多限制200个小包 +func (r *CainiaoGlobalHandoverSavedraftAPIRequest) SetOrderCodeList(_orderCodeList []string) error { + r._orderCodeList = _orderCodeList + r.Set("order_code_list", _orderCodeList) + return nil +} + +// OrderCodeList Getter +func (r CainiaoGlobalHandoverSavedraftAPIRequest) GetOrderCodeList() []string { + return r._orderCodeList +} +// Locale Setter +// 多语言 +func (r *CainiaoGlobalHandoverSavedraftAPIRequest) SetLocale(_locale string) error { + r._locale = _locale + r.Set("locale", _locale) + return nil +} + +// Locale Getter +func (r CainiaoGlobalHandoverSavedraftAPIRequest) GetLocale() string { + return r._locale +} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverSavedraftAPIResponse.go b/model/cainiaohandover/CainiaoGlobalHandoverSavedraftAPIResponse.go new file mode 100644 index 0000000000..cd33914e97 --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalHandoverSavedraftAPIResponse.go @@ -0,0 +1,27 @@ +package cainiaohandover + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建交接单草稿 API返回值 +cainiao.global.handover.savedraft + +提供给ISV通过该接口创建交接单草稿 +*/ +type CainiaoGlobalHandoverSavedraftAPIResponse struct { + model.CommonResponse + CainiaoGlobalHandoverSavedraftAPIResponseModel +} + +// 创建交接单草稿 成功返回结果 +type CainiaoGlobalHandoverSavedraftAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_global_handover_savedraft_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求结果 + Result *HsfResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverSavedraftResponse.go b/model/cainiaohandover/CainiaoGlobalHandoverSavedraftResponse.go deleted file mode 100644 index 6ce248cbea..0000000000 --- a/model/cainiaohandover/CainiaoGlobalHandoverSavedraftResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cainiaohandover - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建交接单草稿 API返回值 -cainiao.global.handover.savedraft - -提供给ISV通过该接口创建交接单草稿 -*/ -type CainiaoGlobalHandoverSavedraftAPIResponse struct { - model.CommonResponse - CainiaoGlobalHandoverSavedraftResponse -} - -// 创建交接单草稿 成功返回结果 -type CainiaoGlobalHandoverSavedraftResponse struct { - XMLName xml.Name `xml:"cainiao_global_handover_savedraft_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求结果 - Result *HsfResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverUpdateAPIRequest.go b/model/cainiaohandover/CainiaoGlobalHandoverUpdateAPIRequest.go new file mode 100644 index 0000000000..14ab6c4da7 --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalHandoverUpdateAPIRequest.go @@ -0,0 +1,192 @@ +package cainiaohandover + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改交接单 API请求 +cainiao.global.handover.update + +提供给ISV通过该接口修改交接单 +*/ +type CainiaoGlobalHandoverUpdateAPIRequest struct { + model.Params + // 用户信息 + _userInfo *UserInfoDto + // 重量单位,克:g, 千克:kg,默认g + _weightUnit string + // 大包重量 + _weight int64 + // 交接单id + _handoverOrderId int64 + // 大包备注 + _remark string + // 退件信息 + _returnInfo *ReturnerDto + // 揽收信息 + _pickupInfo *PickupDto + // 交接单类型,菜鸟揽收(cainiao_pickup)或自寄(self_post),默认菜鸟揽收 + _type string + // ISV名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称 + _client string + // 要创建交接单的小包编码集合,数量上限200 + _orderCodeList []string + // 多语言 + _locale string +} + +// 初始化CainiaoGlobalHandoverUpdateAPIRequest对象 +func NewCainiaoGlobalHandoverUpdateRequest() *CainiaoGlobalHandoverUpdateAPIRequest{ + return &CainiaoGlobalHandoverUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoGlobalHandoverUpdateAPIRequest) GetApiMethodName() string { + return "cainiao.global.handover.update" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoGlobalHandoverUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserInfo Setter +// 用户信息 +func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetUserInfo(_userInfo *UserInfoDto) error { + r._userInfo = _userInfo + r.Set("user_info", _userInfo) + return nil +} + +// UserInfo Getter +func (r CainiaoGlobalHandoverUpdateAPIRequest) GetUserInfo() *UserInfoDto { + return r._userInfo +} +// WeightUnit Setter +// 重量单位,克:g, 千克:kg,默认g +func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetWeightUnit(_weightUnit string) error { + r._weightUnit = _weightUnit + r.Set("weight_unit", _weightUnit) + return nil +} + +// WeightUnit Getter +func (r CainiaoGlobalHandoverUpdateAPIRequest) GetWeightUnit() string { + return r._weightUnit +} +// Weight Setter +// 大包重量 +func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetWeight(_weight int64) error { + r._weight = _weight + r.Set("weight", _weight) + return nil +} + +// Weight Getter +func (r CainiaoGlobalHandoverUpdateAPIRequest) GetWeight() int64 { + return r._weight +} +// HandoverOrderId Setter +// 交接单id +func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetHandoverOrderId(_handoverOrderId int64) error { + r._handoverOrderId = _handoverOrderId + r.Set("handover_order_id", _handoverOrderId) + return nil +} + +// HandoverOrderId Getter +func (r CainiaoGlobalHandoverUpdateAPIRequest) GetHandoverOrderId() int64 { + return r._handoverOrderId +} +// Remark Setter +// 大包备注 +func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r CainiaoGlobalHandoverUpdateAPIRequest) GetRemark() string { + return r._remark +} +// ReturnInfo Setter +// 退件信息 +func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetReturnInfo(_returnInfo *ReturnerDto) error { + r._returnInfo = _returnInfo + r.Set("return_info", _returnInfo) + return nil +} + +// ReturnInfo Getter +func (r CainiaoGlobalHandoverUpdateAPIRequest) GetReturnInfo() *ReturnerDto { + return r._returnInfo +} +// PickupInfo Setter +// 揽收信息 +func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetPickupInfo(_pickupInfo *PickupDto) error { + r._pickupInfo = _pickupInfo + r.Set("pickup_info", _pickupInfo) + return nil +} + +// PickupInfo Getter +func (r CainiaoGlobalHandoverUpdateAPIRequest) GetPickupInfo() *PickupDto { + return r._pickupInfo +} +// Type Setter +// 交接单类型,菜鸟揽收(cainiao_pickup)或自寄(self_post),默认菜鸟揽收 +func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r CainiaoGlobalHandoverUpdateAPIRequest) GetType() string { + return r._type +} +// Client Setter +// ISV名称,ISV:ISV-ISV英文或拼音名称、商家ERP:SELLER-商家英文或拼音名称 +func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetClient(_client string) error { + r._client = _client + r.Set("client", _client) + return nil +} + +// Client Getter +func (r CainiaoGlobalHandoverUpdateAPIRequest) GetClient() string { + return r._client +} +// OrderCodeList Setter +// 要创建交接单的小包编码集合,数量上限200 +func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetOrderCodeList(_orderCodeList []string) error { + r._orderCodeList = _orderCodeList + r.Set("order_code_list", _orderCodeList) + return nil +} + +// OrderCodeList Getter +func (r CainiaoGlobalHandoverUpdateAPIRequest) GetOrderCodeList() []string { + return r._orderCodeList +} +// Locale Setter +// 多语言 +func (r *CainiaoGlobalHandoverUpdateAPIRequest) SetLocale(_locale string) error { + r._locale = _locale + r.Set("locale", _locale) + return nil +} + +// Locale Getter +func (r CainiaoGlobalHandoverUpdateAPIRequest) GetLocale() string { + return r._locale +} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverUpdateAPIResponse.go b/model/cainiaohandover/CainiaoGlobalHandoverUpdateAPIResponse.go new file mode 100644 index 0000000000..efba2a6e1f --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalHandoverUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package cainiaohandover + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改交接单 API返回值 +cainiao.global.handover.update + +提供给ISV通过该接口修改交接单 +*/ +type CainiaoGlobalHandoverUpdateAPIResponse struct { + model.CommonResponse + CainiaoGlobalHandoverUpdateAPIResponseModel +} + +// 修改交接单 成功返回结果 +type CainiaoGlobalHandoverUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_global_handover_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求结果 + Result *HsfResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaohandover/CainiaoGlobalHandoverUpdateResponse.go b/model/cainiaohandover/CainiaoGlobalHandoverUpdateResponse.go deleted file mode 100644 index 35a7a2a804..0000000000 --- a/model/cainiaohandover/CainiaoGlobalHandoverUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cainiaohandover - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改交接单 API返回值 -cainiao.global.handover.update - -提供给ISV通过该接口修改交接单 -*/ -type CainiaoGlobalHandoverUpdateAPIResponse struct { - model.CommonResponse - CainiaoGlobalHandoverUpdateResponse -} - -// 修改交接单 成功返回结果 -type CainiaoGlobalHandoverUpdateResponse struct { - XMLName xml.Name `xml:"cainiao_global_handover_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求结果 - Result *HsfResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaohandover/CainiaoGlobalLogisticOrderCreateAPIRequest.go b/model/cainiaohandover/CainiaoGlobalLogisticOrderCreateAPIRequest.go new file mode 100644 index 0000000000..803210374b --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalLogisticOrderCreateAPIRequest.go @@ -0,0 +1,66 @@ +package cainiaohandover + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建物流订单 API请求 +cainiao.global.logistic.order.create + +创建物流订单 +*/ +type CainiaoGlobalLogisticOrderCreateAPIRequest struct { + model.Params + // 订单参数 + _orderParam *OpenOrderParam + // 多语言 + _locale string +} + +// 初始化CainiaoGlobalLogisticOrderCreateAPIRequest对象 +func NewCainiaoGlobalLogisticOrderCreateRequest() *CainiaoGlobalLogisticOrderCreateAPIRequest{ + return &CainiaoGlobalLogisticOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoGlobalLogisticOrderCreateAPIRequest) GetApiMethodName() string { + return "cainiao.global.logistic.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoGlobalLogisticOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderParam Setter +// 订单参数 +func (r *CainiaoGlobalLogisticOrderCreateAPIRequest) SetOrderParam(_orderParam *OpenOrderParam) error { + r._orderParam = _orderParam + r.Set("order_param", _orderParam) + return nil +} + +// OrderParam Getter +func (r CainiaoGlobalLogisticOrderCreateAPIRequest) GetOrderParam() *OpenOrderParam { + return r._orderParam +} +// Locale Setter +// 多语言 +func (r *CainiaoGlobalLogisticOrderCreateAPIRequest) SetLocale(_locale string) error { + r._locale = _locale + r.Set("locale", _locale) + return nil +} + +// Locale Getter +func (r CainiaoGlobalLogisticOrderCreateAPIRequest) GetLocale() string { + return r._locale +} diff --git a/model/cainiaohandover/CainiaoGlobalLogisticOrderCreateAPIResponse.go b/model/cainiaohandover/CainiaoGlobalLogisticOrderCreateAPIResponse.go new file mode 100644 index 0000000000..f3e7fbf30f --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalLogisticOrderCreateAPIResponse.go @@ -0,0 +1,33 @@ +package cainiaohandover + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建物流订单 API返回值 +cainiao.global.logistic.order.create + +创建物流订单 +*/ +type CainiaoGlobalLogisticOrderCreateAPIResponse struct { + model.CommonResponse + CainiaoGlobalLogisticOrderCreateAPIResponseModel +} + +// 创建物流订单 成功返回结果 +type CainiaoGlobalLogisticOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_global_logistic_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否需要重试 + NeedRetry bool `json:"need_retry,omitempty" xml:"need_retry,omitempty"` + // 请求结果 + Result *OpenTakingOrderResponse `json:"result,omitempty" xml:"result,omitempty"` + // 创建是否成功 + IsSuccess string `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误信息 + ErrorInfo *ErrorInfo `json:"error_info,omitempty" xml:"error_info,omitempty"` +} diff --git a/model/cainiaohandover/CainiaoGlobalLogisticOrderCreateResponse.go b/model/cainiaohandover/CainiaoGlobalLogisticOrderCreateResponse.go deleted file mode 100644 index 8cc62a4bc9..0000000000 --- a/model/cainiaohandover/CainiaoGlobalLogisticOrderCreateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package cainiaohandover - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建物流订单 API返回值 -cainiao.global.logistic.order.create - -创建物流订单 -*/ -type CainiaoGlobalLogisticOrderCreateAPIResponse struct { - model.CommonResponse - CainiaoGlobalLogisticOrderCreateResponse -} - -// 创建物流订单 成功返回结果 -type CainiaoGlobalLogisticOrderCreateResponse struct { - XMLName xml.Name `xml:"cainiao_global_logistic_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否需要重试 - NeedRetry bool `json:"need_retry,omitempty" xml:"need_retry,omitempty"` - // 请求结果 - Result *OpenTakingOrderResponse `json:"result,omitempty" xml:"result,omitempty"` - // 创建是否成功 - IsSuccess string `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误信息 - ErrorInfo *ErrorInfo `json:"error_info,omitempty" xml:"error_info,omitempty"` -} diff --git a/model/cainiaohandover/CainiaoGlobalLogisticsCarrierQuerylistAPIRequest.go b/model/cainiaohandover/CainiaoGlobalLogisticsCarrierQuerylistAPIRequest.go new file mode 100644 index 0000000000..672f4562e0 --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalLogisticsCarrierQuerylistAPIRequest.go @@ -0,0 +1,52 @@ +package cainiaohandover + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +实际承运商查询 API请求 +cainiao.global.logistics.carrier.querylist + +查询出所有的实际承运商 +*/ +type CainiaoGlobalLogisticsCarrierQuerylistAPIRequest struct { + model.Params + // 多语言(暂不支持,保留入参) + _locale string +} + +// 初始化CainiaoGlobalLogisticsCarrierQuerylistAPIRequest对象 +func NewCainiaoGlobalLogisticsCarrierQuerylistRequest() *CainiaoGlobalLogisticsCarrierQuerylistAPIRequest{ + return &CainiaoGlobalLogisticsCarrierQuerylistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoGlobalLogisticsCarrierQuerylistAPIRequest) GetApiMethodName() string { + return "cainiao.global.logistics.carrier.querylist" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoGlobalLogisticsCarrierQuerylistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Locale Setter +// 多语言(暂不支持,保留入参) +func (r *CainiaoGlobalLogisticsCarrierQuerylistAPIRequest) SetLocale(_locale string) error { + r._locale = _locale + r.Set("locale", _locale) + return nil +} + +// Locale Getter +func (r CainiaoGlobalLogisticsCarrierQuerylistAPIRequest) GetLocale() string { + return r._locale +} diff --git a/model/cainiaohandover/CainiaoGlobalLogisticsCarrierQuerylistAPIResponse.go b/model/cainiaohandover/CainiaoGlobalLogisticsCarrierQuerylistAPIResponse.go new file mode 100644 index 0000000000..5c6f9e3165 --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalLogisticsCarrierQuerylistAPIResponse.go @@ -0,0 +1,27 @@ +package cainiaohandover + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +实际承运商查询 API返回值 +cainiao.global.logistics.carrier.querylist + +查询出所有的实际承运商 +*/ +type CainiaoGlobalLogisticsCarrierQuerylistAPIResponse struct { + model.CommonResponse + CainiaoGlobalLogisticsCarrierQuerylistAPIResponseModel +} + +// 实际承运商查询 成功返回结果 +type CainiaoGlobalLogisticsCarrierQuerylistAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_global_logistics_carrier_querylist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 1 + Result *DubboResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaohandover/CainiaoGlobalLogisticsCarrierQuerylistResponse.go b/model/cainiaohandover/CainiaoGlobalLogisticsCarrierQuerylistResponse.go deleted file mode 100644 index 620218b474..0000000000 --- a/model/cainiaohandover/CainiaoGlobalLogisticsCarrierQuerylistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cainiaohandover - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -实际承运商查询 API返回值 -cainiao.global.logistics.carrier.querylist - -查询出所有的实际承运商 -*/ -type CainiaoGlobalLogisticsCarrierQuerylistAPIResponse struct { - model.CommonResponse - CainiaoGlobalLogisticsCarrierQuerylistResponse -} - -// 实际承运商查询 成功返回结果 -type CainiaoGlobalLogisticsCarrierQuerylistResponse struct { - XMLName xml.Name `xml:"cainiao_global_logistics_carrier_querylist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 1 - Result *DubboResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaohandover/CainiaoGlobalSolutionInquiryAPIRequest.go b/model/cainiaohandover/CainiaoGlobalSolutionInquiryAPIRequest.go new file mode 100644 index 0000000000..daf611ba62 --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalSolutionInquiryAPIRequest.go @@ -0,0 +1,94 @@ +package cainiaohandover + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +解决方案询盘 API请求 +cainiao.global.solution.inquiry + +根据交易单号查询可用的解决方案 +*/ +type CainiaoGlobalSolutionInquiryAPIRequest struct { + model.Params + // 多语言,zh_CN中文、en_US:英文、ru_RU俄语 + _locale string + // 交易单参数 + _tradeOrderParam *OpenTradeOrderParam + // 商家信息 + _sellerInfoParam *OpenSellerInfoParam + // 包裹参数 + _packageParams []OpenPackageParam +} + +// 初始化CainiaoGlobalSolutionInquiryAPIRequest对象 +func NewCainiaoGlobalSolutionInquiryRequest() *CainiaoGlobalSolutionInquiryAPIRequest{ + return &CainiaoGlobalSolutionInquiryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoGlobalSolutionInquiryAPIRequest) GetApiMethodName() string { + return "cainiao.global.solution.inquiry" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoGlobalSolutionInquiryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Locale Setter +// 多语言,zh_CN中文、en_US:英文、ru_RU俄语 +func (r *CainiaoGlobalSolutionInquiryAPIRequest) SetLocale(_locale string) error { + r._locale = _locale + r.Set("locale", _locale) + return nil +} + +// Locale Getter +func (r CainiaoGlobalSolutionInquiryAPIRequest) GetLocale() string { + return r._locale +} +// TradeOrderParam Setter +// 交易单参数 +func (r *CainiaoGlobalSolutionInquiryAPIRequest) SetTradeOrderParam(_tradeOrderParam *OpenTradeOrderParam) error { + r._tradeOrderParam = _tradeOrderParam + r.Set("trade_order_param", _tradeOrderParam) + return nil +} + +// TradeOrderParam Getter +func (r CainiaoGlobalSolutionInquiryAPIRequest) GetTradeOrderParam() *OpenTradeOrderParam { + return r._tradeOrderParam +} +// SellerInfoParam Setter +// 商家信息 +func (r *CainiaoGlobalSolutionInquiryAPIRequest) SetSellerInfoParam(_sellerInfoParam *OpenSellerInfoParam) error { + r._sellerInfoParam = _sellerInfoParam + r.Set("seller_info_param", _sellerInfoParam) + return nil +} + +// SellerInfoParam Getter +func (r CainiaoGlobalSolutionInquiryAPIRequest) GetSellerInfoParam() *OpenSellerInfoParam { + return r._sellerInfoParam +} +// PackageParams Setter +// 包裹参数 +func (r *CainiaoGlobalSolutionInquiryAPIRequest) SetPackageParams(_packageParams []OpenPackageParam) error { + r._packageParams = _packageParams + r.Set("package_params", _packageParams) + return nil +} + +// PackageParams Getter +func (r CainiaoGlobalSolutionInquiryAPIRequest) GetPackageParams() []OpenPackageParam { + return r._packageParams +} diff --git a/model/cainiaohandover/CainiaoGlobalSolutionInquiryAPIResponse.go b/model/cainiaohandover/CainiaoGlobalSolutionInquiryAPIResponse.go new file mode 100644 index 0000000000..93942ae501 --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalSolutionInquiryAPIResponse.go @@ -0,0 +1,31 @@ +package cainiaohandover + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +解决方案询盘 API返回值 +cainiao.global.solution.inquiry + +根据交易单号查询可用的解决方案 +*/ +type CainiaoGlobalSolutionInquiryAPIResponse struct { + model.CommonResponse + CainiaoGlobalSolutionInquiryAPIResponseModel +} + +// 解决方案询盘 成功返回结果 +type CainiaoGlobalSolutionInquiryAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_global_solution_inquiry_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误信息 + ErrorInfo *ErrorInfo `json:"error_info,omitempty" xml:"error_info,omitempty"` + // 请求结果 + Result *OpenSolutionInquiryResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaohandover/CainiaoGlobalSolutionInquiryResponse.go b/model/cainiaohandover/CainiaoGlobalSolutionInquiryResponse.go deleted file mode 100644 index 04989d11b3..0000000000 --- a/model/cainiaohandover/CainiaoGlobalSolutionInquiryResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package cainiaohandover - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -解决方案询盘 API返回值 -cainiao.global.solution.inquiry - -根据交易单号查询可用的解决方案 -*/ -type CainiaoGlobalSolutionInquiryAPIResponse struct { - model.CommonResponse - CainiaoGlobalSolutionInquiryResponse -} - -// 解决方案询盘 成功返回结果 -type CainiaoGlobalSolutionInquiryResponse struct { - XMLName xml.Name `xml:"cainiao_global_solution_inquiry_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误信息 - ErrorInfo *ErrorInfo `json:"error_info,omitempty" xml:"error_info,omitempty"` - // 请求结果 - Result *OpenSolutionInquiryResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaohandover/CainiaoGlobalSolutionServiceResourceQueryAPIRequest.go b/model/cainiaohandover/CainiaoGlobalSolutionServiceResourceQueryAPIRequest.go new file mode 100644 index 0000000000..2f483cedd9 --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalSolutionServiceResourceQueryAPIRequest.go @@ -0,0 +1,94 @@ +package cainiaohandover + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询解决方案服务资源列表 API请求 +cainiao.global.solution.service.resource.query + +返回直接解决方案的指定物流服务的可用资源列表 +*/ +type CainiaoGlobalSolutionServiceResourceQueryAPIRequest struct { + model.Params + // 多语言信息 + _locale string + // 商家信息 + _sellerParam *SellerParam + // 查询参数 + _solutionServiceResParam *QuerySolutionServiceResParam + // 发件信息 + _senderParam *OpenSenderParam +} + +// 初始化CainiaoGlobalSolutionServiceResourceQueryAPIRequest对象 +func NewCainiaoGlobalSolutionServiceResourceQueryRequest() *CainiaoGlobalSolutionServiceResourceQueryAPIRequest{ + return &CainiaoGlobalSolutionServiceResourceQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoGlobalSolutionServiceResourceQueryAPIRequest) GetApiMethodName() string { + return "cainiao.global.solution.service.resource.query" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoGlobalSolutionServiceResourceQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Locale Setter +// 多语言信息 +func (r *CainiaoGlobalSolutionServiceResourceQueryAPIRequest) SetLocale(_locale string) error { + r._locale = _locale + r.Set("locale", _locale) + return nil +} + +// Locale Getter +func (r CainiaoGlobalSolutionServiceResourceQueryAPIRequest) GetLocale() string { + return r._locale +} +// SellerParam Setter +// 商家信息 +func (r *CainiaoGlobalSolutionServiceResourceQueryAPIRequest) SetSellerParam(_sellerParam *SellerParam) error { + r._sellerParam = _sellerParam + r.Set("seller_param", _sellerParam) + return nil +} + +// SellerParam Getter +func (r CainiaoGlobalSolutionServiceResourceQueryAPIRequest) GetSellerParam() *SellerParam { + return r._sellerParam +} +// SolutionServiceResParam Setter +// 查询参数 +func (r *CainiaoGlobalSolutionServiceResourceQueryAPIRequest) SetSolutionServiceResParam(_solutionServiceResParam *QuerySolutionServiceResParam) error { + r._solutionServiceResParam = _solutionServiceResParam + r.Set("solution_service_res_param", _solutionServiceResParam) + return nil +} + +// SolutionServiceResParam Getter +func (r CainiaoGlobalSolutionServiceResourceQueryAPIRequest) GetSolutionServiceResParam() *QuerySolutionServiceResParam { + return r._solutionServiceResParam +} +// SenderParam Setter +// 发件信息 +func (r *CainiaoGlobalSolutionServiceResourceQueryAPIRequest) SetSenderParam(_senderParam *OpenSenderParam) error { + r._senderParam = _senderParam + r.Set("sender_param", _senderParam) + return nil +} + +// SenderParam Getter +func (r CainiaoGlobalSolutionServiceResourceQueryAPIRequest) GetSenderParam() *OpenSenderParam { + return r._senderParam +} diff --git a/model/cainiaohandover/CainiaoGlobalSolutionServiceResourceQueryAPIResponse.go b/model/cainiaohandover/CainiaoGlobalSolutionServiceResourceQueryAPIResponse.go new file mode 100644 index 0000000000..c0880b720d --- /dev/null +++ b/model/cainiaohandover/CainiaoGlobalSolutionServiceResourceQueryAPIResponse.go @@ -0,0 +1,27 @@ +package cainiaohandover + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询解决方案服务资源列表 API返回值 +cainiao.global.solution.service.resource.query + +返回直接解决方案的指定物流服务的可用资源列表 +*/ +type CainiaoGlobalSolutionServiceResourceQueryAPIResponse struct { + model.CommonResponse + CainiaoGlobalSolutionServiceResourceQueryAPIResponseModel +} + +// 查询解决方案服务资源列表 成功返回结果 +type CainiaoGlobalSolutionServiceResourceQueryAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_global_solution_service_resource_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求结果 + Result *GlspResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaohandover/CainiaoGlobalSolutionServiceResourceQueryResponse.go b/model/cainiaohandover/CainiaoGlobalSolutionServiceResourceQueryResponse.go deleted file mode 100644 index 90de8ab4ab..0000000000 --- a/model/cainiaohandover/CainiaoGlobalSolutionServiceResourceQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cainiaohandover - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询解决方案服务资源列表 API返回值 -cainiao.global.solution.service.resource.query - -返回直接解决方案的指定物流服务的可用资源列表 -*/ -type CainiaoGlobalSolutionServiceResourceQueryAPIResponse struct { - model.CommonResponse - CainiaoGlobalSolutionServiceResourceQueryResponse -} - -// 查询解决方案服务资源列表 成功返回结果 -type CainiaoGlobalSolutionServiceResourceQueryResponse struct { - XMLName xml.Name `xml:"cainiao_global_solution_service_resource_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求结果 - Result *GlspResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticeAPIRequest.go b/model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticeAPIRequest.go new file mode 100644 index 0000000000..341e12431d --- /dev/null +++ b/model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticeAPIRequest.go @@ -0,0 +1,94 @@ +package cainiaolocker + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +手动触发发短信 API请求 +cainiao.endpoint.locker.top.order.notice + +合作公司对订单手动触发短信,有次数限制 +*/ +type CainiaoEndpointLockerTopOrderNoticeAPIRequest struct { + model.Params + // 合作公司唯一订单编号 + _orderCode string + // 站点ID + _stationId string + // 运单号 + _mailNo string + // 场景编号:0:重发短信,1:催取短信 + _sceneCode int64 +} + +// 初始化CainiaoEndpointLockerTopOrderNoticeAPIRequest对象 +func NewCainiaoEndpointLockerTopOrderNoticeRequest() *CainiaoEndpointLockerTopOrderNoticeAPIRequest{ + return &CainiaoEndpointLockerTopOrderNoticeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoEndpointLockerTopOrderNoticeAPIRequest) GetApiMethodName() string { + return "cainiao.endpoint.locker.top.order.notice" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoEndpointLockerTopOrderNoticeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderCode Setter +// 合作公司唯一订单编号 +func (r *CainiaoEndpointLockerTopOrderNoticeAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r CainiaoEndpointLockerTopOrderNoticeAPIRequest) GetOrderCode() string { + return r._orderCode +} +// StationId Setter +// 站点ID +func (r *CainiaoEndpointLockerTopOrderNoticeAPIRequest) SetStationId(_stationId string) error { + r._stationId = _stationId + r.Set("station_id", _stationId) + return nil +} + +// StationId Getter +func (r CainiaoEndpointLockerTopOrderNoticeAPIRequest) GetStationId() string { + return r._stationId +} +// MailNo Setter +// 运单号 +func (r *CainiaoEndpointLockerTopOrderNoticeAPIRequest) SetMailNo(_mailNo string) error { + r._mailNo = _mailNo + r.Set("mail_no", _mailNo) + return nil +} + +// MailNo Getter +func (r CainiaoEndpointLockerTopOrderNoticeAPIRequest) GetMailNo() string { + return r._mailNo +} +// SceneCode Setter +// 场景编号:0:重发短信,1:催取短信 +func (r *CainiaoEndpointLockerTopOrderNoticeAPIRequest) SetSceneCode(_sceneCode int64) error { + r._sceneCode = _sceneCode + r.Set("scene_code", _sceneCode) + return nil +} + +// SceneCode Getter +func (r CainiaoEndpointLockerTopOrderNoticeAPIRequest) GetSceneCode() int64 { + return r._sceneCode +} diff --git a/model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticeAPIResponse.go b/model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticeAPIResponse.go new file mode 100644 index 0000000000..6f20e2e065 --- /dev/null +++ b/model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticeAPIResponse.go @@ -0,0 +1,27 @@ +package cainiaolocker + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +手动触发发短信 API返回值 +cainiao.endpoint.locker.top.order.notice + +合作公司对订单手动触发短信,有次数限制 +*/ +type CainiaoEndpointLockerTopOrderNoticeAPIResponse struct { + model.CommonResponse + CainiaoEndpointLockerTopOrderNoticeAPIResponseModel +} + +// 手动触发发短信 成功返回结果 +type CainiaoEndpointLockerTopOrderNoticeAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_endpoint_locker_top_order_notice_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticeResponse.go b/model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticeResponse.go deleted file mode 100644 index a3ea1dfcc8..0000000000 --- a/model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cainiaolocker - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -手动触发发短信 API返回值 -cainiao.endpoint.locker.top.order.notice - -合作公司对订单手动触发短信,有次数限制 -*/ -type CainiaoEndpointLockerTopOrderNoticeAPIResponse struct { - model.CommonResponse - CainiaoEndpointLockerTopOrderNoticeResponse -} - -// 手动触发发短信 成功返回结果 -type CainiaoEndpointLockerTopOrderNoticeResponse struct { - XMLName xml.Name `xml:"cainiao_endpoint_locker_top_order_notice_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticesendQueryAPIRequest.go b/model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticesendQueryAPIRequest.go new file mode 100644 index 0000000000..786b127c28 --- /dev/null +++ b/model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticesendQueryAPIRequest.go @@ -0,0 +1,80 @@ +package cainiaolocker + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询订单是否由裹裹发送消息 API请求 +cainiao.endpoint.locker.top.order.noticesend.query + +合作公司查询消息发送的接口,判断是否裹裹发送消息 +*/ +type CainiaoEndpointLockerTopOrderNoticesendQueryAPIRequest struct { + model.Params + // 站点id + _stationId string + // 收件人手机号 + _getterPhone string + // 运单号 + _mailNo string +} + +// 初始化CainiaoEndpointLockerTopOrderNoticesendQueryAPIRequest对象 +func NewCainiaoEndpointLockerTopOrderNoticesendQueryRequest() *CainiaoEndpointLockerTopOrderNoticesendQueryAPIRequest{ + return &CainiaoEndpointLockerTopOrderNoticesendQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoEndpointLockerTopOrderNoticesendQueryAPIRequest) GetApiMethodName() string { + return "cainiao.endpoint.locker.top.order.noticesend.query" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoEndpointLockerTopOrderNoticesendQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StationId Setter +// 站点id +func (r *CainiaoEndpointLockerTopOrderNoticesendQueryAPIRequest) SetStationId(_stationId string) error { + r._stationId = _stationId + r.Set("station_id", _stationId) + return nil +} + +// StationId Getter +func (r CainiaoEndpointLockerTopOrderNoticesendQueryAPIRequest) GetStationId() string { + return r._stationId +} +// GetterPhone Setter +// 收件人手机号 +func (r *CainiaoEndpointLockerTopOrderNoticesendQueryAPIRequest) SetGetterPhone(_getterPhone string) error { + r._getterPhone = _getterPhone + r.Set("getter_phone", _getterPhone) + return nil +} + +// GetterPhone Getter +func (r CainiaoEndpointLockerTopOrderNoticesendQueryAPIRequest) GetGetterPhone() string { + return r._getterPhone +} +// MailNo Setter +// 运单号 +func (r *CainiaoEndpointLockerTopOrderNoticesendQueryAPIRequest) SetMailNo(_mailNo string) error { + r._mailNo = _mailNo + r.Set("mail_no", _mailNo) + return nil +} + +// MailNo Getter +func (r CainiaoEndpointLockerTopOrderNoticesendQueryAPIRequest) GetMailNo() string { + return r._mailNo +} diff --git a/model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticesendQueryAPIResponse.go b/model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticesendQueryAPIResponse.go new file mode 100644 index 0000000000..d098f0c8ca --- /dev/null +++ b/model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticesendQueryAPIResponse.go @@ -0,0 +1,27 @@ +package cainiaolocker + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询订单是否由裹裹发送消息 API返回值 +cainiao.endpoint.locker.top.order.noticesend.query + +合作公司查询消息发送的接口,判断是否裹裹发送消息 +*/ +type CainiaoEndpointLockerTopOrderNoticesendQueryAPIResponse struct { + model.CommonResponse + CainiaoEndpointLockerTopOrderNoticesendQueryAPIResponseModel +} + +// 查询订单是否由裹裹发送消息 成功返回结果 +type CainiaoEndpointLockerTopOrderNoticesendQueryAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_endpoint_locker_top_order_noticesend_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticesendQueryResponse.go b/model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticesendQueryResponse.go deleted file mode 100644 index f45311b82c..0000000000 --- a/model/cainiaolocker/CainiaoEndpointLockerTopOrderNoticesendQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cainiaolocker - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询订单是否由裹裹发送消息 API返回值 -cainiao.endpoint.locker.top.order.noticesend.query - -合作公司查询消息发送的接口,判断是否裹裹发送消息 -*/ -type CainiaoEndpointLockerTopOrderNoticesendQueryAPIResponse struct { - model.CommonResponse - CainiaoEndpointLockerTopOrderNoticesendQueryResponse -} - -// 查询订单是否由裹裹发送消息 成功返回结果 -type CainiaoEndpointLockerTopOrderNoticesendQueryResponse struct { - XMLName xml.Name `xml:"cainiao_endpoint_locker_top_order_noticesend_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaolocker/CainiaoEndpointLockerTopOrderTrackingNewAPIRequest.go b/model/cainiaolocker/CainiaoEndpointLockerTopOrderTrackingNewAPIRequest.go new file mode 100644 index 0000000000..ea73460df7 --- /dev/null +++ b/model/cainiaolocker/CainiaoEndpointLockerTopOrderTrackingNewAPIRequest.go @@ -0,0 +1,52 @@ +package cainiaolocker + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +事件回传接口 API请求 +cainiao.endpoint.locker.top.order.tracking.new + +用于合作公司通知入站、出站信息到菜鸟,共定义了5个操作,1个投件操作,3个取件操作,1个超时提醒。 +*/ +type CainiaoEndpointLockerTopOrderTrackingNewAPIRequest struct { + model.Params + // 回传信息 + _trackInfo *CollectTrackingInfo +} + +// 初始化CainiaoEndpointLockerTopOrderTrackingNewAPIRequest对象 +func NewCainiaoEndpointLockerTopOrderTrackingNewRequest() *CainiaoEndpointLockerTopOrderTrackingNewAPIRequest{ + return &CainiaoEndpointLockerTopOrderTrackingNewAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoEndpointLockerTopOrderTrackingNewAPIRequest) GetApiMethodName() string { + return "cainiao.endpoint.locker.top.order.tracking.new" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoEndpointLockerTopOrderTrackingNewAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TrackInfo Setter +// 回传信息 +func (r *CainiaoEndpointLockerTopOrderTrackingNewAPIRequest) SetTrackInfo(_trackInfo *CollectTrackingInfo) error { + r._trackInfo = _trackInfo + r.Set("track_info", _trackInfo) + return nil +} + +// TrackInfo Getter +func (r CainiaoEndpointLockerTopOrderTrackingNewAPIRequest) GetTrackInfo() *CollectTrackingInfo { + return r._trackInfo +} diff --git a/model/cainiaolocker/CainiaoEndpointLockerTopOrderTrackingNewAPIResponse.go b/model/cainiaolocker/CainiaoEndpointLockerTopOrderTrackingNewAPIResponse.go new file mode 100644 index 0000000000..090605f1f2 --- /dev/null +++ b/model/cainiaolocker/CainiaoEndpointLockerTopOrderTrackingNewAPIResponse.go @@ -0,0 +1,27 @@ +package cainiaolocker + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +事件回传接口 API返回值 +cainiao.endpoint.locker.top.order.tracking.new + +用于合作公司通知入站、出站信息到菜鸟,共定义了5个操作,1个投件操作,3个取件操作,1个超时提醒。 +*/ +type CainiaoEndpointLockerTopOrderTrackingNewAPIResponse struct { + model.CommonResponse + CainiaoEndpointLockerTopOrderTrackingNewAPIResponseModel +} + +// 事件回传接口 成功返回结果 +type CainiaoEndpointLockerTopOrderTrackingNewAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_endpoint_locker_top_order_tracking_new_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaolocker/CainiaoEndpointLockerTopOrderTrackingNewResponse.go b/model/cainiaolocker/CainiaoEndpointLockerTopOrderTrackingNewResponse.go deleted file mode 100644 index 0f37ac9b6a..0000000000 --- a/model/cainiaolocker/CainiaoEndpointLockerTopOrderTrackingNewResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cainiaolocker - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -事件回传接口 API返回值 -cainiao.endpoint.locker.top.order.tracking.new - -用于合作公司通知入站、出站信息到菜鸟,共定义了5个操作,1个投件操作,3个取件操作,1个超时提醒。 -*/ -type CainiaoEndpointLockerTopOrderTrackingNewAPIResponse struct { - model.CommonResponse - CainiaoEndpointLockerTopOrderTrackingNewResponse -} - -// 事件回传接口 成功返回结果 -type CainiaoEndpointLockerTopOrderTrackingNewResponse struct { - XMLName xml.Name `xml:"cainiao_endpoint_locker_top_order_tracking_new_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaolocker/CainiaoEndpointLockerTopOrderWithholdAPIRequest.go b/model/cainiaolocker/CainiaoEndpointLockerTopOrderWithholdAPIRequest.go new file mode 100644 index 0000000000..be7e242202 --- /dev/null +++ b/model/cainiaolocker/CainiaoEndpointLockerTopOrderWithholdAPIRequest.go @@ -0,0 +1,150 @@ +package cainiaolocker + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +代扣支付 API请求 +cainiao.endpoint.locker.top.order.withhold + +提供代扣,允许有一笔欠款。 +*/ +type CainiaoEndpointLockerTopOrderWithholdAPIRequest struct { + model.Params + // 柜子公司编码 + _companyCode string + // 柜子id + _guiId string + // 订单类型(0-取件业务,1-寄件业务,2-派样业务) + _orderType int64 + // 开放用户id + _openUserId string + // 代扣金额(全额),单位:分 + _totalFee int64 + // 扩展字段 + _extra string + // 柜子订单编码 + _orderCode string + // 运单号 + _mailNo string +} + +// 初始化CainiaoEndpointLockerTopOrderWithholdAPIRequest对象 +func NewCainiaoEndpointLockerTopOrderWithholdRequest() *CainiaoEndpointLockerTopOrderWithholdAPIRequest{ + return &CainiaoEndpointLockerTopOrderWithholdAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoEndpointLockerTopOrderWithholdAPIRequest) GetApiMethodName() string { + return "cainiao.endpoint.locker.top.order.withhold" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoEndpointLockerTopOrderWithholdAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CompanyCode Setter +// 柜子公司编码 +func (r *CainiaoEndpointLockerTopOrderWithholdAPIRequest) SetCompanyCode(_companyCode string) error { + r._companyCode = _companyCode + r.Set("company_code", _companyCode) + return nil +} + +// CompanyCode Getter +func (r CainiaoEndpointLockerTopOrderWithholdAPIRequest) GetCompanyCode() string { + return r._companyCode +} +// GuiId Setter +// 柜子id +func (r *CainiaoEndpointLockerTopOrderWithholdAPIRequest) SetGuiId(_guiId string) error { + r._guiId = _guiId + r.Set("gui_id", _guiId) + return nil +} + +// GuiId Getter +func (r CainiaoEndpointLockerTopOrderWithholdAPIRequest) GetGuiId() string { + return r._guiId +} +// OrderType Setter +// 订单类型(0-取件业务,1-寄件业务,2-派样业务) +func (r *CainiaoEndpointLockerTopOrderWithholdAPIRequest) SetOrderType(_orderType int64) error { + r._orderType = _orderType + r.Set("order_type", _orderType) + return nil +} + +// OrderType Getter +func (r CainiaoEndpointLockerTopOrderWithholdAPIRequest) GetOrderType() int64 { + return r._orderType +} +// OpenUserId Setter +// 开放用户id +func (r *CainiaoEndpointLockerTopOrderWithholdAPIRequest) SetOpenUserId(_openUserId string) error { + r._openUserId = _openUserId + r.Set("open_user_id", _openUserId) + return nil +} + +// OpenUserId Getter +func (r CainiaoEndpointLockerTopOrderWithholdAPIRequest) GetOpenUserId() string { + return r._openUserId +} +// TotalFee Setter +// 代扣金额(全额),单位:分 +func (r *CainiaoEndpointLockerTopOrderWithholdAPIRequest) SetTotalFee(_totalFee int64) error { + r._totalFee = _totalFee + r.Set("total_fee", _totalFee) + return nil +} + +// TotalFee Getter +func (r CainiaoEndpointLockerTopOrderWithholdAPIRequest) GetTotalFee() int64 { + return r._totalFee +} +// Extra Setter +// 扩展字段 +func (r *CainiaoEndpointLockerTopOrderWithholdAPIRequest) SetExtra(_extra string) error { + r._extra = _extra + r.Set("extra", _extra) + return nil +} + +// Extra Getter +func (r CainiaoEndpointLockerTopOrderWithholdAPIRequest) GetExtra() string { + return r._extra +} +// OrderCode Setter +// 柜子订单编码 +func (r *CainiaoEndpointLockerTopOrderWithholdAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r CainiaoEndpointLockerTopOrderWithholdAPIRequest) GetOrderCode() string { + return r._orderCode +} +// MailNo Setter +// 运单号 +func (r *CainiaoEndpointLockerTopOrderWithholdAPIRequest) SetMailNo(_mailNo string) error { + r._mailNo = _mailNo + r.Set("mail_no", _mailNo) + return nil +} + +// MailNo Getter +func (r CainiaoEndpointLockerTopOrderWithholdAPIRequest) GetMailNo() string { + return r._mailNo +} diff --git a/model/cainiaolocker/CainiaoEndpointLockerTopOrderWithholdAPIResponse.go b/model/cainiaolocker/CainiaoEndpointLockerTopOrderWithholdAPIResponse.go new file mode 100644 index 0000000000..0824a548b6 --- /dev/null +++ b/model/cainiaolocker/CainiaoEndpointLockerTopOrderWithholdAPIResponse.go @@ -0,0 +1,27 @@ +package cainiaolocker + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +代扣支付 API返回值 +cainiao.endpoint.locker.top.order.withhold + +提供代扣,允许有一笔欠款。 +*/ +type CainiaoEndpointLockerTopOrderWithholdAPIResponse struct { + model.CommonResponse + CainiaoEndpointLockerTopOrderWithholdAPIResponseModel +} + +// 代扣支付 成功返回结果 +type CainiaoEndpointLockerTopOrderWithholdAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_endpoint_locker_top_order_withhold_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaolocker/CainiaoEndpointLockerTopOrderWithholdResponse.go b/model/cainiaolocker/CainiaoEndpointLockerTopOrderWithholdResponse.go deleted file mode 100644 index c11d849df1..0000000000 --- a/model/cainiaolocker/CainiaoEndpointLockerTopOrderWithholdResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cainiaolocker - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -代扣支付 API返回值 -cainiao.endpoint.locker.top.order.withhold - -提供代扣,允许有一笔欠款。 -*/ -type CainiaoEndpointLockerTopOrderWithholdAPIResponse struct { - model.CommonResponse - CainiaoEndpointLockerTopOrderWithholdResponse -} - -// 代扣支付 成功返回结果 -type CainiaoEndpointLockerTopOrderWithholdResponse struct { - XMLName xml.Name `xml:"cainiao_endpoint_locker_top_order_withhold_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaolocker/CainiaoEndpointLockerTopStationAddorupdateAPIRequest.go b/model/cainiaolocker/CainiaoEndpointLockerTopStationAddorupdateAPIRequest.go new file mode 100644 index 0000000000..64648b41c3 --- /dev/null +++ b/model/cainiaolocker/CainiaoEndpointLockerTopStationAddorupdateAPIRequest.go @@ -0,0 +1,52 @@ +package cainiaolocker + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +增加更新代收点 API请求 +cainiao.endpoint.locker.top.station.addorupdate + +新增或者修改代收点相关信息 +*/ +type CainiaoEndpointLockerTopStationAddorupdateAPIRequest struct { + model.Params + // 站点信息 + _stationInfo *StationInfo +} + +// 初始化CainiaoEndpointLockerTopStationAddorupdateAPIRequest对象 +func NewCainiaoEndpointLockerTopStationAddorupdateRequest() *CainiaoEndpointLockerTopStationAddorupdateAPIRequest{ + return &CainiaoEndpointLockerTopStationAddorupdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoEndpointLockerTopStationAddorupdateAPIRequest) GetApiMethodName() string { + return "cainiao.endpoint.locker.top.station.addorupdate" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoEndpointLockerTopStationAddorupdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StationInfo Setter +// 站点信息 +func (r *CainiaoEndpointLockerTopStationAddorupdateAPIRequest) SetStationInfo(_stationInfo *StationInfo) error { + r._stationInfo = _stationInfo + r.Set("station_info", _stationInfo) + return nil +} + +// StationInfo Getter +func (r CainiaoEndpointLockerTopStationAddorupdateAPIRequest) GetStationInfo() *StationInfo { + return r._stationInfo +} diff --git a/model/cainiaolocker/CainiaoEndpointLockerTopStationAddorupdateAPIResponse.go b/model/cainiaolocker/CainiaoEndpointLockerTopStationAddorupdateAPIResponse.go new file mode 100644 index 0000000000..4fd46f2ca2 --- /dev/null +++ b/model/cainiaolocker/CainiaoEndpointLockerTopStationAddorupdateAPIResponse.go @@ -0,0 +1,27 @@ +package cainiaolocker + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +增加更新代收点 API返回值 +cainiao.endpoint.locker.top.station.addorupdate + +新增或者修改代收点相关信息 +*/ +type CainiaoEndpointLockerTopStationAddorupdateAPIResponse struct { + model.CommonResponse + CainiaoEndpointLockerTopStationAddorupdateAPIResponseModel +} + +// 增加更新代收点 成功返回结果 +type CainiaoEndpointLockerTopStationAddorupdateAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_endpoint_locker_top_station_addorupdate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaolocker/CainiaoEndpointLockerTopStationAddorupdateResponse.go b/model/cainiaolocker/CainiaoEndpointLockerTopStationAddorupdateResponse.go deleted file mode 100644 index 9b23745f98..0000000000 --- a/model/cainiaolocker/CainiaoEndpointLockerTopStationAddorupdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cainiaolocker - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -增加更新代收点 API返回值 -cainiao.endpoint.locker.top.station.addorupdate - -新增或者修改代收点相关信息 -*/ -type CainiaoEndpointLockerTopStationAddorupdateAPIResponse struct { - model.CommonResponse - CainiaoEndpointLockerTopStationAddorupdateResponse -} - -// 增加更新代收点 成功返回结果 -type CainiaoEndpointLockerTopStationAddorupdateResponse struct { - XMLName xml.Name `xml:"cainiao_endpoint_locker_top_station_addorupdate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaolocker/CainiaoEndpointLockerTopWithholdQueryAPIRequest.go b/model/cainiaolocker/CainiaoEndpointLockerTopWithholdQueryAPIRequest.go new file mode 100644 index 0000000000..8b0e760623 --- /dev/null +++ b/model/cainiaolocker/CainiaoEndpointLockerTopWithholdQueryAPIRequest.go @@ -0,0 +1,80 @@ +package cainiaolocker + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询能否代扣 API请求 +cainiao.endpoint.locker.top.withhold.query + +查询是否有代扣欠款,是否签署代扣协议。 +*/ +type CainiaoEndpointLockerTopWithholdQueryAPIRequest struct { + model.Params + // 柜子公司编码 + _companyCode string + // 开放用户Id + _openUserId string + // 柜子业务:0-取件业务,1-寄件业务,2-派样业务,3-小件员约柜(在约期内仅能使用一次)4-小件员租柜(在约期内可反复使用) + _orderType int64 +} + +// 初始化CainiaoEndpointLockerTopWithholdQueryAPIRequest对象 +func NewCainiaoEndpointLockerTopWithholdQueryRequest() *CainiaoEndpointLockerTopWithholdQueryAPIRequest{ + return &CainiaoEndpointLockerTopWithholdQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoEndpointLockerTopWithholdQueryAPIRequest) GetApiMethodName() string { + return "cainiao.endpoint.locker.top.withhold.query" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoEndpointLockerTopWithholdQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CompanyCode Setter +// 柜子公司编码 +func (r *CainiaoEndpointLockerTopWithholdQueryAPIRequest) SetCompanyCode(_companyCode string) error { + r._companyCode = _companyCode + r.Set("company_code", _companyCode) + return nil +} + +// CompanyCode Getter +func (r CainiaoEndpointLockerTopWithholdQueryAPIRequest) GetCompanyCode() string { + return r._companyCode +} +// OpenUserId Setter +// 开放用户Id +func (r *CainiaoEndpointLockerTopWithholdQueryAPIRequest) SetOpenUserId(_openUserId string) error { + r._openUserId = _openUserId + r.Set("open_user_id", _openUserId) + return nil +} + +// OpenUserId Getter +func (r CainiaoEndpointLockerTopWithholdQueryAPIRequest) GetOpenUserId() string { + return r._openUserId +} +// OrderType Setter +// 柜子业务:0-取件业务,1-寄件业务,2-派样业务,3-小件员约柜(在约期内仅能使用一次)4-小件员租柜(在约期内可反复使用) +func (r *CainiaoEndpointLockerTopWithholdQueryAPIRequest) SetOrderType(_orderType int64) error { + r._orderType = _orderType + r.Set("order_type", _orderType) + return nil +} + +// OrderType Getter +func (r CainiaoEndpointLockerTopWithholdQueryAPIRequest) GetOrderType() int64 { + return r._orderType +} diff --git a/model/cainiaolocker/CainiaoEndpointLockerTopWithholdQueryAPIResponse.go b/model/cainiaolocker/CainiaoEndpointLockerTopWithholdQueryAPIResponse.go new file mode 100644 index 0000000000..9801ae918c --- /dev/null +++ b/model/cainiaolocker/CainiaoEndpointLockerTopWithholdQueryAPIResponse.go @@ -0,0 +1,27 @@ +package cainiaolocker + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询能否代扣 API返回值 +cainiao.endpoint.locker.top.withhold.query + +查询是否有代扣欠款,是否签署代扣协议。 +*/ +type CainiaoEndpointLockerTopWithholdQueryAPIResponse struct { + model.CommonResponse + CainiaoEndpointLockerTopWithholdQueryAPIResponseModel +} + +// 查询能否代扣 成功返回结果 +type CainiaoEndpointLockerTopWithholdQueryAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_endpoint_locker_top_withhold_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // response + Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaolocker/CainiaoEndpointLockerTopWithholdQueryResponse.go b/model/cainiaolocker/CainiaoEndpointLockerTopWithholdQueryResponse.go deleted file mode 100644 index 255aeb8e1b..0000000000 --- a/model/cainiaolocker/CainiaoEndpointLockerTopWithholdQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cainiaolocker - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询能否代扣 API返回值 -cainiao.endpoint.locker.top.withhold.query - -查询是否有代扣欠款,是否签署代扣协议。 -*/ -type CainiaoEndpointLockerTopWithholdQueryAPIResponse struct { - model.CommonResponse - CainiaoEndpointLockerTopWithholdQueryResponse -} - -// 查询能否代扣 成功返回结果 -type CainiaoEndpointLockerTopWithholdQueryResponse struct { - XMLName xml.Name `xml:"cainiao_endpoint_locker_top_withhold_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // response - Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaolocker/CainiaoNbaddAppointdeliverFeedbackcodesAPIRequest.go b/model/cainiaolocker/CainiaoNbaddAppointdeliverFeedbackcodesAPIRequest.go new file mode 100644 index 0000000000..2d24f62848 --- /dev/null +++ b/model/cainiaolocker/CainiaoNbaddAppointdeliverFeedbackcodesAPIRequest.go @@ -0,0 +1,38 @@ +package cainiaolocker + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务质量反馈编码列表 API请求 +cainiao.nbadd.appointdeliver.feedbackcodes + +服务质量反馈编码列表,建议获取数据后缓存在本地,定时刷新即可 +*/ +type CainiaoNbaddAppointdeliverFeedbackcodesAPIRequest struct { + model.Params +} + +// 初始化CainiaoNbaddAppointdeliverFeedbackcodesAPIRequest对象 +func NewCainiaoNbaddAppointdeliverFeedbackcodesRequest() *CainiaoNbaddAppointdeliverFeedbackcodesAPIRequest{ + return &CainiaoNbaddAppointdeliverFeedbackcodesAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoNbaddAppointdeliverFeedbackcodesAPIRequest) GetApiMethodName() string { + return "cainiao.nbadd.appointdeliver.feedbackcodes" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoNbaddAppointdeliverFeedbackcodesAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/cainiaolocker/CainiaoNbaddAppointdeliverFeedbackcodesAPIResponse.go b/model/cainiaolocker/CainiaoNbaddAppointdeliverFeedbackcodesAPIResponse.go new file mode 100644 index 0000000000..1a75ffd80f --- /dev/null +++ b/model/cainiaolocker/CainiaoNbaddAppointdeliverFeedbackcodesAPIResponse.go @@ -0,0 +1,33 @@ +package cainiaolocker + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务质量反馈编码列表 API返回值 +cainiao.nbadd.appointdeliver.feedbackcodes + +服务质量反馈编码列表,建议获取数据后缓存在本地,定时刷新即可 +*/ +type CainiaoNbaddAppointdeliverFeedbackcodesAPIResponse struct { + model.CommonResponse + CainiaoNbaddAppointdeliverFeedbackcodesAPIResponseModel +} + +// 服务质量反馈编码列表 成功返回结果 +type CainiaoNbaddAppointdeliverFeedbackcodesAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_nbadd_appointdeliver_feedbackcodes_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误描述 + ResultDesc string `json:"result_desc,omitempty" xml:"result_desc,omitempty"` + // 错误编码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 接口调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 返回的具体数据 + ResultList []FeedbackCodeDto `json:"result_list,omitempty" xml:"result_list>feedback_code_dto,omitempty"` +} diff --git a/model/cainiaolocker/CainiaoNbaddAppointdeliverFeedbackcodesResponse.go b/model/cainiaolocker/CainiaoNbaddAppointdeliverFeedbackcodesResponse.go deleted file mode 100644 index 7ded2a4086..0000000000 --- a/model/cainiaolocker/CainiaoNbaddAppointdeliverFeedbackcodesResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package cainiaolocker - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务质量反馈编码列表 API返回值 -cainiao.nbadd.appointdeliver.feedbackcodes - -服务质量反馈编码列表,建议获取数据后缓存在本地,定时刷新即可 -*/ -type CainiaoNbaddAppointdeliverFeedbackcodesAPIResponse struct { - model.CommonResponse - CainiaoNbaddAppointdeliverFeedbackcodesResponse -} - -// 服务质量反馈编码列表 成功返回结果 -type CainiaoNbaddAppointdeliverFeedbackcodesResponse struct { - XMLName xml.Name `xml:"cainiao_nbadd_appointdeliver_feedbackcodes_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误描述 - ResultDesc string `json:"result_desc,omitempty" xml:"result_desc,omitempty"` - // 错误编码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 接口调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 返回的具体数据 - ResultList []FeedbackCodeDto `json:"result_list,omitempty" xml:"result_list>feedback_code_dto,omitempty"` -} diff --git a/model/cainiaolocker/CainiaoNbaddAppointdeliverGetconsigninfoAPIRequest.go b/model/cainiaolocker/CainiaoNbaddAppointdeliverGetconsigninfoAPIRequest.go new file mode 100644 index 0000000000..1959065a7f --- /dev/null +++ b/model/cainiaolocker/CainiaoNbaddAppointdeliverGetconsigninfoAPIRequest.go @@ -0,0 +1,52 @@ +package cainiaolocker + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取支持定时派送服务发货信息 API请求 +cainiao.nbadd.appointdeliver.getconsigninfo + +获取支持定时派送服务发货信息 +*/ +type CainiaoNbaddAppointdeliverGetconsigninfoAPIRequest struct { + model.Params + // 淘宝交易订单id + _tradeOrderId int64 +} + +// 初始化CainiaoNbaddAppointdeliverGetconsigninfoAPIRequest对象 +func NewCainiaoNbaddAppointdeliverGetconsigninfoRequest() *CainiaoNbaddAppointdeliverGetconsigninfoAPIRequest{ + return &CainiaoNbaddAppointdeliverGetconsigninfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoNbaddAppointdeliverGetconsigninfoAPIRequest) GetApiMethodName() string { + return "cainiao.nbadd.appointdeliver.getconsigninfo" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoNbaddAppointdeliverGetconsigninfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeOrderId Setter +// 淘宝交易订单id +func (r *CainiaoNbaddAppointdeliverGetconsigninfoAPIRequest) SetTradeOrderId(_tradeOrderId int64) error { + r._tradeOrderId = _tradeOrderId + r.Set("trade_order_id", _tradeOrderId) + return nil +} + +// TradeOrderId Getter +func (r CainiaoNbaddAppointdeliverGetconsigninfoAPIRequest) GetTradeOrderId() int64 { + return r._tradeOrderId +} diff --git a/model/cainiaolocker/CainiaoNbaddAppointdeliverGetconsigninfoAPIResponse.go b/model/cainiaolocker/CainiaoNbaddAppointdeliverGetconsigninfoAPIResponse.go new file mode 100644 index 0000000000..1d229f5253 --- /dev/null +++ b/model/cainiaolocker/CainiaoNbaddAppointdeliverGetconsigninfoAPIResponse.go @@ -0,0 +1,33 @@ +package cainiaolocker + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取支持定时派送服务发货信息 API返回值 +cainiao.nbadd.appointdeliver.getconsigninfo + +获取支持定时派送服务发货信息 +*/ +type CainiaoNbaddAppointdeliverGetconsigninfoAPIResponse struct { + model.CommonResponse + CainiaoNbaddAppointdeliverGetconsigninfoAPIResponseModel +} + +// 获取支持定时派送服务发货信息 成功返回结果 +type CainiaoNbaddAppointdeliverGetconsigninfoAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_nbadd_appointdeliver_getconsigninfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用是否成功,正常情况下都会成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误编码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误描述 + ResultDesc string `json:"result_desc,omitempty" xml:"result_desc,omitempty"` + // 发货信息 + Result *ConsignSupportInfoDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cainiaolocker/CainiaoNbaddAppointdeliverGetconsigninfoResponse.go b/model/cainiaolocker/CainiaoNbaddAppointdeliverGetconsigninfoResponse.go deleted file mode 100644 index 33acd4e59a..0000000000 --- a/model/cainiaolocker/CainiaoNbaddAppointdeliverGetconsigninfoResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package cainiaolocker - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取支持定时派送服务发货信息 API返回值 -cainiao.nbadd.appointdeliver.getconsigninfo - -获取支持定时派送服务发货信息 -*/ -type CainiaoNbaddAppointdeliverGetconsigninfoAPIResponse struct { - model.CommonResponse - CainiaoNbaddAppointdeliverGetconsigninfoResponse -} - -// 获取支持定时派送服务发货信息 成功返回结果 -type CainiaoNbaddAppointdeliverGetconsigninfoResponse struct { - XMLName xml.Name `xml:"cainiao_nbadd_appointdeliver_getconsigninfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用是否成功,正常情况下都会成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误编码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误描述 - ResultDesc string `json:"result_desc,omitempty" xml:"result_desc,omitempty"` - // 发货信息 - Result *ConsignSupportInfoDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cainiaolocker/CainiaoNborderfrontUserOutsideQueryoutsideuserAPIRequest.go b/model/cainiaolocker/CainiaoNborderfrontUserOutsideQueryoutsideuserAPIRequest.go new file mode 100644 index 0000000000..c38e8f7642 --- /dev/null +++ b/model/cainiaolocker/CainiaoNborderfrontUserOutsideQueryoutsideuserAPIRequest.go @@ -0,0 +1,66 @@ +package cainiaolocker + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询外部小件员休息 API请求 +cainiao.nborderfront.user.outside.queryoutsideuser + +采用SPI方式查询外部公司的小件员信息 +*/ +type CainiaoNborderfrontUserOutsideQueryoutsideuserAPIRequest struct { + model.Params + // cpcode + _cpCode string + // cp小件员ID + _cpUserId string +} + +// 初始化CainiaoNborderfrontUserOutsideQueryoutsideuserAPIRequest对象 +func NewCainiaoNborderfrontUserOutsideQueryoutsideuserRequest() *CainiaoNborderfrontUserOutsideQueryoutsideuserAPIRequest{ + return &CainiaoNborderfrontUserOutsideQueryoutsideuserAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoNborderfrontUserOutsideQueryoutsideuserAPIRequest) GetApiMethodName() string { + return "cainiao.nborderfront.user.outside.queryoutsideuser" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoNborderfrontUserOutsideQueryoutsideuserAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CpCode Setter +// cpcode +func (r *CainiaoNborderfrontUserOutsideQueryoutsideuserAPIRequest) SetCpCode(_cpCode string) error { + r._cpCode = _cpCode + r.Set("cp_code", _cpCode) + return nil +} + +// CpCode Getter +func (r CainiaoNborderfrontUserOutsideQueryoutsideuserAPIRequest) GetCpCode() string { + return r._cpCode +} +// CpUserId Setter +// cp小件员ID +func (r *CainiaoNborderfrontUserOutsideQueryoutsideuserAPIRequest) SetCpUserId(_cpUserId string) error { + r._cpUserId = _cpUserId + r.Set("cp_user_id", _cpUserId) + return nil +} + +// CpUserId Getter +func (r CainiaoNborderfrontUserOutsideQueryoutsideuserAPIRequest) GetCpUserId() string { + return r._cpUserId +} diff --git a/model/cainiaolocker/CainiaoNborderfrontUserOutsideQueryoutsideuserAPIResponse.go b/model/cainiaolocker/CainiaoNborderfrontUserOutsideQueryoutsideuserAPIResponse.go new file mode 100644 index 0000000000..55e15148b8 --- /dev/null +++ b/model/cainiaolocker/CainiaoNborderfrontUserOutsideQueryoutsideuserAPIResponse.go @@ -0,0 +1,29 @@ +package cainiaolocker + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询外部小件员休息 API返回值 +cainiao.nborderfront.user.outside.queryoutsideuser + +采用SPI方式查询外部公司的小件员信息 +*/ +type CainiaoNborderfrontUserOutsideQueryoutsideuserAPIResponse struct { + model.CommonResponse + CainiaoNborderfrontUserOutsideQueryoutsideuserAPIResponseModel +} + +// 查询外部小件员休息 成功返回结果 +type CainiaoNborderfrontUserOutsideQueryoutsideuserAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_nborderfront_user_outside_queryoutsideuser_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回错误编码 + RespCode string `json:"resp_code,omitempty" xml:"resp_code,omitempty"` + // userInfo + UserInfo *CainiaoNborderfrontUserOutsideQueryoutsideuserStruct `json:"user_info,omitempty" xml:"user_info,omitempty"` +} diff --git a/model/cainiaolocker/CainiaoNborderfrontUserOutsideQueryoutsideuserResponse.go b/model/cainiaolocker/CainiaoNborderfrontUserOutsideQueryoutsideuserResponse.go deleted file mode 100644 index 784c564dcb..0000000000 --- a/model/cainiaolocker/CainiaoNborderfrontUserOutsideQueryoutsideuserResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package cainiaolocker - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询外部小件员休息 API返回值 -cainiao.nborderfront.user.outside.queryoutsideuser - -采用SPI方式查询外部公司的小件员信息 -*/ -type CainiaoNborderfrontUserOutsideQueryoutsideuserAPIResponse struct { - model.CommonResponse - CainiaoNborderfrontUserOutsideQueryoutsideuserResponse -} - -// 查询外部小件员休息 成功返回结果 -type CainiaoNborderfrontUserOutsideQueryoutsideuserResponse struct { - XMLName xml.Name `xml:"cainiao_nborderfront_user_outside_queryoutsideuser_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回错误编码 - RespCode string `json:"resp_code,omitempty" xml:"resp_code,omitempty"` - // userInfo - UserInfo *CainiaoNborderfrontUserOutsideQueryoutsideuserStruct `json:"user_info,omitempty" xml:"user_info,omitempty"` -} diff --git a/model/cainiaoncwl/CainiaoNcwlJhorderQueryAPIRequest.go b/model/cainiaoncwl/CainiaoNcwlJhorderQueryAPIRequest.go new file mode 100644 index 0000000000..09d4ac2c11 --- /dev/null +++ b/model/cainiaoncwl/CainiaoNcwlJhorderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package cainiaoncwl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +农村物流集货单查询接口 API请求 +cainiao.ncwl.jhorder.query + +提供给接入商家,查询农村物流集货单 +*/ +type CainiaoNcwlJhorderQueryAPIRequest struct { + model.Params + // 1 + _param0 *JhRequest +} + +// 初始化CainiaoNcwlJhorderQueryAPIRequest对象 +func NewCainiaoNcwlJhorderQueryRequest() *CainiaoNcwlJhorderQueryAPIRequest{ + return &CainiaoNcwlJhorderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoNcwlJhorderQueryAPIRequest) GetApiMethodName() string { + return "cainiao.ncwl.jhorder.query" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoNcwlJhorderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 1 +func (r *CainiaoNcwlJhorderQueryAPIRequest) SetParam0(_param0 *JhRequest) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r CainiaoNcwlJhorderQueryAPIRequest) GetParam0() *JhRequest { + return r._param0 +} diff --git a/model/cainiaoncwl/CainiaoNcwlJhorderQueryAPIResponse.go b/model/cainiaoncwl/CainiaoNcwlJhorderQueryAPIResponse.go new file mode 100644 index 0000000000..5396c95467 --- /dev/null +++ b/model/cainiaoncwl/CainiaoNcwlJhorderQueryAPIResponse.go @@ -0,0 +1,33 @@ +package cainiaoncwl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +农村物流集货单查询接口 API返回值 +cainiao.ncwl.jhorder.query + +提供给接入商家,查询农村物流集货单 +*/ +type CainiaoNcwlJhorderQueryAPIResponse struct { + model.CommonResponse + CainiaoNcwlJhorderQueryAPIResponseModel +} + +// 农村物流集货单查询接口 成功返回结果 +type CainiaoNcwlJhorderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_ncwl_jhorder_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 总结果记录数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 翻页查询当前返回页数;指定集货号时无效; + CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"` + // 总页数 + TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` + // 查询获得的集货单列表 + JhOrderList []JhOrder `json:"jh_order_list,omitempty" xml:"jh_order_list>jh_order,omitempty"` +} diff --git a/model/cainiaoncwl/CainiaoNcwlJhorderQueryResponse.go b/model/cainiaoncwl/CainiaoNcwlJhorderQueryResponse.go deleted file mode 100644 index 37ecdf3286..0000000000 --- a/model/cainiaoncwl/CainiaoNcwlJhorderQueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package cainiaoncwl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -农村物流集货单查询接口 API返回值 -cainiao.ncwl.jhorder.query - -提供给接入商家,查询农村物流集货单 -*/ -type CainiaoNcwlJhorderQueryAPIResponse struct { - model.CommonResponse - CainiaoNcwlJhorderQueryResponse -} - -// 农村物流集货单查询接口 成功返回结果 -type CainiaoNcwlJhorderQueryResponse struct { - XMLName xml.Name `xml:"cainiao_ncwl_jhorder_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 总结果记录数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 翻页查询当前返回页数;指定集货号时无效; - CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"` - // 总页数 - TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` - // 查询获得的集货单列表 - JhOrderList []JhOrder `json:"jh_order_list,omitempty" xml:"jh_order_list>jh_order,omitempty"` -} diff --git a/model/caipiao/TaobaoCaipiaoGoodsInfoGetAPIRequest.go b/model/caipiao/TaobaoCaipiaoGoodsInfoGetAPIRequest.go new file mode 100644 index 0000000000..e25c6a2d40 --- /dev/null +++ b/model/caipiao/TaobaoCaipiaoGoodsInfoGetAPIRequest.go @@ -0,0 +1,38 @@ +package caipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据卖家id与appkey获取商品信息 API请求 +taobao.caipiao.goods.info.get + +根据卖家id与appkey获取商品信息。 +*/ +type TaobaoCaipiaoGoodsInfoGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoCaipiaoGoodsInfoGetAPIRequest对象 +func NewTaobaoCaipiaoGoodsInfoGetRequest() *TaobaoCaipiaoGoodsInfoGetAPIRequest{ + return &TaobaoCaipiaoGoodsInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCaipiaoGoodsInfoGetAPIRequest) GetApiMethodName() string { + return "taobao.caipiao.goods.info.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCaipiaoGoodsInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/caipiao/TaobaoCaipiaoGoodsInfoGetAPIResponse.go b/model/caipiao/TaobaoCaipiaoGoodsInfoGetAPIResponse.go new file mode 100644 index 0000000000..4ae7c0745c --- /dev/null +++ b/model/caipiao/TaobaoCaipiaoGoodsInfoGetAPIResponse.go @@ -0,0 +1,29 @@ +package caipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据卖家id与appkey获取商品信息 API返回值 +taobao.caipiao.goods.info.get + +根据卖家id与appkey获取商品信息。 +*/ +type TaobaoCaipiaoGoodsInfoGetAPIResponse struct { + model.CommonResponse + TaobaoCaipiaoGoodsInfoGetAPIResponseModel +} + +// 根据卖家id与appkey获取商品信息 成功返回结果 +type TaobaoCaipiaoGoodsInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"caipiao_goods_info_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回列表的大小 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 查询的结果列表 + Results []LotteryWangcaiSellerGoodsInfo `json:"results,omitempty" xml:"results>lottery_wangcai_seller_goods_info,omitempty"` +} diff --git a/model/caipiao/TaobaoCaipiaoGoodsInfoGetResponse.go b/model/caipiao/TaobaoCaipiaoGoodsInfoGetResponse.go deleted file mode 100644 index 185e7cf223..0000000000 --- a/model/caipiao/TaobaoCaipiaoGoodsInfoGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package caipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据卖家id与appkey获取商品信息 API返回值 -taobao.caipiao.goods.info.get - -根据卖家id与appkey获取商品信息。 -*/ -type TaobaoCaipiaoGoodsInfoGetAPIResponse struct { - model.CommonResponse - TaobaoCaipiaoGoodsInfoGetResponse -} - -// 根据卖家id与appkey获取商品信息 成功返回结果 -type TaobaoCaipiaoGoodsInfoGetResponse struct { - XMLName xml.Name `xml:"caipiao_goods_info_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回列表的大小 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 查询的结果列表 - Results []LotteryWangcaiSellerGoodsInfo `json:"results,omitempty" xml:"results>lottery_wangcai_seller_goods_info,omitempty"` -} diff --git a/model/caipiao/TaobaoCaipiaoGoodsInfoInputAPIRequest.go b/model/caipiao/TaobaoCaipiaoGoodsInfoInputAPIRequest.go new file mode 100644 index 0000000000..1f6bf4bf56 --- /dev/null +++ b/model/caipiao/TaobaoCaipiaoGoodsInfoInputAPIRequest.go @@ -0,0 +1,178 @@ +package caipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +录入参加送彩票商品信息 API请求 +taobao.caipiao.goods.info.input + +录入参加送彩票商品信息,如果录入成功,返回true,如果录入失败,返回false,后端会根据商品id与赠送类型(goodsid_presenttype_uk)来决定是新增数据还是修改数据。 +*/ +type TaobaoCaipiaoGoodsInfoInputAPIRequest struct { + model.Params + // 商品在淘宝的唯一id,不可为空 + _goodsId int64 + // 商品标题 + _goodsTitle string + // 商品价格,保留两位小数,不可为空 + _goodsPrice float64 + // 商品主图地址 + _goodsImage string + // 赠送类型:0-满就送;1-好评送;2-分享送;3-游戏送;4-收藏送,不可为空 + _presentType int64 + // 活动开始时间,格式需严格遵守yyyy-MM-dd HH:mm:ss,不可为空 + _actStartDate string + // 活动结束时间,格式需严格遵守yyyy-MM-dd HH:mm:ss,不可为空 + _actEndDate string + // 商品类目编号,不可为空 + _goodsType int64 + // 彩种id,不可为空 + _lotteryTypeId int64 + // 店铺相关商品参加的送彩票活动描述 + _goodsDesc string +} + +// 初始化TaobaoCaipiaoGoodsInfoInputAPIRequest对象 +func NewTaobaoCaipiaoGoodsInfoInputRequest() *TaobaoCaipiaoGoodsInfoInputAPIRequest{ + return &TaobaoCaipiaoGoodsInfoInputAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCaipiaoGoodsInfoInputAPIRequest) GetApiMethodName() string { + return "taobao.caipiao.goods.info.input" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCaipiaoGoodsInfoInputAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GoodsId Setter +// 商品在淘宝的唯一id,不可为空 +func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetGoodsId(_goodsId int64) error { + r._goodsId = _goodsId + r.Set("goods_id", _goodsId) + return nil +} + +// GoodsId Getter +func (r TaobaoCaipiaoGoodsInfoInputAPIRequest) GetGoodsId() int64 { + return r._goodsId +} +// GoodsTitle Setter +// 商品标题 +func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetGoodsTitle(_goodsTitle string) error { + r._goodsTitle = _goodsTitle + r.Set("goods_title", _goodsTitle) + return nil +} + +// GoodsTitle Getter +func (r TaobaoCaipiaoGoodsInfoInputAPIRequest) GetGoodsTitle() string { + return r._goodsTitle +} +// GoodsPrice Setter +// 商品价格,保留两位小数,不可为空 +func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetGoodsPrice(_goodsPrice float64) error { + r._goodsPrice = _goodsPrice + r.Set("goods_price", _goodsPrice) + return nil +} + +// GoodsPrice Getter +func (r TaobaoCaipiaoGoodsInfoInputAPIRequest) GetGoodsPrice() float64 { + return r._goodsPrice +} +// GoodsImage Setter +// 商品主图地址 +func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetGoodsImage(_goodsImage string) error { + r._goodsImage = _goodsImage + r.Set("goods_image", _goodsImage) + return nil +} + +// GoodsImage Getter +func (r TaobaoCaipiaoGoodsInfoInputAPIRequest) GetGoodsImage() string { + return r._goodsImage +} +// PresentType Setter +// 赠送类型:0-满就送;1-好评送;2-分享送;3-游戏送;4-收藏送,不可为空 +func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetPresentType(_presentType int64) error { + r._presentType = _presentType + r.Set("present_type", _presentType) + return nil +} + +// PresentType Getter +func (r TaobaoCaipiaoGoodsInfoInputAPIRequest) GetPresentType() int64 { + return r._presentType +} +// ActStartDate Setter +// 活动开始时间,格式需严格遵守yyyy-MM-dd HH:mm:ss,不可为空 +func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetActStartDate(_actStartDate string) error { + r._actStartDate = _actStartDate + r.Set("act_start_date", _actStartDate) + return nil +} + +// ActStartDate Getter +func (r TaobaoCaipiaoGoodsInfoInputAPIRequest) GetActStartDate() string { + return r._actStartDate +} +// ActEndDate Setter +// 活动结束时间,格式需严格遵守yyyy-MM-dd HH:mm:ss,不可为空 +func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetActEndDate(_actEndDate string) error { + r._actEndDate = _actEndDate + r.Set("act_end_date", _actEndDate) + return nil +} + +// ActEndDate Getter +func (r TaobaoCaipiaoGoodsInfoInputAPIRequest) GetActEndDate() string { + return r._actEndDate +} +// GoodsType Setter +// 商品类目编号,不可为空 +func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetGoodsType(_goodsType int64) error { + r._goodsType = _goodsType + r.Set("goods_type", _goodsType) + return nil +} + +// GoodsType Getter +func (r TaobaoCaipiaoGoodsInfoInputAPIRequest) GetGoodsType() int64 { + return r._goodsType +} +// LotteryTypeId Setter +// 彩种id,不可为空 +func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetLotteryTypeId(_lotteryTypeId int64) error { + r._lotteryTypeId = _lotteryTypeId + r.Set("lottery_type_id", _lotteryTypeId) + return nil +} + +// LotteryTypeId Getter +func (r TaobaoCaipiaoGoodsInfoInputAPIRequest) GetLotteryTypeId() int64 { + return r._lotteryTypeId +} +// GoodsDesc Setter +// 店铺相关商品参加的送彩票活动描述 +func (r *TaobaoCaipiaoGoodsInfoInputAPIRequest) SetGoodsDesc(_goodsDesc string) error { + r._goodsDesc = _goodsDesc + r.Set("goods_desc", _goodsDesc) + return nil +} + +// GoodsDesc Getter +func (r TaobaoCaipiaoGoodsInfoInputAPIRequest) GetGoodsDesc() string { + return r._goodsDesc +} diff --git a/model/caipiao/TaobaoCaipiaoGoodsInfoInputAPIResponse.go b/model/caipiao/TaobaoCaipiaoGoodsInfoInputAPIResponse.go new file mode 100644 index 0000000000..81bf9d1ef7 --- /dev/null +++ b/model/caipiao/TaobaoCaipiaoGoodsInfoInputAPIResponse.go @@ -0,0 +1,27 @@ +package caipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +录入参加送彩票商品信息 API返回值 +taobao.caipiao.goods.info.input + +录入参加送彩票商品信息,如果录入成功,返回true,如果录入失败,返回false,后端会根据商品id与赠送类型(goodsid_presenttype_uk)来决定是新增数据还是修改数据。 +*/ +type TaobaoCaipiaoGoodsInfoInputAPIResponse struct { + model.CommonResponse + TaobaoCaipiaoGoodsInfoInputAPIResponseModel +} + +// 录入参加送彩票商品信息 成功返回结果 +type TaobaoCaipiaoGoodsInfoInputAPIResponseModel struct { + XMLName xml.Name `xml:"caipiao_goods_info_input_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 录入操作是否成功 + InputResult bool `json:"input_result,omitempty" xml:"input_result,omitempty"` +} diff --git a/model/caipiao/TaobaoCaipiaoGoodsInfoInputResponse.go b/model/caipiao/TaobaoCaipiaoGoodsInfoInputResponse.go deleted file mode 100644 index bb67afa93b..0000000000 --- a/model/caipiao/TaobaoCaipiaoGoodsInfoInputResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package caipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -录入参加送彩票商品信息 API返回值 -taobao.caipiao.goods.info.input - -录入参加送彩票商品信息,如果录入成功,返回true,如果录入失败,返回false,后端会根据商品id与赠送类型(goodsid_presenttype_uk)来决定是新增数据还是修改数据。 -*/ -type TaobaoCaipiaoGoodsInfoInputAPIResponse struct { - model.CommonResponse - TaobaoCaipiaoGoodsInfoInputResponse -} - -// 录入参加送彩票商品信息 成功返回结果 -type TaobaoCaipiaoGoodsInfoInputResponse struct { - XMLName xml.Name `xml:"caipiao_goods_info_input_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 录入操作是否成功 - InputResult bool `json:"input_result,omitempty" xml:"input_result,omitempty"` -} diff --git a/model/caipiao/TaobaoCaipiaoLotterySendbynickAPIRequest.go b/model/caipiao/TaobaoCaipiaoLotterySendbynickAPIRequest.go new file mode 100644 index 0000000000..4af7acc200 --- /dev/null +++ b/model/caipiao/TaobaoCaipiaoLotterySendbynickAPIRequest.go @@ -0,0 +1,94 @@ +package caipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家使用nick给买家送彩票 API请求 +taobao.caipiao.lottery.sendbynick + +卖家使用nick给买家送彩票,可以指定彩种和注数。赠送成功,返回true; 以下几种情况情况, 返回false: 注数超过100注、卖家未签署支付宝代扣协议、卖家或者买家信息不存在等。 +*/ +type TaobaoCaipiaoLotterySendbynickAPIRequest struct { + model.Params + // 彩票接收方nick, 不可为空、""。 + _buyerNick string + // 彩种ID,此彩种ID为彩票系统中的序号。 + _lotteryTypeId int64 + // 彩票注数,不可为空、0和负数,最大值为100。 + _stakeCount int64 + // 送彩票给接收方的赠言。 不能超过20个字符,1个中文字符、1个英文字母及1个数字等均当作一个字符,如果超过,则会截取。 + _sweetyWords string +} + +// 初始化TaobaoCaipiaoLotterySendbynickAPIRequest对象 +func NewTaobaoCaipiaoLotterySendbynickRequest() *TaobaoCaipiaoLotterySendbynickAPIRequest{ + return &TaobaoCaipiaoLotterySendbynickAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCaipiaoLotterySendbynickAPIRequest) GetApiMethodName() string { + return "taobao.caipiao.lottery.sendbynick" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCaipiaoLotterySendbynickAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BuyerNick Setter +// 彩票接收方nick, 不可为空、""。 +func (r *TaobaoCaipiaoLotterySendbynickAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoCaipiaoLotterySendbynickAPIRequest) GetBuyerNick() string { + return r._buyerNick +} +// LotteryTypeId Setter +// 彩种ID,此彩种ID为彩票系统中的序号。 +func (r *TaobaoCaipiaoLotterySendbynickAPIRequest) SetLotteryTypeId(_lotteryTypeId int64) error { + r._lotteryTypeId = _lotteryTypeId + r.Set("lottery_type_id", _lotteryTypeId) + return nil +} + +// LotteryTypeId Getter +func (r TaobaoCaipiaoLotterySendbynickAPIRequest) GetLotteryTypeId() int64 { + return r._lotteryTypeId +} +// StakeCount Setter +// 彩票注数,不可为空、0和负数,最大值为100。 +func (r *TaobaoCaipiaoLotterySendbynickAPIRequest) SetStakeCount(_stakeCount int64) error { + r._stakeCount = _stakeCount + r.Set("stake_count", _stakeCount) + return nil +} + +// StakeCount Getter +func (r TaobaoCaipiaoLotterySendbynickAPIRequest) GetStakeCount() int64 { + return r._stakeCount +} +// SweetyWords Setter +// 送彩票给接收方的赠言。 不能超过20个字符,1个中文字符、1个英文字母及1个数字等均当作一个字符,如果超过,则会截取。 +func (r *TaobaoCaipiaoLotterySendbynickAPIRequest) SetSweetyWords(_sweetyWords string) error { + r._sweetyWords = _sweetyWords + r.Set("sweety_words", _sweetyWords) + return nil +} + +// SweetyWords Getter +func (r TaobaoCaipiaoLotterySendbynickAPIRequest) GetSweetyWords() string { + return r._sweetyWords +} diff --git a/model/caipiao/TaobaoCaipiaoLotterySendbynickAPIResponse.go b/model/caipiao/TaobaoCaipiaoLotterySendbynickAPIResponse.go new file mode 100644 index 0000000000..4ae7bda547 --- /dev/null +++ b/model/caipiao/TaobaoCaipiaoLotterySendbynickAPIResponse.go @@ -0,0 +1,27 @@ +package caipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家使用nick给买家送彩票 API返回值 +taobao.caipiao.lottery.sendbynick + +卖家使用nick给买家送彩票,可以指定彩种和注数。赠送成功,返回true; 以下几种情况情况, 返回false: 注数超过100注、卖家未签署支付宝代扣协议、卖家或者买家信息不存在等。 +*/ +type TaobaoCaipiaoLotterySendbynickAPIResponse struct { + model.CommonResponse + TaobaoCaipiaoLotterySendbynickAPIResponseModel +} + +// 卖家使用nick给买家送彩票 成功返回结果 +type TaobaoCaipiaoLotterySendbynickAPIResponseModel struct { + XMLName xml.Name `xml:"caipiao_lottery_sendbynick_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 赠送是否成功,成功为true, 否则为false + SendResult bool `json:"send_result,omitempty" xml:"send_result,omitempty"` +} diff --git a/model/caipiao/TaobaoCaipiaoLotterySendbynickResponse.go b/model/caipiao/TaobaoCaipiaoLotterySendbynickResponse.go deleted file mode 100644 index 0ed76cb0d1..0000000000 --- a/model/caipiao/TaobaoCaipiaoLotterySendbynickResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package caipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家使用nick给买家送彩票 API返回值 -taobao.caipiao.lottery.sendbynick - -卖家使用nick给买家送彩票,可以指定彩种和注数。赠送成功,返回true; 以下几种情况情况, 返回false: 注数超过100注、卖家未签署支付宝代扣协议、卖家或者买家信息不存在等。 -*/ -type TaobaoCaipiaoLotterySendbynickAPIResponse struct { - model.CommonResponse - TaobaoCaipiaoLotterySendbynickResponse -} - -// 卖家使用nick给买家送彩票 成功返回结果 -type TaobaoCaipiaoLotterySendbynickResponse struct { - XMLName xml.Name `xml:"caipiao_lottery_sendbynick_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 赠送是否成功,成功为true, 否则为false - SendResult bool `json:"send_result,omitempty" xml:"send_result,omitempty"` -} diff --git a/model/caipiao/TaobaoCaipiaoLotterytypesGetAPIRequest.go b/model/caipiao/TaobaoCaipiaoLotterytypesGetAPIRequest.go new file mode 100644 index 0000000000..6e2298db5a --- /dev/null +++ b/model/caipiao/TaobaoCaipiaoLotterytypesGetAPIRequest.go @@ -0,0 +1,38 @@ +package caipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取可用的彩种列表 API请求 +taobao.caipiao.lotterytypes.get + +获取彩票系统支持的可用于赠送的彩种列表 +*/ +type TaobaoCaipiaoLotterytypesGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoCaipiaoLotterytypesGetAPIRequest对象 +func NewTaobaoCaipiaoLotterytypesGetRequest() *TaobaoCaipiaoLotterytypesGetAPIRequest{ + return &TaobaoCaipiaoLotterytypesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCaipiaoLotterytypesGetAPIRequest) GetApiMethodName() string { + return "taobao.caipiao.lotterytypes.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCaipiaoLotterytypesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/caipiao/TaobaoCaipiaoLotterytypesGetAPIResponse.go b/model/caipiao/TaobaoCaipiaoLotterytypesGetAPIResponse.go new file mode 100644 index 0000000000..61286a99c3 --- /dev/null +++ b/model/caipiao/TaobaoCaipiaoLotterytypesGetAPIResponse.go @@ -0,0 +1,29 @@ +package caipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取可用的彩种列表 API返回值 +taobao.caipiao.lotterytypes.get + +获取彩票系统支持的可用于赠送的彩种列表 +*/ +type TaobaoCaipiaoLotterytypesGetAPIResponse struct { + model.CommonResponse + TaobaoCaipiaoLotterytypesGetAPIResponseModel +} + +// 获取可用的彩种列表 成功返回结果 +type TaobaoCaipiaoLotterytypesGetAPIResponseModel struct { + XMLName xml.Name `xml:"caipiao_lotterytypes_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 彩种个数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 彩种的数据结构 + Results []LotteryType `json:"results,omitempty" xml:"results>lottery_type,omitempty"` +} diff --git a/model/caipiao/TaobaoCaipiaoLotterytypesGetResponse.go b/model/caipiao/TaobaoCaipiaoLotterytypesGetResponse.go deleted file mode 100644 index db0b29109c..0000000000 --- a/model/caipiao/TaobaoCaipiaoLotterytypesGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package caipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取可用的彩种列表 API返回值 -taobao.caipiao.lotterytypes.get - -获取彩票系统支持的可用于赠送的彩种列表 -*/ -type TaobaoCaipiaoLotterytypesGetAPIResponse struct { - model.CommonResponse - TaobaoCaipiaoLotterytypesGetResponse -} - -// 获取可用的彩种列表 成功返回结果 -type TaobaoCaipiaoLotterytypesGetResponse struct { - XMLName xml.Name `xml:"caipiao_lotterytypes_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 彩种个数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 彩种的数据结构 - Results []LotteryType `json:"results,omitempty" xml:"results>lottery_type,omitempty"` -} diff --git a/model/caipiao/TaobaoCaipiaoMarketingPutAPIRequest.go b/model/caipiao/TaobaoCaipiaoMarketingPutAPIRequest.go new file mode 100644 index 0000000000..ded3c34b25 --- /dev/null +++ b/model/caipiao/TaobaoCaipiaoMarketingPutAPIRequest.go @@ -0,0 +1,62 @@ +package caipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建或修改商家送彩票活动 API请求 +taobao.caipiao.marketing.put + +卖家通过此接口新增或修改送彩票活动的配置,比如活动时间、活动的条件等。 + +店铺装修、宝贝详情页的宣导素材示例: +https://gw.alicdn.com/tfs/TB1_nOiSXXXXXbgXXXXXXXXXXXX-750-280.png +https://gw.alicdn.com/tfs/TB1FZX6SXXXXXXzXFXXXXXXXXXX-790-280.png +https://gw.alicdn.com/tfs/TB1z4t8SXXXXXckXpXXXXXXXXXX-750-280.png +https://gw.alicdn.com/tfs/TB1BhqgSXXXXXcDXXXXXXXXXXXX-750-280.png +https://gw.alicdn.com/tfs/TB1TYt9SXXXXXXAXFXXXXXXXXXX-750-280.png +https://gw.alicdn.com/tfs/TB1tzpNSXXXXXacXVXXXXXXXXXX-790-280.png +https://gw.alicdn.com/tfs/TB1UXdxSXXXXXXsapXXXXXXXXXX-790-280.png +https://gw.alicdn.com/tfs/TB1_gV.SXXXXXbZXpXXXXXXXXXX-790-280.png +*/ +type TaobaoCaipiaoMarketingPutAPIRequest struct { + model.Params + // 活动详情设置 + _detail *WangcaiMarketingDetail +} + +// 初始化TaobaoCaipiaoMarketingPutAPIRequest对象 +func NewTaobaoCaipiaoMarketingPutRequest() *TaobaoCaipiaoMarketingPutAPIRequest{ + return &TaobaoCaipiaoMarketingPutAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCaipiaoMarketingPutAPIRequest) GetApiMethodName() string { + return "taobao.caipiao.marketing.put" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCaipiaoMarketingPutAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Detail Setter +// 活动详情设置 +func (r *TaobaoCaipiaoMarketingPutAPIRequest) SetDetail(_detail *WangcaiMarketingDetail) error { + r._detail = _detail + r.Set("detail", _detail) + return nil +} + +// Detail Getter +func (r TaobaoCaipiaoMarketingPutAPIRequest) GetDetail() *WangcaiMarketingDetail { + return r._detail +} diff --git a/model/caipiao/TaobaoCaipiaoMarketingPutAPIResponse.go b/model/caipiao/TaobaoCaipiaoMarketingPutAPIResponse.go new file mode 100644 index 0000000000..1c72805512 --- /dev/null +++ b/model/caipiao/TaobaoCaipiaoMarketingPutAPIResponse.go @@ -0,0 +1,37 @@ +package caipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建或修改商家送彩票活动 API返回值 +taobao.caipiao.marketing.put + +卖家通过此接口新增或修改送彩票活动的配置,比如活动时间、活动的条件等。 + +店铺装修、宝贝详情页的宣导素材示例: +https://gw.alicdn.com/tfs/TB1_nOiSXXXXXbgXXXXXXXXXXXX-750-280.png +https://gw.alicdn.com/tfs/TB1FZX6SXXXXXXzXFXXXXXXXXXX-790-280.png +https://gw.alicdn.com/tfs/TB1z4t8SXXXXXckXpXXXXXXXXXX-750-280.png +https://gw.alicdn.com/tfs/TB1BhqgSXXXXXcDXXXXXXXXXXXX-750-280.png +https://gw.alicdn.com/tfs/TB1TYt9SXXXXXXAXFXXXXXXXXXX-750-280.png +https://gw.alicdn.com/tfs/TB1tzpNSXXXXXacXVXXXXXXXXXX-790-280.png +https://gw.alicdn.com/tfs/TB1UXdxSXXXXXXsapXXXXXXXXXX-790-280.png +https://gw.alicdn.com/tfs/TB1_gV.SXXXXXbZXpXXXXXXXXXX-790-280.png +*/ +type TaobaoCaipiaoMarketingPutAPIResponse struct { + model.CommonResponse + TaobaoCaipiaoMarketingPutAPIResponseModel +} + +// 创建或修改商家送彩票活动 成功返回结果 +type TaobaoCaipiaoMarketingPutAPIResponseModel struct { + XMLName xml.Name `xml:"caipiao_marketing_put_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 业务操作结果,true成功/false失败 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/caipiao/TaobaoCaipiaoMarketingPutResponse.go b/model/caipiao/TaobaoCaipiaoMarketingPutResponse.go deleted file mode 100644 index 70105e64ae..0000000000 --- a/model/caipiao/TaobaoCaipiaoMarketingPutResponse.go +++ /dev/null @@ -1,37 +0,0 @@ -package caipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建或修改商家送彩票活动 API返回值 -taobao.caipiao.marketing.put - -卖家通过此接口新增或修改送彩票活动的配置,比如活动时间、活动的条件等。 - -店铺装修、宝贝详情页的宣导素材示例: -https://gw.alicdn.com/tfs/TB1_nOiSXXXXXbgXXXXXXXXXXXX-750-280.png -https://gw.alicdn.com/tfs/TB1FZX6SXXXXXXzXFXXXXXXXXXX-790-280.png -https://gw.alicdn.com/tfs/TB1z4t8SXXXXXckXpXXXXXXXXXX-750-280.png -https://gw.alicdn.com/tfs/TB1BhqgSXXXXXcDXXXXXXXXXXXX-750-280.png -https://gw.alicdn.com/tfs/TB1TYt9SXXXXXXAXFXXXXXXXXXX-750-280.png -https://gw.alicdn.com/tfs/TB1tzpNSXXXXXacXVXXXXXXXXXX-790-280.png -https://gw.alicdn.com/tfs/TB1UXdxSXXXXXXsapXXXXXXXXXX-790-280.png -https://gw.alicdn.com/tfs/TB1_gV.SXXXXXbZXpXXXXXXXXXX-790-280.png -*/ -type TaobaoCaipiaoMarketingPutAPIResponse struct { - model.CommonResponse - TaobaoCaipiaoMarketingPutResponse -} - -// 创建或修改商家送彩票活动 成功返回结果 -type TaobaoCaipiaoMarketingPutResponse struct { - XMLName xml.Name `xml:"caipiao_marketing_put_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 业务操作结果,true成功/false失败 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/caipiao/TaobaoCaipiaoPresentStatGetAPIRequest.go b/model/caipiao/TaobaoCaipiaoPresentStatGetAPIRequest.go new file mode 100644 index 0000000000..76518940af --- /dev/null +++ b/model/caipiao/TaobaoCaipiaoPresentStatGetAPIRequest.go @@ -0,0 +1,52 @@ +package caipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取卖家按天统计的彩票赠送数据 API请求 +taobao.caipiao.present.stat.get + +查询卖家一段时间内按天统计的彩票赠送数据,只支持查询90天以内的数据. +*/ +type TaobaoCaipiaoPresentStatGetAPIRequest struct { + model.Params + // 指定查询的天数,从当前日期(不包括当前日期)向前推算的天数,可为空。如果为空、0、负数或者大于90天,则设置为默认的90天。举例:当天是20120703, days=2, 则统计数据的日期为:20120702,20120701. + _days int64 +} + +// 初始化TaobaoCaipiaoPresentStatGetAPIRequest对象 +func NewTaobaoCaipiaoPresentStatGetRequest() *TaobaoCaipiaoPresentStatGetAPIRequest{ + return &TaobaoCaipiaoPresentStatGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCaipiaoPresentStatGetAPIRequest) GetApiMethodName() string { + return "taobao.caipiao.present.stat.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCaipiaoPresentStatGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Days Setter +// 指定查询的天数,从当前日期(不包括当前日期)向前推算的天数,可为空。如果为空、0、负数或者大于90天,则设置为默认的90天。举例:当天是20120703, days=2, 则统计数据的日期为:20120702,20120701. +func (r *TaobaoCaipiaoPresentStatGetAPIRequest) SetDays(_days int64) error { + r._days = _days + r.Set("days", _days) + return nil +} + +// Days Getter +func (r TaobaoCaipiaoPresentStatGetAPIRequest) GetDays() int64 { + return r._days +} diff --git a/model/caipiao/TaobaoCaipiaoPresentStatGetAPIResponse.go b/model/caipiao/TaobaoCaipiaoPresentStatGetAPIResponse.go new file mode 100644 index 0000000000..cbb2d939f9 --- /dev/null +++ b/model/caipiao/TaobaoCaipiaoPresentStatGetAPIResponse.go @@ -0,0 +1,29 @@ +package caipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取卖家按天统计的彩票赠送数据 API返回值 +taobao.caipiao.present.stat.get + +查询卖家一段时间内按天统计的彩票赠送数据,只支持查询90天以内的数据. +*/ +type TaobaoCaipiaoPresentStatGetAPIResponse struct { + model.CommonResponse + TaobaoCaipiaoPresentStatGetAPIResponseModel +} + +// 获取卖家按天统计的彩票赠送数据 成功返回结果 +type TaobaoCaipiaoPresentStatGetAPIResponseModel struct { + XMLName xml.Name `xml:"caipiao_present_stat_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询的结果集大小 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 查询的结果集 + Results []LotteryWangcaiPresentStat `json:"results,omitempty" xml:"results>lottery_wangcai_present_stat,omitempty"` +} diff --git a/model/caipiao/TaobaoCaipiaoPresentStatGetResponse.go b/model/caipiao/TaobaoCaipiaoPresentStatGetResponse.go deleted file mode 100644 index b019c18f39..0000000000 --- a/model/caipiao/TaobaoCaipiaoPresentStatGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package caipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取卖家按天统计的彩票赠送数据 API返回值 -taobao.caipiao.present.stat.get - -查询卖家一段时间内按天统计的彩票赠送数据,只支持查询90天以内的数据. -*/ -type TaobaoCaipiaoPresentStatGetAPIResponse struct { - model.CommonResponse - TaobaoCaipiaoPresentStatGetResponse -} - -// 获取卖家按天统计的彩票赠送数据 成功返回结果 -type TaobaoCaipiaoPresentStatGetResponse struct { - XMLName xml.Name `xml:"caipiao_present_stat_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询的结果集大小 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 查询的结果集 - Results []LotteryWangcaiPresentStat `json:"results,omitempty" xml:"results>lottery_wangcai_present_stat,omitempty"` -} diff --git a/model/caipiao/TaobaoCaipiaoShopInfoInputAPIRequest.go b/model/caipiao/TaobaoCaipiaoShopInfoInputAPIRequest.go new file mode 100644 index 0000000000..9430cf391e --- /dev/null +++ b/model/caipiao/TaobaoCaipiaoShopInfoInputAPIRequest.go @@ -0,0 +1,122 @@ +package caipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +录入参加送彩票店铺信息 API请求 +taobao.caipiao.shop.info.input + +录入参加送彩票店铺信息,如果录入成功,返回true,如果录入失败,返回false,后端会根据卖家id与赠送类型(sellerid_presenttype_uk)来决定是新增数据还是修改数据。 +*/ +type TaobaoCaipiaoShopInfoInputAPIRequest struct { + model.Params + // 店铺名称 + _shopName string + // 赠送类型:0-满就送;1-好评送;2-分享送;3-游戏送;4-收藏送,不可为空 + _presentType int64 + // 活动开始时间,格式需严格遵守yyyy-MM-dd HH:mm:ss,不可为空 + _actStartDate string + // 活动结束时间,格式需严格遵守yyyy-MM-dd HH:mm:ss,不可为空 + _actEndDate string + // 店铺类目编号,不可为空 + _shopType int64 + // 店铺参加的送彩票活动描述 + _shopDesc string +} + +// 初始化TaobaoCaipiaoShopInfoInputAPIRequest对象 +func NewTaobaoCaipiaoShopInfoInputRequest() *TaobaoCaipiaoShopInfoInputAPIRequest{ + return &TaobaoCaipiaoShopInfoInputAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCaipiaoShopInfoInputAPIRequest) GetApiMethodName() string { + return "taobao.caipiao.shop.info.input" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCaipiaoShopInfoInputAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShopName Setter +// 店铺名称 +func (r *TaobaoCaipiaoShopInfoInputAPIRequest) SetShopName(_shopName string) error { + r._shopName = _shopName + r.Set("shop_name", _shopName) + return nil +} + +// ShopName Getter +func (r TaobaoCaipiaoShopInfoInputAPIRequest) GetShopName() string { + return r._shopName +} +// PresentType Setter +// 赠送类型:0-满就送;1-好评送;2-分享送;3-游戏送;4-收藏送,不可为空 +func (r *TaobaoCaipiaoShopInfoInputAPIRequest) SetPresentType(_presentType int64) error { + r._presentType = _presentType + r.Set("present_type", _presentType) + return nil +} + +// PresentType Getter +func (r TaobaoCaipiaoShopInfoInputAPIRequest) GetPresentType() int64 { + return r._presentType +} +// ActStartDate Setter +// 活动开始时间,格式需严格遵守yyyy-MM-dd HH:mm:ss,不可为空 +func (r *TaobaoCaipiaoShopInfoInputAPIRequest) SetActStartDate(_actStartDate string) error { + r._actStartDate = _actStartDate + r.Set("act_start_date", _actStartDate) + return nil +} + +// ActStartDate Getter +func (r TaobaoCaipiaoShopInfoInputAPIRequest) GetActStartDate() string { + return r._actStartDate +} +// ActEndDate Setter +// 活动结束时间,格式需严格遵守yyyy-MM-dd HH:mm:ss,不可为空 +func (r *TaobaoCaipiaoShopInfoInputAPIRequest) SetActEndDate(_actEndDate string) error { + r._actEndDate = _actEndDate + r.Set("act_end_date", _actEndDate) + return nil +} + +// ActEndDate Getter +func (r TaobaoCaipiaoShopInfoInputAPIRequest) GetActEndDate() string { + return r._actEndDate +} +// ShopType Setter +// 店铺类目编号,不可为空 +func (r *TaobaoCaipiaoShopInfoInputAPIRequest) SetShopType(_shopType int64) error { + r._shopType = _shopType + r.Set("shop_type", _shopType) + return nil +} + +// ShopType Getter +func (r TaobaoCaipiaoShopInfoInputAPIRequest) GetShopType() int64 { + return r._shopType +} +// ShopDesc Setter +// 店铺参加的送彩票活动描述 +func (r *TaobaoCaipiaoShopInfoInputAPIRequest) SetShopDesc(_shopDesc string) error { + r._shopDesc = _shopDesc + r.Set("shop_desc", _shopDesc) + return nil +} + +// ShopDesc Getter +func (r TaobaoCaipiaoShopInfoInputAPIRequest) GetShopDesc() string { + return r._shopDesc +} diff --git a/model/caipiao/TaobaoCaipiaoShopInfoInputAPIResponse.go b/model/caipiao/TaobaoCaipiaoShopInfoInputAPIResponse.go new file mode 100644 index 0000000000..d90adde0c3 --- /dev/null +++ b/model/caipiao/TaobaoCaipiaoShopInfoInputAPIResponse.go @@ -0,0 +1,27 @@ +package caipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +录入参加送彩票店铺信息 API返回值 +taobao.caipiao.shop.info.input + +录入参加送彩票店铺信息,如果录入成功,返回true,如果录入失败,返回false,后端会根据卖家id与赠送类型(sellerid_presenttype_uk)来决定是新增数据还是修改数据。 +*/ +type TaobaoCaipiaoShopInfoInputAPIResponse struct { + model.CommonResponse + TaobaoCaipiaoShopInfoInputAPIResponseModel +} + +// 录入参加送彩票店铺信息 成功返回结果 +type TaobaoCaipiaoShopInfoInputAPIResponseModel struct { + XMLName xml.Name `xml:"caipiao_shop_info_input_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 录入操作是否成功 + InputResult bool `json:"input_result,omitempty" xml:"input_result,omitempty"` +} diff --git a/model/caipiao/TaobaoCaipiaoShopInfoInputResponse.go b/model/caipiao/TaobaoCaipiaoShopInfoInputResponse.go deleted file mode 100644 index 72d9bdd44c..0000000000 --- a/model/caipiao/TaobaoCaipiaoShopInfoInputResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package caipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -录入参加送彩票店铺信息 API返回值 -taobao.caipiao.shop.info.input - -录入参加送彩票店铺信息,如果录入成功,返回true,如果录入失败,返回false,后端会根据卖家id与赠送类型(sellerid_presenttype_uk)来决定是新增数据还是修改数据。 -*/ -type TaobaoCaipiaoShopInfoInputAPIResponse struct { - model.CommonResponse - TaobaoCaipiaoShopInfoInputResponse -} - -// 录入参加送彩票店铺信息 成功返回结果 -type TaobaoCaipiaoShopInfoInputResponse struct { - XMLName xml.Name `xml:"caipiao_shop_info_input_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 录入操作是否成功 - InputResult bool `json:"input_result,omitempty" xml:"input_result,omitempty"` -} diff --git a/model/caipiao/TaobaoCaipiaoSignstatusCheckAPIRequest.go b/model/caipiao/TaobaoCaipiaoSignstatusCheckAPIRequest.go new file mode 100644 index 0000000000..e1ccca3d3f --- /dev/null +++ b/model/caipiao/TaobaoCaipiaoSignstatusCheckAPIRequest.go @@ -0,0 +1,38 @@ +package caipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +检查用户是否签署支付宝代购协议 API请求 +taobao.caipiao.signstatus.check + +检查用户是否签署了支付宝代扣协议。如果签署了,返回true; 如果没签署,返回false, 同时返回签署代扣协议的Url。 +*/ +type TaobaoCaipiaoSignstatusCheckAPIRequest struct { + model.Params +} + +// 初始化TaobaoCaipiaoSignstatusCheckAPIRequest对象 +func NewTaobaoCaipiaoSignstatusCheckRequest() *TaobaoCaipiaoSignstatusCheckAPIRequest{ + return &TaobaoCaipiaoSignstatusCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCaipiaoSignstatusCheckAPIRequest) GetApiMethodName() string { + return "taobao.caipiao.signstatus.check" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCaipiaoSignstatusCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/caipiao/TaobaoCaipiaoSignstatusCheckAPIResponse.go b/model/caipiao/TaobaoCaipiaoSignstatusCheckAPIResponse.go new file mode 100644 index 0000000000..a0c0fecc31 --- /dev/null +++ b/model/caipiao/TaobaoCaipiaoSignstatusCheckAPIResponse.go @@ -0,0 +1,29 @@ +package caipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +检查用户是否签署支付宝代购协议 API返回值 +taobao.caipiao.signstatus.check + +检查用户是否签署了支付宝代扣协议。如果签署了,返回true; 如果没签署,返回false, 同时返回签署代扣协议的Url。 +*/ +type TaobaoCaipiaoSignstatusCheckAPIResponse struct { + model.CommonResponse + TaobaoCaipiaoSignstatusCheckAPIResponseModel +} + +// 检查用户是否签署支付宝代购协议 成功返回结果 +type TaobaoCaipiaoSignstatusCheckAPIResponseModel struct { + XMLName xml.Name `xml:"caipiao_signstatus_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否签署了支付宝代扣协议 + Sign bool `json:"sign,omitempty" xml:"sign,omitempty"` + // 签署支付宝代扣协议的Url + SignUrl string `json:"sign_url,omitempty" xml:"sign_url,omitempty"` +} diff --git a/model/caipiao/TaobaoCaipiaoSignstatusCheckResponse.go b/model/caipiao/TaobaoCaipiaoSignstatusCheckResponse.go deleted file mode 100644 index 1965812324..0000000000 --- a/model/caipiao/TaobaoCaipiaoSignstatusCheckResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package caipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -检查用户是否签署支付宝代购协议 API返回值 -taobao.caipiao.signstatus.check - -检查用户是否签署了支付宝代扣协议。如果签署了,返回true; 如果没签署,返回false, 同时返回签署代扣协议的Url。 -*/ -type TaobaoCaipiaoSignstatusCheckAPIResponse struct { - model.CommonResponse - TaobaoCaipiaoSignstatusCheckResponse -} - -// 检查用户是否签署支付宝代购协议 成功返回结果 -type TaobaoCaipiaoSignstatusCheckResponse struct { - XMLName xml.Name `xml:"caipiao_signstatus_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否签署了支付宝代扣协议 - Sign bool `json:"sign,omitempty" xml:"sign,omitempty"` - // 签署支付宝代扣协议的Url - SignUrl string `json:"sign_url,omitempty" xml:"sign_url,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclCancelpermiitemfromroleAPIRequest.go b/model/campus/AlibabaCampusAclCancelpermiitemfromroleAPIRequest.go new file mode 100644 index 0000000000..517e0c74fd --- /dev/null +++ b/model/campus/AlibabaCampusAclCancelpermiitemfromroleAPIRequest.go @@ -0,0 +1,122 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消角色和权限之间的关系 API请求 +alibaba.campus.acl.cancelpermiitemfromrole + +取消角色和权限之间的关系 +*/ +type AlibabaCampusAclCancelpermiitemfromroleAPIRequest struct { + model.Params + // 公司ID + _companyId int64 + // 系统id + _systemId string + // 园区id + _campusId int64 + // 系统自动生成 + _param1 *RoleReq + // 系统自动生成 + _param2 []PermissionReq + // 操作人id(不填默认appCode) + _userId string +} + +// 初始化AlibabaCampusAclCancelpermiitemfromroleAPIRequest对象 +func NewAlibabaCampusAclCancelpermiitemfromroleRequest() *AlibabaCampusAclCancelpermiitemfromroleAPIRequest{ + return &AlibabaCampusAclCancelpermiitemfromroleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclCancelpermiitemfromroleAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.cancelpermiitemfromrole" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclCancelpermiitemfromroleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CompanyId Setter +// 公司ID +func (r *AlibabaCampusAclCancelpermiitemfromroleAPIRequest) SetCompanyId(_companyId int64) error { + r._companyId = _companyId + r.Set("company_id", _companyId) + return nil +} + +// CompanyId Getter +func (r AlibabaCampusAclCancelpermiitemfromroleAPIRequest) GetCompanyId() int64 { + return r._companyId +} +// SystemId Setter +// 系统id +func (r *AlibabaCampusAclCancelpermiitemfromroleAPIRequest) SetSystemId(_systemId string) error { + r._systemId = _systemId + r.Set("system_id", _systemId) + return nil +} + +// SystemId Getter +func (r AlibabaCampusAclCancelpermiitemfromroleAPIRequest) GetSystemId() string { + return r._systemId +} +// CampusId Setter +// 园区id +func (r *AlibabaCampusAclCancelpermiitemfromroleAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaCampusAclCancelpermiitemfromroleAPIRequest) GetCampusId() int64 { + return r._campusId +} +// Param1 Setter +// 系统自动生成 +func (r *AlibabaCampusAclCancelpermiitemfromroleAPIRequest) SetParam1(_param1 *RoleReq) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaCampusAclCancelpermiitemfromroleAPIRequest) GetParam1() *RoleReq { + return r._param1 +} +// Param2 Setter +// 系统自动生成 +func (r *AlibabaCampusAclCancelpermiitemfromroleAPIRequest) SetParam2(_param2 []PermissionReq) error { + r._param2 = _param2 + r.Set("param2", _param2) + return nil +} + +// Param2 Getter +func (r AlibabaCampusAclCancelpermiitemfromroleAPIRequest) GetParam2() []PermissionReq { + return r._param2 +} +// UserId Setter +// 操作人id(不填默认appCode) +func (r *AlibabaCampusAclCancelpermiitemfromroleAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaCampusAclCancelpermiitemfromroleAPIRequest) GetUserId() string { + return r._userId +} diff --git a/model/campus/AlibabaCampusAclCancelpermiitemfromroleAPIResponse.go b/model/campus/AlibabaCampusAclCancelpermiitemfromroleAPIResponse.go new file mode 100644 index 0000000000..802bc723e5 --- /dev/null +++ b/model/campus/AlibabaCampusAclCancelpermiitemfromroleAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消角色和权限之间的关系 API返回值 +alibaba.campus.acl.cancelpermiitemfromrole + +取消角色和权限之间的关系 +*/ +type AlibabaCampusAclCancelpermiitemfromroleAPIResponse struct { + model.CommonResponse + AlibabaCampusAclCancelpermiitemfromroleAPIResponseModel +} + +// 取消角色和权限之间的关系 成功返回结果 +type AlibabaCampusAclCancelpermiitemfromroleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_cancelpermiitemfromrole_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclCancelpermiitemfromroleResponse.go b/model/campus/AlibabaCampusAclCancelpermiitemfromroleResponse.go deleted file mode 100644 index 29f75f8af0..0000000000 --- a/model/campus/AlibabaCampusAclCancelpermiitemfromroleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消角色和权限之间的关系 API返回值 -alibaba.campus.acl.cancelpermiitemfromrole - -取消角色和权限之间的关系 -*/ -type AlibabaCampusAclCancelpermiitemfromroleAPIResponse struct { - model.CommonResponse - AlibabaCampusAclCancelpermiitemfromroleResponse -} - -// 取消角色和权限之间的关系 成功返回结果 -type AlibabaCampusAclCancelpermiitemfromroleResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_cancelpermiitemfromrole_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclCancelrolesfromuserAPIRequest.go b/model/campus/AlibabaCampusAclCancelrolesfromuserAPIRequest.go new file mode 100644 index 0000000000..a410a2818e --- /dev/null +++ b/model/campus/AlibabaCampusAclCancelrolesfromuserAPIRequest.go @@ -0,0 +1,122 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +撤销用户授予的角色 API请求 +alibaba.campus.acl.cancelrolesfromuser + +撤销用户授予的角色 +*/ +type AlibabaCampusAclCancelrolesfromuserAPIRequest struct { + model.Params + // 系统自动生成 + _role []RoleReq + // 公司id + _companyId int64 + // 系统id + _systemId string + // 园区id + _campusId int64 + // 用户账号 + _accountId string + // 操作人id(不填默认appCode) + _userId string +} + +// 初始化AlibabaCampusAclCancelrolesfromuserAPIRequest对象 +func NewAlibabaCampusAclCancelrolesfromuserRequest() *AlibabaCampusAclCancelrolesfromuserAPIRequest{ + return &AlibabaCampusAclCancelrolesfromuserAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclCancelrolesfromuserAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.cancelrolesfromuser" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclCancelrolesfromuserAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Role Setter +// 系统自动生成 +func (r *AlibabaCampusAclCancelrolesfromuserAPIRequest) SetRole(_role []RoleReq) error { + r._role = _role + r.Set("role", _role) + return nil +} + +// Role Getter +func (r AlibabaCampusAclCancelrolesfromuserAPIRequest) GetRole() []RoleReq { + return r._role +} +// CompanyId Setter +// 公司id +func (r *AlibabaCampusAclCancelrolesfromuserAPIRequest) SetCompanyId(_companyId int64) error { + r._companyId = _companyId + r.Set("company_id", _companyId) + return nil +} + +// CompanyId Getter +func (r AlibabaCampusAclCancelrolesfromuserAPIRequest) GetCompanyId() int64 { + return r._companyId +} +// SystemId Setter +// 系统id +func (r *AlibabaCampusAclCancelrolesfromuserAPIRequest) SetSystemId(_systemId string) error { + r._systemId = _systemId + r.Set("system_id", _systemId) + return nil +} + +// SystemId Getter +func (r AlibabaCampusAclCancelrolesfromuserAPIRequest) GetSystemId() string { + return r._systemId +} +// CampusId Setter +// 园区id +func (r *AlibabaCampusAclCancelrolesfromuserAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaCampusAclCancelrolesfromuserAPIRequest) GetCampusId() int64 { + return r._campusId +} +// AccountId Setter +// 用户账号 +func (r *AlibabaCampusAclCancelrolesfromuserAPIRequest) SetAccountId(_accountId string) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r AlibabaCampusAclCancelrolesfromuserAPIRequest) GetAccountId() string { + return r._accountId +} +// UserId Setter +// 操作人id(不填默认appCode) +func (r *AlibabaCampusAclCancelrolesfromuserAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaCampusAclCancelrolesfromuserAPIRequest) GetUserId() string { + return r._userId +} diff --git a/model/campus/AlibabaCampusAclCancelrolesfromuserAPIResponse.go b/model/campus/AlibabaCampusAclCancelrolesfromuserAPIResponse.go new file mode 100644 index 0000000000..503db3e218 --- /dev/null +++ b/model/campus/AlibabaCampusAclCancelrolesfromuserAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +撤销用户授予的角色 API返回值 +alibaba.campus.acl.cancelrolesfromuser + +撤销用户授予的角色 +*/ +type AlibabaCampusAclCancelrolesfromuserAPIResponse struct { + model.CommonResponse + AlibabaCampusAclCancelrolesfromuserAPIResponseModel +} + +// 撤销用户授予的角色 成功返回结果 +type AlibabaCampusAclCancelrolesfromuserAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_cancelrolesfromuser_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclCancelrolesfromuserResponse.go b/model/campus/AlibabaCampusAclCancelrolesfromuserResponse.go deleted file mode 100644 index a0206ee223..0000000000 --- a/model/campus/AlibabaCampusAclCancelrolesfromuserResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -撤销用户授予的角色 API返回值 -alibaba.campus.acl.cancelrolesfromuser - -撤销用户授予的角色 -*/ -type AlibabaCampusAclCancelrolesfromuserAPIResponse struct { - model.CommonResponse - AlibabaCampusAclCancelrolesfromuserResponse -} - -// 撤销用户授予的角色 成功返回结果 -type AlibabaCampusAclCancelrolesfromuserResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_cancelrolesfromuser_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclCheckemproleAPIRequest.go b/model/campus/AlibabaCampusAclCheckemproleAPIRequest.go new file mode 100644 index 0000000000..27ed3bf799 --- /dev/null +++ b/model/campus/AlibabaCampusAclCheckemproleAPIRequest.go @@ -0,0 +1,108 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +校验用户是否有该角色 API请求 +alibaba.campus.acl.checkemprole + +校验用户是否有该权限 +*/ +type AlibabaCampusAclCheckemproleAPIRequest struct { + model.Params + // 公司id不填默认为SYS_000 + _companyId int64 + // 系统id + _systemId string + // 园区id + _campusId int64 + // 员工账号 + _accountId string + // 角色id + _itemKey string +} + +// 初始化AlibabaCampusAclCheckemproleAPIRequest对象 +func NewAlibabaCampusAclCheckemproleRequest() *AlibabaCampusAclCheckemproleAPIRequest{ + return &AlibabaCampusAclCheckemproleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclCheckemproleAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.checkemprole" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclCheckemproleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CompanyId Setter +// 公司id不填默认为SYS_000 +func (r *AlibabaCampusAclCheckemproleAPIRequest) SetCompanyId(_companyId int64) error { + r._companyId = _companyId + r.Set("company_id", _companyId) + return nil +} + +// CompanyId Getter +func (r AlibabaCampusAclCheckemproleAPIRequest) GetCompanyId() int64 { + return r._companyId +} +// SystemId Setter +// 系统id +func (r *AlibabaCampusAclCheckemproleAPIRequest) SetSystemId(_systemId string) error { + r._systemId = _systemId + r.Set("system_id", _systemId) + return nil +} + +// SystemId Getter +func (r AlibabaCampusAclCheckemproleAPIRequest) GetSystemId() string { + return r._systemId +} +// CampusId Setter +// 园区id +func (r *AlibabaCampusAclCheckemproleAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaCampusAclCheckemproleAPIRequest) GetCampusId() int64 { + return r._campusId +} +// AccountId Setter +// 员工账号 +func (r *AlibabaCampusAclCheckemproleAPIRequest) SetAccountId(_accountId string) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r AlibabaCampusAclCheckemproleAPIRequest) GetAccountId() string { + return r._accountId +} +// ItemKey Setter +// 角色id +func (r *AlibabaCampusAclCheckemproleAPIRequest) SetItemKey(_itemKey string) error { + r._itemKey = _itemKey + r.Set("item_key", _itemKey) + return nil +} + +// ItemKey Getter +func (r AlibabaCampusAclCheckemproleAPIRequest) GetItemKey() string { + return r._itemKey +} diff --git a/model/campus/AlibabaCampusAclCheckemproleAPIResponse.go b/model/campus/AlibabaCampusAclCheckemproleAPIResponse.go new file mode 100644 index 0000000000..22caee32d2 --- /dev/null +++ b/model/campus/AlibabaCampusAclCheckemproleAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +校验用户是否有该角色 API返回值 +alibaba.campus.acl.checkemprole + +校验用户是否有该权限 +*/ +type AlibabaCampusAclCheckemproleAPIResponse struct { + model.CommonResponse + AlibabaCampusAclCheckemproleAPIResponseModel +} + +// 校验用户是否有该角色 成功返回结果 +type AlibabaCampusAclCheckemproleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_checkemprole_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclCheckemproleResponse.go b/model/campus/AlibabaCampusAclCheckemproleResponse.go deleted file mode 100644 index 2d85f48177..0000000000 --- a/model/campus/AlibabaCampusAclCheckemproleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -校验用户是否有该角色 API返回值 -alibaba.campus.acl.checkemprole - -校验用户是否有该权限 -*/ -type AlibabaCampusAclCheckemproleAPIResponse struct { - model.CommonResponse - AlibabaCampusAclCheckemproleResponse -} - -// 校验用户是否有该角色 成功返回结果 -type AlibabaCampusAclCheckemproleResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_checkemprole_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclGetmenubyempidAPIRequest.go b/model/campus/AlibabaCampusAclGetmenubyempidAPIRequest.go new file mode 100644 index 0000000000..49d73c47b8 --- /dev/null +++ b/model/campus/AlibabaCampusAclGetmenubyempidAPIRequest.go @@ -0,0 +1,94 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询用户的菜单 API请求 +alibaba.campus.acl.getmenubyempid + +查询用户的菜单 +*/ +type AlibabaCampusAclGetmenubyempidAPIRequest struct { + model.Params + // 账户id + _userId int64 + // 系统id + _systemId string + // 公司id + _companyId int64 + // 园区id + _campusId int64 +} + +// 初始化AlibabaCampusAclGetmenubyempidAPIRequest对象 +func NewAlibabaCampusAclGetmenubyempidRequest() *AlibabaCampusAclGetmenubyempidAPIRequest{ + return &AlibabaCampusAclGetmenubyempidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclGetmenubyempidAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.getmenubyempid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclGetmenubyempidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 账户id +func (r *AlibabaCampusAclGetmenubyempidAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaCampusAclGetmenubyempidAPIRequest) GetUserId() int64 { + return r._userId +} +// SystemId Setter +// 系统id +func (r *AlibabaCampusAclGetmenubyempidAPIRequest) SetSystemId(_systemId string) error { + r._systemId = _systemId + r.Set("system_id", _systemId) + return nil +} + +// SystemId Getter +func (r AlibabaCampusAclGetmenubyempidAPIRequest) GetSystemId() string { + return r._systemId +} +// CompanyId Setter +// 公司id +func (r *AlibabaCampusAclGetmenubyempidAPIRequest) SetCompanyId(_companyId int64) error { + r._companyId = _companyId + r.Set("company_id", _companyId) + return nil +} + +// CompanyId Getter +func (r AlibabaCampusAclGetmenubyempidAPIRequest) GetCompanyId() int64 { + return r._companyId +} +// CampusId Setter +// 园区id +func (r *AlibabaCampusAclGetmenubyempidAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaCampusAclGetmenubyempidAPIRequest) GetCampusId() int64 { + return r._campusId +} diff --git a/model/campus/AlibabaCampusAclGetmenubyempidAPIResponse.go b/model/campus/AlibabaCampusAclGetmenubyempidAPIResponse.go new file mode 100644 index 0000000000..a78f04eae4 --- /dev/null +++ b/model/campus/AlibabaCampusAclGetmenubyempidAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询用户的菜单 API返回值 +alibaba.campus.acl.getmenubyempid + +查询用户的菜单 +*/ +type AlibabaCampusAclGetmenubyempidAPIResponse struct { + model.CommonResponse + AlibabaCampusAclGetmenubyempidAPIResponseModel +} + +// 查询用户的菜单 成功返回结果 +type AlibabaCampusAclGetmenubyempidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_getmenubyempid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回结果 + Result *CollectionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclGetmenubyempidResponse.go b/model/campus/AlibabaCampusAclGetmenubyempidResponse.go deleted file mode 100644 index 8004014e78..0000000000 --- a/model/campus/AlibabaCampusAclGetmenubyempidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询用户的菜单 API返回值 -alibaba.campus.acl.getmenubyempid - -查询用户的菜单 -*/ -type AlibabaCampusAclGetmenubyempidAPIResponse struct { - model.CommonResponse - AlibabaCampusAclGetmenubyempidResponse -} - -// 查询用户的菜单 成功返回结果 -type AlibabaCampusAclGetmenubyempidResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_getmenubyempid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回结果 - Result *CollectionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclGetpermissionbyroleidAPIRequest.go b/model/campus/AlibabaCampusAclGetpermissionbyroleidAPIRequest.go new file mode 100644 index 0000000000..1e507e2de2 --- /dev/null +++ b/model/campus/AlibabaCampusAclGetpermissionbyroleidAPIRequest.go @@ -0,0 +1,94 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据角色Id查询权限 API请求 +alibaba.campus.acl.getpermissionbyroleid + +根据角色查询权限 +*/ +type AlibabaCampusAclGetpermissionbyroleidAPIRequest struct { + model.Params + // 系统id + _systemId string + // 园区id + _campusId int64 + // 角色id + _roleId string + // 公司id + _companyId int64 +} + +// 初始化AlibabaCampusAclGetpermissionbyroleidAPIRequest对象 +func NewAlibabaCampusAclGetpermissionbyroleidRequest() *AlibabaCampusAclGetpermissionbyroleidAPIRequest{ + return &AlibabaCampusAclGetpermissionbyroleidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclGetpermissionbyroleidAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.getpermissionbyroleid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclGetpermissionbyroleidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SystemId Setter +// 系统id +func (r *AlibabaCampusAclGetpermissionbyroleidAPIRequest) SetSystemId(_systemId string) error { + r._systemId = _systemId + r.Set("system_id", _systemId) + return nil +} + +// SystemId Getter +func (r AlibabaCampusAclGetpermissionbyroleidAPIRequest) GetSystemId() string { + return r._systemId +} +// CampusId Setter +// 园区id +func (r *AlibabaCampusAclGetpermissionbyroleidAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaCampusAclGetpermissionbyroleidAPIRequest) GetCampusId() int64 { + return r._campusId +} +// RoleId Setter +// 角色id +func (r *AlibabaCampusAclGetpermissionbyroleidAPIRequest) SetRoleId(_roleId string) error { + r._roleId = _roleId + r.Set("role_id", _roleId) + return nil +} + +// RoleId Getter +func (r AlibabaCampusAclGetpermissionbyroleidAPIRequest) GetRoleId() string { + return r._roleId +} +// CompanyId Setter +// 公司id +func (r *AlibabaCampusAclGetpermissionbyroleidAPIRequest) SetCompanyId(_companyId int64) error { + r._companyId = _companyId + r.Set("company_id", _companyId) + return nil +} + +// CompanyId Getter +func (r AlibabaCampusAclGetpermissionbyroleidAPIRequest) GetCompanyId() int64 { + return r._companyId +} diff --git a/model/campus/AlibabaCampusAclGetpermissionbyroleidAPIResponse.go b/model/campus/AlibabaCampusAclGetpermissionbyroleidAPIResponse.go new file mode 100644 index 0000000000..4cfe546603 --- /dev/null +++ b/model/campus/AlibabaCampusAclGetpermissionbyroleidAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据角色Id查询权限 API返回值 +alibaba.campus.acl.getpermissionbyroleid + +根据角色查询权限 +*/ +type AlibabaCampusAclGetpermissionbyroleidAPIResponse struct { + model.CommonResponse + AlibabaCampusAclGetpermissionbyroleidAPIResponseModel +} + +// 根据角色Id查询权限 成功返回结果 +type AlibabaCampusAclGetpermissionbyroleidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_getpermissionbyroleid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CollectionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclGetpermissionbyroleidResponse.go b/model/campus/AlibabaCampusAclGetpermissionbyroleidResponse.go deleted file mode 100644 index f0374c882c..0000000000 --- a/model/campus/AlibabaCampusAclGetpermissionbyroleidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据角色Id查询权限 API返回值 -alibaba.campus.acl.getpermissionbyroleid - -根据角色查询权限 -*/ -type AlibabaCampusAclGetpermissionbyroleidAPIResponse struct { - model.CommonResponse - AlibabaCampusAclGetpermissionbyroleidResponse -} - -// 根据角色Id查询权限 成功返回结果 -type AlibabaCampusAclGetpermissionbyroleidResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_getpermissionbyroleid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CollectionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclGetrolebyempidAPIRequest.go b/model/campus/AlibabaCampusAclGetrolebyempidAPIRequest.go new file mode 100644 index 0000000000..823377cd50 --- /dev/null +++ b/model/campus/AlibabaCampusAclGetrolebyempidAPIRequest.go @@ -0,0 +1,94 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据用户查询角色 API请求 +alibaba.campus.acl.getrolebyempid + +根据用户查询角色 +*/ +type AlibabaCampusAclGetrolebyempidAPIRequest struct { + model.Params + // 公司id + _companyId int64 + // 系统id + _systemId string + // 园区id + _campusId int64 + // 用户id + _param1 string +} + +// 初始化AlibabaCampusAclGetrolebyempidAPIRequest对象 +func NewAlibabaCampusAclGetrolebyempidRequest() *AlibabaCampusAclGetrolebyempidAPIRequest{ + return &AlibabaCampusAclGetrolebyempidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclGetrolebyempidAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.getrolebyempid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclGetrolebyempidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CompanyId Setter +// 公司id +func (r *AlibabaCampusAclGetrolebyempidAPIRequest) SetCompanyId(_companyId int64) error { + r._companyId = _companyId + r.Set("company_id", _companyId) + return nil +} + +// CompanyId Getter +func (r AlibabaCampusAclGetrolebyempidAPIRequest) GetCompanyId() int64 { + return r._companyId +} +// SystemId Setter +// 系统id +func (r *AlibabaCampusAclGetrolebyempidAPIRequest) SetSystemId(_systemId string) error { + r._systemId = _systemId + r.Set("system_id", _systemId) + return nil +} + +// SystemId Getter +func (r AlibabaCampusAclGetrolebyempidAPIRequest) GetSystemId() string { + return r._systemId +} +// CampusId Setter +// 园区id +func (r *AlibabaCampusAclGetrolebyempidAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaCampusAclGetrolebyempidAPIRequest) GetCampusId() int64 { + return r._campusId +} +// Param1 Setter +// 用户id +func (r *AlibabaCampusAclGetrolebyempidAPIRequest) SetParam1(_param1 string) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaCampusAclGetrolebyempidAPIRequest) GetParam1() string { + return r._param1 +} diff --git a/model/campus/AlibabaCampusAclGetrolebyempidAPIResponse.go b/model/campus/AlibabaCampusAclGetrolebyempidAPIResponse.go new file mode 100644 index 0000000000..c5331dc675 --- /dev/null +++ b/model/campus/AlibabaCampusAclGetrolebyempidAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据用户查询角色 API返回值 +alibaba.campus.acl.getrolebyempid + +根据用户查询角色 +*/ +type AlibabaCampusAclGetrolebyempidAPIResponse struct { + model.CommonResponse + AlibabaCampusAclGetrolebyempidAPIResponseModel +} + +// 根据用户查询角色 成功返回结果 +type AlibabaCampusAclGetrolebyempidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_getrolebyempid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CollectionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclGetrolebyempidResponse.go b/model/campus/AlibabaCampusAclGetrolebyempidResponse.go deleted file mode 100644 index 0ae53beef5..0000000000 --- a/model/campus/AlibabaCampusAclGetrolebyempidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据用户查询角色 API返回值 -alibaba.campus.acl.getrolebyempid - -根据用户查询角色 -*/ -type AlibabaCampusAclGetrolebyempidAPIResponse struct { - model.CommonResponse - AlibabaCampusAclGetrolebyempidResponse -} - -// 根据用户查询角色 成功返回结果 -type AlibabaCampusAclGetrolebyempidResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_getrolebyempid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CollectionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclGrantpermiitemstouserAPIRequest.go b/model/campus/AlibabaCampusAclGrantpermiitemstouserAPIRequest.go new file mode 100644 index 0000000000..bfc9c655ff --- /dev/null +++ b/model/campus/AlibabaCampusAclGrantpermiitemstouserAPIRequest.go @@ -0,0 +1,122 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +给人直接授权 API请求 +alibaba.campus.acl.grantpermiitemstouser + +给人直接授权 +*/ +type AlibabaCampusAclGrantpermiitemstouserAPIRequest struct { + model.Params + // 公司id不填统一默认生成SYS_000 + _companyId int64 + // 系统id + _systemId string + // 园区id + _campusId int64 + // 用户id + _empId string + // 权限 + _priv []PermissionReq + // 操作人id(不填默认appCode) + _userId string +} + +// 初始化AlibabaCampusAclGrantpermiitemstouserAPIRequest对象 +func NewAlibabaCampusAclGrantpermiitemstouserRequest() *AlibabaCampusAclGrantpermiitemstouserAPIRequest{ + return &AlibabaCampusAclGrantpermiitemstouserAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclGrantpermiitemstouserAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.grantpermiitemstouser" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclGrantpermiitemstouserAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CompanyId Setter +// 公司id不填统一默认生成SYS_000 +func (r *AlibabaCampusAclGrantpermiitemstouserAPIRequest) SetCompanyId(_companyId int64) error { + r._companyId = _companyId + r.Set("company_id", _companyId) + return nil +} + +// CompanyId Getter +func (r AlibabaCampusAclGrantpermiitemstouserAPIRequest) GetCompanyId() int64 { + return r._companyId +} +// SystemId Setter +// 系统id +func (r *AlibabaCampusAclGrantpermiitemstouserAPIRequest) SetSystemId(_systemId string) error { + r._systemId = _systemId + r.Set("system_id", _systemId) + return nil +} + +// SystemId Getter +func (r AlibabaCampusAclGrantpermiitemstouserAPIRequest) GetSystemId() string { + return r._systemId +} +// CampusId Setter +// 园区id +func (r *AlibabaCampusAclGrantpermiitemstouserAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaCampusAclGrantpermiitemstouserAPIRequest) GetCampusId() int64 { + return r._campusId +} +// EmpId Setter +// 用户id +func (r *AlibabaCampusAclGrantpermiitemstouserAPIRequest) SetEmpId(_empId string) error { + r._empId = _empId + r.Set("emp_id", _empId) + return nil +} + +// EmpId Getter +func (r AlibabaCampusAclGrantpermiitemstouserAPIRequest) GetEmpId() string { + return r._empId +} +// Priv Setter +// 权限 +func (r *AlibabaCampusAclGrantpermiitemstouserAPIRequest) SetPriv(_priv []PermissionReq) error { + r._priv = _priv + r.Set("priv", _priv) + return nil +} + +// Priv Getter +func (r AlibabaCampusAclGrantpermiitemstouserAPIRequest) GetPriv() []PermissionReq { + return r._priv +} +// UserId Setter +// 操作人id(不填默认appCode) +func (r *AlibabaCampusAclGrantpermiitemstouserAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaCampusAclGrantpermiitemstouserAPIRequest) GetUserId() string { + return r._userId +} diff --git a/model/campus/AlibabaCampusAclGrantpermiitemstouserAPIResponse.go b/model/campus/AlibabaCampusAclGrantpermiitemstouserAPIResponse.go new file mode 100644 index 0000000000..c0f482d223 --- /dev/null +++ b/model/campus/AlibabaCampusAclGrantpermiitemstouserAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +给人直接授权 API返回值 +alibaba.campus.acl.grantpermiitemstouser + +给人直接授权 +*/ +type AlibabaCampusAclGrantpermiitemstouserAPIResponse struct { + model.CommonResponse + AlibabaCampusAclGrantpermiitemstouserAPIResponseModel +} + +// 给人直接授权 成功返回结果 +type AlibabaCampusAclGrantpermiitemstouserAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_grantpermiitemstouser_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclGrantpermiitemstouserResponse.go b/model/campus/AlibabaCampusAclGrantpermiitemstouserResponse.go deleted file mode 100644 index 968bc7e583..0000000000 --- a/model/campus/AlibabaCampusAclGrantpermiitemstouserResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -给人直接授权 API返回值 -alibaba.campus.acl.grantpermiitemstouser - -给人直接授权 -*/ -type AlibabaCampusAclGrantpermiitemstouserAPIResponse struct { - model.CommonResponse - AlibabaCampusAclGrantpermiitemstouserResponse -} - -// 给人直接授权 成功返回结果 -type AlibabaCampusAclGrantpermiitemstouserResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_grantpermiitemstouser_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclGrantpermiitemtoroleAPIRequest.go b/model/campus/AlibabaCampusAclGrantpermiitemtoroleAPIRequest.go new file mode 100644 index 0000000000..7129719803 --- /dev/null +++ b/model/campus/AlibabaCampusAclGrantpermiitemtoroleAPIRequest.go @@ -0,0 +1,122 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +权限赋予角色 API请求 +alibaba.campus.acl.grantpermiitemtorole + +权限赋予角色 +*/ +type AlibabaCampusAclGrantpermiitemtoroleAPIRequest struct { + model.Params + // 公司ID,不填统一初始化SYS_000 + _companyId int64 + // 系统id + _systemId string + // 园区ID + _campusId int64 + // 系统自动生成 + _role *RoleReq + // 系统自动生成 + _priv []PermissionReq + // 操作人id + _userId string +} + +// 初始化AlibabaCampusAclGrantpermiitemtoroleAPIRequest对象 +func NewAlibabaCampusAclGrantpermiitemtoroleRequest() *AlibabaCampusAclGrantpermiitemtoroleAPIRequest{ + return &AlibabaCampusAclGrantpermiitemtoroleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclGrantpermiitemtoroleAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.grantpermiitemtorole" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclGrantpermiitemtoroleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CompanyId Setter +// 公司ID,不填统一初始化SYS_000 +func (r *AlibabaCampusAclGrantpermiitemtoroleAPIRequest) SetCompanyId(_companyId int64) error { + r._companyId = _companyId + r.Set("company_id", _companyId) + return nil +} + +// CompanyId Getter +func (r AlibabaCampusAclGrantpermiitemtoroleAPIRequest) GetCompanyId() int64 { + return r._companyId +} +// SystemId Setter +// 系统id +func (r *AlibabaCampusAclGrantpermiitemtoroleAPIRequest) SetSystemId(_systemId string) error { + r._systemId = _systemId + r.Set("system_id", _systemId) + return nil +} + +// SystemId Getter +func (r AlibabaCampusAclGrantpermiitemtoroleAPIRequest) GetSystemId() string { + return r._systemId +} +// CampusId Setter +// 园区ID +func (r *AlibabaCampusAclGrantpermiitemtoroleAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaCampusAclGrantpermiitemtoroleAPIRequest) GetCampusId() int64 { + return r._campusId +} +// Role Setter +// 系统自动生成 +func (r *AlibabaCampusAclGrantpermiitemtoroleAPIRequest) SetRole(_role *RoleReq) error { + r._role = _role + r.Set("role", _role) + return nil +} + +// Role Getter +func (r AlibabaCampusAclGrantpermiitemtoroleAPIRequest) GetRole() *RoleReq { + return r._role +} +// Priv Setter +// 系统自动生成 +func (r *AlibabaCampusAclGrantpermiitemtoroleAPIRequest) SetPriv(_priv []PermissionReq) error { + r._priv = _priv + r.Set("priv", _priv) + return nil +} + +// Priv Getter +func (r AlibabaCampusAclGrantpermiitemtoroleAPIRequest) GetPriv() []PermissionReq { + return r._priv +} +// UserId Setter +// 操作人id +func (r *AlibabaCampusAclGrantpermiitemtoroleAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaCampusAclGrantpermiitemtoroleAPIRequest) GetUserId() string { + return r._userId +} diff --git a/model/campus/AlibabaCampusAclGrantpermiitemtoroleAPIResponse.go b/model/campus/AlibabaCampusAclGrantpermiitemtoroleAPIResponse.go new file mode 100644 index 0000000000..b523695e42 --- /dev/null +++ b/model/campus/AlibabaCampusAclGrantpermiitemtoroleAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +权限赋予角色 API返回值 +alibaba.campus.acl.grantpermiitemtorole + +权限赋予角色 +*/ +type AlibabaCampusAclGrantpermiitemtoroleAPIResponse struct { + model.CommonResponse + AlibabaCampusAclGrantpermiitemtoroleAPIResponseModel +} + +// 权限赋予角色 成功返回结果 +type AlibabaCampusAclGrantpermiitemtoroleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_grantpermiitemtorole_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclGrantpermiitemtoroleResponse.go b/model/campus/AlibabaCampusAclGrantpermiitemtoroleResponse.go deleted file mode 100644 index 01771e6dbf..0000000000 --- a/model/campus/AlibabaCampusAclGrantpermiitemtoroleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -权限赋予角色 API返回值 -alibaba.campus.acl.grantpermiitemtorole - -权限赋予角色 -*/ -type AlibabaCampusAclGrantpermiitemtoroleAPIResponse struct { - model.CommonResponse - AlibabaCampusAclGrantpermiitemtoroleResponse -} - -// 权限赋予角色 成功返回结果 -type AlibabaCampusAclGrantpermiitemtoroleResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_grantpermiitemtorole_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclInsertroleAPIRequest.go b/model/campus/AlibabaCampusAclInsertroleAPIRequest.go new file mode 100644 index 0000000000..a618bc9166 --- /dev/null +++ b/model/campus/AlibabaCampusAclInsertroleAPIRequest.go @@ -0,0 +1,150 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增角色 API请求 +alibaba.campus.acl.insertrole + +新增角色 +*/ +type AlibabaCampusAclInsertroleAPIRequest struct { + model.Params + // 公司id,不填统一为SYS_000 + _companyId int64 + // 系统id + _systemId string + // 园区id + _campusId int64 + // 角色描述 + _roleDesc string + // 角色名称 + _roleName string + // 默认人员角色.还有device设备角色类型 + _roleType string + // 角色唯一ID,统一ROLE_开头,不填默认生成ROLE_UUID(32位随机数) + _roleId string + // 操作人id(不填默认appCode) + _userId string +} + +// 初始化AlibabaCampusAclInsertroleAPIRequest对象 +func NewAlibabaCampusAclInsertroleRequest() *AlibabaCampusAclInsertroleAPIRequest{ + return &AlibabaCampusAclInsertroleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclInsertroleAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.insertrole" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclInsertroleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CompanyId Setter +// 公司id,不填统一为SYS_000 +func (r *AlibabaCampusAclInsertroleAPIRequest) SetCompanyId(_companyId int64) error { + r._companyId = _companyId + r.Set("company_id", _companyId) + return nil +} + +// CompanyId Getter +func (r AlibabaCampusAclInsertroleAPIRequest) GetCompanyId() int64 { + return r._companyId +} +// SystemId Setter +// 系统id +func (r *AlibabaCampusAclInsertroleAPIRequest) SetSystemId(_systemId string) error { + r._systemId = _systemId + r.Set("system_id", _systemId) + return nil +} + +// SystemId Getter +func (r AlibabaCampusAclInsertroleAPIRequest) GetSystemId() string { + return r._systemId +} +// CampusId Setter +// 园区id +func (r *AlibabaCampusAclInsertroleAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaCampusAclInsertroleAPIRequest) GetCampusId() int64 { + return r._campusId +} +// RoleDesc Setter +// 角色描述 +func (r *AlibabaCampusAclInsertroleAPIRequest) SetRoleDesc(_roleDesc string) error { + r._roleDesc = _roleDesc + r.Set("role_desc", _roleDesc) + return nil +} + +// RoleDesc Getter +func (r AlibabaCampusAclInsertroleAPIRequest) GetRoleDesc() string { + return r._roleDesc +} +// RoleName Setter +// 角色名称 +func (r *AlibabaCampusAclInsertroleAPIRequest) SetRoleName(_roleName string) error { + r._roleName = _roleName + r.Set("role_name", _roleName) + return nil +} + +// RoleName Getter +func (r AlibabaCampusAclInsertroleAPIRequest) GetRoleName() string { + return r._roleName +} +// RoleType Setter +// 默认人员角色.还有device设备角色类型 +func (r *AlibabaCampusAclInsertroleAPIRequest) SetRoleType(_roleType string) error { + r._roleType = _roleType + r.Set("role_type", _roleType) + return nil +} + +// RoleType Getter +func (r AlibabaCampusAclInsertroleAPIRequest) GetRoleType() string { + return r._roleType +} +// RoleId Setter +// 角色唯一ID,统一ROLE_开头,不填默认生成ROLE_UUID(32位随机数) +func (r *AlibabaCampusAclInsertroleAPIRequest) SetRoleId(_roleId string) error { + r._roleId = _roleId + r.Set("role_id", _roleId) + return nil +} + +// RoleId Getter +func (r AlibabaCampusAclInsertroleAPIRequest) GetRoleId() string { + return r._roleId +} +// UserId Setter +// 操作人id(不填默认appCode) +func (r *AlibabaCampusAclInsertroleAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaCampusAclInsertroleAPIRequest) GetUserId() string { + return r._userId +} diff --git a/model/campus/AlibabaCampusAclInsertroleAPIResponse.go b/model/campus/AlibabaCampusAclInsertroleAPIResponse.go new file mode 100644 index 0000000000..0dd078818c --- /dev/null +++ b/model/campus/AlibabaCampusAclInsertroleAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增角色 API返回值 +alibaba.campus.acl.insertrole + +新增角色 +*/ +type AlibabaCampusAclInsertroleAPIResponse struct { + model.CommonResponse + AlibabaCampusAclInsertroleAPIResponseModel +} + +// 新增角色 成功返回结果 +type AlibabaCampusAclInsertroleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_insertrole_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *RoleRsp `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclInsertroleResponse.go b/model/campus/AlibabaCampusAclInsertroleResponse.go deleted file mode 100644 index d847c91ebc..0000000000 --- a/model/campus/AlibabaCampusAclInsertroleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增角色 API返回值 -alibaba.campus.acl.insertrole - -新增角色 -*/ -type AlibabaCampusAclInsertroleAPIResponse struct { - model.CommonResponse - AlibabaCampusAclInsertroleResponse -} - -// 新增角色 成功返回结果 -type AlibabaCampusAclInsertroleResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_insertrole_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *RoleRsp `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclNewCheckusermenuAPIRequest.go b/model/campus/AlibabaCampusAclNewCheckusermenuAPIRequest.go new file mode 100644 index 0000000000..206edc4ad4 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewCheckusermenuAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +校验用户是否有菜单权限 API请求 +alibaba.campus.acl.new.checkusermenu + +校验用户是否有菜单权限 +*/ +type AlibabaCampusAclNewCheckusermenuAPIRequest struct { + model.Params + // 系统入参 + _workbenchcontext *WorkBenchContext + // 入参 + _param *CheckUserMenuParam +} + +// 初始化AlibabaCampusAclNewCheckusermenuAPIRequest对象 +func NewAlibabaCampusAclNewCheckusermenuRequest() *AlibabaCampusAclNewCheckusermenuAPIRequest{ + return &AlibabaCampusAclNewCheckusermenuAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclNewCheckusermenuAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.new.checkusermenu" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclNewCheckusermenuAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Workbenchcontext Setter +// 系统入参 +func (r *AlibabaCampusAclNewCheckusermenuAPIRequest) SetWorkbenchcontext(_workbenchcontext *WorkBenchContext) error { + r._workbenchcontext = _workbenchcontext + r.Set("workbenchcontext", _workbenchcontext) + return nil +} + +// Workbenchcontext Getter +func (r AlibabaCampusAclNewCheckusermenuAPIRequest) GetWorkbenchcontext() *WorkBenchContext { + return r._workbenchcontext +} +// Param Setter +// 入参 +func (r *AlibabaCampusAclNewCheckusermenuAPIRequest) SetParam(_param *CheckUserMenuParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaCampusAclNewCheckusermenuAPIRequest) GetParam() *CheckUserMenuParam { + return r._param +} diff --git a/model/campus/AlibabaCampusAclNewCheckusermenuAPIResponse.go b/model/campus/AlibabaCampusAclNewCheckusermenuAPIResponse.go new file mode 100644 index 0000000000..474a170fa6 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewCheckusermenuAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +校验用户是否有菜单权限 API返回值 +alibaba.campus.acl.new.checkusermenu + +校验用户是否有菜单权限 +*/ +type AlibabaCampusAclNewCheckusermenuAPIResponse struct { + model.CommonResponse + AlibabaCampusAclNewCheckusermenuAPIResponseModel +} + +// 校验用户是否有菜单权限 成功返回结果 +type AlibabaCampusAclNewCheckusermenuAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_new_checkusermenu_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclNewCheckusermenuResponse.go b/model/campus/AlibabaCampusAclNewCheckusermenuResponse.go deleted file mode 100644 index 0acb44b1c7..0000000000 --- a/model/campus/AlibabaCampusAclNewCheckusermenuResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -校验用户是否有菜单权限 API返回值 -alibaba.campus.acl.new.checkusermenu - -校验用户是否有菜单权限 -*/ -type AlibabaCampusAclNewCheckusermenuAPIResponse struct { - model.CommonResponse - AlibabaCampusAclNewCheckusermenuResponse -} - -// 校验用户是否有菜单权限 成功返回结果 -type AlibabaCampusAclNewCheckusermenuResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_new_checkusermenu_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclNewCheckuserpermissionAPIRequest.go b/model/campus/AlibabaCampusAclNewCheckuserpermissionAPIRequest.go new file mode 100644 index 0000000000..15ba8d5525 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewCheckuserpermissionAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +校验用户是否有权限 API请求 +alibaba.campus.acl.new.checkuserpermission + +校验用户是否有权限 +*/ +type AlibabaCampusAclNewCheckuserpermissionAPIRequest struct { + model.Params + // 系统入参 + _workbenchcontext *WorkBenchContext + // 接口入参 + _checkUserPermissionParam *CheckUserPermissionParam +} + +// 初始化AlibabaCampusAclNewCheckuserpermissionAPIRequest对象 +func NewAlibabaCampusAclNewCheckuserpermissionRequest() *AlibabaCampusAclNewCheckuserpermissionAPIRequest{ + return &AlibabaCampusAclNewCheckuserpermissionAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclNewCheckuserpermissionAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.new.checkuserpermission" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclNewCheckuserpermissionAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Workbenchcontext Setter +// 系统入参 +func (r *AlibabaCampusAclNewCheckuserpermissionAPIRequest) SetWorkbenchcontext(_workbenchcontext *WorkBenchContext) error { + r._workbenchcontext = _workbenchcontext + r.Set("workbenchcontext", _workbenchcontext) + return nil +} + +// Workbenchcontext Getter +func (r AlibabaCampusAclNewCheckuserpermissionAPIRequest) GetWorkbenchcontext() *WorkBenchContext { + return r._workbenchcontext +} +// CheckUserPermissionParam Setter +// 接口入参 +func (r *AlibabaCampusAclNewCheckuserpermissionAPIRequest) SetCheckUserPermissionParam(_checkUserPermissionParam *CheckUserPermissionParam) error { + r._checkUserPermissionParam = _checkUserPermissionParam + r.Set("check_user_permission_param", _checkUserPermissionParam) + return nil +} + +// CheckUserPermissionParam Getter +func (r AlibabaCampusAclNewCheckuserpermissionAPIRequest) GetCheckUserPermissionParam() *CheckUserPermissionParam { + return r._checkUserPermissionParam +} diff --git a/model/campus/AlibabaCampusAclNewCheckuserpermissionAPIResponse.go b/model/campus/AlibabaCampusAclNewCheckuserpermissionAPIResponse.go new file mode 100644 index 0000000000..cf8f637821 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewCheckuserpermissionAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +校验用户是否有权限 API返回值 +alibaba.campus.acl.new.checkuserpermission + +校验用户是否有权限 +*/ +type AlibabaCampusAclNewCheckuserpermissionAPIResponse struct { + model.CommonResponse + AlibabaCampusAclNewCheckuserpermissionAPIResponseModel +} + +// 校验用户是否有权限 成功返回结果 +type AlibabaCampusAclNewCheckuserpermissionAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_new_checkuserpermission_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclNewCheckuserpermissionResponse.go b/model/campus/AlibabaCampusAclNewCheckuserpermissionResponse.go deleted file mode 100644 index 96c65dda0b..0000000000 --- a/model/campus/AlibabaCampusAclNewCheckuserpermissionResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -校验用户是否有权限 API返回值 -alibaba.campus.acl.new.checkuserpermission - -校验用户是否有权限 -*/ -type AlibabaCampusAclNewCheckuserpermissionAPIResponse struct { - model.CommonResponse - AlibabaCampusAclNewCheckuserpermissionResponse -} - -// 校验用户是否有权限 成功返回结果 -type AlibabaCampusAclNewCheckuserpermissionResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_new_checkuserpermission_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclNewCheckuserroleAPIRequest.go b/model/campus/AlibabaCampusAclNewCheckuserroleAPIRequest.go new file mode 100644 index 0000000000..47280a5615 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewCheckuserroleAPIRequest.go @@ -0,0 +1,80 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +校验用户是否有角色 API请求 +alibaba.campus.acl.new.checkuserrole + +校验用户是否有角色 +*/ +type AlibabaCampusAclNewCheckuserroleAPIRequest struct { + model.Params + // 用户账号 + _userId string + // 角色key + _roleKey string + // 系统入参 + _workbenchcontext *WorkBenchContext +} + +// 初始化AlibabaCampusAclNewCheckuserroleAPIRequest对象 +func NewAlibabaCampusAclNewCheckuserroleRequest() *AlibabaCampusAclNewCheckuserroleAPIRequest{ + return &AlibabaCampusAclNewCheckuserroleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclNewCheckuserroleAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.new.checkuserrole" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclNewCheckuserroleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户账号 +func (r *AlibabaCampusAclNewCheckuserroleAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaCampusAclNewCheckuserroleAPIRequest) GetUserId() string { + return r._userId +} +// RoleKey Setter +// 角色key +func (r *AlibabaCampusAclNewCheckuserroleAPIRequest) SetRoleKey(_roleKey string) error { + r._roleKey = _roleKey + r.Set("role_key", _roleKey) + return nil +} + +// RoleKey Getter +func (r AlibabaCampusAclNewCheckuserroleAPIRequest) GetRoleKey() string { + return r._roleKey +} +// Workbenchcontext Setter +// 系统入参 +func (r *AlibabaCampusAclNewCheckuserroleAPIRequest) SetWorkbenchcontext(_workbenchcontext *WorkBenchContext) error { + r._workbenchcontext = _workbenchcontext + r.Set("workbenchcontext", _workbenchcontext) + return nil +} + +// Workbenchcontext Getter +func (r AlibabaCampusAclNewCheckuserroleAPIRequest) GetWorkbenchcontext() *WorkBenchContext { + return r._workbenchcontext +} diff --git a/model/campus/AlibabaCampusAclNewCheckuserroleAPIResponse.go b/model/campus/AlibabaCampusAclNewCheckuserroleAPIResponse.go new file mode 100644 index 0000000000..c769eab3fd --- /dev/null +++ b/model/campus/AlibabaCampusAclNewCheckuserroleAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +校验用户是否有角色 API返回值 +alibaba.campus.acl.new.checkuserrole + +校验用户是否有角色 +*/ +type AlibabaCampusAclNewCheckuserroleAPIResponse struct { + model.CommonResponse + AlibabaCampusAclNewCheckuserroleAPIResponseModel +} + +// 校验用户是否有角色 成功返回结果 +type AlibabaCampusAclNewCheckuserroleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_new_checkuserrole_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回结果 + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclNewCheckuserroleResponse.go b/model/campus/AlibabaCampusAclNewCheckuserroleResponse.go deleted file mode 100644 index 9486925f0d..0000000000 --- a/model/campus/AlibabaCampusAclNewCheckuserroleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -校验用户是否有角色 API返回值 -alibaba.campus.acl.new.checkuserrole - -校验用户是否有角色 -*/ -type AlibabaCampusAclNewCheckuserroleAPIResponse struct { - model.CommonResponse - AlibabaCampusAclNewCheckuserroleResponse -} - -// 校验用户是否有角色 成功返回结果 -type AlibabaCampusAclNewCheckuserroleResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_new_checkuserrole_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回结果 - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclNewDeleteuserroleAPIRequest.go b/model/campus/AlibabaCampusAclNewDeleteuserroleAPIRequest.go new file mode 100644 index 0000000000..990cbc45aa --- /dev/null +++ b/model/campus/AlibabaCampusAclNewDeleteuserroleAPIRequest.go @@ -0,0 +1,80 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除管理员 API请求 +alibaba.campus.acl.new.deleteuserrole + +删除管理员 +*/ +type AlibabaCampusAclNewDeleteuserroleAPIRequest struct { + model.Params + // 系统入参 + _workbenchcontext *WorkBenchContext + // 用户账号 + _userId string + // 角色id + _roleIds []int64 +} + +// 初始化AlibabaCampusAclNewDeleteuserroleAPIRequest对象 +func NewAlibabaCampusAclNewDeleteuserroleRequest() *AlibabaCampusAclNewDeleteuserroleAPIRequest{ + return &AlibabaCampusAclNewDeleteuserroleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclNewDeleteuserroleAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.new.deleteuserrole" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclNewDeleteuserroleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Workbenchcontext Setter +// 系统入参 +func (r *AlibabaCampusAclNewDeleteuserroleAPIRequest) SetWorkbenchcontext(_workbenchcontext *WorkBenchContext) error { + r._workbenchcontext = _workbenchcontext + r.Set("workbenchcontext", _workbenchcontext) + return nil +} + +// Workbenchcontext Getter +func (r AlibabaCampusAclNewDeleteuserroleAPIRequest) GetWorkbenchcontext() *WorkBenchContext { + return r._workbenchcontext +} +// UserId Setter +// 用户账号 +func (r *AlibabaCampusAclNewDeleteuserroleAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaCampusAclNewDeleteuserroleAPIRequest) GetUserId() string { + return r._userId +} +// RoleIds Setter +// 角色id +func (r *AlibabaCampusAclNewDeleteuserroleAPIRequest) SetRoleIds(_roleIds []int64) error { + r._roleIds = _roleIds + r.Set("role_ids", _roleIds) + return nil +} + +// RoleIds Getter +func (r AlibabaCampusAclNewDeleteuserroleAPIRequest) GetRoleIds() []int64 { + return r._roleIds +} diff --git a/model/campus/AlibabaCampusAclNewDeleteuserroleAPIResponse.go b/model/campus/AlibabaCampusAclNewDeleteuserroleAPIResponse.go new file mode 100644 index 0000000000..90b8538812 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewDeleteuserroleAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除管理员 API返回值 +alibaba.campus.acl.new.deleteuserrole + +删除管理员 +*/ +type AlibabaCampusAclNewDeleteuserroleAPIResponse struct { + model.CommonResponse + AlibabaCampusAclNewDeleteuserroleAPIResponseModel +} + +// 删除管理员 成功返回结果 +type AlibabaCampusAclNewDeleteuserroleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_new_deleteuserrole_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclNewDeleteuserroleResponse.go b/model/campus/AlibabaCampusAclNewDeleteuserroleResponse.go deleted file mode 100644 index 17207bd6b1..0000000000 --- a/model/campus/AlibabaCampusAclNewDeleteuserroleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除管理员 API返回值 -alibaba.campus.acl.new.deleteuserrole - -删除管理员 -*/ -type AlibabaCampusAclNewDeleteuserroleAPIResponse struct { - model.CommonResponse - AlibabaCampusAclNewDeleteuserroleResponse -} - -// 删除管理员 成功返回结果 -type AlibabaCampusAclNewDeleteuserroleResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_new_deleteuserrole_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclNewFreezeroleAPIRequest.go b/model/campus/AlibabaCampusAclNewFreezeroleAPIRequest.go new file mode 100644 index 0000000000..66edbe3632 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewFreezeroleAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +冻结角色 API请求 +alibaba.campus.acl.new.freezerole + +冻结角色 +*/ +type AlibabaCampusAclNewFreezeroleAPIRequest struct { + model.Params + // 系统入参 + _workbenchcontext *WorkBenchContext + // 角色主键id + _roleId int64 +} + +// 初始化AlibabaCampusAclNewFreezeroleAPIRequest对象 +func NewAlibabaCampusAclNewFreezeroleRequest() *AlibabaCampusAclNewFreezeroleAPIRequest{ + return &AlibabaCampusAclNewFreezeroleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclNewFreezeroleAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.new.freezerole" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclNewFreezeroleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Workbenchcontext Setter +// 系统入参 +func (r *AlibabaCampusAclNewFreezeroleAPIRequest) SetWorkbenchcontext(_workbenchcontext *WorkBenchContext) error { + r._workbenchcontext = _workbenchcontext + r.Set("workbenchcontext", _workbenchcontext) + return nil +} + +// Workbenchcontext Getter +func (r AlibabaCampusAclNewFreezeroleAPIRequest) GetWorkbenchcontext() *WorkBenchContext { + return r._workbenchcontext +} +// RoleId Setter +// 角色主键id +func (r *AlibabaCampusAclNewFreezeroleAPIRequest) SetRoleId(_roleId int64) error { + r._roleId = _roleId + r.Set("role_id", _roleId) + return nil +} + +// RoleId Getter +func (r AlibabaCampusAclNewFreezeroleAPIRequest) GetRoleId() int64 { + return r._roleId +} diff --git a/model/campus/AlibabaCampusAclNewFreezeroleAPIResponse.go b/model/campus/AlibabaCampusAclNewFreezeroleAPIResponse.go new file mode 100644 index 0000000000..ea86941330 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewFreezeroleAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +冻结角色 API返回值 +alibaba.campus.acl.new.freezerole + +冻结角色 +*/ +type AlibabaCampusAclNewFreezeroleAPIResponse struct { + model.CommonResponse + AlibabaCampusAclNewFreezeroleAPIResponseModel +} + +// 冻结角色 成功返回结果 +type AlibabaCampusAclNewFreezeroleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_new_freezerole_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclNewFreezeroleResponse.go b/model/campus/AlibabaCampusAclNewFreezeroleResponse.go deleted file mode 100644 index 03030da449..0000000000 --- a/model/campus/AlibabaCampusAclNewFreezeroleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -冻结角色 API返回值 -alibaba.campus.acl.new.freezerole - -冻结角色 -*/ -type AlibabaCampusAclNewFreezeroleAPIResponse struct { - model.CommonResponse - AlibabaCampusAclNewFreezeroleResponse -} - -// 冻结角色 成功返回结果 -type AlibabaCampusAclNewFreezeroleResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_new_freezerole_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclNewGetappmenutreeAPIRequest.go b/model/campus/AlibabaCampusAclNewGetappmenutreeAPIRequest.go new file mode 100644 index 0000000000..92be8484e3 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewGetappmenutreeAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询应用下的菜单树 API请求 +alibaba.campus.acl.new.getappmenutree + +查询应用下的菜单树 +*/ +type AlibabaCampusAclNewGetappmenutreeAPIRequest struct { + model.Params + // 系统入参 + _workbenchcontext *WorkBenchContext + // 是否关联查询出菜单下的权限 + _withpermission bool +} + +// 初始化AlibabaCampusAclNewGetappmenutreeAPIRequest对象 +func NewAlibabaCampusAclNewGetappmenutreeRequest() *AlibabaCampusAclNewGetappmenutreeAPIRequest{ + return &AlibabaCampusAclNewGetappmenutreeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclNewGetappmenutreeAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.new.getappmenutree" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclNewGetappmenutreeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Workbenchcontext Setter +// 系统入参 +func (r *AlibabaCampusAclNewGetappmenutreeAPIRequest) SetWorkbenchcontext(_workbenchcontext *WorkBenchContext) error { + r._workbenchcontext = _workbenchcontext + r.Set("workbenchcontext", _workbenchcontext) + return nil +} + +// Workbenchcontext Getter +func (r AlibabaCampusAclNewGetappmenutreeAPIRequest) GetWorkbenchcontext() *WorkBenchContext { + return r._workbenchcontext +} +// Withpermission Setter +// 是否关联查询出菜单下的权限 +func (r *AlibabaCampusAclNewGetappmenutreeAPIRequest) SetWithpermission(_withpermission bool) error { + r._withpermission = _withpermission + r.Set("withpermission", _withpermission) + return nil +} + +// Withpermission Getter +func (r AlibabaCampusAclNewGetappmenutreeAPIRequest) GetWithpermission() bool { + return r._withpermission +} diff --git a/model/campus/AlibabaCampusAclNewGetappmenutreeAPIResponse.go b/model/campus/AlibabaCampusAclNewGetappmenutreeAPIResponse.go new file mode 100644 index 0000000000..b45dff78c4 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewGetappmenutreeAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询应用下的菜单树 API返回值 +alibaba.campus.acl.new.getappmenutree + +查询应用下的菜单树 +*/ +type AlibabaCampusAclNewGetappmenutreeAPIResponse struct { + model.CommonResponse + AlibabaCampusAclNewGetappmenutreeAPIResponseModel +} + +// 查询应用下的菜单树 成功返回结果 +type AlibabaCampusAclNewGetappmenutreeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_new_getappmenutree_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回结果 + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclNewGetappmenutreeResponse.go b/model/campus/AlibabaCampusAclNewGetappmenutreeResponse.go deleted file mode 100644 index 0865144cbd..0000000000 --- a/model/campus/AlibabaCampusAclNewGetappmenutreeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询应用下的菜单树 API返回值 -alibaba.campus.acl.new.getappmenutree - -查询应用下的菜单树 -*/ -type AlibabaCampusAclNewGetappmenutreeAPIResponse struct { - model.CommonResponse - AlibabaCampusAclNewGetappmenutreeResponse -} - -// 查询应用下的菜单树 成功返回结果 -type AlibabaCampusAclNewGetappmenutreeResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_new_getappmenutree_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回结果 - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclNewGetrolewithmenutreenodesAPIRequest.go b/model/campus/AlibabaCampusAclNewGetrolewithmenutreenodesAPIRequest.go new file mode 100644 index 0000000000..357518c8b2 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewGetrolewithmenutreenodesAPIRequest.go @@ -0,0 +1,80 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据角色id查询权限 API请求 +alibaba.campus.acl.new.getrolewithmenutreenodes + +根据角色id查询权限 +*/ +type AlibabaCampusAclNewGetrolewithmenutreenodesAPIRequest struct { + model.Params + // 角色id + _roleId int64 + // 是否查询全部类型权限 + _allPermission bool + // 系统参数 + _workbenchcontext *WorkBenchContext +} + +// 初始化AlibabaCampusAclNewGetrolewithmenutreenodesAPIRequest对象 +func NewAlibabaCampusAclNewGetrolewithmenutreenodesRequest() *AlibabaCampusAclNewGetrolewithmenutreenodesAPIRequest{ + return &AlibabaCampusAclNewGetrolewithmenutreenodesAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclNewGetrolewithmenutreenodesAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.new.getrolewithmenutreenodes" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclNewGetrolewithmenutreenodesAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RoleId Setter +// 角色id +func (r *AlibabaCampusAclNewGetrolewithmenutreenodesAPIRequest) SetRoleId(_roleId int64) error { + r._roleId = _roleId + r.Set("role_id", _roleId) + return nil +} + +// RoleId Getter +func (r AlibabaCampusAclNewGetrolewithmenutreenodesAPIRequest) GetRoleId() int64 { + return r._roleId +} +// AllPermission Setter +// 是否查询全部类型权限 +func (r *AlibabaCampusAclNewGetrolewithmenutreenodesAPIRequest) SetAllPermission(_allPermission bool) error { + r._allPermission = _allPermission + r.Set("all_permission", _allPermission) + return nil +} + +// AllPermission Getter +func (r AlibabaCampusAclNewGetrolewithmenutreenodesAPIRequest) GetAllPermission() bool { + return r._allPermission +} +// Workbenchcontext Setter +// 系统参数 +func (r *AlibabaCampusAclNewGetrolewithmenutreenodesAPIRequest) SetWorkbenchcontext(_workbenchcontext *WorkBenchContext) error { + r._workbenchcontext = _workbenchcontext + r.Set("workbenchcontext", _workbenchcontext) + return nil +} + +// Workbenchcontext Getter +func (r AlibabaCampusAclNewGetrolewithmenutreenodesAPIRequest) GetWorkbenchcontext() *WorkBenchContext { + return r._workbenchcontext +} diff --git a/model/campus/AlibabaCampusAclNewGetrolewithmenutreenodesAPIResponse.go b/model/campus/AlibabaCampusAclNewGetrolewithmenutreenodesAPIResponse.go new file mode 100644 index 0000000000..e645423e29 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewGetrolewithmenutreenodesAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据角色id查询权限 API返回值 +alibaba.campus.acl.new.getrolewithmenutreenodes + +根据角色id查询权限 +*/ +type AlibabaCampusAclNewGetrolewithmenutreenodesAPIResponse struct { + model.CommonResponse + AlibabaCampusAclNewGetrolewithmenutreenodesAPIResponseModel +} + +// 根据角色id查询权限 成功返回结果 +type AlibabaCampusAclNewGetrolewithmenutreenodesAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_new_getrolewithmenutreenodes_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclNewGetrolewithmenutreenodesResponse.go b/model/campus/AlibabaCampusAclNewGetrolewithmenutreenodesResponse.go deleted file mode 100644 index 0a0de9920e..0000000000 --- a/model/campus/AlibabaCampusAclNewGetrolewithmenutreenodesResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据角色id查询权限 API返回值 -alibaba.campus.acl.new.getrolewithmenutreenodes - -根据角色id查询权限 -*/ -type AlibabaCampusAclNewGetrolewithmenutreenodesAPIResponse struct { - model.CommonResponse - AlibabaCampusAclNewGetrolewithmenutreenodesResponse -} - -// 根据角色id查询权限 成功返回结果 -type AlibabaCampusAclNewGetrolewithmenutreenodesResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_new_getrolewithmenutreenodes_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclNewListrolesAPIRequest.go b/model/campus/AlibabaCampusAclNewListrolesAPIRequest.go new file mode 100644 index 0000000000..7f54b36244 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewListrolesAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询全部角色 API请求 +alibaba.campus.acl.new.listroles + +查询全部角色 +*/ +type AlibabaCampusAclNewListrolesAPIRequest struct { + model.Params + // 系统入参 + _workbenchcontext *WorkBenchContext + // 入参 + _rolequeryparam *RoleQueryParam +} + +// 初始化AlibabaCampusAclNewListrolesAPIRequest对象 +func NewAlibabaCampusAclNewListrolesRequest() *AlibabaCampusAclNewListrolesAPIRequest{ + return &AlibabaCampusAclNewListrolesAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclNewListrolesAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.new.listroles" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclNewListrolesAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Workbenchcontext Setter +// 系统入参 +func (r *AlibabaCampusAclNewListrolesAPIRequest) SetWorkbenchcontext(_workbenchcontext *WorkBenchContext) error { + r._workbenchcontext = _workbenchcontext + r.Set("workbenchcontext", _workbenchcontext) + return nil +} + +// Workbenchcontext Getter +func (r AlibabaCampusAclNewListrolesAPIRequest) GetWorkbenchcontext() *WorkBenchContext { + return r._workbenchcontext +} +// Rolequeryparam Setter +// 入参 +func (r *AlibabaCampusAclNewListrolesAPIRequest) SetRolequeryparam(_rolequeryparam *RoleQueryParam) error { + r._rolequeryparam = _rolequeryparam + r.Set("rolequeryparam", _rolequeryparam) + return nil +} + +// Rolequeryparam Getter +func (r AlibabaCampusAclNewListrolesAPIRequest) GetRolequeryparam() *RoleQueryParam { + return r._rolequeryparam +} diff --git a/model/campus/AlibabaCampusAclNewListrolesAPIResponse.go b/model/campus/AlibabaCampusAclNewListrolesAPIResponse.go new file mode 100644 index 0000000000..bb8bd0481c --- /dev/null +++ b/model/campus/AlibabaCampusAclNewListrolesAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询全部角色 API返回值 +alibaba.campus.acl.new.listroles + +查询全部角色 +*/ +type AlibabaCampusAclNewListrolesAPIResponse struct { + model.CommonResponse + AlibabaCampusAclNewListrolesAPIResponseModel +} + +// 查询全部角色 成功返回结果 +type AlibabaCampusAclNewListrolesAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_new_listroles_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclNewListrolesResponse.go b/model/campus/AlibabaCampusAclNewListrolesResponse.go deleted file mode 100644 index 57cac50eb2..0000000000 --- a/model/campus/AlibabaCampusAclNewListrolesResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询全部角色 API返回值 -alibaba.campus.acl.new.listroles - -查询全部角色 -*/ -type AlibabaCampusAclNewListrolesAPIResponse struct { - model.CommonResponse - AlibabaCampusAclNewListrolesResponse -} - -// 查询全部角色 成功返回结果 -type AlibabaCampusAclNewListrolesResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_new_listroles_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclNewListuserbymenuAPIRequest.go b/model/campus/AlibabaCampusAclNewListuserbymenuAPIRequest.go new file mode 100644 index 0000000000..7311c9c151 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewListuserbymenuAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询菜单下的人员 API请求 +alibaba.campus.acl.new.listuserbymenu + +查询拥有菜单权限的用户 +*/ +type AlibabaCampusAclNewListuserbymenuAPIRequest struct { + model.Params + // 系统入参 + _context *WorkBenchContext + // /workbench/space/application + _menuUrl string +} + +// 初始化AlibabaCampusAclNewListuserbymenuAPIRequest对象 +func NewAlibabaCampusAclNewListuserbymenuRequest() *AlibabaCampusAclNewListuserbymenuAPIRequest{ + return &AlibabaCampusAclNewListuserbymenuAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclNewListuserbymenuAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.new.listuserbymenu" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclNewListuserbymenuAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Context Setter +// 系统入参 +func (r *AlibabaCampusAclNewListuserbymenuAPIRequest) SetContext(_context *WorkBenchContext) error { + r._context = _context + r.Set("context", _context) + return nil +} + +// Context Getter +func (r AlibabaCampusAclNewListuserbymenuAPIRequest) GetContext() *WorkBenchContext { + return r._context +} +// MenuUrl Setter +// /workbench/space/application +func (r *AlibabaCampusAclNewListuserbymenuAPIRequest) SetMenuUrl(_menuUrl string) error { + r._menuUrl = _menuUrl + r.Set("menu_url", _menuUrl) + return nil +} + +// MenuUrl Getter +func (r AlibabaCampusAclNewListuserbymenuAPIRequest) GetMenuUrl() string { + return r._menuUrl +} diff --git a/model/campus/AlibabaCampusAclNewListuserbymenuAPIResponse.go b/model/campus/AlibabaCampusAclNewListuserbymenuAPIResponse.go new file mode 100644 index 0000000000..d2f4064ba3 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewListuserbymenuAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询菜单下的人员 API返回值 +alibaba.campus.acl.new.listuserbymenu + +查询拥有菜单权限的用户 +*/ +type AlibabaCampusAclNewListuserbymenuAPIResponse struct { + model.CommonResponse + AlibabaCampusAclNewListuserbymenuAPIResponseModel +} + +// 查询菜单下的人员 成功返回结果 +type AlibabaCampusAclNewListuserbymenuAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_new_listuserbymenu_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclNewListuserbymenuResponse.go b/model/campus/AlibabaCampusAclNewListuserbymenuResponse.go deleted file mode 100644 index b2686e6ab8..0000000000 --- a/model/campus/AlibabaCampusAclNewListuserbymenuResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询菜单下的人员 API返回值 -alibaba.campus.acl.new.listuserbymenu - -查询拥有菜单权限的用户 -*/ -type AlibabaCampusAclNewListuserbymenuAPIResponse struct { - model.CommonResponse - AlibabaCampusAclNewListuserbymenuResponse -} - -// 查询菜单下的人员 成功返回结果 -type AlibabaCampusAclNewListuserbymenuResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_new_listuserbymenu_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclNewListusermenuAPIRequest.go b/model/campus/AlibabaCampusAclNewListusermenuAPIRequest.go new file mode 100644 index 0000000000..01edfcc03f --- /dev/null +++ b/model/campus/AlibabaCampusAclNewListusermenuAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询用户有权限的菜单树 API请求 +alibaba.campus.acl.new.listusermenu + +查询用户有权限的菜单树 +*/ +type AlibabaCampusAclNewListusermenuAPIRequest struct { + model.Params + // 系统入参 + _workbenchcontext *WorkBenchContext + // 用户账号 + _userId string +} + +// 初始化AlibabaCampusAclNewListusermenuAPIRequest对象 +func NewAlibabaCampusAclNewListusermenuRequest() *AlibabaCampusAclNewListusermenuAPIRequest{ + return &AlibabaCampusAclNewListusermenuAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclNewListusermenuAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.new.listusermenu" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclNewListusermenuAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Workbenchcontext Setter +// 系统入参 +func (r *AlibabaCampusAclNewListusermenuAPIRequest) SetWorkbenchcontext(_workbenchcontext *WorkBenchContext) error { + r._workbenchcontext = _workbenchcontext + r.Set("workbenchcontext", _workbenchcontext) + return nil +} + +// Workbenchcontext Getter +func (r AlibabaCampusAclNewListusermenuAPIRequest) GetWorkbenchcontext() *WorkBenchContext { + return r._workbenchcontext +} +// UserId Setter +// 用户账号 +func (r *AlibabaCampusAclNewListusermenuAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaCampusAclNewListusermenuAPIRequest) GetUserId() string { + return r._userId +} diff --git a/model/campus/AlibabaCampusAclNewListusermenuAPIResponse.go b/model/campus/AlibabaCampusAclNewListusermenuAPIResponse.go new file mode 100644 index 0000000000..457b130c62 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewListusermenuAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询用户有权限的菜单树 API返回值 +alibaba.campus.acl.new.listusermenu + +查询用户有权限的菜单树 +*/ +type AlibabaCampusAclNewListusermenuAPIResponse struct { + model.CommonResponse + AlibabaCampusAclNewListusermenuAPIResponseModel +} + +// 查询用户有权限的菜单树 成功返回结果 +type AlibabaCampusAclNewListusermenuAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_new_listusermenu_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclNewListusermenuResponse.go b/model/campus/AlibabaCampusAclNewListusermenuResponse.go deleted file mode 100644 index ddd2c7e766..0000000000 --- a/model/campus/AlibabaCampusAclNewListusermenuResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询用户有权限的菜单树 API返回值 -alibaba.campus.acl.new.listusermenu - -查询用户有权限的菜单树 -*/ -type AlibabaCampusAclNewListusermenuAPIResponse struct { - model.CommonResponse - AlibabaCampusAclNewListusermenuResponse -} - -// 查询用户有权限的菜单树 成功返回结果 -type AlibabaCampusAclNewListusermenuResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_new_listusermenu_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclNewListuserrolesAPIRequest.go b/model/campus/AlibabaCampusAclNewListuserrolesAPIRequest.go new file mode 100644 index 0000000000..751f705ef0 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewListuserrolesAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询并标记用户选择的角色 API请求 +alibaba.campus.acl.new.listuserroles + +查询并标记用户选择的角色 +*/ +type AlibabaCampusAclNewListuserrolesAPIRequest struct { + model.Params + // 系统入参 + _workbenchcontext *WorkBenchContext + // 入参 + _param *UserRoleQueryParam +} + +// 初始化AlibabaCampusAclNewListuserrolesAPIRequest对象 +func NewAlibabaCampusAclNewListuserrolesRequest() *AlibabaCampusAclNewListuserrolesAPIRequest{ + return &AlibabaCampusAclNewListuserrolesAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclNewListuserrolesAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.new.listuserroles" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclNewListuserrolesAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Workbenchcontext Setter +// 系统入参 +func (r *AlibabaCampusAclNewListuserrolesAPIRequest) SetWorkbenchcontext(_workbenchcontext *WorkBenchContext) error { + r._workbenchcontext = _workbenchcontext + r.Set("workbenchcontext", _workbenchcontext) + return nil +} + +// Workbenchcontext Getter +func (r AlibabaCampusAclNewListuserrolesAPIRequest) GetWorkbenchcontext() *WorkBenchContext { + return r._workbenchcontext +} +// Param Setter +// 入参 +func (r *AlibabaCampusAclNewListuserrolesAPIRequest) SetParam(_param *UserRoleQueryParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaCampusAclNewListuserrolesAPIRequest) GetParam() *UserRoleQueryParam { + return r._param +} diff --git a/model/campus/AlibabaCampusAclNewListuserrolesAPIResponse.go b/model/campus/AlibabaCampusAclNewListuserrolesAPIResponse.go new file mode 100644 index 0000000000..a52c9b609f --- /dev/null +++ b/model/campus/AlibabaCampusAclNewListuserrolesAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询并标记用户选择的角色 API返回值 +alibaba.campus.acl.new.listuserroles + +查询并标记用户选择的角色 +*/ +type AlibabaCampusAclNewListuserrolesAPIResponse struct { + model.CommonResponse + AlibabaCampusAclNewListuserrolesAPIResponseModel +} + +// 查询并标记用户选择的角色 成功返回结果 +type AlibabaCampusAclNewListuserrolesAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_new_listuserroles_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclNewListuserrolesResponse.go b/model/campus/AlibabaCampusAclNewListuserrolesResponse.go deleted file mode 100644 index 53ce8255b2..0000000000 --- a/model/campus/AlibabaCampusAclNewListuserrolesResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询并标记用户选择的角色 API返回值 -alibaba.campus.acl.new.listuserroles - -查询并标记用户选择的角色 -*/ -type AlibabaCampusAclNewListuserrolesAPIResponse struct { - model.CommonResponse - AlibabaCampusAclNewListuserrolesResponse -} - -// 查询并标记用户选择的角色 成功返回结果 -type AlibabaCampusAclNewListuserrolesResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_new_listuserroles_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclNewPageuserroleAPIRequest.go b/model/campus/AlibabaCampusAclNewPageuserroleAPIRequest.go new file mode 100644 index 0000000000..ed10cbb220 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewPageuserroleAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询管理员 API请求 +alibaba.campus.acl.new.pageuserrole + +新增用户和角色的关系 +*/ +type AlibabaCampusAclNewPageuserroleAPIRequest struct { + model.Params + // 系统入参 + _workbenchcontext *WorkBenchContext + // 入参 + _usersRoleQueryParam *UsersRoleQueryParam +} + +// 初始化AlibabaCampusAclNewPageuserroleAPIRequest对象 +func NewAlibabaCampusAclNewPageuserroleRequest() *AlibabaCampusAclNewPageuserroleAPIRequest{ + return &AlibabaCampusAclNewPageuserroleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclNewPageuserroleAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.new.pageuserrole" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclNewPageuserroleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Workbenchcontext Setter +// 系统入参 +func (r *AlibabaCampusAclNewPageuserroleAPIRequest) SetWorkbenchcontext(_workbenchcontext *WorkBenchContext) error { + r._workbenchcontext = _workbenchcontext + r.Set("workbenchcontext", _workbenchcontext) + return nil +} + +// Workbenchcontext Getter +func (r AlibabaCampusAclNewPageuserroleAPIRequest) GetWorkbenchcontext() *WorkBenchContext { + return r._workbenchcontext +} +// UsersRoleQueryParam Setter +// 入参 +func (r *AlibabaCampusAclNewPageuserroleAPIRequest) SetUsersRoleQueryParam(_usersRoleQueryParam *UsersRoleQueryParam) error { + r._usersRoleQueryParam = _usersRoleQueryParam + r.Set("users_role_query_param", _usersRoleQueryParam) + return nil +} + +// UsersRoleQueryParam Getter +func (r AlibabaCampusAclNewPageuserroleAPIRequest) GetUsersRoleQueryParam() *UsersRoleQueryParam { + return r._usersRoleQueryParam +} diff --git a/model/campus/AlibabaCampusAclNewPageuserroleAPIResponse.go b/model/campus/AlibabaCampusAclNewPageuserroleAPIResponse.go new file mode 100644 index 0000000000..a459b15b63 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewPageuserroleAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询管理员 API返回值 +alibaba.campus.acl.new.pageuserrole + +新增用户和角色的关系 +*/ +type AlibabaCampusAclNewPageuserroleAPIResponse struct { + model.CommonResponse + AlibabaCampusAclNewPageuserroleAPIResponseModel +} + +// 分页查询管理员 成功返回结果 +type AlibabaCampusAclNewPageuserroleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_new_pageuserrole_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclNewPageuserroleResponse.go b/model/campus/AlibabaCampusAclNewPageuserroleResponse.go deleted file mode 100644 index eefb21da97..0000000000 --- a/model/campus/AlibabaCampusAclNewPageuserroleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页查询管理员 API返回值 -alibaba.campus.acl.new.pageuserrole - -新增用户和角色的关系 -*/ -type AlibabaCampusAclNewPageuserroleAPIResponse struct { - model.CommonResponse - AlibabaCampusAclNewPageuserroleResponse -} - -// 分页查询管理员 成功返回结果 -type AlibabaCampusAclNewPageuserroleResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_new_pageuserrole_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclNewRemoveroleAPIRequest.go b/model/campus/AlibabaCampusAclNewRemoveroleAPIRequest.go new file mode 100644 index 0000000000..9174366dad --- /dev/null +++ b/model/campus/AlibabaCampusAclNewRemoveroleAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除角色 API请求 +alibaba.campus.acl.new.removerole + +删除角色 +*/ +type AlibabaCampusAclNewRemoveroleAPIRequest struct { + model.Params + // 系统入参 + _param0 *WorkBenchContext + // 角色主键id + _roleId int64 +} + +// 初始化AlibabaCampusAclNewRemoveroleAPIRequest对象 +func NewAlibabaCampusAclNewRemoveroleRequest() *AlibabaCampusAclNewRemoveroleAPIRequest{ + return &AlibabaCampusAclNewRemoveroleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclNewRemoveroleAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.new.removerole" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclNewRemoveroleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 系统入参 +func (r *AlibabaCampusAclNewRemoveroleAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusAclNewRemoveroleAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} +// RoleId Setter +// 角色主键id +func (r *AlibabaCampusAclNewRemoveroleAPIRequest) SetRoleId(_roleId int64) error { + r._roleId = _roleId + r.Set("role_id", _roleId) + return nil +} + +// RoleId Getter +func (r AlibabaCampusAclNewRemoveroleAPIRequest) GetRoleId() int64 { + return r._roleId +} diff --git a/model/campus/AlibabaCampusAclNewRemoveroleAPIResponse.go b/model/campus/AlibabaCampusAclNewRemoveroleAPIResponse.go new file mode 100644 index 0000000000..2c86d538f5 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewRemoveroleAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除角色 API返回值 +alibaba.campus.acl.new.removerole + +删除角色 +*/ +type AlibabaCampusAclNewRemoveroleAPIResponse struct { + model.CommonResponse + AlibabaCampusAclNewRemoveroleAPIResponseModel +} + +// 删除角色 成功返回结果 +type AlibabaCampusAclNewRemoveroleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_new_removerole_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // {} + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclNewRemoveroleResponse.go b/model/campus/AlibabaCampusAclNewRemoveroleResponse.go deleted file mode 100644 index 129893ad64..0000000000 --- a/model/campus/AlibabaCampusAclNewRemoveroleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除角色 API返回值 -alibaba.campus.acl.new.removerole - -删除角色 -*/ -type AlibabaCampusAclNewRemoveroleAPIResponse struct { - model.CommonResponse - AlibabaCampusAclNewRemoveroleResponse -} - -// 删除角色 成功返回结果 -type AlibabaCampusAclNewRemoveroleResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_new_removerole_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // {} - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclNewSaverolewithmenuAPIRequest.go b/model/campus/AlibabaCampusAclNewSaverolewithmenuAPIRequest.go new file mode 100644 index 0000000000..ce83780be6 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewSaverolewithmenuAPIRequest.go @@ -0,0 +1,80 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +保存角色级联保存角色和权限的关系 API请求 +alibaba.campus.acl.new.saverolewithmenu + +保存角色级联保存角色和权限的关系 +*/ +type AlibabaCampusAclNewSaverolewithmenuAPIRequest struct { + model.Params + // 系统入参 + _workbenchcontext *WorkBenchContext + // 系统自动生成 + _sysRoleDTO *SysRoleDto + // 菜单id,权限id + _treeNodeIds []string +} + +// 初始化AlibabaCampusAclNewSaverolewithmenuAPIRequest对象 +func NewAlibabaCampusAclNewSaverolewithmenuRequest() *AlibabaCampusAclNewSaverolewithmenuAPIRequest{ + return &AlibabaCampusAclNewSaverolewithmenuAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclNewSaverolewithmenuAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.new.saverolewithmenu" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclNewSaverolewithmenuAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Workbenchcontext Setter +// 系统入参 +func (r *AlibabaCampusAclNewSaverolewithmenuAPIRequest) SetWorkbenchcontext(_workbenchcontext *WorkBenchContext) error { + r._workbenchcontext = _workbenchcontext + r.Set("workbenchcontext", _workbenchcontext) + return nil +} + +// Workbenchcontext Getter +func (r AlibabaCampusAclNewSaverolewithmenuAPIRequest) GetWorkbenchcontext() *WorkBenchContext { + return r._workbenchcontext +} +// SysRoleDTO Setter +// 系统自动生成 +func (r *AlibabaCampusAclNewSaverolewithmenuAPIRequest) SetSysRoleDTO(_sysRoleDTO *SysRoleDto) error { + r._sysRoleDTO = _sysRoleDTO + r.Set("sys_role_d_t_o", _sysRoleDTO) + return nil +} + +// SysRoleDTO Getter +func (r AlibabaCampusAclNewSaverolewithmenuAPIRequest) GetSysRoleDTO() *SysRoleDto { + return r._sysRoleDTO +} +// TreeNodeIds Setter +// 菜单id,权限id +func (r *AlibabaCampusAclNewSaverolewithmenuAPIRequest) SetTreeNodeIds(_treeNodeIds []string) error { + r._treeNodeIds = _treeNodeIds + r.Set("tree_node_ids", _treeNodeIds) + return nil +} + +// TreeNodeIds Getter +func (r AlibabaCampusAclNewSaverolewithmenuAPIRequest) GetTreeNodeIds() []string { + return r._treeNodeIds +} diff --git a/model/campus/AlibabaCampusAclNewSaverolewithmenuAPIResponse.go b/model/campus/AlibabaCampusAclNewSaverolewithmenuAPIResponse.go new file mode 100644 index 0000000000..feeef195a5 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewSaverolewithmenuAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +保存角色级联保存角色和权限的关系 API返回值 +alibaba.campus.acl.new.saverolewithmenu + +保存角色级联保存角色和权限的关系 +*/ +type AlibabaCampusAclNewSaverolewithmenuAPIResponse struct { + model.CommonResponse + AlibabaCampusAclNewSaverolewithmenuAPIResponseModel +} + +// 保存角色级联保存角色和权限的关系 成功返回结果 +type AlibabaCampusAclNewSaverolewithmenuAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_new_saverolewithmenu_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回结果 + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclNewSaverolewithmenuResponse.go b/model/campus/AlibabaCampusAclNewSaverolewithmenuResponse.go deleted file mode 100644 index 840535ae1a..0000000000 --- a/model/campus/AlibabaCampusAclNewSaverolewithmenuResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -保存角色级联保存角色和权限的关系 API返回值 -alibaba.campus.acl.new.saverolewithmenu - -保存角色级联保存角色和权限的关系 -*/ -type AlibabaCampusAclNewSaverolewithmenuAPIResponse struct { - model.CommonResponse - AlibabaCampusAclNewSaverolewithmenuResponse -} - -// 保存角色级联保存角色和权限的关系 成功返回结果 -type AlibabaCampusAclNewSaverolewithmenuResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_new_saverolewithmenu_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回结果 - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclNewUnfreezeroleAPIRequest.go b/model/campus/AlibabaCampusAclNewUnfreezeroleAPIRequest.go new file mode 100644 index 0000000000..89a95f0038 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewUnfreezeroleAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +解冻角色 API请求 +alibaba.campus.acl.new.unfreezerole + +解冻角色 +*/ +type AlibabaCampusAclNewUnfreezeroleAPIRequest struct { + model.Params + // 系统参数 + _workbenchcontext *WorkBenchContext + // 角色主键id + _roleId int64 +} + +// 初始化AlibabaCampusAclNewUnfreezeroleAPIRequest对象 +func NewAlibabaCampusAclNewUnfreezeroleRequest() *AlibabaCampusAclNewUnfreezeroleAPIRequest{ + return &AlibabaCampusAclNewUnfreezeroleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclNewUnfreezeroleAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.new.unfreezerole" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclNewUnfreezeroleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Workbenchcontext Setter +// 系统参数 +func (r *AlibabaCampusAclNewUnfreezeroleAPIRequest) SetWorkbenchcontext(_workbenchcontext *WorkBenchContext) error { + r._workbenchcontext = _workbenchcontext + r.Set("workbenchcontext", _workbenchcontext) + return nil +} + +// Workbenchcontext Getter +func (r AlibabaCampusAclNewUnfreezeroleAPIRequest) GetWorkbenchcontext() *WorkBenchContext { + return r._workbenchcontext +} +// RoleId Setter +// 角色主键id +func (r *AlibabaCampusAclNewUnfreezeroleAPIRequest) SetRoleId(_roleId int64) error { + r._roleId = _roleId + r.Set("role_id", _roleId) + return nil +} + +// RoleId Getter +func (r AlibabaCampusAclNewUnfreezeroleAPIRequest) GetRoleId() int64 { + return r._roleId +} diff --git a/model/campus/AlibabaCampusAclNewUnfreezeroleAPIResponse.go b/model/campus/AlibabaCampusAclNewUnfreezeroleAPIResponse.go new file mode 100644 index 0000000000..2caf8906d2 --- /dev/null +++ b/model/campus/AlibabaCampusAclNewUnfreezeroleAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +解冻角色 API返回值 +alibaba.campus.acl.new.unfreezerole + +解冻角色 +*/ +type AlibabaCampusAclNewUnfreezeroleAPIResponse struct { + model.CommonResponse + AlibabaCampusAclNewUnfreezeroleAPIResponseModel +} + +// 解冻角色 成功返回结果 +type AlibabaCampusAclNewUnfreezeroleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_new_unfreezerole_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclNewUnfreezeroleResponse.go b/model/campus/AlibabaCampusAclNewUnfreezeroleResponse.go deleted file mode 100644 index c07afc2b58..0000000000 --- a/model/campus/AlibabaCampusAclNewUnfreezeroleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -解冻角色 API返回值 -alibaba.campus.acl.new.unfreezerole - -解冻角色 -*/ -type AlibabaCampusAclNewUnfreezeroleAPIResponse struct { - model.CommonResponse - AlibabaCampusAclNewUnfreezeroleResponse -} - -// 解冻角色 成功返回结果 -type AlibabaCampusAclNewUnfreezeroleResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_new_unfreezerole_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclQueryallemppermiitemAPIRequest.go b/model/campus/AlibabaCampusAclQueryallemppermiitemAPIRequest.go new file mode 100644 index 0000000000..9b099f2b6e --- /dev/null +++ b/model/campus/AlibabaCampusAclQueryallemppermiitemAPIRequest.go @@ -0,0 +1,122 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询员工全部权限(包括角色下面的权限) API请求 +alibaba.campus.acl.queryallemppermiitem + +查询员工全部权限(包括角色下面的权限) +*/ +type AlibabaCampusAclQueryallemppermiitemAPIRequest struct { + model.Params + // 公司id不填默认SYS_000 + _companyId int64 + // 系统id + _systemId string + // 园区id + _campusId int64 + // 用户账号 + _accountId string + // 每页多少条 + _page int64 + // 每页记录数 + _pageSize int64 +} + +// 初始化AlibabaCampusAclQueryallemppermiitemAPIRequest对象 +func NewAlibabaCampusAclQueryallemppermiitemRequest() *AlibabaCampusAclQueryallemppermiitemAPIRequest{ + return &AlibabaCampusAclQueryallemppermiitemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclQueryallemppermiitemAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.queryallemppermiitem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclQueryallemppermiitemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CompanyId Setter +// 公司id不填默认SYS_000 +func (r *AlibabaCampusAclQueryallemppermiitemAPIRequest) SetCompanyId(_companyId int64) error { + r._companyId = _companyId + r.Set("company_id", _companyId) + return nil +} + +// CompanyId Getter +func (r AlibabaCampusAclQueryallemppermiitemAPIRequest) GetCompanyId() int64 { + return r._companyId +} +// SystemId Setter +// 系统id +func (r *AlibabaCampusAclQueryallemppermiitemAPIRequest) SetSystemId(_systemId string) error { + r._systemId = _systemId + r.Set("system_id", _systemId) + return nil +} + +// SystemId Getter +func (r AlibabaCampusAclQueryallemppermiitemAPIRequest) GetSystemId() string { + return r._systemId +} +// CampusId Setter +// 园区id +func (r *AlibabaCampusAclQueryallemppermiitemAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaCampusAclQueryallemppermiitemAPIRequest) GetCampusId() int64 { + return r._campusId +} +// AccountId Setter +// 用户账号 +func (r *AlibabaCampusAclQueryallemppermiitemAPIRequest) SetAccountId(_accountId string) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r AlibabaCampusAclQueryallemppermiitemAPIRequest) GetAccountId() string { + return r._accountId +} +// Page Setter +// 每页多少条 +func (r *AlibabaCampusAclQueryallemppermiitemAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaCampusAclQueryallemppermiitemAPIRequest) GetPage() int64 { + return r._page +} +// PageSize Setter +// 每页记录数 +func (r *AlibabaCampusAclQueryallemppermiitemAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaCampusAclQueryallemppermiitemAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/campus/AlibabaCampusAclQueryallemppermiitemAPIResponse.go b/model/campus/AlibabaCampusAclQueryallemppermiitemAPIResponse.go new file mode 100644 index 0000000000..c6143a9150 --- /dev/null +++ b/model/campus/AlibabaCampusAclQueryallemppermiitemAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询员工全部权限(包括角色下面的权限) API返回值 +alibaba.campus.acl.queryallemppermiitem + +查询员工全部权限(包括角色下面的权限) +*/ +type AlibabaCampusAclQueryallemppermiitemAPIResponse struct { + model.CommonResponse + AlibabaCampusAclQueryallemppermiitemAPIResponseModel +} + +// 查询员工全部权限(包括角色下面的权限) 成功返回结果 +type AlibabaCampusAclQueryallemppermiitemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_queryallemppermiitem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclQueryallemppermiitemResponse.go b/model/campus/AlibabaCampusAclQueryallemppermiitemResponse.go deleted file mode 100644 index 35754e9f3b..0000000000 --- a/model/campus/AlibabaCampusAclQueryallemppermiitemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询员工全部权限(包括角色下面的权限) API返回值 -alibaba.campus.acl.queryallemppermiitem - -查询员工全部权限(包括角色下面的权限) -*/ -type AlibabaCampusAclQueryallemppermiitemAPIResponse struct { - model.CommonResponse - AlibabaCampusAclQueryallemppermiitemResponse -} - -// 查询员工全部权限(包括角色下面的权限) 成功返回结果 -type AlibabaCampusAclQueryallemppermiitemResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_queryallemppermiitem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclQueryallroleAPIRequest.go b/model/campus/AlibabaCampusAclQueryallroleAPIRequest.go new file mode 100644 index 0000000000..9aa2ec95e8 --- /dev/null +++ b/model/campus/AlibabaCampusAclQueryallroleAPIRequest.go @@ -0,0 +1,122 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询全部角色 API请求 +alibaba.campus.acl.queryallrole + +查询全部园区 +*/ +type AlibabaCampusAclQueryallroleAPIRequest struct { + model.Params + // 公司id不填统一SYS_000 + _companyId int64 + // 系统id + _systemId string + // 园区id + _campusId int64 + // 角色名称 + _roleName string + // 角色类型 + _roleType string + // 角色id + _roleId string +} + +// 初始化AlibabaCampusAclQueryallroleAPIRequest对象 +func NewAlibabaCampusAclQueryallroleRequest() *AlibabaCampusAclQueryallroleAPIRequest{ + return &AlibabaCampusAclQueryallroleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclQueryallroleAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.queryallrole" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclQueryallroleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CompanyId Setter +// 公司id不填统一SYS_000 +func (r *AlibabaCampusAclQueryallroleAPIRequest) SetCompanyId(_companyId int64) error { + r._companyId = _companyId + r.Set("company_id", _companyId) + return nil +} + +// CompanyId Getter +func (r AlibabaCampusAclQueryallroleAPIRequest) GetCompanyId() int64 { + return r._companyId +} +// SystemId Setter +// 系统id +func (r *AlibabaCampusAclQueryallroleAPIRequest) SetSystemId(_systemId string) error { + r._systemId = _systemId + r.Set("system_id", _systemId) + return nil +} + +// SystemId Getter +func (r AlibabaCampusAclQueryallroleAPIRequest) GetSystemId() string { + return r._systemId +} +// CampusId Setter +// 园区id +func (r *AlibabaCampusAclQueryallroleAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaCampusAclQueryallroleAPIRequest) GetCampusId() int64 { + return r._campusId +} +// RoleName Setter +// 角色名称 +func (r *AlibabaCampusAclQueryallroleAPIRequest) SetRoleName(_roleName string) error { + r._roleName = _roleName + r.Set("role_name", _roleName) + return nil +} + +// RoleName Getter +func (r AlibabaCampusAclQueryallroleAPIRequest) GetRoleName() string { + return r._roleName +} +// RoleType Setter +// 角色类型 +func (r *AlibabaCampusAclQueryallroleAPIRequest) SetRoleType(_roleType string) error { + r._roleType = _roleType + r.Set("role_type", _roleType) + return nil +} + +// RoleType Getter +func (r AlibabaCampusAclQueryallroleAPIRequest) GetRoleType() string { + return r._roleType +} +// RoleId Setter +// 角色id +func (r *AlibabaCampusAclQueryallroleAPIRequest) SetRoleId(_roleId string) error { + r._roleId = _roleId + r.Set("role_id", _roleId) + return nil +} + +// RoleId Getter +func (r AlibabaCampusAclQueryallroleAPIRequest) GetRoleId() string { + return r._roleId +} diff --git a/model/campus/AlibabaCampusAclQueryallroleAPIResponse.go b/model/campus/AlibabaCampusAclQueryallroleAPIResponse.go new file mode 100644 index 0000000000..a0a838004d --- /dev/null +++ b/model/campus/AlibabaCampusAclQueryallroleAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询全部角色 API返回值 +alibaba.campus.acl.queryallrole + +查询全部园区 +*/ +type AlibabaCampusAclQueryallroleAPIResponse struct { + model.CommonResponse + AlibabaCampusAclQueryallroleAPIResponseModel +} + +// 查询全部角色 成功返回结果 +type AlibabaCampusAclQueryallroleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_queryallrole_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CollectionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclQueryallroleResponse.go b/model/campus/AlibabaCampusAclQueryallroleResponse.go deleted file mode 100644 index 34e665740b..0000000000 --- a/model/campus/AlibabaCampusAclQueryallroleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询全部角色 API返回值 -alibaba.campus.acl.queryallrole - -查询全部园区 -*/ -type AlibabaCampusAclQueryallroleAPIResponse struct { - model.CommonResponse - AlibabaCampusAclQueryallroleResponse -} - -// 查询全部角色 成功返回结果 -type AlibabaCampusAclQueryallroleResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_queryallrole_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CollectionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAclUpdategrantroletouserAPIRequest.go b/model/campus/AlibabaCampusAclUpdategrantroletouserAPIRequest.go new file mode 100644 index 0000000000..122c72244b --- /dev/null +++ b/model/campus/AlibabaCampusAclUpdategrantroletouserAPIRequest.go @@ -0,0 +1,122 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改用户到角色关系 API请求 +alibaba.campus.acl.updategrantroletouser + +修改用户到角色关系 +*/ +type AlibabaCampusAclUpdategrantroletouserAPIRequest struct { + model.Params + // 公司id + _companyId int64 + // 系统id + _systemId string + // 园区id + _campusId int64 + // 用户账号 + _accountId string + // 角色 + _role []RoleReq + // 操作人id(不填默认appCode) + _userId string +} + +// 初始化AlibabaCampusAclUpdategrantroletouserAPIRequest对象 +func NewAlibabaCampusAclUpdategrantroletouserRequest() *AlibabaCampusAclUpdategrantroletouserAPIRequest{ + return &AlibabaCampusAclUpdategrantroletouserAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAclUpdategrantroletouserAPIRequest) GetApiMethodName() string { + return "alibaba.campus.acl.updategrantroletouser" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAclUpdategrantroletouserAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CompanyId Setter +// 公司id +func (r *AlibabaCampusAclUpdategrantroletouserAPIRequest) SetCompanyId(_companyId int64) error { + r._companyId = _companyId + r.Set("company_id", _companyId) + return nil +} + +// CompanyId Getter +func (r AlibabaCampusAclUpdategrantroletouserAPIRequest) GetCompanyId() int64 { + return r._companyId +} +// SystemId Setter +// 系统id +func (r *AlibabaCampusAclUpdategrantroletouserAPIRequest) SetSystemId(_systemId string) error { + r._systemId = _systemId + r.Set("system_id", _systemId) + return nil +} + +// SystemId Getter +func (r AlibabaCampusAclUpdategrantroletouserAPIRequest) GetSystemId() string { + return r._systemId +} +// CampusId Setter +// 园区id +func (r *AlibabaCampusAclUpdategrantroletouserAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaCampusAclUpdategrantroletouserAPIRequest) GetCampusId() int64 { + return r._campusId +} +// AccountId Setter +// 用户账号 +func (r *AlibabaCampusAclUpdategrantroletouserAPIRequest) SetAccountId(_accountId string) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r AlibabaCampusAclUpdategrantroletouserAPIRequest) GetAccountId() string { + return r._accountId +} +// Role Setter +// 角色 +func (r *AlibabaCampusAclUpdategrantroletouserAPIRequest) SetRole(_role []RoleReq) error { + r._role = _role + r.Set("role", _role) + return nil +} + +// Role Getter +func (r AlibabaCampusAclUpdategrantroletouserAPIRequest) GetRole() []RoleReq { + return r._role +} +// UserId Setter +// 操作人id(不填默认appCode) +func (r *AlibabaCampusAclUpdategrantroletouserAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaCampusAclUpdategrantroletouserAPIRequest) GetUserId() string { + return r._userId +} diff --git a/model/campus/AlibabaCampusAclUpdategrantroletouserAPIResponse.go b/model/campus/AlibabaCampusAclUpdategrantroletouserAPIResponse.go new file mode 100644 index 0000000000..a9c58a15f3 --- /dev/null +++ b/model/campus/AlibabaCampusAclUpdategrantroletouserAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改用户到角色关系 API返回值 +alibaba.campus.acl.updategrantroletouser + +修改用户到角色关系 +*/ +type AlibabaCampusAclUpdategrantroletouserAPIResponse struct { + model.CommonResponse + AlibabaCampusAclUpdategrantroletouserAPIResponseModel +} + +// 修改用户到角色关系 成功返回结果 +type AlibabaCampusAclUpdategrantroletouserAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_acl_updategrantroletouser_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAclUpdategrantroletouserResponse.go b/model/campus/AlibabaCampusAclUpdategrantroletouserResponse.go deleted file mode 100644 index 3438f4a64a..0000000000 --- a/model/campus/AlibabaCampusAclUpdategrantroletouserResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改用户到角色关系 API返回值 -alibaba.campus.acl.updategrantroletouser - -修改用户到角色关系 -*/ -type AlibabaCampusAclUpdategrantroletouserAPIResponse struct { - model.CommonResponse - AlibabaCampusAclUpdategrantroletouserResponse -} - -// 修改用户到角色关系 成功返回结果 -type AlibabaCampusAclUpdategrantroletouserResponse struct { - XMLName xml.Name `xml:"alibaba_campus_acl_updategrantroletouser_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIRequest.go b/model/campus/AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIRequest.go new file mode 100644 index 0000000000..044f015b76 --- /dev/null +++ b/model/campus/AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据分组条件查询分组下的空间单元不包涵业务属性信息 API请求 +alibaba.campus.adminmap.poiinfo.getlistbygroup + +根据分组条件查询分组下的空间单元不包涵业务属性信息 +*/ +type AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIRequest struct { + model.Params + // 上下文 + _context *WorkBenchContext + // 查询对象 + _query *SpaceUnitQuery +} + +// 初始化AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIRequest对象 +func NewAlibabaCampusAdminmapPoiinfoGetlistbygroupRequest() *AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIRequest{ + return &AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIRequest) GetApiMethodName() string { + return "alibaba.campus.adminmap.poiinfo.getlistbygroup" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Context Setter +// 上下文 +func (r *AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIRequest) SetContext(_context *WorkBenchContext) error { + r._context = _context + r.Set("context", _context) + return nil +} + +// Context Getter +func (r AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIRequest) GetContext() *WorkBenchContext { + return r._context +} +// Query Setter +// 查询对象 +func (r *AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIRequest) SetQuery(_query *SpaceUnitQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIRequest) GetQuery() *SpaceUnitQuery { + return r._query +} diff --git a/model/campus/AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIResponse.go b/model/campus/AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIResponse.go new file mode 100644 index 0000000000..a6d4ba2f7a --- /dev/null +++ b/model/campus/AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据分组条件查询分组下的空间单元不包涵业务属性信息 API返回值 +alibaba.campus.adminmap.poiinfo.getlistbygroup + +根据分组条件查询分组下的空间单元不包涵业务属性信息 +*/ +type AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIResponse struct { + model.CommonResponse + AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIResponseModel +} + +// 根据分组条件查询分组下的空间单元不包涵业务属性信息 成功返回结果 +type AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_adminmap_poiinfo_getlistbygroup_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAdminmapPoiinfoGetlistbygroupResponse.go b/model/campus/AlibabaCampusAdminmapPoiinfoGetlistbygroupResponse.go deleted file mode 100644 index f5ae35f800..0000000000 --- a/model/campus/AlibabaCampusAdminmapPoiinfoGetlistbygroupResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据分组条件查询分组下的空间单元不包涵业务属性信息 API返回值 -alibaba.campus.adminmap.poiinfo.getlistbygroup - -根据分组条件查询分组下的空间单元不包涵业务属性信息 -*/ -type AlibabaCampusAdminmapPoiinfoGetlistbygroupAPIResponse struct { - model.CommonResponse - AlibabaCampusAdminmapPoiinfoGetlistbygroupResponse -} - -// 根据分组条件查询分组下的空间单元不包涵业务属性信息 成功返回结果 -type AlibabaCampusAdminmapPoiinfoGetlistbygroupResponse struct { - XMLName xml.Name `xml:"alibaba_campus_adminmap_poiinfo_getlistbygroup_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIRequest.go b/model/campus/AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIRequest.go new file mode 100644 index 0000000000..f1ece053c9 --- /dev/null +++ b/model/campus/AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIRequest.go @@ -0,0 +1,68 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据userId(支持单个或批量)获取用户实时位置信息 API请求 +alibaba.campus.adminmap.userlocationinfo.getactualuserlocationinfobyids + +根据userId(支持单个或批量)获取用户实时位置信息 +HSF接口名称:com.alibaba.campus.api.adminmap.service.top.UserLocationQueryApiTopService +HSF方法名称:getActualUserLocationInfoByIds +*/ +type AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIRequest struct { + model.Params + // 环境参数 + _param0 *WorkBenchContext + // 查询参数 + _param1 *UserLocationInfoQuery +} + +// 初始化AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIRequest对象 +func NewAlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsRequest() *AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIRequest{ + return &AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIRequest) GetApiMethodName() string { + return "alibaba.campus.adminmap.userlocationinfo.getactualuserlocationinfobyids" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 环境参数 +func (r *AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} +// Param1 Setter +// 查询参数 +func (r *AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIRequest) SetParam1(_param1 *UserLocationInfoQuery) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIRequest) GetParam1() *UserLocationInfoQuery { + return r._param1 +} diff --git a/model/campus/AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIResponse.go b/model/campus/AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIResponse.go new file mode 100644 index 0000000000..e0db9adb7e --- /dev/null +++ b/model/campus/AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIResponse.go @@ -0,0 +1,29 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据userId(支持单个或批量)获取用户实时位置信息 API返回值 +alibaba.campus.adminmap.userlocationinfo.getactualuserlocationinfobyids + +根据userId(支持单个或批量)获取用户实时位置信息 +HSF接口名称:com.alibaba.campus.api.adminmap.service.top.UserLocationQueryApiTopService +HSF方法名称:getActualUserLocationInfoByIds +*/ +type AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIResponse struct { + model.CommonResponse + AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIResponseModel +} + +// 根据userId(支持单个或批量)获取用户实时位置信息 成功返回结果 +type AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_adminmap_userlocationinfo_getactualuserlocationinfobyids_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsResponse.go b/model/campus/AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsResponse.go deleted file mode 100644 index f4c1f7cf1b..0000000000 --- a/model/campus/AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据userId(支持单个或批量)获取用户实时位置信息 API返回值 -alibaba.campus.adminmap.userlocationinfo.getactualuserlocationinfobyids - -根据userId(支持单个或批量)获取用户实时位置信息 -HSF接口名称:com.alibaba.campus.api.adminmap.service.top.UserLocationQueryApiTopService -HSF方法名称:getActualUserLocationInfoByIds -*/ -type AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsAPIResponse struct { - model.CommonResponse - AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsResponse -} - -// 根据userId(支持单个或批量)获取用户实时位置信息 成功返回结果 -type AlibabaCampusAdminmapUserlocationinfoGetactualuserlocationinfobyidsResponse struct { - XMLName xml.Name `xml:"alibaba_campus_adminmap_userlocationinfo_getactualuserlocationinfobyids_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIRequest.go b/model/campus/AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIRequest.go new file mode 100644 index 0000000000..4423f0e12e --- /dev/null +++ b/model/campus/AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分时间段获取用户历史位置信息 API请求 +alibaba.campus.adminmap.userlocationinfo.getuserlocationinfologs + +分时间段获取用户历史位置信息 +*/ +type AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIRequest struct { + model.Params + // 环境参数 + _param0 *WorkBenchContext + // 查询参数 + _param1 *UserLocationInfoQuery +} + +// 初始化AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIRequest对象 +func NewAlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsRequest() *AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIRequest{ + return &AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIRequest) GetApiMethodName() string { + return "alibaba.campus.adminmap.userlocationinfo.getuserlocationinfologs" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 环境参数 +func (r *AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} +// Param1 Setter +// 查询参数 +func (r *AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIRequest) SetParam1(_param1 *UserLocationInfoQuery) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIRequest) GetParam1() *UserLocationInfoQuery { + return r._param1 +} diff --git a/model/campus/AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIResponse.go b/model/campus/AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIResponse.go new file mode 100644 index 0000000000..28d9ecdc4d --- /dev/null +++ b/model/campus/AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分时间段获取用户历史位置信息 API返回值 +alibaba.campus.adminmap.userlocationinfo.getuserlocationinfologs + +分时间段获取用户历史位置信息 +*/ +type AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIResponse struct { + model.CommonResponse + AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIResponseModel +} + +// 分时间段获取用户历史位置信息 成功返回结果 +type AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_adminmap_userlocationinfo_getuserlocationinfologs_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsResponse.go b/model/campus/AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsResponse.go deleted file mode 100644 index f113f04d33..0000000000 --- a/model/campus/AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分时间段获取用户历史位置信息 API返回值 -alibaba.campus.adminmap.userlocationinfo.getuserlocationinfologs - -分时间段获取用户历史位置信息 -*/ -type AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsAPIResponse struct { - model.CommonResponse - AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsResponse -} - -// 分时间段获取用户历史位置信息 成功返回结果 -type AlibabaCampusAdminmapUserlocationinfoGetuserlocationinfologsResponse struct { - XMLName xml.Name `xml:"alibaba_campus_adminmap_userlocationinfo_getuserlocationinfologs_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIRequest.go b/model/campus/AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIRequest.go new file mode 100644 index 0000000000..c8651f9e00 --- /dev/null +++ b/model/campus/AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIRequest.go @@ -0,0 +1,68 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传用户实时位置 API请求 +alibaba.campus.adminmap.userlocationinfo.insertactualuserlocationinfo + +上传用户实时位置 +HSF接口名称:com.alibaba.campus.api.adminmap.service.top.UserLocationQueryApiTopService +HSF方法名称:insertActualUserLocationInfo +*/ +type AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIRequest struct { + model.Params + // 环境参数 + _param0 *WorkBenchContext + // 查询参数 + _param1 *UserLocationInfo +} + +// 初始化AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIRequest对象 +func NewAlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoRequest() *AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIRequest{ + return &AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIRequest) GetApiMethodName() string { + return "alibaba.campus.adminmap.userlocationinfo.insertactualuserlocationinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 环境参数 +func (r *AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} +// Param1 Setter +// 查询参数 +func (r *AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIRequest) SetParam1(_param1 *UserLocationInfo) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIRequest) GetParam1() *UserLocationInfo { + return r._param1 +} diff --git a/model/campus/AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIResponse.go b/model/campus/AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIResponse.go new file mode 100644 index 0000000000..158ae812c1 --- /dev/null +++ b/model/campus/AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIResponse.go @@ -0,0 +1,29 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传用户实时位置 API返回值 +alibaba.campus.adminmap.userlocationinfo.insertactualuserlocationinfo + +上传用户实时位置 +HSF接口名称:com.alibaba.campus.api.adminmap.service.top.UserLocationQueryApiTopService +HSF方法名称:insertActualUserLocationInfo +*/ +type AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIResponse struct { + model.CommonResponse + AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIResponseModel +} + +// 上传用户实时位置 成功返回结果 +type AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_adminmap_userlocationinfo_insertactualuserlocationinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoResponse.go b/model/campus/AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoResponse.go deleted file mode 100644 index a03c211205..0000000000 --- a/model/campus/AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传用户实时位置 API返回值 -alibaba.campus.adminmap.userlocationinfo.insertactualuserlocationinfo - -上传用户实时位置 -HSF接口名称:com.alibaba.campus.api.adminmap.service.top.UserLocationQueryApiTopService -HSF方法名称:insertActualUserLocationInfo -*/ -type AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoAPIResponse struct { - model.CommonResponse - AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoResponse -} - -// 上传用户实时位置 成功返回结果 -type AlibabaCampusAdminmapUserlocationinfoInsertactualuserlocationinfoResponse struct { - XMLName xml.Name `xml:"alibaba_campus_adminmap_userlocationinfo_insertactualuserlocationinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusCoreAppGetappusagesAPIRequest.go b/model/campus/AlibabaCampusCoreAppGetappusagesAPIRequest.go new file mode 100644 index 0000000000..772a9bc273 --- /dev/null +++ b/model/campus/AlibabaCampusCoreAppGetappusagesAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据应用ID获得应用所在的园区 API请求 +alibaba.campus.core.app.getappusages + +传入应用的id, 获得用户授权的园区 +*/ +type AlibabaCampusCoreAppGetappusagesAPIRequest struct { + model.Params + // 应用id + _appid int64 + // WorkBenchContext + _workBenchContext *WorkBenchContext +} + +// 初始化AlibabaCampusCoreAppGetappusagesAPIRequest对象 +func NewAlibabaCampusCoreAppGetappusagesRequest() *AlibabaCampusCoreAppGetappusagesAPIRequest{ + return &AlibabaCampusCoreAppGetappusagesAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusCoreAppGetappusagesAPIRequest) GetApiMethodName() string { + return "alibaba.campus.core.app.getappusages" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusCoreAppGetappusagesAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Appid Setter +// 应用id +func (r *AlibabaCampusCoreAppGetappusagesAPIRequest) SetAppid(_appid int64) error { + r._appid = _appid + r.Set("appid", _appid) + return nil +} + +// Appid Getter +func (r AlibabaCampusCoreAppGetappusagesAPIRequest) GetAppid() int64 { + return r._appid +} +// WorkBenchContext Setter +// WorkBenchContext +func (r *AlibabaCampusCoreAppGetappusagesAPIRequest) SetWorkBenchContext(_workBenchContext *WorkBenchContext) error { + r._workBenchContext = _workBenchContext + r.Set("work_bench_context", _workBenchContext) + return nil +} + +// WorkBenchContext Getter +func (r AlibabaCampusCoreAppGetappusagesAPIRequest) GetWorkBenchContext() *WorkBenchContext { + return r._workBenchContext +} diff --git a/model/campus/AlibabaCampusCoreAppGetappusagesAPIResponse.go b/model/campus/AlibabaCampusCoreAppGetappusagesAPIResponse.go new file mode 100644 index 0000000000..f5e02f4985 --- /dev/null +++ b/model/campus/AlibabaCampusCoreAppGetappusagesAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据应用ID获得应用所在的园区 API返回值 +alibaba.campus.core.app.getappusages + +传入应用的id, 获得用户授权的园区 +*/ +type AlibabaCampusCoreAppGetappusagesAPIResponse struct { + model.CommonResponse + AlibabaCampusCoreAppGetappusagesAPIResponseModel +} + +// 根据应用ID获得应用所在的园区 成功返回结果 +type AlibabaCampusCoreAppGetappusagesAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_core_app_getappusages_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CollectionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusCoreAppGetappusagesResponse.go b/model/campus/AlibabaCampusCoreAppGetappusagesResponse.go deleted file mode 100644 index d07df066b0..0000000000 --- a/model/campus/AlibabaCampusCoreAppGetappusagesResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据应用ID获得应用所在的园区 API返回值 -alibaba.campus.core.app.getappusages - -传入应用的id, 获得用户授权的园区 -*/ -type AlibabaCampusCoreAppGetappusagesAPIResponse struct { - model.CommonResponse - AlibabaCampusCoreAppGetappusagesResponse -} - -// 根据应用ID获得应用所在的园区 成功返回结果 -type AlibabaCampusCoreAppGetappusagesResponse struct { - XMLName xml.Name `xml:"alibaba_campus_core_app_getappusages_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CollectionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusCoreCompanycampusGetcombycamidAPIRequest.go b/model/campus/AlibabaCampusCoreCompanycampusGetcombycamidAPIRequest.go new file mode 100644 index 0000000000..c04c529d75 --- /dev/null +++ b/model/campus/AlibabaCampusCoreCompanycampusGetcombycamidAPIRequest.go @@ -0,0 +1,52 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据园区ID获取运营公司信息 API请求 +alibaba.campus.core.companycampus.getcombycamid + +根据园区ID获取运营公司信息 +*/ +type AlibabaCampusCoreCompanycampusGetcombycamidAPIRequest struct { + model.Params + // WorkBenchContext + _param0 *WorkBenchContext +} + +// 初始化AlibabaCampusCoreCompanycampusGetcombycamidAPIRequest对象 +func NewAlibabaCampusCoreCompanycampusGetcombycamidRequest() *AlibabaCampusCoreCompanycampusGetcombycamidAPIRequest{ + return &AlibabaCampusCoreCompanycampusGetcombycamidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusCoreCompanycampusGetcombycamidAPIRequest) GetApiMethodName() string { + return "alibaba.campus.core.companycampus.getcombycamid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusCoreCompanycampusGetcombycamidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// WorkBenchContext +func (r *AlibabaCampusCoreCompanycampusGetcombycamidAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusCoreCompanycampusGetcombycamidAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} diff --git a/model/campus/AlibabaCampusCoreCompanycampusGetcombycamidAPIResponse.go b/model/campus/AlibabaCampusCoreCompanycampusGetcombycamidAPIResponse.go new file mode 100644 index 0000000000..e32ee8dc91 --- /dev/null +++ b/model/campus/AlibabaCampusCoreCompanycampusGetcombycamidAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据园区ID获取运营公司信息 API返回值 +alibaba.campus.core.companycampus.getcombycamid + +根据园区ID获取运营公司信息 +*/ +type AlibabaCampusCoreCompanycampusGetcombycamidAPIResponse struct { + model.CommonResponse + AlibabaCampusCoreCompanycampusGetcombycamidAPIResponseModel +} + +// 根据园区ID获取运营公司信息 成功返回结果 +type AlibabaCampusCoreCompanycampusGetcombycamidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_core_companycampus_getcombycamid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应结果 + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusCoreCompanycampusGetcombycamidResponse.go b/model/campus/AlibabaCampusCoreCompanycampusGetcombycamidResponse.go deleted file mode 100644 index 2c4af4a99e..0000000000 --- a/model/campus/AlibabaCampusCoreCompanycampusGetcombycamidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据园区ID获取运营公司信息 API返回值 -alibaba.campus.core.companycampus.getcombycamid - -根据园区ID获取运营公司信息 -*/ -type AlibabaCampusCoreCompanycampusGetcombycamidAPIResponse struct { - model.CommonResponse - AlibabaCampusCoreCompanycampusGetcombycamidResponse -} - -// 根据园区ID获取运营公司信息 成功返回结果 -type AlibabaCampusCoreCompanycampusGetcombycamidResponse struct { - XMLName xml.Name `xml:"alibaba_campus_core_companycampus_getcombycamid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应结果 - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusCoreEmployeeModifyemployeeAPIRequest.go b/model/campus/AlibabaCampusCoreEmployeeModifyemployeeAPIRequest.go new file mode 100644 index 0000000000..4c872920b5 --- /dev/null +++ b/model/campus/AlibabaCampusCoreEmployeeModifyemployeeAPIRequest.go @@ -0,0 +1,80 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改员工基本信息 API请求 +alibaba.campus.core.employee.modifyemployee + +根据用户ID和公司ID更新员工基本信息(头像、性别、昵称) +*/ +type AlibabaCampusCoreEmployeeModifyemployeeAPIRequest struct { + model.Params + // WorkBenchContext + _workBenchContext *WorkBenchContext + // EmployeeDto + _employeeDto *EmployeeDto + // 用户ID + _accountId string +} + +// 初始化AlibabaCampusCoreEmployeeModifyemployeeAPIRequest对象 +func NewAlibabaCampusCoreEmployeeModifyemployeeRequest() *AlibabaCampusCoreEmployeeModifyemployeeAPIRequest{ + return &AlibabaCampusCoreEmployeeModifyemployeeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusCoreEmployeeModifyemployeeAPIRequest) GetApiMethodName() string { + return "alibaba.campus.core.employee.modifyemployee" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusCoreEmployeeModifyemployeeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkBenchContext Setter +// WorkBenchContext +func (r *AlibabaCampusCoreEmployeeModifyemployeeAPIRequest) SetWorkBenchContext(_workBenchContext *WorkBenchContext) error { + r._workBenchContext = _workBenchContext + r.Set("work_bench_context", _workBenchContext) + return nil +} + +// WorkBenchContext Getter +func (r AlibabaCampusCoreEmployeeModifyemployeeAPIRequest) GetWorkBenchContext() *WorkBenchContext { + return r._workBenchContext +} +// EmployeeDto Setter +// EmployeeDto +func (r *AlibabaCampusCoreEmployeeModifyemployeeAPIRequest) SetEmployeeDto(_employeeDto *EmployeeDto) error { + r._employeeDto = _employeeDto + r.Set("employee_dto", _employeeDto) + return nil +} + +// EmployeeDto Getter +func (r AlibabaCampusCoreEmployeeModifyemployeeAPIRequest) GetEmployeeDto() *EmployeeDto { + return r._employeeDto +} +// AccountId Setter +// 用户ID +func (r *AlibabaCampusCoreEmployeeModifyemployeeAPIRequest) SetAccountId(_accountId string) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r AlibabaCampusCoreEmployeeModifyemployeeAPIRequest) GetAccountId() string { + return r._accountId +} diff --git a/model/campus/AlibabaCampusCoreEmployeeModifyemployeeAPIResponse.go b/model/campus/AlibabaCampusCoreEmployeeModifyemployeeAPIResponse.go new file mode 100644 index 0000000000..3f15761383 --- /dev/null +++ b/model/campus/AlibabaCampusCoreEmployeeModifyemployeeAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改员工基本信息 API返回值 +alibaba.campus.core.employee.modifyemployee + +根据用户ID和公司ID更新员工基本信息(头像、性别、昵称) +*/ +type AlibabaCampusCoreEmployeeModifyemployeeAPIResponse struct { + model.CommonResponse + AlibabaCampusCoreEmployeeModifyemployeeAPIResponseModel +} + +// 修改员工基本信息 成功返回结果 +type AlibabaCampusCoreEmployeeModifyemployeeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_core_employee_modifyemployee_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求响应 + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusCoreEmployeeModifyemployeeResponse.go b/model/campus/AlibabaCampusCoreEmployeeModifyemployeeResponse.go deleted file mode 100644 index 0d400d31b3..0000000000 --- a/model/campus/AlibabaCampusCoreEmployeeModifyemployeeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改员工基本信息 API返回值 -alibaba.campus.core.employee.modifyemployee - -根据用户ID和公司ID更新员工基本信息(头像、性别、昵称) -*/ -type AlibabaCampusCoreEmployeeModifyemployeeAPIResponse struct { - model.CommonResponse - AlibabaCampusCoreEmployeeModifyemployeeResponse -} - -// 修改员工基本信息 成功返回结果 -type AlibabaCampusCoreEmployeeModifyemployeeResponse struct { - XMLName xml.Name `xml:"alibaba_campus_core_employee_modifyemployee_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求响应 - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusDeviceGetdeviceforqueryAPIRequest.go b/model/campus/AlibabaCampusDeviceGetdeviceforqueryAPIRequest.go new file mode 100644 index 0000000000..3208a4f997 --- /dev/null +++ b/model/campus/AlibabaCampusDeviceGetdeviceforqueryAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +下发设备的分页接口(无需AOP控制) API请求 +alibaba.campus.device.getdeviceforquery + +下发设备的分页接口(发布在TOP上,connect调用,无需AOP控制) +*/ +type AlibabaCampusDeviceGetdeviceforqueryAPIRequest struct { + model.Params + // 系统自动生成 + _query *DeviceApiQuery + // 平台统一参数 + _workBenchContext *WorkBenchContext +} + +// 初始化AlibabaCampusDeviceGetdeviceforqueryAPIRequest对象 +func NewAlibabaCampusDeviceGetdeviceforqueryRequest() *AlibabaCampusDeviceGetdeviceforqueryAPIRequest{ + return &AlibabaCampusDeviceGetdeviceforqueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusDeviceGetdeviceforqueryAPIRequest) GetApiMethodName() string { + return "alibaba.campus.device.getdeviceforquery" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusDeviceGetdeviceforqueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 系统自动生成 +func (r *AlibabaCampusDeviceGetdeviceforqueryAPIRequest) SetQuery(_query *DeviceApiQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaCampusDeviceGetdeviceforqueryAPIRequest) GetQuery() *DeviceApiQuery { + return r._query +} +// WorkBenchContext Setter +// 平台统一参数 +func (r *AlibabaCampusDeviceGetdeviceforqueryAPIRequest) SetWorkBenchContext(_workBenchContext *WorkBenchContext) error { + r._workBenchContext = _workBenchContext + r.Set("work_bench_context", _workBenchContext) + return nil +} + +// WorkBenchContext Getter +func (r AlibabaCampusDeviceGetdeviceforqueryAPIRequest) GetWorkBenchContext() *WorkBenchContext { + return r._workBenchContext +} diff --git a/model/campus/AlibabaCampusDeviceGetdeviceforqueryAPIResponse.go b/model/campus/AlibabaCampusDeviceGetdeviceforqueryAPIResponse.go new file mode 100644 index 0000000000..bdc6692125 --- /dev/null +++ b/model/campus/AlibabaCampusDeviceGetdeviceforqueryAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +下发设备的分页接口(无需AOP控制) API返回值 +alibaba.campus.device.getdeviceforquery + +下发设备的分页接口(发布在TOP上,connect调用,无需AOP控制) +*/ +type AlibabaCampusDeviceGetdeviceforqueryAPIResponse struct { + model.CommonResponse + AlibabaCampusDeviceGetdeviceforqueryAPIResponseModel +} + +// 下发设备的分页接口(无需AOP控制) 成功返回结果 +type AlibabaCampusDeviceGetdeviceforqueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_device_getdeviceforquery_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusDeviceGetdeviceforqueryResponse.go b/model/campus/AlibabaCampusDeviceGetdeviceforqueryResponse.go deleted file mode 100644 index 080a27717c..0000000000 --- a/model/campus/AlibabaCampusDeviceGetdeviceforqueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -下发设备的分页接口(无需AOP控制) API返回值 -alibaba.campus.device.getdeviceforquery - -下发设备的分页接口(发布在TOP上,connect调用,无需AOP控制) -*/ -type AlibabaCampusDeviceGetdeviceforqueryAPIResponse struct { - model.CommonResponse - AlibabaCampusDeviceGetdeviceforqueryResponse -} - -// 下发设备的分页接口(无需AOP控制) 成功返回结果 -type AlibabaCampusDeviceGetdeviceforqueryResponse struct { - XMLName xml.Name `xml:"alibaba_campus_device_getdeviceforquery_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusDeviceHistorydataGetAPIRequest.go b/model/campus/AlibabaCampusDeviceHistorydataGetAPIRequest.go new file mode 100644 index 0000000000..4e2cdb76b1 --- /dev/null +++ b/model/campus/AlibabaCampusDeviceHistorydataGetAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设备历史数据批量获取 API请求 +alibaba.campus.device.historydata.get + +设备历史数据批量获取 +*/ +type AlibabaCampusDeviceHistorydataGetAPIRequest struct { + model.Params + // workbench + _workBenchContext *WorkBenchContext + // 查询条件 + _query *DeviceHistoryBatchQuery +} + +// 初始化AlibabaCampusDeviceHistorydataGetAPIRequest对象 +func NewAlibabaCampusDeviceHistorydataGetRequest() *AlibabaCampusDeviceHistorydataGetAPIRequest{ + return &AlibabaCampusDeviceHistorydataGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusDeviceHistorydataGetAPIRequest) GetApiMethodName() string { + return "alibaba.campus.device.historydata.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusDeviceHistorydataGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkBenchContext Setter +// workbench +func (r *AlibabaCampusDeviceHistorydataGetAPIRequest) SetWorkBenchContext(_workBenchContext *WorkBenchContext) error { + r._workBenchContext = _workBenchContext + r.Set("work_bench_context", _workBenchContext) + return nil +} + +// WorkBenchContext Getter +func (r AlibabaCampusDeviceHistorydataGetAPIRequest) GetWorkBenchContext() *WorkBenchContext { + return r._workBenchContext +} +// Query Setter +// 查询条件 +func (r *AlibabaCampusDeviceHistorydataGetAPIRequest) SetQuery(_query *DeviceHistoryBatchQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaCampusDeviceHistorydataGetAPIRequest) GetQuery() *DeviceHistoryBatchQuery { + return r._query +} diff --git a/model/campus/AlibabaCampusDeviceHistorydataGetAPIResponse.go b/model/campus/AlibabaCampusDeviceHistorydataGetAPIResponse.go new file mode 100644 index 0000000000..0f5a71d49a --- /dev/null +++ b/model/campus/AlibabaCampusDeviceHistorydataGetAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设备历史数据批量获取 API返回值 +alibaba.campus.device.historydata.get + +设备历史数据批量获取 +*/ +type AlibabaCampusDeviceHistorydataGetAPIResponse struct { + model.CommonResponse + AlibabaCampusDeviceHistorydataGetAPIResponseModel +} + +// 设备历史数据批量获取 成功返回结果 +type AlibabaCampusDeviceHistorydataGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_device_historydata_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusDeviceHistorydataGetResponse.go b/model/campus/AlibabaCampusDeviceHistorydataGetResponse.go deleted file mode 100644 index 1e908eb0a9..0000000000 --- a/model/campus/AlibabaCampusDeviceHistorydataGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设备历史数据批量获取 API返回值 -alibaba.campus.device.historydata.get - -设备历史数据批量获取 -*/ -type AlibabaCampusDeviceHistorydataGetAPIResponse struct { - model.CommonResponse - AlibabaCampusDeviceHistorydataGetResponse -} - -// 设备历史数据批量获取 成功返回结果 -type AlibabaCampusDeviceHistorydataGetResponse struct { - XMLName xml.Name `xml:"alibaba_campus_device_historydata_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIRequest.go b/model/campus/AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIRequest.go new file mode 100644 index 0000000000..0c9b337667 --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +IVS事件处理反馈接口 API请求 +alibaba.campus.device.openapi.feedbackeventinfo + +提供给第三方ISV的的事件信息处理反馈的接口 +*/ +type AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIRequest struct { + model.Params + // 系统上下文 + _param0 *WorkBenchContext + // 请求封装类 + _param1 *EventInfoApiDto +} + +// 初始化AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIRequest对象 +func NewAlibabaCampusDeviceOpenapiFeedbackeventinfoRequest() *AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIRequest{ + return &AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIRequest) GetApiMethodName() string { + return "alibaba.campus.device.openapi.feedbackeventinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 系统上下文 +func (r *AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} +// Param1 Setter +// 请求封装类 +func (r *AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIRequest) SetParam1(_param1 *EventInfoApiDto) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIRequest) GetParam1() *EventInfoApiDto { + return r._param1 +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIResponse.go b/model/campus/AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIResponse.go new file mode 100644 index 0000000000..e3f7cdbd12 --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +IVS事件处理反馈接口 API返回值 +alibaba.campus.device.openapi.feedbackeventinfo + +提供给第三方ISV的的事件信息处理反馈的接口 +*/ +type AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIResponse struct { + model.CommonResponse + AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIResponseModel +} + +// IVS事件处理反馈接口 成功返回结果 +type AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_device_openapi_feedbackeventinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiFeedbackeventinfoResponse.go b/model/campus/AlibabaCampusDeviceOpenapiFeedbackeventinfoResponse.go deleted file mode 100644 index 1f9e031b84..0000000000 --- a/model/campus/AlibabaCampusDeviceOpenapiFeedbackeventinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -IVS事件处理反馈接口 API返回值 -alibaba.campus.device.openapi.feedbackeventinfo - -提供给第三方ISV的的事件信息处理反馈的接口 -*/ -type AlibabaCampusDeviceOpenapiFeedbackeventinfoAPIResponse struct { - model.CommonResponse - AlibabaCampusDeviceOpenapiFeedbackeventinfoResponse -} - -// IVS事件处理反馈接口 成功返回结果 -type AlibabaCampusDeviceOpenapiFeedbackeventinfoResponse struct { - XMLName xml.Name `xml:"alibaba_campus_device_openapi_feedbackeventinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGetdevicelistAPIRequest.go b/model/campus/AlibabaCampusDeviceOpenapiGetdevicelistAPIRequest.go new file mode 100644 index 0000000000..69e80abd3f --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiGetdevicelistAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +多条件查询设备分组 API请求 +alibaba.campus.device.openapi.getdevicelist + +多条件查询设备分组 +*/ +type AlibabaCampusDeviceOpenapiGetdevicelistAPIRequest struct { + model.Params + // 请求发送端信息 + _workBenchContext *WorkBenchContext + // 多条件查询对象 + _query *DeviceApiQuery +} + +// 初始化AlibabaCampusDeviceOpenapiGetdevicelistAPIRequest对象 +func NewAlibabaCampusDeviceOpenapiGetdevicelistRequest() *AlibabaCampusDeviceOpenapiGetdevicelistAPIRequest{ + return &AlibabaCampusDeviceOpenapiGetdevicelistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusDeviceOpenapiGetdevicelistAPIRequest) GetApiMethodName() string { + return "alibaba.campus.device.openapi.getdevicelist" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusDeviceOpenapiGetdevicelistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkBenchContext Setter +// 请求发送端信息 +func (r *AlibabaCampusDeviceOpenapiGetdevicelistAPIRequest) SetWorkBenchContext(_workBenchContext *WorkBenchContext) error { + r._workBenchContext = _workBenchContext + r.Set("work_bench_context", _workBenchContext) + return nil +} + +// WorkBenchContext Getter +func (r AlibabaCampusDeviceOpenapiGetdevicelistAPIRequest) GetWorkBenchContext() *WorkBenchContext { + return r._workBenchContext +} +// Query Setter +// 多条件查询对象 +func (r *AlibabaCampusDeviceOpenapiGetdevicelistAPIRequest) SetQuery(_query *DeviceApiQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaCampusDeviceOpenapiGetdevicelistAPIRequest) GetQuery() *DeviceApiQuery { + return r._query +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGetdevicelistAPIResponse.go b/model/campus/AlibabaCampusDeviceOpenapiGetdevicelistAPIResponse.go new file mode 100644 index 0000000000..370ee65df9 --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiGetdevicelistAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +多条件查询设备分组 API返回值 +alibaba.campus.device.openapi.getdevicelist + +多条件查询设备分组 +*/ +type AlibabaCampusDeviceOpenapiGetdevicelistAPIResponse struct { + model.CommonResponse + AlibabaCampusDeviceOpenapiGetdevicelistAPIResponseModel +} + +// 多条件查询设备分组 成功返回结果 +type AlibabaCampusDeviceOpenapiGetdevicelistAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_device_openapi_getdevicelist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGetdevicelistResponse.go b/model/campus/AlibabaCampusDeviceOpenapiGetdevicelistResponse.go deleted file mode 100644 index f06715279f..0000000000 --- a/model/campus/AlibabaCampusDeviceOpenapiGetdevicelistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -多条件查询设备分组 API返回值 -alibaba.campus.device.openapi.getdevicelist - -多条件查询设备分组 -*/ -type AlibabaCampusDeviceOpenapiGetdevicelistAPIResponse struct { - model.CommonResponse - AlibabaCampusDeviceOpenapiGetdevicelistResponse -} - -// 多条件查询设备分组 成功返回结果 -type AlibabaCampusDeviceOpenapiGetdevicelistResponse struct { - XMLName xml.Name `xml:"alibaba_campus_device_openapi_getdevicelist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIRequest.go b/model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIRequest.go new file mode 100644 index 0000000000..1d07444670 --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIRequest.go @@ -0,0 +1,80 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定设备下指定参数的实时值 API请求 +alibaba.campus.device.openapi.getdevicerealtimedata + +获取指定设备下指定参数的实时值 +*/ +type AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIRequest struct { + model.Params + // 请求端信息 + _workBenchContext *WorkBenchContext + // 设备uuid + _uuid string + // 参数code,如灯亮度参数为brightness;参数code信息请查阅‘平台技术’下‘设备详细信息开发文档’[根据设备类型查看该设备所拥有的采集类参数]。 + _propertyCode string +} + +// 初始化AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIRequest对象 +func NewAlibabaCampusDeviceOpenapiGetdevicerealtimedataRequest() *AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIRequest{ + return &AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIRequest) GetApiMethodName() string { + return "alibaba.campus.device.openapi.getdevicerealtimedata" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkBenchContext Setter +// 请求端信息 +func (r *AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIRequest) SetWorkBenchContext(_workBenchContext *WorkBenchContext) error { + r._workBenchContext = _workBenchContext + r.Set("work_bench_context", _workBenchContext) + return nil +} + +// WorkBenchContext Getter +func (r AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIRequest) GetWorkBenchContext() *WorkBenchContext { + return r._workBenchContext +} +// Uuid Setter +// 设备uuid +func (r *AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIRequest) GetUuid() string { + return r._uuid +} +// PropertyCode Setter +// 参数code,如灯亮度参数为brightness;参数code信息请查阅‘平台技术’下‘设备详细信息开发文档’[根据设备类型查看该设备所拥有的采集类参数]。 +func (r *AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIRequest) SetPropertyCode(_propertyCode string) error { + r._propertyCode = _propertyCode + r.Set("property_code", _propertyCode) + return nil +} + +// PropertyCode Getter +func (r AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIRequest) GetPropertyCode() string { + return r._propertyCode +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIResponse.go b/model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIResponse.go new file mode 100644 index 0000000000..a3ea6afe79 --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定设备下指定参数的实时值 API返回值 +alibaba.campus.device.openapi.getdevicerealtimedata + +获取指定设备下指定参数的实时值 +*/ +type AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIResponse struct { + model.CommonResponse + AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIResponseModel +} + +// 获取指定设备下指定参数的实时值 成功返回结果 +type AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_device_openapi_getdevicerealtimedata_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回查询结果 + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimedataResponse.go b/model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimedataResponse.go deleted file mode 100644 index bf56305d6a..0000000000 --- a/model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimedataResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取指定设备下指定参数的实时值 API返回值 -alibaba.campus.device.openapi.getdevicerealtimedata - -获取指定设备下指定参数的实时值 -*/ -type AlibabaCampusDeviceOpenapiGetdevicerealtimedataAPIResponse struct { - model.CommonResponse - AlibabaCampusDeviceOpenapiGetdevicerealtimedataResponse -} - -// 获取指定设备下指定参数的实时值 成功返回结果 -type AlibabaCampusDeviceOpenapiGetdevicerealtimedataResponse struct { - XMLName xml.Name `xml:"alibaba_campus_device_openapi_getdevicerealtimedata_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回查询结果 - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIRequest.go b/model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIRequest.go new file mode 100644 index 0000000000..7f1614a5b6 --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据设备uuid获取设备采集信息 API请求 +alibaba.campus.device.openapi.getdevicerealtimelog + +根据设备uuid获取设备采集信息 +*/ +type AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIRequest struct { + model.Params + // 请求发送端信息 + _workBenchContext *WorkBenchContext + // 设备uuid + _uuid string +} + +// 初始化AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIRequest对象 +func NewAlibabaCampusDeviceOpenapiGetdevicerealtimelogRequest() *AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIRequest{ + return &AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIRequest) GetApiMethodName() string { + return "alibaba.campus.device.openapi.getdevicerealtimelog" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkBenchContext Setter +// 请求发送端信息 +func (r *AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIRequest) SetWorkBenchContext(_workBenchContext *WorkBenchContext) error { + r._workBenchContext = _workBenchContext + r.Set("work_bench_context", _workBenchContext) + return nil +} + +// WorkBenchContext Getter +func (r AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIRequest) GetWorkBenchContext() *WorkBenchContext { + return r._workBenchContext +} +// Uuid Setter +// 设备uuid +func (r *AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIRequest) GetUuid() string { + return r._uuid +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIResponse.go b/model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIResponse.go new file mode 100644 index 0000000000..a49376c744 --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据设备uuid获取设备采集信息 API返回值 +alibaba.campus.device.openapi.getdevicerealtimelog + +根据设备uuid获取设备采集信息 +*/ +type AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIResponse struct { + model.CommonResponse + AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIResponseModel +} + +// 根据设备uuid获取设备采集信息 成功返回结果 +type AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_device_openapi_getdevicerealtimelog_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimelogResponse.go b/model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimelogResponse.go deleted file mode 100644 index 6031565c53..0000000000 --- a/model/campus/AlibabaCampusDeviceOpenapiGetdevicerealtimelogResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据设备uuid获取设备采集信息 API返回值 -alibaba.campus.device.openapi.getdevicerealtimelog - -根据设备uuid获取设备采集信息 -*/ -type AlibabaCampusDeviceOpenapiGetdevicerealtimelogAPIResponse struct { - model.CommonResponse - AlibabaCampusDeviceOpenapiGetdevicerealtimelogResponse -} - -// 根据设备uuid获取设备采集信息 成功返回结果 -type AlibabaCampusDeviceOpenapiGetdevicerealtimelogResponse struct { - XMLName xml.Name `xml:"alibaba_campus_device_openapi_getdevicerealtimelog_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGethistorydataAPIRequest.go b/model/campus/AlibabaCampusDeviceOpenapiGethistorydataAPIRequest.go new file mode 100644 index 0000000000..f1b1cd7767 --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiGethistorydataAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询设备历史数据 API请求 +alibaba.campus.device.openapi.gethistorydata + +查询历史数据的接口 +*/ +type AlibabaCampusDeviceOpenapiGethistorydataAPIRequest struct { + model.Params + // 请求端信息 + _workBenchContext *WorkBenchContext + // 历史数据查询对象 + _query *DeviceDataApiQuery +} + +// 初始化AlibabaCampusDeviceOpenapiGethistorydataAPIRequest对象 +func NewAlibabaCampusDeviceOpenapiGethistorydataRequest() *AlibabaCampusDeviceOpenapiGethistorydataAPIRequest{ + return &AlibabaCampusDeviceOpenapiGethistorydataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusDeviceOpenapiGethistorydataAPIRequest) GetApiMethodName() string { + return "alibaba.campus.device.openapi.gethistorydata" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusDeviceOpenapiGethistorydataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkBenchContext Setter +// 请求端信息 +func (r *AlibabaCampusDeviceOpenapiGethistorydataAPIRequest) SetWorkBenchContext(_workBenchContext *WorkBenchContext) error { + r._workBenchContext = _workBenchContext + r.Set("work_bench_context", _workBenchContext) + return nil +} + +// WorkBenchContext Getter +func (r AlibabaCampusDeviceOpenapiGethistorydataAPIRequest) GetWorkBenchContext() *WorkBenchContext { + return r._workBenchContext +} +// Query Setter +// 历史数据查询对象 +func (r *AlibabaCampusDeviceOpenapiGethistorydataAPIRequest) SetQuery(_query *DeviceDataApiQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaCampusDeviceOpenapiGethistorydataAPIRequest) GetQuery() *DeviceDataApiQuery { + return r._query +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGethistorydataAPIResponse.go b/model/campus/AlibabaCampusDeviceOpenapiGethistorydataAPIResponse.go new file mode 100644 index 0000000000..e5f9c73e80 --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiGethistorydataAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询设备历史数据 API返回值 +alibaba.campus.device.openapi.gethistorydata + +查询历史数据的接口 +*/ +type AlibabaCampusDeviceOpenapiGethistorydataAPIResponse struct { + model.CommonResponse + AlibabaCampusDeviceOpenapiGethistorydataAPIResponseModel +} + +// 查询设备历史数据 成功返回结果 +type AlibabaCampusDeviceOpenapiGethistorydataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_device_openapi_gethistorydata_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGethistorydataResponse.go b/model/campus/AlibabaCampusDeviceOpenapiGethistorydataResponse.go deleted file mode 100644 index 6d8801d6b2..0000000000 --- a/model/campus/AlibabaCampusDeviceOpenapiGethistorydataResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询设备历史数据 API返回值 -alibaba.campus.device.openapi.gethistorydata - -查询历史数据的接口 -*/ -type AlibabaCampusDeviceOpenapiGethistorydataAPIResponse struct { - model.CommonResponse - AlibabaCampusDeviceOpenapiGethistorydataResponse -} - -// 查询设备历史数据 成功返回结果 -type AlibabaCampusDeviceOpenapiGethistorydataResponse struct { - XMLName xml.Name `xml:"alibaba_campus_device_openapi_gethistorydata_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGetsimpledeviceAPIRequest.go b/model/campus/AlibabaCampusDeviceOpenapiGetsimpledeviceAPIRequest.go new file mode 100644 index 0000000000..be0eb2140a --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiGetsimpledeviceAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单个设备的基础信息(仅包含设备id,code,是否启用,位置信息,描述等基础信息) API请求 +alibaba.campus.device.openapi.getsimpledevice + +获取指定设备的基础信息(仅包含设备id,code,是否启用,位置信息,描述等基础信息) +*/ +type AlibabaCampusDeviceOpenapiGetsimpledeviceAPIRequest struct { + model.Params + // 请求发送端信息 + _workBenchContext *WorkBenchContext + // 设备uuid + _uuid string +} + +// 初始化AlibabaCampusDeviceOpenapiGetsimpledeviceAPIRequest对象 +func NewAlibabaCampusDeviceOpenapiGetsimpledeviceRequest() *AlibabaCampusDeviceOpenapiGetsimpledeviceAPIRequest{ + return &AlibabaCampusDeviceOpenapiGetsimpledeviceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusDeviceOpenapiGetsimpledeviceAPIRequest) GetApiMethodName() string { + return "alibaba.campus.device.openapi.getsimpledevice" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusDeviceOpenapiGetsimpledeviceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkBenchContext Setter +// 请求发送端信息 +func (r *AlibabaCampusDeviceOpenapiGetsimpledeviceAPIRequest) SetWorkBenchContext(_workBenchContext *WorkBenchContext) error { + r._workBenchContext = _workBenchContext + r.Set("work_bench_context", _workBenchContext) + return nil +} + +// WorkBenchContext Getter +func (r AlibabaCampusDeviceOpenapiGetsimpledeviceAPIRequest) GetWorkBenchContext() *WorkBenchContext { + return r._workBenchContext +} +// Uuid Setter +// 设备uuid +func (r *AlibabaCampusDeviceOpenapiGetsimpledeviceAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaCampusDeviceOpenapiGetsimpledeviceAPIRequest) GetUuid() string { + return r._uuid +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGetsimpledeviceAPIResponse.go b/model/campus/AlibabaCampusDeviceOpenapiGetsimpledeviceAPIResponse.go new file mode 100644 index 0000000000..1342c98bf1 --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiGetsimpledeviceAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单个设备的基础信息(仅包含设备id,code,是否启用,位置信息,描述等基础信息) API返回值 +alibaba.campus.device.openapi.getsimpledevice + +获取指定设备的基础信息(仅包含设备id,code,是否启用,位置信息,描述等基础信息) +*/ +type AlibabaCampusDeviceOpenapiGetsimpledeviceAPIResponse struct { + model.CommonResponse + AlibabaCampusDeviceOpenapiGetsimpledeviceAPIResponseModel +} + +// 获取单个设备的基础信息(仅包含设备id,code,是否启用,位置信息,描述等基础信息) 成功返回结果 +type AlibabaCampusDeviceOpenapiGetsimpledeviceAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_device_openapi_getsimpledevice_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGetsimpledeviceResponse.go b/model/campus/AlibabaCampusDeviceOpenapiGetsimpledeviceResponse.go deleted file mode 100644 index 8ea02f05b7..0000000000 --- a/model/campus/AlibabaCampusDeviceOpenapiGetsimpledeviceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取单个设备的基础信息(仅包含设备id,code,是否启用,位置信息,描述等基础信息) API返回值 -alibaba.campus.device.openapi.getsimpledevice - -获取指定设备的基础信息(仅包含设备id,code,是否启用,位置信息,描述等基础信息) -*/ -type AlibabaCampusDeviceOpenapiGetsimpledeviceAPIResponse struct { - model.CommonResponse - AlibabaCampusDeviceOpenapiGetsimpledeviceResponse -} - -// 获取单个设备的基础信息(仅包含设备id,code,是否启用,位置信息,描述等基础信息) 成功返回结果 -type AlibabaCampusDeviceOpenapiGetsimpledeviceResponse struct { - XMLName xml.Name `xml:"alibaba_campus_device_openapi_getsimpledevice_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIRequest.go b/model/campus/AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIRequest.go new file mode 100644 index 0000000000..437d4109aa --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询设备基础信息集合(仅包含设备id,code,是否启用,位置信息,描述等基础信息) API请求 +alibaba.campus.device.openapi.getsimpledevicelist + +查询设备基础信息集合(仅包含设备id,code,是否启用,位置信息,描述等基础信息) +*/ +type AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIRequest struct { + model.Params + // 请求发送端信息 + _workBenchContext *WorkBenchContext + // 多条件查询对象 + _query *DeviceApiQuery +} + +// 初始化AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIRequest对象 +func NewAlibabaCampusDeviceOpenapiGetsimpledevicelistRequest() *AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIRequest{ + return &AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIRequest) GetApiMethodName() string { + return "alibaba.campus.device.openapi.getsimpledevicelist" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkBenchContext Setter +// 请求发送端信息 +func (r *AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIRequest) SetWorkBenchContext(_workBenchContext *WorkBenchContext) error { + r._workBenchContext = _workBenchContext + r.Set("work_bench_context", _workBenchContext) + return nil +} + +// WorkBenchContext Getter +func (r AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIRequest) GetWorkBenchContext() *WorkBenchContext { + return r._workBenchContext +} +// Query Setter +// 多条件查询对象 +func (r *AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIRequest) SetQuery(_query *DeviceApiQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIRequest) GetQuery() *DeviceApiQuery { + return r._query +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIResponse.go b/model/campus/AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIResponse.go new file mode 100644 index 0000000000..1d4c129817 --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询设备基础信息集合(仅包含设备id,code,是否启用,位置信息,描述等基础信息) API返回值 +alibaba.campus.device.openapi.getsimpledevicelist + +查询设备基础信息集合(仅包含设备id,code,是否启用,位置信息,描述等基础信息) +*/ +type AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIResponse struct { + model.CommonResponse + AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIResponseModel +} + +// 查询设备基础信息集合(仅包含设备id,code,是否启用,位置信息,描述等基础信息) 成功返回结果 +type AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_device_openapi_getsimpledevicelist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGetsimpledevicelistResponse.go b/model/campus/AlibabaCampusDeviceOpenapiGetsimpledevicelistResponse.go deleted file mode 100644 index cc1d41aa5b..0000000000 --- a/model/campus/AlibabaCampusDeviceOpenapiGetsimpledevicelistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询设备基础信息集合(仅包含设备id,code,是否启用,位置信息,描述等基础信息) API返回值 -alibaba.campus.device.openapi.getsimpledevicelist - -查询设备基础信息集合(仅包含设备id,code,是否启用,位置信息,描述等基础信息) -*/ -type AlibabaCampusDeviceOpenapiGetsimpledevicelistAPIResponse struct { - model.CommonResponse - AlibabaCampusDeviceOpenapiGetsimpledevicelistResponse -} - -// 查询设备基础信息集合(仅包含设备id,code,是否启用,位置信息,描述等基础信息) 成功返回结果 -type AlibabaCampusDeviceOpenapiGetsimpledevicelistResponse struct { - XMLName xml.Name `xml:"alibaba_campus_device_openapi_getsimpledevicelist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGettemplatelistAPIRequest.go b/model/campus/AlibabaCampusDeviceOpenapiGettemplatelistAPIRequest.go new file mode 100644 index 0000000000..caf2e32b14 --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiGettemplatelistAPIRequest.go @@ -0,0 +1,52 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询设备模板 API请求 +alibaba.campus.device.openapi.gettemplatelist + +查询设备模板信息 +*/ +type AlibabaCampusDeviceOpenapiGettemplatelistAPIRequest struct { + model.Params + // 设备模板查询对象 + _query *TemplateApiQuery +} + +// 初始化AlibabaCampusDeviceOpenapiGettemplatelistAPIRequest对象 +func NewAlibabaCampusDeviceOpenapiGettemplatelistRequest() *AlibabaCampusDeviceOpenapiGettemplatelistAPIRequest{ + return &AlibabaCampusDeviceOpenapiGettemplatelistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusDeviceOpenapiGettemplatelistAPIRequest) GetApiMethodName() string { + return "alibaba.campus.device.openapi.gettemplatelist" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusDeviceOpenapiGettemplatelistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 设备模板查询对象 +func (r *AlibabaCampusDeviceOpenapiGettemplatelistAPIRequest) SetQuery(_query *TemplateApiQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaCampusDeviceOpenapiGettemplatelistAPIRequest) GetQuery() *TemplateApiQuery { + return r._query +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGettemplatelistAPIResponse.go b/model/campus/AlibabaCampusDeviceOpenapiGettemplatelistAPIResponse.go new file mode 100644 index 0000000000..45da4d7e0c --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiGettemplatelistAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询设备模板 API返回值 +alibaba.campus.device.openapi.gettemplatelist + +查询设备模板信息 +*/ +type AlibabaCampusDeviceOpenapiGettemplatelistAPIResponse struct { + model.CommonResponse + AlibabaCampusDeviceOpenapiGettemplatelistAPIResponseModel +} + +// 查询设备模板 成功返回结果 +type AlibabaCampusDeviceOpenapiGettemplatelistAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_device_openapi_gettemplatelist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGettemplatelistResponse.go b/model/campus/AlibabaCampusDeviceOpenapiGettemplatelistResponse.go deleted file mode 100644 index 975e16dbcc..0000000000 --- a/model/campus/AlibabaCampusDeviceOpenapiGettemplatelistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询设备模板 API返回值 -alibaba.campus.device.openapi.gettemplatelist - -查询设备模板信息 -*/ -type AlibabaCampusDeviceOpenapiGettemplatelistAPIResponse struct { - model.CommonResponse - AlibabaCampusDeviceOpenapiGettemplatelistResponse -} - -// 查询设备模板 成功返回结果 -type AlibabaCampusDeviceOpenapiGettemplatelistResponse struct { - XMLName xml.Name `xml:"alibaba_campus_device_openapi_gettemplatelist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGetuniquedeviceAPIRequest.go b/model/campus/AlibabaCampusDeviceOpenapiGetuniquedeviceAPIRequest.go new file mode 100644 index 0000000000..00c6c79d5b --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiGetuniquedeviceAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据设备uuid获取设备信息 API请求 +alibaba.campus.device.openapi.getuniquedevice + +根据设备uuid获取设备信息 +*/ +type AlibabaCampusDeviceOpenapiGetuniquedeviceAPIRequest struct { + model.Params + // 请求发送端信息 + _workBenchContext *WorkBenchContext + // 设备序列号uuid + _uuid string +} + +// 初始化AlibabaCampusDeviceOpenapiGetuniquedeviceAPIRequest对象 +func NewAlibabaCampusDeviceOpenapiGetuniquedeviceRequest() *AlibabaCampusDeviceOpenapiGetuniquedeviceAPIRequest{ + return &AlibabaCampusDeviceOpenapiGetuniquedeviceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusDeviceOpenapiGetuniquedeviceAPIRequest) GetApiMethodName() string { + return "alibaba.campus.device.openapi.getuniquedevice" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusDeviceOpenapiGetuniquedeviceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkBenchContext Setter +// 请求发送端信息 +func (r *AlibabaCampusDeviceOpenapiGetuniquedeviceAPIRequest) SetWorkBenchContext(_workBenchContext *WorkBenchContext) error { + r._workBenchContext = _workBenchContext + r.Set("work_bench_context", _workBenchContext) + return nil +} + +// WorkBenchContext Getter +func (r AlibabaCampusDeviceOpenapiGetuniquedeviceAPIRequest) GetWorkBenchContext() *WorkBenchContext { + return r._workBenchContext +} +// Uuid Setter +// 设备序列号uuid +func (r *AlibabaCampusDeviceOpenapiGetuniquedeviceAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaCampusDeviceOpenapiGetuniquedeviceAPIRequest) GetUuid() string { + return r._uuid +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGetuniquedeviceAPIResponse.go b/model/campus/AlibabaCampusDeviceOpenapiGetuniquedeviceAPIResponse.go new file mode 100644 index 0000000000..57706d4a7a --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiGetuniquedeviceAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据设备uuid获取设备信息 API返回值 +alibaba.campus.device.openapi.getuniquedevice + +根据设备uuid获取设备信息 +*/ +type AlibabaCampusDeviceOpenapiGetuniquedeviceAPIResponse struct { + model.CommonResponse + AlibabaCampusDeviceOpenapiGetuniquedeviceAPIResponseModel +} + +// 根据设备uuid获取设备信息 成功返回结果 +type AlibabaCampusDeviceOpenapiGetuniquedeviceAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_device_openapi_getuniquedevice_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiGetuniquedeviceResponse.go b/model/campus/AlibabaCampusDeviceOpenapiGetuniquedeviceResponse.go deleted file mode 100644 index 468cdcd138..0000000000 --- a/model/campus/AlibabaCampusDeviceOpenapiGetuniquedeviceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据设备uuid获取设备信息 API返回值 -alibaba.campus.device.openapi.getuniquedevice - -根据设备uuid获取设备信息 -*/ -type AlibabaCampusDeviceOpenapiGetuniquedeviceAPIResponse struct { - model.CommonResponse - AlibabaCampusDeviceOpenapiGetuniquedeviceResponse -} - -// 根据设备uuid获取设备信息 成功返回结果 -type AlibabaCampusDeviceOpenapiGetuniquedeviceResponse struct { - XMLName xml.Name `xml:"alibaba_campus_device_openapi_getuniquedevice_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusDeviceOpenapiOperatedeviceAPIRequest.go b/model/campus/AlibabaCampusDeviceOpenapiOperatedeviceAPIRequest.go new file mode 100644 index 0000000000..7929abe1a4 --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiOperatedeviceAPIRequest.go @@ -0,0 +1,94 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据uuid操作设备 API请求 +alibaba.campus.device.openapi.operatedevice + +根据uuid操作设备 +*/ +type AlibabaCampusDeviceOpenapiOperatedeviceAPIRequest struct { + model.Params + // 请求发送端信息 + _workBenchContext *WorkBenchContext + // 设备序列号uuid + _uuid string + // 参数code,如灯亮度参数为brightness;设备的开关switchstate。参数code信息请查阅‘平台技术’下‘设备详细信息开发文档’。 + _propertyCode string + // 设置的参数值.如灯亮度为0~255.0表示关;设备开关,值使用on或off。[请按照‘设备详细信息开发文档’传入正确的参数值类型] + _value string +} + +// 初始化AlibabaCampusDeviceOpenapiOperatedeviceAPIRequest对象 +func NewAlibabaCampusDeviceOpenapiOperatedeviceRequest() *AlibabaCampusDeviceOpenapiOperatedeviceAPIRequest{ + return &AlibabaCampusDeviceOpenapiOperatedeviceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusDeviceOpenapiOperatedeviceAPIRequest) GetApiMethodName() string { + return "alibaba.campus.device.openapi.operatedevice" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusDeviceOpenapiOperatedeviceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkBenchContext Setter +// 请求发送端信息 +func (r *AlibabaCampusDeviceOpenapiOperatedeviceAPIRequest) SetWorkBenchContext(_workBenchContext *WorkBenchContext) error { + r._workBenchContext = _workBenchContext + r.Set("work_bench_context", _workBenchContext) + return nil +} + +// WorkBenchContext Getter +func (r AlibabaCampusDeviceOpenapiOperatedeviceAPIRequest) GetWorkBenchContext() *WorkBenchContext { + return r._workBenchContext +} +// Uuid Setter +// 设备序列号uuid +func (r *AlibabaCampusDeviceOpenapiOperatedeviceAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaCampusDeviceOpenapiOperatedeviceAPIRequest) GetUuid() string { + return r._uuid +} +// PropertyCode Setter +// 参数code,如灯亮度参数为brightness;设备的开关switchstate。参数code信息请查阅‘平台技术’下‘设备详细信息开发文档’。 +func (r *AlibabaCampusDeviceOpenapiOperatedeviceAPIRequest) SetPropertyCode(_propertyCode string) error { + r._propertyCode = _propertyCode + r.Set("property_code", _propertyCode) + return nil +} + +// PropertyCode Getter +func (r AlibabaCampusDeviceOpenapiOperatedeviceAPIRequest) GetPropertyCode() string { + return r._propertyCode +} +// Value Setter +// 设置的参数值.如灯亮度为0~255.0表示关;设备开关,值使用on或off。[请按照‘设备详细信息开发文档’传入正确的参数值类型] +func (r *AlibabaCampusDeviceOpenapiOperatedeviceAPIRequest) SetValue(_value string) error { + r._value = _value + r.Set("value", _value) + return nil +} + +// Value Getter +func (r AlibabaCampusDeviceOpenapiOperatedeviceAPIRequest) GetValue() string { + return r._value +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiOperatedeviceAPIResponse.go b/model/campus/AlibabaCampusDeviceOpenapiOperatedeviceAPIResponse.go new file mode 100644 index 0000000000..6a4212f60c --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiOperatedeviceAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据uuid操作设备 API返回值 +alibaba.campus.device.openapi.operatedevice + +根据uuid操作设备 +*/ +type AlibabaCampusDeviceOpenapiOperatedeviceAPIResponse struct { + model.CommonResponse + AlibabaCampusDeviceOpenapiOperatedeviceAPIResponseModel +} + +// 根据uuid操作设备 成功返回结果 +type AlibabaCampusDeviceOpenapiOperatedeviceAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_device_openapi_operatedevice_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiOperatedeviceResponse.go b/model/campus/AlibabaCampusDeviceOpenapiOperatedeviceResponse.go deleted file mode 100644 index 9c46f74e27..0000000000 --- a/model/campus/AlibabaCampusDeviceOpenapiOperatedeviceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据uuid操作设备 API返回值 -alibaba.campus.device.openapi.operatedevice - -根据uuid操作设备 -*/ -type AlibabaCampusDeviceOpenapiOperatedeviceAPIResponse struct { - model.CommonResponse - AlibabaCampusDeviceOpenapiOperatedeviceResponse -} - -// 根据uuid操作设备 成功返回结果 -type AlibabaCampusDeviceOpenapiOperatedeviceResponse struct { - XMLName xml.Name `xml:"alibaba_campus_device_openapi_operatedevice_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIRequest.go b/model/campus/AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIRequest.go new file mode 100644 index 0000000000..b0a82ee9b0 --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +saveeventinfoforibos API请求 +alibaba.campus.device.openapi.saveeventinfoforibos + +IBos的事件信息上报与反馈的处理接口 +*/ +type AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIRequest struct { + model.Params + // 系统自动生成 + _param0 *WorkBenchContext + // 系统自动生成 + _param1 *EventInfoApiDto +} + +// 初始化AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIRequest对象 +func NewAlibabaCampusDeviceOpenapiSaveeventinfoforibosRequest() *AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIRequest{ + return &AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIRequest) GetApiMethodName() string { + return "alibaba.campus.device.openapi.saveeventinfoforibos" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 系统自动生成 +func (r *AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} +// Param1 Setter +// 系统自动生成 +func (r *AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIRequest) SetParam1(_param1 *EventInfoApiDto) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIRequest) GetParam1() *EventInfoApiDto { + return r._param1 +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIResponse.go b/model/campus/AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIResponse.go new file mode 100644 index 0000000000..5ce0ae7888 --- /dev/null +++ b/model/campus/AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIResponse.go @@ -0,0 +1,29 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +saveeventinfoforibos API返回值 +alibaba.campus.device.openapi.saveeventinfoforibos + +IBos的事件信息上报与反馈的处理接口 +*/ +type AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIResponse struct { + model.CommonResponse + AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIResponseModel +} + +// saveeventinfoforibos 成功返回结果 +type AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_device_openapi_saveeventinfoforibos_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // errorMsg + RequestErrorMsg string `json:"request_error_msg,omitempty" xml:"request_error_msg,omitempty"` + // success + RequestSuccess bool `json:"request_success,omitempty" xml:"request_success,omitempty"` +} diff --git a/model/campus/AlibabaCampusDeviceOpenapiSaveeventinfoforibosResponse.go b/model/campus/AlibabaCampusDeviceOpenapiSaveeventinfoforibosResponse.go deleted file mode 100644 index 7c89300de6..0000000000 --- a/model/campus/AlibabaCampusDeviceOpenapiSaveeventinfoforibosResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -saveeventinfoforibos API返回值 -alibaba.campus.device.openapi.saveeventinfoforibos - -IBos的事件信息上报与反馈的处理接口 -*/ -type AlibabaCampusDeviceOpenapiSaveeventinfoforibosAPIResponse struct { - model.CommonResponse - AlibabaCampusDeviceOpenapiSaveeventinfoforibosResponse -} - -// saveeventinfoforibos 成功返回结果 -type AlibabaCampusDeviceOpenapiSaveeventinfoforibosResponse struct { - XMLName xml.Name `xml:"alibaba_campus_device_openapi_saveeventinfoforibos_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // errorMsg - RequestErrorMsg string `json:"request_error_msg,omitempty" xml:"request_error_msg,omitempty"` - // success - RequestSuccess bool `json:"request_success,omitempty" xml:"request_success,omitempty"` -} diff --git a/model/campus/AlibabaCampusDevicehubOpenapiReportdataAPIRequest.go b/model/campus/AlibabaCampusDevicehubOpenapiReportdataAPIRequest.go new file mode 100644 index 0000000000..440d707ae8 --- /dev/null +++ b/model/campus/AlibabaCampusDevicehubOpenapiReportdataAPIRequest.go @@ -0,0 +1,52 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设备数据上报 API请求 +alibaba.campus.devicehub.openapi.reportdata + +设备数据上报 +*/ +type AlibabaCampusDevicehubOpenapiReportdataAPIRequest struct { + model.Params + // 自动生成 + _deviceEventData *DeviceReportEventDto +} + +// 初始化AlibabaCampusDevicehubOpenapiReportdataAPIRequest对象 +func NewAlibabaCampusDevicehubOpenapiReportdataRequest() *AlibabaCampusDevicehubOpenapiReportdataAPIRequest{ + return &AlibabaCampusDevicehubOpenapiReportdataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusDevicehubOpenapiReportdataAPIRequest) GetApiMethodName() string { + return "alibaba.campus.devicehub.openapi.reportdata" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusDevicehubOpenapiReportdataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceEventData Setter +// 自动生成 +func (r *AlibabaCampusDevicehubOpenapiReportdataAPIRequest) SetDeviceEventData(_deviceEventData *DeviceReportEventDto) error { + r._deviceEventData = _deviceEventData + r.Set("device_event_data", _deviceEventData) + return nil +} + +// DeviceEventData Getter +func (r AlibabaCampusDevicehubOpenapiReportdataAPIRequest) GetDeviceEventData() *DeviceReportEventDto { + return r._deviceEventData +} diff --git a/model/campus/AlibabaCampusDevicehubOpenapiReportdataAPIResponse.go b/model/campus/AlibabaCampusDevicehubOpenapiReportdataAPIResponse.go new file mode 100644 index 0000000000..164892e78a --- /dev/null +++ b/model/campus/AlibabaCampusDevicehubOpenapiReportdataAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设备数据上报 API返回值 +alibaba.campus.devicehub.openapi.reportdata + +设备数据上报 +*/ +type AlibabaCampusDevicehubOpenapiReportdataAPIResponse struct { + model.CommonResponse + AlibabaCampusDevicehubOpenapiReportdataAPIResponseModel +} + +// 设备数据上报 成功返回结果 +type AlibabaCampusDevicehubOpenapiReportdataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_devicehub_openapi_reportdata_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 自动生成 + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusDevicehubOpenapiReportdataResponse.go b/model/campus/AlibabaCampusDevicehubOpenapiReportdataResponse.go deleted file mode 100644 index 033009faa8..0000000000 --- a/model/campus/AlibabaCampusDevicehubOpenapiReportdataResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设备数据上报 API返回值 -alibaba.campus.devicehub.openapi.reportdata - -设备数据上报 -*/ -type AlibabaCampusDevicehubOpenapiReportdataAPIResponse struct { - model.CommonResponse - AlibabaCampusDevicehubOpenapiReportdataResponse -} - -// 设备数据上报 成功返回结果 -type AlibabaCampusDevicehubOpenapiReportdataResponse struct { - XMLName xml.Name `xml:"alibaba_campus_devicehub_openapi_reportdata_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 自动生成 - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusGuardDataSyncAPIRequest.go b/model/campus/AlibabaCampusGuardDataSyncAPIRequest.go new file mode 100644 index 0000000000..089fbe2859 --- /dev/null +++ b/model/campus/AlibabaCampusGuardDataSyncAPIRequest.go @@ -0,0 +1,80 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卡巴数据同步 API请求 +alibaba.campus.guard.data.sync + +数据同步门禁系统 +*/ +type AlibabaCampusGuardDataSyncAPIRequest struct { + model.Params + // 1-刷卡流水 + _dataType string + // 供应商名称 + _supplierName string + // json串 + _data string +} + +// 初始化AlibabaCampusGuardDataSyncAPIRequest对象 +func NewAlibabaCampusGuardDataSyncRequest() *AlibabaCampusGuardDataSyncAPIRequest{ + return &AlibabaCampusGuardDataSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusGuardDataSyncAPIRequest) GetApiMethodName() string { + return "alibaba.campus.guard.data.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusGuardDataSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DataType Setter +// 1-刷卡流水 +func (r *AlibabaCampusGuardDataSyncAPIRequest) SetDataType(_dataType string) error { + r._dataType = _dataType + r.Set("data_type", _dataType) + return nil +} + +// DataType Getter +func (r AlibabaCampusGuardDataSyncAPIRequest) GetDataType() string { + return r._dataType +} +// SupplierName Setter +// 供应商名称 +func (r *AlibabaCampusGuardDataSyncAPIRequest) SetSupplierName(_supplierName string) error { + r._supplierName = _supplierName + r.Set("supplier_name", _supplierName) + return nil +} + +// SupplierName Getter +func (r AlibabaCampusGuardDataSyncAPIRequest) GetSupplierName() string { + return r._supplierName +} +// Data Setter +// json串 +func (r *AlibabaCampusGuardDataSyncAPIRequest) SetData(_data string) error { + r._data = _data + r.Set("data", _data) + return nil +} + +// Data Getter +func (r AlibabaCampusGuardDataSyncAPIRequest) GetData() string { + return r._data +} diff --git a/model/campus/AlibabaCampusGuardDataSyncAPIResponse.go b/model/campus/AlibabaCampusGuardDataSyncAPIResponse.go new file mode 100644 index 0000000000..29a8b5e900 --- /dev/null +++ b/model/campus/AlibabaCampusGuardDataSyncAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卡巴数据同步 API返回值 +alibaba.campus.guard.data.sync + +数据同步门禁系统 +*/ +type AlibabaCampusGuardDataSyncAPIResponse struct { + model.CommonResponse + AlibabaCampusGuardDataSyncAPIResponseModel +} + +// 卡巴数据同步 成功返回结果 +type AlibabaCampusGuardDataSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_guard_data_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusGuardDataSyncResponse.go b/model/campus/AlibabaCampusGuardDataSyncResponse.go deleted file mode 100644 index 9dfe90d6de..0000000000 --- a/model/campus/AlibabaCampusGuardDataSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卡巴数据同步 API返回值 -alibaba.campus.guard.data.sync - -数据同步门禁系统 -*/ -type AlibabaCampusGuardDataSyncAPIResponse struct { - model.CommonResponse - AlibabaCampusGuardDataSyncResponse -} - -// 卡巴数据同步 成功返回结果 -type AlibabaCampusGuardDataSyncResponse struct { - XMLName xml.Name `xml:"alibaba_campus_guard_data_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceAttrSetattrAPIRequest.go b/model/campus/AlibabaCampusSpaceAttrSetattrAPIRequest.go new file mode 100644 index 0000000000..46d2394f4a --- /dev/null +++ b/model/campus/AlibabaCampusSpaceAttrSetattrAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增业务属性实例接口 API请求 +alibaba.campus.space.attr.setattr + +新增业务属性实例接口 +*/ +type AlibabaCampusSpaceAttrSetattrAPIRequest struct { + model.Params + // 操作用户上下文 + _context *WorkBenchContext + // 业务属性实例集合 + _list []TypeAttrInstanceRequest +} + +// 初始化AlibabaCampusSpaceAttrSetattrAPIRequest对象 +func NewAlibabaCampusSpaceAttrSetattrRequest() *AlibabaCampusSpaceAttrSetattrAPIRequest{ + return &AlibabaCampusSpaceAttrSetattrAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceAttrSetattrAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.attr.setattr" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceAttrSetattrAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Context Setter +// 操作用户上下文 +func (r *AlibabaCampusSpaceAttrSetattrAPIRequest) SetContext(_context *WorkBenchContext) error { + r._context = _context + r.Set("context", _context) + return nil +} + +// Context Getter +func (r AlibabaCampusSpaceAttrSetattrAPIRequest) GetContext() *WorkBenchContext { + return r._context +} +// List Setter +// 业务属性实例集合 +func (r *AlibabaCampusSpaceAttrSetattrAPIRequest) SetList(_list []TypeAttrInstanceRequest) error { + r._list = _list + r.Set("list", _list) + return nil +} + +// List Getter +func (r AlibabaCampusSpaceAttrSetattrAPIRequest) GetList() []TypeAttrInstanceRequest { + return r._list +} diff --git a/model/campus/AlibabaCampusSpaceAttrSetattrAPIResponse.go b/model/campus/AlibabaCampusSpaceAttrSetattrAPIResponse.go new file mode 100644 index 0000000000..4447d06e56 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceAttrSetattrAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增业务属性实例接口 API返回值 +alibaba.campus.space.attr.setattr + +新增业务属性实例接口 +*/ +type AlibabaCampusSpaceAttrSetattrAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceAttrSetattrAPIResponseModel +} + +// 新增业务属性实例接口 成功返回结果 +type AlibabaCampusSpaceAttrSetattrAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_attr_setattr_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceAttrSetattrResponse.go b/model/campus/AlibabaCampusSpaceAttrSetattrResponse.go deleted file mode 100644 index c51533c7a9..0000000000 --- a/model/campus/AlibabaCampusSpaceAttrSetattrResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增业务属性实例接口 API返回值 -alibaba.campus.space.attr.setattr - -新增业务属性实例接口 -*/ -type AlibabaCampusSpaceAttrSetattrAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceAttrSetattrResponse -} - -// 新增业务属性实例接口 成功返回结果 -type AlibabaCampusSpaceAttrSetattrResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_attr_setattr_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceBuildingGetbycampusidAPIRequest.go b/model/campus/AlibabaCampusSpaceBuildingGetbycampusidAPIRequest.go new file mode 100644 index 0000000000..69737fde81 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceBuildingGetbycampusidAPIRequest.go @@ -0,0 +1,68 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据园区ID获取楼宇 API请求 +alibaba.campus.space.building.getbycampusid + +根据园区ID获取楼宇 +HSF接口名称:com.alibaba.campus.api.space.service.top.BuildingApiTopService +HSF方法名称:getBuildingList +*/ +type AlibabaCampusSpaceBuildingGetbycampusidAPIRequest struct { + model.Params + // 系统自动生成 + _param0 *WorkBenchContext + // 园区封装 + _param1 *BuildingQuery +} + +// 初始化AlibabaCampusSpaceBuildingGetbycampusidAPIRequest对象 +func NewAlibabaCampusSpaceBuildingGetbycampusidRequest() *AlibabaCampusSpaceBuildingGetbycampusidAPIRequest{ + return &AlibabaCampusSpaceBuildingGetbycampusidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceBuildingGetbycampusidAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.building.getbycampusid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceBuildingGetbycampusidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 系统自动生成 +func (r *AlibabaCampusSpaceBuildingGetbycampusidAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusSpaceBuildingGetbycampusidAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} +// Param1 Setter +// 园区封装 +func (r *AlibabaCampusSpaceBuildingGetbycampusidAPIRequest) SetParam1(_param1 *BuildingQuery) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaCampusSpaceBuildingGetbycampusidAPIRequest) GetParam1() *BuildingQuery { + return r._param1 +} diff --git a/model/campus/AlibabaCampusSpaceBuildingGetbycampusidAPIResponse.go b/model/campus/AlibabaCampusSpaceBuildingGetbycampusidAPIResponse.go new file mode 100644 index 0000000000..64d5fe864e --- /dev/null +++ b/model/campus/AlibabaCampusSpaceBuildingGetbycampusidAPIResponse.go @@ -0,0 +1,29 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据园区ID获取楼宇 API返回值 +alibaba.campus.space.building.getbycampusid + +根据园区ID获取楼宇 +HSF接口名称:com.alibaba.campus.api.space.service.top.BuildingApiTopService +HSF方法名称:getBuildingList +*/ +type AlibabaCampusSpaceBuildingGetbycampusidAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceBuildingGetbycampusidAPIResponseModel +} + +// 根据园区ID获取楼宇 成功返回结果 +type AlibabaCampusSpaceBuildingGetbycampusidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_building_getbycampusid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceBuildingGetbycampusidResponse.go b/model/campus/AlibabaCampusSpaceBuildingGetbycampusidResponse.go deleted file mode 100644 index e3504c3899..0000000000 --- a/model/campus/AlibabaCampusSpaceBuildingGetbycampusidResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据园区ID获取楼宇 API返回值 -alibaba.campus.space.building.getbycampusid - -根据园区ID获取楼宇 -HSF接口名称:com.alibaba.campus.api.space.service.top.BuildingApiTopService -HSF方法名称:getBuildingList -*/ -type AlibabaCampusSpaceBuildingGetbycampusidAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceBuildingGetbycampusidResponse -} - -// 根据园区ID获取楼宇 成功返回结果 -type AlibabaCampusSpaceBuildingGetbycampusidResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_building_getbycampusid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceCampusGetbyidAPIRequest.go b/model/campus/AlibabaCampusSpaceCampusGetbyidAPIRequest.go new file mode 100644 index 0000000000..856d20a36e --- /dev/null +++ b/model/campus/AlibabaCampusSpaceCampusGetbyidAPIRequest.go @@ -0,0 +1,68 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据园区id获取园区信息 API请求 +alibaba.campus.space.campus.getbyid + +根据园区id获取园区信息 +HSF接口名称:com.alibaba.campus.api.space.service.top.CampusApiTopService +HSF方法名称:getCampusById +*/ +type AlibabaCampusSpaceCampusGetbyidAPIRequest struct { + model.Params + // 园区ID + _param0 *WorkBenchContext + // 园区ID + _param1 int64 +} + +// 初始化AlibabaCampusSpaceCampusGetbyidAPIRequest对象 +func NewAlibabaCampusSpaceCampusGetbyidRequest() *AlibabaCampusSpaceCampusGetbyidAPIRequest{ + return &AlibabaCampusSpaceCampusGetbyidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceCampusGetbyidAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.campus.getbyid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceCampusGetbyidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 园区ID +func (r *AlibabaCampusSpaceCampusGetbyidAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusSpaceCampusGetbyidAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} +// Param1 Setter +// 园区ID +func (r *AlibabaCampusSpaceCampusGetbyidAPIRequest) SetParam1(_param1 int64) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaCampusSpaceCampusGetbyidAPIRequest) GetParam1() int64 { + return r._param1 +} diff --git a/model/campus/AlibabaCampusSpaceCampusGetbyidAPIResponse.go b/model/campus/AlibabaCampusSpaceCampusGetbyidAPIResponse.go new file mode 100644 index 0000000000..6c6c35e667 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceCampusGetbyidAPIResponse.go @@ -0,0 +1,29 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据园区id获取园区信息 API返回值 +alibaba.campus.space.campus.getbyid + +根据园区id获取园区信息 +HSF接口名称:com.alibaba.campus.api.space.service.top.CampusApiTopService +HSF方法名称:getCampusById +*/ +type AlibabaCampusSpaceCampusGetbyidAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceCampusGetbyidAPIResponseModel +} + +// 根据园区id获取园区信息 成功返回结果 +type AlibabaCampusSpaceCampusGetbyidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_campus_getbyid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceCampusGetbyidResponse.go b/model/campus/AlibabaCampusSpaceCampusGetbyidResponse.go deleted file mode 100644 index 08efa47c3e..0000000000 --- a/model/campus/AlibabaCampusSpaceCampusGetbyidResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据园区id获取园区信息 API返回值 -alibaba.campus.space.campus.getbyid - -根据园区id获取园区信息 -HSF接口名称:com.alibaba.campus.api.space.service.top.CampusApiTopService -HSF方法名称:getCampusById -*/ -type AlibabaCampusSpaceCampusGetbyidAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceCampusGetbyidResponse -} - -// 根据园区id获取园区信息 成功返回结果 -type AlibabaCampusSpaceCampusGetbyidResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_campus_getbyid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceFloorGetbybuildingidAPIRequest.go b/model/campus/AlibabaCampusSpaceFloorGetbybuildingidAPIRequest.go new file mode 100644 index 0000000000..c20ecbe50e --- /dev/null +++ b/model/campus/AlibabaCampusSpaceFloorGetbybuildingidAPIRequest.go @@ -0,0 +1,68 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据楼宇ID获取楼层 API请求 +alibaba.campus.space.floor.getbybuildingid + +根据楼宇ID获取楼层 +HSF接口名称:com.alibaba.campus.api.space.service.top.FloorApiTopService +HSF方法名称:getFloorList +*/ +type AlibabaCampusSpaceFloorGetbybuildingidAPIRequest struct { + model.Params + // 系统自动生成 + _param0 *WorkBenchContext + // 楼宇iD封装 + _param1 *FloorQuery +} + +// 初始化AlibabaCampusSpaceFloorGetbybuildingidAPIRequest对象 +func NewAlibabaCampusSpaceFloorGetbybuildingidRequest() *AlibabaCampusSpaceFloorGetbybuildingidAPIRequest{ + return &AlibabaCampusSpaceFloorGetbybuildingidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceFloorGetbybuildingidAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.floor.getbybuildingid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceFloorGetbybuildingidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 系统自动生成 +func (r *AlibabaCampusSpaceFloorGetbybuildingidAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusSpaceFloorGetbybuildingidAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} +// Param1 Setter +// 楼宇iD封装 +func (r *AlibabaCampusSpaceFloorGetbybuildingidAPIRequest) SetParam1(_param1 *FloorQuery) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaCampusSpaceFloorGetbybuildingidAPIRequest) GetParam1() *FloorQuery { + return r._param1 +} diff --git a/model/campus/AlibabaCampusSpaceFloorGetbybuildingidAPIResponse.go b/model/campus/AlibabaCampusSpaceFloorGetbybuildingidAPIResponse.go new file mode 100644 index 0000000000..7eef0a29ad --- /dev/null +++ b/model/campus/AlibabaCampusSpaceFloorGetbybuildingidAPIResponse.go @@ -0,0 +1,29 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据楼宇ID获取楼层 API返回值 +alibaba.campus.space.floor.getbybuildingid + +根据楼宇ID获取楼层 +HSF接口名称:com.alibaba.campus.api.space.service.top.FloorApiTopService +HSF方法名称:getFloorList +*/ +type AlibabaCampusSpaceFloorGetbybuildingidAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceFloorGetbybuildingidAPIResponseModel +} + +// 根据楼宇ID获取楼层 成功返回结果 +type AlibabaCampusSpaceFloorGetbybuildingidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_floor_getbybuildingid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceFloorGetbybuildingidResponse.go b/model/campus/AlibabaCampusSpaceFloorGetbybuildingidResponse.go deleted file mode 100644 index 5ac5627234..0000000000 --- a/model/campus/AlibabaCampusSpaceFloorGetbybuildingidResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据楼宇ID获取楼层 API返回值 -alibaba.campus.space.floor.getbybuildingid - -根据楼宇ID获取楼层 -HSF接口名称:com.alibaba.campus.api.space.service.top.FloorApiTopService -HSF方法名称:getFloorList -*/ -type AlibabaCampusSpaceFloorGetbybuildingidAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceFloorGetbybuildingidResponse -} - -// 根据楼宇ID获取楼层 成功返回结果 -type AlibabaCampusSpaceFloorGetbybuildingidResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_floor_getbybuildingid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceFloorGetbyidAPIRequest.go b/model/campus/AlibabaCampusSpaceFloorGetbyidAPIRequest.go new file mode 100644 index 0000000000..0b83ff60f1 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceFloorGetbyidAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据id获取楼层 API请求 +alibaba.campus.space.floor.getbyid + +根据id获取楼层 +*/ +type AlibabaCampusSpaceFloorGetbyidAPIRequest struct { + model.Params + // 环境上下文 + _context *WorkBenchContext + // 楼层id + _id int64 +} + +// 初始化AlibabaCampusSpaceFloorGetbyidAPIRequest对象 +func NewAlibabaCampusSpaceFloorGetbyidRequest() *AlibabaCampusSpaceFloorGetbyidAPIRequest{ + return &AlibabaCampusSpaceFloorGetbyidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceFloorGetbyidAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.floor.getbyid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceFloorGetbyidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Context Setter +// 环境上下文 +func (r *AlibabaCampusSpaceFloorGetbyidAPIRequest) SetContext(_context *WorkBenchContext) error { + r._context = _context + r.Set("context", _context) + return nil +} + +// Context Getter +func (r AlibabaCampusSpaceFloorGetbyidAPIRequest) GetContext() *WorkBenchContext { + return r._context +} +// Id Setter +// 楼层id +func (r *AlibabaCampusSpaceFloorGetbyidAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaCampusSpaceFloorGetbyidAPIRequest) GetId() int64 { + return r._id +} diff --git a/model/campus/AlibabaCampusSpaceFloorGetbyidAPIResponse.go b/model/campus/AlibabaCampusSpaceFloorGetbyidAPIResponse.go new file mode 100644 index 0000000000..a8f84f7492 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceFloorGetbyidAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据id获取楼层 API返回值 +alibaba.campus.space.floor.getbyid + +根据id获取楼层 +*/ +type AlibabaCampusSpaceFloorGetbyidAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceFloorGetbyidAPIResponseModel +} + +// 根据id获取楼层 成功返回结果 +type AlibabaCampusSpaceFloorGetbyidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_floor_getbyid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceFloorGetbyidResponse.go b/model/campus/AlibabaCampusSpaceFloorGetbyidResponse.go deleted file mode 100644 index dc5370aa3d..0000000000 --- a/model/campus/AlibabaCampusSpaceFloorGetbyidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据id获取楼层 API返回值 -alibaba.campus.space.floor.getbyid - -根据id获取楼层 -*/ -type AlibabaCampusSpaceFloorGetbyidAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceFloorGetbyidResponse -} - -// 根据id获取楼层 成功返回结果 -type AlibabaCampusSpaceFloorGetbyidResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_floor_getbyid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceGetbyidsAPIRequest.go b/model/campus/AlibabaCampusSpaceGetbyidsAPIRequest.go new file mode 100644 index 0000000000..523edd21b6 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceGetbyidsAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据ids和类型查询空间列表 API请求 +alibaba.campus.space.getbyids + +根据ids和类型查询空间列表 +*/ +type AlibabaCampusSpaceGetbyidsAPIRequest struct { + model.Params + // 上下文 + _context *WorkBenchContext + // 查询条件 + _query *SpaceIdsQuery +} + +// 初始化AlibabaCampusSpaceGetbyidsAPIRequest对象 +func NewAlibabaCampusSpaceGetbyidsRequest() *AlibabaCampusSpaceGetbyidsAPIRequest{ + return &AlibabaCampusSpaceGetbyidsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceGetbyidsAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.getbyids" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceGetbyidsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Context Setter +// 上下文 +func (r *AlibabaCampusSpaceGetbyidsAPIRequest) SetContext(_context *WorkBenchContext) error { + r._context = _context + r.Set("context", _context) + return nil +} + +// Context Getter +func (r AlibabaCampusSpaceGetbyidsAPIRequest) GetContext() *WorkBenchContext { + return r._context +} +// Query Setter +// 查询条件 +func (r *AlibabaCampusSpaceGetbyidsAPIRequest) SetQuery(_query *SpaceIdsQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaCampusSpaceGetbyidsAPIRequest) GetQuery() *SpaceIdsQuery { + return r._query +} diff --git a/model/campus/AlibabaCampusSpaceGetbyidsAPIResponse.go b/model/campus/AlibabaCampusSpaceGetbyidsAPIResponse.go new file mode 100644 index 0000000000..097011b0db --- /dev/null +++ b/model/campus/AlibabaCampusSpaceGetbyidsAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据ids和类型查询空间列表 API返回值 +alibaba.campus.space.getbyids + +根据ids和类型查询空间列表 +*/ +type AlibabaCampusSpaceGetbyidsAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceGetbyidsAPIResponseModel +} + +// 根据ids和类型查询空间列表 成功返回结果 +type AlibabaCampusSpaceGetbyidsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_getbyids_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 外卖订单查询结果 + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceGetbyidsResponse.go b/model/campus/AlibabaCampusSpaceGetbyidsResponse.go deleted file mode 100644 index 345f0683ba..0000000000 --- a/model/campus/AlibabaCampusSpaceGetbyidsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据ids和类型查询空间列表 API返回值 -alibaba.campus.space.getbyids - -根据ids和类型查询空间列表 -*/ -type AlibabaCampusSpaceGetbyidsAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceGetbyidsResponse -} - -// 根据ids和类型查询空间列表 成功返回结果 -type AlibabaCampusSpaceGetbyidsResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_getbyids_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 外卖订单查询结果 - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceGroupGetbyidAPIRequest.go b/model/campus/AlibabaCampusSpaceGroupGetbyidAPIRequest.go new file mode 100644 index 0000000000..843ff1ac4a --- /dev/null +++ b/model/campus/AlibabaCampusSpaceGroupGetbyidAPIRequest.go @@ -0,0 +1,68 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据分组ID查询相关的空间分组信息 API请求 +alibaba.campus.space.group.getbyid + +根据分组ID查询相关的空间分组信息 +HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceGroupApiTopService +HSF方法名称:getById +*/ +type AlibabaCampusSpaceGroupGetbyidAPIRequest struct { + model.Params + // 用户环境 + _param0 *WorkBenchContext + // 分组ID + _param1 int64 +} + +// 初始化AlibabaCampusSpaceGroupGetbyidAPIRequest对象 +func NewAlibabaCampusSpaceGroupGetbyidRequest() *AlibabaCampusSpaceGroupGetbyidAPIRequest{ + return &AlibabaCampusSpaceGroupGetbyidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceGroupGetbyidAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.group.getbyid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceGroupGetbyidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 用户环境 +func (r *AlibabaCampusSpaceGroupGetbyidAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusSpaceGroupGetbyidAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} +// Param1 Setter +// 分组ID +func (r *AlibabaCampusSpaceGroupGetbyidAPIRequest) SetParam1(_param1 int64) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaCampusSpaceGroupGetbyidAPIRequest) GetParam1() int64 { + return r._param1 +} diff --git a/model/campus/AlibabaCampusSpaceGroupGetbyidAPIResponse.go b/model/campus/AlibabaCampusSpaceGroupGetbyidAPIResponse.go new file mode 100644 index 0000000000..ded32a8298 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceGroupGetbyidAPIResponse.go @@ -0,0 +1,29 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据分组ID查询相关的空间分组信息 API返回值 +alibaba.campus.space.group.getbyid + +根据分组ID查询相关的空间分组信息 +HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceGroupApiTopService +HSF方法名称:getById +*/ +type AlibabaCampusSpaceGroupGetbyidAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceGroupGetbyidAPIResponseModel +} + +// 根据分组ID查询相关的空间分组信息 成功返回结果 +type AlibabaCampusSpaceGroupGetbyidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_group_getbyid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceGroupGetbyidResponse.go b/model/campus/AlibabaCampusSpaceGroupGetbyidResponse.go deleted file mode 100644 index fa4ea6804b..0000000000 --- a/model/campus/AlibabaCampusSpaceGroupGetbyidResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据分组ID查询相关的空间分组信息 API返回值 -alibaba.campus.space.group.getbyid - -根据分组ID查询相关的空间分组信息 -HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceGroupApiTopService -HSF方法名称:getById -*/ -type AlibabaCampusSpaceGroupGetbyidAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceGroupGetbyidResponse -} - -// 根据分组ID查询相关的空间分组信息 成功返回结果 -type AlibabaCampusSpaceGroupGetbyidResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_group_getbyid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceGroupGetlistAPIRequest.go b/model/campus/AlibabaCampusSpaceGroupGetlistAPIRequest.go new file mode 100644 index 0000000000..58094a1028 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceGroupGetlistAPIRequest.go @@ -0,0 +1,68 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +多条件查询空间分组信息 API请求 +alibaba.campus.space.group.getlist + +多条件查询空间分组信息 +HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceGroupApiTopService +HSF方法名称:getList +*/ +type AlibabaCampusSpaceGroupGetlistAPIRequest struct { + model.Params + // 查询条件封装 + _param0 *WorkBenchContext + // 查询参数封装 + _param1 *SpaceGroupQuery +} + +// 初始化AlibabaCampusSpaceGroupGetlistAPIRequest对象 +func NewAlibabaCampusSpaceGroupGetlistRequest() *AlibabaCampusSpaceGroupGetlistAPIRequest{ + return &AlibabaCampusSpaceGroupGetlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceGroupGetlistAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.group.getlist" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceGroupGetlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 查询条件封装 +func (r *AlibabaCampusSpaceGroupGetlistAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusSpaceGroupGetlistAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} +// Param1 Setter +// 查询参数封装 +func (r *AlibabaCampusSpaceGroupGetlistAPIRequest) SetParam1(_param1 *SpaceGroupQuery) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaCampusSpaceGroupGetlistAPIRequest) GetParam1() *SpaceGroupQuery { + return r._param1 +} diff --git a/model/campus/AlibabaCampusSpaceGroupGetlistAPIResponse.go b/model/campus/AlibabaCampusSpaceGroupGetlistAPIResponse.go new file mode 100644 index 0000000000..5a5e7181db --- /dev/null +++ b/model/campus/AlibabaCampusSpaceGroupGetlistAPIResponse.go @@ -0,0 +1,29 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +多条件查询空间分组信息 API返回值 +alibaba.campus.space.group.getlist + +多条件查询空间分组信息 +HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceGroupApiTopService +HSF方法名称:getList +*/ +type AlibabaCampusSpaceGroupGetlistAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceGroupGetlistAPIResponseModel +} + +// 多条件查询空间分组信息 成功返回结果 +type AlibabaCampusSpaceGroupGetlistAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_group_getlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceGroupGetlistResponse.go b/model/campus/AlibabaCampusSpaceGroupGetlistResponse.go deleted file mode 100644 index bbceb96450..0000000000 --- a/model/campus/AlibabaCampusSpaceGroupGetlistResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -多条件查询空间分组信息 API返回值 -alibaba.campus.space.group.getlist - -多条件查询空间分组信息 -HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceGroupApiTopService -HSF方法名称:getList -*/ -type AlibabaCampusSpaceGroupGetlistAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceGroupGetlistResponse -} - -// 多条件查询空间分组信息 成功返回结果 -type AlibabaCampusSpaceGroupGetlistResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_group_getlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIRequest.go b/model/campus/AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIRequest.go new file mode 100644 index 0000000000..ca45ed1e44 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIRequest.go @@ -0,0 +1,68 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据园区id及TypeId获取空间分组 API请求 +alibaba.campus.space.group.getlistbycampusandtype + +根据园区id及TypeId获取空间分组 +HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceGroupApiTopService +HSF方法名称:getListByCampusAndType +*/ +type AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIRequest struct { + model.Params + // 系统自动生成 + _param0 *WorkBenchContext + // 查询参数封装 + _param1 *SpaceGroupQuery +} + +// 初始化AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIRequest对象 +func NewAlibabaCampusSpaceGroupGetlistbycampusandtypeRequest() *AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIRequest{ + return &AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.group.getlistbycampusandtype" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 系统自动生成 +func (r *AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} +// Param1 Setter +// 查询参数封装 +func (r *AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIRequest) SetParam1(_param1 *SpaceGroupQuery) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIRequest) GetParam1() *SpaceGroupQuery { + return r._param1 +} diff --git a/model/campus/AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIResponse.go b/model/campus/AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIResponse.go new file mode 100644 index 0000000000..d72260188c --- /dev/null +++ b/model/campus/AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIResponse.go @@ -0,0 +1,29 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据园区id及TypeId获取空间分组 API返回值 +alibaba.campus.space.group.getlistbycampusandtype + +根据园区id及TypeId获取空间分组 +HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceGroupApiTopService +HSF方法名称:getListByCampusAndType +*/ +type AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIResponseModel +} + +// 根据园区id及TypeId获取空间分组 成功返回结果 +type AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_group_getlistbycampusandtype_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceGroupGetlistbycampusandtypeResponse.go b/model/campus/AlibabaCampusSpaceGroupGetlistbycampusandtypeResponse.go deleted file mode 100644 index 7ae1f63a64..0000000000 --- a/model/campus/AlibabaCampusSpaceGroupGetlistbycampusandtypeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据园区id及TypeId获取空间分组 API返回值 -alibaba.campus.space.group.getlistbycampusandtype - -根据园区id及TypeId获取空间分组 -HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceGroupApiTopService -HSF方法名称:getListByCampusAndType -*/ -type AlibabaCampusSpaceGroupGetlistbycampusandtypeAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceGroupGetlistbycampusandtypeResponse -} - -// 根据园区id及TypeId获取空间分组 成功返回结果 -type AlibabaCampusSpaceGroupGetlistbycampusandtypeResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_group_getlistbycampusandtype_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIRequest.go b/model/campus/AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIRequest.go new file mode 100644 index 0000000000..636560e71b --- /dev/null +++ b/model/campus/AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询空间分组业务属性 API请求 +alibaba.campus.space.group.getspacegrouplistwithattr + +分页查询空间分组业务属性 +*/ +type AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIRequest struct { + model.Params + // 操作用户上下文 + _context *WorkBenchContext + // 查询对象 + _groupQuery *SpaceGroupQuery +} + +// 初始化AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIRequest对象 +func NewAlibabaCampusSpaceGroupGetspacegrouplistwithattrRequest() *AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIRequest{ + return &AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.group.getspacegrouplistwithattr" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Context Setter +// 操作用户上下文 +func (r *AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIRequest) SetContext(_context *WorkBenchContext) error { + r._context = _context + r.Set("context", _context) + return nil +} + +// Context Getter +func (r AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIRequest) GetContext() *WorkBenchContext { + return r._context +} +// GroupQuery Setter +// 查询对象 +func (r *AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIRequest) SetGroupQuery(_groupQuery *SpaceGroupQuery) error { + r._groupQuery = _groupQuery + r.Set("group_query", _groupQuery) + return nil +} + +// GroupQuery Getter +func (r AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIRequest) GetGroupQuery() *SpaceGroupQuery { + return r._groupQuery +} diff --git a/model/campus/AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIResponse.go b/model/campus/AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIResponse.go new file mode 100644 index 0000000000..a368470978 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询空间分组业务属性 API返回值 +alibaba.campus.space.group.getspacegrouplistwithattr + +分页查询空间分组业务属性 +*/ +type AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIResponseModel +} + +// 分页查询空间分组业务属性 成功返回结果 +type AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_group_getspacegrouplistwithattr_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceGroupGetspacegrouplistwithattrResponse.go b/model/campus/AlibabaCampusSpaceGroupGetspacegrouplistwithattrResponse.go deleted file mode 100644 index cf8dcd1fd8..0000000000 --- a/model/campus/AlibabaCampusSpaceGroupGetspacegrouplistwithattrResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页查询空间分组业务属性 API返回值 -alibaba.campus.space.group.getspacegrouplistwithattr - -分页查询空间分组业务属性 -*/ -type AlibabaCampusSpaceGroupGetspacegrouplistwithattrAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceGroupGetspacegrouplistwithattrResponse -} - -// 分页查询空间分组业务属性 成功返回结果 -type AlibabaCampusSpaceGroupGetspacegrouplistwithattrResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_group_getspacegrouplistwithattr_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceGroupGetspacegroupwithattrAPIRequest.go b/model/campus/AlibabaCampusSpaceGroupGetspacegroupwithattrAPIRequest.go new file mode 100644 index 0000000000..96d17aa4c3 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceGroupGetspacegroupwithattrAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +空间分组id查业务属性实例 API请求 +alibaba.campus.space.group.getspacegroupwithattr + +空间分组id查业务属性实例 +*/ +type AlibabaCampusSpaceGroupGetspacegroupwithattrAPIRequest struct { + model.Params + // 操作用户上下文 + _context *WorkBenchContext + // 空间单元id + _groupId int64 +} + +// 初始化AlibabaCampusSpaceGroupGetspacegroupwithattrAPIRequest对象 +func NewAlibabaCampusSpaceGroupGetspacegroupwithattrRequest() *AlibabaCampusSpaceGroupGetspacegroupwithattrAPIRequest{ + return &AlibabaCampusSpaceGroupGetspacegroupwithattrAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceGroupGetspacegroupwithattrAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.group.getspacegroupwithattr" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceGroupGetspacegroupwithattrAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Context Setter +// 操作用户上下文 +func (r *AlibabaCampusSpaceGroupGetspacegroupwithattrAPIRequest) SetContext(_context *WorkBenchContext) error { + r._context = _context + r.Set("context", _context) + return nil +} + +// Context Getter +func (r AlibabaCampusSpaceGroupGetspacegroupwithattrAPIRequest) GetContext() *WorkBenchContext { + return r._context +} +// GroupId Setter +// 空间单元id +func (r *AlibabaCampusSpaceGroupGetspacegroupwithattrAPIRequest) SetGroupId(_groupId int64) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r AlibabaCampusSpaceGroupGetspacegroupwithattrAPIRequest) GetGroupId() int64 { + return r._groupId +} diff --git a/model/campus/AlibabaCampusSpaceGroupGetspacegroupwithattrAPIResponse.go b/model/campus/AlibabaCampusSpaceGroupGetspacegroupwithattrAPIResponse.go new file mode 100644 index 0000000000..b4fdc37c81 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceGroupGetspacegroupwithattrAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +空间分组id查业务属性实例 API返回值 +alibaba.campus.space.group.getspacegroupwithattr + +空间分组id查业务属性实例 +*/ +type AlibabaCampusSpaceGroupGetspacegroupwithattrAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceGroupGetspacegroupwithattrAPIResponseModel +} + +// 空间分组id查业务属性实例 成功返回结果 +type AlibabaCampusSpaceGroupGetspacegroupwithattrAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_group_getspacegroupwithattr_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceGroupGetspacegroupwithattrResponse.go b/model/campus/AlibabaCampusSpaceGroupGetspacegroupwithattrResponse.go deleted file mode 100644 index 50b7afd27c..0000000000 --- a/model/campus/AlibabaCampusSpaceGroupGetspacegroupwithattrResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -空间分组id查业务属性实例 API返回值 -alibaba.campus.space.group.getspacegroupwithattr - -空间分组id查业务属性实例 -*/ -type AlibabaCampusSpaceGroupGetspacegroupwithattrAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceGroupGetspacegroupwithattrResponse -} - -// 空间分组id查业务属性实例 成功返回结果 -type AlibabaCampusSpaceGroupGetspacegroupwithattrResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_group_getspacegroupwithattr_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceTypeGetbycodeAPIRequest.go b/model/campus/AlibabaCampusSpaceTypeGetbycodeAPIRequest.go new file mode 100644 index 0000000000..08600edc28 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceTypeGetbycodeAPIRequest.go @@ -0,0 +1,68 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据类别编码查询类别 API请求 +alibaba.campus.space.type.getbycode + +根据类别编码查询类别 +HSF接口名称:com.alibaba.campus.space.api.top.SpaceTypeApiTopService +HSF方法名称:getByCode +*/ +type AlibabaCampusSpaceTypeGetbycodeAPIRequest struct { + model.Params + // 查询条件封装 + _param0 *WorkBenchContext + // 空间类别编码 + _typeCode string +} + +// 初始化AlibabaCampusSpaceTypeGetbycodeAPIRequest对象 +func NewAlibabaCampusSpaceTypeGetbycodeRequest() *AlibabaCampusSpaceTypeGetbycodeAPIRequest{ + return &AlibabaCampusSpaceTypeGetbycodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceTypeGetbycodeAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.type.getbycode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceTypeGetbycodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 查询条件封装 +func (r *AlibabaCampusSpaceTypeGetbycodeAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusSpaceTypeGetbycodeAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} +// TypeCode Setter +// 空间类别编码 +func (r *AlibabaCampusSpaceTypeGetbycodeAPIRequest) SetTypeCode(_typeCode string) error { + r._typeCode = _typeCode + r.Set("type_code", _typeCode) + return nil +} + +// TypeCode Getter +func (r AlibabaCampusSpaceTypeGetbycodeAPIRequest) GetTypeCode() string { + return r._typeCode +} diff --git a/model/campus/AlibabaCampusSpaceTypeGetbycodeAPIResponse.go b/model/campus/AlibabaCampusSpaceTypeGetbycodeAPIResponse.go new file mode 100644 index 0000000000..d4b8cf0ed2 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceTypeGetbycodeAPIResponse.go @@ -0,0 +1,29 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据类别编码查询类别 API返回值 +alibaba.campus.space.type.getbycode + +根据类别编码查询类别 +HSF接口名称:com.alibaba.campus.space.api.top.SpaceTypeApiTopService +HSF方法名称:getByCode +*/ +type AlibabaCampusSpaceTypeGetbycodeAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceTypeGetbycodeAPIResponseModel +} + +// 根据类别编码查询类别 成功返回结果 +type AlibabaCampusSpaceTypeGetbycodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_type_getbycode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceTypeGetbycodeResponse.go b/model/campus/AlibabaCampusSpaceTypeGetbycodeResponse.go deleted file mode 100644 index cbb65f70ed..0000000000 --- a/model/campus/AlibabaCampusSpaceTypeGetbycodeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据类别编码查询类别 API返回值 -alibaba.campus.space.type.getbycode - -根据类别编码查询类别 -HSF接口名称:com.alibaba.campus.space.api.top.SpaceTypeApiTopService -HSF方法名称:getByCode -*/ -type AlibabaCampusSpaceTypeGetbycodeAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceTypeGetbycodeResponse -} - -// 根据类别编码查询类别 成功返回结果 -type AlibabaCampusSpaceTypeGetbycodeResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_type_getbycode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceTypeGetpageresultAPIRequest.go b/model/campus/AlibabaCampusSpaceTypeGetpageresultAPIRequest.go new file mode 100644 index 0000000000..98343c8816 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceTypeGetpageresultAPIRequest.go @@ -0,0 +1,68 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询空间类别接口 API请求 +alibaba.campus.space.type.getpageresult + +分页查询空间类别接口 +HSF接口名称:com.alibaba.campus.space.api.top.SpaceTypeApiTopService +HSF方法名称:getPageResult +*/ +type AlibabaCampusSpaceTypeGetpageresultAPIRequest struct { + model.Params + // 环境参数 + _param0 *WorkBenchContext + // 查询参数 + _param1 *SpaceTypeQuery +} + +// 初始化AlibabaCampusSpaceTypeGetpageresultAPIRequest对象 +func NewAlibabaCampusSpaceTypeGetpageresultRequest() *AlibabaCampusSpaceTypeGetpageresultAPIRequest{ + return &AlibabaCampusSpaceTypeGetpageresultAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceTypeGetpageresultAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.type.getpageresult" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceTypeGetpageresultAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 环境参数 +func (r *AlibabaCampusSpaceTypeGetpageresultAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusSpaceTypeGetpageresultAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} +// Param1 Setter +// 查询参数 +func (r *AlibabaCampusSpaceTypeGetpageresultAPIRequest) SetParam1(_param1 *SpaceTypeQuery) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaCampusSpaceTypeGetpageresultAPIRequest) GetParam1() *SpaceTypeQuery { + return r._param1 +} diff --git a/model/campus/AlibabaCampusSpaceTypeGetpageresultAPIResponse.go b/model/campus/AlibabaCampusSpaceTypeGetpageresultAPIResponse.go new file mode 100644 index 0000000000..bdafced40f --- /dev/null +++ b/model/campus/AlibabaCampusSpaceTypeGetpageresultAPIResponse.go @@ -0,0 +1,29 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询空间类别接口 API返回值 +alibaba.campus.space.type.getpageresult + +分页查询空间类别接口 +HSF接口名称:com.alibaba.campus.space.api.top.SpaceTypeApiTopService +HSF方法名称:getPageResult +*/ +type AlibabaCampusSpaceTypeGetpageresultAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceTypeGetpageresultAPIResponseModel +} + +// 分页查询空间类别接口 成功返回结果 +type AlibabaCampusSpaceTypeGetpageresultAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_type_getpageresult_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceTypeGetpageresultResponse.go b/model/campus/AlibabaCampusSpaceTypeGetpageresultResponse.go deleted file mode 100644 index f61ce3f1e5..0000000000 --- a/model/campus/AlibabaCampusSpaceTypeGetpageresultResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页查询空间类别接口 API返回值 -alibaba.campus.space.type.getpageresult - -分页查询空间类别接口 -HSF接口名称:com.alibaba.campus.space.api.top.SpaceTypeApiTopService -HSF方法名称:getPageResult -*/ -type AlibabaCampusSpaceTypeGetpageresultAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceTypeGetpageresultResponse -} - -// 分页查询空间类别接口 成功返回结果 -type AlibabaCampusSpaceTypeGetpageresultResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_type_getpageresult_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceUnitGetbyidAPIRequest.go b/model/campus/AlibabaCampusSpaceUnitGetbyidAPIRequest.go new file mode 100644 index 0000000000..7d55eb740a --- /dev/null +++ b/model/campus/AlibabaCampusSpaceUnitGetbyidAPIRequest.go @@ -0,0 +1,68 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据ID查询指定空间单元信息 API请求 +alibaba.campus.space.unit.getbyid + +根据ID查询指定空间单元信息 +HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceUnitApiTopService +HSF方法名称:getById +*/ +type AlibabaCampusSpaceUnitGetbyidAPIRequest struct { + model.Params + // 空间单元ID + _param0 *WorkBenchContext + // 空间单元ID + _param1 int64 +} + +// 初始化AlibabaCampusSpaceUnitGetbyidAPIRequest对象 +func NewAlibabaCampusSpaceUnitGetbyidRequest() *AlibabaCampusSpaceUnitGetbyidAPIRequest{ + return &AlibabaCampusSpaceUnitGetbyidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceUnitGetbyidAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.unit.getbyid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceUnitGetbyidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 空间单元ID +func (r *AlibabaCampusSpaceUnitGetbyidAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusSpaceUnitGetbyidAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} +// Param1 Setter +// 空间单元ID +func (r *AlibabaCampusSpaceUnitGetbyidAPIRequest) SetParam1(_param1 int64) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaCampusSpaceUnitGetbyidAPIRequest) GetParam1() int64 { + return r._param1 +} diff --git a/model/campus/AlibabaCampusSpaceUnitGetbyidAPIResponse.go b/model/campus/AlibabaCampusSpaceUnitGetbyidAPIResponse.go new file mode 100644 index 0000000000..f3fcc173ae --- /dev/null +++ b/model/campus/AlibabaCampusSpaceUnitGetbyidAPIResponse.go @@ -0,0 +1,29 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据ID查询指定空间单元信息 API返回值 +alibaba.campus.space.unit.getbyid + +根据ID查询指定空间单元信息 +HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceUnitApiTopService +HSF方法名称:getById +*/ +type AlibabaCampusSpaceUnitGetbyidAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceUnitGetbyidAPIResponseModel +} + +// 根据ID查询指定空间单元信息 成功返回结果 +type AlibabaCampusSpaceUnitGetbyidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_unit_getbyid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceUnitGetbyidResponse.go b/model/campus/AlibabaCampusSpaceUnitGetbyidResponse.go deleted file mode 100644 index 362610805f..0000000000 --- a/model/campus/AlibabaCampusSpaceUnitGetbyidResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据ID查询指定空间单元信息 API返回值 -alibaba.campus.space.unit.getbyid - -根据ID查询指定空间单元信息 -HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceUnitApiTopService -HSF方法名称:getById -*/ -type AlibabaCampusSpaceUnitGetbyidAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceUnitGetbyidResponse -} - -// 根据ID查询指定空间单元信息 成功返回结果 -type AlibabaCampusSpaceUnitGetbyidResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_unit_getbyid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceUnitGetlistAPIRequest.go b/model/campus/AlibabaCampusSpaceUnitGetlistAPIRequest.go new file mode 100644 index 0000000000..274266a19d --- /dev/null +++ b/model/campus/AlibabaCampusSpaceUnitGetlistAPIRequest.go @@ -0,0 +1,68 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +多条件查询空间单元信息 API请求 +alibaba.campus.space.unit.getlist + +多条件查询空间单元信息 +HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceUnitApiTopService +HSF方法名称:getList +*/ +type AlibabaCampusSpaceUnitGetlistAPIRequest struct { + model.Params + // 查询条件封装 + _param0 *WorkBenchContext + // 查询参数封装 + _param1 *SpaceUnitQuery +} + +// 初始化AlibabaCampusSpaceUnitGetlistAPIRequest对象 +func NewAlibabaCampusSpaceUnitGetlistRequest() *AlibabaCampusSpaceUnitGetlistAPIRequest{ + return &AlibabaCampusSpaceUnitGetlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceUnitGetlistAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.unit.getlist" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceUnitGetlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 查询条件封装 +func (r *AlibabaCampusSpaceUnitGetlistAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusSpaceUnitGetlistAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} +// Param1 Setter +// 查询参数封装 +func (r *AlibabaCampusSpaceUnitGetlistAPIRequest) SetParam1(_param1 *SpaceUnitQuery) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaCampusSpaceUnitGetlistAPIRequest) GetParam1() *SpaceUnitQuery { + return r._param1 +} diff --git a/model/campus/AlibabaCampusSpaceUnitGetlistAPIResponse.go b/model/campus/AlibabaCampusSpaceUnitGetlistAPIResponse.go new file mode 100644 index 0000000000..1f75cc7a91 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceUnitGetlistAPIResponse.go @@ -0,0 +1,29 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +多条件查询空间单元信息 API返回值 +alibaba.campus.space.unit.getlist + +多条件查询空间单元信息 +HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceUnitApiTopService +HSF方法名称:getList +*/ +type AlibabaCampusSpaceUnitGetlistAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceUnitGetlistAPIResponseModel +} + +// 多条件查询空间单元信息 成功返回结果 +type AlibabaCampusSpaceUnitGetlistAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_unit_getlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // results + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceUnitGetlistResponse.go b/model/campus/AlibabaCampusSpaceUnitGetlistResponse.go deleted file mode 100644 index 6334ef462e..0000000000 --- a/model/campus/AlibabaCampusSpaceUnitGetlistResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -多条件查询空间单元信息 API返回值 -alibaba.campus.space.unit.getlist - -多条件查询空间单元信息 -HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceUnitApiTopService -HSF方法名称:getList -*/ -type AlibabaCampusSpaceUnitGetlistAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceUnitGetlistResponse -} - -// 多条件查询空间单元信息 成功返回结果 -type AlibabaCampusSpaceUnitGetlistResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_unit_getlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // results - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIRequest.go b/model/campus/AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIRequest.go new file mode 100644 index 0000000000..9fb2ff5064 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIRequest.go @@ -0,0 +1,68 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据园区id及TypeId获取空间单元 API请求 +alibaba.campus.space.unit.getlistbycampusandtype + +根据园区id及TypeId获取空间单元 +HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceUnitApiTopService +HSF方法名称:getListByCampusAndType +*/ +type AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIRequest struct { + model.Params + // 系统自动生成 + _param0 *WorkBenchContext + // 查询参数封装 + _param1 *SpaceUnitQuery +} + +// 初始化AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIRequest对象 +func NewAlibabaCampusSpaceUnitGetlistbycampusandtypeRequest() *AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIRequest{ + return &AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.unit.getlistbycampusandtype" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 系统自动生成 +func (r *AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} +// Param1 Setter +// 查询参数封装 +func (r *AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIRequest) SetParam1(_param1 *SpaceUnitQuery) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIRequest) GetParam1() *SpaceUnitQuery { + return r._param1 +} diff --git a/model/campus/AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIResponse.go b/model/campus/AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIResponse.go new file mode 100644 index 0000000000..f8dfebdc64 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIResponse.go @@ -0,0 +1,29 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据园区id及TypeId获取空间单元 API返回值 +alibaba.campus.space.unit.getlistbycampusandtype + +根据园区id及TypeId获取空间单元 +HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceUnitApiTopService +HSF方法名称:getListByCampusAndType +*/ +type AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIResponseModel +} + +// 根据园区id及TypeId获取空间单元 成功返回结果 +type AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_unit_getlistbycampusandtype_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceUnitGetlistbycampusandtypeResponse.go b/model/campus/AlibabaCampusSpaceUnitGetlistbycampusandtypeResponse.go deleted file mode 100644 index 2cb9fe393c..0000000000 --- a/model/campus/AlibabaCampusSpaceUnitGetlistbycampusandtypeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据园区id及TypeId获取空间单元 API返回值 -alibaba.campus.space.unit.getlistbycampusandtype - -根据园区id及TypeId获取空间单元 -HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceUnitApiTopService -HSF方法名称:getListByCampusAndType -*/ -type AlibabaCampusSpaceUnitGetlistbycampusandtypeAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceUnitGetlistbycampusandtypeResponse -} - -// 根据园区id及TypeId获取空间单元 成功返回结果 -type AlibabaCampusSpaceUnitGetlistbycampusandtypeResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_unit_getlistbycampusandtype_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceUnitGetlistbygroupidAPIRequest.go b/model/campus/AlibabaCampusSpaceUnitGetlistbygroupidAPIRequest.go new file mode 100644 index 0000000000..1e75808785 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceUnitGetlistbygroupidAPIRequest.go @@ -0,0 +1,68 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据分组ID查询相应的空间单元 API请求 +alibaba.campus.space.unit.getlistbygroupid + +根据分组ID查询相应的空间单元 +HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceUnitApiTopService +HSF方法名称:getListByGroupId +*/ +type AlibabaCampusSpaceUnitGetlistbygroupidAPIRequest struct { + model.Params + // 分组ID + _param0 *WorkBenchContext + // 分组ID + _param1 int64 +} + +// 初始化AlibabaCampusSpaceUnitGetlistbygroupidAPIRequest对象 +func NewAlibabaCampusSpaceUnitGetlistbygroupidRequest() *AlibabaCampusSpaceUnitGetlistbygroupidAPIRequest{ + return &AlibabaCampusSpaceUnitGetlistbygroupidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceUnitGetlistbygroupidAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.unit.getlistbygroupid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceUnitGetlistbygroupidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 分组ID +func (r *AlibabaCampusSpaceUnitGetlistbygroupidAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusSpaceUnitGetlistbygroupidAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} +// Param1 Setter +// 分组ID +func (r *AlibabaCampusSpaceUnitGetlistbygroupidAPIRequest) SetParam1(_param1 int64) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaCampusSpaceUnitGetlistbygroupidAPIRequest) GetParam1() int64 { + return r._param1 +} diff --git a/model/campus/AlibabaCampusSpaceUnitGetlistbygroupidAPIResponse.go b/model/campus/AlibabaCampusSpaceUnitGetlistbygroupidAPIResponse.go new file mode 100644 index 0000000000..ac078c75a1 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceUnitGetlistbygroupidAPIResponse.go @@ -0,0 +1,29 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据分组ID查询相应的空间单元 API返回值 +alibaba.campus.space.unit.getlistbygroupid + +根据分组ID查询相应的空间单元 +HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceUnitApiTopService +HSF方法名称:getListByGroupId +*/ +type AlibabaCampusSpaceUnitGetlistbygroupidAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceUnitGetlistbygroupidAPIResponseModel +} + +// 根据分组ID查询相应的空间单元 成功返回结果 +type AlibabaCampusSpaceUnitGetlistbygroupidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_unit_getlistbygroupid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceUnitGetlistbygroupidResponse.go b/model/campus/AlibabaCampusSpaceUnitGetlistbygroupidResponse.go deleted file mode 100644 index d2b21cc403..0000000000 --- a/model/campus/AlibabaCampusSpaceUnitGetlistbygroupidResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据分组ID查询相应的空间单元 API返回值 -alibaba.campus.space.unit.getlistbygroupid - -根据分组ID查询相应的空间单元 -HSF接口名称:com.alibaba.campus.api.space.service.top.SpaceUnitApiTopService -HSF方法名称:getListByGroupId -*/ -type AlibabaCampusSpaceUnitGetlistbygroupidAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceUnitGetlistbygroupidResponse -} - -// 根据分组ID查询相应的空间单元 成功返回结果 -type AlibabaCampusSpaceUnitGetlistbygroupidResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_unit_getlistbygroupid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceUnitGetlistmapbygroupidAPIRequest.go b/model/campus/AlibabaCampusSpaceUnitGetlistmapbygroupidAPIRequest.go new file mode 100644 index 0000000000..85ec2569e8 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceUnitGetlistmapbygroupidAPIRequest.go @@ -0,0 +1,68 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增查询多个分组ID各自相关的空间单元信息 API请求 +alibaba.campus.space.unit.getlistmapbygroupid + +新增查询多个分组ID各自相关的空间单元信息 +HSF接口名称: com.alibaba.campus.api.space.service.top.SpaceUnitApiTopService +HSF方法名称: getListMapByGroupIds +*/ +type AlibabaCampusSpaceUnitGetlistmapbygroupidAPIRequest struct { + model.Params + // 用户环境 + _param0 *WorkBenchContext + // 查询封装 + _param1 *SpaceUnitQuery +} + +// 初始化AlibabaCampusSpaceUnitGetlistmapbygroupidAPIRequest对象 +func NewAlibabaCampusSpaceUnitGetlistmapbygroupidRequest() *AlibabaCampusSpaceUnitGetlistmapbygroupidAPIRequest{ + return &AlibabaCampusSpaceUnitGetlistmapbygroupidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceUnitGetlistmapbygroupidAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.unit.getlistmapbygroupid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceUnitGetlistmapbygroupidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 用户环境 +func (r *AlibabaCampusSpaceUnitGetlistmapbygroupidAPIRequest) SetParam0(_param0 *WorkBenchContext) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaCampusSpaceUnitGetlistmapbygroupidAPIRequest) GetParam0() *WorkBenchContext { + return r._param0 +} +// Param1 Setter +// 查询封装 +func (r *AlibabaCampusSpaceUnitGetlistmapbygroupidAPIRequest) SetParam1(_param1 *SpaceUnitQuery) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaCampusSpaceUnitGetlistmapbygroupidAPIRequest) GetParam1() *SpaceUnitQuery { + return r._param1 +} diff --git a/model/campus/AlibabaCampusSpaceUnitGetlistmapbygroupidAPIResponse.go b/model/campus/AlibabaCampusSpaceUnitGetlistmapbygroupidAPIResponse.go new file mode 100644 index 0000000000..6ff5261859 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceUnitGetlistmapbygroupidAPIResponse.go @@ -0,0 +1,29 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增查询多个分组ID各自相关的空间单元信息 API返回值 +alibaba.campus.space.unit.getlistmapbygroupid + +新增查询多个分组ID各自相关的空间单元信息 +HSF接口名称: com.alibaba.campus.api.space.service.top.SpaceUnitApiTopService +HSF方法名称: getListMapByGroupIds +*/ +type AlibabaCampusSpaceUnitGetlistmapbygroupidAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceUnitGetlistmapbygroupidAPIResponseModel +} + +// 新增查询多个分组ID各自相关的空间单元信息 成功返回结果 +type AlibabaCampusSpaceUnitGetlistmapbygroupidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_unit_getlistmapbygroupid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaCampusSpaceUnitGetlistmapbygroupidMapResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceUnitGetlistmapbygroupidResponse.go b/model/campus/AlibabaCampusSpaceUnitGetlistmapbygroupidResponse.go deleted file mode 100644 index dd0af3df9e..0000000000 --- a/model/campus/AlibabaCampusSpaceUnitGetlistmapbygroupidResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增查询多个分组ID各自相关的空间单元信息 API返回值 -alibaba.campus.space.unit.getlistmapbygroupid - -新增查询多个分组ID各自相关的空间单元信息 -HSF接口名称: com.alibaba.campus.api.space.service.top.SpaceUnitApiTopService -HSF方法名称: getListMapByGroupIds -*/ -type AlibabaCampusSpaceUnitGetlistmapbygroupidAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceUnitGetlistmapbygroupidResponse -} - -// 新增查询多个分组ID各自相关的空间单元信息 成功返回结果 -type AlibabaCampusSpaceUnitGetlistmapbygroupidResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_unit_getlistmapbygroupid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaCampusSpaceUnitGetlistmapbygroupidMapResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIRequest.go b/model/campus/AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIRequest.go new file mode 100644 index 0000000000..758f6fb454 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据空间分组id、ids查空间单元信息【带空间单元业务属性信息】 API请求 +alibaba.campus.space.unit.getlistwithattrbygroupid + +根据空间分组id、ids查空间单元信息【带空间单元业务属性信息】 +*/ +type AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIRequest struct { + model.Params + // 操作用户上下文 + _context *WorkBenchContext + // 分组id + _groupId int64 +} + +// 初始化AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIRequest对象 +func NewAlibabaCampusSpaceUnitGetlistwithattrbygroupidRequest() *AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIRequest{ + return &AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.unit.getlistwithattrbygroupid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Context Setter +// 操作用户上下文 +func (r *AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIRequest) SetContext(_context *WorkBenchContext) error { + r._context = _context + r.Set("context", _context) + return nil +} + +// Context Getter +func (r AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIRequest) GetContext() *WorkBenchContext { + return r._context +} +// GroupId Setter +// 分组id +func (r *AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIRequest) SetGroupId(_groupId int64) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIRequest) GetGroupId() int64 { + return r._groupId +} diff --git a/model/campus/AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIResponse.go b/model/campus/AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIResponse.go new file mode 100644 index 0000000000..81e1d9734b --- /dev/null +++ b/model/campus/AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据空间分组id、ids查空间单元信息【带空间单元业务属性信息】 API返回值 +alibaba.campus.space.unit.getlistwithattrbygroupid + +根据空间分组id、ids查空间单元信息【带空间单元业务属性信息】 +*/ +type AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIResponseModel +} + +// 根据空间分组id、ids查空间单元信息【带空间单元业务属性信息】 成功返回结果 +type AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_unit_getlistwithattrbygroupid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceUnitGetlistwithattrbygroupidResponse.go b/model/campus/AlibabaCampusSpaceUnitGetlistwithattrbygroupidResponse.go deleted file mode 100644 index c62d57b7ef..0000000000 --- a/model/campus/AlibabaCampusSpaceUnitGetlistwithattrbygroupidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据空间分组id、ids查空间单元信息【带空间单元业务属性信息】 API返回值 -alibaba.campus.space.unit.getlistwithattrbygroupid - -根据空间分组id、ids查空间单元信息【带空间单元业务属性信息】 -*/ -type AlibabaCampusSpaceUnitGetlistwithattrbygroupidAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceUnitGetlistwithattrbygroupidResponse -} - -// 根据空间分组id、ids查空间单元信息【带空间单元业务属性信息】 成功返回结果 -type AlibabaCampusSpaceUnitGetlistwithattrbygroupidResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_unit_getlistwithattrbygroupid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIRequest.go b/model/campus/AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIRequest.go new file mode 100644 index 0000000000..d518886c69 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +空间单元列表带业务属性实例 API请求 +alibaba.campus.space.unit.getspaceunitlistwithattr + +空间单元列表带业务属性实例 +*/ +type AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIRequest struct { + model.Params + // 操作用户上下文 + _context *WorkBenchContext + // 空间单元查询对象 + _unitQuery *SpaceUnitQuery +} + +// 初始化AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIRequest对象 +func NewAlibabaCampusSpaceUnitGetspaceunitlistwithattrRequest() *AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIRequest{ + return &AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.unit.getspaceunitlistwithattr" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Context Setter +// 操作用户上下文 +func (r *AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIRequest) SetContext(_context *WorkBenchContext) error { + r._context = _context + r.Set("context", _context) + return nil +} + +// Context Getter +func (r AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIRequest) GetContext() *WorkBenchContext { + return r._context +} +// UnitQuery Setter +// 空间单元查询对象 +func (r *AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIRequest) SetUnitQuery(_unitQuery *SpaceUnitQuery) error { + r._unitQuery = _unitQuery + r.Set("unit_query", _unitQuery) + return nil +} + +// UnitQuery Getter +func (r AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIRequest) GetUnitQuery() *SpaceUnitQuery { + return r._unitQuery +} diff --git a/model/campus/AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIResponse.go b/model/campus/AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIResponse.go new file mode 100644 index 0000000000..0487c832a1 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +空间单元列表带业务属性实例 API返回值 +alibaba.campus.space.unit.getspaceunitlistwithattr + +空间单元列表带业务属性实例 +*/ +type AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIResponseModel +} + +// 空间单元列表带业务属性实例 成功返回结果 +type AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_unit_getspaceunitlistwithattr_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceUnitGetspaceunitlistwithattrResponse.go b/model/campus/AlibabaCampusSpaceUnitGetspaceunitlistwithattrResponse.go deleted file mode 100644 index d7038bbd9c..0000000000 --- a/model/campus/AlibabaCampusSpaceUnitGetspaceunitlistwithattrResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -空间单元列表带业务属性实例 API返回值 -alibaba.campus.space.unit.getspaceunitlistwithattr - -空间单元列表带业务属性实例 -*/ -type AlibabaCampusSpaceUnitGetspaceunitlistwithattrAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceUnitGetspaceunitlistwithattrResponse -} - -// 空间单元列表带业务属性实例 成功返回结果 -type AlibabaCampusSpaceUnitGetspaceunitlistwithattrResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_unit_getspaceunitlistwithattr_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusSpaceUnitGetspaceunitwithattrAPIRequest.go b/model/campus/AlibabaCampusSpaceUnitGetspaceunitwithattrAPIRequest.go new file mode 100644 index 0000000000..9031f21f88 --- /dev/null +++ b/model/campus/AlibabaCampusSpaceUnitGetspaceunitwithattrAPIRequest.go @@ -0,0 +1,66 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +空间单元id查业务属性实例 API请求 +alibaba.campus.space.unit.getspaceunitwithattr + +空间单元id查业务属性实例 +*/ +type AlibabaCampusSpaceUnitGetspaceunitwithattrAPIRequest struct { + model.Params + // 操作用户上下文 + _context *WorkBenchContext + // 空间单元id + _spaceUnitId int64 +} + +// 初始化AlibabaCampusSpaceUnitGetspaceunitwithattrAPIRequest对象 +func NewAlibabaCampusSpaceUnitGetspaceunitwithattrRequest() *AlibabaCampusSpaceUnitGetspaceunitwithattrAPIRequest{ + return &AlibabaCampusSpaceUnitGetspaceunitwithattrAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusSpaceUnitGetspaceunitwithattrAPIRequest) GetApiMethodName() string { + return "alibaba.campus.space.unit.getspaceunitwithattr" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusSpaceUnitGetspaceunitwithattrAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Context Setter +// 操作用户上下文 +func (r *AlibabaCampusSpaceUnitGetspaceunitwithattrAPIRequest) SetContext(_context *WorkBenchContext) error { + r._context = _context + r.Set("context", _context) + return nil +} + +// Context Getter +func (r AlibabaCampusSpaceUnitGetspaceunitwithattrAPIRequest) GetContext() *WorkBenchContext { + return r._context +} +// SpaceUnitId Setter +// 空间单元id +func (r *AlibabaCampusSpaceUnitGetspaceunitwithattrAPIRequest) SetSpaceUnitId(_spaceUnitId int64) error { + r._spaceUnitId = _spaceUnitId + r.Set("space_unit_id", _spaceUnitId) + return nil +} + +// SpaceUnitId Getter +func (r AlibabaCampusSpaceUnitGetspaceunitwithattrAPIRequest) GetSpaceUnitId() int64 { + return r._spaceUnitId +} diff --git a/model/campus/AlibabaCampusSpaceUnitGetspaceunitwithattrAPIResponse.go b/model/campus/AlibabaCampusSpaceUnitGetspaceunitwithattrAPIResponse.go new file mode 100644 index 0000000000..38397bbedb --- /dev/null +++ b/model/campus/AlibabaCampusSpaceUnitGetspaceunitwithattrAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +空间单元id查业务属性实例 API返回值 +alibaba.campus.space.unit.getspaceunitwithattr + +空间单元id查业务属性实例 +*/ +type AlibabaCampusSpaceUnitGetspaceunitwithattrAPIResponse struct { + model.CommonResponse + AlibabaCampusSpaceUnitGetspaceunitwithattrAPIResponseModel +} + +// 空间单元id查业务属性实例 成功返回结果 +type AlibabaCampusSpaceUnitGetspaceunitwithattrAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_space_unit_getspaceunitwithattr_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusSpaceUnitGetspaceunitwithattrResponse.go b/model/campus/AlibabaCampusSpaceUnitGetspaceunitwithattrResponse.go deleted file mode 100644 index f5c0e4a530..0000000000 --- a/model/campus/AlibabaCampusSpaceUnitGetspaceunitwithattrResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -空间单元id查业务属性实例 API返回值 -alibaba.campus.space.unit.getspaceunitwithattr - -空间单元id查业务属性实例 -*/ -type AlibabaCampusSpaceUnitGetspaceunitwithattrAPIResponse struct { - model.CommonResponse - AlibabaCampusSpaceUnitGetspaceunitwithattrResponse -} - -// 空间单元id查业务属性实例 成功返回结果 -type AlibabaCampusSpaceUnitGetspaceunitwithattrResponse struct { - XMLName xml.Name `xml:"alibaba_campus_space_unit_getspaceunitwithattr_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaCampusTopologyGetallAPIRequest.go b/model/campus/AlibabaCampusTopologyGetallAPIRequest.go new file mode 100644 index 0000000000..6764eddc00 --- /dev/null +++ b/model/campus/AlibabaCampusTopologyGetallAPIRequest.go @@ -0,0 +1,80 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取管理园区的规则拓扑接口 API请求 +alibaba.campus.topology.getall + +获取所属园区的所有规则拓扑图 +*/ +type AlibabaCampusTopologyGetallAPIRequest struct { + model.Params + // 园区id + _campusId int64 + // 公司id + _companyId int64 + // 系统id + _systemId string +} + +// 初始化AlibabaCampusTopologyGetallAPIRequest对象 +func NewAlibabaCampusTopologyGetallRequest() *AlibabaCampusTopologyGetallAPIRequest{ + return &AlibabaCampusTopologyGetallAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCampusTopologyGetallAPIRequest) GetApiMethodName() string { + return "alibaba.campus.topology.getall" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCampusTopologyGetallAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampusId Setter +// 园区id +func (r *AlibabaCampusTopologyGetallAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaCampusTopologyGetallAPIRequest) GetCampusId() int64 { + return r._campusId +} +// CompanyId Setter +// 公司id +func (r *AlibabaCampusTopologyGetallAPIRequest) SetCompanyId(_companyId int64) error { + r._companyId = _companyId + r.Set("company_id", _companyId) + return nil +} + +// CompanyId Getter +func (r AlibabaCampusTopologyGetallAPIRequest) GetCompanyId() int64 { + return r._companyId +} +// SystemId Setter +// 系统id +func (r *AlibabaCampusTopologyGetallAPIRequest) SetSystemId(_systemId string) error { + r._systemId = _systemId + r.Set("system_id", _systemId) + return nil +} + +// SystemId Getter +func (r AlibabaCampusTopologyGetallAPIRequest) GetSystemId() string { + return r._systemId +} diff --git a/model/campus/AlibabaCampusTopologyGetallAPIResponse.go b/model/campus/AlibabaCampusTopologyGetallAPIResponse.go new file mode 100644 index 0000000000..7b9f110aa0 --- /dev/null +++ b/model/campus/AlibabaCampusTopologyGetallAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取管理园区的规则拓扑接口 API返回值 +alibaba.campus.topology.getall + +获取所属园区的所有规则拓扑图 +*/ +type AlibabaCampusTopologyGetallAPIResponse struct { + model.CommonResponse + AlibabaCampusTopologyGetallAPIResponseModel +} + +// 获取管理园区的规则拓扑接口 成功返回结果 +type AlibabaCampusTopologyGetallAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_campus_topology_getall_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaCampusTopologyGetallResponse.go b/model/campus/AlibabaCampusTopologyGetallResponse.go deleted file mode 100644 index bac04976e1..0000000000 --- a/model/campus/AlibabaCampusTopologyGetallResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取管理园区的规则拓扑接口 API返回值 -alibaba.campus.topology.getall - -获取所属园区的所有规则拓扑图 -*/ -type AlibabaCampusTopologyGetallAPIResponse struct { - model.CommonResponse - AlibabaCampusTopologyGetallResponse -} - -// 获取管理园区的规则拓扑接口 成功返回结果 -type AlibabaCampusTopologyGetallResponse struct { - XMLName xml.Name `xml:"alibaba_campus_topology_getall_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *ListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaGuardAccessAuthAPIRequest.go b/model/campus/AlibabaGuardAccessAuthAPIRequest.go new file mode 100644 index 0000000000..d91bbb5fc2 --- /dev/null +++ b/model/campus/AlibabaGuardAccessAuthAPIRequest.go @@ -0,0 +1,52 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +鉴权 API请求 +alibaba.guard.access.auth + +刷卡鉴权 +*/ +type AlibabaGuardAccessAuthAPIRequest struct { + model.Params + // 请求 + _paramIdentifyAuthDTO *IdentifyAuthDto +} + +// 初始化AlibabaGuardAccessAuthAPIRequest对象 +func NewAlibabaGuardAccessAuthRequest() *AlibabaGuardAccessAuthAPIRequest{ + return &AlibabaGuardAccessAuthAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaGuardAccessAuthAPIRequest) GetApiMethodName() string { + return "alibaba.guard.access.auth" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaGuardAccessAuthAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamIdentifyAuthDTO Setter +// 请求 +func (r *AlibabaGuardAccessAuthAPIRequest) SetParamIdentifyAuthDTO(_paramIdentifyAuthDTO *IdentifyAuthDto) error { + r._paramIdentifyAuthDTO = _paramIdentifyAuthDTO + r.Set("param_identify_auth_d_t_o", _paramIdentifyAuthDTO) + return nil +} + +// ParamIdentifyAuthDTO Getter +func (r AlibabaGuardAccessAuthAPIRequest) GetParamIdentifyAuthDTO() *IdentifyAuthDto { + return r._paramIdentifyAuthDTO +} diff --git a/model/campus/AlibabaGuardAccessAuthAPIResponse.go b/model/campus/AlibabaGuardAccessAuthAPIResponse.go new file mode 100644 index 0000000000..03a8bf57ed --- /dev/null +++ b/model/campus/AlibabaGuardAccessAuthAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +鉴权 API返回值 +alibaba.guard.access.auth + +刷卡鉴权 +*/ +type AlibabaGuardAccessAuthAPIResponse struct { + model.CommonResponse + AlibabaGuardAccessAuthAPIResponseModel +} + +// 鉴权 成功返回结果 +type AlibabaGuardAccessAuthAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_guard_access_auth_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaGuardAccessAuthResponse.go b/model/campus/AlibabaGuardAccessAuthResponse.go deleted file mode 100644 index c75ed04b99..0000000000 --- a/model/campus/AlibabaGuardAccessAuthResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -鉴权 API返回值 -alibaba.guard.access.auth - -刷卡鉴权 -*/ -type AlibabaGuardAccessAuthAPIResponse struct { - model.CommonResponse - AlibabaGuardAccessAuthResponse -} - -// 鉴权 成功返回结果 -type AlibabaGuardAccessAuthResponse struct { - XMLName xml.Name `xml:"alibaba_guard_access_auth_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaIworkCoreHrsGetpersonAPIRequest.go b/model/campus/AlibabaIworkCoreHrsGetpersonAPIRequest.go new file mode 100644 index 0000000000..2548e4f1bb --- /dev/null +++ b/model/campus/AlibabaIworkCoreHrsGetpersonAPIRequest.go @@ -0,0 +1,94 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取神鲸用户基本信息 API请求 +alibaba.iwork.core.hrs.getperson + +神鲸用户的基本信息查询,根据PERSON_ID或者用户ACCOUNT_ID查询 +*/ +type AlibabaIworkCoreHrsGetpersonAPIRequest struct { + model.Params + // 用户ACCOUNT_ID + _accountId string + // 用户ID + _personId int64 + // 应用ID + _appId string + // 操作人ID + _operatorId string +} + +// 初始化AlibabaIworkCoreHrsGetpersonAPIRequest对象 +func NewAlibabaIworkCoreHrsGetpersonRequest() *AlibabaIworkCoreHrsGetpersonAPIRequest{ + return &AlibabaIworkCoreHrsGetpersonAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIworkCoreHrsGetpersonAPIRequest) GetApiMethodName() string { + return "alibaba.iwork.core.hrs.getperson" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIworkCoreHrsGetpersonAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccountId Setter +// 用户ACCOUNT_ID +func (r *AlibabaIworkCoreHrsGetpersonAPIRequest) SetAccountId(_accountId string) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r AlibabaIworkCoreHrsGetpersonAPIRequest) GetAccountId() string { + return r._accountId +} +// PersonId Setter +// 用户ID +func (r *AlibabaIworkCoreHrsGetpersonAPIRequest) SetPersonId(_personId int64) error { + r._personId = _personId + r.Set("person_id", _personId) + return nil +} + +// PersonId Getter +func (r AlibabaIworkCoreHrsGetpersonAPIRequest) GetPersonId() int64 { + return r._personId +} +// AppId Setter +// 应用ID +func (r *AlibabaIworkCoreHrsGetpersonAPIRequest) SetAppId(_appId string) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r AlibabaIworkCoreHrsGetpersonAPIRequest) GetAppId() string { + return r._appId +} +// OperatorId Setter +// 操作人ID +func (r *AlibabaIworkCoreHrsGetpersonAPIRequest) SetOperatorId(_operatorId string) error { + r._operatorId = _operatorId + r.Set("operator_id", _operatorId) + return nil +} + +// OperatorId Getter +func (r AlibabaIworkCoreHrsGetpersonAPIRequest) GetOperatorId() string { + return r._operatorId +} diff --git a/model/campus/AlibabaIworkCoreHrsGetpersonAPIResponse.go b/model/campus/AlibabaIworkCoreHrsGetpersonAPIResponse.go new file mode 100644 index 0000000000..4c94ecc755 --- /dev/null +++ b/model/campus/AlibabaIworkCoreHrsGetpersonAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取神鲸用户基本信息 API返回值 +alibaba.iwork.core.hrs.getperson + +神鲸用户的基本信息查询,根据PERSON_ID或者用户ACCOUNT_ID查询 +*/ +type AlibabaIworkCoreHrsGetpersonAPIResponse struct { + model.CommonResponse + AlibabaIworkCoreHrsGetpersonAPIResponseModel +} + +// 获取神鲸用户基本信息 成功返回结果 +type AlibabaIworkCoreHrsGetpersonAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_iwork_core_hrs_getperson_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaIworkCoreHrsGetpersonResponse.go b/model/campus/AlibabaIworkCoreHrsGetpersonResponse.go deleted file mode 100644 index ecb2815c0f..0000000000 --- a/model/campus/AlibabaIworkCoreHrsGetpersonResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取神鲸用户基本信息 API返回值 -alibaba.iwork.core.hrs.getperson - -神鲸用户的基本信息查询,根据PERSON_ID或者用户ACCOUNT_ID查询 -*/ -type AlibabaIworkCoreHrsGetpersonAPIResponse struct { - model.CommonResponse - AlibabaIworkCoreHrsGetpersonResponse -} - -// 获取神鲸用户基本信息 成功返回结果 -type AlibabaIworkCoreHrsGetpersonResponse struct { - XMLName xml.Name `xml:"alibaba_iwork_core_hrs_getperson_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaIworkMcMsgSenddefaultAPIRequest.go b/model/campus/AlibabaIworkMcMsgSenddefaultAPIRequest.go new file mode 100644 index 0000000000..aad4abd4c0 --- /dev/null +++ b/model/campus/AlibabaIworkMcMsgSenddefaultAPIRequest.go @@ -0,0 +1,52 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +给注册用户发送消息 API请求 +alibaba.iwork.mc.msg.senddefault + +给神鲸注册用户发送对应操作结果的消息 +*/ +type AlibabaIworkMcMsgSenddefaultAPIRequest struct { + model.Params + // 消息对象 + _messageEvent *DefaultMessageEvent +} + +// 初始化AlibabaIworkMcMsgSenddefaultAPIRequest对象 +func NewAlibabaIworkMcMsgSenddefaultRequest() *AlibabaIworkMcMsgSenddefaultAPIRequest{ + return &AlibabaIworkMcMsgSenddefaultAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIworkMcMsgSenddefaultAPIRequest) GetApiMethodName() string { + return "alibaba.iwork.mc.msg.senddefault" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIworkMcMsgSenddefaultAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MessageEvent Setter +// 消息对象 +func (r *AlibabaIworkMcMsgSenddefaultAPIRequest) SetMessageEvent(_messageEvent *DefaultMessageEvent) error { + r._messageEvent = _messageEvent + r.Set("message_event", _messageEvent) + return nil +} + +// MessageEvent Getter +func (r AlibabaIworkMcMsgSenddefaultAPIRequest) GetMessageEvent() *DefaultMessageEvent { + return r._messageEvent +} diff --git a/model/campus/AlibabaIworkMcMsgSenddefaultAPIResponse.go b/model/campus/AlibabaIworkMcMsgSenddefaultAPIResponse.go new file mode 100644 index 0000000000..3ed022fae1 --- /dev/null +++ b/model/campus/AlibabaIworkMcMsgSenddefaultAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +给注册用户发送消息 API返回值 +alibaba.iwork.mc.msg.senddefault + +给神鲸注册用户发送对应操作结果的消息 +*/ +type AlibabaIworkMcMsgSenddefaultAPIResponse struct { + model.CommonResponse + AlibabaIworkMcMsgSenddefaultAPIResponseModel +} + +// 给注册用户发送消息 成功返回结果 +type AlibabaIworkMcMsgSenddefaultAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_iwork_mc_msg_senddefault_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaIworkMcMsgSenddefaultResponse.go b/model/campus/AlibabaIworkMcMsgSenddefaultResponse.go deleted file mode 100644 index 0de65ad31f..0000000000 --- a/model/campus/AlibabaIworkMcMsgSenddefaultResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -给注册用户发送消息 API返回值 -alibaba.iwork.mc.msg.senddefault - -给神鲸注册用户发送对应操作结果的消息 -*/ -type AlibabaIworkMcMsgSenddefaultAPIResponse struct { - model.CommonResponse - AlibabaIworkMcMsgSenddefaultResponse -} - -// 给注册用户发送消息 成功返回结果 -type AlibabaIworkMcMsgSenddefaultResponse struct { - XMLName xml.Name `xml:"alibaba_iwork_mc_msg_senddefault_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaIworkMcMsgSendmobileAPIRequest.go b/model/campus/AlibabaIworkMcMsgSendmobileAPIRequest.go new file mode 100644 index 0000000000..d84cac0cf3 --- /dev/null +++ b/model/campus/AlibabaIworkMcMsgSendmobileAPIRequest.go @@ -0,0 +1,52 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发送消息给手机用户 API请求 +alibaba.iwork.mc.msg.sendmobile + +给手机用户发送对应操作结果的消息 +*/ +type AlibabaIworkMcMsgSendmobileAPIRequest struct { + model.Params + // 消息对象 + _mobileReceiverMessageEvent *MobileReceiverMessageEvent +} + +// 初始化AlibabaIworkMcMsgSendmobileAPIRequest对象 +func NewAlibabaIworkMcMsgSendmobileRequest() *AlibabaIworkMcMsgSendmobileAPIRequest{ + return &AlibabaIworkMcMsgSendmobileAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIworkMcMsgSendmobileAPIRequest) GetApiMethodName() string { + return "alibaba.iwork.mc.msg.sendmobile" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIworkMcMsgSendmobileAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MobileReceiverMessageEvent Setter +// 消息对象 +func (r *AlibabaIworkMcMsgSendmobileAPIRequest) SetMobileReceiverMessageEvent(_mobileReceiverMessageEvent *MobileReceiverMessageEvent) error { + r._mobileReceiverMessageEvent = _mobileReceiverMessageEvent + r.Set("mobile_receiver_message_event", _mobileReceiverMessageEvent) + return nil +} + +// MobileReceiverMessageEvent Getter +func (r AlibabaIworkMcMsgSendmobileAPIRequest) GetMobileReceiverMessageEvent() *MobileReceiverMessageEvent { + return r._mobileReceiverMessageEvent +} diff --git a/model/campus/AlibabaIworkMcMsgSendmobileAPIResponse.go b/model/campus/AlibabaIworkMcMsgSendmobileAPIResponse.go new file mode 100644 index 0000000000..495b30c935 --- /dev/null +++ b/model/campus/AlibabaIworkMcMsgSendmobileAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发送消息给手机用户 API返回值 +alibaba.iwork.mc.msg.sendmobile + +给手机用户发送对应操作结果的消息 +*/ +type AlibabaIworkMcMsgSendmobileAPIResponse struct { + model.CommonResponse + AlibabaIworkMcMsgSendmobileAPIResponseModel +} + +// 发送消息给手机用户 成功返回结果 +type AlibabaIworkMcMsgSendmobileAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_iwork_mc_msg_sendmobile_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaIworkMcMsgSendmobileResponse.go b/model/campus/AlibabaIworkMcMsgSendmobileResponse.go deleted file mode 100644 index ac9b06ff09..0000000000 --- a/model/campus/AlibabaIworkMcMsgSendmobileResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发送消息给手机用户 API返回值 -alibaba.iwork.mc.msg.sendmobile - -给手机用户发送对应操作结果的消息 -*/ -type AlibabaIworkMcMsgSendmobileAPIResponse struct { - model.CommonResponse - AlibabaIworkMcMsgSendmobileResponse -} - -// 发送消息给手机用户 成功返回结果 -type AlibabaIworkMcMsgSendmobileResponse struct { - XMLName xml.Name `xml:"alibaba_iwork_mc_msg_sendmobile_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/campus/AlibabaVisitorGetidsbyqrcodeAPIRequest.go b/model/campus/AlibabaVisitorGetidsbyqrcodeAPIRequest.go new file mode 100644 index 0000000000..971e46b533 --- /dev/null +++ b/model/campus/AlibabaVisitorGetidsbyqrcodeAPIRequest.go @@ -0,0 +1,94 @@ +package campus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据访客二维码查访客行程id API请求 +alibaba.visitor.getidsbyqrcode + +根据支付宝阿里访客小程序的动态二维码查询来访行程id +*/ +type AlibabaVisitorGetidsbyqrcodeAPIRequest struct { + model.Params + // 公司id + _companyId int64 + // 园区id + _campusId int64 + // 来访时间 + _date string + // 二维码字符串 + _qrCode string +} + +// 初始化AlibabaVisitorGetidsbyqrcodeAPIRequest对象 +func NewAlibabaVisitorGetidsbyqrcodeRequest() *AlibabaVisitorGetidsbyqrcodeAPIRequest{ + return &AlibabaVisitorGetidsbyqrcodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaVisitorGetidsbyqrcodeAPIRequest) GetApiMethodName() string { + return "alibaba.visitor.getidsbyqrcode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaVisitorGetidsbyqrcodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CompanyId Setter +// 公司id +func (r *AlibabaVisitorGetidsbyqrcodeAPIRequest) SetCompanyId(_companyId int64) error { + r._companyId = _companyId + r.Set("company_id", _companyId) + return nil +} + +// CompanyId Getter +func (r AlibabaVisitorGetidsbyqrcodeAPIRequest) GetCompanyId() int64 { + return r._companyId +} +// CampusId Setter +// 园区id +func (r *AlibabaVisitorGetidsbyqrcodeAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaVisitorGetidsbyqrcodeAPIRequest) GetCampusId() int64 { + return r._campusId +} +// Date Setter +// 来访时间 +func (r *AlibabaVisitorGetidsbyqrcodeAPIRequest) SetDate(_date string) error { + r._date = _date + r.Set("date", _date) + return nil +} + +// Date Getter +func (r AlibabaVisitorGetidsbyqrcodeAPIRequest) GetDate() string { + return r._date +} +// QrCode Setter +// 二维码字符串 +func (r *AlibabaVisitorGetidsbyqrcodeAPIRequest) SetQrCode(_qrCode string) error { + r._qrCode = _qrCode + r.Set("qr_code", _qrCode) + return nil +} + +// QrCode Getter +func (r AlibabaVisitorGetidsbyqrcodeAPIRequest) GetQrCode() string { + return r._qrCode +} diff --git a/model/campus/AlibabaVisitorGetidsbyqrcodeAPIResponse.go b/model/campus/AlibabaVisitorGetidsbyqrcodeAPIResponse.go new file mode 100644 index 0000000000..73c9850ff0 --- /dev/null +++ b/model/campus/AlibabaVisitorGetidsbyqrcodeAPIResponse.go @@ -0,0 +1,27 @@ +package campus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据访客二维码查访客行程id API返回值 +alibaba.visitor.getidsbyqrcode + +根据支付宝阿里访客小程序的动态二维码查询来访行程id +*/ +type AlibabaVisitorGetidsbyqrcodeAPIResponse struct { + model.CommonResponse + AlibabaVisitorGetidsbyqrcodeAPIResponseModel +} + +// 根据访客二维码查访客行程id 成功返回结果 +type AlibabaVisitorGetidsbyqrcodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_visitor_getidsbyqrcode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/campus/AlibabaVisitorGetidsbyqrcodeResponse.go b/model/campus/AlibabaVisitorGetidsbyqrcodeResponse.go deleted file mode 100644 index b5e4db644d..0000000000 --- a/model/campus/AlibabaVisitorGetidsbyqrcodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package campus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据访客二维码查访客行程id API返回值 -alibaba.visitor.getidsbyqrcode - -根据支付宝阿里访客小程序的动态二维码查询来访行程id -*/ -type AlibabaVisitorGetidsbyqrcodeAPIResponse struct { - model.CommonResponse - AlibabaVisitorGetidsbyqrcodeResponse -} - -// 根据访客二维码查访客行程id 成功返回结果 -type AlibabaVisitorGetidsbyqrcodeResponse struct { - XMLName xml.Name `xml:"alibaba_visitor_getidsbyqrcode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *PojoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/car/AlitripTravelCrsdriverArrangeAPIRequest.go b/model/car/AlitripTravelCrsdriverArrangeAPIRequest.go new file mode 100644 index 0000000000..80a511c77f --- /dev/null +++ b/model/car/AlitripTravelCrsdriverArrangeAPIRequest.go @@ -0,0 +1,52 @@ +package car + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +CRS接送机商家派司机接口 API请求 +alitrip.travel.crsdriver.arrange + +提供给CRS接送机商家派司机的API +*/ +type AlitripTravelCrsdriverArrangeAPIRequest struct { + model.Params + // 请求对象 + _crsDriverArrangeParam *CrsDriverArrangeParam +} + +// 初始化AlitripTravelCrsdriverArrangeAPIRequest对象 +func NewAlitripTravelCrsdriverArrangeRequest() *AlitripTravelCrsdriverArrangeAPIRequest{ + return &AlitripTravelCrsdriverArrangeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelCrsdriverArrangeAPIRequest) GetApiMethodName() string { + return "alitrip.travel.crsdriver.arrange" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelCrsdriverArrangeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CrsDriverArrangeParam Setter +// 请求对象 +func (r *AlitripTravelCrsdriverArrangeAPIRequest) SetCrsDriverArrangeParam(_crsDriverArrangeParam *CrsDriverArrangeParam) error { + r._crsDriverArrangeParam = _crsDriverArrangeParam + r.Set("crs_driver_arrange_param", _crsDriverArrangeParam) + return nil +} + +// CrsDriverArrangeParam Getter +func (r AlitripTravelCrsdriverArrangeAPIRequest) GetCrsDriverArrangeParam() *CrsDriverArrangeParam { + return r._crsDriverArrangeParam +} diff --git a/model/car/AlitripTravelCrsdriverArrangeAPIResponse.go b/model/car/AlitripTravelCrsdriverArrangeAPIResponse.go new file mode 100644 index 0000000000..b338d47ae5 --- /dev/null +++ b/model/car/AlitripTravelCrsdriverArrangeAPIResponse.go @@ -0,0 +1,29 @@ +package car + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +CRS接送机商家派司机接口 API返回值 +alitrip.travel.crsdriver.arrange + +提供给CRS接送机商家派司机的API +*/ +type AlitripTravelCrsdriverArrangeAPIResponse struct { + model.CommonResponse + AlitripTravelCrsdriverArrangeAPIResponseModel +} + +// CRS接送机商家派司机接口 成功返回结果 +type AlitripTravelCrsdriverArrangeAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_crsdriver_arrange_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回结果code + MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` +} diff --git a/model/car/AlitripTravelCrsdriverArrangeResponse.go b/model/car/AlitripTravelCrsdriverArrangeResponse.go deleted file mode 100644 index acbd56c2f5..0000000000 --- a/model/car/AlitripTravelCrsdriverArrangeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package car - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -CRS接送机商家派司机接口 API返回值 -alitrip.travel.crsdriver.arrange - -提供给CRS接送机商家派司机的API -*/ -type AlitripTravelCrsdriverArrangeAPIResponse struct { - model.CommonResponse - AlitripTravelCrsdriverArrangeResponse -} - -// CRS接送机商家派司机接口 成功返回结果 -type AlitripTravelCrsdriverArrangeResponse struct { - XMLName xml.Name `xml:"alitrip_travel_crsdriver_arrange_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 返回结果code - MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` -} diff --git a/model/car/AlitripTravelCrsorderCompleteAPIRequest.go b/model/car/AlitripTravelCrsorderCompleteAPIRequest.go new file mode 100644 index 0000000000..84abe34e7c --- /dev/null +++ b/model/car/AlitripTravelCrsorderCompleteAPIRequest.go @@ -0,0 +1,52 @@ +package car + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +CRS接送机商家服务完成接口 API请求 +alitrip.travel.crsorder.complete + +提供给CRS接送机商家的服务完成回调接口 +*/ +type AlitripTravelCrsorderCompleteAPIRequest struct { + model.Params + // 请求对象 + _crsOrderCompleteParam *CrsOrderCompleteParam +} + +// 初始化AlitripTravelCrsorderCompleteAPIRequest对象 +func NewAlitripTravelCrsorderCompleteRequest() *AlitripTravelCrsorderCompleteAPIRequest{ + return &AlitripTravelCrsorderCompleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelCrsorderCompleteAPIRequest) GetApiMethodName() string { + return "alitrip.travel.crsorder.complete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelCrsorderCompleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CrsOrderCompleteParam Setter +// 请求对象 +func (r *AlitripTravelCrsorderCompleteAPIRequest) SetCrsOrderCompleteParam(_crsOrderCompleteParam *CrsOrderCompleteParam) error { + r._crsOrderCompleteParam = _crsOrderCompleteParam + r.Set("crs_order_complete_param", _crsOrderCompleteParam) + return nil +} + +// CrsOrderCompleteParam Getter +func (r AlitripTravelCrsorderCompleteAPIRequest) GetCrsOrderCompleteParam() *CrsOrderCompleteParam { + return r._crsOrderCompleteParam +} diff --git a/model/car/AlitripTravelCrsorderCompleteAPIResponse.go b/model/car/AlitripTravelCrsorderCompleteAPIResponse.go new file mode 100644 index 0000000000..c5647c4343 --- /dev/null +++ b/model/car/AlitripTravelCrsorderCompleteAPIResponse.go @@ -0,0 +1,29 @@ +package car + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +CRS接送机商家服务完成接口 API返回值 +alitrip.travel.crsorder.complete + +提供给CRS接送机商家的服务完成回调接口 +*/ +type AlitripTravelCrsorderCompleteAPIResponse struct { + model.CommonResponse + AlitripTravelCrsorderCompleteAPIResponseModel +} + +// CRS接送机商家服务完成接口 成功返回结果 +type AlitripTravelCrsorderCompleteAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_crsorder_complete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回结果code + MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` +} diff --git a/model/car/AlitripTravelCrsorderCompleteResponse.go b/model/car/AlitripTravelCrsorderCompleteResponse.go deleted file mode 100644 index e8806d147f..0000000000 --- a/model/car/AlitripTravelCrsorderCompleteResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package car - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -CRS接送机商家服务完成接口 API返回值 -alitrip.travel.crsorder.complete - -提供给CRS接送机商家的服务完成回调接口 -*/ -type AlitripTravelCrsorderCompleteAPIResponse struct { - model.CommonResponse - AlitripTravelCrsorderCompleteResponse -} - -// CRS接送机商家服务完成接口 成功返回结果 -type AlitripTravelCrsorderCompleteResponse struct { - XMLName xml.Name `xml:"alitrip_travel_crsorder_complete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 返回结果code - MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` -} diff --git a/model/car/AlitripTravelCrsorderSearchAPIRequest.go b/model/car/AlitripTravelCrsorderSearchAPIRequest.go new file mode 100644 index 0000000000..50a95b3a61 --- /dev/null +++ b/model/car/AlitripTravelCrsorderSearchAPIRequest.go @@ -0,0 +1,164 @@ +package car + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +CRS接送机订单列表搜索 API请求 +alitrip.travel.crsorder.search + +提供给CRS商家搜索订单列表,仅返回订单号列表 +*/ +type AlitripTravelCrsorderSearchAPIRequest struct { + model.Params + // 订单状态,10-待派单,20-待用车,30-已取消,40-待处理退款申请,60-已关闭,70-已完成 + _crsOrderStatus int64 + // 用车时间-起始 + _beginCarUseTime string + // 页大小,默认20 + _pageSize int64 + // 用车时间-终止 + _endCarUseTime string + // 当前页,默认值1 + _currentPage int64 + // 支付时间-终止 + _endPayTime string + // 支付时间-起始 + _beginPayTime string + // 取消时间-起始 + _beginCancelTime string + // 取消时间-终止 + _endCancelTime string +} + +// 初始化AlitripTravelCrsorderSearchAPIRequest对象 +func NewAlitripTravelCrsorderSearchRequest() *AlitripTravelCrsorderSearchAPIRequest{ + return &AlitripTravelCrsorderSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelCrsorderSearchAPIRequest) GetApiMethodName() string { + return "alitrip.travel.crsorder.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelCrsorderSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CrsOrderStatus Setter +// 订单状态,10-待派单,20-待用车,30-已取消,40-待处理退款申请,60-已关闭,70-已完成 +func (r *AlitripTravelCrsorderSearchAPIRequest) SetCrsOrderStatus(_crsOrderStatus int64) error { + r._crsOrderStatus = _crsOrderStatus + r.Set("crs_order_status", _crsOrderStatus) + return nil +} + +// CrsOrderStatus Getter +func (r AlitripTravelCrsorderSearchAPIRequest) GetCrsOrderStatus() int64 { + return r._crsOrderStatus +} +// BeginCarUseTime Setter +// 用车时间-起始 +func (r *AlitripTravelCrsorderSearchAPIRequest) SetBeginCarUseTime(_beginCarUseTime string) error { + r._beginCarUseTime = _beginCarUseTime + r.Set("begin_car_use_time", _beginCarUseTime) + return nil +} + +// BeginCarUseTime Getter +func (r AlitripTravelCrsorderSearchAPIRequest) GetBeginCarUseTime() string { + return r._beginCarUseTime +} +// PageSize Setter +// 页大小,默认20 +func (r *AlitripTravelCrsorderSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlitripTravelCrsorderSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// EndCarUseTime Setter +// 用车时间-终止 +func (r *AlitripTravelCrsorderSearchAPIRequest) SetEndCarUseTime(_endCarUseTime string) error { + r._endCarUseTime = _endCarUseTime + r.Set("end_car_use_time", _endCarUseTime) + return nil +} + +// EndCarUseTime Getter +func (r AlitripTravelCrsorderSearchAPIRequest) GetEndCarUseTime() string { + return r._endCarUseTime +} +// CurrentPage Setter +// 当前页,默认值1 +func (r *AlitripTravelCrsorderSearchAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AlitripTravelCrsorderSearchAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// EndPayTime Setter +// 支付时间-终止 +func (r *AlitripTravelCrsorderSearchAPIRequest) SetEndPayTime(_endPayTime string) error { + r._endPayTime = _endPayTime + r.Set("end_pay_time", _endPayTime) + return nil +} + +// EndPayTime Getter +func (r AlitripTravelCrsorderSearchAPIRequest) GetEndPayTime() string { + return r._endPayTime +} +// BeginPayTime Setter +// 支付时间-起始 +func (r *AlitripTravelCrsorderSearchAPIRequest) SetBeginPayTime(_beginPayTime string) error { + r._beginPayTime = _beginPayTime + r.Set("begin_pay_time", _beginPayTime) + return nil +} + +// BeginPayTime Getter +func (r AlitripTravelCrsorderSearchAPIRequest) GetBeginPayTime() string { + return r._beginPayTime +} +// BeginCancelTime Setter +// 取消时间-起始 +func (r *AlitripTravelCrsorderSearchAPIRequest) SetBeginCancelTime(_beginCancelTime string) error { + r._beginCancelTime = _beginCancelTime + r.Set("begin_cancel_time", _beginCancelTime) + return nil +} + +// BeginCancelTime Getter +func (r AlitripTravelCrsorderSearchAPIRequest) GetBeginCancelTime() string { + return r._beginCancelTime +} +// EndCancelTime Setter +// 取消时间-终止 +func (r *AlitripTravelCrsorderSearchAPIRequest) SetEndCancelTime(_endCancelTime string) error { + r._endCancelTime = _endCancelTime + r.Set("end_cancel_time", _endCancelTime) + return nil +} + +// EndCancelTime Getter +func (r AlitripTravelCrsorderSearchAPIRequest) GetEndCancelTime() string { + return r._endCancelTime +} diff --git a/model/car/AlitripTravelCrsorderSearchAPIResponse.go b/model/car/AlitripTravelCrsorderSearchAPIResponse.go new file mode 100644 index 0000000000..fc19927298 --- /dev/null +++ b/model/car/AlitripTravelCrsorderSearchAPIResponse.go @@ -0,0 +1,27 @@ +package car + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +CRS接送机订单列表搜索 API返回值 +alitrip.travel.crsorder.search + +提供给CRS商家搜索订单列表,仅返回订单号列表 +*/ +type AlitripTravelCrsorderSearchAPIResponse struct { + model.CommonResponse + AlitripTravelCrsorderSearchAPIResponseModel +} + +// CRS接送机订单列表搜索 成功返回结果 +type AlitripTravelCrsorderSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_crsorder_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单id列表(string类型) + OrderStringList []string `json:"order_string_list,omitempty" xml:"order_string_list>string,omitempty"` +} diff --git a/model/car/AlitripTravelCrsorderSearchResponse.go b/model/car/AlitripTravelCrsorderSearchResponse.go deleted file mode 100644 index 084f0bdbf0..0000000000 --- a/model/car/AlitripTravelCrsorderSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package car - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -CRS接送机订单列表搜索 API返回值 -alitrip.travel.crsorder.search - -提供给CRS商家搜索订单列表,仅返回订单号列表 -*/ -type AlitripTravelCrsorderSearchAPIResponse struct { - model.CommonResponse - AlitripTravelCrsorderSearchResponse -} - -// CRS接送机订单列表搜索 成功返回结果 -type AlitripTravelCrsorderSearchResponse struct { - XMLName xml.Name `xml:"alitrip_travel_crsorder_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单id列表(string类型) - OrderStringList []string `json:"order_string_list,omitempty" xml:"order_string_list>string,omitempty"` -} diff --git a/model/car/TaobaoAlitripCarDriverStatusUpdateAPIRequest.go b/model/car/TaobaoAlitripCarDriverStatusUpdateAPIRequest.go new file mode 100644 index 0000000000..1f8b566497 --- /dev/null +++ b/model/car/TaobaoAlitripCarDriverStatusUpdateAPIRequest.go @@ -0,0 +1,136 @@ +package car + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +司机服务状态更新接口 API请求 +taobao.alitrip.car.driver.status.update + +飞猪用车业务回调接口,用于服务商实时回传更新司机当前服务状态 +*/ +type TaobaoAlitripCarDriverStatusUpdateAPIRequest struct { + model.Params + // 飞猪订单id + _orderId string + // 服务商订单id + _thirdOrderId string + // 服务商标识,由飞猪提供给到各服务商 + _providerId string + // 司机服务状态。1-司机已出发,2-司机已到达,3-司机已开始服务 + _status int64 + // 状态变更相应时间(如司机出发时间、司机到达时间、服务开始时间),格式:yyyy-mm-dd hh:mm:ss + _time string + // 可选,卖家id + _sellerId string + // 0:接送机 1:实时打车 2:租车(不传值默认为0) + _useType int64 +} + +// 初始化TaobaoAlitripCarDriverStatusUpdateAPIRequest对象 +func NewTaobaoAlitripCarDriverStatusUpdateRequest() *TaobaoAlitripCarDriverStatusUpdateAPIRequest{ + return &TaobaoAlitripCarDriverStatusUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripCarDriverStatusUpdateAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.car.driver.status.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripCarDriverStatusUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 飞猪订单id +func (r *TaobaoAlitripCarDriverStatusUpdateAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoAlitripCarDriverStatusUpdateAPIRequest) GetOrderId() string { + return r._orderId +} +// ThirdOrderId Setter +// 服务商订单id +func (r *TaobaoAlitripCarDriverStatusUpdateAPIRequest) SetThirdOrderId(_thirdOrderId string) error { + r._thirdOrderId = _thirdOrderId + r.Set("third_order_id", _thirdOrderId) + return nil +} + +// ThirdOrderId Getter +func (r TaobaoAlitripCarDriverStatusUpdateAPIRequest) GetThirdOrderId() string { + return r._thirdOrderId +} +// ProviderId Setter +// 服务商标识,由飞猪提供给到各服务商 +func (r *TaobaoAlitripCarDriverStatusUpdateAPIRequest) SetProviderId(_providerId string) error { + r._providerId = _providerId + r.Set("provider_id", _providerId) + return nil +} + +// ProviderId Getter +func (r TaobaoAlitripCarDriverStatusUpdateAPIRequest) GetProviderId() string { + return r._providerId +} +// Status Setter +// 司机服务状态。1-司机已出发,2-司机已到达,3-司机已开始服务 +func (r *TaobaoAlitripCarDriverStatusUpdateAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoAlitripCarDriverStatusUpdateAPIRequest) GetStatus() int64 { + return r._status +} +// Time Setter +// 状态变更相应时间(如司机出发时间、司机到达时间、服务开始时间),格式:yyyy-mm-dd hh:mm:ss +func (r *TaobaoAlitripCarDriverStatusUpdateAPIRequest) SetTime(_time string) error { + r._time = _time + r.Set("time", _time) + return nil +} + +// Time Getter +func (r TaobaoAlitripCarDriverStatusUpdateAPIRequest) GetTime() string { + return r._time +} +// SellerId Setter +// 可选,卖家id +func (r *TaobaoAlitripCarDriverStatusUpdateAPIRequest) SetSellerId(_sellerId string) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r TaobaoAlitripCarDriverStatusUpdateAPIRequest) GetSellerId() string { + return r._sellerId +} +// UseType Setter +// 0:接送机 1:实时打车 2:租车(不传值默认为0) +func (r *TaobaoAlitripCarDriverStatusUpdateAPIRequest) SetUseType(_useType int64) error { + r._useType = _useType + r.Set("use_type", _useType) + return nil +} + +// UseType Getter +func (r TaobaoAlitripCarDriverStatusUpdateAPIRequest) GetUseType() int64 { + return r._useType +} diff --git a/model/car/TaobaoAlitripCarDriverStatusUpdateAPIResponse.go b/model/car/TaobaoAlitripCarDriverStatusUpdateAPIResponse.go new file mode 100644 index 0000000000..9c1f8e8eda --- /dev/null +++ b/model/car/TaobaoAlitripCarDriverStatusUpdateAPIResponse.go @@ -0,0 +1,31 @@ +package car + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +司机服务状态更新接口 API返回值 +taobao.alitrip.car.driver.status.update + +飞猪用车业务回调接口,用于服务商实时回传更新司机当前服务状态 +*/ +type TaobaoAlitripCarDriverStatusUpdateAPIResponse struct { + model.CommonResponse + TaobaoAlitripCarDriverStatusUpdateAPIResponseModel +} + +// 司机服务状态更新接口 成功返回结果 +type TaobaoAlitripCarDriverStatusUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_car_driver_status_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 其它数据,预留,暂不使用 + Data string `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/car/TaobaoAlitripCarDriverStatusUpdateResponse.go b/model/car/TaobaoAlitripCarDriverStatusUpdateResponse.go deleted file mode 100644 index 910d0114d3..0000000000 --- a/model/car/TaobaoAlitripCarDriverStatusUpdateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package car - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -司机服务状态更新接口 API返回值 -taobao.alitrip.car.driver.status.update - -飞猪用车业务回调接口,用于服务商实时回传更新司机当前服务状态 -*/ -type TaobaoAlitripCarDriverStatusUpdateAPIResponse struct { - model.CommonResponse - TaobaoAlitripCarDriverStatusUpdateResponse -} - -// 司机服务状态更新接口 成功返回结果 -type TaobaoAlitripCarDriverStatusUpdateResponse struct { - XMLName xml.Name `xml:"alitrip_car_driver_status_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 其它数据,预留,暂不使用 - Data string `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/car/TaobaoAlitripCarOrderAcceptAPIRequest.go b/model/car/TaobaoAlitripCarOrderAcceptAPIRequest.go new file mode 100644 index 0000000000..2660c04fac --- /dev/null +++ b/model/car/TaobaoAlitripCarOrderAcceptAPIRequest.go @@ -0,0 +1,52 @@ +package car + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +确认接单 API请求 +taobao.alitrip.car.order.accept + +用来接收服务商确认接单信息 +*/ +type TaobaoAlitripCarOrderAcceptAPIRequest struct { + model.Params + // 确认订单请求 + _paramOrderAccept *OrderAccept +} + +// 初始化TaobaoAlitripCarOrderAcceptAPIRequest对象 +func NewTaobaoAlitripCarOrderAcceptRequest() *TaobaoAlitripCarOrderAcceptAPIRequest{ + return &TaobaoAlitripCarOrderAcceptAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripCarOrderAcceptAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.car.order.accept" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripCarOrderAcceptAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamOrderAccept Setter +// 确认订单请求 +func (r *TaobaoAlitripCarOrderAcceptAPIRequest) SetParamOrderAccept(_paramOrderAccept *OrderAccept) error { + r._paramOrderAccept = _paramOrderAccept + r.Set("param_order_accept", _paramOrderAccept) + return nil +} + +// ParamOrderAccept Getter +func (r TaobaoAlitripCarOrderAcceptAPIRequest) GetParamOrderAccept() *OrderAccept { + return r._paramOrderAccept +} diff --git a/model/car/TaobaoAlitripCarOrderAcceptAPIResponse.go b/model/car/TaobaoAlitripCarOrderAcceptAPIResponse.go new file mode 100644 index 0000000000..8e5aca982e --- /dev/null +++ b/model/car/TaobaoAlitripCarOrderAcceptAPIResponse.go @@ -0,0 +1,27 @@ +package car + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +确认接单 API返回值 +taobao.alitrip.car.order.accept + +用来接收服务商确认接单信息 +*/ +type TaobaoAlitripCarOrderAcceptAPIResponse struct { + model.CommonResponse + TaobaoAlitripCarOrderAcceptAPIResponseModel +} + +// 确认接单 成功返回结果 +type TaobaoAlitripCarOrderAcceptAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_car_order_accept_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 根据站点名称查询产品 + Result *TaobaoAlitripCarOrderAcceptApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/car/TaobaoAlitripCarOrderAcceptResponse.go b/model/car/TaobaoAlitripCarOrderAcceptResponse.go deleted file mode 100644 index 5bc0500729..0000000000 --- a/model/car/TaobaoAlitripCarOrderAcceptResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package car - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -确认接单 API返回值 -taobao.alitrip.car.order.accept - -用来接收服务商确认接单信息 -*/ -type TaobaoAlitripCarOrderAcceptAPIResponse struct { - model.CommonResponse - TaobaoAlitripCarOrderAcceptResponse -} - -// 确认接单 成功返回结果 -type TaobaoAlitripCarOrderAcceptResponse struct { - XMLName xml.Name `xml:"alitrip_car_order_accept_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 根据站点名称查询产品 - Result *TaobaoAlitripCarOrderAcceptApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/car/TaobaoAlitripCarOrderCompleteAPIRequest.go b/model/car/TaobaoAlitripCarOrderCompleteAPIRequest.go new file mode 100644 index 0000000000..d087169396 --- /dev/null +++ b/model/car/TaobaoAlitripCarOrderCompleteAPIRequest.go @@ -0,0 +1,52 @@ +package car + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务完成API API请求 +taobao.alitrip.car.order.complete + +用来接收服务商订单流程完成信息 +*/ +type TaobaoAlitripCarOrderCompleteAPIRequest struct { + model.Params + // 服务完成API + _paramOrderComplete *OrderComplete +} + +// 初始化TaobaoAlitripCarOrderCompleteAPIRequest对象 +func NewTaobaoAlitripCarOrderCompleteRequest() *TaobaoAlitripCarOrderCompleteAPIRequest{ + return &TaobaoAlitripCarOrderCompleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripCarOrderCompleteAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.car.order.complete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripCarOrderCompleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamOrderComplete Setter +// 服务完成API +func (r *TaobaoAlitripCarOrderCompleteAPIRequest) SetParamOrderComplete(_paramOrderComplete *OrderComplete) error { + r._paramOrderComplete = _paramOrderComplete + r.Set("param_order_complete", _paramOrderComplete) + return nil +} + +// ParamOrderComplete Getter +func (r TaobaoAlitripCarOrderCompleteAPIRequest) GetParamOrderComplete() *OrderComplete { + return r._paramOrderComplete +} diff --git a/model/car/TaobaoAlitripCarOrderCompleteAPIResponse.go b/model/car/TaobaoAlitripCarOrderCompleteAPIResponse.go new file mode 100644 index 0000000000..dccfffa073 --- /dev/null +++ b/model/car/TaobaoAlitripCarOrderCompleteAPIResponse.go @@ -0,0 +1,31 @@ +package car + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务完成API API返回值 +taobao.alitrip.car.order.complete + +用来接收服务商订单流程完成信息 +*/ +type TaobaoAlitripCarOrderCompleteAPIResponse struct { + model.CommonResponse + TaobaoAlitripCarOrderCompleteAPIResponseModel +} + +// 服务完成API 成功返回结果 +type TaobaoAlitripCarOrderCompleteAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_car_order_complete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` + // 其它数据 + Data string `json:"data,omitempty" xml:"data,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/car/TaobaoAlitripCarOrderCompleteResponse.go b/model/car/TaobaoAlitripCarOrderCompleteResponse.go deleted file mode 100644 index d4d192b6a7..0000000000 --- a/model/car/TaobaoAlitripCarOrderCompleteResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package car - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务完成API API返回值 -taobao.alitrip.car.order.complete - -用来接收服务商订单流程完成信息 -*/ -type TaobaoAlitripCarOrderCompleteAPIResponse struct { - model.CommonResponse - TaobaoAlitripCarOrderCompleteResponse -} - -// 服务完成API 成功返回结果 -type TaobaoAlitripCarOrderCompleteResponse struct { - XMLName xml.Name `xml:"alitrip_car_order_complete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` - // 其它数据 - Data string `json:"data,omitempty" xml:"data,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/car/TaobaoAlitripCarOrderConfirmAPIRequest.go b/model/car/TaobaoAlitripCarOrderConfirmAPIRequest.go new file mode 100644 index 0000000000..085131e767 --- /dev/null +++ b/model/car/TaobaoAlitripCarOrderConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package car + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +司机应答API API请求 +taobao.alitrip.car.order.confirm + +航旅事业群-度假事业部-旅行用车项目组对外部服务商提供的司机应答回调接口 +*/ +type TaobaoAlitripCarOrderConfirmAPIRequest struct { + model.Params + // 请求对象 + _paramOrderConfirm *OrderConfirm +} + +// 初始化TaobaoAlitripCarOrderConfirmAPIRequest对象 +func NewTaobaoAlitripCarOrderConfirmRequest() *TaobaoAlitripCarOrderConfirmAPIRequest{ + return &TaobaoAlitripCarOrderConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripCarOrderConfirmAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.car.order.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripCarOrderConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamOrderConfirm Setter +// 请求对象 +func (r *TaobaoAlitripCarOrderConfirmAPIRequest) SetParamOrderConfirm(_paramOrderConfirm *OrderConfirm) error { + r._paramOrderConfirm = _paramOrderConfirm + r.Set("param_order_confirm", _paramOrderConfirm) + return nil +} + +// ParamOrderConfirm Getter +func (r TaobaoAlitripCarOrderConfirmAPIRequest) GetParamOrderConfirm() *OrderConfirm { + return r._paramOrderConfirm +} diff --git a/model/car/TaobaoAlitripCarOrderConfirmAPIResponse.go b/model/car/TaobaoAlitripCarOrderConfirmAPIResponse.go new file mode 100644 index 0000000000..8971eae181 --- /dev/null +++ b/model/car/TaobaoAlitripCarOrderConfirmAPIResponse.go @@ -0,0 +1,31 @@ +package car + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +司机应答API API返回值 +taobao.alitrip.car.order.confirm + +航旅事业群-度假事业部-旅行用车项目组对外部服务商提供的司机应答回调接口 +*/ +type TaobaoAlitripCarOrderConfirmAPIResponse struct { + model.CommonResponse + TaobaoAlitripCarOrderConfirmAPIResponseModel +} + +// 司机应答API 成功返回结果 +type TaobaoAlitripCarOrderConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_car_order_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` + // 其它数据 + Data string `json:"data,omitempty" xml:"data,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/car/TaobaoAlitripCarOrderConfirmResponse.go b/model/car/TaobaoAlitripCarOrderConfirmResponse.go deleted file mode 100644 index 78e0ce134e..0000000000 --- a/model/car/TaobaoAlitripCarOrderConfirmResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package car - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -司机应答API API返回值 -taobao.alitrip.car.order.confirm - -航旅事业群-度假事业部-旅行用车项目组对外部服务商提供的司机应答回调接口 -*/ -type TaobaoAlitripCarOrderConfirmAPIResponse struct { - model.CommonResponse - TaobaoAlitripCarOrderConfirmResponse -} - -// 司机应答API 成功返回结果 -type TaobaoAlitripCarOrderConfirmResponse struct { - XMLName xml.Name `xml:"alitrip_car_order_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` - // 其它数据 - Data string `json:"data,omitempty" xml:"data,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/car/TaobaoAlitripCarOrderQueryAPIRequest.go b/model/car/TaobaoAlitripCarOrderQueryAPIRequest.go new file mode 100644 index 0000000000..67c74a587f --- /dev/null +++ b/model/car/TaobaoAlitripCarOrderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package car + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪订单状态查询接口 API请求 +taobao.alitrip.car.order.query + +提供给直连商家查询在飞猪平台上产生的订单 +*/ +type TaobaoAlitripCarOrderQueryAPIRequest struct { + model.Params + // 飞猪平台订单id + _orderId string +} + +// 初始化TaobaoAlitripCarOrderQueryAPIRequest对象 +func NewTaobaoAlitripCarOrderQueryRequest() *TaobaoAlitripCarOrderQueryAPIRequest{ + return &TaobaoAlitripCarOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripCarOrderQueryAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.car.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripCarOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 飞猪平台订单id +func (r *TaobaoAlitripCarOrderQueryAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoAlitripCarOrderQueryAPIRequest) GetOrderId() string { + return r._orderId +} diff --git a/model/car/TaobaoAlitripCarOrderQueryAPIResponse.go b/model/car/TaobaoAlitripCarOrderQueryAPIResponse.go new file mode 100644 index 0000000000..924835879d --- /dev/null +++ b/model/car/TaobaoAlitripCarOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package car + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪订单状态查询接口 API返回值 +taobao.alitrip.car.order.query + +提供给直连商家查询在飞猪平台上产生的订单 +*/ +type TaobaoAlitripCarOrderQueryAPIResponse struct { + model.CommonResponse + TaobaoAlitripCarOrderQueryAPIResponseModel +} + +// 飞猪订单状态查询接口 成功返回结果 +type TaobaoAlitripCarOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_car_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单结果 + FirstResult *OrderQueryRsp `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/car/TaobaoAlitripCarOrderQueryResponse.go b/model/car/TaobaoAlitripCarOrderQueryResponse.go deleted file mode 100644 index c0dec3e822..0000000000 --- a/model/car/TaobaoAlitripCarOrderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package car - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -飞猪订单状态查询接口 API返回值 -taobao.alitrip.car.order.query - -提供给直连商家查询在飞猪平台上产生的订单 -*/ -type TaobaoAlitripCarOrderQueryAPIResponse struct { - model.CommonResponse - TaobaoAlitripCarOrderQueryResponse -} - -// 飞猪订单状态查询接口 成功返回结果 -type TaobaoAlitripCarOrderQueryResponse struct { - XMLName xml.Name `xml:"alitrip_car_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单结果 - FirstResult *OrderQueryRsp `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/car/TaobaoAlitripCarOrderStatusAPIRequest.go b/model/car/TaobaoAlitripCarOrderStatusAPIRequest.go new file mode 100644 index 0000000000..e9477d5cc9 --- /dev/null +++ b/model/car/TaobaoAlitripCarOrderStatusAPIRequest.go @@ -0,0 +1,94 @@ +package car + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家订单状态改变通知接口(神州专车接口) API请求 +taobao.alitrip.car.order.status + +商家订单状态改变通知接口,神州专车专用接口! +*/ +type TaobaoAlitripCarOrderStatusAPIRequest struct { + model.Params + // 固定值:statusChanged + _operation string + // 飞猪订单ID + _orderId string + // 服务商ID + _providerId string + // 司机服务状态。arriving-司机已出发,arrived-司机已到达,serviceStarted-已开始服务,serviceFinished-已结束服务 + _status string +} + +// 初始化TaobaoAlitripCarOrderStatusAPIRequest对象 +func NewTaobaoAlitripCarOrderStatusRequest() *TaobaoAlitripCarOrderStatusAPIRequest{ + return &TaobaoAlitripCarOrderStatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripCarOrderStatusAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.car.order.status" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripCarOrderStatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Operation Setter +// 固定值:statusChanged +func (r *TaobaoAlitripCarOrderStatusAPIRequest) SetOperation(_operation string) error { + r._operation = _operation + r.Set("operation", _operation) + return nil +} + +// Operation Getter +func (r TaobaoAlitripCarOrderStatusAPIRequest) GetOperation() string { + return r._operation +} +// OrderId Setter +// 飞猪订单ID +func (r *TaobaoAlitripCarOrderStatusAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoAlitripCarOrderStatusAPIRequest) GetOrderId() string { + return r._orderId +} +// ProviderId Setter +// 服务商ID +func (r *TaobaoAlitripCarOrderStatusAPIRequest) SetProviderId(_providerId string) error { + r._providerId = _providerId + r.Set("provider_id", _providerId) + return nil +} + +// ProviderId Getter +func (r TaobaoAlitripCarOrderStatusAPIRequest) GetProviderId() string { + return r._providerId +} +// Status Setter +// 司机服务状态。arriving-司机已出发,arrived-司机已到达,serviceStarted-已开始服务,serviceFinished-已结束服务 +func (r *TaobaoAlitripCarOrderStatusAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoAlitripCarOrderStatusAPIRequest) GetStatus() string { + return r._status +} diff --git a/model/car/TaobaoAlitripCarOrderStatusAPIResponse.go b/model/car/TaobaoAlitripCarOrderStatusAPIResponse.go new file mode 100644 index 0000000000..42c8353bfd --- /dev/null +++ b/model/car/TaobaoAlitripCarOrderStatusAPIResponse.go @@ -0,0 +1,27 @@ +package car + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家订单状态改变通知接口(神州专车接口) API返回值 +taobao.alitrip.car.order.status + +商家订单状态改变通知接口,神州专车专用接口! +*/ +type TaobaoAlitripCarOrderStatusAPIResponse struct { + model.CommonResponse + TaobaoAlitripCarOrderStatusAPIResponseModel +} + +// 商家订单状态改变通知接口(神州专车接口) 成功返回结果 +type TaobaoAlitripCarOrderStatusAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_car_order_status_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 根据站点名称查询产品 + Result *TaobaoAlitripCarOrderStatusApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/car/TaobaoAlitripCarOrderStatusResponse.go b/model/car/TaobaoAlitripCarOrderStatusResponse.go deleted file mode 100644 index 0f717a3ddb..0000000000 --- a/model/car/TaobaoAlitripCarOrderStatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package car - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家订单状态改变通知接口(神州专车接口) API返回值 -taobao.alitrip.car.order.status - -商家订单状态改变通知接口,神州专车专用接口! -*/ -type TaobaoAlitripCarOrderStatusAPIResponse struct { - model.CommonResponse - TaobaoAlitripCarOrderStatusResponse -} - -// 商家订单状态改变通知接口(神州专车接口) 成功返回结果 -type TaobaoAlitripCarOrderStatusResponse struct { - XMLName xml.Name `xml:"alitrip_car_order_status_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 根据站点名称查询产品 - Result *TaobaoAlitripCarOrderStatusApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/car/TaobaoAlitripCarRentOrderCancelAPIRequest.go b/model/car/TaobaoAlitripCarRentOrderCancelAPIRequest.go new file mode 100644 index 0000000000..4e006a6a8f --- /dev/null +++ b/model/car/TaobaoAlitripCarRentOrderCancelAPIRequest.go @@ -0,0 +1,52 @@ +package car + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +租车-取消订单 API请求 +taobao.alitrip.car.rent.order.cancel + +服务商主动取消用户订单或者拒绝取消订单. +*/ +type TaobaoAlitripCarRentOrderCancelAPIRequest struct { + model.Params + // 取消请求对象 + _param0 *RentProviderCancelRequest +} + +// 初始化TaobaoAlitripCarRentOrderCancelAPIRequest对象 +func NewTaobaoAlitripCarRentOrderCancelRequest() *TaobaoAlitripCarRentOrderCancelAPIRequest{ + return &TaobaoAlitripCarRentOrderCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripCarRentOrderCancelAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.car.rent.order.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripCarRentOrderCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 取消请求对象 +func (r *TaobaoAlitripCarRentOrderCancelAPIRequest) SetParam0(_param0 *RentProviderCancelRequest) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoAlitripCarRentOrderCancelAPIRequest) GetParam0() *RentProviderCancelRequest { + return r._param0 +} diff --git a/model/car/TaobaoAlitripCarRentOrderCancelAPIResponse.go b/model/car/TaobaoAlitripCarRentOrderCancelAPIResponse.go new file mode 100644 index 0000000000..36d5620208 --- /dev/null +++ b/model/car/TaobaoAlitripCarRentOrderCancelAPIResponse.go @@ -0,0 +1,33 @@ +package car + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +租车-取消订单 API返回值 +taobao.alitrip.car.rent.order.cancel + +服务商主动取消用户订单或者拒绝取消订单. +*/ +type TaobaoAlitripCarRentOrderCancelAPIResponse struct { + model.CommonResponse + TaobaoAlitripCarRentOrderCancelAPIResponseModel +} + +// 租车-取消订单 成功返回结果 +type TaobaoAlitripCarRentOrderCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_car_rent_order_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 扩展对象 + Models string `json:"models,omitempty" xml:"models,omitempty"` + // 结果对象 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 结果码 + C int64 `json:"c,omitempty" xml:"c,omitempty"` +} diff --git a/model/car/TaobaoAlitripCarRentOrderCancelResponse.go b/model/car/TaobaoAlitripCarRentOrderCancelResponse.go deleted file mode 100644 index 96c0d1e669..0000000000 --- a/model/car/TaobaoAlitripCarRentOrderCancelResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package car - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -租车-取消订单 API返回值 -taobao.alitrip.car.rent.order.cancel - -服务商主动取消用户订单或者拒绝取消订单. -*/ -type TaobaoAlitripCarRentOrderCancelAPIResponse struct { - model.CommonResponse - TaobaoAlitripCarRentOrderCancelResponse -} - -// 租车-取消订单 成功返回结果 -type TaobaoAlitripCarRentOrderCancelResponse struct { - XMLName xml.Name `xml:"alitrip_car_rent_order_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误消息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 扩展对象 - Models string `json:"models,omitempty" xml:"models,omitempty"` - // 结果对象 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 结果码 - C int64 `json:"c,omitempty" xml:"c,omitempty"` -} diff --git a/model/car/TaobaoAlitripDomesticRentCarStatusUpdateAPIRequest.go b/model/car/TaobaoAlitripDomesticRentCarStatusUpdateAPIRequest.go new file mode 100644 index 0000000000..929ae4a26d --- /dev/null +++ b/model/car/TaobaoAlitripDomesticRentCarStatusUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package car + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +航旅国内租车订单状态更新 API请求 +taobao.alitrip.domestic.rent.car.status.update + +航旅国内租车订单状态更新 +*/ +type TaobaoAlitripDomesticRentCarStatusUpdateAPIRequest struct { + model.Params + // 121-用车中(用户取车成功) 122-待结算(用户还车成功) + _status int64 + // 服务商平台订单号 + _thirdOrderId string + // 飞猪平台订单号 + _orderId string + // 服务商标识,由飞猪提供给到各服务商 + _providerId string +} + +// 初始化TaobaoAlitripDomesticRentCarStatusUpdateAPIRequest对象 +func NewTaobaoAlitripDomesticRentCarStatusUpdateRequest() *TaobaoAlitripDomesticRentCarStatusUpdateAPIRequest{ + return &TaobaoAlitripDomesticRentCarStatusUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripDomesticRentCarStatusUpdateAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.domestic.rent.car.status.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripDomesticRentCarStatusUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Status Setter +// 121-用车中(用户取车成功) 122-待结算(用户还车成功) +func (r *TaobaoAlitripDomesticRentCarStatusUpdateAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoAlitripDomesticRentCarStatusUpdateAPIRequest) GetStatus() int64 { + return r._status +} +// ThirdOrderId Setter +// 服务商平台订单号 +func (r *TaobaoAlitripDomesticRentCarStatusUpdateAPIRequest) SetThirdOrderId(_thirdOrderId string) error { + r._thirdOrderId = _thirdOrderId + r.Set("third_order_id", _thirdOrderId) + return nil +} + +// ThirdOrderId Getter +func (r TaobaoAlitripDomesticRentCarStatusUpdateAPIRequest) GetThirdOrderId() string { + return r._thirdOrderId +} +// OrderId Setter +// 飞猪平台订单号 +func (r *TaobaoAlitripDomesticRentCarStatusUpdateAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoAlitripDomesticRentCarStatusUpdateAPIRequest) GetOrderId() string { + return r._orderId +} +// ProviderId Setter +// 服务商标识,由飞猪提供给到各服务商 +func (r *TaobaoAlitripDomesticRentCarStatusUpdateAPIRequest) SetProviderId(_providerId string) error { + r._providerId = _providerId + r.Set("provider_id", _providerId) + return nil +} + +// ProviderId Getter +func (r TaobaoAlitripDomesticRentCarStatusUpdateAPIRequest) GetProviderId() string { + return r._providerId +} diff --git a/model/car/TaobaoAlitripDomesticRentCarStatusUpdateAPIResponse.go b/model/car/TaobaoAlitripDomesticRentCarStatusUpdateAPIResponse.go new file mode 100644 index 0000000000..59e8cb0c74 --- /dev/null +++ b/model/car/TaobaoAlitripDomesticRentCarStatusUpdateAPIResponse.go @@ -0,0 +1,31 @@ +package car + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +航旅国内租车订单状态更新 API返回值 +taobao.alitrip.domestic.rent.car.status.update + +航旅国内租车订单状态更新 +*/ +type TaobaoAlitripDomesticRentCarStatusUpdateAPIResponse struct { + model.CommonResponse + TaobaoAlitripDomesticRentCarStatusUpdateAPIResponseModel +} + +// 航旅国内租车订单状态更新 成功返回结果 +type TaobaoAlitripDomesticRentCarStatusUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_domestic_rent_car_status_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 其它数据,预留,暂不使用 + Data string `json:"data,omitempty" xml:"data,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 错误码.code为0时表示成功 + MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` +} diff --git a/model/car/TaobaoAlitripDomesticRentCarStatusUpdateResponse.go b/model/car/TaobaoAlitripDomesticRentCarStatusUpdateResponse.go deleted file mode 100644 index 7d8d582328..0000000000 --- a/model/car/TaobaoAlitripDomesticRentCarStatusUpdateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package car - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -航旅国内租车订单状态更新 API返回值 -taobao.alitrip.domestic.rent.car.status.update - -航旅国内租车订单状态更新 -*/ -type TaobaoAlitripDomesticRentCarStatusUpdateAPIResponse struct { - model.CommonResponse - TaobaoAlitripDomesticRentCarStatusUpdateResponse -} - -// 航旅国内租车订单状态更新 成功返回结果 -type TaobaoAlitripDomesticRentCarStatusUpdateResponse struct { - XMLName xml.Name `xml:"alitrip_domestic_rent_car_status_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 其它数据,预留,暂不使用 - Data string `json:"data,omitempty" xml:"data,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 错误码.code为0时表示成功 - MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` -} diff --git a/model/category/AlibabaImapCategoryPredictAPIRequest.go b/model/category/AlibabaImapCategoryPredictAPIRequest.go new file mode 100644 index 0000000000..85136bf541 --- /dev/null +++ b/model/category/AlibabaImapCategoryPredictAPIRequest.go @@ -0,0 +1,68 @@ +package category + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +类目预测接口 API请求 +alibaba.imap.category.predict + +* 类目预测接口 + * 【必填字段】 title, srcChannelId, srcCategoryId, targetChannelId + * 【非必填,但有最好填上】itemId, barcode, brandName, pvPairDOList, srcCatNamePathList +*/ +type AlibabaImapCategoryPredictAPIRequest struct { + model.Params + // 入参DO + _topImapItemDo *TopImapItemDo + // 账号信息 + _fixedMappingAppInfo *FixedMappingAppInfo +} + +// 初始化AlibabaImapCategoryPredictAPIRequest对象 +func NewAlibabaImapCategoryPredictRequest() *AlibabaImapCategoryPredictAPIRequest{ + return &AlibabaImapCategoryPredictAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaImapCategoryPredictAPIRequest) GetApiMethodName() string { + return "alibaba.imap.category.predict" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaImapCategoryPredictAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TopImapItemDo Setter +// 入参DO +func (r *AlibabaImapCategoryPredictAPIRequest) SetTopImapItemDo(_topImapItemDo *TopImapItemDo) error { + r._topImapItemDo = _topImapItemDo + r.Set("top_imap_item_do", _topImapItemDo) + return nil +} + +// TopImapItemDo Getter +func (r AlibabaImapCategoryPredictAPIRequest) GetTopImapItemDo() *TopImapItemDo { + return r._topImapItemDo +} +// FixedMappingAppInfo Setter +// 账号信息 +func (r *AlibabaImapCategoryPredictAPIRequest) SetFixedMappingAppInfo(_fixedMappingAppInfo *FixedMappingAppInfo) error { + r._fixedMappingAppInfo = _fixedMappingAppInfo + r.Set("fixed_mapping_app_info", _fixedMappingAppInfo) + return nil +} + +// FixedMappingAppInfo Getter +func (r AlibabaImapCategoryPredictAPIRequest) GetFixedMappingAppInfo() *FixedMappingAppInfo { + return r._fixedMappingAppInfo +} diff --git a/model/category/AlibabaImapCategoryPredictAPIResponse.go b/model/category/AlibabaImapCategoryPredictAPIResponse.go new file mode 100644 index 0000000000..1130a216c4 --- /dev/null +++ b/model/category/AlibabaImapCategoryPredictAPIResponse.go @@ -0,0 +1,29 @@ +package category + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +类目预测接口 API返回值 +alibaba.imap.category.predict + +* 类目预测接口 + * 【必填字段】 title, srcChannelId, srcCategoryId, targetChannelId + * 【非必填,但有最好填上】itemId, barcode, brandName, pvPairDOList, srcCatNamePathList +*/ +type AlibabaImapCategoryPredictAPIResponse struct { + model.CommonResponse + AlibabaImapCategoryPredictAPIResponseModel +} + +// 类目预测接口 成功返回结果 +type AlibabaImapCategoryPredictAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_imap_category_predict_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaImapCategoryPredictResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/category/AlibabaImapCategoryPredictResponse.go b/model/category/AlibabaImapCategoryPredictResponse.go deleted file mode 100644 index 87ce895b91..0000000000 --- a/model/category/AlibabaImapCategoryPredictResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package category - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -类目预测接口 API返回值 -alibaba.imap.category.predict - -* 类目预测接口 - * 【必填字段】 title, srcChannelId, srcCategoryId, targetChannelId - * 【非必填,但有最好填上】itemId, barcode, brandName, pvPairDOList, srcCatNamePathList -*/ -type AlibabaImapCategoryPredictAPIResponse struct { - model.CommonResponse - AlibabaImapCategoryPredictResponse -} - -// 类目预测接口 成功返回结果 -type AlibabaImapCategoryPredictResponse struct { - XMLName xml.Name `xml:"alibaba_imap_category_predict_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaImapCategoryPredictResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/category/AlibabaImapFixedmappingQueryAPIRequest.go b/model/category/AlibabaImapFixedmappingQueryAPIRequest.go new file mode 100644 index 0000000000..b1053868a3 --- /dev/null +++ b/model/category/AlibabaImapFixedmappingQueryAPIRequest.go @@ -0,0 +1,122 @@ +package category + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询两个渠道之间的固定映射关系,不通过算法兜底 API请求 +alibaba.imap.fixedmapping.query + +查询两个渠道之间的固定映射关系,不通过算法兜底 +*/ +type AlibabaImapFixedmappingQueryAPIRequest struct { + model.Params + // 密码 + _password string + // 账号 + _appName string + // 源渠道ID + _srcChannelId int64 + // 目标渠道ID列表 + _targetChannelIdList []int64 + // 目标渠道ID + _targetCategoryId int64 + // 源类目ID + _srcCategoryId int64 +} + +// 初始化AlibabaImapFixedmappingQueryAPIRequest对象 +func NewAlibabaImapFixedmappingQueryRequest() *AlibabaImapFixedmappingQueryAPIRequest{ + return &AlibabaImapFixedmappingQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaImapFixedmappingQueryAPIRequest) GetApiMethodName() string { + return "alibaba.imap.fixedmapping.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaImapFixedmappingQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Password Setter +// 密码 +func (r *AlibabaImapFixedmappingQueryAPIRequest) SetPassword(_password string) error { + r._password = _password + r.Set("password", _password) + return nil +} + +// Password Getter +func (r AlibabaImapFixedmappingQueryAPIRequest) GetPassword() string { + return r._password +} +// AppName Setter +// 账号 +func (r *AlibabaImapFixedmappingQueryAPIRequest) SetAppName(_appName string) error { + r._appName = _appName + r.Set("app_name", _appName) + return nil +} + +// AppName Getter +func (r AlibabaImapFixedmappingQueryAPIRequest) GetAppName() string { + return r._appName +} +// SrcChannelId Setter +// 源渠道ID +func (r *AlibabaImapFixedmappingQueryAPIRequest) SetSrcChannelId(_srcChannelId int64) error { + r._srcChannelId = _srcChannelId + r.Set("src_channel_id", _srcChannelId) + return nil +} + +// SrcChannelId Getter +func (r AlibabaImapFixedmappingQueryAPIRequest) GetSrcChannelId() int64 { + return r._srcChannelId +} +// TargetChannelIdList Setter +// 目标渠道ID列表 +func (r *AlibabaImapFixedmappingQueryAPIRequest) SetTargetChannelIdList(_targetChannelIdList []int64) error { + r._targetChannelIdList = _targetChannelIdList + r.Set("target_channel_id_list", _targetChannelIdList) + return nil +} + +// TargetChannelIdList Getter +func (r AlibabaImapFixedmappingQueryAPIRequest) GetTargetChannelIdList() []int64 { + return r._targetChannelIdList +} +// TargetCategoryId Setter +// 目标渠道ID +func (r *AlibabaImapFixedmappingQueryAPIRequest) SetTargetCategoryId(_targetCategoryId int64) error { + r._targetCategoryId = _targetCategoryId + r.Set("target_category_id", _targetCategoryId) + return nil +} + +// TargetCategoryId Getter +func (r AlibabaImapFixedmappingQueryAPIRequest) GetTargetCategoryId() int64 { + return r._targetCategoryId +} +// SrcCategoryId Setter +// 源类目ID +func (r *AlibabaImapFixedmappingQueryAPIRequest) SetSrcCategoryId(_srcCategoryId int64) error { + r._srcCategoryId = _srcCategoryId + r.Set("src_category_id", _srcCategoryId) + return nil +} + +// SrcCategoryId Getter +func (r AlibabaImapFixedmappingQueryAPIRequest) GetSrcCategoryId() int64 { + return r._srcCategoryId +} diff --git a/model/category/AlibabaImapFixedmappingQueryAPIResponse.go b/model/category/AlibabaImapFixedmappingQueryAPIResponse.go new file mode 100644 index 0000000000..0a5515aecf --- /dev/null +++ b/model/category/AlibabaImapFixedmappingQueryAPIResponse.go @@ -0,0 +1,27 @@ +package category + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询两个渠道之间的固定映射关系,不通过算法兜底 API返回值 +alibaba.imap.fixedmapping.query + +查询两个渠道之间的固定映射关系,不通过算法兜底 +*/ +type AlibabaImapFixedmappingQueryAPIResponse struct { + model.CommonResponse + AlibabaImapFixedmappingQueryAPIResponseModel +} + +// 查询两个渠道之间的固定映射关系,不通过算法兜底 成功返回结果 +type AlibabaImapFixedmappingQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_imap_fixedmapping_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaImapFixedmappingQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/category/AlibabaImapFixedmappingQueryResponse.go b/model/category/AlibabaImapFixedmappingQueryResponse.go deleted file mode 100644 index f48e6da0a6..0000000000 --- a/model/category/AlibabaImapFixedmappingQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package category - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询两个渠道之间的固定映射关系,不通过算法兜底 API返回值 -alibaba.imap.fixedmapping.query - -查询两个渠道之间的固定映射关系,不通过算法兜底 -*/ -type AlibabaImapFixedmappingQueryAPIResponse struct { - model.CommonResponse - AlibabaImapFixedmappingQueryResponse -} - -// 查询两个渠道之间的固定映射关系,不通过算法兜底 成功返回结果 -type AlibabaImapFixedmappingQueryResponse struct { - XMLName xml.Name `xml:"alibaba_imap_fixedmapping_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaImapFixedmappingQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/category/AlibabaImapPvAutofillAPIRequest.go b/model/category/AlibabaImapPvAutofillAPIRequest.go new file mode 100644 index 0000000000..6dee9bc7e6 --- /dev/null +++ b/model/category/AlibabaImapPvAutofillAPIRequest.go @@ -0,0 +1,52 @@ +package category + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +属性回填接口 API请求 +alibaba.imap.pv.autofill + +根据用户传入的标题、目标渠道id,目标渠道叶子类目,预测其对应的pv信息,返回给业务方,供其自动填充属性项属性值信息 +*/ +type AlibabaImapPvAutofillAPIRequest struct { + model.Params + // 系统入参 + _topImapItemDo *TopImapItemDo +} + +// 初始化AlibabaImapPvAutofillAPIRequest对象 +func NewAlibabaImapPvAutofillRequest() *AlibabaImapPvAutofillAPIRequest{ + return &AlibabaImapPvAutofillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaImapPvAutofillAPIRequest) GetApiMethodName() string { + return "alibaba.imap.pv.autofill" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaImapPvAutofillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TopImapItemDo Setter +// 系统入参 +func (r *AlibabaImapPvAutofillAPIRequest) SetTopImapItemDo(_topImapItemDo *TopImapItemDo) error { + r._topImapItemDo = _topImapItemDo + r.Set("top_imap_item_do", _topImapItemDo) + return nil +} + +// TopImapItemDo Getter +func (r AlibabaImapPvAutofillAPIRequest) GetTopImapItemDo() *TopImapItemDo { + return r._topImapItemDo +} diff --git a/model/category/AlibabaImapPvAutofillAPIResponse.go b/model/category/AlibabaImapPvAutofillAPIResponse.go new file mode 100644 index 0000000000..37df208a64 --- /dev/null +++ b/model/category/AlibabaImapPvAutofillAPIResponse.go @@ -0,0 +1,27 @@ +package category + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +属性回填接口 API返回值 +alibaba.imap.pv.autofill + +根据用户传入的标题、目标渠道id,目标渠道叶子类目,预测其对应的pv信息,返回给业务方,供其自动填充属性项属性值信息 +*/ +type AlibabaImapPvAutofillAPIResponse struct { + model.CommonResponse + AlibabaImapPvAutofillAPIResponseModel +} + +// 属性回填接口 成功返回结果 +type AlibabaImapPvAutofillAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_imap_pv_autofill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // imap通用返回DO + Result *TopImapResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/category/AlibabaImapPvAutofillResponse.go b/model/category/AlibabaImapPvAutofillResponse.go deleted file mode 100644 index 507139f151..0000000000 --- a/model/category/AlibabaImapPvAutofillResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package category - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -属性回填接口 API返回值 -alibaba.imap.pv.autofill - -根据用户传入的标题、目标渠道id,目标渠道叶子类目,预测其对应的pv信息,返回给业务方,供其自动填充属性项属性值信息 -*/ -type AlibabaImapPvAutofillAPIResponse struct { - model.CommonResponse - AlibabaImapPvAutofillResponse -} - -// 属性回填接口 成功返回结果 -type AlibabaImapPvAutofillResponse struct { - XMLName xml.Name `xml:"alibaba_imap_pv_autofill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // imap通用返回DO - Result *TopImapResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/category/AlibabaWholesaleCategoryGetAPIRequest.go b/model/category/AlibabaWholesaleCategoryGetAPIRequest.go new file mode 100644 index 0000000000..e8bf030e1b --- /dev/null +++ b/model/category/AlibabaWholesaleCategoryGetAPIRequest.go @@ -0,0 +1,38 @@ +package category + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取类目信息 API请求 +alibaba.wholesale.category.get + +获取类目信息 +*/ +type AlibabaWholesaleCategoryGetAPIRequest struct { + model.Params +} + +// 初始化AlibabaWholesaleCategoryGetAPIRequest对象 +func NewAlibabaWholesaleCategoryGetRequest() *AlibabaWholesaleCategoryGetAPIRequest{ + return &AlibabaWholesaleCategoryGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWholesaleCategoryGetAPIRequest) GetApiMethodName() string { + return "alibaba.wholesale.category.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWholesaleCategoryGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/category/AlibabaWholesaleCategoryGetAPIResponse.go b/model/category/AlibabaWholesaleCategoryGetAPIResponse.go new file mode 100644 index 0000000000..3ef17c5b12 --- /dev/null +++ b/model/category/AlibabaWholesaleCategoryGetAPIResponse.go @@ -0,0 +1,27 @@ +package category + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取类目信息 API返回值 +alibaba.wholesale.category.get + +获取类目信息 +*/ +type AlibabaWholesaleCategoryGetAPIResponse struct { + model.CommonResponse + AlibabaWholesaleCategoryGetAPIResponseModel +} + +// 获取类目信息 成功返回结果 +type AlibabaWholesaleCategoryGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wholesale_category_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 类目结果 + WholesaleCategoryResult *WholesaleCategoryOpenResult `json:"wholesale_category_result,omitempty" xml:"wholesale_category_result,omitempty"` +} diff --git a/model/category/AlibabaWholesaleCategoryGetResponse.go b/model/category/AlibabaWholesaleCategoryGetResponse.go deleted file mode 100644 index 1941f5c9d3..0000000000 --- a/model/category/AlibabaWholesaleCategoryGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package category - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取类目信息 API返回值 -alibaba.wholesale.category.get - -获取类目信息 -*/ -type AlibabaWholesaleCategoryGetAPIResponse struct { - model.CommonResponse - AlibabaWholesaleCategoryGetResponse -} - -// 获取类目信息 成功返回结果 -type AlibabaWholesaleCategoryGetResponse struct { - XMLName xml.Name `xml:"alibaba_wholesale_category_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 类目结果 - WholesaleCategoryResult *WholesaleCategoryOpenResult `json:"wholesale_category_result,omitempty" xml:"wholesale_category_result,omitempty"` -} diff --git a/model/category/AliexpressSocialDiscategoryGetAPIRequest.go b/model/category/AliexpressSocialDiscategoryGetAPIRequest.go new file mode 100644 index 0000000000..51dcd8b316 --- /dev/null +++ b/model/category/AliexpressSocialDiscategoryGetAPIRequest.go @@ -0,0 +1,52 @@ +package category + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +展示类目获取接口 API请求 +aliexpress.social.discategory.get + +AE展示类目获取接口 +*/ +type AliexpressSocialDiscategoryGetAPIRequest struct { + model.Params + // Locale值,格式为language+"_"+country + _locale string +} + +// 初始化AliexpressSocialDiscategoryGetAPIRequest对象 +func NewAliexpressSocialDiscategoryGetRequest() *AliexpressSocialDiscategoryGetAPIRequest{ + return &AliexpressSocialDiscategoryGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSocialDiscategoryGetAPIRequest) GetApiMethodName() string { + return "aliexpress.social.discategory.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSocialDiscategoryGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Locale Setter +// Locale值,格式为language+"_"+country +func (r *AliexpressSocialDiscategoryGetAPIRequest) SetLocale(_locale string) error { + r._locale = _locale + r.Set("locale", _locale) + return nil +} + +// Locale Getter +func (r AliexpressSocialDiscategoryGetAPIRequest) GetLocale() string { + return r._locale +} diff --git a/model/category/AliexpressSocialDiscategoryGetAPIResponse.go b/model/category/AliexpressSocialDiscategoryGetAPIResponse.go new file mode 100644 index 0000000000..48887bdd33 --- /dev/null +++ b/model/category/AliexpressSocialDiscategoryGetAPIResponse.go @@ -0,0 +1,27 @@ +package category + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +展示类目获取接口 API返回值 +aliexpress.social.discategory.get + +AE展示类目获取接口 +*/ +type AliexpressSocialDiscategoryGetAPIResponse struct { + model.CommonResponse + AliexpressSocialDiscategoryGetAPIResponseModel +} + +// 展示类目获取接口 成功返回结果 +type AliexpressSocialDiscategoryGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_social_discategory_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ItemPickPagingResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/category/AliexpressSocialDiscategoryGetResponse.go b/model/category/AliexpressSocialDiscategoryGetResponse.go deleted file mode 100644 index 6b488e82b5..0000000000 --- a/model/category/AliexpressSocialDiscategoryGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package category - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -展示类目获取接口 API返回值 -aliexpress.social.discategory.get - -AE展示类目获取接口 -*/ -type AliexpressSocialDiscategoryGetAPIResponse struct { - model.CommonResponse - AliexpressSocialDiscategoryGetResponse -} - -// 展示类目获取接口 成功返回结果 -type AliexpressSocialDiscategoryGetResponse struct { - XMLName xml.Name `xml:"aliexpress_social_discategory_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ItemPickPagingResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/category/TaobaoItemCatpropsModificationGetAPIRequest.go b/model/category/TaobaoItemCatpropsModificationGetAPIRequest.go new file mode 100644 index 0000000000..ce2899e65f --- /dev/null +++ b/model/category/TaobaoItemCatpropsModificationGetAPIRequest.go @@ -0,0 +1,80 @@ +package category + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品类目属性变更 API请求 +taobao.item.catprops.modification.get + +查询商品类目属性变更信息 +*/ +type TaobaoItemCatpropsModificationGetAPIRequest struct { + model.Params + // 类目Id(与商品Id二选一即可) + _categoryId int64 + // 商品Id(与类目Id二选一即可。若同时传入商品Id和类目Id,则优先使用商品Id。若填写商品Id,则起始时间设为该商品最近修改时间) + _itemId string + // 起始请求时间(建议传入,默认为90天内) + _startTime string +} + +// 初始化TaobaoItemCatpropsModificationGetAPIRequest对象 +func NewTaobaoItemCatpropsModificationGetRequest() *TaobaoItemCatpropsModificationGetAPIRequest{ + return &TaobaoItemCatpropsModificationGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemCatpropsModificationGetAPIRequest) GetApiMethodName() string { + return "taobao.item.catprops.modification.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemCatpropsModificationGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CategoryId Setter +// 类目Id(与商品Id二选一即可) +func (r *TaobaoItemCatpropsModificationGetAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r TaobaoItemCatpropsModificationGetAPIRequest) GetCategoryId() int64 { + return r._categoryId +} +// ItemId Setter +// 商品Id(与类目Id二选一即可。若同时传入商品Id和类目Id,则优先使用商品Id。若填写商品Id,则起始时间设为该商品最近修改时间) +func (r *TaobaoItemCatpropsModificationGetAPIRequest) SetItemId(_itemId string) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoItemCatpropsModificationGetAPIRequest) GetItemId() string { + return r._itemId +} +// StartTime Setter +// 起始请求时间(建议传入,默认为90天内) +func (r *TaobaoItemCatpropsModificationGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoItemCatpropsModificationGetAPIRequest) GetStartTime() string { + return r._startTime +} diff --git a/model/category/TaobaoItemCatpropsModificationGetAPIResponse.go b/model/category/TaobaoItemCatpropsModificationGetAPIResponse.go new file mode 100644 index 0000000000..a54c7cb6b9 --- /dev/null +++ b/model/category/TaobaoItemCatpropsModificationGetAPIResponse.go @@ -0,0 +1,27 @@ +package category + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品类目属性变更 API返回值 +taobao.item.catprops.modification.get + +查询商品类目属性变更信息 +*/ +type TaobaoItemCatpropsModificationGetAPIResponse struct { + model.CommonResponse + TaobaoItemCatpropsModificationGetAPIResponseModel +} + +// 查询商品类目属性变更 成功返回结果 +type TaobaoItemCatpropsModificationGetAPIResponseModel struct { + XMLName xml.Name `xml:"item_catprops_modification_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Results []PropsModificationResult `json:"results,omitempty" xml:"results>props_modification_result,omitempty"` +} diff --git a/model/category/TaobaoItemCatpropsModificationGetResponse.go b/model/category/TaobaoItemCatpropsModificationGetResponse.go deleted file mode 100644 index c6d95237d5..0000000000 --- a/model/category/TaobaoItemCatpropsModificationGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package category - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询商品类目属性变更 API返回值 -taobao.item.catprops.modification.get - -查询商品类目属性变更信息 -*/ -type TaobaoItemCatpropsModificationGetAPIResponse struct { - model.CommonResponse - TaobaoItemCatpropsModificationGetResponse -} - -// 查询商品类目属性变更 成功返回结果 -type TaobaoItemCatpropsModificationGetResponse struct { - XMLName xml.Name `xml:"item_catprops_modification_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Results []PropsModificationResult `json:"results,omitempty" xml:"results>props_modification_result,omitempty"` -} diff --git a/model/category/TaobaoItemcatsAuthorizeGetAPIRequest.go b/model/category/TaobaoItemcatsAuthorizeGetAPIRequest.go new file mode 100644 index 0000000000..9a5072754b --- /dev/null +++ b/model/category/TaobaoItemcatsAuthorizeGetAPIRequest.go @@ -0,0 +1,52 @@ +package category + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商家被授权品牌列表和类目列表 API请求 +taobao.itemcats.authorize.get + +查询B商家被授权品牌列表、类目列表和 c 商家新品类目列表 +*/ +type TaobaoItemcatsAuthorizeGetAPIRequest struct { + model.Params + // 需要返回的字段。目前支持有:
brand.vid, brand.name,
item_cat.cid, item_cat.name, item_cat.status,item_cat.sort_order,item_cat.parent_cid,item_cat.is_parent,
xinpin_item_cat.cid,
xinpin_item_cat.name,
xinpin_item_cat.status,
xinpin_item_cat.sort_order,
xinpin_item_cat.parent_cid,
xinpin_item_cat.is_parent + _fields []string +} + +// 初始化TaobaoItemcatsAuthorizeGetAPIRequest对象 +func NewTaobaoItemcatsAuthorizeGetRequest() *TaobaoItemcatsAuthorizeGetAPIRequest{ + return &TaobaoItemcatsAuthorizeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemcatsAuthorizeGetAPIRequest) GetApiMethodName() string { + return "taobao.itemcats.authorize.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemcatsAuthorizeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的字段。目前支持有:
brand.vid, brand.name,
item_cat.cid, item_cat.name, item_cat.status,item_cat.sort_order,item_cat.parent_cid,item_cat.is_parent,
xinpin_item_cat.cid,
xinpin_item_cat.name,
xinpin_item_cat.status,
xinpin_item_cat.sort_order,
xinpin_item_cat.parent_cid,
xinpin_item_cat.is_parent +func (r *TaobaoItemcatsAuthorizeGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoItemcatsAuthorizeGetAPIRequest) GetFields() []string { + return r._fields +} diff --git a/model/category/TaobaoItemcatsAuthorizeGetAPIResponse.go b/model/category/TaobaoItemcatsAuthorizeGetAPIResponse.go new file mode 100644 index 0000000000..bade133ad0 --- /dev/null +++ b/model/category/TaobaoItemcatsAuthorizeGetAPIResponse.go @@ -0,0 +1,27 @@ +package category + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商家被授权品牌列表和类目列表 API返回值 +taobao.itemcats.authorize.get + +查询B商家被授权品牌列表、类目列表和 c 商家新品类目列表 +*/ +type TaobaoItemcatsAuthorizeGetAPIResponse struct { + model.CommonResponse + TaobaoItemcatsAuthorizeGetAPIResponseModel +} + +// 查询商家被授权品牌列表和类目列表 成功返回结果 +type TaobaoItemcatsAuthorizeGetAPIResponseModel struct { + XMLName xml.Name `xml:"itemcats_authorize_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 里面有3个数组:
Brand[]品牌列表,
ItemCat[] 类目列表
XinpinItemCat[] 针对于C卖家新品类目列表 + SellerAuthorize *SellerAuthorize `json:"seller_authorize,omitempty" xml:"seller_authorize,omitempty"` +} diff --git a/model/category/TaobaoItemcatsAuthorizeGetResponse.go b/model/category/TaobaoItemcatsAuthorizeGetResponse.go deleted file mode 100644 index a46b921c0f..0000000000 --- a/model/category/TaobaoItemcatsAuthorizeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package category - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询商家被授权品牌列表和类目列表 API返回值 -taobao.itemcats.authorize.get - -查询B商家被授权品牌列表、类目列表和 c 商家新品类目列表 -*/ -type TaobaoItemcatsAuthorizeGetAPIResponse struct { - model.CommonResponse - TaobaoItemcatsAuthorizeGetResponse -} - -// 查询商家被授权品牌列表和类目列表 成功返回结果 -type TaobaoItemcatsAuthorizeGetResponse struct { - XMLName xml.Name `xml:"itemcats_authorize_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 里面有3个数组:
Brand[]品牌列表,
ItemCat[] 类目列表
XinpinItemCat[] 针对于C卖家新品类目列表 - SellerAuthorize *SellerAuthorize `json:"seller_authorize,omitempty" xml:"seller_authorize,omitempty"` -} diff --git a/model/category/TaobaoItemcatsGetAPIRequest.go b/model/category/TaobaoItemcatsGetAPIRequest.go new file mode 100644 index 0000000000..a180661436 --- /dev/null +++ b/model/category/TaobaoItemcatsGetAPIRequest.go @@ -0,0 +1,80 @@ +package category + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取后台供卖家发布商品的标准商品类目 API请求 +taobao.itemcats.get + +获取后台供卖家发布商品的标准商品类目。 +*/ +type TaobaoItemcatsGetAPIRequest struct { + model.Params + // 商品所属类目ID列表,用半角逗号(,)分隔 例如:(18957,19562,) (cids、parent_cid至少传一个) + _cids []int64 + // 需要返回的字段列表,见ItemCat,默认返回:cid,parent_cid,name,is_parent;增量类目信息,根据fields传入的参数返回相应的结果。 features字段: 1、如果存在attr_key=freeze表示该类目被冻结了,attr_value=0,5,value可能存在2个值(也可能只有1个),用逗号分割,0表示禁编辑,5表示禁止发布 + _fields []string + // 父商品类目 id,0表示根节点, 传输该参数返回所有子类目。 (cids、parent_cid至少传一个) + _parentCid int64 +} + +// 初始化TaobaoItemcatsGetAPIRequest对象 +func NewTaobaoItemcatsGetRequest() *TaobaoItemcatsGetAPIRequest{ + return &TaobaoItemcatsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemcatsGetAPIRequest) GetApiMethodName() string { + return "taobao.itemcats.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemcatsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Cids Setter +// 商品所属类目ID列表,用半角逗号(,)分隔 例如:(18957,19562,) (cids、parent_cid至少传一个) +func (r *TaobaoItemcatsGetAPIRequest) SetCids(_cids []int64) error { + r._cids = _cids + r.Set("cids", _cids) + return nil +} + +// Cids Getter +func (r TaobaoItemcatsGetAPIRequest) GetCids() []int64 { + return r._cids +} +// Fields Setter +// 需要返回的字段列表,见ItemCat,默认返回:cid,parent_cid,name,is_parent;增量类目信息,根据fields传入的参数返回相应的结果。 features字段: 1、如果存在attr_key=freeze表示该类目被冻结了,attr_value=0,5,value可能存在2个值(也可能只有1个),用逗号分割,0表示禁编辑,5表示禁止发布 +func (r *TaobaoItemcatsGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoItemcatsGetAPIRequest) GetFields() []string { + return r._fields +} +// ParentCid Setter +// 父商品类目 id,0表示根节点, 传输该参数返回所有子类目。 (cids、parent_cid至少传一个) +func (r *TaobaoItemcatsGetAPIRequest) SetParentCid(_parentCid int64) error { + r._parentCid = _parentCid + r.Set("parent_cid", _parentCid) + return nil +} + +// ParentCid Getter +func (r TaobaoItemcatsGetAPIRequest) GetParentCid() int64 { + return r._parentCid +} diff --git a/model/category/TaobaoItemcatsGetAPIResponse.go b/model/category/TaobaoItemcatsGetAPIResponse.go new file mode 100644 index 0000000000..e50bbf017a --- /dev/null +++ b/model/category/TaobaoItemcatsGetAPIResponse.go @@ -0,0 +1,29 @@ +package category + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取后台供卖家发布商品的标准商品类目 API返回值 +taobao.itemcats.get + +获取后台供卖家发布商品的标准商品类目。 +*/ +type TaobaoItemcatsGetAPIResponse struct { + model.CommonResponse + TaobaoItemcatsGetAPIResponseModel +} + +// 获取后台供卖家发布商品的标准商品类目 成功返回结果 +type TaobaoItemcatsGetAPIResponseModel struct { + XMLName xml.Name `xml:"itemcats_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最近修改时间(如果取增量,会返回该字段)。 + LastModified string `json:"last_modified,omitempty" xml:"last_modified,omitempty"` + // 增量类目信息,根据fields传入的参数返回相应的结果;增量类目信息,根据fields传入的参数返回相应的结果。 features字段: 1、如果存在attr_key=freeze表示该类目被冻结了,attr_value=0,5,value可能存在2个值(也可能只有1个),用逗号分割,0表示禁编辑,5表示禁止发布 + ItemCats []ItemCat `json:"item_cats,omitempty" xml:"item_cats>item_cat,omitempty"` +} diff --git a/model/category/TaobaoItemcatsGetResponse.go b/model/category/TaobaoItemcatsGetResponse.go deleted file mode 100644 index 4f76c4e34f..0000000000 --- a/model/category/TaobaoItemcatsGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package category - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取后台供卖家发布商品的标准商品类目 API返回值 -taobao.itemcats.get - -获取后台供卖家发布商品的标准商品类目。 -*/ -type TaobaoItemcatsGetAPIResponse struct { - model.CommonResponse - TaobaoItemcatsGetResponse -} - -// 获取后台供卖家发布商品的标准商品类目 成功返回结果 -type TaobaoItemcatsGetResponse struct { - XMLName xml.Name `xml:"itemcats_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最近修改时间(如果取增量,会返回该字段)。 - LastModified string `json:"last_modified,omitempty" xml:"last_modified,omitempty"` - // 增量类目信息,根据fields传入的参数返回相应的结果;增量类目信息,根据fields传入的参数返回相应的结果。 features字段: 1、如果存在attr_key=freeze表示该类目被冻结了,attr_value=0,5,value可能存在2个值(也可能只有1个),用逗号分割,0表示禁编辑,5表示禁止发布 - ItemCats []ItemCat `json:"item_cats,omitempty" xml:"item_cats>item_cat,omitempty"` -} diff --git a/model/category/TaobaoItempropsGetAPIRequest.go b/model/category/TaobaoItempropsGetAPIRequest.go new file mode 100644 index 0000000000..53e96cfa24 --- /dev/null +++ b/model/category/TaobaoItempropsGetAPIRequest.go @@ -0,0 +1,220 @@ +package category + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取标准商品类目属性 API请求 +taobao.itemprops.get + +通过设置必要的参数,来获取商品后台标准类目属性,以及这些属性里面详细的属性值prop_values。 +*/ +type TaobaoItempropsGetAPIRequest struct { + model.Params + // 需要返回的字段列表,见:ItemProp,默认返回:pid, name, must, multi, prop_values + _fields string + // 叶子类目ID,如果只传cid,则只返回一级属性,通过taobao.itemcats.get获得叶子类目ID + _cid int64 + // 属性id (取类目属性时,传pid,不用同时传PID和parent_pid) + _pid int64 + // 父属性ID + _parentPid int64 + // 是否关键属性。可选值:true(是),false(否) + _isKeyProp bool + // 是否销售属性。可选值:true(是),false(否) + _isSaleProp bool + // 是否颜色属性。可选值:true(是),false(否) (删除的属性不会匹配和返回这个条件) + _isColorProp bool + // 是否枚举属性。可选值:true(是),false(否) (删除的属性不会匹配和返回这个条件)。如果返回true,属性值是下拉框选择输入,如果返回false,属性值是用户自行手工输入。 + _isEnumProp bool + // 在is_enum_prop是true的前提下,是否是卖家可以自行输入的属性(注:如果is_enum_prop返回false,该参数统一返回false)。可选值:true(是),false(否) (删除的属性不会匹配和返回这个条件) + _isInputProp bool + // 是否商品属性,这个属性只能放于发布商品时使用。可选值:true(是),false(否) + _isItemProp bool + // 类目子属性路径,由该子属性上层的类目属性和类目属性值组成,格式pid:vid;pid:vid.取类目子属性需要传child_path,cid + _childPath string + // 获取类目的类型:1代表集市、2代表天猫 + _type int64 + // 属性的Key,支持多条,以“,”分隔 + _attrKeys []string +} + +// 初始化TaobaoItempropsGetAPIRequest对象 +func NewTaobaoItempropsGetRequest() *TaobaoItempropsGetAPIRequest{ + return &TaobaoItempropsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItempropsGetAPIRequest) GetApiMethodName() string { + return "taobao.itemprops.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItempropsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的字段列表,见:ItemProp,默认返回:pid, name, must, multi, prop_values +func (r *TaobaoItempropsGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoItempropsGetAPIRequest) GetFields() string { + return r._fields +} +// Cid Setter +// 叶子类目ID,如果只传cid,则只返回一级属性,通过taobao.itemcats.get获得叶子类目ID +func (r *TaobaoItempropsGetAPIRequest) SetCid(_cid int64) error { + r._cid = _cid + r.Set("cid", _cid) + return nil +} + +// Cid Getter +func (r TaobaoItempropsGetAPIRequest) GetCid() int64 { + return r._cid +} +// Pid Setter +// 属性id (取类目属性时,传pid,不用同时传PID和parent_pid) +func (r *TaobaoItempropsGetAPIRequest) SetPid(_pid int64) error { + r._pid = _pid + r.Set("pid", _pid) + return nil +} + +// Pid Getter +func (r TaobaoItempropsGetAPIRequest) GetPid() int64 { + return r._pid +} +// ParentPid Setter +// 父属性ID +func (r *TaobaoItempropsGetAPIRequest) SetParentPid(_parentPid int64) error { + r._parentPid = _parentPid + r.Set("parent_pid", _parentPid) + return nil +} + +// ParentPid Getter +func (r TaobaoItempropsGetAPIRequest) GetParentPid() int64 { + return r._parentPid +} +// IsKeyProp Setter +// 是否关键属性。可选值:true(是),false(否) +func (r *TaobaoItempropsGetAPIRequest) SetIsKeyProp(_isKeyProp bool) error { + r._isKeyProp = _isKeyProp + r.Set("is_key_prop", _isKeyProp) + return nil +} + +// IsKeyProp Getter +func (r TaobaoItempropsGetAPIRequest) GetIsKeyProp() bool { + return r._isKeyProp +} +// IsSaleProp Setter +// 是否销售属性。可选值:true(是),false(否) +func (r *TaobaoItempropsGetAPIRequest) SetIsSaleProp(_isSaleProp bool) error { + r._isSaleProp = _isSaleProp + r.Set("is_sale_prop", _isSaleProp) + return nil +} + +// IsSaleProp Getter +func (r TaobaoItempropsGetAPIRequest) GetIsSaleProp() bool { + return r._isSaleProp +} +// IsColorProp Setter +// 是否颜色属性。可选值:true(是),false(否) (删除的属性不会匹配和返回这个条件) +func (r *TaobaoItempropsGetAPIRequest) SetIsColorProp(_isColorProp bool) error { + r._isColorProp = _isColorProp + r.Set("is_color_prop", _isColorProp) + return nil +} + +// IsColorProp Getter +func (r TaobaoItempropsGetAPIRequest) GetIsColorProp() bool { + return r._isColorProp +} +// IsEnumProp Setter +// 是否枚举属性。可选值:true(是),false(否) (删除的属性不会匹配和返回这个条件)。如果返回true,属性值是下拉框选择输入,如果返回false,属性值是用户自行手工输入。 +func (r *TaobaoItempropsGetAPIRequest) SetIsEnumProp(_isEnumProp bool) error { + r._isEnumProp = _isEnumProp + r.Set("is_enum_prop", _isEnumProp) + return nil +} + +// IsEnumProp Getter +func (r TaobaoItempropsGetAPIRequest) GetIsEnumProp() bool { + return r._isEnumProp +} +// IsInputProp Setter +// 在is_enum_prop是true的前提下,是否是卖家可以自行输入的属性(注:如果is_enum_prop返回false,该参数统一返回false)。可选值:true(是),false(否) (删除的属性不会匹配和返回这个条件) +func (r *TaobaoItempropsGetAPIRequest) SetIsInputProp(_isInputProp bool) error { + r._isInputProp = _isInputProp + r.Set("is_input_prop", _isInputProp) + return nil +} + +// IsInputProp Getter +func (r TaobaoItempropsGetAPIRequest) GetIsInputProp() bool { + return r._isInputProp +} +// IsItemProp Setter +// 是否商品属性,这个属性只能放于发布商品时使用。可选值:true(是),false(否) +func (r *TaobaoItempropsGetAPIRequest) SetIsItemProp(_isItemProp bool) error { + r._isItemProp = _isItemProp + r.Set("is_item_prop", _isItemProp) + return nil +} + +// IsItemProp Getter +func (r TaobaoItempropsGetAPIRequest) GetIsItemProp() bool { + return r._isItemProp +} +// ChildPath Setter +// 类目子属性路径,由该子属性上层的类目属性和类目属性值组成,格式pid:vid;pid:vid.取类目子属性需要传child_path,cid +func (r *TaobaoItempropsGetAPIRequest) SetChildPath(_childPath string) error { + r._childPath = _childPath + r.Set("child_path", _childPath) + return nil +} + +// ChildPath Getter +func (r TaobaoItempropsGetAPIRequest) GetChildPath() string { + return r._childPath +} +// Type Setter +// 获取类目的类型:1代表集市、2代表天猫 +func (r *TaobaoItempropsGetAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoItempropsGetAPIRequest) GetType() int64 { + return r._type +} +// AttrKeys Setter +// 属性的Key,支持多条,以“,”分隔 +func (r *TaobaoItempropsGetAPIRequest) SetAttrKeys(_attrKeys []string) error { + r._attrKeys = _attrKeys + r.Set("attr_keys", _attrKeys) + return nil +} + +// AttrKeys Getter +func (r TaobaoItempropsGetAPIRequest) GetAttrKeys() []string { + return r._attrKeys +} diff --git a/model/category/TaobaoItempropsGetAPIResponse.go b/model/category/TaobaoItempropsGetAPIResponse.go new file mode 100644 index 0000000000..d09c6c7765 --- /dev/null +++ b/model/category/TaobaoItempropsGetAPIResponse.go @@ -0,0 +1,29 @@ +package category + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取标准商品类目属性 API返回值 +taobao.itemprops.get + +通过设置必要的参数,来获取商品后台标准类目属性,以及这些属性里面详细的属性值prop_values。 +*/ +type TaobaoItempropsGetAPIResponse struct { + model.CommonResponse + TaobaoItempropsGetAPIResponseModel +} + +// 获取标准商品类目属性 成功返回结果 +type TaobaoItempropsGetAPIResponseModel struct { + XMLName xml.Name `xml:"itemprops_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最近修改时间(只有取全量或增量的时候会返回该字段)。格式:yyyy-MM-dd HH:mm:ss + LastModified string `json:"last_modified,omitempty" xml:"last_modified,omitempty"` + // 类目属性信息(如果是取全量或者增量,不包括属性值),根据fields传入的参数返回相应的结果 + ItemProps []ItemProp `json:"item_props,omitempty" xml:"item_props>item_prop,omitempty"` +} diff --git a/model/category/TaobaoItempropsGetResponse.go b/model/category/TaobaoItempropsGetResponse.go deleted file mode 100644 index bc821213c6..0000000000 --- a/model/category/TaobaoItempropsGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package category - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取标准商品类目属性 API返回值 -taobao.itemprops.get - -通过设置必要的参数,来获取商品后台标准类目属性,以及这些属性里面详细的属性值prop_values。 -*/ -type TaobaoItempropsGetAPIResponse struct { - model.CommonResponse - TaobaoItempropsGetResponse -} - -// 获取标准商品类目属性 成功返回结果 -type TaobaoItempropsGetResponse struct { - XMLName xml.Name `xml:"itemprops_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最近修改时间(只有取全量或增量的时候会返回该字段)。格式:yyyy-MM-dd HH:mm:ss - LastModified string `json:"last_modified,omitempty" xml:"last_modified,omitempty"` - // 类目属性信息(如果是取全量或者增量,不包括属性值),根据fields传入的参数返回相应的结果 - ItemProps []ItemProp `json:"item_props,omitempty" xml:"item_props>item_prop,omitempty"` -} diff --git a/model/category/TaobaoItempropvaluesGetAPIRequest.go b/model/category/TaobaoItempropvaluesGetAPIRequest.go new file mode 100644 index 0000000000..88d9a5e329 --- /dev/null +++ b/model/category/TaobaoItempropvaluesGetAPIRequest.go @@ -0,0 +1,108 @@ +package category + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取标准类目属性值 API请求 +taobao.itempropvalues.get + +获取标准类目属性值 +*/ +type TaobaoItempropvaluesGetAPIRequest struct { + model.Params + // 需要返回的字段。目前支持有:cid,pid,prop_name,vid,name,name_alias,status,sort_order + _fields []string + // 叶子类目ID ,通过taobao.itemcats.get获得叶子类目ID + _cid int64 + // 属性和属性值 id串,格式例如(pid1;pid2)或(pid1:vid1;pid2:vid2)或(pid1;pid2:vid2) + _pvs string + // 获取类目的类型:1代表集市、2代表天猫 + _type int64 + // 属性的Key,支持多条,以“,”分隔 + _attrKeys []string +} + +// 初始化TaobaoItempropvaluesGetAPIRequest对象 +func NewTaobaoItempropvaluesGetRequest() *TaobaoItempropvaluesGetAPIRequest{ + return &TaobaoItempropvaluesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItempropvaluesGetAPIRequest) GetApiMethodName() string { + return "taobao.itempropvalues.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItempropvaluesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的字段。目前支持有:cid,pid,prop_name,vid,name,name_alias,status,sort_order +func (r *TaobaoItempropvaluesGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoItempropvaluesGetAPIRequest) GetFields() []string { + return r._fields +} +// Cid Setter +// 叶子类目ID ,通过taobao.itemcats.get获得叶子类目ID +func (r *TaobaoItempropvaluesGetAPIRequest) SetCid(_cid int64) error { + r._cid = _cid + r.Set("cid", _cid) + return nil +} + +// Cid Getter +func (r TaobaoItempropvaluesGetAPIRequest) GetCid() int64 { + return r._cid +} +// Pvs Setter +// 属性和属性值 id串,格式例如(pid1;pid2)或(pid1:vid1;pid2:vid2)或(pid1;pid2:vid2) +func (r *TaobaoItempropvaluesGetAPIRequest) SetPvs(_pvs string) error { + r._pvs = _pvs + r.Set("pvs", _pvs) + return nil +} + +// Pvs Getter +func (r TaobaoItempropvaluesGetAPIRequest) GetPvs() string { + return r._pvs +} +// Type Setter +// 获取类目的类型:1代表集市、2代表天猫 +func (r *TaobaoItempropvaluesGetAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoItempropvaluesGetAPIRequest) GetType() int64 { + return r._type +} +// AttrKeys Setter +// 属性的Key,支持多条,以“,”分隔 +func (r *TaobaoItempropvaluesGetAPIRequest) SetAttrKeys(_attrKeys []string) error { + r._attrKeys = _attrKeys + r.Set("attr_keys", _attrKeys) + return nil +} + +// AttrKeys Getter +func (r TaobaoItempropvaluesGetAPIRequest) GetAttrKeys() []string { + return r._attrKeys +} diff --git a/model/category/TaobaoItempropvaluesGetAPIResponse.go b/model/category/TaobaoItempropvaluesGetAPIResponse.go new file mode 100644 index 0000000000..594aa1991e --- /dev/null +++ b/model/category/TaobaoItempropvaluesGetAPIResponse.go @@ -0,0 +1,29 @@ +package category + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取标准类目属性值 API返回值 +taobao.itempropvalues.get + +获取标准类目属性值 +*/ +type TaobaoItempropvaluesGetAPIResponse struct { + model.CommonResponse + TaobaoItempropvaluesGetAPIResponseModel +} + +// 获取标准类目属性值 成功返回结果 +type TaobaoItempropvaluesGetAPIResponseModel struct { + XMLName xml.Name `xml:"itempropvalues_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最近修改时间。格式:yyyy-MM-dd HH:mm:ss + LastModified string `json:"last_modified,omitempty" xml:"last_modified,omitempty"` + // 属性值,根据fields传入的参数返回相应的结果 + PropValues []PropValue `json:"prop_values,omitempty" xml:"prop_values>prop_value,omitempty"` +} diff --git a/model/category/TaobaoItempropvaluesGetResponse.go b/model/category/TaobaoItempropvaluesGetResponse.go deleted file mode 100644 index e3f76e8b2b..0000000000 --- a/model/category/TaobaoItempropvaluesGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package category - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取标准类目属性值 API返回值 -taobao.itempropvalues.get - -获取标准类目属性值 -*/ -type TaobaoItempropvaluesGetAPIResponse struct { - model.CommonResponse - TaobaoItempropvaluesGetResponse -} - -// 获取标准类目属性值 成功返回结果 -type TaobaoItempropvaluesGetResponse struct { - XMLName xml.Name `xml:"itempropvalues_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最近修改时间。格式:yyyy-MM-dd HH:mm:ss - LastModified string `json:"last_modified,omitempty" xml:"last_modified,omitempty"` - // 属性值,根据fields传入的参数返回相应的结果 - PropValues []PropValue `json:"prop_values,omitempty" xml:"prop_values>prop_value,omitempty"` -} diff --git a/model/charity/AlibabaCharityCharitytimeQueryAPIRequest.go b/model/charity/AlibabaCharityCharitytimeQueryAPIRequest.go new file mode 100644 index 0000000000..2572440587 --- /dev/null +++ b/model/charity/AlibabaCharityCharitytimeQueryAPIRequest.go @@ -0,0 +1,122 @@ +package charity + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询公益3小时公益时汇总 API请求 +alibaba.charity.charitytime.query + +查询公益3小时公益时汇总 +*/ +type AlibabaCharityCharitytimeQueryAPIRequest struct { + model.Params + // 公益类型 + _charityTypeList []string + // 结束时间戳-毫秒时间 + _endDate int64 + // 开始时间戳-毫秒时间 + _startDate int64 + // 淘宝Uid + _tbUid int64 + // 活动ID + _activityId int64 + // 扩展参数 + _extParam string +} + +// 初始化AlibabaCharityCharitytimeQueryAPIRequest对象 +func NewAlibabaCharityCharitytimeQueryRequest() *AlibabaCharityCharitytimeQueryAPIRequest{ + return &AlibabaCharityCharitytimeQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCharityCharitytimeQueryAPIRequest) GetApiMethodName() string { + return "alibaba.charity.charitytime.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCharityCharitytimeQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CharityTypeList Setter +// 公益类型 +func (r *AlibabaCharityCharitytimeQueryAPIRequest) SetCharityTypeList(_charityTypeList []string) error { + r._charityTypeList = _charityTypeList + r.Set("charity_type_list", _charityTypeList) + return nil +} + +// CharityTypeList Getter +func (r AlibabaCharityCharitytimeQueryAPIRequest) GetCharityTypeList() []string { + return r._charityTypeList +} +// EndDate Setter +// 结束时间戳-毫秒时间 +func (r *AlibabaCharityCharitytimeQueryAPIRequest) SetEndDate(_endDate int64) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaCharityCharitytimeQueryAPIRequest) GetEndDate() int64 { + return r._endDate +} +// StartDate Setter +// 开始时间戳-毫秒时间 +func (r *AlibabaCharityCharitytimeQueryAPIRequest) SetStartDate(_startDate int64) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r AlibabaCharityCharitytimeQueryAPIRequest) GetStartDate() int64 { + return r._startDate +} +// TbUid Setter +// 淘宝Uid +func (r *AlibabaCharityCharitytimeQueryAPIRequest) SetTbUid(_tbUid int64) error { + r._tbUid = _tbUid + r.Set("tb_uid", _tbUid) + return nil +} + +// TbUid Getter +func (r AlibabaCharityCharitytimeQueryAPIRequest) GetTbUid() int64 { + return r._tbUid +} +// ActivityId Setter +// 活动ID +func (r *AlibabaCharityCharitytimeQueryAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r AlibabaCharityCharitytimeQueryAPIRequest) GetActivityId() int64 { + return r._activityId +} +// ExtParam Setter +// 扩展参数 +func (r *AlibabaCharityCharitytimeQueryAPIRequest) SetExtParam(_extParam string) error { + r._extParam = _extParam + r.Set("ext_param", _extParam) + return nil +} + +// ExtParam Getter +func (r AlibabaCharityCharitytimeQueryAPIRequest) GetExtParam() string { + return r._extParam +} diff --git a/model/charity/AlibabaCharityCharitytimeQueryAPIResponse.go b/model/charity/AlibabaCharityCharitytimeQueryAPIResponse.go new file mode 100644 index 0000000000..9ce199ee52 --- /dev/null +++ b/model/charity/AlibabaCharityCharitytimeQueryAPIResponse.go @@ -0,0 +1,35 @@ +package charity + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询公益3小时公益时汇总 API返回值 +alibaba.charity.charitytime.query + +查询公益3小时公益时汇总 +*/ +type AlibabaCharityCharitytimeQueryAPIResponse struct { + model.CommonResponse + AlibabaCharityCharitytimeQueryAPIResponseModel +} + +// 查询公益3小时公益时汇总 成功返回结果 +type AlibabaCharityCharitytimeQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_charity_charitytime_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + Apicode int64 `json:"apicode,omitempty" xml:"apicode,omitempty"` + // 数据 + Data int64 `json:"data,omitempty" xml:"data,omitempty"` + // 失败 + Fail bool `json:"fail,omitempty" xml:"fail,omitempty"` + // 消息 + Apimsg string `json:"apimsg,omitempty" xml:"apimsg,omitempty"` + // 成功 + Apisuccess bool `json:"apisuccess,omitempty" xml:"apisuccess,omitempty"` +} diff --git a/model/charity/AlibabaCharityCharitytimeQueryResponse.go b/model/charity/AlibabaCharityCharitytimeQueryResponse.go deleted file mode 100644 index fb639ef312..0000000000 --- a/model/charity/AlibabaCharityCharitytimeQueryResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package charity - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询公益3小时公益时汇总 API返回值 -alibaba.charity.charitytime.query - -查询公益3小时公益时汇总 -*/ -type AlibabaCharityCharitytimeQueryAPIResponse struct { - model.CommonResponse - AlibabaCharityCharitytimeQueryResponse -} - -// 查询公益3小时公益时汇总 成功返回结果 -type AlibabaCharityCharitytimeQueryResponse struct { - XMLName xml.Name `xml:"alibaba_charity_charitytime_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - Apicode int64 `json:"apicode,omitempty" xml:"apicode,omitempty"` - // 数据 - Data int64 `json:"data,omitempty" xml:"data,omitempty"` - // 失败 - Fail bool `json:"fail,omitempty" xml:"fail,omitempty"` - // 消息 - Apimsg string `json:"apimsg,omitempty" xml:"apimsg,omitempty"` - // 成功 - Apisuccess bool `json:"apisuccess,omitempty" xml:"apisuccess,omitempty"` -} diff --git a/model/charity/AlibabaCharityUseractionSyncAPIRequest.go b/model/charity/AlibabaCharityUseractionSyncAPIRequest.go new file mode 100644 index 0000000000..44cab69888 --- /dev/null +++ b/model/charity/AlibabaCharityUseractionSyncAPIRequest.go @@ -0,0 +1,52 @@ +package charity + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户公益行为同步 API请求 +alibaba.charity.useraction.sync + +外部公益活动,用户公益行为同步 +*/ +type AlibabaCharityUseractionSyncAPIRequest struct { + model.Params + // 用户公益行为 + _channelUserActionDto *ChannelUserActionDto +} + +// 初始化AlibabaCharityUseractionSyncAPIRequest对象 +func NewAlibabaCharityUseractionSyncRequest() *AlibabaCharityUseractionSyncAPIRequest{ + return &AlibabaCharityUseractionSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCharityUseractionSyncAPIRequest) GetApiMethodName() string { + return "alibaba.charity.useraction.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCharityUseractionSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChannelUserActionDto Setter +// 用户公益行为 +func (r *AlibabaCharityUseractionSyncAPIRequest) SetChannelUserActionDto(_channelUserActionDto *ChannelUserActionDto) error { + r._channelUserActionDto = _channelUserActionDto + r.Set("channel_user_action_dto", _channelUserActionDto) + return nil +} + +// ChannelUserActionDto Getter +func (r AlibabaCharityUseractionSyncAPIRequest) GetChannelUserActionDto() *ChannelUserActionDto { + return r._channelUserActionDto +} diff --git a/model/charity/AlibabaCharityUseractionSyncAPIResponse.go b/model/charity/AlibabaCharityUseractionSyncAPIResponse.go new file mode 100644 index 0000000000..73dabd29e8 --- /dev/null +++ b/model/charity/AlibabaCharityUseractionSyncAPIResponse.go @@ -0,0 +1,27 @@ +package charity + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户公益行为同步 API返回值 +alibaba.charity.useraction.sync + +外部公益活动,用户公益行为同步 +*/ +type AlibabaCharityUseractionSyncAPIResponse struct { + model.CommonResponse + AlibabaCharityUseractionSyncAPIResponseModel +} + +// 用户公益行为同步 成功返回结果 +type AlibabaCharityUseractionSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_charity_useraction_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *ThreehoursResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/charity/AlibabaCharityUseractionSyncResponse.go b/model/charity/AlibabaCharityUseractionSyncResponse.go deleted file mode 100644 index 794bcb09be..0000000000 --- a/model/charity/AlibabaCharityUseractionSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package charity - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户公益行为同步 API返回值 -alibaba.charity.useraction.sync - -外部公益活动,用户公益行为同步 -*/ -type AlibabaCharityUseractionSyncAPIResponse struct { - model.CommonResponse - AlibabaCharityUseractionSyncResponse -} - -// 用户公益行为同步 成功返回结果 -type AlibabaCharityUseractionSyncResponse struct { - XMLName xml.Name `xml:"alibaba_charity_useraction_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *ThreehoursResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/choujiang/TaobaoDeActivitySecuritytokenApplyAPIRequest.go b/model/choujiang/TaobaoDeActivitySecuritytokenApplyAPIRequest.go new file mode 100644 index 0000000000..a6e51810eb --- /dev/null +++ b/model/choujiang/TaobaoDeActivitySecuritytokenApplyAPIRequest.go @@ -0,0 +1,52 @@ +package choujiang + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +安全token获取 API请求 +taobao.de.activity.securitytoken.apply + +新增接口,这个接口是用于在手机端进行抽奖时候的验证使用 +*/ +type TaobaoDeActivitySecuritytokenApplyAPIRequest struct { + model.Params + // 运营和cp约定的事件唯一标示 + _eventKey string +} + +// 初始化TaobaoDeActivitySecuritytokenApplyAPIRequest对象 +func NewTaobaoDeActivitySecuritytokenApplyRequest() *TaobaoDeActivitySecuritytokenApplyAPIRequest{ + return &TaobaoDeActivitySecuritytokenApplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDeActivitySecuritytokenApplyAPIRequest) GetApiMethodName() string { + return "taobao.de.activity.securitytoken.apply" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDeActivitySecuritytokenApplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EventKey Setter +// 运营和cp约定的事件唯一标示 +func (r *TaobaoDeActivitySecuritytokenApplyAPIRequest) SetEventKey(_eventKey string) error { + r._eventKey = _eventKey + r.Set("event_key", _eventKey) + return nil +} + +// EventKey Getter +func (r TaobaoDeActivitySecuritytokenApplyAPIRequest) GetEventKey() string { + return r._eventKey +} diff --git a/model/choujiang/TaobaoDeActivitySecuritytokenApplyAPIResponse.go b/model/choujiang/TaobaoDeActivitySecuritytokenApplyAPIResponse.go new file mode 100644 index 0000000000..d5e2015a08 --- /dev/null +++ b/model/choujiang/TaobaoDeActivitySecuritytokenApplyAPIResponse.go @@ -0,0 +1,27 @@ +package choujiang + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +安全token获取 API返回值 +taobao.de.activity.securitytoken.apply + +新增接口,这个接口是用于在手机端进行抽奖时候的验证使用 +*/ +type TaobaoDeActivitySecuritytokenApplyAPIResponse struct { + model.CommonResponse + TaobaoDeActivitySecuritytokenApplyAPIResponseModel +} + +// 安全token获取 成功返回结果 +type TaobaoDeActivitySecuritytokenApplyAPIResponseModel struct { + XMLName xml.Name `xml:"de_activity_securitytoken_apply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功标志位 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/choujiang/TaobaoDeActivitySecuritytokenApplyResponse.go b/model/choujiang/TaobaoDeActivitySecuritytokenApplyResponse.go deleted file mode 100644 index 4bbb58c609..0000000000 --- a/model/choujiang/TaobaoDeActivitySecuritytokenApplyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package choujiang - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -安全token获取 API返回值 -taobao.de.activity.securitytoken.apply - -新增接口,这个接口是用于在手机端进行抽奖时候的验证使用 -*/ -type TaobaoDeActivitySecuritytokenApplyAPIResponse struct { - model.CommonResponse - TaobaoDeActivitySecuritytokenApplyResponse -} - -// 安全token获取 成功返回结果 -type TaobaoDeActivitySecuritytokenApplyResponse struct { - XMLName xml.Name `xml:"de_activity_securitytoken_apply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功标志位 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cityretail/TaobaoCityretailWmflConvertWarehouseAPIRequest.go b/model/cityretail/TaobaoCityretailWmflConvertWarehouseAPIRequest.go new file mode 100644 index 0000000000..f8493c040b --- /dev/null +++ b/model/cityretail/TaobaoCityretailWmflConvertWarehouseAPIRequest.go @@ -0,0 +1,52 @@ +package cityretail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同城零售完美履约转仓 API请求 +taobao.cityretail.wmfl.convert.warehouse + +同城零售完美履约转仓 +*/ +type TaobaoCityretailWmflConvertWarehouseAPIRequest struct { + model.Params + // 淘宝交易单id + _tbOrderId string +} + +// 初始化TaobaoCityretailWmflConvertWarehouseAPIRequest对象 +func NewTaobaoCityretailWmflConvertWarehouseRequest() *TaobaoCityretailWmflConvertWarehouseAPIRequest{ + return &TaobaoCityretailWmflConvertWarehouseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCityretailWmflConvertWarehouseAPIRequest) GetApiMethodName() string { + return "taobao.cityretail.wmfl.convert.warehouse" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCityretailWmflConvertWarehouseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TbOrderId Setter +// 淘宝交易单id +func (r *TaobaoCityretailWmflConvertWarehouseAPIRequest) SetTbOrderId(_tbOrderId string) error { + r._tbOrderId = _tbOrderId + r.Set("tb_order_id", _tbOrderId) + return nil +} + +// TbOrderId Getter +func (r TaobaoCityretailWmflConvertWarehouseAPIRequest) GetTbOrderId() string { + return r._tbOrderId +} diff --git a/model/cityretail/TaobaoCityretailWmflConvertWarehouseAPIResponse.go b/model/cityretail/TaobaoCityretailWmflConvertWarehouseAPIResponse.go new file mode 100644 index 0000000000..1268253d21 --- /dev/null +++ b/model/cityretail/TaobaoCityretailWmflConvertWarehouseAPIResponse.go @@ -0,0 +1,27 @@ +package cityretail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同城零售完美履约转仓 API返回值 +taobao.cityretail.wmfl.convert.warehouse + +同城零售完美履约转仓 +*/ +type TaobaoCityretailWmflConvertWarehouseAPIResponse struct { + model.CommonResponse + TaobaoCityretailWmflConvertWarehouseAPIResponseModel +} + +// 同城零售完美履约转仓 成功返回结果 +type TaobaoCityretailWmflConvertWarehouseAPIResponseModel struct { + XMLName xml.Name `xml:"cityretail_wmfl_convert_warehouse_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务出参 + Result *WorkResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cityretail/TaobaoCityretailWmflConvertWarehouseResponse.go b/model/cityretail/TaobaoCityretailWmflConvertWarehouseResponse.go deleted file mode 100644 index 0be3ce3e35..0000000000 --- a/model/cityretail/TaobaoCityretailWmflConvertWarehouseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cityretail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同城零售完美履约转仓 API返回值 -taobao.cityretail.wmfl.convert.warehouse - -同城零售完美履约转仓 -*/ -type TaobaoCityretailWmflConvertWarehouseAPIResponse struct { - model.CommonResponse - TaobaoCityretailWmflConvertWarehouseResponse -} - -// 同城零售完美履约转仓 成功返回结果 -type TaobaoCityretailWmflConvertWarehouseResponse struct { - XMLName xml.Name `xml:"cityretail_wmfl_convert_warehouse_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务出参 - Result *WorkResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cityretail/TmallCityretailWmflOrderLogisticsQueryAPIRequest.go b/model/cityretail/TmallCityretailWmflOrderLogisticsQueryAPIRequest.go new file mode 100644 index 0000000000..66355d5d9a --- /dev/null +++ b/model/cityretail/TmallCityretailWmflOrderLogisticsQueryAPIRequest.go @@ -0,0 +1,52 @@ +package cityretail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +完美履约订单物流状态查询接口 API请求 +tmall.cityretail.wmfl.order.logistics.query + +完美履约订单物流状态查询接口,该接口只能查询未完结的履约单以及完结的3天内订单 +*/ +type TmallCityretailWmflOrderLogisticsQueryAPIRequest struct { + model.Params + // 订单号 + _mainOrderId string +} + +// 初始化TmallCityretailWmflOrderLogisticsQueryAPIRequest对象 +func NewTmallCityretailWmflOrderLogisticsQueryRequest() *TmallCityretailWmflOrderLogisticsQueryAPIRequest{ + return &TmallCityretailWmflOrderLogisticsQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCityretailWmflOrderLogisticsQueryAPIRequest) GetApiMethodName() string { + return "tmall.cityretail.wmfl.order.logistics.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCityretailWmflOrderLogisticsQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainOrderId Setter +// 订单号 +func (r *TmallCityretailWmflOrderLogisticsQueryAPIRequest) SetMainOrderId(_mainOrderId string) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r TmallCityretailWmflOrderLogisticsQueryAPIRequest) GetMainOrderId() string { + return r._mainOrderId +} diff --git a/model/cityretail/TmallCityretailWmflOrderLogisticsQueryAPIResponse.go b/model/cityretail/TmallCityretailWmflOrderLogisticsQueryAPIResponse.go new file mode 100644 index 0000000000..c67fca10ae --- /dev/null +++ b/model/cityretail/TmallCityretailWmflOrderLogisticsQueryAPIResponse.go @@ -0,0 +1,27 @@ +package cityretail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +完美履约订单物流状态查询接口 API返回值 +tmall.cityretail.wmfl.order.logistics.query + +完美履约订单物流状态查询接口,该接口只能查询未完结的履约单以及完结的3天内订单 +*/ +type TmallCityretailWmflOrderLogisticsQueryAPIResponse struct { + model.CommonResponse + TmallCityretailWmflOrderLogisticsQueryAPIResponseModel +} + +// 完美履约订单物流状态查询接口 成功返回结果 +type TmallCityretailWmflOrderLogisticsQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_cityretail_wmfl_order_logistics_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *WorkResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cityretail/TmallCityretailWmflOrderLogisticsQueryResponse.go b/model/cityretail/TmallCityretailWmflOrderLogisticsQueryResponse.go deleted file mode 100644 index 6e6d28e712..0000000000 --- a/model/cityretail/TmallCityretailWmflOrderLogisticsQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cityretail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -完美履约订单物流状态查询接口 API返回值 -tmall.cityretail.wmfl.order.logistics.query - -完美履约订单物流状态查询接口,该接口只能查询未完结的履约单以及完结的3天内订单 -*/ -type TmallCityretailWmflOrderLogisticsQueryAPIResponse struct { - model.CommonResponse - TmallCityretailWmflOrderLogisticsQueryResponse -} - -// 完美履约订单物流状态查询接口 成功返回结果 -type TmallCityretailWmflOrderLogisticsQueryResponse struct { - XMLName xml.Name `xml:"tmall_cityretail_wmfl_order_logistics_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *WorkResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cloudgame/AlibabaCgameAvatarUserbodyQueryAPIRequest.go b/model/cloudgame/AlibabaCgameAvatarUserbodyQueryAPIRequest.go new file mode 100644 index 0000000000..313737fd4b --- /dev/null +++ b/model/cloudgame/AlibabaCgameAvatarUserbodyQueryAPIRequest.go @@ -0,0 +1,52 @@ +package cloudgame + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户Avatar body查询 API请求 +alibaba.cgame.avatar.userbody.query + +Avatar用户body数据查询 +*/ +type AlibabaCgameAvatarUserbodyQueryAPIRequest struct { + model.Params + // 查询数据所属用户的mixUserId + _mixUserId string +} + +// 初始化AlibabaCgameAvatarUserbodyQueryAPIRequest对象 +func NewAlibabaCgameAvatarUserbodyQueryRequest() *AlibabaCgameAvatarUserbodyQueryAPIRequest{ + return &AlibabaCgameAvatarUserbodyQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCgameAvatarUserbodyQueryAPIRequest) GetApiMethodName() string { + return "alibaba.cgame.avatar.userbody.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCgameAvatarUserbodyQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MixUserId Setter +// 查询数据所属用户的mixUserId +func (r *AlibabaCgameAvatarUserbodyQueryAPIRequest) SetMixUserId(_mixUserId string) error { + r._mixUserId = _mixUserId + r.Set("mix_user_id", _mixUserId) + return nil +} + +// MixUserId Getter +func (r AlibabaCgameAvatarUserbodyQueryAPIRequest) GetMixUserId() string { + return r._mixUserId +} diff --git a/model/cloudgame/AlibabaCgameAvatarUserbodyQueryAPIResponse.go b/model/cloudgame/AlibabaCgameAvatarUserbodyQueryAPIResponse.go new file mode 100644 index 0000000000..c70519e0cf --- /dev/null +++ b/model/cloudgame/AlibabaCgameAvatarUserbodyQueryAPIResponse.go @@ -0,0 +1,27 @@ +package cloudgame + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户Avatar body查询 API返回值 +alibaba.cgame.avatar.userbody.query + +Avatar用户body数据查询 +*/ +type AlibabaCgameAvatarUserbodyQueryAPIResponse struct { + model.CommonResponse + AlibabaCgameAvatarUserbodyQueryAPIResponseModel +} + +// 用户Avatar body查询 成功返回结果 +type AlibabaCgameAvatarUserbodyQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_cgame_avatar_userbody_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaCgameAvatarUserbodyQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cloudgame/AlibabaCgameAvatarUserbodyQueryResponse.go b/model/cloudgame/AlibabaCgameAvatarUserbodyQueryResponse.go deleted file mode 100644 index d328a93f73..0000000000 --- a/model/cloudgame/AlibabaCgameAvatarUserbodyQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cloudgame - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户Avatar body查询 API返回值 -alibaba.cgame.avatar.userbody.query - -Avatar用户body数据查询 -*/ -type AlibabaCgameAvatarUserbodyQueryAPIResponse struct { - model.CommonResponse - AlibabaCgameAvatarUserbodyQueryResponse -} - -// 用户Avatar body查询 成功返回结果 -type AlibabaCgameAvatarUserbodyQueryResponse struct { - XMLName xml.Name `xml:"alibaba_cgame_avatar_userbody_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaCgameAvatarUserbodyQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cloudgame/AlibabaCgameScoreReportAPIRequest.go b/model/cloudgame/AlibabaCgameScoreReportAPIRequest.go new file mode 100644 index 0000000000..5776c49985 --- /dev/null +++ b/model/cloudgame/AlibabaCgameScoreReportAPIRequest.go @@ -0,0 +1,52 @@ +package cloudgame + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +云游戏战绩上传通用接口 API请求 +alibaba.cgame.score.report + +阿里云游戏, CP游戏合作方通用游戏结果回传接口 +*/ +type AlibabaCgameScoreReportAPIRequest struct { + model.Params + // 通用战绩回传数据 + _reportData *CpCallbackReportDto +} + +// 初始化AlibabaCgameScoreReportAPIRequest对象 +func NewAlibabaCgameScoreReportRequest() *AlibabaCgameScoreReportAPIRequest{ + return &AlibabaCgameScoreReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCgameScoreReportAPIRequest) GetApiMethodName() string { + return "alibaba.cgame.score.report" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCgameScoreReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReportData Setter +// 通用战绩回传数据 +func (r *AlibabaCgameScoreReportAPIRequest) SetReportData(_reportData *CpCallbackReportDto) error { + r._reportData = _reportData + r.Set("report_data", _reportData) + return nil +} + +// ReportData Getter +func (r AlibabaCgameScoreReportAPIRequest) GetReportData() *CpCallbackReportDto { + return r._reportData +} diff --git a/model/cloudgame/AlibabaCgameScoreReportAPIResponse.go b/model/cloudgame/AlibabaCgameScoreReportAPIResponse.go new file mode 100644 index 0000000000..d1f2e8169d --- /dev/null +++ b/model/cloudgame/AlibabaCgameScoreReportAPIResponse.go @@ -0,0 +1,27 @@ +package cloudgame + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +云游戏战绩上传通用接口 API返回值 +alibaba.cgame.score.report + +阿里云游戏, CP游戏合作方通用游戏结果回传接口 +*/ +type AlibabaCgameScoreReportAPIResponse struct { + model.CommonResponse + AlibabaCgameScoreReportAPIResponseModel +} + +// 云游戏战绩上传通用接口 成功返回结果 +type AlibabaCgameScoreReportAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_cgame_score_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaCgameScoreReportResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/cloudgame/AlibabaCgameScoreReportResponse.go b/model/cloudgame/AlibabaCgameScoreReportResponse.go deleted file mode 100644 index f597dd06eb..0000000000 --- a/model/cloudgame/AlibabaCgameScoreReportResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cloudgame - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -云游戏战绩上传通用接口 API返回值 -alibaba.cgame.score.report - -阿里云游戏, CP游戏合作方通用游戏结果回传接口 -*/ -type AlibabaCgameScoreReportAPIResponse struct { - model.CommonResponse - AlibabaCgameScoreReportResponse -} - -// 云游戏战绩上传通用接口 成功返回结果 -type AlibabaCgameScoreReportResponse struct { - XMLName xml.Name `xml:"alibaba_cgame_score_report_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaCgameScoreReportResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/cloudgame/AlibabaCloudgameUserMixuseridCheckAPIRequest.go b/model/cloudgame/AlibabaCloudgameUserMixuseridCheckAPIRequest.go new file mode 100644 index 0000000000..a4b6540364 --- /dev/null +++ b/model/cloudgame/AlibabaCloudgameUserMixuseridCheckAPIRequest.go @@ -0,0 +1,52 @@ +package cloudgame + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +云游戏混淆用户ID校验 API请求 +alibaba.cloudgame.user.mixuserid.check + +验证混淆用户ID是否合法 +*/ +type AlibabaCloudgameUserMixuseridCheckAPIRequest struct { + model.Params + // 云游戏混淆用户ID + _mixUserId string +} + +// 初始化AlibabaCloudgameUserMixuseridCheckAPIRequest对象 +func NewAlibabaCloudgameUserMixuseridCheckRequest() *AlibabaCloudgameUserMixuseridCheckAPIRequest{ + return &AlibabaCloudgameUserMixuseridCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCloudgameUserMixuseridCheckAPIRequest) GetApiMethodName() string { + return "alibaba.cloudgame.user.mixuserid.check" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCloudgameUserMixuseridCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MixUserId Setter +// 云游戏混淆用户ID +func (r *AlibabaCloudgameUserMixuseridCheckAPIRequest) SetMixUserId(_mixUserId string) error { + r._mixUserId = _mixUserId + r.Set("mix_user_id", _mixUserId) + return nil +} + +// MixUserId Getter +func (r AlibabaCloudgameUserMixuseridCheckAPIRequest) GetMixUserId() string { + return r._mixUserId +} diff --git a/model/cloudgame/AlibabaCloudgameUserMixuseridCheckAPIResponse.go b/model/cloudgame/AlibabaCloudgameUserMixuseridCheckAPIResponse.go new file mode 100644 index 0000000000..5816e833d5 --- /dev/null +++ b/model/cloudgame/AlibabaCloudgameUserMixuseridCheckAPIResponse.go @@ -0,0 +1,31 @@ +package cloudgame + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +云游戏混淆用户ID校验 API返回值 +alibaba.cloudgame.user.mixuserid.check + +验证混淆用户ID是否合法 +*/ +type AlibabaCloudgameUserMixuseridCheckAPIResponse struct { + model.CommonResponse + AlibabaCloudgameUserMixuseridCheckAPIResponseModel +} + +// 云游戏混淆用户ID校验 成功返回结果 +type AlibabaCloudgameUserMixuseridCheckAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_cloudgame_user_mixuserid_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 是否有效 + Data bool `json:"data,omitempty" xml:"data,omitempty"` + // 返回码描述 + ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"` +} diff --git a/model/cloudgame/AlibabaCloudgameUserMixuseridCheckResponse.go b/model/cloudgame/AlibabaCloudgameUserMixuseridCheckResponse.go deleted file mode 100644 index 16e8c41899..0000000000 --- a/model/cloudgame/AlibabaCloudgameUserMixuseridCheckResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package cloudgame - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -云游戏混淆用户ID校验 API返回值 -alibaba.cloudgame.user.mixuserid.check - -验证混淆用户ID是否合法 -*/ -type AlibabaCloudgameUserMixuseridCheckAPIResponse struct { - model.CommonResponse - AlibabaCloudgameUserMixuseridCheckResponse -} - -// 云游戏混淆用户ID校验 成功返回结果 -type AlibabaCloudgameUserMixuseridCheckResponse struct { - XMLName xml.Name `xml:"alibaba_cloudgame_user_mixuserid_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 是否有效 - Data bool `json:"data,omitempty" xml:"data,omitempty"` - // 返回码描述 - ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"` -} diff --git a/model/cloudgame/YoukuCgameScoreReportAPIRequest.go b/model/cloudgame/YoukuCgameScoreReportAPIRequest.go new file mode 100644 index 0000000000..1a929b946e --- /dev/null +++ b/model/cloudgame/YoukuCgameScoreReportAPIRequest.go @@ -0,0 +1,52 @@ +package cloudgame + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +云游戏战绩上传 API请求 +youku.cgame.score.report + +云游戏战绩上传API +*/ +type YoukuCgameScoreReportAPIRequest struct { + model.Params + // 战绩上传Dto + _scoreReportDto *ScoreReportDto +} + +// 初始化YoukuCgameScoreReportAPIRequest对象 +func NewYoukuCgameScoreReportRequest() *YoukuCgameScoreReportAPIRequest{ + return &YoukuCgameScoreReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuCgameScoreReportAPIRequest) GetApiMethodName() string { + return "youku.cgame.score.report" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuCgameScoreReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ScoreReportDto Setter +// 战绩上传Dto +func (r *YoukuCgameScoreReportAPIRequest) SetScoreReportDto(_scoreReportDto *ScoreReportDto) error { + r._scoreReportDto = _scoreReportDto + r.Set("score_report_dto", _scoreReportDto) + return nil +} + +// ScoreReportDto Getter +func (r YoukuCgameScoreReportAPIRequest) GetScoreReportDto() *ScoreReportDto { + return r._scoreReportDto +} diff --git a/model/cloudgame/YoukuCgameScoreReportAPIResponse.go b/model/cloudgame/YoukuCgameScoreReportAPIResponse.go new file mode 100644 index 0000000000..5ed35a63da --- /dev/null +++ b/model/cloudgame/YoukuCgameScoreReportAPIResponse.go @@ -0,0 +1,31 @@ +package cloudgame + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +云游戏战绩上传 API返回值 +youku.cgame.score.report + +云游戏战绩上传API +*/ +type YoukuCgameScoreReportAPIResponse struct { + model.CommonResponse + YoukuCgameScoreReportAPIResponseModel +} + +// 云游戏战绩上传 成功返回结果 +type YoukuCgameScoreReportAPIResponseModel struct { + XMLName xml.Name `xml:"youku_cgame_score_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 返回消息体 + Data string `json:"data,omitempty" xml:"data,omitempty"` + // 返回消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/cloudgame/YoukuCgameScoreReportResponse.go b/model/cloudgame/YoukuCgameScoreReportResponse.go deleted file mode 100644 index 127a063310..0000000000 --- a/model/cloudgame/YoukuCgameScoreReportResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package cloudgame - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -云游戏战绩上传 API返回值 -youku.cgame.score.report - -云游戏战绩上传API -*/ -type YoukuCgameScoreReportAPIResponse struct { - model.CommonResponse - YoukuCgameScoreReportResponse -} - -// 云游戏战绩上传 成功返回结果 -type YoukuCgameScoreReportResponse struct { - XMLName xml.Name `xml:"youku_cgame_score_report_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 返回消息体 - Data string `json:"data,omitempty" xml:"data,omitempty"` - // 返回消息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/cloudpush/TaobaoCloudpushMessageAndroidAPIRequest.go b/model/cloudpush/TaobaoCloudpushMessageAndroidAPIRequest.go new file mode 100644 index 0000000000..23fcf2e014 --- /dev/null +++ b/model/cloudpush/TaobaoCloudpushMessageAndroidAPIRequest.go @@ -0,0 +1,80 @@ +package cloudpush + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川云推送发送消息给android API请求 +taobao.cloudpush.message.android + +百川用户使用云推送发送消息给android +*/ +type TaobaoCloudpushMessageAndroidAPIRequest struct { + model.Params + // 发送的消息内容. + _body string + // 推送目标: device:推送给设备; account:推送给指定帐号,all: 推送给全部 + _target string + // 根据Target来设定,如Target=device, 则对应的值为 设备id1,设备id2. 多个值使用逗号分隔 + _targetValue string +} + +// 初始化TaobaoCloudpushMessageAndroidAPIRequest对象 +func NewTaobaoCloudpushMessageAndroidRequest() *TaobaoCloudpushMessageAndroidAPIRequest{ + return &TaobaoCloudpushMessageAndroidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCloudpushMessageAndroidAPIRequest) GetApiMethodName() string { + return "taobao.cloudpush.message.android" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCloudpushMessageAndroidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Body Setter +// 发送的消息内容. +func (r *TaobaoCloudpushMessageAndroidAPIRequest) SetBody(_body string) error { + r._body = _body + r.Set("body", _body) + return nil +} + +// Body Getter +func (r TaobaoCloudpushMessageAndroidAPIRequest) GetBody() string { + return r._body +} +// Target Setter +// 推送目标: device:推送给设备; account:推送给指定帐号,all: 推送给全部 +func (r *TaobaoCloudpushMessageAndroidAPIRequest) SetTarget(_target string) error { + r._target = _target + r.Set("target", _target) + return nil +} + +// Target Getter +func (r TaobaoCloudpushMessageAndroidAPIRequest) GetTarget() string { + return r._target +} +// TargetValue Setter +// 根据Target来设定,如Target=device, 则对应的值为 设备id1,设备id2. 多个值使用逗号分隔 +func (r *TaobaoCloudpushMessageAndroidAPIRequest) SetTargetValue(_targetValue string) error { + r._targetValue = _targetValue + r.Set("target_value", _targetValue) + return nil +} + +// TargetValue Getter +func (r TaobaoCloudpushMessageAndroidAPIRequest) GetTargetValue() string { + return r._targetValue +} diff --git a/model/cloudpush/TaobaoCloudpushMessageAndroidAPIResponse.go b/model/cloudpush/TaobaoCloudpushMessageAndroidAPIResponse.go new file mode 100644 index 0000000000..9cc49fc30c --- /dev/null +++ b/model/cloudpush/TaobaoCloudpushMessageAndroidAPIResponse.go @@ -0,0 +1,31 @@ +package cloudpush + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川云推送发送消息给android API返回值 +taobao.cloudpush.message.android + +百川用户使用云推送发送消息给android +*/ +type TaobaoCloudpushMessageAndroidAPIResponse struct { + model.CommonResponse + TaobaoCloudpushMessageAndroidAPIResponseModel +} + +// 百川云推送发送消息给android 成功返回结果 +type TaobaoCloudpushMessageAndroidAPIResponseModel struct { + XMLName xml.Name `xml:"cloudpush_message_android_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求是否成功. + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 若请求失败,则返回对应的error code. + RequestErrorCode int64 `json:"request_error_code,omitempty" xml:"request_error_code,omitempty"` + // 请求失败后返回的错误信息. + RequestErrorMsg string `json:"request_error_msg,omitempty" xml:"request_error_msg,omitempty"` +} diff --git a/model/cloudpush/TaobaoCloudpushMessageAndroidResponse.go b/model/cloudpush/TaobaoCloudpushMessageAndroidResponse.go deleted file mode 100644 index 6fd4a22cf3..0000000000 --- a/model/cloudpush/TaobaoCloudpushMessageAndroidResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package cloudpush - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川云推送发送消息给android API返回值 -taobao.cloudpush.message.android - -百川用户使用云推送发送消息给android -*/ -type TaobaoCloudpushMessageAndroidAPIResponse struct { - model.CommonResponse - TaobaoCloudpushMessageAndroidResponse -} - -// 百川云推送发送消息给android 成功返回结果 -type TaobaoCloudpushMessageAndroidResponse struct { - XMLName xml.Name `xml:"cloudpush_message_android_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求是否成功. - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 若请求失败,则返回对应的error code. - RequestErrorCode int64 `json:"request_error_code,omitempty" xml:"request_error_code,omitempty"` - // 请求失败后返回的错误信息. - RequestErrorMsg string `json:"request_error_msg,omitempty" xml:"request_error_msg,omitempty"` -} diff --git a/model/cloudpush/TaobaoCloudpushMessageIosAPIRequest.go b/model/cloudpush/TaobaoCloudpushMessageIosAPIRequest.go new file mode 100644 index 0000000000..824a625bcc --- /dev/null +++ b/model/cloudpush/TaobaoCloudpushMessageIosAPIRequest.go @@ -0,0 +1,80 @@ +package cloudpush + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川云推送发送消息给ios API请求 +taobao.cloudpush.message.ios + +百川云推送发送消息给iOS设备. +*/ +type TaobaoCloudpushMessageIosAPIRequest struct { + model.Params + // 发送的消息内容. + _body string + // 推送目标: device:推送给设备; account:推送给指定帐号,all: 推送给全部 + _target string + // 根据Target来设定,如Target=device, 则对应的值为 设备id1,设备id2. 多个值使用逗号分隔 + _targetValue string +} + +// 初始化TaobaoCloudpushMessageIosAPIRequest对象 +func NewTaobaoCloudpushMessageIosRequest() *TaobaoCloudpushMessageIosAPIRequest{ + return &TaobaoCloudpushMessageIosAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCloudpushMessageIosAPIRequest) GetApiMethodName() string { + return "taobao.cloudpush.message.ios" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCloudpushMessageIosAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Body Setter +// 发送的消息内容. +func (r *TaobaoCloudpushMessageIosAPIRequest) SetBody(_body string) error { + r._body = _body + r.Set("body", _body) + return nil +} + +// Body Getter +func (r TaobaoCloudpushMessageIosAPIRequest) GetBody() string { + return r._body +} +// Target Setter +// 推送目标: device:推送给设备; account:推送给指定帐号,all: 推送给全部 +func (r *TaobaoCloudpushMessageIosAPIRequest) SetTarget(_target string) error { + r._target = _target + r.Set("target", _target) + return nil +} + +// Target Getter +func (r TaobaoCloudpushMessageIosAPIRequest) GetTarget() string { + return r._target +} +// TargetValue Setter +// 根据Target来设定,如Target=device, 则对应的值为 设备id1,设备id2. 多个值使用逗号分隔 +func (r *TaobaoCloudpushMessageIosAPIRequest) SetTargetValue(_targetValue string) error { + r._targetValue = _targetValue + r.Set("target_value", _targetValue) + return nil +} + +// TargetValue Getter +func (r TaobaoCloudpushMessageIosAPIRequest) GetTargetValue() string { + return r._targetValue +} diff --git a/model/cloudpush/TaobaoCloudpushMessageIosAPIResponse.go b/model/cloudpush/TaobaoCloudpushMessageIosAPIResponse.go new file mode 100644 index 0000000000..4a425c47d3 --- /dev/null +++ b/model/cloudpush/TaobaoCloudpushMessageIosAPIResponse.go @@ -0,0 +1,31 @@ +package cloudpush + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川云推送发送消息给ios API返回值 +taobao.cloudpush.message.ios + +百川云推送发送消息给iOS设备. +*/ +type TaobaoCloudpushMessageIosAPIResponse struct { + model.CommonResponse + TaobaoCloudpushMessageIosAPIResponseModel +} + +// 百川云推送发送消息给ios 成功返回结果 +type TaobaoCloudpushMessageIosAPIResponseModel struct { + XMLName xml.Name `xml:"cloudpush_message_ios_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求出现错误的错误代码. + RequestErrorCode int64 `json:"request_error_code,omitempty" xml:"request_error_code,omitempty"` + // 请求失败时候的错误信息. + RequestErrorMsg string `json:"request_error_msg,omitempty" xml:"request_error_msg,omitempty"` + // 请求是否成功. + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/cloudpush/TaobaoCloudpushMessageIosResponse.go b/model/cloudpush/TaobaoCloudpushMessageIosResponse.go deleted file mode 100644 index 2b8b3de12b..0000000000 --- a/model/cloudpush/TaobaoCloudpushMessageIosResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package cloudpush - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川云推送发送消息给ios API返回值 -taobao.cloudpush.message.ios - -百川云推送发送消息给iOS设备. -*/ -type TaobaoCloudpushMessageIosAPIResponse struct { - model.CommonResponse - TaobaoCloudpushMessageIosResponse -} - -// 百川云推送发送消息给ios 成功返回结果 -type TaobaoCloudpushMessageIosResponse struct { - XMLName xml.Name `xml:"cloudpush_message_ios_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求出现错误的错误代码. - RequestErrorCode int64 `json:"request_error_code,omitempty" xml:"request_error_code,omitempty"` - // 请求失败时候的错误信息. - RequestErrorMsg string `json:"request_error_msg,omitempty" xml:"request_error_msg,omitempty"` - // 请求是否成功. - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/cloudpush/TaobaoCloudpushNoticeAndroidAPIRequest.go b/model/cloudpush/TaobaoCloudpushNoticeAndroidAPIRequest.go new file mode 100644 index 0000000000..239af20eb7 --- /dev/null +++ b/model/cloudpush/TaobaoCloudpushNoticeAndroidAPIRequest.go @@ -0,0 +1,94 @@ +package cloudpush + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川云推送发送通知给android API请求 +taobao.cloudpush.notice.android + +百川云推送发送通知给android +*/ +type TaobaoCloudpushNoticeAndroidAPIRequest struct { + model.Params + // 通知摘要 + _summary string + // 推送目标: device:推送给设备; account:推送给指定帐号,all: 推送给全部 + _target string + // 根据Target来设定,如Target=device, 则对应的值为 设备id1,设备id2. 多个值使用逗号分隔 + _targetValue string + // 通知的标题. + _title string +} + +// 初始化TaobaoCloudpushNoticeAndroidAPIRequest对象 +func NewTaobaoCloudpushNoticeAndroidRequest() *TaobaoCloudpushNoticeAndroidAPIRequest{ + return &TaobaoCloudpushNoticeAndroidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCloudpushNoticeAndroidAPIRequest) GetApiMethodName() string { + return "taobao.cloudpush.notice.android" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCloudpushNoticeAndroidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Summary Setter +// 通知摘要 +func (r *TaobaoCloudpushNoticeAndroidAPIRequest) SetSummary(_summary string) error { + r._summary = _summary + r.Set("summary", _summary) + return nil +} + +// Summary Getter +func (r TaobaoCloudpushNoticeAndroidAPIRequest) GetSummary() string { + return r._summary +} +// Target Setter +// 推送目标: device:推送给设备; account:推送给指定帐号,all: 推送给全部 +func (r *TaobaoCloudpushNoticeAndroidAPIRequest) SetTarget(_target string) error { + r._target = _target + r.Set("target", _target) + return nil +} + +// Target Getter +func (r TaobaoCloudpushNoticeAndroidAPIRequest) GetTarget() string { + return r._target +} +// TargetValue Setter +// 根据Target来设定,如Target=device, 则对应的值为 设备id1,设备id2. 多个值使用逗号分隔 +func (r *TaobaoCloudpushNoticeAndroidAPIRequest) SetTargetValue(_targetValue string) error { + r._targetValue = _targetValue + r.Set("target_value", _targetValue) + return nil +} + +// TargetValue Getter +func (r TaobaoCloudpushNoticeAndroidAPIRequest) GetTargetValue() string { + return r._targetValue +} +// Title Setter +// 通知的标题. +func (r *TaobaoCloudpushNoticeAndroidAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoCloudpushNoticeAndroidAPIRequest) GetTitle() string { + return r._title +} diff --git a/model/cloudpush/TaobaoCloudpushNoticeAndroidAPIResponse.go b/model/cloudpush/TaobaoCloudpushNoticeAndroidAPIResponse.go new file mode 100644 index 0000000000..526410ea91 --- /dev/null +++ b/model/cloudpush/TaobaoCloudpushNoticeAndroidAPIResponse.go @@ -0,0 +1,31 @@ +package cloudpush + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川云推送发送通知给android API返回值 +taobao.cloudpush.notice.android + +百川云推送发送通知给android +*/ +type TaobaoCloudpushNoticeAndroidAPIResponse struct { + model.CommonResponse + TaobaoCloudpushNoticeAndroidAPIResponseModel +} + +// 百川云推送发送通知给android 成功返回结果 +type TaobaoCloudpushNoticeAndroidAPIResponseModel struct { + XMLName xml.Name `xml:"cloudpush_notice_android_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 请求的错误代码. + RequestErrorCode int64 `json:"request_error_code,omitempty" xml:"request_error_code,omitempty"` + // 请求的错误信息. + RequestErrorMsg string `json:"request_error_msg,omitempty" xml:"request_error_msg,omitempty"` +} diff --git a/model/cloudpush/TaobaoCloudpushNoticeAndroidResponse.go b/model/cloudpush/TaobaoCloudpushNoticeAndroidResponse.go deleted file mode 100644 index 6f7592e197..0000000000 --- a/model/cloudpush/TaobaoCloudpushNoticeAndroidResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package cloudpush - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川云推送发送通知给android API返回值 -taobao.cloudpush.notice.android - -百川云推送发送通知给android -*/ -type TaobaoCloudpushNoticeAndroidAPIResponse struct { - model.CommonResponse - TaobaoCloudpushNoticeAndroidResponse -} - -// 百川云推送发送通知给android 成功返回结果 -type TaobaoCloudpushNoticeAndroidResponse struct { - XMLName xml.Name `xml:"cloudpush_notice_android_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 请求的错误代码. - RequestErrorCode int64 `json:"request_error_code,omitempty" xml:"request_error_code,omitempty"` - // 请求的错误信息. - RequestErrorMsg string `json:"request_error_msg,omitempty" xml:"request_error_msg,omitempty"` -} diff --git a/model/cloudpush/TaobaoCloudpushNoticeIosAPIRequest.go b/model/cloudpush/TaobaoCloudpushNoticeIosAPIRequest.go new file mode 100644 index 0000000000..5d95621878 --- /dev/null +++ b/model/cloudpush/TaobaoCloudpushNoticeIosAPIRequest.go @@ -0,0 +1,108 @@ +package cloudpush + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推送通知给ios设备 API请求 +taobao.cloudpush.notice.ios + +推送通知给ios设备 +*/ +type TaobaoCloudpushNoticeIosAPIRequest struct { + model.Params + // 通知摘要 + _summary string + // 推送目标: device:推送给设备; account:推送给指定帐号,all: 推送给全部 + _target string + // 根据Target来设定,如Target=device, 则对应的值为 设备id1,设备id2. 多个值使用逗号分隔 + _targetValue string + // iOS的通知是通过APNS中心来发送的,需要填写对应的环境信息. DEV:表示开发环境, PRODUCT: 表示生产环境. + _env string + // 提供给IOS通知的扩展属性,如角标或者声音等,注意:参数值为json + _ext string +} + +// 初始化TaobaoCloudpushNoticeIosAPIRequest对象 +func NewTaobaoCloudpushNoticeIosRequest() *TaobaoCloudpushNoticeIosAPIRequest{ + return &TaobaoCloudpushNoticeIosAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCloudpushNoticeIosAPIRequest) GetApiMethodName() string { + return "taobao.cloudpush.notice.ios" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCloudpushNoticeIosAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Summary Setter +// 通知摘要 +func (r *TaobaoCloudpushNoticeIosAPIRequest) SetSummary(_summary string) error { + r._summary = _summary + r.Set("summary", _summary) + return nil +} + +// Summary Getter +func (r TaobaoCloudpushNoticeIosAPIRequest) GetSummary() string { + return r._summary +} +// Target Setter +// 推送目标: device:推送给设备; account:推送给指定帐号,all: 推送给全部 +func (r *TaobaoCloudpushNoticeIosAPIRequest) SetTarget(_target string) error { + r._target = _target + r.Set("target", _target) + return nil +} + +// Target Getter +func (r TaobaoCloudpushNoticeIosAPIRequest) GetTarget() string { + return r._target +} +// TargetValue Setter +// 根据Target来设定,如Target=device, 则对应的值为 设备id1,设备id2. 多个值使用逗号分隔 +func (r *TaobaoCloudpushNoticeIosAPIRequest) SetTargetValue(_targetValue string) error { + r._targetValue = _targetValue + r.Set("target_value", _targetValue) + return nil +} + +// TargetValue Getter +func (r TaobaoCloudpushNoticeIosAPIRequest) GetTargetValue() string { + return r._targetValue +} +// Env Setter +// iOS的通知是通过APNS中心来发送的,需要填写对应的环境信息. DEV:表示开发环境, PRODUCT: 表示生产环境. +func (r *TaobaoCloudpushNoticeIosAPIRequest) SetEnv(_env string) error { + r._env = _env + r.Set("env", _env) + return nil +} + +// Env Getter +func (r TaobaoCloudpushNoticeIosAPIRequest) GetEnv() string { + return r._env +} +// Ext Setter +// 提供给IOS通知的扩展属性,如角标或者声音等,注意:参数值为json +func (r *TaobaoCloudpushNoticeIosAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoCloudpushNoticeIosAPIRequest) GetExt() string { + return r._ext +} diff --git a/model/cloudpush/TaobaoCloudpushNoticeIosAPIResponse.go b/model/cloudpush/TaobaoCloudpushNoticeIosAPIResponse.go new file mode 100644 index 0000000000..20e741afb8 --- /dev/null +++ b/model/cloudpush/TaobaoCloudpushNoticeIosAPIResponse.go @@ -0,0 +1,31 @@ +package cloudpush + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推送通知给ios设备 API返回值 +taobao.cloudpush.notice.ios + +推送通知给ios设备 +*/ +type TaobaoCloudpushNoticeIosAPIResponse struct { + model.CommonResponse + TaobaoCloudpushNoticeIosAPIResponseModel +} + +// 推送通知给ios设备 成功返回结果 +type TaobaoCloudpushNoticeIosAPIResponseModel struct { + XMLName xml.Name `xml:"cloudpush_notice_ios_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求是否成功. + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 请求错误时产生的错误代码. + RequestErrorCode int64 `json:"request_error_code,omitempty" xml:"request_error_code,omitempty"` + // 请求产生的错误信息. + RequestErrorMsg string `json:"request_error_msg,omitempty" xml:"request_error_msg,omitempty"` +} diff --git a/model/cloudpush/TaobaoCloudpushNoticeIosResponse.go b/model/cloudpush/TaobaoCloudpushNoticeIosResponse.go deleted file mode 100644 index b086470c9f..0000000000 --- a/model/cloudpush/TaobaoCloudpushNoticeIosResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package cloudpush - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推送通知给ios设备 API返回值 -taobao.cloudpush.notice.ios - -推送通知给ios设备 -*/ -type TaobaoCloudpushNoticeIosAPIResponse struct { - model.CommonResponse - TaobaoCloudpushNoticeIosResponse -} - -// 推送通知给ios设备 成功返回结果 -type TaobaoCloudpushNoticeIosResponse struct { - XMLName xml.Name `xml:"cloudpush_notice_ios_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求是否成功. - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 请求错误时产生的错误代码. - RequestErrorCode int64 `json:"request_error_code,omitempty" xml:"request_error_code,omitempty"` - // 请求产生的错误信息. - RequestErrorMsg string `json:"request_error_msg,omitempty" xml:"request_error_msg,omitempty"` -} diff --git a/model/cloudpush/TaobaoCloudpushPushAPIRequest.go b/model/cloudpush/TaobaoCloudpushPushAPIRequest.go new file mode 100644 index 0000000000..91e7c6882b --- /dev/null +++ b/model/cloudpush/TaobaoCloudpushPushAPIRequest.go @@ -0,0 +1,332 @@ +package cloudpush + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百川用户使用云推送高级推送接口 API请求 +taobao.cloudpush.push + +百川用户使用云推送高级推送接口 +*/ +type TaobaoCloudpushPushAPIRequest struct { + model.Params + // 推送目标: device:推送给设备; account:推送给指定帐号,tag:推送给自定义标签; all: 推送给全部 + _target string + // 根据Target来设定,如Target=device, 则对应的值为 设备id1,设备id2. 多个值使用逗号分隔.(帐号与设备有一次最多100个的限制) + _targetValue string + // Android对应的activity,仅仅当androidOpenType=2有效 + _androidActivity string + // 自定义的kv结构,开发者扩展用 针对android + _androidExtParameters string + // android通知声音 + _androidMusic string + // 点击通知后动作,1:打开应用 2: 打开应用Activity 3:打开 url + _androidOpenType string + // Android收到推送后打开对应的url,仅仅当androidOpenType=3有效 + _androidOpenUrl string + // 防打扰时长,取值范围为1~23 + _antiHarassDuration int64 + // 防打扰开始时间点,取值范围为0~23 + _antiHarassStartTime int64 + // 批次编号,用于活动效果统计 + _batchNumber string + // 推送内容 + _body string + // 设备类型,取值范围为:0~3云推送支持多种设备,各种设备类型编号如下: iOS设备:deviceType=0; Andriod设备:deviceType=1;如果存在此字段,则向指定的设备类型推送消息。 默认为全部(3); + _deviceType int64 + // iOS应用图标右上角角标 + _iosBadge string + // 自定义的kv结构,开发者扩展用 针对iOS设备 + _iosExtParameters string + // iOS通知声音 + _iosMusic string + // 当APP不在线时候,是否通过通知提醒. 针对不同设备,处理逻辑不同。 该参数只针对iOS设备生效, (remind=true & 发送消息的话(type=0)). 当你的目标设备不在线(既长连接通道不通, 我们会将这条消息的标题,通过苹果的apns通道再送达一次。发apns是发送生产环境的apns,需要在云推送配置的app的iOS生产证书和密码需要正确,否则也发送不了。 (remind=false & 并且是发送消息的话(type=0)),那么设备不在线,则不会再走苹果apns发送了。 + _remind bool + // 离线消息是否保存,若保存, 在推送时候,用户即使不在线,下一次上线则会收到 + _storeOffline bool + // 通知的摘要 + _summery string + // 离线消息保存时长,取值范围为1~72,若不填,则表示不保存离线消息 + _timeout int64 + // 推送的标题内容. + _title string + // 0:表示消息(默认为0),1:表示通知 + _type int64 +} + +// 初始化TaobaoCloudpushPushAPIRequest对象 +func NewTaobaoCloudpushPushRequest() *TaobaoCloudpushPushAPIRequest{ + return &TaobaoCloudpushPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCloudpushPushAPIRequest) GetApiMethodName() string { + return "taobao.cloudpush.push" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCloudpushPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Target Setter +// 推送目标: device:推送给设备; account:推送给指定帐号,tag:推送给自定义标签; all: 推送给全部 +func (r *TaobaoCloudpushPushAPIRequest) SetTarget(_target string) error { + r._target = _target + r.Set("target", _target) + return nil +} + +// Target Getter +func (r TaobaoCloudpushPushAPIRequest) GetTarget() string { + return r._target +} +// TargetValue Setter +// 根据Target来设定,如Target=device, 则对应的值为 设备id1,设备id2. 多个值使用逗号分隔.(帐号与设备有一次最多100个的限制) +func (r *TaobaoCloudpushPushAPIRequest) SetTargetValue(_targetValue string) error { + r._targetValue = _targetValue + r.Set("target_value", _targetValue) + return nil +} + +// TargetValue Getter +func (r TaobaoCloudpushPushAPIRequest) GetTargetValue() string { + return r._targetValue +} +// AndroidActivity Setter +// Android对应的activity,仅仅当androidOpenType=2有效 +func (r *TaobaoCloudpushPushAPIRequest) SetAndroidActivity(_androidActivity string) error { + r._androidActivity = _androidActivity + r.Set("android_activity", _androidActivity) + return nil +} + +// AndroidActivity Getter +func (r TaobaoCloudpushPushAPIRequest) GetAndroidActivity() string { + return r._androidActivity +} +// AndroidExtParameters Setter +// 自定义的kv结构,开发者扩展用 针对android +func (r *TaobaoCloudpushPushAPIRequest) SetAndroidExtParameters(_androidExtParameters string) error { + r._androidExtParameters = _androidExtParameters + r.Set("android_ext_parameters", _androidExtParameters) + return nil +} + +// AndroidExtParameters Getter +func (r TaobaoCloudpushPushAPIRequest) GetAndroidExtParameters() string { + return r._androidExtParameters +} +// AndroidMusic Setter +// android通知声音 +func (r *TaobaoCloudpushPushAPIRequest) SetAndroidMusic(_androidMusic string) error { + r._androidMusic = _androidMusic + r.Set("android_music", _androidMusic) + return nil +} + +// AndroidMusic Getter +func (r TaobaoCloudpushPushAPIRequest) GetAndroidMusic() string { + return r._androidMusic +} +// AndroidOpenType Setter +// 点击通知后动作,1:打开应用 2: 打开应用Activity 3:打开 url +func (r *TaobaoCloudpushPushAPIRequest) SetAndroidOpenType(_androidOpenType string) error { + r._androidOpenType = _androidOpenType + r.Set("android_open_type", _androidOpenType) + return nil +} + +// AndroidOpenType Getter +func (r TaobaoCloudpushPushAPIRequest) GetAndroidOpenType() string { + return r._androidOpenType +} +// AndroidOpenUrl Setter +// Android收到推送后打开对应的url,仅仅当androidOpenType=3有效 +func (r *TaobaoCloudpushPushAPIRequest) SetAndroidOpenUrl(_androidOpenUrl string) error { + r._androidOpenUrl = _androidOpenUrl + r.Set("android_open_url", _androidOpenUrl) + return nil +} + +// AndroidOpenUrl Getter +func (r TaobaoCloudpushPushAPIRequest) GetAndroidOpenUrl() string { + return r._androidOpenUrl +} +// AntiHarassDuration Setter +// 防打扰时长,取值范围为1~23 +func (r *TaobaoCloudpushPushAPIRequest) SetAntiHarassDuration(_antiHarassDuration int64) error { + r._antiHarassDuration = _antiHarassDuration + r.Set("anti_harass_duration", _antiHarassDuration) + return nil +} + +// AntiHarassDuration Getter +func (r TaobaoCloudpushPushAPIRequest) GetAntiHarassDuration() int64 { + return r._antiHarassDuration +} +// AntiHarassStartTime Setter +// 防打扰开始时间点,取值范围为0~23 +func (r *TaobaoCloudpushPushAPIRequest) SetAntiHarassStartTime(_antiHarassStartTime int64) error { + r._antiHarassStartTime = _antiHarassStartTime + r.Set("anti_harass_start_time", _antiHarassStartTime) + return nil +} + +// AntiHarassStartTime Getter +func (r TaobaoCloudpushPushAPIRequest) GetAntiHarassStartTime() int64 { + return r._antiHarassStartTime +} +// BatchNumber Setter +// 批次编号,用于活动效果统计 +func (r *TaobaoCloudpushPushAPIRequest) SetBatchNumber(_batchNumber string) error { + r._batchNumber = _batchNumber + r.Set("batch_number", _batchNumber) + return nil +} + +// BatchNumber Getter +func (r TaobaoCloudpushPushAPIRequest) GetBatchNumber() string { + return r._batchNumber +} +// Body Setter +// 推送内容 +func (r *TaobaoCloudpushPushAPIRequest) SetBody(_body string) error { + r._body = _body + r.Set("body", _body) + return nil +} + +// Body Getter +func (r TaobaoCloudpushPushAPIRequest) GetBody() string { + return r._body +} +// DeviceType Setter +// 设备类型,取值范围为:0~3云推送支持多种设备,各种设备类型编号如下: iOS设备:deviceType=0; Andriod设备:deviceType=1;如果存在此字段,则向指定的设备类型推送消息。 默认为全部(3); +func (r *TaobaoCloudpushPushAPIRequest) SetDeviceType(_deviceType int64) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r TaobaoCloudpushPushAPIRequest) GetDeviceType() int64 { + return r._deviceType +} +// IosBadge Setter +// iOS应用图标右上角角标 +func (r *TaobaoCloudpushPushAPIRequest) SetIosBadge(_iosBadge string) error { + r._iosBadge = _iosBadge + r.Set("ios_badge", _iosBadge) + return nil +} + +// IosBadge Getter +func (r TaobaoCloudpushPushAPIRequest) GetIosBadge() string { + return r._iosBadge +} +// IosExtParameters Setter +// 自定义的kv结构,开发者扩展用 针对iOS设备 +func (r *TaobaoCloudpushPushAPIRequest) SetIosExtParameters(_iosExtParameters string) error { + r._iosExtParameters = _iosExtParameters + r.Set("ios_ext_parameters", _iosExtParameters) + return nil +} + +// IosExtParameters Getter +func (r TaobaoCloudpushPushAPIRequest) GetIosExtParameters() string { + return r._iosExtParameters +} +// IosMusic Setter +// iOS通知声音 +func (r *TaobaoCloudpushPushAPIRequest) SetIosMusic(_iosMusic string) error { + r._iosMusic = _iosMusic + r.Set("ios_music", _iosMusic) + return nil +} + +// IosMusic Getter +func (r TaobaoCloudpushPushAPIRequest) GetIosMusic() string { + return r._iosMusic +} +// Remind Setter +// 当APP不在线时候,是否通过通知提醒. 针对不同设备,处理逻辑不同。 该参数只针对iOS设备生效, (remind=true & 发送消息的话(type=0)). 当你的目标设备不在线(既长连接通道不通, 我们会将这条消息的标题,通过苹果的apns通道再送达一次。发apns是发送生产环境的apns,需要在云推送配置的app的iOS生产证书和密码需要正确,否则也发送不了。 (remind=false & 并且是发送消息的话(type=0)),那么设备不在线,则不会再走苹果apns发送了。 +func (r *TaobaoCloudpushPushAPIRequest) SetRemind(_remind bool) error { + r._remind = _remind + r.Set("remind", _remind) + return nil +} + +// Remind Getter +func (r TaobaoCloudpushPushAPIRequest) GetRemind() bool { + return r._remind +} +// StoreOffline Setter +// 离线消息是否保存,若保存, 在推送时候,用户即使不在线,下一次上线则会收到 +func (r *TaobaoCloudpushPushAPIRequest) SetStoreOffline(_storeOffline bool) error { + r._storeOffline = _storeOffline + r.Set("store_offline", _storeOffline) + return nil +} + +// StoreOffline Getter +func (r TaobaoCloudpushPushAPIRequest) GetStoreOffline() bool { + return r._storeOffline +} +// Summery Setter +// 通知的摘要 +func (r *TaobaoCloudpushPushAPIRequest) SetSummery(_summery string) error { + r._summery = _summery + r.Set("summery", _summery) + return nil +} + +// Summery Getter +func (r TaobaoCloudpushPushAPIRequest) GetSummery() string { + return r._summery +} +// Timeout Setter +// 离线消息保存时长,取值范围为1~72,若不填,则表示不保存离线消息 +func (r *TaobaoCloudpushPushAPIRequest) SetTimeout(_timeout int64) error { + r._timeout = _timeout + r.Set("timeout", _timeout) + return nil +} + +// Timeout Getter +func (r TaobaoCloudpushPushAPIRequest) GetTimeout() int64 { + return r._timeout +} +// Title Setter +// 推送的标题内容. +func (r *TaobaoCloudpushPushAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoCloudpushPushAPIRequest) GetTitle() string { + return r._title +} +// Type Setter +// 0:表示消息(默认为0),1:表示通知 +func (r *TaobaoCloudpushPushAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoCloudpushPushAPIRequest) GetType() int64 { + return r._type +} diff --git a/model/cloudpush/TaobaoCloudpushPushAPIResponse.go b/model/cloudpush/TaobaoCloudpushPushAPIResponse.go new file mode 100644 index 0000000000..2c3537c77f --- /dev/null +++ b/model/cloudpush/TaobaoCloudpushPushAPIResponse.go @@ -0,0 +1,31 @@ +package cloudpush + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百川用户使用云推送高级推送接口 API返回值 +taobao.cloudpush.push + +百川用户使用云推送高级推送接口 +*/ +type TaobaoCloudpushPushAPIResponse struct { + model.CommonResponse + TaobaoCloudpushPushAPIResponseModel +} + +// 百川用户使用云推送高级推送接口 成功返回结果 +type TaobaoCloudpushPushAPIResponseModel struct { + XMLName xml.Name `xml:"cloudpush_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 请求失败对应的错误代码. + RequestErrorCode int64 `json:"request_error_code,omitempty" xml:"request_error_code,omitempty"` + // 请求失败的错误信息. + RequestErrorMsg string `json:"request_error_msg,omitempty" xml:"request_error_msg,omitempty"` +} diff --git a/model/cloudpush/TaobaoCloudpushPushResponse.go b/model/cloudpush/TaobaoCloudpushPushResponse.go deleted file mode 100644 index ef8b452b0d..0000000000 --- a/model/cloudpush/TaobaoCloudpushPushResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package cloudpush - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百川用户使用云推送高级推送接口 API返回值 -taobao.cloudpush.push - -百川用户使用云推送高级推送接口 -*/ -type TaobaoCloudpushPushAPIResponse struct { - model.CommonResponse - TaobaoCloudpushPushResponse -} - -// 百川用户使用云推送高级推送接口 成功返回结果 -type TaobaoCloudpushPushResponse struct { - XMLName xml.Name `xml:"cloudpush_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 请求失败对应的错误代码. - RequestErrorCode int64 `json:"request_error_code,omitempty" xml:"request_error_code,omitempty"` - // 请求失败的错误信息. - RequestErrorMsg string `json:"request_error_msg,omitempty" xml:"request_error_msg,omitempty"` -} diff --git a/model/cmns/YunosServiceCmnsCoaDeviceGetAPIRequest.go b/model/cmns/YunosServiceCmnsCoaDeviceGetAPIRequest.go new file mode 100644 index 0000000000..820b0af2fb --- /dev/null +++ b/model/cmns/YunosServiceCmnsCoaDeviceGetAPIRequest.go @@ -0,0 +1,66 @@ +package cmns + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设备详情查询 API请求 +yunos.service.cmns.coa.device.get + +第三方应用开发者调用此接口查询设备详情 +*/ +type YunosServiceCmnsCoaDeviceGetAPIRequest struct { + model.Params + // 设备id类型,可以是uuid,imei,deviceToken,kp + _type string + // 设备id + _value string +} + +// 初始化YunosServiceCmnsCoaDeviceGetAPIRequest对象 +func NewYunosServiceCmnsCoaDeviceGetRequest() *YunosServiceCmnsCoaDeviceGetAPIRequest{ + return &YunosServiceCmnsCoaDeviceGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosServiceCmnsCoaDeviceGetAPIRequest) GetApiMethodName() string { + return "yunos.service.cmns.coa.device.get" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosServiceCmnsCoaDeviceGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// 设备id类型,可以是uuid,imei,deviceToken,kp +func (r *YunosServiceCmnsCoaDeviceGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r YunosServiceCmnsCoaDeviceGetAPIRequest) GetType() string { + return r._type +} +// Value Setter +// 设备id +func (r *YunosServiceCmnsCoaDeviceGetAPIRequest) SetValue(_value string) error { + r._value = _value + r.Set("value", _value) + return nil +} + +// Value Getter +func (r YunosServiceCmnsCoaDeviceGetAPIRequest) GetValue() string { + return r._value +} diff --git a/model/cmns/YunosServiceCmnsCoaDeviceGetAPIResponse.go b/model/cmns/YunosServiceCmnsCoaDeviceGetAPIResponse.go new file mode 100644 index 0000000000..73fe8440f4 --- /dev/null +++ b/model/cmns/YunosServiceCmnsCoaDeviceGetAPIResponse.go @@ -0,0 +1,31 @@ +package cmns + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设备详情查询 API返回值 +yunos.service.cmns.coa.device.get + +第三方应用开发者调用此接口查询设备详情 +*/ +type YunosServiceCmnsCoaDeviceGetAPIResponse struct { + model.CommonResponse + YunosServiceCmnsCoaDeviceGetAPIResponseModel +} + +// 设备详情查询 成功返回结果 +type YunosServiceCmnsCoaDeviceGetAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_service_cmns_coa_device_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 设备详情 + DeviceList []DeviceResult `json:"device_list,omitempty" xml:"device_list>device_result,omitempty"` + // 接口查询出错提示信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 200表示查询成功 + Status int64 `json:"status,omitempty" xml:"status,omitempty"` +} diff --git a/model/cmns/YunosServiceCmnsCoaDeviceGetResponse.go b/model/cmns/YunosServiceCmnsCoaDeviceGetResponse.go deleted file mode 100644 index fbe0cffb0f..0000000000 --- a/model/cmns/YunosServiceCmnsCoaDeviceGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package cmns - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设备详情查询 API返回值 -yunos.service.cmns.coa.device.get - -第三方应用开发者调用此接口查询设备详情 -*/ -type YunosServiceCmnsCoaDeviceGetAPIResponse struct { - model.CommonResponse - YunosServiceCmnsCoaDeviceGetResponse -} - -// 设备详情查询 成功返回结果 -type YunosServiceCmnsCoaDeviceGetResponse struct { - XMLName xml.Name `xml:"yunos_service_cmns_coa_device_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 设备详情 - DeviceList []DeviceResult `json:"device_list,omitempty" xml:"device_list>device_result,omitempty"` - // 接口查询出错提示信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 200表示查询成功 - Status int64 `json:"status,omitempty" xml:"status,omitempty"` -} diff --git a/model/cmns/YunosServiceCmnsCoaDeviceIsonlineAPIRequest.go b/model/cmns/YunosServiceCmnsCoaDeviceIsonlineAPIRequest.go new file mode 100644 index 0000000000..cbbc88bda8 --- /dev/null +++ b/model/cmns/YunosServiceCmnsCoaDeviceIsonlineAPIRequest.go @@ -0,0 +1,66 @@ +package cmns + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据设备id查询设备是否在线 API请求 +yunos.service.cmns.coa.device.isonline + +根据设备id查询设备是否在线 +*/ +type YunosServiceCmnsCoaDeviceIsonlineAPIRequest struct { + model.Params + // 设备id类型,取值"uuid"或者"imei"或者"deviceToken" + _type string + // 对应的设备id值 + _value string +} + +// 初始化YunosServiceCmnsCoaDeviceIsonlineAPIRequest对象 +func NewYunosServiceCmnsCoaDeviceIsonlineRequest() *YunosServiceCmnsCoaDeviceIsonlineAPIRequest{ + return &YunosServiceCmnsCoaDeviceIsonlineAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosServiceCmnsCoaDeviceIsonlineAPIRequest) GetApiMethodName() string { + return "yunos.service.cmns.coa.device.isonline" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosServiceCmnsCoaDeviceIsonlineAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// 设备id类型,取值"uuid"或者"imei"或者"deviceToken" +func (r *YunosServiceCmnsCoaDeviceIsonlineAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r YunosServiceCmnsCoaDeviceIsonlineAPIRequest) GetType() string { + return r._type +} +// Value Setter +// 对应的设备id值 +func (r *YunosServiceCmnsCoaDeviceIsonlineAPIRequest) SetValue(_value string) error { + r._value = _value + r.Set("value", _value) + return nil +} + +// Value Getter +func (r YunosServiceCmnsCoaDeviceIsonlineAPIRequest) GetValue() string { + return r._value +} diff --git a/model/cmns/YunosServiceCmnsCoaDeviceIsonlineAPIResponse.go b/model/cmns/YunosServiceCmnsCoaDeviceIsonlineAPIResponse.go new file mode 100644 index 0000000000..393f41b378 --- /dev/null +++ b/model/cmns/YunosServiceCmnsCoaDeviceIsonlineAPIResponse.go @@ -0,0 +1,31 @@ +package cmns + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据设备id查询设备是否在线 API返回值 +yunos.service.cmns.coa.device.isonline + +根据设备id查询设备是否在线 +*/ +type YunosServiceCmnsCoaDeviceIsonlineAPIResponse struct { + model.CommonResponse + YunosServiceCmnsCoaDeviceIsonlineAPIResponseModel +} + +// 根据设备id查询设备是否在线 成功返回结果 +type YunosServiceCmnsCoaDeviceIsonlineAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_service_cmns_coa_device_isonline_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data int64 `json:"data,omitempty" xml:"data,omitempty"` + // msg + Message string `json:"message,omitempty" xml:"message,omitempty"` + // status + Status int64 `json:"status,omitempty" xml:"status,omitempty"` +} diff --git a/model/cmns/YunosServiceCmnsCoaDeviceIsonlineResponse.go b/model/cmns/YunosServiceCmnsCoaDeviceIsonlineResponse.go deleted file mode 100644 index 879c13150b..0000000000 --- a/model/cmns/YunosServiceCmnsCoaDeviceIsonlineResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package cmns - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据设备id查询设备是否在线 API返回值 -yunos.service.cmns.coa.device.isonline - -根据设备id查询设备是否在线 -*/ -type YunosServiceCmnsCoaDeviceIsonlineAPIResponse struct { - model.CommonResponse - YunosServiceCmnsCoaDeviceIsonlineResponse -} - -// 根据设备id查询设备是否在线 成功返回结果 -type YunosServiceCmnsCoaDeviceIsonlineResponse struct { - XMLName xml.Name `xml:"yunos_service_cmns_coa_device_isonline_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data int64 `json:"data,omitempty" xml:"data,omitempty"` - // msg - Message string `json:"message,omitempty" xml:"message,omitempty"` - // status - Status int64 `json:"status,omitempty" xml:"status,omitempty"` -} diff --git a/model/cmns/YunosServiceCmnsCoaMessageAckAPIRequest.go b/model/cmns/YunosServiceCmnsCoaMessageAckAPIRequest.go new file mode 100644 index 0000000000..0d8e8ac8b9 --- /dev/null +++ b/model/cmns/YunosServiceCmnsCoaMessageAckAPIRequest.go @@ -0,0 +1,94 @@ +package cmns + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +消息回执查询 API请求 +yunos.service.cmns.coa.message.ack + +第三方应用开发者调用此接口查询设备是否收到消息,只能查询此appKey床发的消息 +*/ +type YunosServiceCmnsCoaMessageAckAPIRequest struct { + model.Params + // 设备唯一值deviceToken + _deviceToken string + // 设备imei + _imei string + // 设备uuid + _uuid string + // 消息ID + _mid int64 +} + +// 初始化YunosServiceCmnsCoaMessageAckAPIRequest对象 +func NewYunosServiceCmnsCoaMessageAckRequest() *YunosServiceCmnsCoaMessageAckAPIRequest{ + return &YunosServiceCmnsCoaMessageAckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetApiMethodName() string { + return "yunos.service.cmns.coa.message.ack" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceToken Setter +// 设备唯一值deviceToken +func (r *YunosServiceCmnsCoaMessageAckAPIRequest) SetDeviceToken(_deviceToken string) error { + r._deviceToken = _deviceToken + r.Set("device_token", _deviceToken) + return nil +} + +// DeviceToken Getter +func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetDeviceToken() string { + return r._deviceToken +} +// Imei Setter +// 设备imei +func (r *YunosServiceCmnsCoaMessageAckAPIRequest) SetImei(_imei string) error { + r._imei = _imei + r.Set("imei", _imei) + return nil +} + +// Imei Getter +func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetImei() string { + return r._imei +} +// Uuid Setter +// 设备uuid +func (r *YunosServiceCmnsCoaMessageAckAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetUuid() string { + return r._uuid +} +// Mid Setter +// 消息ID +func (r *YunosServiceCmnsCoaMessageAckAPIRequest) SetMid(_mid int64) error { + r._mid = _mid + r.Set("mid", _mid) + return nil +} + +// Mid Getter +func (r YunosServiceCmnsCoaMessageAckAPIRequest) GetMid() int64 { + return r._mid +} diff --git a/model/cmns/YunosServiceCmnsCoaMessageAckAPIResponse.go b/model/cmns/YunosServiceCmnsCoaMessageAckAPIResponse.go new file mode 100644 index 0000000000..63284bc884 --- /dev/null +++ b/model/cmns/YunosServiceCmnsCoaMessageAckAPIResponse.go @@ -0,0 +1,31 @@ +package cmns + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +消息回执查询 API返回值 +yunos.service.cmns.coa.message.ack + +第三方应用开发者调用此接口查询设备是否收到消息,只能查询此appKey床发的消息 +*/ +type YunosServiceCmnsCoaMessageAckAPIResponse struct { + model.CommonResponse + YunosServiceCmnsCoaMessageAckAPIResponseModel +} + +// 消息回执查询 成功返回结果 +type YunosServiceCmnsCoaMessageAckAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_service_cmns_coa_message_ack_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口调用成功 + Status int64 `json:"status,omitempty" xml:"status,omitempty"` + // 接口出错提示信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 接口调用成功返回信息
0:未到达 1:已到达 + Data int64 `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/cmns/YunosServiceCmnsCoaMessageAckResponse.go b/model/cmns/YunosServiceCmnsCoaMessageAckResponse.go deleted file mode 100644 index 59b02019d8..0000000000 --- a/model/cmns/YunosServiceCmnsCoaMessageAckResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package cmns - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -消息回执查询 API返回值 -yunos.service.cmns.coa.message.ack - -第三方应用开发者调用此接口查询设备是否收到消息,只能查询此appKey床发的消息 -*/ -type YunosServiceCmnsCoaMessageAckAPIResponse struct { - model.CommonResponse - YunosServiceCmnsCoaMessageAckResponse -} - -// 消息回执查询 成功返回结果 -type YunosServiceCmnsCoaMessageAckResponse struct { - XMLName xml.Name `xml:"yunos_service_cmns_coa_message_ack_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口调用成功 - Status int64 `json:"status,omitempty" xml:"status,omitempty"` - // 接口出错提示信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 接口调用成功返回信息
0:未到达 1:已到达 - Data int64 `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/cmns/YunosServiceCmnsCoaMessageAcksListAPIRequest.go b/model/cmns/YunosServiceCmnsCoaMessageAcksListAPIRequest.go new file mode 100644 index 0000000000..e165b1ece6 --- /dev/null +++ b/model/cmns/YunosServiceCmnsCoaMessageAcksListAPIRequest.go @@ -0,0 +1,94 @@ +package cmns + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +消息ack记录查询 API请求 +yunos.service.cmns.coa.message.acks.list + +第三方应用开发者调用此接口查询消息ack记录 +*/ +type YunosServiceCmnsCoaMessageAcksListAPIRequest struct { + model.Params + // 消息id + _mid int64 + // 设备id + _did int64 + // 分页查询页码 + _pageIndex int64 + // 分页每页数据集数 + _pageSize int64 +} + +// 初始化YunosServiceCmnsCoaMessageAcksListAPIRequest对象 +func NewYunosServiceCmnsCoaMessageAcksListRequest() *YunosServiceCmnsCoaMessageAcksListAPIRequest{ + return &YunosServiceCmnsCoaMessageAcksListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetApiMethodName() string { + return "yunos.service.cmns.coa.message.acks.list" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Mid Setter +// 消息id +func (r *YunosServiceCmnsCoaMessageAcksListAPIRequest) SetMid(_mid int64) error { + r._mid = _mid + r.Set("mid", _mid) + return nil +} + +// Mid Getter +func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetMid() int64 { + return r._mid +} +// Did Setter +// 设备id +func (r *YunosServiceCmnsCoaMessageAcksListAPIRequest) SetDid(_did int64) error { + r._did = _did + r.Set("did", _did) + return nil +} + +// Did Getter +func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetDid() int64 { + return r._did +} +// PageIndex Setter +// 分页查询页码 +func (r *YunosServiceCmnsCoaMessageAcksListAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} +// PageSize Setter +// 分页每页数据集数 +func (r *YunosServiceCmnsCoaMessageAcksListAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r YunosServiceCmnsCoaMessageAcksListAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/cmns/YunosServiceCmnsCoaMessageAcksListAPIResponse.go b/model/cmns/YunosServiceCmnsCoaMessageAcksListAPIResponse.go new file mode 100644 index 0000000000..4f27131de2 --- /dev/null +++ b/model/cmns/YunosServiceCmnsCoaMessageAcksListAPIResponse.go @@ -0,0 +1,31 @@ +package cmns + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +消息ack记录查询 API返回值 +yunos.service.cmns.coa.message.acks.list + +第三方应用开发者调用此接口查询消息ack记录 +*/ +type YunosServiceCmnsCoaMessageAcksListAPIResponse struct { + model.CommonResponse + YunosServiceCmnsCoaMessageAcksListAPIResponseModel +} + +// 消息ack记录查询 成功返回结果 +type YunosServiceCmnsCoaMessageAcksListAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_service_cmns_coa_message_acks_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分页结果对象 + Data *PaginationQueryResult `json:"data,omitempty" xml:"data,omitempty"` + // 接口查询出错提示信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 200表示查询成功 + Status int64 `json:"status,omitempty" xml:"status,omitempty"` +} diff --git a/model/cmns/YunosServiceCmnsCoaMessageAcksListResponse.go b/model/cmns/YunosServiceCmnsCoaMessageAcksListResponse.go deleted file mode 100644 index 880a93db48..0000000000 --- a/model/cmns/YunosServiceCmnsCoaMessageAcksListResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package cmns - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -消息ack记录查询 API返回值 -yunos.service.cmns.coa.message.acks.list - -第三方应用开发者调用此接口查询消息ack记录 -*/ -type YunosServiceCmnsCoaMessageAcksListAPIResponse struct { - model.CommonResponse - YunosServiceCmnsCoaMessageAcksListResponse -} - -// 消息ack记录查询 成功返回结果 -type YunosServiceCmnsCoaMessageAcksListResponse struct { - XMLName xml.Name `xml:"yunos_service_cmns_coa_message_acks_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分页结果对象 - Data *PaginationQueryResult `json:"data,omitempty" xml:"data,omitempty"` - // 接口查询出错提示信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 200表示查询成功 - Status int64 `json:"status,omitempty" xml:"status,omitempty"` -} diff --git a/model/cmns/YunosServiceCmnsCoaMessageCancelAPIRequest.go b/model/cmns/YunosServiceCmnsCoaMessageCancelAPIRequest.go new file mode 100644 index 0000000000..302c90c662 --- /dev/null +++ b/model/cmns/YunosServiceCmnsCoaMessageCancelAPIRequest.go @@ -0,0 +1,52 @@ +package cmns + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +CMNS消息撤回 API请求 +yunos.service.cmns.coa.message.cancel + +此接口用户撤回之前已经发出去的消息,根据消息ID撤回,只能撤回此appKey创建的消息。 +*/ +type YunosServiceCmnsCoaMessageCancelAPIRequest struct { + model.Params + // 消息ID + _mid int64 +} + +// 初始化YunosServiceCmnsCoaMessageCancelAPIRequest对象 +func NewYunosServiceCmnsCoaMessageCancelRequest() *YunosServiceCmnsCoaMessageCancelAPIRequest{ + return &YunosServiceCmnsCoaMessageCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosServiceCmnsCoaMessageCancelAPIRequest) GetApiMethodName() string { + return "yunos.service.cmns.coa.message.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosServiceCmnsCoaMessageCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Mid Setter +// 消息ID +func (r *YunosServiceCmnsCoaMessageCancelAPIRequest) SetMid(_mid int64) error { + r._mid = _mid + r.Set("mid", _mid) + return nil +} + +// Mid Getter +func (r YunosServiceCmnsCoaMessageCancelAPIRequest) GetMid() int64 { + return r._mid +} diff --git a/model/cmns/YunosServiceCmnsCoaMessageCancelAPIResponse.go b/model/cmns/YunosServiceCmnsCoaMessageCancelAPIResponse.go new file mode 100644 index 0000000000..62a45c0df6 --- /dev/null +++ b/model/cmns/YunosServiceCmnsCoaMessageCancelAPIResponse.go @@ -0,0 +1,31 @@ +package cmns + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +CMNS消息撤回 API返回值 +yunos.service.cmns.coa.message.cancel + +此接口用户撤回之前已经发出去的消息,根据消息ID撤回,只能撤回此appKey创建的消息。 +*/ +type YunosServiceCmnsCoaMessageCancelAPIResponse struct { + model.CommonResponse + YunosServiceCmnsCoaMessageCancelAPIResponseModel +} + +// CMNS消息撤回 成功返回结果 +type YunosServiceCmnsCoaMessageCancelAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_service_cmns_coa_message_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回状态 200表示调用成功 + Status int64 `json:"status,omitempty" xml:"status,omitempty"` + // true:撤回成功
false:撤回失败 + Data bool `json:"data,omitempty" xml:"data,omitempty"` + // 调用出错时返回信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/cmns/YunosServiceCmnsCoaMessageCancelResponse.go b/model/cmns/YunosServiceCmnsCoaMessageCancelResponse.go deleted file mode 100644 index e041a4b7c0..0000000000 --- a/model/cmns/YunosServiceCmnsCoaMessageCancelResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package cmns - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -CMNS消息撤回 API返回值 -yunos.service.cmns.coa.message.cancel - -此接口用户撤回之前已经发出去的消息,根据消息ID撤回,只能撤回此appKey创建的消息。 -*/ -type YunosServiceCmnsCoaMessageCancelAPIResponse struct { - model.CommonResponse - YunosServiceCmnsCoaMessageCancelResponse -} - -// CMNS消息撤回 成功返回结果 -type YunosServiceCmnsCoaMessageCancelResponse struct { - XMLName xml.Name `xml:"yunos_service_cmns_coa_message_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回状态 200表示调用成功 - Status int64 `json:"status,omitempty" xml:"status,omitempty"` - // true:撤回成功
false:撤回失败 - Data bool `json:"data,omitempty" xml:"data,omitempty"` - // 调用出错时返回信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/cmns/YunosServiceCmnsCoaMessageGetAPIRequest.go b/model/cmns/YunosServiceCmnsCoaMessageGetAPIRequest.go new file mode 100644 index 0000000000..660f33c346 --- /dev/null +++ b/model/cmns/YunosServiceCmnsCoaMessageGetAPIRequest.go @@ -0,0 +1,52 @@ +package cmns + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +消息详情查询 API请求 +yunos.service.cmns.coa.message.get + +第三方应用开发者调用此接口查询消息详情,只能查询此appKey发的消息 +*/ +type YunosServiceCmnsCoaMessageGetAPIRequest struct { + model.Params + // 消息id + _mid int64 +} + +// 初始化YunosServiceCmnsCoaMessageGetAPIRequest对象 +func NewYunosServiceCmnsCoaMessageGetRequest() *YunosServiceCmnsCoaMessageGetAPIRequest{ + return &YunosServiceCmnsCoaMessageGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosServiceCmnsCoaMessageGetAPIRequest) GetApiMethodName() string { + return "yunos.service.cmns.coa.message.get" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosServiceCmnsCoaMessageGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Mid Setter +// 消息id +func (r *YunosServiceCmnsCoaMessageGetAPIRequest) SetMid(_mid int64) error { + r._mid = _mid + r.Set("mid", _mid) + return nil +} + +// Mid Getter +func (r YunosServiceCmnsCoaMessageGetAPIRequest) GetMid() int64 { + return r._mid +} diff --git a/model/cmns/YunosServiceCmnsCoaMessageGetAPIResponse.go b/model/cmns/YunosServiceCmnsCoaMessageGetAPIResponse.go new file mode 100644 index 0000000000..e3d0c45780 --- /dev/null +++ b/model/cmns/YunosServiceCmnsCoaMessageGetAPIResponse.go @@ -0,0 +1,31 @@ +package cmns + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +消息详情查询 API返回值 +yunos.service.cmns.coa.message.get + +第三方应用开发者调用此接口查询消息详情,只能查询此appKey发的消息 +*/ +type YunosServiceCmnsCoaMessageGetAPIResponse struct { + model.CommonResponse + YunosServiceCmnsCoaMessageGetAPIResponseModel +} + +// 消息详情查询 成功返回结果 +type YunosServiceCmnsCoaMessageGetAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_service_cmns_coa_message_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 消息内容 + Data *MessageDetailResult `json:"data,omitempty" xml:"data,omitempty"` + // 接口查询出错提示信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 200表示查询成功 + Status int64 `json:"status,omitempty" xml:"status,omitempty"` +} diff --git a/model/cmns/YunosServiceCmnsCoaMessageGetResponse.go b/model/cmns/YunosServiceCmnsCoaMessageGetResponse.go deleted file mode 100644 index aaa1bbf78a..0000000000 --- a/model/cmns/YunosServiceCmnsCoaMessageGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package cmns - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -消息详情查询 API返回值 -yunos.service.cmns.coa.message.get - -第三方应用开发者调用此接口查询消息详情,只能查询此appKey发的消息 -*/ -type YunosServiceCmnsCoaMessageGetAPIResponse struct { - model.CommonResponse - YunosServiceCmnsCoaMessageGetResponse -} - -// 消息详情查询 成功返回结果 -type YunosServiceCmnsCoaMessageGetResponse struct { - XMLName xml.Name `xml:"yunos_service_cmns_coa_message_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 消息内容 - Data *MessageDetailResult `json:"data,omitempty" xml:"data,omitempty"` - // 接口查询出错提示信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 200表示查询成功 - Status int64 `json:"status,omitempty" xml:"status,omitempty"` -} diff --git a/model/cmns/YunosServiceCmnsCoaMessagePushAPIRequest.go b/model/cmns/YunosServiceCmnsCoaMessagePushAPIRequest.go new file mode 100644 index 0000000000..fcd7904e12 --- /dev/null +++ b/model/cmns/YunosServiceCmnsCoaMessagePushAPIRequest.go @@ -0,0 +1,52 @@ +package cmns + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +消息推送接口 API请求 +yunos.service.cmns.coa.message.push + +调用CMNS系统的pushMessage接口实现消息通知到YUNOS设备的第三方应用软件。 +*/ +type YunosServiceCmnsCoaMessagePushAPIRequest struct { + model.Params + // 消息推送请求对象 + _pushRequest *PushRequest +} + +// 初始化YunosServiceCmnsCoaMessagePushAPIRequest对象 +func NewYunosServiceCmnsCoaMessagePushRequest() *YunosServiceCmnsCoaMessagePushAPIRequest{ + return &YunosServiceCmnsCoaMessagePushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosServiceCmnsCoaMessagePushAPIRequest) GetApiMethodName() string { + return "yunos.service.cmns.coa.message.push" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosServiceCmnsCoaMessagePushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PushRequest Setter +// 消息推送请求对象 +func (r *YunosServiceCmnsCoaMessagePushAPIRequest) SetPushRequest(_pushRequest *PushRequest) error { + r._pushRequest = _pushRequest + r.Set("push_request", _pushRequest) + return nil +} + +// PushRequest Getter +func (r YunosServiceCmnsCoaMessagePushAPIRequest) GetPushRequest() *PushRequest { + return r._pushRequest +} diff --git a/model/cmns/YunosServiceCmnsCoaMessagePushAPIResponse.go b/model/cmns/YunosServiceCmnsCoaMessagePushAPIResponse.go new file mode 100644 index 0000000000..963809b222 --- /dev/null +++ b/model/cmns/YunosServiceCmnsCoaMessagePushAPIResponse.go @@ -0,0 +1,31 @@ +package cmns + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +消息推送接口 API返回值 +yunos.service.cmns.coa.message.push + +调用CMNS系统的pushMessage接口实现消息通知到YUNOS设备的第三方应用软件。 +*/ +type YunosServiceCmnsCoaMessagePushAPIResponse struct { + model.CommonResponse + YunosServiceCmnsCoaMessagePushAPIResponseModel +} + +// 消息推送接口 成功返回结果 +type YunosServiceCmnsCoaMessagePushAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_service_cmns_coa_message_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 消息ID,失败则为null + Mid int64 `json:"mid,omitempty" xml:"mid,omitempty"` + // 消息发送提示 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 200:消息发送成功 + Status int64 `json:"status,omitempty" xml:"status,omitempty"` +} diff --git a/model/cmns/YunosServiceCmnsCoaMessagePushResponse.go b/model/cmns/YunosServiceCmnsCoaMessagePushResponse.go deleted file mode 100644 index 2b2acc2272..0000000000 --- a/model/cmns/YunosServiceCmnsCoaMessagePushResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package cmns - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -消息推送接口 API返回值 -yunos.service.cmns.coa.message.push - -调用CMNS系统的pushMessage接口实现消息通知到YUNOS设备的第三方应用软件。 -*/ -type YunosServiceCmnsCoaMessagePushAPIResponse struct { - model.CommonResponse - YunosServiceCmnsCoaMessagePushResponse -} - -// 消息推送接口 成功返回结果 -type YunosServiceCmnsCoaMessagePushResponse struct { - XMLName xml.Name `xml:"yunos_service_cmns_coa_message_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 消息ID,失败则为null - Mid int64 `json:"mid,omitempty" xml:"mid,omitempty"` - // 消息发送提示 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 200:消息发送成功 - Status int64 `json:"status,omitempty" xml:"status,omitempty"` -} diff --git a/model/cmns/YunosServiceCmnsCoaMessageresultGetAPIRequest.go b/model/cmns/YunosServiceCmnsCoaMessageresultGetAPIRequest.go new file mode 100644 index 0000000000..eac1f8234a --- /dev/null +++ b/model/cmns/YunosServiceCmnsCoaMessageresultGetAPIRequest.go @@ -0,0 +1,52 @@ +package cmns + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +CMNS消息发送到达查询 API请求 +yunos.service.cmns.coa.messageresult.get + +CMNS消息发送到达查询,根据消息ID查询,仅能查询该appKey所发送的消息 +*/ +type YunosServiceCmnsCoaMessageresultGetAPIRequest struct { + model.Params + // 消息ID + _mid int64 +} + +// 初始化YunosServiceCmnsCoaMessageresultGetAPIRequest对象 +func NewYunosServiceCmnsCoaMessageresultGetRequest() *YunosServiceCmnsCoaMessageresultGetAPIRequest{ + return &YunosServiceCmnsCoaMessageresultGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosServiceCmnsCoaMessageresultGetAPIRequest) GetApiMethodName() string { + return "yunos.service.cmns.coa.messageresult.get" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosServiceCmnsCoaMessageresultGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Mid Setter +// 消息ID +func (r *YunosServiceCmnsCoaMessageresultGetAPIRequest) SetMid(_mid int64) error { + r._mid = _mid + r.Set("mid", _mid) + return nil +} + +// Mid Getter +func (r YunosServiceCmnsCoaMessageresultGetAPIRequest) GetMid() int64 { + return r._mid +} diff --git a/model/cmns/YunosServiceCmnsCoaMessageresultGetAPIResponse.go b/model/cmns/YunosServiceCmnsCoaMessageresultGetAPIResponse.go new file mode 100644 index 0000000000..0e9827d1c9 --- /dev/null +++ b/model/cmns/YunosServiceCmnsCoaMessageresultGetAPIResponse.go @@ -0,0 +1,31 @@ +package cmns + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +CMNS消息发送到达查询 API返回值 +yunos.service.cmns.coa.messageresult.get + +CMNS消息发送到达查询,根据消息ID查询,仅能查询该appKey所发送的消息 +*/ +type YunosServiceCmnsCoaMessageresultGetAPIResponse struct { + model.CommonResponse + YunosServiceCmnsCoaMessageresultGetAPIResponseModel +} + +// CMNS消息发送到达查询 成功返回结果 +type YunosServiceCmnsCoaMessageresultGetAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_service_cmns_coa_messageresult_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 200表示查询成功 + Status int64 `json:"status,omitempty" xml:"status,omitempty"` + // 接口查询出错提示信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 具体的消息返回值 + Data *MessageResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/cmns/YunosServiceCmnsCoaMessageresultGetResponse.go b/model/cmns/YunosServiceCmnsCoaMessageresultGetResponse.go deleted file mode 100644 index 660f2adcf2..0000000000 --- a/model/cmns/YunosServiceCmnsCoaMessageresultGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package cmns - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -CMNS消息发送到达查询 API返回值 -yunos.service.cmns.coa.messageresult.get - -CMNS消息发送到达查询,根据消息ID查询,仅能查询该appKey所发送的消息 -*/ -type YunosServiceCmnsCoaMessageresultGetAPIResponse struct { - model.CommonResponse - YunosServiceCmnsCoaMessageresultGetResponse -} - -// CMNS消息发送到达查询 成功返回结果 -type YunosServiceCmnsCoaMessageresultGetResponse struct { - XMLName xml.Name `xml:"yunos_service_cmns_coa_messageresult_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 200表示查询成功 - Status int64 `json:"status,omitempty" xml:"status,omitempty"` - // 接口查询出错提示信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 具体的消息返回值 - Data *MessageResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/cmns/YunosServiceCmnsCoaPushAPIRequest.go b/model/cmns/YunosServiceCmnsCoaPushAPIRequest.go new file mode 100644 index 0000000000..73048f2b69 --- /dev/null +++ b/model/cmns/YunosServiceCmnsCoaPushAPIRequest.go @@ -0,0 +1,52 @@ +package cmns + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +消息推送接口 API请求 +yunos.service.cmns.coa.push + +调用CMNS系统的pushMessage接口实现消息通知到YUNOS设备的第三方应用软件。 +*/ +type YunosServiceCmnsCoaPushAPIRequest struct { + model.Params + // 消息结构对象 + _msgObj *CmnsMessage +} + +// 初始化YunosServiceCmnsCoaPushAPIRequest对象 +func NewYunosServiceCmnsCoaPushRequest() *YunosServiceCmnsCoaPushAPIRequest{ + return &YunosServiceCmnsCoaPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosServiceCmnsCoaPushAPIRequest) GetApiMethodName() string { + return "yunos.service.cmns.coa.push" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosServiceCmnsCoaPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MsgObj Setter +// 消息结构对象 +func (r *YunosServiceCmnsCoaPushAPIRequest) SetMsgObj(_msgObj *CmnsMessage) error { + r._msgObj = _msgObj + r.Set("msg_obj", _msgObj) + return nil +} + +// MsgObj Getter +func (r YunosServiceCmnsCoaPushAPIRequest) GetMsgObj() *CmnsMessage { + return r._msgObj +} diff --git a/model/cmns/YunosServiceCmnsCoaPushAPIResponse.go b/model/cmns/YunosServiceCmnsCoaPushAPIResponse.go new file mode 100644 index 0000000000..2384bf207a --- /dev/null +++ b/model/cmns/YunosServiceCmnsCoaPushAPIResponse.go @@ -0,0 +1,31 @@ +package cmns + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +消息推送接口 API返回值 +yunos.service.cmns.coa.push + +调用CMNS系统的pushMessage接口实现消息通知到YUNOS设备的第三方应用软件。 +*/ +type YunosServiceCmnsCoaPushAPIResponse struct { + model.CommonResponse + YunosServiceCmnsCoaPushAPIResponseModel +} + +// 消息推送接口 成功返回结果 +type YunosServiceCmnsCoaPushAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_service_cmns_coa_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 200:消息发送成功 + Status int64 `json:"status,omitempty" xml:"status,omitempty"` + // 消息发送提示 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 消息ID,失败则为null + Mid int64 `json:"mid,omitempty" xml:"mid,omitempty"` +} diff --git a/model/cmns/YunosServiceCmnsCoaPushResponse.go b/model/cmns/YunosServiceCmnsCoaPushResponse.go deleted file mode 100644 index 3f27811b49..0000000000 --- a/model/cmns/YunosServiceCmnsCoaPushResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package cmns - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -消息推送接口 API返回值 -yunos.service.cmns.coa.push - -调用CMNS系统的pushMessage接口实现消息通知到YUNOS设备的第三方应用软件。 -*/ -type YunosServiceCmnsCoaPushAPIResponse struct { - model.CommonResponse - YunosServiceCmnsCoaPushResponse -} - -// 消息推送接口 成功返回结果 -type YunosServiceCmnsCoaPushResponse struct { - XMLName xml.Name `xml:"yunos_service_cmns_coa_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 200:消息发送成功 - Status int64 `json:"status,omitempty" xml:"status,omitempty"` - // 消息发送提示 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 消息ID,失败则为null - Mid int64 `json:"mid,omitempty" xml:"mid,omitempty"` -} diff --git a/model/cntms/CainiaoCntmsLogisticsOrderConsignAPIRequest.go b/model/cntms/CainiaoCntmsLogisticsOrderConsignAPIRequest.go new file mode 100644 index 0000000000..6dcc861767 --- /dev/null +++ b/model/cntms/CainiaoCntmsLogisticsOrderConsignAPIRequest.go @@ -0,0 +1,52 @@ +package cntms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟配商家仓库发货 API请求 +cainiao.cntms.logistics.order.consign + +商家包装打印面单结束后,通知菜鸟包裹要发货 +*/ +type CainiaoCntmsLogisticsOrderConsignAPIRequest struct { + model.Params + // 配送发货信息 + _content *CnTmsLogisticsOrderConsignContent +} + +// 初始化CainiaoCntmsLogisticsOrderConsignAPIRequest对象 +func NewCainiaoCntmsLogisticsOrderConsignRequest() *CainiaoCntmsLogisticsOrderConsignAPIRequest{ + return &CainiaoCntmsLogisticsOrderConsignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCntmsLogisticsOrderConsignAPIRequest) GetApiMethodName() string { + return "cainiao.cntms.logistics.order.consign" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCntmsLogisticsOrderConsignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Content Setter +// 配送发货信息 +func (r *CainiaoCntmsLogisticsOrderConsignAPIRequest) SetContent(_content *CnTmsLogisticsOrderConsignContent) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r CainiaoCntmsLogisticsOrderConsignAPIRequest) GetContent() *CnTmsLogisticsOrderConsignContent { + return r._content +} diff --git a/model/cntms/CainiaoCntmsLogisticsOrderConsignAPIResponse.go b/model/cntms/CainiaoCntmsLogisticsOrderConsignAPIResponse.go new file mode 100644 index 0000000000..76bfb87963 --- /dev/null +++ b/model/cntms/CainiaoCntmsLogisticsOrderConsignAPIResponse.go @@ -0,0 +1,27 @@ +package cntms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟配商家仓库发货 API返回值 +cainiao.cntms.logistics.order.consign + +商家包装打印面单结束后,通知菜鸟包裹要发货 +*/ +type CainiaoCntmsLogisticsOrderConsignAPIResponse struct { + model.CommonResponse + CainiaoCntmsLogisticsOrderConsignAPIResponseModel +} + +// 菜鸟配商家仓库发货 成功返回结果 +type CainiaoCntmsLogisticsOrderConsignAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cntms_logistics_order_consign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 物流单号 + LogisticsOrderCode string `json:"logistics_order_code,omitempty" xml:"logistics_order_code,omitempty"` +} diff --git a/model/cntms/CainiaoCntmsLogisticsOrderConsignResponse.go b/model/cntms/CainiaoCntmsLogisticsOrderConsignResponse.go deleted file mode 100644 index 3e9e7e77b6..0000000000 --- a/model/cntms/CainiaoCntmsLogisticsOrderConsignResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package cntms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -菜鸟配商家仓库发货 API返回值 -cainiao.cntms.logistics.order.consign - -商家包装打印面单结束后,通知菜鸟包裹要发货 -*/ -type CainiaoCntmsLogisticsOrderConsignAPIResponse struct { - model.CommonResponse - CainiaoCntmsLogisticsOrderConsignResponse -} - -// 菜鸟配商家仓库发货 成功返回结果 -type CainiaoCntmsLogisticsOrderConsignResponse struct { - XMLName xml.Name `xml:"cainiao_cntms_logistics_order_consign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 物流单号 - LogisticsOrderCode string `json:"logistics_order_code,omitempty" xml:"logistics_order_code,omitempty"` -} diff --git a/model/consignplatform/CainiaoConsignplatformOrderCancelAPIRequest.go b/model/consignplatform/CainiaoConsignplatformOrderCancelAPIRequest.go new file mode 100644 index 0000000000..46a166b91a --- /dev/null +++ b/model/consignplatform/CainiaoConsignplatformOrderCancelAPIRequest.go @@ -0,0 +1,52 @@ +package consignplatform + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟发货工作台取消包裹以及订单 API请求 +cainiao.consignplatform.order.cancel + +菜鸟发货工作台,商家或者isv通过api取消包裹、回收单号,如果是裹裹运力会取消小件员上门。最后删除订单信息。 +*/ +type CainiaoConsignplatformOrderCancelAPIRequest struct { + model.Params + // 取消参数 + _cancelRequest *OrderCancelRequest +} + +// 初始化CainiaoConsignplatformOrderCancelAPIRequest对象 +func NewCainiaoConsignplatformOrderCancelRequest() *CainiaoConsignplatformOrderCancelAPIRequest{ + return &CainiaoConsignplatformOrderCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoConsignplatformOrderCancelAPIRequest) GetApiMethodName() string { + return "cainiao.consignplatform.order.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoConsignplatformOrderCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CancelRequest Setter +// 取消参数 +func (r *CainiaoConsignplatformOrderCancelAPIRequest) SetCancelRequest(_cancelRequest *OrderCancelRequest) error { + r._cancelRequest = _cancelRequest + r.Set("cancel_request", _cancelRequest) + return nil +} + +// CancelRequest Getter +func (r CainiaoConsignplatformOrderCancelAPIRequest) GetCancelRequest() *OrderCancelRequest { + return r._cancelRequest +} diff --git a/model/consignplatform/CainiaoConsignplatformOrderCancelAPIResponse.go b/model/consignplatform/CainiaoConsignplatformOrderCancelAPIResponse.go new file mode 100644 index 0000000000..233c7f10a7 --- /dev/null +++ b/model/consignplatform/CainiaoConsignplatformOrderCancelAPIResponse.go @@ -0,0 +1,31 @@ +package consignplatform + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟发货工作台取消包裹以及订单 API返回值 +cainiao.consignplatform.order.cancel + +菜鸟发货工作台,商家或者isv通过api取消包裹、回收单号,如果是裹裹运力会取消小件员上门。最后删除订单信息。 +*/ +type CainiaoConsignplatformOrderCancelAPIResponse struct { + model.CommonResponse + CainiaoConsignplatformOrderCancelAPIResponseModel +} + +// 菜鸟发货工作台取消包裹以及订单 成功返回结果 +type CainiaoConsignplatformOrderCancelAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_consignplatform_order_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 失败信息 + FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"` + // 失败code + FailMessage string `json:"fail_message,omitempty" xml:"fail_message,omitempty"` + // 取消是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/consignplatform/CainiaoConsignplatformOrderCancelResponse.go b/model/consignplatform/CainiaoConsignplatformOrderCancelResponse.go deleted file mode 100644 index e231121cac..0000000000 --- a/model/consignplatform/CainiaoConsignplatformOrderCancelResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package consignplatform - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -菜鸟发货工作台取消包裹以及订单 API返回值 -cainiao.consignplatform.order.cancel - -菜鸟发货工作台,商家或者isv通过api取消包裹、回收单号,如果是裹裹运力会取消小件员上门。最后删除订单信息。 -*/ -type CainiaoConsignplatformOrderCancelAPIResponse struct { - model.CommonResponse - CainiaoConsignplatformOrderCancelResponse -} - -// 菜鸟发货工作台取消包裹以及订单 成功返回结果 -type CainiaoConsignplatformOrderCancelResponse struct { - XMLName xml.Name `xml:"cainiao_consignplatform_order_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 失败信息 - FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"` - // 失败code - FailMessage string `json:"fail_message,omitempty" xml:"fail_message,omitempty"` - // 取消是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/consignplatform/CainiaoConsignplatformOrderCreateAPIRequest.go b/model/consignplatform/CainiaoConsignplatformOrderCreateAPIRequest.go new file mode 100644 index 0000000000..9357431742 --- /dev/null +++ b/model/consignplatform/CainiaoConsignplatformOrderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package consignplatform + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟发货工作台创建订单 API请求 +cainiao.consignplatform.order.create + +菜鸟发货工作台,商家或者isv通过api进行订单写入操作 +*/ +type CainiaoConsignplatformOrderCreateAPIRequest struct { + model.Params + // 订单创建入参 + _createRequest *OrderCreateRequest +} + +// 初始化CainiaoConsignplatformOrderCreateAPIRequest对象 +func NewCainiaoConsignplatformOrderCreateRequest() *CainiaoConsignplatformOrderCreateAPIRequest{ + return &CainiaoConsignplatformOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoConsignplatformOrderCreateAPIRequest) GetApiMethodName() string { + return "cainiao.consignplatform.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoConsignplatformOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CreateRequest Setter +// 订单创建入参 +func (r *CainiaoConsignplatformOrderCreateAPIRequest) SetCreateRequest(_createRequest *OrderCreateRequest) error { + r._createRequest = _createRequest + r.Set("create_request", _createRequest) + return nil +} + +// CreateRequest Getter +func (r CainiaoConsignplatformOrderCreateAPIRequest) GetCreateRequest() *OrderCreateRequest { + return r._createRequest +} diff --git a/model/consignplatform/CainiaoConsignplatformOrderCreateAPIResponse.go b/model/consignplatform/CainiaoConsignplatformOrderCreateAPIResponse.go new file mode 100644 index 0000000000..a3fea5e7a3 --- /dev/null +++ b/model/consignplatform/CainiaoConsignplatformOrderCreateAPIResponse.go @@ -0,0 +1,31 @@ +package consignplatform + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟发货工作台创建订单 API返回值 +cainiao.consignplatform.order.create + +菜鸟发货工作台,商家或者isv通过api进行订单写入操作 +*/ +type CainiaoConsignplatformOrderCreateAPIResponse struct { + model.CommonResponse + CainiaoConsignplatformOrderCreateAPIResponseModel +} + +// 菜鸟发货工作台创建订单 成功返回结果 +type CainiaoConsignplatformOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_consignplatform_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 失败信息 + FailMessage string `json:"fail_message,omitempty" xml:"fail_message,omitempty"` + // 失败code + FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"` + // 创建是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/consignplatform/CainiaoConsignplatformOrderCreateResponse.go b/model/consignplatform/CainiaoConsignplatformOrderCreateResponse.go deleted file mode 100644 index e3a8b5aa6b..0000000000 --- a/model/consignplatform/CainiaoConsignplatformOrderCreateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package consignplatform - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -菜鸟发货工作台创建订单 API返回值 -cainiao.consignplatform.order.create - -菜鸟发货工作台,商家或者isv通过api进行订单写入操作 -*/ -type CainiaoConsignplatformOrderCreateAPIResponse struct { - model.CommonResponse - CainiaoConsignplatformOrderCreateResponse -} - -// 菜鸟发货工作台创建订单 成功返回结果 -type CainiaoConsignplatformOrderCreateResponse struct { - XMLName xml.Name `xml:"cainiao_consignplatform_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 失败信息 - FailMessage string `json:"fail_message,omitempty" xml:"fail_message,omitempty"` - // 失败code - FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"` - // 创建是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/crm/TaobaoCrmExchangeActivityCreateAPIRequest.go b/model/crm/TaobaoCrmExchangeActivityCreateAPIRequest.go new file mode 100644 index 0000000000..bc0fc50131 --- /dev/null +++ b/model/crm/TaobaoCrmExchangeActivityCreateAPIRequest.go @@ -0,0 +1,52 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建积分兑换活动 API请求 +taobao.crm.exchange.activity.create + +创建针对积分兑换类型的活动 +*/ +type TaobaoCrmExchangeActivityCreateAPIRequest struct { + model.Params + // 创建积分兑换活动 + _exchangeActivityCreateDto *ExchangeActivityCreateDto +} + +// 初始化TaobaoCrmExchangeActivityCreateAPIRequest对象 +func NewTaobaoCrmExchangeActivityCreateRequest() *TaobaoCrmExchangeActivityCreateAPIRequest{ + return &TaobaoCrmExchangeActivityCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmExchangeActivityCreateAPIRequest) GetApiMethodName() string { + return "taobao.crm.exchange.activity.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmExchangeActivityCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExchangeActivityCreateDto Setter +// 创建积分兑换活动 +func (r *TaobaoCrmExchangeActivityCreateAPIRequest) SetExchangeActivityCreateDto(_exchangeActivityCreateDto *ExchangeActivityCreateDto) error { + r._exchangeActivityCreateDto = _exchangeActivityCreateDto + r.Set("exchange_activity_create_dto", _exchangeActivityCreateDto) + return nil +} + +// ExchangeActivityCreateDto Getter +func (r TaobaoCrmExchangeActivityCreateAPIRequest) GetExchangeActivityCreateDto() *ExchangeActivityCreateDto { + return r._exchangeActivityCreateDto +} diff --git a/model/crm/TaobaoCrmExchangeActivityCreateAPIResponse.go b/model/crm/TaobaoCrmExchangeActivityCreateAPIResponse.go new file mode 100644 index 0000000000..bd82bcc362 --- /dev/null +++ b/model/crm/TaobaoCrmExchangeActivityCreateAPIResponse.go @@ -0,0 +1,31 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建积分兑换活动 API返回值 +taobao.crm.exchange.activity.create + +创建针对积分兑换类型的活动 +*/ +type TaobaoCrmExchangeActivityCreateAPIResponse struct { + model.CommonResponse + TaobaoCrmExchangeActivityCreateAPIResponseModel +} + +// 创建积分兑换活动 成功返回结果 +type TaobaoCrmExchangeActivityCreateAPIResponseModel struct { + XMLName xml.Name `xml:"crm_exchange_activity_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 活动ID + ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"` + // 人群实例ID + CrowdinstanceId int64 `json:"crowdinstance_id,omitempty" xml:"crowdinstance_id,omitempty"` + // 接口调用成功 + SubSuccess bool `json:"sub_success,omitempty" xml:"sub_success,omitempty"` +} diff --git a/model/crm/TaobaoCrmExchangeActivityCreateResponse.go b/model/crm/TaobaoCrmExchangeActivityCreateResponse.go deleted file mode 100644 index 6cda991d93..0000000000 --- a/model/crm/TaobaoCrmExchangeActivityCreateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建积分兑换活动 API返回值 -taobao.crm.exchange.activity.create - -创建针对积分兑换类型的活动 -*/ -type TaobaoCrmExchangeActivityCreateAPIResponse struct { - model.CommonResponse - TaobaoCrmExchangeActivityCreateResponse -} - -// 创建积分兑换活动 成功返回结果 -type TaobaoCrmExchangeActivityCreateResponse struct { - XMLName xml.Name `xml:"crm_exchange_activity_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 活动ID - ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"` - // 人群实例ID - CrowdinstanceId int64 `json:"crowdinstance_id,omitempty" xml:"crowdinstance_id,omitempty"` - // 接口调用成功 - SubSuccess bool `json:"sub_success,omitempty" xml:"sub_success,omitempty"` -} diff --git a/model/crm/TaobaoCrmExchangeCrowdinstanceAddAPIRequest.go b/model/crm/TaobaoCrmExchangeCrowdinstanceAddAPIRequest.go new file mode 100644 index 0000000000..0f3961e7fb --- /dev/null +++ b/model/crm/TaobaoCrmExchangeCrowdinstanceAddAPIRequest.go @@ -0,0 +1,80 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +向活动人群实例中增加买家 API请求 +taobao.crm.exchange.crowdinstance.add + +向活动人群实例中增加买家 +*/ +type TaobaoCrmExchangeCrowdinstanceAddAPIRequest struct { + model.Params + // 操作原因 + _reason string + // 人群实例ID + _crowdInstanceId int64 + // 买家昵称 + _buyerNick string +} + +// 初始化TaobaoCrmExchangeCrowdinstanceAddAPIRequest对象 +func NewTaobaoCrmExchangeCrowdinstanceAddRequest() *TaobaoCrmExchangeCrowdinstanceAddAPIRequest{ + return &TaobaoCrmExchangeCrowdinstanceAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmExchangeCrowdinstanceAddAPIRequest) GetApiMethodName() string { + return "taobao.crm.exchange.crowdinstance.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmExchangeCrowdinstanceAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Reason Setter +// 操作原因 +func (r *TaobaoCrmExchangeCrowdinstanceAddAPIRequest) SetReason(_reason string) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r TaobaoCrmExchangeCrowdinstanceAddAPIRequest) GetReason() string { + return r._reason +} +// CrowdInstanceId Setter +// 人群实例ID +func (r *TaobaoCrmExchangeCrowdinstanceAddAPIRequest) SetCrowdInstanceId(_crowdInstanceId int64) error { + r._crowdInstanceId = _crowdInstanceId + r.Set("crowd_instance_id", _crowdInstanceId) + return nil +} + +// CrowdInstanceId Getter +func (r TaobaoCrmExchangeCrowdinstanceAddAPIRequest) GetCrowdInstanceId() int64 { + return r._crowdInstanceId +} +// BuyerNick Setter +// 买家昵称 +func (r *TaobaoCrmExchangeCrowdinstanceAddAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoCrmExchangeCrowdinstanceAddAPIRequest) GetBuyerNick() string { + return r._buyerNick +} diff --git a/model/crm/TaobaoCrmExchangeCrowdinstanceAddAPIResponse.go b/model/crm/TaobaoCrmExchangeCrowdinstanceAddAPIResponse.go new file mode 100644 index 0000000000..6b2fb7fbcd --- /dev/null +++ b/model/crm/TaobaoCrmExchangeCrowdinstanceAddAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +向活动人群实例中增加买家 API返回值 +taobao.crm.exchange.crowdinstance.add + +向活动人群实例中增加买家 +*/ +type TaobaoCrmExchangeCrowdinstanceAddAPIResponse struct { + model.CommonResponse + TaobaoCrmExchangeCrowdinstanceAddAPIResponseModel +} + +// 向活动人群实例中增加买家 成功返回结果 +type TaobaoCrmExchangeCrowdinstanceAddAPIResponseModel struct { + XMLName xml.Name `xml:"crm_exchange_crowdinstance_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用是否成功 + SubSuccess bool `json:"sub_success,omitempty" xml:"sub_success,omitempty"` +} diff --git a/model/crm/TaobaoCrmExchangeCrowdinstanceAddResponse.go b/model/crm/TaobaoCrmExchangeCrowdinstanceAddResponse.go deleted file mode 100644 index 7ff3d56ab4..0000000000 --- a/model/crm/TaobaoCrmExchangeCrowdinstanceAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -向活动人群实例中增加买家 API返回值 -taobao.crm.exchange.crowdinstance.add - -向活动人群实例中增加买家 -*/ -type TaobaoCrmExchangeCrowdinstanceAddAPIResponse struct { - model.CommonResponse - TaobaoCrmExchangeCrowdinstanceAddResponse -} - -// 向活动人群实例中增加买家 成功返回结果 -type TaobaoCrmExchangeCrowdinstanceAddResponse struct { - XMLName xml.Name `xml:"crm_exchange_crowdinstance_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用是否成功 - SubSuccess bool `json:"sub_success,omitempty" xml:"sub_success,omitempty"` -} diff --git a/model/crm/TaobaoCrmExchangeCrowdinstanceDeleteAPIRequest.go b/model/crm/TaobaoCrmExchangeCrowdinstanceDeleteAPIRequest.go new file mode 100644 index 0000000000..a61a23eba2 --- /dev/null +++ b/model/crm/TaobaoCrmExchangeCrowdinstanceDeleteAPIRequest.go @@ -0,0 +1,80 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除人群实例中的指定买家 API请求 +taobao.crm.exchange.crowdinstance.delete + +删除人群实例中的指定买家 +*/ +type TaobaoCrmExchangeCrowdinstanceDeleteAPIRequest struct { + model.Params + // 操作原因 + _reason string + // 人群实例ID + _crowdInstanceId int64 + // 买家昵称 + _buyerNick string +} + +// 初始化TaobaoCrmExchangeCrowdinstanceDeleteAPIRequest对象 +func NewTaobaoCrmExchangeCrowdinstanceDeleteRequest() *TaobaoCrmExchangeCrowdinstanceDeleteAPIRequest{ + return &TaobaoCrmExchangeCrowdinstanceDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmExchangeCrowdinstanceDeleteAPIRequest) GetApiMethodName() string { + return "taobao.crm.exchange.crowdinstance.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmExchangeCrowdinstanceDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Reason Setter +// 操作原因 +func (r *TaobaoCrmExchangeCrowdinstanceDeleteAPIRequest) SetReason(_reason string) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r TaobaoCrmExchangeCrowdinstanceDeleteAPIRequest) GetReason() string { + return r._reason +} +// CrowdInstanceId Setter +// 人群实例ID +func (r *TaobaoCrmExchangeCrowdinstanceDeleteAPIRequest) SetCrowdInstanceId(_crowdInstanceId int64) error { + r._crowdInstanceId = _crowdInstanceId + r.Set("crowd_instance_id", _crowdInstanceId) + return nil +} + +// CrowdInstanceId Getter +func (r TaobaoCrmExchangeCrowdinstanceDeleteAPIRequest) GetCrowdInstanceId() int64 { + return r._crowdInstanceId +} +// BuyerNick Setter +// 买家昵称 +func (r *TaobaoCrmExchangeCrowdinstanceDeleteAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoCrmExchangeCrowdinstanceDeleteAPIRequest) GetBuyerNick() string { + return r._buyerNick +} diff --git a/model/crm/TaobaoCrmExchangeCrowdinstanceDeleteAPIResponse.go b/model/crm/TaobaoCrmExchangeCrowdinstanceDeleteAPIResponse.go new file mode 100644 index 0000000000..624841b796 --- /dev/null +++ b/model/crm/TaobaoCrmExchangeCrowdinstanceDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除人群实例中的指定买家 API返回值 +taobao.crm.exchange.crowdinstance.delete + +删除人群实例中的指定买家 +*/ +type TaobaoCrmExchangeCrowdinstanceDeleteAPIResponse struct { + model.CommonResponse + TaobaoCrmExchangeCrowdinstanceDeleteAPIResponseModel +} + +// 删除人群实例中的指定买家 成功返回结果 +type TaobaoCrmExchangeCrowdinstanceDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"crm_exchange_crowdinstance_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作成功 + SubSuccess bool `json:"sub_success,omitempty" xml:"sub_success,omitempty"` +} diff --git a/model/crm/TaobaoCrmExchangeCrowdinstanceDeleteResponse.go b/model/crm/TaobaoCrmExchangeCrowdinstanceDeleteResponse.go deleted file mode 100644 index 34200f3fe1..0000000000 --- a/model/crm/TaobaoCrmExchangeCrowdinstanceDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除人群实例中的指定买家 API返回值 -taobao.crm.exchange.crowdinstance.delete - -删除人群实例中的指定买家 -*/ -type TaobaoCrmExchangeCrowdinstanceDeleteAPIResponse struct { - model.CommonResponse - TaobaoCrmExchangeCrowdinstanceDeleteResponse -} - -// 删除人群实例中的指定买家 成功返回结果 -type TaobaoCrmExchangeCrowdinstanceDeleteResponse struct { - XMLName xml.Name `xml:"crm_exchange_crowdinstance_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作成功 - SubSuccess bool `json:"sub_success,omitempty" xml:"sub_success,omitempty"` -} diff --git a/model/crm/TaobaoCrmGradeGetAPIRequest.go b/model/crm/TaobaoCrmGradeGetAPIRequest.go new file mode 100644 index 0000000000..1d09a72deb --- /dev/null +++ b/model/crm/TaobaoCrmGradeGetAPIRequest.go @@ -0,0 +1,38 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家查询等级规则 API请求 +taobao.crm.grade.get + +卖家查询等级规则,包括店铺客户、普通会员、高级会员、VIP会员、至尊VIP会员四个等级的信息 +*/ +type TaobaoCrmGradeGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoCrmGradeGetAPIRequest对象 +func NewTaobaoCrmGradeGetRequest() *TaobaoCrmGradeGetAPIRequest{ + return &TaobaoCrmGradeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmGradeGetAPIRequest) GetApiMethodName() string { + return "taobao.crm.grade.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmGradeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/crm/TaobaoCrmGradeGetAPIResponse.go b/model/crm/TaobaoCrmGradeGetAPIResponse.go new file mode 100644 index 0000000000..5651f7af58 --- /dev/null +++ b/model/crm/TaobaoCrmGradeGetAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家查询等级规则 API返回值 +taobao.crm.grade.get + +卖家查询等级规则,包括店铺客户、普通会员、高级会员、VIP会员、至尊VIP会员四个等级的信息 +*/ +type TaobaoCrmGradeGetAPIResponse struct { + model.CommonResponse + TaobaoCrmGradeGetAPIResponseModel +} + +// 卖家查询等级规则 成功返回结果 +type TaobaoCrmGradeGetAPIResponseModel struct { + XMLName xml.Name `xml:"crm_grade_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 等级信息集合 + GradePromotions []GradePromotion `json:"grade_promotions,omitempty" xml:"grade_promotions>grade_promotion,omitempty"` +} diff --git a/model/crm/TaobaoCrmGradeGetResponse.go b/model/crm/TaobaoCrmGradeGetResponse.go deleted file mode 100644 index 6a00cf45b7..0000000000 --- a/model/crm/TaobaoCrmGradeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家查询等级规则 API返回值 -taobao.crm.grade.get - -卖家查询等级规则,包括店铺客户、普通会员、高级会员、VIP会员、至尊VIP会员四个等级的信息 -*/ -type TaobaoCrmGradeGetAPIResponse struct { - model.CommonResponse - TaobaoCrmGradeGetResponse -} - -// 卖家查询等级规则 成功返回结果 -type TaobaoCrmGradeGetResponse struct { - XMLName xml.Name `xml:"crm_grade_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 等级信息集合 - GradePromotions []GradePromotion `json:"grade_promotions,omitempty" xml:"grade_promotions>grade_promotion,omitempty"` -} diff --git a/model/crm/TaobaoCrmGradeSetAPIRequest.go b/model/crm/TaobaoCrmGradeSetAPIRequest.go new file mode 100644 index 0000000000..14b4d622e2 --- /dev/null +++ b/model/crm/TaobaoCrmGradeSetAPIRequest.go @@ -0,0 +1,108 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家设置等级规则 API请求 +taobao.crm.grade.set + +设置等级信息,可以设置层级等级,也可以单独设置一个等级。出于安全原因,折扣现最低只能设置到700即7折。 +*/ +type TaobaoCrmGradeSetAPIRequest struct { + model.Params + // 只对设置的层级等级有效,必须要在amount和count参数中选择一个

amount参数的填写规范:升级到下一个级别的需要的交易额,单位为分,必须全部填写.例如10000,20000,30000,其中10000表示非会员升级到普通的所需的交易额,20000表示普通升级到高级所需的交易额,层级等级中最高等级的下一个等级默认为0。会员等级越高,所需交易额必须越高。 + _amount []int64 + // 只对设置的层级等级有效,必须要在amount和count参数中选择一个

count参数的填写规范:
升级到下一个级别的需要的交易量,必须全部填写. 以逗号分隔,例如100,200,300,其中100表示非会员升级到普通会员交易量。层级等级中最高等级的下一个等级的交易量默认为0。会员等级越高,交易量必须越高。 + _count []int64 + // 会员等级,用逗号分隔。买家会员级别0:店铺客户 1:普通会员 2 :高级会员 3:VIP会员 4:至尊VIP + _grade []int64 + // 会员级别折扣率。会员等级越高,折扣必须越低。
950即9.5折,888折即8.88折。出于安全原因,折扣现最低只能设置到700即7折。 + _discount []int64 + // 是否设置达到某一会员等级的交易量和交易额,必填。4个级别都需要设置,如入参为true,true,true,false时,表示设置达到高级会员、VIP会员的交易量或者交易额,不设置达到至尊会员的交易量和交易额 + _hierarchy []bool +} + +// 初始化TaobaoCrmGradeSetAPIRequest对象 +func NewTaobaoCrmGradeSetRequest() *TaobaoCrmGradeSetAPIRequest{ + return &TaobaoCrmGradeSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmGradeSetAPIRequest) GetApiMethodName() string { + return "taobao.crm.grade.set" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmGradeSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Amount Setter +// 只对设置的层级等级有效,必须要在amount和count参数中选择一个

amount参数的填写规范:升级到下一个级别的需要的交易额,单位为分,必须全部填写.例如10000,20000,30000,其中10000表示非会员升级到普通的所需的交易额,20000表示普通升级到高级所需的交易额,层级等级中最高等级的下一个等级默认为0。会员等级越高,所需交易额必须越高。 +func (r *TaobaoCrmGradeSetAPIRequest) SetAmount(_amount []int64) error { + r._amount = _amount + r.Set("amount", _amount) + return nil +} + +// Amount Getter +func (r TaobaoCrmGradeSetAPIRequest) GetAmount() []int64 { + return r._amount +} +// Count Setter +// 只对设置的层级等级有效,必须要在amount和count参数中选择一个

count参数的填写规范:
升级到下一个级别的需要的交易量,必须全部填写. 以逗号分隔,例如100,200,300,其中100表示非会员升级到普通会员交易量。层级等级中最高等级的下一个等级的交易量默认为0。会员等级越高,交易量必须越高。 +func (r *TaobaoCrmGradeSetAPIRequest) SetCount(_count []int64) error { + r._count = _count + r.Set("count", _count) + return nil +} + +// Count Getter +func (r TaobaoCrmGradeSetAPIRequest) GetCount() []int64 { + return r._count +} +// Grade Setter +// 会员等级,用逗号分隔。买家会员级别0:店铺客户 1:普通会员 2 :高级会员 3:VIP会员 4:至尊VIP +func (r *TaobaoCrmGradeSetAPIRequest) SetGrade(_grade []int64) error { + r._grade = _grade + r.Set("grade", _grade) + return nil +} + +// Grade Getter +func (r TaobaoCrmGradeSetAPIRequest) GetGrade() []int64 { + return r._grade +} +// Discount Setter +// 会员级别折扣率。会员等级越高,折扣必须越低。
950即9.5折,888折即8.88折。出于安全原因,折扣现最低只能设置到700即7折。 +func (r *TaobaoCrmGradeSetAPIRequest) SetDiscount(_discount []int64) error { + r._discount = _discount + r.Set("discount", _discount) + return nil +} + +// Discount Getter +func (r TaobaoCrmGradeSetAPIRequest) GetDiscount() []int64 { + return r._discount +} +// Hierarchy Setter +// 是否设置达到某一会员等级的交易量和交易额,必填。4个级别都需要设置,如入参为true,true,true,false时,表示设置达到高级会员、VIP会员的交易量或者交易额,不设置达到至尊会员的交易量和交易额 +func (r *TaobaoCrmGradeSetAPIRequest) SetHierarchy(_hierarchy []bool) error { + r._hierarchy = _hierarchy + r.Set("hierarchy", _hierarchy) + return nil +} + +// Hierarchy Getter +func (r TaobaoCrmGradeSetAPIRequest) GetHierarchy() []bool { + return r._hierarchy +} diff --git a/model/crm/TaobaoCrmGradeSetAPIResponse.go b/model/crm/TaobaoCrmGradeSetAPIResponse.go new file mode 100644 index 0000000000..b8f27bc9cd --- /dev/null +++ b/model/crm/TaobaoCrmGradeSetAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家设置等级规则 API返回值 +taobao.crm.grade.set + +设置等级信息,可以设置层级等级,也可以单独设置一个等级。出于安全原因,折扣现最低只能设置到700即7折。 +*/ +type TaobaoCrmGradeSetAPIResponse struct { + model.CommonResponse + TaobaoCrmGradeSetAPIResponseModel +} + +// 卖家设置等级规则 成功返回结果 +type TaobaoCrmGradeSetAPIResponseModel struct { + XMLName xml.Name `xml:"crm_grade_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true:成功 false:失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/crm/TaobaoCrmGradeSetResponse.go b/model/crm/TaobaoCrmGradeSetResponse.go deleted file mode 100644 index 327636a606..0000000000 --- a/model/crm/TaobaoCrmGradeSetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家设置等级规则 API返回值 -taobao.crm.grade.set - -设置等级信息,可以设置层级等级,也可以单独设置一个等级。出于安全原因,折扣现最低只能设置到700即7折。 -*/ -type TaobaoCrmGradeSetAPIResponse struct { - model.CommonResponse - TaobaoCrmGradeSetResponse -} - -// 卖家设置等级规则 成功返回结果 -type TaobaoCrmGradeSetResponse struct { - XMLName xml.Name `xml:"crm_grade_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true:成功 false:失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/crm/TaobaoCrmGrademktMemberAddAPIRequest.go b/model/crm/TaobaoCrmGrademktMemberAddAPIRequest.go new file mode 100644 index 0000000000..cbba4c4bb3 --- /dev/null +++ b/model/crm/TaobaoCrmGrademktMemberAddAPIRequest.go @@ -0,0 +1,80 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +会员等级营销-会员吸纳 API请求 +taobao.crm.grademkt.member.add + +商家通过该接口吸纳线上店铺会员。 +*/ +type TaobaoCrmGrademktMemberAddAPIRequest struct { + model.Params + // 会员属性-json format生成方法见http://open.taobao.com/doc/detail.htm?id=101281 + _parameter string + // 系统属性,json格式 + _feather string + // 会员nick + _buyerNick string +} + +// 初始化TaobaoCrmGrademktMemberAddAPIRequest对象 +func NewTaobaoCrmGrademktMemberAddRequest() *TaobaoCrmGrademktMemberAddAPIRequest{ + return &TaobaoCrmGrademktMemberAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmGrademktMemberAddAPIRequest) GetApiMethodName() string { + return "taobao.crm.grademkt.member.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmGrademktMemberAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Parameter Setter +// 会员属性-json format生成方法见http://open.taobao.com/doc/detail.htm?id=101281 +func (r *TaobaoCrmGrademktMemberAddAPIRequest) SetParameter(_parameter string) error { + r._parameter = _parameter + r.Set("parameter", _parameter) + return nil +} + +// Parameter Getter +func (r TaobaoCrmGrademktMemberAddAPIRequest) GetParameter() string { + return r._parameter +} +// Feather Setter +// 系统属性,json格式 +func (r *TaobaoCrmGrademktMemberAddAPIRequest) SetFeather(_feather string) error { + r._feather = _feather + r.Set("feather", _feather) + return nil +} + +// Feather Getter +func (r TaobaoCrmGrademktMemberAddAPIRequest) GetFeather() string { + return r._feather +} +// BuyerNick Setter +// 会员nick +func (r *TaobaoCrmGrademktMemberAddAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoCrmGrademktMemberAddAPIRequest) GetBuyerNick() string { + return r._buyerNick +} diff --git a/model/crm/TaobaoCrmGrademktMemberAddAPIResponse.go b/model/crm/TaobaoCrmGrademktMemberAddAPIResponse.go new file mode 100644 index 0000000000..ebba400d92 --- /dev/null +++ b/model/crm/TaobaoCrmGrademktMemberAddAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +会员等级营销-会员吸纳 API返回值 +taobao.crm.grademkt.member.add + +商家通过该接口吸纳线上店铺会员。 +*/ +type TaobaoCrmGrademktMemberAddAPIResponse struct { + model.CommonResponse + TaobaoCrmGrademktMemberAddAPIResponseModel +} + +// 会员等级营销-会员吸纳 成功返回结果 +type TaobaoCrmGrademktMemberAddAPIResponseModel struct { + XMLName xml.Name `xml:"crm_grademkt_member_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回操作是否成功 + Model bool `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/crm/TaobaoCrmGrademktMemberAddResponse.go b/model/crm/TaobaoCrmGrademktMemberAddResponse.go deleted file mode 100644 index 5133978983..0000000000 --- a/model/crm/TaobaoCrmGrademktMemberAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -会员等级营销-会员吸纳 API返回值 -taobao.crm.grademkt.member.add - -商家通过该接口吸纳线上店铺会员。 -*/ -type TaobaoCrmGrademktMemberAddAPIResponse struct { - model.CommonResponse - TaobaoCrmGrademktMemberAddResponse -} - -// 会员等级营销-会员吸纳 成功返回结果 -type TaobaoCrmGrademktMemberAddResponse struct { - XMLName xml.Name `xml:"crm_grademkt_member_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回操作是否成功 - Model bool `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/crm/TaobaoCrmGrademktMemberDetailCreateAPIRequest.go b/model/crm/TaobaoCrmGrademktMemberDetailCreateAPIRequest.go new file mode 100644 index 0000000000..97b97a7c25 --- /dev/null +++ b/model/crm/TaobaoCrmGrademktMemberDetailCreateAPIRequest.go @@ -0,0 +1,66 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +会员等级营销-创建商品等级营销明细 API请求 +taobao.crm.grademkt.member.detail.create + +创建商品等级营销明细 +*/ +type TaobaoCrmGrademktMemberDetailCreateAPIRequest struct { + model.Params + // 扩展字段 + _feather string + // 创建营销详情,生成方法见http://open.taobao.com/doc/detail.htm?id=101281 + _parameter string +} + +// 初始化TaobaoCrmGrademktMemberDetailCreateAPIRequest对象 +func NewTaobaoCrmGrademktMemberDetailCreateRequest() *TaobaoCrmGrademktMemberDetailCreateAPIRequest{ + return &TaobaoCrmGrademktMemberDetailCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmGrademktMemberDetailCreateAPIRequest) GetApiMethodName() string { + return "taobao.crm.grademkt.member.detail.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmGrademktMemberDetailCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Feather Setter +// 扩展字段 +func (r *TaobaoCrmGrademktMemberDetailCreateAPIRequest) SetFeather(_feather string) error { + r._feather = _feather + r.Set("feather", _feather) + return nil +} + +// Feather Getter +func (r TaobaoCrmGrademktMemberDetailCreateAPIRequest) GetFeather() string { + return r._feather +} +// Parameter Setter +// 创建营销详情,生成方法见http://open.taobao.com/doc/detail.htm?id=101281 +func (r *TaobaoCrmGrademktMemberDetailCreateAPIRequest) SetParameter(_parameter string) error { + r._parameter = _parameter + r.Set("parameter", _parameter) + return nil +} + +// Parameter Getter +func (r TaobaoCrmGrademktMemberDetailCreateAPIRequest) GetParameter() string { + return r._parameter +} diff --git a/model/crm/TaobaoCrmGrademktMemberDetailCreateAPIResponse.go b/model/crm/TaobaoCrmGrademktMemberDetailCreateAPIResponse.go new file mode 100644 index 0000000000..b4b67930e2 --- /dev/null +++ b/model/crm/TaobaoCrmGrademktMemberDetailCreateAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +会员等级营销-创建商品等级营销明细 API返回值 +taobao.crm.grademkt.member.detail.create + +创建商品等级营销明细 +*/ +type TaobaoCrmGrademktMemberDetailCreateAPIResponse struct { + model.CommonResponse + TaobaoCrmGrademktMemberDetailCreateAPIResponseModel +} + +// 会员等级营销-创建商品等级营销明细 成功返回结果 +type TaobaoCrmGrademktMemberDetailCreateAPIResponseModel struct { + XMLName xml.Name `xml:"crm_grademkt_member_detail_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // json格式 + Module bool `json:"module,omitempty" xml:"module,omitempty"` +} diff --git a/model/crm/TaobaoCrmGrademktMemberDetailCreateResponse.go b/model/crm/TaobaoCrmGrademktMemberDetailCreateResponse.go deleted file mode 100644 index 6d72fe4f4c..0000000000 --- a/model/crm/TaobaoCrmGrademktMemberDetailCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -会员等级营销-创建商品等级营销明细 API返回值 -taobao.crm.grademkt.member.detail.create - -创建商品等级营销明细 -*/ -type TaobaoCrmGrademktMemberDetailCreateAPIResponse struct { - model.CommonResponse - TaobaoCrmGrademktMemberDetailCreateResponse -} - -// 会员等级营销-创建商品等级营销明细 成功返回结果 -type TaobaoCrmGrademktMemberDetailCreateResponse struct { - XMLName xml.Name `xml:"crm_grademkt_member_detail_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // json格式 - Module bool `json:"module,omitempty" xml:"module,omitempty"` -} diff --git a/model/crm/TaobaoCrmGrademktMemberDetailDeleteAPIRequest.go b/model/crm/TaobaoCrmGrademktMemberDetailDeleteAPIRequest.go new file mode 100644 index 0000000000..dad404598e --- /dev/null +++ b/model/crm/TaobaoCrmGrademktMemberDetailDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +会员等级营销-删除商品等级营销明细 API请求 +taobao.crm.grademkt.member.detail.delete + +删除商品等级营销明细 +*/ +type TaobaoCrmGrademktMemberDetailDeleteAPIRequest struct { + model.Params + // 扩展字段 + _feather string + // 创建营销详情,生成方法见http://open.taobao.com/doc/detail.htm?id=101281 + _parameter string +} + +// 初始化TaobaoCrmGrademktMemberDetailDeleteAPIRequest对象 +func NewTaobaoCrmGrademktMemberDetailDeleteRequest() *TaobaoCrmGrademktMemberDetailDeleteAPIRequest{ + return &TaobaoCrmGrademktMemberDetailDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmGrademktMemberDetailDeleteAPIRequest) GetApiMethodName() string { + return "taobao.crm.grademkt.member.detail.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmGrademktMemberDetailDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Feather Setter +// 扩展字段 +func (r *TaobaoCrmGrademktMemberDetailDeleteAPIRequest) SetFeather(_feather string) error { + r._feather = _feather + r.Set("feather", _feather) + return nil +} + +// Feather Getter +func (r TaobaoCrmGrademktMemberDetailDeleteAPIRequest) GetFeather() string { + return r._feather +} +// Parameter Setter +// 创建营销详情,生成方法见http://open.taobao.com/doc/detail.htm?id=101281 +func (r *TaobaoCrmGrademktMemberDetailDeleteAPIRequest) SetParameter(_parameter string) error { + r._parameter = _parameter + r.Set("parameter", _parameter) + return nil +} + +// Parameter Getter +func (r TaobaoCrmGrademktMemberDetailDeleteAPIRequest) GetParameter() string { + return r._parameter +} diff --git a/model/crm/TaobaoCrmGrademktMemberDetailDeleteAPIResponse.go b/model/crm/TaobaoCrmGrademktMemberDetailDeleteAPIResponse.go new file mode 100644 index 0000000000..b3d4ca0a9b --- /dev/null +++ b/model/crm/TaobaoCrmGrademktMemberDetailDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +会员等级营销-删除商品等级营销明细 API返回值 +taobao.crm.grademkt.member.detail.delete + +删除商品等级营销明细 +*/ +type TaobaoCrmGrademktMemberDetailDeleteAPIResponse struct { + model.CommonResponse + TaobaoCrmGrademktMemberDetailDeleteAPIResponseModel +} + +// 会员等级营销-删除商品等级营销明细 成功返回结果 +type TaobaoCrmGrademktMemberDetailDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"crm_grademkt_member_detail_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作是否成功 + Module bool `json:"module,omitempty" xml:"module,omitempty"` +} diff --git a/model/crm/TaobaoCrmGrademktMemberDetailDeleteResponse.go b/model/crm/TaobaoCrmGrademktMemberDetailDeleteResponse.go deleted file mode 100644 index 7499650da6..0000000000 --- a/model/crm/TaobaoCrmGrademktMemberDetailDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -会员等级营销-删除商品等级营销明细 API返回值 -taobao.crm.grademkt.member.detail.delete - -删除商品等级营销明细 -*/ -type TaobaoCrmGrademktMemberDetailDeleteAPIResponse struct { - model.CommonResponse - TaobaoCrmGrademktMemberDetailDeleteResponse -} - -// 会员等级营销-删除商品等级营销明细 成功返回结果 -type TaobaoCrmGrademktMemberDetailDeleteResponse struct { - XMLName xml.Name `xml:"crm_grademkt_member_detail_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作是否成功 - Module bool `json:"module,omitempty" xml:"module,omitempty"` -} diff --git a/model/crm/TaobaoCrmGrademktMemberDetailQueryAPIRequest.go b/model/crm/TaobaoCrmGrademktMemberDetailQueryAPIRequest.go new file mode 100644 index 0000000000..c6cc15f693 --- /dev/null +++ b/model/crm/TaobaoCrmGrademktMemberDetailQueryAPIRequest.go @@ -0,0 +1,66 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +会员等级营销-等级营销活动查询 API请求 +taobao.crm.grademkt.member.detail.query + +商家通过该接口查询等级营销活动 +*/ +type TaobaoCrmGrademktMemberDetailQueryAPIRequest struct { + model.Params + // 扩展字段 + _feather string + // 创建营销详情,生成方法见http://open.taobao.com/doc/detail.htm?id=101281 + _parameter string +} + +// 初始化TaobaoCrmGrademktMemberDetailQueryAPIRequest对象 +func NewTaobaoCrmGrademktMemberDetailQueryRequest() *TaobaoCrmGrademktMemberDetailQueryAPIRequest{ + return &TaobaoCrmGrademktMemberDetailQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmGrademktMemberDetailQueryAPIRequest) GetApiMethodName() string { + return "taobao.crm.grademkt.member.detail.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmGrademktMemberDetailQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Feather Setter +// 扩展字段 +func (r *TaobaoCrmGrademktMemberDetailQueryAPIRequest) SetFeather(_feather string) error { + r._feather = _feather + r.Set("feather", _feather) + return nil +} + +// Feather Getter +func (r TaobaoCrmGrademktMemberDetailQueryAPIRequest) GetFeather() string { + return r._feather +} +// Parameter Setter +// 创建营销详情,生成方法见http://open.taobao.com/doc/detail.htm?id=101281 +func (r *TaobaoCrmGrademktMemberDetailQueryAPIRequest) SetParameter(_parameter string) error { + r._parameter = _parameter + r.Set("parameter", _parameter) + return nil +} + +// Parameter Getter +func (r TaobaoCrmGrademktMemberDetailQueryAPIRequest) GetParameter() string { + return r._parameter +} diff --git a/model/crm/TaobaoCrmGrademktMemberDetailQueryAPIResponse.go b/model/crm/TaobaoCrmGrademktMemberDetailQueryAPIResponse.go new file mode 100644 index 0000000000..9764b6baa5 --- /dev/null +++ b/model/crm/TaobaoCrmGrademktMemberDetailQueryAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +会员等级营销-等级营销活动查询 API返回值 +taobao.crm.grademkt.member.detail.query + +商家通过该接口查询等级营销活动 +*/ +type TaobaoCrmGrademktMemberDetailQueryAPIResponse struct { + model.CommonResponse + TaobaoCrmGrademktMemberDetailQueryAPIResponseModel +} + +// 会员等级营销-等级营销活动查询 成功返回结果 +type TaobaoCrmGrademktMemberDetailQueryAPIResponseModel struct { + XMLName xml.Name `xml:"crm_grademkt_member_detail_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // totalCount为记录总数 + Model string `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/crm/TaobaoCrmGrademktMemberDetailQueryResponse.go b/model/crm/TaobaoCrmGrademktMemberDetailQueryResponse.go deleted file mode 100644 index a9b6fa5706..0000000000 --- a/model/crm/TaobaoCrmGrademktMemberDetailQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -会员等级营销-等级营销活动查询 API返回值 -taobao.crm.grademkt.member.detail.query - -商家通过该接口查询等级营销活动 -*/ -type TaobaoCrmGrademktMemberDetailQueryAPIResponse struct { - model.CommonResponse - TaobaoCrmGrademktMemberDetailQueryResponse -} - -// 会员等级营销-等级营销活动查询 成功返回结果 -type TaobaoCrmGrademktMemberDetailQueryResponse struct { - XMLName xml.Name `xml:"crm_grademkt_member_detail_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // totalCount为记录总数 - Model string `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/crm/TaobaoCrmGrademktMemberQueryAPIRequest.go b/model/crm/TaobaoCrmGrademktMemberQueryAPIRequest.go new file mode 100644 index 0000000000..166368c091 --- /dev/null +++ b/model/crm/TaobaoCrmGrademktMemberQueryAPIRequest.go @@ -0,0 +1,80 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +会员等级营销-会员关系查询 API请求 +taobao.crm.grademkt.member.query + +商家通过该接口查询线上店铺会员。 +*/ +type TaobaoCrmGrademktMemberQueryAPIRequest struct { + model.Params + // 会员属性-json format生成方法见http://open.taobao.com/doc/detail.htm?id=101281 + _parameter string + // 系统属性,json格式 + _feather string + // 会员nick + _buyerNick string +} + +// 初始化TaobaoCrmGrademktMemberQueryAPIRequest对象 +func NewTaobaoCrmGrademktMemberQueryRequest() *TaobaoCrmGrademktMemberQueryAPIRequest{ + return &TaobaoCrmGrademktMemberQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmGrademktMemberQueryAPIRequest) GetApiMethodName() string { + return "taobao.crm.grademkt.member.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmGrademktMemberQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Parameter Setter +// 会员属性-json format生成方法见http://open.taobao.com/doc/detail.htm?id=101281 +func (r *TaobaoCrmGrademktMemberQueryAPIRequest) SetParameter(_parameter string) error { + r._parameter = _parameter + r.Set("parameter", _parameter) + return nil +} + +// Parameter Getter +func (r TaobaoCrmGrademktMemberQueryAPIRequest) GetParameter() string { + return r._parameter +} +// Feather Setter +// 系统属性,json格式 +func (r *TaobaoCrmGrademktMemberQueryAPIRequest) SetFeather(_feather string) error { + r._feather = _feather + r.Set("feather", _feather) + return nil +} + +// Feather Getter +func (r TaobaoCrmGrademktMemberQueryAPIRequest) GetFeather() string { + return r._feather +} +// BuyerNick Setter +// 会员nick +func (r *TaobaoCrmGrademktMemberQueryAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoCrmGrademktMemberQueryAPIRequest) GetBuyerNick() string { + return r._buyerNick +} diff --git a/model/crm/TaobaoCrmGrademktMemberQueryAPIResponse.go b/model/crm/TaobaoCrmGrademktMemberQueryAPIResponse.go new file mode 100644 index 0000000000..d481eb712f --- /dev/null +++ b/model/crm/TaobaoCrmGrademktMemberQueryAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +会员等级营销-会员关系查询 API返回值 +taobao.crm.grademkt.member.query + +商家通过该接口查询线上店铺会员。 +*/ +type TaobaoCrmGrademktMemberQueryAPIResponse struct { + model.CommonResponse + TaobaoCrmGrademktMemberQueryAPIResponseModel +} + +// 会员等级营销-会员关系查询 成功返回结果 +type TaobaoCrmGrademktMemberQueryAPIResponseModel struct { + XMLName xml.Name `xml:"crm_grademkt_member_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // json格式 + Module string `json:"module,omitempty" xml:"module,omitempty"` +} diff --git a/model/crm/TaobaoCrmGrademktMemberQueryResponse.go b/model/crm/TaobaoCrmGrademktMemberQueryResponse.go deleted file mode 100644 index ea6144f9a4..0000000000 --- a/model/crm/TaobaoCrmGrademktMemberQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -会员等级营销-会员关系查询 API返回值 -taobao.crm.grademkt.member.query - -商家通过该接口查询线上店铺会员。 -*/ -type TaobaoCrmGrademktMemberQueryAPIResponse struct { - model.CommonResponse - TaobaoCrmGrademktMemberQueryResponse -} - -// 会员等级营销-会员关系查询 成功返回结果 -type TaobaoCrmGrademktMemberQueryResponse struct { - XMLName xml.Name `xml:"crm_grademkt_member_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // json格式 - Module string `json:"module,omitempty" xml:"module,omitempty"` -} diff --git a/model/crm/TaobaoCrmGroupAddAPIRequest.go b/model/crm/TaobaoCrmGroupAddAPIRequest.go new file mode 100644 index 0000000000..a719335f51 --- /dev/null +++ b/model/crm/TaobaoCrmGroupAddAPIRequest.go @@ -0,0 +1,52 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家创建一个分组 API请求 +taobao.crm.group.add + +卖家创建一个新的分组,接口返回一个创建成功的分组的id +*/ +type TaobaoCrmGroupAddAPIRequest struct { + model.Params + // 分组名称,每个卖家最多可以拥有100个分组 + _groupName string +} + +// 初始化TaobaoCrmGroupAddAPIRequest对象 +func NewTaobaoCrmGroupAddRequest() *TaobaoCrmGroupAddAPIRequest{ + return &TaobaoCrmGroupAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmGroupAddAPIRequest) GetApiMethodName() string { + return "taobao.crm.group.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmGroupAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupName Setter +// 分组名称,每个卖家最多可以拥有100个分组 +func (r *TaobaoCrmGroupAddAPIRequest) SetGroupName(_groupName string) error { + r._groupName = _groupName + r.Set("group_name", _groupName) + return nil +} + +// GroupName Getter +func (r TaobaoCrmGroupAddAPIRequest) GetGroupName() string { + return r._groupName +} diff --git a/model/crm/TaobaoCrmGroupAddAPIResponse.go b/model/crm/TaobaoCrmGroupAddAPIResponse.go new file mode 100644 index 0000000000..30321d670c --- /dev/null +++ b/model/crm/TaobaoCrmGroupAddAPIResponse.go @@ -0,0 +1,29 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家创建一个分组 API返回值 +taobao.crm.group.add + +卖家创建一个新的分组,接口返回一个创建成功的分组的id +*/ +type TaobaoCrmGroupAddAPIResponse struct { + model.CommonResponse + TaobaoCrmGroupAddAPIResponseModel +} + +// 卖家创建一个分组 成功返回结果 +type TaobaoCrmGroupAddAPIResponseModel struct { + XMLName xml.Name `xml:"crm_group_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 添加分组是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 新增分组的id + GroupId int64 `json:"group_id,omitempty" xml:"group_id,omitempty"` +} diff --git a/model/crm/TaobaoCrmGroupAddResponse.go b/model/crm/TaobaoCrmGroupAddResponse.go deleted file mode 100644 index 24af5ca1fb..0000000000 --- a/model/crm/TaobaoCrmGroupAddResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家创建一个分组 API返回值 -taobao.crm.group.add - -卖家创建一个新的分组,接口返回一个创建成功的分组的id -*/ -type TaobaoCrmGroupAddAPIResponse struct { - model.CommonResponse - TaobaoCrmGroupAddResponse -} - -// 卖家创建一个分组 成功返回结果 -type TaobaoCrmGroupAddResponse struct { - XMLName xml.Name `xml:"crm_group_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 添加分组是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 新增分组的id - GroupId int64 `json:"group_id,omitempty" xml:"group_id,omitempty"` -} diff --git a/model/crm/TaobaoCrmGroupAppendAPIRequest.go b/model/crm/TaobaoCrmGroupAppendAPIRequest.go new file mode 100644 index 0000000000..efbd4feca2 --- /dev/null +++ b/model/crm/TaobaoCrmGroupAppendAPIRequest.go @@ -0,0 +1,66 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +将一个分组添加到另外一个分组 API请求 +taobao.crm.group.append + +将某分组下的所有会员添加到另一个分组,注:1.该操作为异步任务,建议先调用taobao.crm.grouptask.check 确保涉及分组上没有任务;2.若分组下某会员分组数超最大限额,则该会员不会被添加到新分组,同时不影响其余会员添加分组,接口调用依然返回成功。 +*/ +type TaobaoCrmGroupAppendAPIRequest struct { + model.Params + // 添加的来源分组 + _fromGroupId int64 + // 添加的目标分组 + _toGroupId int64 +} + +// 初始化TaobaoCrmGroupAppendAPIRequest对象 +func NewTaobaoCrmGroupAppendRequest() *TaobaoCrmGroupAppendAPIRequest{ + return &TaobaoCrmGroupAppendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmGroupAppendAPIRequest) GetApiMethodName() string { + return "taobao.crm.group.append" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmGroupAppendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FromGroupId Setter +// 添加的来源分组 +func (r *TaobaoCrmGroupAppendAPIRequest) SetFromGroupId(_fromGroupId int64) error { + r._fromGroupId = _fromGroupId + r.Set("from_group_id", _fromGroupId) + return nil +} + +// FromGroupId Getter +func (r TaobaoCrmGroupAppendAPIRequest) GetFromGroupId() int64 { + return r._fromGroupId +} +// ToGroupId Setter +// 添加的目标分组 +func (r *TaobaoCrmGroupAppendAPIRequest) SetToGroupId(_toGroupId int64) error { + r._toGroupId = _toGroupId + r.Set("to_group_id", _toGroupId) + return nil +} + +// ToGroupId Getter +func (r TaobaoCrmGroupAppendAPIRequest) GetToGroupId() int64 { + return r._toGroupId +} diff --git a/model/crm/TaobaoCrmGroupAppendAPIResponse.go b/model/crm/TaobaoCrmGroupAppendAPIResponse.go new file mode 100644 index 0000000000..19965ec0a3 --- /dev/null +++ b/model/crm/TaobaoCrmGroupAppendAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +将一个分组添加到另外一个分组 API返回值 +taobao.crm.group.append + +将某分组下的所有会员添加到另一个分组,注:1.该操作为异步任务,建议先调用taobao.crm.grouptask.check 确保涉及分组上没有任务;2.若分组下某会员分组数超最大限额,则该会员不会被添加到新分组,同时不影响其余会员添加分组,接口调用依然返回成功。 +*/ +type TaobaoCrmGroupAppendAPIResponse struct { + model.CommonResponse + TaobaoCrmGroupAppendAPIResponseModel +} + +// 将一个分组添加到另外一个分组 成功返回结果 +type TaobaoCrmGroupAppendAPIResponseModel struct { + XMLName xml.Name `xml:"crm_group_append_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步任务请求成功,添加任务是否完成通过taobao.crm.grouptask.check检测 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/crm/TaobaoCrmGroupAppendResponse.go b/model/crm/TaobaoCrmGroupAppendResponse.go deleted file mode 100644 index c87e9be300..0000000000 --- a/model/crm/TaobaoCrmGroupAppendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -将一个分组添加到另外一个分组 API返回值 -taobao.crm.group.append - -将某分组下的所有会员添加到另一个分组,注:1.该操作为异步任务,建议先调用taobao.crm.grouptask.check 确保涉及分组上没有任务;2.若分组下某会员分组数超最大限额,则该会员不会被添加到新分组,同时不影响其余会员添加分组,接口调用依然返回成功。 -*/ -type TaobaoCrmGroupAppendAPIResponse struct { - model.CommonResponse - TaobaoCrmGroupAppendResponse -} - -// 将一个分组添加到另外一个分组 成功返回结果 -type TaobaoCrmGroupAppendResponse struct { - XMLName xml.Name `xml:"crm_group_append_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步任务请求成功,添加任务是否完成通过taobao.crm.grouptask.check检测 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/crm/TaobaoCrmGroupDeleteAPIRequest.go b/model/crm/TaobaoCrmGroupDeleteAPIRequest.go new file mode 100644 index 0000000000..f138525fae --- /dev/null +++ b/model/crm/TaobaoCrmGroupDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除分组 API请求 +taobao.crm.group.delete + +将该分组下的所有会员移除出该组,同时删除该分组。注:删除分组为异步任务,必须先调用taobao.crm.grouptask.check 确保涉及属性上没有任务。 +*/ +type TaobaoCrmGroupDeleteAPIRequest struct { + model.Params + // 要删除的分组id + _groupId int64 +} + +// 初始化TaobaoCrmGroupDeleteAPIRequest对象 +func NewTaobaoCrmGroupDeleteRequest() *TaobaoCrmGroupDeleteAPIRequest{ + return &TaobaoCrmGroupDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmGroupDeleteAPIRequest) GetApiMethodName() string { + return "taobao.crm.group.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmGroupDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupId Setter +// 要删除的分组id +func (r *TaobaoCrmGroupDeleteAPIRequest) SetGroupId(_groupId int64) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r TaobaoCrmGroupDeleteAPIRequest) GetGroupId() int64 { + return r._groupId +} diff --git a/model/crm/TaobaoCrmGroupDeleteAPIResponse.go b/model/crm/TaobaoCrmGroupDeleteAPIResponse.go new file mode 100644 index 0000000000..f1cd9dc2f4 --- /dev/null +++ b/model/crm/TaobaoCrmGroupDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除分组 API返回值 +taobao.crm.group.delete + +将该分组下的所有会员移除出该组,同时删除该分组。注:删除分组为异步任务,必须先调用taobao.crm.grouptask.check 确保涉及属性上没有任务。 +*/ +type TaobaoCrmGroupDeleteAPIResponse struct { + model.CommonResponse + TaobaoCrmGroupDeleteAPIResponseModel +} + +// 删除分组 成功返回结果 +type TaobaoCrmGroupDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"crm_group_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步任务请求成功,是否执行完毕需要通过taobao.crm.grouptask.check检测 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/crm/TaobaoCrmGroupDeleteResponse.go b/model/crm/TaobaoCrmGroupDeleteResponse.go deleted file mode 100644 index 29d95ce7b7..0000000000 --- a/model/crm/TaobaoCrmGroupDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除分组 API返回值 -taobao.crm.group.delete - -将该分组下的所有会员移除出该组,同时删除该分组。注:删除分组为异步任务,必须先调用taobao.crm.grouptask.check 确保涉及属性上没有任务。 -*/ -type TaobaoCrmGroupDeleteAPIResponse struct { - model.CommonResponse - TaobaoCrmGroupDeleteResponse -} - -// 删除分组 成功返回结果 -type TaobaoCrmGroupDeleteResponse struct { - XMLName xml.Name `xml:"crm_group_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步任务请求成功,是否执行完毕需要通过taobao.crm.grouptask.check检测 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/crm/TaobaoCrmGroupMoveAPIRequest.go b/model/crm/TaobaoCrmGroupMoveAPIRequest.go new file mode 100644 index 0000000000..69f9b738f9 --- /dev/null +++ b/model/crm/TaobaoCrmGroupMoveAPIRequest.go @@ -0,0 +1,66 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分组移动 API请求 +taobao.crm.group.move + +将一个分组下的所有会员移动到另一个分组,会员从原分组中删除
注:移动属性为异步任务建议先调用taobao.crm.grouptask.check 确保涉及属性上没有任务。 +*/ +type TaobaoCrmGroupMoveAPIRequest struct { + model.Params + // 需要移动的分组 + _fromGroupId int64 + // 目的分组 + _toGroupId int64 +} + +// 初始化TaobaoCrmGroupMoveAPIRequest对象 +func NewTaobaoCrmGroupMoveRequest() *TaobaoCrmGroupMoveAPIRequest{ + return &TaobaoCrmGroupMoveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmGroupMoveAPIRequest) GetApiMethodName() string { + return "taobao.crm.group.move" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmGroupMoveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FromGroupId Setter +// 需要移动的分组 +func (r *TaobaoCrmGroupMoveAPIRequest) SetFromGroupId(_fromGroupId int64) error { + r._fromGroupId = _fromGroupId + r.Set("from_group_id", _fromGroupId) + return nil +} + +// FromGroupId Getter +func (r TaobaoCrmGroupMoveAPIRequest) GetFromGroupId() int64 { + return r._fromGroupId +} +// ToGroupId Setter +// 目的分组 +func (r *TaobaoCrmGroupMoveAPIRequest) SetToGroupId(_toGroupId int64) error { + r._toGroupId = _toGroupId + r.Set("to_group_id", _toGroupId) + return nil +} + +// ToGroupId Getter +func (r TaobaoCrmGroupMoveAPIRequest) GetToGroupId() int64 { + return r._toGroupId +} diff --git a/model/crm/TaobaoCrmGroupMoveAPIResponse.go b/model/crm/TaobaoCrmGroupMoveAPIResponse.go new file mode 100644 index 0000000000..59dfaf483e --- /dev/null +++ b/model/crm/TaobaoCrmGroupMoveAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分组移动 API返回值 +taobao.crm.group.move + +将一个分组下的所有会员移动到另一个分组,会员从原分组中删除
注:移动属性为异步任务建议先调用taobao.crm.grouptask.check 确保涉及属性上没有任务。 +*/ +type TaobaoCrmGroupMoveAPIResponse struct { + model.CommonResponse + TaobaoCrmGroupMoveAPIResponseModel +} + +// 分组移动 成功返回结果 +type TaobaoCrmGroupMoveAPIResponseModel struct { + XMLName xml.Name `xml:"crm_group_move_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步任务请求成功,是否执行完毕需要通过taobao.crm.grouptask.check检测 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/crm/TaobaoCrmGroupMoveResponse.go b/model/crm/TaobaoCrmGroupMoveResponse.go deleted file mode 100644 index 259a6d50cd..0000000000 --- a/model/crm/TaobaoCrmGroupMoveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分组移动 API返回值 -taobao.crm.group.move - -将一个分组下的所有会员移动到另一个分组,会员从原分组中删除
注:移动属性为异步任务建议先调用taobao.crm.grouptask.check 确保涉及属性上没有任务。 -*/ -type TaobaoCrmGroupMoveAPIResponse struct { - model.CommonResponse - TaobaoCrmGroupMoveResponse -} - -// 分组移动 成功返回结果 -type TaobaoCrmGroupMoveResponse struct { - XMLName xml.Name `xml:"crm_group_move_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步任务请求成功,是否执行完毕需要通过taobao.crm.grouptask.check检测 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/crm/TaobaoCrmGroupUpdateAPIRequest.go b/model/crm/TaobaoCrmGroupUpdateAPIRequest.go new file mode 100644 index 0000000000..f5517bfbf4 --- /dev/null +++ b/model/crm/TaobaoCrmGroupUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改一个已经存在的分组 API请求 +taobao.crm.group.update + +修改一个已经存在的分组,接口返回分组的修改是否成功 +*/ +type TaobaoCrmGroupUpdateAPIRequest struct { + model.Params + // 分组的id + _groupId int64 + // 新的分组名,分组名称不能包含|或者: + _newGroupName string +} + +// 初始化TaobaoCrmGroupUpdateAPIRequest对象 +func NewTaobaoCrmGroupUpdateRequest() *TaobaoCrmGroupUpdateAPIRequest{ + return &TaobaoCrmGroupUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmGroupUpdateAPIRequest) GetApiMethodName() string { + return "taobao.crm.group.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmGroupUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupId Setter +// 分组的id +func (r *TaobaoCrmGroupUpdateAPIRequest) SetGroupId(_groupId int64) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r TaobaoCrmGroupUpdateAPIRequest) GetGroupId() int64 { + return r._groupId +} +// NewGroupName Setter +// 新的分组名,分组名称不能包含|或者: +func (r *TaobaoCrmGroupUpdateAPIRequest) SetNewGroupName(_newGroupName string) error { + r._newGroupName = _newGroupName + r.Set("new_group_name", _newGroupName) + return nil +} + +// NewGroupName Getter +func (r TaobaoCrmGroupUpdateAPIRequest) GetNewGroupName() string { + return r._newGroupName +} diff --git a/model/crm/TaobaoCrmGroupUpdateAPIResponse.go b/model/crm/TaobaoCrmGroupUpdateAPIResponse.go new file mode 100644 index 0000000000..24d4237811 --- /dev/null +++ b/model/crm/TaobaoCrmGroupUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改一个已经存在的分组 API返回值 +taobao.crm.group.update + +修改一个已经存在的分组,接口返回分组的修改是否成功 +*/ +type TaobaoCrmGroupUpdateAPIResponse struct { + model.CommonResponse + TaobaoCrmGroupUpdateAPIResponseModel +} + +// 修改一个已经存在的分组 成功返回结果 +type TaobaoCrmGroupUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"crm_group_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分组修改是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/crm/TaobaoCrmGroupUpdateResponse.go b/model/crm/TaobaoCrmGroupUpdateResponse.go deleted file mode 100644 index af6cda7f20..0000000000 --- a/model/crm/TaobaoCrmGroupUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改一个已经存在的分组 API返回值 -taobao.crm.group.update - -修改一个已经存在的分组,接口返回分组的修改是否成功 -*/ -type TaobaoCrmGroupUpdateAPIResponse struct { - model.CommonResponse - TaobaoCrmGroupUpdateResponse -} - -// 修改一个已经存在的分组 成功返回结果 -type TaobaoCrmGroupUpdateResponse struct { - XMLName xml.Name `xml:"crm_group_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分组修改是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/crm/TaobaoCrmGroupsGetAPIRequest.go b/model/crm/TaobaoCrmGroupsGetAPIRequest.go new file mode 100644 index 0000000000..ba50912b25 --- /dev/null +++ b/model/crm/TaobaoCrmGroupsGetAPIRequest.go @@ -0,0 +1,66 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家的分组 API请求 +taobao.crm.groups.get + +查询卖家的分组,返回查询到的分组列表,分页返回分组 +*/ +type TaobaoCrmGroupsGetAPIRequest struct { + model.Params + // 每页显示的记录数,其最大值不能超过100条,最小值为1,默认20条 + _pageSize int64 + // 显示第几页的分组,如果输入的页码大于总共的页码数,例如总共10页,但是current_page的值为11,则返回空白页,最小页码为1 + _currentPage int64 +} + +// 初始化TaobaoCrmGroupsGetAPIRequest对象 +func NewTaobaoCrmGroupsGetRequest() *TaobaoCrmGroupsGetAPIRequest{ + return &TaobaoCrmGroupsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmGroupsGetAPIRequest) GetApiMethodName() string { + return "taobao.crm.groups.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmGroupsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageSize Setter +// 每页显示的记录数,其最大值不能超过100条,最小值为1,默认20条 +func (r *TaobaoCrmGroupsGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoCrmGroupsGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// CurrentPage Setter +// 显示第几页的分组,如果输入的页码大于总共的页码数,例如总共10页,但是current_page的值为11,则返回空白页,最小页码为1 +func (r *TaobaoCrmGroupsGetAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TaobaoCrmGroupsGetAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} diff --git a/model/crm/TaobaoCrmGroupsGetAPIResponse.go b/model/crm/TaobaoCrmGroupsGetAPIResponse.go new file mode 100644 index 0000000000..fb1f32afe7 --- /dev/null +++ b/model/crm/TaobaoCrmGroupsGetAPIResponse.go @@ -0,0 +1,29 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家的分组 API返回值 +taobao.crm.groups.get + +查询卖家的分组,返回查询到的分组列表,分页返回分组 +*/ +type TaobaoCrmGroupsGetAPIResponse struct { + model.CommonResponse + TaobaoCrmGroupsGetAPIResponseModel +} + +// 查询卖家的分组 成功返回结果 +type TaobaoCrmGroupsGetAPIResponseModel struct { + XMLName xml.Name `xml:"crm_groups_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询到的当前卖家的当前页的会员 + Groups []Group `json:"groups,omitempty" xml:"groups>group,omitempty"` + // 记录总数 + TotalResult int64 `json:"total_result,omitempty" xml:"total_result,omitempty"` +} diff --git a/model/crm/TaobaoCrmGroupsGetResponse.go b/model/crm/TaobaoCrmGroupsGetResponse.go deleted file mode 100644 index 085a9f9f93..0000000000 --- a/model/crm/TaobaoCrmGroupsGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询卖家的分组 API返回值 -taobao.crm.groups.get - -查询卖家的分组,返回查询到的分组列表,分页返回分组 -*/ -type TaobaoCrmGroupsGetAPIResponse struct { - model.CommonResponse - TaobaoCrmGroupsGetResponse -} - -// 查询卖家的分组 成功返回结果 -type TaobaoCrmGroupsGetResponse struct { - XMLName xml.Name `xml:"crm_groups_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询到的当前卖家的当前页的会员 - Groups []Group `json:"groups,omitempty" xml:"groups>group,omitempty"` - // 记录总数 - TotalResult int64 `json:"total_result,omitempty" xml:"total_result,omitempty"` -} diff --git a/model/crm/TaobaoCrmGrouptaskCheckAPIRequest.go b/model/crm/TaobaoCrmGrouptaskCheckAPIRequest.go new file mode 100644 index 0000000000..095c8da1ec --- /dev/null +++ b/model/crm/TaobaoCrmGrouptaskCheckAPIRequest.go @@ -0,0 +1,52 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询分组任务是否完成 API请求 +taobao.crm.grouptask.check + +检查一个分组上是否有异步任务,异步任务包括1.将一个分组下的所有用户添加到另外一个分组2.将一个分组下的所有用户移动到另外一个分组3.删除某个分组
若分组上有任务则该属性不能被操作。 +*/ +type TaobaoCrmGrouptaskCheckAPIRequest struct { + model.Params + // 分组id + _groupId int64 +} + +// 初始化TaobaoCrmGrouptaskCheckAPIRequest对象 +func NewTaobaoCrmGrouptaskCheckRequest() *TaobaoCrmGrouptaskCheckAPIRequest{ + return &TaobaoCrmGrouptaskCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmGrouptaskCheckAPIRequest) GetApiMethodName() string { + return "taobao.crm.grouptask.check" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmGrouptaskCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupId Setter +// 分组id +func (r *TaobaoCrmGrouptaskCheckAPIRequest) SetGroupId(_groupId int64) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r TaobaoCrmGrouptaskCheckAPIRequest) GetGroupId() int64 { + return r._groupId +} diff --git a/model/crm/TaobaoCrmGrouptaskCheckAPIResponse.go b/model/crm/TaobaoCrmGrouptaskCheckAPIResponse.go new file mode 100644 index 0000000000..51f6b4557f --- /dev/null +++ b/model/crm/TaobaoCrmGrouptaskCheckAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询分组任务是否完成 API返回值 +taobao.crm.grouptask.check + +检查一个分组上是否有异步任务,异步任务包括1.将一个分组下的所有用户添加到另外一个分组2.将一个分组下的所有用户移动到另外一个分组3.删除某个分组
若分组上有任务则该属性不能被操作。 +*/ +type TaobaoCrmGrouptaskCheckAPIResponse struct { + model.CommonResponse + TaobaoCrmGrouptaskCheckAPIResponseModel +} + +// 查询分组任务是否完成 成功返回结果 +type TaobaoCrmGrouptaskCheckAPIResponseModel struct { + XMLName xml.Name `xml:"crm_grouptask_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步任务是否完成,true表示完成 + IsFinished bool `json:"is_finished,omitempty" xml:"is_finished,omitempty"` +} diff --git a/model/crm/TaobaoCrmGrouptaskCheckResponse.go b/model/crm/TaobaoCrmGrouptaskCheckResponse.go deleted file mode 100644 index 16edaa0225..0000000000 --- a/model/crm/TaobaoCrmGrouptaskCheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询分组任务是否完成 API返回值 -taobao.crm.grouptask.check - -检查一个分组上是否有异步任务,异步任务包括1.将一个分组下的所有用户添加到另外一个分组2.将一个分组下的所有用户移动到另外一个分组3.删除某个分组
若分组上有任务则该属性不能被操作。 -*/ -type TaobaoCrmGrouptaskCheckAPIResponse struct { - model.CommonResponse - TaobaoCrmGrouptaskCheckResponse -} - -// 查询分组任务是否完成 成功返回结果 -type TaobaoCrmGrouptaskCheckResponse struct { - XMLName xml.Name `xml:"crm_grouptask_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步任务是否完成,true表示完成 - IsFinished bool `json:"is_finished,omitempty" xml:"is_finished,omitempty"` -} diff --git a/model/crm/TaobaoCrmMemberGroupGetAPIRequest.go b/model/crm/TaobaoCrmMemberGroupGetAPIRequest.go new file mode 100644 index 0000000000..e2d482a59b --- /dev/null +++ b/model/crm/TaobaoCrmMemberGroupGetAPIRequest.go @@ -0,0 +1,52 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取买家身上的标签 API请求 +taobao.crm.member.group.get + +获取买家身上的标签,不返回标签的总人数 +*/ +type TaobaoCrmMemberGroupGetAPIRequest struct { + model.Params + // 会员Nick + _buyerNick string +} + +// 初始化TaobaoCrmMemberGroupGetAPIRequest对象 +func NewTaobaoCrmMemberGroupGetRequest() *TaobaoCrmMemberGroupGetAPIRequest{ + return &TaobaoCrmMemberGroupGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmMemberGroupGetAPIRequest) GetApiMethodName() string { + return "taobao.crm.member.group.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmMemberGroupGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BuyerNick Setter +// 会员Nick +func (r *TaobaoCrmMemberGroupGetAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoCrmMemberGroupGetAPIRequest) GetBuyerNick() string { + return r._buyerNick +} diff --git a/model/crm/TaobaoCrmMemberGroupGetAPIResponse.go b/model/crm/TaobaoCrmMemberGroupGetAPIResponse.go new file mode 100644 index 0000000000..588f8b0832 --- /dev/null +++ b/model/crm/TaobaoCrmMemberGroupGetAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取买家身上的标签 API返回值 +taobao.crm.member.group.get + +获取买家身上的标签,不返回标签的总人数 +*/ +type TaobaoCrmMemberGroupGetAPIResponse struct { + model.CommonResponse + TaobaoCrmMemberGroupGetAPIResponseModel +} + +// 获取买家身上的标签 成功返回结果 +type TaobaoCrmMemberGroupGetAPIResponseModel struct { + XMLName xml.Name `xml:"crm_member_group_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询到的当前卖家的当前页的会员 + Groups []Group `json:"groups,omitempty" xml:"groups>group,omitempty"` +} diff --git a/model/crm/TaobaoCrmMemberGroupGetResponse.go b/model/crm/TaobaoCrmMemberGroupGetResponse.go deleted file mode 100644 index c4f891f4a4..0000000000 --- a/model/crm/TaobaoCrmMemberGroupGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取买家身上的标签 API返回值 -taobao.crm.member.group.get - -获取买家身上的标签,不返回标签的总人数 -*/ -type TaobaoCrmMemberGroupGetAPIResponse struct { - model.CommonResponse - TaobaoCrmMemberGroupGetResponse -} - -// 获取买家身上的标签 成功返回结果 -type TaobaoCrmMemberGroupGetResponse struct { - XMLName xml.Name `xml:"crm_member_group_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询到的当前卖家的当前页的会员 - Groups []Group `json:"groups,omitempty" xml:"groups>group,omitempty"` -} diff --git a/model/crm/TaobaoCrmMemberinfoUpdateAPIRequest.go b/model/crm/TaobaoCrmMemberinfoUpdateAPIRequest.go new file mode 100644 index 0000000000..c747ff2b0d --- /dev/null +++ b/model/crm/TaobaoCrmMemberinfoUpdateAPIRequest.go @@ -0,0 +1,192 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +编辑会员资料 API请求 +taobao.crm.memberinfo.update + +编辑会员的基本资料,接口返回会员信息修改是否成功 +*/ +type TaobaoCrmMemberinfoUpdateAPIRequest struct { + model.Params + // 买家昵称 + _buyerNick string + // 用于描述会员的状态,normal表示正常,blacklist表示黑名单(不享受会员折扣). + _status string + // 会员等级,1:普通客户,2:高级会员,3:高级会员 ,4:至尊vip只有正常会员才给予升级,对于status blacklist的会员升级无效 + _grade int64 + // 北京=1,天津=2,河北省=3,山西省=4,内蒙古自治区=5,辽宁省=6,吉林省=7,黑龙江省=8,上海=9,江苏省=10,浙江省=11,安徽省=12,福建省=13,江西省=14,山东省=15,河南省=16,湖北省=17,湖南省=18, 广东省=19,广西壮族自治区=20,海南省=21,重庆=22,四川省=23,贵州省=24,云南省=25,西藏自治区=26,陕西省=27,甘肃省=28,青海省=29,宁夏回族自治区=30,新疆维吾尔自治区=31,台湾省=32,香港特别行政区=33,澳门特别行政区=34,海外=35,约定36为清除Province设置.请注意:从2014.4.15之后,省市将采用地区标准码,请通过物流API taobao.areas.get接口获取,参考:http://api.taobao.com/apidoc/api.htm?spm=0.0.0.0.nOOF9g&path=cid:7-apiId:59.API对于老的省市代码兼容会逐步下线. + _province string + // 城市.请注意:从2014.4.15之后,省市将采用地区标准码,请通过物流API taobao.areas.get接口获取,参考:http://api.taobao.com/apidoc/api.htm?spm=0.0.0.0.nOOF9g&path=cid:7-apiId:59.API对于老的省市代码兼容会逐步下线 + _city string + // 交易笔数 + _tradeCount int64 + // 交易金额,单位:分 + _tradeAmount int64 + // 交易关闭次数 + _closeTradeCount int64 + // 交易关闭金额,单位:分 + _closeTradeAmount int64 + // 分组的id集合字符串 + _groupIds string + // 宝贝件数 + _itemNum int64 +} + +// 初始化TaobaoCrmMemberinfoUpdateAPIRequest对象 +func NewTaobaoCrmMemberinfoUpdateRequest() *TaobaoCrmMemberinfoUpdateAPIRequest{ + return &TaobaoCrmMemberinfoUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmMemberinfoUpdateAPIRequest) GetApiMethodName() string { + return "taobao.crm.memberinfo.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmMemberinfoUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BuyerNick Setter +// 买家昵称 +func (r *TaobaoCrmMemberinfoUpdateAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoCrmMemberinfoUpdateAPIRequest) GetBuyerNick() string { + return r._buyerNick +} +// Status Setter +// 用于描述会员的状态,normal表示正常,blacklist表示黑名单(不享受会员折扣). +func (r *TaobaoCrmMemberinfoUpdateAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoCrmMemberinfoUpdateAPIRequest) GetStatus() string { + return r._status +} +// Grade Setter +// 会员等级,1:普通客户,2:高级会员,3:高级会员 ,4:至尊vip只有正常会员才给予升级,对于status blacklist的会员升级无效 +func (r *TaobaoCrmMemberinfoUpdateAPIRequest) SetGrade(_grade int64) error { + r._grade = _grade + r.Set("grade", _grade) + return nil +} + +// Grade Getter +func (r TaobaoCrmMemberinfoUpdateAPIRequest) GetGrade() int64 { + return r._grade +} +// Province Setter +// 北京=1,天津=2,河北省=3,山西省=4,内蒙古自治区=5,辽宁省=6,吉林省=7,黑龙江省=8,上海=9,江苏省=10,浙江省=11,安徽省=12,福建省=13,江西省=14,山东省=15,河南省=16,湖北省=17,湖南省=18, 广东省=19,广西壮族自治区=20,海南省=21,重庆=22,四川省=23,贵州省=24,云南省=25,西藏自治区=26,陕西省=27,甘肃省=28,青海省=29,宁夏回族自治区=30,新疆维吾尔自治区=31,台湾省=32,香港特别行政区=33,澳门特别行政区=34,海外=35,约定36为清除Province设置.请注意:从2014.4.15之后,省市将采用地区标准码,请通过物流API taobao.areas.get接口获取,参考:http://api.taobao.com/apidoc/api.htm?spm=0.0.0.0.nOOF9g&path=cid:7-apiId:59.API对于老的省市代码兼容会逐步下线. +func (r *TaobaoCrmMemberinfoUpdateAPIRequest) SetProvince(_province string) error { + r._province = _province + r.Set("province", _province) + return nil +} + +// Province Getter +func (r TaobaoCrmMemberinfoUpdateAPIRequest) GetProvince() string { + return r._province +} +// City Setter +// 城市.请注意:从2014.4.15之后,省市将采用地区标准码,请通过物流API taobao.areas.get接口获取,参考:http://api.taobao.com/apidoc/api.htm?spm=0.0.0.0.nOOF9g&path=cid:7-apiId:59.API对于老的省市代码兼容会逐步下线 +func (r *TaobaoCrmMemberinfoUpdateAPIRequest) SetCity(_city string) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r TaobaoCrmMemberinfoUpdateAPIRequest) GetCity() string { + return r._city +} +// TradeCount Setter +// 交易笔数 +func (r *TaobaoCrmMemberinfoUpdateAPIRequest) SetTradeCount(_tradeCount int64) error { + r._tradeCount = _tradeCount + r.Set("trade_count", _tradeCount) + return nil +} + +// TradeCount Getter +func (r TaobaoCrmMemberinfoUpdateAPIRequest) GetTradeCount() int64 { + return r._tradeCount +} +// TradeAmount Setter +// 交易金额,单位:分 +func (r *TaobaoCrmMemberinfoUpdateAPIRequest) SetTradeAmount(_tradeAmount int64) error { + r._tradeAmount = _tradeAmount + r.Set("trade_amount", _tradeAmount) + return nil +} + +// TradeAmount Getter +func (r TaobaoCrmMemberinfoUpdateAPIRequest) GetTradeAmount() int64 { + return r._tradeAmount +} +// CloseTradeCount Setter +// 交易关闭次数 +func (r *TaobaoCrmMemberinfoUpdateAPIRequest) SetCloseTradeCount(_closeTradeCount int64) error { + r._closeTradeCount = _closeTradeCount + r.Set("close_trade_count", _closeTradeCount) + return nil +} + +// CloseTradeCount Getter +func (r TaobaoCrmMemberinfoUpdateAPIRequest) GetCloseTradeCount() int64 { + return r._closeTradeCount +} +// CloseTradeAmount Setter +// 交易关闭金额,单位:分 +func (r *TaobaoCrmMemberinfoUpdateAPIRequest) SetCloseTradeAmount(_closeTradeAmount int64) error { + r._closeTradeAmount = _closeTradeAmount + r.Set("close_trade_amount", _closeTradeAmount) + return nil +} + +// CloseTradeAmount Getter +func (r TaobaoCrmMemberinfoUpdateAPIRequest) GetCloseTradeAmount() int64 { + return r._closeTradeAmount +} +// GroupIds Setter +// 分组的id集合字符串 +func (r *TaobaoCrmMemberinfoUpdateAPIRequest) SetGroupIds(_groupIds string) error { + r._groupIds = _groupIds + r.Set("group_ids", _groupIds) + return nil +} + +// GroupIds Getter +func (r TaobaoCrmMemberinfoUpdateAPIRequest) GetGroupIds() string { + return r._groupIds +} +// ItemNum Setter +// 宝贝件数 +func (r *TaobaoCrmMemberinfoUpdateAPIRequest) SetItemNum(_itemNum int64) error { + r._itemNum = _itemNum + r.Set("item_num", _itemNum) + return nil +} + +// ItemNum Getter +func (r TaobaoCrmMemberinfoUpdateAPIRequest) GetItemNum() int64 { + return r._itemNum +} diff --git a/model/crm/TaobaoCrmMemberinfoUpdateAPIResponse.go b/model/crm/TaobaoCrmMemberinfoUpdateAPIResponse.go new file mode 100644 index 0000000000..71b6a8fe07 --- /dev/null +++ b/model/crm/TaobaoCrmMemberinfoUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +编辑会员资料 API返回值 +taobao.crm.memberinfo.update + +编辑会员的基本资料,接口返回会员信息修改是否成功 +*/ +type TaobaoCrmMemberinfoUpdateAPIResponse struct { + model.CommonResponse + TaobaoCrmMemberinfoUpdateAPIResponseModel +} + +// 编辑会员资料 成功返回结果 +type TaobaoCrmMemberinfoUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"crm_memberinfo_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 会员信息修改是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/crm/TaobaoCrmMemberinfoUpdateResponse.go b/model/crm/TaobaoCrmMemberinfoUpdateResponse.go deleted file mode 100644 index 6dded33170..0000000000 --- a/model/crm/TaobaoCrmMemberinfoUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -编辑会员资料 API返回值 -taobao.crm.memberinfo.update - -编辑会员的基本资料,接口返回会员信息修改是否成功 -*/ -type TaobaoCrmMemberinfoUpdateAPIResponse struct { - model.CommonResponse - TaobaoCrmMemberinfoUpdateResponse -} - -// 编辑会员资料 成功返回结果 -type TaobaoCrmMemberinfoUpdateResponse struct { - XMLName xml.Name `xml:"crm_memberinfo_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 会员信息修改是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/crm/TaobaoCrmMembersGetAPIRequest.go b/model/crm/TaobaoCrmMembersGetAPIRequest.go new file mode 100644 index 0000000000..13e258aa46 --- /dev/null +++ b/model/crm/TaobaoCrmMembersGetAPIRequest.go @@ -0,0 +1,178 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取卖家的会员(基本查询) API请求 +taobao.crm.members.get + +查询卖家的会员,进行基本的查询,返回符合条件的会员列表 +*/ +type TaobaoCrmMembersGetAPIRequest struct { + model.Params + // 买家的昵称 + _buyerNick string + // 会员等级,如果不传入值则默认为全部等级。 + _grade int64 + // 最小交易额,单位为元 + _minTradeAmount float64 + // 最大交易额,单位为元 + _maxTradeAmount float64 + // 最小交易量 + _minTradeCount int64 + // 最大交易量 + _maxTradeCount int64 + // 最早上次交易时间 + _minLastTradeTime string + // 最迟上次交易时间 + _maxLastTradeTime string + // 表示每页显示的会员数量,page_size的最大值不能超过100条,最小值不能低于1, + _pageSize int64 + // 显示第几页的会员,如果输入的页码大于总共的页码数,例如总共10页,但是current_page的值为11,则返回空白页,最小页数为1,最大页数为1000 + _currentPage int64 +} + +// 初始化TaobaoCrmMembersGetAPIRequest对象 +func NewTaobaoCrmMembersGetRequest() *TaobaoCrmMembersGetAPIRequest{ + return &TaobaoCrmMembersGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmMembersGetAPIRequest) GetApiMethodName() string { + return "taobao.crm.members.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmMembersGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BuyerNick Setter +// 买家的昵称 +func (r *TaobaoCrmMembersGetAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoCrmMembersGetAPIRequest) GetBuyerNick() string { + return r._buyerNick +} +// Grade Setter +// 会员等级,如果不传入值则默认为全部等级。 +func (r *TaobaoCrmMembersGetAPIRequest) SetGrade(_grade int64) error { + r._grade = _grade + r.Set("grade", _grade) + return nil +} + +// Grade Getter +func (r TaobaoCrmMembersGetAPIRequest) GetGrade() int64 { + return r._grade +} +// MinTradeAmount Setter +// 最小交易额,单位为元 +func (r *TaobaoCrmMembersGetAPIRequest) SetMinTradeAmount(_minTradeAmount float64) error { + r._minTradeAmount = _minTradeAmount + r.Set("min_trade_amount", _minTradeAmount) + return nil +} + +// MinTradeAmount Getter +func (r TaobaoCrmMembersGetAPIRequest) GetMinTradeAmount() float64 { + return r._minTradeAmount +} +// MaxTradeAmount Setter +// 最大交易额,单位为元 +func (r *TaobaoCrmMembersGetAPIRequest) SetMaxTradeAmount(_maxTradeAmount float64) error { + r._maxTradeAmount = _maxTradeAmount + r.Set("max_trade_amount", _maxTradeAmount) + return nil +} + +// MaxTradeAmount Getter +func (r TaobaoCrmMembersGetAPIRequest) GetMaxTradeAmount() float64 { + return r._maxTradeAmount +} +// MinTradeCount Setter +// 最小交易量 +func (r *TaobaoCrmMembersGetAPIRequest) SetMinTradeCount(_minTradeCount int64) error { + r._minTradeCount = _minTradeCount + r.Set("min_trade_count", _minTradeCount) + return nil +} + +// MinTradeCount Getter +func (r TaobaoCrmMembersGetAPIRequest) GetMinTradeCount() int64 { + return r._minTradeCount +} +// MaxTradeCount Setter +// 最大交易量 +func (r *TaobaoCrmMembersGetAPIRequest) SetMaxTradeCount(_maxTradeCount int64) error { + r._maxTradeCount = _maxTradeCount + r.Set("max_trade_count", _maxTradeCount) + return nil +} + +// MaxTradeCount Getter +func (r TaobaoCrmMembersGetAPIRequest) GetMaxTradeCount() int64 { + return r._maxTradeCount +} +// MinLastTradeTime Setter +// 最早上次交易时间 +func (r *TaobaoCrmMembersGetAPIRequest) SetMinLastTradeTime(_minLastTradeTime string) error { + r._minLastTradeTime = _minLastTradeTime + r.Set("min_last_trade_time", _minLastTradeTime) + return nil +} + +// MinLastTradeTime Getter +func (r TaobaoCrmMembersGetAPIRequest) GetMinLastTradeTime() string { + return r._minLastTradeTime +} +// MaxLastTradeTime Setter +// 最迟上次交易时间 +func (r *TaobaoCrmMembersGetAPIRequest) SetMaxLastTradeTime(_maxLastTradeTime string) error { + r._maxLastTradeTime = _maxLastTradeTime + r.Set("max_last_trade_time", _maxLastTradeTime) + return nil +} + +// MaxLastTradeTime Getter +func (r TaobaoCrmMembersGetAPIRequest) GetMaxLastTradeTime() string { + return r._maxLastTradeTime +} +// PageSize Setter +// 表示每页显示的会员数量,page_size的最大值不能超过100条,最小值不能低于1, +func (r *TaobaoCrmMembersGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoCrmMembersGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// CurrentPage Setter +// 显示第几页的会员,如果输入的页码大于总共的页码数,例如总共10页,但是current_page的值为11,则返回空白页,最小页数为1,最大页数为1000 +func (r *TaobaoCrmMembersGetAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TaobaoCrmMembersGetAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} diff --git a/model/crm/TaobaoCrmMembersGetAPIResponse.go b/model/crm/TaobaoCrmMembersGetAPIResponse.go new file mode 100644 index 0000000000..61c647c7e6 --- /dev/null +++ b/model/crm/TaobaoCrmMembersGetAPIResponse.go @@ -0,0 +1,29 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取卖家的会员(基本查询) API返回值 +taobao.crm.members.get + +查询卖家的会员,进行基本的查询,返回符合条件的会员列表 +*/ +type TaobaoCrmMembersGetAPIResponse struct { + model.CommonResponse + TaobaoCrmMembersGetAPIResponseModel +} + +// 获取卖家的会员(基本查询) 成功返回结果 +type TaobaoCrmMembersGetAPIResponseModel struct { + XMLName xml.Name `xml:"crm_members_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 根据一定条件查询到卖家的会员 + Members []BasicMember `json:"members,omitempty" xml:"members>basic_member,omitempty"` + // 记录总数 + TotalResult int64 `json:"total_result,omitempty" xml:"total_result,omitempty"` +} diff --git a/model/crm/TaobaoCrmMembersGetResponse.go b/model/crm/TaobaoCrmMembersGetResponse.go deleted file mode 100644 index e318dc6a77..0000000000 --- a/model/crm/TaobaoCrmMembersGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取卖家的会员(基本查询) API返回值 -taobao.crm.members.get - -查询卖家的会员,进行基本的查询,返回符合条件的会员列表 -*/ -type TaobaoCrmMembersGetAPIResponse struct { - model.CommonResponse - TaobaoCrmMembersGetResponse -} - -// 获取卖家的会员(基本查询) 成功返回结果 -type TaobaoCrmMembersGetResponse struct { - XMLName xml.Name `xml:"crm_members_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 根据一定条件查询到卖家的会员 - Members []BasicMember `json:"members,omitempty" xml:"members>basic_member,omitempty"` - // 记录总数 - TotalResult int64 `json:"total_result,omitempty" xml:"total_result,omitempty"` -} diff --git a/model/crm/TaobaoCrmMembersGroupBatchaddAPIRequest.go b/model/crm/TaobaoCrmMembersGroupBatchaddAPIRequest.go new file mode 100644 index 0000000000..1ca42eeb2c --- /dev/null +++ b/model/crm/TaobaoCrmMembersGroupBatchaddAPIRequest.go @@ -0,0 +1,66 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +给一批会员添加一个分组 API请求 +taobao.crm.members.group.batchadd + +为一批会员添加分组,接口返回添加是否成功,如至少有一个会员的分组添加成功,接口就返回成功,否则返回失败,如果当前会员已经拥有当前分组,则直接跳过 +*/ +type TaobaoCrmMembersGroupBatchaddAPIRequest struct { + model.Params + // 分组id + _groupIds []int64 + // 买家昵称列表 + _buyerNicks []string +} + +// 初始化TaobaoCrmMembersGroupBatchaddAPIRequest对象 +func NewTaobaoCrmMembersGroupBatchaddRequest() *TaobaoCrmMembersGroupBatchaddAPIRequest{ + return &TaobaoCrmMembersGroupBatchaddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmMembersGroupBatchaddAPIRequest) GetApiMethodName() string { + return "taobao.crm.members.group.batchadd" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmMembersGroupBatchaddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupIds Setter +// 分组id +func (r *TaobaoCrmMembersGroupBatchaddAPIRequest) SetGroupIds(_groupIds []int64) error { + r._groupIds = _groupIds + r.Set("group_ids", _groupIds) + return nil +} + +// GroupIds Getter +func (r TaobaoCrmMembersGroupBatchaddAPIRequest) GetGroupIds() []int64 { + return r._groupIds +} +// BuyerNicks Setter +// 买家昵称列表 +func (r *TaobaoCrmMembersGroupBatchaddAPIRequest) SetBuyerNicks(_buyerNicks []string) error { + r._buyerNicks = _buyerNicks + r.Set("buyer_nicks", _buyerNicks) + return nil +} + +// BuyerNicks Getter +func (r TaobaoCrmMembersGroupBatchaddAPIRequest) GetBuyerNicks() []string { + return r._buyerNicks +} diff --git a/model/crm/TaobaoCrmMembersGroupBatchaddAPIResponse.go b/model/crm/TaobaoCrmMembersGroupBatchaddAPIResponse.go new file mode 100644 index 0000000000..3344b81a39 --- /dev/null +++ b/model/crm/TaobaoCrmMembersGroupBatchaddAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +给一批会员添加一个分组 API返回值 +taobao.crm.members.group.batchadd + +为一批会员添加分组,接口返回添加是否成功,如至少有一个会员的分组添加成功,接口就返回成功,否则返回失败,如果当前会员已经拥有当前分组,则直接跳过 +*/ +type TaobaoCrmMembersGroupBatchaddAPIResponse struct { + model.CommonResponse + TaobaoCrmMembersGroupBatchaddAPIResponseModel +} + +// 给一批会员添加一个分组 成功返回结果 +type TaobaoCrmMembersGroupBatchaddAPIResponseModel struct { + XMLName xml.Name `xml:"crm_members_group_batchadd_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 添加操作是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/crm/TaobaoCrmMembersGroupBatchaddResponse.go b/model/crm/TaobaoCrmMembersGroupBatchaddResponse.go deleted file mode 100644 index 5a58881afb..0000000000 --- a/model/crm/TaobaoCrmMembersGroupBatchaddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -给一批会员添加一个分组 API返回值 -taobao.crm.members.group.batchadd - -为一批会员添加分组,接口返回添加是否成功,如至少有一个会员的分组添加成功,接口就返回成功,否则返回失败,如果当前会员已经拥有当前分组,则直接跳过 -*/ -type TaobaoCrmMembersGroupBatchaddAPIResponse struct { - model.CommonResponse - TaobaoCrmMembersGroupBatchaddResponse -} - -// 给一批会员添加一个分组 成功返回结果 -type TaobaoCrmMembersGroupBatchaddResponse struct { - XMLName xml.Name `xml:"crm_members_group_batchadd_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 添加操作是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/crm/TaobaoCrmMembersGroupsBatchdeleteAPIRequest.go b/model/crm/TaobaoCrmMembersGroupsBatchdeleteAPIRequest.go new file mode 100644 index 0000000000..b9efcd7ae3 --- /dev/null +++ b/model/crm/TaobaoCrmMembersGroupsBatchdeleteAPIRequest.go @@ -0,0 +1,66 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量删除分组 API请求 +taobao.crm.members.groups.batchdelete + +批量删除多个会员的公共分组,接口返回删除是否成功,该接口只删除多个会员的公共分组,不是公共分组的,不进行删除。如果入参只输入一个会员,则表示删除该会员的某些分组。 +*/ +type TaobaoCrmMembersGroupsBatchdeleteAPIRequest struct { + model.Params + // 买家昵称列表 + _buyerNicks []string + // 会员需要删除的分组 + _groupIds []int64 +} + +// 初始化TaobaoCrmMembersGroupsBatchdeleteAPIRequest对象 +func NewTaobaoCrmMembersGroupsBatchdeleteRequest() *TaobaoCrmMembersGroupsBatchdeleteAPIRequest{ + return &TaobaoCrmMembersGroupsBatchdeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmMembersGroupsBatchdeleteAPIRequest) GetApiMethodName() string { + return "taobao.crm.members.groups.batchdelete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmMembersGroupsBatchdeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BuyerNicks Setter +// 买家昵称列表 +func (r *TaobaoCrmMembersGroupsBatchdeleteAPIRequest) SetBuyerNicks(_buyerNicks []string) error { + r._buyerNicks = _buyerNicks + r.Set("buyer_nicks", _buyerNicks) + return nil +} + +// BuyerNicks Getter +func (r TaobaoCrmMembersGroupsBatchdeleteAPIRequest) GetBuyerNicks() []string { + return r._buyerNicks +} +// GroupIds Setter +// 会员需要删除的分组 +func (r *TaobaoCrmMembersGroupsBatchdeleteAPIRequest) SetGroupIds(_groupIds []int64) error { + r._groupIds = _groupIds + r.Set("group_ids", _groupIds) + return nil +} + +// GroupIds Getter +func (r TaobaoCrmMembersGroupsBatchdeleteAPIRequest) GetGroupIds() []int64 { + return r._groupIds +} diff --git a/model/crm/TaobaoCrmMembersGroupsBatchdeleteAPIResponse.go b/model/crm/TaobaoCrmMembersGroupsBatchdeleteAPIResponse.go new file mode 100644 index 0000000000..19233c470c --- /dev/null +++ b/model/crm/TaobaoCrmMembersGroupsBatchdeleteAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量删除分组 API返回值 +taobao.crm.members.groups.batchdelete + +批量删除多个会员的公共分组,接口返回删除是否成功,该接口只删除多个会员的公共分组,不是公共分组的,不进行删除。如果入参只输入一个会员,则表示删除该会员的某些分组。 +*/ +type TaobaoCrmMembersGroupsBatchdeleteAPIResponse struct { + model.CommonResponse + TaobaoCrmMembersGroupsBatchdeleteAPIResponseModel +} + +// 批量删除分组 成功返回结果 +type TaobaoCrmMembersGroupsBatchdeleteAPIResponseModel struct { + XMLName xml.Name `xml:"crm_members_groups_batchdelete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 删除是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/crm/TaobaoCrmMembersGroupsBatchdeleteResponse.go b/model/crm/TaobaoCrmMembersGroupsBatchdeleteResponse.go deleted file mode 100644 index 6dc07fc097..0000000000 --- a/model/crm/TaobaoCrmMembersGroupsBatchdeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量删除分组 API返回值 -taobao.crm.members.groups.batchdelete - -批量删除多个会员的公共分组,接口返回删除是否成功,该接口只删除多个会员的公共分组,不是公共分组的,不进行删除。如果入参只输入一个会员,则表示删除该会员的某些分组。 -*/ -type TaobaoCrmMembersGroupsBatchdeleteAPIResponse struct { - model.CommonResponse - TaobaoCrmMembersGroupsBatchdeleteResponse -} - -// 批量删除分组 成功返回结果 -type TaobaoCrmMembersGroupsBatchdeleteResponse struct { - XMLName xml.Name `xml:"crm_members_groups_batchdelete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 删除是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/crm/TaobaoCrmMembersIncrementGetAPIRequest.go b/model/crm/TaobaoCrmMembersIncrementGetAPIRequest.go new file mode 100644 index 0000000000..52117b2a89 --- /dev/null +++ b/model/crm/TaobaoCrmMembersIncrementGetAPIRequest.go @@ -0,0 +1,108 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +增量获取卖家会员 API请求 +taobao.crm.members.increment.get + +增量获取会员列表,接口返回符合查询条件的所有会员。任何状态更改都会返回,最大允许100 +*/ +type TaobaoCrmMembersIncrementGetAPIRequest struct { + model.Params + // 会员等级 + _grade int64 + // 卖家修改会员信息的时间起点. + _startModify string + // 卖家修改会员信息的时间终点.如果不填写此字段,默认为当前时间. + _endModify string + // 每页显示的会员数,page_size的值不能超过100,最小值要大于1 + _pageSize int64 + // 显示第几页的会员,如果输入的页码大于总共的页码数,例如总共10页,但是current_page的值为11,则返回空白页,最小页数为1 + _currentPage int64 +} + +// 初始化TaobaoCrmMembersIncrementGetAPIRequest对象 +func NewTaobaoCrmMembersIncrementGetRequest() *TaobaoCrmMembersIncrementGetAPIRequest{ + return &TaobaoCrmMembersIncrementGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmMembersIncrementGetAPIRequest) GetApiMethodName() string { + return "taobao.crm.members.increment.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmMembersIncrementGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Grade Setter +// 会员等级 +func (r *TaobaoCrmMembersIncrementGetAPIRequest) SetGrade(_grade int64) error { + r._grade = _grade + r.Set("grade", _grade) + return nil +} + +// Grade Getter +func (r TaobaoCrmMembersIncrementGetAPIRequest) GetGrade() int64 { + return r._grade +} +// StartModify Setter +// 卖家修改会员信息的时间起点. +func (r *TaobaoCrmMembersIncrementGetAPIRequest) SetStartModify(_startModify string) error { + r._startModify = _startModify + r.Set("start_modify", _startModify) + return nil +} + +// StartModify Getter +func (r TaobaoCrmMembersIncrementGetAPIRequest) GetStartModify() string { + return r._startModify +} +// EndModify Setter +// 卖家修改会员信息的时间终点.如果不填写此字段,默认为当前时间. +func (r *TaobaoCrmMembersIncrementGetAPIRequest) SetEndModify(_endModify string) error { + r._endModify = _endModify + r.Set("end_modify", _endModify) + return nil +} + +// EndModify Getter +func (r TaobaoCrmMembersIncrementGetAPIRequest) GetEndModify() string { + return r._endModify +} +// PageSize Setter +// 每页显示的会员数,page_size的值不能超过100,最小值要大于1 +func (r *TaobaoCrmMembersIncrementGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoCrmMembersIncrementGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// CurrentPage Setter +// 显示第几页的会员,如果输入的页码大于总共的页码数,例如总共10页,但是current_page的值为11,则返回空白页,最小页数为1 +func (r *TaobaoCrmMembersIncrementGetAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TaobaoCrmMembersIncrementGetAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} diff --git a/model/crm/TaobaoCrmMembersIncrementGetAPIResponse.go b/model/crm/TaobaoCrmMembersIncrementGetAPIResponse.go new file mode 100644 index 0000000000..dd976d08cc --- /dev/null +++ b/model/crm/TaobaoCrmMembersIncrementGetAPIResponse.go @@ -0,0 +1,29 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +增量获取卖家会员 API返回值 +taobao.crm.members.increment.get + +增量获取会员列表,接口返回符合查询条件的所有会员。任何状态更改都会返回,最大允许100 +*/ +type TaobaoCrmMembersIncrementGetAPIResponse struct { + model.CommonResponse + TaobaoCrmMembersIncrementGetAPIResponseModel +} + +// 增量获取卖家会员 成功返回结果 +type TaobaoCrmMembersIncrementGetAPIResponseModel struct { + XMLName xml.Name `xml:"crm_members_increment_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回当前页的会员列表 + Members []BasicMember `json:"members,omitempty" xml:"members>basic_member,omitempty"` + // 记录的总条数 + TotalResult int64 `json:"total_result,omitempty" xml:"total_result,omitempty"` +} diff --git a/model/crm/TaobaoCrmMembersIncrementGetResponse.go b/model/crm/TaobaoCrmMembersIncrementGetResponse.go deleted file mode 100644 index f50574ccb0..0000000000 --- a/model/crm/TaobaoCrmMembersIncrementGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -增量获取卖家会员 API返回值 -taobao.crm.members.increment.get - -增量获取会员列表,接口返回符合查询条件的所有会员。任何状态更改都会返回,最大允许100 -*/ -type TaobaoCrmMembersIncrementGetAPIResponse struct { - model.CommonResponse - TaobaoCrmMembersIncrementGetResponse -} - -// 增量获取卖家会员 成功返回结果 -type TaobaoCrmMembersIncrementGetResponse struct { - XMLName xml.Name `xml:"crm_members_increment_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回当前页的会员列表 - Members []BasicMember `json:"members,omitempty" xml:"members>basic_member,omitempty"` - // 记录的总条数 - TotalResult int64 `json:"total_result,omitempty" xml:"total_result,omitempty"` -} diff --git a/model/crm/TaobaoCrmMembersSearchAPIRequest.go b/model/crm/TaobaoCrmMembersSearchAPIRequest.go new file mode 100644 index 0000000000..e2c1a318ba --- /dev/null +++ b/model/crm/TaobaoCrmMembersSearchAPIRequest.go @@ -0,0 +1,206 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取卖家会员(高级查询) API请求 +taobao.crm.members.search + +会员列表的高级查询,接口返回符合条件的会员列表.

注:建议获取09年以后的数据,09年之前的数据不是很完整 +*/ +type TaobaoCrmMembersSearchAPIRequest struct { + model.Params + // 买家昵称 + _buyerNick string + // 会员等级 + _grade int64 + // 最小交易额,单位为元 + _minTradeAmount float64 + // 最大交易额,单位为元 + _maxTradeAmount float64 + // 最小交易量 + _minTradeCount int64 + // 最大交易量 + _maxTradeCount int64 + // 最早上次交易时间(订单创建时间) + _minLastTradeTime string + // 最迟上次交易时间 + _maxLastTradeTime string + // 关系来源,1交易成功,2未成交,3卖家手动吸纳 + _relationSource int64 + // 分组id + _groupId int64 + // 每页显示的会员数量,page_size的最大值不能超过100,最小值不能小于1 + _pageSize int64 + // 显示第几页的会员,如果输入的页码大于总共的页码数,例如总共10页,但是current_page的值为11,则返回空白页,最小页数为1.最大1000页 + _currentPage int64 +} + +// 初始化TaobaoCrmMembersSearchAPIRequest对象 +func NewTaobaoCrmMembersSearchRequest() *TaobaoCrmMembersSearchAPIRequest{ + return &TaobaoCrmMembersSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmMembersSearchAPIRequest) GetApiMethodName() string { + return "taobao.crm.members.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmMembersSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BuyerNick Setter +// 买家昵称 +func (r *TaobaoCrmMembersSearchAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoCrmMembersSearchAPIRequest) GetBuyerNick() string { + return r._buyerNick +} +// Grade Setter +// 会员等级 +func (r *TaobaoCrmMembersSearchAPIRequest) SetGrade(_grade int64) error { + r._grade = _grade + r.Set("grade", _grade) + return nil +} + +// Grade Getter +func (r TaobaoCrmMembersSearchAPIRequest) GetGrade() int64 { + return r._grade +} +// MinTradeAmount Setter +// 最小交易额,单位为元 +func (r *TaobaoCrmMembersSearchAPIRequest) SetMinTradeAmount(_minTradeAmount float64) error { + r._minTradeAmount = _minTradeAmount + r.Set("min_trade_amount", _minTradeAmount) + return nil +} + +// MinTradeAmount Getter +func (r TaobaoCrmMembersSearchAPIRequest) GetMinTradeAmount() float64 { + return r._minTradeAmount +} +// MaxTradeAmount Setter +// 最大交易额,单位为元 +func (r *TaobaoCrmMembersSearchAPIRequest) SetMaxTradeAmount(_maxTradeAmount float64) error { + r._maxTradeAmount = _maxTradeAmount + r.Set("max_trade_amount", _maxTradeAmount) + return nil +} + +// MaxTradeAmount Getter +func (r TaobaoCrmMembersSearchAPIRequest) GetMaxTradeAmount() float64 { + return r._maxTradeAmount +} +// MinTradeCount Setter +// 最小交易量 +func (r *TaobaoCrmMembersSearchAPIRequest) SetMinTradeCount(_minTradeCount int64) error { + r._minTradeCount = _minTradeCount + r.Set("min_trade_count", _minTradeCount) + return nil +} + +// MinTradeCount Getter +func (r TaobaoCrmMembersSearchAPIRequest) GetMinTradeCount() int64 { + return r._minTradeCount +} +// MaxTradeCount Setter +// 最大交易量 +func (r *TaobaoCrmMembersSearchAPIRequest) SetMaxTradeCount(_maxTradeCount int64) error { + r._maxTradeCount = _maxTradeCount + r.Set("max_trade_count", _maxTradeCount) + return nil +} + +// MaxTradeCount Getter +func (r TaobaoCrmMembersSearchAPIRequest) GetMaxTradeCount() int64 { + return r._maxTradeCount +} +// MinLastTradeTime Setter +// 最早上次交易时间(订单创建时间) +func (r *TaobaoCrmMembersSearchAPIRequest) SetMinLastTradeTime(_minLastTradeTime string) error { + r._minLastTradeTime = _minLastTradeTime + r.Set("min_last_trade_time", _minLastTradeTime) + return nil +} + +// MinLastTradeTime Getter +func (r TaobaoCrmMembersSearchAPIRequest) GetMinLastTradeTime() string { + return r._minLastTradeTime +} +// MaxLastTradeTime Setter +// 最迟上次交易时间 +func (r *TaobaoCrmMembersSearchAPIRequest) SetMaxLastTradeTime(_maxLastTradeTime string) error { + r._maxLastTradeTime = _maxLastTradeTime + r.Set("max_last_trade_time", _maxLastTradeTime) + return nil +} + +// MaxLastTradeTime Getter +func (r TaobaoCrmMembersSearchAPIRequest) GetMaxLastTradeTime() string { + return r._maxLastTradeTime +} +// RelationSource Setter +// 关系来源,1交易成功,2未成交,3卖家手动吸纳 +func (r *TaobaoCrmMembersSearchAPIRequest) SetRelationSource(_relationSource int64) error { + r._relationSource = _relationSource + r.Set("relation_source", _relationSource) + return nil +} + +// RelationSource Getter +func (r TaobaoCrmMembersSearchAPIRequest) GetRelationSource() int64 { + return r._relationSource +} +// GroupId Setter +// 分组id +func (r *TaobaoCrmMembersSearchAPIRequest) SetGroupId(_groupId int64) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r TaobaoCrmMembersSearchAPIRequest) GetGroupId() int64 { + return r._groupId +} +// PageSize Setter +// 每页显示的会员数量,page_size的最大值不能超过100,最小值不能小于1 +func (r *TaobaoCrmMembersSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoCrmMembersSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// CurrentPage Setter +// 显示第几页的会员,如果输入的页码大于总共的页码数,例如总共10页,但是current_page的值为11,则返回空白页,最小页数为1.最大1000页 +func (r *TaobaoCrmMembersSearchAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TaobaoCrmMembersSearchAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} diff --git a/model/crm/TaobaoCrmMembersSearchAPIResponse.go b/model/crm/TaobaoCrmMembersSearchAPIResponse.go new file mode 100644 index 0000000000..b8519462cd --- /dev/null +++ b/model/crm/TaobaoCrmMembersSearchAPIResponse.go @@ -0,0 +1,29 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取卖家会员(高级查询) API返回值 +taobao.crm.members.search + +会员列表的高级查询,接口返回符合条件的会员列表.

注:建议获取09年以后的数据,09年之前的数据不是很完整 +*/ +type TaobaoCrmMembersSearchAPIResponse struct { + model.CommonResponse + TaobaoCrmMembersSearchAPIResponseModel +} + +// 获取卖家会员(高级查询) 成功返回结果 +type TaobaoCrmMembersSearchAPIResponseModel struct { + XMLName xml.Name `xml:"crm_members_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 根据一定条件查询的卖家会员 + Members []CrmMember `json:"members,omitempty" xml:"members>crm_member,omitempty"` + // 记录的总条数 + TotalResult int64 `json:"total_result,omitempty" xml:"total_result,omitempty"` +} diff --git a/model/crm/TaobaoCrmMembersSearchResponse.go b/model/crm/TaobaoCrmMembersSearchResponse.go deleted file mode 100644 index ab9076ff8e..0000000000 --- a/model/crm/TaobaoCrmMembersSearchResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取卖家会员(高级查询) API返回值 -taobao.crm.members.search - -会员列表的高级查询,接口返回符合条件的会员列表.

注:建议获取09年以后的数据,09年之前的数据不是很完整 -*/ -type TaobaoCrmMembersSearchAPIResponse struct { - model.CommonResponse - TaobaoCrmMembersSearchResponse -} - -// 获取卖家会员(高级查询) 成功返回结果 -type TaobaoCrmMembersSearchResponse struct { - XMLName xml.Name `xml:"crm_members_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 根据一定条件查询的卖家会员 - Members []CrmMember `json:"members,omitempty" xml:"members>crm_member,omitempty"` - // 记录的总条数 - TotalResult int64 `json:"total_result,omitempty" xml:"total_result,omitempty"` -} diff --git a/model/crm/TaobaoCrmServiceChannelShortlinkCreateAPIRequest.go b/model/crm/TaobaoCrmServiceChannelShortlinkCreateAPIRequest.go new file mode 100644 index 0000000000..59e204c64c --- /dev/null +++ b/model/crm/TaobaoCrmServiceChannelShortlinkCreateAPIRequest.go @@ -0,0 +1,80 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ECRM创建淘短链服务 API请求 +taobao.crm.service.channel.shortlink.create + +可生成店铺宝贝、店铺首页、活动链接、订单链接等4种可呼起手机淘宝APP至对应页面的淘短链。 +*/ +type TaobaoCrmServiceChannelShortlinkCreateAPIRequest struct { + model.Params + // 淘短链名称(最多只能16个中文字符,类型为订单链接时传入订单ID)。 + _shortLinkName string + // 淘短链类型:LT_ITEM(商品淘短链),LT_SHOP(店铺首页淘短链),LT_ACTIVITY(活动页淘短链),LT_TRADE(订单详情页淘短链)。 + _linkType string + // 类型为LT_ITEM时必须传入商品ID,类型为LT_SHOP时必须传入空值,类型为LT_ACTIVITY时传入活动页URL(URL必须是taobao.com,tmall.com,jaeapp.com这三个域名下的URL),类型为LT_TRADE时传入订单ID。 + _shortLinkData string +} + +// 初始化TaobaoCrmServiceChannelShortlinkCreateAPIRequest对象 +func NewTaobaoCrmServiceChannelShortlinkCreateRequest() *TaobaoCrmServiceChannelShortlinkCreateAPIRequest{ + return &TaobaoCrmServiceChannelShortlinkCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmServiceChannelShortlinkCreateAPIRequest) GetApiMethodName() string { + return "taobao.crm.service.channel.shortlink.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmServiceChannelShortlinkCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShortLinkName Setter +// 淘短链名称(最多只能16个中文字符,类型为订单链接时传入订单ID)。 +func (r *TaobaoCrmServiceChannelShortlinkCreateAPIRequest) SetShortLinkName(_shortLinkName string) error { + r._shortLinkName = _shortLinkName + r.Set("short_link_name", _shortLinkName) + return nil +} + +// ShortLinkName Getter +func (r TaobaoCrmServiceChannelShortlinkCreateAPIRequest) GetShortLinkName() string { + return r._shortLinkName +} +// LinkType Setter +// 淘短链类型:LT_ITEM(商品淘短链),LT_SHOP(店铺首页淘短链),LT_ACTIVITY(活动页淘短链),LT_TRADE(订单详情页淘短链)。 +func (r *TaobaoCrmServiceChannelShortlinkCreateAPIRequest) SetLinkType(_linkType string) error { + r._linkType = _linkType + r.Set("link_type", _linkType) + return nil +} + +// LinkType Getter +func (r TaobaoCrmServiceChannelShortlinkCreateAPIRequest) GetLinkType() string { + return r._linkType +} +// ShortLinkData Setter +// 类型为LT_ITEM时必须传入商品ID,类型为LT_SHOP时必须传入空值,类型为LT_ACTIVITY时传入活动页URL(URL必须是taobao.com,tmall.com,jaeapp.com这三个域名下的URL),类型为LT_TRADE时传入订单ID。 +func (r *TaobaoCrmServiceChannelShortlinkCreateAPIRequest) SetShortLinkData(_shortLinkData string) error { + r._shortLinkData = _shortLinkData + r.Set("short_link_data", _shortLinkData) + return nil +} + +// ShortLinkData Getter +func (r TaobaoCrmServiceChannelShortlinkCreateAPIRequest) GetShortLinkData() string { + return r._shortLinkData +} diff --git a/model/crm/TaobaoCrmServiceChannelShortlinkCreateAPIResponse.go b/model/crm/TaobaoCrmServiceChannelShortlinkCreateAPIResponse.go new file mode 100644 index 0000000000..675fe34952 --- /dev/null +++ b/model/crm/TaobaoCrmServiceChannelShortlinkCreateAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ECRM创建淘短链服务 API返回值 +taobao.crm.service.channel.shortlink.create + +可生成店铺宝贝、店铺首页、活动链接、订单链接等4种可呼起手机淘宝APP至对应页面的淘短链。 +*/ +type TaobaoCrmServiceChannelShortlinkCreateAPIResponse struct { + model.CommonResponse + TaobaoCrmServiceChannelShortlinkCreateAPIResponseModel +} + +// ECRM创建淘短链服务 成功返回结果 +type TaobaoCrmServiceChannelShortlinkCreateAPIResponseModel struct { + XMLName xml.Name `xml:"crm_service_channel_shortlink_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的淘短链。 + ShortLink string `json:"short_link,omitempty" xml:"short_link,omitempty"` +} diff --git a/model/crm/TaobaoCrmServiceChannelShortlinkCreateResponse.go b/model/crm/TaobaoCrmServiceChannelShortlinkCreateResponse.go deleted file mode 100644 index 965ebb52bb..0000000000 --- a/model/crm/TaobaoCrmServiceChannelShortlinkCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ECRM创建淘短链服务 API返回值 -taobao.crm.service.channel.shortlink.create - -可生成店铺宝贝、店铺首页、活动链接、订单链接等4种可呼起手机淘宝APP至对应页面的淘短链。 -*/ -type TaobaoCrmServiceChannelShortlinkCreateAPIResponse struct { - model.CommonResponse - TaobaoCrmServiceChannelShortlinkCreateResponse -} - -// ECRM创建淘短链服务 成功返回结果 -type TaobaoCrmServiceChannelShortlinkCreateResponse struct { - XMLName xml.Name `xml:"crm_service_channel_shortlink_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的淘短链。 - ShortLink string `json:"short_link,omitempty" xml:"short_link,omitempty"` -} diff --git a/model/crm/TaobaoCrmShopvipCancelAPIRequest.go b/model/crm/TaobaoCrmShopvipCancelAPIRequest.go new file mode 100644 index 0000000000..52a35609e8 --- /dev/null +++ b/model/crm/TaobaoCrmShopvipCancelAPIRequest.go @@ -0,0 +1,38 @@ +package crm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家取消店铺vip的优惠 API请求 +taobao.crm.shopvip.cancel + +此接口用于取消VIP优惠 +*/ +type TaobaoCrmShopvipCancelAPIRequest struct { + model.Params +} + +// 初始化TaobaoCrmShopvipCancelAPIRequest对象 +func NewTaobaoCrmShopvipCancelRequest() *TaobaoCrmShopvipCancelAPIRequest{ + return &TaobaoCrmShopvipCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCrmShopvipCancelAPIRequest) GetApiMethodName() string { + return "taobao.crm.shopvip.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCrmShopvipCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/crm/TaobaoCrmShopvipCancelAPIResponse.go b/model/crm/TaobaoCrmShopvipCancelAPIResponse.go new file mode 100644 index 0000000000..689272692d --- /dev/null +++ b/model/crm/TaobaoCrmShopvipCancelAPIResponse.go @@ -0,0 +1,27 @@ +package crm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家取消店铺vip的优惠 API返回值 +taobao.crm.shopvip.cancel + +此接口用于取消VIP优惠 +*/ +type TaobaoCrmShopvipCancelAPIResponse struct { + model.CommonResponse + TaobaoCrmShopvipCancelAPIResponseModel +} + +// 卖家取消店铺vip的优惠 成功返回结果 +type TaobaoCrmShopvipCancelAPIResponseModel struct { + XMLName xml.Name `xml:"crm_shopvip_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回操作是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/crm/TaobaoCrmShopvipCancelResponse.go b/model/crm/TaobaoCrmShopvipCancelResponse.go deleted file mode 100644 index adc8588350..0000000000 --- a/model/crm/TaobaoCrmShopvipCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package crm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家取消店铺vip的优惠 API返回值 -taobao.crm.shopvip.cancel - -此接口用于取消VIP优惠 -*/ -type TaobaoCrmShopvipCancelAPIResponse struct { - model.CommonResponse - TaobaoCrmShopvipCancelResponse -} - -// 卖家取消店铺vip的优惠 成功返回结果 -type TaobaoCrmShopvipCancelResponse struct { - XMLName xml.Name `xml:"crm_shopvip_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回操作是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/customizemarket/TaobaoMarketPictureGetuserpicturesAPIRequest.go b/model/customizemarket/TaobaoMarketPictureGetuserpicturesAPIRequest.go new file mode 100644 index 0000000000..cb29c557ac --- /dev/null +++ b/model/customizemarket/TaobaoMarketPictureGetuserpicturesAPIRequest.go @@ -0,0 +1,52 @@ +package customizemarket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +读取用户上传图片 API请求 +taobao.market.picture.getuserpictures + +商家通过用户信息,获取用户上传的 +*/ +type TaobaoMarketPictureGetuserpicturesAPIRequest struct { + model.Params + // 订单ID + _orderId int64 +} + +// 初始化TaobaoMarketPictureGetuserpicturesAPIRequest对象 +func NewTaobaoMarketPictureGetuserpicturesRequest() *TaobaoMarketPictureGetuserpicturesAPIRequest{ + return &TaobaoMarketPictureGetuserpicturesAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMarketPictureGetuserpicturesAPIRequest) GetApiMethodName() string { + return "taobao.market.picture.getuserpictures" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMarketPictureGetuserpicturesAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单ID +func (r *TaobaoMarketPictureGetuserpicturesAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoMarketPictureGetuserpicturesAPIRequest) GetOrderId() int64 { + return r._orderId +} diff --git a/model/customizemarket/TaobaoMarketPictureGetuserpicturesAPIResponse.go b/model/customizemarket/TaobaoMarketPictureGetuserpicturesAPIResponse.go new file mode 100644 index 0000000000..d53c29e349 --- /dev/null +++ b/model/customizemarket/TaobaoMarketPictureGetuserpicturesAPIResponse.go @@ -0,0 +1,27 @@ +package customizemarket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +读取用户上传图片 API返回值 +taobao.market.picture.getuserpictures + +商家通过用户信息,获取用户上传的 +*/ +type TaobaoMarketPictureGetuserpicturesAPIResponse struct { + model.CommonResponse + TaobaoMarketPictureGetuserpicturesAPIResponseModel +} + +// 读取用户上传图片 成功返回结果 +type TaobaoMarketPictureGetuserpicturesAPIResponseModel struct { + XMLName xml.Name `xml:"market_picture_getuserpictures_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/customizemarket/TaobaoMarketPictureGetuserpicturesResponse.go b/model/customizemarket/TaobaoMarketPictureGetuserpicturesResponse.go deleted file mode 100644 index 3de8fb86d5..0000000000 --- a/model/customizemarket/TaobaoMarketPictureGetuserpicturesResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package customizemarket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -读取用户上传图片 API返回值 -taobao.market.picture.getuserpictures - -商家通过用户信息,获取用户上传的 -*/ -type TaobaoMarketPictureGetuserpicturesAPIResponse struct { - model.CommonResponse - TaobaoMarketPictureGetuserpicturesResponse -} - -// 读取用户上传图片 成功返回结果 -type TaobaoMarketPictureGetuserpicturesResponse struct { - XMLName xml.Name `xml:"market_picture_getuserpictures_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiEcSearchProjectSearchAPIRequest.go b/model/damai/AlibabaDamaiEcSearchProjectSearchAPIRequest.go new file mode 100644 index 0000000000..68346dd48a --- /dev/null +++ b/model/damai/AlibabaDamaiEcSearchProjectSearchAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦电商对外搜索服务 API请求 +alibaba.damai.ec.search.project.search + +大麦电商对外搜索服务 +*/ +type AlibabaDamaiEcSearchProjectSearchAPIRequest struct { + model.Params + // 入参对象 + _param *TopSearchProjectParam +} + +// 初始化AlibabaDamaiEcSearchProjectSearchAPIRequest对象 +func NewAlibabaDamaiEcSearchProjectSearchRequest() *AlibabaDamaiEcSearchProjectSearchAPIRequest{ + return &AlibabaDamaiEcSearchProjectSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiEcSearchProjectSearchAPIRequest) GetApiMethodName() string { + return "alibaba.damai.ec.search.project.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiEcSearchProjectSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参对象 +func (r *AlibabaDamaiEcSearchProjectSearchAPIRequest) SetParam(_param *TopSearchProjectParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaDamaiEcSearchProjectSearchAPIRequest) GetParam() *TopSearchProjectParam { + return r._param +} diff --git a/model/damai/AlibabaDamaiEcSearchProjectSearchAPIResponse.go b/model/damai/AlibabaDamaiEcSearchProjectSearchAPIResponse.go new file mode 100644 index 0000000000..5f9c308d0f --- /dev/null +++ b/model/damai/AlibabaDamaiEcSearchProjectSearchAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦电商对外搜索服务 API返回值 +alibaba.damai.ec.search.project.search + +大麦电商对外搜索服务 +*/ +type AlibabaDamaiEcSearchProjectSearchAPIResponse struct { + model.CommonResponse + AlibabaDamaiEcSearchProjectSearchAPIResponseModel +} + +// 大麦电商对外搜索服务 成功返回结果 +type AlibabaDamaiEcSearchProjectSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_ec_search_project_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *MpResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiEcSearchProjectSearchResponse.go b/model/damai/AlibabaDamaiEcSearchProjectSearchResponse.go deleted file mode 100644 index eb7af84583..0000000000 --- a/model/damai/AlibabaDamaiEcSearchProjectSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦电商对外搜索服务 API返回值 -alibaba.damai.ec.search.project.search - -大麦电商对外搜索服务 -*/ -type AlibabaDamaiEcSearchProjectSearchAPIResponse struct { - model.CommonResponse - AlibabaDamaiEcSearchProjectSearchResponse -} - -// 大麦电商对外搜索服务 成功返回结果 -type AlibabaDamaiEcSearchProjectSearchResponse struct { - XMLName xml.Name `xml:"alibaba_damai_ec_search_project_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *MpResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenBatchpushticketAPIRequest.go b/model/damai/AlibabaDamaiMevOpenBatchpushticketAPIRequest.go new file mode 100644 index 0000000000..22e4966118 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenBatchpushticketAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票单接口batchPushTicket API请求 +alibaba.damai.mev.open.batchpushticket + +批量推送票单 +*/ +type AlibabaDamaiMevOpenBatchpushticketAPIRequest struct { + model.Params + // 入参thirdTicketSetOpenParamList + _thirdTicketSetOpenParamList []ThirdTicketPushOpenParam +} + +// 初始化AlibabaDamaiMevOpenBatchpushticketAPIRequest对象 +func NewAlibabaDamaiMevOpenBatchpushticketRequest() *AlibabaDamaiMevOpenBatchpushticketAPIRequest{ + return &AlibabaDamaiMevOpenBatchpushticketAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenBatchpushticketAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.batchpushticket" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenBatchpushticketAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ThirdTicketSetOpenParamList Setter +// 入参thirdTicketSetOpenParamList +func (r *AlibabaDamaiMevOpenBatchpushticketAPIRequest) SetThirdTicketSetOpenParamList(_thirdTicketSetOpenParamList []ThirdTicketPushOpenParam) error { + r._thirdTicketSetOpenParamList = _thirdTicketSetOpenParamList + r.Set("third_ticket_set_open_param_list", _thirdTicketSetOpenParamList) + return nil +} + +// ThirdTicketSetOpenParamList Getter +func (r AlibabaDamaiMevOpenBatchpushticketAPIRequest) GetThirdTicketSetOpenParamList() []ThirdTicketPushOpenParam { + return r._thirdTicketSetOpenParamList +} diff --git a/model/damai/AlibabaDamaiMevOpenBatchpushticketAPIResponse.go b/model/damai/AlibabaDamaiMevOpenBatchpushticketAPIResponse.go new file mode 100644 index 0000000000..331d25c918 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenBatchpushticketAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票单接口batchPushTicket API返回值 +alibaba.damai.mev.open.batchpushticket + +批量推送票单 +*/ +type AlibabaDamaiMevOpenBatchpushticketAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenBatchpushticketAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-票单接口batchPushTicket 成功返回结果 +type AlibabaDamaiMevOpenBatchpushticketAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_batchpushticket_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenBatchpushticketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenBatchpushticketResponse.go b/model/damai/AlibabaDamaiMevOpenBatchpushticketResponse.go deleted file mode 100644 index a062afc01f..0000000000 --- a/model/damai/AlibabaDamaiMevOpenBatchpushticketResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-票单接口batchPushTicket API返回值 -alibaba.damai.mev.open.batchpushticket - -批量推送票单 -*/ -type AlibabaDamaiMevOpenBatchpushticketAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenBatchpushticketResponse -} - -// 大麦换验平台-第三方对外开放-票单接口batchPushTicket 成功返回结果 -type AlibabaDamaiMevOpenBatchpushticketResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_batchpushticket_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenBatchpushticketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenChangeticketAPIRequest.go b/model/damai/AlibabaDamaiMevOpenChangeticketAPIRequest.go new file mode 100644 index 0000000000..4bbe27e8ef --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenChangeticketAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票单接口changeTicket API请求 +alibaba.damai.mev.open.changeticket + +开放接口 换票 +*/ +type AlibabaDamaiMevOpenChangeticketAPIRequest struct { + model.Params + // 入参ticketIdOpenParam + _ticketIdOpenParam *TicketIdOpenParam +} + +// 初始化AlibabaDamaiMevOpenChangeticketAPIRequest对象 +func NewAlibabaDamaiMevOpenChangeticketRequest() *AlibabaDamaiMevOpenChangeticketAPIRequest{ + return &AlibabaDamaiMevOpenChangeticketAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenChangeticketAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.changeticket" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenChangeticketAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TicketIdOpenParam Setter +// 入参ticketIdOpenParam +func (r *AlibabaDamaiMevOpenChangeticketAPIRequest) SetTicketIdOpenParam(_ticketIdOpenParam *TicketIdOpenParam) error { + r._ticketIdOpenParam = _ticketIdOpenParam + r.Set("ticket_id_open_param", _ticketIdOpenParam) + return nil +} + +// TicketIdOpenParam Getter +func (r AlibabaDamaiMevOpenChangeticketAPIRequest) GetTicketIdOpenParam() *TicketIdOpenParam { + return r._ticketIdOpenParam +} diff --git a/model/damai/AlibabaDamaiMevOpenChangeticketAPIResponse.go b/model/damai/AlibabaDamaiMevOpenChangeticketAPIResponse.go new file mode 100644 index 0000000000..10db98c266 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenChangeticketAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票单接口changeTicket API返回值 +alibaba.damai.mev.open.changeticket + +开放接口 换票 +*/ +type AlibabaDamaiMevOpenChangeticketAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenChangeticketAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-票单接口changeTicket 成功返回结果 +type AlibabaDamaiMevOpenChangeticketAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_changeticket_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenChangeticketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenChangeticketResponse.go b/model/damai/AlibabaDamaiMevOpenChangeticketResponse.go deleted file mode 100644 index 906128844c..0000000000 --- a/model/damai/AlibabaDamaiMevOpenChangeticketResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-票单接口changeTicket API返回值 -alibaba.damai.mev.open.changeticket - -开放接口 换票 -*/ -type AlibabaDamaiMevOpenChangeticketAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenChangeticketResponse -} - -// 大麦换验平台-第三方对外开放-票单接口changeTicket 成功返回结果 -type AlibabaDamaiMevOpenChangeticketResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_changeticket_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenChangeticketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenDeleteFaceelementAPIRequest.go b/model/damai/AlibabaDamaiMevOpenDeleteFaceelementAPIRequest.go new file mode 100644 index 0000000000..82714d7beb --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenDeleteFaceelementAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票面元素接口deleteFaceElement API请求 +alibaba.damai.mev.open.delete.faceelement + +deleteFaceElement +*/ +type AlibabaDamaiMevOpenDeleteFaceelementAPIRequest struct { + model.Params + // 入参deleteFaceElementParam + _deleteFaceElementParam *FaceElementIdOpenParam +} + +// 初始化AlibabaDamaiMevOpenDeleteFaceelementAPIRequest对象 +func NewAlibabaDamaiMevOpenDeleteFaceelementRequest() *AlibabaDamaiMevOpenDeleteFaceelementAPIRequest{ + return &AlibabaDamaiMevOpenDeleteFaceelementAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenDeleteFaceelementAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.delete.faceelement" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenDeleteFaceelementAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeleteFaceElementParam Setter +// 入参deleteFaceElementParam +func (r *AlibabaDamaiMevOpenDeleteFaceelementAPIRequest) SetDeleteFaceElementParam(_deleteFaceElementParam *FaceElementIdOpenParam) error { + r._deleteFaceElementParam = _deleteFaceElementParam + r.Set("delete_face_element_param", _deleteFaceElementParam) + return nil +} + +// DeleteFaceElementParam Getter +func (r AlibabaDamaiMevOpenDeleteFaceelementAPIRequest) GetDeleteFaceElementParam() *FaceElementIdOpenParam { + return r._deleteFaceElementParam +} diff --git a/model/damai/AlibabaDamaiMevOpenDeleteFaceelementAPIResponse.go b/model/damai/AlibabaDamaiMevOpenDeleteFaceelementAPIResponse.go new file mode 100644 index 0000000000..bcea86d936 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenDeleteFaceelementAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票面元素接口deleteFaceElement API返回值 +alibaba.damai.mev.open.delete.faceelement + +deleteFaceElement +*/ +type AlibabaDamaiMevOpenDeleteFaceelementAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenDeleteFaceelementAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-票面元素接口deleteFaceElement 成功返回结果 +type AlibabaDamaiMevOpenDeleteFaceelementAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_delete_faceelement_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenDeleteFaceelementResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenDeleteFaceelementResponse.go b/model/damai/AlibabaDamaiMevOpenDeleteFaceelementResponse.go deleted file mode 100644 index 072870af90..0000000000 --- a/model/damai/AlibabaDamaiMevOpenDeleteFaceelementResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-票面元素接口deleteFaceElement API返回值 -alibaba.damai.mev.open.delete.faceelement - -deleteFaceElement -*/ -type AlibabaDamaiMevOpenDeleteFaceelementAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenDeleteFaceelementResponse -} - -// 大麦换验平台-第三方对外开放-票面元素接口deleteFaceElement 成功返回结果 -type AlibabaDamaiMevOpenDeleteFaceelementResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_delete_faceelement_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenDeleteFaceelementResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenDeletePaperformatAPIRequest.go b/model/damai/AlibabaDamaiMevOpenDeletePaperformatAPIRequest.go new file mode 100644 index 0000000000..ca97cfe092 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenDeletePaperformatAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票纸版式接口deletePaperFormat API请求 +alibaba.damai.mev.open.delete.paperformat + +deletePaperFormat +*/ +type AlibabaDamaiMevOpenDeletePaperformatAPIRequest struct { + model.Params + // 入参deletePaperFormatParam + _deletePaperFormatParam *TicketPaperFormatIdOpenParam +} + +// 初始化AlibabaDamaiMevOpenDeletePaperformatAPIRequest对象 +func NewAlibabaDamaiMevOpenDeletePaperformatRequest() *AlibabaDamaiMevOpenDeletePaperformatAPIRequest{ + return &AlibabaDamaiMevOpenDeletePaperformatAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenDeletePaperformatAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.delete.paperformat" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenDeletePaperformatAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeletePaperFormatParam Setter +// 入参deletePaperFormatParam +func (r *AlibabaDamaiMevOpenDeletePaperformatAPIRequest) SetDeletePaperFormatParam(_deletePaperFormatParam *TicketPaperFormatIdOpenParam) error { + r._deletePaperFormatParam = _deletePaperFormatParam + r.Set("delete_paper_format_param", _deletePaperFormatParam) + return nil +} + +// DeletePaperFormatParam Getter +func (r AlibabaDamaiMevOpenDeletePaperformatAPIRequest) GetDeletePaperFormatParam() *TicketPaperFormatIdOpenParam { + return r._deletePaperFormatParam +} diff --git a/model/damai/AlibabaDamaiMevOpenDeletePaperformatAPIResponse.go b/model/damai/AlibabaDamaiMevOpenDeletePaperformatAPIResponse.go new file mode 100644 index 0000000000..d239c98593 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenDeletePaperformatAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票纸版式接口deletePaperFormat API返回值 +alibaba.damai.mev.open.delete.paperformat + +deletePaperFormat +*/ +type AlibabaDamaiMevOpenDeletePaperformatAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenDeletePaperformatAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-票纸版式接口deletePaperFormat 成功返回结果 +type AlibabaDamaiMevOpenDeletePaperformatAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_delete_paperformat_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenDeletePaperformatResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenDeletePaperformatResponse.go b/model/damai/AlibabaDamaiMevOpenDeletePaperformatResponse.go deleted file mode 100644 index b822386338..0000000000 --- a/model/damai/AlibabaDamaiMevOpenDeletePaperformatResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-票纸版式接口deletePaperFormat API返回值 -alibaba.damai.mev.open.delete.paperformat - -deletePaperFormat -*/ -type AlibabaDamaiMevOpenDeletePaperformatAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenDeletePaperformatResponse -} - -// 大麦换验平台-第三方对外开放-票纸版式接口deletePaperFormat 成功返回结果 -type AlibabaDamaiMevOpenDeletePaperformatResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_delete_paperformat_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenDeletePaperformatResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenDeletefaceAPIRequest.go b/model/damai/AlibabaDamaiMevOpenDeletefaceAPIRequest.go new file mode 100644 index 0000000000..c8dc82f009 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenDeletefaceAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票面接口deleteFace API请求 +alibaba.damai.mev.open.deleteface + +deleteFace +*/ +type AlibabaDamaiMevOpenDeletefaceAPIRequest struct { + model.Params + // 入参deleteFaceParam + _deleteFaceParam *TicketFaceIdOpenParam +} + +// 初始化AlibabaDamaiMevOpenDeletefaceAPIRequest对象 +func NewAlibabaDamaiMevOpenDeletefaceRequest() *AlibabaDamaiMevOpenDeletefaceAPIRequest{ + return &AlibabaDamaiMevOpenDeletefaceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenDeletefaceAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.deleteface" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenDeletefaceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeleteFaceParam Setter +// 入参deleteFaceParam +func (r *AlibabaDamaiMevOpenDeletefaceAPIRequest) SetDeleteFaceParam(_deleteFaceParam *TicketFaceIdOpenParam) error { + r._deleteFaceParam = _deleteFaceParam + r.Set("delete_face_param", _deleteFaceParam) + return nil +} + +// DeleteFaceParam Getter +func (r AlibabaDamaiMevOpenDeletefaceAPIRequest) GetDeleteFaceParam() *TicketFaceIdOpenParam { + return r._deleteFaceParam +} diff --git a/model/damai/AlibabaDamaiMevOpenDeletefaceAPIResponse.go b/model/damai/AlibabaDamaiMevOpenDeletefaceAPIResponse.go new file mode 100644 index 0000000000..e6dbdf874b --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenDeletefaceAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票面接口deleteFace API返回值 +alibaba.damai.mev.open.deleteface + +deleteFace +*/ +type AlibabaDamaiMevOpenDeletefaceAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenDeletefaceAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-票面接口deleteFace 成功返回结果 +type AlibabaDamaiMevOpenDeletefaceAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_deleteface_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenDeletefaceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenDeletefaceResponse.go b/model/damai/AlibabaDamaiMevOpenDeletefaceResponse.go deleted file mode 100644 index d1e1c37526..0000000000 --- a/model/damai/AlibabaDamaiMevOpenDeletefaceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-票面接口deleteFace API返回值 -alibaba.damai.mev.open.deleteface - -deleteFace -*/ -type AlibabaDamaiMevOpenDeletefaceAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenDeletefaceResponse -} - -// 大麦换验平台-第三方对外开放-票面接口deleteFace 成功返回结果 -type AlibabaDamaiMevOpenDeletefaceResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_deleteface_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenDeletefaceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenDeletefloorAPIRequest.go b/model/damai/AlibabaDamaiMevOpenDeletefloorAPIRequest.go new file mode 100644 index 0000000000..dd8b54bfcd --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenDeletefloorAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-楼层接口deleteFloor API请求 +alibaba.damai.mev.open.deletefloor + +deleteFloor +*/ +type AlibabaDamaiMevOpenDeletefloorAPIRequest struct { + model.Params + // 入参deleteFloorParam + _deleteFloorParam *FloorIdOpenParam +} + +// 初始化AlibabaDamaiMevOpenDeletefloorAPIRequest对象 +func NewAlibabaDamaiMevOpenDeletefloorRequest() *AlibabaDamaiMevOpenDeletefloorAPIRequest{ + return &AlibabaDamaiMevOpenDeletefloorAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenDeletefloorAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.deletefloor" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenDeletefloorAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeleteFloorParam Setter +// 入参deleteFloorParam +func (r *AlibabaDamaiMevOpenDeletefloorAPIRequest) SetDeleteFloorParam(_deleteFloorParam *FloorIdOpenParam) error { + r._deleteFloorParam = _deleteFloorParam + r.Set("delete_floor_param", _deleteFloorParam) + return nil +} + +// DeleteFloorParam Getter +func (r AlibabaDamaiMevOpenDeletefloorAPIRequest) GetDeleteFloorParam() *FloorIdOpenParam { + return r._deleteFloorParam +} diff --git a/model/damai/AlibabaDamaiMevOpenDeletefloorAPIResponse.go b/model/damai/AlibabaDamaiMevOpenDeletefloorAPIResponse.go new file mode 100644 index 0000000000..83f6a3c6dc --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenDeletefloorAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-楼层接口deleteFloor API返回值 +alibaba.damai.mev.open.deletefloor + +deleteFloor +*/ +type AlibabaDamaiMevOpenDeletefloorAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenDeletefloorAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-楼层接口deleteFloor 成功返回结果 +type AlibabaDamaiMevOpenDeletefloorAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_deletefloor_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenDeletefloorResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenDeletefloorResponse.go b/model/damai/AlibabaDamaiMevOpenDeletefloorResponse.go deleted file mode 100644 index aa14077005..0000000000 --- a/model/damai/AlibabaDamaiMevOpenDeletefloorResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-楼层接口deleteFloor API返回值 -alibaba.damai.mev.open.deletefloor - -deleteFloor -*/ -type AlibabaDamaiMevOpenDeletefloorAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenDeletefloorResponse -} - -// 大麦换验平台-第三方对外开放-楼层接口deleteFloor 成功返回结果 -type AlibabaDamaiMevOpenDeletefloorResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_deletefloor_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenDeletefloorResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenDeleteitemAPIRequest.go b/model/damai/AlibabaDamaiMevOpenDeleteitemAPIRequest.go new file mode 100644 index 0000000000..ecebbbc102 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenDeleteitemAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票品接口deleteItem API请求 +alibaba.damai.mev.open.deleteitem + +deleteItem +*/ +type AlibabaDamaiMevOpenDeleteitemAPIRequest struct { + model.Params + // 入参deleteItemParam + _deleteItemParam *TicketItemIdOpenParam +} + +// 初始化AlibabaDamaiMevOpenDeleteitemAPIRequest对象 +func NewAlibabaDamaiMevOpenDeleteitemRequest() *AlibabaDamaiMevOpenDeleteitemAPIRequest{ + return &AlibabaDamaiMevOpenDeleteitemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenDeleteitemAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.deleteitem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenDeleteitemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeleteItemParam Setter +// 入参deleteItemParam +func (r *AlibabaDamaiMevOpenDeleteitemAPIRequest) SetDeleteItemParam(_deleteItemParam *TicketItemIdOpenParam) error { + r._deleteItemParam = _deleteItemParam + r.Set("delete_item_param", _deleteItemParam) + return nil +} + +// DeleteItemParam Getter +func (r AlibabaDamaiMevOpenDeleteitemAPIRequest) GetDeleteItemParam() *TicketItemIdOpenParam { + return r._deleteItemParam +} diff --git a/model/damai/AlibabaDamaiMevOpenDeleteitemAPIResponse.go b/model/damai/AlibabaDamaiMevOpenDeleteitemAPIResponse.go new file mode 100644 index 0000000000..2ec726489d --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenDeleteitemAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票品接口deleteItem API返回值 +alibaba.damai.mev.open.deleteitem + +deleteItem +*/ +type AlibabaDamaiMevOpenDeleteitemAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenDeleteitemAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-票品接口deleteItem 成功返回结果 +type AlibabaDamaiMevOpenDeleteitemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_deleteitem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenDeleteitemResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenDeleteitemResponse.go b/model/damai/AlibabaDamaiMevOpenDeleteitemResponse.go deleted file mode 100644 index 7c648de786..0000000000 --- a/model/damai/AlibabaDamaiMevOpenDeleteitemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-票品接口deleteItem API返回值 -alibaba.damai.mev.open.deleteitem - -deleteItem -*/ -type AlibabaDamaiMevOpenDeleteitemAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenDeleteitemResponse -} - -// 大麦换验平台-第三方对外开放-票品接口deleteItem 成功返回结果 -type AlibabaDamaiMevOpenDeleteitemResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_deleteitem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenDeleteitemResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenDeleteperformAPIRequest.go b/model/damai/AlibabaDamaiMevOpenDeleteperformAPIRequest.go new file mode 100644 index 0000000000..d5489ccb10 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenDeleteperformAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-场次接口deletePerform API请求 +alibaba.damai.mev.open.deleteperform + +deletePerform +*/ +type AlibabaDamaiMevOpenDeleteperformAPIRequest struct { + model.Params + // 入参deletePerformParam + _deletePerformParam *PerformIdOpenParam +} + +// 初始化AlibabaDamaiMevOpenDeleteperformAPIRequest对象 +func NewAlibabaDamaiMevOpenDeleteperformRequest() *AlibabaDamaiMevOpenDeleteperformAPIRequest{ + return &AlibabaDamaiMevOpenDeleteperformAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenDeleteperformAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.deleteperform" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenDeleteperformAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeletePerformParam Setter +// 入参deletePerformParam +func (r *AlibabaDamaiMevOpenDeleteperformAPIRequest) SetDeletePerformParam(_deletePerformParam *PerformIdOpenParam) error { + r._deletePerformParam = _deletePerformParam + r.Set("delete_perform_param", _deletePerformParam) + return nil +} + +// DeletePerformParam Getter +func (r AlibabaDamaiMevOpenDeleteperformAPIRequest) GetDeletePerformParam() *PerformIdOpenParam { + return r._deletePerformParam +} diff --git a/model/damai/AlibabaDamaiMevOpenDeleteperformAPIResponse.go b/model/damai/AlibabaDamaiMevOpenDeleteperformAPIResponse.go new file mode 100644 index 0000000000..8ed45845b7 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenDeleteperformAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-场次接口deletePerform API返回值 +alibaba.damai.mev.open.deleteperform + +deletePerform +*/ +type AlibabaDamaiMevOpenDeleteperformAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenDeleteperformAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-场次接口deletePerform 成功返回结果 +type AlibabaDamaiMevOpenDeleteperformAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_deleteperform_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenDeleteperformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenDeleteperformResponse.go b/model/damai/AlibabaDamaiMevOpenDeleteperformResponse.go deleted file mode 100644 index 0532e69ee2..0000000000 --- a/model/damai/AlibabaDamaiMevOpenDeleteperformResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-场次接口deletePerform API返回值 -alibaba.damai.mev.open.deleteperform - -deletePerform -*/ -type AlibabaDamaiMevOpenDeleteperformAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenDeleteperformResponse -} - -// 大麦换验平台-第三方对外开放-场次接口deletePerform 成功返回结果 -type AlibabaDamaiMevOpenDeleteperformResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_deleteperform_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenDeleteperformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenDeleteprojectAPIRequest.go b/model/damai/AlibabaDamaiMevOpenDeleteprojectAPIRequest.go new file mode 100644 index 0000000000..a9c2ccccdc --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenDeleteprojectAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-项目接口deleteProject API请求 +alibaba.damai.mev.open.deleteproject + +deleteProject +*/ +type AlibabaDamaiMevOpenDeleteprojectAPIRequest struct { + model.Params + // 入参deleteProjectParam + _deleteProjectParam *ProjectIdOpenParam +} + +// 初始化AlibabaDamaiMevOpenDeleteprojectAPIRequest对象 +func NewAlibabaDamaiMevOpenDeleteprojectRequest() *AlibabaDamaiMevOpenDeleteprojectAPIRequest{ + return &AlibabaDamaiMevOpenDeleteprojectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenDeleteprojectAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.deleteproject" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenDeleteprojectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeleteProjectParam Setter +// 入参deleteProjectParam +func (r *AlibabaDamaiMevOpenDeleteprojectAPIRequest) SetDeleteProjectParam(_deleteProjectParam *ProjectIdOpenParam) error { + r._deleteProjectParam = _deleteProjectParam + r.Set("delete_project_param", _deleteProjectParam) + return nil +} + +// DeleteProjectParam Getter +func (r AlibabaDamaiMevOpenDeleteprojectAPIRequest) GetDeleteProjectParam() *ProjectIdOpenParam { + return r._deleteProjectParam +} diff --git a/model/damai/AlibabaDamaiMevOpenDeleteprojectAPIResponse.go b/model/damai/AlibabaDamaiMevOpenDeleteprojectAPIResponse.go new file mode 100644 index 0000000000..7c8a597dce --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenDeleteprojectAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-项目接口deleteProject API返回值 +alibaba.damai.mev.open.deleteproject + +deleteProject +*/ +type AlibabaDamaiMevOpenDeleteprojectAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenDeleteprojectAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-项目接口deleteProject 成功返回结果 +type AlibabaDamaiMevOpenDeleteprojectAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_deleteproject_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenDeleteprojectResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenDeleteprojectResponse.go b/model/damai/AlibabaDamaiMevOpenDeleteprojectResponse.go deleted file mode 100644 index 5975c542f1..0000000000 --- a/model/damai/AlibabaDamaiMevOpenDeleteprojectResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-项目接口deleteProject API返回值 -alibaba.damai.mev.open.deleteproject - -deleteProject -*/ -type AlibabaDamaiMevOpenDeleteprojectAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenDeleteprojectResponse -} - -// 大麦换验平台-第三方对外开放-项目接口deleteProject 成功返回结果 -type AlibabaDamaiMevOpenDeleteprojectResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_deleteproject_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenDeleteprojectResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenDeletestandAPIRequest.go b/model/damai/AlibabaDamaiMevOpenDeletestandAPIRequest.go new file mode 100644 index 0000000000..8451a5dd95 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenDeletestandAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-看台接口deleteStand API请求 +alibaba.damai.mev.open.deletestand + +deleteStand +*/ +type AlibabaDamaiMevOpenDeletestandAPIRequest struct { + model.Params + // 入参deleteStandParam + _deleteStandParam *StandIdOpenParam +} + +// 初始化AlibabaDamaiMevOpenDeletestandAPIRequest对象 +func NewAlibabaDamaiMevOpenDeletestandRequest() *AlibabaDamaiMevOpenDeletestandAPIRequest{ + return &AlibabaDamaiMevOpenDeletestandAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenDeletestandAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.deletestand" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenDeletestandAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeleteStandParam Setter +// 入参deleteStandParam +func (r *AlibabaDamaiMevOpenDeletestandAPIRequest) SetDeleteStandParam(_deleteStandParam *StandIdOpenParam) error { + r._deleteStandParam = _deleteStandParam + r.Set("delete_stand_param", _deleteStandParam) + return nil +} + +// DeleteStandParam Getter +func (r AlibabaDamaiMevOpenDeletestandAPIRequest) GetDeleteStandParam() *StandIdOpenParam { + return r._deleteStandParam +} diff --git a/model/damai/AlibabaDamaiMevOpenDeletestandAPIResponse.go b/model/damai/AlibabaDamaiMevOpenDeletestandAPIResponse.go new file mode 100644 index 0000000000..ee4fa24773 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenDeletestandAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-看台接口deleteStand API返回值 +alibaba.damai.mev.open.deletestand + +deleteStand +*/ +type AlibabaDamaiMevOpenDeletestandAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenDeletestandAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-看台接口deleteStand 成功返回结果 +type AlibabaDamaiMevOpenDeletestandAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_deletestand_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenDeletestandResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenDeletestandResponse.go b/model/damai/AlibabaDamaiMevOpenDeletestandResponse.go deleted file mode 100644 index 5980cd2a2f..0000000000 --- a/model/damai/AlibabaDamaiMevOpenDeletestandResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-看台接口deleteStand API返回值 -alibaba.damai.mev.open.deletestand - -deleteStand -*/ -type AlibabaDamaiMevOpenDeletestandAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenDeletestandResponse -} - -// 大麦换验平台-第三方对外开放-看台接口deleteStand 成功返回结果 -type AlibabaDamaiMevOpenDeletestandResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_deletestand_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenDeletestandResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenDeletevenueAPIRequest.go b/model/damai/AlibabaDamaiMevOpenDeletevenueAPIRequest.go new file mode 100644 index 0000000000..b3ff6c5b66 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenDeletevenueAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-场馆接口deleteVenue API请求 +alibaba.damai.mev.open.deletevenue + +开放接口,删除场馆 +*/ +type AlibabaDamaiMevOpenDeletevenueAPIRequest struct { + model.Params + // 入参deleteVenueParam + _deleteVenueParam *VenueIdOpenParam +} + +// 初始化AlibabaDamaiMevOpenDeletevenueAPIRequest对象 +func NewAlibabaDamaiMevOpenDeletevenueRequest() *AlibabaDamaiMevOpenDeletevenueAPIRequest{ + return &AlibabaDamaiMevOpenDeletevenueAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenDeletevenueAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.deletevenue" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenDeletevenueAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeleteVenueParam Setter +// 入参deleteVenueParam +func (r *AlibabaDamaiMevOpenDeletevenueAPIRequest) SetDeleteVenueParam(_deleteVenueParam *VenueIdOpenParam) error { + r._deleteVenueParam = _deleteVenueParam + r.Set("delete_venue_param", _deleteVenueParam) + return nil +} + +// DeleteVenueParam Getter +func (r AlibabaDamaiMevOpenDeletevenueAPIRequest) GetDeleteVenueParam() *VenueIdOpenParam { + return r._deleteVenueParam +} diff --git a/model/damai/AlibabaDamaiMevOpenDeletevenueAPIResponse.go b/model/damai/AlibabaDamaiMevOpenDeletevenueAPIResponse.go new file mode 100644 index 0000000000..0cbb19a366 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenDeletevenueAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-场馆接口deleteVenue API返回值 +alibaba.damai.mev.open.deletevenue + +开放接口,删除场馆 +*/ +type AlibabaDamaiMevOpenDeletevenueAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenDeletevenueAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-场馆接口deleteVenue 成功返回结果 +type AlibabaDamaiMevOpenDeletevenueAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_deletevenue_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenDeletevenueResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenDeletevenueResponse.go b/model/damai/AlibabaDamaiMevOpenDeletevenueResponse.go deleted file mode 100644 index 3f8849794a..0000000000 --- a/model/damai/AlibabaDamaiMevOpenDeletevenueResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-场馆接口deleteVenue API返回值 -alibaba.damai.mev.open.deletevenue - -开放接口,删除场馆 -*/ -type AlibabaDamaiMevOpenDeletevenueAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenDeletevenueResponse -} - -// 大麦换验平台-第三方对外开放-场馆接口deleteVenue 成功返回结果 -type AlibabaDamaiMevOpenDeletevenueResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_deletevenue_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenDeletevenueResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenInvalidticketAPIRequest.go b/model/damai/AlibabaDamaiMevOpenInvalidticketAPIRequest.go new file mode 100644 index 0000000000..8010ef3261 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenInvalidticketAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票单接口invalidTicket API请求 +alibaba.damai.mev.open.invalidticket + +开放接口 使票无效 +*/ +type AlibabaDamaiMevOpenInvalidticketAPIRequest struct { + model.Params + // 入参ticketIdOpenParam + _ticketIdOpenParam *TicketIdOpenParam +} + +// 初始化AlibabaDamaiMevOpenInvalidticketAPIRequest对象 +func NewAlibabaDamaiMevOpenInvalidticketRequest() *AlibabaDamaiMevOpenInvalidticketAPIRequest{ + return &AlibabaDamaiMevOpenInvalidticketAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenInvalidticketAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.invalidticket" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenInvalidticketAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TicketIdOpenParam Setter +// 入参ticketIdOpenParam +func (r *AlibabaDamaiMevOpenInvalidticketAPIRequest) SetTicketIdOpenParam(_ticketIdOpenParam *TicketIdOpenParam) error { + r._ticketIdOpenParam = _ticketIdOpenParam + r.Set("ticket_id_open_param", _ticketIdOpenParam) + return nil +} + +// TicketIdOpenParam Getter +func (r AlibabaDamaiMevOpenInvalidticketAPIRequest) GetTicketIdOpenParam() *TicketIdOpenParam { + return r._ticketIdOpenParam +} diff --git a/model/damai/AlibabaDamaiMevOpenInvalidticketAPIResponse.go b/model/damai/AlibabaDamaiMevOpenInvalidticketAPIResponse.go new file mode 100644 index 0000000000..094a22ef6b --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenInvalidticketAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票单接口invalidTicket API返回值 +alibaba.damai.mev.open.invalidticket + +开放接口 使票无效 +*/ +type AlibabaDamaiMevOpenInvalidticketAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenInvalidticketAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-票单接口invalidTicket 成功返回结果 +type AlibabaDamaiMevOpenInvalidticketAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_invalidticket_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenInvalidticketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenInvalidticketResponse.go b/model/damai/AlibabaDamaiMevOpenInvalidticketResponse.go deleted file mode 100644 index ffdf6df0e8..0000000000 --- a/model/damai/AlibabaDamaiMevOpenInvalidticketResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-票单接口invalidTicket API返回值 -alibaba.damai.mev.open.invalidticket - -开放接口 使票无效 -*/ -type AlibabaDamaiMevOpenInvalidticketAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenInvalidticketResponse -} - -// 大麦换验平台-第三方对外开放-票单接口invalidTicket 成功返回结果 -type AlibabaDamaiMevOpenInvalidticketResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_invalidticket_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenInvalidticketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenLockticketAPIRequest.go b/model/damai/AlibabaDamaiMevOpenLockticketAPIRequest.go new file mode 100644 index 0000000000..561f62961b --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenLockticketAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票单接口lockTicket API请求 +alibaba.damai.mev.open.lockticket + +开放接口 冻结票单 +*/ +type AlibabaDamaiMevOpenLockticketAPIRequest struct { + model.Params + // 入参ticketIdOpenParam + _ticketIdOpenParam *TicketIdOpenParam +} + +// 初始化AlibabaDamaiMevOpenLockticketAPIRequest对象 +func NewAlibabaDamaiMevOpenLockticketRequest() *AlibabaDamaiMevOpenLockticketAPIRequest{ + return &AlibabaDamaiMevOpenLockticketAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenLockticketAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.lockticket" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenLockticketAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TicketIdOpenParam Setter +// 入参ticketIdOpenParam +func (r *AlibabaDamaiMevOpenLockticketAPIRequest) SetTicketIdOpenParam(_ticketIdOpenParam *TicketIdOpenParam) error { + r._ticketIdOpenParam = _ticketIdOpenParam + r.Set("ticket_id_open_param", _ticketIdOpenParam) + return nil +} + +// TicketIdOpenParam Getter +func (r AlibabaDamaiMevOpenLockticketAPIRequest) GetTicketIdOpenParam() *TicketIdOpenParam { + return r._ticketIdOpenParam +} diff --git a/model/damai/AlibabaDamaiMevOpenLockticketAPIResponse.go b/model/damai/AlibabaDamaiMevOpenLockticketAPIResponse.go new file mode 100644 index 0000000000..005ec33698 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenLockticketAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票单接口lockTicket API返回值 +alibaba.damai.mev.open.lockticket + +开放接口 冻结票单 +*/ +type AlibabaDamaiMevOpenLockticketAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenLockticketAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-票单接口lockTicket 成功返回结果 +type AlibabaDamaiMevOpenLockticketAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_lockticket_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenLockticketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenLockticketResponse.go b/model/damai/AlibabaDamaiMevOpenLockticketResponse.go deleted file mode 100644 index 6771652b63..0000000000 --- a/model/damai/AlibabaDamaiMevOpenLockticketResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-票单接口lockTicket API返回值 -alibaba.damai.mev.open.lockticket - -开放接口 冻结票单 -*/ -type AlibabaDamaiMevOpenLockticketAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenLockticketResponse -} - -// 大麦换验平台-第三方对外开放-票单接口lockTicket 成功返回结果 -type AlibabaDamaiMevOpenLockticketResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_lockticket_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenLockticketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenPushPaperformatAPIRequest.go b/model/damai/AlibabaDamaiMevOpenPushPaperformatAPIRequest.go new file mode 100644 index 0000000000..3e5c145a2e --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenPushPaperformatAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票纸版式接口pushPaperFormat API请求 +alibaba.damai.mev.open.push.paperformat + +pushPaperFormat +*/ +type AlibabaDamaiMevOpenPushPaperformatAPIRequest struct { + model.Params + // 入参pushPaperFormatParam + _pushPaperFormatParam *ThirdPaperFormatPushOpenParam +} + +// 初始化AlibabaDamaiMevOpenPushPaperformatAPIRequest对象 +func NewAlibabaDamaiMevOpenPushPaperformatRequest() *AlibabaDamaiMevOpenPushPaperformatAPIRequest{ + return &AlibabaDamaiMevOpenPushPaperformatAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenPushPaperformatAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.push.paperformat" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenPushPaperformatAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PushPaperFormatParam Setter +// 入参pushPaperFormatParam +func (r *AlibabaDamaiMevOpenPushPaperformatAPIRequest) SetPushPaperFormatParam(_pushPaperFormatParam *ThirdPaperFormatPushOpenParam) error { + r._pushPaperFormatParam = _pushPaperFormatParam + r.Set("push_paper_format_param", _pushPaperFormatParam) + return nil +} + +// PushPaperFormatParam Getter +func (r AlibabaDamaiMevOpenPushPaperformatAPIRequest) GetPushPaperFormatParam() *ThirdPaperFormatPushOpenParam { + return r._pushPaperFormatParam +} diff --git a/model/damai/AlibabaDamaiMevOpenPushPaperformatAPIResponse.go b/model/damai/AlibabaDamaiMevOpenPushPaperformatAPIResponse.go new file mode 100644 index 0000000000..d2bcc934bc --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenPushPaperformatAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票纸版式接口pushPaperFormat API返回值 +alibaba.damai.mev.open.push.paperformat + +pushPaperFormat +*/ +type AlibabaDamaiMevOpenPushPaperformatAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenPushPaperformatAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-票纸版式接口pushPaperFormat 成功返回结果 +type AlibabaDamaiMevOpenPushPaperformatAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_push_paperformat_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenPushPaperformatResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenPushPaperformatResponse.go b/model/damai/AlibabaDamaiMevOpenPushPaperformatResponse.go deleted file mode 100644 index 650b100433..0000000000 --- a/model/damai/AlibabaDamaiMevOpenPushPaperformatResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-票纸版式接口pushPaperFormat API返回值 -alibaba.damai.mev.open.push.paperformat - -pushPaperFormat -*/ -type AlibabaDamaiMevOpenPushPaperformatAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenPushPaperformatResponse -} - -// 大麦换验平台-第三方对外开放-票纸版式接口pushPaperFormat 成功返回结果 -type AlibabaDamaiMevOpenPushPaperformatResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_push_paperformat_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenPushPaperformatResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenPushfaceAPIRequest.go b/model/damai/AlibabaDamaiMevOpenPushfaceAPIRequest.go new file mode 100644 index 0000000000..e79a3d8673 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenPushfaceAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票面接口pushFace API请求 +alibaba.damai.mev.open.pushface + +pushFace +*/ +type AlibabaDamaiMevOpenPushfaceAPIRequest struct { + model.Params + // 入参pushFaceParam + _pushFaceParam *ThirdTicketFacePushOpenParam +} + +// 初始化AlibabaDamaiMevOpenPushfaceAPIRequest对象 +func NewAlibabaDamaiMevOpenPushfaceRequest() *AlibabaDamaiMevOpenPushfaceAPIRequest{ + return &AlibabaDamaiMevOpenPushfaceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenPushfaceAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.pushface" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenPushfaceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PushFaceParam Setter +// 入参pushFaceParam +func (r *AlibabaDamaiMevOpenPushfaceAPIRequest) SetPushFaceParam(_pushFaceParam *ThirdTicketFacePushOpenParam) error { + r._pushFaceParam = _pushFaceParam + r.Set("push_face_param", _pushFaceParam) + return nil +} + +// PushFaceParam Getter +func (r AlibabaDamaiMevOpenPushfaceAPIRequest) GetPushFaceParam() *ThirdTicketFacePushOpenParam { + return r._pushFaceParam +} diff --git a/model/damai/AlibabaDamaiMevOpenPushfaceAPIResponse.go b/model/damai/AlibabaDamaiMevOpenPushfaceAPIResponse.go new file mode 100644 index 0000000000..f601448bbf --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenPushfaceAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票面接口pushFace API返回值 +alibaba.damai.mev.open.pushface + +pushFace +*/ +type AlibabaDamaiMevOpenPushfaceAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenPushfaceAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-票面接口pushFace 成功返回结果 +type AlibabaDamaiMevOpenPushfaceAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_pushface_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenPushfaceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenPushfaceResponse.go b/model/damai/AlibabaDamaiMevOpenPushfaceResponse.go deleted file mode 100644 index f470dae265..0000000000 --- a/model/damai/AlibabaDamaiMevOpenPushfaceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-票面接口pushFace API返回值 -alibaba.damai.mev.open.pushface - -pushFace -*/ -type AlibabaDamaiMevOpenPushfaceAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenPushfaceResponse -} - -// 大麦换验平台-第三方对外开放-票面接口pushFace 成功返回结果 -type AlibabaDamaiMevOpenPushfaceResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_pushface_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenPushfaceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenPushfaceelementAPIRequest.go b/model/damai/AlibabaDamaiMevOpenPushfaceelementAPIRequest.go new file mode 100644 index 0000000000..11e91af8fc --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenPushfaceelementAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票面元素接口pushFaceElement API请求 +alibaba.damai.mev.open.pushfaceelement + +pushFaceElement +*/ +type AlibabaDamaiMevOpenPushfaceelementAPIRequest struct { + model.Params + // 入参pushFaceElementParamList + _pushFaceElementParamList []ThirdFaceElementPushOpenParam +} + +// 初始化AlibabaDamaiMevOpenPushfaceelementAPIRequest对象 +func NewAlibabaDamaiMevOpenPushfaceelementRequest() *AlibabaDamaiMevOpenPushfaceelementAPIRequest{ + return &AlibabaDamaiMevOpenPushfaceelementAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenPushfaceelementAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.pushfaceelement" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenPushfaceelementAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PushFaceElementParamList Setter +// 入参pushFaceElementParamList +func (r *AlibabaDamaiMevOpenPushfaceelementAPIRequest) SetPushFaceElementParamList(_pushFaceElementParamList []ThirdFaceElementPushOpenParam) error { + r._pushFaceElementParamList = _pushFaceElementParamList + r.Set("push_face_element_param_list", _pushFaceElementParamList) + return nil +} + +// PushFaceElementParamList Getter +func (r AlibabaDamaiMevOpenPushfaceelementAPIRequest) GetPushFaceElementParamList() []ThirdFaceElementPushOpenParam { + return r._pushFaceElementParamList +} diff --git a/model/damai/AlibabaDamaiMevOpenPushfaceelementAPIResponse.go b/model/damai/AlibabaDamaiMevOpenPushfaceelementAPIResponse.go new file mode 100644 index 0000000000..895bba9b51 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenPushfaceelementAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票面元素接口pushFaceElement API返回值 +alibaba.damai.mev.open.pushfaceelement + +pushFaceElement +*/ +type AlibabaDamaiMevOpenPushfaceelementAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenPushfaceelementAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-票面元素接口pushFaceElement 成功返回结果 +type AlibabaDamaiMevOpenPushfaceelementAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_pushfaceelement_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenPushfaceelementResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenPushfaceelementResponse.go b/model/damai/AlibabaDamaiMevOpenPushfaceelementResponse.go deleted file mode 100644 index a88f114544..0000000000 --- a/model/damai/AlibabaDamaiMevOpenPushfaceelementResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-票面元素接口pushFaceElement API返回值 -alibaba.damai.mev.open.pushfaceelement - -pushFaceElement -*/ -type AlibabaDamaiMevOpenPushfaceelementAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenPushfaceelementResponse -} - -// 大麦换验平台-第三方对外开放-票面元素接口pushFaceElement 成功返回结果 -type AlibabaDamaiMevOpenPushfaceelementResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_pushfaceelement_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenPushfaceelementResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenPushfloorAPIRequest.go b/model/damai/AlibabaDamaiMevOpenPushfloorAPIRequest.go new file mode 100644 index 0000000000..b5e581279c --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenPushfloorAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-楼层接口pushFloor API请求 +alibaba.damai.mev.open.pushfloor + +pushFloor +*/ +type AlibabaDamaiMevOpenPushfloorAPIRequest struct { + model.Params + // 入参pushFloorParam + _pushFloorParam *ThirdFloorPushOpenParam +} + +// 初始化AlibabaDamaiMevOpenPushfloorAPIRequest对象 +func NewAlibabaDamaiMevOpenPushfloorRequest() *AlibabaDamaiMevOpenPushfloorAPIRequest{ + return &AlibabaDamaiMevOpenPushfloorAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenPushfloorAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.pushfloor" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenPushfloorAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PushFloorParam Setter +// 入参pushFloorParam +func (r *AlibabaDamaiMevOpenPushfloorAPIRequest) SetPushFloorParam(_pushFloorParam *ThirdFloorPushOpenParam) error { + r._pushFloorParam = _pushFloorParam + r.Set("push_floor_param", _pushFloorParam) + return nil +} + +// PushFloorParam Getter +func (r AlibabaDamaiMevOpenPushfloorAPIRequest) GetPushFloorParam() *ThirdFloorPushOpenParam { + return r._pushFloorParam +} diff --git a/model/damai/AlibabaDamaiMevOpenPushfloorAPIResponse.go b/model/damai/AlibabaDamaiMevOpenPushfloorAPIResponse.go new file mode 100644 index 0000000000..e714442fce --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenPushfloorAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-楼层接口pushFloor API返回值 +alibaba.damai.mev.open.pushfloor + +pushFloor +*/ +type AlibabaDamaiMevOpenPushfloorAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenPushfloorAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-楼层接口pushFloor 成功返回结果 +type AlibabaDamaiMevOpenPushfloorAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_pushfloor_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenPushfloorResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenPushfloorResponse.go b/model/damai/AlibabaDamaiMevOpenPushfloorResponse.go deleted file mode 100644 index cfd8b51e0a..0000000000 --- a/model/damai/AlibabaDamaiMevOpenPushfloorResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-楼层接口pushFloor API返回值 -alibaba.damai.mev.open.pushfloor - -pushFloor -*/ -type AlibabaDamaiMevOpenPushfloorAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenPushfloorResponse -} - -// 大麦换验平台-第三方对外开放-楼层接口pushFloor 成功返回结果 -type AlibabaDamaiMevOpenPushfloorResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_pushfloor_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenPushfloorResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenPushitemAPIRequest.go b/model/damai/AlibabaDamaiMevOpenPushitemAPIRequest.go new file mode 100644 index 0000000000..c151379aa1 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenPushitemAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票品接口pushItem API请求 +alibaba.damai.mev.open.pushitem + +开放接口 推送票品 +*/ +type AlibabaDamaiMevOpenPushitemAPIRequest struct { + model.Params + // 入参pushItemParam + _pushItemParam *PushTicketItemPushOpenParam +} + +// 初始化AlibabaDamaiMevOpenPushitemAPIRequest对象 +func NewAlibabaDamaiMevOpenPushitemRequest() *AlibabaDamaiMevOpenPushitemAPIRequest{ + return &AlibabaDamaiMevOpenPushitemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenPushitemAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.pushitem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenPushitemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PushItemParam Setter +// 入参pushItemParam +func (r *AlibabaDamaiMevOpenPushitemAPIRequest) SetPushItemParam(_pushItemParam *PushTicketItemPushOpenParam) error { + r._pushItemParam = _pushItemParam + r.Set("push_item_param", _pushItemParam) + return nil +} + +// PushItemParam Getter +func (r AlibabaDamaiMevOpenPushitemAPIRequest) GetPushItemParam() *PushTicketItemPushOpenParam { + return r._pushItemParam +} diff --git a/model/damai/AlibabaDamaiMevOpenPushitemAPIResponse.go b/model/damai/AlibabaDamaiMevOpenPushitemAPIResponse.go new file mode 100644 index 0000000000..84defab1ef --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenPushitemAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票品接口pushItem API返回值 +alibaba.damai.mev.open.pushitem + +开放接口 推送票品 +*/ +type AlibabaDamaiMevOpenPushitemAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenPushitemAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-票品接口pushItem 成功返回结果 +type AlibabaDamaiMevOpenPushitemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_pushitem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenPushitemResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenPushitemResponse.go b/model/damai/AlibabaDamaiMevOpenPushitemResponse.go deleted file mode 100644 index cd9b93d57b..0000000000 --- a/model/damai/AlibabaDamaiMevOpenPushitemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-票品接口pushItem API返回值 -alibaba.damai.mev.open.pushitem - -开放接口 推送票品 -*/ -type AlibabaDamaiMevOpenPushitemAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenPushitemResponse -} - -// 大麦换验平台-第三方对外开放-票品接口pushItem 成功返回结果 -type AlibabaDamaiMevOpenPushitemResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_pushitem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenPushitemResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenPushperformAPIRequest.go b/model/damai/AlibabaDamaiMevOpenPushperformAPIRequest.go new file mode 100644 index 0000000000..b780fdd86a --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenPushperformAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-场次接口pushPerform API请求 +alibaba.damai.mev.open.pushperform + +pushPerform +*/ +type AlibabaDamaiMevOpenPushperformAPIRequest struct { + model.Params + // 入参pushPerformParam + _pushPerformParam *ThirdPerformPushOpenParam +} + +// 初始化AlibabaDamaiMevOpenPushperformAPIRequest对象 +func NewAlibabaDamaiMevOpenPushperformRequest() *AlibabaDamaiMevOpenPushperformAPIRequest{ + return &AlibabaDamaiMevOpenPushperformAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenPushperformAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.pushperform" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenPushperformAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PushPerformParam Setter +// 入参pushPerformParam +func (r *AlibabaDamaiMevOpenPushperformAPIRequest) SetPushPerformParam(_pushPerformParam *ThirdPerformPushOpenParam) error { + r._pushPerformParam = _pushPerformParam + r.Set("push_perform_param", _pushPerformParam) + return nil +} + +// PushPerformParam Getter +func (r AlibabaDamaiMevOpenPushperformAPIRequest) GetPushPerformParam() *ThirdPerformPushOpenParam { + return r._pushPerformParam +} diff --git a/model/damai/AlibabaDamaiMevOpenPushperformAPIResponse.go b/model/damai/AlibabaDamaiMevOpenPushperformAPIResponse.go new file mode 100644 index 0000000000..91e415d654 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenPushperformAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-场次接口pushPerform API返回值 +alibaba.damai.mev.open.pushperform + +pushPerform +*/ +type AlibabaDamaiMevOpenPushperformAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenPushperformAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-场次接口pushPerform 成功返回结果 +type AlibabaDamaiMevOpenPushperformAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_pushperform_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenPushperformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenPushperformResponse.go b/model/damai/AlibabaDamaiMevOpenPushperformResponse.go deleted file mode 100644 index 3f20d7d4cd..0000000000 --- a/model/damai/AlibabaDamaiMevOpenPushperformResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-场次接口pushPerform API返回值 -alibaba.damai.mev.open.pushperform - -pushPerform -*/ -type AlibabaDamaiMevOpenPushperformAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenPushperformResponse -} - -// 大麦换验平台-第三方对外开放-场次接口pushPerform 成功返回结果 -type AlibabaDamaiMevOpenPushperformResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_pushperform_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenPushperformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenPushprojectAPIRequest.go b/model/damai/AlibabaDamaiMevOpenPushprojectAPIRequest.go new file mode 100644 index 0000000000..3ae144f65c --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenPushprojectAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-项目接口pushProject API请求 +alibaba.damai.mev.open.pushproject + +pushProject +*/ +type AlibabaDamaiMevOpenPushprojectAPIRequest struct { + model.Params + // 入参pushProjectParam + _pushProjectParam *ThirdProjectPushOpenParam +} + +// 初始化AlibabaDamaiMevOpenPushprojectAPIRequest对象 +func NewAlibabaDamaiMevOpenPushprojectRequest() *AlibabaDamaiMevOpenPushprojectAPIRequest{ + return &AlibabaDamaiMevOpenPushprojectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenPushprojectAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.pushproject" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenPushprojectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PushProjectParam Setter +// 入参pushProjectParam +func (r *AlibabaDamaiMevOpenPushprojectAPIRequest) SetPushProjectParam(_pushProjectParam *ThirdProjectPushOpenParam) error { + r._pushProjectParam = _pushProjectParam + r.Set("push_project_param", _pushProjectParam) + return nil +} + +// PushProjectParam Getter +func (r AlibabaDamaiMevOpenPushprojectAPIRequest) GetPushProjectParam() *ThirdProjectPushOpenParam { + return r._pushProjectParam +} diff --git a/model/damai/AlibabaDamaiMevOpenPushprojectAPIResponse.go b/model/damai/AlibabaDamaiMevOpenPushprojectAPIResponse.go new file mode 100644 index 0000000000..368ff32349 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenPushprojectAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-项目接口pushProject API返回值 +alibaba.damai.mev.open.pushproject + +pushProject +*/ +type AlibabaDamaiMevOpenPushprojectAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenPushprojectAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-项目接口pushProject 成功返回结果 +type AlibabaDamaiMevOpenPushprojectAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_pushproject_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenPushprojectResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenPushprojectResponse.go b/model/damai/AlibabaDamaiMevOpenPushprojectResponse.go deleted file mode 100644 index 1ae6d18360..0000000000 --- a/model/damai/AlibabaDamaiMevOpenPushprojectResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-项目接口pushProject API返回值 -alibaba.damai.mev.open.pushproject - -pushProject -*/ -type AlibabaDamaiMevOpenPushprojectAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenPushprojectResponse -} - -// 大麦换验平台-第三方对外开放-项目接口pushProject 成功返回结果 -type AlibabaDamaiMevOpenPushprojectResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_pushproject_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenPushprojectResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenPushstandAPIRequest.go b/model/damai/AlibabaDamaiMevOpenPushstandAPIRequest.go new file mode 100644 index 0000000000..7da3c1da2d --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenPushstandAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-看台接口pushStand API请求 +alibaba.damai.mev.open.pushstand + +pushStand +*/ +type AlibabaDamaiMevOpenPushstandAPIRequest struct { + model.Params + // 入参pushStandParam + _pushStandParam *ThirdStandPushOpenParam +} + +// 初始化AlibabaDamaiMevOpenPushstandAPIRequest对象 +func NewAlibabaDamaiMevOpenPushstandRequest() *AlibabaDamaiMevOpenPushstandAPIRequest{ + return &AlibabaDamaiMevOpenPushstandAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenPushstandAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.pushstand" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenPushstandAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PushStandParam Setter +// 入参pushStandParam +func (r *AlibabaDamaiMevOpenPushstandAPIRequest) SetPushStandParam(_pushStandParam *ThirdStandPushOpenParam) error { + r._pushStandParam = _pushStandParam + r.Set("push_stand_param", _pushStandParam) + return nil +} + +// PushStandParam Getter +func (r AlibabaDamaiMevOpenPushstandAPIRequest) GetPushStandParam() *ThirdStandPushOpenParam { + return r._pushStandParam +} diff --git a/model/damai/AlibabaDamaiMevOpenPushstandAPIResponse.go b/model/damai/AlibabaDamaiMevOpenPushstandAPIResponse.go new file mode 100644 index 0000000000..a23dddc5c4 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenPushstandAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-看台接口pushStand API返回值 +alibaba.damai.mev.open.pushstand + +pushStand +*/ +type AlibabaDamaiMevOpenPushstandAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenPushstandAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-看台接口pushStand 成功返回结果 +type AlibabaDamaiMevOpenPushstandAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_pushstand_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenPushstandResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenPushstandResponse.go b/model/damai/AlibabaDamaiMevOpenPushstandResponse.go deleted file mode 100644 index 897d1fb2b7..0000000000 --- a/model/damai/AlibabaDamaiMevOpenPushstandResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-看台接口pushStand API返回值 -alibaba.damai.mev.open.pushstand - -pushStand -*/ -type AlibabaDamaiMevOpenPushstandAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenPushstandResponse -} - -// 大麦换验平台-第三方对外开放-看台接口pushStand 成功返回结果 -type AlibabaDamaiMevOpenPushstandResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_pushstand_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenPushstandResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenPushvenueAPIRequest.go b/model/damai/AlibabaDamaiMevOpenPushvenueAPIRequest.go new file mode 100644 index 0000000000..7e10a03f11 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenPushvenueAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-场馆接口pushVenue API请求 +alibaba.damai.mev.open.pushvenue + +开放接口推送场馆 +*/ +type AlibabaDamaiMevOpenPushvenueAPIRequest struct { + model.Params + // 入参pushVenueParam + _pushVenueParam *ThirdVenuePushOpenParam +} + +// 初始化AlibabaDamaiMevOpenPushvenueAPIRequest对象 +func NewAlibabaDamaiMevOpenPushvenueRequest() *AlibabaDamaiMevOpenPushvenueAPIRequest{ + return &AlibabaDamaiMevOpenPushvenueAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenPushvenueAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.pushvenue" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenPushvenueAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PushVenueParam Setter +// 入参pushVenueParam +func (r *AlibabaDamaiMevOpenPushvenueAPIRequest) SetPushVenueParam(_pushVenueParam *ThirdVenuePushOpenParam) error { + r._pushVenueParam = _pushVenueParam + r.Set("push_venue_param", _pushVenueParam) + return nil +} + +// PushVenueParam Getter +func (r AlibabaDamaiMevOpenPushvenueAPIRequest) GetPushVenueParam() *ThirdVenuePushOpenParam { + return r._pushVenueParam +} diff --git a/model/damai/AlibabaDamaiMevOpenPushvenueAPIResponse.go b/model/damai/AlibabaDamaiMevOpenPushvenueAPIResponse.go new file mode 100644 index 0000000000..d80ebf8f54 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenPushvenueAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-场馆接口pushVenue API返回值 +alibaba.damai.mev.open.pushvenue + +开放接口推送场馆 +*/ +type AlibabaDamaiMevOpenPushvenueAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenPushvenueAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-场馆接口pushVenue 成功返回结果 +type AlibabaDamaiMevOpenPushvenueAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_pushvenue_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenPushvenueResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenPushvenueResponse.go b/model/damai/AlibabaDamaiMevOpenPushvenueResponse.go deleted file mode 100644 index cd844d8db5..0000000000 --- a/model/damai/AlibabaDamaiMevOpenPushvenueResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-场馆接口pushVenue API返回值 -alibaba.damai.mev.open.pushvenue - -开放接口推送场馆 -*/ -type AlibabaDamaiMevOpenPushvenueAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenPushvenueResponse -} - -// 大麦换验平台-第三方对外开放-场馆接口pushVenue 成功返回结果 -type AlibabaDamaiMevOpenPushvenueResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_pushvenue_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenPushvenueResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenResetticketAPIRequest.go b/model/damai/AlibabaDamaiMevOpenResetticketAPIRequest.go new file mode 100644 index 0000000000..7a902c23e7 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenResetticketAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票单接口resetTicket API请求 +alibaba.damai.mev.open.resetticket + +开放接口重打票 +*/ +type AlibabaDamaiMevOpenResetticketAPIRequest struct { + model.Params + // 入参ticketIdOpenParam + _ticketIdOpenParam *TicketIdOpenParam +} + +// 初始化AlibabaDamaiMevOpenResetticketAPIRequest对象 +func NewAlibabaDamaiMevOpenResetticketRequest() *AlibabaDamaiMevOpenResetticketAPIRequest{ + return &AlibabaDamaiMevOpenResetticketAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenResetticketAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.resetticket" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenResetticketAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TicketIdOpenParam Setter +// 入参ticketIdOpenParam +func (r *AlibabaDamaiMevOpenResetticketAPIRequest) SetTicketIdOpenParam(_ticketIdOpenParam *TicketIdOpenParam) error { + r._ticketIdOpenParam = _ticketIdOpenParam + r.Set("ticket_id_open_param", _ticketIdOpenParam) + return nil +} + +// TicketIdOpenParam Getter +func (r AlibabaDamaiMevOpenResetticketAPIRequest) GetTicketIdOpenParam() *TicketIdOpenParam { + return r._ticketIdOpenParam +} diff --git a/model/damai/AlibabaDamaiMevOpenResetticketAPIResponse.go b/model/damai/AlibabaDamaiMevOpenResetticketAPIResponse.go new file mode 100644 index 0000000000..a24bce348e --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenResetticketAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票单接口resetTicket API返回值 +alibaba.damai.mev.open.resetticket + +开放接口重打票 +*/ +type AlibabaDamaiMevOpenResetticketAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenResetticketAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-票单接口resetTicket 成功返回结果 +type AlibabaDamaiMevOpenResetticketAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_resetticket_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenResetticketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenResetticketResponse.go b/model/damai/AlibabaDamaiMevOpenResetticketResponse.go deleted file mode 100644 index 31da46b962..0000000000 --- a/model/damai/AlibabaDamaiMevOpenResetticketResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-票单接口resetTicket API返回值 -alibaba.damai.mev.open.resetticket - -开放接口重打票 -*/ -type AlibabaDamaiMevOpenResetticketAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenResetticketResponse -} - -// 大麦换验平台-第三方对外开放-票单接口resetTicket 成功返回结果 -type AlibabaDamaiMevOpenResetticketResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_resetticket_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenResetticketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenUnlockticketAPIRequest.go b/model/damai/AlibabaDamaiMevOpenUnlockticketAPIRequest.go new file mode 100644 index 0000000000..ef9625695b --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenUnlockticketAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票单接口unlockTicket API请求 +alibaba.damai.mev.open.unlockticket + +开放接口 解锁票单 +*/ +type AlibabaDamaiMevOpenUnlockticketAPIRequest struct { + model.Params + // 入参ticketIdOpenParam + _ticketIdOpenParam *TicketIdOpenParam +} + +// 初始化AlibabaDamaiMevOpenUnlockticketAPIRequest对象 +func NewAlibabaDamaiMevOpenUnlockticketRequest() *AlibabaDamaiMevOpenUnlockticketAPIRequest{ + return &AlibabaDamaiMevOpenUnlockticketAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenUnlockticketAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.unlockticket" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenUnlockticketAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TicketIdOpenParam Setter +// 入参ticketIdOpenParam +func (r *AlibabaDamaiMevOpenUnlockticketAPIRequest) SetTicketIdOpenParam(_ticketIdOpenParam *TicketIdOpenParam) error { + r._ticketIdOpenParam = _ticketIdOpenParam + r.Set("ticket_id_open_param", _ticketIdOpenParam) + return nil +} + +// TicketIdOpenParam Getter +func (r AlibabaDamaiMevOpenUnlockticketAPIRequest) GetTicketIdOpenParam() *TicketIdOpenParam { + return r._ticketIdOpenParam +} diff --git a/model/damai/AlibabaDamaiMevOpenUnlockticketAPIResponse.go b/model/damai/AlibabaDamaiMevOpenUnlockticketAPIResponse.go new file mode 100644 index 0000000000..6faae379c2 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenUnlockticketAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票单接口unlockTicket API返回值 +alibaba.damai.mev.open.unlockticket + +开放接口 解锁票单 +*/ +type AlibabaDamaiMevOpenUnlockticketAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenUnlockticketAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-票单接口unlockTicket 成功返回结果 +type AlibabaDamaiMevOpenUnlockticketAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_unlockticket_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenUnlockticketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenUnlockticketResponse.go b/model/damai/AlibabaDamaiMevOpenUnlockticketResponse.go deleted file mode 100644 index 8c8b7c9159..0000000000 --- a/model/damai/AlibabaDamaiMevOpenUnlockticketResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-票单接口unlockTicket API返回值 -alibaba.damai.mev.open.unlockticket - -开放接口 解锁票单 -*/ -type AlibabaDamaiMevOpenUnlockticketAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenUnlockticketResponse -} - -// 大麦换验平台-第三方对外开放-票单接口unlockTicket 成功返回结果 -type AlibabaDamaiMevOpenUnlockticketResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_unlockticket_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenUnlockticketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damai/AlibabaDamaiMevOpenWithdrawticketAPIRequest.go b/model/damai/AlibabaDamaiMevOpenWithdrawticketAPIRequest.go new file mode 100644 index 0000000000..573375f0e1 --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenWithdrawticketAPIRequest.go @@ -0,0 +1,52 @@ +package damai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票单接口withdrawTicket API请求 +alibaba.damai.mev.open.withdrawticket + +开放接口退票 +*/ +type AlibabaDamaiMevOpenWithdrawticketAPIRequest struct { + model.Params + // 入参ticketIdOpenParam + _ticketIdOpenParam *TicketIdOpenParam +} + +// 初始化AlibabaDamaiMevOpenWithdrawticketAPIRequest对象 +func NewAlibabaDamaiMevOpenWithdrawticketRequest() *AlibabaDamaiMevOpenWithdrawticketAPIRequest{ + return &AlibabaDamaiMevOpenWithdrawticketAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMevOpenWithdrawticketAPIRequest) GetApiMethodName() string { + return "alibaba.damai.mev.open.withdrawticket" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMevOpenWithdrawticketAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TicketIdOpenParam Setter +// 入参ticketIdOpenParam +func (r *AlibabaDamaiMevOpenWithdrawticketAPIRequest) SetTicketIdOpenParam(_ticketIdOpenParam *TicketIdOpenParam) error { + r._ticketIdOpenParam = _ticketIdOpenParam + r.Set("ticket_id_open_param", _ticketIdOpenParam) + return nil +} + +// TicketIdOpenParam Getter +func (r AlibabaDamaiMevOpenWithdrawticketAPIRequest) GetTicketIdOpenParam() *TicketIdOpenParam { + return r._ticketIdOpenParam +} diff --git a/model/damai/AlibabaDamaiMevOpenWithdrawticketAPIResponse.go b/model/damai/AlibabaDamaiMevOpenWithdrawticketAPIResponse.go new file mode 100644 index 0000000000..9b7248fa6f --- /dev/null +++ b/model/damai/AlibabaDamaiMevOpenWithdrawticketAPIResponse.go @@ -0,0 +1,27 @@ +package damai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦换验平台-第三方对外开放-票单接口withdrawTicket API返回值 +alibaba.damai.mev.open.withdrawticket + +开放接口退票 +*/ +type AlibabaDamaiMevOpenWithdrawticketAPIResponse struct { + model.CommonResponse + AlibabaDamaiMevOpenWithdrawticketAPIResponseModel +} + +// 大麦换验平台-第三方对外开放-票单接口withdrawTicket 成功返回结果 +type AlibabaDamaiMevOpenWithdrawticketAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_mev_open_withdrawticket_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDamaiMevOpenWithdrawticketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/damai/AlibabaDamaiMevOpenWithdrawticketResponse.go b/model/damai/AlibabaDamaiMevOpenWithdrawticketResponse.go deleted file mode 100644 index 9c35c23d1e..0000000000 --- a/model/damai/AlibabaDamaiMevOpenWithdrawticketResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package damai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦换验平台-第三方对外开放-票单接口withdrawTicket API返回值 -alibaba.damai.mev.open.withdrawticket - -开放接口退票 -*/ -type AlibabaDamaiMevOpenWithdrawticketAPIResponse struct { - model.CommonResponse - AlibabaDamaiMevOpenWithdrawticketResponse -} - -// 大麦换验平台-第三方对外开放-票单接口withdrawTicket 成功返回结果 -type AlibabaDamaiMevOpenWithdrawticketResponse struct { - XMLName xml.Name `xml:"alibaba_damai_mev_open_withdrawticket_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDamaiMevOpenWithdrawticketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/damaiticklet/AlibabaDamaiTickletQrcodeDecodeAPIRequest.go b/model/damaiticklet/AlibabaDamaiTickletQrcodeDecodeAPIRequest.go new file mode 100644 index 0000000000..5a075afb3e --- /dev/null +++ b/model/damaiticklet/AlibabaDamaiTickletQrcodeDecodeAPIRequest.go @@ -0,0 +1,66 @@ +package damaiticklet + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +票夹-动态二维码-解码 API请求 +alibaba.damai.ticklet.qrcode.decode + +对于票夹的动态二维码进行解码 +*/ +type AlibabaDamaiTickletQrcodeDecodeAPIRequest struct { + model.Params + // 生产系统 + _productSystemId string + // 加密二维码 + _encryptedQrCode string +} + +// 初始化AlibabaDamaiTickletQrcodeDecodeAPIRequest对象 +func NewAlibabaDamaiTickletQrcodeDecodeRequest() *AlibabaDamaiTickletQrcodeDecodeAPIRequest{ + return &AlibabaDamaiTickletQrcodeDecodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiTickletQrcodeDecodeAPIRequest) GetApiMethodName() string { + return "alibaba.damai.ticklet.qrcode.decode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiTickletQrcodeDecodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductSystemId Setter +// 生产系统 +func (r *AlibabaDamaiTickletQrcodeDecodeAPIRequest) SetProductSystemId(_productSystemId string) error { + r._productSystemId = _productSystemId + r.Set("product_system_id", _productSystemId) + return nil +} + +// ProductSystemId Getter +func (r AlibabaDamaiTickletQrcodeDecodeAPIRequest) GetProductSystemId() string { + return r._productSystemId +} +// EncryptedQrCode Setter +// 加密二维码 +func (r *AlibabaDamaiTickletQrcodeDecodeAPIRequest) SetEncryptedQrCode(_encryptedQrCode string) error { + r._encryptedQrCode = _encryptedQrCode + r.Set("encrypted_qr_code", _encryptedQrCode) + return nil +} + +// EncryptedQrCode Getter +func (r AlibabaDamaiTickletQrcodeDecodeAPIRequest) GetEncryptedQrCode() string { + return r._encryptedQrCode +} diff --git a/model/damaiticklet/AlibabaDamaiTickletQrcodeDecodeAPIResponse.go b/model/damaiticklet/AlibabaDamaiTickletQrcodeDecodeAPIResponse.go new file mode 100644 index 0000000000..e8a607c107 --- /dev/null +++ b/model/damaiticklet/AlibabaDamaiTickletQrcodeDecodeAPIResponse.go @@ -0,0 +1,33 @@ +package damaiticklet + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +票夹-动态二维码-解码 API返回值 +alibaba.damai.ticklet.qrcode.decode + +对于票夹的动态二维码进行解码 +*/ +type AlibabaDamaiTickletQrcodeDecodeAPIResponse struct { + model.CommonResponse + AlibabaDamaiTickletQrcodeDecodeAPIResponseModel +} + +// 票夹-动态二维码-解码 成功返回结果 +type AlibabaDamaiTickletQrcodeDecodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_ticklet_qrcode_decode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // model + Model string `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/damaiticklet/AlibabaDamaiTickletQrcodeDecodeResponse.go b/model/damaiticklet/AlibabaDamaiTickletQrcodeDecodeResponse.go deleted file mode 100644 index 5d290e4eb2..0000000000 --- a/model/damaiticklet/AlibabaDamaiTickletQrcodeDecodeResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package damaiticklet - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -票夹-动态二维码-解码 API返回值 -alibaba.damai.ticklet.qrcode.decode - -对于票夹的动态二维码进行解码 -*/ -type AlibabaDamaiTickletQrcodeDecodeAPIResponse struct { - model.CommonResponse - AlibabaDamaiTickletQrcodeDecodeResponse -} - -// 票夹-动态二维码-解码 成功返回结果 -type AlibabaDamaiTickletQrcodeDecodeResponse struct { - XMLName xml.Name `xml:"alibaba_damai_ticklet_qrcode_decode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // model - Model string `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/degoperation/TaobaoDegoperationCheckAddrStatusAPIRequest.go b/model/degoperation/TaobaoDegoperationCheckAddrStatusAPIRequest.go new file mode 100644 index 0000000000..3b34eca64c --- /dev/null +++ b/model/degoperation/TaobaoDegoperationCheckAddrStatusAPIRequest.go @@ -0,0 +1,52 @@ +package degoperation + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +地址 API请求 +taobao.degoperation.check.addr.status + +激励 +*/ +type TaobaoDegoperationCheckAddrStatusAPIRequest struct { + model.Params + // 奖品唯一标识 + _sequenceNo int64 +} + +// 初始化TaobaoDegoperationCheckAddrStatusAPIRequest对象 +func NewTaobaoDegoperationCheckAddrStatusRequest() *TaobaoDegoperationCheckAddrStatusAPIRequest{ + return &TaobaoDegoperationCheckAddrStatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDegoperationCheckAddrStatusAPIRequest) GetApiMethodName() string { + return "taobao.degoperation.check.addr.status" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDegoperationCheckAddrStatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SequenceNo Setter +// 奖品唯一标识 +func (r *TaobaoDegoperationCheckAddrStatusAPIRequest) SetSequenceNo(_sequenceNo int64) error { + r._sequenceNo = _sequenceNo + r.Set("sequence_no", _sequenceNo) + return nil +} + +// SequenceNo Getter +func (r TaobaoDegoperationCheckAddrStatusAPIRequest) GetSequenceNo() int64 { + return r._sequenceNo +} diff --git a/model/degoperation/TaobaoDegoperationCheckAddrStatusAPIResponse.go b/model/degoperation/TaobaoDegoperationCheckAddrStatusAPIResponse.go new file mode 100644 index 0000000000..70f53c6969 --- /dev/null +++ b/model/degoperation/TaobaoDegoperationCheckAddrStatusAPIResponse.go @@ -0,0 +1,27 @@ +package degoperation + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +地址 API返回值 +taobao.degoperation.check.addr.status + +激励 +*/ +type TaobaoDegoperationCheckAddrStatusAPIResponse struct { + model.CommonResponse + TaobaoDegoperationCheckAddrStatusAPIResponseModel +} + +// 地址 成功返回结果 +type TaobaoDegoperationCheckAddrStatusAPIResponseModel struct { + XMLName xml.Name `xml:"degoperation_check_addr_status_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BonusResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/degoperation/TaobaoDegoperationCheckAddrStatusResponse.go b/model/degoperation/TaobaoDegoperationCheckAddrStatusResponse.go deleted file mode 100644 index 3b313feca3..0000000000 --- a/model/degoperation/TaobaoDegoperationCheckAddrStatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package degoperation - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -地址 API返回值 -taobao.degoperation.check.addr.status - -激励 -*/ -type TaobaoDegoperationCheckAddrStatusAPIResponse struct { - model.CommonResponse - TaobaoDegoperationCheckAddrStatusResponse -} - -// 地址 成功返回结果 -type TaobaoDegoperationCheckAddrStatusResponse struct { - XMLName xml.Name `xml:"degoperation_check_addr_status_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BonusResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/degoperation/TaobaoDegoperationCreateqrcodeAPIRequest.go b/model/degoperation/TaobaoDegoperationCreateqrcodeAPIRequest.go new file mode 100644 index 0000000000..693852018e --- /dev/null +++ b/model/degoperation/TaobaoDegoperationCreateqrcodeAPIRequest.go @@ -0,0 +1,108 @@ +package degoperation + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +中奖生成二维码 API请求 +taobao.degoperation.createqrcode + +用户中奖后,生成二维码图片链接 +*/ +type TaobaoDegoperationCreateqrcodeAPIRequest struct { + model.Params + // 设备id + _uuid string + // 系统信息 + _degAccessToken string + // 奖品唯一标识 + _sequenceNo string + // 活动名称 + _activity string + // 奖品名称 + _title string +} + +// 初始化TaobaoDegoperationCreateqrcodeAPIRequest对象 +func NewTaobaoDegoperationCreateqrcodeRequest() *TaobaoDegoperationCreateqrcodeAPIRequest{ + return &TaobaoDegoperationCreateqrcodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDegoperationCreateqrcodeAPIRequest) GetApiMethodName() string { + return "taobao.degoperation.createqrcode" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDegoperationCreateqrcodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Uuid Setter +// 设备id +func (r *TaobaoDegoperationCreateqrcodeAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r TaobaoDegoperationCreateqrcodeAPIRequest) GetUuid() string { + return r._uuid +} +// DegAccessToken Setter +// 系统信息 +func (r *TaobaoDegoperationCreateqrcodeAPIRequest) SetDegAccessToken(_degAccessToken string) error { + r._degAccessToken = _degAccessToken + r.Set("deg_access_token", _degAccessToken) + return nil +} + +// DegAccessToken Getter +func (r TaobaoDegoperationCreateqrcodeAPIRequest) GetDegAccessToken() string { + return r._degAccessToken +} +// SequenceNo Setter +// 奖品唯一标识 +func (r *TaobaoDegoperationCreateqrcodeAPIRequest) SetSequenceNo(_sequenceNo string) error { + r._sequenceNo = _sequenceNo + r.Set("sequence_no", _sequenceNo) + return nil +} + +// SequenceNo Getter +func (r TaobaoDegoperationCreateqrcodeAPIRequest) GetSequenceNo() string { + return r._sequenceNo +} +// Activity Setter +// 活动名称 +func (r *TaobaoDegoperationCreateqrcodeAPIRequest) SetActivity(_activity string) error { + r._activity = _activity + r.Set("activity", _activity) + return nil +} + +// Activity Getter +func (r TaobaoDegoperationCreateqrcodeAPIRequest) GetActivity() string { + return r._activity +} +// Title Setter +// 奖品名称 +func (r *TaobaoDegoperationCreateqrcodeAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoDegoperationCreateqrcodeAPIRequest) GetTitle() string { + return r._title +} diff --git a/model/degoperation/TaobaoDegoperationCreateqrcodeAPIResponse.go b/model/degoperation/TaobaoDegoperationCreateqrcodeAPIResponse.go new file mode 100644 index 0000000000..54ce45f6a7 --- /dev/null +++ b/model/degoperation/TaobaoDegoperationCreateqrcodeAPIResponse.go @@ -0,0 +1,33 @@ +package degoperation + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +中奖生成二维码 API返回值 +taobao.degoperation.createqrcode + +用户中奖后,生成二维码图片链接 +*/ +type TaobaoDegoperationCreateqrcodeAPIResponse struct { + model.CommonResponse + TaobaoDegoperationCreateqrcodeAPIResponseModel +} + +// 中奖生成二维码 成功返回结果 +type TaobaoDegoperationCreateqrcodeAPIResponseModel struct { + XMLName xml.Name `xml:"degoperation_createqrcode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 二维码链接 + Data string `json:"data,omitempty" xml:"data,omitempty"` + // realSubCode + RealSubCode string `json:"real_sub_code,omitempty" xml:"real_sub_code,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/degoperation/TaobaoDegoperationCreateqrcodeResponse.go b/model/degoperation/TaobaoDegoperationCreateqrcodeResponse.go deleted file mode 100644 index 03b15e76f4..0000000000 --- a/model/degoperation/TaobaoDegoperationCreateqrcodeResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package degoperation - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -中奖生成二维码 API返回值 -taobao.degoperation.createqrcode - -用户中奖后,生成二维码图片链接 -*/ -type TaobaoDegoperationCreateqrcodeAPIResponse struct { - model.CommonResponse - TaobaoDegoperationCreateqrcodeResponse -} - -// 中奖生成二维码 成功返回结果 -type TaobaoDegoperationCreateqrcodeResponse struct { - XMLName xml.Name `xml:"degoperation_createqrcode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 二维码链接 - Data string `json:"data,omitempty" xml:"data,omitempty"` - // realSubCode - RealSubCode string `json:"real_sub_code,omitempty" xml:"real_sub_code,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/degoperation/TaobaoDegoperationDoLuckydrawAPIRequest.go b/model/degoperation/TaobaoDegoperationDoLuckydrawAPIRequest.go new file mode 100644 index 0000000000..533aa01e3d --- /dev/null +++ b/model/degoperation/TaobaoDegoperationDoLuckydrawAPIRequest.go @@ -0,0 +1,122 @@ +package degoperation + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +激励抽奖 API请求 +taobao.degoperation.do.luckydraw + +激励平台抽奖接口。用户可以通过接口完成抽奖功能 +*/ +type TaobaoDegoperationDoLuckydrawAPIRequest struct { + model.Params + // 后台活动配置appkey + _degAppKey string + // 后台活动配置eventkey + _degEventKey string + // 前端标识 + _source string + // 设备uuid + _uuid string + // 参数校验 + _paramSign string + // 传参信息 + _degAccessToken string +} + +// 初始化TaobaoDegoperationDoLuckydrawAPIRequest对象 +func NewTaobaoDegoperationDoLuckydrawRequest() *TaobaoDegoperationDoLuckydrawAPIRequest{ + return &TaobaoDegoperationDoLuckydrawAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDegoperationDoLuckydrawAPIRequest) GetApiMethodName() string { + return "taobao.degoperation.do.luckydraw" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDegoperationDoLuckydrawAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DegAppKey Setter +// 后台活动配置appkey +func (r *TaobaoDegoperationDoLuckydrawAPIRequest) SetDegAppKey(_degAppKey string) error { + r._degAppKey = _degAppKey + r.Set("deg_app_key", _degAppKey) + return nil +} + +// DegAppKey Getter +func (r TaobaoDegoperationDoLuckydrawAPIRequest) GetDegAppKey() string { + return r._degAppKey +} +// DegEventKey Setter +// 后台活动配置eventkey +func (r *TaobaoDegoperationDoLuckydrawAPIRequest) SetDegEventKey(_degEventKey string) error { + r._degEventKey = _degEventKey + r.Set("deg_event_key", _degEventKey) + return nil +} + +// DegEventKey Getter +func (r TaobaoDegoperationDoLuckydrawAPIRequest) GetDegEventKey() string { + return r._degEventKey +} +// Source Setter +// 前端标识 +func (r *TaobaoDegoperationDoLuckydrawAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoDegoperationDoLuckydrawAPIRequest) GetSource() string { + return r._source +} +// Uuid Setter +// 设备uuid +func (r *TaobaoDegoperationDoLuckydrawAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r TaobaoDegoperationDoLuckydrawAPIRequest) GetUuid() string { + return r._uuid +} +// ParamSign Setter +// 参数校验 +func (r *TaobaoDegoperationDoLuckydrawAPIRequest) SetParamSign(_paramSign string) error { + r._paramSign = _paramSign + r.Set("param_sign", _paramSign) + return nil +} + +// ParamSign Getter +func (r TaobaoDegoperationDoLuckydrawAPIRequest) GetParamSign() string { + return r._paramSign +} +// DegAccessToken Setter +// 传参信息 +func (r *TaobaoDegoperationDoLuckydrawAPIRequest) SetDegAccessToken(_degAccessToken string) error { + r._degAccessToken = _degAccessToken + r.Set("deg_access_token", _degAccessToken) + return nil +} + +// DegAccessToken Getter +func (r TaobaoDegoperationDoLuckydrawAPIRequest) GetDegAccessToken() string { + return r._degAccessToken +} diff --git a/model/degoperation/TaobaoDegoperationDoLuckydrawAPIResponse.go b/model/degoperation/TaobaoDegoperationDoLuckydrawAPIResponse.go new file mode 100644 index 0000000000..437e6f7f3e --- /dev/null +++ b/model/degoperation/TaobaoDegoperationDoLuckydrawAPIResponse.go @@ -0,0 +1,27 @@ +package degoperation + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +激励抽奖 API返回值 +taobao.degoperation.do.luckydraw + +激励平台抽奖接口。用户可以通过接口完成抽奖功能 +*/ +type TaobaoDegoperationDoLuckydrawAPIResponse struct { + model.CommonResponse + TaobaoDegoperationDoLuckydrawAPIResponseModel +} + +// 激励抽奖 成功返回结果 +type TaobaoDegoperationDoLuckydrawAPIResponseModel struct { + XMLName xml.Name `xml:"degoperation_do_luckydraw_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BonusResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/degoperation/TaobaoDegoperationDoLuckydrawResponse.go b/model/degoperation/TaobaoDegoperationDoLuckydrawResponse.go deleted file mode 100644 index 60219ab40c..0000000000 --- a/model/degoperation/TaobaoDegoperationDoLuckydrawResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package degoperation - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -激励抽奖 API返回值 -taobao.degoperation.do.luckydraw - -激励平台抽奖接口。用户可以通过接口完成抽奖功能 -*/ -type TaobaoDegoperationDoLuckydrawAPIResponse struct { - model.CommonResponse - TaobaoDegoperationDoLuckydrawResponse -} - -// 激励抽奖 成功返回结果 -type TaobaoDegoperationDoLuckydrawResponse struct { - XMLName xml.Name `xml:"degoperation_do_luckydraw_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BonusResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/degoperation/TaobaoDegoperationGetByEventkeyAPIRequest.go b/model/degoperation/TaobaoDegoperationGetByEventkeyAPIRequest.go new file mode 100644 index 0000000000..d2f941d51f --- /dev/null +++ b/model/degoperation/TaobaoDegoperationGetByEventkeyAPIRequest.go @@ -0,0 +1,80 @@ +package degoperation + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通用用户抽奖次数限制 API请求 +taobao.degoperation.get.by.eventkey + +通用用户抽奖次数限制 +*/ +type TaobaoDegoperationGetByEventkeyAPIRequest struct { + model.Params + // 活动后台配置appkey + _degAppKey string + // 活动后台配置eventkey + _eventKey string + // info + _degAccessToken string +} + +// 初始化TaobaoDegoperationGetByEventkeyAPIRequest对象 +func NewTaobaoDegoperationGetByEventkeyRequest() *TaobaoDegoperationGetByEventkeyAPIRequest{ + return &TaobaoDegoperationGetByEventkeyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDegoperationGetByEventkeyAPIRequest) GetApiMethodName() string { + return "taobao.degoperation.get.by.eventkey" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDegoperationGetByEventkeyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DegAppKey Setter +// 活动后台配置appkey +func (r *TaobaoDegoperationGetByEventkeyAPIRequest) SetDegAppKey(_degAppKey string) error { + r._degAppKey = _degAppKey + r.Set("deg_app_key", _degAppKey) + return nil +} + +// DegAppKey Getter +func (r TaobaoDegoperationGetByEventkeyAPIRequest) GetDegAppKey() string { + return r._degAppKey +} +// EventKey Setter +// 活动后台配置eventkey +func (r *TaobaoDegoperationGetByEventkeyAPIRequest) SetEventKey(_eventKey string) error { + r._eventKey = _eventKey + r.Set("event_key", _eventKey) + return nil +} + +// EventKey Getter +func (r TaobaoDegoperationGetByEventkeyAPIRequest) GetEventKey() string { + return r._eventKey +} +// DegAccessToken Setter +// info +func (r *TaobaoDegoperationGetByEventkeyAPIRequest) SetDegAccessToken(_degAccessToken string) error { + r._degAccessToken = _degAccessToken + r.Set("deg_access_token", _degAccessToken) + return nil +} + +// DegAccessToken Getter +func (r TaobaoDegoperationGetByEventkeyAPIRequest) GetDegAccessToken() string { + return r._degAccessToken +} diff --git a/model/degoperation/TaobaoDegoperationGetByEventkeyAPIResponse.go b/model/degoperation/TaobaoDegoperationGetByEventkeyAPIResponse.go new file mode 100644 index 0000000000..12bdf3e3b1 --- /dev/null +++ b/model/degoperation/TaobaoDegoperationGetByEventkeyAPIResponse.go @@ -0,0 +1,27 @@ +package degoperation + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通用用户抽奖次数限制 API返回值 +taobao.degoperation.get.by.eventkey + +通用用户抽奖次数限制 +*/ +type TaobaoDegoperationGetByEventkeyAPIResponse struct { + model.CommonResponse + TaobaoDegoperationGetByEventkeyAPIResponseModel +} + +// 通用用户抽奖次数限制 成功返回结果 +type TaobaoDegoperationGetByEventkeyAPIResponseModel struct { + XMLName xml.Name `xml:"degoperation_get_by_eventkey_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BonusResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/degoperation/TaobaoDegoperationGetByEventkeyResponse.go b/model/degoperation/TaobaoDegoperationGetByEventkeyResponse.go deleted file mode 100644 index adb743c3d1..0000000000 --- a/model/degoperation/TaobaoDegoperationGetByEventkeyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package degoperation - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通用用户抽奖次数限制 API返回值 -taobao.degoperation.get.by.eventkey - -通用用户抽奖次数限制 -*/ -type TaobaoDegoperationGetByEventkeyAPIResponse struct { - model.CommonResponse - TaobaoDegoperationGetByEventkeyResponse -} - -// 通用用户抽奖次数限制 成功返回结果 -type TaobaoDegoperationGetByEventkeyResponse struct { - XMLName xml.Name `xml:"degoperation_get_by_eventkey_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BonusResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/degoperation/TaobaoDegoperationGetInfoUuidAPIRequest.go b/model/degoperation/TaobaoDegoperationGetInfoUuidAPIRequest.go new file mode 100644 index 0000000000..8b1df70952 --- /dev/null +++ b/model/degoperation/TaobaoDegoperationGetInfoUuidAPIRequest.go @@ -0,0 +1,80 @@ +package degoperation + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据uuid用户抽奖次数限制 API请求 +taobao.degoperation.get.info.uuid + +根据uuid用户抽奖次数限制 +*/ +type TaobaoDegoperationGetInfoUuidAPIRequest struct { + model.Params + // 活动后台配置eventkey + _degAppKey string + // 活动后台配置appkey + _degEventKey string + // 设备id + _uuid string +} + +// 初始化TaobaoDegoperationGetInfoUuidAPIRequest对象 +func NewTaobaoDegoperationGetInfoUuidRequest() *TaobaoDegoperationGetInfoUuidAPIRequest{ + return &TaobaoDegoperationGetInfoUuidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDegoperationGetInfoUuidAPIRequest) GetApiMethodName() string { + return "taobao.degoperation.get.info.uuid" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDegoperationGetInfoUuidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DegAppKey Setter +// 活动后台配置eventkey +func (r *TaobaoDegoperationGetInfoUuidAPIRequest) SetDegAppKey(_degAppKey string) error { + r._degAppKey = _degAppKey + r.Set("deg_app_key", _degAppKey) + return nil +} + +// DegAppKey Getter +func (r TaobaoDegoperationGetInfoUuidAPIRequest) GetDegAppKey() string { + return r._degAppKey +} +// DegEventKey Setter +// 活动后台配置appkey +func (r *TaobaoDegoperationGetInfoUuidAPIRequest) SetDegEventKey(_degEventKey string) error { + r._degEventKey = _degEventKey + r.Set("deg_event_key", _degEventKey) + return nil +} + +// DegEventKey Getter +func (r TaobaoDegoperationGetInfoUuidAPIRequest) GetDegEventKey() string { + return r._degEventKey +} +// Uuid Setter +// 设备id +func (r *TaobaoDegoperationGetInfoUuidAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r TaobaoDegoperationGetInfoUuidAPIRequest) GetUuid() string { + return r._uuid +} diff --git a/model/degoperation/TaobaoDegoperationGetInfoUuidAPIResponse.go b/model/degoperation/TaobaoDegoperationGetInfoUuidAPIResponse.go new file mode 100644 index 0000000000..29cff5afea --- /dev/null +++ b/model/degoperation/TaobaoDegoperationGetInfoUuidAPIResponse.go @@ -0,0 +1,27 @@ +package degoperation + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据uuid用户抽奖次数限制 API返回值 +taobao.degoperation.get.info.uuid + +根据uuid用户抽奖次数限制 +*/ +type TaobaoDegoperationGetInfoUuidAPIResponse struct { + model.CommonResponse + TaobaoDegoperationGetInfoUuidAPIResponseModel +} + +// 根据uuid用户抽奖次数限制 成功返回结果 +type TaobaoDegoperationGetInfoUuidAPIResponseModel struct { + XMLName xml.Name `xml:"degoperation_get_info_uuid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BonusResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/degoperation/TaobaoDegoperationGetInfoUuidResponse.go b/model/degoperation/TaobaoDegoperationGetInfoUuidResponse.go deleted file mode 100644 index d6453877a5..0000000000 --- a/model/degoperation/TaobaoDegoperationGetInfoUuidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package degoperation - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据uuid用户抽奖次数限制 API返回值 -taobao.degoperation.get.info.uuid - -根据uuid用户抽奖次数限制 -*/ -type TaobaoDegoperationGetInfoUuidAPIResponse struct { - model.CommonResponse - TaobaoDegoperationGetInfoUuidResponse -} - -// 根据uuid用户抽奖次数限制 成功返回结果 -type TaobaoDegoperationGetInfoUuidResponse struct { - XMLName xml.Name `xml:"degoperation_get_info_uuid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BonusResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/degoperation/TaobaoDegoperationShowTopRecordsAPIRequest.go b/model/degoperation/TaobaoDegoperationShowTopRecordsAPIRequest.go new file mode 100644 index 0000000000..20bb7464b6 --- /dev/null +++ b/model/degoperation/TaobaoDegoperationShowTopRecordsAPIRequest.go @@ -0,0 +1,80 @@ +package degoperation + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +活动中奖记录 API请求 +taobao.degoperation.show.top.records + +活动中奖记录 +*/ +type TaobaoDegoperationShowTopRecordsAPIRequest struct { + model.Params + // 活动后台配置 + _degAppKey string + // 活动后台配置 + _degEventKey string + // 返回数 + _topN int64 +} + +// 初始化TaobaoDegoperationShowTopRecordsAPIRequest对象 +func NewTaobaoDegoperationShowTopRecordsRequest() *TaobaoDegoperationShowTopRecordsAPIRequest{ + return &TaobaoDegoperationShowTopRecordsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDegoperationShowTopRecordsAPIRequest) GetApiMethodName() string { + return "taobao.degoperation.show.top.records" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDegoperationShowTopRecordsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DegAppKey Setter +// 活动后台配置 +func (r *TaobaoDegoperationShowTopRecordsAPIRequest) SetDegAppKey(_degAppKey string) error { + r._degAppKey = _degAppKey + r.Set("deg_app_key", _degAppKey) + return nil +} + +// DegAppKey Getter +func (r TaobaoDegoperationShowTopRecordsAPIRequest) GetDegAppKey() string { + return r._degAppKey +} +// DegEventKey Setter +// 活动后台配置 +func (r *TaobaoDegoperationShowTopRecordsAPIRequest) SetDegEventKey(_degEventKey string) error { + r._degEventKey = _degEventKey + r.Set("deg_event_key", _degEventKey) + return nil +} + +// DegEventKey Getter +func (r TaobaoDegoperationShowTopRecordsAPIRequest) GetDegEventKey() string { + return r._degEventKey +} +// TopN Setter +// 返回数 +func (r *TaobaoDegoperationShowTopRecordsAPIRequest) SetTopN(_topN int64) error { + r._topN = _topN + r.Set("top_n", _topN) + return nil +} + +// TopN Getter +func (r TaobaoDegoperationShowTopRecordsAPIRequest) GetTopN() int64 { + return r._topN +} diff --git a/model/degoperation/TaobaoDegoperationShowTopRecordsAPIResponse.go b/model/degoperation/TaobaoDegoperationShowTopRecordsAPIResponse.go new file mode 100644 index 0000000000..ed1016484e --- /dev/null +++ b/model/degoperation/TaobaoDegoperationShowTopRecordsAPIResponse.go @@ -0,0 +1,27 @@ +package degoperation + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +活动中奖记录 API返回值 +taobao.degoperation.show.top.records + +活动中奖记录 +*/ +type TaobaoDegoperationShowTopRecordsAPIResponse struct { + model.CommonResponse + TaobaoDegoperationShowTopRecordsAPIResponseModel +} + +// 活动中奖记录 成功返回结果 +type TaobaoDegoperationShowTopRecordsAPIResponseModel struct { + XMLName xml.Name `xml:"degoperation_show_top_records_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BonusResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/degoperation/TaobaoDegoperationShowTopRecordsResponse.go b/model/degoperation/TaobaoDegoperationShowTopRecordsResponse.go deleted file mode 100644 index 46254e7451..0000000000 --- a/model/degoperation/TaobaoDegoperationShowTopRecordsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package degoperation - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -活动中奖记录 API返回值 -taobao.degoperation.show.top.records - -活动中奖记录 -*/ -type TaobaoDegoperationShowTopRecordsAPIResponse struct { - model.CommonResponse - TaobaoDegoperationShowTopRecordsResponse -} - -// 活动中奖记录 成功返回结果 -type TaobaoDegoperationShowTopRecordsResponse struct { - XMLName xml.Name `xml:"degoperation_show_top_records_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BonusResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/degoperation/TaobaoDegoperationShowUserRecordsAPIRequest.go b/model/degoperation/TaobaoDegoperationShowUserRecordsAPIRequest.go new file mode 100644 index 0000000000..d6394e9c31 --- /dev/null +++ b/model/degoperation/TaobaoDegoperationShowUserRecordsAPIRequest.go @@ -0,0 +1,108 @@ +package degoperation + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户中奖记录 API请求 +taobao.degoperation.show.user.records + +用户中奖记录 +*/ +type TaobaoDegoperationShowUserRecordsAPIRequest struct { + model.Params + // 活动后台配置 + _degAppKey string + // 活动后台配置 + _eventKey string + // 第几页 + _pageNumber int64 + // 分页尺寸 + _pageSize int64 + // 系统信息 + _degAccessToken string +} + +// 初始化TaobaoDegoperationShowUserRecordsAPIRequest对象 +func NewTaobaoDegoperationShowUserRecordsRequest() *TaobaoDegoperationShowUserRecordsAPIRequest{ + return &TaobaoDegoperationShowUserRecordsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDegoperationShowUserRecordsAPIRequest) GetApiMethodName() string { + return "taobao.degoperation.show.user.records" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDegoperationShowUserRecordsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DegAppKey Setter +// 活动后台配置 +func (r *TaobaoDegoperationShowUserRecordsAPIRequest) SetDegAppKey(_degAppKey string) error { + r._degAppKey = _degAppKey + r.Set("deg_app_key", _degAppKey) + return nil +} + +// DegAppKey Getter +func (r TaobaoDegoperationShowUserRecordsAPIRequest) GetDegAppKey() string { + return r._degAppKey +} +// EventKey Setter +// 活动后台配置 +func (r *TaobaoDegoperationShowUserRecordsAPIRequest) SetEventKey(_eventKey string) error { + r._eventKey = _eventKey + r.Set("event_key", _eventKey) + return nil +} + +// EventKey Getter +func (r TaobaoDegoperationShowUserRecordsAPIRequest) GetEventKey() string { + return r._eventKey +} +// PageNumber Setter +// 第几页 +func (r *TaobaoDegoperationShowUserRecordsAPIRequest) SetPageNumber(_pageNumber int64) error { + r._pageNumber = _pageNumber + r.Set("page_number", _pageNumber) + return nil +} + +// PageNumber Getter +func (r TaobaoDegoperationShowUserRecordsAPIRequest) GetPageNumber() int64 { + return r._pageNumber +} +// PageSize Setter +// 分页尺寸 +func (r *TaobaoDegoperationShowUserRecordsAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoDegoperationShowUserRecordsAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// DegAccessToken Setter +// 系统信息 +func (r *TaobaoDegoperationShowUserRecordsAPIRequest) SetDegAccessToken(_degAccessToken string) error { + r._degAccessToken = _degAccessToken + r.Set("deg_access_token", _degAccessToken) + return nil +} + +// DegAccessToken Getter +func (r TaobaoDegoperationShowUserRecordsAPIRequest) GetDegAccessToken() string { + return r._degAccessToken +} diff --git a/model/degoperation/TaobaoDegoperationShowUserRecordsAPIResponse.go b/model/degoperation/TaobaoDegoperationShowUserRecordsAPIResponse.go new file mode 100644 index 0000000000..fd438d340b --- /dev/null +++ b/model/degoperation/TaobaoDegoperationShowUserRecordsAPIResponse.go @@ -0,0 +1,27 @@ +package degoperation + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户中奖记录 API返回值 +taobao.degoperation.show.user.records + +用户中奖记录 +*/ +type TaobaoDegoperationShowUserRecordsAPIResponse struct { + model.CommonResponse + TaobaoDegoperationShowUserRecordsAPIResponseModel +} + +// 用户中奖记录 成功返回结果 +type TaobaoDegoperationShowUserRecordsAPIResponseModel struct { + XMLName xml.Name `xml:"degoperation_show_user_records_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BonusResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/degoperation/TaobaoDegoperationShowUserRecordsResponse.go b/model/degoperation/TaobaoDegoperationShowUserRecordsResponse.go deleted file mode 100644 index 4facce71f1..0000000000 --- a/model/degoperation/TaobaoDegoperationShowUserRecordsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package degoperation - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户中奖记录 API返回值 -taobao.degoperation.show.user.records - -用户中奖记录 -*/ -type TaobaoDegoperationShowUserRecordsAPIResponse struct { - model.CommonResponse - TaobaoDegoperationShowUserRecordsResponse -} - -// 用户中奖记录 成功返回结果 -type TaobaoDegoperationShowUserRecordsResponse struct { - XMLName xml.Name `xml:"degoperation_show_user_records_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BonusResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherCancelvoucherAPIRequest.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherCancelvoucherAPIRequest.go new file mode 100644 index 0000000000..bb387e22d2 --- /dev/null +++ b/model/deliveryvoucher/TaobaoGameDeliveryvoucherCancelvoucherAPIRequest.go @@ -0,0 +1,52 @@ +package deliveryvoucher + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +作废券 API请求 +taobao.game.deliveryvoucher.cancelvoucher + +提货券发券接口:同步券和订单的关联信息 +*/ +type TaobaoGameDeliveryvoucherCancelvoucherAPIRequest struct { + model.Params + // 发券参数 + _param0 *CancelVoucherRequest +} + +// 初始化TaobaoGameDeliveryvoucherCancelvoucherAPIRequest对象 +func NewTaobaoGameDeliveryvoucherCancelvoucherRequest() *TaobaoGameDeliveryvoucherCancelvoucherAPIRequest{ + return &TaobaoGameDeliveryvoucherCancelvoucherAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoGameDeliveryvoucherCancelvoucherAPIRequest) GetApiMethodName() string { + return "taobao.game.deliveryvoucher.cancelvoucher" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoGameDeliveryvoucherCancelvoucherAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 发券参数 +func (r *TaobaoGameDeliveryvoucherCancelvoucherAPIRequest) SetParam0(_param0 *CancelVoucherRequest) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoGameDeliveryvoucherCancelvoucherAPIRequest) GetParam0() *CancelVoucherRequest { + return r._param0 +} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherCancelvoucherAPIResponse.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherCancelvoucherAPIResponse.go new file mode 100644 index 0000000000..fe32589abd --- /dev/null +++ b/model/deliveryvoucher/TaobaoGameDeliveryvoucherCancelvoucherAPIResponse.go @@ -0,0 +1,31 @@ +package deliveryvoucher + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +作废券 API返回值 +taobao.game.deliveryvoucher.cancelvoucher + +提货券发券接口:同步券和订单的关联信息 +*/ +type TaobaoGameDeliveryvoucherCancelvoucherAPIResponse struct { + model.CommonResponse + TaobaoGameDeliveryvoucherCancelvoucherAPIResponseModel +} + +// 作废券 成功返回结果 +type TaobaoGameDeliveryvoucherCancelvoucherAPIResponseModel struct { + XMLName xml.Name `xml:"game_deliveryvoucher_cancelvoucher_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // code + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherCancelvoucherResponse.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherCancelvoucherResponse.go deleted file mode 100644 index c158013f7e..0000000000 --- a/model/deliveryvoucher/TaobaoGameDeliveryvoucherCancelvoucherResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package deliveryvoucher - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -作废券 API返回值 -taobao.game.deliveryvoucher.cancelvoucher - -提货券发券接口:同步券和订单的关联信息 -*/ -type TaobaoGameDeliveryvoucherCancelvoucherAPIResponse struct { - model.CommonResponse - TaobaoGameDeliveryvoucherCancelvoucherResponse -} - -// 作废券 成功返回结果 -type TaobaoGameDeliveryvoucherCancelvoucherResponse struct { - XMLName xml.Name `xml:"game_deliveryvoucher_cancelvoucher_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // code - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherEvaluateAPIRequest.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherEvaluateAPIRequest.go new file mode 100644 index 0000000000..7be336c7ed --- /dev/null +++ b/model/deliveryvoucher/TaobaoGameDeliveryvoucherEvaluateAPIRequest.go @@ -0,0 +1,52 @@ +package deliveryvoucher + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卡券评价回传 API请求 +taobao.game.deliveryvoucher.evaluate + +卡券ISV回传商品评价 +*/ +type TaobaoGameDeliveryvoucherEvaluateAPIRequest struct { + model.Params + // 系统自动生成 + _param0 *VoucherEvaluateRequest +} + +// 初始化TaobaoGameDeliveryvoucherEvaluateAPIRequest对象 +func NewTaobaoGameDeliveryvoucherEvaluateRequest() *TaobaoGameDeliveryvoucherEvaluateAPIRequest{ + return &TaobaoGameDeliveryvoucherEvaluateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoGameDeliveryvoucherEvaluateAPIRequest) GetApiMethodName() string { + return "taobao.game.deliveryvoucher.evaluate" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoGameDeliveryvoucherEvaluateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 系统自动生成 +func (r *TaobaoGameDeliveryvoucherEvaluateAPIRequest) SetParam0(_param0 *VoucherEvaluateRequest) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoGameDeliveryvoucherEvaluateAPIRequest) GetParam0() *VoucherEvaluateRequest { + return r._param0 +} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherEvaluateAPIResponse.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherEvaluateAPIResponse.go new file mode 100644 index 0000000000..1d30c8bb19 --- /dev/null +++ b/model/deliveryvoucher/TaobaoGameDeliveryvoucherEvaluateAPIResponse.go @@ -0,0 +1,31 @@ +package deliveryvoucher + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卡券评价回传 API返回值 +taobao.game.deliveryvoucher.evaluate + +卡券ISV回传商品评价 +*/ +type TaobaoGameDeliveryvoucherEvaluateAPIResponse struct { + model.CommonResponse + TaobaoGameDeliveryvoucherEvaluateAPIResponseModel +} + +// 卡券评价回传 成功返回结果 +type TaobaoGameDeliveryvoucherEvaluateAPIResponseModel struct { + XMLName xml.Name `xml:"game_deliveryvoucher_evaluate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误原因 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // code + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 操作状态 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherEvaluateResponse.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherEvaluateResponse.go deleted file mode 100644 index 6172aca656..0000000000 --- a/model/deliveryvoucher/TaobaoGameDeliveryvoucherEvaluateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package deliveryvoucher - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卡券评价回传 API返回值 -taobao.game.deliveryvoucher.evaluate - -卡券ISV回传商品评价 -*/ -type TaobaoGameDeliveryvoucherEvaluateAPIResponse struct { - model.CommonResponse - TaobaoGameDeliveryvoucherEvaluateResponse -} - -// 卡券评价回传 成功返回结果 -type TaobaoGameDeliveryvoucherEvaluateResponse struct { - XMLName xml.Name `xml:"game_deliveryvoucher_evaluate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误原因 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // code - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 操作状态 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherOrdervoucherAPIRequest.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherOrdervoucherAPIRequest.go new file mode 100644 index 0000000000..4dae958572 --- /dev/null +++ b/model/deliveryvoucher/TaobaoGameDeliveryvoucherOrdervoucherAPIRequest.go @@ -0,0 +1,52 @@ +package deliveryvoucher + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +预约接口 API请求 +taobao.game.deliveryvoucher.ordervoucher + +提货券发券接口:同步券和订单的关联信息 +*/ +type TaobaoGameDeliveryvoucherOrdervoucherAPIRequest struct { + model.Params + // 发券参数 + _param0 *OrderVoucherRequest +} + +// 初始化TaobaoGameDeliveryvoucherOrdervoucherAPIRequest对象 +func NewTaobaoGameDeliveryvoucherOrdervoucherRequest() *TaobaoGameDeliveryvoucherOrdervoucherAPIRequest{ + return &TaobaoGameDeliveryvoucherOrdervoucherAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoGameDeliveryvoucherOrdervoucherAPIRequest) GetApiMethodName() string { + return "taobao.game.deliveryvoucher.ordervoucher" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoGameDeliveryvoucherOrdervoucherAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 发券参数 +func (r *TaobaoGameDeliveryvoucherOrdervoucherAPIRequest) SetParam0(_param0 *OrderVoucherRequest) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoGameDeliveryvoucherOrdervoucherAPIRequest) GetParam0() *OrderVoucherRequest { + return r._param0 +} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherOrdervoucherAPIResponse.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherOrdervoucherAPIResponse.go new file mode 100644 index 0000000000..ff74f8372e --- /dev/null +++ b/model/deliveryvoucher/TaobaoGameDeliveryvoucherOrdervoucherAPIResponse.go @@ -0,0 +1,31 @@ +package deliveryvoucher + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +预约接口 API返回值 +taobao.game.deliveryvoucher.ordervoucher + +提货券发券接口:同步券和订单的关联信息 +*/ +type TaobaoGameDeliveryvoucherOrdervoucherAPIResponse struct { + model.CommonResponse + TaobaoGameDeliveryvoucherOrdervoucherAPIResponseModel +} + +// 预约接口 成功返回结果 +type TaobaoGameDeliveryvoucherOrdervoucherAPIResponseModel struct { + XMLName xml.Name `xml:"game_deliveryvoucher_ordervoucher_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // code + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherOrdervoucherResponse.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherOrdervoucherResponse.go deleted file mode 100644 index 64144f615e..0000000000 --- a/model/deliveryvoucher/TaobaoGameDeliveryvoucherOrdervoucherResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package deliveryvoucher - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -预约接口 API返回值 -taobao.game.deliveryvoucher.ordervoucher - -提货券发券接口:同步券和订单的关联信息 -*/ -type TaobaoGameDeliveryvoucherOrdervoucherAPIResponse struct { - model.CommonResponse - TaobaoGameDeliveryvoucherOrdervoucherResponse -} - -// 预约接口 成功返回结果 -type TaobaoGameDeliveryvoucherOrdervoucherResponse struct { - XMLName xml.Name `xml:"game_deliveryvoucher_ordervoucher_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // code - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherRollbackvoucherAPIRequest.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherRollbackvoucherAPIRequest.go new file mode 100644 index 0000000000..4b2eb0dad5 --- /dev/null +++ b/model/deliveryvoucher/TaobaoGameDeliveryvoucherRollbackvoucherAPIRequest.go @@ -0,0 +1,52 @@ +package deliveryvoucher + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +回滚券 API请求 +taobao.game.deliveryvoucher.rollbackvoucher + +提货券发券接口:同步券和订单的关联信息 +*/ +type TaobaoGameDeliveryvoucherRollbackvoucherAPIRequest struct { + model.Params + // 发券参数 + _param0 *RollbackVoucherRequest +} + +// 初始化TaobaoGameDeliveryvoucherRollbackvoucherAPIRequest对象 +func NewTaobaoGameDeliveryvoucherRollbackvoucherRequest() *TaobaoGameDeliveryvoucherRollbackvoucherAPIRequest{ + return &TaobaoGameDeliveryvoucherRollbackvoucherAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoGameDeliveryvoucherRollbackvoucherAPIRequest) GetApiMethodName() string { + return "taobao.game.deliveryvoucher.rollbackvoucher" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoGameDeliveryvoucherRollbackvoucherAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 发券参数 +func (r *TaobaoGameDeliveryvoucherRollbackvoucherAPIRequest) SetParam0(_param0 *RollbackVoucherRequest) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoGameDeliveryvoucherRollbackvoucherAPIRequest) GetParam0() *RollbackVoucherRequest { + return r._param0 +} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherRollbackvoucherAPIResponse.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherRollbackvoucherAPIResponse.go new file mode 100644 index 0000000000..39da8a491c --- /dev/null +++ b/model/deliveryvoucher/TaobaoGameDeliveryvoucherRollbackvoucherAPIResponse.go @@ -0,0 +1,31 @@ +package deliveryvoucher + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +回滚券 API返回值 +taobao.game.deliveryvoucher.rollbackvoucher + +提货券发券接口:同步券和订单的关联信息 +*/ +type TaobaoGameDeliveryvoucherRollbackvoucherAPIResponse struct { + model.CommonResponse + TaobaoGameDeliveryvoucherRollbackvoucherAPIResponseModel +} + +// 回滚券 成功返回结果 +type TaobaoGameDeliveryvoucherRollbackvoucherAPIResponseModel struct { + XMLName xml.Name `xml:"game_deliveryvoucher_rollbackvoucher_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // code + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherRollbackvoucherResponse.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherRollbackvoucherResponse.go deleted file mode 100644 index 63e1ef5b83..0000000000 --- a/model/deliveryvoucher/TaobaoGameDeliveryvoucherRollbackvoucherResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package deliveryvoucher - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -回滚券 API返回值 -taobao.game.deliveryvoucher.rollbackvoucher - -提货券发券接口:同步券和订单的关联信息 -*/ -type TaobaoGameDeliveryvoucherRollbackvoucherAPIResponse struct { - model.CommonResponse - TaobaoGameDeliveryvoucherRollbackvoucherResponse -} - -// 回滚券 成功返回结果 -type TaobaoGameDeliveryvoucherRollbackvoucherResponse struct { - XMLName xml.Name `xml:"game_deliveryvoucher_rollbackvoucher_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // code - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherSendgoodsAPIRequest.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherSendgoodsAPIRequest.go new file mode 100644 index 0000000000..1c40c04029 --- /dev/null +++ b/model/deliveryvoucher/TaobaoGameDeliveryvoucherSendgoodsAPIRequest.go @@ -0,0 +1,52 @@ +package deliveryvoucher + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提货券发货接口 API请求 +taobao.game.deliveryvoucher.sendgoods + +提货券发券接口:同步券和订单的关联信息 +*/ +type TaobaoGameDeliveryvoucherSendgoodsAPIRequest struct { + model.Params + // 发券参数 + _param0 *SendVoucherRequest +} + +// 初始化TaobaoGameDeliveryvoucherSendgoodsAPIRequest对象 +func NewTaobaoGameDeliveryvoucherSendgoodsRequest() *TaobaoGameDeliveryvoucherSendgoodsAPIRequest{ + return &TaobaoGameDeliveryvoucherSendgoodsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoGameDeliveryvoucherSendgoodsAPIRequest) GetApiMethodName() string { + return "taobao.game.deliveryvoucher.sendgoods" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoGameDeliveryvoucherSendgoodsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 发券参数 +func (r *TaobaoGameDeliveryvoucherSendgoodsAPIRequest) SetParam0(_param0 *SendVoucherRequest) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoGameDeliveryvoucherSendgoodsAPIRequest) GetParam0() *SendVoucherRequest { + return r._param0 +} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherSendgoodsAPIResponse.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherSendgoodsAPIResponse.go new file mode 100644 index 0000000000..9f47d9095d --- /dev/null +++ b/model/deliveryvoucher/TaobaoGameDeliveryvoucherSendgoodsAPIResponse.go @@ -0,0 +1,31 @@ +package deliveryvoucher + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提货券发货接口 API返回值 +taobao.game.deliveryvoucher.sendgoods + +提货券发券接口:同步券和订单的关联信息 +*/ +type TaobaoGameDeliveryvoucherSendgoodsAPIResponse struct { + model.CommonResponse + TaobaoGameDeliveryvoucherSendgoodsAPIResponseModel +} + +// 提货券发货接口 成功返回结果 +type TaobaoGameDeliveryvoucherSendgoodsAPIResponseModel struct { + XMLName xml.Name `xml:"game_deliveryvoucher_sendgoods_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // code + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherSendgoodsResponse.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherSendgoodsResponse.go deleted file mode 100644 index 39f369ab17..0000000000 --- a/model/deliveryvoucher/TaobaoGameDeliveryvoucherSendgoodsResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package deliveryvoucher - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提货券发货接口 API返回值 -taobao.game.deliveryvoucher.sendgoods - -提货券发券接口:同步券和订单的关联信息 -*/ -type TaobaoGameDeliveryvoucherSendgoodsAPIResponse struct { - model.CommonResponse - TaobaoGameDeliveryvoucherSendgoodsResponse -} - -// 提货券发货接口 成功返回结果 -type TaobaoGameDeliveryvoucherSendgoodsResponse struct { - XMLName xml.Name `xml:"game_deliveryvoucher_sendgoods_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // code - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherSendvoucherAPIRequest.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherSendvoucherAPIRequest.go new file mode 100644 index 0000000000..4d2152589e --- /dev/null +++ b/model/deliveryvoucher/TaobaoGameDeliveryvoucherSendvoucherAPIRequest.go @@ -0,0 +1,52 @@ +package deliveryvoucher + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提货券发券接口 API请求 +taobao.game.deliveryvoucher.sendvoucher + +提货券发券接口:同步券和订单的关联信息 +*/ +type TaobaoGameDeliveryvoucherSendvoucherAPIRequest struct { + model.Params + // 发券参数 + _param0 *SendVoucherRequest +} + +// 初始化TaobaoGameDeliveryvoucherSendvoucherAPIRequest对象 +func NewTaobaoGameDeliveryvoucherSendvoucherRequest() *TaobaoGameDeliveryvoucherSendvoucherAPIRequest{ + return &TaobaoGameDeliveryvoucherSendvoucherAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoGameDeliveryvoucherSendvoucherAPIRequest) GetApiMethodName() string { + return "taobao.game.deliveryvoucher.sendvoucher" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoGameDeliveryvoucherSendvoucherAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 发券参数 +func (r *TaobaoGameDeliveryvoucherSendvoucherAPIRequest) SetParam0(_param0 *SendVoucherRequest) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoGameDeliveryvoucherSendvoucherAPIRequest) GetParam0() *SendVoucherRequest { + return r._param0 +} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherSendvoucherAPIResponse.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherSendvoucherAPIResponse.go new file mode 100644 index 0000000000..8699560281 --- /dev/null +++ b/model/deliveryvoucher/TaobaoGameDeliveryvoucherSendvoucherAPIResponse.go @@ -0,0 +1,31 @@ +package deliveryvoucher + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提货券发券接口 API返回值 +taobao.game.deliveryvoucher.sendvoucher + +提货券发券接口:同步券和订单的关联信息 +*/ +type TaobaoGameDeliveryvoucherSendvoucherAPIResponse struct { + model.CommonResponse + TaobaoGameDeliveryvoucherSendvoucherAPIResponseModel +} + +// 提货券发券接口 成功返回结果 +type TaobaoGameDeliveryvoucherSendvoucherAPIResponseModel struct { + XMLName xml.Name `xml:"game_deliveryvoucher_sendvoucher_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // code + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherSendvoucherResponse.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherSendvoucherResponse.go deleted file mode 100644 index 2dbd49198c..0000000000 --- a/model/deliveryvoucher/TaobaoGameDeliveryvoucherSendvoucherResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package deliveryvoucher - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提货券发券接口 API返回值 -taobao.game.deliveryvoucher.sendvoucher - -提货券发券接口:同步券和订单的关联信息 -*/ -type TaobaoGameDeliveryvoucherSendvoucherAPIResponse struct { - model.CommonResponse - TaobaoGameDeliveryvoucherSendvoucherResponse -} - -// 提货券发券接口 成功返回结果 -type TaobaoGameDeliveryvoucherSendvoucherResponse struct { - XMLName xml.Name `xml:"game_deliveryvoucher_sendvoucher_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // code - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherWatchAPIRequest.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherWatchAPIRequest.go new file mode 100644 index 0000000000..903749bc45 --- /dev/null +++ b/model/deliveryvoucher/TaobaoGameDeliveryvoucherWatchAPIRequest.go @@ -0,0 +1,52 @@ +package deliveryvoucher + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +监控预约数据 API请求 +taobao.game.deliveryvoucher.watch + +监控预约数据 +*/ +type TaobaoGameDeliveryvoucherWatchAPIRequest struct { + model.Params + // 入参 + _param0 *WatchAppointmentRequest +} + +// 初始化TaobaoGameDeliveryvoucherWatchAPIRequest对象 +func NewTaobaoGameDeliveryvoucherWatchRequest() *TaobaoGameDeliveryvoucherWatchAPIRequest{ + return &TaobaoGameDeliveryvoucherWatchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoGameDeliveryvoucherWatchAPIRequest) GetApiMethodName() string { + return "taobao.game.deliveryvoucher.watch" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoGameDeliveryvoucherWatchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 入参 +func (r *TaobaoGameDeliveryvoucherWatchAPIRequest) SetParam0(_param0 *WatchAppointmentRequest) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoGameDeliveryvoucherWatchAPIRequest) GetParam0() *WatchAppointmentRequest { + return r._param0 +} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherWatchAPIResponse.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherWatchAPIResponse.go new file mode 100644 index 0000000000..a5a4bef822 --- /dev/null +++ b/model/deliveryvoucher/TaobaoGameDeliveryvoucherWatchAPIResponse.go @@ -0,0 +1,31 @@ +package deliveryvoucher + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +监控预约数据 API返回值 +taobao.game.deliveryvoucher.watch + +监控预约数据 +*/ +type TaobaoGameDeliveryvoucherWatchAPIResponse struct { + model.CommonResponse + TaobaoGameDeliveryvoucherWatchAPIResponseModel +} + +// 监控预约数据 成功返回结果 +type TaobaoGameDeliveryvoucherWatchAPIResponseModel struct { + XMLName xml.Name `xml:"game_deliveryvoucher_watch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // code + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // isSuccess + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/deliveryvoucher/TaobaoGameDeliveryvoucherWatchResponse.go b/model/deliveryvoucher/TaobaoGameDeliveryvoucherWatchResponse.go deleted file mode 100644 index f37c18f46f..0000000000 --- a/model/deliveryvoucher/TaobaoGameDeliveryvoucherWatchResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package deliveryvoucher - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -监控预约数据 API返回值 -taobao.game.deliveryvoucher.watch - -监控预约数据 -*/ -type TaobaoGameDeliveryvoucherWatchAPIResponse struct { - model.CommonResponse - TaobaoGameDeliveryvoucherWatchResponse -} - -// 监控预约数据 成功返回结果 -type TaobaoGameDeliveryvoucherWatchResponse struct { - XMLName xml.Name `xml:"game_deliveryvoucher_watch_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // code - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // isSuccess - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/dengta/AlibabaPicturesDengtaImsDouyinAccountChangedAPIRequest.go b/model/dengta/AlibabaPicturesDengtaImsDouyinAccountChangedAPIRequest.go new file mode 100644 index 0000000000..352e8b3205 --- /dev/null +++ b/model/dengta/AlibabaPicturesDengtaImsDouyinAccountChangedAPIRequest.go @@ -0,0 +1,80 @@ +package dengta + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +接收发生变化的抖音帐号 API请求 +alibaba.pictures.dengta.ims.douyin.account.changed + +接收发生变化的抖音帐号 +*/ +type AlibabaPicturesDengtaImsDouyinAccountChangedAPIRequest struct { + model.Params + // 天下秀账号ID列表,多个用逗号分隔 + _accountIds string + // 3=抖音,1-微博 2-微信 + _accountType int64 + // 1 下架 2 账号变更(包括账号上架) + _changeType int64 +} + +// 初始化AlibabaPicturesDengtaImsDouyinAccountChangedAPIRequest对象 +func NewAlibabaPicturesDengtaImsDouyinAccountChangedRequest() *AlibabaPicturesDengtaImsDouyinAccountChangedAPIRequest{ + return &AlibabaPicturesDengtaImsDouyinAccountChangedAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPicturesDengtaImsDouyinAccountChangedAPIRequest) GetApiMethodName() string { + return "alibaba.pictures.dengta.ims.douyin.account.changed" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPicturesDengtaImsDouyinAccountChangedAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccountIds Setter +// 天下秀账号ID列表,多个用逗号分隔 +func (r *AlibabaPicturesDengtaImsDouyinAccountChangedAPIRequest) SetAccountIds(_accountIds string) error { + r._accountIds = _accountIds + r.Set("account_ids", _accountIds) + return nil +} + +// AccountIds Getter +func (r AlibabaPicturesDengtaImsDouyinAccountChangedAPIRequest) GetAccountIds() string { + return r._accountIds +} +// AccountType Setter +// 3=抖音,1-微博 2-微信 +func (r *AlibabaPicturesDengtaImsDouyinAccountChangedAPIRequest) SetAccountType(_accountType int64) error { + r._accountType = _accountType + r.Set("account_type", _accountType) + return nil +} + +// AccountType Getter +func (r AlibabaPicturesDengtaImsDouyinAccountChangedAPIRequest) GetAccountType() int64 { + return r._accountType +} +// ChangeType Setter +// 1 下架 2 账号变更(包括账号上架) +func (r *AlibabaPicturesDengtaImsDouyinAccountChangedAPIRequest) SetChangeType(_changeType int64) error { + r._changeType = _changeType + r.Set("change_type", _changeType) + return nil +} + +// ChangeType Getter +func (r AlibabaPicturesDengtaImsDouyinAccountChangedAPIRequest) GetChangeType() int64 { + return r._changeType +} diff --git a/model/dengta/AlibabaPicturesDengtaImsDouyinAccountChangedAPIResponse.go b/model/dengta/AlibabaPicturesDengtaImsDouyinAccountChangedAPIResponse.go new file mode 100644 index 0000000000..bffb9036b6 --- /dev/null +++ b/model/dengta/AlibabaPicturesDengtaImsDouyinAccountChangedAPIResponse.go @@ -0,0 +1,27 @@ +package dengta + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +接收发生变化的抖音帐号 API返回值 +alibaba.pictures.dengta.ims.douyin.account.changed + +接收发生变化的抖音帐号 +*/ +type AlibabaPicturesDengtaImsDouyinAccountChangedAPIResponse struct { + model.CommonResponse + AlibabaPicturesDengtaImsDouyinAccountChangedAPIResponseModel +} + +// 接收发生变化的抖音帐号 成功返回结果 +type AlibabaPicturesDengtaImsDouyinAccountChangedAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_pictures_dengta_ims_douyin_account_changed_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *GeneralResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/dengta/AlibabaPicturesDengtaImsDouyinAccountChangedResponse.go b/model/dengta/AlibabaPicturesDengtaImsDouyinAccountChangedResponse.go deleted file mode 100644 index dc829ccd65..0000000000 --- a/model/dengta/AlibabaPicturesDengtaImsDouyinAccountChangedResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package dengta - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -接收发生变化的抖音帐号 API返回值 -alibaba.pictures.dengta.ims.douyin.account.changed - -接收发生变化的抖音帐号 -*/ -type AlibabaPicturesDengtaImsDouyinAccountChangedAPIResponse struct { - model.CommonResponse - AlibabaPicturesDengtaImsDouyinAccountChangedResponse -} - -// 接收发生变化的抖音帐号 成功返回结果 -type AlibabaPicturesDengtaImsDouyinAccountChangedResponse struct { - XMLName xml.Name `xml:"alibaba_pictures_dengta_ims_douyin_account_changed_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *GeneralResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/dengta/AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest.go b/model/dengta/AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest.go new file mode 100644 index 0000000000..00b933d9c6 --- /dev/null +++ b/model/dengta/AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest.go @@ -0,0 +1,122 @@ +package dengta + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天下秀回传订单执行状态变动 API请求 +alibaba.pictures.dengta.ims.order.status.change + +天下秀回传订单执行状态变动 +*/ +type AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest struct { + model.Params + // 状态发生的时间 2020-01-02 10:02:03 + _changeTime string + // 描述,如ims关单,返回关单原因。 + _comments string + // 天下秀订单id + _imsOrderId string + // 3=抖音,1-微博 2-微信 + _accountType int64 + // 扩展字段 + _extJson string + // 1:待执行 2:执行中 3:发布 4:完成 5:取消 + _status int64 +} + +// 初始化AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest对象 +func NewAlibabaPicturesDengtaImsOrderStatusChangeRequest() *AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest{ + return &AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest) GetApiMethodName() string { + return "alibaba.pictures.dengta.ims.order.status.change" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChangeTime Setter +// 状态发生的时间 2020-01-02 10:02:03 +func (r *AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest) SetChangeTime(_changeTime string) error { + r._changeTime = _changeTime + r.Set("change_time", _changeTime) + return nil +} + +// ChangeTime Getter +func (r AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest) GetChangeTime() string { + return r._changeTime +} +// Comments Setter +// 描述,如ims关单,返回关单原因。 +func (r *AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest) SetComments(_comments string) error { + r._comments = _comments + r.Set("comments", _comments) + return nil +} + +// Comments Getter +func (r AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest) GetComments() string { + return r._comments +} +// ImsOrderId Setter +// 天下秀订单id +func (r *AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest) SetImsOrderId(_imsOrderId string) error { + r._imsOrderId = _imsOrderId + r.Set("ims_order_id", _imsOrderId) + return nil +} + +// ImsOrderId Getter +func (r AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest) GetImsOrderId() string { + return r._imsOrderId +} +// AccountType Setter +// 3=抖音,1-微博 2-微信 +func (r *AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest) SetAccountType(_accountType int64) error { + r._accountType = _accountType + r.Set("account_type", _accountType) + return nil +} + +// AccountType Getter +func (r AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest) GetAccountType() int64 { + return r._accountType +} +// ExtJson Setter +// 扩展字段 +func (r *AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest) SetExtJson(_extJson string) error { + r._extJson = _extJson + r.Set("ext_json", _extJson) + return nil +} + +// ExtJson Getter +func (r AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest) GetExtJson() string { + return r._extJson +} +// Status Setter +// 1:待执行 2:执行中 3:发布 4:完成 5:取消 +func (r *AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaPicturesDengtaImsOrderStatusChangeAPIRequest) GetStatus() int64 { + return r._status +} diff --git a/model/dengta/AlibabaPicturesDengtaImsOrderStatusChangeAPIResponse.go b/model/dengta/AlibabaPicturesDengtaImsOrderStatusChangeAPIResponse.go new file mode 100644 index 0000000000..121fbb236c --- /dev/null +++ b/model/dengta/AlibabaPicturesDengtaImsOrderStatusChangeAPIResponse.go @@ -0,0 +1,27 @@ +package dengta + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天下秀回传订单执行状态变动 API返回值 +alibaba.pictures.dengta.ims.order.status.change + +天下秀回传订单执行状态变动 +*/ +type AlibabaPicturesDengtaImsOrderStatusChangeAPIResponse struct { + model.CommonResponse + AlibabaPicturesDengtaImsOrderStatusChangeAPIResponseModel +} + +// 天下秀回传订单执行状态变动 成功返回结果 +type AlibabaPicturesDengtaImsOrderStatusChangeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_pictures_dengta_ims_order_status_change_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口出参 + Result *GeneralResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/dengta/AlibabaPicturesDengtaImsOrderStatusChangeResponse.go b/model/dengta/AlibabaPicturesDengtaImsOrderStatusChangeResponse.go deleted file mode 100644 index 64063b43b9..0000000000 --- a/model/dengta/AlibabaPicturesDengtaImsOrderStatusChangeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package dengta - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天下秀回传订单执行状态变动 API返回值 -alibaba.pictures.dengta.ims.order.status.change - -天下秀回传订单执行状态变动 -*/ -type AlibabaPicturesDengtaImsOrderStatusChangeAPIResponse struct { - model.CommonResponse - AlibabaPicturesDengtaImsOrderStatusChangeResponse -} - -// 天下秀回传订单执行状态变动 成功返回结果 -type AlibabaPicturesDengtaImsOrderStatusChangeResponse struct { - XMLName xml.Name `xml:"alibaba_pictures_dengta_ims_order_status_change_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口出参 - Result *GeneralResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/dengta/AlibabaPicturesDengtaOrderEffectImportAPIRequest.go b/model/dengta/AlibabaPicturesDengtaOrderEffectImportAPIRequest.go new file mode 100644 index 0000000000..b75feace36 --- /dev/null +++ b/model/dengta/AlibabaPicturesDengtaOrderEffectImportAPIRequest.go @@ -0,0 +1,332 @@ +package dengta + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天下秀订单数据导入 API请求 +alibaba.pictures.dengta.order.effect.import + +提供接口给天下秀,天下秀订单数据效果生成时回流到灯塔系统 +*/ +type AlibabaPicturesDengtaOrderEffectImportAPIRequest struct { + model.Params + // 微博订单id + _imsOrderId string + // 微博链接 + _url string + // 阅读数 + _readsCount int64 + // 转发数 + _repostsCount int64 + // 评论数 + _commentsCount int64 + // 点赞数 + _attitudesCount int64 + // 微博昵称 + _weiboNick string + // 粉丝数 + _followersCount int64 + // 传播关键节点 + _nodesTop string + // 关键路径 + _keyPath string + // 微博来源 + _weiboSource string + // 类型分布 + _verifiedType string + // 性别分布 + _gender string + // 粉丝分布 + _fansCount string + // 地域分布 + _location string + // 关系图 + _graph string + // 关键词云 + _words string + // 每小时转发量 + _repostNumPerHour string + // 点赞量每小时趋势图 + _attitudesNumPerHour string + // 是否成功 + _isSuccess int64 + // 失败原因 + _failReason string +} + +// 初始化AlibabaPicturesDengtaOrderEffectImportAPIRequest对象 +func NewAlibabaPicturesDengtaOrderEffectImportRequest() *AlibabaPicturesDengtaOrderEffectImportAPIRequest{ + return &AlibabaPicturesDengtaOrderEffectImportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetApiMethodName() string { + return "alibaba.pictures.dengta.order.effect.import" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImsOrderId Setter +// 微博订单id +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetImsOrderId(_imsOrderId string) error { + r._imsOrderId = _imsOrderId + r.Set("ims_order_id", _imsOrderId) + return nil +} + +// ImsOrderId Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetImsOrderId() string { + return r._imsOrderId +} +// Url Setter +// 微博链接 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetUrl(_url string) error { + r._url = _url + r.Set("url", _url) + return nil +} + +// Url Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetUrl() string { + return r._url +} +// ReadsCount Setter +// 阅读数 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetReadsCount(_readsCount int64) error { + r._readsCount = _readsCount + r.Set("reads_count", _readsCount) + return nil +} + +// ReadsCount Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetReadsCount() int64 { + return r._readsCount +} +// RepostsCount Setter +// 转发数 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetRepostsCount(_repostsCount int64) error { + r._repostsCount = _repostsCount + r.Set("reposts_count", _repostsCount) + return nil +} + +// RepostsCount Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetRepostsCount() int64 { + return r._repostsCount +} +// CommentsCount Setter +// 评论数 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetCommentsCount(_commentsCount int64) error { + r._commentsCount = _commentsCount + r.Set("comments_count", _commentsCount) + return nil +} + +// CommentsCount Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetCommentsCount() int64 { + return r._commentsCount +} +// AttitudesCount Setter +// 点赞数 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetAttitudesCount(_attitudesCount int64) error { + r._attitudesCount = _attitudesCount + r.Set("attitudes_count", _attitudesCount) + return nil +} + +// AttitudesCount Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetAttitudesCount() int64 { + return r._attitudesCount +} +// WeiboNick Setter +// 微博昵称 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetWeiboNick(_weiboNick string) error { + r._weiboNick = _weiboNick + r.Set("weibo_nick", _weiboNick) + return nil +} + +// WeiboNick Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetWeiboNick() string { + return r._weiboNick +} +// FollowersCount Setter +// 粉丝数 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetFollowersCount(_followersCount int64) error { + r._followersCount = _followersCount + r.Set("followers_count", _followersCount) + return nil +} + +// FollowersCount Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetFollowersCount() int64 { + return r._followersCount +} +// NodesTop Setter +// 传播关键节点 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetNodesTop(_nodesTop string) error { + r._nodesTop = _nodesTop + r.Set("nodes_top", _nodesTop) + return nil +} + +// NodesTop Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetNodesTop() string { + return r._nodesTop +} +// KeyPath Setter +// 关键路径 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetKeyPath(_keyPath string) error { + r._keyPath = _keyPath + r.Set("key_path", _keyPath) + return nil +} + +// KeyPath Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetKeyPath() string { + return r._keyPath +} +// WeiboSource Setter +// 微博来源 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetWeiboSource(_weiboSource string) error { + r._weiboSource = _weiboSource + r.Set("weibo_source", _weiboSource) + return nil +} + +// WeiboSource Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetWeiboSource() string { + return r._weiboSource +} +// VerifiedType Setter +// 类型分布 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetVerifiedType(_verifiedType string) error { + r._verifiedType = _verifiedType + r.Set("verified_type", _verifiedType) + return nil +} + +// VerifiedType Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetVerifiedType() string { + return r._verifiedType +} +// Gender Setter +// 性别分布 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetGender(_gender string) error { + r._gender = _gender + r.Set("gender", _gender) + return nil +} + +// Gender Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetGender() string { + return r._gender +} +// FansCount Setter +// 粉丝分布 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetFansCount(_fansCount string) error { + r._fansCount = _fansCount + r.Set("fans_count", _fansCount) + return nil +} + +// FansCount Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetFansCount() string { + return r._fansCount +} +// Location Setter +// 地域分布 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetLocation(_location string) error { + r._location = _location + r.Set("location", _location) + return nil +} + +// Location Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetLocation() string { + return r._location +} +// Graph Setter +// 关系图 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetGraph(_graph string) error { + r._graph = _graph + r.Set("graph", _graph) + return nil +} + +// Graph Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetGraph() string { + return r._graph +} +// Words Setter +// 关键词云 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetWords(_words string) error { + r._words = _words + r.Set("words", _words) + return nil +} + +// Words Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetWords() string { + return r._words +} +// RepostNumPerHour Setter +// 每小时转发量 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetRepostNumPerHour(_repostNumPerHour string) error { + r._repostNumPerHour = _repostNumPerHour + r.Set("repost_num_per_hour", _repostNumPerHour) + return nil +} + +// RepostNumPerHour Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetRepostNumPerHour() string { + return r._repostNumPerHour +} +// AttitudesNumPerHour Setter +// 点赞量每小时趋势图 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetAttitudesNumPerHour(_attitudesNumPerHour string) error { + r._attitudesNumPerHour = _attitudesNumPerHour + r.Set("attitudes_num_per_hour", _attitudesNumPerHour) + return nil +} + +// AttitudesNumPerHour Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetAttitudesNumPerHour() string { + return r._attitudesNumPerHour +} +// IsSuccess Setter +// 是否成功 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetIsSuccess(_isSuccess int64) error { + r._isSuccess = _isSuccess + r.Set("is_success", _isSuccess) + return nil +} + +// IsSuccess Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetIsSuccess() int64 { + return r._isSuccess +} +// FailReason Setter +// 失败原因 +func (r *AlibabaPicturesDengtaOrderEffectImportAPIRequest) SetFailReason(_failReason string) error { + r._failReason = _failReason + r.Set("fail_reason", _failReason) + return nil +} + +// FailReason Getter +func (r AlibabaPicturesDengtaOrderEffectImportAPIRequest) GetFailReason() string { + return r._failReason +} diff --git a/model/dengta/AlibabaPicturesDengtaOrderEffectImportAPIResponse.go b/model/dengta/AlibabaPicturesDengtaOrderEffectImportAPIResponse.go new file mode 100644 index 0000000000..51fc6ea85a --- /dev/null +++ b/model/dengta/AlibabaPicturesDengtaOrderEffectImportAPIResponse.go @@ -0,0 +1,27 @@ +package dengta + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天下秀订单数据导入 API返回值 +alibaba.pictures.dengta.order.effect.import + +提供接口给天下秀,天下秀订单数据效果生成时回流到灯塔系统 +*/ +type AlibabaPicturesDengtaOrderEffectImportAPIResponse struct { + model.CommonResponse + AlibabaPicturesDengtaOrderEffectImportAPIResponseModel +} + +// 天下秀订单数据导入 成功返回结果 +type AlibabaPicturesDengtaOrderEffectImportAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_pictures_dengta_order_effect_import_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *ApiGeneralResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/dengta/AlibabaPicturesDengtaOrderEffectImportResponse.go b/model/dengta/AlibabaPicturesDengtaOrderEffectImportResponse.go deleted file mode 100644 index 5eaf7838fa..0000000000 --- a/model/dengta/AlibabaPicturesDengtaOrderEffectImportResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package dengta - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天下秀订单数据导入 API返回值 -alibaba.pictures.dengta.order.effect.import - -提供接口给天下秀,天下秀订单数据效果生成时回流到灯塔系统 -*/ -type AlibabaPicturesDengtaOrderEffectImportAPIResponse struct { - model.CommonResponse - AlibabaPicturesDengtaOrderEffectImportResponse -} - -// 天下秀订单数据导入 成功返回结果 -type AlibabaPicturesDengtaOrderEffectImportResponse struct { - XMLName xml.Name `xml:"alibaba_pictures_dengta_order_effect_import_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *ApiGeneralResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/dengta/AlibabaPicturesDengtaOrderStatusChangeAPIRequest.go b/model/dengta/AlibabaPicturesDengtaOrderStatusChangeAPIRequest.go new file mode 100644 index 0000000000..1c70ac6af4 --- /dev/null +++ b/model/dengta/AlibabaPicturesDengtaOrderStatusChangeAPIRequest.go @@ -0,0 +1,108 @@ +package dengta + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天下秀订单状态变更通知 API请求 +alibaba.pictures.dengta.order.status.change + +天下秀订单状态变更通知 +*/ +type AlibabaPicturesDengtaOrderStatusChangeAPIRequest struct { + model.Params + // 拒绝原因 + _remark string + // 新状态 + _status int64 + // 变更时间 + _changeTime string + // ims订单编号 + _imsOrderId string + // task 编号 + _aliTaskId string +} + +// 初始化AlibabaPicturesDengtaOrderStatusChangeAPIRequest对象 +func NewAlibabaPicturesDengtaOrderStatusChangeRequest() *AlibabaPicturesDengtaOrderStatusChangeAPIRequest{ + return &AlibabaPicturesDengtaOrderStatusChangeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPicturesDengtaOrderStatusChangeAPIRequest) GetApiMethodName() string { + return "alibaba.pictures.dengta.order.status.change" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPicturesDengtaOrderStatusChangeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Remark Setter +// 拒绝原因 +func (r *AlibabaPicturesDengtaOrderStatusChangeAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r AlibabaPicturesDengtaOrderStatusChangeAPIRequest) GetRemark() string { + return r._remark +} +// Status Setter +// 新状态 +func (r *AlibabaPicturesDengtaOrderStatusChangeAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaPicturesDengtaOrderStatusChangeAPIRequest) GetStatus() int64 { + return r._status +} +// ChangeTime Setter +// 变更时间 +func (r *AlibabaPicturesDengtaOrderStatusChangeAPIRequest) SetChangeTime(_changeTime string) error { + r._changeTime = _changeTime + r.Set("change_time", _changeTime) + return nil +} + +// ChangeTime Getter +func (r AlibabaPicturesDengtaOrderStatusChangeAPIRequest) GetChangeTime() string { + return r._changeTime +} +// ImsOrderId Setter +// ims订单编号 +func (r *AlibabaPicturesDengtaOrderStatusChangeAPIRequest) SetImsOrderId(_imsOrderId string) error { + r._imsOrderId = _imsOrderId + r.Set("ims_order_id", _imsOrderId) + return nil +} + +// ImsOrderId Getter +func (r AlibabaPicturesDengtaOrderStatusChangeAPIRequest) GetImsOrderId() string { + return r._imsOrderId +} +// AliTaskId Setter +// task 编号 +func (r *AlibabaPicturesDengtaOrderStatusChangeAPIRequest) SetAliTaskId(_aliTaskId string) error { + r._aliTaskId = _aliTaskId + r.Set("ali_task_id", _aliTaskId) + return nil +} + +// AliTaskId Getter +func (r AlibabaPicturesDengtaOrderStatusChangeAPIRequest) GetAliTaskId() string { + return r._aliTaskId +} diff --git a/model/dengta/AlibabaPicturesDengtaOrderStatusChangeAPIResponse.go b/model/dengta/AlibabaPicturesDengtaOrderStatusChangeAPIResponse.go new file mode 100644 index 0000000000..baebc8c56a --- /dev/null +++ b/model/dengta/AlibabaPicturesDengtaOrderStatusChangeAPIResponse.go @@ -0,0 +1,27 @@ +package dengta + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天下秀订单状态变更通知 API返回值 +alibaba.pictures.dengta.order.status.change + +天下秀订单状态变更通知 +*/ +type AlibabaPicturesDengtaOrderStatusChangeAPIResponse struct { + model.CommonResponse + AlibabaPicturesDengtaOrderStatusChangeAPIResponseModel +} + +// 天下秀订单状态变更通知 成功返回结果 +type AlibabaPicturesDengtaOrderStatusChangeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_pictures_dengta_order_status_change_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ApiGeneralResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/dengta/AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest.go b/model/dengta/AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest.go new file mode 100644 index 0000000000..126f791308 --- /dev/null +++ b/model/dengta/AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest.go @@ -0,0 +1,150 @@ +package dengta + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天下秀订单状态变更通知 API请求 +alibaba.pictures.dengta.order.status.change.new + +天下秀订单状态变更通知 +*/ +type AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest struct { + model.Params + // 拒绝原因 + _remark string + // 新状态 + _status int64 + // 变更时间 + _changeTime string + // ims订单编号 + _imsOrderId string + // task 编号 + _aliTaskId string + // 发布内容 + _taskContent string + // 发布图片url列表 + _taskPic string + // 扩展字段。json结构 + _extJson string +} + +// 初始化AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest对象 +func NewAlibabaPicturesDengtaOrderStatusChangeNewRequest() *AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest{ + return &AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest) GetApiMethodName() string { + return "alibaba.pictures.dengta.order.status.change.new" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Remark Setter +// 拒绝原因 +func (r *AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest) GetRemark() string { + return r._remark +} +// Status Setter +// 新状态 +func (r *AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest) GetStatus() int64 { + return r._status +} +// ChangeTime Setter +// 变更时间 +func (r *AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest) SetChangeTime(_changeTime string) error { + r._changeTime = _changeTime + r.Set("change_time", _changeTime) + return nil +} + +// ChangeTime Getter +func (r AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest) GetChangeTime() string { + return r._changeTime +} +// ImsOrderId Setter +// ims订单编号 +func (r *AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest) SetImsOrderId(_imsOrderId string) error { + r._imsOrderId = _imsOrderId + r.Set("ims_order_id", _imsOrderId) + return nil +} + +// ImsOrderId Getter +func (r AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest) GetImsOrderId() string { + return r._imsOrderId +} +// AliTaskId Setter +// task 编号 +func (r *AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest) SetAliTaskId(_aliTaskId string) error { + r._aliTaskId = _aliTaskId + r.Set("ali_task_id", _aliTaskId) + return nil +} + +// AliTaskId Getter +func (r AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest) GetAliTaskId() string { + return r._aliTaskId +} +// TaskContent Setter +// 发布内容 +func (r *AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest) SetTaskContent(_taskContent string) error { + r._taskContent = _taskContent + r.Set("task_content", _taskContent) + return nil +} + +// TaskContent Getter +func (r AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest) GetTaskContent() string { + return r._taskContent +} +// TaskPic Setter +// 发布图片url列表 +func (r *AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest) SetTaskPic(_taskPic string) error { + r._taskPic = _taskPic + r.Set("task_pic", _taskPic) + return nil +} + +// TaskPic Getter +func (r AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest) GetTaskPic() string { + return r._taskPic +} +// ExtJson Setter +// 扩展字段。json结构 +func (r *AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest) SetExtJson(_extJson string) error { + r._extJson = _extJson + r.Set("ext_json", _extJson) + return nil +} + +// ExtJson Getter +func (r AlibabaPicturesDengtaOrderStatusChangeNewAPIRequest) GetExtJson() string { + return r._extJson +} diff --git a/model/dengta/AlibabaPicturesDengtaOrderStatusChangeNewAPIResponse.go b/model/dengta/AlibabaPicturesDengtaOrderStatusChangeNewAPIResponse.go new file mode 100644 index 0000000000..a13c00257b --- /dev/null +++ b/model/dengta/AlibabaPicturesDengtaOrderStatusChangeNewAPIResponse.go @@ -0,0 +1,27 @@ +package dengta + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天下秀订单状态变更通知 API返回值 +alibaba.pictures.dengta.order.status.change.new + +天下秀订单状态变更通知 +*/ +type AlibabaPicturesDengtaOrderStatusChangeNewAPIResponse struct { + model.CommonResponse + AlibabaPicturesDengtaOrderStatusChangeNewAPIResponseModel +} + +// 天下秀订单状态变更通知 成功返回结果 +type AlibabaPicturesDengtaOrderStatusChangeNewAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_pictures_dengta_order_status_change_new_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ApiGeneralResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/dengta/AlibabaPicturesDengtaOrderStatusChangeNewResponse.go b/model/dengta/AlibabaPicturesDengtaOrderStatusChangeNewResponse.go deleted file mode 100644 index 33a4e459fd..0000000000 --- a/model/dengta/AlibabaPicturesDengtaOrderStatusChangeNewResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package dengta - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天下秀订单状态变更通知 API返回值 -alibaba.pictures.dengta.order.status.change.new - -天下秀订单状态变更通知 -*/ -type AlibabaPicturesDengtaOrderStatusChangeNewAPIResponse struct { - model.CommonResponse - AlibabaPicturesDengtaOrderStatusChangeNewResponse -} - -// 天下秀订单状态变更通知 成功返回结果 -type AlibabaPicturesDengtaOrderStatusChangeNewResponse struct { - XMLName xml.Name `xml:"alibaba_pictures_dengta_order_status_change_new_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ApiGeneralResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/dengta/AlibabaPicturesDengtaOrderStatusChangeResponse.go b/model/dengta/AlibabaPicturesDengtaOrderStatusChangeResponse.go deleted file mode 100644 index dc5786da87..0000000000 --- a/model/dengta/AlibabaPicturesDengtaOrderStatusChangeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package dengta - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天下秀订单状态变更通知 API返回值 -alibaba.pictures.dengta.order.status.change - -天下秀订单状态变更通知 -*/ -type AlibabaPicturesDengtaOrderStatusChangeAPIResponse struct { - model.CommonResponse - AlibabaPicturesDengtaOrderStatusChangeResponse -} - -// 天下秀订单状态变更通知 成功返回结果 -type AlibabaPicturesDengtaOrderStatusChangeResponse struct { - XMLName xml.Name `xml:"alibaba_pictures_dengta_order_status_change_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ApiGeneralResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/dengta/AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest.go b/model/dengta/AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest.go new file mode 100644 index 0000000000..2d78f0c87e --- /dev/null +++ b/model/dengta/AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest.go @@ -0,0 +1,136 @@ +package dengta + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +微博公众号价格变化通知 API请求 +alibaba.pictures.dengta.wbaccount.price.change + +微博公众号推广价格变更通知接口 +*/ +type AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest struct { + model.Params + // 账号id + _accountId string + // 转发价格 + _transferPrice string + // 日期 + _changeTime string + // 原发价 + _originPrice string + // id + _id int64 + // 转发价格 折后价 + _transferPriceAli string + // 原发价 折后价 + _originPriceAli string +} + +// 初始化AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest对象 +func NewAlibabaPicturesDengtaWbaccountPriceChangeRequest() *AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest{ + return &AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest) GetApiMethodName() string { + return "alibaba.pictures.dengta.wbaccount.price.change" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccountId Setter +// 账号id +func (r *AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest) SetAccountId(_accountId string) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest) GetAccountId() string { + return r._accountId +} +// TransferPrice Setter +// 转发价格 +func (r *AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest) SetTransferPrice(_transferPrice string) error { + r._transferPrice = _transferPrice + r.Set("transfer_price", _transferPrice) + return nil +} + +// TransferPrice Getter +func (r AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest) GetTransferPrice() string { + return r._transferPrice +} +// ChangeTime Setter +// 日期 +func (r *AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest) SetChangeTime(_changeTime string) error { + r._changeTime = _changeTime + r.Set("change_time", _changeTime) + return nil +} + +// ChangeTime Getter +func (r AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest) GetChangeTime() string { + return r._changeTime +} +// OriginPrice Setter +// 原发价 +func (r *AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest) SetOriginPrice(_originPrice string) error { + r._originPrice = _originPrice + r.Set("origin_price", _originPrice) + return nil +} + +// OriginPrice Getter +func (r AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest) GetOriginPrice() string { + return r._originPrice +} +// Id Setter +// id +func (r *AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest) GetId() int64 { + return r._id +} +// TransferPriceAli Setter +// 转发价格 折后价 +func (r *AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest) SetTransferPriceAli(_transferPriceAli string) error { + r._transferPriceAli = _transferPriceAli + r.Set("transfer_price_ali", _transferPriceAli) + return nil +} + +// TransferPriceAli Getter +func (r AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest) GetTransferPriceAli() string { + return r._transferPriceAli +} +// OriginPriceAli Setter +// 原发价 折后价 +func (r *AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest) SetOriginPriceAli(_originPriceAli string) error { + r._originPriceAli = _originPriceAli + r.Set("origin_price_ali", _originPriceAli) + return nil +} + +// OriginPriceAli Getter +func (r AlibabaPicturesDengtaWbaccountPriceChangeAPIRequest) GetOriginPriceAli() string { + return r._originPriceAli +} diff --git a/model/dengta/AlibabaPicturesDengtaWbaccountPriceChangeAPIResponse.go b/model/dengta/AlibabaPicturesDengtaWbaccountPriceChangeAPIResponse.go new file mode 100644 index 0000000000..5556c10b1b --- /dev/null +++ b/model/dengta/AlibabaPicturesDengtaWbaccountPriceChangeAPIResponse.go @@ -0,0 +1,27 @@ +package dengta + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +微博公众号价格变化通知 API返回值 +alibaba.pictures.dengta.wbaccount.price.change + +微博公众号推广价格变更通知接口 +*/ +type AlibabaPicturesDengtaWbaccountPriceChangeAPIResponse struct { + model.CommonResponse + AlibabaPicturesDengtaWbaccountPriceChangeAPIResponseModel +} + +// 微博公众号价格变化通知 成功返回结果 +type AlibabaPicturesDengtaWbaccountPriceChangeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_pictures_dengta_wbaccount_price_change_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ApiGeneralResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/dengta/AlibabaPicturesDengtaWbaccountPriceChangeResponse.go b/model/dengta/AlibabaPicturesDengtaWbaccountPriceChangeResponse.go deleted file mode 100644 index 0fa31a6979..0000000000 --- a/model/dengta/AlibabaPicturesDengtaWbaccountPriceChangeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package dengta - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -微博公众号价格变化通知 API返回值 -alibaba.pictures.dengta.wbaccount.price.change - -微博公众号推广价格变更通知接口 -*/ -type AlibabaPicturesDengtaWbaccountPriceChangeAPIResponse struct { - model.CommonResponse - AlibabaPicturesDengtaWbaccountPriceChangeResponse -} - -// 微博公众号价格变化通知 成功返回结果 -type AlibabaPicturesDengtaWbaccountPriceChangeResponse struct { - XMLName xml.Name `xml:"alibaba_pictures_dengta_wbaccount_price_change_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ApiGeneralResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/dengta/AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest.go b/model/dengta/AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest.go new file mode 100644 index 0000000000..1fe87e7722 --- /dev/null +++ b/model/dengta/AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest.go @@ -0,0 +1,192 @@ +package dengta + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +微信公众号价格变化通知 API请求 +alibaba.pictures.dengta.wxaccount.price.change + +微信公众号推广价格变更通知接口 +*/ +type AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest struct { + model.Params + // id + _accountId string + // 变更时间 + _changeTime string + // 单图文 + _single string + // 多图文第三条及以后 + _other string + // 多图文第二条 + _second string + // 多图文第一条 + _first string + // 账号id + _id int64 + // 多图文第一条 折后价 + _firstAli string + // 多图文第二条 折后价 + _secondAli string + // 单图文 折后价 + _singleAli string + // 多图文第三条及以后 折后价 + _otherAli string +} + +// 初始化AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest对象 +func NewAlibabaPicturesDengtaWxaccountPriceChangeRequest() *AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest{ + return &AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) GetApiMethodName() string { + return "alibaba.pictures.dengta.wxaccount.price.change" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccountId Setter +// id +func (r *AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) SetAccountId(_accountId string) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) GetAccountId() string { + return r._accountId +} +// ChangeTime Setter +// 变更时间 +func (r *AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) SetChangeTime(_changeTime string) error { + r._changeTime = _changeTime + r.Set("change_time", _changeTime) + return nil +} + +// ChangeTime Getter +func (r AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) GetChangeTime() string { + return r._changeTime +} +// Single Setter +// 单图文 +func (r *AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) SetSingle(_single string) error { + r._single = _single + r.Set("single", _single) + return nil +} + +// Single Getter +func (r AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) GetSingle() string { + return r._single +} +// Other Setter +// 多图文第三条及以后 +func (r *AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) SetOther(_other string) error { + r._other = _other + r.Set("other", _other) + return nil +} + +// Other Getter +func (r AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) GetOther() string { + return r._other +} +// Second Setter +// 多图文第二条 +func (r *AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) SetSecond(_second string) error { + r._second = _second + r.Set("second", _second) + return nil +} + +// Second Getter +func (r AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) GetSecond() string { + return r._second +} +// First Setter +// 多图文第一条 +func (r *AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) SetFirst(_first string) error { + r._first = _first + r.Set("first", _first) + return nil +} + +// First Getter +func (r AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) GetFirst() string { + return r._first +} +// Id Setter +// 账号id +func (r *AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) GetId() int64 { + return r._id +} +// FirstAli Setter +// 多图文第一条 折后价 +func (r *AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) SetFirstAli(_firstAli string) error { + r._firstAli = _firstAli + r.Set("first_ali", _firstAli) + return nil +} + +// FirstAli Getter +func (r AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) GetFirstAli() string { + return r._firstAli +} +// SecondAli Setter +// 多图文第二条 折后价 +func (r *AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) SetSecondAli(_secondAli string) error { + r._secondAli = _secondAli + r.Set("second_ali", _secondAli) + return nil +} + +// SecondAli Getter +func (r AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) GetSecondAli() string { + return r._secondAli +} +// SingleAli Setter +// 单图文 折后价 +func (r *AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) SetSingleAli(_singleAli string) error { + r._singleAli = _singleAli + r.Set("single_ali", _singleAli) + return nil +} + +// SingleAli Getter +func (r AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) GetSingleAli() string { + return r._singleAli +} +// OtherAli Setter +// 多图文第三条及以后 折后价 +func (r *AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) SetOtherAli(_otherAli string) error { + r._otherAli = _otherAli + r.Set("other_ali", _otherAli) + return nil +} + +// OtherAli Getter +func (r AlibabaPicturesDengtaWxaccountPriceChangeAPIRequest) GetOtherAli() string { + return r._otherAli +} diff --git a/model/dengta/AlibabaPicturesDengtaWxaccountPriceChangeAPIResponse.go b/model/dengta/AlibabaPicturesDengtaWxaccountPriceChangeAPIResponse.go new file mode 100644 index 0000000000..779ab5dfd6 --- /dev/null +++ b/model/dengta/AlibabaPicturesDengtaWxaccountPriceChangeAPIResponse.go @@ -0,0 +1,27 @@ +package dengta + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +微信公众号价格变化通知 API返回值 +alibaba.pictures.dengta.wxaccount.price.change + +微信公众号推广价格变更通知接口 +*/ +type AlibabaPicturesDengtaWxaccountPriceChangeAPIResponse struct { + model.CommonResponse + AlibabaPicturesDengtaWxaccountPriceChangeAPIResponseModel +} + +// 微信公众号价格变化通知 成功返回结果 +type AlibabaPicturesDengtaWxaccountPriceChangeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_pictures_dengta_wxaccount_price_change_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ApiGeneralResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/dengta/AlibabaPicturesDengtaWxaccountPriceChangeResponse.go b/model/dengta/AlibabaPicturesDengtaWxaccountPriceChangeResponse.go deleted file mode 100644 index 62763abaad..0000000000 --- a/model/dengta/AlibabaPicturesDengtaWxaccountPriceChangeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package dengta - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -微信公众号价格变化通知 API返回值 -alibaba.pictures.dengta.wxaccount.price.change - -微信公众号推广价格变更通知接口 -*/ -type AlibabaPicturesDengtaWxaccountPriceChangeAPIResponse struct { - model.CommonResponse - AlibabaPicturesDengtaWxaccountPriceChangeResponse -} - -// 微信公众号价格变化通知 成功返回结果 -type AlibabaPicturesDengtaWxaccountPriceChangeResponse struct { - XMLName xml.Name `xml:"alibaba_pictures_dengta_wxaccount_price_change_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ApiGeneralResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/dmp/TaobaoDmpCrowdsGetAPIRequest.go b/model/dmp/TaobaoDmpCrowdsGetAPIRequest.go new file mode 100644 index 0000000000..c2adcb2e0a --- /dev/null +++ b/model/dmp/TaobaoDmpCrowdsGetAPIRequest.go @@ -0,0 +1,38 @@ +package dmp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询人群服务 API请求 +taobao.dmp.crowds.get + +查询人群服务 +*/ +type TaobaoDmpCrowdsGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoDmpCrowdsGetAPIRequest对象 +func NewTaobaoDmpCrowdsGetRequest() *TaobaoDmpCrowdsGetAPIRequest{ + return &TaobaoDmpCrowdsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDmpCrowdsGetAPIRequest) GetApiMethodName() string { + return "taobao.dmp.crowds.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDmpCrowdsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/dmp/TaobaoDmpCrowdsGetAPIResponse.go b/model/dmp/TaobaoDmpCrowdsGetAPIResponse.go new file mode 100644 index 0000000000..4791e73ac4 --- /dev/null +++ b/model/dmp/TaobaoDmpCrowdsGetAPIResponse.go @@ -0,0 +1,27 @@ +package dmp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询人群服务 API返回值 +taobao.dmp.crowds.get + +查询人群服务 +*/ +type TaobaoDmpCrowdsGetAPIResponse struct { + model.CommonResponse + TaobaoDmpCrowdsGetAPIResponseModel +} + +// 查询人群服务 成功返回结果 +type TaobaoDmpCrowdsGetAPIResponseModel struct { + XMLName xml.Name `xml:"dmp_crowds_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 1 + Results []DmpCrowdDto `json:"results,omitempty" xml:"results>dmp_crowd_dto,omitempty"` +} diff --git a/model/dmp/TaobaoDmpCrowdsGetResponse.go b/model/dmp/TaobaoDmpCrowdsGetResponse.go deleted file mode 100644 index d011b749a5..0000000000 --- a/model/dmp/TaobaoDmpCrowdsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package dmp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询人群服务 API返回值 -taobao.dmp.crowds.get - -查询人群服务 -*/ -type TaobaoDmpCrowdsGetAPIResponse struct { - model.CommonResponse - TaobaoDmpCrowdsGetResponse -} - -// 查询人群服务 成功返回结果 -type TaobaoDmpCrowdsGetResponse struct { - XMLName xml.Name `xml:"dmp_crowds_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 1 - Results []DmpCrowdDto `json:"results,omitempty" xml:"results>dmp_crowd_dto,omitempty"` -} diff --git a/model/drug/AlibabaAlihealthNrRxQueryimageAPIRequest.go b/model/drug/AlibabaAlihealthNrRxQueryimageAPIRequest.go new file mode 100644 index 0000000000..4926a2235b --- /dev/null +++ b/model/drug/AlibabaAlihealthNrRxQueryimageAPIRequest.go @@ -0,0 +1,52 @@ +package drug + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +o2o查看处方图片 API请求 +alibaba.alihealth.nr.rx.queryimage + +o2o商家查看处方图片,包括电子图片与纸质图片 +*/ +type AlibabaAlihealthNrRxQueryimageAPIRequest struct { + model.Params + // 订单编号 + _orderId int64 +} + +// 初始化AlibabaAlihealthNrRxQueryimageAPIRequest对象 +func NewAlibabaAlihealthNrRxQueryimageRequest() *AlibabaAlihealthNrRxQueryimageAPIRequest{ + return &AlibabaAlihealthNrRxQueryimageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthNrRxQueryimageAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.nr.rx.queryimage" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthNrRxQueryimageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单编号 +func (r *AlibabaAlihealthNrRxQueryimageAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaAlihealthNrRxQueryimageAPIRequest) GetOrderId() int64 { + return r._orderId +} diff --git a/model/drug/AlibabaAlihealthNrRxQueryimageAPIResponse.go b/model/drug/AlibabaAlihealthNrRxQueryimageAPIResponse.go new file mode 100644 index 0000000000..922a711389 --- /dev/null +++ b/model/drug/AlibabaAlihealthNrRxQueryimageAPIResponse.go @@ -0,0 +1,33 @@ +package drug + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +o2o查看处方图片 API返回值 +alibaba.alihealth.nr.rx.queryimage + +o2o商家查看处方图片,包括电子图片与纸质图片 +*/ +type AlibabaAlihealthNrRxQueryimageAPIResponse struct { + model.CommonResponse + AlibabaAlihealthNrRxQueryimageAPIResponseModel +} + +// o2o查看处方图片 成功返回结果 +type AlibabaAlihealthNrRxQueryimageAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_nr_rx_queryimage_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功或失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误编码 + ErrorInfoCode string `json:"error_info_code,omitempty" xml:"error_info_code,omitempty"` + // 错误描述 + ErrorInfoMsg string `json:"error_info_msg,omitempty" xml:"error_info_msg,omitempty"` + // 处方图片url,多张图片用逗号分隔 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drug/AlibabaAlihealthNrRxQueryimageResponse.go b/model/drug/AlibabaAlihealthNrRxQueryimageResponse.go deleted file mode 100644 index 37501d04b4..0000000000 --- a/model/drug/AlibabaAlihealthNrRxQueryimageResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drug - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -o2o查看处方图片 API返回值 -alibaba.alihealth.nr.rx.queryimage - -o2o商家查看处方图片,包括电子图片与纸质图片 -*/ -type AlibabaAlihealthNrRxQueryimageAPIResponse struct { - model.CommonResponse - AlibabaAlihealthNrRxQueryimageResponse -} - -// o2o查看处方图片 成功返回结果 -type AlibabaAlihealthNrRxQueryimageResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_nr_rx_queryimage_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功或失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误编码 - ErrorInfoCode string `json:"error_info_code,omitempty" xml:"error_info_code,omitempty"` - // 错误描述 - ErrorInfoMsg string `json:"error_info_msg,omitempty" xml:"error_info_msg,omitempty"` - // 处方图片url,多张图片用逗号分隔 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drug/AlibabaAlihealthNrSpuQueryAPIRequest.go b/model/drug/AlibabaAlihealthNrSpuQueryAPIRequest.go new file mode 100644 index 0000000000..79c6dd7e02 --- /dev/null +++ b/model/drug/AlibabaAlihealthNrSpuQueryAPIRequest.go @@ -0,0 +1,66 @@ +package drug + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取标品库标品信息 API请求 +alibaba.alihealth.nr.spu.query + +提供给ERP使用的,获取健康标品库信息 +*/ +type AlibabaAlihealthNrSpuQueryAPIRequest struct { + model.Params + // 标品查询条件 + _query *TopAlihealthSpuQuery + // 查询选择器 + _options *TopAlihealthSpuQueryOptions +} + +// 初始化AlibabaAlihealthNrSpuQueryAPIRequest对象 +func NewAlibabaAlihealthNrSpuQueryRequest() *AlibabaAlihealthNrSpuQueryAPIRequest{ + return &AlibabaAlihealthNrSpuQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthNrSpuQueryAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.nr.spu.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthNrSpuQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 标品查询条件 +func (r *AlibabaAlihealthNrSpuQueryAPIRequest) SetQuery(_query *TopAlihealthSpuQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaAlihealthNrSpuQueryAPIRequest) GetQuery() *TopAlihealthSpuQuery { + return r._query +} +// Options Setter +// 查询选择器 +func (r *AlibabaAlihealthNrSpuQueryAPIRequest) SetOptions(_options *TopAlihealthSpuQueryOptions) error { + r._options = _options + r.Set("options", _options) + return nil +} + +// Options Getter +func (r AlibabaAlihealthNrSpuQueryAPIRequest) GetOptions() *TopAlihealthSpuQueryOptions { + return r._options +} diff --git a/model/drug/AlibabaAlihealthNrSpuQueryAPIResponse.go b/model/drug/AlibabaAlihealthNrSpuQueryAPIResponse.go new file mode 100644 index 0000000000..4be6dca3cc --- /dev/null +++ b/model/drug/AlibabaAlihealthNrSpuQueryAPIResponse.go @@ -0,0 +1,27 @@ +package drug + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取标品库标品信息 API返回值 +alibaba.alihealth.nr.spu.query + +提供给ERP使用的,获取健康标品库信息 +*/ +type AlibabaAlihealthNrSpuQueryAPIResponse struct { + model.CommonResponse + AlibabaAlihealthNrSpuQueryAPIResponseModel +} + +// 获取标品库标品信息 成功返回结果 +type AlibabaAlihealthNrSpuQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_nr_spu_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *ResponseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drug/AlibabaAlihealthNrSpuQueryResponse.go b/model/drug/AlibabaAlihealthNrSpuQueryResponse.go deleted file mode 100644 index a4c3f53023..0000000000 --- a/model/drug/AlibabaAlihealthNrSpuQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drug - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取标品库标品信息 API返回值 -alibaba.alihealth.nr.spu.query - -提供给ERP使用的,获取健康标品库信息 -*/ -type AlibabaAlihealthNrSpuQueryAPIResponse struct { - model.CommonResponse - AlibabaAlihealthNrSpuQueryResponse -} - -// 获取标品库标品信息 成功返回结果 -type AlibabaAlihealthNrSpuQueryResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_nr_spu_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *ResponseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drug/AlibabaAlihealthNrTradeMedicalInsuranceGetAPIRequest.go b/model/drug/AlibabaAlihealthNrTradeMedicalInsuranceGetAPIRequest.go new file mode 100644 index 0000000000..64724e17ea --- /dev/null +++ b/model/drug/AlibabaAlihealthNrTradeMedicalInsuranceGetAPIRequest.go @@ -0,0 +1,52 @@ +package drug + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康医保支付信息获取 API请求 +alibaba.alihealth.nr.trade.medical.insurance.get + +阿里健康医保支付信息获取 +*/ +type AlibabaAlihealthNrTradeMedicalInsuranceGetAPIRequest struct { + model.Params + // 淘宝订单ID + _orderId int64 +} + +// 初始化AlibabaAlihealthNrTradeMedicalInsuranceGetAPIRequest对象 +func NewAlibabaAlihealthNrTradeMedicalInsuranceGetRequest() *AlibabaAlihealthNrTradeMedicalInsuranceGetAPIRequest{ + return &AlibabaAlihealthNrTradeMedicalInsuranceGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthNrTradeMedicalInsuranceGetAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.nr.trade.medical.insurance.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthNrTradeMedicalInsuranceGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 淘宝订单ID +func (r *AlibabaAlihealthNrTradeMedicalInsuranceGetAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaAlihealthNrTradeMedicalInsuranceGetAPIRequest) GetOrderId() int64 { + return r._orderId +} diff --git a/model/drug/AlibabaAlihealthNrTradeMedicalInsuranceGetAPIResponse.go b/model/drug/AlibabaAlihealthNrTradeMedicalInsuranceGetAPIResponse.go new file mode 100644 index 0000000000..1f2859d470 --- /dev/null +++ b/model/drug/AlibabaAlihealthNrTradeMedicalInsuranceGetAPIResponse.go @@ -0,0 +1,27 @@ +package drug + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康医保支付信息获取 API返回值 +alibaba.alihealth.nr.trade.medical.insurance.get + +阿里健康医保支付信息获取 +*/ +type AlibabaAlihealthNrTradeMedicalInsuranceGetAPIResponse struct { + model.CommonResponse + AlibabaAlihealthNrTradeMedicalInsuranceGetAPIResponseModel +} + +// 阿里健康医保支付信息获取 成功返回结果 +type AlibabaAlihealthNrTradeMedicalInsuranceGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_nr_trade_medical_insurance_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值总 + Result *ResponseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drug/AlibabaAlihealthNrTradeMedicalInsuranceGetResponse.go b/model/drug/AlibabaAlihealthNrTradeMedicalInsuranceGetResponse.go deleted file mode 100644 index 0026ea5d7a..0000000000 --- a/model/drug/AlibabaAlihealthNrTradeMedicalInsuranceGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drug - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里健康医保支付信息获取 API返回值 -alibaba.alihealth.nr.trade.medical.insurance.get - -阿里健康医保支付信息获取 -*/ -type AlibabaAlihealthNrTradeMedicalInsuranceGetAPIResponse struct { - model.CommonResponse - AlibabaAlihealthNrTradeMedicalInsuranceGetResponse -} - -// 阿里健康医保支付信息获取 成功返回结果 -type AlibabaAlihealthNrTradeMedicalInsuranceGetResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_nr_trade_medical_insurance_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值总 - Result *ResponseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drug/AlibabaAlihealthNrTradeOrderGetAPIRequest.go b/model/drug/AlibabaAlihealthNrTradeOrderGetAPIRequest.go new file mode 100644 index 0000000000..f9c400ce64 --- /dev/null +++ b/model/drug/AlibabaAlihealthNrTradeOrderGetAPIRequest.go @@ -0,0 +1,52 @@ +package drug + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取订单详情 API请求 +alibaba.alihealth.nr.trade.order.get + +阿里健康O2O,获取订单详情 +*/ +type AlibabaAlihealthNrTradeOrderGetAPIRequest struct { + model.Params + // 淘宝订单ID + _orderId int64 +} + +// 初始化AlibabaAlihealthNrTradeOrderGetAPIRequest对象 +func NewAlibabaAlihealthNrTradeOrderGetRequest() *AlibabaAlihealthNrTradeOrderGetAPIRequest{ + return &AlibabaAlihealthNrTradeOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthNrTradeOrderGetAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.nr.trade.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthNrTradeOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 淘宝订单ID +func (r *AlibabaAlihealthNrTradeOrderGetAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaAlihealthNrTradeOrderGetAPIRequest) GetOrderId() int64 { + return r._orderId +} diff --git a/model/drug/AlibabaAlihealthNrTradeOrderGetAPIResponse.go b/model/drug/AlibabaAlihealthNrTradeOrderGetAPIResponse.go new file mode 100644 index 0000000000..f333b64324 --- /dev/null +++ b/model/drug/AlibabaAlihealthNrTradeOrderGetAPIResponse.go @@ -0,0 +1,91 @@ +package drug + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取订单详情 API返回值 +alibaba.alihealth.nr.trade.order.get + +阿里健康O2O,获取订单详情 +*/ +type AlibabaAlihealthNrTradeOrderGetAPIResponse struct { + model.CommonResponse + AlibabaAlihealthNrTradeOrderGetAPIResponseModel +} + +// 获取订单详情 成功返回结果 +type AlibabaAlihealthNrTradeOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_nr_trade_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 淘宝订单id + OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"` + // 订单状态:1-等待买家付款;2-等待商家接单;4-退款中;12-商家配送中;20-订单关闭;22-订单关闭;21-交易完成; + OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"` + // 单店单日订单唯一序号 + SerialNo string `json:"serial_no,omitempty" xml:"serial_no,omitempty"` + // 订单创建时间 + CreateTime int64 `json:"create_time,omitempty" xml:"create_time,omitempty"` + // 订单支付时间 + PayTime int64 `json:"pay_time,omitempty" xml:"pay_time,omitempty"` + // 店铺shopId + ShopId int64 `json:"shop_id,omitempty" xml:"shop_id,omitempty"` + // 店铺storeId + StoreId string `json:"store_id,omitempty" xml:"store_id,omitempty"` + // 店铺名 + StoreName string `json:"store_name,omitempty" xml:"store_name,omitempty"` + // 店铺经纬度 + StoreAddressPoi string `json:"store_address_poi,omitempty" xml:"store_address_poi,omitempty"` + // 订单总金额 + TotalFee int64 `json:"total_fee,omitempty" xml:"total_fee,omitempty"` + // 实收金额 + ActualReceiveFee int64 `json:"actual_receive_fee,omitempty" xml:"actual_receive_fee,omitempty"` + // 实付金额 + ActualPayFee int64 `json:"actual_pay_fee,omitempty" xml:"actual_pay_fee,omitempty"` + // 订单优惠列表 + PromotionList []OrderPromotionDto `json:"promotion_list,omitempty" xml:"promotion_list>order_promotion_dto,omitempty"` + // 总优惠信息 + TotalPromotion int64 `json:"total_promotion,omitempty" xml:"total_promotion,omitempty"` + // 买家收货地址上的名字 + BuyerName string `json:"buyer_name,omitempty" xml:"buyer_name,omitempty"` + // 买家收货地址上的电话 + BuyerPhone string `json:"buyer_phone,omitempty" xml:"buyer_phone,omitempty"` + // 买家留言 + BuyerNote string `json:"buyer_note,omitempty" xml:"buyer_note,omitempty"` + // 发票抬头 + InvoiceTitle string `json:"invoice_title,omitempty" xml:"invoice_title,omitempty"` + // 买家地址 + BuyerAddress string `json:"buyer_address,omitempty" xml:"buyer_address,omitempty"` + // 买家收货地址经纬度 + BuyerAddressPoi string `json:"buyer_address_poi,omitempty" xml:"buyer_address_poi,omitempty"` + // 该店铺的老顾客 + IsFrequenter int64 `json:"is_frequenter,omitempty" xml:"is_frequenter,omitempty"` + // 商家设置的运费 + Carriage int64 `json:"carriage,omitempty" xml:"carriage,omitempty"` + // 子订单 + SubOrderList []SubOrderDto `json:"sub_order_list,omitempty" xml:"sub_order_list>sub_order_dto,omitempty"` + // 处方药标示 + Rx int64 `json:"rx,omitempty" xml:"rx,omitempty"` + // 处方药回拨电话 + RxPhone string `json:"rx_phone,omitempty" xml:"rx_phone,omitempty"` + // 处方图片 + RxPicList []string `json:"rx_pic_list,omitempty" xml:"rx_pic_list>string,omitempty"` + // 自提标识 + DrugTake int64 `json:"drug_take,omitempty" xml:"drug_take,omitempty"` + // 收货地址-省 + BuyerAddressProvince string `json:"buyer_address_province,omitempty" xml:"buyer_address_province,omitempty"` + // 收货地址-市 + BuyerAddressCity string `json:"buyer_address_city,omitempty" xml:"buyer_address_city,omitempty"` + // 收货地址-区 + BuyerAddressDistrict string `json:"buyer_address_district,omitempty" xml:"buyer_address_district,omitempty"` + // 预计送达时间 + ExpectedDeliveryTime string `json:"expected_delivery_time,omitempty" xml:"expected_delivery_time,omitempty"` + // 1单轨、2双规、3医保支付、4医保自费 + RxType string `json:"rx_type,omitempty" xml:"rx_type,omitempty"` + // 高德、本地商户 + OutStoreId string `json:"out_store_id,omitempty" xml:"out_store_id,omitempty"` +} diff --git a/model/drug/AlibabaAlihealthNrTradeOrderGetResponse.go b/model/drug/AlibabaAlihealthNrTradeOrderGetResponse.go deleted file mode 100644 index f979f4d73c..0000000000 --- a/model/drug/AlibabaAlihealthNrTradeOrderGetResponse.go +++ /dev/null @@ -1,91 +0,0 @@ -package drug - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取订单详情 API返回值 -alibaba.alihealth.nr.trade.order.get - -阿里健康O2O,获取订单详情 -*/ -type AlibabaAlihealthNrTradeOrderGetAPIResponse struct { - model.CommonResponse - AlibabaAlihealthNrTradeOrderGetResponse -} - -// 获取订单详情 成功返回结果 -type AlibabaAlihealthNrTradeOrderGetResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_nr_trade_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 淘宝订单id - OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"` - // 订单状态:1-等待买家付款;2-等待商家接单;4-退款中;12-商家配送中;20-订单关闭;22-订单关闭;21-交易完成; - OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"` - // 单店单日订单唯一序号 - SerialNo string `json:"serial_no,omitempty" xml:"serial_no,omitempty"` - // 订单创建时间 - CreateTime int64 `json:"create_time,omitempty" xml:"create_time,omitempty"` - // 订单支付时间 - PayTime int64 `json:"pay_time,omitempty" xml:"pay_time,omitempty"` - // 店铺shopId - ShopId int64 `json:"shop_id,omitempty" xml:"shop_id,omitempty"` - // 店铺storeId - StoreId string `json:"store_id,omitempty" xml:"store_id,omitempty"` - // 店铺名 - StoreName string `json:"store_name,omitempty" xml:"store_name,omitempty"` - // 店铺经纬度 - StoreAddressPoi string `json:"store_address_poi,omitempty" xml:"store_address_poi,omitempty"` - // 订单总金额 - TotalFee int64 `json:"total_fee,omitempty" xml:"total_fee,omitempty"` - // 实收金额 - ActualReceiveFee int64 `json:"actual_receive_fee,omitempty" xml:"actual_receive_fee,omitempty"` - // 实付金额 - ActualPayFee int64 `json:"actual_pay_fee,omitempty" xml:"actual_pay_fee,omitempty"` - // 订单优惠列表 - PromotionList []OrderPromotionDto `json:"promotion_list,omitempty" xml:"promotion_list>order_promotion_dto,omitempty"` - // 总优惠信息 - TotalPromotion int64 `json:"total_promotion,omitempty" xml:"total_promotion,omitempty"` - // 买家收货地址上的名字 - BuyerName string `json:"buyer_name,omitempty" xml:"buyer_name,omitempty"` - // 买家收货地址上的电话 - BuyerPhone string `json:"buyer_phone,omitempty" xml:"buyer_phone,omitempty"` - // 买家留言 - BuyerNote string `json:"buyer_note,omitempty" xml:"buyer_note,omitempty"` - // 发票抬头 - InvoiceTitle string `json:"invoice_title,omitempty" xml:"invoice_title,omitempty"` - // 买家地址 - BuyerAddress string `json:"buyer_address,omitempty" xml:"buyer_address,omitempty"` - // 买家收货地址经纬度 - BuyerAddressPoi string `json:"buyer_address_poi,omitempty" xml:"buyer_address_poi,omitempty"` - // 该店铺的老顾客 - IsFrequenter int64 `json:"is_frequenter,omitempty" xml:"is_frequenter,omitempty"` - // 商家设置的运费 - Carriage int64 `json:"carriage,omitempty" xml:"carriage,omitempty"` - // 子订单 - SubOrderList []SubOrderDto `json:"sub_order_list,omitempty" xml:"sub_order_list>sub_order_dto,omitempty"` - // 处方药标示 - Rx int64 `json:"rx,omitempty" xml:"rx,omitempty"` - // 处方药回拨电话 - RxPhone string `json:"rx_phone,omitempty" xml:"rx_phone,omitempty"` - // 处方图片 - RxPicList []string `json:"rx_pic_list,omitempty" xml:"rx_pic_list>string,omitempty"` - // 自提标识 - DrugTake int64 `json:"drug_take,omitempty" xml:"drug_take,omitempty"` - // 收货地址-省 - BuyerAddressProvince string `json:"buyer_address_province,omitempty" xml:"buyer_address_province,omitempty"` - // 收货地址-市 - BuyerAddressCity string `json:"buyer_address_city,omitempty" xml:"buyer_address_city,omitempty"` - // 收货地址-区 - BuyerAddressDistrict string `json:"buyer_address_district,omitempty" xml:"buyer_address_district,omitempty"` - // 预计送达时间 - ExpectedDeliveryTime string `json:"expected_delivery_time,omitempty" xml:"expected_delivery_time,omitempty"` - // 1单轨、2双规、3医保支付、4医保自费 - RxType string `json:"rx_type,omitempty" xml:"rx_type,omitempty"` - // 高德、本地商户 - OutStoreId string `json:"out_store_id,omitempty" xml:"out_store_id,omitempty"` -} diff --git a/model/drug/AlibabaAlihealthNrTradeOrderGetorderdetailAPIRequest.go b/model/drug/AlibabaAlihealthNrTradeOrderGetorderdetailAPIRequest.go new file mode 100644 index 0000000000..3c57fad192 --- /dev/null +++ b/model/drug/AlibabaAlihealthNrTradeOrderGetorderdetailAPIRequest.go @@ -0,0 +1,52 @@ +package drug + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据订单id获取单条订单详情 API请求 +alibaba.alihealth.nr.trade.order.getorderdetail + +阿里健康O2O,获取订单详情,修复组合商品价格精度问题 +*/ +type AlibabaAlihealthNrTradeOrderGetorderdetailAPIRequest struct { + model.Params + // 淘宝订单ID + _orderId int64 +} + +// 初始化AlibabaAlihealthNrTradeOrderGetorderdetailAPIRequest对象 +func NewAlibabaAlihealthNrTradeOrderGetorderdetailRequest() *AlibabaAlihealthNrTradeOrderGetorderdetailAPIRequest{ + return &AlibabaAlihealthNrTradeOrderGetorderdetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthNrTradeOrderGetorderdetailAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.nr.trade.order.getorderdetail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthNrTradeOrderGetorderdetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 淘宝订单ID +func (r *AlibabaAlihealthNrTradeOrderGetorderdetailAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaAlihealthNrTradeOrderGetorderdetailAPIRequest) GetOrderId() int64 { + return r._orderId +} diff --git a/model/drug/AlibabaAlihealthNrTradeOrderGetorderdetailAPIResponse.go b/model/drug/AlibabaAlihealthNrTradeOrderGetorderdetailAPIResponse.go new file mode 100644 index 0000000000..1ab9cf2ef6 --- /dev/null +++ b/model/drug/AlibabaAlihealthNrTradeOrderGetorderdetailAPIResponse.go @@ -0,0 +1,91 @@ +package drug + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据订单id获取单条订单详情 API返回值 +alibaba.alihealth.nr.trade.order.getorderdetail + +阿里健康O2O,获取订单详情,修复组合商品价格精度问题 +*/ +type AlibabaAlihealthNrTradeOrderGetorderdetailAPIResponse struct { + model.CommonResponse + AlibabaAlihealthNrTradeOrderGetorderdetailAPIResponseModel +} + +// 根据订单id获取单条订单详情 成功返回结果 +type AlibabaAlihealthNrTradeOrderGetorderdetailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_nr_trade_order_getorderdetail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 高德,本地商户 + OutStoreId string `json:"out_store_id,omitempty" xml:"out_store_id,omitempty"` + // 1单轨、2双规、3医保支付、4医保自费 + RxType string `json:"rx_type,omitempty" xml:"rx_type,omitempty"` + // 预计送达时间 + ExpectedDeliveryTime string `json:"expected_delivery_time,omitempty" xml:"expected_delivery_time,omitempty"` + // 收货地址-区 + BuyerAddressDistrict string `json:"buyer_address_district,omitempty" xml:"buyer_address_district,omitempty"` + // 收货地址-市 + BuyerAddressCity string `json:"buyer_address_city,omitempty" xml:"buyer_address_city,omitempty"` + // 收货地址-省 + BuyerAddressProvince string `json:"buyer_address_province,omitempty" xml:"buyer_address_province,omitempty"` + // 自提标识 + DrugTake int64 `json:"drug_take,omitempty" xml:"drug_take,omitempty"` + // 处方图片 + RxPicList []string `json:"rx_pic_list,omitempty" xml:"rx_pic_list>string,omitempty"` + // 处方药回拨电话 + RxPhone string `json:"rx_phone,omitempty" xml:"rx_phone,omitempty"` + // 处方药标示 + Rx int64 `json:"rx,omitempty" xml:"rx,omitempty"` + // 子订单 + SubOrderList []SubOrderDto `json:"sub_order_list,omitempty" xml:"sub_order_list>sub_order_dto,omitempty"` + // 商家设置的运费 + Carriage int64 `json:"carriage,omitempty" xml:"carriage,omitempty"` + // 该店铺的老顾客 + IsFrequenter int64 `json:"is_frequenter,omitempty" xml:"is_frequenter,omitempty"` + // 买家收货地址经纬度 + BuyerAddressPoi string `json:"buyer_address_poi,omitempty" xml:"buyer_address_poi,omitempty"` + // 买家地址 + BuyerAddress string `json:"buyer_address,omitempty" xml:"buyer_address,omitempty"` + // 订单优惠列表 + PromotionList []OrderPromotionDto `json:"promotion_list,omitempty" xml:"promotion_list>order_promotion_dto,omitempty"` + // 发票抬头 + InvoiceTitle string `json:"invoice_title,omitempty" xml:"invoice_title,omitempty"` + // 买家留言 + BuyerNote string `json:"buyer_note,omitempty" xml:"buyer_note,omitempty"` + // 买家收货地址上的电话 + BuyerPhone string `json:"buyer_phone,omitempty" xml:"buyer_phone,omitempty"` + // 买家收货地址上的名字 + BuyerName string `json:"buyer_name,omitempty" xml:"buyer_name,omitempty"` + // 总优惠信息 + TotalPromotion int64 `json:"total_promotion,omitempty" xml:"total_promotion,omitempty"` + // 实付金额 + ActualPayFee int64 `json:"actual_pay_fee,omitempty" xml:"actual_pay_fee,omitempty"` + // 实收金额 + ActualReceiveFee int64 `json:"actual_receive_fee,omitempty" xml:"actual_receive_fee,omitempty"` + // 订单总金额 + TotalFee int64 `json:"total_fee,omitempty" xml:"total_fee,omitempty"` + // 店铺经纬度 + StoreAddressPoi string `json:"store_address_poi,omitempty" xml:"store_address_poi,omitempty"` + // 店铺名 + StoreName string `json:"store_name,omitempty" xml:"store_name,omitempty"` + // abc2123sdfc + StoreId string `json:"store_id,omitempty" xml:"store_id,omitempty"` + // 店铺shopId + ShopId int64 `json:"shop_id,omitempty" xml:"shop_id,omitempty"` + // 订单支付时间 + PayTime int64 `json:"pay_time,omitempty" xml:"pay_time,omitempty"` + // 订单创建时间 + CreateTime int64 `json:"create_time,omitempty" xml:"create_time,omitempty"` + // 单店单日订单唯一序号 + SerialNo string `json:"serial_no,omitempty" xml:"serial_no,omitempty"` + // 订单状态:1-等待买家付款;2-等待商家接单;4-退款中;12-商家配送中;20-订单关闭;22-订单关闭;21-交易完成; + OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"` + // 淘宝订单id + OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"` +} diff --git a/model/drug/AlibabaAlihealthNrTradeOrderGetorderdetailResponse.go b/model/drug/AlibabaAlihealthNrTradeOrderGetorderdetailResponse.go deleted file mode 100644 index fad1fb0c1c..0000000000 --- a/model/drug/AlibabaAlihealthNrTradeOrderGetorderdetailResponse.go +++ /dev/null @@ -1,91 +0,0 @@ -package drug - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据订单id获取单条订单详情 API返回值 -alibaba.alihealth.nr.trade.order.getorderdetail - -阿里健康O2O,获取订单详情,修复组合商品价格精度问题 -*/ -type AlibabaAlihealthNrTradeOrderGetorderdetailAPIResponse struct { - model.CommonResponse - AlibabaAlihealthNrTradeOrderGetorderdetailResponse -} - -// 根据订单id获取单条订单详情 成功返回结果 -type AlibabaAlihealthNrTradeOrderGetorderdetailResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_nr_trade_order_getorderdetail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 高德,本地商户 - OutStoreId string `json:"out_store_id,omitempty" xml:"out_store_id,omitempty"` - // 1单轨、2双规、3医保支付、4医保自费 - RxType string `json:"rx_type,omitempty" xml:"rx_type,omitempty"` - // 预计送达时间 - ExpectedDeliveryTime string `json:"expected_delivery_time,omitempty" xml:"expected_delivery_time,omitempty"` - // 收货地址-区 - BuyerAddressDistrict string `json:"buyer_address_district,omitempty" xml:"buyer_address_district,omitempty"` - // 收货地址-市 - BuyerAddressCity string `json:"buyer_address_city,omitempty" xml:"buyer_address_city,omitempty"` - // 收货地址-省 - BuyerAddressProvince string `json:"buyer_address_province,omitempty" xml:"buyer_address_province,omitempty"` - // 自提标识 - DrugTake int64 `json:"drug_take,omitempty" xml:"drug_take,omitempty"` - // 处方图片 - RxPicList []string `json:"rx_pic_list,omitempty" xml:"rx_pic_list>string,omitempty"` - // 处方药回拨电话 - RxPhone string `json:"rx_phone,omitempty" xml:"rx_phone,omitempty"` - // 处方药标示 - Rx int64 `json:"rx,omitempty" xml:"rx,omitempty"` - // 子订单 - SubOrderList []SubOrderDto `json:"sub_order_list,omitempty" xml:"sub_order_list>sub_order_dto,omitempty"` - // 商家设置的运费 - Carriage int64 `json:"carriage,omitempty" xml:"carriage,omitempty"` - // 该店铺的老顾客 - IsFrequenter int64 `json:"is_frequenter,omitempty" xml:"is_frequenter,omitempty"` - // 买家收货地址经纬度 - BuyerAddressPoi string `json:"buyer_address_poi,omitempty" xml:"buyer_address_poi,omitempty"` - // 买家地址 - BuyerAddress string `json:"buyer_address,omitempty" xml:"buyer_address,omitempty"` - // 订单优惠列表 - PromotionList []OrderPromotionDto `json:"promotion_list,omitempty" xml:"promotion_list>order_promotion_dto,omitempty"` - // 发票抬头 - InvoiceTitle string `json:"invoice_title,omitempty" xml:"invoice_title,omitempty"` - // 买家留言 - BuyerNote string `json:"buyer_note,omitempty" xml:"buyer_note,omitempty"` - // 买家收货地址上的电话 - BuyerPhone string `json:"buyer_phone,omitempty" xml:"buyer_phone,omitempty"` - // 买家收货地址上的名字 - BuyerName string `json:"buyer_name,omitempty" xml:"buyer_name,omitempty"` - // 总优惠信息 - TotalPromotion int64 `json:"total_promotion,omitempty" xml:"total_promotion,omitempty"` - // 实付金额 - ActualPayFee int64 `json:"actual_pay_fee,omitempty" xml:"actual_pay_fee,omitempty"` - // 实收金额 - ActualReceiveFee int64 `json:"actual_receive_fee,omitempty" xml:"actual_receive_fee,omitempty"` - // 订单总金额 - TotalFee int64 `json:"total_fee,omitempty" xml:"total_fee,omitempty"` - // 店铺经纬度 - StoreAddressPoi string `json:"store_address_poi,omitempty" xml:"store_address_poi,omitempty"` - // 店铺名 - StoreName string `json:"store_name,omitempty" xml:"store_name,omitempty"` - // abc2123sdfc - StoreId string `json:"store_id,omitempty" xml:"store_id,omitempty"` - // 店铺shopId - ShopId int64 `json:"shop_id,omitempty" xml:"shop_id,omitempty"` - // 订单支付时间 - PayTime int64 `json:"pay_time,omitempty" xml:"pay_time,omitempty"` - // 订单创建时间 - CreateTime int64 `json:"create_time,omitempty" xml:"create_time,omitempty"` - // 单店单日订单唯一序号 - SerialNo string `json:"serial_no,omitempty" xml:"serial_no,omitempty"` - // 订单状态:1-等待买家付款;2-等待商家接单;4-退款中;12-商家配送中;20-订单关闭;22-订单关闭;21-交易完成; - OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"` - // 淘宝订单id - OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"` -} diff --git a/model/drug/AlibabaHealthNrLogisticsDeliverynoUpdateAPIRequest.go b/model/drug/AlibabaHealthNrLogisticsDeliverynoUpdateAPIRequest.go new file mode 100644 index 0000000000..5f3f9e41e8 --- /dev/null +++ b/model/drug/AlibabaHealthNrLogisticsDeliverynoUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package drug + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传订单同城快递单号 API请求 +alibaba.health.nr.logistics.deliveryno.update + +上传订单同城快递单号 +*/ +type AlibabaHealthNrLogisticsDeliverynoUpdateAPIRequest struct { + model.Params + // 订单ID + _orderId int64 + // 快递公司代码 + _cpCode string + // 快递单号 + _courierNo string + // 是否强制上传,1代表强制,其他值代表需要进行cp_code合法性校验 + _force int64 +} + +// 初始化AlibabaHealthNrLogisticsDeliverynoUpdateAPIRequest对象 +func NewAlibabaHealthNrLogisticsDeliverynoUpdateRequest() *AlibabaHealthNrLogisticsDeliverynoUpdateAPIRequest{ + return &AlibabaHealthNrLogisticsDeliverynoUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHealthNrLogisticsDeliverynoUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.health.nr.logistics.deliveryno.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHealthNrLogisticsDeliverynoUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单ID +func (r *AlibabaHealthNrLogisticsDeliverynoUpdateAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHealthNrLogisticsDeliverynoUpdateAPIRequest) GetOrderId() int64 { + return r._orderId +} +// CpCode Setter +// 快递公司代码 +func (r *AlibabaHealthNrLogisticsDeliverynoUpdateAPIRequest) SetCpCode(_cpCode string) error { + r._cpCode = _cpCode + r.Set("cp_code", _cpCode) + return nil +} + +// CpCode Getter +func (r AlibabaHealthNrLogisticsDeliverynoUpdateAPIRequest) GetCpCode() string { + return r._cpCode +} +// CourierNo Setter +// 快递单号 +func (r *AlibabaHealthNrLogisticsDeliverynoUpdateAPIRequest) SetCourierNo(_courierNo string) error { + r._courierNo = _courierNo + r.Set("courier_no", _courierNo) + return nil +} + +// CourierNo Getter +func (r AlibabaHealthNrLogisticsDeliverynoUpdateAPIRequest) GetCourierNo() string { + return r._courierNo +} +// Force Setter +// 是否强制上传,1代表强制,其他值代表需要进行cp_code合法性校验 +func (r *AlibabaHealthNrLogisticsDeliverynoUpdateAPIRequest) SetForce(_force int64) error { + r._force = _force + r.Set("force", _force) + return nil +} + +// Force Getter +func (r AlibabaHealthNrLogisticsDeliverynoUpdateAPIRequest) GetForce() int64 { + return r._force +} diff --git a/model/drug/AlibabaHealthNrLogisticsDeliverynoUpdateAPIResponse.go b/model/drug/AlibabaHealthNrLogisticsDeliverynoUpdateAPIResponse.go new file mode 100644 index 0000000000..9806356937 --- /dev/null +++ b/model/drug/AlibabaHealthNrLogisticsDeliverynoUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package drug + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传订单同城快递单号 API返回值 +alibaba.health.nr.logistics.deliveryno.update + +上传订单同城快递单号 +*/ +type AlibabaHealthNrLogisticsDeliverynoUpdateAPIResponse struct { + model.CommonResponse + AlibabaHealthNrLogisticsDeliverynoUpdateAPIResponseModel +} + +// 上传订单同城快递单号 成功返回结果 +type AlibabaHealthNrLogisticsDeliverynoUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_health_nr_logistics_deliveryno_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 更新成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drug/AlibabaHealthNrLogisticsDeliverynoUpdateResponse.go b/model/drug/AlibabaHealthNrLogisticsDeliverynoUpdateResponse.go deleted file mode 100644 index fdd7e78527..0000000000 --- a/model/drug/AlibabaHealthNrLogisticsDeliverynoUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drug - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传订单同城快递单号 API返回值 -alibaba.health.nr.logistics.deliveryno.update - -上传订单同城快递单号 -*/ -type AlibabaHealthNrLogisticsDeliverynoUpdateAPIResponse struct { - model.CommonResponse - AlibabaHealthNrLogisticsDeliverynoUpdateResponse -} - -// 上传订单同城快递单号 成功返回结果 -type AlibabaHealthNrLogisticsDeliverynoUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_health_nr_logistics_deliveryno_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 更新成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drug/AlibabaHealthNrLogisticsWaybillGetAPIRequest.go b/model/drug/AlibabaHealthNrLogisticsWaybillGetAPIRequest.go new file mode 100644 index 0000000000..8f3442824d --- /dev/null +++ b/model/drug/AlibabaHealthNrLogisticsWaybillGetAPIRequest.go @@ -0,0 +1,52 @@ +package drug + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +电子面单查询接口 API请求 +alibaba.health.nr.logistics.waybill.get + +商家登录后根据订单号查询物流单号及电子面单信息 +*/ +type AlibabaHealthNrLogisticsWaybillGetAPIRequest struct { + model.Params + // 订单id + _orderId int64 +} + +// 初始化AlibabaHealthNrLogisticsWaybillGetAPIRequest对象 +func NewAlibabaHealthNrLogisticsWaybillGetRequest() *AlibabaHealthNrLogisticsWaybillGetAPIRequest{ + return &AlibabaHealthNrLogisticsWaybillGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHealthNrLogisticsWaybillGetAPIRequest) GetApiMethodName() string { + return "alibaba.health.nr.logistics.waybill.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHealthNrLogisticsWaybillGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单id +func (r *AlibabaHealthNrLogisticsWaybillGetAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHealthNrLogisticsWaybillGetAPIRequest) GetOrderId() int64 { + return r._orderId +} diff --git a/model/drug/AlibabaHealthNrLogisticsWaybillGetAPIResponse.go b/model/drug/AlibabaHealthNrLogisticsWaybillGetAPIResponse.go new file mode 100644 index 0000000000..07361dd88a --- /dev/null +++ b/model/drug/AlibabaHealthNrLogisticsWaybillGetAPIResponse.go @@ -0,0 +1,27 @@ +package drug + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +电子面单查询接口 API返回值 +alibaba.health.nr.logistics.waybill.get + +商家登录后根据订单号查询物流单号及电子面单信息 +*/ +type AlibabaHealthNrLogisticsWaybillGetAPIResponse struct { + model.CommonResponse + AlibabaHealthNrLogisticsWaybillGetAPIResponseModel +} + +// 电子面单查询接口 成功返回结果 +type AlibabaHealthNrLogisticsWaybillGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_health_nr_logistics_waybill_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应结果对象 + ResponseResult *ResponseResult `json:"response_result,omitempty" xml:"response_result,omitempty"` +} diff --git a/model/drug/AlibabaHealthNrLogisticsWaybillGetResponse.go b/model/drug/AlibabaHealthNrLogisticsWaybillGetResponse.go deleted file mode 100644 index 7a57927b0c..0000000000 --- a/model/drug/AlibabaHealthNrLogisticsWaybillGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drug - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -电子面单查询接口 API返回值 -alibaba.health.nr.logistics.waybill.get - -商家登录后根据订单号查询物流单号及电子面单信息 -*/ -type AlibabaHealthNrLogisticsWaybillGetAPIResponse struct { - model.CommonResponse - AlibabaHealthNrLogisticsWaybillGetResponse -} - -// 电子面单查询接口 成功返回结果 -type AlibabaHealthNrLogisticsWaybillGetResponse struct { - XMLName xml.Name `xml:"alibaba_health_nr_logistics_waybill_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应结果对象 - ResponseResult *ResponseResult `json:"response_result,omitempty" xml:"response_result,omitempty"` -} diff --git a/model/drug/TaobaoAlihealthDrugStoreGetAPIRequest.go b/model/drug/TaobaoAlihealthDrugStoreGetAPIRequest.go new file mode 100644 index 0000000000..b1d65665af --- /dev/null +++ b/model/drug/TaobaoAlihealthDrugStoreGetAPIRequest.go @@ -0,0 +1,52 @@ +package drug + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据店铺id获取店铺详情 API请求 +taobao.alihealth.drug.store.get + +根据店铺id获取店铺详情 +*/ +type TaobaoAlihealthDrugStoreGetAPIRequest struct { + model.Params + // 店铺ID + _shopId int64 +} + +// 初始化TaobaoAlihealthDrugStoreGetAPIRequest对象 +func NewTaobaoAlihealthDrugStoreGetRequest() *TaobaoAlihealthDrugStoreGetAPIRequest{ + return &TaobaoAlihealthDrugStoreGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlihealthDrugStoreGetAPIRequest) GetApiMethodName() string { + return "taobao.alihealth.drug.store.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlihealthDrugStoreGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShopId Setter +// 店铺ID +func (r *TaobaoAlihealthDrugStoreGetAPIRequest) SetShopId(_shopId int64) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r TaobaoAlihealthDrugStoreGetAPIRequest) GetShopId() int64 { + return r._shopId +} diff --git a/model/drug/TaobaoAlihealthDrugStoreGetAPIResponse.go b/model/drug/TaobaoAlihealthDrugStoreGetAPIResponse.go new file mode 100644 index 0000000000..a8951b1cb5 --- /dev/null +++ b/model/drug/TaobaoAlihealthDrugStoreGetAPIResponse.go @@ -0,0 +1,27 @@ +package drug + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据店铺id获取店铺详情 API返回值 +taobao.alihealth.drug.store.get + +根据店铺id获取店铺详情 +*/ +type TaobaoAlihealthDrugStoreGetAPIResponse struct { + model.CommonResponse + TaobaoAlihealthDrugStoreGetAPIResponseModel +} + +// 根据店铺id获取店铺详情 成功返回结果 +type TaobaoAlihealthDrugStoreGetAPIResponseModel struct { + XMLName xml.Name `xml:"alihealth_drug_store_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // model + Model *StoreDetailDto `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/drug/TaobaoAlihealthDrugStoreGetResponse.go b/model/drug/TaobaoAlihealthDrugStoreGetResponse.go deleted file mode 100644 index b48f90fb25..0000000000 --- a/model/drug/TaobaoAlihealthDrugStoreGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drug - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据店铺id获取店铺详情 API返回值 -taobao.alihealth.drug.store.get - -根据店铺id获取店铺详情 -*/ -type TaobaoAlihealthDrugStoreGetAPIResponse struct { - model.CommonResponse - TaobaoAlihealthDrugStoreGetResponse -} - -// 根据店铺id获取店铺详情 成功返回结果 -type TaobaoAlihealthDrugStoreGetResponse struct { - XMLName xml.Name `xml:"alihealth_drug_store_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // model - Model *StoreDetailDto `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/drug/TaobaoAlihealthDrugStoreSearchAPIRequest.go b/model/drug/TaobaoAlihealthDrugStoreSearchAPIRequest.go new file mode 100644 index 0000000000..828e0658e8 --- /dev/null +++ b/model/drug/TaobaoAlihealthDrugStoreSearchAPIRequest.go @@ -0,0 +1,94 @@ +package drug + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +药品店内搜索 API请求 +taobao.alihealth.drug.store.search + +提供给千牛智能客服,在阿里健康O2O店铺内搜索药品 +*/ +type TaobaoAlihealthDrugStoreSearchAPIRequest struct { + model.Params + // 搜索关键字 + _keyword string + // 每页显示数量 + _pageSize int64 + // 店铺ID + _shopId string + // 页码 + _pageNo int64 +} + +// 初始化TaobaoAlihealthDrugStoreSearchAPIRequest对象 +func NewTaobaoAlihealthDrugStoreSearchRequest() *TaobaoAlihealthDrugStoreSearchAPIRequest{ + return &TaobaoAlihealthDrugStoreSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlihealthDrugStoreSearchAPIRequest) GetApiMethodName() string { + return "taobao.alihealth.drug.store.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlihealthDrugStoreSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Keyword Setter +// 搜索关键字 +func (r *TaobaoAlihealthDrugStoreSearchAPIRequest) SetKeyword(_keyword string) error { + r._keyword = _keyword + r.Set("keyword", _keyword) + return nil +} + +// Keyword Getter +func (r TaobaoAlihealthDrugStoreSearchAPIRequest) GetKeyword() string { + return r._keyword +} +// PageSize Setter +// 每页显示数量 +func (r *TaobaoAlihealthDrugStoreSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoAlihealthDrugStoreSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// ShopId Setter +// 店铺ID +func (r *TaobaoAlihealthDrugStoreSearchAPIRequest) SetShopId(_shopId string) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r TaobaoAlihealthDrugStoreSearchAPIRequest) GetShopId() string { + return r._shopId +} +// PageNo Setter +// 页码 +func (r *TaobaoAlihealthDrugStoreSearchAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoAlihealthDrugStoreSearchAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/drug/TaobaoAlihealthDrugStoreSearchAPIResponse.go b/model/drug/TaobaoAlihealthDrugStoreSearchAPIResponse.go new file mode 100644 index 0000000000..3f0f7828ad --- /dev/null +++ b/model/drug/TaobaoAlihealthDrugStoreSearchAPIResponse.go @@ -0,0 +1,27 @@ +package drug + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +药品店内搜索 API返回值 +taobao.alihealth.drug.store.search + +提供给千牛智能客服,在阿里健康O2O店铺内搜索药品 +*/ +type TaobaoAlihealthDrugStoreSearchAPIResponse struct { + model.CommonResponse + TaobaoAlihealthDrugStoreSearchAPIResponseModel +} + +// 药品店内搜索 成功返回结果 +type TaobaoAlihealthDrugStoreSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alihealth_drug_store_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // model + Model *O2OInShopSearchResponse `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/drug/TaobaoAlihealthDrugStoreSearchResponse.go b/model/drug/TaobaoAlihealthDrugStoreSearchResponse.go deleted file mode 100644 index 8d285c3125..0000000000 --- a/model/drug/TaobaoAlihealthDrugStoreSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drug - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -药品店内搜索 API返回值 -taobao.alihealth.drug.store.search - -提供给千牛智能客服,在阿里健康O2O店铺内搜索药品 -*/ -type TaobaoAlihealthDrugStoreSearchAPIResponse struct { - model.CommonResponse - TaobaoAlihealthDrugStoreSearchResponse -} - -// 药品店内搜索 成功返回结果 -type TaobaoAlihealthDrugStoreSearchResponse struct { - XMLName xml.Name `xml:"alihealth_drug_store_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // model - Model *O2OInShopSearchResponse `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/drug/TaobaoAlihealthDrugUserShopGetAPIRequest.go b/model/drug/TaobaoAlihealthDrugUserShopGetAPIRequest.go new file mode 100644 index 0000000000..24411f28d8 --- /dev/null +++ b/model/drug/TaobaoAlihealthDrugUserShopGetAPIRequest.go @@ -0,0 +1,52 @@ +package drug + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据用户id获取店铺id API请求 +taobao.alihealth.drug.user.shop.get + +提供给千牛智能客服,获取用户当前咨询的店铺ID +*/ +type TaobaoAlihealthDrugUserShopGetAPIRequest struct { + model.Params + // 用户昵称 + _userNick string +} + +// 初始化TaobaoAlihealthDrugUserShopGetAPIRequest对象 +func NewTaobaoAlihealthDrugUserShopGetRequest() *TaobaoAlihealthDrugUserShopGetAPIRequest{ + return &TaobaoAlihealthDrugUserShopGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlihealthDrugUserShopGetAPIRequest) GetApiMethodName() string { + return "taobao.alihealth.drug.user.shop.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlihealthDrugUserShopGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserNick Setter +// 用户昵称 +func (r *TaobaoAlihealthDrugUserShopGetAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r TaobaoAlihealthDrugUserShopGetAPIRequest) GetUserNick() string { + return r._userNick +} diff --git a/model/drug/TaobaoAlihealthDrugUserShopGetAPIResponse.go b/model/drug/TaobaoAlihealthDrugUserShopGetAPIResponse.go new file mode 100644 index 0000000000..d6941da16e --- /dev/null +++ b/model/drug/TaobaoAlihealthDrugUserShopGetAPIResponse.go @@ -0,0 +1,27 @@ +package drug + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据用户id获取店铺id API返回值 +taobao.alihealth.drug.user.shop.get + +提供给千牛智能客服,获取用户当前咨询的店铺ID +*/ +type TaobaoAlihealthDrugUserShopGetAPIResponse struct { + model.CommonResponse + TaobaoAlihealthDrugUserShopGetAPIResponseModel +} + +// 根据用户id获取店铺id 成功返回结果 +type TaobaoAlihealthDrugUserShopGetAPIResponseModel struct { + XMLName xml.Name `xml:"alihealth_drug_user_shop_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // shopId + ShopId int64 `json:"shop_id,omitempty" xml:"shop_id,omitempty"` +} diff --git a/model/drug/TaobaoAlihealthDrugUserShopGetResponse.go b/model/drug/TaobaoAlihealthDrugUserShopGetResponse.go deleted file mode 100644 index 364eb44992..0000000000 --- a/model/drug/TaobaoAlihealthDrugUserShopGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drug - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据用户id获取店铺id API返回值 -taobao.alihealth.drug.user.shop.get - -提供给千牛智能客服,获取用户当前咨询的店铺ID -*/ -type TaobaoAlihealthDrugUserShopGetAPIResponse struct { - model.CommonResponse - TaobaoAlihealthDrugUserShopGetResponse -} - -// 根据用户id获取店铺id 成功返回结果 -type TaobaoAlihealthDrugUserShopGetResponse struct { - XMLName xml.Name `xml:"alihealth_drug_user_shop_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // shopId - ShopId int64 `json:"shop_id,omitempty" xml:"shop_id,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthCodesellerGetuserawardAPIRequest.go b/model/drugtrace/AlibabaAlihealthCodesellerGetuserawardAPIRequest.go new file mode 100644 index 0000000000..c5b2ea5157 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthCodesellerGetuserawardAPIRequest.go @@ -0,0 +1,52 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机扫码查询领奖状态 API请求 +alibaba.alihealth.codeseller.getuseraward + +贩卖机扫码查询领奖状态 +*/ +type AlibabaAlihealthCodesellerGetuserawardAPIRequest struct { + model.Params + // 追溯码 + _code string +} + +// 初始化AlibabaAlihealthCodesellerGetuserawardAPIRequest对象 +func NewAlibabaAlihealthCodesellerGetuserawardRequest() *AlibabaAlihealthCodesellerGetuserawardAPIRequest{ + return &AlibabaAlihealthCodesellerGetuserawardAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthCodesellerGetuserawardAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.codeseller.getuseraward" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthCodesellerGetuserawardAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 追溯码 +func (r *AlibabaAlihealthCodesellerGetuserawardAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthCodesellerGetuserawardAPIRequest) GetCode() string { + return r._code +} diff --git a/model/drugtrace/AlibabaAlihealthCodesellerGetuserawardAPIResponse.go b/model/drugtrace/AlibabaAlihealthCodesellerGetuserawardAPIResponse.go new file mode 100644 index 0000000000..518704a5db --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthCodesellerGetuserawardAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机扫码查询领奖状态 API返回值 +alibaba.alihealth.codeseller.getuseraward + +贩卖机扫码查询领奖状态 +*/ +type AlibabaAlihealthCodesellerGetuserawardAPIResponse struct { + model.CommonResponse + AlibabaAlihealthCodesellerGetuserawardAPIResponseModel +} + +// 贩卖机扫码查询领奖状态 成功返回结果 +type AlibabaAlihealthCodesellerGetuserawardAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_codeseller_getuseraward_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否领取奖品 true:已领取 false:未领取 null:未知 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 状态码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 状态值 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 响应标识 + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthCodesellerGetuserawardResponse.go b/model/drugtrace/AlibabaAlihealthCodesellerGetuserawardResponse.go deleted file mode 100644 index 97d2884852..0000000000 --- a/model/drugtrace/AlibabaAlihealthCodesellerGetuserawardResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -贩卖机扫码查询领奖状态 API返回值 -alibaba.alihealth.codeseller.getuseraward - -贩卖机扫码查询领奖状态 -*/ -type AlibabaAlihealthCodesellerGetuserawardAPIResponse struct { - model.CommonResponse - AlibabaAlihealthCodesellerGetuserawardResponse -} - -// 贩卖机扫码查询领奖状态 成功返回结果 -type AlibabaAlihealthCodesellerGetuserawardResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_codeseller_getuseraward_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否领取奖品 true:已领取 false:未领取 null:未知 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 状态码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 状态值 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 响应标识 - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIRequest.go new file mode 100644 index 0000000000..6da2090a0f --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIRequest.go @@ -0,0 +1,94 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询上游出库单明细(带追溯码信息) API请求 +alibaba.alihealth.drug.bill.upbill.detail.withcode + +查询上游出库单明细(带追溯码信息) +*/ +type AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIRequest struct { + model.Params + // 企业id + _refEntId string + // 单据编码 + _billCode string + // 发货企业renEntId + _fromRefUserId string + // 收货企业refEntId + _toRefUserId string +} + +// 初始化AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIRequest对象 +func NewAlibabaAlihealthDrugBillUpbillDetailWithcodeRequest() *AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIRequest{ + return &AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.bill.upbill.detail.withcode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业id +func (r *AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIRequest) GetRefEntId() string { + return r._refEntId +} +// BillCode Setter +// 单据编码 +func (r *AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIRequest) GetBillCode() string { + return r._billCode +} +// FromRefUserId Setter +// 发货企业renEntId +func (r *AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIRequest) SetFromRefUserId(_fromRefUserId string) error { + r._fromRefUserId = _fromRefUserId + r.Set("from_ref_user_id", _fromRefUserId) + return nil +} + +// FromRefUserId Getter +func (r AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIRequest) GetFromRefUserId() string { + return r._fromRefUserId +} +// ToRefUserId Setter +// 收货企业refEntId +func (r *AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIRequest) SetToRefUserId(_toRefUserId string) error { + r._toRefUserId = _toRefUserId + r.Set("to_ref_user_id", _toRefUserId) + return nil +} + +// ToRefUserId Getter +func (r AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIRequest) GetToRefUserId() string { + return r._toRefUserId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIResponse.go new file mode 100644 index 0000000000..01136edf21 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询上游出库单明细(带追溯码信息) API返回值 +alibaba.alihealth.drug.bill.upbill.detail.withcode + +查询上游出库单明细(带追溯码信息) +*/ +type AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIResponseModel +} + +// 查询上游出库单明细(带追溯码信息) 成功返回结果 +type AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_bill_upbill_detail_withcode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugBillUpbillDetailWithcodeResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugBillUpbillDetailWithcodeResponse.go b/model/drugtrace/AlibabaAlihealthDrugBillUpbillDetailWithcodeResponse.go deleted file mode 100644 index b73c2e2d5a..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugBillUpbillDetailWithcodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询上游出库单明细(带追溯码信息) API返回值 -alibaba.alihealth.drug.bill.upbill.detail.withcode - -查询上游出库单明细(带追溯码信息) -*/ -type AlibabaAlihealthDrugBillUpbillDetailWithcodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugBillUpbillDetailWithcodeResponse -} - -// 查询上游出库单明细(带追溯码信息) 成功返回结果 -type AlibabaAlihealthDrugBillUpbillDetailWithcodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_bill_upbill_detail_withcode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugBillUpbillDetailWithcodeResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIRequest.go new file mode 100644 index 0000000000..fdb11b0c0e --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIRequest.go @@ -0,0 +1,52 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单据流向查询 API请求 +alibaba.alihealth.drug.code.advance.bill.flow.direction + +单据流向查询 +*/ +type AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIRequest struct { + model.Params + // 追溯码 + _code string +} + +// 初始化AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIRequest对象 +func NewAlibabaAlihealthDrugCodeAdvanceBillFlowDirectionRequest() *AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIRequest{ + return &AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.code.advance.bill.flow.direction" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 追溯码 +func (r *AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIRequest) GetCode() string { + return r._code +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIResponse.go new file mode 100644 index 0000000000..782f5ba4f1 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单据流向查询 API返回值 +alibaba.alihealth.drug.code.advance.bill.flow.direction + +单据流向查询 +*/ +type AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIResponseModel +} + +// 单据流向查询 成功返回结果 +type AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_code_advance_bill_flow_direction_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionResponse.go deleted file mode 100644 index d6f5c48237..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单据流向查询 API返回值 -alibaba.alihealth.drug.code.advance.bill.flow.direction - -单据流向查询 -*/ -type AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionResponse -} - -// 单据流向查询 成功返回结果 -type AlibabaAlihealthDrugCodeAdvanceBillFlowDirectionResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_code_advance_bill_flow_direction_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest.go new file mode 100644 index 0000000000..2e7b7fa57f --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest.go @@ -0,0 +1,136 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +码核查状态同步-医院 API请求 +alibaba.alihealth.drug.code.code.check.hospital + +码核查状态同步-医院 +*/ +type AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest struct { + model.Params + // 认证企业refEntId + _authRefEntId string + // 企业refEntId + _refEntId string + // 城市名 + _bureauName string + // 终端名称 + _terminalName string + // 终端类型 + _terminalType string + // 核销类型 + _cType string + // 码列表 + _codes []string +} + +// 初始化AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest对象 +func NewAlibabaAlihealthDrugCodeCodeCheckHospitalRequest() *AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest{ + return &AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.code.code.check.hospital" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AuthRefEntId Setter +// 认证企业refEntId +func (r *AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest) SetAuthRefEntId(_authRefEntId string) error { + r._authRefEntId = _authRefEntId + r.Set("auth_ref_ent_id", _authRefEntId) + return nil +} + +// AuthRefEntId Getter +func (r AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest) GetAuthRefEntId() string { + return r._authRefEntId +} +// RefEntId Setter +// 企业refEntId +func (r *AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest) GetRefEntId() string { + return r._refEntId +} +// BureauName Setter +// 城市名 +func (r *AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest) SetBureauName(_bureauName string) error { + r._bureauName = _bureauName + r.Set("bureau_name", _bureauName) + return nil +} + +// BureauName Getter +func (r AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest) GetBureauName() string { + return r._bureauName +} +// TerminalName Setter +// 终端名称 +func (r *AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest) SetTerminalName(_terminalName string) error { + r._terminalName = _terminalName + r.Set("terminal_name", _terminalName) + return nil +} + +// TerminalName Getter +func (r AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest) GetTerminalName() string { + return r._terminalName +} +// TerminalType Setter +// 终端类型 +func (r *AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest) GetTerminalType() string { + return r._terminalType +} +// CType Setter +// 核销类型 +func (r *AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest) SetCType(_cType string) error { + r._cType = _cType + r.Set("c_type", _cType) + return nil +} + +// CType Getter +func (r AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest) GetCType() string { + return r._cType +} +// Codes Setter +// 码列表 +func (r *AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest) SetCodes(_codes []string) error { + r._codes = _codes + r.Set("codes", _codes) + return nil +} + +// Codes Getter +func (r AlibabaAlihealthDrugCodeCodeCheckHospitalAPIRequest) GetCodes() []string { + return r._codes +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckHospitalAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckHospitalAPIResponse.go new file mode 100644 index 0000000000..24699baaaa --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckHospitalAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +码核查状态同步-医院 API返回值 +alibaba.alihealth.drug.code.code.check.hospital + +码核查状态同步-医院 +*/ +type AlibabaAlihealthDrugCodeCodeCheckHospitalAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugCodeCodeCheckHospitalAPIResponseModel +} + +// 码核查状态同步-医院 成功返回结果 +type AlibabaAlihealthDrugCodeCodeCheckHospitalAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_code_code_check_hospital_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugCodeCodeCheckHospitalResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckHospitalResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckHospitalResponse.go deleted file mode 100644 index 2f96af1319..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckHospitalResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -码核查状态同步-医院 API返回值 -alibaba.alihealth.drug.code.code.check.hospital - -码核查状态同步-医院 -*/ -type AlibabaAlihealthDrugCodeCodeCheckHospitalAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugCodeCodeCheckHospitalResponse -} - -// 码核查状态同步-医院 成功返回结果 -type AlibabaAlihealthDrugCodeCodeCheckHospitalResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_code_code_check_hospital_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugCodeCodeCheckHospitalResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest.go new file mode 100644 index 0000000000..a916ce9832 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest.go @@ -0,0 +1,127 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +码核查状态同步-医保 API请求 +alibaba.alihealth.drug.code.code.check.medical.insurance + +服务描述 +核查平台在进行医保单据鉴证核查时,会记录单据中所有提交的追溯码信息;单据中的 +追溯码包含所有正常和异常的数据; +此接口,针对正式鉴核的单据中提交的有效的、正常状态的追溯码,提供可由核查平台 +发起,按单据鉴核时间顺序组织,向码上放心平台同步每笔单据核销的码状态信息; +入参采用数组方式提供,一次同步最多支持100条记录 +*/ +type AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest struct { + model.Params + // 行政区域 + _bureauName string + // 终端id + _terminalId string + // 终端类型(1005100-零售药店;1005200-医疗机构) + _terminalType string + // 核销类型(1012100:核销;1012900:退库) + _cType string + // 码列表 + _codes []string + // 平台返回的终端id + _terminalEntId string +} + +// 初始化AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest对象 +func NewAlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceRequest() *AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest{ + return &AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.code.code.check.medical.insurance" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BureauName Setter +// 行政区域 +func (r *AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest) SetBureauName(_bureauName string) error { + r._bureauName = _bureauName + r.Set("bureau_name", _bureauName) + return nil +} + +// BureauName Getter +func (r AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest) GetBureauName() string { + return r._bureauName +} +// TerminalId Setter +// 终端id +func (r *AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest) SetTerminalId(_terminalId string) error { + r._terminalId = _terminalId + r.Set("terminal_id", _terminalId) + return nil +} + +// TerminalId Getter +func (r AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest) GetTerminalId() string { + return r._terminalId +} +// TerminalType Setter +// 终端类型(1005100-零售药店;1005200-医疗机构) +func (r *AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest) GetTerminalType() string { + return r._terminalType +} +// CType Setter +// 核销类型(1012100:核销;1012900:退库) +func (r *AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest) SetCType(_cType string) error { + r._cType = _cType + r.Set("c_type", _cType) + return nil +} + +// CType Getter +func (r AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest) GetCType() string { + return r._cType +} +// Codes Setter +// 码列表 +func (r *AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest) SetCodes(_codes []string) error { + r._codes = _codes + r.Set("codes", _codes) + return nil +} + +// Codes Getter +func (r AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest) GetCodes() []string { + return r._codes +} +// TerminalEntId Setter +// 平台返回的终端id +func (r *AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest) SetTerminalEntId(_terminalEntId string) error { + r._terminalEntId = _terminalEntId + r.Set("terminal_ent_id", _terminalEntId) + return nil +} + +// TerminalEntId Getter +func (r AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIRequest) GetTerminalEntId() string { + return r._terminalEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIResponse.go new file mode 100644 index 0000000000..baed3dbd56 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIResponse.go @@ -0,0 +1,32 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +码核查状态同步-医保 API返回值 +alibaba.alihealth.drug.code.code.check.medical.insurance + +服务描述 +核查平台在进行医保单据鉴证核查时,会记录单据中所有提交的追溯码信息;单据中的 +追溯码包含所有正常和异常的数据; +此接口,针对正式鉴核的单据中提交的有效的、正常状态的追溯码,提供可由核查平台 +发起,按单据鉴核时间顺序组织,向码上放心平台同步每笔单据核销的码状态信息; +入参采用数组方式提供,一次同步最多支持100条记录 +*/ +type AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIResponseModel +} + +// 码核查状态同步-医保 成功返回结果 +type AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_code_code_check_medical_insurance_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceResponse.go deleted file mode 100644 index f532343ada..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceResponse.go +++ /dev/null @@ -1,32 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -码核查状态同步-医保 API返回值 -alibaba.alihealth.drug.code.code.check.medical.insurance - -服务描述 -核查平台在进行医保单据鉴证核查时,会记录单据中所有提交的追溯码信息;单据中的 -追溯码包含所有正常和异常的数据; -此接口,针对正式鉴核的单据中提交的有效的、正常状态的追溯码,提供可由核查平台 -发起,按单据鉴核时间顺序组织,向码上放心平台同步每笔单据核销的码状态信息; -入参采用数组方式提供,一次同步最多支持100条记录 -*/ -type AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceResponse -} - -// 码核查状态同步-医保 成功返回结果 -type AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_code_code_check_medical_insurance_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugCodeCodeCheckMedicalInsuranceResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest.go new file mode 100644 index 0000000000..e6e5ae53b0 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest.go @@ -0,0 +1,178 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通用查询码接口 API请求 +alibaba.alihealth.drug.code.common.list.codeinfo + +通用查询码接口 +*/ +type AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest struct { + model.Params + // 企业refEntId + _refEntId string + // 标示医院业务 + _searchSource string + // 追溯码 + _codeList []string + // 证件编号 + _certIsvNo string + // 调用方式:formal-正式、test-测试 + _invocation string + // 终端类型 1:零售 + _terminalType string + // 调用零售药店名称 + _terminalName string + // 城市名称 + _bureauName string + // 错误信息 + _errorMessage string + // 验证权限企业id + _authRefEntId string +} + +// 初始化AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest对象 +func NewAlibabaAlihealthDrugCodeCommonListCodeinfoRequest() *AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest{ + return &AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.code.common.list.codeinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业refEntId +func (r *AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) GetRefEntId() string { + return r._refEntId +} +// SearchSource Setter +// 标示医院业务 +func (r *AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) SetSearchSource(_searchSource string) error { + r._searchSource = _searchSource + r.Set("search_source", _searchSource) + return nil +} + +// SearchSource Getter +func (r AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) GetSearchSource() string { + return r._searchSource +} +// CodeList Setter +// 追溯码 +func (r *AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) SetCodeList(_codeList []string) error { + r._codeList = _codeList + r.Set("code_list", _codeList) + return nil +} + +// CodeList Getter +func (r AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) GetCodeList() []string { + return r._codeList +} +// CertIsvNo Setter +// 证件编号 +func (r *AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) SetCertIsvNo(_certIsvNo string) error { + r._certIsvNo = _certIsvNo + r.Set("cert_isv_no", _certIsvNo) + return nil +} + +// CertIsvNo Getter +func (r AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) GetCertIsvNo() string { + return r._certIsvNo +} +// Invocation Setter +// 调用方式:formal-正式、test-测试 +func (r *AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) SetInvocation(_invocation string) error { + r._invocation = _invocation + r.Set("invocation", _invocation) + return nil +} + +// Invocation Getter +func (r AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) GetInvocation() string { + return r._invocation +} +// TerminalType Setter +// 终端类型 1:零售 +func (r *AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) GetTerminalType() string { + return r._terminalType +} +// TerminalName Setter +// 调用零售药店名称 +func (r *AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) SetTerminalName(_terminalName string) error { + r._terminalName = _terminalName + r.Set("terminal_name", _terminalName) + return nil +} + +// TerminalName Getter +func (r AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) GetTerminalName() string { + return r._terminalName +} +// BureauName Setter +// 城市名称 +func (r *AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) SetBureauName(_bureauName string) error { + r._bureauName = _bureauName + r.Set("bureau_name", _bureauName) + return nil +} + +// BureauName Getter +func (r AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) GetBureauName() string { + return r._bureauName +} +// ErrorMessage Setter +// 错误信息 +func (r *AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) SetErrorMessage(_errorMessage string) error { + r._errorMessage = _errorMessage + r.Set("error_message", _errorMessage) + return nil +} + +// ErrorMessage Getter +func (r AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) GetErrorMessage() string { + return r._errorMessage +} +// AuthRefEntId Setter +// 验证权限企业id +func (r *AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) SetAuthRefEntId(_authRefEntId string) error { + r._authRefEntId = _authRefEntId + r.Set("auth_ref_ent_id", _authRefEntId) + return nil +} + +// AuthRefEntId Getter +func (r AlibabaAlihealthDrugCodeCommonListCodeinfoAPIRequest) GetAuthRefEntId() string { + return r._authRefEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeCommonListCodeinfoAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeCommonListCodeinfoAPIResponse.go new file mode 100644 index 0000000000..4e41ad35dd --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeCommonListCodeinfoAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通用查询码接口 API返回值 +alibaba.alihealth.drug.code.common.list.codeinfo + +通用查询码接口 +*/ +type AlibabaAlihealthDrugCodeCommonListCodeinfoAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugCodeCommonListCodeinfoAPIResponseModel +} + +// 通用查询码接口 成功返回结果 +type AlibabaAlihealthDrugCodeCommonListCodeinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_code_common_list_codeinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最外层结果 + Result *AlibabaAlihealthDrugCodeCommonListCodeinfoResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeCommonListCodeinfoResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeCommonListCodeinfoResponse.go deleted file mode 100644 index 5f94ce5bc3..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugCodeCommonListCodeinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通用查询码接口 API返回值 -alibaba.alihealth.drug.code.common.list.codeinfo - -通用查询码接口 -*/ -type AlibabaAlihealthDrugCodeCommonListCodeinfoAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugCodeCommonListCodeinfoResponse -} - -// 通用查询码接口 成功返回结果 -type AlibabaAlihealthDrugCodeCommonListCodeinfoResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_code_common_list_codeinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最外层结果 - Result *AlibabaAlihealthDrugCodeCommonListCodeinfoResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeErrorReportAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugCodeErrorReportAPIRequest.go new file mode 100644 index 0000000000..e63e7165d2 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeErrorReportAPIRequest.go @@ -0,0 +1,150 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +码信息错误上报 API请求 +alibaba.alihealth.drug.code.error.report + +提供码信息错误上报功能,用于数据校对 +*/ +type AlibabaAlihealthDrugCodeErrorReportAPIRequest struct { + model.Params + // 追溯码 + _code string + // 有问题的字段名称 + _fieldName string + // 通过码获得的问题字段值 + _codeValue string + // 平台获得/期望的问题字段值 + _sourceValue string + // 错误信息描述 + _errMsg string + // 上报人员 + _reporter string + // 上报人员邮箱 + _reporterEmail string + // 上报人员手机号 + _reporterMobile string +} + +// 初始化AlibabaAlihealthDrugCodeErrorReportAPIRequest对象 +func NewAlibabaAlihealthDrugCodeErrorReportRequest() *AlibabaAlihealthDrugCodeErrorReportAPIRequest{ + return &AlibabaAlihealthDrugCodeErrorReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugCodeErrorReportAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.code.error.report" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugCodeErrorReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 追溯码 +func (r *AlibabaAlihealthDrugCodeErrorReportAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthDrugCodeErrorReportAPIRequest) GetCode() string { + return r._code +} +// FieldName Setter +// 有问题的字段名称 +func (r *AlibabaAlihealthDrugCodeErrorReportAPIRequest) SetFieldName(_fieldName string) error { + r._fieldName = _fieldName + r.Set("field_name", _fieldName) + return nil +} + +// FieldName Getter +func (r AlibabaAlihealthDrugCodeErrorReportAPIRequest) GetFieldName() string { + return r._fieldName +} +// CodeValue Setter +// 通过码获得的问题字段值 +func (r *AlibabaAlihealthDrugCodeErrorReportAPIRequest) SetCodeValue(_codeValue string) error { + r._codeValue = _codeValue + r.Set("code_value", _codeValue) + return nil +} + +// CodeValue Getter +func (r AlibabaAlihealthDrugCodeErrorReportAPIRequest) GetCodeValue() string { + return r._codeValue +} +// SourceValue Setter +// 平台获得/期望的问题字段值 +func (r *AlibabaAlihealthDrugCodeErrorReportAPIRequest) SetSourceValue(_sourceValue string) error { + r._sourceValue = _sourceValue + r.Set("source_value", _sourceValue) + return nil +} + +// SourceValue Getter +func (r AlibabaAlihealthDrugCodeErrorReportAPIRequest) GetSourceValue() string { + return r._sourceValue +} +// ErrMsg Setter +// 错误信息描述 +func (r *AlibabaAlihealthDrugCodeErrorReportAPIRequest) SetErrMsg(_errMsg string) error { + r._errMsg = _errMsg + r.Set("err_msg", _errMsg) + return nil +} + +// ErrMsg Getter +func (r AlibabaAlihealthDrugCodeErrorReportAPIRequest) GetErrMsg() string { + return r._errMsg +} +// Reporter Setter +// 上报人员 +func (r *AlibabaAlihealthDrugCodeErrorReportAPIRequest) SetReporter(_reporter string) error { + r._reporter = _reporter + r.Set("reporter", _reporter) + return nil +} + +// Reporter Getter +func (r AlibabaAlihealthDrugCodeErrorReportAPIRequest) GetReporter() string { + return r._reporter +} +// ReporterEmail Setter +// 上报人员邮箱 +func (r *AlibabaAlihealthDrugCodeErrorReportAPIRequest) SetReporterEmail(_reporterEmail string) error { + r._reporterEmail = _reporterEmail + r.Set("reporter_email", _reporterEmail) + return nil +} + +// ReporterEmail Getter +func (r AlibabaAlihealthDrugCodeErrorReportAPIRequest) GetReporterEmail() string { + return r._reporterEmail +} +// ReporterMobile Setter +// 上报人员手机号 +func (r *AlibabaAlihealthDrugCodeErrorReportAPIRequest) SetReporterMobile(_reporterMobile string) error { + r._reporterMobile = _reporterMobile + r.Set("reporter_mobile", _reporterMobile) + return nil +} + +// ReporterMobile Getter +func (r AlibabaAlihealthDrugCodeErrorReportAPIRequest) GetReporterMobile() string { + return r._reporterMobile +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeErrorReportAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeErrorReportAPIResponse.go new file mode 100644 index 0000000000..9406977e07 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeErrorReportAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +码信息错误上报 API返回值 +alibaba.alihealth.drug.code.error.report + +提供码信息错误上报功能,用于数据校对 +*/ +type AlibabaAlihealthDrugCodeErrorReportAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugCodeErrorReportAPIResponseModel +} + +// 码信息错误上报 成功返回结果 +type AlibabaAlihealthDrugCodeErrorReportAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_code_error_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 返回结果描述 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 返回结果code + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 接口调用状态 + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeErrorReportResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeErrorReportResponse.go deleted file mode 100644 index d30d155b5f..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugCodeErrorReportResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -码信息错误上报 API返回值 -alibaba.alihealth.drug.code.error.report - -提供码信息错误上报功能,用于数据校对 -*/ -type AlibabaAlihealthDrugCodeErrorReportAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugCodeErrorReportResponse -} - -// 码信息错误上报 成功返回结果 -type AlibabaAlihealthDrugCodeErrorReportResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_code_error_report_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 返回结果描述 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 返回结果code - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 接口调用状态 - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytDrQuerycodeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytDrQuerycodeAPIRequest.go new file mode 100644 index 0000000000..a855c044a1 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeKytDrQuerycodeAPIRequest.go @@ -0,0 +1,68 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +多融根据码查询码信息 API请求 +alibaba.alihealth.drug.code.kyt.dr.querycode + +服务描述 +此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息。 +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugCodeKytDrQuerycodeAPIRequest struct { + model.Params + // 企业唯一标识(或appkey) + _refEntId string + // 码列表 + _codes []string +} + +// 初始化AlibabaAlihealthDrugCodeKytDrQuerycodeAPIRequest对象 +func NewAlibabaAlihealthDrugCodeKytDrQuerycodeRequest() *AlibabaAlihealthDrugCodeKytDrQuerycodeAPIRequest{ + return &AlibabaAlihealthDrugCodeKytDrQuerycodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugCodeKytDrQuerycodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.code.kyt.dr.querycode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugCodeKytDrQuerycodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业唯一标识(或appkey) +func (r *AlibabaAlihealthDrugCodeKytDrQuerycodeAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugCodeKytDrQuerycodeAPIRequest) GetRefEntId() string { + return r._refEntId +} +// Codes Setter +// 码列表 +func (r *AlibabaAlihealthDrugCodeKytDrQuerycodeAPIRequest) SetCodes(_codes []string) error { + r._codes = _codes + r.Set("codes", _codes) + return nil +} + +// Codes Getter +func (r AlibabaAlihealthDrugCodeKytDrQuerycodeAPIRequest) GetCodes() []string { + return r._codes +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytDrQuerycodeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytDrQuerycodeAPIResponse.go new file mode 100644 index 0000000000..d5bd680e50 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeKytDrQuerycodeAPIResponse.go @@ -0,0 +1,29 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +多融根据码查询码信息 API返回值 +alibaba.alihealth.drug.code.kyt.dr.querycode + +服务描述 +此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息。 +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugCodeKytDrQuerycodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugCodeKytDrQuerycodeAPIResponseModel +} + +// 多融根据码查询码信息 成功返回结果 +type AlibabaAlihealthDrugCodeKytDrQuerycodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_code_kyt_dr_querycode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最外层结果 + Result *AlibabaAlihealthDrugCodeKytDrQuerycodeResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytDrQuerycodeResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytDrQuerycodeResponse.go deleted file mode 100644 index 24678e9e07..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugCodeKytDrQuerycodeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -多融根据码查询码信息 API返回值 -alibaba.alihealth.drug.code.kyt.dr.querycode - -服务描述 -此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息。 -核查平台优先过滤非8开头的,长度非20位数字的码信息。 -*/ -type AlibabaAlihealthDrugCodeKytDrQuerycodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugCodeKytDrQuerycodeResponse -} - -// 多融根据码查询码信息 成功返回结果 -type AlibabaAlihealthDrugCodeKytDrQuerycodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_code_kyt_dr_querycode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最外层结果 - Result *AlibabaAlihealthDrugCodeKytDrQuerycodeResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeAPIRequest.go new file mode 100644 index 0000000000..46db4ff3fa --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeAPIRequest.go @@ -0,0 +1,67 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询追溯码对应的药品信息 API请求 +alibaba.alihealth.drug.code.kyt.querycode + +此接口针对有码药品,提供可通过追溯码获取该药品的基础信息和生产信息; +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugCodeKytQuerycodeAPIRequest struct { + model.Params + // 企业唯一标识 + _refEntId string + // 码列表 + _codes []string +} + +// 初始化AlibabaAlihealthDrugCodeKytQuerycodeAPIRequest对象 +func NewAlibabaAlihealthDrugCodeKytQuerycodeRequest() *AlibabaAlihealthDrugCodeKytQuerycodeAPIRequest{ + return &AlibabaAlihealthDrugCodeKytQuerycodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugCodeKytQuerycodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.code.kyt.querycode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugCodeKytQuerycodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业唯一标识 +func (r *AlibabaAlihealthDrugCodeKytQuerycodeAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugCodeKytQuerycodeAPIRequest) GetRefEntId() string { + return r._refEntId +} +// Codes Setter +// 码列表 +func (r *AlibabaAlihealthDrugCodeKytQuerycodeAPIRequest) SetCodes(_codes []string) error { + r._codes = _codes + r.Set("codes", _codes) + return nil +} + +// Codes Getter +func (r AlibabaAlihealthDrugCodeKytQuerycodeAPIRequest) GetCodes() []string { + return r._codes +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeAPIResponse.go new file mode 100644 index 0000000000..545bdf5108 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeAPIResponse.go @@ -0,0 +1,28 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询追溯码对应的药品信息 API返回值 +alibaba.alihealth.drug.code.kyt.querycode + +此接口针对有码药品,提供可通过追溯码获取该药品的基础信息和生产信息; +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugCodeKytQuerycodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugCodeKytQuerycodeAPIResponseModel +} + +// 查询追溯码对应的药品信息 成功返回结果 +type AlibabaAlihealthDrugCodeKytQuerycodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_code_kyt_querycode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最外层结果 + Result *AlibabaAlihealthDrugCodeKytQuerycodeResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeResponse.go deleted file mode 100644 index 3ef47dcdb9..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询追溯码对应的药品信息 API返回值 -alibaba.alihealth.drug.code.kyt.querycode - -此接口针对有码药品,提供可通过追溯码获取该药品的基础信息和生产信息; -核查平台优先过滤非8开头的,长度非20位数字的码信息。 -*/ -type AlibabaAlihealthDrugCodeKytQuerycodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugCodeKytQuerycodeResponse -} - -// 查询追溯码对应的药品信息 成功返回结果 -type AlibabaAlihealthDrugCodeKytQuerycodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_code_kyt_querycode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最外层结果 - Result *AlibabaAlihealthDrugCodeKytQuerycodeResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest.go new file mode 100644 index 0000000000..d874a4a32a --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest.go @@ -0,0 +1,164 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +码流向查询 API请求 +alibaba.alihealth.drug.code.kyt.querycodeflow + +追溯码流向查询 +*/ +type AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 追溯码 + _code string + // 经度 + _longitude string + // 纬度 + _latitude string + // 查询地所在省 + _queryProv string + // 查询地所在市 + _queryCity string + // 查询地所在区 + _queryArea string + // 查询地所在区域代码 + _queryRegionCode string + // 详细地址 + _detail string +} + +// 初始化AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest对象 +func NewAlibabaAlihealthDrugCodeKytQuerycodeflowRequest() *AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest{ + return &AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.code.kyt.querycodeflow" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) GetRefEntId() string { + return r._refEntId +} +// Code Setter +// 追溯码 +func (r *AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) GetCode() string { + return r._code +} +// Longitude Setter +// 经度 +func (r *AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) GetLongitude() string { + return r._longitude +} +// Latitude Setter +// 纬度 +func (r *AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) GetLatitude() string { + return r._latitude +} +// QueryProv Setter +// 查询地所在省 +func (r *AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) SetQueryProv(_queryProv string) error { + r._queryProv = _queryProv + r.Set("query_prov", _queryProv) + return nil +} + +// QueryProv Getter +func (r AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) GetQueryProv() string { + return r._queryProv +} +// QueryCity Setter +// 查询地所在市 +func (r *AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) SetQueryCity(_queryCity string) error { + r._queryCity = _queryCity + r.Set("query_city", _queryCity) + return nil +} + +// QueryCity Getter +func (r AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) GetQueryCity() string { + return r._queryCity +} +// QueryArea Setter +// 查询地所在区 +func (r *AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) SetQueryArea(_queryArea string) error { + r._queryArea = _queryArea + r.Set("query_area", _queryArea) + return nil +} + +// QueryArea Getter +func (r AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) GetQueryArea() string { + return r._queryArea +} +// QueryRegionCode Setter +// 查询地所在区域代码 +func (r *AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) SetQueryRegionCode(_queryRegionCode string) error { + r._queryRegionCode = _queryRegionCode + r.Set("query_region_code", _queryRegionCode) + return nil +} + +// QueryRegionCode Getter +func (r AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) GetQueryRegionCode() string { + return r._queryRegionCode +} +// Detail Setter +// 详细地址 +func (r *AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) SetDetail(_detail string) error { + r._detail = _detail + r.Set("detail", _detail) + return nil +} + +// Detail Getter +func (r AlibabaAlihealthDrugCodeKytQuerycodeflowAPIRequest) GetDetail() string { + return r._detail +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeflowAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeflowAPIResponse.go new file mode 100644 index 0000000000..6134d848b1 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeflowAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +码流向查询 API返回值 +alibaba.alihealth.drug.code.kyt.querycodeflow + +追溯码流向查询 +*/ +type AlibabaAlihealthDrugCodeKytQuerycodeflowAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugCodeKytQuerycodeflowAPIResponseModel +} + +// 码流向查询 成功返回结果 +type AlibabaAlihealthDrugCodeKytQuerycodeflowAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_code_kyt_querycodeflow_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugCodeKytQuerycodeflowResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeflowResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeflowResponse.go deleted file mode 100644 index 6e1aa6d18e..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugCodeKytQuerycodeflowResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -码流向查询 API返回值 -alibaba.alihealth.drug.code.kyt.querycodeflow - -追溯码流向查询 -*/ -type AlibabaAlihealthDrugCodeKytQuerycodeflowAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugCodeKytQuerycodeflowResponse -} - -// 码流向查询 成功返回结果 -type AlibabaAlihealthDrugCodeKytQuerycodeflowResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_code_kyt_querycodeflow_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugCodeKytQuerycodeflowResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIRequest.go new file mode 100644 index 0000000000..5c415c1857 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIRequest.go @@ -0,0 +1,67 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +扫码营销码查询 API请求 +alibaba.alihealth.drug.code.kyt.smyx.querycode + +此接口针对有码药品,提供可通过追溯码获取该药品的基础信息和生产信息; +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIRequest struct { + model.Params + // 企业唯一标识 + _refEntId string + // 码列表 + _codes []string +} + +// 初始化AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIRequest对象 +func NewAlibabaAlihealthDrugCodeKytSmyxQuerycodeRequest() *AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIRequest{ + return &AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.code.kyt.smyx.querycode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业唯一标识 +func (r *AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIRequest) GetRefEntId() string { + return r._refEntId +} +// Codes Setter +// 码列表 +func (r *AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIRequest) SetCodes(_codes []string) error { + r._codes = _codes + r.Set("codes", _codes) + return nil +} + +// Codes Getter +func (r AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIRequest) GetCodes() []string { + return r._codes +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIResponse.go new file mode 100644 index 0000000000..a93413040c --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIResponse.go @@ -0,0 +1,28 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +扫码营销码查询 API返回值 +alibaba.alihealth.drug.code.kyt.smyx.querycode + +此接口针对有码药品,提供可通过追溯码获取该药品的基础信息和生产信息; +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIResponseModel +} + +// 扫码营销码查询 成功返回结果 +type AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_code_kyt_smyx_querycode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最外层结果 + Result *AlibabaAlihealthDrugCodeKytSmyxQuerycodeResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytSmyxQuerycodeResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytSmyxQuerycodeResponse.go deleted file mode 100644 index fd8a009e5c..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugCodeKytSmyxQuerycodeResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -扫码营销码查询 API返回值 -alibaba.alihealth.drug.code.kyt.smyx.querycode - -此接口针对有码药品,提供可通过追溯码获取该药品的基础信息和生产信息; -核查平台优先过滤非8开头的,长度非20位数字的码信息。 -*/ -type AlibabaAlihealthDrugCodeKytSmyxQuerycodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugCodeKytSmyxQuerycodeResponse -} - -// 扫码营销码查询 成功返回结果 -type AlibabaAlihealthDrugCodeKytSmyxQuerycodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_code_kyt_smyx_querycode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最外层结果 - Result *AlibabaAlihealthDrugCodeKytSmyxQuerycodeResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytVaQuerycodeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytVaQuerycodeAPIRequest.go new file mode 100644 index 0000000000..0435132d4c --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeKytVaQuerycodeAPIRequest.go @@ -0,0 +1,68 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据码查询码信息 API请求 +alibaba.alihealth.drug.code.kyt.va.querycode + +服务描述 +此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息。 +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugCodeKytVaQuerycodeAPIRequest struct { + model.Params + // 企业唯一标识(或appkey) + _refEntId string + // 码列表 + _codes []string +} + +// 初始化AlibabaAlihealthDrugCodeKytVaQuerycodeAPIRequest对象 +func NewAlibabaAlihealthDrugCodeKytVaQuerycodeRequest() *AlibabaAlihealthDrugCodeKytVaQuerycodeAPIRequest{ + return &AlibabaAlihealthDrugCodeKytVaQuerycodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugCodeKytVaQuerycodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.code.kyt.va.querycode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugCodeKytVaQuerycodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业唯一标识(或appkey) +func (r *AlibabaAlihealthDrugCodeKytVaQuerycodeAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugCodeKytVaQuerycodeAPIRequest) GetRefEntId() string { + return r._refEntId +} +// Codes Setter +// 码列表 +func (r *AlibabaAlihealthDrugCodeKytVaQuerycodeAPIRequest) SetCodes(_codes []string) error { + r._codes = _codes + r.Set("codes", _codes) + return nil +} + +// Codes Getter +func (r AlibabaAlihealthDrugCodeKytVaQuerycodeAPIRequest) GetCodes() []string { + return r._codes +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytVaQuerycodeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytVaQuerycodeAPIResponse.go new file mode 100644 index 0000000000..b95edb60ec --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeKytVaQuerycodeAPIResponse.go @@ -0,0 +1,29 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据码查询码信息 API返回值 +alibaba.alihealth.drug.code.kyt.va.querycode + +服务描述 +此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息。 +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugCodeKytVaQuerycodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugCodeKytVaQuerycodeAPIResponseModel +} + +// 根据码查询码信息 成功返回结果 +type AlibabaAlihealthDrugCodeKytVaQuerycodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_code_kyt_va_querycode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最外层结果 + Result *AlibabaAlihealthDrugCodeKytVaQuerycodeResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytVaQuerycodeResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytVaQuerycodeResponse.go deleted file mode 100644 index 754df22cfe..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugCodeKytVaQuerycodeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据码查询码信息 API返回值 -alibaba.alihealth.drug.code.kyt.va.querycode - -服务描述 -此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息。 -核查平台优先过滤非8开头的,长度非20位数字的码信息。 -*/ -type AlibabaAlihealthDrugCodeKytVaQuerycodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugCodeKytVaQuerycodeResponse -} - -// 根据码查询码信息 成功返回结果 -type AlibabaAlihealthDrugCodeKytVaQuerycodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_code_kyt_va_querycode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最外层结果 - Result *AlibabaAlihealthDrugCodeKytVaQuerycodeResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytYdQuerycodeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytYdQuerycodeAPIRequest.go new file mode 100644 index 0000000000..0c3d38240f --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeKytYdQuerycodeAPIRequest.go @@ -0,0 +1,67 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询追溯码对应的药品信息(药店) API请求 +alibaba.alihealth.drug.code.kyt.yd.querycode + +此接口针对有码药品,提供可通过追溯码获取该药品的基础信息和生产信息; +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugCodeKytYdQuerycodeAPIRequest struct { + model.Params + // 企业唯一标识 + _refEntId string + // 码列表 + _codes []string +} + +// 初始化AlibabaAlihealthDrugCodeKytYdQuerycodeAPIRequest对象 +func NewAlibabaAlihealthDrugCodeKytYdQuerycodeRequest() *AlibabaAlihealthDrugCodeKytYdQuerycodeAPIRequest{ + return &AlibabaAlihealthDrugCodeKytYdQuerycodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugCodeKytYdQuerycodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.code.kyt.yd.querycode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugCodeKytYdQuerycodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业唯一标识 +func (r *AlibabaAlihealthDrugCodeKytYdQuerycodeAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugCodeKytYdQuerycodeAPIRequest) GetRefEntId() string { + return r._refEntId +} +// Codes Setter +// 码列表 +func (r *AlibabaAlihealthDrugCodeKytYdQuerycodeAPIRequest) SetCodes(_codes []string) error { + r._codes = _codes + r.Set("codes", _codes) + return nil +} + +// Codes Getter +func (r AlibabaAlihealthDrugCodeKytYdQuerycodeAPIRequest) GetCodes() []string { + return r._codes +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytYdQuerycodeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytYdQuerycodeAPIResponse.go new file mode 100644 index 0000000000..16ac48fee8 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeKytYdQuerycodeAPIResponse.go @@ -0,0 +1,28 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询追溯码对应的药品信息(药店) API返回值 +alibaba.alihealth.drug.code.kyt.yd.querycode + +此接口针对有码药品,提供可通过追溯码获取该药品的基础信息和生产信息; +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugCodeKytYdQuerycodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugCodeKytYdQuerycodeAPIResponseModel +} + +// 查询追溯码对应的药品信息(药店) 成功返回结果 +type AlibabaAlihealthDrugCodeKytYdQuerycodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_code_kyt_yd_querycode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最外层结果 + Result *AlibabaAlihealthDrugCodeKytYdQuerycodeResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytYdQuerycodeResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytYdQuerycodeResponse.go deleted file mode 100644 index 4056319536..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugCodeKytYdQuerycodeResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询追溯码对应的药品信息(药店) API返回值 -alibaba.alihealth.drug.code.kyt.yd.querycode - -此接口针对有码药品,提供可通过追溯码获取该药品的基础信息和生产信息; -核查平台优先过滤非8开头的,长度非20位数字的码信息。 -*/ -type AlibabaAlihealthDrugCodeKytYdQuerycodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugCodeKytYdQuerycodeResponse -} - -// 查询追溯码对应的药品信息(药店) 成功返回结果 -type AlibabaAlihealthDrugCodeKytYdQuerycodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_code_kyt_yd_querycode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最外层结果 - Result *AlibabaAlihealthDrugCodeKytYdQuerycodeResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytYqQuerycodeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytYqQuerycodeAPIRequest.go new file mode 100644 index 0000000000..00997f624f --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeKytYqQuerycodeAPIRequest.go @@ -0,0 +1,80 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询追溯码对应的药品信息(疫情) API请求 +alibaba.alihealth.drug.code.kyt.yq.querycode + +通过追溯码码得到 药品名称、包装规格、剂型、剂型规格”、有效期至等信息。 +*/ +type AlibabaAlihealthDrugCodeKytYqQuerycodeAPIRequest struct { + model.Params + // 追溯码 + _codeList []string + // 调用零售药店名称 + _terminalName string + // 门店所属的行政区域ID + _bureauId string +} + +// 初始化AlibabaAlihealthDrugCodeKytYqQuerycodeAPIRequest对象 +func NewAlibabaAlihealthDrugCodeKytYqQuerycodeRequest() *AlibabaAlihealthDrugCodeKytYqQuerycodeAPIRequest{ + return &AlibabaAlihealthDrugCodeKytYqQuerycodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugCodeKytYqQuerycodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.code.kyt.yq.querycode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugCodeKytYqQuerycodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CodeList Setter +// 追溯码 +func (r *AlibabaAlihealthDrugCodeKytYqQuerycodeAPIRequest) SetCodeList(_codeList []string) error { + r._codeList = _codeList + r.Set("code_list", _codeList) + return nil +} + +// CodeList Getter +func (r AlibabaAlihealthDrugCodeKytYqQuerycodeAPIRequest) GetCodeList() []string { + return r._codeList +} +// TerminalName Setter +// 调用零售药店名称 +func (r *AlibabaAlihealthDrugCodeKytYqQuerycodeAPIRequest) SetTerminalName(_terminalName string) error { + r._terminalName = _terminalName + r.Set("terminal_name", _terminalName) + return nil +} + +// TerminalName Getter +func (r AlibabaAlihealthDrugCodeKytYqQuerycodeAPIRequest) GetTerminalName() string { + return r._terminalName +} +// BureauId Setter +// 门店所属的行政区域ID +func (r *AlibabaAlihealthDrugCodeKytYqQuerycodeAPIRequest) SetBureauId(_bureauId string) error { + r._bureauId = _bureauId + r.Set("bureau_id", _bureauId) + return nil +} + +// BureauId Getter +func (r AlibabaAlihealthDrugCodeKytYqQuerycodeAPIRequest) GetBureauId() string { + return r._bureauId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytYqQuerycodeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytYqQuerycodeAPIResponse.go new file mode 100644 index 0000000000..ea14a984f3 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeKytYqQuerycodeAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询追溯码对应的药品信息(疫情) API返回值 +alibaba.alihealth.drug.code.kyt.yq.querycode + +通过追溯码码得到 药品名称、包装规格、剂型、剂型规格”、有效期至等信息。 +*/ +type AlibabaAlihealthDrugCodeKytYqQuerycodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugCodeKytYqQuerycodeAPIResponseModel +} + +// 查询追溯码对应的药品信息(疫情) 成功返回结果 +type AlibabaAlihealthDrugCodeKytYqQuerycodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_code_kyt_yq_querycode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最外层结果 + Result *AlibabaAlihealthDrugCodeKytYqQuerycodeResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytYqQuerycodeResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytYqQuerycodeResponse.go deleted file mode 100644 index 7117336815..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugCodeKytYqQuerycodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询追溯码对应的药品信息(疫情) API返回值 -alibaba.alihealth.drug.code.kyt.yq.querycode - -通过追溯码码得到 药品名称、包装规格、剂型、剂型规格”、有效期至等信息。 -*/ -type AlibabaAlihealthDrugCodeKytYqQuerycodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugCodeKytYqQuerycodeResponse -} - -// 查询追溯码对应的药品信息(疫情) 成功返回结果 -type AlibabaAlihealthDrugCodeKytYqQuerycodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_code_kyt_yq_querycode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最外层结果 - Result *AlibabaAlihealthDrugCodeKytYqQuerycodeResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytYyApplycodeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytYyApplycodeAPIRequest.go new file mode 100644 index 0000000000..1b3b98c797 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeKytYyApplycodeAPIRequest.go @@ -0,0 +1,80 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +医院药品子码申请接口 API请求 +alibaba.alihealth.drug.code.kyt.yy.applycode + +根据父码及所属企业ID生成子码信息 +*/ +type AlibabaAlihealthDrugCodeKytYyApplycodeAPIRequest struct { + model.Params + // 企业ID(ref_ent_id) + _refEntId string + // 父码 + _code string + // 申请数量 + _amount int64 +} + +// 初始化AlibabaAlihealthDrugCodeKytYyApplycodeAPIRequest对象 +func NewAlibabaAlihealthDrugCodeKytYyApplycodeRequest() *AlibabaAlihealthDrugCodeKytYyApplycodeAPIRequest{ + return &AlibabaAlihealthDrugCodeKytYyApplycodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugCodeKytYyApplycodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.code.kyt.yy.applycode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugCodeKytYyApplycodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID(ref_ent_id) +func (r *AlibabaAlihealthDrugCodeKytYyApplycodeAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugCodeKytYyApplycodeAPIRequest) GetRefEntId() string { + return r._refEntId +} +// Code Setter +// 父码 +func (r *AlibabaAlihealthDrugCodeKytYyApplycodeAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthDrugCodeKytYyApplycodeAPIRequest) GetCode() string { + return r._code +} +// Amount Setter +// 申请数量 +func (r *AlibabaAlihealthDrugCodeKytYyApplycodeAPIRequest) SetAmount(_amount int64) error { + r._amount = _amount + r.Set("amount", _amount) + return nil +} + +// Amount Getter +func (r AlibabaAlihealthDrugCodeKytYyApplycodeAPIRequest) GetAmount() int64 { + return r._amount +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytYyApplycodeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytYyApplycodeAPIResponse.go new file mode 100644 index 0000000000..b8c827522c --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeKytYyApplycodeAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +医院药品子码申请接口 API返回值 +alibaba.alihealth.drug.code.kyt.yy.applycode + +根据父码及所属企业ID生成子码信息 +*/ +type AlibabaAlihealthDrugCodeKytYyApplycodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugCodeKytYyApplycodeAPIResponseModel +} + +// 医院药品子码申请接口 成功返回结果 +type AlibabaAlihealthDrugCodeKytYyApplycodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_code_kyt_yy_applycode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回结果 + Result *AlibabaAlihealthDrugCodeKytYyApplycodeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytYyApplycodeResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytYyApplycodeResponse.go deleted file mode 100644 index a0f8b15808..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugCodeKytYyApplycodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -医院药品子码申请接口 API返回值 -alibaba.alihealth.drug.code.kyt.yy.applycode - -根据父码及所属企业ID生成子码信息 -*/ -type AlibabaAlihealthDrugCodeKytYyApplycodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugCodeKytYyApplycodeResponse -} - -// 医院药品子码申请接口 成功返回结果 -type AlibabaAlihealthDrugCodeKytYyApplycodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_code_kyt_yy_applycode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回结果 - Result *AlibabaAlihealthDrugCodeKytYyApplycodeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytYyQuerycodeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytYyQuerycodeAPIRequest.go new file mode 100644 index 0000000000..715ace0be9 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeKytYyQuerycodeAPIRequest.go @@ -0,0 +1,68 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +医院根据码查询码信息 API请求 +alibaba.alihealth.drug.code.kyt.yy.querycode + +服务描述 +此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息。 +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugCodeKytYyQuerycodeAPIRequest struct { + model.Params + // 企业唯一标识(或appkey) + _refEntId string + // 码列表 + _codes []string +} + +// 初始化AlibabaAlihealthDrugCodeKytYyQuerycodeAPIRequest对象 +func NewAlibabaAlihealthDrugCodeKytYyQuerycodeRequest() *AlibabaAlihealthDrugCodeKytYyQuerycodeAPIRequest{ + return &AlibabaAlihealthDrugCodeKytYyQuerycodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugCodeKytYyQuerycodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.code.kyt.yy.querycode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugCodeKytYyQuerycodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业唯一标识(或appkey) +func (r *AlibabaAlihealthDrugCodeKytYyQuerycodeAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugCodeKytYyQuerycodeAPIRequest) GetRefEntId() string { + return r._refEntId +} +// Codes Setter +// 码列表 +func (r *AlibabaAlihealthDrugCodeKytYyQuerycodeAPIRequest) SetCodes(_codes []string) error { + r._codes = _codes + r.Set("codes", _codes) + return nil +} + +// Codes Getter +func (r AlibabaAlihealthDrugCodeKytYyQuerycodeAPIRequest) GetCodes() []string { + return r._codes +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytYyQuerycodeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytYyQuerycodeAPIResponse.go new file mode 100644 index 0000000000..1398651836 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeKytYyQuerycodeAPIResponse.go @@ -0,0 +1,29 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +医院根据码查询码信息 API返回值 +alibaba.alihealth.drug.code.kyt.yy.querycode + +服务描述 +此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息。 +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugCodeKytYyQuerycodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugCodeKytYyQuerycodeAPIResponseModel +} + +// 医院根据码查询码信息 成功返回结果 +type AlibabaAlihealthDrugCodeKytYyQuerycodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_code_kyt_yy_querycode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最外层结果 + Result *AlibabaAlihealthDrugCodeKytYyQuerycodeResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeKytYyQuerycodeResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeKytYyQuerycodeResponse.go deleted file mode 100644 index dbb6944fca..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugCodeKytYyQuerycodeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -医院根据码查询码信息 API返回值 -alibaba.alihealth.drug.code.kyt.yy.querycode - -服务描述 -此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息。 -核查平台优先过滤非8开头的,长度非20位数字的码信息。 -*/ -type AlibabaAlihealthDrugCodeKytYyQuerycodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugCodeKytYyQuerycodeResponse -} - -// 医院根据码查询码信息 成功返回结果 -type AlibabaAlihealthDrugCodeKytYyQuerycodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_code_kyt_yy_querycode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最外层结果 - Result *AlibabaAlihealthDrugCodeKytYyQuerycodeResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest.go new file mode 100644 index 0000000000..824a5a0924 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest.go @@ -0,0 +1,142 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据码查询码信息-黄麻碱 API请求 +alibaba.alihealth.drug.code.list.code.alkali + +服务描述 +黄麻碱鉴证核查是基于在两定机构的药品管理(入库、出库或盘点)环节,增加扫码匹配 +与验证鉴核流程; +此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息; +若所传的监管码是非最小包装监管码,且存在药品混包的情况,则此接口不支持。这种 +情况下,需要分多次调用该接口。 +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest struct { + model.Params + // 追溯码 + _codeList []string + // 证件编号 + _certIsvNo string + // 调用方式:formal-正式、test-测试 + _invocation string + // 终端类型 1:零售 + _terminalType string + // 调用零售药店名称 + _terminalName string + // 城市名称 + _bureauName string + // 错误信息 + _errorMessage string +} + +// 初始化AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest对象 +func NewAlibabaAlihealthDrugCodeListCodeAlkaliRequest() *AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest{ + return &AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.code.list.code.alkali" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CodeList Setter +// 追溯码 +func (r *AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest) SetCodeList(_codeList []string) error { + r._codeList = _codeList + r.Set("code_list", _codeList) + return nil +} + +// CodeList Getter +func (r AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest) GetCodeList() []string { + return r._codeList +} +// CertIsvNo Setter +// 证件编号 +func (r *AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest) SetCertIsvNo(_certIsvNo string) error { + r._certIsvNo = _certIsvNo + r.Set("cert_isv_no", _certIsvNo) + return nil +} + +// CertIsvNo Getter +func (r AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest) GetCertIsvNo() string { + return r._certIsvNo +} +// Invocation Setter +// 调用方式:formal-正式、test-测试 +func (r *AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest) SetInvocation(_invocation string) error { + r._invocation = _invocation + r.Set("invocation", _invocation) + return nil +} + +// Invocation Getter +func (r AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest) GetInvocation() string { + return r._invocation +} +// TerminalType Setter +// 终端类型 1:零售 +func (r *AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest) GetTerminalType() string { + return r._terminalType +} +// TerminalName Setter +// 调用零售药店名称 +func (r *AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest) SetTerminalName(_terminalName string) error { + r._terminalName = _terminalName + r.Set("terminal_name", _terminalName) + return nil +} + +// TerminalName Getter +func (r AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest) GetTerminalName() string { + return r._terminalName +} +// BureauName Setter +// 城市名称 +func (r *AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest) SetBureauName(_bureauName string) error { + r._bureauName = _bureauName + r.Set("bureau_name", _bureauName) + return nil +} + +// BureauName Getter +func (r AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest) GetBureauName() string { + return r._bureauName +} +// ErrorMessage Setter +// 错误信息 +func (r *AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest) SetErrorMessage(_errorMessage string) error { + r._errorMessage = _errorMessage + r.Set("error_message", _errorMessage) + return nil +} + +// ErrorMessage Getter +func (r AlibabaAlihealthDrugCodeListCodeAlkaliAPIRequest) GetErrorMessage() string { + return r._errorMessage +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeListCodeAlkaliAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeListCodeAlkaliAPIResponse.go new file mode 100644 index 0000000000..443c23f939 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeListCodeAlkaliAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据码查询码信息-黄麻碱 API返回值 +alibaba.alihealth.drug.code.list.code.alkali + +服务描述 +黄麻碱鉴证核查是基于在两定机构的药品管理(入库、出库或盘点)环节,增加扫码匹配 +与验证鉴核流程; +此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息; +若所传的监管码是非最小包装监管码,且存在药品混包的情况,则此接口不支持。这种 +情况下,需要分多次调用该接口。 +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugCodeListCodeAlkaliAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugCodeListCodeAlkaliAPIResponseModel +} + +// 根据码查询码信息-黄麻碱 成功返回结果 +type AlibabaAlihealthDrugCodeListCodeAlkaliAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_code_list_code_alkali_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最外层结果 + Result *AlibabaAlihealthDrugCodeListCodeAlkaliResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeListCodeAlkaliResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeListCodeAlkaliResponse.go deleted file mode 100644 index 4fe74c449c..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugCodeListCodeAlkaliResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据码查询码信息-黄麻碱 API返回值 -alibaba.alihealth.drug.code.list.code.alkali - -服务描述 -黄麻碱鉴证核查是基于在两定机构的药品管理(入库、出库或盘点)环节,增加扫码匹配 -与验证鉴核流程; -此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息; -若所传的监管码是非最小包装监管码,且存在药品混包的情况,则此接口不支持。这种 -情况下,需要分多次调用该接口。 -核查平台优先过滤非8开头的,长度非20位数字的码信息。 -*/ -type AlibabaAlihealthDrugCodeListCodeAlkaliAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugCodeListCodeAlkaliResponse -} - -// 根据码查询码信息-黄麻碱 成功返回结果 -type AlibabaAlihealthDrugCodeListCodeAlkaliResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_code_list_code_alkali_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最外层结果 - Result *AlibabaAlihealthDrugCodeListCodeAlkaliResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest.go new file mode 100644 index 0000000000..183e65955c --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest.go @@ -0,0 +1,142 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据码获取码信息接口-医保 API请求 +alibaba.alihealth.drug.code.list.code.medical.insurance + +服务描述 +医保鉴证核查是基于在两定机构的药品管理(入库、出库或盘点)环节,增加扫码匹配 +与验证鉴核流程; +此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息; +若所传的监管码是非最小包装监管码,且存在药品混包的情况,则此接口不支持。这种 +情况下,需要分多次调用该接口。 +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest struct { + model.Params + // 追溯码 + _codeList []string + // ISV开放平台帐号标识 + _certIsvNo string + // 调用方式:formal-正式、test-测试 + _invocation string + // 终端类型 1005100-零售药店 ;10052-医疗机构 + _terminalType string + // 调用零售药店名称 + _terminalName string + // 门店所属的行政区域ID + _bureauId string + // 零售终端id + _terminalEntId string +} + +// 初始化AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest对象 +func NewAlibabaAlihealthDrugCodeListCodeMedicalInsuranceRequest() *AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest{ + return &AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.code.list.code.medical.insurance" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CodeList Setter +// 追溯码 +func (r *AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest) SetCodeList(_codeList []string) error { + r._codeList = _codeList + r.Set("code_list", _codeList) + return nil +} + +// CodeList Getter +func (r AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest) GetCodeList() []string { + return r._codeList +} +// CertIsvNo Setter +// ISV开放平台帐号标识 +func (r *AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest) SetCertIsvNo(_certIsvNo string) error { + r._certIsvNo = _certIsvNo + r.Set("cert_isv_no", _certIsvNo) + return nil +} + +// CertIsvNo Getter +func (r AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest) GetCertIsvNo() string { + return r._certIsvNo +} +// Invocation Setter +// 调用方式:formal-正式、test-测试 +func (r *AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest) SetInvocation(_invocation string) error { + r._invocation = _invocation + r.Set("invocation", _invocation) + return nil +} + +// Invocation Getter +func (r AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest) GetInvocation() string { + return r._invocation +} +// TerminalType Setter +// 终端类型 1005100-零售药店 ;10052-医疗机构 +func (r *AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest) GetTerminalType() string { + return r._terminalType +} +// TerminalName Setter +// 调用零售药店名称 +func (r *AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest) SetTerminalName(_terminalName string) error { + r._terminalName = _terminalName + r.Set("terminal_name", _terminalName) + return nil +} + +// TerminalName Getter +func (r AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest) GetTerminalName() string { + return r._terminalName +} +// BureauId Setter +// 门店所属的行政区域ID +func (r *AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest) SetBureauId(_bureauId string) error { + r._bureauId = _bureauId + r.Set("bureau_id", _bureauId) + return nil +} + +// BureauId Getter +func (r AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest) GetBureauId() string { + return r._bureauId +} +// TerminalEntId Setter +// 零售终端id +func (r *AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest) SetTerminalEntId(_terminalEntId string) error { + r._terminalEntId = _terminalEntId + r.Set("terminal_ent_id", _terminalEntId) + return nil +} + +// TerminalEntId Getter +func (r AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIRequest) GetTerminalEntId() string { + return r._terminalEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIResponse.go new file mode 100644 index 0000000000..42838d1538 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据码获取码信息接口-医保 API返回值 +alibaba.alihealth.drug.code.list.code.medical.insurance + +服务描述 +医保鉴证核查是基于在两定机构的药品管理(入库、出库或盘点)环节,增加扫码匹配 +与验证鉴核流程; +此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息; +若所传的监管码是非最小包装监管码,且存在药品混包的情况,则此接口不支持。这种 +情况下,需要分多次调用该接口。 +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIResponseModel +} + +// 根据码获取码信息接口-医保 成功返回结果 +type AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_code_list_code_medical_insurance_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最外层结果 + Result *AlibabaAlihealthDrugCodeListCodeMedicalInsuranceResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeListCodeMedicalInsuranceResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeListCodeMedicalInsuranceResponse.go deleted file mode 100644 index 483f405631..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugCodeListCodeMedicalInsuranceResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据码获取码信息接口-医保 API返回值 -alibaba.alihealth.drug.code.list.code.medical.insurance - -服务描述 -医保鉴证核查是基于在两定机构的药品管理(入库、出库或盘点)环节,增加扫码匹配 -与验证鉴核流程; -此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息; -若所传的监管码是非最小包装监管码,且存在药品混包的情况,则此接口不支持。这种 -情况下,需要分多次调用该接口。 -核查平台优先过滤非8开头的,长度非20位数字的码信息。 -*/ -type AlibabaAlihealthDrugCodeListCodeMedicalInsuranceAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugCodeListCodeMedicalInsuranceResponse -} - -// 根据码获取码信息接口-医保 成功返回结果 -type AlibabaAlihealthDrugCodeListCodeMedicalInsuranceResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_code_list_code_medical_insurance_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最外层结果 - Result *AlibabaAlihealthDrugCodeListCodeMedicalInsuranceResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest.go new file mode 100644 index 0000000000..07fe9295c2 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest.go @@ -0,0 +1,142 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据码获取码信息-监管 API请求 +alibaba.alihealth.drug.code.list.code.supervise + +服务描述 +医保鉴证核查是基于在两定机构的药品管理(入库、出库或盘点)环节,增加扫码匹配 +与验证鉴核流程; +此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息; +若所传的监管码是非最小包装监管码,且存在药品混包的情况,则此接口不支持。这种 +情况下,需要分多次调用该接口。 +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest struct { + model.Params + // 追溯码 + _codeList []string + // ISV开放平台帐号标识 + _certIsvNo string + // 调用方式:formal-正式、test-测试 + _invocation string + // 终端类型 1005100-零售药店 ;10052-医疗机构 10053-建行智能pos机,10054-建行裕农通,10055-建行手机银行,10056-建行龙易行,10057-建行APP,10058-建行自助设备,10059-建行扫码设备 + _terminalType string + // 调用零售药店名称 + _terminalName string + // 门店所属的行政区域ID + _bureauId string + // 零售终端id + _terminalEntId string +} + +// 初始化AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest对象 +func NewAlibabaAlihealthDrugCodeListCodeSuperviseRequest() *AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest{ + return &AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.code.list.code.supervise" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CodeList Setter +// 追溯码 +func (r *AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest) SetCodeList(_codeList []string) error { + r._codeList = _codeList + r.Set("code_list", _codeList) + return nil +} + +// CodeList Getter +func (r AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest) GetCodeList() []string { + return r._codeList +} +// CertIsvNo Setter +// ISV开放平台帐号标识 +func (r *AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest) SetCertIsvNo(_certIsvNo string) error { + r._certIsvNo = _certIsvNo + r.Set("cert_isv_no", _certIsvNo) + return nil +} + +// CertIsvNo Getter +func (r AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest) GetCertIsvNo() string { + return r._certIsvNo +} +// Invocation Setter +// 调用方式:formal-正式、test-测试 +func (r *AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest) SetInvocation(_invocation string) error { + r._invocation = _invocation + r.Set("invocation", _invocation) + return nil +} + +// Invocation Getter +func (r AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest) GetInvocation() string { + return r._invocation +} +// TerminalType Setter +// 终端类型 1005100-零售药店 ;10052-医疗机构 10053-建行智能pos机,10054-建行裕农通,10055-建行手机银行,10056-建行龙易行,10057-建行APP,10058-建行自助设备,10059-建行扫码设备 +func (r *AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest) GetTerminalType() string { + return r._terminalType +} +// TerminalName Setter +// 调用零售药店名称 +func (r *AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest) SetTerminalName(_terminalName string) error { + r._terminalName = _terminalName + r.Set("terminal_name", _terminalName) + return nil +} + +// TerminalName Getter +func (r AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest) GetTerminalName() string { + return r._terminalName +} +// BureauId Setter +// 门店所属的行政区域ID +func (r *AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest) SetBureauId(_bureauId string) error { + r._bureauId = _bureauId + r.Set("bureau_id", _bureauId) + return nil +} + +// BureauId Getter +func (r AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest) GetBureauId() string { + return r._bureauId +} +// TerminalEntId Setter +// 零售终端id +func (r *AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest) SetTerminalEntId(_terminalEntId string) error { + r._terminalEntId = _terminalEntId + r.Set("terminal_ent_id", _terminalEntId) + return nil +} + +// TerminalEntId Getter +func (r AlibabaAlihealthDrugCodeListCodeSuperviseAPIRequest) GetTerminalEntId() string { + return r._terminalEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeListCodeSuperviseAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeListCodeSuperviseAPIResponse.go new file mode 100644 index 0000000000..6e6e78c0e9 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugCodeListCodeSuperviseAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据码获取码信息-监管 API返回值 +alibaba.alihealth.drug.code.list.code.supervise + +服务描述 +医保鉴证核查是基于在两定机构的药品管理(入库、出库或盘点)环节,增加扫码匹配 +与验证鉴核流程; +此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息; +若所传的监管码是非最小包装监管码,且存在药品混包的情况,则此接口不支持。这种 +情况下,需要分多次调用该接口。 +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugCodeListCodeSuperviseAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugCodeListCodeSuperviseAPIResponseModel +} + +// 根据码获取码信息-监管 成功返回结果 +type AlibabaAlihealthDrugCodeListCodeSuperviseAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_code_list_code_supervise_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最外层结果 + Result *AlibabaAlihealthDrugCodeListCodeSuperviseResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugCodeListCodeSuperviseResponse.go b/model/drugtrace/AlibabaAlihealthDrugCodeListCodeSuperviseResponse.go deleted file mode 100644 index 8a0faf3384..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugCodeListCodeSuperviseResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据码获取码信息-监管 API返回值 -alibaba.alihealth.drug.code.list.code.supervise - -服务描述 -医保鉴证核查是基于在两定机构的药品管理(入库、出库或盘点)环节,增加扫码匹配 -与验证鉴核流程; -此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息; -若所传的监管码是非最小包装监管码,且存在药品混包的情况,则此接口不支持。这种 -情况下,需要分多次调用该接口。 -核查平台优先过滤非8开头的,长度非20位数字的码信息。 -*/ -type AlibabaAlihealthDrugCodeListCodeSuperviseAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugCodeListCodeSuperviseResponse -} - -// 根据码获取码信息-监管 成功返回结果 -type AlibabaAlihealthDrugCodeListCodeSuperviseResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_code_list_code_supervise_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最外层结果 - Result *AlibabaAlihealthDrugCodeListCodeSuperviseResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugDownloadEntlistAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugDownloadEntlistAPIRequest.go new file mode 100644 index 0000000000..ca30c0520a --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugDownloadEntlistAPIRequest.go @@ -0,0 +1,52 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +企业下载列表 API请求 +alibaba.alihealth.drug.download.entlist + +获取企业的下载文件列表 +*/ +type AlibabaAlihealthDrugDownloadEntlistAPIRequest struct { + model.Params + // appKey + _appKeyN string +} + +// 初始化AlibabaAlihealthDrugDownloadEntlistAPIRequest对象 +func NewAlibabaAlihealthDrugDownloadEntlistRequest() *AlibabaAlihealthDrugDownloadEntlistAPIRequest{ + return &AlibabaAlihealthDrugDownloadEntlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugDownloadEntlistAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.download.entlist" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugDownloadEntlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppKeyN Setter +// appKey +func (r *AlibabaAlihealthDrugDownloadEntlistAPIRequest) SetAppKeyN(_appKeyN string) error { + r._appKeyN = _appKeyN + r.Set("app_key_n", _appKeyN) + return nil +} + +// AppKeyN Getter +func (r AlibabaAlihealthDrugDownloadEntlistAPIRequest) GetAppKeyN() string { + return r._appKeyN +} diff --git a/model/drugtrace/AlibabaAlihealthDrugDownloadEntlistAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugDownloadEntlistAPIResponse.go new file mode 100644 index 0000000000..29102f2199 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugDownloadEntlistAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +企业下载列表 API返回值 +alibaba.alihealth.drug.download.entlist + +获取企业的下载文件列表 +*/ +type AlibabaAlihealthDrugDownloadEntlistAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugDownloadEntlistAPIResponseModel +} + +// 企业下载列表 成功返回结果 +type AlibabaAlihealthDrugDownloadEntlistAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_download_entlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAlihealthDrugDownloadEntlistResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugDownloadEntlistResponse.go b/model/drugtrace/AlibabaAlihealthDrugDownloadEntlistResponse.go deleted file mode 100644 index 3ce19a4c4a..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugDownloadEntlistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -企业下载列表 API返回值 -alibaba.alihealth.drug.download.entlist - -获取企业的下载文件列表 -*/ -type AlibabaAlihealthDrugDownloadEntlistAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugDownloadEntlistResponse -} - -// 企业下载列表 成功返回结果 -type AlibabaAlihealthDrugDownloadEntlistResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_download_entlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAlihealthDrugDownloadEntlistResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugDownloadFileacceptretAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugDownloadFileacceptretAPIRequest.go new file mode 100644 index 0000000000..e2f49dafdb --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugDownloadFileacceptretAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +企业上传回执 API请求 +alibaba.alihealth.drug.download.fileacceptret + +拿到企业下载回执,将企业已下载的和未下载成功的条目都相应的改变状态 +*/ +type AlibabaAlihealthDrugDownloadFileacceptretAPIRequest struct { + model.Params + // appKey + _appKeyN string + // fileResultJson + _fileResultJson string +} + +// 初始化AlibabaAlihealthDrugDownloadFileacceptretAPIRequest对象 +func NewAlibabaAlihealthDrugDownloadFileacceptretRequest() *AlibabaAlihealthDrugDownloadFileacceptretAPIRequest{ + return &AlibabaAlihealthDrugDownloadFileacceptretAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugDownloadFileacceptretAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.download.fileacceptret" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugDownloadFileacceptretAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppKeyN Setter +// appKey +func (r *AlibabaAlihealthDrugDownloadFileacceptretAPIRequest) SetAppKeyN(_appKeyN string) error { + r._appKeyN = _appKeyN + r.Set("app_key_n", _appKeyN) + return nil +} + +// AppKeyN Getter +func (r AlibabaAlihealthDrugDownloadFileacceptretAPIRequest) GetAppKeyN() string { + return r._appKeyN +} +// FileResultJson Setter +// fileResultJson +func (r *AlibabaAlihealthDrugDownloadFileacceptretAPIRequest) SetFileResultJson(_fileResultJson string) error { + r._fileResultJson = _fileResultJson + r.Set("file_result_json", _fileResultJson) + return nil +} + +// FileResultJson Getter +func (r AlibabaAlihealthDrugDownloadFileacceptretAPIRequest) GetFileResultJson() string { + return r._fileResultJson +} diff --git a/model/drugtrace/AlibabaAlihealthDrugDownloadFileacceptretAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugDownloadFileacceptretAPIResponse.go new file mode 100644 index 0000000000..7c4a1f597d --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugDownloadFileacceptretAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +企业上传回执 API返回值 +alibaba.alihealth.drug.download.fileacceptret + +拿到企业下载回执,将企业已下载的和未下载成功的条目都相应的改变状态 +*/ +type AlibabaAlihealthDrugDownloadFileacceptretAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugDownloadFileacceptretAPIResponseModel +} + +// 企业上传回执 成功返回结果 +type AlibabaAlihealthDrugDownloadFileacceptretAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_download_fileacceptret_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *DataEntTaskResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugDownloadFileacceptretResponse.go b/model/drugtrace/AlibabaAlihealthDrugDownloadFileacceptretResponse.go deleted file mode 100644 index 6202be4411..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugDownloadFileacceptretResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -企业上传回执 API返回值 -alibaba.alihealth.drug.download.fileacceptret - -拿到企业下载回执,将企业已下载的和未下载成功的条目都相应的改变状态 -*/ -type AlibabaAlihealthDrugDownloadFileacceptretAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugDownloadFileacceptretResponse -} - -// 企业上传回执 成功返回结果 -type AlibabaAlihealthDrugDownloadFileacceptretResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_download_fileacceptret_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *DataEntTaskResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugDownloadGetentauthentAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugDownloadGetentauthentAPIRequest.go new file mode 100644 index 0000000000..281c06762a --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugDownloadGetentauthentAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取授权企业列表 API请求 +alibaba.alihealth.drug.download.getentauthent + +D2D数据落地获取授权企业列表 +*/ +type AlibabaAlihealthDrugDownloadGetentauthentAPIRequest struct { + model.Params + // 授权开始时间 + _authBeginDate string + // 授权结束时间 + _authEndDate string +} + +// 初始化AlibabaAlihealthDrugDownloadGetentauthentAPIRequest对象 +func NewAlibabaAlihealthDrugDownloadGetentauthentRequest() *AlibabaAlihealthDrugDownloadGetentauthentAPIRequest{ + return &AlibabaAlihealthDrugDownloadGetentauthentAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugDownloadGetentauthentAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.download.getentauthent" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugDownloadGetentauthentAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AuthBeginDate Setter +// 授权开始时间 +func (r *AlibabaAlihealthDrugDownloadGetentauthentAPIRequest) SetAuthBeginDate(_authBeginDate string) error { + r._authBeginDate = _authBeginDate + r.Set("auth_begin_date", _authBeginDate) + return nil +} + +// AuthBeginDate Getter +func (r AlibabaAlihealthDrugDownloadGetentauthentAPIRequest) GetAuthBeginDate() string { + return r._authBeginDate +} +// AuthEndDate Setter +// 授权结束时间 +func (r *AlibabaAlihealthDrugDownloadGetentauthentAPIRequest) SetAuthEndDate(_authEndDate string) error { + r._authEndDate = _authEndDate + r.Set("auth_end_date", _authEndDate) + return nil +} + +// AuthEndDate Getter +func (r AlibabaAlihealthDrugDownloadGetentauthentAPIRequest) GetAuthEndDate() string { + return r._authEndDate +} diff --git a/model/drugtrace/AlibabaAlihealthDrugDownloadGetentauthentAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugDownloadGetentauthentAPIResponse.go new file mode 100644 index 0000000000..f18aa5041f --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugDownloadGetentauthentAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取授权企业列表 API返回值 +alibaba.alihealth.drug.download.getentauthent + +D2D数据落地获取授权企业列表 +*/ +type AlibabaAlihealthDrugDownloadGetentauthentAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugDownloadGetentauthentAPIResponseModel +} + +// 获取授权企业列表 成功返回结果 +type AlibabaAlihealthDrugDownloadGetentauthentAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_download_getentauthent_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugDownloadGetentauthentResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugDownloadGetentauthentResponse.go b/model/drugtrace/AlibabaAlihealthDrugDownloadGetentauthentResponse.go deleted file mode 100644 index 7ff0458347..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugDownloadGetentauthentResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取授权企业列表 API返回值 -alibaba.alihealth.drug.download.getentauthent - -D2D数据落地获取授权企业列表 -*/ -type AlibabaAlihealthDrugDownloadGetentauthentAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugDownloadGetentauthentResponse -} - -// 获取授权企业列表 成功返回结果 -type AlibabaAlihealthDrugDownloadGetentauthentResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_download_getentauthent_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugDownloadGetentauthentResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugGetbarcodeBytraccodeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugGetbarcodeBytraccodeAPIRequest.go new file mode 100644 index 0000000000..b3b3f1488e --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugGetbarcodeBytraccodeAPIRequest.go @@ -0,0 +1,52 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据追溯码获取69码 API请求 +alibaba.alihealth.drug.getbarcode.bytraccode + +根据追溯码获取69码 +*/ +type AlibabaAlihealthDrugGetbarcodeBytraccodeAPIRequest struct { + model.Params + // 追溯码 + _traceCode string +} + +// 初始化AlibabaAlihealthDrugGetbarcodeBytraccodeAPIRequest对象 +func NewAlibabaAlihealthDrugGetbarcodeBytraccodeRequest() *AlibabaAlihealthDrugGetbarcodeBytraccodeAPIRequest{ + return &AlibabaAlihealthDrugGetbarcodeBytraccodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugGetbarcodeBytraccodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.getbarcode.bytraccode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugGetbarcodeBytraccodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TraceCode Setter +// 追溯码 +func (r *AlibabaAlihealthDrugGetbarcodeBytraccodeAPIRequest) SetTraceCode(_traceCode string) error { + r._traceCode = _traceCode + r.Set("trace_code", _traceCode) + return nil +} + +// TraceCode Getter +func (r AlibabaAlihealthDrugGetbarcodeBytraccodeAPIRequest) GetTraceCode() string { + return r._traceCode +} diff --git a/model/drugtrace/AlibabaAlihealthDrugGetbarcodeBytraccodeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugGetbarcodeBytraccodeAPIResponse.go new file mode 100644 index 0000000000..0be51c7a84 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugGetbarcodeBytraccodeAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据追溯码获取69码 API返回值 +alibaba.alihealth.drug.getbarcode.bytraccode + +根据追溯码获取69码 +*/ +type AlibabaAlihealthDrugGetbarcodeBytraccodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugGetbarcodeBytraccodeAPIResponseModel +} + +// 根据追溯码获取69码 成功返回结果 +type AlibabaAlihealthDrugGetbarcodeBytraccodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_getbarcode_bytraccode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugGetbarcodeBytraccodeResponse.go b/model/drugtrace/AlibabaAlihealthDrugGetbarcodeBytraccodeResponse.go deleted file mode 100644 index 23a9a9c784..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugGetbarcodeBytraccodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据追溯码获取69码 API返回值 -alibaba.alihealth.drug.getbarcode.bytraccode - -根据追溯码获取69码 -*/ -type AlibabaAlihealthDrugGetbarcodeBytraccodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugGetbarcodeBytraccodeResponse -} - -// 根据追溯码获取69码 成功返回结果 -type AlibabaAlihealthDrugGetbarcodeBytraccodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_getbarcode_bytraccode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytCodeprocessAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytCodeprocessAPIRequest.go new file mode 100644 index 0000000000..c486afed7f --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytCodeprocessAPIRequest.go @@ -0,0 +1,234 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +关联关系处理查询 API请求 +alibaba.alihealth.drug.kyt.codeprocess + +关联关系处理查询 +*/ +type AlibabaAlihealthDrugKytCodeprocessAPIRequest struct { + model.Params + // 开始时间 + _startDate string + // 结束时间 + _endDate string + // 上传标识 + _uploadFlag string + // 处理状态 + _processFlag string + // 批次号 + _produceBatchNo string + // 查询标识 + _queryFlag string + // 药品类型 + _physicType string + // 生产企业ID + _prodSeqNo string + // 药品ID + _drugEntBaseInfoId string + // 包装规格 + _pkgSpec string + // 页数 + _page int64 + // 条数 + _pageSize int64 + // 客户端 + _clientType string + // 企业ID + _refEntId string +} + +// 初始化AlibabaAlihealthDrugKytCodeprocessAPIRequest对象 +func NewAlibabaAlihealthDrugKytCodeprocessRequest() *AlibabaAlihealthDrugKytCodeprocessAPIRequest{ + return &AlibabaAlihealthDrugKytCodeprocessAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytCodeprocessAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.codeprocess" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytCodeprocessAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartDate Setter +// 开始时间 +func (r *AlibabaAlihealthDrugKytCodeprocessAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r AlibabaAlihealthDrugKytCodeprocessAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 结束时间 +func (r *AlibabaAlihealthDrugKytCodeprocessAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugKytCodeprocessAPIRequest) GetEndDate() string { + return r._endDate +} +// UploadFlag Setter +// 上传标识 +func (r *AlibabaAlihealthDrugKytCodeprocessAPIRequest) SetUploadFlag(_uploadFlag string) error { + r._uploadFlag = _uploadFlag + r.Set("upload_flag", _uploadFlag) + return nil +} + +// UploadFlag Getter +func (r AlibabaAlihealthDrugKytCodeprocessAPIRequest) GetUploadFlag() string { + return r._uploadFlag +} +// ProcessFlag Setter +// 处理状态 +func (r *AlibabaAlihealthDrugKytCodeprocessAPIRequest) SetProcessFlag(_processFlag string) error { + r._processFlag = _processFlag + r.Set("process_flag", _processFlag) + return nil +} + +// ProcessFlag Getter +func (r AlibabaAlihealthDrugKytCodeprocessAPIRequest) GetProcessFlag() string { + return r._processFlag +} +// ProduceBatchNo Setter +// 批次号 +func (r *AlibabaAlihealthDrugKytCodeprocessAPIRequest) SetProduceBatchNo(_produceBatchNo string) error { + r._produceBatchNo = _produceBatchNo + r.Set("produce_batch_no", _produceBatchNo) + return nil +} + +// ProduceBatchNo Getter +func (r AlibabaAlihealthDrugKytCodeprocessAPIRequest) GetProduceBatchNo() string { + return r._produceBatchNo +} +// QueryFlag Setter +// 查询标识 +func (r *AlibabaAlihealthDrugKytCodeprocessAPIRequest) SetQueryFlag(_queryFlag string) error { + r._queryFlag = _queryFlag + r.Set("query_flag", _queryFlag) + return nil +} + +// QueryFlag Getter +func (r AlibabaAlihealthDrugKytCodeprocessAPIRequest) GetQueryFlag() string { + return r._queryFlag +} +// PhysicType Setter +// 药品类型 +func (r *AlibabaAlihealthDrugKytCodeprocessAPIRequest) SetPhysicType(_physicType string) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugKytCodeprocessAPIRequest) GetPhysicType() string { + return r._physicType +} +// ProdSeqNo Setter +// 生产企业ID +func (r *AlibabaAlihealthDrugKytCodeprocessAPIRequest) SetProdSeqNo(_prodSeqNo string) error { + r._prodSeqNo = _prodSeqNo + r.Set("prod_seq_no", _prodSeqNo) + return nil +} + +// ProdSeqNo Getter +func (r AlibabaAlihealthDrugKytCodeprocessAPIRequest) GetProdSeqNo() string { + return r._prodSeqNo +} +// DrugEntBaseInfoId Setter +// 药品ID +func (r *AlibabaAlihealthDrugKytCodeprocessAPIRequest) SetDrugEntBaseInfoId(_drugEntBaseInfoId string) error { + r._drugEntBaseInfoId = _drugEntBaseInfoId + r.Set("drug_ent_base_info_id", _drugEntBaseInfoId) + return nil +} + +// DrugEntBaseInfoId Getter +func (r AlibabaAlihealthDrugKytCodeprocessAPIRequest) GetDrugEntBaseInfoId() string { + return r._drugEntBaseInfoId +} +// PkgSpec Setter +// 包装规格 +func (r *AlibabaAlihealthDrugKytCodeprocessAPIRequest) SetPkgSpec(_pkgSpec string) error { + r._pkgSpec = _pkgSpec + r.Set("pkg_spec", _pkgSpec) + return nil +} + +// PkgSpec Getter +func (r AlibabaAlihealthDrugKytCodeprocessAPIRequest) GetPkgSpec() string { + return r._pkgSpec +} +// Page Setter +// 页数 +func (r *AlibabaAlihealthDrugKytCodeprocessAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugKytCodeprocessAPIRequest) GetPage() int64 { + return r._page +} +// PageSize Setter +// 条数 +func (r *AlibabaAlihealthDrugKytCodeprocessAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugKytCodeprocessAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// ClientType Setter +// 客户端 +func (r *AlibabaAlihealthDrugKytCodeprocessAPIRequest) SetClientType(_clientType string) error { + r._clientType = _clientType + r.Set("client_type", _clientType) + return nil +} + +// ClientType Getter +func (r AlibabaAlihealthDrugKytCodeprocessAPIRequest) GetClientType() string { + return r._clientType +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytCodeprocessAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytCodeprocessAPIRequest) GetRefEntId() string { + return r._refEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytCodeprocessAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytCodeprocessAPIResponse.go new file mode 100644 index 0000000000..baa6952bdc --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytCodeprocessAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +关联关系处理查询 API返回值 +alibaba.alihealth.drug.kyt.codeprocess + +关联关系处理查询 +*/ +type AlibabaAlihealthDrugKytCodeprocessAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytCodeprocessAPIResponseModel +} + +// 关联关系处理查询 成功返回结果 +type AlibabaAlihealthDrugKytCodeprocessAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_codeprocess_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytCodeprocessResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytCodeprocessResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytCodeprocessResponse.go deleted file mode 100644 index 9aef084e46..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytCodeprocessResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -关联关系处理查询 API返回值 -alibaba.alihealth.drug.kyt.codeprocess - -关联关系处理查询 -*/ -type AlibabaAlihealthDrugKytCodeprocessAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytCodeprocessResponse -} - -// 关联关系处理查询 成功返回结果 -type AlibabaAlihealthDrugKytCodeprocessResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_codeprocess_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytCodeprocessResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytCodetobillAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytCodetobillAPIRequest.go new file mode 100644 index 0000000000..900c5ce348 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytCodetobillAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过追溯码查单据 API请求 +alibaba.alihealth.drug.kyt.codetobill + +通过追溯码查单据 +*/ +type AlibabaAlihealthDrugKytCodetobillAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 追溯码 + _code string +} + +// 初始化AlibabaAlihealthDrugKytCodetobillAPIRequest对象 +func NewAlibabaAlihealthDrugKytCodetobillRequest() *AlibabaAlihealthDrugKytCodetobillAPIRequest{ + return &AlibabaAlihealthDrugKytCodetobillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytCodetobillAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.codetobill" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytCodetobillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytCodetobillAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytCodetobillAPIRequest) GetRefEntId() string { + return r._refEntId +} +// Code Setter +// 追溯码 +func (r *AlibabaAlihealthDrugKytCodetobillAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthDrugKytCodetobillAPIRequest) GetCode() string { + return r._code +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytCodetobillAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytCodetobillAPIResponse.go new file mode 100644 index 0000000000..e1b8fda809 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytCodetobillAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过追溯码查单据 API返回值 +alibaba.alihealth.drug.kyt.codetobill + +通过追溯码查单据 +*/ +type AlibabaAlihealthDrugKytCodetobillAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytCodetobillAPIResponseModel +} + +// 通过追溯码查单据 成功返回结果 +type AlibabaAlihealthDrugKytCodetobillAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_codetobill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytCodetobillResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytCodetobillResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytCodetobillResponse.go deleted file mode 100644 index 4142f11d36..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytCodetobillResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过追溯码查单据 API返回值 -alibaba.alihealth.drug.kyt.codetobill - -通过追溯码查单据 -*/ -type AlibabaAlihealthDrugKytCodetobillAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytCodetobillResponse -} - -// 通过追溯码查单据 成功返回结果 -type AlibabaAlihealthDrugKytCodetobillResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_codetobill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytCodetobillResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDestbillCheckAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDestbillCheckAPIRequest.go new file mode 100644 index 0000000000..2cebefa7a6 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDestbillCheckAPIRequest.go @@ -0,0 +1,80 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +直调审批 API请求 +alibaba.alihealth.drug.kyt.destbill.check + +为药企提供直调单据审批操作 +*/ +type AlibabaAlihealthDrugKytDestbillCheckAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 单据号 + _billCode string + // 审核状态,'Y'审批通过 'N' 审批不通过 + _checkType string +} + +// 初始化AlibabaAlihealthDrugKytDestbillCheckAPIRequest对象 +func NewAlibabaAlihealthDrugKytDestbillCheckRequest() *AlibabaAlihealthDrugKytDestbillCheckAPIRequest{ + return &AlibabaAlihealthDrugKytDestbillCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDestbillCheckAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.destbill.check" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDestbillCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytDestbillCheckAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytDestbillCheckAPIRequest) GetRefEntId() string { + return r._refEntId +} +// BillCode Setter +// 单据号 +func (r *AlibabaAlihealthDrugKytDestbillCheckAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytDestbillCheckAPIRequest) GetBillCode() string { + return r._billCode +} +// CheckType Setter +// 审核状态,'Y'审批通过 'N' 审批不通过 +func (r *AlibabaAlihealthDrugKytDestbillCheckAPIRequest) SetCheckType(_checkType string) error { + r._checkType = _checkType + r.Set("check_type", _checkType) + return nil +} + +// CheckType Getter +func (r AlibabaAlihealthDrugKytDestbillCheckAPIRequest) GetCheckType() string { + return r._checkType +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDestbillCheckAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDestbillCheckAPIResponse.go new file mode 100644 index 0000000000..fba4149931 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDestbillCheckAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +直调审批 API返回值 +alibaba.alihealth.drug.kyt.destbill.check + +为药企提供直调单据审批操作 +*/ +type AlibabaAlihealthDrugKytDestbillCheckAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDestbillCheckAPIResponseModel +} + +// 直调审批 成功返回结果 +type AlibabaAlihealthDrugKytDestbillCheckAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_destbill_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` + // 执行结果 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 返回结果描述 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 返回结果标识 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDestbillCheckResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDestbillCheckResponse.go deleted file mode 100644 index 9605dd5e67..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDestbillCheckResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -直调审批 API返回值 -alibaba.alihealth.drug.kyt.destbill.check - -为药企提供直调单据审批操作 -*/ -type AlibabaAlihealthDrugKytDestbillCheckAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDestbillCheckResponse -} - -// 直调审批 成功返回结果 -type AlibabaAlihealthDrugKytDestbillCheckResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_destbill_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` - // 执行结果 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 返回结果描述 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 返回结果标识 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDestbillListAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDestbillListAPIRequest.go new file mode 100644 index 0000000000..f99b9e14b0 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDestbillListAPIRequest.go @@ -0,0 +1,108 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +直调单据查询 API请求 +alibaba.alihealth.drug.kyt.destbill.list + +为药企提供直调单据查询功能 +*/ +type AlibabaAlihealthDrugKytDestbillListAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 开始时间,格式yyyy-MM-dd + _beginDate string + // 结束时间,格式yyyy-MM-dd + _endDate string + // 单据编号 + _billCode string + // 审核状态,1:未审核;2:审核通过;3:审核失败 + _approvalStatus string +} + +// 初始化AlibabaAlihealthDrugKytDestbillListAPIRequest对象 +func NewAlibabaAlihealthDrugKytDestbillListRequest() *AlibabaAlihealthDrugKytDestbillListAPIRequest{ + return &AlibabaAlihealthDrugKytDestbillListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDestbillListAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.destbill.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDestbillListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytDestbillListAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytDestbillListAPIRequest) GetRefEntId() string { + return r._refEntId +} +// BeginDate Setter +// 开始时间,格式yyyy-MM-dd +func (r *AlibabaAlihealthDrugKytDestbillListAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaAlihealthDrugKytDestbillListAPIRequest) GetBeginDate() string { + return r._beginDate +} +// EndDate Setter +// 结束时间,格式yyyy-MM-dd +func (r *AlibabaAlihealthDrugKytDestbillListAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugKytDestbillListAPIRequest) GetEndDate() string { + return r._endDate +} +// BillCode Setter +// 单据编号 +func (r *AlibabaAlihealthDrugKytDestbillListAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytDestbillListAPIRequest) GetBillCode() string { + return r._billCode +} +// ApprovalStatus Setter +// 审核状态,1:未审核;2:审核通过;3:审核失败 +func (r *AlibabaAlihealthDrugKytDestbillListAPIRequest) SetApprovalStatus(_approvalStatus string) error { + r._approvalStatus = _approvalStatus + r.Set("approval_status", _approvalStatus) + return nil +} + +// ApprovalStatus Getter +func (r AlibabaAlihealthDrugKytDestbillListAPIRequest) GetApprovalStatus() string { + return r._approvalStatus +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDestbillListAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDestbillListAPIResponse.go new file mode 100644 index 0000000000..8b1cf1074e --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDestbillListAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +直调单据查询 API返回值 +alibaba.alihealth.drug.kyt.destbill.list + +为药企提供直调单据查询功能 +*/ +type AlibabaAlihealthDrugKytDestbillListAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDestbillListAPIResponseModel +} + +// 直调单据查询 成功返回结果 +type AlibabaAlihealthDrugKytDestbillListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_destbill_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回result + Result *AlibabaAlihealthDrugKytDestbillListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDestbillListResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDestbillListResponse.go deleted file mode 100644 index 2ff36f9ed1..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDestbillListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -直调单据查询 API返回值 -alibaba.alihealth.drug.kyt.destbill.list - -为药企提供直调单据查询功能 -*/ -type AlibabaAlihealthDrugKytDestbillListAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDestbillListResponse -} - -// 直调单据查询 成功返回结果 -type AlibabaAlihealthDrugKytDestbillListResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_destbill_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回result - Result *AlibabaAlihealthDrugKytDestbillListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrAssociateequiAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrAssociateequiAPIRequest.go new file mode 100644 index 0000000000..66a0449dda --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrAssociateequiAPIRequest.go @@ -0,0 +1,80 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗单据与设备绑定 API请求 +alibaba.alihealth.drug.kyt.dr.associateequi + +疫苗单据与设备绑定 +*/ +type AlibabaAlihealthDrugKytDrAssociateequiAPIRequest struct { + model.Params + // 企业refentid + _refEntId string + // 单据编号,多个用逗号分隔 + _billCodes string + // 设备ID + _vaEquipmentId string +} + +// 初始化AlibabaAlihealthDrugKytDrAssociateequiAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrAssociateequiRequest() *AlibabaAlihealthDrugKytDrAssociateequiAPIRequest{ + return &AlibabaAlihealthDrugKytDrAssociateequiAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrAssociateequiAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.dr.associateequi" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrAssociateequiAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业refentid +func (r *AlibabaAlihealthDrugKytDrAssociateequiAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytDrAssociateequiAPIRequest) GetRefEntId() string { + return r._refEntId +} +// BillCodes Setter +// 单据编号,多个用逗号分隔 +func (r *AlibabaAlihealthDrugKytDrAssociateequiAPIRequest) SetBillCodes(_billCodes string) error { + r._billCodes = _billCodes + r.Set("bill_codes", _billCodes) + return nil +} + +// BillCodes Getter +func (r AlibabaAlihealthDrugKytDrAssociateequiAPIRequest) GetBillCodes() string { + return r._billCodes +} +// VaEquipmentId Setter +// 设备ID +func (r *AlibabaAlihealthDrugKytDrAssociateequiAPIRequest) SetVaEquipmentId(_vaEquipmentId string) error { + r._vaEquipmentId = _vaEquipmentId + r.Set("va_equipment_id", _vaEquipmentId) + return nil +} + +// VaEquipmentId Getter +func (r AlibabaAlihealthDrugKytDrAssociateequiAPIRequest) GetVaEquipmentId() string { + return r._vaEquipmentId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrAssociateequiAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrAssociateequiAPIResponse.go new file mode 100644 index 0000000000..c9cea231c8 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrAssociateequiAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗单据与设备绑定 API返回值 +alibaba.alihealth.drug.kyt.dr.associateequi + +疫苗单据与设备绑定 +*/ +type AlibabaAlihealthDrugKytDrAssociateequiAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrAssociateequiAPIResponseModel +} + +// 疫苗单据与设备绑定 成功返回结果 +type AlibabaAlihealthDrugKytDrAssociateequiAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_associateequi_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugKytDrAssociateequiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrAssociateequiResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrAssociateequiResponse.go deleted file mode 100644 index b7d097041f..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrAssociateequiResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -疫苗单据与设备绑定 API返回值 -alibaba.alihealth.drug.kyt.dr.associateequi - -疫苗单据与设备绑定 -*/ -type AlibabaAlihealthDrugKytDrAssociateequiAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrAssociateequiResponse -} - -// 疫苗单据与设备绑定 成功返回结果 -type AlibabaAlihealthDrugKytDrAssociateequiResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_associateequi_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugKytDrAssociateequiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrBillcheckAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrBillcheckAPIRequest.go new file mode 100644 index 0000000000..3dde9bcdbe --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrBillcheckAPIRequest.go @@ -0,0 +1,94 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗追溯验证 API请求 +alibaba.alihealth.drug.kyt.dr.billcheck + +各级疾控在入库完成后,需要做追溯信息验证 +*/ +type AlibabaAlihealthDrugKytDrBillcheckAPIRequest struct { + model.Params + // 调用企业ID + _refEntId string + // 单据编号 + _billCode string + // 单据类型 + _billType string + // 单据企业refEntId + _owerRefEntId string +} + +// 初始化AlibabaAlihealthDrugKytDrBillcheckAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrBillcheckRequest() *AlibabaAlihealthDrugKytDrBillcheckAPIRequest{ + return &AlibabaAlihealthDrugKytDrBillcheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrBillcheckAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.dr.billcheck" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrBillcheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 调用企业ID +func (r *AlibabaAlihealthDrugKytDrBillcheckAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytDrBillcheckAPIRequest) GetRefEntId() string { + return r._refEntId +} +// BillCode Setter +// 单据编号 +func (r *AlibabaAlihealthDrugKytDrBillcheckAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytDrBillcheckAPIRequest) GetBillCode() string { + return r._billCode +} +// BillType Setter +// 单据类型 +func (r *AlibabaAlihealthDrugKytDrBillcheckAPIRequest) SetBillType(_billType string) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytDrBillcheckAPIRequest) GetBillType() string { + return r._billType +} +// OwerRefEntId Setter +// 单据企业refEntId +func (r *AlibabaAlihealthDrugKytDrBillcheckAPIRequest) SetOwerRefEntId(_owerRefEntId string) error { + r._owerRefEntId = _owerRefEntId + r.Set("ower_ref_ent_id", _owerRefEntId) + return nil +} + +// OwerRefEntId Getter +func (r AlibabaAlihealthDrugKytDrBillcheckAPIRequest) GetOwerRefEntId() string { + return r._owerRefEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrBillcheckAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrBillcheckAPIResponse.go new file mode 100644 index 0000000000..e6ea67a696 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrBillcheckAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗追溯验证 API返回值 +alibaba.alihealth.drug.kyt.dr.billcheck + +各级疾控在入库完成后,需要做追溯信息验证 +*/ +type AlibabaAlihealthDrugKytDrBillcheckAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrBillcheckAPIResponseModel +} + +// 疫苗追溯验证 成功返回结果 +type AlibabaAlihealthDrugKytDrBillcheckAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_billcheck_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugKytDrBillcheckResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrBillcheckResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrBillcheckResponse.go deleted file mode 100644 index ad88a35978..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrBillcheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -疫苗追溯验证 API返回值 -alibaba.alihealth.drug.kyt.dr.billcheck - -各级疾控在入库完成后,需要做追溯信息验证 -*/ -type AlibabaAlihealthDrugKytDrBillcheckAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrBillcheckResponse -} - -// 疫苗追溯验证 成功返回结果 -type AlibabaAlihealthDrugKytDrBillcheckResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_billcheck_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugKytDrBillcheckResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrDrugrecalAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrDrugrecalAPIRequest.go new file mode 100644 index 0000000000..82f849b397 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrDrugrecalAPIRequest.go @@ -0,0 +1,80 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗药品召回 API请求 +alibaba.alihealth.drug.kyt.dr.drugrecal + +生产企业发布的召回信息,按照批次进行召回,收货和发货环节的单据处理中调用接口进行查询; +*/ +type AlibabaAlihealthDrugKytDrDrugrecalAPIRequest struct { + model.Params + // 调用企业ID + _refEntId string + // 召回开始时间 + _recallBeginTime string + // 召回结束时间 + _recallEndTime string +} + +// 初始化AlibabaAlihealthDrugKytDrDrugrecalAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrDrugrecalRequest() *AlibabaAlihealthDrugKytDrDrugrecalAPIRequest{ + return &AlibabaAlihealthDrugKytDrDrugrecalAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrDrugrecalAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.dr.drugrecal" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrDrugrecalAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 调用企业ID +func (r *AlibabaAlihealthDrugKytDrDrugrecalAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytDrDrugrecalAPIRequest) GetRefEntId() string { + return r._refEntId +} +// RecallBeginTime Setter +// 召回开始时间 +func (r *AlibabaAlihealthDrugKytDrDrugrecalAPIRequest) SetRecallBeginTime(_recallBeginTime string) error { + r._recallBeginTime = _recallBeginTime + r.Set("recall_begin_time", _recallBeginTime) + return nil +} + +// RecallBeginTime Getter +func (r AlibabaAlihealthDrugKytDrDrugrecalAPIRequest) GetRecallBeginTime() string { + return r._recallBeginTime +} +// RecallEndTime Setter +// 召回结束时间 +func (r *AlibabaAlihealthDrugKytDrDrugrecalAPIRequest) SetRecallEndTime(_recallEndTime string) error { + r._recallEndTime = _recallEndTime + r.Set("recall_end_time", _recallEndTime) + return nil +} + +// RecallEndTime Getter +func (r AlibabaAlihealthDrugKytDrDrugrecalAPIRequest) GetRecallEndTime() string { + return r._recallEndTime +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrDrugrecalAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrDrugrecalAPIResponse.go new file mode 100644 index 0000000000..8b4f7bc361 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrDrugrecalAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗药品召回 API返回值 +alibaba.alihealth.drug.kyt.dr.drugrecal + +生产企业发布的召回信息,按照批次进行召回,收货和发货环节的单据处理中调用接口进行查询; +*/ +type AlibabaAlihealthDrugKytDrDrugrecalAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrDrugrecalAPIResponseModel +} + +// 疫苗药品召回 成功返回结果 +type AlibabaAlihealthDrugKytDrDrugrecalAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_drugrecal_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugKytDrDrugrecalResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrDrugrecalResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrDrugrecalResponse.go deleted file mode 100644 index 1aed44d1cf..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrDrugrecalResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -疫苗药品召回 API返回值 -alibaba.alihealth.drug.kyt.dr.drugrecal - -生产企业发布的召回信息,按照批次进行召回,收货和发货环节的单据处理中调用接口进行查询; -*/ -type AlibabaAlihealthDrugKytDrDrugrecalAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrDrugrecalResponse -} - -// 疫苗药品召回 成功返回结果 -type AlibabaAlihealthDrugKytDrDrugrecalResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_drugrecal_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugKytDrDrugrecalResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrGetbyentidAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrGetbyentidAPIRequest.go new file mode 100644 index 0000000000..3d372df858 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrGetbyentidAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +多融通过企业ID得到一个企业的详细信息 API请求 +alibaba.alihealth.drug.kyt.dr.getbyentid + +根据企业主键查看企业详细信息 +*/ +type AlibabaAlihealthDrugKytDrGetbyentidAPIRequest struct { + model.Params + // 接口调用企业的唯一标识(接口调用者) + _refEntId string + // 准备要查询的企业ID(返回该企业ID的详细信息) + _entId string +} + +// 初始化AlibabaAlihealthDrugKytDrGetbyentidAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrGetbyentidRequest() *AlibabaAlihealthDrugKytDrGetbyentidAPIRequest{ + return &AlibabaAlihealthDrugKytDrGetbyentidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrGetbyentidAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.dr.getbyentid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrGetbyentidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 接口调用企业的唯一标识(接口调用者) +func (r *AlibabaAlihealthDrugKytDrGetbyentidAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytDrGetbyentidAPIRequest) GetRefEntId() string { + return r._refEntId +} +// EntId Setter +// 准备要查询的企业ID(返回该企业ID的详细信息) +func (r *AlibabaAlihealthDrugKytDrGetbyentidAPIRequest) SetEntId(_entId string) error { + r._entId = _entId + r.Set("ent_id", _entId) + return nil +} + +// EntId Getter +func (r AlibabaAlihealthDrugKytDrGetbyentidAPIRequest) GetEntId() string { + return r._entId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrGetbyentidAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrGetbyentidAPIResponse.go new file mode 100644 index 0000000000..e9456caf02 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrGetbyentidAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +多融通过企业ID得到一个企业的详细信息 API返回值 +alibaba.alihealth.drug.kyt.dr.getbyentid + +根据企业主键查看企业详细信息 +*/ +type AlibabaAlihealthDrugKytDrGetbyentidAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrGetbyentidAPIResponseModel +} + +// 多融通过企业ID得到一个企业的详细信息 成功返回结果 +type AlibabaAlihealthDrugKytDrGetbyentidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_getbyentid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytDrGetbyentidResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrGetbyentidResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrGetbyentidResponse.go deleted file mode 100644 index 7b459dc7af..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrGetbyentidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -多融通过企业ID得到一个企业的详细信息 API返回值 -alibaba.alihealth.drug.kyt.dr.getbyentid - -根据企业主键查看企业详细信息 -*/ -type AlibabaAlihealthDrugKytDrGetbyentidAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrGetbyentidResponse -} - -// 多融通过企业ID得到一个企业的详细信息 成功返回结果 -type AlibabaAlihealthDrugKytDrGetbyentidResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_getbyentid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytDrGetbyentidResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrGetbyrefentidAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrGetbyrefentidAPIRequest.go new file mode 100644 index 0000000000..82ef2acf38 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrGetbyrefentidAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +多融通过一个企业唯一标识查询企业详细信息 API请求 +alibaba.alihealth.drug.kyt.dr.getbyrefentid + +根据企业唯一标识查看企业详细信息 +*/ +type AlibabaAlihealthDrugKytDrGetbyrefentidAPIRequest struct { + model.Params + // 接口调用企业的唯一标识(接口调用者) + _refEntId string + // 准备要查询的企业唯一标识(返回该唯一标识企业的详细信息) + _destRefEntId string +} + +// 初始化AlibabaAlihealthDrugKytDrGetbyrefentidAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrGetbyrefentidRequest() *AlibabaAlihealthDrugKytDrGetbyrefentidAPIRequest{ + return &AlibabaAlihealthDrugKytDrGetbyrefentidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrGetbyrefentidAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.dr.getbyrefentid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrGetbyrefentidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 接口调用企业的唯一标识(接口调用者) +func (r *AlibabaAlihealthDrugKytDrGetbyrefentidAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytDrGetbyrefentidAPIRequest) GetRefEntId() string { + return r._refEntId +} +// DestRefEntId Setter +// 准备要查询的企业唯一标识(返回该唯一标识企业的详细信息) +func (r *AlibabaAlihealthDrugKytDrGetbyrefentidAPIRequest) SetDestRefEntId(_destRefEntId string) error { + r._destRefEntId = _destRefEntId + r.Set("dest_ref_ent_id", _destRefEntId) + return nil +} + +// DestRefEntId Getter +func (r AlibabaAlihealthDrugKytDrGetbyrefentidAPIRequest) GetDestRefEntId() string { + return r._destRefEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrGetbyrefentidAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrGetbyrefentidAPIResponse.go new file mode 100644 index 0000000000..5a10cef26f --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrGetbyrefentidAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +多融通过一个企业唯一标识查询企业详细信息 API返回值 +alibaba.alihealth.drug.kyt.dr.getbyrefentid + +根据企业唯一标识查看企业详细信息 +*/ +type AlibabaAlihealthDrugKytDrGetbyrefentidAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrGetbyrefentidAPIResponseModel +} + +// 多融通过一个企业唯一标识查询企业详细信息 成功返回结果 +type AlibabaAlihealthDrugKytDrGetbyrefentidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_getbyrefentid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytDrGetbyrefentidResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrGetbyrefentidResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrGetbyrefentidResponse.go deleted file mode 100644 index 624e22c670..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrGetbyrefentidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -多融通过一个企业唯一标识查询企业详细信息 API返回值 -alibaba.alihealth.drug.kyt.dr.getbyrefentid - -根据企业唯一标识查看企业详细信息 -*/ -type AlibabaAlihealthDrugKytDrGetbyrefentidAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrGetbyrefentidResponse -} - -// 多融通过一个企业唯一标识查询企业详细信息 成功返回结果 -type AlibabaAlihealthDrugKytDrGetbyrefentidResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_getbyrefentid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytDrGetbyrefentidResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrGetentinfoAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrGetentinfoAPIRequest.go new file mode 100644 index 0000000000..c5e80f20f0 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrGetentinfoAPIRequest.go @@ -0,0 +1,52 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过企业名得到唯一标识(ref_ent_id)及企业ID(ent_id) API请求 +alibaba.alihealth.drug.kyt.dr.getentinfo + +根据企业名称查询ID +*/ +type AlibabaAlihealthDrugKytDrGetentinfoAPIRequest struct { + model.Params + // 公司名称(全称) + _entName string +} + +// 初始化AlibabaAlihealthDrugKytDrGetentinfoAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrGetentinfoRequest() *AlibabaAlihealthDrugKytDrGetentinfoAPIRequest{ + return &AlibabaAlihealthDrugKytDrGetentinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrGetentinfoAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.dr.getentinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrGetentinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EntName Setter +// 公司名称(全称) +func (r *AlibabaAlihealthDrugKytDrGetentinfoAPIRequest) SetEntName(_entName string) error { + r._entName = _entName + r.Set("ent_name", _entName) + return nil +} + +// EntName Getter +func (r AlibabaAlihealthDrugKytDrGetentinfoAPIRequest) GetEntName() string { + return r._entName +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrGetentinfoAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrGetentinfoAPIResponse.go new file mode 100644 index 0000000000..59c0b9e9f7 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrGetentinfoAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过企业名得到唯一标识(ref_ent_id)及企业ID(ent_id) API返回值 +alibaba.alihealth.drug.kyt.dr.getentinfo + +根据企业名称查询ID +*/ +type AlibabaAlihealthDrugKytDrGetentinfoAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrGetentinfoAPIResponseModel +} + +// 通过企业名得到唯一标识(ref_ent_id)及企业ID(ent_id) 成功返回结果 +type AlibabaAlihealthDrugKytDrGetentinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_getentinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytDrGetentinfoResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrGetentinfoResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrGetentinfoResponse.go deleted file mode 100644 index a186fea5a1..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrGetentinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过企业名得到唯一标识(ref_ent_id)及企业ID(ent_id) API返回值 -alibaba.alihealth.drug.kyt.dr.getentinfo - -根据企业名称查询ID -*/ -type AlibabaAlihealthDrugKytDrGetentinfoAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrGetentinfoResponse -} - -// 通过企业名得到唯一标识(ref_ent_id)及企业ID(ent_id) 成功返回结果 -type AlibabaAlihealthDrugKytDrGetentinfoResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_getentinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytDrGetentinfoResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrGetproteminfoAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrGetproteminfoAPIRequest.go new file mode 100644 index 0000000000..9c51cb4d9c --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrGetproteminfoAPIRequest.go @@ -0,0 +1,94 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗,获取生产企业的存储和运输温度 API请求 +alibaba.alihealth.drug.kyt.dr.getproteminfo + +疫苗,获取生产企业的存储和运输温度 +*/ +type AlibabaAlihealthDrugKytDrGetproteminfoAPIRequest struct { + model.Params + // 调用企业ID + _refEntId string + // 药品ID + _drugEntBaseInfoId string + // 批次编号 + _batchNo string + // 出库单号 + _billOutCode string +} + +// 初始化AlibabaAlihealthDrugKytDrGetproteminfoAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrGetproteminfoRequest() *AlibabaAlihealthDrugKytDrGetproteminfoAPIRequest{ + return &AlibabaAlihealthDrugKytDrGetproteminfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrGetproteminfoAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.dr.getproteminfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrGetproteminfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 调用企业ID +func (r *AlibabaAlihealthDrugKytDrGetproteminfoAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytDrGetproteminfoAPIRequest) GetRefEntId() string { + return r._refEntId +} +// DrugEntBaseInfoId Setter +// 药品ID +func (r *AlibabaAlihealthDrugKytDrGetproteminfoAPIRequest) SetDrugEntBaseInfoId(_drugEntBaseInfoId string) error { + r._drugEntBaseInfoId = _drugEntBaseInfoId + r.Set("drug_ent_base_info_id", _drugEntBaseInfoId) + return nil +} + +// DrugEntBaseInfoId Getter +func (r AlibabaAlihealthDrugKytDrGetproteminfoAPIRequest) GetDrugEntBaseInfoId() string { + return r._drugEntBaseInfoId +} +// BatchNo Setter +// 批次编号 +func (r *AlibabaAlihealthDrugKytDrGetproteminfoAPIRequest) SetBatchNo(_batchNo string) error { + r._batchNo = _batchNo + r.Set("batch_no", _batchNo) + return nil +} + +// BatchNo Getter +func (r AlibabaAlihealthDrugKytDrGetproteminfoAPIRequest) GetBatchNo() string { + return r._batchNo +} +// BillOutCode Setter +// 出库单号 +func (r *AlibabaAlihealthDrugKytDrGetproteminfoAPIRequest) SetBillOutCode(_billOutCode string) error { + r._billOutCode = _billOutCode + r.Set("bill_out_code", _billOutCode) + return nil +} + +// BillOutCode Getter +func (r AlibabaAlihealthDrugKytDrGetproteminfoAPIRequest) GetBillOutCode() string { + return r._billOutCode +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrGetproteminfoAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrGetproteminfoAPIResponse.go new file mode 100644 index 0000000000..4abec84343 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrGetproteminfoAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗,获取生产企业的存储和运输温度 API返回值 +alibaba.alihealth.drug.kyt.dr.getproteminfo + +疫苗,获取生产企业的存储和运输温度 +*/ +type AlibabaAlihealthDrugKytDrGetproteminfoAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrGetproteminfoAPIResponseModel +} + +// 疫苗,获取生产企业的存储和运输温度 成功返回结果 +type AlibabaAlihealthDrugKytDrGetproteminfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_getproteminfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugKytDrGetproteminfoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrGetproteminfoResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrGetproteminfoResponse.go deleted file mode 100644 index a18a76df88..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrGetproteminfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -疫苗,获取生产企业的存储和运输温度 API返回值 -alibaba.alihealth.drug.kyt.dr.getproteminfo - -疫苗,获取生产企业的存储和运输温度 -*/ -type AlibabaAlihealthDrugKytDrGetproteminfoAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrGetproteminfoResponse -} - -// 疫苗,获取生产企业的存储和运输温度 成功返回结果 -type AlibabaAlihealthDrugKytDrGetproteminfoResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_getproteminfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugKytDrGetproteminfoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrGetupteminfoAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrGetupteminfoAPIRequest.go new file mode 100644 index 0000000000..baba3a31f8 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrGetupteminfoAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取上游温度信息(疫苗) API请求 +alibaba.alihealth.drug.kyt.dr.getupteminfo + +根据追溯码及企业ID获取上游运输及存储温度信息(疫苗) +*/ +type AlibabaAlihealthDrugKytDrGetupteminfoAPIRequest struct { + model.Params + // 追溯码 + _code string + // 企业ID + _refEntId string +} + +// 初始化AlibabaAlihealthDrugKytDrGetupteminfoAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrGetupteminfoRequest() *AlibabaAlihealthDrugKytDrGetupteminfoAPIRequest{ + return &AlibabaAlihealthDrugKytDrGetupteminfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrGetupteminfoAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.dr.getupteminfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrGetupteminfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 追溯码 +func (r *AlibabaAlihealthDrugKytDrGetupteminfoAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthDrugKytDrGetupteminfoAPIRequest) GetCode() string { + return r._code +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytDrGetupteminfoAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytDrGetupteminfoAPIRequest) GetRefEntId() string { + return r._refEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrGetupteminfoAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrGetupteminfoAPIResponse.go new file mode 100644 index 0000000000..ddc8999a67 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrGetupteminfoAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取上游温度信息(疫苗) API返回值 +alibaba.alihealth.drug.kyt.dr.getupteminfo + +根据追溯码及企业ID获取上游运输及存储温度信息(疫苗) +*/ +type AlibabaAlihealthDrugKytDrGetupteminfoAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrGetupteminfoAPIResponseModel +} + +// 获取上游温度信息(疫苗) 成功返回结果 +type AlibabaAlihealthDrugKytDrGetupteminfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_getupteminfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugKytDrGetupteminfoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrGetupteminfoResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrGetupteminfoResponse.go deleted file mode 100644 index 634b50400b..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrGetupteminfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取上游温度信息(疫苗) API返回值 -alibaba.alihealth.drug.kyt.dr.getupteminfo - -根据追溯码及企业ID获取上游运输及存储温度信息(疫苗) -*/ -type AlibabaAlihealthDrugKytDrGetupteminfoAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrGetupteminfoResponse -} - -// 获取上游温度信息(疫苗) 成功返回结果 -type AlibabaAlihealthDrugKytDrGetupteminfoResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_getupteminfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugKytDrGetupteminfoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrListpartsAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrListpartsAPIRequest.go new file mode 100644 index 0000000000..0a93443dfd --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrListpartsAPIRequest.go @@ -0,0 +1,136 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +多融查询一个企业的往来单位 API请求 +alibaba.alihealth.drug.kyt.dr.listparts + +查询往来单位列表 +*/ +type AlibabaAlihealthDrugKytDrListpartsAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 企业名称 + _entName string + // 企业自定义编号 + _refPartnerId string + // 页大小 + _pageSize int64 + // 页码 + _page int64 + // 开始时间 + _beginDate string + // 结束时间 + _endDate string +} + +// 初始化AlibabaAlihealthDrugKytDrListpartsAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrListpartsRequest() *AlibabaAlihealthDrugKytDrListpartsAPIRequest{ + return &AlibabaAlihealthDrugKytDrListpartsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrListpartsAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.dr.listparts" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrListpartsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytDrListpartsAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytDrListpartsAPIRequest) GetRefEntId() string { + return r._refEntId +} +// EntName Setter +// 企业名称 +func (r *AlibabaAlihealthDrugKytDrListpartsAPIRequest) SetEntName(_entName string) error { + r._entName = _entName + r.Set("ent_name", _entName) + return nil +} + +// EntName Getter +func (r AlibabaAlihealthDrugKytDrListpartsAPIRequest) GetEntName() string { + return r._entName +} +// RefPartnerId Setter +// 企业自定义编号 +func (r *AlibabaAlihealthDrugKytDrListpartsAPIRequest) SetRefPartnerId(_refPartnerId string) error { + r._refPartnerId = _refPartnerId + r.Set("ref_partner_id", _refPartnerId) + return nil +} + +// RefPartnerId Getter +func (r AlibabaAlihealthDrugKytDrListpartsAPIRequest) GetRefPartnerId() string { + return r._refPartnerId +} +// PageSize Setter +// 页大小 +func (r *AlibabaAlihealthDrugKytDrListpartsAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugKytDrListpartsAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Page Setter +// 页码 +func (r *AlibabaAlihealthDrugKytDrListpartsAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugKytDrListpartsAPIRequest) GetPage() int64 { + return r._page +} +// BeginDate Setter +// 开始时间 +func (r *AlibabaAlihealthDrugKytDrListpartsAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaAlihealthDrugKytDrListpartsAPIRequest) GetBeginDate() string { + return r._beginDate +} +// EndDate Setter +// 结束时间 +func (r *AlibabaAlihealthDrugKytDrListpartsAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugKytDrListpartsAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrListpartsAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrListpartsAPIResponse.go new file mode 100644 index 0000000000..d410057f0d --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrListpartsAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +多融查询一个企业的往来单位 API返回值 +alibaba.alihealth.drug.kyt.dr.listparts + +查询往来单位列表 +*/ +type AlibabaAlihealthDrugKytDrListpartsAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrListpartsAPIResponseModel +} + +// 多融查询一个企业的往来单位 成功返回结果 +type AlibabaAlihealthDrugKytDrListpartsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_listparts_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytDrListpartsResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrListpartsResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrListpartsResponse.go deleted file mode 100644 index 733716ae5b..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrListpartsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -多融查询一个企业的往来单位 API返回值 -alibaba.alihealth.drug.kyt.dr.listparts - -查询往来单位列表 -*/ -type AlibabaAlihealthDrugKytDrListpartsAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrListpartsResponse -} - -// 多融查询一个企业的往来单位 成功返回结果 -type AlibabaAlihealthDrugKytDrListpartsResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_listparts_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytDrListpartsResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrQueryupbillcodeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrQueryupbillcodeAPIRequest.go new file mode 100644 index 0000000000..c1a724b9d4 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrQueryupbillcodeAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询上游企业出库单据号 API请求 +alibaba.alihealth.drug.kyt.dr.queryupbillcode + +疫苗温度合规补充需求-增加一个查询上游出库单号的接口。疾控在扫码入库时,接口通过扫到的码判定这个码对应所属的出库单据号 +*/ +type AlibabaAlihealthDrugKytDrQueryupbillcodeAPIRequest struct { + model.Params + // 追溯码 + _code string + // 企业ID (一般为要查询单据的收货企业) + _refEntId string +} + +// 初始化AlibabaAlihealthDrugKytDrQueryupbillcodeAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrQueryupbillcodeRequest() *AlibabaAlihealthDrugKytDrQueryupbillcodeAPIRequest{ + return &AlibabaAlihealthDrugKytDrQueryupbillcodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrQueryupbillcodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.dr.queryupbillcode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrQueryupbillcodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 追溯码 +func (r *AlibabaAlihealthDrugKytDrQueryupbillcodeAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthDrugKytDrQueryupbillcodeAPIRequest) GetCode() string { + return r._code +} +// RefEntId Setter +// 企业ID (一般为要查询单据的收货企业) +func (r *AlibabaAlihealthDrugKytDrQueryupbillcodeAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytDrQueryupbillcodeAPIRequest) GetRefEntId() string { + return r._refEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrQueryupbillcodeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrQueryupbillcodeAPIResponse.go new file mode 100644 index 0000000000..f7fff484f0 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrQueryupbillcodeAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询上游企业出库单据号 API返回值 +alibaba.alihealth.drug.kyt.dr.queryupbillcode + +疫苗温度合规补充需求-增加一个查询上游出库单号的接口。疾控在扫码入库时,接口通过扫到的码判定这个码对应所属的出库单据号 +*/ +type AlibabaAlihealthDrugKytDrQueryupbillcodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrQueryupbillcodeAPIResponseModel +} + +// 查询上游企业出库单据号 成功返回结果 +type AlibabaAlihealthDrugKytDrQueryupbillcodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_queryupbillcode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugKytDrQueryupbillcodeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrQueryupbillcodeResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrQueryupbillcodeResponse.go deleted file mode 100644 index aa27cf44bc..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrQueryupbillcodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询上游企业出库单据号 API返回值 -alibaba.alihealth.drug.kyt.dr.queryupbillcode - -疫苗温度合规补充需求-增加一个查询上游出库单号的接口。疾控在扫码入库时,接口通过扫到的码判定这个码对应所属的出库单据号 -*/ -type AlibabaAlihealthDrugKytDrQueryupbillcodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrQueryupbillcodeResponse -} - -// 查询上游企业出库单据号 成功返回结果 -type AlibabaAlihealthDrugKytDrQueryupbillcodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_queryupbillcode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugKytDrQueryupbillcodeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrSearchstatusAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrSearchstatusAPIRequest.go new file mode 100644 index 0000000000..a1077ec36f --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrSearchstatusAPIRequest.go @@ -0,0 +1,206 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗企业上传单据后处理状态查询 API请求 +alibaba.alihealth.drug.kyt.dr.searchstatus + +单据处理状态查询 +*/ +type AlibabaAlihealthDrugKytDrSearchstatusAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 开始日期 + _beginDate string + // 结束日期 + _endDate string + // 单据类型 A:全部 AI:全部入库 AO:全部出库 + _billType string + // 单据号 + _billCode string + // 药品类型 + _drugType string + // 状态 0, 上传成功 3, 处理成功 4, 处理失败 + _dealStatus string + // 发货商 + _fromUserId string + // 收货商 + _toUserId string + // 代理商 + _agentRefUserId string + // 页大小 + _pageSize int64 + // 页码 + _page int64 +} + +// 初始化AlibabaAlihealthDrugKytDrSearchstatusAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrSearchstatusRequest() *AlibabaAlihealthDrugKytDrSearchstatusAPIRequest{ + return &AlibabaAlihealthDrugKytDrSearchstatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.dr.searchstatus" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) GetRefEntId() string { + return r._refEntId +} +// BeginDate Setter +// 开始日期 +func (r *AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) GetBeginDate() string { + return r._beginDate +} +// EndDate Setter +// 结束日期 +func (r *AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) GetEndDate() string { + return r._endDate +} +// BillType Setter +// 单据类型 A:全部 AI:全部入库 AO:全部出库 +func (r *AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) SetBillType(_billType string) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) GetBillType() string { + return r._billType +} +// BillCode Setter +// 单据号 +func (r *AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) GetBillCode() string { + return r._billCode +} +// DrugType Setter +// 药品类型 +func (r *AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) SetDrugType(_drugType string) error { + r._drugType = _drugType + r.Set("drug_type", _drugType) + return nil +} + +// DrugType Getter +func (r AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) GetDrugType() string { + return r._drugType +} +// DealStatus Setter +// 状态 0, 上传成功 3, 处理成功 4, 处理失败 +func (r *AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) SetDealStatus(_dealStatus string) error { + r._dealStatus = _dealStatus + r.Set("deal_status", _dealStatus) + return nil +} + +// DealStatus Getter +func (r AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) GetDealStatus() string { + return r._dealStatus +} +// FromUserId Setter +// 发货商 +func (r *AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) GetFromUserId() string { + return r._fromUserId +} +// ToUserId Setter +// 收货商 +func (r *AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) SetToUserId(_toUserId string) error { + r._toUserId = _toUserId + r.Set("to_user_id", _toUserId) + return nil +} + +// ToUserId Getter +func (r AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) GetToUserId() string { + return r._toUserId +} +// AgentRefUserId Setter +// 代理商 +func (r *AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) SetAgentRefUserId(_agentRefUserId string) error { + r._agentRefUserId = _agentRefUserId + r.Set("agent_ref_user_id", _agentRefUserId) + return nil +} + +// AgentRefUserId Getter +func (r AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) GetAgentRefUserId() string { + return r._agentRefUserId +} +// PageSize Setter +// 页大小 +func (r *AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Page Setter +// 页码 +func (r *AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugKytDrSearchstatusAPIRequest) GetPage() int64 { + return r._page +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrSearchstatusAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrSearchstatusAPIResponse.go new file mode 100644 index 0000000000..0e815ad256 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrSearchstatusAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗企业上传单据后处理状态查询 API返回值 +alibaba.alihealth.drug.kyt.dr.searchstatus + +单据处理状态查询 +*/ +type AlibabaAlihealthDrugKytDrSearchstatusAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrSearchstatusAPIResponseModel +} + +// 疫苗企业上传单据后处理状态查询 成功返回结果 +type AlibabaAlihealthDrugKytDrSearchstatusAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_searchstatus_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytDrSearchstatusResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrSearchstatusResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrSearchstatusResponse.go deleted file mode 100644 index 7f19eb02ce..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrSearchstatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -疫苗企业上传单据后处理状态查询 API返回值 -alibaba.alihealth.drug.kyt.dr.searchstatus - -单据处理状态查询 -*/ -type AlibabaAlihealthDrugKytDrSearchstatusAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrSearchstatusResponse -} - -// 疫苗企业上传单据后处理状态查询 成功返回结果 -type AlibabaAlihealthDrugKytDrSearchstatusResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_searchstatus_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytDrSearchstatusResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrSinglerelationAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrSinglerelationAPIRequest.go new file mode 100644 index 0000000000..e1c489c290 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrSinglerelationAPIRequest.go @@ -0,0 +1,80 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +多融单码关联关系查询 API请求 +alibaba.alihealth.drug.kyt.dr.singlerelation + +单码关联关系查询 +*/ +type AlibabaAlihealthDrugKytDrSinglerelationAPIRequest struct { + model.Params + // 追溯码 + _code string + // 接口调用企业的唯一标识(接口调用者) + _refEntId string + // 目标企业唯一标识(为哪个企业查询,一般与入参ref_ent_id一样) + _desRefEntId string +} + +// 初始化AlibabaAlihealthDrugKytDrSinglerelationAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrSinglerelationRequest() *AlibabaAlihealthDrugKytDrSinglerelationAPIRequest{ + return &AlibabaAlihealthDrugKytDrSinglerelationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrSinglerelationAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.dr.singlerelation" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrSinglerelationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 追溯码 +func (r *AlibabaAlihealthDrugKytDrSinglerelationAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthDrugKytDrSinglerelationAPIRequest) GetCode() string { + return r._code +} +// RefEntId Setter +// 接口调用企业的唯一标识(接口调用者) +func (r *AlibabaAlihealthDrugKytDrSinglerelationAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytDrSinglerelationAPIRequest) GetRefEntId() string { + return r._refEntId +} +// DesRefEntId Setter +// 目标企业唯一标识(为哪个企业查询,一般与入参ref_ent_id一样) +func (r *AlibabaAlihealthDrugKytDrSinglerelationAPIRequest) SetDesRefEntId(_desRefEntId string) error { + r._desRefEntId = _desRefEntId + r.Set("des_ref_ent_id", _desRefEntId) + return nil +} + +// DesRefEntId Getter +func (r AlibabaAlihealthDrugKytDrSinglerelationAPIRequest) GetDesRefEntId() string { + return r._desRefEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrSinglerelationAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrSinglerelationAPIResponse.go new file mode 100644 index 0000000000..74d78d2510 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrSinglerelationAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +多融单码关联关系查询 API返回值 +alibaba.alihealth.drug.kyt.dr.singlerelation + +单码关联关系查询 +*/ +type AlibabaAlihealthDrugKytDrSinglerelationAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrSinglerelationAPIResponseModel +} + +// 多融单码关联关系查询 成功返回结果 +type AlibabaAlihealthDrugKytDrSinglerelationAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_singlerelation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugKytDrSinglerelationResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrSinglerelationResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrSinglerelationResponse.go deleted file mode 100644 index 23c09e4351..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrSinglerelationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -多融单码关联关系查询 API返回值 -alibaba.alihealth.drug.kyt.dr.singlerelation - -单码关联关系查询 -*/ -type AlibabaAlihealthDrugKytDrSinglerelationAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrSinglerelationResponse -} - -// 多融单码关联关系查询 成功返回结果 -type AlibabaAlihealthDrugKytDrSinglerelationResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_singlerelation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugKytDrSinglerelationResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrStorageuploadAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrStorageuploadAPIRequest.go new file mode 100644 index 0000000000..81c2ccef21 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrStorageuploadAPIRequest.go @@ -0,0 +1,108 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗存储温度上传 API请求 +alibaba.alihealth.drug.kyt.dr.storageupload + +疫苗存储温度上传 +*/ +type AlibabaAlihealthDrugKytDrStorageuploadAPIRequest struct { + model.Params + // 企业RefEntid,是指该单据的所有者。 如企业A上传了一个出库单,您为A的单据上传运输温度,那么此时RefEntid即为A的ID。 若您本企业上传了一个单据,您为这个单据上传温度,此时RefEntid即为您本企业的ID。 + _refEntId string + // 设备编号 + _equipmentCode string + // 设备名称 + _equipmentName string + // 温度信息 + _content string + // 代上传的企业agent_ref_ent_id,特指“代上传温度”的企业。 如企业A上传了一个出库单,您代为A的单据上传运输温度,那么此时Agent_RefEntid即为您的ID。 若您本企业上传了一个单据,您本企业为这个单据上传温度,不存在“代上传”概念,此时agent_ref_ent_id即为空。 + _agentRefEntId string +} + +// 初始化AlibabaAlihealthDrugKytDrStorageuploadAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrStorageuploadRequest() *AlibabaAlihealthDrugKytDrStorageuploadAPIRequest{ + return &AlibabaAlihealthDrugKytDrStorageuploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrStorageuploadAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.dr.storageupload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrStorageuploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业RefEntid,是指该单据的所有者。 如企业A上传了一个出库单,您为A的单据上传运输温度,那么此时RefEntid即为A的ID。 若您本企业上传了一个单据,您为这个单据上传温度,此时RefEntid即为您本企业的ID。 +func (r *AlibabaAlihealthDrugKytDrStorageuploadAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytDrStorageuploadAPIRequest) GetRefEntId() string { + return r._refEntId +} +// EquipmentCode Setter +// 设备编号 +func (r *AlibabaAlihealthDrugKytDrStorageuploadAPIRequest) SetEquipmentCode(_equipmentCode string) error { + r._equipmentCode = _equipmentCode + r.Set("equipment_code", _equipmentCode) + return nil +} + +// EquipmentCode Getter +func (r AlibabaAlihealthDrugKytDrStorageuploadAPIRequest) GetEquipmentCode() string { + return r._equipmentCode +} +// EquipmentName Setter +// 设备名称 +func (r *AlibabaAlihealthDrugKytDrStorageuploadAPIRequest) SetEquipmentName(_equipmentName string) error { + r._equipmentName = _equipmentName + r.Set("equipment_name", _equipmentName) + return nil +} + +// EquipmentName Getter +func (r AlibabaAlihealthDrugKytDrStorageuploadAPIRequest) GetEquipmentName() string { + return r._equipmentName +} +// Content Setter +// 温度信息 +func (r *AlibabaAlihealthDrugKytDrStorageuploadAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r AlibabaAlihealthDrugKytDrStorageuploadAPIRequest) GetContent() string { + return r._content +} +// AgentRefEntId Setter +// 代上传的企业agent_ref_ent_id,特指“代上传温度”的企业。 如企业A上传了一个出库单,您代为A的单据上传运输温度,那么此时Agent_RefEntid即为您的ID。 若您本企业上传了一个单据,您本企业为这个单据上传温度,不存在“代上传”概念,此时agent_ref_ent_id即为空。 +func (r *AlibabaAlihealthDrugKytDrStorageuploadAPIRequest) SetAgentRefEntId(_agentRefEntId string) error { + r._agentRefEntId = _agentRefEntId + r.Set("agent_ref_ent_id", _agentRefEntId) + return nil +} + +// AgentRefEntId Getter +func (r AlibabaAlihealthDrugKytDrStorageuploadAPIRequest) GetAgentRefEntId() string { + return r._agentRefEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrStorageuploadAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrStorageuploadAPIResponse.go new file mode 100644 index 0000000000..1b0fa13c97 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrStorageuploadAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗存储温度上传 API返回值 +alibaba.alihealth.drug.kyt.dr.storageupload + +疫苗存储温度上传 +*/ +type AlibabaAlihealthDrugKytDrStorageuploadAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrStorageuploadAPIResponseModel +} + +// 疫苗存储温度上传 成功返回结果 +type AlibabaAlihealthDrugKytDrStorageuploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_storageupload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugKytDrStorageuploadResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrStorageuploadResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrStorageuploadResponse.go deleted file mode 100644 index 90c4f13aaa..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrStorageuploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -疫苗存储温度上传 API返回值 -alibaba.alihealth.drug.kyt.dr.storageupload - -疫苗存储温度上传 -*/ -type AlibabaAlihealthDrugKytDrStorageuploadAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrStorageuploadResponse -} - -// 疫苗存储温度上传 成功返回结果 -type AlibabaAlihealthDrugKytDrStorageuploadResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_storageupload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugKytDrStorageuploadResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrTransportuploadAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrTransportuploadAPIRequest.go new file mode 100644 index 0000000000..c8f25133ad --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrTransportuploadAPIRequest.go @@ -0,0 +1,150 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗运输温度上传 API请求 +alibaba.alihealth.drug.kyt.dr.transportupload + +疫苗运输温度上传 +*/ +type AlibabaAlihealthDrugKytDrTransportuploadAPIRequest struct { + model.Params + // 企业RefEntid,是指该单据的所有者。 如企业A上传了一个出库单,您为A的单据上传运输温度,那么此时RefEntid即为A的ID。 若您本企业上传了一个单据,您为这个单据上传温度,此时RefEntid即为您本企业的ID。 + _refEntId string + // 单据编号 + _billCode string + // 运输企业RefEntId + _transportRefEntId string + // 运输企业名称 + _transportRefEntName string + // 设备编号 + _equipmentCode string + // 设备名称 + _equipmentName string + // 温度信息 + _content string + // 代上传的企业agent_ref_ent_id,特指“代上传温度”的企业。 如企业A上传了一个出库单,您代为A的单据上传运输温度,那么此时Agent_RefEntid即为您的ID。 若您本企业上传了一个单据,您本企业为这个单据上传温度,不存在“代上传”概念,此时agent_ref_ent_id即为空。 + _agentRefEntId string +} + +// 初始化AlibabaAlihealthDrugKytDrTransportuploadAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrTransportuploadRequest() *AlibabaAlihealthDrugKytDrTransportuploadAPIRequest{ + return &AlibabaAlihealthDrugKytDrTransportuploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrTransportuploadAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.dr.transportupload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrTransportuploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业RefEntid,是指该单据的所有者。 如企业A上传了一个出库单,您为A的单据上传运输温度,那么此时RefEntid即为A的ID。 若您本企业上传了一个单据,您为这个单据上传温度,此时RefEntid即为您本企业的ID。 +func (r *AlibabaAlihealthDrugKytDrTransportuploadAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytDrTransportuploadAPIRequest) GetRefEntId() string { + return r._refEntId +} +// BillCode Setter +// 单据编号 +func (r *AlibabaAlihealthDrugKytDrTransportuploadAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytDrTransportuploadAPIRequest) GetBillCode() string { + return r._billCode +} +// TransportRefEntId Setter +// 运输企业RefEntId +func (r *AlibabaAlihealthDrugKytDrTransportuploadAPIRequest) SetTransportRefEntId(_transportRefEntId string) error { + r._transportRefEntId = _transportRefEntId + r.Set("transport_ref_ent_id", _transportRefEntId) + return nil +} + +// TransportRefEntId Getter +func (r AlibabaAlihealthDrugKytDrTransportuploadAPIRequest) GetTransportRefEntId() string { + return r._transportRefEntId +} +// TransportRefEntName Setter +// 运输企业名称 +func (r *AlibabaAlihealthDrugKytDrTransportuploadAPIRequest) SetTransportRefEntName(_transportRefEntName string) error { + r._transportRefEntName = _transportRefEntName + r.Set("transport_ref_ent_name", _transportRefEntName) + return nil +} + +// TransportRefEntName Getter +func (r AlibabaAlihealthDrugKytDrTransportuploadAPIRequest) GetTransportRefEntName() string { + return r._transportRefEntName +} +// EquipmentCode Setter +// 设备编号 +func (r *AlibabaAlihealthDrugKytDrTransportuploadAPIRequest) SetEquipmentCode(_equipmentCode string) error { + r._equipmentCode = _equipmentCode + r.Set("equipment_code", _equipmentCode) + return nil +} + +// EquipmentCode Getter +func (r AlibabaAlihealthDrugKytDrTransportuploadAPIRequest) GetEquipmentCode() string { + return r._equipmentCode +} +// EquipmentName Setter +// 设备名称 +func (r *AlibabaAlihealthDrugKytDrTransportuploadAPIRequest) SetEquipmentName(_equipmentName string) error { + r._equipmentName = _equipmentName + r.Set("equipment_name", _equipmentName) + return nil +} + +// EquipmentName Getter +func (r AlibabaAlihealthDrugKytDrTransportuploadAPIRequest) GetEquipmentName() string { + return r._equipmentName +} +// Content Setter +// 温度信息 +func (r *AlibabaAlihealthDrugKytDrTransportuploadAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r AlibabaAlihealthDrugKytDrTransportuploadAPIRequest) GetContent() string { + return r._content +} +// AgentRefEntId Setter +// 代上传的企业agent_ref_ent_id,特指“代上传温度”的企业。 如企业A上传了一个出库单,您代为A的单据上传运输温度,那么此时Agent_RefEntid即为您的ID。 若您本企业上传了一个单据,您本企业为这个单据上传温度,不存在“代上传”概念,此时agent_ref_ent_id即为空。 +func (r *AlibabaAlihealthDrugKytDrTransportuploadAPIRequest) SetAgentRefEntId(_agentRefEntId string) error { + r._agentRefEntId = _agentRefEntId + r.Set("agent_ref_ent_id", _agentRefEntId) + return nil +} + +// AgentRefEntId Getter +func (r AlibabaAlihealthDrugKytDrTransportuploadAPIRequest) GetAgentRefEntId() string { + return r._agentRefEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrTransportuploadAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrTransportuploadAPIResponse.go new file mode 100644 index 0000000000..0cdf731714 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrTransportuploadAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗运输温度上传 API返回值 +alibaba.alihealth.drug.kyt.dr.transportupload + +疫苗运输温度上传 +*/ +type AlibabaAlihealthDrugKytDrTransportuploadAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrTransportuploadAPIResponseModel +} + +// 疫苗运输温度上传 成功返回结果 +type AlibabaAlihealthDrugKytDrTransportuploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_transportupload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugKytDrTransportuploadResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrTransportuploadResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrTransportuploadResponse.go deleted file mode 100644 index ee736f14b9..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrTransportuploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -疫苗运输温度上传 API返回值 -alibaba.alihealth.drug.kyt.dr.transportupload - -疫苗运输温度上传 -*/ -type AlibabaAlihealthDrugKytDrTransportuploadAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrTransportuploadResponse -} - -// 疫苗运输温度上传 成功返回结果 -type AlibabaAlihealthDrugKytDrTransportuploadResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_transportupload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugKytDrTransportuploadResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest.go new file mode 100644 index 0000000000..44c12797a1 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest.go @@ -0,0 +1,571 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗企业出入库上传 API请求 +alibaba.alihealth.drug.kyt.dr.uploadinoutbill + +零售企业上传出入库信息,包括采购入库(102),退货入库(103),供应入库(107),退货出库(202),销毁出库(205),抽检出库(206), 供应出库(209), +不包括对个人的零售出库,疫苗接种,领药出库。 +*/ +type AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest struct { + model.Params + // 单据编码 + _billCode string + // 单据时间 + _billTime string + // 单据类型【102代表采购入库】 + _billType int64 + // 药品类型【3普药2特药】 + _physicType int64 + // 上传企业的单位编码 + _refUserId string + // 代理企业REF标识 + _agentRefUserId string + // 发货企业entId + _fromUserId string + // 收货企业entId + _toUserId string + // 直调企业标识 + _destUserId string + // 单据提交者(appkey编号) + _operIcCode string + // 单据提交者姓名 + _operIcName string + // 客户端类型[必须填2] + _clientType string + // 退货原因代码[退货入出库时填写] + _returnReasonCode string + // 退货原因描述[退货入出库时填写] + _returnReasonDes string + // 注销原因代码【销毁出库时填写】 + _cancelReasonCode string + // 注销原因描述【销毁出库时填写】 + _cancelReasonDes string + // 执行人姓名【销毁出库时填写】 + _executerName string + // 执行人证件号【销毁出库时填写】 + _executerCode string + // 监督人姓名【销毁出库时填写】 + _superviserName string + // 监督人证件号【销毁出库时填写】 + _superviserCode string + // 仓号 + _warehouseId string + // 药品ID[企业自已系统的药品ID] + _drugId string + // 追溯码[多个时用逗号分开] + _traceCodes []string + // (协同平台数据合规)发货地址【必选】 + _fromAddress string + // (协同平台数据合规)收货地址【必选】 + _toAddress string + // (协同平台数据合规)发货单编号【必选】 + _fromBillCode string + // (协同平台数据合规)订货单编号【可选】 + _orderCode string + // (协同平台数据合规)发货人【必选】 + _fromPerson string + // (协同平台数据合规)收货人【必选】 + _toPerson string + // (协同平台数据合规)药品配送企业【出库单,收货方为医疗机构时填写】 + _disRefEntId string + // (协同平台数据合规)药品配送企业entId【出库单,收货方为医疗机构时填写】 + _disEntId string + // (协同平台数据合规)应收货总数量【必选】 + _quReceivable int64 + // (协同平台数据合规)是否验证,0:未通过验证,1:已验证 + _xtIsCheck string + // (协同平台数据合规)未验证通过原因【验证未通过时填写】 + _xtCheckCode string + // (协同平台数据合规)未验证通过原因描述【验证未通过时填写】 + _xtCheckCodeDesc string + // (协同平台数据合规)药品列表Json + _drugListJson string + // (协同平台数据合规)单据委托企业refEntId【疫苗药品出库单填写】 + _assRefEntId string + // (协同平台数据合规)单据委托企业entId【疫苗药品出库单填写】 + _assEntId string +} + +// 初始化AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrUploadinoutbillRequest() *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest{ + return &AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.dr.uploadinoutbill" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据编码 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetBillCode() string { + return r._billCode +} +// BillTime Setter +// 单据时间 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetBillTime(_billTime string) error { + r._billTime = _billTime + r.Set("bill_time", _billTime) + return nil +} + +// BillTime Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetBillTime() string { + return r._billTime +} +// BillType Setter +// 单据类型【102代表采购入库】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetBillType(_billType int64) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetBillType() int64 { + return r._billType +} +// PhysicType Setter +// 药品类型【3普药2特药】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetPhysicType(_physicType int64) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetPhysicType() int64 { + return r._physicType +} +// RefUserId Setter +// 上传企业的单位编码 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetRefUserId(_refUserId string) error { + r._refUserId = _refUserId + r.Set("ref_user_id", _refUserId) + return nil +} + +// RefUserId Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetRefUserId() string { + return r._refUserId +} +// AgentRefUserId Setter +// 代理企业REF标识 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetAgentRefUserId(_agentRefUserId string) error { + r._agentRefUserId = _agentRefUserId + r.Set("agent_ref_user_id", _agentRefUserId) + return nil +} + +// AgentRefUserId Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetAgentRefUserId() string { + return r._agentRefUserId +} +// FromUserId Setter +// 发货企业entId +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetFromUserId() string { + return r._fromUserId +} +// ToUserId Setter +// 收货企业entId +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetToUserId(_toUserId string) error { + r._toUserId = _toUserId + r.Set("to_user_id", _toUserId) + return nil +} + +// ToUserId Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetToUserId() string { + return r._toUserId +} +// DestUserId Setter +// 直调企业标识 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetDestUserId(_destUserId string) error { + r._destUserId = _destUserId + r.Set("dest_user_id", _destUserId) + return nil +} + +// DestUserId Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetDestUserId() string { + return r._destUserId +} +// OperIcCode Setter +// 单据提交者(appkey编号) +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetOperIcCode(_operIcCode string) error { + r._operIcCode = _operIcCode + r.Set("oper_ic_code", _operIcCode) + return nil +} + +// OperIcCode Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetOperIcCode() string { + return r._operIcCode +} +// OperIcName Setter +// 单据提交者姓名 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetOperIcName(_operIcName string) error { + r._operIcName = _operIcName + r.Set("oper_ic_name", _operIcName) + return nil +} + +// OperIcName Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetOperIcName() string { + return r._operIcName +} +// ClientType Setter +// 客户端类型[必须填2] +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetClientType(_clientType string) error { + r._clientType = _clientType + r.Set("client_type", _clientType) + return nil +} + +// ClientType Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetClientType() string { + return r._clientType +} +// ReturnReasonCode Setter +// 退货原因代码[退货入出库时填写] +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetReturnReasonCode(_returnReasonCode string) error { + r._returnReasonCode = _returnReasonCode + r.Set("return_reason_code", _returnReasonCode) + return nil +} + +// ReturnReasonCode Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetReturnReasonCode() string { + return r._returnReasonCode +} +// ReturnReasonDes Setter +// 退货原因描述[退货入出库时填写] +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetReturnReasonDes(_returnReasonDes string) error { + r._returnReasonDes = _returnReasonDes + r.Set("return_reason_des", _returnReasonDes) + return nil +} + +// ReturnReasonDes Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetReturnReasonDes() string { + return r._returnReasonDes +} +// CancelReasonCode Setter +// 注销原因代码【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetCancelReasonCode(_cancelReasonCode string) error { + r._cancelReasonCode = _cancelReasonCode + r.Set("cancel_reason_code", _cancelReasonCode) + return nil +} + +// CancelReasonCode Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetCancelReasonCode() string { + return r._cancelReasonCode +} +// CancelReasonDes Setter +// 注销原因描述【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetCancelReasonDes(_cancelReasonDes string) error { + r._cancelReasonDes = _cancelReasonDes + r.Set("cancel_reason_des", _cancelReasonDes) + return nil +} + +// CancelReasonDes Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetCancelReasonDes() string { + return r._cancelReasonDes +} +// ExecuterName Setter +// 执行人姓名【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetExecuterName(_executerName string) error { + r._executerName = _executerName + r.Set("executer_name", _executerName) + return nil +} + +// ExecuterName Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetExecuterName() string { + return r._executerName +} +// ExecuterCode Setter +// 执行人证件号【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetExecuterCode(_executerCode string) error { + r._executerCode = _executerCode + r.Set("executer_code", _executerCode) + return nil +} + +// ExecuterCode Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetExecuterCode() string { + return r._executerCode +} +// SuperviserName Setter +// 监督人姓名【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetSuperviserName(_superviserName string) error { + r._superviserName = _superviserName + r.Set("superviser_name", _superviserName) + return nil +} + +// SuperviserName Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetSuperviserName() string { + return r._superviserName +} +// SuperviserCode Setter +// 监督人证件号【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetSuperviserCode(_superviserCode string) error { + r._superviserCode = _superviserCode + r.Set("superviser_code", _superviserCode) + return nil +} + +// SuperviserCode Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetSuperviserCode() string { + return r._superviserCode +} +// WarehouseId Setter +// 仓号 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetWarehouseId(_warehouseId string) error { + r._warehouseId = _warehouseId + r.Set("warehouse_id", _warehouseId) + return nil +} + +// WarehouseId Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetWarehouseId() string { + return r._warehouseId +} +// DrugId Setter +// 药品ID[企业自已系统的药品ID] +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetDrugId(_drugId string) error { + r._drugId = _drugId + r.Set("drug_id", _drugId) + return nil +} + +// DrugId Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetDrugId() string { + return r._drugId +} +// TraceCodes Setter +// 追溯码[多个时用逗号分开] +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetTraceCodes(_traceCodes []string) error { + r._traceCodes = _traceCodes + r.Set("trace_codes", _traceCodes) + return nil +} + +// TraceCodes Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetTraceCodes() []string { + return r._traceCodes +} +// FromAddress Setter +// (协同平台数据合规)发货地址【必选】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetFromAddress(_fromAddress string) error { + r._fromAddress = _fromAddress + r.Set("from_address", _fromAddress) + return nil +} + +// FromAddress Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetFromAddress() string { + return r._fromAddress +} +// ToAddress Setter +// (协同平台数据合规)收货地址【必选】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetToAddress(_toAddress string) error { + r._toAddress = _toAddress + r.Set("to_address", _toAddress) + return nil +} + +// ToAddress Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetToAddress() string { + return r._toAddress +} +// FromBillCode Setter +// (协同平台数据合规)发货单编号【必选】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetFromBillCode(_fromBillCode string) error { + r._fromBillCode = _fromBillCode + r.Set("from_bill_code", _fromBillCode) + return nil +} + +// FromBillCode Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetFromBillCode() string { + return r._fromBillCode +} +// OrderCode Setter +// (协同平台数据合规)订货单编号【可选】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetOrderCode() string { + return r._orderCode +} +// FromPerson Setter +// (协同平台数据合规)发货人【必选】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetFromPerson(_fromPerson string) error { + r._fromPerson = _fromPerson + r.Set("from_person", _fromPerson) + return nil +} + +// FromPerson Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetFromPerson() string { + return r._fromPerson +} +// ToPerson Setter +// (协同平台数据合规)收货人【必选】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetToPerson(_toPerson string) error { + r._toPerson = _toPerson + r.Set("to_person", _toPerson) + return nil +} + +// ToPerson Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetToPerson() string { + return r._toPerson +} +// DisRefEntId Setter +// (协同平台数据合规)药品配送企业【出库单,收货方为医疗机构时填写】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetDisRefEntId(_disRefEntId string) error { + r._disRefEntId = _disRefEntId + r.Set("dis_ref_ent_id", _disRefEntId) + return nil +} + +// DisRefEntId Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetDisRefEntId() string { + return r._disRefEntId +} +// DisEntId Setter +// (协同平台数据合规)药品配送企业entId【出库单,收货方为医疗机构时填写】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetDisEntId(_disEntId string) error { + r._disEntId = _disEntId + r.Set("dis_ent_id", _disEntId) + return nil +} + +// DisEntId Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetDisEntId() string { + return r._disEntId +} +// QuReceivable Setter +// (协同平台数据合规)应收货总数量【必选】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetQuReceivable(_quReceivable int64) error { + r._quReceivable = _quReceivable + r.Set("qu_receivable", _quReceivable) + return nil +} + +// QuReceivable Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetQuReceivable() int64 { + return r._quReceivable +} +// XtIsCheck Setter +// (协同平台数据合规)是否验证,0:未通过验证,1:已验证 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetXtIsCheck(_xtIsCheck string) error { + r._xtIsCheck = _xtIsCheck + r.Set("xt_is_check", _xtIsCheck) + return nil +} + +// XtIsCheck Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetXtIsCheck() string { + return r._xtIsCheck +} +// XtCheckCode Setter +// (协同平台数据合规)未验证通过原因【验证未通过时填写】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetXtCheckCode(_xtCheckCode string) error { + r._xtCheckCode = _xtCheckCode + r.Set("xt_check_code", _xtCheckCode) + return nil +} + +// XtCheckCode Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetXtCheckCode() string { + return r._xtCheckCode +} +// XtCheckCodeDesc Setter +// (协同平台数据合规)未验证通过原因描述【验证未通过时填写】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetXtCheckCodeDesc(_xtCheckCodeDesc string) error { + r._xtCheckCodeDesc = _xtCheckCodeDesc + r.Set("xt_check_code_desc", _xtCheckCodeDesc) + return nil +} + +// XtCheckCodeDesc Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetXtCheckCodeDesc() string { + return r._xtCheckCodeDesc +} +// DrugListJson Setter +// (协同平台数据合规)药品列表Json +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetDrugListJson(_drugListJson string) error { + r._drugListJson = _drugListJson + r.Set("drug_list_json", _drugListJson) + return nil +} + +// DrugListJson Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetDrugListJson() string { + return r._drugListJson +} +// AssRefEntId Setter +// (协同平台数据合规)单据委托企业refEntId【疫苗药品出库单填写】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetAssRefEntId(_assRefEntId string) error { + r._assRefEntId = _assRefEntId + r.Set("ass_ref_ent_id", _assRefEntId) + return nil +} + +// AssRefEntId Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetAssRefEntId() string { + return r._assRefEntId +} +// AssEntId Setter +// (协同平台数据合规)单据委托企业entId【疫苗药品出库单填写】 +func (r *AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) SetAssEntId(_assEntId string) error { + r._assEntId = _assEntId + r.Set("ass_ent_id", _assEntId) + return nil +} + +// AssEntId Getter +func (r AlibabaAlihealthDrugKytDrUploadinoutbillAPIRequest) GetAssEntId() string { + return r._assEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrUploadinoutbillAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrUploadinoutbillAPIResponse.go new file mode 100644 index 0000000000..031e583035 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrUploadinoutbillAPIResponse.go @@ -0,0 +1,34 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗企业出入库上传 API返回值 +alibaba.alihealth.drug.kyt.dr.uploadinoutbill + +零售企业上传出入库信息,包括采购入库(102),退货入库(103),供应入库(107),退货出库(202),销毁出库(205),抽检出库(206), 供应出库(209), +不包括对个人的零售出库,疫苗接种,领药出库。 +*/ +type AlibabaAlihealthDrugKytDrUploadinoutbillAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrUploadinoutbillAPIResponseModel +} + +// 疫苗企业出入库上传 成功返回结果 +type AlibabaAlihealthDrugKytDrUploadinoutbillAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_uploadinoutbill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 返回编码(BILL_DECODE_ERROR 单据转码失败 BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 返回信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 是否成功(true 成功 false 失败) + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrUploadinoutbillResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrUploadinoutbillResponse.go deleted file mode 100644 index e2cb4e3e6f..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrUploadinoutbillResponse.go +++ /dev/null @@ -1,34 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -疫苗企业出入库上传 API返回值 -alibaba.alihealth.drug.kyt.dr.uploadinoutbill - -零售企业上传出入库信息,包括采购入库(102),退货入库(103),供应入库(107),退货出库(202),销毁出库(205),抽检出库(206), 供应出库(209), -不包括对个人的零售出库,疫苗接种,领药出库。 -*/ -type AlibabaAlihealthDrugKytDrUploadinoutbillAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrUploadinoutbillResponse -} - -// 疫苗企业出入库上传 成功返回结果 -type AlibabaAlihealthDrugKytDrUploadinoutbillResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_uploadinoutbill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 返回编码(BILL_DECODE_ERROR 单据转码失败 BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 返回信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 是否成功(true 成功 false 失败) - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest.go new file mode 100644 index 0000000000..b3cc6e930a --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest.go @@ -0,0 +1,136 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取企业冷链设备信息 API请求 +alibaba.alihealth.drug.kyt.dr.vaequipment.list + +获取企业冷链设备信息 +*/ +type AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest struct { + model.Params + // 操作企业ID (appkey授权) + _refEntId string + // 目标企业ID + _targetRefEntId string + // 设备编号或名称 + _equipmentCodeOrName string + // 设备类型 + _equipmentType string + // 设备状态,1:正常;0:停止 + _status string + // 页码 + _page int64 + // 每页显示数量 + _pageSize int64 +} + +// 初始化AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrVaequipmentListRequest() *AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest{ + return &AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.dr.vaequipment.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 操作企业ID (appkey授权) +func (r *AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest) GetRefEntId() string { + return r._refEntId +} +// TargetRefEntId Setter +// 目标企业ID +func (r *AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest) SetTargetRefEntId(_targetRefEntId string) error { + r._targetRefEntId = _targetRefEntId + r.Set("target_ref_ent_id", _targetRefEntId) + return nil +} + +// TargetRefEntId Getter +func (r AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest) GetTargetRefEntId() string { + return r._targetRefEntId +} +// EquipmentCodeOrName Setter +// 设备编号或名称 +func (r *AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest) SetEquipmentCodeOrName(_equipmentCodeOrName string) error { + r._equipmentCodeOrName = _equipmentCodeOrName + r.Set("equipment_code_or_name", _equipmentCodeOrName) + return nil +} + +// EquipmentCodeOrName Getter +func (r AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest) GetEquipmentCodeOrName() string { + return r._equipmentCodeOrName +} +// EquipmentType Setter +// 设备类型 +func (r *AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest) SetEquipmentType(_equipmentType string) error { + r._equipmentType = _equipmentType + r.Set("equipment_type", _equipmentType) + return nil +} + +// EquipmentType Getter +func (r AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest) GetEquipmentType() string { + return r._equipmentType +} +// Status Setter +// 设备状态,1:正常;0:停止 +func (r *AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest) GetStatus() string { + return r._status +} +// Page Setter +// 页码 +func (r *AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest) GetPage() int64 { + return r._page +} +// PageSize Setter +// 每页显示数量 +func (r *AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugKytDrVaequipmentListAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrVaequipmentListAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrVaequipmentListAPIResponse.go new file mode 100644 index 0000000000..1efd085bdb --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrVaequipmentListAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取企业冷链设备信息 API返回值 +alibaba.alihealth.drug.kyt.dr.vaequipment.list + +获取企业冷链设备信息 +*/ +type AlibabaAlihealthDrugKytDrVaequipmentListAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrVaequipmentListAPIResponseModel +} + +// 获取企业冷链设备信息 成功返回结果 +type AlibabaAlihealthDrugKytDrVaequipmentListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_vaequipment_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugKytDrVaequipmentListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrVaequipmentListResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrVaequipmentListResponse.go deleted file mode 100644 index 873727bbdb..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrVaequipmentListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取企业冷链设备信息 API返回值 -alibaba.alihealth.drug.kyt.dr.vaequipment.list - -获取企业冷链设备信息 -*/ -type AlibabaAlihealthDrugKytDrVaequipmentListAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrVaequipmentListResponse -} - -// 获取企业冷链设备信息 成功返回结果 -type AlibabaAlihealthDrugKytDrVaequipmentListResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_dr_vaequipment_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugKytDrVaequipmentListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrugcodesAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrugcodesAPIRequest.go new file mode 100644 index 0000000000..36c218350e --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrugcodesAPIRequest.go @@ -0,0 +1,122 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +药品是否赋码 API请求 +alibaba.alihealth.drug.kyt.drugcodes + +药品是否赋码 +*/ +type AlibabaAlihealthDrugKytDrugcodesAPIRequest struct { + model.Params + // 企业名称 + _refEntName string + // 药品名称 + _physicName string + // 生产批号 + _produceBatchNo string + // 药品类型 + _physicType string + // 包装规格 + _pkgSpec string + // 制剂规格 + _prepnSpec string +} + +// 初始化AlibabaAlihealthDrugKytDrugcodesAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrugcodesRequest() *AlibabaAlihealthDrugKytDrugcodesAPIRequest{ + return &AlibabaAlihealthDrugKytDrugcodesAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrugcodesAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.drugcodes" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrugcodesAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntName Setter +// 企业名称 +func (r *AlibabaAlihealthDrugKytDrugcodesAPIRequest) SetRefEntName(_refEntName string) error { + r._refEntName = _refEntName + r.Set("ref_ent_name", _refEntName) + return nil +} + +// RefEntName Getter +func (r AlibabaAlihealthDrugKytDrugcodesAPIRequest) GetRefEntName() string { + return r._refEntName +} +// PhysicName Setter +// 药品名称 +func (r *AlibabaAlihealthDrugKytDrugcodesAPIRequest) SetPhysicName(_physicName string) error { + r._physicName = _physicName + r.Set("physic_name", _physicName) + return nil +} + +// PhysicName Getter +func (r AlibabaAlihealthDrugKytDrugcodesAPIRequest) GetPhysicName() string { + return r._physicName +} +// ProduceBatchNo Setter +// 生产批号 +func (r *AlibabaAlihealthDrugKytDrugcodesAPIRequest) SetProduceBatchNo(_produceBatchNo string) error { + r._produceBatchNo = _produceBatchNo + r.Set("produce_batch_no", _produceBatchNo) + return nil +} + +// ProduceBatchNo Getter +func (r AlibabaAlihealthDrugKytDrugcodesAPIRequest) GetProduceBatchNo() string { + return r._produceBatchNo +} +// PhysicType Setter +// 药品类型 +func (r *AlibabaAlihealthDrugKytDrugcodesAPIRequest) SetPhysicType(_physicType string) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugKytDrugcodesAPIRequest) GetPhysicType() string { + return r._physicType +} +// PkgSpec Setter +// 包装规格 +func (r *AlibabaAlihealthDrugKytDrugcodesAPIRequest) SetPkgSpec(_pkgSpec string) error { + r._pkgSpec = _pkgSpec + r.Set("pkg_spec", _pkgSpec) + return nil +} + +// PkgSpec Getter +func (r AlibabaAlihealthDrugKytDrugcodesAPIRequest) GetPkgSpec() string { + return r._pkgSpec +} +// PrepnSpec Setter +// 制剂规格 +func (r *AlibabaAlihealthDrugKytDrugcodesAPIRequest) SetPrepnSpec(_prepnSpec string) error { + r._prepnSpec = _prepnSpec + r.Set("prepn_spec", _prepnSpec) + return nil +} + +// PrepnSpec Getter +func (r AlibabaAlihealthDrugKytDrugcodesAPIRequest) GetPrepnSpec() string { + return r._prepnSpec +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrugcodesAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrugcodesAPIResponse.go new file mode 100644 index 0000000000..a16f5ac2d3 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrugcodesAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +药品是否赋码 API返回值 +alibaba.alihealth.drug.kyt.drugcodes + +药品是否赋码 +*/ +type AlibabaAlihealthDrugKytDrugcodesAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrugcodesAPIResponseModel +} + +// 药品是否赋码 成功返回结果 +type AlibabaAlihealthDrugKytDrugcodesAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_drugcodes_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytDrugcodesResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrugcodesResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrugcodesResponse.go deleted file mode 100644 index 927bd36857..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrugcodesResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -药品是否赋码 API返回值 -alibaba.alihealth.drug.kyt.drugcodes - -药品是否赋码 -*/ -type AlibabaAlihealthDrugKytDrugcodesAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrugcodesResponse -} - -// 药品是否赋码 成功返回结果 -type AlibabaAlihealthDrugKytDrugcodesResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_drugcodes_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytDrugcodesResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrugdetailAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrugdetailAPIRequest.go new file mode 100644 index 0000000000..fd6aa888b9 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrugdetailAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询药品详细信息 API请求 +alibaba.alihealth.drug.kyt.drugdetail + +查询药品详细信息 +*/ +type AlibabaAlihealthDrugKytDrugdetailAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 药品ID + _drugEntBaseInfoId string +} + +// 初始化AlibabaAlihealthDrugKytDrugdetailAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrugdetailRequest() *AlibabaAlihealthDrugKytDrugdetailAPIRequest{ + return &AlibabaAlihealthDrugKytDrugdetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrugdetailAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.drugdetail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrugdetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytDrugdetailAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytDrugdetailAPIRequest) GetRefEntId() string { + return r._refEntId +} +// DrugEntBaseInfoId Setter +// 药品ID +func (r *AlibabaAlihealthDrugKytDrugdetailAPIRequest) SetDrugEntBaseInfoId(_drugEntBaseInfoId string) error { + r._drugEntBaseInfoId = _drugEntBaseInfoId + r.Set("drug_ent_base_info_id", _drugEntBaseInfoId) + return nil +} + +// DrugEntBaseInfoId Getter +func (r AlibabaAlihealthDrugKytDrugdetailAPIRequest) GetDrugEntBaseInfoId() string { + return r._drugEntBaseInfoId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrugdetailAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrugdetailAPIResponse.go new file mode 100644 index 0000000000..a20e940c1e --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrugdetailAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询药品详细信息 API返回值 +alibaba.alihealth.drug.kyt.drugdetail + +查询药品详细信息 +*/ +type AlibabaAlihealthDrugKytDrugdetailAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrugdetailAPIResponseModel +} + +// 查询药品详细信息 成功返回结果 +type AlibabaAlihealthDrugKytDrugdetailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_drugdetail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytDrugdetailResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrugdetailResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrugdetailResponse.go deleted file mode 100644 index 7351ee1583..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrugdetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询药品详细信息 API返回值 -alibaba.alihealth.drug.kyt.drugdetail - -查询药品详细信息 -*/ -type AlibabaAlihealthDrugKytDrugdetailAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrugdetailResponse -} - -// 查询药品详细信息 成功返回结果 -type AlibabaAlihealthDrugKytDrugdetailResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_drugdetail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytDrugdetailResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrugrescodeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrugrescodeAPIRequest.go new file mode 100644 index 0000000000..a0463cee95 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrugrescodeAPIRequest.go @@ -0,0 +1,178 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询药品码段信息 API请求 +alibaba.alihealth.drug.kyt.drugrescode + +查询药品码段信息 +*/ +type AlibabaAlihealthDrugKytDrugrescodeAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 药品通用名 + _physicName string + // 批准文号 + _approvalLicenceNo string + // 开始日期 + _startDate string + // 结束日期 + _endDate string + // 页大小 + _pageSize int64 + // 页码 + _page int64 + // 企业名称 + _entName string + // 包装规格 + _packageSpec string + // 制剂规格 + _prepnSpec string +} + +// 初始化AlibabaAlihealthDrugKytDrugrescodeAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrugrescodeRequest() *AlibabaAlihealthDrugKytDrugrescodeAPIRequest{ + return &AlibabaAlihealthDrugKytDrugrescodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrugrescodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.drugrescode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrugrescodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytDrugrescodeAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytDrugrescodeAPIRequest) GetRefEntId() string { + return r._refEntId +} +// PhysicName Setter +// 药品通用名 +func (r *AlibabaAlihealthDrugKytDrugrescodeAPIRequest) SetPhysicName(_physicName string) error { + r._physicName = _physicName + r.Set("physic_name", _physicName) + return nil +} + +// PhysicName Getter +func (r AlibabaAlihealthDrugKytDrugrescodeAPIRequest) GetPhysicName() string { + return r._physicName +} +// ApprovalLicenceNo Setter +// 批准文号 +func (r *AlibabaAlihealthDrugKytDrugrescodeAPIRequest) SetApprovalLicenceNo(_approvalLicenceNo string) error { + r._approvalLicenceNo = _approvalLicenceNo + r.Set("approval_licence_no", _approvalLicenceNo) + return nil +} + +// ApprovalLicenceNo Getter +func (r AlibabaAlihealthDrugKytDrugrescodeAPIRequest) GetApprovalLicenceNo() string { + return r._approvalLicenceNo +} +// StartDate Setter +// 开始日期 +func (r *AlibabaAlihealthDrugKytDrugrescodeAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r AlibabaAlihealthDrugKytDrugrescodeAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 结束日期 +func (r *AlibabaAlihealthDrugKytDrugrescodeAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugKytDrugrescodeAPIRequest) GetEndDate() string { + return r._endDate +} +// PageSize Setter +// 页大小 +func (r *AlibabaAlihealthDrugKytDrugrescodeAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugKytDrugrescodeAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Page Setter +// 页码 +func (r *AlibabaAlihealthDrugKytDrugrescodeAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugKytDrugrescodeAPIRequest) GetPage() int64 { + return r._page +} +// EntName Setter +// 企业名称 +func (r *AlibabaAlihealthDrugKytDrugrescodeAPIRequest) SetEntName(_entName string) error { + r._entName = _entName + r.Set("ent_name", _entName) + return nil +} + +// EntName Getter +func (r AlibabaAlihealthDrugKytDrugrescodeAPIRequest) GetEntName() string { + return r._entName +} +// PackageSpec Setter +// 包装规格 +func (r *AlibabaAlihealthDrugKytDrugrescodeAPIRequest) SetPackageSpec(_packageSpec string) error { + r._packageSpec = _packageSpec + r.Set("package_spec", _packageSpec) + return nil +} + +// PackageSpec Getter +func (r AlibabaAlihealthDrugKytDrugrescodeAPIRequest) GetPackageSpec() string { + return r._packageSpec +} +// PrepnSpec Setter +// 制剂规格 +func (r *AlibabaAlihealthDrugKytDrugrescodeAPIRequest) SetPrepnSpec(_prepnSpec string) error { + r._prepnSpec = _prepnSpec + r.Set("prepn_spec", _prepnSpec) + return nil +} + +// PrepnSpec Getter +func (r AlibabaAlihealthDrugKytDrugrescodeAPIRequest) GetPrepnSpec() string { + return r._prepnSpec +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrugrescodeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrugrescodeAPIResponse.go new file mode 100644 index 0000000000..5273616f18 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrugrescodeAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询药品码段信息 API返回值 +alibaba.alihealth.drug.kyt.drugrescode + +查询药品码段信息 +*/ +type AlibabaAlihealthDrugKytDrugrescodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrugrescodeAPIResponseModel +} + +// 查询药品码段信息 成功返回结果 +type AlibabaAlihealthDrugKytDrugrescodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_drugrescode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytDrugrescodeResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrugrescodeResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrugrescodeResponse.go deleted file mode 100644 index d375038e60..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrugrescodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询药品码段信息 API返回值 -alibaba.alihealth.drug.kyt.drugrescode - -查询药品码段信息 -*/ -type AlibabaAlihealthDrugKytDrugrescodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrugrescodeResponse -} - -// 查询药品码段信息 成功返回结果 -type AlibabaAlihealthDrugKytDrugrescodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_drugrescode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytDrugrescodeResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrugtableAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDrugtableAPIRequest.go new file mode 100644 index 0000000000..aed0475a89 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrugtableAPIRequest.go @@ -0,0 +1,178 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询药品目录信息 API请求 +alibaba.alihealth.drug.kyt.drugtable + +查询药品目录信息 +*/ +type AlibabaAlihealthDrugKytDrugtableAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 药品通用名 + _physicName string + // 批准文号 + _approvalLicenceNo string + // 开始日期 + _startDate string + // 结束日期 + _endDate string + // 页大小 + _pageSize int64 + // 页码 + _page int64 + // 企业名称 + _entName string + // 包装规格 + _packageSpec string + // 制剂规格 + _prepnSpec string +} + +// 初始化AlibabaAlihealthDrugKytDrugtableAPIRequest对象 +func NewAlibabaAlihealthDrugKytDrugtableRequest() *AlibabaAlihealthDrugKytDrugtableAPIRequest{ + return &AlibabaAlihealthDrugKytDrugtableAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDrugtableAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.drugtable" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDrugtableAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytDrugtableAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytDrugtableAPIRequest) GetRefEntId() string { + return r._refEntId +} +// PhysicName Setter +// 药品通用名 +func (r *AlibabaAlihealthDrugKytDrugtableAPIRequest) SetPhysicName(_physicName string) error { + r._physicName = _physicName + r.Set("physic_name", _physicName) + return nil +} + +// PhysicName Getter +func (r AlibabaAlihealthDrugKytDrugtableAPIRequest) GetPhysicName() string { + return r._physicName +} +// ApprovalLicenceNo Setter +// 批准文号 +func (r *AlibabaAlihealthDrugKytDrugtableAPIRequest) SetApprovalLicenceNo(_approvalLicenceNo string) error { + r._approvalLicenceNo = _approvalLicenceNo + r.Set("approval_licence_no", _approvalLicenceNo) + return nil +} + +// ApprovalLicenceNo Getter +func (r AlibabaAlihealthDrugKytDrugtableAPIRequest) GetApprovalLicenceNo() string { + return r._approvalLicenceNo +} +// StartDate Setter +// 开始日期 +func (r *AlibabaAlihealthDrugKytDrugtableAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r AlibabaAlihealthDrugKytDrugtableAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 结束日期 +func (r *AlibabaAlihealthDrugKytDrugtableAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugKytDrugtableAPIRequest) GetEndDate() string { + return r._endDate +} +// PageSize Setter +// 页大小 +func (r *AlibabaAlihealthDrugKytDrugtableAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugKytDrugtableAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Page Setter +// 页码 +func (r *AlibabaAlihealthDrugKytDrugtableAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugKytDrugtableAPIRequest) GetPage() int64 { + return r._page +} +// EntName Setter +// 企业名称 +func (r *AlibabaAlihealthDrugKytDrugtableAPIRequest) SetEntName(_entName string) error { + r._entName = _entName + r.Set("ent_name", _entName) + return nil +} + +// EntName Getter +func (r AlibabaAlihealthDrugKytDrugtableAPIRequest) GetEntName() string { + return r._entName +} +// PackageSpec Setter +// 包装规格 +func (r *AlibabaAlihealthDrugKytDrugtableAPIRequest) SetPackageSpec(_packageSpec string) error { + r._packageSpec = _packageSpec + r.Set("package_spec", _packageSpec) + return nil +} + +// PackageSpec Getter +func (r AlibabaAlihealthDrugKytDrugtableAPIRequest) GetPackageSpec() string { + return r._packageSpec +} +// PrepnSpec Setter +// 制剂规格 +func (r *AlibabaAlihealthDrugKytDrugtableAPIRequest) SetPrepnSpec(_prepnSpec string) error { + r._prepnSpec = _prepnSpec + r.Set("prepn_spec", _prepnSpec) + return nil +} + +// PrepnSpec Getter +func (r AlibabaAlihealthDrugKytDrugtableAPIRequest) GetPrepnSpec() string { + return r._prepnSpec +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrugtableAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrugtableAPIResponse.go new file mode 100644 index 0000000000..2124af8386 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDrugtableAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询药品目录信息 API返回值 +alibaba.alihealth.drug.kyt.drugtable + +查询药品目录信息 +*/ +type AlibabaAlihealthDrugKytDrugtableAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDrugtableAPIResponseModel +} + +// 查询药品目录信息 成功返回结果 +type AlibabaAlihealthDrugKytDrugtableAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_drugtable_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytDrugtableResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDrugtableResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDrugtableResponse.go deleted file mode 100644 index 0b22e3acd8..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDrugtableResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询药品目录信息 API返回值 -alibaba.alihealth.drug.kyt.drugtable - -查询药品目录信息 -*/ -type AlibabaAlihealthDrugKytDrugtableAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDrugtableResponse -} - -// 查询药品目录信息 成功返回结果 -type AlibabaAlihealthDrugKytDrugtableResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_drugtable_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytDrugtableResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDruploadretailAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytDruploadretailAPIRequest.go new file mode 100644 index 0000000000..7f931e7919 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDruploadretailAPIRequest.go @@ -0,0 +1,276 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +快易通多融零售上传接口 API请求 +alibaba.alihealth.drug.kyt.druploadretail + +快易通多融零售上传接口 +*/ +type AlibabaAlihealthDrugKytDruploadretailAPIRequest struct { + model.Params + // 单据编号(唯一) + _billCode string + // 单据生成时间(一般写当前时间) + _billTime string + // 单据类型[321,零售出库][322,疫苗接种][116,消费者退货入库] + _billType int64 + // 药品类型[2,特药,3,普药] + _physicType int64 + // 码上放心平台企业唯一编码(门店或医疗机构) + _refUserId string + // 发货企业(可为空) + _fromUserId string + // 单据提交者(appkey编号) + _operIcCode string + // 单据提交者姓名(可为空) + _operIcName string + // 20位追溯码(多个时用半角逗号分隔) + _traceCodes []string + // 购买人证件类型【1身份证2护照3 军官证4 医保卡5接种卡6学生证9其它】 + _customerIdType string + // 购买人证件编号 + _customerId string + // 药品购买者电话 + _userTel string + // 互联网标识 1是 0代表否 + _networkBillFlag string + // 医师名称 + _medicDoctor string + // 药品发药者 + _medicDispenser string + // 药品使用者名称 + _userName string + // 药品使用者代理人 + _userAgent string +} + +// 初始化AlibabaAlihealthDrugKytDruploadretailAPIRequest对象 +func NewAlibabaAlihealthDrugKytDruploadretailRequest() *AlibabaAlihealthDrugKytDruploadretailAPIRequest{ + return &AlibabaAlihealthDrugKytDruploadretailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytDruploadretailAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.druploadretail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytDruploadretailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据编号(唯一) +func (r *AlibabaAlihealthDrugKytDruploadretailAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytDruploadretailAPIRequest) GetBillCode() string { + return r._billCode +} +// BillTime Setter +// 单据生成时间(一般写当前时间) +func (r *AlibabaAlihealthDrugKytDruploadretailAPIRequest) SetBillTime(_billTime string) error { + r._billTime = _billTime + r.Set("bill_time", _billTime) + return nil +} + +// BillTime Getter +func (r AlibabaAlihealthDrugKytDruploadretailAPIRequest) GetBillTime() string { + return r._billTime +} +// BillType Setter +// 单据类型[321,零售出库][322,疫苗接种][116,消费者退货入库] +func (r *AlibabaAlihealthDrugKytDruploadretailAPIRequest) SetBillType(_billType int64) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytDruploadretailAPIRequest) GetBillType() int64 { + return r._billType +} +// PhysicType Setter +// 药品类型[2,特药,3,普药] +func (r *AlibabaAlihealthDrugKytDruploadretailAPIRequest) SetPhysicType(_physicType int64) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugKytDruploadretailAPIRequest) GetPhysicType() int64 { + return r._physicType +} +// RefUserId Setter +// 码上放心平台企业唯一编码(门店或医疗机构) +func (r *AlibabaAlihealthDrugKytDruploadretailAPIRequest) SetRefUserId(_refUserId string) error { + r._refUserId = _refUserId + r.Set("ref_user_id", _refUserId) + return nil +} + +// RefUserId Getter +func (r AlibabaAlihealthDrugKytDruploadretailAPIRequest) GetRefUserId() string { + return r._refUserId +} +// FromUserId Setter +// 发货企业(可为空) +func (r *AlibabaAlihealthDrugKytDruploadretailAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugKytDruploadretailAPIRequest) GetFromUserId() string { + return r._fromUserId +} +// OperIcCode Setter +// 单据提交者(appkey编号) +func (r *AlibabaAlihealthDrugKytDruploadretailAPIRequest) SetOperIcCode(_operIcCode string) error { + r._operIcCode = _operIcCode + r.Set("oper_ic_code", _operIcCode) + return nil +} + +// OperIcCode Getter +func (r AlibabaAlihealthDrugKytDruploadretailAPIRequest) GetOperIcCode() string { + return r._operIcCode +} +// OperIcName Setter +// 单据提交者姓名(可为空) +func (r *AlibabaAlihealthDrugKytDruploadretailAPIRequest) SetOperIcName(_operIcName string) error { + r._operIcName = _operIcName + r.Set("oper_ic_name", _operIcName) + return nil +} + +// OperIcName Getter +func (r AlibabaAlihealthDrugKytDruploadretailAPIRequest) GetOperIcName() string { + return r._operIcName +} +// TraceCodes Setter +// 20位追溯码(多个时用半角逗号分隔) +func (r *AlibabaAlihealthDrugKytDruploadretailAPIRequest) SetTraceCodes(_traceCodes []string) error { + r._traceCodes = _traceCodes + r.Set("trace_codes", _traceCodes) + return nil +} + +// TraceCodes Getter +func (r AlibabaAlihealthDrugKytDruploadretailAPIRequest) GetTraceCodes() []string { + return r._traceCodes +} +// CustomerIdType Setter +// 购买人证件类型【1身份证2护照3 军官证4 医保卡5接种卡6学生证9其它】 +func (r *AlibabaAlihealthDrugKytDruploadretailAPIRequest) SetCustomerIdType(_customerIdType string) error { + r._customerIdType = _customerIdType + r.Set("customer_id_type", _customerIdType) + return nil +} + +// CustomerIdType Getter +func (r AlibabaAlihealthDrugKytDruploadretailAPIRequest) GetCustomerIdType() string { + return r._customerIdType +} +// CustomerId Setter +// 购买人证件编号 +func (r *AlibabaAlihealthDrugKytDruploadretailAPIRequest) SetCustomerId(_customerId string) error { + r._customerId = _customerId + r.Set("customer_id", _customerId) + return nil +} + +// CustomerId Getter +func (r AlibabaAlihealthDrugKytDruploadretailAPIRequest) GetCustomerId() string { + return r._customerId +} +// UserTel Setter +// 药品购买者电话 +func (r *AlibabaAlihealthDrugKytDruploadretailAPIRequest) SetUserTel(_userTel string) error { + r._userTel = _userTel + r.Set("user_tel", _userTel) + return nil +} + +// UserTel Getter +func (r AlibabaAlihealthDrugKytDruploadretailAPIRequest) GetUserTel() string { + return r._userTel +} +// NetworkBillFlag Setter +// 互联网标识 1是 0代表否 +func (r *AlibabaAlihealthDrugKytDruploadretailAPIRequest) SetNetworkBillFlag(_networkBillFlag string) error { + r._networkBillFlag = _networkBillFlag + r.Set("network_bill_flag", _networkBillFlag) + return nil +} + +// NetworkBillFlag Getter +func (r AlibabaAlihealthDrugKytDruploadretailAPIRequest) GetNetworkBillFlag() string { + return r._networkBillFlag +} +// MedicDoctor Setter +// 医师名称 +func (r *AlibabaAlihealthDrugKytDruploadretailAPIRequest) SetMedicDoctor(_medicDoctor string) error { + r._medicDoctor = _medicDoctor + r.Set("medic_doctor", _medicDoctor) + return nil +} + +// MedicDoctor Getter +func (r AlibabaAlihealthDrugKytDruploadretailAPIRequest) GetMedicDoctor() string { + return r._medicDoctor +} +// MedicDispenser Setter +// 药品发药者 +func (r *AlibabaAlihealthDrugKytDruploadretailAPIRequest) SetMedicDispenser(_medicDispenser string) error { + r._medicDispenser = _medicDispenser + r.Set("medic_dispenser", _medicDispenser) + return nil +} + +// MedicDispenser Getter +func (r AlibabaAlihealthDrugKytDruploadretailAPIRequest) GetMedicDispenser() string { + return r._medicDispenser +} +// UserName Setter +// 药品使用者名称 +func (r *AlibabaAlihealthDrugKytDruploadretailAPIRequest) SetUserName(_userName string) error { + r._userName = _userName + r.Set("user_name", _userName) + return nil +} + +// UserName Getter +func (r AlibabaAlihealthDrugKytDruploadretailAPIRequest) GetUserName() string { + return r._userName +} +// UserAgent Setter +// 药品使用者代理人 +func (r *AlibabaAlihealthDrugKytDruploadretailAPIRequest) SetUserAgent(_userAgent string) error { + r._userAgent = _userAgent + r.Set("user_agent", _userAgent) + return nil +} + +// UserAgent Getter +func (r AlibabaAlihealthDrugKytDruploadretailAPIRequest) GetUserAgent() string { + return r._userAgent +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDruploadretailAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDruploadretailAPIResponse.go new file mode 100644 index 0000000000..f1f4ba65a9 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytDruploadretailAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +快易通多融零售上传接口 API返回值 +alibaba.alihealth.drug.kyt.druploadretail + +快易通多融零售上传接口 +*/ +type AlibabaAlihealthDrugKytDruploadretailAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytDruploadretailAPIResponseModel +} + +// 快易通多融零售上传接口 成功返回结果 +type AlibabaAlihealthDrugKytDruploadretailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_druploadretail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 上传单据文件队列表标识 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 错误码(BILL_DECODE_ERROR 单据转码失败 2.BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 错误信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 操作是否成功(true 成功 ,false失败) + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytDruploadretailResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytDruploadretailResponse.go deleted file mode 100644 index 4a59848237..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytDruploadretailResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -快易通多融零售上传接口 API返回值 -alibaba.alihealth.drug.kyt.druploadretail - -快易通多融零售上传接口 -*/ -type AlibabaAlihealthDrugKytDruploadretailAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytDruploadretailResponse -} - -// 快易通多融零售上传接口 成功返回结果 -type AlibabaAlihealthDrugKytDruploadretailResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_druploadretail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 上传单据文件队列表标识 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 错误码(BILL_DECODE_ERROR 单据转码失败 2.BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 错误信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 操作是否成功(true 成功 ,false失败) - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytFiledownloadAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytFiledownloadAPIRequest.go new file mode 100644 index 0000000000..c735c47568 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytFiledownloadAPIRequest.go @@ -0,0 +1,94 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +处理失败单据下载 API请求 +alibaba.alihealth.drug.kyt.filedownload + +处理失败单据下载 +*/ +type AlibabaAlihealthDrugKytFiledownloadAPIRequest struct { + model.Params + // 企业ID + _refUserId string + // 文件地址 + _url string + // 单据类型 + _billType string + // 单据队列ID + _billQueueId string +} + +// 初始化AlibabaAlihealthDrugKytFiledownloadAPIRequest对象 +func NewAlibabaAlihealthDrugKytFiledownloadRequest() *AlibabaAlihealthDrugKytFiledownloadAPIRequest{ + return &AlibabaAlihealthDrugKytFiledownloadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytFiledownloadAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.filedownload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytFiledownloadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefUserId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytFiledownloadAPIRequest) SetRefUserId(_refUserId string) error { + r._refUserId = _refUserId + r.Set("ref_user_id", _refUserId) + return nil +} + +// RefUserId Getter +func (r AlibabaAlihealthDrugKytFiledownloadAPIRequest) GetRefUserId() string { + return r._refUserId +} +// Url Setter +// 文件地址 +func (r *AlibabaAlihealthDrugKytFiledownloadAPIRequest) SetUrl(_url string) error { + r._url = _url + r.Set("url", _url) + return nil +} + +// Url Getter +func (r AlibabaAlihealthDrugKytFiledownloadAPIRequest) GetUrl() string { + return r._url +} +// BillType Setter +// 单据类型 +func (r *AlibabaAlihealthDrugKytFiledownloadAPIRequest) SetBillType(_billType string) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytFiledownloadAPIRequest) GetBillType() string { + return r._billType +} +// BillQueueId Setter +// 单据队列ID +func (r *AlibabaAlihealthDrugKytFiledownloadAPIRequest) SetBillQueueId(_billQueueId string) error { + r._billQueueId = _billQueueId + r.Set("bill_queue_id", _billQueueId) + return nil +} + +// BillQueueId Getter +func (r AlibabaAlihealthDrugKytFiledownloadAPIRequest) GetBillQueueId() string { + return r._billQueueId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytFiledownloadAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytFiledownloadAPIResponse.go new file mode 100644 index 0000000000..b470215041 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytFiledownloadAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +处理失败单据下载 API返回值 +alibaba.alihealth.drug.kyt.filedownload + +处理失败单据下载 +*/ +type AlibabaAlihealthDrugKytFiledownloadAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytFiledownloadAPIResponseModel +} + +// 处理失败单据下载 成功返回结果 +type AlibabaAlihealthDrugKytFiledownloadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_filedownload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 文件内容 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 返回结果编码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 返回结果 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 返回是否成功 + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytFiledownloadResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytFiledownloadResponse.go deleted file mode 100644 index 0068bc920c..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytFiledownloadResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -处理失败单据下载 API返回值 -alibaba.alihealth.drug.kyt.filedownload - -处理失败单据下载 -*/ -type AlibabaAlihealthDrugKytFiledownloadAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytFiledownloadResponse -} - -// 处理失败单据下载 成功返回结果 -type AlibabaAlihealthDrugKytFiledownloadResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_filedownload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 文件内容 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 返回结果编码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 返回结果 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 返回是否成功 - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetbyentidAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytGetbyentidAPIRequest.go new file mode 100644 index 0000000000..00e4ac6867 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytGetbyentidAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据企业主键查看企业详细信息 API请求 +alibaba.alihealth.drug.kyt.getbyentid + +根据企业主键查看企业详细信息 +*/ +type AlibabaAlihealthDrugKytGetbyentidAPIRequest struct { + model.Params + // 接口调用企业的唯一标识(接口调用者) + _refEntId string + // 准备要查询的企业ID(返回该企业ID的详细信息) + _entId string +} + +// 初始化AlibabaAlihealthDrugKytGetbyentidAPIRequest对象 +func NewAlibabaAlihealthDrugKytGetbyentidRequest() *AlibabaAlihealthDrugKytGetbyentidAPIRequest{ + return &AlibabaAlihealthDrugKytGetbyentidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytGetbyentidAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.getbyentid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytGetbyentidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 接口调用企业的唯一标识(接口调用者) +func (r *AlibabaAlihealthDrugKytGetbyentidAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytGetbyentidAPIRequest) GetRefEntId() string { + return r._refEntId +} +// EntId Setter +// 准备要查询的企业ID(返回该企业ID的详细信息) +func (r *AlibabaAlihealthDrugKytGetbyentidAPIRequest) SetEntId(_entId string) error { + r._entId = _entId + r.Set("ent_id", _entId) + return nil +} + +// EntId Getter +func (r AlibabaAlihealthDrugKytGetbyentidAPIRequest) GetEntId() string { + return r._entId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetbyentidAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytGetbyentidAPIResponse.go new file mode 100644 index 0000000000..deae445bd3 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytGetbyentidAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据企业主键查看企业详细信息 API返回值 +alibaba.alihealth.drug.kyt.getbyentid + +根据企业主键查看企业详细信息 +*/ +type AlibabaAlihealthDrugKytGetbyentidAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytGetbyentidAPIResponseModel +} + +// 根据企业主键查看企业详细信息 成功返回结果 +type AlibabaAlihealthDrugKytGetbyentidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_getbyentid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytGetbyentidResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetbyentidResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytGetbyentidResponse.go deleted file mode 100644 index 1b6317b3e3..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytGetbyentidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据企业主键查看企业详细信息 API返回值 -alibaba.alihealth.drug.kyt.getbyentid - -根据企业主键查看企业详细信息 -*/ -type AlibabaAlihealthDrugKytGetbyentidAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytGetbyentidResponse -} - -// 根据企业主键查看企业详细信息 成功返回结果 -type AlibabaAlihealthDrugKytGetbyentidResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_getbyentid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytGetbyentidResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetbyrefentidAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytGetbyrefentidAPIRequest.go new file mode 100644 index 0000000000..9ae6423f79 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytGetbyrefentidAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据企业唯一标识查看企业详细信息 API请求 +alibaba.alihealth.drug.kyt.getbyrefentid + +根据企业唯一标识查看企业详细信息 +*/ +type AlibabaAlihealthDrugKytGetbyrefentidAPIRequest struct { + model.Params + // 接口调用企业的唯一标识(接口调用者) + _refEntId string + // 准备要查询的企业唯一标识(返回该唯一标识企业的详细信息) + _destRefEntId string +} + +// 初始化AlibabaAlihealthDrugKytGetbyrefentidAPIRequest对象 +func NewAlibabaAlihealthDrugKytGetbyrefentidRequest() *AlibabaAlihealthDrugKytGetbyrefentidAPIRequest{ + return &AlibabaAlihealthDrugKytGetbyrefentidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytGetbyrefentidAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.getbyrefentid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytGetbyrefentidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 接口调用企业的唯一标识(接口调用者) +func (r *AlibabaAlihealthDrugKytGetbyrefentidAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytGetbyrefentidAPIRequest) GetRefEntId() string { + return r._refEntId +} +// DestRefEntId Setter +// 准备要查询的企业唯一标识(返回该唯一标识企业的详细信息) +func (r *AlibabaAlihealthDrugKytGetbyrefentidAPIRequest) SetDestRefEntId(_destRefEntId string) error { + r._destRefEntId = _destRefEntId + r.Set("dest_ref_ent_id", _destRefEntId) + return nil +} + +// DestRefEntId Getter +func (r AlibabaAlihealthDrugKytGetbyrefentidAPIRequest) GetDestRefEntId() string { + return r._destRefEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetbyrefentidAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytGetbyrefentidAPIResponse.go new file mode 100644 index 0000000000..b8931b6d71 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytGetbyrefentidAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据企业唯一标识查看企业详细信息 API返回值 +alibaba.alihealth.drug.kyt.getbyrefentid + +根据企业唯一标识查看企业详细信息 +*/ +type AlibabaAlihealthDrugKytGetbyrefentidAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytGetbyrefentidAPIResponseModel +} + +// 根据企业唯一标识查看企业详细信息 成功返回结果 +type AlibabaAlihealthDrugKytGetbyrefentidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_getbyrefentid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytGetbyrefentidResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetbyrefentidResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytGetbyrefentidResponse.go deleted file mode 100644 index 606fb8abc7..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytGetbyrefentidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据企业唯一标识查看企业详细信息 API返回值 -alibaba.alihealth.drug.kyt.getbyrefentid - -根据企业唯一标识查看企业详细信息 -*/ -type AlibabaAlihealthDrugKytGetbyrefentidAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytGetbyrefentidResponse -} - -// 根据企业唯一标识查看企业详细信息 成功返回结果 -type AlibabaAlihealthDrugKytGetbyrefentidResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_getbyrefentid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytGetbyrefentidResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetcodebaseinfoAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytGetcodebaseinfoAPIRequest.go new file mode 100644 index 0000000000..acb8e91736 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytGetcodebaseinfoAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +码的药品信息查询 API请求 +alibaba.alihealth.drug.kyt.getcodebaseinfo + +提供根据码查询码基本信息接口 +*/ +type AlibabaAlihealthDrugKytGetcodebaseinfoAPIRequest struct { + model.Params + // 码 + _code string + // 企业唯一标识 + _refEntId string +} + +// 初始化AlibabaAlihealthDrugKytGetcodebaseinfoAPIRequest对象 +func NewAlibabaAlihealthDrugKytGetcodebaseinfoRequest() *AlibabaAlihealthDrugKytGetcodebaseinfoAPIRequest{ + return &AlibabaAlihealthDrugKytGetcodebaseinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytGetcodebaseinfoAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.getcodebaseinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytGetcodebaseinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 码 +func (r *AlibabaAlihealthDrugKytGetcodebaseinfoAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthDrugKytGetcodebaseinfoAPIRequest) GetCode() string { + return r._code +} +// RefEntId Setter +// 企业唯一标识 +func (r *AlibabaAlihealthDrugKytGetcodebaseinfoAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytGetcodebaseinfoAPIRequest) GetRefEntId() string { + return r._refEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetcodebaseinfoAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytGetcodebaseinfoAPIResponse.go new file mode 100644 index 0000000000..89470ec408 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytGetcodebaseinfoAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +码的药品信息查询 API返回值 +alibaba.alihealth.drug.kyt.getcodebaseinfo + +提供根据码查询码基本信息接口 +*/ +type AlibabaAlihealthDrugKytGetcodebaseinfoAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytGetcodebaseinfoAPIResponseModel +} + +// 码的药品信息查询 成功返回结果 +type AlibabaAlihealthDrugKytGetcodebaseinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_getcodebaseinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *CodeFullInfoDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetcodebaseinfoResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytGetcodebaseinfoResponse.go deleted file mode 100644 index d69fa873f1..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytGetcodebaseinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -码的药品信息查询 API返回值 -alibaba.alihealth.drug.kyt.getcodebaseinfo - -提供根据码查询码基本信息接口 -*/ -type AlibabaAlihealthDrugKytGetcodebaseinfoAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytGetcodebaseinfoResponse -} - -// 码的药品信息查询 成功返回结果 -type AlibabaAlihealthDrugKytGetcodebaseinfoResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_getcodebaseinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *CodeFullInfoDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetcodebillinfoAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytGetcodebillinfoAPIRequest.go new file mode 100644 index 0000000000..1083454ca9 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytGetcodebillinfoAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据码获取基本和单据信息 API请求 +alibaba.alihealth.drug.kyt.getcodebillinfo + +根据码信息获取基本信息和单据信息 +*/ +type AlibabaAlihealthDrugKytGetcodebillinfoAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 码 + _code string +} + +// 初始化AlibabaAlihealthDrugKytGetcodebillinfoAPIRequest对象 +func NewAlibabaAlihealthDrugKytGetcodebillinfoRequest() *AlibabaAlihealthDrugKytGetcodebillinfoAPIRequest{ + return &AlibabaAlihealthDrugKytGetcodebillinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytGetcodebillinfoAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.getcodebillinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytGetcodebillinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytGetcodebillinfoAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytGetcodebillinfoAPIRequest) GetRefEntId() string { + return r._refEntId +} +// Code Setter +// 码 +func (r *AlibabaAlihealthDrugKytGetcodebillinfoAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthDrugKytGetcodebillinfoAPIRequest) GetCode() string { + return r._code +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetcodebillinfoAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytGetcodebillinfoAPIResponse.go new file mode 100644 index 0000000000..857a3a68f6 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytGetcodebillinfoAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据码获取基本和单据信息 API返回值 +alibaba.alihealth.drug.kyt.getcodebillinfo + +根据码信息获取基本信息和单据信息 +*/ +type AlibabaAlihealthDrugKytGetcodebillinfoAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytGetcodebillinfoAPIResponseModel +} + +// 根据码获取基本和单据信息 成功返回结果 +type AlibabaAlihealthDrugKytGetcodebillinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_getcodebillinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetcodebillinfoResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytGetcodebillinfoResponse.go deleted file mode 100644 index 8143a547e2..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytGetcodebillinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据码获取基本和单据信息 API返回值 -alibaba.alihealth.drug.kyt.getcodebillinfo - -根据码信息获取基本信息和单据信息 -*/ -type AlibabaAlihealthDrugKytGetcodebillinfoAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytGetcodebillinfoResponse -} - -// 根据码获取基本和单据信息 成功返回结果 -type AlibabaAlihealthDrugKytGetcodebillinfoResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_getcodebillinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetdruglicenseAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytGetdruglicenseAPIRequest.go new file mode 100644 index 0000000000..afc23ad348 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytGetdruglicenseAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取药品资质信息 API请求 +alibaba.alihealth.drug.kyt.getdruglicense + +获取药品的资质信息。 +*/ +type AlibabaAlihealthDrugKytGetdruglicenseAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 药品ID + _drugId string +} + +// 初始化AlibabaAlihealthDrugKytGetdruglicenseAPIRequest对象 +func NewAlibabaAlihealthDrugKytGetdruglicenseRequest() *AlibabaAlihealthDrugKytGetdruglicenseAPIRequest{ + return &AlibabaAlihealthDrugKytGetdruglicenseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytGetdruglicenseAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.getdruglicense" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytGetdruglicenseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytGetdruglicenseAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytGetdruglicenseAPIRequest) GetRefEntId() string { + return r._refEntId +} +// DrugId Setter +// 药品ID +func (r *AlibabaAlihealthDrugKytGetdruglicenseAPIRequest) SetDrugId(_drugId string) error { + r._drugId = _drugId + r.Set("drug_id", _drugId) + return nil +} + +// DrugId Getter +func (r AlibabaAlihealthDrugKytGetdruglicenseAPIRequest) GetDrugId() string { + return r._drugId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetdruglicenseAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytGetdruglicenseAPIResponse.go new file mode 100644 index 0000000000..2611666ee7 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytGetdruglicenseAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取药品资质信息 API返回值 +alibaba.alihealth.drug.kyt.getdruglicense + +获取药品的资质信息。 +*/ +type AlibabaAlihealthDrugKytGetdruglicenseAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytGetdruglicenseAPIResponseModel +} + +// 获取药品资质信息 成功返回结果 +type AlibabaAlihealthDrugKytGetdruglicenseAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_getdruglicense_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytGetdruglicenseResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetdruglicenseResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytGetdruglicenseResponse.go deleted file mode 100644 index 17826f2028..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytGetdruglicenseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取药品资质信息 API返回值 -alibaba.alihealth.drug.kyt.getdruglicense - -获取药品的资质信息。 -*/ -type AlibabaAlihealthDrugKytGetdruglicenseAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytGetdruglicenseResponse -} - -// 获取药品资质信息 成功返回结果 -type AlibabaAlihealthDrugKytGetdruglicenseResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_getdruglicense_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytGetdruglicenseResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetentinfoAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytGetentinfoAPIRequest.go new file mode 100644 index 0000000000..05caea7609 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytGetentinfoAPIRequest.go @@ -0,0 +1,52 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据企业名称查询企业唯一标识【ref_ent_id】和企业ID【ent_id】 API请求 +alibaba.alihealth.drug.kyt.getentinfo + +根据企业名称查询企业唯一标识【ref_ent_id】和企业ID【ent_id】 +*/ +type AlibabaAlihealthDrugKytGetentinfoAPIRequest struct { + model.Params + // 公司名称 + _entName string +} + +// 初始化AlibabaAlihealthDrugKytGetentinfoAPIRequest对象 +func NewAlibabaAlihealthDrugKytGetentinfoRequest() *AlibabaAlihealthDrugKytGetentinfoAPIRequest{ + return &AlibabaAlihealthDrugKytGetentinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytGetentinfoAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.getentinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytGetentinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EntName Setter +// 公司名称 +func (r *AlibabaAlihealthDrugKytGetentinfoAPIRequest) SetEntName(_entName string) error { + r._entName = _entName + r.Set("ent_name", _entName) + return nil +} + +// EntName Getter +func (r AlibabaAlihealthDrugKytGetentinfoAPIRequest) GetEntName() string { + return r._entName +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetentinfoAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytGetentinfoAPIResponse.go new file mode 100644 index 0000000000..e8c4fe61b4 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytGetentinfoAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据企业名称查询企业唯一标识【ref_ent_id】和企业ID【ent_id】 API返回值 +alibaba.alihealth.drug.kyt.getentinfo + +根据企业名称查询企业唯一标识【ref_ent_id】和企业ID【ent_id】 +*/ +type AlibabaAlihealthDrugKytGetentinfoAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytGetentinfoAPIResponseModel +} + +// 根据企业名称查询企业唯一标识【ref_ent_id】和企业ID【ent_id】 成功返回结果 +type AlibabaAlihealthDrugKytGetentinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_getentinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytGetentinfoResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetentinfoResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytGetentinfoResponse.go deleted file mode 100644 index 95921e5cbe..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytGetentinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据企业名称查询企业唯一标识【ref_ent_id】和企业ID【ent_id】 API返回值 -alibaba.alihealth.drug.kyt.getentinfo - -根据企业名称查询企业唯一标识【ref_ent_id】和企业ID【ent_id】 -*/ -type AlibabaAlihealthDrugKytGetentinfoAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytGetentinfoResponse -} - -// 根据企业名称查询企业唯一标识【ref_ent_id】和企业ID【ent_id】 成功返回结果 -type AlibabaAlihealthDrugKytGetentinfoResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_getentinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytGetentinfoResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetentlicenseAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytGetentlicenseAPIRequest.go new file mode 100644 index 0000000000..afb525877b --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytGetentlicenseAPIRequest.go @@ -0,0 +1,52 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取企业资质 API请求 +alibaba.alihealth.drug.kyt.getentlicense + +获取企业的资质信息。 +*/ +type AlibabaAlihealthDrugKytGetentlicenseAPIRequest struct { + model.Params + // 企业ID + _refEntId string +} + +// 初始化AlibabaAlihealthDrugKytGetentlicenseAPIRequest对象 +func NewAlibabaAlihealthDrugKytGetentlicenseRequest() *AlibabaAlihealthDrugKytGetentlicenseAPIRequest{ + return &AlibabaAlihealthDrugKytGetentlicenseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytGetentlicenseAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.getentlicense" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytGetentlicenseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytGetentlicenseAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytGetentlicenseAPIRequest) GetRefEntId() string { + return r._refEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetentlicenseAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytGetentlicenseAPIResponse.go new file mode 100644 index 0000000000..01b0152952 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytGetentlicenseAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取企业资质 API返回值 +alibaba.alihealth.drug.kyt.getentlicense + +获取企业的资质信息。 +*/ +type AlibabaAlihealthDrugKytGetentlicenseAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytGetentlicenseAPIResponseModel +} + +// 获取企业资质 成功返回结果 +type AlibabaAlihealthDrugKytGetentlicenseAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_getentlicense_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytGetentlicenseResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytGetentlicenseResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytGetentlicenseResponse.go deleted file mode 100644 index 2ec248da91..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytGetentlicenseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取企业资质 API返回值 -alibaba.alihealth.drug.kyt.getentlicense - -获取企业的资质信息。 -*/ -type AlibabaAlihealthDrugKytGetentlicenseAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytGetentlicenseResponse -} - -// 获取企业资质 成功返回结果 -type AlibabaAlihealthDrugKytGetentlicenseResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_getentlicense_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytGetentlicenseResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytIdgenerateAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytIdgenerateAPIRequest.go new file mode 100644 index 0000000000..5b15dce9d9 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytIdgenerateAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +终端(医疗机构|零售药店)ID生成接口 API请求 +alibaba.alihealth.drug.kyt.idgenerate + +终端(医疗机构|零售药店)ID生成接口 +*/ +type AlibabaAlihealthDrugKytIdgenerateAPIRequest struct { + model.Params + // 行政区(省市区) + _regionCode string + // 零售药店、医疗机构名称 + _terminalName string +} + +// 初始化AlibabaAlihealthDrugKytIdgenerateAPIRequest对象 +func NewAlibabaAlihealthDrugKytIdgenerateRequest() *AlibabaAlihealthDrugKytIdgenerateAPIRequest{ + return &AlibabaAlihealthDrugKytIdgenerateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytIdgenerateAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.idgenerate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytIdgenerateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RegionCode Setter +// 行政区(省市区) +func (r *AlibabaAlihealthDrugKytIdgenerateAPIRequest) SetRegionCode(_regionCode string) error { + r._regionCode = _regionCode + r.Set("region_code", _regionCode) + return nil +} + +// RegionCode Getter +func (r AlibabaAlihealthDrugKytIdgenerateAPIRequest) GetRegionCode() string { + return r._regionCode +} +// TerminalName Setter +// 零售药店、医疗机构名称 +func (r *AlibabaAlihealthDrugKytIdgenerateAPIRequest) SetTerminalName(_terminalName string) error { + r._terminalName = _terminalName + r.Set("terminal_name", _terminalName) + return nil +} + +// TerminalName Getter +func (r AlibabaAlihealthDrugKytIdgenerateAPIRequest) GetTerminalName() string { + return r._terminalName +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytIdgenerateAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytIdgenerateAPIResponse.go new file mode 100644 index 0000000000..a6dfade8c5 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytIdgenerateAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +终端(医疗机构|零售药店)ID生成接口 API返回值 +alibaba.alihealth.drug.kyt.idgenerate + +终端(医疗机构|零售药店)ID生成接口 +*/ +type AlibabaAlihealthDrugKytIdgenerateAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytIdgenerateAPIResponseModel +} + +// 终端(医疗机构|零售药店)ID生成接口 成功返回结果 +type AlibabaAlihealthDrugKytIdgenerateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_idgenerate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的ID + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 返回的编码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 返回的结果 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 返回的结果 + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytIdgenerateResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytIdgenerateResponse.go deleted file mode 100644 index 7908fd6ebf..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytIdgenerateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -终端(医疗机构|零售药店)ID生成接口 API返回值 -alibaba.alihealth.drug.kyt.idgenerate - -终端(医疗机构|零售药店)ID生成接口 -*/ -type AlibabaAlihealthDrugKytIdgenerateAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytIdgenerateResponse -} - -// 终端(医疗机构|零售药店)ID生成接口 成功返回结果 -type AlibabaAlihealthDrugKytIdgenerateResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_idgenerate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的ID - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 返回的编码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 返回的结果 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 返回的结果 - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytListauthsAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytListauthsAPIRequest.go new file mode 100644 index 0000000000..b5e1d13ca2 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytListauthsAPIRequest.go @@ -0,0 +1,94 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +企业搜索自己授权的物流企业 API请求 +alibaba.alihealth.drug.kyt.listauths + +企业搜索自己授权的物流企业 +*/ +type AlibabaAlihealthDrugKytListauthsAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 企业名称 + _entName string + // 页码 + _page int64 + // 页大小 + _pageSize int64 +} + +// 初始化AlibabaAlihealthDrugKytListauthsAPIRequest对象 +func NewAlibabaAlihealthDrugKytListauthsRequest() *AlibabaAlihealthDrugKytListauthsAPIRequest{ + return &AlibabaAlihealthDrugKytListauthsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytListauthsAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.listauths" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytListauthsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytListauthsAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytListauthsAPIRequest) GetRefEntId() string { + return r._refEntId +} +// EntName Setter +// 企业名称 +func (r *AlibabaAlihealthDrugKytListauthsAPIRequest) SetEntName(_entName string) error { + r._entName = _entName + r.Set("ent_name", _entName) + return nil +} + +// EntName Getter +func (r AlibabaAlihealthDrugKytListauthsAPIRequest) GetEntName() string { + return r._entName +} +// Page Setter +// 页码 +func (r *AlibabaAlihealthDrugKytListauthsAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugKytListauthsAPIRequest) GetPage() int64 { + return r._page +} +// PageSize Setter +// 页大小 +func (r *AlibabaAlihealthDrugKytListauthsAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugKytListauthsAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytListauthsAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytListauthsAPIResponse.go new file mode 100644 index 0000000000..6ed7329fb8 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytListauthsAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +企业搜索自己授权的物流企业 API返回值 +alibaba.alihealth.drug.kyt.listauths + +企业搜索自己授权的物流企业 +*/ +type AlibabaAlihealthDrugKytListauthsAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytListauthsAPIResponseModel +} + +// 企业搜索自己授权的物流企业 成功返回结果 +type AlibabaAlihealthDrugKytListauthsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_listauths_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytListauthsResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytListauthsResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytListauthsResponse.go deleted file mode 100644 index 0e4c51b99e..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytListauthsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -企业搜索自己授权的物流企业 API返回值 -alibaba.alihealth.drug.kyt.listauths - -企业搜索自己授权的物流企业 -*/ -type AlibabaAlihealthDrugKytListauthsAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytListauthsResponse -} - -// 企业搜索自己授权的物流企业 成功返回结果 -type AlibabaAlihealthDrugKytListauthsResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_listauths_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytListauthsResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytListpartsAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytListpartsAPIRequest.go new file mode 100644 index 0000000000..e4bdf3ea3b --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytListpartsAPIRequest.go @@ -0,0 +1,136 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询往来单位列表 API请求 +alibaba.alihealth.drug.kyt.listparts + +查询往来单位列表 +*/ +type AlibabaAlihealthDrugKytListpartsAPIRequest struct { + model.Params + // 企业唯一标识 + _refEntId string + // 企业名称 + _entName string + // 企业自定义编号 + _refPartnerId string + // 页大小 + _pageSize int64 + // 页码 + _page int64 + // 开始时间 + _beginDate string + // 结束时间 + _endDate string +} + +// 初始化AlibabaAlihealthDrugKytListpartsAPIRequest对象 +func NewAlibabaAlihealthDrugKytListpartsRequest() *AlibabaAlihealthDrugKytListpartsAPIRequest{ + return &AlibabaAlihealthDrugKytListpartsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytListpartsAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.listparts" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytListpartsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业唯一标识 +func (r *AlibabaAlihealthDrugKytListpartsAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytListpartsAPIRequest) GetRefEntId() string { + return r._refEntId +} +// EntName Setter +// 企业名称 +func (r *AlibabaAlihealthDrugKytListpartsAPIRequest) SetEntName(_entName string) error { + r._entName = _entName + r.Set("ent_name", _entName) + return nil +} + +// EntName Getter +func (r AlibabaAlihealthDrugKytListpartsAPIRequest) GetEntName() string { + return r._entName +} +// RefPartnerId Setter +// 企业自定义编号 +func (r *AlibabaAlihealthDrugKytListpartsAPIRequest) SetRefPartnerId(_refPartnerId string) error { + r._refPartnerId = _refPartnerId + r.Set("ref_partner_id", _refPartnerId) + return nil +} + +// RefPartnerId Getter +func (r AlibabaAlihealthDrugKytListpartsAPIRequest) GetRefPartnerId() string { + return r._refPartnerId +} +// PageSize Setter +// 页大小 +func (r *AlibabaAlihealthDrugKytListpartsAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugKytListpartsAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Page Setter +// 页码 +func (r *AlibabaAlihealthDrugKytListpartsAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugKytListpartsAPIRequest) GetPage() int64 { + return r._page +} +// BeginDate Setter +// 开始时间 +func (r *AlibabaAlihealthDrugKytListpartsAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaAlihealthDrugKytListpartsAPIRequest) GetBeginDate() string { + return r._beginDate +} +// EndDate Setter +// 结束时间 +func (r *AlibabaAlihealthDrugKytListpartsAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugKytListpartsAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytListpartsAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytListpartsAPIResponse.go new file mode 100644 index 0000000000..2810f9be3c --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytListpartsAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询往来单位列表 API返回值 +alibaba.alihealth.drug.kyt.listparts + +查询往来单位列表 +*/ +type AlibabaAlihealthDrugKytListpartsAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytListpartsAPIResponseModel +} + +// 查询往来单位列表 成功返回结果 +type AlibabaAlihealthDrugKytListpartsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_listparts_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytListpartsResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytListpartsByagentAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytListpartsByagentAPIRequest.go new file mode 100644 index 0000000000..d17f2d62bb --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytListpartsByagentAPIRequest.go @@ -0,0 +1,150 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物流代货主查往来单位接口 API请求 +alibaba.alihealth.drug.kyt.listparts.byagent + +代理企业查询往来单位列表 +*/ +type AlibabaAlihealthDrugKytListpartsByagentAPIRequest struct { + model.Params + // 企业唯一标识(货主企业) + _refEntId string + // 企业名称 + _entName string + // 企业自定义编号 + _refPartnerId string + // 页大小 + _pageSize int64 + // 页码 + _page int64 + // 开始时间 + _beginDate string + // 结束时间 + _endDate string + // 代理企业唯一标识(物流企业) + _agentRefEntId string +} + +// 初始化AlibabaAlihealthDrugKytListpartsByagentAPIRequest对象 +func NewAlibabaAlihealthDrugKytListpartsByagentRequest() *AlibabaAlihealthDrugKytListpartsByagentAPIRequest{ + return &AlibabaAlihealthDrugKytListpartsByagentAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytListpartsByagentAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.listparts.byagent" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytListpartsByagentAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业唯一标识(货主企业) +func (r *AlibabaAlihealthDrugKytListpartsByagentAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytListpartsByagentAPIRequest) GetRefEntId() string { + return r._refEntId +} +// EntName Setter +// 企业名称 +func (r *AlibabaAlihealthDrugKytListpartsByagentAPIRequest) SetEntName(_entName string) error { + r._entName = _entName + r.Set("ent_name", _entName) + return nil +} + +// EntName Getter +func (r AlibabaAlihealthDrugKytListpartsByagentAPIRequest) GetEntName() string { + return r._entName +} +// RefPartnerId Setter +// 企业自定义编号 +func (r *AlibabaAlihealthDrugKytListpartsByagentAPIRequest) SetRefPartnerId(_refPartnerId string) error { + r._refPartnerId = _refPartnerId + r.Set("ref_partner_id", _refPartnerId) + return nil +} + +// RefPartnerId Getter +func (r AlibabaAlihealthDrugKytListpartsByagentAPIRequest) GetRefPartnerId() string { + return r._refPartnerId +} +// PageSize Setter +// 页大小 +func (r *AlibabaAlihealthDrugKytListpartsByagentAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugKytListpartsByagentAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Page Setter +// 页码 +func (r *AlibabaAlihealthDrugKytListpartsByagentAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugKytListpartsByagentAPIRequest) GetPage() int64 { + return r._page +} +// BeginDate Setter +// 开始时间 +func (r *AlibabaAlihealthDrugKytListpartsByagentAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaAlihealthDrugKytListpartsByagentAPIRequest) GetBeginDate() string { + return r._beginDate +} +// EndDate Setter +// 结束时间 +func (r *AlibabaAlihealthDrugKytListpartsByagentAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugKytListpartsByagentAPIRequest) GetEndDate() string { + return r._endDate +} +// AgentRefEntId Setter +// 代理企业唯一标识(物流企业) +func (r *AlibabaAlihealthDrugKytListpartsByagentAPIRequest) SetAgentRefEntId(_agentRefEntId string) error { + r._agentRefEntId = _agentRefEntId + r.Set("agent_ref_ent_id", _agentRefEntId) + return nil +} + +// AgentRefEntId Getter +func (r AlibabaAlihealthDrugKytListpartsByagentAPIRequest) GetAgentRefEntId() string { + return r._agentRefEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytListpartsByagentAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytListpartsByagentAPIResponse.go new file mode 100644 index 0000000000..3b7ba59506 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytListpartsByagentAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物流代货主查往来单位接口 API返回值 +alibaba.alihealth.drug.kyt.listparts.byagent + +代理企业查询往来单位列表 +*/ +type AlibabaAlihealthDrugKytListpartsByagentAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytListpartsByagentAPIResponseModel +} + +// 物流代货主查往来单位接口 成功返回结果 +type AlibabaAlihealthDrugKytListpartsByagentAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_listparts_byagent_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytListpartsByagentResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytListpartsByagentResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytListpartsByagentResponse.go deleted file mode 100644 index 2b6b76c789..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytListpartsByagentResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物流代货主查往来单位接口 API返回值 -alibaba.alihealth.drug.kyt.listparts.byagent - -代理企业查询往来单位列表 -*/ -type AlibabaAlihealthDrugKytListpartsByagentAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytListpartsByagentResponse -} - -// 物流代货主查往来单位接口 成功返回结果 -type AlibabaAlihealthDrugKytListpartsByagentResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_listparts_byagent_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytListpartsByagentResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytListpartsResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytListpartsResponse.go deleted file mode 100644 index 5c0da12790..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytListpartsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询往来单位列表 API返回值 -alibaba.alihealth.drug.kyt.listparts - -查询往来单位列表 -*/ -type AlibabaAlihealthDrugKytListpartsAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytListpartsResponse -} - -// 查询往来单位列表 成功返回结果 -type AlibabaAlihealthDrugKytListpartsResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_listparts_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytListpartsResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytListupoutAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytListupoutAPIRequest.go new file mode 100644 index 0000000000..18133275f5 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytListupoutAPIRequest.go @@ -0,0 +1,206 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询货主/本企业上游企业出库单据信息 API请求 +alibaba.alihealth.drug.kyt.listupout + +查询货主/本企业上游企业出库单据信息 +*/ +type AlibabaAlihealthDrugKytListupoutAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 开始日期(不写时分秒) + _beginDate string + // 结束日期(不写时分秒) + _endDate string + // 生产批号 + _produceBatchNo string + // 药品ID + _drugEntBaseInfoId string + // 单据类型 + _billType string + // 药品类型 + _physicType string + // 状态 + _status string + // 单据号 + _billCode string + // 页大小 + _pageSize int64 + // 页码 + _page int64 + // 发货单位 + _fromUserId string +} + +// 初始化AlibabaAlihealthDrugKytListupoutAPIRequest对象 +func NewAlibabaAlihealthDrugKytListupoutRequest() *AlibabaAlihealthDrugKytListupoutAPIRequest{ + return &AlibabaAlihealthDrugKytListupoutAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytListupoutAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.listupout" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytListupoutAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytListupoutAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytListupoutAPIRequest) GetRefEntId() string { + return r._refEntId +} +// BeginDate Setter +// 开始日期(不写时分秒) +func (r *AlibabaAlihealthDrugKytListupoutAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaAlihealthDrugKytListupoutAPIRequest) GetBeginDate() string { + return r._beginDate +} +// EndDate Setter +// 结束日期(不写时分秒) +func (r *AlibabaAlihealthDrugKytListupoutAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugKytListupoutAPIRequest) GetEndDate() string { + return r._endDate +} +// ProduceBatchNo Setter +// 生产批号 +func (r *AlibabaAlihealthDrugKytListupoutAPIRequest) SetProduceBatchNo(_produceBatchNo string) error { + r._produceBatchNo = _produceBatchNo + r.Set("produce_batch_no", _produceBatchNo) + return nil +} + +// ProduceBatchNo Getter +func (r AlibabaAlihealthDrugKytListupoutAPIRequest) GetProduceBatchNo() string { + return r._produceBatchNo +} +// DrugEntBaseInfoId Setter +// 药品ID +func (r *AlibabaAlihealthDrugKytListupoutAPIRequest) SetDrugEntBaseInfoId(_drugEntBaseInfoId string) error { + r._drugEntBaseInfoId = _drugEntBaseInfoId + r.Set("drug_ent_base_info_id", _drugEntBaseInfoId) + return nil +} + +// DrugEntBaseInfoId Getter +func (r AlibabaAlihealthDrugKytListupoutAPIRequest) GetDrugEntBaseInfoId() string { + return r._drugEntBaseInfoId +} +// BillType Setter +// 单据类型 +func (r *AlibabaAlihealthDrugKytListupoutAPIRequest) SetBillType(_billType string) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytListupoutAPIRequest) GetBillType() string { + return r._billType +} +// PhysicType Setter +// 药品类型 +func (r *AlibabaAlihealthDrugKytListupoutAPIRequest) SetPhysicType(_physicType string) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugKytListupoutAPIRequest) GetPhysicType() string { + return r._physicType +} +// Status Setter +// 状态 +func (r *AlibabaAlihealthDrugKytListupoutAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaAlihealthDrugKytListupoutAPIRequest) GetStatus() string { + return r._status +} +// BillCode Setter +// 单据号 +func (r *AlibabaAlihealthDrugKytListupoutAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytListupoutAPIRequest) GetBillCode() string { + return r._billCode +} +// PageSize Setter +// 页大小 +func (r *AlibabaAlihealthDrugKytListupoutAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugKytListupoutAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Page Setter +// 页码 +func (r *AlibabaAlihealthDrugKytListupoutAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugKytListupoutAPIRequest) GetPage() int64 { + return r._page +} +// FromUserId Setter +// 发货单位 +func (r *AlibabaAlihealthDrugKytListupoutAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugKytListupoutAPIRequest) GetFromUserId() string { + return r._fromUserId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytListupoutAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytListupoutAPIResponse.go new file mode 100644 index 0000000000..fbbb820441 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytListupoutAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询货主/本企业上游企业出库单据信息 API返回值 +alibaba.alihealth.drug.kyt.listupout + +查询货主/本企业上游企业出库单据信息 +*/ +type AlibabaAlihealthDrugKytListupoutAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytListupoutAPIResponseModel +} + +// 查询货主/本企业上游企业出库单据信息 成功返回结果 +type AlibabaAlihealthDrugKytListupoutAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_listupout_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytListupoutResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytListupoutResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytListupoutResponse.go deleted file mode 100644 index a9ca9d1318..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytListupoutResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询货主/本企业上游企业出库单据信息 API返回值 -alibaba.alihealth.drug.kyt.listupout - -查询货主/本企业上游企业出库单据信息 -*/ -type AlibabaAlihealthDrugKytListupoutAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytListupoutResponse -} - -// 查询货主/本企业上游企业出库单据信息 成功返回结果 -type AlibabaAlihealthDrugKytListupoutResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_listupout_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytListupoutResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIRequest.go new file mode 100644 index 0000000000..7423b5a0fa --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据单据号码查询码单据详情和码信息 API请求 +alibaba.alihealth.drug.kyt.query.code.relation.from.billcode + +根据单据号码查询码单据详情和码信息 +*/ +type AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIRequest struct { + model.Params + // 单据号码 + _billCode string + // 企业refEntId + _refEntId string +} + +// 初始化AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIRequest对象 +func NewAlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeRequest() *AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIRequest{ + return &AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.query.code.relation.from.billcode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据号码 +func (r *AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIRequest) GetBillCode() string { + return r._billCode +} +// RefEntId Setter +// 企业refEntId +func (r *AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIRequest) GetRefEntId() string { + return r._refEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIResponse.go new file mode 100644 index 0000000000..76d11320bc --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据单据号码查询码单据详情和码信息 API返回值 +alibaba.alihealth.drug.kyt.query.code.relation.from.billcode + +根据单据号码查询码单据详情和码信息 +*/ +type AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIResponseModel +} + +// 根据单据号码查询码单据详情和码信息 成功返回结果 +type AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_query_code_relation_from_billcode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeResponse.go deleted file mode 100644 index 9169a9ed74..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据单据号码查询码单据详情和码信息 API返回值 -alibaba.alihealth.drug.kyt.query.code.relation.from.billcode - -根据单据号码查询码单据详情和码信息 -*/ -type AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeResponse -} - -// 根据单据号码查询码单据详情和码信息 成功返回结果 -type AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_query_code_relation_from_billcode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytQueryCodeRelationFromBillcodeResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIRequest.go new file mode 100644 index 0000000000..71ba39624f --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据单据编号查询单据明细 API请求 +alibaba.alihealth.drug.kyt.query.druginfo.from.billcode + +根据单据编号查询单据明细 +*/ +type AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIRequest struct { + model.Params + // 单据号 + _billCode string + // 企业id + _refEntId string +} + +// 初始化AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIRequest对象 +func NewAlibabaAlihealthDrugKytQueryDruginfoFromBillcodeRequest() *AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIRequest{ + return &AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.query.druginfo.from.billcode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据号 +func (r *AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIRequest) GetBillCode() string { + return r._billCode +} +// RefEntId Setter +// 企业id +func (r *AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIRequest) GetRefEntId() string { + return r._refEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIResponse.go new file mode 100644 index 0000000000..b05544e281 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据单据编号查询单据明细 API返回值 +alibaba.alihealth.drug.kyt.query.druginfo.from.billcode + +根据单据编号查询单据明细 +*/ +type AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIResponseModel +} + +// 根据单据编号查询单据明细 成功返回结果 +type AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_query_druginfo_from_billcode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeResponse.go deleted file mode 100644 index 2c535f7fc5..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据单据编号查询单据明细 API返回值 -alibaba.alihealth.drug.kyt.query.druginfo.from.billcode - -根据单据编号查询单据明细 -*/ -type AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeResponse -} - -// 根据单据编号查询单据明细 成功返回结果 -type AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_query_druginfo_from_billcode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytQueryDruginfoFromBillcodeResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytQueryactivetimeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytQueryactivetimeAPIRequest.go new file mode 100644 index 0000000000..d70d697fb4 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytQueryactivetimeAPIRequest.go @@ -0,0 +1,109 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +药品激活状态同步 API请求 +alibaba.alihealth.drug.kyt.queryactivetime + +根据赋码资源(CodeVersion + resCode)获得最新激活时间 +应用于各地市对接前进行药品目录匹配,医保中心存在的药品可能比较陈旧杂乱 +*/ +type AlibabaAlihealthDrugKytQueryactivetimeAPIRequest struct { + model.Params + // 社保局(所属地市名称) + _bureauName string + // 请求终端名称 + _terminalName string + // 终端类型:1005100-零售,1005200-医疗 + _terminalType string + // 调用方式:formal-正式、test-测试 + _invocation string + // 码段的数组 + _resProdCodeList []string +} + +// 初始化AlibabaAlihealthDrugKytQueryactivetimeAPIRequest对象 +func NewAlibabaAlihealthDrugKytQueryactivetimeRequest() *AlibabaAlihealthDrugKytQueryactivetimeAPIRequest{ + return &AlibabaAlihealthDrugKytQueryactivetimeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytQueryactivetimeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.queryactivetime" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytQueryactivetimeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BureauName Setter +// 社保局(所属地市名称) +func (r *AlibabaAlihealthDrugKytQueryactivetimeAPIRequest) SetBureauName(_bureauName string) error { + r._bureauName = _bureauName + r.Set("bureau_name", _bureauName) + return nil +} + +// BureauName Getter +func (r AlibabaAlihealthDrugKytQueryactivetimeAPIRequest) GetBureauName() string { + return r._bureauName +} +// TerminalName Setter +// 请求终端名称 +func (r *AlibabaAlihealthDrugKytQueryactivetimeAPIRequest) SetTerminalName(_terminalName string) error { + r._terminalName = _terminalName + r.Set("terminal_name", _terminalName) + return nil +} + +// TerminalName Getter +func (r AlibabaAlihealthDrugKytQueryactivetimeAPIRequest) GetTerminalName() string { + return r._terminalName +} +// TerminalType Setter +// 终端类型:1005100-零售,1005200-医疗 +func (r *AlibabaAlihealthDrugKytQueryactivetimeAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r AlibabaAlihealthDrugKytQueryactivetimeAPIRequest) GetTerminalType() string { + return r._terminalType +} +// Invocation Setter +// 调用方式:formal-正式、test-测试 +func (r *AlibabaAlihealthDrugKytQueryactivetimeAPIRequest) SetInvocation(_invocation string) error { + r._invocation = _invocation + r.Set("invocation", _invocation) + return nil +} + +// Invocation Getter +func (r AlibabaAlihealthDrugKytQueryactivetimeAPIRequest) GetInvocation() string { + return r._invocation +} +// ResProdCodeList Setter +// 码段的数组 +func (r *AlibabaAlihealthDrugKytQueryactivetimeAPIRequest) SetResProdCodeList(_resProdCodeList []string) error { + r._resProdCodeList = _resProdCodeList + r.Set("res_prod_code_list", _resProdCodeList) + return nil +} + +// ResProdCodeList Getter +func (r AlibabaAlihealthDrugKytQueryactivetimeAPIRequest) GetResProdCodeList() []string { + return r._resProdCodeList +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytQueryactivetimeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytQueryactivetimeAPIResponse.go new file mode 100644 index 0000000000..fd261a98cd --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytQueryactivetimeAPIResponse.go @@ -0,0 +1,28 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +药品激活状态同步 API返回值 +alibaba.alihealth.drug.kyt.queryactivetime + +根据赋码资源(CodeVersion + resCode)获得最新激活时间 +应用于各地市对接前进行药品目录匹配,医保中心存在的药品可能比较陈旧杂乱 +*/ +type AlibabaAlihealthDrugKytQueryactivetimeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytQueryactivetimeAPIResponseModel +} + +// 药品激活状态同步 成功返回结果 +type AlibabaAlihealthDrugKytQueryactivetimeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_queryactivetime_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugKytQueryactivetimeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytQueryactivetimeResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytQueryactivetimeResponse.go deleted file mode 100644 index 57f7e97196..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytQueryactivetimeResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -药品激活状态同步 API返回值 -alibaba.alihealth.drug.kyt.queryactivetime - -根据赋码资源(CodeVersion + resCode)获得最新激活时间 -应用于各地市对接前进行药品目录匹配,医保中心存在的药品可能比较陈旧杂乱 -*/ -type AlibabaAlihealthDrugKytQueryactivetimeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytQueryactivetimeResponse -} - -// 药品激活状态同步 成功返回结果 -type AlibabaAlihealthDrugKytQueryactivetimeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_queryactivetime_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugKytQueryactivetimeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytQuerybatchprodAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytQuerybatchprodAPIRequest.go new file mode 100644 index 0000000000..3f82ed0299 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytQuerybatchprodAPIRequest.go @@ -0,0 +1,122 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批次产品查询(根据企业名和批次号查询产品信息) API请求 +alibaba.alihealth.drug.kyt.querybatchprod + +根据企业名和批次号查询药品信息,支持使用更名之前的老企业名查询,支持批次号大小写模糊,应用于药店或医院入库环节,通过在入库环节获取赋码的产品目录,可强制要求对相应的产品必须进行扫码入库; +*/ +type AlibabaAlihealthDrugKytQuerybatchprodAPIRequest struct { + model.Params + // 生产企业名称;支持新老企业名称匹配 + _productEntName string + // 生产批号;支持大小写模糊匹配 + _productBatchNo string + // 社保局(所属地市名称) + _bureauName string + // 请求终端名称 + _terminalName string + // 终端类型:1005100-零售,1005200-医疗 + _terminalType string + // 调用方式:formal-正式、test-测试 + _invocation string +} + +// 初始化AlibabaAlihealthDrugKytQuerybatchprodAPIRequest对象 +func NewAlibabaAlihealthDrugKytQuerybatchprodRequest() *AlibabaAlihealthDrugKytQuerybatchprodAPIRequest{ + return &AlibabaAlihealthDrugKytQuerybatchprodAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytQuerybatchprodAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.querybatchprod" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytQuerybatchprodAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductEntName Setter +// 生产企业名称;支持新老企业名称匹配 +func (r *AlibabaAlihealthDrugKytQuerybatchprodAPIRequest) SetProductEntName(_productEntName string) error { + r._productEntName = _productEntName + r.Set("product_ent_name", _productEntName) + return nil +} + +// ProductEntName Getter +func (r AlibabaAlihealthDrugKytQuerybatchprodAPIRequest) GetProductEntName() string { + return r._productEntName +} +// ProductBatchNo Setter +// 生产批号;支持大小写模糊匹配 +func (r *AlibabaAlihealthDrugKytQuerybatchprodAPIRequest) SetProductBatchNo(_productBatchNo string) error { + r._productBatchNo = _productBatchNo + r.Set("product_batch_no", _productBatchNo) + return nil +} + +// ProductBatchNo Getter +func (r AlibabaAlihealthDrugKytQuerybatchprodAPIRequest) GetProductBatchNo() string { + return r._productBatchNo +} +// BureauName Setter +// 社保局(所属地市名称) +func (r *AlibabaAlihealthDrugKytQuerybatchprodAPIRequest) SetBureauName(_bureauName string) error { + r._bureauName = _bureauName + r.Set("bureau_name", _bureauName) + return nil +} + +// BureauName Getter +func (r AlibabaAlihealthDrugKytQuerybatchprodAPIRequest) GetBureauName() string { + return r._bureauName +} +// TerminalName Setter +// 请求终端名称 +func (r *AlibabaAlihealthDrugKytQuerybatchprodAPIRequest) SetTerminalName(_terminalName string) error { + r._terminalName = _terminalName + r.Set("terminal_name", _terminalName) + return nil +} + +// TerminalName Getter +func (r AlibabaAlihealthDrugKytQuerybatchprodAPIRequest) GetTerminalName() string { + return r._terminalName +} +// TerminalType Setter +// 终端类型:1005100-零售,1005200-医疗 +func (r *AlibabaAlihealthDrugKytQuerybatchprodAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r AlibabaAlihealthDrugKytQuerybatchprodAPIRequest) GetTerminalType() string { + return r._terminalType +} +// Invocation Setter +// 调用方式:formal-正式、test-测试 +func (r *AlibabaAlihealthDrugKytQuerybatchprodAPIRequest) SetInvocation(_invocation string) error { + r._invocation = _invocation + r.Set("invocation", _invocation) + return nil +} + +// Invocation Getter +func (r AlibabaAlihealthDrugKytQuerybatchprodAPIRequest) GetInvocation() string { + return r._invocation +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytQuerybatchprodAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytQuerybatchprodAPIResponse.go new file mode 100644 index 0000000000..2ac2599618 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytQuerybatchprodAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批次产品查询(根据企业名和批次号查询产品信息) API返回值 +alibaba.alihealth.drug.kyt.querybatchprod + +根据企业名和批次号查询药品信息,支持使用更名之前的老企业名查询,支持批次号大小写模糊,应用于药店或医院入库环节,通过在入库环节获取赋码的产品目录,可强制要求对相应的产品必须进行扫码入库; +*/ +type AlibabaAlihealthDrugKytQuerybatchprodAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytQuerybatchprodAPIResponseModel +} + +// 批次产品查询(根据企业名和批次号查询产品信息) 成功返回结果 +type AlibabaAlihealthDrugKytQuerybatchprodAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_querybatchprod_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回结果 + Result *AlibabaAlihealthDrugKytQuerybatchprodResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytQuerybatchprodResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytQuerybatchprodResponse.go deleted file mode 100644 index 0dceccf00d..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytQuerybatchprodResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批次产品查询(根据企业名和批次号查询产品信息) API返回值 -alibaba.alihealth.drug.kyt.querybatchprod - -根据企业名和批次号查询药品信息,支持使用更名之前的老企业名查询,支持批次号大小写模糊,应用于药店或医院入库环节,通过在入库环节获取赋码的产品目录,可强制要求对相应的产品必须进行扫码入库; -*/ -type AlibabaAlihealthDrugKytQuerybatchprodAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytQuerybatchprodResponse -} - -// 批次产品查询(根据企业名和批次号查询产品信息) 成功返回结果 -type AlibabaAlihealthDrugKytQuerybatchprodResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_querybatchprod_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回结果 - Result *AlibabaAlihealthDrugKytQuerybatchprodResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytQuerycodeactiveAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytQuerycodeactiveAPIRequest.go new file mode 100644 index 0000000000..01408f1553 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytQuerycodeactiveAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询码是否激活 API请求 +alibaba.alihealth.drug.kyt.querycodeactive + +查询码是否激活 +*/ +type AlibabaAlihealthDrugKytQuerycodeactiveAPIRequest struct { + model.Params + // 企业 + _refEntId string + // 码 + _codes []string +} + +// 初始化AlibabaAlihealthDrugKytQuerycodeactiveAPIRequest对象 +func NewAlibabaAlihealthDrugKytQuerycodeactiveRequest() *AlibabaAlihealthDrugKytQuerycodeactiveAPIRequest{ + return &AlibabaAlihealthDrugKytQuerycodeactiveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytQuerycodeactiveAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.querycodeactive" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytQuerycodeactiveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业 +func (r *AlibabaAlihealthDrugKytQuerycodeactiveAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytQuerycodeactiveAPIRequest) GetRefEntId() string { + return r._refEntId +} +// Codes Setter +// 码 +func (r *AlibabaAlihealthDrugKytQuerycodeactiveAPIRequest) SetCodes(_codes []string) error { + r._codes = _codes + r.Set("codes", _codes) + return nil +} + +// Codes Getter +func (r AlibabaAlihealthDrugKytQuerycodeactiveAPIRequest) GetCodes() []string { + return r._codes +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytQuerycodeactiveAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytQuerycodeactiveAPIResponse.go new file mode 100644 index 0000000000..e363c335ea --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytQuerycodeactiveAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询码是否激活 API返回值 +alibaba.alihealth.drug.kyt.querycodeactive + +查询码是否激活 +*/ +type AlibabaAlihealthDrugKytQuerycodeactiveAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytQuerycodeactiveAPIResponseModel +} + +// 查询码是否激活 成功返回结果 +type AlibabaAlihealthDrugKytQuerycodeactiveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_querycodeactive_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 未激活的码 + Models []string `json:"models,omitempty" xml:"models>string,omitempty"` + // 错误码(BILL_DECODE_ERROR 单据转码失败 2.BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 错误信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 是否成功(true 成功 ,false失败) + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytQuerycodeactiveResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytQuerycodeactiveResponse.go deleted file mode 100644 index a1a7a154d6..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytQuerycodeactiveResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询码是否激活 API返回值 -alibaba.alihealth.drug.kyt.querycodeactive - -查询码是否激活 -*/ -type AlibabaAlihealthDrugKytQuerycodeactiveAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytQuerycodeactiveResponse -} - -// 查询码是否激活 成功返回结果 -type AlibabaAlihealthDrugKytQuerycodeactiveResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_querycodeactive_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 未激活的码 - Models []string `json:"models,omitempty" xml:"models>string,omitempty"` - // 错误码(BILL_DECODE_ERROR 单据转码失败 2.BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 错误信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 是否成功(true 成功 ,false失败) - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytQuerydruginfoAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytQuerydruginfoAPIRequest.go new file mode 100644 index 0000000000..44812df9dc --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytQuerydruginfoAPIRequest.go @@ -0,0 +1,80 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +码查询药品 API请求 +alibaba.alihealth.drug.kyt.querydruginfo + +通过追溯码查询药品信息 +*/ +type AlibabaAlihealthDrugKytQuerydruginfoAPIRequest struct { + model.Params + // 码列表 + _codeList []string + // 物流企业refentid + _wuliuRefEntId string + // 生产企业refentid + _huozhuRefEntId string +} + +// 初始化AlibabaAlihealthDrugKytQuerydruginfoAPIRequest对象 +func NewAlibabaAlihealthDrugKytQuerydruginfoRequest() *AlibabaAlihealthDrugKytQuerydruginfoAPIRequest{ + return &AlibabaAlihealthDrugKytQuerydruginfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytQuerydruginfoAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.querydruginfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytQuerydruginfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CodeList Setter +// 码列表 +func (r *AlibabaAlihealthDrugKytQuerydruginfoAPIRequest) SetCodeList(_codeList []string) error { + r._codeList = _codeList + r.Set("code_list", _codeList) + return nil +} + +// CodeList Getter +func (r AlibabaAlihealthDrugKytQuerydruginfoAPIRequest) GetCodeList() []string { + return r._codeList +} +// WuliuRefEntId Setter +// 物流企业refentid +func (r *AlibabaAlihealthDrugKytQuerydruginfoAPIRequest) SetWuliuRefEntId(_wuliuRefEntId string) error { + r._wuliuRefEntId = _wuliuRefEntId + r.Set("wuliu_ref_ent_id", _wuliuRefEntId) + return nil +} + +// WuliuRefEntId Getter +func (r AlibabaAlihealthDrugKytQuerydruginfoAPIRequest) GetWuliuRefEntId() string { + return r._wuliuRefEntId +} +// HuozhuRefEntId Setter +// 生产企业refentid +func (r *AlibabaAlihealthDrugKytQuerydruginfoAPIRequest) SetHuozhuRefEntId(_huozhuRefEntId string) error { + r._huozhuRefEntId = _huozhuRefEntId + r.Set("huozhu_ref_ent_id", _huozhuRefEntId) + return nil +} + +// HuozhuRefEntId Getter +func (r AlibabaAlihealthDrugKytQuerydruginfoAPIRequest) GetHuozhuRefEntId() string { + return r._huozhuRefEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytQuerydruginfoAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytQuerydruginfoAPIResponse.go new file mode 100644 index 0000000000..2a12015a9b --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytQuerydruginfoAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +码查询药品 API返回值 +alibaba.alihealth.drug.kyt.querydruginfo + +通过追溯码查询药品信息 +*/ +type AlibabaAlihealthDrugKytQuerydruginfoAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytQuerydruginfoAPIResponseModel +} + +// 码查询药品 成功返回结果 +type AlibabaAlihealthDrugKytQuerydruginfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_querydruginfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaAlihealthDrugKytQuerydruginfoResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytQuerydruginfoResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytQuerydruginfoResponse.go deleted file mode 100644 index 3c6ff764ea..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytQuerydruginfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -码查询药品 API返回值 -alibaba.alihealth.drug.kyt.querydruginfo - -通过追溯码查询药品信息 -*/ -type AlibabaAlihealthDrugKytQuerydruginfoAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytQuerydruginfoResponse -} - -// 码查询药品 成功返回结果 -type AlibabaAlihealthDrugKytQuerydruginfoResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_querydruginfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaAlihealthDrugKytQuerydruginfoResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytRecordinfoAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytRecordinfoAPIRequest.go new file mode 100644 index 0000000000..61faaf75cc --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytRecordinfoAPIRequest.go @@ -0,0 +1,108 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +快易通健康检查 API请求 +alibaba.alihealth.drug.kyt.recordinfo + +快易通健康检查 +*/ +type AlibabaAlihealthDrugKytRecordinfoAPIRequest struct { + model.Params + // 服务名 + _serviceName string + // 类型 + _serviceType string + // 输入参数 + _inputParam string + // 其他参数 + _otherParam string + // 级别 + _logLevel string +} + +// 初始化AlibabaAlihealthDrugKytRecordinfoAPIRequest对象 +func NewAlibabaAlihealthDrugKytRecordinfoRequest() *AlibabaAlihealthDrugKytRecordinfoAPIRequest{ + return &AlibabaAlihealthDrugKytRecordinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytRecordinfoAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.recordinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytRecordinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceName Setter +// 服务名 +func (r *AlibabaAlihealthDrugKytRecordinfoAPIRequest) SetServiceName(_serviceName string) error { + r._serviceName = _serviceName + r.Set("service_name", _serviceName) + return nil +} + +// ServiceName Getter +func (r AlibabaAlihealthDrugKytRecordinfoAPIRequest) GetServiceName() string { + return r._serviceName +} +// ServiceType Setter +// 类型 +func (r *AlibabaAlihealthDrugKytRecordinfoAPIRequest) SetServiceType(_serviceType string) error { + r._serviceType = _serviceType + r.Set("service_type", _serviceType) + return nil +} + +// ServiceType Getter +func (r AlibabaAlihealthDrugKytRecordinfoAPIRequest) GetServiceType() string { + return r._serviceType +} +// InputParam Setter +// 输入参数 +func (r *AlibabaAlihealthDrugKytRecordinfoAPIRequest) SetInputParam(_inputParam string) error { + r._inputParam = _inputParam + r.Set("input_param", _inputParam) + return nil +} + +// InputParam Getter +func (r AlibabaAlihealthDrugKytRecordinfoAPIRequest) GetInputParam() string { + return r._inputParam +} +// OtherParam Setter +// 其他参数 +func (r *AlibabaAlihealthDrugKytRecordinfoAPIRequest) SetOtherParam(_otherParam string) error { + r._otherParam = _otherParam + r.Set("other_param", _otherParam) + return nil +} + +// OtherParam Getter +func (r AlibabaAlihealthDrugKytRecordinfoAPIRequest) GetOtherParam() string { + return r._otherParam +} +// LogLevel Setter +// 级别 +func (r *AlibabaAlihealthDrugKytRecordinfoAPIRequest) SetLogLevel(_logLevel string) error { + r._logLevel = _logLevel + r.Set("log_level", _logLevel) + return nil +} + +// LogLevel Getter +func (r AlibabaAlihealthDrugKytRecordinfoAPIRequest) GetLogLevel() string { + return r._logLevel +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytRecordinfoAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytRecordinfoAPIResponse.go new file mode 100644 index 0000000000..112240f0b9 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytRecordinfoAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +快易通健康检查 API返回值 +alibaba.alihealth.drug.kyt.recordinfo + +快易通健康检查 +*/ +type AlibabaAlihealthDrugKytRecordinfoAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytRecordinfoAPIResponseModel +} + +// 快易通健康检查 成功返回结果 +type AlibabaAlihealthDrugKytRecordinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_recordinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 对象 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 返回码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 返回值 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 是否响应成功 + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytRecordinfoResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytRecordinfoResponse.go deleted file mode 100644 index bb7d2d41e0..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytRecordinfoResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -快易通健康检查 API返回值 -alibaba.alihealth.drug.kyt.recordinfo - -快易通健康检查 -*/ -type AlibabaAlihealthDrugKytRecordinfoAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytRecordinfoResponse -} - -// 快易通健康检查 成功返回结果 -type AlibabaAlihealthDrugKytRecordinfoResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_recordinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 对象 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 返回码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 返回值 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 是否响应成功 - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytRelationdetailAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytRelationdetailAPIRequest.go new file mode 100644 index 0000000000..c1896886c9 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytRelationdetailAPIRequest.go @@ -0,0 +1,80 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +关联关系处理详情 API请求 +alibaba.alihealth.drug.kyt.relationdetail + +关联关系处理详情 +*/ +type AlibabaAlihealthDrugKytRelationdetailAPIRequest struct { + model.Params + // 码激活文件上传信息标识 + _codeActiveInfoId string + // 企业ID + _refEntId string + // 客户端ID【默认写2】 + _clientType string +} + +// 初始化AlibabaAlihealthDrugKytRelationdetailAPIRequest对象 +func NewAlibabaAlihealthDrugKytRelationdetailRequest() *AlibabaAlihealthDrugKytRelationdetailAPIRequest{ + return &AlibabaAlihealthDrugKytRelationdetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytRelationdetailAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.relationdetail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytRelationdetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CodeActiveInfoId Setter +// 码激活文件上传信息标识 +func (r *AlibabaAlihealthDrugKytRelationdetailAPIRequest) SetCodeActiveInfoId(_codeActiveInfoId string) error { + r._codeActiveInfoId = _codeActiveInfoId + r.Set("code_active_info_id", _codeActiveInfoId) + return nil +} + +// CodeActiveInfoId Getter +func (r AlibabaAlihealthDrugKytRelationdetailAPIRequest) GetCodeActiveInfoId() string { + return r._codeActiveInfoId +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytRelationdetailAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytRelationdetailAPIRequest) GetRefEntId() string { + return r._refEntId +} +// ClientType Setter +// 客户端ID【默认写2】 +func (r *AlibabaAlihealthDrugKytRelationdetailAPIRequest) SetClientType(_clientType string) error { + r._clientType = _clientType + r.Set("client_type", _clientType) + return nil +} + +// ClientType Getter +func (r AlibabaAlihealthDrugKytRelationdetailAPIRequest) GetClientType() string { + return r._clientType +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytRelationdetailAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytRelationdetailAPIResponse.go new file mode 100644 index 0000000000..9151866f59 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytRelationdetailAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +关联关系处理详情 API返回值 +alibaba.alihealth.drug.kyt.relationdetail + +关联关系处理详情 +*/ +type AlibabaAlihealthDrugKytRelationdetailAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytRelationdetailAPIResponseModel +} + +// 关联关系处理详情 成功返回结果 +type AlibabaAlihealthDrugKytRelationdetailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_relationdetail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugKytRelationdetailResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytRelationdetailResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytRelationdetailResponse.go deleted file mode 100644 index 09769cfe70..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytRelationdetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -关联关系处理详情 API返回值 -alibaba.alihealth.drug.kyt.relationdetail - -关联关系处理详情 -*/ -type AlibabaAlihealthDrugKytRelationdetailAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytRelationdetailResponse -} - -// 关联关系处理详情 成功返回结果 -type AlibabaAlihealthDrugKytRelationdetailResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_relationdetail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugKytRelationdetailResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest.go new file mode 100644 index 0000000000..2c6a250a59 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest.go @@ -0,0 +1,220 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零头出入库单据上传 API请求 +alibaba.alihealth.drug.kyt.remnantbill.upload + +零头出入库单据上传 +*/ +type AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 零头入库:106;零头出库:210 + _billType string + // 单据编号 + _billCode string + // 单据时间:yyyy-MM-dd HH:mm:ss + _billTime string + // 发货企业ID + _fromRefUserId string + // 收货企业ID + _toRefUserId string + // 委托企业ID + _assRefEntId string + // 配送企业ID + _disRefEntId string + // 药品ID + _drugEntBaseInfoId string + // 生产日期:yyyy-MM-dd + _produceDate string + // 有效期:yyyyMMdd + _expireDate string + // 生产批次 + _produceBatchNo string + // 药品数量 + _inputAmount string +} + +// 初始化AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest对象 +func NewAlibabaAlihealthDrugKytRemnantbillUploadRequest() *AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest{ + return &AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.remnantbill.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) GetRefEntId() string { + return r._refEntId +} +// BillType Setter +// 零头入库:106;零头出库:210 +func (r *AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) SetBillType(_billType string) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) GetBillType() string { + return r._billType +} +// BillCode Setter +// 单据编号 +func (r *AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) GetBillCode() string { + return r._billCode +} +// BillTime Setter +// 单据时间:yyyy-MM-dd HH:mm:ss +func (r *AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) SetBillTime(_billTime string) error { + r._billTime = _billTime + r.Set("bill_time", _billTime) + return nil +} + +// BillTime Getter +func (r AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) GetBillTime() string { + return r._billTime +} +// FromRefUserId Setter +// 发货企业ID +func (r *AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) SetFromRefUserId(_fromRefUserId string) error { + r._fromRefUserId = _fromRefUserId + r.Set("from_ref_user_id", _fromRefUserId) + return nil +} + +// FromRefUserId Getter +func (r AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) GetFromRefUserId() string { + return r._fromRefUserId +} +// ToRefUserId Setter +// 收货企业ID +func (r *AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) SetToRefUserId(_toRefUserId string) error { + r._toRefUserId = _toRefUserId + r.Set("to_ref_user_id", _toRefUserId) + return nil +} + +// ToRefUserId Getter +func (r AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) GetToRefUserId() string { + return r._toRefUserId +} +// AssRefEntId Setter +// 委托企业ID +func (r *AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) SetAssRefEntId(_assRefEntId string) error { + r._assRefEntId = _assRefEntId + r.Set("ass_ref_ent_id", _assRefEntId) + return nil +} + +// AssRefEntId Getter +func (r AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) GetAssRefEntId() string { + return r._assRefEntId +} +// DisRefEntId Setter +// 配送企业ID +func (r *AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) SetDisRefEntId(_disRefEntId string) error { + r._disRefEntId = _disRefEntId + r.Set("dis_ref_ent_id", _disRefEntId) + return nil +} + +// DisRefEntId Getter +func (r AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) GetDisRefEntId() string { + return r._disRefEntId +} +// DrugEntBaseInfoId Setter +// 药品ID +func (r *AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) SetDrugEntBaseInfoId(_drugEntBaseInfoId string) error { + r._drugEntBaseInfoId = _drugEntBaseInfoId + r.Set("drug_ent_base_info_id", _drugEntBaseInfoId) + return nil +} + +// DrugEntBaseInfoId Getter +func (r AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) GetDrugEntBaseInfoId() string { + return r._drugEntBaseInfoId +} +// ProduceDate Setter +// 生产日期:yyyy-MM-dd +func (r *AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) SetProduceDate(_produceDate string) error { + r._produceDate = _produceDate + r.Set("produce_date", _produceDate) + return nil +} + +// ProduceDate Getter +func (r AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) GetProduceDate() string { + return r._produceDate +} +// ExpireDate Setter +// 有效期:yyyyMMdd +func (r *AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) SetExpireDate(_expireDate string) error { + r._expireDate = _expireDate + r.Set("expire_date", _expireDate) + return nil +} + +// ExpireDate Getter +func (r AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) GetExpireDate() string { + return r._expireDate +} +// ProduceBatchNo Setter +// 生产批次 +func (r *AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) SetProduceBatchNo(_produceBatchNo string) error { + r._produceBatchNo = _produceBatchNo + r.Set("produce_batch_no", _produceBatchNo) + return nil +} + +// ProduceBatchNo Getter +func (r AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) GetProduceBatchNo() string { + return r._produceBatchNo +} +// InputAmount Setter +// 药品数量 +func (r *AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) SetInputAmount(_inputAmount string) error { + r._inputAmount = _inputAmount + r.Set("input_amount", _inputAmount) + return nil +} + +// InputAmount Getter +func (r AlibabaAlihealthDrugKytRemnantbillUploadAPIRequest) GetInputAmount() string { + return r._inputAmount +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytRemnantbillUploadAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytRemnantbillUploadAPIResponse.go new file mode 100644 index 0000000000..1c21e8deea --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytRemnantbillUploadAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零头出入库单据上传 API返回值 +alibaba.alihealth.drug.kyt.remnantbill.upload + +零头出入库单据上传 +*/ +type AlibabaAlihealthDrugKytRemnantbillUploadAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytRemnantbillUploadAPIResponseModel +} + +// 零头出入库单据上传 成功返回结果 +type AlibabaAlihealthDrugKytRemnantbillUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_remnantbill_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + ResponseStatus bool `json:"response_status,omitempty" xml:"response_status,omitempty"` + // model + Model string `json:"model,omitempty" xml:"model,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytRemnantbillUploadResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytRemnantbillUploadResponse.go deleted file mode 100644 index 6e9b90963c..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytRemnantbillUploadResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零头出入库单据上传 API返回值 -alibaba.alihealth.drug.kyt.remnantbill.upload - -零头出入库单据上传 -*/ -type AlibabaAlihealthDrugKytRemnantbillUploadAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytRemnantbillUploadResponse -} - -// 零头出入库单据上传 成功返回结果 -type AlibabaAlihealthDrugKytRemnantbillUploadResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_remnantbill_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - ResponseStatus bool `json:"response_status,omitempty" xml:"response_status,omitempty"` - // model - Model string `json:"model,omitempty" xml:"model,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSaveentAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytSaveentAPIRequest.go new file mode 100644 index 0000000000..728429b80a --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytSaveentAPIRequest.go @@ -0,0 +1,80 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增往来单位企业 API请求 +alibaba.alihealth.drug.kyt.saveent + +新增往来单位企业记录 +*/ +type AlibabaAlihealthDrugKytSaveentAPIRequest struct { + model.Params + // 添加企业唯一标识 + _refEntId string + // 新增企业信息 + _addEntReq *AddEntReqDto + // 图片数据流。图片大小务必控制在2M以内 + _licPictureByte *model.File +} + +// 初始化AlibabaAlihealthDrugKytSaveentAPIRequest对象 +func NewAlibabaAlihealthDrugKytSaveentRequest() *AlibabaAlihealthDrugKytSaveentAPIRequest{ + return &AlibabaAlihealthDrugKytSaveentAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytSaveentAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.saveent" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytSaveentAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 添加企业唯一标识 +func (r *AlibabaAlihealthDrugKytSaveentAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytSaveentAPIRequest) GetRefEntId() string { + return r._refEntId +} +// AddEntReq Setter +// 新增企业信息 +func (r *AlibabaAlihealthDrugKytSaveentAPIRequest) SetAddEntReq(_addEntReq *AddEntReqDto) error { + r._addEntReq = _addEntReq + r.Set("add_ent_req", _addEntReq) + return nil +} + +// AddEntReq Getter +func (r AlibabaAlihealthDrugKytSaveentAPIRequest) GetAddEntReq() *AddEntReqDto { + return r._addEntReq +} +// LicPictureByte Setter +// 图片数据流。图片大小务必控制在2M以内 +func (r *AlibabaAlihealthDrugKytSaveentAPIRequest) SetLicPictureByte(_licPictureByte *model.File) error { + r._licPictureByte = _licPictureByte + r.Set("lic_picture_byte", _licPictureByte) + return nil +} + +// LicPictureByte Getter +func (r AlibabaAlihealthDrugKytSaveentAPIRequest) GetLicPictureByte() *model.File { + return r._licPictureByte +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSaveentAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytSaveentAPIResponse.go new file mode 100644 index 0000000000..c672d6b367 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytSaveentAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增往来单位企业 API返回值 +alibaba.alihealth.drug.kyt.saveent + +新增往来单位企业记录 +*/ +type AlibabaAlihealthDrugKytSaveentAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytSaveentAPIResponseModel +} + +// 新增往来单位企业 成功返回结果 +type AlibabaAlihealthDrugKytSaveentAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_saveent_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 往来单位新增接口返回 + Result *AlibabaAlihealthDrugKytSaveentResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSaveentResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytSaveentResponse.go deleted file mode 100644 index 5a5ac1ba1a..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytSaveentResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增往来单位企业 API返回值 -alibaba.alihealth.drug.kyt.saveent - -新增往来单位企业记录 -*/ -type AlibabaAlihealthDrugKytSaveentAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytSaveentResponse -} - -// 新增往来单位企业 成功返回结果 -type AlibabaAlihealthDrugKytSaveentResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_saveent_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 往来单位新增接口返回 - Result *AlibabaAlihealthDrugKytSaveentResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSearchbillAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytSearchbillAPIRequest.go new file mode 100644 index 0000000000..daea33bf4e --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytSearchbillAPIRequest.go @@ -0,0 +1,192 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过时间段批量查询入出库单信息 API请求 +alibaba.alihealth.drug.kyt.searchbill + +通过时间段批量查询入出库单信息 +*/ +type AlibabaAlihealthDrugKytSearchbillAPIRequest struct { + model.Params + // 企业标识 + _refEntId string + // 货主 + _authRefUserId string + // 开始日期 + _beginDate string + // 结束日期 + _endDate string + // 发货企业 + _partnerIdSend string + // 收货企业 + _partnerIdRecv string + // 代理企业 + _agentRefUserId string + // 当前页 + _curPage int64 + // 页大小 + _pageSize int64 + // 单据号码 + _billCode string + // 单据类型 A : 所有 AI :入库 AO:出库 + _billType string +} + +// 初始化AlibabaAlihealthDrugKytSearchbillAPIRequest对象 +func NewAlibabaAlihealthDrugKytSearchbillRequest() *AlibabaAlihealthDrugKytSearchbillAPIRequest{ + return &AlibabaAlihealthDrugKytSearchbillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytSearchbillAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.searchbill" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytSearchbillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业标识 +func (r *AlibabaAlihealthDrugKytSearchbillAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytSearchbillAPIRequest) GetRefEntId() string { + return r._refEntId +} +// AuthRefUserId Setter +// 货主 +func (r *AlibabaAlihealthDrugKytSearchbillAPIRequest) SetAuthRefUserId(_authRefUserId string) error { + r._authRefUserId = _authRefUserId + r.Set("auth_ref_user_id", _authRefUserId) + return nil +} + +// AuthRefUserId Getter +func (r AlibabaAlihealthDrugKytSearchbillAPIRequest) GetAuthRefUserId() string { + return r._authRefUserId +} +// BeginDate Setter +// 开始日期 +func (r *AlibabaAlihealthDrugKytSearchbillAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaAlihealthDrugKytSearchbillAPIRequest) GetBeginDate() string { + return r._beginDate +} +// EndDate Setter +// 结束日期 +func (r *AlibabaAlihealthDrugKytSearchbillAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugKytSearchbillAPIRequest) GetEndDate() string { + return r._endDate +} +// PartnerIdSend Setter +// 发货企业 +func (r *AlibabaAlihealthDrugKytSearchbillAPIRequest) SetPartnerIdSend(_partnerIdSend string) error { + r._partnerIdSend = _partnerIdSend + r.Set("partner_id_send", _partnerIdSend) + return nil +} + +// PartnerIdSend Getter +func (r AlibabaAlihealthDrugKytSearchbillAPIRequest) GetPartnerIdSend() string { + return r._partnerIdSend +} +// PartnerIdRecv Setter +// 收货企业 +func (r *AlibabaAlihealthDrugKytSearchbillAPIRequest) SetPartnerIdRecv(_partnerIdRecv string) error { + r._partnerIdRecv = _partnerIdRecv + r.Set("partner_id_recv", _partnerIdRecv) + return nil +} + +// PartnerIdRecv Getter +func (r AlibabaAlihealthDrugKytSearchbillAPIRequest) GetPartnerIdRecv() string { + return r._partnerIdRecv +} +// AgentRefUserId Setter +// 代理企业 +func (r *AlibabaAlihealthDrugKytSearchbillAPIRequest) SetAgentRefUserId(_agentRefUserId string) error { + r._agentRefUserId = _agentRefUserId + r.Set("agent_ref_user_id", _agentRefUserId) + return nil +} + +// AgentRefUserId Getter +func (r AlibabaAlihealthDrugKytSearchbillAPIRequest) GetAgentRefUserId() string { + return r._agentRefUserId +} +// CurPage Setter +// 当前页 +func (r *AlibabaAlihealthDrugKytSearchbillAPIRequest) SetCurPage(_curPage int64) error { + r._curPage = _curPage + r.Set("cur_page", _curPage) + return nil +} + +// CurPage Getter +func (r AlibabaAlihealthDrugKytSearchbillAPIRequest) GetCurPage() int64 { + return r._curPage +} +// PageSize Setter +// 页大小 +func (r *AlibabaAlihealthDrugKytSearchbillAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugKytSearchbillAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// BillCode Setter +// 单据号码 +func (r *AlibabaAlihealthDrugKytSearchbillAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytSearchbillAPIRequest) GetBillCode() string { + return r._billCode +} +// BillType Setter +// 单据类型 A : 所有 AI :入库 AO:出库 +func (r *AlibabaAlihealthDrugKytSearchbillAPIRequest) SetBillType(_billType string) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytSearchbillAPIRequest) GetBillType() string { + return r._billType +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSearchbillAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytSearchbillAPIResponse.go new file mode 100644 index 0000000000..7b6d4d0242 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytSearchbillAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过时间段批量查询入出库单信息 API返回值 +alibaba.alihealth.drug.kyt.searchbill + +通过时间段批量查询入出库单信息 +*/ +type AlibabaAlihealthDrugKytSearchbillAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytSearchbillAPIResponseModel +} + +// 通过时间段批量查询入出库单信息 成功返回结果 +type AlibabaAlihealthDrugKytSearchbillAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_searchbill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytSearchbillResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSearchbillResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytSearchbillResponse.go deleted file mode 100644 index 47653adf3d..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytSearchbillResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过时间段批量查询入出库单信息 API返回值 -alibaba.alihealth.drug.kyt.searchbill - -通过时间段批量查询入出库单信息 -*/ -type AlibabaAlihealthDrugKytSearchbillAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytSearchbillResponse -} - -// 通过时间段批量查询入出库单信息 成功返回结果 -type AlibabaAlihealthDrugKytSearchbillResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_searchbill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytSearchbillResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSearchstatusAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytSearchstatusAPIRequest.go new file mode 100644 index 0000000000..b7e1d263a8 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytSearchstatusAPIRequest.go @@ -0,0 +1,206 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单据处理状态查询 API请求 +alibaba.alihealth.drug.kyt.searchstatus + +单据处理状态查询 +*/ +type AlibabaAlihealthDrugKytSearchstatusAPIRequest struct { + model.Params + // 企业ref_ent_id(货主企业的ref_ent_id) + _refEntId string + // 开始日期(没有时分秒) + _beginDate string + // 结束日期(没有时分秒) + _endDate string + // 单据类型 A:全部 AI:全部入库 AO:全部出库 + _billType string + // 单据号(精确值,不支持模糊查询) + _billCode string + // 药品类型 + _drugType string + // 状态 0, 处理中 3, 处理成功 4, 处理失败 + _dealStatus string + // 发货商 + _fromUserId string + // 收货商 + _toUserId string + // 代理商(第三方物流企业) + _agentRefUserId string + // 页大小 + _pageSize int64 + // 页码 + _page int64 +} + +// 初始化AlibabaAlihealthDrugKytSearchstatusAPIRequest对象 +func NewAlibabaAlihealthDrugKytSearchstatusRequest() *AlibabaAlihealthDrugKytSearchstatusAPIRequest{ + return &AlibabaAlihealthDrugKytSearchstatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytSearchstatusAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.searchstatus" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytSearchstatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ref_ent_id(货主企业的ref_ent_id) +func (r *AlibabaAlihealthDrugKytSearchstatusAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytSearchstatusAPIRequest) GetRefEntId() string { + return r._refEntId +} +// BeginDate Setter +// 开始日期(没有时分秒) +func (r *AlibabaAlihealthDrugKytSearchstatusAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaAlihealthDrugKytSearchstatusAPIRequest) GetBeginDate() string { + return r._beginDate +} +// EndDate Setter +// 结束日期(没有时分秒) +func (r *AlibabaAlihealthDrugKytSearchstatusAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugKytSearchstatusAPIRequest) GetEndDate() string { + return r._endDate +} +// BillType Setter +// 单据类型 A:全部 AI:全部入库 AO:全部出库 +func (r *AlibabaAlihealthDrugKytSearchstatusAPIRequest) SetBillType(_billType string) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytSearchstatusAPIRequest) GetBillType() string { + return r._billType +} +// BillCode Setter +// 单据号(精确值,不支持模糊查询) +func (r *AlibabaAlihealthDrugKytSearchstatusAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytSearchstatusAPIRequest) GetBillCode() string { + return r._billCode +} +// DrugType Setter +// 药品类型 +func (r *AlibabaAlihealthDrugKytSearchstatusAPIRequest) SetDrugType(_drugType string) error { + r._drugType = _drugType + r.Set("drug_type", _drugType) + return nil +} + +// DrugType Getter +func (r AlibabaAlihealthDrugKytSearchstatusAPIRequest) GetDrugType() string { + return r._drugType +} +// DealStatus Setter +// 状态 0, 处理中 3, 处理成功 4, 处理失败 +func (r *AlibabaAlihealthDrugKytSearchstatusAPIRequest) SetDealStatus(_dealStatus string) error { + r._dealStatus = _dealStatus + r.Set("deal_status", _dealStatus) + return nil +} + +// DealStatus Getter +func (r AlibabaAlihealthDrugKytSearchstatusAPIRequest) GetDealStatus() string { + return r._dealStatus +} +// FromUserId Setter +// 发货商 +func (r *AlibabaAlihealthDrugKytSearchstatusAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugKytSearchstatusAPIRequest) GetFromUserId() string { + return r._fromUserId +} +// ToUserId Setter +// 收货商 +func (r *AlibabaAlihealthDrugKytSearchstatusAPIRequest) SetToUserId(_toUserId string) error { + r._toUserId = _toUserId + r.Set("to_user_id", _toUserId) + return nil +} + +// ToUserId Getter +func (r AlibabaAlihealthDrugKytSearchstatusAPIRequest) GetToUserId() string { + return r._toUserId +} +// AgentRefUserId Setter +// 代理商(第三方物流企业) +func (r *AlibabaAlihealthDrugKytSearchstatusAPIRequest) SetAgentRefUserId(_agentRefUserId string) error { + r._agentRefUserId = _agentRefUserId + r.Set("agent_ref_user_id", _agentRefUserId) + return nil +} + +// AgentRefUserId Getter +func (r AlibabaAlihealthDrugKytSearchstatusAPIRequest) GetAgentRefUserId() string { + return r._agentRefUserId +} +// PageSize Setter +// 页大小 +func (r *AlibabaAlihealthDrugKytSearchstatusAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugKytSearchstatusAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Page Setter +// 页码 +func (r *AlibabaAlihealthDrugKytSearchstatusAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugKytSearchstatusAPIRequest) GetPage() int64 { + return r._page +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSearchstatusAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytSearchstatusAPIResponse.go new file mode 100644 index 0000000000..3d545d2851 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytSearchstatusAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单据处理状态查询 API返回值 +alibaba.alihealth.drug.kyt.searchstatus + +单据处理状态查询 +*/ +type AlibabaAlihealthDrugKytSearchstatusAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytSearchstatusAPIResponseModel +} + +// 单据处理状态查询 成功返回结果 +type AlibabaAlihealthDrugKytSearchstatusAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_searchstatus_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytSearchstatusResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSearchstatusResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytSearchstatusResponse.go deleted file mode 100644 index 58991e7c8b..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytSearchstatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单据处理状态查询 API返回值 -alibaba.alihealth.drug.kyt.searchstatus - -单据处理状态查询 -*/ -type AlibabaAlihealthDrugKytSearchstatusAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytSearchstatusResponse -} - -// 单据处理状态查询 成功返回结果 -type AlibabaAlihealthDrugKytSearchstatusResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_searchstatus_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytSearchstatusResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSinglerelationAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytSinglerelationAPIRequest.go new file mode 100644 index 0000000000..900694ac46 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytSinglerelationAPIRequest.go @@ -0,0 +1,80 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单码关联关系查询,通过一个码查询这个码下的所有子码 API请求 +alibaba.alihealth.drug.kyt.singlerelation + +单码关联关系查询,通过一个码查询这个码下的所有子码。(只有做过入库的码,才能能进行查询) +*/ +type AlibabaAlihealthDrugKytSinglerelationAPIRequest struct { + model.Params + // 追溯码 + _code string + // 接口调用企业的唯一标识(接口调用者) + _refEntId string + // 目标企业唯一标识(为哪个企业查询,一般与入参ref_ent_id一样) + _desRefEntId string +} + +// 初始化AlibabaAlihealthDrugKytSinglerelationAPIRequest对象 +func NewAlibabaAlihealthDrugKytSinglerelationRequest() *AlibabaAlihealthDrugKytSinglerelationAPIRequest{ + return &AlibabaAlihealthDrugKytSinglerelationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytSinglerelationAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.singlerelation" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytSinglerelationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 追溯码 +func (r *AlibabaAlihealthDrugKytSinglerelationAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthDrugKytSinglerelationAPIRequest) GetCode() string { + return r._code +} +// RefEntId Setter +// 接口调用企业的唯一标识(接口调用者) +func (r *AlibabaAlihealthDrugKytSinglerelationAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytSinglerelationAPIRequest) GetRefEntId() string { + return r._refEntId +} +// DesRefEntId Setter +// 目标企业唯一标识(为哪个企业查询,一般与入参ref_ent_id一样) +func (r *AlibabaAlihealthDrugKytSinglerelationAPIRequest) SetDesRefEntId(_desRefEntId string) error { + r._desRefEntId = _desRefEntId + r.Set("des_ref_ent_id", _desRefEntId) + return nil +} + +// DesRefEntId Getter +func (r AlibabaAlihealthDrugKytSinglerelationAPIRequest) GetDesRefEntId() string { + return r._desRefEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSinglerelationAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytSinglerelationAPIResponse.go new file mode 100644 index 0000000000..52fbd10235 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytSinglerelationAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单码关联关系查询,通过一个码查询这个码下的所有子码 API返回值 +alibaba.alihealth.drug.kyt.singlerelation + +单码关联关系查询,通过一个码查询这个码下的所有子码。(只有做过入库的码,才能能进行查询) +*/ +type AlibabaAlihealthDrugKytSinglerelationAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytSinglerelationAPIResponseModel +} + +// 单码关联关系查询,通过一个码查询这个码下的所有子码 成功返回结果 +type AlibabaAlihealthDrugKytSinglerelationAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_singlerelation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugKytSinglerelationResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSinglerelationResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytSinglerelationResponse.go deleted file mode 100644 index 53fb864d44..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytSinglerelationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单码关联关系查询,通过一个码查询这个码下的所有子码 API返回值 -alibaba.alihealth.drug.kyt.singlerelation - -单码关联关系查询,通过一个码查询这个码下的所有子码。(只有做过入库的码,才能能进行查询) -*/ -type AlibabaAlihealthDrugKytSinglerelationAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytSinglerelationResponse -} - -// 单码关联关系查询,通过一个码查询这个码下的所有子码 成功返回结果 -type AlibabaAlihealthDrugKytSinglerelationResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_singlerelation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugKytSinglerelationResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSmyxGetentinfoAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytSmyxGetentinfoAPIRequest.go new file mode 100644 index 0000000000..e445e5dd08 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytSmyxGetentinfoAPIRequest.go @@ -0,0 +1,52 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查企业标识信息 API请求 +alibaba.alihealth.drug.kyt.smyx.getentinfo + +根据企业名称查询企业唯一标识【ref_ent_id】和企业ID【ent_id】 +*/ +type AlibabaAlihealthDrugKytSmyxGetentinfoAPIRequest struct { + model.Params + // 公司名称 + _entName string +} + +// 初始化AlibabaAlihealthDrugKytSmyxGetentinfoAPIRequest对象 +func NewAlibabaAlihealthDrugKytSmyxGetentinfoRequest() *AlibabaAlihealthDrugKytSmyxGetentinfoAPIRequest{ + return &AlibabaAlihealthDrugKytSmyxGetentinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytSmyxGetentinfoAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.smyx.getentinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytSmyxGetentinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EntName Setter +// 公司名称 +func (r *AlibabaAlihealthDrugKytSmyxGetentinfoAPIRequest) SetEntName(_entName string) error { + r._entName = _entName + r.Set("ent_name", _entName) + return nil +} + +// EntName Getter +func (r AlibabaAlihealthDrugKytSmyxGetentinfoAPIRequest) GetEntName() string { + return r._entName +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSmyxGetentinfoAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytSmyxGetentinfoAPIResponse.go new file mode 100644 index 0000000000..52b8033195 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytSmyxGetentinfoAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查企业标识信息 API返回值 +alibaba.alihealth.drug.kyt.smyx.getentinfo + +根据企业名称查询企业唯一标识【ref_ent_id】和企业ID【ent_id】 +*/ +type AlibabaAlihealthDrugKytSmyxGetentinfoAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytSmyxGetentinfoAPIResponseModel +} + +// 查企业标识信息 成功返回结果 +type AlibabaAlihealthDrugKytSmyxGetentinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_smyx_getentinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytSmyxGetentinfoResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSmyxGetentinfoResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytSmyxGetentinfoResponse.go deleted file mode 100644 index 7073b77a6b..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytSmyxGetentinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查企业标识信息 API返回值 -alibaba.alihealth.drug.kyt.smyx.getentinfo - -根据企业名称查询企业唯一标识【ref_ent_id】和企业ID【ent_id】 -*/ -type AlibabaAlihealthDrugKytSmyxGetentinfoAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytSmyxGetentinfoResponse -} - -// 查企业标识信息 成功返回结果 -type AlibabaAlihealthDrugKytSmyxGetentinfoResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_smyx_getentinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytSmyxGetentinfoResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSmyxListpartsAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytSmyxListpartsAPIRequest.go new file mode 100644 index 0000000000..ad0dd97cc1 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytSmyxListpartsAPIRequest.go @@ -0,0 +1,136 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +药店查询往来单位 API请求 +alibaba.alihealth.drug.kyt.smyx.listparts + +查询往来单位列表 +*/ +type AlibabaAlihealthDrugKytSmyxListpartsAPIRequest struct { + model.Params + // 企业唯一标识 + _refEntId string + // 企业名称 + _entName string + // 企业自定义编号 + _refPartnerId string + // 页大小 + _pageSize int64 + // 页码 + _page int64 + // 开始时间 + _beginDate string + // 结束时间 + _endDate string +} + +// 初始化AlibabaAlihealthDrugKytSmyxListpartsAPIRequest对象 +func NewAlibabaAlihealthDrugKytSmyxListpartsRequest() *AlibabaAlihealthDrugKytSmyxListpartsAPIRequest{ + return &AlibabaAlihealthDrugKytSmyxListpartsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytSmyxListpartsAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.smyx.listparts" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytSmyxListpartsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业唯一标识 +func (r *AlibabaAlihealthDrugKytSmyxListpartsAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytSmyxListpartsAPIRequest) GetRefEntId() string { + return r._refEntId +} +// EntName Setter +// 企业名称 +func (r *AlibabaAlihealthDrugKytSmyxListpartsAPIRequest) SetEntName(_entName string) error { + r._entName = _entName + r.Set("ent_name", _entName) + return nil +} + +// EntName Getter +func (r AlibabaAlihealthDrugKytSmyxListpartsAPIRequest) GetEntName() string { + return r._entName +} +// RefPartnerId Setter +// 企业自定义编号 +func (r *AlibabaAlihealthDrugKytSmyxListpartsAPIRequest) SetRefPartnerId(_refPartnerId string) error { + r._refPartnerId = _refPartnerId + r.Set("ref_partner_id", _refPartnerId) + return nil +} + +// RefPartnerId Getter +func (r AlibabaAlihealthDrugKytSmyxListpartsAPIRequest) GetRefPartnerId() string { + return r._refPartnerId +} +// PageSize Setter +// 页大小 +func (r *AlibabaAlihealthDrugKytSmyxListpartsAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugKytSmyxListpartsAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Page Setter +// 页码 +func (r *AlibabaAlihealthDrugKytSmyxListpartsAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugKytSmyxListpartsAPIRequest) GetPage() int64 { + return r._page +} +// BeginDate Setter +// 开始时间 +func (r *AlibabaAlihealthDrugKytSmyxListpartsAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaAlihealthDrugKytSmyxListpartsAPIRequest) GetBeginDate() string { + return r._beginDate +} +// EndDate Setter +// 结束时间 +func (r *AlibabaAlihealthDrugKytSmyxListpartsAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugKytSmyxListpartsAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSmyxListpartsAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytSmyxListpartsAPIResponse.go new file mode 100644 index 0000000000..528ef32925 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytSmyxListpartsAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +药店查询往来单位 API返回值 +alibaba.alihealth.drug.kyt.smyx.listparts + +查询往来单位列表 +*/ +type AlibabaAlihealthDrugKytSmyxListpartsAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytSmyxListpartsAPIResponseModel +} + +// 药店查询往来单位 成功返回结果 +type AlibabaAlihealthDrugKytSmyxListpartsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_smyx_listparts_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytSmyxListpartsResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSmyxListpartsResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytSmyxListpartsResponse.go deleted file mode 100644 index 7d790cc9b7..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytSmyxListpartsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -药店查询往来单位 API返回值 -alibaba.alihealth.drug.kyt.smyx.listparts - -查询往来单位列表 -*/ -type AlibabaAlihealthDrugKytSmyxListpartsAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytSmyxListpartsResponse -} - -// 药店查询往来单位 成功返回结果 -type AlibabaAlihealthDrugKytSmyxListpartsResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_smyx_listparts_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytSmyxListpartsResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest.go new file mode 100644 index 0000000000..1e4b29868e --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest.go @@ -0,0 +1,361 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +药店出入库信息上传 API请求 +alibaba.alihealth.drug.kyt.smyx.uploadinoutbill + +药店上传出入库信息,包括采购入库(102),退货入库(103),供应入库(107),退货出库(202),销毁出库(205),抽检出库(206), 供应出库(209), +不包括对个人的零售出库,疫苗接种,领药出库。 +*/ +type AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest struct { + model.Params + // 单据编码 + _billCode string + // 单据时间 + _billTime string + // 单据类型【102代表采购入库】 + _billType int64 + // 药品类型【3普药2特药】 + _physicType int64 + // 上传企业的单位编码 + _refUserId string + // 代理企业REF标识 + _agentRefUserId string + // 发货企业entId + _fromUserId string + // 收货企业entId + _toUserId string + // 直调企业标识 + _destUserId string + // 单据提交者(appkey编号) + _operIcCode string + // 单据提交者姓名 + _operIcName string + // 客户端类型[必须填2] + _clientType string + // 退货原因代码[退货入出库时填写] + _returnReasonCode string + // 退货原因描述[退货入出库时填写] + _returnReasonDes string + // 注销原因代码【销毁出库时填写】 + _cancelReasonCode string + // 注销原因描述【销毁出库时填写】 + _cancelReasonDes string + // 执行人姓名【销毁出库时填写】 + _executerName string + // 执行人证件号【销毁出库时填写】 + _executerCode string + // 监督人姓名【销毁出库时填写】 + _superviserName string + // 监督人证件号【销毁出库时填写】 + _superviserCode string + // 仓号 + _warehouseId string + // 药品ID[企业自已系统的药品ID] + _drugId string + // 追溯码[多个时用逗号分开] + _traceCodes []string +} + +// 初始化AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest对象 +func NewAlibabaAlihealthDrugKytSmyxUploadinoutbillRequest() *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest{ + return &AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.smyx.uploadinoutbill" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据编码 +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetBillCode() string { + return r._billCode +} +// BillTime Setter +// 单据时间 +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetBillTime(_billTime string) error { + r._billTime = _billTime + r.Set("bill_time", _billTime) + return nil +} + +// BillTime Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetBillTime() string { + return r._billTime +} +// BillType Setter +// 单据类型【102代表采购入库】 +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetBillType(_billType int64) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetBillType() int64 { + return r._billType +} +// PhysicType Setter +// 药品类型【3普药2特药】 +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetPhysicType(_physicType int64) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetPhysicType() int64 { + return r._physicType +} +// RefUserId Setter +// 上传企业的单位编码 +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetRefUserId(_refUserId string) error { + r._refUserId = _refUserId + r.Set("ref_user_id", _refUserId) + return nil +} + +// RefUserId Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetRefUserId() string { + return r._refUserId +} +// AgentRefUserId Setter +// 代理企业REF标识 +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetAgentRefUserId(_agentRefUserId string) error { + r._agentRefUserId = _agentRefUserId + r.Set("agent_ref_user_id", _agentRefUserId) + return nil +} + +// AgentRefUserId Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetAgentRefUserId() string { + return r._agentRefUserId +} +// FromUserId Setter +// 发货企业entId +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetFromUserId() string { + return r._fromUserId +} +// ToUserId Setter +// 收货企业entId +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetToUserId(_toUserId string) error { + r._toUserId = _toUserId + r.Set("to_user_id", _toUserId) + return nil +} + +// ToUserId Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetToUserId() string { + return r._toUserId +} +// DestUserId Setter +// 直调企业标识 +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetDestUserId(_destUserId string) error { + r._destUserId = _destUserId + r.Set("dest_user_id", _destUserId) + return nil +} + +// DestUserId Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetDestUserId() string { + return r._destUserId +} +// OperIcCode Setter +// 单据提交者(appkey编号) +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetOperIcCode(_operIcCode string) error { + r._operIcCode = _operIcCode + r.Set("oper_ic_code", _operIcCode) + return nil +} + +// OperIcCode Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetOperIcCode() string { + return r._operIcCode +} +// OperIcName Setter +// 单据提交者姓名 +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetOperIcName(_operIcName string) error { + r._operIcName = _operIcName + r.Set("oper_ic_name", _operIcName) + return nil +} + +// OperIcName Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetOperIcName() string { + return r._operIcName +} +// ClientType Setter +// 客户端类型[必须填2] +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetClientType(_clientType string) error { + r._clientType = _clientType + r.Set("client_type", _clientType) + return nil +} + +// ClientType Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetClientType() string { + return r._clientType +} +// ReturnReasonCode Setter +// 退货原因代码[退货入出库时填写] +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetReturnReasonCode(_returnReasonCode string) error { + r._returnReasonCode = _returnReasonCode + r.Set("return_reason_code", _returnReasonCode) + return nil +} + +// ReturnReasonCode Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetReturnReasonCode() string { + return r._returnReasonCode +} +// ReturnReasonDes Setter +// 退货原因描述[退货入出库时填写] +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetReturnReasonDes(_returnReasonDes string) error { + r._returnReasonDes = _returnReasonDes + r.Set("return_reason_des", _returnReasonDes) + return nil +} + +// ReturnReasonDes Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetReturnReasonDes() string { + return r._returnReasonDes +} +// CancelReasonCode Setter +// 注销原因代码【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetCancelReasonCode(_cancelReasonCode string) error { + r._cancelReasonCode = _cancelReasonCode + r.Set("cancel_reason_code", _cancelReasonCode) + return nil +} + +// CancelReasonCode Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetCancelReasonCode() string { + return r._cancelReasonCode +} +// CancelReasonDes Setter +// 注销原因描述【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetCancelReasonDes(_cancelReasonDes string) error { + r._cancelReasonDes = _cancelReasonDes + r.Set("cancel_reason_des", _cancelReasonDes) + return nil +} + +// CancelReasonDes Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetCancelReasonDes() string { + return r._cancelReasonDes +} +// ExecuterName Setter +// 执行人姓名【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetExecuterName(_executerName string) error { + r._executerName = _executerName + r.Set("executer_name", _executerName) + return nil +} + +// ExecuterName Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetExecuterName() string { + return r._executerName +} +// ExecuterCode Setter +// 执行人证件号【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetExecuterCode(_executerCode string) error { + r._executerCode = _executerCode + r.Set("executer_code", _executerCode) + return nil +} + +// ExecuterCode Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetExecuterCode() string { + return r._executerCode +} +// SuperviserName Setter +// 监督人姓名【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetSuperviserName(_superviserName string) error { + r._superviserName = _superviserName + r.Set("superviser_name", _superviserName) + return nil +} + +// SuperviserName Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetSuperviserName() string { + return r._superviserName +} +// SuperviserCode Setter +// 监督人证件号【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetSuperviserCode(_superviserCode string) error { + r._superviserCode = _superviserCode + r.Set("superviser_code", _superviserCode) + return nil +} + +// SuperviserCode Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetSuperviserCode() string { + return r._superviserCode +} +// WarehouseId Setter +// 仓号 +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetWarehouseId(_warehouseId string) error { + r._warehouseId = _warehouseId + r.Set("warehouse_id", _warehouseId) + return nil +} + +// WarehouseId Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetWarehouseId() string { + return r._warehouseId +} +// DrugId Setter +// 药品ID[企业自已系统的药品ID] +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetDrugId(_drugId string) error { + r._drugId = _drugId + r.Set("drug_id", _drugId) + return nil +} + +// DrugId Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetDrugId() string { + return r._drugId +} +// TraceCodes Setter +// 追溯码[多个时用逗号分开] +func (r *AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) SetTraceCodes(_traceCodes []string) error { + r._traceCodes = _traceCodes + r.Set("trace_codes", _traceCodes) + return nil +} + +// TraceCodes Getter +func (r AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIRequest) GetTraceCodes() []string { + return r._traceCodes +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIResponse.go new file mode 100644 index 0000000000..4fc40e4d96 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIResponse.go @@ -0,0 +1,34 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +药店出入库信息上传 API返回值 +alibaba.alihealth.drug.kyt.smyx.uploadinoutbill + +药店上传出入库信息,包括采购入库(102),退货入库(103),供应入库(107),退货出库(202),销毁出库(205),抽检出库(206), 供应出库(209), +不包括对个人的零售出库,疫苗接种,领药出库。 +*/ +type AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIResponseModel +} + +// 药店出入库信息上传 成功返回结果 +type AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_smyx_uploadinoutbill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 返回编码(BILL_DECODE_ERROR 单据转码失败 BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 返回信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 是否成功(true 成功 false 失败) + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSmyxUploadinoutbillResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytSmyxUploadinoutbillResponse.go deleted file mode 100644 index da03a7b54b..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytSmyxUploadinoutbillResponse.go +++ /dev/null @@ -1,34 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -药店出入库信息上传 API返回值 -alibaba.alihealth.drug.kyt.smyx.uploadinoutbill - -药店上传出入库信息,包括采购入库(102),退货入库(103),供应入库(107),退货出库(202),销毁出库(205),抽检出库(206), 供应出库(209), -不包括对个人的零售出库,疫苗接种,领药出库。 -*/ -type AlibabaAlihealthDrugKytSmyxUploadinoutbillAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytSmyxUploadinoutbillResponse -} - -// 药店出入库信息上传 成功返回结果 -type AlibabaAlihealthDrugKytSmyxUploadinoutbillResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_smyx_uploadinoutbill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 返回编码(BILL_DECODE_ERROR 单据转码失败 BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 返回信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 是否成功(true 成功 false 失败) - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytStorebilldeleteAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytStorebilldeleteAPIRequest.go new file mode 100644 index 0000000000..c160561a5c --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytStorebilldeleteAPIRequest.go @@ -0,0 +1,94 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售端单据删除 API请求 +alibaba.alihealth.drug.kyt.storebilldelete + +零售端单据删除 +*/ +type AlibabaAlihealthDrugKytStorebilldeleteAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 操作人编码 + _icCode string + // 单据ID + _billId string + // 单据类型 + _billType string +} + +// 初始化AlibabaAlihealthDrugKytStorebilldeleteAPIRequest对象 +func NewAlibabaAlihealthDrugKytStorebilldeleteRequest() *AlibabaAlihealthDrugKytStorebilldeleteAPIRequest{ + return &AlibabaAlihealthDrugKytStorebilldeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytStorebilldeleteAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.storebilldelete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytStorebilldeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytStorebilldeleteAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytStorebilldeleteAPIRequest) GetRefEntId() string { + return r._refEntId +} +// IcCode Setter +// 操作人编码 +func (r *AlibabaAlihealthDrugKytStorebilldeleteAPIRequest) SetIcCode(_icCode string) error { + r._icCode = _icCode + r.Set("ic_code", _icCode) + return nil +} + +// IcCode Getter +func (r AlibabaAlihealthDrugKytStorebilldeleteAPIRequest) GetIcCode() string { + return r._icCode +} +// BillId Setter +// 单据ID +func (r *AlibabaAlihealthDrugKytStorebilldeleteAPIRequest) SetBillId(_billId string) error { + r._billId = _billId + r.Set("bill_id", _billId) + return nil +} + +// BillId Getter +func (r AlibabaAlihealthDrugKytStorebilldeleteAPIRequest) GetBillId() string { + return r._billId +} +// BillType Setter +// 单据类型 +func (r *AlibabaAlihealthDrugKytStorebilldeleteAPIRequest) SetBillType(_billType string) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytStorebilldeleteAPIRequest) GetBillType() string { + return r._billType +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytStorebilldeleteAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytStorebilldeleteAPIResponse.go new file mode 100644 index 0000000000..6459607bb2 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytStorebilldeleteAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售端单据删除 API返回值 +alibaba.alihealth.drug.kyt.storebilldelete + +零售端单据删除 +*/ +type AlibabaAlihealthDrugKytStorebilldeleteAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytStorebilldeleteAPIResponseModel +} + +// 零售端单据删除 成功返回结果 +type AlibabaAlihealthDrugKytStorebilldeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_storebilldelete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果说明 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 调用信息编码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 调用信息描述 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 返回结果 + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytStorebilldeleteResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytStorebilldeleteResponse.go deleted file mode 100644 index 44d1c3b9da..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytStorebilldeleteResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售端单据删除 API返回值 -alibaba.alihealth.drug.kyt.storebilldelete - -零售端单据删除 -*/ -type AlibabaAlihealthDrugKytStorebilldeleteAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytStorebilldeleteResponse -} - -// 零售端单据删除 成功返回结果 -type AlibabaAlihealthDrugKytStorebilldeleteResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_storebilldelete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果说明 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 调用信息编码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 调用信息描述 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 返回结果 - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytStorebilllistAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytStorebilllistAPIRequest.go new file mode 100644 index 0000000000..c2d80d0cc4 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytStorebilllistAPIRequest.go @@ -0,0 +1,122 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售端平台单据查询 API请求 +alibaba.alihealth.drug.kyt.storebilllist + +零售端平台单据查询 +*/ +type AlibabaAlihealthDrugKytStorebilllistAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 开始日期 + _startDate string + // 结束日期 + _endDate string + // 单据状态(A全部 1上传成功 3处理成功 4处理失败 ) + _billStatus string + // 页码 + _page int64 + // 页数 + _pageSize int64 +} + +// 初始化AlibabaAlihealthDrugKytStorebilllistAPIRequest对象 +func NewAlibabaAlihealthDrugKytStorebilllistRequest() *AlibabaAlihealthDrugKytStorebilllistAPIRequest{ + return &AlibabaAlihealthDrugKytStorebilllistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytStorebilllistAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.storebilllist" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytStorebilllistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytStorebilllistAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytStorebilllistAPIRequest) GetRefEntId() string { + return r._refEntId +} +// StartDate Setter +// 开始日期 +func (r *AlibabaAlihealthDrugKytStorebilllistAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r AlibabaAlihealthDrugKytStorebilllistAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 结束日期 +func (r *AlibabaAlihealthDrugKytStorebilllistAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugKytStorebilllistAPIRequest) GetEndDate() string { + return r._endDate +} +// BillStatus Setter +// 单据状态(A全部 1上传成功 3处理成功 4处理失败 ) +func (r *AlibabaAlihealthDrugKytStorebilllistAPIRequest) SetBillStatus(_billStatus string) error { + r._billStatus = _billStatus + r.Set("bill_status", _billStatus) + return nil +} + +// BillStatus Getter +func (r AlibabaAlihealthDrugKytStorebilllistAPIRequest) GetBillStatus() string { + return r._billStatus +} +// Page Setter +// 页码 +func (r *AlibabaAlihealthDrugKytStorebilllistAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugKytStorebilllistAPIRequest) GetPage() int64 { + return r._page +} +// PageSize Setter +// 页数 +func (r *AlibabaAlihealthDrugKytStorebilllistAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugKytStorebilllistAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytStorebilllistAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytStorebilllistAPIResponse.go new file mode 100644 index 0000000000..6ec2103753 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytStorebilllistAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售端平台单据查询 API返回值 +alibaba.alihealth.drug.kyt.storebilllist + +零售端平台单据查询 +*/ +type AlibabaAlihealthDrugKytStorebilllistAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytStorebilllistAPIResponseModel +} + +// 零售端平台单据查询 成功返回结果 +type AlibabaAlihealthDrugKytStorebilllistAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_storebilllist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytStorebilllistResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytStorebilllistResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytStorebilllistResponse.go deleted file mode 100644 index c721e5ac0b..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytStorebilllistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售端平台单据查询 API返回值 -alibaba.alihealth.drug.kyt.storebilllist - -零售端平台单据查询 -*/ -type AlibabaAlihealthDrugKytStorebilllistAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytStorebilllistResponse -} - -// 零售端平台单据查询 成功返回结果 -type AlibabaAlihealthDrugKytStorebilllistResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_storebilllist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytStorebilllistResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSynonymauthsAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytSynonymauthsAPIRequest.go new file mode 100644 index 0000000000..32481a63dd --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytSynonymauthsAPIRequest.go @@ -0,0 +1,108 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物流企业查询货主企业信息 API请求 +alibaba.alihealth.drug.kyt.synonymauths + +物流企业查询货主企业信息 +*/ +type AlibabaAlihealthDrugKytSynonymauthsAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 企业名称 + _entName string + // 货主自定义编号 + _synOwnEntId string + // 页码 + _pageSize int64 + // 页面大小 + _page int64 +} + +// 初始化AlibabaAlihealthDrugKytSynonymauthsAPIRequest对象 +func NewAlibabaAlihealthDrugKytSynonymauthsRequest() *AlibabaAlihealthDrugKytSynonymauthsAPIRequest{ + return &AlibabaAlihealthDrugKytSynonymauthsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytSynonymauthsAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.synonymauths" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytSynonymauthsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytSynonymauthsAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytSynonymauthsAPIRequest) GetRefEntId() string { + return r._refEntId +} +// EntName Setter +// 企业名称 +func (r *AlibabaAlihealthDrugKytSynonymauthsAPIRequest) SetEntName(_entName string) error { + r._entName = _entName + r.Set("ent_name", _entName) + return nil +} + +// EntName Getter +func (r AlibabaAlihealthDrugKytSynonymauthsAPIRequest) GetEntName() string { + return r._entName +} +// SynOwnEntId Setter +// 货主自定义编号 +func (r *AlibabaAlihealthDrugKytSynonymauthsAPIRequest) SetSynOwnEntId(_synOwnEntId string) error { + r._synOwnEntId = _synOwnEntId + r.Set("syn_own_ent_id", _synOwnEntId) + return nil +} + +// SynOwnEntId Getter +func (r AlibabaAlihealthDrugKytSynonymauthsAPIRequest) GetSynOwnEntId() string { + return r._synOwnEntId +} +// PageSize Setter +// 页码 +func (r *AlibabaAlihealthDrugKytSynonymauthsAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugKytSynonymauthsAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Page Setter +// 页面大小 +func (r *AlibabaAlihealthDrugKytSynonymauthsAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugKytSynonymauthsAPIRequest) GetPage() int64 { + return r._page +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSynonymauthsAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytSynonymauthsAPIResponse.go new file mode 100644 index 0000000000..465dc57cc3 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytSynonymauthsAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物流企业查询货主企业信息 API返回值 +alibaba.alihealth.drug.kyt.synonymauths + +物流企业查询货主企业信息 +*/ +type AlibabaAlihealthDrugKytSynonymauthsAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytSynonymauthsAPIResponseModel +} + +// 物流企业查询货主企业信息 成功返回结果 +type AlibabaAlihealthDrugKytSynonymauthsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_synonymauths_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytSynonymauthsResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytSynonymauthsResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytSynonymauthsResponse.go deleted file mode 100644 index e61470e733..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytSynonymauthsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物流企业查询货主企业信息 API返回值 -alibaba.alihealth.drug.kyt.synonymauths - -物流企业查询货主企业信息 -*/ -type AlibabaAlihealthDrugKytSynonymauthsAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytSynonymauthsResponse -} - -// 物流企业查询货主企业信息 成功返回结果 -type AlibabaAlihealthDrugKytSynonymauthsResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_synonymauths_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytSynonymauthsResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest.go new file mode 100644 index 0000000000..355c2594d1 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest.go @@ -0,0 +1,108 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售修改出入库单追溯码 API请求 +alibaba.alihealth.drug.kyt.updatebillcode + +零售修改出入库单追溯码 +*/ +type AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 操作人ID + _icCode string + // 单据ID + _billId string + // 单据类型 + _billType string + // 追溯码 + _codeList []string +} + +// 初始化AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest对象 +func NewAlibabaAlihealthDrugKytUpdatebillcodeRequest() *AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest{ + return &AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.updatebillcode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest) GetRefEntId() string { + return r._refEntId +} +// IcCode Setter +// 操作人ID +func (r *AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest) SetIcCode(_icCode string) error { + r._icCode = _icCode + r.Set("ic_code", _icCode) + return nil +} + +// IcCode Getter +func (r AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest) GetIcCode() string { + return r._icCode +} +// BillId Setter +// 单据ID +func (r *AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest) SetBillId(_billId string) error { + r._billId = _billId + r.Set("bill_id", _billId) + return nil +} + +// BillId Getter +func (r AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest) GetBillId() string { + return r._billId +} +// BillType Setter +// 单据类型 +func (r *AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest) SetBillType(_billType string) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest) GetBillType() string { + return r._billType +} +// CodeList Setter +// 追溯码 +func (r *AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest) SetCodeList(_codeList []string) error { + r._codeList = _codeList + r.Set("code_list", _codeList) + return nil +} + +// CodeList Getter +func (r AlibabaAlihealthDrugKytUpdatebillcodeAPIRequest) GetCodeList() []string { + return r._codeList +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUpdatebillcodeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUpdatebillcodeAPIResponse.go new file mode 100644 index 0000000000..030b78b86c --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUpdatebillcodeAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售修改出入库单追溯码 API返回值 +alibaba.alihealth.drug.kyt.updatebillcode + +零售修改出入库单追溯码 +*/ +type AlibabaAlihealthDrugKytUpdatebillcodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytUpdatebillcodeAPIResponseModel +} + +// 零售修改出入库单追溯码 成功返回结果 +type AlibabaAlihealthDrugKytUpdatebillcodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_updatebillcode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 返回编码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 返回描述 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 返回接口 + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUpdatebillcodeResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUpdatebillcodeResponse.go deleted file mode 100644 index 11262398d1..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytUpdatebillcodeResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售修改出入库单追溯码 API返回值 -alibaba.alihealth.drug.kyt.updatebillcode - -零售修改出入库单追溯码 -*/ -type AlibabaAlihealthDrugKytUpdatebillcodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytUpdatebillcodeResponse -} - -// 零售修改出入库单追溯码 成功返回结果 -type AlibabaAlihealthDrugKytUpdatebillcodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_updatebillcode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 返回编码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 返回描述 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 返回接口 - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest.go new file mode 100644 index 0000000000..a3382ecae0 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest.go @@ -0,0 +1,164 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售端平台单据更新 API请求 +alibaba.alihealth.drug.kyt.updatebillinfo + +零售端平台单据更新 +*/ +type AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 企业ID + _entId string + // 操作人编码 + _icCode string + // 单据ID + _billId string + // 单据类型 + _billType string + // 单据编码 + _billCode string + // 发货单位ID + _partnerIdSend string + // 收货单信ID + _partnerIdRecv string + // 详情 + _note string +} + +// 初始化AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest对象 +func NewAlibabaAlihealthDrugKytUpdatebillinfoRequest() *AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest{ + return &AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.updatebillinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) GetRefEntId() string { + return r._refEntId +} +// EntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) SetEntId(_entId string) error { + r._entId = _entId + r.Set("ent_id", _entId) + return nil +} + +// EntId Getter +func (r AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) GetEntId() string { + return r._entId +} +// IcCode Setter +// 操作人编码 +func (r *AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) SetIcCode(_icCode string) error { + r._icCode = _icCode + r.Set("ic_code", _icCode) + return nil +} + +// IcCode Getter +func (r AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) GetIcCode() string { + return r._icCode +} +// BillId Setter +// 单据ID +func (r *AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) SetBillId(_billId string) error { + r._billId = _billId + r.Set("bill_id", _billId) + return nil +} + +// BillId Getter +func (r AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) GetBillId() string { + return r._billId +} +// BillType Setter +// 单据类型 +func (r *AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) SetBillType(_billType string) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) GetBillType() string { + return r._billType +} +// BillCode Setter +// 单据编码 +func (r *AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) GetBillCode() string { + return r._billCode +} +// PartnerIdSend Setter +// 发货单位ID +func (r *AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) SetPartnerIdSend(_partnerIdSend string) error { + r._partnerIdSend = _partnerIdSend + r.Set("partner_id_send", _partnerIdSend) + return nil +} + +// PartnerIdSend Getter +func (r AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) GetPartnerIdSend() string { + return r._partnerIdSend +} +// PartnerIdRecv Setter +// 收货单信ID +func (r *AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) SetPartnerIdRecv(_partnerIdRecv string) error { + r._partnerIdRecv = _partnerIdRecv + r.Set("partner_id_recv", _partnerIdRecv) + return nil +} + +// PartnerIdRecv Getter +func (r AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) GetPartnerIdRecv() string { + return r._partnerIdRecv +} +// Note Setter +// 详情 +func (r *AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) SetNote(_note string) error { + r._note = _note + r.Set("note", _note) + return nil +} + +// Note Getter +func (r AlibabaAlihealthDrugKytUpdatebillinfoAPIRequest) GetNote() string { + return r._note +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUpdatebillinfoAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUpdatebillinfoAPIResponse.go new file mode 100644 index 0000000000..878f6edb05 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUpdatebillinfoAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售端平台单据更新 API返回值 +alibaba.alihealth.drug.kyt.updatebillinfo + +零售端平台单据更新 +*/ +type AlibabaAlihealthDrugKytUpdatebillinfoAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytUpdatebillinfoAPIResponseModel +} + +// 零售端平台单据更新 成功返回结果 +type AlibabaAlihealthDrugKytUpdatebillinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_updatebillinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 返回编码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 返回描述 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 返回是否成功 + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUpdatebillinfoResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUpdatebillinfoResponse.go deleted file mode 100644 index ff757d23c1..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytUpdatebillinfoResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售端平台单据更新 API返回值 -alibaba.alihealth.drug.kyt.updatebillinfo - -零售端平台单据更新 -*/ -type AlibabaAlihealthDrugKytUpdatebillinfoAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytUpdatebillinfoResponse -} - -// 零售端平台单据更新 成功返回结果 -type AlibabaAlihealthDrugKytUpdatebillinfoResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_updatebillinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 返回编码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 返回描述 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 返回是否成功 - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUpinoutfileAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytUpinoutfileAPIRequest.go new file mode 100644 index 0000000000..49f4e2510e --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUpinoutfileAPIRequest.go @@ -0,0 +1,374 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传出入库单据(传文件) API请求 +alibaba.alihealth.drug.kyt.upinoutfile + +上传出入库单据(传文件) +*/ +type AlibabaAlihealthDrugKytUpinoutfileAPIRequest struct { + model.Params + // 单据编码 + _billCode string + // 单据时间 + _billTime string + // 单据类型【102代表采购入库】 + _billType int64 + // 药品类型【3普药2特药】 + _physicType int64 + // 上传企业的单位编码 + _refUserId string + // 代理企业REF标识 + _agentRefUserId string + // 收货企业entId + _fromUserId string + // 发货企业entId + _toUserId string + // 直调企业标识 + _destUserId string + // 单据提交者(key编号) + _operIcCode string + // 单据提交者姓名 + _operIcName string + // 仓号 + _warehouseId string + // 药品ID + _drugId string + // 文件内容 + _fileContent string + // 文件名 + _uploadFileName string + // 客户端类型[必须填2] + _clientType string + // 退货原因代码[退货入出库时填写] + _returnReasonCode string + // 退货原因描述[退货入出库时填写] + _returnReasonDes string + // 注销原因代码【销毁出库时填写】 + _cancelReasonCode string + // 注销原因描述【销毁出库时填写】 + _cancelReasonDes string + // 执行人姓名【销毁出库时填写】 + _executerName string + // 执行人证件号【销毁出库时填写】 + _executerCode string + // 监督人姓名【销毁出库时填写】 + _superviserName string + // 监督人证件号【销毁出库时填写】 + _superviserCode string +} + +// 初始化AlibabaAlihealthDrugKytUpinoutfileAPIRequest对象 +func NewAlibabaAlihealthDrugKytUpinoutfileRequest() *AlibabaAlihealthDrugKytUpinoutfileAPIRequest{ + return &AlibabaAlihealthDrugKytUpinoutfileAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.upinoutfile" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据编码 +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetBillCode() string { + return r._billCode +} +// BillTime Setter +// 单据时间 +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetBillTime(_billTime string) error { + r._billTime = _billTime + r.Set("bill_time", _billTime) + return nil +} + +// BillTime Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetBillTime() string { + return r._billTime +} +// BillType Setter +// 单据类型【102代表采购入库】 +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetBillType(_billType int64) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetBillType() int64 { + return r._billType +} +// PhysicType Setter +// 药品类型【3普药2特药】 +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetPhysicType(_physicType int64) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetPhysicType() int64 { + return r._physicType +} +// RefUserId Setter +// 上传企业的单位编码 +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetRefUserId(_refUserId string) error { + r._refUserId = _refUserId + r.Set("ref_user_id", _refUserId) + return nil +} + +// RefUserId Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetRefUserId() string { + return r._refUserId +} +// AgentRefUserId Setter +// 代理企业REF标识 +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetAgentRefUserId(_agentRefUserId string) error { + r._agentRefUserId = _agentRefUserId + r.Set("agent_ref_user_id", _agentRefUserId) + return nil +} + +// AgentRefUserId Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetAgentRefUserId() string { + return r._agentRefUserId +} +// FromUserId Setter +// 收货企业entId +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetFromUserId() string { + return r._fromUserId +} +// ToUserId Setter +// 发货企业entId +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetToUserId(_toUserId string) error { + r._toUserId = _toUserId + r.Set("to_user_id", _toUserId) + return nil +} + +// ToUserId Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetToUserId() string { + return r._toUserId +} +// DestUserId Setter +// 直调企业标识 +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetDestUserId(_destUserId string) error { + r._destUserId = _destUserId + r.Set("dest_user_id", _destUserId) + return nil +} + +// DestUserId Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetDestUserId() string { + return r._destUserId +} +// OperIcCode Setter +// 单据提交者(key编号) +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetOperIcCode(_operIcCode string) error { + r._operIcCode = _operIcCode + r.Set("oper_ic_code", _operIcCode) + return nil +} + +// OperIcCode Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetOperIcCode() string { + return r._operIcCode +} +// OperIcName Setter +// 单据提交者姓名 +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetOperIcName(_operIcName string) error { + r._operIcName = _operIcName + r.Set("oper_ic_name", _operIcName) + return nil +} + +// OperIcName Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetOperIcName() string { + return r._operIcName +} +// WarehouseId Setter +// 仓号 +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetWarehouseId(_warehouseId string) error { + r._warehouseId = _warehouseId + r.Set("warehouse_id", _warehouseId) + return nil +} + +// WarehouseId Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetWarehouseId() string { + return r._warehouseId +} +// DrugId Setter +// 药品ID +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetDrugId(_drugId string) error { + r._drugId = _drugId + r.Set("drug_id", _drugId) + return nil +} + +// DrugId Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetDrugId() string { + return r._drugId +} +// FileContent Setter +// 文件内容 +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetFileContent(_fileContent string) error { + r._fileContent = _fileContent + r.Set("file_content", _fileContent) + return nil +} + +// FileContent Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetFileContent() string { + return r._fileContent +} +// UploadFileName Setter +// 文件名 +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetUploadFileName(_uploadFileName string) error { + r._uploadFileName = _uploadFileName + r.Set("upload_file_name", _uploadFileName) + return nil +} + +// UploadFileName Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetUploadFileName() string { + return r._uploadFileName +} +// ClientType Setter +// 客户端类型[必须填2] +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetClientType(_clientType string) error { + r._clientType = _clientType + r.Set("client_type", _clientType) + return nil +} + +// ClientType Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetClientType() string { + return r._clientType +} +// ReturnReasonCode Setter +// 退货原因代码[退货入出库时填写] +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetReturnReasonCode(_returnReasonCode string) error { + r._returnReasonCode = _returnReasonCode + r.Set("return_reason_code", _returnReasonCode) + return nil +} + +// ReturnReasonCode Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetReturnReasonCode() string { + return r._returnReasonCode +} +// ReturnReasonDes Setter +// 退货原因描述[退货入出库时填写] +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetReturnReasonDes(_returnReasonDes string) error { + r._returnReasonDes = _returnReasonDes + r.Set("return_reason_des", _returnReasonDes) + return nil +} + +// ReturnReasonDes Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetReturnReasonDes() string { + return r._returnReasonDes +} +// CancelReasonCode Setter +// 注销原因代码【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetCancelReasonCode(_cancelReasonCode string) error { + r._cancelReasonCode = _cancelReasonCode + r.Set("cancel_reason_code", _cancelReasonCode) + return nil +} + +// CancelReasonCode Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetCancelReasonCode() string { + return r._cancelReasonCode +} +// CancelReasonDes Setter +// 注销原因描述【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetCancelReasonDes(_cancelReasonDes string) error { + r._cancelReasonDes = _cancelReasonDes + r.Set("cancel_reason_des", _cancelReasonDes) + return nil +} + +// CancelReasonDes Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetCancelReasonDes() string { + return r._cancelReasonDes +} +// ExecuterName Setter +// 执行人姓名【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetExecuterName(_executerName string) error { + r._executerName = _executerName + r.Set("executer_name", _executerName) + return nil +} + +// ExecuterName Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetExecuterName() string { + return r._executerName +} +// ExecuterCode Setter +// 执行人证件号【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetExecuterCode(_executerCode string) error { + r._executerCode = _executerCode + r.Set("executer_code", _executerCode) + return nil +} + +// ExecuterCode Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetExecuterCode() string { + return r._executerCode +} +// SuperviserName Setter +// 监督人姓名【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetSuperviserName(_superviserName string) error { + r._superviserName = _superviserName + r.Set("superviser_name", _superviserName) + return nil +} + +// SuperviserName Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetSuperviserName() string { + return r._superviserName +} +// SuperviserCode Setter +// 监督人证件号【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytUpinoutfileAPIRequest) SetSuperviserCode(_superviserCode string) error { + r._superviserCode = _superviserCode + r.Set("superviser_code", _superviserCode) + return nil +} + +// SuperviserCode Getter +func (r AlibabaAlihealthDrugKytUpinoutfileAPIRequest) GetSuperviserCode() string { + return r._superviserCode +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUpinoutfileAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUpinoutfileAPIResponse.go new file mode 100644 index 0000000000..d15ef0a2b7 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUpinoutfileAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传出入库单据(传文件) API返回值 +alibaba.alihealth.drug.kyt.upinoutfile + +上传出入库单据(传文件) +*/ +type AlibabaAlihealthDrugKytUpinoutfileAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytUpinoutfileAPIResponseModel +} + +// 上传出入库单据(传文件) 成功返回结果 +type AlibabaAlihealthDrugKytUpinoutfileAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_upinoutfile_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 上传的ID + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 返回编码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 描述信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 返回值 + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUpinoutfileResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUpinoutfileResponse.go deleted file mode 100644 index facff775bb..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytUpinoutfileResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传出入库单据(传文件) API返回值 -alibaba.alihealth.drug.kyt.upinoutfile - -上传出入库单据(传文件) -*/ -type AlibabaAlihealthDrugKytUpinoutfileAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytUpinoutfileResponse -} - -// 上传出入库单据(传文件) 成功返回结果 -type AlibabaAlihealthDrugKytUpinoutfileResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_upinoutfile_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 上传的ID - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 返回编码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 描述信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 返回值 - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUploadb2cbillAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytUploadb2cbillAPIRequest.go new file mode 100644 index 0000000000..76f7b95d4e --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUploadb2cbillAPIRequest.go @@ -0,0 +1,178 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +快易通零售B2C API请求 +alibaba.alihealth.drug.kyt.uploadb2cbill + +快易通零售B2C单据上传 +*/ +type AlibabaAlihealthDrugKytUploadb2cbillAPIRequest struct { + model.Params + // 单据号【20位以内的唯一编码,可以使用16位UUID】 + _billCode string + // 单据时间【一般情况下写当前时间】 + _billTime string + // 企业ID + _refUserId string + // 操作人 + _operIcCode string + // 主订单 + _masterOrder string + // lbx号 + _lbxOrder string + // 仓号 + _warehouseId string + // 药品ID + _drugId string + // 追溯码[多个时用逗号分开] + _traceCodes []string + // 订单来源 + _orderSource string +} + +// 初始化AlibabaAlihealthDrugKytUploadb2cbillAPIRequest对象 +func NewAlibabaAlihealthDrugKytUploadb2cbillRequest() *AlibabaAlihealthDrugKytUploadb2cbillAPIRequest{ + return &AlibabaAlihealthDrugKytUploadb2cbillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.uploadb2cbill" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据号【20位以内的唯一编码,可以使用16位UUID】 +func (r *AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) GetBillCode() string { + return r._billCode +} +// BillTime Setter +// 单据时间【一般情况下写当前时间】 +func (r *AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) SetBillTime(_billTime string) error { + r._billTime = _billTime + r.Set("bill_time", _billTime) + return nil +} + +// BillTime Getter +func (r AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) GetBillTime() string { + return r._billTime +} +// RefUserId Setter +// 企业ID +func (r *AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) SetRefUserId(_refUserId string) error { + r._refUserId = _refUserId + r.Set("ref_user_id", _refUserId) + return nil +} + +// RefUserId Getter +func (r AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) GetRefUserId() string { + return r._refUserId +} +// OperIcCode Setter +// 操作人 +func (r *AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) SetOperIcCode(_operIcCode string) error { + r._operIcCode = _operIcCode + r.Set("oper_ic_code", _operIcCode) + return nil +} + +// OperIcCode Getter +func (r AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) GetOperIcCode() string { + return r._operIcCode +} +// MasterOrder Setter +// 主订单 +func (r *AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) SetMasterOrder(_masterOrder string) error { + r._masterOrder = _masterOrder + r.Set("master_order", _masterOrder) + return nil +} + +// MasterOrder Getter +func (r AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) GetMasterOrder() string { + return r._masterOrder +} +// LbxOrder Setter +// lbx号 +func (r *AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) SetLbxOrder(_lbxOrder string) error { + r._lbxOrder = _lbxOrder + r.Set("lbx_order", _lbxOrder) + return nil +} + +// LbxOrder Getter +func (r AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) GetLbxOrder() string { + return r._lbxOrder +} +// WarehouseId Setter +// 仓号 +func (r *AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) SetWarehouseId(_warehouseId string) error { + r._warehouseId = _warehouseId + r.Set("warehouse_id", _warehouseId) + return nil +} + +// WarehouseId Getter +func (r AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) GetWarehouseId() string { + return r._warehouseId +} +// DrugId Setter +// 药品ID +func (r *AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) SetDrugId(_drugId string) error { + r._drugId = _drugId + r.Set("drug_id", _drugId) + return nil +} + +// DrugId Getter +func (r AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) GetDrugId() string { + return r._drugId +} +// TraceCodes Setter +// 追溯码[多个时用逗号分开] +func (r *AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) SetTraceCodes(_traceCodes []string) error { + r._traceCodes = _traceCodes + r.Set("trace_codes", _traceCodes) + return nil +} + +// TraceCodes Getter +func (r AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) GetTraceCodes() []string { + return r._traceCodes +} +// OrderSource Setter +// 订单来源 +func (r *AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) SetOrderSource(_orderSource string) error { + r._orderSource = _orderSource + r.Set("order_source", _orderSource) + return nil +} + +// OrderSource Getter +func (r AlibabaAlihealthDrugKytUploadb2cbillAPIRequest) GetOrderSource() string { + return r._orderSource +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUploadb2cbillAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUploadb2cbillAPIResponse.go new file mode 100644 index 0000000000..9bcb294aaf --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUploadb2cbillAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +快易通零售B2C API返回值 +alibaba.alihealth.drug.kyt.uploadb2cbill + +快易通零售B2C单据上传 +*/ +type AlibabaAlihealthDrugKytUploadb2cbillAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytUploadb2cbillAPIResponseModel +} + +// 快易通零售B2C 成功返回结果 +type AlibabaAlihealthDrugKytUploadb2cbillAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_uploadb2cbill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果值 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 调用结果 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 调用结果描述 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // success + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUploadb2cbillResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUploadb2cbillResponse.go deleted file mode 100644 index 84d3db0399..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytUploadb2cbillResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -快易通零售B2C API返回值 -alibaba.alihealth.drug.kyt.uploadb2cbill - -快易通零售B2C单据上传 -*/ -type AlibabaAlihealthDrugKytUploadb2cbillAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytUploadb2cbillResponse -} - -// 快易通零售B2C 成功返回结果 -type AlibabaAlihealthDrugKytUploadb2cbillResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_uploadb2cbill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果值 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 调用结果 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 调用结果描述 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // success - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUploadcircubillAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytUploadcircubillAPIRequest.go new file mode 100644 index 0000000000..07adb467b7 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUploadcircubillAPIRequest.go @@ -0,0 +1,445 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +生产批发单据上传 API请求 +alibaba.alihealth.drug.kyt.uploadcircubill + +生产批发单据上传(非零售企业使用),包括101, "生产入库";102, "采购入库";103, "退货入库";104, "调拨入库";106, "零头入库";107, "供应入库";108, "召回入库";110,"赠品入库";111,"盘盈入库";112,"报废入库";113,"其他入库" +201, "销售出库";202, "退货出库";203, "调拨出库";204, "返工出库";205, "销毁出库";206, "抽检出库";207, "直调出库";208, "生产出库";209, "供应出库";211, "召回出库";212,"赠品出库";214,"盘亏出库";215,"损坏出库";216,"报废出库";217,"其他出库";237, "直调退货"。 +*/ +type AlibabaAlihealthDrugKytUploadcircubillAPIRequest struct { + model.Params + // 单据编号【同一个企业不能上传相同单据号】 + _billCode string + // 单据时间(扫码时间) + _billTime string + // 单据类型【102代表采购入库,201代表销售出库,其它单据类型详见文档】 + _billType int64 + // 药品类型【3普药2特药】89开头的码定义为特药,其它码定义成普药 + _physicType int64 + // 货主企业(单据的所有者,上传人)【注意:该入参是ref_ent_id,不是ent_id】 + _refUserId string + // 第三方物流代理企业【注意:该入参是ref_ent_id,不是ent_id】,该字段兼容之前接口逻辑,后期将不允许使用,不要填值。 + _agentRefUserId string + // 发货企业【注意:该入参是ent_id,并不是ref_ent_id】 + _fromUserId string + // 收货企业【注意:该入参是ent_id,并不是ref_ent_id】 + _toUserId string + // 直调企业【注意:该入参是ent_id,并不是ref_ent_id】 + _destUserId string + // 操作人标识(appkey编号) + _operIcCode string + // 单据提交者姓名 + _operIcName string + // 单据文件体【bas64字符串】,看对接文档中的代码示例,示例中有相应说明。 + _fileContent string + // 单据名称 + _uploadFileName string + // 客户端类型【暂定都写2】 + _clientType string + // (协同平台数据合规)应收货总数量 + _quReceivable int64 + // (协同平台数据合规)是否验证,0:未通过验证,1:已验证 + _xtIsCheck string + // (协同平台数据合规)未验证通过原因【验证未通过时填写】 + _xtCheckCode string + // (协同平台数据合规)未验证通过原因描述【验证未通过时填写】 + _xtCheckCodeDesc string + // (协同平台数据合规)药品列表Json:"codeCount": 药品数量 "commDrugId": 国家药品唯一标识 "exprieDate": 生产日期 "physicInfo": 药品信息 "pkgSpec": 包状规格 "prepnCount": 制剂数量 "produceBatchNo":生产批次 "produceDate": 生产日期 + _drugListJson string + // (协同平台数据合规)单据委托企业refEntId + _assRefEntId string + // (协同平台数据合规)药品配送企业entId【出库单,收货方为医疗机构时填写】 + _disEntId string + // (协同平台数据合规)药品配送企业【出库单,收货方为医疗机构时填写】 + _disRefEntId string + // (协同平台数据合规)收货人【必选】 + _toPerson string + // (协同平台数据合规)发货人【必选】 + _fromPerson string + // (协同平台数据合规)订货单编号【可选】 + _orderCode string + // (协同平台数据合规)发货单编号【必选】 + _fromBillCode string + // (协同平台数据合规)收货地址【必选】 + _toAddress string + // (协同平台数据合规)发货地址【必选】 + _fromAddress string + // (协同平台数据合规)单据委托企业entId + _assEntId string +} + +// 初始化AlibabaAlihealthDrugKytUploadcircubillAPIRequest对象 +func NewAlibabaAlihealthDrugKytUploadcircubillRequest() *AlibabaAlihealthDrugKytUploadcircubillAPIRequest{ + return &AlibabaAlihealthDrugKytUploadcircubillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.uploadcircubill" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据编号【同一个企业不能上传相同单据号】 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetBillCode() string { + return r._billCode +} +// BillTime Setter +// 单据时间(扫码时间) +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetBillTime(_billTime string) error { + r._billTime = _billTime + r.Set("bill_time", _billTime) + return nil +} + +// BillTime Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetBillTime() string { + return r._billTime +} +// BillType Setter +// 单据类型【102代表采购入库,201代表销售出库,其它单据类型详见文档】 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetBillType(_billType int64) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetBillType() int64 { + return r._billType +} +// PhysicType Setter +// 药品类型【3普药2特药】89开头的码定义为特药,其它码定义成普药 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetPhysicType(_physicType int64) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetPhysicType() int64 { + return r._physicType +} +// RefUserId Setter +// 货主企业(单据的所有者,上传人)【注意:该入参是ref_ent_id,不是ent_id】 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetRefUserId(_refUserId string) error { + r._refUserId = _refUserId + r.Set("ref_user_id", _refUserId) + return nil +} + +// RefUserId Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetRefUserId() string { + return r._refUserId +} +// AgentRefUserId Setter +// 第三方物流代理企业【注意:该入参是ref_ent_id,不是ent_id】,该字段兼容之前接口逻辑,后期将不允许使用,不要填值。 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetAgentRefUserId(_agentRefUserId string) error { + r._agentRefUserId = _agentRefUserId + r.Set("agent_ref_user_id", _agentRefUserId) + return nil +} + +// AgentRefUserId Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetAgentRefUserId() string { + return r._agentRefUserId +} +// FromUserId Setter +// 发货企业【注意:该入参是ent_id,并不是ref_ent_id】 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetFromUserId() string { + return r._fromUserId +} +// ToUserId Setter +// 收货企业【注意:该入参是ent_id,并不是ref_ent_id】 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetToUserId(_toUserId string) error { + r._toUserId = _toUserId + r.Set("to_user_id", _toUserId) + return nil +} + +// ToUserId Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetToUserId() string { + return r._toUserId +} +// DestUserId Setter +// 直调企业【注意:该入参是ent_id,并不是ref_ent_id】 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetDestUserId(_destUserId string) error { + r._destUserId = _destUserId + r.Set("dest_user_id", _destUserId) + return nil +} + +// DestUserId Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetDestUserId() string { + return r._destUserId +} +// OperIcCode Setter +// 操作人标识(appkey编号) +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetOperIcCode(_operIcCode string) error { + r._operIcCode = _operIcCode + r.Set("oper_ic_code", _operIcCode) + return nil +} + +// OperIcCode Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetOperIcCode() string { + return r._operIcCode +} +// OperIcName Setter +// 单据提交者姓名 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetOperIcName(_operIcName string) error { + r._operIcName = _operIcName + r.Set("oper_ic_name", _operIcName) + return nil +} + +// OperIcName Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetOperIcName() string { + return r._operIcName +} +// FileContent Setter +// 单据文件体【bas64字符串】,看对接文档中的代码示例,示例中有相应说明。 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetFileContent(_fileContent string) error { + r._fileContent = _fileContent + r.Set("file_content", _fileContent) + return nil +} + +// FileContent Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetFileContent() string { + return r._fileContent +} +// UploadFileName Setter +// 单据名称 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetUploadFileName(_uploadFileName string) error { + r._uploadFileName = _uploadFileName + r.Set("upload_file_name", _uploadFileName) + return nil +} + +// UploadFileName Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetUploadFileName() string { + return r._uploadFileName +} +// ClientType Setter +// 客户端类型【暂定都写2】 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetClientType(_clientType string) error { + r._clientType = _clientType + r.Set("client_type", _clientType) + return nil +} + +// ClientType Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetClientType() string { + return r._clientType +} +// QuReceivable Setter +// (协同平台数据合规)应收货总数量 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetQuReceivable(_quReceivable int64) error { + r._quReceivable = _quReceivable + r.Set("qu_receivable", _quReceivable) + return nil +} + +// QuReceivable Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetQuReceivable() int64 { + return r._quReceivable +} +// XtIsCheck Setter +// (协同平台数据合规)是否验证,0:未通过验证,1:已验证 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetXtIsCheck(_xtIsCheck string) error { + r._xtIsCheck = _xtIsCheck + r.Set("xt_is_check", _xtIsCheck) + return nil +} + +// XtIsCheck Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetXtIsCheck() string { + return r._xtIsCheck +} +// XtCheckCode Setter +// (协同平台数据合规)未验证通过原因【验证未通过时填写】 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetXtCheckCode(_xtCheckCode string) error { + r._xtCheckCode = _xtCheckCode + r.Set("xt_check_code", _xtCheckCode) + return nil +} + +// XtCheckCode Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetXtCheckCode() string { + return r._xtCheckCode +} +// XtCheckCodeDesc Setter +// (协同平台数据合规)未验证通过原因描述【验证未通过时填写】 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetXtCheckCodeDesc(_xtCheckCodeDesc string) error { + r._xtCheckCodeDesc = _xtCheckCodeDesc + r.Set("xt_check_code_desc", _xtCheckCodeDesc) + return nil +} + +// XtCheckCodeDesc Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetXtCheckCodeDesc() string { + return r._xtCheckCodeDesc +} +// DrugListJson Setter +// (协同平台数据合规)药品列表Json:"codeCount": 药品数量 "commDrugId": 国家药品唯一标识 "exprieDate": 生产日期 "physicInfo": 药品信息 "pkgSpec": 包状规格 "prepnCount": 制剂数量 "produceBatchNo":生产批次 "produceDate": 生产日期 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetDrugListJson(_drugListJson string) error { + r._drugListJson = _drugListJson + r.Set("drug_list_json", _drugListJson) + return nil +} + +// DrugListJson Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetDrugListJson() string { + return r._drugListJson +} +// AssRefEntId Setter +// (协同平台数据合规)单据委托企业refEntId +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetAssRefEntId(_assRefEntId string) error { + r._assRefEntId = _assRefEntId + r.Set("ass_ref_ent_id", _assRefEntId) + return nil +} + +// AssRefEntId Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetAssRefEntId() string { + return r._assRefEntId +} +// DisEntId Setter +// (协同平台数据合规)药品配送企业entId【出库单,收货方为医疗机构时填写】 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetDisEntId(_disEntId string) error { + r._disEntId = _disEntId + r.Set("dis_ent_id", _disEntId) + return nil +} + +// DisEntId Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetDisEntId() string { + return r._disEntId +} +// DisRefEntId Setter +// (协同平台数据合规)药品配送企业【出库单,收货方为医疗机构时填写】 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetDisRefEntId(_disRefEntId string) error { + r._disRefEntId = _disRefEntId + r.Set("dis_ref_ent_id", _disRefEntId) + return nil +} + +// DisRefEntId Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetDisRefEntId() string { + return r._disRefEntId +} +// ToPerson Setter +// (协同平台数据合规)收货人【必选】 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetToPerson(_toPerson string) error { + r._toPerson = _toPerson + r.Set("to_person", _toPerson) + return nil +} + +// ToPerson Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetToPerson() string { + return r._toPerson +} +// FromPerson Setter +// (协同平台数据合规)发货人【必选】 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetFromPerson(_fromPerson string) error { + r._fromPerson = _fromPerson + r.Set("from_person", _fromPerson) + return nil +} + +// FromPerson Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetFromPerson() string { + return r._fromPerson +} +// OrderCode Setter +// (协同平台数据合规)订货单编号【可选】 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetOrderCode() string { + return r._orderCode +} +// FromBillCode Setter +// (协同平台数据合规)发货单编号【必选】 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetFromBillCode(_fromBillCode string) error { + r._fromBillCode = _fromBillCode + r.Set("from_bill_code", _fromBillCode) + return nil +} + +// FromBillCode Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetFromBillCode() string { + return r._fromBillCode +} +// ToAddress Setter +// (协同平台数据合规)收货地址【必选】 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetToAddress(_toAddress string) error { + r._toAddress = _toAddress + r.Set("to_address", _toAddress) + return nil +} + +// ToAddress Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetToAddress() string { + return r._toAddress +} +// FromAddress Setter +// (协同平台数据合规)发货地址【必选】 +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetFromAddress(_fromAddress string) error { + r._fromAddress = _fromAddress + r.Set("from_address", _fromAddress) + return nil +} + +// FromAddress Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetFromAddress() string { + return r._fromAddress +} +// AssEntId Setter +// (协同平台数据合规)单据委托企业entId +func (r *AlibabaAlihealthDrugKytUploadcircubillAPIRequest) SetAssEntId(_assEntId string) error { + r._assEntId = _assEntId + r.Set("ass_ent_id", _assEntId) + return nil +} + +// AssEntId Getter +func (r AlibabaAlihealthDrugKytUploadcircubillAPIRequest) GetAssEntId() string { + return r._assEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUploadcircubillAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUploadcircubillAPIResponse.go new file mode 100644 index 0000000000..56ca007f0e --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUploadcircubillAPIResponse.go @@ -0,0 +1,34 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +生产批发单据上传 API返回值 +alibaba.alihealth.drug.kyt.uploadcircubill + +生产批发单据上传(非零售企业使用),包括101, "生产入库";102, "采购入库";103, "退货入库";104, "调拨入库";106, "零头入库";107, "供应入库";108, "召回入库";110,"赠品入库";111,"盘盈入库";112,"报废入库";113,"其他入库" +201, "销售出库";202, "退货出库";203, "调拨出库";204, "返工出库";205, "销毁出库";206, "抽检出库";207, "直调出库";208, "生产出库";209, "供应出库";211, "召回出库";212,"赠品出库";214,"盘亏出库";215,"损坏出库";216,"报废出库";217,"其他出库";237, "直调退货"。 +*/ +type AlibabaAlihealthDrugKytUploadcircubillAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytUploadcircubillAPIResponseModel +} + +// 生产批发单据上传 成功返回结果 +type AlibabaAlihealthDrugKytUploadcircubillAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_uploadcircubill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 返回结果 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 返回结果 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 是否成功(true 成功 ,false失败) + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUploadcircubillResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUploadcircubillResponse.go deleted file mode 100644 index 57a74507f8..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytUploadcircubillResponse.go +++ /dev/null @@ -1,34 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -生产批发单据上传 API返回值 -alibaba.alihealth.drug.kyt.uploadcircubill - -生产批发单据上传(非零售企业使用),包括101, "生产入库";102, "采购入库";103, "退货入库";104, "调拨入库";106, "零头入库";107, "供应入库";108, "召回入库";110,"赠品入库";111,"盘盈入库";112,"报废入库";113,"其他入库" -201, "销售出库";202, "退货出库";203, "调拨出库";204, "返工出库";205, "销毁出库";206, "抽检出库";207, "直调出库";208, "生产出库";209, "供应出库";211, "召回出库";212,"赠品出库";214,"盘亏出库";215,"损坏出库";216,"报废出库";217,"其他出库";237, "直调退货"。 -*/ -type AlibabaAlihealthDrugKytUploadcircubillAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytUploadcircubillResponse -} - -// 生产批发单据上传 成功返回结果 -type AlibabaAlihealthDrugKytUploadcircubillResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_uploadcircubill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 返回结果 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 返回结果 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 是否成功(true 成功 ,false失败) - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUploadinoutbillAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytUploadinoutbillAPIRequest.go new file mode 100644 index 0000000000..2c2c94fe06 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUploadinoutbillAPIRequest.go @@ -0,0 +1,573 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +企业上传出入库信息 API请求 +alibaba.alihealth.drug.kyt.uploadinoutbill + +企业上传出入库信息,包括101, "生产入库";102, "采购入库";103, "退货入库";104, "调拨入库";106, "零头入库";107, "供应入库";108, "召回入库";110,"赠品入库";111,"盘盈入库";112,"报废入库";113,"其他入库" +201, "销售出库";202, "退货出库";203, "调拨出库";204, "返工出库";205, "销毁出库";206, "抽检出库";207, "直调出库";208, "生产出库";209, "供应出库";211, "召回出库";212,"赠品出库";214,"盘亏出库";215,"损坏出库";216,"报废出库";217,"其他出库";237, "直调退货"。 +不包括对个人的零售出库,疫苗接种,领药出库。 +本接口与uploadcircubill接口的主要区别的,本接口入参中直接上传追溯码(多个码时用逗号分隔)。uploadcircubill接口入参中,需要上传码的单据文件(用扫码枪生成的xml文件),一般情况下使用uploadcircubill接口上传单据文件。 +*/ +type AlibabaAlihealthDrugKytUploadinoutbillAPIRequest struct { + model.Params + // 单据编号【同一个企业不能上传相同单据号】 + _billCode string + // 单据时间(扫码时间) + _billTime string + // 单据类型【102代表采购入库,201代表销售出库,其它单据类型详见文档】 + _billType int64 + // 药品类型【3普药2特药】89开头的码定义为特药,其它码定义成普药 + _physicType int64 + // 货主(单据的所有者,上传人),上传企业的单位维一编码【注意:该入参是ref_ent_id,不是ent_id】 + _refUserId string + // 第三方物流代理企业【注意:该入参是ref_ent_id,不是ent_id】,该字段兼容之前接口逻辑,后期将不允许使用,不要填值。 + _agentRefUserId string + // 发货企业entId【注意:该入参是ent_id,并不是ref_ent_id】 + _fromUserId string + // 收货企业entId【注意:该入参是ent_id,并不是ref_ent_id】 + _toUserId string + // 直调企业标识【注意:该入参是ent_id,并不是ref_ent_id】 + _destUserId string + // 单据提交者(调用接口时的appkey编号) + _operIcCode string + // 单据提交者姓名(出入库单上传人的名子) + _operIcName string + // 调用方类型[必须填2] + _clientType string + // 退货原因代码[退货入出库时填写] + _returnReasonCode string + // 退货原因描述[退货入出库时填写] + _returnReasonDes string + // 注销原因代码【销毁出库时填写】 + _cancelReasonCode string + // 注销原因描述【销毁出库时填写】 + _cancelReasonDes string + // 执行人姓名【销毁出库时填写】 + _executerName string + // 执行人证件号【销毁出库时填写】 + _executerCode string + // 监督人姓名【销毁出库时填写】 + _superviserName string + // 监督人证件号【销毁出库时填写】 + _superviserCode string + // 仓号 + _warehouseId string + // 药品ID[企业自已系统的药品ID] + _drugId string + // 追溯码[多个时用逗号分开] + _traceCodes []string + // (协同平台数据合规)应收货总数量 + _quReceivable int64 + // (协同平台数据合规)是否验证,0:未通过验证,1:已验证 + _xtIsCheck string + // (协同平台数据合规)未验证通过原因【验证未通过时填写】 + _xtCheckCode string + // (协同平台数据合规)未验证通过原因描述【验证未通过时填写】 + _xtCheckCodeDesc string + // (协同平台数据合规)药品列表Json:"codeCount": 药品数量 "commDrugId": 国家药品唯一标识 "exprieDate": 生产日期 "physicInfo": 药品信息 "pkgSpec": 包状规格 "prepnCount": 制剂数量 "produceBatchNo":生产批次 "produceDate": 生产日期 + _drugListJson string + // (协同平台数据合规)单据委托企业refEntId + _assRefEntId string + // (协同平台数据合规)药品配送企业entId出库单,收货方为医疗机构时填写】 + _disEntId string + // (协同平台数据合规)药品配送企业出库单,收货方为医疗机构时填写】 + _disRefEntId string + // (协同平台数据合规)收货人【必选】 + _toPerson string + // (协同平台数据合规)发货人【必选】 + _fromPerson string + // (协同平台数据合规)订货单编号【可选】 + _orderCode string + // (协同平台数据合规)发货单编号【必选】 + _fromBillCode string + // (协同平台数据合规)收货地址【必选】 + _toAddress string + // (协同平台数据合规)发货地址【必选】 + _fromAddress string + // (协同平台数据合规)单据委托企业entId + _assEntId string +} + +// 初始化AlibabaAlihealthDrugKytUploadinoutbillAPIRequest对象 +func NewAlibabaAlihealthDrugKytUploadinoutbillRequest() *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest{ + return &AlibabaAlihealthDrugKytUploadinoutbillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.uploadinoutbill" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据编号【同一个企业不能上传相同单据号】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetBillCode() string { + return r._billCode +} +// BillTime Setter +// 单据时间(扫码时间) +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetBillTime(_billTime string) error { + r._billTime = _billTime + r.Set("bill_time", _billTime) + return nil +} + +// BillTime Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetBillTime() string { + return r._billTime +} +// BillType Setter +// 单据类型【102代表采购入库,201代表销售出库,其它单据类型详见文档】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetBillType(_billType int64) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetBillType() int64 { + return r._billType +} +// PhysicType Setter +// 药品类型【3普药2特药】89开头的码定义为特药,其它码定义成普药 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetPhysicType(_physicType int64) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetPhysicType() int64 { + return r._physicType +} +// RefUserId Setter +// 货主(单据的所有者,上传人),上传企业的单位维一编码【注意:该入参是ref_ent_id,不是ent_id】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetRefUserId(_refUserId string) error { + r._refUserId = _refUserId + r.Set("ref_user_id", _refUserId) + return nil +} + +// RefUserId Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetRefUserId() string { + return r._refUserId +} +// AgentRefUserId Setter +// 第三方物流代理企业【注意:该入参是ref_ent_id,不是ent_id】,该字段兼容之前接口逻辑,后期将不允许使用,不要填值。 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetAgentRefUserId(_agentRefUserId string) error { + r._agentRefUserId = _agentRefUserId + r.Set("agent_ref_user_id", _agentRefUserId) + return nil +} + +// AgentRefUserId Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetAgentRefUserId() string { + return r._agentRefUserId +} +// FromUserId Setter +// 发货企业entId【注意:该入参是ent_id,并不是ref_ent_id】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetFromUserId() string { + return r._fromUserId +} +// ToUserId Setter +// 收货企业entId【注意:该入参是ent_id,并不是ref_ent_id】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetToUserId(_toUserId string) error { + r._toUserId = _toUserId + r.Set("to_user_id", _toUserId) + return nil +} + +// ToUserId Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetToUserId() string { + return r._toUserId +} +// DestUserId Setter +// 直调企业标识【注意:该入参是ent_id,并不是ref_ent_id】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetDestUserId(_destUserId string) error { + r._destUserId = _destUserId + r.Set("dest_user_id", _destUserId) + return nil +} + +// DestUserId Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetDestUserId() string { + return r._destUserId +} +// OperIcCode Setter +// 单据提交者(调用接口时的appkey编号) +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetOperIcCode(_operIcCode string) error { + r._operIcCode = _operIcCode + r.Set("oper_ic_code", _operIcCode) + return nil +} + +// OperIcCode Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetOperIcCode() string { + return r._operIcCode +} +// OperIcName Setter +// 单据提交者姓名(出入库单上传人的名子) +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetOperIcName(_operIcName string) error { + r._operIcName = _operIcName + r.Set("oper_ic_name", _operIcName) + return nil +} + +// OperIcName Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetOperIcName() string { + return r._operIcName +} +// ClientType Setter +// 调用方类型[必须填2] +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetClientType(_clientType string) error { + r._clientType = _clientType + r.Set("client_type", _clientType) + return nil +} + +// ClientType Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetClientType() string { + return r._clientType +} +// ReturnReasonCode Setter +// 退货原因代码[退货入出库时填写] +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetReturnReasonCode(_returnReasonCode string) error { + r._returnReasonCode = _returnReasonCode + r.Set("return_reason_code", _returnReasonCode) + return nil +} + +// ReturnReasonCode Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetReturnReasonCode() string { + return r._returnReasonCode +} +// ReturnReasonDes Setter +// 退货原因描述[退货入出库时填写] +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetReturnReasonDes(_returnReasonDes string) error { + r._returnReasonDes = _returnReasonDes + r.Set("return_reason_des", _returnReasonDes) + return nil +} + +// ReturnReasonDes Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetReturnReasonDes() string { + return r._returnReasonDes +} +// CancelReasonCode Setter +// 注销原因代码【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetCancelReasonCode(_cancelReasonCode string) error { + r._cancelReasonCode = _cancelReasonCode + r.Set("cancel_reason_code", _cancelReasonCode) + return nil +} + +// CancelReasonCode Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetCancelReasonCode() string { + return r._cancelReasonCode +} +// CancelReasonDes Setter +// 注销原因描述【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetCancelReasonDes(_cancelReasonDes string) error { + r._cancelReasonDes = _cancelReasonDes + r.Set("cancel_reason_des", _cancelReasonDes) + return nil +} + +// CancelReasonDes Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetCancelReasonDes() string { + return r._cancelReasonDes +} +// ExecuterName Setter +// 执行人姓名【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetExecuterName(_executerName string) error { + r._executerName = _executerName + r.Set("executer_name", _executerName) + return nil +} + +// ExecuterName Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetExecuterName() string { + return r._executerName +} +// ExecuterCode Setter +// 执行人证件号【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetExecuterCode(_executerCode string) error { + r._executerCode = _executerCode + r.Set("executer_code", _executerCode) + return nil +} + +// ExecuterCode Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetExecuterCode() string { + return r._executerCode +} +// SuperviserName Setter +// 监督人姓名【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetSuperviserName(_superviserName string) error { + r._superviserName = _superviserName + r.Set("superviser_name", _superviserName) + return nil +} + +// SuperviserName Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetSuperviserName() string { + return r._superviserName +} +// SuperviserCode Setter +// 监督人证件号【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetSuperviserCode(_superviserCode string) error { + r._superviserCode = _superviserCode + r.Set("superviser_code", _superviserCode) + return nil +} + +// SuperviserCode Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetSuperviserCode() string { + return r._superviserCode +} +// WarehouseId Setter +// 仓号 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetWarehouseId(_warehouseId string) error { + r._warehouseId = _warehouseId + r.Set("warehouse_id", _warehouseId) + return nil +} + +// WarehouseId Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetWarehouseId() string { + return r._warehouseId +} +// DrugId Setter +// 药品ID[企业自已系统的药品ID] +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetDrugId(_drugId string) error { + r._drugId = _drugId + r.Set("drug_id", _drugId) + return nil +} + +// DrugId Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetDrugId() string { + return r._drugId +} +// TraceCodes Setter +// 追溯码[多个时用逗号分开] +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetTraceCodes(_traceCodes []string) error { + r._traceCodes = _traceCodes + r.Set("trace_codes", _traceCodes) + return nil +} + +// TraceCodes Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetTraceCodes() []string { + return r._traceCodes +} +// QuReceivable Setter +// (协同平台数据合规)应收货总数量 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetQuReceivable(_quReceivable int64) error { + r._quReceivable = _quReceivable + r.Set("qu_receivable", _quReceivable) + return nil +} + +// QuReceivable Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetQuReceivable() int64 { + return r._quReceivable +} +// XtIsCheck Setter +// (协同平台数据合规)是否验证,0:未通过验证,1:已验证 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetXtIsCheck(_xtIsCheck string) error { + r._xtIsCheck = _xtIsCheck + r.Set("xt_is_check", _xtIsCheck) + return nil +} + +// XtIsCheck Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetXtIsCheck() string { + return r._xtIsCheck +} +// XtCheckCode Setter +// (协同平台数据合规)未验证通过原因【验证未通过时填写】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetXtCheckCode(_xtCheckCode string) error { + r._xtCheckCode = _xtCheckCode + r.Set("xt_check_code", _xtCheckCode) + return nil +} + +// XtCheckCode Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetXtCheckCode() string { + return r._xtCheckCode +} +// XtCheckCodeDesc Setter +// (协同平台数据合规)未验证通过原因描述【验证未通过时填写】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetXtCheckCodeDesc(_xtCheckCodeDesc string) error { + r._xtCheckCodeDesc = _xtCheckCodeDesc + r.Set("xt_check_code_desc", _xtCheckCodeDesc) + return nil +} + +// XtCheckCodeDesc Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetXtCheckCodeDesc() string { + return r._xtCheckCodeDesc +} +// DrugListJson Setter +// (协同平台数据合规)药品列表Json:"codeCount": 药品数量 "commDrugId": 国家药品唯一标识 "exprieDate": 生产日期 "physicInfo": 药品信息 "pkgSpec": 包状规格 "prepnCount": 制剂数量 "produceBatchNo":生产批次 "produceDate": 生产日期 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetDrugListJson(_drugListJson string) error { + r._drugListJson = _drugListJson + r.Set("drug_list_json", _drugListJson) + return nil +} + +// DrugListJson Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetDrugListJson() string { + return r._drugListJson +} +// AssRefEntId Setter +// (协同平台数据合规)单据委托企业refEntId +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetAssRefEntId(_assRefEntId string) error { + r._assRefEntId = _assRefEntId + r.Set("ass_ref_ent_id", _assRefEntId) + return nil +} + +// AssRefEntId Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetAssRefEntId() string { + return r._assRefEntId +} +// DisEntId Setter +// (协同平台数据合规)药品配送企业entId出库单,收货方为医疗机构时填写】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetDisEntId(_disEntId string) error { + r._disEntId = _disEntId + r.Set("dis_ent_id", _disEntId) + return nil +} + +// DisEntId Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetDisEntId() string { + return r._disEntId +} +// DisRefEntId Setter +// (协同平台数据合规)药品配送企业出库单,收货方为医疗机构时填写】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetDisRefEntId(_disRefEntId string) error { + r._disRefEntId = _disRefEntId + r.Set("dis_ref_ent_id", _disRefEntId) + return nil +} + +// DisRefEntId Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetDisRefEntId() string { + return r._disRefEntId +} +// ToPerson Setter +// (协同平台数据合规)收货人【必选】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetToPerson(_toPerson string) error { + r._toPerson = _toPerson + r.Set("to_person", _toPerson) + return nil +} + +// ToPerson Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetToPerson() string { + return r._toPerson +} +// FromPerson Setter +// (协同平台数据合规)发货人【必选】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetFromPerson(_fromPerson string) error { + r._fromPerson = _fromPerson + r.Set("from_person", _fromPerson) + return nil +} + +// FromPerson Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetFromPerson() string { + return r._fromPerson +} +// OrderCode Setter +// (协同平台数据合规)订货单编号【可选】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetOrderCode() string { + return r._orderCode +} +// FromBillCode Setter +// (协同平台数据合规)发货单编号【必选】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetFromBillCode(_fromBillCode string) error { + r._fromBillCode = _fromBillCode + r.Set("from_bill_code", _fromBillCode) + return nil +} + +// FromBillCode Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetFromBillCode() string { + return r._fromBillCode +} +// ToAddress Setter +// (协同平台数据合规)收货地址【必选】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetToAddress(_toAddress string) error { + r._toAddress = _toAddress + r.Set("to_address", _toAddress) + return nil +} + +// ToAddress Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetToAddress() string { + return r._toAddress +} +// FromAddress Setter +// (协同平台数据合规)发货地址【必选】 +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetFromAddress(_fromAddress string) error { + r._fromAddress = _fromAddress + r.Set("from_address", _fromAddress) + return nil +} + +// FromAddress Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetFromAddress() string { + return r._fromAddress +} +// AssEntId Setter +// (协同平台数据合规)单据委托企业entId +func (r *AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) SetAssEntId(_assEntId string) error { + r._assEntId = _assEntId + r.Set("ass_ent_id", _assEntId) + return nil +} + +// AssEntId Getter +func (r AlibabaAlihealthDrugKytUploadinoutbillAPIRequest) GetAssEntId() string { + return r._assEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUploadinoutbillAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUploadinoutbillAPIResponse.go new file mode 100644 index 0000000000..41a8ca8730 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUploadinoutbillAPIResponse.go @@ -0,0 +1,36 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +企业上传出入库信息 API返回值 +alibaba.alihealth.drug.kyt.uploadinoutbill + +企业上传出入库信息,包括101, "生产入库";102, "采购入库";103, "退货入库";104, "调拨入库";106, "零头入库";107, "供应入库";108, "召回入库";110,"赠品入库";111,"盘盈入库";112,"报废入库";113,"其他入库" +201, "销售出库";202, "退货出库";203, "调拨出库";204, "返工出库";205, "销毁出库";206, "抽检出库";207, "直调出库";208, "生产出库";209, "供应出库";211, "召回出库";212,"赠品出库";214,"盘亏出库";215,"损坏出库";216,"报废出库";217,"其他出库";237, "直调退货"。 +不包括对个人的零售出库,疫苗接种,领药出库。 +本接口与uploadcircubill接口的主要区别的,本接口入参中直接上传追溯码(多个码时用逗号分隔)。uploadcircubill接口入参中,需要上传码的单据文件(用扫码枪生成的xml文件),一般情况下使用uploadcircubill接口上传单据文件。 +*/ +type AlibabaAlihealthDrugKytUploadinoutbillAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytUploadinoutbillAPIResponseModel +} + +// 企业上传出入库信息 成功返回结果 +type AlibabaAlihealthDrugKytUploadinoutbillAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_uploadinoutbill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 返回编码(BILL_DECODE_ERROR 单据转码失败 BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 返回信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 是否成功(true 成功 false 失败) + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUploadinoutbillResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUploadinoutbillResponse.go deleted file mode 100644 index 06a3640d87..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytUploadinoutbillResponse.go +++ /dev/null @@ -1,36 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -企业上传出入库信息 API返回值 -alibaba.alihealth.drug.kyt.uploadinoutbill - -企业上传出入库信息,包括101, "生产入库";102, "采购入库";103, "退货入库";104, "调拨入库";106, "零头入库";107, "供应入库";108, "召回入库";110,"赠品入库";111,"盘盈入库";112,"报废入库";113,"其他入库" -201, "销售出库";202, "退货出库";203, "调拨出库";204, "返工出库";205, "销毁出库";206, "抽检出库";207, "直调出库";208, "生产出库";209, "供应出库";211, "召回出库";212,"赠品出库";214,"盘亏出库";215,"损坏出库";216,"报废出库";217,"其他出库";237, "直调退货"。 -不包括对个人的零售出库,疫苗接种,领药出库。 -本接口与uploadcircubill接口的主要区别的,本接口入参中直接上传追溯码(多个码时用逗号分隔)。uploadcircubill接口入参中,需要上传码的单据文件(用扫码枪生成的xml文件),一般情况下使用uploadcircubill接口上传单据文件。 -*/ -type AlibabaAlihealthDrugKytUploadinoutbillAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytUploadinoutbillResponse -} - -// 企业上传出入库信息 成功返回结果 -type AlibabaAlihealthDrugKytUploadinoutbillResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_uploadinoutbill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 返回编码(BILL_DECODE_ERROR 单据转码失败 BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 返回信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 是否成功(true 成功 false 失败) - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUploadinsignAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytUploadinsignAPIRequest.go new file mode 100644 index 0000000000..65de903744 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUploadinsignAPIRequest.go @@ -0,0 +1,122 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +仓库批量扫码回传接口 API请求 +alibaba.alihealth.drug.kyt.uploadinsign + +连锁总部仓库在采购入库或者销售出库环节,批量采集追溯码之后回传到码上放心平台。 +*/ +type AlibabaAlihealthDrugKytUploadinsignAPIRequest struct { + model.Params + // 单据编号(小于20位字符串,唯一) + _billCode string + // 单据生成时间 + _billTime string + // 码上放心平台企业编码(仓库所有者) + _refUserId string + // 仓库名称(企业自定义) + _warehouseId string + // 药品ID + _drugId string + // 追溯码[多个时用逗号分开] + _traceCodes []string +} + +// 初始化AlibabaAlihealthDrugKytUploadinsignAPIRequest对象 +func NewAlibabaAlihealthDrugKytUploadinsignRequest() *AlibabaAlihealthDrugKytUploadinsignAPIRequest{ + return &AlibabaAlihealthDrugKytUploadinsignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytUploadinsignAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.uploadinsign" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytUploadinsignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据编号(小于20位字符串,唯一) +func (r *AlibabaAlihealthDrugKytUploadinsignAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytUploadinsignAPIRequest) GetBillCode() string { + return r._billCode +} +// BillTime Setter +// 单据生成时间 +func (r *AlibabaAlihealthDrugKytUploadinsignAPIRequest) SetBillTime(_billTime string) error { + r._billTime = _billTime + r.Set("bill_time", _billTime) + return nil +} + +// BillTime Getter +func (r AlibabaAlihealthDrugKytUploadinsignAPIRequest) GetBillTime() string { + return r._billTime +} +// RefUserId Setter +// 码上放心平台企业编码(仓库所有者) +func (r *AlibabaAlihealthDrugKytUploadinsignAPIRequest) SetRefUserId(_refUserId string) error { + r._refUserId = _refUserId + r.Set("ref_user_id", _refUserId) + return nil +} + +// RefUserId Getter +func (r AlibabaAlihealthDrugKytUploadinsignAPIRequest) GetRefUserId() string { + return r._refUserId +} +// WarehouseId Setter +// 仓库名称(企业自定义) +func (r *AlibabaAlihealthDrugKytUploadinsignAPIRequest) SetWarehouseId(_warehouseId string) error { + r._warehouseId = _warehouseId + r.Set("warehouse_id", _warehouseId) + return nil +} + +// WarehouseId Getter +func (r AlibabaAlihealthDrugKytUploadinsignAPIRequest) GetWarehouseId() string { + return r._warehouseId +} +// DrugId Setter +// 药品ID +func (r *AlibabaAlihealthDrugKytUploadinsignAPIRequest) SetDrugId(_drugId string) error { + r._drugId = _drugId + r.Set("drug_id", _drugId) + return nil +} + +// DrugId Getter +func (r AlibabaAlihealthDrugKytUploadinsignAPIRequest) GetDrugId() string { + return r._drugId +} +// TraceCodes Setter +// 追溯码[多个时用逗号分开] +func (r *AlibabaAlihealthDrugKytUploadinsignAPIRequest) SetTraceCodes(_traceCodes []string) error { + r._traceCodes = _traceCodes + r.Set("trace_codes", _traceCodes) + return nil +} + +// TraceCodes Getter +func (r AlibabaAlihealthDrugKytUploadinsignAPIRequest) GetTraceCodes() []string { + return r._traceCodes +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUploadinsignAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUploadinsignAPIResponse.go new file mode 100644 index 0000000000..e82f8f203e --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUploadinsignAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +仓库批量扫码回传接口 API返回值 +alibaba.alihealth.drug.kyt.uploadinsign + +连锁总部仓库在采购入库或者销售出库环节,批量采集追溯码之后回传到码上放心平台。 +*/ +type AlibabaAlihealthDrugKytUploadinsignAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytUploadinsignAPIResponseModel +} + +// 仓库批量扫码回传接口 成功返回结果 +type AlibabaAlihealthDrugKytUploadinsignAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_uploadinsign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 返回编码(BILL_DECODE_ERROR 单据转码失败 BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 返回信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 是否成功(true 成功 false 失败) + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUploadinsignResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUploadinsignResponse.go deleted file mode 100644 index 5480116ac2..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytUploadinsignResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -仓库批量扫码回传接口 API返回值 -alibaba.alihealth.drug.kyt.uploadinsign - -连锁总部仓库在采购入库或者销售出库环节,批量采集追溯码之后回传到码上放心平台。 -*/ -type AlibabaAlihealthDrugKytUploadinsignAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytUploadinsignResponse -} - -// 仓库批量扫码回传接口 成功返回结果 -type AlibabaAlihealthDrugKytUploadinsignResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_uploadinsign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 返回编码(BILL_DECODE_ERROR 单据转码失败 BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 返回信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 是否成功(true 成功 false 失败) - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUploadrelationAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytUploadrelationAPIRequest.go new file mode 100644 index 0000000000..4d8cdcdd4b --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUploadrelationAPIRequest.go @@ -0,0 +1,122 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +关联关系上传 API请求 +alibaba.alihealth.drug.kyt.uploadrelation + +关联关系上传 +*/ +type AlibabaAlihealthDrugKytUploadrelationAPIRequest struct { + model.Params + // 关联关系文件信息 + _saveCodeRelation *SaveCodeRelationType + // affirmFlag + _affirmFlag string + // fileContent + _fileContent string + // 加密之后的文件内容字符串 + _fileContentString string + // 上传文件的企业ID + _refEntId string + // 客户端类型 + _clientType string +} + +// 初始化AlibabaAlihealthDrugKytUploadrelationAPIRequest对象 +func NewAlibabaAlihealthDrugKytUploadrelationRequest() *AlibabaAlihealthDrugKytUploadrelationAPIRequest{ + return &AlibabaAlihealthDrugKytUploadrelationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytUploadrelationAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.uploadrelation" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytUploadrelationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SaveCodeRelation Setter +// 关联关系文件信息 +func (r *AlibabaAlihealthDrugKytUploadrelationAPIRequest) SetSaveCodeRelation(_saveCodeRelation *SaveCodeRelationType) error { + r._saveCodeRelation = _saveCodeRelation + r.Set("save_code_relation", _saveCodeRelation) + return nil +} + +// SaveCodeRelation Getter +func (r AlibabaAlihealthDrugKytUploadrelationAPIRequest) GetSaveCodeRelation() *SaveCodeRelationType { + return r._saveCodeRelation +} +// AffirmFlag Setter +// affirmFlag +func (r *AlibabaAlihealthDrugKytUploadrelationAPIRequest) SetAffirmFlag(_affirmFlag string) error { + r._affirmFlag = _affirmFlag + r.Set("affirm_flag", _affirmFlag) + return nil +} + +// AffirmFlag Getter +func (r AlibabaAlihealthDrugKytUploadrelationAPIRequest) GetAffirmFlag() string { + return r._affirmFlag +} +// FileContent Setter +// fileContent +func (r *AlibabaAlihealthDrugKytUploadrelationAPIRequest) SetFileContent(_fileContent string) error { + r._fileContent = _fileContent + r.Set("file_content", _fileContent) + return nil +} + +// FileContent Getter +func (r AlibabaAlihealthDrugKytUploadrelationAPIRequest) GetFileContent() string { + return r._fileContent +} +// FileContentString Setter +// 加密之后的文件内容字符串 +func (r *AlibabaAlihealthDrugKytUploadrelationAPIRequest) SetFileContentString(_fileContentString string) error { + r._fileContentString = _fileContentString + r.Set("file_content_string", _fileContentString) + return nil +} + +// FileContentString Getter +func (r AlibabaAlihealthDrugKytUploadrelationAPIRequest) GetFileContentString() string { + return r._fileContentString +} +// RefEntId Setter +// 上传文件的企业ID +func (r *AlibabaAlihealthDrugKytUploadrelationAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytUploadrelationAPIRequest) GetRefEntId() string { + return r._refEntId +} +// ClientType Setter +// 客户端类型 +func (r *AlibabaAlihealthDrugKytUploadrelationAPIRequest) SetClientType(_clientType string) error { + r._clientType = _clientType + r.Set("client_type", _clientType) + return nil +} + +// ClientType Getter +func (r AlibabaAlihealthDrugKytUploadrelationAPIRequest) GetClientType() string { + return r._clientType +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUploadrelationAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUploadrelationAPIResponse.go new file mode 100644 index 0000000000..21ed1c3eda --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUploadrelationAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +关联关系上传 API返回值 +alibaba.alihealth.drug.kyt.uploadrelation + +关联关系上传 +*/ +type AlibabaAlihealthDrugKytUploadrelationAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytUploadrelationAPIResponseModel +} + +// 关联关系上传 成功返回结果 +type AlibabaAlihealthDrugKytUploadrelationAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_uploadrelation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugKytUploadrelationResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUploadrelationResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUploadrelationResponse.go deleted file mode 100644 index 94fbb66615..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytUploadrelationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -关联关系上传 API返回值 -alibaba.alihealth.drug.kyt.uploadrelation - -关联关系上传 -*/ -type AlibabaAlihealthDrugKytUploadrelationAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytUploadrelationResponse -} - -// 关联关系上传 成功返回结果 -type AlibabaAlihealthDrugKytUploadrelationResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_uploadrelation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugKytUploadrelationResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUploadretailAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytUploadretailAPIRequest.go new file mode 100644 index 0000000000..4b73225882 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUploadretailAPIRequest.go @@ -0,0 +1,290 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店销售扫码回传接口 API请求 +alibaba.alihealth.drug.kyt.uploadretail + +门店在销售给顾客时,扫描追溯码的数据按照单据回传; +*/ +type AlibabaAlihealthDrugKytUploadretailAPIRequest struct { + model.Params + // 单据编号(唯一) + _billCode string + // 单据生成时间 + _billTime string + // 单据类型[321,零售出库][322,疫苗接种] + _billType int64 + // 药品类型[3,普药] + _physicType int64 + // 码上放心平台企业编码(门店) + _refUserId string + // 发货企业(可为空) + _fromUserId string + // 单据提交者(appkey编号) + _operIcCode string + // 单据提交者姓名(可为空) + _operIcName string + // 请求类型[暂定都写2] + _clientType string + // 追溯码[多个时用逗号分开] + _traceCodes []string + // 患者电话 + _userTel string + // 互联网标识 + _networkBillFlag string + // 医师名单 + _medicDoctor string + // 药品分发者 + _medicDispenser string + // 患者名称 + _userName string + // 患者代理领药人 + _userAgent string + // 购买人证件类型【1身份证2护照3 军官证4 医保卡5接种卡6学生证9其它】 + _customerIdType string + // 购买人证件编号 + _customerId string +} + +// 初始化AlibabaAlihealthDrugKytUploadretailAPIRequest对象 +func NewAlibabaAlihealthDrugKytUploadretailRequest() *AlibabaAlihealthDrugKytUploadretailAPIRequest{ + return &AlibabaAlihealthDrugKytUploadretailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.uploadretail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据编号(唯一) +func (r *AlibabaAlihealthDrugKytUploadretailAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetBillCode() string { + return r._billCode +} +// BillTime Setter +// 单据生成时间 +func (r *AlibabaAlihealthDrugKytUploadretailAPIRequest) SetBillTime(_billTime string) error { + r._billTime = _billTime + r.Set("bill_time", _billTime) + return nil +} + +// BillTime Getter +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetBillTime() string { + return r._billTime +} +// BillType Setter +// 单据类型[321,零售出库][322,疫苗接种] +func (r *AlibabaAlihealthDrugKytUploadretailAPIRequest) SetBillType(_billType int64) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetBillType() int64 { + return r._billType +} +// PhysicType Setter +// 药品类型[3,普药] +func (r *AlibabaAlihealthDrugKytUploadretailAPIRequest) SetPhysicType(_physicType int64) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetPhysicType() int64 { + return r._physicType +} +// RefUserId Setter +// 码上放心平台企业编码(门店) +func (r *AlibabaAlihealthDrugKytUploadretailAPIRequest) SetRefUserId(_refUserId string) error { + r._refUserId = _refUserId + r.Set("ref_user_id", _refUserId) + return nil +} + +// RefUserId Getter +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetRefUserId() string { + return r._refUserId +} +// FromUserId Setter +// 发货企业(可为空) +func (r *AlibabaAlihealthDrugKytUploadretailAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetFromUserId() string { + return r._fromUserId +} +// OperIcCode Setter +// 单据提交者(appkey编号) +func (r *AlibabaAlihealthDrugKytUploadretailAPIRequest) SetOperIcCode(_operIcCode string) error { + r._operIcCode = _operIcCode + r.Set("oper_ic_code", _operIcCode) + return nil +} + +// OperIcCode Getter +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetOperIcCode() string { + return r._operIcCode +} +// OperIcName Setter +// 单据提交者姓名(可为空) +func (r *AlibabaAlihealthDrugKytUploadretailAPIRequest) SetOperIcName(_operIcName string) error { + r._operIcName = _operIcName + r.Set("oper_ic_name", _operIcName) + return nil +} + +// OperIcName Getter +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetOperIcName() string { + return r._operIcName +} +// ClientType Setter +// 请求类型[暂定都写2] +func (r *AlibabaAlihealthDrugKytUploadretailAPIRequest) SetClientType(_clientType string) error { + r._clientType = _clientType + r.Set("client_type", _clientType) + return nil +} + +// ClientType Getter +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetClientType() string { + return r._clientType +} +// TraceCodes Setter +// 追溯码[多个时用逗号分开] +func (r *AlibabaAlihealthDrugKytUploadretailAPIRequest) SetTraceCodes(_traceCodes []string) error { + r._traceCodes = _traceCodes + r.Set("trace_codes", _traceCodes) + return nil +} + +// TraceCodes Getter +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetTraceCodes() []string { + return r._traceCodes +} +// UserTel Setter +// 患者电话 +func (r *AlibabaAlihealthDrugKytUploadretailAPIRequest) SetUserTel(_userTel string) error { + r._userTel = _userTel + r.Set("user_tel", _userTel) + return nil +} + +// UserTel Getter +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetUserTel() string { + return r._userTel +} +// NetworkBillFlag Setter +// 互联网标识 +func (r *AlibabaAlihealthDrugKytUploadretailAPIRequest) SetNetworkBillFlag(_networkBillFlag string) error { + r._networkBillFlag = _networkBillFlag + r.Set("network_bill_flag", _networkBillFlag) + return nil +} + +// NetworkBillFlag Getter +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetNetworkBillFlag() string { + return r._networkBillFlag +} +// MedicDoctor Setter +// 医师名单 +func (r *AlibabaAlihealthDrugKytUploadretailAPIRequest) SetMedicDoctor(_medicDoctor string) error { + r._medicDoctor = _medicDoctor + r.Set("medic_doctor", _medicDoctor) + return nil +} + +// MedicDoctor Getter +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetMedicDoctor() string { + return r._medicDoctor +} +// MedicDispenser Setter +// 药品分发者 +func (r *AlibabaAlihealthDrugKytUploadretailAPIRequest) SetMedicDispenser(_medicDispenser string) error { + r._medicDispenser = _medicDispenser + r.Set("medic_dispenser", _medicDispenser) + return nil +} + +// MedicDispenser Getter +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetMedicDispenser() string { + return r._medicDispenser +} +// UserName Setter +// 患者名称 +func (r *AlibabaAlihealthDrugKytUploadretailAPIRequest) SetUserName(_userName string) error { + r._userName = _userName + r.Set("user_name", _userName) + return nil +} + +// UserName Getter +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetUserName() string { + return r._userName +} +// UserAgent Setter +// 患者代理领药人 +func (r *AlibabaAlihealthDrugKytUploadretailAPIRequest) SetUserAgent(_userAgent string) error { + r._userAgent = _userAgent + r.Set("user_agent", _userAgent) + return nil +} + +// UserAgent Getter +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetUserAgent() string { + return r._userAgent +} +// CustomerIdType Setter +// 购买人证件类型【1身份证2护照3 军官证4 医保卡5接种卡6学生证9其它】 +func (r *AlibabaAlihealthDrugKytUploadretailAPIRequest) SetCustomerIdType(_customerIdType string) error { + r._customerIdType = _customerIdType + r.Set("customer_id_type", _customerIdType) + return nil +} + +// CustomerIdType Getter +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetCustomerIdType() string { + return r._customerIdType +} +// CustomerId Setter +// 购买人证件编号 +func (r *AlibabaAlihealthDrugKytUploadretailAPIRequest) SetCustomerId(_customerId string) error { + r._customerId = _customerId + r.Set("customer_id", _customerId) + return nil +} + +// CustomerId Getter +func (r AlibabaAlihealthDrugKytUploadretailAPIRequest) GetCustomerId() string { + return r._customerId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUploadretailAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUploadretailAPIResponse.go new file mode 100644 index 0000000000..1e9fd18237 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUploadretailAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店销售扫码回传接口 API返回值 +alibaba.alihealth.drug.kyt.uploadretail + +门店在销售给顾客时,扫描追溯码的数据按照单据回传; +*/ +type AlibabaAlihealthDrugKytUploadretailAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytUploadretailAPIResponseModel +} + +// 门店销售扫码回传接口 成功返回结果 +type AlibabaAlihealthDrugKytUploadretailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_uploadretail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 上传单据文件队列表标识 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 错误码(BILL_DECODE_ERROR 单据转码失败 2.BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 错误信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 是否成功(true 成功 ,false失败) + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUploadretailResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUploadretailResponse.go deleted file mode 100644 index 479777f3d1..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytUploadretailResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店销售扫码回传接口 API返回值 -alibaba.alihealth.drug.kyt.uploadretail - -门店在销售给顾客时,扫描追溯码的数据按照单据回传; -*/ -type AlibabaAlihealthDrugKytUploadretailAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytUploadretailResponse -} - -// 门店销售扫码回传接口 成功返回结果 -type AlibabaAlihealthDrugKytUploadretailResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_uploadretail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 上传单据文件队列表标识 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 错误码(BILL_DECODE_ERROR 单据转码失败 2.BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 错误信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 是否成功(true 成功 ,false失败) - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUpstorebillfileAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytUpstorebillfileAPIRequest.go new file mode 100644 index 0000000000..ca7f5739c5 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUpstorebillfileAPIRequest.go @@ -0,0 +1,192 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传零售出入库单(上传文件) API请求 +alibaba.alihealth.drug.kyt.upstorebillfile + +上传零售出入库单(上传文件) +*/ +type AlibabaAlihealthDrugKytUpstorebillfileAPIRequest struct { + model.Params + // 单据编号 + _billCode string + // 单据日期 + _billTime string + // 单据类型[321,零售出库][322,疫苗接种] + _billType int64 + // 药品类型[3,普药] + _physicType int64 + // 上传企业的单位编码 + _refUserId string + // 发货企业(参与人标识,为null时会通过refEntId自动得到) + _fromUserId string + // 单据提交者(key编号) + _operIcCode string + // 据提交者姓名 + _operIcName string + // 文件内容 + _fileContent string + // 文件名 + _uploadFileName string + // 客户端类型[暂定都写2] + _clientType string +} + +// 初始化AlibabaAlihealthDrugKytUpstorebillfileAPIRequest对象 +func NewAlibabaAlihealthDrugKytUpstorebillfileRequest() *AlibabaAlihealthDrugKytUpstorebillfileAPIRequest{ + return &AlibabaAlihealthDrugKytUpstorebillfileAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.upstorebillfile" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据编号 +func (r *AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) GetBillCode() string { + return r._billCode +} +// BillTime Setter +// 单据日期 +func (r *AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) SetBillTime(_billTime string) error { + r._billTime = _billTime + r.Set("bill_time", _billTime) + return nil +} + +// BillTime Getter +func (r AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) GetBillTime() string { + return r._billTime +} +// BillType Setter +// 单据类型[321,零售出库][322,疫苗接种] +func (r *AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) SetBillType(_billType int64) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) GetBillType() int64 { + return r._billType +} +// PhysicType Setter +// 药品类型[3,普药] +func (r *AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) SetPhysicType(_physicType int64) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) GetPhysicType() int64 { + return r._physicType +} +// RefUserId Setter +// 上传企业的单位编码 +func (r *AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) SetRefUserId(_refUserId string) error { + r._refUserId = _refUserId + r.Set("ref_user_id", _refUserId) + return nil +} + +// RefUserId Getter +func (r AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) GetRefUserId() string { + return r._refUserId +} +// FromUserId Setter +// 发货企业(参与人标识,为null时会通过refEntId自动得到) +func (r *AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) GetFromUserId() string { + return r._fromUserId +} +// OperIcCode Setter +// 单据提交者(key编号) +func (r *AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) SetOperIcCode(_operIcCode string) error { + r._operIcCode = _operIcCode + r.Set("oper_ic_code", _operIcCode) + return nil +} + +// OperIcCode Getter +func (r AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) GetOperIcCode() string { + return r._operIcCode +} +// OperIcName Setter +// 据提交者姓名 +func (r *AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) SetOperIcName(_operIcName string) error { + r._operIcName = _operIcName + r.Set("oper_ic_name", _operIcName) + return nil +} + +// OperIcName Getter +func (r AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) GetOperIcName() string { + return r._operIcName +} +// FileContent Setter +// 文件内容 +func (r *AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) SetFileContent(_fileContent string) error { + r._fileContent = _fileContent + r.Set("file_content", _fileContent) + return nil +} + +// FileContent Getter +func (r AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) GetFileContent() string { + return r._fileContent +} +// UploadFileName Setter +// 文件名 +func (r *AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) SetUploadFileName(_uploadFileName string) error { + r._uploadFileName = _uploadFileName + r.Set("upload_file_name", _uploadFileName) + return nil +} + +// UploadFileName Getter +func (r AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) GetUploadFileName() string { + return r._uploadFileName +} +// ClientType Setter +// 客户端类型[暂定都写2] +func (r *AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) SetClientType(_clientType string) error { + r._clientType = _clientType + r.Set("client_type", _clientType) + return nil +} + +// ClientType Getter +func (r AlibabaAlihealthDrugKytUpstorebillfileAPIRequest) GetClientType() string { + return r._clientType +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUpstorebillfileAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUpstorebillfileAPIResponse.go new file mode 100644 index 0000000000..4e6fd9d2cb --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytUpstorebillfileAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传零售出入库单(上传文件) API返回值 +alibaba.alihealth.drug.kyt.upstorebillfile + +上传零售出入库单(上传文件) +*/ +type AlibabaAlihealthDrugKytUpstorebillfileAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytUpstorebillfileAPIResponseModel +} + +// 上传零售出入库单(上传文件) 成功返回结果 +type AlibabaAlihealthDrugKytUpstorebillfileAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_upstorebillfile_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回ID + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 请求编码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 请求描述 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 返回接口 + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytUpstorebillfileResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytUpstorebillfileResponse.go deleted file mode 100644 index 152a267711..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytUpstorebillfileResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传零售出入库单(上传文件) API返回值 -alibaba.alihealth.drug.kyt.upstorebillfile - -上传零售出入库单(上传文件) -*/ -type AlibabaAlihealthDrugKytUpstorebillfileAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytUpstorebillfileResponse -} - -// 上传零售出入库单(上传文件) 成功返回结果 -type AlibabaAlihealthDrugKytUpstorebillfileResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_upstorebillfile_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回ID - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 请求编码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 请求描述 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 返回接口 - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytVaGetentinfoAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytVaGetentinfoAPIRequest.go new file mode 100644 index 0000000000..ffe9095a37 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytVaGetentinfoAPIRequest.go @@ -0,0 +1,52 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过企业名得到唯一标识(ref_ent_id)及企业ID(ent_id) API请求 +alibaba.alihealth.drug.kyt.va.getentinfo + +根据企业名称查询企业唯一标识(ref_ent_id)及企业ID(ent_id) +*/ +type AlibabaAlihealthDrugKytVaGetentinfoAPIRequest struct { + model.Params + // 公司名称(全称) + _entName string +} + +// 初始化AlibabaAlihealthDrugKytVaGetentinfoAPIRequest对象 +func NewAlibabaAlihealthDrugKytVaGetentinfoRequest() *AlibabaAlihealthDrugKytVaGetentinfoAPIRequest{ + return &AlibabaAlihealthDrugKytVaGetentinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytVaGetentinfoAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.va.getentinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytVaGetentinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EntName Setter +// 公司名称(全称) +func (r *AlibabaAlihealthDrugKytVaGetentinfoAPIRequest) SetEntName(_entName string) error { + r._entName = _entName + r.Set("ent_name", _entName) + return nil +} + +// EntName Getter +func (r AlibabaAlihealthDrugKytVaGetentinfoAPIRequest) GetEntName() string { + return r._entName +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytVaGetentinfoAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytVaGetentinfoAPIResponse.go new file mode 100644 index 0000000000..5a7bf6116f --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytVaGetentinfoAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过企业名得到唯一标识(ref_ent_id)及企业ID(ent_id) API返回值 +alibaba.alihealth.drug.kyt.va.getentinfo + +根据企业名称查询企业唯一标识(ref_ent_id)及企业ID(ent_id) +*/ +type AlibabaAlihealthDrugKytVaGetentinfoAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytVaGetentinfoAPIResponseModel +} + +// 通过企业名得到唯一标识(ref_ent_id)及企业ID(ent_id) 成功返回结果 +type AlibabaAlihealthDrugKytVaGetentinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_va_getentinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytVaGetentinfoResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytVaGetentinfoResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytVaGetentinfoResponse.go deleted file mode 100644 index 9bee9eb03d..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytVaGetentinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过企业名得到唯一标识(ref_ent_id)及企业ID(ent_id) API返回值 -alibaba.alihealth.drug.kyt.va.getentinfo - -根据企业名称查询企业唯一标识(ref_ent_id)及企业ID(ent_id) -*/ -type AlibabaAlihealthDrugKytVaGetentinfoAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytVaGetentinfoResponse -} - -// 通过企业名得到唯一标识(ref_ent_id)及企业ID(ent_id) 成功返回结果 -type AlibabaAlihealthDrugKytVaGetentinfoResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_va_getentinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytVaGetentinfoResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytVaUploadretailAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytVaUploadretailAPIRequest.go new file mode 100644 index 0000000000..7a3aa6d5bd --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytVaUploadretailAPIRequest.go @@ -0,0 +1,276 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售单据上传接口 API请求 +alibaba.alihealth.drug.kyt.va.uploadretail + +零售上传单据信息接口 +*/ +type AlibabaAlihealthDrugKytVaUploadretailAPIRequest struct { + model.Params + // 单据编号(唯一) + _billCode string + // 单据生成时间(一般写当前时间) + _billTime string + // 单据类型[321,零售出库][322,疫苗接种] + _billType int64 + // 药品类型[2,特药,3,普药] + _physicType int64 + // 码上放心平台企业唯一编码(门店或医疗机构) + _refUserId string + // 发货企业(可为空) + _fromUserId string + // 单据提交者(appkey编号) + _operIcCode string + // 单据提交者姓名(可为空) + _operIcName string + // 20位追溯码(多个时用半角逗号分隔) + _traceCodes []string + // 购买人证件类型【1身份证2护照3 军官证4 医保卡5接种卡6学生证9其它】 + _customerIdType string + // 购买人证件编号 + _customerId string + // 用药人名称 + _userTel string + // 互联网标志 1是 0否 + _networkBillFlag string + // 医师名称 + _medicDoctor string + // 药品发药人 + _medicDispenser string + // 药品使用者: + _userName string + // 药品使用者代理人 + _userAgent string +} + +// 初始化AlibabaAlihealthDrugKytVaUploadretailAPIRequest对象 +func NewAlibabaAlihealthDrugKytVaUploadretailRequest() *AlibabaAlihealthDrugKytVaUploadretailAPIRequest{ + return &AlibabaAlihealthDrugKytVaUploadretailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytVaUploadretailAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.va.uploadretail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytVaUploadretailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据编号(唯一) +func (r *AlibabaAlihealthDrugKytVaUploadretailAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytVaUploadretailAPIRequest) GetBillCode() string { + return r._billCode +} +// BillTime Setter +// 单据生成时间(一般写当前时间) +func (r *AlibabaAlihealthDrugKytVaUploadretailAPIRequest) SetBillTime(_billTime string) error { + r._billTime = _billTime + r.Set("bill_time", _billTime) + return nil +} + +// BillTime Getter +func (r AlibabaAlihealthDrugKytVaUploadretailAPIRequest) GetBillTime() string { + return r._billTime +} +// BillType Setter +// 单据类型[321,零售出库][322,疫苗接种] +func (r *AlibabaAlihealthDrugKytVaUploadretailAPIRequest) SetBillType(_billType int64) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytVaUploadretailAPIRequest) GetBillType() int64 { + return r._billType +} +// PhysicType Setter +// 药品类型[2,特药,3,普药] +func (r *AlibabaAlihealthDrugKytVaUploadretailAPIRequest) SetPhysicType(_physicType int64) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugKytVaUploadretailAPIRequest) GetPhysicType() int64 { + return r._physicType +} +// RefUserId Setter +// 码上放心平台企业唯一编码(门店或医疗机构) +func (r *AlibabaAlihealthDrugKytVaUploadretailAPIRequest) SetRefUserId(_refUserId string) error { + r._refUserId = _refUserId + r.Set("ref_user_id", _refUserId) + return nil +} + +// RefUserId Getter +func (r AlibabaAlihealthDrugKytVaUploadretailAPIRequest) GetRefUserId() string { + return r._refUserId +} +// FromUserId Setter +// 发货企业(可为空) +func (r *AlibabaAlihealthDrugKytVaUploadretailAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugKytVaUploadretailAPIRequest) GetFromUserId() string { + return r._fromUserId +} +// OperIcCode Setter +// 单据提交者(appkey编号) +func (r *AlibabaAlihealthDrugKytVaUploadretailAPIRequest) SetOperIcCode(_operIcCode string) error { + r._operIcCode = _operIcCode + r.Set("oper_ic_code", _operIcCode) + return nil +} + +// OperIcCode Getter +func (r AlibabaAlihealthDrugKytVaUploadretailAPIRequest) GetOperIcCode() string { + return r._operIcCode +} +// OperIcName Setter +// 单据提交者姓名(可为空) +func (r *AlibabaAlihealthDrugKytVaUploadretailAPIRequest) SetOperIcName(_operIcName string) error { + r._operIcName = _operIcName + r.Set("oper_ic_name", _operIcName) + return nil +} + +// OperIcName Getter +func (r AlibabaAlihealthDrugKytVaUploadretailAPIRequest) GetOperIcName() string { + return r._operIcName +} +// TraceCodes Setter +// 20位追溯码(多个时用半角逗号分隔) +func (r *AlibabaAlihealthDrugKytVaUploadretailAPIRequest) SetTraceCodes(_traceCodes []string) error { + r._traceCodes = _traceCodes + r.Set("trace_codes", _traceCodes) + return nil +} + +// TraceCodes Getter +func (r AlibabaAlihealthDrugKytVaUploadretailAPIRequest) GetTraceCodes() []string { + return r._traceCodes +} +// CustomerIdType Setter +// 购买人证件类型【1身份证2护照3 军官证4 医保卡5接种卡6学生证9其它】 +func (r *AlibabaAlihealthDrugKytVaUploadretailAPIRequest) SetCustomerIdType(_customerIdType string) error { + r._customerIdType = _customerIdType + r.Set("customer_id_type", _customerIdType) + return nil +} + +// CustomerIdType Getter +func (r AlibabaAlihealthDrugKytVaUploadretailAPIRequest) GetCustomerIdType() string { + return r._customerIdType +} +// CustomerId Setter +// 购买人证件编号 +func (r *AlibabaAlihealthDrugKytVaUploadretailAPIRequest) SetCustomerId(_customerId string) error { + r._customerId = _customerId + r.Set("customer_id", _customerId) + return nil +} + +// CustomerId Getter +func (r AlibabaAlihealthDrugKytVaUploadretailAPIRequest) GetCustomerId() string { + return r._customerId +} +// UserTel Setter +// 用药人名称 +func (r *AlibabaAlihealthDrugKytVaUploadretailAPIRequest) SetUserTel(_userTel string) error { + r._userTel = _userTel + r.Set("user_tel", _userTel) + return nil +} + +// UserTel Getter +func (r AlibabaAlihealthDrugKytVaUploadretailAPIRequest) GetUserTel() string { + return r._userTel +} +// NetworkBillFlag Setter +// 互联网标志 1是 0否 +func (r *AlibabaAlihealthDrugKytVaUploadretailAPIRequest) SetNetworkBillFlag(_networkBillFlag string) error { + r._networkBillFlag = _networkBillFlag + r.Set("network_bill_flag", _networkBillFlag) + return nil +} + +// NetworkBillFlag Getter +func (r AlibabaAlihealthDrugKytVaUploadretailAPIRequest) GetNetworkBillFlag() string { + return r._networkBillFlag +} +// MedicDoctor Setter +// 医师名称 +func (r *AlibabaAlihealthDrugKytVaUploadretailAPIRequest) SetMedicDoctor(_medicDoctor string) error { + r._medicDoctor = _medicDoctor + r.Set("medic_doctor", _medicDoctor) + return nil +} + +// MedicDoctor Getter +func (r AlibabaAlihealthDrugKytVaUploadretailAPIRequest) GetMedicDoctor() string { + return r._medicDoctor +} +// MedicDispenser Setter +// 药品发药人 +func (r *AlibabaAlihealthDrugKytVaUploadretailAPIRequest) SetMedicDispenser(_medicDispenser string) error { + r._medicDispenser = _medicDispenser + r.Set("medic_dispenser", _medicDispenser) + return nil +} + +// MedicDispenser Getter +func (r AlibabaAlihealthDrugKytVaUploadretailAPIRequest) GetMedicDispenser() string { + return r._medicDispenser +} +// UserName Setter +// 药品使用者: +func (r *AlibabaAlihealthDrugKytVaUploadretailAPIRequest) SetUserName(_userName string) error { + r._userName = _userName + r.Set("user_name", _userName) + return nil +} + +// UserName Getter +func (r AlibabaAlihealthDrugKytVaUploadretailAPIRequest) GetUserName() string { + return r._userName +} +// UserAgent Setter +// 药品使用者代理人 +func (r *AlibabaAlihealthDrugKytVaUploadretailAPIRequest) SetUserAgent(_userAgent string) error { + r._userAgent = _userAgent + r.Set("user_agent", _userAgent) + return nil +} + +// UserAgent Getter +func (r AlibabaAlihealthDrugKytVaUploadretailAPIRequest) GetUserAgent() string { + return r._userAgent +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytVaUploadretailAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytVaUploadretailAPIResponse.go new file mode 100644 index 0000000000..c0df4ab7bb --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytVaUploadretailAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售单据上传接口 API返回值 +alibaba.alihealth.drug.kyt.va.uploadretail + +零售上传单据信息接口 +*/ +type AlibabaAlihealthDrugKytVaUploadretailAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytVaUploadretailAPIResponseModel +} + +// 零售单据上传接口 成功返回结果 +type AlibabaAlihealthDrugKytVaUploadretailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_va_uploadretail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 上传单据文件队列表标识 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 错误码(BILL_DECODE_ERROR 单据转码失败 2.BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 错误信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 操作是否成功(true 成功 ,false失败) + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytVaUploadretailResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytVaUploadretailResponse.go deleted file mode 100644 index c403c82ba3..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytVaUploadretailResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售单据上传接口 API返回值 -alibaba.alihealth.drug.kyt.va.uploadretail - -零售上传单据信息接口 -*/ -type AlibabaAlihealthDrugKytVaUploadretailAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytVaUploadretailResponse -} - -// 零售单据上传接口 成功返回结果 -type AlibabaAlihealthDrugKytVaUploadretailResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_va_uploadretail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 上传单据文件队列表标识 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 错误码(BILL_DECODE_ERROR 单据转码失败 2.BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 错误信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 操作是否成功(true 成功 ,false失败) - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest.go new file mode 100644 index 0000000000..03bed694da --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest.go @@ -0,0 +1,109 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +医保-查询码的所有子码 API请求 +alibaba.alihealth.drug.kyt.yb.getcoderelation + +应用于药店或医院入库环节,通过扫码获取下级码进行入库; +通过码查询所有子码以及包装比例 +*/ +type AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest struct { + model.Params + // 社保局(所属地市名称) + _bureauName string + // 请求终端名称 + _terminalName string + // 终端类型:1005100-零售,1005200-医疗 + _terminalType string + // 调用方式:formal-正式、test-测试 + _invocation string + // 追溯码 + _code string +} + +// 初始化AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest对象 +func NewAlibabaAlihealthDrugKytYbGetcoderelationRequest() *AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest{ + return &AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.yb.getcoderelation" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BureauName Setter +// 社保局(所属地市名称) +func (r *AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest) SetBureauName(_bureauName string) error { + r._bureauName = _bureauName + r.Set("bureau_name", _bureauName) + return nil +} + +// BureauName Getter +func (r AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest) GetBureauName() string { + return r._bureauName +} +// TerminalName Setter +// 请求终端名称 +func (r *AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest) SetTerminalName(_terminalName string) error { + r._terminalName = _terminalName + r.Set("terminal_name", _terminalName) + return nil +} + +// TerminalName Getter +func (r AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest) GetTerminalName() string { + return r._terminalName +} +// TerminalType Setter +// 终端类型:1005100-零售,1005200-医疗 +func (r *AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest) GetTerminalType() string { + return r._terminalType +} +// Invocation Setter +// 调用方式:formal-正式、test-测试 +func (r *AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest) SetInvocation(_invocation string) error { + r._invocation = _invocation + r.Set("invocation", _invocation) + return nil +} + +// Invocation Getter +func (r AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest) GetInvocation() string { + return r._invocation +} +// Code Setter +// 追溯码 +func (r *AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthDrugKytYbGetcoderelationAPIRequest) GetCode() string { + return r._code +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYbGetcoderelationAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytYbGetcoderelationAPIResponse.go new file mode 100644 index 0000000000..98ee6ce685 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytYbGetcoderelationAPIResponse.go @@ -0,0 +1,28 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +医保-查询码的所有子码 API返回值 +alibaba.alihealth.drug.kyt.yb.getcoderelation + +应用于药店或医院入库环节,通过扫码获取下级码进行入库; +通过码查询所有子码以及包装比例 +*/ +type AlibabaAlihealthDrugKytYbGetcoderelationAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytYbGetcoderelationAPIResponseModel +} + +// 医保-查询码的所有子码 成功返回结果 +type AlibabaAlihealthDrugKytYbGetcoderelationAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_yb_getcoderelation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugKytYbGetcoderelationResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYbGetcoderelationResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytYbGetcoderelationResponse.go deleted file mode 100644 index 0410bccef3..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytYbGetcoderelationResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -医保-查询码的所有子码 API返回值 -alibaba.alihealth.drug.kyt.yb.getcoderelation - -应用于药店或医院入库环节,通过扫码获取下级码进行入库; -通过码查询所有子码以及包装比例 -*/ -type AlibabaAlihealthDrugKytYbGetcoderelationAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytYbGetcoderelationResponse -} - -// 医保-查询码的所有子码 成功返回结果 -type AlibabaAlihealthDrugKytYbGetcoderelationResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_yb_getcoderelation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugKytYbGetcoderelationResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYyDrugcodesAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytYyDrugcodesAPIRequest.go new file mode 100644 index 0000000000..b67a5ad57b --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytYyDrugcodesAPIRequest.go @@ -0,0 +1,122 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询药品是否赋码 API请求 +alibaba.alihealth.drug.kyt.yy.drugcodes + +药品是否赋码 +*/ +type AlibabaAlihealthDrugKytYyDrugcodesAPIRequest struct { + model.Params + // 企业名称 + _refEntName string + // 药品名称 + _physicName string + // 生产批号 + _produceBatchNo string + // 药品类型 + _physicType string + // 包装规格 + _pkgSpec string + // 制剂规格 + _prepnSpec string +} + +// 初始化AlibabaAlihealthDrugKytYyDrugcodesAPIRequest对象 +func NewAlibabaAlihealthDrugKytYyDrugcodesRequest() *AlibabaAlihealthDrugKytYyDrugcodesAPIRequest{ + return &AlibabaAlihealthDrugKytYyDrugcodesAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytYyDrugcodesAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.yy.drugcodes" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytYyDrugcodesAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntName Setter +// 企业名称 +func (r *AlibabaAlihealthDrugKytYyDrugcodesAPIRequest) SetRefEntName(_refEntName string) error { + r._refEntName = _refEntName + r.Set("ref_ent_name", _refEntName) + return nil +} + +// RefEntName Getter +func (r AlibabaAlihealthDrugKytYyDrugcodesAPIRequest) GetRefEntName() string { + return r._refEntName +} +// PhysicName Setter +// 药品名称 +func (r *AlibabaAlihealthDrugKytYyDrugcodesAPIRequest) SetPhysicName(_physicName string) error { + r._physicName = _physicName + r.Set("physic_name", _physicName) + return nil +} + +// PhysicName Getter +func (r AlibabaAlihealthDrugKytYyDrugcodesAPIRequest) GetPhysicName() string { + return r._physicName +} +// ProduceBatchNo Setter +// 生产批号 +func (r *AlibabaAlihealthDrugKytYyDrugcodesAPIRequest) SetProduceBatchNo(_produceBatchNo string) error { + r._produceBatchNo = _produceBatchNo + r.Set("produce_batch_no", _produceBatchNo) + return nil +} + +// ProduceBatchNo Getter +func (r AlibabaAlihealthDrugKytYyDrugcodesAPIRequest) GetProduceBatchNo() string { + return r._produceBatchNo +} +// PhysicType Setter +// 药品类型 +func (r *AlibabaAlihealthDrugKytYyDrugcodesAPIRequest) SetPhysicType(_physicType string) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugKytYyDrugcodesAPIRequest) GetPhysicType() string { + return r._physicType +} +// PkgSpec Setter +// 包装规格 +func (r *AlibabaAlihealthDrugKytYyDrugcodesAPIRequest) SetPkgSpec(_pkgSpec string) error { + r._pkgSpec = _pkgSpec + r.Set("pkg_spec", _pkgSpec) + return nil +} + +// PkgSpec Getter +func (r AlibabaAlihealthDrugKytYyDrugcodesAPIRequest) GetPkgSpec() string { + return r._pkgSpec +} +// PrepnSpec Setter +// 制剂规格 +func (r *AlibabaAlihealthDrugKytYyDrugcodesAPIRequest) SetPrepnSpec(_prepnSpec string) error { + r._prepnSpec = _prepnSpec + r.Set("prepn_spec", _prepnSpec) + return nil +} + +// PrepnSpec Getter +func (r AlibabaAlihealthDrugKytYyDrugcodesAPIRequest) GetPrepnSpec() string { + return r._prepnSpec +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYyDrugcodesAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytYyDrugcodesAPIResponse.go new file mode 100644 index 0000000000..6cffa5c088 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytYyDrugcodesAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询药品是否赋码 API返回值 +alibaba.alihealth.drug.kyt.yy.drugcodes + +药品是否赋码 +*/ +type AlibabaAlihealthDrugKytYyDrugcodesAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytYyDrugcodesAPIResponseModel +} + +// 查询药品是否赋码 成功返回结果 +type AlibabaAlihealthDrugKytYyDrugcodesAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_yy_drugcodes_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytYyDrugcodesResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYyDrugcodesResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytYyDrugcodesResponse.go deleted file mode 100644 index 07cad77e6d..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytYyDrugcodesResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询药品是否赋码 API返回值 -alibaba.alihealth.drug.kyt.yy.drugcodes - -药品是否赋码 -*/ -type AlibabaAlihealthDrugKytYyDrugcodesAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytYyDrugcodesResponse -} - -// 查询药品是否赋码 成功返回结果 -type AlibabaAlihealthDrugKytYyDrugcodesResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_yy_drugcodes_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytYyDrugcodesResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYyGetentinfoAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytYyGetentinfoAPIRequest.go new file mode 100644 index 0000000000..5e52f9af04 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytYyGetentinfoAPIRequest.go @@ -0,0 +1,52 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +得到企业信息 API请求 +alibaba.alihealth.drug.kyt.yy.getentinfo + +根据企业名称查询企业唯一标识【ref_ent_id】和企业ID【ent_id】 +*/ +type AlibabaAlihealthDrugKytYyGetentinfoAPIRequest struct { + model.Params + // 公司名称 + _entName string +} + +// 初始化AlibabaAlihealthDrugKytYyGetentinfoAPIRequest对象 +func NewAlibabaAlihealthDrugKytYyGetentinfoRequest() *AlibabaAlihealthDrugKytYyGetentinfoAPIRequest{ + return &AlibabaAlihealthDrugKytYyGetentinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytYyGetentinfoAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.yy.getentinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytYyGetentinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EntName Setter +// 公司名称 +func (r *AlibabaAlihealthDrugKytYyGetentinfoAPIRequest) SetEntName(_entName string) error { + r._entName = _entName + r.Set("ent_name", _entName) + return nil +} + +// EntName Getter +func (r AlibabaAlihealthDrugKytYyGetentinfoAPIRequest) GetEntName() string { + return r._entName +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYyGetentinfoAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytYyGetentinfoAPIResponse.go new file mode 100644 index 0000000000..d684e613f1 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytYyGetentinfoAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +得到企业信息 API返回值 +alibaba.alihealth.drug.kyt.yy.getentinfo + +根据企业名称查询企业唯一标识【ref_ent_id】和企业ID【ent_id】 +*/ +type AlibabaAlihealthDrugKytYyGetentinfoAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytYyGetentinfoAPIResponseModel +} + +// 得到企业信息 成功返回结果 +type AlibabaAlihealthDrugKytYyGetentinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_yy_getentinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytYyGetentinfoResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYyGetentinfoResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytYyGetentinfoResponse.go deleted file mode 100644 index 87f54257a9..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytYyGetentinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -得到企业信息 API返回值 -alibaba.alihealth.drug.kyt.yy.getentinfo - -根据企业名称查询企业唯一标识【ref_ent_id】和企业ID【ent_id】 -*/ -type AlibabaAlihealthDrugKytYyGetentinfoAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytYyGetentinfoResponse -} - -// 得到企业信息 成功返回结果 -type AlibabaAlihealthDrugKytYyGetentinfoResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_yy_getentinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytYyGetentinfoResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYyListpartsAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytYyListpartsAPIRequest.go new file mode 100644 index 0000000000..814c221e6c --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytYyListpartsAPIRequest.go @@ -0,0 +1,150 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询往来单位 API请求 +alibaba.alihealth.drug.kyt.yy.listparts + +查询往来单位列表 +*/ +type AlibabaAlihealthDrugKytYyListpartsAPIRequest struct { + model.Params + // 企业唯一标识(货主企业) + _refEntId string + // 企业名称 + _entName string + // 企业自定义编号 + _refPartnerId string + // 页大小 + _pageSize int64 + // 页码 + _page int64 + // 开始时间 + _beginDate string + // 结束时间 + _endDate string + // 代理企业唯一标识(物流企业) + _agentRefEntId string +} + +// 初始化AlibabaAlihealthDrugKytYyListpartsAPIRequest对象 +func NewAlibabaAlihealthDrugKytYyListpartsRequest() *AlibabaAlihealthDrugKytYyListpartsAPIRequest{ + return &AlibabaAlihealthDrugKytYyListpartsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytYyListpartsAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.yy.listparts" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytYyListpartsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业唯一标识(货主企业) +func (r *AlibabaAlihealthDrugKytYyListpartsAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytYyListpartsAPIRequest) GetRefEntId() string { + return r._refEntId +} +// EntName Setter +// 企业名称 +func (r *AlibabaAlihealthDrugKytYyListpartsAPIRequest) SetEntName(_entName string) error { + r._entName = _entName + r.Set("ent_name", _entName) + return nil +} + +// EntName Getter +func (r AlibabaAlihealthDrugKytYyListpartsAPIRequest) GetEntName() string { + return r._entName +} +// RefPartnerId Setter +// 企业自定义编号 +func (r *AlibabaAlihealthDrugKytYyListpartsAPIRequest) SetRefPartnerId(_refPartnerId string) error { + r._refPartnerId = _refPartnerId + r.Set("ref_partner_id", _refPartnerId) + return nil +} + +// RefPartnerId Getter +func (r AlibabaAlihealthDrugKytYyListpartsAPIRequest) GetRefPartnerId() string { + return r._refPartnerId +} +// PageSize Setter +// 页大小 +func (r *AlibabaAlihealthDrugKytYyListpartsAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugKytYyListpartsAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Page Setter +// 页码 +func (r *AlibabaAlihealthDrugKytYyListpartsAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugKytYyListpartsAPIRequest) GetPage() int64 { + return r._page +} +// BeginDate Setter +// 开始时间 +func (r *AlibabaAlihealthDrugKytYyListpartsAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaAlihealthDrugKytYyListpartsAPIRequest) GetBeginDate() string { + return r._beginDate +} +// EndDate Setter +// 结束时间 +func (r *AlibabaAlihealthDrugKytYyListpartsAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugKytYyListpartsAPIRequest) GetEndDate() string { + return r._endDate +} +// AgentRefEntId Setter +// 代理企业唯一标识(物流企业) +func (r *AlibabaAlihealthDrugKytYyListpartsAPIRequest) SetAgentRefEntId(_agentRefEntId string) error { + r._agentRefEntId = _agentRefEntId + r.Set("agent_ref_ent_id", _agentRefEntId) + return nil +} + +// AgentRefEntId Getter +func (r AlibabaAlihealthDrugKytYyListpartsAPIRequest) GetAgentRefEntId() string { + return r._agentRefEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYyListpartsAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytYyListpartsAPIResponse.go new file mode 100644 index 0000000000..fe62fa0186 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytYyListpartsAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询往来单位 API返回值 +alibaba.alihealth.drug.kyt.yy.listparts + +查询往来单位列表 +*/ +type AlibabaAlihealthDrugKytYyListpartsAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytYyListpartsAPIResponseModel +} + +// 查询往来单位 成功返回结果 +type AlibabaAlihealthDrugKytYyListpartsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_yy_listparts_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugKytYyListpartsResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYyListpartsResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytYyListpartsResponse.go deleted file mode 100644 index 7498579406..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytYyListpartsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询往来单位 API返回值 -alibaba.alihealth.drug.kyt.yy.listparts - -查询往来单位列表 -*/ -type AlibabaAlihealthDrugKytYyListpartsAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytYyListpartsResponse -} - -// 查询往来单位 成功返回结果 -type AlibabaAlihealthDrugKytYyListpartsResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_yy_listparts_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugKytYyListpartsResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYyQuerysubcodesAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytYyQuerysubcodesAPIRequest.go new file mode 100644 index 0000000000..0256b33d12 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytYyQuerysubcodesAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询一个码的所有子码 API请求 +alibaba.alihealth.drug.kyt.yy.querysubcodes + +单码的了码查询 +*/ +type AlibabaAlihealthDrugKytYyQuerysubcodesAPIRequest struct { + model.Params + // 接口调用企业的唯一标识(接口调用者) + _refEntId string + // 码 + _codes []string +} + +// 初始化AlibabaAlihealthDrugKytYyQuerysubcodesAPIRequest对象 +func NewAlibabaAlihealthDrugKytYyQuerysubcodesRequest() *AlibabaAlihealthDrugKytYyQuerysubcodesAPIRequest{ + return &AlibabaAlihealthDrugKytYyQuerysubcodesAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytYyQuerysubcodesAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.yy.querysubcodes" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytYyQuerysubcodesAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 接口调用企业的唯一标识(接口调用者) +func (r *AlibabaAlihealthDrugKytYyQuerysubcodesAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugKytYyQuerysubcodesAPIRequest) GetRefEntId() string { + return r._refEntId +} +// Codes Setter +// 码 +func (r *AlibabaAlihealthDrugKytYyQuerysubcodesAPIRequest) SetCodes(_codes []string) error { + r._codes = _codes + r.Set("codes", _codes) + return nil +} + +// Codes Getter +func (r AlibabaAlihealthDrugKytYyQuerysubcodesAPIRequest) GetCodes() []string { + return r._codes +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYyQuerysubcodesAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytYyQuerysubcodesAPIResponse.go new file mode 100644 index 0000000000..6f6ae60a6a --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytYyQuerysubcodesAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询一个码的所有子码 API返回值 +alibaba.alihealth.drug.kyt.yy.querysubcodes + +单码的了码查询 +*/ +type AlibabaAlihealthDrugKytYyQuerysubcodesAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytYyQuerysubcodesAPIResponseModel +} + +// 查询一个码的所有子码 成功返回结果 +type AlibabaAlihealthDrugKytYyQuerysubcodesAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_yy_querysubcodes_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugKytYyQuerysubcodesResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYyQuerysubcodesResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytYyQuerysubcodesResponse.go deleted file mode 100644 index c3e2ae3af5..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytYyQuerysubcodesResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询一个码的所有子码 API返回值 -alibaba.alihealth.drug.kyt.yy.querysubcodes - -单码的了码查询 -*/ -type AlibabaAlihealthDrugKytYyQuerysubcodesAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytYyQuerysubcodesResponse -} - -// 查询一个码的所有子码 成功返回结果 -type AlibabaAlihealthDrugKytYyQuerysubcodesResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_yy_querysubcodes_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugKytYyQuerysubcodesResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest.go new file mode 100644 index 0000000000..d893c9a216 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest.go @@ -0,0 +1,361 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +医院出入库信息上传 API请求 +alibaba.alihealth.drug.kyt.yy.uploadinoutbill + +医院上传出入库信息,包括采购入库(102),退货入库(103),供应入库(107),退货出库(202),销毁出库(205),抽检出库(206), 供应出库(209), +不包括对个人的零售出库,疫苗接种,领药出库。 +*/ +type AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest struct { + model.Params + // 单据编码 + _billCode string + // 单据时间 + _billTime string + // 单据类型【102代表采购入库】 + _billType int64 + // 药品类型【3普药2特药】 + _physicType int64 + // 上传企业的单位编码 + _refUserId string + // 代理企业REF标识 + _agentRefUserId string + // 发货企业entId + _fromUserId string + // 收货企业entId + _toUserId string + // 直调企业标识 + _destUserId string + // 单据提交者(appkey编号) + _operIcCode string + // 单据提交者姓名 + _operIcName string + // 客户端类型[必须填2] + _clientType string + // 退货原因代码[退货入出库时填写] + _returnReasonCode string + // 退货原因描述[退货入出库时填写] + _returnReasonDes string + // 注销原因代码【销毁出库时填写】 + _cancelReasonCode string + // 注销原因描述【销毁出库时填写】 + _cancelReasonDes string + // 执行人姓名【销毁出库时填写】 + _executerName string + // 执行人证件号【销毁出库时填写】 + _executerCode string + // 监督人姓名【销毁出库时填写】 + _superviserName string + // 监督人证件号【销毁出库时填写】 + _superviserCode string + // 仓号 + _warehouseId string + // 药品ID[企业自已系统的药品ID] + _drugId string + // 追溯码[多个时用逗号分开] + _traceCodes []string +} + +// 初始化AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest对象 +func NewAlibabaAlihealthDrugKytYyUploadinoutbillRequest() *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest{ + return &AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.yy.uploadinoutbill" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据编码 +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetBillCode() string { + return r._billCode +} +// BillTime Setter +// 单据时间 +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetBillTime(_billTime string) error { + r._billTime = _billTime + r.Set("bill_time", _billTime) + return nil +} + +// BillTime Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetBillTime() string { + return r._billTime +} +// BillType Setter +// 单据类型【102代表采购入库】 +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetBillType(_billType int64) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetBillType() int64 { + return r._billType +} +// PhysicType Setter +// 药品类型【3普药2特药】 +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetPhysicType(_physicType int64) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetPhysicType() int64 { + return r._physicType +} +// RefUserId Setter +// 上传企业的单位编码 +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetRefUserId(_refUserId string) error { + r._refUserId = _refUserId + r.Set("ref_user_id", _refUserId) + return nil +} + +// RefUserId Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetRefUserId() string { + return r._refUserId +} +// AgentRefUserId Setter +// 代理企业REF标识 +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetAgentRefUserId(_agentRefUserId string) error { + r._agentRefUserId = _agentRefUserId + r.Set("agent_ref_user_id", _agentRefUserId) + return nil +} + +// AgentRefUserId Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetAgentRefUserId() string { + return r._agentRefUserId +} +// FromUserId Setter +// 发货企业entId +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetFromUserId() string { + return r._fromUserId +} +// ToUserId Setter +// 收货企业entId +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetToUserId(_toUserId string) error { + r._toUserId = _toUserId + r.Set("to_user_id", _toUserId) + return nil +} + +// ToUserId Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetToUserId() string { + return r._toUserId +} +// DestUserId Setter +// 直调企业标识 +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetDestUserId(_destUserId string) error { + r._destUserId = _destUserId + r.Set("dest_user_id", _destUserId) + return nil +} + +// DestUserId Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetDestUserId() string { + return r._destUserId +} +// OperIcCode Setter +// 单据提交者(appkey编号) +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetOperIcCode(_operIcCode string) error { + r._operIcCode = _operIcCode + r.Set("oper_ic_code", _operIcCode) + return nil +} + +// OperIcCode Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetOperIcCode() string { + return r._operIcCode +} +// OperIcName Setter +// 单据提交者姓名 +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetOperIcName(_operIcName string) error { + r._operIcName = _operIcName + r.Set("oper_ic_name", _operIcName) + return nil +} + +// OperIcName Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetOperIcName() string { + return r._operIcName +} +// ClientType Setter +// 客户端类型[必须填2] +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetClientType(_clientType string) error { + r._clientType = _clientType + r.Set("client_type", _clientType) + return nil +} + +// ClientType Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetClientType() string { + return r._clientType +} +// ReturnReasonCode Setter +// 退货原因代码[退货入出库时填写] +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetReturnReasonCode(_returnReasonCode string) error { + r._returnReasonCode = _returnReasonCode + r.Set("return_reason_code", _returnReasonCode) + return nil +} + +// ReturnReasonCode Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetReturnReasonCode() string { + return r._returnReasonCode +} +// ReturnReasonDes Setter +// 退货原因描述[退货入出库时填写] +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetReturnReasonDes(_returnReasonDes string) error { + r._returnReasonDes = _returnReasonDes + r.Set("return_reason_des", _returnReasonDes) + return nil +} + +// ReturnReasonDes Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetReturnReasonDes() string { + return r._returnReasonDes +} +// CancelReasonCode Setter +// 注销原因代码【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetCancelReasonCode(_cancelReasonCode string) error { + r._cancelReasonCode = _cancelReasonCode + r.Set("cancel_reason_code", _cancelReasonCode) + return nil +} + +// CancelReasonCode Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetCancelReasonCode() string { + return r._cancelReasonCode +} +// CancelReasonDes Setter +// 注销原因描述【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetCancelReasonDes(_cancelReasonDes string) error { + r._cancelReasonDes = _cancelReasonDes + r.Set("cancel_reason_des", _cancelReasonDes) + return nil +} + +// CancelReasonDes Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetCancelReasonDes() string { + return r._cancelReasonDes +} +// ExecuterName Setter +// 执行人姓名【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetExecuterName(_executerName string) error { + r._executerName = _executerName + r.Set("executer_name", _executerName) + return nil +} + +// ExecuterName Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetExecuterName() string { + return r._executerName +} +// ExecuterCode Setter +// 执行人证件号【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetExecuterCode(_executerCode string) error { + r._executerCode = _executerCode + r.Set("executer_code", _executerCode) + return nil +} + +// ExecuterCode Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetExecuterCode() string { + return r._executerCode +} +// SuperviserName Setter +// 监督人姓名【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetSuperviserName(_superviserName string) error { + r._superviserName = _superviserName + r.Set("superviser_name", _superviserName) + return nil +} + +// SuperviserName Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetSuperviserName() string { + return r._superviserName +} +// SuperviserCode Setter +// 监督人证件号【销毁出库时填写】 +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetSuperviserCode(_superviserCode string) error { + r._superviserCode = _superviserCode + r.Set("superviser_code", _superviserCode) + return nil +} + +// SuperviserCode Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetSuperviserCode() string { + return r._superviserCode +} +// WarehouseId Setter +// 仓号 +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetWarehouseId(_warehouseId string) error { + r._warehouseId = _warehouseId + r.Set("warehouse_id", _warehouseId) + return nil +} + +// WarehouseId Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetWarehouseId() string { + return r._warehouseId +} +// DrugId Setter +// 药品ID[企业自已系统的药品ID] +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetDrugId(_drugId string) error { + r._drugId = _drugId + r.Set("drug_id", _drugId) + return nil +} + +// DrugId Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetDrugId() string { + return r._drugId +} +// TraceCodes Setter +// 追溯码[多个时用逗号分开] +func (r *AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) SetTraceCodes(_traceCodes []string) error { + r._traceCodes = _traceCodes + r.Set("trace_codes", _traceCodes) + return nil +} + +// TraceCodes Getter +func (r AlibabaAlihealthDrugKytYyUploadinoutbillAPIRequest) GetTraceCodes() []string { + return r._traceCodes +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYyUploadinoutbillAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytYyUploadinoutbillAPIResponse.go new file mode 100644 index 0000000000..602455f768 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytYyUploadinoutbillAPIResponse.go @@ -0,0 +1,34 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +医院出入库信息上传 API返回值 +alibaba.alihealth.drug.kyt.yy.uploadinoutbill + +医院上传出入库信息,包括采购入库(102),退货入库(103),供应入库(107),退货出库(202),销毁出库(205),抽检出库(206), 供应出库(209), +不包括对个人的零售出库,疫苗接种,领药出库。 +*/ +type AlibabaAlihealthDrugKytYyUploadinoutbillAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytYyUploadinoutbillAPIResponseModel +} + +// 医院出入库信息上传 成功返回结果 +type AlibabaAlihealthDrugKytYyUploadinoutbillAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_yy_uploadinoutbill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 返回编码(BILL_DECODE_ERROR 单据转码失败 BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 返回信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 是否成功(true 成功 false 失败) + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYyUploadinoutbillResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytYyUploadinoutbillResponse.go deleted file mode 100644 index 0613e8fd52..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytYyUploadinoutbillResponse.go +++ /dev/null @@ -1,34 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -医院出入库信息上传 API返回值 -alibaba.alihealth.drug.kyt.yy.uploadinoutbill - -医院上传出入库信息,包括采购入库(102),退货入库(103),供应入库(107),退货出库(202),销毁出库(205),抽检出库(206), 供应出库(209), -不包括对个人的零售出库,疫苗接种,领药出库。 -*/ -type AlibabaAlihealthDrugKytYyUploadinoutbillAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytYyUploadinoutbillResponse -} - -// 医院出入库信息上传 成功返回结果 -type AlibabaAlihealthDrugKytYyUploadinoutbillResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_yy_uploadinoutbill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 返回编码(BILL_DECODE_ERROR 单据转码失败 BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 返回信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 是否成功(true 成功 false 失败) - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYyUploadretailAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugKytYyUploadretailAPIRequest.go new file mode 100644 index 0000000000..aa660173c3 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytYyUploadretailAPIRequest.go @@ -0,0 +1,276 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +医院上传出库信息 API请求 +alibaba.alihealth.drug.kyt.yy.uploadretail + +医院上传出库信息接口 +*/ +type AlibabaAlihealthDrugKytYyUploadretailAPIRequest struct { + model.Params + // 单据编号(唯一) + _billCode string + // 单据生成时间(一般写当前时间) + _billTime string + // 单据类型[321,零售出库][322,疫苗接种] + _billType int64 + // 药品类型[2,特药,3,普药] + _physicType int64 + // 码上放心平台企业唯一编码(门店或医疗机构) + _refUserId string + // 发货企业(可为空) + _fromUserId string + // 单据提交者(appkey编号) + _operIcCode string + // 药房名称(可为空) + _drugstoreName string + // 20位追溯码(多个时用半角逗号分隔) + _traceCodes []string + // 购买人证件类型【1身份证2护照3 军官证4 医保卡5接种卡6学生证9其它】 + _customerIdType string + // 购买人证件编号 + _customerId string + // 购买人电话: + _userTel string + // 互联网标识 1是 0代表否 + _networkBillFlag string + // 开药医师名称 + _medicDoctor string + // 药品使用分药者 + _medicDispenser string + // 药品使用者名称 + _userName string + // 药品使用者代理人 + _userAgent string +} + +// 初始化AlibabaAlihealthDrugKytYyUploadretailAPIRequest对象 +func NewAlibabaAlihealthDrugKytYyUploadretailRequest() *AlibabaAlihealthDrugKytYyUploadretailAPIRequest{ + return &AlibabaAlihealthDrugKytYyUploadretailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugKytYyUploadretailAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.kyt.yy.uploadretail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugKytYyUploadretailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据编号(唯一) +func (r *AlibabaAlihealthDrugKytYyUploadretailAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugKytYyUploadretailAPIRequest) GetBillCode() string { + return r._billCode +} +// BillTime Setter +// 单据生成时间(一般写当前时间) +func (r *AlibabaAlihealthDrugKytYyUploadretailAPIRequest) SetBillTime(_billTime string) error { + r._billTime = _billTime + r.Set("bill_time", _billTime) + return nil +} + +// BillTime Getter +func (r AlibabaAlihealthDrugKytYyUploadretailAPIRequest) GetBillTime() string { + return r._billTime +} +// BillType Setter +// 单据类型[321,零售出库][322,疫苗接种] +func (r *AlibabaAlihealthDrugKytYyUploadretailAPIRequest) SetBillType(_billType int64) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugKytYyUploadretailAPIRequest) GetBillType() int64 { + return r._billType +} +// PhysicType Setter +// 药品类型[2,特药,3,普药] +func (r *AlibabaAlihealthDrugKytYyUploadretailAPIRequest) SetPhysicType(_physicType int64) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugKytYyUploadretailAPIRequest) GetPhysicType() int64 { + return r._physicType +} +// RefUserId Setter +// 码上放心平台企业唯一编码(门店或医疗机构) +func (r *AlibabaAlihealthDrugKytYyUploadretailAPIRequest) SetRefUserId(_refUserId string) error { + r._refUserId = _refUserId + r.Set("ref_user_id", _refUserId) + return nil +} + +// RefUserId Getter +func (r AlibabaAlihealthDrugKytYyUploadretailAPIRequest) GetRefUserId() string { + return r._refUserId +} +// FromUserId Setter +// 发货企业(可为空) +func (r *AlibabaAlihealthDrugKytYyUploadretailAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugKytYyUploadretailAPIRequest) GetFromUserId() string { + return r._fromUserId +} +// OperIcCode Setter +// 单据提交者(appkey编号) +func (r *AlibabaAlihealthDrugKytYyUploadretailAPIRequest) SetOperIcCode(_operIcCode string) error { + r._operIcCode = _operIcCode + r.Set("oper_ic_code", _operIcCode) + return nil +} + +// OperIcCode Getter +func (r AlibabaAlihealthDrugKytYyUploadretailAPIRequest) GetOperIcCode() string { + return r._operIcCode +} +// DrugstoreName Setter +// 药房名称(可为空) +func (r *AlibabaAlihealthDrugKytYyUploadretailAPIRequest) SetDrugstoreName(_drugstoreName string) error { + r._drugstoreName = _drugstoreName + r.Set("drugstore_name", _drugstoreName) + return nil +} + +// DrugstoreName Getter +func (r AlibabaAlihealthDrugKytYyUploadretailAPIRequest) GetDrugstoreName() string { + return r._drugstoreName +} +// TraceCodes Setter +// 20位追溯码(多个时用半角逗号分隔) +func (r *AlibabaAlihealthDrugKytYyUploadretailAPIRequest) SetTraceCodes(_traceCodes []string) error { + r._traceCodes = _traceCodes + r.Set("trace_codes", _traceCodes) + return nil +} + +// TraceCodes Getter +func (r AlibabaAlihealthDrugKytYyUploadretailAPIRequest) GetTraceCodes() []string { + return r._traceCodes +} +// CustomerIdType Setter +// 购买人证件类型【1身份证2护照3 军官证4 医保卡5接种卡6学生证9其它】 +func (r *AlibabaAlihealthDrugKytYyUploadretailAPIRequest) SetCustomerIdType(_customerIdType string) error { + r._customerIdType = _customerIdType + r.Set("customer_id_type", _customerIdType) + return nil +} + +// CustomerIdType Getter +func (r AlibabaAlihealthDrugKytYyUploadretailAPIRequest) GetCustomerIdType() string { + return r._customerIdType +} +// CustomerId Setter +// 购买人证件编号 +func (r *AlibabaAlihealthDrugKytYyUploadretailAPIRequest) SetCustomerId(_customerId string) error { + r._customerId = _customerId + r.Set("customer_id", _customerId) + return nil +} + +// CustomerId Getter +func (r AlibabaAlihealthDrugKytYyUploadretailAPIRequest) GetCustomerId() string { + return r._customerId +} +// UserTel Setter +// 购买人电话: +func (r *AlibabaAlihealthDrugKytYyUploadretailAPIRequest) SetUserTel(_userTel string) error { + r._userTel = _userTel + r.Set("user_tel", _userTel) + return nil +} + +// UserTel Getter +func (r AlibabaAlihealthDrugKytYyUploadretailAPIRequest) GetUserTel() string { + return r._userTel +} +// NetworkBillFlag Setter +// 互联网标识 1是 0代表否 +func (r *AlibabaAlihealthDrugKytYyUploadretailAPIRequest) SetNetworkBillFlag(_networkBillFlag string) error { + r._networkBillFlag = _networkBillFlag + r.Set("network_bill_flag", _networkBillFlag) + return nil +} + +// NetworkBillFlag Getter +func (r AlibabaAlihealthDrugKytYyUploadretailAPIRequest) GetNetworkBillFlag() string { + return r._networkBillFlag +} +// MedicDoctor Setter +// 开药医师名称 +func (r *AlibabaAlihealthDrugKytYyUploadretailAPIRequest) SetMedicDoctor(_medicDoctor string) error { + r._medicDoctor = _medicDoctor + r.Set("medic_doctor", _medicDoctor) + return nil +} + +// MedicDoctor Getter +func (r AlibabaAlihealthDrugKytYyUploadretailAPIRequest) GetMedicDoctor() string { + return r._medicDoctor +} +// MedicDispenser Setter +// 药品使用分药者 +func (r *AlibabaAlihealthDrugKytYyUploadretailAPIRequest) SetMedicDispenser(_medicDispenser string) error { + r._medicDispenser = _medicDispenser + r.Set("medic_dispenser", _medicDispenser) + return nil +} + +// MedicDispenser Getter +func (r AlibabaAlihealthDrugKytYyUploadretailAPIRequest) GetMedicDispenser() string { + return r._medicDispenser +} +// UserName Setter +// 药品使用者名称 +func (r *AlibabaAlihealthDrugKytYyUploadretailAPIRequest) SetUserName(_userName string) error { + r._userName = _userName + r.Set("user_name", _userName) + return nil +} + +// UserName Getter +func (r AlibabaAlihealthDrugKytYyUploadretailAPIRequest) GetUserName() string { + return r._userName +} +// UserAgent Setter +// 药品使用者代理人 +func (r *AlibabaAlihealthDrugKytYyUploadretailAPIRequest) SetUserAgent(_userAgent string) error { + r._userAgent = _userAgent + r.Set("user_agent", _userAgent) + return nil +} + +// UserAgent Getter +func (r AlibabaAlihealthDrugKytYyUploadretailAPIRequest) GetUserAgent() string { + return r._userAgent +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYyUploadretailAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytYyUploadretailAPIResponse.go new file mode 100644 index 0000000000..28bf3f9013 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugKytYyUploadretailAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +医院上传出库信息 API返回值 +alibaba.alihealth.drug.kyt.yy.uploadretail + +医院上传出库信息接口 +*/ +type AlibabaAlihealthDrugKytYyUploadretailAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugKytYyUploadretailAPIResponseModel +} + +// 医院上传出库信息 成功返回结果 +type AlibabaAlihealthDrugKytYyUploadretailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_yy_uploadretail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 上传单据文件队列表标识 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 错误码(BILL_DECODE_ERROR 单据转码失败 2.BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 错误信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 操作是否成功(true 成功 ,false失败) + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugKytYyUploadretailResponse.go b/model/drugtrace/AlibabaAlihealthDrugKytYyUploadretailResponse.go deleted file mode 100644 index fbff8c475c..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugKytYyUploadretailResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -医院上传出库信息 API返回值 -alibaba.alihealth.drug.kyt.yy.uploadretail - -医院上传出库信息接口 -*/ -type AlibabaAlihealthDrugKytYyUploadretailAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugKytYyUploadretailResponse -} - -// 医院上传出库信息 成功返回结果 -type AlibabaAlihealthDrugKytYyUploadretailResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_kyt_yy_uploadretail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 上传单据文件队列表标识 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 错误码(BILL_DECODE_ERROR 单据转码失败 2.BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 错误信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 操作是否成功(true 成功 ,false失败) - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugLsydSaveentAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugLsydSaveentAPIRequest.go new file mode 100644 index 0000000000..00debeb529 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugLsydSaveentAPIRequest.go @@ -0,0 +1,80 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售药店往来单位新增 API请求 +alibaba.alihealth.drug.lsyd.saveent + +新增往来单位企业记录 +*/ +type AlibabaAlihealthDrugLsydSaveentAPIRequest struct { + model.Params + // 添加企业唯一标识 + _refEntId string + // 新增企业信息 + _addEntReq *AddEntReqDto + // 图片数据流。图片大小务必控制在2M以内 + _licPictureByte *model.File +} + +// 初始化AlibabaAlihealthDrugLsydSaveentAPIRequest对象 +func NewAlibabaAlihealthDrugLsydSaveentRequest() *AlibabaAlihealthDrugLsydSaveentAPIRequest{ + return &AlibabaAlihealthDrugLsydSaveentAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugLsydSaveentAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.lsyd.saveent" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugLsydSaveentAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 添加企业唯一标识 +func (r *AlibabaAlihealthDrugLsydSaveentAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugLsydSaveentAPIRequest) GetRefEntId() string { + return r._refEntId +} +// AddEntReq Setter +// 新增企业信息 +func (r *AlibabaAlihealthDrugLsydSaveentAPIRequest) SetAddEntReq(_addEntReq *AddEntReqDto) error { + r._addEntReq = _addEntReq + r.Set("add_ent_req", _addEntReq) + return nil +} + +// AddEntReq Getter +func (r AlibabaAlihealthDrugLsydSaveentAPIRequest) GetAddEntReq() *AddEntReqDto { + return r._addEntReq +} +// LicPictureByte Setter +// 图片数据流。图片大小务必控制在2M以内 +func (r *AlibabaAlihealthDrugLsydSaveentAPIRequest) SetLicPictureByte(_licPictureByte *model.File) error { + r._licPictureByte = _licPictureByte + r.Set("lic_picture_byte", _licPictureByte) + return nil +} + +// LicPictureByte Getter +func (r AlibabaAlihealthDrugLsydSaveentAPIRequest) GetLicPictureByte() *model.File { + return r._licPictureByte +} diff --git a/model/drugtrace/AlibabaAlihealthDrugLsydSaveentAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugLsydSaveentAPIResponse.go new file mode 100644 index 0000000000..49d146fba8 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugLsydSaveentAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售药店往来单位新增 API返回值 +alibaba.alihealth.drug.lsyd.saveent + +新增往来单位企业记录 +*/ +type AlibabaAlihealthDrugLsydSaveentAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugLsydSaveentAPIResponseModel +} + +// 零售药店往来单位新增 成功返回结果 +type AlibabaAlihealthDrugLsydSaveentAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_lsyd_saveent_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 往来单位新增接口返回 + Result *AlibabaAlihealthDrugLsydSaveentResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugLsydSaveentResponse.go b/model/drugtrace/AlibabaAlihealthDrugLsydSaveentResponse.go deleted file mode 100644 index 62c464a7e2..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugLsydSaveentResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售药店往来单位新增 API返回值 -alibaba.alihealth.drug.lsyd.saveent - -新增往来单位企业记录 -*/ -type AlibabaAlihealthDrugLsydSaveentAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugLsydSaveentResponse -} - -// 零售药店往来单位新增 成功返回结果 -type AlibabaAlihealthDrugLsydSaveentResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_lsyd_saveent_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 往来单位新增接口返回 - Result *AlibabaAlihealthDrugLsydSaveentResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugScanQuerycodeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugScanQuerycodeAPIRequest.go new file mode 100644 index 0000000000..86e5b4ead0 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugScanQuerycodeAPIRequest.go @@ -0,0 +1,122 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询药监码对应的有效期和包装规格 API请求 +alibaba.alihealth.drug.scan.querycode + +查询药监码对应的有效期和包装规格 +*/ +type AlibabaAlihealthDrugScanQuerycodeAPIRequest struct { + model.Params + // 溯源码 + _code string + // 用户标识id + _webchatId string + // 省编码 + _provinceCode string + // 市编码 + _cityCode string + // 区编码 + _areaCode string + // 扫码日期 + _scanTime string +} + +// 初始化AlibabaAlihealthDrugScanQuerycodeAPIRequest对象 +func NewAlibabaAlihealthDrugScanQuerycodeRequest() *AlibabaAlihealthDrugScanQuerycodeAPIRequest{ + return &AlibabaAlihealthDrugScanQuerycodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugScanQuerycodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.scan.querycode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugScanQuerycodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 溯源码 +func (r *AlibabaAlihealthDrugScanQuerycodeAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthDrugScanQuerycodeAPIRequest) GetCode() string { + return r._code +} +// WebchatId Setter +// 用户标识id +func (r *AlibabaAlihealthDrugScanQuerycodeAPIRequest) SetWebchatId(_webchatId string) error { + r._webchatId = _webchatId + r.Set("webchat_id", _webchatId) + return nil +} + +// WebchatId Getter +func (r AlibabaAlihealthDrugScanQuerycodeAPIRequest) GetWebchatId() string { + return r._webchatId +} +// ProvinceCode Setter +// 省编码 +func (r *AlibabaAlihealthDrugScanQuerycodeAPIRequest) SetProvinceCode(_provinceCode string) error { + r._provinceCode = _provinceCode + r.Set("province_code", _provinceCode) + return nil +} + +// ProvinceCode Getter +func (r AlibabaAlihealthDrugScanQuerycodeAPIRequest) GetProvinceCode() string { + return r._provinceCode +} +// CityCode Setter +// 市编码 +func (r *AlibabaAlihealthDrugScanQuerycodeAPIRequest) SetCityCode(_cityCode string) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r AlibabaAlihealthDrugScanQuerycodeAPIRequest) GetCityCode() string { + return r._cityCode +} +// AreaCode Setter +// 区编码 +func (r *AlibabaAlihealthDrugScanQuerycodeAPIRequest) SetAreaCode(_areaCode string) error { + r._areaCode = _areaCode + r.Set("area_code", _areaCode) + return nil +} + +// AreaCode Getter +func (r AlibabaAlihealthDrugScanQuerycodeAPIRequest) GetAreaCode() string { + return r._areaCode +} +// ScanTime Setter +// 扫码日期 +func (r *AlibabaAlihealthDrugScanQuerycodeAPIRequest) SetScanTime(_scanTime string) error { + r._scanTime = _scanTime + r.Set("scan_time", _scanTime) + return nil +} + +// ScanTime Getter +func (r AlibabaAlihealthDrugScanQuerycodeAPIRequest) GetScanTime() string { + return r._scanTime +} diff --git a/model/drugtrace/AlibabaAlihealthDrugScanQuerycodeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugScanQuerycodeAPIResponse.go new file mode 100644 index 0000000000..5847d09147 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugScanQuerycodeAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询药监码对应的有效期和包装规格 API返回值 +alibaba.alihealth.drug.scan.querycode + +查询药监码对应的有效期和包装规格 +*/ +type AlibabaAlihealthDrugScanQuerycodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugScanQuerycodeAPIResponseModel +} + +// 查询药监码对应的有效期和包装规格 成功返回结果 +type AlibabaAlihealthDrugScanQuerycodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_scan_querycode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugScanQuerycodeResponse.go b/model/drugtrace/AlibabaAlihealthDrugScanQuerycodeResponse.go deleted file mode 100644 index d9fb7586ae..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugScanQuerycodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询药监码对应的有效期和包装规格 API返回值 -alibaba.alihealth.drug.scan.querycode - -查询药监码对应的有效期和包装规格 -*/ -type AlibabaAlihealthDrugScanQuerycodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugScanQuerycodeResponse -} - -// 查询药监码对应的有效期和包装规格 成功返回结果 -type AlibabaAlihealthDrugScanQuerycodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_scan_querycode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIRequest.go new file mode 100644 index 0000000000..6aa68f8702 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据追溯码修改69码 API请求 +alibaba.alihealth.drug.updatebarcode.bytraccode + +根据追溯码修改69码 +*/ +type AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIRequest struct { + model.Params + // 追溯码 + _traceCode string + // 69码 + _barcode string +} + +// 初始化AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIRequest对象 +func NewAlibabaAlihealthDrugUpdatebarcodeBytraccodeRequest() *AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIRequest{ + return &AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.updatebarcode.bytraccode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TraceCode Setter +// 追溯码 +func (r *AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIRequest) SetTraceCode(_traceCode string) error { + r._traceCode = _traceCode + r.Set("trace_code", _traceCode) + return nil +} + +// TraceCode Getter +func (r AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIRequest) GetTraceCode() string { + return r._traceCode +} +// Barcode Setter +// 69码 +func (r *AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIRequest) SetBarcode(_barcode string) error { + r._barcode = _barcode + r.Set("barcode", _barcode) + return nil +} + +// Barcode Getter +func (r AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIRequest) GetBarcode() string { + return r._barcode +} diff --git a/model/drugtrace/AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIResponse.go new file mode 100644 index 0000000000..84ef2d24f0 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIResponse.go @@ -0,0 +1,29 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据追溯码修改69码 API返回值 +alibaba.alihealth.drug.updatebarcode.bytraccode + +根据追溯码修改69码 +*/ +type AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIResponseModel +} + +// 根据追溯码修改69码 成功返回结果 +type AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_updatebarcode_bytraccode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugUpdatebarcodeBytraccodeResponse.go b/model/drugtrace/AlibabaAlihealthDrugUpdatebarcodeBytraccodeResponse.go deleted file mode 100644 index 2823561766..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugUpdatebarcodeBytraccodeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据追溯码修改69码 API返回值 -alibaba.alihealth.drug.updatebarcode.bytraccode - -根据追溯码修改69码 -*/ -type AlibabaAlihealthDrugUpdatebarcodeBytraccodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugUpdatebarcodeBytraccodeResponse -} - -// 根据追溯码修改69码 成功返回结果 -type AlibabaAlihealthDrugUpdatebarcodeBytraccodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_updatebarcode_bytraccode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugUploadExtinfoAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugUploadExtinfoAPIRequest.go new file mode 100644 index 0000000000..ebf31d5592 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugUploadExtinfoAPIRequest.go @@ -0,0 +1,94 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +中药饮片及器械对接 API请求 +alibaba.alihealth.drug.upload.extinfo + +中药饮片及器械对接 +*/ +type AlibabaAlihealthDrugUploadExtinfoAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 药品ID + _drugId string + // 批次 + _batchNo string + // 扩展信息 + _extInfoDto *ExtInfoDto +} + +// 初始化AlibabaAlihealthDrugUploadExtinfoAPIRequest对象 +func NewAlibabaAlihealthDrugUploadExtinfoRequest() *AlibabaAlihealthDrugUploadExtinfoAPIRequest{ + return &AlibabaAlihealthDrugUploadExtinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugUploadExtinfoAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.upload.extinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugUploadExtinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugUploadExtinfoAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugUploadExtinfoAPIRequest) GetRefEntId() string { + return r._refEntId +} +// DrugId Setter +// 药品ID +func (r *AlibabaAlihealthDrugUploadExtinfoAPIRequest) SetDrugId(_drugId string) error { + r._drugId = _drugId + r.Set("drug_id", _drugId) + return nil +} + +// DrugId Getter +func (r AlibabaAlihealthDrugUploadExtinfoAPIRequest) GetDrugId() string { + return r._drugId +} +// BatchNo Setter +// 批次 +func (r *AlibabaAlihealthDrugUploadExtinfoAPIRequest) SetBatchNo(_batchNo string) error { + r._batchNo = _batchNo + r.Set("batch_no", _batchNo) + return nil +} + +// BatchNo Getter +func (r AlibabaAlihealthDrugUploadExtinfoAPIRequest) GetBatchNo() string { + return r._batchNo +} +// ExtInfoDto Setter +// 扩展信息 +func (r *AlibabaAlihealthDrugUploadExtinfoAPIRequest) SetExtInfoDto(_extInfoDto *ExtInfoDto) error { + r._extInfoDto = _extInfoDto + r.Set("ext_info_dto", _extInfoDto) + return nil +} + +// ExtInfoDto Getter +func (r AlibabaAlihealthDrugUploadExtinfoAPIRequest) GetExtInfoDto() *ExtInfoDto { + return r._extInfoDto +} diff --git a/model/drugtrace/AlibabaAlihealthDrugUploadExtinfoAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugUploadExtinfoAPIResponse.go new file mode 100644 index 0000000000..543ede2877 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugUploadExtinfoAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +中药饮片及器械对接 API返回值 +alibaba.alihealth.drug.upload.extinfo + +中药饮片及器械对接 +*/ +type AlibabaAlihealthDrugUploadExtinfoAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugUploadExtinfoAPIResponseModel +} + +// 中药饮片及器械对接 成功返回结果 +type AlibabaAlihealthDrugUploadExtinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_upload_extinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaAlihealthDrugUploadExtinfoResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugUploadExtinfoResponse.go b/model/drugtrace/AlibabaAlihealthDrugUploadExtinfoResponse.go deleted file mode 100644 index 9a01f583f2..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugUploadExtinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -中药饮片及器械对接 API返回值 -alibaba.alihealth.drug.upload.extinfo - -中药饮片及器械对接 -*/ -type AlibabaAlihealthDrugUploadExtinfoAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugUploadExtinfoResponse -} - -// 中药饮片及器械对接 成功返回结果 -type AlibabaAlihealthDrugUploadExtinfoResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_upload_extinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaAlihealthDrugUploadExtinfoResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugWxinfoUploadAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugWxinfoUploadAPIRequest.go new file mode 100644 index 0000000000..39a45f91b2 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugWxinfoUploadAPIRequest.go @@ -0,0 +1,94 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +小程序数据回传 API请求 +alibaba.alihealth.drug.wxinfo.upload + +小程序数据回传 +*/ +type AlibabaAlihealthDrugWxinfoUploadAPIRequest struct { + model.Params + // 用户信息 + _userInfo string + // 店铺名称 + _shopInfo string + // 售货员信息 + _salerInfo string + // 渠道 + _isvChannel string +} + +// 初始化AlibabaAlihealthDrugWxinfoUploadAPIRequest对象 +func NewAlibabaAlihealthDrugWxinfoUploadRequest() *AlibabaAlihealthDrugWxinfoUploadAPIRequest{ + return &AlibabaAlihealthDrugWxinfoUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugWxinfoUploadAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drug.wxinfo.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugWxinfoUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserInfo Setter +// 用户信息 +func (r *AlibabaAlihealthDrugWxinfoUploadAPIRequest) SetUserInfo(_userInfo string) error { + r._userInfo = _userInfo + r.Set("user_info", _userInfo) + return nil +} + +// UserInfo Getter +func (r AlibabaAlihealthDrugWxinfoUploadAPIRequest) GetUserInfo() string { + return r._userInfo +} +// ShopInfo Setter +// 店铺名称 +func (r *AlibabaAlihealthDrugWxinfoUploadAPIRequest) SetShopInfo(_shopInfo string) error { + r._shopInfo = _shopInfo + r.Set("shop_info", _shopInfo) + return nil +} + +// ShopInfo Getter +func (r AlibabaAlihealthDrugWxinfoUploadAPIRequest) GetShopInfo() string { + return r._shopInfo +} +// SalerInfo Setter +// 售货员信息 +func (r *AlibabaAlihealthDrugWxinfoUploadAPIRequest) SetSalerInfo(_salerInfo string) error { + r._salerInfo = _salerInfo + r.Set("saler_info", _salerInfo) + return nil +} + +// SalerInfo Getter +func (r AlibabaAlihealthDrugWxinfoUploadAPIRequest) GetSalerInfo() string { + return r._salerInfo +} +// IsvChannel Setter +// 渠道 +func (r *AlibabaAlihealthDrugWxinfoUploadAPIRequest) SetIsvChannel(_isvChannel string) error { + r._isvChannel = _isvChannel + r.Set("isv_channel", _isvChannel) + return nil +} + +// IsvChannel Getter +func (r AlibabaAlihealthDrugWxinfoUploadAPIRequest) GetIsvChannel() string { + return r._isvChannel +} diff --git a/model/drugtrace/AlibabaAlihealthDrugWxinfoUploadAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugWxinfoUploadAPIResponse.go new file mode 100644 index 0000000000..33d12160a5 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugWxinfoUploadAPIResponse.go @@ -0,0 +1,31 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +小程序数据回传 API返回值 +alibaba.alihealth.drug.wxinfo.upload + +小程序数据回传 +*/ +type AlibabaAlihealthDrugWxinfoUploadAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugWxinfoUploadAPIResponseModel +} + +// 小程序数据回传 成功返回结果 +type AlibabaAlihealthDrugWxinfoUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drug_wxinfo_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // model + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugWxinfoUploadResponse.go b/model/drugtrace/AlibabaAlihealthDrugWxinfoUploadResponse.go deleted file mode 100644 index 99ac8ce2ad..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugWxinfoUploadResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -小程序数据回传 API返回值 -alibaba.alihealth.drug.wxinfo.upload - -小程序数据回传 -*/ -type AlibabaAlihealthDrugWxinfoUploadAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugWxinfoUploadResponse -} - -// 小程序数据回传 成功返回结果 -type AlibabaAlihealthDrugWxinfoUploadResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drug_wxinfo_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // model - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeApplycertAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugcodeApplycertAPIRequest.go new file mode 100644 index 0000000000..2e223cdf69 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeApplycertAPIRequest.go @@ -0,0 +1,108 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +申请证书为对接方 API请求 +alibaba.alihealth.drugcode.applycert + +申请证书 为对接方(当前是药厂和中心化系统) +*/ +type AlibabaAlihealthDrugcodeApplycertAPIRequest struct { + model.Params + // 设备唯一标识编号 + _serialNum string + // 企业Id + _refEntId string + // 企业名称 + _entName string + // 证书签名请求 + _csr string + // 证书丢失时的操作类型 (true:证书丢失) + _certLostFlag bool +} + +// 初始化AlibabaAlihealthDrugcodeApplycertAPIRequest对象 +func NewAlibabaAlihealthDrugcodeApplycertRequest() *AlibabaAlihealthDrugcodeApplycertAPIRequest{ + return &AlibabaAlihealthDrugcodeApplycertAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugcodeApplycertAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugcode.applycert" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugcodeApplycertAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SerialNum Setter +// 设备唯一标识编号 +func (r *AlibabaAlihealthDrugcodeApplycertAPIRequest) SetSerialNum(_serialNum string) error { + r._serialNum = _serialNum + r.Set("serial_num", _serialNum) + return nil +} + +// SerialNum Getter +func (r AlibabaAlihealthDrugcodeApplycertAPIRequest) GetSerialNum() string { + return r._serialNum +} +// RefEntId Setter +// 企业Id +func (r *AlibabaAlihealthDrugcodeApplycertAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugcodeApplycertAPIRequest) GetRefEntId() string { + return r._refEntId +} +// EntName Setter +// 企业名称 +func (r *AlibabaAlihealthDrugcodeApplycertAPIRequest) SetEntName(_entName string) error { + r._entName = _entName + r.Set("ent_name", _entName) + return nil +} + +// EntName Getter +func (r AlibabaAlihealthDrugcodeApplycertAPIRequest) GetEntName() string { + return r._entName +} +// Csr Setter +// 证书签名请求 +func (r *AlibabaAlihealthDrugcodeApplycertAPIRequest) SetCsr(_csr string) error { + r._csr = _csr + r.Set("csr", _csr) + return nil +} + +// Csr Getter +func (r AlibabaAlihealthDrugcodeApplycertAPIRequest) GetCsr() string { + return r._csr +} +// CertLostFlag Setter +// 证书丢失时的操作类型 (true:证书丢失) +func (r *AlibabaAlihealthDrugcodeApplycertAPIRequest) SetCertLostFlag(_certLostFlag bool) error { + r._certLostFlag = _certLostFlag + r.Set("cert_lost_flag", _certLostFlag) + return nil +} + +// CertLostFlag Getter +func (r AlibabaAlihealthDrugcodeApplycertAPIRequest) GetCertLostFlag() bool { + return r._certLostFlag +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeApplycertAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeApplycertAPIResponse.go new file mode 100644 index 0000000000..a6675f9f7d --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeApplycertAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +申请证书为对接方 API返回值 +alibaba.alihealth.drugcode.applycert + +申请证书 为对接方(当前是药厂和中心化系统) +*/ +type AlibabaAlihealthDrugcodeApplycertAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugcodeApplycertAPIResponseModel +} + +// 申请证书为对接方 成功返回结果 +type AlibabaAlihealthDrugcodeApplycertAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugcode_applycert_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeApplycertResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeApplycertResponse.go deleted file mode 100644 index 83edf05478..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugcodeApplycertResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -申请证书为对接方 API返回值 -alibaba.alihealth.drugcode.applycert - -申请证书 为对接方(当前是药厂和中心化系统) -*/ -type AlibabaAlihealthDrugcodeApplycertAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugcodeApplycertResponse -} - -// 申请证书为对接方 成功返回结果 -type AlibabaAlihealthDrugcodeApplycertResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugcode_applycert_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIRequest.go new file mode 100644 index 0000000000..703e379f2f --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIRequest.go @@ -0,0 +1,94 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +接收中央随机化系统和临床研究机构的绑定确认状态 API请求 +alibaba.alihealth.drugcode.center.receive.bound.status + +临床用药试验-接收中央随机化系统和临床研究机构的绑定确认状态 +*/ +type AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIRequest struct { + model.Params + // 项目id + _projectId int64 + // 临床研究机构id + _hospitalRefEntId string + // 状态 4:绑定成功 5:绑定失败 + _status int64 + // 中央随机化系统id + _centerRandomSysId string +} + +// 初始化AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIRequest对象 +func NewAlibabaAlihealthDrugcodeCenterReceiveBoundStatusRequest() *AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIRequest{ + return &AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugcode.center.receive.bound.status" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProjectId Setter +// 项目id +func (r *AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIRequest) SetProjectId(_projectId int64) error { + r._projectId = _projectId + r.Set("project_id", _projectId) + return nil +} + +// ProjectId Getter +func (r AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIRequest) GetProjectId() int64 { + return r._projectId +} +// HospitalRefEntId Setter +// 临床研究机构id +func (r *AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIRequest) SetHospitalRefEntId(_hospitalRefEntId string) error { + r._hospitalRefEntId = _hospitalRefEntId + r.Set("hospital_ref_ent_id", _hospitalRefEntId) + return nil +} + +// HospitalRefEntId Getter +func (r AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIRequest) GetHospitalRefEntId() string { + return r._hospitalRefEntId +} +// Status Setter +// 状态 4:绑定成功 5:绑定失败 +func (r *AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIRequest) GetStatus() int64 { + return r._status +} +// CenterRandomSysId Setter +// 中央随机化系统id +func (r *AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIRequest) SetCenterRandomSysId(_centerRandomSysId string) error { + r._centerRandomSysId = _centerRandomSysId + r.Set("center_random_sys_id", _centerRandomSysId) + return nil +} + +// CenterRandomSysId Getter +func (r AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIRequest) GetCenterRandomSysId() string { + return r._centerRandomSysId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIResponse.go new file mode 100644 index 0000000000..ec365d0c97 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIResponse.go @@ -0,0 +1,31 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +接收中央随机化系统和临床研究机构的绑定确认状态 API返回值 +alibaba.alihealth.drugcode.center.receive.bound.status + +临床用药试验-接收中央随机化系统和临床研究机构的绑定确认状态 +*/ +type AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIResponseModel +} + +// 接收中央随机化系统和临床研究机构的绑定确认状态 成功返回结果 +type AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugcode_center_receive_bound_status_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 调用结果码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 提示信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeCenterReceiveBoundStatusResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeCenterReceiveBoundStatusResponse.go deleted file mode 100644 index d8a73cdd0f..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugcodeCenterReceiveBoundStatusResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -接收中央随机化系统和临床研究机构的绑定确认状态 API返回值 -alibaba.alihealth.drugcode.center.receive.bound.status - -临床用药试验-接收中央随机化系统和临床研究机构的绑定确认状态 -*/ -type AlibabaAlihealthDrugcodeCenterReceiveBoundStatusAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugcodeCenterReceiveBoundStatusResponse -} - -// 接收中央随机化系统和临床研究机构的绑定确认状态 成功返回结果 -type AlibabaAlihealthDrugcodeCenterReceiveBoundStatusResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugcode_center_receive_bound_status_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 调用结果码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 提示信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIRequest.go new file mode 100644 index 0000000000..814fb15d7b --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIRequest.go @@ -0,0 +1,94 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +接收盲底文件删除日志 API请求 +alibaba.alihealth.drugcode.drugfactory.blindfiledellog + +临床用药试验-接收盲底文件删除日志 +*/ +type AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIRequest struct { + model.Params + // 药厂企业id + _refEntId string + // 操作人 + _operator string + // 盲底文件删除时间 + _blindFileDeleteTime string + // 盲底文件名称,多个盲底文件用,分隔 + _blindFileNames string +} + +// 初始化AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIRequest对象 +func NewAlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogRequest() *AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIRequest{ + return &AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugcode.drugfactory.blindfiledellog" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 药厂企业id +func (r *AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIRequest) GetRefEntId() string { + return r._refEntId +} +// Operator Setter +// 操作人 +func (r *AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIRequest) SetOperator(_operator string) error { + r._operator = _operator + r.Set("operator", _operator) + return nil +} + +// Operator Getter +func (r AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIRequest) GetOperator() string { + return r._operator +} +// BlindFileDeleteTime Setter +// 盲底文件删除时间 +func (r *AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIRequest) SetBlindFileDeleteTime(_blindFileDeleteTime string) error { + r._blindFileDeleteTime = _blindFileDeleteTime + r.Set("blind_file_delete_time", _blindFileDeleteTime) + return nil +} + +// BlindFileDeleteTime Getter +func (r AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIRequest) GetBlindFileDeleteTime() string { + return r._blindFileDeleteTime +} +// BlindFileNames Setter +// 盲底文件名称,多个盲底文件用,分隔 +func (r *AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIRequest) SetBlindFileNames(_blindFileNames string) error { + r._blindFileNames = _blindFileNames + r.Set("blind_file_names", _blindFileNames) + return nil +} + +// BlindFileNames Getter +func (r AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIRequest) GetBlindFileNames() string { + return r._blindFileNames +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIResponse.go new file mode 100644 index 0000000000..f8f848b89b --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIResponse.go @@ -0,0 +1,31 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +接收盲底文件删除日志 API返回值 +alibaba.alihealth.drugcode.drugfactory.blindfiledellog + +临床用药试验-接收盲底文件删除日志 +*/ +type AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIResponseModel +} + +// 接收盲底文件删除日志 成功返回结果 +type AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugcode_drugfactory_blindfiledellog_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 删除日志同步结果 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 调用结果 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 调用结果信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogResponse.go deleted file mode 100644 index 61644fab7b..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -接收盲底文件删除日志 API返回值 -alibaba.alihealth.drugcode.drugfactory.blindfiledellog - -临床用药试验-接收盲底文件删除日志 -*/ -type AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogResponse -} - -// 接收盲底文件删除日志 成功返回结果 -type AlibabaAlihealthDrugcodeDrugfactoryBlindfiledellogResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugcode_drugfactory_blindfiledellog_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 删除日志同步结果 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 调用结果 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 调用结果信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIRequest.go new file mode 100644 index 0000000000..52f468fb2a --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIRequest.go @@ -0,0 +1,52 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +导出所有项目的药物属性和药品信息 API请求 +alibaba.alihealth.drugcode.drugfactory.exportattribute + +导出所有项目的药物属性和药品信息 +*/ +type AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIRequest struct { + model.Params + // 企业id + _refEntId string +} + +// 初始化AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIRequest对象 +func NewAlibabaAlihealthDrugcodeDrugfactoryExportattributeRequest() *AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIRequest{ + return &AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugcode.drugfactory.exportattribute" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业id +func (r *AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIRequest) GetRefEntId() string { + return r._refEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIResponse.go new file mode 100644 index 0000000000..684e16dea6 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +导出所有项目的药物属性和药品信息 API返回值 +alibaba.alihealth.drugcode.drugfactory.exportattribute + +导出所有项目的药物属性和药品信息 +*/ +type AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIResponseModel +} + +// 导出所有项目的药物属性和药品信息 成功返回结果 +type AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugcode_drugfactory_exportattribute_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportattributeResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportattributeResponse.go deleted file mode 100644 index 9c3b62b77d..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportattributeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -导出所有项目的药物属性和药品信息 API返回值 -alibaba.alihealth.drugcode.drugfactory.exportattribute - -导出所有项目的药物属性和药品信息 -*/ -type AlibabaAlihealthDrugcodeDrugfactoryExportattributeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugcodeDrugfactoryExportattributeResponse -} - -// 导出所有项目的药物属性和药品信息 成功返回结果 -type AlibabaAlihealthDrugcodeDrugfactoryExportattributeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugcode_drugfactory_exportattribute_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIRequest.go new file mode 100644 index 0000000000..1877f4ddf9 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIRequest.go @@ -0,0 +1,52 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +导出临床药品目录 API请求 +alibaba.alihealth.drugcode.drugfactory.exportcategory + +导出临床药品目录 +*/ +type AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIRequest struct { + model.Params + // 企业ID + _refEntId string +} + +// 初始化AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIRequest对象 +func NewAlibabaAlihealthDrugcodeDrugfactoryExportcategoryRequest() *AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIRequest{ + return &AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugcode.drugfactory.exportcategory" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIRequest) GetRefEntId() string { + return r._refEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIResponse.go new file mode 100644 index 0000000000..5372c9618f --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIResponse.go @@ -0,0 +1,31 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +导出临床药品目录 API返回值 +alibaba.alihealth.drugcode.drugfactory.exportcategory + +导出临床药品目录 +*/ +type AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIResponseModel +} + +// 导出临床药品目录 成功返回结果 +type AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugcode_drugfactory_exportcategory_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 导出的药品目录 + Model []ProductDto `json:"model,omitempty" xml:"model>product_dto,omitempty"` + // 操作码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 操作说明 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportcategoryResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportcategoryResponse.go deleted file mode 100644 index ad02f2fc6e..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportcategoryResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -导出临床药品目录 API返回值 -alibaba.alihealth.drugcode.drugfactory.exportcategory - -导出临床药品目录 -*/ -type AlibabaAlihealthDrugcodeDrugfactoryExportcategoryAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugcodeDrugfactoryExportcategoryResponse -} - -// 导出临床药品目录 成功返回结果 -type AlibabaAlihealthDrugcodeDrugfactoryExportcategoryResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugcode_drugfactory_exportcategory_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 导出的药品目录 - Model []ProductDto `json:"model,omitempty" xml:"model>product_dto,omitempty"` - // 操作码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 操作说明 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIRequest.go new file mode 100644 index 0000000000..abf999588c --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIRequest.go @@ -0,0 +1,52 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +导出项目和药品目录 API请求 +alibaba.alihealth.drugcode.drugfactory.exportproject + +导出临床项目及其药品目录 +*/ +type AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIRequest struct { + model.Params + // 企业id + _refEntId string +} + +// 初始化AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIRequest对象 +func NewAlibabaAlihealthDrugcodeDrugfactoryExportprojectRequest() *AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIRequest{ + return &AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugcode.drugfactory.exportproject" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业id +func (r *AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIRequest) GetRefEntId() string { + return r._refEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIResponse.go new file mode 100644 index 0000000000..56a6f3f008 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +导出项目和药品目录 API返回值 +alibaba.alihealth.drugcode.drugfactory.exportproject + +导出临床项目及其药品目录 +*/ +type AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIResponseModel +} + +// 导出项目和药品目录 成功返回结果 +type AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugcode_drugfactory_exportproject_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportprojectResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportprojectResponse.go deleted file mode 100644 index fb84499ce1..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryExportprojectResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -导出项目和药品目录 API返回值 -alibaba.alihealth.drugcode.drugfactory.exportproject - -导出临床项目及其药品目录 -*/ -type AlibabaAlihealthDrugcodeDrugfactoryExportprojectAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugcodeDrugfactoryExportprojectResponse -} - -// 导出项目和药品目录 成功返回结果 -type AlibabaAlihealthDrugcodeDrugfactoryExportprojectResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugcode_drugfactory_exportproject_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIRequest.go new file mode 100644 index 0000000000..4c445df945 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取盲底文件处理结果 API请求 +alibaba.alihealth.drugcode.drugfactory.getblindresult + +获取盲底文件处理结果 +*/ +type AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIRequest struct { + model.Params + // 企业id + _refEntId string + // 盲底文件名称 + _blindFileName string +} + +// 初始化AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIRequest对象 +func NewAlibabaAlihealthDrugcodeDrugfactoryGetblindresultRequest() *AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIRequest{ + return &AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugcode.drugfactory.getblindresult" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业id +func (r *AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIRequest) GetRefEntId() string { + return r._refEntId +} +// BlindFileName Setter +// 盲底文件名称 +func (r *AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIRequest) SetBlindFileName(_blindFileName string) error { + r._blindFileName = _blindFileName + r.Set("blind_file_name", _blindFileName) + return nil +} + +// BlindFileName Getter +func (r AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIRequest) GetBlindFileName() string { + return r._blindFileName +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIResponse.go new file mode 100644 index 0000000000..a22d11d971 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取盲底文件处理结果 API返回值 +alibaba.alihealth.drugcode.drugfactory.getblindresult + +获取盲底文件处理结果 +*/ +type AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIResponseModel +} + +// 获取盲底文件处理结果 成功返回结果 +type AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugcode_drugfactory_getblindresult_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetblindresultResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetblindresultResponse.go deleted file mode 100644 index de43082826..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetblindresultResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取盲底文件处理结果 API返回值 -alibaba.alihealth.drugcode.drugfactory.getblindresult - -获取盲底文件处理结果 -*/ -type AlibabaAlihealthDrugcodeDrugfactoryGetblindresultAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugcodeDrugfactoryGetblindresultResponse -} - -// 获取盲底文件处理结果 成功返回结果 -type AlibabaAlihealthDrugcodeDrugfactoryGetblindresultResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugcode_drugfactory_getblindresult_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIRequest.go new file mode 100644 index 0000000000..e50a84e080 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIRequest.go @@ -0,0 +1,52 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取加密公钥 API请求 +alibaba.alihealth.drugcode.drugfactory.getencrptypk + +获取服务端给药厂用来加密的公钥 +*/ +type AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIRequest struct { + model.Params + // 企业Id + _refEntId string +} + +// 初始化AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIRequest对象 +func NewAlibabaAlihealthDrugcodeDrugfactoryGetencrptypkRequest() *AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIRequest{ + return &AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugcode.drugfactory.getencrptypk" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业Id +func (r *AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIRequest) GetRefEntId() string { + return r._refEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIResponse.go new file mode 100644 index 0000000000..aa6b353b9a --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIResponse.go @@ -0,0 +1,31 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取加密公钥 API返回值 +alibaba.alihealth.drugcode.drugfactory.getencrptypk + +获取服务端给药厂用来加密的公钥 +*/ +type AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIResponseModel +} + +// 获取加密公钥 成功返回结果 +type AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugcode_drugfactory_getencrptypk_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 公钥证书 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 操作码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 操作说明 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkResponse.go deleted file mode 100644 index 1d579447e7..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取加密公钥 API返回值 -alibaba.alihealth.drugcode.drugfactory.getencrptypk - -获取服务端给药厂用来加密的公钥 -*/ -type AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkResponse -} - -// 获取加密公钥 成功返回结果 -type AlibabaAlihealthDrugcodeDrugfactoryGetencrptypkResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugcode_drugfactory_getencrptypk_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 公钥证书 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 操作码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 操作说明 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIRequest.go new file mode 100644 index 0000000000..45580eec83 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIRequest.go @@ -0,0 +1,94 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +传输盲底文件 API请求 +alibaba.alihealth.drugcode.drugfactory.transferblind + +临床用药试验-传输盲底文件 +*/ +type AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIRequest struct { + model.Params + // 企业id + _refEntId string + // 签名值 + _signValue string + // 密文 + _cipherText string + // 文件名称 + _fileName string +} + +// 初始化AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIRequest对象 +func NewAlibabaAlihealthDrugcodeDrugfactoryTransferblindRequest() *AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIRequest{ + return &AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugcode.drugfactory.transferblind" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业id +func (r *AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIRequest) GetRefEntId() string { + return r._refEntId +} +// SignValue Setter +// 签名值 +func (r *AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIRequest) SetSignValue(_signValue string) error { + r._signValue = _signValue + r.Set("sign_value", _signValue) + return nil +} + +// SignValue Getter +func (r AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIRequest) GetSignValue() string { + return r._signValue +} +// CipherText Setter +// 密文 +func (r *AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIRequest) SetCipherText(_cipherText string) error { + r._cipherText = _cipherText + r.Set("cipher_text", _cipherText) + return nil +} + +// CipherText Getter +func (r AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIRequest) GetCipherText() string { + return r._cipherText +} +// FileName Setter +// 文件名称 +func (r *AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIRequest) SetFileName(_fileName string) error { + r._fileName = _fileName + r.Set("file_name", _fileName) + return nil +} + +// FileName Getter +func (r AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIRequest) GetFileName() string { + return r._fileName +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIResponse.go new file mode 100644 index 0000000000..80f09290d7 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIResponse.go @@ -0,0 +1,31 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +传输盲底文件 API返回值 +alibaba.alihealth.drugcode.drugfactory.transferblind + +临床用药试验-传输盲底文件 +*/ +type AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIResponseModel +} + +// 传输盲底文件 成功返回结果 +type AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugcode_drugfactory_transferblind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 操作码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 操作说明 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferblindResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferblindResponse.go deleted file mode 100644 index 0b95abfebb..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferblindResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -传输盲底文件 API返回值 -alibaba.alihealth.drugcode.drugfactory.transferblind - -临床用药试验-传输盲底文件 -*/ -type AlibabaAlihealthDrugcodeDrugfactoryTransferblindAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugcodeDrugfactoryTransferblindResponse -} - -// 传输盲底文件 成功返回结果 -type AlibabaAlihealthDrugcodeDrugfactoryTransferblindResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugcode_drugfactory_transferblind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 操作码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 操作说明 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIRequest.go new file mode 100644 index 0000000000..5c6795ee97 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIRequest.go @@ -0,0 +1,94 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +药厂传输数据 API请求 +alibaba.alihealth.drugcode.drugfactory.transferdata + +药厂传输数据 +*/ +type AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIRequest struct { + model.Params + // 时间戳(毫秒级别) + _timestampYl int64 + // 签名值 + _signValue string + // 密文 + _cipherText string + // 企业Id + _refEntId string +} + +// 初始化AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIRequest对象 +func NewAlibabaAlihealthDrugcodeDrugfactoryTransferdataRequest() *AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIRequest{ + return &AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugcode.drugfactory.transferdata" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TimestampYl Setter +// 时间戳(毫秒级别) +func (r *AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIRequest) SetTimestampYl(_timestampYl int64) error { + r._timestampYl = _timestampYl + r.Set("timestamp_yl", _timestampYl) + return nil +} + +// TimestampYl Getter +func (r AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIRequest) GetTimestampYl() int64 { + return r._timestampYl +} +// SignValue Setter +// 签名值 +func (r *AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIRequest) SetSignValue(_signValue string) error { + r._signValue = _signValue + r.Set("sign_value", _signValue) + return nil +} + +// SignValue Getter +func (r AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIRequest) GetSignValue() string { + return r._signValue +} +// CipherText Setter +// 密文 +func (r *AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIRequest) SetCipherText(_cipherText string) error { + r._cipherText = _cipherText + r.Set("cipher_text", _cipherText) + return nil +} + +// CipherText Getter +func (r AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIRequest) GetCipherText() string { + return r._cipherText +} +// RefEntId Setter +// 企业Id +func (r *AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIRequest) GetRefEntId() string { + return r._refEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIResponse.go new file mode 100644 index 0000000000..c11be9e1c5 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIResponse.go @@ -0,0 +1,31 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +药厂传输数据 API返回值 +alibaba.alihealth.drugcode.drugfactory.transferdata + +药厂传输数据 +*/ +type AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIResponseModel +} + +// 药厂传输数据 成功返回结果 +type AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugcode_drugfactory_transferdata_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否验签成功 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 操作码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 操作说明 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferdataResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferdataResponse.go deleted file mode 100644 index b069b41f8b..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugcodeDrugfactoryTransferdataResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -药厂传输数据 API返回值 -alibaba.alihealth.drugcode.drugfactory.transferdata - -药厂传输数据 -*/ -type AlibabaAlihealthDrugcodeDrugfactoryTransferdataAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugcodeDrugfactoryTransferdataResponse -} - -// 药厂传输数据 成功返回结果 -type AlibabaAlihealthDrugcodeDrugfactoryTransferdataResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugcode_drugfactory_transferdata_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否验签成功 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 操作码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 操作说明 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeScanAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugcodeScanAPIRequest.go new file mode 100644 index 0000000000..d815300342 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeScanAPIRequest.go @@ -0,0 +1,108 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询扫码信息 API请求 +alibaba.alihealth.drugcode.scan + +查询扫码信息 +*/ +type AlibabaAlihealthDrugcodeScanAPIRequest struct { + model.Params + // 20位码 + _code string + // 渠道 + _queryAppName string + // 用户ip + _clientId string + // 设备标识 + _deviceUtdid string + // 用户ID + _userId string +} + +// 初始化AlibabaAlihealthDrugcodeScanAPIRequest对象 +func NewAlibabaAlihealthDrugcodeScanRequest() *AlibabaAlihealthDrugcodeScanAPIRequest{ + return &AlibabaAlihealthDrugcodeScanAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugcodeScanAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugcode.scan" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugcodeScanAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 20位码 +func (r *AlibabaAlihealthDrugcodeScanAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthDrugcodeScanAPIRequest) GetCode() string { + return r._code +} +// QueryAppName Setter +// 渠道 +func (r *AlibabaAlihealthDrugcodeScanAPIRequest) SetQueryAppName(_queryAppName string) error { + r._queryAppName = _queryAppName + r.Set("query_app_name", _queryAppName) + return nil +} + +// QueryAppName Getter +func (r AlibabaAlihealthDrugcodeScanAPIRequest) GetQueryAppName() string { + return r._queryAppName +} +// ClientId Setter +// 用户ip +func (r *AlibabaAlihealthDrugcodeScanAPIRequest) SetClientId(_clientId string) error { + r._clientId = _clientId + r.Set("client_id", _clientId) + return nil +} + +// ClientId Getter +func (r AlibabaAlihealthDrugcodeScanAPIRequest) GetClientId() string { + return r._clientId +} +// DeviceUtdid Setter +// 设备标识 +func (r *AlibabaAlihealthDrugcodeScanAPIRequest) SetDeviceUtdid(_deviceUtdid string) error { + r._deviceUtdid = _deviceUtdid + r.Set("device_utdid", _deviceUtdid) + return nil +} + +// DeviceUtdid Getter +func (r AlibabaAlihealthDrugcodeScanAPIRequest) GetDeviceUtdid() string { + return r._deviceUtdid +} +// UserId Setter +// 用户ID +func (r *AlibabaAlihealthDrugcodeScanAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaAlihealthDrugcodeScanAPIRequest) GetUserId() string { + return r._userId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeScanAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeScanAPIResponse.go new file mode 100644 index 0000000000..cf6d0a6902 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeScanAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询扫码信息 API返回值 +alibaba.alihealth.drugcode.scan + +查询扫码信息 +*/ +type AlibabaAlihealthDrugcodeScanAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugcodeScanAPIResponseModel +} + +// 查询扫码信息 成功返回结果 +type AlibabaAlihealthDrugcodeScanAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugcode_scan_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeScanResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeScanResponse.go deleted file mode 100644 index 5fa9afb43c..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugcodeScanResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询扫码信息 API返回值 -alibaba.alihealth.drugcode.scan - -查询扫码信息 -*/ -type AlibabaAlihealthDrugcodeScanAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugcodeScanResponse -} - -// 查询扫码信息 成功返回结果 -type AlibabaAlihealthDrugcodeScanResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugcode_scan_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeUserDataAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugcodeUserDataAPIRequest.go new file mode 100644 index 0000000000..41e36f702a --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeUserDataAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +西安杨森同步用户行为接口 API请求 +alibaba.alihealth.drugcode.user.data + +西安杨森同步用户行为接口 +*/ +type AlibabaAlihealthDrugcodeUserDataAPIRequest struct { + model.Params + // 用户信息 + _list []HaoxinqingDataDto + // 企业ID,用户区分 appkey下不同企业数据隔离的 + _refEntId string +} + +// 初始化AlibabaAlihealthDrugcodeUserDataAPIRequest对象 +func NewAlibabaAlihealthDrugcodeUserDataRequest() *AlibabaAlihealthDrugcodeUserDataAPIRequest{ + return &AlibabaAlihealthDrugcodeUserDataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugcodeUserDataAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugcode.user.data" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugcodeUserDataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// List Setter +// 用户信息 +func (r *AlibabaAlihealthDrugcodeUserDataAPIRequest) SetList(_list []HaoxinqingDataDto) error { + r._list = _list + r.Set("list", _list) + return nil +} + +// List Getter +func (r AlibabaAlihealthDrugcodeUserDataAPIRequest) GetList() []HaoxinqingDataDto { + return r._list +} +// RefEntId Setter +// 企业ID,用户区分 appkey下不同企业数据隔离的 +func (r *AlibabaAlihealthDrugcodeUserDataAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugcodeUserDataAPIRequest) GetRefEntId() string { + return r._refEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeUserDataAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeUserDataAPIResponse.go new file mode 100644 index 0000000000..332ffc9db0 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugcodeUserDataAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +西安杨森同步用户行为接口 API返回值 +alibaba.alihealth.drugcode.user.data + +西安杨森同步用户行为接口 +*/ +type AlibabaAlihealthDrugcodeUserDataAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugcodeUserDataAPIResponseModel +} + +// 西安杨森同步用户行为接口 成功返回结果 +type AlibabaAlihealthDrugcodeUserDataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugcode_user_data_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugcodeUserDataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugcodeUserDataResponse.go b/model/drugtrace/AlibabaAlihealthDrugcodeUserDataResponse.go deleted file mode 100644 index 6e8d417117..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugcodeUserDataResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -西安杨森同步用户行为接口 API返回值 -alibaba.alihealth.drugcode.user.data - -西安杨森同步用户行为接口 -*/ -type AlibabaAlihealthDrugcodeUserDataAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugcodeUserDataResponse -} - -// 西安杨森同步用户行为接口 成功返回结果 -type AlibabaAlihealthDrugcodeUserDataResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugcode_user_data_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugcodeUserDataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest.go new file mode 100644 index 0000000000..6867117a94 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest.go @@ -0,0 +1,206 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售药店查询本企业上游企业出库单据信息 API请求 +alibaba.alihealth.drugtrace.top.lsyd.listupout + +查询货主/本企业上游企业出库单据信息 +*/ +type AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 开始日期(不写时分秒) + _beginDate string + // 结束日期(不写时分秒) + _endDate string + // 生产批号 + _produceBatchNo string + // 药品ID + _drugEntBaseInfoId string + // 单据类型 + _billType string + // 药品类型 + _physicType string + // 状态 + _status string + // 单据号 + _billCode string + // 页大小 + _pageSize int64 + // 页码 + _page int64 + // 发货单位 + _fromUserId string +} + +// 初始化AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopLsydListupoutRequest() *AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest{ + return &AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.lsyd.listupout" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) GetRefEntId() string { + return r._refEntId +} +// BeginDate Setter +// 开始日期(不写时分秒) +func (r *AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) GetBeginDate() string { + return r._beginDate +} +// EndDate Setter +// 结束日期(不写时分秒) +func (r *AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) GetEndDate() string { + return r._endDate +} +// ProduceBatchNo Setter +// 生产批号 +func (r *AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) SetProduceBatchNo(_produceBatchNo string) error { + r._produceBatchNo = _produceBatchNo + r.Set("produce_batch_no", _produceBatchNo) + return nil +} + +// ProduceBatchNo Getter +func (r AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) GetProduceBatchNo() string { + return r._produceBatchNo +} +// DrugEntBaseInfoId Setter +// 药品ID +func (r *AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) SetDrugEntBaseInfoId(_drugEntBaseInfoId string) error { + r._drugEntBaseInfoId = _drugEntBaseInfoId + r.Set("drug_ent_base_info_id", _drugEntBaseInfoId) + return nil +} + +// DrugEntBaseInfoId Getter +func (r AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) GetDrugEntBaseInfoId() string { + return r._drugEntBaseInfoId +} +// BillType Setter +// 单据类型 +func (r *AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) SetBillType(_billType string) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) GetBillType() string { + return r._billType +} +// PhysicType Setter +// 药品类型 +func (r *AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) SetPhysicType(_physicType string) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) GetPhysicType() string { + return r._physicType +} +// Status Setter +// 状态 +func (r *AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) GetStatus() string { + return r._status +} +// BillCode Setter +// 单据号 +func (r *AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) GetBillCode() string { + return r._billCode +} +// PageSize Setter +// 页大小 +func (r *AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Page Setter +// 页码 +func (r *AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) GetPage() int64 { + return r._page +} +// FromUserId Setter +// 发货单位 +func (r *AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugtraceTopLsydListupoutAPIRequest) GetFromUserId() string { + return r._fromUserId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutAPIResponse.go new file mode 100644 index 0000000000..846cce9490 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售药店查询本企业上游企业出库单据信息 API返回值 +alibaba.alihealth.drugtrace.top.lsyd.listupout + +查询货主/本企业上游企业出库单据信息 +*/ +type AlibabaAlihealthDrugtraceTopLsydListupoutAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopLsydListupoutAPIResponseModel +} + +// 零售药店查询本企业上游企业出库单据信息 成功返回结果 +type AlibabaAlihealthDrugtraceTopLsydListupoutAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_listupout_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugtraceTopLsydListupoutResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIRequest.go new file mode 100644 index 0000000000..2f63659511 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIRequest.go @@ -0,0 +1,94 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上游出库单单据明细查询 API请求 +alibaba.alihealth.drugtrace.top.lsyd.listupout.detail + +查询上游出库单明细(带追溯码信息) +*/ +type AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIRequest struct { + model.Params + // 企业id + _refEntId string + // 单据编码 + _billCode string + // 发货企业renEntId + _fromRefUserId string + // 收货企业refEntId + _toRefUserId string +} + +// 初始化AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopLsydListupoutDetailRequest() *AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIRequest{ + return &AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.lsyd.listupout.detail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业id +func (r *AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIRequest) GetRefEntId() string { + return r._refEntId +} +// BillCode Setter +// 单据编码 +func (r *AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIRequest) GetBillCode() string { + return r._billCode +} +// FromRefUserId Setter +// 发货企业renEntId +func (r *AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIRequest) SetFromRefUserId(_fromRefUserId string) error { + r._fromRefUserId = _fromRefUserId + r.Set("from_ref_user_id", _fromRefUserId) + return nil +} + +// FromRefUserId Getter +func (r AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIRequest) GetFromRefUserId() string { + return r._fromRefUserId +} +// ToRefUserId Setter +// 收货企业refEntId +func (r *AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIRequest) SetToRefUserId(_toRefUserId string) error { + r._toRefUserId = _toRefUserId + r.Set("to_ref_user_id", _toRefUserId) + return nil +} + +// ToRefUserId Getter +func (r AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIRequest) GetToRefUserId() string { + return r._toRefUserId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIResponse.go new file mode 100644 index 0000000000..b0f820ee85 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上游出库单单据明细查询 API返回值 +alibaba.alihealth.drugtrace.top.lsyd.listupout.detail + +查询上游出库单明细(带追溯码信息) +*/ +type AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIResponseModel +} + +// 上游出库单单据明细查询 成功返回结果 +type AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_listupout_detail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugtraceTopLsydListupoutDetailResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutDetailResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutDetailResponse.go deleted file mode 100644 index d5a264aaad..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutDetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上游出库单单据明细查询 API返回值 -alibaba.alihealth.drugtrace.top.lsyd.listupout.detail - -查询上游出库单明细(带追溯码信息) -*/ -type AlibabaAlihealthDrugtraceTopLsydListupoutDetailAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopLsydListupoutDetailResponse -} - -// 上游出库单单据明细查询 成功返回结果 -type AlibabaAlihealthDrugtraceTopLsydListupoutDetailResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_listupout_detail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugtraceTopLsydListupoutDetailResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutResponse.go deleted file mode 100644 index 71064ea017..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydListupoutResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售药店查询本企业上游企业出库单据信息 API返回值 -alibaba.alihealth.drugtrace.top.lsyd.listupout - -查询货主/本企业上游企业出库单据信息 -*/ -type AlibabaAlihealthDrugtraceTopLsydListupoutAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopLsydListupoutResponse -} - -// 零售药店查询本企业上游企业出库单据信息 成功返回结果 -type AlibabaAlihealthDrugtraceTopLsydListupoutResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_listupout_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugtraceTopLsydListupoutResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest.go new file mode 100644 index 0000000000..87e9d0d4c3 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest.go @@ -0,0 +1,206 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传单据后处理状态查询 API请求 +alibaba.alihealth.drugtrace.top.lsyd.query.billstatus + +单据处理状态查询 +*/ +type AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 开始日期 + _beginDate string + // 结束日期 + _endDate string + // 单据类型 A:全部 AI:全部入库 AO:全部出库 + _billType string + // 单据号 + _billCode string + // 药品类型 + _drugType string + // 状态 0, 上传成功 3, 处理成功 4, 处理失败 + _dealStatus string + // 发货商 + _fromUserId string + // 收货商 + _toUserId string + // 代理商 + _agentRefUserId string + // 页大小 + _pageSize int64 + // 页码 + _page int64 +} + +// 初始化AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopLsydQueryBillstatusRequest() *AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest{ + return &AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.lsyd.query.billstatus" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) GetRefEntId() string { + return r._refEntId +} +// BeginDate Setter +// 开始日期 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) GetBeginDate() string { + return r._beginDate +} +// EndDate Setter +// 结束日期 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) GetEndDate() string { + return r._endDate +} +// BillType Setter +// 单据类型 A:全部 AI:全部入库 AO:全部出库 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) SetBillType(_billType string) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) GetBillType() string { + return r._billType +} +// BillCode Setter +// 单据号 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) GetBillCode() string { + return r._billCode +} +// DrugType Setter +// 药品类型 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) SetDrugType(_drugType string) error { + r._drugType = _drugType + r.Set("drug_type", _drugType) + return nil +} + +// DrugType Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) GetDrugType() string { + return r._drugType +} +// DealStatus Setter +// 状态 0, 上传成功 3, 处理成功 4, 处理失败 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) SetDealStatus(_dealStatus string) error { + r._dealStatus = _dealStatus + r.Set("deal_status", _dealStatus) + return nil +} + +// DealStatus Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) GetDealStatus() string { + return r._dealStatus +} +// FromUserId Setter +// 发货商 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) GetFromUserId() string { + return r._fromUserId +} +// ToUserId Setter +// 收货商 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) SetToUserId(_toUserId string) error { + r._toUserId = _toUserId + r.Set("to_user_id", _toUserId) + return nil +} + +// ToUserId Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) GetToUserId() string { + return r._toUserId +} +// AgentRefUserId Setter +// 代理商 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) SetAgentRefUserId(_agentRefUserId string) error { + r._agentRefUserId = _agentRefUserId + r.Set("agent_ref_user_id", _agentRefUserId) + return nil +} + +// AgentRefUserId Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) GetAgentRefUserId() string { + return r._agentRefUserId +} +// PageSize Setter +// 页大小 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Page Setter +// 页码 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIRequest) GetPage() int64 { + return r._page +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIResponse.go new file mode 100644 index 0000000000..c97118789b --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传单据后处理状态查询 API返回值 +alibaba.alihealth.drugtrace.top.lsyd.query.billstatus + +单据处理状态查询 +*/ +type AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIResponseModel +} + +// 上传单据后处理状态查询 成功返回结果 +type AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_query_billstatus_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugtraceTopLsydQueryBillstatusResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryBillstatusResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryBillstatusResponse.go deleted file mode 100644 index 7377034a79..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryBillstatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传单据后处理状态查询 API返回值 -alibaba.alihealth.drugtrace.top.lsyd.query.billstatus - -单据处理状态查询 -*/ -type AlibabaAlihealthDrugtraceTopLsydQueryBillstatusAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopLsydQueryBillstatusResponse -} - -// 上传单据后处理状态查询 成功返回结果 -type AlibabaAlihealthDrugtraceTopLsydQueryBillstatusResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_query_billstatus_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugtraceTopLsydQueryBillstatusResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIRequest.go new file mode 100644 index 0000000000..22a4b44af4 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIRequest.go @@ -0,0 +1,68 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据码查询码信息 API请求 +alibaba.alihealth.drugtrace.top.lsyd.query.codedetail + +服务描述 +此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息。 +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIRequest struct { + model.Params + // 企业唯一标识(或appkey) + _refEntId string + // 码列表 + _codes []string +} + +// 初始化AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopLsydQueryCodedetailRequest() *AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIRequest{ + return &AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.lsyd.query.codedetail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业唯一标识(或appkey) +func (r *AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIRequest) GetRefEntId() string { + return r._refEntId +} +// Codes Setter +// 码列表 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIRequest) SetCodes(_codes []string) error { + r._codes = _codes + r.Set("codes", _codes) + return nil +} + +// Codes Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIRequest) GetCodes() []string { + return r._codes +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIResponse.go new file mode 100644 index 0000000000..76f522077f --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIResponse.go @@ -0,0 +1,29 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据码查询码信息 API返回值 +alibaba.alihealth.drugtrace.top.lsyd.query.codedetail + +服务描述 +此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息。 +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIResponseModel +} + +// 根据码查询码信息 成功返回结果 +type AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_query_codedetail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最外层结果 + Result *AlibabaAlihealthDrugtraceTopLsydQueryCodedetailResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryCodedetailResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryCodedetailResponse.go deleted file mode 100644 index c1e9ea037f..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryCodedetailResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据码查询码信息 API返回值 -alibaba.alihealth.drugtrace.top.lsyd.query.codedetail - -服务描述 -此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息。 -核查平台优先过滤非8开头的,长度非20位数字的码信息。 -*/ -type AlibabaAlihealthDrugtraceTopLsydQueryCodedetailAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopLsydQueryCodedetailResponse -} - -// 根据码查询码信息 成功返回结果 -type AlibabaAlihealthDrugtraceTopLsydQueryCodedetailResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_query_codedetail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最外层结果 - Result *AlibabaAlihealthDrugtraceTopLsydQueryCodedetailResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIRequest.go new file mode 100644 index 0000000000..9e3a47c3cf --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIRequest.go @@ -0,0 +1,52 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过企业名得到唯一标识ref_ent_id及企业ent_id API请求 +alibaba.alihealth.drugtrace.top.lsyd.query.getentinfo + +根据企业名称查询ID +*/ +type AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIRequest struct { + model.Params + // 公司名称(全称) + _entName string +} + +// 初始化AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopLsydQueryGetentinfoRequest() *AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIRequest{ + return &AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.lsyd.query.getentinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EntName Setter +// 公司名称(全称) +func (r *AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIRequest) SetEntName(_entName string) error { + r._entName = _entName + r.Set("ent_name", _entName) + return nil +} + +// EntName Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIRequest) GetEntName() string { + return r._entName +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIResponse.go new file mode 100644 index 0000000000..1e89622e15 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过企业名得到唯一标识ref_ent_id及企业ent_id API返回值 +alibaba.alihealth.drugtrace.top.lsyd.query.getentinfo + +根据企业名称查询ID +*/ +type AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIResponseModel +} + +// 通过企业名得到唯一标识ref_ent_id及企业ent_id 成功返回结果 +type AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_query_getentinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoResponse.go deleted file mode 100644 index d73b3c383d..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过企业名得到唯一标识ref_ent_id及企业ent_id API返回值 -alibaba.alihealth.drugtrace.top.lsyd.query.getentinfo - -根据企业名称查询ID -*/ -type AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoResponse -} - -// 通过企业名得到唯一标识ref_ent_id及企业ent_id 成功返回结果 -type AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_query_getentinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugtraceTopLsydQueryGetentinfoResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest.go new file mode 100644 index 0000000000..c43fca2f97 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest.go @@ -0,0 +1,136 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +往来单位查询 API请求 +alibaba.alihealth.drugtrace.top.lsyd.query.listparts + +查询往来单位列表 +*/ +type AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest struct { + model.Params + // 企业唯一标识 + _refEntId string + // 企业名称 + _entName string + // 企业自定义编号 + _refPartnerId string + // 页大小 + _pageSize int64 + // 页码 + _page int64 + // 开始时间 + _beginDate string + // 结束时间 + _endDate string +} + +// 初始化AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopLsydQueryListpartsRequest() *AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest{ + return &AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.lsyd.query.listparts" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业唯一标识 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest) GetRefEntId() string { + return r._refEntId +} +// EntName Setter +// 企业名称 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest) SetEntName(_entName string) error { + r._entName = _entName + r.Set("ent_name", _entName) + return nil +} + +// EntName Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest) GetEntName() string { + return r._entName +} +// RefPartnerId Setter +// 企业自定义编号 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest) SetRefPartnerId(_refPartnerId string) error { + r._refPartnerId = _refPartnerId + r.Set("ref_partner_id", _refPartnerId) + return nil +} + +// RefPartnerId Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest) GetRefPartnerId() string { + return r._refPartnerId +} +// PageSize Setter +// 页大小 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Page Setter +// 页码 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest) GetPage() int64 { + return r._page +} +// BeginDate Setter +// 开始时间 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest) GetBeginDate() string { + return r._beginDate +} +// EndDate Setter +// 结束时间 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIResponse.go new file mode 100644 index 0000000000..d77aefa8ea --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +往来单位查询 API返回值 +alibaba.alihealth.drugtrace.top.lsyd.query.listparts + +查询往来单位列表 +*/ +type AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIResponseModel +} + +// 往来单位查询 成功返回结果 +type AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_query_listparts_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugtraceTopLsydQueryListpartsResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryListpartsResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryListpartsResponse.go deleted file mode 100644 index 2e12f57bc6..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryListpartsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -往来单位查询 API返回值 -alibaba.alihealth.drugtrace.top.lsyd.query.listparts - -查询往来单位列表 -*/ -type AlibabaAlihealthDrugtraceTopLsydQueryListpartsAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopLsydQueryListpartsResponse -} - -// 往来单位查询 成功返回结果 -type AlibabaAlihealthDrugtraceTopLsydQueryListpartsResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_query_listparts_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugtraceTopLsydQueryListpartsResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIRequest.go new file mode 100644 index 0000000000..329384be92 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIRequest.go @@ -0,0 +1,80 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单码关联关系查询 API请求 +alibaba.alihealth.drugtrace.top.lsyd.query.relation + +单码关联关系查询 +*/ +type AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIRequest struct { + model.Params + // 追溯码 + _code string + // 接口调用企业的唯一标识(接口调用者) + _refEntId string + // 目标企业唯一标识(为哪个企业查询,一般与入参ref_ent_id一样) + _desRefEntId string +} + +// 初始化AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopLsydQueryRelationRequest() *AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIRequest{ + return &AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.lsyd.query.relation" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 追溯码 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIRequest) GetCode() string { + return r._code +} +// RefEntId Setter +// 接口调用企业的唯一标识(接口调用者) +func (r *AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIRequest) GetRefEntId() string { + return r._refEntId +} +// DesRefEntId Setter +// 目标企业唯一标识(为哪个企业查询,一般与入参ref_ent_id一样) +func (r *AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIRequest) SetDesRefEntId(_desRefEntId string) error { + r._desRefEntId = _desRefEntId + r.Set("des_ref_ent_id", _desRefEntId) + return nil +} + +// DesRefEntId Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIRequest) GetDesRefEntId() string { + return r._desRefEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIResponse.go new file mode 100644 index 0000000000..20eaf23235 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单码关联关系查询 API返回值 +alibaba.alihealth.drugtrace.top.lsyd.query.relation + +单码关联关系查询 +*/ +type AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIResponseModel +} + +// 单码关联关系查询 成功返回结果 +type AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_query_relation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugtraceTopLsydQueryRelationResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryRelationResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryRelationResponse.go deleted file mode 100644 index e19b199229..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryRelationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单码关联关系查询 API返回值 -alibaba.alihealth.drugtrace.top.lsyd.query.relation - -单码关联关系查询 -*/ -type AlibabaAlihealthDrugtraceTopLsydQueryRelationAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopLsydQueryRelationResponse -} - -// 单码关联关系查询 成功返回结果 -type AlibabaAlihealthDrugtraceTopLsydQueryRelationResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_query_relation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugtraceTopLsydQueryRelationResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIRequest.go new file mode 100644 index 0000000000..83e0880f95 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过一个码,查询这个码对应的上游企业出库单的单据号 API请求 +alibaba.alihealth.drugtrace.top.lsyd.query.upbillcode + +一个查询上游出库单号的接口。企业在扫码入库时,接口通过扫到的码判定这个码对应的上游企业所属的出库单据号 +*/ +type AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIRequest struct { + model.Params + // 追溯码 + _code string + // 企业REF_ENT_ID (当前企业的唯一标识) + _refEntId string +} + +// 初始化AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeRequest() *AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIRequest{ + return &AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.lsyd.query.upbillcode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 追溯码 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIRequest) GetCode() string { + return r._code +} +// RefEntId Setter +// 企业REF_ENT_ID (当前企业的唯一标识) +func (r *AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIRequest) GetRefEntId() string { + return r._refEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIResponse.go new file mode 100644 index 0000000000..fed2b7eee7 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过一个码,查询这个码对应的上游企业出库单的单据号 API返回值 +alibaba.alihealth.drugtrace.top.lsyd.query.upbillcode + +一个查询上游出库单号的接口。企业在扫码入库时,接口通过扫到的码判定这个码对应的上游企业所属的出库单据号 +*/ +type AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIResponseModel +} + +// 通过一个码,查询这个码对应的上游企业出库单的单据号 成功返回结果 +type AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_query_upbillcode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeResponse.go deleted file mode 100644 index 2e6f2b622f..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过一个码,查询这个码对应的上游企业出库单的单据号 API返回值 -alibaba.alihealth.drugtrace.top.lsyd.query.upbillcode - -一个查询上游出库单号的接口。企业在扫码入库时,接口通过扫到的码判定这个码对应的上游企业所属的出库单据号 -*/ -type AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeResponse -} - -// 通过一个码,查询这个码对应的上游企业出库单的单据号 成功返回结果 -type AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_query_upbillcode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugtraceTopLsydQueryUpbillcodeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIRequest.go new file mode 100644 index 0000000000..3a0912f900 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据单据号查询单据的详情信息【注意:查询的是本企业的单据】 API请求 +alibaba.alihealth.drugtrace.top.lsyd.query.upbilldetail + +根据单据号查询单据的详情信息【注意:这个接口查询的是本企业的单据,如果是查询上游的单据明细信息,使用xxxxxxx.listupout.detail接口】。 +*/ +type AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIRequest struct { + model.Params + // 单据号码 + _billCode string + // 本企业refEntId + _refEntId string +} + +// 初始化AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailRequest() *AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIRequest{ + return &AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.lsyd.query.upbilldetail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据号码 +func (r *AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIRequest) GetBillCode() string { + return r._billCode +} +// RefEntId Setter +// 本企业refEntId +func (r *AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIRequest) GetRefEntId() string { + return r._refEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIResponse.go new file mode 100644 index 0000000000..ad938e3679 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据单据号查询单据的详情信息【注意:查询的是本企业的单据】 API返回值 +alibaba.alihealth.drugtrace.top.lsyd.query.upbilldetail + +根据单据号查询单据的详情信息【注意:这个接口查询的是本企业的单据,如果是查询上游的单据明细信息,使用xxxxxxx.listupout.detail接口】。 +*/ +type AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIResponseModel +} + +// 根据单据号查询单据的详情信息【注意:查询的是本企业的单据】 成功返回结果 +type AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_query_upbilldetail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailResponse.go deleted file mode 100644 index c2a074eeca..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据单据号查询单据的详情信息【注意:查询的是本企业的单据】 API返回值 -alibaba.alihealth.drugtrace.top.lsyd.query.upbilldetail - -根据单据号查询单据的详情信息【注意:这个接口查询的是本企业的单据,如果是查询上游的单据明细信息,使用xxxxxxx.listupout.detail接口】。 -*/ -type AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailResponse -} - -// 根据单据号查询单据的详情信息【注意:查询的是本企业的单据】 成功返回结果 -type AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_query_upbilldetail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugtraceTopLsydQueryUpbilldetailResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest.go new file mode 100644 index 0000000000..1398583a3b --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest.go @@ -0,0 +1,572 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +出入库单据上传 API请求 +alibaba.alihealth.drugtrace.top.lsyd.uploadinoutbill + +零售企业上传出入库信息,包括101, "生产入库";102, "采购入库";103, "退货入库";104, "调拨入库";106, "零头入库";107, "供应入库";108, "召回入库";110,"赠品入库";111,"盘盈入库";112,"报废入库";113,"其他入库" +201, "销售出库";202, "退货出库";203, "调拨出库";204, "返工出库";205, "销毁出库";206, "抽检出库";207, "直调出库";208, "生产出库";209, "供应出库";211, "召回出库";212,"赠品出库";214,"盘亏出库";215,"损坏出库";216,"报废出库";217,"其他出库";237, "直调退货"。 +不包括对个人的零售出库,疫苗接种,领药出库。 +*/ +type AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest struct { + model.Params + // 单据编码(每个单据号只能上传一次) + _billCode string + // 单据时间 + _billTime string + // 单据类型【102代表采购入库】 + _billType int64 + // 药品类型【3普药2特药】89开头的码定义为特药,其它码定义成普药 + _physicType int64 + // 上传单据企业的单位编码【注意:该入参是ref_ent_id,不是ent_id】 + _refUserId string + // 代理企业【注意:该入参是ref_ent_id,不是ent_id】,该字段兼容之前接口逻辑,后期将不允许使用,不要填值。 + _agentRefUserId string + // 发货企业entId + _fromUserId string + // 收货企业entId + _toUserId string + // 直调企业标识 + _destUserId string + // 单据提交者(appkey编号) + _operIcCode string + // 单据提交者姓名 + _operIcName string + // 客户端类型[必须填2] + _clientType string + // 退货原因代码[退货入出库时填写] + _returnReasonCode string + // 退货原因描述[退货入出库时填写] + _returnReasonDes string + // 注销原因代码【销毁出库时填写】 + _cancelReasonCode string + // 注销原因描述【销毁出库时填写】 + _cancelReasonDes string + // 执行人姓名【销毁出库时填写】 + _executerName string + // 执行人证件号【销毁出库时填写】 + _executerCode string + // 监督人姓名【销毁出库时填写】 + _superviserName string + // 监督人证件号【销毁出库时填写】 + _superviserCode string + // 仓号 + _warehouseId string + // 药品ID[企业自已系统的药品ID] + _drugId string + // 追溯码[多个时用逗号分开] + _traceCodes []string + // (协同平台数据合规)发货地址【必选】 + _fromAddress string + // (协同平台数据合规)收货地址【必选】 + _toAddress string + // (协同平台数据合规)发货单编号【必选】 + _fromBillCode string + // (协同平台数据合规)订货单编号【可选】 + _orderCode string + // (协同平台数据合规)发货人【必选】 + _fromPerson string + // (协同平台数据合规)收货人【必选】 + _toPerson string + // (协同平台数据合规)药品配送企业【出库单,收货方为医疗机构时填写】 + _disRefEntId string + // (协同平台数据合规)药品配送企业entId【出库单,收货方为医疗机构时填写】 + _disEntId string + // (协同平台数据合规)应收货总数量【必选】 + _quReceivable int64 + // (协同平台数据合规)是否验证,0:未通过验证,1:已验证 + _xtIsCheck string + // (协同平台数据合规)未验证通过原因【验证未通过时填写】 + _xtCheckCode string + // (协同平台数据合规)未验证通过原因描述【验证未通过时填写】 + _xtCheckCodeDesc string + // (协同平台数据合规)药品列表Json:"codeCount": 药品数量 "commDrugId": 国家药品唯一标识 "exprieDate": 生产日期 "physicInfo": 药品信息 "pkgSpec": 包状规格 "prepnCount": 制剂数量 "produceBatchNo":生产批次 "produceDate": 生产日期 + _drugListJson string + // (协同平台数据合规)单据委托企业refEntId【疫苗药品出库单填写】 + _assRefEntId string + // (协同平台数据合规)单据委托企业entId【疫苗药品出库单填写】 + _assEntId string +} + +// 初始化AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopLsydUploadinoutbillRequest() *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest{ + return &AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.lsyd.uploadinoutbill" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据编码(每个单据号只能上传一次) +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetBillCode() string { + return r._billCode +} +// BillTime Setter +// 单据时间 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetBillTime(_billTime string) error { + r._billTime = _billTime + r.Set("bill_time", _billTime) + return nil +} + +// BillTime Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetBillTime() string { + return r._billTime +} +// BillType Setter +// 单据类型【102代表采购入库】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetBillType(_billType int64) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetBillType() int64 { + return r._billType +} +// PhysicType Setter +// 药品类型【3普药2特药】89开头的码定义为特药,其它码定义成普药 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetPhysicType(_physicType int64) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetPhysicType() int64 { + return r._physicType +} +// RefUserId Setter +// 上传单据企业的单位编码【注意:该入参是ref_ent_id,不是ent_id】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetRefUserId(_refUserId string) error { + r._refUserId = _refUserId + r.Set("ref_user_id", _refUserId) + return nil +} + +// RefUserId Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetRefUserId() string { + return r._refUserId +} +// AgentRefUserId Setter +// 代理企业【注意:该入参是ref_ent_id,不是ent_id】,该字段兼容之前接口逻辑,后期将不允许使用,不要填值。 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetAgentRefUserId(_agentRefUserId string) error { + r._agentRefUserId = _agentRefUserId + r.Set("agent_ref_user_id", _agentRefUserId) + return nil +} + +// AgentRefUserId Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetAgentRefUserId() string { + return r._agentRefUserId +} +// FromUserId Setter +// 发货企业entId +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetFromUserId() string { + return r._fromUserId +} +// ToUserId Setter +// 收货企业entId +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetToUserId(_toUserId string) error { + r._toUserId = _toUserId + r.Set("to_user_id", _toUserId) + return nil +} + +// ToUserId Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetToUserId() string { + return r._toUserId +} +// DestUserId Setter +// 直调企业标识 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetDestUserId(_destUserId string) error { + r._destUserId = _destUserId + r.Set("dest_user_id", _destUserId) + return nil +} + +// DestUserId Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetDestUserId() string { + return r._destUserId +} +// OperIcCode Setter +// 单据提交者(appkey编号) +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetOperIcCode(_operIcCode string) error { + r._operIcCode = _operIcCode + r.Set("oper_ic_code", _operIcCode) + return nil +} + +// OperIcCode Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetOperIcCode() string { + return r._operIcCode +} +// OperIcName Setter +// 单据提交者姓名 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetOperIcName(_operIcName string) error { + r._operIcName = _operIcName + r.Set("oper_ic_name", _operIcName) + return nil +} + +// OperIcName Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetOperIcName() string { + return r._operIcName +} +// ClientType Setter +// 客户端类型[必须填2] +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetClientType(_clientType string) error { + r._clientType = _clientType + r.Set("client_type", _clientType) + return nil +} + +// ClientType Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetClientType() string { + return r._clientType +} +// ReturnReasonCode Setter +// 退货原因代码[退货入出库时填写] +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetReturnReasonCode(_returnReasonCode string) error { + r._returnReasonCode = _returnReasonCode + r.Set("return_reason_code", _returnReasonCode) + return nil +} + +// ReturnReasonCode Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetReturnReasonCode() string { + return r._returnReasonCode +} +// ReturnReasonDes Setter +// 退货原因描述[退货入出库时填写] +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetReturnReasonDes(_returnReasonDes string) error { + r._returnReasonDes = _returnReasonDes + r.Set("return_reason_des", _returnReasonDes) + return nil +} + +// ReturnReasonDes Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetReturnReasonDes() string { + return r._returnReasonDes +} +// CancelReasonCode Setter +// 注销原因代码【销毁出库时填写】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetCancelReasonCode(_cancelReasonCode string) error { + r._cancelReasonCode = _cancelReasonCode + r.Set("cancel_reason_code", _cancelReasonCode) + return nil +} + +// CancelReasonCode Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetCancelReasonCode() string { + return r._cancelReasonCode +} +// CancelReasonDes Setter +// 注销原因描述【销毁出库时填写】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetCancelReasonDes(_cancelReasonDes string) error { + r._cancelReasonDes = _cancelReasonDes + r.Set("cancel_reason_des", _cancelReasonDes) + return nil +} + +// CancelReasonDes Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetCancelReasonDes() string { + return r._cancelReasonDes +} +// ExecuterName Setter +// 执行人姓名【销毁出库时填写】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetExecuterName(_executerName string) error { + r._executerName = _executerName + r.Set("executer_name", _executerName) + return nil +} + +// ExecuterName Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetExecuterName() string { + return r._executerName +} +// ExecuterCode Setter +// 执行人证件号【销毁出库时填写】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetExecuterCode(_executerCode string) error { + r._executerCode = _executerCode + r.Set("executer_code", _executerCode) + return nil +} + +// ExecuterCode Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetExecuterCode() string { + return r._executerCode +} +// SuperviserName Setter +// 监督人姓名【销毁出库时填写】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetSuperviserName(_superviserName string) error { + r._superviserName = _superviserName + r.Set("superviser_name", _superviserName) + return nil +} + +// SuperviserName Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetSuperviserName() string { + return r._superviserName +} +// SuperviserCode Setter +// 监督人证件号【销毁出库时填写】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetSuperviserCode(_superviserCode string) error { + r._superviserCode = _superviserCode + r.Set("superviser_code", _superviserCode) + return nil +} + +// SuperviserCode Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetSuperviserCode() string { + return r._superviserCode +} +// WarehouseId Setter +// 仓号 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetWarehouseId(_warehouseId string) error { + r._warehouseId = _warehouseId + r.Set("warehouse_id", _warehouseId) + return nil +} + +// WarehouseId Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetWarehouseId() string { + return r._warehouseId +} +// DrugId Setter +// 药品ID[企业自已系统的药品ID] +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetDrugId(_drugId string) error { + r._drugId = _drugId + r.Set("drug_id", _drugId) + return nil +} + +// DrugId Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetDrugId() string { + return r._drugId +} +// TraceCodes Setter +// 追溯码[多个时用逗号分开] +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetTraceCodes(_traceCodes []string) error { + r._traceCodes = _traceCodes + r.Set("trace_codes", _traceCodes) + return nil +} + +// TraceCodes Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetTraceCodes() []string { + return r._traceCodes +} +// FromAddress Setter +// (协同平台数据合规)发货地址【必选】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetFromAddress(_fromAddress string) error { + r._fromAddress = _fromAddress + r.Set("from_address", _fromAddress) + return nil +} + +// FromAddress Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetFromAddress() string { + return r._fromAddress +} +// ToAddress Setter +// (协同平台数据合规)收货地址【必选】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetToAddress(_toAddress string) error { + r._toAddress = _toAddress + r.Set("to_address", _toAddress) + return nil +} + +// ToAddress Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetToAddress() string { + return r._toAddress +} +// FromBillCode Setter +// (协同平台数据合规)发货单编号【必选】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetFromBillCode(_fromBillCode string) error { + r._fromBillCode = _fromBillCode + r.Set("from_bill_code", _fromBillCode) + return nil +} + +// FromBillCode Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetFromBillCode() string { + return r._fromBillCode +} +// OrderCode Setter +// (协同平台数据合规)订货单编号【可选】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetOrderCode() string { + return r._orderCode +} +// FromPerson Setter +// (协同平台数据合规)发货人【必选】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetFromPerson(_fromPerson string) error { + r._fromPerson = _fromPerson + r.Set("from_person", _fromPerson) + return nil +} + +// FromPerson Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetFromPerson() string { + return r._fromPerson +} +// ToPerson Setter +// (协同平台数据合规)收货人【必选】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetToPerson(_toPerson string) error { + r._toPerson = _toPerson + r.Set("to_person", _toPerson) + return nil +} + +// ToPerson Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetToPerson() string { + return r._toPerson +} +// DisRefEntId Setter +// (协同平台数据合规)药品配送企业【出库单,收货方为医疗机构时填写】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetDisRefEntId(_disRefEntId string) error { + r._disRefEntId = _disRefEntId + r.Set("dis_ref_ent_id", _disRefEntId) + return nil +} + +// DisRefEntId Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetDisRefEntId() string { + return r._disRefEntId +} +// DisEntId Setter +// (协同平台数据合规)药品配送企业entId【出库单,收货方为医疗机构时填写】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetDisEntId(_disEntId string) error { + r._disEntId = _disEntId + r.Set("dis_ent_id", _disEntId) + return nil +} + +// DisEntId Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetDisEntId() string { + return r._disEntId +} +// QuReceivable Setter +// (协同平台数据合规)应收货总数量【必选】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetQuReceivable(_quReceivable int64) error { + r._quReceivable = _quReceivable + r.Set("qu_receivable", _quReceivable) + return nil +} + +// QuReceivable Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetQuReceivable() int64 { + return r._quReceivable +} +// XtIsCheck Setter +// (协同平台数据合规)是否验证,0:未通过验证,1:已验证 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetXtIsCheck(_xtIsCheck string) error { + r._xtIsCheck = _xtIsCheck + r.Set("xt_is_check", _xtIsCheck) + return nil +} + +// XtIsCheck Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetXtIsCheck() string { + return r._xtIsCheck +} +// XtCheckCode Setter +// (协同平台数据合规)未验证通过原因【验证未通过时填写】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetXtCheckCode(_xtCheckCode string) error { + r._xtCheckCode = _xtCheckCode + r.Set("xt_check_code", _xtCheckCode) + return nil +} + +// XtCheckCode Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetXtCheckCode() string { + return r._xtCheckCode +} +// XtCheckCodeDesc Setter +// (协同平台数据合规)未验证通过原因描述【验证未通过时填写】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetXtCheckCodeDesc(_xtCheckCodeDesc string) error { + r._xtCheckCodeDesc = _xtCheckCodeDesc + r.Set("xt_check_code_desc", _xtCheckCodeDesc) + return nil +} + +// XtCheckCodeDesc Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetXtCheckCodeDesc() string { + return r._xtCheckCodeDesc +} +// DrugListJson Setter +// (协同平台数据合规)药品列表Json:"codeCount": 药品数量 "commDrugId": 国家药品唯一标识 "exprieDate": 生产日期 "physicInfo": 药品信息 "pkgSpec": 包状规格 "prepnCount": 制剂数量 "produceBatchNo":生产批次 "produceDate": 生产日期 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetDrugListJson(_drugListJson string) error { + r._drugListJson = _drugListJson + r.Set("drug_list_json", _drugListJson) + return nil +} + +// DrugListJson Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetDrugListJson() string { + return r._drugListJson +} +// AssRefEntId Setter +// (协同平台数据合规)单据委托企业refEntId【疫苗药品出库单填写】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetAssRefEntId(_assRefEntId string) error { + r._assRefEntId = _assRefEntId + r.Set("ass_ref_ent_id", _assRefEntId) + return nil +} + +// AssRefEntId Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetAssRefEntId() string { + return r._assRefEntId +} +// AssEntId Setter +// (协同平台数据合规)单据委托企业entId【疫苗药品出库单填写】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) SetAssEntId(_assEntId string) error { + r._assEntId = _assEntId + r.Set("ass_ent_id", _assEntId) + return nil +} + +// AssEntId Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIRequest) GetAssEntId() string { + return r._assEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIResponse.go new file mode 100644 index 0000000000..bf98727552 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIResponse.go @@ -0,0 +1,35 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +出入库单据上传 API返回值 +alibaba.alihealth.drugtrace.top.lsyd.uploadinoutbill + +零售企业上传出入库信息,包括101, "生产入库";102, "采购入库";103, "退货入库";104, "调拨入库";106, "零头入库";107, "供应入库";108, "召回入库";110,"赠品入库";111,"盘盈入库";112,"报废入库";113,"其他入库" +201, "销售出库";202, "退货出库";203, "调拨出库";204, "返工出库";205, "销毁出库";206, "抽检出库";207, "直调出库";208, "生产出库";209, "供应出库";211, "召回出库";212,"赠品出库";214,"盘亏出库";215,"损坏出库";216,"报废出库";217,"其他出库";237, "直调退货"。 +不包括对个人的零售出库,疫苗接种,领药出库。 +*/ +type AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIResponseModel +} + +// 出入库单据上传 成功返回结果 +type AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_uploadinoutbill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 返回编码(BILL_DECODE_ERROR 单据转码失败 BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 返回信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 是否成功(true 成功 false 失败) + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadinoutbillResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadinoutbillResponse.go deleted file mode 100644 index ca77a1c0c2..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadinoutbillResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -出入库单据上传 API返回值 -alibaba.alihealth.drugtrace.top.lsyd.uploadinoutbill - -零售企业上传出入库信息,包括101, "生产入库";102, "采购入库";103, "退货入库";104, "调拨入库";106, "零头入库";107, "供应入库";108, "召回入库";110,"赠品入库";111,"盘盈入库";112,"报废入库";113,"其他入库" -201, "销售出库";202, "退货出库";203, "调拨出库";204, "返工出库";205, "销毁出库";206, "抽检出库";207, "直调出库";208, "生产出库";209, "供应出库";211, "召回出库";212,"赠品出库";214,"盘亏出库";215,"损坏出库";216,"报废出库";217,"其他出库";237, "直调退货"。 -不包括对个人的零售出库,疫苗接种,领药出库。 -*/ -type AlibabaAlihealthDrugtraceTopLsydUploadinoutbillAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopLsydUploadinoutbillResponse -} - -// 出入库单据上传 成功返回结果 -type AlibabaAlihealthDrugtraceTopLsydUploadinoutbillResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_uploadinoutbill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 返回编码(BILL_DECODE_ERROR 单据转码失败 BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 返回信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 是否成功(true 成功 false 失败) - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest.go new file mode 100644 index 0000000000..23d7ba158a --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest.go @@ -0,0 +1,276 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售单据上传接口 API请求 +alibaba.alihealth.drugtrace.top.lsyd.uploadretail + +快易通多融零售上传接口 +*/ +type AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest struct { + model.Params + // 单据编号(唯一) + _billCode string + // 单据生成时间(一般写当前时间) + _billTime string + // 单据类型[321,零售出库][322,疫苗接种] + _billType int64 + // 药品类型[2,特药,3,普药] + _physicType int64 + // 码上放心平台企业唯一编码(门店或医疗机构) + _refUserId string + // 发货企业(可为空) + _fromUserId string + // 单据提交者(appkey编号) + _operIcCode string + // 单据提交者姓名(可为空) + _operIcName string + // 20位追溯码(多个时用半角逗号分隔) + _traceCodes []string + // 购买人证件类型【1身份证2护照3 军官证4 医保卡5接种卡6学生证9其它】 + _customerIdType string + // 购买人证件编号 + _customerId string + // 购买人电话 + _userTel string + // 互联网订单标识 0非互联网 1互联网 + _networkBillFlag string + // 开药医师 + _medicDoctor string + // 药品发药人 + _medicDispenser string + // 药品使用者姓名 + _userName string + // 药品代理人 + _userAgent string +} + +// 初始化AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopLsydUploadretailRequest() *AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest{ + return &AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.lsyd.uploadretail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据编号(唯一) +func (r *AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) GetBillCode() string { + return r._billCode +} +// BillTime Setter +// 单据生成时间(一般写当前时间) +func (r *AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) SetBillTime(_billTime string) error { + r._billTime = _billTime + r.Set("bill_time", _billTime) + return nil +} + +// BillTime Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) GetBillTime() string { + return r._billTime +} +// BillType Setter +// 单据类型[321,零售出库][322,疫苗接种] +func (r *AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) SetBillType(_billType int64) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) GetBillType() int64 { + return r._billType +} +// PhysicType Setter +// 药品类型[2,特药,3,普药] +func (r *AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) SetPhysicType(_physicType int64) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) GetPhysicType() int64 { + return r._physicType +} +// RefUserId Setter +// 码上放心平台企业唯一编码(门店或医疗机构) +func (r *AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) SetRefUserId(_refUserId string) error { + r._refUserId = _refUserId + r.Set("ref_user_id", _refUserId) + return nil +} + +// RefUserId Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) GetRefUserId() string { + return r._refUserId +} +// FromUserId Setter +// 发货企业(可为空) +func (r *AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) GetFromUserId() string { + return r._fromUserId +} +// OperIcCode Setter +// 单据提交者(appkey编号) +func (r *AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) SetOperIcCode(_operIcCode string) error { + r._operIcCode = _operIcCode + r.Set("oper_ic_code", _operIcCode) + return nil +} + +// OperIcCode Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) GetOperIcCode() string { + return r._operIcCode +} +// OperIcName Setter +// 单据提交者姓名(可为空) +func (r *AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) SetOperIcName(_operIcName string) error { + r._operIcName = _operIcName + r.Set("oper_ic_name", _operIcName) + return nil +} + +// OperIcName Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) GetOperIcName() string { + return r._operIcName +} +// TraceCodes Setter +// 20位追溯码(多个时用半角逗号分隔) +func (r *AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) SetTraceCodes(_traceCodes []string) error { + r._traceCodes = _traceCodes + r.Set("trace_codes", _traceCodes) + return nil +} + +// TraceCodes Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) GetTraceCodes() []string { + return r._traceCodes +} +// CustomerIdType Setter +// 购买人证件类型【1身份证2护照3 军官证4 医保卡5接种卡6学生证9其它】 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) SetCustomerIdType(_customerIdType string) error { + r._customerIdType = _customerIdType + r.Set("customer_id_type", _customerIdType) + return nil +} + +// CustomerIdType Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) GetCustomerIdType() string { + return r._customerIdType +} +// CustomerId Setter +// 购买人证件编号 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) SetCustomerId(_customerId string) error { + r._customerId = _customerId + r.Set("customer_id", _customerId) + return nil +} + +// CustomerId Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) GetCustomerId() string { + return r._customerId +} +// UserTel Setter +// 购买人电话 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) SetUserTel(_userTel string) error { + r._userTel = _userTel + r.Set("user_tel", _userTel) + return nil +} + +// UserTel Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) GetUserTel() string { + return r._userTel +} +// NetworkBillFlag Setter +// 互联网订单标识 0非互联网 1互联网 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) SetNetworkBillFlag(_networkBillFlag string) error { + r._networkBillFlag = _networkBillFlag + r.Set("network_bill_flag", _networkBillFlag) + return nil +} + +// NetworkBillFlag Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) GetNetworkBillFlag() string { + return r._networkBillFlag +} +// MedicDoctor Setter +// 开药医师 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) SetMedicDoctor(_medicDoctor string) error { + r._medicDoctor = _medicDoctor + r.Set("medic_doctor", _medicDoctor) + return nil +} + +// MedicDoctor Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) GetMedicDoctor() string { + return r._medicDoctor +} +// MedicDispenser Setter +// 药品发药人 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) SetMedicDispenser(_medicDispenser string) error { + r._medicDispenser = _medicDispenser + r.Set("medic_dispenser", _medicDispenser) + return nil +} + +// MedicDispenser Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) GetMedicDispenser() string { + return r._medicDispenser +} +// UserName Setter +// 药品使用者姓名 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) SetUserName(_userName string) error { + r._userName = _userName + r.Set("user_name", _userName) + return nil +} + +// UserName Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) GetUserName() string { + return r._userName +} +// UserAgent Setter +// 药品代理人 +func (r *AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) SetUserAgent(_userAgent string) error { + r._userAgent = _userAgent + r.Set("user_agent", _userAgent) + return nil +} + +// UserAgent Getter +func (r AlibabaAlihealthDrugtraceTopLsydUploadretailAPIRequest) GetUserAgent() string { + return r._userAgent +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadretailAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadretailAPIResponse.go new file mode 100644 index 0000000000..3d35284510 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadretailAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售单据上传接口 API返回值 +alibaba.alihealth.drugtrace.top.lsyd.uploadretail + +快易通多融零售上传接口 +*/ +type AlibabaAlihealthDrugtraceTopLsydUploadretailAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopLsydUploadretailAPIResponseModel +} + +// 零售单据上传接口 成功返回结果 +type AlibabaAlihealthDrugtraceTopLsydUploadretailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_uploadretail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 上传单据文件队列表标识 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 错误码(BILL_DECODE_ERROR 单据转码失败 2.BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 错误信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 操作是否成功(true 成功 ,false失败) + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadretailResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadretailResponse.go deleted file mode 100644 index 87c68e8bfe..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopLsydUploadretailResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售单据上传接口 API返回值 -alibaba.alihealth.drugtrace.top.lsyd.uploadretail - -快易通多融零售上传接口 -*/ -type AlibabaAlihealthDrugtraceTopLsydUploadretailAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopLsydUploadretailResponse -} - -// 零售单据上传接口 成功返回结果 -type AlibabaAlihealthDrugtraceTopLsydUploadretailResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_lsyd_uploadretail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 上传单据文件队列表标识 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 错误码(BILL_DECODE_ERROR 单据转码失败 2.BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 错误信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 操作是否成功(true 成功 ,false失败) - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest.go new file mode 100644 index 0000000000..b5bf15339f --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest.go @@ -0,0 +1,206 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +医疗机构查询本企业上游企业出库单据信息 API请求 +alibaba.alihealth.drugtrace.top.yljg.listupout + +查询货主/本企业上游企业出库单据信息 +*/ +type AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 开始日期(不写时分秒) + _beginDate string + // 结束日期(不写时分秒) + _endDate string + // 生产批号 + _produceBatchNo string + // 药品ID + _drugEntBaseInfoId string + // 单据类型 + _billType string + // 药品类型 + _physicType string + // 状态 + _status string + // 单据号 + _billCode string + // 页大小 + _pageSize int64 + // 页码 + _page int64 + // 发货单位 + _fromUserId string +} + +// 初始化AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopYljgListupoutRequest() *AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest{ + return &AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.yljg.listupout" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) GetRefEntId() string { + return r._refEntId +} +// BeginDate Setter +// 开始日期(不写时分秒) +func (r *AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) GetBeginDate() string { + return r._beginDate +} +// EndDate Setter +// 结束日期(不写时分秒) +func (r *AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) GetEndDate() string { + return r._endDate +} +// ProduceBatchNo Setter +// 生产批号 +func (r *AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) SetProduceBatchNo(_produceBatchNo string) error { + r._produceBatchNo = _produceBatchNo + r.Set("produce_batch_no", _produceBatchNo) + return nil +} + +// ProduceBatchNo Getter +func (r AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) GetProduceBatchNo() string { + return r._produceBatchNo +} +// DrugEntBaseInfoId Setter +// 药品ID +func (r *AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) SetDrugEntBaseInfoId(_drugEntBaseInfoId string) error { + r._drugEntBaseInfoId = _drugEntBaseInfoId + r.Set("drug_ent_base_info_id", _drugEntBaseInfoId) + return nil +} + +// DrugEntBaseInfoId Getter +func (r AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) GetDrugEntBaseInfoId() string { + return r._drugEntBaseInfoId +} +// BillType Setter +// 单据类型 +func (r *AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) SetBillType(_billType string) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) GetBillType() string { + return r._billType +} +// PhysicType Setter +// 药品类型 +func (r *AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) SetPhysicType(_physicType string) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) GetPhysicType() string { + return r._physicType +} +// Status Setter +// 状态 +func (r *AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) GetStatus() string { + return r._status +} +// BillCode Setter +// 单据号 +func (r *AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) GetBillCode() string { + return r._billCode +} +// PageSize Setter +// 页大小 +func (r *AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Page Setter +// 页码 +func (r *AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) GetPage() int64 { + return r._page +} +// FromUserId Setter +// 发货单位 +func (r *AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugtraceTopYljgListupoutAPIRequest) GetFromUserId() string { + return r._fromUserId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutAPIResponse.go new file mode 100644 index 0000000000..55f76492fe --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +医疗机构查询本企业上游企业出库单据信息 API返回值 +alibaba.alihealth.drugtrace.top.yljg.listupout + +查询货主/本企业上游企业出库单据信息 +*/ +type AlibabaAlihealthDrugtraceTopYljgListupoutAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopYljgListupoutAPIResponseModel +} + +// 医疗机构查询本企业上游企业出库单据信息 成功返回结果 +type AlibabaAlihealthDrugtraceTopYljgListupoutAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_listupout_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugtraceTopYljgListupoutResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIRequest.go new file mode 100644 index 0000000000..4cd066fa9b --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIRequest.go @@ -0,0 +1,94 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上游出库单单据明细查询 API请求 +alibaba.alihealth.drugtrace.top.yljg.listupout.detail + +查询上游出库单明细(带追溯码信息) +*/ +type AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIRequest struct { + model.Params + // 企业id + _refEntId string + // 单据编码 + _billCode string + // 发货企业renEntId + _fromRefUserId string + // 收货企业refEntId + _toRefUserId string +} + +// 初始化AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopYljgListupoutDetailRequest() *AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIRequest{ + return &AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.yljg.listupout.detail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业id +func (r *AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIRequest) GetRefEntId() string { + return r._refEntId +} +// BillCode Setter +// 单据编码 +func (r *AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIRequest) GetBillCode() string { + return r._billCode +} +// FromRefUserId Setter +// 发货企业renEntId +func (r *AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIRequest) SetFromRefUserId(_fromRefUserId string) error { + r._fromRefUserId = _fromRefUserId + r.Set("from_ref_user_id", _fromRefUserId) + return nil +} + +// FromRefUserId Getter +func (r AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIRequest) GetFromRefUserId() string { + return r._fromRefUserId +} +// ToRefUserId Setter +// 收货企业refEntId +func (r *AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIRequest) SetToRefUserId(_toRefUserId string) error { + r._toRefUserId = _toRefUserId + r.Set("to_ref_user_id", _toRefUserId) + return nil +} + +// ToRefUserId Getter +func (r AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIRequest) GetToRefUserId() string { + return r._toRefUserId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIResponse.go new file mode 100644 index 0000000000..17f69a87c4 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上游出库单单据明细查询 API返回值 +alibaba.alihealth.drugtrace.top.yljg.listupout.detail + +查询上游出库单明细(带追溯码信息) +*/ +type AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIResponseModel +} + +// 上游出库单单据明细查询 成功返回结果 +type AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_listupout_detail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugtraceTopYljgListupoutDetailResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutDetailResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutDetailResponse.go deleted file mode 100644 index 3fda7f83c8..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutDetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上游出库单单据明细查询 API返回值 -alibaba.alihealth.drugtrace.top.yljg.listupout.detail - -查询上游出库单明细(带追溯码信息) -*/ -type AlibabaAlihealthDrugtraceTopYljgListupoutDetailAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopYljgListupoutDetailResponse -} - -// 上游出库单单据明细查询 成功返回结果 -type AlibabaAlihealthDrugtraceTopYljgListupoutDetailResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_listupout_detail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugtraceTopYljgListupoutDetailResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutResponse.go deleted file mode 100644 index f907475a7b..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgListupoutResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -医疗机构查询本企业上游企业出库单据信息 API返回值 -alibaba.alihealth.drugtrace.top.yljg.listupout - -查询货主/本企业上游企业出库单据信息 -*/ -type AlibabaAlihealthDrugtraceTopYljgListupoutAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopYljgListupoutResponse -} - -// 医疗机构查询本企业上游企业出库单据信息 成功返回结果 -type AlibabaAlihealthDrugtraceTopYljgListupoutResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_listupout_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugtraceTopYljgListupoutResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest.go new file mode 100644 index 0000000000..7133996bc8 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest.go @@ -0,0 +1,206 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传单据后处理状态查询 API请求 +alibaba.alihealth.drugtrace.top.yljg.query.billstatus + +单据处理状态查询 +*/ +type AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest struct { + model.Params + // 企业ID + _refEntId string + // 开始日期 + _beginDate string + // 结束日期 + _endDate string + // 单据类型 A:全部 AI:全部入库 AO:全部出库 + _billType string + // 单据号 + _billCode string + // 药品类型 + _drugType string + // 状态 0, 上传成功 3, 处理成功 4, 处理失败 + _dealStatus string + // 发货商 + _fromUserId string + // 收货商 + _toUserId string + // 代理商 + _agentRefUserId string + // 页大小 + _pageSize int64 + // 页码 + _page int64 +} + +// 初始化AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopYljgQueryBillstatusRequest() *AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest{ + return &AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.yljg.query.billstatus" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) GetRefEntId() string { + return r._refEntId +} +// BeginDate Setter +// 开始日期 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) GetBeginDate() string { + return r._beginDate +} +// EndDate Setter +// 结束日期 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) GetEndDate() string { + return r._endDate +} +// BillType Setter +// 单据类型 A:全部 AI:全部入库 AO:全部出库 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) SetBillType(_billType string) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) GetBillType() string { + return r._billType +} +// BillCode Setter +// 单据号 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) GetBillCode() string { + return r._billCode +} +// DrugType Setter +// 药品类型 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) SetDrugType(_drugType string) error { + r._drugType = _drugType + r.Set("drug_type", _drugType) + return nil +} + +// DrugType Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) GetDrugType() string { + return r._drugType +} +// DealStatus Setter +// 状态 0, 上传成功 3, 处理成功 4, 处理失败 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) SetDealStatus(_dealStatus string) error { + r._dealStatus = _dealStatus + r.Set("deal_status", _dealStatus) + return nil +} + +// DealStatus Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) GetDealStatus() string { + return r._dealStatus +} +// FromUserId Setter +// 发货商 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) GetFromUserId() string { + return r._fromUserId +} +// ToUserId Setter +// 收货商 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) SetToUserId(_toUserId string) error { + r._toUserId = _toUserId + r.Set("to_user_id", _toUserId) + return nil +} + +// ToUserId Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) GetToUserId() string { + return r._toUserId +} +// AgentRefUserId Setter +// 代理商 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) SetAgentRefUserId(_agentRefUserId string) error { + r._agentRefUserId = _agentRefUserId + r.Set("agent_ref_user_id", _agentRefUserId) + return nil +} + +// AgentRefUserId Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) GetAgentRefUserId() string { + return r._agentRefUserId +} +// PageSize Setter +// 页大小 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Page Setter +// 页码 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIRequest) GetPage() int64 { + return r._page +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIResponse.go new file mode 100644 index 0000000000..8d02528776 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传单据后处理状态查询 API返回值 +alibaba.alihealth.drugtrace.top.yljg.query.billstatus + +单据处理状态查询 +*/ +type AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIResponseModel +} + +// 上传单据后处理状态查询 成功返回结果 +type AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_query_billstatus_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugtraceTopYljgQueryBillstatusResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryBillstatusResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryBillstatusResponse.go deleted file mode 100644 index 49063b6f72..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryBillstatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传单据后处理状态查询 API返回值 -alibaba.alihealth.drugtrace.top.yljg.query.billstatus - -单据处理状态查询 -*/ -type AlibabaAlihealthDrugtraceTopYljgQueryBillstatusAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopYljgQueryBillstatusResponse -} - -// 上传单据后处理状态查询 成功返回结果 -type AlibabaAlihealthDrugtraceTopYljgQueryBillstatusResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_query_billstatus_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugtraceTopYljgQueryBillstatusResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIRequest.go new file mode 100644 index 0000000000..6b68c5e9ce --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIRequest.go @@ -0,0 +1,68 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据码查询码信息 API请求 +alibaba.alihealth.drugtrace.top.yljg.query.codedetail + +服务描述 +此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息。 +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIRequest struct { + model.Params + // 企业唯一标识(或appkey) + _refEntId string + // 码列表 + _codes []string +} + +// 初始化AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopYljgQueryCodedetailRequest() *AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIRequest{ + return &AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.yljg.query.codedetail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业唯一标识(或appkey) +func (r *AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIRequest) GetRefEntId() string { + return r._refEntId +} +// Codes Setter +// 码列表 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIRequest) SetCodes(_codes []string) error { + r._codes = _codes + r.Set("codes", _codes) + return nil +} + +// Codes Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIRequest) GetCodes() []string { + return r._codes +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIResponse.go new file mode 100644 index 0000000000..217c15b79c --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIResponse.go @@ -0,0 +1,29 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据码查询码信息 API返回值 +alibaba.alihealth.drugtrace.top.yljg.query.codedetail + +服务描述 +此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息。 +核查平台优先过滤非8开头的,长度非20位数字的码信息。 +*/ +type AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIResponseModel +} + +// 根据码查询码信息 成功返回结果 +type AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_query_codedetail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最外层结果 + Result *AlibabaAlihealthDrugtraceTopYljgQueryCodedetailResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryCodedetailResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryCodedetailResponse.go deleted file mode 100644 index 10b6ac4bfe..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryCodedetailResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据码查询码信息 API返回值 -alibaba.alihealth.drugtrace.top.yljg.query.codedetail - -服务描述 -此接口,针对有码药品,提供可通过追溯码获取该药品的基础信息和生产状况信息。 -核查平台优先过滤非8开头的,长度非20位数字的码信息。 -*/ -type AlibabaAlihealthDrugtraceTopYljgQueryCodedetailAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopYljgQueryCodedetailResponse -} - -// 根据码查询码信息 成功返回结果 -type AlibabaAlihealthDrugtraceTopYljgQueryCodedetailResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_query_codedetail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最外层结果 - Result *AlibabaAlihealthDrugtraceTopYljgQueryCodedetailResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIRequest.go new file mode 100644 index 0000000000..f70aea1a70 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIRequest.go @@ -0,0 +1,52 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过企业名得到唯一标识ref_ent_id及企业ent_id API请求 +alibaba.alihealth.drugtrace.top.yljg.query.getentinfo + +根据企业名称查询ID +*/ +type AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIRequest struct { + model.Params + // 公司名称(全称) + _entName string +} + +// 初始化AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopYljgQueryGetentinfoRequest() *AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIRequest{ + return &AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.yljg.query.getentinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EntName Setter +// 公司名称(全称) +func (r *AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIRequest) SetEntName(_entName string) error { + r._entName = _entName + r.Set("ent_name", _entName) + return nil +} + +// EntName Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIRequest) GetEntName() string { + return r._entName +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIResponse.go new file mode 100644 index 0000000000..7ac34cf850 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过企业名得到唯一标识ref_ent_id及企业ent_id API返回值 +alibaba.alihealth.drugtrace.top.yljg.query.getentinfo + +根据企业名称查询ID +*/ +type AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIResponseModel +} + +// 通过企业名得到唯一标识ref_ent_id及企业ent_id 成功返回结果 +type AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_query_getentinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoResponse.go deleted file mode 100644 index 8ca42957ef..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过企业名得到唯一标识ref_ent_id及企业ent_id API返回值 -alibaba.alihealth.drugtrace.top.yljg.query.getentinfo - -根据企业名称查询ID -*/ -type AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoResponse -} - -// 通过企业名得到唯一标识ref_ent_id及企业ent_id 成功返回结果 -type AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_query_getentinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugtraceTopYljgQueryGetentinfoResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest.go new file mode 100644 index 0000000000..330a4a1417 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest.go @@ -0,0 +1,136 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +往来单位查询 API请求 +alibaba.alihealth.drugtrace.top.yljg.query.listparts + +查询往来单位列表 +*/ +type AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest struct { + model.Params + // 企业唯一标识 + _refEntId string + // 企业名称 + _entName string + // 企业自定义编号 + _refPartnerId string + // 页大小 + _pageSize int64 + // 页码 + _page int64 + // 开始时间 + _beginDate string + // 结束时间 + _endDate string +} + +// 初始化AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopYljgQueryListpartsRequest() *AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest{ + return &AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.yljg.query.listparts" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefEntId Setter +// 企业唯一标识 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest) GetRefEntId() string { + return r._refEntId +} +// EntName Setter +// 企业名称 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest) SetEntName(_entName string) error { + r._entName = _entName + r.Set("ent_name", _entName) + return nil +} + +// EntName Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest) GetEntName() string { + return r._entName +} +// RefPartnerId Setter +// 企业自定义编号 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest) SetRefPartnerId(_refPartnerId string) error { + r._refPartnerId = _refPartnerId + r.Set("ref_partner_id", _refPartnerId) + return nil +} + +// RefPartnerId Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest) GetRefPartnerId() string { + return r._refPartnerId +} +// PageSize Setter +// 页大小 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Page Setter +// 页码 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest) GetPage() int64 { + return r._page +} +// BeginDate Setter +// 开始时间 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest) GetBeginDate() string { + return r._beginDate +} +// EndDate Setter +// 结束时间 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIResponse.go new file mode 100644 index 0000000000..b17bf17387 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +往来单位查询 API返回值 +alibaba.alihealth.drugtrace.top.yljg.query.listparts + +查询往来单位列表 +*/ +type AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIResponseModel +} + +// 往来单位查询 成功返回结果 +type AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_query_listparts_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugtraceTopYljgQueryListpartsResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryListpartsResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryListpartsResponse.go deleted file mode 100644 index 8140fa6c5a..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryListpartsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -往来单位查询 API返回值 -alibaba.alihealth.drugtrace.top.yljg.query.listparts - -查询往来单位列表 -*/ -type AlibabaAlihealthDrugtraceTopYljgQueryListpartsAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopYljgQueryListpartsResponse -} - -// 往来单位查询 成功返回结果 -type AlibabaAlihealthDrugtraceTopYljgQueryListpartsResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_query_listparts_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugtraceTopYljgQueryListpartsResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIRequest.go new file mode 100644 index 0000000000..417fc5c6cf --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIRequest.go @@ -0,0 +1,80 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单码关联关系查询 API请求 +alibaba.alihealth.drugtrace.top.yljg.query.relation + +单码关联关系查询 +*/ +type AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIRequest struct { + model.Params + // 追溯码 + _code string + // 接口调用企业的唯一标识(接口调用者) + _refEntId string + // 目标企业唯一标识(为哪个企业查询,一般与入参ref_ent_id一样) + _desRefEntId string +} + +// 初始化AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopYljgQueryRelationRequest() *AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIRequest{ + return &AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.yljg.query.relation" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 追溯码 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIRequest) GetCode() string { + return r._code +} +// RefEntId Setter +// 接口调用企业的唯一标识(接口调用者) +func (r *AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIRequest) GetRefEntId() string { + return r._refEntId +} +// DesRefEntId Setter +// 目标企业唯一标识(为哪个企业查询,一般与入参ref_ent_id一样) +func (r *AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIRequest) SetDesRefEntId(_desRefEntId string) error { + r._desRefEntId = _desRefEntId + r.Set("des_ref_ent_id", _desRefEntId) + return nil +} + +// DesRefEntId Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIRequest) GetDesRefEntId() string { + return r._desRefEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIResponse.go new file mode 100644 index 0000000000..8147231b72 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单码关联关系查询 API返回值 +alibaba.alihealth.drugtrace.top.yljg.query.relation + +单码关联关系查询 +*/ +type AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIResponseModel +} + +// 单码关联关系查询 成功返回结果 +type AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_query_relation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugtraceTopYljgQueryRelationResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryRelationResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryRelationResponse.go deleted file mode 100644 index faae1fe9cc..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryRelationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单码关联关系查询 API返回值 -alibaba.alihealth.drugtrace.top.yljg.query.relation - -单码关联关系查询 -*/ -type AlibabaAlihealthDrugtraceTopYljgQueryRelationAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopYljgQueryRelationResponse -} - -// 单码关联关系查询 成功返回结果 -type AlibabaAlihealthDrugtraceTopYljgQueryRelationResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_query_relation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugtraceTopYljgQueryRelationResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIRequest.go new file mode 100644 index 0000000000..46128f8ccd --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过一个码,查询这个码对应的上游企业出库单的单据号 API请求 +alibaba.alihealth.drugtrace.top.yljg.query.upbillcode + +一个查询上游出库单号的接口。企业在扫码入库时,接口通过扫到的码判定这个码对应的上游企业所属的出库单据号 +*/ +type AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIRequest struct { + model.Params + // 追溯码 + _code string + // 企业ID (一般为要查询单据的收货企业) + _refEntId string +} + +// 初始化AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeRequest() *AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIRequest{ + return &AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.yljg.query.upbillcode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 追溯码 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIRequest) GetCode() string { + return r._code +} +// RefEntId Setter +// 企业ID (一般为要查询单据的收货企业) +func (r *AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIRequest) GetRefEntId() string { + return r._refEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIResponse.go new file mode 100644 index 0000000000..1d64bdbbb8 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过一个码,查询这个码对应的上游企业出库单的单据号 API返回值 +alibaba.alihealth.drugtrace.top.yljg.query.upbillcode + +一个查询上游出库单号的接口。企业在扫码入库时,接口通过扫到的码判定这个码对应的上游企业所属的出库单据号 +*/ +type AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIResponseModel +} + +// 通过一个码,查询这个码对应的上游企业出库单的单据号 成功返回结果 +type AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_query_upbillcode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeResponse.go deleted file mode 100644 index 2c1ca1f6e3..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过一个码,查询这个码对应的上游企业出库单的单据号 API返回值 -alibaba.alihealth.drugtrace.top.yljg.query.upbillcode - -一个查询上游出库单号的接口。企业在扫码入库时,接口通过扫到的码判定这个码对应的上游企业所属的出库单据号 -*/ -type AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeResponse -} - -// 通过一个码,查询这个码对应的上游企业出库单的单据号 成功返回结果 -type AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_query_upbillcode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthDrugtraceTopYljgQueryUpbillcodeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIRequest.go new file mode 100644 index 0000000000..57aa2d1dd7 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据单据号查询单据的详情信息【注意:查询的是本企业的单据】 API请求 +alibaba.alihealth.drugtrace.top.yljg.query.upbilldetail + +根据单据号查询单据的详情信息【注意:这个接口查询的是本企业的单据,如果是查询上游的单据明细信息,使用xxxxxxx.listupout.detail接口】。 +*/ +type AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIRequest struct { + model.Params + // 单据号码 + _billCode string + // 本企业refEntId + _refEntId string +} + +// 初始化AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailRequest() *AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIRequest{ + return &AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.yljg.query.upbilldetail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据号码 +func (r *AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIRequest) GetBillCode() string { + return r._billCode +} +// RefEntId Setter +// 本企业refEntId +func (r *AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIRequest) GetRefEntId() string { + return r._refEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIResponse.go new file mode 100644 index 0000000000..26185bf724 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据单据号查询单据的详情信息【注意:查询的是本企业的单据】 API返回值 +alibaba.alihealth.drugtrace.top.yljg.query.upbilldetail + +根据单据号查询单据的详情信息【注意:这个接口查询的是本企业的单据,如果是查询上游的单据明细信息,使用xxxxxxx.listupout.detail接口】。 +*/ +type AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIResponseModel +} + +// 根据单据号查询单据的详情信息【注意:查询的是本企业的单据】 成功返回结果 +type AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_query_upbilldetail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailResponse.go deleted file mode 100644 index 675a015436..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据单据号查询单据的详情信息【注意:查询的是本企业的单据】 API返回值 -alibaba.alihealth.drugtrace.top.yljg.query.upbilldetail - -根据单据号查询单据的详情信息【注意:这个接口查询的是本企业的单据,如果是查询上游的单据明细信息,使用xxxxxxx.listupout.detail接口】。 -*/ -type AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailResponse -} - -// 根据单据号查询单据的详情信息【注意:查询的是本企业的单据】 成功返回结果 -type AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_query_upbilldetail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaAlihealthDrugtraceTopYljgQueryUpbilldetailResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest.go new file mode 100644 index 0000000000..5e333497a4 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest.go @@ -0,0 +1,571 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +出入库单据上传 API请求 +alibaba.alihealth.drugtrace.top.yljg.uploadinoutbill + +零售企业上传出入库信息,包括采购入库(102),退货入库(103),供应入库(107),退货出库(202),销毁出库(205),抽检出库(206), 供应出库(209), +不包括对个人的零售出库,疫苗接种,领药出库。 +*/ +type AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest struct { + model.Params + // 单据编码 + _billCode string + // 单据时间 + _billTime string + // 单据类型【102代表采购入库】 + _billType int64 + // 药品类型【3普药2特药】 + _physicType int64 + // 上传企业的单位编码 + _refUserId string + // 代理企业REF标识 + _agentRefUserId string + // 发货企业entId + _fromUserId string + // 收货企业entId + _toUserId string + // 直调企业标识 + _destUserId string + // 单据提交者(appkey编号) + _operIcCode string + // 单据提交者姓名 + _operIcName string + // 客户端类型[必须填2] + _clientType string + // 退货原因代码[退货入出库时填写] + _returnReasonCode string + // 退货原因描述[退货入出库时填写] + _returnReasonDes string + // 注销原因代码【销毁出库时填写】 + _cancelReasonCode string + // 注销原因描述【销毁出库时填写】 + _cancelReasonDes string + // 执行人姓名【销毁出库时填写】 + _executerName string + // 执行人证件号【销毁出库时填写】 + _executerCode string + // 监督人姓名【销毁出库时填写】 + _superviserName string + // 监督人证件号【销毁出库时填写】 + _superviserCode string + // 仓号 + _warehouseId string + // 药品ID[企业自已系统的药品ID] + _drugId string + // 追溯码[多个时用逗号分开] + _traceCodes []string + // (协同平台数据合规)发货地址【必选】 + _fromAddress string + // (协同平台数据合规)收货地址【必选】 + _toAddress string + // (协同平台数据合规)发货单编号【必选】 + _fromBillCode string + // (协同平台数据合规)订货单编号【可选】 + _orderCode string + // (协同平台数据合规)发货人【必选】 + _fromPerson string + // (协同平台数据合规)收货人【必选】 + _toPerson string + // (协同平台数据合规)药品配送企业【出库单,收货方为医疗机构时填写】 + _disRefEntId string + // (协同平台数据合规)药品配送企业entId【出库单,收货方为医疗机构时填写】 + _disEntId string + // (协同平台数据合规)应收货总数量【必选】 + _quReceivable int64 + // (协同平台数据合规)是否验证,0:未通过验证,1:已验证 + _xtIsCheck string + // (协同平台数据合规)未验证通过原因【验证未通过时填写】 + _xtCheckCode string + // (协同平台数据合规)未验证通过原因描述【验证未通过时填写】 + _xtCheckCodeDesc string + // (协同平台数据合规)药品列表Json + _drugListJson string + // (协同平台数据合规)单据委托企业refEntId【疫苗药品出库单填写】 + _assRefEntId string + // (协同平台数据合规)单据委托企业entId【疫苗药品出库单填写】 + _assEntId string +} + +// 初始化AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopYljgUploadinoutbillRequest() *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest{ + return &AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.yljg.uploadinoutbill" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据编码 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetBillCode() string { + return r._billCode +} +// BillTime Setter +// 单据时间 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetBillTime(_billTime string) error { + r._billTime = _billTime + r.Set("bill_time", _billTime) + return nil +} + +// BillTime Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetBillTime() string { + return r._billTime +} +// BillType Setter +// 单据类型【102代表采购入库】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetBillType(_billType int64) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetBillType() int64 { + return r._billType +} +// PhysicType Setter +// 药品类型【3普药2特药】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetPhysicType(_physicType int64) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetPhysicType() int64 { + return r._physicType +} +// RefUserId Setter +// 上传企业的单位编码 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetRefUserId(_refUserId string) error { + r._refUserId = _refUserId + r.Set("ref_user_id", _refUserId) + return nil +} + +// RefUserId Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetRefUserId() string { + return r._refUserId +} +// AgentRefUserId Setter +// 代理企业REF标识 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetAgentRefUserId(_agentRefUserId string) error { + r._agentRefUserId = _agentRefUserId + r.Set("agent_ref_user_id", _agentRefUserId) + return nil +} + +// AgentRefUserId Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetAgentRefUserId() string { + return r._agentRefUserId +} +// FromUserId Setter +// 发货企业entId +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetFromUserId() string { + return r._fromUserId +} +// ToUserId Setter +// 收货企业entId +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetToUserId(_toUserId string) error { + r._toUserId = _toUserId + r.Set("to_user_id", _toUserId) + return nil +} + +// ToUserId Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetToUserId() string { + return r._toUserId +} +// DestUserId Setter +// 直调企业标识 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetDestUserId(_destUserId string) error { + r._destUserId = _destUserId + r.Set("dest_user_id", _destUserId) + return nil +} + +// DestUserId Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetDestUserId() string { + return r._destUserId +} +// OperIcCode Setter +// 单据提交者(appkey编号) +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetOperIcCode(_operIcCode string) error { + r._operIcCode = _operIcCode + r.Set("oper_ic_code", _operIcCode) + return nil +} + +// OperIcCode Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetOperIcCode() string { + return r._operIcCode +} +// OperIcName Setter +// 单据提交者姓名 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetOperIcName(_operIcName string) error { + r._operIcName = _operIcName + r.Set("oper_ic_name", _operIcName) + return nil +} + +// OperIcName Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetOperIcName() string { + return r._operIcName +} +// ClientType Setter +// 客户端类型[必须填2] +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetClientType(_clientType string) error { + r._clientType = _clientType + r.Set("client_type", _clientType) + return nil +} + +// ClientType Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetClientType() string { + return r._clientType +} +// ReturnReasonCode Setter +// 退货原因代码[退货入出库时填写] +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetReturnReasonCode(_returnReasonCode string) error { + r._returnReasonCode = _returnReasonCode + r.Set("return_reason_code", _returnReasonCode) + return nil +} + +// ReturnReasonCode Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetReturnReasonCode() string { + return r._returnReasonCode +} +// ReturnReasonDes Setter +// 退货原因描述[退货入出库时填写] +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetReturnReasonDes(_returnReasonDes string) error { + r._returnReasonDes = _returnReasonDes + r.Set("return_reason_des", _returnReasonDes) + return nil +} + +// ReturnReasonDes Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetReturnReasonDes() string { + return r._returnReasonDes +} +// CancelReasonCode Setter +// 注销原因代码【销毁出库时填写】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetCancelReasonCode(_cancelReasonCode string) error { + r._cancelReasonCode = _cancelReasonCode + r.Set("cancel_reason_code", _cancelReasonCode) + return nil +} + +// CancelReasonCode Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetCancelReasonCode() string { + return r._cancelReasonCode +} +// CancelReasonDes Setter +// 注销原因描述【销毁出库时填写】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetCancelReasonDes(_cancelReasonDes string) error { + r._cancelReasonDes = _cancelReasonDes + r.Set("cancel_reason_des", _cancelReasonDes) + return nil +} + +// CancelReasonDes Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetCancelReasonDes() string { + return r._cancelReasonDes +} +// ExecuterName Setter +// 执行人姓名【销毁出库时填写】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetExecuterName(_executerName string) error { + r._executerName = _executerName + r.Set("executer_name", _executerName) + return nil +} + +// ExecuterName Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetExecuterName() string { + return r._executerName +} +// ExecuterCode Setter +// 执行人证件号【销毁出库时填写】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetExecuterCode(_executerCode string) error { + r._executerCode = _executerCode + r.Set("executer_code", _executerCode) + return nil +} + +// ExecuterCode Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetExecuterCode() string { + return r._executerCode +} +// SuperviserName Setter +// 监督人姓名【销毁出库时填写】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetSuperviserName(_superviserName string) error { + r._superviserName = _superviserName + r.Set("superviser_name", _superviserName) + return nil +} + +// SuperviserName Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetSuperviserName() string { + return r._superviserName +} +// SuperviserCode Setter +// 监督人证件号【销毁出库时填写】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetSuperviserCode(_superviserCode string) error { + r._superviserCode = _superviserCode + r.Set("superviser_code", _superviserCode) + return nil +} + +// SuperviserCode Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetSuperviserCode() string { + return r._superviserCode +} +// WarehouseId Setter +// 仓号 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetWarehouseId(_warehouseId string) error { + r._warehouseId = _warehouseId + r.Set("warehouse_id", _warehouseId) + return nil +} + +// WarehouseId Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetWarehouseId() string { + return r._warehouseId +} +// DrugId Setter +// 药品ID[企业自已系统的药品ID] +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetDrugId(_drugId string) error { + r._drugId = _drugId + r.Set("drug_id", _drugId) + return nil +} + +// DrugId Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetDrugId() string { + return r._drugId +} +// TraceCodes Setter +// 追溯码[多个时用逗号分开] +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetTraceCodes(_traceCodes []string) error { + r._traceCodes = _traceCodes + r.Set("trace_codes", _traceCodes) + return nil +} + +// TraceCodes Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetTraceCodes() []string { + return r._traceCodes +} +// FromAddress Setter +// (协同平台数据合规)发货地址【必选】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetFromAddress(_fromAddress string) error { + r._fromAddress = _fromAddress + r.Set("from_address", _fromAddress) + return nil +} + +// FromAddress Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetFromAddress() string { + return r._fromAddress +} +// ToAddress Setter +// (协同平台数据合规)收货地址【必选】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetToAddress(_toAddress string) error { + r._toAddress = _toAddress + r.Set("to_address", _toAddress) + return nil +} + +// ToAddress Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetToAddress() string { + return r._toAddress +} +// FromBillCode Setter +// (协同平台数据合规)发货单编号【必选】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetFromBillCode(_fromBillCode string) error { + r._fromBillCode = _fromBillCode + r.Set("from_bill_code", _fromBillCode) + return nil +} + +// FromBillCode Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetFromBillCode() string { + return r._fromBillCode +} +// OrderCode Setter +// (协同平台数据合规)订货单编号【可选】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetOrderCode() string { + return r._orderCode +} +// FromPerson Setter +// (协同平台数据合规)发货人【必选】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetFromPerson(_fromPerson string) error { + r._fromPerson = _fromPerson + r.Set("from_person", _fromPerson) + return nil +} + +// FromPerson Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetFromPerson() string { + return r._fromPerson +} +// ToPerson Setter +// (协同平台数据合规)收货人【必选】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetToPerson(_toPerson string) error { + r._toPerson = _toPerson + r.Set("to_person", _toPerson) + return nil +} + +// ToPerson Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetToPerson() string { + return r._toPerson +} +// DisRefEntId Setter +// (协同平台数据合规)药品配送企业【出库单,收货方为医疗机构时填写】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetDisRefEntId(_disRefEntId string) error { + r._disRefEntId = _disRefEntId + r.Set("dis_ref_ent_id", _disRefEntId) + return nil +} + +// DisRefEntId Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetDisRefEntId() string { + return r._disRefEntId +} +// DisEntId Setter +// (协同平台数据合规)药品配送企业entId【出库单,收货方为医疗机构时填写】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetDisEntId(_disEntId string) error { + r._disEntId = _disEntId + r.Set("dis_ent_id", _disEntId) + return nil +} + +// DisEntId Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetDisEntId() string { + return r._disEntId +} +// QuReceivable Setter +// (协同平台数据合规)应收货总数量【必选】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetQuReceivable(_quReceivable int64) error { + r._quReceivable = _quReceivable + r.Set("qu_receivable", _quReceivable) + return nil +} + +// QuReceivable Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetQuReceivable() int64 { + return r._quReceivable +} +// XtIsCheck Setter +// (协同平台数据合规)是否验证,0:未通过验证,1:已验证 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetXtIsCheck(_xtIsCheck string) error { + r._xtIsCheck = _xtIsCheck + r.Set("xt_is_check", _xtIsCheck) + return nil +} + +// XtIsCheck Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetXtIsCheck() string { + return r._xtIsCheck +} +// XtCheckCode Setter +// (协同平台数据合规)未验证通过原因【验证未通过时填写】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetXtCheckCode(_xtCheckCode string) error { + r._xtCheckCode = _xtCheckCode + r.Set("xt_check_code", _xtCheckCode) + return nil +} + +// XtCheckCode Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetXtCheckCode() string { + return r._xtCheckCode +} +// XtCheckCodeDesc Setter +// (协同平台数据合规)未验证通过原因描述【验证未通过时填写】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetXtCheckCodeDesc(_xtCheckCodeDesc string) error { + r._xtCheckCodeDesc = _xtCheckCodeDesc + r.Set("xt_check_code_desc", _xtCheckCodeDesc) + return nil +} + +// XtCheckCodeDesc Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetXtCheckCodeDesc() string { + return r._xtCheckCodeDesc +} +// DrugListJson Setter +// (协同平台数据合规)药品列表Json +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetDrugListJson(_drugListJson string) error { + r._drugListJson = _drugListJson + r.Set("drug_list_json", _drugListJson) + return nil +} + +// DrugListJson Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetDrugListJson() string { + return r._drugListJson +} +// AssRefEntId Setter +// (协同平台数据合规)单据委托企业refEntId【疫苗药品出库单填写】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetAssRefEntId(_assRefEntId string) error { + r._assRefEntId = _assRefEntId + r.Set("ass_ref_ent_id", _assRefEntId) + return nil +} + +// AssRefEntId Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetAssRefEntId() string { + return r._assRefEntId +} +// AssEntId Setter +// (协同平台数据合规)单据委托企业entId【疫苗药品出库单填写】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) SetAssEntId(_assEntId string) error { + r._assEntId = _assEntId + r.Set("ass_ent_id", _assEntId) + return nil +} + +// AssEntId Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIRequest) GetAssEntId() string { + return r._assEntId +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIResponse.go new file mode 100644 index 0000000000..814e078d71 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIResponse.go @@ -0,0 +1,34 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +出入库单据上传 API返回值 +alibaba.alihealth.drugtrace.top.yljg.uploadinoutbill + +零售企业上传出入库信息,包括采购入库(102),退货入库(103),供应入库(107),退货出库(202),销毁出库(205),抽检出库(206), 供应出库(209), +不包括对个人的零售出库,疫苗接种,领药出库。 +*/ +type AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIResponseModel +} + +// 出入库单据上传 成功返回结果 +type AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_uploadinoutbill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 返回编码(BILL_DECODE_ERROR 单据转码失败 BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 返回信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 是否成功(true 成功 false 失败) + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadinoutbillResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadinoutbillResponse.go deleted file mode 100644 index f17ff94d8b..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadinoutbillResponse.go +++ /dev/null @@ -1,34 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -出入库单据上传 API返回值 -alibaba.alihealth.drugtrace.top.yljg.uploadinoutbill - -零售企业上传出入库信息,包括采购入库(102),退货入库(103),供应入库(107),退货出库(202),销毁出库(205),抽检出库(206), 供应出库(209), -不包括对个人的零售出库,疫苗接种,领药出库。 -*/ -type AlibabaAlihealthDrugtraceTopYljgUploadinoutbillAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopYljgUploadinoutbillResponse -} - -// 出入库单据上传 成功返回结果 -type AlibabaAlihealthDrugtraceTopYljgUploadinoutbillResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_uploadinoutbill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 返回编码(BILL_DECODE_ERROR 单据转码失败 BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 返回信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 是否成功(true 成功 false 失败) - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest.go new file mode 100644 index 0000000000..acb7fa5ffe --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest.go @@ -0,0 +1,276 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售单据上传接口 API请求 +alibaba.alihealth.drugtrace.top.yljg.uploadretail + +快易通多融零售上传接口 +*/ +type AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest struct { + model.Params + // 单据编号(唯一) + _billCode string + // 单据生成时间(一般写当前时间) + _billTime string + // 单据类型[321,零售出库][322,疫苗接种] + _billType int64 + // 药品类型[2,特药,3,普药] + _physicType int64 + // 码上放心平台企业唯一编码(门店或医疗机构) + _refUserId string + // 发货企业(可为空) + _fromUserId string + // 单据提交者(appkey编号) + _operIcCode string + // 单据提交者姓名(可为空) + _operIcName string + // 20位追溯码(多个时用半角逗号分隔) + _traceCodes []string + // 购买人证件类型【1身份证2护照3 军官证4 医保卡5接种卡6学生证9其它】 + _customerIdType string + // 购买人证件编号 + _customerId string + // 用药人电话 + _userTel string + // 互联标识 1是 0否 + _networkBillFlag string + // 医师名称 + _medicDoctor string + // 发药人 + _medicDispenser string + // 患者名称 + _userName string + // 代理领药人 + _userAgent string +} + +// 初始化AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest对象 +func NewAlibabaAlihealthDrugtraceTopYljgUploadretailRequest() *AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest{ + return &AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.drugtrace.top.yljg.uploadretail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillCode Setter +// 单据编号(唯一) +func (r *AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) SetBillCode(_billCode string) error { + r._billCode = _billCode + r.Set("bill_code", _billCode) + return nil +} + +// BillCode Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) GetBillCode() string { + return r._billCode +} +// BillTime Setter +// 单据生成时间(一般写当前时间) +func (r *AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) SetBillTime(_billTime string) error { + r._billTime = _billTime + r.Set("bill_time", _billTime) + return nil +} + +// BillTime Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) GetBillTime() string { + return r._billTime +} +// BillType Setter +// 单据类型[321,零售出库][322,疫苗接种] +func (r *AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) SetBillType(_billType int64) error { + r._billType = _billType + r.Set("bill_type", _billType) + return nil +} + +// BillType Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) GetBillType() int64 { + return r._billType +} +// PhysicType Setter +// 药品类型[2,特药,3,普药] +func (r *AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) SetPhysicType(_physicType int64) error { + r._physicType = _physicType + r.Set("physic_type", _physicType) + return nil +} + +// PhysicType Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) GetPhysicType() int64 { + return r._physicType +} +// RefUserId Setter +// 码上放心平台企业唯一编码(门店或医疗机构) +func (r *AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) SetRefUserId(_refUserId string) error { + r._refUserId = _refUserId + r.Set("ref_user_id", _refUserId) + return nil +} + +// RefUserId Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) GetRefUserId() string { + return r._refUserId +} +// FromUserId Setter +// 发货企业(可为空) +func (r *AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) SetFromUserId(_fromUserId string) error { + r._fromUserId = _fromUserId + r.Set("from_user_id", _fromUserId) + return nil +} + +// FromUserId Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) GetFromUserId() string { + return r._fromUserId +} +// OperIcCode Setter +// 单据提交者(appkey编号) +func (r *AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) SetOperIcCode(_operIcCode string) error { + r._operIcCode = _operIcCode + r.Set("oper_ic_code", _operIcCode) + return nil +} + +// OperIcCode Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) GetOperIcCode() string { + return r._operIcCode +} +// OperIcName Setter +// 单据提交者姓名(可为空) +func (r *AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) SetOperIcName(_operIcName string) error { + r._operIcName = _operIcName + r.Set("oper_ic_name", _operIcName) + return nil +} + +// OperIcName Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) GetOperIcName() string { + return r._operIcName +} +// TraceCodes Setter +// 20位追溯码(多个时用半角逗号分隔) +func (r *AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) SetTraceCodes(_traceCodes []string) error { + r._traceCodes = _traceCodes + r.Set("trace_codes", _traceCodes) + return nil +} + +// TraceCodes Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) GetTraceCodes() []string { + return r._traceCodes +} +// CustomerIdType Setter +// 购买人证件类型【1身份证2护照3 军官证4 医保卡5接种卡6学生证9其它】 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) SetCustomerIdType(_customerIdType string) error { + r._customerIdType = _customerIdType + r.Set("customer_id_type", _customerIdType) + return nil +} + +// CustomerIdType Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) GetCustomerIdType() string { + return r._customerIdType +} +// CustomerId Setter +// 购买人证件编号 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) SetCustomerId(_customerId string) error { + r._customerId = _customerId + r.Set("customer_id", _customerId) + return nil +} + +// CustomerId Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) GetCustomerId() string { + return r._customerId +} +// UserTel Setter +// 用药人电话 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) SetUserTel(_userTel string) error { + r._userTel = _userTel + r.Set("user_tel", _userTel) + return nil +} + +// UserTel Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) GetUserTel() string { + return r._userTel +} +// NetworkBillFlag Setter +// 互联标识 1是 0否 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) SetNetworkBillFlag(_networkBillFlag string) error { + r._networkBillFlag = _networkBillFlag + r.Set("network_bill_flag", _networkBillFlag) + return nil +} + +// NetworkBillFlag Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) GetNetworkBillFlag() string { + return r._networkBillFlag +} +// MedicDoctor Setter +// 医师名称 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) SetMedicDoctor(_medicDoctor string) error { + r._medicDoctor = _medicDoctor + r.Set("medic_doctor", _medicDoctor) + return nil +} + +// MedicDoctor Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) GetMedicDoctor() string { + return r._medicDoctor +} +// MedicDispenser Setter +// 发药人 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) SetMedicDispenser(_medicDispenser string) error { + r._medicDispenser = _medicDispenser + r.Set("medic_dispenser", _medicDispenser) + return nil +} + +// MedicDispenser Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) GetMedicDispenser() string { + return r._medicDispenser +} +// UserName Setter +// 患者名称 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) SetUserName(_userName string) error { + r._userName = _userName + r.Set("user_name", _userName) + return nil +} + +// UserName Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) GetUserName() string { + return r._userName +} +// UserAgent Setter +// 代理领药人 +func (r *AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) SetUserAgent(_userAgent string) error { + r._userAgent = _userAgent + r.Set("user_agent", _userAgent) + return nil +} + +// UserAgent Getter +func (r AlibabaAlihealthDrugtraceTopYljgUploadretailAPIRequest) GetUserAgent() string { + return r._userAgent +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadretailAPIResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadretailAPIResponse.go new file mode 100644 index 0000000000..a7b3742a68 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadretailAPIResponse.go @@ -0,0 +1,33 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售单据上传接口 API返回值 +alibaba.alihealth.drugtrace.top.yljg.uploadretail + +快易通多融零售上传接口 +*/ +type AlibabaAlihealthDrugtraceTopYljgUploadretailAPIResponse struct { + model.CommonResponse + AlibabaAlihealthDrugtraceTopYljgUploadretailAPIResponseModel +} + +// 零售单据上传接口 成功返回结果 +type AlibabaAlihealthDrugtraceTopYljgUploadretailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_uploadretail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 上传单据文件队列表标识 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 错误码(BILL_DECODE_ERROR 单据转码失败 2.BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 错误信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 操作是否成功(true 成功 ,false失败) + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadretailResponse.go b/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadretailResponse.go deleted file mode 100644 index 425faa7d0e..0000000000 --- a/model/drugtrace/AlibabaAlihealthDrugtraceTopYljgUploadretailResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售单据上传接口 API返回值 -alibaba.alihealth.drugtrace.top.yljg.uploadretail - -快易通多融零售上传接口 -*/ -type AlibabaAlihealthDrugtraceTopYljgUploadretailAPIResponse struct { - model.CommonResponse - AlibabaAlihealthDrugtraceTopYljgUploadretailResponse -} - -// 零售单据上传接口 成功返回结果 -type AlibabaAlihealthDrugtraceTopYljgUploadretailResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_drugtrace_top_yljg_uploadretail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 上传单据文件队列表标识 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 错误码(BILL_DECODE_ERROR 单据转码失败 2.BILL_FILE_NAME_DUPLICATE_UPLOAD 文件名重复) - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 错误信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 操作是否成功(true 成功 ,false失败) - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest.go b/model/drugtrace/AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest.go new file mode 100644 index 0000000000..f17e4f56b4 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest.go @@ -0,0 +1,122 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据码获取码信息 API请求 +alibaba.alihealth.trace.code.search.get.drugresourcetop + +根据码获取码信息 +*/ +type AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest struct { + model.Params + // 追溯码 + _code string + // 校验值 + _token string + // 查询app名称 + _queryAppName string + // 客户端ip + _clientId string + // 用户id + _tbUserId int64 + // 设备号 + _deviceUtdid string +} + +// 初始化AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest对象 +func NewAlibabaAlihealthTraceCodeSearchGetDrugresourcetopRequest() *AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest{ + return &AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.trace.code.search.get.drugresourcetop" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 追溯码 +func (r *AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest) GetCode() string { + return r._code +} +// Token Setter +// 校验值 +func (r *AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest) GetToken() string { + return r._token +} +// QueryAppName Setter +// 查询app名称 +func (r *AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest) SetQueryAppName(_queryAppName string) error { + r._queryAppName = _queryAppName + r.Set("query_app_name", _queryAppName) + return nil +} + +// QueryAppName Getter +func (r AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest) GetQueryAppName() string { + return r._queryAppName +} +// ClientId Setter +// 客户端ip +func (r *AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest) SetClientId(_clientId string) error { + r._clientId = _clientId + r.Set("client_id", _clientId) + return nil +} + +// ClientId Getter +func (r AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest) GetClientId() string { + return r._clientId +} +// TbUserId Setter +// 用户id +func (r *AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest) SetTbUserId(_tbUserId int64) error { + r._tbUserId = _tbUserId + r.Set("tb_user_id", _tbUserId) + return nil +} + +// TbUserId Getter +func (r AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest) GetTbUserId() int64 { + return r._tbUserId +} +// DeviceUtdid Setter +// 设备号 +func (r *AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest) SetDeviceUtdid(_deviceUtdid string) error { + r._deviceUtdid = _deviceUtdid + r.Set("device_utdid", _deviceUtdid) + return nil +} + +// DeviceUtdid Getter +func (r AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIRequest) GetDeviceUtdid() string { + return r._deviceUtdid +} diff --git a/model/drugtrace/AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIResponse.go b/model/drugtrace/AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIResponse.go new file mode 100644 index 0000000000..62684a9629 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据码获取码信息 API返回值 +alibaba.alihealth.trace.code.search.get.drugresourcetop + +根据码获取码信息 +*/ +type AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIResponse struct { + model.CommonResponse + AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIResponseModel +} + +// 根据码获取码信息 成功返回结果 +type AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_trace_code_search_get_drugresourcetop_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthTraceCodeSearchGetDrugresourcetopResponse.go b/model/drugtrace/AlibabaAlihealthTraceCodeSearchGetDrugresourcetopResponse.go deleted file mode 100644 index 1b7544e2d5..0000000000 --- a/model/drugtrace/AlibabaAlihealthTraceCodeSearchGetDrugresourcetopResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据码获取码信息 API返回值 -alibaba.alihealth.trace.code.search.get.drugresourcetop - -根据码获取码信息 -*/ -type AlibabaAlihealthTraceCodeSearchGetDrugresourcetopAPIResponse struct { - model.CommonResponse - AlibabaAlihealthTraceCodeSearchGetDrugresourcetopResponse -} - -// 根据码获取码信息 成功返回结果 -type AlibabaAlihealthTraceCodeSearchGetDrugresourcetopResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_trace_code_search_get_drugresourcetop_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthTracecodesearcGetinfomationVivoAPIRequest.go b/model/drugtrace/AlibabaAlihealthTracecodesearcGetinfomationVivoAPIRequest.go new file mode 100644 index 0000000000..5d589c4c6b --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthTracecodesearcGetinfomationVivoAPIRequest.go @@ -0,0 +1,52 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取vivo banner API请求 +alibaba.alihealth.tracecodesearc.getinfomation.vivo + +获取vivo banner url +*/ +type AlibabaAlihealthTracecodesearcGetinfomationVivoAPIRequest struct { + model.Params + // 渠道 + _channel string +} + +// 初始化AlibabaAlihealthTracecodesearcGetinfomationVivoAPIRequest对象 +func NewAlibabaAlihealthTracecodesearcGetinfomationVivoRequest() *AlibabaAlihealthTracecodesearcGetinfomationVivoAPIRequest{ + return &AlibabaAlihealthTracecodesearcGetinfomationVivoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthTracecodesearcGetinfomationVivoAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.tracecodesearc.getinfomation.vivo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthTracecodesearcGetinfomationVivoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Channel Setter +// 渠道 +func (r *AlibabaAlihealthTracecodesearcGetinfomationVivoAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r AlibabaAlihealthTracecodesearcGetinfomationVivoAPIRequest) GetChannel() string { + return r._channel +} diff --git a/model/drugtrace/AlibabaAlihealthTracecodesearcGetinfomationVivoAPIResponse.go b/model/drugtrace/AlibabaAlihealthTracecodesearcGetinfomationVivoAPIResponse.go new file mode 100644 index 0000000000..2434451cd9 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthTracecodesearcGetinfomationVivoAPIResponse.go @@ -0,0 +1,31 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取vivo banner API返回值 +alibaba.alihealth.tracecodesearc.getinfomation.vivo + +获取vivo banner url +*/ +type AlibabaAlihealthTracecodesearcGetinfomationVivoAPIResponse struct { + model.CommonResponse + AlibabaAlihealthTracecodesearcGetinfomationVivoAPIResponseModel +} + +// 获取vivo banner 成功返回结果 +type AlibabaAlihealthTracecodesearcGetinfomationVivoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_tracecodesearc_getinfomation_vivo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // bannerURL + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 操作说明 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 操作码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthTracecodesearcGetinfomationVivoResponse.go b/model/drugtrace/AlibabaAlihealthTracecodesearcGetinfomationVivoResponse.go deleted file mode 100644 index de3356480d..0000000000 --- a/model/drugtrace/AlibabaAlihealthTracecodesearcGetinfomationVivoResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取vivo banner API返回值 -alibaba.alihealth.tracecodesearc.getinfomation.vivo - -获取vivo banner url -*/ -type AlibabaAlihealthTracecodesearcGetinfomationVivoAPIResponse struct { - model.CommonResponse - AlibabaAlihealthTracecodesearcGetinfomationVivoResponse -} - -// 获取vivo banner 成功返回结果 -type AlibabaAlihealthTracecodesearcGetinfomationVivoResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_tracecodesearc_getinfomation_vivo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // bannerURL - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 操作说明 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 操作码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthTracecodesearchGetshowurlVivoAPIRequest.go b/model/drugtrace/AlibabaAlihealthTracecodesearchGetshowurlVivoAPIRequest.go new file mode 100644 index 0000000000..d4dddc63c9 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthTracecodesearchGetshowurlVivoAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取药品扫码落地页vivo API请求 +alibaba.alihealth.tracecodesearch.getshowurl.vivo + +获取药品扫码落地页vivo +*/ +type AlibabaAlihealthTracecodesearchGetshowurlVivoAPIRequest struct { + model.Params + // 追溯码 + _code string + // 来源 + _channel string +} + +// 初始化AlibabaAlihealthTracecodesearchGetshowurlVivoAPIRequest对象 +func NewAlibabaAlihealthTracecodesearchGetshowurlVivoRequest() *AlibabaAlihealthTracecodesearchGetshowurlVivoAPIRequest{ + return &AlibabaAlihealthTracecodesearchGetshowurlVivoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthTracecodesearchGetshowurlVivoAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.tracecodesearch.getshowurl.vivo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthTracecodesearchGetshowurlVivoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 追溯码 +func (r *AlibabaAlihealthTracecodesearchGetshowurlVivoAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthTracecodesearchGetshowurlVivoAPIRequest) GetCode() string { + return r._code +} +// Channel Setter +// 来源 +func (r *AlibabaAlihealthTracecodesearchGetshowurlVivoAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r AlibabaAlihealthTracecodesearchGetshowurlVivoAPIRequest) GetChannel() string { + return r._channel +} diff --git a/model/drugtrace/AlibabaAlihealthTracecodesearchGetshowurlVivoAPIResponse.go b/model/drugtrace/AlibabaAlihealthTracecodesearchGetshowurlVivoAPIResponse.go new file mode 100644 index 0000000000..ffa3c3d4c2 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthTracecodesearchGetshowurlVivoAPIResponse.go @@ -0,0 +1,31 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取药品扫码落地页vivo API返回值 +alibaba.alihealth.tracecodesearch.getshowurl.vivo + +获取药品扫码落地页vivo +*/ +type AlibabaAlihealthTracecodesearchGetshowurlVivoAPIResponse struct { + model.CommonResponse + AlibabaAlihealthTracecodesearchGetshowurlVivoAPIResponseModel +} + +// 获取药品扫码落地页vivo 成功返回结果 +type AlibabaAlihealthTracecodesearchGetshowurlVivoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_tracecodesearch_getshowurl_vivo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 落地页地址 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 操作说明 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 操作码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthTracecodesearchGetshowurlVivoResponse.go b/model/drugtrace/AlibabaAlihealthTracecodesearchGetshowurlVivoResponse.go deleted file mode 100644 index c3602495c0..0000000000 --- a/model/drugtrace/AlibabaAlihealthTracecodesearchGetshowurlVivoResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取药品扫码落地页vivo API返回值 -alibaba.alihealth.tracecodesearch.getshowurl.vivo - -获取药品扫码落地页vivo -*/ -type AlibabaAlihealthTracecodesearchGetshowurlVivoAPIResponse struct { - model.CommonResponse - AlibabaAlihealthTracecodesearchGetshowurlVivoResponse -} - -// 获取药品扫码落地页vivo 成功返回结果 -type AlibabaAlihealthTracecodesearchGetshowurlVivoResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_tracecodesearch_getshowurl_vivo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 落地页地址 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 操作说明 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 操作码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthTracecodesellerBillRootcodeGetAPIRequest.go b/model/drugtrace/AlibabaAlihealthTracecodesellerBillRootcodeGetAPIRequest.go new file mode 100644 index 0000000000..1993e5b395 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthTracecodesellerBillRootcodeGetAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取最外层包装码 API请求 +alibaba.alihealth.tracecodeseller.bill.rootcode.get + +获取最外层包装码 +*/ +type AlibabaAlihealthTracecodesellerBillRootcodeGetAPIRequest struct { + model.Params + // 用户身份认证 + _appCode string + // 码 + _code string +} + +// 初始化AlibabaAlihealthTracecodesellerBillRootcodeGetAPIRequest对象 +func NewAlibabaAlihealthTracecodesellerBillRootcodeGetRequest() *AlibabaAlihealthTracecodesellerBillRootcodeGetAPIRequest{ + return &AlibabaAlihealthTracecodesellerBillRootcodeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthTracecodesellerBillRootcodeGetAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.tracecodeseller.bill.rootcode.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthTracecodesellerBillRootcodeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppCode Setter +// 用户身份认证 +func (r *AlibabaAlihealthTracecodesellerBillRootcodeGetAPIRequest) SetAppCode(_appCode string) error { + r._appCode = _appCode + r.Set("app_code", _appCode) + return nil +} + +// AppCode Getter +func (r AlibabaAlihealthTracecodesellerBillRootcodeGetAPIRequest) GetAppCode() string { + return r._appCode +} +// Code Setter +// 码 +func (r *AlibabaAlihealthTracecodesellerBillRootcodeGetAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaAlihealthTracecodesellerBillRootcodeGetAPIRequest) GetCode() string { + return r._code +} diff --git a/model/drugtrace/AlibabaAlihealthTracecodesellerBillRootcodeGetAPIResponse.go b/model/drugtrace/AlibabaAlihealthTracecodesellerBillRootcodeGetAPIResponse.go new file mode 100644 index 0000000000..1719027a26 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthTracecodesellerBillRootcodeGetAPIResponse.go @@ -0,0 +1,31 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取最外层包装码 API返回值 +alibaba.alihealth.tracecodeseller.bill.rootcode.get + +获取最外层包装码 +*/ +type AlibabaAlihealthTracecodesellerBillRootcodeGetAPIResponse struct { + model.CommonResponse + AlibabaAlihealthTracecodesellerBillRootcodeGetAPIResponseModel +} + +// 获取最外层包装码 成功返回结果 +type AlibabaAlihealthTracecodesellerBillRootcodeGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_bill_rootcode_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最外层码 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthTracecodesellerBillRootcodeGetResponse.go b/model/drugtrace/AlibabaAlihealthTracecodesellerBillRootcodeGetResponse.go deleted file mode 100644 index 59e9e2febb..0000000000 --- a/model/drugtrace/AlibabaAlihealthTracecodesellerBillRootcodeGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取最外层包装码 API返回值 -alibaba.alihealth.tracecodeseller.bill.rootcode.get - -获取最外层包装码 -*/ -type AlibabaAlihealthTracecodesellerBillRootcodeGetAPIResponse struct { - model.CommonResponse - AlibabaAlihealthTracecodesellerBillRootcodeGetResponse -} - -// 获取最外层包装码 成功返回结果 -type AlibabaAlihealthTracecodesellerBillRootcodeGetResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_bill_rootcode_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最外层码 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIRequest.go b/model/drugtrace/AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIRequest.go new file mode 100644 index 0000000000..04292b173e --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +奶粉溯源-同步数据 API请求 +alibaba.alihealth.tracecodeseller.milk.trace.tosource.add.data + +奶粉溯源-同步数据 +*/ +type AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIRequest struct { + model.Params + // 奶粉品牌ID + _entId string + // 奶粉数据 + _jsonStr string +} + +// 初始化AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIRequest对象 +func NewAlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataRequest() *AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIRequest{ + return &AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.tracecodeseller.milk.trace.tosource.add.data" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EntId Setter +// 奶粉品牌ID +func (r *AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIRequest) SetEntId(_entId string) error { + r._entId = _entId + r.Set("ent_id", _entId) + return nil +} + +// EntId Getter +func (r AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIRequest) GetEntId() string { + return r._entId +} +// JsonStr Setter +// 奶粉数据 +func (r *AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIRequest) SetJsonStr(_jsonStr string) error { + r._jsonStr = _jsonStr + r.Set("json_str", _jsonStr) + return nil +} + +// JsonStr Getter +func (r AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIRequest) GetJsonStr() string { + return r._jsonStr +} diff --git a/model/drugtrace/AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIResponse.go b/model/drugtrace/AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIResponse.go new file mode 100644 index 0000000000..f3d544fe42 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIResponse.go @@ -0,0 +1,31 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +奶粉溯源-同步数据 API返回值 +alibaba.alihealth.tracecodeseller.milk.trace.tosource.add.data + +奶粉溯源-同步数据 +*/ +type AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIResponse struct { + model.CommonResponse + AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIResponseModel +} + +// 奶粉溯源-同步数据 成功返回结果 +type AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_milk_trace_tosource_add_data_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务出参true + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 操作码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 操作说明 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataResponse.go b/model/drugtrace/AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataResponse.go deleted file mode 100644 index 3b4bd52a32..0000000000 --- a/model/drugtrace/AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -奶粉溯源-同步数据 API返回值 -alibaba.alihealth.tracecodeseller.milk.trace.tosource.add.data - -奶粉溯源-同步数据 -*/ -type AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataAPIResponse struct { - model.CommonResponse - AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataResponse -} - -// 奶粉溯源-同步数据 成功返回结果 -type AlibabaAlihealthTracecodesellerMilkTraceTosourceAddDataResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_milk_trace_tosource_add_data_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务出参true - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 操作码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 操作说明 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthTracecodesellerProductAttrSearchAPIRequest.go b/model/drugtrace/AlibabaAlihealthTracecodesellerProductAttrSearchAPIRequest.go new file mode 100644 index 0000000000..0f2312a0c8 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthTracecodesellerProductAttrSearchAPIRequest.go @@ -0,0 +1,66 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据商品id获取商品属性 API请求 +alibaba.alihealth.tracecodeseller.product.attr.search + +根据商品id获取商品属性 +*/ +type AlibabaAlihealthTracecodesellerProductAttrSearchAPIRequest struct { + model.Params + // 企业id + _entInfoId int64 + // 货品id + _tracUserProductInfoId int64 +} + +// 初始化AlibabaAlihealthTracecodesellerProductAttrSearchAPIRequest对象 +func NewAlibabaAlihealthTracecodesellerProductAttrSearchRequest() *AlibabaAlihealthTracecodesellerProductAttrSearchAPIRequest{ + return &AlibabaAlihealthTracecodesellerProductAttrSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthTracecodesellerProductAttrSearchAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.tracecodeseller.product.attr.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthTracecodesellerProductAttrSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EntInfoId Setter +// 企业id +func (r *AlibabaAlihealthTracecodesellerProductAttrSearchAPIRequest) SetEntInfoId(_entInfoId int64) error { + r._entInfoId = _entInfoId + r.Set("ent_info_id", _entInfoId) + return nil +} + +// EntInfoId Getter +func (r AlibabaAlihealthTracecodesellerProductAttrSearchAPIRequest) GetEntInfoId() int64 { + return r._entInfoId +} +// TracUserProductInfoId Setter +// 货品id +func (r *AlibabaAlihealthTracecodesellerProductAttrSearchAPIRequest) SetTracUserProductInfoId(_tracUserProductInfoId int64) error { + r._tracUserProductInfoId = _tracUserProductInfoId + r.Set("trac_user_product_info_id", _tracUserProductInfoId) + return nil +} + +// TracUserProductInfoId Getter +func (r AlibabaAlihealthTracecodesellerProductAttrSearchAPIRequest) GetTracUserProductInfoId() int64 { + return r._tracUserProductInfoId +} diff --git a/model/drugtrace/AlibabaAlihealthTracecodesellerProductAttrSearchAPIResponse.go b/model/drugtrace/AlibabaAlihealthTracecodesellerProductAttrSearchAPIResponse.go new file mode 100644 index 0000000000..1eb0e12659 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthTracecodesellerProductAttrSearchAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据商品id获取商品属性 API返回值 +alibaba.alihealth.tracecodeseller.product.attr.search + +根据商品id获取商品属性 +*/ +type AlibabaAlihealthTracecodesellerProductAttrSearchAPIResponse struct { + model.CommonResponse + AlibabaAlihealthTracecodesellerProductAttrSearchAPIResponseModel +} + +// 根据商品id获取商品属性 成功返回结果 +type AlibabaAlihealthTracecodesellerProductAttrSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_product_attr_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthTracecodesellerProductAttrSearchResponse.go b/model/drugtrace/AlibabaAlihealthTracecodesellerProductAttrSearchResponse.go deleted file mode 100644 index 84dcdb69ef..0000000000 --- a/model/drugtrace/AlibabaAlihealthTracecodesellerProductAttrSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据商品id获取商品属性 API返回值 -alibaba.alihealth.tracecodeseller.product.attr.search - -根据商品id获取商品属性 -*/ -type AlibabaAlihealthTracecodesellerProductAttrSearchAPIResponse struct { - model.CommonResponse - AlibabaAlihealthTracecodesellerProductAttrSearchResponse -} - -// 根据商品id获取商品属性 成功返回结果 -type AlibabaAlihealthTracecodesellerProductAttrSearchResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_tracecodeseller_product_attr_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaAlihealthZyUploadrelationAPIRequest.go b/model/drugtrace/AlibabaAlihealthZyUploadrelationAPIRequest.go new file mode 100644 index 0000000000..433fabedc2 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthZyUploadrelationAPIRequest.go @@ -0,0 +1,122 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +中药片关联关系上传 API请求 +alibaba.alihealth.zy.uploadrelation + +中药片关联关系上传 +*/ +type AlibabaAlihealthZyUploadrelationAPIRequest struct { + model.Params + // 关联关系文件信息 + _saveCodeRelation *SaveCodeRelationType + // affirmFlag + _affirmFlag string + // fileContent + _fileContent string + // 加密之后的上传的关联关系文件内容 + _fileContentString string + // 企业ID + _refEntId string + // 客户端类型 + _clientType string +} + +// 初始化AlibabaAlihealthZyUploadrelationAPIRequest对象 +func NewAlibabaAlihealthZyUploadrelationRequest() *AlibabaAlihealthZyUploadrelationAPIRequest{ + return &AlibabaAlihealthZyUploadrelationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthZyUploadrelationAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.zy.uploadrelation" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthZyUploadrelationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SaveCodeRelation Setter +// 关联关系文件信息 +func (r *AlibabaAlihealthZyUploadrelationAPIRequest) SetSaveCodeRelation(_saveCodeRelation *SaveCodeRelationType) error { + r._saveCodeRelation = _saveCodeRelation + r.Set("save_code_relation", _saveCodeRelation) + return nil +} + +// SaveCodeRelation Getter +func (r AlibabaAlihealthZyUploadrelationAPIRequest) GetSaveCodeRelation() *SaveCodeRelationType { + return r._saveCodeRelation +} +// AffirmFlag Setter +// affirmFlag +func (r *AlibabaAlihealthZyUploadrelationAPIRequest) SetAffirmFlag(_affirmFlag string) error { + r._affirmFlag = _affirmFlag + r.Set("affirm_flag", _affirmFlag) + return nil +} + +// AffirmFlag Getter +func (r AlibabaAlihealthZyUploadrelationAPIRequest) GetAffirmFlag() string { + return r._affirmFlag +} +// FileContent Setter +// fileContent +func (r *AlibabaAlihealthZyUploadrelationAPIRequest) SetFileContent(_fileContent string) error { + r._fileContent = _fileContent + r.Set("file_content", _fileContent) + return nil +} + +// FileContent Getter +func (r AlibabaAlihealthZyUploadrelationAPIRequest) GetFileContent() string { + return r._fileContent +} +// FileContentString Setter +// 加密之后的上传的关联关系文件内容 +func (r *AlibabaAlihealthZyUploadrelationAPIRequest) SetFileContentString(_fileContentString string) error { + r._fileContentString = _fileContentString + r.Set("file_content_string", _fileContentString) + return nil +} + +// FileContentString Getter +func (r AlibabaAlihealthZyUploadrelationAPIRequest) GetFileContentString() string { + return r._fileContentString +} +// RefEntId Setter +// 企业ID +func (r *AlibabaAlihealthZyUploadrelationAPIRequest) SetRefEntId(_refEntId string) error { + r._refEntId = _refEntId + r.Set("ref_ent_id", _refEntId) + return nil +} + +// RefEntId Getter +func (r AlibabaAlihealthZyUploadrelationAPIRequest) GetRefEntId() string { + return r._refEntId +} +// ClientType Setter +// 客户端类型 +func (r *AlibabaAlihealthZyUploadrelationAPIRequest) SetClientType(_clientType string) error { + r._clientType = _clientType + r.Set("client_type", _clientType) + return nil +} + +// ClientType Getter +func (r AlibabaAlihealthZyUploadrelationAPIRequest) GetClientType() string { + return r._clientType +} diff --git a/model/drugtrace/AlibabaAlihealthZyUploadrelationAPIResponse.go b/model/drugtrace/AlibabaAlihealthZyUploadrelationAPIResponse.go new file mode 100644 index 0000000000..ee40839235 --- /dev/null +++ b/model/drugtrace/AlibabaAlihealthZyUploadrelationAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +中药片关联关系上传 API返回值 +alibaba.alihealth.zy.uploadrelation + +中药片关联关系上传 +*/ +type AlibabaAlihealthZyUploadrelationAPIResponse struct { + model.CommonResponse + AlibabaAlihealthZyUploadrelationAPIResponseModel +} + +// 中药片关联关系上传 成功返回结果 +type AlibabaAlihealthZyUploadrelationAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_zy_uploadrelation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAlihealthZyUploadrelationResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaAlihealthZyUploadrelationResponse.go b/model/drugtrace/AlibabaAlihealthZyUploadrelationResponse.go deleted file mode 100644 index c2c494e262..0000000000 --- a/model/drugtrace/AlibabaAlihealthZyUploadrelationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -中药片关联关系上传 API返回值 -alibaba.alihealth.zy.uploadrelation - -中药片关联关系上传 -*/ -type AlibabaAlihealthZyUploadrelationAPIResponse struct { - model.CommonResponse - AlibabaAlihealthZyUploadrelationResponse -} - -// 中药片关联关系上传 成功返回结果 -type AlibabaAlihealthZyUploadrelationResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_zy_uploadrelation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAlihealthZyUploadrelationResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaCfdaXtptAppAcceptInfoAPIRequest.go b/model/drugtrace/AlibabaCfdaXtptAppAcceptInfoAPIRequest.go new file mode 100644 index 0000000000..4749aa6360 --- /dev/null +++ b/model/drugtrace/AlibabaCfdaXtptAppAcceptInfoAPIRequest.go @@ -0,0 +1,150 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +协同平台数据下行接口 API请求 +alibaba.cfda.xtpt.app.accept.info + +协同平台数据下行接口 +*/ +type AlibabaCfdaXtptAppAcceptInfoAPIRequest struct { + model.Params + // 接入系统唯一标识,由协同平台分配 + _appId string + // 传输流水号(uuid) + _processId string + // 事件编号(uuid) + _eventId string + // 事件类型,10:基础信息数据子集 ; 20:应用信息数据子集 + _eventType string + // 事件子类型 + _subType string + // 统一社会信用代码 + _uscId string + // 文件内容 zip压缩+base64转码 + _data string + // 时间戳,yyyy-MM-dd HH:mm:ss + _tiemstamp string +} + +// 初始化AlibabaCfdaXtptAppAcceptInfoAPIRequest对象 +func NewAlibabaCfdaXtptAppAcceptInfoRequest() *AlibabaCfdaXtptAppAcceptInfoAPIRequest{ + return &AlibabaCfdaXtptAppAcceptInfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCfdaXtptAppAcceptInfoAPIRequest) GetApiMethodName() string { + return "alibaba.cfda.xtpt.app.accept.info" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCfdaXtptAppAcceptInfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppId Setter +// 接入系统唯一标识,由协同平台分配 +func (r *AlibabaCfdaXtptAppAcceptInfoAPIRequest) SetAppId(_appId string) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r AlibabaCfdaXtptAppAcceptInfoAPIRequest) GetAppId() string { + return r._appId +} +// ProcessId Setter +// 传输流水号(uuid) +func (r *AlibabaCfdaXtptAppAcceptInfoAPIRequest) SetProcessId(_processId string) error { + r._processId = _processId + r.Set("process_id", _processId) + return nil +} + +// ProcessId Getter +func (r AlibabaCfdaXtptAppAcceptInfoAPIRequest) GetProcessId() string { + return r._processId +} +// EventId Setter +// 事件编号(uuid) +func (r *AlibabaCfdaXtptAppAcceptInfoAPIRequest) SetEventId(_eventId string) error { + r._eventId = _eventId + r.Set("event_id", _eventId) + return nil +} + +// EventId Getter +func (r AlibabaCfdaXtptAppAcceptInfoAPIRequest) GetEventId() string { + return r._eventId +} +// EventType Setter +// 事件类型,10:基础信息数据子集 ; 20:应用信息数据子集 +func (r *AlibabaCfdaXtptAppAcceptInfoAPIRequest) SetEventType(_eventType string) error { + r._eventType = _eventType + r.Set("event_type", _eventType) + return nil +} + +// EventType Getter +func (r AlibabaCfdaXtptAppAcceptInfoAPIRequest) GetEventType() string { + return r._eventType +} +// SubType Setter +// 事件子类型 +func (r *AlibabaCfdaXtptAppAcceptInfoAPIRequest) SetSubType(_subType string) error { + r._subType = _subType + r.Set("sub_type", _subType) + return nil +} + +// SubType Getter +func (r AlibabaCfdaXtptAppAcceptInfoAPIRequest) GetSubType() string { + return r._subType +} +// UscId Setter +// 统一社会信用代码 +func (r *AlibabaCfdaXtptAppAcceptInfoAPIRequest) SetUscId(_uscId string) error { + r._uscId = _uscId + r.Set("usc_id", _uscId) + return nil +} + +// UscId Getter +func (r AlibabaCfdaXtptAppAcceptInfoAPIRequest) GetUscId() string { + return r._uscId +} +// Data Setter +// 文件内容 zip压缩+base64转码 +func (r *AlibabaCfdaXtptAppAcceptInfoAPIRequest) SetData(_data string) error { + r._data = _data + r.Set("data", _data) + return nil +} + +// Data Getter +func (r AlibabaCfdaXtptAppAcceptInfoAPIRequest) GetData() string { + return r._data +} +// Tiemstamp Setter +// 时间戳,yyyy-MM-dd HH:mm:ss +func (r *AlibabaCfdaXtptAppAcceptInfoAPIRequest) SetTiemstamp(_tiemstamp string) error { + r._tiemstamp = _tiemstamp + r.Set("tiemstamp", _tiemstamp) + return nil +} + +// Tiemstamp Getter +func (r AlibabaCfdaXtptAppAcceptInfoAPIRequest) GetTiemstamp() string { + return r._tiemstamp +} diff --git a/model/drugtrace/AlibabaCfdaXtptAppAcceptInfoAPIResponse.go b/model/drugtrace/AlibabaCfdaXtptAppAcceptInfoAPIResponse.go new file mode 100644 index 0000000000..4580d14718 --- /dev/null +++ b/model/drugtrace/AlibabaCfdaXtptAppAcceptInfoAPIResponse.go @@ -0,0 +1,27 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +协同平台数据下行接口 API返回值 +alibaba.cfda.xtpt.app.accept.info + +协同平台数据下行接口 +*/ +type AlibabaCfdaXtptAppAcceptInfoAPIResponse struct { + model.CommonResponse + AlibabaCfdaXtptAppAcceptInfoAPIResponseModel +} + +// 协同平台数据下行接口 成功返回结果 +type AlibabaCfdaXtptAppAcceptInfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_cfda_xtpt_app_accept_info_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaCfdaXtptAppAcceptInfoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/drugtrace/AlibabaCfdaXtptAppAcceptInfoResponse.go b/model/drugtrace/AlibabaCfdaXtptAppAcceptInfoResponse.go deleted file mode 100644 index 5b92c36487..0000000000 --- a/model/drugtrace/AlibabaCfdaXtptAppAcceptInfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -协同平台数据下行接口 API返回值 -alibaba.cfda.xtpt.app.accept.info - -协同平台数据下行接口 -*/ -type AlibabaCfdaXtptAppAcceptInfoAPIResponse struct { - model.CommonResponse - AlibabaCfdaXtptAppAcceptInfoResponse -} - -// 协同平台数据下行接口 成功返回结果 -type AlibabaCfdaXtptAppAcceptInfoResponse struct { - XMLName xml.Name `xml:"alibaba_cfda_xtpt_app_accept_info_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaCfdaXtptAppAcceptInfoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/drugtrace/AlibabaCfdaXtptAppGetshowurlAPIRequest.go b/model/drugtrace/AlibabaCfdaXtptAppGetshowurlAPIRequest.go new file mode 100644 index 0000000000..8cd4b014c0 --- /dev/null +++ b/model/drugtrace/AlibabaCfdaXtptAppGetshowurlAPIRequest.go @@ -0,0 +1,52 @@ +package drugtrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +协同平台码查询页面url API请求 +alibaba.cfda.xtpt.app.getshowurl + +协同平台码查询页面url +*/ +type AlibabaCfdaXtptAppGetshowurlAPIRequest struct { + model.Params + // 码 + _code string +} + +// 初始化AlibabaCfdaXtptAppGetshowurlAPIRequest对象 +func NewAlibabaCfdaXtptAppGetshowurlRequest() *AlibabaCfdaXtptAppGetshowurlAPIRequest{ + return &AlibabaCfdaXtptAppGetshowurlAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCfdaXtptAppGetshowurlAPIRequest) GetApiMethodName() string { + return "alibaba.cfda.xtpt.app.getshowurl" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCfdaXtptAppGetshowurlAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 码 +func (r *AlibabaCfdaXtptAppGetshowurlAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaCfdaXtptAppGetshowurlAPIRequest) GetCode() string { + return r._code +} diff --git a/model/drugtrace/AlibabaCfdaXtptAppGetshowurlAPIResponse.go b/model/drugtrace/AlibabaCfdaXtptAppGetshowurlAPIResponse.go new file mode 100644 index 0000000000..e1764c7ed5 --- /dev/null +++ b/model/drugtrace/AlibabaCfdaXtptAppGetshowurlAPIResponse.go @@ -0,0 +1,35 @@ +package drugtrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +协同平台码查询页面url API返回值 +alibaba.cfda.xtpt.app.getshowurl + +协同平台码查询页面url +*/ +type AlibabaCfdaXtptAppGetshowurlAPIResponse struct { + model.CommonResponse + AlibabaCfdaXtptAppGetshowurlAPIResponseModel +} + +// 协同平台码查询页面url 成功返回结果 +type AlibabaCfdaXtptAppGetshowurlAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_cfda_xtpt_app_getshowurl_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + MsgSuccess bool `json:"msg_success,omitempty" xml:"msg_success,omitempty"` + // model + Model string `json:"model,omitempty" xml:"model,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 状态 + HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"` +} diff --git a/model/drugtrace/AlibabaCfdaXtptAppGetshowurlResponse.go b/model/drugtrace/AlibabaCfdaXtptAppGetshowurlResponse.go deleted file mode 100644 index 6ee9175cfb..0000000000 --- a/model/drugtrace/AlibabaCfdaXtptAppGetshowurlResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package drugtrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -协同平台码查询页面url API返回值 -alibaba.cfda.xtpt.app.getshowurl - -协同平台码查询页面url -*/ -type AlibabaCfdaXtptAppGetshowurlAPIResponse struct { - model.CommonResponse - AlibabaCfdaXtptAppGetshowurlResponse -} - -// 协同平台码查询页面url 成功返回结果 -type AlibabaCfdaXtptAppGetshowurlResponse struct { - XMLName xml.Name `xml:"alibaba_cfda_xtpt_app_getshowurl_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - MsgSuccess bool `json:"msg_success,omitempty" xml:"msg_success,omitempty"` - // model - Model string `json:"model,omitempty" xml:"model,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 状态 - HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"` -} diff --git a/model/dt/AlibabaDtTmllcarLeadsinfoAPIRequest.go b/model/dt/AlibabaDtTmllcarLeadsinfoAPIRequest.go new file mode 100644 index 0000000000..831119712f --- /dev/null +++ b/model/dt/AlibabaDtTmllcarLeadsinfoAPIRequest.go @@ -0,0 +1,94 @@ +package dt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫汽车线索产品潜客数据 API请求 +alibaba.dt.tmllcar.leadsinfo + +1. 线索分发是天猫汽车行业流量端最中要的产品,经过前两年的业务和数据端的积累已经对整体业务流程和方案有了清晰的思路;目前数据段已经产沉淀2000W汽车潜客数据,通过运营尝试得到了较好的效果,今年将通过与商家端合作(大搜车-卖车管家)完成潜客分发-商家报价-潜客触达-线索分发-线下核销等一整个汽车人群运营闭环;这个接口反馈大搜车线下门店周围潜客规模及热门车型数据 +*/ +type AlibabaDtTmllcarLeadsinfoAPIRequest struct { + model.Params + // shopcode + _shopCode string + // app_name + _appName string + // name + _name string + // pssword + _password string +} + +// 初始化AlibabaDtTmllcarLeadsinfoAPIRequest对象 +func NewAlibabaDtTmllcarLeadsinfoRequest() *AlibabaDtTmllcarLeadsinfoAPIRequest{ + return &AlibabaDtTmllcarLeadsinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDtTmllcarLeadsinfoAPIRequest) GetApiMethodName() string { + return "alibaba.dt.tmllcar.leadsinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDtTmllcarLeadsinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShopCode Setter +// shopcode +func (r *AlibabaDtTmllcarLeadsinfoAPIRequest) SetShopCode(_shopCode string) error { + r._shopCode = _shopCode + r.Set("shop_code", _shopCode) + return nil +} + +// ShopCode Getter +func (r AlibabaDtTmllcarLeadsinfoAPIRequest) GetShopCode() string { + return r._shopCode +} +// AppName Setter +// app_name +func (r *AlibabaDtTmllcarLeadsinfoAPIRequest) SetAppName(_appName string) error { + r._appName = _appName + r.Set("app_name", _appName) + return nil +} + +// AppName Getter +func (r AlibabaDtTmllcarLeadsinfoAPIRequest) GetAppName() string { + return r._appName +} +// Name Setter +// name +func (r *AlibabaDtTmllcarLeadsinfoAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r AlibabaDtTmllcarLeadsinfoAPIRequest) GetName() string { + return r._name +} +// Password Setter +// pssword +func (r *AlibabaDtTmllcarLeadsinfoAPIRequest) SetPassword(_password string) error { + r._password = _password + r.Set("password", _password) + return nil +} + +// Password Getter +func (r AlibabaDtTmllcarLeadsinfoAPIRequest) GetPassword() string { + return r._password +} diff --git a/model/dt/AlibabaDtTmllcarLeadsinfoAPIResponse.go b/model/dt/AlibabaDtTmllcarLeadsinfoAPIResponse.go new file mode 100644 index 0000000000..95852d7d16 --- /dev/null +++ b/model/dt/AlibabaDtTmllcarLeadsinfoAPIResponse.go @@ -0,0 +1,27 @@ +package dt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫汽车线索产品潜客数据 API返回值 +alibaba.dt.tmllcar.leadsinfo + +1. 线索分发是天猫汽车行业流量端最中要的产品,经过前两年的业务和数据端的积累已经对整体业务流程和方案有了清晰的思路;目前数据段已经产沉淀2000W汽车潜客数据,通过运营尝试得到了较好的效果,今年将通过与商家端合作(大搜车-卖车管家)完成潜客分发-商家报价-潜客触达-线索分发-线下核销等一整个汽车人群运营闭环;这个接口反馈大搜车线下门店周围潜客规模及热门车型数据 +*/ +type AlibabaDtTmllcarLeadsinfoAPIResponse struct { + model.CommonResponse + AlibabaDtTmllcarLeadsinfoAPIResponseModel +} + +// 天猫汽车线索产品潜客数据 成功返回结果 +type AlibabaDtTmllcarLeadsinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_dt_tmllcar_leadsinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDtTmllcarLeadsinfoResults `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/dt/AlibabaDtTmllcarLeadsinfoResponse.go b/model/dt/AlibabaDtTmllcarLeadsinfoResponse.go deleted file mode 100644 index 9f54d38176..0000000000 --- a/model/dt/AlibabaDtTmllcarLeadsinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package dt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫汽车线索产品潜客数据 API返回值 -alibaba.dt.tmllcar.leadsinfo - -1. 线索分发是天猫汽车行业流量端最中要的产品,经过前两年的业务和数据端的积累已经对整体业务流程和方案有了清晰的思路;目前数据段已经产沉淀2000W汽车潜客数据,通过运营尝试得到了较好的效果,今年将通过与商家端合作(大搜车-卖车管家)完成潜客分发-商家报价-潜客触达-线索分发-线下核销等一整个汽车人群运营闭环;这个接口反馈大搜车线下门店周围潜客规模及热门车型数据 -*/ -type AlibabaDtTmllcarLeadsinfoAPIResponse struct { - model.CommonResponse - AlibabaDtTmllcarLeadsinfoResponse -} - -// 天猫汽车线索产品潜客数据 成功返回结果 -type AlibabaDtTmllcarLeadsinfoResponse struct { - XMLName xml.Name `xml:"alibaba_dt_tmllcar_leadsinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDtTmllcarLeadsinfoResults `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/dt/AlibabaDtTmllcarPricevalidateAPIRequest.go b/model/dt/AlibabaDtTmllcarPricevalidateAPIRequest.go new file mode 100644 index 0000000000..1190d11505 --- /dev/null +++ b/model/dt/AlibabaDtTmllcarPricevalidateAPIRequest.go @@ -0,0 +1,124 @@ +package dt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线索报价价格校验 API请求 +alibaba.dt.tmllcar.pricevalidate + +根据选定的车型和城市,校验汽车价格是否通过 +入参:车型ID,城市名称,价格 +输出:N 校验失败,校验成功不返回值 +*/ +type AlibabaDtTmllcarPricevalidateAPIRequest struct { + model.Params + // tt + _appName string + // tt + _name string + // tt + _password string + // tt + _price *BigDecimal + // tt + _cityName string + // tt + _modelName string +} + +// 初始化AlibabaDtTmllcarPricevalidateAPIRequest对象 +func NewAlibabaDtTmllcarPricevalidateRequest() *AlibabaDtTmllcarPricevalidateAPIRequest{ + return &AlibabaDtTmllcarPricevalidateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDtTmllcarPricevalidateAPIRequest) GetApiMethodName() string { + return "alibaba.dt.tmllcar.pricevalidate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDtTmllcarPricevalidateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppName Setter +// tt +func (r *AlibabaDtTmllcarPricevalidateAPIRequest) SetAppName(_appName string) error { + r._appName = _appName + r.Set("app_name", _appName) + return nil +} + +// AppName Getter +func (r AlibabaDtTmllcarPricevalidateAPIRequest) GetAppName() string { + return r._appName +} +// Name Setter +// tt +func (r *AlibabaDtTmllcarPricevalidateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r AlibabaDtTmllcarPricevalidateAPIRequest) GetName() string { + return r._name +} +// Password Setter +// tt +func (r *AlibabaDtTmllcarPricevalidateAPIRequest) SetPassword(_password string) error { + r._password = _password + r.Set("password", _password) + return nil +} + +// Password Getter +func (r AlibabaDtTmllcarPricevalidateAPIRequest) GetPassword() string { + return r._password +} +// Price Setter +// tt +func (r *AlibabaDtTmllcarPricevalidateAPIRequest) SetPrice(_price *BigDecimal) error { + r._price = _price + r.Set("price", _price) + return nil +} + +// Price Getter +func (r AlibabaDtTmllcarPricevalidateAPIRequest) GetPrice() *BigDecimal { + return r._price +} +// CityName Setter +// tt +func (r *AlibabaDtTmllcarPricevalidateAPIRequest) SetCityName(_cityName string) error { + r._cityName = _cityName + r.Set("city_name", _cityName) + return nil +} + +// CityName Getter +func (r AlibabaDtTmllcarPricevalidateAPIRequest) GetCityName() string { + return r._cityName +} +// ModelName Setter +// tt +func (r *AlibabaDtTmllcarPricevalidateAPIRequest) SetModelName(_modelName string) error { + r._modelName = _modelName + r.Set("model_name", _modelName) + return nil +} + +// ModelName Getter +func (r AlibabaDtTmllcarPricevalidateAPIRequest) GetModelName() string { + return r._modelName +} diff --git a/model/dt/AlibabaDtTmllcarPricevalidateAPIResponse.go b/model/dt/AlibabaDtTmllcarPricevalidateAPIResponse.go new file mode 100644 index 0000000000..f2ee5437ee --- /dev/null +++ b/model/dt/AlibabaDtTmllcarPricevalidateAPIResponse.go @@ -0,0 +1,29 @@ +package dt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线索报价价格校验 API返回值 +alibaba.dt.tmllcar.pricevalidate + +根据选定的车型和城市,校验汽车价格是否通过 +入参:车型ID,城市名称,价格 +输出:N 校验失败,校验成功不返回值 +*/ +type AlibabaDtTmllcarPricevalidateAPIResponse struct { + model.CommonResponse + AlibabaDtTmllcarPricevalidateAPIResponseModel +} + +// 线索报价价格校验 成功返回结果 +type AlibabaDtTmllcarPricevalidateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_dt_tmllcar_pricevalidate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaDtTmllcarPricevalidateResults `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/dt/AlibabaDtTmllcarPricevalidateResponse.go b/model/dt/AlibabaDtTmllcarPricevalidateResponse.go deleted file mode 100644 index 07d6dc4750..0000000000 --- a/model/dt/AlibabaDtTmllcarPricevalidateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package dt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线索报价价格校验 API返回值 -alibaba.dt.tmllcar.pricevalidate - -根据选定的车型和城市,校验汽车价格是否通过 -入参:车型ID,城市名称,价格 -输出:N 校验失败,校验成功不返回值 -*/ -type AlibabaDtTmllcarPricevalidateAPIResponse struct { - model.CommonResponse - AlibabaDtTmllcarPricevalidateResponse -} - -// 线索报价价格校验 成功返回结果 -type AlibabaDtTmllcarPricevalidateResponse struct { - XMLName xml.Name `xml:"alibaba_dt_tmllcar_pricevalidate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaDtTmllcarPricevalidateResults `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/dt/AlibabaNrsItemPricetagRecognizeAPIRequest.go b/model/dt/AlibabaNrsItemPricetagRecognizeAPIRequest.go new file mode 100644 index 0000000000..65fa7e79ac --- /dev/null +++ b/model/dt/AlibabaNrsItemPricetagRecognizeAPIRequest.go @@ -0,0 +1,66 @@ +package dt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +价签识别 API请求 +alibaba.nrs.item.pricetag.recognize + +商品价签识别,用于识别RT上传的竞品分析照片,返回价签内容 +*/ +type AlibabaNrsItemPricetagRecognizeAPIRequest struct { + model.Params + // 图片数据 + _imgByteArr *model.File + // 价签识别参数 + _priceTagParam *PriceTagReqParam +} + +// 初始化AlibabaNrsItemPricetagRecognizeAPIRequest对象 +func NewAlibabaNrsItemPricetagRecognizeRequest() *AlibabaNrsItemPricetagRecognizeAPIRequest{ + return &AlibabaNrsItemPricetagRecognizeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNrsItemPricetagRecognizeAPIRequest) GetApiMethodName() string { + return "alibaba.nrs.item.pricetag.recognize" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNrsItemPricetagRecognizeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImgByteArr Setter +// 图片数据 +func (r *AlibabaNrsItemPricetagRecognizeAPIRequest) SetImgByteArr(_imgByteArr *model.File) error { + r._imgByteArr = _imgByteArr + r.Set("img_byte_arr", _imgByteArr) + return nil +} + +// ImgByteArr Getter +func (r AlibabaNrsItemPricetagRecognizeAPIRequest) GetImgByteArr() *model.File { + return r._imgByteArr +} +// PriceTagParam Setter +// 价签识别参数 +func (r *AlibabaNrsItemPricetagRecognizeAPIRequest) SetPriceTagParam(_priceTagParam *PriceTagReqParam) error { + r._priceTagParam = _priceTagParam + r.Set("price_tag_param", _priceTagParam) + return nil +} + +// PriceTagParam Getter +func (r AlibabaNrsItemPricetagRecognizeAPIRequest) GetPriceTagParam() *PriceTagReqParam { + return r._priceTagParam +} diff --git a/model/dt/AlibabaNrsItemPricetagRecognizeAPIResponse.go b/model/dt/AlibabaNrsItemPricetagRecognizeAPIResponse.go new file mode 100644 index 0000000000..176b1391d7 --- /dev/null +++ b/model/dt/AlibabaNrsItemPricetagRecognizeAPIResponse.go @@ -0,0 +1,27 @@ +package dt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +价签识别 API返回值 +alibaba.nrs.item.pricetag.recognize + +商品价签识别,用于识别RT上传的竞品分析照片,返回价签内容 +*/ +type AlibabaNrsItemPricetagRecognizeAPIResponse struct { + model.CommonResponse + AlibabaNrsItemPricetagRecognizeAPIResponseModel +} + +// 价签识别 成功返回结果 +type AlibabaNrsItemPricetagRecognizeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nrs_item_pricetag_recognize_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + NrsResult *NrsResult `json:"nrs_result,omitempty" xml:"nrs_result,omitempty"` +} diff --git a/model/dt/AlibabaNrsItemPricetagRecognizeResponse.go b/model/dt/AlibabaNrsItemPricetagRecognizeResponse.go deleted file mode 100644 index 598b8c7a14..0000000000 --- a/model/dt/AlibabaNrsItemPricetagRecognizeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package dt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -价签识别 API返回值 -alibaba.nrs.item.pricetag.recognize - -商品价签识别,用于识别RT上传的竞品分析照片,返回价签内容 -*/ -type AlibabaNrsItemPricetagRecognizeAPIResponse struct { - model.CommonResponse - AlibabaNrsItemPricetagRecognizeResponse -} - -// 价签识别 成功返回结果 -type AlibabaNrsItemPricetagRecognizeResponse struct { - XMLName xml.Name `xml:"alibaba_nrs_item_pricetag_recognize_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - NrsResult *NrsResult `json:"nrs_result,omitempty" xml:"nrs_result,omitempty"` -} diff --git a/model/dt/AlibabaNrsItemRtdataBackflowAPIRequest.go b/model/dt/AlibabaNrsItemRtdataBackflowAPIRequest.go new file mode 100644 index 0000000000..ac5e0bc603 --- /dev/null +++ b/model/dt/AlibabaNrsItemRtdataBackflowAPIRequest.go @@ -0,0 +1,52 @@ +package dt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +RT竞价数据回流 API请求 +alibaba.nrs.item.rtdata.backflow + +回流竞品价格数据,用与后续OCR识别价签数据,做精确化数据纠正 +*/ +type AlibabaNrsItemRtdataBackflowAPIRequest struct { + model.Params + // 入参 + _rtItemPriceTagBackParam *RtItemPriceTagBackParam +} + +// 初始化AlibabaNrsItemRtdataBackflowAPIRequest对象 +func NewAlibabaNrsItemRtdataBackflowRequest() *AlibabaNrsItemRtdataBackflowAPIRequest{ + return &AlibabaNrsItemRtdataBackflowAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNrsItemRtdataBackflowAPIRequest) GetApiMethodName() string { + return "alibaba.nrs.item.rtdata.backflow" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNrsItemRtdataBackflowAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RtItemPriceTagBackParam Setter +// 入参 +func (r *AlibabaNrsItemRtdataBackflowAPIRequest) SetRtItemPriceTagBackParam(_rtItemPriceTagBackParam *RtItemPriceTagBackParam) error { + r._rtItemPriceTagBackParam = _rtItemPriceTagBackParam + r.Set("rt_item_price_tag_back_param", _rtItemPriceTagBackParam) + return nil +} + +// RtItemPriceTagBackParam Getter +func (r AlibabaNrsItemRtdataBackflowAPIRequest) GetRtItemPriceTagBackParam() *RtItemPriceTagBackParam { + return r._rtItemPriceTagBackParam +} diff --git a/model/dt/AlibabaNrsItemRtdataBackflowAPIResponse.go b/model/dt/AlibabaNrsItemRtdataBackflowAPIResponse.go new file mode 100644 index 0000000000..0ba2a22a09 --- /dev/null +++ b/model/dt/AlibabaNrsItemRtdataBackflowAPIResponse.go @@ -0,0 +1,27 @@ +package dt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +RT竞价数据回流 API返回值 +alibaba.nrs.item.rtdata.backflow + +回流竞品价格数据,用与后续OCR识别价签数据,做精确化数据纠正 +*/ +type AlibabaNrsItemRtdataBackflowAPIResponse struct { + model.CommonResponse + AlibabaNrsItemRtdataBackflowAPIResponseModel +} + +// RT竞价数据回流 成功返回结果 +type AlibabaNrsItemRtdataBackflowAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nrs_item_rtdata_backflow_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *NrsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/dt/AlibabaNrsItemRtdataBackflowResponse.go b/model/dt/AlibabaNrsItemRtdataBackflowResponse.go deleted file mode 100644 index 870b6b5057..0000000000 --- a/model/dt/AlibabaNrsItemRtdataBackflowResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package dt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -RT竞价数据回流 API返回值 -alibaba.nrs.item.rtdata.backflow - -回流竞品价格数据,用与后续OCR识别价签数据,做精确化数据纠正 -*/ -type AlibabaNrsItemRtdataBackflowAPIResponse struct { - model.CommonResponse - AlibabaNrsItemRtdataBackflowResponse -} - -// RT竞价数据回流 成功返回结果 -type AlibabaNrsItemRtdataBackflowResponse struct { - XMLName xml.Name `xml:"alibaba_nrs_item_rtdata_backflow_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *NrsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/dutyfree/AlibabaDutyfreeStockQueryAPIRequest.go b/model/dutyfree/AlibabaDutyfreeStockQueryAPIRequest.go new file mode 100644 index 0000000000..c2678ad8a6 --- /dev/null +++ b/model/dutyfree/AlibabaDutyfreeStockQueryAPIRequest.go @@ -0,0 +1,52 @@ +package dutyfree + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +对外库存查询接口 API请求 +alibaba.dutyfree.stock.query + +对外部服务提供库存查询接口 +*/ +type AlibabaDutyfreeStockQueryAPIRequest struct { + model.Params + // 条形码 + _barCode string +} + +// 初始化AlibabaDutyfreeStockQueryAPIRequest对象 +func NewAlibabaDutyfreeStockQueryRequest() *AlibabaDutyfreeStockQueryAPIRequest{ + return &AlibabaDutyfreeStockQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDutyfreeStockQueryAPIRequest) GetApiMethodName() string { + return "alibaba.dutyfree.stock.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDutyfreeStockQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BarCode Setter +// 条形码 +func (r *AlibabaDutyfreeStockQueryAPIRequest) SetBarCode(_barCode string) error { + r._barCode = _barCode + r.Set("bar_code", _barCode) + return nil +} + +// BarCode Getter +func (r AlibabaDutyfreeStockQueryAPIRequest) GetBarCode() string { + return r._barCode +} diff --git a/model/dutyfree/AlibabaDutyfreeStockQueryAPIResponse.go b/model/dutyfree/AlibabaDutyfreeStockQueryAPIResponse.go new file mode 100644 index 0000000000..ba3000cecb --- /dev/null +++ b/model/dutyfree/AlibabaDutyfreeStockQueryAPIResponse.go @@ -0,0 +1,27 @@ +package dutyfree + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +对外库存查询接口 API返回值 +alibaba.dutyfree.stock.query + +对外部服务提供库存查询接口 +*/ +type AlibabaDutyfreeStockQueryAPIResponse struct { + model.CommonResponse + AlibabaDutyfreeStockQueryAPIResponseModel +} + +// 对外库存查询接口 成功返回结果 +type AlibabaDutyfreeStockQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_dutyfree_stock_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaDutyfreeStockQueryResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/dutyfree/AlibabaDutyfreeStockQueryResponse.go b/model/dutyfree/AlibabaDutyfreeStockQueryResponse.go deleted file mode 100644 index 8e5fdf4f8d..0000000000 --- a/model/dutyfree/AlibabaDutyfreeStockQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package dutyfree - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -对外库存查询接口 API返回值 -alibaba.dutyfree.stock.query - -对外部服务提供库存查询接口 -*/ -type AlibabaDutyfreeStockQueryAPIResponse struct { - model.CommonResponse - AlibabaDutyfreeStockQueryResponse -} - -// 对外库存查询接口 成功返回结果 -type AlibabaDutyfreeStockQueryResponse struct { - XMLName xml.Name `xml:"alibaba_dutyfree_stock_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaDutyfreeStockQueryResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/dutyfree/AlibabaDutyfreeStockQueryResultDo.go b/model/dutyfree/AlibabaDutyfreeStockQueryResultDo.go new file mode 100644 index 0000000000..8c5deaaa93 --- /dev/null +++ b/model/dutyfree/AlibabaDutyfreeStockQueryResultDo.go @@ -0,0 +1,13 @@ +package dutyfree + +// AlibabaDutyfreeStockQueryResultDo +type AlibabaDutyfreeStockQueryResultDo struct { + // 错误码 + Code int64 `json:"code,omitempty" xml:"code,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 具体库存信息 + Object *StockResultDto `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceAmountCheckAPIRequest.go b/model/einvoice/AlibabaEinvoiceAmountCheckAPIRequest.go new file mode 100644 index 0000000000..fb217ad2e4 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceAmountCheckAPIRequest.go @@ -0,0 +1,80 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +开票量核对接口 API请求 +alibaba.einvoice.amount.check + +跟开票服务商核对历史开票量,用来对账 +*/ +type AlibabaEinvoiceAmountCheckAPIRequest struct { + model.Params + // 税号 + _payeeRegisterNo string + // 开票日期开始时间 + _startDate string + // 开票日期结束时间 + _endDate string +} + +// 初始化AlibabaEinvoiceAmountCheckAPIRequest对象 +func NewAlibabaEinvoiceAmountCheckRequest() *AlibabaEinvoiceAmountCheckAPIRequest{ + return &AlibabaEinvoiceAmountCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceAmountCheckAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.amount.check" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceAmountCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PayeeRegisterNo Setter +// 税号 +func (r *AlibabaEinvoiceAmountCheckAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceAmountCheckAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// StartDate Setter +// 开票日期开始时间 +func (r *AlibabaEinvoiceAmountCheckAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r AlibabaEinvoiceAmountCheckAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 开票日期结束时间 +func (r *AlibabaEinvoiceAmountCheckAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaEinvoiceAmountCheckAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/einvoice/AlibabaEinvoiceAmountCheckAPIResponse.go b/model/einvoice/AlibabaEinvoiceAmountCheckAPIResponse.go new file mode 100644 index 0000000000..edbb02ad86 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceAmountCheckAPIResponse.go @@ -0,0 +1,31 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +开票量核对接口 API返回值 +alibaba.einvoice.amount.check + +跟开票服务商核对历史开票量,用来对账 +*/ +type AlibabaEinvoiceAmountCheckAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceAmountCheckAPIResponseModel +} + +// 开票量核对接口 成功返回结果 +type AlibabaEinvoiceAmountCheckAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_amount_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 开票量查询结果 + EinvoiceAmountCheckResultList []EinvoiceAmountCheckResult `json:"einvoice_amount_check_result_list,omitempty" xml:"einvoice_amount_check_result_list>einvoice_amount_check_result,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 查询结果的数量 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceAmountCheckResponse.go b/model/einvoice/AlibabaEinvoiceAmountCheckResponse.go deleted file mode 100644 index 125c855ff7..0000000000 --- a/model/einvoice/AlibabaEinvoiceAmountCheckResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -开票量核对接口 API返回值 -alibaba.einvoice.amount.check - -跟开票服务商核对历史开票量,用来对账 -*/ -type AlibabaEinvoiceAmountCheckAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceAmountCheckResponse -} - -// 开票量核对接口 成功返回结果 -type AlibabaEinvoiceAmountCheckResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_amount_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 开票量查询结果 - EinvoiceAmountCheckResultList []EinvoiceAmountCheckResult `json:"einvoice_amount_check_result_list,omitempty" xml:"einvoice_amount_check_result_list>einvoice_amount_check_result,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 查询结果的数量 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceBillEinvoiceListAPIRequest.go b/model/einvoice/AlibabaEinvoiceBillEinvoiceListAPIRequest.go new file mode 100644 index 0000000000..ed07d95ccf --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceBillEinvoiceListAPIRequest.go @@ -0,0 +1,94 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +扫码开票列表 API请求 +alibaba.einvoice.bill.einvoice.list + +扫码开票列表,包括用户扫二维码开票和结算单同步前的开票数据 +*/ +type AlibabaEinvoiceBillEinvoiceListAPIRequest struct { + model.Params + // 结算单同步的ERP平台系统 + _platform string + // 收款方税号 + _payeeRegisterNo string + // 订单ID + _orderId string + // 开票状态:0=未开票,1=开票中,3=开蓝成功,4=开蓝失败。不填获取全部 + _einvoiceType []int64 +} + +// 初始化AlibabaEinvoiceBillEinvoiceListAPIRequest对象 +func NewAlibabaEinvoiceBillEinvoiceListRequest() *AlibabaEinvoiceBillEinvoiceListAPIRequest{ + return &AlibabaEinvoiceBillEinvoiceListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceBillEinvoiceListAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.bill.einvoice.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceBillEinvoiceListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Platform Setter +// 结算单同步的ERP平台系统 +func (r *AlibabaEinvoiceBillEinvoiceListAPIRequest) SetPlatform(_platform string) error { + r._platform = _platform + r.Set("platform", _platform) + return nil +} + +// Platform Getter +func (r AlibabaEinvoiceBillEinvoiceListAPIRequest) GetPlatform() string { + return r._platform +} +// PayeeRegisterNo Setter +// 收款方税号 +func (r *AlibabaEinvoiceBillEinvoiceListAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceBillEinvoiceListAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// OrderId Setter +// 订单ID +func (r *AlibabaEinvoiceBillEinvoiceListAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaEinvoiceBillEinvoiceListAPIRequest) GetOrderId() string { + return r._orderId +} +// EinvoiceType Setter +// 开票状态:0=未开票,1=开票中,3=开蓝成功,4=开蓝失败。不填获取全部 +func (r *AlibabaEinvoiceBillEinvoiceListAPIRequest) SetEinvoiceType(_einvoiceType []int64) error { + r._einvoiceType = _einvoiceType + r.Set("einvoice_type", _einvoiceType) + return nil +} + +// EinvoiceType Getter +func (r AlibabaEinvoiceBillEinvoiceListAPIRequest) GetEinvoiceType() []int64 { + return r._einvoiceType +} diff --git a/model/einvoice/AlibabaEinvoiceBillEinvoiceListAPIResponse.go b/model/einvoice/AlibabaEinvoiceBillEinvoiceListAPIResponse.go new file mode 100644 index 0000000000..097d60c6fb --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceBillEinvoiceListAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +扫码开票列表 API返回值 +alibaba.einvoice.bill.einvoice.list + +扫码开票列表,包括用户扫二维码开票和结算单同步前的开票数据 +*/ +type AlibabaEinvoiceBillEinvoiceListAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceBillEinvoiceListAPIResponseModel +} + +// 扫码开票列表 成功返回结果 +type AlibabaEinvoiceBillEinvoiceListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_bill_einvoice_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaEinvoiceBillEinvoiceListResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceBillEinvoiceListResponse.go b/model/einvoice/AlibabaEinvoiceBillEinvoiceListResponse.go deleted file mode 100644 index 2d496ba865..0000000000 --- a/model/einvoice/AlibabaEinvoiceBillEinvoiceListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -扫码开票列表 API返回值 -alibaba.einvoice.bill.einvoice.list - -扫码开票列表,包括用户扫二维码开票和结算单同步前的开票数据 -*/ -type AlibabaEinvoiceBillEinvoiceListAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceBillEinvoiceListResponse -} - -// 扫码开票列表 成功返回结果 -type AlibabaEinvoiceBillEinvoiceListResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_bill_einvoice_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaEinvoiceBillEinvoiceListResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceBillForwordCreateAPIRequest.go b/model/einvoice/AlibabaEinvoiceBillForwordCreateAPIRequest.go new file mode 100644 index 0000000000..bd7549dc23 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceBillForwordCreateAPIRequest.go @@ -0,0 +1,248 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +扫码开票结算单同步前开发票 API请求 +alibaba.einvoice.bill.forword.create + +扫码开票结算单同步前开发票,会将数据同步到结算单中 +*/ +type AlibabaEinvoiceBillForwordCreateAPIRequest struct { + model.Params + // 发票商品明细 + _invoiceItems []BillItemDo + // 结算单订单ID + _orderId string + // 收款方税号 + _payeeRegisterNo string + // 调用平台,用以区分不同的订单ID,不填默认为default + _platform string + // 开票流水号,若不填则系统默认生成 + _seriNo string + // 店铺名称 + _shopName string + // 开票金额,和明细累计总金额需相同 + _sumPrice string + // 付款方地址 + _payerAddress string + // 付款方银行账户 + _payerBankaccount string + // 付款方开票邮件通知邮箱 + _payerEmail string + // 付款方发票抬头 + _payerName string + // 企业电话 + _payerPhone string + // 付款方税号 + _payerRegisterNo string + // 个人电话,接收发票通知 + _phoneNumber string + // 企业或个人抬头发票,0=个人,1=企业。默认=1 + _businessType int64 +} + +// 初始化AlibabaEinvoiceBillForwordCreateAPIRequest对象 +func NewAlibabaEinvoiceBillForwordCreateRequest() *AlibabaEinvoiceBillForwordCreateAPIRequest{ + return &AlibabaEinvoiceBillForwordCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceBillForwordCreateAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.bill.forword.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceBillForwordCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InvoiceItems Setter +// 发票商品明细 +func (r *AlibabaEinvoiceBillForwordCreateAPIRequest) SetInvoiceItems(_invoiceItems []BillItemDo) error { + r._invoiceItems = _invoiceItems + r.Set("invoice_items", _invoiceItems) + return nil +} + +// InvoiceItems Getter +func (r AlibabaEinvoiceBillForwordCreateAPIRequest) GetInvoiceItems() []BillItemDo { + return r._invoiceItems +} +// OrderId Setter +// 结算单订单ID +func (r *AlibabaEinvoiceBillForwordCreateAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaEinvoiceBillForwordCreateAPIRequest) GetOrderId() string { + return r._orderId +} +// PayeeRegisterNo Setter +// 收款方税号 +func (r *AlibabaEinvoiceBillForwordCreateAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceBillForwordCreateAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// Platform Setter +// 调用平台,用以区分不同的订单ID,不填默认为default +func (r *AlibabaEinvoiceBillForwordCreateAPIRequest) SetPlatform(_platform string) error { + r._platform = _platform + r.Set("platform", _platform) + return nil +} + +// Platform Getter +func (r AlibabaEinvoiceBillForwordCreateAPIRequest) GetPlatform() string { + return r._platform +} +// SeriNo Setter +// 开票流水号,若不填则系统默认生成 +func (r *AlibabaEinvoiceBillForwordCreateAPIRequest) SetSeriNo(_seriNo string) error { + r._seriNo = _seriNo + r.Set("seri_no", _seriNo) + return nil +} + +// SeriNo Getter +func (r AlibabaEinvoiceBillForwordCreateAPIRequest) GetSeriNo() string { + return r._seriNo +} +// ShopName Setter +// 店铺名称 +func (r *AlibabaEinvoiceBillForwordCreateAPIRequest) SetShopName(_shopName string) error { + r._shopName = _shopName + r.Set("shop_name", _shopName) + return nil +} + +// ShopName Getter +func (r AlibabaEinvoiceBillForwordCreateAPIRequest) GetShopName() string { + return r._shopName +} +// SumPrice Setter +// 开票金额,和明细累计总金额需相同 +func (r *AlibabaEinvoiceBillForwordCreateAPIRequest) SetSumPrice(_sumPrice string) error { + r._sumPrice = _sumPrice + r.Set("sum_price", _sumPrice) + return nil +} + +// SumPrice Getter +func (r AlibabaEinvoiceBillForwordCreateAPIRequest) GetSumPrice() string { + return r._sumPrice +} +// PayerAddress Setter +// 付款方地址 +func (r *AlibabaEinvoiceBillForwordCreateAPIRequest) SetPayerAddress(_payerAddress string) error { + r._payerAddress = _payerAddress + r.Set("payer_address", _payerAddress) + return nil +} + +// PayerAddress Getter +func (r AlibabaEinvoiceBillForwordCreateAPIRequest) GetPayerAddress() string { + return r._payerAddress +} +// PayerBankaccount Setter +// 付款方银行账户 +func (r *AlibabaEinvoiceBillForwordCreateAPIRequest) SetPayerBankaccount(_payerBankaccount string) error { + r._payerBankaccount = _payerBankaccount + r.Set("payer_bankaccount", _payerBankaccount) + return nil +} + +// PayerBankaccount Getter +func (r AlibabaEinvoiceBillForwordCreateAPIRequest) GetPayerBankaccount() string { + return r._payerBankaccount +} +// PayerEmail Setter +// 付款方开票邮件通知邮箱 +func (r *AlibabaEinvoiceBillForwordCreateAPIRequest) SetPayerEmail(_payerEmail string) error { + r._payerEmail = _payerEmail + r.Set("payer_email", _payerEmail) + return nil +} + +// PayerEmail Getter +func (r AlibabaEinvoiceBillForwordCreateAPIRequest) GetPayerEmail() string { + return r._payerEmail +} +// PayerName Setter +// 付款方发票抬头 +func (r *AlibabaEinvoiceBillForwordCreateAPIRequest) SetPayerName(_payerName string) error { + r._payerName = _payerName + r.Set("payer_name", _payerName) + return nil +} + +// PayerName Getter +func (r AlibabaEinvoiceBillForwordCreateAPIRequest) GetPayerName() string { + return r._payerName +} +// PayerPhone Setter +// 企业电话 +func (r *AlibabaEinvoiceBillForwordCreateAPIRequest) SetPayerPhone(_payerPhone string) error { + r._payerPhone = _payerPhone + r.Set("payer_phone", _payerPhone) + return nil +} + +// PayerPhone Getter +func (r AlibabaEinvoiceBillForwordCreateAPIRequest) GetPayerPhone() string { + return r._payerPhone +} +// PayerRegisterNo Setter +// 付款方税号 +func (r *AlibabaEinvoiceBillForwordCreateAPIRequest) SetPayerRegisterNo(_payerRegisterNo string) error { + r._payerRegisterNo = _payerRegisterNo + r.Set("payer_register_no", _payerRegisterNo) + return nil +} + +// PayerRegisterNo Getter +func (r AlibabaEinvoiceBillForwordCreateAPIRequest) GetPayerRegisterNo() string { + return r._payerRegisterNo +} +// PhoneNumber Setter +// 个人电话,接收发票通知 +func (r *AlibabaEinvoiceBillForwordCreateAPIRequest) SetPhoneNumber(_phoneNumber string) error { + r._phoneNumber = _phoneNumber + r.Set("phone_number", _phoneNumber) + return nil +} + +// PhoneNumber Getter +func (r AlibabaEinvoiceBillForwordCreateAPIRequest) GetPhoneNumber() string { + return r._phoneNumber +} +// BusinessType Setter +// 企业或个人抬头发票,0=个人,1=企业。默认=1 +func (r *AlibabaEinvoiceBillForwordCreateAPIRequest) SetBusinessType(_businessType int64) error { + r._businessType = _businessType + r.Set("business_type", _businessType) + return nil +} + +// BusinessType Getter +func (r AlibabaEinvoiceBillForwordCreateAPIRequest) GetBusinessType() int64 { + return r._businessType +} diff --git a/model/einvoice/AlibabaEinvoiceBillForwordCreateAPIResponse.go b/model/einvoice/AlibabaEinvoiceBillForwordCreateAPIResponse.go new file mode 100644 index 0000000000..b4215a62df --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceBillForwordCreateAPIResponse.go @@ -0,0 +1,31 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +扫码开票结算单同步前开发票 API返回值 +alibaba.einvoice.bill.forword.create + +扫码开票结算单同步前开发票,会将数据同步到结算单中 +*/ +type AlibabaEinvoiceBillForwordCreateAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceBillForwordCreateAPIResponseModel +} + +// 扫码开票结算单同步前开发票 成功返回结果 +type AlibabaEinvoiceBillForwordCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_bill_forword_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // errorCode + RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // errorMessage + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // result + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceBillForwordCreateResponse.go b/model/einvoice/AlibabaEinvoiceBillForwordCreateResponse.go deleted file mode 100644 index 55058d5aa8..0000000000 --- a/model/einvoice/AlibabaEinvoiceBillForwordCreateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -扫码开票结算单同步前开发票 API返回值 -alibaba.einvoice.bill.forword.create - -扫码开票结算单同步前开发票,会将数据同步到结算单中 -*/ -type AlibabaEinvoiceBillForwordCreateAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceBillForwordCreateResponse -} - -// 扫码开票结算单同步前开发票 成功返回结果 -type AlibabaEinvoiceBillForwordCreateResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_bill_forword_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // errorCode - RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // errorMessage - ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` - // result - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceBillSyncAPIRequest.go b/model/einvoice/AlibabaEinvoiceBillSyncAPIRequest.go new file mode 100644 index 0000000000..e85e085541 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceBillSyncAPIRequest.go @@ -0,0 +1,206 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +结算单同步 API请求 +alibaba.einvoice.bill.sync + +电子发票业务,服务商同步结算单,包括结算单的增删改功能。最终用于开发票 +*/ +type AlibabaEinvoiceBillSyncAPIRequest struct { + model.Params + // 结算商品单明细列表 + _invoiceItems []BillItemDo + // 结算单同步操作:=1插入,=2更新,=3废弃删除 + _status int64 + // 结算单订单日期 + _orderDate string + // 店铺名称,与后台店铺名称保持一致 + _shopName string + // 税务登记证号 + _payeeRegisterNo string + // 结算单订单ID + _orderId string + // 结算单总价格,小数点后2两位 + _sumPrice string + // 调用平台,用于区分同一个税号下多个店铺来源["TB:淘宝","ALIPAY:支付宝","TM:天猫","JD:京东","DD:当当","PP:拍拍","YX:易讯","EBAY:ebay","QQ:QQ网购","AMAZON:亚马逊","SN:苏宁","GM:国美","WPH:唯品会","JM:聚美","LF:乐蜂","MGJ:蘑菇街","JS:聚尚","PX:拍鞋","YT:银泰","YHD:1号店","VANCL:凡客","YL:邮乐","YG:优购","1688:阿里巴巴","POS:POS门店","ELEME:饿了么","OTHER:其他"] + _platform string + // 生成二维码参数,若不需要生成二维码,则不填 + _qrcode *QrCodeDo + // 品牌名称,不填默认=shop_name + _brandName string + // 结算单可开票总金额(不填=sumPrice),小数点后2两位 + _invoicePrice string + // 开票店铺的平台,默认等于platform + _shopPlatform string +} + +// 初始化AlibabaEinvoiceBillSyncAPIRequest对象 +func NewAlibabaEinvoiceBillSyncRequest() *AlibabaEinvoiceBillSyncAPIRequest{ + return &AlibabaEinvoiceBillSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceBillSyncAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.bill.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceBillSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InvoiceItems Setter +// 结算商品单明细列表 +func (r *AlibabaEinvoiceBillSyncAPIRequest) SetInvoiceItems(_invoiceItems []BillItemDo) error { + r._invoiceItems = _invoiceItems + r.Set("invoice_items", _invoiceItems) + return nil +} + +// InvoiceItems Getter +func (r AlibabaEinvoiceBillSyncAPIRequest) GetInvoiceItems() []BillItemDo { + return r._invoiceItems +} +// Status Setter +// 结算单同步操作:=1插入,=2更新,=3废弃删除 +func (r *AlibabaEinvoiceBillSyncAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaEinvoiceBillSyncAPIRequest) GetStatus() int64 { + return r._status +} +// OrderDate Setter +// 结算单订单日期 +func (r *AlibabaEinvoiceBillSyncAPIRequest) SetOrderDate(_orderDate string) error { + r._orderDate = _orderDate + r.Set("order_date", _orderDate) + return nil +} + +// OrderDate Getter +func (r AlibabaEinvoiceBillSyncAPIRequest) GetOrderDate() string { + return r._orderDate +} +// ShopName Setter +// 店铺名称,与后台店铺名称保持一致 +func (r *AlibabaEinvoiceBillSyncAPIRequest) SetShopName(_shopName string) error { + r._shopName = _shopName + r.Set("shop_name", _shopName) + return nil +} + +// ShopName Getter +func (r AlibabaEinvoiceBillSyncAPIRequest) GetShopName() string { + return r._shopName +} +// PayeeRegisterNo Setter +// 税务登记证号 +func (r *AlibabaEinvoiceBillSyncAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceBillSyncAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// OrderId Setter +// 结算单订单ID +func (r *AlibabaEinvoiceBillSyncAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaEinvoiceBillSyncAPIRequest) GetOrderId() string { + return r._orderId +} +// SumPrice Setter +// 结算单总价格,小数点后2两位 +func (r *AlibabaEinvoiceBillSyncAPIRequest) SetSumPrice(_sumPrice string) error { + r._sumPrice = _sumPrice + r.Set("sum_price", _sumPrice) + return nil +} + +// SumPrice Getter +func (r AlibabaEinvoiceBillSyncAPIRequest) GetSumPrice() string { + return r._sumPrice +} +// Platform Setter +// 调用平台,用于区分同一个税号下多个店铺来源["TB:淘宝","ALIPAY:支付宝","TM:天猫","JD:京东","DD:当当","PP:拍拍","YX:易讯","EBAY:ebay","QQ:QQ网购","AMAZON:亚马逊","SN:苏宁","GM:国美","WPH:唯品会","JM:聚美","LF:乐蜂","MGJ:蘑菇街","JS:聚尚","PX:拍鞋","YT:银泰","YHD:1号店","VANCL:凡客","YL:邮乐","YG:优购","1688:阿里巴巴","POS:POS门店","ELEME:饿了么","OTHER:其他"] +func (r *AlibabaEinvoiceBillSyncAPIRequest) SetPlatform(_platform string) error { + r._platform = _platform + r.Set("platform", _platform) + return nil +} + +// Platform Getter +func (r AlibabaEinvoiceBillSyncAPIRequest) GetPlatform() string { + return r._platform +} +// Qrcode Setter +// 生成二维码参数,若不需要生成二维码,则不填 +func (r *AlibabaEinvoiceBillSyncAPIRequest) SetQrcode(_qrcode *QrCodeDo) error { + r._qrcode = _qrcode + r.Set("qrcode", _qrcode) + return nil +} + +// Qrcode Getter +func (r AlibabaEinvoiceBillSyncAPIRequest) GetQrcode() *QrCodeDo { + return r._qrcode +} +// BrandName Setter +// 品牌名称,不填默认=shop_name +func (r *AlibabaEinvoiceBillSyncAPIRequest) SetBrandName(_brandName string) error { + r._brandName = _brandName + r.Set("brand_name", _brandName) + return nil +} + +// BrandName Getter +func (r AlibabaEinvoiceBillSyncAPIRequest) GetBrandName() string { + return r._brandName +} +// InvoicePrice Setter +// 结算单可开票总金额(不填=sumPrice),小数点后2两位 +func (r *AlibabaEinvoiceBillSyncAPIRequest) SetInvoicePrice(_invoicePrice string) error { + r._invoicePrice = _invoicePrice + r.Set("invoice_price", _invoicePrice) + return nil +} + +// InvoicePrice Getter +func (r AlibabaEinvoiceBillSyncAPIRequest) GetInvoicePrice() string { + return r._invoicePrice +} +// ShopPlatform Setter +// 开票店铺的平台,默认等于platform +func (r *AlibabaEinvoiceBillSyncAPIRequest) SetShopPlatform(_shopPlatform string) error { + r._shopPlatform = _shopPlatform + r.Set("shop_platform", _shopPlatform) + return nil +} + +// ShopPlatform Getter +func (r AlibabaEinvoiceBillSyncAPIRequest) GetShopPlatform() string { + return r._shopPlatform +} diff --git a/model/einvoice/AlibabaEinvoiceBillSyncAPIResponse.go b/model/einvoice/AlibabaEinvoiceBillSyncAPIResponse.go new file mode 100644 index 0000000000..0444273b27 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceBillSyncAPIResponse.go @@ -0,0 +1,33 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +结算单同步 API返回值 +alibaba.einvoice.bill.sync + +电子发票业务,服务商同步结算单,包括结算单的增删改功能。最终用于开发票 +*/ +type AlibabaEinvoiceBillSyncAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceBillSyncAPIResponseModel +} + +// 结算单同步 成功返回结果 +type AlibabaEinvoiceBillSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_bill_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 插入操作返回二维码 + Result string `json:"result,omitempty" xml:"result,omitempty"` + // 返回码 + RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // success + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceBillSyncResponse.go b/model/einvoice/AlibabaEinvoiceBillSyncResponse.go deleted file mode 100644 index 3726efe204..0000000000 --- a/model/einvoice/AlibabaEinvoiceBillSyncResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -结算单同步 API返回值 -alibaba.einvoice.bill.sync - -电子发票业务,服务商同步结算单,包括结算单的增删改功能。最终用于开发票 -*/ -type AlibabaEinvoiceBillSyncAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceBillSyncResponse -} - -// 结算单同步 成功返回结果 -type AlibabaEinvoiceBillSyncResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_bill_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` - // 插入操作返回二维码 - Result string `json:"result,omitempty" xml:"result,omitempty"` - // 返回码 - RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // success - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceClosereqAPIRequest.go b/model/einvoice/AlibabaEinvoiceClosereqAPIRequest.go new file mode 100644 index 0000000000..c9e86c4fc6 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceClosereqAPIRequest.go @@ -0,0 +1,66 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +关闭开票失败请求(失败列表可重试) API请求 +alibaba.einvoice.closereq + +关闭失败开票请求,避免造成重复开票 +*/ +type AlibabaEinvoiceClosereqAPIRequest struct { + model.Params + // 流水号 + _serialNo string + // 税号 + _payeeRegisterNo string +} + +// 初始化AlibabaEinvoiceClosereqAPIRequest对象 +func NewAlibabaEinvoiceClosereqRequest() *AlibabaEinvoiceClosereqAPIRequest{ + return &AlibabaEinvoiceClosereqAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceClosereqAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.closereq" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceClosereqAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SerialNo Setter +// 流水号 +func (r *AlibabaEinvoiceClosereqAPIRequest) SetSerialNo(_serialNo string) error { + r._serialNo = _serialNo + r.Set("serial_no", _serialNo) + return nil +} + +// SerialNo Getter +func (r AlibabaEinvoiceClosereqAPIRequest) GetSerialNo() string { + return r._serialNo +} +// PayeeRegisterNo Setter +// 税号 +func (r *AlibabaEinvoiceClosereqAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceClosereqAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} diff --git a/model/einvoice/AlibabaEinvoiceClosereqAPIResponse.go b/model/einvoice/AlibabaEinvoiceClosereqAPIResponse.go new file mode 100644 index 0000000000..209b9cdbe0 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceClosereqAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +关闭开票失败请求(失败列表可重试) API返回值 +alibaba.einvoice.closereq + +关闭失败开票请求,避免造成重复开票 +*/ +type AlibabaEinvoiceClosereqAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceClosereqAPIResponseModel +} + +// 关闭开票失败请求(失败列表可重试) 成功返回结果 +type AlibabaEinvoiceClosereqAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_closereq_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 关闭是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceClosereqResponse.go b/model/einvoice/AlibabaEinvoiceClosereqResponse.go deleted file mode 100644 index 6d23630417..0000000000 --- a/model/einvoice/AlibabaEinvoiceClosereqResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -关闭开票失败请求(失败列表可重试) API返回值 -alibaba.einvoice.closereq - -关闭失败开票请求,避免造成重复开票 -*/ -type AlibabaEinvoiceClosereqAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceClosereqResponse -} - -// 关闭开票失败请求(失败列表可重试) 成功返回结果 -type AlibabaEinvoiceClosereqResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_closereq_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 关闭是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceCoreInvUploadAPIRequest.go b/model/einvoice/AlibabaEinvoiceCoreInvUploadAPIRequest.go new file mode 100644 index 0000000000..841b83ead8 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceCoreInvUploadAPIRequest.go @@ -0,0 +1,712 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发票中台-发票结果回传 API请求 +alibaba.einvoice.core.inv.upload + +发票回传接口适用于以下场景: +① 阿里发票平台向ISV提交原始发票申请,ISV开具发票成功后,基于申请ID(apply_id)回传发票至阿里发票平台进行归集与交付。 +② 直接回传发票给阿里发票平台,进行归集,并交付给业务前台和用户。 +*/ +type AlibabaEinvoiceCoreInvUploadAPIRequest struct { + model.Params + // 合计税额,格式为2位小数。 当开红票时,该字段为负数 + _sumTax string + // 销方联系电话。 + _payeePhone string + // 业务平台发票申请对应的订单号。 用于source=upload时区分业务平台订单号。 source=apply时可空 + _platformTid string + // 合计金额(不含税),格式为2位小数。 当开红票时,该字段为负数 + _sumPrice string + // 合计含税金额(开票金额),格式为2位小数。 当开红票时,该字段为负数。 + _invoiceAmount string + // 发票来源,可选值: apply: 间连模式,服务商基于申请开具的发票;async:直连开票模式,ISV回传开票结果;upload:直接回传,进行归集与交付的发票; + _source string + // 发票板式文件类型。可选值: PDF, OFD。 电票时必传。 + _invoiceFileType string + // 收款人 + _payeeReceiver string + // 红字通知单号 + _redNoticeNo string + // 销方税务登记证号。由大写字母或数字组成,长度要求15~20位。 + _payeeRegisterNo string + // 购方手机号码,用于收票 + _receiveMobile string + // 发票申请ID, 由阿里发票平台生成。 source=apply时 必填。 + _applyId string + // 销方名称 + _payeeName string + // 二维码 + _qrCode string + // 征税方式,0普通征收,1减按征收,2差额征收 + _levyType string + // 发票(开票)类型,可选值: blue: 蓝票 red: 红票 + _invoiceType string + // 购方抬头 + _payerName string + // 发票号码 + _invoiceNo string + // 发票备注,会显示在票面 + _invoiceMemo string + // 购方电子邮箱,需满足邮箱格式。 格式要求:\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)* + _payerEmail string + // 发票防伪码/密码 + _antiFakeCode string + // 购方银行账号, 专票必填。 + _payerBankAccountId string + // 购方开户行名称, 专票必填。 + _payerBankName string + // 销方银行账号 + _payeeBankAccountId string + // 复核人 + _payeeChecker string + // 购方联系电话, 专票必填。 + _payerPhone string + // 原发票代码(开红票时必须) + _normalInvoiceCode string + // 开票分机号/机器编号 + _deviceNo string + // 开票日期,格式 yyyy-MM-dd + _invoiceDate string + // 发票代码 + _invoiceCode string + // 校验码 + _checkCode string + // 销方地址。 + _payeeAddress string + // 原发票号码(开红票时必须) + _normalInvoiceNo string + // 购方地址, 专票必填。 + _payerAddress string + // 销方开户行名称。 + _payeeBankName string + // 发票明细。source=apply时必填,其他source可为空 + _invoiceItems []InvoiceResultItemDto + // 开票人 + _payeeOperator string + // 发票板式文件数据,字节数据。 电票时必传。 + _invoiceFileData *model.File + // 购方税务登记证号,由大写字母或数字组成,长度要求15~20位。 开企业抬头时必填, 专票必填。 + _payerRegisterNo string + // 开票发票类型 可选值: 0: 电票 1:纸质普票 2:纸质专票 + _invoiceKind int64 + // 抬头类型。可选值: 0:个人 1:企业 + _businessType int64 + // 特殊票种标识,可选值: 02: 农产品收购票 + _specialFlag string + // 业务平台Code, 由发票中台分配。 用于source=upload时标识需交付发票的业务平台。 source=apply时可空 + _platformCode string + // 业务平台uid + _platformUserId string + // 开票失败错误信息, 开票失败(create_result=fail)时必填。 + _bizErrorMsg string + // 开票失败错误码, 开票失败(create_result=fail)时必填。 + _bizErrorCode string + // 开票结果,枚举值: success: 发票开具成功; fail: 开票失败; source=async时必填,传实际的开票结果。其他source可不传,默认为success + _createResult string + // 开票流水号/序列号,唯一标志一笔开票请求,由于阿里发票中台生成。 source=async时必填,其他source可为空 + _serialNo string +} + +// 初始化AlibabaEinvoiceCoreInvUploadAPIRequest对象 +func NewAlibabaEinvoiceCoreInvUploadRequest() *AlibabaEinvoiceCoreInvUploadAPIRequest{ + return &AlibabaEinvoiceCoreInvUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.core.inv.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SumTax Setter +// 合计税额,格式为2位小数。 当开红票时,该字段为负数 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetSumTax(_sumTax string) error { + r._sumTax = _sumTax + r.Set("sum_tax", _sumTax) + return nil +} + +// SumTax Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetSumTax() string { + return r._sumTax +} +// PayeePhone Setter +// 销方联系电话。 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetPayeePhone(_payeePhone string) error { + r._payeePhone = _payeePhone + r.Set("payee_phone", _payeePhone) + return nil +} + +// PayeePhone Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetPayeePhone() string { + return r._payeePhone +} +// PlatformTid Setter +// 业务平台发票申请对应的订单号。 用于source=upload时区分业务平台订单号。 source=apply时可空 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetPlatformTid(_platformTid string) error { + r._platformTid = _platformTid + r.Set("platform_tid", _platformTid) + return nil +} + +// PlatformTid Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetPlatformTid() string { + return r._platformTid +} +// SumPrice Setter +// 合计金额(不含税),格式为2位小数。 当开红票时,该字段为负数 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetSumPrice(_sumPrice string) error { + r._sumPrice = _sumPrice + r.Set("sum_price", _sumPrice) + return nil +} + +// SumPrice Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetSumPrice() string { + return r._sumPrice +} +// InvoiceAmount Setter +// 合计含税金额(开票金额),格式为2位小数。 当开红票时,该字段为负数。 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetInvoiceAmount(_invoiceAmount string) error { + r._invoiceAmount = _invoiceAmount + r.Set("invoice_amount", _invoiceAmount) + return nil +} + +// InvoiceAmount Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetInvoiceAmount() string { + return r._invoiceAmount +} +// Source Setter +// 发票来源,可选值: apply: 间连模式,服务商基于申请开具的发票;async:直连开票模式,ISV回传开票结果;upload:直接回传,进行归集与交付的发票; +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetSource() string { + return r._source +} +// InvoiceFileType Setter +// 发票板式文件类型。可选值: PDF, OFD。 电票时必传。 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetInvoiceFileType(_invoiceFileType string) error { + r._invoiceFileType = _invoiceFileType + r.Set("invoice_file_type", _invoiceFileType) + return nil +} + +// InvoiceFileType Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetInvoiceFileType() string { + return r._invoiceFileType +} +// PayeeReceiver Setter +// 收款人 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetPayeeReceiver(_payeeReceiver string) error { + r._payeeReceiver = _payeeReceiver + r.Set("payee_receiver", _payeeReceiver) + return nil +} + +// PayeeReceiver Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetPayeeReceiver() string { + return r._payeeReceiver +} +// RedNoticeNo Setter +// 红字通知单号 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetRedNoticeNo(_redNoticeNo string) error { + r._redNoticeNo = _redNoticeNo + r.Set("red_notice_no", _redNoticeNo) + return nil +} + +// RedNoticeNo Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetRedNoticeNo() string { + return r._redNoticeNo +} +// PayeeRegisterNo Setter +// 销方税务登记证号。由大写字母或数字组成,长度要求15~20位。 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// ReceiveMobile Setter +// 购方手机号码,用于收票 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetReceiveMobile(_receiveMobile string) error { + r._receiveMobile = _receiveMobile + r.Set("receive_mobile", _receiveMobile) + return nil +} + +// ReceiveMobile Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetReceiveMobile() string { + return r._receiveMobile +} +// ApplyId Setter +// 发票申请ID, 由阿里发票平台生成。 source=apply时 必填。 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetApplyId(_applyId string) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetApplyId() string { + return r._applyId +} +// PayeeName Setter +// 销方名称 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetPayeeName(_payeeName string) error { + r._payeeName = _payeeName + r.Set("payee_name", _payeeName) + return nil +} + +// PayeeName Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetPayeeName() string { + return r._payeeName +} +// QrCode Setter +// 二维码 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetQrCode(_qrCode string) error { + r._qrCode = _qrCode + r.Set("qr_code", _qrCode) + return nil +} + +// QrCode Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetQrCode() string { + return r._qrCode +} +// LevyType Setter +// 征税方式,0普通征收,1减按征收,2差额征收 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetLevyType(_levyType string) error { + r._levyType = _levyType + r.Set("levy_type", _levyType) + return nil +} + +// LevyType Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetLevyType() string { + return r._levyType +} +// InvoiceType Setter +// 发票(开票)类型,可选值: blue: 蓝票 red: 红票 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetInvoiceType(_invoiceType string) error { + r._invoiceType = _invoiceType + r.Set("invoice_type", _invoiceType) + return nil +} + +// InvoiceType Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetInvoiceType() string { + return r._invoiceType +} +// PayerName Setter +// 购方抬头 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetPayerName(_payerName string) error { + r._payerName = _payerName + r.Set("payer_name", _payerName) + return nil +} + +// PayerName Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetPayerName() string { + return r._payerName +} +// InvoiceNo Setter +// 发票号码 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetInvoiceNo(_invoiceNo string) error { + r._invoiceNo = _invoiceNo + r.Set("invoice_no", _invoiceNo) + return nil +} + +// InvoiceNo Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetInvoiceNo() string { + return r._invoiceNo +} +// InvoiceMemo Setter +// 发票备注,会显示在票面 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetInvoiceMemo(_invoiceMemo string) error { + r._invoiceMemo = _invoiceMemo + r.Set("invoice_memo", _invoiceMemo) + return nil +} + +// InvoiceMemo Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetInvoiceMemo() string { + return r._invoiceMemo +} +// PayerEmail Setter +// 购方电子邮箱,需满足邮箱格式。 格式要求:\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)* +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetPayerEmail(_payerEmail string) error { + r._payerEmail = _payerEmail + r.Set("payer_email", _payerEmail) + return nil +} + +// PayerEmail Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetPayerEmail() string { + return r._payerEmail +} +// AntiFakeCode Setter +// 发票防伪码/密码 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetAntiFakeCode(_antiFakeCode string) error { + r._antiFakeCode = _antiFakeCode + r.Set("anti_fake_code", _antiFakeCode) + return nil +} + +// AntiFakeCode Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetAntiFakeCode() string { + return r._antiFakeCode +} +// PayerBankAccountId Setter +// 购方银行账号, 专票必填。 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetPayerBankAccountId(_payerBankAccountId string) error { + r._payerBankAccountId = _payerBankAccountId + r.Set("payer_bank_account_id", _payerBankAccountId) + return nil +} + +// PayerBankAccountId Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetPayerBankAccountId() string { + return r._payerBankAccountId +} +// PayerBankName Setter +// 购方开户行名称, 专票必填。 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetPayerBankName(_payerBankName string) error { + r._payerBankName = _payerBankName + r.Set("payer_bank_name", _payerBankName) + return nil +} + +// PayerBankName Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetPayerBankName() string { + return r._payerBankName +} +// PayeeBankAccountId Setter +// 销方银行账号 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetPayeeBankAccountId(_payeeBankAccountId string) error { + r._payeeBankAccountId = _payeeBankAccountId + r.Set("payee_bank_account_id", _payeeBankAccountId) + return nil +} + +// PayeeBankAccountId Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetPayeeBankAccountId() string { + return r._payeeBankAccountId +} +// PayeeChecker Setter +// 复核人 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetPayeeChecker(_payeeChecker string) error { + r._payeeChecker = _payeeChecker + r.Set("payee_checker", _payeeChecker) + return nil +} + +// PayeeChecker Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetPayeeChecker() string { + return r._payeeChecker +} +// PayerPhone Setter +// 购方联系电话, 专票必填。 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetPayerPhone(_payerPhone string) error { + r._payerPhone = _payerPhone + r.Set("payer_phone", _payerPhone) + return nil +} + +// PayerPhone Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetPayerPhone() string { + return r._payerPhone +} +// NormalInvoiceCode Setter +// 原发票代码(开红票时必须) +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetNormalInvoiceCode(_normalInvoiceCode string) error { + r._normalInvoiceCode = _normalInvoiceCode + r.Set("normal_invoice_code", _normalInvoiceCode) + return nil +} + +// NormalInvoiceCode Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetNormalInvoiceCode() string { + return r._normalInvoiceCode +} +// DeviceNo Setter +// 开票分机号/机器编号 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetDeviceNo(_deviceNo string) error { + r._deviceNo = _deviceNo + r.Set("device_no", _deviceNo) + return nil +} + +// DeviceNo Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetDeviceNo() string { + return r._deviceNo +} +// InvoiceDate Setter +// 开票日期,格式 yyyy-MM-dd +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetInvoiceDate(_invoiceDate string) error { + r._invoiceDate = _invoiceDate + r.Set("invoice_date", _invoiceDate) + return nil +} + +// InvoiceDate Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetInvoiceDate() string { + return r._invoiceDate +} +// InvoiceCode Setter +// 发票代码 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetInvoiceCode(_invoiceCode string) error { + r._invoiceCode = _invoiceCode + r.Set("invoice_code", _invoiceCode) + return nil +} + +// InvoiceCode Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetInvoiceCode() string { + return r._invoiceCode +} +// CheckCode Setter +// 校验码 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetCheckCode(_checkCode string) error { + r._checkCode = _checkCode + r.Set("check_code", _checkCode) + return nil +} + +// CheckCode Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetCheckCode() string { + return r._checkCode +} +// PayeeAddress Setter +// 销方地址。 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetPayeeAddress(_payeeAddress string) error { + r._payeeAddress = _payeeAddress + r.Set("payee_address", _payeeAddress) + return nil +} + +// PayeeAddress Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetPayeeAddress() string { + return r._payeeAddress +} +// NormalInvoiceNo Setter +// 原发票号码(开红票时必须) +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetNormalInvoiceNo(_normalInvoiceNo string) error { + r._normalInvoiceNo = _normalInvoiceNo + r.Set("normal_invoice_no", _normalInvoiceNo) + return nil +} + +// NormalInvoiceNo Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetNormalInvoiceNo() string { + return r._normalInvoiceNo +} +// PayerAddress Setter +// 购方地址, 专票必填。 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetPayerAddress(_payerAddress string) error { + r._payerAddress = _payerAddress + r.Set("payer_address", _payerAddress) + return nil +} + +// PayerAddress Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetPayerAddress() string { + return r._payerAddress +} +// PayeeBankName Setter +// 销方开户行名称。 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetPayeeBankName(_payeeBankName string) error { + r._payeeBankName = _payeeBankName + r.Set("payee_bank_name", _payeeBankName) + return nil +} + +// PayeeBankName Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetPayeeBankName() string { + return r._payeeBankName +} +// InvoiceItems Setter +// 发票明细。source=apply时必填,其他source可为空 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetInvoiceItems(_invoiceItems []InvoiceResultItemDto) error { + r._invoiceItems = _invoiceItems + r.Set("invoice_items", _invoiceItems) + return nil +} + +// InvoiceItems Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetInvoiceItems() []InvoiceResultItemDto { + return r._invoiceItems +} +// PayeeOperator Setter +// 开票人 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetPayeeOperator(_payeeOperator string) error { + r._payeeOperator = _payeeOperator + r.Set("payee_operator", _payeeOperator) + return nil +} + +// PayeeOperator Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetPayeeOperator() string { + return r._payeeOperator +} +// InvoiceFileData Setter +// 发票板式文件数据,字节数据。 电票时必传。 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetInvoiceFileData(_invoiceFileData *model.File) error { + r._invoiceFileData = _invoiceFileData + r.Set("invoice_file_data", _invoiceFileData) + return nil +} + +// InvoiceFileData Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetInvoiceFileData() *model.File { + return r._invoiceFileData +} +// PayerRegisterNo Setter +// 购方税务登记证号,由大写字母或数字组成,长度要求15~20位。 开企业抬头时必填, 专票必填。 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetPayerRegisterNo(_payerRegisterNo string) error { + r._payerRegisterNo = _payerRegisterNo + r.Set("payer_register_no", _payerRegisterNo) + return nil +} + +// PayerRegisterNo Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetPayerRegisterNo() string { + return r._payerRegisterNo +} +// InvoiceKind Setter +// 开票发票类型 可选值: 0: 电票 1:纸质普票 2:纸质专票 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetInvoiceKind(_invoiceKind int64) error { + r._invoiceKind = _invoiceKind + r.Set("invoice_kind", _invoiceKind) + return nil +} + +// InvoiceKind Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetInvoiceKind() int64 { + return r._invoiceKind +} +// BusinessType Setter +// 抬头类型。可选值: 0:个人 1:企业 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetBusinessType(_businessType int64) error { + r._businessType = _businessType + r.Set("business_type", _businessType) + return nil +} + +// BusinessType Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetBusinessType() int64 { + return r._businessType +} +// SpecialFlag Setter +// 特殊票种标识,可选值: 02: 农产品收购票 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetSpecialFlag(_specialFlag string) error { + r._specialFlag = _specialFlag + r.Set("special_flag", _specialFlag) + return nil +} + +// SpecialFlag Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetSpecialFlag() string { + return r._specialFlag +} +// PlatformCode Setter +// 业务平台Code, 由发票中台分配。 用于source=upload时标识需交付发票的业务平台。 source=apply时可空 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetPlatformCode(_platformCode string) error { + r._platformCode = _platformCode + r.Set("platform_code", _platformCode) + return nil +} + +// PlatformCode Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetPlatformCode() string { + return r._platformCode +} +// PlatformUserId Setter +// 业务平台uid +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetPlatformUserId(_platformUserId string) error { + r._platformUserId = _platformUserId + r.Set("platform_user_id", _platformUserId) + return nil +} + +// PlatformUserId Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetPlatformUserId() string { + return r._platformUserId +} +// BizErrorMsg Setter +// 开票失败错误信息, 开票失败(create_result=fail)时必填。 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetBizErrorMsg(_bizErrorMsg string) error { + r._bizErrorMsg = _bizErrorMsg + r.Set("biz_error_msg", _bizErrorMsg) + return nil +} + +// BizErrorMsg Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetBizErrorMsg() string { + return r._bizErrorMsg +} +// BizErrorCode Setter +// 开票失败错误码, 开票失败(create_result=fail)时必填。 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetBizErrorCode(_bizErrorCode string) error { + r._bizErrorCode = _bizErrorCode + r.Set("biz_error_code", _bizErrorCode) + return nil +} + +// BizErrorCode Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetBizErrorCode() string { + return r._bizErrorCode +} +// CreateResult Setter +// 开票结果,枚举值: success: 发票开具成功; fail: 开票失败; source=async时必填,传实际的开票结果。其他source可不传,默认为success +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetCreateResult(_createResult string) error { + r._createResult = _createResult + r.Set("create_result", _createResult) + return nil +} + +// CreateResult Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetCreateResult() string { + return r._createResult +} +// SerialNo Setter +// 开票流水号/序列号,唯一标志一笔开票请求,由于阿里发票中台生成。 source=async时必填,其他source可为空 +func (r *AlibabaEinvoiceCoreInvUploadAPIRequest) SetSerialNo(_serialNo string) error { + r._serialNo = _serialNo + r.Set("serial_no", _serialNo) + return nil +} + +// SerialNo Getter +func (r AlibabaEinvoiceCoreInvUploadAPIRequest) GetSerialNo() string { + return r._serialNo +} diff --git a/model/einvoice/AlibabaEinvoiceCoreInvUploadAPIResponse.go b/model/einvoice/AlibabaEinvoiceCoreInvUploadAPIResponse.go new file mode 100644 index 0000000000..d0f0481e39 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceCoreInvUploadAPIResponse.go @@ -0,0 +1,29 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发票中台-发票结果回传 API返回值 +alibaba.einvoice.core.inv.upload + +发票回传接口适用于以下场景: +① 阿里发票平台向ISV提交原始发票申请,ISV开具发票成功后,基于申请ID(apply_id)回传发票至阿里发票平台进行归集与交付。 +② 直接回传发票给阿里发票平台,进行归集,并交付给业务前台和用户。 +*/ +type AlibabaEinvoiceCoreInvUploadAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceCoreInvUploadAPIResponseModel +} + +// 发票中台-发票结果回传 成功返回结果 +type AlibabaEinvoiceCoreInvUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_core_inv_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceCoreInvUploadResponse.go b/model/einvoice/AlibabaEinvoiceCoreInvUploadResponse.go deleted file mode 100644 index 1e054454fa..0000000000 --- a/model/einvoice/AlibabaEinvoiceCoreInvUploadResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发票中台-发票结果回传 API返回值 -alibaba.einvoice.core.inv.upload - -发票回传接口适用于以下场景: -① 阿里发票平台向ISV提交原始发票申请,ISV开具发票成功后,基于申请ID(apply_id)回传发票至阿里发票平台进行归集与交付。 -② 直接回传发票给阿里发票平台,进行归集,并交付给业务前台和用户。 -*/ -type AlibabaEinvoiceCoreInvUploadAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceCoreInvUploadResponse -} - -// 发票中台-发票结果回传 成功返回结果 -type AlibabaEinvoiceCoreInvUploadResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_core_inv_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceCreateResultGetAPIRequest.go b/model/einvoice/AlibabaEinvoiceCreateResultGetAPIRequest.go new file mode 100644 index 0000000000..001325c6b5 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceCreateResultGetAPIRequest.go @@ -0,0 +1,108 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ERP开票结果获取 API请求 +alibaba.einvoice.create.result.get + +ERP开票结果获取 +*/ +type AlibabaEinvoiceCreateResultGetAPIRequest struct { + model.Params + // 流水号 (serial_no)和(platform_code,platform_tid)必须填写其中一组,serial_no优先级更高 + _serialNo string + // 电商平台代码。淘宝:taobao,天猫:tmall + _platformCode string + // 电商平台对应的订单号 + _platformTid string + // 收款方税务登记证号 + _payeeRegisterNo string + // 外部平台店铺名称,需要在阿里发票平台配置,只有当platform_code不为TB和TM时,这个字段才生效。注意:后台配置的店铺平台必须和入参platform_code一致 + _outShopName string +} + +// 初始化AlibabaEinvoiceCreateResultGetAPIRequest对象 +func NewAlibabaEinvoiceCreateResultGetRequest() *AlibabaEinvoiceCreateResultGetAPIRequest{ + return &AlibabaEinvoiceCreateResultGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceCreateResultGetAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.create.result.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceCreateResultGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SerialNo Setter +// 流水号 (serial_no)和(platform_code,platform_tid)必须填写其中一组,serial_no优先级更高 +func (r *AlibabaEinvoiceCreateResultGetAPIRequest) SetSerialNo(_serialNo string) error { + r._serialNo = _serialNo + r.Set("serial_no", _serialNo) + return nil +} + +// SerialNo Getter +func (r AlibabaEinvoiceCreateResultGetAPIRequest) GetSerialNo() string { + return r._serialNo +} +// PlatformCode Setter +// 电商平台代码。淘宝:taobao,天猫:tmall +func (r *AlibabaEinvoiceCreateResultGetAPIRequest) SetPlatformCode(_platformCode string) error { + r._platformCode = _platformCode + r.Set("platform_code", _platformCode) + return nil +} + +// PlatformCode Getter +func (r AlibabaEinvoiceCreateResultGetAPIRequest) GetPlatformCode() string { + return r._platformCode +} +// PlatformTid Setter +// 电商平台对应的订单号 +func (r *AlibabaEinvoiceCreateResultGetAPIRequest) SetPlatformTid(_platformTid string) error { + r._platformTid = _platformTid + r.Set("platform_tid", _platformTid) + return nil +} + +// PlatformTid Getter +func (r AlibabaEinvoiceCreateResultGetAPIRequest) GetPlatformTid() string { + return r._platformTid +} +// PayeeRegisterNo Setter +// 收款方税务登记证号 +func (r *AlibabaEinvoiceCreateResultGetAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceCreateResultGetAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// OutShopName Setter +// 外部平台店铺名称,需要在阿里发票平台配置,只有当platform_code不为TB和TM时,这个字段才生效。注意:后台配置的店铺平台必须和入参platform_code一致 +func (r *AlibabaEinvoiceCreateResultGetAPIRequest) SetOutShopName(_outShopName string) error { + r._outShopName = _outShopName + r.Set("out_shop_name", _outShopName) + return nil +} + +// OutShopName Getter +func (r AlibabaEinvoiceCreateResultGetAPIRequest) GetOutShopName() string { + return r._outShopName +} diff --git a/model/einvoice/AlibabaEinvoiceCreateResultGetAPIResponse.go b/model/einvoice/AlibabaEinvoiceCreateResultGetAPIResponse.go new file mode 100644 index 0000000000..af2240036f --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceCreateResultGetAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ERP开票结果获取 API返回值 +alibaba.einvoice.create.result.get + +ERP开票结果获取 +*/ +type AlibabaEinvoiceCreateResultGetAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceCreateResultGetAPIResponseModel +} + +// ERP开票结果获取 成功返回结果 +type AlibabaEinvoiceCreateResultGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_create_result_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 开票返回结果数据列表 + InvoiceResultList []InvoiceResult `json:"invoice_result_list,omitempty" xml:"invoice_result_list>invoice_result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceCreateResultGetResponse.go b/model/einvoice/AlibabaEinvoiceCreateResultGetResponse.go deleted file mode 100644 index 7e7c10738d..0000000000 --- a/model/einvoice/AlibabaEinvoiceCreateResultGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ERP开票结果获取 API返回值 -alibaba.einvoice.create.result.get - -ERP开票结果获取 -*/ -type AlibabaEinvoiceCreateResultGetAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceCreateResultGetResponse -} - -// ERP开票结果获取 成功返回结果 -type AlibabaEinvoiceCreateResultGetResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_create_result_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 开票返回结果数据列表 - InvoiceResultList []InvoiceResult `json:"invoice_result_list,omitempty" xml:"invoice_result_list>invoice_result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceCreateResultsIncrementGetAPIRequest.go b/model/einvoice/AlibabaEinvoiceCreateResultsIncrementGetAPIRequest.go new file mode 100644 index 0000000000..ec24741c74 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceCreateResultsIncrementGetAPIRequest.go @@ -0,0 +1,122 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ERP增量开票结果获取 API请求 +alibaba.einvoice.create.results.increment.get + +增量开票结果获取 +*/ +type AlibabaEinvoiceCreateResultsIncrementGetAPIRequest struct { + model.Params + // 开票状态 (waiting = 开票中) 、(create_success = 开票成功)、(create_failed = 开票失败) + _status string + // 起始查询时间 + _startModified string + // 收款方税务登记证号 + _payeeRegisterNo string + // 终止查询时间 + _endModified string + // 页面大小(不能超过200) + _pageSize int64 + // 显示的页码 + _pageNo int64 +} + +// 初始化AlibabaEinvoiceCreateResultsIncrementGetAPIRequest对象 +func NewAlibabaEinvoiceCreateResultsIncrementGetRequest() *AlibabaEinvoiceCreateResultsIncrementGetAPIRequest{ + return &AlibabaEinvoiceCreateResultsIncrementGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceCreateResultsIncrementGetAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.create.results.increment.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceCreateResultsIncrementGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Status Setter +// 开票状态 (waiting = 开票中) 、(create_success = 开票成功)、(create_failed = 开票失败) +func (r *AlibabaEinvoiceCreateResultsIncrementGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaEinvoiceCreateResultsIncrementGetAPIRequest) GetStatus() string { + return r._status +} +// StartModified Setter +// 起始查询时间 +func (r *AlibabaEinvoiceCreateResultsIncrementGetAPIRequest) SetStartModified(_startModified string) error { + r._startModified = _startModified + r.Set("start_modified", _startModified) + return nil +} + +// StartModified Getter +func (r AlibabaEinvoiceCreateResultsIncrementGetAPIRequest) GetStartModified() string { + return r._startModified +} +// PayeeRegisterNo Setter +// 收款方税务登记证号 +func (r *AlibabaEinvoiceCreateResultsIncrementGetAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceCreateResultsIncrementGetAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// EndModified Setter +// 终止查询时间 +func (r *AlibabaEinvoiceCreateResultsIncrementGetAPIRequest) SetEndModified(_endModified string) error { + r._endModified = _endModified + r.Set("end_modified", _endModified) + return nil +} + +// EndModified Getter +func (r AlibabaEinvoiceCreateResultsIncrementGetAPIRequest) GetEndModified() string { + return r._endModified +} +// PageSize Setter +// 页面大小(不能超过200) +func (r *AlibabaEinvoiceCreateResultsIncrementGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaEinvoiceCreateResultsIncrementGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 显示的页码 +func (r *AlibabaEinvoiceCreateResultsIncrementGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r AlibabaEinvoiceCreateResultsIncrementGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/einvoice/AlibabaEinvoiceCreateResultsIncrementGetAPIResponse.go b/model/einvoice/AlibabaEinvoiceCreateResultsIncrementGetAPIResponse.go new file mode 100644 index 0000000000..ac7ccfc9ff --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceCreateResultsIncrementGetAPIResponse.go @@ -0,0 +1,29 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ERP增量开票结果获取 API返回值 +alibaba.einvoice.create.results.increment.get + +增量开票结果获取 +*/ +type AlibabaEinvoiceCreateResultsIncrementGetAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceCreateResultsIncrementGetAPIResponseModel +} + +// ERP增量开票结果获取 成功返回结果 +type AlibabaEinvoiceCreateResultsIncrementGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_create_results_increment_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 开票结果返回列表 + InvoiceResultList []InvoiceResult `json:"invoice_result_list,omitempty" xml:"invoice_result_list>invoice_result,omitempty"` + // 符合条件的开票总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceCreateResultsIncrementGetResponse.go b/model/einvoice/AlibabaEinvoiceCreateResultsIncrementGetResponse.go deleted file mode 100644 index 2dc23e3748..0000000000 --- a/model/einvoice/AlibabaEinvoiceCreateResultsIncrementGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ERP增量开票结果获取 API返回值 -alibaba.einvoice.create.results.increment.get - -增量开票结果获取 -*/ -type AlibabaEinvoiceCreateResultsIncrementGetAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceCreateResultsIncrementGetResponse -} - -// ERP增量开票结果获取 成功返回结果 -type AlibabaEinvoiceCreateResultsIncrementGetResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_create_results_increment_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 开票结果返回列表 - InvoiceResultList []InvoiceResult `json:"invoice_result_list,omitempty" xml:"invoice_result_list>invoice_result,omitempty"` - // 符合条件的开票总数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceCreatereqAPIRequest.go b/model/einvoice/AlibabaEinvoiceCreatereqAPIRequest.go new file mode 100644 index 0000000000..8e5ef44071 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceCreatereqAPIRequest.go @@ -0,0 +1,514 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ERP开票请求接口 API请求 +alibaba.einvoice.createreq + +ERP发起开票请求 +*/ +type AlibabaEinvoiceCreatereqAPIRequest struct { + model.Params + // 默认:0。对于商家对个人开具,为0;对于商家对企业开具,为1; + _businessType int64 + // ERP系统中的单据号。如果没有erp的唯一单据号。建议使用platform_code+”_”+ platform_tid的组合方式 + _erpTid string + // 电商平台代码。TB=淘宝 、TM=天猫 、JD=京东、DD=当当、PP=拍拍、YX=易讯、EBAY=ebay、QQ=QQ网购、AMAZON=亚马逊、SN=苏宁、GM=国美、WPH=唯品会、JM=聚美、LF=乐蜂、MGJ=蘑菇街、JS=聚尚、PX=拍鞋、YT=银泰、YHD=1号店、VANCL=凡客、YL=邮乐、YG=优购、1688=阿里巴巴、POS=POS门店、OTHER=其他, (只传英文编码) + _platformCode string + // 电商平台对应的主订单号 + _platformTid string + // 开票流水号,唯一标志开票请求。如果两次请求流水号相同,则表示重复请求。请调用平台统一流水号获取接口,alibaba.einvoice.serialno.generate。 + _serialNo string + // 开票方地址(新版中为必传) + _payeeAddress string + // 开票方银行及 帐号 + _payeeBankaccount string + // 开票方名称,公司名(如:XX商城) + _payeeName string + // 付款方税务登记证号。对企业开具电子发票时必填。 + _payerRegisterNo string + // 开票人 + _payeeOperator string + // 开票金额; 当开红票时,该字段为负数 + _invoiceAmount string + // 电子发票明细 + _invoiceItems []InvoiceItem + // 发票备注,有些省市会把此信息打印到PDF中 + _invoiceMemo string + // 开票日期, 格式"YYYY-MM-DD HH:SS:MM" + _invoiceTime string + // 发票(开票)类型,蓝票blue,红票red,默认blue + _invoiceType string + // 原发票代码(开红票时传入) + _normalInvoiceCode string + // 原发票号码(开红票时传入) + _normalInvoiceNo string + // 收款方税务登记证号 + _payeeRegisterNo string + // 消费者地址 + _payerAddress string + // 付款方开票开户银行及账号 + _payerBankaccount string + // 消费者电子邮箱 + _payerEmail string + // 付款方名称, 对应发票台头 + _payerName string + // 消费者联系电话 + _payerPhone string + // 合计金额(新版中为必传) 当开红票时,该字段为负数 + _sumPrice string + // 合计税额 当开红票时,该字段为负数 + _sumTax string + // 复核人 + _payeeChecker string + // 收款人 + _payeeReceiver string + // 收款方电话 + _payeePhone string + // 开票申请ID,接收了开票申请消息后,需要把apply_id带上 + _applyId string + // 外部平台店铺名称,需要在阿里发票平台配置,只有当platform_code不为TB和TM时,这个字段才生效。注意:后台配置的店铺平台必须和入参platform_code一致 + _outShopName string + // 发票种类,0=电子发票,1=纸质发票,2=专票。注意:未订购纸票服务的税号无法开具纸票 + _invoiceKind int64 + // 红字通知单号,专票冲红时需要,商家跟税局申请 + _redNoticeNo string + // 开票角色,supplier=供应商,只有platform_code=TB|TM时生效,供应商开票时允许使用A店铺开具B店铺的订单号 + _requestRole string + // 分销订单号,request_role=supplier供应商开票时必填,分销订单号必须属于platform_tid,同时分销订单号的供应商必须和开票的授权账号一致 + _distributionTid string +} + +// 初始化AlibabaEinvoiceCreatereqAPIRequest对象 +func NewAlibabaEinvoiceCreatereqRequest() *AlibabaEinvoiceCreatereqAPIRequest{ + return &AlibabaEinvoiceCreatereqAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceCreatereqAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.createreq" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceCreatereqAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BusinessType Setter +// 默认:0。对于商家对个人开具,为0;对于商家对企业开具,为1; +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetBusinessType(_businessType int64) error { + r._businessType = _businessType + r.Set("business_type", _businessType) + return nil +} + +// BusinessType Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetBusinessType() int64 { + return r._businessType +} +// ErpTid Setter +// ERP系统中的单据号。如果没有erp的唯一单据号。建议使用platform_code+”_”+ platform_tid的组合方式 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetErpTid(_erpTid string) error { + r._erpTid = _erpTid + r.Set("erp_tid", _erpTid) + return nil +} + +// ErpTid Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetErpTid() string { + return r._erpTid +} +// PlatformCode Setter +// 电商平台代码。TB=淘宝 、TM=天猫 、JD=京东、DD=当当、PP=拍拍、YX=易讯、EBAY=ebay、QQ=QQ网购、AMAZON=亚马逊、SN=苏宁、GM=国美、WPH=唯品会、JM=聚美、LF=乐蜂、MGJ=蘑菇街、JS=聚尚、PX=拍鞋、YT=银泰、YHD=1号店、VANCL=凡客、YL=邮乐、YG=优购、1688=阿里巴巴、POS=POS门店、OTHER=其他, (只传英文编码) +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetPlatformCode(_platformCode string) error { + r._platformCode = _platformCode + r.Set("platform_code", _platformCode) + return nil +} + +// PlatformCode Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetPlatformCode() string { + return r._platformCode +} +// PlatformTid Setter +// 电商平台对应的主订单号 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetPlatformTid(_platformTid string) error { + r._platformTid = _platformTid + r.Set("platform_tid", _platformTid) + return nil +} + +// PlatformTid Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetPlatformTid() string { + return r._platformTid +} +// SerialNo Setter +// 开票流水号,唯一标志开票请求。如果两次请求流水号相同,则表示重复请求。请调用平台统一流水号获取接口,alibaba.einvoice.serialno.generate。 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetSerialNo(_serialNo string) error { + r._serialNo = _serialNo + r.Set("serial_no", _serialNo) + return nil +} + +// SerialNo Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetSerialNo() string { + return r._serialNo +} +// PayeeAddress Setter +// 开票方地址(新版中为必传) +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetPayeeAddress(_payeeAddress string) error { + r._payeeAddress = _payeeAddress + r.Set("payee_address", _payeeAddress) + return nil +} + +// PayeeAddress Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetPayeeAddress() string { + return r._payeeAddress +} +// PayeeBankaccount Setter +// 开票方银行及 帐号 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetPayeeBankaccount(_payeeBankaccount string) error { + r._payeeBankaccount = _payeeBankaccount + r.Set("payee_bankaccount", _payeeBankaccount) + return nil +} + +// PayeeBankaccount Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetPayeeBankaccount() string { + return r._payeeBankaccount +} +// PayeeName Setter +// 开票方名称,公司名(如:XX商城) +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetPayeeName(_payeeName string) error { + r._payeeName = _payeeName + r.Set("payee_name", _payeeName) + return nil +} + +// PayeeName Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetPayeeName() string { + return r._payeeName +} +// PayerRegisterNo Setter +// 付款方税务登记证号。对企业开具电子发票时必填。 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetPayerRegisterNo(_payerRegisterNo string) error { + r._payerRegisterNo = _payerRegisterNo + r.Set("payer_register_no", _payerRegisterNo) + return nil +} + +// PayerRegisterNo Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetPayerRegisterNo() string { + return r._payerRegisterNo +} +// PayeeOperator Setter +// 开票人 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetPayeeOperator(_payeeOperator string) error { + r._payeeOperator = _payeeOperator + r.Set("payee_operator", _payeeOperator) + return nil +} + +// PayeeOperator Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetPayeeOperator() string { + return r._payeeOperator +} +// InvoiceAmount Setter +// 开票金额; 当开红票时,该字段为负数 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetInvoiceAmount(_invoiceAmount string) error { + r._invoiceAmount = _invoiceAmount + r.Set("invoice_amount", _invoiceAmount) + return nil +} + +// InvoiceAmount Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetInvoiceAmount() string { + return r._invoiceAmount +} +// InvoiceItems Setter +// 电子发票明细 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetInvoiceItems(_invoiceItems []InvoiceItem) error { + r._invoiceItems = _invoiceItems + r.Set("invoice_items", _invoiceItems) + return nil +} + +// InvoiceItems Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetInvoiceItems() []InvoiceItem { + return r._invoiceItems +} +// InvoiceMemo Setter +// 发票备注,有些省市会把此信息打印到PDF中 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetInvoiceMemo(_invoiceMemo string) error { + r._invoiceMemo = _invoiceMemo + r.Set("invoice_memo", _invoiceMemo) + return nil +} + +// InvoiceMemo Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetInvoiceMemo() string { + return r._invoiceMemo +} +// InvoiceTime Setter +// 开票日期, 格式"YYYY-MM-DD HH:SS:MM" +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetInvoiceTime(_invoiceTime string) error { + r._invoiceTime = _invoiceTime + r.Set("invoice_time", _invoiceTime) + return nil +} + +// InvoiceTime Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetInvoiceTime() string { + return r._invoiceTime +} +// InvoiceType Setter +// 发票(开票)类型,蓝票blue,红票red,默认blue +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetInvoiceType(_invoiceType string) error { + r._invoiceType = _invoiceType + r.Set("invoice_type", _invoiceType) + return nil +} + +// InvoiceType Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetInvoiceType() string { + return r._invoiceType +} +// NormalInvoiceCode Setter +// 原发票代码(开红票时传入) +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetNormalInvoiceCode(_normalInvoiceCode string) error { + r._normalInvoiceCode = _normalInvoiceCode + r.Set("normal_invoice_code", _normalInvoiceCode) + return nil +} + +// NormalInvoiceCode Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetNormalInvoiceCode() string { + return r._normalInvoiceCode +} +// NormalInvoiceNo Setter +// 原发票号码(开红票时传入) +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetNormalInvoiceNo(_normalInvoiceNo string) error { + r._normalInvoiceNo = _normalInvoiceNo + r.Set("normal_invoice_no", _normalInvoiceNo) + return nil +} + +// NormalInvoiceNo Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetNormalInvoiceNo() string { + return r._normalInvoiceNo +} +// PayeeRegisterNo Setter +// 收款方税务登记证号 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// PayerAddress Setter +// 消费者地址 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetPayerAddress(_payerAddress string) error { + r._payerAddress = _payerAddress + r.Set("payer_address", _payerAddress) + return nil +} + +// PayerAddress Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetPayerAddress() string { + return r._payerAddress +} +// PayerBankaccount Setter +// 付款方开票开户银行及账号 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetPayerBankaccount(_payerBankaccount string) error { + r._payerBankaccount = _payerBankaccount + r.Set("payer_bankaccount", _payerBankaccount) + return nil +} + +// PayerBankaccount Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetPayerBankaccount() string { + return r._payerBankaccount +} +// PayerEmail Setter +// 消费者电子邮箱 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetPayerEmail(_payerEmail string) error { + r._payerEmail = _payerEmail + r.Set("payer_email", _payerEmail) + return nil +} + +// PayerEmail Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetPayerEmail() string { + return r._payerEmail +} +// PayerName Setter +// 付款方名称, 对应发票台头 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetPayerName(_payerName string) error { + r._payerName = _payerName + r.Set("payer_name", _payerName) + return nil +} + +// PayerName Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetPayerName() string { + return r._payerName +} +// PayerPhone Setter +// 消费者联系电话 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetPayerPhone(_payerPhone string) error { + r._payerPhone = _payerPhone + r.Set("payer_phone", _payerPhone) + return nil +} + +// PayerPhone Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetPayerPhone() string { + return r._payerPhone +} +// SumPrice Setter +// 合计金额(新版中为必传) 当开红票时,该字段为负数 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetSumPrice(_sumPrice string) error { + r._sumPrice = _sumPrice + r.Set("sum_price", _sumPrice) + return nil +} + +// SumPrice Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetSumPrice() string { + return r._sumPrice +} +// SumTax Setter +// 合计税额 当开红票时,该字段为负数 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetSumTax(_sumTax string) error { + r._sumTax = _sumTax + r.Set("sum_tax", _sumTax) + return nil +} + +// SumTax Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetSumTax() string { + return r._sumTax +} +// PayeeChecker Setter +// 复核人 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetPayeeChecker(_payeeChecker string) error { + r._payeeChecker = _payeeChecker + r.Set("payee_checker", _payeeChecker) + return nil +} + +// PayeeChecker Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetPayeeChecker() string { + return r._payeeChecker +} +// PayeeReceiver Setter +// 收款人 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetPayeeReceiver(_payeeReceiver string) error { + r._payeeReceiver = _payeeReceiver + r.Set("payee_receiver", _payeeReceiver) + return nil +} + +// PayeeReceiver Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetPayeeReceiver() string { + return r._payeeReceiver +} +// PayeePhone Setter +// 收款方电话 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetPayeePhone(_payeePhone string) error { + r._payeePhone = _payeePhone + r.Set("payee_phone", _payeePhone) + return nil +} + +// PayeePhone Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetPayeePhone() string { + return r._payeePhone +} +// ApplyId Setter +// 开票申请ID,接收了开票申请消息后,需要把apply_id带上 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetApplyId(_applyId string) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetApplyId() string { + return r._applyId +} +// OutShopName Setter +// 外部平台店铺名称,需要在阿里发票平台配置,只有当platform_code不为TB和TM时,这个字段才生效。注意:后台配置的店铺平台必须和入参platform_code一致 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetOutShopName(_outShopName string) error { + r._outShopName = _outShopName + r.Set("out_shop_name", _outShopName) + return nil +} + +// OutShopName Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetOutShopName() string { + return r._outShopName +} +// InvoiceKind Setter +// 发票种类,0=电子发票,1=纸质发票,2=专票。注意:未订购纸票服务的税号无法开具纸票 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetInvoiceKind(_invoiceKind int64) error { + r._invoiceKind = _invoiceKind + r.Set("invoice_kind", _invoiceKind) + return nil +} + +// InvoiceKind Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetInvoiceKind() int64 { + return r._invoiceKind +} +// RedNoticeNo Setter +// 红字通知单号,专票冲红时需要,商家跟税局申请 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetRedNoticeNo(_redNoticeNo string) error { + r._redNoticeNo = _redNoticeNo + r.Set("red_notice_no", _redNoticeNo) + return nil +} + +// RedNoticeNo Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetRedNoticeNo() string { + return r._redNoticeNo +} +// RequestRole Setter +// 开票角色,supplier=供应商,只有platform_code=TB|TM时生效,供应商开票时允许使用A店铺开具B店铺的订单号 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetRequestRole(_requestRole string) error { + r._requestRole = _requestRole + r.Set("request_role", _requestRole) + return nil +} + +// RequestRole Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetRequestRole() string { + return r._requestRole +} +// DistributionTid Setter +// 分销订单号,request_role=supplier供应商开票时必填,分销订单号必须属于platform_tid,同时分销订单号的供应商必须和开票的授权账号一致 +func (r *AlibabaEinvoiceCreatereqAPIRequest) SetDistributionTid(_distributionTid string) error { + r._distributionTid = _distributionTid + r.Set("distribution_tid", _distributionTid) + return nil +} + +// DistributionTid Getter +func (r AlibabaEinvoiceCreatereqAPIRequest) GetDistributionTid() string { + return r._distributionTid +} diff --git a/model/einvoice/AlibabaEinvoiceCreatereqAPIResponse.go b/model/einvoice/AlibabaEinvoiceCreatereqAPIResponse.go new file mode 100644 index 0000000000..aa31424c99 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceCreatereqAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ERP开票请求接口 API返回值 +alibaba.einvoice.createreq + +ERP发起开票请求 +*/ +type AlibabaEinvoiceCreatereqAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceCreatereqAPIResponseModel +} + +// ERP开票请求接口 成功返回结果 +type AlibabaEinvoiceCreatereqAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_createreq_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 开票信息是否成功接受 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceCreatereqResponse.go b/model/einvoice/AlibabaEinvoiceCreatereqResponse.go deleted file mode 100644 index 8e2e419636..0000000000 --- a/model/einvoice/AlibabaEinvoiceCreatereqResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ERP开票请求接口 API返回值 -alibaba.einvoice.createreq - -ERP发起开票请求 -*/ -type AlibabaEinvoiceCreatereqAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceCreatereqResponse -} - -// ERP开票请求接口 成功返回结果 -type AlibabaEinvoiceCreatereqResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_createreq_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 开票信息是否成功接受 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceDeductGetAPIRequest.go b/model/einvoice/AlibabaEinvoiceDeductGetAPIRequest.go new file mode 100644 index 0000000000..7261b4cfbf --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceDeductGetAPIRequest.go @@ -0,0 +1,80 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发票扣减的接口 API请求 +alibaba.einvoice.deduct.get + +获取历史发票扣减量、每日发票扣减量的接口 +*/ +type AlibabaEinvoiceDeductGetAPIRequest struct { + model.Params + // 税号 + _payeeRegisterNo string + // 业务日期 + _bizDate string + // 类型 1:所有 2:当日 + _type int64 +} + +// 初始化AlibabaEinvoiceDeductGetAPIRequest对象 +func NewAlibabaEinvoiceDeductGetRequest() *AlibabaEinvoiceDeductGetAPIRequest{ + return &AlibabaEinvoiceDeductGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceDeductGetAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.deduct.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceDeductGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PayeeRegisterNo Setter +// 税号 +func (r *AlibabaEinvoiceDeductGetAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceDeductGetAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// BizDate Setter +// 业务日期 +func (r *AlibabaEinvoiceDeductGetAPIRequest) SetBizDate(_bizDate string) error { + r._bizDate = _bizDate + r.Set("biz_date", _bizDate) + return nil +} + +// BizDate Getter +func (r AlibabaEinvoiceDeductGetAPIRequest) GetBizDate() string { + return r._bizDate +} +// Type Setter +// 类型 1:所有 2:当日 +func (r *AlibabaEinvoiceDeductGetAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaEinvoiceDeductGetAPIRequest) GetType() int64 { + return r._type +} diff --git a/model/einvoice/AlibabaEinvoiceDeductGetAPIResponse.go b/model/einvoice/AlibabaEinvoiceDeductGetAPIResponse.go new file mode 100644 index 0000000000..c5b298606a --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceDeductGetAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发票扣减的接口 API返回值 +alibaba.einvoice.deduct.get + +获取历史发票扣减量、每日发票扣减量的接口 +*/ +type AlibabaEinvoiceDeductGetAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceDeductGetAPIResponseModel +} + +// 发票扣减的接口 成功返回结果 +type AlibabaEinvoiceDeductGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_deduct_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaEinvoiceDeductGetResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceDeductGetResponse.go b/model/einvoice/AlibabaEinvoiceDeductGetResponse.go deleted file mode 100644 index c1893d4ad4..0000000000 --- a/model/einvoice/AlibabaEinvoiceDeductGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发票扣减的接口 API返回值 -alibaba.einvoice.deduct.get - -获取历史发票扣减量、每日发票扣减量的接口 -*/ -type AlibabaEinvoiceDeductGetAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceDeductGetResponse -} - -// 发票扣减的接口 成功返回结果 -type AlibabaEinvoiceDeductGetResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_deduct_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaEinvoiceDeductGetResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceDeviceOrderQueryAPIRequest.go b/model/einvoice/AlibabaEinvoiceDeviceOrderQueryAPIRequest.go new file mode 100644 index 0000000000..2066046683 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceDeviceOrderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询税控设备加盘订购单详情 API请求 +alibaba.einvoice.device.order.query + +查询税控设备订购单详情 +*/ +type AlibabaEinvoiceDeviceOrderQueryAPIRequest struct { + model.Params + // 税控设备订购单ID + _flowId string +} + +// 初始化AlibabaEinvoiceDeviceOrderQueryAPIRequest对象 +func NewAlibabaEinvoiceDeviceOrderQueryRequest() *AlibabaEinvoiceDeviceOrderQueryAPIRequest{ + return &AlibabaEinvoiceDeviceOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceDeviceOrderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.device.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceDeviceOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FlowId Setter +// 税控设备订购单ID +func (r *AlibabaEinvoiceDeviceOrderQueryAPIRequest) SetFlowId(_flowId string) error { + r._flowId = _flowId + r.Set("flow_id", _flowId) + return nil +} + +// FlowId Getter +func (r AlibabaEinvoiceDeviceOrderQueryAPIRequest) GetFlowId() string { + return r._flowId +} diff --git a/model/einvoice/AlibabaEinvoiceDeviceOrderQueryAPIResponse.go b/model/einvoice/AlibabaEinvoiceDeviceOrderQueryAPIResponse.go new file mode 100644 index 0000000000..15f11a5f4d --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceDeviceOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询税控设备加盘订购单详情 API返回值 +alibaba.einvoice.device.order.query + +查询税控设备订购单详情 +*/ +type AlibabaEinvoiceDeviceOrderQueryAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceDeviceOrderQueryAPIResponseModel +} + +// 查询税控设备加盘订购单详情 成功返回结果 +type AlibabaEinvoiceDeviceOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_device_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceDeviceOrderQueryResponse.go b/model/einvoice/AlibabaEinvoiceDeviceOrderQueryResponse.go deleted file mode 100644 index 324f3e0fc1..0000000000 --- a/model/einvoice/AlibabaEinvoiceDeviceOrderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询税控设备加盘订购单详情 API返回值 -alibaba.einvoice.device.order.query - -查询税控设备订购单详情 -*/ -type AlibabaEinvoiceDeviceOrderQueryAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceDeviceOrderQueryResponse -} - -// 查询税控设备加盘订购单详情 成功返回结果 -type AlibabaEinvoiceDeviceOrderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_device_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceDeviceOrderUpdateAPIRequest.go b/model/einvoice/AlibabaEinvoiceDeviceOrderUpdateAPIRequest.go new file mode 100644 index 0000000000..1226441d39 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceDeviceOrderUpdateAPIRequest.go @@ -0,0 +1,108 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +回传/更新设备订购单 API请求 +alibaba.einvoice.device.order.update + +更新设备订购单,同步税控设备信息 +*/ +type AlibabaEinvoiceDeviceOrderUpdateAPIRequest struct { + model.Params + // 订购单工单事件: deploy_finish: 设备就绪,部署完成 isv_reject: 服务商驳回订购单 + _action string + // 税控设备ID + _deviceId string + // 拓展字段。 ①当action=deploy_finish时,拓展字段中必须包含: serv_start_time: 服务有效周期-起始时间 serv_end_time: 服务有效周期-结束时间 时间格式:yyyy-MM-dd HH:mm:ss ②当action=isv_reject时,拓展字段中必须包含: message: 驳回原因 + _extJson string + // 订购开通单ID + _flowId string + // 税号 + _payeeRegisterNo string +} + +// 初始化AlibabaEinvoiceDeviceOrderUpdateAPIRequest对象 +func NewAlibabaEinvoiceDeviceOrderUpdateRequest() *AlibabaEinvoiceDeviceOrderUpdateAPIRequest{ + return &AlibabaEinvoiceDeviceOrderUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceDeviceOrderUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.device.order.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceDeviceOrderUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Action Setter +// 订购单工单事件: deploy_finish: 设备就绪,部署完成 isv_reject: 服务商驳回订购单 +func (r *AlibabaEinvoiceDeviceOrderUpdateAPIRequest) SetAction(_action string) error { + r._action = _action + r.Set("action", _action) + return nil +} + +// Action Getter +func (r AlibabaEinvoiceDeviceOrderUpdateAPIRequest) GetAction() string { + return r._action +} +// DeviceId Setter +// 税控设备ID +func (r *AlibabaEinvoiceDeviceOrderUpdateAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r AlibabaEinvoiceDeviceOrderUpdateAPIRequest) GetDeviceId() string { + return r._deviceId +} +// ExtJson Setter +// 拓展字段。 ①当action=deploy_finish时,拓展字段中必须包含: serv_start_time: 服务有效周期-起始时间 serv_end_time: 服务有效周期-结束时间 时间格式:yyyy-MM-dd HH:mm:ss ②当action=isv_reject时,拓展字段中必须包含: message: 驳回原因 +func (r *AlibabaEinvoiceDeviceOrderUpdateAPIRequest) SetExtJson(_extJson string) error { + r._extJson = _extJson + r.Set("ext_json", _extJson) + return nil +} + +// ExtJson Getter +func (r AlibabaEinvoiceDeviceOrderUpdateAPIRequest) GetExtJson() string { + return r._extJson +} +// FlowId Setter +// 订购开通单ID +func (r *AlibabaEinvoiceDeviceOrderUpdateAPIRequest) SetFlowId(_flowId string) error { + r._flowId = _flowId + r.Set("flow_id", _flowId) + return nil +} + +// FlowId Getter +func (r AlibabaEinvoiceDeviceOrderUpdateAPIRequest) GetFlowId() string { + return r._flowId +} +// PayeeRegisterNo Setter +// 税号 +func (r *AlibabaEinvoiceDeviceOrderUpdateAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceDeviceOrderUpdateAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} diff --git a/model/einvoice/AlibabaEinvoiceDeviceOrderUpdateAPIResponse.go b/model/einvoice/AlibabaEinvoiceDeviceOrderUpdateAPIResponse.go new file mode 100644 index 0000000000..4670a7fdd8 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceDeviceOrderUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +回传/更新设备订购单 API返回值 +alibaba.einvoice.device.order.update + +更新设备订购单,同步税控设备信息 +*/ +type AlibabaEinvoiceDeviceOrderUpdateAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceDeviceOrderUpdateAPIResponseModel +} + +// 回传/更新设备订购单 成功返回结果 +type AlibabaEinvoiceDeviceOrderUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_device_order_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceDeviceOrderUpdateResponse.go b/model/einvoice/AlibabaEinvoiceDeviceOrderUpdateResponse.go deleted file mode 100644 index 6755a5daaa..0000000000 --- a/model/einvoice/AlibabaEinvoiceDeviceOrderUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -回传/更新设备订购单 API返回值 -alibaba.einvoice.device.order.update - -更新设备订购单,同步税控设备信息 -*/ -type AlibabaEinvoiceDeviceOrderUpdateAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceDeviceOrderUpdateResponse -} - -// 回传/更新设备订购单 成功返回结果 -type AlibabaEinvoiceDeviceOrderUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_device_order_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceFlowRefundAPIRequest.go b/model/einvoice/AlibabaEinvoiceFlowRefundAPIRequest.go new file mode 100644 index 0000000000..695d67cb01 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceFlowRefundAPIRequest.go @@ -0,0 +1,52 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +退订工单(入驻、加盘、续约) API请求 +alibaba.einvoice.flow.refund + +电子发票工单系统,工单退订能力开放 +*/ +type AlibabaEinvoiceFlowRefundAPIRequest struct { + model.Params + // 退订请求参数 + _invoiceFlowRefund *InvoiceFlowRefundDto +} + +// 初始化AlibabaEinvoiceFlowRefundAPIRequest对象 +func NewAlibabaEinvoiceFlowRefundRequest() *AlibabaEinvoiceFlowRefundAPIRequest{ + return &AlibabaEinvoiceFlowRefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceFlowRefundAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.flow.refund" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceFlowRefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InvoiceFlowRefund Setter +// 退订请求参数 +func (r *AlibabaEinvoiceFlowRefundAPIRequest) SetInvoiceFlowRefund(_invoiceFlowRefund *InvoiceFlowRefundDto) error { + r._invoiceFlowRefund = _invoiceFlowRefund + r.Set("invoice_flow_refund", _invoiceFlowRefund) + return nil +} + +// InvoiceFlowRefund Getter +func (r AlibabaEinvoiceFlowRefundAPIRequest) GetInvoiceFlowRefund() *InvoiceFlowRefundDto { + return r._invoiceFlowRefund +} diff --git a/model/einvoice/AlibabaEinvoiceFlowRefundAPIResponse.go b/model/einvoice/AlibabaEinvoiceFlowRefundAPIResponse.go new file mode 100644 index 0000000000..4b856efe8e --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceFlowRefundAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +退订工单(入驻、加盘、续约) API返回值 +alibaba.einvoice.flow.refund + +电子发票工单系统,工单退订能力开放 +*/ +type AlibabaEinvoiceFlowRefundAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceFlowRefundAPIResponseModel +} + +// 退订工单(入驻、加盘、续约) 成功返回结果 +type AlibabaEinvoiceFlowRefundAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_flow_refund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回参数 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceFlowRefundResponse.go b/model/einvoice/AlibabaEinvoiceFlowRefundResponse.go deleted file mode 100644 index dc0218307a..0000000000 --- a/model/einvoice/AlibabaEinvoiceFlowRefundResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -退订工单(入驻、加盘、续约) API返回值 -alibaba.einvoice.flow.refund - -电子发票工单系统,工单退订能力开放 -*/ -type AlibabaEinvoiceFlowRefundAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceFlowRefundResponse -} - -// 退订工单(入驻、加盘、续约) 成功返回结果 -type AlibabaEinvoiceFlowRefundResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_flow_refund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回参数 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceFlowRenewAPIRequest.go b/model/einvoice/AlibabaEinvoiceFlowRenewAPIRequest.go new file mode 100644 index 0000000000..c75ccc58e3 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceFlowRenewAPIRequest.go @@ -0,0 +1,52 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +工单(入驻、加盘、续约)续约 API请求 +alibaba.einvoice.flow.renew + +工单(含入驻、加盘、续约工单)续约能力开放 +*/ +type AlibabaEinvoiceFlowRenewAPIRequest struct { + model.Params + // 续约请求参数 + _invoiceFlowRenewDto *InvoiceFlowRenewDto +} + +// 初始化AlibabaEinvoiceFlowRenewAPIRequest对象 +func NewAlibabaEinvoiceFlowRenewRequest() *AlibabaEinvoiceFlowRenewAPIRequest{ + return &AlibabaEinvoiceFlowRenewAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceFlowRenewAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.flow.renew" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceFlowRenewAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InvoiceFlowRenewDto Setter +// 续约请求参数 +func (r *AlibabaEinvoiceFlowRenewAPIRequest) SetInvoiceFlowRenewDto(_invoiceFlowRenewDto *InvoiceFlowRenewDto) error { + r._invoiceFlowRenewDto = _invoiceFlowRenewDto + r.Set("invoice_flow_renew_dto", _invoiceFlowRenewDto) + return nil +} + +// InvoiceFlowRenewDto Getter +func (r AlibabaEinvoiceFlowRenewAPIRequest) GetInvoiceFlowRenewDto() *InvoiceFlowRenewDto { + return r._invoiceFlowRenewDto +} diff --git a/model/einvoice/AlibabaEinvoiceFlowRenewAPIResponse.go b/model/einvoice/AlibabaEinvoiceFlowRenewAPIResponse.go new file mode 100644 index 0000000000..edb280f3ff --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceFlowRenewAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +工单(入驻、加盘、续约)续约 API返回值 +alibaba.einvoice.flow.renew + +工单(含入驻、加盘、续约工单)续约能力开放 +*/ +type AlibabaEinvoiceFlowRenewAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceFlowRenewAPIResponseModel +} + +// 工单(入驻、加盘、续约)续约 成功返回结果 +type AlibabaEinvoiceFlowRenewAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_flow_renew_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceFlowRenewResponse.go b/model/einvoice/AlibabaEinvoiceFlowRenewResponse.go deleted file mode 100644 index 73e95e956a..0000000000 --- a/model/einvoice/AlibabaEinvoiceFlowRenewResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -工单(入驻、加盘、续约)续约 API返回值 -alibaba.einvoice.flow.renew - -工单(含入驻、加盘、续约工单)续约能力开放 -*/ -type AlibabaEinvoiceFlowRenewAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceFlowRenewResponse -} - -// 工单(入驻、加盘、续约)续约 成功返回结果 -type AlibabaEinvoiceFlowRenewResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_flow_renew_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceFlowTaxCreateAPIRequest.go b/model/einvoice/AlibabaEinvoiceFlowTaxCreateAPIRequest.go new file mode 100644 index 0000000000..2a3329309a --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceFlowTaxCreateAPIRequest.go @@ -0,0 +1,52 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建税控开通工单 API请求 +alibaba.einvoice.flow.tax.create + +商户在业务前台订购税控产品后,调用阿里发票此接口,提交税号的入驻开通工单。此接口返回为工单的提交结果,非真正入驻结果。开通结果会在商户完成设备的部署安装 入驻完成后,由阿里发票通过消息异步通知到业务前台。 +*/ +type AlibabaEinvoiceFlowTaxCreateAPIRequest struct { + model.Params + // 工单请求 + _invoiceTaxFlowCreateDto *InvoiceTaxFlowCreateDto +} + +// 初始化AlibabaEinvoiceFlowTaxCreateAPIRequest对象 +func NewAlibabaEinvoiceFlowTaxCreateRequest() *AlibabaEinvoiceFlowTaxCreateAPIRequest{ + return &AlibabaEinvoiceFlowTaxCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceFlowTaxCreateAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.flow.tax.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceFlowTaxCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InvoiceTaxFlowCreateDto Setter +// 工单请求 +func (r *AlibabaEinvoiceFlowTaxCreateAPIRequest) SetInvoiceTaxFlowCreateDto(_invoiceTaxFlowCreateDto *InvoiceTaxFlowCreateDto) error { + r._invoiceTaxFlowCreateDto = _invoiceTaxFlowCreateDto + r.Set("invoice_tax_flow_create_dto", _invoiceTaxFlowCreateDto) + return nil +} + +// InvoiceTaxFlowCreateDto Getter +func (r AlibabaEinvoiceFlowTaxCreateAPIRequest) GetInvoiceTaxFlowCreateDto() *InvoiceTaxFlowCreateDto { + return r._invoiceTaxFlowCreateDto +} diff --git a/model/einvoice/AlibabaEinvoiceFlowTaxCreateAPIResponse.go b/model/einvoice/AlibabaEinvoiceFlowTaxCreateAPIResponse.go new file mode 100644 index 0000000000..37d3f4f22b --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceFlowTaxCreateAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建税控开通工单 API返回值 +alibaba.einvoice.flow.tax.create + +商户在业务前台订购税控产品后,调用阿里发票此接口,提交税号的入驻开通工单。此接口返回为工单的提交结果,非真正入驻结果。开通结果会在商户完成设备的部署安装 入驻完成后,由阿里发票通过消息异步通知到业务前台。 +*/ +type AlibabaEinvoiceFlowTaxCreateAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceFlowTaxCreateAPIResponseModel +} + +// 创建税控开通工单 成功返回结果 +type AlibabaEinvoiceFlowTaxCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_flow_tax_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 工单ID,发票中台生成 + FlowId string `json:"flow_id,omitempty" xml:"flow_id,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceFlowTaxCreateResponse.go b/model/einvoice/AlibabaEinvoiceFlowTaxCreateResponse.go deleted file mode 100644 index e8e21c7987..0000000000 --- a/model/einvoice/AlibabaEinvoiceFlowTaxCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建税控开通工单 API返回值 -alibaba.einvoice.flow.tax.create - -商户在业务前台订购税控产品后,调用阿里发票此接口,提交税号的入驻开通工单。此接口返回为工单的提交结果,非真正入驻结果。开通结果会在商户完成设备的部署安装 入驻完成后,由阿里发票通过消息异步通知到业务前台。 -*/ -type AlibabaEinvoiceFlowTaxCreateAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceFlowTaxCreateResponse -} - -// 创建税控开通工单 成功返回结果 -type AlibabaEinvoiceFlowTaxCreateResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_flow_tax_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 工单ID,发票中台生成 - FlowId string `json:"flow_id,omitempty" xml:"flow_id,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceFlowTaxGetAPIRequest.go b/model/einvoice/AlibabaEinvoiceFlowTaxGetAPIRequest.go new file mode 100644 index 0000000000..03ca216fd6 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceFlowTaxGetAPIRequest.go @@ -0,0 +1,53 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询税控开通工单详情 API请求 +alibaba.einvoice.flow.tax.get + +查询税控开通工单详情,接口返回工单状态、开票商户信息以及税控设备信息。 +场景使用:1、业务前台收到入驻成功消息后,调用此接口查询最终的商户信息和设备信息;2、主动补偿查询:当工单长时间未收到事件通知,可能存在丢消息的情况,此时可主动查询该工单,更新本地工单状态。 +*/ +type AlibabaEinvoiceFlowTaxGetAPIRequest struct { + model.Params + // 入驻开通工单ID + _flowId string +} + +// 初始化AlibabaEinvoiceFlowTaxGetAPIRequest对象 +func NewAlibabaEinvoiceFlowTaxGetRequest() *AlibabaEinvoiceFlowTaxGetAPIRequest{ + return &AlibabaEinvoiceFlowTaxGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceFlowTaxGetAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.flow.tax.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceFlowTaxGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FlowId Setter +// 入驻开通工单ID +func (r *AlibabaEinvoiceFlowTaxGetAPIRequest) SetFlowId(_flowId string) error { + r._flowId = _flowId + r.Set("flow_id", _flowId) + return nil +} + +// FlowId Getter +func (r AlibabaEinvoiceFlowTaxGetAPIRequest) GetFlowId() string { + return r._flowId +} diff --git a/model/einvoice/AlibabaEinvoiceFlowTaxGetAPIResponse.go b/model/einvoice/AlibabaEinvoiceFlowTaxGetAPIResponse.go new file mode 100644 index 0000000000..316bf1abe7 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceFlowTaxGetAPIResponse.go @@ -0,0 +1,28 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询税控开通工单详情 API返回值 +alibaba.einvoice.flow.tax.get + +查询税控开通工单详情,接口返回工单状态、开票商户信息以及税控设备信息。 +场景使用:1、业务前台收到入驻成功消息后,调用此接口查询最终的商户信息和设备信息;2、主动补偿查询:当工单长时间未收到事件通知,可能存在丢消息的情况,此时可主动查询该工单,更新本地工单状态。 +*/ +type AlibabaEinvoiceFlowTaxGetAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceFlowTaxGetAPIResponseModel +} + +// 查询税控开通工单详情 成功返回结果 +type AlibabaEinvoiceFlowTaxGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_flow_tax_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceFlowTaxGetResponse.go b/model/einvoice/AlibabaEinvoiceFlowTaxGetResponse.go deleted file mode 100644 index 107d0804b6..0000000000 --- a/model/einvoice/AlibabaEinvoiceFlowTaxGetResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询税控开通工单详情 API返回值 -alibaba.einvoice.flow.tax.get - -查询税控开通工单详情,接口返回工单状态、开票商户信息以及税控设备信息。 -场景使用:1、业务前台收到入驻成功消息后,调用此接口查询最终的商户信息和设备信息;2、主动补偿查询:当工单长时间未收到事件通知,可能存在丢消息的情况,此时可主动查询该工单,更新本地工单状态。 -*/ -type AlibabaEinvoiceFlowTaxGetAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceFlowTaxGetResponse -} - -// 查询税控开通工单详情 成功返回结果 -type AlibabaEinvoiceFlowTaxGetResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_flow_tax_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceIncomeAgentCheckAPIRequest.go b/model/einvoice/AlibabaEinvoiceIncomeAgentCheckAPIRequest.go new file mode 100644 index 0000000000..278d1758fd --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceIncomeAgentCheckAPIRequest.go @@ -0,0 +1,52 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +agent注册校验 API请求 +alibaba.einvoice.income.agent.check + +agent注册是,需要交易用户填写的agentId是否有效 +*/ +type AlibabaEinvoiceIncomeAgentCheckAPIRequest struct { + model.Params + // 阿里发票平台分配的agentId + _agentId string +} + +// 初始化AlibabaEinvoiceIncomeAgentCheckAPIRequest对象 +func NewAlibabaEinvoiceIncomeAgentCheckRequest() *AlibabaEinvoiceIncomeAgentCheckAPIRequest{ + return &AlibabaEinvoiceIncomeAgentCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceIncomeAgentCheckAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.income.agent.check" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceIncomeAgentCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentId Setter +// 阿里发票平台分配的agentId +func (r *AlibabaEinvoiceIncomeAgentCheckAPIRequest) SetAgentId(_agentId string) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r AlibabaEinvoiceIncomeAgentCheckAPIRequest) GetAgentId() string { + return r._agentId +} diff --git a/model/einvoice/AlibabaEinvoiceIncomeAgentCheckAPIResponse.go b/model/einvoice/AlibabaEinvoiceIncomeAgentCheckAPIResponse.go new file mode 100644 index 0000000000..77210aff5c --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceIncomeAgentCheckAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +agent注册校验 API返回值 +alibaba.einvoice.income.agent.check + +agent注册是,需要交易用户填写的agentId是否有效 +*/ +type AlibabaEinvoiceIncomeAgentCheckAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceIncomeAgentCheckAPIResponseModel +} + +// agent注册校验 成功返回结果 +type AlibabaEinvoiceIncomeAgentCheckAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_income_agent_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否调用成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceIncomeAgentCheckResponse.go b/model/einvoice/AlibabaEinvoiceIncomeAgentCheckResponse.go deleted file mode 100644 index 471a7c04d2..0000000000 --- a/model/einvoice/AlibabaEinvoiceIncomeAgentCheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -agent注册校验 API返回值 -alibaba.einvoice.income.agent.check - -agent注册是,需要交易用户填写的agentId是否有效 -*/ -type AlibabaEinvoiceIncomeAgentCheckAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceIncomeAgentCheckResponse -} - -// agent注册校验 成功返回结果 -type AlibabaEinvoiceIncomeAgentCheckResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_income_agent_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否调用成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceIncomeCertificateReturnAPIRequest.go b/model/einvoice/AlibabaEinvoiceIncomeCertificateReturnAPIRequest.go new file mode 100644 index 0000000000..93f1478075 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceIncomeCertificateReturnAPIRequest.go @@ -0,0 +1,108 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商回传进项认证结果 API请求 +alibaba.einvoice.income.certificate.return + +服务商回传客户端agent所处环境的设备列表,比如扫描仪 +*/ +type AlibabaEinvoiceIncomeCertificateReturnAPIRequest struct { + model.Params + // 错误码,success=false时必填 + _errorCode string + // 错误信息,success=false时必填 + _errorMessage string + // 请求标识 + _reqIndex string + // 认证结果,true=成功,false=失败 + _success bool + // 认证步骤,1=勾选,2=汇总,3=确认 + _step int64 +} + +// 初始化AlibabaEinvoiceIncomeCertificateReturnAPIRequest对象 +func NewAlibabaEinvoiceIncomeCertificateReturnRequest() *AlibabaEinvoiceIncomeCertificateReturnAPIRequest{ + return &AlibabaEinvoiceIncomeCertificateReturnAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceIncomeCertificateReturnAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.income.certificate.return" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceIncomeCertificateReturnAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ErrorCode Setter +// 错误码,success=false时必填 +func (r *AlibabaEinvoiceIncomeCertificateReturnAPIRequest) SetErrorCode(_errorCode string) error { + r._errorCode = _errorCode + r.Set("error_code", _errorCode) + return nil +} + +// ErrorCode Getter +func (r AlibabaEinvoiceIncomeCertificateReturnAPIRequest) GetErrorCode() string { + return r._errorCode +} +// ErrorMessage Setter +// 错误信息,success=false时必填 +func (r *AlibabaEinvoiceIncomeCertificateReturnAPIRequest) SetErrorMessage(_errorMessage string) error { + r._errorMessage = _errorMessage + r.Set("error_message", _errorMessage) + return nil +} + +// ErrorMessage Getter +func (r AlibabaEinvoiceIncomeCertificateReturnAPIRequest) GetErrorMessage() string { + return r._errorMessage +} +// ReqIndex Setter +// 请求标识 +func (r *AlibabaEinvoiceIncomeCertificateReturnAPIRequest) SetReqIndex(_reqIndex string) error { + r._reqIndex = _reqIndex + r.Set("req_index", _reqIndex) + return nil +} + +// ReqIndex Getter +func (r AlibabaEinvoiceIncomeCertificateReturnAPIRequest) GetReqIndex() string { + return r._reqIndex +} +// Success Setter +// 认证结果,true=成功,false=失败 +func (r *AlibabaEinvoiceIncomeCertificateReturnAPIRequest) SetSuccess(_success bool) error { + r._success = _success + r.Set("success", _success) + return nil +} + +// Success Getter +func (r AlibabaEinvoiceIncomeCertificateReturnAPIRequest) GetSuccess() bool { + return r._success +} +// Step Setter +// 认证步骤,1=勾选,2=汇总,3=确认 +func (r *AlibabaEinvoiceIncomeCertificateReturnAPIRequest) SetStep(_step int64) error { + r._step = _step + r.Set("step", _step) + return nil +} + +// Step Getter +func (r AlibabaEinvoiceIncomeCertificateReturnAPIRequest) GetStep() int64 { + return r._step +} diff --git a/model/einvoice/AlibabaEinvoiceIncomeCertificateReturnAPIResponse.go b/model/einvoice/AlibabaEinvoiceIncomeCertificateReturnAPIResponse.go new file mode 100644 index 0000000000..133e24916b --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceIncomeCertificateReturnAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商回传进项认证结果 API返回值 +alibaba.einvoice.income.certificate.return + +服务商回传客户端agent所处环境的设备列表,比如扫描仪 +*/ +type AlibabaEinvoiceIncomeCertificateReturnAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceIncomeCertificateReturnAPIResponseModel +} + +// 服务商回传进项认证结果 成功返回结果 +type AlibabaEinvoiceIncomeCertificateReturnAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_income_certificate_return_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口是否调用成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceIncomeCertificateReturnResponse.go b/model/einvoice/AlibabaEinvoiceIncomeCertificateReturnResponse.go deleted file mode 100644 index db7e08701b..0000000000 --- a/model/einvoice/AlibabaEinvoiceIncomeCertificateReturnResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商回传进项认证结果 API返回值 -alibaba.einvoice.income.certificate.return - -服务商回传客户端agent所处环境的设备列表,比如扫描仪 -*/ -type AlibabaEinvoiceIncomeCertificateReturnAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceIncomeCertificateReturnResponse -} - -// 服务商回传进项认证结果 成功返回结果 -type AlibabaEinvoiceIncomeCertificateReturnResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_income_certificate_return_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口是否调用成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceIncomeDeviceReturnAPIRequest.go b/model/einvoice/AlibabaEinvoiceIncomeDeviceReturnAPIRequest.go new file mode 100644 index 0000000000..16bc1fc4ea --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceIncomeDeviceReturnAPIRequest.go @@ -0,0 +1,108 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商回传客户端设备列表 API请求 +alibaba.einvoice.income.device.return + +服务商回传客户端agent所处环境的设备列表,比如扫描仪 +*/ +type AlibabaEinvoiceIncomeDeviceReturnAPIRequest struct { + model.Params + // 设备列表,success=true时必填 + _deviceList []string + // 错误码,success=false时必填 + _errorCode string + // 错误信息,success=false时必填 + _errorMessage string + // 请求标识 + _reqIndex string + // 查询设备是否成功,true=成功,false=失败 + _success bool +} + +// 初始化AlibabaEinvoiceIncomeDeviceReturnAPIRequest对象 +func NewAlibabaEinvoiceIncomeDeviceReturnRequest() *AlibabaEinvoiceIncomeDeviceReturnAPIRequest{ + return &AlibabaEinvoiceIncomeDeviceReturnAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceIncomeDeviceReturnAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.income.device.return" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceIncomeDeviceReturnAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceList Setter +// 设备列表,success=true时必填 +func (r *AlibabaEinvoiceIncomeDeviceReturnAPIRequest) SetDeviceList(_deviceList []string) error { + r._deviceList = _deviceList + r.Set("device_list", _deviceList) + return nil +} + +// DeviceList Getter +func (r AlibabaEinvoiceIncomeDeviceReturnAPIRequest) GetDeviceList() []string { + return r._deviceList +} +// ErrorCode Setter +// 错误码,success=false时必填 +func (r *AlibabaEinvoiceIncomeDeviceReturnAPIRequest) SetErrorCode(_errorCode string) error { + r._errorCode = _errorCode + r.Set("error_code", _errorCode) + return nil +} + +// ErrorCode Getter +func (r AlibabaEinvoiceIncomeDeviceReturnAPIRequest) GetErrorCode() string { + return r._errorCode +} +// ErrorMessage Setter +// 错误信息,success=false时必填 +func (r *AlibabaEinvoiceIncomeDeviceReturnAPIRequest) SetErrorMessage(_errorMessage string) error { + r._errorMessage = _errorMessage + r.Set("error_message", _errorMessage) + return nil +} + +// ErrorMessage Getter +func (r AlibabaEinvoiceIncomeDeviceReturnAPIRequest) GetErrorMessage() string { + return r._errorMessage +} +// ReqIndex Setter +// 请求标识 +func (r *AlibabaEinvoiceIncomeDeviceReturnAPIRequest) SetReqIndex(_reqIndex string) error { + r._reqIndex = _reqIndex + r.Set("req_index", _reqIndex) + return nil +} + +// ReqIndex Getter +func (r AlibabaEinvoiceIncomeDeviceReturnAPIRequest) GetReqIndex() string { + return r._reqIndex +} +// Success Setter +// 查询设备是否成功,true=成功,false=失败 +func (r *AlibabaEinvoiceIncomeDeviceReturnAPIRequest) SetSuccess(_success bool) error { + r._success = _success + r.Set("success", _success) + return nil +} + +// Success Getter +func (r AlibabaEinvoiceIncomeDeviceReturnAPIRequest) GetSuccess() bool { + return r._success +} diff --git a/model/einvoice/AlibabaEinvoiceIncomeDeviceReturnAPIResponse.go b/model/einvoice/AlibabaEinvoiceIncomeDeviceReturnAPIResponse.go new file mode 100644 index 0000000000..952ae2a806 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceIncomeDeviceReturnAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商回传客户端设备列表 API返回值 +alibaba.einvoice.income.device.return + +服务商回传客户端agent所处环境的设备列表,比如扫描仪 +*/ +type AlibabaEinvoiceIncomeDeviceReturnAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceIncomeDeviceReturnAPIResponseModel +} + +// 服务商回传客户端设备列表 成功返回结果 +type AlibabaEinvoiceIncomeDeviceReturnAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_income_device_return_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口是否调用成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceIncomeDeviceReturnResponse.go b/model/einvoice/AlibabaEinvoiceIncomeDeviceReturnResponse.go deleted file mode 100644 index 4f6096143f..0000000000 --- a/model/einvoice/AlibabaEinvoiceIncomeDeviceReturnResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商回传客户端设备列表 API返回值 -alibaba.einvoice.income.device.return - -服务商回传客户端agent所处环境的设备列表,比如扫描仪 -*/ -type AlibabaEinvoiceIncomeDeviceReturnAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceIncomeDeviceReturnResponse -} - -// 服务商回传客户端设备列表 成功返回结果 -type AlibabaEinvoiceIncomeDeviceReturnResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_income_device_return_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口是否调用成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceIncomeOcrReturnAPIRequest.go b/model/einvoice/AlibabaEinvoiceIncomeOcrReturnAPIRequest.go new file mode 100644 index 0000000000..0174a157b6 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceIncomeOcrReturnAPIRequest.go @@ -0,0 +1,220 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商回传发票ocr的结果 API请求 +alibaba.einvoice.income.ocr.return + +服务商回传发票ocr的结果,分两种场景:扫描驱动服务商主动回传;阿里主动发起的ocr回传 +*/ +type AlibabaEinvoiceIncomeOcrReturnAPIRequest struct { + model.Params + // 校验码,ocr结果为普票,success=true并且invoiceKind=1时必填 + _checksum string + // 错误码,success=false是必填 + _errorCode string + // 错误消息,success=false是必填 + _errorMessage string + // 发票ocr影像文件,type=1时必填 + _imageData *model.File + // 发票ocr影像编号,type=1时必填 + _imageId string + // 发票代码,success=true时必填 + _invoiceCode string + // 开票日期,格式为yyyy-MM-dd,success=true时必填 + _invoiceDate string + // 发票种类,1=普票,2=专票,success=true时必填 + _invoiceKind int64 + // 发票号码,success=true时必填 + _invoiceNo string + // 开票请求标识,扫描驱动回传type=1时填批次号 + _reqIndex string + // ocr结果,true=成功,false=失败 + _success bool + // 不含税金额,ocr结果为专票,success=true并且invoiceKind=2时必填 + _sumPrice string + // 请求类型,0=阿里主动发起的cor,1=扫描驱动服务商主动回传ocr结果 + _type int64 +} + +// 初始化AlibabaEinvoiceIncomeOcrReturnAPIRequest对象 +func NewAlibabaEinvoiceIncomeOcrReturnRequest() *AlibabaEinvoiceIncomeOcrReturnAPIRequest{ + return &AlibabaEinvoiceIncomeOcrReturnAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceIncomeOcrReturnAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.income.ocr.return" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceIncomeOcrReturnAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Checksum Setter +// 校验码,ocr结果为普票,success=true并且invoiceKind=1时必填 +func (r *AlibabaEinvoiceIncomeOcrReturnAPIRequest) SetChecksum(_checksum string) error { + r._checksum = _checksum + r.Set("checksum", _checksum) + return nil +} + +// Checksum Getter +func (r AlibabaEinvoiceIncomeOcrReturnAPIRequest) GetChecksum() string { + return r._checksum +} +// ErrorCode Setter +// 错误码,success=false是必填 +func (r *AlibabaEinvoiceIncomeOcrReturnAPIRequest) SetErrorCode(_errorCode string) error { + r._errorCode = _errorCode + r.Set("error_code", _errorCode) + return nil +} + +// ErrorCode Getter +func (r AlibabaEinvoiceIncomeOcrReturnAPIRequest) GetErrorCode() string { + return r._errorCode +} +// ErrorMessage Setter +// 错误消息,success=false是必填 +func (r *AlibabaEinvoiceIncomeOcrReturnAPIRequest) SetErrorMessage(_errorMessage string) error { + r._errorMessage = _errorMessage + r.Set("error_message", _errorMessage) + return nil +} + +// ErrorMessage Getter +func (r AlibabaEinvoiceIncomeOcrReturnAPIRequest) GetErrorMessage() string { + return r._errorMessage +} +// ImageData Setter +// 发票ocr影像文件,type=1时必填 +func (r *AlibabaEinvoiceIncomeOcrReturnAPIRequest) SetImageData(_imageData *model.File) error { + r._imageData = _imageData + r.Set("image_data", _imageData) + return nil +} + +// ImageData Getter +func (r AlibabaEinvoiceIncomeOcrReturnAPIRequest) GetImageData() *model.File { + return r._imageData +} +// ImageId Setter +// 发票ocr影像编号,type=1时必填 +func (r *AlibabaEinvoiceIncomeOcrReturnAPIRequest) SetImageId(_imageId string) error { + r._imageId = _imageId + r.Set("image_id", _imageId) + return nil +} + +// ImageId Getter +func (r AlibabaEinvoiceIncomeOcrReturnAPIRequest) GetImageId() string { + return r._imageId +} +// InvoiceCode Setter +// 发票代码,success=true时必填 +func (r *AlibabaEinvoiceIncomeOcrReturnAPIRequest) SetInvoiceCode(_invoiceCode string) error { + r._invoiceCode = _invoiceCode + r.Set("invoice_code", _invoiceCode) + return nil +} + +// InvoiceCode Getter +func (r AlibabaEinvoiceIncomeOcrReturnAPIRequest) GetInvoiceCode() string { + return r._invoiceCode +} +// InvoiceDate Setter +// 开票日期,格式为yyyy-MM-dd,success=true时必填 +func (r *AlibabaEinvoiceIncomeOcrReturnAPIRequest) SetInvoiceDate(_invoiceDate string) error { + r._invoiceDate = _invoiceDate + r.Set("invoice_date", _invoiceDate) + return nil +} + +// InvoiceDate Getter +func (r AlibabaEinvoiceIncomeOcrReturnAPIRequest) GetInvoiceDate() string { + return r._invoiceDate +} +// InvoiceKind Setter +// 发票种类,1=普票,2=专票,success=true时必填 +func (r *AlibabaEinvoiceIncomeOcrReturnAPIRequest) SetInvoiceKind(_invoiceKind int64) error { + r._invoiceKind = _invoiceKind + r.Set("invoice_kind", _invoiceKind) + return nil +} + +// InvoiceKind Getter +func (r AlibabaEinvoiceIncomeOcrReturnAPIRequest) GetInvoiceKind() int64 { + return r._invoiceKind +} +// InvoiceNo Setter +// 发票号码,success=true时必填 +func (r *AlibabaEinvoiceIncomeOcrReturnAPIRequest) SetInvoiceNo(_invoiceNo string) error { + r._invoiceNo = _invoiceNo + r.Set("invoice_no", _invoiceNo) + return nil +} + +// InvoiceNo Getter +func (r AlibabaEinvoiceIncomeOcrReturnAPIRequest) GetInvoiceNo() string { + return r._invoiceNo +} +// ReqIndex Setter +// 开票请求标识,扫描驱动回传type=1时填批次号 +func (r *AlibabaEinvoiceIncomeOcrReturnAPIRequest) SetReqIndex(_reqIndex string) error { + r._reqIndex = _reqIndex + r.Set("req_index", _reqIndex) + return nil +} + +// ReqIndex Getter +func (r AlibabaEinvoiceIncomeOcrReturnAPIRequest) GetReqIndex() string { + return r._reqIndex +} +// Success Setter +// ocr结果,true=成功,false=失败 +func (r *AlibabaEinvoiceIncomeOcrReturnAPIRequest) SetSuccess(_success bool) error { + r._success = _success + r.Set("success", _success) + return nil +} + +// Success Getter +func (r AlibabaEinvoiceIncomeOcrReturnAPIRequest) GetSuccess() bool { + return r._success +} +// SumPrice Setter +// 不含税金额,ocr结果为专票,success=true并且invoiceKind=2时必填 +func (r *AlibabaEinvoiceIncomeOcrReturnAPIRequest) SetSumPrice(_sumPrice string) error { + r._sumPrice = _sumPrice + r.Set("sum_price", _sumPrice) + return nil +} + +// SumPrice Getter +func (r AlibabaEinvoiceIncomeOcrReturnAPIRequest) GetSumPrice() string { + return r._sumPrice +} +// Type Setter +// 请求类型,0=阿里主动发起的cor,1=扫描驱动服务商主动回传ocr结果 +func (r *AlibabaEinvoiceIncomeOcrReturnAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaEinvoiceIncomeOcrReturnAPIRequest) GetType() int64 { + return r._type +} diff --git a/model/einvoice/AlibabaEinvoiceIncomeOcrReturnAPIResponse.go b/model/einvoice/AlibabaEinvoiceIncomeOcrReturnAPIResponse.go new file mode 100644 index 0000000000..a125fbe25f --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceIncomeOcrReturnAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商回传发票ocr的结果 API返回值 +alibaba.einvoice.income.ocr.return + +服务商回传发票ocr的结果,分两种场景:扫描驱动服务商主动回传;阿里主动发起的ocr回传 +*/ +type AlibabaEinvoiceIncomeOcrReturnAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceIncomeOcrReturnAPIResponseModel +} + +// 服务商回传发票ocr的结果 成功返回结果 +type AlibabaEinvoiceIncomeOcrReturnAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_income_ocr_return_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口调用结果,true=成功,false=失败,subCode以isp开头时需要服务商重试 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceIncomeOcrReturnResponse.go b/model/einvoice/AlibabaEinvoiceIncomeOcrReturnResponse.go deleted file mode 100644 index fe95277bbd..0000000000 --- a/model/einvoice/AlibabaEinvoiceIncomeOcrReturnResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商回传发票ocr的结果 API返回值 -alibaba.einvoice.income.ocr.return - -服务商回传发票ocr的结果,分两种场景:扫描驱动服务商主动回传;阿里主动发起的ocr回传 -*/ -type AlibabaEinvoiceIncomeOcrReturnAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceIncomeOcrReturnResponse -} - -// 服务商回传发票ocr的结果 成功返回结果 -type AlibabaEinvoiceIncomeOcrReturnResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_income_ocr_return_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口调用结果,true=成功,false=失败,subCode以isp开头时需要服务商重试 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceIncomeScanReturnAPIRequest.go b/model/einvoice/AlibabaEinvoiceIncomeScanReturnAPIRequest.go new file mode 100644 index 0000000000..1074c4df38 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceIncomeScanReturnAPIRequest.go @@ -0,0 +1,122 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +进项扫描状态回传 API请求 +alibaba.einvoice.income.scan.return + +回传进项扫描每个阶段的状态,比如ocr开始,ocr结束,查验开始,查验结束等 +*/ +type AlibabaEinvoiceIncomeScanReturnAPIRequest struct { + model.Params + // 扫描的批次号 + _batchNo string + // 扫描状态,0=开始ocr,1=ocr结束,2=开始查验,3=查验结束 + _status int64 + // 该批次对应的发票数量,扫描结束和查验结束status=1,3时必填 + _invoiceCount int64 + // 驱动是否成功,true=成功,false=失败 + _success bool + // 错误码,success=false时填入 + _errorCode string + // 错误信息,success=false时必填 + _errorMessage string +} + +// 初始化AlibabaEinvoiceIncomeScanReturnAPIRequest对象 +func NewAlibabaEinvoiceIncomeScanReturnRequest() *AlibabaEinvoiceIncomeScanReturnAPIRequest{ + return &AlibabaEinvoiceIncomeScanReturnAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceIncomeScanReturnAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.income.scan.return" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceIncomeScanReturnAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BatchNo Setter +// 扫描的批次号 +func (r *AlibabaEinvoiceIncomeScanReturnAPIRequest) SetBatchNo(_batchNo string) error { + r._batchNo = _batchNo + r.Set("batch_no", _batchNo) + return nil +} + +// BatchNo Getter +func (r AlibabaEinvoiceIncomeScanReturnAPIRequest) GetBatchNo() string { + return r._batchNo +} +// Status Setter +// 扫描状态,0=开始ocr,1=ocr结束,2=开始查验,3=查验结束 +func (r *AlibabaEinvoiceIncomeScanReturnAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaEinvoiceIncomeScanReturnAPIRequest) GetStatus() int64 { + return r._status +} +// InvoiceCount Setter +// 该批次对应的发票数量,扫描结束和查验结束status=1,3时必填 +func (r *AlibabaEinvoiceIncomeScanReturnAPIRequest) SetInvoiceCount(_invoiceCount int64) error { + r._invoiceCount = _invoiceCount + r.Set("invoice_count", _invoiceCount) + return nil +} + +// InvoiceCount Getter +func (r AlibabaEinvoiceIncomeScanReturnAPIRequest) GetInvoiceCount() int64 { + return r._invoiceCount +} +// Success Setter +// 驱动是否成功,true=成功,false=失败 +func (r *AlibabaEinvoiceIncomeScanReturnAPIRequest) SetSuccess(_success bool) error { + r._success = _success + r.Set("success", _success) + return nil +} + +// Success Getter +func (r AlibabaEinvoiceIncomeScanReturnAPIRequest) GetSuccess() bool { + return r._success +} +// ErrorCode Setter +// 错误码,success=false时填入 +func (r *AlibabaEinvoiceIncomeScanReturnAPIRequest) SetErrorCode(_errorCode string) error { + r._errorCode = _errorCode + r.Set("error_code", _errorCode) + return nil +} + +// ErrorCode Getter +func (r AlibabaEinvoiceIncomeScanReturnAPIRequest) GetErrorCode() string { + return r._errorCode +} +// ErrorMessage Setter +// 错误信息,success=false时必填 +func (r *AlibabaEinvoiceIncomeScanReturnAPIRequest) SetErrorMessage(_errorMessage string) error { + r._errorMessage = _errorMessage + r.Set("error_message", _errorMessage) + return nil +} + +// ErrorMessage Getter +func (r AlibabaEinvoiceIncomeScanReturnAPIRequest) GetErrorMessage() string { + return r._errorMessage +} diff --git a/model/einvoice/AlibabaEinvoiceIncomeScanReturnAPIResponse.go b/model/einvoice/AlibabaEinvoiceIncomeScanReturnAPIResponse.go new file mode 100644 index 0000000000..e21b3f091e --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceIncomeScanReturnAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +进项扫描状态回传 API返回值 +alibaba.einvoice.income.scan.return + +回传进项扫描每个阶段的状态,比如ocr开始,ocr结束,查验开始,查验结束等 +*/ +type AlibabaEinvoiceIncomeScanReturnAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceIncomeScanReturnAPIResponseModel +} + +// 进项扫描状态回传 成功返回结果 +type AlibabaEinvoiceIncomeScanReturnAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_income_scan_return_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否回传成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceIncomeScanReturnResponse.go b/model/einvoice/AlibabaEinvoiceIncomeScanReturnResponse.go deleted file mode 100644 index d72543b0ab..0000000000 --- a/model/einvoice/AlibabaEinvoiceIncomeScanReturnResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -进项扫描状态回传 API返回值 -alibaba.einvoice.income.scan.return - -回传进项扫描每个阶段的状态,比如ocr开始,ocr结束,查验开始,查验结束等 -*/ -type AlibabaEinvoiceIncomeScanReturnAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceIncomeScanReturnResponse -} - -// 进项扫描状态回传 成功返回结果 -type AlibabaEinvoiceIncomeScanReturnResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_income_scan_return_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否回传成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceIncomeTokenReturnAPIRequest.go b/model/einvoice/AlibabaEinvoiceIncomeTokenReturnAPIRequest.go new file mode 100644 index 0000000000..2bdc5f67dc --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceIncomeTokenReturnAPIRequest.go @@ -0,0 +1,150 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商回传税号token API请求 +alibaba.einvoice.income.token.return + +服务商回传税号token,用来勾选抵扣认证 +*/ +type AlibabaEinvoiceIncomeTokenReturnAPIRequest struct { + model.Params + // 税局所在区域,success=true时必填 + _area string + // 错误码,success=false时必填 + _errorCode string + // 错误信息,success=false时必填 + _errorMessage string + // token过期时间,success=true时必填 + _expireTime string + // 销售方企业名称,success=true时必填 + _payeeName string + // 销售方纳税人识别号,success=true时必填 + _payeeRegisterNo string + // token是否获取成功,true=成功, false=失败 + _success bool + // token,success=true时必填 + _token string +} + +// 初始化AlibabaEinvoiceIncomeTokenReturnAPIRequest对象 +func NewAlibabaEinvoiceIncomeTokenReturnRequest() *AlibabaEinvoiceIncomeTokenReturnAPIRequest{ + return &AlibabaEinvoiceIncomeTokenReturnAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceIncomeTokenReturnAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.income.token.return" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceIncomeTokenReturnAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Area Setter +// 税局所在区域,success=true时必填 +func (r *AlibabaEinvoiceIncomeTokenReturnAPIRequest) SetArea(_area string) error { + r._area = _area + r.Set("area", _area) + return nil +} + +// Area Getter +func (r AlibabaEinvoiceIncomeTokenReturnAPIRequest) GetArea() string { + return r._area +} +// ErrorCode Setter +// 错误码,success=false时必填 +func (r *AlibabaEinvoiceIncomeTokenReturnAPIRequest) SetErrorCode(_errorCode string) error { + r._errorCode = _errorCode + r.Set("error_code", _errorCode) + return nil +} + +// ErrorCode Getter +func (r AlibabaEinvoiceIncomeTokenReturnAPIRequest) GetErrorCode() string { + return r._errorCode +} +// ErrorMessage Setter +// 错误信息,success=false时必填 +func (r *AlibabaEinvoiceIncomeTokenReturnAPIRequest) SetErrorMessage(_errorMessage string) error { + r._errorMessage = _errorMessage + r.Set("error_message", _errorMessage) + return nil +} + +// ErrorMessage Getter +func (r AlibabaEinvoiceIncomeTokenReturnAPIRequest) GetErrorMessage() string { + return r._errorMessage +} +// ExpireTime Setter +// token过期时间,success=true时必填 +func (r *AlibabaEinvoiceIncomeTokenReturnAPIRequest) SetExpireTime(_expireTime string) error { + r._expireTime = _expireTime + r.Set("expire_time", _expireTime) + return nil +} + +// ExpireTime Getter +func (r AlibabaEinvoiceIncomeTokenReturnAPIRequest) GetExpireTime() string { + return r._expireTime +} +// PayeeName Setter +// 销售方企业名称,success=true时必填 +func (r *AlibabaEinvoiceIncomeTokenReturnAPIRequest) SetPayeeName(_payeeName string) error { + r._payeeName = _payeeName + r.Set("payee_name", _payeeName) + return nil +} + +// PayeeName Getter +func (r AlibabaEinvoiceIncomeTokenReturnAPIRequest) GetPayeeName() string { + return r._payeeName +} +// PayeeRegisterNo Setter +// 销售方纳税人识别号,success=true时必填 +func (r *AlibabaEinvoiceIncomeTokenReturnAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceIncomeTokenReturnAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// Success Setter +// token是否获取成功,true=成功, false=失败 +func (r *AlibabaEinvoiceIncomeTokenReturnAPIRequest) SetSuccess(_success bool) error { + r._success = _success + r.Set("success", _success) + return nil +} + +// Success Getter +func (r AlibabaEinvoiceIncomeTokenReturnAPIRequest) GetSuccess() bool { + return r._success +} +// Token Setter +// token,success=true时必填 +func (r *AlibabaEinvoiceIncomeTokenReturnAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaEinvoiceIncomeTokenReturnAPIRequest) GetToken() string { + return r._token +} diff --git a/model/einvoice/AlibabaEinvoiceIncomeTokenReturnAPIResponse.go b/model/einvoice/AlibabaEinvoiceIncomeTokenReturnAPIResponse.go new file mode 100644 index 0000000000..69823bb9c4 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceIncomeTokenReturnAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商回传税号token API返回值 +alibaba.einvoice.income.token.return + +服务商回传税号token,用来勾选抵扣认证 +*/ +type AlibabaEinvoiceIncomeTokenReturnAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceIncomeTokenReturnAPIResponseModel +} + +// 服务商回传税号token 成功返回结果 +type AlibabaEinvoiceIncomeTokenReturnAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_income_token_return_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result接口是否调用成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceIncomeTokenReturnResponse.go b/model/einvoice/AlibabaEinvoiceIncomeTokenReturnResponse.go deleted file mode 100644 index 4ffdd11f01..0000000000 --- a/model/einvoice/AlibabaEinvoiceIncomeTokenReturnResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商回传税号token API返回值 -alibaba.einvoice.income.token.return - -服务商回传税号token,用来勾选抵扣认证 -*/ -type AlibabaEinvoiceIncomeTokenReturnAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceIncomeTokenReturnResponse -} - -// 服务商回传税号token 成功返回结果 -type AlibabaEinvoiceIncomeTokenReturnResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_income_token_return_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result接口是否调用成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceIncomeVerifyReturnAPIRequest.go b/model/einvoice/AlibabaEinvoiceIncomeVerifyReturnAPIRequest.go new file mode 100644 index 0000000000..5c7ee780e7 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceIncomeVerifyReturnAPIRequest.go @@ -0,0 +1,430 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商回传发票查验的结果 API请求 +alibaba.einvoice.income.verify.return + +服务商回传发票查验的结果,分两种场景:扫描驱动服务商主动回传;阿里主动发起的查验回传 +*/ +type AlibabaEinvoiceIncomeVerifyReturnAPIRequest struct { + model.Params + // 校验码,success=true时必填 + _checksum string + // 错误码,success=false时必填 + _errorCode string + // 错误信息,success=false时必填 + _errorMessage string + // 发票影像编号,type=1时必填 + _imageId string + // 价税合计金额,success=true时必填,invoiceAmount=sumPrice+sumTax + _invoiceAmount string + // 发票代码,success=true时必填 + _invoiceCode string + // 开票日期,格式为yyyy-MM-dd,success=true时必填 + _invoiceDate string + // 发票明细 + _invoiceItems []InvoiceItem + // 发票备注 + _invoiceMemo string + // 发票号码,success=true时必填 + _invoiceNo string + // 机器编号 + _machineNo string + // 销售方地址电话 + _payeeAddressPhone string + // 销售方银行及账号 + _payeeBankAccount string + // 复核人 + _payeeChecker string + // 销售方名称,success=true时必填 + _payeeName string + // 开票人 + _payeeOperator string + // 收款人 + _payeeReceiver string + // 销售方纳税人识别号,success=true时必填 + _payeeRegisterNo string + // 购买方地址电话 + _payerAddressPhone string + // 购买方银行及账号 + _payerBankAccount string + // 购买方名称,即发票抬头,success=true时必填 + _payerName string + // 购买方纳税人识别号 + _payerRegisterNo string + // 开票请求标识,扫描驱动回传type=1时填批次号 + _reqIndex string + // 查验结果,true=成功,false=失败 + _success bool + // 发票不含税金额,success=true时必填 + _sumPrice string + // 发票税额,success=true时必填 + _sumTax string + // 请求类型,0=阿里主动发起的查验,1=扫描驱动服务商主动回传查验结果 + _type int64 + // 发票状态,0=无效(作废),1=有效 + _invoiceStatus int64 +} + +// 初始化AlibabaEinvoiceIncomeVerifyReturnAPIRequest对象 +func NewAlibabaEinvoiceIncomeVerifyReturnRequest() *AlibabaEinvoiceIncomeVerifyReturnAPIRequest{ + return &AlibabaEinvoiceIncomeVerifyReturnAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.income.verify.return" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Checksum Setter +// 校验码,success=true时必填 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetChecksum(_checksum string) error { + r._checksum = _checksum + r.Set("checksum", _checksum) + return nil +} + +// Checksum Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetChecksum() string { + return r._checksum +} +// ErrorCode Setter +// 错误码,success=false时必填 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetErrorCode(_errorCode string) error { + r._errorCode = _errorCode + r.Set("error_code", _errorCode) + return nil +} + +// ErrorCode Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetErrorCode() string { + return r._errorCode +} +// ErrorMessage Setter +// 错误信息,success=false时必填 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetErrorMessage(_errorMessage string) error { + r._errorMessage = _errorMessage + r.Set("error_message", _errorMessage) + return nil +} + +// ErrorMessage Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetErrorMessage() string { + return r._errorMessage +} +// ImageId Setter +// 发票影像编号,type=1时必填 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetImageId(_imageId string) error { + r._imageId = _imageId + r.Set("image_id", _imageId) + return nil +} + +// ImageId Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetImageId() string { + return r._imageId +} +// InvoiceAmount Setter +// 价税合计金额,success=true时必填,invoiceAmount=sumPrice+sumTax +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetInvoiceAmount(_invoiceAmount string) error { + r._invoiceAmount = _invoiceAmount + r.Set("invoice_amount", _invoiceAmount) + return nil +} + +// InvoiceAmount Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetInvoiceAmount() string { + return r._invoiceAmount +} +// InvoiceCode Setter +// 发票代码,success=true时必填 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetInvoiceCode(_invoiceCode string) error { + r._invoiceCode = _invoiceCode + r.Set("invoice_code", _invoiceCode) + return nil +} + +// InvoiceCode Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetInvoiceCode() string { + return r._invoiceCode +} +// InvoiceDate Setter +// 开票日期,格式为yyyy-MM-dd,success=true时必填 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetInvoiceDate(_invoiceDate string) error { + r._invoiceDate = _invoiceDate + r.Set("invoice_date", _invoiceDate) + return nil +} + +// InvoiceDate Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetInvoiceDate() string { + return r._invoiceDate +} +// InvoiceItems Setter +// 发票明细 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetInvoiceItems(_invoiceItems []InvoiceItem) error { + r._invoiceItems = _invoiceItems + r.Set("invoice_items", _invoiceItems) + return nil +} + +// InvoiceItems Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetInvoiceItems() []InvoiceItem { + return r._invoiceItems +} +// InvoiceMemo Setter +// 发票备注 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetInvoiceMemo(_invoiceMemo string) error { + r._invoiceMemo = _invoiceMemo + r.Set("invoice_memo", _invoiceMemo) + return nil +} + +// InvoiceMemo Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetInvoiceMemo() string { + return r._invoiceMemo +} +// InvoiceNo Setter +// 发票号码,success=true时必填 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetInvoiceNo(_invoiceNo string) error { + r._invoiceNo = _invoiceNo + r.Set("invoice_no", _invoiceNo) + return nil +} + +// InvoiceNo Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetInvoiceNo() string { + return r._invoiceNo +} +// MachineNo Setter +// 机器编号 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetMachineNo(_machineNo string) error { + r._machineNo = _machineNo + r.Set("machine_no", _machineNo) + return nil +} + +// MachineNo Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetMachineNo() string { + return r._machineNo +} +// PayeeAddressPhone Setter +// 销售方地址电话 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetPayeeAddressPhone(_payeeAddressPhone string) error { + r._payeeAddressPhone = _payeeAddressPhone + r.Set("payee_address_phone", _payeeAddressPhone) + return nil +} + +// PayeeAddressPhone Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetPayeeAddressPhone() string { + return r._payeeAddressPhone +} +// PayeeBankAccount Setter +// 销售方银行及账号 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetPayeeBankAccount(_payeeBankAccount string) error { + r._payeeBankAccount = _payeeBankAccount + r.Set("payee_bank_account", _payeeBankAccount) + return nil +} + +// PayeeBankAccount Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetPayeeBankAccount() string { + return r._payeeBankAccount +} +// PayeeChecker Setter +// 复核人 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetPayeeChecker(_payeeChecker string) error { + r._payeeChecker = _payeeChecker + r.Set("payee_checker", _payeeChecker) + return nil +} + +// PayeeChecker Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetPayeeChecker() string { + return r._payeeChecker +} +// PayeeName Setter +// 销售方名称,success=true时必填 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetPayeeName(_payeeName string) error { + r._payeeName = _payeeName + r.Set("payee_name", _payeeName) + return nil +} + +// PayeeName Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetPayeeName() string { + return r._payeeName +} +// PayeeOperator Setter +// 开票人 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetPayeeOperator(_payeeOperator string) error { + r._payeeOperator = _payeeOperator + r.Set("payee_operator", _payeeOperator) + return nil +} + +// PayeeOperator Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetPayeeOperator() string { + return r._payeeOperator +} +// PayeeReceiver Setter +// 收款人 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetPayeeReceiver(_payeeReceiver string) error { + r._payeeReceiver = _payeeReceiver + r.Set("payee_receiver", _payeeReceiver) + return nil +} + +// PayeeReceiver Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetPayeeReceiver() string { + return r._payeeReceiver +} +// PayeeRegisterNo Setter +// 销售方纳税人识别号,success=true时必填 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// PayerAddressPhone Setter +// 购买方地址电话 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetPayerAddressPhone(_payerAddressPhone string) error { + r._payerAddressPhone = _payerAddressPhone + r.Set("payer_address_phone", _payerAddressPhone) + return nil +} + +// PayerAddressPhone Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetPayerAddressPhone() string { + return r._payerAddressPhone +} +// PayerBankAccount Setter +// 购买方银行及账号 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetPayerBankAccount(_payerBankAccount string) error { + r._payerBankAccount = _payerBankAccount + r.Set("payer_bank_account", _payerBankAccount) + return nil +} + +// PayerBankAccount Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetPayerBankAccount() string { + return r._payerBankAccount +} +// PayerName Setter +// 购买方名称,即发票抬头,success=true时必填 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetPayerName(_payerName string) error { + r._payerName = _payerName + r.Set("payer_name", _payerName) + return nil +} + +// PayerName Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetPayerName() string { + return r._payerName +} +// PayerRegisterNo Setter +// 购买方纳税人识别号 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetPayerRegisterNo(_payerRegisterNo string) error { + r._payerRegisterNo = _payerRegisterNo + r.Set("payer_register_no", _payerRegisterNo) + return nil +} + +// PayerRegisterNo Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetPayerRegisterNo() string { + return r._payerRegisterNo +} +// ReqIndex Setter +// 开票请求标识,扫描驱动回传type=1时填批次号 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetReqIndex(_reqIndex string) error { + r._reqIndex = _reqIndex + r.Set("req_index", _reqIndex) + return nil +} + +// ReqIndex Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetReqIndex() string { + return r._reqIndex +} +// Success Setter +// 查验结果,true=成功,false=失败 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetSuccess(_success bool) error { + r._success = _success + r.Set("success", _success) + return nil +} + +// Success Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetSuccess() bool { + return r._success +} +// SumPrice Setter +// 发票不含税金额,success=true时必填 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetSumPrice(_sumPrice string) error { + r._sumPrice = _sumPrice + r.Set("sum_price", _sumPrice) + return nil +} + +// SumPrice Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetSumPrice() string { + return r._sumPrice +} +// SumTax Setter +// 发票税额,success=true时必填 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetSumTax(_sumTax string) error { + r._sumTax = _sumTax + r.Set("sum_tax", _sumTax) + return nil +} + +// SumTax Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetSumTax() string { + return r._sumTax +} +// Type Setter +// 请求类型,0=阿里主动发起的查验,1=扫描驱动服务商主动回传查验结果 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetType() int64 { + return r._type +} +// InvoiceStatus Setter +// 发票状态,0=无效(作废),1=有效 +func (r *AlibabaEinvoiceIncomeVerifyReturnAPIRequest) SetInvoiceStatus(_invoiceStatus int64) error { + r._invoiceStatus = _invoiceStatus + r.Set("invoice_status", _invoiceStatus) + return nil +} + +// InvoiceStatus Getter +func (r AlibabaEinvoiceIncomeVerifyReturnAPIRequest) GetInvoiceStatus() int64 { + return r._invoiceStatus +} diff --git a/model/einvoice/AlibabaEinvoiceIncomeVerifyReturnAPIResponse.go b/model/einvoice/AlibabaEinvoiceIncomeVerifyReturnAPIResponse.go new file mode 100644 index 0000000000..1a5120b1ef --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceIncomeVerifyReturnAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商回传发票查验的结果 API返回值 +alibaba.einvoice.income.verify.return + +服务商回传发票查验的结果,分两种场景:扫描驱动服务商主动回传;阿里主动发起的查验回传 +*/ +type AlibabaEinvoiceIncomeVerifyReturnAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceIncomeVerifyReturnAPIResponseModel +} + +// 服务商回传发票查验的结果 成功返回结果 +type AlibabaEinvoiceIncomeVerifyReturnAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_income_verify_return_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口调用结果,true=成功,false=失败,subCode以isp开头时需要服务商重试 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceIncomeVerifyReturnResponse.go b/model/einvoice/AlibabaEinvoiceIncomeVerifyReturnResponse.go deleted file mode 100644 index dfc1e91cf6..0000000000 --- a/model/einvoice/AlibabaEinvoiceIncomeVerifyReturnResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商回传发票查验的结果 API返回值 -alibaba.einvoice.income.verify.return - -服务商回传发票查验的结果,分两种场景:扫描驱动服务商主动回传;阿里主动发起的查验回传 -*/ -type AlibabaEinvoiceIncomeVerifyReturnAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceIncomeVerifyReturnResponse -} - -// 服务商回传发票查验的结果 成功返回结果 -type AlibabaEinvoiceIncomeVerifyReturnResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_income_verify_return_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口调用结果,true=成功,false=失败,subCode以isp开头时需要服务商重试 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceInvoiceapplyGetAPIRequest.go b/model/einvoice/AlibabaEinvoiceInvoiceapplyGetAPIRequest.go new file mode 100644 index 0000000000..e107539186 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceInvoiceapplyGetAPIRequest.go @@ -0,0 +1,52 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商家的开票申请 API请求 +alibaba.einvoice.invoiceapply.get + +开票服务商接收到商家发起的开票申请消息后,调用此接口拉取商家详细的开票申请内容 +*/ +type AlibabaEinvoiceInvoiceapplyGetAPIRequest struct { + model.Params + // 开票申请id + _applyId string +} + +// 初始化AlibabaEinvoiceInvoiceapplyGetAPIRequest对象 +func NewAlibabaEinvoiceInvoiceapplyGetRequest() *AlibabaEinvoiceInvoiceapplyGetAPIRequest{ + return &AlibabaEinvoiceInvoiceapplyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceInvoiceapplyGetAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.invoiceapply.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceInvoiceapplyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApplyId Setter +// 开票申请id +func (r *AlibabaEinvoiceInvoiceapplyGetAPIRequest) SetApplyId(_applyId string) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r AlibabaEinvoiceInvoiceapplyGetAPIRequest) GetApplyId() string { + return r._applyId +} diff --git a/model/einvoice/AlibabaEinvoiceInvoiceapplyGetAPIResponse.go b/model/einvoice/AlibabaEinvoiceInvoiceapplyGetAPIResponse.go new file mode 100644 index 0000000000..05938020c5 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceInvoiceapplyGetAPIResponse.go @@ -0,0 +1,29 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商家的开票申请 API返回值 +alibaba.einvoice.invoiceapply.get + +开票服务商接收到商家发起的开票申请消息后,调用此接口拉取商家详细的开票申请内容 +*/ +type AlibabaEinvoiceInvoiceapplyGetAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceInvoiceapplyGetAPIResponseModel +} + +// 获取商家的开票申请 成功返回结果 +type AlibabaEinvoiceInvoiceapplyGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_invoiceapply_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 开票申请查询结果 + Result *UserInvoiceApplyDto `json:"result,omitempty" xml:"result,omitempty"` + // totalCount + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceInvoiceapplyGetResponse.go b/model/einvoice/AlibabaEinvoiceInvoiceapplyGetResponse.go deleted file mode 100644 index e3e1590d2b..0000000000 --- a/model/einvoice/AlibabaEinvoiceInvoiceapplyGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取商家的开票申请 API返回值 -alibaba.einvoice.invoiceapply.get - -开票服务商接收到商家发起的开票申请消息后,调用此接口拉取商家详细的开票申请内容 -*/ -type AlibabaEinvoiceInvoiceapplyGetAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceInvoiceapplyGetResponse -} - -// 获取商家的开票申请 成功返回结果 -type AlibabaEinvoiceInvoiceapplyGetResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_invoiceapply_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 开票申请查询结果 - Result *UserInvoiceApplyDto `json:"result,omitempty" xml:"result,omitempty"` - // totalCount - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceInvoiceapplyUpdateAPIRequest.go b/model/einvoice/AlibabaEinvoiceInvoiceapplyUpdateAPIRequest.go new file mode 100644 index 0000000000..328169dac2 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceInvoiceapplyUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家开票申请单状态回传 API请求 +alibaba.einvoice.invoiceapply.update + +开票服务商更新商家开票申请单状态 +*/ +type AlibabaEinvoiceInvoiceapplyUpdateAPIRequest struct { + model.Params + // 申请单id + _applyId string + // 申请单状态:1:待确认,2:开票中,3:拒绝开票,4:发票已发出,0:完成开票 + _status int64 + // 扩展信息,目前用于回传文本及物流消息 + _exInfo string +} + +// 初始化AlibabaEinvoiceInvoiceapplyUpdateAPIRequest对象 +func NewAlibabaEinvoiceInvoiceapplyUpdateRequest() *AlibabaEinvoiceInvoiceapplyUpdateAPIRequest{ + return &AlibabaEinvoiceInvoiceapplyUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceInvoiceapplyUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.invoiceapply.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceInvoiceapplyUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApplyId Setter +// 申请单id +func (r *AlibabaEinvoiceInvoiceapplyUpdateAPIRequest) SetApplyId(_applyId string) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r AlibabaEinvoiceInvoiceapplyUpdateAPIRequest) GetApplyId() string { + return r._applyId +} +// Status Setter +// 申请单状态:1:待确认,2:开票中,3:拒绝开票,4:发票已发出,0:完成开票 +func (r *AlibabaEinvoiceInvoiceapplyUpdateAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaEinvoiceInvoiceapplyUpdateAPIRequest) GetStatus() int64 { + return r._status +} +// ExInfo Setter +// 扩展信息,目前用于回传文本及物流消息 +func (r *AlibabaEinvoiceInvoiceapplyUpdateAPIRequest) SetExInfo(_exInfo string) error { + r._exInfo = _exInfo + r.Set("ex_info", _exInfo) + return nil +} + +// ExInfo Getter +func (r AlibabaEinvoiceInvoiceapplyUpdateAPIRequest) GetExInfo() string { + return r._exInfo +} diff --git a/model/einvoice/AlibabaEinvoiceInvoiceapplyUpdateAPIResponse.go b/model/einvoice/AlibabaEinvoiceInvoiceapplyUpdateAPIResponse.go new file mode 100644 index 0000000000..c502f805e0 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceInvoiceapplyUpdateAPIResponse.go @@ -0,0 +1,29 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家开票申请单状态回传 API返回值 +alibaba.einvoice.invoiceapply.update + +开票服务商更新商家开票申请单状态 +*/ +type AlibabaEinvoiceInvoiceapplyUpdateAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceInvoiceapplyUpdateAPIResponseModel +} + +// 商家开票申请单状态回传 成功返回结果 +type AlibabaEinvoiceInvoiceapplyUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_invoiceapply_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 更新结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // totalCount + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceInvoiceapplyUpdateResponse.go b/model/einvoice/AlibabaEinvoiceInvoiceapplyUpdateResponse.go deleted file mode 100644 index 3c6ce3d9ab..0000000000 --- a/model/einvoice/AlibabaEinvoiceInvoiceapplyUpdateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家开票申请单状态回传 API返回值 -alibaba.einvoice.invoiceapply.update - -开票服务商更新商家开票申请单状态 -*/ -type AlibabaEinvoiceInvoiceapplyUpdateAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceInvoiceapplyUpdateResponse -} - -// 商家开票申请单状态回传 成功返回结果 -type AlibabaEinvoiceInvoiceapplyUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_invoiceapply_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 更新结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // totalCount - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceItemUpdateAPIRequest.go b/model/einvoice/AlibabaEinvoiceItemUpdateAPIRequest.go new file mode 100644 index 0000000000..6c5de1ce1e --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceItemUpdateAPIRequest.go @@ -0,0 +1,178 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改商品开票信息 API请求 +alibaba.einvoice.item.update + +ERP通过接口将商品的开票信息同步给阿里发票平台,自动开票时将读取这些开票信息,需要联系阿里小二开通对应的权限 +*/ +type AlibabaEinvoiceItemUpdateAPIRequest struct { + model.Params + // 商品的开票名称,对应发票的货物劳务名称,值DELETE时表示删除 + _invoiceName string + // 商品id,优先级高于outerId,商品必须归属于店铺,itemId和outerId不能同时为空 + _itemId int64 + // 税收分类编码,需要精确到叶子节点,必须和taxRate同时修改或删除,值DELETE时表示删除 + _itemNo string + // skuId,必须是itemId下的sku,填写skuId后,修改和删除sku的开票信息 + _skuId int64 + // 规格型号,值DELETE时表示删除 + _specification string + // 税率,可选值0,3,4,5,6,10,11,13, 16,17,必须和itemNo同时修改或删除,值为DELETE时表示删除 + _taxRate string + // 0税率标识,只有税率为0的情况才有值,0=出口零税率,1=免税,2=不征收,3=普通零税率,值为DELETE时表示删除 + _zeroRateFlag string + // 单位,值DELETE时表示删除 + _unit string + // 商家外部商品id,如果outerId对应了多个天猫sku,则会更新所有的sku开票信息。itemId和outerId不能同时为空 + _outerId string + // 是否根据outerId更新所有对应sku的开票信息,true=更新,false=开票信息维护在发票平台;自动开票时,根据skuId获取outerId,再根据outerId查询开票信息。outerId不为空时必填 + _updateSku bool +} + +// 初始化AlibabaEinvoiceItemUpdateAPIRequest对象 +func NewAlibabaEinvoiceItemUpdateRequest() *AlibabaEinvoiceItemUpdateAPIRequest{ + return &AlibabaEinvoiceItemUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceItemUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.item.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceItemUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InvoiceName Setter +// 商品的开票名称,对应发票的货物劳务名称,值DELETE时表示删除 +func (r *AlibabaEinvoiceItemUpdateAPIRequest) SetInvoiceName(_invoiceName string) error { + r._invoiceName = _invoiceName + r.Set("invoice_name", _invoiceName) + return nil +} + +// InvoiceName Getter +func (r AlibabaEinvoiceItemUpdateAPIRequest) GetInvoiceName() string { + return r._invoiceName +} +// ItemId Setter +// 商品id,优先级高于outerId,商品必须归属于店铺,itemId和outerId不能同时为空 +func (r *AlibabaEinvoiceItemUpdateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaEinvoiceItemUpdateAPIRequest) GetItemId() int64 { + return r._itemId +} +// ItemNo Setter +// 税收分类编码,需要精确到叶子节点,必须和taxRate同时修改或删除,值DELETE时表示删除 +func (r *AlibabaEinvoiceItemUpdateAPIRequest) SetItemNo(_itemNo string) error { + r._itemNo = _itemNo + r.Set("item_no", _itemNo) + return nil +} + +// ItemNo Getter +func (r AlibabaEinvoiceItemUpdateAPIRequest) GetItemNo() string { + return r._itemNo +} +// SkuId Setter +// skuId,必须是itemId下的sku,填写skuId后,修改和删除sku的开票信息 +func (r *AlibabaEinvoiceItemUpdateAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r AlibabaEinvoiceItemUpdateAPIRequest) GetSkuId() int64 { + return r._skuId +} +// Specification Setter +// 规格型号,值DELETE时表示删除 +func (r *AlibabaEinvoiceItemUpdateAPIRequest) SetSpecification(_specification string) error { + r._specification = _specification + r.Set("specification", _specification) + return nil +} + +// Specification Getter +func (r AlibabaEinvoiceItemUpdateAPIRequest) GetSpecification() string { + return r._specification +} +// TaxRate Setter +// 税率,可选值0,3,4,5,6,10,11,13, 16,17,必须和itemNo同时修改或删除,值为DELETE时表示删除 +func (r *AlibabaEinvoiceItemUpdateAPIRequest) SetTaxRate(_taxRate string) error { + r._taxRate = _taxRate + r.Set("tax_rate", _taxRate) + return nil +} + +// TaxRate Getter +func (r AlibabaEinvoiceItemUpdateAPIRequest) GetTaxRate() string { + return r._taxRate +} +// ZeroRateFlag Setter +// 0税率标识,只有税率为0的情况才有值,0=出口零税率,1=免税,2=不征收,3=普通零税率,值为DELETE时表示删除 +func (r *AlibabaEinvoiceItemUpdateAPIRequest) SetZeroRateFlag(_zeroRateFlag string) error { + r._zeroRateFlag = _zeroRateFlag + r.Set("zero_rate_flag", _zeroRateFlag) + return nil +} + +// ZeroRateFlag Getter +func (r AlibabaEinvoiceItemUpdateAPIRequest) GetZeroRateFlag() string { + return r._zeroRateFlag +} +// Unit Setter +// 单位,值DELETE时表示删除 +func (r *AlibabaEinvoiceItemUpdateAPIRequest) SetUnit(_unit string) error { + r._unit = _unit + r.Set("unit", _unit) + return nil +} + +// Unit Getter +func (r AlibabaEinvoiceItemUpdateAPIRequest) GetUnit() string { + return r._unit +} +// OuterId Setter +// 商家外部商品id,如果outerId对应了多个天猫sku,则会更新所有的sku开票信息。itemId和outerId不能同时为空 +func (r *AlibabaEinvoiceItemUpdateAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r AlibabaEinvoiceItemUpdateAPIRequest) GetOuterId() string { + return r._outerId +} +// UpdateSku Setter +// 是否根据outerId更新所有对应sku的开票信息,true=更新,false=开票信息维护在发票平台;自动开票时,根据skuId获取outerId,再根据outerId查询开票信息。outerId不为空时必填 +func (r *AlibabaEinvoiceItemUpdateAPIRequest) SetUpdateSku(_updateSku bool) error { + r._updateSku = _updateSku + r.Set("update_sku", _updateSku) + return nil +} + +// UpdateSku Getter +func (r AlibabaEinvoiceItemUpdateAPIRequest) GetUpdateSku() bool { + return r._updateSku +} diff --git a/model/einvoice/AlibabaEinvoiceItemUpdateAPIResponse.go b/model/einvoice/AlibabaEinvoiceItemUpdateAPIResponse.go new file mode 100644 index 0000000000..a4cc03c2f6 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceItemUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改商品开票信息 API返回值 +alibaba.einvoice.item.update + +ERP通过接口将商品的开票信息同步给阿里发票平台,自动开票时将读取这些开票信息,需要联系阿里小二开通对应的权限 +*/ +type AlibabaEinvoiceItemUpdateAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceItemUpdateAPIResponseModel +} + +// 修改商品开票信息 成功返回结果 +type AlibabaEinvoiceItemUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_item_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改结果 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceItemUpdateResponse.go b/model/einvoice/AlibabaEinvoiceItemUpdateResponse.go deleted file mode 100644 index 2a0410ce68..0000000000 --- a/model/einvoice/AlibabaEinvoiceItemUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改商品开票信息 API返回值 -alibaba.einvoice.item.update - -ERP通过接口将商品的开票信息同步给阿里发票平台,自动开票时将读取这些开票信息,需要联系阿里小二开通对应的权限 -*/ -type AlibabaEinvoiceItemUpdateAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceItemUpdateResponse -} - -// 修改商品开票信息 成功返回结果 -type AlibabaEinvoiceItemUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_item_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改结果 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceMerchantAddAPIRequest.go b/model/einvoice/AlibabaEinvoiceMerchantAddAPIRequest.go new file mode 100644 index 0000000000..e3c70aa8d1 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceMerchantAddAPIRequest.go @@ -0,0 +1,137 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发票中台-同平台授权税号适用商户 API请求 +alibaba.einvoice.merchant.add + +适用于以下场景: +业务税号入驻成功后,需要将税号授权给同平台下其他商户,使得其他商户也具备开票能力 +*/ +type AlibabaEinvoiceMerchantAddAPIRequest struct { + model.Params + // 验证码,门店绑定已入驻税号接口返回的taxToken + _taxToken string + // 业务方发起新增门店的唯一幂等ID, 由业务方生成。只能由字母和数字组成。 + _outerId string + // 业务平台门店ID + _merchantUserId string + // 业务平台code, 由阿里发票分配 + _platformCode string + // 税务登记号 + _payeeRegisterNo string + // 业务平台门店名称 + _merchantName string + // 税盘列表 + _deviceIds []string +} + +// 初始化AlibabaEinvoiceMerchantAddAPIRequest对象 +func NewAlibabaEinvoiceMerchantAddRequest() *AlibabaEinvoiceMerchantAddAPIRequest{ + return &AlibabaEinvoiceMerchantAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceMerchantAddAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.merchant.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceMerchantAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TaxToken Setter +// 验证码,门店绑定已入驻税号接口返回的taxToken +func (r *AlibabaEinvoiceMerchantAddAPIRequest) SetTaxToken(_taxToken string) error { + r._taxToken = _taxToken + r.Set("tax_token", _taxToken) + return nil +} + +// TaxToken Getter +func (r AlibabaEinvoiceMerchantAddAPIRequest) GetTaxToken() string { + return r._taxToken +} +// OuterId Setter +// 业务方发起新增门店的唯一幂等ID, 由业务方生成。只能由字母和数字组成。 +func (r *AlibabaEinvoiceMerchantAddAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r AlibabaEinvoiceMerchantAddAPIRequest) GetOuterId() string { + return r._outerId +} +// MerchantUserId Setter +// 业务平台门店ID +func (r *AlibabaEinvoiceMerchantAddAPIRequest) SetMerchantUserId(_merchantUserId string) error { + r._merchantUserId = _merchantUserId + r.Set("merchant_user_id", _merchantUserId) + return nil +} + +// MerchantUserId Getter +func (r AlibabaEinvoiceMerchantAddAPIRequest) GetMerchantUserId() string { + return r._merchantUserId +} +// PlatformCode Setter +// 业务平台code, 由阿里发票分配 +func (r *AlibabaEinvoiceMerchantAddAPIRequest) SetPlatformCode(_platformCode string) error { + r._platformCode = _platformCode + r.Set("platform_code", _platformCode) + return nil +} + +// PlatformCode Getter +func (r AlibabaEinvoiceMerchantAddAPIRequest) GetPlatformCode() string { + return r._platformCode +} +// PayeeRegisterNo Setter +// 税务登记号 +func (r *AlibabaEinvoiceMerchantAddAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceMerchantAddAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// MerchantName Setter +// 业务平台门店名称 +func (r *AlibabaEinvoiceMerchantAddAPIRequest) SetMerchantName(_merchantName string) error { + r._merchantName = _merchantName + r.Set("merchant_name", _merchantName) + return nil +} + +// MerchantName Getter +func (r AlibabaEinvoiceMerchantAddAPIRequest) GetMerchantName() string { + return r._merchantName +} +// DeviceIds Setter +// 税盘列表 +func (r *AlibabaEinvoiceMerchantAddAPIRequest) SetDeviceIds(_deviceIds []string) error { + r._deviceIds = _deviceIds + r.Set("device_ids", _deviceIds) + return nil +} + +// DeviceIds Getter +func (r AlibabaEinvoiceMerchantAddAPIRequest) GetDeviceIds() []string { + return r._deviceIds +} diff --git a/model/einvoice/AlibabaEinvoiceMerchantAddAPIResponse.go b/model/einvoice/AlibabaEinvoiceMerchantAddAPIResponse.go new file mode 100644 index 0000000000..1da187f1a0 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceMerchantAddAPIResponse.go @@ -0,0 +1,28 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发票中台-同平台授权税号适用商户 API返回值 +alibaba.einvoice.merchant.add + +适用于以下场景: +业务税号入驻成功后,需要将税号授权给同平台下其他商户,使得其他商户也具备开票能力 +*/ +type AlibabaEinvoiceMerchantAddAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceMerchantAddAPIResponseModel +} + +// 发票中台-同平台授权税号适用商户 成功返回结果 +type AlibabaEinvoiceMerchantAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_merchant_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 新增成功的业务平台门店ID + MerchantUserId string `json:"merchant_user_id,omitempty" xml:"merchant_user_id,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceMerchantAddResponse.go b/model/einvoice/AlibabaEinvoiceMerchantAddResponse.go deleted file mode 100644 index fa628378ea..0000000000 --- a/model/einvoice/AlibabaEinvoiceMerchantAddResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发票中台-同平台授权税号适用商户 API返回值 -alibaba.einvoice.merchant.add - -适用于以下场景: -业务税号入驻成功后,需要将税号授权给同平台下其他商户,使得其他商户也具备开票能力 -*/ -type AlibabaEinvoiceMerchantAddAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceMerchantAddResponse -} - -// 发票中台-同平台授权税号适用商户 成功返回结果 -type AlibabaEinvoiceMerchantAddResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_merchant_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 新增成功的业务平台门店ID - MerchantUserId string `json:"merchant_user_id,omitempty" xml:"merchant_user_id,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceMerchantBindcompanyAPIRequest.go b/model/einvoice/AlibabaEinvoiceMerchantBindcompanyAPIRequest.go new file mode 100644 index 0000000000..770132fec2 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceMerchantBindcompanyAPIRequest.go @@ -0,0 +1,136 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发票中台-跨平台绑定已入驻税号与商户 API请求 +alibaba.einvoice.merchant.bindcompany + +税号在阿里发票平台入驻成功后,允许业务方通过本接口跨业务平台绑定入驻税号和业务平台商户,绑定成功后该商户可以使用该税号的盘进行开票。绑定成功后,可以使用同平台授权、取消授权税号适用商户接口来变更税号和商户关系。 +*/ +type AlibabaEinvoiceMerchantBindcompanyAPIRequest struct { + model.Params + // 业务方发起首次绑定门店的唯一幂等ID, 由业务方生成。只能由字母和数字组成。 + _outerId string + // 业务平台商户ID + _merchantUserId string + // 激活码 + _activationCode string + // 业务平台code, 由阿里发票分配 + _platformCode string + // 税务登记号 + _payeeRegisterNo string + // 业务平台门店名称 + _merchantName string + // 税号已入驻的原业务平台code + _sourcePlatformCode string +} + +// 初始化AlibabaEinvoiceMerchantBindcompanyAPIRequest对象 +func NewAlibabaEinvoiceMerchantBindcompanyRequest() *AlibabaEinvoiceMerchantBindcompanyAPIRequest{ + return &AlibabaEinvoiceMerchantBindcompanyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceMerchantBindcompanyAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.merchant.bindcompany" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceMerchantBindcompanyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterId Setter +// 业务方发起首次绑定门店的唯一幂等ID, 由业务方生成。只能由字母和数字组成。 +func (r *AlibabaEinvoiceMerchantBindcompanyAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r AlibabaEinvoiceMerchantBindcompanyAPIRequest) GetOuterId() string { + return r._outerId +} +// MerchantUserId Setter +// 业务平台商户ID +func (r *AlibabaEinvoiceMerchantBindcompanyAPIRequest) SetMerchantUserId(_merchantUserId string) error { + r._merchantUserId = _merchantUserId + r.Set("merchant_user_id", _merchantUserId) + return nil +} + +// MerchantUserId Getter +func (r AlibabaEinvoiceMerchantBindcompanyAPIRequest) GetMerchantUserId() string { + return r._merchantUserId +} +// ActivationCode Setter +// 激活码 +func (r *AlibabaEinvoiceMerchantBindcompanyAPIRequest) SetActivationCode(_activationCode string) error { + r._activationCode = _activationCode + r.Set("activation_code", _activationCode) + return nil +} + +// ActivationCode Getter +func (r AlibabaEinvoiceMerchantBindcompanyAPIRequest) GetActivationCode() string { + return r._activationCode +} +// PlatformCode Setter +// 业务平台code, 由阿里发票分配 +func (r *AlibabaEinvoiceMerchantBindcompanyAPIRequest) SetPlatformCode(_platformCode string) error { + r._platformCode = _platformCode + r.Set("platform_code", _platformCode) + return nil +} + +// PlatformCode Getter +func (r AlibabaEinvoiceMerchantBindcompanyAPIRequest) GetPlatformCode() string { + return r._platformCode +} +// PayeeRegisterNo Setter +// 税务登记号 +func (r *AlibabaEinvoiceMerchantBindcompanyAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceMerchantBindcompanyAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// MerchantName Setter +// 业务平台门店名称 +func (r *AlibabaEinvoiceMerchantBindcompanyAPIRequest) SetMerchantName(_merchantName string) error { + r._merchantName = _merchantName + r.Set("merchant_name", _merchantName) + return nil +} + +// MerchantName Getter +func (r AlibabaEinvoiceMerchantBindcompanyAPIRequest) GetMerchantName() string { + return r._merchantName +} +// SourcePlatformCode Setter +// 税号已入驻的原业务平台code +func (r *AlibabaEinvoiceMerchantBindcompanyAPIRequest) SetSourcePlatformCode(_sourcePlatformCode string) error { + r._sourcePlatformCode = _sourcePlatformCode + r.Set("source_platform_code", _sourcePlatformCode) + return nil +} + +// SourcePlatformCode Getter +func (r AlibabaEinvoiceMerchantBindcompanyAPIRequest) GetSourcePlatformCode() string { + return r._sourcePlatformCode +} diff --git a/model/einvoice/AlibabaEinvoiceMerchantBindcompanyAPIResponse.go b/model/einvoice/AlibabaEinvoiceMerchantBindcompanyAPIResponse.go new file mode 100644 index 0000000000..a2530b93e9 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceMerchantBindcompanyAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发票中台-跨平台绑定已入驻税号与商户 API返回值 +alibaba.einvoice.merchant.bindcompany + +税号在阿里发票平台入驻成功后,允许业务方通过本接口跨业务平台绑定入驻税号和业务平台商户,绑定成功后该商户可以使用该税号的盘进行开票。绑定成功后,可以使用同平台授权、取消授权税号适用商户接口来变更税号和商户关系。 +*/ +type AlibabaEinvoiceMerchantBindcompanyAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceMerchantBindcompanyAPIResponseModel +} + +// 发票中台-跨平台绑定已入驻税号与商户 成功返回结果 +type AlibabaEinvoiceMerchantBindcompanyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_merchant_bindcompany_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // token,此token用于税号适用门店新增和删除接口,需要业务方保存 + TaxToken string `json:"tax_token,omitempty" xml:"tax_token,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceMerchantBindcompanyResponse.go b/model/einvoice/AlibabaEinvoiceMerchantBindcompanyResponse.go deleted file mode 100644 index 0fa9be2e7c..0000000000 --- a/model/einvoice/AlibabaEinvoiceMerchantBindcompanyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发票中台-跨平台绑定已入驻税号与商户 API返回值 -alibaba.einvoice.merchant.bindcompany - -税号在阿里发票平台入驻成功后,允许业务方通过本接口跨业务平台绑定入驻税号和业务平台商户,绑定成功后该商户可以使用该税号的盘进行开票。绑定成功后,可以使用同平台授权、取消授权税号适用商户接口来变更税号和商户关系。 -*/ -type AlibabaEinvoiceMerchantBindcompanyAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceMerchantBindcompanyResponse -} - -// 发票中台-跨平台绑定已入驻税号与商户 成功返回结果 -type AlibabaEinvoiceMerchantBindcompanyResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_merchant_bindcompany_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // token,此token用于税号适用门店新增和删除接口,需要业务方保存 - TaxToken string `json:"tax_token,omitempty" xml:"tax_token,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceMerchantCreatereqAPIRequest.go b/model/einvoice/AlibabaEinvoiceMerchantCreatereqAPIRequest.go new file mode 100644 index 0000000000..6c15df7497 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceMerchantCreatereqAPIRequest.go @@ -0,0 +1,458 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家自研ERP开票请求接口 API请求 +alibaba.einvoice.merchant.createreq + +商家自研ERP发起开票请求,无需授权,API只能使用商家入驻的税号进行开票 +*/ +type AlibabaEinvoiceMerchantCreatereqAPIRequest struct { + model.Params + // 默认:0。对于商家对个人开具,为0;对于商家对企业开具,为1; + _businessType int64 + // ERP系统中的单据号。如果没有erp的唯一单据号。建议使用platform_code+”_”+ platform_tid的组合方式 + _erpTid string + // 电商平台代码。TB=淘宝 、TM=天猫 、JD=京东、DD=当当、PP=拍拍、YX=易讯、EBAY=ebay、QQ=QQ网购、AMAZON=亚马逊、SN=苏宁、GM=国美、WPH=唯品会、JM=聚美、LF=乐蜂、MGJ=蘑菇街、JS=聚尚、PX=拍鞋、YT=银泰、YHD=1号店、VANCL=凡客、YL=邮乐、YG=优购、1688=阿里巴巴、POS=POS门店、OTHER=其他, (只传英文编码) + _platformCode string + // 电商平台对应的主订单号 + _platformTid string + // 开票流水号,唯一标志开票请求。如果两次请求流水号相同,则表示重复请求。请调用平台统一流水号获取接口,alibaba.einvoice.serialno.generate。 + _serialNo string + // 开票方地址(新版中为必传) + _payeeAddress string + // 开票方银行及 帐号 + _payeeBankaccount string + // 开票方名称,公司名(如:XX商城) + _payeeName string + // 付款方税务登记证号。对企业开具电子发票时必填。目前北京地区暂未开放对企业开具电子发票,若北京地区放开后,对于向企业开具的情况,付款方税务登记证号和名称也不能为空 + _payerRegisterNo string + // 开票人 + _payeeOperator string + // 开票金额; 当开红票时,该字段为负数 + _invoiceAmount string + // 电子发票明细 + _invoiceItems []InvoiceItem + // 发票备注,有些省市会把此信息打印到PDF中 + _invoiceMemo string + // 发票(开票)类型,蓝票blue,红票red,默认blue + _invoiceType string + // 原发票代码(开红票时传入) + _normalInvoiceCode string + // 原发票号码(开红票时传入) + _normalInvoiceNo string + // 收款方税务登记证号 + _payeeRegisterNo string + // 消费者地址 + _payerAddress string + // 付款方开票开户银行及账号 + _payerBankaccount string + // 消费者电子邮箱 + _payerEmail string + // 付款方名称, 对应发票台头 + _payerName string + // 消费者联系电话 + _payerPhone string + // 合计金额(新版中为必传) 当开红票时,该字段为负数 + _sumPrice string + // 合计税额 当开红票时,该字段为负数 + _sumTax string + // 复核人 + _payeeChecker string + // 收款人 + _payeeReceiver string + // 收款方电话 + _payeePhone string + // 开票申请ID,接收了开票申请消息后,需要把apply_id带上 + _applyId string + // 发票种类,0=电子发票,1=纸质发票,2=专票 + _invoiceKind int64 + // 红字通知单号,冲红时需要,商家跟税局申请 + _redNoticeNo string +} + +// 初始化AlibabaEinvoiceMerchantCreatereqAPIRequest对象 +func NewAlibabaEinvoiceMerchantCreatereqRequest() *AlibabaEinvoiceMerchantCreatereqAPIRequest{ + return &AlibabaEinvoiceMerchantCreatereqAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.merchant.createreq" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BusinessType Setter +// 默认:0。对于商家对个人开具,为0;对于商家对企业开具,为1; +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetBusinessType(_businessType int64) error { + r._businessType = _businessType + r.Set("business_type", _businessType) + return nil +} + +// BusinessType Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetBusinessType() int64 { + return r._businessType +} +// ErpTid Setter +// ERP系统中的单据号。如果没有erp的唯一单据号。建议使用platform_code+”_”+ platform_tid的组合方式 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetErpTid(_erpTid string) error { + r._erpTid = _erpTid + r.Set("erp_tid", _erpTid) + return nil +} + +// ErpTid Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetErpTid() string { + return r._erpTid +} +// PlatformCode Setter +// 电商平台代码。TB=淘宝 、TM=天猫 、JD=京东、DD=当当、PP=拍拍、YX=易讯、EBAY=ebay、QQ=QQ网购、AMAZON=亚马逊、SN=苏宁、GM=国美、WPH=唯品会、JM=聚美、LF=乐蜂、MGJ=蘑菇街、JS=聚尚、PX=拍鞋、YT=银泰、YHD=1号店、VANCL=凡客、YL=邮乐、YG=优购、1688=阿里巴巴、POS=POS门店、OTHER=其他, (只传英文编码) +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetPlatformCode(_platformCode string) error { + r._platformCode = _platformCode + r.Set("platform_code", _platformCode) + return nil +} + +// PlatformCode Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetPlatformCode() string { + return r._platformCode +} +// PlatformTid Setter +// 电商平台对应的主订单号 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetPlatformTid(_platformTid string) error { + r._platformTid = _platformTid + r.Set("platform_tid", _platformTid) + return nil +} + +// PlatformTid Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetPlatformTid() string { + return r._platformTid +} +// SerialNo Setter +// 开票流水号,唯一标志开票请求。如果两次请求流水号相同,则表示重复请求。请调用平台统一流水号获取接口,alibaba.einvoice.serialno.generate。 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetSerialNo(_serialNo string) error { + r._serialNo = _serialNo + r.Set("serial_no", _serialNo) + return nil +} + +// SerialNo Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetSerialNo() string { + return r._serialNo +} +// PayeeAddress Setter +// 开票方地址(新版中为必传) +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetPayeeAddress(_payeeAddress string) error { + r._payeeAddress = _payeeAddress + r.Set("payee_address", _payeeAddress) + return nil +} + +// PayeeAddress Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetPayeeAddress() string { + return r._payeeAddress +} +// PayeeBankaccount Setter +// 开票方银行及 帐号 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetPayeeBankaccount(_payeeBankaccount string) error { + r._payeeBankaccount = _payeeBankaccount + r.Set("payee_bankaccount", _payeeBankaccount) + return nil +} + +// PayeeBankaccount Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetPayeeBankaccount() string { + return r._payeeBankaccount +} +// PayeeName Setter +// 开票方名称,公司名(如:XX商城) +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetPayeeName(_payeeName string) error { + r._payeeName = _payeeName + r.Set("payee_name", _payeeName) + return nil +} + +// PayeeName Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetPayeeName() string { + return r._payeeName +} +// PayerRegisterNo Setter +// 付款方税务登记证号。对企业开具电子发票时必填。目前北京地区暂未开放对企业开具电子发票,若北京地区放开后,对于向企业开具的情况,付款方税务登记证号和名称也不能为空 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetPayerRegisterNo(_payerRegisterNo string) error { + r._payerRegisterNo = _payerRegisterNo + r.Set("payer_register_no", _payerRegisterNo) + return nil +} + +// PayerRegisterNo Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetPayerRegisterNo() string { + return r._payerRegisterNo +} +// PayeeOperator Setter +// 开票人 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetPayeeOperator(_payeeOperator string) error { + r._payeeOperator = _payeeOperator + r.Set("payee_operator", _payeeOperator) + return nil +} + +// PayeeOperator Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetPayeeOperator() string { + return r._payeeOperator +} +// InvoiceAmount Setter +// 开票金额; 当开红票时,该字段为负数 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetInvoiceAmount(_invoiceAmount string) error { + r._invoiceAmount = _invoiceAmount + r.Set("invoice_amount", _invoiceAmount) + return nil +} + +// InvoiceAmount Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetInvoiceAmount() string { + return r._invoiceAmount +} +// InvoiceItems Setter +// 电子发票明细 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetInvoiceItems(_invoiceItems []InvoiceItem) error { + r._invoiceItems = _invoiceItems + r.Set("invoice_items", _invoiceItems) + return nil +} + +// InvoiceItems Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetInvoiceItems() []InvoiceItem { + return r._invoiceItems +} +// InvoiceMemo Setter +// 发票备注,有些省市会把此信息打印到PDF中 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetInvoiceMemo(_invoiceMemo string) error { + r._invoiceMemo = _invoiceMemo + r.Set("invoice_memo", _invoiceMemo) + return nil +} + +// InvoiceMemo Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetInvoiceMemo() string { + return r._invoiceMemo +} +// InvoiceType Setter +// 发票(开票)类型,蓝票blue,红票red,默认blue +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetInvoiceType(_invoiceType string) error { + r._invoiceType = _invoiceType + r.Set("invoice_type", _invoiceType) + return nil +} + +// InvoiceType Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetInvoiceType() string { + return r._invoiceType +} +// NormalInvoiceCode Setter +// 原发票代码(开红票时传入) +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetNormalInvoiceCode(_normalInvoiceCode string) error { + r._normalInvoiceCode = _normalInvoiceCode + r.Set("normal_invoice_code", _normalInvoiceCode) + return nil +} + +// NormalInvoiceCode Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetNormalInvoiceCode() string { + return r._normalInvoiceCode +} +// NormalInvoiceNo Setter +// 原发票号码(开红票时传入) +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetNormalInvoiceNo(_normalInvoiceNo string) error { + r._normalInvoiceNo = _normalInvoiceNo + r.Set("normal_invoice_no", _normalInvoiceNo) + return nil +} + +// NormalInvoiceNo Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetNormalInvoiceNo() string { + return r._normalInvoiceNo +} +// PayeeRegisterNo Setter +// 收款方税务登记证号 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// PayerAddress Setter +// 消费者地址 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetPayerAddress(_payerAddress string) error { + r._payerAddress = _payerAddress + r.Set("payer_address", _payerAddress) + return nil +} + +// PayerAddress Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetPayerAddress() string { + return r._payerAddress +} +// PayerBankaccount Setter +// 付款方开票开户银行及账号 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetPayerBankaccount(_payerBankaccount string) error { + r._payerBankaccount = _payerBankaccount + r.Set("payer_bankaccount", _payerBankaccount) + return nil +} + +// PayerBankaccount Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetPayerBankaccount() string { + return r._payerBankaccount +} +// PayerEmail Setter +// 消费者电子邮箱 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetPayerEmail(_payerEmail string) error { + r._payerEmail = _payerEmail + r.Set("payer_email", _payerEmail) + return nil +} + +// PayerEmail Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetPayerEmail() string { + return r._payerEmail +} +// PayerName Setter +// 付款方名称, 对应发票台头 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetPayerName(_payerName string) error { + r._payerName = _payerName + r.Set("payer_name", _payerName) + return nil +} + +// PayerName Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetPayerName() string { + return r._payerName +} +// PayerPhone Setter +// 消费者联系电话 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetPayerPhone(_payerPhone string) error { + r._payerPhone = _payerPhone + r.Set("payer_phone", _payerPhone) + return nil +} + +// PayerPhone Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetPayerPhone() string { + return r._payerPhone +} +// SumPrice Setter +// 合计金额(新版中为必传) 当开红票时,该字段为负数 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetSumPrice(_sumPrice string) error { + r._sumPrice = _sumPrice + r.Set("sum_price", _sumPrice) + return nil +} + +// SumPrice Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetSumPrice() string { + return r._sumPrice +} +// SumTax Setter +// 合计税额 当开红票时,该字段为负数 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetSumTax(_sumTax string) error { + r._sumTax = _sumTax + r.Set("sum_tax", _sumTax) + return nil +} + +// SumTax Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetSumTax() string { + return r._sumTax +} +// PayeeChecker Setter +// 复核人 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetPayeeChecker(_payeeChecker string) error { + r._payeeChecker = _payeeChecker + r.Set("payee_checker", _payeeChecker) + return nil +} + +// PayeeChecker Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetPayeeChecker() string { + return r._payeeChecker +} +// PayeeReceiver Setter +// 收款人 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetPayeeReceiver(_payeeReceiver string) error { + r._payeeReceiver = _payeeReceiver + r.Set("payee_receiver", _payeeReceiver) + return nil +} + +// PayeeReceiver Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetPayeeReceiver() string { + return r._payeeReceiver +} +// PayeePhone Setter +// 收款方电话 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetPayeePhone(_payeePhone string) error { + r._payeePhone = _payeePhone + r.Set("payee_phone", _payeePhone) + return nil +} + +// PayeePhone Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetPayeePhone() string { + return r._payeePhone +} +// ApplyId Setter +// 开票申请ID,接收了开票申请消息后,需要把apply_id带上 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetApplyId(_applyId string) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetApplyId() string { + return r._applyId +} +// InvoiceKind Setter +// 发票种类,0=电子发票,1=纸质发票,2=专票 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetInvoiceKind(_invoiceKind int64) error { + r._invoiceKind = _invoiceKind + r.Set("invoice_kind", _invoiceKind) + return nil +} + +// InvoiceKind Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetInvoiceKind() int64 { + return r._invoiceKind +} +// RedNoticeNo Setter +// 红字通知单号,冲红时需要,商家跟税局申请 +func (r *AlibabaEinvoiceMerchantCreatereqAPIRequest) SetRedNoticeNo(_redNoticeNo string) error { + r._redNoticeNo = _redNoticeNo + r.Set("red_notice_no", _redNoticeNo) + return nil +} + +// RedNoticeNo Getter +func (r AlibabaEinvoiceMerchantCreatereqAPIRequest) GetRedNoticeNo() string { + return r._redNoticeNo +} diff --git a/model/einvoice/AlibabaEinvoiceMerchantCreatereqAPIResponse.go b/model/einvoice/AlibabaEinvoiceMerchantCreatereqAPIResponse.go new file mode 100644 index 0000000000..c18ebada80 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceMerchantCreatereqAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家自研ERP开票请求接口 API返回值 +alibaba.einvoice.merchant.createreq + +商家自研ERP发起开票请求,无需授权,API只能使用商家入驻的税号进行开票 +*/ +type AlibabaEinvoiceMerchantCreatereqAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceMerchantCreatereqAPIResponseModel +} + +// 商家自研ERP开票请求接口 成功返回结果 +type AlibabaEinvoiceMerchantCreatereqAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_merchant_createreq_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 开票信息是否成功接受 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceMerchantCreatereqResponse.go b/model/einvoice/AlibabaEinvoiceMerchantCreatereqResponse.go deleted file mode 100644 index ce2191e0ab..0000000000 --- a/model/einvoice/AlibabaEinvoiceMerchantCreatereqResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家自研ERP开票请求接口 API返回值 -alibaba.einvoice.merchant.createreq - -商家自研ERP发起开票请求,无需授权,API只能使用商家入驻的税号进行开票 -*/ -type AlibabaEinvoiceMerchantCreatereqAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceMerchantCreatereqResponse -} - -// 商家自研ERP开票请求接口 成功返回结果 -type AlibabaEinvoiceMerchantCreatereqResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_merchant_createreq_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 开票信息是否成功接受 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceMerchantDeleteAPIRequest.go b/model/einvoice/AlibabaEinvoiceMerchantDeleteAPIRequest.go new file mode 100644 index 0000000000..20a51b35a1 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceMerchantDeleteAPIRequest.go @@ -0,0 +1,108 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发票中台-同平台取消授权税号适用商户 API请求 +alibaba.einvoice.merchant.delete + +税号授权给同平台下其他商户使用后,可以使用此接口取消授权,被取消授权的商户失去开票能力 +*/ +type AlibabaEinvoiceMerchantDeleteAPIRequest struct { + model.Params + // 验证码,商户首次绑定已入驻税号接口返回的taxToken + _taxToken string + // 业务方发起删除商户的唯一幂等ID, 由业务方生成。只能由字母和数字组成。 + _outerId string + // 业务平台商户ID + _merchantUserId string + // 业务平台code, 由阿里发票分配 + _platformCode string + // 税号 + _payeeRegisterNo string +} + +// 初始化AlibabaEinvoiceMerchantDeleteAPIRequest对象 +func NewAlibabaEinvoiceMerchantDeleteRequest() *AlibabaEinvoiceMerchantDeleteAPIRequest{ + return &AlibabaEinvoiceMerchantDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceMerchantDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.merchant.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceMerchantDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TaxToken Setter +// 验证码,商户首次绑定已入驻税号接口返回的taxToken +func (r *AlibabaEinvoiceMerchantDeleteAPIRequest) SetTaxToken(_taxToken string) error { + r._taxToken = _taxToken + r.Set("tax_token", _taxToken) + return nil +} + +// TaxToken Getter +func (r AlibabaEinvoiceMerchantDeleteAPIRequest) GetTaxToken() string { + return r._taxToken +} +// OuterId Setter +// 业务方发起删除商户的唯一幂等ID, 由业务方生成。只能由字母和数字组成。 +func (r *AlibabaEinvoiceMerchantDeleteAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r AlibabaEinvoiceMerchantDeleteAPIRequest) GetOuterId() string { + return r._outerId +} +// MerchantUserId Setter +// 业务平台商户ID +func (r *AlibabaEinvoiceMerchantDeleteAPIRequest) SetMerchantUserId(_merchantUserId string) error { + r._merchantUserId = _merchantUserId + r.Set("merchant_user_id", _merchantUserId) + return nil +} + +// MerchantUserId Getter +func (r AlibabaEinvoiceMerchantDeleteAPIRequest) GetMerchantUserId() string { + return r._merchantUserId +} +// PlatformCode Setter +// 业务平台code, 由阿里发票分配 +func (r *AlibabaEinvoiceMerchantDeleteAPIRequest) SetPlatformCode(_platformCode string) error { + r._platformCode = _platformCode + r.Set("platform_code", _platformCode) + return nil +} + +// PlatformCode Getter +func (r AlibabaEinvoiceMerchantDeleteAPIRequest) GetPlatformCode() string { + return r._platformCode +} +// PayeeRegisterNo Setter +// 税号 +func (r *AlibabaEinvoiceMerchantDeleteAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceMerchantDeleteAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} diff --git a/model/einvoice/AlibabaEinvoiceMerchantDeleteAPIResponse.go b/model/einvoice/AlibabaEinvoiceMerchantDeleteAPIResponse.go new file mode 100644 index 0000000000..cffb0c64a8 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceMerchantDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发票中台-同平台取消授权税号适用商户 API返回值 +alibaba.einvoice.merchant.delete + +税号授权给同平台下其他商户使用后,可以使用此接口取消授权,被取消授权的商户失去开票能力 +*/ +type AlibabaEinvoiceMerchantDeleteAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceMerchantDeleteAPIResponseModel +} + +// 发票中台-同平台取消授权税号适用商户 成功返回结果 +type AlibabaEinvoiceMerchantDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_merchant_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 删除成功的业务平台商户ID + MerchantUserId string `json:"merchant_user_id,omitempty" xml:"merchant_user_id,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceMerchantDeleteResponse.go b/model/einvoice/AlibabaEinvoiceMerchantDeleteResponse.go deleted file mode 100644 index 72eee09ee6..0000000000 --- a/model/einvoice/AlibabaEinvoiceMerchantDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发票中台-同平台取消授权税号适用商户 API返回值 -alibaba.einvoice.merchant.delete - -税号授权给同平台下其他商户使用后,可以使用此接口取消授权,被取消授权的商户失去开票能力 -*/ -type AlibabaEinvoiceMerchantDeleteAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceMerchantDeleteResponse -} - -// 发票中台-同平台取消授权税号适用商户 成功返回结果 -type AlibabaEinvoiceMerchantDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_merchant_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 删除成功的业务平台商户ID - MerchantUserId string `json:"merchant_user_id,omitempty" xml:"merchant_user_id,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceMerchantResultGetAPIRequest.go b/model/einvoice/AlibabaEinvoiceMerchantResultGetAPIRequest.go new file mode 100644 index 0000000000..a27f44f1ca --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceMerchantResultGetAPIRequest.go @@ -0,0 +1,94 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家自研ERP开票结果获取 API请求 +alibaba.einvoice.merchant.result.get + +商家自研ERP开票结果获取 +*/ +type AlibabaEinvoiceMerchantResultGetAPIRequest struct { + model.Params + // 流水号 (serial_no)和(platform_code,platform_tid)必须填写其中一组,serial_no优先级更高 + _serialNo string + // 电商平台代码。淘宝:taobao,天猫:tmall + _platformCode string + // 电商平台对应的订单号 + _platformTid string + // 收款方税务登记证号 + _payeeRegisterNo string +} + +// 初始化AlibabaEinvoiceMerchantResultGetAPIRequest对象 +func NewAlibabaEinvoiceMerchantResultGetRequest() *AlibabaEinvoiceMerchantResultGetAPIRequest{ + return &AlibabaEinvoiceMerchantResultGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceMerchantResultGetAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.merchant.result.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceMerchantResultGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SerialNo Setter +// 流水号 (serial_no)和(platform_code,platform_tid)必须填写其中一组,serial_no优先级更高 +func (r *AlibabaEinvoiceMerchantResultGetAPIRequest) SetSerialNo(_serialNo string) error { + r._serialNo = _serialNo + r.Set("serial_no", _serialNo) + return nil +} + +// SerialNo Getter +func (r AlibabaEinvoiceMerchantResultGetAPIRequest) GetSerialNo() string { + return r._serialNo +} +// PlatformCode Setter +// 电商平台代码。淘宝:taobao,天猫:tmall +func (r *AlibabaEinvoiceMerchantResultGetAPIRequest) SetPlatformCode(_platformCode string) error { + r._platformCode = _platformCode + r.Set("platform_code", _platformCode) + return nil +} + +// PlatformCode Getter +func (r AlibabaEinvoiceMerchantResultGetAPIRequest) GetPlatformCode() string { + return r._platformCode +} +// PlatformTid Setter +// 电商平台对应的订单号 +func (r *AlibabaEinvoiceMerchantResultGetAPIRequest) SetPlatformTid(_platformTid string) error { + r._platformTid = _platformTid + r.Set("platform_tid", _platformTid) + return nil +} + +// PlatformTid Getter +func (r AlibabaEinvoiceMerchantResultGetAPIRequest) GetPlatformTid() string { + return r._platformTid +} +// PayeeRegisterNo Setter +// 收款方税务登记证号 +func (r *AlibabaEinvoiceMerchantResultGetAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceMerchantResultGetAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} diff --git a/model/einvoice/AlibabaEinvoiceMerchantResultGetAPIResponse.go b/model/einvoice/AlibabaEinvoiceMerchantResultGetAPIResponse.go new file mode 100644 index 0000000000..273dc531a2 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceMerchantResultGetAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家自研ERP开票结果获取 API返回值 +alibaba.einvoice.merchant.result.get + +商家自研ERP开票结果获取 +*/ +type AlibabaEinvoiceMerchantResultGetAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceMerchantResultGetAPIResponseModel +} + +// 商家自研ERP开票结果获取 成功返回结果 +type AlibabaEinvoiceMerchantResultGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_merchant_result_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 开票返回结果数据列表 + InvoiceResultList []InvoiceResult `json:"invoice_result_list,omitempty" xml:"invoice_result_list>invoice_result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceMerchantResultGetResponse.go b/model/einvoice/AlibabaEinvoiceMerchantResultGetResponse.go deleted file mode 100644 index bc18155671..0000000000 --- a/model/einvoice/AlibabaEinvoiceMerchantResultGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家自研ERP开票结果获取 API返回值 -alibaba.einvoice.merchant.result.get - -商家自研ERP开票结果获取 -*/ -type AlibabaEinvoiceMerchantResultGetAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceMerchantResultGetResponse -} - -// 商家自研ERP开票结果获取 成功返回结果 -type AlibabaEinvoiceMerchantResultGetResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_merchant_result_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 开票返回结果数据列表 - InvoiceResultList []InvoiceResult `json:"invoice_result_list,omitempty" xml:"invoice_result_list>invoice_result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceOrderRefundUpdateAPIRequest.go b/model/einvoice/AlibabaEinvoiceOrderRefundUpdateAPIRequest.go new file mode 100644 index 0000000000..02109cd937 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceOrderRefundUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +回传订单退款审核结果 API请求 +alibaba.einvoice.order.refund.update + +ISV回传订单退款审核结果 +*/ +type AlibabaEinvoiceOrderRefundUpdateAPIRequest struct { + model.Params + // 退款审核结果DTO + _orderRefundResultDto *InvoiceOrderRefundResultDto +} + +// 初始化AlibabaEinvoiceOrderRefundUpdateAPIRequest对象 +func NewAlibabaEinvoiceOrderRefundUpdateRequest() *AlibabaEinvoiceOrderRefundUpdateAPIRequest{ + return &AlibabaEinvoiceOrderRefundUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceOrderRefundUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.order.refund.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceOrderRefundUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderRefundResultDto Setter +// 退款审核结果DTO +func (r *AlibabaEinvoiceOrderRefundUpdateAPIRequest) SetOrderRefundResultDto(_orderRefundResultDto *InvoiceOrderRefundResultDto) error { + r._orderRefundResultDto = _orderRefundResultDto + r.Set("order_refund_result_dto", _orderRefundResultDto) + return nil +} + +// OrderRefundResultDto Getter +func (r AlibabaEinvoiceOrderRefundUpdateAPIRequest) GetOrderRefundResultDto() *InvoiceOrderRefundResultDto { + return r._orderRefundResultDto +} diff --git a/model/einvoice/AlibabaEinvoiceOrderRefundUpdateAPIResponse.go b/model/einvoice/AlibabaEinvoiceOrderRefundUpdateAPIResponse.go new file mode 100644 index 0000000000..8536281988 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceOrderRefundUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +回传订单退款审核结果 API返回值 +alibaba.einvoice.order.refund.update + +ISV回传订单退款审核结果 +*/ +type AlibabaEinvoiceOrderRefundUpdateAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceOrderRefundUpdateAPIResponseModel +} + +// 回传订单退款审核结果 成功返回结果 +type AlibabaEinvoiceOrderRefundUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_order_refund_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceOrderRefundUpdateResponse.go b/model/einvoice/AlibabaEinvoiceOrderRefundUpdateResponse.go deleted file mode 100644 index b5c792c48c..0000000000 --- a/model/einvoice/AlibabaEinvoiceOrderRefundUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -回传订单退款审核结果 API返回值 -alibaba.einvoice.order.refund.update - -ISV回传订单退款审核结果 -*/ -type AlibabaEinvoiceOrderRefundUpdateAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceOrderRefundUpdateResponse -} - -// 回传订单退款审核结果 成功返回结果 -type AlibabaEinvoiceOrderRefundUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_order_refund_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoicePaperCommonReturnAPIRequest.go b/model/einvoice/AlibabaEinvoicePaperCommonReturnAPIRequest.go new file mode 100644 index 0000000000..4aab9cf1b7 --- /dev/null +++ b/model/einvoice/AlibabaEinvoicePaperCommonReturnAPIRequest.go @@ -0,0 +1,108 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +纸票通用回传接口 API请求 +alibaba.einvoice.paper.common.return + +纸票通用回传接口(打印回传、注册回传等),只返回成功or失败 +*/ +type AlibabaEinvoicePaperCommonReturnAPIRequest struct { + model.Params + // 请求索引 + _reqIndex string + // 回传结果 + _success bool + // 错误码,success=false时必填 + _bizErrorCode string + // 错误信息,success=false时必填 + _bizErrorMsg string + // 扩展信息 + _extProps string +} + +// 初始化AlibabaEinvoicePaperCommonReturnAPIRequest对象 +func NewAlibabaEinvoicePaperCommonReturnRequest() *AlibabaEinvoicePaperCommonReturnAPIRequest{ + return &AlibabaEinvoicePaperCommonReturnAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoicePaperCommonReturnAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.paper.common.return" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoicePaperCommonReturnAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReqIndex Setter +// 请求索引 +func (r *AlibabaEinvoicePaperCommonReturnAPIRequest) SetReqIndex(_reqIndex string) error { + r._reqIndex = _reqIndex + r.Set("req_index", _reqIndex) + return nil +} + +// ReqIndex Getter +func (r AlibabaEinvoicePaperCommonReturnAPIRequest) GetReqIndex() string { + return r._reqIndex +} +// Success Setter +// 回传结果 +func (r *AlibabaEinvoicePaperCommonReturnAPIRequest) SetSuccess(_success bool) error { + r._success = _success + r.Set("success", _success) + return nil +} + +// Success Getter +func (r AlibabaEinvoicePaperCommonReturnAPIRequest) GetSuccess() bool { + return r._success +} +// BizErrorCode Setter +// 错误码,success=false时必填 +func (r *AlibabaEinvoicePaperCommonReturnAPIRequest) SetBizErrorCode(_bizErrorCode string) error { + r._bizErrorCode = _bizErrorCode + r.Set("biz_error_code", _bizErrorCode) + return nil +} + +// BizErrorCode Getter +func (r AlibabaEinvoicePaperCommonReturnAPIRequest) GetBizErrorCode() string { + return r._bizErrorCode +} +// BizErrorMsg Setter +// 错误信息,success=false时必填 +func (r *AlibabaEinvoicePaperCommonReturnAPIRequest) SetBizErrorMsg(_bizErrorMsg string) error { + r._bizErrorMsg = _bizErrorMsg + r.Set("biz_error_msg", _bizErrorMsg) + return nil +} + +// BizErrorMsg Getter +func (r AlibabaEinvoicePaperCommonReturnAPIRequest) GetBizErrorMsg() string { + return r._bizErrorMsg +} +// ExtProps Setter +// 扩展信息 +func (r *AlibabaEinvoicePaperCommonReturnAPIRequest) SetExtProps(_extProps string) error { + r._extProps = _extProps + r.Set("ext_props", _extProps) + return nil +} + +// ExtProps Getter +func (r AlibabaEinvoicePaperCommonReturnAPIRequest) GetExtProps() string { + return r._extProps +} diff --git a/model/einvoice/AlibabaEinvoicePaperCommonReturnAPIResponse.go b/model/einvoice/AlibabaEinvoicePaperCommonReturnAPIResponse.go new file mode 100644 index 0000000000..a53fe95b6e --- /dev/null +++ b/model/einvoice/AlibabaEinvoicePaperCommonReturnAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +纸票通用回传接口 API返回值 +alibaba.einvoice.paper.common.return + +纸票通用回传接口(打印回传、注册回传等),只返回成功or失败 +*/ +type AlibabaEinvoicePaperCommonReturnAPIResponse struct { + model.CommonResponse + AlibabaEinvoicePaperCommonReturnAPIResponseModel +} + +// 纸票通用回传接口 成功返回结果 +type AlibabaEinvoicePaperCommonReturnAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_paper_common_return_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 回传接收结果 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoicePaperCommonReturnResponse.go b/model/einvoice/AlibabaEinvoicePaperCommonReturnResponse.go deleted file mode 100644 index 735e09edf3..0000000000 --- a/model/einvoice/AlibabaEinvoicePaperCommonReturnResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -纸票通用回传接口 API返回值 -alibaba.einvoice.paper.common.return - -纸票通用回传接口(打印回传、注册回传等),只返回成功or失败 -*/ -type AlibabaEinvoicePaperCommonReturnAPIResponse struct { - model.CommonResponse - AlibabaEinvoicePaperCommonReturnResponse -} - -// 纸票通用回传接口 成功返回结果 -type AlibabaEinvoicePaperCommonReturnResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_paper_common_return_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 回传接收结果 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoicePaperInvalidAPIRequest.go b/model/einvoice/AlibabaEinvoicePaperInvalidAPIRequest.go new file mode 100644 index 0000000000..88301a3072 --- /dev/null +++ b/model/einvoice/AlibabaEinvoicePaperInvalidAPIRequest.go @@ -0,0 +1,122 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +纸票作废接口 API请求 +alibaba.einvoice.paper.invalid + +作废一张已开具的纸票,开票日期在当月,产生逆向时作废即可,开票日期跨月则冲红蓝票 +*/ +type AlibabaEinvoicePaperInvalidAPIRequest struct { + model.Params + // 发票代码,空白作废时必填 + _invoiceCode string + // 发票号码,空白作废时必填 + _invoiceNo string + // 作废操作人 + _invalidOperator string + // 作废类型, 0=空白发票(有残缺 的纸张发票,不能做为有效报销)作废, 1=已开发票作废 + _invalidType int64 + // 销售方纳税人识别号 + _payeeRegisterNo string + // 开票流水号 + _serialNo string +} + +// 初始化AlibabaEinvoicePaperInvalidAPIRequest对象 +func NewAlibabaEinvoicePaperInvalidRequest() *AlibabaEinvoicePaperInvalidAPIRequest{ + return &AlibabaEinvoicePaperInvalidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoicePaperInvalidAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.paper.invalid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoicePaperInvalidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InvoiceCode Setter +// 发票代码,空白作废时必填 +func (r *AlibabaEinvoicePaperInvalidAPIRequest) SetInvoiceCode(_invoiceCode string) error { + r._invoiceCode = _invoiceCode + r.Set("invoice_code", _invoiceCode) + return nil +} + +// InvoiceCode Getter +func (r AlibabaEinvoicePaperInvalidAPIRequest) GetInvoiceCode() string { + return r._invoiceCode +} +// InvoiceNo Setter +// 发票号码,空白作废时必填 +func (r *AlibabaEinvoicePaperInvalidAPIRequest) SetInvoiceNo(_invoiceNo string) error { + r._invoiceNo = _invoiceNo + r.Set("invoice_no", _invoiceNo) + return nil +} + +// InvoiceNo Getter +func (r AlibabaEinvoicePaperInvalidAPIRequest) GetInvoiceNo() string { + return r._invoiceNo +} +// InvalidOperator Setter +// 作废操作人 +func (r *AlibabaEinvoicePaperInvalidAPIRequest) SetInvalidOperator(_invalidOperator string) error { + r._invalidOperator = _invalidOperator + r.Set("invalid_operator", _invalidOperator) + return nil +} + +// InvalidOperator Getter +func (r AlibabaEinvoicePaperInvalidAPIRequest) GetInvalidOperator() string { + return r._invalidOperator +} +// InvalidType Setter +// 作废类型, 0=空白发票(有残缺 的纸张发票,不能做为有效报销)作废, 1=已开发票作废 +func (r *AlibabaEinvoicePaperInvalidAPIRequest) SetInvalidType(_invalidType int64) error { + r._invalidType = _invalidType + r.Set("invalid_type", _invalidType) + return nil +} + +// InvalidType Getter +func (r AlibabaEinvoicePaperInvalidAPIRequest) GetInvalidType() int64 { + return r._invalidType +} +// PayeeRegisterNo Setter +// 销售方纳税人识别号 +func (r *AlibabaEinvoicePaperInvalidAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoicePaperInvalidAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// SerialNo Setter +// 开票流水号 +func (r *AlibabaEinvoicePaperInvalidAPIRequest) SetSerialNo(_serialNo string) error { + r._serialNo = _serialNo + r.Set("serial_no", _serialNo) + return nil +} + +// SerialNo Getter +func (r AlibabaEinvoicePaperInvalidAPIRequest) GetSerialNo() string { + return r._serialNo +} diff --git a/model/einvoice/AlibabaEinvoicePaperInvalidAPIResponse.go b/model/einvoice/AlibabaEinvoicePaperInvalidAPIResponse.go new file mode 100644 index 0000000000..7337f837ec --- /dev/null +++ b/model/einvoice/AlibabaEinvoicePaperInvalidAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +纸票作废接口 API返回值 +alibaba.einvoice.paper.invalid + +作废一张已开具的纸票,开票日期在当月,产生逆向时作废即可,开票日期跨月则冲红蓝票 +*/ +type AlibabaEinvoicePaperInvalidAPIResponse struct { + model.CommonResponse + AlibabaEinvoicePaperInvalidAPIResponseModel +} + +// 纸票作废接口 成功返回结果 +type AlibabaEinvoicePaperInvalidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_paper_invalid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口调用是否成功,操作结果tmc异步返回alibaba_invoice_PaperOpsReturn + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoicePaperInvalidResponse.go b/model/einvoice/AlibabaEinvoicePaperInvalidResponse.go deleted file mode 100644 index 8df80e01b3..0000000000 --- a/model/einvoice/AlibabaEinvoicePaperInvalidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -纸票作废接口 API返回值 -alibaba.einvoice.paper.invalid - -作废一张已开具的纸票,开票日期在当月,产生逆向时作废即可,开票日期跨月则冲红蓝票 -*/ -type AlibabaEinvoicePaperInvalidAPIResponse struct { - model.CommonResponse - AlibabaEinvoicePaperInvalidResponse -} - -// 纸票作废接口 成功返回结果 -type AlibabaEinvoicePaperInvalidResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_paper_invalid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口调用是否成功,操作结果tmc异步返回alibaba_invoice_PaperOpsReturn - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoicePaperPrintAPIRequest.go b/model/einvoice/AlibabaEinvoicePaperPrintAPIRequest.go new file mode 100644 index 0000000000..c346f4f048 --- /dev/null +++ b/model/einvoice/AlibabaEinvoicePaperPrintAPIRequest.go @@ -0,0 +1,108 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +纸票打印接口 API请求 +alibaba.einvoice.paper.print + +打印一张已开具成功的纸票 +*/ +type AlibabaEinvoicePaperPrintAPIRequest struct { + model.Params + // 打印框设置,0=不弹打印设置框,1=弹出打印设置框 + _dialogSettingFlag int64 + // 是否强制打印,一般发票只能打印一次,但是因为打印机发票号码与待打印发票号码不一致,导致打印错误,需要重新打印 + _forcePrint bool + // 销售方纳税人识别号 + _payeeRegisterNo string + // 打印标记,0=打印发票;1=打印清单。发票明细超过8行时会生成清单页,需要打印清单。 + _printFlag int64 + // 开票流水号 + _serialNo string +} + +// 初始化AlibabaEinvoicePaperPrintAPIRequest对象 +func NewAlibabaEinvoicePaperPrintRequest() *AlibabaEinvoicePaperPrintAPIRequest{ + return &AlibabaEinvoicePaperPrintAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoicePaperPrintAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.paper.print" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoicePaperPrintAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DialogSettingFlag Setter +// 打印框设置,0=不弹打印设置框,1=弹出打印设置框 +func (r *AlibabaEinvoicePaperPrintAPIRequest) SetDialogSettingFlag(_dialogSettingFlag int64) error { + r._dialogSettingFlag = _dialogSettingFlag + r.Set("dialog_setting_flag", _dialogSettingFlag) + return nil +} + +// DialogSettingFlag Getter +func (r AlibabaEinvoicePaperPrintAPIRequest) GetDialogSettingFlag() int64 { + return r._dialogSettingFlag +} +// ForcePrint Setter +// 是否强制打印,一般发票只能打印一次,但是因为打印机发票号码与待打印发票号码不一致,导致打印错误,需要重新打印 +func (r *AlibabaEinvoicePaperPrintAPIRequest) SetForcePrint(_forcePrint bool) error { + r._forcePrint = _forcePrint + r.Set("force_print", _forcePrint) + return nil +} + +// ForcePrint Getter +func (r AlibabaEinvoicePaperPrintAPIRequest) GetForcePrint() bool { + return r._forcePrint +} +// PayeeRegisterNo Setter +// 销售方纳税人识别号 +func (r *AlibabaEinvoicePaperPrintAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoicePaperPrintAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// PrintFlag Setter +// 打印标记,0=打印发票;1=打印清单。发票明细超过8行时会生成清单页,需要打印清单。 +func (r *AlibabaEinvoicePaperPrintAPIRequest) SetPrintFlag(_printFlag int64) error { + r._printFlag = _printFlag + r.Set("print_flag", _printFlag) + return nil +} + +// PrintFlag Getter +func (r AlibabaEinvoicePaperPrintAPIRequest) GetPrintFlag() int64 { + return r._printFlag +} +// SerialNo Setter +// 开票流水号 +func (r *AlibabaEinvoicePaperPrintAPIRequest) SetSerialNo(_serialNo string) error { + r._serialNo = _serialNo + r.Set("serial_no", _serialNo) + return nil +} + +// SerialNo Getter +func (r AlibabaEinvoicePaperPrintAPIRequest) GetSerialNo() string { + return r._serialNo +} diff --git a/model/einvoice/AlibabaEinvoicePaperPrintAPIResponse.go b/model/einvoice/AlibabaEinvoicePaperPrintAPIResponse.go new file mode 100644 index 0000000000..bd959e475a --- /dev/null +++ b/model/einvoice/AlibabaEinvoicePaperPrintAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +纸票打印接口 API返回值 +alibaba.einvoice.paper.print + +打印一张已开具成功的纸票 +*/ +type AlibabaEinvoicePaperPrintAPIResponse struct { + model.CommonResponse + AlibabaEinvoicePaperPrintAPIResponseModel +} + +// 纸票打印接口 成功返回结果 +type AlibabaEinvoicePaperPrintAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_paper_print_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果,打印结果tmc消息alibaba_invoice_PaperOpsReturn异步通知 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoicePaperPrintResponse.go b/model/einvoice/AlibabaEinvoicePaperPrintResponse.go deleted file mode 100644 index e03a459aae..0000000000 --- a/model/einvoice/AlibabaEinvoicePaperPrintResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -纸票打印接口 API返回值 -alibaba.einvoice.paper.print - -打印一张已开具成功的纸票 -*/ -type AlibabaEinvoicePaperPrintAPIResponse struct { - model.CommonResponse - AlibabaEinvoicePaperPrintResponse -} - -// 纸票打印接口 成功返回结果 -type AlibabaEinvoicePaperPrintResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_paper_print_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果,打印结果tmc消息alibaba_invoice_PaperOpsReturn异步通知 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoicePaperReturnAPIRequest.go b/model/einvoice/AlibabaEinvoicePaperReturnAPIRequest.go new file mode 100644 index 0000000000..bb9389ae04 --- /dev/null +++ b/model/einvoice/AlibabaEinvoicePaperReturnAPIRequest.go @@ -0,0 +1,178 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +纸质发票结果回传 API请求 +alibaba.einvoice.paper.return + +纸质发票结果回传 +*/ +type AlibabaEinvoicePaperReturnAPIRequest struct { + model.Params + // 发票密文,密码区的字符串 + _ciphertext string + // 发票号码 + _invoiceNo string + // 发票日期 + _invoiceDate string + // 防伪码 + _antiFakeCode string + // 税控设备编号(新版电子发票有) + _deviceNo string + // 发票代码 + _invoiceCode string + // 开票结果"success"或者"fail" + _createResult string + // 错误码 + _bizErrorCode string + // 错误信息 + _bizErrorMsg string + // 开票请求的唯一索引 + _reqIndex string +} + +// 初始化AlibabaEinvoicePaperReturnAPIRequest对象 +func NewAlibabaEinvoicePaperReturnRequest() *AlibabaEinvoicePaperReturnAPIRequest{ + return &AlibabaEinvoicePaperReturnAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoicePaperReturnAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.paper.return" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoicePaperReturnAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Ciphertext Setter +// 发票密文,密码区的字符串 +func (r *AlibabaEinvoicePaperReturnAPIRequest) SetCiphertext(_ciphertext string) error { + r._ciphertext = _ciphertext + r.Set("ciphertext", _ciphertext) + return nil +} + +// Ciphertext Getter +func (r AlibabaEinvoicePaperReturnAPIRequest) GetCiphertext() string { + return r._ciphertext +} +// InvoiceNo Setter +// 发票号码 +func (r *AlibabaEinvoicePaperReturnAPIRequest) SetInvoiceNo(_invoiceNo string) error { + r._invoiceNo = _invoiceNo + r.Set("invoice_no", _invoiceNo) + return nil +} + +// InvoiceNo Getter +func (r AlibabaEinvoicePaperReturnAPIRequest) GetInvoiceNo() string { + return r._invoiceNo +} +// InvoiceDate Setter +// 发票日期 +func (r *AlibabaEinvoicePaperReturnAPIRequest) SetInvoiceDate(_invoiceDate string) error { + r._invoiceDate = _invoiceDate + r.Set("invoice_date", _invoiceDate) + return nil +} + +// InvoiceDate Getter +func (r AlibabaEinvoicePaperReturnAPIRequest) GetInvoiceDate() string { + return r._invoiceDate +} +// AntiFakeCode Setter +// 防伪码 +func (r *AlibabaEinvoicePaperReturnAPIRequest) SetAntiFakeCode(_antiFakeCode string) error { + r._antiFakeCode = _antiFakeCode + r.Set("anti_fake_code", _antiFakeCode) + return nil +} + +// AntiFakeCode Getter +func (r AlibabaEinvoicePaperReturnAPIRequest) GetAntiFakeCode() string { + return r._antiFakeCode +} +// DeviceNo Setter +// 税控设备编号(新版电子发票有) +func (r *AlibabaEinvoicePaperReturnAPIRequest) SetDeviceNo(_deviceNo string) error { + r._deviceNo = _deviceNo + r.Set("device_no", _deviceNo) + return nil +} + +// DeviceNo Getter +func (r AlibabaEinvoicePaperReturnAPIRequest) GetDeviceNo() string { + return r._deviceNo +} +// InvoiceCode Setter +// 发票代码 +func (r *AlibabaEinvoicePaperReturnAPIRequest) SetInvoiceCode(_invoiceCode string) error { + r._invoiceCode = _invoiceCode + r.Set("invoice_code", _invoiceCode) + return nil +} + +// InvoiceCode Getter +func (r AlibabaEinvoicePaperReturnAPIRequest) GetInvoiceCode() string { + return r._invoiceCode +} +// CreateResult Setter +// 开票结果"success"或者"fail" +func (r *AlibabaEinvoicePaperReturnAPIRequest) SetCreateResult(_createResult string) error { + r._createResult = _createResult + r.Set("create_result", _createResult) + return nil +} + +// CreateResult Getter +func (r AlibabaEinvoicePaperReturnAPIRequest) GetCreateResult() string { + return r._createResult +} +// BizErrorCode Setter +// 错误码 +func (r *AlibabaEinvoicePaperReturnAPIRequest) SetBizErrorCode(_bizErrorCode string) error { + r._bizErrorCode = _bizErrorCode + r.Set("biz_error_code", _bizErrorCode) + return nil +} + +// BizErrorCode Getter +func (r AlibabaEinvoicePaperReturnAPIRequest) GetBizErrorCode() string { + return r._bizErrorCode +} +// BizErrorMsg Setter +// 错误信息 +func (r *AlibabaEinvoicePaperReturnAPIRequest) SetBizErrorMsg(_bizErrorMsg string) error { + r._bizErrorMsg = _bizErrorMsg + r.Set("biz_error_msg", _bizErrorMsg) + return nil +} + +// BizErrorMsg Getter +func (r AlibabaEinvoicePaperReturnAPIRequest) GetBizErrorMsg() string { + return r._bizErrorMsg +} +// ReqIndex Setter +// 开票请求的唯一索引 +func (r *AlibabaEinvoicePaperReturnAPIRequest) SetReqIndex(_reqIndex string) error { + r._reqIndex = _reqIndex + r.Set("req_index", _reqIndex) + return nil +} + +// ReqIndex Getter +func (r AlibabaEinvoicePaperReturnAPIRequest) GetReqIndex() string { + return r._reqIndex +} diff --git a/model/einvoice/AlibabaEinvoicePaperReturnAPIResponse.go b/model/einvoice/AlibabaEinvoicePaperReturnAPIResponse.go new file mode 100644 index 0000000000..9961c24c5b --- /dev/null +++ b/model/einvoice/AlibabaEinvoicePaperReturnAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +纸质发票结果回传 API返回值 +alibaba.einvoice.paper.return + +纸质发票结果回传 +*/ +type AlibabaEinvoicePaperReturnAPIResponse struct { + model.CommonResponse + AlibabaEinvoicePaperReturnAPIResponseModel +} + +// 纸质发票结果回传 成功返回结果 +type AlibabaEinvoicePaperReturnAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_paper_return_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务端接收开票回传数据的结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoicePaperReturnResponse.go b/model/einvoice/AlibabaEinvoicePaperReturnResponse.go deleted file mode 100644 index 777093bfbd..0000000000 --- a/model/einvoice/AlibabaEinvoicePaperReturnResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -纸质发票结果回传 API返回值 -alibaba.einvoice.paper.return - -纸质发票结果回传 -*/ -type AlibabaEinvoicePaperReturnAPIResponse struct { - model.CommonResponse - AlibabaEinvoicePaperReturnResponse -} - -// 纸质发票结果回传 成功返回结果 -type AlibabaEinvoicePaperReturnResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_paper_return_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务端接收开票回传数据的结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoicePartnerReturnAPIRequest.go b/model/einvoice/AlibabaEinvoicePartnerReturnAPIRequest.go new file mode 100644 index 0000000000..2759ad432a --- /dev/null +++ b/model/einvoice/AlibabaEinvoicePartnerReturnAPIRequest.go @@ -0,0 +1,318 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +开票商回传开票结果 API请求 +alibaba.einvoice.partner.return + +开票商返回开票结果数据 +*/ +type AlibabaEinvoicePartnerReturnAPIRequest struct { + model.Params + // 电商平台身份标识码,TB=淘宝 、TM=天猫 、JD=京东、DD=当当、PP=拍拍、YX=易讯、EBAY=ebay、QQ=QQ网购、AMAZON=亚马逊、SN=苏宁、GM=国美、WPH=唯品会、JM=聚美、LF=乐蜂、MGJ=蘑菇街、JS=聚尚、PX=拍鞋、YT=银泰、YHD=1号店、VANCL=凡客、YL=邮乐、YG=优购、1688=阿里巴巴、POS=POS门店、OTHER=其他, (只传英文编码) + _platformCode string + // 开票金额 + _invoiceAmount string + // 发票密文,密码区的字符串 + _ciphertext string + // 收款方税务登记证号 + _payeeRegisterNo string + // 二维码 + _qrCode string + // erp自定义单据号 + _erpTid string + // 文件类型(pdf,jpg,png) + _fileDataType string + // 发票号码 + _invoiceNo string + // 发票日期 + _invoiceDate string + // 发票文件PDF内容,PDF的byte[]字段串。 + _invoiceFileData *model.File + // 流水号 + _serialNo string + // 防伪码 + _antiFakeCode string + // 税控设备编号(新版电子发票有) + _deviceNo string + // 发票代码 + _invoiceCode string + // 电商平台对应的订单号 + _platformTid string + // 开票结果"success"或者"fail" + _createResult string + // 错误码 + _bizErrorCode string + // 错误信息 + _bizErrorMsg string + // 开票请求的唯一索引 + _reqIndex string + // 开票时间,格式为HH:mm:ss + _invoiceTime string +} + +// 初始化AlibabaEinvoicePartnerReturnAPIRequest对象 +func NewAlibabaEinvoicePartnerReturnRequest() *AlibabaEinvoicePartnerReturnAPIRequest{ + return &AlibabaEinvoicePartnerReturnAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.partner.return" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PlatformCode Setter +// 电商平台身份标识码,TB=淘宝 、TM=天猫 、JD=京东、DD=当当、PP=拍拍、YX=易讯、EBAY=ebay、QQ=QQ网购、AMAZON=亚马逊、SN=苏宁、GM=国美、WPH=唯品会、JM=聚美、LF=乐蜂、MGJ=蘑菇街、JS=聚尚、PX=拍鞋、YT=银泰、YHD=1号店、VANCL=凡客、YL=邮乐、YG=优购、1688=阿里巴巴、POS=POS门店、OTHER=其他, (只传英文编码) +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetPlatformCode(_platformCode string) error { + r._platformCode = _platformCode + r.Set("platform_code", _platformCode) + return nil +} + +// PlatformCode Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetPlatformCode() string { + return r._platformCode +} +// InvoiceAmount Setter +// 开票金额 +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetInvoiceAmount(_invoiceAmount string) error { + r._invoiceAmount = _invoiceAmount + r.Set("invoice_amount", _invoiceAmount) + return nil +} + +// InvoiceAmount Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetInvoiceAmount() string { + return r._invoiceAmount +} +// Ciphertext Setter +// 发票密文,密码区的字符串 +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetCiphertext(_ciphertext string) error { + r._ciphertext = _ciphertext + r.Set("ciphertext", _ciphertext) + return nil +} + +// Ciphertext Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetCiphertext() string { + return r._ciphertext +} +// PayeeRegisterNo Setter +// 收款方税务登记证号 +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// QrCode Setter +// 二维码 +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetQrCode(_qrCode string) error { + r._qrCode = _qrCode + r.Set("qr_code", _qrCode) + return nil +} + +// QrCode Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetQrCode() string { + return r._qrCode +} +// ErpTid Setter +// erp自定义单据号 +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetErpTid(_erpTid string) error { + r._erpTid = _erpTid + r.Set("erp_tid", _erpTid) + return nil +} + +// ErpTid Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetErpTid() string { + return r._erpTid +} +// FileDataType Setter +// 文件类型(pdf,jpg,png) +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetFileDataType(_fileDataType string) error { + r._fileDataType = _fileDataType + r.Set("file_data_type", _fileDataType) + return nil +} + +// FileDataType Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetFileDataType() string { + return r._fileDataType +} +// InvoiceNo Setter +// 发票号码 +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetInvoiceNo(_invoiceNo string) error { + r._invoiceNo = _invoiceNo + r.Set("invoice_no", _invoiceNo) + return nil +} + +// InvoiceNo Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetInvoiceNo() string { + return r._invoiceNo +} +// InvoiceDate Setter +// 发票日期 +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetInvoiceDate(_invoiceDate string) error { + r._invoiceDate = _invoiceDate + r.Set("invoice_date", _invoiceDate) + return nil +} + +// InvoiceDate Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetInvoiceDate() string { + return r._invoiceDate +} +// InvoiceFileData Setter +// 发票文件PDF内容,PDF的byte[]字段串。 +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetInvoiceFileData(_invoiceFileData *model.File) error { + r._invoiceFileData = _invoiceFileData + r.Set("invoice_file_data", _invoiceFileData) + return nil +} + +// InvoiceFileData Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetInvoiceFileData() *model.File { + return r._invoiceFileData +} +// SerialNo Setter +// 流水号 +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetSerialNo(_serialNo string) error { + r._serialNo = _serialNo + r.Set("serial_no", _serialNo) + return nil +} + +// SerialNo Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetSerialNo() string { + return r._serialNo +} +// AntiFakeCode Setter +// 防伪码 +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetAntiFakeCode(_antiFakeCode string) error { + r._antiFakeCode = _antiFakeCode + r.Set("anti_fake_code", _antiFakeCode) + return nil +} + +// AntiFakeCode Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetAntiFakeCode() string { + return r._antiFakeCode +} +// DeviceNo Setter +// 税控设备编号(新版电子发票有) +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetDeviceNo(_deviceNo string) error { + r._deviceNo = _deviceNo + r.Set("device_no", _deviceNo) + return nil +} + +// DeviceNo Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetDeviceNo() string { + return r._deviceNo +} +// InvoiceCode Setter +// 发票代码 +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetInvoiceCode(_invoiceCode string) error { + r._invoiceCode = _invoiceCode + r.Set("invoice_code", _invoiceCode) + return nil +} + +// InvoiceCode Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetInvoiceCode() string { + return r._invoiceCode +} +// PlatformTid Setter +// 电商平台对应的订单号 +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetPlatformTid(_platformTid string) error { + r._platformTid = _platformTid + r.Set("platform_tid", _platformTid) + return nil +} + +// PlatformTid Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetPlatformTid() string { + return r._platformTid +} +// CreateResult Setter +// 开票结果"success"或者"fail" +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetCreateResult(_createResult string) error { + r._createResult = _createResult + r.Set("create_result", _createResult) + return nil +} + +// CreateResult Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetCreateResult() string { + return r._createResult +} +// BizErrorCode Setter +// 错误码 +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetBizErrorCode(_bizErrorCode string) error { + r._bizErrorCode = _bizErrorCode + r.Set("biz_error_code", _bizErrorCode) + return nil +} + +// BizErrorCode Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetBizErrorCode() string { + return r._bizErrorCode +} +// BizErrorMsg Setter +// 错误信息 +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetBizErrorMsg(_bizErrorMsg string) error { + r._bizErrorMsg = _bizErrorMsg + r.Set("biz_error_msg", _bizErrorMsg) + return nil +} + +// BizErrorMsg Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetBizErrorMsg() string { + return r._bizErrorMsg +} +// ReqIndex Setter +// 开票请求的唯一索引 +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetReqIndex(_reqIndex string) error { + r._reqIndex = _reqIndex + r.Set("req_index", _reqIndex) + return nil +} + +// ReqIndex Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetReqIndex() string { + return r._reqIndex +} +// InvoiceTime Setter +// 开票时间,格式为HH:mm:ss +func (r *AlibabaEinvoicePartnerReturnAPIRequest) SetInvoiceTime(_invoiceTime string) error { + r._invoiceTime = _invoiceTime + r.Set("invoice_time", _invoiceTime) + return nil +} + +// InvoiceTime Getter +func (r AlibabaEinvoicePartnerReturnAPIRequest) GetInvoiceTime() string { + return r._invoiceTime +} diff --git a/model/einvoice/AlibabaEinvoicePartnerReturnAPIResponse.go b/model/einvoice/AlibabaEinvoicePartnerReturnAPIResponse.go new file mode 100644 index 0000000000..e78d389938 --- /dev/null +++ b/model/einvoice/AlibabaEinvoicePartnerReturnAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +开票商回传开票结果 API返回值 +alibaba.einvoice.partner.return + +开票商返回开票结果数据 +*/ +type AlibabaEinvoicePartnerReturnAPIResponse struct { + model.CommonResponse + AlibabaEinvoicePartnerReturnAPIResponseModel +} + +// 开票商回传开票结果 成功返回结果 +type AlibabaEinvoicePartnerReturnAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_partner_return_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务端接收开票回传数据的结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoicePartnerReturnResponse.go b/model/einvoice/AlibabaEinvoicePartnerReturnResponse.go deleted file mode 100644 index a09742be28..0000000000 --- a/model/einvoice/AlibabaEinvoicePartnerReturnResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -开票商回传开票结果 API返回值 -alibaba.einvoice.partner.return - -开票商返回开票结果数据 -*/ -type AlibabaEinvoicePartnerReturnAPIResponse struct { - model.CommonResponse - AlibabaEinvoicePartnerReturnResponse -} - -// 开票商回传开票结果 成功返回结果 -type AlibabaEinvoicePartnerReturnResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_partner_return_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务端接收开票回传数据的结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoicePartnerUploadAPIRequest.go b/model/einvoice/AlibabaEinvoicePartnerUploadAPIRequest.go new file mode 100644 index 0000000000..eb14f723bb --- /dev/null +++ b/model/einvoice/AlibabaEinvoicePartnerUploadAPIRequest.go @@ -0,0 +1,234 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商发票上传接口(非授权) API请求 +alibaba.einvoice.partner.upload + +服务商发票上传接口(非授权) +*/ +type AlibabaEinvoicePartnerUploadAPIRequest struct { + model.Params + // 原蓝票发票号码 + _normalInvoiceNo string + // 原蓝票发票代码 + _normalInvoiceCode string + // 销方税号 + _payeeRegisterNo string + // 发票数据,upload_type=0且invoiceKind=0电子发票时必填 + _invoiceFileData *model.File + // 发票号码,upload_type=0时必填 + _invoiceNo string + // 发票代码,upload_type=0时必填 + _invoiceCode string + // 开票日期,upload_type=0时必填 + _invoiceDate string + // 密码区 + _cipherText string + // 机器编号 + _deviceNo string + // 校验码 + _antiFakeCode string + // 发票类型,upload_type=0且invoiceKind=0电子发票时必填,暂时只支持pdf + _fileDataType string + // 原蓝票的reqIndex + _reqIndex string + // 发票种类,0=电子发票,1=纸质普票,2=纸质专票 + _invoiceKind int64 + // 上传的类型,0=冲红上传,1=作废上传 + _uploadType int64 +} + +// 初始化AlibabaEinvoicePartnerUploadAPIRequest对象 +func NewAlibabaEinvoicePartnerUploadRequest() *AlibabaEinvoicePartnerUploadAPIRequest{ + return &AlibabaEinvoicePartnerUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoicePartnerUploadAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.partner.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoicePartnerUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NormalInvoiceNo Setter +// 原蓝票发票号码 +func (r *AlibabaEinvoicePartnerUploadAPIRequest) SetNormalInvoiceNo(_normalInvoiceNo string) error { + r._normalInvoiceNo = _normalInvoiceNo + r.Set("normal_invoice_no", _normalInvoiceNo) + return nil +} + +// NormalInvoiceNo Getter +func (r AlibabaEinvoicePartnerUploadAPIRequest) GetNormalInvoiceNo() string { + return r._normalInvoiceNo +} +// NormalInvoiceCode Setter +// 原蓝票发票代码 +func (r *AlibabaEinvoicePartnerUploadAPIRequest) SetNormalInvoiceCode(_normalInvoiceCode string) error { + r._normalInvoiceCode = _normalInvoiceCode + r.Set("normal_invoice_code", _normalInvoiceCode) + return nil +} + +// NormalInvoiceCode Getter +func (r AlibabaEinvoicePartnerUploadAPIRequest) GetNormalInvoiceCode() string { + return r._normalInvoiceCode +} +// PayeeRegisterNo Setter +// 销方税号 +func (r *AlibabaEinvoicePartnerUploadAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoicePartnerUploadAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// InvoiceFileData Setter +// 发票数据,upload_type=0且invoiceKind=0电子发票时必填 +func (r *AlibabaEinvoicePartnerUploadAPIRequest) SetInvoiceFileData(_invoiceFileData *model.File) error { + r._invoiceFileData = _invoiceFileData + r.Set("invoice_file_data", _invoiceFileData) + return nil +} + +// InvoiceFileData Getter +func (r AlibabaEinvoicePartnerUploadAPIRequest) GetInvoiceFileData() *model.File { + return r._invoiceFileData +} +// InvoiceNo Setter +// 发票号码,upload_type=0时必填 +func (r *AlibabaEinvoicePartnerUploadAPIRequest) SetInvoiceNo(_invoiceNo string) error { + r._invoiceNo = _invoiceNo + r.Set("invoice_no", _invoiceNo) + return nil +} + +// InvoiceNo Getter +func (r AlibabaEinvoicePartnerUploadAPIRequest) GetInvoiceNo() string { + return r._invoiceNo +} +// InvoiceCode Setter +// 发票代码,upload_type=0时必填 +func (r *AlibabaEinvoicePartnerUploadAPIRequest) SetInvoiceCode(_invoiceCode string) error { + r._invoiceCode = _invoiceCode + r.Set("invoice_code", _invoiceCode) + return nil +} + +// InvoiceCode Getter +func (r AlibabaEinvoicePartnerUploadAPIRequest) GetInvoiceCode() string { + return r._invoiceCode +} +// InvoiceDate Setter +// 开票日期,upload_type=0时必填 +func (r *AlibabaEinvoicePartnerUploadAPIRequest) SetInvoiceDate(_invoiceDate string) error { + r._invoiceDate = _invoiceDate + r.Set("invoice_date", _invoiceDate) + return nil +} + +// InvoiceDate Getter +func (r AlibabaEinvoicePartnerUploadAPIRequest) GetInvoiceDate() string { + return r._invoiceDate +} +// CipherText Setter +// 密码区 +func (r *AlibabaEinvoicePartnerUploadAPIRequest) SetCipherText(_cipherText string) error { + r._cipherText = _cipherText + r.Set("cipher_text", _cipherText) + return nil +} + +// CipherText Getter +func (r AlibabaEinvoicePartnerUploadAPIRequest) GetCipherText() string { + return r._cipherText +} +// DeviceNo Setter +// 机器编号 +func (r *AlibabaEinvoicePartnerUploadAPIRequest) SetDeviceNo(_deviceNo string) error { + r._deviceNo = _deviceNo + r.Set("device_no", _deviceNo) + return nil +} + +// DeviceNo Getter +func (r AlibabaEinvoicePartnerUploadAPIRequest) GetDeviceNo() string { + return r._deviceNo +} +// AntiFakeCode Setter +// 校验码 +func (r *AlibabaEinvoicePartnerUploadAPIRequest) SetAntiFakeCode(_antiFakeCode string) error { + r._antiFakeCode = _antiFakeCode + r.Set("anti_fake_code", _antiFakeCode) + return nil +} + +// AntiFakeCode Getter +func (r AlibabaEinvoicePartnerUploadAPIRequest) GetAntiFakeCode() string { + return r._antiFakeCode +} +// FileDataType Setter +// 发票类型,upload_type=0且invoiceKind=0电子发票时必填,暂时只支持pdf +func (r *AlibabaEinvoicePartnerUploadAPIRequest) SetFileDataType(_fileDataType string) error { + r._fileDataType = _fileDataType + r.Set("file_data_type", _fileDataType) + return nil +} + +// FileDataType Getter +func (r AlibabaEinvoicePartnerUploadAPIRequest) GetFileDataType() string { + return r._fileDataType +} +// ReqIndex Setter +// 原蓝票的reqIndex +func (r *AlibabaEinvoicePartnerUploadAPIRequest) SetReqIndex(_reqIndex string) error { + r._reqIndex = _reqIndex + r.Set("req_index", _reqIndex) + return nil +} + +// ReqIndex Getter +func (r AlibabaEinvoicePartnerUploadAPIRequest) GetReqIndex() string { + return r._reqIndex +} +// InvoiceKind Setter +// 发票种类,0=电子发票,1=纸质普票,2=纸质专票 +func (r *AlibabaEinvoicePartnerUploadAPIRequest) SetInvoiceKind(_invoiceKind int64) error { + r._invoiceKind = _invoiceKind + r.Set("invoice_kind", _invoiceKind) + return nil +} + +// InvoiceKind Getter +func (r AlibabaEinvoicePartnerUploadAPIRequest) GetInvoiceKind() int64 { + return r._invoiceKind +} +// UploadType Setter +// 上传的类型,0=冲红上传,1=作废上传 +func (r *AlibabaEinvoicePartnerUploadAPIRequest) SetUploadType(_uploadType int64) error { + r._uploadType = _uploadType + r.Set("upload_type", _uploadType) + return nil +} + +// UploadType Getter +func (r AlibabaEinvoicePartnerUploadAPIRequest) GetUploadType() int64 { + return r._uploadType +} diff --git a/model/einvoice/AlibabaEinvoicePartnerUploadAPIResponse.go b/model/einvoice/AlibabaEinvoicePartnerUploadAPIResponse.go new file mode 100644 index 0000000000..fdc52494f6 --- /dev/null +++ b/model/einvoice/AlibabaEinvoicePartnerUploadAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商发票上传接口(非授权) API返回值 +alibaba.einvoice.partner.upload + +服务商发票上传接口(非授权) +*/ +type AlibabaEinvoicePartnerUploadAPIResponse struct { + model.CommonResponse + AlibabaEinvoicePartnerUploadAPIResponseModel +} + +// 服务商发票上传接口(非授权) 成功返回结果 +type AlibabaEinvoicePartnerUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_partner_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 上传结果 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoicePartnerUploadResponse.go b/model/einvoice/AlibabaEinvoicePartnerUploadResponse.go deleted file mode 100644 index 5e5a7f184d..0000000000 --- a/model/einvoice/AlibabaEinvoicePartnerUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商发票上传接口(非授权) API返回值 -alibaba.einvoice.partner.upload - -服务商发票上传接口(非授权) -*/ -type AlibabaEinvoicePartnerUploadAPIResponse struct { - model.CommonResponse - AlibabaEinvoicePartnerUploadResponse -} - -// 服务商发票上传接口(非授权) 成功返回结果 -type AlibabaEinvoicePartnerUploadResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_partner_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 上传结果 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceProdApplyAPIRequest.go b/model/einvoice/AlibabaEinvoiceProdApplyAPIRequest.go new file mode 100644 index 0000000000..1ca0d0e690 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceProdApplyAPIRequest.go @@ -0,0 +1,52 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交发票申请 API请求 +alibaba.einvoice.prod.apply + +提交开票申请,如果商户授权自动开票则自动转开票,否则等待商户审核。 +*/ +type AlibabaEinvoiceProdApplyAPIRequest struct { + model.Params + // 申请开票请求 + _paramInvoiceApplyDto *InvoiceApplyDto +} + +// 初始化AlibabaEinvoiceProdApplyAPIRequest对象 +func NewAlibabaEinvoiceProdApplyRequest() *AlibabaEinvoiceProdApplyAPIRequest{ + return &AlibabaEinvoiceProdApplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceProdApplyAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.prod.apply" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceProdApplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamInvoiceApplyDto Setter +// 申请开票请求 +func (r *AlibabaEinvoiceProdApplyAPIRequest) SetParamInvoiceApplyDto(_paramInvoiceApplyDto *InvoiceApplyDto) error { + r._paramInvoiceApplyDto = _paramInvoiceApplyDto + r.Set("param_invoice_apply_dto", _paramInvoiceApplyDto) + return nil +} + +// ParamInvoiceApplyDto Getter +func (r AlibabaEinvoiceProdApplyAPIRequest) GetParamInvoiceApplyDto() *InvoiceApplyDto { + return r._paramInvoiceApplyDto +} diff --git a/model/einvoice/AlibabaEinvoiceProdApplyAPIResponse.go b/model/einvoice/AlibabaEinvoiceProdApplyAPIResponse.go new file mode 100644 index 0000000000..2f45f9bc10 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceProdApplyAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交发票申请 API返回值 +alibaba.einvoice.prod.apply + +提交开票申请,如果商户授权自动开票则自动转开票,否则等待商户审核。 +*/ +type AlibabaEinvoiceProdApplyAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceProdApplyAPIResponseModel +} + +// 提交发票申请 成功返回结果 +type AlibabaEinvoiceProdApplyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_prod_apply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceProdApplyGetAPIRequest.go b/model/einvoice/AlibabaEinvoiceProdApplyGetAPIRequest.go new file mode 100644 index 0000000000..7c0bac1d3e --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceProdApplyGetAPIRequest.go @@ -0,0 +1,53 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询发票申请 API请求 +alibaba.einvoice.prod.apply.get + +查询申请的详细信息,包含申请所关联的发票摘要信息+板式文件+预览图; +场景使用:1、业务前台收到申请状态变更消息后,调用此接口查询申请详情;2、主动补偿查询:当指定了自动开票,且发票申请长时间未收到状态变更通知时,可能存在丢消息的情况,此时可主动查询该申请,然后更新本地工单状态。 +*/ +type AlibabaEinvoiceProdApplyGetAPIRequest struct { + model.Params + // 查询申请请求 + _invoiceApplyQueryDto *InvoiceApplyDtlQueryDto +} + +// 初始化AlibabaEinvoiceProdApplyGetAPIRequest对象 +func NewAlibabaEinvoiceProdApplyGetRequest() *AlibabaEinvoiceProdApplyGetAPIRequest{ + return &AlibabaEinvoiceProdApplyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceProdApplyGetAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.prod.apply.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceProdApplyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InvoiceApplyQueryDto Setter +// 查询申请请求 +func (r *AlibabaEinvoiceProdApplyGetAPIRequest) SetInvoiceApplyQueryDto(_invoiceApplyQueryDto *InvoiceApplyDtlQueryDto) error { + r._invoiceApplyQueryDto = _invoiceApplyQueryDto + r.Set("invoice_apply_query_dto", _invoiceApplyQueryDto) + return nil +} + +// InvoiceApplyQueryDto Getter +func (r AlibabaEinvoiceProdApplyGetAPIRequest) GetInvoiceApplyQueryDto() *InvoiceApplyDtlQueryDto { + return r._invoiceApplyQueryDto +} diff --git a/model/einvoice/AlibabaEinvoiceProdApplyGetAPIResponse.go b/model/einvoice/AlibabaEinvoiceProdApplyGetAPIResponse.go new file mode 100644 index 0000000000..4ecf40fd8d --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceProdApplyGetAPIResponse.go @@ -0,0 +1,28 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询发票申请 API返回值 +alibaba.einvoice.prod.apply.get + +查询申请的详细信息,包含申请所关联的发票摘要信息+板式文件+预览图; +场景使用:1、业务前台收到申请状态变更消息后,调用此接口查询申请详情;2、主动补偿查询:当指定了自动开票,且发票申请长时间未收到状态变更通知时,可能存在丢消息的情况,此时可主动查询该申请,然后更新本地工单状态。 +*/ +type AlibabaEinvoiceProdApplyGetAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceProdApplyGetAPIResponseModel +} + +// 查询发票申请 成功返回结果 +type AlibabaEinvoiceProdApplyGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_prod_apply_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceProdApplyGetResponse.go b/model/einvoice/AlibabaEinvoiceProdApplyGetResponse.go deleted file mode 100644 index e39f5d2a42..0000000000 --- a/model/einvoice/AlibabaEinvoiceProdApplyGetResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询发票申请 API返回值 -alibaba.einvoice.prod.apply.get - -查询申请的详细信息,包含申请所关联的发票摘要信息+板式文件+预览图; -场景使用:1、业务前台收到申请状态变更消息后,调用此接口查询申请详情;2、主动补偿查询:当指定了自动开票,且发票申请长时间未收到状态变更通知时,可能存在丢消息的情况,此时可主动查询该申请,然后更新本地工单状态。 -*/ -type AlibabaEinvoiceProdApplyGetAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceProdApplyGetResponse -} - -// 查询发票申请 成功返回结果 -type AlibabaEinvoiceProdApplyGetResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_prod_apply_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceProdApplyResponse.go b/model/einvoice/AlibabaEinvoiceProdApplyResponse.go deleted file mode 100644 index 1d18f76a77..0000000000 --- a/model/einvoice/AlibabaEinvoiceProdApplyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交发票申请 API返回值 -alibaba.einvoice.prod.apply - -提交开票申请,如果商户授权自动开票则自动转开票,否则等待商户审核。 -*/ -type AlibabaEinvoiceProdApplyAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceProdApplyResponse -} - -// 提交发票申请 成功返回结果 -type AlibabaEinvoiceProdApplyResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_prod_apply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceProdResultFileurlGetAPIRequest.go b/model/einvoice/AlibabaEinvoiceProdResultFileurlGetAPIRequest.go new file mode 100644 index 0000000000..b9af14f489 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceProdResultFileurlGetAPIRequest.go @@ -0,0 +1,108 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发票中台-发票文件下载地址查询 API请求 +alibaba.einvoice.prod.result.fileurl.get + +发票文件下载地址查询,外部ISV通过该接口可以查对应发票文件 +*/ +type AlibabaEinvoiceProdResultFileurlGetAPIRequest struct { + model.Params + // 业务平台商户ID/卖家用户ID + _platformUserId string + // 发票号码 + _invoiceNo string + // 发票代码 + _invoiceCode string + // 发票文件类型,小写,pdf/ofd/jpg + _fileType string + // 业务平台code, 由发票中台分配 + _platformCode string +} + +// 初始化AlibabaEinvoiceProdResultFileurlGetAPIRequest对象 +func NewAlibabaEinvoiceProdResultFileurlGetRequest() *AlibabaEinvoiceProdResultFileurlGetAPIRequest{ + return &AlibabaEinvoiceProdResultFileurlGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceProdResultFileurlGetAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.prod.result.fileurl.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceProdResultFileurlGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PlatformUserId Setter +// 业务平台商户ID/卖家用户ID +func (r *AlibabaEinvoiceProdResultFileurlGetAPIRequest) SetPlatformUserId(_platformUserId string) error { + r._platformUserId = _platformUserId + r.Set("platform_user_id", _platformUserId) + return nil +} + +// PlatformUserId Getter +func (r AlibabaEinvoiceProdResultFileurlGetAPIRequest) GetPlatformUserId() string { + return r._platformUserId +} +// InvoiceNo Setter +// 发票号码 +func (r *AlibabaEinvoiceProdResultFileurlGetAPIRequest) SetInvoiceNo(_invoiceNo string) error { + r._invoiceNo = _invoiceNo + r.Set("invoice_no", _invoiceNo) + return nil +} + +// InvoiceNo Getter +func (r AlibabaEinvoiceProdResultFileurlGetAPIRequest) GetInvoiceNo() string { + return r._invoiceNo +} +// InvoiceCode Setter +// 发票代码 +func (r *AlibabaEinvoiceProdResultFileurlGetAPIRequest) SetInvoiceCode(_invoiceCode string) error { + r._invoiceCode = _invoiceCode + r.Set("invoice_code", _invoiceCode) + return nil +} + +// InvoiceCode Getter +func (r AlibabaEinvoiceProdResultFileurlGetAPIRequest) GetInvoiceCode() string { + return r._invoiceCode +} +// FileType Setter +// 发票文件类型,小写,pdf/ofd/jpg +func (r *AlibabaEinvoiceProdResultFileurlGetAPIRequest) SetFileType(_fileType string) error { + r._fileType = _fileType + r.Set("file_type", _fileType) + return nil +} + +// FileType Getter +func (r AlibabaEinvoiceProdResultFileurlGetAPIRequest) GetFileType() string { + return r._fileType +} +// PlatformCode Setter +// 业务平台code, 由发票中台分配 +func (r *AlibabaEinvoiceProdResultFileurlGetAPIRequest) SetPlatformCode(_platformCode string) error { + r._platformCode = _platformCode + r.Set("platform_code", _platformCode) + return nil +} + +// PlatformCode Getter +func (r AlibabaEinvoiceProdResultFileurlGetAPIRequest) GetPlatformCode() string { + return r._platformCode +} diff --git a/model/einvoice/AlibabaEinvoiceProdResultFileurlGetAPIResponse.go b/model/einvoice/AlibabaEinvoiceProdResultFileurlGetAPIResponse.go new file mode 100644 index 0000000000..d3e64026ed --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceProdResultFileurlGetAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发票中台-发票文件下载地址查询 API返回值 +alibaba.einvoice.prod.result.fileurl.get + +发票文件下载地址查询,外部ISV通过该接口可以查对应发票文件 +*/ +type AlibabaEinvoiceProdResultFileurlGetAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceProdResultFileurlGetAPIResponseModel +} + +// 发票中台-发票文件下载地址查询 成功返回结果 +type AlibabaEinvoiceProdResultFileurlGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_prod_result_fileurl_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 发票版式文件下载地址。下载链接是一次性链接,有效期1天。请发票文件下载后本地保存, 若异常导致需要再次下载文件,请再次请求接口获取。 + FileDownloadUrl string `json:"file_download_url,omitempty" xml:"file_download_url,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceProdResultFileurlGetResponse.go b/model/einvoice/AlibabaEinvoiceProdResultFileurlGetResponse.go deleted file mode 100644 index 45852e34a6..0000000000 --- a/model/einvoice/AlibabaEinvoiceProdResultFileurlGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发票中台-发票文件下载地址查询 API返回值 -alibaba.einvoice.prod.result.fileurl.get - -发票文件下载地址查询,外部ISV通过该接口可以查对应发票文件 -*/ -type AlibabaEinvoiceProdResultFileurlGetAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceProdResultFileurlGetResponse -} - -// 发票中台-发票文件下载地址查询 成功返回结果 -type AlibabaEinvoiceProdResultFileurlGetResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_prod_result_fileurl_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 发票版式文件下载地址。下载链接是一次性链接,有效期1天。请发票文件下载后本地保存, 若异常导致需要再次下载文件,请再次请求接口获取。 - FileDownloadUrl string `json:"file_download_url,omitempty" xml:"file_download_url,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceQrcodeCreateAPIRequest.go b/model/einvoice/AlibabaEinvoiceQrcodeCreateAPIRequest.go new file mode 100644 index 0000000000..1d88082878 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceQrcodeCreateAPIRequest.go @@ -0,0 +1,178 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +扫码开票二维码生成 API请求 +alibaba.einvoice.qrcode.create + +扫码开票功能中的二维码生成接口,pos机等发起请求生成二维码 +*/ +type AlibabaEinvoiceQrcodeCreateAPIRequest struct { + model.Params + // 发票商品明细 + _invoiceItems []BillItemDo + // 收款方税务登记证号 + _payeeRegisterNo string + // 开票的订单号,同结算单订单号 + _orderId string + // 开票金额 + _sumPrice string + // 请求方唯一标识ID,例如POS机编码 + _sourceId string + // 二维码图片中间的logo + _qrLogo string + // 二维码图片宽度,默认=450 + _width int64 + // 二维码图片高度,默认=450 + _height int64 + // 二维码返回类型:1=二维码背后的URL,2=二维码图片CDN URL,3=二维码二进制数据流 + _qrType int64 + // 请求方ERP系统平台,同结算单同步的platform,不填默认=platform + _platform string +} + +// 初始化AlibabaEinvoiceQrcodeCreateAPIRequest对象 +func NewAlibabaEinvoiceQrcodeCreateRequest() *AlibabaEinvoiceQrcodeCreateAPIRequest{ + return &AlibabaEinvoiceQrcodeCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceQrcodeCreateAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.qrcode.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceQrcodeCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InvoiceItems Setter +// 发票商品明细 +func (r *AlibabaEinvoiceQrcodeCreateAPIRequest) SetInvoiceItems(_invoiceItems []BillItemDo) error { + r._invoiceItems = _invoiceItems + r.Set("invoice_items", _invoiceItems) + return nil +} + +// InvoiceItems Getter +func (r AlibabaEinvoiceQrcodeCreateAPIRequest) GetInvoiceItems() []BillItemDo { + return r._invoiceItems +} +// PayeeRegisterNo Setter +// 收款方税务登记证号 +func (r *AlibabaEinvoiceQrcodeCreateAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceQrcodeCreateAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// OrderId Setter +// 开票的订单号,同结算单订单号 +func (r *AlibabaEinvoiceQrcodeCreateAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaEinvoiceQrcodeCreateAPIRequest) GetOrderId() string { + return r._orderId +} +// SumPrice Setter +// 开票金额 +func (r *AlibabaEinvoiceQrcodeCreateAPIRequest) SetSumPrice(_sumPrice string) error { + r._sumPrice = _sumPrice + r.Set("sum_price", _sumPrice) + return nil +} + +// SumPrice Getter +func (r AlibabaEinvoiceQrcodeCreateAPIRequest) GetSumPrice() string { + return r._sumPrice +} +// SourceId Setter +// 请求方唯一标识ID,例如POS机编码 +func (r *AlibabaEinvoiceQrcodeCreateAPIRequest) SetSourceId(_sourceId string) error { + r._sourceId = _sourceId + r.Set("source_id", _sourceId) + return nil +} + +// SourceId Getter +func (r AlibabaEinvoiceQrcodeCreateAPIRequest) GetSourceId() string { + return r._sourceId +} +// QrLogo Setter +// 二维码图片中间的logo +func (r *AlibabaEinvoiceQrcodeCreateAPIRequest) SetQrLogo(_qrLogo string) error { + r._qrLogo = _qrLogo + r.Set("qr_logo", _qrLogo) + return nil +} + +// QrLogo Getter +func (r AlibabaEinvoiceQrcodeCreateAPIRequest) GetQrLogo() string { + return r._qrLogo +} +// Width Setter +// 二维码图片宽度,默认=450 +func (r *AlibabaEinvoiceQrcodeCreateAPIRequest) SetWidth(_width int64) error { + r._width = _width + r.Set("width", _width) + return nil +} + +// Width Getter +func (r AlibabaEinvoiceQrcodeCreateAPIRequest) GetWidth() int64 { + return r._width +} +// Height Setter +// 二维码图片高度,默认=450 +func (r *AlibabaEinvoiceQrcodeCreateAPIRequest) SetHeight(_height int64) error { + r._height = _height + r.Set("height", _height) + return nil +} + +// Height Getter +func (r AlibabaEinvoiceQrcodeCreateAPIRequest) GetHeight() int64 { + return r._height +} +// QrType Setter +// 二维码返回类型:1=二维码背后的URL,2=二维码图片CDN URL,3=二维码二进制数据流 +func (r *AlibabaEinvoiceQrcodeCreateAPIRequest) SetQrType(_qrType int64) error { + r._qrType = _qrType + r.Set("qr_type", _qrType) + return nil +} + +// QrType Getter +func (r AlibabaEinvoiceQrcodeCreateAPIRequest) GetQrType() int64 { + return r._qrType +} +// Platform Setter +// 请求方ERP系统平台,同结算单同步的platform,不填默认=platform +func (r *AlibabaEinvoiceQrcodeCreateAPIRequest) SetPlatform(_platform string) error { + r._platform = _platform + r.Set("platform", _platform) + return nil +} + +// Platform Getter +func (r AlibabaEinvoiceQrcodeCreateAPIRequest) GetPlatform() string { + return r._platform +} diff --git a/model/einvoice/AlibabaEinvoiceQrcodeCreateAPIResponse.go b/model/einvoice/AlibabaEinvoiceQrcodeCreateAPIResponse.go new file mode 100644 index 0000000000..d7f60a3a90 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceQrcodeCreateAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +扫码开票二维码生成 API返回值 +alibaba.einvoice.qrcode.create + +扫码开票功能中的二维码生成接口,pos机等发起请求生成二维码 +*/ +type AlibabaEinvoiceQrcodeCreateAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceQrcodeCreateAPIResponseModel +} + +// 扫码开票二维码生成 成功返回结果 +type AlibabaEinvoiceQrcodeCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_qrcode_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaEinvoiceQrcodeCreateResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceQrcodeCreateResponse.go b/model/einvoice/AlibabaEinvoiceQrcodeCreateResponse.go deleted file mode 100644 index 654a1bc900..0000000000 --- a/model/einvoice/AlibabaEinvoiceQrcodeCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -扫码开票二维码生成 API返回值 -alibaba.einvoice.qrcode.create - -扫码开票功能中的二维码生成接口,pos机等发起请求生成二维码 -*/ -type AlibabaEinvoiceQrcodeCreateAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceQrcodeCreateResponse -} - -// 扫码开票二维码生成 成功返回结果 -type AlibabaEinvoiceQrcodeCreateResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_qrcode_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaEinvoiceQrcodeCreateResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceRedCreatereqAPIRequest.go b/model/einvoice/AlibabaEinvoiceRedCreatereqAPIRequest.go new file mode 100644 index 0000000000..417d166275 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceRedCreatereqAPIRequest.go @@ -0,0 +1,108 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发票冲红接口 API请求 +alibaba.einvoice.red.createreq + +发票冲红接口,通过蓝票流水号或者发票号码+发票代码进行冲红 +*/ +type AlibabaEinvoiceRedCreatereqAPIRequest struct { + model.Params + // 销售方税号 + _payeeRegisterNo string + // 蓝票流水号,优先级高于发票代码+发票号码 + _blueSerialNo string + // 红票流水号 + _redSerialNo string + // 蓝票发票代码 + _invoiceCode string + // 蓝票发票号码 + _invoiceNo string +} + +// 初始化AlibabaEinvoiceRedCreatereqAPIRequest对象 +func NewAlibabaEinvoiceRedCreatereqRequest() *AlibabaEinvoiceRedCreatereqAPIRequest{ + return &AlibabaEinvoiceRedCreatereqAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceRedCreatereqAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.red.createreq" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceRedCreatereqAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PayeeRegisterNo Setter +// 销售方税号 +func (r *AlibabaEinvoiceRedCreatereqAPIRequest) SetPayeeRegisterNo(_payeeRegisterNo string) error { + r._payeeRegisterNo = _payeeRegisterNo + r.Set("payee_register_no", _payeeRegisterNo) + return nil +} + +// PayeeRegisterNo Getter +func (r AlibabaEinvoiceRedCreatereqAPIRequest) GetPayeeRegisterNo() string { + return r._payeeRegisterNo +} +// BlueSerialNo Setter +// 蓝票流水号,优先级高于发票代码+发票号码 +func (r *AlibabaEinvoiceRedCreatereqAPIRequest) SetBlueSerialNo(_blueSerialNo string) error { + r._blueSerialNo = _blueSerialNo + r.Set("blue_serial_no", _blueSerialNo) + return nil +} + +// BlueSerialNo Getter +func (r AlibabaEinvoiceRedCreatereqAPIRequest) GetBlueSerialNo() string { + return r._blueSerialNo +} +// RedSerialNo Setter +// 红票流水号 +func (r *AlibabaEinvoiceRedCreatereqAPIRequest) SetRedSerialNo(_redSerialNo string) error { + r._redSerialNo = _redSerialNo + r.Set("red_serial_no", _redSerialNo) + return nil +} + +// RedSerialNo Getter +func (r AlibabaEinvoiceRedCreatereqAPIRequest) GetRedSerialNo() string { + return r._redSerialNo +} +// InvoiceCode Setter +// 蓝票发票代码 +func (r *AlibabaEinvoiceRedCreatereqAPIRequest) SetInvoiceCode(_invoiceCode string) error { + r._invoiceCode = _invoiceCode + r.Set("invoice_code", _invoiceCode) + return nil +} + +// InvoiceCode Getter +func (r AlibabaEinvoiceRedCreatereqAPIRequest) GetInvoiceCode() string { + return r._invoiceCode +} +// InvoiceNo Setter +// 蓝票发票号码 +func (r *AlibabaEinvoiceRedCreatereqAPIRequest) SetInvoiceNo(_invoiceNo string) error { + r._invoiceNo = _invoiceNo + r.Set("invoice_no", _invoiceNo) + return nil +} + +// InvoiceNo Getter +func (r AlibabaEinvoiceRedCreatereqAPIRequest) GetInvoiceNo() string { + return r._invoiceNo +} diff --git a/model/einvoice/AlibabaEinvoiceRedCreatereqAPIResponse.go b/model/einvoice/AlibabaEinvoiceRedCreatereqAPIResponse.go new file mode 100644 index 0000000000..755e134416 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceRedCreatereqAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发票冲红接口 API返回值 +alibaba.einvoice.red.createreq + +发票冲红接口,通过蓝票流水号或者发票号码+发票代码进行冲红 +*/ +type AlibabaEinvoiceRedCreatereqAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceRedCreatereqAPIResponseModel +} + +// 发票冲红接口 成功返回结果 +type AlibabaEinvoiceRedCreatereqAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_red_createreq_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否冲红成功 + IsSuccess string `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceRedCreatereqResponse.go b/model/einvoice/AlibabaEinvoiceRedCreatereqResponse.go deleted file mode 100644 index ff91b2fdbb..0000000000 --- a/model/einvoice/AlibabaEinvoiceRedCreatereqResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发票冲红接口 API返回值 -alibaba.einvoice.red.createreq - -发票冲红接口,通过蓝票流水号或者发票号码+发票代码进行冲红 -*/ -type AlibabaEinvoiceRedCreatereqAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceRedCreatereqResponse -} - -// 发票冲红接口 成功返回结果 -type AlibabaEinvoiceRedCreatereqResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_red_createreq_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否冲红成功 - IsSuccess string `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceSerialnoBatchGenerateAPIRequest.go b/model/einvoice/AlibabaEinvoiceSerialnoBatchGenerateAPIRequest.go new file mode 100644 index 0000000000..8b97e1b0b1 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceSerialnoBatchGenerateAPIRequest.go @@ -0,0 +1,39 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +开票流水号批量生成接口 API请求 +alibaba.einvoice.serialno.batch.generate + +批量获取开票流水号接口。此接口1次返回1000条开票流水号,每个应用每天限流1000次调用。 +优先使用alibaba.einvoice.serial.generate。 +*/ +type AlibabaEinvoiceSerialnoBatchGenerateAPIRequest struct { + model.Params +} + +// 初始化AlibabaEinvoiceSerialnoBatchGenerateAPIRequest对象 +func NewAlibabaEinvoiceSerialnoBatchGenerateRequest() *AlibabaEinvoiceSerialnoBatchGenerateAPIRequest{ + return &AlibabaEinvoiceSerialnoBatchGenerateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceSerialnoBatchGenerateAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.serialno.batch.generate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceSerialnoBatchGenerateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/einvoice/AlibabaEinvoiceSerialnoBatchGenerateAPIResponse.go b/model/einvoice/AlibabaEinvoiceSerialnoBatchGenerateAPIResponse.go new file mode 100644 index 0000000000..104f5cd37b --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceSerialnoBatchGenerateAPIResponse.go @@ -0,0 +1,28 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +开票流水号批量生成接口 API返回值 +alibaba.einvoice.serialno.batch.generate + +批量获取开票流水号接口。此接口1次返回1000条开票流水号,每个应用每天限流1000次调用。 +优先使用alibaba.einvoice.serial.generate。 +*/ +type AlibabaEinvoiceSerialnoBatchGenerateAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceSerialnoBatchGenerateAPIResponseModel +} + +// 开票流水号批量生成接口 成功返回结果 +type AlibabaEinvoiceSerialnoBatchGenerateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_serialno_batch_generate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + SerialNoList []string `json:"serial_no_list,omitempty" xml:"serial_no_list>string,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceSerialnoBatchGenerateResponse.go b/model/einvoice/AlibabaEinvoiceSerialnoBatchGenerateResponse.go deleted file mode 100644 index 405b4a3d32..0000000000 --- a/model/einvoice/AlibabaEinvoiceSerialnoBatchGenerateResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -开票流水号批量生成接口 API返回值 -alibaba.einvoice.serialno.batch.generate - -批量获取开票流水号接口。此接口1次返回1000条开票流水号,每个应用每天限流1000次调用。 -优先使用alibaba.einvoice.serial.generate。 -*/ -type AlibabaEinvoiceSerialnoBatchGenerateAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceSerialnoBatchGenerateResponse -} - -// 开票流水号批量生成接口 成功返回结果 -type AlibabaEinvoiceSerialnoBatchGenerateResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_serialno_batch_generate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - SerialNoList []string `json:"serial_no_list,omitempty" xml:"serial_no_list>string,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceSerialnoGenerateAPIRequest.go b/model/einvoice/AlibabaEinvoiceSerialnoGenerateAPIRequest.go new file mode 100644 index 0000000000..e1dba8a75e --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceSerialnoGenerateAPIRequest.go @@ -0,0 +1,38 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取统一开票流水号 API请求 +alibaba.einvoice.serialno.generate + +erp调用开票请求时需要一个开票流水号,此接口就提供了统一的开票流水号,避免了不同系统的冲突 +*/ +type AlibabaEinvoiceSerialnoGenerateAPIRequest struct { + model.Params +} + +// 初始化AlibabaEinvoiceSerialnoGenerateAPIRequest对象 +func NewAlibabaEinvoiceSerialnoGenerateRequest() *AlibabaEinvoiceSerialnoGenerateAPIRequest{ + return &AlibabaEinvoiceSerialnoGenerateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceSerialnoGenerateAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.serialno.generate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceSerialnoGenerateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/einvoice/AlibabaEinvoiceSerialnoGenerateAPIResponse.go b/model/einvoice/AlibabaEinvoiceSerialnoGenerateAPIResponse.go new file mode 100644 index 0000000000..fe8bcfb9ae --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceSerialnoGenerateAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取统一开票流水号 API返回值 +alibaba.einvoice.serialno.generate + +erp调用开票请求时需要一个开票流水号,此接口就提供了统一的开票流水号,避免了不同系统的冲突 +*/ +type AlibabaEinvoiceSerialnoGenerateAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceSerialnoGenerateAPIResponseModel +} + +// 获取统一开票流水号 成功返回结果 +type AlibabaEinvoiceSerialnoGenerateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_serialno_generate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + SerialNo string `json:"serial_no,omitempty" xml:"serial_no,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceSerialnoGenerateResponse.go b/model/einvoice/AlibabaEinvoiceSerialnoGenerateResponse.go deleted file mode 100644 index 782d1624a6..0000000000 --- a/model/einvoice/AlibabaEinvoiceSerialnoGenerateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取统一开票流水号 API返回值 -alibaba.einvoice.serialno.generate - -erp调用开票请求时需要一个开票流水号,此接口就提供了统一的开票流水号,避免了不同系统的冲突 -*/ -type AlibabaEinvoiceSerialnoGenerateAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceSerialnoGenerateResponse -} - -// 获取统一开票流水号 成功返回结果 -type AlibabaEinvoiceSerialnoGenerateResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_serialno_generate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - SerialNo string `json:"serial_no,omitempty" xml:"serial_no,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptEsignresultQueryAPIRequest.go b/model/einvoice/AlibabaEinvoiceTaxOptEsignresultQueryAPIRequest.go new file mode 100644 index 0000000000..de8da21b95 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceTaxOptEsignresultQueryAPIRequest.go @@ -0,0 +1,66 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询用户签约税优结果 API请求 +alibaba.einvoice.tax.opt.esignresult.query + +查询用户是否已经签约 +*/ +type AlibabaEinvoiceTaxOptEsignresultQueryAPIRequest struct { + model.Params + // 业务方编码 + _employerCode string + // 用户在业务方平台的userid + _identificationInBelongingEmployer string +} + +// 初始化AlibabaEinvoiceTaxOptEsignresultQueryAPIRequest对象 +func NewAlibabaEinvoiceTaxOptEsignresultQueryRequest() *AlibabaEinvoiceTaxOptEsignresultQueryAPIRequest{ + return &AlibabaEinvoiceTaxOptEsignresultQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceTaxOptEsignresultQueryAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.tax.opt.esignresult.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceTaxOptEsignresultQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EmployerCode Setter +// 业务方编码 +func (r *AlibabaEinvoiceTaxOptEsignresultQueryAPIRequest) SetEmployerCode(_employerCode string) error { + r._employerCode = _employerCode + r.Set("employer_code", _employerCode) + return nil +} + +// EmployerCode Getter +func (r AlibabaEinvoiceTaxOptEsignresultQueryAPIRequest) GetEmployerCode() string { + return r._employerCode +} +// IdentificationInBelongingEmployer Setter +// 用户在业务方平台的userid +func (r *AlibabaEinvoiceTaxOptEsignresultQueryAPIRequest) SetIdentificationInBelongingEmployer(_identificationInBelongingEmployer string) error { + r._identificationInBelongingEmployer = _identificationInBelongingEmployer + r.Set("identification_in_belonging_employer", _identificationInBelongingEmployer) + return nil +} + +// IdentificationInBelongingEmployer Getter +func (r AlibabaEinvoiceTaxOptEsignresultQueryAPIRequest) GetIdentificationInBelongingEmployer() string { + return r._identificationInBelongingEmployer +} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptEsignresultQueryAPIResponse.go b/model/einvoice/AlibabaEinvoiceTaxOptEsignresultQueryAPIResponse.go new file mode 100644 index 0000000000..c748f11777 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceTaxOptEsignresultQueryAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询用户签约税优结果 API返回值 +alibaba.einvoice.tax.opt.esignresult.query + +查询用户是否已经签约 +*/ +type AlibabaEinvoiceTaxOptEsignresultQueryAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceTaxOptEsignresultQueryAPIResponseModel +} + +// 查询用户签约税优结果 成功返回结果 +type AlibabaEinvoiceTaxOptEsignresultQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_esignresult_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果 + Results []AgreementInfoDto `json:"results,omitempty" xml:"results>agreement_info_dto,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptEsignresultQueryResponse.go b/model/einvoice/AlibabaEinvoiceTaxOptEsignresultQueryResponse.go deleted file mode 100644 index 33d5f97db0..0000000000 --- a/model/einvoice/AlibabaEinvoiceTaxOptEsignresultQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询用户签约税优结果 API返回值 -alibaba.einvoice.tax.opt.esignresult.query - -查询用户是否已经签约 -*/ -type AlibabaEinvoiceTaxOptEsignresultQueryAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceTaxOptEsignresultQueryResponse -} - -// 查询用户签约税优结果 成功返回结果 -type AlibabaEinvoiceTaxOptEsignresultQueryResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_esignresult_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果 - Results []AgreementInfoDto `json:"results,omitempty" xml:"results>agreement_info_dto,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountQueryAPIRequest.go b/model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountQueryAPIRequest.go new file mode 100644 index 0000000000..78ca6d891f --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountQueryAPIRequest.go @@ -0,0 +1,52 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询用户的发薪账号 API请求 +alibaba.einvoice.tax.opt.salaryaccount.query + +查询用户的发薪账号状态 +*/ +type AlibabaEinvoiceTaxOptSalaryaccountQueryAPIRequest struct { + model.Params + // 入参 + _paramTaxOptimizationQueryPaySalaryAccountDTO *TaxOptimizationQueryPaySalaryAccountDto +} + +// 初始化AlibabaEinvoiceTaxOptSalaryaccountQueryAPIRequest对象 +func NewAlibabaEinvoiceTaxOptSalaryaccountQueryRequest() *AlibabaEinvoiceTaxOptSalaryaccountQueryAPIRequest{ + return &AlibabaEinvoiceTaxOptSalaryaccountQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceTaxOptSalaryaccountQueryAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.tax.opt.salaryaccount.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceTaxOptSalaryaccountQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamTaxOptimizationQueryPaySalaryAccountDTO Setter +// 入参 +func (r *AlibabaEinvoiceTaxOptSalaryaccountQueryAPIRequest) SetParamTaxOptimizationQueryPaySalaryAccountDTO(_paramTaxOptimizationQueryPaySalaryAccountDTO *TaxOptimizationQueryPaySalaryAccountDto) error { + r._paramTaxOptimizationQueryPaySalaryAccountDTO = _paramTaxOptimizationQueryPaySalaryAccountDTO + r.Set("param_tax_optimization_query_pay_salary_account_d_t_o", _paramTaxOptimizationQueryPaySalaryAccountDTO) + return nil +} + +// ParamTaxOptimizationQueryPaySalaryAccountDTO Getter +func (r AlibabaEinvoiceTaxOptSalaryaccountQueryAPIRequest) GetParamTaxOptimizationQueryPaySalaryAccountDTO() *TaxOptimizationQueryPaySalaryAccountDto { + return r._paramTaxOptimizationQueryPaySalaryAccountDTO +} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountQueryAPIResponse.go b/model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountQueryAPIResponse.go new file mode 100644 index 0000000000..ecbf66b1d9 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountQueryAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询用户的发薪账号 API返回值 +alibaba.einvoice.tax.opt.salaryaccount.query + +查询用户的发薪账号状态 +*/ +type AlibabaEinvoiceTaxOptSalaryaccountQueryAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceTaxOptSalaryaccountQueryAPIResponseModel +} + +// 查询用户的发薪账号 成功返回结果 +type AlibabaEinvoiceTaxOptSalaryaccountQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_salaryaccount_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *TaxOptimizationQueryAlipayAccountResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountQueryResponse.go b/model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountQueryResponse.go deleted file mode 100644 index a4bd76f4e8..0000000000 --- a/model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询用户的发薪账号 API返回值 -alibaba.einvoice.tax.opt.salaryaccount.query - -查询用户的发薪账号状态 -*/ -type AlibabaEinvoiceTaxOptSalaryaccountQueryAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceTaxOptSalaryaccountQueryResponse -} - -// 查询用户的发薪账号 成功返回结果 -type AlibabaEinvoiceTaxOptSalaryaccountQueryResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_salaryaccount_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *TaxOptimizationQueryAlipayAccountResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIRequest.go b/model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIRequest.go new file mode 100644 index 0000000000..fb519b3e81 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新用户发薪资产 API请求 +alibaba.einvoice.tax.opt.salaryaccount.update + +更新用户的发薪账号 +*/ +type AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIRequest struct { + model.Params + // 入参 + _paramTaxOptimizationEmployeeAssetUpdateDTO *TaxOptimizationEmployeeAssetUpdateDto +} + +// 初始化AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIRequest对象 +func NewAlibabaEinvoiceTaxOptSalaryaccountUpdateRequest() *AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIRequest{ + return &AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.tax.opt.salaryaccount.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamTaxOptimizationEmployeeAssetUpdateDTO Setter +// 入参 +func (r *AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIRequest) SetParamTaxOptimizationEmployeeAssetUpdateDTO(_paramTaxOptimizationEmployeeAssetUpdateDTO *TaxOptimizationEmployeeAssetUpdateDto) error { + r._paramTaxOptimizationEmployeeAssetUpdateDTO = _paramTaxOptimizationEmployeeAssetUpdateDTO + r.Set("param_tax_optimization_employee_asset_update_d_t_o", _paramTaxOptimizationEmployeeAssetUpdateDTO) + return nil +} + +// ParamTaxOptimizationEmployeeAssetUpdateDTO Getter +func (r AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIRequest) GetParamTaxOptimizationEmployeeAssetUpdateDTO() *TaxOptimizationEmployeeAssetUpdateDto { + return r._paramTaxOptimizationEmployeeAssetUpdateDTO +} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIResponse.go b/model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIResponse.go new file mode 100644 index 0000000000..5cea86fefd --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新用户发薪资产 API返回值 +alibaba.einvoice.tax.opt.salaryaccount.update + +更新用户的发薪账号 +*/ +type AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIResponseModel +} + +// 更新用户发薪资产 成功返回结果 +type AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_salaryaccount_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *TaxOptimizationEmployeeAssetUpdateResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountUpdateResponse.go b/model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountUpdateResponse.go deleted file mode 100644 index 602d7b6a4b..0000000000 --- a/model/einvoice/AlibabaEinvoiceTaxOptSalaryaccountUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新用户发薪资产 API返回值 -alibaba.einvoice.tax.opt.salaryaccount.update - -更新用户的发薪账号 -*/ -type AlibabaEinvoiceTaxOptSalaryaccountUpdateAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceTaxOptSalaryaccountUpdateResponse -} - -// 更新用户发薪资产 成功返回结果 -type AlibabaEinvoiceTaxOptSalaryaccountUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_salaryaccount_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *TaxOptimizationEmployeeAssetUpdateResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptSalarybillCommitbillAPIRequest.go b/model/einvoice/AlibabaEinvoiceTaxOptSalarybillCommitbillAPIRequest.go new file mode 100644 index 0000000000..e2fb1045c1 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceTaxOptSalarybillCommitbillAPIRequest.go @@ -0,0 +1,52 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交发薪账单 API请求 +alibaba.einvoice.tax.opt.salarybill.commitbill + +提交发薪账单 +*/ +type AlibabaEinvoiceTaxOptSalarybillCommitbillAPIRequest struct { + model.Params + // 入参 + _paramTaxOptimizationSalaryBillCommitReqDTO *TaxOptimizationSalaryBillCommitReqDto +} + +// 初始化AlibabaEinvoiceTaxOptSalarybillCommitbillAPIRequest对象 +func NewAlibabaEinvoiceTaxOptSalarybillCommitbillRequest() *AlibabaEinvoiceTaxOptSalarybillCommitbillAPIRequest{ + return &AlibabaEinvoiceTaxOptSalarybillCommitbillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceTaxOptSalarybillCommitbillAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.tax.opt.salarybill.commitbill" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceTaxOptSalarybillCommitbillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamTaxOptimizationSalaryBillCommitReqDTO Setter +// 入参 +func (r *AlibabaEinvoiceTaxOptSalarybillCommitbillAPIRequest) SetParamTaxOptimizationSalaryBillCommitReqDTO(_paramTaxOptimizationSalaryBillCommitReqDTO *TaxOptimizationSalaryBillCommitReqDto) error { + r._paramTaxOptimizationSalaryBillCommitReqDTO = _paramTaxOptimizationSalaryBillCommitReqDTO + r.Set("param_tax_optimization_salary_bill_commit_req_d_t_o", _paramTaxOptimizationSalaryBillCommitReqDTO) + return nil +} + +// ParamTaxOptimizationSalaryBillCommitReqDTO Getter +func (r AlibabaEinvoiceTaxOptSalarybillCommitbillAPIRequest) GetParamTaxOptimizationSalaryBillCommitReqDTO() *TaxOptimizationSalaryBillCommitReqDto { + return r._paramTaxOptimizationSalaryBillCommitReqDTO +} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptSalarybillCommitbillAPIResponse.go b/model/einvoice/AlibabaEinvoiceTaxOptSalarybillCommitbillAPIResponse.go new file mode 100644 index 0000000000..2a6d1de198 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceTaxOptSalarybillCommitbillAPIResponse.go @@ -0,0 +1,25 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交发薪账单 API返回值 +alibaba.einvoice.tax.opt.salarybill.commitbill + +提交发薪账单 +*/ +type AlibabaEinvoiceTaxOptSalarybillCommitbillAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceTaxOptSalarybillCommitbillAPIResponseModel +} + +// 提交发薪账单 成功返回结果 +type AlibabaEinvoiceTaxOptSalarybillCommitbillAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_salarybill_commitbill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptSalarybillCommitbillResponse.go b/model/einvoice/AlibabaEinvoiceTaxOptSalarybillCommitbillResponse.go deleted file mode 100644 index 268a988ecf..0000000000 --- a/model/einvoice/AlibabaEinvoiceTaxOptSalarybillCommitbillResponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交发薪账单 API返回值 -alibaba.einvoice.tax.opt.salarybill.commitbill - -提交发薪账单 -*/ -type AlibabaEinvoiceTaxOptSalarybillCommitbillAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceTaxOptSalarybillCommitbillResponse -} - -// 提交发薪账单 成功返回结果 -type AlibabaEinvoiceTaxOptSalarybillCommitbillResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_salarybill_commitbill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIRequest.go b/model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIRequest.go new file mode 100644 index 0000000000..49f88ec1a3 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIRequest.go @@ -0,0 +1,52 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +受理发薪 API请求 +alibaba.einvoice.tax.opt.salaryrequest.acceptpayment + +发薪受理接口 +*/ +type AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIRequest struct { + model.Params + // 请求入参 + _paramTaxOptimizationSalaryPaymentAccessReqDTO *TaxOptimizationSalaryPaymentAccessReqDto +} + +// 初始化AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIRequest对象 +func NewAlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentRequest() *AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIRequest{ + return &AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.tax.opt.salaryrequest.acceptpayment" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamTaxOptimizationSalaryPaymentAccessReqDTO Setter +// 请求入参 +func (r *AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIRequest) SetParamTaxOptimizationSalaryPaymentAccessReqDTO(_paramTaxOptimizationSalaryPaymentAccessReqDTO *TaxOptimizationSalaryPaymentAccessReqDto) error { + r._paramTaxOptimizationSalaryPaymentAccessReqDTO = _paramTaxOptimizationSalaryPaymentAccessReqDTO + r.Set("param_tax_optimization_salary_payment_access_req_d_t_o", _paramTaxOptimizationSalaryPaymentAccessReqDTO) + return nil +} + +// ParamTaxOptimizationSalaryPaymentAccessReqDTO Getter +func (r AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIRequest) GetParamTaxOptimizationSalaryPaymentAccessReqDTO() *TaxOptimizationSalaryPaymentAccessReqDto { + return r._paramTaxOptimizationSalaryPaymentAccessReqDTO +} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIResponse.go b/model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIResponse.go new file mode 100644 index 0000000000..a75a341890 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +受理发薪 API返回值 +alibaba.einvoice.tax.opt.salaryrequest.acceptpayment + +发薪受理接口 +*/ +type AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIResponseModel +} + +// 受理发薪 成功返回结果 +type AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_salaryrequest_acceptpayment_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务出参 + Result *TaxOptimizationSalaryPaymentAccessResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentResponse.go b/model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentResponse.go deleted file mode 100644 index fa1a621d91..0000000000 --- a/model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -受理发薪 API返回值 -alibaba.einvoice.tax.opt.salaryrequest.acceptpayment - -发薪受理接口 -*/ -type AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentResponse -} - -// 受理发薪 成功返回结果 -type AlibabaEinvoiceTaxOptSalaryrequestAcceptpaymentResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_salaryrequest_acceptpayment_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务出参 - Result *TaxOptimizationSalaryPaymentAccessResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIRequest.go b/model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIRequest.go new file mode 100644 index 0000000000..d9e0c45b35 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIRequest.go @@ -0,0 +1,52 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单明细发薪受理 API请求 +alibaba.einvoice.tax.opt.salaryrequest.singleaccept + +单明细发薪受理 +*/ +type AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIRequest struct { + model.Params + // 入参 + _paramTaxOptimizationSingleDetailSalaryPaymentAccessDTO *TaxOptimizationSingleDetailSalaryPaymentAccessDto +} + +// 初始化AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIRequest对象 +func NewAlibabaEinvoiceTaxOptSalaryrequestSingleacceptRequest() *AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIRequest{ + return &AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.tax.opt.salaryrequest.singleaccept" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamTaxOptimizationSingleDetailSalaryPaymentAccessDTO Setter +// 入参 +func (r *AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIRequest) SetParamTaxOptimizationSingleDetailSalaryPaymentAccessDTO(_paramTaxOptimizationSingleDetailSalaryPaymentAccessDTO *TaxOptimizationSingleDetailSalaryPaymentAccessDto) error { + r._paramTaxOptimizationSingleDetailSalaryPaymentAccessDTO = _paramTaxOptimizationSingleDetailSalaryPaymentAccessDTO + r.Set("param_tax_optimization_single_detail_salary_payment_access_d_t_o", _paramTaxOptimizationSingleDetailSalaryPaymentAccessDTO) + return nil +} + +// ParamTaxOptimizationSingleDetailSalaryPaymentAccessDTO Getter +func (r AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIRequest) GetParamTaxOptimizationSingleDetailSalaryPaymentAccessDTO() *TaxOptimizationSingleDetailSalaryPaymentAccessDto { + return r._paramTaxOptimizationSingleDetailSalaryPaymentAccessDTO +} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIResponse.go b/model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIResponse.go new file mode 100644 index 0000000000..37cc94defa --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单明细发薪受理 API返回值 +alibaba.einvoice.tax.opt.salaryrequest.singleaccept + +单明细发薪受理 +*/ +type AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIResponseModel +} + +// 单明细发薪受理 成功返回结果 +type AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_salaryrequest_singleaccept_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果类 + Result *TaxOptimizationSingleDetailPaymentAccessResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestSingleacceptResponse.go b/model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestSingleacceptResponse.go deleted file mode 100644 index aad948b2e1..0000000000 --- a/model/einvoice/AlibabaEinvoiceTaxOptSalaryrequestSingleacceptResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单明细发薪受理 API返回值 -alibaba.einvoice.tax.opt.salaryrequest.singleaccept - -单明细发薪受理 -*/ -type AlibabaEinvoiceTaxOptSalaryrequestSingleacceptAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceTaxOptSalaryrequestSingleacceptResponse -} - -// 单明细发薪受理 成功返回结果 -type AlibabaEinvoiceTaxOptSalaryrequestSingleacceptResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_salaryrequest_singleaccept_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果类 - Result *TaxOptimizationSingleDetailPaymentAccessResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptSalaryresultQueryAPIRequest.go b/model/einvoice/AlibabaEinvoiceTaxOptSalaryresultQueryAPIRequest.go new file mode 100644 index 0000000000..c683790b04 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceTaxOptSalaryresultQueryAPIRequest.go @@ -0,0 +1,66 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询发薪结果 API请求 +alibaba.einvoice.tax.opt.salaryresult.query + +查询发薪结果 +*/ +type AlibabaEinvoiceTaxOptSalaryresultQueryAPIRequest struct { + model.Params + // 发薪流水号 + _detailIdList []string + // 业务方编码 + _employerCode string +} + +// 初始化AlibabaEinvoiceTaxOptSalaryresultQueryAPIRequest对象 +func NewAlibabaEinvoiceTaxOptSalaryresultQueryRequest() *AlibabaEinvoiceTaxOptSalaryresultQueryAPIRequest{ + return &AlibabaEinvoiceTaxOptSalaryresultQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceTaxOptSalaryresultQueryAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.tax.opt.salaryresult.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceTaxOptSalaryresultQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DetailIdList Setter +// 发薪流水号 +func (r *AlibabaEinvoiceTaxOptSalaryresultQueryAPIRequest) SetDetailIdList(_detailIdList []string) error { + r._detailIdList = _detailIdList + r.Set("detail_id_list", _detailIdList) + return nil +} + +// DetailIdList Getter +func (r AlibabaEinvoiceTaxOptSalaryresultQueryAPIRequest) GetDetailIdList() []string { + return r._detailIdList +} +// EmployerCode Setter +// 业务方编码 +func (r *AlibabaEinvoiceTaxOptSalaryresultQueryAPIRequest) SetEmployerCode(_employerCode string) error { + r._employerCode = _employerCode + r.Set("employer_code", _employerCode) + return nil +} + +// EmployerCode Getter +func (r AlibabaEinvoiceTaxOptSalaryresultQueryAPIRequest) GetEmployerCode() string { + return r._employerCode +} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptSalaryresultQueryAPIResponse.go b/model/einvoice/AlibabaEinvoiceTaxOptSalaryresultQueryAPIResponse.go new file mode 100644 index 0000000000..26c8c2b06c --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceTaxOptSalaryresultQueryAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询发薪结果 API返回值 +alibaba.einvoice.tax.opt.salaryresult.query + +查询发薪结果 +*/ +type AlibabaEinvoiceTaxOptSalaryresultQueryAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceTaxOptSalaryresultQueryAPIResponseModel +} + +// 查询发薪结果 成功返回结果 +type AlibabaEinvoiceTaxOptSalaryresultQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_salaryresult_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *TaxOptimizationSalaryPayResultQueryResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceTaxOptSalaryresultQueryResponse.go b/model/einvoice/AlibabaEinvoiceTaxOptSalaryresultQueryResponse.go deleted file mode 100644 index ce30d87d79..0000000000 --- a/model/einvoice/AlibabaEinvoiceTaxOptSalaryresultQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询发薪结果 API返回值 -alibaba.einvoice.tax.opt.salaryresult.query - -查询发薪结果 -*/ -type AlibabaEinvoiceTaxOptSalaryresultQueryAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceTaxOptSalaryresultQueryResponse -} - -// 查询发薪结果 成功返回结果 -type AlibabaEinvoiceTaxOptSalaryresultQueryResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_tax_opt_salaryresult_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *TaxOptimizationSalaryPayResultQueryResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/einvoice/AlibabaEinvoiceUnitorderCheckAPIRequest.go b/model/einvoice/AlibabaEinvoiceUnitorderCheckAPIRequest.go new file mode 100644 index 0000000000..08bc858954 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceUnitorderCheckAPIRequest.go @@ -0,0 +1,80 @@ +package einvoice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商订购单上传核对 API请求 +alibaba.einvoice.unitorder.check + +开票服务商回传收到的订购单用于电子发票平台核对 +*/ +type AlibabaEinvoiceUnitorderCheckAPIRequest struct { + model.Params + // 订购单列表 + _orders []SimpleUnitOrder + // 开始时间,来自于查询消息 + _begin string + // 结束时间,来自于查询消息 + _end string +} + +// 初始化AlibabaEinvoiceUnitorderCheckAPIRequest对象 +func NewAlibabaEinvoiceUnitorderCheckRequest() *AlibabaEinvoiceUnitorderCheckAPIRequest{ + return &AlibabaEinvoiceUnitorderCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEinvoiceUnitorderCheckAPIRequest) GetApiMethodName() string { + return "alibaba.einvoice.unitorder.check" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEinvoiceUnitorderCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Orders Setter +// 订购单列表 +func (r *AlibabaEinvoiceUnitorderCheckAPIRequest) SetOrders(_orders []SimpleUnitOrder) error { + r._orders = _orders + r.Set("orders", _orders) + return nil +} + +// Orders Getter +func (r AlibabaEinvoiceUnitorderCheckAPIRequest) GetOrders() []SimpleUnitOrder { + return r._orders +} +// Begin Setter +// 开始时间,来自于查询消息 +func (r *AlibabaEinvoiceUnitorderCheckAPIRequest) SetBegin(_begin string) error { + r._begin = _begin + r.Set("begin", _begin) + return nil +} + +// Begin Getter +func (r AlibabaEinvoiceUnitorderCheckAPIRequest) GetBegin() string { + return r._begin +} +// End Setter +// 结束时间,来自于查询消息 +func (r *AlibabaEinvoiceUnitorderCheckAPIRequest) SetEnd(_end string) error { + r._end = _end + r.Set("end", _end) + return nil +} + +// End Getter +func (r AlibabaEinvoiceUnitorderCheckAPIRequest) GetEnd() string { + return r._end +} diff --git a/model/einvoice/AlibabaEinvoiceUnitorderCheckAPIResponse.go b/model/einvoice/AlibabaEinvoiceUnitorderCheckAPIResponse.go new file mode 100644 index 0000000000..d3af297f47 --- /dev/null +++ b/model/einvoice/AlibabaEinvoiceUnitorderCheckAPIResponse.go @@ -0,0 +1,27 @@ +package einvoice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商订购单上传核对 API返回值 +alibaba.einvoice.unitorder.check + +开票服务商回传收到的订购单用于电子发票平台核对 +*/ +type AlibabaEinvoiceUnitorderCheckAPIResponse struct { + model.CommonResponse + AlibabaEinvoiceUnitorderCheckAPIResponseModel +} + +// 服务商订购单上传核对 成功返回结果 +type AlibabaEinvoiceUnitorderCheckAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_einvoice_unitorder_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 上传结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/einvoice/AlibabaEinvoiceUnitorderCheckResponse.go b/model/einvoice/AlibabaEinvoiceUnitorderCheckResponse.go deleted file mode 100644 index 0df36efc8e..0000000000 --- a/model/einvoice/AlibabaEinvoiceUnitorderCheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package einvoice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商订购单上传核对 API返回值 -alibaba.einvoice.unitorder.check - -开票服务商回传收到的订购单用于电子发票平台核对 -*/ -type AlibabaEinvoiceUnitorderCheckAPIResponse struct { - model.CommonResponse - AlibabaEinvoiceUnitorderCheckResponse -} - -// 服务商订购单上传核对 成功返回结果 -type AlibabaEinvoiceUnitorderCheckResponse struct { - XMLName xml.Name `xml:"alibaba_einvoice_unitorder_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 上传结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewQueryAPIRequest.go b/model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewQueryAPIRequest.go new file mode 100644 index 0000000000..fd1e872286 --- /dev/null +++ b/model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewQueryAPIRequest.go @@ -0,0 +1,94 @@ +package eleenterprisecartnew + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新版购物车查询 API请求 +alibaba.ele.enterprise.cartnew.query + +新版购物车查询 +*/ +type AlibabaEleEnterpriseCartnewQueryAPIRequest struct { + model.Params + // 1212 + _phone string + // 1212 + _latitude string + // 1212 + _longitude string + // 餐厅id + _erestaurantId string +} + +// 初始化AlibabaEleEnterpriseCartnewQueryAPIRequest对象 +func NewAlibabaEleEnterpriseCartnewQueryRequest() *AlibabaEleEnterpriseCartnewQueryAPIRequest{ + return &AlibabaEleEnterpriseCartnewQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseCartnewQueryAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.cartnew.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseCartnewQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Phone Setter +// 1212 +func (r *AlibabaEleEnterpriseCartnewQueryAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r AlibabaEleEnterpriseCartnewQueryAPIRequest) GetPhone() string { + return r._phone +} +// Latitude Setter +// 1212 +func (r *AlibabaEleEnterpriseCartnewQueryAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r AlibabaEleEnterpriseCartnewQueryAPIRequest) GetLatitude() string { + return r._latitude +} +// Longitude Setter +// 1212 +func (r *AlibabaEleEnterpriseCartnewQueryAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r AlibabaEleEnterpriseCartnewQueryAPIRequest) GetLongitude() string { + return r._longitude +} +// ErestaurantId Setter +// 餐厅id +func (r *AlibabaEleEnterpriseCartnewQueryAPIRequest) SetErestaurantId(_erestaurantId string) error { + r._erestaurantId = _erestaurantId + r.Set("erestaurant_id", _erestaurantId) + return nil +} + +// ErestaurantId Getter +func (r AlibabaEleEnterpriseCartnewQueryAPIRequest) GetErestaurantId() string { + return r._erestaurantId +} diff --git a/model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewQueryAPIResponse.go b/model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewQueryAPIResponse.go new file mode 100644 index 0000000000..8c8b810d37 --- /dev/null +++ b/model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewQueryAPIResponse.go @@ -0,0 +1,33 @@ +package eleenterprisecartnew + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新版购物车查询 API返回值 +alibaba.ele.enterprise.cartnew.query + +新版购物车查询 +*/ +type AlibabaEleEnterpriseCartnewQueryAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseCartnewQueryAPIResponseModel +} + +// 新版购物车查询 成功返回结果 +type AlibabaEleEnterpriseCartnewQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_cartnew_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回码 + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 返回信息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 系统自动生成 + EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` +} diff --git a/model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewQueryResponse.go b/model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewQueryResponse.go deleted file mode 100644 index b952f6c448..0000000000 --- a/model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewQueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package eleenterprisecartnew - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新版购物车查询 API返回值 -alibaba.ele.enterprise.cartnew.query - -新版购物车查询 -*/ -type AlibabaEleEnterpriseCartnewQueryAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseCartnewQueryResponse -} - -// 新版购物车查询 成功返回结果 -type AlibabaEleEnterpriseCartnewQueryResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_cartnew_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回码 - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 返回信息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 系统自动生成 - EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` -} diff --git a/model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewSaveAPIRequest.go b/model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewSaveAPIRequest.go new file mode 100644 index 0000000000..d9d076be69 --- /dev/null +++ b/model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewSaveAPIRequest.go @@ -0,0 +1,108 @@ +package eleenterprisecartnew + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新版创建购物车 API请求 +alibaba.ele.enterprise.cartnew.save + +新版创建购物车 +*/ +type AlibabaEleEnterpriseCartnewSaveAPIRequest struct { + model.Params + // 用户11位手机号 + _phone string + // 用户所在纬度 + _latitude string + // [[{\"id\": 1526467414,\"new_specs\": [{\"name\": \"规格\",\"value\": \"那么大鲜柠特饮(雪碧) 660ml\"}],\"attrs\": [{\"name\": \"可选小食\",\"value\": \"金黄脆薯格\"}],\"quantity\": 2}]] + _food string + // 用户所在经度 + _longitude string + // 餐厅id + _erestaurantId string +} + +// 初始化AlibabaEleEnterpriseCartnewSaveAPIRequest对象 +func NewAlibabaEleEnterpriseCartnewSaveRequest() *AlibabaEleEnterpriseCartnewSaveAPIRequest{ + return &AlibabaEleEnterpriseCartnewSaveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseCartnewSaveAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.cartnew.save" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseCartnewSaveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Phone Setter +// 用户11位手机号 +func (r *AlibabaEleEnterpriseCartnewSaveAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r AlibabaEleEnterpriseCartnewSaveAPIRequest) GetPhone() string { + return r._phone +} +// Latitude Setter +// 用户所在纬度 +func (r *AlibabaEleEnterpriseCartnewSaveAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r AlibabaEleEnterpriseCartnewSaveAPIRequest) GetLatitude() string { + return r._latitude +} +// Food Setter +// [[{\"id\": 1526467414,\"new_specs\": [{\"name\": \"规格\",\"value\": \"那么大鲜柠特饮(雪碧) 660ml\"}],\"attrs\": [{\"name\": \"可选小食\",\"value\": \"金黄脆薯格\"}],\"quantity\": 2}]] +func (r *AlibabaEleEnterpriseCartnewSaveAPIRequest) SetFood(_food string) error { + r._food = _food + r.Set("food", _food) + return nil +} + +// Food Getter +func (r AlibabaEleEnterpriseCartnewSaveAPIRequest) GetFood() string { + return r._food +} +// Longitude Setter +// 用户所在经度 +func (r *AlibabaEleEnterpriseCartnewSaveAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r AlibabaEleEnterpriseCartnewSaveAPIRequest) GetLongitude() string { + return r._longitude +} +// ErestaurantId Setter +// 餐厅id +func (r *AlibabaEleEnterpriseCartnewSaveAPIRequest) SetErestaurantId(_erestaurantId string) error { + r._erestaurantId = _erestaurantId + r.Set("erestaurant_id", _erestaurantId) + return nil +} + +// ErestaurantId Getter +func (r AlibabaEleEnterpriseCartnewSaveAPIRequest) GetErestaurantId() string { + return r._erestaurantId +} diff --git a/model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewSaveAPIResponse.go b/model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewSaveAPIResponse.go new file mode 100644 index 0000000000..82ed0761a4 --- /dev/null +++ b/model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewSaveAPIResponse.go @@ -0,0 +1,33 @@ +package eleenterprisecartnew + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新版创建购物车 API返回值 +alibaba.ele.enterprise.cartnew.save + +新版创建购物车 +*/ +type AlibabaEleEnterpriseCartnewSaveAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseCartnewSaveAPIResponseModel +} + +// 新版创建购物车 成功返回结果 +type AlibabaEleEnterpriseCartnewSaveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_cartnew_save_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 状态码 + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 状态消息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 系统自动生成 + EnterpriseDatas *EnterpriseData `json:"enterprise_datas,omitempty" xml:"enterprise_datas,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` +} diff --git a/model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewSaveResponse.go b/model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewSaveResponse.go deleted file mode 100644 index 982c2416e6..0000000000 --- a/model/eleenterprisecartnew/AlibabaEleEnterpriseCartnewSaveResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package eleenterprisecartnew - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新版创建购物车 API返回值 -alibaba.ele.enterprise.cartnew.save - -新版创建购物车 -*/ -type AlibabaEleEnterpriseCartnewSaveAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseCartnewSaveResponse -} - -// 新版创建购物车 成功返回结果 -type AlibabaEleEnterpriseCartnewSaveResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_cartnew_save_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 状态码 - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 状态消息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 系统自动生成 - EnterpriseDatas *EnterpriseData `json:"enterprise_datas,omitempty" xml:"enterprise_datas,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` -} diff --git a/model/eleenterprisecoupon/AlibabaEleEnterpriseCartcouponGetAPIRequest.go b/model/eleenterprisecoupon/AlibabaEleEnterpriseCartcouponGetAPIRequest.go new file mode 100644 index 0000000000..f6fd10b443 --- /dev/null +++ b/model/eleenterprisecoupon/AlibabaEleEnterpriseCartcouponGetAPIRequest.go @@ -0,0 +1,66 @@ +package eleenterprisecoupon + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取下单可用的优惠券 API请求 +alibaba.ele.enterprise.cartcoupon.get + +获取下单可用的优惠券 +*/ +type AlibabaEleEnterpriseCartcouponGetAPIRequest struct { + model.Params + // 手机号 + _phone string + // 购物车id + _cartId string +} + +// 初始化AlibabaEleEnterpriseCartcouponGetAPIRequest对象 +func NewAlibabaEleEnterpriseCartcouponGetRequest() *AlibabaEleEnterpriseCartcouponGetAPIRequest{ + return &AlibabaEleEnterpriseCartcouponGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseCartcouponGetAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.cartcoupon.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseCartcouponGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Phone Setter +// 手机号 +func (r *AlibabaEleEnterpriseCartcouponGetAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r AlibabaEleEnterpriseCartcouponGetAPIRequest) GetPhone() string { + return r._phone +} +// CartId Setter +// 购物车id +func (r *AlibabaEleEnterpriseCartcouponGetAPIRequest) SetCartId(_cartId string) error { + r._cartId = _cartId + r.Set("cart_id", _cartId) + return nil +} + +// CartId Getter +func (r AlibabaEleEnterpriseCartcouponGetAPIRequest) GetCartId() string { + return r._cartId +} diff --git a/model/eleenterprisecoupon/AlibabaEleEnterpriseCartcouponGetAPIResponse.go b/model/eleenterprisecoupon/AlibabaEleEnterpriseCartcouponGetAPIResponse.go new file mode 100644 index 0000000000..8e5dfe41ab --- /dev/null +++ b/model/eleenterprisecoupon/AlibabaEleEnterpriseCartcouponGetAPIResponse.go @@ -0,0 +1,33 @@ +package eleenterprisecoupon + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取下单可用的优惠券 API返回值 +alibaba.ele.enterprise.cartcoupon.get + +获取下单可用的优惠券 +*/ +type AlibabaEleEnterpriseCartcouponGetAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseCartcouponGetAPIResponseModel +} + +// 获取下单可用的优惠券 成功返回结果 +type AlibabaEleEnterpriseCartcouponGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_cartcoupon_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应code + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 响应信息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 返回值信息 + EnterpriseDatas *MyCouponsResDto `json:"enterprise_datas,omitempty" xml:"enterprise_datas,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` +} diff --git a/model/eleenterprisecoupon/AlibabaEleEnterpriseCartcouponGetResponse.go b/model/eleenterprisecoupon/AlibabaEleEnterpriseCartcouponGetResponse.go deleted file mode 100644 index 65bcf81f16..0000000000 --- a/model/eleenterprisecoupon/AlibabaEleEnterpriseCartcouponGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package eleenterprisecoupon - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取下单可用的优惠券 API返回值 -alibaba.ele.enterprise.cartcoupon.get - -获取下单可用的优惠券 -*/ -type AlibabaEleEnterpriseCartcouponGetAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseCartcouponGetResponse -} - -// 获取下单可用的优惠券 成功返回结果 -type AlibabaEleEnterpriseCartcouponGetResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_cartcoupon_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应code - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 响应信息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 返回值信息 - EnterpriseDatas *MyCouponsResDto `json:"enterprise_datas,omitempty" xml:"enterprise_datas,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` -} diff --git a/model/eleenterprisecoupon/AlibabaEleEnterpriseCouponGetAPIRequest.go b/model/eleenterprisecoupon/AlibabaEleEnterpriseCouponGetAPIRequest.go new file mode 100644 index 0000000000..a7e5665834 --- /dev/null +++ b/model/eleenterprisecoupon/AlibabaEleEnterpriseCouponGetAPIRequest.go @@ -0,0 +1,52 @@ +package eleenterprisecoupon + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户优惠券 API请求 +alibaba.ele.enterprise.coupon.get + +获取用户优惠券 +*/ +type AlibabaEleEnterpriseCouponGetAPIRequest struct { + model.Params + // 手机号 + _phone string +} + +// 初始化AlibabaEleEnterpriseCouponGetAPIRequest对象 +func NewAlibabaEleEnterpriseCouponGetRequest() *AlibabaEleEnterpriseCouponGetAPIRequest{ + return &AlibabaEleEnterpriseCouponGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseCouponGetAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.coupon.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseCouponGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Phone Setter +// 手机号 +func (r *AlibabaEleEnterpriseCouponGetAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r AlibabaEleEnterpriseCouponGetAPIRequest) GetPhone() string { + return r._phone +} diff --git a/model/eleenterprisecoupon/AlibabaEleEnterpriseCouponGetAPIResponse.go b/model/eleenterprisecoupon/AlibabaEleEnterpriseCouponGetAPIResponse.go new file mode 100644 index 0000000000..bd27f8c3a1 --- /dev/null +++ b/model/eleenterprisecoupon/AlibabaEleEnterpriseCouponGetAPIResponse.go @@ -0,0 +1,33 @@ +package eleenterprisecoupon + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户优惠券 API返回值 +alibaba.ele.enterprise.coupon.get + +获取用户优惠券 +*/ +type AlibabaEleEnterpriseCouponGetAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseCouponGetAPIResponseModel +} + +// 获取用户优惠券 成功返回结果 +type AlibabaEleEnterpriseCouponGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_coupon_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应code + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 响应信息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 返回值信息 + EnterpriseDatas []MyCouponsResDto `json:"enterprise_datas,omitempty" xml:"enterprise_datas>my_coupons_res_dto,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` +} diff --git a/model/eleenterprisecoupon/AlibabaEleEnterpriseCouponGetResponse.go b/model/eleenterprisecoupon/AlibabaEleEnterpriseCouponGetResponse.go deleted file mode 100644 index 73da671728..0000000000 --- a/model/eleenterprisecoupon/AlibabaEleEnterpriseCouponGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package eleenterprisecoupon - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户优惠券 API返回值 -alibaba.ele.enterprise.coupon.get - -获取用户优惠券 -*/ -type AlibabaEleEnterpriseCouponGetAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseCouponGetResponse -} - -// 获取用户优惠券 成功返回结果 -type AlibabaEleEnterpriseCouponGetResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_coupon_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应code - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 响应信息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 返回值信息 - EnterpriseDatas []MyCouponsResDto `json:"enterprise_datas,omitempty" xml:"enterprise_datas>my_coupons_res_dto,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` -} diff --git a/model/eleenterprisecoupon/AlibabaEleEnterpriseCouponSendAPIRequest.go b/model/eleenterprisecoupon/AlibabaEleEnterpriseCouponSendAPIRequest.go new file mode 100644 index 0000000000..ca11dd30e1 --- /dev/null +++ b/model/eleenterprisecoupon/AlibabaEleEnterpriseCouponSendAPIRequest.go @@ -0,0 +1,150 @@ +package eleenterprisecoupon + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发放优惠券 API请求 +alibaba.ele.enterprise.coupon.send + +发放优惠券 +*/ +type AlibabaEleEnterpriseCouponSendAPIRequest struct { + model.Params + // 手机号 + _phone string + // 固定值,申请获取 + _channel string + // 纬度 + _latitude string + // 经度 + _longitude string + // 客户端IP地址 + _ip string + // 客户端User-Agent信息 + _userAgent string + // 批次,同一个批次号只会发券一次,后续用同一个批次号的请求会返回上次发的券(幂等) + _batchNo string + // 设备ID + _deviceId string +} + +// 初始化AlibabaEleEnterpriseCouponSendAPIRequest对象 +func NewAlibabaEleEnterpriseCouponSendRequest() *AlibabaEleEnterpriseCouponSendAPIRequest{ + return &AlibabaEleEnterpriseCouponSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.coupon.send" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Phone Setter +// 手机号 +func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetPhone() string { + return r._phone +} +// Channel Setter +// 固定值,申请获取 +func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetChannel() string { + return r._channel +} +// Latitude Setter +// 纬度 +func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetLatitude() string { + return r._latitude +} +// Longitude Setter +// 经度 +func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetLongitude() string { + return r._longitude +} +// Ip Setter +// 客户端IP地址 +func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetIp(_ip string) error { + r._ip = _ip + r.Set("ip", _ip) + return nil +} + +// Ip Getter +func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetIp() string { + return r._ip +} +// UserAgent Setter +// 客户端User-Agent信息 +func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetUserAgent(_userAgent string) error { + r._userAgent = _userAgent + r.Set("user_agent", _userAgent) + return nil +} + +// UserAgent Getter +func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetUserAgent() string { + return r._userAgent +} +// BatchNo Setter +// 批次,同一个批次号只会发券一次,后续用同一个批次号的请求会返回上次发的券(幂等) +func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetBatchNo(_batchNo string) error { + r._batchNo = _batchNo + r.Set("batch_no", _batchNo) + return nil +} + +// BatchNo Getter +func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetBatchNo() string { + return r._batchNo +} +// DeviceId Setter +// 设备ID +func (r *AlibabaEleEnterpriseCouponSendAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r AlibabaEleEnterpriseCouponSendAPIRequest) GetDeviceId() string { + return r._deviceId +} diff --git a/model/eleenterprisecoupon/AlibabaEleEnterpriseCouponSendAPIResponse.go b/model/eleenterprisecoupon/AlibabaEleEnterpriseCouponSendAPIResponse.go new file mode 100644 index 0000000000..657daefa0b --- /dev/null +++ b/model/eleenterprisecoupon/AlibabaEleEnterpriseCouponSendAPIResponse.go @@ -0,0 +1,33 @@ +package eleenterprisecoupon + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发放优惠券 API返回值 +alibaba.ele.enterprise.coupon.send + +发放优惠券 +*/ +type AlibabaEleEnterpriseCouponSendAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseCouponSendAPIResponseModel +} + +// 发放优惠券 成功返回结果 +type AlibabaEleEnterpriseCouponSendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_coupon_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应code + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 响应信息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 返回值信息 + EnterpriseDatas []MyCouponsResDto `json:"enterprise_datas,omitempty" xml:"enterprise_datas>my_coupons_res_dto,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` +} diff --git a/model/eleenterprisecoupon/AlibabaEleEnterpriseCouponSendResponse.go b/model/eleenterprisecoupon/AlibabaEleEnterpriseCouponSendResponse.go deleted file mode 100644 index 959378989b..0000000000 --- a/model/eleenterprisecoupon/AlibabaEleEnterpriseCouponSendResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package eleenterprisecoupon - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发放优惠券 API返回值 -alibaba.ele.enterprise.coupon.send - -发放优惠券 -*/ -type AlibabaEleEnterpriseCouponSendAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseCouponSendResponse -} - -// 发放优惠券 成功返回结果 -type AlibabaEleEnterpriseCouponSendResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_coupon_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应code - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 响应信息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 返回值信息 - EnterpriseDatas []MyCouponsResDto `json:"enterprise_datas,omitempty" xml:"enterprise_datas>my_coupons_res_dto,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` -} diff --git a/model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest.go b/model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest.go new file mode 100644 index 0000000000..f116e984ba --- /dev/null +++ b/model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest.go @@ -0,0 +1,52 @@ +package eleenterpriseemployee + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量删除员工 API请求 +alibaba.ele.enterprise.employee.batchdelete + +批量删除员工 +*/ +type AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest struct { + model.Params + // 员工工号 + _employeeNos []string +} + +// 初始化AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest对象 +func NewAlibabaEleEnterpriseEmployeeBatchdeleteRequest() *AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest{ + return &AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.employee.batchdelete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EmployeeNos Setter +// 员工工号 +func (r *AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest) SetEmployeeNos(_employeeNos []string) error { + r._employeeNos = _employeeNos + r.Set("employee_nos", _employeeNos) + return nil +} + +// EmployeeNos Getter +func (r AlibabaEleEnterpriseEmployeeBatchdeleteAPIRequest) GetEmployeeNos() []string { + return r._employeeNos +} diff --git a/model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchdeleteAPIResponse.go b/model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchdeleteAPIResponse.go new file mode 100644 index 0000000000..abc78d1af2 --- /dev/null +++ b/model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchdeleteAPIResponse.go @@ -0,0 +1,33 @@ +package eleenterpriseemployee + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量删除员工 API返回值 +alibaba.ele.enterprise.employee.batchdelete + +批量删除员工 +*/ +type AlibabaEleEnterpriseEmployeeBatchdeleteAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseEmployeeBatchdeleteAPIResponseModel +} + +// 批量删除员工 成功返回结果 +type AlibabaEleEnterpriseEmployeeBatchdeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_employee_batchdelete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值信息 + EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` + // 响应code + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 响应信息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` +} diff --git a/model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchdeleteResponse.go b/model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchdeleteResponse.go deleted file mode 100644 index 23ae6b10ee..0000000000 --- a/model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchdeleteResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package eleenterpriseemployee - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量删除员工 API返回值 -alibaba.ele.enterprise.employee.batchdelete - -批量删除员工 -*/ -type AlibabaEleEnterpriseEmployeeBatchdeleteAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseEmployeeBatchdeleteResponse -} - -// 批量删除员工 成功返回结果 -type AlibabaEleEnterpriseEmployeeBatchdeleteResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_employee_batchdelete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值信息 - EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` - // 响应code - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 响应信息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` -} diff --git a/model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest.go b/model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest.go new file mode 100644 index 0000000000..dd9da8ad1f --- /dev/null +++ b/model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest.go @@ -0,0 +1,52 @@ +package eleenterpriseemployee + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量新增更新员工 API请求 +alibaba.ele.enterprise.employee.batchupdate + +批量新增更新员工 +*/ +type AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest struct { + model.Params + // 批量员工信息 + _enterpriseDatas []EmployeeInfoDto +} + +// 初始化AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest对象 +func NewAlibabaEleEnterpriseEmployeeBatchupdateRequest() *AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest{ + return &AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.employee.batchupdate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EnterpriseDatas Setter +// 批量员工信息 +func (r *AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest) SetEnterpriseDatas(_enterpriseDatas []EmployeeInfoDto) error { + r._enterpriseDatas = _enterpriseDatas + r.Set("enterprise_datas", _enterpriseDatas) + return nil +} + +// EnterpriseDatas Getter +func (r AlibabaEleEnterpriseEmployeeBatchupdateAPIRequest) GetEnterpriseDatas() []EmployeeInfoDto { + return r._enterpriseDatas +} diff --git a/model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchupdateAPIResponse.go b/model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchupdateAPIResponse.go new file mode 100644 index 0000000000..812ffecefd --- /dev/null +++ b/model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchupdateAPIResponse.go @@ -0,0 +1,33 @@ +package eleenterpriseemployee + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量新增更新员工 API返回值 +alibaba.ele.enterprise.employee.batchupdate + +批量新增更新员工 +*/ +type AlibabaEleEnterpriseEmployeeBatchupdateAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseEmployeeBatchupdateAPIResponseModel +} + +// 批量新增更新员工 成功返回结果 +type AlibabaEleEnterpriseEmployeeBatchupdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_employee_batchupdate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应code + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 响应信息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` + // 返回结果 + EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` +} diff --git a/model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchupdateResponse.go b/model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchupdateResponse.go deleted file mode 100644 index edaee18110..0000000000 --- a/model/eleenterpriseemployee/AlibabaEleEnterpriseEmployeeBatchupdateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package eleenterpriseemployee - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量新增更新员工 API返回值 -alibaba.ele.enterprise.employee.batchupdate - -批量新增更新员工 -*/ -type AlibabaEleEnterpriseEmployeeBatchupdateAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseEmployeeBatchupdateResponse -} - -// 批量新增更新员工 成功返回结果 -type AlibabaEleEnterpriseEmployeeBatchupdateResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_employee_batchupdate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应code - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 响应信息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` - // 返回结果 - EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` -} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCancelAPIRequest.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCancelAPIRequest.go new file mode 100644 index 0000000000..bc4253fb07 --- /dev/null +++ b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCancelAPIRequest.go @@ -0,0 +1,80 @@ +package eleenterpriseordernew + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单取消 API请求 +alibaba.ele.enterprise.ordernew.cancel + +订单取消 +*/ +type AlibabaEleEnterpriseOrdernewCancelAPIRequest struct { + model.Params + // 饿了么订单ID + _orderId string + // 用户手机号 + _phone string + // 取消原因(取消时提供) + _reason string +} + +// 初始化AlibabaEleEnterpriseOrdernewCancelAPIRequest对象 +func NewAlibabaEleEnterpriseOrdernewCancelRequest() *AlibabaEleEnterpriseOrdernewCancelAPIRequest{ + return &AlibabaEleEnterpriseOrdernewCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseOrdernewCancelAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.ordernew.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseOrdernewCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 饿了么订单ID +func (r *AlibabaEleEnterpriseOrdernewCancelAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaEleEnterpriseOrdernewCancelAPIRequest) GetOrderId() string { + return r._orderId +} +// Phone Setter +// 用户手机号 +func (r *AlibabaEleEnterpriseOrdernewCancelAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r AlibabaEleEnterpriseOrdernewCancelAPIRequest) GetPhone() string { + return r._phone +} +// Reason Setter +// 取消原因(取消时提供) +func (r *AlibabaEleEnterpriseOrdernewCancelAPIRequest) SetReason(_reason string) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r AlibabaEleEnterpriseOrdernewCancelAPIRequest) GetReason() string { + return r._reason +} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCancelAPIResponse.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCancelAPIResponse.go new file mode 100644 index 0000000000..b73804ad17 --- /dev/null +++ b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCancelAPIResponse.go @@ -0,0 +1,31 @@ +package eleenterpriseordernew + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单取消 API返回值 +alibaba.ele.enterprise.ordernew.cancel + +订单取消 +*/ +type AlibabaEleEnterpriseOrdernewCancelAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseOrdernewCancelAPIResponseModel +} + +// 订单取消 成功返回结果 +type AlibabaEleEnterpriseOrdernewCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_ordernew_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应code + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 响应信息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` +} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCancelResponse.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCancelResponse.go deleted file mode 100644 index 159100fa5d..0000000000 --- a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCancelResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package eleenterpriseordernew - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单取消 API返回值 -alibaba.ele.enterprise.ordernew.cancel - -订单取消 -*/ -type AlibabaEleEnterpriseOrdernewCancelAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseOrdernewCancelResponse -} - -// 订单取消 成功返回结果 -type AlibabaEleEnterpriseOrdernewCancelResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_ordernew_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应code - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 响应信息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` -} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCreateAPIRequest.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCreateAPIRequest.go new file mode 100644 index 0000000000..a4d90cb9b4 --- /dev/null +++ b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCreateAPIRequest.go @@ -0,0 +1,248 @@ +package eleenterpriseordernew + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建订单 API请求 +alibaba.ele.enterprise.ordernew.create + +创建订单 +*/ +type AlibabaEleEnterpriseOrdernewCreateAPIRequest struct { + model.Params + // 订单来源地址经度 + _longitude string + // 餐厅Id + _erestaurantId string + // 使用的券号 + _couponSn string + // 订单备注信息 + _description string + // 电话号码,主要号码必须是手机号;多个手机号以逗号分隔 + _phones string + // 订单来源IP地址 + _ip string + // 订单来源地址纬度 + _latitude string + // 购物车Id(创建购物车返回的购物车id) + _cartId string + // 第三方订单Id(需保证唯一) + _tpOrderId string + // 送餐地址 + _address string + // 收餐人姓名 + _consignee string + // 暂时不用传(忽略此字段) + _deliverTime string + // 纳税人识别号 + _invoiceNumber string + // 发票抬头(个人发票请填写个人),不传表示不要发票 + _invoice string + // 发票类型(发票类型, 1: 个人, 2: 企业; 空为兼容数据, 由商户判断发票类型) + _invoiceType int64 +} + +// 初始化AlibabaEleEnterpriseOrdernewCreateAPIRequest对象 +func NewAlibabaEleEnterpriseOrdernewCreateRequest() *AlibabaEleEnterpriseOrdernewCreateAPIRequest{ + return &AlibabaEleEnterpriseOrdernewCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseOrdernewCreateAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.ordernew.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseOrdernewCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Longitude Setter +// 订单来源地址经度 +func (r *AlibabaEleEnterpriseOrdernewCreateAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r AlibabaEleEnterpriseOrdernewCreateAPIRequest) GetLongitude() string { + return r._longitude +} +// ErestaurantId Setter +// 餐厅Id +func (r *AlibabaEleEnterpriseOrdernewCreateAPIRequest) SetErestaurantId(_erestaurantId string) error { + r._erestaurantId = _erestaurantId + r.Set("erestaurant_id", _erestaurantId) + return nil +} + +// ErestaurantId Getter +func (r AlibabaEleEnterpriseOrdernewCreateAPIRequest) GetErestaurantId() string { + return r._erestaurantId +} +// CouponSn Setter +// 使用的券号 +func (r *AlibabaEleEnterpriseOrdernewCreateAPIRequest) SetCouponSn(_couponSn string) error { + r._couponSn = _couponSn + r.Set("coupon_sn", _couponSn) + return nil +} + +// CouponSn Getter +func (r AlibabaEleEnterpriseOrdernewCreateAPIRequest) GetCouponSn() string { + return r._couponSn +} +// Description Setter +// 订单备注信息 +func (r *AlibabaEleEnterpriseOrdernewCreateAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r AlibabaEleEnterpriseOrdernewCreateAPIRequest) GetDescription() string { + return r._description +} +// Phones Setter +// 电话号码,主要号码必须是手机号;多个手机号以逗号分隔 +func (r *AlibabaEleEnterpriseOrdernewCreateAPIRequest) SetPhones(_phones string) error { + r._phones = _phones + r.Set("phones", _phones) + return nil +} + +// Phones Getter +func (r AlibabaEleEnterpriseOrdernewCreateAPIRequest) GetPhones() string { + return r._phones +} +// Ip Setter +// 订单来源IP地址 +func (r *AlibabaEleEnterpriseOrdernewCreateAPIRequest) SetIp(_ip string) error { + r._ip = _ip + r.Set("ip", _ip) + return nil +} + +// Ip Getter +func (r AlibabaEleEnterpriseOrdernewCreateAPIRequest) GetIp() string { + return r._ip +} +// Latitude Setter +// 订单来源地址纬度 +func (r *AlibabaEleEnterpriseOrdernewCreateAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r AlibabaEleEnterpriseOrdernewCreateAPIRequest) GetLatitude() string { + return r._latitude +} +// CartId Setter +// 购物车Id(创建购物车返回的购物车id) +func (r *AlibabaEleEnterpriseOrdernewCreateAPIRequest) SetCartId(_cartId string) error { + r._cartId = _cartId + r.Set("cart_id", _cartId) + return nil +} + +// CartId Getter +func (r AlibabaEleEnterpriseOrdernewCreateAPIRequest) GetCartId() string { + return r._cartId +} +// TpOrderId Setter +// 第三方订单Id(需保证唯一) +func (r *AlibabaEleEnterpriseOrdernewCreateAPIRequest) SetTpOrderId(_tpOrderId string) error { + r._tpOrderId = _tpOrderId + r.Set("tp_order_id", _tpOrderId) + return nil +} + +// TpOrderId Getter +func (r AlibabaEleEnterpriseOrdernewCreateAPIRequest) GetTpOrderId() string { + return r._tpOrderId +} +// Address Setter +// 送餐地址 +func (r *AlibabaEleEnterpriseOrdernewCreateAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r AlibabaEleEnterpriseOrdernewCreateAPIRequest) GetAddress() string { + return r._address +} +// Consignee Setter +// 收餐人姓名 +func (r *AlibabaEleEnterpriseOrdernewCreateAPIRequest) SetConsignee(_consignee string) error { + r._consignee = _consignee + r.Set("consignee", _consignee) + return nil +} + +// Consignee Getter +func (r AlibabaEleEnterpriseOrdernewCreateAPIRequest) GetConsignee() string { + return r._consignee +} +// DeliverTime Setter +// 暂时不用传(忽略此字段) +func (r *AlibabaEleEnterpriseOrdernewCreateAPIRequest) SetDeliverTime(_deliverTime string) error { + r._deliverTime = _deliverTime + r.Set("deliver_time", _deliverTime) + return nil +} + +// DeliverTime Getter +func (r AlibabaEleEnterpriseOrdernewCreateAPIRequest) GetDeliverTime() string { + return r._deliverTime +} +// InvoiceNumber Setter +// 纳税人识别号 +func (r *AlibabaEleEnterpriseOrdernewCreateAPIRequest) SetInvoiceNumber(_invoiceNumber string) error { + r._invoiceNumber = _invoiceNumber + r.Set("invoice_number", _invoiceNumber) + return nil +} + +// InvoiceNumber Getter +func (r AlibabaEleEnterpriseOrdernewCreateAPIRequest) GetInvoiceNumber() string { + return r._invoiceNumber +} +// Invoice Setter +// 发票抬头(个人发票请填写个人),不传表示不要发票 +func (r *AlibabaEleEnterpriseOrdernewCreateAPIRequest) SetInvoice(_invoice string) error { + r._invoice = _invoice + r.Set("invoice", _invoice) + return nil +} + +// Invoice Getter +func (r AlibabaEleEnterpriseOrdernewCreateAPIRequest) GetInvoice() string { + return r._invoice +} +// InvoiceType Setter +// 发票类型(发票类型, 1: 个人, 2: 企业; 空为兼容数据, 由商户判断发票类型) +func (r *AlibabaEleEnterpriseOrdernewCreateAPIRequest) SetInvoiceType(_invoiceType int64) error { + r._invoiceType = _invoiceType + r.Set("invoice_type", _invoiceType) + return nil +} + +// InvoiceType Getter +func (r AlibabaEleEnterpriseOrdernewCreateAPIRequest) GetInvoiceType() int64 { + return r._invoiceType +} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCreateAPIResponse.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCreateAPIResponse.go new file mode 100644 index 0000000000..f618a1ac80 --- /dev/null +++ b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCreateAPIResponse.go @@ -0,0 +1,33 @@ +package eleenterpriseordernew + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建订单 API返回值 +alibaba.ele.enterprise.ordernew.create + +创建订单 +*/ +type AlibabaEleEnterpriseOrdernewCreateAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseOrdernewCreateAPIResponseModel +} + +// 创建订单 成功返回结果 +type AlibabaEleEnterpriseOrdernewCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_ordernew_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应code + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 响应信息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 结果 + EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` +} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCreateResponse.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCreateResponse.go deleted file mode 100644 index fe863147f4..0000000000 --- a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewCreateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package eleenterpriseordernew - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建订单 API返回值 -alibaba.ele.enterprise.ordernew.create - -创建订单 -*/ -type AlibabaEleEnterpriseOrdernewCreateAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseOrdernewCreateResponse -} - -// 创建订单 成功返回结果 -type AlibabaEleEnterpriseOrdernewCreateResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_ordernew_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应code - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 响应信息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 结果 - EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` -} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetAPIRequest.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetAPIRequest.go new file mode 100644 index 0000000000..de8509a0d6 --- /dev/null +++ b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetAPIRequest.go @@ -0,0 +1,66 @@ +package eleenterpriseordernew + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询订单详情 API请求 +alibaba.ele.enterprise.ordernew.get + +查询订单详情 +*/ +type AlibabaEleEnterpriseOrdernewGetAPIRequest struct { + model.Params + // 饿了么订单ID + _orderId string + // 电话号码 + _phone string +} + +// 初始化AlibabaEleEnterpriseOrdernewGetAPIRequest对象 +func NewAlibabaEleEnterpriseOrdernewGetRequest() *AlibabaEleEnterpriseOrdernewGetAPIRequest{ + return &AlibabaEleEnterpriseOrdernewGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseOrdernewGetAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.ordernew.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseOrdernewGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 饿了么订单ID +func (r *AlibabaEleEnterpriseOrdernewGetAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaEleEnterpriseOrdernewGetAPIRequest) GetOrderId() string { + return r._orderId +} +// Phone Setter +// 电话号码 +func (r *AlibabaEleEnterpriseOrdernewGetAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r AlibabaEleEnterpriseOrdernewGetAPIRequest) GetPhone() string { + return r._phone +} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetAPIResponse.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetAPIResponse.go new file mode 100644 index 0000000000..864fd9466e --- /dev/null +++ b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetAPIResponse.go @@ -0,0 +1,33 @@ +package eleenterpriseordernew + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询订单详情 API返回值 +alibaba.ele.enterprise.ordernew.get + +查询订单详情 +*/ +type AlibabaEleEnterpriseOrdernewGetAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseOrdernewGetAPIResponseModel +} + +// 查询订单详情 成功返回结果 +type AlibabaEleEnterpriseOrdernewGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_ordernew_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值信息 + EnterpriseData *StandardOrderTrackingInfoDto `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` + // 响应code + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 响应信息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` +} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetResponse.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetResponse.go deleted file mode 100644 index f1c67e4bbe..0000000000 --- a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package eleenterpriseordernew - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询订单详情 API返回值 -alibaba.ele.enterprise.ordernew.get - -查询订单详情 -*/ -type AlibabaEleEnterpriseOrdernewGetAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseOrdernewGetResponse -} - -// 查询订单详情 成功返回结果 -type AlibabaEleEnterpriseOrdernewGetResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_ordernew_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值信息 - EnterpriseData *StandardOrderTrackingInfoDto `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` - // 响应code - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 响应信息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` -} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetrefundinfoAPIRequest.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetrefundinfoAPIRequest.go new file mode 100644 index 0000000000..104bb7127c --- /dev/null +++ b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetrefundinfoAPIRequest.go @@ -0,0 +1,52 @@ +package eleenterpriseordernew + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +退单和申诉 API请求 +alibaba.ele.enterprise.ordernew.getrefundinfo + +退单和申诉 +*/ +type AlibabaEleEnterpriseOrdernewGetrefundinfoAPIRequest struct { + model.Params + // 饿了么订单ID + _orderId string +} + +// 初始化AlibabaEleEnterpriseOrdernewGetrefundinfoAPIRequest对象 +func NewAlibabaEleEnterpriseOrdernewGetrefundinfoRequest() *AlibabaEleEnterpriseOrdernewGetrefundinfoAPIRequest{ + return &AlibabaEleEnterpriseOrdernewGetrefundinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseOrdernewGetrefundinfoAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.ordernew.getrefundinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseOrdernewGetrefundinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 饿了么订单ID +func (r *AlibabaEleEnterpriseOrdernewGetrefundinfoAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaEleEnterpriseOrdernewGetrefundinfoAPIRequest) GetOrderId() string { + return r._orderId +} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetrefundinfoAPIResponse.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetrefundinfoAPIResponse.go new file mode 100644 index 0000000000..42847cd430 --- /dev/null +++ b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetrefundinfoAPIResponse.go @@ -0,0 +1,33 @@ +package eleenterpriseordernew + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +退单和申诉 API返回值 +alibaba.ele.enterprise.ordernew.getrefundinfo + +退单和申诉 +*/ +type AlibabaEleEnterpriseOrdernewGetrefundinfoAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseOrdernewGetrefundinfoAPIResponseModel +} + +// 退单和申诉 成功返回结果 +type AlibabaEleEnterpriseOrdernewGetrefundinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_ordernew_getrefundinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值信息 + EnterpriseData *StandardOrderTrackingInfoDto `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` + // 响应code + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 响应信息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` +} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetrefundinfoResponse.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetrefundinfoResponse.go deleted file mode 100644 index 14cd2d9faa..0000000000 --- a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetrefundinfoResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package eleenterpriseordernew - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -退单和申诉 API返回值 -alibaba.ele.enterprise.ordernew.getrefundinfo - -退单和申诉 -*/ -type AlibabaEleEnterpriseOrdernewGetrefundinfoAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseOrdernewGetrefundinfoResponse -} - -// 退单和申诉 成功返回结果 -type AlibabaEleEnterpriseOrdernewGetrefundinfoResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_ordernew_getrefundinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值信息 - EnterpriseData *StandardOrderTrackingInfoDto `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` - // 响应code - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 响应信息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` -} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetstatusAPIRequest.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetstatusAPIRequest.go new file mode 100644 index 0000000000..7eb093b547 --- /dev/null +++ b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetstatusAPIRequest.go @@ -0,0 +1,52 @@ +package eleenterpriseordernew + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单状态查询接口 API请求 +alibaba.ele.enterprise.ordernew.getstatus + +订单状态查询接口 +*/ +type AlibabaEleEnterpriseOrdernewGetstatusAPIRequest struct { + model.Params + // 订单号 + _elemeOrderId string +} + +// 初始化AlibabaEleEnterpriseOrdernewGetstatusAPIRequest对象 +func NewAlibabaEleEnterpriseOrdernewGetstatusRequest() *AlibabaEleEnterpriseOrdernewGetstatusAPIRequest{ + return &AlibabaEleEnterpriseOrdernewGetstatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseOrdernewGetstatusAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.ordernew.getstatus" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseOrdernewGetstatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ElemeOrderId Setter +// 订单号 +func (r *AlibabaEleEnterpriseOrdernewGetstatusAPIRequest) SetElemeOrderId(_elemeOrderId string) error { + r._elemeOrderId = _elemeOrderId + r.Set("eleme_order_id", _elemeOrderId) + return nil +} + +// ElemeOrderId Getter +func (r AlibabaEleEnterpriseOrdernewGetstatusAPIRequest) GetElemeOrderId() string { + return r._elemeOrderId +} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetstatusAPIResponse.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetstatusAPIResponse.go new file mode 100644 index 0000000000..d1c38f5f27 --- /dev/null +++ b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetstatusAPIResponse.go @@ -0,0 +1,33 @@ +package eleenterpriseordernew + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单状态查询接口 API返回值 +alibaba.ele.enterprise.ordernew.getstatus + +订单状态查询接口 +*/ +type AlibabaEleEnterpriseOrdernewGetstatusAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseOrdernewGetstatusAPIResponseModel +} + +// 订单状态查询接口 成功返回结果 +type AlibabaEleEnterpriseOrdernewGetstatusAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_ordernew_getstatus_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值信息 + EnterpriseData *StandardOrderTrackingInfoDto `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` + // 响应code + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 响应信息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` +} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetstatusResponse.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetstatusResponse.go deleted file mode 100644 index 3fc4f12d2f..0000000000 --- a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGetstatusResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package eleenterpriseordernew - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单状态查询接口 API返回值 -alibaba.ele.enterprise.ordernew.getstatus - -订单状态查询接口 -*/ -type AlibabaEleEnterpriseOrdernewGetstatusAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseOrdernewGetstatusResponse -} - -// 订单状态查询接口 成功返回结果 -type AlibabaEleEnterpriseOrdernewGetstatusResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_ordernew_getstatus_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值信息 - EnterpriseData *StandardOrderTrackingInfoDto `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` - // 响应code - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 响应信息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` -} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGettrackinginfoAPIRequest.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGettrackinginfoAPIRequest.go new file mode 100644 index 0000000000..9c26686779 --- /dev/null +++ b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGettrackinginfoAPIRequest.go @@ -0,0 +1,66 @@ +package eleenterpriseordernew + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单配送信息跟踪 API请求 +alibaba.ele.enterprise.ordernew.gettrackinginfo + +订单配送信息跟踪 +*/ +type AlibabaEleEnterpriseOrdernewGettrackinginfoAPIRequest struct { + model.Params + // 饿了么订单ID + _orderId string + // 用户手机号 + _phone string +} + +// 初始化AlibabaEleEnterpriseOrdernewGettrackinginfoAPIRequest对象 +func NewAlibabaEleEnterpriseOrdernewGettrackinginfoRequest() *AlibabaEleEnterpriseOrdernewGettrackinginfoAPIRequest{ + return &AlibabaEleEnterpriseOrdernewGettrackinginfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseOrdernewGettrackinginfoAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.ordernew.gettrackinginfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseOrdernewGettrackinginfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 饿了么订单ID +func (r *AlibabaEleEnterpriseOrdernewGettrackinginfoAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaEleEnterpriseOrdernewGettrackinginfoAPIRequest) GetOrderId() string { + return r._orderId +} +// Phone Setter +// 用户手机号 +func (r *AlibabaEleEnterpriseOrdernewGettrackinginfoAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r AlibabaEleEnterpriseOrdernewGettrackinginfoAPIRequest) GetPhone() string { + return r._phone +} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGettrackinginfoAPIResponse.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGettrackinginfoAPIResponse.go new file mode 100644 index 0000000000..d5182e23a0 --- /dev/null +++ b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGettrackinginfoAPIResponse.go @@ -0,0 +1,33 @@ +package eleenterpriseordernew + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单配送信息跟踪 API返回值 +alibaba.ele.enterprise.ordernew.gettrackinginfo + +订单配送信息跟踪 +*/ +type AlibabaEleEnterpriseOrdernewGettrackinginfoAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseOrdernewGettrackinginfoAPIResponseModel +} + +// 订单配送信息跟踪 成功返回结果 +type AlibabaEleEnterpriseOrdernewGettrackinginfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_ordernew_gettrackinginfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应code + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 响应信息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 返回信息 + EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` +} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGettrackinginfoResponse.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGettrackinginfoResponse.go deleted file mode 100644 index 9dfa50a9fd..0000000000 --- a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewGettrackinginfoResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package eleenterpriseordernew - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单配送信息跟踪 API返回值 -alibaba.ele.enterprise.ordernew.gettrackinginfo - -订单配送信息跟踪 -*/ -type AlibabaEleEnterpriseOrdernewGettrackinginfoAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseOrdernewGettrackinginfoResponse -} - -// 订单配送信息跟踪 成功返回结果 -type AlibabaEleEnterpriseOrdernewGettrackinginfoResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_ordernew_gettrackinginfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应code - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 响应信息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 返回信息 - EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` -} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewPaymentstatusAPIRequest.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewPaymentstatusAPIRequest.go new file mode 100644 index 0000000000..ba26688049 --- /dev/null +++ b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewPaymentstatusAPIRequest.go @@ -0,0 +1,66 @@ +package eleenterpriseordernew + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设置订单支付 API请求 +alibaba.ele.enterprise.ordernew.paymentstatus + +设置订单支付成功 +*/ +type AlibabaEleEnterpriseOrdernewPaymentstatusAPIRequest struct { + model.Params + // 订单id + _orderId string + // 支付流水号 + _paySerialNumber string +} + +// 初始化AlibabaEleEnterpriseOrdernewPaymentstatusAPIRequest对象 +func NewAlibabaEleEnterpriseOrdernewPaymentstatusRequest() *AlibabaEleEnterpriseOrdernewPaymentstatusAPIRequest{ + return &AlibabaEleEnterpriseOrdernewPaymentstatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseOrdernewPaymentstatusAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.ordernew.paymentstatus" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseOrdernewPaymentstatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单id +func (r *AlibabaEleEnterpriseOrdernewPaymentstatusAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaEleEnterpriseOrdernewPaymentstatusAPIRequest) GetOrderId() string { + return r._orderId +} +// PaySerialNumber Setter +// 支付流水号 +func (r *AlibabaEleEnterpriseOrdernewPaymentstatusAPIRequest) SetPaySerialNumber(_paySerialNumber string) error { + r._paySerialNumber = _paySerialNumber + r.Set("pay_serial_number", _paySerialNumber) + return nil +} + +// PaySerialNumber Getter +func (r AlibabaEleEnterpriseOrdernewPaymentstatusAPIRequest) GetPaySerialNumber() string { + return r._paySerialNumber +} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewPaymentstatusAPIResponse.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewPaymentstatusAPIResponse.go new file mode 100644 index 0000000000..717f5068b1 --- /dev/null +++ b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewPaymentstatusAPIResponse.go @@ -0,0 +1,31 @@ +package eleenterpriseordernew + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设置订单支付 API返回值 +alibaba.ele.enterprise.ordernew.paymentstatus + +设置订单支付成功 +*/ +type AlibabaEleEnterpriseOrdernewPaymentstatusAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseOrdernewPaymentstatusAPIResponseModel +} + +// 设置订单支付 成功返回结果 +type AlibabaEleEnterpriseOrdernewPaymentstatusAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_ordernew_paymentstatus_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应code + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 响应信息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` +} diff --git a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewPaymentstatusResponse.go b/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewPaymentstatusResponse.go deleted file mode 100644 index 4d1e00ab39..0000000000 --- a/model/eleenterpriseordernew/AlibabaEleEnterpriseOrdernewPaymentstatusResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package eleenterpriseordernew - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设置订单支付 API返回值 -alibaba.ele.enterprise.ordernew.paymentstatus - -设置订单支付成功 -*/ -type AlibabaEleEnterpriseOrdernewPaymentstatusAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseOrdernewPaymentstatusResponse -} - -// 设置订单支付 成功返回结果 -type AlibabaEleEnterpriseOrdernewPaymentstatusResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_ordernew_paymentstatus_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应code - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 响应信息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` -} diff --git a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCategoriesAPIRequest.go b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCategoriesAPIRequest.go new file mode 100644 index 0000000000..cb754661f7 --- /dev/null +++ b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCategoriesAPIRequest.go @@ -0,0 +1,38 @@ +package eleenterpriserestaurant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +餐厅分类 API请求 +alibaba.ele.enterprise.restaurant.categories + +餐厅分类 +*/ +type AlibabaEleEnterpriseRestaurantCategoriesAPIRequest struct { + model.Params +} + +// 初始化AlibabaEleEnterpriseRestaurantCategoriesAPIRequest对象 +func NewAlibabaEleEnterpriseRestaurantCategoriesRequest() *AlibabaEleEnterpriseRestaurantCategoriesAPIRequest{ + return &AlibabaEleEnterpriseRestaurantCategoriesAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseRestaurantCategoriesAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.restaurant.categories" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseRestaurantCategoriesAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCategoriesAPIResponse.go b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCategoriesAPIResponse.go new file mode 100644 index 0000000000..80532d7ba5 --- /dev/null +++ b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCategoriesAPIResponse.go @@ -0,0 +1,33 @@ +package eleenterpriserestaurant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +餐厅分类 API返回值 +alibaba.ele.enterprise.restaurant.categories + +餐厅分类 +*/ +type AlibabaEleEnterpriseRestaurantCategoriesAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseRestaurantCategoriesAPIResponseModel +} + +// 餐厅分类 成功返回结果 +type AlibabaEleEnterpriseRestaurantCategoriesAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_categories_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值信息 + EnterpriseDatas []EnterpriseData `json:"enterprise_datas,omitempty" xml:"enterprise_datas>enterprise_data,omitempty"` + // 响应code + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 响应信息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` +} diff --git a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCategoriesResponse.go b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCategoriesResponse.go deleted file mode 100644 index 65efcff70f..0000000000 --- a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCategoriesResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package eleenterpriserestaurant - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -餐厅分类 API返回值 -alibaba.ele.enterprise.restaurant.categories - -餐厅分类 -*/ -type AlibabaEleEnterpriseRestaurantCategoriesAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseRestaurantCategoriesResponse -} - -// 餐厅分类 成功返回结果 -type AlibabaEleEnterpriseRestaurantCategoriesResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_categories_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值信息 - EnterpriseDatas []EnterpriseData `json:"enterprise_datas,omitempty" xml:"enterprise_datas>enterprise_data,omitempty"` - // 响应code - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 响应信息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` -} diff --git a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest.go b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest.go new file mode 100644 index 0000000000..36d60de2cf --- /dev/null +++ b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest.go @@ -0,0 +1,66 @@ +package eleenterpriserestaurant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +检查地址是否在餐厅配送范围内 API请求 +alibaba.ele.enterprise.restaurant.checkaddress + +检查地址是否在餐厅配送范围内 +*/ +type AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest struct { + model.Params + // 餐厅Id + _erestaurantId string + // [{"longitude": 1, "latitude": 2}], json 字符串, 每个元素是 一个 dict{longitude, latitude, …} 其他字段原样返回 + _addresses string +} + +// 初始化AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest对象 +func NewAlibabaEleEnterpriseRestaurantCheckaddressRequest() *AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest{ + return &AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.restaurant.checkaddress" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ErestaurantId Setter +// 餐厅Id +func (r *AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) SetErestaurantId(_erestaurantId string) error { + r._erestaurantId = _erestaurantId + r.Set("erestaurant_id", _erestaurantId) + return nil +} + +// ErestaurantId Getter +func (r AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) GetErestaurantId() string { + return r._erestaurantId +} +// Addresses Setter +// [{"longitude": 1, "latitude": 2}], json 字符串, 每个元素是 一个 dict{longitude, latitude, …} 其他字段原样返回 +func (r *AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) SetAddresses(_addresses string) error { + r._addresses = _addresses + r.Set("addresses", _addresses) + return nil +} + +// Addresses Getter +func (r AlibabaEleEnterpriseRestaurantCheckaddressAPIRequest) GetAddresses() string { + return r._addresses +} diff --git a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCheckaddressAPIResponse.go b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCheckaddressAPIResponse.go new file mode 100644 index 0000000000..1c9642c9d1 --- /dev/null +++ b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCheckaddressAPIResponse.go @@ -0,0 +1,33 @@ +package eleenterpriserestaurant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +检查地址是否在餐厅配送范围内 API返回值 +alibaba.ele.enterprise.restaurant.checkaddress + +检查地址是否在餐厅配送范围内 +*/ +type AlibabaEleEnterpriseRestaurantCheckaddressAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseRestaurantCheckaddressAPIResponseModel +} + +// 检查地址是否在餐厅配送范围内 成功返回结果 +type AlibabaEleEnterpriseRestaurantCheckaddressAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_checkaddress_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值信息 + EnterpriseDatas []EnterpriseData `json:"enterprise_datas,omitempty" xml:"enterprise_datas>enterprise_data,omitempty"` + // 响应code + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 响应信息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` +} diff --git a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCheckaddressResponse.go b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCheckaddressResponse.go deleted file mode 100644 index 59b32c8dcb..0000000000 --- a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantCheckaddressResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package eleenterpriserestaurant - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -检查地址是否在餐厅配送范围内 API返回值 -alibaba.ele.enterprise.restaurant.checkaddress - -检查地址是否在餐厅配送范围内 -*/ -type AlibabaEleEnterpriseRestaurantCheckaddressAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseRestaurantCheckaddressResponse -} - -// 检查地址是否在餐厅配送范围内 成功返回结果 -type AlibabaEleEnterpriseRestaurantCheckaddressResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_checkaddress_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值信息 - EnterpriseDatas []EnterpriseData `json:"enterprise_datas,omitempty" xml:"enterprise_datas>enterprise_data,omitempty"` - // 响应code - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 响应信息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` -} diff --git a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantGetAPIRequest.go b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantGetAPIRequest.go new file mode 100644 index 0000000000..56946302a8 --- /dev/null +++ b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantGetAPIRequest.go @@ -0,0 +1,66 @@ +package eleenterpriserestaurant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询餐厅信息 API请求 +alibaba.ele.enterprise.restaurant.get + +查询餐厅信息 +*/ +type AlibabaEleEnterpriseRestaurantGetAPIRequest struct { + model.Params + // longitude和latitude用英文逗号分隔 + _geo string + // 餐厅ID + _erestaurantId string +} + +// 初始化AlibabaEleEnterpriseRestaurantGetAPIRequest对象 +func NewAlibabaEleEnterpriseRestaurantGetRequest() *AlibabaEleEnterpriseRestaurantGetAPIRequest{ + return &AlibabaEleEnterpriseRestaurantGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseRestaurantGetAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.restaurant.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseRestaurantGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Geo Setter +// longitude和latitude用英文逗号分隔 +func (r *AlibabaEleEnterpriseRestaurantGetAPIRequest) SetGeo(_geo string) error { + r._geo = _geo + r.Set("geo", _geo) + return nil +} + +// Geo Getter +func (r AlibabaEleEnterpriseRestaurantGetAPIRequest) GetGeo() string { + return r._geo +} +// ErestaurantId Setter +// 餐厅ID +func (r *AlibabaEleEnterpriseRestaurantGetAPIRequest) SetErestaurantId(_erestaurantId string) error { + r._erestaurantId = _erestaurantId + r.Set("erestaurant_id", _erestaurantId) + return nil +} + +// ErestaurantId Getter +func (r AlibabaEleEnterpriseRestaurantGetAPIRequest) GetErestaurantId() string { + return r._erestaurantId +} diff --git a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantGetAPIResponse.go b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantGetAPIResponse.go new file mode 100644 index 0000000000..345dc338fb --- /dev/null +++ b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantGetAPIResponse.go @@ -0,0 +1,33 @@ +package eleenterpriserestaurant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询餐厅信息 API返回值 +alibaba.ele.enterprise.restaurant.get + +查询餐厅信息 +*/ +type AlibabaEleEnterpriseRestaurantGetAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseRestaurantGetAPIResponseModel +} + +// 查询餐厅信息 成功返回结果 +type AlibabaEleEnterpriseRestaurantGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应code + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 响应信息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 返回餐厅信息 + EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` +} diff --git a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantGetResponse.go b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantGetResponse.go deleted file mode 100644 index 5a8c9b7856..0000000000 --- a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package eleenterpriserestaurant - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询餐厅信息 API返回值 -alibaba.ele.enterprise.restaurant.get - -查询餐厅信息 -*/ -type AlibabaEleEnterpriseRestaurantGetAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseRestaurantGetResponse -} - -// 查询餐厅信息 成功返回结果 -type AlibabaEleEnterpriseRestaurantGetResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应code - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 响应信息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 返回餐厅信息 - EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` -} diff --git a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMixAPIRequest.go b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMixAPIRequest.go new file mode 100644 index 0000000000..8f69e2c81a --- /dev/null +++ b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMixAPIRequest.go @@ -0,0 +1,248 @@ +package eleenterpriserestaurant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +混合搜索店铺 API请求 +alibaba.ele.enterprise.restaurant.mix + +混合搜索店铺 +*/ +type AlibabaEleEnterpriseRestaurantMixAPIRequest struct { + model.Params + // longitude和latitude用英文逗号分隔 + _geo string + // 首次查询无需传入,后续需要传入前次返回 + _rankId string + // 查询起始位置,默认为0。如果传的是10,那么餐厅会从第11个开始返回 + _start int64 + // 查询数量,默认是10,最大50 + _limit int64 + // 人均消费金额上限,需要高于costFrom,不传表示不限 + _costTo int64 + // 人均消费金额下限,最低为0,不传表示不限 + _costFrom int64 + // 是否支持食安保(0-不限,1-支持食安保)不传表示不限 + _insurance int64 + // 是否可开发票(0-不限,1-可开发票)不传表示不限 + _invoice int64 + // 是否品牌商家(0-不限,1-品牌商家)不传表示不限 + _isPremium int64 + // 是否新店(0-不限,1-新店)不传表示不限 + _newRestaurant int64 + // 配送方式(0-不限, 1-蜂鸟专送)不传表示不限 + _deliveryMode int64 + // 排序选项(1-默认排序(热门), 2-评价星级由高到低, 3-起送价由低到高, 4-销量由高到低, 5-送餐速度由快到慢, 6-餐厅距离由近到远, 7-订单量由高到低) + _orderBy int64 + // 餐厅分类ids + _categoryIds []int64 + // 搜索关键词(关键字需要urlencode处理 + _keyword string + // 是否筛选支持预定 0:不需要 1:需要(不传该字段则不筛选) + _isBookable int64 +} + +// 初始化AlibabaEleEnterpriseRestaurantMixAPIRequest对象 +func NewAlibabaEleEnterpriseRestaurantMixRequest() *AlibabaEleEnterpriseRestaurantMixAPIRequest{ + return &AlibabaEleEnterpriseRestaurantMixAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.restaurant.mix" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Geo Setter +// longitude和latitude用英文逗号分隔 +func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetGeo(_geo string) error { + r._geo = _geo + r.Set("geo", _geo) + return nil +} + +// Geo Getter +func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetGeo() string { + return r._geo +} +// RankId Setter +// 首次查询无需传入,后续需要传入前次返回 +func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetRankId(_rankId string) error { + r._rankId = _rankId + r.Set("rank_id", _rankId) + return nil +} + +// RankId Getter +func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetRankId() string { + return r._rankId +} +// Start Setter +// 查询起始位置,默认为0。如果传的是10,那么餐厅会从第11个开始返回 +func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetStart(_start int64) error { + r._start = _start + r.Set("start", _start) + return nil +} + +// Start Getter +func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetStart() int64 { + return r._start +} +// Limit Setter +// 查询数量,默认是10,最大50 +func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetLimit(_limit int64) error { + r._limit = _limit + r.Set("limit", _limit) + return nil +} + +// Limit Getter +func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetLimit() int64 { + return r._limit +} +// CostTo Setter +// 人均消费金额上限,需要高于costFrom,不传表示不限 +func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetCostTo(_costTo int64) error { + r._costTo = _costTo + r.Set("cost_to", _costTo) + return nil +} + +// CostTo Getter +func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetCostTo() int64 { + return r._costTo +} +// CostFrom Setter +// 人均消费金额下限,最低为0,不传表示不限 +func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetCostFrom(_costFrom int64) error { + r._costFrom = _costFrom + r.Set("cost_from", _costFrom) + return nil +} + +// CostFrom Getter +func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetCostFrom() int64 { + return r._costFrom +} +// Insurance Setter +// 是否支持食安保(0-不限,1-支持食安保)不传表示不限 +func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetInsurance(_insurance int64) error { + r._insurance = _insurance + r.Set("insurance", _insurance) + return nil +} + +// Insurance Getter +func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetInsurance() int64 { + return r._insurance +} +// Invoice Setter +// 是否可开发票(0-不限,1-可开发票)不传表示不限 +func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetInvoice(_invoice int64) error { + r._invoice = _invoice + r.Set("invoice", _invoice) + return nil +} + +// Invoice Getter +func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetInvoice() int64 { + return r._invoice +} +// IsPremium Setter +// 是否品牌商家(0-不限,1-品牌商家)不传表示不限 +func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetIsPremium(_isPremium int64) error { + r._isPremium = _isPremium + r.Set("is_premium", _isPremium) + return nil +} + +// IsPremium Getter +func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetIsPremium() int64 { + return r._isPremium +} +// NewRestaurant Setter +// 是否新店(0-不限,1-新店)不传表示不限 +func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetNewRestaurant(_newRestaurant int64) error { + r._newRestaurant = _newRestaurant + r.Set("new_restaurant", _newRestaurant) + return nil +} + +// NewRestaurant Getter +func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetNewRestaurant() int64 { + return r._newRestaurant +} +// DeliveryMode Setter +// 配送方式(0-不限, 1-蜂鸟专送)不传表示不限 +func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetDeliveryMode(_deliveryMode int64) error { + r._deliveryMode = _deliveryMode + r.Set("delivery_mode", _deliveryMode) + return nil +} + +// DeliveryMode Getter +func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetDeliveryMode() int64 { + return r._deliveryMode +} +// OrderBy Setter +// 排序选项(1-默认排序(热门), 2-评价星级由高到低, 3-起送价由低到高, 4-销量由高到低, 5-送餐速度由快到慢, 6-餐厅距离由近到远, 7-订单量由高到低) +func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetOrderBy(_orderBy int64) error { + r._orderBy = _orderBy + r.Set("order_by", _orderBy) + return nil +} + +// OrderBy Getter +func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetOrderBy() int64 { + return r._orderBy +} +// CategoryIds Setter +// 餐厅分类ids +func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetCategoryIds(_categoryIds []int64) error { + r._categoryIds = _categoryIds + r.Set("category_ids", _categoryIds) + return nil +} + +// CategoryIds Getter +func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetCategoryIds() []int64 { + return r._categoryIds +} +// Keyword Setter +// 搜索关键词(关键字需要urlencode处理 +func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetKeyword(_keyword string) error { + r._keyword = _keyword + r.Set("keyword", _keyword) + return nil +} + +// Keyword Getter +func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetKeyword() string { + return r._keyword +} +// IsBookable Setter +// 是否筛选支持预定 0:不需要 1:需要(不传该字段则不筛选) +func (r *AlibabaEleEnterpriseRestaurantMixAPIRequest) SetIsBookable(_isBookable int64) error { + r._isBookable = _isBookable + r.Set("is_bookable", _isBookable) + return nil +} + +// IsBookable Getter +func (r AlibabaEleEnterpriseRestaurantMixAPIRequest) GetIsBookable() int64 { + return r._isBookable +} diff --git a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMixAPIResponse.go b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMixAPIResponse.go new file mode 100644 index 0000000000..440681bcf5 --- /dev/null +++ b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMixAPIResponse.go @@ -0,0 +1,33 @@ +package eleenterpriserestaurant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +混合搜索店铺 API返回值 +alibaba.ele.enterprise.restaurant.mix + +混合搜索店铺 +*/ +type AlibabaEleEnterpriseRestaurantMixAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseRestaurantMixAPIResponseModel +} + +// 混合搜索店铺 成功返回结果 +type AlibabaEleEnterpriseRestaurantMixAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_mix_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值信息 + EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` + // 响应code + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 响应信息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` +} diff --git a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMixResponse.go b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMixResponse.go deleted file mode 100644 index 5a953c0f97..0000000000 --- a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMixResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package eleenterpriserestaurant - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -混合搜索店铺 API返回值 -alibaba.ele.enterprise.restaurant.mix - -混合搜索店铺 -*/ -type AlibabaEleEnterpriseRestaurantMixAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseRestaurantMixResponse -} - -// 混合搜索店铺 成功返回结果 -type AlibabaEleEnterpriseRestaurantMixResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_mix_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值信息 - EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` - // 响应code - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 响应信息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` -} diff --git a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest.go b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest.go new file mode 100644 index 0000000000..0d63efcd4b --- /dev/null +++ b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest.go @@ -0,0 +1,52 @@ +package eleenterpriserestaurant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询餐厅菜单 API请求 +alibaba.ele.enterprise.restaurant.multispecmenu + +查询餐厅菜单 +*/ +type AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest struct { + model.Params + // 餐厅ID + _erestaurantId string +} + +// 初始化AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest对象 +func NewAlibabaEleEnterpriseRestaurantMultispecmenuRequest() *AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest{ + return &AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.restaurant.multispecmenu" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ErestaurantId Setter +// 餐厅ID +func (r *AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest) SetErestaurantId(_erestaurantId string) error { + r._erestaurantId = _erestaurantId + r.Set("erestaurant_id", _erestaurantId) + return nil +} + +// ErestaurantId Getter +func (r AlibabaEleEnterpriseRestaurantMultispecmenuAPIRequest) GetErestaurantId() string { + return r._erestaurantId +} diff --git a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMultispecmenuAPIResponse.go b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMultispecmenuAPIResponse.go new file mode 100644 index 0000000000..9af720eead --- /dev/null +++ b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMultispecmenuAPIResponse.go @@ -0,0 +1,33 @@ +package eleenterpriserestaurant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询餐厅菜单 API返回值 +alibaba.ele.enterprise.restaurant.multispecmenu + +查询餐厅菜单 +*/ +type AlibabaEleEnterpriseRestaurantMultispecmenuAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseRestaurantMultispecmenuAPIResponseModel +} + +// 查询餐厅菜单 成功返回结果 +type AlibabaEleEnterpriseRestaurantMultispecmenuAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_multispecmenu_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值信息 + EnterpriseDatas []EnterpriseData `json:"enterprise_datas,omitempty" xml:"enterprise_datas>enterprise_data,omitempty"` + // 响应code + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 响应信息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` +} diff --git a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMultispecmenuResponse.go b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMultispecmenuResponse.go deleted file mode 100644 index 5b76ad8b0c..0000000000 --- a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantMultispecmenuResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package eleenterpriserestaurant - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询餐厅菜单 API返回值 -alibaba.ele.enterprise.restaurant.multispecmenu - -查询餐厅菜单 -*/ -type AlibabaEleEnterpriseRestaurantMultispecmenuAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseRestaurantMultispecmenuResponse -} - -// 查询餐厅菜单 成功返回结果 -type AlibabaEleEnterpriseRestaurantMultispecmenuResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_multispecmenu_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值信息 - EnterpriseDatas []EnterpriseData `json:"enterprise_datas,omitempty" xml:"enterprise_datas>enterprise_data,omitempty"` - // 响应code - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 响应信息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` -} diff --git a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantSearchAPIRequest.go b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantSearchAPIRequest.go new file mode 100644 index 0000000000..41319cbdfe --- /dev/null +++ b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantSearchAPIRequest.go @@ -0,0 +1,248 @@ +package eleenterpriserestaurant + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +餐厅列表 API请求 +alibaba.ele.enterprise.restaurant.search + +餐厅列表 +*/ +type AlibabaEleEnterpriseRestaurantSearchAPIRequest struct { + model.Params + // longitude和latitude用英文逗号分隔 + _geo string + // 首次查询无需传入,后续需要传入前次返回 + _rankId string + // 查询起始位置,默认为0。如果传的是10,那么餐厅会从第11个开始返回 + _start int64 + // 查询数量,默认是10,最大50 + _limit int64 + // 人均消费金额上限,需要高于costFrom,不传表示不限 + _costTo int64 + // 人均消费金额下限,最低为0,不传表示不限 + _costFrom int64 + // 是否支持食安保(0-不限,1-支持食安保)不传表示不限 + _insurance int64 + // 是否可开发票(0-不限,1-可开发票)不传表示不限 + _invoice int64 + // 是否品牌商家(0-不限,1-品牌商家)不传表示不限 + _isPremium int64 + // 是否新店(0-不限,1-新店)不传表示不限 + _newRestaurant int64 + // 配送方式(0-不限, 1-蜂鸟专送)不传表示不限 + _deliveryMode int64 + // 排序选项(1-默认排序(热门), 2-评价星级由高到低, 3-起送价由低到高, 4-销量由高到低, 5-送餐速度由快到慢, 6-餐厅距离由近到远, 7-订单量由高到低) + _orderBy int64 + // 餐厅分类ids + _categoryIds []int64 + // 是否筛选支持预定 0:不需要 1:需要(不传该字段则不筛选) + _isBookable string + // 是否支持跨天预定 1:需要(不传该字段则不筛选) + _crossDayBooking string +} + +// 初始化AlibabaEleEnterpriseRestaurantSearchAPIRequest对象 +func NewAlibabaEleEnterpriseRestaurantSearchRequest() *AlibabaEleEnterpriseRestaurantSearchAPIRequest{ + return &AlibabaEleEnterpriseRestaurantSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetApiMethodName() string { + return "alibaba.ele.enterprise.restaurant.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Geo Setter +// longitude和latitude用英文逗号分隔 +func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetGeo(_geo string) error { + r._geo = _geo + r.Set("geo", _geo) + return nil +} + +// Geo Getter +func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetGeo() string { + return r._geo +} +// RankId Setter +// 首次查询无需传入,后续需要传入前次返回 +func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetRankId(_rankId string) error { + r._rankId = _rankId + r.Set("rank_id", _rankId) + return nil +} + +// RankId Getter +func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetRankId() string { + return r._rankId +} +// Start Setter +// 查询起始位置,默认为0。如果传的是10,那么餐厅会从第11个开始返回 +func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetStart(_start int64) error { + r._start = _start + r.Set("start", _start) + return nil +} + +// Start Getter +func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetStart() int64 { + return r._start +} +// Limit Setter +// 查询数量,默认是10,最大50 +func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetLimit(_limit int64) error { + r._limit = _limit + r.Set("limit", _limit) + return nil +} + +// Limit Getter +func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetLimit() int64 { + return r._limit +} +// CostTo Setter +// 人均消费金额上限,需要高于costFrom,不传表示不限 +func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetCostTo(_costTo int64) error { + r._costTo = _costTo + r.Set("cost_to", _costTo) + return nil +} + +// CostTo Getter +func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetCostTo() int64 { + return r._costTo +} +// CostFrom Setter +// 人均消费金额下限,最低为0,不传表示不限 +func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetCostFrom(_costFrom int64) error { + r._costFrom = _costFrom + r.Set("cost_from", _costFrom) + return nil +} + +// CostFrom Getter +func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetCostFrom() int64 { + return r._costFrom +} +// Insurance Setter +// 是否支持食安保(0-不限,1-支持食安保)不传表示不限 +func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetInsurance(_insurance int64) error { + r._insurance = _insurance + r.Set("insurance", _insurance) + return nil +} + +// Insurance Getter +func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetInsurance() int64 { + return r._insurance +} +// Invoice Setter +// 是否可开发票(0-不限,1-可开发票)不传表示不限 +func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetInvoice(_invoice int64) error { + r._invoice = _invoice + r.Set("invoice", _invoice) + return nil +} + +// Invoice Getter +func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetInvoice() int64 { + return r._invoice +} +// IsPremium Setter +// 是否品牌商家(0-不限,1-品牌商家)不传表示不限 +func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetIsPremium(_isPremium int64) error { + r._isPremium = _isPremium + r.Set("is_premium", _isPremium) + return nil +} + +// IsPremium Getter +func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetIsPremium() int64 { + return r._isPremium +} +// NewRestaurant Setter +// 是否新店(0-不限,1-新店)不传表示不限 +func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetNewRestaurant(_newRestaurant int64) error { + r._newRestaurant = _newRestaurant + r.Set("new_restaurant", _newRestaurant) + return nil +} + +// NewRestaurant Getter +func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetNewRestaurant() int64 { + return r._newRestaurant +} +// DeliveryMode Setter +// 配送方式(0-不限, 1-蜂鸟专送)不传表示不限 +func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetDeliveryMode(_deliveryMode int64) error { + r._deliveryMode = _deliveryMode + r.Set("delivery_mode", _deliveryMode) + return nil +} + +// DeliveryMode Getter +func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetDeliveryMode() int64 { + return r._deliveryMode +} +// OrderBy Setter +// 排序选项(1-默认排序(热门), 2-评价星级由高到低, 3-起送价由低到高, 4-销量由高到低, 5-送餐速度由快到慢, 6-餐厅距离由近到远, 7-订单量由高到低) +func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetOrderBy(_orderBy int64) error { + r._orderBy = _orderBy + r.Set("order_by", _orderBy) + return nil +} + +// OrderBy Getter +func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetOrderBy() int64 { + return r._orderBy +} +// CategoryIds Setter +// 餐厅分类ids +func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetCategoryIds(_categoryIds []int64) error { + r._categoryIds = _categoryIds + r.Set("category_ids", _categoryIds) + return nil +} + +// CategoryIds Getter +func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetCategoryIds() []int64 { + return r._categoryIds +} +// IsBookable Setter +// 是否筛选支持预定 0:不需要 1:需要(不传该字段则不筛选) +func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetIsBookable(_isBookable string) error { + r._isBookable = _isBookable + r.Set("is_bookable", _isBookable) + return nil +} + +// IsBookable Getter +func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetIsBookable() string { + return r._isBookable +} +// CrossDayBooking Setter +// 是否支持跨天预定 1:需要(不传该字段则不筛选) +func (r *AlibabaEleEnterpriseRestaurantSearchAPIRequest) SetCrossDayBooking(_crossDayBooking string) error { + r._crossDayBooking = _crossDayBooking + r.Set("cross_day_booking", _crossDayBooking) + return nil +} + +// CrossDayBooking Getter +func (r AlibabaEleEnterpriseRestaurantSearchAPIRequest) GetCrossDayBooking() string { + return r._crossDayBooking +} diff --git a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantSearchAPIResponse.go b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantSearchAPIResponse.go new file mode 100644 index 0000000000..253c36fbd7 --- /dev/null +++ b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantSearchAPIResponse.go @@ -0,0 +1,33 @@ +package eleenterpriserestaurant + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +餐厅列表 API返回值 +alibaba.ele.enterprise.restaurant.search + +餐厅列表 +*/ +type AlibabaEleEnterpriseRestaurantSearchAPIResponse struct { + model.CommonResponse + AlibabaEleEnterpriseRestaurantSearchAPIResponseModel +} + +// 餐厅列表 成功返回结果 +type AlibabaEleEnterpriseRestaurantSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值信息 + EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` + // 响应code + EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` + // 响应信息 + EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` + // 请求id + EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` +} diff --git a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantSearchResponse.go b/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantSearchResponse.go deleted file mode 100644 index b5190df813..0000000000 --- a/model/eleenterpriserestaurant/AlibabaEleEnterpriseRestaurantSearchResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package eleenterpriserestaurant - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -餐厅列表 API返回值 -alibaba.ele.enterprise.restaurant.search - -餐厅列表 -*/ -type AlibabaEleEnterpriseRestaurantSearchAPIResponse struct { - model.CommonResponse - AlibabaEleEnterpriseRestaurantSearchResponse -} - -// 餐厅列表 成功返回结果 -type AlibabaEleEnterpriseRestaurantSearchResponse struct { - XMLName xml.Name `xml:"alibaba_ele_enterprise_restaurant_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值信息 - EnterpriseData *EnterpriseData `json:"enterprise_data,omitempty" xml:"enterprise_data,omitempty"` - // 响应code - EnterpriseCode string `json:"enterprise_code,omitempty" xml:"enterprise_code,omitempty"` - // 响应信息 - EnterpriseMsg string `json:"enterprise_msg,omitempty" xml:"enterprise_msg,omitempty"` - // 请求id - EnterpriseRequestid string `json:"enterprise_requestid,omitempty" xml:"enterprise_requestid,omitempty"` -} diff --git a/model/elife/TaobaoElifeLifecardConsumeAPIRequest.go b/model/elife/TaobaoElifeLifecardConsumeAPIRequest.go new file mode 100644 index 0000000000..57d2775a5d --- /dev/null +++ b/model/elife/TaobaoElifeLifecardConsumeAPIRequest.go @@ -0,0 +1,52 @@ +package elife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌惠卡券核销 API请求 +taobao.elife.lifecard.consume + +用户线上购买生活汇品牌惠虚拟消费卡,线下购物时,商家码枪核销,涉及用户虚拟卡余额扣减操作 +*/ +type TaobaoElifeLifecardConsumeAPIRequest struct { + model.Params + // 交易请求参数 + _consumeRequest *ConsumeRequest +} + +// 初始化TaobaoElifeLifecardConsumeAPIRequest对象 +func NewTaobaoElifeLifecardConsumeRequest() *TaobaoElifeLifecardConsumeAPIRequest{ + return &TaobaoElifeLifecardConsumeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoElifeLifecardConsumeAPIRequest) GetApiMethodName() string { + return "taobao.elife.lifecard.consume" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoElifeLifecardConsumeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ConsumeRequest Setter +// 交易请求参数 +func (r *TaobaoElifeLifecardConsumeAPIRequest) SetConsumeRequest(_consumeRequest *ConsumeRequest) error { + r._consumeRequest = _consumeRequest + r.Set("consume_request", _consumeRequest) + return nil +} + +// ConsumeRequest Getter +func (r TaobaoElifeLifecardConsumeAPIRequest) GetConsumeRequest() *ConsumeRequest { + return r._consumeRequest +} diff --git a/model/elife/TaobaoElifeLifecardConsumeAPIResponse.go b/model/elife/TaobaoElifeLifecardConsumeAPIResponse.go new file mode 100644 index 0000000000..8acc5ee503 --- /dev/null +++ b/model/elife/TaobaoElifeLifecardConsumeAPIResponse.go @@ -0,0 +1,35 @@ +package elife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌惠卡券核销 API返回值 +taobao.elife.lifecard.consume + +用户线上购买生活汇品牌惠虚拟消费卡,线下购物时,商家码枪核销,涉及用户虚拟卡余额扣减操作 +*/ +type TaobaoElifeLifecardConsumeAPIResponse struct { + model.CommonResponse + TaobaoElifeLifecardConsumeAPIResponseModel +} + +// 品牌惠卡券核销 成功返回结果 +type TaobaoElifeLifecardConsumeAPIResponseModel struct { + XMLName xml.Name `xml:"elife_lifecard_consume_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 本金 + Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"` + // 膨胀金 + InflateAmount int64 `json:"inflate_amount,omitempty" xml:"inflate_amount,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 是否成功 + Successed bool `json:"successed,omitempty" xml:"successed,omitempty"` +} diff --git a/model/elife/TaobaoElifeLifecardConsumeResponse.go b/model/elife/TaobaoElifeLifecardConsumeResponse.go deleted file mode 100644 index 8e4ecdbf4c..0000000000 --- a/model/elife/TaobaoElifeLifecardConsumeResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package elife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -品牌惠卡券核销 API返回值 -taobao.elife.lifecard.consume - -用户线上购买生活汇品牌惠虚拟消费卡,线下购物时,商家码枪核销,涉及用户虚拟卡余额扣减操作 -*/ -type TaobaoElifeLifecardConsumeAPIResponse struct { - model.CommonResponse - TaobaoElifeLifecardConsumeResponse -} - -// 品牌惠卡券核销 成功返回结果 -type TaobaoElifeLifecardConsumeResponse struct { - XMLName xml.Name `xml:"elife_lifecard_consume_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 本金 - Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"` - // 膨胀金 - InflateAmount int64 `json:"inflate_amount,omitempty" xml:"inflate_amount,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 结果描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 是否成功 - Successed bool `json:"successed,omitempty" xml:"successed,omitempty"` -} diff --git a/model/elife/TaobaoElifeLifecardQueryAPIRequest.go b/model/elife/TaobaoElifeLifecardQueryAPIRequest.go new file mode 100644 index 0000000000..beb9d72a61 --- /dev/null +++ b/model/elife/TaobaoElifeLifecardQueryAPIRequest.go @@ -0,0 +1,52 @@ +package elife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询交易结果 API请求 +taobao.elife.lifecard.query + +卖家在交易状态不明的情况下, 查询交易结果. +*/ +type TaobaoElifeLifecardQueryAPIRequest struct { + model.Params + // 入参 + _queryRequest *ConsumeRequest +} + +// 初始化TaobaoElifeLifecardQueryAPIRequest对象 +func NewTaobaoElifeLifecardQueryRequest() *TaobaoElifeLifecardQueryAPIRequest{ + return &TaobaoElifeLifecardQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoElifeLifecardQueryAPIRequest) GetApiMethodName() string { + return "taobao.elife.lifecard.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoElifeLifecardQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryRequest Setter +// 入参 +func (r *TaobaoElifeLifecardQueryAPIRequest) SetQueryRequest(_queryRequest *ConsumeRequest) error { + r._queryRequest = _queryRequest + r.Set("query_request", _queryRequest) + return nil +} + +// QueryRequest Getter +func (r TaobaoElifeLifecardQueryAPIRequest) GetQueryRequest() *ConsumeRequest { + return r._queryRequest +} diff --git a/model/elife/TaobaoElifeLifecardQueryAPIResponse.go b/model/elife/TaobaoElifeLifecardQueryAPIResponse.go new file mode 100644 index 0000000000..b016393c70 --- /dev/null +++ b/model/elife/TaobaoElifeLifecardQueryAPIResponse.go @@ -0,0 +1,35 @@ +package elife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询交易结果 API返回值 +taobao.elife.lifecard.query + +卖家在交易状态不明的情况下, 查询交易结果. +*/ +type TaobaoElifeLifecardQueryAPIResponse struct { + model.CommonResponse + TaobaoElifeLifecardQueryAPIResponseModel +} + +// 查询交易结果 成功返回结果 +type TaobaoElifeLifecardQueryAPIResponseModel struct { + XMLName xml.Name `xml:"elife_lifecard_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // resultMsg + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // amount + Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"` + // successed + Successed bool `json:"successed,omitempty" xml:"successed,omitempty"` + // resultCode + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // inflateAmount + InflateAmount int64 `json:"inflate_amount,omitempty" xml:"inflate_amount,omitempty"` +} diff --git a/model/elife/TaobaoElifeLifecardQueryResponse.go b/model/elife/TaobaoElifeLifecardQueryResponse.go deleted file mode 100644 index 8ba5fd497e..0000000000 --- a/model/elife/TaobaoElifeLifecardQueryResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package elife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询交易结果 API返回值 -taobao.elife.lifecard.query - -卖家在交易状态不明的情况下, 查询交易结果. -*/ -type TaobaoElifeLifecardQueryAPIResponse struct { - model.CommonResponse - TaobaoElifeLifecardQueryResponse -} - -// 查询交易结果 成功返回结果 -type TaobaoElifeLifecardQueryResponse struct { - XMLName xml.Name `xml:"elife_lifecard_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // resultMsg - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // amount - Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"` - // successed - Successed bool `json:"successed,omitempty" xml:"successed,omitempty"` - // resultCode - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // inflateAmount - InflateAmount int64 `json:"inflate_amount,omitempty" xml:"inflate_amount,omitempty"` -} diff --git a/model/elife/TaobaoElifeLifecardReconAPIRequest.go b/model/elife/TaobaoElifeLifecardReconAPIRequest.go new file mode 100644 index 0000000000..f63549d2cf --- /dev/null +++ b/model/elife/TaobaoElifeLifecardReconAPIRequest.go @@ -0,0 +1,52 @@ +package elife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询对账文件地址接口 API请求 +taobao.elife.lifecard.recon + +查询对账文件地址接口 +*/ +type TaobaoElifeLifecardReconAPIRequest struct { + model.Params + // 对账日期(YYYYMMDD) + _opDate string +} + +// 初始化TaobaoElifeLifecardReconAPIRequest对象 +func NewTaobaoElifeLifecardReconRequest() *TaobaoElifeLifecardReconAPIRequest{ + return &TaobaoElifeLifecardReconAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoElifeLifecardReconAPIRequest) GetApiMethodName() string { + return "taobao.elife.lifecard.recon" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoElifeLifecardReconAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpDate Setter +// 对账日期(YYYYMMDD) +func (r *TaobaoElifeLifecardReconAPIRequest) SetOpDate(_opDate string) error { + r._opDate = _opDate + r.Set("op_date", _opDate) + return nil +} + +// OpDate Getter +func (r TaobaoElifeLifecardReconAPIRequest) GetOpDate() string { + return r._opDate +} diff --git a/model/elife/TaobaoElifeLifecardReconAPIResponse.go b/model/elife/TaobaoElifeLifecardReconAPIResponse.go new file mode 100644 index 0000000000..d9480996e2 --- /dev/null +++ b/model/elife/TaobaoElifeLifecardReconAPIResponse.go @@ -0,0 +1,35 @@ +package elife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询对账文件地址接口 API返回值 +taobao.elife.lifecard.recon + +查询对账文件地址接口 +*/ +type TaobaoElifeLifecardReconAPIResponse struct { + model.CommonResponse + TaobaoElifeLifecardReconAPIResponseModel +} + +// 查询对账文件地址接口 成功返回结果 +type TaobaoElifeLifecardReconAPIResponseModel struct { + XMLName xml.Name `xml:"elife_lifecard_recon_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 对账日期 + OpDate string `json:"op_date,omitempty" xml:"op_date,omitempty"` + // 成功标志 + Successed bool `json:"successed,omitempty" xml:"successed,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 下载下载文件 + ReconFileUrl string `json:"recon_file_url,omitempty" xml:"recon_file_url,omitempty"` +} diff --git a/model/elife/TaobaoElifeLifecardReconResponse.go b/model/elife/TaobaoElifeLifecardReconResponse.go deleted file mode 100644 index de5917d072..0000000000 --- a/model/elife/TaobaoElifeLifecardReconResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package elife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询对账文件地址接口 API返回值 -taobao.elife.lifecard.recon - -查询对账文件地址接口 -*/ -type TaobaoElifeLifecardReconAPIResponse struct { - model.CommonResponse - TaobaoElifeLifecardReconResponse -} - -// 查询对账文件地址接口 成功返回结果 -type TaobaoElifeLifecardReconResponse struct { - XMLName xml.Name `xml:"elife_lifecard_recon_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 对账日期 - OpDate string `json:"op_date,omitempty" xml:"op_date,omitempty"` - // 成功标志 - Successed bool `json:"successed,omitempty" xml:"successed,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 下载下载文件 - ReconFileUrl string `json:"recon_file_url,omitempty" xml:"recon_file_url,omitempty"` -} diff --git a/model/elife/TaobaoElifeLifecardRefundAPIRequest.go b/model/elife/TaobaoElifeLifecardRefundAPIRequest.go new file mode 100644 index 0000000000..c5e759f742 --- /dev/null +++ b/model/elife/TaobaoElifeLifecardRefundAPIRequest.go @@ -0,0 +1,52 @@ +package elife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌惠卡券冲正退还 API请求 +taobao.elife.lifecard.refund + +淘宝生活汇消费卡虚拟卡,线下冲正退货接口 +*/ +type TaobaoElifeLifecardRefundAPIRequest struct { + model.Params + // 请求参数 + _refundRequest *RefundRequest +} + +// 初始化TaobaoElifeLifecardRefundAPIRequest对象 +func NewTaobaoElifeLifecardRefundRequest() *TaobaoElifeLifecardRefundAPIRequest{ + return &TaobaoElifeLifecardRefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoElifeLifecardRefundAPIRequest) GetApiMethodName() string { + return "taobao.elife.lifecard.refund" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoElifeLifecardRefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundRequest Setter +// 请求参数 +func (r *TaobaoElifeLifecardRefundAPIRequest) SetRefundRequest(_refundRequest *RefundRequest) error { + r._refundRequest = _refundRequest + r.Set("refund_request", _refundRequest) + return nil +} + +// RefundRequest Getter +func (r TaobaoElifeLifecardRefundAPIRequest) GetRefundRequest() *RefundRequest { + return r._refundRequest +} diff --git a/model/elife/TaobaoElifeLifecardRefundAPIResponse.go b/model/elife/TaobaoElifeLifecardRefundAPIResponse.go new file mode 100644 index 0000000000..e2aac9d605 --- /dev/null +++ b/model/elife/TaobaoElifeLifecardRefundAPIResponse.go @@ -0,0 +1,35 @@ +package elife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌惠卡券冲正退还 API返回值 +taobao.elife.lifecard.refund + +淘宝生活汇消费卡虚拟卡,线下冲正退货接口 +*/ +type TaobaoElifeLifecardRefundAPIResponse struct { + model.CommonResponse + TaobaoElifeLifecardRefundAPIResponseModel +} + +// 品牌惠卡券冲正退还 成功返回结果 +type TaobaoElifeLifecardRefundAPIResponseModel struct { + XMLName xml.Name `xml:"elife_lifecard_refund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回码,成功为空 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 本金 + Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"` + // 膨胀金 + InflateAmount int64 `json:"inflate_amount,omitempty" xml:"inflate_amount,omitempty"` + // 返回信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 成功失败标志 + Successed bool `json:"successed,omitempty" xml:"successed,omitempty"` +} diff --git a/model/elife/TaobaoElifeLifecardRefundResponse.go b/model/elife/TaobaoElifeLifecardRefundResponse.go deleted file mode 100644 index a39f34f920..0000000000 --- a/model/elife/TaobaoElifeLifecardRefundResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package elife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -品牌惠卡券冲正退还 API返回值 -taobao.elife.lifecard.refund - -淘宝生活汇消费卡虚拟卡,线下冲正退货接口 -*/ -type TaobaoElifeLifecardRefundAPIResponse struct { - model.CommonResponse - TaobaoElifeLifecardRefundResponse -} - -// 品牌惠卡券冲正退还 成功返回结果 -type TaobaoElifeLifecardRefundResponse struct { - XMLName xml.Name `xml:"elife_lifecard_refund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回码,成功为空 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 本金 - Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"` - // 膨胀金 - InflateAmount int64 `json:"inflate_amount,omitempty" xml:"inflate_amount,omitempty"` - // 返回信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 成功失败标志 - Successed bool `json:"successed,omitempty" xml:"successed,omitempty"` -} diff --git a/model/eticket/TaobaoEticketMerchantImgUploadAPIRequest.go b/model/eticket/TaobaoEticketMerchantImgUploadAPIRequest.go new file mode 100644 index 0000000000..9e1c91b16b --- /dev/null +++ b/model/eticket/TaobaoEticketMerchantImgUploadAPIRequest.go @@ -0,0 +1,52 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +码商上传二维码图片 API请求 +taobao.eticket.merchant.img.upload + +电子凭证的码商可以通过这个接口,上传二维码图片 +*/ +type TaobaoEticketMerchantImgUploadAPIRequest struct { + model.Params + // 二维码图片 + _imgBytes *model.File +} + +// 初始化TaobaoEticketMerchantImgUploadAPIRequest对象 +func NewTaobaoEticketMerchantImgUploadRequest() *TaobaoEticketMerchantImgUploadAPIRequest{ + return &TaobaoEticketMerchantImgUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoEticketMerchantImgUploadAPIRequest) GetApiMethodName() string { + return "taobao.eticket.merchant.img.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoEticketMerchantImgUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImgBytes Setter +// 二维码图片 +func (r *TaobaoEticketMerchantImgUploadAPIRequest) SetImgBytes(_imgBytes *model.File) error { + r._imgBytes = _imgBytes + r.Set("img_bytes", _imgBytes) + return nil +} + +// ImgBytes Getter +func (r TaobaoEticketMerchantImgUploadAPIRequest) GetImgBytes() *model.File { + return r._imgBytes +} diff --git a/model/eticket/TaobaoEticketMerchantImgUploadAPIResponse.go b/model/eticket/TaobaoEticketMerchantImgUploadAPIResponse.go new file mode 100644 index 0000000000..dd172635c7 --- /dev/null +++ b/model/eticket/TaobaoEticketMerchantImgUploadAPIResponse.go @@ -0,0 +1,31 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +码商上传二维码图片 API返回值 +taobao.eticket.merchant.img.upload + +电子凭证的码商可以通过这个接口,上传二维码图片 +*/ +type TaobaoEticketMerchantImgUploadAPIResponse struct { + model.CommonResponse + TaobaoEticketMerchantImgUploadAPIResponseModel +} + +// 码商上传二维码图片 成功返回结果 +type TaobaoEticketMerchantImgUploadAPIResponseModel struct { + XMLName xml.Name `xml:"eticket_merchant_img_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 回复对象 + RespBody *UploadImgCallbackResp `json:"resp_body,omitempty" xml:"resp_body,omitempty"` + // 子结果码 + RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 子结果信息 + RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` +} diff --git a/model/eticket/TaobaoEticketMerchantImgUploadResponse.go b/model/eticket/TaobaoEticketMerchantImgUploadResponse.go deleted file mode 100644 index 2252cebc1b..0000000000 --- a/model/eticket/TaobaoEticketMerchantImgUploadResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -码商上传二维码图片 API返回值 -taobao.eticket.merchant.img.upload - -电子凭证的码商可以通过这个接口,上传二维码图片 -*/ -type TaobaoEticketMerchantImgUploadAPIResponse struct { - model.CommonResponse - TaobaoEticketMerchantImgUploadResponse -} - -// 码商上传二维码图片 成功返回结果 -type TaobaoEticketMerchantImgUploadResponse struct { - XMLName xml.Name `xml:"eticket_merchant_img_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 回复对象 - RespBody *UploadImgCallbackResp `json:"resp_body,omitempty" xml:"resp_body,omitempty"` - // 子结果码 - RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 子结果信息 - RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` -} diff --git a/model/eticket/TaobaoEticketMerchantMaAvailableAPIRequest.go b/model/eticket/TaobaoEticketMerchantMaAvailableAPIRequest.go new file mode 100644 index 0000000000..6394cade58 --- /dev/null +++ b/model/eticket/TaobaoEticketMerchantMaAvailableAPIRequest.go @@ -0,0 +1,136 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +电子凭证核销前校验接口 API请求 +taobao.eticket.merchant.ma.available + +商家验码之前的调用接口,用来判断是否可以进行核销操作 +*/ +type TaobaoEticketMerchantMaAvailableAPIRequest struct { + model.Params + // 业务类型 + _bizType int64 + // 需要被核销的码 + _code string + // 核销份数 + _consumeNum int64 + // 业务id(订单号) + _outerId string + // 机具编号 + _posId string + // 核销序列号,需要保证唯一 + _serialNum string + // 需要跟发码通知获取到的参数一致 + _token string +} + +// 初始化TaobaoEticketMerchantMaAvailableAPIRequest对象 +func NewTaobaoEticketMerchantMaAvailableRequest() *TaobaoEticketMerchantMaAvailableAPIRequest{ + return &TaobaoEticketMerchantMaAvailableAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoEticketMerchantMaAvailableAPIRequest) GetApiMethodName() string { + return "taobao.eticket.merchant.ma.available" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoEticketMerchantMaAvailableAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizType Setter +// 业务类型 +func (r *TaobaoEticketMerchantMaAvailableAPIRequest) SetBizType(_bizType int64) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TaobaoEticketMerchantMaAvailableAPIRequest) GetBizType() int64 { + return r._bizType +} +// Code Setter +// 需要被核销的码 +func (r *TaobaoEticketMerchantMaAvailableAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r TaobaoEticketMerchantMaAvailableAPIRequest) GetCode() string { + return r._code +} +// ConsumeNum Setter +// 核销份数 +func (r *TaobaoEticketMerchantMaAvailableAPIRequest) SetConsumeNum(_consumeNum int64) error { + r._consumeNum = _consumeNum + r.Set("consume_num", _consumeNum) + return nil +} + +// ConsumeNum Getter +func (r TaobaoEticketMerchantMaAvailableAPIRequest) GetConsumeNum() int64 { + return r._consumeNum +} +// OuterId Setter +// 业务id(订单号) +func (r *TaobaoEticketMerchantMaAvailableAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoEticketMerchantMaAvailableAPIRequest) GetOuterId() string { + return r._outerId +} +// PosId Setter +// 机具编号 +func (r *TaobaoEticketMerchantMaAvailableAPIRequest) SetPosId(_posId string) error { + r._posId = _posId + r.Set("pos_id", _posId) + return nil +} + +// PosId Getter +func (r TaobaoEticketMerchantMaAvailableAPIRequest) GetPosId() string { + return r._posId +} +// SerialNum Setter +// 核销序列号,需要保证唯一 +func (r *TaobaoEticketMerchantMaAvailableAPIRequest) SetSerialNum(_serialNum string) error { + r._serialNum = _serialNum + r.Set("serial_num", _serialNum) + return nil +} + +// SerialNum Getter +func (r TaobaoEticketMerchantMaAvailableAPIRequest) GetSerialNum() string { + return r._serialNum +} +// Token Setter +// 需要跟发码通知获取到的参数一致 +func (r *TaobaoEticketMerchantMaAvailableAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoEticketMerchantMaAvailableAPIRequest) GetToken() string { + return r._token +} diff --git a/model/eticket/TaobaoEticketMerchantMaAvailableAPIResponse.go b/model/eticket/TaobaoEticketMerchantMaAvailableAPIResponse.go new file mode 100644 index 0000000000..7c90e790e2 --- /dev/null +++ b/model/eticket/TaobaoEticketMerchantMaAvailableAPIResponse.go @@ -0,0 +1,31 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +电子凭证核销前校验接口 API返回值 +taobao.eticket.merchant.ma.available + +商家验码之前的调用接口,用来判断是否可以进行核销操作 +*/ +type TaobaoEticketMerchantMaAvailableAPIResponse struct { + model.CommonResponse + TaobaoEticketMerchantMaAvailableAPIResponseModel +} + +// 电子凭证核销前校验接口 成功返回结果 +type TaobaoEticketMerchantMaAvailableAPIResponseModel struct { + XMLName xml.Name `xml:"eticket_merchant_ma_available_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 回复结果 + RespBody *ConsumeMaCallbackResp `json:"resp_body,omitempty" xml:"resp_body,omitempty"` + // 子结果码 + RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 子结果信息 + RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` +} diff --git a/model/eticket/TaobaoEticketMerchantMaAvailableResponse.go b/model/eticket/TaobaoEticketMerchantMaAvailableResponse.go deleted file mode 100644 index 0a634c0019..0000000000 --- a/model/eticket/TaobaoEticketMerchantMaAvailableResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -电子凭证核销前校验接口 API返回值 -taobao.eticket.merchant.ma.available - -商家验码之前的调用接口,用来判断是否可以进行核销操作 -*/ -type TaobaoEticketMerchantMaAvailableAPIResponse struct { - model.CommonResponse - TaobaoEticketMerchantMaAvailableResponse -} - -// 电子凭证核销前校验接口 成功返回结果 -type TaobaoEticketMerchantMaAvailableResponse struct { - XMLName xml.Name `xml:"eticket_merchant_ma_available_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 回复结果 - RespBody *ConsumeMaCallbackResp `json:"resp_body,omitempty" xml:"resp_body,omitempty"` - // 子结果码 - RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 子结果信息 - RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` -} diff --git a/model/eticket/TaobaoEticketMerchantMaConsumeAPIRequest.go b/model/eticket/TaobaoEticketMerchantMaConsumeAPIRequest.go new file mode 100644 index 0000000000..bd91ce31fd --- /dev/null +++ b/model/eticket/TaobaoEticketMerchantMaConsumeAPIRequest.go @@ -0,0 +1,150 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +电子凭证核销接口 API请求 +taobao.eticket.merchant.ma.consume + +电子凭证核销接口 +*/ +type TaobaoEticketMerchantMaConsumeAPIRequest struct { + model.Params + // 业务类型 + _bizType int64 + // 需要被核销的码 + _code string + // 核销份数 + _consumeNum int64 + // 核销后换码的码列表 + _isvMaList []IsvMa + // 业务id(订单号) + _outerId string + // 机具编号 + _posId string + // 核销序列号,需要保证唯一 + _serialNum string + // 需要跟发码通知获取到的参数一致 + _token string +} + +// 初始化TaobaoEticketMerchantMaConsumeAPIRequest对象 +func NewTaobaoEticketMerchantMaConsumeRequest() *TaobaoEticketMerchantMaConsumeAPIRequest{ + return &TaobaoEticketMerchantMaConsumeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoEticketMerchantMaConsumeAPIRequest) GetApiMethodName() string { + return "taobao.eticket.merchant.ma.consume" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoEticketMerchantMaConsumeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizType Setter +// 业务类型 +func (r *TaobaoEticketMerchantMaConsumeAPIRequest) SetBizType(_bizType int64) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TaobaoEticketMerchantMaConsumeAPIRequest) GetBizType() int64 { + return r._bizType +} +// Code Setter +// 需要被核销的码 +func (r *TaobaoEticketMerchantMaConsumeAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r TaobaoEticketMerchantMaConsumeAPIRequest) GetCode() string { + return r._code +} +// ConsumeNum Setter +// 核销份数 +func (r *TaobaoEticketMerchantMaConsumeAPIRequest) SetConsumeNum(_consumeNum int64) error { + r._consumeNum = _consumeNum + r.Set("consume_num", _consumeNum) + return nil +} + +// ConsumeNum Getter +func (r TaobaoEticketMerchantMaConsumeAPIRequest) GetConsumeNum() int64 { + return r._consumeNum +} +// IsvMaList Setter +// 核销后换码的码列表 +func (r *TaobaoEticketMerchantMaConsumeAPIRequest) SetIsvMaList(_isvMaList []IsvMa) error { + r._isvMaList = _isvMaList + r.Set("isv_ma_list", _isvMaList) + return nil +} + +// IsvMaList Getter +func (r TaobaoEticketMerchantMaConsumeAPIRequest) GetIsvMaList() []IsvMa { + return r._isvMaList +} +// OuterId Setter +// 业务id(订单号) +func (r *TaobaoEticketMerchantMaConsumeAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoEticketMerchantMaConsumeAPIRequest) GetOuterId() string { + return r._outerId +} +// PosId Setter +// 机具编号 +func (r *TaobaoEticketMerchantMaConsumeAPIRequest) SetPosId(_posId string) error { + r._posId = _posId + r.Set("pos_id", _posId) + return nil +} + +// PosId Getter +func (r TaobaoEticketMerchantMaConsumeAPIRequest) GetPosId() string { + return r._posId +} +// SerialNum Setter +// 核销序列号,需要保证唯一 +func (r *TaobaoEticketMerchantMaConsumeAPIRequest) SetSerialNum(_serialNum string) error { + r._serialNum = _serialNum + r.Set("serial_num", _serialNum) + return nil +} + +// SerialNum Getter +func (r TaobaoEticketMerchantMaConsumeAPIRequest) GetSerialNum() string { + return r._serialNum +} +// Token Setter +// 需要跟发码通知获取到的参数一致 +func (r *TaobaoEticketMerchantMaConsumeAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoEticketMerchantMaConsumeAPIRequest) GetToken() string { + return r._token +} diff --git a/model/eticket/TaobaoEticketMerchantMaConsumeAPIResponse.go b/model/eticket/TaobaoEticketMerchantMaConsumeAPIResponse.go new file mode 100644 index 0000000000..65e6bab7dc --- /dev/null +++ b/model/eticket/TaobaoEticketMerchantMaConsumeAPIResponse.go @@ -0,0 +1,31 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +电子凭证核销接口 API返回值 +taobao.eticket.merchant.ma.consume + +电子凭证核销接口 +*/ +type TaobaoEticketMerchantMaConsumeAPIResponse struct { + model.CommonResponse + TaobaoEticketMerchantMaConsumeAPIResponseModel +} + +// 电子凭证核销接口 成功返回结果 +type TaobaoEticketMerchantMaConsumeAPIResponseModel struct { + XMLName xml.Name `xml:"eticket_merchant_ma_consume_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + RespBody *ConsumeMaCallbackResp `json:"resp_body,omitempty" xml:"resp_body,omitempty"` + // 子结果码 + RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 子结果信息 + RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` +} diff --git a/model/eticket/TaobaoEticketMerchantMaConsumeResponse.go b/model/eticket/TaobaoEticketMerchantMaConsumeResponse.go deleted file mode 100644 index 7040a09a07..0000000000 --- a/model/eticket/TaobaoEticketMerchantMaConsumeResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -电子凭证核销接口 API返回值 -taobao.eticket.merchant.ma.consume - -电子凭证核销接口 -*/ -type TaobaoEticketMerchantMaConsumeAPIResponse struct { - model.CommonResponse - TaobaoEticketMerchantMaConsumeResponse -} - -// 电子凭证核销接口 成功返回结果 -type TaobaoEticketMerchantMaConsumeResponse struct { - XMLName xml.Name `xml:"eticket_merchant_ma_consume_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - RespBody *ConsumeMaCallbackResp `json:"resp_body,omitempty" xml:"resp_body,omitempty"` - // 子结果码 - RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 子结果信息 - RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` -} diff --git a/model/eticket/TaobaoEticketMerchantMaDelayAPIRequest.go b/model/eticket/TaobaoEticketMerchantMaDelayAPIRequest.go new file mode 100644 index 0000000000..2e4a5b1273 --- /dev/null +++ b/model/eticket/TaobaoEticketMerchantMaDelayAPIRequest.go @@ -0,0 +1,122 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +凭证延期 API请求 +taobao.eticket.merchant.ma.delay + +订单延期 +*/ +type TaobaoEticketMerchantMaDelayAPIRequest struct { + model.Params + // 业务类型 + _bizType int64 + // 延期时间 + _endDate string + // 码 + _code string + // 订单号 + _outerId string + // 扩展 + _attributeMap string + // 请求ID,调用方保证惟一 + _requestId string +} + +// 初始化TaobaoEticketMerchantMaDelayAPIRequest对象 +func NewTaobaoEticketMerchantMaDelayRequest() *TaobaoEticketMerchantMaDelayAPIRequest{ + return &TaobaoEticketMerchantMaDelayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoEticketMerchantMaDelayAPIRequest) GetApiMethodName() string { + return "taobao.eticket.merchant.ma.delay" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoEticketMerchantMaDelayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizType Setter +// 业务类型 +func (r *TaobaoEticketMerchantMaDelayAPIRequest) SetBizType(_bizType int64) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TaobaoEticketMerchantMaDelayAPIRequest) GetBizType() int64 { + return r._bizType +} +// EndDate Setter +// 延期时间 +func (r *TaobaoEticketMerchantMaDelayAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoEticketMerchantMaDelayAPIRequest) GetEndDate() string { + return r._endDate +} +// Code Setter +// 码 +func (r *TaobaoEticketMerchantMaDelayAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r TaobaoEticketMerchantMaDelayAPIRequest) GetCode() string { + return r._code +} +// OuterId Setter +// 订单号 +func (r *TaobaoEticketMerchantMaDelayAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoEticketMerchantMaDelayAPIRequest) GetOuterId() string { + return r._outerId +} +// AttributeMap Setter +// 扩展 +func (r *TaobaoEticketMerchantMaDelayAPIRequest) SetAttributeMap(_attributeMap string) error { + r._attributeMap = _attributeMap + r.Set("attribute_map", _attributeMap) + return nil +} + +// AttributeMap Getter +func (r TaobaoEticketMerchantMaDelayAPIRequest) GetAttributeMap() string { + return r._attributeMap +} +// RequestId Setter +// 请求ID,调用方保证惟一 +func (r *TaobaoEticketMerchantMaDelayAPIRequest) SetRequestId(_requestId string) error { + r._requestId = _requestId + r.Set("request_id", _requestId) + return nil +} + +// RequestId Getter +func (r TaobaoEticketMerchantMaDelayAPIRequest) GetRequestId() string { + return r._requestId +} diff --git a/model/eticket/TaobaoEticketMerchantMaDelayAPIResponse.go b/model/eticket/TaobaoEticketMerchantMaDelayAPIResponse.go new file mode 100644 index 0000000000..4d3d57c93c --- /dev/null +++ b/model/eticket/TaobaoEticketMerchantMaDelayAPIResponse.go @@ -0,0 +1,31 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +凭证延期 API返回值 +taobao.eticket.merchant.ma.delay + +订单延期 +*/ +type TaobaoEticketMerchantMaDelayAPIResponse struct { + model.CommonResponse + TaobaoEticketMerchantMaDelayAPIResponseModel +} + +// 凭证延期 成功返回结果 +type TaobaoEticketMerchantMaDelayAPIResponseModel struct { + XMLName xml.Name `xml:"eticket_merchant_ma_delay_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误码 + ResCode int64 `json:"res_code,omitempty" xml:"res_code,omitempty"` + // 错误消息 + ResMsg string `json:"res_msg,omitempty" xml:"res_msg,omitempty"` +} diff --git a/model/eticket/TaobaoEticketMerchantMaDelayResponse.go b/model/eticket/TaobaoEticketMerchantMaDelayResponse.go deleted file mode 100644 index ff5073dee5..0000000000 --- a/model/eticket/TaobaoEticketMerchantMaDelayResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -凭证延期 API返回值 -taobao.eticket.merchant.ma.delay - -订单延期 -*/ -type TaobaoEticketMerchantMaDelayAPIResponse struct { - model.CommonResponse - TaobaoEticketMerchantMaDelayResponse -} - -// 凭证延期 成功返回结果 -type TaobaoEticketMerchantMaDelayResponse struct { - XMLName xml.Name `xml:"eticket_merchant_ma_delay_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误码 - ResCode int64 `json:"res_code,omitempty" xml:"res_code,omitempty"` - // 错误消息 - ResMsg string `json:"res_msg,omitempty" xml:"res_msg,omitempty"` -} diff --git a/model/eticket/TaobaoEticketMerchantMaFailsendAPIRequest.go b/model/eticket/TaobaoEticketMerchantMaFailsendAPIRequest.go new file mode 100644 index 0000000000..b1cc3c352f --- /dev/null +++ b/model/eticket/TaobaoEticketMerchantMaFailsendAPIRequest.go @@ -0,0 +1,108 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +码商发码失败回调接口 API请求 +taobao.eticket.merchant.ma.failsend + +针对一次发码通知,码商无法完成发码,则可以通过此接口告知电子凭证 +*/ +type TaobaoEticketMerchantMaFailsendAPIRequest struct { + model.Params + // 业务id(订单号) + _outerId string + // 错误原因码 + _subErrCode string + // 错误码描述 + _subErrMsg string + // 需要与发码通知获取的值一致 + _token string + // 业务类型 + _bizType int64 +} + +// 初始化TaobaoEticketMerchantMaFailsendAPIRequest对象 +func NewTaobaoEticketMerchantMaFailsendRequest() *TaobaoEticketMerchantMaFailsendAPIRequest{ + return &TaobaoEticketMerchantMaFailsendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoEticketMerchantMaFailsendAPIRequest) GetApiMethodName() string { + return "taobao.eticket.merchant.ma.failsend" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoEticketMerchantMaFailsendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterId Setter +// 业务id(订单号) +func (r *TaobaoEticketMerchantMaFailsendAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoEticketMerchantMaFailsendAPIRequest) GetOuterId() string { + return r._outerId +} +// SubErrCode Setter +// 错误原因码 +func (r *TaobaoEticketMerchantMaFailsendAPIRequest) SetSubErrCode(_subErrCode string) error { + r._subErrCode = _subErrCode + r.Set("sub_err_code", _subErrCode) + return nil +} + +// SubErrCode Getter +func (r TaobaoEticketMerchantMaFailsendAPIRequest) GetSubErrCode() string { + return r._subErrCode +} +// SubErrMsg Setter +// 错误码描述 +func (r *TaobaoEticketMerchantMaFailsendAPIRequest) SetSubErrMsg(_subErrMsg string) error { + r._subErrMsg = _subErrMsg + r.Set("sub_err_msg", _subErrMsg) + return nil +} + +// SubErrMsg Getter +func (r TaobaoEticketMerchantMaFailsendAPIRequest) GetSubErrMsg() string { + return r._subErrMsg +} +// Token Setter +// 需要与发码通知获取的值一致 +func (r *TaobaoEticketMerchantMaFailsendAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoEticketMerchantMaFailsendAPIRequest) GetToken() string { + return r._token +} +// BizType Setter +// 业务类型 +func (r *TaobaoEticketMerchantMaFailsendAPIRequest) SetBizType(_bizType int64) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TaobaoEticketMerchantMaFailsendAPIRequest) GetBizType() int64 { + return r._bizType +} diff --git a/model/eticket/TaobaoEticketMerchantMaFailsendAPIResponse.go b/model/eticket/TaobaoEticketMerchantMaFailsendAPIResponse.go new file mode 100644 index 0000000000..1c9b48ae8b --- /dev/null +++ b/model/eticket/TaobaoEticketMerchantMaFailsendAPIResponse.go @@ -0,0 +1,31 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +码商发码失败回调接口 API返回值 +taobao.eticket.merchant.ma.failsend + +针对一次发码通知,码商无法完成发码,则可以通过此接口告知电子凭证 +*/ +type TaobaoEticketMerchantMaFailsendAPIResponse struct { + model.CommonResponse + TaobaoEticketMerchantMaFailsendAPIResponseModel +} + +// 码商发码失败回调接口 成功返回结果 +type TaobaoEticketMerchantMaFailsendAPIResponseModel struct { + XMLName xml.Name `xml:"eticket_merchant_ma_failsend_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 回复参数 + RespBody *SendFailCallbackResp `json:"resp_body,omitempty" xml:"resp_body,omitempty"` + // 子结果码 + RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 子结果信息 + RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` +} diff --git a/model/eticket/TaobaoEticketMerchantMaFailsendResponse.go b/model/eticket/TaobaoEticketMerchantMaFailsendResponse.go deleted file mode 100644 index 0112089ca3..0000000000 --- a/model/eticket/TaobaoEticketMerchantMaFailsendResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -码商发码失败回调接口 API返回值 -taobao.eticket.merchant.ma.failsend - -针对一次发码通知,码商无法完成发码,则可以通过此接口告知电子凭证 -*/ -type TaobaoEticketMerchantMaFailsendAPIResponse struct { - model.CommonResponse - TaobaoEticketMerchantMaFailsendResponse -} - -// 码商发码失败回调接口 成功返回结果 -type TaobaoEticketMerchantMaFailsendResponse struct { - XMLName xml.Name `xml:"eticket_merchant_ma_failsend_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 回复参数 - RespBody *SendFailCallbackResp `json:"resp_body,omitempty" xml:"resp_body,omitempty"` - // 子结果码 - RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 子结果信息 - RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` -} diff --git a/model/eticket/TaobaoEticketMerchantMaResendAPIRequest.go b/model/eticket/TaobaoEticketMerchantMaResendAPIRequest.go new file mode 100644 index 0000000000..9dfafd51a8 --- /dev/null +++ b/model/eticket/TaobaoEticketMerchantMaResendAPIRequest.go @@ -0,0 +1,94 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +电子凭证重发回调接口 API请求 +taobao.eticket.merchant.ma.resend + +码商重发电子凭证回调接口 +*/ +type TaobaoEticketMerchantMaResendAPIRequest struct { + model.Params + // 业务类型 + _bizType int64 + // 待重发的码列表 + _isvMaList []IsvMa + // 业务id(订单号) + _outerId string + // 需要跟发码通知获取到的参数一致 + _token string +} + +// 初始化TaobaoEticketMerchantMaResendAPIRequest对象 +func NewTaobaoEticketMerchantMaResendRequest() *TaobaoEticketMerchantMaResendAPIRequest{ + return &TaobaoEticketMerchantMaResendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoEticketMerchantMaResendAPIRequest) GetApiMethodName() string { + return "taobao.eticket.merchant.ma.resend" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoEticketMerchantMaResendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizType Setter +// 业务类型 +func (r *TaobaoEticketMerchantMaResendAPIRequest) SetBizType(_bizType int64) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TaobaoEticketMerchantMaResendAPIRequest) GetBizType() int64 { + return r._bizType +} +// IsvMaList Setter +// 待重发的码列表 +func (r *TaobaoEticketMerchantMaResendAPIRequest) SetIsvMaList(_isvMaList []IsvMa) error { + r._isvMaList = _isvMaList + r.Set("isv_ma_list", _isvMaList) + return nil +} + +// IsvMaList Getter +func (r TaobaoEticketMerchantMaResendAPIRequest) GetIsvMaList() []IsvMa { + return r._isvMaList +} +// OuterId Setter +// 业务id(订单号) +func (r *TaobaoEticketMerchantMaResendAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoEticketMerchantMaResendAPIRequest) GetOuterId() string { + return r._outerId +} +// Token Setter +// 需要跟发码通知获取到的参数一致 +func (r *TaobaoEticketMerchantMaResendAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoEticketMerchantMaResendAPIRequest) GetToken() string { + return r._token +} diff --git a/model/eticket/TaobaoEticketMerchantMaResendAPIResponse.go b/model/eticket/TaobaoEticketMerchantMaResendAPIResponse.go new file mode 100644 index 0000000000..3bf5f4cc54 --- /dev/null +++ b/model/eticket/TaobaoEticketMerchantMaResendAPIResponse.go @@ -0,0 +1,31 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +电子凭证重发回调接口 API返回值 +taobao.eticket.merchant.ma.resend + +码商重发电子凭证回调接口 +*/ +type TaobaoEticketMerchantMaResendAPIResponse struct { + model.CommonResponse + TaobaoEticketMerchantMaResendAPIResponseModel +} + +// 电子凭证重发回调接口 成功返回结果 +type TaobaoEticketMerchantMaResendAPIResponseModel struct { + XMLName xml.Name `xml:"eticket_merchant_ma_resend_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 回复参数 + RespBody *SendMaCallbackResp `json:"resp_body,omitempty" xml:"resp_body,omitempty"` + // 子结果码 + RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 子结果信息 + RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` +} diff --git a/model/eticket/TaobaoEticketMerchantMaResendResponse.go b/model/eticket/TaobaoEticketMerchantMaResendResponse.go deleted file mode 100644 index c243d5fa1f..0000000000 --- a/model/eticket/TaobaoEticketMerchantMaResendResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -电子凭证重发回调接口 API返回值 -taobao.eticket.merchant.ma.resend - -码商重发电子凭证回调接口 -*/ -type TaobaoEticketMerchantMaResendAPIResponse struct { - model.CommonResponse - TaobaoEticketMerchantMaResendResponse -} - -// 电子凭证重发回调接口 成功返回结果 -type TaobaoEticketMerchantMaResendResponse struct { - XMLName xml.Name `xml:"eticket_merchant_ma_resend_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 回复参数 - RespBody *SendMaCallbackResp `json:"resp_body,omitempty" xml:"resp_body,omitempty"` - // 子结果码 - RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 子结果信息 - RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` -} diff --git a/model/eticket/TaobaoEticketMerchantMaReverseAPIRequest.go b/model/eticket/TaobaoEticketMerchantMaReverseAPIRequest.go new file mode 100644 index 0000000000..ae83c2a962 --- /dev/null +++ b/model/eticket/TaobaoEticketMerchantMaReverseAPIRequest.go @@ -0,0 +1,136 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +电子凭证冲正接口 API请求 +taobao.eticket.merchant.ma.reverse + +电子凭证平台冲正接口 +*/ +type TaobaoEticketMerchantMaReverseAPIRequest struct { + model.Params + // 业务类型 + _bizType int64 + // 码值 + _code string + // 业务id(订单号) + _outerId string + // 机具编号,如果核销时有则必传 + _posId string + // 冲正份数,需要与核销份数一致 + _reverseNum int64 + // 需要冲正的核销序列号 + _serialNum string + // 需要跟发码通知获取到的参数一致 + _token string +} + +// 初始化TaobaoEticketMerchantMaReverseAPIRequest对象 +func NewTaobaoEticketMerchantMaReverseRequest() *TaobaoEticketMerchantMaReverseAPIRequest{ + return &TaobaoEticketMerchantMaReverseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoEticketMerchantMaReverseAPIRequest) GetApiMethodName() string { + return "taobao.eticket.merchant.ma.reverse" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoEticketMerchantMaReverseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizType Setter +// 业务类型 +func (r *TaobaoEticketMerchantMaReverseAPIRequest) SetBizType(_bizType int64) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TaobaoEticketMerchantMaReverseAPIRequest) GetBizType() int64 { + return r._bizType +} +// Code Setter +// 码值 +func (r *TaobaoEticketMerchantMaReverseAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r TaobaoEticketMerchantMaReverseAPIRequest) GetCode() string { + return r._code +} +// OuterId Setter +// 业务id(订单号) +func (r *TaobaoEticketMerchantMaReverseAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoEticketMerchantMaReverseAPIRequest) GetOuterId() string { + return r._outerId +} +// PosId Setter +// 机具编号,如果核销时有则必传 +func (r *TaobaoEticketMerchantMaReverseAPIRequest) SetPosId(_posId string) error { + r._posId = _posId + r.Set("pos_id", _posId) + return nil +} + +// PosId Getter +func (r TaobaoEticketMerchantMaReverseAPIRequest) GetPosId() string { + return r._posId +} +// ReverseNum Setter +// 冲正份数,需要与核销份数一致 +func (r *TaobaoEticketMerchantMaReverseAPIRequest) SetReverseNum(_reverseNum int64) error { + r._reverseNum = _reverseNum + r.Set("reverse_num", _reverseNum) + return nil +} + +// ReverseNum Getter +func (r TaobaoEticketMerchantMaReverseAPIRequest) GetReverseNum() int64 { + return r._reverseNum +} +// SerialNum Setter +// 需要冲正的核销序列号 +func (r *TaobaoEticketMerchantMaReverseAPIRequest) SetSerialNum(_serialNum string) error { + r._serialNum = _serialNum + r.Set("serial_num", _serialNum) + return nil +} + +// SerialNum Getter +func (r TaobaoEticketMerchantMaReverseAPIRequest) GetSerialNum() string { + return r._serialNum +} +// Token Setter +// 需要跟发码通知获取到的参数一致 +func (r *TaobaoEticketMerchantMaReverseAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoEticketMerchantMaReverseAPIRequest) GetToken() string { + return r._token +} diff --git a/model/eticket/TaobaoEticketMerchantMaReverseAPIResponse.go b/model/eticket/TaobaoEticketMerchantMaReverseAPIResponse.go new file mode 100644 index 0000000000..eed740ef71 --- /dev/null +++ b/model/eticket/TaobaoEticketMerchantMaReverseAPIResponse.go @@ -0,0 +1,31 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +电子凭证冲正接口 API返回值 +taobao.eticket.merchant.ma.reverse + +电子凭证平台冲正接口 +*/ +type TaobaoEticketMerchantMaReverseAPIResponse struct { + model.CommonResponse + TaobaoEticketMerchantMaReverseAPIResponseModel +} + +// 电子凭证冲正接口 成功返回结果 +type TaobaoEticketMerchantMaReverseAPIResponseModel struct { + XMLName xml.Name `xml:"eticket_merchant_ma_reverse_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 回复结果 + RespBody *ReverseMaCallbackResp `json:"resp_body,omitempty" xml:"resp_body,omitempty"` + // 子结果码 + RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 子结果信息 + RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` +} diff --git a/model/eticket/TaobaoEticketMerchantMaReverseResponse.go b/model/eticket/TaobaoEticketMerchantMaReverseResponse.go deleted file mode 100644 index e1c71309d7..0000000000 --- a/model/eticket/TaobaoEticketMerchantMaReverseResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -电子凭证冲正接口 API返回值 -taobao.eticket.merchant.ma.reverse - -电子凭证平台冲正接口 -*/ -type TaobaoEticketMerchantMaReverseAPIResponse struct { - model.CommonResponse - TaobaoEticketMerchantMaReverseResponse -} - -// 电子凭证冲正接口 成功返回结果 -type TaobaoEticketMerchantMaReverseResponse struct { - XMLName xml.Name `xml:"eticket_merchant_ma_reverse_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 回复结果 - RespBody *ReverseMaCallbackResp `json:"resp_body,omitempty" xml:"resp_body,omitempty"` - // 子结果码 - RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 子结果信息 - RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` -} diff --git a/model/eticket/TaobaoEticketMerchantMaSendAPIRequest.go b/model/eticket/TaobaoEticketMerchantMaSendAPIRequest.go new file mode 100644 index 0000000000..d68f49fbcd --- /dev/null +++ b/model/eticket/TaobaoEticketMerchantMaSendAPIRequest.go @@ -0,0 +1,94 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +码商发码成功回调接口 API请求 +taobao.eticket.merchant.ma.send + +码商发码成功回调接口 +*/ +type TaobaoEticketMerchantMaSendAPIRequest struct { + model.Params + // 业务类型 + _bizType int64 + // 需要发送的码列表 + _isvMaList []IsvMa + // 业务id(订单号) + _outerId string + // 需要跟发码通知获取到的参数一致 + _token string +} + +// 初始化TaobaoEticketMerchantMaSendAPIRequest对象 +func NewTaobaoEticketMerchantMaSendRequest() *TaobaoEticketMerchantMaSendAPIRequest{ + return &TaobaoEticketMerchantMaSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoEticketMerchantMaSendAPIRequest) GetApiMethodName() string { + return "taobao.eticket.merchant.ma.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoEticketMerchantMaSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizType Setter +// 业务类型 +func (r *TaobaoEticketMerchantMaSendAPIRequest) SetBizType(_bizType int64) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TaobaoEticketMerchantMaSendAPIRequest) GetBizType() int64 { + return r._bizType +} +// IsvMaList Setter +// 需要发送的码列表 +func (r *TaobaoEticketMerchantMaSendAPIRequest) SetIsvMaList(_isvMaList []IsvMa) error { + r._isvMaList = _isvMaList + r.Set("isv_ma_list", _isvMaList) + return nil +} + +// IsvMaList Getter +func (r TaobaoEticketMerchantMaSendAPIRequest) GetIsvMaList() []IsvMa { + return r._isvMaList +} +// OuterId Setter +// 业务id(订单号) +func (r *TaobaoEticketMerchantMaSendAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoEticketMerchantMaSendAPIRequest) GetOuterId() string { + return r._outerId +} +// Token Setter +// 需要跟发码通知获取到的参数一致 +func (r *TaobaoEticketMerchantMaSendAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoEticketMerchantMaSendAPIRequest) GetToken() string { + return r._token +} diff --git a/model/eticket/TaobaoEticketMerchantMaSendAPIResponse.go b/model/eticket/TaobaoEticketMerchantMaSendAPIResponse.go new file mode 100644 index 0000000000..032bd46abe --- /dev/null +++ b/model/eticket/TaobaoEticketMerchantMaSendAPIResponse.go @@ -0,0 +1,31 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +码商发码成功回调接口 API返回值 +taobao.eticket.merchant.ma.send + +码商发码成功回调接口 +*/ +type TaobaoEticketMerchantMaSendAPIResponse struct { + model.CommonResponse + TaobaoEticketMerchantMaSendAPIResponseModel +} + +// 码商发码成功回调接口 成功返回结果 +type TaobaoEticketMerchantMaSendAPIResponseModel struct { + XMLName xml.Name `xml:"eticket_merchant_ma_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 回复参数 + RespBody *SendMaCallbackResp `json:"resp_body,omitempty" xml:"resp_body,omitempty"` + // 子结果码 + RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 子结果信息 + RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` +} diff --git a/model/eticket/TaobaoEticketMerchantMaSendResponse.go b/model/eticket/TaobaoEticketMerchantMaSendResponse.go deleted file mode 100644 index b404e1c78d..0000000000 --- a/model/eticket/TaobaoEticketMerchantMaSendResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -码商发码成功回调接口 API返回值 -taobao.eticket.merchant.ma.send - -码商发码成功回调接口 -*/ -type TaobaoEticketMerchantMaSendAPIResponse struct { - model.CommonResponse - TaobaoEticketMerchantMaSendResponse -} - -// 码商发码成功回调接口 成功返回结果 -type TaobaoEticketMerchantMaSendResponse struct { - XMLName xml.Name `xml:"eticket_merchant_ma_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 回复参数 - RespBody *SendMaCallbackResp `json:"resp_body,omitempty" xml:"resp_body,omitempty"` - // 子结果码 - RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 子结果信息 - RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` -} diff --git a/model/eticket/TaobaoEticketMerchantTbmaGetAPIRequest.go b/model/eticket/TaobaoEticketMerchantTbmaGetAPIRequest.go new file mode 100644 index 0000000000..74dc80bb4e --- /dev/null +++ b/model/eticket/TaobaoEticketMerchantTbmaGetAPIRequest.go @@ -0,0 +1,52 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +码商查询淘宝码接口 API请求 +taobao.eticket.merchant.tbma.get + +码商查询淘宝码接口 +*/ +type TaobaoEticketMerchantTbmaGetAPIRequest struct { + model.Params + // 查询淘宝码请求 + _queryTbMaCallbackReq *QueryTbMaCallbackReq +} + +// 初始化TaobaoEticketMerchantTbmaGetAPIRequest对象 +func NewTaobaoEticketMerchantTbmaGetRequest() *TaobaoEticketMerchantTbmaGetAPIRequest{ + return &TaobaoEticketMerchantTbmaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoEticketMerchantTbmaGetAPIRequest) GetApiMethodName() string { + return "taobao.eticket.merchant.tbma.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoEticketMerchantTbmaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryTbMaCallbackReq Setter +// 查询淘宝码请求 +func (r *TaobaoEticketMerchantTbmaGetAPIRequest) SetQueryTbMaCallbackReq(_queryTbMaCallbackReq *QueryTbMaCallbackReq) error { + r._queryTbMaCallbackReq = _queryTbMaCallbackReq + r.Set("query_tb_ma_callback_req", _queryTbMaCallbackReq) + return nil +} + +// QueryTbMaCallbackReq Getter +func (r TaobaoEticketMerchantTbmaGetAPIRequest) GetQueryTbMaCallbackReq() *QueryTbMaCallbackReq { + return r._queryTbMaCallbackReq +} diff --git a/model/eticket/TaobaoEticketMerchantTbmaGetAPIResponse.go b/model/eticket/TaobaoEticketMerchantTbmaGetAPIResponse.go new file mode 100644 index 0000000000..1034c3ecbb --- /dev/null +++ b/model/eticket/TaobaoEticketMerchantTbmaGetAPIResponse.go @@ -0,0 +1,31 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +码商查询淘宝码接口 API返回值 +taobao.eticket.merchant.tbma.get + +码商查询淘宝码接口 +*/ +type TaobaoEticketMerchantTbmaGetAPIResponse struct { + model.CommonResponse + TaobaoEticketMerchantTbmaGetAPIResponseModel +} + +// 码商查询淘宝码接口 成功返回结果 +type TaobaoEticketMerchantTbmaGetAPIResponseModel struct { + XMLName xml.Name `xml:"eticket_merchant_tbma_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // respBody + RespBody *QueryTbMaCallbackResp `json:"resp_body,omitempty" xml:"resp_body,omitempty"` + // subCode + RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // subMsg + RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` +} diff --git a/model/eticket/TaobaoEticketMerchantTbmaGetResponse.go b/model/eticket/TaobaoEticketMerchantTbmaGetResponse.go deleted file mode 100644 index e74afcd91b..0000000000 --- a/model/eticket/TaobaoEticketMerchantTbmaGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -码商查询淘宝码接口 API返回值 -taobao.eticket.merchant.tbma.get - -码商查询淘宝码接口 -*/ -type TaobaoEticketMerchantTbmaGetAPIResponse struct { - model.CommonResponse - TaobaoEticketMerchantTbmaGetResponse -} - -// 码商查询淘宝码接口 成功返回结果 -type TaobaoEticketMerchantTbmaGetResponse struct { - XMLName xml.Name `xml:"eticket_merchant_tbma_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // respBody - RespBody *QueryTbMaCallbackResp `json:"resp_body,omitempty" xml:"resp_body,omitempty"` - // subCode - RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // subMsg - RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketAuthBeforeconsumeAPIRequest.go b/model/eticket/TaobaoVmarketEticketAuthBeforeconsumeAPIRequest.go new file mode 100644 index 0000000000..21f8d277bc --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketAuthBeforeconsumeAPIRequest.go @@ -0,0 +1,80 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +核销放行的查询接口 API请求 +taobao.vmarket.eticket.auth.beforeconsume + +针对O2O电子凭证核销放行业务,为满足码商能够核销淘宝码而开放的核销查询接口 +*/ +type TaobaoVmarketEticketAuthBeforeconsumeAPIRequest struct { + model.Params + // 核销的码,只支持单个码,多个码核销需要多次调用 + _verifyCode string + // 核销方的ID,如果是普通码商必须传入机具ID,如果是私有码商家(即原有的信任商家)可默认传入私有码商ID + _operatorid string + // 网点ID,网点授权核销时,必须传入;其他核销方式可不传 + _storeid string +} + +// 初始化TaobaoVmarketEticketAuthBeforeconsumeAPIRequest对象 +func NewTaobaoVmarketEticketAuthBeforeconsumeRequest() *TaobaoVmarketEticketAuthBeforeconsumeAPIRequest{ + return &TaobaoVmarketEticketAuthBeforeconsumeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketAuthBeforeconsumeAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.auth.beforeconsume" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketAuthBeforeconsumeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VerifyCode Setter +// 核销的码,只支持单个码,多个码核销需要多次调用 +func (r *TaobaoVmarketEticketAuthBeforeconsumeAPIRequest) SetVerifyCode(_verifyCode string) error { + r._verifyCode = _verifyCode + r.Set("verify_code", _verifyCode) + return nil +} + +// VerifyCode Getter +func (r TaobaoVmarketEticketAuthBeforeconsumeAPIRequest) GetVerifyCode() string { + return r._verifyCode +} +// Operatorid Setter +// 核销方的ID,如果是普通码商必须传入机具ID,如果是私有码商家(即原有的信任商家)可默认传入私有码商ID +func (r *TaobaoVmarketEticketAuthBeforeconsumeAPIRequest) SetOperatorid(_operatorid string) error { + r._operatorid = _operatorid + r.Set("operatorid", _operatorid) + return nil +} + +// Operatorid Getter +func (r TaobaoVmarketEticketAuthBeforeconsumeAPIRequest) GetOperatorid() string { + return r._operatorid +} +// Storeid Setter +// 网点ID,网点授权核销时,必须传入;其他核销方式可不传 +func (r *TaobaoVmarketEticketAuthBeforeconsumeAPIRequest) SetStoreid(_storeid string) error { + r._storeid = _storeid + r.Set("storeid", _storeid) + return nil +} + +// Storeid Getter +func (r TaobaoVmarketEticketAuthBeforeconsumeAPIRequest) GetStoreid() string { + return r._storeid +} diff --git a/model/eticket/TaobaoVmarketEticketAuthBeforeconsumeAPIResponse.go b/model/eticket/TaobaoVmarketEticketAuthBeforeconsumeAPIResponse.go new file mode 100644 index 0000000000..dbf4b11137 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketAuthBeforeconsumeAPIResponse.go @@ -0,0 +1,41 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +核销放行的查询接口 API返回值 +taobao.vmarket.eticket.auth.beforeconsume + +针对O2O电子凭证核销放行业务,为满足码商能够核销淘宝码而开放的核销查询接口 +*/ +type TaobaoVmarketEticketAuthBeforeconsumeAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketAuthBeforeconsumeAPIResponseModel +} + +// 核销放行的查询接口 成功返回结果 +type TaobaoVmarketEticketAuthBeforeconsumeAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_auth_beforeconsume_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 1:可以进行核销码操作 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 商品标题 + ItemTitle string `json:"item_title,omitempty" xml:"item_title,omitempty"` + // 订单ID + OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"` + // 淘宝卖家ID + TaobaoSid int64 `json:"taobao_sid,omitempty" xml:"taobao_sid,omitempty"` + // 淘宝卖家旺旺名称 + SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"` + // 有效期开始时间 + ValidStart string `json:"valid_start,omitempty" xml:"valid_start,omitempty"` + // 有效期结束时间 + ValidEnds string `json:"valid_ends,omitempty" xml:"valid_ends,omitempty"` + // 当前码剩余可核销数量 + CodeLeftNum int64 `json:"code_left_num,omitempty" xml:"code_left_num,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketAuthBeforeconsumeResponse.go b/model/eticket/TaobaoVmarketEticketAuthBeforeconsumeResponse.go deleted file mode 100644 index 6dcc7f88eb..0000000000 --- a/model/eticket/TaobaoVmarketEticketAuthBeforeconsumeResponse.go +++ /dev/null @@ -1,41 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -核销放行的查询接口 API返回值 -taobao.vmarket.eticket.auth.beforeconsume - -针对O2O电子凭证核销放行业务,为满足码商能够核销淘宝码而开放的核销查询接口 -*/ -type TaobaoVmarketEticketAuthBeforeconsumeAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketAuthBeforeconsumeResponse -} - -// 核销放行的查询接口 成功返回结果 -type TaobaoVmarketEticketAuthBeforeconsumeResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_auth_beforeconsume_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 1:可以进行核销码操作 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 商品标题 - ItemTitle string `json:"item_title,omitempty" xml:"item_title,omitempty"` - // 订单ID - OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"` - // 淘宝卖家ID - TaobaoSid int64 `json:"taobao_sid,omitempty" xml:"taobao_sid,omitempty"` - // 淘宝卖家旺旺名称 - SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"` - // 有效期开始时间 - ValidStart string `json:"valid_start,omitempty" xml:"valid_start,omitempty"` - // 有效期结束时间 - ValidEnds string `json:"valid_ends,omitempty" xml:"valid_ends,omitempty"` - // 当前码剩余可核销数量 - CodeLeftNum int64 `json:"code_left_num,omitempty" xml:"code_left_num,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketAuthConsumeAPIRequest.go b/model/eticket/TaobaoVmarketEticketAuthConsumeAPIRequest.go new file mode 100644 index 0000000000..f4a0390f1b --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketAuthConsumeAPIRequest.go @@ -0,0 +1,108 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +核销放行的核销接口 API请求 +taobao.vmarket.eticket.auth.consume + +针对O2O电子凭证核销放行业务,为满足码商能够核销淘宝码而开放的核销接口 +*/ +type TaobaoVmarketEticketAuthConsumeAPIRequest struct { + model.Params + // 核销的码,只支持单个码,多个码核销需要多次调用 + _verifyCode string + // 核销份数 + _consumeNum int64 + // 核销方的ID,如果是普通码商必须传入机具ID,如果是私有码商家(即原有的信任商家)可默认传入私有码商ID + _operatorid string + // 自定义核销流水号,需要小于等于100个字符(a-zA-Z0-9_) + _serialNum string + // 网点ID,网点授权核销时,必须传入;其他核销方式可不传 + _storeid string +} + +// 初始化TaobaoVmarketEticketAuthConsumeAPIRequest对象 +func NewTaobaoVmarketEticketAuthConsumeRequest() *TaobaoVmarketEticketAuthConsumeAPIRequest{ + return &TaobaoVmarketEticketAuthConsumeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketAuthConsumeAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.auth.consume" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketAuthConsumeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VerifyCode Setter +// 核销的码,只支持单个码,多个码核销需要多次调用 +func (r *TaobaoVmarketEticketAuthConsumeAPIRequest) SetVerifyCode(_verifyCode string) error { + r._verifyCode = _verifyCode + r.Set("verify_code", _verifyCode) + return nil +} + +// VerifyCode Getter +func (r TaobaoVmarketEticketAuthConsumeAPIRequest) GetVerifyCode() string { + return r._verifyCode +} +// ConsumeNum Setter +// 核销份数 +func (r *TaobaoVmarketEticketAuthConsumeAPIRequest) SetConsumeNum(_consumeNum int64) error { + r._consumeNum = _consumeNum + r.Set("consume_num", _consumeNum) + return nil +} + +// ConsumeNum Getter +func (r TaobaoVmarketEticketAuthConsumeAPIRequest) GetConsumeNum() int64 { + return r._consumeNum +} +// Operatorid Setter +// 核销方的ID,如果是普通码商必须传入机具ID,如果是私有码商家(即原有的信任商家)可默认传入私有码商ID +func (r *TaobaoVmarketEticketAuthConsumeAPIRequest) SetOperatorid(_operatorid string) error { + r._operatorid = _operatorid + r.Set("operatorid", _operatorid) + return nil +} + +// Operatorid Getter +func (r TaobaoVmarketEticketAuthConsumeAPIRequest) GetOperatorid() string { + return r._operatorid +} +// SerialNum Setter +// 自定义核销流水号,需要小于等于100个字符(a-zA-Z0-9_) +func (r *TaobaoVmarketEticketAuthConsumeAPIRequest) SetSerialNum(_serialNum string) error { + r._serialNum = _serialNum + r.Set("serial_num", _serialNum) + return nil +} + +// SerialNum Getter +func (r TaobaoVmarketEticketAuthConsumeAPIRequest) GetSerialNum() string { + return r._serialNum +} +// Storeid Setter +// 网点ID,网点授权核销时,必须传入;其他核销方式可不传 +func (r *TaobaoVmarketEticketAuthConsumeAPIRequest) SetStoreid(_storeid string) error { + r._storeid = _storeid + r.Set("storeid", _storeid) + return nil +} + +// Storeid Getter +func (r TaobaoVmarketEticketAuthConsumeAPIRequest) GetStoreid() string { + return r._storeid +} diff --git a/model/eticket/TaobaoVmarketEticketAuthConsumeAPIResponse.go b/model/eticket/TaobaoVmarketEticketAuthConsumeAPIResponse.go new file mode 100644 index 0000000000..9ccd42652a --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketAuthConsumeAPIResponse.go @@ -0,0 +1,35 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +核销放行的核销接口 API返回值 +taobao.vmarket.eticket.auth.consume + +针对O2O电子凭证核销放行业务,为满足码商能够核销淘宝码而开放的核销接口 +*/ +type TaobaoVmarketEticketAuthConsumeAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketAuthConsumeAPIResponseModel +} + +// 核销放行的核销接口 成功返回结果 +type TaobaoVmarketEticketAuthConsumeAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_auth_consume_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 1:可以进行核销码操作 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 商品标题 + ItemTitle string `json:"item_title,omitempty" xml:"item_title,omitempty"` + // 订单ID + OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"` + // 淘宝卖家ID + TaobaoSid int64 `json:"taobao_sid,omitempty" xml:"taobao_sid,omitempty"` + // 淘宝卖家旺旺名称 + SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketAuthConsumeResponse.go b/model/eticket/TaobaoVmarketEticketAuthConsumeResponse.go deleted file mode 100644 index 4ee16e0c90..0000000000 --- a/model/eticket/TaobaoVmarketEticketAuthConsumeResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -核销放行的核销接口 API返回值 -taobao.vmarket.eticket.auth.consume - -针对O2O电子凭证核销放行业务,为满足码商能够核销淘宝码而开放的核销接口 -*/ -type TaobaoVmarketEticketAuthConsumeAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketAuthConsumeResponse -} - -// 核销放行的核销接口 成功返回结果 -type TaobaoVmarketEticketAuthConsumeResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_auth_consume_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 1:可以进行核销码操作 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 商品标题 - ItemTitle string `json:"item_title,omitempty" xml:"item_title,omitempty"` - // 订单ID - OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"` - // 淘宝卖家ID - TaobaoSid int64 `json:"taobao_sid,omitempty" xml:"taobao_sid,omitempty"` - // 淘宝卖家旺旺名称 - SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketBeforeconsumeAPIRequest.go b/model/eticket/TaobaoVmarketEticketBeforeconsumeAPIRequest.go new file mode 100644 index 0000000000..4b9a7b0256 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketBeforeconsumeAPIRequest.go @@ -0,0 +1,122 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +电子凭证验码前置确认 API请求 +taobao.vmarket.eticket.beforeconsume + +商家验码之前的调用接口,用来同步到最新的订单状态并判断是否可以进行验码操作 +*/ +type TaobaoVmarketEticketBeforeconsumeAPIRequest struct { + model.Params + // 需要验码的电子凭证订单ID + _orderId int64 + // 需要验的码 + _verifyCode string + // 安全验证token,需要和发码通知中的token一致 + _token string + // 码商ID,是码商的话必须传递,如果是信任卖家不需要传 + _codemerchantId int64 + // 操作员身份ID,如果是码商必须传,如果是信任卖家不需要传 + _posid string + // 手机号码后四位,没有特殊说明请不要传 + _mobile string +} + +// 初始化TaobaoVmarketEticketBeforeconsumeAPIRequest对象 +func NewTaobaoVmarketEticketBeforeconsumeRequest() *TaobaoVmarketEticketBeforeconsumeAPIRequest{ + return &TaobaoVmarketEticketBeforeconsumeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketBeforeconsumeAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.beforeconsume" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketBeforeconsumeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 需要验码的电子凭证订单ID +func (r *TaobaoVmarketEticketBeforeconsumeAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoVmarketEticketBeforeconsumeAPIRequest) GetOrderId() int64 { + return r._orderId +} +// VerifyCode Setter +// 需要验的码 +func (r *TaobaoVmarketEticketBeforeconsumeAPIRequest) SetVerifyCode(_verifyCode string) error { + r._verifyCode = _verifyCode + r.Set("verify_code", _verifyCode) + return nil +} + +// VerifyCode Getter +func (r TaobaoVmarketEticketBeforeconsumeAPIRequest) GetVerifyCode() string { + return r._verifyCode +} +// Token Setter +// 安全验证token,需要和发码通知中的token一致 +func (r *TaobaoVmarketEticketBeforeconsumeAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoVmarketEticketBeforeconsumeAPIRequest) GetToken() string { + return r._token +} +// CodemerchantId Setter +// 码商ID,是码商的话必须传递,如果是信任卖家不需要传 +func (r *TaobaoVmarketEticketBeforeconsumeAPIRequest) SetCodemerchantId(_codemerchantId int64) error { + r._codemerchantId = _codemerchantId + r.Set("codemerchant_id", _codemerchantId) + return nil +} + +// CodemerchantId Getter +func (r TaobaoVmarketEticketBeforeconsumeAPIRequest) GetCodemerchantId() int64 { + return r._codemerchantId +} +// Posid Setter +// 操作员身份ID,如果是码商必须传,如果是信任卖家不需要传 +func (r *TaobaoVmarketEticketBeforeconsumeAPIRequest) SetPosid(_posid string) error { + r._posid = _posid + r.Set("posid", _posid) + return nil +} + +// Posid Getter +func (r TaobaoVmarketEticketBeforeconsumeAPIRequest) GetPosid() string { + return r._posid +} +// Mobile Setter +// 手机号码后四位,没有特殊说明请不要传 +func (r *TaobaoVmarketEticketBeforeconsumeAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r TaobaoVmarketEticketBeforeconsumeAPIRequest) GetMobile() string { + return r._mobile +} diff --git a/model/eticket/TaobaoVmarketEticketBeforeconsumeAPIResponse.go b/model/eticket/TaobaoVmarketEticketBeforeconsumeAPIResponse.go new file mode 100644 index 0000000000..b637d49287 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketBeforeconsumeAPIResponse.go @@ -0,0 +1,43 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +电子凭证验码前置确认 API返回值 +taobao.vmarket.eticket.beforeconsume + +商家验码之前的调用接口,用来同步到最新的订单状态并判断是否可以进行验码操作 +*/ +type TaobaoVmarketEticketBeforeconsumeAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketBeforeconsumeAPIResponseModel +} + +// 电子凭证验码前置确认 成功返回结果 +type TaobaoVmarketEticketBeforeconsumeAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_beforeconsume_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 1:可以进行核销码操作 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 商品标题 + ItemTitle string `json:"item_title,omitempty" xml:"item_title,omitempty"` + // 当前订单剩余可核销数量 + LeftNum int64 `json:"left_num,omitempty" xml:"left_num,omitempty"` + // 扩展字段,暂时预留为0,没有任何意义 + LeftAmount string `json:"left_amount,omitempty" xml:"left_amount,omitempty"` + // 订单ID + OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"` + // 有效期开始时间 + ValidStart string `json:"valid_start,omitempty" xml:"valid_start,omitempty"` + // 有效期结束时间 + ValidEnds string `json:"valid_ends,omitempty" xml:"valid_ends,omitempty"` + // 扩展字段,暂时预留为0,没有任何意义 + ItemType int64 `json:"item_type,omitempty" xml:"item_type,omitempty"` + // 当前码剩余可核销数量 + CodeLeftNum int64 `json:"code_left_num,omitempty" xml:"code_left_num,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketBeforeconsumeResponse.go b/model/eticket/TaobaoVmarketEticketBeforeconsumeResponse.go deleted file mode 100644 index a2c5427d8a..0000000000 --- a/model/eticket/TaobaoVmarketEticketBeforeconsumeResponse.go +++ /dev/null @@ -1,43 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -电子凭证验码前置确认 API返回值 -taobao.vmarket.eticket.beforeconsume - -商家验码之前的调用接口,用来同步到最新的订单状态并判断是否可以进行验码操作 -*/ -type TaobaoVmarketEticketBeforeconsumeAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketBeforeconsumeResponse -} - -// 电子凭证验码前置确认 成功返回结果 -type TaobaoVmarketEticketBeforeconsumeResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_beforeconsume_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 1:可以进行核销码操作 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 商品标题 - ItemTitle string `json:"item_title,omitempty" xml:"item_title,omitempty"` - // 当前订单剩余可核销数量 - LeftNum int64 `json:"left_num,omitempty" xml:"left_num,omitempty"` - // 扩展字段,暂时预留为0,没有任何意义 - LeftAmount string `json:"left_amount,omitempty" xml:"left_amount,omitempty"` - // 订单ID - OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"` - // 有效期开始时间 - ValidStart string `json:"valid_start,omitempty" xml:"valid_start,omitempty"` - // 有效期结束时间 - ValidEnds string `json:"valid_ends,omitempty" xml:"valid_ends,omitempty"` - // 扩展字段,暂时预留为0,没有任何意义 - ItemType int64 `json:"item_type,omitempty" xml:"item_type,omitempty"` - // 当前码剩余可核销数量 - CodeLeftNum int64 `json:"code_left_num,omitempty" xml:"code_left_num,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketCardConsumecardAPIRequest.go b/model/eticket/TaobaoVmarketEticketCardConsumecardAPIRequest.go new file mode 100644 index 0000000000..45440bf2e8 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketCardConsumecardAPIRequest.go @@ -0,0 +1,178 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +电子凭证储值卡核销 API请求 +taobao.vmarket.eticket.card.consumecard + +线下商户核销时,ISV调用电子凭证的isv接口来对电子凭证储值卡核销对应金额 +*/ +type TaobaoVmarketEticketCardConsumecardAPIRequest struct { + model.Params + // 卡号 + _cardId string + // 卡内等级 + _cardLevel int64 + // 核销金额,精确到分,例如1.99元=199 + _consumeValue int64 + // 买家昵称 + _buyerNick string + // 核销原因 + _reason string + // 门店id + _storeId int64 + // 操作人id + _operatorId int64 + // 核销流水号,外部ISV全局唯一 + _consumeSerialNum string + // 核销code + _consumeCode string + // 安全token + _token string +} + +// 初始化TaobaoVmarketEticketCardConsumecardAPIRequest对象 +func NewTaobaoVmarketEticketCardConsumecardRequest() *TaobaoVmarketEticketCardConsumecardAPIRequest{ + return &TaobaoVmarketEticketCardConsumecardAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketCardConsumecardAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.card.consumecard" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketCardConsumecardAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CardId Setter +// 卡号 +func (r *TaobaoVmarketEticketCardConsumecardAPIRequest) SetCardId(_cardId string) error { + r._cardId = _cardId + r.Set("card_id", _cardId) + return nil +} + +// CardId Getter +func (r TaobaoVmarketEticketCardConsumecardAPIRequest) GetCardId() string { + return r._cardId +} +// CardLevel Setter +// 卡内等级 +func (r *TaobaoVmarketEticketCardConsumecardAPIRequest) SetCardLevel(_cardLevel int64) error { + r._cardLevel = _cardLevel + r.Set("card_level", _cardLevel) + return nil +} + +// CardLevel Getter +func (r TaobaoVmarketEticketCardConsumecardAPIRequest) GetCardLevel() int64 { + return r._cardLevel +} +// ConsumeValue Setter +// 核销金额,精确到分,例如1.99元=199 +func (r *TaobaoVmarketEticketCardConsumecardAPIRequest) SetConsumeValue(_consumeValue int64) error { + r._consumeValue = _consumeValue + r.Set("consume_value", _consumeValue) + return nil +} + +// ConsumeValue Getter +func (r TaobaoVmarketEticketCardConsumecardAPIRequest) GetConsumeValue() int64 { + return r._consumeValue +} +// BuyerNick Setter +// 买家昵称 +func (r *TaobaoVmarketEticketCardConsumecardAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoVmarketEticketCardConsumecardAPIRequest) GetBuyerNick() string { + return r._buyerNick +} +// Reason Setter +// 核销原因 +func (r *TaobaoVmarketEticketCardConsumecardAPIRequest) SetReason(_reason string) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r TaobaoVmarketEticketCardConsumecardAPIRequest) GetReason() string { + return r._reason +} +// StoreId Setter +// 门店id +func (r *TaobaoVmarketEticketCardConsumecardAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoVmarketEticketCardConsumecardAPIRequest) GetStoreId() int64 { + return r._storeId +} +// OperatorId Setter +// 操作人id +func (r *TaobaoVmarketEticketCardConsumecardAPIRequest) SetOperatorId(_operatorId int64) error { + r._operatorId = _operatorId + r.Set("operator_id", _operatorId) + return nil +} + +// OperatorId Getter +func (r TaobaoVmarketEticketCardConsumecardAPIRequest) GetOperatorId() int64 { + return r._operatorId +} +// ConsumeSerialNum Setter +// 核销流水号,外部ISV全局唯一 +func (r *TaobaoVmarketEticketCardConsumecardAPIRequest) SetConsumeSerialNum(_consumeSerialNum string) error { + r._consumeSerialNum = _consumeSerialNum + r.Set("consume_serial_num", _consumeSerialNum) + return nil +} + +// ConsumeSerialNum Getter +func (r TaobaoVmarketEticketCardConsumecardAPIRequest) GetConsumeSerialNum() string { + return r._consumeSerialNum +} +// ConsumeCode Setter +// 核销code +func (r *TaobaoVmarketEticketCardConsumecardAPIRequest) SetConsumeCode(_consumeCode string) error { + r._consumeCode = _consumeCode + r.Set("consume_code", _consumeCode) + return nil +} + +// ConsumeCode Getter +func (r TaobaoVmarketEticketCardConsumecardAPIRequest) GetConsumeCode() string { + return r._consumeCode +} +// Token Setter +// 安全token +func (r *TaobaoVmarketEticketCardConsumecardAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoVmarketEticketCardConsumecardAPIRequest) GetToken() string { + return r._token +} diff --git a/model/eticket/TaobaoVmarketEticketCardConsumecardAPIResponse.go b/model/eticket/TaobaoVmarketEticketCardConsumecardAPIResponse.go new file mode 100644 index 0000000000..c373628a93 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketCardConsumecardAPIResponse.go @@ -0,0 +1,27 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +电子凭证储值卡核销 API返回值 +taobao.vmarket.eticket.card.consumecard + +线下商户核销时,ISV调用电子凭证的isv接口来对电子凭证储值卡核销对应金额 +*/ +type TaobaoVmarketEticketCardConsumecardAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketCardConsumecardAPIResponseModel +} + +// 电子凭证储值卡核销 成功返回结果 +type TaobaoVmarketEticketCardConsumecardAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_card_consumecard_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 正确返回值 + Resultcode int64 `json:"resultcode,omitempty" xml:"resultcode,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketCardConsumecardResponse.go b/model/eticket/TaobaoVmarketEticketCardConsumecardResponse.go deleted file mode 100644 index 8771c96b99..0000000000 --- a/model/eticket/TaobaoVmarketEticketCardConsumecardResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -电子凭证储值卡核销 API返回值 -taobao.vmarket.eticket.card.consumecard - -线下商户核销时,ISV调用电子凭证的isv接口来对电子凭证储值卡核销对应金额 -*/ -type TaobaoVmarketEticketCardConsumecardAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketCardConsumecardResponse -} - -// 电子凭证储值卡核销 成功返回结果 -type TaobaoVmarketEticketCardConsumecardResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_card_consumecard_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 正确返回值 - Resultcode int64 `json:"resultcode,omitempty" xml:"resultcode,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketCodesGetAPIRequest.go b/model/eticket/TaobaoVmarketEticketCodesGetAPIRequest.go new file mode 100644 index 0000000000..4f6dea4e7b --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketCodesGetAPIRequest.go @@ -0,0 +1,66 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +电子凭证码列表查询 API请求 +taobao.vmarket.eticket.codes.get + +查询某个订单的所有码的列表 +*/ +type TaobaoVmarketEticketCodesGetAPIRequest struct { + model.Params + // 订单号 + _orderId int64 + // 码商ID + _codemerchantId int64 +} + +// 初始化TaobaoVmarketEticketCodesGetAPIRequest对象 +func NewTaobaoVmarketEticketCodesGetRequest() *TaobaoVmarketEticketCodesGetAPIRequest{ + return &TaobaoVmarketEticketCodesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketCodesGetAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.codes.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketCodesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单号 +func (r *TaobaoVmarketEticketCodesGetAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoVmarketEticketCodesGetAPIRequest) GetOrderId() int64 { + return r._orderId +} +// CodemerchantId Setter +// 码商ID +func (r *TaobaoVmarketEticketCodesGetAPIRequest) SetCodemerchantId(_codemerchantId int64) error { + r._codemerchantId = _codemerchantId + r.Set("codemerchant_id", _codemerchantId) + return nil +} + +// CodemerchantId Getter +func (r TaobaoVmarketEticketCodesGetAPIRequest) GetCodemerchantId() int64 { + return r._codemerchantId +} diff --git a/model/eticket/TaobaoVmarketEticketCodesGetAPIResponse.go b/model/eticket/TaobaoVmarketEticketCodesGetAPIResponse.go new file mode 100644 index 0000000000..5f0af08d90 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketCodesGetAPIResponse.go @@ -0,0 +1,29 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +电子凭证码列表查询 API返回值 +taobao.vmarket.eticket.codes.get + +查询某个订单的所有码的列表 +*/ +type TaobaoVmarketEticketCodesGetAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketCodesGetAPIResponseModel +} + +// 电子凭证码列表查询 成功返回结果 +type TaobaoVmarketEticketCodesGetAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_codes_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 记录总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 电子凭证码列表 + EticketCodes []EticketCode `json:"eticket_codes,omitempty" xml:"eticket_codes>eticket_code,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketCodesGetResponse.go b/model/eticket/TaobaoVmarketEticketCodesGetResponse.go deleted file mode 100644 index b381ce0eaa..0000000000 --- a/model/eticket/TaobaoVmarketEticketCodesGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -电子凭证码列表查询 API返回值 -taobao.vmarket.eticket.codes.get - -查询某个订单的所有码的列表 -*/ -type TaobaoVmarketEticketCodesGetAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketCodesGetResponse -} - -// 电子凭证码列表查询 成功返回结果 -type TaobaoVmarketEticketCodesGetResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_codes_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 记录总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 电子凭证码列表 - EticketCodes []EticketCode `json:"eticket_codes,omitempty" xml:"eticket_codes>eticket_code,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketConsumeAPIRequest.go b/model/eticket/TaobaoVmarketEticketConsumeAPIRequest.go new file mode 100644 index 0000000000..97ac741fe4 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketConsumeAPIRequest.go @@ -0,0 +1,178 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +电子票券消费通知 API请求 +taobao.vmarket.eticket.consume + +外部合作商家电子票券消费回调接口 +*/ +type TaobaoVmarketEticketConsumeAPIRequest struct { + model.Params + // 进行验码的电子凭证订单的订单ID + _orderId int64 + // 核销的码,只支持单个码,多个码核销需要多次调用 + _verifyCode string + // 核销份数 + _consumeNum int64 + // 安全验证token,需要和发码通知中的token一致 + _token string + // 码商ID,是码商的话必须传递,如果是信任卖家不需要传 + _codemerchantId int64 + // 机具ID(此参数信任卖家可不传递,码商必须传递) + _posid string + // 手机后四位(没有特殊说明请不要传该参数) + _mobile string + // 核销后需要重新生成的码,如果不需要重新生成码,不要传该参数 + _newCode string + // 自定义核销流水号,如果核销调用失败,可以用该核销流水号进行冲正操作,需要小于等于100个字符(a-zA-Z0-9_);每次核销都是唯一的流水号 + _serialNum string + // 不需要上传二维码图片或者核销后不需重新生成码码商请不要传,需要传入二维码的码商请先调用taobao.vmarket.eticket.qrcode.upload接口,将返回的img_filename文件名称作为参数(如果二维码不变的话,也可将将发码时传入二维码文件名作为参数传入),文件名与参数new_code必须相互对应。 + _qrImages string +} + +// 初始化TaobaoVmarketEticketConsumeAPIRequest对象 +func NewTaobaoVmarketEticketConsumeRequest() *TaobaoVmarketEticketConsumeAPIRequest{ + return &TaobaoVmarketEticketConsumeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketConsumeAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.consume" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketConsumeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 进行验码的电子凭证订单的订单ID +func (r *TaobaoVmarketEticketConsumeAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoVmarketEticketConsumeAPIRequest) GetOrderId() int64 { + return r._orderId +} +// VerifyCode Setter +// 核销的码,只支持单个码,多个码核销需要多次调用 +func (r *TaobaoVmarketEticketConsumeAPIRequest) SetVerifyCode(_verifyCode string) error { + r._verifyCode = _verifyCode + r.Set("verify_code", _verifyCode) + return nil +} + +// VerifyCode Getter +func (r TaobaoVmarketEticketConsumeAPIRequest) GetVerifyCode() string { + return r._verifyCode +} +// ConsumeNum Setter +// 核销份数 +func (r *TaobaoVmarketEticketConsumeAPIRequest) SetConsumeNum(_consumeNum int64) error { + r._consumeNum = _consumeNum + r.Set("consume_num", _consumeNum) + return nil +} + +// ConsumeNum Getter +func (r TaobaoVmarketEticketConsumeAPIRequest) GetConsumeNum() int64 { + return r._consumeNum +} +// Token Setter +// 安全验证token,需要和发码通知中的token一致 +func (r *TaobaoVmarketEticketConsumeAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoVmarketEticketConsumeAPIRequest) GetToken() string { + return r._token +} +// CodemerchantId Setter +// 码商ID,是码商的话必须传递,如果是信任卖家不需要传 +func (r *TaobaoVmarketEticketConsumeAPIRequest) SetCodemerchantId(_codemerchantId int64) error { + r._codemerchantId = _codemerchantId + r.Set("codemerchant_id", _codemerchantId) + return nil +} + +// CodemerchantId Getter +func (r TaobaoVmarketEticketConsumeAPIRequest) GetCodemerchantId() int64 { + return r._codemerchantId +} +// Posid Setter +// 机具ID(此参数信任卖家可不传递,码商必须传递) +func (r *TaobaoVmarketEticketConsumeAPIRequest) SetPosid(_posid string) error { + r._posid = _posid + r.Set("posid", _posid) + return nil +} + +// Posid Getter +func (r TaobaoVmarketEticketConsumeAPIRequest) GetPosid() string { + return r._posid +} +// Mobile Setter +// 手机后四位(没有特殊说明请不要传该参数) +func (r *TaobaoVmarketEticketConsumeAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r TaobaoVmarketEticketConsumeAPIRequest) GetMobile() string { + return r._mobile +} +// NewCode Setter +// 核销后需要重新生成的码,如果不需要重新生成码,不要传该参数 +func (r *TaobaoVmarketEticketConsumeAPIRequest) SetNewCode(_newCode string) error { + r._newCode = _newCode + r.Set("new_code", _newCode) + return nil +} + +// NewCode Getter +func (r TaobaoVmarketEticketConsumeAPIRequest) GetNewCode() string { + return r._newCode +} +// SerialNum Setter +// 自定义核销流水号,如果核销调用失败,可以用该核销流水号进行冲正操作,需要小于等于100个字符(a-zA-Z0-9_);每次核销都是唯一的流水号 +func (r *TaobaoVmarketEticketConsumeAPIRequest) SetSerialNum(_serialNum string) error { + r._serialNum = _serialNum + r.Set("serial_num", _serialNum) + return nil +} + +// SerialNum Getter +func (r TaobaoVmarketEticketConsumeAPIRequest) GetSerialNum() string { + return r._serialNum +} +// QrImages Setter +// 不需要上传二维码图片或者核销后不需重新生成码码商请不要传,需要传入二维码的码商请先调用taobao.vmarket.eticket.qrcode.upload接口,将返回的img_filename文件名称作为参数(如果二维码不变的话,也可将将发码时传入二维码文件名作为参数传入),文件名与参数new_code必须相互对应。 +func (r *TaobaoVmarketEticketConsumeAPIRequest) SetQrImages(_qrImages string) error { + r._qrImages = _qrImages + r.Set("qr_images", _qrImages) + return nil +} + +// QrImages Getter +func (r TaobaoVmarketEticketConsumeAPIRequest) GetQrImages() string { + return r._qrImages +} diff --git a/model/eticket/TaobaoVmarketEticketConsumeAPIResponse.go b/model/eticket/TaobaoVmarketEticketConsumeAPIResponse.go new file mode 100644 index 0000000000..16f6f91e80 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketConsumeAPIResponse.go @@ -0,0 +1,39 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +电子票券消费通知 API返回值 +taobao.vmarket.eticket.consume + +外部合作商家电子票券消费回调接口 +*/ +type TaobaoVmarketEticketConsumeAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketConsumeAPIResponseModel +} + +// 电子票券消费通知 成功返回结果 +type TaobaoVmarketEticketConsumeAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_consume_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 0:失败,1:成功 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 宝贝标题 + ItemTitle string `json:"item_title,omitempty" xml:"item_title,omitempty"` + // 整个订单剩余的可核销数量 + LeftNum int64 `json:"left_num,omitempty" xml:"left_num,omitempty"` + // 返回码消费后,需要发送的短信的模版 + SmsTpl string `json:"sms_tpl,omitempty" xml:"sms_tpl,omitempty"` + // 服务内容,用在凭证验证成功后pos机打印小票给消费者 + PrintTpl string `json:"print_tpl,omitempty" xml:"print_tpl,omitempty"` + // 核销流水号,可以通过该流水号来撤销对应的核销操作 + ConsumeSecialNum string `json:"consume_secial_num,omitempty" xml:"consume_secial_num,omitempty"` + // 该核销码在核销后剩余的可核销份数,如果传了new_code来重新生成码,那么这些可核销份数会累积到新的码上 + CodeLeftNum int64 `json:"code_left_num,omitempty" xml:"code_left_num,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketConsumeResponse.go b/model/eticket/TaobaoVmarketEticketConsumeResponse.go deleted file mode 100644 index ac095da8ca..0000000000 --- a/model/eticket/TaobaoVmarketEticketConsumeResponse.go +++ /dev/null @@ -1,39 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -电子票券消费通知 API返回值 -taobao.vmarket.eticket.consume - -外部合作商家电子票券消费回调接口 -*/ -type TaobaoVmarketEticketConsumeAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketConsumeResponse -} - -// 电子票券消费通知 成功返回结果 -type TaobaoVmarketEticketConsumeResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_consume_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 0:失败,1:成功 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 宝贝标题 - ItemTitle string `json:"item_title,omitempty" xml:"item_title,omitempty"` - // 整个订单剩余的可核销数量 - LeftNum int64 `json:"left_num,omitempty" xml:"left_num,omitempty"` - // 返回码消费后,需要发送的短信的模版 - SmsTpl string `json:"sms_tpl,omitempty" xml:"sms_tpl,omitempty"` - // 服务内容,用在凭证验证成功后pos机打印小票给消费者 - PrintTpl string `json:"print_tpl,omitempty" xml:"print_tpl,omitempty"` - // 核销流水号,可以通过该流水号来撤销对应的核销操作 - ConsumeSecialNum string `json:"consume_secial_num,omitempty" xml:"consume_secial_num,omitempty"` - // 该核销码在核销后剩余的可核销份数,如果传了new_code来重新生成码,那么这些可核销份数会累积到新的码上 - CodeLeftNum int64 `json:"code_left_num,omitempty" xml:"code_left_num,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketFailsendAPIRequest.go b/model/eticket/TaobaoVmarketEticketFailsendAPIRequest.go new file mode 100644 index 0000000000..b9e631dc18 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketFailsendAPIRequest.go @@ -0,0 +1,94 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +无法发码回调 API请求 +taobao.vmarket.eticket.failsend + +针对一次发码通知,码商无法完成发码,则可以通过此接口告知电子凭证 +*/ +type TaobaoVmarketEticketFailsendAPIRequest struct { + model.Params + // 订单号 + _orderId int64 + // 发码通知时的token + _token string + // 错误码 + _errorCode int64 + // 错误信息 + _errorMsg string +} + +// 初始化TaobaoVmarketEticketFailsendAPIRequest对象 +func NewTaobaoVmarketEticketFailsendRequest() *TaobaoVmarketEticketFailsendAPIRequest{ + return &TaobaoVmarketEticketFailsendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketFailsendAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.failsend" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketFailsendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单号 +func (r *TaobaoVmarketEticketFailsendAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoVmarketEticketFailsendAPIRequest) GetOrderId() int64 { + return r._orderId +} +// Token Setter +// 发码通知时的token +func (r *TaobaoVmarketEticketFailsendAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoVmarketEticketFailsendAPIRequest) GetToken() string { + return r._token +} +// ErrorCode Setter +// 错误码 +func (r *TaobaoVmarketEticketFailsendAPIRequest) SetErrorCode(_errorCode int64) error { + r._errorCode = _errorCode + r.Set("error_code", _errorCode) + return nil +} + +// ErrorCode Getter +func (r TaobaoVmarketEticketFailsendAPIRequest) GetErrorCode() int64 { + return r._errorCode +} +// ErrorMsg Setter +// 错误信息 +func (r *TaobaoVmarketEticketFailsendAPIRequest) SetErrorMsg(_errorMsg string) error { + r._errorMsg = _errorMsg + r.Set("error_msg", _errorMsg) + return nil +} + +// ErrorMsg Getter +func (r TaobaoVmarketEticketFailsendAPIRequest) GetErrorMsg() string { + return r._errorMsg +} diff --git a/model/eticket/TaobaoVmarketEticketFailsendAPIResponse.go b/model/eticket/TaobaoVmarketEticketFailsendAPIResponse.go new file mode 100644 index 0000000000..35a5408faa --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketFailsendAPIResponse.go @@ -0,0 +1,27 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +无法发码回调 API返回值 +taobao.vmarket.eticket.failsend + +针对一次发码通知,码商无法完成发码,则可以通过此接口告知电子凭证 +*/ +type TaobaoVmarketEticketFailsendAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketFailsendAPIResponseModel +} + +// 无法发码回调 成功返回结果 +type TaobaoVmarketEticketFailsendAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_failsend_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketFailsendResponse.go b/model/eticket/TaobaoVmarketEticketFailsendResponse.go deleted file mode 100644 index d525ca3cca..0000000000 --- a/model/eticket/TaobaoVmarketEticketFailsendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -无法发码回调 API返回值 -taobao.vmarket.eticket.failsend - -针对一次发码通知,码商无法完成发码,则可以通过此接口告知电子凭证 -*/ -type TaobaoVmarketEticketFailsendAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketFailsendResponse -} - -// 无法发码回调 成功返回结果 -type TaobaoVmarketEticketFailsendResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_failsend_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketFlowConsumeAPIRequest.go b/model/eticket/TaobaoVmarketEticketFlowConsumeAPIRequest.go new file mode 100644 index 0000000000..b0b2440bab --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketFlowConsumeAPIRequest.go @@ -0,0 +1,94 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +无交易类凭证核销 API请求 +taobao.vmarket.eticket.flow.consume + +无交易类凭证核销 +*/ +type TaobaoVmarketEticketFlowConsumeAPIRequest struct { + model.Params + // 业务单号 + _outerId string + // 凭证码 + _code string + // 淘宝业务提供的业务类型值,请联系相关业务运营取得 + _bizType int64 + // 核销操作人 + _operator string +} + +// 初始化TaobaoVmarketEticketFlowConsumeAPIRequest对象 +func NewTaobaoVmarketEticketFlowConsumeRequest() *TaobaoVmarketEticketFlowConsumeAPIRequest{ + return &TaobaoVmarketEticketFlowConsumeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketFlowConsumeAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.flow.consume" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketFlowConsumeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterId Setter +// 业务单号 +func (r *TaobaoVmarketEticketFlowConsumeAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoVmarketEticketFlowConsumeAPIRequest) GetOuterId() string { + return r._outerId +} +// Code Setter +// 凭证码 +func (r *TaobaoVmarketEticketFlowConsumeAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r TaobaoVmarketEticketFlowConsumeAPIRequest) GetCode() string { + return r._code +} +// BizType Setter +// 淘宝业务提供的业务类型值,请联系相关业务运营取得 +func (r *TaobaoVmarketEticketFlowConsumeAPIRequest) SetBizType(_bizType int64) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TaobaoVmarketEticketFlowConsumeAPIRequest) GetBizType() int64 { + return r._bizType +} +// Operator Setter +// 核销操作人 +func (r *TaobaoVmarketEticketFlowConsumeAPIRequest) SetOperator(_operator string) error { + r._operator = _operator + r.Set("operator", _operator) + return nil +} + +// Operator Getter +func (r TaobaoVmarketEticketFlowConsumeAPIRequest) GetOperator() string { + return r._operator +} diff --git a/model/eticket/TaobaoVmarketEticketFlowConsumeAPIResponse.go b/model/eticket/TaobaoVmarketEticketFlowConsumeAPIResponse.go new file mode 100644 index 0000000000..bdd8b74bca --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketFlowConsumeAPIResponse.go @@ -0,0 +1,29 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +无交易类凭证核销 API返回值 +taobao.vmarket.eticket.flow.consume + +无交易类凭证核销 +*/ +type TaobaoVmarketEticketFlowConsumeAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketFlowConsumeAPIResponseModel +} + +// 无交易类凭证核销 成功返回结果 +type TaobaoVmarketEticketFlowConsumeAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_flow_consume_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 执行成功 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 错误提示信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketFlowConsumeResponse.go b/model/eticket/TaobaoVmarketEticketFlowConsumeResponse.go deleted file mode 100644 index 2c21d1fdc4..0000000000 --- a/model/eticket/TaobaoVmarketEticketFlowConsumeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -无交易类凭证核销 API返回值 -taobao.vmarket.eticket.flow.consume - -无交易类凭证核销 -*/ -type TaobaoVmarketEticketFlowConsumeAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketFlowConsumeResponse -} - -// 无交易类凭证核销 成功返回结果 -type TaobaoVmarketEticketFlowConsumeResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_flow_consume_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 执行成功 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 错误提示信息 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketFlowResendAPIRequest.go b/model/eticket/TaobaoVmarketEticketFlowResendAPIRequest.go new file mode 100644 index 0000000000..6fa14df69e --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketFlowResendAPIRequest.go @@ -0,0 +1,66 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +业务重新触发发码短信 API请求 +taobao.vmarket.eticket.flow.resend + +业务重新触发发码短信 +*/ +type TaobaoVmarketEticketFlowResendAPIRequest struct { + model.Params + // 业务单号 + _outerId string + // 业务类型值,可联系淘宝业务运营取得具体值 + _bizType int64 +} + +// 初始化TaobaoVmarketEticketFlowResendAPIRequest对象 +func NewTaobaoVmarketEticketFlowResendRequest() *TaobaoVmarketEticketFlowResendAPIRequest{ + return &TaobaoVmarketEticketFlowResendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketFlowResendAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.flow.resend" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketFlowResendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterId Setter +// 业务单号 +func (r *TaobaoVmarketEticketFlowResendAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoVmarketEticketFlowResendAPIRequest) GetOuterId() string { + return r._outerId +} +// BizType Setter +// 业务类型值,可联系淘宝业务运营取得具体值 +func (r *TaobaoVmarketEticketFlowResendAPIRequest) SetBizType(_bizType int64) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TaobaoVmarketEticketFlowResendAPIRequest) GetBizType() int64 { + return r._bizType +} diff --git a/model/eticket/TaobaoVmarketEticketFlowResendAPIResponse.go b/model/eticket/TaobaoVmarketEticketFlowResendAPIResponse.go new file mode 100644 index 0000000000..2a98389077 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketFlowResendAPIResponse.go @@ -0,0 +1,29 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +业务重新触发发码短信 API返回值 +taobao.vmarket.eticket.flow.resend + +业务重新触发发码短信 +*/ +type TaobaoVmarketEticketFlowResendAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketFlowResendAPIResponseModel +} + +// 业务重新触发发码短信 成功返回结果 +type TaobaoVmarketEticketFlowResendAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_flow_resend_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 1成功;0失败 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 错误提示信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketFlowResendResponse.go b/model/eticket/TaobaoVmarketEticketFlowResendResponse.go deleted file mode 100644 index b6385270c2..0000000000 --- a/model/eticket/TaobaoVmarketEticketFlowResendResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -业务重新触发发码短信 API返回值 -taobao.vmarket.eticket.flow.resend - -业务重新触发发码短信 -*/ -type TaobaoVmarketEticketFlowResendAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketFlowResendResponse -} - -// 业务重新触发发码短信 成功返回结果 -type TaobaoVmarketEticketFlowResendResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_flow_resend_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 1成功;0失败 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 错误提示信息 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketManageNotifyAPIRequest.go b/model/eticket/TaobaoVmarketEticketManageNotifyAPIRequest.go new file mode 100644 index 0000000000..be02c30198 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketManageNotifyAPIRequest.go @@ -0,0 +1,80 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +主动发起通知接口 API请求 +taobao.vmarket.eticket.manage.notify + +外部合作商家主动发起通知接口 +*/ +type TaobaoVmarketEticketManageNotifyAPIRequest struct { + model.Params + // 订单编号 + _orderId int64 + // 码商ID,如果是码商,必须传,如果是信任卖家,不需要传 + _codemerchantId int64 + // 需要调用的通知方法,目前仅支持是send(发码)或resend(重新发码) + _notifyMethod string +} + +// 初始化TaobaoVmarketEticketManageNotifyAPIRequest对象 +func NewTaobaoVmarketEticketManageNotifyRequest() *TaobaoVmarketEticketManageNotifyAPIRequest{ + return &TaobaoVmarketEticketManageNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketManageNotifyAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.manage.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketManageNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单编号 +func (r *TaobaoVmarketEticketManageNotifyAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoVmarketEticketManageNotifyAPIRequest) GetOrderId() int64 { + return r._orderId +} +// CodemerchantId Setter +// 码商ID,如果是码商,必须传,如果是信任卖家,不需要传 +func (r *TaobaoVmarketEticketManageNotifyAPIRequest) SetCodemerchantId(_codemerchantId int64) error { + r._codemerchantId = _codemerchantId + r.Set("codemerchant_id", _codemerchantId) + return nil +} + +// CodemerchantId Getter +func (r TaobaoVmarketEticketManageNotifyAPIRequest) GetCodemerchantId() int64 { + return r._codemerchantId +} +// NotifyMethod Setter +// 需要调用的通知方法,目前仅支持是send(发码)或resend(重新发码) +func (r *TaobaoVmarketEticketManageNotifyAPIRequest) SetNotifyMethod(_notifyMethod string) error { + r._notifyMethod = _notifyMethod + r.Set("notify_method", _notifyMethod) + return nil +} + +// NotifyMethod Getter +func (r TaobaoVmarketEticketManageNotifyAPIRequest) GetNotifyMethod() string { + return r._notifyMethod +} diff --git a/model/eticket/TaobaoVmarketEticketManageNotifyAPIResponse.go b/model/eticket/TaobaoVmarketEticketManageNotifyAPIResponse.go new file mode 100644 index 0000000000..df0893b531 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketManageNotifyAPIResponse.go @@ -0,0 +1,27 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +主动发起通知接口 API返回值 +taobao.vmarket.eticket.manage.notify + +外部合作商家主动发起通知接口 +*/ +type TaobaoVmarketEticketManageNotifyAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketManageNotifyAPIResponseModel +} + +// 主动发起通知接口 成功返回结果 +type TaobaoVmarketEticketManageNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_manage_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 1:成功 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketManageNotifyResponse.go b/model/eticket/TaobaoVmarketEticketManageNotifyResponse.go deleted file mode 100644 index 15d2ccdb79..0000000000 --- a/model/eticket/TaobaoVmarketEticketManageNotifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -主动发起通知接口 API返回值 -taobao.vmarket.eticket.manage.notify - -外部合作商家主动发起通知接口 -*/ -type TaobaoVmarketEticketManageNotifyAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketManageNotifyResponse -} - -// 主动发起通知接口 成功返回结果 -type TaobaoVmarketEticketManageNotifyResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_manage_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 1:成功 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketOplogsGetAPIRequest.go b/model/eticket/TaobaoVmarketEticketOplogsGetAPIRequest.go new file mode 100644 index 0000000000..fa38cc09f4 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketOplogsGetAPIRequest.go @@ -0,0 +1,178 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +电子凭证操作日志查询 API请求 +taobao.vmarket.eticket.oplogs.get + +电子凭证核销日志查询 +*/ +type TaobaoVmarketEticketOplogsGetAPIRequest struct { + model.Params + // 0:全部 1:核销 2:冲正 + _type int64 + // 开始时间 + _startTime string + // 结束时间 + _endTime string + // 核销码 + _code string + // 手机号后四位 + _mobile string + // 当前页码 + _pageNo int64 + // 每页显示的记录数,最大为40,默认为40 + _pageSize int64 + // 排序方式 + _sort string + // 核销身份 + _posid string + // 码商ID + _codemerchantId int64 +} + +// 初始化TaobaoVmarketEticketOplogsGetAPIRequest对象 +func NewTaobaoVmarketEticketOplogsGetRequest() *TaobaoVmarketEticketOplogsGetAPIRequest{ + return &TaobaoVmarketEticketOplogsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketOplogsGetAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.oplogs.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketOplogsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// 0:全部 1:核销 2:冲正 +func (r *TaobaoVmarketEticketOplogsGetAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoVmarketEticketOplogsGetAPIRequest) GetType() int64 { + return r._type +} +// StartTime Setter +// 开始时间 +func (r *TaobaoVmarketEticketOplogsGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoVmarketEticketOplogsGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束时间 +func (r *TaobaoVmarketEticketOplogsGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoVmarketEticketOplogsGetAPIRequest) GetEndTime() string { + return r._endTime +} +// Code Setter +// 核销码 +func (r *TaobaoVmarketEticketOplogsGetAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r TaobaoVmarketEticketOplogsGetAPIRequest) GetCode() string { + return r._code +} +// Mobile Setter +// 手机号后四位 +func (r *TaobaoVmarketEticketOplogsGetAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r TaobaoVmarketEticketOplogsGetAPIRequest) GetMobile() string { + return r._mobile +} +// PageNo Setter +// 当前页码 +func (r *TaobaoVmarketEticketOplogsGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoVmarketEticketOplogsGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页显示的记录数,最大为40,默认为40 +func (r *TaobaoVmarketEticketOplogsGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoVmarketEticketOplogsGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Sort Setter +// 排序方式 +func (r *TaobaoVmarketEticketOplogsGetAPIRequest) SetSort(_sort string) error { + r._sort = _sort + r.Set("sort", _sort) + return nil +} + +// Sort Getter +func (r TaobaoVmarketEticketOplogsGetAPIRequest) GetSort() string { + return r._sort +} +// Posid Setter +// 核销身份 +func (r *TaobaoVmarketEticketOplogsGetAPIRequest) SetPosid(_posid string) error { + r._posid = _posid + r.Set("posid", _posid) + return nil +} + +// Posid Getter +func (r TaobaoVmarketEticketOplogsGetAPIRequest) GetPosid() string { + return r._posid +} +// CodemerchantId Setter +// 码商ID +func (r *TaobaoVmarketEticketOplogsGetAPIRequest) SetCodemerchantId(_codemerchantId int64) error { + r._codemerchantId = _codemerchantId + r.Set("codemerchant_id", _codemerchantId) + return nil +} + +// CodemerchantId Getter +func (r TaobaoVmarketEticketOplogsGetAPIRequest) GetCodemerchantId() int64 { + return r._codemerchantId +} diff --git a/model/eticket/TaobaoVmarketEticketOplogsGetAPIResponse.go b/model/eticket/TaobaoVmarketEticketOplogsGetAPIResponse.go new file mode 100644 index 0000000000..e771995265 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketOplogsGetAPIResponse.go @@ -0,0 +1,29 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +电子凭证操作日志查询 API返回值 +taobao.vmarket.eticket.oplogs.get + +电子凭证核销日志查询 +*/ +type TaobaoVmarketEticketOplogsGetAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketOplogsGetAPIResponseModel +} + +// 电子凭证操作日志查询 成功返回结果 +type TaobaoVmarketEticketOplogsGetAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_oplogs_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 符合条件的记录总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 操作日志列表 + EticketOpLogs []EticketOpLog `json:"eticket_op_logs,omitempty" xml:"eticket_op_logs>eticket_op_log,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketOplogsGetResponse.go b/model/eticket/TaobaoVmarketEticketOplogsGetResponse.go deleted file mode 100644 index c2f2a42b30..0000000000 --- a/model/eticket/TaobaoVmarketEticketOplogsGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -电子凭证操作日志查询 API返回值 -taobao.vmarket.eticket.oplogs.get - -电子凭证核销日志查询 -*/ -type TaobaoVmarketEticketOplogsGetAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketOplogsGetResponse -} - -// 电子凭证操作日志查询 成功返回结果 -type TaobaoVmarketEticketOplogsGetResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_oplogs_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 符合条件的记录总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 操作日志列表 - EticketOpLogs []EticketOpLog `json:"eticket_op_logs,omitempty" xml:"eticket_op_logs>eticket_op_log,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketPackageBaseGetAPIRequest.go b/model/eticket/TaobaoVmarketEticketPackageBaseGetAPIRequest.go new file mode 100644 index 0000000000..fcccbcf14a --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketPackageBaseGetAPIRequest.go @@ -0,0 +1,52 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取包基本信息 API请求 +taobao.vmarket.eticket.package.base.get + +获取包基本信息 +*/ +type TaobaoVmarketEticketPackageBaseGetAPIRequest struct { + model.Params + // 包id + _packageId int64 +} + +// 初始化TaobaoVmarketEticketPackageBaseGetAPIRequest对象 +func NewTaobaoVmarketEticketPackageBaseGetRequest() *TaobaoVmarketEticketPackageBaseGetAPIRequest{ + return &TaobaoVmarketEticketPackageBaseGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketPackageBaseGetAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.package.base.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketPackageBaseGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PackageId Setter +// 包id +func (r *TaobaoVmarketEticketPackageBaseGetAPIRequest) SetPackageId(_packageId int64) error { + r._packageId = _packageId + r.Set("package_id", _packageId) + return nil +} + +// PackageId Getter +func (r TaobaoVmarketEticketPackageBaseGetAPIRequest) GetPackageId() int64 { + return r._packageId +} diff --git a/model/eticket/TaobaoVmarketEticketPackageBaseGetAPIResponse.go b/model/eticket/TaobaoVmarketEticketPackageBaseGetAPIResponse.go new file mode 100644 index 0000000000..758bf3d345 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketPackageBaseGetAPIResponse.go @@ -0,0 +1,27 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取包基本信息 API返回值 +taobao.vmarket.eticket.package.base.get + +获取包基本信息 +*/ +type TaobaoVmarketEticketPackageBaseGetAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketPackageBaseGetAPIResponseModel +} + +// 获取包基本信息 成功返回结果 +type TaobaoVmarketEticketPackageBaseGetAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_package_base_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果 + Result *PackageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketPackageBaseGetResponse.go b/model/eticket/TaobaoVmarketEticketPackageBaseGetResponse.go deleted file mode 100644 index 7bade47803..0000000000 --- a/model/eticket/TaobaoVmarketEticketPackageBaseGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取包基本信息 API返回值 -taobao.vmarket.eticket.package.base.get - -获取包基本信息 -*/ -type TaobaoVmarketEticketPackageBaseGetAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketPackageBaseGetResponse -} - -// 获取包基本信息 成功返回结果 -type TaobaoVmarketEticketPackageBaseGetResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_package_base_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果 - Result *PackageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketPackageBaseListGetAPIRequest.go b/model/eticket/TaobaoVmarketEticketPackageBaseListGetAPIRequest.go new file mode 100644 index 0000000000..2ad5e32fef --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketPackageBaseListGetAPIRequest.go @@ -0,0 +1,38 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据卖家id,获取关联的所有包 API请求 +taobao.vmarket.eticket.package.base.list.get + +根据卖家id,获取关联的所有包 +*/ +type TaobaoVmarketEticketPackageBaseListGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoVmarketEticketPackageBaseListGetAPIRequest对象 +func NewTaobaoVmarketEticketPackageBaseListGetRequest() *TaobaoVmarketEticketPackageBaseListGetAPIRequest{ + return &TaobaoVmarketEticketPackageBaseListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketPackageBaseListGetAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.package.base.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketPackageBaseListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/eticket/TaobaoVmarketEticketPackageBaseListGetAPIResponse.go b/model/eticket/TaobaoVmarketEticketPackageBaseListGetAPIResponse.go new file mode 100644 index 0000000000..3cf4bff4fb --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketPackageBaseListGetAPIResponse.go @@ -0,0 +1,27 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据卖家id,获取关联的所有包 API返回值 +taobao.vmarket.eticket.package.base.list.get + +根据卖家id,获取关联的所有包 +*/ +type TaobaoVmarketEticketPackageBaseListGetAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketPackageBaseListGetAPIResponseModel +} + +// 根据卖家id,获取关联的所有包 成功返回结果 +type TaobaoVmarketEticketPackageBaseListGetAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_package_base_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果 + Result *PackageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketPackageBaseListGetResponse.go b/model/eticket/TaobaoVmarketEticketPackageBaseListGetResponse.go deleted file mode 100644 index 6c5f937e66..0000000000 --- a/model/eticket/TaobaoVmarketEticketPackageBaseListGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据卖家id,获取关联的所有包 API返回值 -taobao.vmarket.eticket.package.base.list.get - -根据卖家id,获取关联的所有包 -*/ -type TaobaoVmarketEticketPackageBaseListGetAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketPackageBaseListGetResponse -} - -// 根据卖家id,获取关联的所有包 成功返回结果 -type TaobaoVmarketEticketPackageBaseListGetResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_package_base_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果 - Result *PackageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketQrcodeUploadAPIRequest.go b/model/eticket/TaobaoVmarketEticketQrcodeUploadAPIRequest.go new file mode 100644 index 0000000000..80c061e3e2 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketQrcodeUploadAPIRequest.go @@ -0,0 +1,66 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +码商二维码图片上传 API请求 +taobao.vmarket.eticket.qrcode.upload + +电子凭证的码商可以通过这个接口,上传他们发送的二维码图片 +*/ +type TaobaoVmarketEticketQrcodeUploadAPIRequest struct { + model.Params + // 码商ID + _codeMerchantId int64 + // 上传的图片byte[] 小于300K,图片尺寸400*400以内 + _imgBytes *model.File +} + +// 初始化TaobaoVmarketEticketQrcodeUploadAPIRequest对象 +func NewTaobaoVmarketEticketQrcodeUploadRequest() *TaobaoVmarketEticketQrcodeUploadAPIRequest{ + return &TaobaoVmarketEticketQrcodeUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketQrcodeUploadAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.qrcode.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketQrcodeUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CodeMerchantId Setter +// 码商ID +func (r *TaobaoVmarketEticketQrcodeUploadAPIRequest) SetCodeMerchantId(_codeMerchantId int64) error { + r._codeMerchantId = _codeMerchantId + r.Set("code_merchant_id", _codeMerchantId) + return nil +} + +// CodeMerchantId Getter +func (r TaobaoVmarketEticketQrcodeUploadAPIRequest) GetCodeMerchantId() int64 { + return r._codeMerchantId +} +// ImgBytes Setter +// 上传的图片byte[] 小于300K,图片尺寸400*400以内 +func (r *TaobaoVmarketEticketQrcodeUploadAPIRequest) SetImgBytes(_imgBytes *model.File) error { + r._imgBytes = _imgBytes + r.Set("img_bytes", _imgBytes) + return nil +} + +// ImgBytes Getter +func (r TaobaoVmarketEticketQrcodeUploadAPIRequest) GetImgBytes() *model.File { + return r._imgBytes +} diff --git a/model/eticket/TaobaoVmarketEticketQrcodeUploadAPIResponse.go b/model/eticket/TaobaoVmarketEticketQrcodeUploadAPIResponse.go new file mode 100644 index 0000000000..ccefd15cb3 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketQrcodeUploadAPIResponse.go @@ -0,0 +1,29 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +码商二维码图片上传 API返回值 +taobao.vmarket.eticket.qrcode.upload + +电子凭证的码商可以通过这个接口,上传他们发送的二维码图片 +*/ +type TaobaoVmarketEticketQrcodeUploadAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketQrcodeUploadAPIResponseModel +} + +// 码商二维码图片上传 成功返回结果 +type TaobaoVmarketEticketQrcodeUploadAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_qrcode_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 1:成功 其它为失败 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 图片文件名称 + ImgFilename string `json:"img_filename,omitempty" xml:"img_filename,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketQrcodeUploadResponse.go b/model/eticket/TaobaoVmarketEticketQrcodeUploadResponse.go deleted file mode 100644 index 72a287da4c..0000000000 --- a/model/eticket/TaobaoVmarketEticketQrcodeUploadResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -码商二维码图片上传 API返回值 -taobao.vmarket.eticket.qrcode.upload - -电子凭证的码商可以通过这个接口,上传他们发送的二维码图片 -*/ -type TaobaoVmarketEticketQrcodeUploadAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketQrcodeUploadResponse -} - -// 码商二维码图片上传 成功返回结果 -type TaobaoVmarketEticketQrcodeUploadResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_qrcode_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 1:成功 其它为失败 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 图片文件名称 - ImgFilename string `json:"img_filename,omitempty" xml:"img_filename,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketResendAPIRequest.go b/model/eticket/TaobaoVmarketEticketResendAPIRequest.go new file mode 100644 index 0000000000..e6da9aab76 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketResendAPIRequest.go @@ -0,0 +1,108 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +外部合作商家重发电子凭证回调接口 API请求 +taobao.vmarket.eticket.resend + +外部合作商家重发电子凭证回调接口 +*/ +type TaobaoVmarketEticketResendAPIRequest struct { + model.Params + // 订单编号 + _orderId int64 + // 重新发送的验证码及可验证次数的列表,多个码之间用英文逗号分割,需要包含此订单所有可用的码(如果订单总的有10个码,可用的是5个,那么这里设置的是5个可用的码) + _verifyCodes string + // 安全验证token,回传淘宝发通知时发过来的token串 + _token string + // 码商ID,如果是码商,必须传,如果是信任卖家,不需要传 + _codemerchantId int64 + // 不需要上传二维码图片的码商请不要传,需要传入二维码的码商请先调用taobao.vmarket.eticket.qrcode.upload接口,将返回的img_filename文件名称作为参数(如果二维码不变的话,也可将将发码时传入二维码文件名作为参数传入),多个文件名用逗号隔开且与参数verify_codes按从左到有的顺序一一对应。 + _qrImages string +} + +// 初始化TaobaoVmarketEticketResendAPIRequest对象 +func NewTaobaoVmarketEticketResendRequest() *TaobaoVmarketEticketResendAPIRequest{ + return &TaobaoVmarketEticketResendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketResendAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.resend" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketResendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单编号 +func (r *TaobaoVmarketEticketResendAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoVmarketEticketResendAPIRequest) GetOrderId() int64 { + return r._orderId +} +// VerifyCodes Setter +// 重新发送的验证码及可验证次数的列表,多个码之间用英文逗号分割,需要包含此订单所有可用的码(如果订单总的有10个码,可用的是5个,那么这里设置的是5个可用的码) +func (r *TaobaoVmarketEticketResendAPIRequest) SetVerifyCodes(_verifyCodes string) error { + r._verifyCodes = _verifyCodes + r.Set("verify_codes", _verifyCodes) + return nil +} + +// VerifyCodes Getter +func (r TaobaoVmarketEticketResendAPIRequest) GetVerifyCodes() string { + return r._verifyCodes +} +// Token Setter +// 安全验证token,回传淘宝发通知时发过来的token串 +func (r *TaobaoVmarketEticketResendAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoVmarketEticketResendAPIRequest) GetToken() string { + return r._token +} +// CodemerchantId Setter +// 码商ID,如果是码商,必须传,如果是信任卖家,不需要传 +func (r *TaobaoVmarketEticketResendAPIRequest) SetCodemerchantId(_codemerchantId int64) error { + r._codemerchantId = _codemerchantId + r.Set("codemerchant_id", _codemerchantId) + return nil +} + +// CodemerchantId Getter +func (r TaobaoVmarketEticketResendAPIRequest) GetCodemerchantId() int64 { + return r._codemerchantId +} +// QrImages Setter +// 不需要上传二维码图片的码商请不要传,需要传入二维码的码商请先调用taobao.vmarket.eticket.qrcode.upload接口,将返回的img_filename文件名称作为参数(如果二维码不变的话,也可将将发码时传入二维码文件名作为参数传入),多个文件名用逗号隔开且与参数verify_codes按从左到有的顺序一一对应。 +func (r *TaobaoVmarketEticketResendAPIRequest) SetQrImages(_qrImages string) error { + r._qrImages = _qrImages + r.Set("qr_images", _qrImages) + return nil +} + +// QrImages Getter +func (r TaobaoVmarketEticketResendAPIRequest) GetQrImages() string { + return r._qrImages +} diff --git a/model/eticket/TaobaoVmarketEticketResendAPIResponse.go b/model/eticket/TaobaoVmarketEticketResendAPIResponse.go new file mode 100644 index 0000000000..d72f700b23 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketResendAPIResponse.go @@ -0,0 +1,27 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +外部合作商家重发电子凭证回调接口 API返回值 +taobao.vmarket.eticket.resend + +外部合作商家重发电子凭证回调接口 +*/ +type TaobaoVmarketEticketResendAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketResendAPIResponseModel +} + +// 外部合作商家重发电子凭证回调接口 成功返回结果 +type TaobaoVmarketEticketResendAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_resend_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 0:失败,1:成功 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketResendResponse.go b/model/eticket/TaobaoVmarketEticketResendResponse.go deleted file mode 100644 index 4858d4d6bd..0000000000 --- a/model/eticket/TaobaoVmarketEticketResendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -外部合作商家重发电子凭证回调接口 API返回值 -taobao.vmarket.eticket.resend - -外部合作商家重发电子凭证回调接口 -*/ -type TaobaoVmarketEticketResendAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketResendResponse -} - -// 外部合作商家重发电子凭证回调接口 成功返回结果 -type TaobaoVmarketEticketResendResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_resend_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 0:失败,1:成功 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketReverseAPIRequest.go b/model/eticket/TaobaoVmarketEticketReverseAPIRequest.go new file mode 100644 index 0000000000..6eead855bc --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketReverseAPIRequest.go @@ -0,0 +1,164 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +电子凭证冲正接口 API请求 +taobao.vmarket.eticket.reverse + +电子凭证平台冲正接口 +*/ +type TaobaoVmarketEticketReverseAPIRequest struct { + model.Params + // 进行验码的电子凭证订单的订单ID + _orderId int64 + // 冲正的码,只支持单个码 + _reverseCode string + // 冲正份数(必须是和被冲正的核销记录的份数一致) + _reverseNum int64 + // 需要冲正的核销记录对应核销流水号(对应的核销操作时候传递的自定义流水号) + _consumeSecialNum string + // 所有冲正后需要重新生成的码和对应的次数。码和次数之间用英文冒号分隔,多个码之间用英文逗号分隔。如果冲正后不需要重新生成码,留空 + _verifyCodes string + // 不需要上传二维码图片或者冲正后不需要变更码的请不要传,需要传入二维码的码商请先调用taobao.vmarket.eticket.qrcode.upload接口,将返回的img_filename文件名称作为参数,多个文件名用逗号隔开且与参数verify_codes按从左到有的顺序一一对应。 + _qrImages string + // 安全验证token,需要和该订单发码通知中的token一致 + _token string + // 码商ID,是码商的话必须传递,如果是信任卖家不要传 + _codemerchantId int64 + // 机具id,如果是码商必须传,如果是信任卖家不要传 + _posid string +} + +// 初始化TaobaoVmarketEticketReverseAPIRequest对象 +func NewTaobaoVmarketEticketReverseRequest() *TaobaoVmarketEticketReverseAPIRequest{ + return &TaobaoVmarketEticketReverseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketReverseAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.reverse" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketReverseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 进行验码的电子凭证订单的订单ID +func (r *TaobaoVmarketEticketReverseAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoVmarketEticketReverseAPIRequest) GetOrderId() int64 { + return r._orderId +} +// ReverseCode Setter +// 冲正的码,只支持单个码 +func (r *TaobaoVmarketEticketReverseAPIRequest) SetReverseCode(_reverseCode string) error { + r._reverseCode = _reverseCode + r.Set("reverse_code", _reverseCode) + return nil +} + +// ReverseCode Getter +func (r TaobaoVmarketEticketReverseAPIRequest) GetReverseCode() string { + return r._reverseCode +} +// ReverseNum Setter +// 冲正份数(必须是和被冲正的核销记录的份数一致) +func (r *TaobaoVmarketEticketReverseAPIRequest) SetReverseNum(_reverseNum int64) error { + r._reverseNum = _reverseNum + r.Set("reverse_num", _reverseNum) + return nil +} + +// ReverseNum Getter +func (r TaobaoVmarketEticketReverseAPIRequest) GetReverseNum() int64 { + return r._reverseNum +} +// ConsumeSecialNum Setter +// 需要冲正的核销记录对应核销流水号(对应的核销操作时候传递的自定义流水号) +func (r *TaobaoVmarketEticketReverseAPIRequest) SetConsumeSecialNum(_consumeSecialNum string) error { + r._consumeSecialNum = _consumeSecialNum + r.Set("consume_secial_num", _consumeSecialNum) + return nil +} + +// ConsumeSecialNum Getter +func (r TaobaoVmarketEticketReverseAPIRequest) GetConsumeSecialNum() string { + return r._consumeSecialNum +} +// VerifyCodes Setter +// 所有冲正后需要重新生成的码和对应的次数。码和次数之间用英文冒号分隔,多个码之间用英文逗号分隔。如果冲正后不需要重新生成码,留空 +func (r *TaobaoVmarketEticketReverseAPIRequest) SetVerifyCodes(_verifyCodes string) error { + r._verifyCodes = _verifyCodes + r.Set("verify_codes", _verifyCodes) + return nil +} + +// VerifyCodes Getter +func (r TaobaoVmarketEticketReverseAPIRequest) GetVerifyCodes() string { + return r._verifyCodes +} +// QrImages Setter +// 不需要上传二维码图片或者冲正后不需要变更码的请不要传,需要传入二维码的码商请先调用taobao.vmarket.eticket.qrcode.upload接口,将返回的img_filename文件名称作为参数,多个文件名用逗号隔开且与参数verify_codes按从左到有的顺序一一对应。 +func (r *TaobaoVmarketEticketReverseAPIRequest) SetQrImages(_qrImages string) error { + r._qrImages = _qrImages + r.Set("qr_images", _qrImages) + return nil +} + +// QrImages Getter +func (r TaobaoVmarketEticketReverseAPIRequest) GetQrImages() string { + return r._qrImages +} +// Token Setter +// 安全验证token,需要和该订单发码通知中的token一致 +func (r *TaobaoVmarketEticketReverseAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoVmarketEticketReverseAPIRequest) GetToken() string { + return r._token +} +// CodemerchantId Setter +// 码商ID,是码商的话必须传递,如果是信任卖家不要传 +func (r *TaobaoVmarketEticketReverseAPIRequest) SetCodemerchantId(_codemerchantId int64) error { + r._codemerchantId = _codemerchantId + r.Set("codemerchant_id", _codemerchantId) + return nil +} + +// CodemerchantId Getter +func (r TaobaoVmarketEticketReverseAPIRequest) GetCodemerchantId() int64 { + return r._codemerchantId +} +// Posid Setter +// 机具id,如果是码商必须传,如果是信任卖家不要传 +func (r *TaobaoVmarketEticketReverseAPIRequest) SetPosid(_posid string) error { + r._posid = _posid + r.Set("posid", _posid) + return nil +} + +// Posid Getter +func (r TaobaoVmarketEticketReverseAPIRequest) GetPosid() string { + return r._posid +} diff --git a/model/eticket/TaobaoVmarketEticketReverseAPIResponse.go b/model/eticket/TaobaoVmarketEticketReverseAPIResponse.go new file mode 100644 index 0000000000..efd6d21329 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketReverseAPIResponse.go @@ -0,0 +1,31 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +电子凭证冲正接口 API返回值 +taobao.vmarket.eticket.reverse + +电子凭证平台冲正接口 +*/ +type TaobaoVmarketEticketReverseAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketReverseAPIResponseModel +} + +// 电子凭证冲正接口 成功返回结果 +type TaobaoVmarketEticketReverseAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_reverse_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 0:失败,1:成功 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 宝贝标题 + ItemTitle string `json:"item_title,omitempty" xml:"item_title,omitempty"` + // 整个订单的剩余可核销数量 + LeftNum int64 `json:"left_num,omitempty" xml:"left_num,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketReverseResponse.go b/model/eticket/TaobaoVmarketEticketReverseResponse.go deleted file mode 100644 index a0340f8678..0000000000 --- a/model/eticket/TaobaoVmarketEticketReverseResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -电子凭证冲正接口 API返回值 -taobao.vmarket.eticket.reverse - -电子凭证平台冲正接口 -*/ -type TaobaoVmarketEticketReverseAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketReverseResponse -} - -// 电子凭证冲正接口 成功返回结果 -type TaobaoVmarketEticketReverseResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_reverse_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 0:失败,1:成功 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 宝贝标题 - ItemTitle string `json:"item_title,omitempty" xml:"item_title,omitempty"` - // 整个订单的剩余可核销数量 - LeftNum int64 `json:"left_num,omitempty" xml:"left_num,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketSendAPIRequest.go b/model/eticket/TaobaoVmarketEticketSendAPIRequest.go new file mode 100644 index 0000000000..a4e6eb428a --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketSendAPIRequest.go @@ -0,0 +1,108 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家电子凭证发码成功回调接口 API请求 +taobao.vmarket.eticket.send + +外部商家成功发码回调接口 +*/ +type TaobaoVmarketEticketSendAPIRequest struct { + model.Params + // 订单编号 + _orderId int64 + // 发送成功的验证码及可验证次数的列表,码和可验证次数用英文冒号分隔,多个码之间用英文逗号分隔,所有字符都为英文半角 + _verifyCodes string + // 安全验证token,需要和发码通知中的token一致 + _token string + // 码商ID,是码商的话必须传递,如果是信任卖家,不需要传 + _codemerchantId int64 + // 不需要上传二维码图片的码商请不要传,需要传入二维码的码商请先调用taobao.vmarket.eticket.qrcode.upload接口,将返回的img_filename文件名称作为参数,多个文件名用逗号隔开且与参数verify_codes按从左到有的顺序一一对应。 + _qrImages string +} + +// 初始化TaobaoVmarketEticketSendAPIRequest对象 +func NewTaobaoVmarketEticketSendRequest() *TaobaoVmarketEticketSendAPIRequest{ + return &TaobaoVmarketEticketSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketSendAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单编号 +func (r *TaobaoVmarketEticketSendAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoVmarketEticketSendAPIRequest) GetOrderId() int64 { + return r._orderId +} +// VerifyCodes Setter +// 发送成功的验证码及可验证次数的列表,码和可验证次数用英文冒号分隔,多个码之间用英文逗号分隔,所有字符都为英文半角 +func (r *TaobaoVmarketEticketSendAPIRequest) SetVerifyCodes(_verifyCodes string) error { + r._verifyCodes = _verifyCodes + r.Set("verify_codes", _verifyCodes) + return nil +} + +// VerifyCodes Getter +func (r TaobaoVmarketEticketSendAPIRequest) GetVerifyCodes() string { + return r._verifyCodes +} +// Token Setter +// 安全验证token,需要和发码通知中的token一致 +func (r *TaobaoVmarketEticketSendAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoVmarketEticketSendAPIRequest) GetToken() string { + return r._token +} +// CodemerchantId Setter +// 码商ID,是码商的话必须传递,如果是信任卖家,不需要传 +func (r *TaobaoVmarketEticketSendAPIRequest) SetCodemerchantId(_codemerchantId int64) error { + r._codemerchantId = _codemerchantId + r.Set("codemerchant_id", _codemerchantId) + return nil +} + +// CodemerchantId Getter +func (r TaobaoVmarketEticketSendAPIRequest) GetCodemerchantId() int64 { + return r._codemerchantId +} +// QrImages Setter +// 不需要上传二维码图片的码商请不要传,需要传入二维码的码商请先调用taobao.vmarket.eticket.qrcode.upload接口,将返回的img_filename文件名称作为参数,多个文件名用逗号隔开且与参数verify_codes按从左到有的顺序一一对应。 +func (r *TaobaoVmarketEticketSendAPIRequest) SetQrImages(_qrImages string) error { + r._qrImages = _qrImages + r.Set("qr_images", _qrImages) + return nil +} + +// QrImages Getter +func (r TaobaoVmarketEticketSendAPIRequest) GetQrImages() string { + return r._qrImages +} diff --git a/model/eticket/TaobaoVmarketEticketSendAPIResponse.go b/model/eticket/TaobaoVmarketEticketSendAPIResponse.go new file mode 100644 index 0000000000..a6d51eea32 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketSendAPIResponse.go @@ -0,0 +1,27 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家电子凭证发码成功回调接口 API返回值 +taobao.vmarket.eticket.send + +外部商家成功发码回调接口 +*/ +type TaobaoVmarketEticketSendAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketSendAPIResponseModel +} + +// 商家电子凭证发码成功回调接口 成功返回结果 +type TaobaoVmarketEticketSendAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 0:失败;1:成功 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketSendResponse.go b/model/eticket/TaobaoVmarketEticketSendResponse.go deleted file mode 100644 index 516a59a645..0000000000 --- a/model/eticket/TaobaoVmarketEticketSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家电子凭证发码成功回调接口 API返回值 -taobao.vmarket.eticket.send - -外部商家成功发码回调接口 -*/ -type TaobaoVmarketEticketSendAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketSendResponse -} - -// 商家电子凭证发码成功回调接口 成功返回结果 -type TaobaoVmarketEticketSendResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 0:失败;1:成功 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketStoreGetAPIRequest.go b/model/eticket/TaobaoVmarketEticketStoreGetAPIRequest.go new file mode 100644 index 0000000000..ff644de5c3 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketStoreGetAPIRequest.go @@ -0,0 +1,52 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取电子凭证预约门店信息 API请求 +taobao.vmarket.eticket.store.get + +用于给外部商家查询电子凭证预约门店信息 +*/ +type TaobaoVmarketEticketStoreGetAPIRequest struct { + model.Params + // 订单ID + _orderId int64 +} + +// 初始化TaobaoVmarketEticketStoreGetAPIRequest对象 +func NewTaobaoVmarketEticketStoreGetRequest() *TaobaoVmarketEticketStoreGetAPIRequest{ + return &TaobaoVmarketEticketStoreGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketStoreGetAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.store.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketStoreGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单ID +func (r *TaobaoVmarketEticketStoreGetAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoVmarketEticketStoreGetAPIRequest) GetOrderId() int64 { + return r._orderId +} diff --git a/model/eticket/TaobaoVmarketEticketStoreGetAPIResponse.go b/model/eticket/TaobaoVmarketEticketStoreGetAPIResponse.go new file mode 100644 index 0000000000..88d4724d35 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketStoreGetAPIResponse.go @@ -0,0 +1,41 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取电子凭证预约门店信息 API返回值 +taobao.vmarket.eticket.store.get + +用于给外部商家查询电子凭证预约门店信息 +*/ +type TaobaoVmarketEticketStoreGetAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketStoreGetAPIResponseModel +} + +// 获取电子凭证预约门店信息 成功返回结果 +type TaobaoVmarketEticketStoreGetAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_store_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商户id + StoreId int64 `json:"store_id,omitempty" xml:"store_id,omitempty"` + // 商户地址 + Address string `json:"address,omitempty" xml:"address,omitempty"` + // 商户名称 + Name string `json:"name,omitempty" xml:"name,omitempty"` + // 所在城市 + City string `json:"city,omitempty" xml:"city,omitempty"` + // 省份 + Province string `json:"province,omitempty" xml:"province,omitempty"` + // 区 + District string `json:"district,omitempty" xml:"district,omitempty"` + // 联系电话 + Contract string `json:"contract,omitempty" xml:"contract,omitempty"` + // 自有卖家导入门店的时候,可以把自己系统门店信息的主键或者唯一key传入,用于快速匹配 + Selfcode string `json:"selfcode,omitempty" xml:"selfcode,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketStoreGetResponse.go b/model/eticket/TaobaoVmarketEticketStoreGetResponse.go deleted file mode 100644 index 7bd3e70434..0000000000 --- a/model/eticket/TaobaoVmarketEticketStoreGetResponse.go +++ /dev/null @@ -1,41 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取电子凭证预约门店信息 API返回值 -taobao.vmarket.eticket.store.get - -用于给外部商家查询电子凭证预约门店信息 -*/ -type TaobaoVmarketEticketStoreGetAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketStoreGetResponse -} - -// 获取电子凭证预约门店信息 成功返回结果 -type TaobaoVmarketEticketStoreGetResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_store_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商户id - StoreId int64 `json:"store_id,omitempty" xml:"store_id,omitempty"` - // 商户地址 - Address string `json:"address,omitempty" xml:"address,omitempty"` - // 商户名称 - Name string `json:"name,omitempty" xml:"name,omitempty"` - // 所在城市 - City string `json:"city,omitempty" xml:"city,omitempty"` - // 省份 - Province string `json:"province,omitempty" xml:"province,omitempty"` - // 区 - District string `json:"district,omitempty" xml:"district,omitempty"` - // 联系电话 - Contract string `json:"contract,omitempty" xml:"contract,omitempty"` - // 自有卖家导入门店的时候,可以把自己系统门店信息的主键或者唯一key传入,用于快速匹配 - Selfcode string `json:"selfcode,omitempty" xml:"selfcode,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketTasksGetAPIRequest.go b/model/eticket/TaobaoVmarketEticketTasksGetAPIRequest.go new file mode 100644 index 0000000000..1a2a596fea --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketTasksGetAPIRequest.go @@ -0,0 +1,108 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +任务列表获取接口 API请求 +taobao.vmarket.eticket.tasks.get + +外部合作卖家获取任务列表的信息:如发码同通知失败或者回调失败的订单号 +*/ +type TaobaoVmarketEticketTasksGetAPIRequest struct { + model.Params + // 卖家家ID(信任卖家不必传,码商可选) + _sellerId int64 + // 返回结果类型:
1:返回通知失败的订单
2.返回通知成功回调失败的订单 + _type int64 + // 页码。取值范围:大于零的整数; 默认值:1 + _pageNo int64 + // 每页获取条数。默认值40,最小值1,最大值100。 + _pageSize int64 + // 码商ID,如果是码商,必须传,如果是信任卖家,不需要传 + _codemerchantId int64 +} + +// 初始化TaobaoVmarketEticketTasksGetAPIRequest对象 +func NewTaobaoVmarketEticketTasksGetRequest() *TaobaoVmarketEticketTasksGetAPIRequest{ + return &TaobaoVmarketEticketTasksGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketTasksGetAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.tasks.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketTasksGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SellerId Setter +// 卖家家ID(信任卖家不必传,码商可选) +func (r *TaobaoVmarketEticketTasksGetAPIRequest) SetSellerId(_sellerId int64) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r TaobaoVmarketEticketTasksGetAPIRequest) GetSellerId() int64 { + return r._sellerId +} +// Type Setter +// 返回结果类型:
1:返回通知失败的订单
2.返回通知成功回调失败的订单 +func (r *TaobaoVmarketEticketTasksGetAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoVmarketEticketTasksGetAPIRequest) GetType() int64 { + return r._type +} +// PageNo Setter +// 页码。取值范围:大于零的整数; 默认值:1 +func (r *TaobaoVmarketEticketTasksGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoVmarketEticketTasksGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页获取条数。默认值40,最小值1,最大值100。 +func (r *TaobaoVmarketEticketTasksGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoVmarketEticketTasksGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// CodemerchantId Setter +// 码商ID,如果是码商,必须传,如果是信任卖家,不需要传 +func (r *TaobaoVmarketEticketTasksGetAPIRequest) SetCodemerchantId(_codemerchantId int64) error { + r._codemerchantId = _codemerchantId + r.Set("codemerchant_id", _codemerchantId) + return nil +} + +// CodemerchantId Getter +func (r TaobaoVmarketEticketTasksGetAPIRequest) GetCodemerchantId() int64 { + return r._codemerchantId +} diff --git a/model/eticket/TaobaoVmarketEticketTasksGetAPIResponse.go b/model/eticket/TaobaoVmarketEticketTasksGetAPIResponse.go new file mode 100644 index 0000000000..b839a86163 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketTasksGetAPIResponse.go @@ -0,0 +1,29 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +任务列表获取接口 API返回值 +taobao.vmarket.eticket.tasks.get + +外部合作卖家获取任务列表的信息:如发码同通知失败或者回调失败的订单号 +*/ +type TaobaoVmarketEticketTasksGetAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketTasksGetAPIResponseModel +} + +// 任务列表获取接口 成功返回结果 +type TaobaoVmarketEticketTasksGetAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_tasks_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 任务列表查询结果的总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 任务列表查询结果信息 + EticketTasks []EticketTask `json:"eticket_tasks,omitempty" xml:"eticket_tasks>eticket_task,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketTasksGetResponse.go b/model/eticket/TaobaoVmarketEticketTasksGetResponse.go deleted file mode 100644 index 9bfe3ede7c..0000000000 --- a/model/eticket/TaobaoVmarketEticketTasksGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -任务列表获取接口 API返回值 -taobao.vmarket.eticket.tasks.get - -外部合作卖家获取任务列表的信息:如发码同通知失败或者回调失败的订单号 -*/ -type TaobaoVmarketEticketTasksGetAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketTasksGetResponse -} - -// 任务列表获取接口 成功返回结果 -type TaobaoVmarketEticketTasksGetResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_tasks_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 任务列表查询结果的总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 任务列表查询结果信息 - EticketTasks []EticketTask `json:"eticket_tasks,omitempty" xml:"eticket_tasks>eticket_task,omitempty"` -} diff --git a/model/eticket/TaobaoVmarketEticketTimeExpandAPIRequest.go b/model/eticket/TaobaoVmarketEticketTimeExpandAPIRequest.go new file mode 100644 index 0000000000..0c521dc4da --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketTimeExpandAPIRequest.go @@ -0,0 +1,66 @@ +package eticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单延时接口 API请求 +taobao.vmarket.eticket.time.expand + +提供码商操作订单延期接口 +*/ +type TaobaoVmarketEticketTimeExpandAPIRequest struct { + model.Params + // 订单ID + _orderId int64 + // 延长天数,延长时间=当前过期时间+延长天数 + _expandDays int64 +} + +// 初始化TaobaoVmarketEticketTimeExpandAPIRequest对象 +func NewTaobaoVmarketEticketTimeExpandRequest() *TaobaoVmarketEticketTimeExpandAPIRequest{ + return &TaobaoVmarketEticketTimeExpandAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVmarketEticketTimeExpandAPIRequest) GetApiMethodName() string { + return "taobao.vmarket.eticket.time.expand" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVmarketEticketTimeExpandAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单ID +func (r *TaobaoVmarketEticketTimeExpandAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoVmarketEticketTimeExpandAPIRequest) GetOrderId() int64 { + return r._orderId +} +// ExpandDays Setter +// 延长天数,延长时间=当前过期时间+延长天数 +func (r *TaobaoVmarketEticketTimeExpandAPIRequest) SetExpandDays(_expandDays int64) error { + r._expandDays = _expandDays + r.Set("expand_days", _expandDays) + return nil +} + +// ExpandDays Getter +func (r TaobaoVmarketEticketTimeExpandAPIRequest) GetExpandDays() int64 { + return r._expandDays +} diff --git a/model/eticket/TaobaoVmarketEticketTimeExpandAPIResponse.go b/model/eticket/TaobaoVmarketEticketTimeExpandAPIResponse.go new file mode 100644 index 0000000000..05bae7a854 --- /dev/null +++ b/model/eticket/TaobaoVmarketEticketTimeExpandAPIResponse.go @@ -0,0 +1,27 @@ +package eticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单延时接口 API返回值 +taobao.vmarket.eticket.time.expand + +提供码商操作订单延期接口 +*/ +type TaobaoVmarketEticketTimeExpandAPIResponse struct { + model.CommonResponse + TaobaoVmarketEticketTimeExpandAPIResponseModel +} + +// 订单延时接口 成功返回结果 +type TaobaoVmarketEticketTimeExpandAPIResponseModel struct { + XMLName xml.Name `xml:"vmarket_eticket_time_expand_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 0:失败;1:成功 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` +} diff --git a/model/eticket/TaobaoVmarketEticketTimeExpandResponse.go b/model/eticket/TaobaoVmarketEticketTimeExpandResponse.go deleted file mode 100644 index b976cb03b5..0000000000 --- a/model/eticket/TaobaoVmarketEticketTimeExpandResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package eticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单延时接口 API返回值 -taobao.vmarket.eticket.time.expand - -提供码商操作订单延期接口 -*/ -type TaobaoVmarketEticketTimeExpandAPIResponse struct { - model.CommonResponse - TaobaoVmarketEticketTimeExpandResponse -} - -// 订单延时接口 成功返回结果 -type TaobaoVmarketEticketTimeExpandResponse struct { - XMLName xml.Name `xml:"vmarket_eticket_time_expand_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 0:失败;1:成功 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationAgreementListAPIRequest.go b/model/examination/AlibabaAlihealthExaminationAgreementListAPIRequest.go new file mode 100644 index 0000000000..f1b57a5c86 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationAgreementListAPIRequest.go @@ -0,0 +1,52 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +isv协议获取 API请求 +alibaba.alihealth.examination.agreement.list + +isv协议获取 +*/ +type AlibabaAlihealthExaminationAgreementListAPIRequest struct { + model.Params + // isv传递过来的门店code + _storeCode string +} + +// 初始化AlibabaAlihealthExaminationAgreementListAPIRequest对象 +func NewAlibabaAlihealthExaminationAgreementListRequest() *AlibabaAlihealthExaminationAgreementListAPIRequest{ + return &AlibabaAlihealthExaminationAgreementListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationAgreementListAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.agreement.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationAgreementListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreCode Setter +// isv传递过来的门店code +func (r *AlibabaAlihealthExaminationAgreementListAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r AlibabaAlihealthExaminationAgreementListAPIRequest) GetStoreCode() string { + return r._storeCode +} diff --git a/model/examination/AlibabaAlihealthExaminationAgreementListAPIResponse.go b/model/examination/AlibabaAlihealthExaminationAgreementListAPIResponse.go new file mode 100644 index 0000000000..95e1f26688 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationAgreementListAPIResponse.go @@ -0,0 +1,31 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +isv协议获取 API返回值 +alibaba.alihealth.examination.agreement.list + +isv协议获取 +*/ +type AlibabaAlihealthExaminationAgreementListAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationAgreementListAPIResponseModel +} + +// isv协议获取 成功返回结果 +type AlibabaAlihealthExaminationAgreementListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_agreement_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果编码 + ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` + // 返回结果描述 + ResponseMessage string `json:"response_message,omitempty" xml:"response_message,omitempty"` + // 返回的json格式数据 + Agreement *Agreement `json:"agreement,omitempty" xml:"agreement,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationAgreementListResponse.go b/model/examination/AlibabaAlihealthExaminationAgreementListResponse.go deleted file mode 100644 index b5b2a21637..0000000000 --- a/model/examination/AlibabaAlihealthExaminationAgreementListResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -isv协议获取 API返回值 -alibaba.alihealth.examination.agreement.list - -isv协议获取 -*/ -type AlibabaAlihealthExaminationAgreementListAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationAgreementListResponse -} - -// isv协议获取 成功返回结果 -type AlibabaAlihealthExaminationAgreementListResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_agreement_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果编码 - ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` - // 返回结果描述 - ResponseMessage string `json:"response_message,omitempty" xml:"response_message,omitempty"` - // 返回的json格式数据 - Agreement *Agreement `json:"agreement,omitempty" xml:"agreement,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationGoodsOnofflineAPIRequest.go b/model/examination/AlibabaAlihealthExaminationGoodsOnofflineAPIRequest.go new file mode 100644 index 0000000000..aaef35e2d7 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationGoodsOnofflineAPIRequest.go @@ -0,0 +1,80 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上线/下线 体检产品 API请求 +alibaba.alihealth.examination.goods.onoffline + +第三方体检机构对接钉钉体检中的产品 上线/下线 +*/ +type AlibabaAlihealthExaminationGoodsOnofflineAPIRequest struct { + model.Params + // 商品组code,机构保证唯一 + _groupId string + // 操作类型: online=上线,offline=下线 + _type string + // 门店code列表 + _hospitalCodes string +} + +// 初始化AlibabaAlihealthExaminationGoodsOnofflineAPIRequest对象 +func NewAlibabaAlihealthExaminationGoodsOnofflineRequest() *AlibabaAlihealthExaminationGoodsOnofflineAPIRequest{ + return &AlibabaAlihealthExaminationGoodsOnofflineAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationGoodsOnofflineAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.goods.onoffline" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationGoodsOnofflineAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupId Setter +// 商品组code,机构保证唯一 +func (r *AlibabaAlihealthExaminationGoodsOnofflineAPIRequest) SetGroupId(_groupId string) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r AlibabaAlihealthExaminationGoodsOnofflineAPIRequest) GetGroupId() string { + return r._groupId +} +// Type Setter +// 操作类型: online=上线,offline=下线 +func (r *AlibabaAlihealthExaminationGoodsOnofflineAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaAlihealthExaminationGoodsOnofflineAPIRequest) GetType() string { + return r._type +} +// HospitalCodes Setter +// 门店code列表 +func (r *AlibabaAlihealthExaminationGoodsOnofflineAPIRequest) SetHospitalCodes(_hospitalCodes string) error { + r._hospitalCodes = _hospitalCodes + r.Set("hospital_codes", _hospitalCodes) + return nil +} + +// HospitalCodes Getter +func (r AlibabaAlihealthExaminationGoodsOnofflineAPIRequest) GetHospitalCodes() string { + return r._hospitalCodes +} diff --git a/model/examination/AlibabaAlihealthExaminationGoodsOnofflineAPIResponse.go b/model/examination/AlibabaAlihealthExaminationGoodsOnofflineAPIResponse.go new file mode 100644 index 0000000000..7cf9d1fa6d --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationGoodsOnofflineAPIResponse.go @@ -0,0 +1,27 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上线/下线 体检产品 API返回值 +alibaba.alihealth.examination.goods.onoffline + +第三方体检机构对接钉钉体检中的产品 上线/下线 +*/ +type AlibabaAlihealthExaminationGoodsOnofflineAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationGoodsOnofflineAPIResponseModel +} + +// 上线/下线 体检产品 成功返回结果 +type AlibabaAlihealthExaminationGoodsOnofflineAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_goods_onoffline_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationGoodsOnofflineResponse.go b/model/examination/AlibabaAlihealthExaminationGoodsOnofflineResponse.go deleted file mode 100644 index 3c970b2282..0000000000 --- a/model/examination/AlibabaAlihealthExaminationGoodsOnofflineResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上线/下线 体检产品 API返回值 -alibaba.alihealth.examination.goods.onoffline - -第三方体检机构对接钉钉体检中的产品 上线/下线 -*/ -type AlibabaAlihealthExaminationGoodsOnofflineAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationGoodsOnofflineResponse -} - -// 上线/下线 体检产品 成功返回结果 -type AlibabaAlihealthExaminationGoodsOnofflineResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_goods_onoffline_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationGoodsPublishAPIRequest.go b/model/examination/AlibabaAlihealthExaminationGoodsPublishAPIRequest.go new file mode 100644 index 0000000000..833dcbfb90 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationGoodsPublishAPIRequest.go @@ -0,0 +1,178 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构对接_商品发布/更新 API请求 +alibaba.alihealth.examination.goods.publish + +体检机构对接_商品发布/更新 +*/ +type AlibabaAlihealthExaminationGoodsPublishAPIRequest struct { + model.Params + // 商品id,机构保证全局唯一 + _groupId string + // 商品名称 + _groupName string + // 套餐列表 + _packageList []Package + // 操作类型: publish=发布,update=更新 + _type string + // 最多200个字,界面对应商品详情页描述 + _goodsDesc string + // 最多256个字,界面对应列表文字 + _targetGroup string + // 联调中正式上线前标签给B;联调后正式上线后标签给C + _label string + // 商品类目,1:体检 ,2:核酸,4 :健康证 + _categoryId string + // 0自营商品,1平台商品 + _mode string + // 类目ID,填入叶子类目ID,儿童体检: 20210204000004, 中青年体检: 20210204000005, 老年体检: 20210204000006, 证件体检(含入职): 20210204000007, 核酸检测(到店服务): 20210204000008, 专科服务(不包含核酸检测): 20210204000009, 上门检测: 202102040000010, 上门护理: 202102040000011, 上门体检 202102040000012 + _backendCategoryId int64 +} + +// 初始化AlibabaAlihealthExaminationGoodsPublishAPIRequest对象 +func NewAlibabaAlihealthExaminationGoodsPublishRequest() *AlibabaAlihealthExaminationGoodsPublishAPIRequest{ + return &AlibabaAlihealthExaminationGoodsPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationGoodsPublishAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.goods.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationGoodsPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupId Setter +// 商品id,机构保证全局唯一 +func (r *AlibabaAlihealthExaminationGoodsPublishAPIRequest) SetGroupId(_groupId string) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r AlibabaAlihealthExaminationGoodsPublishAPIRequest) GetGroupId() string { + return r._groupId +} +// GroupName Setter +// 商品名称 +func (r *AlibabaAlihealthExaminationGoodsPublishAPIRequest) SetGroupName(_groupName string) error { + r._groupName = _groupName + r.Set("group_name", _groupName) + return nil +} + +// GroupName Getter +func (r AlibabaAlihealthExaminationGoodsPublishAPIRequest) GetGroupName() string { + return r._groupName +} +// PackageList Setter +// 套餐列表 +func (r *AlibabaAlihealthExaminationGoodsPublishAPIRequest) SetPackageList(_packageList []Package) error { + r._packageList = _packageList + r.Set("package_list", _packageList) + return nil +} + +// PackageList Getter +func (r AlibabaAlihealthExaminationGoodsPublishAPIRequest) GetPackageList() []Package { + return r._packageList +} +// Type Setter +// 操作类型: publish=发布,update=更新 +func (r *AlibabaAlihealthExaminationGoodsPublishAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaAlihealthExaminationGoodsPublishAPIRequest) GetType() string { + return r._type +} +// GoodsDesc Setter +// 最多200个字,界面对应商品详情页描述 +func (r *AlibabaAlihealthExaminationGoodsPublishAPIRequest) SetGoodsDesc(_goodsDesc string) error { + r._goodsDesc = _goodsDesc + r.Set("goods_desc", _goodsDesc) + return nil +} + +// GoodsDesc Getter +func (r AlibabaAlihealthExaminationGoodsPublishAPIRequest) GetGoodsDesc() string { + return r._goodsDesc +} +// TargetGroup Setter +// 最多256个字,界面对应列表文字 +func (r *AlibabaAlihealthExaminationGoodsPublishAPIRequest) SetTargetGroup(_targetGroup string) error { + r._targetGroup = _targetGroup + r.Set("target_group", _targetGroup) + return nil +} + +// TargetGroup Getter +func (r AlibabaAlihealthExaminationGoodsPublishAPIRequest) GetTargetGroup() string { + return r._targetGroup +} +// Label Setter +// 联调中正式上线前标签给B;联调后正式上线后标签给C +func (r *AlibabaAlihealthExaminationGoodsPublishAPIRequest) SetLabel(_label string) error { + r._label = _label + r.Set("label", _label) + return nil +} + +// Label Getter +func (r AlibabaAlihealthExaminationGoodsPublishAPIRequest) GetLabel() string { + return r._label +} +// CategoryId Setter +// 商品类目,1:体检 ,2:核酸,4 :健康证 +func (r *AlibabaAlihealthExaminationGoodsPublishAPIRequest) SetCategoryId(_categoryId string) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r AlibabaAlihealthExaminationGoodsPublishAPIRequest) GetCategoryId() string { + return r._categoryId +} +// Mode Setter +// 0自营商品,1平台商品 +func (r *AlibabaAlihealthExaminationGoodsPublishAPIRequest) SetMode(_mode string) error { + r._mode = _mode + r.Set("mode", _mode) + return nil +} + +// Mode Getter +func (r AlibabaAlihealthExaminationGoodsPublishAPIRequest) GetMode() string { + return r._mode +} +// BackendCategoryId Setter +// 类目ID,填入叶子类目ID,儿童体检: 20210204000004, 中青年体检: 20210204000005, 老年体检: 20210204000006, 证件体检(含入职): 20210204000007, 核酸检测(到店服务): 20210204000008, 专科服务(不包含核酸检测): 20210204000009, 上门检测: 202102040000010, 上门护理: 202102040000011, 上门体检 202102040000012 +func (r *AlibabaAlihealthExaminationGoodsPublishAPIRequest) SetBackendCategoryId(_backendCategoryId int64) error { + r._backendCategoryId = _backendCategoryId + r.Set("backend_category_id", _backendCategoryId) + return nil +} + +// BackendCategoryId Getter +func (r AlibabaAlihealthExaminationGoodsPublishAPIRequest) GetBackendCategoryId() int64 { + return r._backendCategoryId +} diff --git a/model/examination/AlibabaAlihealthExaminationGoodsPublishAPIResponse.go b/model/examination/AlibabaAlihealthExaminationGoodsPublishAPIResponse.go new file mode 100644 index 0000000000..fb2dfda54a --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationGoodsPublishAPIResponse.go @@ -0,0 +1,27 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构对接_商品发布/更新 API返回值 +alibaba.alihealth.examination.goods.publish + +体检机构对接_商品发布/更新 +*/ +type AlibabaAlihealthExaminationGoodsPublishAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationGoodsPublishAPIResponseModel +} + +// 体检机构对接_商品发布/更新 成功返回结果 +type AlibabaAlihealthExaminationGoodsPublishAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_goods_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationGoodsPublishResponse.go b/model/examination/AlibabaAlihealthExaminationGoodsPublishResponse.go deleted file mode 100644 index 6956d2e66b..0000000000 --- a/model/examination/AlibabaAlihealthExaminationGoodsPublishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -体检机构对接_商品发布/更新 API返回值 -alibaba.alihealth.examination.goods.publish - -体检机构对接_商品发布/更新 -*/ -type AlibabaAlihealthExaminationGoodsPublishAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationGoodsPublishResponse -} - -// 体检机构对接_商品发布/更新 成功返回结果 -type AlibabaAlihealthExaminationGoodsPublishResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_goods_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationHospitalPublishAPIRequest.go b/model/examination/AlibabaAlihealthExaminationHospitalPublishAPIRequest.go new file mode 100644 index 0000000000..a000d4f297 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationHospitalPublishAPIRequest.go @@ -0,0 +1,430 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构对接_门店发布/更新 API请求 +alibaba.alihealth.examination.hospital.publish + +第三方B端有新的门店发布,或者老的门店更新的时候,使用这个接口 +*/ +type AlibabaAlihealthExaminationHospitalPublishAPIRequest struct { + model.Params + // 门店简介 + _detail string + // 门店联系电话 + _tel string + // 门店所属城市 + _cityName string + // 门店城市code(国标) + _cityCode string + // 操作类型: publish=发布,update=更新 + _type string + // 医院等级,三甲、 + _keyWord string + // “须知”使用下面note_category字段 + _examNotice string + // 门店位置经度高德 坐标系 + _pointX string + // 门店位置纬度高德 坐标系 + _pointY string + // 门店地址 + _address string + // 工作时间 + _workTime string + // 门店名称 + _hospitalName string + // 门店code,机构保证唯一 + _hospitalCode string + // 交通线路,通过\r\n 进行换行 + _routes string + // http://images.aliyun.com/image?id=123 + _logo string + // 是否支持在线报告。0:不支持;1:支持 + _onlineReport int64 + // 社会统一信用代码 + _socialCreditCode string + // 线下报告获取说明(必填) + _reportWay string + // 线上体检报告几天出具(如果有电子报告必填) + _reportWayOnline string + // 环境图片(json字符串数组),第一张是头图;(传图前先找运营同学要图片规范,别瞎传) + _envImgsUrl string + // 免费停车场,绿色VIP通道,免费早餐,3天出报告,1V1导检,接待引导,独家签约,专家会诊,当天出报告;多个逗号分隔 + _specialTagsCode string + // 通知信息 + _notify string + // 不同种类的预约须知; + _noteCategory string + // 经营模式 0自营模式、1平台模式 + _mode string + // 门店与医院协议 + _agreement string + // 营业执照 + _businessLicense string + // 医疗经营许可 + _medicalLicense string + // 类目:1=体检;2=核酸;3=上门;4=健康证;多个类目以逗号分割 + _category string +} + +// 初始化AlibabaAlihealthExaminationHospitalPublishAPIRequest对象 +func NewAlibabaAlihealthExaminationHospitalPublishRequest() *AlibabaAlihealthExaminationHospitalPublishAPIRequest{ + return &AlibabaAlihealthExaminationHospitalPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.hospital.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Detail Setter +// 门店简介 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetDetail(_detail string) error { + r._detail = _detail + r.Set("detail", _detail) + return nil +} + +// Detail Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetDetail() string { + return r._detail +} +// Tel Setter +// 门店联系电话 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetTel(_tel string) error { + r._tel = _tel + r.Set("tel", _tel) + return nil +} + +// Tel Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetTel() string { + return r._tel +} +// CityName Setter +// 门店所属城市 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetCityName(_cityName string) error { + r._cityName = _cityName + r.Set("city_name", _cityName) + return nil +} + +// CityName Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetCityName() string { + return r._cityName +} +// CityCode Setter +// 门店城市code(国标) +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetCityCode(_cityCode string) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetCityCode() string { + return r._cityCode +} +// Type Setter +// 操作类型: publish=发布,update=更新 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetType() string { + return r._type +} +// KeyWord Setter +// 医院等级,三甲、 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetKeyWord(_keyWord string) error { + r._keyWord = _keyWord + r.Set("key_word", _keyWord) + return nil +} + +// KeyWord Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetKeyWord() string { + return r._keyWord +} +// ExamNotice Setter +// “须知”使用下面note_category字段 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetExamNotice(_examNotice string) error { + r._examNotice = _examNotice + r.Set("exam_notice", _examNotice) + return nil +} + +// ExamNotice Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetExamNotice() string { + return r._examNotice +} +// PointX Setter +// 门店位置经度高德 坐标系 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetPointX(_pointX string) error { + r._pointX = _pointX + r.Set("point_x", _pointX) + return nil +} + +// PointX Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetPointX() string { + return r._pointX +} +// PointY Setter +// 门店位置纬度高德 坐标系 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetPointY(_pointY string) error { + r._pointY = _pointY + r.Set("point_y", _pointY) + return nil +} + +// PointY Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetPointY() string { + return r._pointY +} +// Address Setter +// 门店地址 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetAddress() string { + return r._address +} +// WorkTime Setter +// 工作时间 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetWorkTime(_workTime string) error { + r._workTime = _workTime + r.Set("work_time", _workTime) + return nil +} + +// WorkTime Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetWorkTime() string { + return r._workTime +} +// HospitalName Setter +// 门店名称 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetHospitalName(_hospitalName string) error { + r._hospitalName = _hospitalName + r.Set("hospital_name", _hospitalName) + return nil +} + +// HospitalName Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetHospitalName() string { + return r._hospitalName +} +// HospitalCode Setter +// 门店code,机构保证唯一 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetHospitalCode(_hospitalCode string) error { + r._hospitalCode = _hospitalCode + r.Set("hospital_code", _hospitalCode) + return nil +} + +// HospitalCode Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetHospitalCode() string { + return r._hospitalCode +} +// Routes Setter +// 交通线路,通过\r\n 进行换行 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetRoutes(_routes string) error { + r._routes = _routes + r.Set("routes", _routes) + return nil +} + +// Routes Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetRoutes() string { + return r._routes +} +// Logo Setter +// http://images.aliyun.com/image?id=123 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetLogo(_logo string) error { + r._logo = _logo + r.Set("logo", _logo) + return nil +} + +// Logo Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetLogo() string { + return r._logo +} +// OnlineReport Setter +// 是否支持在线报告。0:不支持;1:支持 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetOnlineReport(_onlineReport int64) error { + r._onlineReport = _onlineReport + r.Set("online_report", _onlineReport) + return nil +} + +// OnlineReport Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetOnlineReport() int64 { + return r._onlineReport +} +// SocialCreditCode Setter +// 社会统一信用代码 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetSocialCreditCode(_socialCreditCode string) error { + r._socialCreditCode = _socialCreditCode + r.Set("social_credit_code", _socialCreditCode) + return nil +} + +// SocialCreditCode Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetSocialCreditCode() string { + return r._socialCreditCode +} +// ReportWay Setter +// 线下报告获取说明(必填) +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetReportWay(_reportWay string) error { + r._reportWay = _reportWay + r.Set("report_way", _reportWay) + return nil +} + +// ReportWay Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetReportWay() string { + return r._reportWay +} +// ReportWayOnline Setter +// 线上体检报告几天出具(如果有电子报告必填) +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetReportWayOnline(_reportWayOnline string) error { + r._reportWayOnline = _reportWayOnline + r.Set("report_way_online", _reportWayOnline) + return nil +} + +// ReportWayOnline Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetReportWayOnline() string { + return r._reportWayOnline +} +// EnvImgsUrl Setter +// 环境图片(json字符串数组),第一张是头图;(传图前先找运营同学要图片规范,别瞎传) +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetEnvImgsUrl(_envImgsUrl string) error { + r._envImgsUrl = _envImgsUrl + r.Set("env_imgs_url", _envImgsUrl) + return nil +} + +// EnvImgsUrl Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetEnvImgsUrl() string { + return r._envImgsUrl +} +// SpecialTagsCode Setter +// 免费停车场,绿色VIP通道,免费早餐,3天出报告,1V1导检,接待引导,独家签约,专家会诊,当天出报告;多个逗号分隔 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetSpecialTagsCode(_specialTagsCode string) error { + r._specialTagsCode = _specialTagsCode + r.Set("special_tags_code", _specialTagsCode) + return nil +} + +// SpecialTagsCode Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetSpecialTagsCode() string { + return r._specialTagsCode +} +// Notify Setter +// 通知信息 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetNotify(_notify string) error { + r._notify = _notify + r.Set("notify", _notify) + return nil +} + +// Notify Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetNotify() string { + return r._notify +} +// NoteCategory Setter +// 不同种类的预约须知; +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetNoteCategory(_noteCategory string) error { + r._noteCategory = _noteCategory + r.Set("note_category", _noteCategory) + return nil +} + +// NoteCategory Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetNoteCategory() string { + return r._noteCategory +} +// Mode Setter +// 经营模式 0自营模式、1平台模式 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetMode(_mode string) error { + r._mode = _mode + r.Set("mode", _mode) + return nil +} + +// Mode Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetMode() string { + return r._mode +} +// Agreement Setter +// 门店与医院协议 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetAgreement(_agreement string) error { + r._agreement = _agreement + r.Set("agreement", _agreement) + return nil +} + +// Agreement Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetAgreement() string { + return r._agreement +} +// BusinessLicense Setter +// 营业执照 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetBusinessLicense(_businessLicense string) error { + r._businessLicense = _businessLicense + r.Set("business_license", _businessLicense) + return nil +} + +// BusinessLicense Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetBusinessLicense() string { + return r._businessLicense +} +// MedicalLicense Setter +// 医疗经营许可 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetMedicalLicense(_medicalLicense string) error { + r._medicalLicense = _medicalLicense + r.Set("medical_license", _medicalLicense) + return nil +} + +// MedicalLicense Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetMedicalLicense() string { + return r._medicalLicense +} +// Category Setter +// 类目:1=体检;2=核酸;3=上门;4=健康证;多个类目以逗号分割 +func (r *AlibabaAlihealthExaminationHospitalPublishAPIRequest) SetCategory(_category string) error { + r._category = _category + r.Set("category", _category) + return nil +} + +// Category Getter +func (r AlibabaAlihealthExaminationHospitalPublishAPIRequest) GetCategory() string { + return r._category +} diff --git a/model/examination/AlibabaAlihealthExaminationHospitalPublishAPIResponse.go b/model/examination/AlibabaAlihealthExaminationHospitalPublishAPIResponse.go new file mode 100644 index 0000000000..e40d0c86e4 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationHospitalPublishAPIResponse.go @@ -0,0 +1,27 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构对接_门店发布/更新 API返回值 +alibaba.alihealth.examination.hospital.publish + +第三方B端有新的门店发布,或者老的门店更新的时候,使用这个接口 +*/ +type AlibabaAlihealthExaminationHospitalPublishAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationHospitalPublishAPIResponseModel +} + +// 体检机构对接_门店发布/更新 成功返回结果 +type AlibabaAlihealthExaminationHospitalPublishAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_hospital_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationHospitalPublishResponse.go b/model/examination/AlibabaAlihealthExaminationHospitalPublishResponse.go deleted file mode 100644 index 7de87e8a79..0000000000 --- a/model/examination/AlibabaAlihealthExaminationHospitalPublishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -体检机构对接_门店发布/更新 API返回值 -alibaba.alihealth.examination.hospital.publish - -第三方B端有新的门店发布,或者老的门店更新的时候,使用这个接口 -*/ -type AlibabaAlihealthExaminationHospitalPublishAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationHospitalPublishResponse -} - -// 体检机构对接_门店发布/更新 成功返回结果 -type AlibabaAlihealthExaminationHospitalPublishResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_hospital_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationHospitalSpecialTagAPIRequest.go b/model/examination/AlibabaAlihealthExaminationHospitalSpecialTagAPIRequest.go new file mode 100644 index 0000000000..f87d33c518 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationHospitalSpecialTagAPIRequest.go @@ -0,0 +1,38 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构获取特色服务标签 API请求 +alibaba.alihealth.examination.hospital.special.tag + +体检机构获取特色服务标签列表 +*/ +type AlibabaAlihealthExaminationHospitalSpecialTagAPIRequest struct { + model.Params +} + +// 初始化AlibabaAlihealthExaminationHospitalSpecialTagAPIRequest对象 +func NewAlibabaAlihealthExaminationHospitalSpecialTagRequest() *AlibabaAlihealthExaminationHospitalSpecialTagAPIRequest{ + return &AlibabaAlihealthExaminationHospitalSpecialTagAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationHospitalSpecialTagAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.hospital.special.tag" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationHospitalSpecialTagAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/examination/AlibabaAlihealthExaminationHospitalSpecialTagAPIResponse.go b/model/examination/AlibabaAlihealthExaminationHospitalSpecialTagAPIResponse.go new file mode 100644 index 0000000000..53ce247929 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationHospitalSpecialTagAPIResponse.go @@ -0,0 +1,27 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构获取特色服务标签 API返回值 +alibaba.alihealth.examination.hospital.special.tag + +体检机构获取特色服务标签列表 +*/ +type AlibabaAlihealthExaminationHospitalSpecialTagAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationHospitalSpecialTagAPIResponseModel +} + +// 体检机构获取特色服务标签 成功返回结果 +type AlibabaAlihealthExaminationHospitalSpecialTagAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_hospital_special_tag_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationHospitalSpecialTagResponse.go b/model/examination/AlibabaAlihealthExaminationHospitalSpecialTagResponse.go deleted file mode 100644 index 5b0c97aff6..0000000000 --- a/model/examination/AlibabaAlihealthExaminationHospitalSpecialTagResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -体检机构获取特色服务标签 API返回值 -alibaba.alihealth.examination.hospital.special.tag - -体检机构获取特色服务标签列表 -*/ -type AlibabaAlihealthExaminationHospitalSpecialTagAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationHospitalSpecialTagResponse -} - -// 体检机构获取特色服务标签 成功返回结果 -type AlibabaAlihealthExaminationHospitalSpecialTagResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_hospital_special_tag_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationInvoiceInfoNotifyAPIRequest.go b/model/examination/AlibabaAlihealthExaminationInvoiceInfoNotifyAPIRequest.go new file mode 100644 index 0000000000..ffb2bb32b3 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationInvoiceInfoNotifyAPIRequest.go @@ -0,0 +1,80 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构同步发票信息给阿里健康 API请求 +alibaba.alihealth.examination.invoice.info.notify + +体检机构向阿里健康同步发票信息 +*/ +type AlibabaAlihealthExaminationInvoiceInfoNotifyAPIRequest struct { + model.Params + // 开票状态;(have_submit已提交、invoice_done已开票) + _invoiceStatus string + // 发票访问地址;(invoice_status在已开票状态下必填) + _invoiceUrl string + // 阿里健康预约凭证 + _reserveNumber string +} + +// 初始化AlibabaAlihealthExaminationInvoiceInfoNotifyAPIRequest对象 +func NewAlibabaAlihealthExaminationInvoiceInfoNotifyRequest() *AlibabaAlihealthExaminationInvoiceInfoNotifyAPIRequest{ + return &AlibabaAlihealthExaminationInvoiceInfoNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationInvoiceInfoNotifyAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.invoice.info.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationInvoiceInfoNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InvoiceStatus Setter +// 开票状态;(have_submit已提交、invoice_done已开票) +func (r *AlibabaAlihealthExaminationInvoiceInfoNotifyAPIRequest) SetInvoiceStatus(_invoiceStatus string) error { + r._invoiceStatus = _invoiceStatus + r.Set("invoice_status", _invoiceStatus) + return nil +} + +// InvoiceStatus Getter +func (r AlibabaAlihealthExaminationInvoiceInfoNotifyAPIRequest) GetInvoiceStatus() string { + return r._invoiceStatus +} +// InvoiceUrl Setter +// 发票访问地址;(invoice_status在已开票状态下必填) +func (r *AlibabaAlihealthExaminationInvoiceInfoNotifyAPIRequest) SetInvoiceUrl(_invoiceUrl string) error { + r._invoiceUrl = _invoiceUrl + r.Set("invoice_url", _invoiceUrl) + return nil +} + +// InvoiceUrl Getter +func (r AlibabaAlihealthExaminationInvoiceInfoNotifyAPIRequest) GetInvoiceUrl() string { + return r._invoiceUrl +} +// ReserveNumber Setter +// 阿里健康预约凭证 +func (r *AlibabaAlihealthExaminationInvoiceInfoNotifyAPIRequest) SetReserveNumber(_reserveNumber string) error { + r._reserveNumber = _reserveNumber + r.Set("reserve_number", _reserveNumber) + return nil +} + +// ReserveNumber Getter +func (r AlibabaAlihealthExaminationInvoiceInfoNotifyAPIRequest) GetReserveNumber() string { + return r._reserveNumber +} diff --git a/model/examination/AlibabaAlihealthExaminationInvoiceInfoNotifyAPIResponse.go b/model/examination/AlibabaAlihealthExaminationInvoiceInfoNotifyAPIResponse.go new file mode 100644 index 0000000000..c5b99b237b --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationInvoiceInfoNotifyAPIResponse.go @@ -0,0 +1,27 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构同步发票信息给阿里健康 API返回值 +alibaba.alihealth.examination.invoice.info.notify + +体检机构向阿里健康同步发票信息 +*/ +type AlibabaAlihealthExaminationInvoiceInfoNotifyAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationInvoiceInfoNotifyAPIResponseModel +} + +// 体检机构同步发票信息给阿里健康 成功返回结果 +type AlibabaAlihealthExaminationInvoiceInfoNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_invoice_info_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationInvoiceInfoNotifyResponse.go b/model/examination/AlibabaAlihealthExaminationInvoiceInfoNotifyResponse.go deleted file mode 100644 index 6b1aded2e5..0000000000 --- a/model/examination/AlibabaAlihealthExaminationInvoiceInfoNotifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -体检机构同步发票信息给阿里健康 API返回值 -alibaba.alihealth.examination.invoice.info.notify - -体检机构向阿里健康同步发票信息 -*/ -type AlibabaAlihealthExaminationInvoiceInfoNotifyAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationInvoiceInfoNotifyResponse -} - -// 体检机构同步发票信息给阿里健康 成功返回结果 -type AlibabaAlihealthExaminationInvoiceInfoNotifyResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_invoice_info_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationItemsPublishAPIRequest.go b/model/examination/AlibabaAlihealthExaminationItemsPublishAPIRequest.go new file mode 100644 index 0000000000..116ce574b8 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationItemsPublishAPIRequest.go @@ -0,0 +1,136 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单项/加项包信息同步 API请求 +alibaba.alihealth.examination.items.publish + +体检机构对接_单项/加项包信息发布/更新 +*/ +type AlibabaAlihealthExaminationItemsPublishAPIRequest struct { + model.Params + // 商品id,机构保证全局唯一 + _groupId string + // 套餐列表 + _isvPackages []IsvPackage + // 单项之间关系 + _isvItemRelationDTOS []IsvItemRelationDto + // 体检机构标识 + _hospitalCodes []string + // 加项包列表 + _isvItemPackDTOS []IsvItemPackDto + // 单项信息列表 + _isvItemDTOS []IsvItemDto + // 加项包关系列表 + _isvPackRelationDTOS []IsvPackRelationDto +} + +// 初始化AlibabaAlihealthExaminationItemsPublishAPIRequest对象 +func NewAlibabaAlihealthExaminationItemsPublishRequest() *AlibabaAlihealthExaminationItemsPublishAPIRequest{ + return &AlibabaAlihealthExaminationItemsPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationItemsPublishAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.items.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationItemsPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupId Setter +// 商品id,机构保证全局唯一 +func (r *AlibabaAlihealthExaminationItemsPublishAPIRequest) SetGroupId(_groupId string) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r AlibabaAlihealthExaminationItemsPublishAPIRequest) GetGroupId() string { + return r._groupId +} +// IsvPackages Setter +// 套餐列表 +func (r *AlibabaAlihealthExaminationItemsPublishAPIRequest) SetIsvPackages(_isvPackages []IsvPackage) error { + r._isvPackages = _isvPackages + r.Set("isv_packages", _isvPackages) + return nil +} + +// IsvPackages Getter +func (r AlibabaAlihealthExaminationItemsPublishAPIRequest) GetIsvPackages() []IsvPackage { + return r._isvPackages +} +// IsvItemRelationDTOS Setter +// 单项之间关系 +func (r *AlibabaAlihealthExaminationItemsPublishAPIRequest) SetIsvItemRelationDTOS(_isvItemRelationDTOS []IsvItemRelationDto) error { + r._isvItemRelationDTOS = _isvItemRelationDTOS + r.Set("isv_item_relation_d_t_o_s", _isvItemRelationDTOS) + return nil +} + +// IsvItemRelationDTOS Getter +func (r AlibabaAlihealthExaminationItemsPublishAPIRequest) GetIsvItemRelationDTOS() []IsvItemRelationDto { + return r._isvItemRelationDTOS +} +// HospitalCodes Setter +// 体检机构标识 +func (r *AlibabaAlihealthExaminationItemsPublishAPIRequest) SetHospitalCodes(_hospitalCodes []string) error { + r._hospitalCodes = _hospitalCodes + r.Set("hospital_codes", _hospitalCodes) + return nil +} + +// HospitalCodes Getter +func (r AlibabaAlihealthExaminationItemsPublishAPIRequest) GetHospitalCodes() []string { + return r._hospitalCodes +} +// IsvItemPackDTOS Setter +// 加项包列表 +func (r *AlibabaAlihealthExaminationItemsPublishAPIRequest) SetIsvItemPackDTOS(_isvItemPackDTOS []IsvItemPackDto) error { + r._isvItemPackDTOS = _isvItemPackDTOS + r.Set("isv_item_pack_d_t_o_s", _isvItemPackDTOS) + return nil +} + +// IsvItemPackDTOS Getter +func (r AlibabaAlihealthExaminationItemsPublishAPIRequest) GetIsvItemPackDTOS() []IsvItemPackDto { + return r._isvItemPackDTOS +} +// IsvItemDTOS Setter +// 单项信息列表 +func (r *AlibabaAlihealthExaminationItemsPublishAPIRequest) SetIsvItemDTOS(_isvItemDTOS []IsvItemDto) error { + r._isvItemDTOS = _isvItemDTOS + r.Set("isv_item_d_t_o_s", _isvItemDTOS) + return nil +} + +// IsvItemDTOS Getter +func (r AlibabaAlihealthExaminationItemsPublishAPIRequest) GetIsvItemDTOS() []IsvItemDto { + return r._isvItemDTOS +} +// IsvPackRelationDTOS Setter +// 加项包关系列表 +func (r *AlibabaAlihealthExaminationItemsPublishAPIRequest) SetIsvPackRelationDTOS(_isvPackRelationDTOS []IsvPackRelationDto) error { + r._isvPackRelationDTOS = _isvPackRelationDTOS + r.Set("isv_pack_relation_d_t_o_s", _isvPackRelationDTOS) + return nil +} + +// IsvPackRelationDTOS Getter +func (r AlibabaAlihealthExaminationItemsPublishAPIRequest) GetIsvPackRelationDTOS() []IsvPackRelationDto { + return r._isvPackRelationDTOS +} diff --git a/model/examination/AlibabaAlihealthExaminationItemsPublishAPIResponse.go b/model/examination/AlibabaAlihealthExaminationItemsPublishAPIResponse.go new file mode 100644 index 0000000000..d6b8116169 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationItemsPublishAPIResponse.go @@ -0,0 +1,27 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单项/加项包信息同步 API返回值 +alibaba.alihealth.examination.items.publish + +体检机构对接_单项/加项包信息发布/更新 +*/ +type AlibabaAlihealthExaminationItemsPublishAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationItemsPublishAPIResponseModel +} + +// 单项/加项包信息同步 成功返回结果 +type AlibabaAlihealthExaminationItemsPublishAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_items_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationItemsPublishResponse.go b/model/examination/AlibabaAlihealthExaminationItemsPublishResponse.go deleted file mode 100644 index ec925218ef..0000000000 --- a/model/examination/AlibabaAlihealthExaminationItemsPublishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单项/加项包信息同步 API返回值 -alibaba.alihealth.examination.items.publish - -体检机构对接_单项/加项包信息发布/更新 -*/ -type AlibabaAlihealthExaminationItemsPublishAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationItemsPublishResponse -} - -// 单项/加项包信息同步 成功返回结果 -type AlibabaAlihealthExaminationItemsPublishResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_items_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIRequest.go b/model/examination/AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIRequest.go new file mode 100644 index 0000000000..62dc63f4b9 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIRequest.go @@ -0,0 +1,80 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV获取报告文件查看验证码 API请求 +alibaba.alihealth.examination.report.diagnose.file.code.get + +体检报告人工解读_ISV获取报告文件验证码进行查看报告文件 +*/ +type AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIRequest struct { + model.Params + // 报告id + _reportId int64 + // 订单id + _orderId string + // 医生id + _doctorId string +} + +// 初始化AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIRequest对象 +func NewAlibabaAlihealthExaminationReportDiagnoseFileCodeGetRequest() *AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIRequest{ + return &AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.report.diagnose.file.code.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReportId Setter +// 报告id +func (r *AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIRequest) SetReportId(_reportId int64) error { + r._reportId = _reportId + r.Set("report_id", _reportId) + return nil +} + +// ReportId Getter +func (r AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIRequest) GetReportId() int64 { + return r._reportId +} +// OrderId Setter +// 订单id +func (r *AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIRequest) GetOrderId() string { + return r._orderId +} +// DoctorId Setter +// 医生id +func (r *AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIRequest) SetDoctorId(_doctorId string) error { + r._doctorId = _doctorId + r.Set("doctor_id", _doctorId) + return nil +} + +// DoctorId Getter +func (r AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIRequest) GetDoctorId() string { + return r._doctorId +} diff --git a/model/examination/AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIResponse.go b/model/examination/AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIResponse.go new file mode 100644 index 0000000000..2f86a19c68 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIResponse.go @@ -0,0 +1,27 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV获取报告文件查看验证码 API返回值 +alibaba.alihealth.examination.report.diagnose.file.code.get + +体检报告人工解读_ISV获取报告文件验证码进行查看报告文件 +*/ +type AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIResponseModel +} + +// ISV获取报告文件查看验证码 成功返回结果 +type AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_report_diagnose_file_code_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationReportDiagnoseFileCodeGetResponse.go b/model/examination/AlibabaAlihealthExaminationReportDiagnoseFileCodeGetResponse.go deleted file mode 100644 index 65c6f73ce6..0000000000 --- a/model/examination/AlibabaAlihealthExaminationReportDiagnoseFileCodeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV获取报告文件查看验证码 API返回值 -alibaba.alihealth.examination.report.diagnose.file.code.get - -体检报告人工解读_ISV获取报告文件验证码进行查看报告文件 -*/ -type AlibabaAlihealthExaminationReportDiagnoseFileCodeGetAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationReportDiagnoseFileCodeGetResponse -} - -// ISV获取报告文件查看验证码 成功返回结果 -type AlibabaAlihealthExaminationReportDiagnoseFileCodeGetResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_report_diagnose_file_code_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIRequest.go b/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIRequest.go new file mode 100644 index 0000000000..2acdfc88ca --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIRequest.go @@ -0,0 +1,52 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +报告解读订单状态更新 API请求 +alibaba.alihealth.examination.report.diagnose.order.status + +报告解读订单状态更新 +*/ +type AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIRequest struct { + model.Params + // 参数对象 + _reportOrderStatusRequest *ReportOrderStatusRequest +} + +// 初始化AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIRequest对象 +func NewAlibabaAlihealthExaminationReportDiagnoseOrderStatusRequest() *AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIRequest{ + return &AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.report.diagnose.order.status" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReportOrderStatusRequest Setter +// 参数对象 +func (r *AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIRequest) SetReportOrderStatusRequest(_reportOrderStatusRequest *ReportOrderStatusRequest) error { + r._reportOrderStatusRequest = _reportOrderStatusRequest + r.Set("report_order_status_request", _reportOrderStatusRequest) + return nil +} + +// ReportOrderStatusRequest Getter +func (r AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIRequest) GetReportOrderStatusRequest() *ReportOrderStatusRequest { + return r._reportOrderStatusRequest +} diff --git a/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIResponse.go b/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIResponse.go new file mode 100644 index 0000000000..19e41c5fe5 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIResponse.go @@ -0,0 +1,27 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +报告解读订单状态更新 API返回值 +alibaba.alihealth.examination.report.diagnose.order.status + +报告解读订单状态更新 +*/ +type AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIResponseModel +} + +// 报告解读订单状态更新 成功返回结果 +type AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_report_diagnose_order_status_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderStatusResponse.go b/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderStatusResponse.go deleted file mode 100644 index 8b740600b4..0000000000 --- a/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderStatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -报告解读订单状态更新 API返回值 -alibaba.alihealth.examination.report.diagnose.order.status - -报告解读订单状态更新 -*/ -type AlibabaAlihealthExaminationReportDiagnoseOrderStatusAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationReportDiagnoseOrderStatusResponse -} - -// 报告解读订单状态更新 成功返回结果 -type AlibabaAlihealthExaminationReportDiagnoseOrderStatusResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_report_diagnose_order_status_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest.go b/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest.go new file mode 100644 index 0000000000..1946c4c8c2 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest.go @@ -0,0 +1,136 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +体检报告人工解读订单 API请求 +alibaba.alihealth.examination.report.diagnose.order.submit + +体检报告人工解读订单信息推送给ISV,进行人工解读 +*/ +type AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest struct { + model.Params + // 订单ID + _orderId string + // 手机号码,显示后四位 + _mobilePhone string + // 证件号,显示前1,后1 + _idCardNo string + // 性别 + _gender string + // 报告地址 + _reportUrl string + // 主诉问题 + _question string + // 咨询人名称 + _patientName string +} + +// 初始化AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest对象 +func NewAlibabaAlihealthExaminationReportDiagnoseOrderSubmitRequest() *AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest{ + return &AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.report.diagnose.order.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单ID +func (r *AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest) GetOrderId() string { + return r._orderId +} +// MobilePhone Setter +// 手机号码,显示后四位 +func (r *AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest) SetMobilePhone(_mobilePhone string) error { + r._mobilePhone = _mobilePhone + r.Set("mobile_phone", _mobilePhone) + return nil +} + +// MobilePhone Getter +func (r AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest) GetMobilePhone() string { + return r._mobilePhone +} +// IdCardNo Setter +// 证件号,显示前1,后1 +func (r *AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest) SetIdCardNo(_idCardNo string) error { + r._idCardNo = _idCardNo + r.Set("id_card_no", _idCardNo) + return nil +} + +// IdCardNo Getter +func (r AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest) GetIdCardNo() string { + return r._idCardNo +} +// Gender Setter +// 性别 +func (r *AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest) SetGender(_gender string) error { + r._gender = _gender + r.Set("gender", _gender) + return nil +} + +// Gender Getter +func (r AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest) GetGender() string { + return r._gender +} +// ReportUrl Setter +// 报告地址 +func (r *AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest) SetReportUrl(_reportUrl string) error { + r._reportUrl = _reportUrl + r.Set("report_url", _reportUrl) + return nil +} + +// ReportUrl Getter +func (r AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest) GetReportUrl() string { + return r._reportUrl +} +// Question Setter +// 主诉问题 +func (r *AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest) SetQuestion(_question string) error { + r._question = _question + r.Set("question", _question) + return nil +} + +// Question Getter +func (r AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest) GetQuestion() string { + return r._question +} +// PatientName Setter +// 咨询人名称 +func (r *AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest) SetPatientName(_patientName string) error { + r._patientName = _patientName + r.Set("patient_name", _patientName) + return nil +} + +// PatientName Getter +func (r AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIRequest) GetPatientName() string { + return r._patientName +} diff --git a/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIResponse.go b/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIResponse.go new file mode 100644 index 0000000000..e600f1d430 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIResponse.go @@ -0,0 +1,33 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +体检报告人工解读订单 API返回值 +alibaba.alihealth.examination.report.diagnose.order.submit + +体检报告人工解读订单信息推送给ISV,进行人工解读 +*/ +type AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIResponseModel +} + +// 体检报告人工解读订单 成功返回结果 +type AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_report_diagnose_order_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求状态 + ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` + // 错误码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 错误信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 三方订单信息 + OrderInfo *OrderInfo `json:"order_info,omitempty" xml:"order_info,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSubmitResponse.go b/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSubmitResponse.go deleted file mode 100644 index d440924ff9..0000000000 --- a/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSubmitResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -体检报告人工解读订单 API返回值 -alibaba.alihealth.examination.report.diagnose.order.submit - -体检报告人工解读订单信息推送给ISV,进行人工解读 -*/ -type AlibabaAlihealthExaminationReportDiagnoseOrderSubmitAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationReportDiagnoseOrderSubmitResponse -} - -// 体检报告人工解读订单 成功返回结果 -type AlibabaAlihealthExaminationReportDiagnoseOrderSubmitResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_report_diagnose_order_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求状态 - ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` - // 错误码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 错误信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 三方订单信息 - OrderInfo *OrderInfo `json:"order_info,omitempty" xml:"order_info,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIRequest.go b/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIRequest.go new file mode 100644 index 0000000000..4eda259964 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIRequest.go @@ -0,0 +1,52 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +体检报告人工解读总结回传 API请求 +alibaba.alihealth.examination.report.diagnose.order.summary + +记录体检报告人工解读总结 +*/ +type AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIRequest struct { + model.Params + // 入参对象 + _reportOrderSummaryRequest *ReportOrderSummaryRequest +} + +// 初始化AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIRequest对象 +func NewAlibabaAlihealthExaminationReportDiagnoseOrderSummaryRequest() *AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIRequest{ + return &AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.report.diagnose.order.summary" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReportOrderSummaryRequest Setter +// 入参对象 +func (r *AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIRequest) SetReportOrderSummaryRequest(_reportOrderSummaryRequest *ReportOrderSummaryRequest) error { + r._reportOrderSummaryRequest = _reportOrderSummaryRequest + r.Set("report_order_summary_request", _reportOrderSummaryRequest) + return nil +} + +// ReportOrderSummaryRequest Getter +func (r AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIRequest) GetReportOrderSummaryRequest() *ReportOrderSummaryRequest { + return r._reportOrderSummaryRequest +} diff --git a/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIResponse.go b/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIResponse.go new file mode 100644 index 0000000000..9844cf743b --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIResponse.go @@ -0,0 +1,27 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +体检报告人工解读总结回传 API返回值 +alibaba.alihealth.examination.report.diagnose.order.summary + +记录体检报告人工解读总结 +*/ +type AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIResponseModel +} + +// 体检报告人工解读总结回传 成功返回结果 +type AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_report_diagnose_order_summary_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSummaryResponse.go b/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSummaryResponse.go deleted file mode 100644 index 26eb5d38e5..0000000000 --- a/model/examination/AlibabaAlihealthExaminationReportDiagnoseOrderSummaryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -体检报告人工解读总结回传 API返回值 -alibaba.alihealth.examination.report.diagnose.order.summary - -记录体检报告人工解读总结 -*/ -type AlibabaAlihealthExaminationReportDiagnoseOrderSummaryAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationReportDiagnoseOrderSummaryResponse -} - -// 体检报告人工解读总结回传 成功返回结果 -type AlibabaAlihealthExaminationReportDiagnoseOrderSummaryResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_report_diagnose_order_summary_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIRequest.go b/model/examination/AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIRequest.go new file mode 100644 index 0000000000..7b7e23abbf --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIRequest.go @@ -0,0 +1,52 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +导医通报告解读临时消息接收 API请求 +alibaba.alihealth.examination.report.diagnose.tempmessage.receive + +导医通报告解读临时消息接收 +*/ +type AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIRequest struct { + model.Params + // 入参对象 + _reportDiagnoseImMessageRequest *ReportDiagnoseImMessageRequest +} + +// 初始化AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIRequest对象 +func NewAlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveRequest() *AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIRequest{ + return &AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.report.diagnose.tempmessage.receive" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReportDiagnoseImMessageRequest Setter +// 入参对象 +func (r *AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIRequest) SetReportDiagnoseImMessageRequest(_reportDiagnoseImMessageRequest *ReportDiagnoseImMessageRequest) error { + r._reportDiagnoseImMessageRequest = _reportDiagnoseImMessageRequest + r.Set("report_diagnose_im_message_request", _reportDiagnoseImMessageRequest) + return nil +} + +// ReportDiagnoseImMessageRequest Getter +func (r AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIRequest) GetReportDiagnoseImMessageRequest() *ReportDiagnoseImMessageRequest { + return r._reportDiagnoseImMessageRequest +} diff --git a/model/examination/AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIResponse.go b/model/examination/AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIResponse.go new file mode 100644 index 0000000000..9e76acb166 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIResponse.go @@ -0,0 +1,27 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +导医通报告解读临时消息接收 API返回值 +alibaba.alihealth.examination.report.diagnose.tempmessage.receive + +导医通报告解读临时消息接收 +*/ +type AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIResponseModel +} + +// 导医通报告解读临时消息接收 成功返回结果 +type AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_report_diagnose_tempmessage_receive_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveResponse.go b/model/examination/AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveResponse.go deleted file mode 100644 index 64e779d211..0000000000 --- a/model/examination/AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -导医通报告解读临时消息接收 API返回值 -alibaba.alihealth.examination.report.diagnose.tempmessage.receive - -导医通报告解读临时消息接收 -*/ -type AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveResponse -} - -// 导医通报告解读临时消息接收 成功返回结果 -type AlibabaAlihealthExaminationReportDiagnoseTempmessageReceiveResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_report_diagnose_tempmessage_receive_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationReserveCancelAPIRequest.go b/model/examination/AlibabaAlihealthExaminationReserveCancelAPIRequest.go new file mode 100644 index 0000000000..f6f3e097b7 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReserveCancelAPIRequest.go @@ -0,0 +1,122 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构对接_预约取消 API请求 +alibaba.alihealth.examination.reserve.cancel + +体检机构对接_体检取消 +*/ +type AlibabaAlihealthExaminationReserveCancelAPIRequest struct { + model.Params + // 商户唯一码 + _merchantCode string + // 阿里健康预约唯一标识 + _reserveNumber string + // 预约时间 + _reserveDate string + // 体检套餐编码 + _packageCode string + // 店铺ID + _storeId string + // 体检机构预约唯一标识码 + _uniqReserveCode string +} + +// 初始化AlibabaAlihealthExaminationReserveCancelAPIRequest对象 +func NewAlibabaAlihealthExaminationReserveCancelRequest() *AlibabaAlihealthExaminationReserveCancelAPIRequest{ + return &AlibabaAlihealthExaminationReserveCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationReserveCancelAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.reserve.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationReserveCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MerchantCode Setter +// 商户唯一码 +func (r *AlibabaAlihealthExaminationReserveCancelAPIRequest) SetMerchantCode(_merchantCode string) error { + r._merchantCode = _merchantCode + r.Set("merchant_code", _merchantCode) + return nil +} + +// MerchantCode Getter +func (r AlibabaAlihealthExaminationReserveCancelAPIRequest) GetMerchantCode() string { + return r._merchantCode +} +// ReserveNumber Setter +// 阿里健康预约唯一标识 +func (r *AlibabaAlihealthExaminationReserveCancelAPIRequest) SetReserveNumber(_reserveNumber string) error { + r._reserveNumber = _reserveNumber + r.Set("reserve_number", _reserveNumber) + return nil +} + +// ReserveNumber Getter +func (r AlibabaAlihealthExaminationReserveCancelAPIRequest) GetReserveNumber() string { + return r._reserveNumber +} +// ReserveDate Setter +// 预约时间 +func (r *AlibabaAlihealthExaminationReserveCancelAPIRequest) SetReserveDate(_reserveDate string) error { + r._reserveDate = _reserveDate + r.Set("reserve_date", _reserveDate) + return nil +} + +// ReserveDate Getter +func (r AlibabaAlihealthExaminationReserveCancelAPIRequest) GetReserveDate() string { + return r._reserveDate +} +// PackageCode Setter +// 体检套餐编码 +func (r *AlibabaAlihealthExaminationReserveCancelAPIRequest) SetPackageCode(_packageCode string) error { + r._packageCode = _packageCode + r.Set("package_code", _packageCode) + return nil +} + +// PackageCode Getter +func (r AlibabaAlihealthExaminationReserveCancelAPIRequest) GetPackageCode() string { + return r._packageCode +} +// StoreId Setter +// 店铺ID +func (r *AlibabaAlihealthExaminationReserveCancelAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaAlihealthExaminationReserveCancelAPIRequest) GetStoreId() string { + return r._storeId +} +// UniqReserveCode Setter +// 体检机构预约唯一标识码 +func (r *AlibabaAlihealthExaminationReserveCancelAPIRequest) SetUniqReserveCode(_uniqReserveCode string) error { + r._uniqReserveCode = _uniqReserveCode + r.Set("uniq_reserve_code", _uniqReserveCode) + return nil +} + +// UniqReserveCode Getter +func (r AlibabaAlihealthExaminationReserveCancelAPIRequest) GetUniqReserveCode() string { + return r._uniqReserveCode +} diff --git a/model/examination/AlibabaAlihealthExaminationReserveCancelAPIResponse.go b/model/examination/AlibabaAlihealthExaminationReserveCancelAPIResponse.go new file mode 100644 index 0000000000..208bed88e5 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReserveCancelAPIResponse.go @@ -0,0 +1,31 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构对接_预约取消 API返回值 +alibaba.alihealth.examination.reserve.cancel + +体检机构对接_体检取消 +*/ +type AlibabaAlihealthExaminationReserveCancelAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationReserveCancelAPIResponseModel +} + +// 体检机构对接_预约取消 成功返回结果 +type AlibabaAlihealthExaminationReserveCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_reserve_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 200:取消成功,状态变为已取消;800:取消失败,状态变为取消预约中;700:取消失败状态从取消预约中变为已到检;600取消失败,状态从取消预约中变为已预约 + ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` + // 返回状态码不是600或者700时,不需要返回此字段 + RevisionInfo *RevisionInfo `json:"revision_info,omitempty" xml:"revision_info,omitempty"` + // 返回结果描述 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationReserveCancelResponse.go b/model/examination/AlibabaAlihealthExaminationReserveCancelResponse.go deleted file mode 100644 index 4e7621c4a9..0000000000 --- a/model/examination/AlibabaAlihealthExaminationReserveCancelResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -体检机构对接_预约取消 API返回值 -alibaba.alihealth.examination.reserve.cancel - -体检机构对接_体检取消 -*/ -type AlibabaAlihealthExaminationReserveCancelAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationReserveCancelResponse -} - -// 体检机构对接_预约取消 成功返回结果 -type AlibabaAlihealthExaminationReserveCancelResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_reserve_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 200:取消成功,状态变为已取消;800:取消失败,状态变为取消预约中;700:取消失败状态从取消预约中变为已到检;600取消失败,状态从取消预约中变为已预约 - ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` - // 返回状态码不是600或者700时,不需要返回此字段 - RevisionInfo *RevisionInfo `json:"revision_info,omitempty" xml:"revision_info,omitempty"` - // 返回结果描述 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationReserveConfirmAPIRequest.go b/model/examination/AlibabaAlihealthExaminationReserveConfirmAPIRequest.go new file mode 100644 index 0000000000..f6b44f545d --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReserveConfirmAPIRequest.go @@ -0,0 +1,360 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构对接_体检套餐预定确认 API请求 +alibaba.alihealth.examination.reserve.confirm + +向体检机构确认用户购买的体检套餐信息 +*/ +type AlibabaAlihealthExaminationReserveConfirmAPIRequest struct { + model.Params + // 商户唯一码 + _merchantCode string + // 体检人姓名 + _name string + // 阿里健康预约唯一标识 + _reserveNumber string + // 性别(0-男;1-女;) + _gender string + // 出生日期 + _birthday string + // 预约时间 + _reserveDate string + // 体检套餐编码 + _packageCode string + // 婚否(0-未婚; 1-已婚) + _married string + // 店铺ID + _storeId string + // 电话号码 + _phone string + // 证件类型(0-身份证; 1-护照; 2-军官证) + _certType string + // 证件号 + _certNumber string + // 所属公司 + _company string + // 所属部门 + _department string + // 报告邮寄地址 + _address string + // 加项列表 + _addItems []AddItem + // 加项包列表 + _addPacks []AddPack + // 0没报告1有报告 + _havaReport string + // 员工号 + _employeeNumber string + // 服务类型,ONSITE_SERVICE(到店检测)、DOOR_TO_DOOR_SERVICE(上门检测) + _serviceType string + // 上门服务的上门地址 + _serviceAddress *AddAddress + // 预约时间段开始 + _reserveTimeStart string + // 预约时间段截止 + _reserveTimeEnd string +} + +// 初始化AlibabaAlihealthExaminationReserveConfirmAPIRequest对象 +func NewAlibabaAlihealthExaminationReserveConfirmRequest() *AlibabaAlihealthExaminationReserveConfirmAPIRequest{ + return &AlibabaAlihealthExaminationReserveConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.reserve.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MerchantCode Setter +// 商户唯一码 +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetMerchantCode(_merchantCode string) error { + r._merchantCode = _merchantCode + r.Set("merchant_code", _merchantCode) + return nil +} + +// MerchantCode Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetMerchantCode() string { + return r._merchantCode +} +// Name Setter +// 体检人姓名 +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetName() string { + return r._name +} +// ReserveNumber Setter +// 阿里健康预约唯一标识 +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetReserveNumber(_reserveNumber string) error { + r._reserveNumber = _reserveNumber + r.Set("reserve_number", _reserveNumber) + return nil +} + +// ReserveNumber Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetReserveNumber() string { + return r._reserveNumber +} +// Gender Setter +// 性别(0-男;1-女;) +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetGender(_gender string) error { + r._gender = _gender + r.Set("gender", _gender) + return nil +} + +// Gender Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetGender() string { + return r._gender +} +// Birthday Setter +// 出生日期 +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetBirthday(_birthday string) error { + r._birthday = _birthday + r.Set("birthday", _birthday) + return nil +} + +// Birthday Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetBirthday() string { + return r._birthday +} +// ReserveDate Setter +// 预约时间 +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetReserveDate(_reserveDate string) error { + r._reserveDate = _reserveDate + r.Set("reserve_date", _reserveDate) + return nil +} + +// ReserveDate Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetReserveDate() string { + return r._reserveDate +} +// PackageCode Setter +// 体检套餐编码 +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetPackageCode(_packageCode string) error { + r._packageCode = _packageCode + r.Set("package_code", _packageCode) + return nil +} + +// PackageCode Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetPackageCode() string { + return r._packageCode +} +// Married Setter +// 婚否(0-未婚; 1-已婚) +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetMarried(_married string) error { + r._married = _married + r.Set("married", _married) + return nil +} + +// Married Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetMarried() string { + return r._married +} +// StoreId Setter +// 店铺ID +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetStoreId() string { + return r._storeId +} +// Phone Setter +// 电话号码 +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetPhone() string { + return r._phone +} +// CertType Setter +// 证件类型(0-身份证; 1-护照; 2-军官证) +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetCertType(_certType string) error { + r._certType = _certType + r.Set("cert_type", _certType) + return nil +} + +// CertType Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetCertType() string { + return r._certType +} +// CertNumber Setter +// 证件号 +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetCertNumber(_certNumber string) error { + r._certNumber = _certNumber + r.Set("cert_number", _certNumber) + return nil +} + +// CertNumber Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetCertNumber() string { + return r._certNumber +} +// Company Setter +// 所属公司 +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetCompany(_company string) error { + r._company = _company + r.Set("company", _company) + return nil +} + +// Company Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetCompany() string { + return r._company +} +// Department Setter +// 所属部门 +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetDepartment(_department string) error { + r._department = _department + r.Set("department", _department) + return nil +} + +// Department Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetDepartment() string { + return r._department +} +// Address Setter +// 报告邮寄地址 +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetAddress() string { + return r._address +} +// AddItems Setter +// 加项列表 +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetAddItems(_addItems []AddItem) error { + r._addItems = _addItems + r.Set("add_items", _addItems) + return nil +} + +// AddItems Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetAddItems() []AddItem { + return r._addItems +} +// AddPacks Setter +// 加项包列表 +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetAddPacks(_addPacks []AddPack) error { + r._addPacks = _addPacks + r.Set("add_packs", _addPacks) + return nil +} + +// AddPacks Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetAddPacks() []AddPack { + return r._addPacks +} +// HavaReport Setter +// 0没报告1有报告 +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetHavaReport(_havaReport string) error { + r._havaReport = _havaReport + r.Set("hava_report", _havaReport) + return nil +} + +// HavaReport Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetHavaReport() string { + return r._havaReport +} +// EmployeeNumber Setter +// 员工号 +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetEmployeeNumber(_employeeNumber string) error { + r._employeeNumber = _employeeNumber + r.Set("employee_number", _employeeNumber) + return nil +} + +// EmployeeNumber Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetEmployeeNumber() string { + return r._employeeNumber +} +// ServiceType Setter +// 服务类型,ONSITE_SERVICE(到店检测)、DOOR_TO_DOOR_SERVICE(上门检测) +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetServiceType(_serviceType string) error { + r._serviceType = _serviceType + r.Set("service_type", _serviceType) + return nil +} + +// ServiceType Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetServiceType() string { + return r._serviceType +} +// ServiceAddress Setter +// 上门服务的上门地址 +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetServiceAddress(_serviceAddress *AddAddress) error { + r._serviceAddress = _serviceAddress + r.Set("service_address", _serviceAddress) + return nil +} + +// ServiceAddress Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetServiceAddress() *AddAddress { + return r._serviceAddress +} +// ReserveTimeStart Setter +// 预约时间段开始 +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetReserveTimeStart(_reserveTimeStart string) error { + r._reserveTimeStart = _reserveTimeStart + r.Set("reserve_time_start", _reserveTimeStart) + return nil +} + +// ReserveTimeStart Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetReserveTimeStart() string { + return r._reserveTimeStart +} +// ReserveTimeEnd Setter +// 预约时间段截止 +func (r *AlibabaAlihealthExaminationReserveConfirmAPIRequest) SetReserveTimeEnd(_reserveTimeEnd string) error { + r._reserveTimeEnd = _reserveTimeEnd + r.Set("reserve_time_end", _reserveTimeEnd) + return nil +} + +// ReserveTimeEnd Getter +func (r AlibabaAlihealthExaminationReserveConfirmAPIRequest) GetReserveTimeEnd() string { + return r._reserveTimeEnd +} diff --git a/model/examination/AlibabaAlihealthExaminationReserveConfirmAPIResponse.go b/model/examination/AlibabaAlihealthExaminationReserveConfirmAPIResponse.go new file mode 100644 index 0000000000..3d2e1db932 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReserveConfirmAPIResponse.go @@ -0,0 +1,31 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构对接_体检套餐预定确认 API返回值 +alibaba.alihealth.examination.reserve.confirm + +向体检机构确认用户购买的体检套餐信息 +*/ +type AlibabaAlihealthExaminationReserveConfirmAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationReserveConfirmAPIResponseModel +} + +// 体检机构对接_体检套餐预定确认 成功返回结果 +type AlibabaAlihealthExaminationReserveConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_reserve_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果描述 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 体检机构预约唯一标识码 + UniqReserveCode string `json:"uniq_reserve_code,omitempty" xml:"uniq_reserve_code,omitempty"` + // 返回结果编码 + ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationReserveConfirmResponse.go b/model/examination/AlibabaAlihealthExaminationReserveConfirmResponse.go deleted file mode 100644 index 4a3529c971..0000000000 --- a/model/examination/AlibabaAlihealthExaminationReserveConfirmResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -体检机构对接_体检套餐预定确认 API返回值 -alibaba.alihealth.examination.reserve.confirm - -向体检机构确认用户购买的体检套餐信息 -*/ -type AlibabaAlihealthExaminationReserveConfirmAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationReserveConfirmResponse -} - -// 体检机构对接_体检套餐预定确认 成功返回结果 -type AlibabaAlihealthExaminationReserveConfirmResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_reserve_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果描述 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 体检机构预约唯一标识码 - UniqReserveCode string `json:"uniq_reserve_code,omitempty" xml:"uniq_reserve_code,omitempty"` - // 返回结果编码 - ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationReserveIsvModifyAPIRequest.go b/model/examination/AlibabaAlihealthExaminationReserveIsvModifyAPIRequest.go new file mode 100644 index 0000000000..57666dc576 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReserveIsvModifyAPIRequest.go @@ -0,0 +1,108 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV调TOP主动发起改期信息 API请求 +alibaba.alihealth.examination.reserve.isv.modify + +体检机构对接_ISV发起体检套餐改期 +*/ +type AlibabaAlihealthExaminationReserveIsvModifyAPIRequest struct { + model.Params + // 阿里健康预约唯一标识 + _reserveNumber string + // 体检机构预约唯一标识码 + _uniqReserveCode string + // 修改后预约预约日期,格式:yyyy-MM-dd + _reserveDate string + // 修改后预约时间段开始时间 HH:mm:ss + _reserveTimeStart string + // 修改后预约时间段结束时间 HH:mm:ss + _reserveTimeEnd string +} + +// 初始化AlibabaAlihealthExaminationReserveIsvModifyAPIRequest对象 +func NewAlibabaAlihealthExaminationReserveIsvModifyRequest() *AlibabaAlihealthExaminationReserveIsvModifyAPIRequest{ + return &AlibabaAlihealthExaminationReserveIsvModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationReserveIsvModifyAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.reserve.isv.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationReserveIsvModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReserveNumber Setter +// 阿里健康预约唯一标识 +func (r *AlibabaAlihealthExaminationReserveIsvModifyAPIRequest) SetReserveNumber(_reserveNumber string) error { + r._reserveNumber = _reserveNumber + r.Set("reserve_number", _reserveNumber) + return nil +} + +// ReserveNumber Getter +func (r AlibabaAlihealthExaminationReserveIsvModifyAPIRequest) GetReserveNumber() string { + return r._reserveNumber +} +// UniqReserveCode Setter +// 体检机构预约唯一标识码 +func (r *AlibabaAlihealthExaminationReserveIsvModifyAPIRequest) SetUniqReserveCode(_uniqReserveCode string) error { + r._uniqReserveCode = _uniqReserveCode + r.Set("uniq_reserve_code", _uniqReserveCode) + return nil +} + +// UniqReserveCode Getter +func (r AlibabaAlihealthExaminationReserveIsvModifyAPIRequest) GetUniqReserveCode() string { + return r._uniqReserveCode +} +// ReserveDate Setter +// 修改后预约预约日期,格式:yyyy-MM-dd +func (r *AlibabaAlihealthExaminationReserveIsvModifyAPIRequest) SetReserveDate(_reserveDate string) error { + r._reserveDate = _reserveDate + r.Set("reserve_date", _reserveDate) + return nil +} + +// ReserveDate Getter +func (r AlibabaAlihealthExaminationReserveIsvModifyAPIRequest) GetReserveDate() string { + return r._reserveDate +} +// ReserveTimeStart Setter +// 修改后预约时间段开始时间 HH:mm:ss +func (r *AlibabaAlihealthExaminationReserveIsvModifyAPIRequest) SetReserveTimeStart(_reserveTimeStart string) error { + r._reserveTimeStart = _reserveTimeStart + r.Set("reserve_time_start", _reserveTimeStart) + return nil +} + +// ReserveTimeStart Getter +func (r AlibabaAlihealthExaminationReserveIsvModifyAPIRequest) GetReserveTimeStart() string { + return r._reserveTimeStart +} +// ReserveTimeEnd Setter +// 修改后预约时间段结束时间 HH:mm:ss +func (r *AlibabaAlihealthExaminationReserveIsvModifyAPIRequest) SetReserveTimeEnd(_reserveTimeEnd string) error { + r._reserveTimeEnd = _reserveTimeEnd + r.Set("reserve_time_end", _reserveTimeEnd) + return nil +} + +// ReserveTimeEnd Getter +func (r AlibabaAlihealthExaminationReserveIsvModifyAPIRequest) GetReserveTimeEnd() string { + return r._reserveTimeEnd +} diff --git a/model/examination/AlibabaAlihealthExaminationReserveIsvModifyAPIResponse.go b/model/examination/AlibabaAlihealthExaminationReserveIsvModifyAPIResponse.go new file mode 100644 index 0000000000..7bcab5a56c --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReserveIsvModifyAPIResponse.go @@ -0,0 +1,27 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV调TOP主动发起改期信息 API返回值 +alibaba.alihealth.examination.reserve.isv.modify + +体检机构对接_ISV发起体检套餐改期 +*/ +type AlibabaAlihealthExaminationReserveIsvModifyAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationReserveIsvModifyAPIResponseModel +} + +// ISV调TOP主动发起改期信息 成功返回结果 +type AlibabaAlihealthExaminationReserveIsvModifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_reserve_isv_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationReserveIsvModifyResponse.go b/model/examination/AlibabaAlihealthExaminationReserveIsvModifyResponse.go deleted file mode 100644 index a89ed30ade..0000000000 --- a/model/examination/AlibabaAlihealthExaminationReserveIsvModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV调TOP主动发起改期信息 API返回值 -alibaba.alihealth.examination.reserve.isv.modify - -体检机构对接_ISV发起体检套餐改期 -*/ -type AlibabaAlihealthExaminationReserveIsvModifyAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationReserveIsvModifyResponse -} - -// ISV调TOP主动发起改期信息 成功返回结果 -type AlibabaAlihealthExaminationReserveIsvModifyResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_reserve_isv_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest.go b/model/examination/AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest.go new file mode 100644 index 0000000000..5b513e9f93 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest.go @@ -0,0 +1,192 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通知改期结果 API请求 +alibaba.alihealth.examination.reserve.modify.notify + +体检状态为改期中,服务上通知健康是否改期成功 +*/ +type AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest struct { + model.Params + // 旧的预约日期 + _oldReserveDate string + // 套餐编码 + _packageCode string + // 健康预约凭证 + _reserveNumber string + // 新的预约日期 + _newReserveDate string + // 服务商预约凭证 + _uniqReserveCode string + // 商品编码 + _goodsCode string + // 门店编码 + _storeCode string + // true:同意修改;false:拒绝修改 + _pass bool + // 拒绝修改的时候需要传递拒绝原因 + _reason string + // 新的预约时间段开始时间 + _newReserveTimeStart string + // 新的预约时间段结束时间 + _newReserveTimeEnd string +} + +// 初始化AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest对象 +func NewAlibabaAlihealthExaminationReserveModifyNotifyRequest() *AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest{ + return &AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.reserve.modify.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OldReserveDate Setter +// 旧的预约日期 +func (r *AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) SetOldReserveDate(_oldReserveDate string) error { + r._oldReserveDate = _oldReserveDate + r.Set("old_reserve_date", _oldReserveDate) + return nil +} + +// OldReserveDate Getter +func (r AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) GetOldReserveDate() string { + return r._oldReserveDate +} +// PackageCode Setter +// 套餐编码 +func (r *AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) SetPackageCode(_packageCode string) error { + r._packageCode = _packageCode + r.Set("package_code", _packageCode) + return nil +} + +// PackageCode Getter +func (r AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) GetPackageCode() string { + return r._packageCode +} +// ReserveNumber Setter +// 健康预约凭证 +func (r *AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) SetReserveNumber(_reserveNumber string) error { + r._reserveNumber = _reserveNumber + r.Set("reserve_number", _reserveNumber) + return nil +} + +// ReserveNumber Getter +func (r AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) GetReserveNumber() string { + return r._reserveNumber +} +// NewReserveDate Setter +// 新的预约日期 +func (r *AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) SetNewReserveDate(_newReserveDate string) error { + r._newReserveDate = _newReserveDate + r.Set("new_reserve_date", _newReserveDate) + return nil +} + +// NewReserveDate Getter +func (r AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) GetNewReserveDate() string { + return r._newReserveDate +} +// UniqReserveCode Setter +// 服务商预约凭证 +func (r *AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) SetUniqReserveCode(_uniqReserveCode string) error { + r._uniqReserveCode = _uniqReserveCode + r.Set("uniq_reserve_code", _uniqReserveCode) + return nil +} + +// UniqReserveCode Getter +func (r AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) GetUniqReserveCode() string { + return r._uniqReserveCode +} +// GoodsCode Setter +// 商品编码 +func (r *AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) SetGoodsCode(_goodsCode string) error { + r._goodsCode = _goodsCode + r.Set("goods_code", _goodsCode) + return nil +} + +// GoodsCode Getter +func (r AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) GetGoodsCode() string { + return r._goodsCode +} +// StoreCode Setter +// 门店编码 +func (r *AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) GetStoreCode() string { + return r._storeCode +} +// Pass Setter +// true:同意修改;false:拒绝修改 +func (r *AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) SetPass(_pass bool) error { + r._pass = _pass + r.Set("pass", _pass) + return nil +} + +// Pass Getter +func (r AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) GetPass() bool { + return r._pass +} +// Reason Setter +// 拒绝修改的时候需要传递拒绝原因 +func (r *AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) SetReason(_reason string) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) GetReason() string { + return r._reason +} +// NewReserveTimeStart Setter +// 新的预约时间段开始时间 +func (r *AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) SetNewReserveTimeStart(_newReserveTimeStart string) error { + r._newReserveTimeStart = _newReserveTimeStart + r.Set("new_reserve_time_start", _newReserveTimeStart) + return nil +} + +// NewReserveTimeStart Getter +func (r AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) GetNewReserveTimeStart() string { + return r._newReserveTimeStart +} +// NewReserveTimeEnd Setter +// 新的预约时间段结束时间 +func (r *AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) SetNewReserveTimeEnd(_newReserveTimeEnd string) error { + r._newReserveTimeEnd = _newReserveTimeEnd + r.Set("new_reserve_time_end", _newReserveTimeEnd) + return nil +} + +// NewReserveTimeEnd Getter +func (r AlibabaAlihealthExaminationReserveModifyNotifyAPIRequest) GetNewReserveTimeEnd() string { + return r._newReserveTimeEnd +} diff --git a/model/examination/AlibabaAlihealthExaminationReserveModifyNotifyAPIResponse.go b/model/examination/AlibabaAlihealthExaminationReserveModifyNotifyAPIResponse.go new file mode 100644 index 0000000000..cb7789caeb --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReserveModifyNotifyAPIResponse.go @@ -0,0 +1,27 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通知改期结果 API返回值 +alibaba.alihealth.examination.reserve.modify.notify + +体检状态为改期中,服务上通知健康是否改期成功 +*/ +type AlibabaAlihealthExaminationReserveModifyNotifyAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationReserveModifyNotifyAPIResponseModel +} + +// 通知改期结果 成功返回结果 +type AlibabaAlihealthExaminationReserveModifyNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_reserve_modify_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationReserveModifyNotifyResponse.go b/model/examination/AlibabaAlihealthExaminationReserveModifyNotifyResponse.go deleted file mode 100644 index 3ed561500c..0000000000 --- a/model/examination/AlibabaAlihealthExaminationReserveModifyNotifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通知改期结果 API返回值 -alibaba.alihealth.examination.reserve.modify.notify - -体检状态为改期中,服务上通知健康是否改期成功 -*/ -type AlibabaAlihealthExaminationReserveModifyNotifyAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationReserveModifyNotifyResponse -} - -// 通知改期结果 成功返回结果 -type AlibabaAlihealthExaminationReserveModifyNotifyResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_reserve_modify_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationReserveReportAPIRequest.go b/model/examination/AlibabaAlihealthExaminationReserveReportAPIRequest.go new file mode 100644 index 0000000000..a76f39023d --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReserveReportAPIRequest.go @@ -0,0 +1,122 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构对接_体检报告查询 API请求 +alibaba.alihealth.examination.reserve.report + +体检机构对接_体检报告获取 +*/ +type AlibabaAlihealthExaminationReserveReportAPIRequest struct { + model.Params + // 商户唯一码 + _merchantCode string + // 阿里健康预约唯一标识 + _reserveNumber string + // 到检唯一标识 + _checkNo string + // 体检机构预约唯一标识码 + _uniqReserveCode string + // 查询报告卡号 + _searchNo string + // 查询报告密码 + _searchPwd string +} + +// 初始化AlibabaAlihealthExaminationReserveReportAPIRequest对象 +func NewAlibabaAlihealthExaminationReserveReportRequest() *AlibabaAlihealthExaminationReserveReportAPIRequest{ + return &AlibabaAlihealthExaminationReserveReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationReserveReportAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.reserve.report" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationReserveReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MerchantCode Setter +// 商户唯一码 +func (r *AlibabaAlihealthExaminationReserveReportAPIRequest) SetMerchantCode(_merchantCode string) error { + r._merchantCode = _merchantCode + r.Set("merchant_code", _merchantCode) + return nil +} + +// MerchantCode Getter +func (r AlibabaAlihealthExaminationReserveReportAPIRequest) GetMerchantCode() string { + return r._merchantCode +} +// ReserveNumber Setter +// 阿里健康预约唯一标识 +func (r *AlibabaAlihealthExaminationReserveReportAPIRequest) SetReserveNumber(_reserveNumber string) error { + r._reserveNumber = _reserveNumber + r.Set("reserve_number", _reserveNumber) + return nil +} + +// ReserveNumber Getter +func (r AlibabaAlihealthExaminationReserveReportAPIRequest) GetReserveNumber() string { + return r._reserveNumber +} +// CheckNo Setter +// 到检唯一标识 +func (r *AlibabaAlihealthExaminationReserveReportAPIRequest) SetCheckNo(_checkNo string) error { + r._checkNo = _checkNo + r.Set("check_no", _checkNo) + return nil +} + +// CheckNo Getter +func (r AlibabaAlihealthExaminationReserveReportAPIRequest) GetCheckNo() string { + return r._checkNo +} +// UniqReserveCode Setter +// 体检机构预约唯一标识码 +func (r *AlibabaAlihealthExaminationReserveReportAPIRequest) SetUniqReserveCode(_uniqReserveCode string) error { + r._uniqReserveCode = _uniqReserveCode + r.Set("uniq_reserve_code", _uniqReserveCode) + return nil +} + +// UniqReserveCode Getter +func (r AlibabaAlihealthExaminationReserveReportAPIRequest) GetUniqReserveCode() string { + return r._uniqReserveCode +} +// SearchNo Setter +// 查询报告卡号 +func (r *AlibabaAlihealthExaminationReserveReportAPIRequest) SetSearchNo(_searchNo string) error { + r._searchNo = _searchNo + r.Set("search_no", _searchNo) + return nil +} + +// SearchNo Getter +func (r AlibabaAlihealthExaminationReserveReportAPIRequest) GetSearchNo() string { + return r._searchNo +} +// SearchPwd Setter +// 查询报告密码 +func (r *AlibabaAlihealthExaminationReserveReportAPIRequest) SetSearchPwd(_searchPwd string) error { + r._searchPwd = _searchPwd + r.Set("search_pwd", _searchPwd) + return nil +} + +// SearchPwd Getter +func (r AlibabaAlihealthExaminationReserveReportAPIRequest) GetSearchPwd() string { + return r._searchPwd +} diff --git a/model/examination/AlibabaAlihealthExaminationReserveReportAPIResponse.go b/model/examination/AlibabaAlihealthExaminationReserveReportAPIResponse.go new file mode 100644 index 0000000000..69333c142c --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReserveReportAPIResponse.go @@ -0,0 +1,31 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构对接_体检报告查询 API返回值 +alibaba.alihealth.examination.reserve.report + +体检机构对接_体检报告获取 +*/ +type AlibabaAlihealthExaminationReserveReportAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationReserveReportAPIResponseModel +} + +// 体检机构对接_体检报告查询 成功返回结果 +type AlibabaAlihealthExaminationReserveReportAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_reserve_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果描述 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回结果编码 + ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` + // 文件数据流 + ReportData string `json:"report_data,omitempty" xml:"report_data,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationReserveReportNofifyAPIRequest.go b/model/examination/AlibabaAlihealthExaminationReserveReportNofifyAPIRequest.go new file mode 100644 index 0000000000..68f13f6146 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReserveReportNofifyAPIRequest.go @@ -0,0 +1,108 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商主动通知体检报告 API请求 +alibaba.alihealth.examination.reserve.report.nofify + +服务商主动回传用户的体检报告数据 +*/ +type AlibabaAlihealthExaminationReserveReportNofifyAPIRequest struct { + model.Params + // 服务商预约凭证 + _uniqReserveCode string + // 服务商到检编号 + _checkNo string + // 健康预约凭证 + _reserveNumber string + // 报告通知类型,传1即可 + _type string + // pdf文件的二进制base64编码字符串 + _content string +} + +// 初始化AlibabaAlihealthExaminationReserveReportNofifyAPIRequest对象 +func NewAlibabaAlihealthExaminationReserveReportNofifyRequest() *AlibabaAlihealthExaminationReserveReportNofifyAPIRequest{ + return &AlibabaAlihealthExaminationReserveReportNofifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationReserveReportNofifyAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.reserve.report.nofify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationReserveReportNofifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UniqReserveCode Setter +// 服务商预约凭证 +func (r *AlibabaAlihealthExaminationReserveReportNofifyAPIRequest) SetUniqReserveCode(_uniqReserveCode string) error { + r._uniqReserveCode = _uniqReserveCode + r.Set("uniq_reserve_code", _uniqReserveCode) + return nil +} + +// UniqReserveCode Getter +func (r AlibabaAlihealthExaminationReserveReportNofifyAPIRequest) GetUniqReserveCode() string { + return r._uniqReserveCode +} +// CheckNo Setter +// 服务商到检编号 +func (r *AlibabaAlihealthExaminationReserveReportNofifyAPIRequest) SetCheckNo(_checkNo string) error { + r._checkNo = _checkNo + r.Set("check_no", _checkNo) + return nil +} + +// CheckNo Getter +func (r AlibabaAlihealthExaminationReserveReportNofifyAPIRequest) GetCheckNo() string { + return r._checkNo +} +// ReserveNumber Setter +// 健康预约凭证 +func (r *AlibabaAlihealthExaminationReserveReportNofifyAPIRequest) SetReserveNumber(_reserveNumber string) error { + r._reserveNumber = _reserveNumber + r.Set("reserve_number", _reserveNumber) + return nil +} + +// ReserveNumber Getter +func (r AlibabaAlihealthExaminationReserveReportNofifyAPIRequest) GetReserveNumber() string { + return r._reserveNumber +} +// Type Setter +// 报告通知类型,传1即可 +func (r *AlibabaAlihealthExaminationReserveReportNofifyAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaAlihealthExaminationReserveReportNofifyAPIRequest) GetType() string { + return r._type +} +// Content Setter +// pdf文件的二进制base64编码字符串 +func (r *AlibabaAlihealthExaminationReserveReportNofifyAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r AlibabaAlihealthExaminationReserveReportNofifyAPIRequest) GetContent() string { + return r._content +} diff --git a/model/examination/AlibabaAlihealthExaminationReserveReportNofifyAPIResponse.go b/model/examination/AlibabaAlihealthExaminationReserveReportNofifyAPIResponse.go new file mode 100644 index 0000000000..8aaf88a070 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReserveReportNofifyAPIResponse.go @@ -0,0 +1,29 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商主动通知体检报告 API返回值 +alibaba.alihealth.examination.reserve.report.nofify + +服务商主动回传用户的体检报告数据 +*/ +type AlibabaAlihealthExaminationReserveReportNofifyAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationReserveReportNofifyAPIResponseModel +} + +// 服务商主动通知体检报告 成功返回结果 +type AlibabaAlihealthExaminationReserveReportNofifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_reserve_report_nofify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 11 + EagleEyeTraceId string `json:"eagle_eye_trace_id,omitempty" xml:"eagle_eye_trace_id,omitempty"` + // 返回数据对象 + Data *ReserveReportResponse `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationReserveReportNofifyResponse.go b/model/examination/AlibabaAlihealthExaminationReserveReportNofifyResponse.go deleted file mode 100644 index 71b94dbae6..0000000000 --- a/model/examination/AlibabaAlihealthExaminationReserveReportNofifyResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商主动通知体检报告 API返回值 -alibaba.alihealth.examination.reserve.report.nofify - -服务商主动回传用户的体检报告数据 -*/ -type AlibabaAlihealthExaminationReserveReportNofifyAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationReserveReportNofifyResponse -} - -// 服务商主动通知体检报告 成功返回结果 -type AlibabaAlihealthExaminationReserveReportNofifyResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_reserve_report_nofify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 11 - EagleEyeTraceId string `json:"eagle_eye_trace_id,omitempty" xml:"eagle_eye_trace_id,omitempty"` - // 返回数据对象 - Data *ReserveReportResponse `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationReserveReportResponse.go b/model/examination/AlibabaAlihealthExaminationReserveReportResponse.go deleted file mode 100644 index 6bb99b171e..0000000000 --- a/model/examination/AlibabaAlihealthExaminationReserveReportResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -体检机构对接_体检报告查询 API返回值 -alibaba.alihealth.examination.reserve.report - -体检机构对接_体检报告获取 -*/ -type AlibabaAlihealthExaminationReserveReportAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationReserveReportResponse -} - -// 体检机构对接_体检报告查询 成功返回结果 -type AlibabaAlihealthExaminationReserveReportResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_reserve_report_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果描述 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 返回结果编码 - ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` - // 文件数据流 - ReportData string `json:"report_data,omitempty" xml:"report_data,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationReserveStateAPIRequest.go b/model/examination/AlibabaAlihealthExaminationReserveStateAPIRequest.go new file mode 100644 index 0000000000..ca1faf793f --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReserveStateAPIRequest.go @@ -0,0 +1,80 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构对接_体检状态查询 API请求 +alibaba.alihealth.examination.reserve.state + +体检机构对接_体检状态查询 +*/ +type AlibabaAlihealthExaminationReserveStateAPIRequest struct { + model.Params + // 商户唯一码 + _merchantCode string + // 阿里健康预约唯一标识 + _reserveNumber string + // 体检机构预约唯一标识码 + _uniqReserveCode string +} + +// 初始化AlibabaAlihealthExaminationReserveStateAPIRequest对象 +func NewAlibabaAlihealthExaminationReserveStateRequest() *AlibabaAlihealthExaminationReserveStateAPIRequest{ + return &AlibabaAlihealthExaminationReserveStateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationReserveStateAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.reserve.state" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationReserveStateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MerchantCode Setter +// 商户唯一码 +func (r *AlibabaAlihealthExaminationReserveStateAPIRequest) SetMerchantCode(_merchantCode string) error { + r._merchantCode = _merchantCode + r.Set("merchant_code", _merchantCode) + return nil +} + +// MerchantCode Getter +func (r AlibabaAlihealthExaminationReserveStateAPIRequest) GetMerchantCode() string { + return r._merchantCode +} +// ReserveNumber Setter +// 阿里健康预约唯一标识 +func (r *AlibabaAlihealthExaminationReserveStateAPIRequest) SetReserveNumber(_reserveNumber string) error { + r._reserveNumber = _reserveNumber + r.Set("reserve_number", _reserveNumber) + return nil +} + +// ReserveNumber Getter +func (r AlibabaAlihealthExaminationReserveStateAPIRequest) GetReserveNumber() string { + return r._reserveNumber +} +// UniqReserveCode Setter +// 体检机构预约唯一标识码 +func (r *AlibabaAlihealthExaminationReserveStateAPIRequest) SetUniqReserveCode(_uniqReserveCode string) error { + r._uniqReserveCode = _uniqReserveCode + r.Set("uniq_reserve_code", _uniqReserveCode) + return nil +} + +// UniqReserveCode Getter +func (r AlibabaAlihealthExaminationReserveStateAPIRequest) GetUniqReserveCode() string { + return r._uniqReserveCode +} diff --git a/model/examination/AlibabaAlihealthExaminationReserveStateAPIResponse.go b/model/examination/AlibabaAlihealthExaminationReserveStateAPIResponse.go new file mode 100644 index 0000000000..9488f5ea3b --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReserveStateAPIResponse.go @@ -0,0 +1,31 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构对接_体检状态查询 API返回值 +alibaba.alihealth.examination.reserve.state + +体检机构对接_体检状态查询 +*/ +type AlibabaAlihealthExaminationReserveStateAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationReserveStateAPIResponseModel +} + +// 体检机构对接_体检状态查询 成功返回结果 +type AlibabaAlihealthExaminationReserveStateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_reserve_state_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果描述 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 预约信息 + CooperationOrderInfo *CooperationOrderInfo `json:"cooperation_order_info,omitempty" xml:"cooperation_order_info,omitempty"` + // 返回结果编码 + ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationReserveStateNotifyAPIRequest.go b/model/examination/AlibabaAlihealthExaminationReserveStateNotifyAPIRequest.go new file mode 100644 index 0000000000..9ae86a11e6 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReserveStateNotifyAPIRequest.go @@ -0,0 +1,94 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构对接_体检状态主动通知 API请求 +alibaba.alihealth.examination.reserve.state.notify + +到了体检当天后,服务商主动通知体检预约状态 +*/ +type AlibabaAlihealthExaminationReserveStateNotifyAPIRequest struct { + model.Params + // 服务商预约凭证 + _uniqReserveCode string + // 健康预约凭证 + _reserveNumber string + // 体检状态:未到检(exam_not), 已到检(exam_done); 上门服务中还需以下两种状态:预约确认中(reserve_confirming),预约拒绝(reserve_rejected); + _reportStatus string + // 到检凭证,exam_done状态下,该字段必填 + _checkNo string +} + +// 初始化AlibabaAlihealthExaminationReserveStateNotifyAPIRequest对象 +func NewAlibabaAlihealthExaminationReserveStateNotifyRequest() *AlibabaAlihealthExaminationReserveStateNotifyAPIRequest{ + return &AlibabaAlihealthExaminationReserveStateNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationReserveStateNotifyAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.reserve.state.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationReserveStateNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UniqReserveCode Setter +// 服务商预约凭证 +func (r *AlibabaAlihealthExaminationReserveStateNotifyAPIRequest) SetUniqReserveCode(_uniqReserveCode string) error { + r._uniqReserveCode = _uniqReserveCode + r.Set("uniq_reserve_code", _uniqReserveCode) + return nil +} + +// UniqReserveCode Getter +func (r AlibabaAlihealthExaminationReserveStateNotifyAPIRequest) GetUniqReserveCode() string { + return r._uniqReserveCode +} +// ReserveNumber Setter +// 健康预约凭证 +func (r *AlibabaAlihealthExaminationReserveStateNotifyAPIRequest) SetReserveNumber(_reserveNumber string) error { + r._reserveNumber = _reserveNumber + r.Set("reserve_number", _reserveNumber) + return nil +} + +// ReserveNumber Getter +func (r AlibabaAlihealthExaminationReserveStateNotifyAPIRequest) GetReserveNumber() string { + return r._reserveNumber +} +// ReportStatus Setter +// 体检状态:未到检(exam_not), 已到检(exam_done); 上门服务中还需以下两种状态:预约确认中(reserve_confirming),预约拒绝(reserve_rejected); +func (r *AlibabaAlihealthExaminationReserveStateNotifyAPIRequest) SetReportStatus(_reportStatus string) error { + r._reportStatus = _reportStatus + r.Set("report_status", _reportStatus) + return nil +} + +// ReportStatus Getter +func (r AlibabaAlihealthExaminationReserveStateNotifyAPIRequest) GetReportStatus() string { + return r._reportStatus +} +// CheckNo Setter +// 到检凭证,exam_done状态下,该字段必填 +func (r *AlibabaAlihealthExaminationReserveStateNotifyAPIRequest) SetCheckNo(_checkNo string) error { + r._checkNo = _checkNo + r.Set("check_no", _checkNo) + return nil +} + +// CheckNo Getter +func (r AlibabaAlihealthExaminationReserveStateNotifyAPIRequest) GetCheckNo() string { + return r._checkNo +} diff --git a/model/examination/AlibabaAlihealthExaminationReserveStateNotifyAPIResponse.go b/model/examination/AlibabaAlihealthExaminationReserveStateNotifyAPIResponse.go new file mode 100644 index 0000000000..c0e69f75d5 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationReserveStateNotifyAPIResponse.go @@ -0,0 +1,27 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构对接_体检状态主动通知 API返回值 +alibaba.alihealth.examination.reserve.state.notify + +到了体检当天后,服务商主动通知体检预约状态 +*/ +type AlibabaAlihealthExaminationReserveStateNotifyAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationReserveStateNotifyAPIResponseModel +} + +// 体检机构对接_体检状态主动通知 成功返回结果 +type AlibabaAlihealthExaminationReserveStateNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_reserve_state_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationReserveStateNotifyResponse.go b/model/examination/AlibabaAlihealthExaminationReserveStateNotifyResponse.go deleted file mode 100644 index 1c8fbe5232..0000000000 --- a/model/examination/AlibabaAlihealthExaminationReserveStateNotifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -体检机构对接_体检状态主动通知 API返回值 -alibaba.alihealth.examination.reserve.state.notify - -到了体检当天后,服务商主动通知体检预约状态 -*/ -type AlibabaAlihealthExaminationReserveStateNotifyAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationReserveStateNotifyResponse -} - -// 体检机构对接_体检状态主动通知 成功返回结果 -type AlibabaAlihealthExaminationReserveStateNotifyResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_reserve_state_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationReserveStateResponse.go b/model/examination/AlibabaAlihealthExaminationReserveStateResponse.go deleted file mode 100644 index cea9ca426b..0000000000 --- a/model/examination/AlibabaAlihealthExaminationReserveStateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -体检机构对接_体检状态查询 API返回值 -alibaba.alihealth.examination.reserve.state - -体检机构对接_体检状态查询 -*/ -type AlibabaAlihealthExaminationReserveStateAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationReserveStateResponse -} - -// 体检机构对接_体检状态查询 成功返回结果 -type AlibabaAlihealthExaminationReserveStateResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_reserve_state_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果描述 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 预约信息 - CooperationOrderInfo *CooperationOrderInfo `json:"cooperation_order_info,omitempty" xml:"cooperation_order_info,omitempty"` - // 返回结果编码 - ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationServiceareaCheckAPIRequest.go b/model/examination/AlibabaAlihealthExaminationServiceareaCheckAPIRequest.go new file mode 100644 index 0000000000..483fb3b820 --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationServiceareaCheckAPIRequest.go @@ -0,0 +1,178 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构对接_上门检测服务范围查询 API请求 +alibaba.alihealth.examination.servicearea.check + +体检机构对接_上门检测服务范围查询 +*/ +type AlibabaAlihealthExaminationServiceareaCheckAPIRequest struct { + model.Params + // 机构套餐编码 + _packageCode string + // 上门检测地址 + _address string + // 上门检测地址纬度 + _latitude string + // 上门检测地址经度 + _longitude string + // 省份名称(高德) + _province string + // 省份编码(高德adcode) + _provinceCode string + // 城市名称(高德) + _city string + // 城市编码(高德adcode) + _cityCode string + // 区域名称(高德) + _district string + // 区域编码(高德adcode) + _districtCode string +} + +// 初始化AlibabaAlihealthExaminationServiceareaCheckAPIRequest对象 +func NewAlibabaAlihealthExaminationServiceareaCheckRequest() *AlibabaAlihealthExaminationServiceareaCheckAPIRequest{ + return &AlibabaAlihealthExaminationServiceareaCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.servicearea.check" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PackageCode Setter +// 机构套餐编码 +func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetPackageCode(_packageCode string) error { + r._packageCode = _packageCode + r.Set("package_code", _packageCode) + return nil +} + +// PackageCode Getter +func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetPackageCode() string { + return r._packageCode +} +// Address Setter +// 上门检测地址 +func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetAddress() string { + return r._address +} +// Latitude Setter +// 上门检测地址纬度 +func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetLatitude() string { + return r._latitude +} +// Longitude Setter +// 上门检测地址经度 +func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetLongitude() string { + return r._longitude +} +// Province Setter +// 省份名称(高德) +func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetProvince(_province string) error { + r._province = _province + r.Set("province", _province) + return nil +} + +// Province Getter +func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetProvince() string { + return r._province +} +// ProvinceCode Setter +// 省份编码(高德adcode) +func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetProvinceCode(_provinceCode string) error { + r._provinceCode = _provinceCode + r.Set("province_code", _provinceCode) + return nil +} + +// ProvinceCode Getter +func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetProvinceCode() string { + return r._provinceCode +} +// City Setter +// 城市名称(高德) +func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetCity(_city string) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetCity() string { + return r._city +} +// CityCode Setter +// 城市编码(高德adcode) +func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetCityCode(_cityCode string) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetCityCode() string { + return r._cityCode +} +// District Setter +// 区域名称(高德) +func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetDistrict(_district string) error { + r._district = _district + r.Set("district", _district) + return nil +} + +// District Getter +func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetDistrict() string { + return r._district +} +// DistrictCode Setter +// 区域编码(高德adcode) +func (r *AlibabaAlihealthExaminationServiceareaCheckAPIRequest) SetDistrictCode(_districtCode string) error { + r._districtCode = _districtCode + r.Set("district_code", _districtCode) + return nil +} + +// DistrictCode Getter +func (r AlibabaAlihealthExaminationServiceareaCheckAPIRequest) GetDistrictCode() string { + return r._districtCode +} diff --git a/model/examination/AlibabaAlihealthExaminationServiceareaCheckAPIResponse.go b/model/examination/AlibabaAlihealthExaminationServiceareaCheckAPIResponse.go new file mode 100644 index 0000000000..8908ecab3e --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationServiceareaCheckAPIResponse.go @@ -0,0 +1,29 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +体检机构对接_上门检测服务范围查询 API返回值 +alibaba.alihealth.examination.servicearea.check + +体检机构对接_上门检测服务范围查询 +*/ +type AlibabaAlihealthExaminationServiceareaCheckAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationServiceareaCheckAPIResponseModel +} + +// 体检机构对接_上门检测服务范围查询 成功返回结果 +type AlibabaAlihealthExaminationServiceareaCheckAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_servicearea_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 校验结果:校验成功、校验失败 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 校验结果编码,校验成功200、校验失败400 + ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationServiceareaCheckResponse.go b/model/examination/AlibabaAlihealthExaminationServiceareaCheckResponse.go deleted file mode 100644 index 23734cceb6..0000000000 --- a/model/examination/AlibabaAlihealthExaminationServiceareaCheckResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -体检机构对接_上门检测服务范围查询 API返回值 -alibaba.alihealth.examination.servicearea.check - -体检机构对接_上门检测服务范围查询 -*/ -type AlibabaAlihealthExaminationServiceareaCheckAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationServiceareaCheckResponse -} - -// 体检机构对接_上门检测服务范围查询 成功返回结果 -type AlibabaAlihealthExaminationServiceareaCheckResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_servicearea_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 校验结果:校验成功、校验失败 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 校验结果编码,校验成功200、校验失败400 - ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` -} diff --git a/model/examination/AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest.go b/model/examination/AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest.go new file mode 100644 index 0000000000..47004d5bdf --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest.go @@ -0,0 +1,108 @@ +package examination + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上门检测服务信息同步 API请求 +alibaba.alihealth.examination.todoor.serviceinfo.sync + +isv同步上门检测服务信息给健康 +*/ +type AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest struct { + model.Params + // 服务商预约凭证 + _uniqReserveCode string + // 从业者信息 + _medicalPractitionerInfo *MedicalPractitionerInfo + // 健康预约凭证 + _reserveNumber string + // 事件(ASSIGNED_PRACTITONER:已分配医护人员、PRACTITONER_GO_OUT:医护人员已出发、PRACTITONER_HOME:医护人员已到家、PRACTITONER_CHECKED:医护人员检查完成)、CHANGE_PRACTITONER(变更医护人员) + _event string + // 事件发生时间 + _eventOccurTime string +} + +// 初始化AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest对象 +func NewAlibabaAlihealthExaminationTodoorServiceinfoSyncRequest() *AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest{ + return &AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.examination.todoor.serviceinfo.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UniqReserveCode Setter +// 服务商预约凭证 +func (r *AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest) SetUniqReserveCode(_uniqReserveCode string) error { + r._uniqReserveCode = _uniqReserveCode + r.Set("uniq_reserve_code", _uniqReserveCode) + return nil +} + +// UniqReserveCode Getter +func (r AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest) GetUniqReserveCode() string { + return r._uniqReserveCode +} +// MedicalPractitionerInfo Setter +// 从业者信息 +func (r *AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest) SetMedicalPractitionerInfo(_medicalPractitionerInfo *MedicalPractitionerInfo) error { + r._medicalPractitionerInfo = _medicalPractitionerInfo + r.Set("medical_practitioner_info", _medicalPractitionerInfo) + return nil +} + +// MedicalPractitionerInfo Getter +func (r AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest) GetMedicalPractitionerInfo() *MedicalPractitionerInfo { + return r._medicalPractitionerInfo +} +// ReserveNumber Setter +// 健康预约凭证 +func (r *AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest) SetReserveNumber(_reserveNumber string) error { + r._reserveNumber = _reserveNumber + r.Set("reserve_number", _reserveNumber) + return nil +} + +// ReserveNumber Getter +func (r AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest) GetReserveNumber() string { + return r._reserveNumber +} +// Event Setter +// 事件(ASSIGNED_PRACTITONER:已分配医护人员、PRACTITONER_GO_OUT:医护人员已出发、PRACTITONER_HOME:医护人员已到家、PRACTITONER_CHECKED:医护人员检查完成)、CHANGE_PRACTITONER(变更医护人员) +func (r *AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest) SetEvent(_event string) error { + r._event = _event + r.Set("event", _event) + return nil +} + +// Event Getter +func (r AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest) GetEvent() string { + return r._event +} +// EventOccurTime Setter +// 事件发生时间 +func (r *AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest) SetEventOccurTime(_eventOccurTime string) error { + r._eventOccurTime = _eventOccurTime + r.Set("event_occur_time", _eventOccurTime) + return nil +} + +// EventOccurTime Getter +func (r AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIRequest) GetEventOccurTime() string { + return r._eventOccurTime +} diff --git a/model/examination/AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIResponse.go b/model/examination/AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIResponse.go new file mode 100644 index 0000000000..4ca70ecc1b --- /dev/null +++ b/model/examination/AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIResponse.go @@ -0,0 +1,27 @@ +package examination + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上门检测服务信息同步 API返回值 +alibaba.alihealth.examination.todoor.serviceinfo.sync + +isv同步上门检测服务信息给健康 +*/ +type AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIResponseModel +} + +// 上门检测服务信息同步 成功返回结果 +type AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_examination_todoor_serviceinfo_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/examination/AlibabaAlihealthExaminationTodoorServiceinfoSyncResponse.go b/model/examination/AlibabaAlihealthExaminationTodoorServiceinfoSyncResponse.go deleted file mode 100644 index 58a75c951b..0000000000 --- a/model/examination/AlibabaAlihealthExaminationTodoorServiceinfoSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package examination - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上门检测服务信息同步 API返回值 -alibaba.alihealth.examination.todoor.serviceinfo.sync - -isv同步上门检测服务信息给健康 -*/ -type AlibabaAlihealthExaminationTodoorServiceinfoSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthExaminationTodoorServiceinfoSyncResponse -} - -// 上门检测服务信息同步 成功返回结果 -type AlibabaAlihealthExaminationTodoorServiceinfoSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_examination_todoor_serviceinfo_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/exchange/TmallExchangeAgreeAPIRequest.go b/model/exchange/TmallExchangeAgreeAPIRequest.go new file mode 100644 index 0000000000..d6bb77a771 --- /dev/null +++ b/model/exchange/TmallExchangeAgreeAPIRequest.go @@ -0,0 +1,150 @@ +package exchange + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家同意换货申请 API请求 +tmall.exchange.agree + +卖家同意换货申请 +*/ +type TmallExchangeAgreeAPIRequest struct { + model.Params + // 邮政编码 + _post string + // 上传图片举证 + _leaveMessagePics *model.File + // 卖家留言 + _leaveMessage string + // 收货地址id,如需获取请调用该top接口:taobao.logistics.address.search,对应属性为contact_id + _addressId int64 + // 详细收货地址 + _completeAddress string + // 换货单号ID + _disputeId int64 + // 返回字段。当前支持的有 dispute_id, bizorder_id, modified, status + _fields []string + // 收货人手机号 + _mobile string +} + +// 初始化TmallExchangeAgreeAPIRequest对象 +func NewTmallExchangeAgreeRequest() *TmallExchangeAgreeAPIRequest{ + return &TmallExchangeAgreeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallExchangeAgreeAPIRequest) GetApiMethodName() string { + return "tmall.exchange.agree" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallExchangeAgreeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Post Setter +// 邮政编码 +func (r *TmallExchangeAgreeAPIRequest) SetPost(_post string) error { + r._post = _post + r.Set("post", _post) + return nil +} + +// Post Getter +func (r TmallExchangeAgreeAPIRequest) GetPost() string { + return r._post +} +// LeaveMessagePics Setter +// 上传图片举证 +func (r *TmallExchangeAgreeAPIRequest) SetLeaveMessagePics(_leaveMessagePics *model.File) error { + r._leaveMessagePics = _leaveMessagePics + r.Set("leave_message_pics", _leaveMessagePics) + return nil +} + +// LeaveMessagePics Getter +func (r TmallExchangeAgreeAPIRequest) GetLeaveMessagePics() *model.File { + return r._leaveMessagePics +} +// LeaveMessage Setter +// 卖家留言 +func (r *TmallExchangeAgreeAPIRequest) SetLeaveMessage(_leaveMessage string) error { + r._leaveMessage = _leaveMessage + r.Set("leave_message", _leaveMessage) + return nil +} + +// LeaveMessage Getter +func (r TmallExchangeAgreeAPIRequest) GetLeaveMessage() string { + return r._leaveMessage +} +// AddressId Setter +// 收货地址id,如需获取请调用该top接口:taobao.logistics.address.search,对应属性为contact_id +func (r *TmallExchangeAgreeAPIRequest) SetAddressId(_addressId int64) error { + r._addressId = _addressId + r.Set("address_id", _addressId) + return nil +} + +// AddressId Getter +func (r TmallExchangeAgreeAPIRequest) GetAddressId() int64 { + return r._addressId +} +// CompleteAddress Setter +// 详细收货地址 +func (r *TmallExchangeAgreeAPIRequest) SetCompleteAddress(_completeAddress string) error { + r._completeAddress = _completeAddress + r.Set("complete_address", _completeAddress) + return nil +} + +// CompleteAddress Getter +func (r TmallExchangeAgreeAPIRequest) GetCompleteAddress() string { + return r._completeAddress +} +// DisputeId Setter +// 换货单号ID +func (r *TmallExchangeAgreeAPIRequest) SetDisputeId(_disputeId int64) error { + r._disputeId = _disputeId + r.Set("dispute_id", _disputeId) + return nil +} + +// DisputeId Getter +func (r TmallExchangeAgreeAPIRequest) GetDisputeId() int64 { + return r._disputeId +} +// Fields Setter +// 返回字段。当前支持的有 dispute_id, bizorder_id, modified, status +func (r *TmallExchangeAgreeAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TmallExchangeAgreeAPIRequest) GetFields() []string { + return r._fields +} +// Mobile Setter +// 收货人手机号 +func (r *TmallExchangeAgreeAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r TmallExchangeAgreeAPIRequest) GetMobile() string { + return r._mobile +} diff --git a/model/exchange/TmallExchangeAgreeAPIResponse.go b/model/exchange/TmallExchangeAgreeAPIResponse.go new file mode 100644 index 0000000000..a113d6c19e --- /dev/null +++ b/model/exchange/TmallExchangeAgreeAPIResponse.go @@ -0,0 +1,27 @@ +package exchange + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家同意换货申请 API返回值 +tmall.exchange.agree + +卖家同意换货申请 +*/ +type TmallExchangeAgreeAPIResponse struct { + model.CommonResponse + TmallExchangeAgreeAPIResponseModel +} + +// 卖家同意换货申请 成功返回结果 +type TmallExchangeAgreeAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_exchange_agree_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *ExchangeBaseResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/exchange/TmallExchangeAgreeResponse.go b/model/exchange/TmallExchangeAgreeResponse.go deleted file mode 100644 index cfe08fcdd7..0000000000 --- a/model/exchange/TmallExchangeAgreeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package exchange - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家同意换货申请 API返回值 -tmall.exchange.agree - -卖家同意换货申请 -*/ -type TmallExchangeAgreeAPIResponse struct { - model.CommonResponse - TmallExchangeAgreeResponse -} - -// 卖家同意换货申请 成功返回结果 -type TmallExchangeAgreeResponse struct { - XMLName xml.Name `xml:"tmall_exchange_agree_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *ExchangeBaseResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/exchange/TmallExchangeConsigngoodsAPIRequest.go b/model/exchange/TmallExchangeConsigngoodsAPIRequest.go new file mode 100644 index 0000000000..ddaf6060f0 --- /dev/null +++ b/model/exchange/TmallExchangeConsigngoodsAPIRequest.go @@ -0,0 +1,108 @@ +package exchange + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家发货 API请求 +tmall.exchange.consigngoods + +卖家发货 +*/ +type TmallExchangeConsigngoodsAPIRequest struct { + model.Params + // 换货单号ID + _disputeId int64 + // 卖家发货的物流单号 + _logisticsNo string + // 卖家发货的物流类型,100表示平邮,200表示快递 + _logisticsType int64 + // 卖家发货的快递公司 + _logisticsCompanyName string + // 返回字段 + _fields []string +} + +// 初始化TmallExchangeConsigngoodsAPIRequest对象 +func NewTmallExchangeConsigngoodsRequest() *TmallExchangeConsigngoodsAPIRequest{ + return &TmallExchangeConsigngoodsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallExchangeConsigngoodsAPIRequest) GetApiMethodName() string { + return "tmall.exchange.consigngoods" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallExchangeConsigngoodsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DisputeId Setter +// 换货单号ID +func (r *TmallExchangeConsigngoodsAPIRequest) SetDisputeId(_disputeId int64) error { + r._disputeId = _disputeId + r.Set("dispute_id", _disputeId) + return nil +} + +// DisputeId Getter +func (r TmallExchangeConsigngoodsAPIRequest) GetDisputeId() int64 { + return r._disputeId +} +// LogisticsNo Setter +// 卖家发货的物流单号 +func (r *TmallExchangeConsigngoodsAPIRequest) SetLogisticsNo(_logisticsNo string) error { + r._logisticsNo = _logisticsNo + r.Set("logistics_no", _logisticsNo) + return nil +} + +// LogisticsNo Getter +func (r TmallExchangeConsigngoodsAPIRequest) GetLogisticsNo() string { + return r._logisticsNo +} +// LogisticsType Setter +// 卖家发货的物流类型,100表示平邮,200表示快递 +func (r *TmallExchangeConsigngoodsAPIRequest) SetLogisticsType(_logisticsType int64) error { + r._logisticsType = _logisticsType + r.Set("logistics_type", _logisticsType) + return nil +} + +// LogisticsType Getter +func (r TmallExchangeConsigngoodsAPIRequest) GetLogisticsType() int64 { + return r._logisticsType +} +// LogisticsCompanyName Setter +// 卖家发货的快递公司 +func (r *TmallExchangeConsigngoodsAPIRequest) SetLogisticsCompanyName(_logisticsCompanyName string) error { + r._logisticsCompanyName = _logisticsCompanyName + r.Set("logistics_company_name", _logisticsCompanyName) + return nil +} + +// LogisticsCompanyName Getter +func (r TmallExchangeConsigngoodsAPIRequest) GetLogisticsCompanyName() string { + return r._logisticsCompanyName +} +// Fields Setter +// 返回字段 +func (r *TmallExchangeConsigngoodsAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TmallExchangeConsigngoodsAPIRequest) GetFields() []string { + return r._fields +} diff --git a/model/exchange/TmallExchangeConsigngoodsAPIResponse.go b/model/exchange/TmallExchangeConsigngoodsAPIResponse.go new file mode 100644 index 0000000000..d5f7faea70 --- /dev/null +++ b/model/exchange/TmallExchangeConsigngoodsAPIResponse.go @@ -0,0 +1,27 @@ +package exchange + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家发货 API返回值 +tmall.exchange.consigngoods + +卖家发货 +*/ +type TmallExchangeConsigngoodsAPIResponse struct { + model.CommonResponse + TmallExchangeConsigngoodsAPIResponseModel +} + +// 卖家发货 成功返回结果 +type TmallExchangeConsigngoodsAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_exchange_consigngoods_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *RefundBaseResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/exchange/TmallExchangeConsigngoodsResponse.go b/model/exchange/TmallExchangeConsigngoodsResponse.go deleted file mode 100644 index 7063b6092e..0000000000 --- a/model/exchange/TmallExchangeConsigngoodsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package exchange - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家发货 API返回值 -tmall.exchange.consigngoods - -卖家发货 -*/ -type TmallExchangeConsigngoodsAPIResponse struct { - model.CommonResponse - TmallExchangeConsigngoodsResponse -} - -// 卖家发货 成功返回结果 -type TmallExchangeConsigngoodsResponse struct { - XMLName xml.Name `xml:"tmall_exchange_consigngoods_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *RefundBaseResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/exchange/TmallExchangeGetAPIRequest.go b/model/exchange/TmallExchangeGetAPIRequest.go new file mode 100644 index 0000000000..6937247f84 --- /dev/null +++ b/model/exchange/TmallExchangeGetAPIRequest.go @@ -0,0 +1,66 @@ +package exchange + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单笔换货详情 API请求 +tmall.exchange.get + +获取单笔换货详情 +*/ +type TmallExchangeGetAPIRequest struct { + model.Params + // 换货单号ID + _disputeId int64 + // 返回字段。目前支持dispute_id, bizorder_id, num, buyer_nick, status, created, modified, reason, title, buyer_logistic_no, seller_logistic_no, bought_sku, exchange_sku, buyer_address, address, buyer_phone, buyer_logistic_name, seller_logistic_name, alipay_no, buyer_name, seller_nick + _fields []string +} + +// 初始化TmallExchangeGetAPIRequest对象 +func NewTmallExchangeGetRequest() *TmallExchangeGetAPIRequest{ + return &TmallExchangeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallExchangeGetAPIRequest) GetApiMethodName() string { + return "tmall.exchange.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallExchangeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DisputeId Setter +// 换货单号ID +func (r *TmallExchangeGetAPIRequest) SetDisputeId(_disputeId int64) error { + r._disputeId = _disputeId + r.Set("dispute_id", _disputeId) + return nil +} + +// DisputeId Getter +func (r TmallExchangeGetAPIRequest) GetDisputeId() int64 { + return r._disputeId +} +// Fields Setter +// 返回字段。目前支持dispute_id, bizorder_id, num, buyer_nick, status, created, modified, reason, title, buyer_logistic_no, seller_logistic_no, bought_sku, exchange_sku, buyer_address, address, buyer_phone, buyer_logistic_name, seller_logistic_name, alipay_no, buyer_name, seller_nick +func (r *TmallExchangeGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TmallExchangeGetAPIRequest) GetFields() []string { + return r._fields +} diff --git a/model/exchange/TmallExchangeGetAPIResponse.go b/model/exchange/TmallExchangeGetAPIResponse.go new file mode 100644 index 0000000000..928b261d5b --- /dev/null +++ b/model/exchange/TmallExchangeGetAPIResponse.go @@ -0,0 +1,27 @@ +package exchange + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单笔换货详情 API返回值 +tmall.exchange.get + +获取单笔换货详情 +*/ +type TmallExchangeGetAPIResponse struct { + model.CommonResponse + TmallExchangeGetAPIResponseModel +} + +// 获取单笔换货详情 成功返回结果 +type TmallExchangeGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_exchange_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *ExchangeBaseResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/exchange/TmallExchangeGetResponse.go b/model/exchange/TmallExchangeGetResponse.go deleted file mode 100644 index 0b0fb6cca3..0000000000 --- a/model/exchange/TmallExchangeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package exchange - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取单笔换货详情 API返回值 -tmall.exchange.get - -获取单笔换货详情 -*/ -type TmallExchangeGetAPIResponse struct { - model.CommonResponse - TmallExchangeGetResponse -} - -// 获取单笔换货详情 成功返回结果 -type TmallExchangeGetResponse struct { - XMLName xml.Name `xml:"tmall_exchange_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *ExchangeBaseResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/exchange/TmallExchangeMessageAddAPIRequest.go b/model/exchange/TmallExchangeMessageAddAPIRequest.go new file mode 100644 index 0000000000..f5963302ba --- /dev/null +++ b/model/exchange/TmallExchangeMessageAddAPIRequest.go @@ -0,0 +1,94 @@ +package exchange + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家创建换货留言 API请求 +tmall.exchange.message.add + +卖家创建换货留言 +*/ +type TmallExchangeMessageAddAPIRequest struct { + model.Params + // 留言内容 + _content string + // 换货单号ID + _disputeId int64 + // 凭证图片列表 + _messagePics *model.File + // 返回字段。目前支持id,refund_id,owner_id,owner_nick,owner_role,content,pic_urls,created,message_type + _fields []string +} + +// 初始化TmallExchangeMessageAddAPIRequest对象 +func NewTmallExchangeMessageAddRequest() *TmallExchangeMessageAddAPIRequest{ + return &TmallExchangeMessageAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallExchangeMessageAddAPIRequest) GetApiMethodName() string { + return "tmall.exchange.message.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallExchangeMessageAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Content Setter +// 留言内容 +func (r *TmallExchangeMessageAddAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r TmallExchangeMessageAddAPIRequest) GetContent() string { + return r._content +} +// DisputeId Setter +// 换货单号ID +func (r *TmallExchangeMessageAddAPIRequest) SetDisputeId(_disputeId int64) error { + r._disputeId = _disputeId + r.Set("dispute_id", _disputeId) + return nil +} + +// DisputeId Getter +func (r TmallExchangeMessageAddAPIRequest) GetDisputeId() int64 { + return r._disputeId +} +// MessagePics Setter +// 凭证图片列表 +func (r *TmallExchangeMessageAddAPIRequest) SetMessagePics(_messagePics *model.File) error { + r._messagePics = _messagePics + r.Set("message_pics", _messagePics) + return nil +} + +// MessagePics Getter +func (r TmallExchangeMessageAddAPIRequest) GetMessagePics() *model.File { + return r._messagePics +} +// Fields Setter +// 返回字段。目前支持id,refund_id,owner_id,owner_nick,owner_role,content,pic_urls,created,message_type +func (r *TmallExchangeMessageAddAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TmallExchangeMessageAddAPIRequest) GetFields() []string { + return r._fields +} diff --git a/model/exchange/TmallExchangeMessageAddAPIResponse.go b/model/exchange/TmallExchangeMessageAddAPIResponse.go new file mode 100644 index 0000000000..f334953d81 --- /dev/null +++ b/model/exchange/TmallExchangeMessageAddAPIResponse.go @@ -0,0 +1,27 @@ +package exchange + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家创建换货留言 API返回值 +tmall.exchange.message.add + +卖家创建换货留言 +*/ +type TmallExchangeMessageAddAPIResponse struct { + model.CommonResponse + TmallExchangeMessageAddAPIResponseModel +} + +// 卖家创建换货留言 成功返回结果 +type TmallExchangeMessageAddAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_exchange_message_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TmallExchangeMessageAddResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/exchange/TmallExchangeMessageAddResponse.go b/model/exchange/TmallExchangeMessageAddResponse.go deleted file mode 100644 index b1c37f4ac7..0000000000 --- a/model/exchange/TmallExchangeMessageAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package exchange - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家创建换货留言 API返回值 -tmall.exchange.message.add - -卖家创建换货留言 -*/ -type TmallExchangeMessageAddAPIResponse struct { - model.CommonResponse - TmallExchangeMessageAddResponse -} - -// 卖家创建换货留言 成功返回结果 -type TmallExchangeMessageAddResponse struct { - XMLName xml.Name `xml:"tmall_exchange_message_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TmallExchangeMessageAddResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/exchange/TmallExchangeMessagesGetAPIRequest.go b/model/exchange/TmallExchangeMessagesGetAPIRequest.go new file mode 100644 index 0000000000..4d016bb06e --- /dev/null +++ b/model/exchange/TmallExchangeMessagesGetAPIRequest.go @@ -0,0 +1,108 @@ +package exchange + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询换货订单留言列表 API请求 +tmall.exchange.messages.get + +查询换货订单留言列表 +*/ +type TmallExchangeMessagesGetAPIRequest struct { + model.Params + // 留言创建角色。具体包括:卖家主账户(1)、卖家子账户(2)、小二(3)、买家(4)、系统(5)、系统超时(6) + _operatorRoles []int64 + // 每页条数 + _pageSize int64 + // 换货单号ID + _disputeId int64 + // 页码 + _pageNo int64 + // 返回的字段。具体包括:id,refund_id,owner_id,owner_nick,owner_role,content,pic_urls,created,message_type + _fields []string +} + +// 初始化TmallExchangeMessagesGetAPIRequest对象 +func NewTmallExchangeMessagesGetRequest() *TmallExchangeMessagesGetAPIRequest{ + return &TmallExchangeMessagesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallExchangeMessagesGetAPIRequest) GetApiMethodName() string { + return "tmall.exchange.messages.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallExchangeMessagesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OperatorRoles Setter +// 留言创建角色。具体包括:卖家主账户(1)、卖家子账户(2)、小二(3)、买家(4)、系统(5)、系统超时(6) +func (r *TmallExchangeMessagesGetAPIRequest) SetOperatorRoles(_operatorRoles []int64) error { + r._operatorRoles = _operatorRoles + r.Set("operator_roles", _operatorRoles) + return nil +} + +// OperatorRoles Getter +func (r TmallExchangeMessagesGetAPIRequest) GetOperatorRoles() []int64 { + return r._operatorRoles +} +// PageSize Setter +// 每页条数 +func (r *TmallExchangeMessagesGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TmallExchangeMessagesGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// DisputeId Setter +// 换货单号ID +func (r *TmallExchangeMessagesGetAPIRequest) SetDisputeId(_disputeId int64) error { + r._disputeId = _disputeId + r.Set("dispute_id", _disputeId) + return nil +} + +// DisputeId Getter +func (r TmallExchangeMessagesGetAPIRequest) GetDisputeId() int64 { + return r._disputeId +} +// PageNo Setter +// 页码 +func (r *TmallExchangeMessagesGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TmallExchangeMessagesGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// Fields Setter +// 返回的字段。具体包括:id,refund_id,owner_id,owner_nick,owner_role,content,pic_urls,created,message_type +func (r *TmallExchangeMessagesGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TmallExchangeMessagesGetAPIRequest) GetFields() []string { + return r._fields +} diff --git a/model/exchange/TmallExchangeMessagesGetAPIResponse.go b/model/exchange/TmallExchangeMessagesGetAPIResponse.go new file mode 100644 index 0000000000..d6e9ae4be0 --- /dev/null +++ b/model/exchange/TmallExchangeMessagesGetAPIResponse.go @@ -0,0 +1,27 @@ +package exchange + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询换货订单留言列表 API返回值 +tmall.exchange.messages.get + +查询换货订单留言列表 +*/ +type TmallExchangeMessagesGetAPIResponse struct { + model.CommonResponse + TmallExchangeMessagesGetAPIResponseModel +} + +// 查询换货订单留言列表 成功返回结果 +type TmallExchangeMessagesGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_exchange_messages_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *RefundMessageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/exchange/TmallExchangeMessagesGetResponse.go b/model/exchange/TmallExchangeMessagesGetResponse.go deleted file mode 100644 index 2cd8f7e774..0000000000 --- a/model/exchange/TmallExchangeMessagesGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package exchange - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询换货订单留言列表 API返回值 -tmall.exchange.messages.get - -查询换货订单留言列表 -*/ -type TmallExchangeMessagesGetAPIResponse struct { - model.CommonResponse - TmallExchangeMessagesGetResponse -} - -// 查询换货订单留言列表 成功返回结果 -type TmallExchangeMessagesGetResponse struct { - XMLName xml.Name `xml:"tmall_exchange_messages_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *RefundMessageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/exchange/TmallExchangeReceiveGetAPIRequest.go b/model/exchange/TmallExchangeReceiveGetAPIRequest.go new file mode 100644 index 0000000000..a4203ae134 --- /dev/null +++ b/model/exchange/TmallExchangeReceiveGetAPIRequest.go @@ -0,0 +1,220 @@ +package exchange + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家查询换货列表 API请求 +tmall.exchange.receive.get + +卖家查询换货列表 +*/ +type TmallExchangeReceiveGetAPIRequest struct { + model.Params + // 查询修改时间段的结束时间点 + _endGmtModifedTime string + // 查询修改时间段的开始时间点 + _startGmtModifiedTime string + // 快递单号 + _logisticNo string + // 买家昵称 + _buyerNick string + // 查询申请时间段的开始时间点 + _startCreatedTime string + // 返回字段。目前支持dispute_id, bizorder_id, num, buyer_nick, status, created, modified, reason, title, buyer_logistic_no, seller_logistic_no, bought_sku, exchange_sku, buyer_address, address, buyer_phone, buyer_logistic_name, seller_logistic_name, alipay_no, buyer_name, seller_nick + _fields []string + // 每页条数 + _pageSize int64 + // 换货状态,具体包括:换货待处理(1), 待买家退货(2), 买家已退货,待收货(3), 换货关闭(4), 换货成功(5), 待买家修改(6), 待发出换货商品(12), 待买家收货(13), 请退款(14) + _disputeStatusArray []int64 + // 查询申请时间段的结束时间点 + _endCreatedTime string + // 买家id + _buyerId int64 + // 退款单号ID列表,最多只能输入20个id + _refundIdArray []int64 + // 页码 + _pageNo int64 + // 正向订单号 + _bizOrderId int64 +} + +// 初始化TmallExchangeReceiveGetAPIRequest对象 +func NewTmallExchangeReceiveGetRequest() *TmallExchangeReceiveGetAPIRequest{ + return &TmallExchangeReceiveGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallExchangeReceiveGetAPIRequest) GetApiMethodName() string { + return "tmall.exchange.receive.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallExchangeReceiveGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EndGmtModifedTime Setter +// 查询修改时间段的结束时间点 +func (r *TmallExchangeReceiveGetAPIRequest) SetEndGmtModifedTime(_endGmtModifedTime string) error { + r._endGmtModifedTime = _endGmtModifedTime + r.Set("end_gmt_modifed_time", _endGmtModifedTime) + return nil +} + +// EndGmtModifedTime Getter +func (r TmallExchangeReceiveGetAPIRequest) GetEndGmtModifedTime() string { + return r._endGmtModifedTime +} +// StartGmtModifiedTime Setter +// 查询修改时间段的开始时间点 +func (r *TmallExchangeReceiveGetAPIRequest) SetStartGmtModifiedTime(_startGmtModifiedTime string) error { + r._startGmtModifiedTime = _startGmtModifiedTime + r.Set("start_gmt_modified_time", _startGmtModifiedTime) + return nil +} + +// StartGmtModifiedTime Getter +func (r TmallExchangeReceiveGetAPIRequest) GetStartGmtModifiedTime() string { + return r._startGmtModifiedTime +} +// LogisticNo Setter +// 快递单号 +func (r *TmallExchangeReceiveGetAPIRequest) SetLogisticNo(_logisticNo string) error { + r._logisticNo = _logisticNo + r.Set("logistic_no", _logisticNo) + return nil +} + +// LogisticNo Getter +func (r TmallExchangeReceiveGetAPIRequest) GetLogisticNo() string { + return r._logisticNo +} +// BuyerNick Setter +// 买家昵称 +func (r *TmallExchangeReceiveGetAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TmallExchangeReceiveGetAPIRequest) GetBuyerNick() string { + return r._buyerNick +} +// StartCreatedTime Setter +// 查询申请时间段的开始时间点 +func (r *TmallExchangeReceiveGetAPIRequest) SetStartCreatedTime(_startCreatedTime string) error { + r._startCreatedTime = _startCreatedTime + r.Set("start_created_time", _startCreatedTime) + return nil +} + +// StartCreatedTime Getter +func (r TmallExchangeReceiveGetAPIRequest) GetStartCreatedTime() string { + return r._startCreatedTime +} +// Fields Setter +// 返回字段。目前支持dispute_id, bizorder_id, num, buyer_nick, status, created, modified, reason, title, buyer_logistic_no, seller_logistic_no, bought_sku, exchange_sku, buyer_address, address, buyer_phone, buyer_logistic_name, seller_logistic_name, alipay_no, buyer_name, seller_nick +func (r *TmallExchangeReceiveGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TmallExchangeReceiveGetAPIRequest) GetFields() []string { + return r._fields +} +// PageSize Setter +// 每页条数 +func (r *TmallExchangeReceiveGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TmallExchangeReceiveGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// DisputeStatusArray Setter +// 换货状态,具体包括:换货待处理(1), 待买家退货(2), 买家已退货,待收货(3), 换货关闭(4), 换货成功(5), 待买家修改(6), 待发出换货商品(12), 待买家收货(13), 请退款(14) +func (r *TmallExchangeReceiveGetAPIRequest) SetDisputeStatusArray(_disputeStatusArray []int64) error { + r._disputeStatusArray = _disputeStatusArray + r.Set("dispute_status_array", _disputeStatusArray) + return nil +} + +// DisputeStatusArray Getter +func (r TmallExchangeReceiveGetAPIRequest) GetDisputeStatusArray() []int64 { + return r._disputeStatusArray +} +// EndCreatedTime Setter +// 查询申请时间段的结束时间点 +func (r *TmallExchangeReceiveGetAPIRequest) SetEndCreatedTime(_endCreatedTime string) error { + r._endCreatedTime = _endCreatedTime + r.Set("end_created_time", _endCreatedTime) + return nil +} + +// EndCreatedTime Getter +func (r TmallExchangeReceiveGetAPIRequest) GetEndCreatedTime() string { + return r._endCreatedTime +} +// BuyerId Setter +// 买家id +func (r *TmallExchangeReceiveGetAPIRequest) SetBuyerId(_buyerId int64) error { + r._buyerId = _buyerId + r.Set("buyer_id", _buyerId) + return nil +} + +// BuyerId Getter +func (r TmallExchangeReceiveGetAPIRequest) GetBuyerId() int64 { + return r._buyerId +} +// RefundIdArray Setter +// 退款单号ID列表,最多只能输入20个id +func (r *TmallExchangeReceiveGetAPIRequest) SetRefundIdArray(_refundIdArray []int64) error { + r._refundIdArray = _refundIdArray + r.Set("refund_id_array", _refundIdArray) + return nil +} + +// RefundIdArray Getter +func (r TmallExchangeReceiveGetAPIRequest) GetRefundIdArray() []int64 { + return r._refundIdArray +} +// PageNo Setter +// 页码 +func (r *TmallExchangeReceiveGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TmallExchangeReceiveGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// BizOrderId Setter +// 正向订单号 +func (r *TmallExchangeReceiveGetAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r TmallExchangeReceiveGetAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} diff --git a/model/exchange/TmallExchangeReceiveGetAPIResponse.go b/model/exchange/TmallExchangeReceiveGetAPIResponse.go new file mode 100644 index 0000000000..69d92f5701 --- /dev/null +++ b/model/exchange/TmallExchangeReceiveGetAPIResponse.go @@ -0,0 +1,39 @@ +package exchange + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家查询换货列表 API返回值 +tmall.exchange.receive.get + +卖家查询换货列表 +*/ +type TmallExchangeReceiveGetAPIResponse struct { + model.CommonResponse + TmallExchangeReceiveGetAPIResponseModel +} + +// 卖家查询换货列表 成功返回结果 +type TmallExchangeReceiveGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_exchange_receive_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 所有符合查询条件的换货单的数量 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 返回结果 + Results []Exchange `json:"results,omitempty" xml:"results>exchange,omitempty"` + // 当前页的换货单数量 + PageResults int64 `json:"page_results,omitempty" xml:"page_results,omitempty"` + // 是否还有下一页 + HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` + // 所抛出异常 + Exception string `json:"exception,omitempty" xml:"exception,omitempty"` + // 错误码 + ErrorCodes string `json:"error_codes,omitempty" xml:"error_codes,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/exchange/TmallExchangeReceiveGetResponse.go b/model/exchange/TmallExchangeReceiveGetResponse.go deleted file mode 100644 index 382a02df1e..0000000000 --- a/model/exchange/TmallExchangeReceiveGetResponse.go +++ /dev/null @@ -1,39 +0,0 @@ -package exchange - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家查询换货列表 API返回值 -tmall.exchange.receive.get - -卖家查询换货列表 -*/ -type TmallExchangeReceiveGetAPIResponse struct { - model.CommonResponse - TmallExchangeReceiveGetResponse -} - -// 卖家查询换货列表 成功返回结果 -type TmallExchangeReceiveGetResponse struct { - XMLName xml.Name `xml:"tmall_exchange_receive_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 所有符合查询条件的换货单的数量 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 返回结果 - Results []Exchange `json:"results,omitempty" xml:"results>exchange,omitempty"` - // 当前页的换货单数量 - PageResults int64 `json:"page_results,omitempty" xml:"page_results,omitempty"` - // 是否还有下一页 - HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` - // 所抛出异常 - Exception string `json:"exception,omitempty" xml:"exception,omitempty"` - // 错误码 - ErrorCodes string `json:"error_codes,omitempty" xml:"error_codes,omitempty"` - // 错误信息 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/exchange/TmallExchangeRefuseAPIRequest.go b/model/exchange/TmallExchangeRefuseAPIRequest.go new file mode 100644 index 0000000000..283a5ed880 --- /dev/null +++ b/model/exchange/TmallExchangeRefuseAPIRequest.go @@ -0,0 +1,108 @@ +package exchange + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家拒绝换货申请 API请求 +tmall.exchange.refuse + +卖家拒绝换货申请 +*/ +type TmallExchangeRefuseAPIRequest struct { + model.Params + // 凭证图片 + _leaveMessagePics *model.File + // 拒绝换货申请时的留言 + _leaveMessage string + // 换货单号ID + _disputeId int64 + // 换货原因对应ID + _sellerRefuseReasonId int64 + // 返回字段。目前支持dispute_id, bizorder_id, modified, status + _fields []string +} + +// 初始化TmallExchangeRefuseAPIRequest对象 +func NewTmallExchangeRefuseRequest() *TmallExchangeRefuseAPIRequest{ + return &TmallExchangeRefuseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallExchangeRefuseAPIRequest) GetApiMethodName() string { + return "tmall.exchange.refuse" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallExchangeRefuseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LeaveMessagePics Setter +// 凭证图片 +func (r *TmallExchangeRefuseAPIRequest) SetLeaveMessagePics(_leaveMessagePics *model.File) error { + r._leaveMessagePics = _leaveMessagePics + r.Set("leave_message_pics", _leaveMessagePics) + return nil +} + +// LeaveMessagePics Getter +func (r TmallExchangeRefuseAPIRequest) GetLeaveMessagePics() *model.File { + return r._leaveMessagePics +} +// LeaveMessage Setter +// 拒绝换货申请时的留言 +func (r *TmallExchangeRefuseAPIRequest) SetLeaveMessage(_leaveMessage string) error { + r._leaveMessage = _leaveMessage + r.Set("leave_message", _leaveMessage) + return nil +} + +// LeaveMessage Getter +func (r TmallExchangeRefuseAPIRequest) GetLeaveMessage() string { + return r._leaveMessage +} +// DisputeId Setter +// 换货单号ID +func (r *TmallExchangeRefuseAPIRequest) SetDisputeId(_disputeId int64) error { + r._disputeId = _disputeId + r.Set("dispute_id", _disputeId) + return nil +} + +// DisputeId Getter +func (r TmallExchangeRefuseAPIRequest) GetDisputeId() int64 { + return r._disputeId +} +// SellerRefuseReasonId Setter +// 换货原因对应ID +func (r *TmallExchangeRefuseAPIRequest) SetSellerRefuseReasonId(_sellerRefuseReasonId int64) error { + r._sellerRefuseReasonId = _sellerRefuseReasonId + r.Set("seller_refuse_reason_id", _sellerRefuseReasonId) + return nil +} + +// SellerRefuseReasonId Getter +func (r TmallExchangeRefuseAPIRequest) GetSellerRefuseReasonId() int64 { + return r._sellerRefuseReasonId +} +// Fields Setter +// 返回字段。目前支持dispute_id, bizorder_id, modified, status +func (r *TmallExchangeRefuseAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TmallExchangeRefuseAPIRequest) GetFields() []string { + return r._fields +} diff --git a/model/exchange/TmallExchangeRefuseAPIResponse.go b/model/exchange/TmallExchangeRefuseAPIResponse.go new file mode 100644 index 0000000000..9c3f7cf071 --- /dev/null +++ b/model/exchange/TmallExchangeRefuseAPIResponse.go @@ -0,0 +1,27 @@ +package exchange + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家拒绝换货申请 API返回值 +tmall.exchange.refuse + +卖家拒绝换货申请 +*/ +type TmallExchangeRefuseAPIResponse struct { + model.CommonResponse + TmallExchangeRefuseAPIResponseModel +} + +// 卖家拒绝换货申请 成功返回结果 +type TmallExchangeRefuseAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_exchange_refuse_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *ExchangeBaseResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/exchange/TmallExchangeRefuseResponse.go b/model/exchange/TmallExchangeRefuseResponse.go deleted file mode 100644 index 8ed5fb1307..0000000000 --- a/model/exchange/TmallExchangeRefuseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package exchange - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家拒绝换货申请 API返回值 -tmall.exchange.refuse - -卖家拒绝换货申请 -*/ -type TmallExchangeRefuseAPIResponse struct { - model.CommonResponse - TmallExchangeRefuseResponse -} - -// 卖家拒绝换货申请 成功返回结果 -type TmallExchangeRefuseResponse struct { - XMLName xml.Name `xml:"tmall_exchange_refuse_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *ExchangeBaseResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/exchange/TmallExchangeRefusereasonGetAPIRequest.go b/model/exchange/TmallExchangeRefusereasonGetAPIRequest.go new file mode 100644 index 0000000000..13cfaaa0ce --- /dev/null +++ b/model/exchange/TmallExchangeRefusereasonGetAPIRequest.go @@ -0,0 +1,80 @@ +package exchange + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取拒绝换货原因列表 API请求 +tmall.exchange.refusereason.get + +获取拒绝换货原因列表 +*/ +type TmallExchangeRefusereasonGetAPIRequest struct { + model.Params + // 换货单号ID + _disputeId int64 + // 返回字段 + _fields []string + // 换货申请类型:0-任意类型;1-售中;2-售后 + _disputeType int64 +} + +// 初始化TmallExchangeRefusereasonGetAPIRequest对象 +func NewTmallExchangeRefusereasonGetRequest() *TmallExchangeRefusereasonGetAPIRequest{ + return &TmallExchangeRefusereasonGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallExchangeRefusereasonGetAPIRequest) GetApiMethodName() string { + return "tmall.exchange.refusereason.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallExchangeRefusereasonGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DisputeId Setter +// 换货单号ID +func (r *TmallExchangeRefusereasonGetAPIRequest) SetDisputeId(_disputeId int64) error { + r._disputeId = _disputeId + r.Set("dispute_id", _disputeId) + return nil +} + +// DisputeId Getter +func (r TmallExchangeRefusereasonGetAPIRequest) GetDisputeId() int64 { + return r._disputeId +} +// Fields Setter +// 返回字段 +func (r *TmallExchangeRefusereasonGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TmallExchangeRefusereasonGetAPIRequest) GetFields() []string { + return r._fields +} +// DisputeType Setter +// 换货申请类型:0-任意类型;1-售中;2-售后 +func (r *TmallExchangeRefusereasonGetAPIRequest) SetDisputeType(_disputeType int64) error { + r._disputeType = _disputeType + r.Set("dispute_type", _disputeType) + return nil +} + +// DisputeType Getter +func (r TmallExchangeRefusereasonGetAPIRequest) GetDisputeType() int64 { + return r._disputeType +} diff --git a/model/exchange/TmallExchangeRefusereasonGetAPIResponse.go b/model/exchange/TmallExchangeRefusereasonGetAPIResponse.go new file mode 100644 index 0000000000..186a6f7e6c --- /dev/null +++ b/model/exchange/TmallExchangeRefusereasonGetAPIResponse.go @@ -0,0 +1,27 @@ +package exchange + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取拒绝换货原因列表 API返回值 +tmall.exchange.refusereason.get + +获取拒绝换货原因列表 +*/ +type TmallExchangeRefusereasonGetAPIResponse struct { + model.CommonResponse + TmallExchangeRefusereasonGetAPIResponseModel +} + +// 获取拒绝换货原因列表 成功返回结果 +type TmallExchangeRefusereasonGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_exchange_refusereason_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TmallExchangeRefusereasonGetResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/exchange/TmallExchangeRefusereasonGetResponse.go b/model/exchange/TmallExchangeRefusereasonGetResponse.go deleted file mode 100644 index 3b803d5222..0000000000 --- a/model/exchange/TmallExchangeRefusereasonGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package exchange - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取拒绝换货原因列表 API返回值 -tmall.exchange.refusereason.get - -获取拒绝换货原因列表 -*/ -type TmallExchangeRefusereasonGetAPIResponse struct { - model.CommonResponse - TmallExchangeRefusereasonGetResponse -} - -// 获取拒绝换货原因列表 成功返回结果 -type TmallExchangeRefusereasonGetResponse struct { - XMLName xml.Name `xml:"tmall_exchange_refusereason_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TmallExchangeRefusereasonGetResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/exchange/TmallExchangeReturngoodsAgreeAPIRequest.go b/model/exchange/TmallExchangeReturngoodsAgreeAPIRequest.go new file mode 100644 index 0000000000..d494d5e683 --- /dev/null +++ b/model/exchange/TmallExchangeReturngoodsAgreeAPIRequest.go @@ -0,0 +1,66 @@ +package exchange + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家确认收货 API请求 +tmall.exchange.returngoods.agree + +卖家确认收货 +*/ +type TmallExchangeReturngoodsAgreeAPIRequest struct { + model.Params + // 换货单号ID + _disputeId int64 + // 返回字段。目前支持dispute_id(换货单号ID),bizorder_id(正向交易单号ID), modified(订单修改时间), status(当前换货状态) + _fields []string +} + +// 初始化TmallExchangeReturngoodsAgreeAPIRequest对象 +func NewTmallExchangeReturngoodsAgreeRequest() *TmallExchangeReturngoodsAgreeAPIRequest{ + return &TmallExchangeReturngoodsAgreeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallExchangeReturngoodsAgreeAPIRequest) GetApiMethodName() string { + return "tmall.exchange.returngoods.agree" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallExchangeReturngoodsAgreeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DisputeId Setter +// 换货单号ID +func (r *TmallExchangeReturngoodsAgreeAPIRequest) SetDisputeId(_disputeId int64) error { + r._disputeId = _disputeId + r.Set("dispute_id", _disputeId) + return nil +} + +// DisputeId Getter +func (r TmallExchangeReturngoodsAgreeAPIRequest) GetDisputeId() int64 { + return r._disputeId +} +// Fields Setter +// 返回字段。目前支持dispute_id(换货单号ID),bizorder_id(正向交易单号ID), modified(订单修改时间), status(当前换货状态) +func (r *TmallExchangeReturngoodsAgreeAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TmallExchangeReturngoodsAgreeAPIRequest) GetFields() []string { + return r._fields +} diff --git a/model/exchange/TmallExchangeReturngoodsAgreeAPIResponse.go b/model/exchange/TmallExchangeReturngoodsAgreeAPIResponse.go new file mode 100644 index 0000000000..40ae605eda --- /dev/null +++ b/model/exchange/TmallExchangeReturngoodsAgreeAPIResponse.go @@ -0,0 +1,27 @@ +package exchange + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家确认收货 API返回值 +tmall.exchange.returngoods.agree + +卖家确认收货 +*/ +type TmallExchangeReturngoodsAgreeAPIResponse struct { + model.CommonResponse + TmallExchangeReturngoodsAgreeAPIResponseModel +} + +// 卖家确认收货 成功返回结果 +type TmallExchangeReturngoodsAgreeAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_exchange_returngoods_agree_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *ExchangeBaseResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/exchange/TmallExchangeReturngoodsAgreeResponse.go b/model/exchange/TmallExchangeReturngoodsAgreeResponse.go deleted file mode 100644 index 2cdc5b7f5c..0000000000 --- a/model/exchange/TmallExchangeReturngoodsAgreeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package exchange - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家确认收货 API返回值 -tmall.exchange.returngoods.agree - -卖家确认收货 -*/ -type TmallExchangeReturngoodsAgreeAPIResponse struct { - model.CommonResponse - TmallExchangeReturngoodsAgreeResponse -} - -// 卖家确认收货 成功返回结果 -type TmallExchangeReturngoodsAgreeResponse struct { - XMLName xml.Name `xml:"tmall_exchange_returngoods_agree_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *ExchangeBaseResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/exchange/TmallExchangeReturngoodsRefuseAPIRequest.go b/model/exchange/TmallExchangeReturngoodsRefuseAPIRequest.go new file mode 100644 index 0000000000..0f18db970e --- /dev/null +++ b/model/exchange/TmallExchangeReturngoodsRefuseAPIRequest.go @@ -0,0 +1,94 @@ +package exchange + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家拒绝确认收货 API请求 +tmall.exchange.returngoods.refuse + +卖家拒绝买家换货申请 +*/ +type TmallExchangeReturngoodsRefuseAPIRequest struct { + model.Params + // 凭证图片 + _leaveMessagePics *model.File + // 留言说明 + _leaveMessage string + // 换货单号ID + _disputeId int64 + // 拒绝原因ID + _sellerRefuseReasonId int64 +} + +// 初始化TmallExchangeReturngoodsRefuseAPIRequest对象 +func NewTmallExchangeReturngoodsRefuseRequest() *TmallExchangeReturngoodsRefuseAPIRequest{ + return &TmallExchangeReturngoodsRefuseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallExchangeReturngoodsRefuseAPIRequest) GetApiMethodName() string { + return "tmall.exchange.returngoods.refuse" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallExchangeReturngoodsRefuseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LeaveMessagePics Setter +// 凭证图片 +func (r *TmallExchangeReturngoodsRefuseAPIRequest) SetLeaveMessagePics(_leaveMessagePics *model.File) error { + r._leaveMessagePics = _leaveMessagePics + r.Set("leave_message_pics", _leaveMessagePics) + return nil +} + +// LeaveMessagePics Getter +func (r TmallExchangeReturngoodsRefuseAPIRequest) GetLeaveMessagePics() *model.File { + return r._leaveMessagePics +} +// LeaveMessage Setter +// 留言说明 +func (r *TmallExchangeReturngoodsRefuseAPIRequest) SetLeaveMessage(_leaveMessage string) error { + r._leaveMessage = _leaveMessage + r.Set("leave_message", _leaveMessage) + return nil +} + +// LeaveMessage Getter +func (r TmallExchangeReturngoodsRefuseAPIRequest) GetLeaveMessage() string { + return r._leaveMessage +} +// DisputeId Setter +// 换货单号ID +func (r *TmallExchangeReturngoodsRefuseAPIRequest) SetDisputeId(_disputeId int64) error { + r._disputeId = _disputeId + r.Set("dispute_id", _disputeId) + return nil +} + +// DisputeId Getter +func (r TmallExchangeReturngoodsRefuseAPIRequest) GetDisputeId() int64 { + return r._disputeId +} +// SellerRefuseReasonId Setter +// 拒绝原因ID +func (r *TmallExchangeReturngoodsRefuseAPIRequest) SetSellerRefuseReasonId(_sellerRefuseReasonId int64) error { + r._sellerRefuseReasonId = _sellerRefuseReasonId + r.Set("seller_refuse_reason_id", _sellerRefuseReasonId) + return nil +} + +// SellerRefuseReasonId Getter +func (r TmallExchangeReturngoodsRefuseAPIRequest) GetSellerRefuseReasonId() int64 { + return r._sellerRefuseReasonId +} diff --git a/model/exchange/TmallExchangeReturngoodsRefuseAPIResponse.go b/model/exchange/TmallExchangeReturngoodsRefuseAPIResponse.go new file mode 100644 index 0000000000..91b9882cf0 --- /dev/null +++ b/model/exchange/TmallExchangeReturngoodsRefuseAPIResponse.go @@ -0,0 +1,27 @@ +package exchange + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家拒绝确认收货 API返回值 +tmall.exchange.returngoods.refuse + +卖家拒绝买家换货申请 +*/ +type TmallExchangeReturngoodsRefuseAPIResponse struct { + model.CommonResponse + TmallExchangeReturngoodsRefuseAPIResponseModel +} + +// 卖家拒绝确认收货 成功返回结果 +type TmallExchangeReturngoodsRefuseAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_exchange_returngoods_refuse_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *ExchangeBaseResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/exchange/TmallExchangeReturngoodsRefuseResponse.go b/model/exchange/TmallExchangeReturngoodsRefuseResponse.go deleted file mode 100644 index 03f98d07c9..0000000000 --- a/model/exchange/TmallExchangeReturngoodsRefuseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package exchange - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家拒绝确认收货 API返回值 -tmall.exchange.returngoods.refuse - -卖家拒绝买家换货申请 -*/ -type TmallExchangeReturngoodsRefuseAPIResponse struct { - model.CommonResponse - TmallExchangeReturngoodsRefuseResponse -} - -// 卖家拒绝确认收货 成功返回结果 -type TmallExchangeReturngoodsRefuseResponse struct { - XMLName xml.Name `xml:"tmall_exchange_returngoods_refuse_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *ExchangeBaseResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fans/TmallFansArenaPushAPIRequest.go b/model/fans/TmallFansArenaPushAPIRequest.go new file mode 100644 index 0000000000..eac1a41bac --- /dev/null +++ b/model/fans/TmallFansArenaPushAPIRequest.go @@ -0,0 +1,52 @@ +package fans + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +消息推送 API请求 +tmall.fans.arena.push + +超级擂台消息推送 +*/ +type TmallFansArenaPushAPIRequest struct { + model.Params + // 推送列表 + _pushList []PushMessageParamDo +} + +// 初始化TmallFansArenaPushAPIRequest对象 +func NewTmallFansArenaPushRequest() *TmallFansArenaPushAPIRequest{ + return &TmallFansArenaPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallFansArenaPushAPIRequest) GetApiMethodName() string { + return "tmall.fans.arena.push" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallFansArenaPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PushList Setter +// 推送列表 +func (r *TmallFansArenaPushAPIRequest) SetPushList(_pushList []PushMessageParamDo) error { + r._pushList = _pushList + r.Set("push_list", _pushList) + return nil +} + +// PushList Getter +func (r TmallFansArenaPushAPIRequest) GetPushList() []PushMessageParamDo { + return r._pushList +} diff --git a/model/fans/TmallFansArenaPushAPIResponse.go b/model/fans/TmallFansArenaPushAPIResponse.go new file mode 100644 index 0000000000..9bc2f51786 --- /dev/null +++ b/model/fans/TmallFansArenaPushAPIResponse.go @@ -0,0 +1,27 @@ +package fans + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +消息推送 API返回值 +tmall.fans.arena.push + +超级擂台消息推送 +*/ +type TmallFansArenaPushAPIResponse struct { + model.CommonResponse + TmallFansArenaPushAPIResponseModel +} + +// 消息推送 成功返回结果 +type TmallFansArenaPushAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_fans_arena_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *FansResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fans/TmallFansArenaPushResponse.go b/model/fans/TmallFansArenaPushResponse.go deleted file mode 100644 index cf58660123..0000000000 --- a/model/fans/TmallFansArenaPushResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fans - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -消息推送 API返回值 -tmall.fans.arena.push - -超级擂台消息推送 -*/ -type TmallFansArenaPushAPIResponse struct { - model.CommonResponse - TmallFansArenaPushResponse -} - -// 消息推送 成功返回结果 -type TmallFansArenaPushResponse struct { - XMLName xml.Name `xml:"tmall_fans_arena_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *FansResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fans/TmallFansArenaRecordAPIRequest.go b/model/fans/TmallFansArenaRecordAPIRequest.go new file mode 100644 index 0000000000..1a71e9510e --- /dev/null +++ b/model/fans/TmallFansArenaRecordAPIRequest.go @@ -0,0 +1,80 @@ +package fans + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +记录完成擂台的用户 API请求 +tmall.fans.arena.record + +记录完成擂台的用户和完成分数 +*/ +type TmallFansArenaRecordAPIRequest struct { + model.Params + // 资金池id + _cashPoolId int64 + // 用户得分 + _score int64 + // mixnick + _mixNick string +} + +// 初始化TmallFansArenaRecordAPIRequest对象 +func NewTmallFansArenaRecordRequest() *TmallFansArenaRecordAPIRequest{ + return &TmallFansArenaRecordAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallFansArenaRecordAPIRequest) GetApiMethodName() string { + return "tmall.fans.arena.record" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallFansArenaRecordAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CashPoolId Setter +// 资金池id +func (r *TmallFansArenaRecordAPIRequest) SetCashPoolId(_cashPoolId int64) error { + r._cashPoolId = _cashPoolId + r.Set("cash_pool_id", _cashPoolId) + return nil +} + +// CashPoolId Getter +func (r TmallFansArenaRecordAPIRequest) GetCashPoolId() int64 { + return r._cashPoolId +} +// Score Setter +// 用户得分 +func (r *TmallFansArenaRecordAPIRequest) SetScore(_score int64) error { + r._score = _score + r.Set("score", _score) + return nil +} + +// Score Getter +func (r TmallFansArenaRecordAPIRequest) GetScore() int64 { + return r._score +} +// MixNick Setter +// mixnick +func (r *TmallFansArenaRecordAPIRequest) SetMixNick(_mixNick string) error { + r._mixNick = _mixNick + r.Set("mix_nick", _mixNick) + return nil +} + +// MixNick Getter +func (r TmallFansArenaRecordAPIRequest) GetMixNick() string { + return r._mixNick +} diff --git a/model/fans/TmallFansArenaRecordAPIResponse.go b/model/fans/TmallFansArenaRecordAPIResponse.go new file mode 100644 index 0000000000..71420840ce --- /dev/null +++ b/model/fans/TmallFansArenaRecordAPIResponse.go @@ -0,0 +1,27 @@ +package fans + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +记录完成擂台的用户 API返回值 +tmall.fans.arena.record + +记录完成擂台的用户和完成分数 +*/ +type TmallFansArenaRecordAPIResponse struct { + model.CommonResponse + TmallFansArenaRecordAPIResponseModel +} + +// 记录完成擂台的用户 成功返回结果 +type TmallFansArenaRecordAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_fans_arena_record_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + FansResult *FansResult `json:"fans_result,omitempty" xml:"fans_result,omitempty"` +} diff --git a/model/fans/TmallFansArenaRecordResponse.go b/model/fans/TmallFansArenaRecordResponse.go deleted file mode 100644 index 15c0142663..0000000000 --- a/model/fans/TmallFansArenaRecordResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fans - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -记录完成擂台的用户 API返回值 -tmall.fans.arena.record - -记录完成擂台的用户和完成分数 -*/ -type TmallFansArenaRecordAPIResponse struct { - model.CommonResponse - TmallFansArenaRecordResponse -} - -// 记录完成擂台的用户 成功返回结果 -type TmallFansArenaRecordResponse struct { - XMLName xml.Name `xml:"tmall_fans_arena_record_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - FansResult *FansResult `json:"fans_result,omitempty" xml:"fans_result,omitempty"` -} diff --git a/model/fans/TmallFansCashpoolCheckpayAPIRequest.go b/model/fans/TmallFansCashpoolCheckpayAPIRequest.go new file mode 100644 index 0000000000..905c1fb581 --- /dev/null +++ b/model/fans/TmallFansCashpoolCheckpayAPIRequest.go @@ -0,0 +1,52 @@ +package fans + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +检查资金池付款状态 API请求 +tmall.fans.cashpool.checkpay + +检查资金池付款状态 +*/ +type TmallFansCashpoolCheckpayAPIRequest struct { + model.Params + // 资金池列表 + _cashPoolList []int64 +} + +// 初始化TmallFansCashpoolCheckpayAPIRequest对象 +func NewTmallFansCashpoolCheckpayRequest() *TmallFansCashpoolCheckpayAPIRequest{ + return &TmallFansCashpoolCheckpayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallFansCashpoolCheckpayAPIRequest) GetApiMethodName() string { + return "tmall.fans.cashpool.checkpay" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallFansCashpoolCheckpayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CashPoolList Setter +// 资金池列表 +func (r *TmallFansCashpoolCheckpayAPIRequest) SetCashPoolList(_cashPoolList []int64) error { + r._cashPoolList = _cashPoolList + r.Set("cash_pool_list", _cashPoolList) + return nil +} + +// CashPoolList Getter +func (r TmallFansCashpoolCheckpayAPIRequest) GetCashPoolList() []int64 { + return r._cashPoolList +} diff --git a/model/fans/TmallFansCashpoolCheckpayAPIResponse.go b/model/fans/TmallFansCashpoolCheckpayAPIResponse.go new file mode 100644 index 0000000000..041a0067ea --- /dev/null +++ b/model/fans/TmallFansCashpoolCheckpayAPIResponse.go @@ -0,0 +1,27 @@ +package fans + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +检查资金池付款状态 API返回值 +tmall.fans.cashpool.checkpay + +检查资金池付款状态 +*/ +type TmallFansCashpoolCheckpayAPIResponse struct { + model.CommonResponse + TmallFansCashpoolCheckpayAPIResponseModel +} + +// 检查资金池付款状态 成功返回结果 +type TmallFansCashpoolCheckpayAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_fans_cashpool_checkpay_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + FansResult *FansResult `json:"fans_result,omitempty" xml:"fans_result,omitempty"` +} diff --git a/model/fans/TmallFansCashpoolCheckpayResponse.go b/model/fans/TmallFansCashpoolCheckpayResponse.go deleted file mode 100644 index ae8914386b..0000000000 --- a/model/fans/TmallFansCashpoolCheckpayResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fans - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -检查资金池付款状态 API返回值 -tmall.fans.cashpool.checkpay - -检查资金池付款状态 -*/ -type TmallFansCashpoolCheckpayAPIResponse struct { - model.CommonResponse - TmallFansCashpoolCheckpayResponse -} - -// 检查资金池付款状态 成功返回结果 -type TmallFansCashpoolCheckpayResponse struct { - XMLName xml.Name `xml:"tmall_fans_cashpool_checkpay_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - FansResult *FansResult `json:"fans_result,omitempty" xml:"fans_result,omitempty"` -} diff --git a/model/fans/TmallFansCashpoolCreateAPIRequest.go b/model/fans/TmallFansCashpoolCreateAPIRequest.go new file mode 100644 index 0000000000..02989d409c --- /dev/null +++ b/model/fans/TmallFansCashpoolCreateAPIRequest.go @@ -0,0 +1,52 @@ +package fans + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建资金池 API请求 +tmall.fans.cashpool.create + +商家创建资金池接口 +*/ +type TmallFansCashpoolCreateAPIRequest struct { + model.Params + // 创建资奖池输入对象 + _createCashPoolParamDo *CreateCashPoolParamDo +} + +// 初始化TmallFansCashpoolCreateAPIRequest对象 +func NewTmallFansCashpoolCreateRequest() *TmallFansCashpoolCreateAPIRequest{ + return &TmallFansCashpoolCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallFansCashpoolCreateAPIRequest) GetApiMethodName() string { + return "tmall.fans.cashpool.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallFansCashpoolCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CreateCashPoolParamDo Setter +// 创建资奖池输入对象 +func (r *TmallFansCashpoolCreateAPIRequest) SetCreateCashPoolParamDo(_createCashPoolParamDo *CreateCashPoolParamDo) error { + r._createCashPoolParamDo = _createCashPoolParamDo + r.Set("create_cash_pool_param_do", _createCashPoolParamDo) + return nil +} + +// CreateCashPoolParamDo Getter +func (r TmallFansCashpoolCreateAPIRequest) GetCreateCashPoolParamDo() *CreateCashPoolParamDo { + return r._createCashPoolParamDo +} diff --git a/model/fans/TmallFansCashpoolCreateAPIResponse.go b/model/fans/TmallFansCashpoolCreateAPIResponse.go new file mode 100644 index 0000000000..fd3b5bd6e2 --- /dev/null +++ b/model/fans/TmallFansCashpoolCreateAPIResponse.go @@ -0,0 +1,27 @@ +package fans + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建资金池 API返回值 +tmall.fans.cashpool.create + +商家创建资金池接口 +*/ +type TmallFansCashpoolCreateAPIResponse struct { + model.CommonResponse + TmallFansCashpoolCreateAPIResponseModel +} + +// 创建资金池 成功返回结果 +type TmallFansCashpoolCreateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_fans_cashpool_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + FansResult *FansResult `json:"fans_result,omitempty" xml:"fans_result,omitempty"` +} diff --git a/model/fans/TmallFansCashpoolCreateResponse.go b/model/fans/TmallFansCashpoolCreateResponse.go deleted file mode 100644 index fd1e54a1bd..0000000000 --- a/model/fans/TmallFansCashpoolCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fans - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建资金池 API返回值 -tmall.fans.cashpool.create - -商家创建资金池接口 -*/ -type TmallFansCashpoolCreateAPIResponse struct { - model.CommonResponse - TmallFansCashpoolCreateResponse -} - -// 创建资金池 成功返回结果 -type TmallFansCashpoolCreateResponse struct { - XMLName xml.Name `xml:"tmall_fans_cashpool_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - FansResult *FansResult `json:"fans_result,omitempty" xml:"fans_result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowAccountGetAPIRequest.go b/model/feedflow/TaobaoFeedflowAccountGetAPIRequest.go new file mode 100644 index 0000000000..ee5fa77795 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowAccountGetAPIRequest.go @@ -0,0 +1,41 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取信息流账户详情 API请求 +taobao.feedflow.account.get + +获取账户信息接口。 +(1) BP显示余额 (字段 :banlance ) = 现金余额(字段:cash_balance) + 赠款余额; +(2) 可用余额(字段:availableBalance) = BP显示余额 +(3) 红包(字段:redPacket) +*/ +type TaobaoFeedflowAccountGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoFeedflowAccountGetAPIRequest对象 +func NewTaobaoFeedflowAccountGetRequest() *TaobaoFeedflowAccountGetAPIRequest{ + return &TaobaoFeedflowAccountGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowAccountGetAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.account.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowAccountGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/feedflow/TaobaoFeedflowAccountGetAPIResponse.go b/model/feedflow/TaobaoFeedflowAccountGetAPIResponse.go new file mode 100644 index 0000000000..f9a38f6450 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowAccountGetAPIResponse.go @@ -0,0 +1,30 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取信息流账户详情 API返回值 +taobao.feedflow.account.get + +获取账户信息接口。 +(1) BP显示余额 (字段 :banlance ) = 现金余额(字段:cash_balance) + 赠款余额; +(2) 可用余额(字段:availableBalance) = BP显示余额 +(3) 红包(字段:redPacket) +*/ +type TaobaoFeedflowAccountGetAPIResponse struct { + model.CommonResponse + TaobaoFeedflowAccountGetAPIResponseModel +} + +// 获取信息流账户详情 成功返回结果 +type TaobaoFeedflowAccountGetAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_account_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *ResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowAccountGetResponse.go b/model/feedflow/TaobaoFeedflowAccountGetResponse.go deleted file mode 100644 index caa83e8b8d..0000000000 --- a/model/feedflow/TaobaoFeedflowAccountGetResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取信息流账户详情 API返回值 -taobao.feedflow.account.get - -获取账户信息接口。 -(1) BP显示余额 (字段 :banlance ) = 现金余额(字段:cash_balance) + 赠款余额; -(2) 可用余额(字段:availableBalance) = BP显示余额 -(3) 红包(字段:redPacket) -*/ -type TaobaoFeedflowAccountGetAPIResponse struct { - model.CommonResponse - TaobaoFeedflowAccountGetResponse -} - -// 获取信息流账户详情 成功返回结果 -type TaobaoFeedflowAccountGetResponse struct { - XMLName xml.Name `xml:"feedflow_account_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *ResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowAccountRptdailylistAPIRequest.go b/model/feedflow/TaobaoFeedflowAccountRptdailylistAPIRequest.go new file mode 100644 index 0000000000..8ceb9fddbc --- /dev/null +++ b/model/feedflow/TaobaoFeedflowAccountRptdailylistAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取广告主分日数据 API请求 +taobao.feedflow.account.rptdailylist + +获取广告主分日数据 +*/ +type TaobaoFeedflowAccountRptdailylistAPIRequest struct { + model.Params + // 查询条件 + _rptQueryDTO *RptQueryDto +} + +// 初始化TaobaoFeedflowAccountRptdailylistAPIRequest对象 +func NewTaobaoFeedflowAccountRptdailylistRequest() *TaobaoFeedflowAccountRptdailylistAPIRequest{ + return &TaobaoFeedflowAccountRptdailylistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowAccountRptdailylistAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.account.rptdailylist" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowAccountRptdailylistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RptQueryDTO Setter +// 查询条件 +func (r *TaobaoFeedflowAccountRptdailylistAPIRequest) SetRptQueryDTO(_rptQueryDTO *RptQueryDto) error { + r._rptQueryDTO = _rptQueryDTO + r.Set("rpt_query_d_t_o", _rptQueryDTO) + return nil +} + +// RptQueryDTO Getter +func (r TaobaoFeedflowAccountRptdailylistAPIRequest) GetRptQueryDTO() *RptQueryDto { + return r._rptQueryDTO +} diff --git a/model/feedflow/TaobaoFeedflowAccountRptdailylistAPIResponse.go b/model/feedflow/TaobaoFeedflowAccountRptdailylistAPIResponse.go new file mode 100644 index 0000000000..89cbb74071 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowAccountRptdailylistAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取广告主分日数据 API返回值 +taobao.feedflow.account.rptdailylist + +获取广告主分日数据 +*/ +type TaobaoFeedflowAccountRptdailylistAPIResponse struct { + model.CommonResponse + TaobaoFeedflowAccountRptdailylistAPIResponseModel +} + +// 获取广告主分日数据 成功返回结果 +type TaobaoFeedflowAccountRptdailylistAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_account_rptdailylist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoFeedflowAccountRptdailylistResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowAccountRptdailylistResponse.go b/model/feedflow/TaobaoFeedflowAccountRptdailylistResponse.go deleted file mode 100644 index 22560cdb1c..0000000000 --- a/model/feedflow/TaobaoFeedflowAccountRptdailylistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取广告主分日数据 API返回值 -taobao.feedflow.account.rptdailylist - -获取广告主分日数据 -*/ -type TaobaoFeedflowAccountRptdailylistAPIResponse struct { - model.CommonResponse - TaobaoFeedflowAccountRptdailylistResponse -} - -// 获取广告主分日数据 成功返回结果 -type TaobaoFeedflowAccountRptdailylistResponse struct { - XMLName xml.Name `xml:"feedflow_account_rptdailylist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoFeedflowAccountRptdailylistResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowAccountRptdailylistResultDto.go b/model/feedflow/TaobaoFeedflowAccountRptdailylistResultDto.go new file mode 100644 index 0000000000..3221c7d898 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowAccountRptdailylistResultDto.go @@ -0,0 +1,11 @@ +package feedflow + +// TaobaoFeedflowAccountRptdailylistResultDto +type TaobaoFeedflowAccountRptdailylistResultDto struct { + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 报表信息 + RptList []RptResultDto `json:"rpt_list,omitempty" xml:"rpt_list>rpt_result_dto,omitempty"` + // 是否调用成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowAccountRpthourlistAPIRequest.go b/model/feedflow/TaobaoFeedflowAccountRpthourlistAPIRequest.go new file mode 100644 index 0000000000..e79f376ac8 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowAccountRpthourlistAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +超级推荐广告主分时报表查询 API请求 +taobao.feedflow.account.rpthourlist + +广告主分时报表查询,支持广告主查询最近90天内某一天的账户维度分时报表数据 +*/ +type TaobaoFeedflowAccountRpthourlistAPIRequest struct { + model.Params + // 查询参数 + _rptQuery *RptQueryDto +} + +// 初始化TaobaoFeedflowAccountRpthourlistAPIRequest对象 +func NewTaobaoFeedflowAccountRpthourlistRequest() *TaobaoFeedflowAccountRpthourlistAPIRequest{ + return &TaobaoFeedflowAccountRpthourlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowAccountRpthourlistAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.account.rpthourlist" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowAccountRpthourlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RptQuery Setter +// 查询参数 +func (r *TaobaoFeedflowAccountRpthourlistAPIRequest) SetRptQuery(_rptQuery *RptQueryDto) error { + r._rptQuery = _rptQuery + r.Set("rpt_query", _rptQuery) + return nil +} + +// RptQuery Getter +func (r TaobaoFeedflowAccountRpthourlistAPIRequest) GetRptQuery() *RptQueryDto { + return r._rptQuery +} diff --git a/model/feedflow/TaobaoFeedflowAccountRpthourlistAPIResponse.go b/model/feedflow/TaobaoFeedflowAccountRpthourlistAPIResponse.go new file mode 100644 index 0000000000..42ac4fb092 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowAccountRpthourlistAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +超级推荐广告主分时报表查询 API返回值 +taobao.feedflow.account.rpthourlist + +广告主分时报表查询,支持广告主查询最近90天内某一天的账户维度分时报表数据 +*/ +type TaobaoFeedflowAccountRpthourlistAPIResponse struct { + model.CommonResponse + TaobaoFeedflowAccountRpthourlistAPIResponseModel +} + +// 超级推荐广告主分时报表查询 成功返回结果 +type TaobaoFeedflowAccountRpthourlistAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_account_rpthourlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *TaobaoFeedflowAccountRpthourlistResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowAccountRpthourlistResponse.go b/model/feedflow/TaobaoFeedflowAccountRpthourlistResponse.go deleted file mode 100644 index 451d795fd7..0000000000 --- a/model/feedflow/TaobaoFeedflowAccountRpthourlistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -超级推荐广告主分时报表查询 API返回值 -taobao.feedflow.account.rpthourlist - -广告主分时报表查询,支持广告主查询最近90天内某一天的账户维度分时报表数据 -*/ -type TaobaoFeedflowAccountRpthourlistAPIResponse struct { - model.CommonResponse - TaobaoFeedflowAccountRpthourlistResponse -} - -// 超级推荐广告主分时报表查询 成功返回结果 -type TaobaoFeedflowAccountRpthourlistResponse struct { - XMLName xml.Name `xml:"feedflow_account_rpthourlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *TaobaoFeedflowAccountRpthourlistResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowAccountRpthourlistResultDto.go b/model/feedflow/TaobaoFeedflowAccountRpthourlistResultDto.go new file mode 100644 index 0000000000..8865f1024e --- /dev/null +++ b/model/feedflow/TaobaoFeedflowAccountRpthourlistResultDto.go @@ -0,0 +1,15 @@ +package feedflow + +// TaobaoFeedflowAccountRpthourlistResultDto +type TaobaoFeedflowAccountRpthourlistResultDto struct { + // 描述信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回结果 + RptList []RptResultDto `json:"rpt_list,omitempty" xml:"rpt_list>rpt_result_dto,omitempty"` + // 总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 返回信息 + ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupAddAPIRequest.go b/model/feedflow/TaobaoFeedflowItemAdgroupAddAPIRequest.go new file mode 100644 index 0000000000..9424b95fcc --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupAddAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流增加单元 API请求 +taobao.feedflow.item.adgroup.add + +信息流增加单元 +*/ +type TaobaoFeedflowItemAdgroupAddAPIRequest struct { + model.Params + // 单元信息 + _adgroup *AdgroupDto +} + +// 初始化TaobaoFeedflowItemAdgroupAddAPIRequest对象 +func NewTaobaoFeedflowItemAdgroupAddRequest() *TaobaoFeedflowItemAdgroupAddAPIRequest{ + return &TaobaoFeedflowItemAdgroupAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemAdgroupAddAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.adgroup.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemAdgroupAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Adgroup Setter +// 单元信息 +func (r *TaobaoFeedflowItemAdgroupAddAPIRequest) SetAdgroup(_adgroup *AdgroupDto) error { + r._adgroup = _adgroup + r.Set("adgroup", _adgroup) + return nil +} + +// Adgroup Getter +func (r TaobaoFeedflowItemAdgroupAddAPIRequest) GetAdgroup() *AdgroupDto { + return r._adgroup +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupAddAPIResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupAddAPIResponse.go new file mode 100644 index 0000000000..36aa9d41bd --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupAddAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流增加单元 API返回值 +taobao.feedflow.item.adgroup.add + +信息流增加单元 +*/ +type TaobaoFeedflowItemAdgroupAddAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemAdgroupAddAPIResponseModel +} + +// 信息流增加单元 成功返回结果 +type TaobaoFeedflowItemAdgroupAddAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_adgroup_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TaobaoFeedflowItemAdgroupAddResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupAddResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupAddResponse.go deleted file mode 100644 index eaf5a54f86..0000000000 --- a/model/feedflow/TaobaoFeedflowItemAdgroupAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -信息流增加单元 API返回值 -taobao.feedflow.item.adgroup.add - -信息流增加单元 -*/ -type TaobaoFeedflowItemAdgroupAddAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemAdgroupAddResponse -} - -// 信息流增加单元 成功返回结果 -type TaobaoFeedflowItemAdgroupAddResponse struct { - XMLName xml.Name `xml:"feedflow_item_adgroup_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TaobaoFeedflowItemAdgroupAddResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupAddResultDto.go b/model/feedflow/TaobaoFeedflowItemAdgroupAddResultDto.go new file mode 100644 index 0000000000..6d2f0ab050 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupAddResultDto.go @@ -0,0 +1,11 @@ +package feedflow + +// TaobaoFeedflowItemAdgroupAddResultDto +type TaobaoFeedflowItemAdgroupAddResultDto struct { + // 信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 单元id + Result int64 `json:"result,omitempty" xml:"result,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneBindAPIRequest.go b/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneBindAPIRequest.go new file mode 100644 index 0000000000..845e624d3b --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneBindAPIRequest.go @@ -0,0 +1,66 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流单元内绑定资源位 API请求 +taobao.feedflow.item.adgroup.adzone.bind + +信息流单元内绑定资源位 +*/ +type TaobaoFeedflowItemAdgroupAdzoneBindAPIRequest struct { + model.Params + // 新增的绑定资源位 + _bindAdzoneList []AdzoneBindDto + // 单元id + _adgroupId int64 +} + +// 初始化TaobaoFeedflowItemAdgroupAdzoneBindAPIRequest对象 +func NewTaobaoFeedflowItemAdgroupAdzoneBindRequest() *TaobaoFeedflowItemAdgroupAdzoneBindAPIRequest{ + return &TaobaoFeedflowItemAdgroupAdzoneBindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemAdgroupAdzoneBindAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.adgroup.adzone.bind" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemAdgroupAdzoneBindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BindAdzoneList Setter +// 新增的绑定资源位 +func (r *TaobaoFeedflowItemAdgroupAdzoneBindAPIRequest) SetBindAdzoneList(_bindAdzoneList []AdzoneBindDto) error { + r._bindAdzoneList = _bindAdzoneList + r.Set("bind_adzone_list", _bindAdzoneList) + return nil +} + +// BindAdzoneList Getter +func (r TaobaoFeedflowItemAdgroupAdzoneBindAPIRequest) GetBindAdzoneList() []AdzoneBindDto { + return r._bindAdzoneList +} +// AdgroupId Setter +// 单元id +func (r *TaobaoFeedflowItemAdgroupAdzoneBindAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoFeedflowItemAdgroupAdzoneBindAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneBindAPIResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneBindAPIResponse.go new file mode 100644 index 0000000000..0ae3402dd1 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneBindAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流单元内绑定资源位 API返回值 +taobao.feedflow.item.adgroup.adzone.bind + +信息流单元内绑定资源位 +*/ +type TaobaoFeedflowItemAdgroupAdzoneBindAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemAdgroupAdzoneBindAPIResponseModel +} + +// 信息流单元内绑定资源位 成功返回结果 +type TaobaoFeedflowItemAdgroupAdzoneBindAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_adgroup_adzone_bind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Result *TaobaoFeedflowItemAdgroupAdzoneBindResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneBindResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneBindResponse.go deleted file mode 100644 index d51c1f6284..0000000000 --- a/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneBindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -信息流单元内绑定资源位 API返回值 -taobao.feedflow.item.adgroup.adzone.bind - -信息流单元内绑定资源位 -*/ -type TaobaoFeedflowItemAdgroupAdzoneBindAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemAdgroupAdzoneBindResponse -} - -// 信息流单元内绑定资源位 成功返回结果 -type TaobaoFeedflowItemAdgroupAdzoneBindResponse struct { - XMLName xml.Name `xml:"feedflow_item_adgroup_adzone_bind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Result *TaobaoFeedflowItemAdgroupAdzoneBindResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneBindResultDto.go b/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneBindResultDto.go new file mode 100644 index 0000000000..5e2f79deb4 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneBindResultDto.go @@ -0,0 +1,9 @@ +package feedflow + +// TaobaoFeedflowItemAdgroupAdzoneBindResultDto +type TaobaoFeedflowItemAdgroupAdzoneBindResultDto struct { + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 调用是否成功,true-成功,false-失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupAdzonePageAPIRequest.go b/model/feedflow/TaobaoFeedflowItemAdgroupAdzonePageAPIRequest.go new file mode 100644 index 0000000000..5e5ee4ad36 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupAdzonePageAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流单元下查看绑定资源位 API请求 +taobao.feedflow.item.adgroup.adzone.page + +信息流单元下查看绑定资源位 +*/ +type TaobaoFeedflowItemAdgroupAdzonePageAPIRequest struct { + model.Params + // 查询条件 + _adzoneBindQuery *AdzoneBindQueryDto +} + +// 初始化TaobaoFeedflowItemAdgroupAdzonePageAPIRequest对象 +func NewTaobaoFeedflowItemAdgroupAdzonePageRequest() *TaobaoFeedflowItemAdgroupAdzonePageAPIRequest{ + return &TaobaoFeedflowItemAdgroupAdzonePageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemAdgroupAdzonePageAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.adgroup.adzone.page" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemAdgroupAdzonePageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AdzoneBindQuery Setter +// 查询条件 +func (r *TaobaoFeedflowItemAdgroupAdzonePageAPIRequest) SetAdzoneBindQuery(_adzoneBindQuery *AdzoneBindQueryDto) error { + r._adzoneBindQuery = _adzoneBindQuery + r.Set("adzone_bind_query", _adzoneBindQuery) + return nil +} + +// AdzoneBindQuery Getter +func (r TaobaoFeedflowItemAdgroupAdzonePageAPIRequest) GetAdzoneBindQuery() *AdzoneBindQueryDto { + return r._adzoneBindQuery +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupAdzonePageAPIResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupAdzonePageAPIResponse.go new file mode 100644 index 0000000000..3b28bce526 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupAdzonePageAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流单元下查看绑定资源位 API返回值 +taobao.feedflow.item.adgroup.adzone.page + +信息流单元下查看绑定资源位 +*/ +type TaobaoFeedflowItemAdgroupAdzonePageAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemAdgroupAdzonePageAPIResponseModel +} + +// 信息流单元下查看绑定资源位 成功返回结果 +type TaobaoFeedflowItemAdgroupAdzonePageAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_adgroup_adzone_page_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Result *TaobaoFeedflowItemAdgroupAdzonePageResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupAdzonePageResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupAdzonePageResponse.go deleted file mode 100644 index 00ea031c94..0000000000 --- a/model/feedflow/TaobaoFeedflowItemAdgroupAdzonePageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -信息流单元下查看绑定资源位 API返回值 -taobao.feedflow.item.adgroup.adzone.page - -信息流单元下查看绑定资源位 -*/ -type TaobaoFeedflowItemAdgroupAdzonePageAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemAdgroupAdzonePageResponse -} - -// 信息流单元下查看绑定资源位 成功返回结果 -type TaobaoFeedflowItemAdgroupAdzonePageResponse struct { - XMLName xml.Name `xml:"feedflow_item_adgroup_adzone_page_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Result *TaobaoFeedflowItemAdgroupAdzonePageResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupAdzonePageResultDto.go b/model/feedflow/TaobaoFeedflowItemAdgroupAdzonePageResultDto.go new file mode 100644 index 0000000000..ad8fbfec23 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupAdzonePageResultDto.go @@ -0,0 +1,13 @@ +package feedflow + +// TaobaoFeedflowItemAdgroupAdzonePageResultDto +type TaobaoFeedflowItemAdgroupAdzonePageResultDto struct { + // 返回消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 广告位总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 调用是否成功,true-成功,false-失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 广告位列表 + AdzoneBindList []AdzoneBindDto `json:"adzone_bind_list,omitempty" xml:"adzone_bind_list>adzone_bind_dto,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneUnbindAPIRequest.go b/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneUnbindAPIRequest.go new file mode 100644 index 0000000000..c71e694170 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneUnbindAPIRequest.go @@ -0,0 +1,66 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流单元内解绑资源位 API请求 +taobao.feedflow.item.adgroup.adzone.unbind + +信息流单元内解绑资源位 +*/ +type TaobaoFeedflowItemAdgroupAdzoneUnbindAPIRequest struct { + model.Params + // 广告位id + _adzoneIdList []int64 + // 单元id + _adgroupId int64 +} + +// 初始化TaobaoFeedflowItemAdgroupAdzoneUnbindAPIRequest对象 +func NewTaobaoFeedflowItemAdgroupAdzoneUnbindRequest() *TaobaoFeedflowItemAdgroupAdzoneUnbindAPIRequest{ + return &TaobaoFeedflowItemAdgroupAdzoneUnbindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemAdgroupAdzoneUnbindAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.adgroup.adzone.unbind" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemAdgroupAdzoneUnbindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AdzoneIdList Setter +// 广告位id +func (r *TaobaoFeedflowItemAdgroupAdzoneUnbindAPIRequest) SetAdzoneIdList(_adzoneIdList []int64) error { + r._adzoneIdList = _adzoneIdList + r.Set("adzone_id_list", _adzoneIdList) + return nil +} + +// AdzoneIdList Getter +func (r TaobaoFeedflowItemAdgroupAdzoneUnbindAPIRequest) GetAdzoneIdList() []int64 { + return r._adzoneIdList +} +// AdgroupId Setter +// 单元id +func (r *TaobaoFeedflowItemAdgroupAdzoneUnbindAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoFeedflowItemAdgroupAdzoneUnbindAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneUnbindAPIResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneUnbindAPIResponse.go new file mode 100644 index 0000000000..80cdee6cdf --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneUnbindAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流单元内解绑资源位 API返回值 +taobao.feedflow.item.adgroup.adzone.unbind + +信息流单元内解绑资源位 +*/ +type TaobaoFeedflowItemAdgroupAdzoneUnbindAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemAdgroupAdzoneUnbindAPIResponseModel +} + +// 信息流单元内解绑资源位 成功返回结果 +type TaobaoFeedflowItemAdgroupAdzoneUnbindAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_adgroup_adzone_unbind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Result *TaobaoFeedflowItemAdgroupAdzoneUnbindResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneUnbindResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneUnbindResponse.go deleted file mode 100644 index 7887b4a0e7..0000000000 --- a/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneUnbindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -信息流单元内解绑资源位 API返回值 -taobao.feedflow.item.adgroup.adzone.unbind - -信息流单元内解绑资源位 -*/ -type TaobaoFeedflowItemAdgroupAdzoneUnbindAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemAdgroupAdzoneUnbindResponse -} - -// 信息流单元内解绑资源位 成功返回结果 -type TaobaoFeedflowItemAdgroupAdzoneUnbindResponse struct { - XMLName xml.Name `xml:"feedflow_item_adgroup_adzone_unbind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Result *TaobaoFeedflowItemAdgroupAdzoneUnbindResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneUnbindResultDto.go b/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneUnbindResultDto.go new file mode 100644 index 0000000000..1b28282929 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupAdzoneUnbindResultDto.go @@ -0,0 +1,9 @@ +package feedflow + +// TaobaoFeedflowItemAdgroupAdzoneUnbindResultDto +type TaobaoFeedflowItemAdgroupAdzoneUnbindResultDto struct { + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 调用是否成功,true-成功,false-失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupCreativeAddBindAPIRequest.go b/model/feedflow/TaobaoFeedflowItemAdgroupCreativeAddBindAPIRequest.go new file mode 100644 index 0000000000..9ff1cb76f4 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupCreativeAddBindAPIRequest.go @@ -0,0 +1,66 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流新增并且绑定创意 API请求 +taobao.feedflow.item.adgroup.creative.add.bind + +信息流新增并且绑定创意 +*/ +type TaobaoFeedflowItemAdgroupCreativeAddBindAPIRequest struct { + model.Params + // 新增绑定的创意,一次最多2个 + _creativeBindList []CreativeBindDto + // 单元id + _adgroupId int64 +} + +// 初始化TaobaoFeedflowItemAdgroupCreativeAddBindAPIRequest对象 +func NewTaobaoFeedflowItemAdgroupCreativeAddBindRequest() *TaobaoFeedflowItemAdgroupCreativeAddBindAPIRequest{ + return &TaobaoFeedflowItemAdgroupCreativeAddBindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemAdgroupCreativeAddBindAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.adgroup.creative.add.bind" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemAdgroupCreativeAddBindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CreativeBindList Setter +// 新增绑定的创意,一次最多2个 +func (r *TaobaoFeedflowItemAdgroupCreativeAddBindAPIRequest) SetCreativeBindList(_creativeBindList []CreativeBindDto) error { + r._creativeBindList = _creativeBindList + r.Set("creative_bind_list", _creativeBindList) + return nil +} + +// CreativeBindList Getter +func (r TaobaoFeedflowItemAdgroupCreativeAddBindAPIRequest) GetCreativeBindList() []CreativeBindDto { + return r._creativeBindList +} +// AdgroupId Setter +// 单元id +func (r *TaobaoFeedflowItemAdgroupCreativeAddBindAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoFeedflowItemAdgroupCreativeAddBindAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupCreativeAddBindAPIResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupCreativeAddBindAPIResponse.go new file mode 100644 index 0000000000..f40452c32b --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupCreativeAddBindAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流新增并且绑定创意 API返回值 +taobao.feedflow.item.adgroup.creative.add.bind + +信息流新增并且绑定创意 +*/ +type TaobaoFeedflowItemAdgroupCreativeAddBindAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemAdgroupCreativeAddBindAPIResponseModel +} + +// 信息流新增并且绑定创意 成功返回结果 +type TaobaoFeedflowItemAdgroupCreativeAddBindAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_adgroup_creative_add_bind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Result *TaobaoFeedflowItemAdgroupCreativeAddBindResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupCreativeAddBindResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupCreativeAddBindResponse.go deleted file mode 100644 index 4d6335036e..0000000000 --- a/model/feedflow/TaobaoFeedflowItemAdgroupCreativeAddBindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -信息流新增并且绑定创意 API返回值 -taobao.feedflow.item.adgroup.creative.add.bind - -信息流新增并且绑定创意 -*/ -type TaobaoFeedflowItemAdgroupCreativeAddBindAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemAdgroupCreativeAddBindResponse -} - -// 信息流新增并且绑定创意 成功返回结果 -type TaobaoFeedflowItemAdgroupCreativeAddBindResponse struct { - XMLName xml.Name `xml:"feedflow_item_adgroup_creative_add_bind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Result *TaobaoFeedflowItemAdgroupCreativeAddBindResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupCreativeAddBindResultDto.go b/model/feedflow/TaobaoFeedflowItemAdgroupCreativeAddBindResultDto.go new file mode 100644 index 0000000000..2934ca1f17 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupCreativeAddBindResultDto.go @@ -0,0 +1,9 @@ +package feedflow + +// TaobaoFeedflowItemAdgroupCreativeAddBindResultDto +type TaobaoFeedflowItemAdgroupCreativeAddBindResultDto struct { + // 消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 调用是否成功,true-成功,false-失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupCreativePageAPIRequest.go b/model/feedflow/TaobaoFeedflowItemAdgroupCreativePageAPIRequest.go new file mode 100644 index 0000000000..de1347752a --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupCreativePageAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流单元下查看创意 API请求 +taobao.feedflow.item.adgroup.creative.page + +信息流单元下查看创意 +*/ +type TaobaoFeedflowItemAdgroupCreativePageAPIRequest struct { + model.Params + // 绑定查询条件 + _creativeBindQuery *CreativeBindQueryDto +} + +// 初始化TaobaoFeedflowItemAdgroupCreativePageAPIRequest对象 +func NewTaobaoFeedflowItemAdgroupCreativePageRequest() *TaobaoFeedflowItemAdgroupCreativePageAPIRequest{ + return &TaobaoFeedflowItemAdgroupCreativePageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemAdgroupCreativePageAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.adgroup.creative.page" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemAdgroupCreativePageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CreativeBindQuery Setter +// 绑定查询条件 +func (r *TaobaoFeedflowItemAdgroupCreativePageAPIRequest) SetCreativeBindQuery(_creativeBindQuery *CreativeBindQueryDto) error { + r._creativeBindQuery = _creativeBindQuery + r.Set("creative_bind_query", _creativeBindQuery) + return nil +} + +// CreativeBindQuery Getter +func (r TaobaoFeedflowItemAdgroupCreativePageAPIRequest) GetCreativeBindQuery() *CreativeBindQueryDto { + return r._creativeBindQuery +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupCreativePageAPIResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupCreativePageAPIResponse.go new file mode 100644 index 0000000000..d11bc7a1c3 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupCreativePageAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流单元下查看创意 API返回值 +taobao.feedflow.item.adgroup.creative.page + +信息流单元下查看创意 +*/ +type TaobaoFeedflowItemAdgroupCreativePageAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemAdgroupCreativePageAPIResponseModel +} + +// 信息流单元下查看创意 成功返回结果 +type TaobaoFeedflowItemAdgroupCreativePageAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_adgroup_creative_page_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果返回消息 + Result *TaobaoFeedflowItemAdgroupCreativePageResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupCreativePageResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupCreativePageResponse.go deleted file mode 100644 index 6a16608f45..0000000000 --- a/model/feedflow/TaobaoFeedflowItemAdgroupCreativePageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -信息流单元下查看创意 API返回值 -taobao.feedflow.item.adgroup.creative.page - -信息流单元下查看创意 -*/ -type TaobaoFeedflowItemAdgroupCreativePageAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemAdgroupCreativePageResponse -} - -// 信息流单元下查看创意 成功返回结果 -type TaobaoFeedflowItemAdgroupCreativePageResponse struct { - XMLName xml.Name `xml:"feedflow_item_adgroup_creative_page_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果返回消息 - Result *TaobaoFeedflowItemAdgroupCreativePageResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupCreativePageResultDto.go b/model/feedflow/TaobaoFeedflowItemAdgroupCreativePageResultDto.go new file mode 100644 index 0000000000..e4fda66923 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupCreativePageResultDto.go @@ -0,0 +1,13 @@ +package feedflow + +// TaobaoFeedflowItemAdgroupCreativePageResultDto +type TaobaoFeedflowItemAdgroupCreativePageResultDto struct { + // 消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 调用是否成功,true-成功,false-失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 总数目 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 绑定创意的列表 + CreativeBindList []CreativeBindDto `json:"creative_bind_list,omitempty" xml:"creative_bind_list>creative_bind_dto,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupDeleteAPIRequest.go b/model/feedflow/TaobaoFeedflowItemAdgroupDeleteAPIRequest.go new file mode 100644 index 0000000000..c4d266c80d --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据单元id删除单元 API请求 +taobao.feedflow.item.adgroup.delete + +根据单元id删除单元 +*/ +type TaobaoFeedflowItemAdgroupDeleteAPIRequest struct { + model.Params + // 计划id + _campaignId int64 + // 单元id列表 + _adgroupIdList []int64 +} + +// 初始化TaobaoFeedflowItemAdgroupDeleteAPIRequest对象 +func NewTaobaoFeedflowItemAdgroupDeleteRequest() *TaobaoFeedflowItemAdgroupDeleteAPIRequest{ + return &TaobaoFeedflowItemAdgroupDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemAdgroupDeleteAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.adgroup.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemAdgroupDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *TaobaoFeedflowItemAdgroupDeleteAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoFeedflowItemAdgroupDeleteAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// AdgroupIdList Setter +// 单元id列表 +func (r *TaobaoFeedflowItemAdgroupDeleteAPIRequest) SetAdgroupIdList(_adgroupIdList []int64) error { + r._adgroupIdList = _adgroupIdList + r.Set("adgroup_id_list", _adgroupIdList) + return nil +} + +// AdgroupIdList Getter +func (r TaobaoFeedflowItemAdgroupDeleteAPIRequest) GetAdgroupIdList() []int64 { + return r._adgroupIdList +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupDeleteAPIResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupDeleteAPIResponse.go new file mode 100644 index 0000000000..1c157a98ed --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据单元id删除单元 API返回值 +taobao.feedflow.item.adgroup.delete + +根据单元id删除单元 +*/ +type TaobaoFeedflowItemAdgroupDeleteAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemAdgroupDeleteAPIResponseModel +} + +// 根据单元id删除单元 成功返回结果 +type TaobaoFeedflowItemAdgroupDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_adgroup_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TaobaoFeedflowItemAdgroupDeleteResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupDeleteResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupDeleteResponse.go deleted file mode 100644 index dbb3cdc880..0000000000 --- a/model/feedflow/TaobaoFeedflowItemAdgroupDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据单元id删除单元 API返回值 -taobao.feedflow.item.adgroup.delete - -根据单元id删除单元 -*/ -type TaobaoFeedflowItemAdgroupDeleteAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemAdgroupDeleteResponse -} - -// 根据单元id删除单元 成功返回结果 -type TaobaoFeedflowItemAdgroupDeleteResponse struct { - XMLName xml.Name `xml:"feedflow_item_adgroup_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TaobaoFeedflowItemAdgroupDeleteResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupDeleteResultDto.go b/model/feedflow/TaobaoFeedflowItemAdgroupDeleteResultDto.go new file mode 100644 index 0000000000..f3945f87f5 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupDeleteResultDto.go @@ -0,0 +1,11 @@ +package feedflow + +// TaobaoFeedflowItemAdgroupDeleteResultDto +type TaobaoFeedflowItemAdgroupDeleteResultDto struct { + // 信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 删除结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupModifyAPIRequest.go b/model/feedflow/TaobaoFeedflowItemAdgroupModifyAPIRequest.go new file mode 100644 index 0000000000..a36c233de3 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupModifyAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流单元修改 API请求 +taobao.feedflow.item.adgroup.modify + +信息流单元修改 +*/ +type TaobaoFeedflowItemAdgroupModifyAPIRequest struct { + model.Params + // 单元信息 + _adgroup *AdgroupDto +} + +// 初始化TaobaoFeedflowItemAdgroupModifyAPIRequest对象 +func NewTaobaoFeedflowItemAdgroupModifyRequest() *TaobaoFeedflowItemAdgroupModifyAPIRequest{ + return &TaobaoFeedflowItemAdgroupModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemAdgroupModifyAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.adgroup.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemAdgroupModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Adgroup Setter +// 单元信息 +func (r *TaobaoFeedflowItemAdgroupModifyAPIRequest) SetAdgroup(_adgroup *AdgroupDto) error { + r._adgroup = _adgroup + r.Set("adgroup", _adgroup) + return nil +} + +// Adgroup Getter +func (r TaobaoFeedflowItemAdgroupModifyAPIRequest) GetAdgroup() *AdgroupDto { + return r._adgroup +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupModifyAPIResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupModifyAPIResponse.go new file mode 100644 index 0000000000..c4e00f431a --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupModifyAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流单元修改 API返回值 +taobao.feedflow.item.adgroup.modify + +信息流单元修改 +*/ +type TaobaoFeedflowItemAdgroupModifyAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemAdgroupModifyAPIResponseModel +} + +// 信息流单元修改 成功返回结果 +type TaobaoFeedflowItemAdgroupModifyAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_adgroup_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TaobaoFeedflowItemAdgroupModifyResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupModifyResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupModifyResponse.go deleted file mode 100644 index cbea48f4a4..0000000000 --- a/model/feedflow/TaobaoFeedflowItemAdgroupModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -信息流单元修改 API返回值 -taobao.feedflow.item.adgroup.modify - -信息流单元修改 -*/ -type TaobaoFeedflowItemAdgroupModifyAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemAdgroupModifyResponse -} - -// 信息流单元修改 成功返回结果 -type TaobaoFeedflowItemAdgroupModifyResponse struct { - XMLName xml.Name `xml:"feedflow_item_adgroup_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TaobaoFeedflowItemAdgroupModifyResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupModifyResultDto.go b/model/feedflow/TaobaoFeedflowItemAdgroupModifyResultDto.go new file mode 100644 index 0000000000..fe84e75452 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupModifyResultDto.go @@ -0,0 +1,11 @@ +package feedflow + +// TaobaoFeedflowItemAdgroupModifyResultDto +type TaobaoFeedflowItemAdgroupModifyResultDto struct { + // 信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 单元id + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupPageAPIRequest.go b/model/feedflow/TaobaoFeedflowItemAdgroupPageAPIRequest.go new file mode 100644 index 0000000000..81ebe11771 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupPageAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询单元列表 API请求 +taobao.feedflow.item.adgroup.page + +通过计划id查询单元信息 +*/ +type TaobaoFeedflowItemAdgroupPageAPIRequest struct { + model.Params + // 系统自动生成 + _adgroupQuery *AdgroupQueryDto +} + +// 初始化TaobaoFeedflowItemAdgroupPageAPIRequest对象 +func NewTaobaoFeedflowItemAdgroupPageRequest() *TaobaoFeedflowItemAdgroupPageAPIRequest{ + return &TaobaoFeedflowItemAdgroupPageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemAdgroupPageAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.adgroup.page" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemAdgroupPageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AdgroupQuery Setter +// 系统自动生成 +func (r *TaobaoFeedflowItemAdgroupPageAPIRequest) SetAdgroupQuery(_adgroupQuery *AdgroupQueryDto) error { + r._adgroupQuery = _adgroupQuery + r.Set("adgroup_query", _adgroupQuery) + return nil +} + +// AdgroupQuery Getter +func (r TaobaoFeedflowItemAdgroupPageAPIRequest) GetAdgroupQuery() *AdgroupQueryDto { + return r._adgroupQuery +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupPageAPIResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupPageAPIResponse.go new file mode 100644 index 0000000000..c3aa7bd6e3 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupPageAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询单元列表 API返回值 +taobao.feedflow.item.adgroup.page + +通过计划id查询单元信息 +*/ +type TaobaoFeedflowItemAdgroupPageAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemAdgroupPageAPIResponseModel +} + +// 查询单元列表 成功返回结果 +type TaobaoFeedflowItemAdgroupPageAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_adgroup_page_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据 + Result *TaobaoFeedflowItemAdgroupPageResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupPageResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupPageResponse.go deleted file mode 100644 index e35087fd56..0000000000 --- a/model/feedflow/TaobaoFeedflowItemAdgroupPageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询单元列表 API返回值 -taobao.feedflow.item.adgroup.page - -通过计划id查询单元信息 -*/ -type TaobaoFeedflowItemAdgroupPageAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemAdgroupPageResponse -} - -// 查询单元列表 成功返回结果 -type TaobaoFeedflowItemAdgroupPageResponse struct { - XMLName xml.Name `xml:"feedflow_item_adgroup_page_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据 - Result *TaobaoFeedflowItemAdgroupPageResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupPageResultDto.go b/model/feedflow/TaobaoFeedflowItemAdgroupPageResultDto.go new file mode 100644 index 0000000000..7d8c1e4c4e --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupPageResultDto.go @@ -0,0 +1,13 @@ +package feedflow + +// TaobaoFeedflowItemAdgroupPageResultDto +type TaobaoFeedflowItemAdgroupPageResultDto struct { + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回数据结果 + Results []AdgroupDto `json:"results,omitempty" xml:"results>adgroup_dto,omitempty"` + // 条数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupRptdailylistAPIRequest.go b/model/feedflow/TaobaoFeedflowItemAdgroupRptdailylistAPIRequest.go new file mode 100644 index 0000000000..7b826df68e --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupRptdailylistAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推广单元分日数据查询 API请求 +taobao.feedflow.item.adgroup.rptdailylist + +推广单元分日数据查询 +*/ +type TaobaoFeedflowItemAdgroupRptdailylistAPIRequest struct { + model.Params + // 查询条件 + _rptQueryDTO *RptQueryDto +} + +// 初始化TaobaoFeedflowItemAdgroupRptdailylistAPIRequest对象 +func NewTaobaoFeedflowItemAdgroupRptdailylistRequest() *TaobaoFeedflowItemAdgroupRptdailylistAPIRequest{ + return &TaobaoFeedflowItemAdgroupRptdailylistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemAdgroupRptdailylistAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.adgroup.rptdailylist" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemAdgroupRptdailylistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RptQueryDTO Setter +// 查询条件 +func (r *TaobaoFeedflowItemAdgroupRptdailylistAPIRequest) SetRptQueryDTO(_rptQueryDTO *RptQueryDto) error { + r._rptQueryDTO = _rptQueryDTO + r.Set("rpt_query_d_t_o", _rptQueryDTO) + return nil +} + +// RptQueryDTO Getter +func (r TaobaoFeedflowItemAdgroupRptdailylistAPIRequest) GetRptQueryDTO() *RptQueryDto { + return r._rptQueryDTO +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupRptdailylistAPIResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupRptdailylistAPIResponse.go new file mode 100644 index 0000000000..64b6c5682a --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupRptdailylistAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推广单元分日数据查询 API返回值 +taobao.feedflow.item.adgroup.rptdailylist + +推广单元分日数据查询 +*/ +type TaobaoFeedflowItemAdgroupRptdailylistAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemAdgroupRptdailylistAPIResponseModel +} + +// 推广单元分日数据查询 成功返回结果 +type TaobaoFeedflowItemAdgroupRptdailylistAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_adgroup_rptdailylist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoFeedflowItemAdgroupRptdailylistResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupRptdailylistResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupRptdailylistResponse.go deleted file mode 100644 index a02714039a..0000000000 --- a/model/feedflow/TaobaoFeedflowItemAdgroupRptdailylistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推广单元分日数据查询 API返回值 -taobao.feedflow.item.adgroup.rptdailylist - -推广单元分日数据查询 -*/ -type TaobaoFeedflowItemAdgroupRptdailylistAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemAdgroupRptdailylistResponse -} - -// 推广单元分日数据查询 成功返回结果 -type TaobaoFeedflowItemAdgroupRptdailylistResponse struct { - XMLName xml.Name `xml:"feedflow_item_adgroup_rptdailylist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoFeedflowItemAdgroupRptdailylistResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupRptdailylistResultDto.go b/model/feedflow/TaobaoFeedflowItemAdgroupRptdailylistResultDto.go new file mode 100644 index 0000000000..4872f8bccf --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupRptdailylistResultDto.go @@ -0,0 +1,11 @@ +package feedflow + +// TaobaoFeedflowItemAdgroupRptdailylistResultDto +type TaobaoFeedflowItemAdgroupRptdailylistResultDto struct { + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 报表信息 + RptList []RptResultDto `json:"rpt_list,omitempty" xml:"rpt_list>rpt_result_dto,omitempty"` + // 是否调用成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupRpthourlistAPIRequest.go b/model/feedflow/TaobaoFeedflowItemAdgroupRpthourlistAPIRequest.go new file mode 100644 index 0000000000..1bf00f11da --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupRpthourlistAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +超级推荐【商品推广】单元分时报表查询 API请求 +taobao.feedflow.item.adgroup.rpthourlist + +广告主推广组分时数据查询,支持广告主查询最近90天内某一天的单元维度分时报表数据 +*/ +type TaobaoFeedflowItemAdgroupRpthourlistAPIRequest struct { + model.Params + // 查询参数 + _rptQuery *RptQueryDto +} + +// 初始化TaobaoFeedflowItemAdgroupRpthourlistAPIRequest对象 +func NewTaobaoFeedflowItemAdgroupRpthourlistRequest() *TaobaoFeedflowItemAdgroupRpthourlistAPIRequest{ + return &TaobaoFeedflowItemAdgroupRpthourlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemAdgroupRpthourlistAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.adgroup.rpthourlist" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemAdgroupRpthourlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RptQuery Setter +// 查询参数 +func (r *TaobaoFeedflowItemAdgroupRpthourlistAPIRequest) SetRptQuery(_rptQuery *RptQueryDto) error { + r._rptQuery = _rptQuery + r.Set("rpt_query", _rptQuery) + return nil +} + +// RptQuery Getter +func (r TaobaoFeedflowItemAdgroupRpthourlistAPIRequest) GetRptQuery() *RptQueryDto { + return r._rptQuery +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupRpthourlistAPIResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupRpthourlistAPIResponse.go new file mode 100644 index 0000000000..78b078f078 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupRpthourlistAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +超级推荐【商品推广】单元分时报表查询 API返回值 +taobao.feedflow.item.adgroup.rpthourlist + +广告主推广组分时数据查询,支持广告主查询最近90天内某一天的单元维度分时报表数据 +*/ +type TaobaoFeedflowItemAdgroupRpthourlistAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemAdgroupRpthourlistAPIResponseModel +} + +// 超级推荐【商品推广】单元分时报表查询 成功返回结果 +type TaobaoFeedflowItemAdgroupRpthourlistAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_adgroup_rpthourlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *TaobaoFeedflowItemAdgroupRpthourlistResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupRpthourlistResponse.go b/model/feedflow/TaobaoFeedflowItemAdgroupRpthourlistResponse.go deleted file mode 100644 index 69b465405f..0000000000 --- a/model/feedflow/TaobaoFeedflowItemAdgroupRpthourlistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -超级推荐【商品推广】单元分时报表查询 API返回值 -taobao.feedflow.item.adgroup.rpthourlist - -广告主推广组分时数据查询,支持广告主查询最近90天内某一天的单元维度分时报表数据 -*/ -type TaobaoFeedflowItemAdgroupRpthourlistAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemAdgroupRpthourlistResponse -} - -// 超级推荐【商品推广】单元分时报表查询 成功返回结果 -type TaobaoFeedflowItemAdgroupRpthourlistResponse struct { - XMLName xml.Name `xml:"feedflow_item_adgroup_rpthourlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *TaobaoFeedflowItemAdgroupRpthourlistResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemAdgroupRpthourlistResultDto.go b/model/feedflow/TaobaoFeedflowItemAdgroupRpthourlistResultDto.go new file mode 100644 index 0000000000..90fb9aded2 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdgroupRpthourlistResultDto.go @@ -0,0 +1,15 @@ +package feedflow + +// TaobaoFeedflowItemAdgroupRpthourlistResultDto +type TaobaoFeedflowItemAdgroupRpthourlistResultDto struct { + // 描述信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回结果 + RptList []RptResultDto `json:"rpt_list,omitempty" xml:"rpt_list>rpt_result_dto,omitempty"` + // 总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 返回信息 + ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdzoneListAPIRequest.go b/model/feedflow/TaobaoFeedflowItemAdzoneListAPIRequest.go new file mode 100644 index 0000000000..d4e58de1e4 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdzoneListAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询可用广告位列表 API请求 +taobao.feedflow.item.adzone.list + +批量查询可用广告位列表 +*/ +type TaobaoFeedflowItemAdzoneListAPIRequest struct { + model.Params + // 广告位查询条件 + _adzoneQuery *AdzoneQueryDto +} + +// 初始化TaobaoFeedflowItemAdzoneListAPIRequest对象 +func NewTaobaoFeedflowItemAdzoneListRequest() *TaobaoFeedflowItemAdzoneListAPIRequest{ + return &TaobaoFeedflowItemAdzoneListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemAdzoneListAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.adzone.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemAdzoneListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AdzoneQuery Setter +// 广告位查询条件 +func (r *TaobaoFeedflowItemAdzoneListAPIRequest) SetAdzoneQuery(_adzoneQuery *AdzoneQueryDto) error { + r._adzoneQuery = _adzoneQuery + r.Set("adzone_query", _adzoneQuery) + return nil +} + +// AdzoneQuery Getter +func (r TaobaoFeedflowItemAdzoneListAPIRequest) GetAdzoneQuery() *AdzoneQueryDto { + return r._adzoneQuery +} diff --git a/model/feedflow/TaobaoFeedflowItemAdzoneListAPIResponse.go b/model/feedflow/TaobaoFeedflowItemAdzoneListAPIResponse.go new file mode 100644 index 0000000000..29ab9d7643 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdzoneListAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询可用广告位列表 API返回值 +taobao.feedflow.item.adzone.list + +批量查询可用广告位列表 +*/ +type TaobaoFeedflowItemAdzoneListAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemAdzoneListAPIResponseModel +} + +// 批量查询可用广告位列表 成功返回结果 +type TaobaoFeedflowItemAdzoneListAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_adzone_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Result *TaobaoFeedflowItemAdzoneListResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdzoneListResponse.go b/model/feedflow/TaobaoFeedflowItemAdzoneListResponse.go deleted file mode 100644 index ff27d0b96e..0000000000 --- a/model/feedflow/TaobaoFeedflowItemAdzoneListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量查询可用广告位列表 API返回值 -taobao.feedflow.item.adzone.list - -批量查询可用广告位列表 -*/ -type TaobaoFeedflowItemAdzoneListAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemAdzoneListResponse -} - -// 批量查询可用广告位列表 成功返回结果 -type TaobaoFeedflowItemAdzoneListResponse struct { - XMLName xml.Name `xml:"feedflow_item_adzone_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Result *TaobaoFeedflowItemAdzoneListResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemAdzoneListResultDto.go b/model/feedflow/TaobaoFeedflowItemAdzoneListResultDto.go new file mode 100644 index 0000000000..1144fec4ec --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdzoneListResultDto.go @@ -0,0 +1,11 @@ +package feedflow + +// TaobaoFeedflowItemAdzoneListResultDto +type TaobaoFeedflowItemAdzoneListResultDto struct { + // 成功 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 调用是否成功,true-成功,false-失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 广告位列表 + AdzoneList []AdzoneDto `json:"adzone_list,omitempty" xml:"adzone_list>adzone_dto,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdzoneRptdailylistAPIRequest.go b/model/feedflow/TaobaoFeedflowItemAdzoneRptdailylistAPIRequest.go new file mode 100644 index 0000000000..0f232178f5 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdzoneRptdailylistAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +资源包分日数据查询 API请求 +taobao.feedflow.item.adzone.rptdailylist + +资源包分日数据查询 +*/ +type TaobaoFeedflowItemAdzoneRptdailylistAPIRequest struct { + model.Params + // 查询参数 + _rptQueryDTO *RptQueryDto +} + +// 初始化TaobaoFeedflowItemAdzoneRptdailylistAPIRequest对象 +func NewTaobaoFeedflowItemAdzoneRptdailylistRequest() *TaobaoFeedflowItemAdzoneRptdailylistAPIRequest{ + return &TaobaoFeedflowItemAdzoneRptdailylistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemAdzoneRptdailylistAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.adzone.rptdailylist" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemAdzoneRptdailylistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RptQueryDTO Setter +// 查询参数 +func (r *TaobaoFeedflowItemAdzoneRptdailylistAPIRequest) SetRptQueryDTO(_rptQueryDTO *RptQueryDto) error { + r._rptQueryDTO = _rptQueryDTO + r.Set("rpt_query_d_t_o", _rptQueryDTO) + return nil +} + +// RptQueryDTO Getter +func (r TaobaoFeedflowItemAdzoneRptdailylistAPIRequest) GetRptQueryDTO() *RptQueryDto { + return r._rptQueryDTO +} diff --git a/model/feedflow/TaobaoFeedflowItemAdzoneRptdailylistAPIResponse.go b/model/feedflow/TaobaoFeedflowItemAdzoneRptdailylistAPIResponse.go new file mode 100644 index 0000000000..8bb3635651 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdzoneRptdailylistAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +资源包分日数据查询 API返回值 +taobao.feedflow.item.adzone.rptdailylist + +资源包分日数据查询 +*/ +type TaobaoFeedflowItemAdzoneRptdailylistAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemAdzoneRptdailylistAPIResponseModel +} + +// 资源包分日数据查询 成功返回结果 +type TaobaoFeedflowItemAdzoneRptdailylistAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_adzone_rptdailylist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoFeedflowItemAdzoneRptdailylistResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdzoneRptdailylistResponse.go b/model/feedflow/TaobaoFeedflowItemAdzoneRptdailylistResponse.go deleted file mode 100644 index 63be2d06f9..0000000000 --- a/model/feedflow/TaobaoFeedflowItemAdzoneRptdailylistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -资源包分日数据查询 API返回值 -taobao.feedflow.item.adzone.rptdailylist - -资源包分日数据查询 -*/ -type TaobaoFeedflowItemAdzoneRptdailylistAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemAdzoneRptdailylistResponse -} - -// 资源包分日数据查询 成功返回结果 -type TaobaoFeedflowItemAdzoneRptdailylistResponse struct { - XMLName xml.Name `xml:"feedflow_item_adzone_rptdailylist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoFeedflowItemAdzoneRptdailylistResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemAdzoneRptdailylistResultDto.go b/model/feedflow/TaobaoFeedflowItemAdzoneRptdailylistResultDto.go new file mode 100644 index 0000000000..b14578d073 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdzoneRptdailylistResultDto.go @@ -0,0 +1,11 @@ +package feedflow + +// TaobaoFeedflowItemAdzoneRptdailylistResultDto +type TaobaoFeedflowItemAdzoneRptdailylistResultDto struct { + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 报表信息 + RptList []RptResultDto `json:"rpt_list,omitempty" xml:"rpt_list>rpt_result_dto,omitempty"` + // 是否调用成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdzoneRpthourlistAPIRequest.go b/model/feedflow/TaobaoFeedflowItemAdzoneRpthourlistAPIRequest.go new file mode 100644 index 0000000000..cfd8d83ba8 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdzoneRpthourlistAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +超级推荐【商品推广】资源位分时报表查询 API请求 +taobao.feedflow.item.adzone.rpthourlist + +广告主资源包分时数据查询,支持广告主查询最近90天内某一天的资源包维度分时报表数据 +*/ +type TaobaoFeedflowItemAdzoneRpthourlistAPIRequest struct { + model.Params + // 查询参数 + _rptQuery *RptQueryDto +} + +// 初始化TaobaoFeedflowItemAdzoneRpthourlistAPIRequest对象 +func NewTaobaoFeedflowItemAdzoneRpthourlistRequest() *TaobaoFeedflowItemAdzoneRpthourlistAPIRequest{ + return &TaobaoFeedflowItemAdzoneRpthourlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemAdzoneRpthourlistAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.adzone.rpthourlist" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemAdzoneRpthourlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RptQuery Setter +// 查询参数 +func (r *TaobaoFeedflowItemAdzoneRpthourlistAPIRequest) SetRptQuery(_rptQuery *RptQueryDto) error { + r._rptQuery = _rptQuery + r.Set("rpt_query", _rptQuery) + return nil +} + +// RptQuery Getter +func (r TaobaoFeedflowItemAdzoneRpthourlistAPIRequest) GetRptQuery() *RptQueryDto { + return r._rptQuery +} diff --git a/model/feedflow/TaobaoFeedflowItemAdzoneRpthourlistAPIResponse.go b/model/feedflow/TaobaoFeedflowItemAdzoneRpthourlistAPIResponse.go new file mode 100644 index 0000000000..273c5620e0 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdzoneRpthourlistAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +超级推荐【商品推广】资源位分时报表查询 API返回值 +taobao.feedflow.item.adzone.rpthourlist + +广告主资源包分时数据查询,支持广告主查询最近90天内某一天的资源包维度分时报表数据 +*/ +type TaobaoFeedflowItemAdzoneRpthourlistAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemAdzoneRpthourlistAPIResponseModel +} + +// 超级推荐【商品推广】资源位分时报表查询 成功返回结果 +type TaobaoFeedflowItemAdzoneRpthourlistAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_adzone_rpthourlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *TaobaoFeedflowItemAdzoneRpthourlistResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAdzoneRpthourlistResponse.go b/model/feedflow/TaobaoFeedflowItemAdzoneRpthourlistResponse.go deleted file mode 100644 index de2e8fb1b5..0000000000 --- a/model/feedflow/TaobaoFeedflowItemAdzoneRpthourlistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -超级推荐【商品推广】资源位分时报表查询 API返回值 -taobao.feedflow.item.adzone.rpthourlist - -广告主资源包分时数据查询,支持广告主查询最近90天内某一天的资源包维度分时报表数据 -*/ -type TaobaoFeedflowItemAdzoneRpthourlistAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemAdzoneRpthourlistResponse -} - -// 超级推荐【商品推广】资源位分时报表查询 成功返回结果 -type TaobaoFeedflowItemAdzoneRpthourlistResponse struct { - XMLName xml.Name `xml:"feedflow_item_adzone_rpthourlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *TaobaoFeedflowItemAdzoneRpthourlistResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemAdzoneRpthourlistResultDto.go b/model/feedflow/TaobaoFeedflowItemAdzoneRpthourlistResultDto.go new file mode 100644 index 0000000000..888ce1e488 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAdzoneRpthourlistResultDto.go @@ -0,0 +1,15 @@ +package feedflow + +// TaobaoFeedflowItemAdzoneRpthourlistResultDto +type TaobaoFeedflowItemAdzoneRpthourlistResultDto struct { + // 描述信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回结果 + RptList []RptResultDto `json:"rpt_list,omitempty" xml:"rpt_list>rpt_result_dto,omitempty"` + // 总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 返回信息 + ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAlgoCrowdSuggestAPIRequest.go b/model/feedflow/TaobaoFeedflowItemAlgoCrowdSuggestAPIRequest.go new file mode 100644 index 0000000000..f641624252 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAlgoCrowdSuggestAPIRequest.go @@ -0,0 +1,80 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单品人群建议出价 API请求 +taobao.feedflow.item.algo.crowd.suggest + +给超级推荐的广告主查看建议出价 +*/ +type TaobaoFeedflowItemAlgoCrowdSuggestAPIRequest struct { + model.Params + // 人群列表 + _crowds []CrowdDto + // 预估的宝贝id + _itemId int64 + // 预估的计划id + _campaignId int64 +} + +// 初始化TaobaoFeedflowItemAlgoCrowdSuggestAPIRequest对象 +func NewTaobaoFeedflowItemAlgoCrowdSuggestRequest() *TaobaoFeedflowItemAlgoCrowdSuggestAPIRequest{ + return &TaobaoFeedflowItemAlgoCrowdSuggestAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemAlgoCrowdSuggestAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.algo.crowd.suggest" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemAlgoCrowdSuggestAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Crowds Setter +// 人群列表 +func (r *TaobaoFeedflowItemAlgoCrowdSuggestAPIRequest) SetCrowds(_crowds []CrowdDto) error { + r._crowds = _crowds + r.Set("crowds", _crowds) + return nil +} + +// Crowds Getter +func (r TaobaoFeedflowItemAlgoCrowdSuggestAPIRequest) GetCrowds() []CrowdDto { + return r._crowds +} +// ItemId Setter +// 预估的宝贝id +func (r *TaobaoFeedflowItemAlgoCrowdSuggestAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoFeedflowItemAlgoCrowdSuggestAPIRequest) GetItemId() int64 { + return r._itemId +} +// CampaignId Setter +// 预估的计划id +func (r *TaobaoFeedflowItemAlgoCrowdSuggestAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoFeedflowItemAlgoCrowdSuggestAPIRequest) GetCampaignId() int64 { + return r._campaignId +} diff --git a/model/feedflow/TaobaoFeedflowItemAlgoCrowdSuggestAPIResponse.go b/model/feedflow/TaobaoFeedflowItemAlgoCrowdSuggestAPIResponse.go new file mode 100644 index 0000000000..e72cf2f9c5 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAlgoCrowdSuggestAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单品人群建议出价 API返回值 +taobao.feedflow.item.algo.crowd.suggest + +给超级推荐的广告主查看建议出价 +*/ +type TaobaoFeedflowItemAlgoCrowdSuggestAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemAlgoCrowdSuggestAPIResponseModel +} + +// 单品人群建议出价 成功返回结果 +type TaobaoFeedflowItemAlgoCrowdSuggestAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_algo_crowd_suggest_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Result *TaobaoFeedflowItemAlgoCrowdSuggestResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemAlgoCrowdSuggestResponse.go b/model/feedflow/TaobaoFeedflowItemAlgoCrowdSuggestResponse.go deleted file mode 100644 index e35a4890c8..0000000000 --- a/model/feedflow/TaobaoFeedflowItemAlgoCrowdSuggestResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单品人群建议出价 API返回值 -taobao.feedflow.item.algo.crowd.suggest - -给超级推荐的广告主查看建议出价 -*/ -type TaobaoFeedflowItemAlgoCrowdSuggestAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemAlgoCrowdSuggestResponse -} - -// 单品人群建议出价 成功返回结果 -type TaobaoFeedflowItemAlgoCrowdSuggestResponse struct { - XMLName xml.Name `xml:"feedflow_item_algo_crowd_suggest_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Result *TaobaoFeedflowItemAlgoCrowdSuggestResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemAlgoCrowdSuggestResultDto.go b/model/feedflow/TaobaoFeedflowItemAlgoCrowdSuggestResultDto.go new file mode 100644 index 0000000000..26438ef66f --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemAlgoCrowdSuggestResultDto.go @@ -0,0 +1,11 @@ +package feedflow + +// TaobaoFeedflowItemAlgoCrowdSuggestResultDto +type TaobaoFeedflowItemAlgoCrowdSuggestResultDto struct { + // 调用是否成功,true-成功,false-失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 人群列表 + Crowds []CrowdDto `json:"crowds,omitempty" xml:"crowds>crowd_dto,omitempty"` + // 失败时候的消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignAddAPIRequest.go b/model/feedflow/TaobaoFeedflowItemCampaignAddAPIRequest.go new file mode 100644 index 0000000000..4e7f429d4d --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignAddAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流增加推广计划 API请求 +taobao.feedflow.item.campaign.add + +信息流增加推广计划 +*/ +type TaobaoFeedflowItemCampaignAddAPIRequest struct { + model.Params + // 计划信息 + _campaign *CampaignDto +} + +// 初始化TaobaoFeedflowItemCampaignAddAPIRequest对象 +func NewTaobaoFeedflowItemCampaignAddRequest() *TaobaoFeedflowItemCampaignAddAPIRequest{ + return &TaobaoFeedflowItemCampaignAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemCampaignAddAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.campaign.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemCampaignAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Campaign Setter +// 计划信息 +func (r *TaobaoFeedflowItemCampaignAddAPIRequest) SetCampaign(_campaign *CampaignDto) error { + r._campaign = _campaign + r.Set("campaign", _campaign) + return nil +} + +// Campaign Getter +func (r TaobaoFeedflowItemCampaignAddAPIRequest) GetCampaign() *CampaignDto { + return r._campaign +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignAddAPIResponse.go b/model/feedflow/TaobaoFeedflowItemCampaignAddAPIResponse.go new file mode 100644 index 0000000000..d6cce25421 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignAddAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流增加推广计划 API返回值 +taobao.feedflow.item.campaign.add + +信息流增加推广计划 +*/ +type TaobaoFeedflowItemCampaignAddAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemCampaignAddAPIResponseModel +} + +// 信息流增加推广计划 成功返回结果 +type TaobaoFeedflowItemCampaignAddAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_campaign_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *TaobaoFeedflowItemCampaignAddResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignAddResponse.go b/model/feedflow/TaobaoFeedflowItemCampaignAddResponse.go deleted file mode 100644 index 9bbac91cfa..0000000000 --- a/model/feedflow/TaobaoFeedflowItemCampaignAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -信息流增加推广计划 API返回值 -taobao.feedflow.item.campaign.add - -信息流增加推广计划 -*/ -type TaobaoFeedflowItemCampaignAddAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemCampaignAddResponse -} - -// 信息流增加推广计划 成功返回结果 -type TaobaoFeedflowItemCampaignAddResponse struct { - XMLName xml.Name `xml:"feedflow_item_campaign_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *TaobaoFeedflowItemCampaignAddResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignAddResultDto.go b/model/feedflow/TaobaoFeedflowItemCampaignAddResultDto.go new file mode 100644 index 0000000000..55f4fd0919 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignAddResultDto.go @@ -0,0 +1,11 @@ +package feedflow + +// TaobaoFeedflowItemCampaignAddResultDto +type TaobaoFeedflowItemCampaignAddResultDto struct { + // 系统自动生成 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 系统自动生成 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 结果 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignDaybudgetAPIRequest.go b/model/feedflow/TaobaoFeedflowItemCampaignDaybudgetAPIRequest.go new file mode 100644 index 0000000000..19f9bbb899 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignDaybudgetAPIRequest.go @@ -0,0 +1,38 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取当日投放日预算总额 API请求 +taobao.feedflow.item.campaign.daybudget + +获取当日投放日预算总额 +*/ +type TaobaoFeedflowItemCampaignDaybudgetAPIRequest struct { + model.Params +} + +// 初始化TaobaoFeedflowItemCampaignDaybudgetAPIRequest对象 +func NewTaobaoFeedflowItemCampaignDaybudgetRequest() *TaobaoFeedflowItemCampaignDaybudgetAPIRequest{ + return &TaobaoFeedflowItemCampaignDaybudgetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemCampaignDaybudgetAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.campaign.daybudget" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemCampaignDaybudgetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignDaybudgetAPIResponse.go b/model/feedflow/TaobaoFeedflowItemCampaignDaybudgetAPIResponse.go new file mode 100644 index 0000000000..26a4b3aa49 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignDaybudgetAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取当日投放日预算总额 API返回值 +taobao.feedflow.item.campaign.daybudget + +获取当日投放日预算总额 +*/ +type TaobaoFeedflowItemCampaignDaybudgetAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemCampaignDaybudgetAPIResponseModel +} + +// 获取当日投放日预算总额 成功返回结果 +type TaobaoFeedflowItemCampaignDaybudgetAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_campaign_daybudget_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TaobaoFeedflowItemCampaignDaybudgetResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignDaybudgetResponse.go b/model/feedflow/TaobaoFeedflowItemCampaignDaybudgetResponse.go deleted file mode 100644 index c0d14151ef..0000000000 --- a/model/feedflow/TaobaoFeedflowItemCampaignDaybudgetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取当日投放日预算总额 API返回值 -taobao.feedflow.item.campaign.daybudget - -获取当日投放日预算总额 -*/ -type TaobaoFeedflowItemCampaignDaybudgetAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemCampaignDaybudgetResponse -} - -// 获取当日投放日预算总额 成功返回结果 -type TaobaoFeedflowItemCampaignDaybudgetResponse struct { - XMLName xml.Name `xml:"feedflow_item_campaign_daybudget_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TaobaoFeedflowItemCampaignDaybudgetResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignDaybudgetResultDto.go b/model/feedflow/TaobaoFeedflowItemCampaignDaybudgetResultDto.go new file mode 100644 index 0000000000..00350daee3 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignDaybudgetResultDto.go @@ -0,0 +1,11 @@ +package feedflow + +// TaobaoFeedflowItemCampaignDaybudgetResultDto +type TaobaoFeedflowItemCampaignDaybudgetResultDto struct { + // 信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 预算总额 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` + // 成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignDeleteAPIRequest.go b/model/feedflow/TaobaoFeedflowItemCampaignDeleteAPIRequest.go new file mode 100644 index 0000000000..a865ed5434 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除计划 API请求 +taobao.feedflow.item.campaign.delete + +删除计划 +*/ +type TaobaoFeedflowItemCampaignDeleteAPIRequest struct { + model.Params + // 计划id + _campaignId int64 +} + +// 初始化TaobaoFeedflowItemCampaignDeleteAPIRequest对象 +func NewTaobaoFeedflowItemCampaignDeleteRequest() *TaobaoFeedflowItemCampaignDeleteAPIRequest{ + return &TaobaoFeedflowItemCampaignDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemCampaignDeleteAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.campaign.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemCampaignDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *TaobaoFeedflowItemCampaignDeleteAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoFeedflowItemCampaignDeleteAPIRequest) GetCampaignId() int64 { + return r._campaignId +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignDeleteAPIResponse.go b/model/feedflow/TaobaoFeedflowItemCampaignDeleteAPIResponse.go new file mode 100644 index 0000000000..71c83e28db --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除计划 API返回值 +taobao.feedflow.item.campaign.delete + +删除计划 +*/ +type TaobaoFeedflowItemCampaignDeleteAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemCampaignDeleteAPIResponseModel +} + +// 删除计划 成功返回结果 +type TaobaoFeedflowItemCampaignDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_campaign_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TaobaoFeedflowItemCampaignDeleteResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignDeleteResponse.go b/model/feedflow/TaobaoFeedflowItemCampaignDeleteResponse.go deleted file mode 100644 index 89ff2c58ef..0000000000 --- a/model/feedflow/TaobaoFeedflowItemCampaignDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除计划 API返回值 -taobao.feedflow.item.campaign.delete - -删除计划 -*/ -type TaobaoFeedflowItemCampaignDeleteAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemCampaignDeleteResponse -} - -// 删除计划 成功返回结果 -type TaobaoFeedflowItemCampaignDeleteResponse struct { - XMLName xml.Name `xml:"feedflow_item_campaign_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TaobaoFeedflowItemCampaignDeleteResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignDeleteResultDto.go b/model/feedflow/TaobaoFeedflowItemCampaignDeleteResultDto.go new file mode 100644 index 0000000000..b35089eea2 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignDeleteResultDto.go @@ -0,0 +1,11 @@ +package feedflow + +// TaobaoFeedflowItemCampaignDeleteResultDto +type TaobaoFeedflowItemCampaignDeleteResultDto struct { + // 信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 操作结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignGetAPIRequest.go b/model/feedflow/TaobaoFeedflowItemCampaignGetAPIRequest.go new file mode 100644 index 0000000000..b4881897c5 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignGetAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过计划id查询计划 API请求 +taobao.feedflow.item.campaign.get + +通过计划id查询计划 +*/ +type TaobaoFeedflowItemCampaignGetAPIRequest struct { + model.Params + // 计划id + _campaginId int64 +} + +// 初始化TaobaoFeedflowItemCampaignGetAPIRequest对象 +func NewTaobaoFeedflowItemCampaignGetRequest() *TaobaoFeedflowItemCampaignGetAPIRequest{ + return &TaobaoFeedflowItemCampaignGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemCampaignGetAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.campaign.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemCampaignGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaginId Setter +// 计划id +func (r *TaobaoFeedflowItemCampaignGetAPIRequest) SetCampaginId(_campaginId int64) error { + r._campaginId = _campaginId + r.Set("campagin_id", _campaginId) + return nil +} + +// CampaginId Getter +func (r TaobaoFeedflowItemCampaignGetAPIRequest) GetCampaginId() int64 { + return r._campaginId +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignGetAPIResponse.go b/model/feedflow/TaobaoFeedflowItemCampaignGetAPIResponse.go new file mode 100644 index 0000000000..9abcbd9eea --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignGetAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过计划id查询计划 API返回值 +taobao.feedflow.item.campaign.get + +通过计划id查询计划 +*/ +type TaobaoFeedflowItemCampaignGetAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemCampaignGetAPIResponseModel +} + +// 通过计划id查询计划 成功返回结果 +type TaobaoFeedflowItemCampaignGetAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_campaign_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TaobaoFeedflowItemCampaignGetResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignGetResponse.go b/model/feedflow/TaobaoFeedflowItemCampaignGetResponse.go deleted file mode 100644 index 34e06d3c00..0000000000 --- a/model/feedflow/TaobaoFeedflowItemCampaignGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过计划id查询计划 API返回值 -taobao.feedflow.item.campaign.get - -通过计划id查询计划 -*/ -type TaobaoFeedflowItemCampaignGetAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemCampaignGetResponse -} - -// 通过计划id查询计划 成功返回结果 -type TaobaoFeedflowItemCampaignGetResponse struct { - XMLName xml.Name `xml:"feedflow_item_campaign_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TaobaoFeedflowItemCampaignGetResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignGetResultDto.go b/model/feedflow/TaobaoFeedflowItemCampaignGetResultDto.go new file mode 100644 index 0000000000..2c93fc9f50 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignGetResultDto.go @@ -0,0 +1,11 @@ +package feedflow + +// TaobaoFeedflowItemCampaignGetResultDto +type TaobaoFeedflowItemCampaignGetResultDto struct { + // 信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 计划信息 + Result *CampaignDto `json:"result,omitempty" xml:"result,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignModifyAPIRequest.go b/model/feedflow/TaobaoFeedflowItemCampaignModifyAPIRequest.go new file mode 100644 index 0000000000..7ae8482088 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignModifyAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流修改计划 API请求 +taobao.feedflow.item.campaign.modify + +信息流修改计划 +*/ +type TaobaoFeedflowItemCampaignModifyAPIRequest struct { + model.Params + // 修改参数 + _campaign *CampaignDto +} + +// 初始化TaobaoFeedflowItemCampaignModifyAPIRequest对象 +func NewTaobaoFeedflowItemCampaignModifyRequest() *TaobaoFeedflowItemCampaignModifyAPIRequest{ + return &TaobaoFeedflowItemCampaignModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemCampaignModifyAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.campaign.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemCampaignModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Campaign Setter +// 修改参数 +func (r *TaobaoFeedflowItemCampaignModifyAPIRequest) SetCampaign(_campaign *CampaignDto) error { + r._campaign = _campaign + r.Set("campaign", _campaign) + return nil +} + +// Campaign Getter +func (r TaobaoFeedflowItemCampaignModifyAPIRequest) GetCampaign() *CampaignDto { + return r._campaign +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignModifyAPIResponse.go b/model/feedflow/TaobaoFeedflowItemCampaignModifyAPIResponse.go new file mode 100644 index 0000000000..2142bc6bd1 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignModifyAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流修改计划 API返回值 +taobao.feedflow.item.campaign.modify + +信息流修改计划 +*/ +type TaobaoFeedflowItemCampaignModifyAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemCampaignModifyAPIResponseModel +} + +// 信息流修改计划 成功返回结果 +type TaobaoFeedflowItemCampaignModifyAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_campaign_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TaobaoFeedflowItemCampaignModifyResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignModifyResponse.go b/model/feedflow/TaobaoFeedflowItemCampaignModifyResponse.go deleted file mode 100644 index 7e01e720dc..0000000000 --- a/model/feedflow/TaobaoFeedflowItemCampaignModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -信息流修改计划 API返回值 -taobao.feedflow.item.campaign.modify - -信息流修改计划 -*/ -type TaobaoFeedflowItemCampaignModifyAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemCampaignModifyResponse -} - -// 信息流修改计划 成功返回结果 -type TaobaoFeedflowItemCampaignModifyResponse struct { - XMLName xml.Name `xml:"feedflow_item_campaign_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TaobaoFeedflowItemCampaignModifyResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignModifyResultDto.go b/model/feedflow/TaobaoFeedflowItemCampaignModifyResultDto.go new file mode 100644 index 0000000000..dd7156bf23 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignModifyResultDto.go @@ -0,0 +1,11 @@ +package feedflow + +// TaobaoFeedflowItemCampaignModifyResultDto +type TaobaoFeedflowItemCampaignModifyResultDto struct { + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignPageAPIRequest.go b/model/feedflow/TaobaoFeedflowItemCampaignPageAPIRequest.go new file mode 100644 index 0000000000..23ed8be687 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignPageAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询计划列表 API请求 +taobao.feedflow.item.campaign.page + +批量查询计划列表 +*/ +type TaobaoFeedflowItemCampaignPageAPIRequest struct { + model.Params + // 入参 + _campaignQuery *CampaignQueryDto +} + +// 初始化TaobaoFeedflowItemCampaignPageAPIRequest对象 +func NewTaobaoFeedflowItemCampaignPageRequest() *TaobaoFeedflowItemCampaignPageAPIRequest{ + return &TaobaoFeedflowItemCampaignPageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemCampaignPageAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.campaign.page" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemCampaignPageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignQuery Setter +// 入参 +func (r *TaobaoFeedflowItemCampaignPageAPIRequest) SetCampaignQuery(_campaignQuery *CampaignQueryDto) error { + r._campaignQuery = _campaignQuery + r.Set("campaign_query", _campaignQuery) + return nil +} + +// CampaignQuery Getter +func (r TaobaoFeedflowItemCampaignPageAPIRequest) GetCampaignQuery() *CampaignQueryDto { + return r._campaignQuery +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignPageAPIResponse.go b/model/feedflow/TaobaoFeedflowItemCampaignPageAPIResponse.go new file mode 100644 index 0000000000..573f9049d6 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignPageAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询计划列表 API返回值 +taobao.feedflow.item.campaign.page + +批量查询计划列表 +*/ +type TaobaoFeedflowItemCampaignPageAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemCampaignPageAPIResponseModel +} + +// 批量查询计划列表 成功返回结果 +type TaobaoFeedflowItemCampaignPageAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_campaign_page_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TaobaoFeedflowItemCampaignPageResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignPageResponse.go b/model/feedflow/TaobaoFeedflowItemCampaignPageResponse.go deleted file mode 100644 index 2f15138926..0000000000 --- a/model/feedflow/TaobaoFeedflowItemCampaignPageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量查询计划列表 API返回值 -taobao.feedflow.item.campaign.page - -批量查询计划列表 -*/ -type TaobaoFeedflowItemCampaignPageAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemCampaignPageResponse -} - -// 批量查询计划列表 成功返回结果 -type TaobaoFeedflowItemCampaignPageResponse struct { - XMLName xml.Name `xml:"feedflow_item_campaign_page_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TaobaoFeedflowItemCampaignPageResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignPageResultDto.go b/model/feedflow/TaobaoFeedflowItemCampaignPageResultDto.go new file mode 100644 index 0000000000..6bd0616844 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignPageResultDto.go @@ -0,0 +1,13 @@ +package feedflow + +// TaobaoFeedflowItemCampaignPageResultDto +type TaobaoFeedflowItemCampaignPageResultDto struct { + // 信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 计划列表 + Results []CampaignDto `json:"results,omitempty" xml:"results>campaign_dto,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 符合条件的计划数量 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignRptdailylistAPIRequest.go b/model/feedflow/TaobaoFeedflowItemCampaignRptdailylistAPIRequest.go new file mode 100644 index 0000000000..84801c06b5 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignRptdailylistAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推广计划分日数据查询 API请求 +taobao.feedflow.item.campaign.rptdailylist + +推广计划分日数据查询 +*/ +type TaobaoFeedflowItemCampaignRptdailylistAPIRequest struct { + model.Params + // 查询条件 + _rptQueryDTO *RptQueryDto +} + +// 初始化TaobaoFeedflowItemCampaignRptdailylistAPIRequest对象 +func NewTaobaoFeedflowItemCampaignRptdailylistRequest() *TaobaoFeedflowItemCampaignRptdailylistAPIRequest{ + return &TaobaoFeedflowItemCampaignRptdailylistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemCampaignRptdailylistAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.campaign.rptdailylist" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemCampaignRptdailylistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RptQueryDTO Setter +// 查询条件 +func (r *TaobaoFeedflowItemCampaignRptdailylistAPIRequest) SetRptQueryDTO(_rptQueryDTO *RptQueryDto) error { + r._rptQueryDTO = _rptQueryDTO + r.Set("rpt_query_d_t_o", _rptQueryDTO) + return nil +} + +// RptQueryDTO Getter +func (r TaobaoFeedflowItemCampaignRptdailylistAPIRequest) GetRptQueryDTO() *RptQueryDto { + return r._rptQueryDTO +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignRptdailylistAPIResponse.go b/model/feedflow/TaobaoFeedflowItemCampaignRptdailylistAPIResponse.go new file mode 100644 index 0000000000..b1e0365aed --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignRptdailylistAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推广计划分日数据查询 API返回值 +taobao.feedflow.item.campaign.rptdailylist + +推广计划分日数据查询 +*/ +type TaobaoFeedflowItemCampaignRptdailylistAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemCampaignRptdailylistAPIResponseModel +} + +// 推广计划分日数据查询 成功返回结果 +type TaobaoFeedflowItemCampaignRptdailylistAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_campaign_rptdailylist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoFeedflowItemCampaignRptdailylistResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignRptdailylistResponse.go b/model/feedflow/TaobaoFeedflowItemCampaignRptdailylistResponse.go deleted file mode 100644 index 65a28c704d..0000000000 --- a/model/feedflow/TaobaoFeedflowItemCampaignRptdailylistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推广计划分日数据查询 API返回值 -taobao.feedflow.item.campaign.rptdailylist - -推广计划分日数据查询 -*/ -type TaobaoFeedflowItemCampaignRptdailylistAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemCampaignRptdailylistResponse -} - -// 推广计划分日数据查询 成功返回结果 -type TaobaoFeedflowItemCampaignRptdailylistResponse struct { - XMLName xml.Name `xml:"feedflow_item_campaign_rptdailylist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoFeedflowItemCampaignRptdailylistResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignRptdailylistResultDto.go b/model/feedflow/TaobaoFeedflowItemCampaignRptdailylistResultDto.go new file mode 100644 index 0000000000..692386cdce --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignRptdailylistResultDto.go @@ -0,0 +1,11 @@ +package feedflow + +// TaobaoFeedflowItemCampaignRptdailylistResultDto +type TaobaoFeedflowItemCampaignRptdailylistResultDto struct { + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 报表信息 + RptList []RptResultDto `json:"rpt_list,omitempty" xml:"rpt_list>rpt_result_dto,omitempty"` + // 是否调用成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignRpthourlistAPIRequest.go b/model/feedflow/TaobaoFeedflowItemCampaignRpthourlistAPIRequest.go new file mode 100644 index 0000000000..e7531fbc56 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignRpthourlistAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +超级推荐【商品推广】计划分时报表查询 API请求 +taobao.feedflow.item.campaign.rpthourlist + +广告主推广计划分时数据查询,支持广告主查询最近90天内某一天的计划维度分时报表数据 +*/ +type TaobaoFeedflowItemCampaignRpthourlistAPIRequest struct { + model.Params + // 查询参数 + _rptQuery *RptQueryDto +} + +// 初始化TaobaoFeedflowItemCampaignRpthourlistAPIRequest对象 +func NewTaobaoFeedflowItemCampaignRpthourlistRequest() *TaobaoFeedflowItemCampaignRpthourlistAPIRequest{ + return &TaobaoFeedflowItemCampaignRpthourlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemCampaignRpthourlistAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.campaign.rpthourlist" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemCampaignRpthourlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RptQuery Setter +// 查询参数 +func (r *TaobaoFeedflowItemCampaignRpthourlistAPIRequest) SetRptQuery(_rptQuery *RptQueryDto) error { + r._rptQuery = _rptQuery + r.Set("rpt_query", _rptQuery) + return nil +} + +// RptQuery Getter +func (r TaobaoFeedflowItemCampaignRpthourlistAPIRequest) GetRptQuery() *RptQueryDto { + return r._rptQuery +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignRpthourlistAPIResponse.go b/model/feedflow/TaobaoFeedflowItemCampaignRpthourlistAPIResponse.go new file mode 100644 index 0000000000..98c0516aa0 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignRpthourlistAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +超级推荐【商品推广】计划分时报表查询 API返回值 +taobao.feedflow.item.campaign.rpthourlist + +广告主推广计划分时数据查询,支持广告主查询最近90天内某一天的计划维度分时报表数据 +*/ +type TaobaoFeedflowItemCampaignRpthourlistAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemCampaignRpthourlistAPIResponseModel +} + +// 超级推荐【商品推广】计划分时报表查询 成功返回结果 +type TaobaoFeedflowItemCampaignRpthourlistAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_campaign_rpthourlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *TaobaoFeedflowItemCampaignRpthourlistResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignRpthourlistResponse.go b/model/feedflow/TaobaoFeedflowItemCampaignRpthourlistResponse.go deleted file mode 100644 index ff428dfce9..0000000000 --- a/model/feedflow/TaobaoFeedflowItemCampaignRpthourlistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -超级推荐【商品推广】计划分时报表查询 API返回值 -taobao.feedflow.item.campaign.rpthourlist - -广告主推广计划分时数据查询,支持广告主查询最近90天内某一天的计划维度分时报表数据 -*/ -type TaobaoFeedflowItemCampaignRpthourlistAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemCampaignRpthourlistResponse -} - -// 超级推荐【商品推广】计划分时报表查询 成功返回结果 -type TaobaoFeedflowItemCampaignRpthourlistResponse struct { - XMLName xml.Name `xml:"feedflow_item_campaign_rpthourlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *TaobaoFeedflowItemCampaignRpthourlistResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemCampaignRpthourlistResultDto.go b/model/feedflow/TaobaoFeedflowItemCampaignRpthourlistResultDto.go new file mode 100644 index 0000000000..076b904e33 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCampaignRpthourlistResultDto.go @@ -0,0 +1,15 @@ +package feedflow + +// TaobaoFeedflowItemCampaignRpthourlistResultDto +type TaobaoFeedflowItemCampaignRpthourlistResultDto struct { + // 描述信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 返回信息 + ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 返回结果 + RptList []RptResultDto `json:"rpt_list,omitempty" xml:"rpt_list>rpt_result_dto,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCreativeDeleteAPIRequest.go b/model/feedflow/TaobaoFeedflowItemCreativeDeleteAPIRequest.go new file mode 100644 index 0000000000..f1101be72a --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCreativeDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流删除创意 API请求 +taobao.feedflow.item.creative.delete + +信息流删除创意 +*/ +type TaobaoFeedflowItemCreativeDeleteAPIRequest struct { + model.Params + // 创意id列表 + _creativeIdList []int64 +} + +// 初始化TaobaoFeedflowItemCreativeDeleteAPIRequest对象 +func NewTaobaoFeedflowItemCreativeDeleteRequest() *TaobaoFeedflowItemCreativeDeleteAPIRequest{ + return &TaobaoFeedflowItemCreativeDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemCreativeDeleteAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.creative.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemCreativeDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CreativeIdList Setter +// 创意id列表 +func (r *TaobaoFeedflowItemCreativeDeleteAPIRequest) SetCreativeIdList(_creativeIdList []int64) error { + r._creativeIdList = _creativeIdList + r.Set("creative_id_list", _creativeIdList) + return nil +} + +// CreativeIdList Getter +func (r TaobaoFeedflowItemCreativeDeleteAPIRequest) GetCreativeIdList() []int64 { + return r._creativeIdList +} diff --git a/model/feedflow/TaobaoFeedflowItemCreativeDeleteAPIResponse.go b/model/feedflow/TaobaoFeedflowItemCreativeDeleteAPIResponse.go new file mode 100644 index 0000000000..0e5c04e9e5 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCreativeDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流删除创意 API返回值 +taobao.feedflow.item.creative.delete + +信息流删除创意 +*/ +type TaobaoFeedflowItemCreativeDeleteAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemCreativeDeleteAPIResponseModel +} + +// 信息流删除创意 成功返回结果 +type TaobaoFeedflowItemCreativeDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_creative_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对下 + Result *TaobaoFeedflowItemCreativeDeleteResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCreativeDeleteResponse.go b/model/feedflow/TaobaoFeedflowItemCreativeDeleteResponse.go deleted file mode 100644 index 75a949dfdf..0000000000 --- a/model/feedflow/TaobaoFeedflowItemCreativeDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -信息流删除创意 API返回值 -taobao.feedflow.item.creative.delete - -信息流删除创意 -*/ -type TaobaoFeedflowItemCreativeDeleteAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemCreativeDeleteResponse -} - -// 信息流删除创意 成功返回结果 -type TaobaoFeedflowItemCreativeDeleteResponse struct { - XMLName xml.Name `xml:"feedflow_item_creative_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对下 - Result *TaobaoFeedflowItemCreativeDeleteResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemCreativeDeleteResultDto.go b/model/feedflow/TaobaoFeedflowItemCreativeDeleteResultDto.go new file mode 100644 index 0000000000..5b29a9983a --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCreativeDeleteResultDto.go @@ -0,0 +1,11 @@ +package feedflow + +// TaobaoFeedflowItemCreativeDeleteResultDto +type TaobaoFeedflowItemCreativeDeleteResultDto struct { + // 消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 调用是否成功,true-成功,false-失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误信息 + ErrorList []ErrorInfoDto `json:"error_list,omitempty" xml:"error_list>error_info_dto,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCreativeRptdailylistAPIRequest.go b/model/feedflow/TaobaoFeedflowItemCreativeRptdailylistAPIRequest.go new file mode 100644 index 0000000000..bcf328b231 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCreativeRptdailylistAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创意分日数据查询 API请求 +taobao.feedflow.item.creative.rptdailylist + +创意分日数据查询 +*/ +type TaobaoFeedflowItemCreativeRptdailylistAPIRequest struct { + model.Params + // 查询条件 + _rptQueryDTO *RptQueryDto +} + +// 初始化TaobaoFeedflowItemCreativeRptdailylistAPIRequest对象 +func NewTaobaoFeedflowItemCreativeRptdailylistRequest() *TaobaoFeedflowItemCreativeRptdailylistAPIRequest{ + return &TaobaoFeedflowItemCreativeRptdailylistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemCreativeRptdailylistAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.creative.rptdailylist" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemCreativeRptdailylistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RptQueryDTO Setter +// 查询条件 +func (r *TaobaoFeedflowItemCreativeRptdailylistAPIRequest) SetRptQueryDTO(_rptQueryDTO *RptQueryDto) error { + r._rptQueryDTO = _rptQueryDTO + r.Set("rpt_query_d_t_o", _rptQueryDTO) + return nil +} + +// RptQueryDTO Getter +func (r TaobaoFeedflowItemCreativeRptdailylistAPIRequest) GetRptQueryDTO() *RptQueryDto { + return r._rptQueryDTO +} diff --git a/model/feedflow/TaobaoFeedflowItemCreativeRptdailylistAPIResponse.go b/model/feedflow/TaobaoFeedflowItemCreativeRptdailylistAPIResponse.go new file mode 100644 index 0000000000..e15d2fe827 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCreativeRptdailylistAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创意分日数据查询 API返回值 +taobao.feedflow.item.creative.rptdailylist + +创意分日数据查询 +*/ +type TaobaoFeedflowItemCreativeRptdailylistAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemCreativeRptdailylistAPIResponseModel +} + +// 创意分日数据查询 成功返回结果 +type TaobaoFeedflowItemCreativeRptdailylistAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_creative_rptdailylist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoFeedflowItemCreativeRptdailylistResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCreativeRptdailylistResponse.go b/model/feedflow/TaobaoFeedflowItemCreativeRptdailylistResponse.go deleted file mode 100644 index 1fc7e33fd4..0000000000 --- a/model/feedflow/TaobaoFeedflowItemCreativeRptdailylistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创意分日数据查询 API返回值 -taobao.feedflow.item.creative.rptdailylist - -创意分日数据查询 -*/ -type TaobaoFeedflowItemCreativeRptdailylistAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemCreativeRptdailylistResponse -} - -// 创意分日数据查询 成功返回结果 -type TaobaoFeedflowItemCreativeRptdailylistResponse struct { - XMLName xml.Name `xml:"feedflow_item_creative_rptdailylist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoFeedflowItemCreativeRptdailylistResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemCreativeRptdailylistResultDto.go b/model/feedflow/TaobaoFeedflowItemCreativeRptdailylistResultDto.go new file mode 100644 index 0000000000..4939dcfaad --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCreativeRptdailylistResultDto.go @@ -0,0 +1,11 @@ +package feedflow + +// TaobaoFeedflowItemCreativeRptdailylistResultDto +type TaobaoFeedflowItemCreativeRptdailylistResultDto struct { + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 报表结果 + RptList []RptResultDto `json:"rpt_list,omitempty" xml:"rpt_list>rpt_result_dto,omitempty"` + // 是否调用成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCreativeRpthourlistAPIRequest.go b/model/feedflow/TaobaoFeedflowItemCreativeRpthourlistAPIRequest.go new file mode 100644 index 0000000000..47a346b897 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCreativeRpthourlistAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +超级推荐【商品推广】创意分时报表查询 API请求 +taobao.feedflow.item.creative.rpthourlist + +创意分时数据查询,支持广告主查询最近90天内某一天的创意维度分时报表数据 +*/ +type TaobaoFeedflowItemCreativeRpthourlistAPIRequest struct { + model.Params + // 查询参数 + _rptQuery *RptQueryDto +} + +// 初始化TaobaoFeedflowItemCreativeRpthourlistAPIRequest对象 +func NewTaobaoFeedflowItemCreativeRpthourlistRequest() *TaobaoFeedflowItemCreativeRpthourlistAPIRequest{ + return &TaobaoFeedflowItemCreativeRpthourlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemCreativeRpthourlistAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.creative.rpthourlist" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemCreativeRpthourlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RptQuery Setter +// 查询参数 +func (r *TaobaoFeedflowItemCreativeRpthourlistAPIRequest) SetRptQuery(_rptQuery *RptQueryDto) error { + r._rptQuery = _rptQuery + r.Set("rpt_query", _rptQuery) + return nil +} + +// RptQuery Getter +func (r TaobaoFeedflowItemCreativeRpthourlistAPIRequest) GetRptQuery() *RptQueryDto { + return r._rptQuery +} diff --git a/model/feedflow/TaobaoFeedflowItemCreativeRpthourlistAPIResponse.go b/model/feedflow/TaobaoFeedflowItemCreativeRpthourlistAPIResponse.go new file mode 100644 index 0000000000..ab99ff5cc6 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCreativeRpthourlistAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +超级推荐【商品推广】创意分时报表查询 API返回值 +taobao.feedflow.item.creative.rpthourlist + +创意分时数据查询,支持广告主查询最近90天内某一天的创意维度分时报表数据 +*/ +type TaobaoFeedflowItemCreativeRpthourlistAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemCreativeRpthourlistAPIResponseModel +} + +// 超级推荐【商品推广】创意分时报表查询 成功返回结果 +type TaobaoFeedflowItemCreativeRpthourlistAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_creative_rpthourlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *TaobaoFeedflowItemCreativeRpthourlistResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCreativeRpthourlistResponse.go b/model/feedflow/TaobaoFeedflowItemCreativeRpthourlistResponse.go deleted file mode 100644 index b0a2bc2bdd..0000000000 --- a/model/feedflow/TaobaoFeedflowItemCreativeRpthourlistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -超级推荐【商品推广】创意分时报表查询 API返回值 -taobao.feedflow.item.creative.rpthourlist - -创意分时数据查询,支持广告主查询最近90天内某一天的创意维度分时报表数据 -*/ -type TaobaoFeedflowItemCreativeRpthourlistAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemCreativeRpthourlistResponse -} - -// 超级推荐【商品推广】创意分时报表查询 成功返回结果 -type TaobaoFeedflowItemCreativeRpthourlistResponse struct { - XMLName xml.Name `xml:"feedflow_item_creative_rpthourlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *TaobaoFeedflowItemCreativeRpthourlistResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemCreativeRpthourlistResultDto.go b/model/feedflow/TaobaoFeedflowItemCreativeRpthourlistResultDto.go new file mode 100644 index 0000000000..66e2d3bdf9 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCreativeRpthourlistResultDto.go @@ -0,0 +1,15 @@ +package feedflow + +// TaobaoFeedflowItemCreativeRpthourlistResultDto +type TaobaoFeedflowItemCreativeRpthourlistResultDto struct { + // 描述信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回结果 + RptList []RptResultDto `json:"rpt_list,omitempty" xml:"rpt_list>rpt_result_dto,omitempty"` + // 总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 返回信息 + ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdAddAPIRequest.go b/model/feedflow/TaobaoFeedflowItemCrowdAddAPIRequest.go new file mode 100644 index 0000000000..e3a9603797 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdAddAPIRequest.go @@ -0,0 +1,66 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单品单元下,新增定向人群 API请求 +taobao.feedflow.item.crowd.add + +单品单元下,新增定向人群 +*/ +type TaobaoFeedflowItemCrowdAddAPIRequest struct { + model.Params + // 人群列表 + _crowds []CrowdDto + // 单元id + _adgroupId int64 +} + +// 初始化TaobaoFeedflowItemCrowdAddAPIRequest对象 +func NewTaobaoFeedflowItemCrowdAddRequest() *TaobaoFeedflowItemCrowdAddAPIRequest{ + return &TaobaoFeedflowItemCrowdAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemCrowdAddAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.crowd.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemCrowdAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Crowds Setter +// 人群列表 +func (r *TaobaoFeedflowItemCrowdAddAPIRequest) SetCrowds(_crowds []CrowdDto) error { + r._crowds = _crowds + r.Set("crowds", _crowds) + return nil +} + +// Crowds Getter +func (r TaobaoFeedflowItemCrowdAddAPIRequest) GetCrowds() []CrowdDto { + return r._crowds +} +// AdgroupId Setter +// 单元id +func (r *TaobaoFeedflowItemCrowdAddAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoFeedflowItemCrowdAddAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdAddAPIResponse.go b/model/feedflow/TaobaoFeedflowItemCrowdAddAPIResponse.go new file mode 100644 index 0000000000..54de67c446 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdAddAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单品单元下,新增定向人群 API返回值 +taobao.feedflow.item.crowd.add + +单品单元下,新增定向人群 +*/ +type TaobaoFeedflowItemCrowdAddAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemCrowdAddAPIResponseModel +} + +// 单品单元下,新增定向人群 成功返回结果 +type TaobaoFeedflowItemCrowdAddAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_crowd_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Result *TaobaoFeedflowItemCrowdAddResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdAddResponse.go b/model/feedflow/TaobaoFeedflowItemCrowdAddResponse.go deleted file mode 100644 index 894dbe438b..0000000000 --- a/model/feedflow/TaobaoFeedflowItemCrowdAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单品单元下,新增定向人群 API返回值 -taobao.feedflow.item.crowd.add - -单品单元下,新增定向人群 -*/ -type TaobaoFeedflowItemCrowdAddAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemCrowdAddResponse -} - -// 单品单元下,新增定向人群 成功返回结果 -type TaobaoFeedflowItemCrowdAddResponse struct { - XMLName xml.Name `xml:"feedflow_item_crowd_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Result *TaobaoFeedflowItemCrowdAddResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdAddResultDto.go b/model/feedflow/TaobaoFeedflowItemCrowdAddResultDto.go new file mode 100644 index 0000000000..9c244fd99e --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdAddResultDto.go @@ -0,0 +1,9 @@ +package feedflow + +// TaobaoFeedflowItemCrowdAddResultDto +type TaobaoFeedflowItemCrowdAddResultDto struct { + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 调用是否成功,true-成功,false-失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdDeleteAPIRequest.go b/model/feedflow/TaobaoFeedflowItemCrowdDeleteAPIRequest.go new file mode 100644 index 0000000000..ab73422c02 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除单品人群 API请求 +taobao.feedflow.item.crowd.delete + +删除单品人群 +*/ +type TaobaoFeedflowItemCrowdDeleteAPIRequest struct { + model.Params + // 人群结构 + _crowds []CrowdDto + // 单元id + _adgroupId int64 +} + +// 初始化TaobaoFeedflowItemCrowdDeleteAPIRequest对象 +func NewTaobaoFeedflowItemCrowdDeleteRequest() *TaobaoFeedflowItemCrowdDeleteAPIRequest{ + return &TaobaoFeedflowItemCrowdDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemCrowdDeleteAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.crowd.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemCrowdDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Crowds Setter +// 人群结构 +func (r *TaobaoFeedflowItemCrowdDeleteAPIRequest) SetCrowds(_crowds []CrowdDto) error { + r._crowds = _crowds + r.Set("crowds", _crowds) + return nil +} + +// Crowds Getter +func (r TaobaoFeedflowItemCrowdDeleteAPIRequest) GetCrowds() []CrowdDto { + return r._crowds +} +// AdgroupId Setter +// 单元id +func (r *TaobaoFeedflowItemCrowdDeleteAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoFeedflowItemCrowdDeleteAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdDeleteAPIResponse.go b/model/feedflow/TaobaoFeedflowItemCrowdDeleteAPIResponse.go new file mode 100644 index 0000000000..984ad651d8 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除单品人群 API返回值 +taobao.feedflow.item.crowd.delete + +删除单品人群 +*/ +type TaobaoFeedflowItemCrowdDeleteAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemCrowdDeleteAPIResponseModel +} + +// 删除单品人群 成功返回结果 +type TaobaoFeedflowItemCrowdDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_crowd_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Result *TaobaoFeedflowItemCrowdDeleteResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdDeleteResponse.go b/model/feedflow/TaobaoFeedflowItemCrowdDeleteResponse.go deleted file mode 100644 index 04686b512b..0000000000 --- a/model/feedflow/TaobaoFeedflowItemCrowdDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除单品人群 API返回值 -taobao.feedflow.item.crowd.delete - -删除单品人群 -*/ -type TaobaoFeedflowItemCrowdDeleteAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemCrowdDeleteResponse -} - -// 删除单品人群 成功返回结果 -type TaobaoFeedflowItemCrowdDeleteResponse struct { - XMLName xml.Name `xml:"feedflow_item_crowd_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Result *TaobaoFeedflowItemCrowdDeleteResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdDeleteResultDto.go b/model/feedflow/TaobaoFeedflowItemCrowdDeleteResultDto.go new file mode 100644 index 0000000000..be1d69a44d --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdDeleteResultDto.go @@ -0,0 +1,9 @@ +package feedflow + +// TaobaoFeedflowItemCrowdDeleteResultDto +type TaobaoFeedflowItemCrowdDeleteResultDto struct { + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 调用是否成功,true-成功,false-失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdModifyAPIRequest.go b/model/feedflow/TaobaoFeedflowItemCrowdModifyAPIRequest.go new file mode 100644 index 0000000000..79df82852a --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdModifyAPIRequest.go @@ -0,0 +1,66 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +覆盖单元下同类型定向人群 API请求 +taobao.feedflow.item.crowd.modify + +覆盖单元下同类型定向人群 +*/ +type TaobaoFeedflowItemCrowdModifyAPIRequest struct { + model.Params + // 人群信息 + _crowds []CrowdDto + // 单元id + _adgroupId int64 +} + +// 初始化TaobaoFeedflowItemCrowdModifyAPIRequest对象 +func NewTaobaoFeedflowItemCrowdModifyRequest() *TaobaoFeedflowItemCrowdModifyAPIRequest{ + return &TaobaoFeedflowItemCrowdModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemCrowdModifyAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.crowd.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemCrowdModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Crowds Setter +// 人群信息 +func (r *TaobaoFeedflowItemCrowdModifyAPIRequest) SetCrowds(_crowds []CrowdDto) error { + r._crowds = _crowds + r.Set("crowds", _crowds) + return nil +} + +// Crowds Getter +func (r TaobaoFeedflowItemCrowdModifyAPIRequest) GetCrowds() []CrowdDto { + return r._crowds +} +// AdgroupId Setter +// 单元id +func (r *TaobaoFeedflowItemCrowdModifyAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoFeedflowItemCrowdModifyAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdModifyAPIResponse.go b/model/feedflow/TaobaoFeedflowItemCrowdModifyAPIResponse.go new file mode 100644 index 0000000000..ff6f60c7ea --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdModifyAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +覆盖单元下同类型定向人群 API返回值 +taobao.feedflow.item.crowd.modify + +覆盖单元下同类型定向人群 +*/ +type TaobaoFeedflowItemCrowdModifyAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemCrowdModifyAPIResponseModel +} + +// 覆盖单元下同类型定向人群 成功返回结果 +type TaobaoFeedflowItemCrowdModifyAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_crowd_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Result *TaobaoFeedflowItemCrowdModifyResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdModifyResponse.go b/model/feedflow/TaobaoFeedflowItemCrowdModifyResponse.go deleted file mode 100644 index d27a72e0ef..0000000000 --- a/model/feedflow/TaobaoFeedflowItemCrowdModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -覆盖单元下同类型定向人群 API返回值 -taobao.feedflow.item.crowd.modify - -覆盖单元下同类型定向人群 -*/ -type TaobaoFeedflowItemCrowdModifyAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemCrowdModifyResponse -} - -// 覆盖单元下同类型定向人群 成功返回结果 -type TaobaoFeedflowItemCrowdModifyResponse struct { - XMLName xml.Name `xml:"feedflow_item_crowd_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Result *TaobaoFeedflowItemCrowdModifyResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdModifyResultDto.go b/model/feedflow/TaobaoFeedflowItemCrowdModifyResultDto.go new file mode 100644 index 0000000000..e5c4928237 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdModifyResultDto.go @@ -0,0 +1,9 @@ +package feedflow + +// TaobaoFeedflowItemCrowdModifyResultDto +type TaobaoFeedflowItemCrowdModifyResultDto struct { + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 调用是否成功,true-成功,false-失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdModifybindAPIRequest.go b/model/feedflow/TaobaoFeedflowItemCrowdModifybindAPIRequest.go new file mode 100644 index 0000000000..e96384ce07 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdModifybindAPIRequest.go @@ -0,0 +1,66 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改人群出价或状态 API请求 +taobao.feedflow.item.crowd.modifybind + +修改人群出价或状态 +*/ +type TaobaoFeedflowItemCrowdModifybindAPIRequest struct { + model.Params + // 人群信息 + _crowds []CrowdDto + // 单元id + _adgroupId int64 +} + +// 初始化TaobaoFeedflowItemCrowdModifybindAPIRequest对象 +func NewTaobaoFeedflowItemCrowdModifybindRequest() *TaobaoFeedflowItemCrowdModifybindAPIRequest{ + return &TaobaoFeedflowItemCrowdModifybindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemCrowdModifybindAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.crowd.modifybind" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemCrowdModifybindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Crowds Setter +// 人群信息 +func (r *TaobaoFeedflowItemCrowdModifybindAPIRequest) SetCrowds(_crowds []CrowdDto) error { + r._crowds = _crowds + r.Set("crowds", _crowds) + return nil +} + +// Crowds Getter +func (r TaobaoFeedflowItemCrowdModifybindAPIRequest) GetCrowds() []CrowdDto { + return r._crowds +} +// AdgroupId Setter +// 单元id +func (r *TaobaoFeedflowItemCrowdModifybindAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoFeedflowItemCrowdModifybindAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdModifybindAPIResponse.go b/model/feedflow/TaobaoFeedflowItemCrowdModifybindAPIResponse.go new file mode 100644 index 0000000000..9557589bf0 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdModifybindAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改人群出价或状态 API返回值 +taobao.feedflow.item.crowd.modifybind + +修改人群出价或状态 +*/ +type TaobaoFeedflowItemCrowdModifybindAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemCrowdModifybindAPIResponseModel +} + +// 修改人群出价或状态 成功返回结果 +type TaobaoFeedflowItemCrowdModifybindAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_crowd_modifybind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Result *TaobaoFeedflowItemCrowdModifybindResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdModifybindResponse.go b/model/feedflow/TaobaoFeedflowItemCrowdModifybindResponse.go deleted file mode 100644 index 0f56f3b4d2..0000000000 --- a/model/feedflow/TaobaoFeedflowItemCrowdModifybindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改人群出价或状态 API返回值 -taobao.feedflow.item.crowd.modifybind - -修改人群出价或状态 -*/ -type TaobaoFeedflowItemCrowdModifybindAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemCrowdModifybindResponse -} - -// 修改人群出价或状态 成功返回结果 -type TaobaoFeedflowItemCrowdModifybindResponse struct { - XMLName xml.Name `xml:"feedflow_item_crowd_modifybind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Result *TaobaoFeedflowItemCrowdModifybindResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdModifybindResultDto.go b/model/feedflow/TaobaoFeedflowItemCrowdModifybindResultDto.go new file mode 100644 index 0000000000..abf4518aef --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdModifybindResultDto.go @@ -0,0 +1,9 @@ +package feedflow + +// TaobaoFeedflowItemCrowdModifybindResultDto +type TaobaoFeedflowItemCrowdModifybindResultDto struct { + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 调用是否成功,true-成功,false-失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdPageAPIRequest.go b/model/feedflow/TaobaoFeedflowItemCrowdPageAPIRequest.go new file mode 100644 index 0000000000..d1181213b9 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdPageAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询单品单元下人群列表 API请求 +taobao.feedflow.item.crowd.page + +分页查询单品单元下人群列表 +*/ +type TaobaoFeedflowItemCrowdPageAPIRequest struct { + model.Params + // 查询条件 + _crowdQuery *CrowdQueryDto +} + +// 初始化TaobaoFeedflowItemCrowdPageAPIRequest对象 +func NewTaobaoFeedflowItemCrowdPageRequest() *TaobaoFeedflowItemCrowdPageAPIRequest{ + return &TaobaoFeedflowItemCrowdPageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemCrowdPageAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.crowd.page" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemCrowdPageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CrowdQuery Setter +// 查询条件 +func (r *TaobaoFeedflowItemCrowdPageAPIRequest) SetCrowdQuery(_crowdQuery *CrowdQueryDto) error { + r._crowdQuery = _crowdQuery + r.Set("crowd_query", _crowdQuery) + return nil +} + +// CrowdQuery Getter +func (r TaobaoFeedflowItemCrowdPageAPIRequest) GetCrowdQuery() *CrowdQueryDto { + return r._crowdQuery +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdPageAPIResponse.go b/model/feedflow/TaobaoFeedflowItemCrowdPageAPIResponse.go new file mode 100644 index 0000000000..b780650d58 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdPageAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询单品单元下人群列表 API返回值 +taobao.feedflow.item.crowd.page + +分页查询单品单元下人群列表 +*/ +type TaobaoFeedflowItemCrowdPageAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemCrowdPageAPIResponseModel +} + +// 分页查询单品单元下人群列表 成功返回结果 +type TaobaoFeedflowItemCrowdPageAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_crowd_page_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Result *TaobaoFeedflowItemCrowdPageResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdPageResponse.go b/model/feedflow/TaobaoFeedflowItemCrowdPageResponse.go deleted file mode 100644 index fd8d70b9e6..0000000000 --- a/model/feedflow/TaobaoFeedflowItemCrowdPageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页查询单品单元下人群列表 API返回值 -taobao.feedflow.item.crowd.page - -分页查询单品单元下人群列表 -*/ -type TaobaoFeedflowItemCrowdPageAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemCrowdPageResponse -} - -// 分页查询单品单元下人群列表 成功返回结果 -type TaobaoFeedflowItemCrowdPageResponse struct { - XMLName xml.Name `xml:"feedflow_item_crowd_page_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Result *TaobaoFeedflowItemCrowdPageResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdPageResultDto.go b/model/feedflow/TaobaoFeedflowItemCrowdPageResultDto.go new file mode 100644 index 0000000000..dda29baebb --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdPageResultDto.go @@ -0,0 +1,13 @@ +package feedflow + +// TaobaoFeedflowItemCrowdPageResultDto +type TaobaoFeedflowItemCrowdPageResultDto struct { + // 成功 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 人群列表 + Crowds []CrowdDto `json:"crowds,omitempty" xml:"crowds>crowd_dto,omitempty"` + // 总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 调用是否成功,true-成功,false-失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdRptdailylistAPIRequest.go b/model/feedflow/TaobaoFeedflowItemCrowdRptdailylistAPIRequest.go new file mode 100644 index 0000000000..53d7ff5c8c --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdRptdailylistAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定向分日数据查询 API请求 +taobao.feedflow.item.crowd.rptdailylist + +定向分日数据查询 +*/ +type TaobaoFeedflowItemCrowdRptdailylistAPIRequest struct { + model.Params + // 查询条件 + _rptQueryDTO *RptQueryDto +} + +// 初始化TaobaoFeedflowItemCrowdRptdailylistAPIRequest对象 +func NewTaobaoFeedflowItemCrowdRptdailylistRequest() *TaobaoFeedflowItemCrowdRptdailylistAPIRequest{ + return &TaobaoFeedflowItemCrowdRptdailylistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemCrowdRptdailylistAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.crowd.rptdailylist" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemCrowdRptdailylistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RptQueryDTO Setter +// 查询条件 +func (r *TaobaoFeedflowItemCrowdRptdailylistAPIRequest) SetRptQueryDTO(_rptQueryDTO *RptQueryDto) error { + r._rptQueryDTO = _rptQueryDTO + r.Set("rpt_query_d_t_o", _rptQueryDTO) + return nil +} + +// RptQueryDTO Getter +func (r TaobaoFeedflowItemCrowdRptdailylistAPIRequest) GetRptQueryDTO() *RptQueryDto { + return r._rptQueryDTO +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdRptdailylistAPIResponse.go b/model/feedflow/TaobaoFeedflowItemCrowdRptdailylistAPIResponse.go new file mode 100644 index 0000000000..658682ab68 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdRptdailylistAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定向分日数据查询 API返回值 +taobao.feedflow.item.crowd.rptdailylist + +定向分日数据查询 +*/ +type TaobaoFeedflowItemCrowdRptdailylistAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemCrowdRptdailylistAPIResponseModel +} + +// 定向分日数据查询 成功返回结果 +type TaobaoFeedflowItemCrowdRptdailylistAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_crowd_rptdailylist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoFeedflowItemCrowdRptdailylistResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdRptdailylistResponse.go b/model/feedflow/TaobaoFeedflowItemCrowdRptdailylistResponse.go deleted file mode 100644 index ef6bbf6a35..0000000000 --- a/model/feedflow/TaobaoFeedflowItemCrowdRptdailylistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定向分日数据查询 API返回值 -taobao.feedflow.item.crowd.rptdailylist - -定向分日数据查询 -*/ -type TaobaoFeedflowItemCrowdRptdailylistAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemCrowdRptdailylistResponse -} - -// 定向分日数据查询 成功返回结果 -type TaobaoFeedflowItemCrowdRptdailylistResponse struct { - XMLName xml.Name `xml:"feedflow_item_crowd_rptdailylist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoFeedflowItemCrowdRptdailylistResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdRptdailylistResultDto.go b/model/feedflow/TaobaoFeedflowItemCrowdRptdailylistResultDto.go new file mode 100644 index 0000000000..ff97b6a1af --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdRptdailylistResultDto.go @@ -0,0 +1,11 @@ +package feedflow + +// TaobaoFeedflowItemCrowdRptdailylistResultDto +type TaobaoFeedflowItemCrowdRptdailylistResultDto struct { + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 报表信息 + RptList []RptResultDto `json:"rpt_list,omitempty" xml:"rpt_list>rpt_result_dto,omitempty"` + // 是否调用成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdRpthourlistAPIRequest.go b/model/feedflow/TaobaoFeedflowItemCrowdRpthourlistAPIRequest.go new file mode 100644 index 0000000000..f6266d79e9 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdRpthourlistAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +超级推荐【商品推广】定向分时报表查询 API请求 +taobao.feedflow.item.crowd.rpthourlist + +广告主定向分时数据查询,支持广告主查询最近90天内某一天的定向维度分时报表数据 +*/ +type TaobaoFeedflowItemCrowdRpthourlistAPIRequest struct { + model.Params + // 查询参数 + _rptQuery *RptQueryDto +} + +// 初始化TaobaoFeedflowItemCrowdRpthourlistAPIRequest对象 +func NewTaobaoFeedflowItemCrowdRpthourlistRequest() *TaobaoFeedflowItemCrowdRpthourlistAPIRequest{ + return &TaobaoFeedflowItemCrowdRpthourlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemCrowdRpthourlistAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.crowd.rpthourlist" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemCrowdRpthourlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RptQuery Setter +// 查询参数 +func (r *TaobaoFeedflowItemCrowdRpthourlistAPIRequest) SetRptQuery(_rptQuery *RptQueryDto) error { + r._rptQuery = _rptQuery + r.Set("rpt_query", _rptQuery) + return nil +} + +// RptQuery Getter +func (r TaobaoFeedflowItemCrowdRpthourlistAPIRequest) GetRptQuery() *RptQueryDto { + return r._rptQuery +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdRpthourlistAPIResponse.go b/model/feedflow/TaobaoFeedflowItemCrowdRpthourlistAPIResponse.go new file mode 100644 index 0000000000..c8537b19c7 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdRpthourlistAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +超级推荐【商品推广】定向分时报表查询 API返回值 +taobao.feedflow.item.crowd.rpthourlist + +广告主定向分时数据查询,支持广告主查询最近90天内某一天的定向维度分时报表数据 +*/ +type TaobaoFeedflowItemCrowdRpthourlistAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemCrowdRpthourlistAPIResponseModel +} + +// 超级推荐【商品推广】定向分时报表查询 成功返回结果 +type TaobaoFeedflowItemCrowdRpthourlistAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_crowd_rpthourlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *TaobaoFeedflowItemCrowdRpthourlistResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdRpthourlistResponse.go b/model/feedflow/TaobaoFeedflowItemCrowdRpthourlistResponse.go deleted file mode 100644 index 5ff3d039f0..0000000000 --- a/model/feedflow/TaobaoFeedflowItemCrowdRpthourlistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -超级推荐【商品推广】定向分时报表查询 API返回值 -taobao.feedflow.item.crowd.rpthourlist - -广告主定向分时数据查询,支持广告主查询最近90天内某一天的定向维度分时报表数据 -*/ -type TaobaoFeedflowItemCrowdRpthourlistAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemCrowdRpthourlistResponse -} - -// 超级推荐【商品推广】定向分时报表查询 成功返回结果 -type TaobaoFeedflowItemCrowdRpthourlistResponse struct { - XMLName xml.Name `xml:"feedflow_item_crowd_rpthourlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *TaobaoFeedflowItemCrowdRpthourlistResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemCrowdRpthourlistResultDto.go b/model/feedflow/TaobaoFeedflowItemCrowdRpthourlistResultDto.go new file mode 100644 index 0000000000..10d7f04bcc --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemCrowdRpthourlistResultDto.go @@ -0,0 +1,15 @@ +package feedflow + +// TaobaoFeedflowItemCrowdRpthourlistResultDto +type TaobaoFeedflowItemCrowdRpthourlistResultDto struct { + // 描述信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回结果 + RptList []RptResultDto `json:"rpt_list,omitempty" xml:"rpt_list>rpt_result_dto,omitempty"` + // 总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 返回信息 + ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemItemPageAPIRequest.go b/model/feedflow/TaobaoFeedflowItemItemPageAPIRequest.go new file mode 100644 index 0000000000..35de7cf3a1 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemItemPageAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流查看商品列表 API请求 +taobao.feedflow.item.item.page + +信息流查看商品列表 +*/ +type TaobaoFeedflowItemItemPageAPIRequest struct { + model.Params + // 查询条件 + _itemQuery *ItemQueryDto +} + +// 初始化TaobaoFeedflowItemItemPageAPIRequest对象 +func NewTaobaoFeedflowItemItemPageRequest() *TaobaoFeedflowItemItemPageAPIRequest{ + return &TaobaoFeedflowItemItemPageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemItemPageAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.item.page" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemItemPageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemQuery Setter +// 查询条件 +func (r *TaobaoFeedflowItemItemPageAPIRequest) SetItemQuery(_itemQuery *ItemQueryDto) error { + r._itemQuery = _itemQuery + r.Set("item_query", _itemQuery) + return nil +} + +// ItemQuery Getter +func (r TaobaoFeedflowItemItemPageAPIRequest) GetItemQuery() *ItemQueryDto { + return r._itemQuery +} diff --git a/model/feedflow/TaobaoFeedflowItemItemPageAPIResponse.go b/model/feedflow/TaobaoFeedflowItemItemPageAPIResponse.go new file mode 100644 index 0000000000..1c5c2a4fc7 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemItemPageAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +信息流查看商品列表 API返回值 +taobao.feedflow.item.item.page + +信息流查看商品列表 +*/ +type TaobaoFeedflowItemItemPageAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemItemPageAPIResponseModel +} + +// 信息流查看商品列表 成功返回结果 +type TaobaoFeedflowItemItemPageAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_item_page_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Result *TaobaoFeedflowItemItemPageResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemItemPageResponse.go b/model/feedflow/TaobaoFeedflowItemItemPageResponse.go deleted file mode 100644 index 7260626df8..0000000000 --- a/model/feedflow/TaobaoFeedflowItemItemPageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -信息流查看商品列表 API返回值 -taobao.feedflow.item.item.page - -信息流查看商品列表 -*/ -type TaobaoFeedflowItemItemPageAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemItemPageResponse -} - -// 信息流查看商品列表 成功返回结果 -type TaobaoFeedflowItemItemPageResponse struct { - XMLName xml.Name `xml:"feedflow_item_item_page_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Result *TaobaoFeedflowItemItemPageResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemItemPageResultDto.go b/model/feedflow/TaobaoFeedflowItemItemPageResultDto.go new file mode 100644 index 0000000000..8381f8e24f --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemItemPageResultDto.go @@ -0,0 +1,13 @@ +package feedflow + +// TaobaoFeedflowItemItemPageResultDto +type TaobaoFeedflowItemItemPageResultDto struct { + // 返回信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 商品总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 调用是否成功,true-成功,false-失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 商品列表 + ItemList []ItemDto `json:"item_list,omitempty" xml:"item_list>item_dto,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemOptionPageAPIRequest.go b/model/feedflow/TaobaoFeedflowItemOptionPageAPIRequest.go new file mode 100644 index 0000000000..8645dda3e5 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemOptionPageAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询定向标签列表 API请求 +taobao.feedflow.item.option.page + +分页查询定向标签列表 +*/ +type TaobaoFeedflowItemOptionPageAPIRequest struct { + model.Params + // 标签查询条件 + _labelQuery *LabelQueryDto +} + +// 初始化TaobaoFeedflowItemOptionPageAPIRequest对象 +func NewTaobaoFeedflowItemOptionPageRequest() *TaobaoFeedflowItemOptionPageAPIRequest{ + return &TaobaoFeedflowItemOptionPageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemOptionPageAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.option.page" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemOptionPageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LabelQuery Setter +// 标签查询条件 +func (r *TaobaoFeedflowItemOptionPageAPIRequest) SetLabelQuery(_labelQuery *LabelQueryDto) error { + r._labelQuery = _labelQuery + r.Set("label_query", _labelQuery) + return nil +} + +// LabelQuery Getter +func (r TaobaoFeedflowItemOptionPageAPIRequest) GetLabelQuery() *LabelQueryDto { + return r._labelQuery +} diff --git a/model/feedflow/TaobaoFeedflowItemOptionPageAPIResponse.go b/model/feedflow/TaobaoFeedflowItemOptionPageAPIResponse.go new file mode 100644 index 0000000000..50412c9735 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemOptionPageAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询定向标签列表 API返回值 +taobao.feedflow.item.option.page + +分页查询定向标签列表 +*/ +type TaobaoFeedflowItemOptionPageAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemOptionPageAPIResponseModel +} + +// 分页查询定向标签列表 成功返回结果 +type TaobaoFeedflowItemOptionPageAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_option_page_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Result *TaobaoFeedflowItemOptionPageResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemOptionPageResponse.go b/model/feedflow/TaobaoFeedflowItemOptionPageResponse.go deleted file mode 100644 index b000ee9ee8..0000000000 --- a/model/feedflow/TaobaoFeedflowItemOptionPageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页查询定向标签列表 API返回值 -taobao.feedflow.item.option.page - -分页查询定向标签列表 -*/ -type TaobaoFeedflowItemOptionPageAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemOptionPageResponse -} - -// 分页查询定向标签列表 成功返回结果 -type TaobaoFeedflowItemOptionPageResponse struct { - XMLName xml.Name `xml:"feedflow_item_option_page_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Result *TaobaoFeedflowItemOptionPageResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemOptionPageResultDto.go b/model/feedflow/TaobaoFeedflowItemOptionPageResultDto.go new file mode 100644 index 0000000000..36e18eda2a --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemOptionPageResultDto.go @@ -0,0 +1,13 @@ +package feedflow + +// TaobaoFeedflowItemOptionPageResultDto +type TaobaoFeedflowItemOptionPageResultDto struct { + // 成功 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 标签信息 + Labels []LabelDto `json:"labels,omitempty" xml:"labels>label_dto,omitempty"` + // 总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 调用是否成功,true-成功,false-失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemTargetValidlistAPIRequest.go b/model/feedflow/TaobaoFeedflowItemTargetValidlistAPIRequest.go new file mode 100644 index 0000000000..01eeb751dd --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemTargetValidlistAPIRequest.go @@ -0,0 +1,52 @@ +package feedflow + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取有权限的定向列表 API请求 +taobao.feedflow.item.target.validlist + +获取有权限的定向列表 +*/ +type TaobaoFeedflowItemTargetValidlistAPIRequest struct { + model.Params + // 计划id + _campaignId int64 +} + +// 初始化TaobaoFeedflowItemTargetValidlistAPIRequest对象 +func NewTaobaoFeedflowItemTargetValidlistRequest() *TaobaoFeedflowItemTargetValidlistAPIRequest{ + return &TaobaoFeedflowItemTargetValidlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFeedflowItemTargetValidlistAPIRequest) GetApiMethodName() string { + return "taobao.feedflow.item.target.validlist" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFeedflowItemTargetValidlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *TaobaoFeedflowItemTargetValidlistAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoFeedflowItemTargetValidlistAPIRequest) GetCampaignId() int64 { + return r._campaignId +} diff --git a/model/feedflow/TaobaoFeedflowItemTargetValidlistAPIResponse.go b/model/feedflow/TaobaoFeedflowItemTargetValidlistAPIResponse.go new file mode 100644 index 0000000000..d6f24b7839 --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemTargetValidlistAPIResponse.go @@ -0,0 +1,27 @@ +package feedflow + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取有权限的定向列表 API返回值 +taobao.feedflow.item.target.validlist + +获取有权限的定向列表 +*/ +type TaobaoFeedflowItemTargetValidlistAPIResponse struct { + model.CommonResponse + TaobaoFeedflowItemTargetValidlistAPIResponseModel +} + +// 获取有权限的定向列表 成功返回结果 +type TaobaoFeedflowItemTargetValidlistAPIResponseModel struct { + XMLName xml.Name `xml:"feedflow_item_target_validlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Result *TaobaoFeedflowItemTargetValidlistResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/feedflow/TaobaoFeedflowItemTargetValidlistResponse.go b/model/feedflow/TaobaoFeedflowItemTargetValidlistResponse.go deleted file mode 100644 index 4cb404bc19..0000000000 --- a/model/feedflow/TaobaoFeedflowItemTargetValidlistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package feedflow - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取有权限的定向列表 API返回值 -taobao.feedflow.item.target.validlist - -获取有权限的定向列表 -*/ -type TaobaoFeedflowItemTargetValidlistAPIResponse struct { - model.CommonResponse - TaobaoFeedflowItemTargetValidlistResponse -} - -// 获取有权限的定向列表 成功返回结果 -type TaobaoFeedflowItemTargetValidlistResponse struct { - XMLName xml.Name `xml:"feedflow_item_target_validlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Result *TaobaoFeedflowItemTargetValidlistResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/feedflow/TaobaoFeedflowItemTargetValidlistResultDto.go b/model/feedflow/TaobaoFeedflowItemTargetValidlistResultDto.go new file mode 100644 index 0000000000..f5b6c3e86f --- /dev/null +++ b/model/feedflow/TaobaoFeedflowItemTargetValidlistResultDto.go @@ -0,0 +1,11 @@ +package feedflow + +// TaobaoFeedflowItemTargetValidlistResultDto +type TaobaoFeedflowItemTargetValidlistResultDto struct { + // 成功 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 定向结构 + Targets []TargetDto `json:"targets,omitempty" xml:"targets>target_dto,omitempty"` + // 调用是否成功,true-成功,false-失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/fenxiao/AlibabaAscpCnskuUpdateAPIRequest.go b/model/fenxiao/AlibabaAscpCnskuUpdateAPIRequest.go new file mode 100644 index 0000000000..8b262ec4ae --- /dev/null +++ b/model/fenxiao/AlibabaAscpCnskuUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应链中台货品修改接口 API请求 +alibaba.ascp.cnsku.update + +供应链中台货品修改接口 +*/ +type AlibabaAscpCnskuUpdateAPIRequest struct { + model.Params + // 待新增的货品 + _cnsku *CnskuDto + // 修改选项 + _option *UpdateCnskuOption +} + +// 初始化AlibabaAscpCnskuUpdateAPIRequest对象 +func NewAlibabaAscpCnskuUpdateRequest() *AlibabaAscpCnskuUpdateAPIRequest{ + return &AlibabaAscpCnskuUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpCnskuUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.cnsku.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpCnskuUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Cnsku Setter +// 待新增的货品 +func (r *AlibabaAscpCnskuUpdateAPIRequest) SetCnsku(_cnsku *CnskuDto) error { + r._cnsku = _cnsku + r.Set("cnsku", _cnsku) + return nil +} + +// Cnsku Getter +func (r AlibabaAscpCnskuUpdateAPIRequest) GetCnsku() *CnskuDto { + return r._cnsku +} +// Option Setter +// 修改选项 +func (r *AlibabaAscpCnskuUpdateAPIRequest) SetOption(_option *UpdateCnskuOption) error { + r._option = _option + r.Set("option", _option) + return nil +} + +// Option Getter +func (r AlibabaAscpCnskuUpdateAPIRequest) GetOption() *UpdateCnskuOption { + return r._option +} diff --git a/model/fenxiao/AlibabaAscpCnskuUpdateAPIResponse.go b/model/fenxiao/AlibabaAscpCnskuUpdateAPIResponse.go new file mode 100644 index 0000000000..089d6b940c --- /dev/null +++ b/model/fenxiao/AlibabaAscpCnskuUpdateAPIResponse.go @@ -0,0 +1,35 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应链中台货品修改接口 API返回值 +alibaba.ascp.cnsku.update + +供应链中台货品修改接口 +*/ +type AlibabaAscpCnskuUpdateAPIResponse struct { + model.CommonResponse + AlibabaAscpCnskuUpdateAPIResponseModel +} + +// 供应链中台货品修改接口 成功返回结果 +type AlibabaAscpCnskuUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_cnsku_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异常信息 + ErrorMessages []string `json:"error_messages,omitempty" xml:"error_messages>string,omitempty"` + // 货品id + Data string `json:"data,omitempty" xml:"data,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 是否系统异常 + IsSystemFailed bool `json:"is_system_failed,omitempty" xml:"is_system_failed,omitempty"` + // 异常信息Code + SysErrorCode string `json:"sys_error_code,omitempty" xml:"sys_error_code,omitempty"` +} diff --git a/model/fenxiao/AlibabaAscpCnskuUpdateResponse.go b/model/fenxiao/AlibabaAscpCnskuUpdateResponse.go deleted file mode 100644 index f64c26abcd..0000000000 --- a/model/fenxiao/AlibabaAscpCnskuUpdateResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应链中台货品修改接口 API返回值 -alibaba.ascp.cnsku.update - -供应链中台货品修改接口 -*/ -type AlibabaAscpCnskuUpdateAPIResponse struct { - model.CommonResponse - AlibabaAscpCnskuUpdateResponse -} - -// 供应链中台货品修改接口 成功返回结果 -type AlibabaAscpCnskuUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_cnsku_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异常信息 - ErrorMessages []string `json:"error_messages,omitempty" xml:"error_messages>string,omitempty"` - // 货品id - Data string `json:"data,omitempty" xml:"data,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 是否系统异常 - IsSystemFailed bool `json:"is_system_failed,omitempty" xml:"is_system_failed,omitempty"` - // 异常信息Code - SysErrorCode string `json:"sys_error_code,omitempty" xml:"sys_error_code,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoCooperationGetAPIRequest.go b/model/fenxiao/TaobaoFenxiaoCooperationGetAPIRequest.go new file mode 100644 index 0000000000..97dc8965d2 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoCooperationGetAPIRequest.go @@ -0,0 +1,150 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商或分销商获取合作关系信息 API请求 +taobao.fenxiao.cooperation.get + +获取供应商的合作关系信息 +*/ +type TaobaoFenxiaoCooperationGetAPIRequest struct { + model.Params + // 合作状态: NORMAL(合作中)、 ENDING(终止中) 、END (终止) + _status string + // 合作开始时间yyyy-MM-dd HH:mm:ss + _startDate string + // 合作结束时间yyyy-MM-dd HH:mm:ss + _endDate string + // 分销方式:AGENT(代销) 、DEALER(经销) + _tradeType string + // 页码(大于0的整数,默认1) + _pageNo int64 + // 每页记录数(默认20,最大50) + _pageSize int64 + // 渠道code + _channelCode string + // 1是供应商,2 是分销商 + _roleType int64 +} + +// 初始化TaobaoFenxiaoCooperationGetAPIRequest对象 +func NewTaobaoFenxiaoCooperationGetRequest() *TaobaoFenxiaoCooperationGetAPIRequest{ + return &TaobaoFenxiaoCooperationGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoCooperationGetAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.cooperation.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoCooperationGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Status Setter +// 合作状态: NORMAL(合作中)、 ENDING(终止中) 、END (终止) +func (r *TaobaoFenxiaoCooperationGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoFenxiaoCooperationGetAPIRequest) GetStatus() string { + return r._status +} +// StartDate Setter +// 合作开始时间yyyy-MM-dd HH:mm:ss +func (r *TaobaoFenxiaoCooperationGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoFenxiaoCooperationGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 合作结束时间yyyy-MM-dd HH:mm:ss +func (r *TaobaoFenxiaoCooperationGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoFenxiaoCooperationGetAPIRequest) GetEndDate() string { + return r._endDate +} +// TradeType Setter +// 分销方式:AGENT(代销) 、DEALER(经销) +func (r *TaobaoFenxiaoCooperationGetAPIRequest) SetTradeType(_tradeType string) error { + r._tradeType = _tradeType + r.Set("trade_type", _tradeType) + return nil +} + +// TradeType Getter +func (r TaobaoFenxiaoCooperationGetAPIRequest) GetTradeType() string { + return r._tradeType +} +// PageNo Setter +// 页码(大于0的整数,默认1) +func (r *TaobaoFenxiaoCooperationGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoFenxiaoCooperationGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页记录数(默认20,最大50) +func (r *TaobaoFenxiaoCooperationGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoFenxiaoCooperationGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// ChannelCode Setter +// 渠道code +func (r *TaobaoFenxiaoCooperationGetAPIRequest) SetChannelCode(_channelCode string) error { + r._channelCode = _channelCode + r.Set("channel_code", _channelCode) + return nil +} + +// ChannelCode Getter +func (r TaobaoFenxiaoCooperationGetAPIRequest) GetChannelCode() string { + return r._channelCode +} +// RoleType Setter +// 1是供应商,2 是分销商 +func (r *TaobaoFenxiaoCooperationGetAPIRequest) SetRoleType(_roleType int64) error { + r._roleType = _roleType + r.Set("role_type", _roleType) + return nil +} + +// RoleType Getter +func (r TaobaoFenxiaoCooperationGetAPIRequest) GetRoleType() int64 { + return r._roleType +} diff --git a/model/fenxiao/TaobaoFenxiaoCooperationGetAPIResponse.go b/model/fenxiao/TaobaoFenxiaoCooperationGetAPIResponse.go new file mode 100644 index 0000000000..6bed3b3ca1 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoCooperationGetAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商或分销商获取合作关系信息 API返回值 +taobao.fenxiao.cooperation.get + +获取供应商的合作关系信息 +*/ +type TaobaoFenxiaoCooperationGetAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoCooperationGetAPIResponseModel +} + +// 供应商或分销商获取合作关系信息 成功返回结果 +type TaobaoFenxiaoCooperationGetAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_cooperation_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果记录数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 合作分销关系 + Cooperations []Cooperation `json:"cooperations,omitempty" xml:"cooperations>cooperation,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoCooperationGetResponse.go b/model/fenxiao/TaobaoFenxiaoCooperationGetResponse.go deleted file mode 100644 index 454d44e4f0..0000000000 --- a/model/fenxiao/TaobaoFenxiaoCooperationGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商或分销商获取合作关系信息 API返回值 -taobao.fenxiao.cooperation.get - -获取供应商的合作关系信息 -*/ -type TaobaoFenxiaoCooperationGetAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoCooperationGetResponse -} - -// 供应商或分销商获取合作关系信息 成功返回结果 -type TaobaoFenxiaoCooperationGetResponse struct { - XMLName xml.Name `xml:"fenxiao_cooperation_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果记录数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 合作分销关系 - Cooperations []Cooperation `json:"cooperations,omitempty" xml:"cooperations>cooperation,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderAgreeAPIRequest.go b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderAgreeAPIRequest.go new file mode 100644 index 0000000000..7b23827f2f --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderAgreeAPIRequest.go @@ -0,0 +1,52 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商/分销商通过采购申请/经销采购单申请 API请求 +taobao.fenxiao.dealer.requisitionorder.agree + +供应商或分销商通过采购申请/经销采购单审核 +*/ +type TaobaoFenxiaoDealerRequisitionorderAgreeAPIRequest struct { + model.Params + // 采购申请/经销采购单编号 + _dealerOrderId int64 +} + +// 初始化TaobaoFenxiaoDealerRequisitionorderAgreeAPIRequest对象 +func NewTaobaoFenxiaoDealerRequisitionorderAgreeRequest() *TaobaoFenxiaoDealerRequisitionorderAgreeAPIRequest{ + return &TaobaoFenxiaoDealerRequisitionorderAgreeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoDealerRequisitionorderAgreeAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.dealer.requisitionorder.agree" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoDealerRequisitionorderAgreeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DealerOrderId Setter +// 采购申请/经销采购单编号 +func (r *TaobaoFenxiaoDealerRequisitionorderAgreeAPIRequest) SetDealerOrderId(_dealerOrderId int64) error { + r._dealerOrderId = _dealerOrderId + r.Set("dealer_order_id", _dealerOrderId) + return nil +} + +// DealerOrderId Getter +func (r TaobaoFenxiaoDealerRequisitionorderAgreeAPIRequest) GetDealerOrderId() int64 { + return r._dealerOrderId +} diff --git a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderAgreeAPIResponse.go b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderAgreeAPIResponse.go new file mode 100644 index 0000000000..4e74c54da0 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderAgreeAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商/分销商通过采购申请/经销采购单申请 API返回值 +taobao.fenxiao.dealer.requisitionorder.agree + +供应商或分销商通过采购申请/经销采购单审核 +*/ +type TaobaoFenxiaoDealerRequisitionorderAgreeAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoDealerRequisitionorderAgreeAPIResponseModel +} + +// 供应商/分销商通过采购申请/经销采购单申请 成功返回结果 +type TaobaoFenxiaoDealerRequisitionorderAgreeAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_dealer_requisitionorder_agree_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作是否成功。true:成功;false:失败。 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderAgreeResponse.go b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderAgreeResponse.go deleted file mode 100644 index 7faa7d684e..0000000000 --- a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderAgreeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商/分销商通过采购申请/经销采购单申请 API返回值 -taobao.fenxiao.dealer.requisitionorder.agree - -供应商或分销商通过采购申请/经销采购单审核 -*/ -type TaobaoFenxiaoDealerRequisitionorderAgreeAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoDealerRequisitionorderAgreeResponse -} - -// 供应商/分销商通过采购申请/经销采购单申请 成功返回结果 -type TaobaoFenxiaoDealerRequisitionorderAgreeResponse struct { - XMLName xml.Name `xml:"fenxiao_dealer_requisitionorder_agree_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作是否成功。true:成功;false:失败。 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCloseAPIRequest.go b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCloseAPIRequest.go new file mode 100644 index 0000000000..11790559e4 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCloseAPIRequest.go @@ -0,0 +1,80 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商/分销商关闭采购申请/经销采购单 API请求 +taobao.fenxiao.dealer.requisitionorder.close + +供应商或分销商关闭采购申请/经销采购单 +*/ +type TaobaoFenxiaoDealerRequisitionorderCloseAPIRequest struct { + model.Params + // 经销采购单编号 + _dealerOrderId int64 + // 关闭原因:
1:长时间无法联系到分销商,取消交易。
2:分销商错误提交申请,取消交易。
3:缺货,近段时间都无法发货。
4:分销商恶意提交申请单。
5:其他原因。 + _reason int64 + // 关闭详细原因,字数5-200字 + _reasonDetail string +} + +// 初始化TaobaoFenxiaoDealerRequisitionorderCloseAPIRequest对象 +func NewTaobaoFenxiaoDealerRequisitionorderCloseRequest() *TaobaoFenxiaoDealerRequisitionorderCloseAPIRequest{ + return &TaobaoFenxiaoDealerRequisitionorderCloseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoDealerRequisitionorderCloseAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.dealer.requisitionorder.close" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoDealerRequisitionorderCloseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DealerOrderId Setter +// 经销采购单编号 +func (r *TaobaoFenxiaoDealerRequisitionorderCloseAPIRequest) SetDealerOrderId(_dealerOrderId int64) error { + r._dealerOrderId = _dealerOrderId + r.Set("dealer_order_id", _dealerOrderId) + return nil +} + +// DealerOrderId Getter +func (r TaobaoFenxiaoDealerRequisitionorderCloseAPIRequest) GetDealerOrderId() int64 { + return r._dealerOrderId +} +// Reason Setter +// 关闭原因:
1:长时间无法联系到分销商,取消交易。
2:分销商错误提交申请,取消交易。
3:缺货,近段时间都无法发货。
4:分销商恶意提交申请单。
5:其他原因。 +func (r *TaobaoFenxiaoDealerRequisitionorderCloseAPIRequest) SetReason(_reason int64) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r TaobaoFenxiaoDealerRequisitionorderCloseAPIRequest) GetReason() int64 { + return r._reason +} +// ReasonDetail Setter +// 关闭详细原因,字数5-200字 +func (r *TaobaoFenxiaoDealerRequisitionorderCloseAPIRequest) SetReasonDetail(_reasonDetail string) error { + r._reasonDetail = _reasonDetail + r.Set("reason_detail", _reasonDetail) + return nil +} + +// ReasonDetail Getter +func (r TaobaoFenxiaoDealerRequisitionorderCloseAPIRequest) GetReasonDetail() string { + return r._reasonDetail +} diff --git a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCloseAPIResponse.go b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCloseAPIResponse.go new file mode 100644 index 0000000000..c19efd1520 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCloseAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商/分销商关闭采购申请/经销采购单 API返回值 +taobao.fenxiao.dealer.requisitionorder.close + +供应商或分销商关闭采购申请/经销采购单 +*/ +type TaobaoFenxiaoDealerRequisitionorderCloseAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoDealerRequisitionorderCloseAPIResponseModel +} + +// 供应商/分销商关闭采购申请/经销采购单 成功返回结果 +type TaobaoFenxiaoDealerRequisitionorderCloseAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_dealer_requisitionorder_close_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作是否成功。true:成功;false:失败。 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCloseResponse.go b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCloseResponse.go deleted file mode 100644 index ad8b3752fe..0000000000 --- a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCloseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商/分销商关闭采购申请/经销采购单 API返回值 -taobao.fenxiao.dealer.requisitionorder.close - -供应商或分销商关闭采购申请/经销采购单 -*/ -type TaobaoFenxiaoDealerRequisitionorderCloseAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoDealerRequisitionorderCloseResponse -} - -// 供应商/分销商关闭采购申请/经销采购单 成功返回结果 -type TaobaoFenxiaoDealerRequisitionorderCloseResponse struct { - XMLName xml.Name `xml:"fenxiao_dealer_requisitionorder_close_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作是否成功。true:成功;false:失败。 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest.go b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest.go new file mode 100644 index 0000000000..12355a7ab6 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest.go @@ -0,0 +1,192 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建经销采购申请 API请求 +taobao.fenxiao.dealer.requisitionorder.create + +创建经销采购申请 +*/ +type TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest struct { + model.Params + // 配送方式。SELF_PICKUP:自提;LOGISTICS:仓库发货 + _logisticsType string + // 采购清单,存放多个采购明细,每个采购明细内部以‘:’隔开,多个采购明细之间以‘,’隔开. 例(分销产品id:skuid:购买数量:申请单价,分销产品id:skuid:购买数量:申请单价),申请单价的单位为分。不存在sku请留空skuid,如(分销产品id::购买数量:申请单价) + _orderDetail []string + // 收货人所在省份 + _province string + // 收货人所在市 + _city string + // 收货人所在区 + _district string + // 收货人所在街道地址 + _address string + // 收货人所在地区邮政编码 + _postCode string + // 买家联系电话(此字段和mobile字段至少填写一个) + _phone string + // 买家的手机号码(1、此字段与phone字段至少填写一个。2、自提方式下此字段必填,保存提货人联系电话) + _mobile string + // 买家姓名(自提方式填写提货人姓名) + _buyerName string + // 身份证号(自提方式必填,填写提货人身份证号码,提货时用于确认提货人身份) + _idCardNumber string +} + +// 初始化TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest对象 +func NewTaobaoFenxiaoDealerRequisitionorderCreateRequest() *TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest{ + return &TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.dealer.requisitionorder.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LogisticsType Setter +// 配送方式。SELF_PICKUP:自提;LOGISTICS:仓库发货 +func (r *TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) SetLogisticsType(_logisticsType string) error { + r._logisticsType = _logisticsType + r.Set("logistics_type", _logisticsType) + return nil +} + +// LogisticsType Getter +func (r TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) GetLogisticsType() string { + return r._logisticsType +} +// OrderDetail Setter +// 采购清单,存放多个采购明细,每个采购明细内部以‘:’隔开,多个采购明细之间以‘,’隔开. 例(分销产品id:skuid:购买数量:申请单价,分销产品id:skuid:购买数量:申请单价),申请单价的单位为分。不存在sku请留空skuid,如(分销产品id::购买数量:申请单价) +func (r *TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) SetOrderDetail(_orderDetail []string) error { + r._orderDetail = _orderDetail + r.Set("order_detail", _orderDetail) + return nil +} + +// OrderDetail Getter +func (r TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) GetOrderDetail() []string { + return r._orderDetail +} +// Province Setter +// 收货人所在省份 +func (r *TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) SetProvince(_province string) error { + r._province = _province + r.Set("province", _province) + return nil +} + +// Province Getter +func (r TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) GetProvince() string { + return r._province +} +// City Setter +// 收货人所在市 +func (r *TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) SetCity(_city string) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) GetCity() string { + return r._city +} +// District Setter +// 收货人所在区 +func (r *TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) SetDistrict(_district string) error { + r._district = _district + r.Set("district", _district) + return nil +} + +// District Getter +func (r TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) GetDistrict() string { + return r._district +} +// Address Setter +// 收货人所在街道地址 +func (r *TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) GetAddress() string { + return r._address +} +// PostCode Setter +// 收货人所在地区邮政编码 +func (r *TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) SetPostCode(_postCode string) error { + r._postCode = _postCode + r.Set("post_code", _postCode) + return nil +} + +// PostCode Getter +func (r TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) GetPostCode() string { + return r._postCode +} +// Phone Setter +// 买家联系电话(此字段和mobile字段至少填写一个) +func (r *TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) GetPhone() string { + return r._phone +} +// Mobile Setter +// 买家的手机号码(1、此字段与phone字段至少填写一个。2、自提方式下此字段必填,保存提货人联系电话) +func (r *TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) GetMobile() string { + return r._mobile +} +// BuyerName Setter +// 买家姓名(自提方式填写提货人姓名) +func (r *TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) SetBuyerName(_buyerName string) error { + r._buyerName = _buyerName + r.Set("buyer_name", _buyerName) + return nil +} + +// BuyerName Getter +func (r TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) GetBuyerName() string { + return r._buyerName +} +// IdCardNumber Setter +// 身份证号(自提方式必填,填写提货人身份证号码,提货时用于确认提货人身份) +func (r *TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) SetIdCardNumber(_idCardNumber string) error { + r._idCardNumber = _idCardNumber + r.Set("id_card_number", _idCardNumber) + return nil +} + +// IdCardNumber Getter +func (r TaobaoFenxiaoDealerRequisitionorderCreateAPIRequest) GetIdCardNumber() string { + return r._idCardNumber +} diff --git a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCreateAPIResponse.go b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCreateAPIResponse.go new file mode 100644 index 0000000000..5e1b5d6a10 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建经销采购申请 API返回值 +taobao.fenxiao.dealer.requisitionorder.create + +创建经销采购申请 +*/ +type TaobaoFenxiaoDealerRequisitionorderCreateAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoDealerRequisitionorderCreateAPIResponseModel +} + +// 创建经销采购申请 成功返回结果 +type TaobaoFenxiaoDealerRequisitionorderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_dealer_requisitionorder_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 经销采购申请编号 + DealerOrderId int64 `json:"dealer_order_id,omitempty" xml:"dealer_order_id,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCreateResponse.go b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCreateResponse.go deleted file mode 100644 index e357d3a850..0000000000 --- a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建经销采购申请 API返回值 -taobao.fenxiao.dealer.requisitionorder.create - -创建经销采购申请 -*/ -type TaobaoFenxiaoDealerRequisitionorderCreateAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoDealerRequisitionorderCreateResponse -} - -// 创建经销采购申请 成功返回结果 -type TaobaoFenxiaoDealerRequisitionorderCreateResponse struct { - XMLName xml.Name `xml:"fenxiao_dealer_requisitionorder_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 经销采购申请编号 - DealerOrderId int64 `json:"dealer_order_id,omitempty" xml:"dealer_order_id,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderGetAPIRequest.go b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderGetAPIRequest.go new file mode 100644 index 0000000000..0d556e5041 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderGetAPIRequest.go @@ -0,0 +1,136 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询采购申请/经销采购单 API请求 +taobao.fenxiao.dealer.requisitionorder.get + +批量查询采购申请/经销采购单,目前支持供应商和分销商查询 +*/ +type TaobaoFenxiaoDealerRequisitionorderGetAPIRequest struct { + model.Params + // 采购申请/经销采购单最早修改时间 + _startDate string + // 采购申请/经销采购单最迟修改时间。与start_date字段的最大时间间隔不能超过30天 + _endDate string + // 页码(大于0的整数。无值或小于1的值按默认值1计) + _pageNo int64 + // 每页条数(大于0但小于等于50的整数。无值或大于50或小于1的值按默认值50计) + _pageSize int64 + // 采购申请/经销采购单状态。
0:全部状态。
1:分销商提交申请,待供应商审核。
2:供应商驳回申请,待分销商确认。
3:供应商修改后,待分销商确认。
4:分销商拒绝修改,待供应商再审核。
5:审核通过下单成功,待分销商付款。
7:付款成功,待供应商发货。
8:供应商发货,待分销商收货。
9:分销商收货,交易成功。
10:采购申请/经销采购单关闭。

注:无值按默认值0计,超出状态范围返回错误信息。 + _orderStatus int64 + // 多个字段用","分隔。 fields 如果为空:返回所有采购申请/经销采购单对象(dealer_orders)字段。 如果不为空:返回指定采购单对象(dealer_orders)字段。 例1: dealer_order_details.product_id 表示只返回product_id 例2: dealer_order_details 表示只返回明细列表 + _fields string + // 查询者自己在所要查询的采购申请/经销采购单中的身份。
1:供应商。
2:分销商。
注:填写其他值当做错误处理。 + _identity int64 +} + +// 初始化TaobaoFenxiaoDealerRequisitionorderGetAPIRequest对象 +func NewTaobaoFenxiaoDealerRequisitionorderGetRequest() *TaobaoFenxiaoDealerRequisitionorderGetAPIRequest{ + return &TaobaoFenxiaoDealerRequisitionorderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoDealerRequisitionorderGetAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.dealer.requisitionorder.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoDealerRequisitionorderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartDate Setter +// 采购申请/经销采购单最早修改时间 +func (r *TaobaoFenxiaoDealerRequisitionorderGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoFenxiaoDealerRequisitionorderGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 采购申请/经销采购单最迟修改时间。与start_date字段的最大时间间隔不能超过30天 +func (r *TaobaoFenxiaoDealerRequisitionorderGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoFenxiaoDealerRequisitionorderGetAPIRequest) GetEndDate() string { + return r._endDate +} +// PageNo Setter +// 页码(大于0的整数。无值或小于1的值按默认值1计) +func (r *TaobaoFenxiaoDealerRequisitionorderGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoFenxiaoDealerRequisitionorderGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数(大于0但小于等于50的整数。无值或大于50或小于1的值按默认值50计) +func (r *TaobaoFenxiaoDealerRequisitionorderGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoFenxiaoDealerRequisitionorderGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// OrderStatus Setter +// 采购申请/经销采购单状态。
0:全部状态。
1:分销商提交申请,待供应商审核。
2:供应商驳回申请,待分销商确认。
3:供应商修改后,待分销商确认。
4:分销商拒绝修改,待供应商再审核。
5:审核通过下单成功,待分销商付款。
7:付款成功,待供应商发货。
8:供应商发货,待分销商收货。
9:分销商收货,交易成功。
10:采购申请/经销采购单关闭。

注:无值按默认值0计,超出状态范围返回错误信息。 +func (r *TaobaoFenxiaoDealerRequisitionorderGetAPIRequest) SetOrderStatus(_orderStatus int64) error { + r._orderStatus = _orderStatus + r.Set("order_status", _orderStatus) + return nil +} + +// OrderStatus Getter +func (r TaobaoFenxiaoDealerRequisitionorderGetAPIRequest) GetOrderStatus() int64 { + return r._orderStatus +} +// Fields Setter +// 多个字段用","分隔。 fields 如果为空:返回所有采购申请/经销采购单对象(dealer_orders)字段。 如果不为空:返回指定采购单对象(dealer_orders)字段。 例1: dealer_order_details.product_id 表示只返回product_id 例2: dealer_order_details 表示只返回明细列表 +func (r *TaobaoFenxiaoDealerRequisitionorderGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoFenxiaoDealerRequisitionorderGetAPIRequest) GetFields() string { + return r._fields +} +// Identity Setter +// 查询者自己在所要查询的采购申请/经销采购单中的身份。
1:供应商。
2:分销商。
注:填写其他值当做错误处理。 +func (r *TaobaoFenxiaoDealerRequisitionorderGetAPIRequest) SetIdentity(_identity int64) error { + r._identity = _identity + r.Set("identity", _identity) + return nil +} + +// Identity Getter +func (r TaobaoFenxiaoDealerRequisitionorderGetAPIRequest) GetIdentity() int64 { + return r._identity +} diff --git a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderGetAPIResponse.go b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderGetAPIResponse.go new file mode 100644 index 0000000000..f607a3ca29 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderGetAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询采购申请/经销采购单 API返回值 +taobao.fenxiao.dealer.requisitionorder.get + +批量查询采购申请/经销采购单,目前支持供应商和分销商查询 +*/ +type TaobaoFenxiaoDealerRequisitionorderGetAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoDealerRequisitionorderGetAPIResponseModel +} + +// 批量查询采购申请/经销采购单 成功返回结果 +type TaobaoFenxiaoDealerRequisitionorderGetAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_dealer_requisitionorder_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 按查询条件查到的记录总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 采购申请/经销采购单结果列表 + DealerOrders []DealerOrder `json:"dealer_orders,omitempty" xml:"dealer_orders>dealer_order,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderGetResponse.go b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderGetResponse.go deleted file mode 100644 index 9e8adeee54..0000000000 --- a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量查询采购申请/经销采购单 API返回值 -taobao.fenxiao.dealer.requisitionorder.get - -批量查询采购申请/经销采购单,目前支持供应商和分销商查询 -*/ -type TaobaoFenxiaoDealerRequisitionorderGetAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoDealerRequisitionorderGetResponse -} - -// 批量查询采购申请/经销采购单 成功返回结果 -type TaobaoFenxiaoDealerRequisitionorderGetResponse struct { - XMLName xml.Name `xml:"fenxiao_dealer_requisitionorder_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 按查询条件查到的记录总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 采购申请/经销采购单结果列表 - DealerOrders []DealerOrder `json:"dealer_orders,omitempty" xml:"dealer_orders>dealer_order,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderQueryAPIRequest.go b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderQueryAPIRequest.go new file mode 100644 index 0000000000..5f52fdd7c0 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderQueryAPIRequest.go @@ -0,0 +1,66 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +按编号查询采购申请/经销采购单 API请求 +taobao.fenxiao.dealer.requisitionorder.query + +按编号查询采购申请/经销采购单,目前支持供应商和分销商查询。 +*/ +type TaobaoFenxiaoDealerRequisitionorderQueryAPIRequest struct { + model.Params + // 经销采购单编号。
多个编号用英文符号的逗号隔开。最多支持50个经销采购单编号的查询。 + _dealerOrderIds []int64 + // 多个字段用","分隔。 fields 如果为空:返回所有经销采购单对象(dealer_orders)字段。 如果不为空:返回指定采购单对象(dealer_orders)字段。 例1: dealer_order_details.product_id 表示只返回product_id 例2: dealer_order_details 表示只返回明细列表 + _fields string +} + +// 初始化TaobaoFenxiaoDealerRequisitionorderQueryAPIRequest对象 +func NewTaobaoFenxiaoDealerRequisitionorderQueryRequest() *TaobaoFenxiaoDealerRequisitionorderQueryAPIRequest{ + return &TaobaoFenxiaoDealerRequisitionorderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoDealerRequisitionorderQueryAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.dealer.requisitionorder.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoDealerRequisitionorderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DealerOrderIds Setter +// 经销采购单编号。
多个编号用英文符号的逗号隔开。最多支持50个经销采购单编号的查询。 +func (r *TaobaoFenxiaoDealerRequisitionorderQueryAPIRequest) SetDealerOrderIds(_dealerOrderIds []int64) error { + r._dealerOrderIds = _dealerOrderIds + r.Set("dealer_order_ids", _dealerOrderIds) + return nil +} + +// DealerOrderIds Getter +func (r TaobaoFenxiaoDealerRequisitionorderQueryAPIRequest) GetDealerOrderIds() []int64 { + return r._dealerOrderIds +} +// Fields Setter +// 多个字段用","分隔。 fields 如果为空:返回所有经销采购单对象(dealer_orders)字段。 如果不为空:返回指定采购单对象(dealer_orders)字段。 例1: dealer_order_details.product_id 表示只返回product_id 例2: dealer_order_details 表示只返回明细列表 +func (r *TaobaoFenxiaoDealerRequisitionorderQueryAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoFenxiaoDealerRequisitionorderQueryAPIRequest) GetFields() string { + return r._fields +} diff --git a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderQueryAPIResponse.go b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderQueryAPIResponse.go new file mode 100644 index 0000000000..b90c1d06dc --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +按编号查询采购申请/经销采购单 API返回值 +taobao.fenxiao.dealer.requisitionorder.query + +按编号查询采购申请/经销采购单,目前支持供应商和分销商查询。 +*/ +type TaobaoFenxiaoDealerRequisitionorderQueryAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoDealerRequisitionorderQueryAPIResponseModel +} + +// 按编号查询采购申请/经销采购单 成功返回结果 +type TaobaoFenxiaoDealerRequisitionorderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_dealer_requisitionorder_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 经销采购单结果列表 + DealerOrders []DealerOrder `json:"dealer_orders,omitempty" xml:"dealer_orders>dealer_order,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderQueryResponse.go b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderQueryResponse.go deleted file mode 100644 index 53d489ec18..0000000000 --- a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -按编号查询采购申请/经销采购单 API返回值 -taobao.fenxiao.dealer.requisitionorder.query - -按编号查询采购申请/经销采购单,目前支持供应商和分销商查询。 -*/ -type TaobaoFenxiaoDealerRequisitionorderQueryAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoDealerRequisitionorderQueryResponse -} - -// 按编号查询采购申请/经销采购单 成功返回结果 -type TaobaoFenxiaoDealerRequisitionorderQueryResponse struct { - XMLName xml.Name `xml:"fenxiao_dealer_requisitionorder_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 经销采购单结果列表 - DealerOrders []DealerOrder `json:"dealer_orders,omitempty" xml:"dealer_orders>dealer_order,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIRequest.go b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIRequest.go new file mode 100644 index 0000000000..16c7950b42 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改经销采购单备注 API请求 +taobao.fenxiao.dealer.requisitionorder.remark.update + +供应商修改经销采购单备注 +*/ +type TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIRequest struct { + model.Params + // 经销采购单ID + _dealerOrderId int64 + // 备注留言,可为空 + _supplierMemo string + // 旗子的标记,必选。
1-5之间的数字。
非1-5之间,都采用1作为默认。
1:红色
2:黄色
3:绿色
4:蓝色
5:粉红色 + _supplierMemoFlag int64 +} + +// 初始化TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIRequest对象 +func NewTaobaoFenxiaoDealerRequisitionorderRemarkUpdateRequest() *TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIRequest{ + return &TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.dealer.requisitionorder.remark.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DealerOrderId Setter +// 经销采购单ID +func (r *TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIRequest) SetDealerOrderId(_dealerOrderId int64) error { + r._dealerOrderId = _dealerOrderId + r.Set("dealer_order_id", _dealerOrderId) + return nil +} + +// DealerOrderId Getter +func (r TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIRequest) GetDealerOrderId() int64 { + return r._dealerOrderId +} +// SupplierMemo Setter +// 备注留言,可为空 +func (r *TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIRequest) SetSupplierMemo(_supplierMemo string) error { + r._supplierMemo = _supplierMemo + r.Set("supplier_memo", _supplierMemo) + return nil +} + +// SupplierMemo Getter +func (r TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIRequest) GetSupplierMemo() string { + return r._supplierMemo +} +// SupplierMemoFlag Setter +// 旗子的标记,必选。
1-5之间的数字。
非1-5之间,都采用1作为默认。
1:红色
2:黄色
3:绿色
4:蓝色
5:粉红色 +func (r *TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIRequest) SetSupplierMemoFlag(_supplierMemoFlag int64) error { + r._supplierMemoFlag = _supplierMemoFlag + r.Set("supplier_memo_flag", _supplierMemoFlag) + return nil +} + +// SupplierMemoFlag Getter +func (r TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIRequest) GetSupplierMemoFlag() int64 { + return r._supplierMemoFlag +} diff --git a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIResponse.go b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIResponse.go new file mode 100644 index 0000000000..943366c9d3 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改经销采购单备注 API返回值 +taobao.fenxiao.dealer.requisitionorder.remark.update + +供应商修改经销采购单备注 +*/ +type TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIResponseModel +} + +// 修改经销采购单备注 成功返回结果 +type TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_dealer_requisitionorder_remark_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderRemarkUpdateResponse.go b/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderRemarkUpdateResponse.go deleted file mode 100644 index a72c42002d..0000000000 --- a/model/fenxiao/TaobaoFenxiaoDealerRequisitionorderRemarkUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改经销采购单备注 API返回值 -taobao.fenxiao.dealer.requisitionorder.remark.update - -供应商修改经销采购单备注 -*/ -type TaobaoFenxiaoDealerRequisitionorderRemarkUpdateAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoDealerRequisitionorderRemarkUpdateResponse -} - -// 修改经销采购单备注 成功返回结果 -type TaobaoFenxiaoDealerRequisitionorderRemarkUpdateResponse struct { - XMLName xml.Name `xml:"fenxiao_dealer_requisitionorder_remark_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoDiscountsGetAPIRequest.go b/model/fenxiao/TaobaoFenxiaoDiscountsGetAPIRequest.go new file mode 100644 index 0000000000..cc17ca584e --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDiscountsGetAPIRequest.go @@ -0,0 +1,66 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取折扣信息 API请求 +taobao.fenxiao.discounts.get + +查询折扣信息 +*/ +type TaobaoFenxiaoDiscountsGetAPIRequest struct { + model.Params + // 折扣ID + _discountId int64 + // 指定查询额外的信息,可选值:DETAIL(查询折扣详情),多个可选值用逗号分割。(只允许指定折扣ID情况下使用) + _extFields string +} + +// 初始化TaobaoFenxiaoDiscountsGetAPIRequest对象 +func NewTaobaoFenxiaoDiscountsGetRequest() *TaobaoFenxiaoDiscountsGetAPIRequest{ + return &TaobaoFenxiaoDiscountsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoDiscountsGetAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.discounts.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoDiscountsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DiscountId Setter +// 折扣ID +func (r *TaobaoFenxiaoDiscountsGetAPIRequest) SetDiscountId(_discountId int64) error { + r._discountId = _discountId + r.Set("discount_id", _discountId) + return nil +} + +// DiscountId Getter +func (r TaobaoFenxiaoDiscountsGetAPIRequest) GetDiscountId() int64 { + return r._discountId +} +// ExtFields Setter +// 指定查询额外的信息,可选值:DETAIL(查询折扣详情),多个可选值用逗号分割。(只允许指定折扣ID情况下使用) +func (r *TaobaoFenxiaoDiscountsGetAPIRequest) SetExtFields(_extFields string) error { + r._extFields = _extFields + r.Set("ext_fields", _extFields) + return nil +} + +// ExtFields Getter +func (r TaobaoFenxiaoDiscountsGetAPIRequest) GetExtFields() string { + return r._extFields +} diff --git a/model/fenxiao/TaobaoFenxiaoDiscountsGetAPIResponse.go b/model/fenxiao/TaobaoFenxiaoDiscountsGetAPIResponse.go new file mode 100644 index 0000000000..2f1b470a1e --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDiscountsGetAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取折扣信息 API返回值 +taobao.fenxiao.discounts.get + +查询折扣信息 +*/ +type TaobaoFenxiaoDiscountsGetAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoDiscountsGetAPIResponseModel +} + +// 获取折扣信息 成功返回结果 +type TaobaoFenxiaoDiscountsGetAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_discounts_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 折扣数据结构 + Discounts []Discount `json:"discounts,omitempty" xml:"discounts>discount,omitempty"` + // 记录数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoDiscountsGetResponse.go b/model/fenxiao/TaobaoFenxiaoDiscountsGetResponse.go deleted file mode 100644 index 0bfd65eee6..0000000000 --- a/model/fenxiao/TaobaoFenxiaoDiscountsGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取折扣信息 API返回值 -taobao.fenxiao.discounts.get - -查询折扣信息 -*/ -type TaobaoFenxiaoDiscountsGetAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoDiscountsGetResponse -} - -// 获取折扣信息 成功返回结果 -type TaobaoFenxiaoDiscountsGetResponse struct { - XMLName xml.Name `xml:"fenxiao_discounts_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 折扣数据结构 - Discounts []Discount `json:"discounts,omitempty" xml:"discounts>discount,omitempty"` - // 记录数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoDistributorItemsGetAPIRequest.go b/model/fenxiao/TaobaoFenxiaoDistributorItemsGetAPIRequest.go new file mode 100644 index 0000000000..d7b5db2ce6 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDistributorItemsGetAPIRequest.go @@ -0,0 +1,122 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品下载记录 API请求 +taobao.fenxiao.distributor.items.get + +供应商查询分销商商品下载记录。 +*/ +type TaobaoFenxiaoDistributorItemsGetAPIRequest struct { + model.Params + // 分销商ID 。 + _distributorId int64 + // 设置开始时间。空为不设置。 + _startModified string + // 设置结束时间,空为不设置。 + _endModified string + // 页码(大于0的整数,默认1) + _pageNo int64 + // 每页记录数(默认20,最大50) + _pageSize int64 + // 产品ID + _productId int64 +} + +// 初始化TaobaoFenxiaoDistributorItemsGetAPIRequest对象 +func NewTaobaoFenxiaoDistributorItemsGetRequest() *TaobaoFenxiaoDistributorItemsGetAPIRequest{ + return &TaobaoFenxiaoDistributorItemsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoDistributorItemsGetAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.distributor.items.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoDistributorItemsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DistributorId Setter +// 分销商ID 。 +func (r *TaobaoFenxiaoDistributorItemsGetAPIRequest) SetDistributorId(_distributorId int64) error { + r._distributorId = _distributorId + r.Set("distributor_id", _distributorId) + return nil +} + +// DistributorId Getter +func (r TaobaoFenxiaoDistributorItemsGetAPIRequest) GetDistributorId() int64 { + return r._distributorId +} +// StartModified Setter +// 设置开始时间。空为不设置。 +func (r *TaobaoFenxiaoDistributorItemsGetAPIRequest) SetStartModified(_startModified string) error { + r._startModified = _startModified + r.Set("start_modified", _startModified) + return nil +} + +// StartModified Getter +func (r TaobaoFenxiaoDistributorItemsGetAPIRequest) GetStartModified() string { + return r._startModified +} +// EndModified Setter +// 设置结束时间,空为不设置。 +func (r *TaobaoFenxiaoDistributorItemsGetAPIRequest) SetEndModified(_endModified string) error { + r._endModified = _endModified + r.Set("end_modified", _endModified) + return nil +} + +// EndModified Getter +func (r TaobaoFenxiaoDistributorItemsGetAPIRequest) GetEndModified() string { + return r._endModified +} +// PageNo Setter +// 页码(大于0的整数,默认1) +func (r *TaobaoFenxiaoDistributorItemsGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoFenxiaoDistributorItemsGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页记录数(默认20,最大50) +func (r *TaobaoFenxiaoDistributorItemsGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoFenxiaoDistributorItemsGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// ProductId Setter +// 产品ID +func (r *TaobaoFenxiaoDistributorItemsGetAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoFenxiaoDistributorItemsGetAPIRequest) GetProductId() int64 { + return r._productId +} diff --git a/model/fenxiao/TaobaoFenxiaoDistributorItemsGetAPIResponse.go b/model/fenxiao/TaobaoFenxiaoDistributorItemsGetAPIResponse.go new file mode 100644 index 0000000000..ba28c466ce --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDistributorItemsGetAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品下载记录 API返回值 +taobao.fenxiao.distributor.items.get + +供应商查询分销商商品下载记录。 +*/ +type TaobaoFenxiaoDistributorItemsGetAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoDistributorItemsGetAPIResponseModel +} + +// 查询商品下载记录 成功返回结果 +type TaobaoFenxiaoDistributorItemsGetAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_distributor_items_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果记录数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 下载记录对象 + Records []FenxiaoItemRecord `json:"records,omitempty" xml:"records>fenxiao_item_record,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoDistributorItemsGetResponse.go b/model/fenxiao/TaobaoFenxiaoDistributorItemsGetResponse.go deleted file mode 100644 index 76bcb38b40..0000000000 --- a/model/fenxiao/TaobaoFenxiaoDistributorItemsGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询商品下载记录 API返回值 -taobao.fenxiao.distributor.items.get - -供应商查询分销商商品下载记录。 -*/ -type TaobaoFenxiaoDistributorItemsGetAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoDistributorItemsGetResponse -} - -// 查询商品下载记录 成功返回结果 -type TaobaoFenxiaoDistributorItemsGetResponse struct { - XMLName xml.Name `xml:"fenxiao_distributor_items_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果记录数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 下载记录对象 - Records []FenxiaoItemRecord `json:"records,omitempty" xml:"records>fenxiao_item_record,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoDistributorProductsGetAPIRequest.go b/model/fenxiao/TaobaoFenxiaoDistributorProductsGetAPIRequest.go new file mode 100644 index 0000000000..b5c8241610 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDistributorProductsGetAPIRequest.go @@ -0,0 +1,220 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分销商查询产品信息 API请求 +taobao.fenxiao.distributor.products.get + +分销商查询供应商产品信息 +*/ +type TaobaoFenxiaoDistributorProductsGetAPIRequest struct { + model.Params + // order_by + _orderBy string + // time_type + _timeType string + // 下载状态,默认是未下载;可选值:UNDOWNLOAD:未下载 ;DOWNLOADED:已下载;下载:指将供应商授权的产品发布为店铺新宝贝的过程,下载成功后,分销商需要将新生成的宝贝重新编辑并上架后售卖。 + _downloadStatus string + // 分销方式;可选择:AGENT : 代销;DEALER:经销;DIRECT:直营 + _tradeType string + // 结束时间 + _endTime string + // 指定查询额外的信息,可选值:skus(sku数据)、images(多图),多个可选值用逗号分割。 + _fields []string + // 根据商品ID列表查询,优先级次于产品ID列表,高于其他分页查询条件。如果商品不是分销商品,自动过滤。最大限制20,用逗号分割,例如:“1001,1002,1003,1004,1005” + _itemIds []int64 + // 产品线ID + _productcatId int64 + // 产品ID列表(最大限制30),用逗号分割,例如:“1001,1002,1003,1004,1005” + _pids []int64 + // 开始修改时间 + _startTime string + // 页码(大于0的整数,默认1) + _pageNo int64 + // 每页记录数(默认20,最大50) + _pageSize int64 + // 供应商nick,分页查询时,必传 + _supplierNick string +} + +// 初始化TaobaoFenxiaoDistributorProductsGetAPIRequest对象 +func NewTaobaoFenxiaoDistributorProductsGetRequest() *TaobaoFenxiaoDistributorProductsGetAPIRequest{ + return &TaobaoFenxiaoDistributorProductsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoDistributorProductsGetAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.distributor.products.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoDistributorProductsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderBy Setter +// order_by +func (r *TaobaoFenxiaoDistributorProductsGetAPIRequest) SetOrderBy(_orderBy string) error { + r._orderBy = _orderBy + r.Set("order_by", _orderBy) + return nil +} + +// OrderBy Getter +func (r TaobaoFenxiaoDistributorProductsGetAPIRequest) GetOrderBy() string { + return r._orderBy +} +// TimeType Setter +// time_type +func (r *TaobaoFenxiaoDistributorProductsGetAPIRequest) SetTimeType(_timeType string) error { + r._timeType = _timeType + r.Set("time_type", _timeType) + return nil +} + +// TimeType Getter +func (r TaobaoFenxiaoDistributorProductsGetAPIRequest) GetTimeType() string { + return r._timeType +} +// DownloadStatus Setter +// 下载状态,默认是未下载;可选值:UNDOWNLOAD:未下载 ;DOWNLOADED:已下载;下载:指将供应商授权的产品发布为店铺新宝贝的过程,下载成功后,分销商需要将新生成的宝贝重新编辑并上架后售卖。 +func (r *TaobaoFenxiaoDistributorProductsGetAPIRequest) SetDownloadStatus(_downloadStatus string) error { + r._downloadStatus = _downloadStatus + r.Set("download_status", _downloadStatus) + return nil +} + +// DownloadStatus Getter +func (r TaobaoFenxiaoDistributorProductsGetAPIRequest) GetDownloadStatus() string { + return r._downloadStatus +} +// TradeType Setter +// 分销方式;可选择:AGENT : 代销;DEALER:经销;DIRECT:直营 +func (r *TaobaoFenxiaoDistributorProductsGetAPIRequest) SetTradeType(_tradeType string) error { + r._tradeType = _tradeType + r.Set("trade_type", _tradeType) + return nil +} + +// TradeType Getter +func (r TaobaoFenxiaoDistributorProductsGetAPIRequest) GetTradeType() string { + return r._tradeType +} +// EndTime Setter +// 结束时间 +func (r *TaobaoFenxiaoDistributorProductsGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoFenxiaoDistributorProductsGetAPIRequest) GetEndTime() string { + return r._endTime +} +// Fields Setter +// 指定查询额外的信息,可选值:skus(sku数据)、images(多图),多个可选值用逗号分割。 +func (r *TaobaoFenxiaoDistributorProductsGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoFenxiaoDistributorProductsGetAPIRequest) GetFields() []string { + return r._fields +} +// ItemIds Setter +// 根据商品ID列表查询,优先级次于产品ID列表,高于其他分页查询条件。如果商品不是分销商品,自动过滤。最大限制20,用逗号分割,例如:“1001,1002,1003,1004,1005” +func (r *TaobaoFenxiaoDistributorProductsGetAPIRequest) SetItemIds(_itemIds []int64) error { + r._itemIds = _itemIds + r.Set("item_ids", _itemIds) + return nil +} + +// ItemIds Getter +func (r TaobaoFenxiaoDistributorProductsGetAPIRequest) GetItemIds() []int64 { + return r._itemIds +} +// ProductcatId Setter +// 产品线ID +func (r *TaobaoFenxiaoDistributorProductsGetAPIRequest) SetProductcatId(_productcatId int64) error { + r._productcatId = _productcatId + r.Set("productcat_id", _productcatId) + return nil +} + +// ProductcatId Getter +func (r TaobaoFenxiaoDistributorProductsGetAPIRequest) GetProductcatId() int64 { + return r._productcatId +} +// Pids Setter +// 产品ID列表(最大限制30),用逗号分割,例如:“1001,1002,1003,1004,1005” +func (r *TaobaoFenxiaoDistributorProductsGetAPIRequest) SetPids(_pids []int64) error { + r._pids = _pids + r.Set("pids", _pids) + return nil +} + +// Pids Getter +func (r TaobaoFenxiaoDistributorProductsGetAPIRequest) GetPids() []int64 { + return r._pids +} +// StartTime Setter +// 开始修改时间 +func (r *TaobaoFenxiaoDistributorProductsGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoFenxiaoDistributorProductsGetAPIRequest) GetStartTime() string { + return r._startTime +} +// PageNo Setter +// 页码(大于0的整数,默认1) +func (r *TaobaoFenxiaoDistributorProductsGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoFenxiaoDistributorProductsGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页记录数(默认20,最大50) +func (r *TaobaoFenxiaoDistributorProductsGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoFenxiaoDistributorProductsGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// SupplierNick Setter +// 供应商nick,分页查询时,必传 +func (r *TaobaoFenxiaoDistributorProductsGetAPIRequest) SetSupplierNick(_supplierNick string) error { + r._supplierNick = _supplierNick + r.Set("supplier_nick", _supplierNick) + return nil +} + +// SupplierNick Getter +func (r TaobaoFenxiaoDistributorProductsGetAPIRequest) GetSupplierNick() string { + return r._supplierNick +} diff --git a/model/fenxiao/TaobaoFenxiaoDistributorProductsGetAPIResponse.go b/model/fenxiao/TaobaoFenxiaoDistributorProductsGetAPIResponse.go new file mode 100644 index 0000000000..8623940cca --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDistributorProductsGetAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分销商查询产品信息 API返回值 +taobao.fenxiao.distributor.products.get + +分销商查询供应商产品信息 +*/ +type TaobaoFenxiaoDistributorProductsGetAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoDistributorProductsGetAPIResponseModel +} + +// 分销商查询产品信息 成功返回结果 +type TaobaoFenxiaoDistributorProductsGetAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_distributor_products_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否存在下一页 + HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` + // 产品对象记录集。返回 FenxiaoProduct 包含的字段信息。 + Products []FenxiaoProduct `json:"products,omitempty" xml:"products>fenxiao_product,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoDistributorProductsGetResponse.go b/model/fenxiao/TaobaoFenxiaoDistributorProductsGetResponse.go deleted file mode 100644 index 418a18d5f1..0000000000 --- a/model/fenxiao/TaobaoFenxiaoDistributorProductsGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分销商查询产品信息 API返回值 -taobao.fenxiao.distributor.products.get - -分销商查询供应商产品信息 -*/ -type TaobaoFenxiaoDistributorProductsGetAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoDistributorProductsGetResponse -} - -// 分销商查询产品信息 成功返回结果 -type TaobaoFenxiaoDistributorProductsGetResponse struct { - XMLName xml.Name `xml:"fenxiao_distributor_products_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否存在下一页 - HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` - // 产品对象记录集。返回 FenxiaoProduct 包含的字段信息。 - Products []FenxiaoProduct `json:"products,omitempty" xml:"products>fenxiao_product,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoDistributorsGetAPIRequest.go b/model/fenxiao/TaobaoFenxiaoDistributorsGetAPIRequest.go new file mode 100644 index 0000000000..466724171f --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDistributorsGetAPIRequest.go @@ -0,0 +1,52 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取分销商信息 API请求 +taobao.fenxiao.distributors.get + +查询和当前登录供应商有合作关系的分销商的信息 +*/ +type TaobaoFenxiaoDistributorsGetAPIRequest struct { + model.Params + // 分销商用户名列表。多个之间以“,”分隔;最多支持50个分销商用户名。 + _nicks string +} + +// 初始化TaobaoFenxiaoDistributorsGetAPIRequest对象 +func NewTaobaoFenxiaoDistributorsGetRequest() *TaobaoFenxiaoDistributorsGetAPIRequest{ + return &TaobaoFenxiaoDistributorsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoDistributorsGetAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.distributors.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoDistributorsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nicks Setter +// 分销商用户名列表。多个之间以“,”分隔;最多支持50个分销商用户名。 +func (r *TaobaoFenxiaoDistributorsGetAPIRequest) SetNicks(_nicks string) error { + r._nicks = _nicks + r.Set("nicks", _nicks) + return nil +} + +// Nicks Getter +func (r TaobaoFenxiaoDistributorsGetAPIRequest) GetNicks() string { + return r._nicks +} diff --git a/model/fenxiao/TaobaoFenxiaoDistributorsGetAPIResponse.go b/model/fenxiao/TaobaoFenxiaoDistributorsGetAPIResponse.go new file mode 100644 index 0000000000..b7ef8359c5 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoDistributorsGetAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取分销商信息 API返回值 +taobao.fenxiao.distributors.get + +查询和当前登录供应商有合作关系的分销商的信息 +*/ +type TaobaoFenxiaoDistributorsGetAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoDistributorsGetAPIResponseModel +} + +// 获取分销商信息 成功返回结果 +type TaobaoFenxiaoDistributorsGetAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_distributors_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分销商详细信息 + Distributors []Distributor `json:"distributors,omitempty" xml:"distributors>distributor,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoDistributorsGetResponse.go b/model/fenxiao/TaobaoFenxiaoDistributorsGetResponse.go deleted file mode 100644 index e56446bd14..0000000000 --- a/model/fenxiao/TaobaoFenxiaoDistributorsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取分销商信息 API返回值 -taobao.fenxiao.distributors.get - -查询和当前登录供应商有合作关系的分销商的信息 -*/ -type TaobaoFenxiaoDistributorsGetAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoDistributorsGetResponse -} - -// 获取分销商信息 成功返回结果 -type TaobaoFenxiaoDistributorsGetResponse struct { - XMLName xml.Name `xml:"fenxiao_distributors_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分销商详细信息 - Distributors []Distributor `json:"distributors,omitempty" xml:"distributors>distributor,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoGradesGetAPIRequest.go b/model/fenxiao/TaobaoFenxiaoGradesGetAPIRequest.go new file mode 100644 index 0000000000..2271a140ab --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoGradesGetAPIRequest.go @@ -0,0 +1,38 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分销商等级查询 API请求 +taobao.fenxiao.grades.get + +根据供应商ID,查询他的分销商等级信息 +*/ +type TaobaoFenxiaoGradesGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoFenxiaoGradesGetAPIRequest对象 +func NewTaobaoFenxiaoGradesGetRequest() *TaobaoFenxiaoGradesGetAPIRequest{ + return &TaobaoFenxiaoGradesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoGradesGetAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.grades.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoGradesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/fenxiao/TaobaoFenxiaoGradesGetAPIResponse.go b/model/fenxiao/TaobaoFenxiaoGradesGetAPIResponse.go new file mode 100644 index 0000000000..99e0f27496 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoGradesGetAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分销商等级查询 API返回值 +taobao.fenxiao.grades.get + +根据供应商ID,查询他的分销商等级信息 +*/ +type TaobaoFenxiaoGradesGetAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoGradesGetAPIResponseModel +} + +// 分销商等级查询 成功返回结果 +type TaobaoFenxiaoGradesGetAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_grades_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分销商等级信息 + FenxiaoGrades []FenxiaoGrade `json:"fenxiao_grades,omitempty" xml:"fenxiao_grades>fenxiao_grade,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoGradesGetResponse.go b/model/fenxiao/TaobaoFenxiaoGradesGetResponse.go deleted file mode 100644 index 8de707e60d..0000000000 --- a/model/fenxiao/TaobaoFenxiaoGradesGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分销商等级查询 API返回值 -taobao.fenxiao.grades.get - -根据供应商ID,查询他的分销商等级信息 -*/ -type TaobaoFenxiaoGradesGetAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoGradesGetResponse -} - -// 分销商等级查询 成功返回结果 -type TaobaoFenxiaoGradesGetResponse struct { - XMLName xml.Name `xml:"fenxiao_grades_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分销商等级信息 - FenxiaoGrades []FenxiaoGrade `json:"fenxiao_grades,omitempty" xml:"fenxiao_grades>fenxiao_grade,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoLoginUserGetAPIRequest.go b/model/fenxiao/TaobaoFenxiaoLoginUserGetAPIRequest.go new file mode 100644 index 0000000000..989fe6e5d3 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoLoginUserGetAPIRequest.go @@ -0,0 +1,38 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取分销用户登录信息 API请求 +taobao.fenxiao.login.user.get + +获取用户登录信息 +*/ +type TaobaoFenxiaoLoginUserGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoFenxiaoLoginUserGetAPIRequest对象 +func NewTaobaoFenxiaoLoginUserGetRequest() *TaobaoFenxiaoLoginUserGetAPIRequest{ + return &TaobaoFenxiaoLoginUserGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoLoginUserGetAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.login.user.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoLoginUserGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/fenxiao/TaobaoFenxiaoLoginUserGetAPIResponse.go b/model/fenxiao/TaobaoFenxiaoLoginUserGetAPIResponse.go new file mode 100644 index 0000000000..3aa8a7eb88 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoLoginUserGetAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取分销用户登录信息 API返回值 +taobao.fenxiao.login.user.get + +获取用户登录信息 +*/ +type TaobaoFenxiaoLoginUserGetAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoLoginUserGetAPIResponseModel +} + +// 获取分销用户登录信息 成功返回结果 +type TaobaoFenxiaoLoginUserGetAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_login_user_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 登录用户信息 + LoginUser *LoginUser `json:"login_user,omitempty" xml:"login_user,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoLoginUserGetResponse.go b/model/fenxiao/TaobaoFenxiaoLoginUserGetResponse.go deleted file mode 100644 index 71e124ec03..0000000000 --- a/model/fenxiao/TaobaoFenxiaoLoginUserGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取分销用户登录信息 API返回值 -taobao.fenxiao.login.user.get - -获取用户登录信息 -*/ -type TaobaoFenxiaoLoginUserGetAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoLoginUserGetResponse -} - -// 获取分销用户登录信息 成功返回结果 -type TaobaoFenxiaoLoginUserGetResponse struct { - XMLName xml.Name `xml:"fenxiao_login_user_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 登录用户信息 - LoginUser *LoginUser `json:"login_user,omitempty" xml:"login_user,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoOrderConfirmPaidAPIRequest.go b/model/fenxiao/TaobaoFenxiaoOrderConfirmPaidAPIRequest.go new file mode 100644 index 0000000000..825a9f7db9 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoOrderConfirmPaidAPIRequest.go @@ -0,0 +1,66 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +确认收款 API请求 +taobao.fenxiao.order.confirm.paid + +供应商确认收款(非支付宝交易)。 +*/ +type TaobaoFenxiaoOrderConfirmPaidAPIRequest struct { + model.Params + // 采购单编号。 + _purchaseOrderId int64 + // 确认支付信息(字数小于100) + _confirmRemark string +} + +// 初始化TaobaoFenxiaoOrderConfirmPaidAPIRequest对象 +func NewTaobaoFenxiaoOrderConfirmPaidRequest() *TaobaoFenxiaoOrderConfirmPaidAPIRequest{ + return &TaobaoFenxiaoOrderConfirmPaidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoOrderConfirmPaidAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.order.confirm.paid" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoOrderConfirmPaidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PurchaseOrderId Setter +// 采购单编号。 +func (r *TaobaoFenxiaoOrderConfirmPaidAPIRequest) SetPurchaseOrderId(_purchaseOrderId int64) error { + r._purchaseOrderId = _purchaseOrderId + r.Set("purchase_order_id", _purchaseOrderId) + return nil +} + +// PurchaseOrderId Getter +func (r TaobaoFenxiaoOrderConfirmPaidAPIRequest) GetPurchaseOrderId() int64 { + return r._purchaseOrderId +} +// ConfirmRemark Setter +// 确认支付信息(字数小于100) +func (r *TaobaoFenxiaoOrderConfirmPaidAPIRequest) SetConfirmRemark(_confirmRemark string) error { + r._confirmRemark = _confirmRemark + r.Set("confirm_remark", _confirmRemark) + return nil +} + +// ConfirmRemark Getter +func (r TaobaoFenxiaoOrderConfirmPaidAPIRequest) GetConfirmRemark() string { + return r._confirmRemark +} diff --git a/model/fenxiao/TaobaoFenxiaoOrderConfirmPaidAPIResponse.go b/model/fenxiao/TaobaoFenxiaoOrderConfirmPaidAPIResponse.go new file mode 100644 index 0000000000..71d491ad87 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoOrderConfirmPaidAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +确认收款 API返回值 +taobao.fenxiao.order.confirm.paid + +供应商确认收款(非支付宝交易)。 +*/ +type TaobaoFenxiaoOrderConfirmPaidAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoOrderConfirmPaidAPIResponseModel +} + +// 确认收款 成功返回结果 +type TaobaoFenxiaoOrderConfirmPaidAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_order_confirm_paid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 确认结果成功与否 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoOrderConfirmPaidResponse.go b/model/fenxiao/TaobaoFenxiaoOrderConfirmPaidResponse.go deleted file mode 100644 index e02d5a3e64..0000000000 --- a/model/fenxiao/TaobaoFenxiaoOrderConfirmPaidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -确认收款 API返回值 -taobao.fenxiao.order.confirm.paid - -供应商确认收款(非支付宝交易)。 -*/ -type TaobaoFenxiaoOrderConfirmPaidAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoOrderConfirmPaidResponse -} - -// 确认收款 成功返回结果 -type TaobaoFenxiaoOrderConfirmPaidResponse struct { - XMLName xml.Name `xml:"fenxiao_order_confirm_paid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 确认结果成功与否 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoOrderRemarkUpdateAPIRequest.go b/model/fenxiao/TaobaoFenxiaoOrderRemarkUpdateAPIRequest.go new file mode 100644 index 0000000000..d080949bec --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoOrderRemarkUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改采购单备注 API请求 +taobao.fenxiao.order.remark.update + +供应商修改采购单备注 +*/ +type TaobaoFenxiaoOrderRemarkUpdateAPIRequest struct { + model.Params + // 采购单编号 + _purchaseOrderId int64 + // 备注内容(供应商操作) + _supplierMemo string + // 旗子的标记,1-5之间的数字。非1-5之间,都采用1作为默认。
1:红色
2:黄色
3:绿色
4:蓝色
5:粉红色 + _supplierMemoFlag int64 +} + +// 初始化TaobaoFenxiaoOrderRemarkUpdateAPIRequest对象 +func NewTaobaoFenxiaoOrderRemarkUpdateRequest() *TaobaoFenxiaoOrderRemarkUpdateAPIRequest{ + return &TaobaoFenxiaoOrderRemarkUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoOrderRemarkUpdateAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.order.remark.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoOrderRemarkUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PurchaseOrderId Setter +// 采购单编号 +func (r *TaobaoFenxiaoOrderRemarkUpdateAPIRequest) SetPurchaseOrderId(_purchaseOrderId int64) error { + r._purchaseOrderId = _purchaseOrderId + r.Set("purchase_order_id", _purchaseOrderId) + return nil +} + +// PurchaseOrderId Getter +func (r TaobaoFenxiaoOrderRemarkUpdateAPIRequest) GetPurchaseOrderId() int64 { + return r._purchaseOrderId +} +// SupplierMemo Setter +// 备注内容(供应商操作) +func (r *TaobaoFenxiaoOrderRemarkUpdateAPIRequest) SetSupplierMemo(_supplierMemo string) error { + r._supplierMemo = _supplierMemo + r.Set("supplier_memo", _supplierMemo) + return nil +} + +// SupplierMemo Getter +func (r TaobaoFenxiaoOrderRemarkUpdateAPIRequest) GetSupplierMemo() string { + return r._supplierMemo +} +// SupplierMemoFlag Setter +// 旗子的标记,1-5之间的数字。非1-5之间,都采用1作为默认。
1:红色
2:黄色
3:绿色
4:蓝色
5:粉红色 +func (r *TaobaoFenxiaoOrderRemarkUpdateAPIRequest) SetSupplierMemoFlag(_supplierMemoFlag int64) error { + r._supplierMemoFlag = _supplierMemoFlag + r.Set("supplier_memo_flag", _supplierMemoFlag) + return nil +} + +// SupplierMemoFlag Getter +func (r TaobaoFenxiaoOrderRemarkUpdateAPIRequest) GetSupplierMemoFlag() int64 { + return r._supplierMemoFlag +} diff --git a/model/fenxiao/TaobaoFenxiaoOrderRemarkUpdateAPIResponse.go b/model/fenxiao/TaobaoFenxiaoOrderRemarkUpdateAPIResponse.go new file mode 100644 index 0000000000..a56a000991 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoOrderRemarkUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改采购单备注 API返回值 +taobao.fenxiao.order.remark.update + +供应商修改采购单备注 +*/ +type TaobaoFenxiaoOrderRemarkUpdateAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoOrderRemarkUpdateAPIResponseModel +} + +// 修改采购单备注 成功返回结果 +type TaobaoFenxiaoOrderRemarkUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_order_remark_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoOrderRemarkUpdateResponse.go b/model/fenxiao/TaobaoFenxiaoOrderRemarkUpdateResponse.go deleted file mode 100644 index 0bd0253718..0000000000 --- a/model/fenxiao/TaobaoFenxiaoOrderRemarkUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改采购单备注 API返回值 -taobao.fenxiao.order.remark.update - -供应商修改采购单备注 -*/ -type TaobaoFenxiaoOrderRemarkUpdateAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoOrderRemarkUpdateResponse -} - -// 修改采购单备注 成功返回结果 -type TaobaoFenxiaoOrderRemarkUpdateResponse struct { - XMLName xml.Name `xml:"fenxiao_order_remark_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoOrdersGetAPIRequest.go b/model/fenxiao/TaobaoFenxiaoOrdersGetAPIRequest.go new file mode 100644 index 0000000000..6944dc82eb --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoOrdersGetAPIRequest.go @@ -0,0 +1,206 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询采购单信息 API请求 +taobao.fenxiao.orders.get + +分销商或供应商均可用此接口查询采购单信息(代销); (发货请调用物流API中的发货接口taobao.logistics.offline.send 进行发货,需要注意的是这里是供应商发货,因此调发货接口时需要传人供应商账号对应的sessionkey,tid 需传入供销平台的采购单(即fenxiao_id 分销流水号))。 +*/ +type TaobaoFenxiaoOrdersGetAPIRequest struct { + model.Params + // 交易状态,不传默认查询所有采购单根据身份选择自身状态可选值: *供应商: WAIT_SELLER_SEND_GOODS(等待发货) WAIT_SELLER_CONFIRM_PAY(待确认收款) WAIT_BUYER_PAY(等待付款) WAIT_BUYER_CONFIRM_GOODS(已发货) TRADE_REFUNDING(退款中) TRADE_FINISHED(采购成功) TRADE_CLOSED(已关闭) *分销商: WAIT_BUYER_PAY(等待付款) WAIT_BUYER_CONFIRM_GOODS(待收货确认) TRADE_FOR_PAY(已付款) TRADE_REFUNDING(退款中) TRADE_FINISHED(采购成功) TRADE_CLOSED(已关闭) + _status string + // 起始时间 格式 yyyy-MM-dd HH:mm:ss.支持到秒的查询。若不传时分秒,默认为0时0分0秒。若purchase_order_id没传,则此参数必传。 + _startCreated string + // 结束时间 格式 yyyy-MM-dd HH:mm:ss.支持到秒的查询。若不传时分秒,默认为0时0分0秒。若purchase_order_id没传,则此参数必传。 + _endCreated string + // 可选值:trade_time_type(采购单按照成交时间范围查询),update_time_type(采购单按照更新时间范围查询) + _timeType string + // 页码。(大于0的整数。默认为1) + _pageNo int64 + // 每页条数。(每页条数不超过50条) + _pageSize int64 + // 采购单编号或分销流水号,若其它参数没传,则此参数必传。 + _purchaseOrderId int64 + // 多个字段用","分隔。

fields
如果为空:返回所有采购单对象(purchase_orders)字段。
如果不为空:返回指定采购单对象(purchase_orders)字段。

例1:
sub_purchase_orders.tc_order_id 表示只返回tc_order_id
例2:
sub_purchase_orders表示只返回子采购单列表 + _fields string + // 采购单下游买家订单id + _tcOrderId int64 + // 渠道code,可批量 查询老供销:999 + _channelCodes []int64 + // 角色,供应商:2,分销商:1 + _userRoleType int64 + // 代销:1 经销:2 寄售(猫超自营寄售):5 平台寄售:6 + _tradeTypes []int64 +} + +// 初始化TaobaoFenxiaoOrdersGetAPIRequest对象 +func NewTaobaoFenxiaoOrdersGetRequest() *TaobaoFenxiaoOrdersGetAPIRequest{ + return &TaobaoFenxiaoOrdersGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoOrdersGetAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.orders.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoOrdersGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Status Setter +// 交易状态,不传默认查询所有采购单根据身份选择自身状态可选值: *供应商: WAIT_SELLER_SEND_GOODS(等待发货) WAIT_SELLER_CONFIRM_PAY(待确认收款) WAIT_BUYER_PAY(等待付款) WAIT_BUYER_CONFIRM_GOODS(已发货) TRADE_REFUNDING(退款中) TRADE_FINISHED(采购成功) TRADE_CLOSED(已关闭) *分销商: WAIT_BUYER_PAY(等待付款) WAIT_BUYER_CONFIRM_GOODS(待收货确认) TRADE_FOR_PAY(已付款) TRADE_REFUNDING(退款中) TRADE_FINISHED(采购成功) TRADE_CLOSED(已关闭) +func (r *TaobaoFenxiaoOrdersGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoFenxiaoOrdersGetAPIRequest) GetStatus() string { + return r._status +} +// StartCreated Setter +// 起始时间 格式 yyyy-MM-dd HH:mm:ss.支持到秒的查询。若不传时分秒,默认为0时0分0秒。若purchase_order_id没传,则此参数必传。 +func (r *TaobaoFenxiaoOrdersGetAPIRequest) SetStartCreated(_startCreated string) error { + r._startCreated = _startCreated + r.Set("start_created", _startCreated) + return nil +} + +// StartCreated Getter +func (r TaobaoFenxiaoOrdersGetAPIRequest) GetStartCreated() string { + return r._startCreated +} +// EndCreated Setter +// 结束时间 格式 yyyy-MM-dd HH:mm:ss.支持到秒的查询。若不传时分秒,默认为0时0分0秒。若purchase_order_id没传,则此参数必传。 +func (r *TaobaoFenxiaoOrdersGetAPIRequest) SetEndCreated(_endCreated string) error { + r._endCreated = _endCreated + r.Set("end_created", _endCreated) + return nil +} + +// EndCreated Getter +func (r TaobaoFenxiaoOrdersGetAPIRequest) GetEndCreated() string { + return r._endCreated +} +// TimeType Setter +// 可选值:trade_time_type(采购单按照成交时间范围查询),update_time_type(采购单按照更新时间范围查询) +func (r *TaobaoFenxiaoOrdersGetAPIRequest) SetTimeType(_timeType string) error { + r._timeType = _timeType + r.Set("time_type", _timeType) + return nil +} + +// TimeType Getter +func (r TaobaoFenxiaoOrdersGetAPIRequest) GetTimeType() string { + return r._timeType +} +// PageNo Setter +// 页码。(大于0的整数。默认为1) +func (r *TaobaoFenxiaoOrdersGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoFenxiaoOrdersGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数。(每页条数不超过50条) +func (r *TaobaoFenxiaoOrdersGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoFenxiaoOrdersGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PurchaseOrderId Setter +// 采购单编号或分销流水号,若其它参数没传,则此参数必传。 +func (r *TaobaoFenxiaoOrdersGetAPIRequest) SetPurchaseOrderId(_purchaseOrderId int64) error { + r._purchaseOrderId = _purchaseOrderId + r.Set("purchase_order_id", _purchaseOrderId) + return nil +} + +// PurchaseOrderId Getter +func (r TaobaoFenxiaoOrdersGetAPIRequest) GetPurchaseOrderId() int64 { + return r._purchaseOrderId +} +// Fields Setter +// 多个字段用","分隔。

fields
如果为空:返回所有采购单对象(purchase_orders)字段。
如果不为空:返回指定采购单对象(purchase_orders)字段。

例1:
sub_purchase_orders.tc_order_id 表示只返回tc_order_id
例2:
sub_purchase_orders表示只返回子采购单列表 +func (r *TaobaoFenxiaoOrdersGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoFenxiaoOrdersGetAPIRequest) GetFields() string { + return r._fields +} +// TcOrderId Setter +// 采购单下游买家订单id +func (r *TaobaoFenxiaoOrdersGetAPIRequest) SetTcOrderId(_tcOrderId int64) error { + r._tcOrderId = _tcOrderId + r.Set("tc_order_id", _tcOrderId) + return nil +} + +// TcOrderId Getter +func (r TaobaoFenxiaoOrdersGetAPIRequest) GetTcOrderId() int64 { + return r._tcOrderId +} +// ChannelCodes Setter +// 渠道code,可批量 查询老供销:999 +func (r *TaobaoFenxiaoOrdersGetAPIRequest) SetChannelCodes(_channelCodes []int64) error { + r._channelCodes = _channelCodes + r.Set("channel_codes", _channelCodes) + return nil +} + +// ChannelCodes Getter +func (r TaobaoFenxiaoOrdersGetAPIRequest) GetChannelCodes() []int64 { + return r._channelCodes +} +// UserRoleType Setter +// 角色,供应商:2,分销商:1 +func (r *TaobaoFenxiaoOrdersGetAPIRequest) SetUserRoleType(_userRoleType int64) error { + r._userRoleType = _userRoleType + r.Set("user_role_type", _userRoleType) + return nil +} + +// UserRoleType Getter +func (r TaobaoFenxiaoOrdersGetAPIRequest) GetUserRoleType() int64 { + return r._userRoleType +} +// TradeTypes Setter +// 代销:1 经销:2 寄售(猫超自营寄售):5 平台寄售:6 +func (r *TaobaoFenxiaoOrdersGetAPIRequest) SetTradeTypes(_tradeTypes []int64) error { + r._tradeTypes = _tradeTypes + r.Set("trade_types", _tradeTypes) + return nil +} + +// TradeTypes Getter +func (r TaobaoFenxiaoOrdersGetAPIRequest) GetTradeTypes() []int64 { + return r._tradeTypes +} diff --git a/model/fenxiao/TaobaoFenxiaoOrdersGetAPIResponse.go b/model/fenxiao/TaobaoFenxiaoOrdersGetAPIResponse.go new file mode 100644 index 0000000000..7d7732c7c5 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoOrdersGetAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询采购单信息 API返回值 +taobao.fenxiao.orders.get + +分销商或供应商均可用此接口查询采购单信息(代销); (发货请调用物流API中的发货接口taobao.logistics.offline.send 进行发货,需要注意的是这里是供应商发货,因此调发货接口时需要传人供应商账号对应的sessionkey,tid 需传入供销平台的采购单(即fenxiao_id 分销流水号))。 +*/ +type TaobaoFenxiaoOrdersGetAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoOrdersGetAPIResponseModel +} + +// 查询采购单信息 成功返回结果 +type TaobaoFenxiaoOrdersGetAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_orders_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 搜索到的采购单记录总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 采购单及子采购单信息。返回 PurchaseOrder 包含的字段信息。 + PurchaseOrders []TopDpOrderDo `json:"purchase_orders,omitempty" xml:"purchase_orders>top_dp_order_do,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoOrdersGetResponse.go b/model/fenxiao/TaobaoFenxiaoOrdersGetResponse.go deleted file mode 100644 index 813ccdfa6c..0000000000 --- a/model/fenxiao/TaobaoFenxiaoOrdersGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询采购单信息 API返回值 -taobao.fenxiao.orders.get - -分销商或供应商均可用此接口查询采购单信息(代销); (发货请调用物流API中的发货接口taobao.logistics.offline.send 进行发货,需要注意的是这里是供应商发货,因此调发货接口时需要传人供应商账号对应的sessionkey,tid 需传入供销平台的采购单(即fenxiao_id 分销流水号))。 -*/ -type TaobaoFenxiaoOrdersGetAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoOrdersGetResponse -} - -// 查询采购单信息 成功返回结果 -type TaobaoFenxiaoOrdersGetResponse struct { - XMLName xml.Name `xml:"fenxiao_orders_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 搜索到的采购单记录总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 采购单及子采购单信息。返回 PurchaseOrder 包含的字段信息。 - PurchaseOrders []TopDpOrderDo `json:"purchase_orders,omitempty" xml:"purchase_orders>top_dp_order_do,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoProductAddAPIRequest.go b/model/fenxiao/TaobaoFenxiaoProductAddAPIRequest.go new file mode 100644 index 0000000000..8c81afffc5 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductAddAPIRequest.go @@ -0,0 +1,556 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加产品 API请求 +taobao.fenxiao.product.add + +添加分销平台产品数据。业务逻辑与分销系统前台页面一致。

* 产品图片默认为空
* 产品发布后默认为下架状态 +*/ +type TaobaoFenxiaoProductAddAPIRequest struct { + model.Params + // 运费类型,可选值:seller(供应商承担运费)、buyer(分销商承担运费),默认seller。 + _postageType string + // 是否有发票,可选值:false(否)、true(是),默认false。 + _haveInvoice string + // 是否有保修,可选值:false(否)、true(是),默认false。 + _haveQuarantee string + // 分销方式:AGENT(只做代销,默认值)、DEALER(只做经销)、ALL(代销和经销都做) + _tradeType string + // 产品名称,长度不超过60个字节。 + _name string + // 产品线ID + _productcatId int64 + // 采购基准价格,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 + _standardPrice string + // 代销采购价格,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 + _costPrice string + // 最低零售价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 + _retailPriceLow string + // 最高零售价,单位:元。例:“10.56”。必须在0.01元到10000000元之间,最高零售价必须大于最低零售价。 + _retailPriceHigh string + // 所属类目id,参考Taobao.itemcats.get,不支持成人等类目,输入成人类目id保存提示类目属性错误。 + _categoryId int64 + // 商家编码,长度不能超过60个字节。 + _outerId string + // 产品库存必须是1到999999。 + _quantity int64 + // 产品描述,长度为5到25000字符。 + _desc string + // 所在地:省,例:“浙江” + _prov string + // 所在地:市,例:“杭州” + _city string + // 运费模板ID,参考taobao.postages.get。 + _postageId int64 + // 平邮费用,单位:元。例:“10.56”。 大小为0.01元到999999元之间。 + _postageOrdinary string + // 快递费用,单位:元。例:“10.56”。 大小为0.01元到999999元之间。 + _postageFast string + // ems费用,单位:元。例:“10.56”。 大小为0.00元到999999元之间。 + _postageEms string + // 折扣ID + _discountId int64 + // 添加产品时,添加入参isAuthz:yes|no
yes:需要授权
no:不需要授权
默认是需要授权 + _isAuthz string + // 产品主图图片空间相对路径或绝对路径 + _picPath string + // 产品主图,大小不超过500k,格式为gif,jpg,jpeg,png,bmp等图片 + _image *model.File + // 产品属性,格式为pid:vid;pid:vid + _properties string + // 属性别名,格式为:pid:vid:alias;pid:vid:alias(alias为别名) + _propertyAlias string + // 自定义属性。格式为pid:value;pid:value + _inputProperties string + // sku的采购基准价。如果多个,用逗号分隔,并与其他sku信息保持相同顺序 + _skuStandardPrices string + // sku的采购价。如果多个,用逗号分隔,并与其他sku信息保持相同顺序 + _skuCostPrices string + // sku的商家编码。如果多个,用逗号分隔,并与其他sku信息保持相同顺序 + _skuOuterIds string + // sku的库存。如果多个,用逗号分隔,并与其他sku信息保持相同顺序 + _skuQuantitys string + // sku的属性。如果多个,用逗号分隔,并与其他sku信息保持相同顺序 + _skuProperties string + // 经销采购价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 + _dealerCostPrice string + // sku的经销采购价。如果多个,用逗号分隔,并与其他sku信息保持相同顺序。其中每个值的单位:元。例:“10.56,12.3”。必须在0.01元到10000000元之间。 + _skuDealerCostPrices string + // 导入的商品ID + _itemId int64 + // 零售基准价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 + _standardRetailPrice string + // 产品spuID,达尔文产品必须要传spuID,否则不能发布。其他非达尔文产品,看情况传 + _spuId int64 +} + +// 初始化TaobaoFenxiaoProductAddAPIRequest对象 +func NewTaobaoFenxiaoProductAddRequest() *TaobaoFenxiaoProductAddAPIRequest{ + return &TaobaoFenxiaoProductAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoProductAddAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.product.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoProductAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PostageType Setter +// 运费类型,可选值:seller(供应商承担运费)、buyer(分销商承担运费),默认seller。 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetPostageType(_postageType string) error { + r._postageType = _postageType + r.Set("postage_type", _postageType) + return nil +} + +// PostageType Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetPostageType() string { + return r._postageType +} +// HaveInvoice Setter +// 是否有发票,可选值:false(否)、true(是),默认false。 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetHaveInvoice(_haveInvoice string) error { + r._haveInvoice = _haveInvoice + r.Set("have_invoice", _haveInvoice) + return nil +} + +// HaveInvoice Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetHaveInvoice() string { + return r._haveInvoice +} +// HaveQuarantee Setter +// 是否有保修,可选值:false(否)、true(是),默认false。 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetHaveQuarantee(_haveQuarantee string) error { + r._haveQuarantee = _haveQuarantee + r.Set("have_quarantee", _haveQuarantee) + return nil +} + +// HaveQuarantee Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetHaveQuarantee() string { + return r._haveQuarantee +} +// TradeType Setter +// 分销方式:AGENT(只做代销,默认值)、DEALER(只做经销)、ALL(代销和经销都做) +func (r *TaobaoFenxiaoProductAddAPIRequest) SetTradeType(_tradeType string) error { + r._tradeType = _tradeType + r.Set("trade_type", _tradeType) + return nil +} + +// TradeType Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetTradeType() string { + return r._tradeType +} +// Name Setter +// 产品名称,长度不超过60个字节。 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetName() string { + return r._name +} +// ProductcatId Setter +// 产品线ID +func (r *TaobaoFenxiaoProductAddAPIRequest) SetProductcatId(_productcatId int64) error { + r._productcatId = _productcatId + r.Set("productcat_id", _productcatId) + return nil +} + +// ProductcatId Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetProductcatId() int64 { + return r._productcatId +} +// StandardPrice Setter +// 采购基准价格,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetStandardPrice(_standardPrice string) error { + r._standardPrice = _standardPrice + r.Set("standard_price", _standardPrice) + return nil +} + +// StandardPrice Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetStandardPrice() string { + return r._standardPrice +} +// CostPrice Setter +// 代销采购价格,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetCostPrice(_costPrice string) error { + r._costPrice = _costPrice + r.Set("cost_price", _costPrice) + return nil +} + +// CostPrice Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetCostPrice() string { + return r._costPrice +} +// RetailPriceLow Setter +// 最低零售价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetRetailPriceLow(_retailPriceLow string) error { + r._retailPriceLow = _retailPriceLow + r.Set("retail_price_low", _retailPriceLow) + return nil +} + +// RetailPriceLow Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetRetailPriceLow() string { + return r._retailPriceLow +} +// RetailPriceHigh Setter +// 最高零售价,单位:元。例:“10.56”。必须在0.01元到10000000元之间,最高零售价必须大于最低零售价。 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetRetailPriceHigh(_retailPriceHigh string) error { + r._retailPriceHigh = _retailPriceHigh + r.Set("retail_price_high", _retailPriceHigh) + return nil +} + +// RetailPriceHigh Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetRetailPriceHigh() string { + return r._retailPriceHigh +} +// CategoryId Setter +// 所属类目id,参考Taobao.itemcats.get,不支持成人等类目,输入成人类目id保存提示类目属性错误。 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetCategoryId() int64 { + return r._categoryId +} +// OuterId Setter +// 商家编码,长度不能超过60个字节。 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetOuterId() string { + return r._outerId +} +// Quantity Setter +// 产品库存必须是1到999999。 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetQuantity(_quantity int64) error { + r._quantity = _quantity + r.Set("quantity", _quantity) + return nil +} + +// Quantity Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetQuantity() int64 { + return r._quantity +} +// Desc Setter +// 产品描述,长度为5到25000字符。 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetDesc(_desc string) error { + r._desc = _desc + r.Set("desc", _desc) + return nil +} + +// Desc Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetDesc() string { + return r._desc +} +// Prov Setter +// 所在地:省,例:“浙江” +func (r *TaobaoFenxiaoProductAddAPIRequest) SetProv(_prov string) error { + r._prov = _prov + r.Set("prov", _prov) + return nil +} + +// Prov Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetProv() string { + return r._prov +} +// City Setter +// 所在地:市,例:“杭州” +func (r *TaobaoFenxiaoProductAddAPIRequest) SetCity(_city string) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetCity() string { + return r._city +} +// PostageId Setter +// 运费模板ID,参考taobao.postages.get。 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetPostageId(_postageId int64) error { + r._postageId = _postageId + r.Set("postage_id", _postageId) + return nil +} + +// PostageId Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetPostageId() int64 { + return r._postageId +} +// PostageOrdinary Setter +// 平邮费用,单位:元。例:“10.56”。 大小为0.01元到999999元之间。 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetPostageOrdinary(_postageOrdinary string) error { + r._postageOrdinary = _postageOrdinary + r.Set("postage_ordinary", _postageOrdinary) + return nil +} + +// PostageOrdinary Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetPostageOrdinary() string { + return r._postageOrdinary +} +// PostageFast Setter +// 快递费用,单位:元。例:“10.56”。 大小为0.01元到999999元之间。 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetPostageFast(_postageFast string) error { + r._postageFast = _postageFast + r.Set("postage_fast", _postageFast) + return nil +} + +// PostageFast Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetPostageFast() string { + return r._postageFast +} +// PostageEms Setter +// ems费用,单位:元。例:“10.56”。 大小为0.00元到999999元之间。 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetPostageEms(_postageEms string) error { + r._postageEms = _postageEms + r.Set("postage_ems", _postageEms) + return nil +} + +// PostageEms Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetPostageEms() string { + return r._postageEms +} +// DiscountId Setter +// 折扣ID +func (r *TaobaoFenxiaoProductAddAPIRequest) SetDiscountId(_discountId int64) error { + r._discountId = _discountId + r.Set("discount_id", _discountId) + return nil +} + +// DiscountId Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetDiscountId() int64 { + return r._discountId +} +// IsAuthz Setter +// 添加产品时,添加入参isAuthz:yes|no
yes:需要授权
no:不需要授权
默认是需要授权 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetIsAuthz(_isAuthz string) error { + r._isAuthz = _isAuthz + r.Set("is_authz", _isAuthz) + return nil +} + +// IsAuthz Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetIsAuthz() string { + return r._isAuthz +} +// PicPath Setter +// 产品主图图片空间相对路径或绝对路径 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetPicPath(_picPath string) error { + r._picPath = _picPath + r.Set("pic_path", _picPath) + return nil +} + +// PicPath Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetPicPath() string { + return r._picPath +} +// Image Setter +// 产品主图,大小不超过500k,格式为gif,jpg,jpeg,png,bmp等图片 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetImage(_image *model.File) error { + r._image = _image + r.Set("image", _image) + return nil +} + +// Image Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetImage() *model.File { + return r._image +} +// Properties Setter +// 产品属性,格式为pid:vid;pid:vid +func (r *TaobaoFenxiaoProductAddAPIRequest) SetProperties(_properties string) error { + r._properties = _properties + r.Set("properties", _properties) + return nil +} + +// Properties Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetProperties() string { + return r._properties +} +// PropertyAlias Setter +// 属性别名,格式为:pid:vid:alias;pid:vid:alias(alias为别名) +func (r *TaobaoFenxiaoProductAddAPIRequest) SetPropertyAlias(_propertyAlias string) error { + r._propertyAlias = _propertyAlias + r.Set("property_alias", _propertyAlias) + return nil +} + +// PropertyAlias Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetPropertyAlias() string { + return r._propertyAlias +} +// InputProperties Setter +// 自定义属性。格式为pid:value;pid:value +func (r *TaobaoFenxiaoProductAddAPIRequest) SetInputProperties(_inputProperties string) error { + r._inputProperties = _inputProperties + r.Set("input_properties", _inputProperties) + return nil +} + +// InputProperties Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetInputProperties() string { + return r._inputProperties +} +// SkuStandardPrices Setter +// sku的采购基准价。如果多个,用逗号分隔,并与其他sku信息保持相同顺序 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetSkuStandardPrices(_skuStandardPrices string) error { + r._skuStandardPrices = _skuStandardPrices + r.Set("sku_standard_prices", _skuStandardPrices) + return nil +} + +// SkuStandardPrices Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetSkuStandardPrices() string { + return r._skuStandardPrices +} +// SkuCostPrices Setter +// sku的采购价。如果多个,用逗号分隔,并与其他sku信息保持相同顺序 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetSkuCostPrices(_skuCostPrices string) error { + r._skuCostPrices = _skuCostPrices + r.Set("sku_cost_prices", _skuCostPrices) + return nil +} + +// SkuCostPrices Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetSkuCostPrices() string { + return r._skuCostPrices +} +// SkuOuterIds Setter +// sku的商家编码。如果多个,用逗号分隔,并与其他sku信息保持相同顺序 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetSkuOuterIds(_skuOuterIds string) error { + r._skuOuterIds = _skuOuterIds + r.Set("sku_outer_ids", _skuOuterIds) + return nil +} + +// SkuOuterIds Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetSkuOuterIds() string { + return r._skuOuterIds +} +// SkuQuantitys Setter +// sku的库存。如果多个,用逗号分隔,并与其他sku信息保持相同顺序 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetSkuQuantitys(_skuQuantitys string) error { + r._skuQuantitys = _skuQuantitys + r.Set("sku_quantitys", _skuQuantitys) + return nil +} + +// SkuQuantitys Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetSkuQuantitys() string { + return r._skuQuantitys +} +// SkuProperties Setter +// sku的属性。如果多个,用逗号分隔,并与其他sku信息保持相同顺序 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetSkuProperties(_skuProperties string) error { + r._skuProperties = _skuProperties + r.Set("sku_properties", _skuProperties) + return nil +} + +// SkuProperties Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetSkuProperties() string { + return r._skuProperties +} +// DealerCostPrice Setter +// 经销采购价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetDealerCostPrice(_dealerCostPrice string) error { + r._dealerCostPrice = _dealerCostPrice + r.Set("dealer_cost_price", _dealerCostPrice) + return nil +} + +// DealerCostPrice Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetDealerCostPrice() string { + return r._dealerCostPrice +} +// SkuDealerCostPrices Setter +// sku的经销采购价。如果多个,用逗号分隔,并与其他sku信息保持相同顺序。其中每个值的单位:元。例:“10.56,12.3”。必须在0.01元到10000000元之间。 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetSkuDealerCostPrices(_skuDealerCostPrices string) error { + r._skuDealerCostPrices = _skuDealerCostPrices + r.Set("sku_dealer_cost_prices", _skuDealerCostPrices) + return nil +} + +// SkuDealerCostPrices Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetSkuDealerCostPrices() string { + return r._skuDealerCostPrices +} +// ItemId Setter +// 导入的商品ID +func (r *TaobaoFenxiaoProductAddAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetItemId() int64 { + return r._itemId +} +// StandardRetailPrice Setter +// 零售基准价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetStandardRetailPrice(_standardRetailPrice string) error { + r._standardRetailPrice = _standardRetailPrice + r.Set("standard_retail_price", _standardRetailPrice) + return nil +} + +// StandardRetailPrice Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetStandardRetailPrice() string { + return r._standardRetailPrice +} +// SpuId Setter +// 产品spuID,达尔文产品必须要传spuID,否则不能发布。其他非达尔文产品,看情况传 +func (r *TaobaoFenxiaoProductAddAPIRequest) SetSpuId(_spuId int64) error { + r._spuId = _spuId + r.Set("spu_id", _spuId) + return nil +} + +// SpuId Getter +func (r TaobaoFenxiaoProductAddAPIRequest) GetSpuId() int64 { + return r._spuId +} diff --git a/model/fenxiao/TaobaoFenxiaoProductAddAPIResponse.go b/model/fenxiao/TaobaoFenxiaoProductAddAPIResponse.go new file mode 100644 index 0000000000..69ae6303d9 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductAddAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加产品 API返回值 +taobao.fenxiao.product.add + +添加分销平台产品数据。业务逻辑与分销系统前台页面一致。

* 产品图片默认为空
* 产品发布后默认为下架状态 +*/ +type TaobaoFenxiaoProductAddAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoProductAddAPIResponseModel +} + +// 添加产品 成功返回结果 +type TaobaoFenxiaoProductAddAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_product_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 产品ID + Pid int64 `json:"pid,omitempty" xml:"pid,omitempty"` + // 产品创建时间 时间格式:yyyy-MM-dd HH:mm:ss + Created string `json:"created,omitempty" xml:"created,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoProductAddResponse.go b/model/fenxiao/TaobaoFenxiaoProductAddResponse.go deleted file mode 100644 index 3ff9b408eb..0000000000 --- a/model/fenxiao/TaobaoFenxiaoProductAddResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加产品 API返回值 -taobao.fenxiao.product.add - -添加分销平台产品数据。业务逻辑与分销系统前台页面一致。

* 产品图片默认为空
* 产品发布后默认为下架状态 -*/ -type TaobaoFenxiaoProductAddAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoProductAddResponse -} - -// 添加产品 成功返回结果 -type TaobaoFenxiaoProductAddResponse struct { - XMLName xml.Name `xml:"fenxiao_product_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 产品ID - Pid int64 `json:"pid,omitempty" xml:"pid,omitempty"` - // 产品创建时间 时间格式:yyyy-MM-dd HH:mm:ss - Created string `json:"created,omitempty" xml:"created,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoProductGradepriceGetAPIRequest.go b/model/fenxiao/TaobaoFenxiaoProductGradepriceGetAPIRequest.go new file mode 100644 index 0000000000..1da7d1b27d --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductGradepriceGetAPIRequest.go @@ -0,0 +1,80 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +等级折扣查询 API请求 +taobao.fenxiao.product.gradeprice.get + +等级折扣查询 +*/ +type TaobaoFenxiaoProductGradepriceGetAPIRequest struct { + model.Params + // 产品id + _productId int64 + // skuId + _skuId int64 + // 经、代销模式(1:代销、2:经销) + _tradeType int64 +} + +// 初始化TaobaoFenxiaoProductGradepriceGetAPIRequest对象 +func NewTaobaoFenxiaoProductGradepriceGetRequest() *TaobaoFenxiaoProductGradepriceGetAPIRequest{ + return &TaobaoFenxiaoProductGradepriceGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoProductGradepriceGetAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.product.gradeprice.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoProductGradepriceGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品id +func (r *TaobaoFenxiaoProductGradepriceGetAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoFenxiaoProductGradepriceGetAPIRequest) GetProductId() int64 { + return r._productId +} +// SkuId Setter +// skuId +func (r *TaobaoFenxiaoProductGradepriceGetAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TaobaoFenxiaoProductGradepriceGetAPIRequest) GetSkuId() int64 { + return r._skuId +} +// TradeType Setter +// 经、代销模式(1:代销、2:经销) +func (r *TaobaoFenxiaoProductGradepriceGetAPIRequest) SetTradeType(_tradeType int64) error { + r._tradeType = _tradeType + r.Set("trade_type", _tradeType) + return nil +} + +// TradeType Getter +func (r TaobaoFenxiaoProductGradepriceGetAPIRequest) GetTradeType() int64 { + return r._tradeType +} diff --git a/model/fenxiao/TaobaoFenxiaoProductGradepriceGetAPIResponse.go b/model/fenxiao/TaobaoFenxiaoProductGradepriceGetAPIResponse.go new file mode 100644 index 0000000000..0b049e0516 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductGradepriceGetAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +等级折扣查询 API返回值 +taobao.fenxiao.product.gradeprice.get + +等级折扣查询 +*/ +type TaobaoFenxiaoProductGradepriceGetAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoProductGradepriceGetAPIResponseModel +} + +// 等级折扣查询 成功返回结果 +type TaobaoFenxiaoProductGradepriceGetAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_product_gradeprice_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 等级折扣列表 + GradeDiscounts []GradeDiscount `json:"grade_discounts,omitempty" xml:"grade_discounts>grade_discount,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoProductGradepriceGetResponse.go b/model/fenxiao/TaobaoFenxiaoProductGradepriceGetResponse.go deleted file mode 100644 index 3964d135c6..0000000000 --- a/model/fenxiao/TaobaoFenxiaoProductGradepriceGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -等级折扣查询 API返回值 -taobao.fenxiao.product.gradeprice.get - -等级折扣查询 -*/ -type TaobaoFenxiaoProductGradepriceGetAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoProductGradepriceGetResponse -} - -// 等级折扣查询 成功返回结果 -type TaobaoFenxiaoProductGradepriceGetResponse struct { - XMLName xml.Name `xml:"fenxiao_product_gradeprice_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 等级折扣列表 - GradeDiscounts []GradeDiscount `json:"grade_discounts,omitempty" xml:"grade_discounts>grade_discount,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoProductGradepriceUpdateAPIRequest.go b/model/fenxiao/TaobaoFenxiaoProductGradepriceUpdateAPIRequest.go new file mode 100644 index 0000000000..21aa7f410c --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductGradepriceUpdateAPIRequest.go @@ -0,0 +1,122 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据sku设置折扣价 API请求 +taobao.fenxiao.product.gradeprice.update + +供应商可以针对产品不同的sku,指定对应交易类型(代销or经销)方式下,设定折扣方式(按等级or指定分销商)以及对应优惠后的采购价格 +*/ +type TaobaoFenxiaoProductGradepriceUpdateAPIRequest struct { + model.Params + // 交易类型: AGENT(代销)、DEALER(经销),ALL(代销和经销) + _tradeType string + // 产品Id + _productId int64 + // skuId,如果产品有skuId,必须要输入skuId;没有skuId的时候不必选 + _skuId int64 + // 选择折扣方式:GRADE(按等级进行设置);DISCITUTOR(按分销商进行设置)。例如"GRADE,DISTRIBUTOR" + _targetType string + // 会员等级的id或者分销商id,例如:”1001,2001,1002” + _ids []int64 + // 优惠价格,大小为0到100000000之间的整数或两位小数,例:优惠价格为:100元2角5分,传入的参数应写成:100.25 + _prices []string +} + +// 初始化TaobaoFenxiaoProductGradepriceUpdateAPIRequest对象 +func NewTaobaoFenxiaoProductGradepriceUpdateRequest() *TaobaoFenxiaoProductGradepriceUpdateAPIRequest{ + return &TaobaoFenxiaoProductGradepriceUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoProductGradepriceUpdateAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.product.gradeprice.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoProductGradepriceUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeType Setter +// 交易类型: AGENT(代销)、DEALER(经销),ALL(代销和经销) +func (r *TaobaoFenxiaoProductGradepriceUpdateAPIRequest) SetTradeType(_tradeType string) error { + r._tradeType = _tradeType + r.Set("trade_type", _tradeType) + return nil +} + +// TradeType Getter +func (r TaobaoFenxiaoProductGradepriceUpdateAPIRequest) GetTradeType() string { + return r._tradeType +} +// ProductId Setter +// 产品Id +func (r *TaobaoFenxiaoProductGradepriceUpdateAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoFenxiaoProductGradepriceUpdateAPIRequest) GetProductId() int64 { + return r._productId +} +// SkuId Setter +// skuId,如果产品有skuId,必须要输入skuId;没有skuId的时候不必选 +func (r *TaobaoFenxiaoProductGradepriceUpdateAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TaobaoFenxiaoProductGradepriceUpdateAPIRequest) GetSkuId() int64 { + return r._skuId +} +// TargetType Setter +// 选择折扣方式:GRADE(按等级进行设置);DISCITUTOR(按分销商进行设置)。例如"GRADE,DISTRIBUTOR" +func (r *TaobaoFenxiaoProductGradepriceUpdateAPIRequest) SetTargetType(_targetType string) error { + r._targetType = _targetType + r.Set("target_type", _targetType) + return nil +} + +// TargetType Getter +func (r TaobaoFenxiaoProductGradepriceUpdateAPIRequest) GetTargetType() string { + return r._targetType +} +// Ids Setter +// 会员等级的id或者分销商id,例如:”1001,2001,1002” +func (r *TaobaoFenxiaoProductGradepriceUpdateAPIRequest) SetIds(_ids []int64) error { + r._ids = _ids + r.Set("ids", _ids) + return nil +} + +// Ids Getter +func (r TaobaoFenxiaoProductGradepriceUpdateAPIRequest) GetIds() []int64 { + return r._ids +} +// Prices Setter +// 优惠价格,大小为0到100000000之间的整数或两位小数,例:优惠价格为:100元2角5分,传入的参数应写成:100.25 +func (r *TaobaoFenxiaoProductGradepriceUpdateAPIRequest) SetPrices(_prices []string) error { + r._prices = _prices + r.Set("prices", _prices) + return nil +} + +// Prices Getter +func (r TaobaoFenxiaoProductGradepriceUpdateAPIRequest) GetPrices() []string { + return r._prices +} diff --git a/model/fenxiao/TaobaoFenxiaoProductGradepriceUpdateAPIResponse.go b/model/fenxiao/TaobaoFenxiaoProductGradepriceUpdateAPIResponse.go new file mode 100644 index 0000000000..8742f8daa0 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductGradepriceUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据sku设置折扣价 API返回值 +taobao.fenxiao.product.gradeprice.update + +供应商可以针对产品不同的sku,指定对应交易类型(代销or经销)方式下,设定折扣方式(按等级or指定分销商)以及对应优惠后的采购价格 +*/ +type TaobaoFenxiaoProductGradepriceUpdateAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoProductGradepriceUpdateAPIResponseModel +} + +// 根据sku设置折扣价 成功返回结果 +type TaobaoFenxiaoProductGradepriceUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_product_gradeprice_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回操作结果:成功或失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoProductGradepriceUpdateResponse.go b/model/fenxiao/TaobaoFenxiaoProductGradepriceUpdateResponse.go deleted file mode 100644 index b30227e54b..0000000000 --- a/model/fenxiao/TaobaoFenxiaoProductGradepriceUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据sku设置折扣价 API返回值 -taobao.fenxiao.product.gradeprice.update - -供应商可以针对产品不同的sku,指定对应交易类型(代销or经销)方式下,设定折扣方式(按等级or指定分销商)以及对应优惠后的采购价格 -*/ -type TaobaoFenxiaoProductGradepriceUpdateAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoProductGradepriceUpdateResponse -} - -// 根据sku设置折扣价 成功返回结果 -type TaobaoFenxiaoProductGradepriceUpdateResponse struct { - XMLName xml.Name `xml:"fenxiao_product_gradeprice_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回操作结果:成功或失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoProductImageDeleteAPIRequest.go b/model/fenxiao/TaobaoFenxiaoProductImageDeleteAPIRequest.go new file mode 100644 index 0000000000..1a586bf505 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductImageDeleteAPIRequest.go @@ -0,0 +1,80 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +产品图片删除 API请求 +taobao.fenxiao.product.image.delete + +产品图片删除,只删除图片信息,不真正删除图片 +*/ +type TaobaoFenxiaoProductImageDeleteAPIRequest struct { + model.Params + // 产品ID + _productId int64 + // 图片位置 + _position int64 + // properties表示sku图片的属性。key:value形式,key是pid,value是vid。如果position是0的话,则properties需要是必传项 + _properties string +} + +// 初始化TaobaoFenxiaoProductImageDeleteAPIRequest对象 +func NewTaobaoFenxiaoProductImageDeleteRequest() *TaobaoFenxiaoProductImageDeleteAPIRequest{ + return &TaobaoFenxiaoProductImageDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoProductImageDeleteAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.product.image.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoProductImageDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品ID +func (r *TaobaoFenxiaoProductImageDeleteAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoFenxiaoProductImageDeleteAPIRequest) GetProductId() int64 { + return r._productId +} +// Position Setter +// 图片位置 +func (r *TaobaoFenxiaoProductImageDeleteAPIRequest) SetPosition(_position int64) error { + r._position = _position + r.Set("position", _position) + return nil +} + +// Position Getter +func (r TaobaoFenxiaoProductImageDeleteAPIRequest) GetPosition() int64 { + return r._position +} +// Properties Setter +// properties表示sku图片的属性。key:value形式,key是pid,value是vid。如果position是0的话,则properties需要是必传项 +func (r *TaobaoFenxiaoProductImageDeleteAPIRequest) SetProperties(_properties string) error { + r._properties = _properties + r.Set("properties", _properties) + return nil +} + +// Properties Getter +func (r TaobaoFenxiaoProductImageDeleteAPIRequest) GetProperties() string { + return r._properties +} diff --git a/model/fenxiao/TaobaoFenxiaoProductImageDeleteAPIResponse.go b/model/fenxiao/TaobaoFenxiaoProductImageDeleteAPIResponse.go new file mode 100644 index 0000000000..f85a680c14 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductImageDeleteAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +产品图片删除 API返回值 +taobao.fenxiao.product.image.delete + +产品图片删除,只删除图片信息,不真正删除图片 +*/ +type TaobaoFenxiaoProductImageDeleteAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoProductImageDeleteAPIResponseModel +} + +// 产品图片删除 成功返回结果 +type TaobaoFenxiaoProductImageDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_product_image_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 操作时间 + Created string `json:"created,omitempty" xml:"created,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoProductImageDeleteResponse.go b/model/fenxiao/TaobaoFenxiaoProductImageDeleteResponse.go deleted file mode 100644 index 0a852f24f8..0000000000 --- a/model/fenxiao/TaobaoFenxiaoProductImageDeleteResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -产品图片删除 API返回值 -taobao.fenxiao.product.image.delete - -产品图片删除,只删除图片信息,不真正删除图片 -*/ -type TaobaoFenxiaoProductImageDeleteAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoProductImageDeleteResponse -} - -// 产品图片删除 成功返回结果 -type TaobaoFenxiaoProductImageDeleteResponse struct { - XMLName xml.Name `xml:"fenxiao_product_image_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 操作时间 - Created string `json:"created,omitempty" xml:"created,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoProductImageUploadAPIRequest.go b/model/fenxiao/TaobaoFenxiaoProductImageUploadAPIRequest.go new file mode 100644 index 0000000000..418af0e668 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductImageUploadAPIRequest.go @@ -0,0 +1,108 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +产品图片上传 API请求 +taobao.fenxiao.product.image.upload + +产品主图图片空间相对路径或绝对路径添加或更新,或者是图片上传。如果指定位置的图片已存在,则覆盖原有信息。如果位置为1,自动设为主图;如果位置为0,表示属性图片 +*/ +type TaobaoFenxiaoProductImageUploadAPIRequest struct { + model.Params + // 产品ID + _productId int64 + // 产品主图图片空间相对路径或绝对路径 + _picPath string + // 产品图片 + _image *model.File + // 图片位置,0-14之间。0:操作sku属性图片,1:主图,2-5:细节图,6-14:额外主图 + _position int64 + // properties表示sku图片的属性。key:value形式,key是pid,value是vid。如果position是0的话,则properties需要是必传项 + _properties string +} + +// 初始化TaobaoFenxiaoProductImageUploadAPIRequest对象 +func NewTaobaoFenxiaoProductImageUploadRequest() *TaobaoFenxiaoProductImageUploadAPIRequest{ + return &TaobaoFenxiaoProductImageUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoProductImageUploadAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.product.image.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoProductImageUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品ID +func (r *TaobaoFenxiaoProductImageUploadAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoFenxiaoProductImageUploadAPIRequest) GetProductId() int64 { + return r._productId +} +// PicPath Setter +// 产品主图图片空间相对路径或绝对路径 +func (r *TaobaoFenxiaoProductImageUploadAPIRequest) SetPicPath(_picPath string) error { + r._picPath = _picPath + r.Set("pic_path", _picPath) + return nil +} + +// PicPath Getter +func (r TaobaoFenxiaoProductImageUploadAPIRequest) GetPicPath() string { + return r._picPath +} +// Image Setter +// 产品图片 +func (r *TaobaoFenxiaoProductImageUploadAPIRequest) SetImage(_image *model.File) error { + r._image = _image + r.Set("image", _image) + return nil +} + +// Image Getter +func (r TaobaoFenxiaoProductImageUploadAPIRequest) GetImage() *model.File { + return r._image +} +// Position Setter +// 图片位置,0-14之间。0:操作sku属性图片,1:主图,2-5:细节图,6-14:额外主图 +func (r *TaobaoFenxiaoProductImageUploadAPIRequest) SetPosition(_position int64) error { + r._position = _position + r.Set("position", _position) + return nil +} + +// Position Getter +func (r TaobaoFenxiaoProductImageUploadAPIRequest) GetPosition() int64 { + return r._position +} +// Properties Setter +// properties表示sku图片的属性。key:value形式,key是pid,value是vid。如果position是0的话,则properties需要是必传项 +func (r *TaobaoFenxiaoProductImageUploadAPIRequest) SetProperties(_properties string) error { + r._properties = _properties + r.Set("properties", _properties) + return nil +} + +// Properties Getter +func (r TaobaoFenxiaoProductImageUploadAPIRequest) GetProperties() string { + return r._properties +} diff --git a/model/fenxiao/TaobaoFenxiaoProductImageUploadAPIResponse.go b/model/fenxiao/TaobaoFenxiaoProductImageUploadAPIResponse.go new file mode 100644 index 0000000000..6026c40da3 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductImageUploadAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +产品图片上传 API返回值 +taobao.fenxiao.product.image.upload + +产品主图图片空间相对路径或绝对路径添加或更新,或者是图片上传。如果指定位置的图片已存在,则覆盖原有信息。如果位置为1,自动设为主图;如果位置为0,表示属性图片 +*/ +type TaobaoFenxiaoProductImageUploadAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoProductImageUploadAPIResponseModel +} + +// 产品图片上传 成功返回结果 +type TaobaoFenxiaoProductImageUploadAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_product_image_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 操作时间 + Created string `json:"created,omitempty" xml:"created,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoProductImageUploadResponse.go b/model/fenxiao/TaobaoFenxiaoProductImageUploadResponse.go deleted file mode 100644 index 716c061ac6..0000000000 --- a/model/fenxiao/TaobaoFenxiaoProductImageUploadResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -产品图片上传 API返回值 -taobao.fenxiao.product.image.upload - -产品主图图片空间相对路径或绝对路径添加或更新,或者是图片上传。如果指定位置的图片已存在,则覆盖原有信息。如果位置为1,自动设为主图;如果位置为0,表示属性图片 -*/ -type TaobaoFenxiaoProductImageUploadAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoProductImageUploadResponse -} - -// 产品图片上传 成功返回结果 -type TaobaoFenxiaoProductImageUploadResponse struct { - XMLName xml.Name `xml:"fenxiao_product_image_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 操作时间 - Created string `json:"created,omitempty" xml:"created,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoProductImportFromAuctionAPIRequest.go b/model/fenxiao/TaobaoFenxiaoProductImportFromAuctionAPIRequest.go new file mode 100644 index 0000000000..fd51f4619e --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductImportFromAuctionAPIRequest.go @@ -0,0 +1,80 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +导入商品生成产品 API请求 +taobao.fenxiao.product.import.from.auction + +供应商选择关联店铺的前台宝贝,导入生成产品 +*/ +type TaobaoFenxiaoProductImportFromAuctionAPIRequest struct { + model.Params + // 导入产品需要支持的交易类型:[1 代销][ 2 经销 ][3 代销和经销] + _tradeType int64 + // 店铺宝贝id + _auctionId int64 + // 产品线id + _productLineId int64 +} + +// 初始化TaobaoFenxiaoProductImportFromAuctionAPIRequest对象 +func NewTaobaoFenxiaoProductImportFromAuctionRequest() *TaobaoFenxiaoProductImportFromAuctionAPIRequest{ + return &TaobaoFenxiaoProductImportFromAuctionAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoProductImportFromAuctionAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.product.import.from.auction" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoProductImportFromAuctionAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeType Setter +// 导入产品需要支持的交易类型:[1 代销][ 2 经销 ][3 代销和经销] +func (r *TaobaoFenxiaoProductImportFromAuctionAPIRequest) SetTradeType(_tradeType int64) error { + r._tradeType = _tradeType + r.Set("trade_type", _tradeType) + return nil +} + +// TradeType Getter +func (r TaobaoFenxiaoProductImportFromAuctionAPIRequest) GetTradeType() int64 { + return r._tradeType +} +// AuctionId Setter +// 店铺宝贝id +func (r *TaobaoFenxiaoProductImportFromAuctionAPIRequest) SetAuctionId(_auctionId int64) error { + r._auctionId = _auctionId + r.Set("auction_id", _auctionId) + return nil +} + +// AuctionId Getter +func (r TaobaoFenxiaoProductImportFromAuctionAPIRequest) GetAuctionId() int64 { + return r._auctionId +} +// ProductLineId Setter +// 产品线id +func (r *TaobaoFenxiaoProductImportFromAuctionAPIRequest) SetProductLineId(_productLineId int64) error { + r._productLineId = _productLineId + r.Set("product_line_id", _productLineId) + return nil +} + +// ProductLineId Getter +func (r TaobaoFenxiaoProductImportFromAuctionAPIRequest) GetProductLineId() int64 { + return r._productLineId +} diff --git a/model/fenxiao/TaobaoFenxiaoProductImportFromAuctionAPIResponse.go b/model/fenxiao/TaobaoFenxiaoProductImportFromAuctionAPIResponse.go new file mode 100644 index 0000000000..8bb341d6a8 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductImportFromAuctionAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +导入商品生成产品 API返回值 +taobao.fenxiao.product.import.from.auction + +供应商选择关联店铺的前台宝贝,导入生成产品 +*/ +type TaobaoFenxiaoProductImportFromAuctionAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoProductImportFromAuctionAPIResponseModel +} + +// 导入商品生成产品 成功返回结果 +type TaobaoFenxiaoProductImportFromAuctionAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_product_import_from_auction_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 生成的产品id + Pid int64 `json:"pid,omitempty" xml:"pid,omitempty"` + // 操作时间 + OptTime string `json:"opt_time,omitempty" xml:"opt_time,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoProductImportFromAuctionResponse.go b/model/fenxiao/TaobaoFenxiaoProductImportFromAuctionResponse.go deleted file mode 100644 index 4f2922a74c..0000000000 --- a/model/fenxiao/TaobaoFenxiaoProductImportFromAuctionResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -导入商品生成产品 API返回值 -taobao.fenxiao.product.import.from.auction - -供应商选择关联店铺的前台宝贝,导入生成产品 -*/ -type TaobaoFenxiaoProductImportFromAuctionAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoProductImportFromAuctionResponse -} - -// 导入商品生成产品 成功返回结果 -type TaobaoFenxiaoProductImportFromAuctionResponse struct { - XMLName xml.Name `xml:"fenxiao_product_import_from_auction_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 生成的产品id - Pid int64 `json:"pid,omitempty" xml:"pid,omitempty"` - // 操作时间 - OptTime string `json:"opt_time,omitempty" xml:"opt_time,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoProductMapAddAPIRequest.go b/model/fenxiao/TaobaoFenxiaoProductMapAddAPIRequest.go new file mode 100644 index 0000000000..c518750105 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductMapAddAPIRequest.go @@ -0,0 +1,108 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建分销和后端商品映射关系 API请求 +taobao.fenxiao.product.map.add + +创建分销和供应链商品映射关系。 +*/ +type TaobaoFenxiaoProductMapAddAPIRequest struct { + model.Params + // 分销产品id。 + _productId int64 + // 后端商品id(如果当前分销产品没有sku和后端商品时需要指定)。 + _scItemId int64 + // 分销产品的sku id。逗号分隔,顺序需要保证与sc_item_ids一致(没有sku就不传)。 + _skuIds string + // 在有sku的情况下,与各个sku对应的后端商品id列表。逗号分隔,顺序需要保证与sku_ids一致。 + _scItemIds string + // 是否需要校验商家编码,true不校验,false校验。 + _notCheckOuterCode bool +} + +// 初始化TaobaoFenxiaoProductMapAddAPIRequest对象 +func NewTaobaoFenxiaoProductMapAddRequest() *TaobaoFenxiaoProductMapAddAPIRequest{ + return &TaobaoFenxiaoProductMapAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoProductMapAddAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.product.map.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoProductMapAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 分销产品id。 +func (r *TaobaoFenxiaoProductMapAddAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoFenxiaoProductMapAddAPIRequest) GetProductId() int64 { + return r._productId +} +// ScItemId Setter +// 后端商品id(如果当前分销产品没有sku和后端商品时需要指定)。 +func (r *TaobaoFenxiaoProductMapAddAPIRequest) SetScItemId(_scItemId int64) error { + r._scItemId = _scItemId + r.Set("sc_item_id", _scItemId) + return nil +} + +// ScItemId Getter +func (r TaobaoFenxiaoProductMapAddAPIRequest) GetScItemId() int64 { + return r._scItemId +} +// SkuIds Setter +// 分销产品的sku id。逗号分隔,顺序需要保证与sc_item_ids一致(没有sku就不传)。 +func (r *TaobaoFenxiaoProductMapAddAPIRequest) SetSkuIds(_skuIds string) error { + r._skuIds = _skuIds + r.Set("sku_ids", _skuIds) + return nil +} + +// SkuIds Getter +func (r TaobaoFenxiaoProductMapAddAPIRequest) GetSkuIds() string { + return r._skuIds +} +// ScItemIds Setter +// 在有sku的情况下,与各个sku对应的后端商品id列表。逗号分隔,顺序需要保证与sku_ids一致。 +func (r *TaobaoFenxiaoProductMapAddAPIRequest) SetScItemIds(_scItemIds string) error { + r._scItemIds = _scItemIds + r.Set("sc_item_ids", _scItemIds) + return nil +} + +// ScItemIds Getter +func (r TaobaoFenxiaoProductMapAddAPIRequest) GetScItemIds() string { + return r._scItemIds +} +// NotCheckOuterCode Setter +// 是否需要校验商家编码,true不校验,false校验。 +func (r *TaobaoFenxiaoProductMapAddAPIRequest) SetNotCheckOuterCode(_notCheckOuterCode bool) error { + r._notCheckOuterCode = _notCheckOuterCode + r.Set("not_check_outer_code", _notCheckOuterCode) + return nil +} + +// NotCheckOuterCode Getter +func (r TaobaoFenxiaoProductMapAddAPIRequest) GetNotCheckOuterCode() bool { + return r._notCheckOuterCode +} diff --git a/model/fenxiao/TaobaoFenxiaoProductMapAddAPIResponse.go b/model/fenxiao/TaobaoFenxiaoProductMapAddAPIResponse.go new file mode 100644 index 0000000000..33353fbb47 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductMapAddAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建分销和后端商品映射关系 API返回值 +taobao.fenxiao.product.map.add + +创建分销和供应链商品映射关系。 +*/ +type TaobaoFenxiaoProductMapAddAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoProductMapAddAPIResponseModel +} + +// 创建分销和后端商品映射关系 成功返回结果 +type TaobaoFenxiaoProductMapAddAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_product_map_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoProductMapAddResponse.go b/model/fenxiao/TaobaoFenxiaoProductMapAddResponse.go deleted file mode 100644 index 39cae99321..0000000000 --- a/model/fenxiao/TaobaoFenxiaoProductMapAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建分销和后端商品映射关系 API返回值 -taobao.fenxiao.product.map.add - -创建分销和供应链商品映射关系。 -*/ -type TaobaoFenxiaoProductMapAddAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoProductMapAddResponse -} - -// 创建分销和后端商品映射关系 成功返回结果 -type TaobaoFenxiaoProductMapAddResponse struct { - XMLName xml.Name `xml:"fenxiao_product_map_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoProductQuantityUpdateAPIRequest.go b/model/fenxiao/TaobaoFenxiaoProductQuantityUpdateAPIRequest.go new file mode 100644 index 0000000000..8eb374caf9 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductQuantityUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +产品库存修改 API请求 +taobao.fenxiao.product.quantity.update + +修改产品库存信息,支持全量修改以及增量修改两种方式 +*/ +type TaobaoFenxiaoProductQuantityUpdateAPIRequest struct { + model.Params + // 产品ID + _productId int64 + // 库存修改值。产品有sku时,与sku属性顺序对应,用,分隔。产品无sku时,只写库存值。当全量更新库存时,quantity必须为大于等于0的正整数;当增量更新库存时,quantity为整数,可小于等于0。若增量更新时传入的库存为负数,则负数与实际库存之和不能小于0。比如当前实际库存为1,传入增量更新quantity=-1,库存改为0 + _quantity string + // 库存更新方式,可选。1为全量更新,2为增量更新。如果不填,默认为全量更新。当选择全量更新时,如果库存更新值传入的是负数,会出错并返回错误码;当选择增量更新时,如果库存更新值为负数且绝对值大于当前库存,则sku库存会设置为0 + _type int64 + // sku属性值,产品有sku时填写,多个sku用,分隔。为空时默认该产品无sku,则只修改产品的库存。 + _properties string +} + +// 初始化TaobaoFenxiaoProductQuantityUpdateAPIRequest对象 +func NewTaobaoFenxiaoProductQuantityUpdateRequest() *TaobaoFenxiaoProductQuantityUpdateAPIRequest{ + return &TaobaoFenxiaoProductQuantityUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoProductQuantityUpdateAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.product.quantity.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoProductQuantityUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品ID +func (r *TaobaoFenxiaoProductQuantityUpdateAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoFenxiaoProductQuantityUpdateAPIRequest) GetProductId() int64 { + return r._productId +} +// Quantity Setter +// 库存修改值。产品有sku时,与sku属性顺序对应,用,分隔。产品无sku时,只写库存值。当全量更新库存时,quantity必须为大于等于0的正整数;当增量更新库存时,quantity为整数,可小于等于0。若增量更新时传入的库存为负数,则负数与实际库存之和不能小于0。比如当前实际库存为1,传入增量更新quantity=-1,库存改为0 +func (r *TaobaoFenxiaoProductQuantityUpdateAPIRequest) SetQuantity(_quantity string) error { + r._quantity = _quantity + r.Set("quantity", _quantity) + return nil +} + +// Quantity Getter +func (r TaobaoFenxiaoProductQuantityUpdateAPIRequest) GetQuantity() string { + return r._quantity +} +// Type Setter +// 库存更新方式,可选。1为全量更新,2为增量更新。如果不填,默认为全量更新。当选择全量更新时,如果库存更新值传入的是负数,会出错并返回错误码;当选择增量更新时,如果库存更新值为负数且绝对值大于当前库存,则sku库存会设置为0 +func (r *TaobaoFenxiaoProductQuantityUpdateAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoFenxiaoProductQuantityUpdateAPIRequest) GetType() int64 { + return r._type +} +// Properties Setter +// sku属性值,产品有sku时填写,多个sku用,分隔。为空时默认该产品无sku,则只修改产品的库存。 +func (r *TaobaoFenxiaoProductQuantityUpdateAPIRequest) SetProperties(_properties string) error { + r._properties = _properties + r.Set("properties", _properties) + return nil +} + +// Properties Getter +func (r TaobaoFenxiaoProductQuantityUpdateAPIRequest) GetProperties() string { + return r._properties +} diff --git a/model/fenxiao/TaobaoFenxiaoProductQuantityUpdateAPIResponse.go b/model/fenxiao/TaobaoFenxiaoProductQuantityUpdateAPIResponse.go new file mode 100644 index 0000000000..041a9710fb --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductQuantityUpdateAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +产品库存修改 API返回值 +taobao.fenxiao.product.quantity.update + +修改产品库存信息,支持全量修改以及增量修改两种方式 +*/ +type TaobaoFenxiaoProductQuantityUpdateAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoProductQuantityUpdateAPIResponseModel +} + +// 产品库存修改 成功返回结果 +type TaobaoFenxiaoProductQuantityUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_product_quantity_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 操作时间 + Created string `json:"created,omitempty" xml:"created,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoProductQuantityUpdateResponse.go b/model/fenxiao/TaobaoFenxiaoProductQuantityUpdateResponse.go deleted file mode 100644 index eccd34b0fb..0000000000 --- a/model/fenxiao/TaobaoFenxiaoProductQuantityUpdateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -产品库存修改 API返回值 -taobao.fenxiao.product.quantity.update - -修改产品库存信息,支持全量修改以及增量修改两种方式 -*/ -type TaobaoFenxiaoProductQuantityUpdateAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoProductQuantityUpdateResponse -} - -// 产品库存修改 成功返回结果 -type TaobaoFenxiaoProductQuantityUpdateResponse struct { - XMLName xml.Name `xml:"fenxiao_product_quantity_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 操作时间 - Created string `json:"created,omitempty" xml:"created,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoProductSkuAddAPIRequest.go b/model/fenxiao/TaobaoFenxiaoProductSkuAddAPIRequest.go new file mode 100644 index 0000000000..3e83a2cca4 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductSkuAddAPIRequest.go @@ -0,0 +1,136 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +产品sku添加接口 API请求 +taobao.fenxiao.product.sku.add + +添加产品SKU信息 +*/ +type TaobaoFenxiaoProductSkuAddAPIRequest struct { + model.Params + // 产品ID + _productId int64 + // sku产品库存,在0到1000000之间,如果不传,则库存为0 + _quantity int64 + // 采购基准价,最大值1000000000 + _standardPrice string + // 代销采购价 + _agentCostPrice string + // sku属性 + _properties string + // 商家编码 + _skuNumber string + // 经销采购价 + _dealerCostPrice string +} + +// 初始化TaobaoFenxiaoProductSkuAddAPIRequest对象 +func NewTaobaoFenxiaoProductSkuAddRequest() *TaobaoFenxiaoProductSkuAddAPIRequest{ + return &TaobaoFenxiaoProductSkuAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoProductSkuAddAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.product.sku.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoProductSkuAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品ID +func (r *TaobaoFenxiaoProductSkuAddAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoFenxiaoProductSkuAddAPIRequest) GetProductId() int64 { + return r._productId +} +// Quantity Setter +// sku产品库存,在0到1000000之间,如果不传,则库存为0 +func (r *TaobaoFenxiaoProductSkuAddAPIRequest) SetQuantity(_quantity int64) error { + r._quantity = _quantity + r.Set("quantity", _quantity) + return nil +} + +// Quantity Getter +func (r TaobaoFenxiaoProductSkuAddAPIRequest) GetQuantity() int64 { + return r._quantity +} +// StandardPrice Setter +// 采购基准价,最大值1000000000 +func (r *TaobaoFenxiaoProductSkuAddAPIRequest) SetStandardPrice(_standardPrice string) error { + r._standardPrice = _standardPrice + r.Set("standard_price", _standardPrice) + return nil +} + +// StandardPrice Getter +func (r TaobaoFenxiaoProductSkuAddAPIRequest) GetStandardPrice() string { + return r._standardPrice +} +// AgentCostPrice Setter +// 代销采购价 +func (r *TaobaoFenxiaoProductSkuAddAPIRequest) SetAgentCostPrice(_agentCostPrice string) error { + r._agentCostPrice = _agentCostPrice + r.Set("agent_cost_price", _agentCostPrice) + return nil +} + +// AgentCostPrice Getter +func (r TaobaoFenxiaoProductSkuAddAPIRequest) GetAgentCostPrice() string { + return r._agentCostPrice +} +// Properties Setter +// sku属性 +func (r *TaobaoFenxiaoProductSkuAddAPIRequest) SetProperties(_properties string) error { + r._properties = _properties + r.Set("properties", _properties) + return nil +} + +// Properties Getter +func (r TaobaoFenxiaoProductSkuAddAPIRequest) GetProperties() string { + return r._properties +} +// SkuNumber Setter +// 商家编码 +func (r *TaobaoFenxiaoProductSkuAddAPIRequest) SetSkuNumber(_skuNumber string) error { + r._skuNumber = _skuNumber + r.Set("sku_number", _skuNumber) + return nil +} + +// SkuNumber Getter +func (r TaobaoFenxiaoProductSkuAddAPIRequest) GetSkuNumber() string { + return r._skuNumber +} +// DealerCostPrice Setter +// 经销采购价 +func (r *TaobaoFenxiaoProductSkuAddAPIRequest) SetDealerCostPrice(_dealerCostPrice string) error { + r._dealerCostPrice = _dealerCostPrice + r.Set("dealer_cost_price", _dealerCostPrice) + return nil +} + +// DealerCostPrice Getter +func (r TaobaoFenxiaoProductSkuAddAPIRequest) GetDealerCostPrice() string { + return r._dealerCostPrice +} diff --git a/model/fenxiao/TaobaoFenxiaoProductSkuAddAPIResponse.go b/model/fenxiao/TaobaoFenxiaoProductSkuAddAPIResponse.go new file mode 100644 index 0000000000..edb7be9885 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductSkuAddAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +产品sku添加接口 API返回值 +taobao.fenxiao.product.sku.add + +添加产品SKU信息 +*/ +type TaobaoFenxiaoProductSkuAddAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoProductSkuAddAPIResponseModel +} + +// 产品sku添加接口 成功返回结果 +type TaobaoFenxiaoProductSkuAddAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_product_sku_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 操作时间 + Created string `json:"created,omitempty" xml:"created,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoProductSkuAddResponse.go b/model/fenxiao/TaobaoFenxiaoProductSkuAddResponse.go deleted file mode 100644 index 196d166093..0000000000 --- a/model/fenxiao/TaobaoFenxiaoProductSkuAddResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -产品sku添加接口 API返回值 -taobao.fenxiao.product.sku.add - -添加产品SKU信息 -*/ -type TaobaoFenxiaoProductSkuAddAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoProductSkuAddResponse -} - -// 产品sku添加接口 成功返回结果 -type TaobaoFenxiaoProductSkuAddResponse struct { - XMLName xml.Name `xml:"fenxiao_product_sku_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 操作时间 - Created string `json:"created,omitempty" xml:"created,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoProductSkuDeleteAPIRequest.go b/model/fenxiao/TaobaoFenxiaoProductSkuDeleteAPIRequest.go new file mode 100644 index 0000000000..543a1449b3 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductSkuDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +产品SKU删除接口 API请求 +taobao.fenxiao.product.sku.delete + +根据sku properties删除sku数据 +*/ +type TaobaoFenxiaoProductSkuDeleteAPIRequest struct { + model.Params + // 产品id + _productId int64 + // sku属性 + _properties string +} + +// 初始化TaobaoFenxiaoProductSkuDeleteAPIRequest对象 +func NewTaobaoFenxiaoProductSkuDeleteRequest() *TaobaoFenxiaoProductSkuDeleteAPIRequest{ + return &TaobaoFenxiaoProductSkuDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoProductSkuDeleteAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.product.sku.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoProductSkuDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品id +func (r *TaobaoFenxiaoProductSkuDeleteAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoFenxiaoProductSkuDeleteAPIRequest) GetProductId() int64 { + return r._productId +} +// Properties Setter +// sku属性 +func (r *TaobaoFenxiaoProductSkuDeleteAPIRequest) SetProperties(_properties string) error { + r._properties = _properties + r.Set("properties", _properties) + return nil +} + +// Properties Getter +func (r TaobaoFenxiaoProductSkuDeleteAPIRequest) GetProperties() string { + return r._properties +} diff --git a/model/fenxiao/TaobaoFenxiaoProductSkuDeleteAPIResponse.go b/model/fenxiao/TaobaoFenxiaoProductSkuDeleteAPIResponse.go new file mode 100644 index 0000000000..0302bbde1c --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductSkuDeleteAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +产品SKU删除接口 API返回值 +taobao.fenxiao.product.sku.delete + +根据sku properties删除sku数据 +*/ +type TaobaoFenxiaoProductSkuDeleteAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoProductSkuDeleteAPIResponseModel +} + +// 产品SKU删除接口 成功返回结果 +type TaobaoFenxiaoProductSkuDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_product_sku_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 操作时间 + Created string `json:"created,omitempty" xml:"created,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoProductSkuDeleteResponse.go b/model/fenxiao/TaobaoFenxiaoProductSkuDeleteResponse.go deleted file mode 100644 index fce92126cf..0000000000 --- a/model/fenxiao/TaobaoFenxiaoProductSkuDeleteResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -产品SKU删除接口 API返回值 -taobao.fenxiao.product.sku.delete - -根据sku properties删除sku数据 -*/ -type TaobaoFenxiaoProductSkuDeleteAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoProductSkuDeleteResponse -} - -// 产品SKU删除接口 成功返回结果 -type TaobaoFenxiaoProductSkuDeleteResponse struct { - XMLName xml.Name `xml:"fenxiao_product_sku_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 操作时间 - Created string `json:"created,omitempty" xml:"created,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoProductSkuUpdateAPIRequest.go b/model/fenxiao/TaobaoFenxiaoProductSkuUpdateAPIRequest.go new file mode 100644 index 0000000000..b536dbf5f7 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductSkuUpdateAPIRequest.go @@ -0,0 +1,136 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +产品sku编辑接口 API请求 +taobao.fenxiao.product.sku.update + +产品SKU信息更新 +*/ +type TaobaoFenxiaoProductSkuUpdateAPIRequest struct { + model.Params + // 产品ID + _productId int64 + // 产品SKU库存 + _quantity int64 + // 采购基准价 + _standardPrice string + // 代销采购价 + _agentCostPrice string + // sku属性 + _properties string + // 商家编码 + _skuNumber string + // 经销采购价 + _dealerCostPrice string +} + +// 初始化TaobaoFenxiaoProductSkuUpdateAPIRequest对象 +func NewTaobaoFenxiaoProductSkuUpdateRequest() *TaobaoFenxiaoProductSkuUpdateAPIRequest{ + return &TaobaoFenxiaoProductSkuUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoProductSkuUpdateAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.product.sku.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoProductSkuUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品ID +func (r *TaobaoFenxiaoProductSkuUpdateAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoFenxiaoProductSkuUpdateAPIRequest) GetProductId() int64 { + return r._productId +} +// Quantity Setter +// 产品SKU库存 +func (r *TaobaoFenxiaoProductSkuUpdateAPIRequest) SetQuantity(_quantity int64) error { + r._quantity = _quantity + r.Set("quantity", _quantity) + return nil +} + +// Quantity Getter +func (r TaobaoFenxiaoProductSkuUpdateAPIRequest) GetQuantity() int64 { + return r._quantity +} +// StandardPrice Setter +// 采购基准价 +func (r *TaobaoFenxiaoProductSkuUpdateAPIRequest) SetStandardPrice(_standardPrice string) error { + r._standardPrice = _standardPrice + r.Set("standard_price", _standardPrice) + return nil +} + +// StandardPrice Getter +func (r TaobaoFenxiaoProductSkuUpdateAPIRequest) GetStandardPrice() string { + return r._standardPrice +} +// AgentCostPrice Setter +// 代销采购价 +func (r *TaobaoFenxiaoProductSkuUpdateAPIRequest) SetAgentCostPrice(_agentCostPrice string) error { + r._agentCostPrice = _agentCostPrice + r.Set("agent_cost_price", _agentCostPrice) + return nil +} + +// AgentCostPrice Getter +func (r TaobaoFenxiaoProductSkuUpdateAPIRequest) GetAgentCostPrice() string { + return r._agentCostPrice +} +// Properties Setter +// sku属性 +func (r *TaobaoFenxiaoProductSkuUpdateAPIRequest) SetProperties(_properties string) error { + r._properties = _properties + r.Set("properties", _properties) + return nil +} + +// Properties Getter +func (r TaobaoFenxiaoProductSkuUpdateAPIRequest) GetProperties() string { + return r._properties +} +// SkuNumber Setter +// 商家编码 +func (r *TaobaoFenxiaoProductSkuUpdateAPIRequest) SetSkuNumber(_skuNumber string) error { + r._skuNumber = _skuNumber + r.Set("sku_number", _skuNumber) + return nil +} + +// SkuNumber Getter +func (r TaobaoFenxiaoProductSkuUpdateAPIRequest) GetSkuNumber() string { + return r._skuNumber +} +// DealerCostPrice Setter +// 经销采购价 +func (r *TaobaoFenxiaoProductSkuUpdateAPIRequest) SetDealerCostPrice(_dealerCostPrice string) error { + r._dealerCostPrice = _dealerCostPrice + r.Set("dealer_cost_price", _dealerCostPrice) + return nil +} + +// DealerCostPrice Getter +func (r TaobaoFenxiaoProductSkuUpdateAPIRequest) GetDealerCostPrice() string { + return r._dealerCostPrice +} diff --git a/model/fenxiao/TaobaoFenxiaoProductSkuUpdateAPIResponse.go b/model/fenxiao/TaobaoFenxiaoProductSkuUpdateAPIResponse.go new file mode 100644 index 0000000000..41ce2f0770 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductSkuUpdateAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +产品sku编辑接口 API返回值 +taobao.fenxiao.product.sku.update + +产品SKU信息更新 +*/ +type TaobaoFenxiaoProductSkuUpdateAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoProductSkuUpdateAPIResponseModel +} + +// 产品sku编辑接口 成功返回结果 +type TaobaoFenxiaoProductSkuUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_product_sku_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 操作时间 + Created string `json:"created,omitempty" xml:"created,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoProductSkuUpdateResponse.go b/model/fenxiao/TaobaoFenxiaoProductSkuUpdateResponse.go deleted file mode 100644 index b39202fea4..0000000000 --- a/model/fenxiao/TaobaoFenxiaoProductSkuUpdateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -产品sku编辑接口 API返回值 -taobao.fenxiao.product.sku.update - -产品SKU信息更新 -*/ -type TaobaoFenxiaoProductSkuUpdateAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoProductSkuUpdateResponse -} - -// 产品sku编辑接口 成功返回结果 -type TaobaoFenxiaoProductSkuUpdateResponse struct { - XMLName xml.Name `xml:"fenxiao_product_sku_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 操作时间 - Created string `json:"created,omitempty" xml:"created,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoProductSkusGetAPIRequest.go b/model/fenxiao/TaobaoFenxiaoProductSkusGetAPIRequest.go new file mode 100644 index 0000000000..7e5c42294b --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductSkusGetAPIRequest.go @@ -0,0 +1,52 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +SKU查询接口 API请求 +taobao.fenxiao.product.skus.get + +产品sku查询 +*/ +type TaobaoFenxiaoProductSkusGetAPIRequest struct { + model.Params + // 产品ID + _productId int64 +} + +// 初始化TaobaoFenxiaoProductSkusGetAPIRequest对象 +func NewTaobaoFenxiaoProductSkusGetRequest() *TaobaoFenxiaoProductSkusGetAPIRequest{ + return &TaobaoFenxiaoProductSkusGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoProductSkusGetAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.product.skus.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoProductSkusGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品ID +func (r *TaobaoFenxiaoProductSkusGetAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoFenxiaoProductSkusGetAPIRequest) GetProductId() int64 { + return r._productId +} diff --git a/model/fenxiao/TaobaoFenxiaoProductSkusGetAPIResponse.go b/model/fenxiao/TaobaoFenxiaoProductSkusGetAPIResponse.go new file mode 100644 index 0000000000..edec77fba0 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductSkusGetAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +SKU查询接口 API返回值 +taobao.fenxiao.product.skus.get + +产品sku查询 +*/ +type TaobaoFenxiaoProductSkusGetAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoProductSkusGetAPIResponseModel +} + +// SKU查询接口 成功返回结果 +type TaobaoFenxiaoProductSkusGetAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_product_skus_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // sku信息 + Skus []FenxiaoSku `json:"skus,omitempty" xml:"skus>fenxiao_sku,omitempty"` + // 记录数量 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoProductSkusGetResponse.go b/model/fenxiao/TaobaoFenxiaoProductSkusGetResponse.go deleted file mode 100644 index 4c93bdcd97..0000000000 --- a/model/fenxiao/TaobaoFenxiaoProductSkusGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -SKU查询接口 API返回值 -taobao.fenxiao.product.skus.get - -产品sku查询 -*/ -type TaobaoFenxiaoProductSkusGetAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoProductSkusGetResponse -} - -// SKU查询接口 成功返回结果 -type TaobaoFenxiaoProductSkusGetResponse struct { - XMLName xml.Name `xml:"fenxiao_product_skus_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // sku信息 - Skus []FenxiaoSku `json:"skus,omitempty" xml:"skus>fenxiao_sku,omitempty"` - // 记录数量 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoProductToChannelImportAPIRequest.go b/model/fenxiao/TaobaoFenxiaoProductToChannelImportAPIRequest.go new file mode 100644 index 0000000000..a7ec5a0a02 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductToChannelImportAPIRequest.go @@ -0,0 +1,66 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +产品导入到渠道 API请求 +taobao.fenxiao.product.to.channel.import + +支持供应商将已有产品导入到某个渠道销售 +*/ +type TaobaoFenxiaoProductToChannelImportAPIRequest struct { + model.Params + // 要导入的渠道[21 零售PLUS]目前仅支持此渠道 + _channel int64 + // 要导入的产品id + _productId int64 +} + +// 初始化TaobaoFenxiaoProductToChannelImportAPIRequest对象 +func NewTaobaoFenxiaoProductToChannelImportRequest() *TaobaoFenxiaoProductToChannelImportAPIRequest{ + return &TaobaoFenxiaoProductToChannelImportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoProductToChannelImportAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.product.to.channel.import" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoProductToChannelImportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Channel Setter +// 要导入的渠道[21 零售PLUS]目前仅支持此渠道 +func (r *TaobaoFenxiaoProductToChannelImportAPIRequest) SetChannel(_channel int64) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r TaobaoFenxiaoProductToChannelImportAPIRequest) GetChannel() int64 { + return r._channel +} +// ProductId Setter +// 要导入的产品id +func (r *TaobaoFenxiaoProductToChannelImportAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoFenxiaoProductToChannelImportAPIRequest) GetProductId() int64 { + return r._productId +} diff --git a/model/fenxiao/TaobaoFenxiaoProductToChannelImportAPIResponse.go b/model/fenxiao/TaobaoFenxiaoProductToChannelImportAPIResponse.go new file mode 100644 index 0000000000..19c2976089 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductToChannelImportAPIResponse.go @@ -0,0 +1,25 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +产品导入到渠道 API返回值 +taobao.fenxiao.product.to.channel.import + +支持供应商将已有产品导入到某个渠道销售 +*/ +type TaobaoFenxiaoProductToChannelImportAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoProductToChannelImportAPIResponseModel +} + +// 产品导入到渠道 成功返回结果 +type TaobaoFenxiaoProductToChannelImportAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_product_to_channel_import_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoProductToChannelImportResponse.go b/model/fenxiao/TaobaoFenxiaoProductToChannelImportResponse.go deleted file mode 100644 index 34aec253f4..0000000000 --- a/model/fenxiao/TaobaoFenxiaoProductToChannelImportResponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -产品导入到渠道 API返回值 -taobao.fenxiao.product.to.channel.import - -支持供应商将已有产品导入到某个渠道销售 -*/ -type TaobaoFenxiaoProductToChannelImportAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoProductToChannelImportResponse -} - -// 产品导入到渠道 成功返回结果 -type TaobaoFenxiaoProductToChannelImportResponse struct { - XMLName xml.Name `xml:"fenxiao_product_to_channel_import_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoProductUpdateAPIRequest.go b/model/fenxiao/TaobaoFenxiaoProductUpdateAPIRequest.go new file mode 100644 index 0000000000..0e81d321b7 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductUpdateAPIRequest.go @@ -0,0 +1,556 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新产品 API请求 +taobao.fenxiao.product.update + +更新分销平台产品数据,不传更新数据返回失败

1. 对sku进行增、删操作时,原有的sku_ids字段会被忽略,请使用sku_properties和sku_properties_del。
+*/ +type TaobaoFenxiaoProductUpdateAPIRequest struct { + model.Params + // 运费类型,可选值:seller(供应商承担运费)、buyer(分销商承担运费)。 + _postageType string + // 是否有发票,可选值:false(否)、true(是),默认false。 + _haveInvoice string + // 是否有保修,可选值:false(否)、true(是),默认false。 + _haveQuarantee string + // 发布状态,可选值:up(上架)、down(下架)、delete(删除),输入非法字符则忽略。 + _status string + // 产品ID + _pid int64 + // 产品名称,长度不超过60个字节。 + _name string + // 采购基准价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 + _standardPrice string + // 代销采购价格,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 + _costPrice string + // 最低零售价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 + _retailPriceLow string + // 最高零售价,单位:元。例:“10.56”。必须在0.01元到10000000元之间,最高零售价必须大于最低零售价。 + _retailPriceHigh string + // 商家编码,长度不能超过60个字节。 + _outerId string + // 产品库存必须是1到999999。 + _quantity int64 + // 产品描述,长度为5到25000字符。 + _desc string + // 所在地:省,例:“浙江” + _prov string + // 所在地:市,例:“杭州” + _city string + // 运费模板ID,参考taobao.postages.get。更新时必须指定运费类型为 buyer,否则不更新。 + _postageId int64 + // 平邮费用,单位:元。例:“10.56”。大小为0.01元到999999元之间。更新时必须指定运费类型为buyer,否则不更新。 + _postageOrdinary string + // 快递费用,单位:元。例:“10.56”。大小为0.01元到999999元之间。更新时必须指定运费类型为buyer,否则不更新。 + _postageFast string + // ems费用,单位:元。例:“10.56”。大小为0.01元到999999元之间。更新时必须指定运费类型为buyer,否则不更新。 + _postageEms string + // sku id列表,例:1001,1002,1003。如果传入sku_properties将忽略此参数。 + _skuIds string + // sku采购价格,单位元,例:"10.50,11.00,20.50",字段必须和上面的sku_ids或sku_properties保持一致。 + _skuCostPrices string + // sku库存,单位元,例:"10,20,30",字段必须和sku_ids或sku_properties保持一致。 + _skuQuantitys string + // sku商家编码 ,单位元,例:"S1000,S1002,S1003",字段必须和上面的id或sku_properties保持一致,如果没有可以写成",," + _skuOuterIds string + // 折扣ID + _discountId int64 + // sku采购基准价,单位元,例:"10.50,11.00,20.50",字段必须和上面的sku_ids或sku_properties保持一致。 + _skuStandardPrices string + // sku属性。格式:pid:vid;pid:vid,表示一组属性如:1627207:3232483;1630696:3284570,表示一组:机身颜色:军绿色;手机套餐:一电一充。多组之间用逗号“,”区分。(属性的pid调用taobao.itemprops.get取得,属性值的vid用taobao.itempropvalues.get取得vid)
通过此字段可新增和更新sku。若传入此值将忽略sku_ids字段。sku其他字段与此值保持一致。 + _skuProperties string + // 根据sku属性删除sku信息。需要按组删除属性。 + _skuPropertiesDel string + // 产品是否需要授权isAuthz:yes|no
yes:需要授权
no:不需要授权 + _isAuthz string + // 产品主图图片空间相对路径或绝对路径 + _picPath string + // 主图图片,如果pic_path参数不空,则优先使用pic_path,忽略该参数 + _image *model.File + // 产品属性 + _properties string + // 属性别名 + _propertyAlias string + // 自定义属性。格式为pid:value;pid:value + _inputProperties string + // 经销采购价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 + _dealerCostPrice string + // sku的经销采购价。如果多个,用逗号分隔,并与其他sku信息保持相同顺序。其中每个值的单位:元。例:“10.56,12.3”。必须在0.01元到10000000元之间。 + _skuDealerCostPrices string + // 所属类目id,参考Taobao.itemcats.get,不支持成人等类目,输入成人类目id保存提示类目属性错误。 + _categoryId int64 + // 零售基准价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 + _standardRetailPrice string +} + +// 初始化TaobaoFenxiaoProductUpdateAPIRequest对象 +func NewTaobaoFenxiaoProductUpdateRequest() *TaobaoFenxiaoProductUpdateAPIRequest{ + return &TaobaoFenxiaoProductUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.product.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PostageType Setter +// 运费类型,可选值:seller(供应商承担运费)、buyer(分销商承担运费)。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetPostageType(_postageType string) error { + r._postageType = _postageType + r.Set("postage_type", _postageType) + return nil +} + +// PostageType Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetPostageType() string { + return r._postageType +} +// HaveInvoice Setter +// 是否有发票,可选值:false(否)、true(是),默认false。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetHaveInvoice(_haveInvoice string) error { + r._haveInvoice = _haveInvoice + r.Set("have_invoice", _haveInvoice) + return nil +} + +// HaveInvoice Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetHaveInvoice() string { + return r._haveInvoice +} +// HaveQuarantee Setter +// 是否有保修,可选值:false(否)、true(是),默认false。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetHaveQuarantee(_haveQuarantee string) error { + r._haveQuarantee = _haveQuarantee + r.Set("have_quarantee", _haveQuarantee) + return nil +} + +// HaveQuarantee Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetHaveQuarantee() string { + return r._haveQuarantee +} +// Status Setter +// 发布状态,可选值:up(上架)、down(下架)、delete(删除),输入非法字符则忽略。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetStatus() string { + return r._status +} +// Pid Setter +// 产品ID +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetPid(_pid int64) error { + r._pid = _pid + r.Set("pid", _pid) + return nil +} + +// Pid Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetPid() int64 { + return r._pid +} +// Name Setter +// 产品名称,长度不超过60个字节。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetName() string { + return r._name +} +// StandardPrice Setter +// 采购基准价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetStandardPrice(_standardPrice string) error { + r._standardPrice = _standardPrice + r.Set("standard_price", _standardPrice) + return nil +} + +// StandardPrice Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetStandardPrice() string { + return r._standardPrice +} +// CostPrice Setter +// 代销采购价格,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetCostPrice(_costPrice string) error { + r._costPrice = _costPrice + r.Set("cost_price", _costPrice) + return nil +} + +// CostPrice Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetCostPrice() string { + return r._costPrice +} +// RetailPriceLow Setter +// 最低零售价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetRetailPriceLow(_retailPriceLow string) error { + r._retailPriceLow = _retailPriceLow + r.Set("retail_price_low", _retailPriceLow) + return nil +} + +// RetailPriceLow Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetRetailPriceLow() string { + return r._retailPriceLow +} +// RetailPriceHigh Setter +// 最高零售价,单位:元。例:“10.56”。必须在0.01元到10000000元之间,最高零售价必须大于最低零售价。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetRetailPriceHigh(_retailPriceHigh string) error { + r._retailPriceHigh = _retailPriceHigh + r.Set("retail_price_high", _retailPriceHigh) + return nil +} + +// RetailPriceHigh Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetRetailPriceHigh() string { + return r._retailPriceHigh +} +// OuterId Setter +// 商家编码,长度不能超过60个字节。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetOuterId() string { + return r._outerId +} +// Quantity Setter +// 产品库存必须是1到999999。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetQuantity(_quantity int64) error { + r._quantity = _quantity + r.Set("quantity", _quantity) + return nil +} + +// Quantity Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetQuantity() int64 { + return r._quantity +} +// Desc Setter +// 产品描述,长度为5到25000字符。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetDesc(_desc string) error { + r._desc = _desc + r.Set("desc", _desc) + return nil +} + +// Desc Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetDesc() string { + return r._desc +} +// Prov Setter +// 所在地:省,例:“浙江” +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetProv(_prov string) error { + r._prov = _prov + r.Set("prov", _prov) + return nil +} + +// Prov Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetProv() string { + return r._prov +} +// City Setter +// 所在地:市,例:“杭州” +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetCity(_city string) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetCity() string { + return r._city +} +// PostageId Setter +// 运费模板ID,参考taobao.postages.get。更新时必须指定运费类型为 buyer,否则不更新。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetPostageId(_postageId int64) error { + r._postageId = _postageId + r.Set("postage_id", _postageId) + return nil +} + +// PostageId Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetPostageId() int64 { + return r._postageId +} +// PostageOrdinary Setter +// 平邮费用,单位:元。例:“10.56”。大小为0.01元到999999元之间。更新时必须指定运费类型为buyer,否则不更新。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetPostageOrdinary(_postageOrdinary string) error { + r._postageOrdinary = _postageOrdinary + r.Set("postage_ordinary", _postageOrdinary) + return nil +} + +// PostageOrdinary Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetPostageOrdinary() string { + return r._postageOrdinary +} +// PostageFast Setter +// 快递费用,单位:元。例:“10.56”。大小为0.01元到999999元之间。更新时必须指定运费类型为buyer,否则不更新。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetPostageFast(_postageFast string) error { + r._postageFast = _postageFast + r.Set("postage_fast", _postageFast) + return nil +} + +// PostageFast Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetPostageFast() string { + return r._postageFast +} +// PostageEms Setter +// ems费用,单位:元。例:“10.56”。大小为0.01元到999999元之间。更新时必须指定运费类型为buyer,否则不更新。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetPostageEms(_postageEms string) error { + r._postageEms = _postageEms + r.Set("postage_ems", _postageEms) + return nil +} + +// PostageEms Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetPostageEms() string { + return r._postageEms +} +// SkuIds Setter +// sku id列表,例:1001,1002,1003。如果传入sku_properties将忽略此参数。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetSkuIds(_skuIds string) error { + r._skuIds = _skuIds + r.Set("sku_ids", _skuIds) + return nil +} + +// SkuIds Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetSkuIds() string { + return r._skuIds +} +// SkuCostPrices Setter +// sku采购价格,单位元,例:"10.50,11.00,20.50",字段必须和上面的sku_ids或sku_properties保持一致。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetSkuCostPrices(_skuCostPrices string) error { + r._skuCostPrices = _skuCostPrices + r.Set("sku_cost_prices", _skuCostPrices) + return nil +} + +// SkuCostPrices Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetSkuCostPrices() string { + return r._skuCostPrices +} +// SkuQuantitys Setter +// sku库存,单位元,例:"10,20,30",字段必须和sku_ids或sku_properties保持一致。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetSkuQuantitys(_skuQuantitys string) error { + r._skuQuantitys = _skuQuantitys + r.Set("sku_quantitys", _skuQuantitys) + return nil +} + +// SkuQuantitys Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetSkuQuantitys() string { + return r._skuQuantitys +} +// SkuOuterIds Setter +// sku商家编码 ,单位元,例:"S1000,S1002,S1003",字段必须和上面的id或sku_properties保持一致,如果没有可以写成",," +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetSkuOuterIds(_skuOuterIds string) error { + r._skuOuterIds = _skuOuterIds + r.Set("sku_outer_ids", _skuOuterIds) + return nil +} + +// SkuOuterIds Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetSkuOuterIds() string { + return r._skuOuterIds +} +// DiscountId Setter +// 折扣ID +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetDiscountId(_discountId int64) error { + r._discountId = _discountId + r.Set("discount_id", _discountId) + return nil +} + +// DiscountId Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetDiscountId() int64 { + return r._discountId +} +// SkuStandardPrices Setter +// sku采购基准价,单位元,例:"10.50,11.00,20.50",字段必须和上面的sku_ids或sku_properties保持一致。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetSkuStandardPrices(_skuStandardPrices string) error { + r._skuStandardPrices = _skuStandardPrices + r.Set("sku_standard_prices", _skuStandardPrices) + return nil +} + +// SkuStandardPrices Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetSkuStandardPrices() string { + return r._skuStandardPrices +} +// SkuProperties Setter +// sku属性。格式:pid:vid;pid:vid,表示一组属性如:1627207:3232483;1630696:3284570,表示一组:机身颜色:军绿色;手机套餐:一电一充。多组之间用逗号“,”区分。(属性的pid调用taobao.itemprops.get取得,属性值的vid用taobao.itempropvalues.get取得vid)
通过此字段可新增和更新sku。若传入此值将忽略sku_ids字段。sku其他字段与此值保持一致。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetSkuProperties(_skuProperties string) error { + r._skuProperties = _skuProperties + r.Set("sku_properties", _skuProperties) + return nil +} + +// SkuProperties Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetSkuProperties() string { + return r._skuProperties +} +// SkuPropertiesDel Setter +// 根据sku属性删除sku信息。需要按组删除属性。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetSkuPropertiesDel(_skuPropertiesDel string) error { + r._skuPropertiesDel = _skuPropertiesDel + r.Set("sku_properties_del", _skuPropertiesDel) + return nil +} + +// SkuPropertiesDel Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetSkuPropertiesDel() string { + return r._skuPropertiesDel +} +// IsAuthz Setter +// 产品是否需要授权isAuthz:yes|no
yes:需要授权
no:不需要授权 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetIsAuthz(_isAuthz string) error { + r._isAuthz = _isAuthz + r.Set("is_authz", _isAuthz) + return nil +} + +// IsAuthz Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetIsAuthz() string { + return r._isAuthz +} +// PicPath Setter +// 产品主图图片空间相对路径或绝对路径 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetPicPath(_picPath string) error { + r._picPath = _picPath + r.Set("pic_path", _picPath) + return nil +} + +// PicPath Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetPicPath() string { + return r._picPath +} +// Image Setter +// 主图图片,如果pic_path参数不空,则优先使用pic_path,忽略该参数 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetImage(_image *model.File) error { + r._image = _image + r.Set("image", _image) + return nil +} + +// Image Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetImage() *model.File { + return r._image +} +// Properties Setter +// 产品属性 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetProperties(_properties string) error { + r._properties = _properties + r.Set("properties", _properties) + return nil +} + +// Properties Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetProperties() string { + return r._properties +} +// PropertyAlias Setter +// 属性别名 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetPropertyAlias(_propertyAlias string) error { + r._propertyAlias = _propertyAlias + r.Set("property_alias", _propertyAlias) + return nil +} + +// PropertyAlias Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetPropertyAlias() string { + return r._propertyAlias +} +// InputProperties Setter +// 自定义属性。格式为pid:value;pid:value +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetInputProperties(_inputProperties string) error { + r._inputProperties = _inputProperties + r.Set("input_properties", _inputProperties) + return nil +} + +// InputProperties Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetInputProperties() string { + return r._inputProperties +} +// DealerCostPrice Setter +// 经销采购价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetDealerCostPrice(_dealerCostPrice string) error { + r._dealerCostPrice = _dealerCostPrice + r.Set("dealer_cost_price", _dealerCostPrice) + return nil +} + +// DealerCostPrice Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetDealerCostPrice() string { + return r._dealerCostPrice +} +// SkuDealerCostPrices Setter +// sku的经销采购价。如果多个,用逗号分隔,并与其他sku信息保持相同顺序。其中每个值的单位:元。例:“10.56,12.3”。必须在0.01元到10000000元之间。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetSkuDealerCostPrices(_skuDealerCostPrices string) error { + r._skuDealerCostPrices = _skuDealerCostPrices + r.Set("sku_dealer_cost_prices", _skuDealerCostPrices) + return nil +} + +// SkuDealerCostPrices Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetSkuDealerCostPrices() string { + return r._skuDealerCostPrices +} +// CategoryId Setter +// 所属类目id,参考Taobao.itemcats.get,不支持成人等类目,输入成人类目id保存提示类目属性错误。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetCategoryId() int64 { + return r._categoryId +} +// StandardRetailPrice Setter +// 零售基准价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。 +func (r *TaobaoFenxiaoProductUpdateAPIRequest) SetStandardRetailPrice(_standardRetailPrice string) error { + r._standardRetailPrice = _standardRetailPrice + r.Set("standard_retail_price", _standardRetailPrice) + return nil +} + +// StandardRetailPrice Getter +func (r TaobaoFenxiaoProductUpdateAPIRequest) GetStandardRetailPrice() string { + return r._standardRetailPrice +} diff --git a/model/fenxiao/TaobaoFenxiaoProductUpdateAPIResponse.go b/model/fenxiao/TaobaoFenxiaoProductUpdateAPIResponse.go new file mode 100644 index 0000000000..d90d87b4ca --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductUpdateAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新产品 API返回值 +taobao.fenxiao.product.update + +更新分销平台产品数据,不传更新数据返回失败

1. 对sku进行增、删操作时,原有的sku_ids字段会被忽略,请使用sku_properties和sku_properties_del。
+*/ +type TaobaoFenxiaoProductUpdateAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoProductUpdateAPIResponseModel +} + +// 更新产品 成功返回结果 +type TaobaoFenxiaoProductUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_product_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 产品ID + Pid int64 `json:"pid,omitempty" xml:"pid,omitempty"` + // 更新时间,时间格式:yyyy-MM-dd HH:mm:ss + Modified string `json:"modified,omitempty" xml:"modified,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoProductUpdateResponse.go b/model/fenxiao/TaobaoFenxiaoProductUpdateResponse.go deleted file mode 100644 index 4e66e3e4ac..0000000000 --- a/model/fenxiao/TaobaoFenxiaoProductUpdateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新产品 API返回值 -taobao.fenxiao.product.update - -更新分销平台产品数据,不传更新数据返回失败

1. 对sku进行增、删操作时,原有的sku_ids字段会被忽略,请使用sku_properties和sku_properties_del。
-*/ -type TaobaoFenxiaoProductUpdateAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoProductUpdateResponse -} - -// 更新产品 成功返回结果 -type TaobaoFenxiaoProductUpdateResponse struct { - XMLName xml.Name `xml:"fenxiao_product_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 产品ID - Pid int64 `json:"pid,omitempty" xml:"pid,omitempty"` - // 更新时间,时间格式:yyyy-MM-dd HH:mm:ss - Modified string `json:"modified,omitempty" xml:"modified,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoProductcatAddAPIRequest.go b/model/fenxiao/TaobaoFenxiaoProductcatAddAPIRequest.go new file mode 100644 index 0000000000..3a1ddaa566 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductcatAddAPIRequest.go @@ -0,0 +1,108 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增产品线 API请求 +taobao.fenxiao.productcat.add + +新增产品线 +*/ +type TaobaoFenxiaoProductcatAddAPIRequest struct { + model.Params + // 产品线名称 + _name string + // 最低零售价比例,注意:100.00%,则输入为10000 + _retailLowPercent int64 + // 最高零售价比例,注意:100.00%,则输入为10000 + _retailHighPercent int64 + // 代销默认采购价比例,注意:100.00%,则输入为10000 + _agentCostPercent int64 + // 经销默认采购价比例,注意:100.00%,则输入为10000 + _dealerCostPercent int64 +} + +// 初始化TaobaoFenxiaoProductcatAddAPIRequest对象 +func NewTaobaoFenxiaoProductcatAddRequest() *TaobaoFenxiaoProductcatAddAPIRequest{ + return &TaobaoFenxiaoProductcatAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoProductcatAddAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.productcat.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoProductcatAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// 产品线名称 +func (r *TaobaoFenxiaoProductcatAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoFenxiaoProductcatAddAPIRequest) GetName() string { + return r._name +} +// RetailLowPercent Setter +// 最低零售价比例,注意:100.00%,则输入为10000 +func (r *TaobaoFenxiaoProductcatAddAPIRequest) SetRetailLowPercent(_retailLowPercent int64) error { + r._retailLowPercent = _retailLowPercent + r.Set("retail_low_percent", _retailLowPercent) + return nil +} + +// RetailLowPercent Getter +func (r TaobaoFenxiaoProductcatAddAPIRequest) GetRetailLowPercent() int64 { + return r._retailLowPercent +} +// RetailHighPercent Setter +// 最高零售价比例,注意:100.00%,则输入为10000 +func (r *TaobaoFenxiaoProductcatAddAPIRequest) SetRetailHighPercent(_retailHighPercent int64) error { + r._retailHighPercent = _retailHighPercent + r.Set("retail_high_percent", _retailHighPercent) + return nil +} + +// RetailHighPercent Getter +func (r TaobaoFenxiaoProductcatAddAPIRequest) GetRetailHighPercent() int64 { + return r._retailHighPercent +} +// AgentCostPercent Setter +// 代销默认采购价比例,注意:100.00%,则输入为10000 +func (r *TaobaoFenxiaoProductcatAddAPIRequest) SetAgentCostPercent(_agentCostPercent int64) error { + r._agentCostPercent = _agentCostPercent + r.Set("agent_cost_percent", _agentCostPercent) + return nil +} + +// AgentCostPercent Getter +func (r TaobaoFenxiaoProductcatAddAPIRequest) GetAgentCostPercent() int64 { + return r._agentCostPercent +} +// DealerCostPercent Setter +// 经销默认采购价比例,注意:100.00%,则输入为10000 +func (r *TaobaoFenxiaoProductcatAddAPIRequest) SetDealerCostPercent(_dealerCostPercent int64) error { + r._dealerCostPercent = _dealerCostPercent + r.Set("dealer_cost_percent", _dealerCostPercent) + return nil +} + +// DealerCostPercent Getter +func (r TaobaoFenxiaoProductcatAddAPIRequest) GetDealerCostPercent() int64 { + return r._dealerCostPercent +} diff --git a/model/fenxiao/TaobaoFenxiaoProductcatAddAPIResponse.go b/model/fenxiao/TaobaoFenxiaoProductcatAddAPIResponse.go new file mode 100644 index 0000000000..31d374a3c9 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductcatAddAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增产品线 API返回值 +taobao.fenxiao.productcat.add + +新增产品线 +*/ +type TaobaoFenxiaoProductcatAddAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoProductcatAddAPIResponseModel +} + +// 新增产品线 成功返回结果 +type TaobaoFenxiaoProductcatAddAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_productcat_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 产品线ID + ProductLineId int64 `json:"product_line_id,omitempty" xml:"product_line_id,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoProductcatAddResponse.go b/model/fenxiao/TaobaoFenxiaoProductcatAddResponse.go deleted file mode 100644 index 38de02667c..0000000000 --- a/model/fenxiao/TaobaoFenxiaoProductcatAddResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增产品线 API返回值 -taobao.fenxiao.productcat.add - -新增产品线 -*/ -type TaobaoFenxiaoProductcatAddAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoProductcatAddResponse -} - -// 新增产品线 成功返回结果 -type TaobaoFenxiaoProductcatAddResponse struct { - XMLName xml.Name `xml:"fenxiao_productcat_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 产品线ID - ProductLineId int64 `json:"product_line_id,omitempty" xml:"product_line_id,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoProductcatDeleteAPIRequest.go b/model/fenxiao/TaobaoFenxiaoProductcatDeleteAPIRequest.go new file mode 100644 index 0000000000..56b8b3fcf8 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductcatDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除产品线 API请求 +taobao.fenxiao.productcat.delete + +删除产品线 +*/ +type TaobaoFenxiaoProductcatDeleteAPIRequest struct { + model.Params + // 产品线ID + _productLineId int64 +} + +// 初始化TaobaoFenxiaoProductcatDeleteAPIRequest对象 +func NewTaobaoFenxiaoProductcatDeleteRequest() *TaobaoFenxiaoProductcatDeleteAPIRequest{ + return &TaobaoFenxiaoProductcatDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoProductcatDeleteAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.productcat.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoProductcatDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductLineId Setter +// 产品线ID +func (r *TaobaoFenxiaoProductcatDeleteAPIRequest) SetProductLineId(_productLineId int64) error { + r._productLineId = _productLineId + r.Set("product_line_id", _productLineId) + return nil +} + +// ProductLineId Getter +func (r TaobaoFenxiaoProductcatDeleteAPIRequest) GetProductLineId() int64 { + return r._productLineId +} diff --git a/model/fenxiao/TaobaoFenxiaoProductcatDeleteAPIResponse.go b/model/fenxiao/TaobaoFenxiaoProductcatDeleteAPIResponse.go new file mode 100644 index 0000000000..90096391fe --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductcatDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除产品线 API返回值 +taobao.fenxiao.productcat.delete + +删除产品线 +*/ +type TaobaoFenxiaoProductcatDeleteAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoProductcatDeleteAPIResponseModel +} + +// 删除产品线 成功返回结果 +type TaobaoFenxiaoProductcatDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_productcat_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoProductcatDeleteResponse.go b/model/fenxiao/TaobaoFenxiaoProductcatDeleteResponse.go deleted file mode 100644 index 0f758b8d54..0000000000 --- a/model/fenxiao/TaobaoFenxiaoProductcatDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除产品线 API返回值 -taobao.fenxiao.productcat.delete - -删除产品线 -*/ -type TaobaoFenxiaoProductcatDeleteAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoProductcatDeleteResponse -} - -// 删除产品线 成功返回结果 -type TaobaoFenxiaoProductcatDeleteResponse struct { - XMLName xml.Name `xml:"fenxiao_productcat_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoProductcatUpdateAPIRequest.go b/model/fenxiao/TaobaoFenxiaoProductcatUpdateAPIRequest.go new file mode 100644 index 0000000000..e74c060a25 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductcatUpdateAPIRequest.go @@ -0,0 +1,122 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改产品线 API请求 +taobao.fenxiao.productcat.update + +修改产品线 +*/ +type TaobaoFenxiaoProductcatUpdateAPIRequest struct { + model.Params + // 产品线ID + _productLineId int64 + // 产品线名称 + _name string + // 最低零售价比例,注意:100.00%,则输入为10000 + _retailLowPercent int64 + // 最高零售价比例,注意:100.00%,则输入为10000 + _retailHighPercent int64 + // 代销默认采购价比例,注意:100.00%,则输入为10000 + _agentCostPercent int64 + // 经销默认采购价比例,注意:100.00%,则输入为10000 + _dealerCostPercent int64 +} + +// 初始化TaobaoFenxiaoProductcatUpdateAPIRequest对象 +func NewTaobaoFenxiaoProductcatUpdateRequest() *TaobaoFenxiaoProductcatUpdateAPIRequest{ + return &TaobaoFenxiaoProductcatUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoProductcatUpdateAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.productcat.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoProductcatUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductLineId Setter +// 产品线ID +func (r *TaobaoFenxiaoProductcatUpdateAPIRequest) SetProductLineId(_productLineId int64) error { + r._productLineId = _productLineId + r.Set("product_line_id", _productLineId) + return nil +} + +// ProductLineId Getter +func (r TaobaoFenxiaoProductcatUpdateAPIRequest) GetProductLineId() int64 { + return r._productLineId +} +// Name Setter +// 产品线名称 +func (r *TaobaoFenxiaoProductcatUpdateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoFenxiaoProductcatUpdateAPIRequest) GetName() string { + return r._name +} +// RetailLowPercent Setter +// 最低零售价比例,注意:100.00%,则输入为10000 +func (r *TaobaoFenxiaoProductcatUpdateAPIRequest) SetRetailLowPercent(_retailLowPercent int64) error { + r._retailLowPercent = _retailLowPercent + r.Set("retail_low_percent", _retailLowPercent) + return nil +} + +// RetailLowPercent Getter +func (r TaobaoFenxiaoProductcatUpdateAPIRequest) GetRetailLowPercent() int64 { + return r._retailLowPercent +} +// RetailHighPercent Setter +// 最高零售价比例,注意:100.00%,则输入为10000 +func (r *TaobaoFenxiaoProductcatUpdateAPIRequest) SetRetailHighPercent(_retailHighPercent int64) error { + r._retailHighPercent = _retailHighPercent + r.Set("retail_high_percent", _retailHighPercent) + return nil +} + +// RetailHighPercent Getter +func (r TaobaoFenxiaoProductcatUpdateAPIRequest) GetRetailHighPercent() int64 { + return r._retailHighPercent +} +// AgentCostPercent Setter +// 代销默认采购价比例,注意:100.00%,则输入为10000 +func (r *TaobaoFenxiaoProductcatUpdateAPIRequest) SetAgentCostPercent(_agentCostPercent int64) error { + r._agentCostPercent = _agentCostPercent + r.Set("agent_cost_percent", _agentCostPercent) + return nil +} + +// AgentCostPercent Getter +func (r TaobaoFenxiaoProductcatUpdateAPIRequest) GetAgentCostPercent() int64 { + return r._agentCostPercent +} +// DealerCostPercent Setter +// 经销默认采购价比例,注意:100.00%,则输入为10000 +func (r *TaobaoFenxiaoProductcatUpdateAPIRequest) SetDealerCostPercent(_dealerCostPercent int64) error { + r._dealerCostPercent = _dealerCostPercent + r.Set("dealer_cost_percent", _dealerCostPercent) + return nil +} + +// DealerCostPercent Getter +func (r TaobaoFenxiaoProductcatUpdateAPIRequest) GetDealerCostPercent() int64 { + return r._dealerCostPercent +} diff --git a/model/fenxiao/TaobaoFenxiaoProductcatUpdateAPIResponse.go b/model/fenxiao/TaobaoFenxiaoProductcatUpdateAPIResponse.go new file mode 100644 index 0000000000..e5c6fca998 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductcatUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改产品线 API返回值 +taobao.fenxiao.productcat.update + +修改产品线 +*/ +type TaobaoFenxiaoProductcatUpdateAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoProductcatUpdateAPIResponseModel +} + +// 修改产品线 成功返回结果 +type TaobaoFenxiaoProductcatUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_productcat_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoProductcatUpdateResponse.go b/model/fenxiao/TaobaoFenxiaoProductcatUpdateResponse.go deleted file mode 100644 index b8e1720653..0000000000 --- a/model/fenxiao/TaobaoFenxiaoProductcatUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改产品线 API返回值 -taobao.fenxiao.productcat.update - -修改产品线 -*/ -type TaobaoFenxiaoProductcatUpdateAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoProductcatUpdateResponse -} - -// 修改产品线 成功返回结果 -type TaobaoFenxiaoProductcatUpdateResponse struct { - XMLName xml.Name `xml:"fenxiao_productcat_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoProductcatsGetAPIRequest.go b/model/fenxiao/TaobaoFenxiaoProductcatsGetAPIRequest.go new file mode 100644 index 0000000000..22832baeff --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductcatsGetAPIRequest.go @@ -0,0 +1,52 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询产品线列表 API请求 +taobao.fenxiao.productcats.get + +查询供应商的所有产品线数据。根据登陆用户来查询,不需要其他入参 +*/ +type TaobaoFenxiaoProductcatsGetAPIRequest struct { + model.Params + // 返回字段列表 + _fields string +} + +// 初始化TaobaoFenxiaoProductcatsGetAPIRequest对象 +func NewTaobaoFenxiaoProductcatsGetRequest() *TaobaoFenxiaoProductcatsGetAPIRequest{ + return &TaobaoFenxiaoProductcatsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoProductcatsGetAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.productcats.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoProductcatsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 返回字段列表 +func (r *TaobaoFenxiaoProductcatsGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoFenxiaoProductcatsGetAPIRequest) GetFields() string { + return r._fields +} diff --git a/model/fenxiao/TaobaoFenxiaoProductcatsGetAPIResponse.go b/model/fenxiao/TaobaoFenxiaoProductcatsGetAPIResponse.go new file mode 100644 index 0000000000..1341a56165 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductcatsGetAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询产品线列表 API返回值 +taobao.fenxiao.productcats.get + +查询供应商的所有产品线数据。根据登陆用户来查询,不需要其他入参 +*/ +type TaobaoFenxiaoProductcatsGetAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoProductcatsGetAPIResponseModel +} + +// 查询产品线列表 成功返回结果 +type TaobaoFenxiaoProductcatsGetAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_productcats_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果记录数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 产品线列表。返回 ProductCat 包含的字段信息。 + Productcats []ProductCat `json:"productcats,omitempty" xml:"productcats>product_cat,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoProductcatsGetResponse.go b/model/fenxiao/TaobaoFenxiaoProductcatsGetResponse.go deleted file mode 100644 index 2ea4f2a972..0000000000 --- a/model/fenxiao/TaobaoFenxiaoProductcatsGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询产品线列表 API返回值 -taobao.fenxiao.productcats.get - -查询供应商的所有产品线数据。根据登陆用户来查询,不需要其他入参 -*/ -type TaobaoFenxiaoProductcatsGetAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoProductcatsGetResponse -} - -// 查询产品线列表 成功返回结果 -type TaobaoFenxiaoProductcatsGetResponse struct { - XMLName xml.Name `xml:"fenxiao_productcats_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果记录数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 产品线列表。返回 ProductCat 包含的字段信息。 - Productcats []ProductCat `json:"productcats,omitempty" xml:"productcats>product_cat,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoProductsGetAPIRequest.go b/model/fenxiao/TaobaoFenxiaoProductsGetAPIRequest.go new file mode 100644 index 0000000000..f70665c6f8 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductsGetAPIRequest.go @@ -0,0 +1,192 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询产品列表 API请求 +taobao.fenxiao.products.get + +查询供应商的产品数据。

* 入参传入pids将优先查询,即只按这个条件查询。
*入参传入sku_number将优先查询(没有传入pids),即只按这个条件查询(最多显示50条)
* 入参fields传skus将查询sku的数据,不传该参数默认不查询,返回产品的其它信息。
* 入参fields传入images将查询多图数据,不传只返回主图数据。
* 入参fields仅对传入pids生效(只有按ID查询时,才能查询额外的数据)
* 查询结果按照产品发布时间倒序,即时间近的数据在前。 +*/ +type TaobaoFenxiaoProductsGetAPIRequest struct { + model.Params + // 商家编码 + _outerId string + // 产品线ID + _productcatId int64 + // 产品ID列表(最大限制30),用逗号分割,例如:“1001,1002,1003,1004,1005” + _pids string + // 指定查询额外的信息,可选值:skus(sku数据)、images(多图),多个可选值用逗号分割。 + _fields string + // 开始修改时间 + _startModified string + // 结束修改时间 + _endModified string + // 页码(大于0的整数,默认1) + _pageNo int64 + // 每页记录数(默认20,最大50) + _pageSize int64 + // sku商家编码 + _skuNumber string + // 查询产品列表时,查询入参“是否需要授权”
yes:需要授权
no:不需要授权 + _isAuthz string + // 可根据导入的商品ID列表查询,优先级次于产品ID、sku_numbers,高于其他分页查询条件。最大限制20,用逗号分割,例如:“1001,1002,1003,1004,1005” + _itemIds string +} + +// 初始化TaobaoFenxiaoProductsGetAPIRequest对象 +func NewTaobaoFenxiaoProductsGetRequest() *TaobaoFenxiaoProductsGetAPIRequest{ + return &TaobaoFenxiaoProductsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoProductsGetAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.products.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoProductsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterId Setter +// 商家编码 +func (r *TaobaoFenxiaoProductsGetAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoFenxiaoProductsGetAPIRequest) GetOuterId() string { + return r._outerId +} +// ProductcatId Setter +// 产品线ID +func (r *TaobaoFenxiaoProductsGetAPIRequest) SetProductcatId(_productcatId int64) error { + r._productcatId = _productcatId + r.Set("productcat_id", _productcatId) + return nil +} + +// ProductcatId Getter +func (r TaobaoFenxiaoProductsGetAPIRequest) GetProductcatId() int64 { + return r._productcatId +} +// Pids Setter +// 产品ID列表(最大限制30),用逗号分割,例如:“1001,1002,1003,1004,1005” +func (r *TaobaoFenxiaoProductsGetAPIRequest) SetPids(_pids string) error { + r._pids = _pids + r.Set("pids", _pids) + return nil +} + +// Pids Getter +func (r TaobaoFenxiaoProductsGetAPIRequest) GetPids() string { + return r._pids +} +// Fields Setter +// 指定查询额外的信息,可选值:skus(sku数据)、images(多图),多个可选值用逗号分割。 +func (r *TaobaoFenxiaoProductsGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoFenxiaoProductsGetAPIRequest) GetFields() string { + return r._fields +} +// StartModified Setter +// 开始修改时间 +func (r *TaobaoFenxiaoProductsGetAPIRequest) SetStartModified(_startModified string) error { + r._startModified = _startModified + r.Set("start_modified", _startModified) + return nil +} + +// StartModified Getter +func (r TaobaoFenxiaoProductsGetAPIRequest) GetStartModified() string { + return r._startModified +} +// EndModified Setter +// 结束修改时间 +func (r *TaobaoFenxiaoProductsGetAPIRequest) SetEndModified(_endModified string) error { + r._endModified = _endModified + r.Set("end_modified", _endModified) + return nil +} + +// EndModified Getter +func (r TaobaoFenxiaoProductsGetAPIRequest) GetEndModified() string { + return r._endModified +} +// PageNo Setter +// 页码(大于0的整数,默认1) +func (r *TaobaoFenxiaoProductsGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoFenxiaoProductsGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页记录数(默认20,最大50) +func (r *TaobaoFenxiaoProductsGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoFenxiaoProductsGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// SkuNumber Setter +// sku商家编码 +func (r *TaobaoFenxiaoProductsGetAPIRequest) SetSkuNumber(_skuNumber string) error { + r._skuNumber = _skuNumber + r.Set("sku_number", _skuNumber) + return nil +} + +// SkuNumber Getter +func (r TaobaoFenxiaoProductsGetAPIRequest) GetSkuNumber() string { + return r._skuNumber +} +// IsAuthz Setter +// 查询产品列表时,查询入参“是否需要授权”
yes:需要授权
no:不需要授权 +func (r *TaobaoFenxiaoProductsGetAPIRequest) SetIsAuthz(_isAuthz string) error { + r._isAuthz = _isAuthz + r.Set("is_authz", _isAuthz) + return nil +} + +// IsAuthz Getter +func (r TaobaoFenxiaoProductsGetAPIRequest) GetIsAuthz() string { + return r._isAuthz +} +// ItemIds Setter +// 可根据导入的商品ID列表查询,优先级次于产品ID、sku_numbers,高于其他分页查询条件。最大限制20,用逗号分割,例如:“1001,1002,1003,1004,1005” +func (r *TaobaoFenxiaoProductsGetAPIRequest) SetItemIds(_itemIds string) error { + r._itemIds = _itemIds + r.Set("item_ids", _itemIds) + return nil +} + +// ItemIds Getter +func (r TaobaoFenxiaoProductsGetAPIRequest) GetItemIds() string { + return r._itemIds +} diff --git a/model/fenxiao/TaobaoFenxiaoProductsGetAPIResponse.go b/model/fenxiao/TaobaoFenxiaoProductsGetAPIResponse.go new file mode 100644 index 0000000000..75f8ad300e --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoProductsGetAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询产品列表 API返回值 +taobao.fenxiao.products.get + +查询供应商的产品数据。

* 入参传入pids将优先查询,即只按这个条件查询。
*入参传入sku_number将优先查询(没有传入pids),即只按这个条件查询(最多显示50条)
* 入参fields传skus将查询sku的数据,不传该参数默认不查询,返回产品的其它信息。
* 入参fields传入images将查询多图数据,不传只返回主图数据。
* 入参fields仅对传入pids生效(只有按ID查询时,才能查询额外的数据)
* 查询结果按照产品发布时间倒序,即时间近的数据在前。 +*/ +type TaobaoFenxiaoProductsGetAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoProductsGetAPIResponseModel +} + +// 查询产品列表 成功返回结果 +type TaobaoFenxiaoProductsGetAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_products_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果记录数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 产品对象记录集。返回 FenxiaoProduct 包含的字段信息。 + Products []FenxiaoProduct `json:"products,omitempty" xml:"products>fenxiao_product,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoProductsGetResponse.go b/model/fenxiao/TaobaoFenxiaoProductsGetResponse.go deleted file mode 100644 index 89e9577357..0000000000 --- a/model/fenxiao/TaobaoFenxiaoProductsGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询产品列表 API返回值 -taobao.fenxiao.products.get - -查询供应商的产品数据。

* 入参传入pids将优先查询,即只按这个条件查询。
*入参传入sku_number将优先查询(没有传入pids),即只按这个条件查询(最多显示50条)
* 入参fields传skus将查询sku的数据,不传该参数默认不查询,返回产品的其它信息。
* 入参fields传入images将查询多图数据,不传只返回主图数据。
* 入参fields仅对传入pids生效(只有按ID查询时,才能查询额外的数据)
* 查询结果按照产品发布时间倒序,即时间近的数据在前。 -*/ -type TaobaoFenxiaoProductsGetAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoProductsGetResponse -} - -// 查询产品列表 成功返回结果 -type TaobaoFenxiaoProductsGetResponse struct { - XMLName xml.Name `xml:"fenxiao_products_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果记录数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 产品对象记录集。返回 FenxiaoProduct 包含的字段信息。 - Products []FenxiaoProduct `json:"products,omitempty" xml:"products>fenxiao_product,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoRefundGetAPIRequest.go b/model/fenxiao/TaobaoFenxiaoRefundGetAPIRequest.go new file mode 100644 index 0000000000..f21a99461a --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoRefundGetAPIRequest.go @@ -0,0 +1,66 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询采购单退款信息 API请求 +taobao.fenxiao.refund.get + +分销商或供应商可以查询某子单的退款信息,以及下游订单的退款信息 +*/ +type TaobaoFenxiaoRefundGetAPIRequest struct { + model.Params + // 要查询的退款子单的id + _subOrderId int64 + // 是否查询下游买家的退款信息 + _querySellerRefund bool +} + +// 初始化TaobaoFenxiaoRefundGetAPIRequest对象 +func NewTaobaoFenxiaoRefundGetRequest() *TaobaoFenxiaoRefundGetAPIRequest{ + return &TaobaoFenxiaoRefundGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoRefundGetAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.refund.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoRefundGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubOrderId Setter +// 要查询的退款子单的id +func (r *TaobaoFenxiaoRefundGetAPIRequest) SetSubOrderId(_subOrderId int64) error { + r._subOrderId = _subOrderId + r.Set("sub_order_id", _subOrderId) + return nil +} + +// SubOrderId Getter +func (r TaobaoFenxiaoRefundGetAPIRequest) GetSubOrderId() int64 { + return r._subOrderId +} +// QuerySellerRefund Setter +// 是否查询下游买家的退款信息 +func (r *TaobaoFenxiaoRefundGetAPIRequest) SetQuerySellerRefund(_querySellerRefund bool) error { + r._querySellerRefund = _querySellerRefund + r.Set("query_seller_refund", _querySellerRefund) + return nil +} + +// QuerySellerRefund Getter +func (r TaobaoFenxiaoRefundGetAPIRequest) GetQuerySellerRefund() bool { + return r._querySellerRefund +} diff --git a/model/fenxiao/TaobaoFenxiaoRefundGetAPIResponse.go b/model/fenxiao/TaobaoFenxiaoRefundGetAPIResponse.go new file mode 100644 index 0000000000..556c230b1c --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoRefundGetAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询采购单退款信息 API返回值 +taobao.fenxiao.refund.get + +分销商或供应商可以查询某子单的退款信息,以及下游订单的退款信息 +*/ +type TaobaoFenxiaoRefundGetAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoRefundGetAPIResponseModel +} + +// 查询采购单退款信息 成功返回结果 +type TaobaoFenxiaoRefundGetAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_refund_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 退款详情 + RefundDetail *RefundDetail `json:"refund_detail,omitempty" xml:"refund_detail,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoRefundGetResponse.go b/model/fenxiao/TaobaoFenxiaoRefundGetResponse.go deleted file mode 100644 index 8446d54399..0000000000 --- a/model/fenxiao/TaobaoFenxiaoRefundGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询采购单退款信息 API返回值 -taobao.fenxiao.refund.get - -分销商或供应商可以查询某子单的退款信息,以及下游订单的退款信息 -*/ -type TaobaoFenxiaoRefundGetAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoRefundGetResponse -} - -// 查询采购单退款信息 成功返回结果 -type TaobaoFenxiaoRefundGetResponse struct { - XMLName xml.Name `xml:"fenxiao_refund_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 退款详情 - RefundDetail *RefundDetail `json:"refund_detail,omitempty" xml:"refund_detail,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoRefundQueryAPIRequest.go b/model/fenxiao/TaobaoFenxiaoRefundQueryAPIRequest.go new file mode 100644 index 0000000000..21a845384b --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoRefundQueryAPIRequest.go @@ -0,0 +1,150 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询采购退款 API请求 +taobao.fenxiao.refund.query + +供应商按查询条件批量查询代销采购退款 +*/ +type TaobaoFenxiaoRefundQueryAPIRequest struct { + model.Params + // 代销采购退款单最早修改时间 + _startDate string + // 代销采购退款最迟修改时间。与start_date的最大时间间隔不能超过30天 + _endDate string + // 页码(大于0的整数。无值或小于1的值按默认值1计) + _pageNo int64 + // 每页条数(大于0但小于等于50的整数。无值或大于50或小于1的值按默认值50计) + _pageSize int64 + // 是否查询下游买家的退款信息 + _querySellerRefund bool + // 渠道code,可批量 老供销渠道:999 + _tradeTypes []int64 + // 角色,供应商:2,分销商:1 + _userRoleType int64 + // 代销:1 经销:2 寄售(猫超自营寄售):5 平台寄售:6 + _channelCodes []int64 +} + +// 初始化TaobaoFenxiaoRefundQueryAPIRequest对象 +func NewTaobaoFenxiaoRefundQueryRequest() *TaobaoFenxiaoRefundQueryAPIRequest{ + return &TaobaoFenxiaoRefundQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoRefundQueryAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.refund.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoRefundQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartDate Setter +// 代销采购退款单最早修改时间 +func (r *TaobaoFenxiaoRefundQueryAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoFenxiaoRefundQueryAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 代销采购退款最迟修改时间。与start_date的最大时间间隔不能超过30天 +func (r *TaobaoFenxiaoRefundQueryAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoFenxiaoRefundQueryAPIRequest) GetEndDate() string { + return r._endDate +} +// PageNo Setter +// 页码(大于0的整数。无值或小于1的值按默认值1计) +func (r *TaobaoFenxiaoRefundQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoFenxiaoRefundQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数(大于0但小于等于50的整数。无值或大于50或小于1的值按默认值50计) +func (r *TaobaoFenxiaoRefundQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoFenxiaoRefundQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// QuerySellerRefund Setter +// 是否查询下游买家的退款信息 +func (r *TaobaoFenxiaoRefundQueryAPIRequest) SetQuerySellerRefund(_querySellerRefund bool) error { + r._querySellerRefund = _querySellerRefund + r.Set("query_seller_refund", _querySellerRefund) + return nil +} + +// QuerySellerRefund Getter +func (r TaobaoFenxiaoRefundQueryAPIRequest) GetQuerySellerRefund() bool { + return r._querySellerRefund +} +// TradeTypes Setter +// 渠道code,可批量 老供销渠道:999 +func (r *TaobaoFenxiaoRefundQueryAPIRequest) SetTradeTypes(_tradeTypes []int64) error { + r._tradeTypes = _tradeTypes + r.Set("trade_types", _tradeTypes) + return nil +} + +// TradeTypes Getter +func (r TaobaoFenxiaoRefundQueryAPIRequest) GetTradeTypes() []int64 { + return r._tradeTypes +} +// UserRoleType Setter +// 角色,供应商:2,分销商:1 +func (r *TaobaoFenxiaoRefundQueryAPIRequest) SetUserRoleType(_userRoleType int64) error { + r._userRoleType = _userRoleType + r.Set("user_role_type", _userRoleType) + return nil +} + +// UserRoleType Getter +func (r TaobaoFenxiaoRefundQueryAPIRequest) GetUserRoleType() int64 { + return r._userRoleType +} +// ChannelCodes Setter +// 代销:1 经销:2 寄售(猫超自营寄售):5 平台寄售:6 +func (r *TaobaoFenxiaoRefundQueryAPIRequest) SetChannelCodes(_channelCodes []int64) error { + r._channelCodes = _channelCodes + r.Set("channel_codes", _channelCodes) + return nil +} + +// ChannelCodes Getter +func (r TaobaoFenxiaoRefundQueryAPIRequest) GetChannelCodes() []int64 { + return r._channelCodes +} diff --git a/model/fenxiao/TaobaoFenxiaoRefundQueryAPIResponse.go b/model/fenxiao/TaobaoFenxiaoRefundQueryAPIResponse.go new file mode 100644 index 0000000000..172420ed6c --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoRefundQueryAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询采购退款 API返回值 +taobao.fenxiao.refund.query + +供应商按查询条件批量查询代销采购退款 +*/ +type TaobaoFenxiaoRefundQueryAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoRefundQueryAPIResponseModel +} + +// 批量查询采购退款 成功返回结果 +type TaobaoFenxiaoRefundQueryAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_refund_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 按查询条件查到的记录总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 代销采购退款列表 + RefundList []RefundDetail `json:"refund_list,omitempty" xml:"refund_list>refund_detail,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoRefundQueryResponse.go b/model/fenxiao/TaobaoFenxiaoRefundQueryResponse.go deleted file mode 100644 index c7902e837b..0000000000 --- a/model/fenxiao/TaobaoFenxiaoRefundQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量查询采购退款 API返回值 -taobao.fenxiao.refund.query - -供应商按查询条件批量查询代销采购退款 -*/ -type TaobaoFenxiaoRefundQueryAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoRefundQueryResponse -} - -// 批量查询采购退款 成功返回结果 -type TaobaoFenxiaoRefundQueryResponse struct { - XMLName xml.Name `xml:"fenxiao_refund_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 按查询条件查到的记录总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 代销采购退款列表 - RefundList []RefundDetail `json:"refund_list,omitempty" xml:"refund_list>refund_detail,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoRequisitionsGetAPIRequest.go b/model/fenxiao/TaobaoFenxiaoRequisitionsGetAPIRequest.go new file mode 100644 index 0000000000..a8bd799e5a --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoRequisitionsGetAPIRequest.go @@ -0,0 +1,108 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +合作申请查询 API请求 +taobao.fenxiao.requisitions.get + +合作申请查询 +*/ +type TaobaoFenxiaoRequisitionsGetAPIRequest struct { + model.Params + // 申请状态(1-申请中、2-成功、3-被退回、4-已撤消、5-过期) + _status int64 + // 申请开始时间yyyy-MM-dd + _applyStart string + // 申请结束时间yyyy-MM-dd + _applyEnd string + // 页码(大于0的整数,默认1) + _pageNo int64 + // 每页记录数(默认20,最大50) + _pageSize int64 +} + +// 初始化TaobaoFenxiaoRequisitionsGetAPIRequest对象 +func NewTaobaoFenxiaoRequisitionsGetRequest() *TaobaoFenxiaoRequisitionsGetAPIRequest{ + return &TaobaoFenxiaoRequisitionsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoRequisitionsGetAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.requisitions.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoRequisitionsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Status Setter +// 申请状态(1-申请中、2-成功、3-被退回、4-已撤消、5-过期) +func (r *TaobaoFenxiaoRequisitionsGetAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoFenxiaoRequisitionsGetAPIRequest) GetStatus() int64 { + return r._status +} +// ApplyStart Setter +// 申请开始时间yyyy-MM-dd +func (r *TaobaoFenxiaoRequisitionsGetAPIRequest) SetApplyStart(_applyStart string) error { + r._applyStart = _applyStart + r.Set("apply_start", _applyStart) + return nil +} + +// ApplyStart Getter +func (r TaobaoFenxiaoRequisitionsGetAPIRequest) GetApplyStart() string { + return r._applyStart +} +// ApplyEnd Setter +// 申请结束时间yyyy-MM-dd +func (r *TaobaoFenxiaoRequisitionsGetAPIRequest) SetApplyEnd(_applyEnd string) error { + r._applyEnd = _applyEnd + r.Set("apply_end", _applyEnd) + return nil +} + +// ApplyEnd Getter +func (r TaobaoFenxiaoRequisitionsGetAPIRequest) GetApplyEnd() string { + return r._applyEnd +} +// PageNo Setter +// 页码(大于0的整数,默认1) +func (r *TaobaoFenxiaoRequisitionsGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoFenxiaoRequisitionsGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页记录数(默认20,最大50) +func (r *TaobaoFenxiaoRequisitionsGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoFenxiaoRequisitionsGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/fenxiao/TaobaoFenxiaoRequisitionsGetAPIResponse.go b/model/fenxiao/TaobaoFenxiaoRequisitionsGetAPIResponse.go new file mode 100644 index 0000000000..519a290290 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoRequisitionsGetAPIResponse.go @@ -0,0 +1,31 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +合作申请查询 API返回值 +taobao.fenxiao.requisitions.get + +合作申请查询 +*/ +type TaobaoFenxiaoRequisitionsGetAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoRequisitionsGetAPIResponseModel +} + +// 合作申请查询 成功返回结果 +type TaobaoFenxiaoRequisitionsGetAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_requisitions_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 结果记录数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 合作申请 + Requisitions []Requisition `json:"requisitions,omitempty" xml:"requisitions>requisition,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoRequisitionsGetResponse.go b/model/fenxiao/TaobaoFenxiaoRequisitionsGetResponse.go deleted file mode 100644 index 0c4f9901b5..0000000000 --- a/model/fenxiao/TaobaoFenxiaoRequisitionsGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -合作申请查询 API返回值 -taobao.fenxiao.requisitions.get - -合作申请查询 -*/ -type TaobaoFenxiaoRequisitionsGetAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoRequisitionsGetResponse -} - -// 合作申请查询 成功返回结果 -type TaobaoFenxiaoRequisitionsGetResponse struct { - XMLName xml.Name `xml:"fenxiao_requisitions_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 结果记录数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 合作申请 - Requisitions []Requisition `json:"requisitions,omitempty" xml:"requisitions>requisition,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoTradePrepayOfflineAddAPIRequest.go b/model/fenxiao/TaobaoFenxiaoTradePrepayOfflineAddAPIRequest.go new file mode 100644 index 0000000000..b62a3b5aeb --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoTradePrepayOfflineAddAPIRequest.go @@ -0,0 +1,52 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线下预存款流水增加 API请求 +taobao.fenxiao.trade.prepay.offline.add + +渠道分销供应商上传线下流水预存款(增加) +*/ +type TaobaoFenxiaoTradePrepayOfflineAddAPIRequest struct { + model.Params + // 增加流水 + _offlineAddPrepayParam *TopOfflineAddPrepayDto +} + +// 初始化TaobaoFenxiaoTradePrepayOfflineAddAPIRequest对象 +func NewTaobaoFenxiaoTradePrepayOfflineAddRequest() *TaobaoFenxiaoTradePrepayOfflineAddAPIRequest{ + return &TaobaoFenxiaoTradePrepayOfflineAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoTradePrepayOfflineAddAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.trade.prepay.offline.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoTradePrepayOfflineAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OfflineAddPrepayParam Setter +// 增加流水 +func (r *TaobaoFenxiaoTradePrepayOfflineAddAPIRequest) SetOfflineAddPrepayParam(_offlineAddPrepayParam *TopOfflineAddPrepayDto) error { + r._offlineAddPrepayParam = _offlineAddPrepayParam + r.Set("offline_add_prepay_param", _offlineAddPrepayParam) + return nil +} + +// OfflineAddPrepayParam Getter +func (r TaobaoFenxiaoTradePrepayOfflineAddAPIRequest) GetOfflineAddPrepayParam() *TopOfflineAddPrepayDto { + return r._offlineAddPrepayParam +} diff --git a/model/fenxiao/TaobaoFenxiaoTradePrepayOfflineAddAPIResponse.go b/model/fenxiao/TaobaoFenxiaoTradePrepayOfflineAddAPIResponse.go new file mode 100644 index 0000000000..f4460c03a7 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoTradePrepayOfflineAddAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线下预存款流水增加 API返回值 +taobao.fenxiao.trade.prepay.offline.add + +渠道分销供应商上传线下流水预存款(增加) +*/ +type TaobaoFenxiaoTradePrepayOfflineAddAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoTradePrepayOfflineAddAPIResponseModel +} + +// 线下预存款流水增加 成功返回结果 +type TaobaoFenxiaoTradePrepayOfflineAddAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_trade_prepay_offline_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultTopDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoTradePrepayOfflineAddResponse.go b/model/fenxiao/TaobaoFenxiaoTradePrepayOfflineAddResponse.go deleted file mode 100644 index b42d329ad1..0000000000 --- a/model/fenxiao/TaobaoFenxiaoTradePrepayOfflineAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线下预存款流水增加 API返回值 -taobao.fenxiao.trade.prepay.offline.add - -渠道分销供应商上传线下流水预存款(增加) -*/ -type TaobaoFenxiaoTradePrepayOfflineAddAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoTradePrepayOfflineAddResponse -} - -// 线下预存款流水增加 成功返回结果 -type TaobaoFenxiaoTradePrepayOfflineAddResponse struct { - XMLName xml.Name `xml:"fenxiao_trade_prepay_offline_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultTopDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fenxiao/TaobaoFenxiaoTradePrepayOfflineReduceAPIRequest.go b/model/fenxiao/TaobaoFenxiaoTradePrepayOfflineReduceAPIRequest.go new file mode 100644 index 0000000000..d1f5489ea9 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoTradePrepayOfflineReduceAPIRequest.go @@ -0,0 +1,52 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道分销供应商上传线下流水预存款(减少) API请求 +taobao.fenxiao.trade.prepay.offline.reduce + +渠道分销供应商上传线下流水预存款(减少) +*/ +type TaobaoFenxiaoTradePrepayOfflineReduceAPIRequest struct { + model.Params + // 减少流水 + _offlineReducePrepayParam *TopOfflineReducePrepayDto +} + +// 初始化TaobaoFenxiaoTradePrepayOfflineReduceAPIRequest对象 +func NewTaobaoFenxiaoTradePrepayOfflineReduceRequest() *TaobaoFenxiaoTradePrepayOfflineReduceAPIRequest{ + return &TaobaoFenxiaoTradePrepayOfflineReduceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFenxiaoTradePrepayOfflineReduceAPIRequest) GetApiMethodName() string { + return "taobao.fenxiao.trade.prepay.offline.reduce" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFenxiaoTradePrepayOfflineReduceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OfflineReducePrepayParam Setter +// 减少流水 +func (r *TaobaoFenxiaoTradePrepayOfflineReduceAPIRequest) SetOfflineReducePrepayParam(_offlineReducePrepayParam *TopOfflineReducePrepayDto) error { + r._offlineReducePrepayParam = _offlineReducePrepayParam + r.Set("offline_reduce_prepay_param", _offlineReducePrepayParam) + return nil +} + +// OfflineReducePrepayParam Getter +func (r TaobaoFenxiaoTradePrepayOfflineReduceAPIRequest) GetOfflineReducePrepayParam() *TopOfflineReducePrepayDto { + return r._offlineReducePrepayParam +} diff --git a/model/fenxiao/TaobaoFenxiaoTradePrepayOfflineReduceAPIResponse.go b/model/fenxiao/TaobaoFenxiaoTradePrepayOfflineReduceAPIResponse.go new file mode 100644 index 0000000000..71a902af58 --- /dev/null +++ b/model/fenxiao/TaobaoFenxiaoTradePrepayOfflineReduceAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道分销供应商上传线下流水预存款(减少) API返回值 +taobao.fenxiao.trade.prepay.offline.reduce + +渠道分销供应商上传线下流水预存款(减少) +*/ +type TaobaoFenxiaoTradePrepayOfflineReduceAPIResponse struct { + model.CommonResponse + TaobaoFenxiaoTradePrepayOfflineReduceAPIResponseModel +} + +// 渠道分销供应商上传线下流水预存款(减少) 成功返回结果 +type TaobaoFenxiaoTradePrepayOfflineReduceAPIResponseModel struct { + XMLName xml.Name `xml:"fenxiao_trade_prepay_offline_reduce_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultTopDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fenxiao/TaobaoFenxiaoTradePrepayOfflineReduceResponse.go b/model/fenxiao/TaobaoFenxiaoTradePrepayOfflineReduceResponse.go deleted file mode 100644 index 53da9deaf4..0000000000 --- a/model/fenxiao/TaobaoFenxiaoTradePrepayOfflineReduceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -渠道分销供应商上传线下流水预存款(减少) API返回值 -taobao.fenxiao.trade.prepay.offline.reduce - -渠道分销供应商上传线下流水预存款(减少) -*/ -type TaobaoFenxiaoTradePrepayOfflineReduceAPIResponse struct { - model.CommonResponse - TaobaoFenxiaoTradePrepayOfflineReduceResponse -} - -// 渠道分销供应商上传线下流水预存款(减少) 成功返回结果 -type TaobaoFenxiaoTradePrepayOfflineReduceResponse struct { - XMLName xml.Name `xml:"fenxiao_trade_prepay_offline_reduce_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultTopDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fenxiao/TaobaoInventoryAdjustExternalAPIRequest.go b/model/fenxiao/TaobaoInventoryAdjustExternalAPIRequest.go new file mode 100644 index 0000000000..8ab35daa74 --- /dev/null +++ b/model/fenxiao/TaobaoInventoryAdjustExternalAPIRequest.go @@ -0,0 +1,151 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +非交易库存调整单 API请求 +taobao.inventory.adjust.external + +建议使用新接口:taobao.inventory.merchant.adjust ,该接口会逐步停用。 +商家非交易调整库存,调拨出库、盘点等时调用 +*/ +type TaobaoInventoryAdjustExternalAPIRequest struct { + model.Params + // test + _reduceType string + // 外部订单类型, BALANCE:盘点、NON_TAOBAO_TRADE:非淘宝交易、ALLOCATE:调拨、OTHERS:其他 + _bizType string + // test + _operateType string + // 商家外部定单号 + _bizUniqueCode string + // 商品初始库存信息: [{"scItemId":"商品后端ID,如果有传scItemCode,参数可以为0","scItemCode":"商品商家编码","inventoryType":"库存类型 1:正常,”direction”: 1: 盘盈 -1: 盘亏,参数可选,"quantity":"数量(正数)"}] + _items string + // 库存占用返回的操作码.operate_type 为OUTBOUND时,如果是确认事先进行过的库存占用,需要传入当时返回的操作码,并且明细必须与申请时保持一致 + _occupyOperateCode string + // 业务操作时间 + _operateTime string + // 商家仓库编码 + _storeCode string +} + +// 初始化TaobaoInventoryAdjustExternalAPIRequest对象 +func NewTaobaoInventoryAdjustExternalRequest() *TaobaoInventoryAdjustExternalAPIRequest{ + return &TaobaoInventoryAdjustExternalAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoInventoryAdjustExternalAPIRequest) GetApiMethodName() string { + return "taobao.inventory.adjust.external" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoInventoryAdjustExternalAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReduceType Setter +// test +func (r *TaobaoInventoryAdjustExternalAPIRequest) SetReduceType(_reduceType string) error { + r._reduceType = _reduceType + r.Set("reduce_type", _reduceType) + return nil +} + +// ReduceType Getter +func (r TaobaoInventoryAdjustExternalAPIRequest) GetReduceType() string { + return r._reduceType +} +// BizType Setter +// 外部订单类型, BALANCE:盘点、NON_TAOBAO_TRADE:非淘宝交易、ALLOCATE:调拨、OTHERS:其他 +func (r *TaobaoInventoryAdjustExternalAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TaobaoInventoryAdjustExternalAPIRequest) GetBizType() string { + return r._bizType +} +// OperateType Setter +// test +func (r *TaobaoInventoryAdjustExternalAPIRequest) SetOperateType(_operateType string) error { + r._operateType = _operateType + r.Set("operate_type", _operateType) + return nil +} + +// OperateType Getter +func (r TaobaoInventoryAdjustExternalAPIRequest) GetOperateType() string { + return r._operateType +} +// BizUniqueCode Setter +// 商家外部定单号 +func (r *TaobaoInventoryAdjustExternalAPIRequest) SetBizUniqueCode(_bizUniqueCode string) error { + r._bizUniqueCode = _bizUniqueCode + r.Set("biz_unique_code", _bizUniqueCode) + return nil +} + +// BizUniqueCode Getter +func (r TaobaoInventoryAdjustExternalAPIRequest) GetBizUniqueCode() string { + return r._bizUniqueCode +} +// Items Setter +// 商品初始库存信息: [{"scItemId":"商品后端ID,如果有传scItemCode,参数可以为0","scItemCode":"商品商家编码","inventoryType":"库存类型 1:正常,”direction”: 1: 盘盈 -1: 盘亏,参数可选,"quantity":"数量(正数)"}] +func (r *TaobaoInventoryAdjustExternalAPIRequest) SetItems(_items string) error { + r._items = _items + r.Set("items", _items) + return nil +} + +// Items Getter +func (r TaobaoInventoryAdjustExternalAPIRequest) GetItems() string { + return r._items +} +// OccupyOperateCode Setter +// 库存占用返回的操作码.operate_type 为OUTBOUND时,如果是确认事先进行过的库存占用,需要传入当时返回的操作码,并且明细必须与申请时保持一致 +func (r *TaobaoInventoryAdjustExternalAPIRequest) SetOccupyOperateCode(_occupyOperateCode string) error { + r._occupyOperateCode = _occupyOperateCode + r.Set("occupy_operate_code", _occupyOperateCode) + return nil +} + +// OccupyOperateCode Getter +func (r TaobaoInventoryAdjustExternalAPIRequest) GetOccupyOperateCode() string { + return r._occupyOperateCode +} +// OperateTime Setter +// 业务操作时间 +func (r *TaobaoInventoryAdjustExternalAPIRequest) SetOperateTime(_operateTime string) error { + r._operateTime = _operateTime + r.Set("operate_time", _operateTime) + return nil +} + +// OperateTime Getter +func (r TaobaoInventoryAdjustExternalAPIRequest) GetOperateTime() string { + return r._operateTime +} +// StoreCode Setter +// 商家仓库编码 +func (r *TaobaoInventoryAdjustExternalAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoInventoryAdjustExternalAPIRequest) GetStoreCode() string { + return r._storeCode +} diff --git a/model/fenxiao/TaobaoInventoryAdjustExternalAPIResponse.go b/model/fenxiao/TaobaoInventoryAdjustExternalAPIResponse.go new file mode 100644 index 0000000000..55a7b77b9e --- /dev/null +++ b/model/fenxiao/TaobaoInventoryAdjustExternalAPIResponse.go @@ -0,0 +1,30 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +非交易库存调整单 API返回值 +taobao.inventory.adjust.external + +建议使用新接口:taobao.inventory.merchant.adjust ,该接口会逐步停用。 +商家非交易调整库存,调拨出库、盘点等时调用 +*/ +type TaobaoInventoryAdjustExternalAPIResponse struct { + model.CommonResponse + TaobaoInventoryAdjustExternalAPIResponseModel +} + +// 非交易库存调整单 成功返回结果 +type TaobaoInventoryAdjustExternalAPIResponseModel struct { + XMLName xml.Name `xml:"inventory_adjust_external_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作返回码 + OperateCode string `json:"operate_code,omitempty" xml:"operate_code,omitempty"` + // 提示信息 + TipInfos []TipInfo `json:"tip_infos,omitempty" xml:"tip_infos>tip_info,omitempty"` +} diff --git a/model/fenxiao/TaobaoInventoryAdjustExternalResponse.go b/model/fenxiao/TaobaoInventoryAdjustExternalResponse.go deleted file mode 100644 index 5d51e73832..0000000000 --- a/model/fenxiao/TaobaoInventoryAdjustExternalResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -非交易库存调整单 API返回值 -taobao.inventory.adjust.external - -建议使用新接口:taobao.inventory.merchant.adjust ,该接口会逐步停用。 -商家非交易调整库存,调拨出库、盘点等时调用 -*/ -type TaobaoInventoryAdjustExternalAPIResponse struct { - model.CommonResponse - TaobaoInventoryAdjustExternalResponse -} - -// 非交易库存调整单 成功返回结果 -type TaobaoInventoryAdjustExternalResponse struct { - XMLName xml.Name `xml:"inventory_adjust_external_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作返回码 - OperateCode string `json:"operate_code,omitempty" xml:"operate_code,omitempty"` - // 提示信息 - TipInfos []TipInfo `json:"tip_infos,omitempty" xml:"tip_infos>tip_info,omitempty"` -} diff --git a/model/fenxiao/TaobaoInventoryAdjustTradeAPIRequest.go b/model/fenxiao/TaobaoInventoryAdjustTradeAPIRequest.go new file mode 100644 index 0000000000..a1f49a6666 --- /dev/null +++ b/model/fenxiao/TaobaoInventoryAdjustTradeAPIRequest.go @@ -0,0 +1,94 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +交易库存调整单 API请求 +taobao.inventory.adjust.trade + +商家交易调整库存,淘宝交易、B2B经销等 +*/ +type TaobaoInventoryAdjustTradeAPIRequest struct { + model.Params + // 订单类型:B2C、B2B + _tbOrderType string + // 业务操作时间 + _operateTime string + // 商家外部定单号 + _bizUniqueCode string + // 商品初始库存信息: [{ "TBOrderCode”:”淘宝交易号”,"TBSubOrderCode ":"淘宝子交易单号,赠品可以不填","”isGift”:”TRUE或者FALSE,是否赠品”,storeCode":"商家仓库编码"," scItemId ":"商品后端ID","scItemCode":"商品商家编码"," originScItemId ":"原商品ID","inventoryType":"","quantity":"111","isComplete":"TRUE或者FALSE,是否全部确认出库"}] + _items string +} + +// 初始化TaobaoInventoryAdjustTradeAPIRequest对象 +func NewTaobaoInventoryAdjustTradeRequest() *TaobaoInventoryAdjustTradeAPIRequest{ + return &TaobaoInventoryAdjustTradeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoInventoryAdjustTradeAPIRequest) GetApiMethodName() string { + return "taobao.inventory.adjust.trade" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoInventoryAdjustTradeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TbOrderType Setter +// 订单类型:B2C、B2B +func (r *TaobaoInventoryAdjustTradeAPIRequest) SetTbOrderType(_tbOrderType string) error { + r._tbOrderType = _tbOrderType + r.Set("tb_order_type", _tbOrderType) + return nil +} + +// TbOrderType Getter +func (r TaobaoInventoryAdjustTradeAPIRequest) GetTbOrderType() string { + return r._tbOrderType +} +// OperateTime Setter +// 业务操作时间 +func (r *TaobaoInventoryAdjustTradeAPIRequest) SetOperateTime(_operateTime string) error { + r._operateTime = _operateTime + r.Set("operate_time", _operateTime) + return nil +} + +// OperateTime Getter +func (r TaobaoInventoryAdjustTradeAPIRequest) GetOperateTime() string { + return r._operateTime +} +// BizUniqueCode Setter +// 商家外部定单号 +func (r *TaobaoInventoryAdjustTradeAPIRequest) SetBizUniqueCode(_bizUniqueCode string) error { + r._bizUniqueCode = _bizUniqueCode + r.Set("biz_unique_code", _bizUniqueCode) + return nil +} + +// BizUniqueCode Getter +func (r TaobaoInventoryAdjustTradeAPIRequest) GetBizUniqueCode() string { + return r._bizUniqueCode +} +// Items Setter +// 商品初始库存信息: [{ "TBOrderCode”:”淘宝交易号”,"TBSubOrderCode ":"淘宝子交易单号,赠品可以不填","”isGift”:”TRUE或者FALSE,是否赠品”,storeCode":"商家仓库编码"," scItemId ":"商品后端ID","scItemCode":"商品商家编码"," originScItemId ":"原商品ID","inventoryType":"","quantity":"111","isComplete":"TRUE或者FALSE,是否全部确认出库"}] +func (r *TaobaoInventoryAdjustTradeAPIRequest) SetItems(_items string) error { + r._items = _items + r.Set("items", _items) + return nil +} + +// Items Getter +func (r TaobaoInventoryAdjustTradeAPIRequest) GetItems() string { + return r._items +} diff --git a/model/fenxiao/TaobaoInventoryAdjustTradeAPIResponse.go b/model/fenxiao/TaobaoInventoryAdjustTradeAPIResponse.go new file mode 100644 index 0000000000..72621bfae6 --- /dev/null +++ b/model/fenxiao/TaobaoInventoryAdjustTradeAPIResponse.go @@ -0,0 +1,29 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +交易库存调整单 API返回值 +taobao.inventory.adjust.trade + +商家交易调整库存,淘宝交易、B2B经销等 +*/ +type TaobaoInventoryAdjustTradeAPIResponse struct { + model.CommonResponse + TaobaoInventoryAdjustTradeAPIResponseModel +} + +// 交易库存调整单 成功返回结果 +type TaobaoInventoryAdjustTradeAPIResponseModel struct { + XMLName xml.Name `xml:"inventory_adjust_trade_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作返回码 + OperateCode string `json:"operate_code,omitempty" xml:"operate_code,omitempty"` + // 提示信息 + TipInfos []TipInfo `json:"tip_infos,omitempty" xml:"tip_infos>tip_info,omitempty"` +} diff --git a/model/fenxiao/TaobaoInventoryAdjustTradeResponse.go b/model/fenxiao/TaobaoInventoryAdjustTradeResponse.go deleted file mode 100644 index 0413be956c..0000000000 --- a/model/fenxiao/TaobaoInventoryAdjustTradeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -交易库存调整单 API返回值 -taobao.inventory.adjust.trade - -商家交易调整库存,淘宝交易、B2B经销等 -*/ -type TaobaoInventoryAdjustTradeAPIResponse struct { - model.CommonResponse - TaobaoInventoryAdjustTradeResponse -} - -// 交易库存调整单 成功返回结果 -type TaobaoInventoryAdjustTradeResponse struct { - XMLName xml.Name `xml:"inventory_adjust_trade_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作返回码 - OperateCode string `json:"operate_code,omitempty" xml:"operate_code,omitempty"` - // 提示信息 - TipInfos []TipInfo `json:"tip_infos,omitempty" xml:"tip_infos>tip_info,omitempty"` -} diff --git a/model/fenxiao/TaobaoInventoryInitialAPIRequest.go b/model/fenxiao/TaobaoInventoryInitialAPIRequest.go new file mode 100644 index 0000000000..076a0e7910 --- /dev/null +++ b/model/fenxiao/TaobaoInventoryInitialAPIRequest.go @@ -0,0 +1,67 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +库存初始化 API请求 +taobao.inventory.initial + +建议使用新接口:taobao.inventory.merchant.adjust ,该接口会逐步停用。 +商家仓库存初始化接口,直接按照商家指定的商品库存数进行填充,没有单据核对,不参与库存对账。 +*/ +type TaobaoInventoryInitialAPIRequest struct { + model.Params + // 商家仓库编码 + _storeCode string + // 商品初始库存信息: [{"scItemId":"商品后端ID,如果有传scItemCode,参数可以为0","scItemCode":"商品商家编码","inventoryType":"库存类型 1:正常,2:损坏,3:冻结,10:质押,11-20:用户自定义","quantity":"数量"}] + _items string +} + +// 初始化TaobaoInventoryInitialAPIRequest对象 +func NewTaobaoInventoryInitialRequest() *TaobaoInventoryInitialAPIRequest{ + return &TaobaoInventoryInitialAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoInventoryInitialAPIRequest) GetApiMethodName() string { + return "taobao.inventory.initial" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoInventoryInitialAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreCode Setter +// 商家仓库编码 +func (r *TaobaoInventoryInitialAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoInventoryInitialAPIRequest) GetStoreCode() string { + return r._storeCode +} +// Items Setter +// 商品初始库存信息: [{"scItemId":"商品后端ID,如果有传scItemCode,参数可以为0","scItemCode":"商品商家编码","inventoryType":"库存类型 1:正常,2:损坏,3:冻结,10:质押,11-20:用户自定义","quantity":"数量"}] +func (r *TaobaoInventoryInitialAPIRequest) SetItems(_items string) error { + r._items = _items + r.Set("items", _items) + return nil +} + +// Items Getter +func (r TaobaoInventoryInitialAPIRequest) GetItems() string { + return r._items +} diff --git a/model/fenxiao/TaobaoInventoryInitialAPIResponse.go b/model/fenxiao/TaobaoInventoryInitialAPIResponse.go new file mode 100644 index 0000000000..ab966d241a --- /dev/null +++ b/model/fenxiao/TaobaoInventoryInitialAPIResponse.go @@ -0,0 +1,28 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +库存初始化 API返回值 +taobao.inventory.initial + +建议使用新接口:taobao.inventory.merchant.adjust ,该接口会逐步停用。 +商家仓库存初始化接口,直接按照商家指定的商品库存数进行填充,没有单据核对,不参与库存对账。 +*/ +type TaobaoInventoryInitialAPIResponse struct { + model.CommonResponse + TaobaoInventoryInitialAPIResponseModel +} + +// 库存初始化 成功返回结果 +type TaobaoInventoryInitialAPIResponseModel struct { + XMLName xml.Name `xml:"inventory_initial_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 提示信息 + TipInfos []TipInfo `json:"tip_infos,omitempty" xml:"tip_infos>tip_info,omitempty"` +} diff --git a/model/fenxiao/TaobaoInventoryInitialItemAPIRequest.go b/model/fenxiao/TaobaoInventoryInitialItemAPIRequest.go new file mode 100644 index 0000000000..011a24c83e --- /dev/null +++ b/model/fenxiao/TaobaoInventoryInitialItemAPIRequest.go @@ -0,0 +1,67 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品库存初始化 API请求 +taobao.inventory.initial.item + +建议使用新接口:taobao.inventory.merchant.adjust ,该接口会逐步停用。 +商家仓商品初始化在各个仓中库存 +*/ +type TaobaoInventoryInitialItemAPIRequest struct { + model.Params + // 后端商品id + _scItemId int64 + // 商品初始库存信息: [{"storeCode":"必选,商家仓库编号","inventoryType":"可选,库存类型 1:正常,2:损坏,3:冻结,10:质押,11-20:用户自定义,默认为1","quantity":"必选,数量"}] + _storeInventorys string +} + +// 初始化TaobaoInventoryInitialItemAPIRequest对象 +func NewTaobaoInventoryInitialItemRequest() *TaobaoInventoryInitialItemAPIRequest{ + return &TaobaoInventoryInitialItemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoInventoryInitialItemAPIRequest) GetApiMethodName() string { + return "taobao.inventory.initial.item" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoInventoryInitialItemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ScItemId Setter +// 后端商品id +func (r *TaobaoInventoryInitialItemAPIRequest) SetScItemId(_scItemId int64) error { + r._scItemId = _scItemId + r.Set("sc_item_id", _scItemId) + return nil +} + +// ScItemId Getter +func (r TaobaoInventoryInitialItemAPIRequest) GetScItemId() int64 { + return r._scItemId +} +// StoreInventorys Setter +// 商品初始库存信息: [{"storeCode":"必选,商家仓库编号","inventoryType":"可选,库存类型 1:正常,2:损坏,3:冻结,10:质押,11-20:用户自定义,默认为1","quantity":"必选,数量"}] +func (r *TaobaoInventoryInitialItemAPIRequest) SetStoreInventorys(_storeInventorys string) error { + r._storeInventorys = _storeInventorys + r.Set("store_inventorys", _storeInventorys) + return nil +} + +// StoreInventorys Getter +func (r TaobaoInventoryInitialItemAPIRequest) GetStoreInventorys() string { + return r._storeInventorys +} diff --git a/model/fenxiao/TaobaoInventoryInitialItemAPIResponse.go b/model/fenxiao/TaobaoInventoryInitialItemAPIResponse.go new file mode 100644 index 0000000000..687c7d4c89 --- /dev/null +++ b/model/fenxiao/TaobaoInventoryInitialItemAPIResponse.go @@ -0,0 +1,28 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品库存初始化 API返回值 +taobao.inventory.initial.item + +建议使用新接口:taobao.inventory.merchant.adjust ,该接口会逐步停用。 +商家仓商品初始化在各个仓中库存 +*/ +type TaobaoInventoryInitialItemAPIResponse struct { + model.CommonResponse + TaobaoInventoryInitialItemAPIResponseModel +} + +// 商品库存初始化 成功返回结果 +type TaobaoInventoryInitialItemAPIResponseModel struct { + XMLName xml.Name `xml:"inventory_initial_item_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 提示信息 + TipInfos []TipInfo `json:"tip_infos,omitempty" xml:"tip_infos>tip_info,omitempty"` +} diff --git a/model/fenxiao/TaobaoInventoryInitialItemResponse.go b/model/fenxiao/TaobaoInventoryInitialItemResponse.go deleted file mode 100644 index a40282852e..0000000000 --- a/model/fenxiao/TaobaoInventoryInitialItemResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品库存初始化 API返回值 -taobao.inventory.initial.item - -建议使用新接口:taobao.inventory.merchant.adjust ,该接口会逐步停用。 -商家仓商品初始化在各个仓中库存 -*/ -type TaobaoInventoryInitialItemAPIResponse struct { - model.CommonResponse - TaobaoInventoryInitialItemResponse -} - -// 商品库存初始化 成功返回结果 -type TaobaoInventoryInitialItemResponse struct { - XMLName xml.Name `xml:"inventory_initial_item_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 提示信息 - TipInfos []TipInfo `json:"tip_infos,omitempty" xml:"tip_infos>tip_info,omitempty"` -} diff --git a/model/fenxiao/TaobaoInventoryInitialResponse.go b/model/fenxiao/TaobaoInventoryInitialResponse.go deleted file mode 100644 index aebd566c32..0000000000 --- a/model/fenxiao/TaobaoInventoryInitialResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -库存初始化 API返回值 -taobao.inventory.initial - -建议使用新接口:taobao.inventory.merchant.adjust ,该接口会逐步停用。 -商家仓库存初始化接口,直接按照商家指定的商品库存数进行填充,没有单据核对,不参与库存对账。 -*/ -type TaobaoInventoryInitialAPIResponse struct { - model.CommonResponse - TaobaoInventoryInitialResponse -} - -// 库存初始化 成功返回结果 -type TaobaoInventoryInitialResponse struct { - XMLName xml.Name `xml:"inventory_initial_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 提示信息 - TipInfos []TipInfo `json:"tip_infos,omitempty" xml:"tip_infos>tip_info,omitempty"` -} diff --git a/model/fenxiao/TaobaoInventoryQueryAPIRequest.go b/model/fenxiao/TaobaoInventoryQueryAPIRequest.go new file mode 100644 index 0000000000..1408c6b81c --- /dev/null +++ b/model/fenxiao/TaobaoInventoryQueryAPIRequest.go @@ -0,0 +1,95 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品库存信息 API请求 +taobao.inventory.query + +建议使用新接口:tmall.inventory.query.forstore ,新ISV不推荐使用。 +商家查询商品总体库存信息 +*/ +type TaobaoInventoryQueryAPIRequest struct { + model.Params + // 后端商品ID 列表,控制到50个 + _scItemIds string + // 后端商品的商家编码列表,控制到50个 + _scItemCodes string + // 卖家昵称 + _sellerNick string + // 仓库列表:GLY001^GLY002 + _storeCodes string +} + +// 初始化TaobaoInventoryQueryAPIRequest对象 +func NewTaobaoInventoryQueryRequest() *TaobaoInventoryQueryAPIRequest{ + return &TaobaoInventoryQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoInventoryQueryAPIRequest) GetApiMethodName() string { + return "taobao.inventory.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoInventoryQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ScItemIds Setter +// 后端商品ID 列表,控制到50个 +func (r *TaobaoInventoryQueryAPIRequest) SetScItemIds(_scItemIds string) error { + r._scItemIds = _scItemIds + r.Set("sc_item_ids", _scItemIds) + return nil +} + +// ScItemIds Getter +func (r TaobaoInventoryQueryAPIRequest) GetScItemIds() string { + return r._scItemIds +} +// ScItemCodes Setter +// 后端商品的商家编码列表,控制到50个 +func (r *TaobaoInventoryQueryAPIRequest) SetScItemCodes(_scItemCodes string) error { + r._scItemCodes = _scItemCodes + r.Set("sc_item_codes", _scItemCodes) + return nil +} + +// ScItemCodes Getter +func (r TaobaoInventoryQueryAPIRequest) GetScItemCodes() string { + return r._scItemCodes +} +// SellerNick Setter +// 卖家昵称 +func (r *TaobaoInventoryQueryAPIRequest) SetSellerNick(_sellerNick string) error { + r._sellerNick = _sellerNick + r.Set("seller_nick", _sellerNick) + return nil +} + +// SellerNick Getter +func (r TaobaoInventoryQueryAPIRequest) GetSellerNick() string { + return r._sellerNick +} +// StoreCodes Setter +// 仓库列表:GLY001^GLY002 +func (r *TaobaoInventoryQueryAPIRequest) SetStoreCodes(_storeCodes string) error { + r._storeCodes = _storeCodes + r.Set("store_codes", _storeCodes) + return nil +} + +// StoreCodes Getter +func (r TaobaoInventoryQueryAPIRequest) GetStoreCodes() string { + return r._storeCodes +} diff --git a/model/fenxiao/TaobaoInventoryQueryAPIResponse.go b/model/fenxiao/TaobaoInventoryQueryAPIResponse.go new file mode 100644 index 0000000000..a81ffea7f5 --- /dev/null +++ b/model/fenxiao/TaobaoInventoryQueryAPIResponse.go @@ -0,0 +1,30 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品库存信息 API返回值 +taobao.inventory.query + +建议使用新接口:tmall.inventory.query.forstore ,新ISV不推荐使用。 +商家查询商品总体库存信息 +*/ +type TaobaoInventoryQueryAPIResponse struct { + model.CommonResponse + TaobaoInventoryQueryAPIResponseModel +} + +// 查询商品库存信息 成功返回结果 +type TaobaoInventoryQueryAPIResponseModel struct { + XMLName xml.Name `xml:"inventory_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品总体库存信息 + ItemInventorys []InventorySum `json:"item_inventorys,omitempty" xml:"item_inventorys>inventory_sum,omitempty"` + // 提示信息,提示不存在的后端商品 + TipInfos []TipInfo `json:"tip_infos,omitempty" xml:"tip_infos>tip_info,omitempty"` +} diff --git a/model/fenxiao/TaobaoInventoryQueryResponse.go b/model/fenxiao/TaobaoInventoryQueryResponse.go deleted file mode 100644 index f3403a046c..0000000000 --- a/model/fenxiao/TaobaoInventoryQueryResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询商品库存信息 API返回值 -taobao.inventory.query - -建议使用新接口:tmall.inventory.query.forstore ,新ISV不推荐使用。 -商家查询商品总体库存信息 -*/ -type TaobaoInventoryQueryAPIResponse struct { - model.CommonResponse - TaobaoInventoryQueryResponse -} - -// 查询商品库存信息 成功返回结果 -type TaobaoInventoryQueryResponse struct { - XMLName xml.Name `xml:"inventory_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品总体库存信息 - ItemInventorys []InventorySum `json:"item_inventorys,omitempty" xml:"item_inventorys>inventory_sum,omitempty"` - // 提示信息,提示不存在的后端商品 - TipInfos []TipInfo `json:"tip_infos,omitempty" xml:"tip_infos>tip_info,omitempty"` -} diff --git a/model/fenxiao/TaobaoInventoryStoreManageAPIRequest.go b/model/fenxiao/TaobaoInventoryStoreManageAPIRequest.go new file mode 100644 index 0000000000..072e09572a --- /dev/null +++ b/model/fenxiao/TaobaoInventoryStoreManageAPIRequest.go @@ -0,0 +1,178 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建或更新仓库 API请求 +taobao.inventory.store.manage + +创建商家仓或者更新商家仓信息 +*/ +type TaobaoInventoryStoreManageAPIRequest struct { + model.Params + // 参数定义,ADD:新建; UPDATE:更新 + _operateType string + // 商家的仓库编码,不允许重复,不允许更新 + _storeCode string + // 商家的仓库名称,可更新 + _storeName string + // 仓库类型,可更新。目前只支持自有仓,TYPE_OWN:自有物理仓 + _storeType string + // 仓库简称,可更新 + _aliasName string + // 仓库的物理地址,可更新 + _address string + // 仓库区域名,可更新 + _addressAreaName string + // 联系人,可更新 + _contact string + // 联系电话,可更新 + _phone string + // 邮编,可更新 + _postcode int64 +} + +// 初始化TaobaoInventoryStoreManageAPIRequest对象 +func NewTaobaoInventoryStoreManageRequest() *TaobaoInventoryStoreManageAPIRequest{ + return &TaobaoInventoryStoreManageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoInventoryStoreManageAPIRequest) GetApiMethodName() string { + return "taobao.inventory.store.manage" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoInventoryStoreManageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OperateType Setter +// 参数定义,ADD:新建; UPDATE:更新 +func (r *TaobaoInventoryStoreManageAPIRequest) SetOperateType(_operateType string) error { + r._operateType = _operateType + r.Set("operate_type", _operateType) + return nil +} + +// OperateType Getter +func (r TaobaoInventoryStoreManageAPIRequest) GetOperateType() string { + return r._operateType +} +// StoreCode Setter +// 商家的仓库编码,不允许重复,不允许更新 +func (r *TaobaoInventoryStoreManageAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoInventoryStoreManageAPIRequest) GetStoreCode() string { + return r._storeCode +} +// StoreName Setter +// 商家的仓库名称,可更新 +func (r *TaobaoInventoryStoreManageAPIRequest) SetStoreName(_storeName string) error { + r._storeName = _storeName + r.Set("store_name", _storeName) + return nil +} + +// StoreName Getter +func (r TaobaoInventoryStoreManageAPIRequest) GetStoreName() string { + return r._storeName +} +// StoreType Setter +// 仓库类型,可更新。目前只支持自有仓,TYPE_OWN:自有物理仓 +func (r *TaobaoInventoryStoreManageAPIRequest) SetStoreType(_storeType string) error { + r._storeType = _storeType + r.Set("store_type", _storeType) + return nil +} + +// StoreType Getter +func (r TaobaoInventoryStoreManageAPIRequest) GetStoreType() string { + return r._storeType +} +// AliasName Setter +// 仓库简称,可更新 +func (r *TaobaoInventoryStoreManageAPIRequest) SetAliasName(_aliasName string) error { + r._aliasName = _aliasName + r.Set("alias_name", _aliasName) + return nil +} + +// AliasName Getter +func (r TaobaoInventoryStoreManageAPIRequest) GetAliasName() string { + return r._aliasName +} +// Address Setter +// 仓库的物理地址,可更新 +func (r *TaobaoInventoryStoreManageAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r TaobaoInventoryStoreManageAPIRequest) GetAddress() string { + return r._address +} +// AddressAreaName Setter +// 仓库区域名,可更新 +func (r *TaobaoInventoryStoreManageAPIRequest) SetAddressAreaName(_addressAreaName string) error { + r._addressAreaName = _addressAreaName + r.Set("address_area_name", _addressAreaName) + return nil +} + +// AddressAreaName Getter +func (r TaobaoInventoryStoreManageAPIRequest) GetAddressAreaName() string { + return r._addressAreaName +} +// Contact Setter +// 联系人,可更新 +func (r *TaobaoInventoryStoreManageAPIRequest) SetContact(_contact string) error { + r._contact = _contact + r.Set("contact", _contact) + return nil +} + +// Contact Getter +func (r TaobaoInventoryStoreManageAPIRequest) GetContact() string { + return r._contact +} +// Phone Setter +// 联系电话,可更新 +func (r *TaobaoInventoryStoreManageAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r TaobaoInventoryStoreManageAPIRequest) GetPhone() string { + return r._phone +} +// Postcode Setter +// 邮编,可更新 +func (r *TaobaoInventoryStoreManageAPIRequest) SetPostcode(_postcode int64) error { + r._postcode = _postcode + r.Set("postcode", _postcode) + return nil +} + +// Postcode Getter +func (r TaobaoInventoryStoreManageAPIRequest) GetPostcode() int64 { + return r._postcode +} diff --git a/model/fenxiao/TaobaoInventoryStoreManageAPIResponse.go b/model/fenxiao/TaobaoInventoryStoreManageAPIResponse.go new file mode 100644 index 0000000000..10968f623f --- /dev/null +++ b/model/fenxiao/TaobaoInventoryStoreManageAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建或更新仓库 API返回值 +taobao.inventory.store.manage + +创建商家仓或者更新商家仓信息 +*/ +type TaobaoInventoryStoreManageAPIResponse struct { + model.CommonResponse + TaobaoInventoryStoreManageAPIResponseModel +} + +// 创建或更新仓库 成功返回结果 +type TaobaoInventoryStoreManageAPIResponseModel struct { + XMLName xml.Name `xml:"inventory_store_manage_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + StoreList []Store `json:"store_list,omitempty" xml:"store_list>store,omitempty"` +} diff --git a/model/fenxiao/TaobaoInventoryStoreManageResponse.go b/model/fenxiao/TaobaoInventoryStoreManageResponse.go deleted file mode 100644 index 56943753f3..0000000000 --- a/model/fenxiao/TaobaoInventoryStoreManageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建或更新仓库 API返回值 -taobao.inventory.store.manage - -创建商家仓或者更新商家仓信息 -*/ -type TaobaoInventoryStoreManageAPIResponse struct { - model.CommonResponse - TaobaoInventoryStoreManageResponse -} - -// 创建或更新仓库 成功返回结果 -type TaobaoInventoryStoreManageResponse struct { - XMLName xml.Name `xml:"inventory_store_manage_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - StoreList []Store `json:"store_list,omitempty" xml:"store_list>store,omitempty"` -} diff --git a/model/fenxiao/TaobaoInventoryStoreQueryAPIRequest.go b/model/fenxiao/TaobaoInventoryStoreQueryAPIRequest.go new file mode 100644 index 0000000000..28d3dc1e7b --- /dev/null +++ b/model/fenxiao/TaobaoInventoryStoreQueryAPIRequest.go @@ -0,0 +1,52 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询仓库信息 API请求 +taobao.inventory.store.query + +查询商家仓信息 +*/ +type TaobaoInventoryStoreQueryAPIRequest struct { + model.Params + // 商家的仓库编码 + _storeCode string +} + +// 初始化TaobaoInventoryStoreQueryAPIRequest对象 +func NewTaobaoInventoryStoreQueryRequest() *TaobaoInventoryStoreQueryAPIRequest{ + return &TaobaoInventoryStoreQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoInventoryStoreQueryAPIRequest) GetApiMethodName() string { + return "taobao.inventory.store.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoInventoryStoreQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreCode Setter +// 商家的仓库编码 +func (r *TaobaoInventoryStoreQueryAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoInventoryStoreQueryAPIRequest) GetStoreCode() string { + return r._storeCode +} diff --git a/model/fenxiao/TaobaoInventoryStoreQueryAPIResponse.go b/model/fenxiao/TaobaoInventoryStoreQueryAPIResponse.go new file mode 100644 index 0000000000..da637eacd6 --- /dev/null +++ b/model/fenxiao/TaobaoInventoryStoreQueryAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询仓库信息 API返回值 +taobao.inventory.store.query + +查询商家仓信息 +*/ +type TaobaoInventoryStoreQueryAPIResponse struct { + model.CommonResponse + TaobaoInventoryStoreQueryAPIResponseModel +} + +// 查询仓库信息 成功返回结果 +type TaobaoInventoryStoreQueryAPIResponseModel struct { + XMLName xml.Name `xml:"inventory_store_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 仓库列表 + StoreList []Store `json:"store_list,omitempty" xml:"store_list>store,omitempty"` +} diff --git a/model/fenxiao/TaobaoInventoryStoreQueryResponse.go b/model/fenxiao/TaobaoInventoryStoreQueryResponse.go deleted file mode 100644 index f49306ca51..0000000000 --- a/model/fenxiao/TaobaoInventoryStoreQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询仓库信息 API返回值 -taobao.inventory.store.query - -查询商家仓信息 -*/ -type TaobaoInventoryStoreQueryAPIResponse struct { - model.CommonResponse - TaobaoInventoryStoreQueryResponse -} - -// 查询仓库信息 成功返回结果 -type TaobaoInventoryStoreQueryResponse struct { - XMLName xml.Name `xml:"inventory_store_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 仓库列表 - StoreList []Store `json:"store_list,omitempty" xml:"store_list>store,omitempty"` -} diff --git a/model/fenxiao/TaobaoInventoryWarehouseManageAPIRequest.go b/model/fenxiao/TaobaoInventoryWarehouseManageAPIRequest.go new file mode 100644 index 0000000000..74f4316f08 --- /dev/null +++ b/model/fenxiao/TaobaoInventoryWarehouseManageAPIRequest.go @@ -0,0 +1,52 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建商家仓或者更新商家仓信息 API请求 +taobao.inventory.warehouse.manage + +创建商家仓或者更新商家仓信息 +*/ +type TaobaoInventoryWarehouseManageAPIRequest struct { + model.Params + // 仓库信息 + _wareHouseDto *WareHouseDto +} + +// 初始化TaobaoInventoryWarehouseManageAPIRequest对象 +func NewTaobaoInventoryWarehouseManageRequest() *TaobaoInventoryWarehouseManageAPIRequest{ + return &TaobaoInventoryWarehouseManageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoInventoryWarehouseManageAPIRequest) GetApiMethodName() string { + return "taobao.inventory.warehouse.manage" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoInventoryWarehouseManageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WareHouseDto Setter +// 仓库信息 +func (r *TaobaoInventoryWarehouseManageAPIRequest) SetWareHouseDto(_wareHouseDto *WareHouseDto) error { + r._wareHouseDto = _wareHouseDto + r.Set("ware_house_dto", _wareHouseDto) + return nil +} + +// WareHouseDto Getter +func (r TaobaoInventoryWarehouseManageAPIRequest) GetWareHouseDto() *WareHouseDto { + return r._wareHouseDto +} diff --git a/model/fenxiao/TaobaoInventoryWarehouseManageAPIResponse.go b/model/fenxiao/TaobaoInventoryWarehouseManageAPIResponse.go new file mode 100644 index 0000000000..05c57ecaf5 --- /dev/null +++ b/model/fenxiao/TaobaoInventoryWarehouseManageAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建商家仓或者更新商家仓信息 API返回值 +taobao.inventory.warehouse.manage + +创建商家仓或者更新商家仓信息 +*/ +type TaobaoInventoryWarehouseManageAPIResponse struct { + model.CommonResponse + TaobaoInventoryWarehouseManageAPIResponseModel +} + +// 创建商家仓或者更新商家仓信息 成功返回结果 +type TaobaoInventoryWarehouseManageAPIResponseModel struct { + XMLName xml.Name `xml:"inventory_warehouse_manage_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoInventoryWarehouseManageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fenxiao/TaobaoInventoryWarehouseManageResponse.go b/model/fenxiao/TaobaoInventoryWarehouseManageResponse.go deleted file mode 100644 index 2ba568bb98..0000000000 --- a/model/fenxiao/TaobaoInventoryWarehouseManageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建商家仓或者更新商家仓信息 API返回值 -taobao.inventory.warehouse.manage - -创建商家仓或者更新商家仓信息 -*/ -type TaobaoInventoryWarehouseManageAPIResponse struct { - model.CommonResponse - TaobaoInventoryWarehouseManageResponse -} - -// 创建商家仓或者更新商家仓信息 成功返回结果 -type TaobaoInventoryWarehouseManageResponse struct { - XMLName xml.Name `xml:"inventory_warehouse_manage_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoInventoryWarehouseManageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fenxiao/TaobaoInventoryWarehouseQueryAPIRequest.go b/model/fenxiao/TaobaoInventoryWarehouseQueryAPIRequest.go new file mode 100644 index 0000000000..90455fb03c --- /dev/null +++ b/model/fenxiao/TaobaoInventoryWarehouseQueryAPIRequest.go @@ -0,0 +1,66 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询商家仓信息 API请求 +taobao.inventory.warehouse.query + +分页查询商家仓信息 +*/ +type TaobaoInventoryWarehouseQueryAPIRequest struct { + model.Params + // 页码 + _pageNo int64 + // 页大小 + _pageSize int64 +} + +// 初始化TaobaoInventoryWarehouseQueryAPIRequest对象 +func NewTaobaoInventoryWarehouseQueryRequest() *TaobaoInventoryWarehouseQueryAPIRequest{ + return &TaobaoInventoryWarehouseQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoInventoryWarehouseQueryAPIRequest) GetApiMethodName() string { + return "taobao.inventory.warehouse.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoInventoryWarehouseQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageNo Setter +// 页码 +func (r *TaobaoInventoryWarehouseQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoInventoryWarehouseQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 页大小 +func (r *TaobaoInventoryWarehouseQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoInventoryWarehouseQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/fenxiao/TaobaoInventoryWarehouseQueryAPIResponse.go b/model/fenxiao/TaobaoInventoryWarehouseQueryAPIResponse.go new file mode 100644 index 0000000000..35744501cb --- /dev/null +++ b/model/fenxiao/TaobaoInventoryWarehouseQueryAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询商家仓信息 API返回值 +taobao.inventory.warehouse.query + +分页查询商家仓信息 +*/ +type TaobaoInventoryWarehouseQueryAPIResponse struct { + model.CommonResponse + TaobaoInventoryWarehouseQueryAPIResponseModel +} + +// 分页查询商家仓信息 成功返回结果 +type TaobaoInventoryWarehouseQueryAPIResponseModel struct { + XMLName xml.Name `xml:"inventory_warehouse_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PaginationResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fenxiao/TaobaoInventoryWarehouseQueryResponse.go b/model/fenxiao/TaobaoInventoryWarehouseQueryResponse.go deleted file mode 100644 index 2191198af1..0000000000 --- a/model/fenxiao/TaobaoInventoryWarehouseQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页查询商家仓信息 API返回值 -taobao.inventory.warehouse.query - -分页查询商家仓信息 -*/ -type TaobaoInventoryWarehouseQueryAPIResponse struct { - model.CommonResponse - TaobaoInventoryWarehouseQueryResponse -} - -// 分页查询商家仓信息 成功返回结果 -type TaobaoInventoryWarehouseQueryResponse struct { - XMLName xml.Name `xml:"inventory_warehouse_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PaginationResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fenxiao/TaobaoKaolaScitemAddAPIRequest.go b/model/fenxiao/TaobaoKaolaScitemAddAPIRequest.go new file mode 100644 index 0000000000..bb15dd7b64 --- /dev/null +++ b/model/fenxiao/TaobaoKaolaScitemAddAPIRequest.go @@ -0,0 +1,66 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +考拉货品新增接口 API请求 +taobao.kaola.scitem.add + +考拉货品新增接口 +*/ +type TaobaoKaolaScitemAddAPIRequest struct { + model.Params + // 待新增的货品 + _cnsku *CnskuDto + // 新增选项 + _option *AddCnskuOption +} + +// 初始化TaobaoKaolaScitemAddAPIRequest对象 +func NewTaobaoKaolaScitemAddRequest() *TaobaoKaolaScitemAddAPIRequest{ + return &TaobaoKaolaScitemAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoKaolaScitemAddAPIRequest) GetApiMethodName() string { + return "taobao.kaola.scitem.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoKaolaScitemAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Cnsku Setter +// 待新增的货品 +func (r *TaobaoKaolaScitemAddAPIRequest) SetCnsku(_cnsku *CnskuDto) error { + r._cnsku = _cnsku + r.Set("cnsku", _cnsku) + return nil +} + +// Cnsku Getter +func (r TaobaoKaolaScitemAddAPIRequest) GetCnsku() *CnskuDto { + return r._cnsku +} +// Option Setter +// 新增选项 +func (r *TaobaoKaolaScitemAddAPIRequest) SetOption(_option *AddCnskuOption) error { + r._option = _option + r.Set("option", _option) + return nil +} + +// Option Getter +func (r TaobaoKaolaScitemAddAPIRequest) GetOption() *AddCnskuOption { + return r._option +} diff --git a/model/fenxiao/TaobaoKaolaScitemAddAPIResponse.go b/model/fenxiao/TaobaoKaolaScitemAddAPIResponse.go new file mode 100644 index 0000000000..f79957f188 --- /dev/null +++ b/model/fenxiao/TaobaoKaolaScitemAddAPIResponse.go @@ -0,0 +1,35 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +考拉货品新增接口 API返回值 +taobao.kaola.scitem.add + +考拉货品新增接口 +*/ +type TaobaoKaolaScitemAddAPIResponse struct { + model.CommonResponse + TaobaoKaolaScitemAddAPIResponseModel +} + +// 考拉货品新增接口 成功返回结果 +type TaobaoKaolaScitemAddAPIResponseModel struct { + XMLName xml.Name `xml:"kaola_scitem_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异常信息 + ErrorMessages []string `json:"error_messages,omitempty" xml:"error_messages>string,omitempty"` + // 货品id + Data int64 `json:"data,omitempty" xml:"data,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 是否系统异常 + IsSystemFailed bool `json:"is_system_failed,omitempty" xml:"is_system_failed,omitempty"` + // 异常信息Code + SysErrorCode string `json:"sys_error_code,omitempty" xml:"sys_error_code,omitempty"` +} diff --git a/model/fenxiao/TaobaoKaolaScitemAddResponse.go b/model/fenxiao/TaobaoKaolaScitemAddResponse.go deleted file mode 100644 index c1ed11f7d4..0000000000 --- a/model/fenxiao/TaobaoKaolaScitemAddResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -考拉货品新增接口 API返回值 -taobao.kaola.scitem.add - -考拉货品新增接口 -*/ -type TaobaoKaolaScitemAddAPIResponse struct { - model.CommonResponse - TaobaoKaolaScitemAddResponse -} - -// 考拉货品新增接口 成功返回结果 -type TaobaoKaolaScitemAddResponse struct { - XMLName xml.Name `xml:"kaola_scitem_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异常信息 - ErrorMessages []string `json:"error_messages,omitempty" xml:"error_messages>string,omitempty"` - // 货品id - Data int64 `json:"data,omitempty" xml:"data,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 是否系统异常 - IsSystemFailed bool `json:"is_system_failed,omitempty" xml:"is_system_failed,omitempty"` - // 异常信息Code - SysErrorCode string `json:"sys_error_code,omitempty" xml:"sys_error_code,omitempty"` -} diff --git a/model/fenxiao/TaobaoRegionPriceCancleAPIRequest.go b/model/fenxiao/TaobaoRegionPriceCancleAPIRequest.go new file mode 100644 index 0000000000..525a1409dd --- /dev/null +++ b/model/fenxiao/TaobaoRegionPriceCancleAPIRequest.go @@ -0,0 +1,66 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消区域价格 API请求 +taobao.region.price.cancle + +取消区域价格 +*/ +type TaobaoRegionPriceCancleAPIRequest struct { + model.Params + // 商品 + _itemId int64 + // 无sku传0 + _skuId int64 +} + +// 初始化TaobaoRegionPriceCancleAPIRequest对象 +func NewTaobaoRegionPriceCancleRequest() *TaobaoRegionPriceCancleAPIRequest{ + return &TaobaoRegionPriceCancleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRegionPriceCancleAPIRequest) GetApiMethodName() string { + return "taobao.region.price.cancle" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRegionPriceCancleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品 +func (r *TaobaoRegionPriceCancleAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoRegionPriceCancleAPIRequest) GetItemId() int64 { + return r._itemId +} +// SkuId Setter +// 无sku传0 +func (r *TaobaoRegionPriceCancleAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TaobaoRegionPriceCancleAPIRequest) GetSkuId() int64 { + return r._skuId +} diff --git a/model/fenxiao/TaobaoRegionPriceCancleAPIResponse.go b/model/fenxiao/TaobaoRegionPriceCancleAPIResponse.go new file mode 100644 index 0000000000..d794b32af8 --- /dev/null +++ b/model/fenxiao/TaobaoRegionPriceCancleAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消区域价格 API返回值 +taobao.region.price.cancle + +取消区域价格 +*/ +type TaobaoRegionPriceCancleAPIResponse struct { + model.CommonResponse + TaobaoRegionPriceCancleAPIResponseModel +} + +// 取消区域价格 成功返回结果 +type TaobaoRegionPriceCancleAPIResponseModel struct { + XMLName xml.Name `xml:"region_price_cancle_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fenxiao/TaobaoRegionPriceCancleResponse.go b/model/fenxiao/TaobaoRegionPriceCancleResponse.go deleted file mode 100644 index 3e036832f1..0000000000 --- a/model/fenxiao/TaobaoRegionPriceCancleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消区域价格 API返回值 -taobao.region.price.cancle - -取消区域价格 -*/ -type TaobaoRegionPriceCancleAPIResponse struct { - model.CommonResponse - TaobaoRegionPriceCancleResponse -} - -// 取消区域价格 成功返回结果 -type TaobaoRegionPriceCancleResponse struct { - XMLName xml.Name `xml:"region_price_cancle_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fenxiao/TaobaoRegionPriceManageAPIRequest.go b/model/fenxiao/TaobaoRegionPriceManageAPIRequest.go new file mode 100644 index 0000000000..947331d301 --- /dev/null +++ b/model/fenxiao/TaobaoRegionPriceManageAPIRequest.go @@ -0,0 +1,94 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +编辑区域价格 API请求 +taobao.region.price.manage + +编辑区域价格 +*/ +type TaobaoRegionPriceManageAPIRequest struct { + model.Params + // 商品id + _itemId int64 + // 无sku传0 + _skuId int64 + // 列表 + _regionalPriceDtos []RegionalPriceDto + // true:全量, false:增量 + _isFull bool +} + +// 初始化TaobaoRegionPriceManageAPIRequest对象 +func NewTaobaoRegionPriceManageRequest() *TaobaoRegionPriceManageAPIRequest{ + return &TaobaoRegionPriceManageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRegionPriceManageAPIRequest) GetApiMethodName() string { + return "taobao.region.price.manage" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRegionPriceManageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TaobaoRegionPriceManageAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoRegionPriceManageAPIRequest) GetItemId() int64 { + return r._itemId +} +// SkuId Setter +// 无sku传0 +func (r *TaobaoRegionPriceManageAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TaobaoRegionPriceManageAPIRequest) GetSkuId() int64 { + return r._skuId +} +// RegionalPriceDtos Setter +// 列表 +func (r *TaobaoRegionPriceManageAPIRequest) SetRegionalPriceDtos(_regionalPriceDtos []RegionalPriceDto) error { + r._regionalPriceDtos = _regionalPriceDtos + r.Set("regional_price_dtos", _regionalPriceDtos) + return nil +} + +// RegionalPriceDtos Getter +func (r TaobaoRegionPriceManageAPIRequest) GetRegionalPriceDtos() []RegionalPriceDto { + return r._regionalPriceDtos +} +// IsFull Setter +// true:全量, false:增量 +func (r *TaobaoRegionPriceManageAPIRequest) SetIsFull(_isFull bool) error { + r._isFull = _isFull + r.Set("is_full", _isFull) + return nil +} + +// IsFull Getter +func (r TaobaoRegionPriceManageAPIRequest) GetIsFull() bool { + return r._isFull +} diff --git a/model/fenxiao/TaobaoRegionPriceManageAPIResponse.go b/model/fenxiao/TaobaoRegionPriceManageAPIResponse.go new file mode 100644 index 0000000000..f5145e5f0b --- /dev/null +++ b/model/fenxiao/TaobaoRegionPriceManageAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +编辑区域价格 API返回值 +taobao.region.price.manage + +编辑区域价格 +*/ +type TaobaoRegionPriceManageAPIResponse struct { + model.CommonResponse + TaobaoRegionPriceManageAPIResponseModel +} + +// 编辑区域价格 成功返回结果 +type TaobaoRegionPriceManageAPIResponseModel struct { + XMLName xml.Name `xml:"region_price_manage_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/fenxiao/TaobaoRegionPriceManageResponse.go b/model/fenxiao/TaobaoRegionPriceManageResponse.go deleted file mode 100644 index 820fb83267..0000000000 --- a/model/fenxiao/TaobaoRegionPriceManageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -编辑区域价格 API返回值 -taobao.region.price.manage - -编辑区域价格 -*/ -type TaobaoRegionPriceManageAPIResponse struct { - model.CommonResponse - TaobaoRegionPriceManageResponse -} - -// 编辑区域价格 成功返回结果 -type TaobaoRegionPriceManageResponse struct { - XMLName xml.Name `xml:"region_price_manage_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/fenxiao/TaobaoRegionPriceQueryAPIRequest.go b/model/fenxiao/TaobaoRegionPriceQueryAPIRequest.go new file mode 100644 index 0000000000..0739fbf6e0 --- /dev/null +++ b/model/fenxiao/TaobaoRegionPriceQueryAPIRequest.go @@ -0,0 +1,80 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +区域价格查询 API请求 +taobao.region.price.query + +区域价格查询 +*/ +type TaobaoRegionPriceQueryAPIRequest struct { + model.Params + // 商品id + _itemId int64 + // 无sku可传0 + _skuId int64 + // 不传则返回所有设置的区域价格 + _regionalPriceDtos []RegionalPriceDto +} + +// 初始化TaobaoRegionPriceQueryAPIRequest对象 +func NewTaobaoRegionPriceQueryRequest() *TaobaoRegionPriceQueryAPIRequest{ + return &TaobaoRegionPriceQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRegionPriceQueryAPIRequest) GetApiMethodName() string { + return "taobao.region.price.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRegionPriceQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TaobaoRegionPriceQueryAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoRegionPriceQueryAPIRequest) GetItemId() int64 { + return r._itemId +} +// SkuId Setter +// 无sku可传0 +func (r *TaobaoRegionPriceQueryAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TaobaoRegionPriceQueryAPIRequest) GetSkuId() int64 { + return r._skuId +} +// RegionalPriceDtos Setter +// 不传则返回所有设置的区域价格 +func (r *TaobaoRegionPriceQueryAPIRequest) SetRegionalPriceDtos(_regionalPriceDtos []RegionalPriceDto) error { + r._regionalPriceDtos = _regionalPriceDtos + r.Set("regional_price_dtos", _regionalPriceDtos) + return nil +} + +// RegionalPriceDtos Getter +func (r TaobaoRegionPriceQueryAPIRequest) GetRegionalPriceDtos() []RegionalPriceDto { + return r._regionalPriceDtos +} diff --git a/model/fenxiao/TaobaoRegionPriceQueryAPIResponse.go b/model/fenxiao/TaobaoRegionPriceQueryAPIResponse.go new file mode 100644 index 0000000000..6c6a49e485 --- /dev/null +++ b/model/fenxiao/TaobaoRegionPriceQueryAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +区域价格查询 API返回值 +taobao.region.price.query + +区域价格查询 +*/ +type TaobaoRegionPriceQueryAPIResponse struct { + model.CommonResponse + TaobaoRegionPriceQueryAPIResponseModel +} + +// 区域价格查询 成功返回结果 +type TaobaoRegionPriceQueryAPIResponseModel struct { + XMLName xml.Name `xml:"region_price_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fenxiao/TaobaoRegionPriceQueryResponse.go b/model/fenxiao/TaobaoRegionPriceQueryResponse.go deleted file mode 100644 index cd04c907fe..0000000000 --- a/model/fenxiao/TaobaoRegionPriceQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -区域价格查询 API返回值 -taobao.region.price.query - -区域价格查询 -*/ -type TaobaoRegionPriceQueryAPIResponse struct { - model.CommonResponse - TaobaoRegionPriceQueryResponse -} - -// 区域价格查询 成功返回结果 -type TaobaoRegionPriceQueryResponse struct { - XMLName xml.Name `xml:"region_price_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fenxiao/TaobaoRegionSaleQueryAPIRequest.go b/model/fenxiao/TaobaoRegionSaleQueryAPIRequest.go new file mode 100644 index 0000000000..4743236d0c --- /dev/null +++ b/model/fenxiao/TaobaoRegionSaleQueryAPIRequest.go @@ -0,0 +1,80 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品销售区域 API请求 +taobao.region.sale.query + +查询商品销售区域 +*/ +type TaobaoRegionSaleQueryAPIRequest struct { + model.Params + // 商品id + _itemId int64 + // 无sku传0 + _skuId int64 + // 1:国家;2:省;3: 市;4:区县 + _saleRegionLevel int64 +} + +// 初始化TaobaoRegionSaleQueryAPIRequest对象 +func NewTaobaoRegionSaleQueryRequest() *TaobaoRegionSaleQueryAPIRequest{ + return &TaobaoRegionSaleQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRegionSaleQueryAPIRequest) GetApiMethodName() string { + return "taobao.region.sale.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRegionSaleQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TaobaoRegionSaleQueryAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoRegionSaleQueryAPIRequest) GetItemId() int64 { + return r._itemId +} +// SkuId Setter +// 无sku传0 +func (r *TaobaoRegionSaleQueryAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TaobaoRegionSaleQueryAPIRequest) GetSkuId() int64 { + return r._skuId +} +// SaleRegionLevel Setter +// 1:国家;2:省;3: 市;4:区县 +func (r *TaobaoRegionSaleQueryAPIRequest) SetSaleRegionLevel(_saleRegionLevel int64) error { + r._saleRegionLevel = _saleRegionLevel + r.Set("sale_region_level", _saleRegionLevel) + return nil +} + +// SaleRegionLevel Getter +func (r TaobaoRegionSaleQueryAPIRequest) GetSaleRegionLevel() int64 { + return r._saleRegionLevel +} diff --git a/model/fenxiao/TaobaoRegionSaleQueryAPIResponse.go b/model/fenxiao/TaobaoRegionSaleQueryAPIResponse.go new file mode 100644 index 0000000000..46a2caff63 --- /dev/null +++ b/model/fenxiao/TaobaoRegionSaleQueryAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品销售区域 API返回值 +taobao.region.sale.query + +查询商品销售区域 +*/ +type TaobaoRegionSaleQueryAPIResponse struct { + model.CommonResponse + TaobaoRegionSaleQueryAPIResponseModel +} + +// 查询商品销售区域 成功返回结果 +type TaobaoRegionSaleQueryAPIResponseModel struct { + XMLName xml.Name `xml:"region_sale_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fenxiao/TaobaoRegionSaleQueryResponse.go b/model/fenxiao/TaobaoRegionSaleQueryResponse.go deleted file mode 100644 index 7d653341d9..0000000000 --- a/model/fenxiao/TaobaoRegionSaleQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询商品销售区域 API返回值 -taobao.region.sale.query - -查询商品销售区域 -*/ -type TaobaoRegionSaleQueryAPIResponse struct { - model.CommonResponse - TaobaoRegionSaleQueryResponse -} - -// 查询商品销售区域 成功返回结果 -type TaobaoRegionSaleQueryResponse struct { - XMLName xml.Name `xml:"region_sale_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fenxiao/TaobaoRegionWarehouseManageAPIRequest.go b/model/fenxiao/TaobaoRegionWarehouseManageAPIRequest.go new file mode 100644 index 0000000000..c0d3725097 --- /dev/null +++ b/model/fenxiao/TaobaoRegionWarehouseManageAPIRequest.go @@ -0,0 +1,66 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +编辑仓库覆盖范围 API请求 +taobao.region.warehouse.manage + +编辑仓库覆盖范围 +*/ +type TaobaoRegionWarehouseManageAPIRequest struct { + model.Params + // 仓库编码 + _storeCode string + // 可映射三级地址,例: 广东省 + _regions []string +} + +// 初始化TaobaoRegionWarehouseManageAPIRequest对象 +func NewTaobaoRegionWarehouseManageRequest() *TaobaoRegionWarehouseManageAPIRequest{ + return &TaobaoRegionWarehouseManageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRegionWarehouseManageAPIRequest) GetApiMethodName() string { + return "taobao.region.warehouse.manage" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRegionWarehouseManageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreCode Setter +// 仓库编码 +func (r *TaobaoRegionWarehouseManageAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoRegionWarehouseManageAPIRequest) GetStoreCode() string { + return r._storeCode +} +// Regions Setter +// 可映射三级地址,例: 广东省 +func (r *TaobaoRegionWarehouseManageAPIRequest) SetRegions(_regions []string) error { + r._regions = _regions + r.Set("regions", _regions) + return nil +} + +// Regions Getter +func (r TaobaoRegionWarehouseManageAPIRequest) GetRegions() []string { + return r._regions +} diff --git a/model/fenxiao/TaobaoRegionWarehouseManageAPIResponse.go b/model/fenxiao/TaobaoRegionWarehouseManageAPIResponse.go new file mode 100644 index 0000000000..1d30a95fe4 --- /dev/null +++ b/model/fenxiao/TaobaoRegionWarehouseManageAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +编辑仓库覆盖范围 API返回值 +taobao.region.warehouse.manage + +编辑仓库覆盖范围 +*/ +type TaobaoRegionWarehouseManageAPIResponse struct { + model.CommonResponse + TaobaoRegionWarehouseManageAPIResponseModel +} + +// 编辑仓库覆盖范围 成功返回结果 +type TaobaoRegionWarehouseManageAPIResponseModel struct { + XMLName xml.Name `xml:"region_warehouse_manage_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fenxiao/TaobaoRegionWarehouseManageResponse.go b/model/fenxiao/TaobaoRegionWarehouseManageResponse.go deleted file mode 100644 index 29c16c0eca..0000000000 --- a/model/fenxiao/TaobaoRegionWarehouseManageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -编辑仓库覆盖范围 API返回值 -taobao.region.warehouse.manage - -编辑仓库覆盖范围 -*/ -type TaobaoRegionWarehouseManageAPIResponse struct { - model.CommonResponse - TaobaoRegionWarehouseManageResponse -} - -// 编辑仓库覆盖范围 成功返回结果 -type TaobaoRegionWarehouseManageResponse struct { - XMLName xml.Name `xml:"region_warehouse_manage_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fenxiao/TaobaoRegionWarehouseQueryAPIRequest.go b/model/fenxiao/TaobaoRegionWarehouseQueryAPIRequest.go new file mode 100644 index 0000000000..4f5333bc50 --- /dev/null +++ b/model/fenxiao/TaobaoRegionWarehouseQueryAPIRequest.go @@ -0,0 +1,52 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询仓库覆盖范围 API请求 +taobao.region.warehouse.query + +查询仓库覆盖范围 +*/ +type TaobaoRegionWarehouseQueryAPIRequest struct { + model.Params + // 仓库编码 + _storeCode string +} + +// 初始化TaobaoRegionWarehouseQueryAPIRequest对象 +func NewTaobaoRegionWarehouseQueryRequest() *TaobaoRegionWarehouseQueryAPIRequest{ + return &TaobaoRegionWarehouseQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRegionWarehouseQueryAPIRequest) GetApiMethodName() string { + return "taobao.region.warehouse.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRegionWarehouseQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreCode Setter +// 仓库编码 +func (r *TaobaoRegionWarehouseQueryAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoRegionWarehouseQueryAPIRequest) GetStoreCode() string { + return r._storeCode +} diff --git a/model/fenxiao/TaobaoRegionWarehouseQueryAPIResponse.go b/model/fenxiao/TaobaoRegionWarehouseQueryAPIResponse.go new file mode 100644 index 0000000000..9b68a35b55 --- /dev/null +++ b/model/fenxiao/TaobaoRegionWarehouseQueryAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询仓库覆盖范围 API返回值 +taobao.region.warehouse.query + +查询仓库覆盖范围 +*/ +type TaobaoRegionWarehouseQueryAPIResponse struct { + model.CommonResponse + TaobaoRegionWarehouseQueryAPIResponseModel +} + +// 查询仓库覆盖范围 成功返回结果 +type TaobaoRegionWarehouseQueryAPIResponseModel struct { + XMLName xml.Name `xml:"region_warehouse_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fenxiao/TaobaoRegionWarehouseQueryResponse.go b/model/fenxiao/TaobaoRegionWarehouseQueryResponse.go deleted file mode 100644 index 61f06b76a0..0000000000 --- a/model/fenxiao/TaobaoRegionWarehouseQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询仓库覆盖范围 API返回值 -taobao.region.warehouse.query - -查询仓库覆盖范围 -*/ -type TaobaoRegionWarehouseQueryAPIResponse struct { - model.CommonResponse - TaobaoRegionWarehouseQueryResponse -} - -// 查询仓库覆盖范围 成功返回结果 -type TaobaoRegionWarehouseQueryResponse struct { - XMLName xml.Name `xml:"region_warehouse_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fenxiao/TaobaoScitemAddAPIRequest.go b/model/fenxiao/TaobaoScitemAddAPIRequest.go new file mode 100644 index 0000000000..9cc3965596 --- /dev/null +++ b/model/fenxiao/TaobaoScitemAddAPIRequest.go @@ -0,0 +1,346 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发布后端商品 API请求 +taobao.scitem.add + +发布后端商品 +*/ +type TaobaoScitemAddAPIRequest struct { + model.Params + // 商品名称 + _itemName string + // 商家编码 + _outerCode string + // 0.普通供应链商品 1.供应链组合主商品 + _itemType int64 + // 商品属性格式是 p1:v1,p2:v2,p3:v3 + _properties string + // 条形码 + _barCode string + // 仓储商编码 + _wmsCode string + // 是否易碎 0:不是 1:是 + _isFriable int64 + // 是否危险 0:不是 1:是 + _isDangerous int64 + // 是否是贵重品 0:不是 1:是 + _isCostly int64 + // 是否保质期:0:不是 1:是 + _isWarranty int64 + // 重量 单位:g + _weight int64 + // 长度 单位:mm + _length int64 + // 宽 单位:mm + _width int64 + // 高 单位:mm + _height int64 + // 体积:立方厘米 + _volume int64 + // 价格 单位:分 + _price int64 + // remark + _remark string + // 0:液体,1:粉体,2:固体 + _matterStatus int64 + // 品牌id + _brandId int64 + // brand_Name + _brandName string + // spuId或是cspuid + _spuId int64 + // 1表示区域销售,0或是空是非区域销售 + _isAreaSale int64 +} + +// 初始化TaobaoScitemAddAPIRequest对象 +func NewTaobaoScitemAddRequest() *TaobaoScitemAddAPIRequest{ + return &TaobaoScitemAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoScitemAddAPIRequest) GetApiMethodName() string { + return "taobao.scitem.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoScitemAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemName Setter +// 商品名称 +func (r *TaobaoScitemAddAPIRequest) SetItemName(_itemName string) error { + r._itemName = _itemName + r.Set("item_name", _itemName) + return nil +} + +// ItemName Getter +func (r TaobaoScitemAddAPIRequest) GetItemName() string { + return r._itemName +} +// OuterCode Setter +// 商家编码 +func (r *TaobaoScitemAddAPIRequest) SetOuterCode(_outerCode string) error { + r._outerCode = _outerCode + r.Set("outer_code", _outerCode) + return nil +} + +// OuterCode Getter +func (r TaobaoScitemAddAPIRequest) GetOuterCode() string { + return r._outerCode +} +// ItemType Setter +// 0.普通供应链商品 1.供应链组合主商品 +func (r *TaobaoScitemAddAPIRequest) SetItemType(_itemType int64) error { + r._itemType = _itemType + r.Set("item_type", _itemType) + return nil +} + +// ItemType Getter +func (r TaobaoScitemAddAPIRequest) GetItemType() int64 { + return r._itemType +} +// Properties Setter +// 商品属性格式是 p1:v1,p2:v2,p3:v3 +func (r *TaobaoScitemAddAPIRequest) SetProperties(_properties string) error { + r._properties = _properties + r.Set("properties", _properties) + return nil +} + +// Properties Getter +func (r TaobaoScitemAddAPIRequest) GetProperties() string { + return r._properties +} +// BarCode Setter +// 条形码 +func (r *TaobaoScitemAddAPIRequest) SetBarCode(_barCode string) error { + r._barCode = _barCode + r.Set("bar_code", _barCode) + return nil +} + +// BarCode Getter +func (r TaobaoScitemAddAPIRequest) GetBarCode() string { + return r._barCode +} +// WmsCode Setter +// 仓储商编码 +func (r *TaobaoScitemAddAPIRequest) SetWmsCode(_wmsCode string) error { + r._wmsCode = _wmsCode + r.Set("wms_code", _wmsCode) + return nil +} + +// WmsCode Getter +func (r TaobaoScitemAddAPIRequest) GetWmsCode() string { + return r._wmsCode +} +// IsFriable Setter +// 是否易碎 0:不是 1:是 +func (r *TaobaoScitemAddAPIRequest) SetIsFriable(_isFriable int64) error { + r._isFriable = _isFriable + r.Set("is_friable", _isFriable) + return nil +} + +// IsFriable Getter +func (r TaobaoScitemAddAPIRequest) GetIsFriable() int64 { + return r._isFriable +} +// IsDangerous Setter +// 是否危险 0:不是 1:是 +func (r *TaobaoScitemAddAPIRequest) SetIsDangerous(_isDangerous int64) error { + r._isDangerous = _isDangerous + r.Set("is_dangerous", _isDangerous) + return nil +} + +// IsDangerous Getter +func (r TaobaoScitemAddAPIRequest) GetIsDangerous() int64 { + return r._isDangerous +} +// IsCostly Setter +// 是否是贵重品 0:不是 1:是 +func (r *TaobaoScitemAddAPIRequest) SetIsCostly(_isCostly int64) error { + r._isCostly = _isCostly + r.Set("is_costly", _isCostly) + return nil +} + +// IsCostly Getter +func (r TaobaoScitemAddAPIRequest) GetIsCostly() int64 { + return r._isCostly +} +// IsWarranty Setter +// 是否保质期:0:不是 1:是 +func (r *TaobaoScitemAddAPIRequest) SetIsWarranty(_isWarranty int64) error { + r._isWarranty = _isWarranty + r.Set("is_warranty", _isWarranty) + return nil +} + +// IsWarranty Getter +func (r TaobaoScitemAddAPIRequest) GetIsWarranty() int64 { + return r._isWarranty +} +// Weight Setter +// 重量 单位:g +func (r *TaobaoScitemAddAPIRequest) SetWeight(_weight int64) error { + r._weight = _weight + r.Set("weight", _weight) + return nil +} + +// Weight Getter +func (r TaobaoScitemAddAPIRequest) GetWeight() int64 { + return r._weight +} +// Length Setter +// 长度 单位:mm +func (r *TaobaoScitemAddAPIRequest) SetLength(_length int64) error { + r._length = _length + r.Set("length", _length) + return nil +} + +// Length Getter +func (r TaobaoScitemAddAPIRequest) GetLength() int64 { + return r._length +} +// Width Setter +// 宽 单位:mm +func (r *TaobaoScitemAddAPIRequest) SetWidth(_width int64) error { + r._width = _width + r.Set("width", _width) + return nil +} + +// Width Getter +func (r TaobaoScitemAddAPIRequest) GetWidth() int64 { + return r._width +} +// Height Setter +// 高 单位:mm +func (r *TaobaoScitemAddAPIRequest) SetHeight(_height int64) error { + r._height = _height + r.Set("height", _height) + return nil +} + +// Height Getter +func (r TaobaoScitemAddAPIRequest) GetHeight() int64 { + return r._height +} +// Volume Setter +// 体积:立方厘米 +func (r *TaobaoScitemAddAPIRequest) SetVolume(_volume int64) error { + r._volume = _volume + r.Set("volume", _volume) + return nil +} + +// Volume Getter +func (r TaobaoScitemAddAPIRequest) GetVolume() int64 { + return r._volume +} +// Price Setter +// 价格 单位:分 +func (r *TaobaoScitemAddAPIRequest) SetPrice(_price int64) error { + r._price = _price + r.Set("price", _price) + return nil +} + +// Price Getter +func (r TaobaoScitemAddAPIRequest) GetPrice() int64 { + return r._price +} +// Remark Setter +// remark +func (r *TaobaoScitemAddAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r TaobaoScitemAddAPIRequest) GetRemark() string { + return r._remark +} +// MatterStatus Setter +// 0:液体,1:粉体,2:固体 +func (r *TaobaoScitemAddAPIRequest) SetMatterStatus(_matterStatus int64) error { + r._matterStatus = _matterStatus + r.Set("matter_status", _matterStatus) + return nil +} + +// MatterStatus Getter +func (r TaobaoScitemAddAPIRequest) GetMatterStatus() int64 { + return r._matterStatus +} +// BrandId Setter +// 品牌id +func (r *TaobaoScitemAddAPIRequest) SetBrandId(_brandId int64) error { + r._brandId = _brandId + r.Set("brand_id", _brandId) + return nil +} + +// BrandId Getter +func (r TaobaoScitemAddAPIRequest) GetBrandId() int64 { + return r._brandId +} +// BrandName Setter +// brand_Name +func (r *TaobaoScitemAddAPIRequest) SetBrandName(_brandName string) error { + r._brandName = _brandName + r.Set("brand_name", _brandName) + return nil +} + +// BrandName Getter +func (r TaobaoScitemAddAPIRequest) GetBrandName() string { + return r._brandName +} +// SpuId Setter +// spuId或是cspuid +func (r *TaobaoScitemAddAPIRequest) SetSpuId(_spuId int64) error { + r._spuId = _spuId + r.Set("spu_id", _spuId) + return nil +} + +// SpuId Getter +func (r TaobaoScitemAddAPIRequest) GetSpuId() int64 { + return r._spuId +} +// IsAreaSale Setter +// 1表示区域销售,0或是空是非区域销售 +func (r *TaobaoScitemAddAPIRequest) SetIsAreaSale(_isAreaSale int64) error { + r._isAreaSale = _isAreaSale + r.Set("is_area_sale", _isAreaSale) + return nil +} + +// IsAreaSale Getter +func (r TaobaoScitemAddAPIRequest) GetIsAreaSale() int64 { + return r._isAreaSale +} diff --git a/model/fenxiao/TaobaoScitemAddAPIResponse.go b/model/fenxiao/TaobaoScitemAddAPIResponse.go new file mode 100644 index 0000000000..3d649887f6 --- /dev/null +++ b/model/fenxiao/TaobaoScitemAddAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发布后端商品 API返回值 +taobao.scitem.add + +发布后端商品 +*/ +type TaobaoScitemAddAPIResponse struct { + model.CommonResponse + TaobaoScitemAddAPIResponseModel +} + +// 发布后端商品 成功返回结果 +type TaobaoScitemAddAPIResponseModel struct { + XMLName xml.Name `xml:"scitem_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 后台商品信息 + ScItem *ScItem `json:"sc_item,omitempty" xml:"sc_item,omitempty"` +} diff --git a/model/fenxiao/TaobaoScitemAddResponse.go b/model/fenxiao/TaobaoScitemAddResponse.go deleted file mode 100644 index f35c0990fb..0000000000 --- a/model/fenxiao/TaobaoScitemAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发布后端商品 API返回值 -taobao.scitem.add - -发布后端商品 -*/ -type TaobaoScitemAddAPIResponse struct { - model.CommonResponse - TaobaoScitemAddResponse -} - -// 发布后端商品 成功返回结果 -type TaobaoScitemAddResponse struct { - XMLName xml.Name `xml:"scitem_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 后台商品信息 - ScItem *ScItem `json:"sc_item,omitempty" xml:"sc_item,omitempty"` -} diff --git a/model/fenxiao/TaobaoScitemGetAPIRequest.go b/model/fenxiao/TaobaoScitemGetAPIRequest.go new file mode 100644 index 0000000000..d2a86f99cf --- /dev/null +++ b/model/fenxiao/TaobaoScitemGetAPIRequest.go @@ -0,0 +1,52 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据id查询商品 API请求 +taobao.scitem.get + +根据id查询商品 +*/ +type TaobaoScitemGetAPIRequest struct { + model.Params + // 商品id + _itemId int64 +} + +// 初始化TaobaoScitemGetAPIRequest对象 +func NewTaobaoScitemGetRequest() *TaobaoScitemGetAPIRequest{ + return &TaobaoScitemGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoScitemGetAPIRequest) GetApiMethodName() string { + return "taobao.scitem.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoScitemGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TaobaoScitemGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoScitemGetAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/fenxiao/TaobaoScitemGetAPIResponse.go b/model/fenxiao/TaobaoScitemGetAPIResponse.go new file mode 100644 index 0000000000..ccfd20072b --- /dev/null +++ b/model/fenxiao/TaobaoScitemGetAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据id查询商品 API返回值 +taobao.scitem.get + +根据id查询商品 +*/ +type TaobaoScitemGetAPIResponse struct { + model.CommonResponse + TaobaoScitemGetAPIResponseModel +} + +// 根据id查询商品 成功返回结果 +type TaobaoScitemGetAPIResponseModel struct { + XMLName xml.Name `xml:"scitem_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 后端商品 + ScItem *ScItem `json:"sc_item,omitempty" xml:"sc_item,omitempty"` +} diff --git a/model/fenxiao/TaobaoScitemGetResponse.go b/model/fenxiao/TaobaoScitemGetResponse.go deleted file mode 100644 index d98d9c01f0..0000000000 --- a/model/fenxiao/TaobaoScitemGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据id查询商品 API返回值 -taobao.scitem.get - -根据id查询商品 -*/ -type TaobaoScitemGetAPIResponse struct { - model.CommonResponse - TaobaoScitemGetResponse -} - -// 根据id查询商品 成功返回结果 -type TaobaoScitemGetResponse struct { - XMLName xml.Name `xml:"scitem_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 后端商品 - ScItem *ScItem `json:"sc_item,omitempty" xml:"sc_item,omitempty"` -} diff --git a/model/fenxiao/TaobaoScitemMapAddAPIRequest.go b/model/fenxiao/TaobaoScitemMapAddAPIRequest.go new file mode 100644 index 0000000000..52e1bbc4b6 --- /dev/null +++ b/model/fenxiao/TaobaoScitemMapAddAPIRequest.go @@ -0,0 +1,108 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建IC商品与后端商品的映射关系 API请求 +taobao.scitem.map.add + +创建IC商品或分销商品与后端商品的映射关系 +*/ +type TaobaoScitemMapAddAPIRequest struct { + model.Params + // 前台ic商品id + _itemId int64 + // 前台ic商品skuid + _skuId int64 + // sc_item_id和outer_code 其中一个不能为空 + _scItemId int64 + // sc_item_id和outer_code 其中一个不能为空 + _outerCode string + // 默认值为false
true:进行高级校验,前端商品或SKU的商家编码必须与后端商品的商家编码一致,否则会拒绝关联
false:不进行高级校验 + _needCheck bool +} + +// 初始化TaobaoScitemMapAddAPIRequest对象 +func NewTaobaoScitemMapAddRequest() *TaobaoScitemMapAddAPIRequest{ + return &TaobaoScitemMapAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoScitemMapAddAPIRequest) GetApiMethodName() string { + return "taobao.scitem.map.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoScitemMapAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 前台ic商品id +func (r *TaobaoScitemMapAddAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoScitemMapAddAPIRequest) GetItemId() int64 { + return r._itemId +} +// SkuId Setter +// 前台ic商品skuid +func (r *TaobaoScitemMapAddAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TaobaoScitemMapAddAPIRequest) GetSkuId() int64 { + return r._skuId +} +// ScItemId Setter +// sc_item_id和outer_code 其中一个不能为空 +func (r *TaobaoScitemMapAddAPIRequest) SetScItemId(_scItemId int64) error { + r._scItemId = _scItemId + r.Set("sc_item_id", _scItemId) + return nil +} + +// ScItemId Getter +func (r TaobaoScitemMapAddAPIRequest) GetScItemId() int64 { + return r._scItemId +} +// OuterCode Setter +// sc_item_id和outer_code 其中一个不能为空 +func (r *TaobaoScitemMapAddAPIRequest) SetOuterCode(_outerCode string) error { + r._outerCode = _outerCode + r.Set("outer_code", _outerCode) + return nil +} + +// OuterCode Getter +func (r TaobaoScitemMapAddAPIRequest) GetOuterCode() string { + return r._outerCode +} +// NeedCheck Setter +// 默认值为false
true:进行高级校验,前端商品或SKU的商家编码必须与后端商品的商家编码一致,否则会拒绝关联
false:不进行高级校验 +func (r *TaobaoScitemMapAddAPIRequest) SetNeedCheck(_needCheck bool) error { + r._needCheck = _needCheck + r.Set("need_check", _needCheck) + return nil +} + +// NeedCheck Getter +func (r TaobaoScitemMapAddAPIRequest) GetNeedCheck() bool { + return r._needCheck +} diff --git a/model/fenxiao/TaobaoScitemMapAddAPIResponse.go b/model/fenxiao/TaobaoScitemMapAddAPIResponse.go new file mode 100644 index 0000000000..603093c4be --- /dev/null +++ b/model/fenxiao/TaobaoScitemMapAddAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建IC商品与后端商品的映射关系 API返回值 +taobao.scitem.map.add + +创建IC商品或分销商品与后端商品的映射关系 +*/ +type TaobaoScitemMapAddAPIResponse struct { + model.CommonResponse + TaobaoScitemMapAddAPIResponseModel +} + +// 创建IC商品与后端商品的映射关系 成功返回结果 +type TaobaoScitemMapAddAPIResponseModel struct { + XMLName xml.Name `xml:"scitem_map_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口调用返回结果信息:商家编码 + OuterCode string `json:"outer_code,omitempty" xml:"outer_code,omitempty"` +} diff --git a/model/fenxiao/TaobaoScitemMapAddResponse.go b/model/fenxiao/TaobaoScitemMapAddResponse.go deleted file mode 100644 index f72a073dcb..0000000000 --- a/model/fenxiao/TaobaoScitemMapAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建IC商品与后端商品的映射关系 API返回值 -taobao.scitem.map.add - -创建IC商品或分销商品与后端商品的映射关系 -*/ -type TaobaoScitemMapAddAPIResponse struct { - model.CommonResponse - TaobaoScitemMapAddResponse -} - -// 创建IC商品与后端商品的映射关系 成功返回结果 -type TaobaoScitemMapAddResponse struct { - XMLName xml.Name `xml:"scitem_map_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口调用返回结果信息:商家编码 - OuterCode string `json:"outer_code,omitempty" xml:"outer_code,omitempty"` -} diff --git a/model/fenxiao/TaobaoScitemMapDeleteAPIRequest.go b/model/fenxiao/TaobaoScitemMapDeleteAPIRequest.go new file mode 100644 index 0000000000..1fa504c23a --- /dev/null +++ b/model/fenxiao/TaobaoScitemMapDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +失效指定用户的商品与后端商品的映射关系 API请求 +taobao.scitem.map.delete + +根据后端商品Id,失效指定用户的商品与后端商品的映射关系 +*/ +type TaobaoScitemMapDeleteAPIRequest struct { + model.Params + // 后台商品ID + _scItemId int64 + // 店铺用户nick。 如果该参数为空则删除后端商品与当前调用人的商品映射关系;如果不为空则删除指定用户与后端商品的映射关系 + _userNick string +} + +// 初始化TaobaoScitemMapDeleteAPIRequest对象 +func NewTaobaoScitemMapDeleteRequest() *TaobaoScitemMapDeleteAPIRequest{ + return &TaobaoScitemMapDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoScitemMapDeleteAPIRequest) GetApiMethodName() string { + return "taobao.scitem.map.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoScitemMapDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ScItemId Setter +// 后台商品ID +func (r *TaobaoScitemMapDeleteAPIRequest) SetScItemId(_scItemId int64) error { + r._scItemId = _scItemId + r.Set("sc_item_id", _scItemId) + return nil +} + +// ScItemId Getter +func (r TaobaoScitemMapDeleteAPIRequest) GetScItemId() int64 { + return r._scItemId +} +// UserNick Setter +// 店铺用户nick。 如果该参数为空则删除后端商品与当前调用人的商品映射关系;如果不为空则删除指定用户与后端商品的映射关系 +func (r *TaobaoScitemMapDeleteAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r TaobaoScitemMapDeleteAPIRequest) GetUserNick() string { + return r._userNick +} diff --git a/model/fenxiao/TaobaoScitemMapDeleteAPIResponse.go b/model/fenxiao/TaobaoScitemMapDeleteAPIResponse.go new file mode 100644 index 0000000000..4dd6ea6bca --- /dev/null +++ b/model/fenxiao/TaobaoScitemMapDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +失效指定用户的商品与后端商品的映射关系 API返回值 +taobao.scitem.map.delete + +根据后端商品Id,失效指定用户的商品与后端商品的映射关系 +*/ +type TaobaoScitemMapDeleteAPIResponse struct { + model.CommonResponse + TaobaoScitemMapDeleteAPIResponseModel +} + +// 失效指定用户的商品与后端商品的映射关系 成功返回结果 +type TaobaoScitemMapDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"scitem_map_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 失效条数 + Module int64 `json:"module,omitempty" xml:"module,omitempty"` +} diff --git a/model/fenxiao/TaobaoScitemMapDeleteResponse.go b/model/fenxiao/TaobaoScitemMapDeleteResponse.go deleted file mode 100644 index 7f32747957..0000000000 --- a/model/fenxiao/TaobaoScitemMapDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -失效指定用户的商品与后端商品的映射关系 API返回值 -taobao.scitem.map.delete - -根据后端商品Id,失效指定用户的商品与后端商品的映射关系 -*/ -type TaobaoScitemMapDeleteAPIResponse struct { - model.CommonResponse - TaobaoScitemMapDeleteResponse -} - -// 失效指定用户的商品与后端商品的映射关系 成功返回结果 -type TaobaoScitemMapDeleteResponse struct { - XMLName xml.Name `xml:"scitem_map_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 失效条数 - Module int64 `json:"module,omitempty" xml:"module,omitempty"` -} diff --git a/model/fenxiao/TaobaoScitemMapQueryAPIRequest.go b/model/fenxiao/TaobaoScitemMapQueryAPIRequest.go new file mode 100644 index 0000000000..be59d347ff --- /dev/null +++ b/model/fenxiao/TaobaoScitemMapQueryAPIRequest.go @@ -0,0 +1,66 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查找IC商品或分销商品与后端商品的关联信息 API请求 +taobao.scitem.map.query + +查找IC商品或分销商品与后端商品的关联信息。skuId如果不传就查找该itemId下所有的sku +*/ +type TaobaoScitemMapQueryAPIRequest struct { + model.Params + // map_type为1:前台ic商品id
map_type为2:分销productid + _itemId int64 + // map_type为1:前台ic商品skuid
map_type为2:分销商品的skuid + _skuId int64 +} + +// 初始化TaobaoScitemMapQueryAPIRequest对象 +func NewTaobaoScitemMapQueryRequest() *TaobaoScitemMapQueryAPIRequest{ + return &TaobaoScitemMapQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoScitemMapQueryAPIRequest) GetApiMethodName() string { + return "taobao.scitem.map.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoScitemMapQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// map_type为1:前台ic商品id
map_type为2:分销productid +func (r *TaobaoScitemMapQueryAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoScitemMapQueryAPIRequest) GetItemId() int64 { + return r._itemId +} +// SkuId Setter +// map_type为1:前台ic商品skuid
map_type为2:分销商品的skuid +func (r *TaobaoScitemMapQueryAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TaobaoScitemMapQueryAPIRequest) GetSkuId() int64 { + return r._skuId +} diff --git a/model/fenxiao/TaobaoScitemMapQueryAPIResponse.go b/model/fenxiao/TaobaoScitemMapQueryAPIResponse.go new file mode 100644 index 0000000000..8cf45aa3ca --- /dev/null +++ b/model/fenxiao/TaobaoScitemMapQueryAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查找IC商品或分销商品与后端商品的关联信息 API返回值 +taobao.scitem.map.query + +查找IC商品或分销商品与后端商品的关联信息。skuId如果不传就查找该itemId下所有的sku +*/ +type TaobaoScitemMapQueryAPIResponse struct { + model.CommonResponse + TaobaoScitemMapQueryAPIResponseModel +} + +// 查找IC商品或分销商品与后端商品的关联信息 成功返回结果 +type TaobaoScitemMapQueryAPIResponseModel struct { + XMLName xml.Name `xml:"scitem_map_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 后端商品映射列表 + ScItemMaps []ScItemMap `json:"sc_item_maps,omitempty" xml:"sc_item_maps>sc_item_map,omitempty"` +} diff --git a/model/fenxiao/TaobaoScitemMapQueryResponse.go b/model/fenxiao/TaobaoScitemMapQueryResponse.go deleted file mode 100644 index 30376ff167..0000000000 --- a/model/fenxiao/TaobaoScitemMapQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查找IC商品或分销商品与后端商品的关联信息 API返回值 -taobao.scitem.map.query - -查找IC商品或分销商品与后端商品的关联信息。skuId如果不传就查找该itemId下所有的sku -*/ -type TaobaoScitemMapQueryAPIResponse struct { - model.CommonResponse - TaobaoScitemMapQueryResponse -} - -// 查找IC商品或分销商品与后端商品的关联信息 成功返回结果 -type TaobaoScitemMapQueryResponse struct { - XMLName xml.Name `xml:"scitem_map_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 后端商品映射列表 - ScItemMaps []ScItemMap `json:"sc_item_maps,omitempty" xml:"sc_item_maps>sc_item_map,omitempty"` -} diff --git a/model/fenxiao/TaobaoScitemOutercodeGetAPIRequest.go b/model/fenxiao/TaobaoScitemOutercodeGetAPIRequest.go new file mode 100644 index 0000000000..2afd85626e --- /dev/null +++ b/model/fenxiao/TaobaoScitemOutercodeGetAPIRequest.go @@ -0,0 +1,52 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据outerCode查询商品 API请求 +taobao.scitem.outercode.get + +根据outerCode查询商品 +*/ +type TaobaoScitemOutercodeGetAPIRequest struct { + model.Params + // 商品编码 + _outerCode string +} + +// 初始化TaobaoScitemOutercodeGetAPIRequest对象 +func NewTaobaoScitemOutercodeGetRequest() *TaobaoScitemOutercodeGetAPIRequest{ + return &TaobaoScitemOutercodeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoScitemOutercodeGetAPIRequest) GetApiMethodName() string { + return "taobao.scitem.outercode.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoScitemOutercodeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterCode Setter +// 商品编码 +func (r *TaobaoScitemOutercodeGetAPIRequest) SetOuterCode(_outerCode string) error { + r._outerCode = _outerCode + r.Set("outer_code", _outerCode) + return nil +} + +// OuterCode Getter +func (r TaobaoScitemOutercodeGetAPIRequest) GetOuterCode() string { + return r._outerCode +} diff --git a/model/fenxiao/TaobaoScitemOutercodeGetAPIResponse.go b/model/fenxiao/TaobaoScitemOutercodeGetAPIResponse.go new file mode 100644 index 0000000000..ab22d42283 --- /dev/null +++ b/model/fenxiao/TaobaoScitemOutercodeGetAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据outerCode查询商品 API返回值 +taobao.scitem.outercode.get + +根据outerCode查询商品 +*/ +type TaobaoScitemOutercodeGetAPIResponse struct { + model.CommonResponse + TaobaoScitemOutercodeGetAPIResponseModel +} + +// 根据outerCode查询商品 成功返回结果 +type TaobaoScitemOutercodeGetAPIResponseModel struct { + XMLName xml.Name `xml:"scitem_outercode_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 后台商品 + ScItem *ScItem `json:"sc_item,omitempty" xml:"sc_item,omitempty"` +} diff --git a/model/fenxiao/TaobaoScitemOutercodeGetResponse.go b/model/fenxiao/TaobaoScitemOutercodeGetResponse.go deleted file mode 100644 index d2e24fb06a..0000000000 --- a/model/fenxiao/TaobaoScitemOutercodeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据outerCode查询商品 API返回值 -taobao.scitem.outercode.get - -根据outerCode查询商品 -*/ -type TaobaoScitemOutercodeGetAPIResponse struct { - model.CommonResponse - TaobaoScitemOutercodeGetResponse -} - -// 根据outerCode查询商品 成功返回结果 -type TaobaoScitemOutercodeGetResponse struct { - XMLName xml.Name `xml:"scitem_outercode_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 后台商品 - ScItem *ScItem `json:"sc_item,omitempty" xml:"sc_item,omitempty"` -} diff --git a/model/fenxiao/TaobaoScitemQueryAPIRequest.go b/model/fenxiao/TaobaoScitemQueryAPIRequest.go new file mode 100644 index 0000000000..ec30806e2d --- /dev/null +++ b/model/fenxiao/TaobaoScitemQueryAPIRequest.go @@ -0,0 +1,136 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询后端商品 API请求 +taobao.scitem.query + +查询后端商品 +*/ +type TaobaoScitemQueryAPIRequest struct { + model.Params + // 商品名称 + _itemName string + // 商家给商品的一个编码 + _outerCode string + // 条形码 + _barCode string + // ITEM类型(只允许输入以下英文或空) NORMAL 0:普通商品; COMBINE 1:是否是组合商品 DISTRIBUTION + _itemType int64 + // 仓库编码 + _wmsCode string + // 当前页码数 + _pageIndex int64 + // 分页记录个数,如果用户输入的记录数大于50,则一页显示50条记录 + _pageSize int64 +} + +// 初始化TaobaoScitemQueryAPIRequest对象 +func NewTaobaoScitemQueryRequest() *TaobaoScitemQueryAPIRequest{ + return &TaobaoScitemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoScitemQueryAPIRequest) GetApiMethodName() string { + return "taobao.scitem.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoScitemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemName Setter +// 商品名称 +func (r *TaobaoScitemQueryAPIRequest) SetItemName(_itemName string) error { + r._itemName = _itemName + r.Set("item_name", _itemName) + return nil +} + +// ItemName Getter +func (r TaobaoScitemQueryAPIRequest) GetItemName() string { + return r._itemName +} +// OuterCode Setter +// 商家给商品的一个编码 +func (r *TaobaoScitemQueryAPIRequest) SetOuterCode(_outerCode string) error { + r._outerCode = _outerCode + r.Set("outer_code", _outerCode) + return nil +} + +// OuterCode Getter +func (r TaobaoScitemQueryAPIRequest) GetOuterCode() string { + return r._outerCode +} +// BarCode Setter +// 条形码 +func (r *TaobaoScitemQueryAPIRequest) SetBarCode(_barCode string) error { + r._barCode = _barCode + r.Set("bar_code", _barCode) + return nil +} + +// BarCode Getter +func (r TaobaoScitemQueryAPIRequest) GetBarCode() string { + return r._barCode +} +// ItemType Setter +// ITEM类型(只允许输入以下英文或空) NORMAL 0:普通商品; COMBINE 1:是否是组合商品 DISTRIBUTION +func (r *TaobaoScitemQueryAPIRequest) SetItemType(_itemType int64) error { + r._itemType = _itemType + r.Set("item_type", _itemType) + return nil +} + +// ItemType Getter +func (r TaobaoScitemQueryAPIRequest) GetItemType() int64 { + return r._itemType +} +// WmsCode Setter +// 仓库编码 +func (r *TaobaoScitemQueryAPIRequest) SetWmsCode(_wmsCode string) error { + r._wmsCode = _wmsCode + r.Set("wms_code", _wmsCode) + return nil +} + +// WmsCode Getter +func (r TaobaoScitemQueryAPIRequest) GetWmsCode() string { + return r._wmsCode +} +// PageIndex Setter +// 当前页码数 +func (r *TaobaoScitemQueryAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TaobaoScitemQueryAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} +// PageSize Setter +// 分页记录个数,如果用户输入的记录数大于50,则一页显示50条记录 +func (r *TaobaoScitemQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoScitemQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/fenxiao/TaobaoScitemQueryAPIResponse.go b/model/fenxiao/TaobaoScitemQueryAPIResponse.go new file mode 100644 index 0000000000..2bd54314ad --- /dev/null +++ b/model/fenxiao/TaobaoScitemQueryAPIResponse.go @@ -0,0 +1,31 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询后端商品 API返回值 +taobao.scitem.query + +查询后端商品 +*/ +type TaobaoScitemQueryAPIResponse struct { + model.CommonResponse + TaobaoScitemQueryAPIResponseModel +} + +// 查询后端商品 成功返回结果 +type TaobaoScitemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"scitem_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // List + ScItemList []ScItem `json:"sc_item_list,omitempty" xml:"sc_item_list>sc_item,omitempty"` + // 商品条数 + TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` + // 分页 + QueryPagination *QueryPagination `json:"query_pagination,omitempty" xml:"query_pagination,omitempty"` +} diff --git a/model/fenxiao/TaobaoScitemQueryResponse.go b/model/fenxiao/TaobaoScitemQueryResponse.go deleted file mode 100644 index c5b64a6b25..0000000000 --- a/model/fenxiao/TaobaoScitemQueryResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询后端商品 API返回值 -taobao.scitem.query - -查询后端商品 -*/ -type TaobaoScitemQueryAPIResponse struct { - model.CommonResponse - TaobaoScitemQueryResponse -} - -// 查询后端商品 成功返回结果 -type TaobaoScitemQueryResponse struct { - XMLName xml.Name `xml:"scitem_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // List - ScItemList []ScItem `json:"sc_item_list,omitempty" xml:"sc_item_list>sc_item,omitempty"` - // 商品条数 - TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` - // 分页 - QueryPagination *QueryPagination `json:"query_pagination,omitempty" xml:"query_pagination,omitempty"` -} diff --git a/model/fenxiao/TaobaoScitemUpdateAPIRequest.go b/model/fenxiao/TaobaoScitemUpdateAPIRequest.go new file mode 100644 index 0000000000..1a16dcc544 --- /dev/null +++ b/model/fenxiao/TaobaoScitemUpdateAPIRequest.go @@ -0,0 +1,374 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据商品ID或商家编码修改后端商品 API请求 +taobao.scitem.update + +根据商品ID或商家编码修改后端商品 +*/ +type TaobaoScitemUpdateAPIRequest struct { + model.Params + // 后端商品ID,跟outer_code必须指定一个 + _itemId int64 + // 商家编码,跟item_id必须指定一个 + _outerCode string + // 商品名称 + _itemName string + // 0.普通供应链商品 1.供应链组合主商品 + _itemType int64 + // 需要更新的商品属性格式是 p1:v1,p2:v2,p3:v3 + _updateProperties string + // 条形码 + _barCode string + // 仓储商编码 + _wmsCode string + // 是否易碎 0:不是 1:是 + _isFriable int64 + // 是否危险 0:不是 0:是 + _isDangerous int64 + // 是否是贵重品 0:不是 1:是 + _isCostly int64 + // 是否保质期:0:不是 1:是 + _isWarranty int64 + // weight + _weight int64 + // 长度 单位:mm + _length int64 + // 宽 单位:mm + _width int64 + // 高 单位:mm + _height int64 + // 体积:立方厘米 + _volume int64 + // price + _price int64 + // remark + _remark string + // 0:液体,1:粉体,2:固体 + _matterStatus int64 + // 品牌id + _brandId int64 + // brand_Name + _brandName string + // 淘宝SKU产品级编码CSPU ID + _spuId int64 + // 移除商品属性P列表,P由系统分配:p1;p2 + _removeProperties string + // 1表示区域销售,0或是空是非区域销售 + _isAreaSale int64 +} + +// 初始化TaobaoScitemUpdateAPIRequest对象 +func NewTaobaoScitemUpdateRequest() *TaobaoScitemUpdateAPIRequest{ + return &TaobaoScitemUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoScitemUpdateAPIRequest) GetApiMethodName() string { + return "taobao.scitem.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoScitemUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 后端商品ID,跟outer_code必须指定一个 +func (r *TaobaoScitemUpdateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoScitemUpdateAPIRequest) GetItemId() int64 { + return r._itemId +} +// OuterCode Setter +// 商家编码,跟item_id必须指定一个 +func (r *TaobaoScitemUpdateAPIRequest) SetOuterCode(_outerCode string) error { + r._outerCode = _outerCode + r.Set("outer_code", _outerCode) + return nil +} + +// OuterCode Getter +func (r TaobaoScitemUpdateAPIRequest) GetOuterCode() string { + return r._outerCode +} +// ItemName Setter +// 商品名称 +func (r *TaobaoScitemUpdateAPIRequest) SetItemName(_itemName string) error { + r._itemName = _itemName + r.Set("item_name", _itemName) + return nil +} + +// ItemName Getter +func (r TaobaoScitemUpdateAPIRequest) GetItemName() string { + return r._itemName +} +// ItemType Setter +// 0.普通供应链商品 1.供应链组合主商品 +func (r *TaobaoScitemUpdateAPIRequest) SetItemType(_itemType int64) error { + r._itemType = _itemType + r.Set("item_type", _itemType) + return nil +} + +// ItemType Getter +func (r TaobaoScitemUpdateAPIRequest) GetItemType() int64 { + return r._itemType +} +// UpdateProperties Setter +// 需要更新的商品属性格式是 p1:v1,p2:v2,p3:v3 +func (r *TaobaoScitemUpdateAPIRequest) SetUpdateProperties(_updateProperties string) error { + r._updateProperties = _updateProperties + r.Set("update_properties", _updateProperties) + return nil +} + +// UpdateProperties Getter +func (r TaobaoScitemUpdateAPIRequest) GetUpdateProperties() string { + return r._updateProperties +} +// BarCode Setter +// 条形码 +func (r *TaobaoScitemUpdateAPIRequest) SetBarCode(_barCode string) error { + r._barCode = _barCode + r.Set("bar_code", _barCode) + return nil +} + +// BarCode Getter +func (r TaobaoScitemUpdateAPIRequest) GetBarCode() string { + return r._barCode +} +// WmsCode Setter +// 仓储商编码 +func (r *TaobaoScitemUpdateAPIRequest) SetWmsCode(_wmsCode string) error { + r._wmsCode = _wmsCode + r.Set("wms_code", _wmsCode) + return nil +} + +// WmsCode Getter +func (r TaobaoScitemUpdateAPIRequest) GetWmsCode() string { + return r._wmsCode +} +// IsFriable Setter +// 是否易碎 0:不是 1:是 +func (r *TaobaoScitemUpdateAPIRequest) SetIsFriable(_isFriable int64) error { + r._isFriable = _isFriable + r.Set("is_friable", _isFriable) + return nil +} + +// IsFriable Getter +func (r TaobaoScitemUpdateAPIRequest) GetIsFriable() int64 { + return r._isFriable +} +// IsDangerous Setter +// 是否危险 0:不是 0:是 +func (r *TaobaoScitemUpdateAPIRequest) SetIsDangerous(_isDangerous int64) error { + r._isDangerous = _isDangerous + r.Set("is_dangerous", _isDangerous) + return nil +} + +// IsDangerous Getter +func (r TaobaoScitemUpdateAPIRequest) GetIsDangerous() int64 { + return r._isDangerous +} +// IsCostly Setter +// 是否是贵重品 0:不是 1:是 +func (r *TaobaoScitemUpdateAPIRequest) SetIsCostly(_isCostly int64) error { + r._isCostly = _isCostly + r.Set("is_costly", _isCostly) + return nil +} + +// IsCostly Getter +func (r TaobaoScitemUpdateAPIRequest) GetIsCostly() int64 { + return r._isCostly +} +// IsWarranty Setter +// 是否保质期:0:不是 1:是 +func (r *TaobaoScitemUpdateAPIRequest) SetIsWarranty(_isWarranty int64) error { + r._isWarranty = _isWarranty + r.Set("is_warranty", _isWarranty) + return nil +} + +// IsWarranty Getter +func (r TaobaoScitemUpdateAPIRequest) GetIsWarranty() int64 { + return r._isWarranty +} +// Weight Setter +// weight +func (r *TaobaoScitemUpdateAPIRequest) SetWeight(_weight int64) error { + r._weight = _weight + r.Set("weight", _weight) + return nil +} + +// Weight Getter +func (r TaobaoScitemUpdateAPIRequest) GetWeight() int64 { + return r._weight +} +// Length Setter +// 长度 单位:mm +func (r *TaobaoScitemUpdateAPIRequest) SetLength(_length int64) error { + r._length = _length + r.Set("length", _length) + return nil +} + +// Length Getter +func (r TaobaoScitemUpdateAPIRequest) GetLength() int64 { + return r._length +} +// Width Setter +// 宽 单位:mm +func (r *TaobaoScitemUpdateAPIRequest) SetWidth(_width int64) error { + r._width = _width + r.Set("width", _width) + return nil +} + +// Width Getter +func (r TaobaoScitemUpdateAPIRequest) GetWidth() int64 { + return r._width +} +// Height Setter +// 高 单位:mm +func (r *TaobaoScitemUpdateAPIRequest) SetHeight(_height int64) error { + r._height = _height + r.Set("height", _height) + return nil +} + +// Height Getter +func (r TaobaoScitemUpdateAPIRequest) GetHeight() int64 { + return r._height +} +// Volume Setter +// 体积:立方厘米 +func (r *TaobaoScitemUpdateAPIRequest) SetVolume(_volume int64) error { + r._volume = _volume + r.Set("volume", _volume) + return nil +} + +// Volume Getter +func (r TaobaoScitemUpdateAPIRequest) GetVolume() int64 { + return r._volume +} +// Price Setter +// price +func (r *TaobaoScitemUpdateAPIRequest) SetPrice(_price int64) error { + r._price = _price + r.Set("price", _price) + return nil +} + +// Price Getter +func (r TaobaoScitemUpdateAPIRequest) GetPrice() int64 { + return r._price +} +// Remark Setter +// remark +func (r *TaobaoScitemUpdateAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r TaobaoScitemUpdateAPIRequest) GetRemark() string { + return r._remark +} +// MatterStatus Setter +// 0:液体,1:粉体,2:固体 +func (r *TaobaoScitemUpdateAPIRequest) SetMatterStatus(_matterStatus int64) error { + r._matterStatus = _matterStatus + r.Set("matter_status", _matterStatus) + return nil +} + +// MatterStatus Getter +func (r TaobaoScitemUpdateAPIRequest) GetMatterStatus() int64 { + return r._matterStatus +} +// BrandId Setter +// 品牌id +func (r *TaobaoScitemUpdateAPIRequest) SetBrandId(_brandId int64) error { + r._brandId = _brandId + r.Set("brand_id", _brandId) + return nil +} + +// BrandId Getter +func (r TaobaoScitemUpdateAPIRequest) GetBrandId() int64 { + return r._brandId +} +// BrandName Setter +// brand_Name +func (r *TaobaoScitemUpdateAPIRequest) SetBrandName(_brandName string) error { + r._brandName = _brandName + r.Set("brand_name", _brandName) + return nil +} + +// BrandName Getter +func (r TaobaoScitemUpdateAPIRequest) GetBrandName() string { + return r._brandName +} +// SpuId Setter +// 淘宝SKU产品级编码CSPU ID +func (r *TaobaoScitemUpdateAPIRequest) SetSpuId(_spuId int64) error { + r._spuId = _spuId + r.Set("spu_id", _spuId) + return nil +} + +// SpuId Getter +func (r TaobaoScitemUpdateAPIRequest) GetSpuId() int64 { + return r._spuId +} +// RemoveProperties Setter +// 移除商品属性P列表,P由系统分配:p1;p2 +func (r *TaobaoScitemUpdateAPIRequest) SetRemoveProperties(_removeProperties string) error { + r._removeProperties = _removeProperties + r.Set("remove_properties", _removeProperties) + return nil +} + +// RemoveProperties Getter +func (r TaobaoScitemUpdateAPIRequest) GetRemoveProperties() string { + return r._removeProperties +} +// IsAreaSale Setter +// 1表示区域销售,0或是空是非区域销售 +func (r *TaobaoScitemUpdateAPIRequest) SetIsAreaSale(_isAreaSale int64) error { + r._isAreaSale = _isAreaSale + r.Set("is_area_sale", _isAreaSale) + return nil +} + +// IsAreaSale Getter +func (r TaobaoScitemUpdateAPIRequest) GetIsAreaSale() int64 { + return r._isAreaSale +} diff --git a/model/fenxiao/TaobaoScitemUpdateAPIResponse.go b/model/fenxiao/TaobaoScitemUpdateAPIResponse.go new file mode 100644 index 0000000000..1fa4c32fb0 --- /dev/null +++ b/model/fenxiao/TaobaoScitemUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据商品ID或商家编码修改后端商品 API返回值 +taobao.scitem.update + +根据商品ID或商家编码修改后端商品 +*/ +type TaobaoScitemUpdateAPIResponse struct { + model.CommonResponse + TaobaoScitemUpdateAPIResponseModel +} + +// 根据商品ID或商家编码修改后端商品 成功返回结果 +type TaobaoScitemUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"scitem_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 更新商品数量,1表示成功更新了一条数据,0:表示未找到匹配的数据 + UpdateRows int64 `json:"update_rows,omitempty" xml:"update_rows,omitempty"` +} diff --git a/model/fenxiao/TaobaoScitemUpdateResponse.go b/model/fenxiao/TaobaoScitemUpdateResponse.go deleted file mode 100644 index 3fba95792c..0000000000 --- a/model/fenxiao/TaobaoScitemUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据商品ID或商家编码修改后端商品 API返回值 -taobao.scitem.update - -根据商品ID或商家编码修改后端商品 -*/ -type TaobaoScitemUpdateAPIResponse struct { - model.CommonResponse - TaobaoScitemUpdateResponse -} - -// 根据商品ID或商家编码修改后端商品 成功返回结果 -type TaobaoScitemUpdateResponse struct { - XMLName xml.Name `xml:"scitem_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 更新商品数量,1表示成功更新了一条数据,0:表示未找到匹配的数据 - UpdateRows int64 `json:"update_rows,omitempty" xml:"update_rows,omitempty"` -} diff --git a/model/fenxiao/TmallChannelProductsGetAPIRequest.go b/model/fenxiao/TmallChannelProductsGetAPIRequest.go new file mode 100644 index 0000000000..e38777f888 --- /dev/null +++ b/model/fenxiao/TmallChannelProductsGetAPIRequest.go @@ -0,0 +1,60 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询供应商的产品数据 API请求 +tmall.channel.products.get + +查询供应商的产品数据。 + +* 入参传入pids将优先查询,即只按这个条件查询。 +*入参传入sku_number将优先查询(没有传入pids),即只按这个条件查询(最多显示50条) +* 入参fields传skus将查询sku的数据,不传该参数默认不查询,返回产品的其它信息。 +* 入参fields传入images将查询多图数据,不传只返回主图数据。 +* 入参fields仅对传入pids生效(只有按ID查询时,才能查询额外的数据) +* 查询结果按照产品发布时间倒序,即时间近的数据在前。 +* 传入channel 渠道,会只返回相应渠道的产品 +*/ +type TmallChannelProductsGetAPIRequest struct { + model.Params + // top_query_product_d_o + _topQueryProductDO *TopQueryProductDo +} + +// 初始化TmallChannelProductsGetAPIRequest对象 +func NewTmallChannelProductsGetRequest() *TmallChannelProductsGetAPIRequest{ + return &TmallChannelProductsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallChannelProductsGetAPIRequest) GetApiMethodName() string { + return "tmall.channel.products.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallChannelProductsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TopQueryProductDO Setter +// top_query_product_d_o +func (r *TmallChannelProductsGetAPIRequest) SetTopQueryProductDO(_topQueryProductDO *TopQueryProductDo) error { + r._topQueryProductDO = _topQueryProductDO + r.Set("top_query_product_d_o", _topQueryProductDO) + return nil +} + +// TopQueryProductDO Getter +func (r TmallChannelProductsGetAPIRequest) GetTopQueryProductDO() *TopQueryProductDo { + return r._topQueryProductDO +} diff --git a/model/fenxiao/TmallChannelProductsGetAPIResponse.go b/model/fenxiao/TmallChannelProductsGetAPIResponse.go new file mode 100644 index 0000000000..6a8b31402b --- /dev/null +++ b/model/fenxiao/TmallChannelProductsGetAPIResponse.go @@ -0,0 +1,37 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询供应商的产品数据 API返回值 +tmall.channel.products.get + +查询供应商的产品数据。 + +* 入参传入pids将优先查询,即只按这个条件查询。 +*入参传入sku_number将优先查询(没有传入pids),即只按这个条件查询(最多显示50条) +* 入参fields传skus将查询sku的数据,不传该参数默认不查询,返回产品的其它信息。 +* 入参fields传入images将查询多图数据,不传只返回主图数据。 +* 入参fields仅对传入pids生效(只有按ID查询时,才能查询额外的数据) +* 查询结果按照产品发布时间倒序,即时间近的数据在前。 +* 传入channel 渠道,会只返回相应渠道的产品 +*/ +type TmallChannelProductsGetAPIResponse struct { + model.CommonResponse + TmallChannelProductsGetAPIResponseModel +} + +// 查询供应商的产品数据 成功返回结果 +type TmallChannelProductsGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_channel_products_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 产品对象记录集 + Products []TopProductDo `json:"products,omitempty" xml:"products>top_product_do,omitempty"` + // 查询结果记录数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/fenxiao/TmallChannelProductsGetResponse.go b/model/fenxiao/TmallChannelProductsGetResponse.go deleted file mode 100644 index 4664059632..0000000000 --- a/model/fenxiao/TmallChannelProductsGetResponse.go +++ /dev/null @@ -1,37 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询供应商的产品数据 API返回值 -tmall.channel.products.get - -查询供应商的产品数据。 - -* 入参传入pids将优先查询,即只按这个条件查询。 -*入参传入sku_number将优先查询(没有传入pids),即只按这个条件查询(最多显示50条) -* 入参fields传skus将查询sku的数据,不传该参数默认不查询,返回产品的其它信息。 -* 入参fields传入images将查询多图数据,不传只返回主图数据。 -* 入参fields仅对传入pids生效(只有按ID查询时,才能查询额外的数据) -* 查询结果按照产品发布时间倒序,即时间近的数据在前。 -* 传入channel 渠道,会只返回相应渠道的产品 -*/ -type TmallChannelProductsGetAPIResponse struct { - model.CommonResponse - TmallChannelProductsGetResponse -} - -// 查询供应商的产品数据 成功返回结果 -type TmallChannelProductsGetResponse struct { - XMLName xml.Name `xml:"tmall_channel_products_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 产品对象记录集 - Products []TopProductDo `json:"products,omitempty" xml:"products>top_product_do,omitempty"` - // 查询结果记录数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/fenxiao/TmallInventoryQueryForstoreAPIRequest.go b/model/fenxiao/TmallInventoryQueryForstoreAPIRequest.go new file mode 100644 index 0000000000..36090cef62 --- /dev/null +++ b/model/fenxiao/TmallInventoryQueryForstoreAPIRequest.go @@ -0,0 +1,52 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询后端商品仓库库存 API请求 +tmall.inventory.query.forstore + +商家查询后端商品仓库库存 +*/ +type TmallInventoryQueryForstoreAPIRequest struct { + model.Params + // 查询列表 + _paramList []InventoryQueryForStoreRequest +} + +// 初始化TmallInventoryQueryForstoreAPIRequest对象 +func NewTmallInventoryQueryForstoreRequest() *TmallInventoryQueryForstoreAPIRequest{ + return &TmallInventoryQueryForstoreAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallInventoryQueryForstoreAPIRequest) GetApiMethodName() string { + return "tmall.inventory.query.forstore" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallInventoryQueryForstoreAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamList Setter +// 查询列表 +func (r *TmallInventoryQueryForstoreAPIRequest) SetParamList(_paramList []InventoryQueryForStoreRequest) error { + r._paramList = _paramList + r.Set("param_list", _paramList) + return nil +} + +// ParamList Getter +func (r TmallInventoryQueryForstoreAPIRequest) GetParamList() []InventoryQueryForStoreRequest { + return r._paramList +} diff --git a/model/fenxiao/TmallInventoryQueryForstoreAPIResponse.go b/model/fenxiao/TmallInventoryQueryForstoreAPIResponse.go new file mode 100644 index 0000000000..cf47648fdb --- /dev/null +++ b/model/fenxiao/TmallInventoryQueryForstoreAPIResponse.go @@ -0,0 +1,33 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询后端商品仓库库存 API返回值 +tmall.inventory.query.forstore + +商家查询后端商品仓库库存 +*/ +type TmallInventoryQueryForstoreAPIResponse struct { + model.CommonResponse + TmallInventoryQueryForstoreAPIResponseModel +} + +// 查询后端商品仓库库存 成功返回结果 +type TmallInventoryQueryForstoreAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_inventory_query_forstore_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果 + Result *InventoryQueryResult `json:"result,omitempty" xml:"result,omitempty"` + // 错误code + Errorcode string `json:"errorcode,omitempty" xml:"errorcode,omitempty"` + // 错误信息 + Errormessage string `json:"errormessage,omitempty" xml:"errormessage,omitempty"` + // 整体成功或失败 + Issuccess bool `json:"issuccess,omitempty" xml:"issuccess,omitempty"` +} diff --git a/model/fenxiao/TmallInventoryQueryForstoreResponse.go b/model/fenxiao/TmallInventoryQueryForstoreResponse.go deleted file mode 100644 index 23b508b28e..0000000000 --- a/model/fenxiao/TmallInventoryQueryForstoreResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询后端商品仓库库存 API返回值 -tmall.inventory.query.forstore - -商家查询后端商品仓库库存 -*/ -type TmallInventoryQueryForstoreAPIResponse struct { - model.CommonResponse - TmallInventoryQueryForstoreResponse -} - -// 查询后端商品仓库库存 成功返回结果 -type TmallInventoryQueryForstoreResponse struct { - XMLName xml.Name `xml:"tmall_inventory_query_forstore_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果 - Result *InventoryQueryResult `json:"result,omitempty" xml:"result,omitempty"` - // 错误code - Errorcode string `json:"errorcode,omitempty" xml:"errorcode,omitempty"` - // 错误信息 - Errormessage string `json:"errormessage,omitempty" xml:"errormessage,omitempty"` - // 整体成功或失败 - Issuccess bool `json:"issuccess,omitempty" xml:"issuccess,omitempty"` -} diff --git a/model/fenxiao/TmallSupplychainChannelProductDownshelfAPIRequest.go b/model/fenxiao/TmallSupplychainChannelProductDownshelfAPIRequest.go new file mode 100644 index 0000000000..774fe160ae --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductDownshelfAPIRequest.go @@ -0,0 +1,52 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +产品下架 API请求 +tmall.supplychain.channel.product.downshelf + +产品下架 +*/ +type TmallSupplychainChannelProductDownshelfAPIRequest struct { + model.Params + // 产品ID + _productId int64 +} + +// 初始化TmallSupplychainChannelProductDownshelfAPIRequest对象 +func NewTmallSupplychainChannelProductDownshelfRequest() *TmallSupplychainChannelProductDownshelfAPIRequest{ + return &TmallSupplychainChannelProductDownshelfAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallSupplychainChannelProductDownshelfAPIRequest) GetApiMethodName() string { + return "tmall.supplychain.channel.product.downshelf" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallSupplychainChannelProductDownshelfAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品ID +func (r *TmallSupplychainChannelProductDownshelfAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TmallSupplychainChannelProductDownshelfAPIRequest) GetProductId() int64 { + return r._productId +} diff --git a/model/fenxiao/TmallSupplychainChannelProductDownshelfAPIResponse.go b/model/fenxiao/TmallSupplychainChannelProductDownshelfAPIResponse.go new file mode 100644 index 0000000000..e269f91861 --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductDownshelfAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +产品下架 API返回值 +tmall.supplychain.channel.product.downshelf + +产品下架 +*/ +type TmallSupplychainChannelProductDownshelfAPIResponse struct { + model.CommonResponse + TmallSupplychainChannelProductDownshelfAPIResponseModel +} + +// 产品下架 成功返回结果 +type TmallSupplychainChannelProductDownshelfAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_supplychain_channel_product_downshelf_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *TmallSupplychainChannelProductDownshelfResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fenxiao/TmallSupplychainChannelProductDownshelfResponse.go b/model/fenxiao/TmallSupplychainChannelProductDownshelfResponse.go deleted file mode 100644 index 6419497a59..0000000000 --- a/model/fenxiao/TmallSupplychainChannelProductDownshelfResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -产品下架 API返回值 -tmall.supplychain.channel.product.downshelf - -产品下架 -*/ -type TmallSupplychainChannelProductDownshelfAPIResponse struct { - model.CommonResponse - TmallSupplychainChannelProductDownshelfResponse -} - -// 产品下架 成功返回结果 -type TmallSupplychainChannelProductDownshelfResponse struct { - XMLName xml.Name `xml:"tmall_supplychain_channel_product_downshelf_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *TmallSupplychainChannelProductDownshelfResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fenxiao/TmallSupplychainChannelProductDownshelfResultDto.go b/model/fenxiao/TmallSupplychainChannelProductDownshelfResultDto.go new file mode 100644 index 0000000000..99e69e60cd --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductDownshelfResultDto.go @@ -0,0 +1,13 @@ +package fenxiao + +// TmallSupplychainChannelProductDownshelfResultDto +type TmallSupplychainChannelProductDownshelfResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 下架结果 + Module bool `json:"module,omitempty" xml:"module,omitempty"` + // 错误码 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/fenxiao/TmallSupplychainChannelProductPriceGetAPIRequest.go b/model/fenxiao/TmallSupplychainChannelProductPriceGetAPIRequest.go new file mode 100644 index 0000000000..cb78a663c4 --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductPriceGetAPIRequest.go @@ -0,0 +1,94 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道价格查询接口 API请求 +tmall.supplychain.channel.product.price.get + +渠道价格查询接口 +*/ +type TmallSupplychainChannelProductPriceGetAPIRequest struct { + model.Params + // 产品ID + _productId int64 + // 区域价、指导价 + _priceType int64 + // SKU ID + _skuId int64 + // 渠道ID(台湾市场/供销平台/大农业…..) + _channelCode int64 +} + +// 初始化TmallSupplychainChannelProductPriceGetAPIRequest对象 +func NewTmallSupplychainChannelProductPriceGetRequest() *TmallSupplychainChannelProductPriceGetAPIRequest{ + return &TmallSupplychainChannelProductPriceGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallSupplychainChannelProductPriceGetAPIRequest) GetApiMethodName() string { + return "tmall.supplychain.channel.product.price.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallSupplychainChannelProductPriceGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品ID +func (r *TmallSupplychainChannelProductPriceGetAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TmallSupplychainChannelProductPriceGetAPIRequest) GetProductId() int64 { + return r._productId +} +// PriceType Setter +// 区域价、指导价 +func (r *TmallSupplychainChannelProductPriceGetAPIRequest) SetPriceType(_priceType int64) error { + r._priceType = _priceType + r.Set("price_type", _priceType) + return nil +} + +// PriceType Getter +func (r TmallSupplychainChannelProductPriceGetAPIRequest) GetPriceType() int64 { + return r._priceType +} +// SkuId Setter +// SKU ID +func (r *TmallSupplychainChannelProductPriceGetAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TmallSupplychainChannelProductPriceGetAPIRequest) GetSkuId() int64 { + return r._skuId +} +// ChannelCode Setter +// 渠道ID(台湾市场/供销平台/大农业…..) +func (r *TmallSupplychainChannelProductPriceGetAPIRequest) SetChannelCode(_channelCode int64) error { + r._channelCode = _channelCode + r.Set("channel_code", _channelCode) + return nil +} + +// ChannelCode Getter +func (r TmallSupplychainChannelProductPriceGetAPIRequest) GetChannelCode() int64 { + return r._channelCode +} diff --git a/model/fenxiao/TmallSupplychainChannelProductPriceGetAPIResponse.go b/model/fenxiao/TmallSupplychainChannelProductPriceGetAPIResponse.go new file mode 100644 index 0000000000..1ba6a4a8fb --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductPriceGetAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道价格查询接口 API返回值 +tmall.supplychain.channel.product.price.get + +渠道价格查询接口 +*/ +type TmallSupplychainChannelProductPriceGetAPIResponse struct { + model.CommonResponse + TmallSupplychainChannelProductPriceGetAPIResponseModel +} + +// 渠道价格查询接口 成功返回结果 +type TmallSupplychainChannelProductPriceGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_supplychain_channel_product_price_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *TmallSupplychainChannelProductPriceGetResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fenxiao/TmallSupplychainChannelProductPriceGetResponse.go b/model/fenxiao/TmallSupplychainChannelProductPriceGetResponse.go deleted file mode 100644 index 070fc963a7..0000000000 --- a/model/fenxiao/TmallSupplychainChannelProductPriceGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -渠道价格查询接口 API返回值 -tmall.supplychain.channel.product.price.get - -渠道价格查询接口 -*/ -type TmallSupplychainChannelProductPriceGetAPIResponse struct { - model.CommonResponse - TmallSupplychainChannelProductPriceGetResponse -} - -// 渠道价格查询接口 成功返回结果 -type TmallSupplychainChannelProductPriceGetResponse struct { - XMLName xml.Name `xml:"tmall_supplychain_channel_product_price_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *TmallSupplychainChannelProductPriceGetResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fenxiao/TmallSupplychainChannelProductPriceGetResultDto.go b/model/fenxiao/TmallSupplychainChannelProductPriceGetResultDto.go new file mode 100644 index 0000000000..dc9b320be2 --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductPriceGetResultDto.go @@ -0,0 +1,13 @@ +package fenxiao + +// TmallSupplychainChannelProductPriceGetResultDto +type TmallSupplychainChannelProductPriceGetResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 询价结果 + Module *TopProductPriceResult `json:"module,omitempty" xml:"module,omitempty"` + // 错误码 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/fenxiao/TmallSupplychainChannelProductPriceUpdateAPIRequest.go b/model/fenxiao/TmallSupplychainChannelProductPriceUpdateAPIRequest.go new file mode 100644 index 0000000000..c701531cd8 --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductPriceUpdateAPIRequest.go @@ -0,0 +1,136 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道价格更新接口 API请求 +tmall.supplychain.channel.product.price.update + +更新渠道产品价格 +*/ +type TmallSupplychainChannelProductPriceUpdateAPIRequest struct { + model.Params + // 币种,非必填,仅支持当商品记为外币价格时使用 + _currencyType string + // 产品数字ID + _productId int64 + // 1.指导价(默认) 2.区域价 + _priceType int64 + // 属于这个sku的商品的价格 取值范围:0-100000000;精确到2位小数;单位:元。如:200.07,表示:200元7分。 + _skuPrice string + // 产品价格,必填 + _productPrice string + // SKU ID + _skuId int64 + // 渠道编码 + _channelCode int64 +} + +// 初始化TmallSupplychainChannelProductPriceUpdateAPIRequest对象 +func NewTmallSupplychainChannelProductPriceUpdateRequest() *TmallSupplychainChannelProductPriceUpdateAPIRequest{ + return &TmallSupplychainChannelProductPriceUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallSupplychainChannelProductPriceUpdateAPIRequest) GetApiMethodName() string { + return "tmall.supplychain.channel.product.price.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallSupplychainChannelProductPriceUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CurrencyType Setter +// 币种,非必填,仅支持当商品记为外币价格时使用 +func (r *TmallSupplychainChannelProductPriceUpdateAPIRequest) SetCurrencyType(_currencyType string) error { + r._currencyType = _currencyType + r.Set("currency_type", _currencyType) + return nil +} + +// CurrencyType Getter +func (r TmallSupplychainChannelProductPriceUpdateAPIRequest) GetCurrencyType() string { + return r._currencyType +} +// ProductId Setter +// 产品数字ID +func (r *TmallSupplychainChannelProductPriceUpdateAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TmallSupplychainChannelProductPriceUpdateAPIRequest) GetProductId() int64 { + return r._productId +} +// PriceType Setter +// 1.指导价(默认) 2.区域价 +func (r *TmallSupplychainChannelProductPriceUpdateAPIRequest) SetPriceType(_priceType int64) error { + r._priceType = _priceType + r.Set("price_type", _priceType) + return nil +} + +// PriceType Getter +func (r TmallSupplychainChannelProductPriceUpdateAPIRequest) GetPriceType() int64 { + return r._priceType +} +// SkuPrice Setter +// 属于这个sku的商品的价格 取值范围:0-100000000;精确到2位小数;单位:元。如:200.07,表示:200元7分。 +func (r *TmallSupplychainChannelProductPriceUpdateAPIRequest) SetSkuPrice(_skuPrice string) error { + r._skuPrice = _skuPrice + r.Set("sku_price", _skuPrice) + return nil +} + +// SkuPrice Getter +func (r TmallSupplychainChannelProductPriceUpdateAPIRequest) GetSkuPrice() string { + return r._skuPrice +} +// ProductPrice Setter +// 产品价格,必填 +func (r *TmallSupplychainChannelProductPriceUpdateAPIRequest) SetProductPrice(_productPrice string) error { + r._productPrice = _productPrice + r.Set("product_price", _productPrice) + return nil +} + +// ProductPrice Getter +func (r TmallSupplychainChannelProductPriceUpdateAPIRequest) GetProductPrice() string { + return r._productPrice +} +// SkuId Setter +// SKU ID +func (r *TmallSupplychainChannelProductPriceUpdateAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TmallSupplychainChannelProductPriceUpdateAPIRequest) GetSkuId() int64 { + return r._skuId +} +// ChannelCode Setter +// 渠道编码 +func (r *TmallSupplychainChannelProductPriceUpdateAPIRequest) SetChannelCode(_channelCode int64) error { + r._channelCode = _channelCode + r.Set("channel_code", _channelCode) + return nil +} + +// ChannelCode Getter +func (r TmallSupplychainChannelProductPriceUpdateAPIRequest) GetChannelCode() int64 { + return r._channelCode +} diff --git a/model/fenxiao/TmallSupplychainChannelProductPriceUpdateAPIResponse.go b/model/fenxiao/TmallSupplychainChannelProductPriceUpdateAPIResponse.go new file mode 100644 index 0000000000..edd1bceb50 --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductPriceUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道价格更新接口 API返回值 +tmall.supplychain.channel.product.price.update + +更新渠道产品价格 +*/ +type TmallSupplychainChannelProductPriceUpdateAPIResponse struct { + model.CommonResponse + TmallSupplychainChannelProductPriceUpdateAPIResponseModel +} + +// 渠道价格更新接口 成功返回结果 +type TmallSupplychainChannelProductPriceUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_supplychain_channel_product_price_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *ResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fenxiao/TmallSupplychainChannelProductPriceUpdateResponse.go b/model/fenxiao/TmallSupplychainChannelProductPriceUpdateResponse.go deleted file mode 100644 index a8cee71223..0000000000 --- a/model/fenxiao/TmallSupplychainChannelProductPriceUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -渠道价格更新接口 API返回值 -tmall.supplychain.channel.product.price.update - -更新渠道产品价格 -*/ -type TmallSupplychainChannelProductPriceUpdateAPIResponse struct { - model.CommonResponse - TmallSupplychainChannelProductPriceUpdateResponse -} - -// 渠道价格更新接口 成功返回结果 -type TmallSupplychainChannelProductPriceUpdateResponse struct { - XMLName xml.Name `xml:"tmall_supplychain_channel_product_price_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *ResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fenxiao/TmallSupplychainChannelProductQuantityGetAPIRequest.go b/model/fenxiao/TmallSupplychainChannelProductQuantityGetAPIRequest.go new file mode 100644 index 0000000000..a0cb95a047 --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductQuantityGetAPIRequest.go @@ -0,0 +1,66 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道库存查询接口 API请求 +tmall.supplychain.channel.product.quantity.get + +渠道库存查询接口 +*/ +type TmallSupplychainChannelProductQuantityGetAPIRequest struct { + model.Params + // 产品数字ID + _productId int64 + // SKU ID + _skuId int64 +} + +// 初始化TmallSupplychainChannelProductQuantityGetAPIRequest对象 +func NewTmallSupplychainChannelProductQuantityGetRequest() *TmallSupplychainChannelProductQuantityGetAPIRequest{ + return &TmallSupplychainChannelProductQuantityGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallSupplychainChannelProductQuantityGetAPIRequest) GetApiMethodName() string { + return "tmall.supplychain.channel.product.quantity.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallSupplychainChannelProductQuantityGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品数字ID +func (r *TmallSupplychainChannelProductQuantityGetAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TmallSupplychainChannelProductQuantityGetAPIRequest) GetProductId() int64 { + return r._productId +} +// SkuId Setter +// SKU ID +func (r *TmallSupplychainChannelProductQuantityGetAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TmallSupplychainChannelProductQuantityGetAPIRequest) GetSkuId() int64 { + return r._skuId +} diff --git a/model/fenxiao/TmallSupplychainChannelProductQuantityGetAPIResponse.go b/model/fenxiao/TmallSupplychainChannelProductQuantityGetAPIResponse.go new file mode 100644 index 0000000000..1e04caa34e --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductQuantityGetAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道库存查询接口 API返回值 +tmall.supplychain.channel.product.quantity.get + +渠道库存查询接口 +*/ +type TmallSupplychainChannelProductQuantityGetAPIResponse struct { + model.CommonResponse + TmallSupplychainChannelProductQuantityGetAPIResponseModel +} + +// 渠道库存查询接口 成功返回结果 +type TmallSupplychainChannelProductQuantityGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_supplychain_channel_product_quantity_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *TmallSupplychainChannelProductQuantityGetResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fenxiao/TmallSupplychainChannelProductQuantityGetResponse.go b/model/fenxiao/TmallSupplychainChannelProductQuantityGetResponse.go deleted file mode 100644 index 6c9352d563..0000000000 --- a/model/fenxiao/TmallSupplychainChannelProductQuantityGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -渠道库存查询接口 API返回值 -tmall.supplychain.channel.product.quantity.get - -渠道库存查询接口 -*/ -type TmallSupplychainChannelProductQuantityGetAPIResponse struct { - model.CommonResponse - TmallSupplychainChannelProductQuantityGetResponse -} - -// 渠道库存查询接口 成功返回结果 -type TmallSupplychainChannelProductQuantityGetResponse struct { - XMLName xml.Name `xml:"tmall_supplychain_channel_product_quantity_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *TmallSupplychainChannelProductQuantityGetResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fenxiao/TmallSupplychainChannelProductQuantityGetResultDto.go b/model/fenxiao/TmallSupplychainChannelProductQuantityGetResultDto.go new file mode 100644 index 0000000000..6859a6faa8 --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductQuantityGetResultDto.go @@ -0,0 +1,13 @@ +package fenxiao + +// TmallSupplychainChannelProductQuantityGetResultDto +type TmallSupplychainChannelProductQuantityGetResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 库存数量 + Module string `json:"module,omitempty" xml:"module,omitempty"` + // 错误码 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/fenxiao/TmallSupplychainChannelProductQuantityUpdateAPIRequest.go b/model/fenxiao/TmallSupplychainChannelProductQuantityUpdateAPIRequest.go new file mode 100644 index 0000000000..ae4a7a4177 --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductQuantityUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道无仓库存更新接口 API请求 +tmall.supplychain.channel.product.quantity.update + +渠道无仓库存更新接口 +*/ +type TmallSupplychainChannelProductQuantityUpdateAPIRequest struct { + model.Params + // 库存修改值,必选。当全量更新库存时,quantity必须为大于等于0的正整数;当增量更新库存时,quantity为整数,可小于等于0。若增量更新时传入的库存为负数,则负数与实际库存之和不能小于0。比如当前实际库存为1,传入增量更新quantity=-1,库存改为0 + _quantity int64 + // 产品数字ID + _productId int64 + // 产品SKU ID + _skuId int64 + // 库存更新方式,可选。1为全量更新,2为增量更新。如果不填,默认为全量更新 + _updateType int64 +} + +// 初始化TmallSupplychainChannelProductQuantityUpdateAPIRequest对象 +func NewTmallSupplychainChannelProductQuantityUpdateRequest() *TmallSupplychainChannelProductQuantityUpdateAPIRequest{ + return &TmallSupplychainChannelProductQuantityUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallSupplychainChannelProductQuantityUpdateAPIRequest) GetApiMethodName() string { + return "tmall.supplychain.channel.product.quantity.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallSupplychainChannelProductQuantityUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Quantity Setter +// 库存修改值,必选。当全量更新库存时,quantity必须为大于等于0的正整数;当增量更新库存时,quantity为整数,可小于等于0。若增量更新时传入的库存为负数,则负数与实际库存之和不能小于0。比如当前实际库存为1,传入增量更新quantity=-1,库存改为0 +func (r *TmallSupplychainChannelProductQuantityUpdateAPIRequest) SetQuantity(_quantity int64) error { + r._quantity = _quantity + r.Set("quantity", _quantity) + return nil +} + +// Quantity Getter +func (r TmallSupplychainChannelProductQuantityUpdateAPIRequest) GetQuantity() int64 { + return r._quantity +} +// ProductId Setter +// 产品数字ID +func (r *TmallSupplychainChannelProductQuantityUpdateAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TmallSupplychainChannelProductQuantityUpdateAPIRequest) GetProductId() int64 { + return r._productId +} +// SkuId Setter +// 产品SKU ID +func (r *TmallSupplychainChannelProductQuantityUpdateAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TmallSupplychainChannelProductQuantityUpdateAPIRequest) GetSkuId() int64 { + return r._skuId +} +// UpdateType Setter +// 库存更新方式,可选。1为全量更新,2为增量更新。如果不填,默认为全量更新 +func (r *TmallSupplychainChannelProductQuantityUpdateAPIRequest) SetUpdateType(_updateType int64) error { + r._updateType = _updateType + r.Set("update_type", _updateType) + return nil +} + +// UpdateType Getter +func (r TmallSupplychainChannelProductQuantityUpdateAPIRequest) GetUpdateType() int64 { + return r._updateType +} diff --git a/model/fenxiao/TmallSupplychainChannelProductQuantityUpdateAPIResponse.go b/model/fenxiao/TmallSupplychainChannelProductQuantityUpdateAPIResponse.go new file mode 100644 index 0000000000..d17902a20b --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductQuantityUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道无仓库存更新接口 API返回值 +tmall.supplychain.channel.product.quantity.update + +渠道无仓库存更新接口 +*/ +type TmallSupplychainChannelProductQuantityUpdateAPIResponse struct { + model.CommonResponse + TmallSupplychainChannelProductQuantityUpdateAPIResponseModel +} + +// 渠道无仓库存更新接口 成功返回结果 +type TmallSupplychainChannelProductQuantityUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_supplychain_channel_product_quantity_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *TmallSupplychainChannelProductQuantityUpdateResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fenxiao/TmallSupplychainChannelProductQuantityUpdateResponse.go b/model/fenxiao/TmallSupplychainChannelProductQuantityUpdateResponse.go deleted file mode 100644 index 5b38269bc0..0000000000 --- a/model/fenxiao/TmallSupplychainChannelProductQuantityUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -渠道无仓库存更新接口 API返回值 -tmall.supplychain.channel.product.quantity.update - -渠道无仓库存更新接口 -*/ -type TmallSupplychainChannelProductQuantityUpdateAPIResponse struct { - model.CommonResponse - TmallSupplychainChannelProductQuantityUpdateResponse -} - -// 渠道无仓库存更新接口 成功返回结果 -type TmallSupplychainChannelProductQuantityUpdateResponse struct { - XMLName xml.Name `xml:"tmall_supplychain_channel_product_quantity_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *TmallSupplychainChannelProductQuantityUpdateResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fenxiao/TmallSupplychainChannelProductQuantityUpdateResultDto.go b/model/fenxiao/TmallSupplychainChannelProductQuantityUpdateResultDto.go new file mode 100644 index 0000000000..e2d2a6ae87 --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductQuantityUpdateResultDto.go @@ -0,0 +1,13 @@ +package fenxiao + +// TmallSupplychainChannelProductQuantityUpdateResultDto +type TmallSupplychainChannelProductQuantityUpdateResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 更新内容 + Module *TopProductQuantityResult `json:"module,omitempty" xml:"module,omitempty"` + // 错误码 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/fenxiao/TmallSupplychainChannelProductReleaseAPIRequest.go b/model/fenxiao/TmallSupplychainChannelProductReleaseAPIRequest.go new file mode 100644 index 0000000000..6de7bc8811 --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductReleaseAPIRequest.go @@ -0,0 +1,66 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商铺货 API请求 +tmall.supplychain.channel.product.release + +供应商渠道铺货接口 +*/ +type TmallSupplychainChannelProductReleaseAPIRequest struct { + model.Params + // 产品数字ID + _productId int64 + // 渠道ID + _channelCode int64 +} + +// 初始化TmallSupplychainChannelProductReleaseAPIRequest对象 +func NewTmallSupplychainChannelProductReleaseRequest() *TmallSupplychainChannelProductReleaseAPIRequest{ + return &TmallSupplychainChannelProductReleaseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallSupplychainChannelProductReleaseAPIRequest) GetApiMethodName() string { + return "tmall.supplychain.channel.product.release" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallSupplychainChannelProductReleaseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品数字ID +func (r *TmallSupplychainChannelProductReleaseAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TmallSupplychainChannelProductReleaseAPIRequest) GetProductId() int64 { + return r._productId +} +// ChannelCode Setter +// 渠道ID +func (r *TmallSupplychainChannelProductReleaseAPIRequest) SetChannelCode(_channelCode int64) error { + r._channelCode = _channelCode + r.Set("channel_code", _channelCode) + return nil +} + +// ChannelCode Getter +func (r TmallSupplychainChannelProductReleaseAPIRequest) GetChannelCode() int64 { + return r._channelCode +} diff --git a/model/fenxiao/TmallSupplychainChannelProductReleaseAPIResponse.go b/model/fenxiao/TmallSupplychainChannelProductReleaseAPIResponse.go new file mode 100644 index 0000000000..02064713f5 --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductReleaseAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商铺货 API返回值 +tmall.supplychain.channel.product.release + +供应商渠道铺货接口 +*/ +type TmallSupplychainChannelProductReleaseAPIResponse struct { + model.CommonResponse + TmallSupplychainChannelProductReleaseAPIResponseModel +} + +// 供应商铺货 成功返回结果 +type TmallSupplychainChannelProductReleaseAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_supplychain_channel_product_release_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TmallSupplychainChannelProductReleaseResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fenxiao/TmallSupplychainChannelProductReleaseResponse.go b/model/fenxiao/TmallSupplychainChannelProductReleaseResponse.go deleted file mode 100644 index 006dcf7c13..0000000000 --- a/model/fenxiao/TmallSupplychainChannelProductReleaseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商铺货 API返回值 -tmall.supplychain.channel.product.release - -供应商渠道铺货接口 -*/ -type TmallSupplychainChannelProductReleaseAPIResponse struct { - model.CommonResponse - TmallSupplychainChannelProductReleaseResponse -} - -// 供应商铺货 成功返回结果 -type TmallSupplychainChannelProductReleaseResponse struct { - XMLName xml.Name `xml:"tmall_supplychain_channel_product_release_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TmallSupplychainChannelProductReleaseResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fenxiao/TmallSupplychainChannelProductReleaseResultDto.go b/model/fenxiao/TmallSupplychainChannelProductReleaseResultDto.go new file mode 100644 index 0000000000..64abc8435c --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductReleaseResultDto.go @@ -0,0 +1,17 @@ +package fenxiao + +// TmallSupplychainChannelProductReleaseResultDto +type TmallSupplychainChannelProductReleaseResultDto struct { + // 链路ID + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 异常名 + ExpName string `json:"exp_name,omitempty" xml:"exp_name,omitempty"` + // 重定向url + RedirectUrl string `json:"redirect_url,omitempty" xml:"redirect_url,omitempty"` + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/fenxiao/TmallSupplychainChannelProductReleaseStatusGetAPIRequest.go b/model/fenxiao/TmallSupplychainChannelProductReleaseStatusGetAPIRequest.go new file mode 100644 index 0000000000..45d57c25bd --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductReleaseStatusGetAPIRequest.go @@ -0,0 +1,66 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +产品铺货状态查询 API请求 +tmall.supplychain.channel.product.release.status.get + +巴拿马战役渠道产品状态查询 +*/ +type TmallSupplychainChannelProductReleaseStatusGetAPIRequest struct { + model.Params + // 产品ID + _productId int64 + // 渠道ID ( 台湾 : 111002 ) + _channelCode int64 +} + +// 初始化TmallSupplychainChannelProductReleaseStatusGetAPIRequest对象 +func NewTmallSupplychainChannelProductReleaseStatusGetRequest() *TmallSupplychainChannelProductReleaseStatusGetAPIRequest{ + return &TmallSupplychainChannelProductReleaseStatusGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallSupplychainChannelProductReleaseStatusGetAPIRequest) GetApiMethodName() string { + return "tmall.supplychain.channel.product.release.status.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallSupplychainChannelProductReleaseStatusGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品ID +func (r *TmallSupplychainChannelProductReleaseStatusGetAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TmallSupplychainChannelProductReleaseStatusGetAPIRequest) GetProductId() int64 { + return r._productId +} +// ChannelCode Setter +// 渠道ID ( 台湾 : 111002 ) +func (r *TmallSupplychainChannelProductReleaseStatusGetAPIRequest) SetChannelCode(_channelCode int64) error { + r._channelCode = _channelCode + r.Set("channel_code", _channelCode) + return nil +} + +// ChannelCode Getter +func (r TmallSupplychainChannelProductReleaseStatusGetAPIRequest) GetChannelCode() int64 { + return r._channelCode +} diff --git a/model/fenxiao/TmallSupplychainChannelProductReleaseStatusGetAPIResponse.go b/model/fenxiao/TmallSupplychainChannelProductReleaseStatusGetAPIResponse.go new file mode 100644 index 0000000000..c71a2b8c4a --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductReleaseStatusGetAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +产品铺货状态查询 API返回值 +tmall.supplychain.channel.product.release.status.get + +巴拿马战役渠道产品状态查询 +*/ +type TmallSupplychainChannelProductReleaseStatusGetAPIResponse struct { + model.CommonResponse + TmallSupplychainChannelProductReleaseStatusGetAPIResponseModel +} + +// 产品铺货状态查询 成功返回结果 +type TmallSupplychainChannelProductReleaseStatusGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_supplychain_channel_product_release_status_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *TmallSupplychainChannelProductReleaseStatusGetResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fenxiao/TmallSupplychainChannelProductReleaseStatusGetResponse.go b/model/fenxiao/TmallSupplychainChannelProductReleaseStatusGetResponse.go deleted file mode 100644 index fa34a51d9f..0000000000 --- a/model/fenxiao/TmallSupplychainChannelProductReleaseStatusGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -产品铺货状态查询 API返回值 -tmall.supplychain.channel.product.release.status.get - -巴拿马战役渠道产品状态查询 -*/ -type TmallSupplychainChannelProductReleaseStatusGetAPIResponse struct { - model.CommonResponse - TmallSupplychainChannelProductReleaseStatusGetResponse -} - -// 产品铺货状态查询 成功返回结果 -type TmallSupplychainChannelProductReleaseStatusGetResponse struct { - XMLName xml.Name `xml:"tmall_supplychain_channel_product_release_status_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *TmallSupplychainChannelProductReleaseStatusGetResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fenxiao/TmallSupplychainChannelProductReleaseStatusGetResultDto.go b/model/fenxiao/TmallSupplychainChannelProductReleaseStatusGetResultDto.go new file mode 100644 index 0000000000..e14893aedb --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductReleaseStatusGetResultDto.go @@ -0,0 +1,13 @@ +package fenxiao + +// TmallSupplychainChannelProductReleaseStatusGetResultDto +type TmallSupplychainChannelProductReleaseStatusGetResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 查询结果 + Module *TopProductStatusResult `json:"module,omitempty" xml:"module,omitempty"` + // 错误码 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/fenxiao/TmallSupplychainChannelProductUpshelfAPIRequest.go b/model/fenxiao/TmallSupplychainChannelProductUpshelfAPIRequest.go new file mode 100644 index 0000000000..a0903c9511 --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductUpshelfAPIRequest.go @@ -0,0 +1,52 @@ +package fenxiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +产品上架 API请求 +tmall.supplychain.channel.product.upshelf + +上架渠道产品 +*/ +type TmallSupplychainChannelProductUpshelfAPIRequest struct { + model.Params + // 产品ID + _productId int64 +} + +// 初始化TmallSupplychainChannelProductUpshelfAPIRequest对象 +func NewTmallSupplychainChannelProductUpshelfRequest() *TmallSupplychainChannelProductUpshelfAPIRequest{ + return &TmallSupplychainChannelProductUpshelfAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallSupplychainChannelProductUpshelfAPIRequest) GetApiMethodName() string { + return "tmall.supplychain.channel.product.upshelf" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallSupplychainChannelProductUpshelfAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品ID +func (r *TmallSupplychainChannelProductUpshelfAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TmallSupplychainChannelProductUpshelfAPIRequest) GetProductId() int64 { + return r._productId +} diff --git a/model/fenxiao/TmallSupplychainChannelProductUpshelfAPIResponse.go b/model/fenxiao/TmallSupplychainChannelProductUpshelfAPIResponse.go new file mode 100644 index 0000000000..37f9ad60c7 --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductUpshelfAPIResponse.go @@ -0,0 +1,27 @@ +package fenxiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +产品上架 API返回值 +tmall.supplychain.channel.product.upshelf + +上架渠道产品 +*/ +type TmallSupplychainChannelProductUpshelfAPIResponse struct { + model.CommonResponse + TmallSupplychainChannelProductUpshelfAPIResponseModel +} + +// 产品上架 成功返回结果 +type TmallSupplychainChannelProductUpshelfAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_supplychain_channel_product_upshelf_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *TmallSupplychainChannelProductUpshelfResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fenxiao/TmallSupplychainChannelProductUpshelfResponse.go b/model/fenxiao/TmallSupplychainChannelProductUpshelfResponse.go deleted file mode 100644 index fc4d7bda6c..0000000000 --- a/model/fenxiao/TmallSupplychainChannelProductUpshelfResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fenxiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -产品上架 API返回值 -tmall.supplychain.channel.product.upshelf - -上架渠道产品 -*/ -type TmallSupplychainChannelProductUpshelfAPIResponse struct { - model.CommonResponse - TmallSupplychainChannelProductUpshelfResponse -} - -// 产品上架 成功返回结果 -type TmallSupplychainChannelProductUpshelfResponse struct { - XMLName xml.Name `xml:"tmall_supplychain_channel_product_upshelf_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *TmallSupplychainChannelProductUpshelfResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fenxiao/TmallSupplychainChannelProductUpshelfResultDto.go b/model/fenxiao/TmallSupplychainChannelProductUpshelfResultDto.go new file mode 100644 index 0000000000..12de9a743e --- /dev/null +++ b/model/fenxiao/TmallSupplychainChannelProductUpshelfResultDto.go @@ -0,0 +1,13 @@ +package fenxiao + +// TmallSupplychainChannelProductUpshelfResultDto +type TmallSupplychainChannelProductUpshelfResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 上架结果 + Module bool `json:"module,omitempty" xml:"module,omitempty"` + // 错误码 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/film/TaobaoFilmAccountPhoneQueryAPIRequest.go b/model/film/TaobaoFilmAccountPhoneQueryAPIRequest.go new file mode 100644 index 0000000000..80f6542e9b --- /dev/null +++ b/model/film/TaobaoFilmAccountPhoneQueryAPIRequest.go @@ -0,0 +1,52 @@ +package film + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据手机查询匹配账号列表 API请求 +taobao.film.account.phone.query + +根据手机号查询匹配的账号列表 +*/ +type TaobaoFilmAccountPhoneQueryAPIRequest struct { + model.Params + // 11位手机号码 + _phone string +} + +// 初始化TaobaoFilmAccountPhoneQueryAPIRequest对象 +func NewTaobaoFilmAccountPhoneQueryRequest() *TaobaoFilmAccountPhoneQueryAPIRequest{ + return &TaobaoFilmAccountPhoneQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFilmAccountPhoneQueryAPIRequest) GetApiMethodName() string { + return "taobao.film.account.phone.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFilmAccountPhoneQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Phone Setter +// 11位手机号码 +func (r *TaobaoFilmAccountPhoneQueryAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r TaobaoFilmAccountPhoneQueryAPIRequest) GetPhone() string { + return r._phone +} diff --git a/model/film/TaobaoFilmAccountPhoneQueryAPIResponse.go b/model/film/TaobaoFilmAccountPhoneQueryAPIResponse.go new file mode 100644 index 0000000000..add3091ce1 --- /dev/null +++ b/model/film/TaobaoFilmAccountPhoneQueryAPIResponse.go @@ -0,0 +1,27 @@ +package film + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据手机查询匹配账号列表 API返回值 +taobao.film.account.phone.query + +根据手机号查询匹配的账号列表 +*/ +type TaobaoFilmAccountPhoneQueryAPIResponse struct { + model.CommonResponse + TaobaoFilmAccountPhoneQueryAPIResponseModel +} + +// 根据手机查询匹配账号列表 成功返回结果 +type TaobaoFilmAccountPhoneQueryAPIResponseModel struct { + XMLName xml.Name `xml:"film_account_phone_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *ResultListModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/film/TaobaoFilmAccountPhoneQueryResponse.go b/model/film/TaobaoFilmAccountPhoneQueryResponse.go deleted file mode 100644 index 81efdd0ea9..0000000000 --- a/model/film/TaobaoFilmAccountPhoneQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package film - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据手机查询匹配账号列表 API返回值 -taobao.film.account.phone.query - -根据手机号查询匹配的账号列表 -*/ -type TaobaoFilmAccountPhoneQueryAPIResponse struct { - model.CommonResponse - TaobaoFilmAccountPhoneQueryResponse -} - -// 根据手机查询匹配账号列表 成功返回结果 -type TaobaoFilmAccountPhoneQueryResponse struct { - XMLName xml.Name `xml:"film_account_phone_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *ResultListModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/film/TaobaoFilmDataThirdPartyRefundOrderAPIRequest.go b/model/film/TaobaoFilmDataThirdPartyRefundOrderAPIRequest.go new file mode 100644 index 0000000000..aef0ba3ed1 --- /dev/null +++ b/model/film/TaobaoFilmDataThirdPartyRefundOrderAPIRequest.go @@ -0,0 +1,150 @@ +package film + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +退票接口 API请求 +taobao.film.data.third.party.refund.order + +淘票票第三方退票接口 +*/ +type TaobaoFilmDataThirdPartyRefundOrderAPIRequest struct { + model.Params + // 淘宝账号ID,此ID是一串数字。可自行百度查看如何获取或者咨询淘票票技术人员提供 + _userId int64 + // 淘票票分配的渠道码 + _platform int64 + // 退票身份ID,用于标识一个购票用户的身份,该参数需要跟锁座接口的ext_order_id参数一致,否则下单会失败。外部渠道需保证该参数的唯一性及准确性,下单出票接口会利用该参数做冥等性判断,如果由于外部渠道自身传入的参数有问题而导致的下单出票接口返回的结果有误,需要外部渠道自己承担损失 + _extUserId string + // 退款时候需要传入第三方的订单号。外部渠道需保证该参数的唯一性和准确性 + _extOrderId string + // 下单时返回的淘宝订单号参数 + _tbOrderId int64 + // 退款金额,以分为单位,为指定的退款订单的金额 + _refundAmount int64 + // 退款服务费,目前都为0 + _refundServiceFee int64 + // 目前可以暂时不填参数 + _params string +} + +// 初始化TaobaoFilmDataThirdPartyRefundOrderAPIRequest对象 +func NewTaobaoFilmDataThirdPartyRefundOrderRequest() *TaobaoFilmDataThirdPartyRefundOrderAPIRequest{ + return &TaobaoFilmDataThirdPartyRefundOrderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFilmDataThirdPartyRefundOrderAPIRequest) GetApiMethodName() string { + return "taobao.film.data.third.party.refund.order" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFilmDataThirdPartyRefundOrderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 淘宝账号ID,此ID是一串数字。可自行百度查看如何获取或者咨询淘票票技术人员提供 +func (r *TaobaoFilmDataThirdPartyRefundOrderAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoFilmDataThirdPartyRefundOrderAPIRequest) GetUserId() int64 { + return r._userId +} +// Platform Setter +// 淘票票分配的渠道码 +func (r *TaobaoFilmDataThirdPartyRefundOrderAPIRequest) SetPlatform(_platform int64) error { + r._platform = _platform + r.Set("platform", _platform) + return nil +} + +// Platform Getter +func (r TaobaoFilmDataThirdPartyRefundOrderAPIRequest) GetPlatform() int64 { + return r._platform +} +// ExtUserId Setter +// 退票身份ID,用于标识一个购票用户的身份,该参数需要跟锁座接口的ext_order_id参数一致,否则下单会失败。外部渠道需保证该参数的唯一性及准确性,下单出票接口会利用该参数做冥等性判断,如果由于外部渠道自身传入的参数有问题而导致的下单出票接口返回的结果有误,需要外部渠道自己承担损失 +func (r *TaobaoFilmDataThirdPartyRefundOrderAPIRequest) SetExtUserId(_extUserId string) error { + r._extUserId = _extUserId + r.Set("ext_user_id", _extUserId) + return nil +} + +// ExtUserId Getter +func (r TaobaoFilmDataThirdPartyRefundOrderAPIRequest) GetExtUserId() string { + return r._extUserId +} +// ExtOrderId Setter +// 退款时候需要传入第三方的订单号。外部渠道需保证该参数的唯一性和准确性 +func (r *TaobaoFilmDataThirdPartyRefundOrderAPIRequest) SetExtOrderId(_extOrderId string) error { + r._extOrderId = _extOrderId + r.Set("ext_order_id", _extOrderId) + return nil +} + +// ExtOrderId Getter +func (r TaobaoFilmDataThirdPartyRefundOrderAPIRequest) GetExtOrderId() string { + return r._extOrderId +} +// TbOrderId Setter +// 下单时返回的淘宝订单号参数 +func (r *TaobaoFilmDataThirdPartyRefundOrderAPIRequest) SetTbOrderId(_tbOrderId int64) error { + r._tbOrderId = _tbOrderId + r.Set("tb_order_id", _tbOrderId) + return nil +} + +// TbOrderId Getter +func (r TaobaoFilmDataThirdPartyRefundOrderAPIRequest) GetTbOrderId() int64 { + return r._tbOrderId +} +// RefundAmount Setter +// 退款金额,以分为单位,为指定的退款订单的金额 +func (r *TaobaoFilmDataThirdPartyRefundOrderAPIRequest) SetRefundAmount(_refundAmount int64) error { + r._refundAmount = _refundAmount + r.Set("refund_amount", _refundAmount) + return nil +} + +// RefundAmount Getter +func (r TaobaoFilmDataThirdPartyRefundOrderAPIRequest) GetRefundAmount() int64 { + return r._refundAmount +} +// RefundServiceFee Setter +// 退款服务费,目前都为0 +func (r *TaobaoFilmDataThirdPartyRefundOrderAPIRequest) SetRefundServiceFee(_refundServiceFee int64) error { + r._refundServiceFee = _refundServiceFee + r.Set("refund_service_fee", _refundServiceFee) + return nil +} + +// RefundServiceFee Getter +func (r TaobaoFilmDataThirdPartyRefundOrderAPIRequest) GetRefundServiceFee() int64 { + return r._refundServiceFee +} +// Params Setter +// 目前可以暂时不填参数 +func (r *TaobaoFilmDataThirdPartyRefundOrderAPIRequest) SetParams(_params string) error { + r._params = _params + r.Set("params", _params) + return nil +} + +// Params Getter +func (r TaobaoFilmDataThirdPartyRefundOrderAPIRequest) GetParams() string { + return r._params +} diff --git a/model/film/TaobaoFilmDataThirdPartyRefundOrderAPIResponse.go b/model/film/TaobaoFilmDataThirdPartyRefundOrderAPIResponse.go new file mode 100644 index 0000000000..772c682889 --- /dev/null +++ b/model/film/TaobaoFilmDataThirdPartyRefundOrderAPIResponse.go @@ -0,0 +1,27 @@ +package film + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +退票接口 API返回值 +taobao.film.data.third.party.refund.order + +淘票票第三方退票接口 +*/ +type TaobaoFilmDataThirdPartyRefundOrderAPIResponse struct { + model.CommonResponse + TaobaoFilmDataThirdPartyRefundOrderAPIResponseModel +} + +// 退票接口 成功返回结果 +type TaobaoFilmDataThirdPartyRefundOrderAPIResponseModel struct { + XMLName xml.Name `xml:"film_data_third_party_refund_order_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultGeneralModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/film/TaobaoFilmDataThirdPartyRefundOrderResponse.go b/model/film/TaobaoFilmDataThirdPartyRefundOrderResponse.go deleted file mode 100644 index 03e7ff9c73..0000000000 --- a/model/film/TaobaoFilmDataThirdPartyRefundOrderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package film - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -退票接口 API返回值 -taobao.film.data.third.party.refund.order - -淘票票第三方退票接口 -*/ -type TaobaoFilmDataThirdPartyRefundOrderAPIResponse struct { - model.CommonResponse - TaobaoFilmDataThirdPartyRefundOrderResponse -} - -// 退票接口 成功返回结果 -type TaobaoFilmDataThirdPartyRefundOrderResponse struct { - XMLName xml.Name `xml:"film_data_third_party_refund_order_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultGeneralModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/film/TaobaoFilmKoubeiCinemaGetactivityAPIRequest.go b/model/film/TaobaoFilmKoubeiCinemaGetactivityAPIRequest.go new file mode 100644 index 0000000000..1ae91fc9ad --- /dev/null +++ b/model/film/TaobaoFilmKoubeiCinemaGetactivityAPIRequest.go @@ -0,0 +1,122 @@ +package film + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +口碑-影院营销数据查询 API请求 +taobao.film.koubei.cinema.getactivity + +口碑-影院营销数据查询 +*/ +type TaobaoFilmKoubeiCinemaGetactivityAPIRequest struct { + model.Params + // 用户账号 + _userId string + // 账号类型 + _accountType string + // 城市编码 + _cityCode int64 + // 平台 + _platform int64 + // 影院ID集合 + _cinemaIds []int64 + // 附加参数 + _params string +} + +// 初始化TaobaoFilmKoubeiCinemaGetactivityAPIRequest对象 +func NewTaobaoFilmKoubeiCinemaGetactivityRequest() *TaobaoFilmKoubeiCinemaGetactivityAPIRequest{ + return &TaobaoFilmKoubeiCinemaGetactivityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFilmKoubeiCinemaGetactivityAPIRequest) GetApiMethodName() string { + return "taobao.film.koubei.cinema.getactivity" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFilmKoubeiCinemaGetactivityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户账号 +func (r *TaobaoFilmKoubeiCinemaGetactivityAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoFilmKoubeiCinemaGetactivityAPIRequest) GetUserId() string { + return r._userId +} +// AccountType Setter +// 账号类型 +func (r *TaobaoFilmKoubeiCinemaGetactivityAPIRequest) SetAccountType(_accountType string) error { + r._accountType = _accountType + r.Set("account_type", _accountType) + return nil +} + +// AccountType Getter +func (r TaobaoFilmKoubeiCinemaGetactivityAPIRequest) GetAccountType() string { + return r._accountType +} +// CityCode Setter +// 城市编码 +func (r *TaobaoFilmKoubeiCinemaGetactivityAPIRequest) SetCityCode(_cityCode int64) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r TaobaoFilmKoubeiCinemaGetactivityAPIRequest) GetCityCode() int64 { + return r._cityCode +} +// Platform Setter +// 平台 +func (r *TaobaoFilmKoubeiCinemaGetactivityAPIRequest) SetPlatform(_platform int64) error { + r._platform = _platform + r.Set("platform", _platform) + return nil +} + +// Platform Getter +func (r TaobaoFilmKoubeiCinemaGetactivityAPIRequest) GetPlatform() int64 { + return r._platform +} +// CinemaIds Setter +// 影院ID集合 +func (r *TaobaoFilmKoubeiCinemaGetactivityAPIRequest) SetCinemaIds(_cinemaIds []int64) error { + r._cinemaIds = _cinemaIds + r.Set("cinema_ids", _cinemaIds) + return nil +} + +// CinemaIds Getter +func (r TaobaoFilmKoubeiCinemaGetactivityAPIRequest) GetCinemaIds() []int64 { + return r._cinemaIds +} +// Params Setter +// 附加参数 +func (r *TaobaoFilmKoubeiCinemaGetactivityAPIRequest) SetParams(_params string) error { + r._params = _params + r.Set("params", _params) + return nil +} + +// Params Getter +func (r TaobaoFilmKoubeiCinemaGetactivityAPIRequest) GetParams() string { + return r._params +} diff --git a/model/film/TaobaoFilmKoubeiCinemaGetactivityAPIResponse.go b/model/film/TaobaoFilmKoubeiCinemaGetactivityAPIResponse.go new file mode 100644 index 0000000000..21303ab5da --- /dev/null +++ b/model/film/TaobaoFilmKoubeiCinemaGetactivityAPIResponse.go @@ -0,0 +1,27 @@ +package film + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +口碑-影院营销数据查询 API返回值 +taobao.film.koubei.cinema.getactivity + +口碑-影院营销数据查询 +*/ +type TaobaoFilmKoubeiCinemaGetactivityAPIResponse struct { + model.CommonResponse + TaobaoFilmKoubeiCinemaGetactivityAPIResponseModel +} + +// 口碑-影院营销数据查询 成功返回结果 +type TaobaoFilmKoubeiCinemaGetactivityAPIResponseModel struct { + XMLName xml.Name `xml:"film_koubei_cinema_getactivity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultGeneralModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/film/TaobaoFilmKoubeiCinemaGetactivityResponse.go b/model/film/TaobaoFilmKoubeiCinemaGetactivityResponse.go deleted file mode 100644 index da28e2888f..0000000000 --- a/model/film/TaobaoFilmKoubeiCinemaGetactivityResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package film - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -口碑-影院营销数据查询 API返回值 -taobao.film.koubei.cinema.getactivity - -口碑-影院营销数据查询 -*/ -type TaobaoFilmKoubeiCinemaGetactivityAPIResponse struct { - model.CommonResponse - TaobaoFilmKoubeiCinemaGetactivityResponse -} - -// 口碑-影院营销数据查询 成功返回结果 -type TaobaoFilmKoubeiCinemaGetactivityResponse struct { - XMLName xml.Name `xml:"film_koubei_cinema_getactivity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultGeneralModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/film/TaobaoFilmLotteryDrawAPIRequest.go b/model/film/TaobaoFilmLotteryDrawAPIRequest.go new file mode 100644 index 0000000000..31ac9b6aa5 --- /dev/null +++ b/model/film/TaobaoFilmLotteryDrawAPIRequest.go @@ -0,0 +1,108 @@ +package film + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘票票抽奖发放权益API API请求 +taobao.film.lottery.draw + +对外第三方合作渠道通过抽奖形式发码 +*/ +type TaobaoFilmLotteryDrawAPIRequest struct { + model.Params + // 账号ID + _accountNo string + // 账号类型(TAOBAO\ALIPAY\PHONE\TAOBAO_NAME\OPEN_ID) + _accountType string + // 活动ID + _lotteryMixId string + // 平台类型 + _platform int64 + // 扩展参数 + _bizData string +} + +// 初始化TaobaoFilmLotteryDrawAPIRequest对象 +func NewTaobaoFilmLotteryDrawRequest() *TaobaoFilmLotteryDrawAPIRequest{ + return &TaobaoFilmLotteryDrawAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFilmLotteryDrawAPIRequest) GetApiMethodName() string { + return "taobao.film.lottery.draw" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFilmLotteryDrawAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccountNo Setter +// 账号ID +func (r *TaobaoFilmLotteryDrawAPIRequest) SetAccountNo(_accountNo string) error { + r._accountNo = _accountNo + r.Set("account_no", _accountNo) + return nil +} + +// AccountNo Getter +func (r TaobaoFilmLotteryDrawAPIRequest) GetAccountNo() string { + return r._accountNo +} +// AccountType Setter +// 账号类型(TAOBAO\ALIPAY\PHONE\TAOBAO_NAME\OPEN_ID) +func (r *TaobaoFilmLotteryDrawAPIRequest) SetAccountType(_accountType string) error { + r._accountType = _accountType + r.Set("account_type", _accountType) + return nil +} + +// AccountType Getter +func (r TaobaoFilmLotteryDrawAPIRequest) GetAccountType() string { + return r._accountType +} +// LotteryMixId Setter +// 活动ID +func (r *TaobaoFilmLotteryDrawAPIRequest) SetLotteryMixId(_lotteryMixId string) error { + r._lotteryMixId = _lotteryMixId + r.Set("lottery_mix_id", _lotteryMixId) + return nil +} + +// LotteryMixId Getter +func (r TaobaoFilmLotteryDrawAPIRequest) GetLotteryMixId() string { + return r._lotteryMixId +} +// Platform Setter +// 平台类型 +func (r *TaobaoFilmLotteryDrawAPIRequest) SetPlatform(_platform int64) error { + r._platform = _platform + r.Set("platform", _platform) + return nil +} + +// Platform Getter +func (r TaobaoFilmLotteryDrawAPIRequest) GetPlatform() int64 { + return r._platform +} +// BizData Setter +// 扩展参数 +func (r *TaobaoFilmLotteryDrawAPIRequest) SetBizData(_bizData string) error { + r._bizData = _bizData + r.Set("biz_data", _bizData) + return nil +} + +// BizData Getter +func (r TaobaoFilmLotteryDrawAPIRequest) GetBizData() string { + return r._bizData +} diff --git a/model/film/TaobaoFilmLotteryDrawAPIResponse.go b/model/film/TaobaoFilmLotteryDrawAPIResponse.go new file mode 100644 index 0000000000..305a3b4811 --- /dev/null +++ b/model/film/TaobaoFilmLotteryDrawAPIResponse.go @@ -0,0 +1,27 @@ +package film + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘票票抽奖发放权益API API返回值 +taobao.film.lottery.draw + +对外第三方合作渠道通过抽奖形式发码 +*/ +type TaobaoFilmLotteryDrawAPIResponse struct { + model.CommonResponse + TaobaoFilmLotteryDrawAPIResponseModel +} + +// 淘票票抽奖发放权益API 成功返回结果 +type TaobaoFilmLotteryDrawAPIResponseModel struct { + XMLName xml.Name `xml:"film_lottery_draw_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *ResultGeneralModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/film/TaobaoFilmLotteryDrawResponse.go b/model/film/TaobaoFilmLotteryDrawResponse.go deleted file mode 100644 index 42d5894105..0000000000 --- a/model/film/TaobaoFilmLotteryDrawResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package film - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘票票抽奖发放权益API API返回值 -taobao.film.lottery.draw - -对外第三方合作渠道通过抽奖形式发码 -*/ -type TaobaoFilmLotteryDrawAPIResponse struct { - model.CommonResponse - TaobaoFilmLotteryDrawResponse -} - -// 淘票票抽奖发放权益API 成功返回结果 -type TaobaoFilmLotteryDrawResponse struct { - XMLName xml.Name `xml:"film_lottery_draw_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *ResultGeneralModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/film/TaobaoFilmLotteryRuleQueryAPIRequest.go b/model/film/TaobaoFilmLotteryRuleQueryAPIRequest.go new file mode 100644 index 0000000000..98323b40b0 --- /dev/null +++ b/model/film/TaobaoFilmLotteryRuleQueryAPIRequest.go @@ -0,0 +1,80 @@ +package film + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘票票抽奖活动查询API(渠道) API请求 +taobao.film.lottery.rule.query + +淘票票抽奖活动查询API,渠道维度查询 +*/ +type TaobaoFilmLotteryRuleQueryAPIRequest struct { + model.Params + // 账号类型(TAOBAO\ALIPAY\PHONE) + _accountType string + // 渠道来源 + _channel string + // 账号ID + _accountNo string +} + +// 初始化TaobaoFilmLotteryRuleQueryAPIRequest对象 +func NewTaobaoFilmLotteryRuleQueryRequest() *TaobaoFilmLotteryRuleQueryAPIRequest{ + return &TaobaoFilmLotteryRuleQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFilmLotteryRuleQueryAPIRequest) GetApiMethodName() string { + return "taobao.film.lottery.rule.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFilmLotteryRuleQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccountType Setter +// 账号类型(TAOBAO\ALIPAY\PHONE) +func (r *TaobaoFilmLotteryRuleQueryAPIRequest) SetAccountType(_accountType string) error { + r._accountType = _accountType + r.Set("account_type", _accountType) + return nil +} + +// AccountType Getter +func (r TaobaoFilmLotteryRuleQueryAPIRequest) GetAccountType() string { + return r._accountType +} +// Channel Setter +// 渠道来源 +func (r *TaobaoFilmLotteryRuleQueryAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r TaobaoFilmLotteryRuleQueryAPIRequest) GetChannel() string { + return r._channel +} +// AccountNo Setter +// 账号ID +func (r *TaobaoFilmLotteryRuleQueryAPIRequest) SetAccountNo(_accountNo string) error { + r._accountNo = _accountNo + r.Set("account_no", _accountNo) + return nil +} + +// AccountNo Getter +func (r TaobaoFilmLotteryRuleQueryAPIRequest) GetAccountNo() string { + return r._accountNo +} diff --git a/model/film/TaobaoFilmLotteryRuleQueryAPIResponse.go b/model/film/TaobaoFilmLotteryRuleQueryAPIResponse.go new file mode 100644 index 0000000000..a3ffcfa1e2 --- /dev/null +++ b/model/film/TaobaoFilmLotteryRuleQueryAPIResponse.go @@ -0,0 +1,27 @@ +package film + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘票票抽奖活动查询API(渠道) API返回值 +taobao.film.lottery.rule.query + +淘票票抽奖活动查询API,渠道维度查询 +*/ +type TaobaoFilmLotteryRuleQueryAPIResponse struct { + model.CommonResponse + TaobaoFilmLotteryRuleQueryAPIResponseModel +} + +// 淘票票抽奖活动查询API(渠道) 成功返回结果 +type TaobaoFilmLotteryRuleQueryAPIResponseModel struct { + XMLName xml.Name `xml:"film_lottery_rule_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultListModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/film/TaobaoFilmLotteryRuleQueryResponse.go b/model/film/TaobaoFilmLotteryRuleQueryResponse.go deleted file mode 100644 index cf402ae6a6..0000000000 --- a/model/film/TaobaoFilmLotteryRuleQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package film - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘票票抽奖活动查询API(渠道) API返回值 -taobao.film.lottery.rule.query - -淘票票抽奖活动查询API,渠道维度查询 -*/ -type TaobaoFilmLotteryRuleQueryAPIResponse struct { - model.CommonResponse - TaobaoFilmLotteryRuleQueryResponse -} - -// 淘票票抽奖活动查询API(渠道) 成功返回结果 -type TaobaoFilmLotteryRuleQueryResponse struct { - XMLName xml.Name `xml:"film_lottery_rule_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultListModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/film/TaobaoFilmLotterySendcodeAPIRequest.go b/model/film/TaobaoFilmLotterySendcodeAPIRequest.go new file mode 100644 index 0000000000..f5362d0668 --- /dev/null +++ b/model/film/TaobaoFilmLotterySendcodeAPIRequest.go @@ -0,0 +1,52 @@ +package film + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘票票外部直发券 API请求 +taobao.film.lottery.sendcode + +淘票票外部直发券 +*/ +type TaobaoFilmLotterySendcodeAPIRequest struct { + model.Params + // 外部商户发码请求 + _paramFCodeMerchantSendCodeRequest *FCodeMerchantSendCodeRq +} + +// 初始化TaobaoFilmLotterySendcodeAPIRequest对象 +func NewTaobaoFilmLotterySendcodeRequest() *TaobaoFilmLotterySendcodeAPIRequest{ + return &TaobaoFilmLotterySendcodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFilmLotterySendcodeAPIRequest) GetApiMethodName() string { + return "taobao.film.lottery.sendcode" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFilmLotterySendcodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamFCodeMerchantSendCodeRequest Setter +// 外部商户发码请求 +func (r *TaobaoFilmLotterySendcodeAPIRequest) SetParamFCodeMerchantSendCodeRequest(_paramFCodeMerchantSendCodeRequest *FCodeMerchantSendCodeRq) error { + r._paramFCodeMerchantSendCodeRequest = _paramFCodeMerchantSendCodeRequest + r.Set("param_f_code_merchant_send_code_request", _paramFCodeMerchantSendCodeRequest) + return nil +} + +// ParamFCodeMerchantSendCodeRequest Getter +func (r TaobaoFilmLotterySendcodeAPIRequest) GetParamFCodeMerchantSendCodeRequest() *FCodeMerchantSendCodeRq { + return r._paramFCodeMerchantSendCodeRequest +} diff --git a/model/film/TaobaoFilmLotterySendcodeAPIResponse.go b/model/film/TaobaoFilmLotterySendcodeAPIResponse.go new file mode 100644 index 0000000000..8af7c4906e --- /dev/null +++ b/model/film/TaobaoFilmLotterySendcodeAPIResponse.go @@ -0,0 +1,27 @@ +package film + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘票票外部直发券 API返回值 +taobao.film.lottery.sendcode + +淘票票外部直发券 +*/ +type TaobaoFilmLotterySendcodeAPIResponse struct { + model.CommonResponse + TaobaoFilmLotterySendcodeAPIResponseModel +} + +// 淘票票外部直发券 成功返回结果 +type TaobaoFilmLotterySendcodeAPIResponseModel struct { + XMLName xml.Name `xml:"film_lottery_sendcode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultGeneralModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/film/TaobaoFilmLotterySendcodeResponse.go b/model/film/TaobaoFilmLotterySendcodeResponse.go deleted file mode 100644 index 3fd7838824..0000000000 --- a/model/film/TaobaoFilmLotterySendcodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package film - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘票票外部直发券 API返回值 -taobao.film.lottery.sendcode - -淘票票外部直发券 -*/ -type TaobaoFilmLotterySendcodeAPIResponse struct { - model.CommonResponse - TaobaoFilmLotterySendcodeResponse -} - -// 淘票票外部直发券 成功返回结果 -type TaobaoFilmLotterySendcodeResponse struct { - XMLName xml.Name `xml:"film_lottery_sendcode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultGeneralModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/film/TaobaoFilmTfbackyardCardscheduleUpdateAPIRequest.go b/model/film/TaobaoFilmTfbackyardCardscheduleUpdateAPIRequest.go new file mode 100644 index 0000000000..0a13725a19 --- /dev/null +++ b/model/film/TaobaoFilmTfbackyardCardscheduleUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package film + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +CGV影城卡排期数据传输 API请求 +taobao.film.tfbackyard.cardschedule.update + +cgv影城卡排期价格数据传输API +*/ +type TaobaoFilmTfbackyardCardscheduleUpdateAPIRequest struct { + model.Params + // CGV影城卡价格数据 + _jsonData string +} + +// 初始化TaobaoFilmTfbackyardCardscheduleUpdateAPIRequest对象 +func NewTaobaoFilmTfbackyardCardscheduleUpdateRequest() *TaobaoFilmTfbackyardCardscheduleUpdateAPIRequest{ + return &TaobaoFilmTfbackyardCardscheduleUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFilmTfbackyardCardscheduleUpdateAPIRequest) GetApiMethodName() string { + return "taobao.film.tfbackyard.cardschedule.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFilmTfbackyardCardscheduleUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// JsonData Setter +// CGV影城卡价格数据 +func (r *TaobaoFilmTfbackyardCardscheduleUpdateAPIRequest) SetJsonData(_jsonData string) error { + r._jsonData = _jsonData + r.Set("json_data", _jsonData) + return nil +} + +// JsonData Getter +func (r TaobaoFilmTfbackyardCardscheduleUpdateAPIRequest) GetJsonData() string { + return r._jsonData +} diff --git a/model/film/TaobaoFilmTfbackyardCardscheduleUpdateAPIResponse.go b/model/film/TaobaoFilmTfbackyardCardscheduleUpdateAPIResponse.go new file mode 100644 index 0000000000..1fda6a7c14 --- /dev/null +++ b/model/film/TaobaoFilmTfbackyardCardscheduleUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package film + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +CGV影城卡排期数据传输 API返回值 +taobao.film.tfbackyard.cardschedule.update + +cgv影城卡排期价格数据传输API +*/ +type TaobaoFilmTfbackyardCardscheduleUpdateAPIResponse struct { + model.CommonResponse + TaobaoFilmTfbackyardCardscheduleUpdateAPIResponseModel +} + +// CGV影城卡排期数据传输 成功返回结果 +type TaobaoFilmTfbackyardCardscheduleUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"film_tfbackyard_cardschedule_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/film/TaobaoFilmTfbackyardCardscheduleUpdateResponse.go b/model/film/TaobaoFilmTfbackyardCardscheduleUpdateResponse.go deleted file mode 100644 index ae10c20f70..0000000000 --- a/model/film/TaobaoFilmTfbackyardCardscheduleUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package film - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -CGV影城卡排期数据传输 API返回值 -taobao.film.tfbackyard.cardschedule.update - -cgv影城卡排期价格数据传输API -*/ -type TaobaoFilmTfbackyardCardscheduleUpdateAPIResponse struct { - model.CommonResponse - TaobaoFilmTfbackyardCardscheduleUpdateResponse -} - -// CGV影城卡排期数据传输 成功返回结果 -type TaobaoFilmTfbackyardCardscheduleUpdateResponse struct { - XMLName xml.Name `xml:"film_tfbackyard_cardschedule_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/filmtfavatar/TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest.go b/model/filmtfavatar/TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest.go new file mode 100644 index 0000000000..960db3b28e --- /dev/null +++ b/model/filmtfavatar/TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest.go @@ -0,0 +1,136 @@ +package filmtfavatar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取影院卖品账单--支付账单 API请求 +taobao.film.tfavatar.bill.sale.payment.query + +获取影院卖品账单--支付账单 +*/ +type TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest struct { + model.Params + // 自运营开放平台APPKEY + _openAppKey string + // 影院ID + _cinemaId int64 + // 开始时间 + _beginTime string + // 结束时间 + _endTime string + // 包含的订单状态, 默认不填 + _includedOrderStatus []string + // offset 下标, 从0开始 + _offset int64 + // 页大小 + _pageSize int64 +} + +// 初始化TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest对象 +func NewTaobaoFilmTfavatarBillSalePaymentQueryRequest() *TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest{ + return &TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest) GetApiMethodName() string { + return "taobao.film.tfavatar.bill.sale.payment.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenAppKey Setter +// 自运营开放平台APPKEY +func (r *TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest) SetOpenAppKey(_openAppKey string) error { + r._openAppKey = _openAppKey + r.Set("open_app_key", _openAppKey) + return nil +} + +// OpenAppKey Getter +func (r TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest) GetOpenAppKey() string { + return r._openAppKey +} +// CinemaId Setter +// 影院ID +func (r *TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest) SetCinemaId(_cinemaId int64) error { + r._cinemaId = _cinemaId + r.Set("cinema_id", _cinemaId) + return nil +} + +// CinemaId Getter +func (r TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest) GetCinemaId() int64 { + return r._cinemaId +} +// BeginTime Setter +// 开始时间 +func (r *TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest) SetBeginTime(_beginTime string) error { + r._beginTime = _beginTime + r.Set("begin_time", _beginTime) + return nil +} + +// BeginTime Getter +func (r TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest) GetBeginTime() string { + return r._beginTime +} +// EndTime Setter +// 结束时间 +func (r *TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest) GetEndTime() string { + return r._endTime +} +// IncludedOrderStatus Setter +// 包含的订单状态, 默认不填 +func (r *TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest) SetIncludedOrderStatus(_includedOrderStatus []string) error { + r._includedOrderStatus = _includedOrderStatus + r.Set("included_order_status", _includedOrderStatus) + return nil +} + +// IncludedOrderStatus Getter +func (r TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest) GetIncludedOrderStatus() []string { + return r._includedOrderStatus +} +// Offset Setter +// offset 下标, 从0开始 +func (r *TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest) SetOffset(_offset int64) error { + r._offset = _offset + r.Set("offset", _offset) + return nil +} + +// Offset Getter +func (r TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest) GetOffset() int64 { + return r._offset +} +// PageSize Setter +// 页大小 +func (r *TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoFilmTfavatarBillSalePaymentQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/filmtfavatar/TaobaoFilmTfavatarBillSalePaymentQueryAPIResponse.go b/model/filmtfavatar/TaobaoFilmTfavatarBillSalePaymentQueryAPIResponse.go new file mode 100644 index 0000000000..6801c8e8cf --- /dev/null +++ b/model/filmtfavatar/TaobaoFilmTfavatarBillSalePaymentQueryAPIResponse.go @@ -0,0 +1,27 @@ +package filmtfavatar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取影院卖品账单--支付账单 API返回值 +taobao.film.tfavatar.bill.sale.payment.query + +获取影院卖品账单--支付账单 +*/ +type TaobaoFilmTfavatarBillSalePaymentQueryAPIResponse struct { + model.CommonResponse + TaobaoFilmTfavatarBillSalePaymentQueryAPIResponseModel +} + +// 获取影院卖品账单--支付账单 成功返回结果 +type TaobaoFilmTfavatarBillSalePaymentQueryAPIResponseModel struct { + XMLName xml.Name `xml:"film_tfavatar_bill_sale_payment_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoFilmTfavatarBillSalePaymentQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/filmtfavatar/TaobaoFilmTfavatarBillSalePaymentQueryResponse.go b/model/filmtfavatar/TaobaoFilmTfavatarBillSalePaymentQueryResponse.go deleted file mode 100644 index bf7d66b5e5..0000000000 --- a/model/filmtfavatar/TaobaoFilmTfavatarBillSalePaymentQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package filmtfavatar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取影院卖品账单--支付账单 API返回值 -taobao.film.tfavatar.bill.sale.payment.query - -获取影院卖品账单--支付账单 -*/ -type TaobaoFilmTfavatarBillSalePaymentQueryAPIResponse struct { - model.CommonResponse - TaobaoFilmTfavatarBillSalePaymentQueryResponse -} - -// 获取影院卖品账单--支付账单 成功返回结果 -type TaobaoFilmTfavatarBillSalePaymentQueryResponse struct { - XMLName xml.Name `xml:"film_tfavatar_bill_sale_payment_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoFilmTfavatarBillSalePaymentQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/filmtfavatar/TaobaoFilmTfavatarBillSalePrintQueryAPIRequest.go b/model/filmtfavatar/TaobaoFilmTfavatarBillSalePrintQueryAPIRequest.go new file mode 100644 index 0000000000..ecdd661c12 --- /dev/null +++ b/model/filmtfavatar/TaobaoFilmTfavatarBillSalePrintQueryAPIRequest.go @@ -0,0 +1,137 @@ +package filmtfavatar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取影院卖品账单-核销账单 API请求 +taobao.film.tfavatar.bill.sale.print.query + +获取影院卖品账单-核销账单 +返回值data属于加密字段, 并非大字段. +*/ +type TaobaoFilmTfavatarBillSalePrintQueryAPIRequest struct { + model.Params + // 自运营开放平台APPKEY + _openAppKey string + // 影院ID + _cinemaId int64 + // 开始时间 + _beginTime string + // 结束时间 + _endTime string + // 包含的订单状态, 默认不填 + _includedOrderStatus []string + // offset 下标, 从0开始 + _offset int64 + // 页大小 + _pageSize int64 +} + +// 初始化TaobaoFilmTfavatarBillSalePrintQueryAPIRequest对象 +func NewTaobaoFilmTfavatarBillSalePrintQueryRequest() *TaobaoFilmTfavatarBillSalePrintQueryAPIRequest{ + return &TaobaoFilmTfavatarBillSalePrintQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFilmTfavatarBillSalePrintQueryAPIRequest) GetApiMethodName() string { + return "taobao.film.tfavatar.bill.sale.print.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFilmTfavatarBillSalePrintQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenAppKey Setter +// 自运营开放平台APPKEY +func (r *TaobaoFilmTfavatarBillSalePrintQueryAPIRequest) SetOpenAppKey(_openAppKey string) error { + r._openAppKey = _openAppKey + r.Set("open_app_key", _openAppKey) + return nil +} + +// OpenAppKey Getter +func (r TaobaoFilmTfavatarBillSalePrintQueryAPIRequest) GetOpenAppKey() string { + return r._openAppKey +} +// CinemaId Setter +// 影院ID +func (r *TaobaoFilmTfavatarBillSalePrintQueryAPIRequest) SetCinemaId(_cinemaId int64) error { + r._cinemaId = _cinemaId + r.Set("cinema_id", _cinemaId) + return nil +} + +// CinemaId Getter +func (r TaobaoFilmTfavatarBillSalePrintQueryAPIRequest) GetCinemaId() int64 { + return r._cinemaId +} +// BeginTime Setter +// 开始时间 +func (r *TaobaoFilmTfavatarBillSalePrintQueryAPIRequest) SetBeginTime(_beginTime string) error { + r._beginTime = _beginTime + r.Set("begin_time", _beginTime) + return nil +} + +// BeginTime Getter +func (r TaobaoFilmTfavatarBillSalePrintQueryAPIRequest) GetBeginTime() string { + return r._beginTime +} +// EndTime Setter +// 结束时间 +func (r *TaobaoFilmTfavatarBillSalePrintQueryAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoFilmTfavatarBillSalePrintQueryAPIRequest) GetEndTime() string { + return r._endTime +} +// IncludedOrderStatus Setter +// 包含的订单状态, 默认不填 +func (r *TaobaoFilmTfavatarBillSalePrintQueryAPIRequest) SetIncludedOrderStatus(_includedOrderStatus []string) error { + r._includedOrderStatus = _includedOrderStatus + r.Set("included_order_status", _includedOrderStatus) + return nil +} + +// IncludedOrderStatus Getter +func (r TaobaoFilmTfavatarBillSalePrintQueryAPIRequest) GetIncludedOrderStatus() []string { + return r._includedOrderStatus +} +// Offset Setter +// offset 下标, 从0开始 +func (r *TaobaoFilmTfavatarBillSalePrintQueryAPIRequest) SetOffset(_offset int64) error { + r._offset = _offset + r.Set("offset", _offset) + return nil +} + +// Offset Getter +func (r TaobaoFilmTfavatarBillSalePrintQueryAPIRequest) GetOffset() int64 { + return r._offset +} +// PageSize Setter +// 页大小 +func (r *TaobaoFilmTfavatarBillSalePrintQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoFilmTfavatarBillSalePrintQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/filmtfavatar/TaobaoFilmTfavatarBillSalePrintQueryAPIResponse.go b/model/filmtfavatar/TaobaoFilmTfavatarBillSalePrintQueryAPIResponse.go new file mode 100644 index 0000000000..6af8ce8080 --- /dev/null +++ b/model/filmtfavatar/TaobaoFilmTfavatarBillSalePrintQueryAPIResponse.go @@ -0,0 +1,28 @@ +package filmtfavatar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取影院卖品账单-核销账单 API返回值 +taobao.film.tfavatar.bill.sale.print.query + +获取影院卖品账单-核销账单 +返回值data属于加密字段, 并非大字段. +*/ +type TaobaoFilmTfavatarBillSalePrintQueryAPIResponse struct { + model.CommonResponse + TaobaoFilmTfavatarBillSalePrintQueryAPIResponseModel +} + +// 获取影院卖品账单-核销账单 成功返回结果 +type TaobaoFilmTfavatarBillSalePrintQueryAPIResponseModel struct { + XMLName xml.Name `xml:"film_tfavatar_bill_sale_print_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoFilmTfavatarBillSalePrintQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/filmtfavatar/TaobaoFilmTfavatarBillSalePrintQueryResponse.go b/model/filmtfavatar/TaobaoFilmTfavatarBillSalePrintQueryResponse.go deleted file mode 100644 index e1471322dd..0000000000 --- a/model/filmtfavatar/TaobaoFilmTfavatarBillSalePrintQueryResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package filmtfavatar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取影院卖品账单-核销账单 API返回值 -taobao.film.tfavatar.bill.sale.print.query - -获取影院卖品账单-核销账单 -返回值data属于加密字段, 并非大字段. -*/ -type TaobaoFilmTfavatarBillSalePrintQueryAPIResponse struct { - model.CommonResponse - TaobaoFilmTfavatarBillSalePrintQueryResponse -} - -// 获取影院卖品账单-核销账单 成功返回结果 -type TaobaoFilmTfavatarBillSalePrintQueryResponse struct { - XMLName xml.Name `xml:"film_tfavatar_bill_sale_print_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoFilmTfavatarBillSalePrintQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/filmtfavatar/TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest.go b/model/filmtfavatar/TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest.go new file mode 100644 index 0000000000..7a55db97c6 --- /dev/null +++ b/model/filmtfavatar/TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest.go @@ -0,0 +1,136 @@ +package filmtfavatar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取影院卖品账单--退款账单 API请求 +taobao.film.tfavatar.bill.sale.refund.query + +获取影院卖品账单--退款账单 +*/ +type TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest struct { + model.Params + // 自运营开放平台APPKEY + _openAppKey string + // 影院ID + _cinemaId int64 + // 开始时间 + _beginTime string + // 结束时间 + _endTime string + // 包含的订单状态, 默认不填 + _includedOrderStatus []string + // offset 下标, 从0开始 + _offset int64 + // 页大小 + _pageSize int64 +} + +// 初始化TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest对象 +func NewTaobaoFilmTfavatarBillSaleRefundQueryRequest() *TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest{ + return &TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest) GetApiMethodName() string { + return "taobao.film.tfavatar.bill.sale.refund.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenAppKey Setter +// 自运营开放平台APPKEY +func (r *TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest) SetOpenAppKey(_openAppKey string) error { + r._openAppKey = _openAppKey + r.Set("open_app_key", _openAppKey) + return nil +} + +// OpenAppKey Getter +func (r TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest) GetOpenAppKey() string { + return r._openAppKey +} +// CinemaId Setter +// 影院ID +func (r *TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest) SetCinemaId(_cinemaId int64) error { + r._cinemaId = _cinemaId + r.Set("cinema_id", _cinemaId) + return nil +} + +// CinemaId Getter +func (r TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest) GetCinemaId() int64 { + return r._cinemaId +} +// BeginTime Setter +// 开始时间 +func (r *TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest) SetBeginTime(_beginTime string) error { + r._beginTime = _beginTime + r.Set("begin_time", _beginTime) + return nil +} + +// BeginTime Getter +func (r TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest) GetBeginTime() string { + return r._beginTime +} +// EndTime Setter +// 结束时间 +func (r *TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest) GetEndTime() string { + return r._endTime +} +// IncludedOrderStatus Setter +// 包含的订单状态, 默认不填 +func (r *TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest) SetIncludedOrderStatus(_includedOrderStatus []string) error { + r._includedOrderStatus = _includedOrderStatus + r.Set("included_order_status", _includedOrderStatus) + return nil +} + +// IncludedOrderStatus Getter +func (r TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest) GetIncludedOrderStatus() []string { + return r._includedOrderStatus +} +// Offset Setter +// offset 下标, 从0开始 +func (r *TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest) SetOffset(_offset int64) error { + r._offset = _offset + r.Set("offset", _offset) + return nil +} + +// Offset Getter +func (r TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest) GetOffset() int64 { + return r._offset +} +// PageSize Setter +// 页大小 +func (r *TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoFilmTfavatarBillSaleRefundQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/filmtfavatar/TaobaoFilmTfavatarBillSaleRefundQueryAPIResponse.go b/model/filmtfavatar/TaobaoFilmTfavatarBillSaleRefundQueryAPIResponse.go new file mode 100644 index 0000000000..b0b215e8ce --- /dev/null +++ b/model/filmtfavatar/TaobaoFilmTfavatarBillSaleRefundQueryAPIResponse.go @@ -0,0 +1,27 @@ +package filmtfavatar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取影院卖品账单--退款账单 API返回值 +taobao.film.tfavatar.bill.sale.refund.query + +获取影院卖品账单--退款账单 +*/ +type TaobaoFilmTfavatarBillSaleRefundQueryAPIResponse struct { + model.CommonResponse + TaobaoFilmTfavatarBillSaleRefundQueryAPIResponseModel +} + +// 获取影院卖品账单--退款账单 成功返回结果 +type TaobaoFilmTfavatarBillSaleRefundQueryAPIResponseModel struct { + XMLName xml.Name `xml:"film_tfavatar_bill_sale_refund_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoFilmTfavatarBillSaleRefundQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/filmtfavatar/TaobaoFilmTfavatarBillSaleRefundQueryResponse.go b/model/filmtfavatar/TaobaoFilmTfavatarBillSaleRefundQueryResponse.go deleted file mode 100644 index f3c5f62b55..0000000000 --- a/model/filmtfavatar/TaobaoFilmTfavatarBillSaleRefundQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package filmtfavatar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取影院卖品账单--退款账单 API返回值 -taobao.film.tfavatar.bill.sale.refund.query - -获取影院卖品账单--退款账单 -*/ -type TaobaoFilmTfavatarBillSaleRefundQueryAPIResponse struct { - model.CommonResponse - TaobaoFilmTfavatarBillSaleRefundQueryResponse -} - -// 获取影院卖品账单--退款账单 成功返回结果 -type TaobaoFilmTfavatarBillSaleRefundQueryResponse struct { - XMLName xml.Name `xml:"film_tfavatar_bill_sale_refund_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoFilmTfavatarBillSaleRefundQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/filmtfavatar/TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest.go b/model/filmtfavatar/TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest.go new file mode 100644 index 0000000000..a09ba8afe1 --- /dev/null +++ b/model/filmtfavatar/TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest.go @@ -0,0 +1,136 @@ +package filmtfavatar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取影院票务账单-支付订单 API请求 +taobao.film.tfavatar.bill.ticket.payment.query + +获取影院票务账单-支付订单 +*/ +type TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest struct { + model.Params + // 自运营开放平台APPKEY + _openAppKey string + // 影院ID + _cinemaId int64 + // 开始时间 + _beginTime string + // 结束时间 + _endTime string + // 包含的订单状态, 默认不填 + _includedOrderStatus []string + // offset 下标, 从0开始 + _offset int64 + // 页大小 + _pageSize int64 +} + +// 初始化TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest对象 +func NewTaobaoFilmTfavatarBillTicketPaymentQueryRequest() *TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest{ + return &TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest) GetApiMethodName() string { + return "taobao.film.tfavatar.bill.ticket.payment.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenAppKey Setter +// 自运营开放平台APPKEY +func (r *TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest) SetOpenAppKey(_openAppKey string) error { + r._openAppKey = _openAppKey + r.Set("open_app_key", _openAppKey) + return nil +} + +// OpenAppKey Getter +func (r TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest) GetOpenAppKey() string { + return r._openAppKey +} +// CinemaId Setter +// 影院ID +func (r *TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest) SetCinemaId(_cinemaId int64) error { + r._cinemaId = _cinemaId + r.Set("cinema_id", _cinemaId) + return nil +} + +// CinemaId Getter +func (r TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest) GetCinemaId() int64 { + return r._cinemaId +} +// BeginTime Setter +// 开始时间 +func (r *TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest) SetBeginTime(_beginTime string) error { + r._beginTime = _beginTime + r.Set("begin_time", _beginTime) + return nil +} + +// BeginTime Getter +func (r TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest) GetBeginTime() string { + return r._beginTime +} +// EndTime Setter +// 结束时间 +func (r *TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest) GetEndTime() string { + return r._endTime +} +// IncludedOrderStatus Setter +// 包含的订单状态, 默认不填 +func (r *TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest) SetIncludedOrderStatus(_includedOrderStatus []string) error { + r._includedOrderStatus = _includedOrderStatus + r.Set("included_order_status", _includedOrderStatus) + return nil +} + +// IncludedOrderStatus Getter +func (r TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest) GetIncludedOrderStatus() []string { + return r._includedOrderStatus +} +// Offset Setter +// offset 下标, 从0开始 +func (r *TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest) SetOffset(_offset int64) error { + r._offset = _offset + r.Set("offset", _offset) + return nil +} + +// Offset Getter +func (r TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest) GetOffset() int64 { + return r._offset +} +// PageSize Setter +// 页大小 +func (r *TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoFilmTfavatarBillTicketPaymentQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/filmtfavatar/TaobaoFilmTfavatarBillTicketPaymentQueryAPIResponse.go b/model/filmtfavatar/TaobaoFilmTfavatarBillTicketPaymentQueryAPIResponse.go new file mode 100644 index 0000000000..5c4178085f --- /dev/null +++ b/model/filmtfavatar/TaobaoFilmTfavatarBillTicketPaymentQueryAPIResponse.go @@ -0,0 +1,27 @@ +package filmtfavatar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取影院票务账单-支付订单 API返回值 +taobao.film.tfavatar.bill.ticket.payment.query + +获取影院票务账单-支付订单 +*/ +type TaobaoFilmTfavatarBillTicketPaymentQueryAPIResponse struct { + model.CommonResponse + TaobaoFilmTfavatarBillTicketPaymentQueryAPIResponseModel +} + +// 获取影院票务账单-支付订单 成功返回结果 +type TaobaoFilmTfavatarBillTicketPaymentQueryAPIResponseModel struct { + XMLName xml.Name `xml:"film_tfavatar_bill_ticket_payment_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoFilmTfavatarBillTicketPaymentQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/filmtfavatar/TaobaoFilmTfavatarBillTicketPaymentQueryResponse.go b/model/filmtfavatar/TaobaoFilmTfavatarBillTicketPaymentQueryResponse.go deleted file mode 100644 index e1d6285257..0000000000 --- a/model/filmtfavatar/TaobaoFilmTfavatarBillTicketPaymentQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package filmtfavatar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取影院票务账单-支付订单 API返回值 -taobao.film.tfavatar.bill.ticket.payment.query - -获取影院票务账单-支付订单 -*/ -type TaobaoFilmTfavatarBillTicketPaymentQueryAPIResponse struct { - model.CommonResponse - TaobaoFilmTfavatarBillTicketPaymentQueryResponse -} - -// 获取影院票务账单-支付订单 成功返回结果 -type TaobaoFilmTfavatarBillTicketPaymentQueryResponse struct { - XMLName xml.Name `xml:"film_tfavatar_bill_ticket_payment_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoFilmTfavatarBillTicketPaymentQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/filmtfavatar/TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest.go b/model/filmtfavatar/TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest.go new file mode 100644 index 0000000000..0365dad1d7 --- /dev/null +++ b/model/filmtfavatar/TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest.go @@ -0,0 +1,137 @@ +package filmtfavatar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取影院票务账单-退款账单 API请求 +taobao.film.tfavatar.bill.ticket.refund.query + +获取影院票务账单-支付订单 +data字段为加密字段, 不可分拆. +*/ +type TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest struct { + model.Params + // 自运营开放平台APPKEY + _openAppKey string + // 影院ID + _cinemaId int64 + // 开始时间 + _beginTime string + // 结束时间 + _endTime string + // 包含的订单状态, 默认不填 + _includedOrderStatus []string + // offset 下标, 从0开始 + _offset int64 + // 页大小 + _pageSize int64 +} + +// 初始化TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest对象 +func NewTaobaoFilmTfavatarBillTicketRefundQueryRequest() *TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest{ + return &TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest) GetApiMethodName() string { + return "taobao.film.tfavatar.bill.ticket.refund.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenAppKey Setter +// 自运营开放平台APPKEY +func (r *TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest) SetOpenAppKey(_openAppKey string) error { + r._openAppKey = _openAppKey + r.Set("open_app_key", _openAppKey) + return nil +} + +// OpenAppKey Getter +func (r TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest) GetOpenAppKey() string { + return r._openAppKey +} +// CinemaId Setter +// 影院ID +func (r *TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest) SetCinemaId(_cinemaId int64) error { + r._cinemaId = _cinemaId + r.Set("cinema_id", _cinemaId) + return nil +} + +// CinemaId Getter +func (r TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest) GetCinemaId() int64 { + return r._cinemaId +} +// BeginTime Setter +// 开始时间 +func (r *TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest) SetBeginTime(_beginTime string) error { + r._beginTime = _beginTime + r.Set("begin_time", _beginTime) + return nil +} + +// BeginTime Getter +func (r TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest) GetBeginTime() string { + return r._beginTime +} +// EndTime Setter +// 结束时间 +func (r *TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest) GetEndTime() string { + return r._endTime +} +// IncludedOrderStatus Setter +// 包含的订单状态, 默认不填 +func (r *TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest) SetIncludedOrderStatus(_includedOrderStatus []string) error { + r._includedOrderStatus = _includedOrderStatus + r.Set("included_order_status", _includedOrderStatus) + return nil +} + +// IncludedOrderStatus Getter +func (r TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest) GetIncludedOrderStatus() []string { + return r._includedOrderStatus +} +// Offset Setter +// offset 下标, 从0开始 +func (r *TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest) SetOffset(_offset int64) error { + r._offset = _offset + r.Set("offset", _offset) + return nil +} + +// Offset Getter +func (r TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest) GetOffset() int64 { + return r._offset +} +// PageSize Setter +// 页大小 +func (r *TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoFilmTfavatarBillTicketRefundQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/filmtfavatar/TaobaoFilmTfavatarBillTicketRefundQueryAPIResponse.go b/model/filmtfavatar/TaobaoFilmTfavatarBillTicketRefundQueryAPIResponse.go new file mode 100644 index 0000000000..3b7d44ee28 --- /dev/null +++ b/model/filmtfavatar/TaobaoFilmTfavatarBillTicketRefundQueryAPIResponse.go @@ -0,0 +1,28 @@ +package filmtfavatar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取影院票务账单-退款账单 API返回值 +taobao.film.tfavatar.bill.ticket.refund.query + +获取影院票务账单-支付订单 +data字段为加密字段, 不可分拆. +*/ +type TaobaoFilmTfavatarBillTicketRefundQueryAPIResponse struct { + model.CommonResponse + TaobaoFilmTfavatarBillTicketRefundQueryAPIResponseModel +} + +// 获取影院票务账单-退款账单 成功返回结果 +type TaobaoFilmTfavatarBillTicketRefundQueryAPIResponseModel struct { + XMLName xml.Name `xml:"film_tfavatar_bill_ticket_refund_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoFilmTfavatarBillTicketRefundQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/filmtfavatar/TaobaoFilmTfavatarBillTicketRefundQueryResponse.go b/model/filmtfavatar/TaobaoFilmTfavatarBillTicketRefundQueryResponse.go deleted file mode 100644 index 0d8258f40e..0000000000 --- a/model/filmtfavatar/TaobaoFilmTfavatarBillTicketRefundQueryResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package filmtfavatar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取影院票务账单-退款账单 API返回值 -taobao.film.tfavatar.bill.ticket.refund.query - -获取影院票务账单-支付订单 -data字段为加密字段, 不可分拆. -*/ -type TaobaoFilmTfavatarBillTicketRefundQueryAPIResponse struct { - model.CommonResponse - TaobaoFilmTfavatarBillTicketRefundQueryResponse -} - -// 获取影院票务账单-退款账单 成功返回结果 -type TaobaoFilmTfavatarBillTicketRefundQueryResponse struct { - XMLName xml.Name `xml:"film_tfavatar_bill_ticket_refund_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoFilmTfavatarBillTicketRefundQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fivee/TaobaoFiveeCompanyGetAPIRequest.go b/model/fivee/TaobaoFiveeCompanyGetAPIRequest.go new file mode 100644 index 0000000000..45c039a545 --- /dev/null +++ b/model/fivee/TaobaoFiveeCompanyGetAPIRequest.go @@ -0,0 +1,66 @@ +package fivee + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商信息 API请求 +taobao.fivee.company.get + +资质共享平台查询商信息 +*/ +type TaobaoFiveeCompanyGetAPIRequest struct { + model.Params + // bu身份标识 + _paramBucode string + // 统一社会信息用代码 + _paramUniqueCode string +} + +// 初始化TaobaoFiveeCompanyGetAPIRequest对象 +func NewTaobaoFiveeCompanyGetRequest() *TaobaoFiveeCompanyGetAPIRequest{ + return &TaobaoFiveeCompanyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFiveeCompanyGetAPIRequest) GetApiMethodName() string { + return "taobao.fivee.company.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFiveeCompanyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBucode Setter +// bu身份标识 +func (r *TaobaoFiveeCompanyGetAPIRequest) SetParamBucode(_paramBucode string) error { + r._paramBucode = _paramBucode + r.Set("param_bucode", _paramBucode) + return nil +} + +// ParamBucode Getter +func (r TaobaoFiveeCompanyGetAPIRequest) GetParamBucode() string { + return r._paramBucode +} +// ParamUniqueCode Setter +// 统一社会信息用代码 +func (r *TaobaoFiveeCompanyGetAPIRequest) SetParamUniqueCode(_paramUniqueCode string) error { + r._paramUniqueCode = _paramUniqueCode + r.Set("param_unique_code", _paramUniqueCode) + return nil +} + +// ParamUniqueCode Getter +func (r TaobaoFiveeCompanyGetAPIRequest) GetParamUniqueCode() string { + return r._paramUniqueCode +} diff --git a/model/fivee/TaobaoFiveeCompanyGetAPIResponse.go b/model/fivee/TaobaoFiveeCompanyGetAPIResponse.go new file mode 100644 index 0000000000..212bfe9ecd --- /dev/null +++ b/model/fivee/TaobaoFiveeCompanyGetAPIResponse.go @@ -0,0 +1,27 @@ +package fivee + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商信息 API返回值 +taobao.fivee.company.get + +资质共享平台查询商信息 +*/ +type TaobaoFiveeCompanyGetAPIResponse struct { + model.CommonResponse + TaobaoFiveeCompanyGetAPIResponseModel +} + +// 查询商信息 成功返回结果 +type TaobaoFiveeCompanyGetAPIResponseModel struct { + XMLName xml.Name `xml:"fivee_company_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoFiveeCompanyGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fivee/TaobaoFiveeCompanyGetResponse.go b/model/fivee/TaobaoFiveeCompanyGetResponse.go deleted file mode 100644 index 5c58ef673d..0000000000 --- a/model/fivee/TaobaoFiveeCompanyGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fivee - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询商信息 API返回值 -taobao.fivee.company.get - -资质共享平台查询商信息 -*/ -type TaobaoFiveeCompanyGetAPIResponse struct { - model.CommonResponse - TaobaoFiveeCompanyGetResponse -} - -// 查询商信息 成功返回结果 -type TaobaoFiveeCompanyGetResponse struct { - XMLName xml.Name `xml:"fivee_company_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoFiveeCompanyGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fivee/TaobaoFiveeCompanyUploadAPIRequest.go b/model/fivee/TaobaoFiveeCompanyUploadAPIRequest.go new file mode 100644 index 0000000000..cb43590d7a --- /dev/null +++ b/model/fivee/TaobaoFiveeCompanyUploadAPIRequest.go @@ -0,0 +1,66 @@ +package fivee + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传商信息接口 API请求 +taobao.fivee.company.upload + +资质共享平台上传资质证照 +*/ +type TaobaoFiveeCompanyUploadAPIRequest struct { + model.Params + // bu身份标识 + _paramBucode string + // 商家证照信息 + _paramCompany *Company +} + +// 初始化TaobaoFiveeCompanyUploadAPIRequest对象 +func NewTaobaoFiveeCompanyUploadRequest() *TaobaoFiveeCompanyUploadAPIRequest{ + return &TaobaoFiveeCompanyUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFiveeCompanyUploadAPIRequest) GetApiMethodName() string { + return "taobao.fivee.company.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFiveeCompanyUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBucode Setter +// bu身份标识 +func (r *TaobaoFiveeCompanyUploadAPIRequest) SetParamBucode(_paramBucode string) error { + r._paramBucode = _paramBucode + r.Set("param_bucode", _paramBucode) + return nil +} + +// ParamBucode Getter +func (r TaobaoFiveeCompanyUploadAPIRequest) GetParamBucode() string { + return r._paramBucode +} +// ParamCompany Setter +// 商家证照信息 +func (r *TaobaoFiveeCompanyUploadAPIRequest) SetParamCompany(_paramCompany *Company) error { + r._paramCompany = _paramCompany + r.Set("param_company", _paramCompany) + return nil +} + +// ParamCompany Getter +func (r TaobaoFiveeCompanyUploadAPIRequest) GetParamCompany() *Company { + return r._paramCompany +} diff --git a/model/fivee/TaobaoFiveeCompanyUploadAPIResponse.go b/model/fivee/TaobaoFiveeCompanyUploadAPIResponse.go new file mode 100644 index 0000000000..38de0f2ef5 --- /dev/null +++ b/model/fivee/TaobaoFiveeCompanyUploadAPIResponse.go @@ -0,0 +1,33 @@ +package fivee + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传商信息接口 API返回值 +taobao.fivee.company.upload + +资质共享平台上传资质证照 +*/ +type TaobaoFiveeCompanyUploadAPIResponse struct { + model.CommonResponse + TaobaoFiveeCompanyUploadAPIResponseModel +} + +// 上传商信息接口 成功返回结果 +type TaobaoFiveeCompanyUploadAPIResponseModel struct { + XMLName xml.Name `xml:"fivee_company_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // code + CodeT int64 `json:"code_t,omitempty" xml:"code_t,omitempty"` + // 返回素材id + Data string `json:"data,omitempty" xml:"data,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 是否成功 + SuccessT bool `json:"success_t,omitempty" xml:"success_t,omitempty"` +} diff --git a/model/fivee/TaobaoFiveeCompanyUploadResponse.go b/model/fivee/TaobaoFiveeCompanyUploadResponse.go deleted file mode 100644 index 4b1770d6c5..0000000000 --- a/model/fivee/TaobaoFiveeCompanyUploadResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package fivee - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传商信息接口 API返回值 -taobao.fivee.company.upload - -资质共享平台上传资质证照 -*/ -type TaobaoFiveeCompanyUploadAPIResponse struct { - model.CommonResponse - TaobaoFiveeCompanyUploadResponse -} - -// 上传商信息接口 成功返回结果 -type TaobaoFiveeCompanyUploadResponse struct { - XMLName xml.Name `xml:"fivee_company_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // code - CodeT int64 `json:"code_t,omitempty" xml:"code_t,omitempty"` - // 返回素材id - Data string `json:"data,omitempty" xml:"data,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 是否成功 - SuccessT bool `json:"success_t,omitempty" xml:"success_t,omitempty"` -} diff --git a/model/fivee/TaobaoFiveeImportproductGetAPIRequest.go b/model/fivee/TaobaoFiveeImportproductGetAPIRequest.go new file mode 100644 index 0000000000..3051f4698c --- /dev/null +++ b/model/fivee/TaobaoFiveeImportproductGetAPIRequest.go @@ -0,0 +1,66 @@ +package fivee + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +进口商品查询 API请求 +taobao.fivee.importproduct.get + +资质共享平台查询进口商品信息 +*/ +type TaobaoFiveeImportproductGetAPIRequest struct { + model.Params + // bu身份标识 + _paramBuCode string + // 条形码 + _paramBarcode string +} + +// 初始化TaobaoFiveeImportproductGetAPIRequest对象 +func NewTaobaoFiveeImportproductGetRequest() *TaobaoFiveeImportproductGetAPIRequest{ + return &TaobaoFiveeImportproductGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFiveeImportproductGetAPIRequest) GetApiMethodName() string { + return "taobao.fivee.importproduct.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFiveeImportproductGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBuCode Setter +// bu身份标识 +func (r *TaobaoFiveeImportproductGetAPIRequest) SetParamBuCode(_paramBuCode string) error { + r._paramBuCode = _paramBuCode + r.Set("param_bu_code", _paramBuCode) + return nil +} + +// ParamBuCode Getter +func (r TaobaoFiveeImportproductGetAPIRequest) GetParamBuCode() string { + return r._paramBuCode +} +// ParamBarcode Setter +// 条形码 +func (r *TaobaoFiveeImportproductGetAPIRequest) SetParamBarcode(_paramBarcode string) error { + r._paramBarcode = _paramBarcode + r.Set("param_barcode", _paramBarcode) + return nil +} + +// ParamBarcode Getter +func (r TaobaoFiveeImportproductGetAPIRequest) GetParamBarcode() string { + return r._paramBarcode +} diff --git a/model/fivee/TaobaoFiveeImportproductGetAPIResponse.go b/model/fivee/TaobaoFiveeImportproductGetAPIResponse.go new file mode 100644 index 0000000000..ee811ac656 --- /dev/null +++ b/model/fivee/TaobaoFiveeImportproductGetAPIResponse.go @@ -0,0 +1,27 @@ +package fivee + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +进口商品查询 API返回值 +taobao.fivee.importproduct.get + +资质共享平台查询进口商品信息 +*/ +type TaobaoFiveeImportproductGetAPIResponse struct { + model.CommonResponse + TaobaoFiveeImportproductGetAPIResponseModel +} + +// 进口商品查询 成功返回结果 +type TaobaoFiveeImportproductGetAPIResponseModel struct { + XMLName xml.Name `xml:"fivee_importproduct_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoFiveeImportproductGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fivee/TaobaoFiveeImportproductGetResponse.go b/model/fivee/TaobaoFiveeImportproductGetResponse.go deleted file mode 100644 index 572256a5a0..0000000000 --- a/model/fivee/TaobaoFiveeImportproductGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fivee - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -进口商品查询 API返回值 -taobao.fivee.importproduct.get - -资质共享平台查询进口商品信息 -*/ -type TaobaoFiveeImportproductGetAPIResponse struct { - model.CommonResponse - TaobaoFiveeImportproductGetResponse -} - -// 进口商品查询 成功返回结果 -type TaobaoFiveeImportproductGetResponse struct { - XMLName xml.Name `xml:"fivee_importproduct_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoFiveeImportproductGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fivee/TaobaoFiveeImportproductPublishAPIRequest.go b/model/fivee/TaobaoFiveeImportproductPublishAPIRequest.go new file mode 100644 index 0000000000..3c2004df67 --- /dev/null +++ b/model/fivee/TaobaoFiveeImportproductPublishAPIRequest.go @@ -0,0 +1,66 @@ +package fivee + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +进口商品发布 API请求 +taobao.fivee.importproduct.publish + +直营业务商家入住发布商品时,上传商品及商家证照信息 +*/ +type TaobaoFiveeImportproductPublishAPIRequest struct { + model.Params + // 进口商品 + _importProduct *ImportProduct + // bu身份标识 + _paramBucode string +} + +// 初始化TaobaoFiveeImportproductPublishAPIRequest对象 +func NewTaobaoFiveeImportproductPublishRequest() *TaobaoFiveeImportproductPublishAPIRequest{ + return &TaobaoFiveeImportproductPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFiveeImportproductPublishAPIRequest) GetApiMethodName() string { + return "taobao.fivee.importproduct.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFiveeImportproductPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImportProduct Setter +// 进口商品 +func (r *TaobaoFiveeImportproductPublishAPIRequest) SetImportProduct(_importProduct *ImportProduct) error { + r._importProduct = _importProduct + r.Set("import_product", _importProduct) + return nil +} + +// ImportProduct Getter +func (r TaobaoFiveeImportproductPublishAPIRequest) GetImportProduct() *ImportProduct { + return r._importProduct +} +// ParamBucode Setter +// bu身份标识 +func (r *TaobaoFiveeImportproductPublishAPIRequest) SetParamBucode(_paramBucode string) error { + r._paramBucode = _paramBucode + r.Set("param_bucode", _paramBucode) + return nil +} + +// ParamBucode Getter +func (r TaobaoFiveeImportproductPublishAPIRequest) GetParamBucode() string { + return r._paramBucode +} diff --git a/model/fivee/TaobaoFiveeImportproductPublishAPIResponse.go b/model/fivee/TaobaoFiveeImportproductPublishAPIResponse.go new file mode 100644 index 0000000000..d87c6adcbb --- /dev/null +++ b/model/fivee/TaobaoFiveeImportproductPublishAPIResponse.go @@ -0,0 +1,33 @@ +package fivee + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +进口商品发布 API返回值 +taobao.fivee.importproduct.publish + +直营业务商家入住发布商品时,上传商品及商家证照信息 +*/ +type TaobaoFiveeImportproductPublishAPIResponse struct { + model.CommonResponse + TaobaoFiveeImportproductPublishAPIResponseModel +} + +// 进口商品发布 成功返回结果 +type TaobaoFiveeImportproductPublishAPIResponseModel struct { + XMLName xml.Name `xml:"fivee_importproduct_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // code + CodeT int64 `json:"code_t,omitempty" xml:"code_t,omitempty"` + // 返回素材id + Data string `json:"data,omitempty" xml:"data,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 是否成功 + SuccessT bool `json:"success_t,omitempty" xml:"success_t,omitempty"` +} diff --git a/model/fivee/TaobaoFiveeImportproductPublishResponse.go b/model/fivee/TaobaoFiveeImportproductPublishResponse.go deleted file mode 100644 index e5a319bd80..0000000000 --- a/model/fivee/TaobaoFiveeImportproductPublishResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package fivee - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -进口商品发布 API返回值 -taobao.fivee.importproduct.publish - -直营业务商家入住发布商品时,上传商品及商家证照信息 -*/ -type TaobaoFiveeImportproductPublishAPIResponse struct { - model.CommonResponse - TaobaoFiveeImportproductPublishResponse -} - -// 进口商品发布 成功返回结果 -type TaobaoFiveeImportproductPublishResponse struct { - XMLName xml.Name `xml:"fivee_importproduct_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // code - CodeT int64 `json:"code_t,omitempty" xml:"code_t,omitempty"` - // 返回素材id - Data string `json:"data,omitempty" xml:"data,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 是否成功 - SuccessT bool `json:"success_t,omitempty" xml:"success_t,omitempty"` -} diff --git a/model/fivee/TaobaoFiveeInnerproductGetAPIRequest.go b/model/fivee/TaobaoFiveeInnerproductGetAPIRequest.go new file mode 100644 index 0000000000..d9d8d2f4d2 --- /dev/null +++ b/model/fivee/TaobaoFiveeInnerproductGetAPIRequest.go @@ -0,0 +1,66 @@ +package fivee + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +国产商品资质查询 API请求 +taobao.fivee.innerproduct.get + +资质共享平台,国产商品查询 +*/ +type TaobaoFiveeInnerproductGetAPIRequest struct { + model.Params + // bu身份标识 + _paramBucode string + // 条形码 + _paramBarcode string +} + +// 初始化TaobaoFiveeInnerproductGetAPIRequest对象 +func NewTaobaoFiveeInnerproductGetRequest() *TaobaoFiveeInnerproductGetAPIRequest{ + return &TaobaoFiveeInnerproductGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFiveeInnerproductGetAPIRequest) GetApiMethodName() string { + return "taobao.fivee.innerproduct.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFiveeInnerproductGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBucode Setter +// bu身份标识 +func (r *TaobaoFiveeInnerproductGetAPIRequest) SetParamBucode(_paramBucode string) error { + r._paramBucode = _paramBucode + r.Set("param_bucode", _paramBucode) + return nil +} + +// ParamBucode Getter +func (r TaobaoFiveeInnerproductGetAPIRequest) GetParamBucode() string { + return r._paramBucode +} +// ParamBarcode Setter +// 条形码 +func (r *TaobaoFiveeInnerproductGetAPIRequest) SetParamBarcode(_paramBarcode string) error { + r._paramBarcode = _paramBarcode + r.Set("param_barcode", _paramBarcode) + return nil +} + +// ParamBarcode Getter +func (r TaobaoFiveeInnerproductGetAPIRequest) GetParamBarcode() string { + return r._paramBarcode +} diff --git a/model/fivee/TaobaoFiveeInnerproductGetAPIResponse.go b/model/fivee/TaobaoFiveeInnerproductGetAPIResponse.go new file mode 100644 index 0000000000..2d89df5a8c --- /dev/null +++ b/model/fivee/TaobaoFiveeInnerproductGetAPIResponse.go @@ -0,0 +1,27 @@ +package fivee + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +国产商品资质查询 API返回值 +taobao.fivee.innerproduct.get + +资质共享平台,国产商品查询 +*/ +type TaobaoFiveeInnerproductGetAPIResponse struct { + model.CommonResponse + TaobaoFiveeInnerproductGetAPIResponseModel +} + +// 国产商品资质查询 成功返回结果 +type TaobaoFiveeInnerproductGetAPIResponseModel struct { + XMLName xml.Name `xml:"fivee_innerproduct_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoFiveeInnerproductGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fivee/TaobaoFiveeInnerproductGetResponse.go b/model/fivee/TaobaoFiveeInnerproductGetResponse.go deleted file mode 100644 index 99865aa7a8..0000000000 --- a/model/fivee/TaobaoFiveeInnerproductGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fivee - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -国产商品资质查询 API返回值 -taobao.fivee.innerproduct.get - -资质共享平台,国产商品查询 -*/ -type TaobaoFiveeInnerproductGetAPIResponse struct { - model.CommonResponse - TaobaoFiveeInnerproductGetResponse -} - -// 国产商品资质查询 成功返回结果 -type TaobaoFiveeInnerproductGetResponse struct { - XMLName xml.Name `xml:"fivee_innerproduct_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoFiveeInnerproductGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fivee/TaobaoFiveeInnerproductPublishAPIRequest.go b/model/fivee/TaobaoFiveeInnerproductPublishAPIRequest.go new file mode 100644 index 0000000000..4b708720ce --- /dev/null +++ b/model/fivee/TaobaoFiveeInnerproductPublishAPIRequest.go @@ -0,0 +1,66 @@ +package fivee + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +国产商品发布 API请求 +taobao.fivee.innerproduct.publish + +资质共享平台国产商品发布 +*/ +type TaobaoFiveeInnerproductPublishAPIRequest struct { + model.Params + // bu身份标识 + _paramBucode string + // 国产商品 + _paramInnerProduct *InnerProduct +} + +// 初始化TaobaoFiveeInnerproductPublishAPIRequest对象 +func NewTaobaoFiveeInnerproductPublishRequest() *TaobaoFiveeInnerproductPublishAPIRequest{ + return &TaobaoFiveeInnerproductPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFiveeInnerproductPublishAPIRequest) GetApiMethodName() string { + return "taobao.fivee.innerproduct.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFiveeInnerproductPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBucode Setter +// bu身份标识 +func (r *TaobaoFiveeInnerproductPublishAPIRequest) SetParamBucode(_paramBucode string) error { + r._paramBucode = _paramBucode + r.Set("param_bucode", _paramBucode) + return nil +} + +// ParamBucode Getter +func (r TaobaoFiveeInnerproductPublishAPIRequest) GetParamBucode() string { + return r._paramBucode +} +// ParamInnerProduct Setter +// 国产商品 +func (r *TaobaoFiveeInnerproductPublishAPIRequest) SetParamInnerProduct(_paramInnerProduct *InnerProduct) error { + r._paramInnerProduct = _paramInnerProduct + r.Set("param_inner_product", _paramInnerProduct) + return nil +} + +// ParamInnerProduct Getter +func (r TaobaoFiveeInnerproductPublishAPIRequest) GetParamInnerProduct() *InnerProduct { + return r._paramInnerProduct +} diff --git a/model/fivee/TaobaoFiveeInnerproductPublishAPIResponse.go b/model/fivee/TaobaoFiveeInnerproductPublishAPIResponse.go new file mode 100644 index 0000000000..4964edb783 --- /dev/null +++ b/model/fivee/TaobaoFiveeInnerproductPublishAPIResponse.go @@ -0,0 +1,33 @@ +package fivee + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +国产商品发布 API返回值 +taobao.fivee.innerproduct.publish + +资质共享平台国产商品发布 +*/ +type TaobaoFiveeInnerproductPublishAPIResponse struct { + model.CommonResponse + TaobaoFiveeInnerproductPublishAPIResponseModel +} + +// 国产商品发布 成功返回结果 +type TaobaoFiveeInnerproductPublishAPIResponseModel struct { + XMLName xml.Name `xml:"fivee_innerproduct_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // code + CodeT int64 `json:"code_t,omitempty" xml:"code_t,omitempty"` + // 返回素材id + Data string `json:"data,omitempty" xml:"data,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 是否成功 + SuccessT bool `json:"success_t,omitempty" xml:"success_t,omitempty"` +} diff --git a/model/fivee/TaobaoFiveeInnerproductPublishResponse.go b/model/fivee/TaobaoFiveeInnerproductPublishResponse.go deleted file mode 100644 index 627bceeb31..0000000000 --- a/model/fivee/TaobaoFiveeInnerproductPublishResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package fivee - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -国产商品发布 API返回值 -taobao.fivee.innerproduct.publish - -资质共享平台国产商品发布 -*/ -type TaobaoFiveeInnerproductPublishAPIResponse struct { - model.CommonResponse - TaobaoFiveeInnerproductPublishResponse -} - -// 国产商品发布 成功返回结果 -type TaobaoFiveeInnerproductPublishResponse struct { - XMLName xml.Name `xml:"fivee_innerproduct_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // code - CodeT int64 `json:"code_t,omitempty" xml:"code_t,omitempty"` - // 返回素材id - Data string `json:"data,omitempty" xml:"data,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 是否成功 - SuccessT bool `json:"success_t,omitempty" xml:"success_t,omitempty"` -} diff --git a/model/flight/AlitripAgentFlightSellModifyApproveAPIRequest.go b/model/flight/AlitripAgentFlightSellModifyApproveAPIRequest.go new file mode 100644 index 0000000000..95c281d916 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellModifyApproveAPIRequest.go @@ -0,0 +1,52 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销售改签确认 API请求 +alitrip.agent.flight.sell.modify.approve + +销售改签确认 +*/ +type AlitripAgentFlightSellModifyApproveAPIRequest struct { + model.Params + // 入参对象 + _param *ModifyApproveRequestDto +} + +// 初始化AlitripAgentFlightSellModifyApproveAPIRequest对象 +func NewAlitripAgentFlightSellModifyApproveRequest() *AlitripAgentFlightSellModifyApproveAPIRequest{ + return &AlitripAgentFlightSellModifyApproveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripAgentFlightSellModifyApproveAPIRequest) GetApiMethodName() string { + return "alitrip.agent.flight.sell.modify.approve" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripAgentFlightSellModifyApproveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参对象 +func (r *AlitripAgentFlightSellModifyApproveAPIRequest) SetParam(_param *ModifyApproveRequestDto) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlitripAgentFlightSellModifyApproveAPIRequest) GetParam() *ModifyApproveRequestDto { + return r._param +} diff --git a/model/flight/AlitripAgentFlightSellModifyApproveAPIResponse.go b/model/flight/AlitripAgentFlightSellModifyApproveAPIResponse.go new file mode 100644 index 0000000000..460ba7b89f --- /dev/null +++ b/model/flight/AlitripAgentFlightSellModifyApproveAPIResponse.go @@ -0,0 +1,27 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销售改签确认 API返回值 +alitrip.agent.flight.sell.modify.approve + +销售改签确认 +*/ +type AlitripAgentFlightSellModifyApproveAPIResponse struct { + model.CommonResponse + AlitripAgentFlightSellModifyApproveAPIResponseModel +} + +// 销售改签确认 成功返回结果 +type AlitripAgentFlightSellModifyApproveAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_agent_flight_sell_modify_approve_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlitripAgentFlightSellModifyApproveResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellModifyApproveResponse.go b/model/flight/AlitripAgentFlightSellModifyApproveResponse.go deleted file mode 100644 index 742f9e11c6..0000000000 --- a/model/flight/AlitripAgentFlightSellModifyApproveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销售改签确认 API返回值 -alitrip.agent.flight.sell.modify.approve - -销售改签确认 -*/ -type AlitripAgentFlightSellModifyApproveAPIResponse struct { - model.CommonResponse - AlitripAgentFlightSellModifyApproveResponse -} - -// 销售改签确认 成功返回结果 -type AlitripAgentFlightSellModifyApproveResponse struct { - XMLName xml.Name `xml:"alitrip_agent_flight_sell_modify_approve_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlitripAgentFlightSellModifyApproveResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/flight/AlitripAgentFlightSellModifyApproveResultDto.go b/model/flight/AlitripAgentFlightSellModifyApproveResultDto.go new file mode 100644 index 0000000000..f2998164e7 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellModifyApproveResultDto.go @@ -0,0 +1,11 @@ +package flight + +// AlitripAgentFlightSellModifyApproveResultDto +type AlitripAgentFlightSellModifyApproveResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellModifyBackfillAPIRequest.go b/model/flight/AlitripAgentFlightSellModifyBackfillAPIRequest.go new file mode 100644 index 0000000000..7047c86ec3 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellModifyBackfillAPIRequest.go @@ -0,0 +1,52 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销售改签回填 API请求 +alitrip.agent.flight.sell.modify.backfill + +销售改签回填 +*/ +type AlitripAgentFlightSellModifyBackfillAPIRequest struct { + model.Params + // 入参 + _param *ModifyBackFillRequestDto +} + +// 初始化AlitripAgentFlightSellModifyBackfillAPIRequest对象 +func NewAlitripAgentFlightSellModifyBackfillRequest() *AlitripAgentFlightSellModifyBackfillAPIRequest{ + return &AlitripAgentFlightSellModifyBackfillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripAgentFlightSellModifyBackfillAPIRequest) GetApiMethodName() string { + return "alitrip.agent.flight.sell.modify.backfill" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripAgentFlightSellModifyBackfillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *AlitripAgentFlightSellModifyBackfillAPIRequest) SetParam(_param *ModifyBackFillRequestDto) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlitripAgentFlightSellModifyBackfillAPIRequest) GetParam() *ModifyBackFillRequestDto { + return r._param +} diff --git a/model/flight/AlitripAgentFlightSellModifyBackfillAPIResponse.go b/model/flight/AlitripAgentFlightSellModifyBackfillAPIResponse.go new file mode 100644 index 0000000000..f55d48cf0e --- /dev/null +++ b/model/flight/AlitripAgentFlightSellModifyBackfillAPIResponse.go @@ -0,0 +1,27 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销售改签回填 API返回值 +alitrip.agent.flight.sell.modify.backfill + +销售改签回填 +*/ +type AlitripAgentFlightSellModifyBackfillAPIResponse struct { + model.CommonResponse + AlitripAgentFlightSellModifyBackfillAPIResponseModel +} + +// 销售改签回填 成功返回结果 +type AlitripAgentFlightSellModifyBackfillAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_agent_flight_sell_modify_backfill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlitripAgentFlightSellModifyBackfillResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellModifyBackfillResponse.go b/model/flight/AlitripAgentFlightSellModifyBackfillResponse.go deleted file mode 100644 index 7f8600462f..0000000000 --- a/model/flight/AlitripAgentFlightSellModifyBackfillResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销售改签回填 API返回值 -alitrip.agent.flight.sell.modify.backfill - -销售改签回填 -*/ -type AlitripAgentFlightSellModifyBackfillAPIResponse struct { - model.CommonResponse - AlitripAgentFlightSellModifyBackfillResponse -} - -// 销售改签回填 成功返回结果 -type AlitripAgentFlightSellModifyBackfillResponse struct { - XMLName xml.Name `xml:"alitrip_agent_flight_sell_modify_backfill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlitripAgentFlightSellModifyBackfillResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/flight/AlitripAgentFlightSellModifyBackfillResultDto.go b/model/flight/AlitripAgentFlightSellModifyBackfillResultDto.go new file mode 100644 index 0000000000..ffdab7ce96 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellModifyBackfillResultDto.go @@ -0,0 +1,11 @@ +package flight + +// AlitripAgentFlightSellModifyBackfillResultDto +type AlitripAgentFlightSellModifyBackfillResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellModifyDetailAPIRequest.go b/model/flight/AlitripAgentFlightSellModifyDetailAPIRequest.go new file mode 100644 index 0000000000..63286e17b6 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellModifyDetailAPIRequest.go @@ -0,0 +1,66 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销售改签详情 API请求 +alitrip.agent.flight.sell.modify.detail + +销售改签详情 +*/ +type AlitripAgentFlightSellModifyDetailAPIRequest struct { + model.Params + // 申请单号 + _applyId string + // 国内国际标识 + _domesticIntl int64 +} + +// 初始化AlitripAgentFlightSellModifyDetailAPIRequest对象 +func NewAlitripAgentFlightSellModifyDetailRequest() *AlitripAgentFlightSellModifyDetailAPIRequest{ + return &AlitripAgentFlightSellModifyDetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripAgentFlightSellModifyDetailAPIRequest) GetApiMethodName() string { + return "alitrip.agent.flight.sell.modify.detail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripAgentFlightSellModifyDetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApplyId Setter +// 申请单号 +func (r *AlitripAgentFlightSellModifyDetailAPIRequest) SetApplyId(_applyId string) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r AlitripAgentFlightSellModifyDetailAPIRequest) GetApplyId() string { + return r._applyId +} +// DomesticIntl Setter +// 国内国际标识 +func (r *AlitripAgentFlightSellModifyDetailAPIRequest) SetDomesticIntl(_domesticIntl int64) error { + r._domesticIntl = _domesticIntl + r.Set("domestic_intl", _domesticIntl) + return nil +} + +// DomesticIntl Getter +func (r AlitripAgentFlightSellModifyDetailAPIRequest) GetDomesticIntl() int64 { + return r._domesticIntl +} diff --git a/model/flight/AlitripAgentFlightSellModifyDetailAPIResponse.go b/model/flight/AlitripAgentFlightSellModifyDetailAPIResponse.go new file mode 100644 index 0000000000..0eef0c2c57 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellModifyDetailAPIResponse.go @@ -0,0 +1,27 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销售改签详情 API返回值 +alitrip.agent.flight.sell.modify.detail + +销售改签详情 +*/ +type AlitripAgentFlightSellModifyDetailAPIResponse struct { + model.CommonResponse + AlitripAgentFlightSellModifyDetailAPIResponseModel +} + +// 销售改签详情 成功返回结果 +type AlitripAgentFlightSellModifyDetailAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_agent_flight_sell_modify_detail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlitripAgentFlightSellModifyDetailResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellModifyDetailResponse.go b/model/flight/AlitripAgentFlightSellModifyDetailResponse.go deleted file mode 100644 index b104bce8a0..0000000000 --- a/model/flight/AlitripAgentFlightSellModifyDetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销售改签详情 API返回值 -alitrip.agent.flight.sell.modify.detail - -销售改签详情 -*/ -type AlitripAgentFlightSellModifyDetailAPIResponse struct { - model.CommonResponse - AlitripAgentFlightSellModifyDetailResponse -} - -// 销售改签详情 成功返回结果 -type AlitripAgentFlightSellModifyDetailResponse struct { - XMLName xml.Name `xml:"alitrip_agent_flight_sell_modify_detail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlitripAgentFlightSellModifyDetailResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/flight/AlitripAgentFlightSellModifyDetailResultDto.go b/model/flight/AlitripAgentFlightSellModifyDetailResultDto.go new file mode 100644 index 0000000000..c3420d8753 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellModifyDetailResultDto.go @@ -0,0 +1,13 @@ +package flight + +// AlitripAgentFlightSellModifyDetailResultDto +type AlitripAgentFlightSellModifyDetailResultDto struct { + // 结果对象 + Data *ModifyDetailDto `json:"data,omitempty" xml:"data,omitempty"` + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellModifyListAPIRequest.go b/model/flight/AlitripAgentFlightSellModifyListAPIRequest.go new file mode 100644 index 0000000000..f42d2d0a58 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellModifyListAPIRequest.go @@ -0,0 +1,52 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销售改签单列表 API请求 +alitrip.agent.flight.sell.modify.list + +销售改签单列表 +*/ +type AlitripAgentFlightSellModifyListAPIRequest struct { + model.Params + // 入参 + _param *ModifyListRequestDto +} + +// 初始化AlitripAgentFlightSellModifyListAPIRequest对象 +func NewAlitripAgentFlightSellModifyListRequest() *AlitripAgentFlightSellModifyListAPIRequest{ + return &AlitripAgentFlightSellModifyListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripAgentFlightSellModifyListAPIRequest) GetApiMethodName() string { + return "alitrip.agent.flight.sell.modify.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripAgentFlightSellModifyListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *AlitripAgentFlightSellModifyListAPIRequest) SetParam(_param *ModifyListRequestDto) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlitripAgentFlightSellModifyListAPIRequest) GetParam() *ModifyListRequestDto { + return r._param +} diff --git a/model/flight/AlitripAgentFlightSellModifyListAPIResponse.go b/model/flight/AlitripAgentFlightSellModifyListAPIResponse.go new file mode 100644 index 0000000000..c419026367 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellModifyListAPIResponse.go @@ -0,0 +1,27 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销售改签单列表 API返回值 +alitrip.agent.flight.sell.modify.list + +销售改签单列表 +*/ +type AlitripAgentFlightSellModifyListAPIResponse struct { + model.CommonResponse + AlitripAgentFlightSellModifyListAPIResponseModel +} + +// 销售改签单列表 成功返回结果 +type AlitripAgentFlightSellModifyListAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_agent_flight_sell_modify_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *PageDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellModifyListResponse.go b/model/flight/AlitripAgentFlightSellModifyListResponse.go deleted file mode 100644 index c38c6e2fa8..0000000000 --- a/model/flight/AlitripAgentFlightSellModifyListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销售改签单列表 API返回值 -alitrip.agent.flight.sell.modify.list - -销售改签单列表 -*/ -type AlitripAgentFlightSellModifyListAPIResponse struct { - model.CommonResponse - AlitripAgentFlightSellModifyListResponse -} - -// 销售改签单列表 成功返回结果 -type AlitripAgentFlightSellModifyListResponse struct { - XMLName xml.Name `xml:"alitrip_agent_flight_sell_modify_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *PageDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/flight/AlitripAgentFlightSellModifyRefuseAPIRequest.go b/model/flight/AlitripAgentFlightSellModifyRefuseAPIRequest.go new file mode 100644 index 0000000000..6655471a1c --- /dev/null +++ b/model/flight/AlitripAgentFlightSellModifyRefuseAPIRequest.go @@ -0,0 +1,80 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销售改签拒绝 API请求 +alitrip.agent.flight.sell.modify.refuse + +销售改签拒绝 +*/ +type AlitripAgentFlightSellModifyRefuseAPIRequest struct { + model.Params + // 申请单号 + _applyId string + // 国际国内标识 + _domesticIntl int64 + // 拒绝原因 + _refuseReason string +} + +// 初始化AlitripAgentFlightSellModifyRefuseAPIRequest对象 +func NewAlitripAgentFlightSellModifyRefuseRequest() *AlitripAgentFlightSellModifyRefuseAPIRequest{ + return &AlitripAgentFlightSellModifyRefuseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripAgentFlightSellModifyRefuseAPIRequest) GetApiMethodName() string { + return "alitrip.agent.flight.sell.modify.refuse" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripAgentFlightSellModifyRefuseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApplyId Setter +// 申请单号 +func (r *AlitripAgentFlightSellModifyRefuseAPIRequest) SetApplyId(_applyId string) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r AlitripAgentFlightSellModifyRefuseAPIRequest) GetApplyId() string { + return r._applyId +} +// DomesticIntl Setter +// 国际国内标识 +func (r *AlitripAgentFlightSellModifyRefuseAPIRequest) SetDomesticIntl(_domesticIntl int64) error { + r._domesticIntl = _domesticIntl + r.Set("domestic_intl", _domesticIntl) + return nil +} + +// DomesticIntl Getter +func (r AlitripAgentFlightSellModifyRefuseAPIRequest) GetDomesticIntl() int64 { + return r._domesticIntl +} +// RefuseReason Setter +// 拒绝原因 +func (r *AlitripAgentFlightSellModifyRefuseAPIRequest) SetRefuseReason(_refuseReason string) error { + r._refuseReason = _refuseReason + r.Set("refuse_reason", _refuseReason) + return nil +} + +// RefuseReason Getter +func (r AlitripAgentFlightSellModifyRefuseAPIRequest) GetRefuseReason() string { + return r._refuseReason +} diff --git a/model/flight/AlitripAgentFlightSellModifyRefuseAPIResponse.go b/model/flight/AlitripAgentFlightSellModifyRefuseAPIResponse.go new file mode 100644 index 0000000000..2031960e2a --- /dev/null +++ b/model/flight/AlitripAgentFlightSellModifyRefuseAPIResponse.go @@ -0,0 +1,27 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销售改签拒绝 API返回值 +alitrip.agent.flight.sell.modify.refuse + +销售改签拒绝 +*/ +type AlitripAgentFlightSellModifyRefuseAPIResponse struct { + model.CommonResponse + AlitripAgentFlightSellModifyRefuseAPIResponseModel +} + +// 销售改签拒绝 成功返回结果 +type AlitripAgentFlightSellModifyRefuseAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_agent_flight_sell_modify_refuse_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlitripAgentFlightSellModifyRefuseResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellModifyRefuseResponse.go b/model/flight/AlitripAgentFlightSellModifyRefuseResponse.go deleted file mode 100644 index b7870667c5..0000000000 --- a/model/flight/AlitripAgentFlightSellModifyRefuseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销售改签拒绝 API返回值 -alitrip.agent.flight.sell.modify.refuse - -销售改签拒绝 -*/ -type AlitripAgentFlightSellModifyRefuseAPIResponse struct { - model.CommonResponse - AlitripAgentFlightSellModifyRefuseResponse -} - -// 销售改签拒绝 成功返回结果 -type AlitripAgentFlightSellModifyRefuseResponse struct { - XMLName xml.Name `xml:"alitrip_agent_flight_sell_modify_refuse_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlitripAgentFlightSellModifyRefuseResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/flight/AlitripAgentFlightSellModifyRefuseResultDto.go b/model/flight/AlitripAgentFlightSellModifyRefuseResultDto.go new file mode 100644 index 0000000000..70f49986c1 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellModifyRefuseResultDto.go @@ -0,0 +1,11 @@ +package flight + +// AlitripAgentFlightSellModifyRefuseResultDto +type AlitripAgentFlightSellModifyRefuseResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellRefundApproveAPIRequest.go b/model/flight/AlitripAgentFlightSellRefundApproveAPIRequest.go new file mode 100644 index 0000000000..c0e1a8c910 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellRefundApproveAPIRequest.go @@ -0,0 +1,52 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销售退票确认 API请求 +alitrip.agent.flight.sell.refund.approve + +销售退票确认 +*/ +type AlitripAgentFlightSellRefundApproveAPIRequest struct { + model.Params + // 入参 + _param *RefundApproveRequestDto +} + +// 初始化AlitripAgentFlightSellRefundApproveAPIRequest对象 +func NewAlitripAgentFlightSellRefundApproveRequest() *AlitripAgentFlightSellRefundApproveAPIRequest{ + return &AlitripAgentFlightSellRefundApproveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripAgentFlightSellRefundApproveAPIRequest) GetApiMethodName() string { + return "alitrip.agent.flight.sell.refund.approve" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripAgentFlightSellRefundApproveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *AlitripAgentFlightSellRefundApproveAPIRequest) SetParam(_param *RefundApproveRequestDto) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlitripAgentFlightSellRefundApproveAPIRequest) GetParam() *RefundApproveRequestDto { + return r._param +} diff --git a/model/flight/AlitripAgentFlightSellRefundApproveAPIResponse.go b/model/flight/AlitripAgentFlightSellRefundApproveAPIResponse.go new file mode 100644 index 0000000000..d5d46501eb --- /dev/null +++ b/model/flight/AlitripAgentFlightSellRefundApproveAPIResponse.go @@ -0,0 +1,27 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销售退票确认 API返回值 +alitrip.agent.flight.sell.refund.approve + +销售退票确认 +*/ +type AlitripAgentFlightSellRefundApproveAPIResponse struct { + model.CommonResponse + AlitripAgentFlightSellRefundApproveAPIResponseModel +} + +// 销售退票确认 成功返回结果 +type AlitripAgentFlightSellRefundApproveAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_agent_flight_sell_refund_approve_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlitripAgentFlightSellRefundApproveResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellRefundApproveResponse.go b/model/flight/AlitripAgentFlightSellRefundApproveResponse.go deleted file mode 100644 index 643b1b8a24..0000000000 --- a/model/flight/AlitripAgentFlightSellRefundApproveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销售退票确认 API返回值 -alitrip.agent.flight.sell.refund.approve - -销售退票确认 -*/ -type AlitripAgentFlightSellRefundApproveAPIResponse struct { - model.CommonResponse - AlitripAgentFlightSellRefundApproveResponse -} - -// 销售退票确认 成功返回结果 -type AlitripAgentFlightSellRefundApproveResponse struct { - XMLName xml.Name `xml:"alitrip_agent_flight_sell_refund_approve_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlitripAgentFlightSellRefundApproveResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/flight/AlitripAgentFlightSellRefundApproveResultDto.go b/model/flight/AlitripAgentFlightSellRefundApproveResultDto.go new file mode 100644 index 0000000000..83b6289338 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellRefundApproveResultDto.go @@ -0,0 +1,11 @@ +package flight + +// AlitripAgentFlightSellRefundApproveResultDto +type AlitripAgentFlightSellRefundApproveResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellRefundDetailAPIRequest.go b/model/flight/AlitripAgentFlightSellRefundDetailAPIRequest.go new file mode 100644 index 0000000000..777b2e3ad5 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellRefundDetailAPIRequest.go @@ -0,0 +1,66 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销售退票单详情 API请求 +alitrip.agent.flight.sell.refund.detail + +销售退票单详情 +*/ +type AlitripAgentFlightSellRefundDetailAPIRequest struct { + model.Params + // 申请单号 + _applyId string + // 国际国内标识 + _domesticIntl int64 +} + +// 初始化AlitripAgentFlightSellRefundDetailAPIRequest对象 +func NewAlitripAgentFlightSellRefundDetailRequest() *AlitripAgentFlightSellRefundDetailAPIRequest{ + return &AlitripAgentFlightSellRefundDetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripAgentFlightSellRefundDetailAPIRequest) GetApiMethodName() string { + return "alitrip.agent.flight.sell.refund.detail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripAgentFlightSellRefundDetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApplyId Setter +// 申请单号 +func (r *AlitripAgentFlightSellRefundDetailAPIRequest) SetApplyId(_applyId string) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r AlitripAgentFlightSellRefundDetailAPIRequest) GetApplyId() string { + return r._applyId +} +// DomesticIntl Setter +// 国际国内标识 +func (r *AlitripAgentFlightSellRefundDetailAPIRequest) SetDomesticIntl(_domesticIntl int64) error { + r._domesticIntl = _domesticIntl + r.Set("domestic_intl", _domesticIntl) + return nil +} + +// DomesticIntl Getter +func (r AlitripAgentFlightSellRefundDetailAPIRequest) GetDomesticIntl() int64 { + return r._domesticIntl +} diff --git a/model/flight/AlitripAgentFlightSellRefundDetailAPIResponse.go b/model/flight/AlitripAgentFlightSellRefundDetailAPIResponse.go new file mode 100644 index 0000000000..cb6d40bcd8 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellRefundDetailAPIResponse.go @@ -0,0 +1,27 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销售退票单详情 API返回值 +alitrip.agent.flight.sell.refund.detail + +销售退票单详情 +*/ +type AlitripAgentFlightSellRefundDetailAPIResponse struct { + model.CommonResponse + AlitripAgentFlightSellRefundDetailAPIResponseModel +} + +// 销售退票单详情 成功返回结果 +type AlitripAgentFlightSellRefundDetailAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_agent_flight_sell_refund_detail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlitripAgentFlightSellRefundDetailResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellRefundDetailResponse.go b/model/flight/AlitripAgentFlightSellRefundDetailResponse.go deleted file mode 100644 index 6b23b8dabe..0000000000 --- a/model/flight/AlitripAgentFlightSellRefundDetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销售退票单详情 API返回值 -alitrip.agent.flight.sell.refund.detail - -销售退票单详情 -*/ -type AlitripAgentFlightSellRefundDetailAPIResponse struct { - model.CommonResponse - AlitripAgentFlightSellRefundDetailResponse -} - -// 销售退票单详情 成功返回结果 -type AlitripAgentFlightSellRefundDetailResponse struct { - XMLName xml.Name `xml:"alitrip_agent_flight_sell_refund_detail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlitripAgentFlightSellRefundDetailResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/flight/AlitripAgentFlightSellRefundDetailResultDto.go b/model/flight/AlitripAgentFlightSellRefundDetailResultDto.go new file mode 100644 index 0000000000..355848eecb --- /dev/null +++ b/model/flight/AlitripAgentFlightSellRefundDetailResultDto.go @@ -0,0 +1,13 @@ +package flight + +// AlitripAgentFlightSellRefundDetailResultDto +type AlitripAgentFlightSellRefundDetailResultDto struct { + // 结果数据 + Data *RefundDetailDto `json:"data,omitempty" xml:"data,omitempty"` + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellRefundListAPIRequest.go b/model/flight/AlitripAgentFlightSellRefundListAPIRequest.go new file mode 100644 index 0000000000..5021220604 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellRefundListAPIRequest.go @@ -0,0 +1,52 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销售退票单列表 API请求 +alitrip.agent.flight.sell.refund.list + +销售退票单列表 +*/ +type AlitripAgentFlightSellRefundListAPIRequest struct { + model.Params + // 请求对象 + _param *RefundListRequestDto +} + +// 初始化AlitripAgentFlightSellRefundListAPIRequest对象 +func NewAlitripAgentFlightSellRefundListRequest() *AlitripAgentFlightSellRefundListAPIRequest{ + return &AlitripAgentFlightSellRefundListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripAgentFlightSellRefundListAPIRequest) GetApiMethodName() string { + return "alitrip.agent.flight.sell.refund.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripAgentFlightSellRefundListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 请求对象 +func (r *AlitripAgentFlightSellRefundListAPIRequest) SetParam(_param *RefundListRequestDto) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlitripAgentFlightSellRefundListAPIRequest) GetParam() *RefundListRequestDto { + return r._param +} diff --git a/model/flight/AlitripAgentFlightSellRefundListAPIResponse.go b/model/flight/AlitripAgentFlightSellRefundListAPIResponse.go new file mode 100644 index 0000000000..9e6a0d560b --- /dev/null +++ b/model/flight/AlitripAgentFlightSellRefundListAPIResponse.go @@ -0,0 +1,27 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销售退票单列表 API返回值 +alitrip.agent.flight.sell.refund.list + +销售退票单列表 +*/ +type AlitripAgentFlightSellRefundListAPIResponse struct { + model.CommonResponse + AlitripAgentFlightSellRefundListAPIResponseModel +} + +// 销售退票单列表 成功返回结果 +type AlitripAgentFlightSellRefundListAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_agent_flight_sell_refund_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *PageDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellRefundListResponse.go b/model/flight/AlitripAgentFlightSellRefundListResponse.go deleted file mode 100644 index 4362fb0a32..0000000000 --- a/model/flight/AlitripAgentFlightSellRefundListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销售退票单列表 API返回值 -alitrip.agent.flight.sell.refund.list - -销售退票单列表 -*/ -type AlitripAgentFlightSellRefundListAPIResponse struct { - model.CommonResponse - AlitripAgentFlightSellRefundListResponse -} - -// 销售退票单列表 成功返回结果 -type AlitripAgentFlightSellRefundListResponse struct { - XMLName xml.Name `xml:"alitrip_agent_flight_sell_refund_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *PageDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/flight/AlitripAgentFlightSellRefundRefuseAPIRequest.go b/model/flight/AlitripAgentFlightSellRefundRefuseAPIRequest.go new file mode 100644 index 0000000000..911bf06caf --- /dev/null +++ b/model/flight/AlitripAgentFlightSellRefundRefuseAPIRequest.go @@ -0,0 +1,80 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销售退票拒绝 API请求 +alitrip.agent.flight.sell.refund.refuse + +销售退票拒绝 +*/ +type AlitripAgentFlightSellRefundRefuseAPIRequest struct { + model.Params + // 申请单号 + _applyId string + // 国内国际标识 + _domesticIntl int64 + // 拒绝原因 + _refuseReason string +} + +// 初始化AlitripAgentFlightSellRefundRefuseAPIRequest对象 +func NewAlitripAgentFlightSellRefundRefuseRequest() *AlitripAgentFlightSellRefundRefuseAPIRequest{ + return &AlitripAgentFlightSellRefundRefuseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripAgentFlightSellRefundRefuseAPIRequest) GetApiMethodName() string { + return "alitrip.agent.flight.sell.refund.refuse" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripAgentFlightSellRefundRefuseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApplyId Setter +// 申请单号 +func (r *AlitripAgentFlightSellRefundRefuseAPIRequest) SetApplyId(_applyId string) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r AlitripAgentFlightSellRefundRefuseAPIRequest) GetApplyId() string { + return r._applyId +} +// DomesticIntl Setter +// 国内国际标识 +func (r *AlitripAgentFlightSellRefundRefuseAPIRequest) SetDomesticIntl(_domesticIntl int64) error { + r._domesticIntl = _domesticIntl + r.Set("domestic_intl", _domesticIntl) + return nil +} + +// DomesticIntl Getter +func (r AlitripAgentFlightSellRefundRefuseAPIRequest) GetDomesticIntl() int64 { + return r._domesticIntl +} +// RefuseReason Setter +// 拒绝原因 +func (r *AlitripAgentFlightSellRefundRefuseAPIRequest) SetRefuseReason(_refuseReason string) error { + r._refuseReason = _refuseReason + r.Set("refuse_reason", _refuseReason) + return nil +} + +// RefuseReason Getter +func (r AlitripAgentFlightSellRefundRefuseAPIRequest) GetRefuseReason() string { + return r._refuseReason +} diff --git a/model/flight/AlitripAgentFlightSellRefundRefuseAPIResponse.go b/model/flight/AlitripAgentFlightSellRefundRefuseAPIResponse.go new file mode 100644 index 0000000000..f44cf4fa49 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellRefundRefuseAPIResponse.go @@ -0,0 +1,27 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销售退票拒绝 API返回值 +alitrip.agent.flight.sell.refund.refuse + +销售退票拒绝 +*/ +type AlitripAgentFlightSellRefundRefuseAPIResponse struct { + model.CommonResponse + AlitripAgentFlightSellRefundRefuseAPIResponseModel +} + +// 销售退票拒绝 成功返回结果 +type AlitripAgentFlightSellRefundRefuseAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_agent_flight_sell_refund_refuse_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlitripAgentFlightSellRefundRefuseResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellRefundRefuseResponse.go b/model/flight/AlitripAgentFlightSellRefundRefuseResponse.go deleted file mode 100644 index dad2aa47a4..0000000000 --- a/model/flight/AlitripAgentFlightSellRefundRefuseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销售退票拒绝 API返回值 -alitrip.agent.flight.sell.refund.refuse - -销售退票拒绝 -*/ -type AlitripAgentFlightSellRefundRefuseAPIResponse struct { - model.CommonResponse - AlitripAgentFlightSellRefundRefuseResponse -} - -// 销售退票拒绝 成功返回结果 -type AlitripAgentFlightSellRefundRefuseResponse struct { - XMLName xml.Name `xml:"alitrip_agent_flight_sell_refund_refuse_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlitripAgentFlightSellRefundRefuseResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/flight/AlitripAgentFlightSellRefundRefuseResultDto.go b/model/flight/AlitripAgentFlightSellRefundRefuseResultDto.go new file mode 100644 index 0000000000..6dc3d47835 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellRefundRefuseResultDto.go @@ -0,0 +1,11 @@ +package flight + +// AlitripAgentFlightSellRefundRefuseResultDto +type AlitripAgentFlightSellRefundRefuseResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellTicketingDetailAPIRequest.go b/model/flight/AlitripAgentFlightSellTicketingDetailAPIRequest.go new file mode 100644 index 0000000000..3ad0e22af9 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellTicketingDetailAPIRequest.go @@ -0,0 +1,66 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销售出票详情 API请求 +alitrip.agent.flight.sell.ticketing.detail + +销售出票详情 +*/ +type AlitripAgentFlightSellTicketingDetailAPIRequest struct { + model.Params + // 国内国际标识 + _domesticIntl int64 + // 飞猪订单号 + _orderId string +} + +// 初始化AlitripAgentFlightSellTicketingDetailAPIRequest对象 +func NewAlitripAgentFlightSellTicketingDetailRequest() *AlitripAgentFlightSellTicketingDetailAPIRequest{ + return &AlitripAgentFlightSellTicketingDetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripAgentFlightSellTicketingDetailAPIRequest) GetApiMethodName() string { + return "alitrip.agent.flight.sell.ticketing.detail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripAgentFlightSellTicketingDetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DomesticIntl Setter +// 国内国际标识 +func (r *AlitripAgentFlightSellTicketingDetailAPIRequest) SetDomesticIntl(_domesticIntl int64) error { + r._domesticIntl = _domesticIntl + r.Set("domestic_intl", _domesticIntl) + return nil +} + +// DomesticIntl Getter +func (r AlitripAgentFlightSellTicketingDetailAPIRequest) GetDomesticIntl() int64 { + return r._domesticIntl +} +// OrderId Setter +// 飞猪订单号 +func (r *AlitripAgentFlightSellTicketingDetailAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlitripAgentFlightSellTicketingDetailAPIRequest) GetOrderId() string { + return r._orderId +} diff --git a/model/flight/AlitripAgentFlightSellTicketingDetailAPIResponse.go b/model/flight/AlitripAgentFlightSellTicketingDetailAPIResponse.go new file mode 100644 index 0000000000..aae292a7e8 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellTicketingDetailAPIResponse.go @@ -0,0 +1,27 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销售出票详情 API返回值 +alitrip.agent.flight.sell.ticketing.detail + +销售出票详情 +*/ +type AlitripAgentFlightSellTicketingDetailAPIResponse struct { + model.CommonResponse + AlitripAgentFlightSellTicketingDetailAPIResponseModel +} + +// 销售出票详情 成功返回结果 +type AlitripAgentFlightSellTicketingDetailAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_agent_flight_sell_ticketing_detail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参对象 + Result *AlitripAgentFlightSellTicketingDetailResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellTicketingDetailResponse.go b/model/flight/AlitripAgentFlightSellTicketingDetailResponse.go deleted file mode 100644 index 4c8acdccff..0000000000 --- a/model/flight/AlitripAgentFlightSellTicketingDetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销售出票详情 API返回值 -alitrip.agent.flight.sell.ticketing.detail - -销售出票详情 -*/ -type AlitripAgentFlightSellTicketingDetailAPIResponse struct { - model.CommonResponse - AlitripAgentFlightSellTicketingDetailResponse -} - -// 销售出票详情 成功返回结果 -type AlitripAgentFlightSellTicketingDetailResponse struct { - XMLName xml.Name `xml:"alitrip_agent_flight_sell_ticketing_detail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参对象 - Result *AlitripAgentFlightSellTicketingDetailResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/flight/AlitripAgentFlightSellTicketingDetailResultDto.go b/model/flight/AlitripAgentFlightSellTicketingDetailResultDto.go new file mode 100644 index 0000000000..c16cba6f39 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellTicketingDetailResultDto.go @@ -0,0 +1,13 @@ +package flight + +// AlitripAgentFlightSellTicketingDetailResultDto +type AlitripAgentFlightSellTicketingDetailResultDto struct { + // 出参对象 + Data *AlitripAgentFlightSellTicketingDetailData `json:"data,omitempty" xml:"data,omitempty"` + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellTicketingIssueAPIRequest.go b/model/flight/AlitripAgentFlightSellTicketingIssueAPIRequest.go new file mode 100644 index 0000000000..28e2645d80 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellTicketingIssueAPIRequest.go @@ -0,0 +1,52 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销售出票 API请求 +alitrip.agent.flight.sell.ticketing.issue + +销售出票 +*/ +type AlitripAgentFlightSellTicketingIssueAPIRequest struct { + model.Params + // 入参对象 + _param *TicketingIssueRequestDto +} + +// 初始化AlitripAgentFlightSellTicketingIssueAPIRequest对象 +func NewAlitripAgentFlightSellTicketingIssueRequest() *AlitripAgentFlightSellTicketingIssueAPIRequest{ + return &AlitripAgentFlightSellTicketingIssueAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripAgentFlightSellTicketingIssueAPIRequest) GetApiMethodName() string { + return "alitrip.agent.flight.sell.ticketing.issue" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripAgentFlightSellTicketingIssueAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参对象 +func (r *AlitripAgentFlightSellTicketingIssueAPIRequest) SetParam(_param *TicketingIssueRequestDto) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlitripAgentFlightSellTicketingIssueAPIRequest) GetParam() *TicketingIssueRequestDto { + return r._param +} diff --git a/model/flight/AlitripAgentFlightSellTicketingIssueAPIResponse.go b/model/flight/AlitripAgentFlightSellTicketingIssueAPIResponse.go new file mode 100644 index 0000000000..7979fd3a2e --- /dev/null +++ b/model/flight/AlitripAgentFlightSellTicketingIssueAPIResponse.go @@ -0,0 +1,27 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销售出票 API返回值 +alitrip.agent.flight.sell.ticketing.issue + +销售出票 +*/ +type AlitripAgentFlightSellTicketingIssueAPIResponse struct { + model.CommonResponse + AlitripAgentFlightSellTicketingIssueAPIResponseModel +} + +// 销售出票 成功返回结果 +type AlitripAgentFlightSellTicketingIssueAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_agent_flight_sell_ticketing_issue_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlitripAgentFlightSellTicketingIssueResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellTicketingIssueResponse.go b/model/flight/AlitripAgentFlightSellTicketingIssueResponse.go deleted file mode 100644 index 602caf9f27..0000000000 --- a/model/flight/AlitripAgentFlightSellTicketingIssueResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销售出票 API返回值 -alitrip.agent.flight.sell.ticketing.issue - -销售出票 -*/ -type AlitripAgentFlightSellTicketingIssueAPIResponse struct { - model.CommonResponse - AlitripAgentFlightSellTicketingIssueResponse -} - -// 销售出票 成功返回结果 -type AlitripAgentFlightSellTicketingIssueResponse struct { - XMLName xml.Name `xml:"alitrip_agent_flight_sell_ticketing_issue_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlitripAgentFlightSellTicketingIssueResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/flight/AlitripAgentFlightSellTicketingIssueResultDto.go b/model/flight/AlitripAgentFlightSellTicketingIssueResultDto.go new file mode 100644 index 0000000000..85152a958b --- /dev/null +++ b/model/flight/AlitripAgentFlightSellTicketingIssueResultDto.go @@ -0,0 +1,11 @@ +package flight + +// AlitripAgentFlightSellTicketingIssueResultDto +type AlitripAgentFlightSellTicketingIssueResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 错误消息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellTicketingListAPIRequest.go b/model/flight/AlitripAgentFlightSellTicketingListAPIRequest.go new file mode 100644 index 0000000000..7654d58af7 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellTicketingListAPIRequest.go @@ -0,0 +1,52 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销售出票列表 API请求 +alitrip.agent.flight.sell.ticketing.list + +销售出票列表 +*/ +type AlitripAgentFlightSellTicketingListAPIRequest struct { + model.Params + // 入参对象 + _param *TicketingListRequestDto +} + +// 初始化AlitripAgentFlightSellTicketingListAPIRequest对象 +func NewAlitripAgentFlightSellTicketingListRequest() *AlitripAgentFlightSellTicketingListAPIRequest{ + return &AlitripAgentFlightSellTicketingListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripAgentFlightSellTicketingListAPIRequest) GetApiMethodName() string { + return "alitrip.agent.flight.sell.ticketing.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripAgentFlightSellTicketingListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参对象 +func (r *AlitripAgentFlightSellTicketingListAPIRequest) SetParam(_param *TicketingListRequestDto) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlitripAgentFlightSellTicketingListAPIRequest) GetParam() *TicketingListRequestDto { + return r._param +} diff --git a/model/flight/AlitripAgentFlightSellTicketingListAPIResponse.go b/model/flight/AlitripAgentFlightSellTicketingListAPIResponse.go new file mode 100644 index 0000000000..a4562def96 --- /dev/null +++ b/model/flight/AlitripAgentFlightSellTicketingListAPIResponse.go @@ -0,0 +1,27 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销售出票列表 API返回值 +alitrip.agent.flight.sell.ticketing.list + +销售出票列表 +*/ +type AlitripAgentFlightSellTicketingListAPIResponse struct { + model.CommonResponse + AlitripAgentFlightSellTicketingListAPIResponseModel +} + +// 销售出票列表 成功返回结果 +type AlitripAgentFlightSellTicketingListAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_agent_flight_sell_ticketing_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *PageDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/flight/AlitripAgentFlightSellTicketingListResponse.go b/model/flight/AlitripAgentFlightSellTicketingListResponse.go deleted file mode 100644 index 9bbc6e2cc5..0000000000 --- a/model/flight/AlitripAgentFlightSellTicketingListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销售出票列表 API返回值 -alitrip.agent.flight.sell.ticketing.list - -销售出票列表 -*/ -type AlitripAgentFlightSellTicketingListAPIResponse struct { - model.CommonResponse - AlitripAgentFlightSellTicketingListResponse -} - -// 销售出票列表 成功返回结果 -type AlitripAgentFlightSellTicketingListResponse struct { - XMLName xml.Name `xml:"alitrip_agent_flight_sell_ticketing_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *PageDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/flight/AlitripTripvpAgentOrderGetAPIRequest.go b/model/flight/AlitripTripvpAgentOrderGetAPIRequest.go new file mode 100644 index 0000000000..9cfa30ff7f --- /dev/null +++ b/model/flight/AlitripTripvpAgentOrderGetAPIRequest.go @@ -0,0 +1,66 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +廉航辅营正向订单查询详情接口 API请求 +alitrip.tripvp.agent.order.get + +【国际机票】查询辅营订单详情 +*/ +type AlitripTripvpAgentOrderGetAPIRequest struct { + model.Params + // 代理商ID + _agentId int64 + // 辅营的订单号 + _tradeOrderId int64 +} + +// 初始化AlitripTripvpAgentOrderGetAPIRequest对象 +func NewAlitripTripvpAgentOrderGetRequest() *AlitripTripvpAgentOrderGetAPIRequest{ + return &AlitripTripvpAgentOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTripvpAgentOrderGetAPIRequest) GetApiMethodName() string { + return "alitrip.tripvp.agent.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTripvpAgentOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentId Setter +// 代理商ID +func (r *AlitripTripvpAgentOrderGetAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r AlitripTripvpAgentOrderGetAPIRequest) GetAgentId() int64 { + return r._agentId +} +// TradeOrderId Setter +// 辅营的订单号 +func (r *AlitripTripvpAgentOrderGetAPIRequest) SetTradeOrderId(_tradeOrderId int64) error { + r._tradeOrderId = _tradeOrderId + r.Set("trade_order_id", _tradeOrderId) + return nil +} + +// TradeOrderId Getter +func (r AlitripTripvpAgentOrderGetAPIRequest) GetTradeOrderId() int64 { + return r._tradeOrderId +} diff --git a/model/flight/AlitripTripvpAgentOrderGetAPIResponse.go b/model/flight/AlitripTripvpAgentOrderGetAPIResponse.go new file mode 100644 index 0000000000..0b3ca89f51 --- /dev/null +++ b/model/flight/AlitripTripvpAgentOrderGetAPIResponse.go @@ -0,0 +1,29 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +廉航辅营正向订单查询详情接口 API返回值 +alitrip.tripvp.agent.order.get + +【国际机票】查询辅营订单详情 +*/ +type AlitripTripvpAgentOrderGetAPIResponse struct { + model.CommonResponse + AlitripTripvpAgentOrderGetAPIResponseModel +} + +// 廉航辅营正向订单查询详情接口 成功返回结果 +type AlitripTripvpAgentOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_tripvp_agent_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // orderVO + OrderVo *VirProOrderVo `json:"order_vo,omitempty" xml:"order_vo,omitempty"` + // pageSize + PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` +} diff --git a/model/flight/AlitripTripvpAgentOrderGetResponse.go b/model/flight/AlitripTripvpAgentOrderGetResponse.go deleted file mode 100644 index 1ba146e2f7..0000000000 --- a/model/flight/AlitripTripvpAgentOrderGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -廉航辅营正向订单查询详情接口 API返回值 -alitrip.tripvp.agent.order.get - -【国际机票】查询辅营订单详情 -*/ -type AlitripTripvpAgentOrderGetAPIResponse struct { - model.CommonResponse - AlitripTripvpAgentOrderGetResponse -} - -// 廉航辅营正向订单查询详情接口 成功返回结果 -type AlitripTripvpAgentOrderGetResponse struct { - XMLName xml.Name `xml:"alitrip_tripvp_agent_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // orderVO - OrderVo *VirProOrderVo `json:"order_vo,omitempty" xml:"order_vo,omitempty"` - // pageSize - PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` -} diff --git a/model/flight/AlitripTripvpAgentOrderIssueAPIRequest.go b/model/flight/AlitripTripvpAgentOrderIssueAPIRequest.go new file mode 100644 index 0000000000..a2bb9a5ab7 --- /dev/null +++ b/model/flight/AlitripTripvpAgentOrderIssueAPIRequest.go @@ -0,0 +1,66 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +廉航辅营正向订单出货接口 API请求 +alitrip.tripvp.agent.order.issue + +廉航辅营正向订单出货接口 +*/ +type AlitripTripvpAgentOrderIssueAPIRequest struct { + model.Params + // 代理商ID + _agentId int64 + // 出货通知信息 + _issueProOrderVo *IssueProOrderVo +} + +// 初始化AlitripTripvpAgentOrderIssueAPIRequest对象 +func NewAlitripTripvpAgentOrderIssueRequest() *AlitripTripvpAgentOrderIssueAPIRequest{ + return &AlitripTripvpAgentOrderIssueAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTripvpAgentOrderIssueAPIRequest) GetApiMethodName() string { + return "alitrip.tripvp.agent.order.issue" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTripvpAgentOrderIssueAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentId Setter +// 代理商ID +func (r *AlitripTripvpAgentOrderIssueAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r AlitripTripvpAgentOrderIssueAPIRequest) GetAgentId() int64 { + return r._agentId +} +// IssueProOrderVo Setter +// 出货通知信息 +func (r *AlitripTripvpAgentOrderIssueAPIRequest) SetIssueProOrderVo(_issueProOrderVo *IssueProOrderVo) error { + r._issueProOrderVo = _issueProOrderVo + r.Set("issue_pro_order_vo", _issueProOrderVo) + return nil +} + +// IssueProOrderVo Getter +func (r AlitripTripvpAgentOrderIssueAPIRequest) GetIssueProOrderVo() *IssueProOrderVo { + return r._issueProOrderVo +} diff --git a/model/flight/AlitripTripvpAgentOrderIssueAPIResponse.go b/model/flight/AlitripTripvpAgentOrderIssueAPIResponse.go new file mode 100644 index 0000000000..28abfbf660 --- /dev/null +++ b/model/flight/AlitripTripvpAgentOrderIssueAPIResponse.go @@ -0,0 +1,27 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +廉航辅营正向订单出货接口 API返回值 +alitrip.tripvp.agent.order.issue + +廉航辅营正向订单出货接口 +*/ +type AlitripTripvpAgentOrderIssueAPIResponse struct { + model.CommonResponse + AlitripTripvpAgentOrderIssueAPIResponseModel +} + +// 廉航辅营正向订单出货接口 成功返回结果 +type AlitripTripvpAgentOrderIssueAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_tripvp_agent_order_issue_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/flight/AlitripTripvpAgentOrderIssueResponse.go b/model/flight/AlitripTripvpAgentOrderIssueResponse.go deleted file mode 100644 index e5b020d4e3..0000000000 --- a/model/flight/AlitripTripvpAgentOrderIssueResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -廉航辅营正向订单出货接口 API返回值 -alitrip.tripvp.agent.order.issue - -廉航辅营正向订单出货接口 -*/ -type AlitripTripvpAgentOrderIssueAPIResponse struct { - model.CommonResponse - AlitripTripvpAgentOrderIssueResponse -} - -// 廉航辅营正向订单出货接口 成功返回结果 -type AlitripTripvpAgentOrderIssueResponse struct { - XMLName xml.Name `xml:"alitrip_tripvp_agent_order_issue_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/flight/TaobaoAlitripFlightchangeAddAPIRequest.go b/model/flight/TaobaoAlitripFlightchangeAddAPIRequest.go new file mode 100644 index 0000000000..75c6b6ad37 --- /dev/null +++ b/model/flight/TaobaoAlitripFlightchangeAddAPIRequest.go @@ -0,0 +1,54 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +航变信息录入接口 API请求 +taobao.alitrip.flightchange.add + +代理商调用航变录入接口, + 简要描述:完成航变信息的自动录入后飞猪机票平台会发生的动作是匹配所有该代理人的订单,如果接口参数指定了飞猪机票订单号,发生的动作是匹配该代理人的指定订单; +找到与航变航班相关的订单给旅客下发航变短信并出发IVR自动外呼旅客。 +*/ +type TaobaoAlitripFlightchangeAddAPIRequest struct { + model.Params + // 录入参数类 + _flightChangeDataDo *FlightChangeDataDo +} + +// 初始化TaobaoAlitripFlightchangeAddAPIRequest对象 +func NewTaobaoAlitripFlightchangeAddRequest() *TaobaoAlitripFlightchangeAddAPIRequest{ + return &TaobaoAlitripFlightchangeAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripFlightchangeAddAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.flightchange.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripFlightchangeAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FlightChangeDataDo Setter +// 录入参数类 +func (r *TaobaoAlitripFlightchangeAddAPIRequest) SetFlightChangeDataDo(_flightChangeDataDo *FlightChangeDataDo) error { + r._flightChangeDataDo = _flightChangeDataDo + r.Set("flight_change_data_do", _flightChangeDataDo) + return nil +} + +// FlightChangeDataDo Getter +func (r TaobaoAlitripFlightchangeAddAPIRequest) GetFlightChangeDataDo() *FlightChangeDataDo { + return r._flightChangeDataDo +} diff --git a/model/flight/TaobaoAlitripFlightchangeAddAPIResponse.go b/model/flight/TaobaoAlitripFlightchangeAddAPIResponse.go new file mode 100644 index 0000000000..b773baf31d --- /dev/null +++ b/model/flight/TaobaoAlitripFlightchangeAddAPIResponse.go @@ -0,0 +1,29 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +航变信息录入接口 API返回值 +taobao.alitrip.flightchange.add + +代理商调用航变录入接口, + 简要描述:完成航变信息的自动录入后飞猪机票平台会发生的动作是匹配所有该代理人的订单,如果接口参数指定了飞猪机票订单号,发生的动作是匹配该代理人的指定订单; +找到与航变航班相关的订单给旅客下发航变短信并出发IVR自动外呼旅客。 +*/ +type TaobaoAlitripFlightchangeAddAPIResponse struct { + model.CommonResponse + TaobaoAlitripFlightchangeAddAPIResponseModel +} + +// 航变信息录入接口 成功返回结果 +type TaobaoAlitripFlightchangeAddAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_flightchange_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoAlitripFlightchangeAddResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/flight/TaobaoAlitripFlightchangeAddResponse.go b/model/flight/TaobaoAlitripFlightchangeAddResponse.go deleted file mode 100644 index 6bfcd89684..0000000000 --- a/model/flight/TaobaoAlitripFlightchangeAddResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -航变信息录入接口 API返回值 -taobao.alitrip.flightchange.add - -代理商调用航变录入接口, - 简要描述:完成航变信息的自动录入后飞猪机票平台会发生的动作是匹配所有该代理人的订单,如果接口参数指定了飞猪机票订单号,发生的动作是匹配该代理人的指定订单; -找到与航变航班相关的订单给旅客下发航变短信并出发IVR自动外呼旅客。 -*/ -type TaobaoAlitripFlightchangeAddAPIResponse struct { - model.CommonResponse - TaobaoAlitripFlightchangeAddResponse -} - -// 航变信息录入接口 成功返回结果 -type TaobaoAlitripFlightchangeAddResponse struct { - XMLName xml.Name `xml:"alitrip_flightchange_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoAlitripFlightchangeAddResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/flight/TaobaoAlitripFlightchangeAddResultDo.go b/model/flight/TaobaoAlitripFlightchangeAddResultDo.go new file mode 100644 index 0000000000..762803dc67 --- /dev/null +++ b/model/flight/TaobaoAlitripFlightchangeAddResultDo.go @@ -0,0 +1,11 @@ +package flight + +// TaobaoAlitripFlightchangeAddResultDo +type TaobaoAlitripFlightchangeAddResultDo struct { + // 错误信息 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // 错误码 + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/flight/TaobaoAlitripFlightchangeGetAPIRequest.go b/model/flight/TaobaoAlitripFlightchangeGetAPIRequest.go new file mode 100644 index 0000000000..6472a9a3b4 --- /dev/null +++ b/model/flight/TaobaoAlitripFlightchangeGetAPIRequest.go @@ -0,0 +1,52 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取航变信息 API请求 +taobao.alitrip.flightchange.get + +查询航变是为了两个目的,阿里旅行抓取到未确认航变的航变信息源时可以由代理确认航变,同时对于确认航变的航变信息也共享给代理人做本体业务使用。 +*/ +type TaobaoAlitripFlightchangeGetAPIRequest struct { + model.Params + // 查询信息封装 + _searchOption *FlightChangeDataQueryOption +} + +// 初始化TaobaoAlitripFlightchangeGetAPIRequest对象 +func NewTaobaoAlitripFlightchangeGetRequest() *TaobaoAlitripFlightchangeGetAPIRequest{ + return &TaobaoAlitripFlightchangeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripFlightchangeGetAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.flightchange.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripFlightchangeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SearchOption Setter +// 查询信息封装 +func (r *TaobaoAlitripFlightchangeGetAPIRequest) SetSearchOption(_searchOption *FlightChangeDataQueryOption) error { + r._searchOption = _searchOption + r.Set("search_option", _searchOption) + return nil +} + +// SearchOption Getter +func (r TaobaoAlitripFlightchangeGetAPIRequest) GetSearchOption() *FlightChangeDataQueryOption { + return r._searchOption +} diff --git a/model/flight/TaobaoAlitripFlightchangeGetAPIResponse.go b/model/flight/TaobaoAlitripFlightchangeGetAPIResponse.go new file mode 100644 index 0000000000..09ac842a2b --- /dev/null +++ b/model/flight/TaobaoAlitripFlightchangeGetAPIResponse.go @@ -0,0 +1,27 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取航变信息 API返回值 +taobao.alitrip.flightchange.get + +查询航变是为了两个目的,阿里旅行抓取到未确认航变的航变信息源时可以由代理确认航变,同时对于确认航变的航变信息也共享给代理人做本体业务使用。 +*/ +type TaobaoAlitripFlightchangeGetAPIResponse struct { + model.CommonResponse + TaobaoAlitripFlightchangeGetAPIResponseModel +} + +// 获取航变信息 成功返回结果 +type TaobaoAlitripFlightchangeGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_flightchange_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + ResultDO *TaobaoAlitripFlightchangeGetResultDo `json:"result_d_o,omitempty" xml:"result_d_o,omitempty"` +} diff --git a/model/flight/TaobaoAlitripFlightchangeGetResponse.go b/model/flight/TaobaoAlitripFlightchangeGetResponse.go deleted file mode 100644 index 91a7e20557..0000000000 --- a/model/flight/TaobaoAlitripFlightchangeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取航变信息 API返回值 -taobao.alitrip.flightchange.get - -查询航变是为了两个目的,阿里旅行抓取到未确认航变的航变信息源时可以由代理确认航变,同时对于确认航变的航变信息也共享给代理人做本体业务使用。 -*/ -type TaobaoAlitripFlightchangeGetAPIResponse struct { - model.CommonResponse - TaobaoAlitripFlightchangeGetResponse -} - -// 获取航变信息 成功返回结果 -type TaobaoAlitripFlightchangeGetResponse struct { - XMLName xml.Name `xml:"alitrip_flightchange_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - ResultDO *TaobaoAlitripFlightchangeGetResultDo `json:"result_d_o,omitempty" xml:"result_d_o,omitempty"` -} diff --git a/model/flight/TaobaoAlitripFlightchangeGetResultDo.go b/model/flight/TaobaoAlitripFlightchangeGetResultDo.go new file mode 100644 index 0000000000..4c1df1e008 --- /dev/null +++ b/model/flight/TaobaoAlitripFlightchangeGetResultDo.go @@ -0,0 +1,13 @@ +package flight + +// TaobaoAlitripFlightchangeGetResultDo +type TaobaoAlitripFlightchangeGetResultDo struct { + // results + Results []string `json:"results,omitempty" xml:"results>string,omitempty"` + // errMsg + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // errCode + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` + // success + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/flight/TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIRequest.go b/model/flight/TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIRequest.go new file mode 100644 index 0000000000..b6d6587a02 --- /dev/null +++ b/model/flight/TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIRequest.go @@ -0,0 +1,52 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新模型-回填申请单费用 API请求 +taobao.alitrip.ie.agent.refund.new.fillconfirmfee + +1. 回填退票费用 +*/ +type TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIRequest struct { + model.Params + // 请求 + _paramRefundOrderFillConfirmFeeRq *RefundOrderFillConfirmFeeRq +} + +// 初始化TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIRequest对象 +func NewTaobaoAlitripIeAgentRefundNewFillconfirmfeeRequest() *TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIRequest{ + return &TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.ie.agent.refund.new.fillconfirmfee" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamRefundOrderFillConfirmFeeRq Setter +// 请求 +func (r *TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIRequest) SetParamRefundOrderFillConfirmFeeRq(_paramRefundOrderFillConfirmFeeRq *RefundOrderFillConfirmFeeRq) error { + r._paramRefundOrderFillConfirmFeeRq = _paramRefundOrderFillConfirmFeeRq + r.Set("param_refund_order_fill_confirm_fee_rq", _paramRefundOrderFillConfirmFeeRq) + return nil +} + +// ParamRefundOrderFillConfirmFeeRq Getter +func (r TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIRequest) GetParamRefundOrderFillConfirmFeeRq() *RefundOrderFillConfirmFeeRq { + return r._paramRefundOrderFillConfirmFeeRq +} diff --git a/model/flight/TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIResponse.go b/model/flight/TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIResponse.go new file mode 100644 index 0000000000..e526134cf2 --- /dev/null +++ b/model/flight/TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIResponse.go @@ -0,0 +1,27 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新模型-回填申请单费用 API返回值 +taobao.alitrip.ie.agent.refund.new.fillconfirmfee + +1. 回填退票费用 +*/ +type TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIResponse struct { + model.CommonResponse + TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIResponseModel +} + +// 新模型-回填申请单费用 成功返回结果 +type TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ie_agent_refund_new_fillconfirmfee_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *RefundOrderFillConfirmFeeRs `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/flight/TaobaoAlitripIeAgentRefundNewFillconfirmfeeResponse.go b/model/flight/TaobaoAlitripIeAgentRefundNewFillconfirmfeeResponse.go deleted file mode 100644 index ee40307139..0000000000 --- a/model/flight/TaobaoAlitripIeAgentRefundNewFillconfirmfeeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新模型-回填申请单费用 API返回值 -taobao.alitrip.ie.agent.refund.new.fillconfirmfee - -1. 回填退票费用 -*/ -type TaobaoAlitripIeAgentRefundNewFillconfirmfeeAPIResponse struct { - model.CommonResponse - TaobaoAlitripIeAgentRefundNewFillconfirmfeeResponse -} - -// 新模型-回填申请单费用 成功返回结果 -type TaobaoAlitripIeAgentRefundNewFillconfirmfeeResponse struct { - XMLName xml.Name `xml:"alitrip_ie_agent_refund_new_fillconfirmfee_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *RefundOrderFillConfirmFeeRs `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/flight/TaobaoAlitripIeAgentShoppingPushAPIRequest.go b/model/flight/TaobaoAlitripIeAgentShoppingPushAPIRequest.go new file mode 100644 index 0000000000..ada7ac952a --- /dev/null +++ b/model/flight/TaobaoAlitripIeAgentShoppingPushAPIRequest.go @@ -0,0 +1,52 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +国际机票大卖家Shopping推送 API请求 +taobao.alitrip.ie.agent.shopping.push + +用于国际机票大卖家主动推送Shopping结果更新缓存报价。 +*/ +type TaobaoAlitripIeAgentShoppingPushAPIRequest struct { + model.Params + // 政策推送结构体 + _param0 *ShoppingPushRq +} + +// 初始化TaobaoAlitripIeAgentShoppingPushAPIRequest对象 +func NewTaobaoAlitripIeAgentShoppingPushRequest() *TaobaoAlitripIeAgentShoppingPushAPIRequest{ + return &TaobaoAlitripIeAgentShoppingPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripIeAgentShoppingPushAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.ie.agent.shopping.push" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripIeAgentShoppingPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 政策推送结构体 +func (r *TaobaoAlitripIeAgentShoppingPushAPIRequest) SetParam0(_param0 *ShoppingPushRq) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoAlitripIeAgentShoppingPushAPIRequest) GetParam0() *ShoppingPushRq { + return r._param0 +} diff --git a/model/flight/TaobaoAlitripIeAgentShoppingPushAPIResponse.go b/model/flight/TaobaoAlitripIeAgentShoppingPushAPIResponse.go new file mode 100644 index 0000000000..ebcf9804b5 --- /dev/null +++ b/model/flight/TaobaoAlitripIeAgentShoppingPushAPIResponse.go @@ -0,0 +1,27 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +国际机票大卖家Shopping推送 API返回值 +taobao.alitrip.ie.agent.shopping.push + +用于国际机票大卖家主动推送Shopping结果更新缓存报价。 +*/ +type TaobaoAlitripIeAgentShoppingPushAPIResponse struct { + model.CommonResponse + TaobaoAlitripIeAgentShoppingPushAPIResponseModel +} + +// 国际机票大卖家Shopping推送 成功返回结果 +type TaobaoAlitripIeAgentShoppingPushAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ie_agent_shopping_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ShoppingPushRs `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/flight/TaobaoAlitripIeAgentShoppingPushResponse.go b/model/flight/TaobaoAlitripIeAgentShoppingPushResponse.go deleted file mode 100644 index 0a4cf85c34..0000000000 --- a/model/flight/TaobaoAlitripIeAgentShoppingPushResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -国际机票大卖家Shopping推送 API返回值 -taobao.alitrip.ie.agent.shopping.push - -用于国际机票大卖家主动推送Shopping结果更新缓存报价。 -*/ -type TaobaoAlitripIeAgentShoppingPushAPIResponse struct { - model.CommonResponse - TaobaoAlitripIeAgentShoppingPushResponse -} - -// 国际机票大卖家Shopping推送 成功返回结果 -type TaobaoAlitripIeAgentShoppingPushResponse struct { - XMLName xml.Name `xml:"alitrip_ie_agent_shopping_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ShoppingPushRs `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/flight/TaobaoAlitripTotoroAuxproductDeleteAPIRequest.go b/model/flight/TaobaoAlitripTotoroAuxproductDeleteAPIRequest.go new file mode 100644 index 0000000000..057fa6dcbd --- /dev/null +++ b/model/flight/TaobaoAlitripTotoroAuxproductDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +廉航辅营产品删除 API请求 +taobao.alitrip.totoro.auxproduct.delete + +廉航辅营产品删除接口 +*/ +type TaobaoAlitripTotoroAuxproductDeleteAPIRequest struct { + model.Params + // 廉航辅营产品删除请求 + _delAuxProductRq *DelAuxProductRq +} + +// 初始化TaobaoAlitripTotoroAuxproductDeleteAPIRequest对象 +func NewTaobaoAlitripTotoroAuxproductDeleteRequest() *TaobaoAlitripTotoroAuxproductDeleteAPIRequest{ + return &TaobaoAlitripTotoroAuxproductDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTotoroAuxproductDeleteAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.totoro.auxproduct.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTotoroAuxproductDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DelAuxProductRq Setter +// 廉航辅营产品删除请求 +func (r *TaobaoAlitripTotoroAuxproductDeleteAPIRequest) SetDelAuxProductRq(_delAuxProductRq *DelAuxProductRq) error { + r._delAuxProductRq = _delAuxProductRq + r.Set("del_aux_product_rq", _delAuxProductRq) + return nil +} + +// DelAuxProductRq Getter +func (r TaobaoAlitripTotoroAuxproductDeleteAPIRequest) GetDelAuxProductRq() *DelAuxProductRq { + return r._delAuxProductRq +} diff --git a/model/flight/TaobaoAlitripTotoroAuxproductDeleteAPIResponse.go b/model/flight/TaobaoAlitripTotoroAuxproductDeleteAPIResponse.go new file mode 100644 index 0000000000..11123abffe --- /dev/null +++ b/model/flight/TaobaoAlitripTotoroAuxproductDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +廉航辅营产品删除 API返回值 +taobao.alitrip.totoro.auxproduct.delete + +廉航辅营产品删除接口 +*/ +type TaobaoAlitripTotoroAuxproductDeleteAPIResponse struct { + model.CommonResponse + TaobaoAlitripTotoroAuxproductDeleteAPIResponseModel +} + +// 廉航辅营产品删除 成功返回结果 +type TaobaoAlitripTotoroAuxproductDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_totoro_auxproduct_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *DelAuxProductsRs `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/flight/TaobaoAlitripTotoroAuxproductDeleteResponse.go b/model/flight/TaobaoAlitripTotoroAuxproductDeleteResponse.go deleted file mode 100644 index 0830978969..0000000000 --- a/model/flight/TaobaoAlitripTotoroAuxproductDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -廉航辅营产品删除 API返回值 -taobao.alitrip.totoro.auxproduct.delete - -廉航辅营产品删除接口 -*/ -type TaobaoAlitripTotoroAuxproductDeleteAPIResponse struct { - model.CommonResponse - TaobaoAlitripTotoroAuxproductDeleteResponse -} - -// 廉航辅营产品删除 成功返回结果 -type TaobaoAlitripTotoroAuxproductDeleteResponse struct { - XMLName xml.Name `xml:"alitrip_totoro_auxproduct_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *DelAuxProductsRs `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/flight/TaobaoAlitripTotoroAuxproductPushAPIRequest.go b/model/flight/TaobaoAlitripTotoroAuxproductPushAPIRequest.go new file mode 100644 index 0000000000..c7e657d32e --- /dev/null +++ b/model/flight/TaobaoAlitripTotoroAuxproductPushAPIRequest.go @@ -0,0 +1,52 @@ +package flight + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +廉航辅营产品投放 API请求 +taobao.alitrip.totoro.auxproduct.push + +廉航辅营产品投放接口 +*/ +type TaobaoAlitripTotoroAuxproductPushAPIRequest struct { + model.Params + // 廉航辅营产品推送请求 + _pushAuxProductsRq *PushAuxProductsRq +} + +// 初始化TaobaoAlitripTotoroAuxproductPushAPIRequest对象 +func NewTaobaoAlitripTotoroAuxproductPushRequest() *TaobaoAlitripTotoroAuxproductPushAPIRequest{ + return &TaobaoAlitripTotoroAuxproductPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTotoroAuxproductPushAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.totoro.auxproduct.push" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTotoroAuxproductPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PushAuxProductsRq Setter +// 廉航辅营产品推送请求 +func (r *TaobaoAlitripTotoroAuxproductPushAPIRequest) SetPushAuxProductsRq(_pushAuxProductsRq *PushAuxProductsRq) error { + r._pushAuxProductsRq = _pushAuxProductsRq + r.Set("push_aux_products_rq", _pushAuxProductsRq) + return nil +} + +// PushAuxProductsRq Getter +func (r TaobaoAlitripTotoroAuxproductPushAPIRequest) GetPushAuxProductsRq() *PushAuxProductsRq { + return r._pushAuxProductsRq +} diff --git a/model/flight/TaobaoAlitripTotoroAuxproductPushAPIResponse.go b/model/flight/TaobaoAlitripTotoroAuxproductPushAPIResponse.go new file mode 100644 index 0000000000..ec58c7f4bf --- /dev/null +++ b/model/flight/TaobaoAlitripTotoroAuxproductPushAPIResponse.go @@ -0,0 +1,31 @@ +package flight + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +廉航辅营产品投放 API返回值 +taobao.alitrip.totoro.auxproduct.push + +廉航辅营产品投放接口 +*/ +type TaobaoAlitripTotoroAuxproductPushAPIResponse struct { + model.CommonResponse + TaobaoAlitripTotoroAuxproductPushAPIResponseModel +} + +// 廉航辅营产品投放 成功返回结果 +type TaobaoAlitripTotoroAuxproductPushAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_totoro_auxproduct_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作日志id,商家可通过该id在后台查看本次操作的具体结果 + TracerId string `json:"tracer_id,omitempty" xml:"tracer_id,omitempty"` + // 备注 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 是否操作成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/flight/TaobaoAlitripTotoroAuxproductPushResponse.go b/model/flight/TaobaoAlitripTotoroAuxproductPushResponse.go deleted file mode 100644 index 20d570e1a5..0000000000 --- a/model/flight/TaobaoAlitripTotoroAuxproductPushResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package flight - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -廉航辅营产品投放 API返回值 -taobao.alitrip.totoro.auxproduct.push - -廉航辅营产品投放接口 -*/ -type TaobaoAlitripTotoroAuxproductPushAPIResponse struct { - model.CommonResponse - TaobaoAlitripTotoroAuxproductPushResponse -} - -// 廉航辅营产品投放 成功返回结果 -type TaobaoAlitripTotoroAuxproductPushResponse struct { - XMLName xml.Name `xml:"alitrip_totoro_auxproduct_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作日志id,商家可通过该id在后台查看本次操作的具体结果 - TracerId string `json:"tracer_id,omitempty" xml:"tracer_id,omitempty"` - // 备注 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 是否操作成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/flightuppc/AlitripFlightBasicDataCityQueryAllAPIRequest.go b/model/flightuppc/AlitripFlightBasicDataCityQueryAllAPIRequest.go new file mode 100644 index 0000000000..29f3fa2d44 --- /dev/null +++ b/model/flightuppc/AlitripFlightBasicDataCityQueryAllAPIRequest.go @@ -0,0 +1,38 @@ +package flightuppc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +机票基础数据城市数据查询 API请求 +alitrip.flight.basic.data.city.queryAll + +机票基础数据城市数据查询top接口 +*/ +type AlitripFlightBasicDataCityQueryAllAPIRequest struct { + model.Params +} + +// 初始化AlitripFlightBasicDataCityQueryAllAPIRequest对象 +func NewAlitripFlightBasicDataCityQueryAllRequest() *AlitripFlightBasicDataCityQueryAllAPIRequest{ + return &AlitripFlightBasicDataCityQueryAllAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripFlightBasicDataCityQueryAllAPIRequest) GetApiMethodName() string { + return "alitrip.flight.basic.data.city.queryAll" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripFlightBasicDataCityQueryAllAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/flightuppc/AlitripFlightBasicDataCityQueryAllAPIResponse.go b/model/flightuppc/AlitripFlightBasicDataCityQueryAllAPIResponse.go new file mode 100644 index 0000000000..b1368b2969 --- /dev/null +++ b/model/flightuppc/AlitripFlightBasicDataCityQueryAllAPIResponse.go @@ -0,0 +1,27 @@ +package flightuppc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +机票基础数据城市数据查询 API返回值 +alitrip.flight.basic.data.city.queryAll + +机票基础数据城市数据查询top接口 +*/ +type AlitripFlightBasicDataCityQueryAllAPIResponse struct { + model.CommonResponse + AlitripFlightBasicDataCityQueryAllAPIResponseModel +} + +// 机票基础数据城市数据查询 成功返回结果 +type AlitripFlightBasicDataCityQueryAllAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_flight_basic_data_city_queryAll_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回包装类 + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/flightuppc/AlitripFlightBasicDataCityQueryAllResponse.go b/model/flightuppc/AlitripFlightBasicDataCityQueryAllResponse.go deleted file mode 100644 index 0fc782da4c..0000000000 --- a/model/flightuppc/AlitripFlightBasicDataCityQueryAllResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package flightuppc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -机票基础数据城市数据查询 API返回值 -alitrip.flight.basic.data.city.queryAll - -机票基础数据城市数据查询top接口 -*/ -type AlitripFlightBasicDataCityQueryAllAPIResponse struct { - model.CommonResponse - AlitripFlightBasicDataCityQueryAllResponse -} - -// 机票基础数据城市数据查询 成功返回结果 -type AlitripFlightBasicDataCityQueryAllResponse struct { - XMLName xml.Name `xml:"alitrip_flight_basic_data_city_queryAll_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回包装类 - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/flightuppc/AlitripUppcMemberGainAPIRequest.go b/model/flightuppc/AlitripUppcMemberGainAPIRequest.go new file mode 100644 index 0000000000..e7182e7aa5 --- /dev/null +++ b/model/flightuppc/AlitripUppcMemberGainAPIRequest.go @@ -0,0 +1,94 @@ +package flightuppc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +航司权益数据回流 API请求 +alitrip.uppc.member.gain + +航司权益数据回流 +*/ +type AlitripUppcMemberGainAPIRequest struct { + model.Params + // 请求唯一标识 + _requestId string + // 查询成功 + _statusCode int64 + // 权益截止时间(扩展字段) + _responseJson string + // 错误提示 + _errorMsg string +} + +// 初始化AlitripUppcMemberGainAPIRequest对象 +func NewAlitripUppcMemberGainRequest() *AlitripUppcMemberGainAPIRequest{ + return &AlitripUppcMemberGainAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripUppcMemberGainAPIRequest) GetApiMethodName() string { + return "alitrip.uppc.member.gain" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripUppcMemberGainAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestId Setter +// 请求唯一标识 +func (r *AlitripUppcMemberGainAPIRequest) SetRequestId(_requestId string) error { + r._requestId = _requestId + r.Set("request_id", _requestId) + return nil +} + +// RequestId Getter +func (r AlitripUppcMemberGainAPIRequest) GetRequestId() string { + return r._requestId +} +// StatusCode Setter +// 查询成功 +func (r *AlitripUppcMemberGainAPIRequest) SetStatusCode(_statusCode int64) error { + r._statusCode = _statusCode + r.Set("status_code", _statusCode) + return nil +} + +// StatusCode Getter +func (r AlitripUppcMemberGainAPIRequest) GetStatusCode() int64 { + return r._statusCode +} +// ResponseJson Setter +// 权益截止时间(扩展字段) +func (r *AlitripUppcMemberGainAPIRequest) SetResponseJson(_responseJson string) error { + r._responseJson = _responseJson + r.Set("response_json", _responseJson) + return nil +} + +// ResponseJson Getter +func (r AlitripUppcMemberGainAPIRequest) GetResponseJson() string { + return r._responseJson +} +// ErrorMsg Setter +// 错误提示 +func (r *AlitripUppcMemberGainAPIRequest) SetErrorMsg(_errorMsg string) error { + r._errorMsg = _errorMsg + r.Set("error_msg", _errorMsg) + return nil +} + +// ErrorMsg Getter +func (r AlitripUppcMemberGainAPIRequest) GetErrorMsg() string { + return r._errorMsg +} diff --git a/model/flightuppc/AlitripUppcMemberGainAPIResponse.go b/model/flightuppc/AlitripUppcMemberGainAPIResponse.go new file mode 100644 index 0000000000..92c04bcd1a --- /dev/null +++ b/model/flightuppc/AlitripUppcMemberGainAPIResponse.go @@ -0,0 +1,27 @@ +package flightuppc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +航司权益数据回流 API返回值 +alitrip.uppc.member.gain + +航司权益数据回流 +*/ +type AlitripUppcMemberGainAPIResponse struct { + model.CommonResponse + AlitripUppcMemberGainAPIResponseModel +} + +// 航司权益数据回流 成功返回结果 +type AlitripUppcMemberGainAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_uppc_member_gain_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/flightuppc/AlitripUppcMemberGainResponse.go b/model/flightuppc/AlitripUppcMemberGainResponse.go deleted file mode 100644 index b4f5090c9d..0000000000 --- a/model/flightuppc/AlitripUppcMemberGainResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package flightuppc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -航司权益数据回流 API返回值 -alitrip.uppc.member.gain - -航司权益数据回流 -*/ -type AlitripUppcMemberGainAPIResponse struct { - model.CommonResponse - AlitripUppcMemberGainResponse -} - -// 航司权益数据回流 成功返回结果 -type AlitripUppcMemberGainResponse struct { - XMLName xml.Name `xml:"alitrip_uppc_member_gain_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/flightuppc/ResultDo.go b/model/flightuppc/ResultDo.go new file mode 100644 index 0000000000..918b42f3b4 --- /dev/null +++ b/model/flightuppc/ResultDo.go @@ -0,0 +1,15 @@ +package flightuppc + +// ResultDo +type ResultDo struct { + // 是否回流成功 + Module bool `json:"module,omitempty" xml:"module,omitempty"` + // 错误信息 + MsgForClient string `json:"msg_for_client,omitempty" xml:"msg_for_client,omitempty"` + // 返回code + Code string `json:"code,omitempty" xml:"code,omitempty"` + // 错误信息 + Msg string `json:"msg,omitempty" xml:"msg,omitempty"` + // 是否执行回流成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/foodscan/AlibabaFootscanMiniImageUploadAPIRequest.go b/model/foodscan/AlibabaFootscanMiniImageUploadAPIRequest.go new file mode 100644 index 0000000000..329728d4cb --- /dev/null +++ b/model/foodscan/AlibabaFootscanMiniImageUploadAPIRequest.go @@ -0,0 +1,66 @@ +package foodscan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家端图片上传 API请求 +alibaba.footscan.mini.image.upload + +提供图片上传功能,同时进行图片的检测 +*/ +type AlibabaFootscanMiniImageUploadAPIRequest struct { + model.Params + // 平台分配的token + _token string + // 请求数据 + _reqData *CheckParam +} + +// 初始化AlibabaFootscanMiniImageUploadAPIRequest对象 +func NewAlibabaFootscanMiniImageUploadRequest() *AlibabaFootscanMiniImageUploadAPIRequest{ + return &AlibabaFootscanMiniImageUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFootscanMiniImageUploadAPIRequest) GetApiMethodName() string { + return "alibaba.footscan.mini.image.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFootscanMiniImageUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Token Setter +// 平台分配的token +func (r *AlibabaFootscanMiniImageUploadAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaFootscanMiniImageUploadAPIRequest) GetToken() string { + return r._token +} +// ReqData Setter +// 请求数据 +func (r *AlibabaFootscanMiniImageUploadAPIRequest) SetReqData(_reqData *CheckParam) error { + r._reqData = _reqData + r.Set("req_data", _reqData) + return nil +} + +// ReqData Getter +func (r AlibabaFootscanMiniImageUploadAPIRequest) GetReqData() *CheckParam { + return r._reqData +} diff --git a/model/foodscan/AlibabaFootscanMiniImageUploadAPIResponse.go b/model/foodscan/AlibabaFootscanMiniImageUploadAPIResponse.go new file mode 100644 index 0000000000..3732beb85f --- /dev/null +++ b/model/foodscan/AlibabaFootscanMiniImageUploadAPIResponse.go @@ -0,0 +1,27 @@ +package foodscan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家端图片上传 API返回值 +alibaba.footscan.mini.image.upload + +提供图片上传功能,同时进行图片的检测 +*/ +type AlibabaFootscanMiniImageUploadAPIResponse struct { + model.CommonResponse + AlibabaFootscanMiniImageUploadAPIResponseModel +} + +// 商家端图片上传 成功返回结果 +type AlibabaFootscanMiniImageUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_footscan_mini_image_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务出参 + Result *AlibabaFootscanMiniImageUploadMtopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/foodscan/AlibabaFootscanMiniImageUploadResponse.go b/model/foodscan/AlibabaFootscanMiniImageUploadResponse.go deleted file mode 100644 index b90bb65fb8..0000000000 --- a/model/foodscan/AlibabaFootscanMiniImageUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package foodscan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家端图片上传 API返回值 -alibaba.footscan.mini.image.upload - -提供图片上传功能,同时进行图片的检测 -*/ -type AlibabaFootscanMiniImageUploadAPIResponse struct { - model.CommonResponse - AlibabaFootscanMiniImageUploadResponse -} - -// 商家端图片上传 成功返回结果 -type AlibabaFootscanMiniImageUploadResponse struct { - XMLName xml.Name `xml:"alibaba_footscan_mini_image_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务出参 - Result *AlibabaFootscanMiniImageUploadMtopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/foodscan/AlibabaFootscanMiniQueryMobilereportAPIRequest.go b/model/foodscan/AlibabaFootscanMiniQueryMobilereportAPIRequest.go new file mode 100644 index 0000000000..7e37a45627 --- /dev/null +++ b/model/foodscan/AlibabaFootscanMiniQueryMobilereportAPIRequest.go @@ -0,0 +1,66 @@ +package foodscan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据scanId查询报告 API请求 +alibaba.footscan.mini.query.mobilereport + +根据scanId查询报告 +*/ +type AlibabaFootscanMiniQueryMobilereportAPIRequest struct { + model.Params + // 平台分配的token + _token string + // 扫描ID + _scanId string +} + +// 初始化AlibabaFootscanMiniQueryMobilereportAPIRequest对象 +func NewAlibabaFootscanMiniQueryMobilereportRequest() *AlibabaFootscanMiniQueryMobilereportAPIRequest{ + return &AlibabaFootscanMiniQueryMobilereportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFootscanMiniQueryMobilereportAPIRequest) GetApiMethodName() string { + return "alibaba.footscan.mini.query.mobilereport" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFootscanMiniQueryMobilereportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Token Setter +// 平台分配的token +func (r *AlibabaFootscanMiniQueryMobilereportAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaFootscanMiniQueryMobilereportAPIRequest) GetToken() string { + return r._token +} +// ScanId Setter +// 扫描ID +func (r *AlibabaFootscanMiniQueryMobilereportAPIRequest) SetScanId(_scanId string) error { + r._scanId = _scanId + r.Set("scan_id", _scanId) + return nil +} + +// ScanId Getter +func (r AlibabaFootscanMiniQueryMobilereportAPIRequest) GetScanId() string { + return r._scanId +} diff --git a/model/foodscan/AlibabaFootscanMiniQueryMobilereportAPIResponse.go b/model/foodscan/AlibabaFootscanMiniQueryMobilereportAPIResponse.go new file mode 100644 index 0000000000..aca54f1acb --- /dev/null +++ b/model/foodscan/AlibabaFootscanMiniQueryMobilereportAPIResponse.go @@ -0,0 +1,27 @@ +package foodscan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据scanId查询报告 API返回值 +alibaba.footscan.mini.query.mobilereport + +根据scanId查询报告 +*/ +type AlibabaFootscanMiniQueryMobilereportAPIResponse struct { + model.CommonResponse + AlibabaFootscanMiniQueryMobilereportAPIResponseModel +} + +// 根据scanId查询报告 成功返回结果 +type AlibabaFootscanMiniQueryMobilereportAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_footscan_mini_query_mobilereport_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务出参 + Result *AlibabaFootscanMiniQueryMobilereportMtopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/foodscan/AlibabaFootscanMiniQueryMobilereportResponse.go b/model/foodscan/AlibabaFootscanMiniQueryMobilereportResponse.go deleted file mode 100644 index 44e17a41b3..0000000000 --- a/model/foodscan/AlibabaFootscanMiniQueryMobilereportResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package foodscan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据scanId查询报告 API返回值 -alibaba.footscan.mini.query.mobilereport - -根据scanId查询报告 -*/ -type AlibabaFootscanMiniQueryMobilereportAPIResponse struct { - model.CommonResponse - AlibabaFootscanMiniQueryMobilereportResponse -} - -// 根据scanId查询报告 成功返回结果 -type AlibabaFootscanMiniQueryMobilereportResponse struct { - XMLName xml.Name `xml:"alibaba_footscan_mini_query_mobilereport_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务出参 - Result *AlibabaFootscanMiniQueryMobilereportMtopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/foodscan/AlibabaFootscanMiniReportFragmentFirstAPIRequest.go b/model/foodscan/AlibabaFootscanMiniReportFragmentFirstAPIRequest.go new file mode 100644 index 0000000000..b137c484f8 --- /dev/null +++ b/model/foodscan/AlibabaFootscanMiniReportFragmentFirstAPIRequest.go @@ -0,0 +1,66 @@ +package foodscan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +第一只脚生成报告接口 API请求 +alibaba.footscan.mini.report.fragment.first + +第一只脚生成报告接口 +*/ +type AlibabaFootscanMiniReportFragmentFirstAPIRequest struct { + model.Params + // 平台分配的token + _token string + // 请求数据 + _reqData *FilePackageRequest +} + +// 初始化AlibabaFootscanMiniReportFragmentFirstAPIRequest对象 +func NewAlibabaFootscanMiniReportFragmentFirstRequest() *AlibabaFootscanMiniReportFragmentFirstAPIRequest{ + return &AlibabaFootscanMiniReportFragmentFirstAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFootscanMiniReportFragmentFirstAPIRequest) GetApiMethodName() string { + return "alibaba.footscan.mini.report.fragment.first" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFootscanMiniReportFragmentFirstAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Token Setter +// 平台分配的token +func (r *AlibabaFootscanMiniReportFragmentFirstAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaFootscanMiniReportFragmentFirstAPIRequest) GetToken() string { + return r._token +} +// ReqData Setter +// 请求数据 +func (r *AlibabaFootscanMiniReportFragmentFirstAPIRequest) SetReqData(_reqData *FilePackageRequest) error { + r._reqData = _reqData + r.Set("req_data", _reqData) + return nil +} + +// ReqData Getter +func (r AlibabaFootscanMiniReportFragmentFirstAPIRequest) GetReqData() *FilePackageRequest { + return r._reqData +} diff --git a/model/foodscan/AlibabaFootscanMiniReportFragmentFirstAPIResponse.go b/model/foodscan/AlibabaFootscanMiniReportFragmentFirstAPIResponse.go new file mode 100644 index 0000000000..da80a586e7 --- /dev/null +++ b/model/foodscan/AlibabaFootscanMiniReportFragmentFirstAPIResponse.go @@ -0,0 +1,27 @@ +package foodscan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +第一只脚生成报告接口 API返回值 +alibaba.footscan.mini.report.fragment.first + +第一只脚生成报告接口 +*/ +type AlibabaFootscanMiniReportFragmentFirstAPIResponse struct { + model.CommonResponse + AlibabaFootscanMiniReportFragmentFirstAPIResponseModel +} + +// 第一只脚生成报告接口 成功返回结果 +type AlibabaFootscanMiniReportFragmentFirstAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_footscan_mini_report_fragment_first_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务出参 + Result *AlibabaFootscanMiniReportFragmentFirstMtopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/foodscan/AlibabaFootscanMiniReportFragmentFirstResponse.go b/model/foodscan/AlibabaFootscanMiniReportFragmentFirstResponse.go deleted file mode 100644 index 952f1455f4..0000000000 --- a/model/foodscan/AlibabaFootscanMiniReportFragmentFirstResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package foodscan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -第一只脚生成报告接口 API返回值 -alibaba.footscan.mini.report.fragment.first - -第一只脚生成报告接口 -*/ -type AlibabaFootscanMiniReportFragmentFirstAPIResponse struct { - model.CommonResponse - AlibabaFootscanMiniReportFragmentFirstResponse -} - -// 第一只脚生成报告接口 成功返回结果 -type AlibabaFootscanMiniReportFragmentFirstResponse struct { - XMLName xml.Name `xml:"alibaba_footscan_mini_report_fragment_first_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务出参 - Result *AlibabaFootscanMiniReportFragmentFirstMtopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/foodscan/AlibabaFootscanMiniReportFragmentSecondAPIRequest.go b/model/foodscan/AlibabaFootscanMiniReportFragmentSecondAPIRequest.go new file mode 100644 index 0000000000..3d74011a9d --- /dev/null +++ b/model/foodscan/AlibabaFootscanMiniReportFragmentSecondAPIRequest.go @@ -0,0 +1,66 @@ +package foodscan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +第二只脚生成报告接口 API请求 +alibaba.footscan.mini.report.fragment.second + +第二只脚生成报告接口 +*/ +type AlibabaFootscanMiniReportFragmentSecondAPIRequest struct { + model.Params + // 平台分配的token + _token string + // 请求数据 + _reqData *FilePackageBasicReq +} + +// 初始化AlibabaFootscanMiniReportFragmentSecondAPIRequest对象 +func NewAlibabaFootscanMiniReportFragmentSecondRequest() *AlibabaFootscanMiniReportFragmentSecondAPIRequest{ + return &AlibabaFootscanMiniReportFragmentSecondAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFootscanMiniReportFragmentSecondAPIRequest) GetApiMethodName() string { + return "alibaba.footscan.mini.report.fragment.second" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFootscanMiniReportFragmentSecondAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Token Setter +// 平台分配的token +func (r *AlibabaFootscanMiniReportFragmentSecondAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaFootscanMiniReportFragmentSecondAPIRequest) GetToken() string { + return r._token +} +// ReqData Setter +// 请求数据 +func (r *AlibabaFootscanMiniReportFragmentSecondAPIRequest) SetReqData(_reqData *FilePackageBasicReq) error { + r._reqData = _reqData + r.Set("req_data", _reqData) + return nil +} + +// ReqData Getter +func (r AlibabaFootscanMiniReportFragmentSecondAPIRequest) GetReqData() *FilePackageBasicReq { + return r._reqData +} diff --git a/model/foodscan/AlibabaFootscanMiniReportFragmentSecondAPIResponse.go b/model/foodscan/AlibabaFootscanMiniReportFragmentSecondAPIResponse.go new file mode 100644 index 0000000000..4ba60f06ab --- /dev/null +++ b/model/foodscan/AlibabaFootscanMiniReportFragmentSecondAPIResponse.go @@ -0,0 +1,27 @@ +package foodscan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +第二只脚生成报告接口 API返回值 +alibaba.footscan.mini.report.fragment.second + +第二只脚生成报告接口 +*/ +type AlibabaFootscanMiniReportFragmentSecondAPIResponse struct { + model.CommonResponse + AlibabaFootscanMiniReportFragmentSecondAPIResponseModel +} + +// 第二只脚生成报告接口 成功返回结果 +type AlibabaFootscanMiniReportFragmentSecondAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_footscan_mini_report_fragment_second_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务出参 + Result *AlibabaFootscanMiniReportFragmentSecondMtopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/foodscan/AlibabaFootscanMiniReportFragmentSecondResponse.go b/model/foodscan/AlibabaFootscanMiniReportFragmentSecondResponse.go deleted file mode 100644 index bf8bcbf600..0000000000 --- a/model/foodscan/AlibabaFootscanMiniReportFragmentSecondResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package foodscan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -第二只脚生成报告接口 API返回值 -alibaba.footscan.mini.report.fragment.second - -第二只脚生成报告接口 -*/ -type AlibabaFootscanMiniReportFragmentSecondAPIResponse struct { - model.CommonResponse - AlibabaFootscanMiniReportFragmentSecondResponse -} - -// 第二只脚生成报告接口 成功返回结果 -type AlibabaFootscanMiniReportFragmentSecondResponse struct { - XMLName xml.Name `xml:"alibaba_footscan_mini_report_fragment_second_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务出参 - Result *AlibabaFootscanMiniReportFragmentSecondMtopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/foodscan/AlibabaFootscanMiniReportListAPIRequest.go b/model/foodscan/AlibabaFootscanMiniReportListAPIRequest.go new file mode 100644 index 0000000000..f29df233d4 --- /dev/null +++ b/model/foodscan/AlibabaFootscanMiniReportListAPIRequest.go @@ -0,0 +1,66 @@ +package foodscan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询报告列表 API请求 +alibaba.footscan.mini.report.list + +查询报告列表 +*/ +type AlibabaFootscanMiniReportListAPIRequest struct { + model.Params + // 平台分配的token + _token string + // 请求数据 + _reqData *TobFeetModelMobileReportRequest +} + +// 初始化AlibabaFootscanMiniReportListAPIRequest对象 +func NewAlibabaFootscanMiniReportListRequest() *AlibabaFootscanMiniReportListAPIRequest{ + return &AlibabaFootscanMiniReportListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFootscanMiniReportListAPIRequest) GetApiMethodName() string { + return "alibaba.footscan.mini.report.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFootscanMiniReportListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Token Setter +// 平台分配的token +func (r *AlibabaFootscanMiniReportListAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaFootscanMiniReportListAPIRequest) GetToken() string { + return r._token +} +// ReqData Setter +// 请求数据 +func (r *AlibabaFootscanMiniReportListAPIRequest) SetReqData(_reqData *TobFeetModelMobileReportRequest) error { + r._reqData = _reqData + r.Set("req_data", _reqData) + return nil +} + +// ReqData Getter +func (r AlibabaFootscanMiniReportListAPIRequest) GetReqData() *TobFeetModelMobileReportRequest { + return r._reqData +} diff --git a/model/foodscan/AlibabaFootscanMiniReportListAPIResponse.go b/model/foodscan/AlibabaFootscanMiniReportListAPIResponse.go new file mode 100644 index 0000000000..103a6a5149 --- /dev/null +++ b/model/foodscan/AlibabaFootscanMiniReportListAPIResponse.go @@ -0,0 +1,27 @@ +package foodscan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询报告列表 API返回值 +alibaba.footscan.mini.report.list + +查询报告列表 +*/ +type AlibabaFootscanMiniReportListAPIResponse struct { + model.CommonResponse + AlibabaFootscanMiniReportListAPIResponseModel +} + +// 查询报告列表 成功返回结果 +type AlibabaFootscanMiniReportListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_footscan_mini_report_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务出参 + Result *AlibabaFootscanMiniReportListMtopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/foodscan/AlibabaFootscanMiniReportListResponse.go b/model/foodscan/AlibabaFootscanMiniReportListResponse.go deleted file mode 100644 index 92fa5a9e32..0000000000 --- a/model/foodscan/AlibabaFootscanMiniReportListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package foodscan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询报告列表 API返回值 -alibaba.footscan.mini.report.list - -查询报告列表 -*/ -type AlibabaFootscanMiniReportListAPIResponse struct { - model.CommonResponse - AlibabaFootscanMiniReportListResponse -} - -// 查询报告列表 成功返回结果 -type AlibabaFootscanMiniReportListResponse struct { - XMLName xml.Name `xml:"alibaba_footscan_mini_report_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务出参 - Result *AlibabaFootscanMiniReportListMtopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/foodscan/AlibabaFootscanMiniSavedAPIRequest.go b/model/foodscan/AlibabaFootscanMiniSavedAPIRequest.go new file mode 100644 index 0000000000..80d6b74c30 --- /dev/null +++ b/model/foodscan/AlibabaFootscanMiniSavedAPIRequest.go @@ -0,0 +1,66 @@ +package foodscan + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新报告状态 API请求 +alibaba.footscan.mini.saved + +更新报告状态接口 +*/ +type AlibabaFootscanMiniSavedAPIRequest struct { + model.Params + // 平台分配的token + _token string + // 请求数据 + _reqData string +} + +// 初始化AlibabaFootscanMiniSavedAPIRequest对象 +func NewAlibabaFootscanMiniSavedRequest() *AlibabaFootscanMiniSavedAPIRequest{ + return &AlibabaFootscanMiniSavedAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFootscanMiniSavedAPIRequest) GetApiMethodName() string { + return "alibaba.footscan.mini.saved" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFootscanMiniSavedAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Token Setter +// 平台分配的token +func (r *AlibabaFootscanMiniSavedAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaFootscanMiniSavedAPIRequest) GetToken() string { + return r._token +} +// ReqData Setter +// 请求数据 +func (r *AlibabaFootscanMiniSavedAPIRequest) SetReqData(_reqData string) error { + r._reqData = _reqData + r.Set("req_data", _reqData) + return nil +} + +// ReqData Getter +func (r AlibabaFootscanMiniSavedAPIRequest) GetReqData() string { + return r._reqData +} diff --git a/model/foodscan/AlibabaFootscanMiniSavedAPIResponse.go b/model/foodscan/AlibabaFootscanMiniSavedAPIResponse.go new file mode 100644 index 0000000000..47dbffc6b7 --- /dev/null +++ b/model/foodscan/AlibabaFootscanMiniSavedAPIResponse.go @@ -0,0 +1,27 @@ +package foodscan + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新报告状态 API返回值 +alibaba.footscan.mini.saved + +更新报告状态接口 +*/ +type AlibabaFootscanMiniSavedAPIResponse struct { + model.CommonResponse + AlibabaFootscanMiniSavedAPIResponseModel +} + +// 更新报告状态 成功返回结果 +type AlibabaFootscanMiniSavedAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_footscan_mini_saved_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务出参 + Result *AlibabaFootscanMiniSavedMtopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/foodscan/AlibabaFootscanMiniSavedResponse.go b/model/foodscan/AlibabaFootscanMiniSavedResponse.go deleted file mode 100644 index 036055122b..0000000000 --- a/model/foodscan/AlibabaFootscanMiniSavedResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package foodscan - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新报告状态 API返回值 -alibaba.footscan.mini.saved - -更新报告状态接口 -*/ -type AlibabaFootscanMiniSavedAPIResponse struct { - model.CommonResponse - AlibabaFootscanMiniSavedResponse -} - -// 更新报告状态 成功返回结果 -type AlibabaFootscanMiniSavedResponse struct { - XMLName xml.Name `xml:"alibaba_footscan_mini_saved_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务出参 - Result *AlibabaFootscanMiniSavedMtopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fpm/AlibabaFpmFileUploadAPIRequest.go b/model/fpm/AlibabaFpmFileUploadAPIRequest.go new file mode 100644 index 0000000000..e11a993f9c --- /dev/null +++ b/model/fpm/AlibabaFpmFileUploadAPIRequest.go @@ -0,0 +1,52 @@ +package fpm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +结算单文件上传 API请求 +alibaba.fpm.file.upload + +结算单文件上传 +*/ +type AlibabaFpmFileUploadAPIRequest struct { + model.Params + // 实体 + _bizDto *FileUploadRequestDto +} + +// 初始化AlibabaFpmFileUploadAPIRequest对象 +func NewAlibabaFpmFileUploadRequest() *AlibabaFpmFileUploadAPIRequest{ + return &AlibabaFpmFileUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFpmFileUploadAPIRequest) GetApiMethodName() string { + return "alibaba.fpm.file.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFpmFileUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizDto Setter +// 实体 +func (r *AlibabaFpmFileUploadAPIRequest) SetBizDto(_bizDto *FileUploadRequestDto) error { + r._bizDto = _bizDto + r.Set("biz_dto", _bizDto) + return nil +} + +// BizDto Getter +func (r AlibabaFpmFileUploadAPIRequest) GetBizDto() *FileUploadRequestDto { + return r._bizDto +} diff --git a/model/fpm/AlibabaFpmFileUploadAPIResponse.go b/model/fpm/AlibabaFpmFileUploadAPIResponse.go new file mode 100644 index 0000000000..84d5d643ce --- /dev/null +++ b/model/fpm/AlibabaFpmFileUploadAPIResponse.go @@ -0,0 +1,27 @@ +package fpm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +结算单文件上传 API返回值 +alibaba.fpm.file.upload + +结算单文件上传 +*/ +type AlibabaFpmFileUploadAPIResponse struct { + model.CommonResponse + AlibabaFpmFileUploadAPIResponseModel +} + +// 结算单文件上传 成功返回结果 +type AlibabaFpmFileUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fpm_file_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaFpmFileUploadResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fpm/AlibabaFpmFileUploadResponse.go b/model/fpm/AlibabaFpmFileUploadResponse.go deleted file mode 100644 index 2f79d741f3..0000000000 --- a/model/fpm/AlibabaFpmFileUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fpm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -结算单文件上传 API返回值 -alibaba.fpm.file.upload - -结算单文件上传 -*/ -type AlibabaFpmFileUploadAPIResponse struct { - model.CommonResponse - AlibabaFpmFileUploadResponse -} - -// 结算单文件上传 成功返回结果 -type AlibabaFpmFileUploadResponse struct { - XMLName xml.Name `xml:"alibaba_fpm_file_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaFpmFileUploadResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fundplatform/AlibabaFundplatformAccountChargeAPIRequest.go b/model/fundplatform/AlibabaFundplatformAccountChargeAPIRequest.go new file mode 100644 index 0000000000..74fd774f80 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformAccountChargeAPIRequest.go @@ -0,0 +1,66 @@ +package fundplatform + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +资金平台余额账户充值 API请求 +alibaba.fundplatform.account.charge + +资金平台余额账户充值【创建账户&返回付款URL】 +*/ +type AlibabaFundplatformAccountChargeAPIRequest struct { + model.Params + // 用户ID + _paramLong int64 + // 入参对象 + _paramChargeRequest *ChargeRequest +} + +// 初始化AlibabaFundplatformAccountChargeAPIRequest对象 +func NewAlibabaFundplatformAccountChargeRequest() *AlibabaFundplatformAccountChargeAPIRequest{ + return &AlibabaFundplatformAccountChargeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFundplatformAccountChargeAPIRequest) GetApiMethodName() string { + return "alibaba.fundplatform.account.charge" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFundplatformAccountChargeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamLong Setter +// 用户ID +func (r *AlibabaFundplatformAccountChargeAPIRequest) SetParamLong(_paramLong int64) error { + r._paramLong = _paramLong + r.Set("param_long", _paramLong) + return nil +} + +// ParamLong Getter +func (r AlibabaFundplatformAccountChargeAPIRequest) GetParamLong() int64 { + return r._paramLong +} +// ParamChargeRequest Setter +// 入参对象 +func (r *AlibabaFundplatformAccountChargeAPIRequest) SetParamChargeRequest(_paramChargeRequest *ChargeRequest) error { + r._paramChargeRequest = _paramChargeRequest + r.Set("param_charge_request", _paramChargeRequest) + return nil +} + +// ParamChargeRequest Getter +func (r AlibabaFundplatformAccountChargeAPIRequest) GetParamChargeRequest() *ChargeRequest { + return r._paramChargeRequest +} diff --git a/model/fundplatform/AlibabaFundplatformAccountChargeAPIResponse.go b/model/fundplatform/AlibabaFundplatformAccountChargeAPIResponse.go new file mode 100644 index 0000000000..06fda1d34b --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformAccountChargeAPIResponse.go @@ -0,0 +1,27 @@ +package fundplatform + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +资金平台余额账户充值 API返回值 +alibaba.fundplatform.account.charge + +资金平台余额账户充值【创建账户&返回付款URL】 +*/ +type AlibabaFundplatformAccountChargeAPIResponse struct { + model.CommonResponse + AlibabaFundplatformAccountChargeAPIResponseModel +} + +// 资金平台余额账户充值 成功返回结果 +type AlibabaFundplatformAccountChargeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fundplatform_account_charge_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultSupport `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fundplatform/AlibabaFundplatformAccountChargeNotifyAPIRequest.go b/model/fundplatform/AlibabaFundplatformAccountChargeNotifyAPIRequest.go new file mode 100644 index 0000000000..7595cdd670 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformAccountChargeNotifyAPIRequest.go @@ -0,0 +1,52 @@ +package fundplatform + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +账户充值成功通知 API请求 +alibaba.fundplatform.account.charge.notify + +通知外部业务方充值成功 +*/ +type AlibabaFundplatformAccountChargeNotifyAPIRequest struct { + model.Params + // 入参对象 + _request *AlibabaFundplatformAccountChargeNotifyStruct +} + +// 初始化AlibabaFundplatformAccountChargeNotifyAPIRequest对象 +func NewAlibabaFundplatformAccountChargeNotifyRequest() *AlibabaFundplatformAccountChargeNotifyAPIRequest{ + return &AlibabaFundplatformAccountChargeNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFundplatformAccountChargeNotifyAPIRequest) GetApiMethodName() string { + return "alibaba.fundplatform.account.charge.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFundplatformAccountChargeNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// 入参对象 +func (r *AlibabaFundplatformAccountChargeNotifyAPIRequest) SetRequest(_request *AlibabaFundplatformAccountChargeNotifyStruct) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r AlibabaFundplatformAccountChargeNotifyAPIRequest) GetRequest() *AlibabaFundplatformAccountChargeNotifyStruct { + return r._request +} diff --git a/model/fundplatform/AlibabaFundplatformAccountChargeNotifyAPIResponse.go b/model/fundplatform/AlibabaFundplatformAccountChargeNotifyAPIResponse.go new file mode 100644 index 0000000000..ac9b9e8ab8 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformAccountChargeNotifyAPIResponse.go @@ -0,0 +1,31 @@ +package fundplatform + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +账户充值成功通知 API返回值 +alibaba.fundplatform.account.charge.notify + +通知外部业务方充值成功 +*/ +type AlibabaFundplatformAccountChargeNotifyAPIResponse struct { + model.CommonResponse + AlibabaFundplatformAccountChargeNotifyAPIResponseModel +} + +// 账户充值成功通知 成功返回结果 +type AlibabaFundplatformAccountChargeNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fundplatform_account_charge_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 处理消息 + ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"` + // 处理错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 处理结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/fundplatform/AlibabaFundplatformAccountChargeNotifyResponse.go b/model/fundplatform/AlibabaFundplatformAccountChargeNotifyResponse.go deleted file mode 100644 index b247f0199e..0000000000 --- a/model/fundplatform/AlibabaFundplatformAccountChargeNotifyResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package fundplatform - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -账户充值成功通知 API返回值 -alibaba.fundplatform.account.charge.notify - -通知外部业务方充值成功 -*/ -type AlibabaFundplatformAccountChargeNotifyAPIResponse struct { - model.CommonResponse - AlibabaFundplatformAccountChargeNotifyResponse -} - -// 账户充值成功通知 成功返回结果 -type AlibabaFundplatformAccountChargeNotifyResponse struct { - XMLName xml.Name `xml:"alibaba_fundplatform_account_charge_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 处理消息 - ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"` - // 处理错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 处理结果 - Success bool `json:"success,omitempty" xml:"success,omitempty"` -} diff --git a/model/fundplatform/AlibabaFundplatformAccountChargeResponse.go b/model/fundplatform/AlibabaFundplatformAccountChargeResponse.go deleted file mode 100644 index 47863cf335..0000000000 --- a/model/fundplatform/AlibabaFundplatformAccountChargeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fundplatform - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -资金平台余额账户充值 API返回值 -alibaba.fundplatform.account.charge - -资金平台余额账户充值【创建账户&返回付款URL】 -*/ -type AlibabaFundplatformAccountChargeAPIResponse struct { - model.CommonResponse - AlibabaFundplatformAccountChargeResponse -} - -// 资金平台余额账户充值 成功返回结果 -type AlibabaFundplatformAccountChargeResponse struct { - XMLName xml.Name `xml:"alibaba_fundplatform_account_charge_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultSupport `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fundplatform/AlibabaFundplatformAccountJourQueryInfoAPIRequest.go b/model/fundplatform/AlibabaFundplatformAccountJourQueryInfoAPIRequest.go new file mode 100644 index 0000000000..d5e805d3b6 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformAccountJourQueryInfoAPIRequest.go @@ -0,0 +1,52 @@ +package fundplatform + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询账户流水信息 API请求 +alibaba.fundplatform.account.jour.query.info + +外部查询账户流水信息 +*/ +type AlibabaFundplatformAccountJourQueryInfoAPIRequest struct { + model.Params + // 入参对象 + _paramFundAccountJournalQueryReq *FundAccountJournalQueryReq +} + +// 初始化AlibabaFundplatformAccountJourQueryInfoAPIRequest对象 +func NewAlibabaFundplatformAccountJourQueryInfoRequest() *AlibabaFundplatformAccountJourQueryInfoAPIRequest{ + return &AlibabaFundplatformAccountJourQueryInfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFundplatformAccountJourQueryInfoAPIRequest) GetApiMethodName() string { + return "alibaba.fundplatform.account.jour.query.info" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFundplatformAccountJourQueryInfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamFundAccountJournalQueryReq Setter +// 入参对象 +func (r *AlibabaFundplatformAccountJourQueryInfoAPIRequest) SetParamFundAccountJournalQueryReq(_paramFundAccountJournalQueryReq *FundAccountJournalQueryReq) error { + r._paramFundAccountJournalQueryReq = _paramFundAccountJournalQueryReq + r.Set("param_fund_account_journal_query_req", _paramFundAccountJournalQueryReq) + return nil +} + +// ParamFundAccountJournalQueryReq Getter +func (r AlibabaFundplatformAccountJourQueryInfoAPIRequest) GetParamFundAccountJournalQueryReq() *FundAccountJournalQueryReq { + return r._paramFundAccountJournalQueryReq +} diff --git a/model/fundplatform/AlibabaFundplatformAccountJourQueryInfoAPIResponse.go b/model/fundplatform/AlibabaFundplatformAccountJourQueryInfoAPIResponse.go new file mode 100644 index 0000000000..fd8d50cd6d --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformAccountJourQueryInfoAPIResponse.go @@ -0,0 +1,27 @@ +package fundplatform + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询账户流水信息 API返回值 +alibaba.fundplatform.account.jour.query.info + +外部查询账户流水信息 +*/ +type AlibabaFundplatformAccountJourQueryInfoAPIResponse struct { + model.CommonResponse + AlibabaFundplatformAccountJourQueryInfoAPIResponseModel +} + +// 查询账户流水信息 成功返回结果 +type AlibabaFundplatformAccountJourQueryInfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fundplatform_account_jour_query_info_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultSupport `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fundplatform/AlibabaFundplatformAccountJourQueryInfoResponse.go b/model/fundplatform/AlibabaFundplatformAccountJourQueryInfoResponse.go deleted file mode 100644 index 93feac8a76..0000000000 --- a/model/fundplatform/AlibabaFundplatformAccountJourQueryInfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fundplatform - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询账户流水信息 API返回值 -alibaba.fundplatform.account.jour.query.info - -外部查询账户流水信息 -*/ -type AlibabaFundplatformAccountJourQueryInfoAPIResponse struct { - model.CommonResponse - AlibabaFundplatformAccountJourQueryInfoResponse -} - -// 查询账户流水信息 成功返回结果 -type AlibabaFundplatformAccountJourQueryInfoResponse struct { - XMLName xml.Name `xml:"alibaba_fundplatform_account_jour_query_info_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultSupport `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fundplatform/AlibabaFundplatformAccountQueryInfoAPIRequest.go b/model/fundplatform/AlibabaFundplatformAccountQueryInfoAPIRequest.go new file mode 100644 index 0000000000..f0e6f1a177 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformAccountQueryInfoAPIRequest.go @@ -0,0 +1,52 @@ +package fundplatform + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询账户信息 API请求 +alibaba.fundplatform.account.query.info + +外部查询资金平台用户账户信息 +*/ +type AlibabaFundplatformAccountQueryInfoAPIRequest struct { + model.Params + // 账户ID + _accountId int64 +} + +// 初始化AlibabaFundplatformAccountQueryInfoAPIRequest对象 +func NewAlibabaFundplatformAccountQueryInfoRequest() *AlibabaFundplatformAccountQueryInfoAPIRequest{ + return &AlibabaFundplatformAccountQueryInfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFundplatformAccountQueryInfoAPIRequest) GetApiMethodName() string { + return "alibaba.fundplatform.account.query.info" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFundplatformAccountQueryInfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccountId Setter +// 账户ID +func (r *AlibabaFundplatformAccountQueryInfoAPIRequest) SetAccountId(_accountId int64) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r AlibabaFundplatformAccountQueryInfoAPIRequest) GetAccountId() int64 { + return r._accountId +} diff --git a/model/fundplatform/AlibabaFundplatformAccountQueryInfoAPIResponse.go b/model/fundplatform/AlibabaFundplatformAccountQueryInfoAPIResponse.go new file mode 100644 index 0000000000..92ad022dba --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformAccountQueryInfoAPIResponse.go @@ -0,0 +1,27 @@ +package fundplatform + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询账户信息 API返回值 +alibaba.fundplatform.account.query.info + +外部查询资金平台用户账户信息 +*/ +type AlibabaFundplatformAccountQueryInfoAPIResponse struct { + model.CommonResponse + AlibabaFundplatformAccountQueryInfoAPIResponseModel +} + +// 查询账户信息 成功返回结果 +type AlibabaFundplatformAccountQueryInfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fundplatform_account_query_info_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参对象 + Result *ResultSupport `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fundplatform/AlibabaFundplatformAccountQueryInfoResponse.go b/model/fundplatform/AlibabaFundplatformAccountQueryInfoResponse.go deleted file mode 100644 index a65c0b6377..0000000000 --- a/model/fundplatform/AlibabaFundplatformAccountQueryInfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fundplatform - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询账户信息 API返回值 -alibaba.fundplatform.account.query.info - -外部查询资金平台用户账户信息 -*/ -type AlibabaFundplatformAccountQueryInfoAPIResponse struct { - model.CommonResponse - AlibabaFundplatformAccountQueryInfoResponse -} - -// 查询账户信息 成功返回结果 -type AlibabaFundplatformAccountQueryInfoResponse struct { - XMLName xml.Name `xml:"alibaba_fundplatform_account_query_info_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参对象 - Result *ResultSupport `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fundplatform/AlibabaFundplatformCardTemplateNewAPIRequest.go b/model/fundplatform/AlibabaFundplatformCardTemplateNewAPIRequest.go new file mode 100644 index 0000000000..7dc855698f --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardTemplateNewAPIRequest.go @@ -0,0 +1,122 @@ +package fundplatform + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增实体卡模板 API请求 +alibaba.fundplatform.card.template.new + +该接口由制卡商实现,当新增一个实体卡模板的时候,需要调用该接口,通知制卡商同步新增卡模板信息。 +*/ +type AlibabaFundplatformCardTemplateNewAPIRequest struct { + model.Params + // 卡模板编号 + _templateNo string + // 该模板生成的卡名称 + _cardName string + // 卡面额,单元分 + _parValue string + // 卡外观图片地址 + _pictureUrl string + // 是否为测试卡模板,true表示是,如果是测试卡模板则请求制卡时无需真正去制作实体卡 + _isTest bool + // 环境变量值,该字段为枚举值:daily(日常),pre(预发),online(线上) + _ownSign string +} + +// 初始化AlibabaFundplatformCardTemplateNewAPIRequest对象 +func NewAlibabaFundplatformCardTemplateNewRequest() *AlibabaFundplatformCardTemplateNewAPIRequest{ + return &AlibabaFundplatformCardTemplateNewAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFundplatformCardTemplateNewAPIRequest) GetApiMethodName() string { + return "alibaba.fundplatform.card.template.new" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFundplatformCardTemplateNewAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TemplateNo Setter +// 卡模板编号 +func (r *AlibabaFundplatformCardTemplateNewAPIRequest) SetTemplateNo(_templateNo string) error { + r._templateNo = _templateNo + r.Set("template_no", _templateNo) + return nil +} + +// TemplateNo Getter +func (r AlibabaFundplatformCardTemplateNewAPIRequest) GetTemplateNo() string { + return r._templateNo +} +// CardName Setter +// 该模板生成的卡名称 +func (r *AlibabaFundplatformCardTemplateNewAPIRequest) SetCardName(_cardName string) error { + r._cardName = _cardName + r.Set("card_name", _cardName) + return nil +} + +// CardName Getter +func (r AlibabaFundplatformCardTemplateNewAPIRequest) GetCardName() string { + return r._cardName +} +// ParValue Setter +// 卡面额,单元分 +func (r *AlibabaFundplatformCardTemplateNewAPIRequest) SetParValue(_parValue string) error { + r._parValue = _parValue + r.Set("par_value", _parValue) + return nil +} + +// ParValue Getter +func (r AlibabaFundplatformCardTemplateNewAPIRequest) GetParValue() string { + return r._parValue +} +// PictureUrl Setter +// 卡外观图片地址 +func (r *AlibabaFundplatformCardTemplateNewAPIRequest) SetPictureUrl(_pictureUrl string) error { + r._pictureUrl = _pictureUrl + r.Set("picture_url", _pictureUrl) + return nil +} + +// PictureUrl Getter +func (r AlibabaFundplatformCardTemplateNewAPIRequest) GetPictureUrl() string { + return r._pictureUrl +} +// IsTest Setter +// 是否为测试卡模板,true表示是,如果是测试卡模板则请求制卡时无需真正去制作实体卡 +func (r *AlibabaFundplatformCardTemplateNewAPIRequest) SetIsTest(_isTest bool) error { + r._isTest = _isTest + r.Set("is_test", _isTest) + return nil +} + +// IsTest Getter +func (r AlibabaFundplatformCardTemplateNewAPIRequest) GetIsTest() bool { + return r._isTest +} +// OwnSign Setter +// 环境变量值,该字段为枚举值:daily(日常),pre(预发),online(线上) +func (r *AlibabaFundplatformCardTemplateNewAPIRequest) SetOwnSign(_ownSign string) error { + r._ownSign = _ownSign + r.Set("own_sign", _ownSign) + return nil +} + +// OwnSign Getter +func (r AlibabaFundplatformCardTemplateNewAPIRequest) GetOwnSign() string { + return r._ownSign +} diff --git a/model/fundplatform/AlibabaFundplatformCardTemplateNewAPIResponse.go b/model/fundplatform/AlibabaFundplatformCardTemplateNewAPIResponse.go new file mode 100644 index 0000000000..8312661cfb --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardTemplateNewAPIResponse.go @@ -0,0 +1,31 @@ +package fundplatform + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增实体卡模板 API返回值 +alibaba.fundplatform.card.template.new + +该接口由制卡商实现,当新增一个实体卡模板的时候,需要调用该接口,通知制卡商同步新增卡模板信息。 +*/ +type AlibabaFundplatformCardTemplateNewAPIResponse struct { + model.CommonResponse + AlibabaFundplatformCardTemplateNewAPIResponseModel +} + +// 新增实体卡模板 成功返回结果 +type AlibabaFundplatformCardTemplateNewAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fundplatform_card_template_new_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误详情 + ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"` + // 错误CODE + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 是否调用成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/fundplatform/AlibabaFundplatformCardTemplateNewResponse.go b/model/fundplatform/AlibabaFundplatformCardTemplateNewResponse.go deleted file mode 100644 index 65c41b8c82..0000000000 --- a/model/fundplatform/AlibabaFundplatformCardTemplateNewResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package fundplatform - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增实体卡模板 API返回值 -alibaba.fundplatform.card.template.new - -该接口由制卡商实现,当新增一个实体卡模板的时候,需要调用该接口,通知制卡商同步新增卡模板信息。 -*/ -type AlibabaFundplatformCardTemplateNewAPIResponse struct { - model.CommonResponse - AlibabaFundplatformCardTemplateNewResponse -} - -// 新增实体卡模板 成功返回结果 -type AlibabaFundplatformCardTemplateNewResponse struct { - XMLName xml.Name `xml:"alibaba_fundplatform_card_template_new_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误详情 - ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"` - // 错误CODE - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 是否调用成功 - Success bool `json:"success,omitempty" xml:"success,omitempty"` -} diff --git a/model/fundplatform/AlibabaFundplatformCardorderCardActiveAPIRequest.go b/model/fundplatform/AlibabaFundplatformCardorderCardActiveAPIRequest.go new file mode 100644 index 0000000000..a6d1e69813 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardorderCardActiveAPIRequest.go @@ -0,0 +1,53 @@ +package fundplatform + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +储值卡激活 API请求 +alibaba.fundplatform.cardorder.card.active + +储值卡接货接口,可以通过外部订单号或者卡号进行批量激活。如果储值卡已经被激活过仍然幂等返回成功。资金平台保证批量激活时一定全部成功或全部失败。 +如果批量激活储值卡时,如果部分储值卡处于已激活,部分储值卡处于未激活,则会返回失败 +*/ +type AlibabaFundplatformCardorderCardActiveAPIRequest struct { + model.Params + // 入参对象 + _paramCardActiveRequest *CardActiveRequest +} + +// 初始化AlibabaFundplatformCardorderCardActiveAPIRequest对象 +func NewAlibabaFundplatformCardorderCardActiveRequest() *AlibabaFundplatformCardorderCardActiveAPIRequest{ + return &AlibabaFundplatformCardorderCardActiveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFundplatformCardorderCardActiveAPIRequest) GetApiMethodName() string { + return "alibaba.fundplatform.cardorder.card.active" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFundplatformCardorderCardActiveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCardActiveRequest Setter +// 入参对象 +func (r *AlibabaFundplatformCardorderCardActiveAPIRequest) SetParamCardActiveRequest(_paramCardActiveRequest *CardActiveRequest) error { + r._paramCardActiveRequest = _paramCardActiveRequest + r.Set("param_card_active_request", _paramCardActiveRequest) + return nil +} + +// ParamCardActiveRequest Getter +func (r AlibabaFundplatformCardorderCardActiveAPIRequest) GetParamCardActiveRequest() *CardActiveRequest { + return r._paramCardActiveRequest +} diff --git a/model/fundplatform/AlibabaFundplatformCardorderCardActiveAPIResponse.go b/model/fundplatform/AlibabaFundplatformCardorderCardActiveAPIResponse.go new file mode 100644 index 0000000000..a1355c6c70 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardorderCardActiveAPIResponse.go @@ -0,0 +1,28 @@ +package fundplatform + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +储值卡激活 API返回值 +alibaba.fundplatform.cardorder.card.active + +储值卡接货接口,可以通过外部订单号或者卡号进行批量激活。如果储值卡已经被激活过仍然幂等返回成功。资金平台保证批量激活时一定全部成功或全部失败。 +如果批量激活储值卡时,如果部分储值卡处于已激活,部分储值卡处于未激活,则会返回失败 +*/ +type AlibabaFundplatformCardorderCardActiveAPIResponse struct { + model.CommonResponse + AlibabaFundplatformCardorderCardActiveAPIResponseModel +} + +// 储值卡激活 成功返回结果 +type AlibabaFundplatformCardorderCardActiveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fundplatform_cardorder_card_active_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参对象 + Result *CardActiveResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fundplatform/AlibabaFundplatformCardorderCardActiveResponse.go b/model/fundplatform/AlibabaFundplatformCardorderCardActiveResponse.go deleted file mode 100644 index 225100467d..0000000000 --- a/model/fundplatform/AlibabaFundplatformCardorderCardActiveResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package fundplatform - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -储值卡激活 API返回值 -alibaba.fundplatform.cardorder.card.active - -储值卡接货接口,可以通过外部订单号或者卡号进行批量激活。如果储值卡已经被激活过仍然幂等返回成功。资金平台保证批量激活时一定全部成功或全部失败。 -如果批量激活储值卡时,如果部分储值卡处于已激活,部分储值卡处于未激活,则会返回失败 -*/ -type AlibabaFundplatformCardorderCardActiveAPIResponse struct { - model.CommonResponse - AlibabaFundplatformCardorderCardActiveResponse -} - -// 储值卡激活 成功返回结果 -type AlibabaFundplatformCardorderCardActiveResponse struct { - XMLName xml.Name `xml:"alibaba_fundplatform_cardorder_card_active_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参对象 - Result *CardActiveResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fundplatform/AlibabaFundplatformCardorderFetchCardAsyncAPIRequest.go b/model/fundplatform/AlibabaFundplatformCardorderFetchCardAsyncAPIRequest.go new file mode 100644 index 0000000000..c395a5d0f9 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardorderFetchCardAsyncAPIRequest.go @@ -0,0 +1,52 @@ +package fundplatform + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +异步批量生成储值卡 API请求 +alibaba.fundplatform.cardorder.fetch.card.async + +外部业务方异步批量生成储值卡的接口。同步只返回接受成功,异步会通知制卡成功 +*/ +type AlibabaFundplatformCardorderFetchCardAsyncAPIRequest struct { + model.Params + // 入参复杂对象 + _paramCardFetchAsyncRequest *CardFetchAsyncRequest +} + +// 初始化AlibabaFundplatformCardorderFetchCardAsyncAPIRequest对象 +func NewAlibabaFundplatformCardorderFetchCardAsyncRequest() *AlibabaFundplatformCardorderFetchCardAsyncAPIRequest{ + return &AlibabaFundplatformCardorderFetchCardAsyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFundplatformCardorderFetchCardAsyncAPIRequest) GetApiMethodName() string { + return "alibaba.fundplatform.cardorder.fetch.card.async" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFundplatformCardorderFetchCardAsyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCardFetchAsyncRequest Setter +// 入参复杂对象 +func (r *AlibabaFundplatformCardorderFetchCardAsyncAPIRequest) SetParamCardFetchAsyncRequest(_paramCardFetchAsyncRequest *CardFetchAsyncRequest) error { + r._paramCardFetchAsyncRequest = _paramCardFetchAsyncRequest + r.Set("param_card_fetch_async_request", _paramCardFetchAsyncRequest) + return nil +} + +// ParamCardFetchAsyncRequest Getter +func (r AlibabaFundplatformCardorderFetchCardAsyncAPIRequest) GetParamCardFetchAsyncRequest() *CardFetchAsyncRequest { + return r._paramCardFetchAsyncRequest +} diff --git a/model/fundplatform/AlibabaFundplatformCardorderFetchCardAsyncAPIResponse.go b/model/fundplatform/AlibabaFundplatformCardorderFetchCardAsyncAPIResponse.go new file mode 100644 index 0000000000..39706f2265 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardorderFetchCardAsyncAPIResponse.go @@ -0,0 +1,27 @@ +package fundplatform + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +异步批量生成储值卡 API返回值 +alibaba.fundplatform.cardorder.fetch.card.async + +外部业务方异步批量生成储值卡的接口。同步只返回接受成功,异步会通知制卡成功 +*/ +type AlibabaFundplatformCardorderFetchCardAsyncAPIResponse struct { + model.CommonResponse + AlibabaFundplatformCardorderFetchCardAsyncAPIResponseModel +} + +// 异步批量生成储值卡 成功返回结果 +type AlibabaFundplatformCardorderFetchCardAsyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fundplatform_cardorder_fetch_card_async_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CardFetchAsyncResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fundplatform/AlibabaFundplatformCardorderFetchCardAsyncResponse.go b/model/fundplatform/AlibabaFundplatformCardorderFetchCardAsyncResponse.go deleted file mode 100644 index 0f89f1aa5b..0000000000 --- a/model/fundplatform/AlibabaFundplatformCardorderFetchCardAsyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fundplatform - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -异步批量生成储值卡 API返回值 -alibaba.fundplatform.cardorder.fetch.card.async - -外部业务方异步批量生成储值卡的接口。同步只返回接受成功,异步会通知制卡成功 -*/ -type AlibabaFundplatformCardorderFetchCardAsyncAPIResponse struct { - model.CommonResponse - AlibabaFundplatformCardorderFetchCardAsyncResponse -} - -// 异步批量生成储值卡 成功返回结果 -type AlibabaFundplatformCardorderFetchCardAsyncResponse struct { - XMLName xml.Name `xml:"alibaba_fundplatform_cardorder_fetch_card_async_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CardFetchAsyncResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fundplatform/AlibabaFundplatformCardorderMakeAPIRequest.go b/model/fundplatform/AlibabaFundplatformCardorderMakeAPIRequest.go new file mode 100644 index 0000000000..d4d68f2be5 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardorderMakeAPIRequest.go @@ -0,0 +1,94 @@ +package fundplatform + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通知制卡商制卡 API请求 +alibaba.fundplatform.cardorder.make + +该接口由内部定义,外部制卡商实现。当需要制卡商进行制卡操作时,将会调用该接口。 +*/ +type AlibabaFundplatformCardorderMakeAPIRequest struct { + model.Params + // 物流信息 + _logisticsInfo *AlibabaFundplatformCardorderMakeStruct + // 卡模板信息列表 + _cardProductInfos []AlibabaFundplatformCardorderMakeStruct + // 子制卡单ID + _cardOrderId int64 + // 环境变量值,该字段为枚举值:daily(日常),pre(预发),online(线上) + _ownSign string +} + +// 初始化AlibabaFundplatformCardorderMakeAPIRequest对象 +func NewAlibabaFundplatformCardorderMakeRequest() *AlibabaFundplatformCardorderMakeAPIRequest{ + return &AlibabaFundplatformCardorderMakeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFundplatformCardorderMakeAPIRequest) GetApiMethodName() string { + return "alibaba.fundplatform.cardorder.make" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFundplatformCardorderMakeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LogisticsInfo Setter +// 物流信息 +func (r *AlibabaFundplatformCardorderMakeAPIRequest) SetLogisticsInfo(_logisticsInfo *AlibabaFundplatformCardorderMakeStruct) error { + r._logisticsInfo = _logisticsInfo + r.Set("logistics_info", _logisticsInfo) + return nil +} + +// LogisticsInfo Getter +func (r AlibabaFundplatformCardorderMakeAPIRequest) GetLogisticsInfo() *AlibabaFundplatformCardorderMakeStruct { + return r._logisticsInfo +} +// CardProductInfos Setter +// 卡模板信息列表 +func (r *AlibabaFundplatformCardorderMakeAPIRequest) SetCardProductInfos(_cardProductInfos []AlibabaFundplatformCardorderMakeStruct) error { + r._cardProductInfos = _cardProductInfos + r.Set("card_product_infos", _cardProductInfos) + return nil +} + +// CardProductInfos Getter +func (r AlibabaFundplatformCardorderMakeAPIRequest) GetCardProductInfos() []AlibabaFundplatformCardorderMakeStruct { + return r._cardProductInfos +} +// CardOrderId Setter +// 子制卡单ID +func (r *AlibabaFundplatformCardorderMakeAPIRequest) SetCardOrderId(_cardOrderId int64) error { + r._cardOrderId = _cardOrderId + r.Set("card_order_id", _cardOrderId) + return nil +} + +// CardOrderId Getter +func (r AlibabaFundplatformCardorderMakeAPIRequest) GetCardOrderId() int64 { + return r._cardOrderId +} +// OwnSign Setter +// 环境变量值,该字段为枚举值:daily(日常),pre(预发),online(线上) +func (r *AlibabaFundplatformCardorderMakeAPIRequest) SetOwnSign(_ownSign string) error { + r._ownSign = _ownSign + r.Set("own_sign", _ownSign) + return nil +} + +// OwnSign Getter +func (r AlibabaFundplatformCardorderMakeAPIRequest) GetOwnSign() string { + return r._ownSign +} diff --git a/model/fundplatform/AlibabaFundplatformCardorderMakeAPIResponse.go b/model/fundplatform/AlibabaFundplatformCardorderMakeAPIResponse.go new file mode 100644 index 0000000000..725430300a --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardorderMakeAPIResponse.go @@ -0,0 +1,27 @@ +package fundplatform + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通知制卡商制卡 API返回值 +alibaba.fundplatform.cardorder.make + +该接口由内部定义,外部制卡商实现。当需要制卡商进行制卡操作时,将会调用该接口。 +*/ +type AlibabaFundplatformCardorderMakeAPIResponse struct { + model.CommonResponse + AlibabaFundplatformCardorderMakeAPIResponseModel +} + +// 通知制卡商制卡 成功返回结果 +type AlibabaFundplatformCardorderMakeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fundplatform_cardorder_make_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结构体 + Response *AlibabaFundplatformCardorderMakeStruct `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/fundplatform/AlibabaFundplatformCardorderMakeResponse.go b/model/fundplatform/AlibabaFundplatformCardorderMakeResponse.go deleted file mode 100644 index ca9ff383fe..0000000000 --- a/model/fundplatform/AlibabaFundplatformCardorderMakeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fundplatform - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通知制卡商制卡 API返回值 -alibaba.fundplatform.cardorder.make - -该接口由内部定义,外部制卡商实现。当需要制卡商进行制卡操作时,将会调用该接口。 -*/ -type AlibabaFundplatformCardorderMakeAPIResponse struct { - model.CommonResponse - AlibabaFundplatformCardorderMakeResponse -} - -// 通知制卡商制卡 成功返回结果 -type AlibabaFundplatformCardorderMakeResponse struct { - XMLName xml.Name `xml:"alibaba_fundplatform_cardorder_make_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结构体 - Response *AlibabaFundplatformCardorderMakeStruct `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/fundplatform/AlibabaFundplatformCardorderMakeSuccessAPIRequest.go b/model/fundplatform/AlibabaFundplatformCardorderMakeSuccessAPIRequest.go new file mode 100644 index 0000000000..a53b20dc4e --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardorderMakeSuccessAPIRequest.go @@ -0,0 +1,52 @@ +package fundplatform + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通知制卡成功 API请求 +alibaba.fundplatform.cardorder.make.success + +当外部业务方调用资金平台异步制卡接口后,资金平台制卡成功后通知异步通知业务方 +*/ +type AlibabaFundplatformCardorderMakeSuccessAPIRequest struct { + model.Params + // 入参对象 + _request *AlibabaFundplatformCardorderMakeSuccessStruct +} + +// 初始化AlibabaFundplatformCardorderMakeSuccessAPIRequest对象 +func NewAlibabaFundplatformCardorderMakeSuccessRequest() *AlibabaFundplatformCardorderMakeSuccessAPIRequest{ + return &AlibabaFundplatformCardorderMakeSuccessAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFundplatformCardorderMakeSuccessAPIRequest) GetApiMethodName() string { + return "alibaba.fundplatform.cardorder.make.success" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFundplatformCardorderMakeSuccessAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// 入参对象 +func (r *AlibabaFundplatformCardorderMakeSuccessAPIRequest) SetRequest(_request *AlibabaFundplatformCardorderMakeSuccessStruct) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r AlibabaFundplatformCardorderMakeSuccessAPIRequest) GetRequest() *AlibabaFundplatformCardorderMakeSuccessStruct { + return r._request +} diff --git a/model/fundplatform/AlibabaFundplatformCardorderMakeSuccessAPIResponse.go b/model/fundplatform/AlibabaFundplatformCardorderMakeSuccessAPIResponse.go new file mode 100644 index 0000000000..efb1a38f68 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardorderMakeSuccessAPIResponse.go @@ -0,0 +1,31 @@ +package fundplatform + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通知制卡成功 API返回值 +alibaba.fundplatform.cardorder.make.success + +当外部业务方调用资金平台异步制卡接口后,资金平台制卡成功后通知异步通知业务方 +*/ +type AlibabaFundplatformCardorderMakeSuccessAPIResponse struct { + model.CommonResponse + AlibabaFundplatformCardorderMakeSuccessAPIResponseModel +} + +// 通知制卡成功 成功返回结果 +type AlibabaFundplatformCardorderMakeSuccessAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fundplatform_cardorder_make_success_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误详情 + ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"` + // 错误CODE + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 是否调用成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/fundplatform/AlibabaFundplatformCardorderMakeSuccessResponse.go b/model/fundplatform/AlibabaFundplatformCardorderMakeSuccessResponse.go deleted file mode 100644 index 084122fd78..0000000000 --- a/model/fundplatform/AlibabaFundplatformCardorderMakeSuccessResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package fundplatform - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通知制卡成功 API返回值 -alibaba.fundplatform.cardorder.make.success - -当外部业务方调用资金平台异步制卡接口后,资金平台制卡成功后通知异步通知业务方 -*/ -type AlibabaFundplatformCardorderMakeSuccessAPIResponse struct { - model.CommonResponse - AlibabaFundplatformCardorderMakeSuccessResponse -} - -// 通知制卡成功 成功返回结果 -type AlibabaFundplatformCardorderMakeSuccessResponse struct { - XMLName xml.Name `xml:"alibaba_fundplatform_cardorder_make_success_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误详情 - ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"` - // 错误CODE - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 是否调用成功 - Success bool `json:"success,omitempty" xml:"success,omitempty"` -} diff --git a/model/fundplatform/AlibabaFundplatformCardorderReceiptAPIRequest.go b/model/fundplatform/AlibabaFundplatformCardorderReceiptAPIRequest.go new file mode 100644 index 0000000000..458c3fa795 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardorderReceiptAPIRequest.go @@ -0,0 +1,66 @@ +package fundplatform + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通知确认收货 API请求 +alibaba.fundplatform.cardorder.receipt + +告知卡商这一批储值卡已经被用户确认收货 +*/ +type AlibabaFundplatformCardorderReceiptAPIRequest struct { + model.Params + // 通知制卡成功的子卡子单号 + _cardOrderId int64 + // 环境变量值,该字段为枚举值:daily(日常),pre(预发),online(线上) + _ownSign string +} + +// 初始化AlibabaFundplatformCardorderReceiptAPIRequest对象 +func NewAlibabaFundplatformCardorderReceiptRequest() *AlibabaFundplatformCardorderReceiptAPIRequest{ + return &AlibabaFundplatformCardorderReceiptAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFundplatformCardorderReceiptAPIRequest) GetApiMethodName() string { + return "alibaba.fundplatform.cardorder.receipt" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFundplatformCardorderReceiptAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CardOrderId Setter +// 通知制卡成功的子卡子单号 +func (r *AlibabaFundplatformCardorderReceiptAPIRequest) SetCardOrderId(_cardOrderId int64) error { + r._cardOrderId = _cardOrderId + r.Set("card_order_id", _cardOrderId) + return nil +} + +// CardOrderId Getter +func (r AlibabaFundplatformCardorderReceiptAPIRequest) GetCardOrderId() int64 { + return r._cardOrderId +} +// OwnSign Setter +// 环境变量值,该字段为枚举值:daily(日常),pre(预发),online(线上) +func (r *AlibabaFundplatformCardorderReceiptAPIRequest) SetOwnSign(_ownSign string) error { + r._ownSign = _ownSign + r.Set("own_sign", _ownSign) + return nil +} + +// OwnSign Getter +func (r AlibabaFundplatformCardorderReceiptAPIRequest) GetOwnSign() string { + return r._ownSign +} diff --git a/model/fundplatform/AlibabaFundplatformCardorderReceiptAPIResponse.go b/model/fundplatform/AlibabaFundplatformCardorderReceiptAPIResponse.go new file mode 100644 index 0000000000..834ffec9b4 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardorderReceiptAPIResponse.go @@ -0,0 +1,31 @@ +package fundplatform + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通知确认收货 API返回值 +alibaba.fundplatform.cardorder.receipt + +告知卡商这一批储值卡已经被用户确认收货 +*/ +type AlibabaFundplatformCardorderReceiptAPIResponse struct { + model.CommonResponse + AlibabaFundplatformCardorderReceiptAPIResponseModel +} + +// 通知确认收货 成功返回结果 +type AlibabaFundplatformCardorderReceiptAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fundplatform_cardorder_receipt_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误详情 + ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"` + // 错误CODE + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 是否调用成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/fundplatform/AlibabaFundplatformCardorderReceiptResponse.go b/model/fundplatform/AlibabaFundplatformCardorderReceiptResponse.go deleted file mode 100644 index 86c5ad2622..0000000000 --- a/model/fundplatform/AlibabaFundplatformCardorderReceiptResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package fundplatform - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通知确认收货 API返回值 -alibaba.fundplatform.cardorder.receipt - -告知卡商这一批储值卡已经被用户确认收货 -*/ -type AlibabaFundplatformCardorderReceiptAPIResponse struct { - model.CommonResponse - AlibabaFundplatformCardorderReceiptResponse -} - -// 通知确认收货 成功返回结果 -type AlibabaFundplatformCardorderReceiptResponse struct { - XMLName xml.Name `xml:"alibaba_fundplatform_cardorder_receipt_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误详情 - ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"` - // 错误CODE - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 是否调用成功 - Success bool `json:"success,omitempty" xml:"success,omitempty"` -} diff --git a/model/fundplatform/AlibabaFundplatformCardorderStatusQueryAPIRequest.go b/model/fundplatform/AlibabaFundplatformCardorderStatusQueryAPIRequest.go new file mode 100644 index 0000000000..de06c1d6ec --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardorderStatusQueryAPIRequest.go @@ -0,0 +1,52 @@ +package fundplatform + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询制卡商制卡进度 API请求 +alibaba.fundplatform.cardorder.status.query + +当通知制卡商进行制卡后,其制卡流程会比较长,若长时间未反馈当前制卡进展,则需要使用该接口来向制卡商发起进度查询。 +*/ +type AlibabaFundplatformCardorderStatusQueryAPIRequest struct { + model.Params + // 请求结构体 + _request *AlibabaFundplatformCardorderStatusQueryStruct +} + +// 初始化AlibabaFundplatformCardorderStatusQueryAPIRequest对象 +func NewAlibabaFundplatformCardorderStatusQueryRequest() *AlibabaFundplatformCardorderStatusQueryAPIRequest{ + return &AlibabaFundplatformCardorderStatusQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFundplatformCardorderStatusQueryAPIRequest) GetApiMethodName() string { + return "alibaba.fundplatform.cardorder.status.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFundplatformCardorderStatusQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// 请求结构体 +func (r *AlibabaFundplatformCardorderStatusQueryAPIRequest) SetRequest(_request *AlibabaFundplatformCardorderStatusQueryStruct) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r AlibabaFundplatformCardorderStatusQueryAPIRequest) GetRequest() *AlibabaFundplatformCardorderStatusQueryStruct { + return r._request +} diff --git a/model/fundplatform/AlibabaFundplatformCardorderStatusQueryAPIResponse.go b/model/fundplatform/AlibabaFundplatformCardorderStatusQueryAPIResponse.go new file mode 100644 index 0000000000..7afe263a92 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardorderStatusQueryAPIResponse.go @@ -0,0 +1,27 @@ +package fundplatform + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询制卡商制卡进度 API返回值 +alibaba.fundplatform.cardorder.status.query + +当通知制卡商进行制卡后,其制卡流程会比较长,若长时间未反馈当前制卡进展,则需要使用该接口来向制卡商发起进度查询。 +*/ +type AlibabaFundplatformCardorderStatusQueryAPIResponse struct { + model.CommonResponse + AlibabaFundplatformCardorderStatusQueryAPIResponseModel +} + +// 查询制卡商制卡进度 成功返回结果 +type AlibabaFundplatformCardorderStatusQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fundplatform_cardorder_status_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结构体 + Response *AlibabaFundplatformCardorderStatusQueryStruct `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/fundplatform/AlibabaFundplatformCardorderStatusQueryResponse.go b/model/fundplatform/AlibabaFundplatformCardorderStatusQueryResponse.go deleted file mode 100644 index 4a5a21ac2d..0000000000 --- a/model/fundplatform/AlibabaFundplatformCardorderStatusQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fundplatform - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询制卡商制卡进度 API返回值 -alibaba.fundplatform.cardorder.status.query - -当通知制卡商进行制卡后,其制卡流程会比较长,若长时间未反馈当前制卡进展,则需要使用该接口来向制卡商发起进度查询。 -*/ -type AlibabaFundplatformCardorderStatusQueryAPIResponse struct { - model.CommonResponse - AlibabaFundplatformCardorderStatusQueryResponse -} - -// 查询制卡商制卡进度 成功返回结果 -type AlibabaFundplatformCardorderStatusQueryResponse struct { - XMLName xml.Name `xml:"alibaba_fundplatform_cardorder_status_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结构体 - Response *AlibabaFundplatformCardorderStatusQueryStruct `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/fundplatform/AlibabaFundplatformCardordersInfoQueryAPIRequest.go b/model/fundplatform/AlibabaFundplatformCardordersInfoQueryAPIRequest.go new file mode 100644 index 0000000000..3398c449cd --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardordersInfoQueryAPIRequest.go @@ -0,0 +1,52 @@ +package fundplatform + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据制卡单分页查询卡信息 API请求 +alibaba.fundplatform.cardorders.info.query + +该接口由汇金实现,外部调用。通过制卡单号分页查询卡信息 +*/ +type AlibabaFundplatformCardordersInfoQueryAPIRequest struct { + model.Params + // 请求结构体 + _parameters *CardMakingInfoQueryRequest +} + +// 初始化AlibabaFundplatformCardordersInfoQueryAPIRequest对象 +func NewAlibabaFundplatformCardordersInfoQueryRequest() *AlibabaFundplatformCardordersInfoQueryAPIRequest{ + return &AlibabaFundplatformCardordersInfoQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFundplatformCardordersInfoQueryAPIRequest) GetApiMethodName() string { + return "alibaba.fundplatform.cardorders.info.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFundplatformCardordersInfoQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Parameters Setter +// 请求结构体 +func (r *AlibabaFundplatformCardordersInfoQueryAPIRequest) SetParameters(_parameters *CardMakingInfoQueryRequest) error { + r._parameters = _parameters + r.Set("parameters", _parameters) + return nil +} + +// Parameters Getter +func (r AlibabaFundplatformCardordersInfoQueryAPIRequest) GetParameters() *CardMakingInfoQueryRequest { + return r._parameters +} diff --git a/model/fundplatform/AlibabaFundplatformCardordersInfoQueryAPIResponse.go b/model/fundplatform/AlibabaFundplatformCardordersInfoQueryAPIResponse.go new file mode 100644 index 0000000000..4ee6dea54e --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardordersInfoQueryAPIResponse.go @@ -0,0 +1,27 @@ +package fundplatform + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据制卡单分页查询卡信息 API返回值 +alibaba.fundplatform.cardorders.info.query + +该接口由汇金实现,外部调用。通过制卡单号分页查询卡信息 +*/ +type AlibabaFundplatformCardordersInfoQueryAPIResponse struct { + model.CommonResponse + AlibabaFundplatformCardordersInfoQueryAPIResponseModel +} + +// 根据制卡单分页查询卡信息 成功返回结果 +type AlibabaFundplatformCardordersInfoQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fundplatform_cardorders_info_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CardMakingInfoQueryResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fundplatform/AlibabaFundplatformCardordersInfoQueryByCardnoAPIRequest.go b/model/fundplatform/AlibabaFundplatformCardordersInfoQueryByCardnoAPIRequest.go new file mode 100644 index 0000000000..8be5ff63f3 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardordersInfoQueryByCardnoAPIRequest.go @@ -0,0 +1,52 @@ +package fundplatform + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过卡号查询卡信息 API请求 +alibaba.fundplatform.cardorders.info.query.by.cardno + +该接口由汇金实现,外部调用。通过制卡单号分页查询卡信息 +*/ +type AlibabaFundplatformCardordersInfoQueryByCardnoAPIRequest struct { + model.Params + // 请求结构体 + _parameters *CardMakingInfoQueryRequest +} + +// 初始化AlibabaFundplatformCardordersInfoQueryByCardnoAPIRequest对象 +func NewAlibabaFundplatformCardordersInfoQueryByCardnoRequest() *AlibabaFundplatformCardordersInfoQueryByCardnoAPIRequest{ + return &AlibabaFundplatformCardordersInfoQueryByCardnoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFundplatformCardordersInfoQueryByCardnoAPIRequest) GetApiMethodName() string { + return "alibaba.fundplatform.cardorders.info.query.by.cardno" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFundplatformCardordersInfoQueryByCardnoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Parameters Setter +// 请求结构体 +func (r *AlibabaFundplatformCardordersInfoQueryByCardnoAPIRequest) SetParameters(_parameters *CardMakingInfoQueryRequest) error { + r._parameters = _parameters + r.Set("parameters", _parameters) + return nil +} + +// Parameters Getter +func (r AlibabaFundplatformCardordersInfoQueryByCardnoAPIRequest) GetParameters() *CardMakingInfoQueryRequest { + return r._parameters +} diff --git a/model/fundplatform/AlibabaFundplatformCardordersInfoQueryByCardnoAPIResponse.go b/model/fundplatform/AlibabaFundplatformCardordersInfoQueryByCardnoAPIResponse.go new file mode 100644 index 0000000000..08acc0bc56 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardordersInfoQueryByCardnoAPIResponse.go @@ -0,0 +1,27 @@ +package fundplatform + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过卡号查询卡信息 API返回值 +alibaba.fundplatform.cardorders.info.query.by.cardno + +该接口由汇金实现,外部调用。通过制卡单号分页查询卡信息 +*/ +type AlibabaFundplatformCardordersInfoQueryByCardnoAPIResponse struct { + model.CommonResponse + AlibabaFundplatformCardordersInfoQueryByCardnoAPIResponseModel +} + +// 通过卡号查询卡信息 成功返回结果 +type AlibabaFundplatformCardordersInfoQueryByCardnoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fundplatform_cardorders_info_query_by_cardno_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CardMakingInfoQueryResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fundplatform/AlibabaFundplatformCardordersInfoQueryByCardnoResponse.go b/model/fundplatform/AlibabaFundplatformCardordersInfoQueryByCardnoResponse.go deleted file mode 100644 index 3166e1fd6e..0000000000 --- a/model/fundplatform/AlibabaFundplatformCardordersInfoQueryByCardnoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fundplatform - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过卡号查询卡信息 API返回值 -alibaba.fundplatform.cardorders.info.query.by.cardno - -该接口由汇金实现,外部调用。通过制卡单号分页查询卡信息 -*/ -type AlibabaFundplatformCardordersInfoQueryByCardnoAPIResponse struct { - model.CommonResponse - AlibabaFundplatformCardordersInfoQueryByCardnoResponse -} - -// 通过卡号查询卡信息 成功返回结果 -type AlibabaFundplatformCardordersInfoQueryByCardnoResponse struct { - XMLName xml.Name `xml:"alibaba_fundplatform_cardorders_info_query_by_cardno_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CardMakingInfoQueryResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fundplatform/AlibabaFundplatformCardordersInfoQueryResponse.go b/model/fundplatform/AlibabaFundplatformCardordersInfoQueryResponse.go deleted file mode 100644 index 4b3b1c4659..0000000000 --- a/model/fundplatform/AlibabaFundplatformCardordersInfoQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fundplatform - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据制卡单分页查询卡信息 API返回值 -alibaba.fundplatform.cardorders.info.query - -该接口由汇金实现,外部调用。通过制卡单号分页查询卡信息 -*/ -type AlibabaFundplatformCardordersInfoQueryAPIResponse struct { - model.CommonResponse - AlibabaFundplatformCardordersInfoQueryResponse -} - -// 根据制卡单分页查询卡信息 成功返回结果 -type AlibabaFundplatformCardordersInfoQueryResponse struct { - XMLName xml.Name `xml:"alibaba_fundplatform_cardorders_info_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CardMakingInfoQueryResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fundplatform/AlibabaFundplatformCardordersStatusMakeFinishAPIRequest.go b/model/fundplatform/AlibabaFundplatformCardordersStatusMakeFinishAPIRequest.go new file mode 100644 index 0000000000..f6206d4f52 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardordersStatusMakeFinishAPIRequest.go @@ -0,0 +1,52 @@ +package fundplatform + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +制卡商通知制卡完成 API请求 +alibaba.fundplatform.cardorders.status.make.finish + +当制卡完成后,制卡商需要调用该接口,通知我们制卡已完成。 +*/ +type AlibabaFundplatformCardordersStatusMakeFinishAPIRequest struct { + model.Params + // 子制卡单ID + _cardOrderId int64 +} + +// 初始化AlibabaFundplatformCardordersStatusMakeFinishAPIRequest对象 +func NewAlibabaFundplatformCardordersStatusMakeFinishRequest() *AlibabaFundplatformCardordersStatusMakeFinishAPIRequest{ + return &AlibabaFundplatformCardordersStatusMakeFinishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFundplatformCardordersStatusMakeFinishAPIRequest) GetApiMethodName() string { + return "alibaba.fundplatform.cardorders.status.make.finish" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFundplatformCardordersStatusMakeFinishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CardOrderId Setter +// 子制卡单ID +func (r *AlibabaFundplatformCardordersStatusMakeFinishAPIRequest) SetCardOrderId(_cardOrderId int64) error { + r._cardOrderId = _cardOrderId + r.Set("card_order_id", _cardOrderId) + return nil +} + +// CardOrderId Getter +func (r AlibabaFundplatformCardordersStatusMakeFinishAPIRequest) GetCardOrderId() int64 { + return r._cardOrderId +} diff --git a/model/fundplatform/AlibabaFundplatformCardordersStatusMakeFinishAPIResponse.go b/model/fundplatform/AlibabaFundplatformCardordersStatusMakeFinishAPIResponse.go new file mode 100644 index 0000000000..35036e8e76 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardordersStatusMakeFinishAPIResponse.go @@ -0,0 +1,27 @@ +package fundplatform + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +制卡商通知制卡完成 API返回值 +alibaba.fundplatform.cardorders.status.make.finish + +当制卡完成后,制卡商需要调用该接口,通知我们制卡已完成。 +*/ +type AlibabaFundplatformCardordersStatusMakeFinishAPIResponse struct { + model.CommonResponse + AlibabaFundplatformCardordersStatusMakeFinishAPIResponseModel +} + +// 制卡商通知制卡完成 成功返回结果 +type AlibabaFundplatformCardordersStatusMakeFinishAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fundplatform_cardorders_status_make_finish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CardMakingInformResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fundplatform/AlibabaFundplatformCardordersStatusMakeFinishResponse.go b/model/fundplatform/AlibabaFundplatformCardordersStatusMakeFinishResponse.go deleted file mode 100644 index 6d497e94e7..0000000000 --- a/model/fundplatform/AlibabaFundplatformCardordersStatusMakeFinishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fundplatform - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -制卡商通知制卡完成 API返回值 -alibaba.fundplatform.cardorders.status.make.finish - -当制卡完成后,制卡商需要调用该接口,通知我们制卡已完成。 -*/ -type AlibabaFundplatformCardordersStatusMakeFinishAPIResponse struct { - model.CommonResponse - AlibabaFundplatformCardordersStatusMakeFinishResponse -} - -// 制卡商通知制卡完成 成功返回结果 -type AlibabaFundplatformCardordersStatusMakeFinishResponse struct { - XMLName xml.Name `xml:"alibaba_fundplatform_cardorders_status_make_finish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CardMakingInformResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fundplatform/AlibabaFundplatformCardordersStatusSendedAPIRequest.go b/model/fundplatform/AlibabaFundplatformCardordersStatusSendedAPIRequest.go new file mode 100644 index 0000000000..63ffa4c390 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardordersStatusSendedAPIRequest.go @@ -0,0 +1,80 @@ +package fundplatform + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +制卡商通知实体卡发货完成 API请求 +alibaba.fundplatform.cardorders.status.sended + +当制卡商将实体卡发货完成后,需要调用该接口,通知我们已发货。 +*/ +type AlibabaFundplatformCardordersStatusSendedAPIRequest struct { + model.Params + // 子制卡单ID + _cardOrderId int64 + // 物流单号 + _logisticsOrderId string + // 物流商名称 + _logisticsCompany string +} + +// 初始化AlibabaFundplatformCardordersStatusSendedAPIRequest对象 +func NewAlibabaFundplatformCardordersStatusSendedRequest() *AlibabaFundplatformCardordersStatusSendedAPIRequest{ + return &AlibabaFundplatformCardordersStatusSendedAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaFundplatformCardordersStatusSendedAPIRequest) GetApiMethodName() string { + return "alibaba.fundplatform.cardorders.status.sended" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaFundplatformCardordersStatusSendedAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CardOrderId Setter +// 子制卡单ID +func (r *AlibabaFundplatformCardordersStatusSendedAPIRequest) SetCardOrderId(_cardOrderId int64) error { + r._cardOrderId = _cardOrderId + r.Set("card_order_id", _cardOrderId) + return nil +} + +// CardOrderId Getter +func (r AlibabaFundplatformCardordersStatusSendedAPIRequest) GetCardOrderId() int64 { + return r._cardOrderId +} +// LogisticsOrderId Setter +// 物流单号 +func (r *AlibabaFundplatformCardordersStatusSendedAPIRequest) SetLogisticsOrderId(_logisticsOrderId string) error { + r._logisticsOrderId = _logisticsOrderId + r.Set("logistics_order_id", _logisticsOrderId) + return nil +} + +// LogisticsOrderId Getter +func (r AlibabaFundplatformCardordersStatusSendedAPIRequest) GetLogisticsOrderId() string { + return r._logisticsOrderId +} +// LogisticsCompany Setter +// 物流商名称 +func (r *AlibabaFundplatformCardordersStatusSendedAPIRequest) SetLogisticsCompany(_logisticsCompany string) error { + r._logisticsCompany = _logisticsCompany + r.Set("logistics_company", _logisticsCompany) + return nil +} + +// LogisticsCompany Getter +func (r AlibabaFundplatformCardordersStatusSendedAPIRequest) GetLogisticsCompany() string { + return r._logisticsCompany +} diff --git a/model/fundplatform/AlibabaFundplatformCardordersStatusSendedAPIResponse.go b/model/fundplatform/AlibabaFundplatformCardordersStatusSendedAPIResponse.go new file mode 100644 index 0000000000..fca257d4d2 --- /dev/null +++ b/model/fundplatform/AlibabaFundplatformCardordersStatusSendedAPIResponse.go @@ -0,0 +1,27 @@ +package fundplatform + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +制卡商通知实体卡发货完成 API返回值 +alibaba.fundplatform.cardorders.status.sended + +当制卡商将实体卡发货完成后,需要调用该接口,通知我们已发货。 +*/ +type AlibabaFundplatformCardordersStatusSendedAPIResponse struct { + model.CommonResponse + AlibabaFundplatformCardordersStatusSendedAPIResponseModel +} + +// 制卡商通知实体卡发货完成 成功返回结果 +type AlibabaFundplatformCardordersStatusSendedAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_fundplatform_cardorders_status_sended_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CardMakingInformResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/fundplatform/AlibabaFundplatformCardordersStatusSendedResponse.go b/model/fundplatform/AlibabaFundplatformCardordersStatusSendedResponse.go deleted file mode 100644 index 552ada4eec..0000000000 --- a/model/fundplatform/AlibabaFundplatformCardordersStatusSendedResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package fundplatform - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -制卡商通知实体卡发货完成 API返回值 -alibaba.fundplatform.cardorders.status.sended - -当制卡商将实体卡发货完成后,需要调用该接口,通知我们已发货。 -*/ -type AlibabaFundplatformCardordersStatusSendedAPIResponse struct { - model.CommonResponse - AlibabaFundplatformCardordersStatusSendedResponse -} - -// 制卡商通知实体卡发货完成 成功返回结果 -type AlibabaFundplatformCardordersStatusSendedResponse struct { - XMLName xml.Name `xml:"alibaba_fundplatform_cardorders_status_sended_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CardMakingInformResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/fundplatform/AlibabaTaxInvoiceSyncLedgerAPIRequest.go b/model/fundplatform/AlibabaTaxInvoiceSyncLedgerAPIRequest.go new file mode 100644 index 0000000000..819a8e958e --- /dev/null +++ b/model/fundplatform/AlibabaTaxInvoiceSyncLedgerAPIRequest.go @@ -0,0 +1,52 @@ +package fundplatform + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同步底账数据 API请求 +alibaba.tax.invoice.sync.ledger + +接收第三方服务(如:票易通)同步过来的底账发票数据 +*/ +type AlibabaTaxInvoiceSyncLedgerAPIRequest struct { + model.Params + // 参数 + _paramSyncLedgerInvoiceRequest *SyncLedgerInvoiceRequest +} + +// 初始化AlibabaTaxInvoiceSyncLedgerAPIRequest对象 +func NewAlibabaTaxInvoiceSyncLedgerRequest() *AlibabaTaxInvoiceSyncLedgerAPIRequest{ + return &AlibabaTaxInvoiceSyncLedgerAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTaxInvoiceSyncLedgerAPIRequest) GetApiMethodName() string { + return "alibaba.tax.invoice.sync.ledger" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTaxInvoiceSyncLedgerAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamSyncLedgerInvoiceRequest Setter +// 参数 +func (r *AlibabaTaxInvoiceSyncLedgerAPIRequest) SetParamSyncLedgerInvoiceRequest(_paramSyncLedgerInvoiceRequest *SyncLedgerInvoiceRequest) error { + r._paramSyncLedgerInvoiceRequest = _paramSyncLedgerInvoiceRequest + r.Set("param_sync_ledger_invoice_request", _paramSyncLedgerInvoiceRequest) + return nil +} + +// ParamSyncLedgerInvoiceRequest Getter +func (r AlibabaTaxInvoiceSyncLedgerAPIRequest) GetParamSyncLedgerInvoiceRequest() *SyncLedgerInvoiceRequest { + return r._paramSyncLedgerInvoiceRequest +} diff --git a/model/fundplatform/AlibabaTaxInvoiceSyncLedgerAPIResponse.go b/model/fundplatform/AlibabaTaxInvoiceSyncLedgerAPIResponse.go new file mode 100644 index 0000000000..ab791a01e7 --- /dev/null +++ b/model/fundplatform/AlibabaTaxInvoiceSyncLedgerAPIResponse.go @@ -0,0 +1,31 @@ +package fundplatform + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同步底账数据 API返回值 +alibaba.tax.invoice.sync.ledger + +接收第三方服务(如:票易通)同步过来的底账发票数据 +*/ +type AlibabaTaxInvoiceSyncLedgerAPIResponse struct { + model.CommonResponse + AlibabaTaxInvoiceSyncLedgerAPIResponseModel +} + +// 同步底账数据 成功返回结果 +type AlibabaTaxInvoiceSyncLedgerAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tax_invoice_sync_ledger_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应编码 + ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` + // 异常消息 + ResponseMsg string `json:"response_msg,omitempty" xml:"response_msg,omitempty"` + // true/false + Succeeded bool `json:"succeeded,omitempty" xml:"succeeded,omitempty"` +} diff --git a/model/fundplatform/AlibabaTaxInvoiceSyncLedgerResponse.go b/model/fundplatform/AlibabaTaxInvoiceSyncLedgerResponse.go deleted file mode 100644 index 9261b2e5c8..0000000000 --- a/model/fundplatform/AlibabaTaxInvoiceSyncLedgerResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package fundplatform - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同步底账数据 API返回值 -alibaba.tax.invoice.sync.ledger - -接收第三方服务(如:票易通)同步过来的底账发票数据 -*/ -type AlibabaTaxInvoiceSyncLedgerAPIResponse struct { - model.CommonResponse - AlibabaTaxInvoiceSyncLedgerResponse -} - -// 同步底账数据 成功返回结果 -type AlibabaTaxInvoiceSyncLedgerResponse struct { - XMLName xml.Name `xml:"alibaba_tax_invoice_sync_ledger_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应编码 - ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` - // 异常消息 - ResponseMsg string `json:"response_msg,omitempty" xml:"response_msg,omitempty"` - // true/false - Succeeded bool `json:"succeeded,omitempty" xml:"succeeded,omitempty"` -} diff --git a/model/game/TaobaoAppleCardActiveApplyNotifyAPIRequest.go b/model/game/TaobaoAppleCardActiveApplyNotifyAPIRequest.go new file mode 100644 index 0000000000..c16c503ae3 --- /dev/null +++ b/model/game/TaobaoAppleCardActiveApplyNotifyAPIRequest.go @@ -0,0 +1,108 @@ +package game + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +苹果卡密申请激活回调接口 API请求 +taobao.apple.card.active.apply.notify + +苹果卡密申请激活回调接口 +*/ +type TaobaoAppleCardActiveApplyNotifyAPIRequest struct { + model.Params + // 卡列表 + _appleCards []AppleCardDto + // 网关订单号 + _gatewayOrderNo string + // 描述 + _resultMsg string + // 商户唯一订单号 + _orderNo string + // 结果,000:成功,其他皆为错误 04: 订单处理失败(商户可退款,其他不可退款) + _resultCode string +} + +// 初始化TaobaoAppleCardActiveApplyNotifyAPIRequest对象 +func NewTaobaoAppleCardActiveApplyNotifyRequest() *TaobaoAppleCardActiveApplyNotifyAPIRequest{ + return &TaobaoAppleCardActiveApplyNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAppleCardActiveApplyNotifyAPIRequest) GetApiMethodName() string { + return "taobao.apple.card.active.apply.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAppleCardActiveApplyNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppleCards Setter +// 卡列表 +func (r *TaobaoAppleCardActiveApplyNotifyAPIRequest) SetAppleCards(_appleCards []AppleCardDto) error { + r._appleCards = _appleCards + r.Set("apple_cards", _appleCards) + return nil +} + +// AppleCards Getter +func (r TaobaoAppleCardActiveApplyNotifyAPIRequest) GetAppleCards() []AppleCardDto { + return r._appleCards +} +// GatewayOrderNo Setter +// 网关订单号 +func (r *TaobaoAppleCardActiveApplyNotifyAPIRequest) SetGatewayOrderNo(_gatewayOrderNo string) error { + r._gatewayOrderNo = _gatewayOrderNo + r.Set("gateway_order_no", _gatewayOrderNo) + return nil +} + +// GatewayOrderNo Getter +func (r TaobaoAppleCardActiveApplyNotifyAPIRequest) GetGatewayOrderNo() string { + return r._gatewayOrderNo +} +// ResultMsg Setter +// 描述 +func (r *TaobaoAppleCardActiveApplyNotifyAPIRequest) SetResultMsg(_resultMsg string) error { + r._resultMsg = _resultMsg + r.Set("result_msg", _resultMsg) + return nil +} + +// ResultMsg Getter +func (r TaobaoAppleCardActiveApplyNotifyAPIRequest) GetResultMsg() string { + return r._resultMsg +} +// OrderNo Setter +// 商户唯一订单号 +func (r *TaobaoAppleCardActiveApplyNotifyAPIRequest) SetOrderNo(_orderNo string) error { + r._orderNo = _orderNo + r.Set("order_no", _orderNo) + return nil +} + +// OrderNo Getter +func (r TaobaoAppleCardActiveApplyNotifyAPIRequest) GetOrderNo() string { + return r._orderNo +} +// ResultCode Setter +// 结果,000:成功,其他皆为错误 04: 订单处理失败(商户可退款,其他不可退款) +func (r *TaobaoAppleCardActiveApplyNotifyAPIRequest) SetResultCode(_resultCode string) error { + r._resultCode = _resultCode + r.Set("result_code", _resultCode) + return nil +} + +// ResultCode Getter +func (r TaobaoAppleCardActiveApplyNotifyAPIRequest) GetResultCode() string { + return r._resultCode +} diff --git a/model/game/TaobaoAppleCardActiveApplyNotifyAPIResponse.go b/model/game/TaobaoAppleCardActiveApplyNotifyAPIResponse.go new file mode 100644 index 0000000000..afbe4f295f --- /dev/null +++ b/model/game/TaobaoAppleCardActiveApplyNotifyAPIResponse.go @@ -0,0 +1,29 @@ +package game + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +苹果卡密申请激活回调接口 API返回值 +taobao.apple.card.active.apply.notify + +苹果卡密申请激活回调接口 +*/ +type TaobaoAppleCardActiveApplyNotifyAPIResponse struct { + model.CommonResponse + TaobaoAppleCardActiveApplyNotifyAPIResponseModel +} + +// 苹果卡密申请激活回调接口 成功返回结果 +type TaobaoAppleCardActiveApplyNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"apple_card_active_apply_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/game/TaobaoAppleCardActiveApplyNotifyResponse.go b/model/game/TaobaoAppleCardActiveApplyNotifyResponse.go deleted file mode 100644 index f0a33d2982..0000000000 --- a/model/game/TaobaoAppleCardActiveApplyNotifyResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package game - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -苹果卡密申请激活回调接口 API返回值 -taobao.apple.card.active.apply.notify - -苹果卡密申请激活回调接口 -*/ -type TaobaoAppleCardActiveApplyNotifyAPIResponse struct { - model.CommonResponse - TaobaoAppleCardActiveApplyNotifyResponse -} - -// 苹果卡密申请激活回调接口 成功返回结果 -type TaobaoAppleCardActiveApplyNotifyResponse struct { - XMLName xml.Name `xml:"apple_card_active_apply_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/game/TaobaoAppleCardActiveCancelNotifyAPIRequest.go b/model/game/TaobaoAppleCardActiveCancelNotifyAPIRequest.go new file mode 100644 index 0000000000..2810f71251 --- /dev/null +++ b/model/game/TaobaoAppleCardActiveCancelNotifyAPIRequest.go @@ -0,0 +1,108 @@ +package game + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +苹果卡密取消激活回调接口 API请求 +taobao.apple.card.active.cancel.notify + +苹果卡密取消激活回调接口 +*/ +type TaobaoAppleCardActiveCancelNotifyAPIRequest struct { + model.Params + // 原商户申请激活时的订单号 + _orderNo string + // 结果,000:整单取消激活成功 04: 取消激活失败(包括全部失败和部分失败,此时需以detail为准) + _resultCode string + // 网关订单号 + _gatewayOrderNo string + // 描述 + _resultMsg string + // 卡信息 + _appleCardCancels []AppleCardCancelDto +} + +// 初始化TaobaoAppleCardActiveCancelNotifyAPIRequest对象 +func NewTaobaoAppleCardActiveCancelNotifyRequest() *TaobaoAppleCardActiveCancelNotifyAPIRequest{ + return &TaobaoAppleCardActiveCancelNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAppleCardActiveCancelNotifyAPIRequest) GetApiMethodName() string { + return "taobao.apple.card.active.cancel.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAppleCardActiveCancelNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderNo Setter +// 原商户申请激活时的订单号 +func (r *TaobaoAppleCardActiveCancelNotifyAPIRequest) SetOrderNo(_orderNo string) error { + r._orderNo = _orderNo + r.Set("order_no", _orderNo) + return nil +} + +// OrderNo Getter +func (r TaobaoAppleCardActiveCancelNotifyAPIRequest) GetOrderNo() string { + return r._orderNo +} +// ResultCode Setter +// 结果,000:整单取消激活成功 04: 取消激活失败(包括全部失败和部分失败,此时需以detail为准) +func (r *TaobaoAppleCardActiveCancelNotifyAPIRequest) SetResultCode(_resultCode string) error { + r._resultCode = _resultCode + r.Set("result_code", _resultCode) + return nil +} + +// ResultCode Getter +func (r TaobaoAppleCardActiveCancelNotifyAPIRequest) GetResultCode() string { + return r._resultCode +} +// GatewayOrderNo Setter +// 网关订单号 +func (r *TaobaoAppleCardActiveCancelNotifyAPIRequest) SetGatewayOrderNo(_gatewayOrderNo string) error { + r._gatewayOrderNo = _gatewayOrderNo + r.Set("gateway_order_no", _gatewayOrderNo) + return nil +} + +// GatewayOrderNo Getter +func (r TaobaoAppleCardActiveCancelNotifyAPIRequest) GetGatewayOrderNo() string { + return r._gatewayOrderNo +} +// ResultMsg Setter +// 描述 +func (r *TaobaoAppleCardActiveCancelNotifyAPIRequest) SetResultMsg(_resultMsg string) error { + r._resultMsg = _resultMsg + r.Set("result_msg", _resultMsg) + return nil +} + +// ResultMsg Getter +func (r TaobaoAppleCardActiveCancelNotifyAPIRequest) GetResultMsg() string { + return r._resultMsg +} +// AppleCardCancels Setter +// 卡信息 +func (r *TaobaoAppleCardActiveCancelNotifyAPIRequest) SetAppleCardCancels(_appleCardCancels []AppleCardCancelDto) error { + r._appleCardCancels = _appleCardCancels + r.Set("apple_card_cancels", _appleCardCancels) + return nil +} + +// AppleCardCancels Getter +func (r TaobaoAppleCardActiveCancelNotifyAPIRequest) GetAppleCardCancels() []AppleCardCancelDto { + return r._appleCardCancels +} diff --git a/model/game/TaobaoAppleCardActiveCancelNotifyAPIResponse.go b/model/game/TaobaoAppleCardActiveCancelNotifyAPIResponse.go new file mode 100644 index 0000000000..6bf682cde2 --- /dev/null +++ b/model/game/TaobaoAppleCardActiveCancelNotifyAPIResponse.go @@ -0,0 +1,29 @@ +package game + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +苹果卡密取消激活回调接口 API返回值 +taobao.apple.card.active.cancel.notify + +苹果卡密取消激活回调接口 +*/ +type TaobaoAppleCardActiveCancelNotifyAPIResponse struct { + model.CommonResponse + TaobaoAppleCardActiveCancelNotifyAPIResponseModel +} + +// 苹果卡密取消激活回调接口 成功返回结果 +type TaobaoAppleCardActiveCancelNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"apple_card_active_cancel_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/game/TaobaoAppleCardActiveCancelNotifyResponse.go b/model/game/TaobaoAppleCardActiveCancelNotifyResponse.go deleted file mode 100644 index 511a40b4e1..0000000000 --- a/model/game/TaobaoAppleCardActiveCancelNotifyResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package game - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -苹果卡密取消激活回调接口 API返回值 -taobao.apple.card.active.cancel.notify - -苹果卡密取消激活回调接口 -*/ -type TaobaoAppleCardActiveCancelNotifyAPIResponse struct { - model.CommonResponse - TaobaoAppleCardActiveCancelNotifyResponse -} - -// 苹果卡密取消激活回调接口 成功返回结果 -type TaobaoAppleCardActiveCancelNotifyResponse struct { - XMLName xml.Name `xml:"apple_card_active_cancel_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/game/TaobaoAppleNewuserActivateNotifyAPIRequest.go b/model/game/TaobaoAppleNewuserActivateNotifyAPIRequest.go new file mode 100644 index 0000000000..78fe3e4f61 --- /dev/null +++ b/model/game/TaobaoAppleNewuserActivateNotifyAPIRequest.go @@ -0,0 +1,80 @@ +package game + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新用户激活通知接口 API请求 +taobao.apple.newuser.activate.notify + +资和信主动通知激活结果 +*/ +type TaobaoAppleNewuserActivateNotifyAPIRequest struct { + model.Params + // 结果对应值,00位成功,其他为失败 + _resultCode string + // 处理结果中文描述 + _resultMsg string + // 主业务参数 + _mainData *AppleTopActivateNotifyDo +} + +// 初始化TaobaoAppleNewuserActivateNotifyAPIRequest对象 +func NewTaobaoAppleNewuserActivateNotifyRequest() *TaobaoAppleNewuserActivateNotifyAPIRequest{ + return &TaobaoAppleNewuserActivateNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAppleNewuserActivateNotifyAPIRequest) GetApiMethodName() string { + return "taobao.apple.newuser.activate.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAppleNewuserActivateNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ResultCode Setter +// 结果对应值,00位成功,其他为失败 +func (r *TaobaoAppleNewuserActivateNotifyAPIRequest) SetResultCode(_resultCode string) error { + r._resultCode = _resultCode + r.Set("result_code", _resultCode) + return nil +} + +// ResultCode Getter +func (r TaobaoAppleNewuserActivateNotifyAPIRequest) GetResultCode() string { + return r._resultCode +} +// ResultMsg Setter +// 处理结果中文描述 +func (r *TaobaoAppleNewuserActivateNotifyAPIRequest) SetResultMsg(_resultMsg string) error { + r._resultMsg = _resultMsg + r.Set("result_msg", _resultMsg) + return nil +} + +// ResultMsg Getter +func (r TaobaoAppleNewuserActivateNotifyAPIRequest) GetResultMsg() string { + return r._resultMsg +} +// MainData Setter +// 主业务参数 +func (r *TaobaoAppleNewuserActivateNotifyAPIRequest) SetMainData(_mainData *AppleTopActivateNotifyDo) error { + r._mainData = _mainData + r.Set("main_data", _mainData) + return nil +} + +// MainData Getter +func (r TaobaoAppleNewuserActivateNotifyAPIRequest) GetMainData() *AppleTopActivateNotifyDo { + return r._mainData +} diff --git a/model/game/TaobaoAppleNewuserActivateNotifyAPIResponse.go b/model/game/TaobaoAppleNewuserActivateNotifyAPIResponse.go new file mode 100644 index 0000000000..a9836f54fb --- /dev/null +++ b/model/game/TaobaoAppleNewuserActivateNotifyAPIResponse.go @@ -0,0 +1,29 @@ +package game + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新用户激活通知接口 API返回值 +taobao.apple.newuser.activate.notify + +资和信主动通知激活结果 +*/ +type TaobaoAppleNewuserActivateNotifyAPIResponse struct { + model.CommonResponse + TaobaoAppleNewuserActivateNotifyAPIResponseModel +} + +// 新用户激活通知接口 成功返回结果 +type TaobaoAppleNewuserActivateNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"apple_newuser_activate_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 处理结果说明 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 处理结果码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/game/TaobaoAppleNewuserActivateNotifyResponse.go b/model/game/TaobaoAppleNewuserActivateNotifyResponse.go deleted file mode 100644 index 6fef9a5e49..0000000000 --- a/model/game/TaobaoAppleNewuserActivateNotifyResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package game - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新用户激活通知接口 API返回值 -taobao.apple.newuser.activate.notify - -资和信主动通知激活结果 -*/ -type TaobaoAppleNewuserActivateNotifyAPIResponse struct { - model.CommonResponse - TaobaoAppleNewuserActivateNotifyResponse -} - -// 新用户激活通知接口 成功返回结果 -type TaobaoAppleNewuserActivateNotifyResponse struct { - XMLName xml.Name `xml:"apple_newuser_activate_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 处理结果说明 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 处理结果码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/game/TaobaoAppleNewuserSignNotifyAPIRequest.go b/model/game/TaobaoAppleNewuserSignNotifyAPIRequest.go new file mode 100644 index 0000000000..d1f4fcd507 --- /dev/null +++ b/model/game/TaobaoAppleNewuserSignNotifyAPIRequest.go @@ -0,0 +1,80 @@ +package game + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新用户签约通知接口 API请求 +taobao.apple.newuser.sign.notify + +用户付款成功后,资和信主动通知签约结果 +*/ +type TaobaoAppleNewuserSignNotifyAPIRequest struct { + model.Params + // 结果code + _resultCode string + // 结果信息说明 + _resultMsg string + // 业务参数 + _mainData *AppleTopNewSignNotifyDo +} + +// 初始化TaobaoAppleNewuserSignNotifyAPIRequest对象 +func NewTaobaoAppleNewuserSignNotifyRequest() *TaobaoAppleNewuserSignNotifyAPIRequest{ + return &TaobaoAppleNewuserSignNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAppleNewuserSignNotifyAPIRequest) GetApiMethodName() string { + return "taobao.apple.newuser.sign.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAppleNewuserSignNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ResultCode Setter +// 结果code +func (r *TaobaoAppleNewuserSignNotifyAPIRequest) SetResultCode(_resultCode string) error { + r._resultCode = _resultCode + r.Set("result_code", _resultCode) + return nil +} + +// ResultCode Getter +func (r TaobaoAppleNewuserSignNotifyAPIRequest) GetResultCode() string { + return r._resultCode +} +// ResultMsg Setter +// 结果信息说明 +func (r *TaobaoAppleNewuserSignNotifyAPIRequest) SetResultMsg(_resultMsg string) error { + r._resultMsg = _resultMsg + r.Set("result_msg", _resultMsg) + return nil +} + +// ResultMsg Getter +func (r TaobaoAppleNewuserSignNotifyAPIRequest) GetResultMsg() string { + return r._resultMsg +} +// MainData Setter +// 业务参数 +func (r *TaobaoAppleNewuserSignNotifyAPIRequest) SetMainData(_mainData *AppleTopNewSignNotifyDo) error { + r._mainData = _mainData + r.Set("main_data", _mainData) + return nil +} + +// MainData Getter +func (r TaobaoAppleNewuserSignNotifyAPIRequest) GetMainData() *AppleTopNewSignNotifyDo { + return r._mainData +} diff --git a/model/game/TaobaoAppleNewuserSignNotifyAPIResponse.go b/model/game/TaobaoAppleNewuserSignNotifyAPIResponse.go new file mode 100644 index 0000000000..3724c4c71b --- /dev/null +++ b/model/game/TaobaoAppleNewuserSignNotifyAPIResponse.go @@ -0,0 +1,29 @@ +package game + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新用户签约通知接口 API返回值 +taobao.apple.newuser.sign.notify + +用户付款成功后,资和信主动通知签约结果 +*/ +type TaobaoAppleNewuserSignNotifyAPIResponse struct { + model.CommonResponse + TaobaoAppleNewuserSignNotifyAPIResponseModel +} + +// 新用户签约通知接口 成功返回结果 +type TaobaoAppleNewuserSignNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"apple_newuser_sign_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 处理结果说明 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 处理结果码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/game/TaobaoAppleNewuserSignNotifyNewversionAPIRequest.go b/model/game/TaobaoAppleNewuserSignNotifyNewversionAPIRequest.go new file mode 100644 index 0000000000..589d3df276 --- /dev/null +++ b/model/game/TaobaoAppleNewuserSignNotifyNewversionAPIRequest.go @@ -0,0 +1,80 @@ +package game + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新用户签约结果通知接口v2 API请求 +taobao.apple.newuser.sign.notify.newversion + +资和信主动通知签约结果 +*/ +type TaobaoAppleNewuserSignNotifyNewversionAPIRequest struct { + model.Params + // 结果code + _resultCode string + // 结果信息说明 + _resultMsg string + // 业务参数 + _mainData *AppleTopNewSignNotifyDo +} + +// 初始化TaobaoAppleNewuserSignNotifyNewversionAPIRequest对象 +func NewTaobaoAppleNewuserSignNotifyNewversionRequest() *TaobaoAppleNewuserSignNotifyNewversionAPIRequest{ + return &TaobaoAppleNewuserSignNotifyNewversionAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAppleNewuserSignNotifyNewversionAPIRequest) GetApiMethodName() string { + return "taobao.apple.newuser.sign.notify.newversion" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAppleNewuserSignNotifyNewversionAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ResultCode Setter +// 结果code +func (r *TaobaoAppleNewuserSignNotifyNewversionAPIRequest) SetResultCode(_resultCode string) error { + r._resultCode = _resultCode + r.Set("result_code", _resultCode) + return nil +} + +// ResultCode Getter +func (r TaobaoAppleNewuserSignNotifyNewversionAPIRequest) GetResultCode() string { + return r._resultCode +} +// ResultMsg Setter +// 结果信息说明 +func (r *TaobaoAppleNewuserSignNotifyNewversionAPIRequest) SetResultMsg(_resultMsg string) error { + r._resultMsg = _resultMsg + r.Set("result_msg", _resultMsg) + return nil +} + +// ResultMsg Getter +func (r TaobaoAppleNewuserSignNotifyNewversionAPIRequest) GetResultMsg() string { + return r._resultMsg +} +// MainData Setter +// 业务参数 +func (r *TaobaoAppleNewuserSignNotifyNewversionAPIRequest) SetMainData(_mainData *AppleTopNewSignNotifyDo) error { + r._mainData = _mainData + r.Set("main_data", _mainData) + return nil +} + +// MainData Getter +func (r TaobaoAppleNewuserSignNotifyNewversionAPIRequest) GetMainData() *AppleTopNewSignNotifyDo { + return r._mainData +} diff --git a/model/game/TaobaoAppleNewuserSignNotifyNewversionAPIResponse.go b/model/game/TaobaoAppleNewuserSignNotifyNewversionAPIResponse.go new file mode 100644 index 0000000000..e0a9d680b9 --- /dev/null +++ b/model/game/TaobaoAppleNewuserSignNotifyNewversionAPIResponse.go @@ -0,0 +1,29 @@ +package game + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新用户签约结果通知接口v2 API返回值 +taobao.apple.newuser.sign.notify.newversion + +资和信主动通知签约结果 +*/ +type TaobaoAppleNewuserSignNotifyNewversionAPIResponse struct { + model.CommonResponse + TaobaoAppleNewuserSignNotifyNewversionAPIResponseModel +} + +// 新用户签约结果通知接口v2 成功返回结果 +type TaobaoAppleNewuserSignNotifyNewversionAPIResponseModel struct { + XMLName xml.Name `xml:"apple_newuser_sign_notify_newversion_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 处理结果说明 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 处理结果码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/game/TaobaoAppleNewuserSignNotifyNewversionResponse.go b/model/game/TaobaoAppleNewuserSignNotifyNewversionResponse.go deleted file mode 100644 index 499285bd6b..0000000000 --- a/model/game/TaobaoAppleNewuserSignNotifyNewversionResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package game - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新用户签约结果通知接口v2 API返回值 -taobao.apple.newuser.sign.notify.newversion - -资和信主动通知签约结果 -*/ -type TaobaoAppleNewuserSignNotifyNewversionAPIResponse struct { - model.CommonResponse - TaobaoAppleNewuserSignNotifyNewversionResponse -} - -// 新用户签约结果通知接口v2 成功返回结果 -type TaobaoAppleNewuserSignNotifyNewversionResponse struct { - XMLName xml.Name `xml:"apple_newuser_sign_notify_newversion_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 处理结果说明 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 处理结果码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/game/TaobaoAppleNewuserSignNotifyResponse.go b/model/game/TaobaoAppleNewuserSignNotifyResponse.go deleted file mode 100644 index 040d1e83da..0000000000 --- a/model/game/TaobaoAppleNewuserSignNotifyResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package game - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新用户签约通知接口 API返回值 -taobao.apple.newuser.sign.notify - -用户付款成功后,资和信主动通知签约结果 -*/ -type TaobaoAppleNewuserSignNotifyAPIResponse struct { - model.CommonResponse - TaobaoAppleNewuserSignNotifyResponse -} - -// 新用户签约通知接口 成功返回结果 -type TaobaoAppleNewuserSignNotifyResponse struct { - XMLName xml.Name `xml:"apple_newuser_sign_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 处理结果说明 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 处理结果码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/game/TaobaoAppleOlduserChargeNotifyAPIRequest.go b/model/game/TaobaoAppleOlduserChargeNotifyAPIRequest.go new file mode 100644 index 0000000000..24226a8a45 --- /dev/null +++ b/model/game/TaobaoAppleOlduserChargeNotifyAPIRequest.go @@ -0,0 +1,80 @@ +package game + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +老用户激活并兑换通知接口 API请求 +taobao.apple.olduser.charge.notify + +老用户激活并兑换通知接口 +*/ +type TaobaoAppleOlduserChargeNotifyAPIRequest struct { + model.Params + // 结果code + _resultCode string + // 结果信息说明 + _resultMsg string + // 业务参数 + _mainData *AppleTopOldSignNotifyDo +} + +// 初始化TaobaoAppleOlduserChargeNotifyAPIRequest对象 +func NewTaobaoAppleOlduserChargeNotifyRequest() *TaobaoAppleOlduserChargeNotifyAPIRequest{ + return &TaobaoAppleOlduserChargeNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAppleOlduserChargeNotifyAPIRequest) GetApiMethodName() string { + return "taobao.apple.olduser.charge.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAppleOlduserChargeNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ResultCode Setter +// 结果code +func (r *TaobaoAppleOlduserChargeNotifyAPIRequest) SetResultCode(_resultCode string) error { + r._resultCode = _resultCode + r.Set("result_code", _resultCode) + return nil +} + +// ResultCode Getter +func (r TaobaoAppleOlduserChargeNotifyAPIRequest) GetResultCode() string { + return r._resultCode +} +// ResultMsg Setter +// 结果信息说明 +func (r *TaobaoAppleOlduserChargeNotifyAPIRequest) SetResultMsg(_resultMsg string) error { + r._resultMsg = _resultMsg + r.Set("result_msg", _resultMsg) + return nil +} + +// ResultMsg Getter +func (r TaobaoAppleOlduserChargeNotifyAPIRequest) GetResultMsg() string { + return r._resultMsg +} +// MainData Setter +// 业务参数 +func (r *TaobaoAppleOlduserChargeNotifyAPIRequest) SetMainData(_mainData *AppleTopOldSignNotifyDo) error { + r._mainData = _mainData + r.Set("main_data", _mainData) + return nil +} + +// MainData Getter +func (r TaobaoAppleOlduserChargeNotifyAPIRequest) GetMainData() *AppleTopOldSignNotifyDo { + return r._mainData +} diff --git a/model/game/TaobaoAppleOlduserChargeNotifyAPIResponse.go b/model/game/TaobaoAppleOlduserChargeNotifyAPIResponse.go new file mode 100644 index 0000000000..156e5e5c9d --- /dev/null +++ b/model/game/TaobaoAppleOlduserChargeNotifyAPIResponse.go @@ -0,0 +1,29 @@ +package game + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +老用户激活并兑换通知接口 API返回值 +taobao.apple.olduser.charge.notify + +老用户激活并兑换通知接口 +*/ +type TaobaoAppleOlduserChargeNotifyAPIResponse struct { + model.CommonResponse + TaobaoAppleOlduserChargeNotifyAPIResponseModel +} + +// 老用户激活并兑换通知接口 成功返回结果 +type TaobaoAppleOlduserChargeNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"apple_olduser_charge_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 处理结果说明 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 处理结果码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/game/TaobaoAppleOlduserChargeNotifyResponse.go b/model/game/TaobaoAppleOlduserChargeNotifyResponse.go deleted file mode 100644 index 2f26cf0976..0000000000 --- a/model/game/TaobaoAppleOlduserChargeNotifyResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package game - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -老用户激活并兑换通知接口 API返回值 -taobao.apple.olduser.charge.notify - -老用户激活并兑换通知接口 -*/ -type TaobaoAppleOlduserChargeNotifyAPIResponse struct { - model.CommonResponse - TaobaoAppleOlduserChargeNotifyResponse -} - -// 老用户激活并兑换通知接口 成功返回结果 -type TaobaoAppleOlduserChargeNotifyResponse struct { - XMLName xml.Name `xml:"apple_olduser_charge_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 处理结果说明 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 处理结果码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/gameact/TaobaoDeActivityDeliveryAddrConfirmAPIRequest.go b/model/gameact/TaobaoDeActivityDeliveryAddrConfirmAPIRequest.go new file mode 100644 index 0000000000..c5d9e859ca --- /dev/null +++ b/model/gameact/TaobaoDeActivityDeliveryAddrConfirmAPIRequest.go @@ -0,0 +1,66 @@ +package gameact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户收件地址确认 API请求 +taobao.de.activity.delivery.addr.confirm + +用户收件地址确认 +*/ +type TaobaoDeActivityDeliveryAddrConfirmAPIRequest struct { + model.Params + // 加密流水号 + _serialNumber string + // 地址Sign + _addressSign string +} + +// 初始化TaobaoDeActivityDeliveryAddrConfirmAPIRequest对象 +func NewTaobaoDeActivityDeliveryAddrConfirmRequest() *TaobaoDeActivityDeliveryAddrConfirmAPIRequest{ + return &TaobaoDeActivityDeliveryAddrConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDeActivityDeliveryAddrConfirmAPIRequest) GetApiMethodName() string { + return "taobao.de.activity.delivery.addr.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDeActivityDeliveryAddrConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SerialNumber Setter +// 加密流水号 +func (r *TaobaoDeActivityDeliveryAddrConfirmAPIRequest) SetSerialNumber(_serialNumber string) error { + r._serialNumber = _serialNumber + r.Set("serial_number", _serialNumber) + return nil +} + +// SerialNumber Getter +func (r TaobaoDeActivityDeliveryAddrConfirmAPIRequest) GetSerialNumber() string { + return r._serialNumber +} +// AddressSign Setter +// 地址Sign +func (r *TaobaoDeActivityDeliveryAddrConfirmAPIRequest) SetAddressSign(_addressSign string) error { + r._addressSign = _addressSign + r.Set("address_sign", _addressSign) + return nil +} + +// AddressSign Getter +func (r TaobaoDeActivityDeliveryAddrConfirmAPIRequest) GetAddressSign() string { + return r._addressSign +} diff --git a/model/gameact/TaobaoDeActivityDeliveryAddrConfirmAPIResponse.go b/model/gameact/TaobaoDeActivityDeliveryAddrConfirmAPIResponse.go new file mode 100644 index 0000000000..55e3e055a2 --- /dev/null +++ b/model/gameact/TaobaoDeActivityDeliveryAddrConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package gameact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户收件地址确认 API返回值 +taobao.de.activity.delivery.addr.confirm + +用户收件地址确认 +*/ +type TaobaoDeActivityDeliveryAddrConfirmAPIResponse struct { + model.CommonResponse + TaobaoDeActivityDeliveryAddrConfirmAPIResponseModel +} + +// 用户收件地址确认 成功返回结果 +type TaobaoDeActivityDeliveryAddrConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"de_activity_delivery_addr_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 更新或确认收件地址 + UpdateDeliveryAddressVo *UpdateDeliveryAddressVO `json:"update_delivery_address_vo,omitempty" xml:"update_delivery_address_vo,omitempty"` +} diff --git a/model/gameact/TaobaoDeActivityDeliveryAddrConfirmResponse.go b/model/gameact/TaobaoDeActivityDeliveryAddrConfirmResponse.go deleted file mode 100644 index 718f07c7dc..0000000000 --- a/model/gameact/TaobaoDeActivityDeliveryAddrConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package gameact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户收件地址确认 API返回值 -taobao.de.activity.delivery.addr.confirm - -用户收件地址确认 -*/ -type TaobaoDeActivityDeliveryAddrConfirmAPIResponse struct { - model.CommonResponse - TaobaoDeActivityDeliveryAddrConfirmResponse -} - -// 用户收件地址确认 成功返回结果 -type TaobaoDeActivityDeliveryAddrConfirmResponse struct { - XMLName xml.Name `xml:"de_activity_delivery_addr_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 更新或确认收件地址 - UpdateDeliveryAddressVo *UpdateDeliveryAddressVO `json:"update_delivery_address_vo,omitempty" xml:"update_delivery_address_vo,omitempty"` -} diff --git a/model/gameact/TaobaoDeActivityInfoGetAPIRequest.go b/model/gameact/TaobaoDeActivityInfoGetAPIRequest.go new file mode 100644 index 0000000000..d4c1d5618a --- /dev/null +++ b/model/gameact/TaobaoDeActivityInfoGetAPIRequest.go @@ -0,0 +1,52 @@ +package gameact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取活动信息 API请求 +taobao.de.activity.info.get + +根据appKey和活动id获取活动 +*/ +type TaobaoDeActivityInfoGetAPIRequest struct { + model.Params + // 事件唯一标识 + _eventKey string +} + +// 初始化TaobaoDeActivityInfoGetAPIRequest对象 +func NewTaobaoDeActivityInfoGetRequest() *TaobaoDeActivityInfoGetAPIRequest{ + return &TaobaoDeActivityInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDeActivityInfoGetAPIRequest) GetApiMethodName() string { + return "taobao.de.activity.info.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDeActivityInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EventKey Setter +// 事件唯一标识 +func (r *TaobaoDeActivityInfoGetAPIRequest) SetEventKey(_eventKey string) error { + r._eventKey = _eventKey + r.Set("event_key", _eventKey) + return nil +} + +// EventKey Getter +func (r TaobaoDeActivityInfoGetAPIRequest) GetEventKey() string { + return r._eventKey +} diff --git a/model/gameact/TaobaoDeActivityInfoGetAPIResponse.go b/model/gameact/TaobaoDeActivityInfoGetAPIResponse.go new file mode 100644 index 0000000000..f72f50de54 --- /dev/null +++ b/model/gameact/TaobaoDeActivityInfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package gameact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取活动信息 API返回值 +taobao.de.activity.info.get + +根据appKey和活动id获取活动 +*/ +type TaobaoDeActivityInfoGetAPIResponse struct { + model.CommonResponse + TaobaoDeActivityInfoGetAPIResponseModel +} + +// 获取活动信息 成功返回结果 +type TaobaoDeActivityInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"de_activity_info_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结构 + Activities []ActivityVO `json:"activities,omitempty" xml:"activities>activity_vo,omitempty"` +} diff --git a/model/gameact/TaobaoDeActivityInfoGetResponse.go b/model/gameact/TaobaoDeActivityInfoGetResponse.go deleted file mode 100644 index d5d30d9e8f..0000000000 --- a/model/gameact/TaobaoDeActivityInfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package gameact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取活动信息 API返回值 -taobao.de.activity.info.get - -根据appKey和活动id获取活动 -*/ -type TaobaoDeActivityInfoGetAPIResponse struct { - model.CommonResponse - TaobaoDeActivityInfoGetResponse -} - -// 获取活动信息 成功返回结果 -type TaobaoDeActivityInfoGetResponse struct { - XMLName xml.Name `xml:"de_activity_info_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结构 - Activities []ActivityVO `json:"activities,omitempty" xml:"activities>activity_vo,omitempty"` -} diff --git a/model/gameact/TaobaoDeActivityLuckydrawAPIRequest.go b/model/gameact/TaobaoDeActivityLuckydrawAPIRequest.go new file mode 100644 index 0000000000..b749b50452 --- /dev/null +++ b/model/gameact/TaobaoDeActivityLuckydrawAPIRequest.go @@ -0,0 +1,192 @@ +package gameact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖 API请求 +taobao.de.activity.luckydraw + +用于激励平台对外提供抽奖功能,包括但不限于集分宝、红包、宝点、淘金币、淘彩票等 +*/ +type TaobaoDeActivityLuckydrawAPIRequest struct { + model.Params + // 运营和cp约定的事件唯一标示 + _eventKey string + // 时间戳 + _sequenceId int64 + // 用户的串ID + _accountId string + // 机器设备号 + _machineId string + // 确认签名key + _confirmKey string + // 行为Key + _behaviorKey string + // 渠道 + _channel string + // 使用市场 + _market string + // 盒型号 + _deviceModel string + // 魔盒分发渠道 + _distribChannel string + // 魔盒UUID + _uuid string +} + +// 初始化TaobaoDeActivityLuckydrawAPIRequest对象 +func NewTaobaoDeActivityLuckydrawRequest() *TaobaoDeActivityLuckydrawAPIRequest{ + return &TaobaoDeActivityLuckydrawAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDeActivityLuckydrawAPIRequest) GetApiMethodName() string { + return "taobao.de.activity.luckydraw" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDeActivityLuckydrawAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EventKey Setter +// 运营和cp约定的事件唯一标示 +func (r *TaobaoDeActivityLuckydrawAPIRequest) SetEventKey(_eventKey string) error { + r._eventKey = _eventKey + r.Set("event_key", _eventKey) + return nil +} + +// EventKey Getter +func (r TaobaoDeActivityLuckydrawAPIRequest) GetEventKey() string { + return r._eventKey +} +// SequenceId Setter +// 时间戳 +func (r *TaobaoDeActivityLuckydrawAPIRequest) SetSequenceId(_sequenceId int64) error { + r._sequenceId = _sequenceId + r.Set("sequence_id", _sequenceId) + return nil +} + +// SequenceId Getter +func (r TaobaoDeActivityLuckydrawAPIRequest) GetSequenceId() int64 { + return r._sequenceId +} +// AccountId Setter +// 用户的串ID +func (r *TaobaoDeActivityLuckydrawAPIRequest) SetAccountId(_accountId string) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r TaobaoDeActivityLuckydrawAPIRequest) GetAccountId() string { + return r._accountId +} +// MachineId Setter +// 机器设备号 +func (r *TaobaoDeActivityLuckydrawAPIRequest) SetMachineId(_machineId string) error { + r._machineId = _machineId + r.Set("machine_id", _machineId) + return nil +} + +// MachineId Getter +func (r TaobaoDeActivityLuckydrawAPIRequest) GetMachineId() string { + return r._machineId +} +// ConfirmKey Setter +// 确认签名key +func (r *TaobaoDeActivityLuckydrawAPIRequest) SetConfirmKey(_confirmKey string) error { + r._confirmKey = _confirmKey + r.Set("confirm_key", _confirmKey) + return nil +} + +// ConfirmKey Getter +func (r TaobaoDeActivityLuckydrawAPIRequest) GetConfirmKey() string { + return r._confirmKey +} +// BehaviorKey Setter +// 行为Key +func (r *TaobaoDeActivityLuckydrawAPIRequest) SetBehaviorKey(_behaviorKey string) error { + r._behaviorKey = _behaviorKey + r.Set("behavior_key", _behaviorKey) + return nil +} + +// BehaviorKey Getter +func (r TaobaoDeActivityLuckydrawAPIRequest) GetBehaviorKey() string { + return r._behaviorKey +} +// Channel Setter +// 渠道 +func (r *TaobaoDeActivityLuckydrawAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r TaobaoDeActivityLuckydrawAPIRequest) GetChannel() string { + return r._channel +} +// Market Setter +// 使用市场 +func (r *TaobaoDeActivityLuckydrawAPIRequest) SetMarket(_market string) error { + r._market = _market + r.Set("market", _market) + return nil +} + +// Market Getter +func (r TaobaoDeActivityLuckydrawAPIRequest) GetMarket() string { + return r._market +} +// DeviceModel Setter +// 盒型号 +func (r *TaobaoDeActivityLuckydrawAPIRequest) SetDeviceModel(_deviceModel string) error { + r._deviceModel = _deviceModel + r.Set("device_model", _deviceModel) + return nil +} + +// DeviceModel Getter +func (r TaobaoDeActivityLuckydrawAPIRequest) GetDeviceModel() string { + return r._deviceModel +} +// DistribChannel Setter +// 魔盒分发渠道 +func (r *TaobaoDeActivityLuckydrawAPIRequest) SetDistribChannel(_distribChannel string) error { + r._distribChannel = _distribChannel + r.Set("distrib_channel", _distribChannel) + return nil +} + +// DistribChannel Getter +func (r TaobaoDeActivityLuckydrawAPIRequest) GetDistribChannel() string { + return r._distribChannel +} +// Uuid Setter +// 魔盒UUID +func (r *TaobaoDeActivityLuckydrawAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r TaobaoDeActivityLuckydrawAPIRequest) GetUuid() string { + return r._uuid +} diff --git a/model/gameact/TaobaoDeActivityLuckydrawAPIResponse.go b/model/gameact/TaobaoDeActivityLuckydrawAPIResponse.go new file mode 100644 index 0000000000..8538384adc --- /dev/null +++ b/model/gameact/TaobaoDeActivityLuckydrawAPIResponse.go @@ -0,0 +1,33 @@ +package gameact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖 API返回值 +taobao.de.activity.luckydraw + +用于激励平台对外提供抽奖功能,包括但不限于集分宝、红包、宝点、淘金币、淘彩票等 +*/ +type TaobaoDeActivityLuckydrawAPIResponse struct { + model.CommonResponse + TaobaoDeActivityLuckydrawAPIResponseModel +} + +// 抽奖 成功返回结果 +type TaobaoDeActivityLuckydrawAPIResponseModel struct { + XMLName xml.Name `xml:"de_activity_luckydraw_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 中奖奖品 + AwardVO *AwardVO `json:"award_v_o,omitempty" xml:"award_v_o,omitempty"` + // 123 + IsLucky bool `json:"is_lucky,omitempty" xml:"is_lucky,omitempty"` + // 数娱积分/金牌余额 + TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"` + // 可用抽奖次数 + AccessAmount int64 `json:"access_amount,omitempty" xml:"access_amount,omitempty"` +} diff --git a/model/gameact/TaobaoDeActivityLuckydrawResponse.go b/model/gameact/TaobaoDeActivityLuckydrawResponse.go deleted file mode 100644 index 9dc9e596b9..0000000000 --- a/model/gameact/TaobaoDeActivityLuckydrawResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package gameact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -抽奖 API返回值 -taobao.de.activity.luckydraw - -用于激励平台对外提供抽奖功能,包括但不限于集分宝、红包、宝点、淘金币、淘彩票等 -*/ -type TaobaoDeActivityLuckydrawAPIResponse struct { - model.CommonResponse - TaobaoDeActivityLuckydrawResponse -} - -// 抽奖 成功返回结果 -type TaobaoDeActivityLuckydrawResponse struct { - XMLName xml.Name `xml:"de_activity_luckydraw_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 中奖奖品 - AwardVO *AwardVO `json:"award_v_o,omitempty" xml:"award_v_o,omitempty"` - // 123 - IsLucky bool `json:"is_lucky,omitempty" xml:"is_lucky,omitempty"` - // 数娱积分/金牌余额 - TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"` - // 可用抽奖次数 - AccessAmount int64 `json:"access_amount,omitempty" xml:"access_amount,omitempty"` -} diff --git a/model/gameact/TaobaoDeActivityMachineidGetAPIRequest.go b/model/gameact/TaobaoDeActivityMachineidGetAPIRequest.go new file mode 100644 index 0000000000..f530819daf --- /dev/null +++ b/model/gameact/TaobaoDeActivityMachineidGetAPIRequest.go @@ -0,0 +1,38 @@ +package gameact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备号 API请求 +taobao.de.activity.machineid.get + +获取机器设备id +*/ +type TaobaoDeActivityMachineidGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoDeActivityMachineidGetAPIRequest对象 +func NewTaobaoDeActivityMachineidGetRequest() *TaobaoDeActivityMachineidGetAPIRequest{ + return &TaobaoDeActivityMachineidGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDeActivityMachineidGetAPIRequest) GetApiMethodName() string { + return "taobao.de.activity.machineid.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDeActivityMachineidGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/gameact/TaobaoDeActivityMachineidGetAPIResponse.go b/model/gameact/TaobaoDeActivityMachineidGetAPIResponse.go new file mode 100644 index 0000000000..a48c46c0da --- /dev/null +++ b/model/gameact/TaobaoDeActivityMachineidGetAPIResponse.go @@ -0,0 +1,27 @@ +package gameact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备号 API返回值 +taobao.de.activity.machineid.get + +获取机器设备id +*/ +type TaobaoDeActivityMachineidGetAPIResponse struct { + model.CommonResponse + TaobaoDeActivityMachineidGetAPIResponseModel +} + +// 获取设备号 成功返回结果 +type TaobaoDeActivityMachineidGetAPIResponseModel struct { + XMLName xml.Name `xml:"de_activity_machineid_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 机器号 + MachineId string `json:"machine_id,omitempty" xml:"machine_id,omitempty"` +} diff --git a/model/gameact/TaobaoDeActivityMachineidGetResponse.go b/model/gameact/TaobaoDeActivityMachineidGetResponse.go deleted file mode 100644 index 07781e3280..0000000000 --- a/model/gameact/TaobaoDeActivityMachineidGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package gameact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取设备号 API返回值 -taobao.de.activity.machineid.get - -获取机器设备id -*/ -type TaobaoDeActivityMachineidGetAPIResponse struct { - model.CommonResponse - TaobaoDeActivityMachineidGetResponse -} - -// 获取设备号 成功返回结果 -type TaobaoDeActivityMachineidGetResponse struct { - XMLName xml.Name `xml:"de_activity_machineid_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 机器号 - MachineId string `json:"machine_id,omitempty" xml:"machine_id,omitempty"` -} diff --git a/model/globalvirtual/AlibabaGlobalVirtualSendcodeAPIRequest.go b/model/globalvirtual/AlibabaGlobalVirtualSendcodeAPIRequest.go new file mode 100644 index 0000000000..3222815003 --- /dev/null +++ b/model/globalvirtual/AlibabaGlobalVirtualSendcodeAPIRequest.go @@ -0,0 +1,66 @@ +package globalvirtual + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +国际虚拟商品发码服务 API请求 +alibaba.global.virtual.sendcode + +global virtual send code service +*/ +type AlibabaGlobalVirtualSendcodeAPIRequest struct { + model.Params + // trade order id + _tradeOrderLineId int64 + // code list + _codeList []VirtualCertificateDo +} + +// 初始化AlibabaGlobalVirtualSendcodeAPIRequest对象 +func NewAlibabaGlobalVirtualSendcodeRequest() *AlibabaGlobalVirtualSendcodeAPIRequest{ + return &AlibabaGlobalVirtualSendcodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaGlobalVirtualSendcodeAPIRequest) GetApiMethodName() string { + return "alibaba.global.virtual.sendcode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaGlobalVirtualSendcodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeOrderLineId Setter +// trade order id +func (r *AlibabaGlobalVirtualSendcodeAPIRequest) SetTradeOrderLineId(_tradeOrderLineId int64) error { + r._tradeOrderLineId = _tradeOrderLineId + r.Set("trade_order_line_id", _tradeOrderLineId) + return nil +} + +// TradeOrderLineId Getter +func (r AlibabaGlobalVirtualSendcodeAPIRequest) GetTradeOrderLineId() int64 { + return r._tradeOrderLineId +} +// CodeList Setter +// code list +func (r *AlibabaGlobalVirtualSendcodeAPIRequest) SetCodeList(_codeList []VirtualCertificateDo) error { + r._codeList = _codeList + r.Set("code_list", _codeList) + return nil +} + +// CodeList Getter +func (r AlibabaGlobalVirtualSendcodeAPIRequest) GetCodeList() []VirtualCertificateDo { + return r._codeList +} diff --git a/model/globalvirtual/AlibabaGlobalVirtualSendcodeAPIResponse.go b/model/globalvirtual/AlibabaGlobalVirtualSendcodeAPIResponse.go new file mode 100644 index 0000000000..ac4e6b3e1b --- /dev/null +++ b/model/globalvirtual/AlibabaGlobalVirtualSendcodeAPIResponse.go @@ -0,0 +1,27 @@ +package globalvirtual + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +国际虚拟商品发码服务 API返回值 +alibaba.global.virtual.sendcode + +global virtual send code service +*/ +type AlibabaGlobalVirtualSendcodeAPIResponse struct { + model.CommonResponse + AlibabaGlobalVirtualSendcodeAPIResponseModel +} + +// 国际虚拟商品发码服务 成功返回结果 +type AlibabaGlobalVirtualSendcodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_global_virtual_sendcode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result describe + Result *AlibabaGlobalVirtualSendcodeResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/guoguo/CainiaoGuoguoBackupGraborderSubmitmailnoAPIRequest.go b/model/guoguo/CainiaoGuoguoBackupGraborderSubmitmailnoAPIRequest.go new file mode 100644 index 0000000000..61efbba2f9 --- /dev/null +++ b/model/guoguo/CainiaoGuoguoBackupGraborderSubmitmailnoAPIRequest.go @@ -0,0 +1,66 @@ +package guoguo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +兜底派送订单的运单号回传接口 API请求 +cainiao.guoguo.backup.graborder.submitmailno + +快递公司回传订单号和运单号给菜鸟裹裹 +*/ +type CainiaoGuoguoBackupGraborderSubmitmailnoAPIRequest struct { + model.Params + // 菜鸟物流订单号 + _orderCode string + // 运单号 + _mailNo string +} + +// 初始化CainiaoGuoguoBackupGraborderSubmitmailnoAPIRequest对象 +func NewCainiaoGuoguoBackupGraborderSubmitmailnoRequest() *CainiaoGuoguoBackupGraborderSubmitmailnoAPIRequest{ + return &CainiaoGuoguoBackupGraborderSubmitmailnoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoGuoguoBackupGraborderSubmitmailnoAPIRequest) GetApiMethodName() string { + return "cainiao.guoguo.backup.graborder.submitmailno" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoGuoguoBackupGraborderSubmitmailnoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderCode Setter +// 菜鸟物流订单号 +func (r *CainiaoGuoguoBackupGraborderSubmitmailnoAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("orderCode", _orderCode) + return nil +} + +// OrderCode Getter +func (r CainiaoGuoguoBackupGraborderSubmitmailnoAPIRequest) GetOrderCode() string { + return r._orderCode +} +// MailNo Setter +// 运单号 +func (r *CainiaoGuoguoBackupGraborderSubmitmailnoAPIRequest) SetMailNo(_mailNo string) error { + r._mailNo = _mailNo + r.Set("mailNo", _mailNo) + return nil +} + +// MailNo Getter +func (r CainiaoGuoguoBackupGraborderSubmitmailnoAPIRequest) GetMailNo() string { + return r._mailNo +} diff --git a/model/guoguo/CainiaoGuoguoBackupGraborderSubmitmailnoAPIResponse.go b/model/guoguo/CainiaoGuoguoBackupGraborderSubmitmailnoAPIResponse.go new file mode 100644 index 0000000000..91ac5b23a7 --- /dev/null +++ b/model/guoguo/CainiaoGuoguoBackupGraborderSubmitmailnoAPIResponse.go @@ -0,0 +1,27 @@ +package guoguo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +兜底派送订单的运单号回传接口 API返回值 +cainiao.guoguo.backup.graborder.submitmailno + +快递公司回传订单号和运单号给菜鸟裹裹 +*/ +type CainiaoGuoguoBackupGraborderSubmitmailnoAPIResponse struct { + model.CommonResponse + CainiaoGuoguoBackupGraborderSubmitmailnoAPIResponseModel +} + +// 兜底派送订单的运单号回传接口 成功返回结果 +type CainiaoGuoguoBackupGraborderSubmitmailnoAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_guoguo_backup_graborder_submitmailno_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回result对象 + Result *CainiaoGuoguoBackupGraborderSubmitmailnoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/guoguo/CainiaoGuoguoBackupGraborderSubmitmailnoResponse.go b/model/guoguo/CainiaoGuoguoBackupGraborderSubmitmailnoResponse.go deleted file mode 100644 index 9d4b3ee807..0000000000 --- a/model/guoguo/CainiaoGuoguoBackupGraborderSubmitmailnoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package guoguo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -兜底派送订单的运单号回传接口 API返回值 -cainiao.guoguo.backup.graborder.submitmailno - -快递公司回传订单号和运单号给菜鸟裹裹 -*/ -type CainiaoGuoguoBackupGraborderSubmitmailnoAPIResponse struct { - model.CommonResponse - CainiaoGuoguoBackupGraborderSubmitmailnoResponse -} - -// 兜底派送订单的运单号回传接口 成功返回结果 -type CainiaoGuoguoBackupGraborderSubmitmailnoResponse struct { - XMLName xml.Name `xml:"cainiao_guoguo_backup_graborder_submitmailno_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回result对象 - Result *CainiaoGuoguoBackupGraborderSubmitmailnoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/guoguo/CainiaoGuoguoBackupGraborderTakepackageAPIRequest.go b/model/guoguo/CainiaoGuoguoBackupGraborderTakepackageAPIRequest.go new file mode 100644 index 0000000000..9509f356d1 --- /dev/null +++ b/model/guoguo/CainiaoGuoguoBackupGraborderTakepackageAPIRequest.go @@ -0,0 +1,66 @@ +package guoguo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +兜底派送订单的揽件接口 API请求 +cainiao.guoguo.backup.graborder.takepackage + +快递公司回传订单号和四位取件码给菜鸟裹裹 +*/ +type CainiaoGuoguoBackupGraborderTakepackageAPIRequest struct { + model.Params + // 物流订单号 + _orderCode string + // 包裹四位码 + _packageCode string +} + +// 初始化CainiaoGuoguoBackupGraborderTakepackageAPIRequest对象 +func NewCainiaoGuoguoBackupGraborderTakepackageRequest() *CainiaoGuoguoBackupGraborderTakepackageAPIRequest{ + return &CainiaoGuoguoBackupGraborderTakepackageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoGuoguoBackupGraborderTakepackageAPIRequest) GetApiMethodName() string { + return "cainiao.guoguo.backup.graborder.takepackage" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoGuoguoBackupGraborderTakepackageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderCode Setter +// 物流订单号 +func (r *CainiaoGuoguoBackupGraborderTakepackageAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("orderCode", _orderCode) + return nil +} + +// OrderCode Getter +func (r CainiaoGuoguoBackupGraborderTakepackageAPIRequest) GetOrderCode() string { + return r._orderCode +} +// PackageCode Setter +// 包裹四位码 +func (r *CainiaoGuoguoBackupGraborderTakepackageAPIRequest) SetPackageCode(_packageCode string) error { + r._packageCode = _packageCode + r.Set("packageCode", _packageCode) + return nil +} + +// PackageCode Getter +func (r CainiaoGuoguoBackupGraborderTakepackageAPIRequest) GetPackageCode() string { + return r._packageCode +} diff --git a/model/guoguo/CainiaoGuoguoBackupGraborderTakepackageAPIResponse.go b/model/guoguo/CainiaoGuoguoBackupGraborderTakepackageAPIResponse.go new file mode 100644 index 0000000000..c761a63d0f --- /dev/null +++ b/model/guoguo/CainiaoGuoguoBackupGraborderTakepackageAPIResponse.go @@ -0,0 +1,27 @@ +package guoguo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +兜底派送订单的揽件接口 API返回值 +cainiao.guoguo.backup.graborder.takepackage + +快递公司回传订单号和四位取件码给菜鸟裹裹 +*/ +type CainiaoGuoguoBackupGraborderTakepackageAPIResponse struct { + model.CommonResponse + CainiaoGuoguoBackupGraborderTakepackageAPIResponseModel +} + +// 兜底派送订单的揽件接口 成功返回结果 +type CainiaoGuoguoBackupGraborderTakepackageAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_guoguo_backup_graborder_takepackage_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *CainiaoGuoguoBackupGraborderTakepackageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/guoguo/CainiaoGuoguoBackupGraborderTakepackageResponse.go b/model/guoguo/CainiaoGuoguoBackupGraborderTakepackageResponse.go deleted file mode 100644 index 57ab1b63f3..0000000000 --- a/model/guoguo/CainiaoGuoguoBackupGraborderTakepackageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package guoguo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -兜底派送订单的揽件接口 API返回值 -cainiao.guoguo.backup.graborder.takepackage - -快递公司回传订单号和四位取件码给菜鸟裹裹 -*/ -type CainiaoGuoguoBackupGraborderTakepackageAPIResponse struct { - model.CommonResponse - CainiaoGuoguoBackupGraborderTakepackageResponse -} - -// 兜底派送订单的揽件接口 成功返回结果 -type CainiaoGuoguoBackupGraborderTakepackageResponse struct { - XMLName xml.Name `xml:"cainiao_guoguo_backup_graborder_takepackage_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *CainiaoGuoguoBackupGraborderTakepackageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/guoguo/CainiaoGuoguoCpBackupAssigncourierAPIRequest.go b/model/guoguo/CainiaoGuoguoCpBackupAssigncourierAPIRequest.go new file mode 100644 index 0000000000..9a3e1613b6 --- /dev/null +++ b/model/guoguo/CainiaoGuoguoCpBackupAssigncourierAPIRequest.go @@ -0,0 +1,136 @@ +package guoguo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +CP兜底后指定接单的小件员 API请求 +cainiao.guoguo.cp.backup.assigncourier + +CP兜底后指定接单的小件员;CP改派小件员 +*/ +type CainiaoGuoguoCpBackupAssigncourierAPIRequest struct { + model.Params + // 小件员所在公司编号 + _cpCode string + // 小件员员工编号 + _cpUserId string + // LP订单号 + _lpCode string + // 任务ID + _taskId int64 + // 指派/改派原因编码 + _assignReasonCode string + // 指派/改派原因 + _assignReason string + // 小件员手机号 + _mobile string +} + +// 初始化CainiaoGuoguoCpBackupAssigncourierAPIRequest对象 +func NewCainiaoGuoguoCpBackupAssigncourierRequest() *CainiaoGuoguoCpBackupAssigncourierAPIRequest{ + return &CainiaoGuoguoCpBackupAssigncourierAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoGuoguoCpBackupAssigncourierAPIRequest) GetApiMethodName() string { + return "cainiao.guoguo.cp.backup.assigncourier" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoGuoguoCpBackupAssigncourierAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CpCode Setter +// 小件员所在公司编号 +func (r *CainiaoGuoguoCpBackupAssigncourierAPIRequest) SetCpCode(_cpCode string) error { + r._cpCode = _cpCode + r.Set("cp_code", _cpCode) + return nil +} + +// CpCode Getter +func (r CainiaoGuoguoCpBackupAssigncourierAPIRequest) GetCpCode() string { + return r._cpCode +} +// CpUserId Setter +// 小件员员工编号 +func (r *CainiaoGuoguoCpBackupAssigncourierAPIRequest) SetCpUserId(_cpUserId string) error { + r._cpUserId = _cpUserId + r.Set("cp_user_id", _cpUserId) + return nil +} + +// CpUserId Getter +func (r CainiaoGuoguoCpBackupAssigncourierAPIRequest) GetCpUserId() string { + return r._cpUserId +} +// LpCode Setter +// LP订单号 +func (r *CainiaoGuoguoCpBackupAssigncourierAPIRequest) SetLpCode(_lpCode string) error { + r._lpCode = _lpCode + r.Set("lp_code", _lpCode) + return nil +} + +// LpCode Getter +func (r CainiaoGuoguoCpBackupAssigncourierAPIRequest) GetLpCode() string { + return r._lpCode +} +// TaskId Setter +// 任务ID +func (r *CainiaoGuoguoCpBackupAssigncourierAPIRequest) SetTaskId(_taskId int64) error { + r._taskId = _taskId + r.Set("task_id", _taskId) + return nil +} + +// TaskId Getter +func (r CainiaoGuoguoCpBackupAssigncourierAPIRequest) GetTaskId() int64 { + return r._taskId +} +// AssignReasonCode Setter +// 指派/改派原因编码 +func (r *CainiaoGuoguoCpBackupAssigncourierAPIRequest) SetAssignReasonCode(_assignReasonCode string) error { + r._assignReasonCode = _assignReasonCode + r.Set("assign_reason_code", _assignReasonCode) + return nil +} + +// AssignReasonCode Getter +func (r CainiaoGuoguoCpBackupAssigncourierAPIRequest) GetAssignReasonCode() string { + return r._assignReasonCode +} +// AssignReason Setter +// 指派/改派原因 +func (r *CainiaoGuoguoCpBackupAssigncourierAPIRequest) SetAssignReason(_assignReason string) error { + r._assignReason = _assignReason + r.Set("assign_reason", _assignReason) + return nil +} + +// AssignReason Getter +func (r CainiaoGuoguoCpBackupAssigncourierAPIRequest) GetAssignReason() string { + return r._assignReason +} +// Mobile Setter +// 小件员手机号 +func (r *CainiaoGuoguoCpBackupAssigncourierAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r CainiaoGuoguoCpBackupAssigncourierAPIRequest) GetMobile() string { + return r._mobile +} diff --git a/model/guoguo/CainiaoGuoguoCpBackupAssigncourierAPIResponse.go b/model/guoguo/CainiaoGuoguoCpBackupAssigncourierAPIResponse.go new file mode 100644 index 0000000000..9c072301ef --- /dev/null +++ b/model/guoguo/CainiaoGuoguoCpBackupAssigncourierAPIResponse.go @@ -0,0 +1,31 @@ +package guoguo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +CP兜底后指定接单的小件员 API返回值 +cainiao.guoguo.cp.backup.assigncourier + +CP兜底后指定接单的小件员;CP改派小件员 +*/ +type CainiaoGuoguoCpBackupAssigncourierAPIResponse struct { + model.CommonResponse + CainiaoGuoguoCpBackupAssigncourierAPIResponseModel +} + +// CP兜底后指定接单的小件员 成功返回结果 +type CainiaoGuoguoCpBackupAssigncourierAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_guoguo_cp_backup_assigncourier_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + StatusCode string `json:"status_code,omitempty" xml:"status_code,omitempty"` + // 错误信息 + StatusMessage string `json:"status_message,omitempty" xml:"status_message,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/guoguo/CainiaoGuoguoCpBackupAssigncourierResponse.go b/model/guoguo/CainiaoGuoguoCpBackupAssigncourierResponse.go deleted file mode 100644 index e5cebb6512..0000000000 --- a/model/guoguo/CainiaoGuoguoCpBackupAssigncourierResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package guoguo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -CP兜底后指定接单的小件员 API返回值 -cainiao.guoguo.cp.backup.assigncourier - -CP兜底后指定接单的小件员;CP改派小件员 -*/ -type CainiaoGuoguoCpBackupAssigncourierAPIResponse struct { - model.CommonResponse - CainiaoGuoguoCpBackupAssigncourierResponse -} - -// CP兜底后指定接单的小件员 成功返回结果 -type CainiaoGuoguoCpBackupAssigncourierResponse struct { - XMLName xml.Name `xml:"cainiao_guoguo_cp_backup_assigncourier_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - StatusCode string `json:"status_code,omitempty" xml:"status_code,omitempty"` - // 错误信息 - StatusMessage string `json:"status_message,omitempty" xml:"status_message,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/guoguo/CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest.go b/model/guoguo/CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest.go new file mode 100644 index 0000000000..a5ffc1e50c --- /dev/null +++ b/model/guoguo/CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest.go @@ -0,0 +1,108 @@ +package guoguo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据菜鸟账号ID指派小件员 API请求 +cainiao.guoguo.cp.backup.assigncourierbyid + +根据菜鸟账号ID指派小件员 +*/ +type CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest struct { + model.Params + // 指派/改派原因 + _assignReason string + // 指派/改派原因编码 + _assignReasonCode string + // 任务编号 + _taskId int64 + // 小件员菜鸟账号ID + _accountId int64 + // CP公司编号 + _cpCode string +} + +// 初始化CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest对象 +func NewCainiaoGuoguoCpBackupAssigncourierbyidRequest() *CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest{ + return &CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest) GetApiMethodName() string { + return "cainiao.guoguo.cp.backup.assigncourierbyid" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AssignReason Setter +// 指派/改派原因 +func (r *CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest) SetAssignReason(_assignReason string) error { + r._assignReason = _assignReason + r.Set("assign_reason", _assignReason) + return nil +} + +// AssignReason Getter +func (r CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest) GetAssignReason() string { + return r._assignReason +} +// AssignReasonCode Setter +// 指派/改派原因编码 +func (r *CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest) SetAssignReasonCode(_assignReasonCode string) error { + r._assignReasonCode = _assignReasonCode + r.Set("assign_reason_code", _assignReasonCode) + return nil +} + +// AssignReasonCode Getter +func (r CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest) GetAssignReasonCode() string { + return r._assignReasonCode +} +// TaskId Setter +// 任务编号 +func (r *CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest) SetTaskId(_taskId int64) error { + r._taskId = _taskId + r.Set("task_id", _taskId) + return nil +} + +// TaskId Getter +func (r CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest) GetTaskId() int64 { + return r._taskId +} +// AccountId Setter +// 小件员菜鸟账号ID +func (r *CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest) SetAccountId(_accountId int64) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest) GetAccountId() int64 { + return r._accountId +} +// CpCode Setter +// CP公司编号 +func (r *CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest) SetCpCode(_cpCode string) error { + r._cpCode = _cpCode + r.Set("cp_code", _cpCode) + return nil +} + +// CpCode Getter +func (r CainiaoGuoguoCpBackupAssigncourierbyidAPIRequest) GetCpCode() string { + return r._cpCode +} diff --git a/model/guoguo/CainiaoGuoguoCpBackupAssigncourierbyidAPIResponse.go b/model/guoguo/CainiaoGuoguoCpBackupAssigncourierbyidAPIResponse.go new file mode 100644 index 0000000000..8947def93e --- /dev/null +++ b/model/guoguo/CainiaoGuoguoCpBackupAssigncourierbyidAPIResponse.go @@ -0,0 +1,31 @@ +package guoguo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据菜鸟账号ID指派小件员 API返回值 +cainiao.guoguo.cp.backup.assigncourierbyid + +根据菜鸟账号ID指派小件员 +*/ +type CainiaoGuoguoCpBackupAssigncourierbyidAPIResponse struct { + model.CommonResponse + CainiaoGuoguoCpBackupAssigncourierbyidAPIResponseModel +} + +// 根据菜鸟账号ID指派小件员 成功返回结果 +type CainiaoGuoguoCpBackupAssigncourierbyidAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_guoguo_cp_backup_assigncourierbyid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 指派/改派是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误码 + StatusCode string `json:"status_code,omitempty" xml:"status_code,omitempty"` + // 错误信息描述 + StatusMessage string `json:"status_message,omitempty" xml:"status_message,omitempty"` +} diff --git a/model/guoguo/CainiaoGuoguoCpBackupAssigncourierbyidResponse.go b/model/guoguo/CainiaoGuoguoCpBackupAssigncourierbyidResponse.go deleted file mode 100644 index 5ab99a3d01..0000000000 --- a/model/guoguo/CainiaoGuoguoCpBackupAssigncourierbyidResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package guoguo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据菜鸟账号ID指派小件员 API返回值 -cainiao.guoguo.cp.backup.assigncourierbyid - -根据菜鸟账号ID指派小件员 -*/ -type CainiaoGuoguoCpBackupAssigncourierbyidAPIResponse struct { - model.CommonResponse - CainiaoGuoguoCpBackupAssigncourierbyidResponse -} - -// 根据菜鸟账号ID指派小件员 成功返回结果 -type CainiaoGuoguoCpBackupAssigncourierbyidResponse struct { - XMLName xml.Name `xml:"cainiao_guoguo_cp_backup_assigncourierbyid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 指派/改派是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误码 - StatusCode string `json:"status_code,omitempty" xml:"status_code,omitempty"` - // 错误信息描述 - StatusMessage string `json:"status_message,omitempty" xml:"status_message,omitempty"` -} diff --git a/model/guoguo/CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest.go b/model/guoguo/CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest.go new file mode 100644 index 0000000000..f1b55ba52c --- /dev/null +++ b/model/guoguo/CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest.go @@ -0,0 +1,164 @@ +package guoguo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +小件员信息变更 API请求 +cainiao.guoguo.cp.nborderfrontr.updateuser + +小件员信息变更 +*/ +type CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest struct { + model.Params + // 姓名 + _name string + // 网点站点信息 + _workStationName string + // 小件员员工编号 + _cpUserId string + // 支付宝账号 + _alipayAccount string + // 城市 + _cityName string + // 城市行政区域编码 + _cityCode string + // 网点站点编码 + _workStationCode string + // 小件员所在公司编号 + _cpCode string + // 手机号 + _mobile string +} + +// 初始化CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest对象 +func NewCainiaoGuoguoCpNborderfrontrUpdateuserRequest() *CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest{ + return &CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) GetApiMethodName() string { + return "cainiao.guoguo.cp.nborderfrontr.updateuser" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// 姓名 +func (r *CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) GetName() string { + return r._name +} +// WorkStationName Setter +// 网点站点信息 +func (r *CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) SetWorkStationName(_workStationName string) error { + r._workStationName = _workStationName + r.Set("work_station_name", _workStationName) + return nil +} + +// WorkStationName Getter +func (r CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) GetWorkStationName() string { + return r._workStationName +} +// CpUserId Setter +// 小件员员工编号 +func (r *CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) SetCpUserId(_cpUserId string) error { + r._cpUserId = _cpUserId + r.Set("cp_user_id", _cpUserId) + return nil +} + +// CpUserId Getter +func (r CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) GetCpUserId() string { + return r._cpUserId +} +// AlipayAccount Setter +// 支付宝账号 +func (r *CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) SetAlipayAccount(_alipayAccount string) error { + r._alipayAccount = _alipayAccount + r.Set("alipay_account", _alipayAccount) + return nil +} + +// AlipayAccount Getter +func (r CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) GetAlipayAccount() string { + return r._alipayAccount +} +// CityName Setter +// 城市 +func (r *CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) SetCityName(_cityName string) error { + r._cityName = _cityName + r.Set("city_name", _cityName) + return nil +} + +// CityName Getter +func (r CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) GetCityName() string { + return r._cityName +} +// CityCode Setter +// 城市行政区域编码 +func (r *CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) SetCityCode(_cityCode string) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) GetCityCode() string { + return r._cityCode +} +// WorkStationCode Setter +// 网点站点编码 +func (r *CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) SetWorkStationCode(_workStationCode string) error { + r._workStationCode = _workStationCode + r.Set("work_station_code", _workStationCode) + return nil +} + +// WorkStationCode Getter +func (r CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) GetWorkStationCode() string { + return r._workStationCode +} +// CpCode Setter +// 小件员所在公司编号 +func (r *CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) SetCpCode(_cpCode string) error { + r._cpCode = _cpCode + r.Set("cp_code", _cpCode) + return nil +} + +// CpCode Getter +func (r CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) GetCpCode() string { + return r._cpCode +} +// Mobile Setter +// 手机号 +func (r *CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r CainiaoGuoguoCpNborderfrontrUpdateuserAPIRequest) GetMobile() string { + return r._mobile +} diff --git a/model/guoguo/CainiaoGuoguoCpNborderfrontrUpdateuserAPIResponse.go b/model/guoguo/CainiaoGuoguoCpNborderfrontrUpdateuserAPIResponse.go new file mode 100644 index 0000000000..3c7719de86 --- /dev/null +++ b/model/guoguo/CainiaoGuoguoCpNborderfrontrUpdateuserAPIResponse.go @@ -0,0 +1,31 @@ +package guoguo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +小件员信息变更 API返回值 +cainiao.guoguo.cp.nborderfrontr.updateuser + +小件员信息变更 +*/ +type CainiaoGuoguoCpNborderfrontrUpdateuserAPIResponse struct { + model.CommonResponse + CainiaoGuoguoCpNborderfrontrUpdateuserAPIResponseModel +} + +// 小件员信息变更 成功返回结果 +type CainiaoGuoguoCpNborderfrontrUpdateuserAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_guoguo_cp_nborderfrontr_updateuser_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + StatusMessage string `json:"status_message,omitempty" xml:"status_message,omitempty"` + // errorCode + StatusCode string `json:"status_code,omitempty" xml:"status_code,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/guoguo/CainiaoGuoguoCpNborderfrontrUpdateuserResponse.go b/model/guoguo/CainiaoGuoguoCpNborderfrontrUpdateuserResponse.go deleted file mode 100644 index 1bdd78b13e..0000000000 --- a/model/guoguo/CainiaoGuoguoCpNborderfrontrUpdateuserResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package guoguo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -小件员信息变更 API返回值 -cainiao.guoguo.cp.nborderfrontr.updateuser - -小件员信息变更 -*/ -type CainiaoGuoguoCpNborderfrontrUpdateuserAPIResponse struct { - model.CommonResponse - CainiaoGuoguoCpNborderfrontrUpdateuserResponse -} - -// 小件员信息变更 成功返回结果 -type CainiaoGuoguoCpNborderfrontrUpdateuserResponse struct { - XMLName xml.Name `xml:"cainiao_guoguo_cp_nborderfrontr_updateuser_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - StatusMessage string `json:"status_message,omitempty" xml:"status_message,omitempty"` - // errorCode - StatusCode string `json:"status_code,omitempty" xml:"status_code,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/guoguo/CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest.go b/model/guoguo/CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest.go new file mode 100644 index 0000000000..8d9a0e3356 --- /dev/null +++ b/model/guoguo/CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest.go @@ -0,0 +1,136 @@ +package guoguo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传小件员GPS位置信息 API请求 +cainiao.guoguo.cp.nborderfrontr.uploadcoordinate + +上传小件员GPS位置信息 +*/ +type CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest struct { + model.Params + // 小件员所在公司编号 + _cpCode string + // 小件员员工编号 + _cpUserId string + // 上报时间,格式:yyyy-MM-dd HH:mm:ss + _timeStamp string + // 来源:1.小件员app sdk 2.驿站 3. 裹裹 10001.圆通行者 + _source int64 + // 经度 + _lng string + // 纬度 + _lat string + // 0 安卓定位, 1 苹果定位, 2 其他系统定位, 10 高德定位, 11 百度定位, 12 google定位 13 其他 + _gpsType string +} + +// 初始化CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest对象 +func NewCainiaoGuoguoCpNborderfrontrUploadcoordinateRequest() *CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest{ + return &CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest) GetApiMethodName() string { + return "cainiao.guoguo.cp.nborderfrontr.uploadcoordinate" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CpCode Setter +// 小件员所在公司编号 +func (r *CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest) SetCpCode(_cpCode string) error { + r._cpCode = _cpCode + r.Set("cp_code", _cpCode) + return nil +} + +// CpCode Getter +func (r CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest) GetCpCode() string { + return r._cpCode +} +// CpUserId Setter +// 小件员员工编号 +func (r *CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest) SetCpUserId(_cpUserId string) error { + r._cpUserId = _cpUserId + r.Set("cp_user_id", _cpUserId) + return nil +} + +// CpUserId Getter +func (r CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest) GetCpUserId() string { + return r._cpUserId +} +// TimeStamp Setter +// 上报时间,格式:yyyy-MM-dd HH:mm:ss +func (r *CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest) SetTimeStamp(_timeStamp string) error { + r._timeStamp = _timeStamp + r.Set("time_stamp", _timeStamp) + return nil +} + +// TimeStamp Getter +func (r CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest) GetTimeStamp() string { + return r._timeStamp +} +// Source Setter +// 来源:1.小件员app sdk 2.驿站 3. 裹裹 10001.圆通行者 +func (r *CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest) SetSource(_source int64) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest) GetSource() int64 { + return r._source +} +// Lng Setter +// 经度 +func (r *CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest) SetLng(_lng string) error { + r._lng = _lng + r.Set("lng", _lng) + return nil +} + +// Lng Getter +func (r CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest) GetLng() string { + return r._lng +} +// Lat Setter +// 纬度 +func (r *CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest) SetLat(_lat string) error { + r._lat = _lat + r.Set("lat", _lat) + return nil +} + +// Lat Getter +func (r CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest) GetLat() string { + return r._lat +} +// GpsType Setter +// 0 安卓定位, 1 苹果定位, 2 其他系统定位, 10 高德定位, 11 百度定位, 12 google定位 13 其他 +func (r *CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest) SetGpsType(_gpsType string) error { + r._gpsType = _gpsType + r.Set("gps_type", _gpsType) + return nil +} + +// GpsType Getter +func (r CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIRequest) GetGpsType() string { + return r._gpsType +} diff --git a/model/guoguo/CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIResponse.go b/model/guoguo/CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIResponse.go new file mode 100644 index 0000000000..29f808c8e1 --- /dev/null +++ b/model/guoguo/CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIResponse.go @@ -0,0 +1,31 @@ +package guoguo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传小件员GPS位置信息 API返回值 +cainiao.guoguo.cp.nborderfrontr.uploadcoordinate + +上传小件员GPS位置信息 +*/ +type CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIResponse struct { + model.CommonResponse + CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIResponseModel +} + +// 上传小件员GPS位置信息 成功返回结果 +type CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_guoguo_cp_nborderfrontr_uploadcoordinate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + StatusMessage string `json:"status_message,omitempty" xml:"status_message,omitempty"` + // 错误编码 + StatusCode string `json:"status_code,omitempty" xml:"status_code,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/guoguo/CainiaoGuoguoCpNborderfrontrUploadcoordinateResponse.go b/model/guoguo/CainiaoGuoguoCpNborderfrontrUploadcoordinateResponse.go deleted file mode 100644 index 96c9127d99..0000000000 --- a/model/guoguo/CainiaoGuoguoCpNborderfrontrUploadcoordinateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package guoguo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传小件员GPS位置信息 API返回值 -cainiao.guoguo.cp.nborderfrontr.uploadcoordinate - -上传小件员GPS位置信息 -*/ -type CainiaoGuoguoCpNborderfrontrUploadcoordinateAPIResponse struct { - model.CommonResponse - CainiaoGuoguoCpNborderfrontrUploadcoordinateResponse -} - -// 上传小件员GPS位置信息 成功返回结果 -type CainiaoGuoguoCpNborderfrontrUploadcoordinateResponse struct { - XMLName xml.Name `xml:"cainiao_guoguo_cp_nborderfrontr_uploadcoordinate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - StatusMessage string `json:"status_message,omitempty" xml:"status_message,omitempty"` - // 错误编码 - StatusCode string `json:"status_code,omitempty" xml:"status_code,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripFreeloginGetusercontextAPIRequest.go b/model/happytrip/AlibabaHappytripFreeloginGetusercontextAPIRequest.go new file mode 100644 index 0000000000..ce96b469f9 --- /dev/null +++ b/model/happytrip/AlibabaHappytripFreeloginGetusercontextAPIRequest.go @@ -0,0 +1,52 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提供给外部系统的免登校验 API请求 +alibaba.happytrip.freelogin.getusercontext + +免登融合,提供免登相关接口给外部供应商做登录验证 +*/ +type AlibabaHappytripFreeloginGetusercontextAPIRequest struct { + model.Params + // 请求入参 + _req *SsoParamDto +} + +// 初始化AlibabaHappytripFreeloginGetusercontextAPIRequest对象 +func NewAlibabaHappytripFreeloginGetusercontextRequest() *AlibabaHappytripFreeloginGetusercontextAPIRequest{ + return &AlibabaHappytripFreeloginGetusercontextAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripFreeloginGetusercontextAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.freelogin.getusercontext" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripFreeloginGetusercontextAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Req Setter +// 请求入参 +func (r *AlibabaHappytripFreeloginGetusercontextAPIRequest) SetReq(_req *SsoParamDto) error { + r._req = _req + r.Set("req", _req) + return nil +} + +// Req Getter +func (r AlibabaHappytripFreeloginGetusercontextAPIRequest) GetReq() *SsoParamDto { + return r._req +} diff --git a/model/happytrip/AlibabaHappytripFreeloginGetusercontextAPIResponse.go b/model/happytrip/AlibabaHappytripFreeloginGetusercontextAPIResponse.go new file mode 100644 index 0000000000..04c5abf5ad --- /dev/null +++ b/model/happytrip/AlibabaHappytripFreeloginGetusercontextAPIResponse.go @@ -0,0 +1,27 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提供给外部系统的免登校验 API返回值 +alibaba.happytrip.freelogin.getusercontext + +免登融合,提供免登相关接口给外部供应商做登录验证 +*/ +type AlibabaHappytripFreeloginGetusercontextAPIResponse struct { + model.CommonResponse + AlibabaHappytripFreeloginGetusercontextAPIResponseModel +} + +// 提供给外部系统的免登校验 成功返回结果 +type AlibabaHappytripFreeloginGetusercontextAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_freelogin_getusercontext_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求响应 + Rep *AlibabaHappytripFreeloginGetusercontextResult `json:"rep,omitempty" xml:"rep,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripFreeloginGetusercontextResponse.go b/model/happytrip/AlibabaHappytripFreeloginGetusercontextResponse.go deleted file mode 100644 index 1593852495..0000000000 --- a/model/happytrip/AlibabaHappytripFreeloginGetusercontextResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提供给外部系统的免登校验 API返回值 -alibaba.happytrip.freelogin.getusercontext - -免登融合,提供免登相关接口给外部供应商做登录验证 -*/ -type AlibabaHappytripFreeloginGetusercontextAPIResponse struct { - model.CommonResponse - AlibabaHappytripFreeloginGetusercontextResponse -} - -// 提供给外部系统的免登校验 成功返回结果 -type AlibabaHappytripFreeloginGetusercontextResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_freelogin_getusercontext_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求响应 - Rep *AlibabaHappytripFreeloginGetusercontextResult `json:"rep,omitempty" xml:"rep,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripOrderGetAPIRequest.go b/model/happytrip/AlibabaHappytripOrderGetAPIRequest.go new file mode 100644 index 0000000000..8cd7b067cd --- /dev/null +++ b/model/happytrip/AlibabaHappytripOrderGetAPIRequest.go @@ -0,0 +1,52 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取欢行统一订单模型 API请求 +alibaba.happytrip.order.get + +通过订单id获取欢行统一订单模型数据 +*/ +type AlibabaHappytripOrderGetAPIRequest struct { + model.Params + // 订单id + _orderId int64 +} + +// 初始化AlibabaHappytripOrderGetAPIRequest对象 +func NewAlibabaHappytripOrderGetRequest() *AlibabaHappytripOrderGetAPIRequest{ + return &AlibabaHappytripOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripOrderGetAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单id +func (r *AlibabaHappytripOrderGetAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHappytripOrderGetAPIRequest) GetOrderId() int64 { + return r._orderId +} diff --git a/model/happytrip/AlibabaHappytripOrderGetAPIResponse.go b/model/happytrip/AlibabaHappytripOrderGetAPIResponse.go new file mode 100644 index 0000000000..e2a2641832 --- /dev/null +++ b/model/happytrip/AlibabaHappytripOrderGetAPIResponse.go @@ -0,0 +1,39 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取欢行统一订单模型 API返回值 +alibaba.happytrip.order.get + +通过订单id获取欢行统一订单模型数据 +*/ +type AlibabaHappytripOrderGetAPIResponse struct { + model.CommonResponse + AlibabaHappytripOrderGetAPIResponseModel +} + +// 获取欢行统一订单模型 成功返回结果 +type AlibabaHappytripOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单联系人列表 + Contacts []ContactDto `json:"contacts,omitempty" xml:"contacts>contact_dto,omitempty"` + // 机票预订信息列表 + HotelBooks []HotelBookDto `json:"hotel_books,omitempty" xml:"hotel_books>hotel_book_dto,omitempty"` + // 酒店资源详情 + HotelResources []ResourceHotelDto `json:"hotel_resources,omitempty" xml:"hotel_resources>resource_hotel_dto,omitempty"` + // 订单扩展信息 + OrderExtendsInfo *OrderExtendsDto `json:"order_extends_info,omitempty" xml:"order_extends_info,omitempty"` + // 订单基本信息 + OrderInfo *OrderDto `json:"order_info,omitempty" xml:"order_info,omitempty"` + // 订单资源列表 + Resources []ResourceMainDto `json:"resources,omitempty" xml:"resources>resource_main_dto,omitempty"` + // 订单出行人列表 + Tourists []TouristDto `json:"tourists,omitempty" xml:"tourists>tourist_dto,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripOrderGetResponse.go b/model/happytrip/AlibabaHappytripOrderGetResponse.go deleted file mode 100644 index ed0cfd0de9..0000000000 --- a/model/happytrip/AlibabaHappytripOrderGetResponse.go +++ /dev/null @@ -1,39 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取欢行统一订单模型 API返回值 -alibaba.happytrip.order.get - -通过订单id获取欢行统一订单模型数据 -*/ -type AlibabaHappytripOrderGetAPIResponse struct { - model.CommonResponse - AlibabaHappytripOrderGetResponse -} - -// 获取欢行统一订单模型 成功返回结果 -type AlibabaHappytripOrderGetResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单联系人列表 - Contacts []ContactDto `json:"contacts,omitempty" xml:"contacts>contact_dto,omitempty"` - // 机票预订信息列表 - HotelBooks []HotelBookDto `json:"hotel_books,omitempty" xml:"hotel_books>hotel_book_dto,omitempty"` - // 酒店资源详情 - HotelResources []ResourceHotelDto `json:"hotel_resources,omitempty" xml:"hotel_resources>resource_hotel_dto,omitempty"` - // 订单扩展信息 - OrderExtendsInfo *OrderExtendsDto `json:"order_extends_info,omitempty" xml:"order_extends_info,omitempty"` - // 订单基本信息 - OrderInfo *OrderDto `json:"order_info,omitempty" xml:"order_info,omitempty"` - // 订单资源列表 - Resources []ResourceMainDto `json:"resources,omitempty" xml:"resources>resource_main_dto,omitempty"` - // 订单出行人列表 - Tourists []TouristDto `json:"tourists,omitempty" xml:"tourists>tourist_dto,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripTaxiCityGetidAPIRequest.go b/model/happytrip/AlibabaHappytripTaxiCityGetidAPIRequest.go new file mode 100644 index 0000000000..d9145f5f9a --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiCityGetidAPIRequest.go @@ -0,0 +1,80 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取城市id API请求 +alibaba.happytrip.taxi.city.getid + +通过经纬度坐标返回城市id +*/ +type AlibabaHappytripTaxiCityGetidAPIRequest struct { + model.Params + // 纬度 + _lat string + // 经度 + _lng string + // 地图类型:amap:高德,默认高德地图 + _mapType string +} + +// 初始化AlibabaHappytripTaxiCityGetidAPIRequest对象 +func NewAlibabaHappytripTaxiCityGetidRequest() *AlibabaHappytripTaxiCityGetidAPIRequest{ + return &AlibabaHappytripTaxiCityGetidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripTaxiCityGetidAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.taxi.city.getid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripTaxiCityGetidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Lat Setter +// 纬度 +func (r *AlibabaHappytripTaxiCityGetidAPIRequest) SetLat(_lat string) error { + r._lat = _lat + r.Set("lat", _lat) + return nil +} + +// Lat Getter +func (r AlibabaHappytripTaxiCityGetidAPIRequest) GetLat() string { + return r._lat +} +// Lng Setter +// 经度 +func (r *AlibabaHappytripTaxiCityGetidAPIRequest) SetLng(_lng string) error { + r._lng = _lng + r.Set("lng", _lng) + return nil +} + +// Lng Getter +func (r AlibabaHappytripTaxiCityGetidAPIRequest) GetLng() string { + return r._lng +} +// MapType Setter +// 地图类型:amap:高德,默认高德地图 +func (r *AlibabaHappytripTaxiCityGetidAPIRequest) SetMapType(_mapType string) error { + r._mapType = _mapType + r.Set("map_type", _mapType) + return nil +} + +// MapType Getter +func (r AlibabaHappytripTaxiCityGetidAPIRequest) GetMapType() string { + return r._mapType +} diff --git a/model/happytrip/AlibabaHappytripTaxiCityGetidAPIResponse.go b/model/happytrip/AlibabaHappytripTaxiCityGetidAPIResponse.go new file mode 100644 index 0000000000..f5f9780379 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiCityGetidAPIResponse.go @@ -0,0 +1,31 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取城市id API返回值 +alibaba.happytrip.taxi.city.getid + +通过经纬度坐标返回城市id +*/ +type AlibabaHappytripTaxiCityGetidAPIResponse struct { + model.CommonResponse + AlibabaHappytripTaxiCityGetidAPIResponseModel +} + +// 获取城市id 成功返回结果 +type AlibabaHappytripTaxiCityGetidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_taxi_city_getid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Data *CityGetIdResult `json:"data,omitempty" xml:"data,omitempty"` + // 错误码 + Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` + // 错误信息 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripTaxiCityGetidResponse.go b/model/happytrip/AlibabaHappytripTaxiCityGetidResponse.go deleted file mode 100644 index f6c4c35e52..0000000000 --- a/model/happytrip/AlibabaHappytripTaxiCityGetidResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取城市id API返回值 -alibaba.happytrip.taxi.city.getid - -通过经纬度坐标返回城市id -*/ -type AlibabaHappytripTaxiCityGetidAPIResponse struct { - model.CommonResponse - AlibabaHappytripTaxiCityGetidResponse -} - -// 获取城市id 成功返回结果 -type AlibabaHappytripTaxiCityGetidResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_taxi_city_getid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Data *CityGetIdResult `json:"data,omitempty" xml:"data,omitempty"` - // 错误码 - Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` - // 错误信息 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripTaxiDriverBlacklistAddAPIRequest.go b/model/happytrip/AlibabaHappytripTaxiDriverBlacklistAddAPIRequest.go new file mode 100644 index 0000000000..1e2e4f5298 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiDriverBlacklistAddAPIRequest.go @@ -0,0 +1,80 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加司机黑名单 API请求 +alibaba.happytrip.taxi.driver.blacklist.add + +实现用户1对1永久拉黑司机,如果不支持永久拉黑,则在自动解禁黑名单司机时需回调通知欢行 +*/ +type AlibabaHappytripTaxiDriverBlacklistAddAPIRequest struct { + model.Params + // 供应商单号 + _orderId string + // 用户唯一标识 + _uid string + // 司机唯一标识 + _driverId string +} + +// 初始化AlibabaHappytripTaxiDriverBlacklistAddAPIRequest对象 +func NewAlibabaHappytripTaxiDriverBlacklistAddRequest() *AlibabaHappytripTaxiDriverBlacklistAddAPIRequest{ + return &AlibabaHappytripTaxiDriverBlacklistAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripTaxiDriverBlacklistAddAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.taxi.driver.blacklist.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripTaxiDriverBlacklistAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 供应商单号 +func (r *AlibabaHappytripTaxiDriverBlacklistAddAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHappytripTaxiDriverBlacklistAddAPIRequest) GetOrderId() string { + return r._orderId +} +// Uid Setter +// 用户唯一标识 +func (r *AlibabaHappytripTaxiDriverBlacklistAddAPIRequest) SetUid(_uid string) error { + r._uid = _uid + r.Set("uid", _uid) + return nil +} + +// Uid Getter +func (r AlibabaHappytripTaxiDriverBlacklistAddAPIRequest) GetUid() string { + return r._uid +} +// DriverId Setter +// 司机唯一标识 +func (r *AlibabaHappytripTaxiDriverBlacklistAddAPIRequest) SetDriverId(_driverId string) error { + r._driverId = _driverId + r.Set("driver_id", _driverId) + return nil +} + +// DriverId Getter +func (r AlibabaHappytripTaxiDriverBlacklistAddAPIRequest) GetDriverId() string { + return r._driverId +} diff --git a/model/happytrip/AlibabaHappytripTaxiDriverBlacklistAddAPIResponse.go b/model/happytrip/AlibabaHappytripTaxiDriverBlacklistAddAPIResponse.go new file mode 100644 index 0000000000..b2693b8d8a --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiDriverBlacklistAddAPIResponse.go @@ -0,0 +1,29 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加司机黑名单 API返回值 +alibaba.happytrip.taxi.driver.blacklist.add + +实现用户1对1永久拉黑司机,如果不支持永久拉黑,则在自动解禁黑名单司机时需回调通知欢行 +*/ +type AlibabaHappytripTaxiDriverBlacklistAddAPIResponse struct { + model.CommonResponse + AlibabaHappytripTaxiDriverBlacklistAddAPIResponseModel +} + +// 添加司机黑名单 成功返回结果 +type AlibabaHappytripTaxiDriverBlacklistAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_taxi_driver_blacklist_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误代码 + Errno string `json:"errno,omitempty" xml:"errno,omitempty"` + // 错误描述 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripTaxiDriverBlacklistAddResponse.go b/model/happytrip/AlibabaHappytripTaxiDriverBlacklistAddResponse.go deleted file mode 100644 index d578568d98..0000000000 --- a/model/happytrip/AlibabaHappytripTaxiDriverBlacklistAddResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加司机黑名单 API返回值 -alibaba.happytrip.taxi.driver.blacklist.add - -实现用户1对1永久拉黑司机,如果不支持永久拉黑,则在自动解禁黑名单司机时需回调通知欢行 -*/ -type AlibabaHappytripTaxiDriverBlacklistAddAPIResponse struct { - model.CommonResponse - AlibabaHappytripTaxiDriverBlacklistAddResponse -} - -// 添加司机黑名单 成功返回结果 -type AlibabaHappytripTaxiDriverBlacklistAddResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_taxi_driver_blacklist_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误代码 - Errno string `json:"errno,omitempty" xml:"errno,omitempty"` - // 错误描述 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripTaxiDriverBlacklistRemoveAPIRequest.go b/model/happytrip/AlibabaHappytripTaxiDriverBlacklistRemoveAPIRequest.go new file mode 100644 index 0000000000..6d6d3fdc86 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiDriverBlacklistRemoveAPIRequest.go @@ -0,0 +1,80 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +移除司机黑名单 API请求 +alibaba.happytrip.taxi.driver.blacklist.remove + +移除司机黑名单 +*/ +type AlibabaHappytripTaxiDriverBlacklistRemoveAPIRequest struct { + model.Params + // 供应商单号 + _orderId string + // 用户唯一标识 + _uid string + // 司机唯一标识 + _driverId string +} + +// 初始化AlibabaHappytripTaxiDriverBlacklistRemoveAPIRequest对象 +func NewAlibabaHappytripTaxiDriverBlacklistRemoveRequest() *AlibabaHappytripTaxiDriverBlacklistRemoveAPIRequest{ + return &AlibabaHappytripTaxiDriverBlacklistRemoveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripTaxiDriverBlacklistRemoveAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.taxi.driver.blacklist.remove" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripTaxiDriverBlacklistRemoveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 供应商单号 +func (r *AlibabaHappytripTaxiDriverBlacklistRemoveAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHappytripTaxiDriverBlacklistRemoveAPIRequest) GetOrderId() string { + return r._orderId +} +// Uid Setter +// 用户唯一标识 +func (r *AlibabaHappytripTaxiDriverBlacklistRemoveAPIRequest) SetUid(_uid string) error { + r._uid = _uid + r.Set("uid", _uid) + return nil +} + +// Uid Getter +func (r AlibabaHappytripTaxiDriverBlacklistRemoveAPIRequest) GetUid() string { + return r._uid +} +// DriverId Setter +// 司机唯一标识 +func (r *AlibabaHappytripTaxiDriverBlacklistRemoveAPIRequest) SetDriverId(_driverId string) error { + r._driverId = _driverId + r.Set("driver_id", _driverId) + return nil +} + +// DriverId Getter +func (r AlibabaHappytripTaxiDriverBlacklistRemoveAPIRequest) GetDriverId() string { + return r._driverId +} diff --git a/model/happytrip/AlibabaHappytripTaxiDriverBlacklistRemoveAPIResponse.go b/model/happytrip/AlibabaHappytripTaxiDriverBlacklistRemoveAPIResponse.go new file mode 100644 index 0000000000..254f2c5f8e --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiDriverBlacklistRemoveAPIResponse.go @@ -0,0 +1,29 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +移除司机黑名单 API返回值 +alibaba.happytrip.taxi.driver.blacklist.remove + +移除司机黑名单 +*/ +type AlibabaHappytripTaxiDriverBlacklistRemoveAPIResponse struct { + model.CommonResponse + AlibabaHappytripTaxiDriverBlacklistRemoveAPIResponseModel +} + +// 移除司机黑名单 成功返回结果 +type AlibabaHappytripTaxiDriverBlacklistRemoveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_taxi_driver_blacklist_remove_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误代码 + Errno string `json:"errno,omitempty" xml:"errno,omitempty"` + // 错误描述 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripTaxiDriverBlacklistRemoveResponse.go b/model/happytrip/AlibabaHappytripTaxiDriverBlacklistRemoveResponse.go deleted file mode 100644 index d1d0fcbee0..0000000000 --- a/model/happytrip/AlibabaHappytripTaxiDriverBlacklistRemoveResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -移除司机黑名单 API返回值 -alibaba.happytrip.taxi.driver.blacklist.remove - -移除司机黑名单 -*/ -type AlibabaHappytripTaxiDriverBlacklistRemoveAPIResponse struct { - model.CommonResponse - AlibabaHappytripTaxiDriverBlacklistRemoveResponse -} - -// 移除司机黑名单 成功返回结果 -type AlibabaHappytripTaxiDriverBlacklistRemoveResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_taxi_driver_blacklist_remove_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误代码 - Errno string `json:"errno,omitempty" xml:"errno,omitempty"` - // 错误描述 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripTaxiDriverLocationGetAPIRequest.go b/model/happytrip/AlibabaHappytripTaxiDriverLocationGetAPIRequest.go new file mode 100644 index 0000000000..53bc0f1340 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiDriverLocationGetAPIRequest.go @@ -0,0 +1,52 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +司机位置 API请求 +alibaba.happytrip.taxi.driver.location.get + +获取司机实时位置 +*/ +type AlibabaHappytripTaxiDriverLocationGetAPIRequest struct { + model.Params + // 供应商订单号 + _orderId string +} + +// 初始化AlibabaHappytripTaxiDriverLocationGetAPIRequest对象 +func NewAlibabaHappytripTaxiDriverLocationGetRequest() *AlibabaHappytripTaxiDriverLocationGetAPIRequest{ + return &AlibabaHappytripTaxiDriverLocationGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripTaxiDriverLocationGetAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.taxi.driver.location.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripTaxiDriverLocationGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 供应商订单号 +func (r *AlibabaHappytripTaxiDriverLocationGetAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHappytripTaxiDriverLocationGetAPIRequest) GetOrderId() string { + return r._orderId +} diff --git a/model/happytrip/AlibabaHappytripTaxiDriverLocationGetAPIResponse.go b/model/happytrip/AlibabaHappytripTaxiDriverLocationGetAPIResponse.go new file mode 100644 index 0000000000..46de2cd684 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiDriverLocationGetAPIResponse.go @@ -0,0 +1,31 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +司机位置 API返回值 +alibaba.happytrip.taxi.driver.location.get + +获取司机实时位置 +*/ +type AlibabaHappytripTaxiDriverLocationGetAPIResponse struct { + model.CommonResponse + AlibabaHappytripTaxiDriverLocationGetAPIResponseModel +} + +// 司机位置 成功返回结果 +type AlibabaHappytripTaxiDriverLocationGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_taxi_driver_location_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` + // 错误信息 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` + // 司机位置 + Data *AlibabaHappytripTaxiDriverLocationGetStruct `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripTaxiDriverLocationGetResponse.go b/model/happytrip/AlibabaHappytripTaxiDriverLocationGetResponse.go deleted file mode 100644 index 0608a09f99..0000000000 --- a/model/happytrip/AlibabaHappytripTaxiDriverLocationGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -司机位置 API返回值 -alibaba.happytrip.taxi.driver.location.get - -获取司机实时位置 -*/ -type AlibabaHappytripTaxiDriverLocationGetAPIResponse struct { - model.CommonResponse - AlibabaHappytripTaxiDriverLocationGetResponse -} - -// 司机位置 成功返回结果 -type AlibabaHappytripTaxiDriverLocationGetResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_taxi_driver_location_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` - // 错误信息 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` - // 司机位置 - Data *AlibabaHappytripTaxiDriverLocationGetStruct `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripTaxiIdGetAPIRequest.go b/model/happytrip/AlibabaHappytripTaxiIdGetAPIRequest.go new file mode 100644 index 0000000000..6971f838e4 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiIdGetAPIRequest.go @@ -0,0 +1,52 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取请求id API请求 +alibaba.happytrip.taxi.id.get + +获取订单号 +*/ +type AlibabaHappytripTaxiIdGetAPIRequest struct { + model.Params + // 用户唯一标识 + _uid string +} + +// 初始化AlibabaHappytripTaxiIdGetAPIRequest对象 +func NewAlibabaHappytripTaxiIdGetRequest() *AlibabaHappytripTaxiIdGetAPIRequest{ + return &AlibabaHappytripTaxiIdGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripTaxiIdGetAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.taxi.id.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripTaxiIdGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Uid Setter +// 用户唯一标识 +func (r *AlibabaHappytripTaxiIdGetAPIRequest) SetUid(_uid string) error { + r._uid = _uid + r.Set("uid", _uid) + return nil +} + +// Uid Getter +func (r AlibabaHappytripTaxiIdGetAPIRequest) GetUid() string { + return r._uid +} diff --git a/model/happytrip/AlibabaHappytripTaxiIdGetAPIResponse.go b/model/happytrip/AlibabaHappytripTaxiIdGetAPIResponse.go new file mode 100644 index 0000000000..58235bad9b --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiIdGetAPIResponse.go @@ -0,0 +1,31 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取请求id API返回值 +alibaba.happytrip.taxi.id.get + +获取订单号 +*/ +type AlibabaHappytripTaxiIdGetAPIResponse struct { + model.CommonResponse + AlibabaHappytripTaxiIdGetAPIResponseModel +} + +// 获取请求id 成功返回结果 +type AlibabaHappytripTaxiIdGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_taxi_id_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` + // id获取结果 + Data *GetIdResult `json:"data,omitempty" xml:"data,omitempty"` + // 错误信息 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripTaxiIdGetResponse.go b/model/happytrip/AlibabaHappytripTaxiIdGetResponse.go deleted file mode 100644 index cd4dbbf2b4..0000000000 --- a/model/happytrip/AlibabaHappytripTaxiIdGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取请求id API返回值 -alibaba.happytrip.taxi.id.get - -获取订单号 -*/ -type AlibabaHappytripTaxiIdGetAPIResponse struct { - model.CommonResponse - AlibabaHappytripTaxiIdGetResponse -} - -// 获取请求id 成功返回结果 -type AlibabaHappytripTaxiIdGetResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_taxi_id_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` - // id获取结果 - Data *GetIdResult `json:"data,omitempty" xml:"data,omitempty"` - // 错误信息 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderAssignAPIRequest.go b/model/happytrip/AlibabaHappytripTaxiOrderAssignAPIRequest.go new file mode 100644 index 0000000000..80527309bb --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderAssignAPIRequest.go @@ -0,0 +1,52 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单指派 API请求 +alibaba.happytrip.taxi.order.assign + +通知供应商订单指派成功 +*/ +type AlibabaHappytripTaxiOrderAssignAPIRequest struct { + model.Params + // 供应商订单号 + _orderId string +} + +// 初始化AlibabaHappytripTaxiOrderAssignAPIRequest对象 +func NewAlibabaHappytripTaxiOrderAssignRequest() *AlibabaHappytripTaxiOrderAssignAPIRequest{ + return &AlibabaHappytripTaxiOrderAssignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripTaxiOrderAssignAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.taxi.order.assign" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripTaxiOrderAssignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 供应商订单号 +func (r *AlibabaHappytripTaxiOrderAssignAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHappytripTaxiOrderAssignAPIRequest) GetOrderId() string { + return r._orderId +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderAssignAPIResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderAssignAPIResponse.go new file mode 100644 index 0000000000..0d94ff38e7 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderAssignAPIResponse.go @@ -0,0 +1,29 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单指派 API返回值 +alibaba.happytrip.taxi.order.assign + +通知供应商订单指派成功 +*/ +type AlibabaHappytripTaxiOrderAssignAPIResponse struct { + model.CommonResponse + AlibabaHappytripTaxiOrderAssignAPIResponseModel +} + +// 订单指派 成功返回结果 +type AlibabaHappytripTaxiOrderAssignAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_assign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误代码 + Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` + // 错误描述 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderAssignResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderAssignResponse.go deleted file mode 100644 index f2755d740b..0000000000 --- a/model/happytrip/AlibabaHappytripTaxiOrderAssignResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单指派 API返回值 -alibaba.happytrip.taxi.order.assign - -通知供应商订单指派成功 -*/ -type AlibabaHappytripTaxiOrderAssignAPIResponse struct { - model.CommonResponse - AlibabaHappytripTaxiOrderAssignResponse -} - -// 订单指派 成功返回结果 -type AlibabaHappytripTaxiOrderAssignResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_assign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误代码 - Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` - // 错误描述 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderCancelAPIRequest.go b/model/happytrip/AlibabaHappytripTaxiOrderCancelAPIRequest.go new file mode 100644 index 0000000000..50d987e149 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderCancelAPIRequest.go @@ -0,0 +1,80 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消叫车 API请求 +alibaba.happytrip.taxi.order.cancel + +取消叫车订单,行程中的订单不能取消 +*/ +type AlibabaHappytripTaxiOrderCancelAPIRequest struct { + model.Params + // 订单id + _orderId string + // 是否强制取消(true 或 false)默认false + _force string + // 取消类型,0:系统取消,非0:用户取消 + _type int64 +} + +// 初始化AlibabaHappytripTaxiOrderCancelAPIRequest对象 +func NewAlibabaHappytripTaxiOrderCancelRequest() *AlibabaHappytripTaxiOrderCancelAPIRequest{ + return &AlibabaHappytripTaxiOrderCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripTaxiOrderCancelAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.taxi.order.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripTaxiOrderCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单id +func (r *AlibabaHappytripTaxiOrderCancelAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHappytripTaxiOrderCancelAPIRequest) GetOrderId() string { + return r._orderId +} +// Force Setter +// 是否强制取消(true 或 false)默认false +func (r *AlibabaHappytripTaxiOrderCancelAPIRequest) SetForce(_force string) error { + r._force = _force + r.Set("force", _force) + return nil +} + +// Force Getter +func (r AlibabaHappytripTaxiOrderCancelAPIRequest) GetForce() string { + return r._force +} +// Type Setter +// 取消类型,0:系统取消,非0:用户取消 +func (r *AlibabaHappytripTaxiOrderCancelAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaHappytripTaxiOrderCancelAPIRequest) GetType() int64 { + return r._type +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderCancelAPIResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderCancelAPIResponse.go new file mode 100644 index 0000000000..036ebd3a3f --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderCancelAPIResponse.go @@ -0,0 +1,31 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消叫车 API返回值 +alibaba.happytrip.taxi.order.cancel + +取消叫车订单,行程中的订单不能取消 +*/ +type AlibabaHappytripTaxiOrderCancelAPIResponse struct { + model.CommonResponse + AlibabaHappytripTaxiOrderCancelAPIResponseModel +} + +// 取消叫车 成功返回结果 +type AlibabaHappytripTaxiOrderCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` + // 错误信息 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` + // 订单取消结果 + Data *OrderCancelResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderCancelResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderCancelResponse.go deleted file mode 100644 index a3bbfe7967..0000000000 --- a/model/happytrip/AlibabaHappytripTaxiOrderCancelResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消叫车 API返回值 -alibaba.happytrip.taxi.order.cancel - -取消叫车订单,行程中的订单不能取消 -*/ -type AlibabaHappytripTaxiOrderCancelAPIResponse struct { - model.CommonResponse - AlibabaHappytripTaxiOrderCancelResponse -} - -// 取消叫车 成功返回结果 -type AlibabaHappytripTaxiOrderCancelResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` - // 错误信息 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` - // 订单取消结果 - Data *OrderCancelResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderComplainAPIRequest.go b/model/happytrip/AlibabaHappytripTaxiOrderComplainAPIRequest.go new file mode 100644 index 0000000000..e08029c963 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderComplainAPIRequest.go @@ -0,0 +1,124 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户投诉 API请求 +alibaba.happytrip.taxi.order.complain + +一个订单只能投诉一次,不可重复投诉 + +投诉选项 +0 其他原因; +1 司机原因导致行程被取消; +2 服务态度恶劣; +3 未坐车产生费用; +4 额外收取不合理费用; +5 路不熟多产生费用; +6 提前计费; +7 未及时结束计费; +8 司机绕路; +9 司机迟到; +10 司机爽约或拒载; +11 骚扰乘客; +12 危险驾驶; +13 不是订单显示车辆或司机; +*/ +type AlibabaHappytripTaxiOrderComplainAPIRequest struct { + model.Params + // 订单id + _orderId string + // 投诉选项 0 其他原因; 1 司机原因导致行程被取消; 2 服务态度恶劣; 3 未坐车产生费用; 4 额外收取不合理费用; 5 路不熟多产生费用; 6 提前计费; 7 未及时结束计费; 8 司机绕路; 9 司机迟到; 10 司机爽约或拒载; 11 骚扰乘客; 12 危险驾驶; 13 不是订单显示车辆或司机; + _type int64 + // 投诉选项外的其他投诉内容,不能多于40个汉字 + _content string + // 该用户的真实号码 + _mobile string + // 投诉时间(毫秒) + _time int64 +} + +// 初始化AlibabaHappytripTaxiOrderComplainAPIRequest对象 +func NewAlibabaHappytripTaxiOrderComplainRequest() *AlibabaHappytripTaxiOrderComplainAPIRequest{ + return &AlibabaHappytripTaxiOrderComplainAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripTaxiOrderComplainAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.taxi.order.complain" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripTaxiOrderComplainAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单id +func (r *AlibabaHappytripTaxiOrderComplainAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHappytripTaxiOrderComplainAPIRequest) GetOrderId() string { + return r._orderId +} +// Type Setter +// 投诉选项 0 其他原因; 1 司机原因导致行程被取消; 2 服务态度恶劣; 3 未坐车产生费用; 4 额外收取不合理费用; 5 路不熟多产生费用; 6 提前计费; 7 未及时结束计费; 8 司机绕路; 9 司机迟到; 10 司机爽约或拒载; 11 骚扰乘客; 12 危险驾驶; 13 不是订单显示车辆或司机; +func (r *AlibabaHappytripTaxiOrderComplainAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaHappytripTaxiOrderComplainAPIRequest) GetType() int64 { + return r._type +} +// Content Setter +// 投诉选项外的其他投诉内容,不能多于40个汉字 +func (r *AlibabaHappytripTaxiOrderComplainAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r AlibabaHappytripTaxiOrderComplainAPIRequest) GetContent() string { + return r._content +} +// Mobile Setter +// 该用户的真实号码 +func (r *AlibabaHappytripTaxiOrderComplainAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r AlibabaHappytripTaxiOrderComplainAPIRequest) GetMobile() string { + return r._mobile +} +// Time Setter +// 投诉时间(毫秒) +func (r *AlibabaHappytripTaxiOrderComplainAPIRequest) SetTime(_time int64) error { + r._time = _time + r.Set("time", _time) + return nil +} + +// Time Getter +func (r AlibabaHappytripTaxiOrderComplainAPIRequest) GetTime() int64 { + return r._time +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderComplainAPIResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderComplainAPIResponse.go new file mode 100644 index 0000000000..c52a321521 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderComplainAPIResponse.go @@ -0,0 +1,47 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户投诉 API返回值 +alibaba.happytrip.taxi.order.complain + +一个订单只能投诉一次,不可重复投诉 + +投诉选项 +0 其他原因; +1 司机原因导致行程被取消; +2 服务态度恶劣; +3 未坐车产生费用; +4 额外收取不合理费用; +5 路不熟多产生费用; +6 提前计费; +7 未及时结束计费; +8 司机绕路; +9 司机迟到; +10 司机爽约或拒载; +11 骚扰乘客; +12 危险驾驶; +13 不是订单显示车辆或司机; +*/ +type AlibabaHappytripTaxiOrderComplainAPIResponse struct { + model.CommonResponse + AlibabaHappytripTaxiOrderComplainAPIResponseModel +} + +// 用户投诉 成功返回结果 +type AlibabaHappytripTaxiOrderComplainAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_complain_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` + // 错误信息 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` + // 投诉结果 + Data *AlibabaHappytripTaxiOrderComplainStruct `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderComplainResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderComplainResponse.go deleted file mode 100644 index f01c0b809e..0000000000 --- a/model/happytrip/AlibabaHappytripTaxiOrderComplainResponse.go +++ /dev/null @@ -1,47 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户投诉 API返回值 -alibaba.happytrip.taxi.order.complain - -一个订单只能投诉一次,不可重复投诉 - -投诉选项 -0 其他原因; -1 司机原因导致行程被取消; -2 服务态度恶劣; -3 未坐车产生费用; -4 额外收取不合理费用; -5 路不熟多产生费用; -6 提前计费; -7 未及时结束计费; -8 司机绕路; -9 司机迟到; -10 司机爽约或拒载; -11 骚扰乘客; -12 危险驾驶; -13 不是订单显示车辆或司机; -*/ -type AlibabaHappytripTaxiOrderComplainAPIResponse struct { - model.CommonResponse - AlibabaHappytripTaxiOrderComplainResponse -} - -// 用户投诉 成功返回结果 -type AlibabaHappytripTaxiOrderComplainResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_complain_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` - // 错误信息 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` - // 投诉结果 - Data *AlibabaHappytripTaxiOrderComplainStruct `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderComplaintGetAPIRequest.go b/model/happytrip/AlibabaHappytripTaxiOrderComplaintGetAPIRequest.go new file mode 100644 index 0000000000..125167074c --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderComplaintGetAPIRequest.go @@ -0,0 +1,66 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +投诉详情 API请求 +alibaba.happytrip.taxi.order.complaint.get + +获取投诉处理进度详情 +*/ +type AlibabaHappytripTaxiOrderComplaintGetAPIRequest struct { + model.Params + // 供应商订单号 + _orderId string + // 供应商工单号 + _caseId string +} + +// 初始化AlibabaHappytripTaxiOrderComplaintGetAPIRequest对象 +func NewAlibabaHappytripTaxiOrderComplaintGetRequest() *AlibabaHappytripTaxiOrderComplaintGetAPIRequest{ + return &AlibabaHappytripTaxiOrderComplaintGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripTaxiOrderComplaintGetAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.taxi.order.complaint.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripTaxiOrderComplaintGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 供应商订单号 +func (r *AlibabaHappytripTaxiOrderComplaintGetAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHappytripTaxiOrderComplaintGetAPIRequest) GetOrderId() string { + return r._orderId +} +// CaseId Setter +// 供应商工单号 +func (r *AlibabaHappytripTaxiOrderComplaintGetAPIRequest) SetCaseId(_caseId string) error { + r._caseId = _caseId + r.Set("case_id", _caseId) + return nil +} + +// CaseId Getter +func (r AlibabaHappytripTaxiOrderComplaintGetAPIRequest) GetCaseId() string { + return r._caseId +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderComplaintGetAPIResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderComplaintGetAPIResponse.go new file mode 100644 index 0000000000..14852ebcae --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderComplaintGetAPIResponse.go @@ -0,0 +1,31 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +投诉详情 API返回值 +alibaba.happytrip.taxi.order.complaint.get + +获取投诉处理进度详情 +*/ +type AlibabaHappytripTaxiOrderComplaintGetAPIResponse struct { + model.CommonResponse + AlibabaHappytripTaxiOrderComplaintGetAPIResponseModel +} + +// 投诉详情 成功返回结果 +type AlibabaHappytripTaxiOrderComplaintGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_complaint_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` + // 错误信息 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` + // 投诉详情获取结果 + Data *AlibabaHappytripTaxiOrderComplaintGetStruct `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderComplaintGetResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderComplaintGetResponse.go deleted file mode 100644 index b1fcd668b4..0000000000 --- a/model/happytrip/AlibabaHappytripTaxiOrderComplaintGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -投诉详情 API返回值 -alibaba.happytrip.taxi.order.complaint.get - -获取投诉处理进度详情 -*/ -type AlibabaHappytripTaxiOrderComplaintGetAPIResponse struct { - model.CommonResponse - AlibabaHappytripTaxiOrderComplaintGetResponse -} - -// 投诉详情 成功返回结果 -type AlibabaHappytripTaxiOrderComplaintGetResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_complaint_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` - // 错误信息 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` - // 投诉详情获取结果 - Data *AlibabaHappytripTaxiOrderComplaintGetStruct `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderConfirmAPIRequest.go b/model/happytrip/AlibabaHappytripTaxiOrderConfirmAPIRequest.go new file mode 100644 index 0000000000..b888c19076 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderConfirmAPIRequest.go @@ -0,0 +1,53 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +费用确认 API请求 +alibaba.happytrip.taxi.order.confirm + +1.司机点结束计费,欢行会收到正常支付待评论 回调,确认费用无误欢行可以通过此接口确认并支付。 +2.如果欢行一直不调用此接口,订单会在48小时后自动支付。 +*/ +type AlibabaHappytripTaxiOrderConfirmAPIRequest struct { + model.Params + // 要确认支付的订单号 + _orderId string +} + +// 初始化AlibabaHappytripTaxiOrderConfirmAPIRequest对象 +func NewAlibabaHappytripTaxiOrderConfirmRequest() *AlibabaHappytripTaxiOrderConfirmAPIRequest{ + return &AlibabaHappytripTaxiOrderConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripTaxiOrderConfirmAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.taxi.order.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripTaxiOrderConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 要确认支付的订单号 +func (r *AlibabaHappytripTaxiOrderConfirmAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHappytripTaxiOrderConfirmAPIRequest) GetOrderId() string { + return r._orderId +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderConfirmAPIResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderConfirmAPIResponse.go new file mode 100644 index 0000000000..55698e3bb5 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderConfirmAPIResponse.go @@ -0,0 +1,32 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +费用确认 API返回值 +alibaba.happytrip.taxi.order.confirm + +1.司机点结束计费,欢行会收到正常支付待评论 回调,确认费用无误欢行可以通过此接口确认并支付。 +2.如果欢行一直不调用此接口,订单会在48小时后自动支付。 +*/ +type AlibabaHappytripTaxiOrderConfirmAPIResponse struct { + model.CommonResponse + AlibabaHappytripTaxiOrderConfirmAPIResponseModel +} + +// 费用确认 成功返回结果 +type AlibabaHappytripTaxiOrderConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` + // 订单确认结果对象 + Data *OrderConfirmResult `json:"data,omitempty" xml:"data,omitempty"` + // 错误信息 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderConfirmResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderConfirmResponse.go deleted file mode 100644 index d41e6dab3c..0000000000 --- a/model/happytrip/AlibabaHappytripTaxiOrderConfirmResponse.go +++ /dev/null @@ -1,32 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -费用确认 API返回值 -alibaba.happytrip.taxi.order.confirm - -1.司机点结束计费,欢行会收到正常支付待评论 回调,确认费用无误欢行可以通过此接口确认并支付。 -2.如果欢行一直不调用此接口,订单会在48小时后自动支付。 -*/ -type AlibabaHappytripTaxiOrderConfirmAPIResponse struct { - model.CommonResponse - AlibabaHappytripTaxiOrderConfirmResponse -} - -// 费用确认 成功返回结果 -type AlibabaHappytripTaxiOrderConfirmResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` - // 订单确认结果对象 - Data *OrderConfirmResult `json:"data,omitempty" xml:"data,omitempty"` - // 错误信息 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderCreateAPIRequest.go b/model/happytrip/AlibabaHappytripTaxiOrderCreateAPIRequest.go new file mode 100644 index 0000000000..2a622ccad5 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderCreateAPIRequest.go @@ -0,0 +1,402 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户叫车 API请求 +alibaba.happytrip.taxi.order.create + +用户根据需要发起叫车请求,在发起请求之前必须事先获得order id. +*/ +type AlibabaHappytripTaxiOrderCreateAPIRequest struct { + model.Params + // 用户唯一标识 + _uid string + // 请求id 获取请参见 + _orderId string + // 叫车车型,0(实时);1(预约) + _type int64 + // 乘客手机号 + _passengerPhone string + // 出发地城市 + _city string + // 出发地纬度 + _flat string + // 出发地经度 + _flng string + // 出发地名称(最多50个字) + _startName string + // 出发地详细地址(最多100个字) + _startAddress string + // 目的地纬度 + _tlat string + // 目的地经度 + _tlng string + // 目的地名称(最多50个字) + _endName string + // 目的地详细地址(最多100个字) + _endAddress string + // 当前位置纬度 + _clat string + // 当前位置经度 + _clng string + // 出发时间,不传表示现在用车(例如:2015-06-16 12:00:09) + _departureTime string + // 车型代码 + _requireLevel string + // 客户端时间(例如:2015-06-16 12:00:09) + _appTime string + // 地图类型:amap:高德,默认高德地图 + _mapType string + // 发送短信策略(0,为叫车人和乘车人都发送,1,乘车人发送叫车人不发,2乘车人不发叫车人发,3乘车人和叫车人都不发) + _smsPolicy int64 + // 备注 + _extraInfo string + // 价格md5,通过 预估价接口获得 + _dynamicMd5 string + // 成本中心代码,用于区分不同的分账账号 + _costCenter string + // 线路类型,0或空表示普通线路;1,表示一口价路线 + _lineType int64 + // 0:不拼车 1:允许拼车,默认不拼车 + _carpoolType int64 + // 乘车人数,允许拼车时该参数不为空 + _passengerNumber int64 +} + +// 初始化AlibabaHappytripTaxiOrderCreateAPIRequest对象 +func NewAlibabaHappytripTaxiOrderCreateRequest() *AlibabaHappytripTaxiOrderCreateAPIRequest{ + return &AlibabaHappytripTaxiOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.taxi.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Uid Setter +// 用户唯一标识 +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetUid(_uid string) error { + r._uid = _uid + r.Set("uid", _uid) + return nil +} + +// Uid Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetUid() string { + return r._uid +} +// OrderId Setter +// 请求id 获取请参见 +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetOrderId() string { + return r._orderId +} +// Type Setter +// 叫车车型,0(实时);1(预约) +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetType() int64 { + return r._type +} +// PassengerPhone Setter +// 乘客手机号 +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetPassengerPhone(_passengerPhone string) error { + r._passengerPhone = _passengerPhone + r.Set("passenger_phone", _passengerPhone) + return nil +} + +// PassengerPhone Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetPassengerPhone() string { + return r._passengerPhone +} +// City Setter +// 出发地城市 +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetCity(_city string) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetCity() string { + return r._city +} +// Flat Setter +// 出发地纬度 +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetFlat(_flat string) error { + r._flat = _flat + r.Set("flat", _flat) + return nil +} + +// Flat Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetFlat() string { + return r._flat +} +// Flng Setter +// 出发地经度 +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetFlng(_flng string) error { + r._flng = _flng + r.Set("flng", _flng) + return nil +} + +// Flng Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetFlng() string { + return r._flng +} +// StartName Setter +// 出发地名称(最多50个字) +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetStartName(_startName string) error { + r._startName = _startName + r.Set("start_name", _startName) + return nil +} + +// StartName Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetStartName() string { + return r._startName +} +// StartAddress Setter +// 出发地详细地址(最多100个字) +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetStartAddress(_startAddress string) error { + r._startAddress = _startAddress + r.Set("start_address", _startAddress) + return nil +} + +// StartAddress Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetStartAddress() string { + return r._startAddress +} +// Tlat Setter +// 目的地纬度 +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetTlat(_tlat string) error { + r._tlat = _tlat + r.Set("tlat", _tlat) + return nil +} + +// Tlat Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetTlat() string { + return r._tlat +} +// Tlng Setter +// 目的地经度 +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetTlng(_tlng string) error { + r._tlng = _tlng + r.Set("tlng", _tlng) + return nil +} + +// Tlng Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetTlng() string { + return r._tlng +} +// EndName Setter +// 目的地名称(最多50个字) +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetEndName(_endName string) error { + r._endName = _endName + r.Set("end_name", _endName) + return nil +} + +// EndName Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetEndName() string { + return r._endName +} +// EndAddress Setter +// 目的地详细地址(最多100个字) +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetEndAddress(_endAddress string) error { + r._endAddress = _endAddress + r.Set("end_address", _endAddress) + return nil +} + +// EndAddress Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetEndAddress() string { + return r._endAddress +} +// Clat Setter +// 当前位置纬度 +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetClat(_clat string) error { + r._clat = _clat + r.Set("clat", _clat) + return nil +} + +// Clat Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetClat() string { + return r._clat +} +// Clng Setter +// 当前位置经度 +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetClng(_clng string) error { + r._clng = _clng + r.Set("clng", _clng) + return nil +} + +// Clng Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetClng() string { + return r._clng +} +// DepartureTime Setter +// 出发时间,不传表示现在用车(例如:2015-06-16 12:00:09) +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetDepartureTime(_departureTime string) error { + r._departureTime = _departureTime + r.Set("departure_time", _departureTime) + return nil +} + +// DepartureTime Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetDepartureTime() string { + return r._departureTime +} +// RequireLevel Setter +// 车型代码 +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetRequireLevel(_requireLevel string) error { + r._requireLevel = _requireLevel + r.Set("require_level", _requireLevel) + return nil +} + +// RequireLevel Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetRequireLevel() string { + return r._requireLevel +} +// AppTime Setter +// 客户端时间(例如:2015-06-16 12:00:09) +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetAppTime(_appTime string) error { + r._appTime = _appTime + r.Set("app_time", _appTime) + return nil +} + +// AppTime Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetAppTime() string { + return r._appTime +} +// MapType Setter +// 地图类型:amap:高德,默认高德地图 +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetMapType(_mapType string) error { + r._mapType = _mapType + r.Set("map_type", _mapType) + return nil +} + +// MapType Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetMapType() string { + return r._mapType +} +// SmsPolicy Setter +// 发送短信策略(0,为叫车人和乘车人都发送,1,乘车人发送叫车人不发,2乘车人不发叫车人发,3乘车人和叫车人都不发) +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetSmsPolicy(_smsPolicy int64) error { + r._smsPolicy = _smsPolicy + r.Set("sms_policy", _smsPolicy) + return nil +} + +// SmsPolicy Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetSmsPolicy() int64 { + return r._smsPolicy +} +// ExtraInfo Setter +// 备注 +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetExtraInfo(_extraInfo string) error { + r._extraInfo = _extraInfo + r.Set("extra_info", _extraInfo) + return nil +} + +// ExtraInfo Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetExtraInfo() string { + return r._extraInfo +} +// DynamicMd5 Setter +// 价格md5,通过 预估价接口获得 +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetDynamicMd5(_dynamicMd5 string) error { + r._dynamicMd5 = _dynamicMd5 + r.Set("dynamic_md5", _dynamicMd5) + return nil +} + +// DynamicMd5 Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetDynamicMd5() string { + return r._dynamicMd5 +} +// CostCenter Setter +// 成本中心代码,用于区分不同的分账账号 +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetCostCenter(_costCenter string) error { + r._costCenter = _costCenter + r.Set("cost_center", _costCenter) + return nil +} + +// CostCenter Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetCostCenter() string { + return r._costCenter +} +// LineType Setter +// 线路类型,0或空表示普通线路;1,表示一口价路线 +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetLineType(_lineType int64) error { + r._lineType = _lineType + r.Set("line_type", _lineType) + return nil +} + +// LineType Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetLineType() int64 { + return r._lineType +} +// CarpoolType Setter +// 0:不拼车 1:允许拼车,默认不拼车 +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetCarpoolType(_carpoolType int64) error { + r._carpoolType = _carpoolType + r.Set("carpool_type", _carpoolType) + return nil +} + +// CarpoolType Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetCarpoolType() int64 { + return r._carpoolType +} +// PassengerNumber Setter +// 乘车人数,允许拼车时该参数不为空 +func (r *AlibabaHappytripTaxiOrderCreateAPIRequest) SetPassengerNumber(_passengerNumber int64) error { + r._passengerNumber = _passengerNumber + r.Set("passenger_number", _passengerNumber) + return nil +} + +// PassengerNumber Getter +func (r AlibabaHappytripTaxiOrderCreateAPIRequest) GetPassengerNumber() int64 { + return r._passengerNumber +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderCreateAPIResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderCreateAPIResponse.go new file mode 100644 index 0000000000..7f1aa05251 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderCreateAPIResponse.go @@ -0,0 +1,31 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户叫车 API返回值 +alibaba.happytrip.taxi.order.create + +用户根据需要发起叫车请求,在发起请求之前必须事先获得order id. +*/ +type AlibabaHappytripTaxiOrderCreateAPIResponse struct { + model.CommonResponse + AlibabaHappytripTaxiOrderCreateAPIResponseModel +} + +// 用户叫车 成功返回结果 +type AlibabaHappytripTaxiOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` + // 订单创建结果 + Data *OrderCreateResult `json:"data,omitempty" xml:"data,omitempty"` + // 错误信息 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderCreateResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderCreateResponse.go deleted file mode 100644 index cb56a836f0..0000000000 --- a/model/happytrip/AlibabaHappytripTaxiOrderCreateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户叫车 API返回值 -alibaba.happytrip.taxi.order.create - -用户根据需要发起叫车请求,在发起请求之前必须事先获得order id. -*/ -type AlibabaHappytripTaxiOrderCreateAPIResponse struct { - model.CommonResponse - AlibabaHappytripTaxiOrderCreateResponse -} - -// 用户叫车 成功返回结果 -type AlibabaHappytripTaxiOrderCreateResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` - // 订单创建结果 - Data *OrderCreateResult `json:"data,omitempty" xml:"data,omitempty"` - // 错误信息 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderDestinationModifyAPIRequest.go b/model/happytrip/AlibabaHappytripTaxiOrderDestinationModifyAPIRequest.go new file mode 100644 index 0000000000..ead63e875e --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderDestinationModifyAPIRequest.go @@ -0,0 +1,108 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改目的地 API请求 +alibaba.happytrip.taxi.order.destination.modify + +通知ISV修改订单信息 +*/ +type AlibabaHappytripTaxiOrderDestinationModifyAPIRequest struct { + model.Params + // 订单id + _orderId string + // 目的地经度 + _tlng string + // 目的地纬度 + _tlat string + // 目的地名称(最多50个字) + _endName string + // 目的地详细地址(最多100个字) + _endAddress string +} + +// 初始化AlibabaHappytripTaxiOrderDestinationModifyAPIRequest对象 +func NewAlibabaHappytripTaxiOrderDestinationModifyRequest() *AlibabaHappytripTaxiOrderDestinationModifyAPIRequest{ + return &AlibabaHappytripTaxiOrderDestinationModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripTaxiOrderDestinationModifyAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.taxi.order.destination.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripTaxiOrderDestinationModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单id +func (r *AlibabaHappytripTaxiOrderDestinationModifyAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHappytripTaxiOrderDestinationModifyAPIRequest) GetOrderId() string { + return r._orderId +} +// Tlng Setter +// 目的地经度 +func (r *AlibabaHappytripTaxiOrderDestinationModifyAPIRequest) SetTlng(_tlng string) error { + r._tlng = _tlng + r.Set("tlng", _tlng) + return nil +} + +// Tlng Getter +func (r AlibabaHappytripTaxiOrderDestinationModifyAPIRequest) GetTlng() string { + return r._tlng +} +// Tlat Setter +// 目的地纬度 +func (r *AlibabaHappytripTaxiOrderDestinationModifyAPIRequest) SetTlat(_tlat string) error { + r._tlat = _tlat + r.Set("tlat", _tlat) + return nil +} + +// Tlat Getter +func (r AlibabaHappytripTaxiOrderDestinationModifyAPIRequest) GetTlat() string { + return r._tlat +} +// EndName Setter +// 目的地名称(最多50个字) +func (r *AlibabaHappytripTaxiOrderDestinationModifyAPIRequest) SetEndName(_endName string) error { + r._endName = _endName + r.Set("end_name", _endName) + return nil +} + +// EndName Getter +func (r AlibabaHappytripTaxiOrderDestinationModifyAPIRequest) GetEndName() string { + return r._endName +} +// EndAddress Setter +// 目的地详细地址(最多100个字) +func (r *AlibabaHappytripTaxiOrderDestinationModifyAPIRequest) SetEndAddress(_endAddress string) error { + r._endAddress = _endAddress + r.Set("end_address", _endAddress) + return nil +} + +// EndAddress Getter +func (r AlibabaHappytripTaxiOrderDestinationModifyAPIRequest) GetEndAddress() string { + return r._endAddress +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderDestinationModifyAPIResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderDestinationModifyAPIResponse.go new file mode 100644 index 0000000000..ba0e0f97d5 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderDestinationModifyAPIResponse.go @@ -0,0 +1,29 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改目的地 API返回值 +alibaba.happytrip.taxi.order.destination.modify + +通知ISV修改订单信息 +*/ +type AlibabaHappytripTaxiOrderDestinationModifyAPIResponse struct { + model.CommonResponse + AlibabaHappytripTaxiOrderDestinationModifyAPIResponseModel +} + +// 修改目的地 成功返回结果 +type AlibabaHappytripTaxiOrderDestinationModifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_destination_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误代码 + Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` + // 错误描述 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderDestinationModifyResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderDestinationModifyResponse.go deleted file mode 100644 index ba8c01756f..0000000000 --- a/model/happytrip/AlibabaHappytripTaxiOrderDestinationModifyResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改目的地 API返回值 -alibaba.happytrip.taxi.order.destination.modify - -通知ISV修改订单信息 -*/ -type AlibabaHappytripTaxiOrderDestinationModifyAPIResponse struct { - model.CommonResponse - AlibabaHappytripTaxiOrderDestinationModifyResponse -} - -// 修改目的地 成功返回结果 -type AlibabaHappytripTaxiOrderDestinationModifyResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_destination_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误代码 - Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` - // 错误描述 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderGetAPIRequest.go b/model/happytrip/AlibabaHappytripTaxiOrderGetAPIRequest.go new file mode 100644 index 0000000000..2e4f951ec6 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderGetAPIRequest.go @@ -0,0 +1,52 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单详情 API请求 +alibaba.happytrip.taxi.order.get + +获取订单状态及详情 +*/ +type AlibabaHappytripTaxiOrderGetAPIRequest struct { + model.Params + // 订单id + _orderId string +} + +// 初始化AlibabaHappytripTaxiOrderGetAPIRequest对象 +func NewAlibabaHappytripTaxiOrderGetRequest() *AlibabaHappytripTaxiOrderGetAPIRequest{ + return &AlibabaHappytripTaxiOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripTaxiOrderGetAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.taxi.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripTaxiOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单id +func (r *AlibabaHappytripTaxiOrderGetAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHappytripTaxiOrderGetAPIRequest) GetOrderId() string { + return r._orderId +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderGetAPIResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderGetAPIResponse.go new file mode 100644 index 0000000000..e5e0c39972 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderGetAPIResponse.go @@ -0,0 +1,31 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单详情 API返回值 +alibaba.happytrip.taxi.order.get + +获取订单状态及详情 +*/ +type AlibabaHappytripTaxiOrderGetAPIResponse struct { + model.CommonResponse + AlibabaHappytripTaxiOrderGetAPIResponseModel +} + +// 订单详情 成功返回结果 +type AlibabaHappytripTaxiOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` + // 错误信息 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` + // 订单获取结果 + Data *OrderGetResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderGetResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderGetResponse.go deleted file mode 100644 index d449d80b88..0000000000 --- a/model/happytrip/AlibabaHappytripTaxiOrderGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单详情 API返回值 -alibaba.happytrip.taxi.order.get - -获取订单状态及详情 -*/ -type AlibabaHappytripTaxiOrderGetAPIResponse struct { - model.CommonResponse - AlibabaHappytripTaxiOrderGetResponse -} - -// 订单详情 成功返回结果 -type AlibabaHappytripTaxiOrderGetResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` - // 错误信息 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` - // 订单获取结果 - Data *OrderGetResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderNotifyAPIRequest.go b/model/happytrip/AlibabaHappytripTaxiOrderNotifyAPIRequest.go new file mode 100644 index 0000000000..f73dfb2b1a --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderNotifyAPIRequest.go @@ -0,0 +1,94 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +状态通知 API请求 +alibaba.happytrip.taxi.order.notify + +当订单发生变化是供应商通过状态通知API通知欢行,欢行获取最新的订单详情和状态进行业务处理。 +*/ +type AlibabaHappytripTaxiOrderNotifyAPIRequest struct { + model.Params + // 返回自 1970 年 1 月 1 日 00:00:00 GMT 以来此 Date 对象表示的毫秒数 + _time int64 + // 通知类型: 1-订单中间状态流转 2-订单终态通知 3-支付确认通知 4-订单退款通知 5-订单改价通知 6-客服关单通知。参考:https://open-hatrip.alibaba.com/doc/car/order_status_callback.html + _notifyType int64 + // 通知说明 + _notifyDesc string + // 订单id + _orderId string +} + +// 初始化AlibabaHappytripTaxiOrderNotifyAPIRequest对象 +func NewAlibabaHappytripTaxiOrderNotifyRequest() *AlibabaHappytripTaxiOrderNotifyAPIRequest{ + return &AlibabaHappytripTaxiOrderNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripTaxiOrderNotifyAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.taxi.order.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripTaxiOrderNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Time Setter +// 返回自 1970 年 1 月 1 日 00:00:00 GMT 以来此 Date 对象表示的毫秒数 +func (r *AlibabaHappytripTaxiOrderNotifyAPIRequest) SetTime(_time int64) error { + r._time = _time + r.Set("time", _time) + return nil +} + +// Time Getter +func (r AlibabaHappytripTaxiOrderNotifyAPIRequest) GetTime() int64 { + return r._time +} +// NotifyType Setter +// 通知类型: 1-订单中间状态流转 2-订单终态通知 3-支付确认通知 4-订单退款通知 5-订单改价通知 6-客服关单通知。参考:https://open-hatrip.alibaba.com/doc/car/order_status_callback.html +func (r *AlibabaHappytripTaxiOrderNotifyAPIRequest) SetNotifyType(_notifyType int64) error { + r._notifyType = _notifyType + r.Set("notify_type", _notifyType) + return nil +} + +// NotifyType Getter +func (r AlibabaHappytripTaxiOrderNotifyAPIRequest) GetNotifyType() int64 { + return r._notifyType +} +// NotifyDesc Setter +// 通知说明 +func (r *AlibabaHappytripTaxiOrderNotifyAPIRequest) SetNotifyDesc(_notifyDesc string) error { + r._notifyDesc = _notifyDesc + r.Set("notify_desc", _notifyDesc) + return nil +} + +// NotifyDesc Getter +func (r AlibabaHappytripTaxiOrderNotifyAPIRequest) GetNotifyDesc() string { + return r._notifyDesc +} +// OrderId Setter +// 订单id +func (r *AlibabaHappytripTaxiOrderNotifyAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHappytripTaxiOrderNotifyAPIRequest) GetOrderId() string { + return r._orderId +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderNotifyAPIResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderNotifyAPIResponse.go new file mode 100644 index 0000000000..c87988f49e --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderNotifyAPIResponse.go @@ -0,0 +1,29 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +状态通知 API返回值 +alibaba.happytrip.taxi.order.notify + +当订单发生变化是供应商通过状态通知API通知欢行,欢行获取最新的订单详情和状态进行业务处理。 +*/ +type AlibabaHappytripTaxiOrderNotifyAPIResponse struct { + model.CommonResponse + AlibabaHappytripTaxiOrderNotifyAPIResponseModel +} + +// 状态通知 成功返回结果 +type AlibabaHappytripTaxiOrderNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码,0为通知成功,非0为通知失败 + Errno string `json:"errno,omitempty" xml:"errno,omitempty"` + // 错误信息描述 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderNotifyResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderNotifyResponse.go deleted file mode 100644 index d82dfdd5b9..0000000000 --- a/model/happytrip/AlibabaHappytripTaxiOrderNotifyResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -状态通知 API返回值 -alibaba.happytrip.taxi.order.notify - -当订单发生变化是供应商通过状态通知API通知欢行,欢行获取最新的订单详情和状态进行业务处理。 -*/ -type AlibabaHappytripTaxiOrderNotifyAPIResponse struct { - model.CommonResponse - AlibabaHappytripTaxiOrderNotifyResponse -} - -// 状态通知 成功返回结果 -type AlibabaHappytripTaxiOrderNotifyResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码,0为通知成功,非0为通知失败 - Errno string `json:"errno,omitempty" xml:"errno,omitempty"` - // 错误信息描述 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderScoreAPIRequest.go b/model/happytrip/AlibabaHappytripTaxiOrderScoreAPIRequest.go new file mode 100644 index 0000000000..f989a34952 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderScoreAPIRequest.go @@ -0,0 +1,80 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单打分和评价 API请求 +alibaba.happytrip.taxi.order.score + +对司机进行评分,只有订单结束后,才能进行。 +*/ +type AlibabaHappytripTaxiOrderScoreAPIRequest struct { + model.Params + // 订单id + _orderId string + // 司机评分 星级(1-5) + _level int64 + // 司机评价最多40个汉字 + _comment string +} + +// 初始化AlibabaHappytripTaxiOrderScoreAPIRequest对象 +func NewAlibabaHappytripTaxiOrderScoreRequest() *AlibabaHappytripTaxiOrderScoreAPIRequest{ + return &AlibabaHappytripTaxiOrderScoreAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripTaxiOrderScoreAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.taxi.order.score" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripTaxiOrderScoreAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单id +func (r *AlibabaHappytripTaxiOrderScoreAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHappytripTaxiOrderScoreAPIRequest) GetOrderId() string { + return r._orderId +} +// Level Setter +// 司机评分 星级(1-5) +func (r *AlibabaHappytripTaxiOrderScoreAPIRequest) SetLevel(_level int64) error { + r._level = _level + r.Set("level", _level) + return nil +} + +// Level Getter +func (r AlibabaHappytripTaxiOrderScoreAPIRequest) GetLevel() int64 { + return r._level +} +// Comment Setter +// 司机评价最多40个汉字 +func (r *AlibabaHappytripTaxiOrderScoreAPIRequest) SetComment(_comment string) error { + r._comment = _comment + r.Set("comment", _comment) + return nil +} + +// Comment Getter +func (r AlibabaHappytripTaxiOrderScoreAPIRequest) GetComment() string { + return r._comment +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderScoreAPIResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderScoreAPIResponse.go new file mode 100644 index 0000000000..bcc3ac3075 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiOrderScoreAPIResponse.go @@ -0,0 +1,29 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单打分和评价 API返回值 +alibaba.happytrip.taxi.order.score + +对司机进行评分,只有订单结束后,才能进行。 +*/ +type AlibabaHappytripTaxiOrderScoreAPIResponse struct { + model.CommonResponse + AlibabaHappytripTaxiOrderScoreAPIResponseModel +} + +// 订单打分和评价 成功返回结果 +type AlibabaHappytripTaxiOrderScoreAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_score_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` + // 错误信息 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripTaxiOrderScoreResponse.go b/model/happytrip/AlibabaHappytripTaxiOrderScoreResponse.go deleted file mode 100644 index 9b8c90ae44..0000000000 --- a/model/happytrip/AlibabaHappytripTaxiOrderScoreResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单打分和评价 API返回值 -alibaba.happytrip.taxi.order.score - -对司机进行评分,只有订单结束后,才能进行。 -*/ -type AlibabaHappytripTaxiOrderScoreAPIResponse struct { - model.CommonResponse - AlibabaHappytripTaxiOrderScoreResponse -} - -// 订单打分和评价 成功返回结果 -type AlibabaHappytripTaxiOrderScoreResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_taxi_order_score_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` - // 错误信息 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripTaxiPriceGetAPIRequest.go b/model/happytrip/AlibabaHappytripTaxiPriceGetAPIRequest.go new file mode 100644 index 0000000000..fe1a49bde0 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiPriceGetAPIRequest.go @@ -0,0 +1,234 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取价格预估信息 API请求 +alibaba.happytrip.taxi.price.get + +打车价格预估 +*/ +type AlibabaHappytripTaxiPriceGetAPIRequest struct { + model.Params + // 出发地纬度 + _flat string + // 出发地经度 + _flng string + // 目的地纬度 + _tlat string + // 目的地经度 + _tlng string + // 地图类型:amap:高德,默认高德地图 + _mapType string + // 出发城市id + _city string + // 0:实时单 1:预约单 + _type int64 + // 预约单必须传(格式例如:2015-06-16 12:00:09) + _departureTime string + // 成本中心代码,用于区分不同的分账账号 + _costCenter string + // 供应商车型代码 + _requireLevel string + // 0:不拼车 1:允许拼车,默认不拼车 + _carpoolType int64 + // 乘车人数 + _passengerNumber int64 + // 用户唯一标识 + _uid string + // 乘客手机号 + _passengerPhone string +} + +// 初始化AlibabaHappytripTaxiPriceGetAPIRequest对象 +func NewAlibabaHappytripTaxiPriceGetRequest() *AlibabaHappytripTaxiPriceGetAPIRequest{ + return &AlibabaHappytripTaxiPriceGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripTaxiPriceGetAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.taxi.price.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripTaxiPriceGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Flat Setter +// 出发地纬度 +func (r *AlibabaHappytripTaxiPriceGetAPIRequest) SetFlat(_flat string) error { + r._flat = _flat + r.Set("flat", _flat) + return nil +} + +// Flat Getter +func (r AlibabaHappytripTaxiPriceGetAPIRequest) GetFlat() string { + return r._flat +} +// Flng Setter +// 出发地经度 +func (r *AlibabaHappytripTaxiPriceGetAPIRequest) SetFlng(_flng string) error { + r._flng = _flng + r.Set("flng", _flng) + return nil +} + +// Flng Getter +func (r AlibabaHappytripTaxiPriceGetAPIRequest) GetFlng() string { + return r._flng +} +// Tlat Setter +// 目的地纬度 +func (r *AlibabaHappytripTaxiPriceGetAPIRequest) SetTlat(_tlat string) error { + r._tlat = _tlat + r.Set("tlat", _tlat) + return nil +} + +// Tlat Getter +func (r AlibabaHappytripTaxiPriceGetAPIRequest) GetTlat() string { + return r._tlat +} +// Tlng Setter +// 目的地经度 +func (r *AlibabaHappytripTaxiPriceGetAPIRequest) SetTlng(_tlng string) error { + r._tlng = _tlng + r.Set("tlng", _tlng) + return nil +} + +// Tlng Getter +func (r AlibabaHappytripTaxiPriceGetAPIRequest) GetTlng() string { + return r._tlng +} +// MapType Setter +// 地图类型:amap:高德,默认高德地图 +func (r *AlibabaHappytripTaxiPriceGetAPIRequest) SetMapType(_mapType string) error { + r._mapType = _mapType + r.Set("map_type", _mapType) + return nil +} + +// MapType Getter +func (r AlibabaHappytripTaxiPriceGetAPIRequest) GetMapType() string { + return r._mapType +} +// City Setter +// 出发城市id +func (r *AlibabaHappytripTaxiPriceGetAPIRequest) SetCity(_city string) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r AlibabaHappytripTaxiPriceGetAPIRequest) GetCity() string { + return r._city +} +// Type Setter +// 0:实时单 1:预约单 +func (r *AlibabaHappytripTaxiPriceGetAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaHappytripTaxiPriceGetAPIRequest) GetType() int64 { + return r._type +} +// DepartureTime Setter +// 预约单必须传(格式例如:2015-06-16 12:00:09) +func (r *AlibabaHappytripTaxiPriceGetAPIRequest) SetDepartureTime(_departureTime string) error { + r._departureTime = _departureTime + r.Set("departure_time", _departureTime) + return nil +} + +// DepartureTime Getter +func (r AlibabaHappytripTaxiPriceGetAPIRequest) GetDepartureTime() string { + return r._departureTime +} +// CostCenter Setter +// 成本中心代码,用于区分不同的分账账号 +func (r *AlibabaHappytripTaxiPriceGetAPIRequest) SetCostCenter(_costCenter string) error { + r._costCenter = _costCenter + r.Set("cost_center", _costCenter) + return nil +} + +// CostCenter Getter +func (r AlibabaHappytripTaxiPriceGetAPIRequest) GetCostCenter() string { + return r._costCenter +} +// RequireLevel Setter +// 供应商车型代码 +func (r *AlibabaHappytripTaxiPriceGetAPIRequest) SetRequireLevel(_requireLevel string) error { + r._requireLevel = _requireLevel + r.Set("require_level", _requireLevel) + return nil +} + +// RequireLevel Getter +func (r AlibabaHappytripTaxiPriceGetAPIRequest) GetRequireLevel() string { + return r._requireLevel +} +// CarpoolType Setter +// 0:不拼车 1:允许拼车,默认不拼车 +func (r *AlibabaHappytripTaxiPriceGetAPIRequest) SetCarpoolType(_carpoolType int64) error { + r._carpoolType = _carpoolType + r.Set("carpool_type", _carpoolType) + return nil +} + +// CarpoolType Getter +func (r AlibabaHappytripTaxiPriceGetAPIRequest) GetCarpoolType() int64 { + return r._carpoolType +} +// PassengerNumber Setter +// 乘车人数 +func (r *AlibabaHappytripTaxiPriceGetAPIRequest) SetPassengerNumber(_passengerNumber int64) error { + r._passengerNumber = _passengerNumber + r.Set("passenger_number", _passengerNumber) + return nil +} + +// PassengerNumber Getter +func (r AlibabaHappytripTaxiPriceGetAPIRequest) GetPassengerNumber() int64 { + return r._passengerNumber +} +// Uid Setter +// 用户唯一标识 +func (r *AlibabaHappytripTaxiPriceGetAPIRequest) SetUid(_uid string) error { + r._uid = _uid + r.Set("uid", _uid) + return nil +} + +// Uid Getter +func (r AlibabaHappytripTaxiPriceGetAPIRequest) GetUid() string { + return r._uid +} +// PassengerPhone Setter +// 乘客手机号 +func (r *AlibabaHappytripTaxiPriceGetAPIRequest) SetPassengerPhone(_passengerPhone string) error { + r._passengerPhone = _passengerPhone + r.Set("passenger_phone", _passengerPhone) + return nil +} + +// PassengerPhone Getter +func (r AlibabaHappytripTaxiPriceGetAPIRequest) GetPassengerPhone() string { + return r._passengerPhone +} diff --git a/model/happytrip/AlibabaHappytripTaxiPriceGetAPIResponse.go b/model/happytrip/AlibabaHappytripTaxiPriceGetAPIResponse.go new file mode 100644 index 0000000000..0541784d0b --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiPriceGetAPIResponse.go @@ -0,0 +1,31 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取价格预估信息 API返回值 +alibaba.happytrip.taxi.price.get + +打车价格预估 +*/ +type AlibabaHappytripTaxiPriceGetAPIResponse struct { + model.CommonResponse + AlibabaHappytripTaxiPriceGetAPIResponseModel +} + +// 获取价格预估信息 成功返回结果 +type AlibabaHappytripTaxiPriceGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_taxi_price_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误代码 + Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` + // 价格预估模型 + Data []PriceModel `json:"data,omitempty" xml:"data>price_model,omitempty"` + // 错误消息 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripTaxiPriceGetResponse.go b/model/happytrip/AlibabaHappytripTaxiPriceGetResponse.go deleted file mode 100644 index bf67fa6e36..0000000000 --- a/model/happytrip/AlibabaHappytripTaxiPriceGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取价格预估信息 API返回值 -alibaba.happytrip.taxi.price.get - -打车价格预估 -*/ -type AlibabaHappytripTaxiPriceGetAPIResponse struct { - model.CommonResponse - AlibabaHappytripTaxiPriceGetResponse -} - -// 获取价格预估信息 成功返回结果 -type AlibabaHappytripTaxiPriceGetResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_taxi_price_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误代码 - Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` - // 价格预估模型 - Data []PriceModel `json:"data,omitempty" xml:"data>price_model,omitempty"` - // 错误消息 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripTaxiProviderAccountBalanceAPIRequest.go b/model/happytrip/AlibabaHappytripTaxiProviderAccountBalanceAPIRequest.go new file mode 100644 index 0000000000..42e1e9e9a0 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiProviderAccountBalanceAPIRequest.go @@ -0,0 +1,52 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商渠道余额 API请求 +alibaba.happytrip.taxi.provider.account.balance + +查询不同供应商不同渠道账户余额 +*/ +type AlibabaHappytripTaxiProviderAccountBalanceAPIRequest struct { + model.Params + // 成本中心代码,用于区分不同的分账账号 + _costCenter string +} + +// 初始化AlibabaHappytripTaxiProviderAccountBalanceAPIRequest对象 +func NewAlibabaHappytripTaxiProviderAccountBalanceRequest() *AlibabaHappytripTaxiProviderAccountBalanceAPIRequest{ + return &AlibabaHappytripTaxiProviderAccountBalanceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripTaxiProviderAccountBalanceAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.taxi.provider.account.balance" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripTaxiProviderAccountBalanceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CostCenter Setter +// 成本中心代码,用于区分不同的分账账号 +func (r *AlibabaHappytripTaxiProviderAccountBalanceAPIRequest) SetCostCenter(_costCenter string) error { + r._costCenter = _costCenter + r.Set("cost_center", _costCenter) + return nil +} + +// CostCenter Getter +func (r AlibabaHappytripTaxiProviderAccountBalanceAPIRequest) GetCostCenter() string { + return r._costCenter +} diff --git a/model/happytrip/AlibabaHappytripTaxiProviderAccountBalanceAPIResponse.go b/model/happytrip/AlibabaHappytripTaxiProviderAccountBalanceAPIResponse.go new file mode 100644 index 0000000000..2e3070ede1 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiProviderAccountBalanceAPIResponse.go @@ -0,0 +1,31 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商渠道余额 API返回值 +alibaba.happytrip.taxi.provider.account.balance + +查询不同供应商不同渠道账户余额 +*/ +type AlibabaHappytripTaxiProviderAccountBalanceAPIResponse struct { + model.CommonResponse + AlibabaHappytripTaxiProviderAccountBalanceAPIResponseModel +} + +// 供应商渠道余额 成功返回结果 +type AlibabaHappytripTaxiProviderAccountBalanceAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_taxi_provider_account_balance_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` + // 数据 + Data *AlibabaHappytripTaxiProviderAccountBalanceData `json:"data,omitempty" xml:"data,omitempty"` + // 错误信息 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripTaxiProviderAccountBalanceResponse.go b/model/happytrip/AlibabaHappytripTaxiProviderAccountBalanceResponse.go deleted file mode 100644 index 5b7f967226..0000000000 --- a/model/happytrip/AlibabaHappytripTaxiProviderAccountBalanceResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商渠道余额 API返回值 -alibaba.happytrip.taxi.provider.account.balance - -查询不同供应商不同渠道账户余额 -*/ -type AlibabaHappytripTaxiProviderAccountBalanceAPIResponse struct { - model.CommonResponse - AlibabaHappytripTaxiProviderAccountBalanceResponse -} - -// 供应商渠道余额 成功返回结果 -type AlibabaHappytripTaxiProviderAccountBalanceResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_taxi_provider_account_balance_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` - // 数据 - Data *AlibabaHappytripTaxiProviderAccountBalanceData `json:"data,omitempty" xml:"data,omitempty"` - // 错误信息 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripTaxiServicestatusGetAPIRequest.go b/model/happytrip/AlibabaHappytripTaxiServicestatusGetAPIRequest.go new file mode 100644 index 0000000000..eb15552ae0 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiServicestatusGetAPIRequest.go @@ -0,0 +1,52 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商服务开通状态 API请求 +alibaba.happytrip.taxi.servicestatus.get + +获取服务供应商在每个地区的服务开通状态、支持的车型等 +*/ +type AlibabaHappytripTaxiServicestatusGetAPIRequest struct { + model.Params + // 成本中心代码,用于区分不同的分账账号 + _costCenter string +} + +// 初始化AlibabaHappytripTaxiServicestatusGetAPIRequest对象 +func NewAlibabaHappytripTaxiServicestatusGetRequest() *AlibabaHappytripTaxiServicestatusGetAPIRequest{ + return &AlibabaHappytripTaxiServicestatusGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripTaxiServicestatusGetAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.taxi.servicestatus.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripTaxiServicestatusGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CostCenter Setter +// 成本中心代码,用于区分不同的分账账号 +func (r *AlibabaHappytripTaxiServicestatusGetAPIRequest) SetCostCenter(_costCenter string) error { + r._costCenter = _costCenter + r.Set("cost_center", _costCenter) + return nil +} + +// CostCenter Getter +func (r AlibabaHappytripTaxiServicestatusGetAPIRequest) GetCostCenter() string { + return r._costCenter +} diff --git a/model/happytrip/AlibabaHappytripTaxiServicestatusGetAPIResponse.go b/model/happytrip/AlibabaHappytripTaxiServicestatusGetAPIResponse.go new file mode 100644 index 0000000000..dfed200765 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTaxiServicestatusGetAPIResponse.go @@ -0,0 +1,31 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商服务开通状态 API返回值 +alibaba.happytrip.taxi.servicestatus.get + +获取服务供应商在每个地区的服务开通状态、支持的车型等 +*/ +type AlibabaHappytripTaxiServicestatusGetAPIResponse struct { + model.CommonResponse + AlibabaHappytripTaxiServicestatusGetAPIResponseModel +} + +// 供应商服务开通状态 成功返回结果 +type AlibabaHappytripTaxiServicestatusGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_taxi_servicestatus_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 供应商服务状态数据 + Data *ServiceStatusModel `json:"data,omitempty" xml:"data,omitempty"` + // 错误代码 + Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` + // 错误消息 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripTaxiServicestatusGetResponse.go b/model/happytrip/AlibabaHappytripTaxiServicestatusGetResponse.go deleted file mode 100644 index bcf1372223..0000000000 --- a/model/happytrip/AlibabaHappytripTaxiServicestatusGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商服务开通状态 API返回值 -alibaba.happytrip.taxi.servicestatus.get - -获取服务供应商在每个地区的服务开通状态、支持的车型等 -*/ -type AlibabaHappytripTaxiServicestatusGetAPIResponse struct { - model.CommonResponse - AlibabaHappytripTaxiServicestatusGetResponse -} - -// 供应商服务开通状态 成功返回结果 -type AlibabaHappytripTaxiServicestatusGetResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_taxi_servicestatus_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 供应商服务状态数据 - Data *ServiceStatusModel `json:"data,omitempty" xml:"data,omitempty"` - // 错误代码 - Errno int64 `json:"errno,omitempty" xml:"errno,omitempty"` - // 错误消息 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/happytrip/AlibabaHappytripTravelSyncAPIRequest.go b/model/happytrip/AlibabaHappytripTravelSyncAPIRequest.go new file mode 100644 index 0000000000..cb080dac7f --- /dev/null +++ b/model/happytrip/AlibabaHappytripTravelSyncAPIRequest.go @@ -0,0 +1,52 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +差旅申请单同步接口 API请求 +alibaba.happytrip.travel.sync + +以外部差旅申请单id(outer_travel_head_id)为主键,保存或更新差旅单信息到欢行系统中 +*/ +type AlibabaHappytripTravelSyncAPIRequest struct { + model.Params + // 差旅申请单对象 + _travelHeadDto *TravelHeadDto +} + +// 初始化AlibabaHappytripTravelSyncAPIRequest对象 +func NewAlibabaHappytripTravelSyncRequest() *AlibabaHappytripTravelSyncAPIRequest{ + return &AlibabaHappytripTravelSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHappytripTravelSyncAPIRequest) GetApiMethodName() string { + return "alibaba.happytrip.travel.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHappytripTravelSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TravelHeadDto Setter +// 差旅申请单对象 +func (r *AlibabaHappytripTravelSyncAPIRequest) SetTravelHeadDto(_travelHeadDto *TravelHeadDto) error { + r._travelHeadDto = _travelHeadDto + r.Set("travel_head_dto", _travelHeadDto) + return nil +} + +// TravelHeadDto Getter +func (r AlibabaHappytripTravelSyncAPIRequest) GetTravelHeadDto() *TravelHeadDto { + return r._travelHeadDto +} diff --git a/model/happytrip/AlibabaHappytripTravelSyncAPIResponse.go b/model/happytrip/AlibabaHappytripTravelSyncAPIResponse.go new file mode 100644 index 0000000000..b82ba863b9 --- /dev/null +++ b/model/happytrip/AlibabaHappytripTravelSyncAPIResponse.go @@ -0,0 +1,27 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +差旅申请单同步接口 API返回值 +alibaba.happytrip.travel.sync + +以外部差旅申请单id(outer_travel_head_id)为主键,保存或更新差旅单信息到欢行系统中 +*/ +type AlibabaHappytripTravelSyncAPIResponse struct { + model.CommonResponse + AlibabaHappytripTravelSyncAPIResponseModel +} + +// 差旅申请单同步接口 成功返回结果 +type AlibabaHappytripTravelSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_happytrip_travel_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 差旅申请单在欢行内部产生的差旅单ID + TravelId int64 `json:"travel_id,omitempty" xml:"travel_id,omitempty"` +} diff --git a/model/happytrip/AlibabaHappytripTravelSyncResponse.go b/model/happytrip/AlibabaHappytripTravelSyncResponse.go deleted file mode 100644 index abfa6e365e..0000000000 --- a/model/happytrip/AlibabaHappytripTravelSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -差旅申请单同步接口 API返回值 -alibaba.happytrip.travel.sync - -以外部差旅申请单id(outer_travel_head_id)为主键,保存或更新差旅单信息到欢行系统中 -*/ -type AlibabaHappytripTravelSyncAPIResponse struct { - model.CommonResponse - AlibabaHappytripTravelSyncResponse -} - -// 差旅申请单同步接口 成功返回结果 -type AlibabaHappytripTravelSyncResponse struct { - XMLName xml.Name `xml:"alibaba_happytrip_travel_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 差旅申请单在欢行内部产生的差旅单ID - TravelId int64 `json:"travel_id,omitempty" xml:"travel_id,omitempty"` -} diff --git a/model/happytrip/AlibabaHtorderHotelSyncBookingAPIRequest.go b/model/happytrip/AlibabaHtorderHotelSyncBookingAPIRequest.go new file mode 100644 index 0000000000..eeb0f00b3e --- /dev/null +++ b/model/happytrip/AlibabaHtorderHotelSyncBookingAPIRequest.go @@ -0,0 +1,52 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +未来酒店亲橙客栈预订信息同步 API请求 +alibaba.htorder.hotel.sync.booking + +未来酒店亲橙客栈预订信息同步 +*/ +type AlibabaHtorderHotelSyncBookingAPIRequest struct { + model.Params + // 预订信息数据 + _dataEntity *SyncHotelBookingDataRequestDto +} + +// 初始化AlibabaHtorderHotelSyncBookingAPIRequest对象 +func NewAlibabaHtorderHotelSyncBookingRequest() *AlibabaHtorderHotelSyncBookingAPIRequest{ + return &AlibabaHtorderHotelSyncBookingAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHtorderHotelSyncBookingAPIRequest) GetApiMethodName() string { + return "alibaba.htorder.hotel.sync.booking" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHtorderHotelSyncBookingAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DataEntity Setter +// 预订信息数据 +func (r *AlibabaHtorderHotelSyncBookingAPIRequest) SetDataEntity(_dataEntity *SyncHotelBookingDataRequestDto) error { + r._dataEntity = _dataEntity + r.Set("data_entity", _dataEntity) + return nil +} + +// DataEntity Getter +func (r AlibabaHtorderHotelSyncBookingAPIRequest) GetDataEntity() *SyncHotelBookingDataRequestDto { + return r._dataEntity +} diff --git a/model/happytrip/AlibabaHtorderHotelSyncBookingAPIResponse.go b/model/happytrip/AlibabaHtorderHotelSyncBookingAPIResponse.go new file mode 100644 index 0000000000..dabd561c50 --- /dev/null +++ b/model/happytrip/AlibabaHtorderHotelSyncBookingAPIResponse.go @@ -0,0 +1,27 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +未来酒店亲橙客栈预订信息同步 API返回值 +alibaba.htorder.hotel.sync.booking + +未来酒店亲橙客栈预订信息同步 +*/ +type AlibabaHtorderHotelSyncBookingAPIResponse struct { + model.CommonResponse + AlibabaHtorderHotelSyncBookingAPIResponseModel +} + +// 未来酒店亲橙客栈预订信息同步 成功返回结果 +type AlibabaHtorderHotelSyncBookingAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_htorder_hotel_sync_booking_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlibabaHtorderHotelSyncBookingResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/happytrip/AlibabaHtorderHotelSyncBookingResponse.go b/model/happytrip/AlibabaHtorderHotelSyncBookingResponse.go deleted file mode 100644 index 215a0bde36..0000000000 --- a/model/happytrip/AlibabaHtorderHotelSyncBookingResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -未来酒店亲橙客栈预订信息同步 API返回值 -alibaba.htorder.hotel.sync.booking - -未来酒店亲橙客栈预订信息同步 -*/ -type AlibabaHtorderHotelSyncBookingAPIResponse struct { - model.CommonResponse - AlibabaHtorderHotelSyncBookingResponse -} - -// 未来酒店亲橙客栈预订信息同步 成功返回结果 -type AlibabaHtorderHotelSyncBookingResponse struct { - XMLName xml.Name `xml:"alibaba_htorder_hotel_sync_booking_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlibabaHtorderHotelSyncBookingResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/happytrip/AlibabaHtorderHotelSyncBookingResultDto.go b/model/happytrip/AlibabaHtorderHotelSyncBookingResultDto.go new file mode 100644 index 0000000000..5fc8018054 --- /dev/null +++ b/model/happytrip/AlibabaHtorderHotelSyncBookingResultDto.go @@ -0,0 +1,15 @@ +package happytrip + +// AlibabaHtorderHotelSyncBookingResultDto +type AlibabaHtorderHotelSyncBookingResultDto struct { + // 每个订单的信息发送结果 + Content *SyncHotelBookingDataResponseDto `json:"content,omitempty" xml:"content,omitempty"` + // 是否成功 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 错误码 + ErrNo string `json:"err_no,omitempty" xml:"err_no,omitempty"` + // 栈信息 + StackTrace string `json:"stack_trace,omitempty" xml:"stack_trace,omitempty"` + // 错误信息 + ErrInfo string `json:"err_info,omitempty" xml:"err_info,omitempty"` +} diff --git a/model/happytrip/AlibabaHtorderHotelSyncConfigAPIRequest.go b/model/happytrip/AlibabaHtorderHotelSyncConfigAPIRequest.go new file mode 100644 index 0000000000..38f765c0ff --- /dev/null +++ b/model/happytrip/AlibabaHtorderHotelSyncConfigAPIRequest.go @@ -0,0 +1,52 @@ +package happytrip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同步配置信息 API请求 +alibaba.htorder.hotel.sync.config + +同步配置信息 +*/ +type AlibabaHtorderHotelSyncConfigAPIRequest struct { + model.Params + // 配置信息 + _dataEntity *HotelMessageConfigDto +} + +// 初始化AlibabaHtorderHotelSyncConfigAPIRequest对象 +func NewAlibabaHtorderHotelSyncConfigRequest() *AlibabaHtorderHotelSyncConfigAPIRequest{ + return &AlibabaHtorderHotelSyncConfigAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHtorderHotelSyncConfigAPIRequest) GetApiMethodName() string { + return "alibaba.htorder.hotel.sync.config" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHtorderHotelSyncConfigAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DataEntity Setter +// 配置信息 +func (r *AlibabaHtorderHotelSyncConfigAPIRequest) SetDataEntity(_dataEntity *HotelMessageConfigDto) error { + r._dataEntity = _dataEntity + r.Set("data_entity", _dataEntity) + return nil +} + +// DataEntity Getter +func (r AlibabaHtorderHotelSyncConfigAPIRequest) GetDataEntity() *HotelMessageConfigDto { + return r._dataEntity +} diff --git a/model/happytrip/AlibabaHtorderHotelSyncConfigAPIResponse.go b/model/happytrip/AlibabaHtorderHotelSyncConfigAPIResponse.go new file mode 100644 index 0000000000..e3f43a9841 --- /dev/null +++ b/model/happytrip/AlibabaHtorderHotelSyncConfigAPIResponse.go @@ -0,0 +1,35 @@ +package happytrip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同步配置信息 API返回值 +alibaba.htorder.hotel.sync.config + +同步配置信息 +*/ +type AlibabaHtorderHotelSyncConfigAPIResponse struct { + model.CommonResponse + AlibabaHtorderHotelSyncConfigAPIResponseModel +} + +// 同步配置信息 成功返回结果 +type AlibabaHtorderHotelSyncConfigAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_htorder_hotel_sync_config_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 执行结果 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 错误码 + ErrNo string `json:"err_no,omitempty" xml:"err_no,omitempty"` + // 栈信息 + StackTrace string `json:"stack_trace,omitempty" xml:"stack_trace,omitempty"` + // 成功OR失败 + Content bool `json:"content,omitempty" xml:"content,omitempty"` + // 错误信息 + ErrInfo string `json:"err_info,omitempty" xml:"err_info,omitempty"` +} diff --git a/model/happytrip/AlibabaHtorderHotelSyncConfigResponse.go b/model/happytrip/AlibabaHtorderHotelSyncConfigResponse.go deleted file mode 100644 index a016464253..0000000000 --- a/model/happytrip/AlibabaHtorderHotelSyncConfigResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package happytrip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同步配置信息 API返回值 -alibaba.htorder.hotel.sync.config - -同步配置信息 -*/ -type AlibabaHtorderHotelSyncConfigAPIResponse struct { - model.CommonResponse - AlibabaHtorderHotelSyncConfigResponse -} - -// 同步配置信息 成功返回结果 -type AlibabaHtorderHotelSyncConfigResponse struct { - XMLName xml.Name `xml:"alibaba_htorder_hotel_sync_config_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 执行结果 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` - // 错误码 - ErrNo string `json:"err_no,omitempty" xml:"err_no,omitempty"` - // 栈信息 - StackTrace string `json:"stack_trace,omitempty" xml:"stack_trace,omitempty"` - // 成功OR失败 - Content bool `json:"content,omitempty" xml:"content,omitempty"` - // 错误信息 - ErrInfo string `json:"err_info,omitempty" xml:"err_info,omitempty"` -} diff --git a/model/healthnr/AlibabaHealthNrLogisticsQueryAPIRequest.go b/model/healthnr/AlibabaHealthNrLogisticsQueryAPIRequest.go new file mode 100644 index 0000000000..744d5ff719 --- /dev/null +++ b/model/healthnr/AlibabaHealthNrLogisticsQueryAPIRequest.go @@ -0,0 +1,52 @@ +package healthnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康新零售物流详情接口 API请求 +alibaba.health.nr.logistics.query + +对阿里健康o2o对接的商户提供查询物流单详情的能力 +*/ +type AlibabaHealthNrLogisticsQueryAPIRequest struct { + model.Params + // 订单id + _orderId int64 +} + +// 初始化AlibabaHealthNrLogisticsQueryAPIRequest对象 +func NewAlibabaHealthNrLogisticsQueryRequest() *AlibabaHealthNrLogisticsQueryAPIRequest{ + return &AlibabaHealthNrLogisticsQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHealthNrLogisticsQueryAPIRequest) GetApiMethodName() string { + return "alibaba.health.nr.logistics.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHealthNrLogisticsQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单id +func (r *AlibabaHealthNrLogisticsQueryAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHealthNrLogisticsQueryAPIRequest) GetOrderId() int64 { + return r._orderId +} diff --git a/model/healthnr/AlibabaHealthNrLogisticsQueryAPIResponse.go b/model/healthnr/AlibabaHealthNrLogisticsQueryAPIResponse.go new file mode 100644 index 0000000000..03a7c88b76 --- /dev/null +++ b/model/healthnr/AlibabaHealthNrLogisticsQueryAPIResponse.go @@ -0,0 +1,27 @@ +package healthnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里健康新零售物流详情接口 API返回值 +alibaba.health.nr.logistics.query + +对阿里健康o2o对接的商户提供查询物流单详情的能力 +*/ +type AlibabaHealthNrLogisticsQueryAPIResponse struct { + model.CommonResponse + AlibabaHealthNrLogisticsQueryAPIResponseModel +} + +// 阿里健康新零售物流详情接口 成功返回结果 +type AlibabaHealthNrLogisticsQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_health_nr_logistics_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + ResponseResult *ResponseResult `json:"response_result,omitempty" xml:"response_result,omitempty"` +} diff --git a/model/healthnr/AlibabaHealthNrLogisticsQueryResponse.go b/model/healthnr/AlibabaHealthNrLogisticsQueryResponse.go deleted file mode 100644 index 5f87d8a7d7..0000000000 --- a/model/healthnr/AlibabaHealthNrLogisticsQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package healthnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里健康新零售物流详情接口 API返回值 -alibaba.health.nr.logistics.query - -对阿里健康o2o对接的商户提供查询物流单详情的能力 -*/ -type AlibabaHealthNrLogisticsQueryAPIResponse struct { - model.CommonResponse - AlibabaHealthNrLogisticsQueryResponse -} - -// 阿里健康新零售物流详情接口 成功返回结果 -type AlibabaHealthNrLogisticsQueryResponse struct { - XMLName xml.Name `xml:"alibaba_health_nr_logistics_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - ResponseResult *ResponseResult `json:"response_result,omitempty" xml:"response_result,omitempty"` -} diff --git a/model/homeai/TaobaoHomeaiAlgPredictAPIRequest.go b/model/homeai/TaobaoHomeaiAlgPredictAPIRequest.go new file mode 100644 index 0000000000..76101a03e3 --- /dev/null +++ b/model/homeai/TaobaoHomeaiAlgPredictAPIRequest.go @@ -0,0 +1,66 @@ +package homeai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +硬装预测接口 API请求 +taobao.homeai.alg.predict + +居然之家硬装预测服务 +*/ +type TaobaoHomeaiAlgPredictAPIRequest struct { + model.Params + // 来源房间json + _fromCase string + // 我的家房间json + _toCase string +} + +// 初始化TaobaoHomeaiAlgPredictAPIRequest对象 +func NewTaobaoHomeaiAlgPredictRequest() *TaobaoHomeaiAlgPredictAPIRequest{ + return &TaobaoHomeaiAlgPredictAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoHomeaiAlgPredictAPIRequest) GetApiMethodName() string { + return "taobao.homeai.alg.predict" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoHomeaiAlgPredictAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FromCase Setter +// 来源房间json +func (r *TaobaoHomeaiAlgPredictAPIRequest) SetFromCase(_fromCase string) error { + r._fromCase = _fromCase + r.Set("from_case", _fromCase) + return nil +} + +// FromCase Getter +func (r TaobaoHomeaiAlgPredictAPIRequest) GetFromCase() string { + return r._fromCase +} +// ToCase Setter +// 我的家房间json +func (r *TaobaoHomeaiAlgPredictAPIRequest) SetToCase(_toCase string) error { + r._toCase = _toCase + r.Set("to_case", _toCase) + return nil +} + +// ToCase Getter +func (r TaobaoHomeaiAlgPredictAPIRequest) GetToCase() string { + return r._toCase +} diff --git a/model/homeai/TaobaoHomeaiAlgPredictAPIResponse.go b/model/homeai/TaobaoHomeaiAlgPredictAPIResponse.go new file mode 100644 index 0000000000..1b5257d8fc --- /dev/null +++ b/model/homeai/TaobaoHomeaiAlgPredictAPIResponse.go @@ -0,0 +1,27 @@ +package homeai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +硬装预测接口 API返回值 +taobao.homeai.alg.predict + +居然之家硬装预测服务 +*/ +type TaobaoHomeaiAlgPredictAPIResponse struct { + model.CommonResponse + TaobaoHomeaiAlgPredictAPIResponseModel +} + +// 硬装预测接口 成功返回结果 +type TaobaoHomeaiAlgPredictAPIResponseModel struct { + XMLName xml.Name `xml:"homeai_alg_predict_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *TaobaoHomeaiAlgPredictResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/homeai/TaobaoHomeaiAlgPredictResponse.go b/model/homeai/TaobaoHomeaiAlgPredictResponse.go deleted file mode 100644 index 5187c718b1..0000000000 --- a/model/homeai/TaobaoHomeaiAlgPredictResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package homeai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -硬装预测接口 API返回值 -taobao.homeai.alg.predict - -居然之家硬装预测服务 -*/ -type TaobaoHomeaiAlgPredictAPIResponse struct { - model.CommonResponse - TaobaoHomeaiAlgPredictResponse -} - -// 硬装预测接口 成功返回结果 -type TaobaoHomeaiAlgPredictResponse struct { - XMLName xml.Name `xml:"homeai_alg_predict_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *TaobaoHomeaiAlgPredictResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/hotel/AlitripHotelDetailInfoGetAPIRequest.go b/model/hotel/AlitripHotelDetailInfoGetAPIRequest.go new file mode 100644 index 0000000000..52b8a7a335 --- /dev/null +++ b/model/hotel/AlitripHotelDetailInfoGetAPIRequest.go @@ -0,0 +1,52 @@ +package hotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +详情页动态信息接口 API请求 +alitrip.hotel.detail.info.get + +酒店详情页动态信息TOP方法 +*/ +type AlitripHotelDetailInfoGetAPIRequest struct { + model.Params + // 详情页动态信息参数类 + _paramHotelTopDetailsParam *HotelTopDetailsParam +} + +// 初始化AlitripHotelDetailInfoGetAPIRequest对象 +func NewAlitripHotelDetailInfoGetRequest() *AlitripHotelDetailInfoGetAPIRequest{ + return &AlitripHotelDetailInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripHotelDetailInfoGetAPIRequest) GetApiMethodName() string { + return "alitrip.hotel.detail.info.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripHotelDetailInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamHotelTopDetailsParam Setter +// 详情页动态信息参数类 +func (r *AlitripHotelDetailInfoGetAPIRequest) SetParamHotelTopDetailsParam(_paramHotelTopDetailsParam *HotelTopDetailsParam) error { + r._paramHotelTopDetailsParam = _paramHotelTopDetailsParam + r.Set("param_hotel_top_details_param", _paramHotelTopDetailsParam) + return nil +} + +// ParamHotelTopDetailsParam Getter +func (r AlitripHotelDetailInfoGetAPIRequest) GetParamHotelTopDetailsParam() *HotelTopDetailsParam { + return r._paramHotelTopDetailsParam +} diff --git a/model/hotel/AlitripHotelDetailInfoGetAPIResponse.go b/model/hotel/AlitripHotelDetailInfoGetAPIResponse.go new file mode 100644 index 0000000000..e01615be1e --- /dev/null +++ b/model/hotel/AlitripHotelDetailInfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package hotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +详情页动态信息接口 API返回值 +alitrip.hotel.detail.info.get + +酒店详情页动态信息TOP方法 +*/ +type AlitripHotelDetailInfoGetAPIResponse struct { + model.CommonResponse + AlitripHotelDetailInfoGetAPIResponseModel +} + +// 详情页动态信息接口 成功返回结果 +type AlitripHotelDetailInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_hotel_detail_info_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlitripHotelDetailInfoGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/hotel/AlitripHotelDetailInfoGetResponse.go b/model/hotel/AlitripHotelDetailInfoGetResponse.go deleted file mode 100644 index ef6d32707f..0000000000 --- a/model/hotel/AlitripHotelDetailInfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package hotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -详情页动态信息接口 API返回值 -alitrip.hotel.detail.info.get - -酒店详情页动态信息TOP方法 -*/ -type AlitripHotelDetailInfoGetAPIResponse struct { - model.CommonResponse - AlitripHotelDetailInfoGetResponse -} - -// 详情页动态信息接口 成功返回结果 -type AlitripHotelDetailInfoGetResponse struct { - XMLName xml.Name `xml:"alitrip_hotel_detail_info_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlitripHotelDetailInfoGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/hotel/AlitripHotelDetailStaticinfoGetAPIRequest.go b/model/hotel/AlitripHotelDetailStaticinfoGetAPIRequest.go new file mode 100644 index 0000000000..00038cc9fd --- /dev/null +++ b/model/hotel/AlitripHotelDetailStaticinfoGetAPIRequest.go @@ -0,0 +1,52 @@ +package hotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +详情页静态信息 API请求 +alitrip.hotel.detail.staticinfo.get + +酒店静态信息TOP接口 +*/ +type AlitripHotelDetailStaticinfoGetAPIRequest struct { + model.Params + // 酒店详情页静态信息参数 + _paramHotelTopStaticDetailsParam *HotelTopStaticDetailsParam +} + +// 初始化AlitripHotelDetailStaticinfoGetAPIRequest对象 +func NewAlitripHotelDetailStaticinfoGetRequest() *AlitripHotelDetailStaticinfoGetAPIRequest{ + return &AlitripHotelDetailStaticinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripHotelDetailStaticinfoGetAPIRequest) GetApiMethodName() string { + return "alitrip.hotel.detail.staticinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripHotelDetailStaticinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamHotelTopStaticDetailsParam Setter +// 酒店详情页静态信息参数 +func (r *AlitripHotelDetailStaticinfoGetAPIRequest) SetParamHotelTopStaticDetailsParam(_paramHotelTopStaticDetailsParam *HotelTopStaticDetailsParam) error { + r._paramHotelTopStaticDetailsParam = _paramHotelTopStaticDetailsParam + r.Set("param_hotel_top_static_details_param", _paramHotelTopStaticDetailsParam) + return nil +} + +// ParamHotelTopStaticDetailsParam Getter +func (r AlitripHotelDetailStaticinfoGetAPIRequest) GetParamHotelTopStaticDetailsParam() *HotelTopStaticDetailsParam { + return r._paramHotelTopStaticDetailsParam +} diff --git a/model/hotel/AlitripHotelDetailStaticinfoGetAPIResponse.go b/model/hotel/AlitripHotelDetailStaticinfoGetAPIResponse.go new file mode 100644 index 0000000000..f8e269f7a4 --- /dev/null +++ b/model/hotel/AlitripHotelDetailStaticinfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package hotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +详情页静态信息 API返回值 +alitrip.hotel.detail.staticinfo.get + +酒店静态信息TOP接口 +*/ +type AlitripHotelDetailStaticinfoGetAPIResponse struct { + model.CommonResponse + AlitripHotelDetailStaticinfoGetAPIResponseModel +} + +// 详情页静态信息 成功返回结果 +type AlitripHotelDetailStaticinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_hotel_detail_staticinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlitripHotelDetailStaticinfoGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/hotel/AlitripHotelDetailStaticinfoGetResponse.go b/model/hotel/AlitripHotelDetailStaticinfoGetResponse.go deleted file mode 100644 index aff0e2bb66..0000000000 --- a/model/hotel/AlitripHotelDetailStaticinfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package hotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -详情页静态信息 API返回值 -alitrip.hotel.detail.staticinfo.get - -酒店静态信息TOP接口 -*/ -type AlitripHotelDetailStaticinfoGetAPIResponse struct { - model.CommonResponse - AlitripHotelDetailStaticinfoGetResponse -} - -// 详情页静态信息 成功返回结果 -type AlitripHotelDetailStaticinfoGetResponse struct { - XMLName xml.Name `xml:"alitrip_hotel_detail_staticinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlitripHotelDetailStaticinfoGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/hotel/AlitripHotelRateGetmixratelistGetAPIRequest.go b/model/hotel/AlitripHotelRateGetmixratelistGetAPIRequest.go new file mode 100644 index 0000000000..6cf6d239fc --- /dev/null +++ b/model/hotel/AlitripHotelRateGetmixratelistGetAPIRequest.go @@ -0,0 +1,52 @@ +package hotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店评论接口 API请求 +alitrip.hotel.rate.getmixratelist.get + +酒店评论接口 +*/ +type AlitripHotelRateGetmixratelistGetAPIRequest struct { + model.Params + // 评论参数 + _paramGetMixRateListParam *GetMixRateListParam +} + +// 初始化AlitripHotelRateGetmixratelistGetAPIRequest对象 +func NewAlitripHotelRateGetmixratelistGetRequest() *AlitripHotelRateGetmixratelistGetAPIRequest{ + return &AlitripHotelRateGetmixratelistGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripHotelRateGetmixratelistGetAPIRequest) GetApiMethodName() string { + return "alitrip.hotel.rate.getmixratelist.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripHotelRateGetmixratelistGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamGetMixRateListParam Setter +// 评论参数 +func (r *AlitripHotelRateGetmixratelistGetAPIRequest) SetParamGetMixRateListParam(_paramGetMixRateListParam *GetMixRateListParam) error { + r._paramGetMixRateListParam = _paramGetMixRateListParam + r.Set("param_get_mix_rate_list_param", _paramGetMixRateListParam) + return nil +} + +// ParamGetMixRateListParam Getter +func (r AlitripHotelRateGetmixratelistGetAPIRequest) GetParamGetMixRateListParam() *GetMixRateListParam { + return r._paramGetMixRateListParam +} diff --git a/model/hotel/AlitripHotelRateGetmixratelistGetAPIResponse.go b/model/hotel/AlitripHotelRateGetmixratelistGetAPIResponse.go new file mode 100644 index 0000000000..7ea7965192 --- /dev/null +++ b/model/hotel/AlitripHotelRateGetmixratelistGetAPIResponse.go @@ -0,0 +1,27 @@ +package hotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店评论接口 API返回值 +alitrip.hotel.rate.getmixratelist.get + +酒店评论接口 +*/ +type AlitripHotelRateGetmixratelistGetAPIResponse struct { + model.CommonResponse + AlitripHotelRateGetmixratelistGetAPIResponseModel +} + +// 酒店评论接口 成功返回结果 +type AlitripHotelRateGetmixratelistGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_hotel_rate_getmixratelist_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlitripHotelRateGetmixratelistGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/hotel/AlitripHotelRateGetmixratelistGetResponse.go b/model/hotel/AlitripHotelRateGetmixratelistGetResponse.go deleted file mode 100644 index dd8a307cd2..0000000000 --- a/model/hotel/AlitripHotelRateGetmixratelistGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package hotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店评论接口 API返回值 -alitrip.hotel.rate.getmixratelist.get - -酒店评论接口 -*/ -type AlitripHotelRateGetmixratelistGetAPIResponse struct { - model.CommonResponse - AlitripHotelRateGetmixratelistGetResponse -} - -// 酒店评论接口 成功返回结果 -type AlitripHotelRateGetmixratelistGetResponse struct { - XMLName xml.Name `xml:"alitrip_hotel_rate_getmixratelist_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlitripHotelRateGetmixratelistGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/hotel/AlitripHotelSearchCitysuggestGetAPIRequest.go b/model/hotel/AlitripHotelSearchCitysuggestGetAPIRequest.go new file mode 100644 index 0000000000..9b030da259 --- /dev/null +++ b/model/hotel/AlitripHotelSearchCitysuggestGetAPIRequest.go @@ -0,0 +1,66 @@ +package hotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +城市Suggest接口 API请求 +alitrip.hotel.search.citysuggest.get + +城市Suggest接口 +*/ +type AlitripHotelSearchCitysuggestGetAPIRequest struct { + model.Params + // 用户输入的词 + _keyWords string + // 用户id + _userId int64 +} + +// 初始化AlitripHotelSearchCitysuggestGetAPIRequest对象 +func NewAlitripHotelSearchCitysuggestGetRequest() *AlitripHotelSearchCitysuggestGetAPIRequest{ + return &AlitripHotelSearchCitysuggestGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripHotelSearchCitysuggestGetAPIRequest) GetApiMethodName() string { + return "alitrip.hotel.search.citysuggest.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripHotelSearchCitysuggestGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// KeyWords Setter +// 用户输入的词 +func (r *AlitripHotelSearchCitysuggestGetAPIRequest) SetKeyWords(_keyWords string) error { + r._keyWords = _keyWords + r.Set("key_words", _keyWords) + return nil +} + +// KeyWords Getter +func (r AlitripHotelSearchCitysuggestGetAPIRequest) GetKeyWords() string { + return r._keyWords +} +// UserId Setter +// 用户id +func (r *AlitripHotelSearchCitysuggestGetAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlitripHotelSearchCitysuggestGetAPIRequest) GetUserId() int64 { + return r._userId +} diff --git a/model/hotel/AlitripHotelSearchCitysuggestGetAPIResponse.go b/model/hotel/AlitripHotelSearchCitysuggestGetAPIResponse.go new file mode 100644 index 0000000000..cabe135733 --- /dev/null +++ b/model/hotel/AlitripHotelSearchCitysuggestGetAPIResponse.go @@ -0,0 +1,27 @@ +package hotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +城市Suggest接口 API返回值 +alitrip.hotel.search.citysuggest.get + +城市Suggest接口 +*/ +type AlitripHotelSearchCitysuggestGetAPIResponse struct { + model.CommonResponse + AlitripHotelSearchCitysuggestGetAPIResponseModel +} + +// 城市Suggest接口 成功返回结果 +type AlitripHotelSearchCitysuggestGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_hotel_search_citysuggest_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlitripHotelSearchCitysuggestGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/hotel/AlitripHotelSearchCitysuggestGetResponse.go b/model/hotel/AlitripHotelSearchCitysuggestGetResponse.go deleted file mode 100644 index 4de8033297..0000000000 --- a/model/hotel/AlitripHotelSearchCitysuggestGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package hotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -城市Suggest接口 API返回值 -alitrip.hotel.search.citysuggest.get - -城市Suggest接口 -*/ -type AlitripHotelSearchCitysuggestGetAPIResponse struct { - model.CommonResponse - AlitripHotelSearchCitysuggestGetResponse -} - -// 城市Suggest接口 成功返回结果 -type AlitripHotelSearchCitysuggestGetResponse struct { - XMLName xml.Name `xml:"alitrip_hotel_search_citysuggest_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlitripHotelSearchCitysuggestGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/hotel/AlitripHotelSearchListGetAPIRequest.go b/model/hotel/AlitripHotelSearchListGetAPIRequest.go new file mode 100644 index 0000000000..ee55031db2 --- /dev/null +++ b/model/hotel/AlitripHotelSearchListGetAPIRequest.go @@ -0,0 +1,52 @@ +package hotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店搜索List接口 API请求 +alitrip.hotel.search.list.get + +酒店搜索List接口 +*/ +type AlitripHotelSearchListGetAPIRequest struct { + model.Params + // 入参 + _paramTopHotelSearchListParam *TopHotelSearchListParam +} + +// 初始化AlitripHotelSearchListGetAPIRequest对象 +func NewAlitripHotelSearchListGetRequest() *AlitripHotelSearchListGetAPIRequest{ + return &AlitripHotelSearchListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripHotelSearchListGetAPIRequest) GetApiMethodName() string { + return "alitrip.hotel.search.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripHotelSearchListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamTopHotelSearchListParam Setter +// 入参 +func (r *AlitripHotelSearchListGetAPIRequest) SetParamTopHotelSearchListParam(_paramTopHotelSearchListParam *TopHotelSearchListParam) error { + r._paramTopHotelSearchListParam = _paramTopHotelSearchListParam + r.Set("param_top_hotel_search_list_param", _paramTopHotelSearchListParam) + return nil +} + +// ParamTopHotelSearchListParam Getter +func (r AlitripHotelSearchListGetAPIRequest) GetParamTopHotelSearchListParam() *TopHotelSearchListParam { + return r._paramTopHotelSearchListParam +} diff --git a/model/hotel/AlitripHotelSearchListGetAPIResponse.go b/model/hotel/AlitripHotelSearchListGetAPIResponse.go new file mode 100644 index 0000000000..a64d736749 --- /dev/null +++ b/model/hotel/AlitripHotelSearchListGetAPIResponse.go @@ -0,0 +1,27 @@ +package hotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店搜索List接口 API返回值 +alitrip.hotel.search.list.get + +酒店搜索List接口 +*/ +type AlitripHotelSearchListGetAPIResponse struct { + model.CommonResponse + AlitripHotelSearchListGetAPIResponseModel +} + +// 酒店搜索List接口 成功返回结果 +type AlitripHotelSearchListGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_hotel_search_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlitripHotelSearchListGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/hotel/AlitripHotelSearchListGetResponse.go b/model/hotel/AlitripHotelSearchListGetResponse.go deleted file mode 100644 index e0cb0e4a04..0000000000 --- a/model/hotel/AlitripHotelSearchListGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package hotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店搜索List接口 API返回值 -alitrip.hotel.search.list.get - -酒店搜索List接口 -*/ -type AlitripHotelSearchListGetAPIResponse struct { - model.CommonResponse - AlitripHotelSearchListGetResponse -} - -// 酒店搜索List接口 成功返回结果 -type AlitripHotelSearchListGetResponse struct { - XMLName xml.Name `xml:"alitrip_hotel_search_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlitripHotelSearchListGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/hotel/TaobaoXhotelCityGetAPIRequest.go b/model/hotel/TaobaoXhotelCityGetAPIRequest.go new file mode 100644 index 0000000000..265521e51b --- /dev/null +++ b/model/hotel/TaobaoXhotelCityGetAPIRequest.go @@ -0,0 +1,66 @@ +package hotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店城市数据获取接口 API请求 +taobao.xhotel.city.get + +引流API,对外提供酒店城市数据 +*/ +type TaobaoXhotelCityGetAPIRequest struct { + model.Params + // 分页读取的开始下标,从0开始 + _start int64 + // 分页读取的城市个数,最小值为1,最大值为200 + _count int64 +} + +// 初始化TaobaoXhotelCityGetAPIRequest对象 +func NewTaobaoXhotelCityGetRequest() *TaobaoXhotelCityGetAPIRequest{ + return &TaobaoXhotelCityGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelCityGetAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.city.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelCityGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Start Setter +// 分页读取的开始下标,从0开始 +func (r *TaobaoXhotelCityGetAPIRequest) SetStart(_start int64) error { + r._start = _start + r.Set("start", _start) + return nil +} + +// Start Getter +func (r TaobaoXhotelCityGetAPIRequest) GetStart() int64 { + return r._start +} +// Count Setter +// 分页读取的城市个数,最小值为1,最大值为200 +func (r *TaobaoXhotelCityGetAPIRequest) SetCount(_count int64) error { + r._count = _count + r.Set("count", _count) + return nil +} + +// Count Getter +func (r TaobaoXhotelCityGetAPIRequest) GetCount() int64 { + return r._count +} diff --git a/model/hotel/TaobaoXhotelCityGetAPIResponse.go b/model/hotel/TaobaoXhotelCityGetAPIResponse.go new file mode 100644 index 0000000000..484fb25f08 --- /dev/null +++ b/model/hotel/TaobaoXhotelCityGetAPIResponse.go @@ -0,0 +1,31 @@ +package hotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店城市数据获取接口 API返回值 +taobao.xhotel.city.get + +引流API,对外提供酒店城市数据 +*/ +type TaobaoXhotelCityGetAPIResponse struct { + model.CommonResponse + TaobaoXhotelCityGetAPIResponseModel +} + +// 酒店城市数据获取接口 成功返回结果 +type TaobaoXhotelCityGetAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_city_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 城市数据的版本。所有城市数据有一个统一的版本,与入参start和count无关。 ISV可通过版本判断城市数据是否有更新。判断方法如下:ISV在第一次拉取数据时请将version保存在本地;以后再调用接口时请比较本地version与接口返回的version。如果本地version小于于接口返回version,则说明城市数据有更新;如果本地version等于接口返回version,则说明城市数据无更新,不需要再继续拉取城市数据。 + Version int64 `json:"version,omitempty" xml:"version,omitempty"` + // 酒店区域的数据列表 + Divisions []HotelDivision `json:"divisions,omitempty" xml:"divisions>hotel_division,omitempty"` +} diff --git a/model/hotel/TaobaoXhotelCityGetResponse.go b/model/hotel/TaobaoXhotelCityGetResponse.go deleted file mode 100644 index 7bf7661c10..0000000000 --- a/model/hotel/TaobaoXhotelCityGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package hotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店城市数据获取接口 API返回值 -taobao.xhotel.city.get - -引流API,对外提供酒店城市数据 -*/ -type TaobaoXhotelCityGetAPIResponse struct { - model.CommonResponse - TaobaoXhotelCityGetResponse -} - -// 酒店城市数据获取接口 成功返回结果 -type TaobaoXhotelCityGetResponse struct { - XMLName xml.Name `xml:"xhotel_city_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 城市数据的版本。所有城市数据有一个统一的版本,与入参start和count无关。 ISV可通过版本判断城市数据是否有更新。判断方法如下:ISV在第一次拉取数据时请将version保存在本地;以后再调用接口时请比较本地version与接口返回的version。如果本地version小于于接口返回version,则说明城市数据有更新;如果本地version等于接口返回version,则说明城市数据无更新,不需要再继续拉取城市数据。 - Version int64 `json:"version,omitempty" xml:"version,omitempty"` - // 酒店区域的数据列表 - Divisions []HotelDivision `json:"divisions,omitempty" xml:"divisions>hotel_division,omitempty"` -} diff --git a/model/hotel/TaobaoXhotelInfoListGetAPIRequest.go b/model/hotel/TaobaoXhotelInfoListGetAPIRequest.go new file mode 100644 index 0000000000..93c54703e9 --- /dev/null +++ b/model/hotel/TaobaoXhotelInfoListGetAPIRequest.go @@ -0,0 +1,108 @@ +package hotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店详细信息查询 API请求 +taobao.xhotel.info.list.get + +获取酒店详情信息 +*/ +type TaobaoXhotelInfoListGetAPIRequest struct { + model.Params + // 城市code + _cityCode int64 + // 分页参数:当前页数,从1开始计数。
默认值:1 + _currentPage int64 + // 分页参数:每页酒店数量。最小值1,最大值为50。默认值:20 + _pageSize int64 + // pid + _pid string + // 标准酒店id,如果需要查询单条酒店的信息,需要传入此参数 + _shid int64 +} + +// 初始化TaobaoXhotelInfoListGetAPIRequest对象 +func NewTaobaoXhotelInfoListGetRequest() *TaobaoXhotelInfoListGetAPIRequest{ + return &TaobaoXhotelInfoListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelInfoListGetAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.info.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelInfoListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CityCode Setter +// 城市code +func (r *TaobaoXhotelInfoListGetAPIRequest) SetCityCode(_cityCode int64) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r TaobaoXhotelInfoListGetAPIRequest) GetCityCode() int64 { + return r._cityCode +} +// CurrentPage Setter +// 分页参数:当前页数,从1开始计数。
默认值:1 +func (r *TaobaoXhotelInfoListGetAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TaobaoXhotelInfoListGetAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// PageSize Setter +// 分页参数:每页酒店数量。最小值1,最大值为50。默认值:20 +func (r *TaobaoXhotelInfoListGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoXhotelInfoListGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Pid Setter +// pid +func (r *TaobaoXhotelInfoListGetAPIRequest) SetPid(_pid string) error { + r._pid = _pid + r.Set("pid", _pid) + return nil +} + +// Pid Getter +func (r TaobaoXhotelInfoListGetAPIRequest) GetPid() string { + return r._pid +} +// Shid Setter +// 标准酒店id,如果需要查询单条酒店的信息,需要传入此参数 +func (r *TaobaoXhotelInfoListGetAPIRequest) SetShid(_shid int64) error { + r._shid = _shid + r.Set("shid", _shid) + return nil +} + +// Shid Getter +func (r TaobaoXhotelInfoListGetAPIRequest) GetShid() int64 { + return r._shid +} diff --git a/model/hotel/TaobaoXhotelInfoListGetAPIResponse.go b/model/hotel/TaobaoXhotelInfoListGetAPIResponse.go new file mode 100644 index 0000000000..e1f5e3dd72 --- /dev/null +++ b/model/hotel/TaobaoXhotelInfoListGetAPIResponse.go @@ -0,0 +1,29 @@ +package hotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店详细信息查询 API返回值 +taobao.xhotel.info.list.get + +获取酒店详情信息 +*/ +type TaobaoXhotelInfoListGetAPIResponse struct { + model.CommonResponse + TaobaoXhotelInfoListGetAPIResponseModel +} + +// 酒店详细信息查询 成功返回结果 +type TaobaoXhotelInfoListGetAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_info_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 酒店总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 标准酒店信息 + Hotels []SHotelInfoObject `json:"hotels,omitempty" xml:"hotels>s_hotel_info_object,omitempty"` +} diff --git a/model/hotel/TaobaoXhotelInfoListGetForHelloAPIRequest.go b/model/hotel/TaobaoXhotelInfoListGetForHelloAPIRequest.go new file mode 100644 index 0000000000..e95262a346 --- /dev/null +++ b/model/hotel/TaobaoXhotelInfoListGetForHelloAPIRequest.go @@ -0,0 +1,52 @@ +package hotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +哈罗获取酒店详情 API请求 +taobao.xhotel.info.list.get.for.hello + +哈罗合作项目,供哈罗合作方批量和增量两种场景下查询已开通城市下的标准酒店及房型信息,不涉及用户登录信息 +*/ +type TaobaoXhotelInfoListGetForHelloAPIRequest struct { + model.Params + // 参数封装模型 + _hotelInfoParam *HotelInfoParam +} + +// 初始化TaobaoXhotelInfoListGetForHelloAPIRequest对象 +func NewTaobaoXhotelInfoListGetForHelloRequest() *TaobaoXhotelInfoListGetForHelloAPIRequest{ + return &TaobaoXhotelInfoListGetForHelloAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelInfoListGetForHelloAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.info.list.get.for.hello" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelInfoListGetForHelloAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// HotelInfoParam Setter +// 参数封装模型 +func (r *TaobaoXhotelInfoListGetForHelloAPIRequest) SetHotelInfoParam(_hotelInfoParam *HotelInfoParam) error { + r._hotelInfoParam = _hotelInfoParam + r.Set("hotel_info_param", _hotelInfoParam) + return nil +} + +// HotelInfoParam Getter +func (r TaobaoXhotelInfoListGetForHelloAPIRequest) GetHotelInfoParam() *HotelInfoParam { + return r._hotelInfoParam +} diff --git a/model/hotel/TaobaoXhotelInfoListGetForHelloAPIResponse.go b/model/hotel/TaobaoXhotelInfoListGetForHelloAPIResponse.go new file mode 100644 index 0000000000..5d3814baf0 --- /dev/null +++ b/model/hotel/TaobaoXhotelInfoListGetForHelloAPIResponse.go @@ -0,0 +1,27 @@ +package hotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +哈罗获取酒店详情 API返回值 +taobao.xhotel.info.list.get.for.hello + +哈罗合作项目,供哈罗合作方批量和增量两种场景下查询已开通城市下的标准酒店及房型信息,不涉及用户登录信息 +*/ +type TaobaoXhotelInfoListGetForHelloAPIResponse struct { + model.CommonResponse + TaobaoXhotelInfoListGetForHelloAPIResponseModel +} + +// 哈罗获取酒店详情 成功返回结果 +type TaobaoXhotelInfoListGetForHelloAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_info_list_get_for_hello_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果集 + Result *TaobaoXhotelInfoListGetForHelloResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/hotel/TaobaoXhotelInfoListGetForHelloResponse.go b/model/hotel/TaobaoXhotelInfoListGetForHelloResponse.go deleted file mode 100644 index 7639d75a9d..0000000000 --- a/model/hotel/TaobaoXhotelInfoListGetForHelloResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package hotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -哈罗获取酒店详情 API返回值 -taobao.xhotel.info.list.get.for.hello - -哈罗合作项目,供哈罗合作方批量和增量两种场景下查询已开通城市下的标准酒店及房型信息,不涉及用户登录信息 -*/ -type TaobaoXhotelInfoListGetForHelloAPIResponse struct { - model.CommonResponse - TaobaoXhotelInfoListGetForHelloResponse -} - -// 哈罗获取酒店详情 成功返回结果 -type TaobaoXhotelInfoListGetForHelloResponse struct { - XMLName xml.Name `xml:"xhotel_info_list_get_for_hello_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果集 - Result *TaobaoXhotelInfoListGetForHelloResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/hotel/TaobaoXhotelInfoListGetResponse.go b/model/hotel/TaobaoXhotelInfoListGetResponse.go deleted file mode 100644 index 6b8ad8190f..0000000000 --- a/model/hotel/TaobaoXhotelInfoListGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package hotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店详细信息查询 API返回值 -taobao.xhotel.info.list.get - -获取酒店详情信息 -*/ -type TaobaoXhotelInfoListGetAPIResponse struct { - model.CommonResponse - TaobaoXhotelInfoListGetResponse -} - -// 酒店详细信息查询 成功返回结果 -type TaobaoXhotelInfoListGetResponse struct { - XMLName xml.Name `xml:"xhotel_info_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 酒店总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 标准酒店信息 - Hotels []SHotelInfoObject `json:"hotels,omitempty" xml:"hotels>s_hotel_info_object,omitempty"` -} diff --git a/model/hotel/TaobaoXhotelPriceGetForHelloAPIRequest.go b/model/hotel/TaobaoXhotelPriceGetForHelloAPIRequest.go new file mode 100644 index 0000000000..af9369b41f --- /dev/null +++ b/model/hotel/TaobaoXhotelPriceGetForHelloAPIRequest.go @@ -0,0 +1,52 @@ +package hotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +哈罗合作方获取酒店库存报价 API请求 +taobao.xhotel.price.get.for.hello + +哈罗合作项目,供哈罗合作方按需查询已开通城市下的标准酒店下指定时间段内的库存报价信息;在用户登录方面,返回结果不涉及用户个人信息,不涉及商家信息;仅根据不同用户,查询对应会员等级后,返回不同报价; +*/ +type TaobaoXhotelPriceGetForHelloAPIRequest struct { + model.Params + // 参数封装 + _hotelPriceParam *HotelPriceParam +} + +// 初始化TaobaoXhotelPriceGetForHelloAPIRequest对象 +func NewTaobaoXhotelPriceGetForHelloRequest() *TaobaoXhotelPriceGetForHelloAPIRequest{ + return &TaobaoXhotelPriceGetForHelloAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelPriceGetForHelloAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.price.get.for.hello" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelPriceGetForHelloAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// HotelPriceParam Setter +// 参数封装 +func (r *TaobaoXhotelPriceGetForHelloAPIRequest) SetHotelPriceParam(_hotelPriceParam *HotelPriceParam) error { + r._hotelPriceParam = _hotelPriceParam + r.Set("hotel_price_param", _hotelPriceParam) + return nil +} + +// HotelPriceParam Getter +func (r TaobaoXhotelPriceGetForHelloAPIRequest) GetHotelPriceParam() *HotelPriceParam { + return r._hotelPriceParam +} diff --git a/model/hotel/TaobaoXhotelPriceGetForHelloAPIResponse.go b/model/hotel/TaobaoXhotelPriceGetForHelloAPIResponse.go new file mode 100644 index 0000000000..2fab31d8ff --- /dev/null +++ b/model/hotel/TaobaoXhotelPriceGetForHelloAPIResponse.go @@ -0,0 +1,27 @@ +package hotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +哈罗合作方获取酒店库存报价 API返回值 +taobao.xhotel.price.get.for.hello + +哈罗合作项目,供哈罗合作方按需查询已开通城市下的标准酒店下指定时间段内的库存报价信息;在用户登录方面,返回结果不涉及用户个人信息,不涉及商家信息;仅根据不同用户,查询对应会员等级后,返回不同报价; +*/ +type TaobaoXhotelPriceGetForHelloAPIResponse struct { + model.CommonResponse + TaobaoXhotelPriceGetForHelloAPIResponseModel +} + +// 哈罗合作方获取酒店库存报价 成功返回结果 +type TaobaoXhotelPriceGetForHelloAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_price_get_for_hello_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 库价结果封装 + Result *HotelPriceResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/hotel/TaobaoXhotelPriceGetForHelloResponse.go b/model/hotel/TaobaoXhotelPriceGetForHelloResponse.go deleted file mode 100644 index 0c7649306c..0000000000 --- a/model/hotel/TaobaoXhotelPriceGetForHelloResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package hotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -哈罗合作方获取酒店库存报价 API返回值 -taobao.xhotel.price.get.for.hello - -哈罗合作项目,供哈罗合作方按需查询已开通城市下的标准酒店下指定时间段内的库存报价信息;在用户登录方面,返回结果不涉及用户个人信息,不涉及商家信息;仅根据不同用户,查询对应会员等级后,返回不同报价; -*/ -type TaobaoXhotelPriceGetForHelloAPIResponse struct { - model.CommonResponse - TaobaoXhotelPriceGetForHelloResponse -} - -// 哈罗合作方获取酒店库存报价 成功返回结果 -type TaobaoXhotelPriceGetForHelloResponse struct { - XMLName xml.Name `xml:"xhotel_price_get_for_hello_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 库价结果封装 - Result *HotelPriceResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/hotelalliance/AlitripHotelAllianceHidGetAPIRequest.go b/model/hotelalliance/AlitripHotelAllianceHidGetAPIRequest.go new file mode 100644 index 0000000000..b811f00f0e --- /dev/null +++ b/model/hotelalliance/AlitripHotelAllianceHidGetAPIRequest.go @@ -0,0 +1,52 @@ +package hotelalliance + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取联盟hid API请求 +alitrip.hotel.alliance.hid.get + +获取符合条件的菲住联盟hid,目前支持指定日期上线的菲住联盟hid查询 +*/ +type AlitripHotelAllianceHidGetAPIRequest struct { + model.Params + // 查询入参 + _allianceInfoRequest *AllianceInfoRequest +} + +// 初始化AlitripHotelAllianceHidGetAPIRequest对象 +func NewAlitripHotelAllianceHidGetRequest() *AlitripHotelAllianceHidGetAPIRequest{ + return &AlitripHotelAllianceHidGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripHotelAllianceHidGetAPIRequest) GetApiMethodName() string { + return "alitrip.hotel.alliance.hid.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripHotelAllianceHidGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AllianceInfoRequest Setter +// 查询入参 +func (r *AlitripHotelAllianceHidGetAPIRequest) SetAllianceInfoRequest(_allianceInfoRequest *AllianceInfoRequest) error { + r._allianceInfoRequest = _allianceInfoRequest + r.Set("alliance_info_request", _allianceInfoRequest) + return nil +} + +// AllianceInfoRequest Getter +func (r AlitripHotelAllianceHidGetAPIRequest) GetAllianceInfoRequest() *AllianceInfoRequest { + return r._allianceInfoRequest +} diff --git a/model/hotelalliance/AlitripHotelAllianceHidGetAPIResponse.go b/model/hotelalliance/AlitripHotelAllianceHidGetAPIResponse.go new file mode 100644 index 0000000000..cee7685196 --- /dev/null +++ b/model/hotelalliance/AlitripHotelAllianceHidGetAPIResponse.go @@ -0,0 +1,27 @@ +package hotelalliance + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取联盟hid API返回值 +alitrip.hotel.alliance.hid.get + +获取符合条件的菲住联盟hid,目前支持指定日期上线的菲住联盟hid查询 +*/ +type AlitripHotelAllianceHidGetAPIResponse struct { + model.CommonResponse + AlitripHotelAllianceHidGetAPIResponseModel +} + +// 获取联盟hid 成功返回结果 +type AlitripHotelAllianceHidGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_hotel_alliance_hid_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + HmsTopResultSet *HmsTopResultSet `json:"hms_top_result_set,omitempty" xml:"hms_top_result_set,omitempty"` +} diff --git a/model/hotelalliance/AlitripHotelAllianceHidGetResponse.go b/model/hotelalliance/AlitripHotelAllianceHidGetResponse.go deleted file mode 100644 index bd8379849a..0000000000 --- a/model/hotelalliance/AlitripHotelAllianceHidGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package hotelalliance - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取联盟hid API返回值 -alitrip.hotel.alliance.hid.get - -获取符合条件的菲住联盟hid,目前支持指定日期上线的菲住联盟hid查询 -*/ -type AlitripHotelAllianceHidGetAPIResponse struct { - model.CommonResponse - AlitripHotelAllianceHidGetResponse -} - -// 获取联盟hid 成功返回结果 -type AlitripHotelAllianceHidGetResponse struct { - XMLName xml.Name `xml:"alitrip_hotel_alliance_hid_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - HmsTopResultSet *HmsTopResultSet `json:"hms_top_result_set,omitempty" xml:"hms_top_result_set,omitempty"` -} diff --git a/model/hotelalliance/AlitripHotelAllianceSettleOrderSynAPIRequest.go b/model/hotelalliance/AlitripHotelAllianceSettleOrderSynAPIRequest.go new file mode 100644 index 0000000000..7ec86ed107 --- /dev/null +++ b/model/hotelalliance/AlitripHotelAllianceSettleOrderSynAPIRequest.go @@ -0,0 +1,52 @@ +package hotelalliance + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +菲住联盟分账成功订单同步 API请求 +alitrip.hotel.alliance.settle.order.syn + +用于菲住联盟分账成功订单同步 +*/ +type AlitripHotelAllianceSettleOrderSynAPIRequest struct { + model.Params + // 订单信息 + _orderInfo *AllianceSettleOrderInfo +} + +// 初始化AlitripHotelAllianceSettleOrderSynAPIRequest对象 +func NewAlitripHotelAllianceSettleOrderSynRequest() *AlitripHotelAllianceSettleOrderSynAPIRequest{ + return &AlitripHotelAllianceSettleOrderSynAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripHotelAllianceSettleOrderSynAPIRequest) GetApiMethodName() string { + return "alitrip.hotel.alliance.settle.order.syn" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripHotelAllianceSettleOrderSynAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderInfo Setter +// 订单信息 +func (r *AlitripHotelAllianceSettleOrderSynAPIRequest) SetOrderInfo(_orderInfo *AllianceSettleOrderInfo) error { + r._orderInfo = _orderInfo + r.Set("order_info", _orderInfo) + return nil +} + +// OrderInfo Getter +func (r AlitripHotelAllianceSettleOrderSynAPIRequest) GetOrderInfo() *AllianceSettleOrderInfo { + return r._orderInfo +} diff --git a/model/hotelalliance/AlitripHotelAllianceSettleOrderSynAPIResponse.go b/model/hotelalliance/AlitripHotelAllianceSettleOrderSynAPIResponse.go new file mode 100644 index 0000000000..c5ad2bd853 --- /dev/null +++ b/model/hotelalliance/AlitripHotelAllianceSettleOrderSynAPIResponse.go @@ -0,0 +1,27 @@ +package hotelalliance + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +菲住联盟分账成功订单同步 API返回值 +alitrip.hotel.alliance.settle.order.syn + +用于菲住联盟分账成功订单同步 +*/ +type AlitripHotelAllianceSettleOrderSynAPIResponse struct { + model.CommonResponse + AlitripHotelAllianceSettleOrderSynAPIResponseModel +} + +// 菲住联盟分账成功订单同步 成功返回结果 +type AlitripHotelAllianceSettleOrderSynAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_hotel_alliance_settle_order_syn_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的结果 + HmsTopResultSet *HmsTopResultSet `json:"hms_top_result_set,omitempty" xml:"hms_top_result_set,omitempty"` +} diff --git a/model/hotelalliance/AlitripHotelAllianceSettleOrderSynResponse.go b/model/hotelalliance/AlitripHotelAllianceSettleOrderSynResponse.go deleted file mode 100644 index 7ea9f570f3..0000000000 --- a/model/hotelalliance/AlitripHotelAllianceSettleOrderSynResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package hotelalliance - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -菲住联盟分账成功订单同步 API返回值 -alitrip.hotel.alliance.settle.order.syn - -用于菲住联盟分账成功订单同步 -*/ -type AlitripHotelAllianceSettleOrderSynAPIResponse struct { - model.CommonResponse - AlitripHotelAllianceSettleOrderSynResponse -} - -// 菲住联盟分账成功订单同步 成功返回结果 -type AlitripHotelAllianceSettleOrderSynResponse struct { - XMLName xml.Name `xml:"alitrip_hotel_alliance_settle_order_syn_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的结果 - HmsTopResultSet *HmsTopResultSet `json:"hms_top_result_set,omitempty" xml:"hms_top_result_set,omitempty"` -} diff --git a/model/hotelalliance/AlitripHotelHmsPartnerInfoGetAPIRequest.go b/model/hotelalliance/AlitripHotelHmsPartnerInfoGetAPIRequest.go new file mode 100644 index 0000000000..d71a1963db --- /dev/null +++ b/model/hotelalliance/AlitripHotelHmsPartnerInfoGetAPIRequest.go @@ -0,0 +1,52 @@ +package hotelalliance + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取合作商信息 API请求 +alitrip.hotel.hms.partner.info.get + +用于给到未来酒店读取与飞猪酒店合作的合作商信息,开展单体联盟业务 +*/ +type AlitripHotelHmsPartnerInfoGetAPIRequest struct { + model.Params + // 查询合作商信息query参数 + _queryPartnerInfoParam *QueryPartnerInfoParam +} + +// 初始化AlitripHotelHmsPartnerInfoGetAPIRequest对象 +func NewAlitripHotelHmsPartnerInfoGetRequest() *AlitripHotelHmsPartnerInfoGetAPIRequest{ + return &AlitripHotelHmsPartnerInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripHotelHmsPartnerInfoGetAPIRequest) GetApiMethodName() string { + return "alitrip.hotel.hms.partner.info.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripHotelHmsPartnerInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryPartnerInfoParam Setter +// 查询合作商信息query参数 +func (r *AlitripHotelHmsPartnerInfoGetAPIRequest) SetQueryPartnerInfoParam(_queryPartnerInfoParam *QueryPartnerInfoParam) error { + r._queryPartnerInfoParam = _queryPartnerInfoParam + r.Set("query_partner_info_param", _queryPartnerInfoParam) + return nil +} + +// QueryPartnerInfoParam Getter +func (r AlitripHotelHmsPartnerInfoGetAPIRequest) GetQueryPartnerInfoParam() *QueryPartnerInfoParam { + return r._queryPartnerInfoParam +} diff --git a/model/hotelalliance/AlitripHotelHmsPartnerInfoGetAPIResponse.go b/model/hotelalliance/AlitripHotelHmsPartnerInfoGetAPIResponse.go new file mode 100644 index 0000000000..a67ec7690b --- /dev/null +++ b/model/hotelalliance/AlitripHotelHmsPartnerInfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package hotelalliance + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取合作商信息 API返回值 +alitrip.hotel.hms.partner.info.get + +用于给到未来酒店读取与飞猪酒店合作的合作商信息,开展单体联盟业务 +*/ +type AlitripHotelHmsPartnerInfoGetAPIResponse struct { + model.CommonResponse + AlitripHotelHmsPartnerInfoGetAPIResponseModel +} + +// 获取合作商信息 成功返回结果 +type AlitripHotelHmsPartnerInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_hotel_hms_partner_info_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回Result + HmsTopResultSet *HmsTopResultSet `json:"hms_top_result_set,omitempty" xml:"hms_top_result_set,omitempty"` +} diff --git a/model/hotelalliance/AlitripHotelHmsPartnerInfoGetResponse.go b/model/hotelalliance/AlitripHotelHmsPartnerInfoGetResponse.go deleted file mode 100644 index 723a292ae2..0000000000 --- a/model/hotelalliance/AlitripHotelHmsPartnerInfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package hotelalliance - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取合作商信息 API返回值 -alitrip.hotel.hms.partner.info.get - -用于给到未来酒店读取与飞猪酒店合作的合作商信息,开展单体联盟业务 -*/ -type AlitripHotelHmsPartnerInfoGetAPIResponse struct { - model.CommonResponse - AlitripHotelHmsPartnerInfoGetResponse -} - -// 获取合作商信息 成功返回结果 -type AlitripHotelHmsPartnerInfoGetResponse struct { - XMLName xml.Name `xml:"alitrip_hotel_hms_partner_info_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回Result - HmsTopResultSet *HmsTopResultSet `json:"hms_top_result_set,omitempty" xml:"hms_top_result_set,omitempty"` -} diff --git a/model/hotelalliance/AlitripHotelSingleInfoGetAPIRequest.go b/model/hotelalliance/AlitripHotelSingleInfoGetAPIRequest.go new file mode 100644 index 0000000000..d8a3880a6a --- /dev/null +++ b/model/hotelalliance/AlitripHotelSingleInfoGetAPIRequest.go @@ -0,0 +1,52 @@ +package hotelalliance + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单体酒店信息 API请求 +alitrip.hotel.single.info.get + +用于给到未来酒店读取与飞猪酒店合作的单体酒店信息,开展单体联盟业务 +*/ +type AlitripHotelSingleInfoGetAPIRequest struct { + model.Params + // 查询酒店信息query参数 + _queryHotelInfoParam *QueryHotelInfoParam +} + +// 初始化AlitripHotelSingleInfoGetAPIRequest对象 +func NewAlitripHotelSingleInfoGetRequest() *AlitripHotelSingleInfoGetAPIRequest{ + return &AlitripHotelSingleInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripHotelSingleInfoGetAPIRequest) GetApiMethodName() string { + return "alitrip.hotel.single.info.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripHotelSingleInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryHotelInfoParam Setter +// 查询酒店信息query参数 +func (r *AlitripHotelSingleInfoGetAPIRequest) SetQueryHotelInfoParam(_queryHotelInfoParam *QueryHotelInfoParam) error { + r._queryHotelInfoParam = _queryHotelInfoParam + r.Set("query_hotel_info_param", _queryHotelInfoParam) + return nil +} + +// QueryHotelInfoParam Getter +func (r AlitripHotelSingleInfoGetAPIRequest) GetQueryHotelInfoParam() *QueryHotelInfoParam { + return r._queryHotelInfoParam +} diff --git a/model/hotelalliance/AlitripHotelSingleInfoGetAPIResponse.go b/model/hotelalliance/AlitripHotelSingleInfoGetAPIResponse.go new file mode 100644 index 0000000000..7abab2234b --- /dev/null +++ b/model/hotelalliance/AlitripHotelSingleInfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package hotelalliance + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单体酒店信息 API返回值 +alitrip.hotel.single.info.get + +用于给到未来酒店读取与飞猪酒店合作的单体酒店信息,开展单体联盟业务 +*/ +type AlitripHotelSingleInfoGetAPIResponse struct { + model.CommonResponse + AlitripHotelSingleInfoGetAPIResponseModel +} + +// 获取单体酒店信息 成功返回结果 +type AlitripHotelSingleInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_hotel_single_info_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回Result + HmsTopResultSet *HmsTopResultSet `json:"hms_top_result_set,omitempty" xml:"hms_top_result_set,omitempty"` +} diff --git a/model/hotelalliance/AlitripHotelSingleInfoGetResponse.go b/model/hotelalliance/AlitripHotelSingleInfoGetResponse.go deleted file mode 100644 index 2b993637bd..0000000000 --- a/model/hotelalliance/AlitripHotelSingleInfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package hotelalliance - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取单体酒店信息 API返回值 -alitrip.hotel.single.info.get - -用于给到未来酒店读取与飞猪酒店合作的单体酒店信息,开展单体联盟业务 -*/ -type AlitripHotelSingleInfoGetAPIResponse struct { - model.CommonResponse - AlitripHotelSingleInfoGetResponse -} - -// 获取单体酒店信息 成功返回结果 -type AlitripHotelSingleInfoGetResponse struct { - XMLName xml.Name `xml:"alitrip_hotel_single_info_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回Result - HmsTopResultSet *HmsTopResultSet `json:"hms_top_result_set,omitempty" xml:"hms_top_result_set,omitempty"` -} diff --git a/model/hotelhstdf/AlitripHotelHstdfBusinessareaGetAPIRequest.go b/model/hotelhstdf/AlitripHotelHstdfBusinessareaGetAPIRequest.go new file mode 100644 index 0000000000..b9b932e2b6 --- /dev/null +++ b/model/hotelhstdf/AlitripHotelHstdfBusinessareaGetAPIRequest.go @@ -0,0 +1,52 @@ +package hotelhstdf + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据城市查询商圈 API请求 +alitrip.hotel.hstdf.businessarea.get + +根据cityId分页查询商圈信息 +*/ +type AlitripHotelHstdfBusinessareaGetAPIRequest struct { + model.Params + // 请求参数封装 + _paramGetByTrdiDivisionIdParam *GetByTrdiDivisionIdParam +} + +// 初始化AlitripHotelHstdfBusinessareaGetAPIRequest对象 +func NewAlitripHotelHstdfBusinessareaGetRequest() *AlitripHotelHstdfBusinessareaGetAPIRequest{ + return &AlitripHotelHstdfBusinessareaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripHotelHstdfBusinessareaGetAPIRequest) GetApiMethodName() string { + return "alitrip.hotel.hstdf.businessarea.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripHotelHstdfBusinessareaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamGetByTrdiDivisionIdParam Setter +// 请求参数封装 +func (r *AlitripHotelHstdfBusinessareaGetAPIRequest) SetParamGetByTrdiDivisionIdParam(_paramGetByTrdiDivisionIdParam *GetByTrdiDivisionIdParam) error { + r._paramGetByTrdiDivisionIdParam = _paramGetByTrdiDivisionIdParam + r.Set("param_get_by_trdi_division_id_param", _paramGetByTrdiDivisionIdParam) + return nil +} + +// ParamGetByTrdiDivisionIdParam Getter +func (r AlitripHotelHstdfBusinessareaGetAPIRequest) GetParamGetByTrdiDivisionIdParam() *GetByTrdiDivisionIdParam { + return r._paramGetByTrdiDivisionIdParam +} diff --git a/model/hotelhstdf/AlitripHotelHstdfBusinessareaGetAPIResponse.go b/model/hotelhstdf/AlitripHotelHstdfBusinessareaGetAPIResponse.go new file mode 100644 index 0000000000..3e6730fc93 --- /dev/null +++ b/model/hotelhstdf/AlitripHotelHstdfBusinessareaGetAPIResponse.go @@ -0,0 +1,27 @@ +package hotelhstdf + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据城市查询商圈 API返回值 +alitrip.hotel.hstdf.businessarea.get + +根据cityId分页查询商圈信息 +*/ +type AlitripHotelHstdfBusinessareaGetAPIResponse struct { + model.CommonResponse + AlitripHotelHstdfBusinessareaGetAPIResponseModel +} + +// 根据城市查询商圈 成功返回结果 +type AlitripHotelHstdfBusinessareaGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_hotel_hstdf_businessarea_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // top返回结果 + Result *TopStdResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/hotelhstdf/AlitripHotelHstdfBusinessareaGetResponse.go b/model/hotelhstdf/AlitripHotelHstdfBusinessareaGetResponse.go deleted file mode 100644 index ca62b63642..0000000000 --- a/model/hotelhstdf/AlitripHotelHstdfBusinessareaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package hotelhstdf - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据城市查询商圈 API返回值 -alitrip.hotel.hstdf.businessarea.get - -根据cityId分页查询商圈信息 -*/ -type AlitripHotelHstdfBusinessareaGetAPIResponse struct { - model.CommonResponse - AlitripHotelHstdfBusinessareaGetResponse -} - -// 根据城市查询商圈 成功返回结果 -type AlitripHotelHstdfBusinessareaGetResponse struct { - XMLName xml.Name `xml:"alitrip_hotel_hstdf_businessarea_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // top返回结果 - Result *TopStdResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/hotelhstdf/AlitripHotelHstdfHotelroomstaticGetAPIRequest.go b/model/hotelhstdf/AlitripHotelHstdfHotelroomstaticGetAPIRequest.go new file mode 100644 index 0000000000..ac7451436d --- /dev/null +++ b/model/hotelhstdf/AlitripHotelHstdfHotelroomstaticGetAPIRequest.go @@ -0,0 +1,52 @@ +package hotelhstdf + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据类型查询静态字段 API请求 +alitrip.hotel.hstdf.hotelroomstatic.get + +根据类型查询分页静态字段 +*/ +type AlitripHotelHstdfHotelroomstaticGetAPIRequest struct { + model.Params + // 参数封装 + _paramGetHotelRoomStaticParam *GetHotelRoomStaticParam +} + +// 初始化AlitripHotelHstdfHotelroomstaticGetAPIRequest对象 +func NewAlitripHotelHstdfHotelroomstaticGetRequest() *AlitripHotelHstdfHotelroomstaticGetAPIRequest{ + return &AlitripHotelHstdfHotelroomstaticGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripHotelHstdfHotelroomstaticGetAPIRequest) GetApiMethodName() string { + return "alitrip.hotel.hstdf.hotelroomstatic.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripHotelHstdfHotelroomstaticGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamGetHotelRoomStaticParam Setter +// 参数封装 +func (r *AlitripHotelHstdfHotelroomstaticGetAPIRequest) SetParamGetHotelRoomStaticParam(_paramGetHotelRoomStaticParam *GetHotelRoomStaticParam) error { + r._paramGetHotelRoomStaticParam = _paramGetHotelRoomStaticParam + r.Set("param_get_hotel_room_static_param", _paramGetHotelRoomStaticParam) + return nil +} + +// ParamGetHotelRoomStaticParam Getter +func (r AlitripHotelHstdfHotelroomstaticGetAPIRequest) GetParamGetHotelRoomStaticParam() *GetHotelRoomStaticParam { + return r._paramGetHotelRoomStaticParam +} diff --git a/model/hotelhstdf/AlitripHotelHstdfHotelroomstaticGetAPIResponse.go b/model/hotelhstdf/AlitripHotelHstdfHotelroomstaticGetAPIResponse.go new file mode 100644 index 0000000000..2232501ed7 --- /dev/null +++ b/model/hotelhstdf/AlitripHotelHstdfHotelroomstaticGetAPIResponse.go @@ -0,0 +1,27 @@ +package hotelhstdf + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据类型查询静态字段 API返回值 +alitrip.hotel.hstdf.hotelroomstatic.get + +根据类型查询分页静态字段 +*/ +type AlitripHotelHstdfHotelroomstaticGetAPIResponse struct { + model.CommonResponse + AlitripHotelHstdfHotelroomstaticGetAPIResponseModel +} + +// 根据类型查询静态字段 成功返回结果 +type AlitripHotelHstdfHotelroomstaticGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_hotel_hstdf_hotelroomstatic_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // top返回结果 + Result *TopResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/hotelhstdf/AlitripHotelHstdfHotelroomstaticGetResponse.go b/model/hotelhstdf/AlitripHotelHstdfHotelroomstaticGetResponse.go deleted file mode 100644 index 1c9a636b99..0000000000 --- a/model/hotelhstdf/AlitripHotelHstdfHotelroomstaticGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package hotelhstdf - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据类型查询静态字段 API返回值 -alitrip.hotel.hstdf.hotelroomstatic.get - -根据类型查询分页静态字段 -*/ -type AlitripHotelHstdfHotelroomstaticGetAPIResponse struct { - model.CommonResponse - AlitripHotelHstdfHotelroomstaticGetResponse -} - -// 根据类型查询静态字段 成功返回结果 -type AlitripHotelHstdfHotelroomstaticGetResponse struct { - XMLName xml.Name `xml:"alitrip_hotel_hstdf_hotelroomstatic_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // top返回结果 - Result *TopResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/hotelhstdf/AlitripHotelHstdfPoilocationGetAPIRequest.go b/model/hotelhstdf/AlitripHotelHstdfPoilocationGetAPIRequest.go new file mode 100644 index 0000000000..7a8324dbe0 --- /dev/null +++ b/model/hotelhstdf/AlitripHotelHstdfPoilocationGetAPIRequest.go @@ -0,0 +1,52 @@ +package hotelhstdf + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据平台城市id分页查询poi location API请求 +alitrip.hotel.hstdf.poilocation.get + +根据平台城市id分页查询poi location +*/ +type AlitripHotelHstdfPoilocationGetAPIRequest struct { + model.Params + // 参数封装 + _paramGetByTrdiDivisionIdParam *GetByTrdiDivisionIdParam +} + +// 初始化AlitripHotelHstdfPoilocationGetAPIRequest对象 +func NewAlitripHotelHstdfPoilocationGetRequest() *AlitripHotelHstdfPoilocationGetAPIRequest{ + return &AlitripHotelHstdfPoilocationGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripHotelHstdfPoilocationGetAPIRequest) GetApiMethodName() string { + return "alitrip.hotel.hstdf.poilocation.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripHotelHstdfPoilocationGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamGetByTrdiDivisionIdParam Setter +// 参数封装 +func (r *AlitripHotelHstdfPoilocationGetAPIRequest) SetParamGetByTrdiDivisionIdParam(_paramGetByTrdiDivisionIdParam *GetByTrdiDivisionIdParam) error { + r._paramGetByTrdiDivisionIdParam = _paramGetByTrdiDivisionIdParam + r.Set("param_get_by_trdi_division_id_param", _paramGetByTrdiDivisionIdParam) + return nil +} + +// ParamGetByTrdiDivisionIdParam Getter +func (r AlitripHotelHstdfPoilocationGetAPIRequest) GetParamGetByTrdiDivisionIdParam() *GetByTrdiDivisionIdParam { + return r._paramGetByTrdiDivisionIdParam +} diff --git a/model/hotelhstdf/AlitripHotelHstdfPoilocationGetAPIResponse.go b/model/hotelhstdf/AlitripHotelHstdfPoilocationGetAPIResponse.go new file mode 100644 index 0000000000..93c1d50917 --- /dev/null +++ b/model/hotelhstdf/AlitripHotelHstdfPoilocationGetAPIResponse.go @@ -0,0 +1,27 @@ +package hotelhstdf + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据平台城市id分页查询poi location API返回值 +alitrip.hotel.hstdf.poilocation.get + +根据平台城市id分页查询poi location +*/ +type AlitripHotelHstdfPoilocationGetAPIResponse struct { + model.CommonResponse + AlitripHotelHstdfPoilocationGetAPIResponseModel +} + +// 根据平台城市id分页查询poi location 成功返回结果 +type AlitripHotelHstdfPoilocationGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_hotel_hstdf_poilocation_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // top返回结果 + Result *TopStdResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/hotelhstdf/AlitripHotelHstdfPoilocationGetResponse.go b/model/hotelhstdf/AlitripHotelHstdfPoilocationGetResponse.go deleted file mode 100644 index d503f8bb0f..0000000000 --- a/model/hotelhstdf/AlitripHotelHstdfPoilocationGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package hotelhstdf - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据平台城市id分页查询poi location API返回值 -alitrip.hotel.hstdf.poilocation.get - -根据平台城市id分页查询poi location -*/ -type AlitripHotelHstdfPoilocationGetAPIResponse struct { - model.CommonResponse - AlitripHotelHstdfPoilocationGetResponse -} - -// 根据平台城市id分页查询poi location 成功返回结果 -type AlitripHotelHstdfPoilocationGetResponse struct { - XMLName xml.Name `xml:"alitrip_hotel_hstdf_poilocation_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // top返回结果 - Result *TopStdResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/hotelhstdf/AlitripHotelHstdfShotelExnotmatchroomAPIRequest.go b/model/hotelhstdf/AlitripHotelHstdfShotelExnotmatchroomAPIRequest.go new file mode 100644 index 0000000000..30f0af3629 --- /dev/null +++ b/model/hotelhstdf/AlitripHotelHstdfShotelExnotmatchroomAPIRequest.go @@ -0,0 +1,52 @@ +package hotelhstdf + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +导出一个hid下所有未匹配rid的接口 API请求 +alitrip.hotel.hstdf.shotel.exnotmatchroom + +导出一个卖家hid下所有未匹配的rid信息,包括rid,名称、英文名称、床型、窗型、面积、对外系统id +*/ +type AlitripHotelHstdfShotelExnotmatchroomAPIRequest struct { + model.Params + // 卖家酒店hid + _hid int64 +} + +// 初始化AlitripHotelHstdfShotelExnotmatchroomAPIRequest对象 +func NewAlitripHotelHstdfShotelExnotmatchroomRequest() *AlitripHotelHstdfShotelExnotmatchroomAPIRequest{ + return &AlitripHotelHstdfShotelExnotmatchroomAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripHotelHstdfShotelExnotmatchroomAPIRequest) GetApiMethodName() string { + return "alitrip.hotel.hstdf.shotel.exnotmatchroom" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripHotelHstdfShotelExnotmatchroomAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Hid Setter +// 卖家酒店hid +func (r *AlitripHotelHstdfShotelExnotmatchroomAPIRequest) SetHid(_hid int64) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r AlitripHotelHstdfShotelExnotmatchroomAPIRequest) GetHid() int64 { + return r._hid +} diff --git a/model/hotelhstdf/AlitripHotelHstdfShotelExnotmatchroomAPIResponse.go b/model/hotelhstdf/AlitripHotelHstdfShotelExnotmatchroomAPIResponse.go new file mode 100644 index 0000000000..af7795433e --- /dev/null +++ b/model/hotelhstdf/AlitripHotelHstdfShotelExnotmatchroomAPIResponse.go @@ -0,0 +1,27 @@ +package hotelhstdf + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +导出一个hid下所有未匹配rid的接口 API返回值 +alitrip.hotel.hstdf.shotel.exnotmatchroom + +导出一个卖家hid下所有未匹配的rid信息,包括rid,名称、英文名称、床型、窗型、面积、对外系统id +*/ +type AlitripHotelHstdfShotelExnotmatchroomAPIResponse struct { + model.CommonResponse + AlitripHotelHstdfShotelExnotmatchroomAPIResponseModel +} + +// 导出一个hid下所有未匹配rid的接口 成功返回结果 +type AlitripHotelHstdfShotelExnotmatchroomAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_hotel_hstdf_shotel_exnotmatchroom_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // top返回结果 + Result *TopResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/hotelhstdf/AlitripHotelHstdfShotelExnotmatchroomResponse.go b/model/hotelhstdf/AlitripHotelHstdfShotelExnotmatchroomResponse.go deleted file mode 100644 index ba94745362..0000000000 --- a/model/hotelhstdf/AlitripHotelHstdfShotelExnotmatchroomResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package hotelhstdf - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -导出一个hid下所有未匹配rid的接口 API返回值 -alitrip.hotel.hstdf.shotel.exnotmatchroom - -导出一个卖家hid下所有未匹配的rid信息,包括rid,名称、英文名称、床型、窗型、面积、对外系统id -*/ -type AlitripHotelHstdfShotelExnotmatchroomAPIResponse struct { - model.CommonResponse - AlitripHotelHstdfShotelExnotmatchroomResponse -} - -// 导出一个hid下所有未匹配rid的接口 成功返回结果 -type AlitripHotelHstdfShotelExnotmatchroomResponse struct { - XMLName xml.Name `xml:"alitrip_hotel_hstdf_shotel_exnotmatchroom_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // top返回结果 - Result *TopResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/hotelhstdf/AlitripHotelHstdfShotelExportshotelAPIRequest.go b/model/hotelhstdf/AlitripHotelHstdfShotelExportshotelAPIRequest.go new file mode 100644 index 0000000000..37b9d046a4 --- /dev/null +++ b/model/hotelhstdf/AlitripHotelHstdfShotelExportshotelAPIRequest.go @@ -0,0 +1,136 @@ +package hotelhstdf + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家自主导出相似度高的标准酒店 API请求 +alitrip.hotel.hstdf.shotel.exportshotel + +商家通过给出自己的卖家酒店信息,通过接口可以返回相似度高的标准酒店信息 +*/ +type AlitripHotelHstdfShotelExportshotelAPIRequest struct { + model.Params + // HID,卖家酒店上传到平台后的ID + _hid int64 + // 酒店名称,必填 + _name string + // 酒店所在行政区划,对应平台ID,为空时会使用经纬度来定位 + _cityCode int64 + // 电话 + _telNumber string + // 经度 + _longitude string + // 纬度 + _latitude string + // 地址 + _address string +} + +// 初始化AlitripHotelHstdfShotelExportshotelAPIRequest对象 +func NewAlitripHotelHstdfShotelExportshotelRequest() *AlitripHotelHstdfShotelExportshotelAPIRequest{ + return &AlitripHotelHstdfShotelExportshotelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripHotelHstdfShotelExportshotelAPIRequest) GetApiMethodName() string { + return "alitrip.hotel.hstdf.shotel.exportshotel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripHotelHstdfShotelExportshotelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Hid Setter +// HID,卖家酒店上传到平台后的ID +func (r *AlitripHotelHstdfShotelExportshotelAPIRequest) SetHid(_hid int64) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r AlitripHotelHstdfShotelExportshotelAPIRequest) GetHid() int64 { + return r._hid +} +// Name Setter +// 酒店名称,必填 +func (r *AlitripHotelHstdfShotelExportshotelAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r AlitripHotelHstdfShotelExportshotelAPIRequest) GetName() string { + return r._name +} +// CityCode Setter +// 酒店所在行政区划,对应平台ID,为空时会使用经纬度来定位 +func (r *AlitripHotelHstdfShotelExportshotelAPIRequest) SetCityCode(_cityCode int64) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r AlitripHotelHstdfShotelExportshotelAPIRequest) GetCityCode() int64 { + return r._cityCode +} +// TelNumber Setter +// 电话 +func (r *AlitripHotelHstdfShotelExportshotelAPIRequest) SetTelNumber(_telNumber string) error { + r._telNumber = _telNumber + r.Set("tel_number", _telNumber) + return nil +} + +// TelNumber Getter +func (r AlitripHotelHstdfShotelExportshotelAPIRequest) GetTelNumber() string { + return r._telNumber +} +// Longitude Setter +// 经度 +func (r *AlitripHotelHstdfShotelExportshotelAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r AlitripHotelHstdfShotelExportshotelAPIRequest) GetLongitude() string { + return r._longitude +} +// Latitude Setter +// 纬度 +func (r *AlitripHotelHstdfShotelExportshotelAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r AlitripHotelHstdfShotelExportshotelAPIRequest) GetLatitude() string { + return r._latitude +} +// Address Setter +// 地址 +func (r *AlitripHotelHstdfShotelExportshotelAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r AlitripHotelHstdfShotelExportshotelAPIRequest) GetAddress() string { + return r._address +} diff --git a/model/hotelhstdf/AlitripHotelHstdfShotelExportshotelAPIResponse.go b/model/hotelhstdf/AlitripHotelHstdfShotelExportshotelAPIResponse.go new file mode 100644 index 0000000000..de9f977399 --- /dev/null +++ b/model/hotelhstdf/AlitripHotelHstdfShotelExportshotelAPIResponse.go @@ -0,0 +1,27 @@ +package hotelhstdf + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家自主导出相似度高的标准酒店 API返回值 +alitrip.hotel.hstdf.shotel.exportshotel + +商家通过给出自己的卖家酒店信息,通过接口可以返回相似度高的标准酒店信息 +*/ +type AlitripHotelHstdfShotelExportshotelAPIResponse struct { + model.CommonResponse + AlitripHotelHstdfShotelExportshotelAPIResponseModel +} + +// 商家自主导出相似度高的标准酒店 成功返回结果 +type AlitripHotelHstdfShotelExportshotelAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_hotel_hstdf_shotel_exportshotel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // top返回结果 + TopResultSet *TopResultSet `json:"top_result_set,omitempty" xml:"top_result_set,omitempty"` +} diff --git a/model/hotelhstdf/AlitripHotelHstdfShotelExportshotelResponse.go b/model/hotelhstdf/AlitripHotelHstdfShotelExportshotelResponse.go deleted file mode 100644 index 14155a7018..0000000000 --- a/model/hotelhstdf/AlitripHotelHstdfShotelExportshotelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package hotelhstdf - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家自主导出相似度高的标准酒店 API返回值 -alitrip.hotel.hstdf.shotel.exportshotel - -商家通过给出自己的卖家酒店信息,通过接口可以返回相似度高的标准酒店信息 -*/ -type AlitripHotelHstdfShotelExportshotelAPIResponse struct { - model.CommonResponse - AlitripHotelHstdfShotelExportshotelResponse -} - -// 商家自主导出相似度高的标准酒店 成功返回结果 -type AlitripHotelHstdfShotelExportshotelResponse struct { - XMLName xml.Name `xml:"alitrip_hotel_hstdf_shotel_exportshotel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // top返回结果 - TopResultSet *TopResultSet `json:"top_result_set,omitempty" xml:"top_result_set,omitempty"` -} diff --git a/model/hotelhstdf/AlitripHotelHstdfShotelExportsroomtypeAPIRequest.go b/model/hotelhstdf/AlitripHotelHstdfShotelExportsroomtypeAPIRequest.go new file mode 100644 index 0000000000..7a86246024 --- /dev/null +++ b/model/hotelhstdf/AlitripHotelHstdfShotelExportsroomtypeAPIRequest.go @@ -0,0 +1,52 @@ +package hotelhstdf + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +导出一个卖家房型下的所有标准房型 API请求 +alitrip.hotel.hstdf.shotel.exportsroomtype + +导出一个卖家酒店下的所有标准房型 +*/ +type AlitripHotelHstdfShotelExportsroomtypeAPIRequest struct { + model.Params + // 卖家酒店id + _hid int64 +} + +// 初始化AlitripHotelHstdfShotelExportsroomtypeAPIRequest对象 +func NewAlitripHotelHstdfShotelExportsroomtypeRequest() *AlitripHotelHstdfShotelExportsroomtypeAPIRequest{ + return &AlitripHotelHstdfShotelExportsroomtypeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripHotelHstdfShotelExportsroomtypeAPIRequest) GetApiMethodName() string { + return "alitrip.hotel.hstdf.shotel.exportsroomtype" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripHotelHstdfShotelExportsroomtypeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Hid Setter +// 卖家酒店id +func (r *AlitripHotelHstdfShotelExportsroomtypeAPIRequest) SetHid(_hid int64) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r AlitripHotelHstdfShotelExportsroomtypeAPIRequest) GetHid() int64 { + return r._hid +} diff --git a/model/hotelhstdf/AlitripHotelHstdfShotelExportsroomtypeAPIResponse.go b/model/hotelhstdf/AlitripHotelHstdfShotelExportsroomtypeAPIResponse.go new file mode 100644 index 0000000000..e7516d2944 --- /dev/null +++ b/model/hotelhstdf/AlitripHotelHstdfShotelExportsroomtypeAPIResponse.go @@ -0,0 +1,27 @@ +package hotelhstdf + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +导出一个卖家房型下的所有标准房型 API返回值 +alitrip.hotel.hstdf.shotel.exportsroomtype + +导出一个卖家酒店下的所有标准房型 +*/ +type AlitripHotelHstdfShotelExportsroomtypeAPIResponse struct { + model.CommonResponse + AlitripHotelHstdfShotelExportsroomtypeAPIResponseModel +} + +// 导出一个卖家房型下的所有标准房型 成功返回结果 +type AlitripHotelHstdfShotelExportsroomtypeAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_hotel_hstdf_shotel_exportsroomtype_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // top返回结果 + Result *TopResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/hotelhstdf/AlitripHotelHstdfShotelExportsroomtypeResponse.go b/model/hotelhstdf/AlitripHotelHstdfShotelExportsroomtypeResponse.go deleted file mode 100644 index 8801bf649d..0000000000 --- a/model/hotelhstdf/AlitripHotelHstdfShotelExportsroomtypeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package hotelhstdf - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -导出一个卖家房型下的所有标准房型 API返回值 -alitrip.hotel.hstdf.shotel.exportsroomtype - -导出一个卖家酒店下的所有标准房型 -*/ -type AlitripHotelHstdfShotelExportsroomtypeAPIResponse struct { - model.CommonResponse - AlitripHotelHstdfShotelExportsroomtypeResponse -} - -// 导出一个卖家房型下的所有标准房型 成功返回结果 -type AlitripHotelHstdfShotelExportsroomtypeResponse struct { - XMLName xml.Name `xml:"alitrip_hotel_hstdf_shotel_exportsroomtype_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // top返回结果 - Result *TopResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/hotelhstdf/AlitripHotelHstdfShotelMatchshotelselfAPIRequest.go b/model/hotelhstdf/AlitripHotelHstdfShotelMatchshotelselfAPIRequest.go new file mode 100644 index 0000000000..83f2e68150 --- /dev/null +++ b/model/hotelhstdf/AlitripHotelHstdfShotelMatchshotelselfAPIRequest.go @@ -0,0 +1,52 @@ +package hotelhstdf + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +自主匹配标准酒店以及卖家酒店 API请求 +alitrip.hotel.hstdf.shotel.matchshotelself + +商家通过指定的标准酒店id和卖家酒店id进行匹配 +*/ +type AlitripHotelHstdfShotelMatchshotelselfAPIRequest struct { + model.Params + // HotelMatchParam + _param0 *HotelMatchParam +} + +// 初始化AlitripHotelHstdfShotelMatchshotelselfAPIRequest对象 +func NewAlitripHotelHstdfShotelMatchshotelselfRequest() *AlitripHotelHstdfShotelMatchshotelselfAPIRequest{ + return &AlitripHotelHstdfShotelMatchshotelselfAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripHotelHstdfShotelMatchshotelselfAPIRequest) GetApiMethodName() string { + return "alitrip.hotel.hstdf.shotel.matchshotelself" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripHotelHstdfShotelMatchshotelselfAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// HotelMatchParam +func (r *AlitripHotelHstdfShotelMatchshotelselfAPIRequest) SetParam0(_param0 *HotelMatchParam) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlitripHotelHstdfShotelMatchshotelselfAPIRequest) GetParam0() *HotelMatchParam { + return r._param0 +} diff --git a/model/hotelhstdf/AlitripHotelHstdfShotelMatchshotelselfAPIResponse.go b/model/hotelhstdf/AlitripHotelHstdfShotelMatchshotelselfAPIResponse.go new file mode 100644 index 0000000000..c03922556f --- /dev/null +++ b/model/hotelhstdf/AlitripHotelHstdfShotelMatchshotelselfAPIResponse.go @@ -0,0 +1,31 @@ +package hotelhstdf + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +自主匹配标准酒店以及卖家酒店 API返回值 +alitrip.hotel.hstdf.shotel.matchshotelself + +商家通过指定的标准酒店id和卖家酒店id进行匹配 +*/ +type AlitripHotelHstdfShotelMatchshotelselfAPIResponse struct { + model.CommonResponse + AlitripHotelHstdfShotelMatchshotelselfAPIResponseModel +} + +// 自主匹配标准酒店以及卖家酒店 成功返回结果 +type AlitripHotelHstdfShotelMatchshotelselfAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_hotel_hstdf_shotel_matchshotelself_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + Errorcode string `json:"errorcode,omitempty" xml:"errorcode,omitempty"` + // 错误信息 + Errormsg string `json:"errormsg,omitempty" xml:"errormsg,omitempty"` + // 是否成功 + Status bool `json:"status,omitempty" xml:"status,omitempty"` +} diff --git a/model/hotelhstdf/AlitripHotelHstdfShotelMatchshotelselfResponse.go b/model/hotelhstdf/AlitripHotelHstdfShotelMatchshotelselfResponse.go deleted file mode 100644 index 93a4083358..0000000000 --- a/model/hotelhstdf/AlitripHotelHstdfShotelMatchshotelselfResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package hotelhstdf - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -自主匹配标准酒店以及卖家酒店 API返回值 -alitrip.hotel.hstdf.shotel.matchshotelself - -商家通过指定的标准酒店id和卖家酒店id进行匹配 -*/ -type AlitripHotelHstdfShotelMatchshotelselfAPIResponse struct { - model.CommonResponse - AlitripHotelHstdfShotelMatchshotelselfResponse -} - -// 自主匹配标准酒店以及卖家酒店 成功返回结果 -type AlitripHotelHstdfShotelMatchshotelselfResponse struct { - XMLName xml.Name `xml:"alitrip_hotel_hstdf_shotel_matchshotelself_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - Errorcode string `json:"errorcode,omitempty" xml:"errorcode,omitempty"` - // 错误信息 - Errormsg string `json:"errormsg,omitempty" xml:"errormsg,omitempty"` - // 是否成功 - Status bool `json:"status,omitempty" xml:"status,omitempty"` -} diff --git a/model/hotelhstdf/AlitripHotelHstdfShotelMatchsroomselfAPIRequest.go b/model/hotelhstdf/AlitripHotelHstdfShotelMatchsroomselfAPIRequest.go new file mode 100644 index 0000000000..e222a5724d --- /dev/null +++ b/model/hotelhstdf/AlitripHotelHstdfShotelMatchsroomselfAPIRequest.go @@ -0,0 +1,52 @@ +package hotelhstdf + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +匹配标准房型以及卖家房型 API请求 +alitrip.hotel.hstdf.shotel.matchsroomself + +匹配卖家房型以及标准房型,返回匹配结果 +*/ +type AlitripHotelHstdfShotelMatchsroomselfAPIRequest struct { + model.Params + // SroomTypeMatchParam + _param0 *SroomTypeMatchParam +} + +// 初始化AlitripHotelHstdfShotelMatchsroomselfAPIRequest对象 +func NewAlitripHotelHstdfShotelMatchsroomselfRequest() *AlitripHotelHstdfShotelMatchsroomselfAPIRequest{ + return &AlitripHotelHstdfShotelMatchsroomselfAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripHotelHstdfShotelMatchsroomselfAPIRequest) GetApiMethodName() string { + return "alitrip.hotel.hstdf.shotel.matchsroomself" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripHotelHstdfShotelMatchsroomselfAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// SroomTypeMatchParam +func (r *AlitripHotelHstdfShotelMatchsroomselfAPIRequest) SetParam0(_param0 *SroomTypeMatchParam) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlitripHotelHstdfShotelMatchsroomselfAPIRequest) GetParam0() *SroomTypeMatchParam { + return r._param0 +} diff --git a/model/hotelhstdf/AlitripHotelHstdfShotelMatchsroomselfAPIResponse.go b/model/hotelhstdf/AlitripHotelHstdfShotelMatchsroomselfAPIResponse.go new file mode 100644 index 0000000000..53ae34fd49 --- /dev/null +++ b/model/hotelhstdf/AlitripHotelHstdfShotelMatchsroomselfAPIResponse.go @@ -0,0 +1,31 @@ +package hotelhstdf + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +匹配标准房型以及卖家房型 API返回值 +alitrip.hotel.hstdf.shotel.matchsroomself + +匹配卖家房型以及标准房型,返回匹配结果 +*/ +type AlitripHotelHstdfShotelMatchsroomselfAPIResponse struct { + model.CommonResponse + AlitripHotelHstdfShotelMatchsroomselfAPIResponseModel +} + +// 匹配标准房型以及卖家房型 成功返回结果 +type AlitripHotelHstdfShotelMatchsroomselfAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_hotel_hstdf_shotel_matchsroomself_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // error_code + Errorcode string `json:"errorcode,omitempty" xml:"errorcode,omitempty"` + // error_msg + Errormsg string `json:"errormsg,omitempty" xml:"errormsg,omitempty"` + // 是否成功 + Status bool `json:"status,omitempty" xml:"status,omitempty"` +} diff --git a/model/hotelhstdf/AlitripHotelHstdfShotelMatchsroomselfResponse.go b/model/hotelhstdf/AlitripHotelHstdfShotelMatchsroomselfResponse.go deleted file mode 100644 index 8ae6cbf7c1..0000000000 --- a/model/hotelhstdf/AlitripHotelHstdfShotelMatchsroomselfResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package hotelhstdf - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -匹配标准房型以及卖家房型 API返回值 -alitrip.hotel.hstdf.shotel.matchsroomself - -匹配卖家房型以及标准房型,返回匹配结果 -*/ -type AlitripHotelHstdfShotelMatchsroomselfAPIResponse struct { - model.CommonResponse - AlitripHotelHstdfShotelMatchsroomselfResponse -} - -// 匹配标准房型以及卖家房型 成功返回结果 -type AlitripHotelHstdfShotelMatchsroomselfResponse struct { - XMLName xml.Name `xml:"alitrip_hotel_hstdf_shotel_matchsroomself_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // error_code - Errorcode string `json:"errorcode,omitempty" xml:"errorcode,omitempty"` - // error_msg - Errormsg string `json:"errormsg,omitempty" xml:"errormsg,omitempty"` - // 是否成功 - Status bool `json:"status,omitempty" xml:"status,omitempty"` -} diff --git a/model/hotelhstdf/AlitripHotelHstdfShotelRoomtypeMappingsListAPIRequest.go b/model/hotelhstdf/AlitripHotelHstdfShotelRoomtypeMappingsListAPIRequest.go new file mode 100644 index 0000000000..93c5a172b3 --- /dev/null +++ b/model/hotelhstdf/AlitripHotelHstdfShotelRoomtypeMappingsListAPIRequest.go @@ -0,0 +1,52 @@ +package hotelhstdf + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据HID获取所有卖家房型匹配关系 API请求 +alitrip.hotel.hstdf.shotel.roomtype.mappings.list + +根据HID获取所有卖家房型匹配关系 +*/ +type AlitripHotelHstdfShotelRoomtypeMappingsListAPIRequest struct { + model.Params + // HID + _hid int64 +} + +// 初始化AlitripHotelHstdfShotelRoomtypeMappingsListAPIRequest对象 +func NewAlitripHotelHstdfShotelRoomtypeMappingsListRequest() *AlitripHotelHstdfShotelRoomtypeMappingsListAPIRequest{ + return &AlitripHotelHstdfShotelRoomtypeMappingsListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripHotelHstdfShotelRoomtypeMappingsListAPIRequest) GetApiMethodName() string { + return "alitrip.hotel.hstdf.shotel.roomtype.mappings.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripHotelHstdfShotelRoomtypeMappingsListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Hid Setter +// HID +func (r *AlitripHotelHstdfShotelRoomtypeMappingsListAPIRequest) SetHid(_hid int64) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r AlitripHotelHstdfShotelRoomtypeMappingsListAPIRequest) GetHid() int64 { + return r._hid +} diff --git a/model/hotelhstdf/AlitripHotelHstdfShotelRoomtypeMappingsListAPIResponse.go b/model/hotelhstdf/AlitripHotelHstdfShotelRoomtypeMappingsListAPIResponse.go new file mode 100644 index 0000000000..cb5b56e860 --- /dev/null +++ b/model/hotelhstdf/AlitripHotelHstdfShotelRoomtypeMappingsListAPIResponse.go @@ -0,0 +1,27 @@ +package hotelhstdf + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据HID获取所有卖家房型匹配关系 API返回值 +alitrip.hotel.hstdf.shotel.roomtype.mappings.list + +根据HID获取所有卖家房型匹配关系 +*/ +type AlitripHotelHstdfShotelRoomtypeMappingsListAPIResponse struct { + model.CommonResponse + AlitripHotelHstdfShotelRoomtypeMappingsListAPIResponseModel +} + +// 根据HID获取所有卖家房型匹配关系 成功返回结果 +type AlitripHotelHstdfShotelRoomtypeMappingsListAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_hotel_hstdf_shotel_roomtype_mappings_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // top返回结果 + Result *TopResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/hotelhstdf/AlitripHotelHstdfShotelRoomtypeMappingsListResponse.go b/model/hotelhstdf/AlitripHotelHstdfShotelRoomtypeMappingsListResponse.go deleted file mode 100644 index 473e6077be..0000000000 --- a/model/hotelhstdf/AlitripHotelHstdfShotelRoomtypeMappingsListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package hotelhstdf - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据HID获取所有卖家房型匹配关系 API返回值 -alitrip.hotel.hstdf.shotel.roomtype.mappings.list - -根据HID获取所有卖家房型匹配关系 -*/ -type AlitripHotelHstdfShotelRoomtypeMappingsListAPIResponse struct { - model.CommonResponse - AlitripHotelHstdfShotelRoomtypeMappingsListResponse -} - -// 根据HID获取所有卖家房型匹配关系 成功返回结果 -type AlitripHotelHstdfShotelRoomtypeMappingsListResponse struct { - XMLName xml.Name `xml:"alitrip_hotel_hstdf_shotel_roomtype_mappings_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // top返回结果 - Result *TopResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuCategoryAttributeGetAPIRequest.go b/model/icbu/AlibabaIcbuCategoryAttributeGetAPIRequest.go new file mode 100644 index 0000000000..1fc530a9c7 --- /dev/null +++ b/model/icbu/AlibabaIcbuCategoryAttributeGetAPIRequest.go @@ -0,0 +1,52 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +类目属性获取 API请求 +alibaba.icbu.category.attribute.get + +根据类目ID获取系统定义的属性 +*/ +type AlibabaIcbuCategoryAttributeGetAPIRequest struct { + model.Params + // 发布类目id + _catId int64 +} + +// 初始化AlibabaIcbuCategoryAttributeGetAPIRequest对象 +func NewAlibabaIcbuCategoryAttributeGetRequest() *AlibabaIcbuCategoryAttributeGetAPIRequest{ + return &AlibabaIcbuCategoryAttributeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuCategoryAttributeGetAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.category.attribute.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuCategoryAttributeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CatId Setter +// 发布类目id +func (r *AlibabaIcbuCategoryAttributeGetAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r AlibabaIcbuCategoryAttributeGetAPIRequest) GetCatId() int64 { + return r._catId +} diff --git a/model/icbu/AlibabaIcbuCategoryAttributeGetAPIResponse.go b/model/icbu/AlibabaIcbuCategoryAttributeGetAPIResponse.go new file mode 100644 index 0000000000..ce2b44cbe5 --- /dev/null +++ b/model/icbu/AlibabaIcbuCategoryAttributeGetAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +类目属性获取 API返回值 +alibaba.icbu.category.attribute.get + +根据类目ID获取系统定义的属性 +*/ +type AlibabaIcbuCategoryAttributeGetAPIResponse struct { + model.CommonResponse + AlibabaIcbuCategoryAttributeGetAPIResponseModel +} + +// 类目属性获取 成功返回结果 +type AlibabaIcbuCategoryAttributeGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_category_attribute_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 类目下的属性和属性值信息 + Attributes []Attribute `json:"attributes,omitempty" xml:"attributes>attribute,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuCategoryAttributeGetResponse.go b/model/icbu/AlibabaIcbuCategoryAttributeGetResponse.go deleted file mode 100644 index 19abab5d2c..0000000000 --- a/model/icbu/AlibabaIcbuCategoryAttributeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -类目属性获取 API返回值 -alibaba.icbu.category.attribute.get - -根据类目ID获取系统定义的属性 -*/ -type AlibabaIcbuCategoryAttributeGetAPIResponse struct { - model.CommonResponse - AlibabaIcbuCategoryAttributeGetResponse -} - -// 类目属性获取 成功返回结果 -type AlibabaIcbuCategoryAttributeGetResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_category_attribute_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 类目下的属性和属性值信息 - Attributes []Attribute `json:"attributes,omitempty" xml:"attributes>attribute,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuCategoryAttrvalueGetAPIRequest.go b/model/icbu/AlibabaIcbuCategoryAttrvalueGetAPIRequest.go new file mode 100644 index 0000000000..241b618bc6 --- /dev/null +++ b/model/icbu/AlibabaIcbuCategoryAttrvalueGetAPIRequest.go @@ -0,0 +1,52 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +属性值获取 API请求 +alibaba.icbu.category.attrvalue.get + +属性值获取 +*/ +type AlibabaIcbuCategoryAttrvalueGetAPIRequest struct { + model.Params + // 属性值request对象 + _attributeValueRequest *AttributeValueRequest +} + +// 初始化AlibabaIcbuCategoryAttrvalueGetAPIRequest对象 +func NewAlibabaIcbuCategoryAttrvalueGetRequest() *AlibabaIcbuCategoryAttrvalueGetAPIRequest{ + return &AlibabaIcbuCategoryAttrvalueGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuCategoryAttrvalueGetAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.category.attrvalue.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuCategoryAttrvalueGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AttributeValueRequest Setter +// 属性值request对象 +func (r *AlibabaIcbuCategoryAttrvalueGetAPIRequest) SetAttributeValueRequest(_attributeValueRequest *AttributeValueRequest) error { + r._attributeValueRequest = _attributeValueRequest + r.Set("attribute_value_request", _attributeValueRequest) + return nil +} + +// AttributeValueRequest Getter +func (r AlibabaIcbuCategoryAttrvalueGetAPIRequest) GetAttributeValueRequest() *AttributeValueRequest { + return r._attributeValueRequest +} diff --git a/model/icbu/AlibabaIcbuCategoryAttrvalueGetAPIResponse.go b/model/icbu/AlibabaIcbuCategoryAttrvalueGetAPIResponse.go new file mode 100644 index 0000000000..b235ecf191 --- /dev/null +++ b/model/icbu/AlibabaIcbuCategoryAttrvalueGetAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +属性值获取 API返回值 +alibaba.icbu.category.attrvalue.get + +属性值获取 +*/ +type AlibabaIcbuCategoryAttrvalueGetAPIResponse struct { + model.CommonResponse + AlibabaIcbuCategoryAttrvalueGetAPIResponseModel +} + +// 属性值获取 成功返回结果 +type AlibabaIcbuCategoryAttrvalueGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_category_attrvalue_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + ResultList []AttributeValue `json:"result_list,omitempty" xml:"result_list>attribute_value,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuCategoryAttrvalueGetResponse.go b/model/icbu/AlibabaIcbuCategoryAttrvalueGetResponse.go deleted file mode 100644 index 614b14a56e..0000000000 --- a/model/icbu/AlibabaIcbuCategoryAttrvalueGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -属性值获取 API返回值 -alibaba.icbu.category.attrvalue.get - -属性值获取 -*/ -type AlibabaIcbuCategoryAttrvalueGetAPIResponse struct { - model.CommonResponse - AlibabaIcbuCategoryAttrvalueGetResponse -} - -// 属性值获取 成功返回结果 -type AlibabaIcbuCategoryAttrvalueGetResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_category_attrvalue_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - ResultList []AttributeValue `json:"result_list,omitempty" xml:"result_list>attribute_value,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuCategoryGetAPIRequest.go b/model/icbu/AlibabaIcbuCategoryGetAPIRequest.go new file mode 100644 index 0000000000..cd68bbaeb5 --- /dev/null +++ b/model/icbu/AlibabaIcbuCategoryGetAPIRequest.go @@ -0,0 +1,52 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品发布类目获取 API请求 +alibaba.icbu.category.get + +获取商品发布类目 +*/ +type AlibabaIcbuCategoryGetAPIRequest struct { + model.Params + // 发布类目id,必须大于等于0, 如果为0,则查询所有一级类目 + _catId int64 +} + +// 初始化AlibabaIcbuCategoryGetAPIRequest对象 +func NewAlibabaIcbuCategoryGetRequest() *AlibabaIcbuCategoryGetAPIRequest{ + return &AlibabaIcbuCategoryGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuCategoryGetAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.category.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuCategoryGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CatId Setter +// 发布类目id,必须大于等于0, 如果为0,则查询所有一级类目 +func (r *AlibabaIcbuCategoryGetAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r AlibabaIcbuCategoryGetAPIRequest) GetCatId() int64 { + return r._catId +} diff --git a/model/icbu/AlibabaIcbuCategoryGetAPIResponse.go b/model/icbu/AlibabaIcbuCategoryGetAPIResponse.go new file mode 100644 index 0000000000..04897ccd5a --- /dev/null +++ b/model/icbu/AlibabaIcbuCategoryGetAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品发布类目获取 API返回值 +alibaba.icbu.category.get + +获取商品发布类目 +*/ +type AlibabaIcbuCategoryGetAPIResponse struct { + model.CommonResponse + AlibabaIcbuCategoryGetAPIResponseModel +} + +// 商品发布类目获取 成功返回结果 +type AlibabaIcbuCategoryGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_category_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 类目信息 + Category *PostCategory `json:"category,omitempty" xml:"category,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuCategoryGetNewAPIRequest.go b/model/icbu/AlibabaIcbuCategoryGetNewAPIRequest.go new file mode 100644 index 0000000000..aea9dee127 --- /dev/null +++ b/model/icbu/AlibabaIcbuCategoryGetNewAPIRequest.go @@ -0,0 +1,52 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)ICBU类目树获取接口 API请求 +alibaba.icbu.category.get.new + +获取商品发布类目 +*/ +type AlibabaIcbuCategoryGetNewAPIRequest struct { + model.Params + // 发布类目id,必须大于等于0, 如果为0,则查询所有一级类目 + _catId int64 +} + +// 初始化AlibabaIcbuCategoryGetNewAPIRequest对象 +func NewAlibabaIcbuCategoryGetNewRequest() *AlibabaIcbuCategoryGetNewAPIRequest{ + return &AlibabaIcbuCategoryGetNewAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuCategoryGetNewAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.category.get.new" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuCategoryGetNewAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CatId Setter +// 发布类目id,必须大于等于0, 如果为0,则查询所有一级类目 +func (r *AlibabaIcbuCategoryGetNewAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r AlibabaIcbuCategoryGetNewAPIRequest) GetCatId() int64 { + return r._catId +} diff --git a/model/icbu/AlibabaIcbuCategoryGetNewAPIResponse.go b/model/icbu/AlibabaIcbuCategoryGetNewAPIResponse.go new file mode 100644 index 0000000000..afb1969f51 --- /dev/null +++ b/model/icbu/AlibabaIcbuCategoryGetNewAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)ICBU类目树获取接口 API返回值 +alibaba.icbu.category.get.new + +获取商品发布类目 +*/ +type AlibabaIcbuCategoryGetNewAPIResponse struct { + model.CommonResponse + AlibabaIcbuCategoryGetNewAPIResponseModel +} + +// (新)ICBU类目树获取接口 成功返回结果 +type AlibabaIcbuCategoryGetNewAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_category_get_new_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 类目信息 + Category *PostCategory `json:"category,omitempty" xml:"category,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuCategoryGetNewResponse.go b/model/icbu/AlibabaIcbuCategoryGetNewResponse.go deleted file mode 100644 index 8085171441..0000000000 --- a/model/icbu/AlibabaIcbuCategoryGetNewResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(新)ICBU类目树获取接口 API返回值 -alibaba.icbu.category.get.new - -获取商品发布类目 -*/ -type AlibabaIcbuCategoryGetNewAPIResponse struct { - model.CommonResponse - AlibabaIcbuCategoryGetNewResponse -} - -// (新)ICBU类目树获取接口 成功返回结果 -type AlibabaIcbuCategoryGetNewResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_category_get_new_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 类目信息 - Category *PostCategory `json:"category,omitempty" xml:"category,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuCategoryGetResponse.go b/model/icbu/AlibabaIcbuCategoryGetResponse.go deleted file mode 100644 index 4b915629ac..0000000000 --- a/model/icbu/AlibabaIcbuCategoryGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品发布类目获取 API返回值 -alibaba.icbu.category.get - -获取商品发布类目 -*/ -type AlibabaIcbuCategoryGetAPIResponse struct { - model.CommonResponse - AlibabaIcbuCategoryGetResponse -} - -// 商品发布类目获取 成功返回结果 -type AlibabaIcbuCategoryGetResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_category_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 类目信息 - Category *PostCategory `json:"category,omitempty" xml:"category,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuCategoryIdMappingAPIRequest.go b/model/icbu/AlibabaIcbuCategoryIdMappingAPIRequest.go new file mode 100644 index 0000000000..e459df4bd1 --- /dev/null +++ b/model/icbu/AlibabaIcbuCategoryIdMappingAPIRequest.go @@ -0,0 +1,94 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新旧属性的映射 API请求 +alibaba.icbu.category.id.mapping + +商品发布接口升级,需要传入新的类目。这个接口 根据旧的类目id,获取新的类目id +*/ +type AlibabaIcbuCategoryIdMappingAPIRequest struct { + model.Params + // 发布类目id + _catId int64 + // 属性值id + _attributeValueId int64 + // 属性id + _attributeId int64 + // 转化类型, 1 = 转化类目id 2= 转化属性id 3= 转化属性值id + _convertType int64 +} + +// 初始化AlibabaIcbuCategoryIdMappingAPIRequest对象 +func NewAlibabaIcbuCategoryIdMappingRequest() *AlibabaIcbuCategoryIdMappingAPIRequest{ + return &AlibabaIcbuCategoryIdMappingAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuCategoryIdMappingAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.category.id.mapping" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuCategoryIdMappingAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CatId Setter +// 发布类目id +func (r *AlibabaIcbuCategoryIdMappingAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r AlibabaIcbuCategoryIdMappingAPIRequest) GetCatId() int64 { + return r._catId +} +// AttributeValueId Setter +// 属性值id +func (r *AlibabaIcbuCategoryIdMappingAPIRequest) SetAttributeValueId(_attributeValueId int64) error { + r._attributeValueId = _attributeValueId + r.Set("attribute_value_id", _attributeValueId) + return nil +} + +// AttributeValueId Getter +func (r AlibabaIcbuCategoryIdMappingAPIRequest) GetAttributeValueId() int64 { + return r._attributeValueId +} +// AttributeId Setter +// 属性id +func (r *AlibabaIcbuCategoryIdMappingAPIRequest) SetAttributeId(_attributeId int64) error { + r._attributeId = _attributeId + r.Set("attribute_id", _attributeId) + return nil +} + +// AttributeId Getter +func (r AlibabaIcbuCategoryIdMappingAPIRequest) GetAttributeId() int64 { + return r._attributeId +} +// ConvertType Setter +// 转化类型, 1 = 转化类目id 2= 转化属性id 3= 转化属性值id +func (r *AlibabaIcbuCategoryIdMappingAPIRequest) SetConvertType(_convertType int64) error { + r._convertType = _convertType + r.Set("convert_type", _convertType) + return nil +} + +// ConvertType Getter +func (r AlibabaIcbuCategoryIdMappingAPIRequest) GetConvertType() int64 { + return r._convertType +} diff --git a/model/icbu/AlibabaIcbuCategoryIdMappingAPIResponse.go b/model/icbu/AlibabaIcbuCategoryIdMappingAPIResponse.go new file mode 100644 index 0000000000..4c6b6d3f2c --- /dev/null +++ b/model/icbu/AlibabaIcbuCategoryIdMappingAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新旧属性的映射 API返回值 +alibaba.icbu.category.id.mapping + +商品发布接口升级,需要传入新的类目。这个接口 根据旧的类目id,获取新的类目id +*/ +type AlibabaIcbuCategoryIdMappingAPIResponse struct { + model.CommonResponse + AlibabaIcbuCategoryIdMappingAPIResponseModel +} + +// 新旧属性的映射 成功返回结果 +type AlibabaIcbuCategoryIdMappingAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_category_id_mapping_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 转化的类目id + MappingResult int64 `json:"mapping_result,omitempty" xml:"mapping_result,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuCategoryIdMappingResponse.go b/model/icbu/AlibabaIcbuCategoryIdMappingResponse.go deleted file mode 100644 index 72a27c98f5..0000000000 --- a/model/icbu/AlibabaIcbuCategoryIdMappingResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新旧属性的映射 API返回值 -alibaba.icbu.category.id.mapping - -商品发布接口升级,需要传入新的类目。这个接口 根据旧的类目id,获取新的类目id -*/ -type AlibabaIcbuCategoryIdMappingAPIResponse struct { - model.CommonResponse - AlibabaIcbuCategoryIdMappingResponse -} - -// 新旧属性的映射 成功返回结果 -type AlibabaIcbuCategoryIdMappingResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_category_id_mapping_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 转化的类目id - MappingResult int64 `json:"mapping_result,omitempty" xml:"mapping_result,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuCategoryLevelAttrGetAPIRequest.go b/model/icbu/AlibabaIcbuCategoryLevelAttrGetAPIRequest.go new file mode 100644 index 0000000000..bc7de38b1e --- /dev/null +++ b/model/icbu/AlibabaIcbuCategoryLevelAttrGetAPIRequest.go @@ -0,0 +1,52 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +层级属性的子属性获取 API请求 +alibaba.icbu.category.level.attr.get + +用于获取层级属性(车型库)的子属性和属性值 +*/ +type AlibabaIcbuCategoryLevelAttrGetAPIRequest struct { + model.Params + // 属性值request对象 + _attributeValueRequest *LevelAttributeValueRequest +} + +// 初始化AlibabaIcbuCategoryLevelAttrGetAPIRequest对象 +func NewAlibabaIcbuCategoryLevelAttrGetRequest() *AlibabaIcbuCategoryLevelAttrGetAPIRequest{ + return &AlibabaIcbuCategoryLevelAttrGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuCategoryLevelAttrGetAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.category.level.attr.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuCategoryLevelAttrGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AttributeValueRequest Setter +// 属性值request对象 +func (r *AlibabaIcbuCategoryLevelAttrGetAPIRequest) SetAttributeValueRequest(_attributeValueRequest *LevelAttributeValueRequest) error { + r._attributeValueRequest = _attributeValueRequest + r.Set("attribute_value_request", _attributeValueRequest) + return nil +} + +// AttributeValueRequest Getter +func (r AlibabaIcbuCategoryLevelAttrGetAPIRequest) GetAttributeValueRequest() *LevelAttributeValueRequest { + return r._attributeValueRequest +} diff --git a/model/icbu/AlibabaIcbuCategoryLevelAttrGetAPIResponse.go b/model/icbu/AlibabaIcbuCategoryLevelAttrGetAPIResponse.go new file mode 100644 index 0000000000..d17977b21e --- /dev/null +++ b/model/icbu/AlibabaIcbuCategoryLevelAttrGetAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +层级属性的子属性获取 API返回值 +alibaba.icbu.category.level.attr.get + +用于获取层级属性(车型库)的子属性和属性值 +*/ +type AlibabaIcbuCategoryLevelAttrGetAPIResponse struct { + model.CommonResponse + AlibabaIcbuCategoryLevelAttrGetAPIResponseModel +} + +// 层级属性的子属性获取 成功返回结果 +type AlibabaIcbuCategoryLevelAttrGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_category_level_attr_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + ResultList *AlibabaIcbuCategoryLevelAttrGetResult `json:"result_list,omitempty" xml:"result_list,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuCategoryLevelAttrGetResponse.go b/model/icbu/AlibabaIcbuCategoryLevelAttrGetResponse.go deleted file mode 100644 index ca4ddff614..0000000000 --- a/model/icbu/AlibabaIcbuCategoryLevelAttrGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -层级属性的子属性获取 API返回值 -alibaba.icbu.category.level.attr.get - -用于获取层级属性(车型库)的子属性和属性值 -*/ -type AlibabaIcbuCategoryLevelAttrGetAPIResponse struct { - model.CommonResponse - AlibabaIcbuCategoryLevelAttrGetResponse -} - -// 层级属性的子属性获取 成功返回结果 -type AlibabaIcbuCategoryLevelAttrGetResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_category_level_attr_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - ResultList *AlibabaIcbuCategoryLevelAttrGetResult `json:"result_list,omitempty" xml:"result_list,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuCategorySchemaLevelGetAPIRequest.go b/model/icbu/AlibabaIcbuCategorySchemaLevelGetAPIRequest.go new file mode 100644 index 0000000000..4ae96072e2 --- /dev/null +++ b/model/icbu/AlibabaIcbuCategorySchemaLevelGetAPIRequest.go @@ -0,0 +1,80 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)层级属性获取 API请求 +alibaba.icbu.category.schema.level.get + +将表单中层级属性的子属性返回 +*/ +type AlibabaIcbuCategorySchemaLevelGetAPIRequest struct { + model.Params + // 类目id + _catId int64 + // 返回的文案的语种,可以输入en_US或者zh + _language string + // 层级属性的当前层级属性 + _xml string +} + +// 初始化AlibabaIcbuCategorySchemaLevelGetAPIRequest对象 +func NewAlibabaIcbuCategorySchemaLevelGetRequest() *AlibabaIcbuCategorySchemaLevelGetAPIRequest{ + return &AlibabaIcbuCategorySchemaLevelGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuCategorySchemaLevelGetAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.category.schema.level.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuCategorySchemaLevelGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CatId Setter +// 类目id +func (r *AlibabaIcbuCategorySchemaLevelGetAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r AlibabaIcbuCategorySchemaLevelGetAPIRequest) GetCatId() int64 { + return r._catId +} +// Language Setter +// 返回的文案的语种,可以输入en_US或者zh +func (r *AlibabaIcbuCategorySchemaLevelGetAPIRequest) SetLanguage(_language string) error { + r._language = _language + r.Set("language", _language) + return nil +} + +// Language Getter +func (r AlibabaIcbuCategorySchemaLevelGetAPIRequest) GetLanguage() string { + return r._language +} +// Xml Setter +// 层级属性的当前层级属性 +func (r *AlibabaIcbuCategorySchemaLevelGetAPIRequest) SetXml(_xml string) error { + r._xml = _xml + r.Set("xml", _xml) + return nil +} + +// Xml Getter +func (r AlibabaIcbuCategorySchemaLevelGetAPIRequest) GetXml() string { + return r._xml +} diff --git a/model/icbu/AlibabaIcbuCategorySchemaLevelGetAPIResponse.go b/model/icbu/AlibabaIcbuCategorySchemaLevelGetAPIResponse.go new file mode 100644 index 0000000000..6016e500c5 --- /dev/null +++ b/model/icbu/AlibabaIcbuCategorySchemaLevelGetAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)层级属性获取 API返回值 +alibaba.icbu.category.schema.level.get + +将表单中层级属性的子属性返回 +*/ +type AlibabaIcbuCategorySchemaLevelGetAPIResponse struct { + model.CommonResponse + AlibabaIcbuCategorySchemaLevelGetAPIResponseModel +} + +// (新)层级属性获取 成功返回结果 +type AlibabaIcbuCategorySchemaLevelGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_category_schema_level_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Top返回对象 + Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuCategorySchemaLevelGetResponse.go b/model/icbu/AlibabaIcbuCategorySchemaLevelGetResponse.go deleted file mode 100644 index 1c8f543cac..0000000000 --- a/model/icbu/AlibabaIcbuCategorySchemaLevelGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(新)层级属性获取 API返回值 -alibaba.icbu.category.schema.level.get - -将表单中层级属性的子属性返回 -*/ -type AlibabaIcbuCategorySchemaLevelGetAPIResponse struct { - model.CommonResponse - AlibabaIcbuCategorySchemaLevelGetResponse -} - -// (新)层级属性获取 成功返回结果 -type AlibabaIcbuCategorySchemaLevelGetResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_category_schema_level_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Top返回对象 - Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuPhotobankGroupListAPIRequest.go b/model/icbu/AlibabaIcbuPhotobankGroupListAPIRequest.go new file mode 100644 index 0000000000..82a86a3db9 --- /dev/null +++ b/model/icbu/AlibabaIcbuPhotobankGroupListAPIRequest.go @@ -0,0 +1,66 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +图片银行分组信息获取 API请求 +alibaba.icbu.photobank.group.list + +图片银行分组信息获取 +*/ +type AlibabaIcbuPhotobankGroupListAPIRequest struct { + model.Params + // 补充信息 + _extraContext string + // 查询图片分组信息,如果传入id,则获取当前分组和所有子分组信息,否则获取所有一级分组信息 + _id int64 +} + +// 初始化AlibabaIcbuPhotobankGroupListAPIRequest对象 +func NewAlibabaIcbuPhotobankGroupListRequest() *AlibabaIcbuPhotobankGroupListAPIRequest{ + return &AlibabaIcbuPhotobankGroupListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuPhotobankGroupListAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.photobank.group.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuPhotobankGroupListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExtraContext Setter +// 补充信息 +func (r *AlibabaIcbuPhotobankGroupListAPIRequest) SetExtraContext(_extraContext string) error { + r._extraContext = _extraContext + r.Set("extra_context", _extraContext) + return nil +} + +// ExtraContext Getter +func (r AlibabaIcbuPhotobankGroupListAPIRequest) GetExtraContext() string { + return r._extraContext +} +// Id Setter +// 查询图片分组信息,如果传入id,则获取当前分组和所有子分组信息,否则获取所有一级分组信息 +func (r *AlibabaIcbuPhotobankGroupListAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaIcbuPhotobankGroupListAPIRequest) GetId() int64 { + return r._id +} diff --git a/model/icbu/AlibabaIcbuPhotobankGroupListAPIResponse.go b/model/icbu/AlibabaIcbuPhotobankGroupListAPIResponse.go new file mode 100644 index 0000000000..8abd3ef9e0 --- /dev/null +++ b/model/icbu/AlibabaIcbuPhotobankGroupListAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +图片银行分组信息获取 API返回值 +alibaba.icbu.photobank.group.list + +图片银行分组信息获取 +*/ +type AlibabaIcbuPhotobankGroupListAPIResponse struct { + model.CommonResponse + AlibabaIcbuPhotobankGroupListAPIResponseModel +} + +// 图片银行分组信息获取 成功返回结果 +type AlibabaIcbuPhotobankGroupListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_photobank_group_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // groups + Groups []PhotoAlbumGroup `json:"groups,omitempty" xml:"groups>photo_album_group,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuPhotobankGroupListResponse.go b/model/icbu/AlibabaIcbuPhotobankGroupListResponse.go deleted file mode 100644 index 9928dac1e4..0000000000 --- a/model/icbu/AlibabaIcbuPhotobankGroupListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -图片银行分组信息获取 API返回值 -alibaba.icbu.photobank.group.list - -图片银行分组信息获取 -*/ -type AlibabaIcbuPhotobankGroupListAPIResponse struct { - model.CommonResponse - AlibabaIcbuPhotobankGroupListResponse -} - -// 图片银行分组信息获取 成功返回结果 -type AlibabaIcbuPhotobankGroupListResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_photobank_group_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // groups - Groups []PhotoAlbumGroup `json:"groups,omitempty" xml:"groups>photo_album_group,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuPhotobankGroupOperateAPIRequest.go b/model/icbu/AlibabaIcbuPhotobankGroupOperateAPIRequest.go new file mode 100644 index 0000000000..3a766140b4 --- /dev/null +++ b/model/icbu/AlibabaIcbuPhotobankGroupOperateAPIRequest.go @@ -0,0 +1,52 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +图片银行分组操作接口 API请求 +alibaba.icbu.photobank.group.operate + +修改用户图片银行的分组信息,包括 新增分组,删除分组,分组重命名 +*/ +type AlibabaIcbuPhotobankGroupOperateAPIRequest struct { + model.Params + // 图片分组操作请求对象 + _photoGroupOperationRequest *PhotoGroupOperationRequest +} + +// 初始化AlibabaIcbuPhotobankGroupOperateAPIRequest对象 +func NewAlibabaIcbuPhotobankGroupOperateRequest() *AlibabaIcbuPhotobankGroupOperateAPIRequest{ + return &AlibabaIcbuPhotobankGroupOperateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuPhotobankGroupOperateAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.photobank.group.operate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuPhotobankGroupOperateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PhotoGroupOperationRequest Setter +// 图片分组操作请求对象 +func (r *AlibabaIcbuPhotobankGroupOperateAPIRequest) SetPhotoGroupOperationRequest(_photoGroupOperationRequest *PhotoGroupOperationRequest) error { + r._photoGroupOperationRequest = _photoGroupOperationRequest + r.Set("photo_group_operation_request", _photoGroupOperationRequest) + return nil +} + +// PhotoGroupOperationRequest Getter +func (r AlibabaIcbuPhotobankGroupOperateAPIRequest) GetPhotoGroupOperationRequest() *PhotoGroupOperationRequest { + return r._photoGroupOperationRequest +} diff --git a/model/icbu/AlibabaIcbuPhotobankGroupOperateAPIResponse.go b/model/icbu/AlibabaIcbuPhotobankGroupOperateAPIResponse.go new file mode 100644 index 0000000000..6cb47e10e4 --- /dev/null +++ b/model/icbu/AlibabaIcbuPhotobankGroupOperateAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +图片银行分组操作接口 API返回值 +alibaba.icbu.photobank.group.operate + +修改用户图片银行的分组信息,包括 新增分组,删除分组,分组重命名 +*/ +type AlibabaIcbuPhotobankGroupOperateAPIResponse struct { + model.CommonResponse + AlibabaIcbuPhotobankGroupOperateAPIResponseModel +} + +// 图片银行分组操作接口 成功返回结果 +type AlibabaIcbuPhotobankGroupOperateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_photobank_group_operate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回的数据结果 + PhotoGroupResult *PhotoGroupResult `json:"photo_group_result,omitempty" xml:"photo_group_result,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuPhotobankGroupOperateResponse.go b/model/icbu/AlibabaIcbuPhotobankGroupOperateResponse.go deleted file mode 100644 index 89002bc147..0000000000 --- a/model/icbu/AlibabaIcbuPhotobankGroupOperateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -图片银行分组操作接口 API返回值 -alibaba.icbu.photobank.group.operate - -修改用户图片银行的分组信息,包括 新增分组,删除分组,分组重命名 -*/ -type AlibabaIcbuPhotobankGroupOperateAPIResponse struct { - model.CommonResponse - AlibabaIcbuPhotobankGroupOperateResponse -} - -// 图片银行分组操作接口 成功返回结果 -type AlibabaIcbuPhotobankGroupOperateResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_photobank_group_operate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回的数据结果 - PhotoGroupResult *PhotoGroupResult `json:"photo_group_result,omitempty" xml:"photo_group_result,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuPhotobankListAPIRequest.go b/model/icbu/AlibabaIcbuPhotobankListAPIRequest.go new file mode 100644 index 0000000000..4e9b0973fc --- /dev/null +++ b/model/icbu/AlibabaIcbuPhotobankListAPIRequest.go @@ -0,0 +1,108 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +国际站图片银行查询接口 API请求 +alibaba.icbu.photobank.list + +国际站图片银行查询接口 +*/ +type AlibabaIcbuPhotobankListAPIRequest struct { + model.Params + // 当前翻页数 + _currentPage int64 + // 图片组id + _groupId string + // 存放位置 必要条件, 包括ALL_GROUP(所有目录), SUB_GROUP(指定图片组下),UNGROUP(未分组), TEMP(disable)四个值 + _locationType string + // 每页显示数 + _pageSize int64 + // 额外的上下文信息. 例如:icvId + _extraContext string +} + +// 初始化AlibabaIcbuPhotobankListAPIRequest对象 +func NewAlibabaIcbuPhotobankListRequest() *AlibabaIcbuPhotobankListAPIRequest{ + return &AlibabaIcbuPhotobankListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuPhotobankListAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.photobank.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuPhotobankListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CurrentPage Setter +// 当前翻页数 +func (r *AlibabaIcbuPhotobankListAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AlibabaIcbuPhotobankListAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// GroupId Setter +// 图片组id +func (r *AlibabaIcbuPhotobankListAPIRequest) SetGroupId(_groupId string) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r AlibabaIcbuPhotobankListAPIRequest) GetGroupId() string { + return r._groupId +} +// LocationType Setter +// 存放位置 必要条件, 包括ALL_GROUP(所有目录), SUB_GROUP(指定图片组下),UNGROUP(未分组), TEMP(disable)四个值 +func (r *AlibabaIcbuPhotobankListAPIRequest) SetLocationType(_locationType string) error { + r._locationType = _locationType + r.Set("location_type", _locationType) + return nil +} + +// LocationType Getter +func (r AlibabaIcbuPhotobankListAPIRequest) GetLocationType() string { + return r._locationType +} +// PageSize Setter +// 每页显示数 +func (r *AlibabaIcbuPhotobankListAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaIcbuPhotobankListAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// ExtraContext Setter +// 额外的上下文信息. 例如:icvId +func (r *AlibabaIcbuPhotobankListAPIRequest) SetExtraContext(_extraContext string) error { + r._extraContext = _extraContext + r.Set("extra_context", _extraContext) + return nil +} + +// ExtraContext Getter +func (r AlibabaIcbuPhotobankListAPIRequest) GetExtraContext() string { + return r._extraContext +} diff --git a/model/icbu/AlibabaIcbuPhotobankListAPIResponse.go b/model/icbu/AlibabaIcbuPhotobankListAPIResponse.go new file mode 100644 index 0000000000..70e33e9c32 --- /dev/null +++ b/model/icbu/AlibabaIcbuPhotobankListAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +国际站图片银行查询接口 API返回值 +alibaba.icbu.photobank.list + +国际站图片银行查询接口 +*/ +type AlibabaIcbuPhotobankListAPIResponse struct { + model.CommonResponse + AlibabaIcbuPhotobankListAPIResponseModel +} + +// 国际站图片银行查询接口 成功返回结果 +type AlibabaIcbuPhotobankListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_photobank_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 图片查询结果 + PaginationQueryList *PaginationQueryList `json:"pagination_query_list,omitempty" xml:"pagination_query_list,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuPhotobankListResponse.go b/model/icbu/AlibabaIcbuPhotobankListResponse.go deleted file mode 100644 index 8980c41d05..0000000000 --- a/model/icbu/AlibabaIcbuPhotobankListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -国际站图片银行查询接口 API返回值 -alibaba.icbu.photobank.list - -国际站图片银行查询接口 -*/ -type AlibabaIcbuPhotobankListAPIResponse struct { - model.CommonResponse - AlibabaIcbuPhotobankListResponse -} - -// 国际站图片银行查询接口 成功返回结果 -type AlibabaIcbuPhotobankListResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_photobank_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 图片查询结果 - PaginationQueryList *PaginationQueryList `json:"pagination_query_list,omitempty" xml:"pagination_query_list,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuPhotobankUploadAPIRequest.go b/model/icbu/AlibabaIcbuPhotobankUploadAPIRequest.go new file mode 100644 index 0000000000..f803496b07 --- /dev/null +++ b/model/icbu/AlibabaIcbuPhotobankUploadAPIRequest.go @@ -0,0 +1,94 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +图片银行图片上传开放接口 API请求 +alibaba.icbu.photobank.upload + +图片银行图片上传开放接口 +*/ +type AlibabaIcbuPhotobankUploadAPIRequest struct { + model.Params + // 上传图片名称 + _fileName string + // 上传图片所在分组 + _groupId string + // 图片字节数组 + _imageBytes *model.File + // 扩展参数信息,如ICVID + _extraContext string +} + +// 初始化AlibabaIcbuPhotobankUploadAPIRequest对象 +func NewAlibabaIcbuPhotobankUploadRequest() *AlibabaIcbuPhotobankUploadAPIRequest{ + return &AlibabaIcbuPhotobankUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuPhotobankUploadAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.photobank.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuPhotobankUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FileName Setter +// 上传图片名称 +func (r *AlibabaIcbuPhotobankUploadAPIRequest) SetFileName(_fileName string) error { + r._fileName = _fileName + r.Set("file_name", _fileName) + return nil +} + +// FileName Getter +func (r AlibabaIcbuPhotobankUploadAPIRequest) GetFileName() string { + return r._fileName +} +// GroupId Setter +// 上传图片所在分组 +func (r *AlibabaIcbuPhotobankUploadAPIRequest) SetGroupId(_groupId string) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r AlibabaIcbuPhotobankUploadAPIRequest) GetGroupId() string { + return r._groupId +} +// ImageBytes Setter +// 图片字节数组 +func (r *AlibabaIcbuPhotobankUploadAPIRequest) SetImageBytes(_imageBytes *model.File) error { + r._imageBytes = _imageBytes + r.Set("image_bytes", _imageBytes) + return nil +} + +// ImageBytes Getter +func (r AlibabaIcbuPhotobankUploadAPIRequest) GetImageBytes() *model.File { + return r._imageBytes +} +// ExtraContext Setter +// 扩展参数信息,如ICVID +func (r *AlibabaIcbuPhotobankUploadAPIRequest) SetExtraContext(_extraContext string) error { + r._extraContext = _extraContext + r.Set("extra_context", _extraContext) + return nil +} + +// ExtraContext Getter +func (r AlibabaIcbuPhotobankUploadAPIRequest) GetExtraContext() string { + return r._extraContext +} diff --git a/model/icbu/AlibabaIcbuPhotobankUploadAPIResponse.go b/model/icbu/AlibabaIcbuPhotobankUploadAPIResponse.go new file mode 100644 index 0000000000..dcb74ab9d1 --- /dev/null +++ b/model/icbu/AlibabaIcbuPhotobankUploadAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +图片银行图片上传开放接口 API返回值 +alibaba.icbu.photobank.upload + +图片银行图片上传开放接口 +*/ +type AlibabaIcbuPhotobankUploadAPIResponse struct { + model.CommonResponse + AlibabaIcbuPhotobankUploadAPIResponseModel +} + +// 图片银行图片上传开放接口 成功返回结果 +type AlibabaIcbuPhotobankUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_photobank_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 图片信息 + UploadImageResponse *UploadImageResponseDo `json:"upload_image_response,omitempty" xml:"upload_image_response,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuPhotobankUploadResponse.go b/model/icbu/AlibabaIcbuPhotobankUploadResponse.go deleted file mode 100644 index 63e560e0bd..0000000000 --- a/model/icbu/AlibabaIcbuPhotobankUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -图片银行图片上传开放接口 API返回值 -alibaba.icbu.photobank.upload - -图片银行图片上传开放接口 -*/ -type AlibabaIcbuPhotobankUploadAPIResponse struct { - model.CommonResponse - AlibabaIcbuPhotobankUploadResponse -} - -// 图片银行图片上传开放接口 成功返回结果 -type AlibabaIcbuPhotobankUploadResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_photobank_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 图片信息 - UploadImageResponse *UploadImageResponseDo `json:"upload_image_response,omitempty" xml:"upload_image_response,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuProductAddAPIRequest.go b/model/icbu/AlibabaIcbuProductAddAPIRequest.go new file mode 100644 index 0000000000..d0914695cb --- /dev/null +++ b/model/icbu/AlibabaIcbuProductAddAPIRequest.go @@ -0,0 +1,276 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发布产品 API请求 +alibaba.icbu.product.add + +发布商品,支持sourcing/一口价商品,支持英文和多种语言原发商品 +*/ +type AlibabaIcbuProductAddAPIRequest struct { + model.Params + // 商品属性和属性值 + _attributes []ProductAttribute + // 根据数量设置的折扣价 + _bulkDiscountPrices []BulkDiscountPrice + // 类目ID + _categoryId int64 + // 商品详情描述,可包含图片中心的图片URL + _description string + // 补充信息 + _extraContext string + // 分组ID + _groupId int64 + // 关键词,不要包含特殊符号(如,;),最多三个 + _keywords []string + // 语种,参见FAQ 语种枚举值 + _language string + // 商品主图 + _mainImage *MainImage + // 商品SKU定义 + _productSku *ProductSku + // 商品类型,在线批发商品(wholesale)或者询盘商品(sourcing),值为wholesale时,必须填写wholesale_trade + _productType string + // 询盘商品交易信息 + _sourcingTrade *SourcingTrade + // 商品名称,最多128个字符 + _subject string + // 在线批发商品交易信息 + _wholesaleTrade *WholesaleTrade + // 发布的市场,支持main,发到主市场 + _market string + // 是否智能编辑,如果不传,默认为false + _isSmartEdit bool + // 定制信息 + _customInfo *CustomInfo +} + +// 初始化AlibabaIcbuProductAddAPIRequest对象 +func NewAlibabaIcbuProductAddRequest() *AlibabaIcbuProductAddAPIRequest{ + return &AlibabaIcbuProductAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuProductAddAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.product.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuProductAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Attributes Setter +// 商品属性和属性值 +func (r *AlibabaIcbuProductAddAPIRequest) SetAttributes(_attributes []ProductAttribute) error { + r._attributes = _attributes + r.Set("attributes", _attributes) + return nil +} + +// Attributes Getter +func (r AlibabaIcbuProductAddAPIRequest) GetAttributes() []ProductAttribute { + return r._attributes +} +// BulkDiscountPrices Setter +// 根据数量设置的折扣价 +func (r *AlibabaIcbuProductAddAPIRequest) SetBulkDiscountPrices(_bulkDiscountPrices []BulkDiscountPrice) error { + r._bulkDiscountPrices = _bulkDiscountPrices + r.Set("bulk_discount_prices", _bulkDiscountPrices) + return nil +} + +// BulkDiscountPrices Getter +func (r AlibabaIcbuProductAddAPIRequest) GetBulkDiscountPrices() []BulkDiscountPrice { + return r._bulkDiscountPrices +} +// CategoryId Setter +// 类目ID +func (r *AlibabaIcbuProductAddAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r AlibabaIcbuProductAddAPIRequest) GetCategoryId() int64 { + return r._categoryId +} +// Description Setter +// 商品详情描述,可包含图片中心的图片URL +func (r *AlibabaIcbuProductAddAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r AlibabaIcbuProductAddAPIRequest) GetDescription() string { + return r._description +} +// ExtraContext Setter +// 补充信息 +func (r *AlibabaIcbuProductAddAPIRequest) SetExtraContext(_extraContext string) error { + r._extraContext = _extraContext + r.Set("extra_context", _extraContext) + return nil +} + +// ExtraContext Getter +func (r AlibabaIcbuProductAddAPIRequest) GetExtraContext() string { + return r._extraContext +} +// GroupId Setter +// 分组ID +func (r *AlibabaIcbuProductAddAPIRequest) SetGroupId(_groupId int64) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r AlibabaIcbuProductAddAPIRequest) GetGroupId() int64 { + return r._groupId +} +// Keywords Setter +// 关键词,不要包含特殊符号(如,;),最多三个 +func (r *AlibabaIcbuProductAddAPIRequest) SetKeywords(_keywords []string) error { + r._keywords = _keywords + r.Set("keywords", _keywords) + return nil +} + +// Keywords Getter +func (r AlibabaIcbuProductAddAPIRequest) GetKeywords() []string { + return r._keywords +} +// Language Setter +// 语种,参见FAQ 语种枚举值 +func (r *AlibabaIcbuProductAddAPIRequest) SetLanguage(_language string) error { + r._language = _language + r.Set("language", _language) + return nil +} + +// Language Getter +func (r AlibabaIcbuProductAddAPIRequest) GetLanguage() string { + return r._language +} +// MainImage Setter +// 商品主图 +func (r *AlibabaIcbuProductAddAPIRequest) SetMainImage(_mainImage *MainImage) error { + r._mainImage = _mainImage + r.Set("main_image", _mainImage) + return nil +} + +// MainImage Getter +func (r AlibabaIcbuProductAddAPIRequest) GetMainImage() *MainImage { + return r._mainImage +} +// ProductSku Setter +// 商品SKU定义 +func (r *AlibabaIcbuProductAddAPIRequest) SetProductSku(_productSku *ProductSku) error { + r._productSku = _productSku + r.Set("product_sku", _productSku) + return nil +} + +// ProductSku Getter +func (r AlibabaIcbuProductAddAPIRequest) GetProductSku() *ProductSku { + return r._productSku +} +// ProductType Setter +// 商品类型,在线批发商品(wholesale)或者询盘商品(sourcing),值为wholesale时,必须填写wholesale_trade +func (r *AlibabaIcbuProductAddAPIRequest) SetProductType(_productType string) error { + r._productType = _productType + r.Set("product_type", _productType) + return nil +} + +// ProductType Getter +func (r AlibabaIcbuProductAddAPIRequest) GetProductType() string { + return r._productType +} +// SourcingTrade Setter +// 询盘商品交易信息 +func (r *AlibabaIcbuProductAddAPIRequest) SetSourcingTrade(_sourcingTrade *SourcingTrade) error { + r._sourcingTrade = _sourcingTrade + r.Set("sourcing_trade", _sourcingTrade) + return nil +} + +// SourcingTrade Getter +func (r AlibabaIcbuProductAddAPIRequest) GetSourcingTrade() *SourcingTrade { + return r._sourcingTrade +} +// Subject Setter +// 商品名称,最多128个字符 +func (r *AlibabaIcbuProductAddAPIRequest) SetSubject(_subject string) error { + r._subject = _subject + r.Set("subject", _subject) + return nil +} + +// Subject Getter +func (r AlibabaIcbuProductAddAPIRequest) GetSubject() string { + return r._subject +} +// WholesaleTrade Setter +// 在线批发商品交易信息 +func (r *AlibabaIcbuProductAddAPIRequest) SetWholesaleTrade(_wholesaleTrade *WholesaleTrade) error { + r._wholesaleTrade = _wholesaleTrade + r.Set("wholesale_trade", _wholesaleTrade) + return nil +} + +// WholesaleTrade Getter +func (r AlibabaIcbuProductAddAPIRequest) GetWholesaleTrade() *WholesaleTrade { + return r._wholesaleTrade +} +// Market Setter +// 发布的市场,支持main,发到主市场 +func (r *AlibabaIcbuProductAddAPIRequest) SetMarket(_market string) error { + r._market = _market + r.Set("market", _market) + return nil +} + +// Market Getter +func (r AlibabaIcbuProductAddAPIRequest) GetMarket() string { + return r._market +} +// IsSmartEdit Setter +// 是否智能编辑,如果不传,默认为false +func (r *AlibabaIcbuProductAddAPIRequest) SetIsSmartEdit(_isSmartEdit bool) error { + r._isSmartEdit = _isSmartEdit + r.Set("is_smart_edit", _isSmartEdit) + return nil +} + +// IsSmartEdit Getter +func (r AlibabaIcbuProductAddAPIRequest) GetIsSmartEdit() bool { + return r._isSmartEdit +} +// CustomInfo Setter +// 定制信息 +func (r *AlibabaIcbuProductAddAPIRequest) SetCustomInfo(_customInfo *CustomInfo) error { + r._customInfo = _customInfo + r.Set("custom_info", _customInfo) + return nil +} + +// CustomInfo Getter +func (r AlibabaIcbuProductAddAPIRequest) GetCustomInfo() *CustomInfo { + return r._customInfo +} diff --git a/model/icbu/AlibabaIcbuProductAddAPIResponse.go b/model/icbu/AlibabaIcbuProductAddAPIResponse.go new file mode 100644 index 0000000000..2df37b0946 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductAddAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发布产品 API返回值 +alibaba.icbu.product.add + +发布商品,支持sourcing/一口价商品,支持英文和多种语言原发商品 +*/ +type AlibabaIcbuProductAddAPIResponse struct { + model.CommonResponse + AlibabaIcbuProductAddAPIResponseModel +} + +// 发布产品 成功返回结果 +type AlibabaIcbuProductAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_product_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 混淆后的产品ID + ProductId string `json:"product_id,omitempty" xml:"product_id,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuProductAddDraftAPIRequest.go b/model/icbu/AlibabaIcbuProductAddDraftAPIRequest.go new file mode 100644 index 0000000000..17460572be --- /dev/null +++ b/model/icbu/AlibabaIcbuProductAddDraftAPIRequest.go @@ -0,0 +1,276 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ICBU商品发布草稿接口 API请求 +alibaba.icbu.product.add.draft + +发布商品草稿,支持sourcing/一口价商品,支持英文和多种语言原发商品 +*/ +type AlibabaIcbuProductAddDraftAPIRequest struct { + model.Params + // 商品属性和属性值 + _attributes []ProductAttribute + // 根据数量设置的折扣价 + _bulkDiscountPrices []BulkDiscountPrice + // 类目ID + _categoryId int64 + // 商品详情描述,可包含图片中心的图片URL + _description string + // 补充信息 + _extraContext string + // 分组ID + _groupId int64 + // 关键词,不要包含特殊符号(如,;),最多三个 + _keywords []string + // 语种,参见FAQ 语种枚举值 + _language string + // 商品主图 + _mainImage *MainImage + // 商品SKU定义 + _productSku *ProductSku + // 商品类型,在线批发商品(wholesale)或者询盘商品(sourcing),值为wholesale时,必须填写wholesale_trade + _productType string + // 询盘商品交易信息 + _sourcingTrade *SourcingTrade + // 商品名称,最多128个字符 + _subject string + // 在线批发商品交易信息 + _wholesaleTrade *WholesaleTrade + // 发布的市场,支持main/onesite,默认main发到主市场,填onesite发布为商机通产品 + _market string + // 是否智能编辑,如果不传,默认为false + _isSmartEdit bool + // 定制信息 + _customInfo *CustomInfo +} + +// 初始化AlibabaIcbuProductAddDraftAPIRequest对象 +func NewAlibabaIcbuProductAddDraftRequest() *AlibabaIcbuProductAddDraftAPIRequest{ + return &AlibabaIcbuProductAddDraftAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuProductAddDraftAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.product.add.draft" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuProductAddDraftAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Attributes Setter +// 商品属性和属性值 +func (r *AlibabaIcbuProductAddDraftAPIRequest) SetAttributes(_attributes []ProductAttribute) error { + r._attributes = _attributes + r.Set("attributes", _attributes) + return nil +} + +// Attributes Getter +func (r AlibabaIcbuProductAddDraftAPIRequest) GetAttributes() []ProductAttribute { + return r._attributes +} +// BulkDiscountPrices Setter +// 根据数量设置的折扣价 +func (r *AlibabaIcbuProductAddDraftAPIRequest) SetBulkDiscountPrices(_bulkDiscountPrices []BulkDiscountPrice) error { + r._bulkDiscountPrices = _bulkDiscountPrices + r.Set("bulk_discount_prices", _bulkDiscountPrices) + return nil +} + +// BulkDiscountPrices Getter +func (r AlibabaIcbuProductAddDraftAPIRequest) GetBulkDiscountPrices() []BulkDiscountPrice { + return r._bulkDiscountPrices +} +// CategoryId Setter +// 类目ID +func (r *AlibabaIcbuProductAddDraftAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r AlibabaIcbuProductAddDraftAPIRequest) GetCategoryId() int64 { + return r._categoryId +} +// Description Setter +// 商品详情描述,可包含图片中心的图片URL +func (r *AlibabaIcbuProductAddDraftAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r AlibabaIcbuProductAddDraftAPIRequest) GetDescription() string { + return r._description +} +// ExtraContext Setter +// 补充信息 +func (r *AlibabaIcbuProductAddDraftAPIRequest) SetExtraContext(_extraContext string) error { + r._extraContext = _extraContext + r.Set("extra_context", _extraContext) + return nil +} + +// ExtraContext Getter +func (r AlibabaIcbuProductAddDraftAPIRequest) GetExtraContext() string { + return r._extraContext +} +// GroupId Setter +// 分组ID +func (r *AlibabaIcbuProductAddDraftAPIRequest) SetGroupId(_groupId int64) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r AlibabaIcbuProductAddDraftAPIRequest) GetGroupId() int64 { + return r._groupId +} +// Keywords Setter +// 关键词,不要包含特殊符号(如,;),最多三个 +func (r *AlibabaIcbuProductAddDraftAPIRequest) SetKeywords(_keywords []string) error { + r._keywords = _keywords + r.Set("keywords", _keywords) + return nil +} + +// Keywords Getter +func (r AlibabaIcbuProductAddDraftAPIRequest) GetKeywords() []string { + return r._keywords +} +// Language Setter +// 语种,参见FAQ 语种枚举值 +func (r *AlibabaIcbuProductAddDraftAPIRequest) SetLanguage(_language string) error { + r._language = _language + r.Set("language", _language) + return nil +} + +// Language Getter +func (r AlibabaIcbuProductAddDraftAPIRequest) GetLanguage() string { + return r._language +} +// MainImage Setter +// 商品主图 +func (r *AlibabaIcbuProductAddDraftAPIRequest) SetMainImage(_mainImage *MainImage) error { + r._mainImage = _mainImage + r.Set("main_image", _mainImage) + return nil +} + +// MainImage Getter +func (r AlibabaIcbuProductAddDraftAPIRequest) GetMainImage() *MainImage { + return r._mainImage +} +// ProductSku Setter +// 商品SKU定义 +func (r *AlibabaIcbuProductAddDraftAPIRequest) SetProductSku(_productSku *ProductSku) error { + r._productSku = _productSku + r.Set("product_sku", _productSku) + return nil +} + +// ProductSku Getter +func (r AlibabaIcbuProductAddDraftAPIRequest) GetProductSku() *ProductSku { + return r._productSku +} +// ProductType Setter +// 商品类型,在线批发商品(wholesale)或者询盘商品(sourcing),值为wholesale时,必须填写wholesale_trade +func (r *AlibabaIcbuProductAddDraftAPIRequest) SetProductType(_productType string) error { + r._productType = _productType + r.Set("product_type", _productType) + return nil +} + +// ProductType Getter +func (r AlibabaIcbuProductAddDraftAPIRequest) GetProductType() string { + return r._productType +} +// SourcingTrade Setter +// 询盘商品交易信息 +func (r *AlibabaIcbuProductAddDraftAPIRequest) SetSourcingTrade(_sourcingTrade *SourcingTrade) error { + r._sourcingTrade = _sourcingTrade + r.Set("sourcing_trade", _sourcingTrade) + return nil +} + +// SourcingTrade Getter +func (r AlibabaIcbuProductAddDraftAPIRequest) GetSourcingTrade() *SourcingTrade { + return r._sourcingTrade +} +// Subject Setter +// 商品名称,最多128个字符 +func (r *AlibabaIcbuProductAddDraftAPIRequest) SetSubject(_subject string) error { + r._subject = _subject + r.Set("subject", _subject) + return nil +} + +// Subject Getter +func (r AlibabaIcbuProductAddDraftAPIRequest) GetSubject() string { + return r._subject +} +// WholesaleTrade Setter +// 在线批发商品交易信息 +func (r *AlibabaIcbuProductAddDraftAPIRequest) SetWholesaleTrade(_wholesaleTrade *WholesaleTrade) error { + r._wholesaleTrade = _wholesaleTrade + r.Set("wholesale_trade", _wholesaleTrade) + return nil +} + +// WholesaleTrade Getter +func (r AlibabaIcbuProductAddDraftAPIRequest) GetWholesaleTrade() *WholesaleTrade { + return r._wholesaleTrade +} +// Market Setter +// 发布的市场,支持main/onesite,默认main发到主市场,填onesite发布为商机通产品 +func (r *AlibabaIcbuProductAddDraftAPIRequest) SetMarket(_market string) error { + r._market = _market + r.Set("market", _market) + return nil +} + +// Market Getter +func (r AlibabaIcbuProductAddDraftAPIRequest) GetMarket() string { + return r._market +} +// IsSmartEdit Setter +// 是否智能编辑,如果不传,默认为false +func (r *AlibabaIcbuProductAddDraftAPIRequest) SetIsSmartEdit(_isSmartEdit bool) error { + r._isSmartEdit = _isSmartEdit + r.Set("is_smart_edit", _isSmartEdit) + return nil +} + +// IsSmartEdit Getter +func (r AlibabaIcbuProductAddDraftAPIRequest) GetIsSmartEdit() bool { + return r._isSmartEdit +} +// CustomInfo Setter +// 定制信息 +func (r *AlibabaIcbuProductAddDraftAPIRequest) SetCustomInfo(_customInfo *CustomInfo) error { + r._customInfo = _customInfo + r.Set("custom_info", _customInfo) + return nil +} + +// CustomInfo Getter +func (r AlibabaIcbuProductAddDraftAPIRequest) GetCustomInfo() *CustomInfo { + return r._customInfo +} diff --git a/model/icbu/AlibabaIcbuProductAddDraftAPIResponse.go b/model/icbu/AlibabaIcbuProductAddDraftAPIResponse.go new file mode 100644 index 0000000000..e0c5b65332 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductAddDraftAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ICBU商品发布草稿接口 API返回值 +alibaba.icbu.product.add.draft + +发布商品草稿,支持sourcing/一口价商品,支持英文和多种语言原发商品 +*/ +type AlibabaIcbuProductAddDraftAPIResponse struct { + model.CommonResponse + AlibabaIcbuProductAddDraftAPIResponseModel +} + +// ICBU商品发布草稿接口 成功返回结果 +type AlibabaIcbuProductAddDraftAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_product_add_draft_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 混淆后的产品ID + ProductId string `json:"product_id,omitempty" xml:"product_id,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuProductAddDraftResponse.go b/model/icbu/AlibabaIcbuProductAddDraftResponse.go deleted file mode 100644 index fe2e27a575..0000000000 --- a/model/icbu/AlibabaIcbuProductAddDraftResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ICBU商品发布草稿接口 API返回值 -alibaba.icbu.product.add.draft - -发布商品草稿,支持sourcing/一口价商品,支持英文和多种语言原发商品 -*/ -type AlibabaIcbuProductAddDraftAPIResponse struct { - model.CommonResponse - AlibabaIcbuProductAddDraftResponse -} - -// ICBU商品发布草稿接口 成功返回结果 -type AlibabaIcbuProductAddDraftResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_product_add_draft_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 混淆后的产品ID - ProductId string `json:"product_id,omitempty" xml:"product_id,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuProductAddResponse.go b/model/icbu/AlibabaIcbuProductAddResponse.go deleted file mode 100644 index d3d4d410c2..0000000000 --- a/model/icbu/AlibabaIcbuProductAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发布产品 API返回值 -alibaba.icbu.product.add - -发布商品,支持sourcing/一口价商品,支持英文和多种语言原发商品 -*/ -type AlibabaIcbuProductAddAPIResponse struct { - model.CommonResponse - AlibabaIcbuProductAddResponse -} - -// 发布产品 成功返回结果 -type AlibabaIcbuProductAddResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_product_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 混淆后的产品ID - ProductId string `json:"product_id,omitempty" xml:"product_id,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuProductBatchUpdateDisplayAPIRequest.go b/model/icbu/AlibabaIcbuProductBatchUpdateDisplayAPIRequest.go new file mode 100644 index 0000000000..b495c2ede9 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductBatchUpdateDisplayAPIRequest.go @@ -0,0 +1,66 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品批量上下架接口 API请求 +alibaba.icbu.product.batch.update.display + +给国际站的三方服务商提供批量上下架接口 +*/ +type AlibabaIcbuProductBatchUpdateDisplayAPIRequest struct { + model.Params + // on表示上架,off表示下架 + _newDisplay string + // 用逗号分隔的混淆id字符串 + _productIdList string +} + +// 初始化AlibabaIcbuProductBatchUpdateDisplayAPIRequest对象 +func NewAlibabaIcbuProductBatchUpdateDisplayRequest() *AlibabaIcbuProductBatchUpdateDisplayAPIRequest{ + return &AlibabaIcbuProductBatchUpdateDisplayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuProductBatchUpdateDisplayAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.product.batch.update.display" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuProductBatchUpdateDisplayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NewDisplay Setter +// on表示上架,off表示下架 +func (r *AlibabaIcbuProductBatchUpdateDisplayAPIRequest) SetNewDisplay(_newDisplay string) error { + r._newDisplay = _newDisplay + r.Set("new_display", _newDisplay) + return nil +} + +// NewDisplay Getter +func (r AlibabaIcbuProductBatchUpdateDisplayAPIRequest) GetNewDisplay() string { + return r._newDisplay +} +// ProductIdList Setter +// 用逗号分隔的混淆id字符串 +func (r *AlibabaIcbuProductBatchUpdateDisplayAPIRequest) SetProductIdList(_productIdList string) error { + r._productIdList = _productIdList + r.Set("product_id_list", _productIdList) + return nil +} + +// ProductIdList Getter +func (r AlibabaIcbuProductBatchUpdateDisplayAPIRequest) GetProductIdList() string { + return r._productIdList +} diff --git a/model/icbu/AlibabaIcbuProductBatchUpdateDisplayAPIResponse.go b/model/icbu/AlibabaIcbuProductBatchUpdateDisplayAPIResponse.go new file mode 100644 index 0000000000..2cef3102bb --- /dev/null +++ b/model/icbu/AlibabaIcbuProductBatchUpdateDisplayAPIResponse.go @@ -0,0 +1,33 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品批量上下架接口 API返回值 +alibaba.icbu.product.batch.update.display + +给国际站的三方服务商提供批量上下架接口 +*/ +type AlibabaIcbuProductBatchUpdateDisplayAPIResponse struct { + model.CommonResponse + AlibabaIcbuProductBatchUpdateDisplayAPIResponseModel +} + +// 商品批量上下架接口 成功返回结果 +type AlibabaIcbuProductBatchUpdateDisplayAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_product_batch_update_display_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 只有出错才会显示,唯一标识这次请求 + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 如果出错,这里会显示错误码 + SubErrorCode string `json:"sub_error_code,omitempty" xml:"sub_error_code,omitempty"` + // 具体出错信息 + SubErrorMsg string `json:"sub_error_msg,omitempty" xml:"sub_error_msg,omitempty"` + // 本次操作是否成功,true表示成功,false表示失败 + SubSuccess bool `json:"sub_success,omitempty" xml:"sub_success,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuProductBatchUpdateDisplayResponse.go b/model/icbu/AlibabaIcbuProductBatchUpdateDisplayResponse.go deleted file mode 100644 index f4d50c8d26..0000000000 --- a/model/icbu/AlibabaIcbuProductBatchUpdateDisplayResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品批量上下架接口 API返回值 -alibaba.icbu.product.batch.update.display - -给国际站的三方服务商提供批量上下架接口 -*/ -type AlibabaIcbuProductBatchUpdateDisplayAPIResponse struct { - model.CommonResponse - AlibabaIcbuProductBatchUpdateDisplayResponse -} - -// 商品批量上下架接口 成功返回结果 -type AlibabaIcbuProductBatchUpdateDisplayResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_product_batch_update_display_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 只有出错才会显示,唯一标识这次请求 - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 如果出错,这里会显示错误码 - SubErrorCode string `json:"sub_error_code,omitempty" xml:"sub_error_code,omitempty"` - // 具体出错信息 - SubErrorMsg string `json:"sub_error_msg,omitempty" xml:"sub_error_msg,omitempty"` - // 本次操作是否成功,true表示成功,false表示失败 - SubSuccess bool `json:"sub_success,omitempty" xml:"sub_success,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuProductGetAPIRequest.go b/model/icbu/AlibabaIcbuProductGetAPIRequest.go new file mode 100644 index 0000000000..f7c0c80b91 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductGetAPIRequest.go @@ -0,0 +1,66 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获得单个商品详情 API请求 +alibaba.icbu.product.get + +获取商品详情 +*/ +type AlibabaIcbuProductGetAPIRequest struct { + model.Params + // 商品语种,目前只支持ENGLISH + _language string + // 混淆后的商品ID + _productId string +} + +// 初始化AlibabaIcbuProductGetAPIRequest对象 +func NewAlibabaIcbuProductGetRequest() *AlibabaIcbuProductGetAPIRequest{ + return &AlibabaIcbuProductGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuProductGetAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.product.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuProductGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Language Setter +// 商品语种,目前只支持ENGLISH +func (r *AlibabaIcbuProductGetAPIRequest) SetLanguage(_language string) error { + r._language = _language + r.Set("language", _language) + return nil +} + +// Language Getter +func (r AlibabaIcbuProductGetAPIRequest) GetLanguage() string { + return r._language +} +// ProductId Setter +// 混淆后的商品ID +func (r *AlibabaIcbuProductGetAPIRequest) SetProductId(_productId string) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r AlibabaIcbuProductGetAPIRequest) GetProductId() string { + return r._productId +} diff --git a/model/icbu/AlibabaIcbuProductGetAPIResponse.go b/model/icbu/AlibabaIcbuProductGetAPIResponse.go new file mode 100644 index 0000000000..5f460c01d0 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductGetAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获得单个商品详情 API返回值 +alibaba.icbu.product.get + +获取商品详情 +*/ +type AlibabaIcbuProductGetAPIResponse struct { + model.CommonResponse + AlibabaIcbuProductGetAPIResponseModel +} + +// 获得单个商品详情 成功返回结果 +type AlibabaIcbuProductGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_product_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 单个商品详情 + Product *AlibabaProductResponse `json:"product,omitempty" xml:"product,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuProductGetResponse.go b/model/icbu/AlibabaIcbuProductGetResponse.go deleted file mode 100644 index aa54e88de0..0000000000 --- a/model/icbu/AlibabaIcbuProductGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获得单个商品详情 API返回值 -alibaba.icbu.product.get - -获取商品详情 -*/ -type AlibabaIcbuProductGetAPIResponse struct { - model.CommonResponse - AlibabaIcbuProductGetResponse -} - -// 获得单个商品详情 成功返回结果 -type AlibabaIcbuProductGetResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_product_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 单个商品详情 - Product *AlibabaProductResponse `json:"product,omitempty" xml:"product,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuProductGroupAddAPIRequest.go b/model/icbu/AlibabaIcbuProductGroupAddAPIRequest.go new file mode 100644 index 0000000000..d00d2ad6a1 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductGroupAddAPIRequest.go @@ -0,0 +1,80 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +增加商品分组 API请求 +alibaba.icbu.product.group.add + +增加商品分组 +*/ +type AlibabaIcbuProductGroupAddAPIRequest struct { + model.Params + // 分组名称 + _groupName string + // 上级分组ID,如果建立顶级分组设为-1 + _parentId int64 + // 补充信息,如isv id + _extraContext string +} + +// 初始化AlibabaIcbuProductGroupAddAPIRequest对象 +func NewAlibabaIcbuProductGroupAddRequest() *AlibabaIcbuProductGroupAddAPIRequest{ + return &AlibabaIcbuProductGroupAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuProductGroupAddAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.product.group.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuProductGroupAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupName Setter +// 分组名称 +func (r *AlibabaIcbuProductGroupAddAPIRequest) SetGroupName(_groupName string) error { + r._groupName = _groupName + r.Set("group_name", _groupName) + return nil +} + +// GroupName Getter +func (r AlibabaIcbuProductGroupAddAPIRequest) GetGroupName() string { + return r._groupName +} +// ParentId Setter +// 上级分组ID,如果建立顶级分组设为-1 +func (r *AlibabaIcbuProductGroupAddAPIRequest) SetParentId(_parentId int64) error { + r._parentId = _parentId + r.Set("parent_id", _parentId) + return nil +} + +// ParentId Getter +func (r AlibabaIcbuProductGroupAddAPIRequest) GetParentId() int64 { + return r._parentId +} +// ExtraContext Setter +// 补充信息,如isv id +func (r *AlibabaIcbuProductGroupAddAPIRequest) SetExtraContext(_extraContext string) error { + r._extraContext = _extraContext + r.Set("extra_context", _extraContext) + return nil +} + +// ExtraContext Getter +func (r AlibabaIcbuProductGroupAddAPIRequest) GetExtraContext() string { + return r._extraContext +} diff --git a/model/icbu/AlibabaIcbuProductGroupAddAPIResponse.go b/model/icbu/AlibabaIcbuProductGroupAddAPIResponse.go new file mode 100644 index 0000000000..371e83a238 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductGroupAddAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +增加商品分组 API返回值 +alibaba.icbu.product.group.add + +增加商品分组 +*/ +type AlibabaIcbuProductGroupAddAPIResponse struct { + model.CommonResponse + AlibabaIcbuProductGroupAddAPIResponseModel +} + +// 增加商品分组 成功返回结果 +type AlibabaIcbuProductGroupAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_product_group_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创建的分组信息 + ProductGroup *ProductGroup `json:"product_group,omitempty" xml:"product_group,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuProductGroupAddResponse.go b/model/icbu/AlibabaIcbuProductGroupAddResponse.go deleted file mode 100644 index ad85f1f311..0000000000 --- a/model/icbu/AlibabaIcbuProductGroupAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -增加商品分组 API返回值 -alibaba.icbu.product.group.add - -增加商品分组 -*/ -type AlibabaIcbuProductGroupAddAPIResponse struct { - model.CommonResponse - AlibabaIcbuProductGroupAddResponse -} - -// 增加商品分组 成功返回结果 -type AlibabaIcbuProductGroupAddResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_product_group_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创建的分组信息 - ProductGroup *ProductGroup `json:"product_group,omitempty" xml:"product_group,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuProductGroupGetAPIRequest.go b/model/icbu/AlibabaIcbuProductGroupGetAPIRequest.go new file mode 100644 index 0000000000..a080d55ddf --- /dev/null +++ b/model/icbu/AlibabaIcbuProductGroupGetAPIRequest.go @@ -0,0 +1,66 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分组信息获取 API请求 +alibaba.icbu.product.group.get + +分组信息获取 +*/ +type AlibabaIcbuProductGroupGetAPIRequest struct { + model.Params + // 分组ID,传-1获得所有一级分组 + _groupId int64 + // 补充信息 + _extraContext string +} + +// 初始化AlibabaIcbuProductGroupGetAPIRequest对象 +func NewAlibabaIcbuProductGroupGetRequest() *AlibabaIcbuProductGroupGetAPIRequest{ + return &AlibabaIcbuProductGroupGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuProductGroupGetAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.product.group.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuProductGroupGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupId Setter +// 分组ID,传-1获得所有一级分组 +func (r *AlibabaIcbuProductGroupGetAPIRequest) SetGroupId(_groupId int64) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r AlibabaIcbuProductGroupGetAPIRequest) GetGroupId() int64 { + return r._groupId +} +// ExtraContext Setter +// 补充信息 +func (r *AlibabaIcbuProductGroupGetAPIRequest) SetExtraContext(_extraContext string) error { + r._extraContext = _extraContext + r.Set("extra_context", _extraContext) + return nil +} + +// ExtraContext Getter +func (r AlibabaIcbuProductGroupGetAPIRequest) GetExtraContext() string { + return r._extraContext +} diff --git a/model/icbu/AlibabaIcbuProductGroupGetAPIResponse.go b/model/icbu/AlibabaIcbuProductGroupGetAPIResponse.go new file mode 100644 index 0000000000..624c6ac561 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductGroupGetAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分组信息获取 API返回值 +alibaba.icbu.product.group.get + +分组信息获取 +*/ +type AlibabaIcbuProductGroupGetAPIResponse struct { + model.CommonResponse + AlibabaIcbuProductGroupGetAPIResponseModel +} + +// 分组信息获取 成功返回结果 +type AlibabaIcbuProductGroupGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_product_group_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分组信息 + ProductGroup *ProductGroup `json:"product_group,omitempty" xml:"product_group,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuProductGroupGetResponse.go b/model/icbu/AlibabaIcbuProductGroupGetResponse.go deleted file mode 100644 index 9026e27910..0000000000 --- a/model/icbu/AlibabaIcbuProductGroupGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分组信息获取 API返回值 -alibaba.icbu.product.group.get - -分组信息获取 -*/ -type AlibabaIcbuProductGroupGetAPIResponse struct { - model.CommonResponse - AlibabaIcbuProductGroupGetResponse -} - -// 分组信息获取 成功返回结果 -type AlibabaIcbuProductGroupGetResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_product_group_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分组信息 - ProductGroup *ProductGroup `json:"product_group,omitempty" xml:"product_group,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuProductIdDecryptAPIRequest.go b/model/icbu/AlibabaIcbuProductIdDecryptAPIRequest.go new file mode 100644 index 0000000000..95e597c673 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductIdDecryptAPIRequest.go @@ -0,0 +1,66 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品ID解密 API请求 +alibaba.icbu.product.id.decrypt + +对混淆的产品ID解密 +*/ +type AlibabaIcbuProductIdDecryptAPIRequest struct { + model.Params + // 语种 + _language string + // 混淆后的商品ID + _productId string +} + +// 初始化AlibabaIcbuProductIdDecryptAPIRequest对象 +func NewAlibabaIcbuProductIdDecryptRequest() *AlibabaIcbuProductIdDecryptAPIRequest{ + return &AlibabaIcbuProductIdDecryptAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuProductIdDecryptAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.product.id.decrypt" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuProductIdDecryptAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Language Setter +// 语种 +func (r *AlibabaIcbuProductIdDecryptAPIRequest) SetLanguage(_language string) error { + r._language = _language + r.Set("language", _language) + return nil +} + +// Language Getter +func (r AlibabaIcbuProductIdDecryptAPIRequest) GetLanguage() string { + return r._language +} +// ProductId Setter +// 混淆后的商品ID +func (r *AlibabaIcbuProductIdDecryptAPIRequest) SetProductId(_productId string) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r AlibabaIcbuProductIdDecryptAPIRequest) GetProductId() string { + return r._productId +} diff --git a/model/icbu/AlibabaIcbuProductIdDecryptAPIResponse.go b/model/icbu/AlibabaIcbuProductIdDecryptAPIResponse.go new file mode 100644 index 0000000000..56b0d3b296 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductIdDecryptAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品ID解密 API返回值 +alibaba.icbu.product.id.decrypt + +对混淆的产品ID解密 +*/ +type AlibabaIcbuProductIdDecryptAPIResponse struct { + model.CommonResponse + AlibabaIcbuProductIdDecryptAPIResponseModel +} + +// 商品ID解密 成功返回结果 +type AlibabaIcbuProductIdDecryptAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_product_id_decrypt_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品ID + Id int64 `json:"id,omitempty" xml:"id,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuProductIdDecryptResponse.go b/model/icbu/AlibabaIcbuProductIdDecryptResponse.go deleted file mode 100644 index 0e7bafad0d..0000000000 --- a/model/icbu/AlibabaIcbuProductIdDecryptResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品ID解密 API返回值 -alibaba.icbu.product.id.decrypt - -对混淆的产品ID解密 -*/ -type AlibabaIcbuProductIdDecryptAPIResponse struct { - model.CommonResponse - AlibabaIcbuProductIdDecryptResponse -} - -// 商品ID解密 成功返回结果 -type AlibabaIcbuProductIdDecryptResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_product_id_decrypt_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品ID - Id int64 `json:"id,omitempty" xml:"id,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuProductListAPIRequest.go b/model/icbu/AlibabaIcbuProductListAPIRequest.go new file mode 100644 index 0000000000..1da389b947 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductListAPIRequest.go @@ -0,0 +1,192 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品查询 API请求 +alibaba.icbu.product.list + +根据类目ID和商品名称查询商品概要信息。结果以修改时间倒序返回,支持分页,每页最多30个。每次调用都是独立的请求,不记录调用的上下文。 +*/ +type AlibabaIcbuProductListAPIRequest struct { + model.Params + // 类目ID + _categoryId int64 + // 商品名称,支持模糊匹配 + _subject string + // 当前页 + _currentPage int64 + // 每页大小,最大30 + _pageSize int64 + // 商品语种,目前只支持ENGLISH + _language string + // 商品三级分组id,可选填。若填写-1 则表示取回的商品没有三级分组,不填入代表取回的商品不关心它的三级分组,填写对应的group id将返回这个分组下的商品 + _groupId3 int64 + // 商品二级分组id,可选填。若填写-1 则表示取回的商品没有二级分组,不填入代表取回的商品不关系它的二级分组,填写对应的group id将返回这个分组下的商品 + _groupId2 int64 + // 商品一级分组id,可选填。若填写0 则表示取回的商品没有一级分组,不填入代表取回的商品不关心它的一级分组,填写对应的group id将返回这个分组下的商品 + _groupId1 int64 + // 商品明文id + _id int64 + // 最晚修改时间,格式yyyy-MM-dd HH:mm:ss + _gmtModifiedTo string + // 最早修改时间,格式yyyy-MM-dd HH:mm:ss + _gmtModifiedFrom string +} + +// 初始化AlibabaIcbuProductListAPIRequest对象 +func NewAlibabaIcbuProductListRequest() *AlibabaIcbuProductListAPIRequest{ + return &AlibabaIcbuProductListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuProductListAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.product.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuProductListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CategoryId Setter +// 类目ID +func (r *AlibabaIcbuProductListAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r AlibabaIcbuProductListAPIRequest) GetCategoryId() int64 { + return r._categoryId +} +// Subject Setter +// 商品名称,支持模糊匹配 +func (r *AlibabaIcbuProductListAPIRequest) SetSubject(_subject string) error { + r._subject = _subject + r.Set("subject", _subject) + return nil +} + +// Subject Getter +func (r AlibabaIcbuProductListAPIRequest) GetSubject() string { + return r._subject +} +// CurrentPage Setter +// 当前页 +func (r *AlibabaIcbuProductListAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AlibabaIcbuProductListAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// PageSize Setter +// 每页大小,最大30 +func (r *AlibabaIcbuProductListAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaIcbuProductListAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Language Setter +// 商品语种,目前只支持ENGLISH +func (r *AlibabaIcbuProductListAPIRequest) SetLanguage(_language string) error { + r._language = _language + r.Set("language", _language) + return nil +} + +// Language Getter +func (r AlibabaIcbuProductListAPIRequest) GetLanguage() string { + return r._language +} +// GroupId3 Setter +// 商品三级分组id,可选填。若填写-1 则表示取回的商品没有三级分组,不填入代表取回的商品不关心它的三级分组,填写对应的group id将返回这个分组下的商品 +func (r *AlibabaIcbuProductListAPIRequest) SetGroupId3(_groupId3 int64) error { + r._groupId3 = _groupId3 + r.Set("group_id3", _groupId3) + return nil +} + +// GroupId3 Getter +func (r AlibabaIcbuProductListAPIRequest) GetGroupId3() int64 { + return r._groupId3 +} +// GroupId2 Setter +// 商品二级分组id,可选填。若填写-1 则表示取回的商品没有二级分组,不填入代表取回的商品不关系它的二级分组,填写对应的group id将返回这个分组下的商品 +func (r *AlibabaIcbuProductListAPIRequest) SetGroupId2(_groupId2 int64) error { + r._groupId2 = _groupId2 + r.Set("group_id2", _groupId2) + return nil +} + +// GroupId2 Getter +func (r AlibabaIcbuProductListAPIRequest) GetGroupId2() int64 { + return r._groupId2 +} +// GroupId1 Setter +// 商品一级分组id,可选填。若填写0 则表示取回的商品没有一级分组,不填入代表取回的商品不关心它的一级分组,填写对应的group id将返回这个分组下的商品 +func (r *AlibabaIcbuProductListAPIRequest) SetGroupId1(_groupId1 int64) error { + r._groupId1 = _groupId1 + r.Set("group_id1", _groupId1) + return nil +} + +// GroupId1 Getter +func (r AlibabaIcbuProductListAPIRequest) GetGroupId1() int64 { + return r._groupId1 +} +// Id Setter +// 商品明文id +func (r *AlibabaIcbuProductListAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaIcbuProductListAPIRequest) GetId() int64 { + return r._id +} +// GmtModifiedTo Setter +// 最晚修改时间,格式yyyy-MM-dd HH:mm:ss +func (r *AlibabaIcbuProductListAPIRequest) SetGmtModifiedTo(_gmtModifiedTo string) error { + r._gmtModifiedTo = _gmtModifiedTo + r.Set("gmt_modified_to", _gmtModifiedTo) + return nil +} + +// GmtModifiedTo Getter +func (r AlibabaIcbuProductListAPIRequest) GetGmtModifiedTo() string { + return r._gmtModifiedTo +} +// GmtModifiedFrom Setter +// 最早修改时间,格式yyyy-MM-dd HH:mm:ss +func (r *AlibabaIcbuProductListAPIRequest) SetGmtModifiedFrom(_gmtModifiedFrom string) error { + r._gmtModifiedFrom = _gmtModifiedFrom + r.Set("gmt_modified_from", _gmtModifiedFrom) + return nil +} + +// GmtModifiedFrom Getter +func (r AlibabaIcbuProductListAPIRequest) GetGmtModifiedFrom() string { + return r._gmtModifiedFrom +} diff --git a/model/icbu/AlibabaIcbuProductListAPIResponse.go b/model/icbu/AlibabaIcbuProductListAPIResponse.go new file mode 100644 index 0000000000..7ed8773869 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductListAPIResponse.go @@ -0,0 +1,33 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品查询 API返回值 +alibaba.icbu.product.list + +根据类目ID和商品名称查询商品概要信息。结果以修改时间倒序返回,支持分页,每页最多30个。每次调用都是独立的请求,不记录调用的上下文。 +*/ +type AlibabaIcbuProductListAPIResponse struct { + model.CommonResponse + AlibabaIcbuProductListAPIResponseModel +} + +// 商品查询 成功返回结果 +type AlibabaIcbuProductListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_product_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 总数 + TotalItem int64 `json:"total_item,omitempty" xml:"total_item,omitempty"` + // 当前页 + CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"` + // 每页大小 + PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` + // 商品概要信息列表 + Products []AlibabaProductBriefResponse `json:"products,omitempty" xml:"products>alibaba_product_brief_response,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuProductListResponse.go b/model/icbu/AlibabaIcbuProductListResponse.go deleted file mode 100644 index edff6ca026..0000000000 --- a/model/icbu/AlibabaIcbuProductListResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品查询 API返回值 -alibaba.icbu.product.list - -根据类目ID和商品名称查询商品概要信息。结果以修改时间倒序返回,支持分页,每页最多30个。每次调用都是独立的请求,不记录调用的上下文。 -*/ -type AlibabaIcbuProductListAPIResponse struct { - model.CommonResponse - AlibabaIcbuProductListResponse -} - -// 商品查询 成功返回结果 -type AlibabaIcbuProductListResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_product_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 总数 - TotalItem int64 `json:"total_item,omitempty" xml:"total_item,omitempty"` - // 当前页 - CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"` - // 每页大小 - PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` - // 商品概要信息列表 - Products []AlibabaProductBriefResponse `json:"products,omitempty" xml:"products>alibaba_product_brief_response,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuProductSchemaAddAPIRequest.go b/model/icbu/AlibabaIcbuProductSchemaAddAPIRequest.go new file mode 100644 index 0000000000..35c9dfb92b --- /dev/null +++ b/model/icbu/AlibabaIcbuProductSchemaAddAPIRequest.go @@ -0,0 +1,52 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)商品发布新接口 API请求 +alibaba.icbu.product.schema.add + +提供发布ICBU商品的入口 +*/ +type AlibabaIcbuProductSchemaAddAPIRequest struct { + model.Params + // 发布入参 + _paramProductTopPublishRequest *ProductTopPublishRequest +} + +// 初始化AlibabaIcbuProductSchemaAddAPIRequest对象 +func NewAlibabaIcbuProductSchemaAddRequest() *AlibabaIcbuProductSchemaAddAPIRequest{ + return &AlibabaIcbuProductSchemaAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuProductSchemaAddAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.product.schema.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuProductSchemaAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamProductTopPublishRequest Setter +// 发布入参 +func (r *AlibabaIcbuProductSchemaAddAPIRequest) SetParamProductTopPublishRequest(_paramProductTopPublishRequest *ProductTopPublishRequest) error { + r._paramProductTopPublishRequest = _paramProductTopPublishRequest + r.Set("param_product_top_publish_request", _paramProductTopPublishRequest) + return nil +} + +// ParamProductTopPublishRequest Getter +func (r AlibabaIcbuProductSchemaAddAPIRequest) GetParamProductTopPublishRequest() *ProductTopPublishRequest { + return r._paramProductTopPublishRequest +} diff --git a/model/icbu/AlibabaIcbuProductSchemaAddAPIResponse.go b/model/icbu/AlibabaIcbuProductSchemaAddAPIResponse.go new file mode 100644 index 0000000000..66e85f5f00 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductSchemaAddAPIResponse.go @@ -0,0 +1,35 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)商品发布新接口 API返回值 +alibaba.icbu.product.schema.add + +提供发布ICBU商品的入口 +*/ +type AlibabaIcbuProductSchemaAddAPIResponse struct { + model.CommonResponse + AlibabaIcbuProductSchemaAddAPIResponseModel +} + +// (新)商品发布新接口 成功返回结果 +type AlibabaIcbuProductSchemaAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_product_schema_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品明文id + ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"` + // 错误信息,数组形式的字符串,用;分割,支持中英繁,按照传入的语种参数决定 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回的错误码,数组形式的字符串,用;分割 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 调用是否成功 + BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` + // 错误追踪码,请务必打印在日志中,后续排查问题请提交此错误追踪码 + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuProductSchemaAddDraftAPIRequest.go b/model/icbu/AlibabaIcbuProductSchemaAddDraftAPIRequest.go new file mode 100644 index 0000000000..00fdf4b36c --- /dev/null +++ b/model/icbu/AlibabaIcbuProductSchemaAddDraftAPIRequest.go @@ -0,0 +1,52 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)ICBU商品发布草稿 API请求 +alibaba.icbu.product.schema.add.draft + +提供发布ICBU商品草稿的入口 +*/ +type AlibabaIcbuProductSchemaAddDraftAPIRequest struct { + model.Params + // 发布入参 + _paramProductTopPublishRequest *ProductTopPublishRequest +} + +// 初始化AlibabaIcbuProductSchemaAddDraftAPIRequest对象 +func NewAlibabaIcbuProductSchemaAddDraftRequest() *AlibabaIcbuProductSchemaAddDraftAPIRequest{ + return &AlibabaIcbuProductSchemaAddDraftAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuProductSchemaAddDraftAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.product.schema.add.draft" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuProductSchemaAddDraftAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamProductTopPublishRequest Setter +// 发布入参 +func (r *AlibabaIcbuProductSchemaAddDraftAPIRequest) SetParamProductTopPublishRequest(_paramProductTopPublishRequest *ProductTopPublishRequest) error { + r._paramProductTopPublishRequest = _paramProductTopPublishRequest + r.Set("param_product_top_publish_request", _paramProductTopPublishRequest) + return nil +} + +// ParamProductTopPublishRequest Getter +func (r AlibabaIcbuProductSchemaAddDraftAPIRequest) GetParamProductTopPublishRequest() *ProductTopPublishRequest { + return r._paramProductTopPublishRequest +} diff --git a/model/icbu/AlibabaIcbuProductSchemaAddDraftAPIResponse.go b/model/icbu/AlibabaIcbuProductSchemaAddDraftAPIResponse.go new file mode 100644 index 0000000000..3dd3c17516 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductSchemaAddDraftAPIResponse.go @@ -0,0 +1,35 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)ICBU商品发布草稿 API返回值 +alibaba.icbu.product.schema.add.draft + +提供发布ICBU商品草稿的入口 +*/ +type AlibabaIcbuProductSchemaAddDraftAPIResponse struct { + model.CommonResponse + AlibabaIcbuProductSchemaAddDraftAPIResponseModel +} + +// (新)ICBU商品发布草稿 成功返回结果 +type AlibabaIcbuProductSchemaAddDraftAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_product_schema_add_draft_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品草稿明文id + ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"` + // 错误信息,数组形式的字符串,用;分割,支持中英繁,按照传入的语种参数决定 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回的错误码,数组形式的字符串,用;分割 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 调用是否成功 + BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` + // 错误追踪码,请务必打印在日志中,后续排查问题请提交此错误追踪码 + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuProductSchemaAddDraftResponse.go b/model/icbu/AlibabaIcbuProductSchemaAddDraftResponse.go deleted file mode 100644 index 7d576f6fd4..0000000000 --- a/model/icbu/AlibabaIcbuProductSchemaAddDraftResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(新)ICBU商品发布草稿 API返回值 -alibaba.icbu.product.schema.add.draft - -提供发布ICBU商品草稿的入口 -*/ -type AlibabaIcbuProductSchemaAddDraftAPIResponse struct { - model.CommonResponse - AlibabaIcbuProductSchemaAddDraftResponse -} - -// (新)ICBU商品发布草稿 成功返回结果 -type AlibabaIcbuProductSchemaAddDraftResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_product_schema_add_draft_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品草稿明文id - ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"` - // 错误信息,数组形式的字符串,用;分割,支持中英繁,按照传入的语种参数决定 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 返回的错误码,数组形式的字符串,用;分割 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 调用是否成功 - BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` - // 错误追踪码,请务必打印在日志中,后续排查问题请提交此错误追踪码 - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuProductSchemaAddResponse.go b/model/icbu/AlibabaIcbuProductSchemaAddResponse.go deleted file mode 100644 index 9f0ef83883..0000000000 --- a/model/icbu/AlibabaIcbuProductSchemaAddResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(新)商品发布新接口 API返回值 -alibaba.icbu.product.schema.add - -提供发布ICBU商品的入口 -*/ -type AlibabaIcbuProductSchemaAddAPIResponse struct { - model.CommonResponse - AlibabaIcbuProductSchemaAddResponse -} - -// (新)商品发布新接口 成功返回结果 -type AlibabaIcbuProductSchemaAddResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_product_schema_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品明文id - ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"` - // 错误信息,数组形式的字符串,用;分割,支持中英繁,按照传入的语种参数决定 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 返回的错误码,数组形式的字符串,用;分割 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 调用是否成功 - BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` - // 错误追踪码,请务必打印在日志中,后续排查问题请提交此错误追踪码 - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuProductSchemaGetAPIRequest.go b/model/icbu/AlibabaIcbuProductSchemaGetAPIRequest.go new file mode 100644 index 0000000000..0ccfbd0839 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductSchemaGetAPIRequest.go @@ -0,0 +1,52 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)ICBU商品发布schema接口 API请求 +alibaba.icbu.product.schema.get + +获取ICBU商品发布的页面规则和填写字段,适用于新发商品 +*/ +type AlibabaIcbuProductSchemaGetAPIRequest struct { + model.Params + // 商品规则渲染请求 + _paramProductTopPublishRequest *ProductTopPublishRequest +} + +// 初始化AlibabaIcbuProductSchemaGetAPIRequest对象 +func NewAlibabaIcbuProductSchemaGetRequest() *AlibabaIcbuProductSchemaGetAPIRequest{ + return &AlibabaIcbuProductSchemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuProductSchemaGetAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.product.schema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuProductSchemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamProductTopPublishRequest Setter +// 商品规则渲染请求 +func (r *AlibabaIcbuProductSchemaGetAPIRequest) SetParamProductTopPublishRequest(_paramProductTopPublishRequest *ProductTopPublishRequest) error { + r._paramProductTopPublishRequest = _paramProductTopPublishRequest + r.Set("param_product_top_publish_request", _paramProductTopPublishRequest) + return nil +} + +// ParamProductTopPublishRequest Getter +func (r AlibabaIcbuProductSchemaGetAPIRequest) GetParamProductTopPublishRequest() *ProductTopPublishRequest { + return r._paramProductTopPublishRequest +} diff --git a/model/icbu/AlibabaIcbuProductSchemaGetAPIResponse.go b/model/icbu/AlibabaIcbuProductSchemaGetAPIResponse.go new file mode 100644 index 0000000000..fb2b24fe1a --- /dev/null +++ b/model/icbu/AlibabaIcbuProductSchemaGetAPIResponse.go @@ -0,0 +1,35 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)ICBU商品发布schema接口 API返回值 +alibaba.icbu.product.schema.get + +获取ICBU商品发布的页面规则和填写字段,适用于新发商品 +*/ +type AlibabaIcbuProductSchemaGetAPIResponse struct { + model.CommonResponse + AlibabaIcbuProductSchemaGetAPIResponseModel +} + +// (新)ICBU商品发布schema接口 成功返回结果 +type AlibabaIcbuProductSchemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_product_schema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品发布规则 + Data string `json:"data,omitempty" xml:"data,omitempty"` + // 错误信息,数组形式的字符串,用;分割,支持中英繁,按照传入的语种参数决定 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回的错误码,数组形式的字符串,用;分割 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 请求是否成功 + BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` + // 错误追踪码,请务必打印在日志中,后续排查问题请提交此错误追踪码 + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuProductSchemaGetResponse.go b/model/icbu/AlibabaIcbuProductSchemaGetResponse.go deleted file mode 100644 index 2dba843f4b..0000000000 --- a/model/icbu/AlibabaIcbuProductSchemaGetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(新)ICBU商品发布schema接口 API返回值 -alibaba.icbu.product.schema.get - -获取ICBU商品发布的页面规则和填写字段,适用于新发商品 -*/ -type AlibabaIcbuProductSchemaGetAPIResponse struct { - model.CommonResponse - AlibabaIcbuProductSchemaGetResponse -} - -// (新)ICBU商品发布schema接口 成功返回结果 -type AlibabaIcbuProductSchemaGetResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_product_schema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品发布规则 - Data string `json:"data,omitempty" xml:"data,omitempty"` - // 错误信息,数组形式的字符串,用;分割,支持中英繁,按照传入的语种参数决定 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 返回的错误码,数组形式的字符串,用;分割 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 请求是否成功 - BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` - // 错误追踪码,请务必打印在日志中,后续排查问题请提交此错误追踪码 - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuProductSchemaRenderAPIRequest.go b/model/icbu/AlibabaIcbuProductSchemaRenderAPIRequest.go new file mode 100644 index 0000000000..17cfedf044 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductSchemaRenderAPIRequest.go @@ -0,0 +1,52 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)获取商品信息 API请求 +alibaba.icbu.product.schema.render + +获取ICBU商品发布的字段填写规则和单个商品对应填写数据,适用于单个商品编辑场景,不包括草稿。 +*/ +type AlibabaIcbuProductSchemaRenderAPIRequest struct { + model.Params + // 商品规则渲染请求 + _paramProductTopPublishRequest *ProductTopPublishRequest +} + +// 初始化AlibabaIcbuProductSchemaRenderAPIRequest对象 +func NewAlibabaIcbuProductSchemaRenderRequest() *AlibabaIcbuProductSchemaRenderAPIRequest{ + return &AlibabaIcbuProductSchemaRenderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuProductSchemaRenderAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.product.schema.render" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuProductSchemaRenderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamProductTopPublishRequest Setter +// 商品规则渲染请求 +func (r *AlibabaIcbuProductSchemaRenderAPIRequest) SetParamProductTopPublishRequest(_paramProductTopPublishRequest *ProductTopPublishRequest) error { + r._paramProductTopPublishRequest = _paramProductTopPublishRequest + r.Set("param_product_top_publish_request", _paramProductTopPublishRequest) + return nil +} + +// ParamProductTopPublishRequest Getter +func (r AlibabaIcbuProductSchemaRenderAPIRequest) GetParamProductTopPublishRequest() *ProductTopPublishRequest { + return r._paramProductTopPublishRequest +} diff --git a/model/icbu/AlibabaIcbuProductSchemaRenderAPIResponse.go b/model/icbu/AlibabaIcbuProductSchemaRenderAPIResponse.go new file mode 100644 index 0000000000..2db2924edb --- /dev/null +++ b/model/icbu/AlibabaIcbuProductSchemaRenderAPIResponse.go @@ -0,0 +1,35 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)获取商品信息 API返回值 +alibaba.icbu.product.schema.render + +获取ICBU商品发布的字段填写规则和单个商品对应填写数据,适用于单个商品编辑场景,不包括草稿。 +*/ +type AlibabaIcbuProductSchemaRenderAPIResponse struct { + model.CommonResponse + AlibabaIcbuProductSchemaRenderAPIResponseModel +} + +// (新)获取商品信息 成功返回结果 +type AlibabaIcbuProductSchemaRenderAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_product_schema_render_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品发布规则和对应填写数据 + Data string `json:"data,omitempty" xml:"data,omitempty"` + // 错误信息,数组形式的字符串,用;分割,支持中英繁,按照传入的语种参数决定 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回的错误码,数组形式的字符串,用;分割 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 请求是否成功 + BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` + // 错误追踪码,请务必打印在日志中,后续排查问题请提交此错误追踪码 + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuProductSchemaRenderDraftAPIRequest.go b/model/icbu/AlibabaIcbuProductSchemaRenderDraftAPIRequest.go new file mode 100644 index 0000000000..8febaad1f8 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductSchemaRenderDraftAPIRequest.go @@ -0,0 +1,52 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)渲染草稿商品数据 API请求 +alibaba.icbu.product.schema.render.draft + +获取ICBU商品发布的字段填写规则和单个商品对应填写数据,适用于单个草稿商品编辑场景, +*/ +type AlibabaIcbuProductSchemaRenderDraftAPIRequest struct { + model.Params + // 商品规则渲染请求 + _paramProductTopPublishRequest *ProductTopPublishRequest +} + +// 初始化AlibabaIcbuProductSchemaRenderDraftAPIRequest对象 +func NewAlibabaIcbuProductSchemaRenderDraftRequest() *AlibabaIcbuProductSchemaRenderDraftAPIRequest{ + return &AlibabaIcbuProductSchemaRenderDraftAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuProductSchemaRenderDraftAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.product.schema.render.draft" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuProductSchemaRenderDraftAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamProductTopPublishRequest Setter +// 商品规则渲染请求 +func (r *AlibabaIcbuProductSchemaRenderDraftAPIRequest) SetParamProductTopPublishRequest(_paramProductTopPublishRequest *ProductTopPublishRequest) error { + r._paramProductTopPublishRequest = _paramProductTopPublishRequest + r.Set("param_product_top_publish_request", _paramProductTopPublishRequest) + return nil +} + +// ParamProductTopPublishRequest Getter +func (r AlibabaIcbuProductSchemaRenderDraftAPIRequest) GetParamProductTopPublishRequest() *ProductTopPublishRequest { + return r._paramProductTopPublishRequest +} diff --git a/model/icbu/AlibabaIcbuProductSchemaRenderDraftAPIResponse.go b/model/icbu/AlibabaIcbuProductSchemaRenderDraftAPIResponse.go new file mode 100644 index 0000000000..0c74ceeb62 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductSchemaRenderDraftAPIResponse.go @@ -0,0 +1,35 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)渲染草稿商品数据 API返回值 +alibaba.icbu.product.schema.render.draft + +获取ICBU商品发布的字段填写规则和单个商品对应填写数据,适用于单个草稿商品编辑场景, +*/ +type AlibabaIcbuProductSchemaRenderDraftAPIResponse struct { + model.CommonResponse + AlibabaIcbuProductSchemaRenderDraftAPIResponseModel +} + +// (新)渲染草稿商品数据 成功返回结果 +type AlibabaIcbuProductSchemaRenderDraftAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_product_schema_render_draft_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品发布规则和对应填写数据 + Data string `json:"data,omitempty" xml:"data,omitempty"` + // 错误信息,数组形式的字符串,用;分割,支持中英繁,按照传入的语种参数决定 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回的错误码,数组形式的字符串,用;分割 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 请求是否成功 + BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` + // 错误追踪码,请务必打印在日志中,后续排查问题请提交此错误追踪码 + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuProductSchemaRenderDraftResponse.go b/model/icbu/AlibabaIcbuProductSchemaRenderDraftResponse.go deleted file mode 100644 index e31b223f75..0000000000 --- a/model/icbu/AlibabaIcbuProductSchemaRenderDraftResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(新)渲染草稿商品数据 API返回值 -alibaba.icbu.product.schema.render.draft - -获取ICBU商品发布的字段填写规则和单个商品对应填写数据,适用于单个草稿商品编辑场景, -*/ -type AlibabaIcbuProductSchemaRenderDraftAPIResponse struct { - model.CommonResponse - AlibabaIcbuProductSchemaRenderDraftResponse -} - -// (新)渲染草稿商品数据 成功返回结果 -type AlibabaIcbuProductSchemaRenderDraftResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_product_schema_render_draft_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品发布规则和对应填写数据 - Data string `json:"data,omitempty" xml:"data,omitempty"` - // 错误信息,数组形式的字符串,用;分割,支持中英繁,按照传入的语种参数决定 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 返回的错误码,数组形式的字符串,用;分割 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 请求是否成功 - BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` - // 错误追踪码,请务必打印在日志中,后续排查问题请提交此错误追踪码 - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuProductSchemaRenderResponse.go b/model/icbu/AlibabaIcbuProductSchemaRenderResponse.go deleted file mode 100644 index 32cc6bee40..0000000000 --- a/model/icbu/AlibabaIcbuProductSchemaRenderResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(新)获取商品信息 API返回值 -alibaba.icbu.product.schema.render - -获取ICBU商品发布的字段填写规则和单个商品对应填写数据,适用于单个商品编辑场景,不包括草稿。 -*/ -type AlibabaIcbuProductSchemaRenderAPIResponse struct { - model.CommonResponse - AlibabaIcbuProductSchemaRenderResponse -} - -// (新)获取商品信息 成功返回结果 -type AlibabaIcbuProductSchemaRenderResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_product_schema_render_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品发布规则和对应填写数据 - Data string `json:"data,omitempty" xml:"data,omitempty"` - // 错误信息,数组形式的字符串,用;分割,支持中英繁,按照传入的语种参数决定 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 返回的错误码,数组形式的字符串,用;分割 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 请求是否成功 - BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` - // 错误追踪码,请务必打印在日志中,后续排查问题请提交此错误追踪码 - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuProductSchemaUpdateAPIRequest.go b/model/icbu/AlibabaIcbuProductSchemaUpdateAPIRequest.go new file mode 100644 index 0000000000..da0b405a3a --- /dev/null +++ b/model/icbu/AlibabaIcbuProductSchemaUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)商品发布增量更新接口 API请求 +alibaba.icbu.product.schema.update + +商品更新接口,方式为增量更新,只更新传入的字段 +*/ +type AlibabaIcbuProductSchemaUpdateAPIRequest struct { + model.Params + // 发布入参 + _paramProductTopPublishRequest *ProductTopPublishRequest +} + +// 初始化AlibabaIcbuProductSchemaUpdateAPIRequest对象 +func NewAlibabaIcbuProductSchemaUpdateRequest() *AlibabaIcbuProductSchemaUpdateAPIRequest{ + return &AlibabaIcbuProductSchemaUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuProductSchemaUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.product.schema.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuProductSchemaUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamProductTopPublishRequest Setter +// 发布入参 +func (r *AlibabaIcbuProductSchemaUpdateAPIRequest) SetParamProductTopPublishRequest(_paramProductTopPublishRequest *ProductTopPublishRequest) error { + r._paramProductTopPublishRequest = _paramProductTopPublishRequest + r.Set("param_product_top_publish_request", _paramProductTopPublishRequest) + return nil +} + +// ParamProductTopPublishRequest Getter +func (r AlibabaIcbuProductSchemaUpdateAPIRequest) GetParamProductTopPublishRequest() *ProductTopPublishRequest { + return r._paramProductTopPublishRequest +} diff --git a/model/icbu/AlibabaIcbuProductSchemaUpdateAPIResponse.go b/model/icbu/AlibabaIcbuProductSchemaUpdateAPIResponse.go new file mode 100644 index 0000000000..e760db6c40 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductSchemaUpdateAPIResponse.go @@ -0,0 +1,35 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)商品发布增量更新接口 API返回值 +alibaba.icbu.product.schema.update + +商品更新接口,方式为增量更新,只更新传入的字段 +*/ +type AlibabaIcbuProductSchemaUpdateAPIResponse struct { + model.CommonResponse + AlibabaIcbuProductSchemaUpdateAPIResponseModel +} + +// (新)商品发布增量更新接口 成功返回结果 +type AlibabaIcbuProductSchemaUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_product_schema_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品明文id + ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"` + // 错误信息,数组形式的字符串,用;分割,支持中英繁,按照传入的语种参数决定 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回的错误码,数组形式的字符串,用;分割 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 调用是否成功 + BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` + // 错误追踪码,请务必打印在日志中,后续排查问题请提交此错误追踪码 + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuProductSchemaUpdateResponse.go b/model/icbu/AlibabaIcbuProductSchemaUpdateResponse.go deleted file mode 100644 index eb18753cd7..0000000000 --- a/model/icbu/AlibabaIcbuProductSchemaUpdateResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(新)商品发布增量更新接口 API返回值 -alibaba.icbu.product.schema.update - -商品更新接口,方式为增量更新,只更新传入的字段 -*/ -type AlibabaIcbuProductSchemaUpdateAPIResponse struct { - model.CommonResponse - AlibabaIcbuProductSchemaUpdateResponse -} - -// (新)商品发布增量更新接口 成功返回结果 -type AlibabaIcbuProductSchemaUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_product_schema_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品明文id - ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"` - // 错误信息,数组形式的字符串,用;分割,支持中英繁,按照传入的语种参数决定 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 返回的错误码,数组形式的字符串,用;分割 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 调用是否成功 - BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` - // 错误追踪码,请务必打印在日志中,后续排查问题请提交此错误追踪码 - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuProductScoreGetAPIRequest.go b/model/icbu/AlibabaIcbuProductScoreGetAPIRequest.go new file mode 100644 index 0000000000..2cdf82b2ea --- /dev/null +++ b/model/icbu/AlibabaIcbuProductScoreGetAPIRequest.go @@ -0,0 +1,52 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +产品质量分查询 API请求 +alibaba.icbu.product.score.get + +产品质量分查询 +*/ +type AlibabaIcbuProductScoreGetAPIRequest struct { + model.Params + // 混淆后的商品ID + _productId string +} + +// 初始化AlibabaIcbuProductScoreGetAPIRequest对象 +func NewAlibabaIcbuProductScoreGetRequest() *AlibabaIcbuProductScoreGetAPIRequest{ + return &AlibabaIcbuProductScoreGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuProductScoreGetAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.product.score.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuProductScoreGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 混淆后的商品ID +func (r *AlibabaIcbuProductScoreGetAPIRequest) SetProductId(_productId string) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r AlibabaIcbuProductScoreGetAPIRequest) GetProductId() string { + return r._productId +} diff --git a/model/icbu/AlibabaIcbuProductScoreGetAPIResponse.go b/model/icbu/AlibabaIcbuProductScoreGetAPIResponse.go new file mode 100644 index 0000000000..1cd641913c --- /dev/null +++ b/model/icbu/AlibabaIcbuProductScoreGetAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +产品质量分查询 API返回值 +alibaba.icbu.product.score.get + +产品质量分查询 +*/ +type AlibabaIcbuProductScoreGetAPIResponse struct { + model.CommonResponse + AlibabaIcbuProductScoreGetAPIResponseModel +} + +// 产品质量分查询 成功返回结果 +type AlibabaIcbuProductScoreGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_product_score_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *ProductScoreInfoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuProductScoreGetResponse.go b/model/icbu/AlibabaIcbuProductScoreGetResponse.go deleted file mode 100644 index 3f39d8e14e..0000000000 --- a/model/icbu/AlibabaIcbuProductScoreGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -产品质量分查询 API返回值 -alibaba.icbu.product.score.get - -产品质量分查询 -*/ -type AlibabaIcbuProductScoreGetAPIResponse struct { - model.CommonResponse - AlibabaIcbuProductScoreGetResponse -} - -// 产品质量分查询 成功返回结果 -type AlibabaIcbuProductScoreGetResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_product_score_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *ProductScoreInfoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuProductUpdateAPIRequest.go b/model/icbu/AlibabaIcbuProductUpdateAPIRequest.go new file mode 100644 index 0000000000..976dda6c18 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductUpdateAPIRequest.go @@ -0,0 +1,290 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改商品 API请求 +alibaba.icbu.product.update + +修改国际站商品,支持询盘商品和在线批发商品,支持英文商品和多语言商品 +*/ +type AlibabaIcbuProductUpdateAPIRequest struct { + model.Params + // 商品属性和属性值 + _attributes []ProductAttribute + // 根据数量设置的折扣价 + _bulkDiscountPrices []BulkDiscountPrice + // 类目ID + _categoryId int64 + // 商品详情描述,可包含图片中心的图片URL + _description string + // 补充信息 + _extraContext string + // 分组ID + _groupId int64 + // 关键词,不要包含特殊符号(如,;),最多三个 + _keywords []string + // 语种,参见FAQ 语种枚举值 + _language string + // 商品主图 + _mainImage *MainImage + // 商品SKU定义 + _productSku *ProductSku + // 商品类型,在线批发商品(wholesale)或者询盘商品(sourcing) + _productType string + // 询盘商品交易信息 + _sourcingTrade *SourcingTrade + // 商品名称,最多128个字符 + _subject string + // 在线批发商品交易信息 + _wholesaleTrade *WholesaleTrade + // 发布的市场,支持main/onesite,默认main发到主市场,填onesite发布为商机通产品 + _market string + // 智能编辑,不填写使用原来的。注意必须和详情的格式一致 + _isSmartEdit bool + // 定制信息 + _customInfo *CustomInfo + // 混淆商品ID + _productId string +} + +// 初始化AlibabaIcbuProductUpdateAPIRequest对象 +func NewAlibabaIcbuProductUpdateRequest() *AlibabaIcbuProductUpdateAPIRequest{ + return &AlibabaIcbuProductUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuProductUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.product.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuProductUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Attributes Setter +// 商品属性和属性值 +func (r *AlibabaIcbuProductUpdateAPIRequest) SetAttributes(_attributes []ProductAttribute) error { + r._attributes = _attributes + r.Set("attributes", _attributes) + return nil +} + +// Attributes Getter +func (r AlibabaIcbuProductUpdateAPIRequest) GetAttributes() []ProductAttribute { + return r._attributes +} +// BulkDiscountPrices Setter +// 根据数量设置的折扣价 +func (r *AlibabaIcbuProductUpdateAPIRequest) SetBulkDiscountPrices(_bulkDiscountPrices []BulkDiscountPrice) error { + r._bulkDiscountPrices = _bulkDiscountPrices + r.Set("bulk_discount_prices", _bulkDiscountPrices) + return nil +} + +// BulkDiscountPrices Getter +func (r AlibabaIcbuProductUpdateAPIRequest) GetBulkDiscountPrices() []BulkDiscountPrice { + return r._bulkDiscountPrices +} +// CategoryId Setter +// 类目ID +func (r *AlibabaIcbuProductUpdateAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r AlibabaIcbuProductUpdateAPIRequest) GetCategoryId() int64 { + return r._categoryId +} +// Description Setter +// 商品详情描述,可包含图片中心的图片URL +func (r *AlibabaIcbuProductUpdateAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r AlibabaIcbuProductUpdateAPIRequest) GetDescription() string { + return r._description +} +// ExtraContext Setter +// 补充信息 +func (r *AlibabaIcbuProductUpdateAPIRequest) SetExtraContext(_extraContext string) error { + r._extraContext = _extraContext + r.Set("extra_context", _extraContext) + return nil +} + +// ExtraContext Getter +func (r AlibabaIcbuProductUpdateAPIRequest) GetExtraContext() string { + return r._extraContext +} +// GroupId Setter +// 分组ID +func (r *AlibabaIcbuProductUpdateAPIRequest) SetGroupId(_groupId int64) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r AlibabaIcbuProductUpdateAPIRequest) GetGroupId() int64 { + return r._groupId +} +// Keywords Setter +// 关键词,不要包含特殊符号(如,;),最多三个 +func (r *AlibabaIcbuProductUpdateAPIRequest) SetKeywords(_keywords []string) error { + r._keywords = _keywords + r.Set("keywords", _keywords) + return nil +} + +// Keywords Getter +func (r AlibabaIcbuProductUpdateAPIRequest) GetKeywords() []string { + return r._keywords +} +// Language Setter +// 语种,参见FAQ 语种枚举值 +func (r *AlibabaIcbuProductUpdateAPIRequest) SetLanguage(_language string) error { + r._language = _language + r.Set("language", _language) + return nil +} + +// Language Getter +func (r AlibabaIcbuProductUpdateAPIRequest) GetLanguage() string { + return r._language +} +// MainImage Setter +// 商品主图 +func (r *AlibabaIcbuProductUpdateAPIRequest) SetMainImage(_mainImage *MainImage) error { + r._mainImage = _mainImage + r.Set("main_image", _mainImage) + return nil +} + +// MainImage Getter +func (r AlibabaIcbuProductUpdateAPIRequest) GetMainImage() *MainImage { + return r._mainImage +} +// ProductSku Setter +// 商品SKU定义 +func (r *AlibabaIcbuProductUpdateAPIRequest) SetProductSku(_productSku *ProductSku) error { + r._productSku = _productSku + r.Set("product_sku", _productSku) + return nil +} + +// ProductSku Getter +func (r AlibabaIcbuProductUpdateAPIRequest) GetProductSku() *ProductSku { + return r._productSku +} +// ProductType Setter +// 商品类型,在线批发商品(wholesale)或者询盘商品(sourcing) +func (r *AlibabaIcbuProductUpdateAPIRequest) SetProductType(_productType string) error { + r._productType = _productType + r.Set("product_type", _productType) + return nil +} + +// ProductType Getter +func (r AlibabaIcbuProductUpdateAPIRequest) GetProductType() string { + return r._productType +} +// SourcingTrade Setter +// 询盘商品交易信息 +func (r *AlibabaIcbuProductUpdateAPIRequest) SetSourcingTrade(_sourcingTrade *SourcingTrade) error { + r._sourcingTrade = _sourcingTrade + r.Set("sourcing_trade", _sourcingTrade) + return nil +} + +// SourcingTrade Getter +func (r AlibabaIcbuProductUpdateAPIRequest) GetSourcingTrade() *SourcingTrade { + return r._sourcingTrade +} +// Subject Setter +// 商品名称,最多128个字符 +func (r *AlibabaIcbuProductUpdateAPIRequest) SetSubject(_subject string) error { + r._subject = _subject + r.Set("subject", _subject) + return nil +} + +// Subject Getter +func (r AlibabaIcbuProductUpdateAPIRequest) GetSubject() string { + return r._subject +} +// WholesaleTrade Setter +// 在线批发商品交易信息 +func (r *AlibabaIcbuProductUpdateAPIRequest) SetWholesaleTrade(_wholesaleTrade *WholesaleTrade) error { + r._wholesaleTrade = _wholesaleTrade + r.Set("wholesale_trade", _wholesaleTrade) + return nil +} + +// WholesaleTrade Getter +func (r AlibabaIcbuProductUpdateAPIRequest) GetWholesaleTrade() *WholesaleTrade { + return r._wholesaleTrade +} +// Market Setter +// 发布的市场,支持main/onesite,默认main发到主市场,填onesite发布为商机通产品 +func (r *AlibabaIcbuProductUpdateAPIRequest) SetMarket(_market string) error { + r._market = _market + r.Set("market", _market) + return nil +} + +// Market Getter +func (r AlibabaIcbuProductUpdateAPIRequest) GetMarket() string { + return r._market +} +// IsSmartEdit Setter +// 智能编辑,不填写使用原来的。注意必须和详情的格式一致 +func (r *AlibabaIcbuProductUpdateAPIRequest) SetIsSmartEdit(_isSmartEdit bool) error { + r._isSmartEdit = _isSmartEdit + r.Set("is_smart_edit", _isSmartEdit) + return nil +} + +// IsSmartEdit Getter +func (r AlibabaIcbuProductUpdateAPIRequest) GetIsSmartEdit() bool { + return r._isSmartEdit +} +// CustomInfo Setter +// 定制信息 +func (r *AlibabaIcbuProductUpdateAPIRequest) SetCustomInfo(_customInfo *CustomInfo) error { + r._customInfo = _customInfo + r.Set("custom_info", _customInfo) + return nil +} + +// CustomInfo Getter +func (r AlibabaIcbuProductUpdateAPIRequest) GetCustomInfo() *CustomInfo { + return r._customInfo +} +// ProductId Setter +// 混淆商品ID +func (r *AlibabaIcbuProductUpdateAPIRequest) SetProductId(_productId string) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r AlibabaIcbuProductUpdateAPIRequest) GetProductId() string { + return r._productId +} diff --git a/model/icbu/AlibabaIcbuProductUpdateAPIResponse.go b/model/icbu/AlibabaIcbuProductUpdateAPIResponse.go new file mode 100644 index 0000000000..477b9db097 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改商品 API返回值 +alibaba.icbu.product.update + +修改国际站商品,支持询盘商品和在线批发商品,支持英文商品和多语言商品 +*/ +type AlibabaIcbuProductUpdateAPIResponse struct { + model.CommonResponse + AlibabaIcbuProductUpdateAPIResponseModel +} + +// 修改商品 成功返回结果 +type AlibabaIcbuProductUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_product_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 加密后的产品ID + ProductId string `json:"product_id,omitempty" xml:"product_id,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuProductUpdateFieldAPIRequest.go b/model/icbu/AlibabaIcbuProductUpdateFieldAPIRequest.go new file mode 100644 index 0000000000..7bda76adf0 --- /dev/null +++ b/model/icbu/AlibabaIcbuProductUpdateFieldAPIRequest.go @@ -0,0 +1,304 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品按字段更新 API请求 +alibaba.icbu.product.update.field + +按字段修改国际站商品,支持询盘商品和在线批发商品,支持英文商品和多语言商品 +*/ +type AlibabaIcbuProductUpdateFieldAPIRequest struct { + model.Params + // 商品属性和属性值 + _attributes []ProductAttribute + // 根据数量设置的折扣价 + _bulkDiscountPrices []BulkDiscountPrice + // 类目ID + _categoryId int64 + // 商品详情描述,可包含图片中心的图片URL + _description string + // 补充信息 + _extraContext string + // 分组ID + _groupId int64 + // 关键词,不要包含特殊符号(如,;),最多三个 + _keywords []string + // 语种,当前只有english + _language string + // 商品主图 + _mainImage *MainImage + // 商品SKU定义 + _productSku *ProductSku + // 商品类型,在线批发商品(wholesale)或者询盘商品(sourcing) + _productType string + // 询盘商品交易信息 + _sourcingTrade *SourcingTrade + // 商品名称,最多128个字符 + _subject string + // 在线批发商品交易信息 + _wholesaleTrade *WholesaleTrade + // 发布的市场,支持main/onesite,默认main发到主市场,填onesite发布为商机通产品 + _market string + // 定制信息 + _customInfo *CustomInfo + // 商品详情种类,true表示智能编辑,不填默认取商品原来的详情种类 + _isSmartEdit bool + // 使用SKU价的时候需要传入这个参数 + _useSkuPrice bool + // 混淆商品ID + _productId string +} + +// 初始化AlibabaIcbuProductUpdateFieldAPIRequest对象 +func NewAlibabaIcbuProductUpdateFieldRequest() *AlibabaIcbuProductUpdateFieldAPIRequest{ + return &AlibabaIcbuProductUpdateFieldAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.product.update.field" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Attributes Setter +// 商品属性和属性值 +func (r *AlibabaIcbuProductUpdateFieldAPIRequest) SetAttributes(_attributes []ProductAttribute) error { + r._attributes = _attributes + r.Set("attributes", _attributes) + return nil +} + +// Attributes Getter +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetAttributes() []ProductAttribute { + return r._attributes +} +// BulkDiscountPrices Setter +// 根据数量设置的折扣价 +func (r *AlibabaIcbuProductUpdateFieldAPIRequest) SetBulkDiscountPrices(_bulkDiscountPrices []BulkDiscountPrice) error { + r._bulkDiscountPrices = _bulkDiscountPrices + r.Set("bulk_discount_prices", _bulkDiscountPrices) + return nil +} + +// BulkDiscountPrices Getter +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetBulkDiscountPrices() []BulkDiscountPrice { + return r._bulkDiscountPrices +} +// CategoryId Setter +// 类目ID +func (r *AlibabaIcbuProductUpdateFieldAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetCategoryId() int64 { + return r._categoryId +} +// Description Setter +// 商品详情描述,可包含图片中心的图片URL +func (r *AlibabaIcbuProductUpdateFieldAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetDescription() string { + return r._description +} +// ExtraContext Setter +// 补充信息 +func (r *AlibabaIcbuProductUpdateFieldAPIRequest) SetExtraContext(_extraContext string) error { + r._extraContext = _extraContext + r.Set("extra_context", _extraContext) + return nil +} + +// ExtraContext Getter +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetExtraContext() string { + return r._extraContext +} +// GroupId Setter +// 分组ID +func (r *AlibabaIcbuProductUpdateFieldAPIRequest) SetGroupId(_groupId int64) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetGroupId() int64 { + return r._groupId +} +// Keywords Setter +// 关键词,不要包含特殊符号(如,;),最多三个 +func (r *AlibabaIcbuProductUpdateFieldAPIRequest) SetKeywords(_keywords []string) error { + r._keywords = _keywords + r.Set("keywords", _keywords) + return nil +} + +// Keywords Getter +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetKeywords() []string { + return r._keywords +} +// Language Setter +// 语种,当前只有english +func (r *AlibabaIcbuProductUpdateFieldAPIRequest) SetLanguage(_language string) error { + r._language = _language + r.Set("language", _language) + return nil +} + +// Language Getter +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetLanguage() string { + return r._language +} +// MainImage Setter +// 商品主图 +func (r *AlibabaIcbuProductUpdateFieldAPIRequest) SetMainImage(_mainImage *MainImage) error { + r._mainImage = _mainImage + r.Set("main_image", _mainImage) + return nil +} + +// MainImage Getter +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetMainImage() *MainImage { + return r._mainImage +} +// ProductSku Setter +// 商品SKU定义 +func (r *AlibabaIcbuProductUpdateFieldAPIRequest) SetProductSku(_productSku *ProductSku) error { + r._productSku = _productSku + r.Set("product_sku", _productSku) + return nil +} + +// ProductSku Getter +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetProductSku() *ProductSku { + return r._productSku +} +// ProductType Setter +// 商品类型,在线批发商品(wholesale)或者询盘商品(sourcing) +func (r *AlibabaIcbuProductUpdateFieldAPIRequest) SetProductType(_productType string) error { + r._productType = _productType + r.Set("product_type", _productType) + return nil +} + +// ProductType Getter +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetProductType() string { + return r._productType +} +// SourcingTrade Setter +// 询盘商品交易信息 +func (r *AlibabaIcbuProductUpdateFieldAPIRequest) SetSourcingTrade(_sourcingTrade *SourcingTrade) error { + r._sourcingTrade = _sourcingTrade + r.Set("sourcing_trade", _sourcingTrade) + return nil +} + +// SourcingTrade Getter +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetSourcingTrade() *SourcingTrade { + return r._sourcingTrade +} +// Subject Setter +// 商品名称,最多128个字符 +func (r *AlibabaIcbuProductUpdateFieldAPIRequest) SetSubject(_subject string) error { + r._subject = _subject + r.Set("subject", _subject) + return nil +} + +// Subject Getter +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetSubject() string { + return r._subject +} +// WholesaleTrade Setter +// 在线批发商品交易信息 +func (r *AlibabaIcbuProductUpdateFieldAPIRequest) SetWholesaleTrade(_wholesaleTrade *WholesaleTrade) error { + r._wholesaleTrade = _wholesaleTrade + r.Set("wholesale_trade", _wholesaleTrade) + return nil +} + +// WholesaleTrade Getter +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetWholesaleTrade() *WholesaleTrade { + return r._wholesaleTrade +} +// Market Setter +// 发布的市场,支持main/onesite,默认main发到主市场,填onesite发布为商机通产品 +func (r *AlibabaIcbuProductUpdateFieldAPIRequest) SetMarket(_market string) error { + r._market = _market + r.Set("market", _market) + return nil +} + +// Market Getter +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetMarket() string { + return r._market +} +// CustomInfo Setter +// 定制信息 +func (r *AlibabaIcbuProductUpdateFieldAPIRequest) SetCustomInfo(_customInfo *CustomInfo) error { + r._customInfo = _customInfo + r.Set("custom_info", _customInfo) + return nil +} + +// CustomInfo Getter +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetCustomInfo() *CustomInfo { + return r._customInfo +} +// IsSmartEdit Setter +// 商品详情种类,true表示智能编辑,不填默认取商品原来的详情种类 +func (r *AlibabaIcbuProductUpdateFieldAPIRequest) SetIsSmartEdit(_isSmartEdit bool) error { + r._isSmartEdit = _isSmartEdit + r.Set("is_smart_edit", _isSmartEdit) + return nil +} + +// IsSmartEdit Getter +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetIsSmartEdit() bool { + return r._isSmartEdit +} +// UseSkuPrice Setter +// 使用SKU价的时候需要传入这个参数 +func (r *AlibabaIcbuProductUpdateFieldAPIRequest) SetUseSkuPrice(_useSkuPrice bool) error { + r._useSkuPrice = _useSkuPrice + r.Set("use_sku_price", _useSkuPrice) + return nil +} + +// UseSkuPrice Getter +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetUseSkuPrice() bool { + return r._useSkuPrice +} +// ProductId Setter +// 混淆商品ID +func (r *AlibabaIcbuProductUpdateFieldAPIRequest) SetProductId(_productId string) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r AlibabaIcbuProductUpdateFieldAPIRequest) GetProductId() string { + return r._productId +} diff --git a/model/icbu/AlibabaIcbuProductUpdateFieldAPIResponse.go b/model/icbu/AlibabaIcbuProductUpdateFieldAPIResponse.go new file mode 100644 index 0000000000..78663cecbf --- /dev/null +++ b/model/icbu/AlibabaIcbuProductUpdateFieldAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品按字段更新 API返回值 +alibaba.icbu.product.update.field + +按字段修改国际站商品,支持询盘商品和在线批发商品,支持英文商品和多语言商品 +*/ +type AlibabaIcbuProductUpdateFieldAPIResponse struct { + model.CommonResponse + AlibabaIcbuProductUpdateFieldAPIResponseModel +} + +// 商品按字段更新 成功返回结果 +type AlibabaIcbuProductUpdateFieldAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_product_update_field_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 加密后的产品ID + ProductId string `json:"product_id,omitempty" xml:"product_id,omitempty"` +} diff --git a/model/icbu/AlibabaIcbuProductUpdateFieldResponse.go b/model/icbu/AlibabaIcbuProductUpdateFieldResponse.go deleted file mode 100644 index 3eb37125b9..0000000000 --- a/model/icbu/AlibabaIcbuProductUpdateFieldResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品按字段更新 API返回值 -alibaba.icbu.product.update.field - -按字段修改国际站商品,支持询盘商品和在线批发商品,支持英文商品和多语言商品 -*/ -type AlibabaIcbuProductUpdateFieldAPIResponse struct { - model.CommonResponse - AlibabaIcbuProductUpdateFieldResponse -} - -// 商品按字段更新 成功返回结果 -type AlibabaIcbuProductUpdateFieldResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_product_update_field_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 加密后的产品ID - ProductId string `json:"product_id,omitempty" xml:"product_id,omitempty"` -} diff --git a/model/icbu/AlibabaIcbuProductUpdateResponse.go b/model/icbu/AlibabaIcbuProductUpdateResponse.go deleted file mode 100644 index 489558fb75..0000000000 --- a/model/icbu/AlibabaIcbuProductUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改商品 API返回值 -alibaba.icbu.product.update - -修改国际站商品,支持询盘商品和在线批发商品,支持英文商品和多语言商品 -*/ -type AlibabaIcbuProductUpdateAPIResponse struct { - model.CommonResponse - AlibabaIcbuProductUpdateResponse -} - -// 修改商品 成功返回结果 -type AlibabaIcbuProductUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_product_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 加密后的产品ID - ProductId string `json:"product_id,omitempty" xml:"product_id,omitempty"` -} diff --git a/model/icbu/AlibabaWholesaleShippinglineTemplateListAPIRequest.go b/model/icbu/AlibabaWholesaleShippinglineTemplateListAPIRequest.go new file mode 100644 index 0000000000..f6eae42a70 --- /dev/null +++ b/model/icbu/AlibabaWholesaleShippinglineTemplateListAPIRequest.go @@ -0,0 +1,66 @@ +package icbu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取运费模板 API请求 +alibaba.wholesale.shippingline.template.list + +查询运费模板信息 +*/ +type AlibabaWholesaleShippinglineTemplateListAPIRequest struct { + model.Params + // 第几页从1开始 + _pageNum int64 + // 每页返回的数据个数 + _count int64 +} + +// 初始化AlibabaWholesaleShippinglineTemplateListAPIRequest对象 +func NewAlibabaWholesaleShippinglineTemplateListRequest() *AlibabaWholesaleShippinglineTemplateListAPIRequest{ + return &AlibabaWholesaleShippinglineTemplateListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWholesaleShippinglineTemplateListAPIRequest) GetApiMethodName() string { + return "alibaba.wholesale.shippingline.template.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWholesaleShippinglineTemplateListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageNum Setter +// 第几页从1开始 +func (r *AlibabaWholesaleShippinglineTemplateListAPIRequest) SetPageNum(_pageNum int64) error { + r._pageNum = _pageNum + r.Set("page_num", _pageNum) + return nil +} + +// PageNum Getter +func (r AlibabaWholesaleShippinglineTemplateListAPIRequest) GetPageNum() int64 { + return r._pageNum +} +// Count Setter +// 每页返回的数据个数 +func (r *AlibabaWholesaleShippinglineTemplateListAPIRequest) SetCount(_count int64) error { + r._count = _count + r.Set("count", _count) + return nil +} + +// Count Getter +func (r AlibabaWholesaleShippinglineTemplateListAPIRequest) GetCount() int64 { + return r._count +} diff --git a/model/icbu/AlibabaWholesaleShippinglineTemplateListAPIResponse.go b/model/icbu/AlibabaWholesaleShippinglineTemplateListAPIResponse.go new file mode 100644 index 0000000000..221ca9aa68 --- /dev/null +++ b/model/icbu/AlibabaWholesaleShippinglineTemplateListAPIResponse.go @@ -0,0 +1,27 @@ +package icbu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取运费模板 API返回值 +alibaba.wholesale.shippingline.template.list + +查询运费模板信息 +*/ +type AlibabaWholesaleShippinglineTemplateListAPIResponse struct { + model.CommonResponse + AlibabaWholesaleShippinglineTemplateListAPIResponseModel +} + +// 获取运费模板 成功返回结果 +type AlibabaWholesaleShippinglineTemplateListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wholesale_shippingline_template_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 运费模板列表 + ListTemplateResponse *ListTemplateAPIResult `json:"list_template_response,omitempty" xml:"list_template_response,omitempty"` +} diff --git a/model/icbu/AlibabaWholesaleShippinglineTemplateListResponse.go b/model/icbu/AlibabaWholesaleShippinglineTemplateListResponse.go deleted file mode 100644 index 497b108247..0000000000 --- a/model/icbu/AlibabaWholesaleShippinglineTemplateListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取运费模板 API返回值 -alibaba.wholesale.shippingline.template.list - -查询运费模板信息 -*/ -type AlibabaWholesaleShippinglineTemplateListAPIResponse struct { - model.CommonResponse - AlibabaWholesaleShippinglineTemplateListResponse -} - -// 获取运费模板 成功返回结果 -type AlibabaWholesaleShippinglineTemplateListResponse struct { - XMLName xml.Name `xml:"alibaba_wholesale_shippingline_template_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 运费模板列表 - ListTemplateResponse *ListTemplateAPIResult `json:"list_template_response,omitempty" xml:"list_template_response,omitempty"` -} diff --git a/model/icbuassurance/AlibabaIcbuTradeAssuranceAccountGetAPIRequest.go b/model/icbuassurance/AlibabaIcbuTradeAssuranceAccountGetAPIRequest.go new file mode 100644 index 0000000000..786bde93d2 --- /dev/null +++ b/model/icbuassurance/AlibabaIcbuTradeAssuranceAccountGetAPIRequest.go @@ -0,0 +1,38 @@ +package icbuassurance + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +icbu信保账户信息 API请求 +alibaba.icbu.trade.assurance.account.get + +icbu交易信用保障开通状态&额度信息查询 +*/ +type AlibabaIcbuTradeAssuranceAccountGetAPIRequest struct { + model.Params +} + +// 初始化AlibabaIcbuTradeAssuranceAccountGetAPIRequest对象 +func NewAlibabaIcbuTradeAssuranceAccountGetRequest() *AlibabaIcbuTradeAssuranceAccountGetAPIRequest{ + return &AlibabaIcbuTradeAssuranceAccountGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuTradeAssuranceAccountGetAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.trade.assurance.account.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuTradeAssuranceAccountGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/icbuassurance/AlibabaIcbuTradeAssuranceAccountGetAPIResponse.go b/model/icbuassurance/AlibabaIcbuTradeAssuranceAccountGetAPIResponse.go new file mode 100644 index 0000000000..367c3ea767 --- /dev/null +++ b/model/icbuassurance/AlibabaIcbuTradeAssuranceAccountGetAPIResponse.go @@ -0,0 +1,27 @@ +package icbuassurance + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +icbu信保账户信息 API返回值 +alibaba.icbu.trade.assurance.account.get + +icbu交易信用保障开通状态&额度信息查询 +*/ +type AlibabaIcbuTradeAssuranceAccountGetAPIResponse struct { + model.CommonResponse + AlibabaIcbuTradeAssuranceAccountGetAPIResponseModel +} + +// icbu信保账户信息 成功返回结果 +type AlibabaIcbuTradeAssuranceAccountGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_trade_assurance_account_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // AssuranceAccountResult + AssuranceAccountResult *AssuranceAccountResult `json:"assurance_account_result,omitempty" xml:"assurance_account_result,omitempty"` +} diff --git a/model/icbuassurance/AlibabaIcbuTradeAssuranceAccountGetResponse.go b/model/icbuassurance/AlibabaIcbuTradeAssuranceAccountGetResponse.go deleted file mode 100644 index d5cefa73db..0000000000 --- a/model/icbuassurance/AlibabaIcbuTradeAssuranceAccountGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbuassurance - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -icbu信保账户信息 API返回值 -alibaba.icbu.trade.assurance.account.get - -icbu交易信用保障开通状态&额度信息查询 -*/ -type AlibabaIcbuTradeAssuranceAccountGetAPIResponse struct { - model.CommonResponse - AlibabaIcbuTradeAssuranceAccountGetResponse -} - -// icbu信保账户信息 成功返回结果 -type AlibabaIcbuTradeAssuranceAccountGetResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_trade_assurance_account_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // AssuranceAccountResult - AssuranceAccountResult *AssuranceAccountResult `json:"assurance_account_result,omitempty" xml:"assurance_account_result,omitempty"` -} diff --git a/model/icbudropshipping/AlibabaBuynowOrderCreateAPIRequest.go b/model/icbudropshipping/AlibabaBuynowOrderCreateAPIRequest.go new file mode 100644 index 0000000000..ea8c0fe428 --- /dev/null +++ b/model/icbudropshipping/AlibabaBuynowOrderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package icbudropshipping + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里巴巴买家buynow下单接口 API请求 +alibaba.buynow.order.create + +阿里巴巴买家下单接口 +*/ +type AlibabaBuynowOrderCreateAPIRequest struct { + model.Params + // Order creation parameter + _paramOrderCreateRequest *OrderCreateRequest +} + +// 初始化AlibabaBuynowOrderCreateAPIRequest对象 +func NewAlibabaBuynowOrderCreateRequest() *AlibabaBuynowOrderCreateAPIRequest{ + return &AlibabaBuynowOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaBuynowOrderCreateAPIRequest) GetApiMethodName() string { + return "alibaba.buynow.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaBuynowOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamOrderCreateRequest Setter +// Order creation parameter +func (r *AlibabaBuynowOrderCreateAPIRequest) SetParamOrderCreateRequest(_paramOrderCreateRequest *OrderCreateRequest) error { + r._paramOrderCreateRequest = _paramOrderCreateRequest + r.Set("param_order_create_request", _paramOrderCreateRequest) + return nil +} + +// ParamOrderCreateRequest Getter +func (r AlibabaBuynowOrderCreateAPIRequest) GetParamOrderCreateRequest() *OrderCreateRequest { + return r._paramOrderCreateRequest +} diff --git a/model/icbudropshipping/AlibabaBuynowOrderCreateAPIResponse.go b/model/icbudropshipping/AlibabaBuynowOrderCreateAPIResponse.go new file mode 100644 index 0000000000..34a4c4cba5 --- /dev/null +++ b/model/icbudropshipping/AlibabaBuynowOrderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package icbudropshipping + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里巴巴买家buynow下单接口 API返回值 +alibaba.buynow.order.create + +阿里巴巴买家下单接口 +*/ +type AlibabaBuynowOrderCreateAPIResponse struct { + model.CommonResponse + AlibabaBuynowOrderCreateAPIResponseModel +} + +// 阿里巴巴买家buynow下单接口 成功返回结果 +type AlibabaBuynowOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_buynow_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Response + Value *OrderCreateResponse `json:"value,omitempty" xml:"value,omitempty"` +} diff --git a/model/icbudropshipping/AlibabaBuynowOrderCreateResponse.go b/model/icbudropshipping/AlibabaBuynowOrderCreateResponse.go deleted file mode 100644 index 699fa71e21..0000000000 --- a/model/icbudropshipping/AlibabaBuynowOrderCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbudropshipping - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里巴巴买家buynow下单接口 API返回值 -alibaba.buynow.order.create - -阿里巴巴买家下单接口 -*/ -type AlibabaBuynowOrderCreateAPIResponse struct { - model.CommonResponse - AlibabaBuynowOrderCreateResponse -} - -// 阿里巴巴买家buynow下单接口 成功返回结果 -type AlibabaBuynowOrderCreateResponse struct { - XMLName xml.Name `xml:"alibaba_buynow_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Response - Value *OrderCreateResponse `json:"value,omitempty" xml:"value,omitempty"` -} diff --git a/model/icbudropshipping/AlibabaDropshippingOrderPayAPIRequest.go b/model/icbudropshipping/AlibabaDropshippingOrderPayAPIRequest.go new file mode 100644 index 0000000000..819ab6a2cd --- /dev/null +++ b/model/icbudropshipping/AlibabaDropshippingOrderPayAPIRequest.go @@ -0,0 +1,52 @@ +package icbudropshipping + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +alibaba dropshipping 支付代扣 API请求 +alibaba.dropshipping.order.pay + +alibaba dropshipping 支付代扣 +*/ +type AlibabaDropshippingOrderPayAPIRequest struct { + model.Params + // request model + _paramOrderPayRequest *OrderPayRequest +} + +// 初始化AlibabaDropshippingOrderPayAPIRequest对象 +func NewAlibabaDropshippingOrderPayRequest() *AlibabaDropshippingOrderPayAPIRequest{ + return &AlibabaDropshippingOrderPayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDropshippingOrderPayAPIRequest) GetApiMethodName() string { + return "alibaba.dropshipping.order.pay" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDropshippingOrderPayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamOrderPayRequest Setter +// request model +func (r *AlibabaDropshippingOrderPayAPIRequest) SetParamOrderPayRequest(_paramOrderPayRequest *OrderPayRequest) error { + r._paramOrderPayRequest = _paramOrderPayRequest + r.Set("param_order_pay_request", _paramOrderPayRequest) + return nil +} + +// ParamOrderPayRequest Getter +func (r AlibabaDropshippingOrderPayAPIRequest) GetParamOrderPayRequest() *OrderPayRequest { + return r._paramOrderPayRequest +} diff --git a/model/icbudropshipping/AlibabaDropshippingOrderPayAPIResponse.go b/model/icbudropshipping/AlibabaDropshippingOrderPayAPIResponse.go new file mode 100644 index 0000000000..990db8f75d --- /dev/null +++ b/model/icbudropshipping/AlibabaDropshippingOrderPayAPIResponse.go @@ -0,0 +1,27 @@ +package icbudropshipping + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +alibaba dropshipping 支付代扣 API返回值 +alibaba.dropshipping.order.pay + +alibaba dropshipping 支付代扣 +*/ +type AlibabaDropshippingOrderPayAPIResponse struct { + model.CommonResponse + AlibabaDropshippingOrderPayAPIResponseModel +} + +// alibaba dropshipping 支付代扣 成功返回结果 +type AlibabaDropshippingOrderPayAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_dropshipping_order_pay_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // response model + Value *CashierPayResponse `json:"value,omitempty" xml:"value,omitempty"` +} diff --git a/model/icbudropshipping/AlibabaDropshippingOrderPayResponse.go b/model/icbudropshipping/AlibabaDropshippingOrderPayResponse.go deleted file mode 100644 index a31b90af11..0000000000 --- a/model/icbudropshipping/AlibabaDropshippingOrderPayResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbudropshipping - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -alibaba dropshipping 支付代扣 API返回值 -alibaba.dropshipping.order.pay - -alibaba dropshipping 支付代扣 -*/ -type AlibabaDropshippingOrderPayAPIResponse struct { - model.CommonResponse - AlibabaDropshippingOrderPayResponse -} - -// alibaba dropshipping 支付代扣 成功返回结果 -type AlibabaDropshippingOrderPayResponse struct { - XMLName xml.Name `xml:"alibaba_dropshipping_order_pay_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // response model - Value *CashierPayResponse `json:"value,omitempty" xml:"value,omitempty"` -} diff --git a/model/icbudropshipping/AlibabaDropshippingProductGetAPIRequest.go b/model/icbudropshipping/AlibabaDropshippingProductGetAPIRequest.go new file mode 100644 index 0000000000..07af48f491 --- /dev/null +++ b/model/icbudropshipping/AlibabaDropshippingProductGetAPIRequest.go @@ -0,0 +1,52 @@ +package icbudropshipping + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里巴巴dropshipping 产品信息获取 API请求 +alibaba.dropshipping.product.get + +阿里巴巴dropshipping 产品信息获取 +*/ +type AlibabaDropshippingProductGetAPIRequest struct { + model.Params + // {} + _paramDistributionSaleProductRequest *DistributionSaleProductRequest +} + +// 初始化AlibabaDropshippingProductGetAPIRequest对象 +func NewAlibabaDropshippingProductGetRequest() *AlibabaDropshippingProductGetAPIRequest{ + return &AlibabaDropshippingProductGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDropshippingProductGetAPIRequest) GetApiMethodName() string { + return "alibaba.dropshipping.product.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDropshippingProductGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamDistributionSaleProductRequest Setter +// {} +func (r *AlibabaDropshippingProductGetAPIRequest) SetParamDistributionSaleProductRequest(_paramDistributionSaleProductRequest *DistributionSaleProductRequest) error { + r._paramDistributionSaleProductRequest = _paramDistributionSaleProductRequest + r.Set("param_distribution_sale_product_request", _paramDistributionSaleProductRequest) + return nil +} + +// ParamDistributionSaleProductRequest Getter +func (r AlibabaDropshippingProductGetAPIRequest) GetParamDistributionSaleProductRequest() *DistributionSaleProductRequest { + return r._paramDistributionSaleProductRequest +} diff --git a/model/icbudropshipping/AlibabaDropshippingProductGetAPIResponse.go b/model/icbudropshipping/AlibabaDropshippingProductGetAPIResponse.go new file mode 100644 index 0000000000..108cadf406 --- /dev/null +++ b/model/icbudropshipping/AlibabaDropshippingProductGetAPIResponse.go @@ -0,0 +1,27 @@ +package icbudropshipping + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里巴巴dropshipping 产品信息获取 API返回值 +alibaba.dropshipping.product.get + +阿里巴巴dropshipping 产品信息获取 +*/ +type AlibabaDropshippingProductGetAPIResponse struct { + model.CommonResponse + AlibabaDropshippingProductGetAPIResponseModel +} + +// 阿里巴巴dropshipping 产品信息获取 成功返回结果 +type AlibabaDropshippingProductGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_dropshipping_product_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // product pojo + Value []DistributionSaleProduct `json:"value,omitempty" xml:"value>distribution_sale_product,omitempty"` +} diff --git a/model/icbudropshipping/AlibabaDropshippingProductGetResponse.go b/model/icbudropshipping/AlibabaDropshippingProductGetResponse.go deleted file mode 100644 index c9e9072206..0000000000 --- a/model/icbudropshipping/AlibabaDropshippingProductGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbudropshipping - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里巴巴dropshipping 产品信息获取 API返回值 -alibaba.dropshipping.product.get - -阿里巴巴dropshipping 产品信息获取 -*/ -type AlibabaDropshippingProductGetAPIResponse struct { - model.CommonResponse - AlibabaDropshippingProductGetResponse -} - -// 阿里巴巴dropshipping 产品信息获取 成功返回结果 -type AlibabaDropshippingProductGetResponse struct { - XMLName xml.Name `xml:"alibaba_dropshipping_product_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // product pojo - Value []DistributionSaleProduct `json:"value,omitempty" xml:"value>distribution_sale_product,omitempty"` -} diff --git a/model/icbudropshipping/AlibabaDropshippingTokenCreateAPIRequest.go b/model/icbudropshipping/AlibabaDropshippingTokenCreateAPIRequest.go new file mode 100644 index 0000000000..08b880a5a7 --- /dev/null +++ b/model/icbudropshipping/AlibabaDropshippingTokenCreateAPIRequest.go @@ -0,0 +1,38 @@ +package icbudropshipping + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +国际站dropshipping 选品token 创建 API请求 +alibaba.dropshipping.token.create + +国际站dropshipping 选品token 创建,用于让买家有权限访问我们指定的 商品场馆 +*/ +type AlibabaDropshippingTokenCreateAPIRequest struct { + model.Params +} + +// 初始化AlibabaDropshippingTokenCreateAPIRequest对象 +func NewAlibabaDropshippingTokenCreateRequest() *AlibabaDropshippingTokenCreateAPIRequest{ + return &AlibabaDropshippingTokenCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDropshippingTokenCreateAPIRequest) GetApiMethodName() string { + return "alibaba.dropshipping.token.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDropshippingTokenCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/icbudropshipping/AlibabaDropshippingTokenCreateAPIResponse.go b/model/icbudropshipping/AlibabaDropshippingTokenCreateAPIResponse.go new file mode 100644 index 0000000000..0b2a4f8ba6 --- /dev/null +++ b/model/icbudropshipping/AlibabaDropshippingTokenCreateAPIResponse.go @@ -0,0 +1,27 @@ +package icbudropshipping + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +国际站dropshipping 选品token 创建 API返回值 +alibaba.dropshipping.token.create + +国际站dropshipping 选品token 创建,用于让买家有权限访问我们指定的 商品场馆 +*/ +type AlibabaDropshippingTokenCreateAPIResponse struct { + model.CommonResponse + AlibabaDropshippingTokenCreateAPIResponseModel +} + +// 国际站dropshipping 选品token 创建 成功返回结果 +type AlibabaDropshippingTokenCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_dropshipping_token_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ecology_token + EcologyToken string `json:"ecology_token,omitempty" xml:"ecology_token,omitempty"` +} diff --git a/model/icbudropshipping/AlibabaDropshippingTokenCreateResponse.go b/model/icbudropshipping/AlibabaDropshippingTokenCreateResponse.go deleted file mode 100644 index b2c6e4e2cd..0000000000 --- a/model/icbudropshipping/AlibabaDropshippingTokenCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbudropshipping - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -国际站dropshipping 选品token 创建 API返回值 -alibaba.dropshipping.token.create - -国际站dropshipping 选品token 创建,用于让买家有权限访问我们指定的 商品场馆 -*/ -type AlibabaDropshippingTokenCreateAPIResponse struct { - model.CommonResponse - AlibabaDropshippingTokenCreateResponse -} - -// 国际站dropshipping 选品token 创建 成功返回结果 -type AlibabaDropshippingTokenCreateResponse struct { - XMLName xml.Name `xml:"alibaba_dropshipping_token_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ecology_token - EcologyToken string `json:"ecology_token,omitempty" xml:"ecology_token,omitempty"` -} diff --git a/model/icbudropshipping/AlibabaOrderFreightCalculateAPIRequest.go b/model/icbudropshipping/AlibabaOrderFreightCalculateAPIRequest.go new file mode 100644 index 0000000000..cc5970d8a9 --- /dev/null +++ b/model/icbudropshipping/AlibabaOrderFreightCalculateAPIRequest.go @@ -0,0 +1,53 @@ +package icbudropshipping + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里巴巴下单场景运费方案计算 API请求 +alibaba.order.freight.calculate + +icbu开展 drop shipping 业务,阿里巴巴下单场景运费方案计算 +alibaba Create order scenario freight calculation +*/ +type AlibabaOrderFreightCalculateAPIRequest struct { + model.Params + // {} + _paramMultiFreightTemplateRequest *MultiFreightTemplateRequest +} + +// 初始化AlibabaOrderFreightCalculateAPIRequest对象 +func NewAlibabaOrderFreightCalculateRequest() *AlibabaOrderFreightCalculateAPIRequest{ + return &AlibabaOrderFreightCalculateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaOrderFreightCalculateAPIRequest) GetApiMethodName() string { + return "alibaba.order.freight.calculate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaOrderFreightCalculateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamMultiFreightTemplateRequest Setter +// {} +func (r *AlibabaOrderFreightCalculateAPIRequest) SetParamMultiFreightTemplateRequest(_paramMultiFreightTemplateRequest *MultiFreightTemplateRequest) error { + r._paramMultiFreightTemplateRequest = _paramMultiFreightTemplateRequest + r.Set("param_multi_freight_template_request", _paramMultiFreightTemplateRequest) + return nil +} + +// ParamMultiFreightTemplateRequest Getter +func (r AlibabaOrderFreightCalculateAPIRequest) GetParamMultiFreightTemplateRequest() *MultiFreightTemplateRequest { + return r._paramMultiFreightTemplateRequest +} diff --git a/model/icbudropshipping/AlibabaOrderFreightCalculateAPIResponse.go b/model/icbudropshipping/AlibabaOrderFreightCalculateAPIResponse.go new file mode 100644 index 0000000000..0bca96e068 --- /dev/null +++ b/model/icbudropshipping/AlibabaOrderFreightCalculateAPIResponse.go @@ -0,0 +1,28 @@ +package icbudropshipping + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里巴巴下单场景运费方案计算 API返回值 +alibaba.order.freight.calculate + +icbu开展 drop shipping 业务,阿里巴巴下单场景运费方案计算 +alibaba Create order scenario freight calculation +*/ +type AlibabaOrderFreightCalculateAPIResponse struct { + model.CommonResponse + AlibabaOrderFreightCalculateAPIResponseModel +} + +// 阿里巴巴下单场景运费方案计算 成功返回结果 +type AlibabaOrderFreightCalculateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_order_freight_calculate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Logistics Solution List + Value []LogisticsSolution `json:"value,omitempty" xml:"value>logistics_solution,omitempty"` +} diff --git a/model/icbudropshipping/AlibabaOrderFreightCalculateResponse.go b/model/icbudropshipping/AlibabaOrderFreightCalculateResponse.go deleted file mode 100644 index 66eb5c9382..0000000000 --- a/model/icbudropshipping/AlibabaOrderFreightCalculateResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package icbudropshipping - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里巴巴下单场景运费方案计算 API返回值 -alibaba.order.freight.calculate - -icbu开展 drop shipping 业务,阿里巴巴下单场景运费方案计算 -alibaba Create order scenario freight calculation -*/ -type AlibabaOrderFreightCalculateAPIResponse struct { - model.CommonResponse - AlibabaOrderFreightCalculateResponse -} - -// 阿里巴巴下单场景运费方案计算 成功返回结果 -type AlibabaOrderFreightCalculateResponse struct { - XMLName xml.Name `xml:"alibaba_order_freight_calculate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Logistics Solution List - Value []LogisticsSolution `json:"value,omitempty" xml:"value>logistics_solution,omitempty"` -} diff --git a/model/icbudropshipping/AlibabaOrderLogisticsTrackingGetAPIRequest.go b/model/icbudropshipping/AlibabaOrderLogisticsTrackingGetAPIRequest.go new file mode 100644 index 0000000000..608aa7944b --- /dev/null +++ b/model/icbudropshipping/AlibabaOrderLogisticsTrackingGetAPIRequest.go @@ -0,0 +1,52 @@ +package icbudropshipping + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里巴巴订单物流轨迹查询 API请求 +alibaba.order.logistics.tracking.get + +阿里巴巴订单物流轨迹查询 +*/ +type AlibabaOrderLogisticsTrackingGetAPIRequest struct { + model.Params + // order id + _tradeId int64 +} + +// 初始化AlibabaOrderLogisticsTrackingGetAPIRequest对象 +func NewAlibabaOrderLogisticsTrackingGetRequest() *AlibabaOrderLogisticsTrackingGetAPIRequest{ + return &AlibabaOrderLogisticsTrackingGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaOrderLogisticsTrackingGetAPIRequest) GetApiMethodName() string { + return "alibaba.order.logistics.tracking.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaOrderLogisticsTrackingGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeId Setter +// order id +func (r *AlibabaOrderLogisticsTrackingGetAPIRequest) SetTradeId(_tradeId int64) error { + r._tradeId = _tradeId + r.Set("trade_id", _tradeId) + return nil +} + +// TradeId Getter +func (r AlibabaOrderLogisticsTrackingGetAPIRequest) GetTradeId() int64 { + return r._tradeId +} diff --git a/model/icbudropshipping/AlibabaOrderLogisticsTrackingGetAPIResponse.go b/model/icbudropshipping/AlibabaOrderLogisticsTrackingGetAPIResponse.go new file mode 100644 index 0000000000..2ef6be3c5a --- /dev/null +++ b/model/icbudropshipping/AlibabaOrderLogisticsTrackingGetAPIResponse.go @@ -0,0 +1,27 @@ +package icbudropshipping + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里巴巴订单物流轨迹查询 API返回值 +alibaba.order.logistics.tracking.get + +阿里巴巴订单物流轨迹查询 +*/ +type AlibabaOrderLogisticsTrackingGetAPIResponse struct { + model.CommonResponse + AlibabaOrderLogisticsTrackingGetAPIResponseModel +} + +// 阿里巴巴订单物流轨迹查询 成功返回结果 +type AlibabaOrderLogisticsTrackingGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_order_logistics_tracking_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // logistics tracking List + TrackingList []LogisticsTracking `json:"tracking_list,omitempty" xml:"tracking_list>logistics_tracking,omitempty"` +} diff --git a/model/icbudropshipping/AlibabaOrderLogisticsTrackingGetResponse.go b/model/icbudropshipping/AlibabaOrderLogisticsTrackingGetResponse.go deleted file mode 100644 index e35dd40416..0000000000 --- a/model/icbudropshipping/AlibabaOrderLogisticsTrackingGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbudropshipping - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里巴巴订单物流轨迹查询 API返回值 -alibaba.order.logistics.tracking.get - -阿里巴巴订单物流轨迹查询 -*/ -type AlibabaOrderLogisticsTrackingGetAPIResponse struct { - model.CommonResponse - AlibabaOrderLogisticsTrackingGetResponse -} - -// 阿里巴巴订单物流轨迹查询 成功返回结果 -type AlibabaOrderLogisticsTrackingGetResponse struct { - XMLName xml.Name `xml:"alibaba_order_logistics_tracking_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // logistics tracking List - TrackingList []LogisticsTracking `json:"tracking_list,omitempty" xml:"tracking_list>logistics_tracking,omitempty"` -} diff --git a/model/icbudropshipping/AlibabaOrderPayResultQueryAPIRequest.go b/model/icbudropshipping/AlibabaOrderPayResultQueryAPIRequest.go new file mode 100644 index 0000000000..351e6a1429 --- /dev/null +++ b/model/icbudropshipping/AlibabaOrderPayResultQueryAPIRequest.go @@ -0,0 +1,52 @@ +package icbudropshipping + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +alibaba查询订单支付结果 API请求 +alibaba.order.pay.result.query + +alibaba查询订单支付结果 +*/ +type AlibabaOrderPayResultQueryAPIRequest struct { + model.Params + // order id + _tradeId int64 +} + +// 初始化AlibabaOrderPayResultQueryAPIRequest对象 +func NewAlibabaOrderPayResultQueryRequest() *AlibabaOrderPayResultQueryAPIRequest{ + return &AlibabaOrderPayResultQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaOrderPayResultQueryAPIRequest) GetApiMethodName() string { + return "alibaba.order.pay.result.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaOrderPayResultQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeId Setter +// order id +func (r *AlibabaOrderPayResultQueryAPIRequest) SetTradeId(_tradeId int64) error { + r._tradeId = _tradeId + r.Set("trade_id", _tradeId) + return nil +} + +// TradeId Getter +func (r AlibabaOrderPayResultQueryAPIRequest) GetTradeId() int64 { + return r._tradeId +} diff --git a/model/icbudropshipping/AlibabaOrderPayResultQueryAPIResponse.go b/model/icbudropshipping/AlibabaOrderPayResultQueryAPIResponse.go new file mode 100644 index 0000000000..7256a4c969 --- /dev/null +++ b/model/icbudropshipping/AlibabaOrderPayResultQueryAPIResponse.go @@ -0,0 +1,27 @@ +package icbudropshipping + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +alibaba查询订单支付结果 API返回值 +alibaba.order.pay.result.query + +alibaba查询订单支付结果 +*/ +type AlibabaOrderPayResultQueryAPIResponse struct { + model.CommonResponse + AlibabaOrderPayResultQueryAPIResponseModel +} + +// alibaba查询订单支付结果 成功返回结果 +type AlibabaOrderPayResultQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_order_pay_result_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // pay response + Value *CashierPayResponse `json:"value,omitempty" xml:"value,omitempty"` +} diff --git a/model/icbudropshipping/AlibabaOrderPayResultQueryResponse.go b/model/icbudropshipping/AlibabaOrderPayResultQueryResponse.go deleted file mode 100644 index ac027faa4d..0000000000 --- a/model/icbudropshipping/AlibabaOrderPayResultQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbudropshipping - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -alibaba查询订单支付结果 API返回值 -alibaba.order.pay.result.query - -alibaba查询订单支付结果 -*/ -type AlibabaOrderPayResultQueryAPIResponse struct { - model.CommonResponse - AlibabaOrderPayResultQueryResponse -} - -// alibaba查询订单支付结果 成功返回结果 -type AlibabaOrderPayResultQueryResponse struct { - XMLName xml.Name `xml:"alibaba_order_pay_result_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // pay response - Value *CashierPayResponse `json:"value,omitempty" xml:"value,omitempty"` -} diff --git a/model/icbudropshipping/AlibabaShippingFreightCalculateAPIRequest.go b/model/icbudropshipping/AlibabaShippingFreightCalculateAPIRequest.go new file mode 100644 index 0000000000..4683cc7304 --- /dev/null +++ b/model/icbudropshipping/AlibabaShippingFreightCalculateAPIRequest.go @@ -0,0 +1,52 @@ +package icbudropshipping + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里巴巴商品运费计算查询接口 API请求 +alibaba.shipping.freight.calculate + +阿里巴巴商品运费计算查询接口 +*/ +type AlibabaShippingFreightCalculateAPIRequest struct { + model.Params + // {} + _paramFreightTemplateRequest *FreightTemplateRequest +} + +// 初始化AlibabaShippingFreightCalculateAPIRequest对象 +func NewAlibabaShippingFreightCalculateRequest() *AlibabaShippingFreightCalculateAPIRequest{ + return &AlibabaShippingFreightCalculateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaShippingFreightCalculateAPIRequest) GetApiMethodName() string { + return "alibaba.shipping.freight.calculate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaShippingFreightCalculateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamFreightTemplateRequest Setter +// {} +func (r *AlibabaShippingFreightCalculateAPIRequest) SetParamFreightTemplateRequest(_paramFreightTemplateRequest *FreightTemplateRequest) error { + r._paramFreightTemplateRequest = _paramFreightTemplateRequest + r.Set("param_freight_template_request", _paramFreightTemplateRequest) + return nil +} + +// ParamFreightTemplateRequest Getter +func (r AlibabaShippingFreightCalculateAPIRequest) GetParamFreightTemplateRequest() *FreightTemplateRequest { + return r._paramFreightTemplateRequest +} diff --git a/model/icbudropshipping/AlibabaShippingFreightCalculateAPIResponse.go b/model/icbudropshipping/AlibabaShippingFreightCalculateAPIResponse.go new file mode 100644 index 0000000000..35763212d4 --- /dev/null +++ b/model/icbudropshipping/AlibabaShippingFreightCalculateAPIResponse.go @@ -0,0 +1,27 @@ +package icbudropshipping + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里巴巴商品运费计算查询接口 API返回值 +alibaba.shipping.freight.calculate + +阿里巴巴商品运费计算查询接口 +*/ +type AlibabaShippingFreightCalculateAPIResponse struct { + model.CommonResponse + AlibabaShippingFreightCalculateAPIResponseModel +} + +// 阿里巴巴商品运费计算查询接口 成功返回结果 +type AlibabaShippingFreightCalculateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_shipping_freight_calculate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // pojo + Values []Value `json:"values,omitempty" xml:"values>value,omitempty"` +} diff --git a/model/icbudropshipping/AlibabaShippingFreightCalculateResponse.go b/model/icbudropshipping/AlibabaShippingFreightCalculateResponse.go deleted file mode 100644 index b1055bf6a2..0000000000 --- a/model/icbudropshipping/AlibabaShippingFreightCalculateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbudropshipping - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里巴巴商品运费计算查询接口 API返回值 -alibaba.shipping.freight.calculate - -阿里巴巴商品运费计算查询接口 -*/ -type AlibabaShippingFreightCalculateAPIResponse struct { - model.CommonResponse - AlibabaShippingFreightCalculateResponse -} - -// 阿里巴巴商品运费计算查询接口 成功返回结果 -type AlibabaShippingFreightCalculateResponse struct { - XMLName xml.Name `xml:"alibaba_shipping_freight_calculate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // pojo - Values []Value `json:"values,omitempty" xml:"values>value,omitempty"` -} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressCityListAPIRequest.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressCityListAPIRequest.go new file mode 100644 index 0000000000..1505ca1472 --- /dev/null +++ b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressCityListAPIRequest.go @@ -0,0 +1,52 @@ +package icbulogistics + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +四级地址库-市 API请求 +alibaba.onetouch.logistics.express.address.city.list + +四级地址库-市 +*/ +type AlibabaOnetouchLogisticsExpressAddressCityListAPIRequest struct { + model.Params + // 请求参数 + _paramQuery *AddressQueryDto +} + +// 初始化AlibabaOnetouchLogisticsExpressAddressCityListAPIRequest对象 +func NewAlibabaOnetouchLogisticsExpressAddressCityListRequest() *AlibabaOnetouchLogisticsExpressAddressCityListAPIRequest{ + return &AlibabaOnetouchLogisticsExpressAddressCityListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaOnetouchLogisticsExpressAddressCityListAPIRequest) GetApiMethodName() string { + return "alibaba.onetouch.logistics.express.address.city.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaOnetouchLogisticsExpressAddressCityListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamQuery Setter +// 请求参数 +func (r *AlibabaOnetouchLogisticsExpressAddressCityListAPIRequest) SetParamQuery(_paramQuery *AddressQueryDto) error { + r._paramQuery = _paramQuery + r.Set("param_query", _paramQuery) + return nil +} + +// ParamQuery Getter +func (r AlibabaOnetouchLogisticsExpressAddressCityListAPIRequest) GetParamQuery() *AddressQueryDto { + return r._paramQuery +} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressCityListAPIResponse.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressCityListAPIResponse.go new file mode 100644 index 0000000000..6039fa6eb4 --- /dev/null +++ b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressCityListAPIResponse.go @@ -0,0 +1,27 @@ +package icbulogistics + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +四级地址库-市 API返回值 +alibaba.onetouch.logistics.express.address.city.list + +四级地址库-市 +*/ +type AlibabaOnetouchLogisticsExpressAddressCityListAPIResponse struct { + model.CommonResponse + AlibabaOnetouchLogisticsExpressAddressCityListAPIResponseModel +} + +// 四级地址库-市 成功返回结果 +type AlibabaOnetouchLogisticsExpressAddressCityListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_onetouch_logistics_express_address_city_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaOnetouchLogisticsExpressAddressCityListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressCityListResponse.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressCityListResponse.go deleted file mode 100644 index 3d8c7a867b..0000000000 --- a/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressCityListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbulogistics - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -四级地址库-市 API返回值 -alibaba.onetouch.logistics.express.address.city.list - -四级地址库-市 -*/ -type AlibabaOnetouchLogisticsExpressAddressCityListAPIResponse struct { - model.CommonResponse - AlibabaOnetouchLogisticsExpressAddressCityListResponse -} - -// 四级地址库-市 成功返回结果 -type AlibabaOnetouchLogisticsExpressAddressCityListResponse struct { - XMLName xml.Name `xml:"alibaba_onetouch_logistics_express_address_city_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaOnetouchLogisticsExpressAddressCityListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressDivisionListAPIRequest.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressDivisionListAPIRequest.go new file mode 100644 index 0000000000..a1e05e339d --- /dev/null +++ b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressDivisionListAPIRequest.go @@ -0,0 +1,52 @@ +package icbulogistics + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +四级地址库-区域 API请求 +alibaba.onetouch.logistics.express.address.division.list + +四级地址库-区 +*/ +type AlibabaOnetouchLogisticsExpressAddressDivisionListAPIRequest struct { + model.Params + // 请求参数 + _paramQuery *AddressQueryDto +} + +// 初始化AlibabaOnetouchLogisticsExpressAddressDivisionListAPIRequest对象 +func NewAlibabaOnetouchLogisticsExpressAddressDivisionListRequest() *AlibabaOnetouchLogisticsExpressAddressDivisionListAPIRequest{ + return &AlibabaOnetouchLogisticsExpressAddressDivisionListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaOnetouchLogisticsExpressAddressDivisionListAPIRequest) GetApiMethodName() string { + return "alibaba.onetouch.logistics.express.address.division.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaOnetouchLogisticsExpressAddressDivisionListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamQuery Setter +// 请求参数 +func (r *AlibabaOnetouchLogisticsExpressAddressDivisionListAPIRequest) SetParamQuery(_paramQuery *AddressQueryDto) error { + r._paramQuery = _paramQuery + r.Set("param_query", _paramQuery) + return nil +} + +// ParamQuery Getter +func (r AlibabaOnetouchLogisticsExpressAddressDivisionListAPIRequest) GetParamQuery() *AddressQueryDto { + return r._paramQuery +} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressDivisionListAPIResponse.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressDivisionListAPIResponse.go new file mode 100644 index 0000000000..38f62692b2 --- /dev/null +++ b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressDivisionListAPIResponse.go @@ -0,0 +1,27 @@ +package icbulogistics + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +四级地址库-区域 API返回值 +alibaba.onetouch.logistics.express.address.division.list + +四级地址库-区 +*/ +type AlibabaOnetouchLogisticsExpressAddressDivisionListAPIResponse struct { + model.CommonResponse + AlibabaOnetouchLogisticsExpressAddressDivisionListAPIResponseModel +} + +// 四级地址库-区域 成功返回结果 +type AlibabaOnetouchLogisticsExpressAddressDivisionListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_onetouch_logistics_express_address_division_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaOnetouchLogisticsExpressAddressDivisionListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressDivisionListResponse.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressDivisionListResponse.go deleted file mode 100644 index a479ea7760..0000000000 --- a/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressDivisionListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbulogistics - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -四级地址库-区域 API返回值 -alibaba.onetouch.logistics.express.address.division.list - -四级地址库-区 -*/ -type AlibabaOnetouchLogisticsExpressAddressDivisionListAPIResponse struct { - model.CommonResponse - AlibabaOnetouchLogisticsExpressAddressDivisionListResponse -} - -// 四级地址库-区域 成功返回结果 -type AlibabaOnetouchLogisticsExpressAddressDivisionListResponse struct { - XMLName xml.Name `xml:"alibaba_onetouch_logistics_express_address_division_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaOnetouchLogisticsExpressAddressDivisionListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressProvinceListAPIRequest.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressProvinceListAPIRequest.go new file mode 100644 index 0000000000..ba082a5a09 --- /dev/null +++ b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressProvinceListAPIRequest.go @@ -0,0 +1,52 @@ +package icbulogistics + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +四级地址库-省 API请求 +alibaba.onetouch.logistics.express.address.province.list + +四级地址库-省 +*/ +type AlibabaOnetouchLogisticsExpressAddressProvinceListAPIRequest struct { + model.Params + // 请求参数 + _paramQuery *AddressQueryDto +} + +// 初始化AlibabaOnetouchLogisticsExpressAddressProvinceListAPIRequest对象 +func NewAlibabaOnetouchLogisticsExpressAddressProvinceListRequest() *AlibabaOnetouchLogisticsExpressAddressProvinceListAPIRequest{ + return &AlibabaOnetouchLogisticsExpressAddressProvinceListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaOnetouchLogisticsExpressAddressProvinceListAPIRequest) GetApiMethodName() string { + return "alibaba.onetouch.logistics.express.address.province.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaOnetouchLogisticsExpressAddressProvinceListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamQuery Setter +// 请求参数 +func (r *AlibabaOnetouchLogisticsExpressAddressProvinceListAPIRequest) SetParamQuery(_paramQuery *AddressQueryDto) error { + r._paramQuery = _paramQuery + r.Set("param_query", _paramQuery) + return nil +} + +// ParamQuery Getter +func (r AlibabaOnetouchLogisticsExpressAddressProvinceListAPIRequest) GetParamQuery() *AddressQueryDto { + return r._paramQuery +} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressProvinceListAPIResponse.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressProvinceListAPIResponse.go new file mode 100644 index 0000000000..b62a359e82 --- /dev/null +++ b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressProvinceListAPIResponse.go @@ -0,0 +1,27 @@ +package icbulogistics + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +四级地址库-省 API返回值 +alibaba.onetouch.logistics.express.address.province.list + +四级地址库-省 +*/ +type AlibabaOnetouchLogisticsExpressAddressProvinceListAPIResponse struct { + model.CommonResponse + AlibabaOnetouchLogisticsExpressAddressProvinceListAPIResponseModel +} + +// 四级地址库-省 成功返回结果 +type AlibabaOnetouchLogisticsExpressAddressProvinceListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_onetouch_logistics_express_address_province_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaOnetouchLogisticsExpressAddressProvinceListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressProvinceListResponse.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressProvinceListResponse.go deleted file mode 100644 index 18a5a24bf1..0000000000 --- a/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressProvinceListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbulogistics - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -四级地址库-省 API返回值 -alibaba.onetouch.logistics.express.address.province.list - -四级地址库-省 -*/ -type AlibabaOnetouchLogisticsExpressAddressProvinceListAPIResponse struct { - model.CommonResponse - AlibabaOnetouchLogisticsExpressAddressProvinceListResponse -} - -// 四级地址库-省 成功返回结果 -type AlibabaOnetouchLogisticsExpressAddressProvinceListResponse struct { - XMLName xml.Name `xml:"alibaba_onetouch_logistics_express_address_province_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaOnetouchLogisticsExpressAddressProvinceListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressStreetListAPIRequest.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressStreetListAPIRequest.go new file mode 100644 index 0000000000..c37540d477 --- /dev/null +++ b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressStreetListAPIRequest.go @@ -0,0 +1,52 @@ +package icbulogistics + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +四级地址库-街道 API请求 +alibaba.onetouch.logistics.express.address.street.list + +四级地址库-街道模糊查询 +*/ +type AlibabaOnetouchLogisticsExpressAddressStreetListAPIRequest struct { + model.Params + // 请求参数 + _paramQuery *AddressQueryDto +} + +// 初始化AlibabaOnetouchLogisticsExpressAddressStreetListAPIRequest对象 +func NewAlibabaOnetouchLogisticsExpressAddressStreetListRequest() *AlibabaOnetouchLogisticsExpressAddressStreetListAPIRequest{ + return &AlibabaOnetouchLogisticsExpressAddressStreetListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaOnetouchLogisticsExpressAddressStreetListAPIRequest) GetApiMethodName() string { + return "alibaba.onetouch.logistics.express.address.street.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaOnetouchLogisticsExpressAddressStreetListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamQuery Setter +// 请求参数 +func (r *AlibabaOnetouchLogisticsExpressAddressStreetListAPIRequest) SetParamQuery(_paramQuery *AddressQueryDto) error { + r._paramQuery = _paramQuery + r.Set("param_query", _paramQuery) + return nil +} + +// ParamQuery Getter +func (r AlibabaOnetouchLogisticsExpressAddressStreetListAPIRequest) GetParamQuery() *AddressQueryDto { + return r._paramQuery +} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressStreetListAPIResponse.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressStreetListAPIResponse.go new file mode 100644 index 0000000000..53ec272583 --- /dev/null +++ b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressStreetListAPIResponse.go @@ -0,0 +1,27 @@ +package icbulogistics + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +四级地址库-街道 API返回值 +alibaba.onetouch.logistics.express.address.street.list + +四级地址库-街道模糊查询 +*/ +type AlibabaOnetouchLogisticsExpressAddressStreetListAPIResponse struct { + model.CommonResponse + AlibabaOnetouchLogisticsExpressAddressStreetListAPIResponseModel +} + +// 四级地址库-街道 成功返回结果 +type AlibabaOnetouchLogisticsExpressAddressStreetListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_onetouch_logistics_express_address_street_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaOnetouchLogisticsExpressAddressStreetListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressStreetListResponse.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressStreetListResponse.go deleted file mode 100644 index add325018f..0000000000 --- a/model/icbulogistics/AlibabaOnetouchLogisticsExpressAddressStreetListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbulogistics - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -四级地址库-街道 API返回值 -alibaba.onetouch.logistics.express.address.street.list - -四级地址库-街道模糊查询 -*/ -type AlibabaOnetouchLogisticsExpressAddressStreetListAPIResponse struct { - model.CommonResponse - AlibabaOnetouchLogisticsExpressAddressStreetListResponse -} - -// 四级地址库-街道 成功返回结果 -type AlibabaOnetouchLogisticsExpressAddressStreetListResponse struct { - XMLName xml.Name `xml:"alibaba_onetouch_logistics_express_address_street_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaOnetouchLogisticsExpressAddressStreetListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressChargeCalculateAPIRequest.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressChargeCalculateAPIRequest.go new file mode 100644 index 0000000000..96ebb27009 --- /dev/null +++ b/model/icbulogistics/AlibabaOnetouchLogisticsExpressChargeCalculateAPIRequest.go @@ -0,0 +1,52 @@ +package icbulogistics + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +计算快递运费&下单参数校验 API请求 +alibaba.onetouch.logistics.express.charge.calculate + +计算快递运费、下单参数校验 +*/ +type AlibabaOnetouchLogisticsExpressChargeCalculateAPIRequest struct { + model.Params + // 请求参数对象 + _paramnQuery *PlaceOrderDto +} + +// 初始化AlibabaOnetouchLogisticsExpressChargeCalculateAPIRequest对象 +func NewAlibabaOnetouchLogisticsExpressChargeCalculateRequest() *AlibabaOnetouchLogisticsExpressChargeCalculateAPIRequest{ + return &AlibabaOnetouchLogisticsExpressChargeCalculateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaOnetouchLogisticsExpressChargeCalculateAPIRequest) GetApiMethodName() string { + return "alibaba.onetouch.logistics.express.charge.calculate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaOnetouchLogisticsExpressChargeCalculateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamnQuery Setter +// 请求参数对象 +func (r *AlibabaOnetouchLogisticsExpressChargeCalculateAPIRequest) SetParamnQuery(_paramnQuery *PlaceOrderDto) error { + r._paramnQuery = _paramnQuery + r.Set("paramn_query", _paramnQuery) + return nil +} + +// ParamnQuery Getter +func (r AlibabaOnetouchLogisticsExpressChargeCalculateAPIRequest) GetParamnQuery() *PlaceOrderDto { + return r._paramnQuery +} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressChargeCalculateAPIResponse.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressChargeCalculateAPIResponse.go new file mode 100644 index 0000000000..06b4ef825a --- /dev/null +++ b/model/icbulogistics/AlibabaOnetouchLogisticsExpressChargeCalculateAPIResponse.go @@ -0,0 +1,27 @@ +package icbulogistics + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +计算快递运费&下单参数校验 API返回值 +alibaba.onetouch.logistics.express.charge.calculate + +计算快递运费、下单参数校验 +*/ +type AlibabaOnetouchLogisticsExpressChargeCalculateAPIResponse struct { + model.CommonResponse + AlibabaOnetouchLogisticsExpressChargeCalculateAPIResponseModel +} + +// 计算快递运费&下单参数校验 成功返回结果 +type AlibabaOnetouchLogisticsExpressChargeCalculateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_onetouch_logistics_express_charge_calculate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaOnetouchLogisticsExpressChargeCalculateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressChargeCalculateResponse.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressChargeCalculateResponse.go deleted file mode 100644 index 26d8f86b64..0000000000 --- a/model/icbulogistics/AlibabaOnetouchLogisticsExpressChargeCalculateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbulogistics - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -计算快递运费&下单参数校验 API返回值 -alibaba.onetouch.logistics.express.charge.calculate - -计算快递运费、下单参数校验 -*/ -type AlibabaOnetouchLogisticsExpressChargeCalculateAPIResponse struct { - model.CommonResponse - AlibabaOnetouchLogisticsExpressChargeCalculateResponse -} - -// 计算快递运费&下单参数校验 成功返回结果 -type AlibabaOnetouchLogisticsExpressChargeCalculateResponse struct { - XMLName xml.Name `xml:"alibaba_onetouch_logistics_express_charge_calculate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaOnetouchLogisticsExpressChargeCalculateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIRequest.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIRequest.go new file mode 100644 index 0000000000..6183e8ab02 --- /dev/null +++ b/model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package icbulogistics + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +快递下单 API请求 +alibaba.onetouch.logistics.express.logistics.order.create + +快递下单 +*/ +type AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIRequest struct { + model.Params + // 请求参数对象 + _paramnQuery *PlaceOrderDto +} + +// 初始化AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIRequest对象 +func NewAlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest() *AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIRequest{ + return &AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIRequest) GetApiMethodName() string { + return "alibaba.onetouch.logistics.express.logistics.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamnQuery Setter +// 请求参数对象 +func (r *AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIRequest) SetParamnQuery(_paramnQuery *PlaceOrderDto) error { + r._paramnQuery = _paramnQuery + r.Set("paramn_query", _paramnQuery) + return nil +} + +// ParamnQuery Getter +func (r AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIRequest) GetParamnQuery() *PlaceOrderDto { + return r._paramnQuery +} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIResponse.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIResponse.go new file mode 100644 index 0000000000..2d488ad56c --- /dev/null +++ b/model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package icbulogistics + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +快递下单 API返回值 +alibaba.onetouch.logistics.express.logistics.order.create + +快递下单 +*/ +type AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIResponse struct { + model.CommonResponse + AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIResponseModel +} + +// 快递下单 成功返回结果 +type AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_onetouch_logistics_express_logistics_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaOnetouchLogisticsExpressLogisticsOrderCreateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsOrderCreateResponse.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsOrderCreateResponse.go deleted file mode 100644 index d77649798f..0000000000 --- a/model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsOrderCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbulogistics - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -快递下单 API返回值 -alibaba.onetouch.logistics.express.logistics.order.create - -快递下单 -*/ -type AlibabaOnetouchLogisticsExpressLogisticsOrderCreateAPIResponse struct { - model.CommonResponse - AlibabaOnetouchLogisticsExpressLogisticsOrderCreateResponse -} - -// 快递下单 成功返回结果 -type AlibabaOnetouchLogisticsExpressLogisticsOrderCreateResponse struct { - XMLName xml.Name `xml:"alibaba_onetouch_logistics_express_logistics_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaOnetouchLogisticsExpressLogisticsOrderCreateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsProductListAPIRequest.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsProductListAPIRequest.go new file mode 100644 index 0000000000..e8d9e32244 --- /dev/null +++ b/model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsProductListAPIRequest.go @@ -0,0 +1,38 @@ +package icbulogistics + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询物流运力列表 API请求 +alibaba.onetouch.logistics.express.logistics.product.list + +查询物流产品&揽收仓库列表 +*/ +type AlibabaOnetouchLogisticsExpressLogisticsProductListAPIRequest struct { + model.Params +} + +// 初始化AlibabaOnetouchLogisticsExpressLogisticsProductListAPIRequest对象 +func NewAlibabaOnetouchLogisticsExpressLogisticsProductListRequest() *AlibabaOnetouchLogisticsExpressLogisticsProductListAPIRequest{ + return &AlibabaOnetouchLogisticsExpressLogisticsProductListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaOnetouchLogisticsExpressLogisticsProductListAPIRequest) GetApiMethodName() string { + return "alibaba.onetouch.logistics.express.logistics.product.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaOnetouchLogisticsExpressLogisticsProductListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsProductListAPIResponse.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsProductListAPIResponse.go new file mode 100644 index 0000000000..d43a2b0afc --- /dev/null +++ b/model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsProductListAPIResponse.go @@ -0,0 +1,27 @@ +package icbulogistics + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询物流运力列表 API返回值 +alibaba.onetouch.logistics.express.logistics.product.list + +查询物流产品&揽收仓库列表 +*/ +type AlibabaOnetouchLogisticsExpressLogisticsProductListAPIResponse struct { + model.CommonResponse + AlibabaOnetouchLogisticsExpressLogisticsProductListAPIResponseModel +} + +// 查询物流运力列表 成功返回结果 +type AlibabaOnetouchLogisticsExpressLogisticsProductListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_onetouch_logistics_express_logistics_product_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaOnetouchLogisticsExpressLogisticsProductListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsProductListResponse.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsProductListResponse.go deleted file mode 100644 index 1eb7c20486..0000000000 --- a/model/icbulogistics/AlibabaOnetouchLogisticsExpressLogisticsProductListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbulogistics - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询物流运力列表 API返回值 -alibaba.onetouch.logistics.express.logistics.product.list - -查询物流产品&揽收仓库列表 -*/ -type AlibabaOnetouchLogisticsExpressLogisticsProductListAPIResponse struct { - model.CommonResponse - AlibabaOnetouchLogisticsExpressLogisticsProductListResponse -} - -// 查询物流运力列表 成功返回结果 -type AlibabaOnetouchLogisticsExpressLogisticsProductListResponse struct { - XMLName xml.Name `xml:"alibaba_onetouch_logistics_express_logistics_product_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaOnetouchLogisticsExpressLogisticsProductListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressOrderDetailGetAPIRequest.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressOrderDetailGetAPIRequest.go new file mode 100644 index 0000000000..11b1a86971 --- /dev/null +++ b/model/icbulogistics/AlibabaOnetouchLogisticsExpressOrderDetailGetAPIRequest.go @@ -0,0 +1,52 @@ +package icbulogistics + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单详细信息(面单及仓库信息) API请求 +alibaba.onetouch.logistics.express.order.detail.get + +订单详细信息(面单及仓库信息) +*/ +type AlibabaOnetouchLogisticsExpressOrderDetailGetAPIRequest struct { + model.Params + // 请求参数 + _paramQuery *LogisticsOrderQueryDto +} + +// 初始化AlibabaOnetouchLogisticsExpressOrderDetailGetAPIRequest对象 +func NewAlibabaOnetouchLogisticsExpressOrderDetailGetRequest() *AlibabaOnetouchLogisticsExpressOrderDetailGetAPIRequest{ + return &AlibabaOnetouchLogisticsExpressOrderDetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaOnetouchLogisticsExpressOrderDetailGetAPIRequest) GetApiMethodName() string { + return "alibaba.onetouch.logistics.express.order.detail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaOnetouchLogisticsExpressOrderDetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamQuery Setter +// 请求参数 +func (r *AlibabaOnetouchLogisticsExpressOrderDetailGetAPIRequest) SetParamQuery(_paramQuery *LogisticsOrderQueryDto) error { + r._paramQuery = _paramQuery + r.Set("param_query", _paramQuery) + return nil +} + +// ParamQuery Getter +func (r AlibabaOnetouchLogisticsExpressOrderDetailGetAPIRequest) GetParamQuery() *LogisticsOrderQueryDto { + return r._paramQuery +} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressOrderDetailGetAPIResponse.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressOrderDetailGetAPIResponse.go new file mode 100644 index 0000000000..dfc935dc98 --- /dev/null +++ b/model/icbulogistics/AlibabaOnetouchLogisticsExpressOrderDetailGetAPIResponse.go @@ -0,0 +1,27 @@ +package icbulogistics + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单详细信息(面单及仓库信息) API返回值 +alibaba.onetouch.logistics.express.order.detail.get + +订单详细信息(面单及仓库信息) +*/ +type AlibabaOnetouchLogisticsExpressOrderDetailGetAPIResponse struct { + model.CommonResponse + AlibabaOnetouchLogisticsExpressOrderDetailGetAPIResponseModel +} + +// 订单详细信息(面单及仓库信息) 成功返回结果 +type AlibabaOnetouchLogisticsExpressOrderDetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_onetouch_logistics_express_order_detail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaOnetouchLogisticsExpressOrderDetailGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressOrderDetailGetResponse.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressOrderDetailGetResponse.go deleted file mode 100644 index 193a6deb86..0000000000 --- a/model/icbulogistics/AlibabaOnetouchLogisticsExpressOrderDetailGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbulogistics - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单详细信息(面单及仓库信息) API返回值 -alibaba.onetouch.logistics.express.order.detail.get - -订单详细信息(面单及仓库信息) -*/ -type AlibabaOnetouchLogisticsExpressOrderDetailGetAPIResponse struct { - model.CommonResponse - AlibabaOnetouchLogisticsExpressOrderDetailGetResponse -} - -// 订单详细信息(面单及仓库信息) 成功返回结果 -type AlibabaOnetouchLogisticsExpressOrderDetailGetResponse struct { - XMLName xml.Name `xml:"alibaba_onetouch_logistics_express_order_detail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaOnetouchLogisticsExpressOrderDetailGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressSpecialProductTypeListAPIRequest.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressSpecialProductTypeListAPIRequest.go new file mode 100644 index 0000000000..923f7a302a --- /dev/null +++ b/model/icbulogistics/AlibabaOnetouchLogisticsExpressSpecialProductTypeListAPIRequest.go @@ -0,0 +1,38 @@ +package icbulogistics + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商品类型配置项 API请求 +alibaba.onetouch.logistics.express.special.product.type.list + +获取商品类型配置项 +*/ +type AlibabaOnetouchLogisticsExpressSpecialProductTypeListAPIRequest struct { + model.Params +} + +// 初始化AlibabaOnetouchLogisticsExpressSpecialProductTypeListAPIRequest对象 +func NewAlibabaOnetouchLogisticsExpressSpecialProductTypeListRequest() *AlibabaOnetouchLogisticsExpressSpecialProductTypeListAPIRequest{ + return &AlibabaOnetouchLogisticsExpressSpecialProductTypeListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaOnetouchLogisticsExpressSpecialProductTypeListAPIRequest) GetApiMethodName() string { + return "alibaba.onetouch.logistics.express.special.product.type.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaOnetouchLogisticsExpressSpecialProductTypeListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressSpecialProductTypeListAPIResponse.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressSpecialProductTypeListAPIResponse.go new file mode 100644 index 0000000000..b64fed8465 --- /dev/null +++ b/model/icbulogistics/AlibabaOnetouchLogisticsExpressSpecialProductTypeListAPIResponse.go @@ -0,0 +1,27 @@ +package icbulogistics + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商品类型配置项 API返回值 +alibaba.onetouch.logistics.express.special.product.type.list + +获取商品类型配置项 +*/ +type AlibabaOnetouchLogisticsExpressSpecialProductTypeListAPIResponse struct { + model.CommonResponse + AlibabaOnetouchLogisticsExpressSpecialProductTypeListAPIResponseModel +} + +// 获取商品类型配置项 成功返回结果 +type AlibabaOnetouchLogisticsExpressSpecialProductTypeListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_onetouch_logistics_express_special_product_type_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaOnetouchLogisticsExpressSpecialProductTypeListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbulogistics/AlibabaOnetouchLogisticsExpressSpecialProductTypeListResponse.go b/model/icbulogistics/AlibabaOnetouchLogisticsExpressSpecialProductTypeListResponse.go deleted file mode 100644 index 897baae6c7..0000000000 --- a/model/icbulogistics/AlibabaOnetouchLogisticsExpressSpecialProductTypeListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbulogistics - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取商品类型配置项 API返回值 -alibaba.onetouch.logistics.express.special.product.type.list - -获取商品类型配置项 -*/ -type AlibabaOnetouchLogisticsExpressSpecialProductTypeListAPIResponse struct { - model.CommonResponse - AlibabaOnetouchLogisticsExpressSpecialProductTypeListResponse -} - -// 获取商品类型配置项 成功返回结果 -type AlibabaOnetouchLogisticsExpressSpecialProductTypeListResponse struct { - XMLName xml.Name `xml:"alibaba_onetouch_logistics_express_special_product_type_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaOnetouchLogisticsExpressSpecialProductTypeListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbuproduct/AlibabaIcbuProductIdEncryptAPIRequest.go b/model/icbuproduct/AlibabaIcbuProductIdEncryptAPIRequest.go new file mode 100644 index 0000000000..e5339a627d --- /dev/null +++ b/model/icbuproduct/AlibabaIcbuProductIdEncryptAPIRequest.go @@ -0,0 +1,66 @@ +package icbuproduct + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ICBU国际站商品加密接口 API请求 +alibaba.icbu.product.id.encrypt + +ICBU国际站,对混淆的产品ID加密。 +*/ +type AlibabaIcbuProductIdEncryptAPIRequest struct { + model.Params + // 语种 + _language string + // 明文id + _productId int64 +} + +// 初始化AlibabaIcbuProductIdEncryptAPIRequest对象 +func NewAlibabaIcbuProductIdEncryptRequest() *AlibabaIcbuProductIdEncryptAPIRequest{ + return &AlibabaIcbuProductIdEncryptAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuProductIdEncryptAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.product.id.encrypt" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuProductIdEncryptAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Language Setter +// 语种 +func (r *AlibabaIcbuProductIdEncryptAPIRequest) SetLanguage(_language string) error { + r._language = _language + r.Set("language", _language) + return nil +} + +// Language Getter +func (r AlibabaIcbuProductIdEncryptAPIRequest) GetLanguage() string { + return r._language +} +// ProductId Setter +// 明文id +func (r *AlibabaIcbuProductIdEncryptAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r AlibabaIcbuProductIdEncryptAPIRequest) GetProductId() int64 { + return r._productId +} diff --git a/model/icbuproduct/AlibabaIcbuProductIdEncryptAPIResponse.go b/model/icbuproduct/AlibabaIcbuProductIdEncryptAPIResponse.go new file mode 100644 index 0000000000..a674f98f94 --- /dev/null +++ b/model/icbuproduct/AlibabaIcbuProductIdEncryptAPIResponse.go @@ -0,0 +1,27 @@ +package icbuproduct + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ICBU国际站商品加密接口 API返回值 +alibaba.icbu.product.id.encrypt + +ICBU国际站,对混淆的产品ID加密。 +*/ +type AlibabaIcbuProductIdEncryptAPIResponse struct { + model.CommonResponse + AlibabaIcbuProductIdEncryptAPIResponseModel +} + +// ICBU国际站商品加密接口 成功返回结果 +type AlibabaIcbuProductIdEncryptAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_product_id_encrypt_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 加密id + SecretId string `json:"secret_id,omitempty" xml:"secret_id,omitempty"` +} diff --git a/model/icbuproduct/AlibabaIcbuProductIdEncryptResponse.go b/model/icbuproduct/AlibabaIcbuProductIdEncryptResponse.go deleted file mode 100644 index 2f10d3f826..0000000000 --- a/model/icbuproduct/AlibabaIcbuProductIdEncryptResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbuproduct - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ICBU国际站商品加密接口 API返回值 -alibaba.icbu.product.id.encrypt - -ICBU国际站,对混淆的产品ID加密。 -*/ -type AlibabaIcbuProductIdEncryptAPIResponse struct { - model.CommonResponse - AlibabaIcbuProductIdEncryptResponse -} - -// ICBU国际站商品加密接口 成功返回结果 -type AlibabaIcbuProductIdEncryptResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_product_id_encrypt_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 加密id - SecretId string `json:"secret_id,omitempty" xml:"secret_id,omitempty"` -} diff --git a/model/icbuproduct/AlibabaIcbuProductInventoryUpdateAPIRequest.go b/model/icbuproduct/AlibabaIcbuProductInventoryUpdateAPIRequest.go new file mode 100644 index 0000000000..fb1669e757 --- /dev/null +++ b/model/icbuproduct/AlibabaIcbuProductInventoryUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package icbuproduct + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +icbu商品库存更新 API请求 +alibaba.icbu.product.inventory.update + +更新库存信息 +*/ +type AlibabaIcbuProductInventoryUpdateAPIRequest struct { + model.Params + // 更新请求 + _requestParam *ProductInventoryRequest +} + +// 初始化AlibabaIcbuProductInventoryUpdateAPIRequest对象 +func NewAlibabaIcbuProductInventoryUpdateRequest() *AlibabaIcbuProductInventoryUpdateAPIRequest{ + return &AlibabaIcbuProductInventoryUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuProductInventoryUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.product.inventory.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuProductInventoryUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestParam Setter +// 更新请求 +func (r *AlibabaIcbuProductInventoryUpdateAPIRequest) SetRequestParam(_requestParam *ProductInventoryRequest) error { + r._requestParam = _requestParam + r.Set("request_param", _requestParam) + return nil +} + +// RequestParam Getter +func (r AlibabaIcbuProductInventoryUpdateAPIRequest) GetRequestParam() *ProductInventoryRequest { + return r._requestParam +} diff --git a/model/icbuproduct/AlibabaIcbuProductInventoryUpdateAPIResponse.go b/model/icbuproduct/AlibabaIcbuProductInventoryUpdateAPIResponse.go new file mode 100644 index 0000000000..23d4b08ba9 --- /dev/null +++ b/model/icbuproduct/AlibabaIcbuProductInventoryUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package icbuproduct + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +icbu商品库存更新 API返回值 +alibaba.icbu.product.inventory.update + +更新库存信息 +*/ +type AlibabaIcbuProductInventoryUpdateAPIResponse struct { + model.CommonResponse + AlibabaIcbuProductInventoryUpdateAPIResponseModel +} + +// icbu商品库存更新 成功返回结果 +type AlibabaIcbuProductInventoryUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_product_inventory_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Top返回对象 + Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbuproduct/AlibabaIcbuProductInventoryUpdateResponse.go b/model/icbuproduct/AlibabaIcbuProductInventoryUpdateResponse.go deleted file mode 100644 index f4bbcaf2ee..0000000000 --- a/model/icbuproduct/AlibabaIcbuProductInventoryUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbuproduct - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -icbu商品库存更新 API返回值 -alibaba.icbu.product.inventory.update - -更新库存信息 -*/ -type AlibabaIcbuProductInventoryUpdateAPIResponse struct { - model.CommonResponse - AlibabaIcbuProductInventoryUpdateResponse -} - -// icbu商品库存更新 成功返回结果 -type AlibabaIcbuProductInventoryUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_product_inventory_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Top返回对象 - Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icburfq/AlibabaIcbuAnnexUploadAPIRequest.go b/model/icburfq/AlibabaIcbuAnnexUploadAPIRequest.go new file mode 100644 index 0000000000..d29733eea8 --- /dev/null +++ b/model/icburfq/AlibabaIcbuAnnexUploadAPIRequest.go @@ -0,0 +1,80 @@ +package icburfq + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传附件获取附件files_str API请求 +alibaba.icbu.annex.upload + +上传附件获取附件files_str +*/ +type AlibabaIcbuAnnexUploadAPIRequest struct { + model.Params + // 文件名 + _fileName string + // 文件字节流 + _fileInputStreamBytes *model.File + // 来源 + _source string +} + +// 初始化AlibabaIcbuAnnexUploadAPIRequest对象 +func NewAlibabaIcbuAnnexUploadRequest() *AlibabaIcbuAnnexUploadAPIRequest{ + return &AlibabaIcbuAnnexUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuAnnexUploadAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.annex.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuAnnexUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FileName Setter +// 文件名 +func (r *AlibabaIcbuAnnexUploadAPIRequest) SetFileName(_fileName string) error { + r._fileName = _fileName + r.Set("file_name", _fileName) + return nil +} + +// FileName Getter +func (r AlibabaIcbuAnnexUploadAPIRequest) GetFileName() string { + return r._fileName +} +// FileInputStreamBytes Setter +// 文件字节流 +func (r *AlibabaIcbuAnnexUploadAPIRequest) SetFileInputStreamBytes(_fileInputStreamBytes *model.File) error { + r._fileInputStreamBytes = _fileInputStreamBytes + r.Set("file_input_stream_bytes", _fileInputStreamBytes) + return nil +} + +// FileInputStreamBytes Getter +func (r AlibabaIcbuAnnexUploadAPIRequest) GetFileInputStreamBytes() *model.File { + return r._fileInputStreamBytes +} +// Source Setter +// 来源 +func (r *AlibabaIcbuAnnexUploadAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r AlibabaIcbuAnnexUploadAPIRequest) GetSource() string { + return r._source +} diff --git a/model/icburfq/AlibabaIcbuAnnexUploadAPIResponse.go b/model/icburfq/AlibabaIcbuAnnexUploadAPIResponse.go new file mode 100644 index 0000000000..43d86cabf1 --- /dev/null +++ b/model/icburfq/AlibabaIcbuAnnexUploadAPIResponse.go @@ -0,0 +1,33 @@ +package icburfq + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传附件获取附件files_str API返回值 +alibaba.icbu.annex.upload + +上传附件获取附件files_str +*/ +type AlibabaIcbuAnnexUploadAPIResponse struct { + model.CommonResponse + AlibabaIcbuAnnexUploadAPIResponseModel +} + +// 上传附件获取附件files_str 成功返回结果 +type AlibabaIcbuAnnexUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_annex_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回错误码 + ErrType string `json:"err_type,omitempty" xml:"err_type,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 文件file_str + Result string `json:"result,omitempty" xml:"result,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/icburfq/AlibabaIcbuAnnexUploadResponse.go b/model/icburfq/AlibabaIcbuAnnexUploadResponse.go deleted file mode 100644 index fef9e2a4d5..0000000000 --- a/model/icburfq/AlibabaIcbuAnnexUploadResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package icburfq - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传附件获取附件files_str API返回值 -alibaba.icbu.annex.upload - -上传附件获取附件files_str -*/ -type AlibabaIcbuAnnexUploadAPIResponse struct { - model.CommonResponse - AlibabaIcbuAnnexUploadResponse -} - -// 上传附件获取附件files_str 成功返回结果 -type AlibabaIcbuAnnexUploadResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_annex_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回错误码 - ErrType string `json:"err_type,omitempty" xml:"err_type,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 文件file_str - Result string `json:"result,omitempty" xml:"result,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/icburfq/AlibabaIcbuQuotationPostAPIRequest.go b/model/icburfq/AlibabaIcbuQuotationPostAPIRequest.go new file mode 100644 index 0000000000..81ab9c8587 --- /dev/null +++ b/model/icburfq/AlibabaIcbuQuotationPostAPIRequest.go @@ -0,0 +1,66 @@ +package icburfq + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商提交报价 API请求 +alibaba.icbu.quotation.post + +供应商对RFQ进行报价 +*/ +type AlibabaIcbuQuotationPostAPIRequest struct { + model.Params + // 验证 + _md5key string + // 报价DTO + _dto *RfqQuotationRemoteDto +} + +// 初始化AlibabaIcbuQuotationPostAPIRequest对象 +func NewAlibabaIcbuQuotationPostRequest() *AlibabaIcbuQuotationPostAPIRequest{ + return &AlibabaIcbuQuotationPostAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuQuotationPostAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.quotation.post" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuQuotationPostAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Md5key Setter +// 验证 +func (r *AlibabaIcbuQuotationPostAPIRequest) SetMd5key(_md5key string) error { + r._md5key = _md5key + r.Set("md5key", _md5key) + return nil +} + +// Md5key Getter +func (r AlibabaIcbuQuotationPostAPIRequest) GetMd5key() string { + return r._md5key +} +// Dto Setter +// 报价DTO +func (r *AlibabaIcbuQuotationPostAPIRequest) SetDto(_dto *RfqQuotationRemoteDto) error { + r._dto = _dto + r.Set("dto", _dto) + return nil +} + +// Dto Getter +func (r AlibabaIcbuQuotationPostAPIRequest) GetDto() *RfqQuotationRemoteDto { + return r._dto +} diff --git a/model/icburfq/AlibabaIcbuQuotationPostAPIResponse.go b/model/icburfq/AlibabaIcbuQuotationPostAPIResponse.go new file mode 100644 index 0000000000..2b5db0e879 --- /dev/null +++ b/model/icburfq/AlibabaIcbuQuotationPostAPIResponse.go @@ -0,0 +1,27 @@ +package icburfq + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商提交报价 API返回值 +alibaba.icbu.quotation.post + +供应商对RFQ进行报价 +*/ +type AlibabaIcbuQuotationPostAPIResponse struct { + model.CommonResponse + AlibabaIcbuQuotationPostAPIResponseModel +} + +// 供应商提交报价 成功返回结果 +type AlibabaIcbuQuotationPostAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_quotation_post_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求返回结果信息 + Result *RfqRemoteServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icburfq/AlibabaIcbuQuotationPostResponse.go b/model/icburfq/AlibabaIcbuQuotationPostResponse.go deleted file mode 100644 index e529f0fbc1..0000000000 --- a/model/icburfq/AlibabaIcbuQuotationPostResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icburfq - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商提交报价 API返回值 -alibaba.icbu.quotation.post - -供应商对RFQ进行报价 -*/ -type AlibabaIcbuQuotationPostAPIResponse struct { - model.CommonResponse - AlibabaIcbuQuotationPostResponse -} - -// 供应商提交报价 成功返回结果 -type AlibabaIcbuQuotationPostResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_quotation_post_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求返回结果信息 - Result *RfqRemoteServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icburfq/AlibabaIcbuRfqMyequityAPIRequest.go b/model/icburfq/AlibabaIcbuRfqMyequityAPIRequest.go new file mode 100644 index 0000000000..97090e4e92 --- /dev/null +++ b/model/icburfq/AlibabaIcbuRfqMyequityAPIRequest.go @@ -0,0 +1,38 @@ +package icburfq + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +我的权益 API请求 +alibaba.icbu.rfq.myequity + +查询供应商权益接口 +*/ +type AlibabaIcbuRfqMyequityAPIRequest struct { + model.Params +} + +// 初始化AlibabaIcbuRfqMyequityAPIRequest对象 +func NewAlibabaIcbuRfqMyequityRequest() *AlibabaIcbuRfqMyequityAPIRequest{ + return &AlibabaIcbuRfqMyequityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuRfqMyequityAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.rfq.myequity" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuRfqMyequityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/icburfq/AlibabaIcbuRfqMyequityAPIResponse.go b/model/icburfq/AlibabaIcbuRfqMyequityAPIResponse.go new file mode 100644 index 0000000000..2293166f9a --- /dev/null +++ b/model/icburfq/AlibabaIcbuRfqMyequityAPIResponse.go @@ -0,0 +1,27 @@ +package icburfq + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +我的权益 API返回值 +alibaba.icbu.rfq.myequity + +查询供应商权益接口 +*/ +type AlibabaIcbuRfqMyequityAPIResponse struct { + model.CommonResponse + AlibabaIcbuRfqMyequityAPIResponseModel +} + +// 我的权益 成功返回结果 +type AlibabaIcbuRfqMyequityAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_rfq_myequity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求返回结果 + ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` +} diff --git a/model/icburfq/AlibabaIcbuRfqMyequityResponse.go b/model/icburfq/AlibabaIcbuRfqMyequityResponse.go deleted file mode 100644 index fff93f92fe..0000000000 --- a/model/icburfq/AlibabaIcbuRfqMyequityResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icburfq - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -我的权益 API返回值 -alibaba.icbu.rfq.myequity - -查询供应商权益接口 -*/ -type AlibabaIcbuRfqMyequityAPIResponse struct { - model.CommonResponse - AlibabaIcbuRfqMyequityResponse -} - -// 我的权益 成功返回结果 -type AlibabaIcbuRfqMyequityResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_rfq_myequity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求返回结果 - ServiceResult *ServiceResult `json:"service_result,omitempty" xml:"service_result,omitempty"` -} diff --git a/model/icburfq/AlibabaIcbuRfqReadAPIRequest.go b/model/icburfq/AlibabaIcbuRfqReadAPIRequest.go new file mode 100644 index 0000000000..a0709bb19f --- /dev/null +++ b/model/icburfq/AlibabaIcbuRfqReadAPIRequest.go @@ -0,0 +1,52 @@ +package icburfq + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +是否已读RFQ API请求 +alibaba.icbu.rfq.read + +是否已读RFQ +*/ +type AlibabaIcbuRfqReadAPIRequest struct { + model.Params + // 查询RFQID列表 + _rfqIdList []string +} + +// 初始化AlibabaIcbuRfqReadAPIRequest对象 +func NewAlibabaIcbuRfqReadRequest() *AlibabaIcbuRfqReadAPIRequest{ + return &AlibabaIcbuRfqReadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuRfqReadAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.rfq.read" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuRfqReadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RfqIdList Setter +// 查询RFQID列表 +func (r *AlibabaIcbuRfqReadAPIRequest) SetRfqIdList(_rfqIdList []string) error { + r._rfqIdList = _rfqIdList + r.Set("rfq_id_list", _rfqIdList) + return nil +} + +// RfqIdList Getter +func (r AlibabaIcbuRfqReadAPIRequest) GetRfqIdList() []string { + return r._rfqIdList +} diff --git a/model/icburfq/AlibabaIcbuRfqReadAPIResponse.go b/model/icburfq/AlibabaIcbuRfqReadAPIResponse.go new file mode 100644 index 0000000000..5ec3825c1e --- /dev/null +++ b/model/icburfq/AlibabaIcbuRfqReadAPIResponse.go @@ -0,0 +1,27 @@ +package icburfq + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +是否已读RFQ API返回值 +alibaba.icbu.rfq.read + +是否已读RFQ +*/ +type AlibabaIcbuRfqReadAPIResponse struct { + model.CommonResponse + AlibabaIcbuRfqReadAPIResponseModel +} + +// 是否已读RFQ 成功返回结果 +type AlibabaIcbuRfqReadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_rfq_read_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icburfq/AlibabaIcbuRfqReadResponse.go b/model/icburfq/AlibabaIcbuRfqReadResponse.go deleted file mode 100644 index 6a2a1e2e33..0000000000 --- a/model/icburfq/AlibabaIcbuRfqReadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icburfq - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -是否已读RFQ API返回值 -alibaba.icbu.rfq.read - -是否已读RFQ -*/ -type AlibabaIcbuRfqReadAPIResponse struct { - model.CommonResponse - AlibabaIcbuRfqReadResponse -} - -// 是否已读RFQ 成功返回结果 -type AlibabaIcbuRfqReadResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_rfq_read_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icburfq/AlibabaIcbuRfqRecommendAPIRequest.go b/model/icburfq/AlibabaIcbuRfqRecommendAPIRequest.go new file mode 100644 index 0000000000..9498fb9c01 --- /dev/null +++ b/model/icburfq/AlibabaIcbuRfqRecommendAPIRequest.go @@ -0,0 +1,52 @@ +package icburfq + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +rfq推荐 API请求 +alibaba.icbu.rfq.recommend + +rfq推荐 +*/ +type AlibabaIcbuRfqRecommendAPIRequest struct { + model.Params + // 入参数据 + _queryDto *QueryDto +} + +// 初始化AlibabaIcbuRfqRecommendAPIRequest对象 +func NewAlibabaIcbuRfqRecommendRequest() *AlibabaIcbuRfqRecommendAPIRequest{ + return &AlibabaIcbuRfqRecommendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuRfqRecommendAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.rfq.recommend" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuRfqRecommendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryDto Setter +// 入参数据 +func (r *AlibabaIcbuRfqRecommendAPIRequest) SetQueryDto(_queryDto *QueryDto) error { + r._queryDto = _queryDto + r.Set("query_dto", _queryDto) + return nil +} + +// QueryDto Getter +func (r AlibabaIcbuRfqRecommendAPIRequest) GetQueryDto() *QueryDto { + return r._queryDto +} diff --git a/model/icburfq/AlibabaIcbuRfqRecommendAPIResponse.go b/model/icburfq/AlibabaIcbuRfqRecommendAPIResponse.go new file mode 100644 index 0000000000..2861aba4ae --- /dev/null +++ b/model/icburfq/AlibabaIcbuRfqRecommendAPIResponse.go @@ -0,0 +1,27 @@ +package icburfq + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +rfq推荐 API返回值 +alibaba.icbu.rfq.recommend + +rfq推荐 +*/ +type AlibabaIcbuRfqRecommendAPIResponse struct { + model.CommonResponse + AlibabaIcbuRfqRecommendAPIResponseModel +} + +// rfq推荐 成功返回结果 +type AlibabaIcbuRfqRecommendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_rfq_recommend_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icburfq/AlibabaIcbuRfqRecommendResponse.go b/model/icburfq/AlibabaIcbuRfqRecommendResponse.go deleted file mode 100644 index bae93d18e3..0000000000 --- a/model/icburfq/AlibabaIcbuRfqRecommendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icburfq - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -rfq推荐 API返回值 -alibaba.icbu.rfq.recommend - -rfq推荐 -*/ -type AlibabaIcbuRfqRecommendAPIResponse struct { - model.CommonResponse - AlibabaIcbuRfqRecommendResponse -} - -// rfq推荐 成功返回结果 -type AlibabaIcbuRfqRecommendResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_rfq_recommend_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icburfq/AlibabaIcbuRfqSearchAPIRequest.go b/model/icburfq/AlibabaIcbuRfqSearchAPIRequest.go new file mode 100644 index 0000000000..f754686e0f --- /dev/null +++ b/model/icburfq/AlibabaIcbuRfqSearchAPIRequest.go @@ -0,0 +1,66 @@ +package icburfq + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询RFQ API请求 +alibaba.icbu.rfq.search + +用于查询RFQ的信息 +*/ +type AlibabaIcbuRfqSearchAPIRequest struct { + model.Params + // 验证 + _md5key string + // 查询条件 + _cond *RfqRequestSearchCondDto +} + +// 初始化AlibabaIcbuRfqSearchAPIRequest对象 +func NewAlibabaIcbuRfqSearchRequest() *AlibabaIcbuRfqSearchAPIRequest{ + return &AlibabaIcbuRfqSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuRfqSearchAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.rfq.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuRfqSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Md5key Setter +// 验证 +func (r *AlibabaIcbuRfqSearchAPIRequest) SetMd5key(_md5key string) error { + r._md5key = _md5key + r.Set("md5key", _md5key) + return nil +} + +// Md5key Getter +func (r AlibabaIcbuRfqSearchAPIRequest) GetMd5key() string { + return r._md5key +} +// Cond Setter +// 查询条件 +func (r *AlibabaIcbuRfqSearchAPIRequest) SetCond(_cond *RfqRequestSearchCondDto) error { + r._cond = _cond + r.Set("cond", _cond) + return nil +} + +// Cond Getter +func (r AlibabaIcbuRfqSearchAPIRequest) GetCond() *RfqRequestSearchCondDto { + return r._cond +} diff --git a/model/icburfq/AlibabaIcbuRfqSearchAPIResponse.go b/model/icburfq/AlibabaIcbuRfqSearchAPIResponse.go new file mode 100644 index 0000000000..457be9883b --- /dev/null +++ b/model/icburfq/AlibabaIcbuRfqSearchAPIResponse.go @@ -0,0 +1,27 @@ +package icburfq + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询RFQ API返回值 +alibaba.icbu.rfq.search + +用于查询RFQ的信息 +*/ +type AlibabaIcbuRfqSearchAPIResponse struct { + model.CommonResponse + AlibabaIcbuRfqSearchAPIResponseModel +} + +// 查询RFQ 成功返回结果 +type AlibabaIcbuRfqSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_rfq_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回信息结果集 + Result *RfqRemoteServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icburfq/AlibabaIcbuRfqSearchResponse.go b/model/icburfq/AlibabaIcbuRfqSearchResponse.go deleted file mode 100644 index b95bb836bc..0000000000 --- a/model/icburfq/AlibabaIcbuRfqSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icburfq - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询RFQ API返回值 -alibaba.icbu.rfq.search - -用于查询RFQ的信息 -*/ -type AlibabaIcbuRfqSearchAPIResponse struct { - model.CommonResponse - AlibabaIcbuRfqSearchResponse -} - -// 查询RFQ 成功返回结果 -type AlibabaIcbuRfqSearchResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_rfq_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回信息结果集 - Result *RfqRemoteServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icburfq/AlibabaIcbuRfqdetailGetAPIRequest.go b/model/icburfq/AlibabaIcbuRfqdetailGetAPIRequest.go new file mode 100644 index 0000000000..ebe2a739e5 --- /dev/null +++ b/model/icburfq/AlibabaIcbuRfqdetailGetAPIRequest.go @@ -0,0 +1,66 @@ +package icburfq + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取RFQ详情 API请求 +alibaba.icbu.rfqdetail.get + +查看RFQ的详情信息 +*/ +type AlibabaIcbuRfqdetailGetAPIRequest struct { + model.Params + // 验证 + _md5key string + // 查询RFQ详情DTO + _rfqQueryDto *RfqDetailSearchQueryDto +} + +// 初始化AlibabaIcbuRfqdetailGetAPIRequest对象 +func NewAlibabaIcbuRfqdetailGetRequest() *AlibabaIcbuRfqdetailGetAPIRequest{ + return &AlibabaIcbuRfqdetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIcbuRfqdetailGetAPIRequest) GetApiMethodName() string { + return "alibaba.icbu.rfqdetail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIcbuRfqdetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Md5key Setter +// 验证 +func (r *AlibabaIcbuRfqdetailGetAPIRequest) SetMd5key(_md5key string) error { + r._md5key = _md5key + r.Set("md5key", _md5key) + return nil +} + +// Md5key Getter +func (r AlibabaIcbuRfqdetailGetAPIRequest) GetMd5key() string { + return r._md5key +} +// RfqQueryDto Setter +// 查询RFQ详情DTO +func (r *AlibabaIcbuRfqdetailGetAPIRequest) SetRfqQueryDto(_rfqQueryDto *RfqDetailSearchQueryDto) error { + r._rfqQueryDto = _rfqQueryDto + r.Set("rfq_query_dto", _rfqQueryDto) + return nil +} + +// RfqQueryDto Getter +func (r AlibabaIcbuRfqdetailGetAPIRequest) GetRfqQueryDto() *RfqDetailSearchQueryDto { + return r._rfqQueryDto +} diff --git a/model/icburfq/AlibabaIcbuRfqdetailGetAPIResponse.go b/model/icburfq/AlibabaIcbuRfqdetailGetAPIResponse.go new file mode 100644 index 0000000000..3575ebfe3c --- /dev/null +++ b/model/icburfq/AlibabaIcbuRfqdetailGetAPIResponse.go @@ -0,0 +1,27 @@ +package icburfq + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取RFQ详情 API返回值 +alibaba.icbu.rfqdetail.get + +查看RFQ的详情信息 +*/ +type AlibabaIcbuRfqdetailGetAPIResponse struct { + model.CommonResponse + AlibabaIcbuRfqdetailGetAPIResponseModel +} + +// 获取RFQ详情 成功返回结果 +type AlibabaIcbuRfqdetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_icbu_rfqdetail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果集 + Result *RfqRemoteServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icburfq/AlibabaIcbuRfqdetailGetResponse.go b/model/icburfq/AlibabaIcbuRfqdetailGetResponse.go deleted file mode 100644 index 85cf78f527..0000000000 --- a/model/icburfq/AlibabaIcbuRfqdetailGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icburfq - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取RFQ详情 API返回值 -alibaba.icbu.rfqdetail.get - -查看RFQ的详情信息 -*/ -type AlibabaIcbuRfqdetailGetAPIResponse struct { - model.CommonResponse - AlibabaIcbuRfqdetailGetResponse -} - -// 获取RFQ详情 成功返回结果 -type AlibabaIcbuRfqdetailGetResponse struct { - XMLName xml.Name `xml:"alibaba_icbu_rfqdetail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果集 - Result *RfqRemoteServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbuseller/AlibabaSellerCouponAuthVerifyAPIRequest.go b/model/icbuseller/AlibabaSellerCouponAuthVerifyAPIRequest.go new file mode 100644 index 0000000000..e912d75119 --- /dev/null +++ b/model/icbuseller/AlibabaSellerCouponAuthVerifyAPIRequest.go @@ -0,0 +1,66 @@ +package icbuseller + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券校验 API请求 +alibaba.seller.coupon.auth.verify + +优惠券校验 +*/ +type AlibabaSellerCouponAuthVerifyAPIRequest struct { + model.Params + // 服务代码 + _serviceCode string + // 卡券验证码 + _couponSeqNumber string +} + +// 初始化AlibabaSellerCouponAuthVerifyAPIRequest对象 +func NewAlibabaSellerCouponAuthVerifyRequest() *AlibabaSellerCouponAuthVerifyAPIRequest{ + return &AlibabaSellerCouponAuthVerifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSellerCouponAuthVerifyAPIRequest) GetApiMethodName() string { + return "alibaba.seller.coupon.auth.verify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSellerCouponAuthVerifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceCode Setter +// 服务代码 +func (r *AlibabaSellerCouponAuthVerifyAPIRequest) SetServiceCode(_serviceCode string) error { + r._serviceCode = _serviceCode + r.Set("service_code", _serviceCode) + return nil +} + +// ServiceCode Getter +func (r AlibabaSellerCouponAuthVerifyAPIRequest) GetServiceCode() string { + return r._serviceCode +} +// CouponSeqNumber Setter +// 卡券验证码 +func (r *AlibabaSellerCouponAuthVerifyAPIRequest) SetCouponSeqNumber(_couponSeqNumber string) error { + r._couponSeqNumber = _couponSeqNumber + r.Set("coupon_seq_number", _couponSeqNumber) + return nil +} + +// CouponSeqNumber Getter +func (r AlibabaSellerCouponAuthVerifyAPIRequest) GetCouponSeqNumber() string { + return r._couponSeqNumber +} diff --git a/model/icbuseller/AlibabaSellerCouponAuthVerifyAPIResponse.go b/model/icbuseller/AlibabaSellerCouponAuthVerifyAPIResponse.go new file mode 100644 index 0000000000..98487f0b70 --- /dev/null +++ b/model/icbuseller/AlibabaSellerCouponAuthVerifyAPIResponse.go @@ -0,0 +1,27 @@ +package icbuseller + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券校验 API返回值 +alibaba.seller.coupon.auth.verify + +优惠券校验 +*/ +type AlibabaSellerCouponAuthVerifyAPIResponse struct { + model.CommonResponse + AlibabaSellerCouponAuthVerifyAPIResponseModel +} + +// 优惠券校验 成功返回结果 +type AlibabaSellerCouponAuthVerifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_seller_coupon_auth_verify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 获取是否验证成功 + Result *AlibabaSellerCouponAuthVerifyResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbuseller/AlibabaSellerCouponAuthVerifyResponse.go b/model/icbuseller/AlibabaSellerCouponAuthVerifyResponse.go deleted file mode 100644 index 1d743bfa2e..0000000000 --- a/model/icbuseller/AlibabaSellerCouponAuthVerifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbuseller - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -优惠券校验 API返回值 -alibaba.seller.coupon.auth.verify - -优惠券校验 -*/ -type AlibabaSellerCouponAuthVerifyAPIResponse struct { - model.CommonResponse - AlibabaSellerCouponAuthVerifyResponse -} - -// 优惠券校验 成功返回结果 -type AlibabaSellerCouponAuthVerifyResponse struct { - XMLName xml.Name `xml:"alibaba_seller_coupon_auth_verify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 获取是否验证成功 - Result *AlibabaSellerCouponAuthVerifyResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbuseller/AlibabaSellerCouponAuthVerifyResultDto.go b/model/icbuseller/AlibabaSellerCouponAuthVerifyResultDto.go new file mode 100644 index 0000000000..d8e48fcf50 --- /dev/null +++ b/model/icbuseller/AlibabaSellerCouponAuthVerifyResultDto.go @@ -0,0 +1,13 @@ +package icbuseller + +// AlibabaSellerCouponAuthVerifyResultDto +type AlibabaSellerCouponAuthVerifyResultDto struct { + // 是否正常返回 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 是否验证通过 + Dto bool `json:"dto,omitempty" xml:"dto,omitempty"` + // 返回码 + ReturnCode int64 `json:"return_code,omitempty" xml:"return_code,omitempty"` + // 验证失败结果 + ExecDescription string `json:"exec_description,omitempty" xml:"exec_description,omitempty"` +} diff --git a/model/icbuseller/AlibabaSellerVendorOrderDetailAPIRequest.go b/model/icbuseller/AlibabaSellerVendorOrderDetailAPIRequest.go new file mode 100644 index 0000000000..4749afa2b8 --- /dev/null +++ b/model/icbuseller/AlibabaSellerVendorOrderDetailAPIRequest.go @@ -0,0 +1,52 @@ +package icbuseller + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +国际站服务市场订单详情接口 API请求 +alibaba.seller.vendor.order.detail + +国际站服务市场订单列表接口 +*/ +type AlibabaSellerVendorOrderDetailAPIRequest struct { + model.Params + // 订单编号 + _orderNo string +} + +// 初始化AlibabaSellerVendorOrderDetailAPIRequest对象 +func NewAlibabaSellerVendorOrderDetailRequest() *AlibabaSellerVendorOrderDetailAPIRequest{ + return &AlibabaSellerVendorOrderDetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSellerVendorOrderDetailAPIRequest) GetApiMethodName() string { + return "alibaba.seller.vendor.order.detail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSellerVendorOrderDetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderNo Setter +// 订单编号 +func (r *AlibabaSellerVendorOrderDetailAPIRequest) SetOrderNo(_orderNo string) error { + r._orderNo = _orderNo + r.Set("order_no", _orderNo) + return nil +} + +// OrderNo Getter +func (r AlibabaSellerVendorOrderDetailAPIRequest) GetOrderNo() string { + return r._orderNo +} diff --git a/model/icbuseller/AlibabaSellerVendorOrderDetailAPIResponse.go b/model/icbuseller/AlibabaSellerVendorOrderDetailAPIResponse.go new file mode 100644 index 0000000000..9ccb9cda5e --- /dev/null +++ b/model/icbuseller/AlibabaSellerVendorOrderDetailAPIResponse.go @@ -0,0 +1,27 @@ +package icbuseller + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +国际站服务市场订单详情接口 API返回值 +alibaba.seller.vendor.order.detail + +国际站服务市场订单列表接口 +*/ +type AlibabaSellerVendorOrderDetailAPIResponse struct { + model.CommonResponse + AlibabaSellerVendorOrderDetailAPIResponseModel +} + +// 国际站服务市场订单详情接口 成功返回结果 +type AlibabaSellerVendorOrderDetailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_seller_vendor_order_detail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回对象 + Result *AlibabaSellerVendorOrderDetailResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbuseller/AlibabaSellerVendorOrderDetailResponse.go b/model/icbuseller/AlibabaSellerVendorOrderDetailResponse.go deleted file mode 100644 index 4ea9ec105b..0000000000 --- a/model/icbuseller/AlibabaSellerVendorOrderDetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbuseller - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -国际站服务市场订单详情接口 API返回值 -alibaba.seller.vendor.order.detail - -国际站服务市场订单列表接口 -*/ -type AlibabaSellerVendorOrderDetailAPIResponse struct { - model.CommonResponse - AlibabaSellerVendorOrderDetailResponse -} - -// 国际站服务市场订单详情接口 成功返回结果 -type AlibabaSellerVendorOrderDetailResponse struct { - XMLName xml.Name `xml:"alibaba_seller_vendor_order_detail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回对象 - Result *AlibabaSellerVendorOrderDetailResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbuseller/AlibabaSellerVendorOrderDetailResultDto.go b/model/icbuseller/AlibabaSellerVendorOrderDetailResultDto.go new file mode 100644 index 0000000000..f6abb35491 --- /dev/null +++ b/model/icbuseller/AlibabaSellerVendorOrderDetailResultDto.go @@ -0,0 +1,7 @@ +package icbuseller + +// AlibabaSellerVendorOrderDetailResultDto +type AlibabaSellerVendorOrderDetailResultDto struct { + // 接口返回对象 + Dto *OpenTradeDetailDto `json:"dto,omitempty" xml:"dto,omitempty"` +} diff --git a/model/icbuseller/AlibabaSellerVendorOrderListAPIRequest.go b/model/icbuseller/AlibabaSellerVendorOrderListAPIRequest.go new file mode 100644 index 0000000000..e9a8bb4ea1 --- /dev/null +++ b/model/icbuseller/AlibabaSellerVendorOrderListAPIRequest.go @@ -0,0 +1,52 @@ +package icbuseller + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +国际站服务市场订单列表接口 API请求 +alibaba.seller.vendor.order.list + +返回服务商在服务市场的客户订单 +*/ +type AlibabaSellerVendorOrderListAPIRequest struct { + model.Params + // 查询参数 + _queryTradeDto *QueryTradeDto +} + +// 初始化AlibabaSellerVendorOrderListAPIRequest对象 +func NewAlibabaSellerVendorOrderListRequest() *AlibabaSellerVendorOrderListAPIRequest{ + return &AlibabaSellerVendorOrderListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSellerVendorOrderListAPIRequest) GetApiMethodName() string { + return "alibaba.seller.vendor.order.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSellerVendorOrderListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryTradeDto Setter +// 查询参数 +func (r *AlibabaSellerVendorOrderListAPIRequest) SetQueryTradeDto(_queryTradeDto *QueryTradeDto) error { + r._queryTradeDto = _queryTradeDto + r.Set("query_trade_dto", _queryTradeDto) + return nil +} + +// QueryTradeDto Getter +func (r AlibabaSellerVendorOrderListAPIRequest) GetQueryTradeDto() *QueryTradeDto { + return r._queryTradeDto +} diff --git a/model/icbuseller/AlibabaSellerVendorOrderListAPIResponse.go b/model/icbuseller/AlibabaSellerVendorOrderListAPIResponse.go new file mode 100644 index 0000000000..b0ac664f5b --- /dev/null +++ b/model/icbuseller/AlibabaSellerVendorOrderListAPIResponse.go @@ -0,0 +1,27 @@ +package icbuseller + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +国际站服务市场订单列表接口 API返回值 +alibaba.seller.vendor.order.list + +返回服务商在服务市场的客户订单 +*/ +type AlibabaSellerVendorOrderListAPIResponse struct { + model.CommonResponse + AlibabaSellerVendorOrderListAPIResponseModel +} + +// 国际站服务市场订单列表接口 成功返回结果 +type AlibabaSellerVendorOrderListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_seller_vendor_order_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回 + Result *AlibabaSellerVendorOrderListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbuseller/AlibabaSellerVendorOrderListResponse.go b/model/icbuseller/AlibabaSellerVendorOrderListResponse.go deleted file mode 100644 index 7be4670f37..0000000000 --- a/model/icbuseller/AlibabaSellerVendorOrderListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbuseller - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -国际站服务市场订单列表接口 API返回值 -alibaba.seller.vendor.order.list - -返回服务商在服务市场的客户订单 -*/ -type AlibabaSellerVendorOrderListAPIResponse struct { - model.CommonResponse - AlibabaSellerVendorOrderListResponse -} - -// 国际站服务市场订单列表接口 成功返回结果 -type AlibabaSellerVendorOrderListResponse struct { - XMLName xml.Name `xml:"alibaba_seller_vendor_order_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回 - Result *AlibabaSellerVendorOrderListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbuseller/AlibabaSellerVendorServiceProcessAPIRequest.go b/model/icbuseller/AlibabaSellerVendorServiceProcessAPIRequest.go new file mode 100644 index 0000000000..32761d3bad --- /dev/null +++ b/model/icbuseller/AlibabaSellerVendorServiceProcessAPIRequest.go @@ -0,0 +1,52 @@ +package icbuseller + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商客户关联信息 API请求 +alibaba.seller.vendor.service.process + +服务商客户关联信息 +*/ +type AlibabaSellerVendorServiceProcessAPIRequest struct { + model.Params + // order_num + _orderNum string +} + +// 初始化AlibabaSellerVendorServiceProcessAPIRequest对象 +func NewAlibabaSellerVendorServiceProcessRequest() *AlibabaSellerVendorServiceProcessAPIRequest{ + return &AlibabaSellerVendorServiceProcessAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSellerVendorServiceProcessAPIRequest) GetApiMethodName() string { + return "alibaba.seller.vendor.service.process" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSellerVendorServiceProcessAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderNum Setter +// order_num +func (r *AlibabaSellerVendorServiceProcessAPIRequest) SetOrderNum(_orderNum string) error { + r._orderNum = _orderNum + r.Set("order_num", _orderNum) + return nil +} + +// OrderNum Getter +func (r AlibabaSellerVendorServiceProcessAPIRequest) GetOrderNum() string { + return r._orderNum +} diff --git a/model/icbuseller/AlibabaSellerVendorServiceProcessAPIResponse.go b/model/icbuseller/AlibabaSellerVendorServiceProcessAPIResponse.go new file mode 100644 index 0000000000..2d125494d3 --- /dev/null +++ b/model/icbuseller/AlibabaSellerVendorServiceProcessAPIResponse.go @@ -0,0 +1,27 @@ +package icbuseller + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商客户关联信息 API返回值 +alibaba.seller.vendor.service.process + +服务商客户关联信息 +*/ +type AlibabaSellerVendorServiceProcessAPIResponse struct { + model.CommonResponse + AlibabaSellerVendorServiceProcessAPIResponseModel +} + +// 服务商客户关联信息 成功返回结果 +type AlibabaSellerVendorServiceProcessAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_seller_vendor_service_process_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlibabaSellerVendorServiceProcessResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbuseller/AlibabaSellerVendorServiceProcessResponse.go b/model/icbuseller/AlibabaSellerVendorServiceProcessResponse.go deleted file mode 100644 index 633253cf4b..0000000000 --- a/model/icbuseller/AlibabaSellerVendorServiceProcessResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbuseller - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商客户关联信息 API返回值 -alibaba.seller.vendor.service.process - -服务商客户关联信息 -*/ -type AlibabaSellerVendorServiceProcessAPIResponse struct { - model.CommonResponse - AlibabaSellerVendorServiceProcessResponse -} - -// 服务商客户关联信息 成功返回结果 -type AlibabaSellerVendorServiceProcessResponse struct { - XMLName xml.Name `xml:"alibaba_seller_vendor_service_process_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlibabaSellerVendorServiceProcessResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbuseller/AlibabaSellerVendorServiceProcessResultDto.go b/model/icbuseller/AlibabaSellerVendorServiceProcessResultDto.go new file mode 100644 index 0000000000..8fa749567b --- /dev/null +++ b/model/icbuseller/AlibabaSellerVendorServiceProcessResultDto.go @@ -0,0 +1,13 @@ +package icbuseller + +// AlibabaSellerVendorServiceProcessResultDto +type AlibabaSellerVendorServiceProcessResultDto struct { + // 异常说明 + ExecDescription string `json:"exec_description,omitempty" xml:"exec_description,omitempty"` + // 状态码 + ReturnCode int64 `json:"return_code,omitempty" xml:"return_code,omitempty"` + // 返回集合 + List []VendorMerchantRecordBaseDto `json:"list,omitempty" xml:"list>vendor_merchant_record_base_dto,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/icbuseller/AlibabaSellerVendorServiceVendorprocessAPIRequest.go b/model/icbuseller/AlibabaSellerVendorServiceVendorprocessAPIRequest.go new file mode 100644 index 0000000000..986f3f7acc --- /dev/null +++ b/model/icbuseller/AlibabaSellerVendorServiceVendorprocessAPIRequest.go @@ -0,0 +1,52 @@ +package icbuseller + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商客户关联信息 API请求 +alibaba.seller.vendor.service.vendorprocess + +服务商客户关联信息 +*/ +type AlibabaSellerVendorServiceVendorprocessAPIRequest struct { + model.Params + // order_num + _orderNum string +} + +// 初始化AlibabaSellerVendorServiceVendorprocessAPIRequest对象 +func NewAlibabaSellerVendorServiceVendorprocessRequest() *AlibabaSellerVendorServiceVendorprocessAPIRequest{ + return &AlibabaSellerVendorServiceVendorprocessAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSellerVendorServiceVendorprocessAPIRequest) GetApiMethodName() string { + return "alibaba.seller.vendor.service.vendorprocess" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSellerVendorServiceVendorprocessAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderNum Setter +// order_num +func (r *AlibabaSellerVendorServiceVendorprocessAPIRequest) SetOrderNum(_orderNum string) error { + r._orderNum = _orderNum + r.Set("order_num", _orderNum) + return nil +} + +// OrderNum Getter +func (r AlibabaSellerVendorServiceVendorprocessAPIRequest) GetOrderNum() string { + return r._orderNum +} diff --git a/model/icbuseller/AlibabaSellerVendorServiceVendorprocessAPIResponse.go b/model/icbuseller/AlibabaSellerVendorServiceVendorprocessAPIResponse.go new file mode 100644 index 0000000000..af96955f3f --- /dev/null +++ b/model/icbuseller/AlibabaSellerVendorServiceVendorprocessAPIResponse.go @@ -0,0 +1,27 @@ +package icbuseller + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商客户关联信息 API返回值 +alibaba.seller.vendor.service.vendorprocess + +服务商客户关联信息 +*/ +type AlibabaSellerVendorServiceVendorprocessAPIResponse struct { + model.CommonResponse + AlibabaSellerVendorServiceVendorprocessAPIResponseModel +} + +// 服务商客户关联信息 成功返回结果 +type AlibabaSellerVendorServiceVendorprocessAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_seller_vendor_service_vendorprocess_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlibabaSellerVendorServiceVendorprocessResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbuseller/AlibabaSellerVendorServiceVendorprocessResponse.go b/model/icbuseller/AlibabaSellerVendorServiceVendorprocessResponse.go deleted file mode 100644 index efa2e41b83..0000000000 --- a/model/icbuseller/AlibabaSellerVendorServiceVendorprocessResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbuseller - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商客户关联信息 API返回值 -alibaba.seller.vendor.service.vendorprocess - -服务商客户关联信息 -*/ -type AlibabaSellerVendorServiceVendorprocessAPIResponse struct { - model.CommonResponse - AlibabaSellerVendorServiceVendorprocessResponse -} - -// 服务商客户关联信息 成功返回结果 -type AlibabaSellerVendorServiceVendorprocessResponse struct { - XMLName xml.Name `xml:"alibaba_seller_vendor_service_vendorprocess_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlibabaSellerVendorServiceVendorprocessResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbuseller/AlibabaSellerVendorServiceVendorprocessResultDto.go b/model/icbuseller/AlibabaSellerVendorServiceVendorprocessResultDto.go new file mode 100644 index 0000000000..7a37183c43 --- /dev/null +++ b/model/icbuseller/AlibabaSellerVendorServiceVendorprocessResultDto.go @@ -0,0 +1,13 @@ +package icbuseller + +// AlibabaSellerVendorServiceVendorprocessResultDto +type AlibabaSellerVendorServiceVendorprocessResultDto struct { + // 异常说明 + ExecDescription string `json:"exec_description,omitempty" xml:"exec_description,omitempty"` + // 状态码 + ReturnCode int64 `json:"return_code,omitempty" xml:"return_code,omitempty"` + // 返回集合 + List []VendorMerchantRecordBaseDto `json:"list,omitempty" xml:"list>vendor_merchant_record_base_dto,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/icbushowcase/AlibabaScbpShowcaseAddproductAPIRequest.go b/model/icbushowcase/AlibabaScbpShowcaseAddproductAPIRequest.go new file mode 100644 index 0000000000..abc4fdf8a1 --- /dev/null +++ b/model/icbushowcase/AlibabaScbpShowcaseAddproductAPIRequest.go @@ -0,0 +1,52 @@ +package icbushowcase + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量添加橱窗商品 API请求 +alibaba.scbp.showcase.addproduct + +批量添加商品到橱窗 +*/ +type AlibabaScbpShowcaseAddproductAPIRequest struct { + model.Params + // 需要添加的产品ids + _productIdList []int64 +} + +// 初始化AlibabaScbpShowcaseAddproductAPIRequest对象 +func NewAlibabaScbpShowcaseAddproductRequest() *AlibabaScbpShowcaseAddproductAPIRequest{ + return &AlibabaScbpShowcaseAddproductAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpShowcaseAddproductAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.showcase.addproduct" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpShowcaseAddproductAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductIdList Setter +// 需要添加的产品ids +func (r *AlibabaScbpShowcaseAddproductAPIRequest) SetProductIdList(_productIdList []int64) error { + r._productIdList = _productIdList + r.Set("product_id_list", _productIdList) + return nil +} + +// ProductIdList Getter +func (r AlibabaScbpShowcaseAddproductAPIRequest) GetProductIdList() []int64 { + return r._productIdList +} diff --git a/model/icbushowcase/AlibabaScbpShowcaseAddproductAPIResponse.go b/model/icbushowcase/AlibabaScbpShowcaseAddproductAPIResponse.go new file mode 100644 index 0000000000..c2179628fe --- /dev/null +++ b/model/icbushowcase/AlibabaScbpShowcaseAddproductAPIResponse.go @@ -0,0 +1,27 @@ +package icbushowcase + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量添加橱窗商品 API返回值 +alibaba.scbp.showcase.addproduct + +批量添加商品到橱窗 +*/ +type AlibabaScbpShowcaseAddproductAPIResponse struct { + model.CommonResponse + AlibabaScbpShowcaseAddproductAPIResponseModel +} + +// 批量添加橱窗商品 成功返回结果 +type AlibabaScbpShowcaseAddproductAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_showcase_addproduct_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否添加成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbushowcase/AlibabaScbpShowcaseAddproductResponse.go b/model/icbushowcase/AlibabaScbpShowcaseAddproductResponse.go deleted file mode 100644 index 921a730871..0000000000 --- a/model/icbushowcase/AlibabaScbpShowcaseAddproductResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbushowcase - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量添加橱窗商品 API返回值 -alibaba.scbp.showcase.addproduct - -批量添加商品到橱窗 -*/ -type AlibabaScbpShowcaseAddproductAPIResponse struct { - model.CommonResponse - AlibabaScbpShowcaseAddproductResponse -} - -// 批量添加橱窗商品 成功返回结果 -type AlibabaScbpShowcaseAddproductResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_showcase_addproduct_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否添加成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbushowcase/AlibabaScbpShowcaseDeleteproductAPIRequest.go b/model/icbushowcase/AlibabaScbpShowcaseDeleteproductAPIRequest.go new file mode 100644 index 0000000000..14d85b1b81 --- /dev/null +++ b/model/icbushowcase/AlibabaScbpShowcaseDeleteproductAPIRequest.go @@ -0,0 +1,52 @@ +package icbushowcase + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量删除橱窗商品 API请求 +alibaba.scbp.showcase.deleteproduct + +批量删除橱窗商品 +*/ +type AlibabaScbpShowcaseDeleteproductAPIRequest struct { + model.Params + // 橱窗idList + _windowIdList []int64 +} + +// 初始化AlibabaScbpShowcaseDeleteproductAPIRequest对象 +func NewAlibabaScbpShowcaseDeleteproductRequest() *AlibabaScbpShowcaseDeleteproductAPIRequest{ + return &AlibabaScbpShowcaseDeleteproductAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpShowcaseDeleteproductAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.showcase.deleteproduct" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpShowcaseDeleteproductAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WindowIdList Setter +// 橱窗idList +func (r *AlibabaScbpShowcaseDeleteproductAPIRequest) SetWindowIdList(_windowIdList []int64) error { + r._windowIdList = _windowIdList + r.Set("window_id_list", _windowIdList) + return nil +} + +// WindowIdList Getter +func (r AlibabaScbpShowcaseDeleteproductAPIRequest) GetWindowIdList() []int64 { + return r._windowIdList +} diff --git a/model/icbushowcase/AlibabaScbpShowcaseDeleteproductAPIResponse.go b/model/icbushowcase/AlibabaScbpShowcaseDeleteproductAPIResponse.go new file mode 100644 index 0000000000..9fa79e3301 --- /dev/null +++ b/model/icbushowcase/AlibabaScbpShowcaseDeleteproductAPIResponse.go @@ -0,0 +1,27 @@ +package icbushowcase + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量删除橱窗商品 API返回值 +alibaba.scbp.showcase.deleteproduct + +批量删除橱窗商品 +*/ +type AlibabaScbpShowcaseDeleteproductAPIResponse struct { + model.CommonResponse + AlibabaScbpShowcaseDeleteproductAPIResponseModel +} + +// 批量删除橱窗商品 成功返回结果 +type AlibabaScbpShowcaseDeleteproductAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_showcase_deleteproduct_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbushowcase/AlibabaScbpShowcaseDeleteproductResponse.go b/model/icbushowcase/AlibabaScbpShowcaseDeleteproductResponse.go deleted file mode 100644 index 417d6d9827..0000000000 --- a/model/icbushowcase/AlibabaScbpShowcaseDeleteproductResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbushowcase - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量删除橱窗商品 API返回值 -alibaba.scbp.showcase.deleteproduct - -批量删除橱窗商品 -*/ -type AlibabaScbpShowcaseDeleteproductAPIResponse struct { - model.CommonResponse - AlibabaScbpShowcaseDeleteproductResponse -} - -// 批量删除橱窗商品 成功返回结果 -type AlibabaScbpShowcaseDeleteproductResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_showcase_deleteproduct_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbushowcase/AlibabaScbpShowcaseListAPIRequest.go b/model/icbushowcase/AlibabaScbpShowcaseListAPIRequest.go new file mode 100644 index 0000000000..b7b291383a --- /dev/null +++ b/model/icbushowcase/AlibabaScbpShowcaseListAPIRequest.go @@ -0,0 +1,66 @@ +package icbushowcase + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +橱窗查询 API请求 +alibaba.scbp.showcase.list + +橱窗查询 +*/ +type AlibabaScbpShowcaseListAPIRequest struct { + model.Params + // 每页展示个数 + _perPageSize int64 + // 页码 + _toPage int64 +} + +// 初始化AlibabaScbpShowcaseListAPIRequest对象 +func NewAlibabaScbpShowcaseListRequest() *AlibabaScbpShowcaseListAPIRequest{ + return &AlibabaScbpShowcaseListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpShowcaseListAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.showcase.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpShowcaseListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PerPageSize Setter +// 每页展示个数 +func (r *AlibabaScbpShowcaseListAPIRequest) SetPerPageSize(_perPageSize int64) error { + r._perPageSize = _perPageSize + r.Set("per_page_size", _perPageSize) + return nil +} + +// PerPageSize Getter +func (r AlibabaScbpShowcaseListAPIRequest) GetPerPageSize() int64 { + return r._perPageSize +} +// ToPage Setter +// 页码 +func (r *AlibabaScbpShowcaseListAPIRequest) SetToPage(_toPage int64) error { + r._toPage = _toPage + r.Set("to_page", _toPage) + return nil +} + +// ToPage Getter +func (r AlibabaScbpShowcaseListAPIRequest) GetToPage() int64 { + return r._toPage +} diff --git a/model/icbushowcase/AlibabaScbpShowcaseListAPIResponse.go b/model/icbushowcase/AlibabaScbpShowcaseListAPIResponse.go new file mode 100644 index 0000000000..34e1281dbf --- /dev/null +++ b/model/icbushowcase/AlibabaScbpShowcaseListAPIResponse.go @@ -0,0 +1,27 @@ +package icbushowcase + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +橱窗查询 API返回值 +alibaba.scbp.showcase.list + +橱窗查询 +*/ +type AlibabaScbpShowcaseListAPIResponse struct { + model.CommonResponse + AlibabaScbpShowcaseListAPIResponseModel +} + +// 橱窗查询 成功返回结果 +type AlibabaScbpShowcaseListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_showcase_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Results []Showcase `json:"results,omitempty" xml:"results>showcase,omitempty"` +} diff --git a/model/icbushowcase/AlibabaScbpShowcaseListResponse.go b/model/icbushowcase/AlibabaScbpShowcaseListResponse.go deleted file mode 100644 index 061204adaa..0000000000 --- a/model/icbushowcase/AlibabaScbpShowcaseListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbushowcase - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -橱窗查询 API返回值 -alibaba.scbp.showcase.list - -橱窗查询 -*/ -type AlibabaScbpShowcaseListAPIResponse struct { - model.CommonResponse - AlibabaScbpShowcaseListResponse -} - -// 橱窗查询 成功返回结果 -type AlibabaScbpShowcaseListResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_showcase_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Results []Showcase `json:"results,omitempty" xml:"results>showcase,omitempty"` -} diff --git a/model/icbushowcase/AlibabaScbpShowcaseSortAPIRequest.go b/model/icbushowcase/AlibabaScbpShowcaseSortAPIRequest.go new file mode 100644 index 0000000000..81eb039ca9 --- /dev/null +++ b/model/icbushowcase/AlibabaScbpShowcaseSortAPIRequest.go @@ -0,0 +1,80 @@ +package icbushowcase + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +橱窗顺序变更 API请求 +alibaba.scbp.showcase.sort + +橱窗顺序变更 +*/ +type AlibabaScbpShowcaseSortAPIRequest struct { + model.Params + // 要移动的橱窗id + _windowId int64 + // 当前位置(从1开始) + _sourceOrder int64 + // 目标位置(从1开始) + _targetOrder int64 +} + +// 初始化AlibabaScbpShowcaseSortAPIRequest对象 +func NewAlibabaScbpShowcaseSortRequest() *AlibabaScbpShowcaseSortAPIRequest{ + return &AlibabaScbpShowcaseSortAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpShowcaseSortAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.showcase.sort" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpShowcaseSortAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WindowId Setter +// 要移动的橱窗id +func (r *AlibabaScbpShowcaseSortAPIRequest) SetWindowId(_windowId int64) error { + r._windowId = _windowId + r.Set("window_id", _windowId) + return nil +} + +// WindowId Getter +func (r AlibabaScbpShowcaseSortAPIRequest) GetWindowId() int64 { + return r._windowId +} +// SourceOrder Setter +// 当前位置(从1开始) +func (r *AlibabaScbpShowcaseSortAPIRequest) SetSourceOrder(_sourceOrder int64) error { + r._sourceOrder = _sourceOrder + r.Set("source_order", _sourceOrder) + return nil +} + +// SourceOrder Getter +func (r AlibabaScbpShowcaseSortAPIRequest) GetSourceOrder() int64 { + return r._sourceOrder +} +// TargetOrder Setter +// 目标位置(从1开始) +func (r *AlibabaScbpShowcaseSortAPIRequest) SetTargetOrder(_targetOrder int64) error { + r._targetOrder = _targetOrder + r.Set("target_order", _targetOrder) + return nil +} + +// TargetOrder Getter +func (r AlibabaScbpShowcaseSortAPIRequest) GetTargetOrder() int64 { + return r._targetOrder +} diff --git a/model/icbushowcase/AlibabaScbpShowcaseSortAPIResponse.go b/model/icbushowcase/AlibabaScbpShowcaseSortAPIResponse.go new file mode 100644 index 0000000000..72e670766d --- /dev/null +++ b/model/icbushowcase/AlibabaScbpShowcaseSortAPIResponse.go @@ -0,0 +1,27 @@ +package icbushowcase + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +橱窗顺序变更 API返回值 +alibaba.scbp.showcase.sort + +橱窗顺序变更 +*/ +type AlibabaScbpShowcaseSortAPIResponse struct { + model.CommonResponse + AlibabaScbpShowcaseSortAPIResponseModel +} + +// 橱窗顺序变更 成功返回结果 +type AlibabaScbpShowcaseSortAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_showcase_sort_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否更新成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbushowcase/AlibabaScbpShowcaseSortResponse.go b/model/icbushowcase/AlibabaScbpShowcaseSortResponse.go deleted file mode 100644 index b982437f25..0000000000 --- a/model/icbushowcase/AlibabaScbpShowcaseSortResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbushowcase - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -橱窗顺序变更 API返回值 -alibaba.scbp.showcase.sort - -橱窗顺序变更 -*/ -type AlibabaScbpShowcaseSortAPIResponse struct { - model.CommonResponse - AlibabaScbpShowcaseSortResponse -} - -// 橱窗顺序变更 成功返回结果 -type AlibabaScbpShowcaseSortResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_showcase_sort_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否更新成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/icbushowcase/AlibabaScbpShowcaseStatusAPIRequest.go b/model/icbushowcase/AlibabaScbpShowcaseStatusAPIRequest.go new file mode 100644 index 0000000000..4e55fb5c08 --- /dev/null +++ b/model/icbushowcase/AlibabaScbpShowcaseStatusAPIRequest.go @@ -0,0 +1,38 @@ +package icbushowcase + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +橱窗状态 API请求 +alibaba.scbp.showcase.status + +查询橱窗状态,如总数、可用数量 +*/ +type AlibabaScbpShowcaseStatusAPIRequest struct { + model.Params +} + +// 初始化AlibabaScbpShowcaseStatusAPIRequest对象 +func NewAlibabaScbpShowcaseStatusRequest() *AlibabaScbpShowcaseStatusAPIRequest{ + return &AlibabaScbpShowcaseStatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpShowcaseStatusAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.showcase.status" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpShowcaseStatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/icbushowcase/AlibabaScbpShowcaseStatusAPIResponse.go b/model/icbushowcase/AlibabaScbpShowcaseStatusAPIResponse.go new file mode 100644 index 0000000000..a3e2f51b08 --- /dev/null +++ b/model/icbushowcase/AlibabaScbpShowcaseStatusAPIResponse.go @@ -0,0 +1,29 @@ +package icbushowcase + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +橱窗状态 API返回值 +alibaba.scbp.showcase.status + +查询橱窗状态,如总数、可用数量 +*/ +type AlibabaScbpShowcaseStatusAPIResponse struct { + model.CommonResponse + AlibabaScbpShowcaseStatusAPIResponseModel +} + +// 橱窗状态 成功返回结果 +type AlibabaScbpShowcaseStatusAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_showcase_status_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 全部橱窗数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 当前已用的橱窗数 + CurrentCount int64 `json:"current_count,omitempty" xml:"current_count,omitempty"` +} diff --git a/model/icbushowcase/AlibabaScbpShowcaseStatusResponse.go b/model/icbushowcase/AlibabaScbpShowcaseStatusResponse.go deleted file mode 100644 index 26f54020a0..0000000000 --- a/model/icbushowcase/AlibabaScbpShowcaseStatusResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package icbushowcase - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -橱窗状态 API返回值 -alibaba.scbp.showcase.status - -查询橱窗状态,如总数、可用数量 -*/ -type AlibabaScbpShowcaseStatusAPIResponse struct { - model.CommonResponse - AlibabaScbpShowcaseStatusResponse -} - -// 橱窗状态 成功返回结果 -type AlibabaScbpShowcaseStatusResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_showcase_status_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 全部橱窗数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 当前已用的橱窗数 - CurrentCount int64 `json:"current_count,omitempty" xml:"current_count,omitempty"` -} diff --git a/model/icbushowcase/AlibabaScbpShowcaseUpdateproductAPIRequest.go b/model/icbushowcase/AlibabaScbpShowcaseUpdateproductAPIRequest.go new file mode 100644 index 0000000000..126d3969b8 --- /dev/null +++ b/model/icbushowcase/AlibabaScbpShowcaseUpdateproductAPIRequest.go @@ -0,0 +1,66 @@ +package icbushowcase + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +替换橱窗商品 API请求 +alibaba.scbp.showcase.updateproduct + +替换橱窗商品 +*/ +type AlibabaScbpShowcaseUpdateproductAPIRequest struct { + model.Params + // 橱窗id + _windowId int64 + // 新的商品id + _newProductId int64 +} + +// 初始化AlibabaScbpShowcaseUpdateproductAPIRequest对象 +func NewAlibabaScbpShowcaseUpdateproductRequest() *AlibabaScbpShowcaseUpdateproductAPIRequest{ + return &AlibabaScbpShowcaseUpdateproductAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpShowcaseUpdateproductAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.showcase.updateproduct" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpShowcaseUpdateproductAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WindowId Setter +// 橱窗id +func (r *AlibabaScbpShowcaseUpdateproductAPIRequest) SetWindowId(_windowId int64) error { + r._windowId = _windowId + r.Set("window_id", _windowId) + return nil +} + +// WindowId Getter +func (r AlibabaScbpShowcaseUpdateproductAPIRequest) GetWindowId() int64 { + return r._windowId +} +// NewProductId Setter +// 新的商品id +func (r *AlibabaScbpShowcaseUpdateproductAPIRequest) SetNewProductId(_newProductId int64) error { + r._newProductId = _newProductId + r.Set("new_product_id", _newProductId) + return nil +} + +// NewProductId Getter +func (r AlibabaScbpShowcaseUpdateproductAPIRequest) GetNewProductId() int64 { + return r._newProductId +} diff --git a/model/icbushowcase/AlibabaScbpShowcaseUpdateproductAPIResponse.go b/model/icbushowcase/AlibabaScbpShowcaseUpdateproductAPIResponse.go new file mode 100644 index 0000000000..e5f8a12283 --- /dev/null +++ b/model/icbushowcase/AlibabaScbpShowcaseUpdateproductAPIResponse.go @@ -0,0 +1,27 @@ +package icbushowcase + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +替换橱窗商品 API返回值 +alibaba.scbp.showcase.updateproduct + +替换橱窗商品 +*/ +type AlibabaScbpShowcaseUpdateproductAPIResponse struct { + model.CommonResponse + AlibabaScbpShowcaseUpdateproductAPIResponseModel +} + +// 替换橱窗商品 成功返回结果 +type AlibabaScbpShowcaseUpdateproductAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_showcase_updateproduct_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否修改成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/icbushowcase/AlibabaScbpShowcaseUpdateproductResponse.go b/model/icbushowcase/AlibabaScbpShowcaseUpdateproductResponse.go deleted file mode 100644 index 0d7a11fcb4..0000000000 --- a/model/icbushowcase/AlibabaScbpShowcaseUpdateproductResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package icbushowcase - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -替换橱窗商品 API返回值 -alibaba.scbp.showcase.updateproduct - -替换橱窗商品 -*/ -type AlibabaScbpShowcaseUpdateproductAPIResponse struct { - model.CommonResponse - AlibabaScbpShowcaseUpdateproductResponse -} - -// 替换橱窗商品 成功返回结果 -type AlibabaScbpShowcaseUpdateproductResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_showcase_updateproduct_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否修改成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleAgreementPayAPIRequest.go b/model/idle/AlibabaIdleAgreementPayAPIRequest.go new file mode 100644 index 0000000000..95680a2eb1 --- /dev/null +++ b/model/idle/AlibabaIdleAgreementPayAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼平台商户代扣 API请求 +alibaba.idle.agreement.pay + +闲鱼平台代扣能力:用户和闲鱼签约代扣协议 服务商通过直付通产品挂载成为闲鱼二级商户 来完成用户和服务商的结算 +*/ +type AlibabaIdleAgreementPayAPIRequest struct { + model.Params + // 协议代扣参数 + _agreementPayParam *AgreementPayParam +} + +// 初始化AlibabaIdleAgreementPayAPIRequest对象 +func NewAlibabaIdleAgreementPayRequest() *AlibabaIdleAgreementPayAPIRequest{ + return &AlibabaIdleAgreementPayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleAgreementPayAPIRequest) GetApiMethodName() string { + return "alibaba.idle.agreement.pay" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleAgreementPayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgreementPayParam Setter +// 协议代扣参数 +func (r *AlibabaIdleAgreementPayAPIRequest) SetAgreementPayParam(_agreementPayParam *AgreementPayParam) error { + r._agreementPayParam = _agreementPayParam + r.Set("agreement_pay_param", _agreementPayParam) + return nil +} + +// AgreementPayParam Getter +func (r AlibabaIdleAgreementPayAPIRequest) GetAgreementPayParam() *AgreementPayParam { + return r._agreementPayParam +} diff --git a/model/idle/AlibabaIdleAgreementPayAPIResponse.go b/model/idle/AlibabaIdleAgreementPayAPIResponse.go new file mode 100644 index 0000000000..30ff51db10 --- /dev/null +++ b/model/idle/AlibabaIdleAgreementPayAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼平台商户代扣 API返回值 +alibaba.idle.agreement.pay + +闲鱼平台代扣能力:用户和闲鱼签约代扣协议 服务商通过直付通产品挂载成为闲鱼二级商户 来完成用户和服务商的结算 +*/ +type AlibabaIdleAgreementPayAPIResponse struct { + model.CommonResponse + AlibabaIdleAgreementPayAPIResponseModel +} + +// 闲鱼平台商户代扣 成功返回结果 +type AlibabaIdleAgreementPayAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_agreement_pay_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaIdleAgreementPayResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleAgreementPayQueryAPIRequest.go b/model/idle/AlibabaIdleAgreementPayQueryAPIRequest.go new file mode 100644 index 0000000000..b741d2b37a --- /dev/null +++ b/model/idle/AlibabaIdleAgreementPayQueryAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +代扣详情查询 API请求 +alibaba.idle.agreement.pay.query + +查询代扣结果 +*/ +type AlibabaIdleAgreementPayQueryAPIRequest struct { + model.Params + // 入参 + _param *AgreementPayBillQueryParam +} + +// 初始化AlibabaIdleAgreementPayQueryAPIRequest对象 +func NewAlibabaIdleAgreementPayQueryRequest() *AlibabaIdleAgreementPayQueryAPIRequest{ + return &AlibabaIdleAgreementPayQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleAgreementPayQueryAPIRequest) GetApiMethodName() string { + return "alibaba.idle.agreement.pay.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleAgreementPayQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *AlibabaIdleAgreementPayQueryAPIRequest) SetParam(_param *AgreementPayBillQueryParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaIdleAgreementPayQueryAPIRequest) GetParam() *AgreementPayBillQueryParam { + return r._param +} diff --git a/model/idle/AlibabaIdleAgreementPayQueryAPIResponse.go b/model/idle/AlibabaIdleAgreementPayQueryAPIResponse.go new file mode 100644 index 0000000000..36ac5f96ef --- /dev/null +++ b/model/idle/AlibabaIdleAgreementPayQueryAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +代扣详情查询 API返回值 +alibaba.idle.agreement.pay.query + +查询代扣结果 +*/ +type AlibabaIdleAgreementPayQueryAPIResponse struct { + model.CommonResponse + AlibabaIdleAgreementPayQueryAPIResponseModel +} + +// 代扣详情查询 成功返回结果 +type AlibabaIdleAgreementPayQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_agreement_pay_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回 + Result *AlibabaIdleAgreementPayQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleAgreementPayQueryResponse.go b/model/idle/AlibabaIdleAgreementPayQueryResponse.go deleted file mode 100644 index cc39d23355..0000000000 --- a/model/idle/AlibabaIdleAgreementPayQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -代扣详情查询 API返回值 -alibaba.idle.agreement.pay.query - -查询代扣结果 -*/ -type AlibabaIdleAgreementPayQueryAPIResponse struct { - model.CommonResponse - AlibabaIdleAgreementPayQueryResponse -} - -// 代扣详情查询 成功返回结果 -type AlibabaIdleAgreementPayQueryResponse struct { - XMLName xml.Name `xml:"alibaba_idle_agreement_pay_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回 - Result *AlibabaIdleAgreementPayQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleAgreementPayResponse.go b/model/idle/AlibabaIdleAgreementPayResponse.go deleted file mode 100644 index 32ea0a9b03..0000000000 --- a/model/idle/AlibabaIdleAgreementPayResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼平台商户代扣 API返回值 -alibaba.idle.agreement.pay - -闲鱼平台代扣能力:用户和闲鱼签约代扣协议 服务商通过直付通产品挂载成为闲鱼二级商户 来完成用户和服务商的结算 -*/ -type AlibabaIdleAgreementPayAPIResponse struct { - model.CommonResponse - AlibabaIdleAgreementPayResponse -} - -// 闲鱼平台商户代扣 成功返回结果 -type AlibabaIdleAgreementPayResponse struct { - XMLName xml.Name `xml:"alibaba_idle_agreement_pay_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaIdleAgreementPayResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleAppraiseOrderPerformAPIRequest.go b/model/idle/AlibabaIdleAppraiseOrderPerformAPIRequest.go new file mode 100644 index 0000000000..1295b48d36 --- /dev/null +++ b/model/idle/AlibabaIdleAppraiseOrderPerformAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼验货担保服务商订单履约V1 API请求 +alibaba.idle.appraise.order.perform + +闲鱼验货担保业务中,外部服务商作为鉴定方 需要驱动交易节点变化 +*/ +type AlibabaIdleAppraiseOrderPerformAPIRequest struct { + model.Params + // AppraiseOrderSynDto + _appraiseOrderSynDto *AppraiseOrderSynDto +} + +// 初始化AlibabaIdleAppraiseOrderPerformAPIRequest对象 +func NewAlibabaIdleAppraiseOrderPerformRequest() *AlibabaIdleAppraiseOrderPerformAPIRequest{ + return &AlibabaIdleAppraiseOrderPerformAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleAppraiseOrderPerformAPIRequest) GetApiMethodName() string { + return "alibaba.idle.appraise.order.perform" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleAppraiseOrderPerformAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppraiseOrderSynDto Setter +// AppraiseOrderSynDto +func (r *AlibabaIdleAppraiseOrderPerformAPIRequest) SetAppraiseOrderSynDto(_appraiseOrderSynDto *AppraiseOrderSynDto) error { + r._appraiseOrderSynDto = _appraiseOrderSynDto + r.Set("appraise_order_syn_dto", _appraiseOrderSynDto) + return nil +} + +// AppraiseOrderSynDto Getter +func (r AlibabaIdleAppraiseOrderPerformAPIRequest) GetAppraiseOrderSynDto() *AppraiseOrderSynDto { + return r._appraiseOrderSynDto +} diff --git a/model/idle/AlibabaIdleAppraiseOrderPerformAPIResponse.go b/model/idle/AlibabaIdleAppraiseOrderPerformAPIResponse.go new file mode 100644 index 0000000000..2b358ba1d6 --- /dev/null +++ b/model/idle/AlibabaIdleAppraiseOrderPerformAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼验货担保服务商订单履约V1 API返回值 +alibaba.idle.appraise.order.perform + +闲鱼验货担保业务中,外部服务商作为鉴定方 需要驱动交易节点变化 +*/ +type AlibabaIdleAppraiseOrderPerformAPIResponse struct { + model.CommonResponse + AlibabaIdleAppraiseOrderPerformAPIResponseModel +} + +// 闲鱼验货担保服务商订单履约V1 成功返回结果 +type AlibabaIdleAppraiseOrderPerformAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_appraise_order_perform_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaIdleAppraiseOrderPerformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleAppraiseOrderPerformResponse.go b/model/idle/AlibabaIdleAppraiseOrderPerformResponse.go deleted file mode 100644 index 6aacfb5e67..0000000000 --- a/model/idle/AlibabaIdleAppraiseOrderPerformResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼验货担保服务商订单履约V1 API返回值 -alibaba.idle.appraise.order.perform - -闲鱼验货担保业务中,外部服务商作为鉴定方 需要驱动交易节点变化 -*/ -type AlibabaIdleAppraiseOrderPerformAPIResponse struct { - model.CommonResponse - AlibabaIdleAppraiseOrderPerformResponse -} - -// 闲鱼验货担保服务商订单履约V1 成功返回结果 -type AlibabaIdleAppraiseOrderPerformResponse struct { - XMLName xml.Name `xml:"alibaba_idle_appraise_order_perform_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaIdleAppraiseOrderPerformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleAppraiseOrderQueryAPIRequest.go b/model/idle/AlibabaIdleAppraiseOrderQueryAPIRequest.go new file mode 100644 index 0000000000..b8ca817648 --- /dev/null +++ b/model/idle/AlibabaIdleAppraiseOrderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼验货担保订单详情查询V1 API请求 +alibaba.idle.appraise.order.query + +鉴定商调用该接口获取订单状态 +*/ +type AlibabaIdleAppraiseOrderQueryAPIRequest struct { + model.Params + // orderId + _bizOrderId int64 +} + +// 初始化AlibabaIdleAppraiseOrderQueryAPIRequest对象 +func NewAlibabaIdleAppraiseOrderQueryRequest() *AlibabaIdleAppraiseOrderQueryAPIRequest{ + return &AlibabaIdleAppraiseOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleAppraiseOrderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.idle.appraise.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleAppraiseOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizOrderId Setter +// orderId +func (r *AlibabaIdleAppraiseOrderQueryAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r AlibabaIdleAppraiseOrderQueryAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} diff --git a/model/idle/AlibabaIdleAppraiseOrderQueryAPIResponse.go b/model/idle/AlibabaIdleAppraiseOrderQueryAPIResponse.go new file mode 100644 index 0000000000..a276fdacd9 --- /dev/null +++ b/model/idle/AlibabaIdleAppraiseOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼验货担保订单详情查询V1 API返回值 +alibaba.idle.appraise.order.query + +鉴定商调用该接口获取订单状态 +*/ +type AlibabaIdleAppraiseOrderQueryAPIResponse struct { + model.CommonResponse + AlibabaIdleAppraiseOrderQueryAPIResponseModel +} + +// 闲鱼验货担保订单详情查询V1 成功返回结果 +type AlibabaIdleAppraiseOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_appraise_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaIdleAppraiseOrderQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleAppraiseOrderQueryResponse.go b/model/idle/AlibabaIdleAppraiseOrderQueryResponse.go deleted file mode 100644 index f8f9426d4d..0000000000 --- a/model/idle/AlibabaIdleAppraiseOrderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼验货担保订单详情查询V1 API返回值 -alibaba.idle.appraise.order.query - -鉴定商调用该接口获取订单状态 -*/ -type AlibabaIdleAppraiseOrderQueryAPIResponse struct { - model.CommonResponse - AlibabaIdleAppraiseOrderQueryResponse -} - -// 闲鱼验货担保订单详情查询V1 成功返回结果 -type AlibabaIdleAppraiseOrderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_idle_appraise_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaIdleAppraiseOrderQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleAppraiseSpuRegisterModifyAPIRequest.go b/model/idle/AlibabaIdleAppraiseSpuRegisterModifyAPIRequest.go new file mode 100644 index 0000000000..c750a64074 --- /dev/null +++ b/model/idle/AlibabaIdleAppraiseSpuRegisterModifyAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +验货宝服务商spu挂载 API请求 +alibaba.idle.appraise.spu.register.modify + +闲鱼接收回收商spu模板挂载信息 +*/ +type AlibabaIdleAppraiseSpuRegisterModifyAPIRequest struct { + model.Params + // 入参 + _idleAppraiseSpuRegister4TopDto *IdleAppraiseSpuRegister4TopDto +} + +// 初始化AlibabaIdleAppraiseSpuRegisterModifyAPIRequest对象 +func NewAlibabaIdleAppraiseSpuRegisterModifyRequest() *AlibabaIdleAppraiseSpuRegisterModifyAPIRequest{ + return &AlibabaIdleAppraiseSpuRegisterModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleAppraiseSpuRegisterModifyAPIRequest) GetApiMethodName() string { + return "alibaba.idle.appraise.spu.register.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleAppraiseSpuRegisterModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IdleAppraiseSpuRegister4TopDto Setter +// 入参 +func (r *AlibabaIdleAppraiseSpuRegisterModifyAPIRequest) SetIdleAppraiseSpuRegister4TopDto(_idleAppraiseSpuRegister4TopDto *IdleAppraiseSpuRegister4TopDto) error { + r._idleAppraiseSpuRegister4TopDto = _idleAppraiseSpuRegister4TopDto + r.Set("idle_appraise_spu_register4_top_dto", _idleAppraiseSpuRegister4TopDto) + return nil +} + +// IdleAppraiseSpuRegister4TopDto Getter +func (r AlibabaIdleAppraiseSpuRegisterModifyAPIRequest) GetIdleAppraiseSpuRegister4TopDto() *IdleAppraiseSpuRegister4TopDto { + return r._idleAppraiseSpuRegister4TopDto +} diff --git a/model/idle/AlibabaIdleAppraiseSpuRegisterModifyAPIResponse.go b/model/idle/AlibabaIdleAppraiseSpuRegisterModifyAPIResponse.go new file mode 100644 index 0000000000..765ee6b0b3 --- /dev/null +++ b/model/idle/AlibabaIdleAppraiseSpuRegisterModifyAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +验货宝服务商spu挂载 API返回值 +alibaba.idle.appraise.spu.register.modify + +闲鱼接收回收商spu模板挂载信息 +*/ +type AlibabaIdleAppraiseSpuRegisterModifyAPIResponse struct { + model.CommonResponse + AlibabaIdleAppraiseSpuRegisterModifyAPIResponseModel +} + +// 验货宝服务商spu挂载 成功返回结果 +type AlibabaIdleAppraiseSpuRegisterModifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_appraise_spu_register_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaIdleAppraiseSpuRegisterModifyResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleAppraiseSpuRegisterModifyResponse.go b/model/idle/AlibabaIdleAppraiseSpuRegisterModifyResponse.go deleted file mode 100644 index 42abbe2f0c..0000000000 --- a/model/idle/AlibabaIdleAppraiseSpuRegisterModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -验货宝服务商spu挂载 API返回值 -alibaba.idle.appraise.spu.register.modify - -闲鱼接收回收商spu模板挂载信息 -*/ -type AlibabaIdleAppraiseSpuRegisterModifyAPIResponse struct { - model.CommonResponse - AlibabaIdleAppraiseSpuRegisterModifyResponse -} - -// 验货宝服务商spu挂载 成功返回结果 -type AlibabaIdleAppraiseSpuRegisterModifyResponse struct { - XMLName xml.Name `xml:"alibaba_idle_appraise_spu_register_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaIdleAppraiseSpuRegisterModifyResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleApprizeOrderFulfillmentAPIRequest.go b/model/idle/AlibabaIdleApprizeOrderFulfillmentAPIRequest.go new file mode 100644 index 0000000000..b5ee0cb067 --- /dev/null +++ b/model/idle/AlibabaIdleApprizeOrderFulfillmentAPIRequest.go @@ -0,0 +1,66 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +鉴定担保资金订单履约 API请求 +alibaba.idle.apprize.order.fulfillment + +服务商针对自己的服务订单进行履约 +*/ +type AlibabaIdleApprizeOrderFulfillmentAPIRequest struct { + model.Params + // deal:服务商收取费用、refund:退款给付款方 + _action string + // 天猫服务工单Id + _workCardId int64 +} + +// 初始化AlibabaIdleApprizeOrderFulfillmentAPIRequest对象 +func NewAlibabaIdleApprizeOrderFulfillmentRequest() *AlibabaIdleApprizeOrderFulfillmentAPIRequest{ + return &AlibabaIdleApprizeOrderFulfillmentAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleApprizeOrderFulfillmentAPIRequest) GetApiMethodName() string { + return "alibaba.idle.apprize.order.fulfillment" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleApprizeOrderFulfillmentAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Action Setter +// deal:服务商收取费用、refund:退款给付款方 +func (r *AlibabaIdleApprizeOrderFulfillmentAPIRequest) SetAction(_action string) error { + r._action = _action + r.Set("action", _action) + return nil +} + +// Action Getter +func (r AlibabaIdleApprizeOrderFulfillmentAPIRequest) GetAction() string { + return r._action +} +// WorkCardId Setter +// 天猫服务工单Id +func (r *AlibabaIdleApprizeOrderFulfillmentAPIRequest) SetWorkCardId(_workCardId int64) error { + r._workCardId = _workCardId + r.Set("work_card_id", _workCardId) + return nil +} + +// WorkCardId Getter +func (r AlibabaIdleApprizeOrderFulfillmentAPIRequest) GetWorkCardId() int64 { + return r._workCardId +} diff --git a/model/idle/AlibabaIdleApprizeOrderFulfillmentAPIResponse.go b/model/idle/AlibabaIdleApprizeOrderFulfillmentAPIResponse.go new file mode 100644 index 0000000000..ecec072f04 --- /dev/null +++ b/model/idle/AlibabaIdleApprizeOrderFulfillmentAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +鉴定担保资金订单履约 API返回值 +alibaba.idle.apprize.order.fulfillment + +服务商针对自己的服务订单进行履约 +*/ +type AlibabaIdleApprizeOrderFulfillmentAPIResponse struct { + model.CommonResponse + AlibabaIdleApprizeOrderFulfillmentAPIResponseModel +} + +// 鉴定担保资金订单履约 成功返回结果 +type AlibabaIdleApprizeOrderFulfillmentAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_apprize_order_fulfillment_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 支付宝流水订单号 + AlipayOrderId string `json:"alipay_order_id,omitempty" xml:"alipay_order_id,omitempty"` +} diff --git a/model/idle/AlibabaIdleApprizeOrderFulfillmentResponse.go b/model/idle/AlibabaIdleApprizeOrderFulfillmentResponse.go deleted file mode 100644 index 1e0f140a8e..0000000000 --- a/model/idle/AlibabaIdleApprizeOrderFulfillmentResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -鉴定担保资金订单履约 API返回值 -alibaba.idle.apprize.order.fulfillment - -服务商针对自己的服务订单进行履约 -*/ -type AlibabaIdleApprizeOrderFulfillmentAPIResponse struct { - model.CommonResponse - AlibabaIdleApprizeOrderFulfillmentResponse -} - -// 鉴定担保资金订单履约 成功返回结果 -type AlibabaIdleApprizeOrderFulfillmentResponse struct { - XMLName xml.Name `xml:"alibaba_idle_apprize_order_fulfillment_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 支付宝流水订单号 - AlipayOrderId string `json:"alipay_order_id,omitempty" xml:"alipay_order_id,omitempty"` -} diff --git a/model/idle/AlibabaIdleConsignmentOrderGetAPIRequest.go b/model/idle/AlibabaIdleConsignmentOrderGetAPIRequest.go new file mode 100644 index 0000000000..8281f5f045 --- /dev/null +++ b/model/idle/AlibabaIdleConsignmentOrderGetAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼帮卖订单查询 API请求 +alibaba.idle.consignment.order.get + +闲鱼帮卖服务商以闲鱼交易买家身份查询订单信息 +*/ +type AlibabaIdleConsignmentOrderGetAPIRequest struct { + model.Params + // 闲鱼订单ID + _bizOrderId int64 +} + +// 初始化AlibabaIdleConsignmentOrderGetAPIRequest对象 +func NewAlibabaIdleConsignmentOrderGetRequest() *AlibabaIdleConsignmentOrderGetAPIRequest{ + return &AlibabaIdleConsignmentOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleConsignmentOrderGetAPIRequest) GetApiMethodName() string { + return "alibaba.idle.consignment.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleConsignmentOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizOrderId Setter +// 闲鱼订单ID +func (r *AlibabaIdleConsignmentOrderGetAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r AlibabaIdleConsignmentOrderGetAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} diff --git a/model/idle/AlibabaIdleConsignmentOrderGetAPIResponse.go b/model/idle/AlibabaIdleConsignmentOrderGetAPIResponse.go new file mode 100644 index 0000000000..9867967079 --- /dev/null +++ b/model/idle/AlibabaIdleConsignmentOrderGetAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼帮卖订单查询 API返回值 +alibaba.idle.consignment.order.get + +闲鱼帮卖服务商以闲鱼交易买家身份查询订单信息 +*/ +type AlibabaIdleConsignmentOrderGetAPIResponse struct { + model.CommonResponse + AlibabaIdleConsignmentOrderGetAPIResponseModel +} + +// 闲鱼帮卖订单查询 成功返回结果 +type AlibabaIdleConsignmentOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_consignment_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaIdleConsignmentOrderGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleConsignmentOrderGetResponse.go b/model/idle/AlibabaIdleConsignmentOrderGetResponse.go deleted file mode 100644 index c2afb53e80..0000000000 --- a/model/idle/AlibabaIdleConsignmentOrderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼帮卖订单查询 API返回值 -alibaba.idle.consignment.order.get - -闲鱼帮卖服务商以闲鱼交易买家身份查询订单信息 -*/ -type AlibabaIdleConsignmentOrderGetAPIResponse struct { - model.CommonResponse - AlibabaIdleConsignmentOrderGetResponse -} - -// 闲鱼帮卖订单查询 成功返回结果 -type AlibabaIdleConsignmentOrderGetResponse struct { - XMLName xml.Name `xml:"alibaba_idle_consignment_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaIdleConsignmentOrderGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleConsignmentOrderPerformAPIRequest.go b/model/idle/AlibabaIdleConsignmentOrderPerformAPIRequest.go new file mode 100644 index 0000000000..e811202aaa --- /dev/null +++ b/model/idle/AlibabaIdleConsignmentOrderPerformAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +帮卖订单履约 API请求 +alibaba.idle.consignment.order.perform + +帮卖订单履约,回收商同步订单信息,驱动交易流转 +*/ +type AlibabaIdleConsignmentOrderPerformAPIRequest struct { + model.Params + // 帮卖订单同步DTO + _param *ConsignmentOrderSynDto +} + +// 初始化AlibabaIdleConsignmentOrderPerformAPIRequest对象 +func NewAlibabaIdleConsignmentOrderPerformRequest() *AlibabaIdleConsignmentOrderPerformAPIRequest{ + return &AlibabaIdleConsignmentOrderPerformAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleConsignmentOrderPerformAPIRequest) GetApiMethodName() string { + return "alibaba.idle.consignment.order.perform" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleConsignmentOrderPerformAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 帮卖订单同步DTO +func (r *AlibabaIdleConsignmentOrderPerformAPIRequest) SetParam(_param *ConsignmentOrderSynDto) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaIdleConsignmentOrderPerformAPIRequest) GetParam() *ConsignmentOrderSynDto { + return r._param +} diff --git a/model/idle/AlibabaIdleConsignmentOrderPerformAPIResponse.go b/model/idle/AlibabaIdleConsignmentOrderPerformAPIResponse.go new file mode 100644 index 0000000000..86ef22834a --- /dev/null +++ b/model/idle/AlibabaIdleConsignmentOrderPerformAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +帮卖订单履约 API返回值 +alibaba.idle.consignment.order.perform + +帮卖订单履约,回收商同步订单信息,驱动交易流转 +*/ +type AlibabaIdleConsignmentOrderPerformAPIResponse struct { + model.CommonResponse + AlibabaIdleConsignmentOrderPerformAPIResponseModel +} + +// 帮卖订单履约 成功返回结果 +type AlibabaIdleConsignmentOrderPerformAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_consignment_order_perform_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaIdleConsignmentOrderPerformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleConsignmentOrderPerformResponse.go b/model/idle/AlibabaIdleConsignmentOrderPerformResponse.go deleted file mode 100644 index f9a9feb326..0000000000 --- a/model/idle/AlibabaIdleConsignmentOrderPerformResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -帮卖订单履约 API返回值 -alibaba.idle.consignment.order.perform - -帮卖订单履约,回收商同步订单信息,驱动交易流转 -*/ -type AlibabaIdleConsignmentOrderPerformAPIResponse struct { - model.CommonResponse - AlibabaIdleConsignmentOrderPerformResponse -} - -// 帮卖订单履约 成功返回结果 -type AlibabaIdleConsignmentOrderPerformResponse struct { - XMLName xml.Name `xml:"alibaba_idle_consignment_order_perform_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaIdleConsignmentOrderPerformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleConsignmentSpuStatisticsAPIRequest.go b/model/idle/AlibabaIdleConsignmentSpuStatisticsAPIRequest.go new file mode 100644 index 0000000000..c598beaa9d --- /dev/null +++ b/model/idle/AlibabaIdleConsignmentSpuStatisticsAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼帮卖同步服务商交易统计信息 API请求 +alibaba.idle.consignment.spu.statistics + +闲鱼帮卖同步服务商交易统计信息 +*/ +type AlibabaIdleConsignmentSpuStatisticsAPIRequest struct { + model.Params + // 入参 + _param *SpuStatistics +} + +// 初始化AlibabaIdleConsignmentSpuStatisticsAPIRequest对象 +func NewAlibabaIdleConsignmentSpuStatisticsRequest() *AlibabaIdleConsignmentSpuStatisticsAPIRequest{ + return &AlibabaIdleConsignmentSpuStatisticsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleConsignmentSpuStatisticsAPIRequest) GetApiMethodName() string { + return "alibaba.idle.consignment.spu.statistics" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleConsignmentSpuStatisticsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *AlibabaIdleConsignmentSpuStatisticsAPIRequest) SetParam(_param *SpuStatistics) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaIdleConsignmentSpuStatisticsAPIRequest) GetParam() *SpuStatistics { + return r._param +} diff --git a/model/idle/AlibabaIdleConsignmentSpuStatisticsAPIResponse.go b/model/idle/AlibabaIdleConsignmentSpuStatisticsAPIResponse.go new file mode 100644 index 0000000000..d379feb600 --- /dev/null +++ b/model/idle/AlibabaIdleConsignmentSpuStatisticsAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼帮卖同步服务商交易统计信息 API返回值 +alibaba.idle.consignment.spu.statistics + +闲鱼帮卖同步服务商交易统计信息 +*/ +type AlibabaIdleConsignmentSpuStatisticsAPIResponse struct { + model.CommonResponse + AlibabaIdleConsignmentSpuStatisticsAPIResponseModel +} + +// 闲鱼帮卖同步服务商交易统计信息 成功返回结果 +type AlibabaIdleConsignmentSpuStatisticsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_consignment_spu_statistics_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleConsignmentSpuStatisticsResponse.go b/model/idle/AlibabaIdleConsignmentSpuStatisticsResponse.go deleted file mode 100644 index 223220faab..0000000000 --- a/model/idle/AlibabaIdleConsignmentSpuStatisticsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼帮卖同步服务商交易统计信息 API返回值 -alibaba.idle.consignment.spu.statistics - -闲鱼帮卖同步服务商交易统计信息 -*/ -type AlibabaIdleConsignmentSpuStatisticsAPIResponse struct { - model.CommonResponse - AlibabaIdleConsignmentSpuStatisticsResponse -} - -// 闲鱼帮卖同步服务商交易统计信息 成功返回结果 -type AlibabaIdleConsignmentSpuStatisticsResponse struct { - XMLName xml.Name `xml:"alibaba_idle_consignment_spu_statistics_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleConsignmentiiOrderGetAPIRequest.go b/model/idle/AlibabaIdleConsignmentiiOrderGetAPIRequest.go new file mode 100644 index 0000000000..1207cbf9cc --- /dev/null +++ b/model/idle/AlibabaIdleConsignmentiiOrderGetAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼寄卖V2订单查询 API请求 +alibaba.idle.consignmentii.order.get + +闲鱼寄卖V2服务商以闲鱼交易买家身份查询订单信息 +*/ +type AlibabaIdleConsignmentiiOrderGetAPIRequest struct { + model.Params + // 闲鱼订单ID + _bizOrderId int64 +} + +// 初始化AlibabaIdleConsignmentiiOrderGetAPIRequest对象 +func NewAlibabaIdleConsignmentiiOrderGetRequest() *AlibabaIdleConsignmentiiOrderGetAPIRequest{ + return &AlibabaIdleConsignmentiiOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleConsignmentiiOrderGetAPIRequest) GetApiMethodName() string { + return "alibaba.idle.consignmentii.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleConsignmentiiOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizOrderId Setter +// 闲鱼订单ID +func (r *AlibabaIdleConsignmentiiOrderGetAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r AlibabaIdleConsignmentiiOrderGetAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} diff --git a/model/idle/AlibabaIdleConsignmentiiOrderGetAPIResponse.go b/model/idle/AlibabaIdleConsignmentiiOrderGetAPIResponse.go new file mode 100644 index 0000000000..65f963fbec --- /dev/null +++ b/model/idle/AlibabaIdleConsignmentiiOrderGetAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼寄卖V2订单查询 API返回值 +alibaba.idle.consignmentii.order.get + +闲鱼寄卖V2服务商以闲鱼交易买家身份查询订单信息 +*/ +type AlibabaIdleConsignmentiiOrderGetAPIResponse struct { + model.CommonResponse + AlibabaIdleConsignmentiiOrderGetAPIResponseModel +} + +// 闲鱼寄卖V2订单查询 成功返回结果 +type AlibabaIdleConsignmentiiOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_consignmentii_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaIdleConsignmentiiOrderGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleConsignmentiiOrderGetResponse.go b/model/idle/AlibabaIdleConsignmentiiOrderGetResponse.go deleted file mode 100644 index c5c613587e..0000000000 --- a/model/idle/AlibabaIdleConsignmentiiOrderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼寄卖V2订单查询 API返回值 -alibaba.idle.consignmentii.order.get - -闲鱼寄卖V2服务商以闲鱼交易买家身份查询订单信息 -*/ -type AlibabaIdleConsignmentiiOrderGetAPIResponse struct { - model.CommonResponse - AlibabaIdleConsignmentiiOrderGetResponse -} - -// 闲鱼寄卖V2订单查询 成功返回结果 -type AlibabaIdleConsignmentiiOrderGetResponse struct { - XMLName xml.Name `xml:"alibaba_idle_consignmentii_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaIdleConsignmentiiOrderGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleConsignmentiiOrderPerformAPIRequest.go b/model/idle/AlibabaIdleConsignmentiiOrderPerformAPIRequest.go new file mode 100644 index 0000000000..da27c752e6 --- /dev/null +++ b/model/idle/AlibabaIdleConsignmentiiOrderPerformAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +寄卖V2订单履约 API请求 +alibaba.idle.consignmentii.order.perform + +寄卖V2订单履约,服务商同步订单信息,驱动交易流转 +*/ +type AlibabaIdleConsignmentiiOrderPerformAPIRequest struct { + model.Params + // 同步参数 + _consignmentV2OrderSynDto *ConsignmentV2OrderSynDto +} + +// 初始化AlibabaIdleConsignmentiiOrderPerformAPIRequest对象 +func NewAlibabaIdleConsignmentiiOrderPerformRequest() *AlibabaIdleConsignmentiiOrderPerformAPIRequest{ + return &AlibabaIdleConsignmentiiOrderPerformAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleConsignmentiiOrderPerformAPIRequest) GetApiMethodName() string { + return "alibaba.idle.consignmentii.order.perform" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleConsignmentiiOrderPerformAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ConsignmentV2OrderSynDto Setter +// 同步参数 +func (r *AlibabaIdleConsignmentiiOrderPerformAPIRequest) SetConsignmentV2OrderSynDto(_consignmentV2OrderSynDto *ConsignmentV2OrderSynDto) error { + r._consignmentV2OrderSynDto = _consignmentV2OrderSynDto + r.Set("consignment_v2_order_syn_dto", _consignmentV2OrderSynDto) + return nil +} + +// ConsignmentV2OrderSynDto Getter +func (r AlibabaIdleConsignmentiiOrderPerformAPIRequest) GetConsignmentV2OrderSynDto() *ConsignmentV2OrderSynDto { + return r._consignmentV2OrderSynDto +} diff --git a/model/idle/AlibabaIdleConsignmentiiOrderPerformAPIResponse.go b/model/idle/AlibabaIdleConsignmentiiOrderPerformAPIResponse.go new file mode 100644 index 0000000000..c1d149bc56 --- /dev/null +++ b/model/idle/AlibabaIdleConsignmentiiOrderPerformAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +寄卖V2订单履约 API返回值 +alibaba.idle.consignmentii.order.perform + +寄卖V2订单履约,服务商同步订单信息,驱动交易流转 +*/ +type AlibabaIdleConsignmentiiOrderPerformAPIResponse struct { + model.CommonResponse + AlibabaIdleConsignmentiiOrderPerformAPIResponseModel +} + +// 寄卖V2订单履约 成功返回结果 +type AlibabaIdleConsignmentiiOrderPerformAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_consignmentii_order_perform_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaIdleConsignmentiiOrderPerformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleConsignmentiiOrderPerformResponse.go b/model/idle/AlibabaIdleConsignmentiiOrderPerformResponse.go deleted file mode 100644 index a9caebd35e..0000000000 --- a/model/idle/AlibabaIdleConsignmentiiOrderPerformResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -寄卖V2订单履约 API返回值 -alibaba.idle.consignmentii.order.perform - -寄卖V2订单履约,服务商同步订单信息,驱动交易流转 -*/ -type AlibabaIdleConsignmentiiOrderPerformAPIResponse struct { - model.CommonResponse - AlibabaIdleConsignmentiiOrderPerformResponse -} - -// 寄卖V2订单履约 成功返回结果 -type AlibabaIdleConsignmentiiOrderPerformResponse struct { - XMLName xml.Name `xml:"alibaba_idle_consignmentii_order_perform_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaIdleConsignmentiiOrderPerformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleIsvOrderDealrefundAPIRequest.go b/model/idle/AlibabaIdleIsvOrderDealrefundAPIRequest.go new file mode 100644 index 0000000000..f69bdcb47f --- /dev/null +++ b/model/idle/AlibabaIdleIsvOrderDealrefundAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼无忧购入仓模式服务商退款处理接口 API请求 +alibaba.idle.isv.order.dealrefund + +闲鱼无忧购业务入仓模式下,用户发起退款后,服务商使用此接口处理退款 +*/ +type AlibabaIdleIsvOrderDealrefundAPIRequest struct { + model.Params + // 退款参数 + _paramAppraiseIsvRefundRequest *AppraiseIsvRefundRequest +} + +// 初始化AlibabaIdleIsvOrderDealrefundAPIRequest对象 +func NewAlibabaIdleIsvOrderDealrefundRequest() *AlibabaIdleIsvOrderDealrefundAPIRequest{ + return &AlibabaIdleIsvOrderDealrefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleIsvOrderDealrefundAPIRequest) GetApiMethodName() string { + return "alibaba.idle.isv.order.dealrefund" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleIsvOrderDealrefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamAppraiseIsvRefundRequest Setter +// 退款参数 +func (r *AlibabaIdleIsvOrderDealrefundAPIRequest) SetParamAppraiseIsvRefundRequest(_paramAppraiseIsvRefundRequest *AppraiseIsvRefundRequest) error { + r._paramAppraiseIsvRefundRequest = _paramAppraiseIsvRefundRequest + r.Set("param_appraise_isv_refund_request", _paramAppraiseIsvRefundRequest) + return nil +} + +// ParamAppraiseIsvRefundRequest Getter +func (r AlibabaIdleIsvOrderDealrefundAPIRequest) GetParamAppraiseIsvRefundRequest() *AppraiseIsvRefundRequest { + return r._paramAppraiseIsvRefundRequest +} diff --git a/model/idle/AlibabaIdleIsvOrderDealrefundAPIResponse.go b/model/idle/AlibabaIdleIsvOrderDealrefundAPIResponse.go new file mode 100644 index 0000000000..209eb184ab --- /dev/null +++ b/model/idle/AlibabaIdleIsvOrderDealrefundAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼无忧购入仓模式服务商退款处理接口 API返回值 +alibaba.idle.isv.order.dealrefund + +闲鱼无忧购业务入仓模式下,用户发起退款后,服务商使用此接口处理退款 +*/ +type AlibabaIdleIsvOrderDealrefundAPIResponse struct { + model.CommonResponse + AlibabaIdleIsvOrderDealrefundAPIResponseModel +} + +// 闲鱼无忧购入仓模式服务商退款处理接口 成功返回结果 +type AlibabaIdleIsvOrderDealrefundAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_isv_order_dealrefund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 退款信息 + Module *RefundDto `json:"module,omitempty" xml:"module,omitempty"` +} diff --git a/model/idle/AlibabaIdleIsvOrderDealrefundResponse.go b/model/idle/AlibabaIdleIsvOrderDealrefundResponse.go deleted file mode 100644 index df3d96fc26..0000000000 --- a/model/idle/AlibabaIdleIsvOrderDealrefundResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼无忧购入仓模式服务商退款处理接口 API返回值 -alibaba.idle.isv.order.dealrefund - -闲鱼无忧购业务入仓模式下,用户发起退款后,服务商使用此接口处理退款 -*/ -type AlibabaIdleIsvOrderDealrefundAPIResponse struct { - model.CommonResponse - AlibabaIdleIsvOrderDealrefundResponse -} - -// 闲鱼无忧购入仓模式服务商退款处理接口 成功返回结果 -type AlibabaIdleIsvOrderDealrefundResponse struct { - XMLName xml.Name `xml:"alibaba_idle_isv_order_dealrefund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 退款信息 - Module *RefundDto `json:"module,omitempty" xml:"module,omitempty"` -} diff --git a/model/idle/AlibabaIdleIsvOrderShipAPIRequest.go b/model/idle/AlibabaIdleIsvOrderShipAPIRequest.go new file mode 100644 index 0000000000..48f05939a2 --- /dev/null +++ b/model/idle/AlibabaIdleIsvOrderShipAPIRequest.go @@ -0,0 +1,80 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼无忧购服务商发货 API请求 +alibaba.idle.isv.order.ship + +闲鱼无忧购业务入仓模式下服务商订单发货的接口 +*/ +type AlibabaIdleIsvOrderShipAPIRequest struct { + model.Params + // 订单号 + _bizOrderId string + // 物流公司 + _logisticsCompany string + // 运单号 + _shipMailNo string +} + +// 初始化AlibabaIdleIsvOrderShipAPIRequest对象 +func NewAlibabaIdleIsvOrderShipRequest() *AlibabaIdleIsvOrderShipAPIRequest{ + return &AlibabaIdleIsvOrderShipAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleIsvOrderShipAPIRequest) GetApiMethodName() string { + return "alibaba.idle.isv.order.ship" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleIsvOrderShipAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizOrderId Setter +// 订单号 +func (r *AlibabaIdleIsvOrderShipAPIRequest) SetBizOrderId(_bizOrderId string) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r AlibabaIdleIsvOrderShipAPIRequest) GetBizOrderId() string { + return r._bizOrderId +} +// LogisticsCompany Setter +// 物流公司 +func (r *AlibabaIdleIsvOrderShipAPIRequest) SetLogisticsCompany(_logisticsCompany string) error { + r._logisticsCompany = _logisticsCompany + r.Set("logistics_company", _logisticsCompany) + return nil +} + +// LogisticsCompany Getter +func (r AlibabaIdleIsvOrderShipAPIRequest) GetLogisticsCompany() string { + return r._logisticsCompany +} +// ShipMailNo Setter +// 运单号 +func (r *AlibabaIdleIsvOrderShipAPIRequest) SetShipMailNo(_shipMailNo string) error { + r._shipMailNo = _shipMailNo + r.Set("ship_mail_no", _shipMailNo) + return nil +} + +// ShipMailNo Getter +func (r AlibabaIdleIsvOrderShipAPIRequest) GetShipMailNo() string { + return r._shipMailNo +} diff --git a/model/idle/AlibabaIdleIsvOrderShipAPIResponse.go b/model/idle/AlibabaIdleIsvOrderShipAPIResponse.go new file mode 100644 index 0000000000..4d3b57f241 --- /dev/null +++ b/model/idle/AlibabaIdleIsvOrderShipAPIResponse.go @@ -0,0 +1,33 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼无忧购服务商发货 API返回值 +alibaba.idle.isv.order.ship + +闲鱼无忧购业务入仓模式下服务商订单发货的接口 +*/ +type AlibabaIdleIsvOrderShipAPIResponse struct { + model.CommonResponse + AlibabaIdleIsvOrderShipAPIResponseModel +} + +// 闲鱼无忧购服务商发货 成功返回结果 +type AlibabaIdleIsvOrderShipAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_isv_order_ship_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求结果,是否成功 + ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` + // 错误码 + ResultErrCode string `json:"result_err_code,omitempty" xml:"result_err_code,omitempty"` + // 业务逻辑结果,暂时不用 + ResultModule bool `json:"result_module,omitempty" xml:"result_module,omitempty"` + // 错误信息 + ResultErrMsg string `json:"result_err_msg,omitempty" xml:"result_err_msg,omitempty"` +} diff --git a/model/idle/AlibabaIdleIsvOrderShipResponse.go b/model/idle/AlibabaIdleIsvOrderShipResponse.go deleted file mode 100644 index ee639b86ef..0000000000 --- a/model/idle/AlibabaIdleIsvOrderShipResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼无忧购服务商发货 API返回值 -alibaba.idle.isv.order.ship - -闲鱼无忧购业务入仓模式下服务商订单发货的接口 -*/ -type AlibabaIdleIsvOrderShipAPIResponse struct { - model.CommonResponse - AlibabaIdleIsvOrderShipResponse -} - -// 闲鱼无忧购服务商发货 成功返回结果 -type AlibabaIdleIsvOrderShipResponse struct { - XMLName xml.Name `xml:"alibaba_idle_isv_order_ship_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求结果,是否成功 - ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` - // 错误码 - ResultErrCode string `json:"result_err_code,omitempty" xml:"result_err_code,omitempty"` - // 业务逻辑结果,暂时不用 - ResultModule bool `json:"result_module,omitempty" xml:"result_module,omitempty"` - // 错误信息 - ResultErrMsg string `json:"result_err_msg,omitempty" xml:"result_err_msg,omitempty"` -} diff --git a/model/idle/AlibabaIdleItemUserPublishitemsAPIRequest.go b/model/idle/AlibabaIdleItemUserPublishitemsAPIRequest.go new file mode 100644 index 0000000000..204f7e34cd --- /dev/null +++ b/model/idle/AlibabaIdleItemUserPublishitemsAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发布的商品列表 API请求 +alibaba.idle.item.user.publishitems + +为服务商的卖家提供发布的闲鱼商品列表 +*/ +type AlibabaIdleItemUserPublishitemsAPIRequest struct { + model.Params + // 查询参数 + _paramItemPageQuery *ItemPageQuery +} + +// 初始化AlibabaIdleItemUserPublishitemsAPIRequest对象 +func NewAlibabaIdleItemUserPublishitemsRequest() *AlibabaIdleItemUserPublishitemsAPIRequest{ + return &AlibabaIdleItemUserPublishitemsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleItemUserPublishitemsAPIRequest) GetApiMethodName() string { + return "alibaba.idle.item.user.publishitems" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleItemUserPublishitemsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamItemPageQuery Setter +// 查询参数 +func (r *AlibabaIdleItemUserPublishitemsAPIRequest) SetParamItemPageQuery(_paramItemPageQuery *ItemPageQuery) error { + r._paramItemPageQuery = _paramItemPageQuery + r.Set("param_item_page_query", _paramItemPageQuery) + return nil +} + +// ParamItemPageQuery Getter +func (r AlibabaIdleItemUserPublishitemsAPIRequest) GetParamItemPageQuery() *ItemPageQuery { + return r._paramItemPageQuery +} diff --git a/model/idle/AlibabaIdleItemUserPublishitemsAPIResponse.go b/model/idle/AlibabaIdleItemUserPublishitemsAPIResponse.go new file mode 100644 index 0000000000..b6e41be5a1 --- /dev/null +++ b/model/idle/AlibabaIdleItemUserPublishitemsAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发布的商品列表 API返回值 +alibaba.idle.item.user.publishitems + +为服务商的卖家提供发布的闲鱼商品列表 +*/ +type AlibabaIdleItemUserPublishitemsAPIResponse struct { + model.CommonResponse + AlibabaIdleItemUserPublishitemsAPIResponseModel +} + +// 发布的商品列表 成功返回结果 +type AlibabaIdleItemUserPublishitemsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_item_user_publishitems_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果 + Result *TopPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleItemUserPublishitemsResponse.go b/model/idle/AlibabaIdleItemUserPublishitemsResponse.go deleted file mode 100644 index 4e06e86594..0000000000 --- a/model/idle/AlibabaIdleItemUserPublishitemsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发布的商品列表 API返回值 -alibaba.idle.item.user.publishitems - -为服务商的卖家提供发布的闲鱼商品列表 -*/ -type AlibabaIdleItemUserPublishitemsAPIResponse struct { - model.CommonResponse - AlibabaIdleItemUserPublishitemsResponse -} - -// 发布的商品列表 成功返回结果 -type AlibabaIdleItemUserPublishitemsResponse struct { - XMLName xml.Name `xml:"alibaba_idle_item_user_publishitems_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果 - Result *TopPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleOrderDummySendAPIRequest.go b/model/idle/AlibabaIdleOrderDummySendAPIRequest.go new file mode 100644 index 0000000000..ddb39b2ef2 --- /dev/null +++ b/model/idle/AlibabaIdleOrderDummySendAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼无需物流发货 API请求 +alibaba.idle.order.dummy.send + +适用于电子卡券等虚拟商品不需要物流的商品发货。 +*/ +type AlibabaIdleOrderDummySendAPIRequest struct { + model.Params + // 请求 + _paramOrderDummySendRequest *OrderDummySendRequest +} + +// 初始化AlibabaIdleOrderDummySendAPIRequest对象 +func NewAlibabaIdleOrderDummySendRequest() *AlibabaIdleOrderDummySendAPIRequest{ + return &AlibabaIdleOrderDummySendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleOrderDummySendAPIRequest) GetApiMethodName() string { + return "alibaba.idle.order.dummy.send" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleOrderDummySendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamOrderDummySendRequest Setter +// 请求 +func (r *AlibabaIdleOrderDummySendAPIRequest) SetParamOrderDummySendRequest(_paramOrderDummySendRequest *OrderDummySendRequest) error { + r._paramOrderDummySendRequest = _paramOrderDummySendRequest + r.Set("param_order_dummy_send_request", _paramOrderDummySendRequest) + return nil +} + +// ParamOrderDummySendRequest Getter +func (r AlibabaIdleOrderDummySendAPIRequest) GetParamOrderDummySendRequest() *OrderDummySendRequest { + return r._paramOrderDummySendRequest +} diff --git a/model/idle/AlibabaIdleOrderDummySendAPIResponse.go b/model/idle/AlibabaIdleOrderDummySendAPIResponse.go new file mode 100644 index 0000000000..6522e49110 --- /dev/null +++ b/model/idle/AlibabaIdleOrderDummySendAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼无需物流发货 API返回值 +alibaba.idle.order.dummy.send + +适用于电子卡券等虚拟商品不需要物流的商品发货。 +*/ +type AlibabaIdleOrderDummySendAPIResponse struct { + model.CommonResponse + AlibabaIdleOrderDummySendAPIResponseModel +} + +// 闲鱼无需物流发货 成功返回结果 +type AlibabaIdleOrderDummySendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_order_dummy_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回包装类 + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleOrderDummySendResponse.go b/model/idle/AlibabaIdleOrderDummySendResponse.go deleted file mode 100644 index 415e0b1428..0000000000 --- a/model/idle/AlibabaIdleOrderDummySendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼无需物流发货 API返回值 -alibaba.idle.order.dummy.send - -适用于电子卡券等虚拟商品不需要物流的商品发货。 -*/ -type AlibabaIdleOrderDummySendAPIResponse struct { - model.CommonResponse - AlibabaIdleOrderDummySendResponse -} - -// 闲鱼无需物流发货 成功返回结果 -type AlibabaIdleOrderDummySendResponse struct { - XMLName xml.Name `xml:"alibaba_idle_order_dummy_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回包装类 - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdlePayPlanCreateAPIRequest.go b/model/idle/AlibabaIdlePayPlanCreateAPIRequest.go new file mode 100644 index 0000000000..83a24525da --- /dev/null +++ b/model/idle/AlibabaIdlePayPlanCreateAPIRequest.go @@ -0,0 +1,54 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建代扣计划 API请求 +alibaba.idle.pay.plan.create + +闲鱼平台代扣能力: +1、用户和闲鱼签约代扣协议 服务商通过直付通产品挂载成为闲鱼二级商户 来完成用户和服务商的结算 +2、创建代扣计划 +*/ +type AlibabaIdlePayPlanCreateAPIRequest struct { + model.Params + // 业务入参 + _agreementPayPlanParam *AgreementPayPlanParam +} + +// 初始化AlibabaIdlePayPlanCreateAPIRequest对象 +func NewAlibabaIdlePayPlanCreateRequest() *AlibabaIdlePayPlanCreateAPIRequest{ + return &AlibabaIdlePayPlanCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdlePayPlanCreateAPIRequest) GetApiMethodName() string { + return "alibaba.idle.pay.plan.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdlePayPlanCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgreementPayPlanParam Setter +// 业务入参 +func (r *AlibabaIdlePayPlanCreateAPIRequest) SetAgreementPayPlanParam(_agreementPayPlanParam *AgreementPayPlanParam) error { + r._agreementPayPlanParam = _agreementPayPlanParam + r.Set("agreement_pay_plan_param", _agreementPayPlanParam) + return nil +} + +// AgreementPayPlanParam Getter +func (r AlibabaIdlePayPlanCreateAPIRequest) GetAgreementPayPlanParam() *AgreementPayPlanParam { + return r._agreementPayPlanParam +} diff --git a/model/idle/AlibabaIdlePayPlanCreateAPIResponse.go b/model/idle/AlibabaIdlePayPlanCreateAPIResponse.go new file mode 100644 index 0000000000..f1d5bcaca8 --- /dev/null +++ b/model/idle/AlibabaIdlePayPlanCreateAPIResponse.go @@ -0,0 +1,29 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建代扣计划 API返回值 +alibaba.idle.pay.plan.create + +闲鱼平台代扣能力: +1、用户和闲鱼签约代扣协议 服务商通过直付通产品挂载成为闲鱼二级商户 来完成用户和服务商的结算 +2、创建代扣计划 +*/ +type AlibabaIdlePayPlanCreateAPIResponse struct { + model.CommonResponse + AlibabaIdlePayPlanCreateAPIResponseModel +} + +// 创建代扣计划 成功返回结果 +type AlibabaIdlePayPlanCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_pay_plan_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaIdlePayPlanCreateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdlePayPlanCreateResponse.go b/model/idle/AlibabaIdlePayPlanCreateResponse.go deleted file mode 100644 index f624cad420..0000000000 --- a/model/idle/AlibabaIdlePayPlanCreateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建代扣计划 API返回值 -alibaba.idle.pay.plan.create - -闲鱼平台代扣能力: -1、用户和闲鱼签约代扣协议 服务商通过直付通产品挂载成为闲鱼二级商户 来完成用户和服务商的结算 -2、创建代扣计划 -*/ -type AlibabaIdlePayPlanCreateAPIResponse struct { - model.CommonResponse - AlibabaIdlePayPlanCreateResponse -} - -// 创建代扣计划 成功返回结果 -type AlibabaIdlePayPlanCreateResponse struct { - XMLName xml.Name `xml:"alibaba_idle_pay_plan_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaIdlePayPlanCreateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleRecycleInspectionReportAPIRequest.go b/model/idle/AlibabaIdleRecycleInspectionReportAPIRequest.go new file mode 100644 index 0000000000..e6b6773085 --- /dev/null +++ b/model/idle/AlibabaIdleRecycleInspectionReportAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +鉴定报告 API请求 +alibaba.idle.recycle.inspection.report + +回收商鉴定报告 +*/ +type AlibabaIdleRecycleInspectionReportAPIRequest struct { + model.Params + // 鉴定报告 + _inspectionReport *InspectionReport +} + +// 初始化AlibabaIdleRecycleInspectionReportAPIRequest对象 +func NewAlibabaIdleRecycleInspectionReportRequest() *AlibabaIdleRecycleInspectionReportAPIRequest{ + return &AlibabaIdleRecycleInspectionReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleRecycleInspectionReportAPIRequest) GetApiMethodName() string { + return "alibaba.idle.recycle.inspection.report" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleRecycleInspectionReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InspectionReport Setter +// 鉴定报告 +func (r *AlibabaIdleRecycleInspectionReportAPIRequest) SetInspectionReport(_inspectionReport *InspectionReport) error { + r._inspectionReport = _inspectionReport + r.Set("inspection_report", _inspectionReport) + return nil +} + +// InspectionReport Getter +func (r AlibabaIdleRecycleInspectionReportAPIRequest) GetInspectionReport() *InspectionReport { + return r._inspectionReport +} diff --git a/model/idle/AlibabaIdleRecycleInspectionReportAPIResponse.go b/model/idle/AlibabaIdleRecycleInspectionReportAPIResponse.go new file mode 100644 index 0000000000..99eb7551b1 --- /dev/null +++ b/model/idle/AlibabaIdleRecycleInspectionReportAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +鉴定报告 API返回值 +alibaba.idle.recycle.inspection.report + +回收商鉴定报告 +*/ +type AlibabaIdleRecycleInspectionReportAPIResponse struct { + model.CommonResponse + AlibabaIdleRecycleInspectionReportAPIResponseModel +} + +// 鉴定报告 成功返回结果 +type AlibabaIdleRecycleInspectionReportAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_recycle_inspection_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *RecycleResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleRecycleInspectionReportResponse.go b/model/idle/AlibabaIdleRecycleInspectionReportResponse.go deleted file mode 100644 index 4cc9967bc7..0000000000 --- a/model/idle/AlibabaIdleRecycleInspectionReportResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -鉴定报告 API返回值 -alibaba.idle.recycle.inspection.report - -回收商鉴定报告 -*/ -type AlibabaIdleRecycleInspectionReportAPIResponse struct { - model.CommonResponse - AlibabaIdleRecycleInspectionReportResponse -} - -// 鉴定报告 成功返回结果 -type AlibabaIdleRecycleInspectionReportResponse struct { - XMLName xml.Name `xml:"alibaba_idle_recycle_inspection_report_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *RecycleResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleRecycleOrderFulfillmentAPIRequest.go b/model/idle/AlibabaIdleRecycleOrderFulfillmentAPIRequest.go new file mode 100644 index 0000000000..4658330312 --- /dev/null +++ b/model/idle/AlibabaIdleRecycleOrderFulfillmentAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼回收订单履约V1 API请求 +alibaba.idle.recycle.order.fulfillment + +外部回收商针对自有回收订单的履行 +*/ +type AlibabaIdleRecycleOrderFulfillmentAPIRequest struct { + model.Params + // 订单同步入参 + _param0 *RecycleOrderSynDto +} + +// 初始化AlibabaIdleRecycleOrderFulfillmentAPIRequest对象 +func NewAlibabaIdleRecycleOrderFulfillmentRequest() *AlibabaIdleRecycleOrderFulfillmentAPIRequest{ + return &AlibabaIdleRecycleOrderFulfillmentAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleRecycleOrderFulfillmentAPIRequest) GetApiMethodName() string { + return "alibaba.idle.recycle.order.fulfillment" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleRecycleOrderFulfillmentAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 订单同步入参 +func (r *AlibabaIdleRecycleOrderFulfillmentAPIRequest) SetParam0(_param0 *RecycleOrderSynDto) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaIdleRecycleOrderFulfillmentAPIRequest) GetParam0() *RecycleOrderSynDto { + return r._param0 +} diff --git a/model/idle/AlibabaIdleRecycleOrderFulfillmentAPIResponse.go b/model/idle/AlibabaIdleRecycleOrderFulfillmentAPIResponse.go new file mode 100644 index 0000000000..694413cefa --- /dev/null +++ b/model/idle/AlibabaIdleRecycleOrderFulfillmentAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼回收订单履约V1 API返回值 +alibaba.idle.recycle.order.fulfillment + +外部回收商针对自有回收订单的履行 +*/ +type AlibabaIdleRecycleOrderFulfillmentAPIResponse struct { + model.CommonResponse + AlibabaIdleRecycleOrderFulfillmentAPIResponseModel +} + +// 闲鱼回收订单履约V1 成功返回结果 +type AlibabaIdleRecycleOrderFulfillmentAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_recycle_order_fulfillment_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaIdleRecycleOrderFulfillmentResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleRecycleOrderFulfillmentResponse.go b/model/idle/AlibabaIdleRecycleOrderFulfillmentResponse.go deleted file mode 100644 index 2d710c87d4..0000000000 --- a/model/idle/AlibabaIdleRecycleOrderFulfillmentResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼回收订单履约V1 API返回值 -alibaba.idle.recycle.order.fulfillment - -外部回收商针对自有回收订单的履行 -*/ -type AlibabaIdleRecycleOrderFulfillmentAPIResponse struct { - model.CommonResponse - AlibabaIdleRecycleOrderFulfillmentResponse -} - -// 闲鱼回收订单履约V1 成功返回结果 -type AlibabaIdleRecycleOrderFulfillmentResponse struct { - XMLName xml.Name `xml:"alibaba_idle_recycle_order_fulfillment_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaIdleRecycleOrderFulfillmentResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleRecycleOrderPerformAPIRequest.go b/model/idle/AlibabaIdleRecycleOrderPerformAPIRequest.go new file mode 100644 index 0000000000..90d8c75087 --- /dev/null +++ b/model/idle/AlibabaIdleRecycleOrderPerformAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +回收订单履约V2 API请求 +alibaba.idle.recycle.order.perform + +闲鱼回收业务中,外部服务商作为买家 需要驱动交易节点变化 +*/ +type AlibabaIdleRecycleOrderPerformAPIRequest struct { + model.Params + // 参数 + _param0 *RecycleOrderSynDto +} + +// 初始化AlibabaIdleRecycleOrderPerformAPIRequest对象 +func NewAlibabaIdleRecycleOrderPerformRequest() *AlibabaIdleRecycleOrderPerformAPIRequest{ + return &AlibabaIdleRecycleOrderPerformAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleRecycleOrderPerformAPIRequest) GetApiMethodName() string { + return "alibaba.idle.recycle.order.perform" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleRecycleOrderPerformAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 参数 +func (r *AlibabaIdleRecycleOrderPerformAPIRequest) SetParam0(_param0 *RecycleOrderSynDto) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaIdleRecycleOrderPerformAPIRequest) GetParam0() *RecycleOrderSynDto { + return r._param0 +} diff --git a/model/idle/AlibabaIdleRecycleOrderPerformAPIResponse.go b/model/idle/AlibabaIdleRecycleOrderPerformAPIResponse.go new file mode 100644 index 0000000000..cab7d4f043 --- /dev/null +++ b/model/idle/AlibabaIdleRecycleOrderPerformAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +回收订单履约V2 API返回值 +alibaba.idle.recycle.order.perform + +闲鱼回收业务中,外部服务商作为买家 需要驱动交易节点变化 +*/ +type AlibabaIdleRecycleOrderPerformAPIResponse struct { + model.CommonResponse + AlibabaIdleRecycleOrderPerformAPIResponseModel +} + +// 回收订单履约V2 成功返回结果 +type AlibabaIdleRecycleOrderPerformAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_recycle_order_perform_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleRecycleOrderPerformResponse.go b/model/idle/AlibabaIdleRecycleOrderPerformResponse.go deleted file mode 100644 index 8d1d026994..0000000000 --- a/model/idle/AlibabaIdleRecycleOrderPerformResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -回收订单履约V2 API返回值 -alibaba.idle.recycle.order.perform - -闲鱼回收业务中,外部服务商作为买家 需要驱动交易节点变化 -*/ -type AlibabaIdleRecycleOrderPerformAPIResponse struct { - model.CommonResponse - AlibabaIdleRecycleOrderPerformResponse -} - -// 回收订单履约V2 成功返回结果 -type AlibabaIdleRecycleOrderPerformResponse struct { - XMLName xml.Name `xml:"alibaba_idle_recycle_order_perform_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleRecycleOrderQueryAPIRequest.go b/model/idle/AlibabaIdleRecycleOrderQueryAPIRequest.go new file mode 100644 index 0000000000..6cc32a86c0 --- /dev/null +++ b/model/idle/AlibabaIdleRecycleOrderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼回收订单查询V1 API请求 +alibaba.idle.recycle.order.query + +查询回收订单 +*/ +type AlibabaIdleRecycleOrderQueryAPIRequest struct { + model.Params + // 订单号 + _bizOrderId int64 +} + +// 初始化AlibabaIdleRecycleOrderQueryAPIRequest对象 +func NewAlibabaIdleRecycleOrderQueryRequest() *AlibabaIdleRecycleOrderQueryAPIRequest{ + return &AlibabaIdleRecycleOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleRecycleOrderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.idle.recycle.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleRecycleOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizOrderId Setter +// 订单号 +func (r *AlibabaIdleRecycleOrderQueryAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r AlibabaIdleRecycleOrderQueryAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} diff --git a/model/idle/AlibabaIdleRecycleOrderQueryAPIResponse.go b/model/idle/AlibabaIdleRecycleOrderQueryAPIResponse.go new file mode 100644 index 0000000000..e7b3456822 --- /dev/null +++ b/model/idle/AlibabaIdleRecycleOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼回收订单查询V1 API返回值 +alibaba.idle.recycle.order.query + +查询回收订单 +*/ +type AlibabaIdleRecycleOrderQueryAPIResponse struct { + model.CommonResponse + AlibabaIdleRecycleOrderQueryAPIResponseModel +} + +// 闲鱼回收订单查询V1 成功返回结果 +type AlibabaIdleRecycleOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_recycle_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaIdleRecycleOrderQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleRecycleOrderQueryResponse.go b/model/idle/AlibabaIdleRecycleOrderQueryResponse.go deleted file mode 100644 index 54e89691d7..0000000000 --- a/model/idle/AlibabaIdleRecycleOrderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼回收订单查询V1 API返回值 -alibaba.idle.recycle.order.query - -查询回收订单 -*/ -type AlibabaIdleRecycleOrderQueryAPIResponse struct { - model.CommonResponse - AlibabaIdleRecycleOrderQueryResponse -} - -// 闲鱼回收订单查询V1 成功返回结果 -type AlibabaIdleRecycleOrderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_idle_recycle_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaIdleRecycleOrderQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleRecycleOrderShowAPIRequest.go b/model/idle/AlibabaIdleRecycleOrderShowAPIRequest.go new file mode 100644 index 0000000000..074cd92cf3 --- /dev/null +++ b/model/idle/AlibabaIdleRecycleOrderShowAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼回收订单查询V1.1 API请求 +alibaba.idle.recycle.order.show + +查询回收订单 +*/ +type AlibabaIdleRecycleOrderShowAPIRequest struct { + model.Params + // 订单号 + _bizOrderId int64 +} + +// 初始化AlibabaIdleRecycleOrderShowAPIRequest对象 +func NewAlibabaIdleRecycleOrderShowRequest() *AlibabaIdleRecycleOrderShowAPIRequest{ + return &AlibabaIdleRecycleOrderShowAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleRecycleOrderShowAPIRequest) GetApiMethodName() string { + return "alibaba.idle.recycle.order.show" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleRecycleOrderShowAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizOrderId Setter +// 订单号 +func (r *AlibabaIdleRecycleOrderShowAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r AlibabaIdleRecycleOrderShowAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} diff --git a/model/idle/AlibabaIdleRecycleOrderShowAPIResponse.go b/model/idle/AlibabaIdleRecycleOrderShowAPIResponse.go new file mode 100644 index 0000000000..e34ed4a769 --- /dev/null +++ b/model/idle/AlibabaIdleRecycleOrderShowAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼回收订单查询V1.1 API返回值 +alibaba.idle.recycle.order.show + +查询回收订单 +*/ +type AlibabaIdleRecycleOrderShowAPIResponse struct { + model.CommonResponse + AlibabaIdleRecycleOrderShowAPIResponseModel +} + +// 闲鱼回收订单查询V1.1 成功返回结果 +type AlibabaIdleRecycleOrderShowAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_recycle_order_show_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaIdleRecycleOrderShowResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleRecycleOrderShowResponse.go b/model/idle/AlibabaIdleRecycleOrderShowResponse.go deleted file mode 100644 index 86261a7ae4..0000000000 --- a/model/idle/AlibabaIdleRecycleOrderShowResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼回收订单查询V1.1 API返回值 -alibaba.idle.recycle.order.show - -查询回收订单 -*/ -type AlibabaIdleRecycleOrderShowAPIResponse struct { - model.CommonResponse - AlibabaIdleRecycleOrderShowResponse -} - -// 闲鱼回收订单查询V1.1 成功返回结果 -type AlibabaIdleRecycleOrderShowResponse struct { - XMLName xml.Name `xml:"alibaba_idle_recycle_order_show_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaIdleRecycleOrderShowResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleRecycleSpuTemplateModifyAPIRequest.go b/model/idle/AlibabaIdleRecycleSpuTemplateModifyAPIRequest.go new file mode 100644 index 0000000000..e29a8be4f0 --- /dev/null +++ b/model/idle/AlibabaIdleRecycleSpuTemplateModifyAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼接收回收商spu模板挂载信息 API请求 +alibaba.idle.recycle.spu.template.modify + +闲鱼接收回收商spu模板挂载信息 +*/ +type AlibabaIdleRecycleSpuTemplateModifyAPIRequest struct { + model.Params + // 回收商挂载模版信息 + _recycleSpuTemplate *RecycleSpuTemplate +} + +// 初始化AlibabaIdleRecycleSpuTemplateModifyAPIRequest对象 +func NewAlibabaIdleRecycleSpuTemplateModifyRequest() *AlibabaIdleRecycleSpuTemplateModifyAPIRequest{ + return &AlibabaIdleRecycleSpuTemplateModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleRecycleSpuTemplateModifyAPIRequest) GetApiMethodName() string { + return "alibaba.idle.recycle.spu.template.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleRecycleSpuTemplateModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RecycleSpuTemplate Setter +// 回收商挂载模版信息 +func (r *AlibabaIdleRecycleSpuTemplateModifyAPIRequest) SetRecycleSpuTemplate(_recycleSpuTemplate *RecycleSpuTemplate) error { + r._recycleSpuTemplate = _recycleSpuTemplate + r.Set("recycle_spu_template", _recycleSpuTemplate) + return nil +} + +// RecycleSpuTemplate Getter +func (r AlibabaIdleRecycleSpuTemplateModifyAPIRequest) GetRecycleSpuTemplate() *RecycleSpuTemplate { + return r._recycleSpuTemplate +} diff --git a/model/idle/AlibabaIdleRecycleSpuTemplateModifyAPIResponse.go b/model/idle/AlibabaIdleRecycleSpuTemplateModifyAPIResponse.go new file mode 100644 index 0000000000..242167ebbb --- /dev/null +++ b/model/idle/AlibabaIdleRecycleSpuTemplateModifyAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼接收回收商spu模板挂载信息 API返回值 +alibaba.idle.recycle.spu.template.modify + +闲鱼接收回收商spu模板挂载信息 +*/ +type AlibabaIdleRecycleSpuTemplateModifyAPIResponse struct { + model.CommonResponse + AlibabaIdleRecycleSpuTemplateModifyAPIResponseModel +} + +// 闲鱼接收回收商spu模板挂载信息 成功返回结果 +type AlibabaIdleRecycleSpuTemplateModifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_recycle_spu_template_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *RecycleResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleRecycleSpuTemplateModifyResponse.go b/model/idle/AlibabaIdleRecycleSpuTemplateModifyResponse.go deleted file mode 100644 index 710226e578..0000000000 --- a/model/idle/AlibabaIdleRecycleSpuTemplateModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼接收回收商spu模板挂载信息 API返回值 -alibaba.idle.recycle.spu.template.modify - -闲鱼接收回收商spu模板挂载信息 -*/ -type AlibabaIdleRecycleSpuTemplateModifyAPIResponse struct { - model.CommonResponse - AlibabaIdleRecycleSpuTemplateModifyResponse -} - -// 闲鱼接收回收商spu模板挂载信息 成功返回结果 -type AlibabaIdleRecycleSpuTemplateModifyResponse struct { - XMLName xml.Name `xml:"alibaba_idle_recycle_spu_template_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *RecycleResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleRentItemAddAPIRequest.go b/model/idle/AlibabaIdleRentItemAddAPIRequest.go new file mode 100644 index 0000000000..213516d315 --- /dev/null +++ b/model/idle/AlibabaIdleRentItemAddAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +租赁商品发布 API请求 +alibaba.idle.rent.item.add + +发布闲鱼租赁商品 +*/ +type AlibabaIdleRentItemAddAPIRequest struct { + model.Params + // 商品信息 + _paramRentItemDTO *RentItemDto +} + +// 初始化AlibabaIdleRentItemAddAPIRequest对象 +func NewAlibabaIdleRentItemAddRequest() *AlibabaIdleRentItemAddAPIRequest{ + return &AlibabaIdleRentItemAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleRentItemAddAPIRequest) GetApiMethodName() string { + return "alibaba.idle.rent.item.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleRentItemAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamRentItemDTO Setter +// 商品信息 +func (r *AlibabaIdleRentItemAddAPIRequest) SetParamRentItemDTO(_paramRentItemDTO *RentItemDto) error { + r._paramRentItemDTO = _paramRentItemDTO + r.Set("param_rent_item_d_t_o", _paramRentItemDTO) + return nil +} + +// ParamRentItemDTO Getter +func (r AlibabaIdleRentItemAddAPIRequest) GetParamRentItemDTO() *RentItemDto { + return r._paramRentItemDTO +} diff --git a/model/idle/AlibabaIdleRentItemAddAPIResponse.go b/model/idle/AlibabaIdleRentItemAddAPIResponse.go new file mode 100644 index 0000000000..857eac7f42 --- /dev/null +++ b/model/idle/AlibabaIdleRentItemAddAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +租赁商品发布 API返回值 +alibaba.idle.rent.item.add + +发布闲鱼租赁商品 +*/ +type AlibabaIdleRentItemAddAPIResponse struct { + model.CommonResponse + AlibabaIdleRentItemAddAPIResponseModel +} + +// 租赁商品发布 成功返回结果 +type AlibabaIdleRentItemAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_rent_item_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleRentItemAddResponse.go b/model/idle/AlibabaIdleRentItemAddResponse.go deleted file mode 100644 index ae8aeaba90..0000000000 --- a/model/idle/AlibabaIdleRentItemAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -租赁商品发布 API返回值 -alibaba.idle.rent.item.add - -发布闲鱼租赁商品 -*/ -type AlibabaIdleRentItemAddAPIResponse struct { - model.CommonResponse - AlibabaIdleRentItemAddResponse -} - -// 租赁商品发布 成功返回结果 -type AlibabaIdleRentItemAddResponse struct { - XMLName xml.Name `xml:"alibaba_idle_rent_item_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleRentItemEditAPIRequest.go b/model/idle/AlibabaIdleRentItemEditAPIRequest.go new file mode 100644 index 0000000000..2d8625a221 --- /dev/null +++ b/model/idle/AlibabaIdleRentItemEditAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +租赁商品编辑 API请求 +alibaba.idle.rent.item.edit + +发布闲鱼租赁商品 +*/ +type AlibabaIdleRentItemEditAPIRequest struct { + model.Params + // 商品信息 + _paramRentItemDTO *RentItemDto +} + +// 初始化AlibabaIdleRentItemEditAPIRequest对象 +func NewAlibabaIdleRentItemEditRequest() *AlibabaIdleRentItemEditAPIRequest{ + return &AlibabaIdleRentItemEditAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleRentItemEditAPIRequest) GetApiMethodName() string { + return "alibaba.idle.rent.item.edit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleRentItemEditAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamRentItemDTO Setter +// 商品信息 +func (r *AlibabaIdleRentItemEditAPIRequest) SetParamRentItemDTO(_paramRentItemDTO *RentItemDto) error { + r._paramRentItemDTO = _paramRentItemDTO + r.Set("param_rent_item_d_t_o", _paramRentItemDTO) + return nil +} + +// ParamRentItemDTO Getter +func (r AlibabaIdleRentItemEditAPIRequest) GetParamRentItemDTO() *RentItemDto { + return r._paramRentItemDTO +} diff --git a/model/idle/AlibabaIdleRentItemEditAPIResponse.go b/model/idle/AlibabaIdleRentItemEditAPIResponse.go new file mode 100644 index 0000000000..b83deaa8c7 --- /dev/null +++ b/model/idle/AlibabaIdleRentItemEditAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +租赁商品编辑 API返回值 +alibaba.idle.rent.item.edit + +发布闲鱼租赁商品 +*/ +type AlibabaIdleRentItemEditAPIResponse struct { + model.CommonResponse + AlibabaIdleRentItemEditAPIResponseModel +} + +// 租赁商品编辑 成功返回结果 +type AlibabaIdleRentItemEditAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_rent_item_edit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleRentItemEditResponse.go b/model/idle/AlibabaIdleRentItemEditResponse.go deleted file mode 100644 index 7058d67b9d..0000000000 --- a/model/idle/AlibabaIdleRentItemEditResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -租赁商品编辑 API返回值 -alibaba.idle.rent.item.edit - -发布闲鱼租赁商品 -*/ -type AlibabaIdleRentItemEditAPIResponse struct { - model.CommonResponse - AlibabaIdleRentItemEditResponse -} - -// 租赁商品编辑 成功返回结果 -type AlibabaIdleRentItemEditResponse struct { - XMLName xml.Name `xml:"alibaba_idle_rent_item_edit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleRentItemQueryAPIRequest.go b/model/idle/AlibabaIdleRentItemQueryAPIRequest.go new file mode 100644 index 0000000000..6e436eb0d1 --- /dev/null +++ b/model/idle/AlibabaIdleRentItemQueryAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询租赁商品信息 API请求 +alibaba.idle.rent.item.query + +查询租赁商品信息 +*/ +type AlibabaIdleRentItemQueryAPIRequest struct { + model.Params + // 商品id + _itemId int64 +} + +// 初始化AlibabaIdleRentItemQueryAPIRequest对象 +func NewAlibabaIdleRentItemQueryRequest() *AlibabaIdleRentItemQueryAPIRequest{ + return &AlibabaIdleRentItemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleRentItemQueryAPIRequest) GetApiMethodName() string { + return "alibaba.idle.rent.item.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleRentItemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *AlibabaIdleRentItemQueryAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaIdleRentItemQueryAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/idle/AlibabaIdleRentItemQueryAPIResponse.go b/model/idle/AlibabaIdleRentItemQueryAPIResponse.go new file mode 100644 index 0000000000..d22cd8a2b8 --- /dev/null +++ b/model/idle/AlibabaIdleRentItemQueryAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询租赁商品信息 API返回值 +alibaba.idle.rent.item.query + +查询租赁商品信息 +*/ +type AlibabaIdleRentItemQueryAPIResponse struct { + model.CommonResponse + AlibabaIdleRentItemQueryAPIResponseModel +} + +// 查询租赁商品信息 成功返回结果 +type AlibabaIdleRentItemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_rent_item_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaIdleRentItemQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleRentItemQueryResponse.go b/model/idle/AlibabaIdleRentItemQueryResponse.go deleted file mode 100644 index 5b70bf545f..0000000000 --- a/model/idle/AlibabaIdleRentItemQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询租赁商品信息 API返回值 -alibaba.idle.rent.item.query - -查询租赁商品信息 -*/ -type AlibabaIdleRentItemQueryAPIResponse struct { - model.CommonResponse - AlibabaIdleRentItemQueryResponse -} - -// 查询租赁商品信息 成功返回结果 -type AlibabaIdleRentItemQueryResponse struct { - XMLName xml.Name `xml:"alibaba_idle_rent_item_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaIdleRentItemQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleRentItemSkuUpdateAPIRequest.go b/model/idle/AlibabaIdleRentItemSkuUpdateAPIRequest.go new file mode 100644 index 0000000000..2a59e9c061 --- /dev/null +++ b/model/idle/AlibabaIdleRentItemSkuUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新/增加sku信息 API请求 +alibaba.idle.rent.item.sku.update + +更新/增加sku信息 +*/ +type AlibabaIdleRentItemSkuUpdateAPIRequest struct { + model.Params + // sku信息,更新后skuId保持不变 + _sku *ItemSkuDto +} + +// 初始化AlibabaIdleRentItemSkuUpdateAPIRequest对象 +func NewAlibabaIdleRentItemSkuUpdateRequest() *AlibabaIdleRentItemSkuUpdateAPIRequest{ + return &AlibabaIdleRentItemSkuUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleRentItemSkuUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.idle.rent.item.sku.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleRentItemSkuUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Sku Setter +// sku信息,更新后skuId保持不变 +func (r *AlibabaIdleRentItemSkuUpdateAPIRequest) SetSku(_sku *ItemSkuDto) error { + r._sku = _sku + r.Set("sku", _sku) + return nil +} + +// Sku Getter +func (r AlibabaIdleRentItemSkuUpdateAPIRequest) GetSku() *ItemSkuDto { + return r._sku +} diff --git a/model/idle/AlibabaIdleRentItemSkuUpdateAPIResponse.go b/model/idle/AlibabaIdleRentItemSkuUpdateAPIResponse.go new file mode 100644 index 0000000000..7bf5e7a04b --- /dev/null +++ b/model/idle/AlibabaIdleRentItemSkuUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新/增加sku信息 API返回值 +alibaba.idle.rent.item.sku.update + +更新/增加sku信息 +*/ +type AlibabaIdleRentItemSkuUpdateAPIResponse struct { + model.CommonResponse + AlibabaIdleRentItemSkuUpdateAPIResponseModel +} + +// 更新/增加sku信息 成功返回结果 +type AlibabaIdleRentItemSkuUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_rent_item_sku_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleRentItemSkuUpdateResponse.go b/model/idle/AlibabaIdleRentItemSkuUpdateResponse.go deleted file mode 100644 index d4d682db9a..0000000000 --- a/model/idle/AlibabaIdleRentItemSkuUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新/增加sku信息 API返回值 -alibaba.idle.rent.item.sku.update - -更新/增加sku信息 -*/ -type AlibabaIdleRentItemSkuUpdateAPIResponse struct { - model.CommonResponse - AlibabaIdleRentItemSkuUpdateResponse -} - -// 更新/增加sku信息 成功返回结果 -type AlibabaIdleRentItemSkuUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_idle_rent_item_sku_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleRentMediaUploadAPIRequest.go b/model/idle/AlibabaIdleRentMediaUploadAPIRequest.go new file mode 100644 index 0000000000..e0a54cd3b6 --- /dev/null +++ b/model/idle/AlibabaIdleRentMediaUploadAPIRequest.go @@ -0,0 +1,80 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼多媒体上传接口 API请求 +alibaba.idle.rent.media.upload + +上传多媒体信息,包括图片、视频(暂不支持) +*/ +type AlibabaIdleRentMediaUploadAPIRequest struct { + model.Params + // 多媒体字节数组 + _data *model.File + // 文件名 + _name string + // 0-表示图片,1-表示视频(暂不支持) + _type int64 +} + +// 初始化AlibabaIdleRentMediaUploadAPIRequest对象 +func NewAlibabaIdleRentMediaUploadRequest() *AlibabaIdleRentMediaUploadAPIRequest{ + return &AlibabaIdleRentMediaUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleRentMediaUploadAPIRequest) GetApiMethodName() string { + return "alibaba.idle.rent.media.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleRentMediaUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Data Setter +// 多媒体字节数组 +func (r *AlibabaIdleRentMediaUploadAPIRequest) SetData(_data *model.File) error { + r._data = _data + r.Set("data", _data) + return nil +} + +// Data Getter +func (r AlibabaIdleRentMediaUploadAPIRequest) GetData() *model.File { + return r._data +} +// Name Setter +// 文件名 +func (r *AlibabaIdleRentMediaUploadAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r AlibabaIdleRentMediaUploadAPIRequest) GetName() string { + return r._name +} +// Type Setter +// 0-表示图片,1-表示视频(暂不支持) +func (r *AlibabaIdleRentMediaUploadAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaIdleRentMediaUploadAPIRequest) GetType() int64 { + return r._type +} diff --git a/model/idle/AlibabaIdleRentMediaUploadAPIResponse.go b/model/idle/AlibabaIdleRentMediaUploadAPIResponse.go new file mode 100644 index 0000000000..792510437b --- /dev/null +++ b/model/idle/AlibabaIdleRentMediaUploadAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼多媒体上传接口 API返回值 +alibaba.idle.rent.media.upload + +上传多媒体信息,包括图片、视频(暂不支持) +*/ +type AlibabaIdleRentMediaUploadAPIResponse struct { + model.CommonResponse + AlibabaIdleRentMediaUploadAPIResponseModel +} + +// 闲鱼多媒体上传接口 成功返回结果 +type AlibabaIdleRentMediaUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_rent_media_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应数据 + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleRentMediaUploadResponse.go b/model/idle/AlibabaIdleRentMediaUploadResponse.go deleted file mode 100644 index 07869d77e2..0000000000 --- a/model/idle/AlibabaIdleRentMediaUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼多媒体上传接口 API返回值 -alibaba.idle.rent.media.upload - -上传多媒体信息,包括图片、视频(暂不支持) -*/ -type AlibabaIdleRentMediaUploadAPIResponse struct { - model.CommonResponse - AlibabaIdleRentMediaUploadResponse -} - -// 闲鱼多媒体上传接口 成功返回结果 -type AlibabaIdleRentMediaUploadResponse struct { - XMLName xml.Name `xml:"alibaba_idle_rent_media_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应数据 - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleRentOrderCheckstatusUploadAPIRequest.go b/model/idle/AlibabaIdleRentOrderCheckstatusUploadAPIRequest.go new file mode 100644 index 0000000000..1648b0ffd9 --- /dev/null +++ b/model/idle/AlibabaIdleRentOrderCheckstatusUploadAPIRequest.go @@ -0,0 +1,66 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传验收结果 API请求 +alibaba.idle.rent.order.checkstatus.upload + +上传验收结果 +*/ +type AlibabaIdleRentOrderCheckstatusUploadAPIRequest struct { + model.Params + // 订单id + _orderId int64 + // 校验结果 + _checkResult *CheckResultDto +} + +// 初始化AlibabaIdleRentOrderCheckstatusUploadAPIRequest对象 +func NewAlibabaIdleRentOrderCheckstatusUploadRequest() *AlibabaIdleRentOrderCheckstatusUploadAPIRequest{ + return &AlibabaIdleRentOrderCheckstatusUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleRentOrderCheckstatusUploadAPIRequest) GetApiMethodName() string { + return "alibaba.idle.rent.order.checkstatus.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleRentOrderCheckstatusUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单id +func (r *AlibabaIdleRentOrderCheckstatusUploadAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaIdleRentOrderCheckstatusUploadAPIRequest) GetOrderId() int64 { + return r._orderId +} +// CheckResult Setter +// 校验结果 +func (r *AlibabaIdleRentOrderCheckstatusUploadAPIRequest) SetCheckResult(_checkResult *CheckResultDto) error { + r._checkResult = _checkResult + r.Set("check_result", _checkResult) + return nil +} + +// CheckResult Getter +func (r AlibabaIdleRentOrderCheckstatusUploadAPIRequest) GetCheckResult() *CheckResultDto { + return r._checkResult +} diff --git a/model/idle/AlibabaIdleRentOrderCheckstatusUploadAPIResponse.go b/model/idle/AlibabaIdleRentOrderCheckstatusUploadAPIResponse.go new file mode 100644 index 0000000000..2f240eb2f4 --- /dev/null +++ b/model/idle/AlibabaIdleRentOrderCheckstatusUploadAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传验收结果 API返回值 +alibaba.idle.rent.order.checkstatus.upload + +上传验收结果 +*/ +type AlibabaIdleRentOrderCheckstatusUploadAPIResponse struct { + model.CommonResponse + AlibabaIdleRentOrderCheckstatusUploadAPIResponseModel +} + +// 上传验收结果 成功返回结果 +type AlibabaIdleRentOrderCheckstatusUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_rent_order_checkstatus_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleRentOrderCheckstatusUploadResponse.go b/model/idle/AlibabaIdleRentOrderCheckstatusUploadResponse.go deleted file mode 100644 index 5b01bd526c..0000000000 --- a/model/idle/AlibabaIdleRentOrderCheckstatusUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传验收结果 API返回值 -alibaba.idle.rent.order.checkstatus.upload - -上传验收结果 -*/ -type AlibabaIdleRentOrderCheckstatusUploadAPIResponse struct { - model.CommonResponse - AlibabaIdleRentOrderCheckstatusUploadResponse -} - -// 上传验收结果 成功返回结果 -type AlibabaIdleRentOrderCheckstatusUploadResponse struct { - XMLName xml.Name `xml:"alibaba_idle_rent_order_checkstatus_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleRentOrderLogisticsDeliverAPIRequest.go b/model/idle/AlibabaIdleRentOrderLogisticsDeliverAPIRequest.go new file mode 100644 index 0000000000..239753a074 --- /dev/null +++ b/model/idle/AlibabaIdleRentOrderLogisticsDeliverAPIRequest.go @@ -0,0 +1,67 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建揽收物流 API请求 +alibaba.idle.rent.order.logistics.deliver + +创建揽收物流 +商家去物流公司创建物流订单 +*/ +type AlibabaIdleRentOrderLogisticsDeliverAPIRequest struct { + model.Params + // 订单id + _orderId int64 + // 物流信息 + _logistics *LogisticsDto +} + +// 初始化AlibabaIdleRentOrderLogisticsDeliverAPIRequest对象 +func NewAlibabaIdleRentOrderLogisticsDeliverRequest() *AlibabaIdleRentOrderLogisticsDeliverAPIRequest{ + return &AlibabaIdleRentOrderLogisticsDeliverAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleRentOrderLogisticsDeliverAPIRequest) GetApiMethodName() string { + return "alibaba.idle.rent.order.logistics.deliver" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleRentOrderLogisticsDeliverAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单id +func (r *AlibabaIdleRentOrderLogisticsDeliverAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaIdleRentOrderLogisticsDeliverAPIRequest) GetOrderId() int64 { + return r._orderId +} +// Logistics Setter +// 物流信息 +func (r *AlibabaIdleRentOrderLogisticsDeliverAPIRequest) SetLogistics(_logistics *LogisticsDto) error { + r._logistics = _logistics + r.Set("logistics", _logistics) + return nil +} + +// Logistics Getter +func (r AlibabaIdleRentOrderLogisticsDeliverAPIRequest) GetLogistics() *LogisticsDto { + return r._logistics +} diff --git a/model/idle/AlibabaIdleRentOrderLogisticsDeliverAPIResponse.go b/model/idle/AlibabaIdleRentOrderLogisticsDeliverAPIResponse.go new file mode 100644 index 0000000000..6bc1027471 --- /dev/null +++ b/model/idle/AlibabaIdleRentOrderLogisticsDeliverAPIResponse.go @@ -0,0 +1,28 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建揽收物流 API返回值 +alibaba.idle.rent.order.logistics.deliver + +创建揽收物流 +商家去物流公司创建物流订单 +*/ +type AlibabaIdleRentOrderLogisticsDeliverAPIResponse struct { + model.CommonResponse + AlibabaIdleRentOrderLogisticsDeliverAPIResponseModel +} + +// 创建揽收物流 成功返回结果 +type AlibabaIdleRentOrderLogisticsDeliverAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_rent_order_logistics_deliver_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleRentOrderLogisticsDeliverResponse.go b/model/idle/AlibabaIdleRentOrderLogisticsDeliverResponse.go deleted file mode 100644 index c619e1e57a..0000000000 --- a/model/idle/AlibabaIdleRentOrderLogisticsDeliverResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建揽收物流 API返回值 -alibaba.idle.rent.order.logistics.deliver - -创建揽收物流 -商家去物流公司创建物流订单 -*/ -type AlibabaIdleRentOrderLogisticsDeliverAPIResponse struct { - model.CommonResponse - AlibabaIdleRentOrderLogisticsDeliverResponse -} - -// 创建揽收物流 成功返回结果 -type AlibabaIdleRentOrderLogisticsDeliverResponse struct { - XMLName xml.Name `xml:"alibaba_idle_rent_order_logistics_deliver_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleRentOrderPackageAPIRequest.go b/model/idle/AlibabaIdleRentOrderPackageAPIRequest.go new file mode 100644 index 0000000000..559345f1dc --- /dev/null +++ b/model/idle/AlibabaIdleRentOrderPackageAPIRequest.go @@ -0,0 +1,66 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +确认揽收商品 API请求 +alibaba.idle.rent.order.package + +确认揽收 +*/ +type AlibabaIdleRentOrderPackageAPIRequest struct { + model.Params + // 订单id + _orderId int64 + // 物流信息 + _logistics *LogisticsDto +} + +// 初始化AlibabaIdleRentOrderPackageAPIRequest对象 +func NewAlibabaIdleRentOrderPackageRequest() *AlibabaIdleRentOrderPackageAPIRequest{ + return &AlibabaIdleRentOrderPackageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleRentOrderPackageAPIRequest) GetApiMethodName() string { + return "alibaba.idle.rent.order.package" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleRentOrderPackageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单id +func (r *AlibabaIdleRentOrderPackageAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaIdleRentOrderPackageAPIRequest) GetOrderId() int64 { + return r._orderId +} +// Logistics Setter +// 物流信息 +func (r *AlibabaIdleRentOrderPackageAPIRequest) SetLogistics(_logistics *LogisticsDto) error { + r._logistics = _logistics + r.Set("logistics", _logistics) + return nil +} + +// Logistics Getter +func (r AlibabaIdleRentOrderPackageAPIRequest) GetLogistics() *LogisticsDto { + return r._logistics +} diff --git a/model/idle/AlibabaIdleRentOrderPackageAPIResponse.go b/model/idle/AlibabaIdleRentOrderPackageAPIResponse.go new file mode 100644 index 0000000000..837b9a76b0 --- /dev/null +++ b/model/idle/AlibabaIdleRentOrderPackageAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +确认揽收商品 API返回值 +alibaba.idle.rent.order.package + +确认揽收 +*/ +type AlibabaIdleRentOrderPackageAPIResponse struct { + model.CommonResponse + AlibabaIdleRentOrderPackageAPIResponseModel +} + +// 确认揽收商品 成功返回结果 +type AlibabaIdleRentOrderPackageAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_rent_order_package_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleRentOrderPackageResponse.go b/model/idle/AlibabaIdleRentOrderPackageResponse.go deleted file mode 100644 index 261e98d85f..0000000000 --- a/model/idle/AlibabaIdleRentOrderPackageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -确认揽收商品 API返回值 -alibaba.idle.rent.order.package - -确认揽收 -*/ -type AlibabaIdleRentOrderPackageAPIResponse struct { - model.CommonResponse - AlibabaIdleRentOrderPackageResponse -} - -// 确认揽收商品 成功返回结果 -type AlibabaIdleRentOrderPackageResponse struct { - XMLName xml.Name `xml:"alibaba_idle_rent_order_package_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleRentOrderQueryAPIRequest.go b/model/idle/AlibabaIdleRentOrderQueryAPIRequest.go new file mode 100644 index 0000000000..a4e6cd6775 --- /dev/null +++ b/model/idle/AlibabaIdleRentOrderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询订单 API请求 +alibaba.idle.rent.order.query + +查询订单信息 +*/ +type AlibabaIdleRentOrderQueryAPIRequest struct { + model.Params + // 订单id + _orderId int64 +} + +// 初始化AlibabaIdleRentOrderQueryAPIRequest对象 +func NewAlibabaIdleRentOrderQueryRequest() *AlibabaIdleRentOrderQueryAPIRequest{ + return &AlibabaIdleRentOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleRentOrderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.idle.rent.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleRentOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单id +func (r *AlibabaIdleRentOrderQueryAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaIdleRentOrderQueryAPIRequest) GetOrderId() int64 { + return r._orderId +} diff --git a/model/idle/AlibabaIdleRentOrderQueryAPIResponse.go b/model/idle/AlibabaIdleRentOrderQueryAPIResponse.go new file mode 100644 index 0000000000..0101bd9a8e --- /dev/null +++ b/model/idle/AlibabaIdleRentOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询订单 API返回值 +alibaba.idle.rent.order.query + +查询订单信息 +*/ +type AlibabaIdleRentOrderQueryAPIResponse struct { + model.CommonResponse + AlibabaIdleRentOrderQueryAPIResponseModel +} + +// 查询订单 成功返回结果 +type AlibabaIdleRentOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_rent_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleRentOrderQueryResponse.go b/model/idle/AlibabaIdleRentOrderQueryResponse.go deleted file mode 100644 index 66985b21e7..0000000000 --- a/model/idle/AlibabaIdleRentOrderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询订单 API返回值 -alibaba.idle.rent.order.query - -查询订单信息 -*/ -type AlibabaIdleRentOrderQueryAPIResponse struct { - model.CommonResponse - AlibabaIdleRentOrderQueryResponse -} - -// 查询订单 成功返回结果 -type AlibabaIdleRentOrderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_idle_rent_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleRentOrderReceiveitemAPIRequest.go b/model/idle/AlibabaIdleRentOrderReceiveitemAPIRequest.go new file mode 100644 index 0000000000..4a4279e011 --- /dev/null +++ b/model/idle/AlibabaIdleRentOrderReceiveitemAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +确认签收 API请求 +alibaba.idle.rent.order.receiveitem + +确认揽收/签收 +*/ +type AlibabaIdleRentOrderReceiveitemAPIRequest struct { + model.Params + // 订单id + _orderId int64 +} + +// 初始化AlibabaIdleRentOrderReceiveitemAPIRequest对象 +func NewAlibabaIdleRentOrderReceiveitemRequest() *AlibabaIdleRentOrderReceiveitemAPIRequest{ + return &AlibabaIdleRentOrderReceiveitemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleRentOrderReceiveitemAPIRequest) GetApiMethodName() string { + return "alibaba.idle.rent.order.receiveitem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleRentOrderReceiveitemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单id +func (r *AlibabaIdleRentOrderReceiveitemAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaIdleRentOrderReceiveitemAPIRequest) GetOrderId() int64 { + return r._orderId +} diff --git a/model/idle/AlibabaIdleRentOrderReceiveitemAPIResponse.go b/model/idle/AlibabaIdleRentOrderReceiveitemAPIResponse.go new file mode 100644 index 0000000000..394a895f37 --- /dev/null +++ b/model/idle/AlibabaIdleRentOrderReceiveitemAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +确认签收 API返回值 +alibaba.idle.rent.order.receiveitem + +确认揽收/签收 +*/ +type AlibabaIdleRentOrderReceiveitemAPIResponse struct { + model.CommonResponse + AlibabaIdleRentOrderReceiveitemAPIResponseModel +} + +// 确认签收 成功返回结果 +type AlibabaIdleRentOrderReceiveitemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_rent_order_receiveitem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleRentOrderReceiveitemResponse.go b/model/idle/AlibabaIdleRentOrderReceiveitemResponse.go deleted file mode 100644 index badd2e0607..0000000000 --- a/model/idle/AlibabaIdleRentOrderReceiveitemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -确认签收 API返回值 -alibaba.idle.rent.order.receiveitem - -确认揽收/签收 -*/ -type AlibabaIdleRentOrderReceiveitemAPIResponse struct { - model.CommonResponse - AlibabaIdleRentOrderReceiveitemResponse -} - -// 确认签收 成功返回结果 -type AlibabaIdleRentOrderReceiveitemResponse struct { - XMLName xml.Name `xml:"alibaba_idle_rent_order_receiveitem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleRentOrderSenditemAPIRequest.go b/model/idle/AlibabaIdleRentOrderSenditemAPIRequest.go new file mode 100644 index 0000000000..e56be59641 --- /dev/null +++ b/model/idle/AlibabaIdleRentOrderSenditemAPIRequest.go @@ -0,0 +1,66 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +确认发货 API请求 +alibaba.idle.rent.order.senditem + +确认发货 +*/ +type AlibabaIdleRentOrderSenditemAPIRequest struct { + model.Params + // 订单id + _orderId int64 + // 物流信息 + _logisticsList []LogisticsDto +} + +// 初始化AlibabaIdleRentOrderSenditemAPIRequest对象 +func NewAlibabaIdleRentOrderSenditemRequest() *AlibabaIdleRentOrderSenditemAPIRequest{ + return &AlibabaIdleRentOrderSenditemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleRentOrderSenditemAPIRequest) GetApiMethodName() string { + return "alibaba.idle.rent.order.senditem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleRentOrderSenditemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单id +func (r *AlibabaIdleRentOrderSenditemAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaIdleRentOrderSenditemAPIRequest) GetOrderId() int64 { + return r._orderId +} +// LogisticsList Setter +// 物流信息 +func (r *AlibabaIdleRentOrderSenditemAPIRequest) SetLogisticsList(_logisticsList []LogisticsDto) error { + r._logisticsList = _logisticsList + r.Set("logistics_list", _logisticsList) + return nil +} + +// LogisticsList Getter +func (r AlibabaIdleRentOrderSenditemAPIRequest) GetLogisticsList() []LogisticsDto { + return r._logisticsList +} diff --git a/model/idle/AlibabaIdleRentOrderSenditemAPIResponse.go b/model/idle/AlibabaIdleRentOrderSenditemAPIResponse.go new file mode 100644 index 0000000000..480c96a44b --- /dev/null +++ b/model/idle/AlibabaIdleRentOrderSenditemAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +确认发货 API返回值 +alibaba.idle.rent.order.senditem + +确认发货 +*/ +type AlibabaIdleRentOrderSenditemAPIResponse struct { + model.CommonResponse + AlibabaIdleRentOrderSenditemAPIResponseModel +} + +// 确认发货 成功返回结果 +type AlibabaIdleRentOrderSenditemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_rent_order_senditem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleRentOrderSenditemResponse.go b/model/idle/AlibabaIdleRentOrderSenditemResponse.go deleted file mode 100644 index c7fa9bae87..0000000000 --- a/model/idle/AlibabaIdleRentOrderSenditemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -确认发货 API返回值 -alibaba.idle.rent.order.senditem - -确认发货 -*/ -type AlibabaIdleRentOrderSenditemAPIResponse struct { - model.CommonResponse - AlibabaIdleRentOrderSenditemResponse -} - -// 确认发货 成功返回结果 -type AlibabaIdleRentOrderSenditemResponse struct { - XMLName xml.Name `xml:"alibaba_idle_rent_order_senditem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleSpuRegisterModifyAPIRequest.go b/model/idle/AlibabaIdleSpuRegisterModifyAPIRequest.go new file mode 100644 index 0000000000..a136981608 --- /dev/null +++ b/model/idle/AlibabaIdleSpuRegisterModifyAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商spu挂载接口 API请求 +alibaba.idle.spu.register.modify + +闲鱼服务商通过此接口进行spu挂载,指明自己支持对该spu的服务(回收、验货等) +*/ +type AlibabaIdleSpuRegisterModifyAPIRequest struct { + model.Params + // 入参 + _idleSpuRegister4TopDto *IdleSpuRegister4TopDto +} + +// 初始化AlibabaIdleSpuRegisterModifyAPIRequest对象 +func NewAlibabaIdleSpuRegisterModifyRequest() *AlibabaIdleSpuRegisterModifyAPIRequest{ + return &AlibabaIdleSpuRegisterModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleSpuRegisterModifyAPIRequest) GetApiMethodName() string { + return "alibaba.idle.spu.register.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleSpuRegisterModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IdleSpuRegister4TopDto Setter +// 入参 +func (r *AlibabaIdleSpuRegisterModifyAPIRequest) SetIdleSpuRegister4TopDto(_idleSpuRegister4TopDto *IdleSpuRegister4TopDto) error { + r._idleSpuRegister4TopDto = _idleSpuRegister4TopDto + r.Set("idle_spu_register4_top_dto", _idleSpuRegister4TopDto) + return nil +} + +// IdleSpuRegister4TopDto Getter +func (r AlibabaIdleSpuRegisterModifyAPIRequest) GetIdleSpuRegister4TopDto() *IdleSpuRegister4TopDto { + return r._idleSpuRegister4TopDto +} diff --git a/model/idle/AlibabaIdleSpuRegisterModifyAPIResponse.go b/model/idle/AlibabaIdleSpuRegisterModifyAPIResponse.go new file mode 100644 index 0000000000..6e88f57ddc --- /dev/null +++ b/model/idle/AlibabaIdleSpuRegisterModifyAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商spu挂载接口 API返回值 +alibaba.idle.spu.register.modify + +闲鱼服务商通过此接口进行spu挂载,指明自己支持对该spu的服务(回收、验货等) +*/ +type AlibabaIdleSpuRegisterModifyAPIResponse struct { + model.CommonResponse + AlibabaIdleSpuRegisterModifyAPIResponseModel +} + +// 服务商spu挂载接口 成功返回结果 +type AlibabaIdleSpuRegisterModifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_spu_register_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaIdleSpuRegisterModifyResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleSpuRegisterModifyResponse.go b/model/idle/AlibabaIdleSpuRegisterModifyResponse.go deleted file mode 100644 index 132975643f..0000000000 --- a/model/idle/AlibabaIdleSpuRegisterModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商spu挂载接口 API返回值 -alibaba.idle.spu.register.modify - -闲鱼服务商通过此接口进行spu挂载,指明自己支持对该spu的服务(回收、验货等) -*/ -type AlibabaIdleSpuRegisterModifyAPIResponse struct { - model.CommonResponse - AlibabaIdleSpuRegisterModifyResponse -} - -// 服务商spu挂载接口 成功返回结果 -type AlibabaIdleSpuRegisterModifyResponse struct { - XMLName xml.Name `xml:"alibaba_idle_spu_register_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaIdleSpuRegisterModifyResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleTransferpayQueryAPIRequest.go b/model/idle/AlibabaIdleTransferpayQueryAPIRequest.go new file mode 100644 index 0000000000..fa695110c2 --- /dev/null +++ b/model/idle/AlibabaIdleTransferpayQueryAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼转账结果查询 API请求 +alibaba.idle.transferpay.query + +商家业务 转账支付的结果查询 +*/ +type AlibabaIdleTransferpayQueryAPIRequest struct { + model.Params + // 入参 + _param *PayQueryRequest +} + +// 初始化AlibabaIdleTransferpayQueryAPIRequest对象 +func NewAlibabaIdleTransferpayQueryRequest() *AlibabaIdleTransferpayQueryAPIRequest{ + return &AlibabaIdleTransferpayQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleTransferpayQueryAPIRequest) GetApiMethodName() string { + return "alibaba.idle.transferpay.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleTransferpayQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *AlibabaIdleTransferpayQueryAPIRequest) SetParam(_param *PayQueryRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaIdleTransferpayQueryAPIRequest) GetParam() *PayQueryRequest { + return r._param +} diff --git a/model/idle/AlibabaIdleTransferpayQueryAPIResponse.go b/model/idle/AlibabaIdleTransferpayQueryAPIResponse.go new file mode 100644 index 0000000000..4b4137a0c2 --- /dev/null +++ b/model/idle/AlibabaIdleTransferpayQueryAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼转账结果查询 API返回值 +alibaba.idle.transferpay.query + +商家业务 转账支付的结果查询 +*/ +type AlibabaIdleTransferpayQueryAPIResponse struct { + model.CommonResponse + AlibabaIdleTransferpayQueryAPIResponseModel +} + +// 闲鱼转账结果查询 成功返回结果 +type AlibabaIdleTransferpayQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_transferpay_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaIdleTransferpayQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleTransferpayQueryResponse.go b/model/idle/AlibabaIdleTransferpayQueryResponse.go deleted file mode 100644 index 4d1f16cd2c..0000000000 --- a/model/idle/AlibabaIdleTransferpayQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼转账结果查询 API返回值 -alibaba.idle.transferpay.query - -商家业务 转账支付的结果查询 -*/ -type AlibabaIdleTransferpayQueryAPIResponse struct { - model.CommonResponse - AlibabaIdleTransferpayQueryResponse -} - -// 闲鱼转账结果查询 成功返回结果 -type AlibabaIdleTransferpayQueryResponse struct { - XMLName xml.Name `xml:"alibaba_idle_transferpay_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaIdleTransferpayQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/AlibabaIdleUserPermitAPIRequest.go b/model/idle/AlibabaIdleUserPermitAPIRequest.go new file mode 100644 index 0000000000..ccbbb28023 --- /dev/null +++ b/model/idle/AlibabaIdleUserPermitAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户appkey授权 API请求 +alibaba.idle.user.permit + +用于记录登录用户与服务商的绑定关系,用于业务数据分发和授权校验 +*/ +type AlibabaIdleUserPermitAPIRequest struct { + model.Params + // 授权请求 + _paramUserGrantRequest *UserGrantRequest +} + +// 初始化AlibabaIdleUserPermitAPIRequest对象 +func NewAlibabaIdleUserPermitRequest() *AlibabaIdleUserPermitAPIRequest{ + return &AlibabaIdleUserPermitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleUserPermitAPIRequest) GetApiMethodName() string { + return "alibaba.idle.user.permit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleUserPermitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamUserGrantRequest Setter +// 授权请求 +func (r *AlibabaIdleUserPermitAPIRequest) SetParamUserGrantRequest(_paramUserGrantRequest *UserGrantRequest) error { + r._paramUserGrantRequest = _paramUserGrantRequest + r.Set("param_user_grant_request", _paramUserGrantRequest) + return nil +} + +// ParamUserGrantRequest Getter +func (r AlibabaIdleUserPermitAPIRequest) GetParamUserGrantRequest() *UserGrantRequest { + return r._paramUserGrantRequest +} diff --git a/model/idle/AlibabaIdleUserPermitAPIResponse.go b/model/idle/AlibabaIdleUserPermitAPIResponse.go new file mode 100644 index 0000000000..1b38c08924 --- /dev/null +++ b/model/idle/AlibabaIdleUserPermitAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户appkey授权 API返回值 +alibaba.idle.user.permit + +用于记录登录用户与服务商的绑定关系,用于业务数据分发和授权校验 +*/ +type AlibabaIdleUserPermitAPIResponse struct { + model.CommonResponse + AlibabaIdleUserPermitAPIResponseModel +} + +// 用户appkey授权 成功返回结果 +type AlibabaIdleUserPermitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_user_permit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回包装类 + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/AlibabaIdleUserPermitResponse.go b/model/idle/AlibabaIdleUserPermitResponse.go deleted file mode 100644 index e872e4b1ff..0000000000 --- a/model/idle/AlibabaIdleUserPermitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户appkey授权 API返回值 -alibaba.idle.user.permit - -用于记录登录用户与服务商的绑定关系,用于业务数据分发和授权校验 -*/ -type AlibabaIdleUserPermitAPIResponse struct { - model.CommonResponse - AlibabaIdleUserPermitResponse -} - -// 用户appkey授权 成功返回结果 -type AlibabaIdleUserPermitResponse struct { - XMLName xml.Name `xml:"alibaba_idle_user_permit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回包装类 - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/TaobaoIdleRecycleRefundApplyAPIRequest.go b/model/idle/TaobaoIdleRecycleRefundApplyAPIRequest.go new file mode 100644 index 0000000000..afde9db3f8 --- /dev/null +++ b/model/idle/TaobaoIdleRecycleRefundApplyAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼回收交易退款申请V2 API请求 +taobao.idle.recycle.refund.apply + +回收商买家申请退款 +*/ +type TaobaoIdleRecycleRefundApplyAPIRequest struct { + model.Params + // 退款申请 + _refundApply *RecycleRefundTopRequest +} + +// 初始化TaobaoIdleRecycleRefundApplyAPIRequest对象 +func NewTaobaoIdleRecycleRefundApplyRequest() *TaobaoIdleRecycleRefundApplyAPIRequest{ + return &TaobaoIdleRecycleRefundApplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoIdleRecycleRefundApplyAPIRequest) GetApiMethodName() string { + return "taobao.idle.recycle.refund.apply" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoIdleRecycleRefundApplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundApply Setter +// 退款申请 +func (r *TaobaoIdleRecycleRefundApplyAPIRequest) SetRefundApply(_refundApply *RecycleRefundTopRequest) error { + r._refundApply = _refundApply + r.Set("refund_apply", _refundApply) + return nil +} + +// RefundApply Getter +func (r TaobaoIdleRecycleRefundApplyAPIRequest) GetRefundApply() *RecycleRefundTopRequest { + return r._refundApply +} diff --git a/model/idle/TaobaoIdleRecycleRefundApplyAPIResponse.go b/model/idle/TaobaoIdleRecycleRefundApplyAPIResponse.go new file mode 100644 index 0000000000..2cbc7424c2 --- /dev/null +++ b/model/idle/TaobaoIdleRecycleRefundApplyAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼回收交易退款申请V2 API返回值 +taobao.idle.recycle.refund.apply + +回收商买家申请退款 +*/ +type TaobaoIdleRecycleRefundApplyAPIResponse struct { + model.CommonResponse + TaobaoIdleRecycleRefundApplyAPIResponseModel +} + +// 闲鱼回收交易退款申请V2 成功返回结果 +type TaobaoIdleRecycleRefundApplyAPIResponseModel struct { + XMLName xml.Name `xml:"idle_recycle_refund_apply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 退款申请结果 + Result *IdleTopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/TaobaoIdleRecycleRefundApplyResponse.go b/model/idle/TaobaoIdleRecycleRefundApplyResponse.go deleted file mode 100644 index 1d4efcc56b..0000000000 --- a/model/idle/TaobaoIdleRecycleRefundApplyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼回收交易退款申请V2 API返回值 -taobao.idle.recycle.refund.apply - -回收商买家申请退款 -*/ -type TaobaoIdleRecycleRefundApplyAPIResponse struct { - model.CommonResponse - TaobaoIdleRecycleRefundApplyResponse -} - -// 闲鱼回收交易退款申请V2 成功返回结果 -type TaobaoIdleRecycleRefundApplyResponse struct { - XMLName xml.Name `xml:"idle_recycle_refund_apply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 退款申请结果 - Result *IdleTopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/TaobaoIdleRecycleRefundCancleapplyAPIRequest.go b/model/idle/TaobaoIdleRecycleRefundCancleapplyAPIRequest.go new file mode 100644 index 0000000000..3e7fb83907 --- /dev/null +++ b/model/idle/TaobaoIdleRecycleRefundCancleapplyAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼回收取消退款申请V2 API请求 +taobao.idle.recycle.refund.cancleapply + +回收商的回收订单取消退款申请 +*/ +type TaobaoIdleRecycleRefundCancleapplyAPIRequest struct { + model.Params + // 订单号 + _bizOrderId int64 +} + +// 初始化TaobaoIdleRecycleRefundCancleapplyAPIRequest对象 +func NewTaobaoIdleRecycleRefundCancleapplyRequest() *TaobaoIdleRecycleRefundCancleapplyAPIRequest{ + return &TaobaoIdleRecycleRefundCancleapplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoIdleRecycleRefundCancleapplyAPIRequest) GetApiMethodName() string { + return "taobao.idle.recycle.refund.cancleapply" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoIdleRecycleRefundCancleapplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizOrderId Setter +// 订单号 +func (r *TaobaoIdleRecycleRefundCancleapplyAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r TaobaoIdleRecycleRefundCancleapplyAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} diff --git a/model/idle/TaobaoIdleRecycleRefundCancleapplyAPIResponse.go b/model/idle/TaobaoIdleRecycleRefundCancleapplyAPIResponse.go new file mode 100644 index 0000000000..c995750132 --- /dev/null +++ b/model/idle/TaobaoIdleRecycleRefundCancleapplyAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼回收取消退款申请V2 API返回值 +taobao.idle.recycle.refund.cancleapply + +回收商的回收订单取消退款申请 +*/ +type TaobaoIdleRecycleRefundCancleapplyAPIResponse struct { + model.CommonResponse + TaobaoIdleRecycleRefundCancleapplyAPIResponseModel +} + +// 闲鱼回收取消退款申请V2 成功返回结果 +type TaobaoIdleRecycleRefundCancleapplyAPIResponseModel struct { + XMLName xml.Name `xml:"idle_recycle_refund_cancleapply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 撤销申请结果 + Result *IdleTopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/TaobaoIdleRecycleRefundCancleapplyResponse.go b/model/idle/TaobaoIdleRecycleRefundCancleapplyResponse.go deleted file mode 100644 index 22a06be7bf..0000000000 --- a/model/idle/TaobaoIdleRecycleRefundCancleapplyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼回收取消退款申请V2 API返回值 -taobao.idle.recycle.refund.cancleapply - -回收商的回收订单取消退款申请 -*/ -type TaobaoIdleRecycleRefundCancleapplyAPIResponse struct { - model.CommonResponse - TaobaoIdleRecycleRefundCancleapplyResponse -} - -// 闲鱼回收取消退款申请V2 成功返回结果 -type TaobaoIdleRecycleRefundCancleapplyResponse struct { - XMLName xml.Name `xml:"idle_recycle_refund_cancleapply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 撤销申请结果 - Result *IdleTopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/TaobaoIdleRecycleRefundDetailAPIRequest.go b/model/idle/TaobaoIdleRecycleRefundDetailAPIRequest.go new file mode 100644 index 0000000000..505bcfea01 --- /dev/null +++ b/model/idle/TaobaoIdleRecycleRefundDetailAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼回收退款详情V2 API请求 +taobao.idle.recycle.refund.detail + +回收订单退款详情,主要包括退款状态,超时时间,和同意退款的卖家退货地址信息 +*/ +type TaobaoIdleRecycleRefundDetailAPIRequest struct { + model.Params + // 订单号 + _bizOrderId int64 +} + +// 初始化TaobaoIdleRecycleRefundDetailAPIRequest对象 +func NewTaobaoIdleRecycleRefundDetailRequest() *TaobaoIdleRecycleRefundDetailAPIRequest{ + return &TaobaoIdleRecycleRefundDetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoIdleRecycleRefundDetailAPIRequest) GetApiMethodName() string { + return "taobao.idle.recycle.refund.detail" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoIdleRecycleRefundDetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizOrderId Setter +// 订单号 +func (r *TaobaoIdleRecycleRefundDetailAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r TaobaoIdleRecycleRefundDetailAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} diff --git a/model/idle/TaobaoIdleRecycleRefundDetailAPIResponse.go b/model/idle/TaobaoIdleRecycleRefundDetailAPIResponse.go new file mode 100644 index 0000000000..5eab5df49d --- /dev/null +++ b/model/idle/TaobaoIdleRecycleRefundDetailAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼回收退款详情V2 API返回值 +taobao.idle.recycle.refund.detail + +回收订单退款详情,主要包括退款状态,超时时间,和同意退款的卖家退货地址信息 +*/ +type TaobaoIdleRecycleRefundDetailAPIResponse struct { + model.CommonResponse + TaobaoIdleRecycleRefundDetailAPIResponseModel +} + +// 闲鱼回收退款详情V2 成功返回结果 +type TaobaoIdleRecycleRefundDetailAPIResponseModel struct { + XMLName xml.Name `xml:"idle_recycle_refund_detail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 退款详情,说明文档:https://www.yuque.com/tushuguanyuan/fsgl7y/xn2lu8#ed2c2d6a + Result *IdleTopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/TaobaoIdleRecycleRefundDetailResponse.go b/model/idle/TaobaoIdleRecycleRefundDetailResponse.go deleted file mode 100644 index 71c336954d..0000000000 --- a/model/idle/TaobaoIdleRecycleRefundDetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼回收退款详情V2 API返回值 -taobao.idle.recycle.refund.detail - -回收订单退款详情,主要包括退款状态,超时时间,和同意退款的卖家退货地址信息 -*/ -type TaobaoIdleRecycleRefundDetailAPIResponse struct { - model.CommonResponse - TaobaoIdleRecycleRefundDetailResponse -} - -// 闲鱼回收退款详情V2 成功返回结果 -type TaobaoIdleRecycleRefundDetailResponse struct { - XMLName xml.Name `xml:"idle_recycle_refund_detail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 退款详情,说明文档:https://www.yuque.com/tushuguanyuan/fsgl7y/xn2lu8#ed2c2d6a - Result *IdleTopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idle/TaobaoIdleRecycleRefundReturngoodsAPIRequest.go b/model/idle/TaobaoIdleRecycleRefundReturngoodsAPIRequest.go new file mode 100644 index 0000000000..8a48d0a9cc --- /dev/null +++ b/model/idle/TaobaoIdleRecycleRefundReturngoodsAPIRequest.go @@ -0,0 +1,52 @@ +package idle + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼回收退货V2 API请求 +taobao.idle.recycle.refund.returngoods + +回收商买家退货,填写退货运单号 +*/ +type TaobaoIdleRecycleRefundReturngoodsAPIRequest struct { + model.Params + // 退货 + _param0 *RecycleReturnGoodsRequest +} + +// 初始化TaobaoIdleRecycleRefundReturngoodsAPIRequest对象 +func NewTaobaoIdleRecycleRefundReturngoodsRequest() *TaobaoIdleRecycleRefundReturngoodsAPIRequest{ + return &TaobaoIdleRecycleRefundReturngoodsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoIdleRecycleRefundReturngoodsAPIRequest) GetApiMethodName() string { + return "taobao.idle.recycle.refund.returngoods" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoIdleRecycleRefundReturngoodsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 退货 +func (r *TaobaoIdleRecycleRefundReturngoodsAPIRequest) SetParam0(_param0 *RecycleReturnGoodsRequest) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoIdleRecycleRefundReturngoodsAPIRequest) GetParam0() *RecycleReturnGoodsRequest { + return r._param0 +} diff --git a/model/idle/TaobaoIdleRecycleRefundReturngoodsAPIResponse.go b/model/idle/TaobaoIdleRecycleRefundReturngoodsAPIResponse.go new file mode 100644 index 0000000000..c0aa4e9532 --- /dev/null +++ b/model/idle/TaobaoIdleRecycleRefundReturngoodsAPIResponse.go @@ -0,0 +1,27 @@ +package idle + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼回收退货V2 API返回值 +taobao.idle.recycle.refund.returngoods + +回收商买家退货,填写退货运单号 +*/ +type TaobaoIdleRecycleRefundReturngoodsAPIResponse struct { + model.CommonResponse + TaobaoIdleRecycleRefundReturngoodsAPIResponseModel +} + +// 闲鱼回收退货V2 成功返回结果 +type TaobaoIdleRecycleRefundReturngoodsAPIResponseModel struct { + XMLName xml.Name `xml:"idle_recycle_refund_returngoods_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 退货 + Result *IdleTopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idle/TaobaoIdleRecycleRefundReturngoodsResponse.go b/model/idle/TaobaoIdleRecycleRefundReturngoodsResponse.go deleted file mode 100644 index fd1d6c5354..0000000000 --- a/model/idle/TaobaoIdleRecycleRefundReturngoodsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idle - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼回收退货V2 API返回值 -taobao.idle.recycle.refund.returngoods - -回收商买家退货,填写退货运单号 -*/ -type TaobaoIdleRecycleRefundReturngoodsAPIResponse struct { - model.CommonResponse - TaobaoIdleRecycleRefundReturngoodsResponse -} - -// 闲鱼回收退货V2 成功返回结果 -type TaobaoIdleRecycleRefundReturngoodsResponse struct { - XMLName xml.Name `xml:"idle_recycle_refund_returngoods_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 退货 - Result *IdleTopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idleisv/AlibabaIdleIsvItemDownshelfAPIRequest.go b/model/idleisv/AlibabaIdleIsvItemDownshelfAPIRequest.go new file mode 100644 index 0000000000..d0fe380878 --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvItemDownshelfAPIRequest.go @@ -0,0 +1,52 @@ +package idleisv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商闲鱼商品下架 API请求 +alibaba.idle.isv.item.downshelf + +供外部服务商ISV进行闲鱼商品下架操作 +*/ +type AlibabaIdleIsvItemDownshelfAPIRequest struct { + model.Params + // 返回结果result + _param *IdleItemBaseApiDo +} + +// 初始化AlibabaIdleIsvItemDownshelfAPIRequest对象 +func NewAlibabaIdleIsvItemDownshelfRequest() *AlibabaIdleIsvItemDownshelfAPIRequest{ + return &AlibabaIdleIsvItemDownshelfAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleIsvItemDownshelfAPIRequest) GetApiMethodName() string { + return "alibaba.idle.isv.item.downshelf" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleIsvItemDownshelfAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 返回结果result +func (r *AlibabaIdleIsvItemDownshelfAPIRequest) SetParam(_param *IdleItemBaseApiDo) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaIdleIsvItemDownshelfAPIRequest) GetParam() *IdleItemBaseApiDo { + return r._param +} diff --git a/model/idleisv/AlibabaIdleIsvItemDownshelfAPIResponse.go b/model/idleisv/AlibabaIdleIsvItemDownshelfAPIResponse.go new file mode 100644 index 0000000000..805e7a5b4f --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvItemDownshelfAPIResponse.go @@ -0,0 +1,27 @@ +package idleisv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商闲鱼商品下架 API返回值 +alibaba.idle.isv.item.downshelf + +供外部服务商ISV进行闲鱼商品下架操作 +*/ +type AlibabaIdleIsvItemDownshelfAPIResponse struct { + model.CommonResponse + AlibabaIdleIsvItemDownshelfAPIResponseModel +} + +// 服务商闲鱼商品下架 成功返回结果 +type AlibabaIdleIsvItemDownshelfAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_isv_item_downshelf_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果result + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idleisv/AlibabaIdleIsvItemDownshelfResponse.go b/model/idleisv/AlibabaIdleIsvItemDownshelfResponse.go deleted file mode 100644 index 830d0fd22c..0000000000 --- a/model/idleisv/AlibabaIdleIsvItemDownshelfResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idleisv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商闲鱼商品下架 API返回值 -alibaba.idle.isv.item.downshelf - -供外部服务商ISV进行闲鱼商品下架操作 -*/ -type AlibabaIdleIsvItemDownshelfAPIResponse struct { - model.CommonResponse - AlibabaIdleIsvItemDownshelfResponse -} - -// 服务商闲鱼商品下架 成功返回结果 -type AlibabaIdleIsvItemDownshelfResponse struct { - XMLName xml.Name `xml:"alibaba_idle_isv_item_downshelf_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果result - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idleisv/AlibabaIdleIsvItemEditAPIRequest.go b/model/idleisv/AlibabaIdleIsvItemEditAPIRequest.go new file mode 100644 index 0000000000..32ac5cba0a --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvItemEditAPIRequest.go @@ -0,0 +1,52 @@ +package idleisv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商闲鱼商品编辑 API请求 +alibaba.idle.isv.item.edit + +服务商ISV闲鱼商品编辑操作 +*/ +type AlibabaIdleIsvItemEditAPIRequest struct { + model.Params + // 商品数据参数 + _param *IdleItemApiDo +} + +// 初始化AlibabaIdleIsvItemEditAPIRequest对象 +func NewAlibabaIdleIsvItemEditRequest() *AlibabaIdleIsvItemEditAPIRequest{ + return &AlibabaIdleIsvItemEditAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleIsvItemEditAPIRequest) GetApiMethodName() string { + return "alibaba.idle.isv.item.edit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleIsvItemEditAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 商品数据参数 +func (r *AlibabaIdleIsvItemEditAPIRequest) SetParam(_param *IdleItemApiDo) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaIdleIsvItemEditAPIRequest) GetParam() *IdleItemApiDo { + return r._param +} diff --git a/model/idleisv/AlibabaIdleIsvItemEditAPIResponse.go b/model/idleisv/AlibabaIdleIsvItemEditAPIResponse.go new file mode 100644 index 0000000000..a6e1ac8138 --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvItemEditAPIResponse.go @@ -0,0 +1,27 @@ +package idleisv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商闲鱼商品编辑 API返回值 +alibaba.idle.isv.item.edit + +服务商ISV闲鱼商品编辑操作 +*/ +type AlibabaIdleIsvItemEditAPIResponse struct { + model.CommonResponse + AlibabaIdleIsvItemEditAPIResponseModel +} + +// 服务商闲鱼商品编辑 成功返回结果 +type AlibabaIdleIsvItemEditAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_isv_item_edit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果result + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idleisv/AlibabaIdleIsvItemEditResponse.go b/model/idleisv/AlibabaIdleIsvItemEditResponse.go deleted file mode 100644 index 803e5b4ec0..0000000000 --- a/model/idleisv/AlibabaIdleIsvItemEditResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idleisv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商闲鱼商品编辑 API返回值 -alibaba.idle.isv.item.edit - -服务商ISV闲鱼商品编辑操作 -*/ -type AlibabaIdleIsvItemEditAPIResponse struct { - model.CommonResponse - AlibabaIdleIsvItemEditResponse -} - -// 服务商闲鱼商品编辑 成功返回结果 -type AlibabaIdleIsvItemEditResponse struct { - XMLName xml.Name `xml:"alibaba_idle_isv_item_edit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果result - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idleisv/AlibabaIdleIsvItemPublishAPIRequest.go b/model/idleisv/AlibabaIdleIsvItemPublishAPIRequest.go new file mode 100644 index 0000000000..f73d8cbba9 --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvItemPublishAPIRequest.go @@ -0,0 +1,52 @@ +package idleisv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商闲鱼商品发布 API请求 +alibaba.idle.isv.item.publish + +服务商ISV闲鱼商品发布 +*/ +type AlibabaIdleIsvItemPublishAPIRequest struct { + model.Params + // 商品数据参数 + _itemParam *IdleItemApiDo +} + +// 初始化AlibabaIdleIsvItemPublishAPIRequest对象 +func NewAlibabaIdleIsvItemPublishRequest() *AlibabaIdleIsvItemPublishAPIRequest{ + return &AlibabaIdleIsvItemPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleIsvItemPublishAPIRequest) GetApiMethodName() string { + return "alibaba.idle.isv.item.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleIsvItemPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemParam Setter +// 商品数据参数 +func (r *AlibabaIdleIsvItemPublishAPIRequest) SetItemParam(_itemParam *IdleItemApiDo) error { + r._itemParam = _itemParam + r.Set("item_param", _itemParam) + return nil +} + +// ItemParam Getter +func (r AlibabaIdleIsvItemPublishAPIRequest) GetItemParam() *IdleItemApiDo { + return r._itemParam +} diff --git a/model/idleisv/AlibabaIdleIsvItemPublishAPIResponse.go b/model/idleisv/AlibabaIdleIsvItemPublishAPIResponse.go new file mode 100644 index 0000000000..1643739e2e --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvItemPublishAPIResponse.go @@ -0,0 +1,27 @@ +package idleisv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商闲鱼商品发布 API返回值 +alibaba.idle.isv.item.publish + +服务商ISV闲鱼商品发布 +*/ +type AlibabaIdleIsvItemPublishAPIResponse struct { + model.CommonResponse + AlibabaIdleIsvItemPublishAPIResponseModel +} + +// 服务商闲鱼商品发布 成功返回结果 +type AlibabaIdleIsvItemPublishAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_isv_item_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *IdleResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idleisv/AlibabaIdleIsvItemPublishResponse.go b/model/idleisv/AlibabaIdleIsvItemPublishResponse.go deleted file mode 100644 index c62a6652ac..0000000000 --- a/model/idleisv/AlibabaIdleIsvItemPublishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idleisv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商闲鱼商品发布 API返回值 -alibaba.idle.isv.item.publish - -服务商ISV闲鱼商品发布 -*/ -type AlibabaIdleIsvItemPublishAPIResponse struct { - model.CommonResponse - AlibabaIdleIsvItemPublishResponse -} - -// 服务商闲鱼商品发布 成功返回结果 -type AlibabaIdleIsvItemPublishResponse struct { - XMLName xml.Name `xml:"alibaba_idle_isv_item_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *IdleResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idleisv/AlibabaIdleIsvItemQueryAPIRequest.go b/model/idleisv/AlibabaIdleIsvItemQueryAPIRequest.go new file mode 100644 index 0000000000..29c909559a --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvItemQueryAPIRequest.go @@ -0,0 +1,52 @@ +package idleisv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商闲鱼商品查询 API请求 +alibaba.idle.isv.item.query + +服务商ISV闲鱼商品查询 +*/ +type AlibabaIdleIsvItemQueryAPIRequest struct { + model.Params + // 商品查询参数 + _param *IdleItemBaseApiDo +} + +// 初始化AlibabaIdleIsvItemQueryAPIRequest对象 +func NewAlibabaIdleIsvItemQueryRequest() *AlibabaIdleIsvItemQueryAPIRequest{ + return &AlibabaIdleIsvItemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleIsvItemQueryAPIRequest) GetApiMethodName() string { + return "alibaba.idle.isv.item.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleIsvItemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 商品查询参数 +func (r *AlibabaIdleIsvItemQueryAPIRequest) SetParam(_param *IdleItemBaseApiDo) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaIdleIsvItemQueryAPIRequest) GetParam() *IdleItemBaseApiDo { + return r._param +} diff --git a/model/idleisv/AlibabaIdleIsvItemQueryAPIResponse.go b/model/idleisv/AlibabaIdleIsvItemQueryAPIResponse.go new file mode 100644 index 0000000000..a9ab649f61 --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvItemQueryAPIResponse.go @@ -0,0 +1,27 @@ +package idleisv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商闲鱼商品查询 API返回值 +alibaba.idle.isv.item.query + +服务商ISV闲鱼商品查询 +*/ +type AlibabaIdleIsvItemQueryAPIResponse struct { + model.CommonResponse + AlibabaIdleIsvItemQueryAPIResponseModel +} + +// 服务商闲鱼商品查询 成功返回结果 +type AlibabaIdleIsvItemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_isv_item_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果result + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idleisv/AlibabaIdleIsvItemQueryResponse.go b/model/idleisv/AlibabaIdleIsvItemQueryResponse.go deleted file mode 100644 index bdd035c11c..0000000000 --- a/model/idleisv/AlibabaIdleIsvItemQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idleisv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商闲鱼商品查询 API返回值 -alibaba.idle.isv.item.query - -服务商ISV闲鱼商品查询 -*/ -type AlibabaIdleIsvItemQueryAPIResponse struct { - model.CommonResponse - AlibabaIdleIsvItemQueryResponse -} - -// 服务商闲鱼商品查询 成功返回结果 -type AlibabaIdleIsvItemQueryResponse struct { - XMLName xml.Name `xml:"alibaba_idle_isv_item_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果result - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idleisv/AlibabaIdleIsvMediaUploadAPIRequest.go b/model/idleisv/AlibabaIdleIsvMediaUploadAPIRequest.go new file mode 100644 index 0000000000..b0af2c7a24 --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvMediaUploadAPIRequest.go @@ -0,0 +1,80 @@ +package idleisv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼服务商-图片上传 API请求 +alibaba.idle.isv.media.upload + +供外部服务商ISV进行闲鱼商品发布时上传商品所需图片 +*/ +type AlibabaIdleIsvMediaUploadAPIRequest struct { + model.Params + // 多媒体字节数组 + _data *model.File + // 文件名 + _name string + // 0-表示图片,1-表示视频(暂不支持) + _type int64 +} + +// 初始化AlibabaIdleIsvMediaUploadAPIRequest对象 +func NewAlibabaIdleIsvMediaUploadRequest() *AlibabaIdleIsvMediaUploadAPIRequest{ + return &AlibabaIdleIsvMediaUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleIsvMediaUploadAPIRequest) GetApiMethodName() string { + return "alibaba.idle.isv.media.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleIsvMediaUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Data Setter +// 多媒体字节数组 +func (r *AlibabaIdleIsvMediaUploadAPIRequest) SetData(_data *model.File) error { + r._data = _data + r.Set("data", _data) + return nil +} + +// Data Getter +func (r AlibabaIdleIsvMediaUploadAPIRequest) GetData() *model.File { + return r._data +} +// Name Setter +// 文件名 +func (r *AlibabaIdleIsvMediaUploadAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r AlibabaIdleIsvMediaUploadAPIRequest) GetName() string { + return r._name +} +// Type Setter +// 0-表示图片,1-表示视频(暂不支持) +func (r *AlibabaIdleIsvMediaUploadAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaIdleIsvMediaUploadAPIRequest) GetType() int64 { + return r._type +} diff --git a/model/idleisv/AlibabaIdleIsvMediaUploadAPIResponse.go b/model/idleisv/AlibabaIdleIsvMediaUploadAPIResponse.go new file mode 100644 index 0000000000..9dcab73d48 --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvMediaUploadAPIResponse.go @@ -0,0 +1,27 @@ +package idleisv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼服务商-图片上传 API返回值 +alibaba.idle.isv.media.upload + +供外部服务商ISV进行闲鱼商品发布时上传商品所需图片 +*/ +type AlibabaIdleIsvMediaUploadAPIResponse struct { + model.CommonResponse + AlibabaIdleIsvMediaUploadAPIResponseModel +} + +// 闲鱼服务商-图片上传 成功返回结果 +type AlibabaIdleIsvMediaUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_isv_media_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应数据 + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idleisv/AlibabaIdleIsvMediaUploadResponse.go b/model/idleisv/AlibabaIdleIsvMediaUploadResponse.go deleted file mode 100644 index fa88f5bfe8..0000000000 --- a/model/idleisv/AlibabaIdleIsvMediaUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idleisv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼服务商-图片上传 API返回值 -alibaba.idle.isv.media.upload - -供外部服务商ISV进行闲鱼商品发布时上传商品所需图片 -*/ -type AlibabaIdleIsvMediaUploadAPIResponse struct { - model.CommonResponse - AlibabaIdleIsvMediaUploadResponse -} - -// 闲鱼服务商-图片上传 成功返回结果 -type AlibabaIdleIsvMediaUploadResponse struct { - XMLName xml.Name `xml:"alibaba_idle_isv_media_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应数据 - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idleisv/AlibabaIdleIsvOrderAdjustpriceAPIRequest.go b/model/idleisv/AlibabaIdleIsvOrderAdjustpriceAPIRequest.go new file mode 100644 index 0000000000..89e7c569df --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvOrderAdjustpriceAPIRequest.go @@ -0,0 +1,52 @@ +package idleisv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼服务商订单价格修改接口 API请求 +alibaba.idle.isv.order.adjustprice + +闲鱼用户通过授权的服务商修改订单价格和邮费 +*/ +type AlibabaIdleIsvOrderAdjustpriceAPIRequest struct { + model.Params + // 输入参数 + _paramAdjustOrderPrice *IsvAdjustOrderPriceDto +} + +// 初始化AlibabaIdleIsvOrderAdjustpriceAPIRequest对象 +func NewAlibabaIdleIsvOrderAdjustpriceRequest() *AlibabaIdleIsvOrderAdjustpriceAPIRequest{ + return &AlibabaIdleIsvOrderAdjustpriceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleIsvOrderAdjustpriceAPIRequest) GetApiMethodName() string { + return "alibaba.idle.isv.order.adjustprice" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleIsvOrderAdjustpriceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamAdjustOrderPrice Setter +// 输入参数 +func (r *AlibabaIdleIsvOrderAdjustpriceAPIRequest) SetParamAdjustOrderPrice(_paramAdjustOrderPrice *IsvAdjustOrderPriceDto) error { + r._paramAdjustOrderPrice = _paramAdjustOrderPrice + r.Set("param_adjust_order_price", _paramAdjustOrderPrice) + return nil +} + +// ParamAdjustOrderPrice Getter +func (r AlibabaIdleIsvOrderAdjustpriceAPIRequest) GetParamAdjustOrderPrice() *IsvAdjustOrderPriceDto { + return r._paramAdjustOrderPrice +} diff --git a/model/idleisv/AlibabaIdleIsvOrderAdjustpriceAPIResponse.go b/model/idleisv/AlibabaIdleIsvOrderAdjustpriceAPIResponse.go new file mode 100644 index 0000000000..b2c0fddd6e --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvOrderAdjustpriceAPIResponse.go @@ -0,0 +1,27 @@ +package idleisv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼服务商订单价格修改接口 API返回值 +alibaba.idle.isv.order.adjustprice + +闲鱼用户通过授权的服务商修改订单价格和邮费 +*/ +type AlibabaIdleIsvOrderAdjustpriceAPIResponse struct { + model.CommonResponse + AlibabaIdleIsvOrderAdjustpriceAPIResponseModel +} + +// 闲鱼服务商订单价格修改接口 成功返回结果 +type AlibabaIdleIsvOrderAdjustpriceAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_isv_order_adjustprice_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回结果 + Result *AlibabaIdleIsvOrderAdjustpriceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idleisv/AlibabaIdleIsvOrderAdjustpriceResponse.go b/model/idleisv/AlibabaIdleIsvOrderAdjustpriceResponse.go deleted file mode 100644 index 19499dc76e..0000000000 --- a/model/idleisv/AlibabaIdleIsvOrderAdjustpriceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idleisv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼服务商订单价格修改接口 API返回值 -alibaba.idle.isv.order.adjustprice - -闲鱼用户通过授权的服务商修改订单价格和邮费 -*/ -type AlibabaIdleIsvOrderAdjustpriceAPIResponse struct { - model.CommonResponse - AlibabaIdleIsvOrderAdjustpriceResponse -} - -// 闲鱼服务商订单价格修改接口 成功返回结果 -type AlibabaIdleIsvOrderAdjustpriceResponse struct { - XMLName xml.Name `xml:"alibaba_idle_isv_order_adjustprice_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回结果 - Result *AlibabaIdleIsvOrderAdjustpriceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idleisv/AlibabaIdleIsvOrderCloseAPIRequest.go b/model/idleisv/AlibabaIdleIsvOrderCloseAPIRequest.go new file mode 100644 index 0000000000..5201628de7 --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvOrderCloseAPIRequest.go @@ -0,0 +1,52 @@ +package idleisv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商闲鱼卖家主动关闭订单 API请求 +alibaba.idle.isv.order.close + +供外部服务商 isv 提供卖家主动关闭交易订单的功能 +*/ +type AlibabaIdleIsvOrderCloseAPIRequest struct { + model.Params + // 输入参数 + _isvAppraiseIsvOrderCloseDto *AppraiseIsvOrderCloseDto +} + +// 初始化AlibabaIdleIsvOrderCloseAPIRequest对象 +func NewAlibabaIdleIsvOrderCloseRequest() *AlibabaIdleIsvOrderCloseAPIRequest{ + return &AlibabaIdleIsvOrderCloseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleIsvOrderCloseAPIRequest) GetApiMethodName() string { + return "alibaba.idle.isv.order.close" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleIsvOrderCloseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IsvAppraiseIsvOrderCloseDto Setter +// 输入参数 +func (r *AlibabaIdleIsvOrderCloseAPIRequest) SetIsvAppraiseIsvOrderCloseDto(_isvAppraiseIsvOrderCloseDto *AppraiseIsvOrderCloseDto) error { + r._isvAppraiseIsvOrderCloseDto = _isvAppraiseIsvOrderCloseDto + r.Set("isv_appraise_isv_order_close_dto", _isvAppraiseIsvOrderCloseDto) + return nil +} + +// IsvAppraiseIsvOrderCloseDto Getter +func (r AlibabaIdleIsvOrderCloseAPIRequest) GetIsvAppraiseIsvOrderCloseDto() *AppraiseIsvOrderCloseDto { + return r._isvAppraiseIsvOrderCloseDto +} diff --git a/model/idleisv/AlibabaIdleIsvOrderCloseAPIResponse.go b/model/idleisv/AlibabaIdleIsvOrderCloseAPIResponse.go new file mode 100644 index 0000000000..830732d339 --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvOrderCloseAPIResponse.go @@ -0,0 +1,27 @@ +package idleisv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商闲鱼卖家主动关闭订单 API返回值 +alibaba.idle.isv.order.close + +供外部服务商 isv 提供卖家主动关闭交易订单的功能 +*/ +type AlibabaIdleIsvOrderCloseAPIResponse struct { + model.CommonResponse + AlibabaIdleIsvOrderCloseAPIResponseModel +} + +// 服务商闲鱼卖家主动关闭订单 成功返回结果 +type AlibabaIdleIsvOrderCloseAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_isv_order_close_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回结果 + Result *AlibabaIdleIsvOrderCloseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idleisv/AlibabaIdleIsvOrderCloseResponse.go b/model/idleisv/AlibabaIdleIsvOrderCloseResponse.go deleted file mode 100644 index e7e1e26e55..0000000000 --- a/model/idleisv/AlibabaIdleIsvOrderCloseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idleisv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商闲鱼卖家主动关闭订单 API返回值 -alibaba.idle.isv.order.close - -供外部服务商 isv 提供卖家主动关闭交易订单的功能 -*/ -type AlibabaIdleIsvOrderCloseAPIResponse struct { - model.CommonResponse - AlibabaIdleIsvOrderCloseResponse -} - -// 服务商闲鱼卖家主动关闭订单 成功返回结果 -type AlibabaIdleIsvOrderCloseResponse struct { - XMLName xml.Name `xml:"alibaba_idle_isv_order_close_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回结果 - Result *AlibabaIdleIsvOrderCloseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idleisv/AlibabaIdleIsvOrderQueryAPIRequest.go b/model/idleisv/AlibabaIdleIsvOrderQueryAPIRequest.go new file mode 100644 index 0000000000..69f1a4dfca --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvOrderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package idleisv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼已验货订单查询 API请求 +alibaba.idle.isv.order.query + +服务商ISV,根据订单号,查询闲鱼订单信息 +*/ +type AlibabaIdleIsvOrderQueryAPIRequest struct { + model.Params + // 系统自动生成 + _paramAppraiseIsvOrderQuery *AppraiseIsvOrderQuery +} + +// 初始化AlibabaIdleIsvOrderQueryAPIRequest对象 +func NewAlibabaIdleIsvOrderQueryRequest() *AlibabaIdleIsvOrderQueryAPIRequest{ + return &AlibabaIdleIsvOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleIsvOrderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.idle.isv.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleIsvOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamAppraiseIsvOrderQuery Setter +// 系统自动生成 +func (r *AlibabaIdleIsvOrderQueryAPIRequest) SetParamAppraiseIsvOrderQuery(_paramAppraiseIsvOrderQuery *AppraiseIsvOrderQuery) error { + r._paramAppraiseIsvOrderQuery = _paramAppraiseIsvOrderQuery + r.Set("param_appraise_isv_order_query", _paramAppraiseIsvOrderQuery) + return nil +} + +// ParamAppraiseIsvOrderQuery Getter +func (r AlibabaIdleIsvOrderQueryAPIRequest) GetParamAppraiseIsvOrderQuery() *AppraiseIsvOrderQuery { + return r._paramAppraiseIsvOrderQuery +} diff --git a/model/idleisv/AlibabaIdleIsvOrderQueryAPIResponse.go b/model/idleisv/AlibabaIdleIsvOrderQueryAPIResponse.go new file mode 100644 index 0000000000..c762df3b63 --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package idleisv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼已验货订单查询 API返回值 +alibaba.idle.isv.order.query + +服务商ISV,根据订单号,查询闲鱼订单信息 +*/ +type AlibabaIdleIsvOrderQueryAPIResponse struct { + model.CommonResponse + AlibabaIdleIsvOrderQueryAPIResponseModel +} + +// 闲鱼已验货订单查询 成功返回结果 +type AlibabaIdleIsvOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_isv_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaIdleIsvOrderQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idleisv/AlibabaIdleIsvOrderQueryResponse.go b/model/idleisv/AlibabaIdleIsvOrderQueryResponse.go deleted file mode 100644 index 7830c07d12..0000000000 --- a/model/idleisv/AlibabaIdleIsvOrderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idleisv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼已验货订单查询 API返回值 -alibaba.idle.isv.order.query - -服务商ISV,根据订单号,查询闲鱼订单信息 -*/ -type AlibabaIdleIsvOrderQueryAPIResponse struct { - model.CommonResponse - AlibabaIdleIsvOrderQueryResponse -} - -// 闲鱼已验货订单查询 成功返回结果 -type AlibabaIdleIsvOrderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_idle_isv_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaIdleIsvOrderQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idleisv/AlibabaIdleIsvPvListAPIRequest.go b/model/idleisv/AlibabaIdleIsvPvListAPIRequest.go new file mode 100644 index 0000000000..07c68176a4 --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvPvListAPIRequest.go @@ -0,0 +1,66 @@ +package idleisv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼已验货pv查询 API请求 +alibaba.idle.isv.pv.list + +根据闲鱼渠道类目查询对应的品牌和型号清单,供服务商进行选择 +*/ +type AlibabaIdleIsvPvListAPIRequest struct { + model.Params + // 闲鱼渠道类目的id + _channelCatId string + // 系统自动生成 + _brandModelInfo []IdleNewPubValueDo +} + +// 初始化AlibabaIdleIsvPvListAPIRequest对象 +func NewAlibabaIdleIsvPvListRequest() *AlibabaIdleIsvPvListAPIRequest{ + return &AlibabaIdleIsvPvListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleIsvPvListAPIRequest) GetApiMethodName() string { + return "alibaba.idle.isv.pv.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleIsvPvListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChannelCatId Setter +// 闲鱼渠道类目的id +func (r *AlibabaIdleIsvPvListAPIRequest) SetChannelCatId(_channelCatId string) error { + r._channelCatId = _channelCatId + r.Set("channel_cat_id", _channelCatId) + return nil +} + +// ChannelCatId Getter +func (r AlibabaIdleIsvPvListAPIRequest) GetChannelCatId() string { + return r._channelCatId +} +// BrandModelInfo Setter +// 系统自动生成 +func (r *AlibabaIdleIsvPvListAPIRequest) SetBrandModelInfo(_brandModelInfo []IdleNewPubValueDo) error { + r._brandModelInfo = _brandModelInfo + r.Set("brand_model_info", _brandModelInfo) + return nil +} + +// BrandModelInfo Getter +func (r AlibabaIdleIsvPvListAPIRequest) GetBrandModelInfo() []IdleNewPubValueDo { + return r._brandModelInfo +} diff --git a/model/idleisv/AlibabaIdleIsvPvListAPIResponse.go b/model/idleisv/AlibabaIdleIsvPvListAPIResponse.go new file mode 100644 index 0000000000..aca1d7b90a --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvPvListAPIResponse.go @@ -0,0 +1,27 @@ +package idleisv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼已验货pv查询 API返回值 +alibaba.idle.isv.pv.list + +根据闲鱼渠道类目查询对应的品牌和型号清单,供服务商进行选择 +*/ +type AlibabaIdleIsvPvListAPIResponse struct { + model.CommonResponse + AlibabaIdleIsvPvListAPIResponseModel +} + +// 闲鱼已验货pv查询 成功返回结果 +type AlibabaIdleIsvPvListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_isv_pv_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaIdleIsvPvListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idleisv/AlibabaIdleIsvPvListResponse.go b/model/idleisv/AlibabaIdleIsvPvListResponse.go deleted file mode 100644 index 70006158b6..0000000000 --- a/model/idleisv/AlibabaIdleIsvPvListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idleisv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼已验货pv查询 API返回值 -alibaba.idle.isv.pv.list - -根据闲鱼渠道类目查询对应的品牌和型号清单,供服务商进行选择 -*/ -type AlibabaIdleIsvPvListAPIResponse struct { - model.CommonResponse - AlibabaIdleIsvPvListResponse -} - -// 闲鱼已验货pv查询 成功返回结果 -type AlibabaIdleIsvPvListResponse struct { - XMLName xml.Name `xml:"alibaba_idle_isv_pv_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaIdleIsvPvListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idleisv/AlibabaIdleIsvRefundQueryAPIRequest.go b/model/idleisv/AlibabaIdleIsvRefundQueryAPIRequest.go new file mode 100644 index 0000000000..120cb43d46 --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvRefundQueryAPIRequest.go @@ -0,0 +1,52 @@ +package idleisv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼已验货交易订单退款信息查询 API请求 +alibaba.idle.isv.refund.query + +闲鱼服务商交易订单退款信息查询-单个退款查询 +*/ +type AlibabaIdleIsvRefundQueryAPIRequest struct { + model.Params + // 系统自动生成 + _paramAppraiseIsvOrderQuery *AppraiseIsvOrderQuery +} + +// 初始化AlibabaIdleIsvRefundQueryAPIRequest对象 +func NewAlibabaIdleIsvRefundQueryRequest() *AlibabaIdleIsvRefundQueryAPIRequest{ + return &AlibabaIdleIsvRefundQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleIsvRefundQueryAPIRequest) GetApiMethodName() string { + return "alibaba.idle.isv.refund.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleIsvRefundQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamAppraiseIsvOrderQuery Setter +// 系统自动生成 +func (r *AlibabaIdleIsvRefundQueryAPIRequest) SetParamAppraiseIsvOrderQuery(_paramAppraiseIsvOrderQuery *AppraiseIsvOrderQuery) error { + r._paramAppraiseIsvOrderQuery = _paramAppraiseIsvOrderQuery + r.Set("param_appraise_isv_order_query", _paramAppraiseIsvOrderQuery) + return nil +} + +// ParamAppraiseIsvOrderQuery Getter +func (r AlibabaIdleIsvRefundQueryAPIRequest) GetParamAppraiseIsvOrderQuery() *AppraiseIsvOrderQuery { + return r._paramAppraiseIsvOrderQuery +} diff --git a/model/idleisv/AlibabaIdleIsvRefundQueryAPIResponse.go b/model/idleisv/AlibabaIdleIsvRefundQueryAPIResponse.go new file mode 100644 index 0000000000..1aabe5e460 --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvRefundQueryAPIResponse.go @@ -0,0 +1,27 @@ +package idleisv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼已验货交易订单退款信息查询 API返回值 +alibaba.idle.isv.refund.query + +闲鱼服务商交易订单退款信息查询-单个退款查询 +*/ +type AlibabaIdleIsvRefundQueryAPIResponse struct { + model.CommonResponse + AlibabaIdleIsvRefundQueryAPIResponseModel +} + +// 闲鱼已验货交易订单退款信息查询 成功返回结果 +type AlibabaIdleIsvRefundQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_isv_refund_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaIdleIsvRefundQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idleisv/AlibabaIdleIsvRefundQueryResponse.go b/model/idleisv/AlibabaIdleIsvRefundQueryResponse.go deleted file mode 100644 index ffe6917ad7..0000000000 --- a/model/idleisv/AlibabaIdleIsvRefundQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idleisv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼已验货交易订单退款信息查询 API返回值 -alibaba.idle.isv.refund.query - -闲鱼服务商交易订单退款信息查询-单个退款查询 -*/ -type AlibabaIdleIsvRefundQueryAPIResponse struct { - model.CommonResponse - AlibabaIdleIsvRefundQueryResponse -} - -// 闲鱼已验货交易订单退款信息查询 成功返回结果 -type AlibabaIdleIsvRefundQueryResponse struct { - XMLName xml.Name `xml:"alibaba_idle_isv_refund_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaIdleIsvRefundQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idleisv/AlibabaIdleIsvSpuSearchAPIRequest.go b/model/idleisv/AlibabaIdleIsvSpuSearchAPIRequest.go new file mode 100644 index 0000000000..21dcbd57e0 --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvSpuSearchAPIRequest.go @@ -0,0 +1,66 @@ +package idleisv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +spu搜索接口 API请求 +alibaba.idle.isv.spu.search + +搜索的品牌和型号,供服务商进行选择 +*/ +type AlibabaIdleIsvSpuSearchAPIRequest struct { + model.Params + // 闲鱼渠道类目的id + _channelCatId string + // 搜索的文本 + _searchText string +} + +// 初始化AlibabaIdleIsvSpuSearchAPIRequest对象 +func NewAlibabaIdleIsvSpuSearchRequest() *AlibabaIdleIsvSpuSearchAPIRequest{ + return &AlibabaIdleIsvSpuSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleIsvSpuSearchAPIRequest) GetApiMethodName() string { + return "alibaba.idle.isv.spu.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleIsvSpuSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChannelCatId Setter +// 闲鱼渠道类目的id +func (r *AlibabaIdleIsvSpuSearchAPIRequest) SetChannelCatId(_channelCatId string) error { + r._channelCatId = _channelCatId + r.Set("channel_cat_id", _channelCatId) + return nil +} + +// ChannelCatId Getter +func (r AlibabaIdleIsvSpuSearchAPIRequest) GetChannelCatId() string { + return r._channelCatId +} +// SearchText Setter +// 搜索的文本 +func (r *AlibabaIdleIsvSpuSearchAPIRequest) SetSearchText(_searchText string) error { + r._searchText = _searchText + r.Set("search_text", _searchText) + return nil +} + +// SearchText Getter +func (r AlibabaIdleIsvSpuSearchAPIRequest) GetSearchText() string { + return r._searchText +} diff --git a/model/idleisv/AlibabaIdleIsvSpuSearchAPIResponse.go b/model/idleisv/AlibabaIdleIsvSpuSearchAPIResponse.go new file mode 100644 index 0000000000..4a991fd2d3 --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvSpuSearchAPIResponse.go @@ -0,0 +1,27 @@ +package idleisv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +spu搜索接口 API返回值 +alibaba.idle.isv.spu.search + +搜索的品牌和型号,供服务商进行选择 +*/ +type AlibabaIdleIsvSpuSearchAPIResponse struct { + model.CommonResponse + AlibabaIdleIsvSpuSearchAPIResponseModel +} + +// spu搜索接口 成功返回结果 +type AlibabaIdleIsvSpuSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_isv_spu_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaIdleIsvSpuSearchResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idleisv/AlibabaIdleIsvSpuSearchResponse.go b/model/idleisv/AlibabaIdleIsvSpuSearchResponse.go deleted file mode 100644 index c31e91279f..0000000000 --- a/model/idleisv/AlibabaIdleIsvSpuSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idleisv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -spu搜索接口 API返回值 -alibaba.idle.isv.spu.search - -搜索的品牌和型号,供服务商进行选择 -*/ -type AlibabaIdleIsvSpuSearchAPIResponse struct { - model.CommonResponse - AlibabaIdleIsvSpuSearchResponse -} - -// spu搜索接口 成功返回结果 -type AlibabaIdleIsvSpuSearchResponse struct { - XMLName xml.Name `xml:"alibaba_idle_isv_spu_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaIdleIsvSpuSearchResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idleisv/AlibabaIdleIsvUserQueryAPIRequest.go b/model/idleisv/AlibabaIdleIsvUserQueryAPIRequest.go new file mode 100644 index 0000000000..42230ab890 --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvUserQueryAPIRequest.go @@ -0,0 +1,38 @@ +package idleisv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商ISV闲鱼用户信息查询 API请求 +alibaba.idle.isv.user.query + +服务商ISV闲鱼用户信息查询 +*/ +type AlibabaIdleIsvUserQueryAPIRequest struct { + model.Params +} + +// 初始化AlibabaIdleIsvUserQueryAPIRequest对象 +func NewAlibabaIdleIsvUserQueryRequest() *AlibabaIdleIsvUserQueryAPIRequest{ + return &AlibabaIdleIsvUserQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleIsvUserQueryAPIRequest) GetApiMethodName() string { + return "alibaba.idle.isv.user.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleIsvUserQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/idleisv/AlibabaIdleIsvUserQueryAPIResponse.go b/model/idleisv/AlibabaIdleIsvUserQueryAPIResponse.go new file mode 100644 index 0000000000..8a6252d1cd --- /dev/null +++ b/model/idleisv/AlibabaIdleIsvUserQueryAPIResponse.go @@ -0,0 +1,27 @@ +package idleisv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商ISV闲鱼用户信息查询 API返回值 +alibaba.idle.isv.user.query + +服务商ISV闲鱼用户信息查询 +*/ +type AlibabaIdleIsvUserQueryAPIResponse struct { + model.CommonResponse + AlibabaIdleIsvUserQueryAPIResponseModel +} + +// 服务商ISV闲鱼用户信息查询 成功返回结果 +type AlibabaIdleIsvUserQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_isv_user_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idleisv/AlibabaIdleIsvUserQueryResponse.go b/model/idleisv/AlibabaIdleIsvUserQueryResponse.go deleted file mode 100644 index 1c36b06a52..0000000000 --- a/model/idleisv/AlibabaIdleIsvUserQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idleisv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商ISV闲鱼用户信息查询 API返回值 -alibaba.idle.isv.user.query - -服务商ISV闲鱼用户信息查询 -*/ -type AlibabaIdleIsvUserQueryAPIResponse struct { - model.CommonResponse - AlibabaIdleIsvUserQueryResponse -} - -// 服务商ISV闲鱼用户信息查询 成功返回结果 -type AlibabaIdleIsvUserQueryResponse struct { - XMLName xml.Name `xml:"alibaba_idle_isv_user_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idleitem/AlibabaIdleItemIdlecoinAddAPIRequest.go b/model/idleitem/AlibabaIdleItemIdlecoinAddAPIRequest.go new file mode 100644 index 0000000000..1d8a82330a --- /dev/null +++ b/model/idleitem/AlibabaIdleItemIdlecoinAddAPIRequest.go @@ -0,0 +1,52 @@ +package idleitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +免费送商品发送 API请求 +alibaba.idle.item.idlecoin.add + +免费送商品发布 +*/ +type AlibabaIdleItemIdlecoinAddAPIRequest struct { + model.Params + // 免费送商品数据 + _idleCoinItemParam *IdleCoinItemApiDto +} + +// 初始化AlibabaIdleItemIdlecoinAddAPIRequest对象 +func NewAlibabaIdleItemIdlecoinAddRequest() *AlibabaIdleItemIdlecoinAddAPIRequest{ + return &AlibabaIdleItemIdlecoinAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleItemIdlecoinAddAPIRequest) GetApiMethodName() string { + return "alibaba.idle.item.idlecoin.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleItemIdlecoinAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IdleCoinItemParam Setter +// 免费送商品数据 +func (r *AlibabaIdleItemIdlecoinAddAPIRequest) SetIdleCoinItemParam(_idleCoinItemParam *IdleCoinItemApiDto) error { + r._idleCoinItemParam = _idleCoinItemParam + r.Set("idle_coin_item_param", _idleCoinItemParam) + return nil +} + +// IdleCoinItemParam Getter +func (r AlibabaIdleItemIdlecoinAddAPIRequest) GetIdleCoinItemParam() *IdleCoinItemApiDto { + return r._idleCoinItemParam +} diff --git a/model/idleitem/AlibabaIdleItemIdlecoinAddAPIResponse.go b/model/idleitem/AlibabaIdleItemIdlecoinAddAPIResponse.go new file mode 100644 index 0000000000..3f73c1208f --- /dev/null +++ b/model/idleitem/AlibabaIdleItemIdlecoinAddAPIResponse.go @@ -0,0 +1,27 @@ +package idleitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +免费送商品发送 API返回值 +alibaba.idle.item.idlecoin.add + +免费送商品发布 +*/ +type AlibabaIdleItemIdlecoinAddAPIResponse struct { + model.CommonResponse + AlibabaIdleItemIdlecoinAddAPIResponseModel +} + +// 免费送商品发送 成功返回结果 +type AlibabaIdleItemIdlecoinAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_item_idlecoin_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *IdleResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idleitem/AlibabaIdleItemIdlecoinAddResponse.go b/model/idleitem/AlibabaIdleItemIdlecoinAddResponse.go deleted file mode 100644 index 54898181f3..0000000000 --- a/model/idleitem/AlibabaIdleItemIdlecoinAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idleitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -免费送商品发送 API返回值 -alibaba.idle.item.idlecoin.add - -免费送商品发布 -*/ -type AlibabaIdleItemIdlecoinAddAPIResponse struct { - model.CommonResponse - AlibabaIdleItemIdlecoinAddResponse -} - -// 免费送商品发送 成功返回结果 -type AlibabaIdleItemIdlecoinAddResponse struct { - XMLName xml.Name `xml:"alibaba_idle_item_idlecoin_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *IdleResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idleitem/AlibabaIdleItemMediaAddAPIRequest.go b/model/idleitem/AlibabaIdleItemMediaAddAPIRequest.go new file mode 100644 index 0000000000..7d045f9115 --- /dev/null +++ b/model/idleitem/AlibabaIdleItemMediaAddAPIRequest.go @@ -0,0 +1,80 @@ +package idleitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +图片上传 API请求 +alibaba.idle.item.media.add + +上传图片 +*/ +type AlibabaIdleItemMediaAddAPIRequest struct { + model.Params + // 多媒体文件字节流,图片<5M,视频<8M + _mediaData *model.File + // 类型:0 - 图片 ,仅支持图片 + _mediaType int64 + // 废弃,不用再输入 + _userNick string +} + +// 初始化AlibabaIdleItemMediaAddAPIRequest对象 +func NewAlibabaIdleItemMediaAddRequest() *AlibabaIdleItemMediaAddAPIRequest{ + return &AlibabaIdleItemMediaAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleItemMediaAddAPIRequest) GetApiMethodName() string { + return "alibaba.idle.item.media.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleItemMediaAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MediaData Setter +// 多媒体文件字节流,图片<5M,视频<8M +func (r *AlibabaIdleItemMediaAddAPIRequest) SetMediaData(_mediaData *model.File) error { + r._mediaData = _mediaData + r.Set("media_data", _mediaData) + return nil +} + +// MediaData Getter +func (r AlibabaIdleItemMediaAddAPIRequest) GetMediaData() *model.File { + return r._mediaData +} +// MediaType Setter +// 类型:0 - 图片 ,仅支持图片 +func (r *AlibabaIdleItemMediaAddAPIRequest) SetMediaType(_mediaType int64) error { + r._mediaType = _mediaType + r.Set("media_type", _mediaType) + return nil +} + +// MediaType Getter +func (r AlibabaIdleItemMediaAddAPIRequest) GetMediaType() int64 { + return r._mediaType +} +// UserNick Setter +// 废弃,不用再输入 +func (r *AlibabaIdleItemMediaAddAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r AlibabaIdleItemMediaAddAPIRequest) GetUserNick() string { + return r._userNick +} diff --git a/model/idleitem/AlibabaIdleItemMediaAddAPIResponse.go b/model/idleitem/AlibabaIdleItemMediaAddAPIResponse.go new file mode 100644 index 0000000000..ed99a6d12b --- /dev/null +++ b/model/idleitem/AlibabaIdleItemMediaAddAPIResponse.go @@ -0,0 +1,27 @@ +package idleitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +图片上传 API返回值 +alibaba.idle.item.media.add + +上传图片 +*/ +type AlibabaIdleItemMediaAddAPIResponse struct { + model.CommonResponse + AlibabaIdleItemMediaAddAPIResponseModel +} + +// 图片上传 成功返回结果 +type AlibabaIdleItemMediaAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_item_media_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *EasyResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idleitem/AlibabaIdleItemMediaAddResponse.go b/model/idleitem/AlibabaIdleItemMediaAddResponse.go deleted file mode 100644 index c55e2f0b8b..0000000000 --- a/model/idleitem/AlibabaIdleItemMediaAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idleitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -图片上传 API返回值 -alibaba.idle.item.media.add - -上传图片 -*/ -type AlibabaIdleItemMediaAddAPIResponse struct { - model.CommonResponse - AlibabaIdleItemMediaAddResponse -} - -// 图片上传 成功返回结果 -type AlibabaIdleItemMediaAddResponse struct { - XMLName xml.Name `xml:"alibaba_idle_item_media_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *EasyResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idleitem/AlibabaIdleRecycleOrderGetAPIRequest.go b/model/idleitem/AlibabaIdleRecycleOrderGetAPIRequest.go new file mode 100644 index 0000000000..be3f72e086 --- /dev/null +++ b/model/idleitem/AlibabaIdleRecycleOrderGetAPIRequest.go @@ -0,0 +1,52 @@ +package idleitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼回收订单查询V2 API请求 +alibaba.idle.recycle.order.get + +闲鱼回收业务中,外部回收商作为交易上买家,闲鱼用户下单后,需要回收商主动拉取交易订单 +*/ +type AlibabaIdleRecycleOrderGetAPIRequest struct { + model.Params + // 订单号 + _bizOrderId int64 +} + +// 初始化AlibabaIdleRecycleOrderGetAPIRequest对象 +func NewAlibabaIdleRecycleOrderGetRequest() *AlibabaIdleRecycleOrderGetAPIRequest{ + return &AlibabaIdleRecycleOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleRecycleOrderGetAPIRequest) GetApiMethodName() string { + return "alibaba.idle.recycle.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleRecycleOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizOrderId Setter +// 订单号 +func (r *AlibabaIdleRecycleOrderGetAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r AlibabaIdleRecycleOrderGetAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} diff --git a/model/idleitem/AlibabaIdleRecycleOrderGetAPIResponse.go b/model/idleitem/AlibabaIdleRecycleOrderGetAPIResponse.go new file mode 100644 index 0000000000..8c2563ced9 --- /dev/null +++ b/model/idleitem/AlibabaIdleRecycleOrderGetAPIResponse.go @@ -0,0 +1,31 @@ +package idleitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +闲鱼回收订单查询V2 API返回值 +alibaba.idle.recycle.order.get + +闲鱼回收业务中,外部回收商作为交易上买家,闲鱼用户下单后,需要回收商主动拉取交易订单 +*/ +type AlibabaIdleRecycleOrderGetAPIResponse struct { + model.CommonResponse + AlibabaIdleRecycleOrderGetAPIResponseModel +} + +// 闲鱼回收订单查询V2 成功返回结果 +type AlibabaIdleRecycleOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_recycle_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单信息 + Module *RecycleOrderTo `json:"module,omitempty" xml:"module,omitempty"` + // 失败时候错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idleitem/AlibabaIdleRecycleOrderGetResponse.go b/model/idleitem/AlibabaIdleRecycleOrderGetResponse.go deleted file mode 100644 index 2c7d4010d4..0000000000 --- a/model/idleitem/AlibabaIdleRecycleOrderGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package idleitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -闲鱼回收订单查询V2 API返回值 -alibaba.idle.recycle.order.get - -闲鱼回收业务中,外部回收商作为交易上买家,闲鱼用户下单后,需要回收商主动拉取交易订单 -*/ -type AlibabaIdleRecycleOrderGetAPIResponse struct { - model.CommonResponse - AlibabaIdleRecycleOrderGetResponse -} - -// 闲鱼回收订单查询V2 成功返回结果 -type AlibabaIdleRecycleOrderGetResponse struct { - XMLName xml.Name `xml:"alibaba_idle_recycle_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单信息 - Module *RecycleOrderTo `json:"module,omitempty" xml:"module,omitempty"` - // 失败时候错误信息 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/idleparttime/AlibabaIdleParttimeJobsyncAPIRequest.go b/model/idleparttime/AlibabaIdleParttimeJobsyncAPIRequest.go new file mode 100644 index 0000000000..8a0cee1348 --- /dev/null +++ b/model/idleparttime/AlibabaIdleParttimeJobsyncAPIRequest.go @@ -0,0 +1,66 @@ +package idleparttime + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +兼职岗位同步 API请求 +alibaba.idle.parttime.jobsync + +服务商同步岗位信息给闲鱼 +*/ +type AlibabaIdleParttimeJobsyncAPIRequest struct { + model.Params + // 岗位列表 + _jobList []PartTimeJob + // 同步数据的时间 + _syncTime int64 +} + +// 初始化AlibabaIdleParttimeJobsyncAPIRequest对象 +func NewAlibabaIdleParttimeJobsyncRequest() *AlibabaIdleParttimeJobsyncAPIRequest{ + return &AlibabaIdleParttimeJobsyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleParttimeJobsyncAPIRequest) GetApiMethodName() string { + return "alibaba.idle.parttime.jobsync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleParttimeJobsyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// JobList Setter +// 岗位列表 +func (r *AlibabaIdleParttimeJobsyncAPIRequest) SetJobList(_jobList []PartTimeJob) error { + r._jobList = _jobList + r.Set("job_list", _jobList) + return nil +} + +// JobList Getter +func (r AlibabaIdleParttimeJobsyncAPIRequest) GetJobList() []PartTimeJob { + return r._jobList +} +// SyncTime Setter +// 同步数据的时间 +func (r *AlibabaIdleParttimeJobsyncAPIRequest) SetSyncTime(_syncTime int64) error { + r._syncTime = _syncTime + r.Set("sync_time", _syncTime) + return nil +} + +// SyncTime Getter +func (r AlibabaIdleParttimeJobsyncAPIRequest) GetSyncTime() int64 { + return r._syncTime +} diff --git a/model/idleparttime/AlibabaIdleParttimeJobsyncAPIResponse.go b/model/idleparttime/AlibabaIdleParttimeJobsyncAPIResponse.go new file mode 100644 index 0000000000..8836cfaead --- /dev/null +++ b/model/idleparttime/AlibabaIdleParttimeJobsyncAPIResponse.go @@ -0,0 +1,27 @@ +package idleparttime + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +兼职岗位同步 API返回值 +alibaba.idle.parttime.jobsync + +服务商同步岗位信息给闲鱼 +*/ +type AlibabaIdleParttimeJobsyncAPIResponse struct { + model.CommonResponse + AlibabaIdleParttimeJobsyncAPIResponseModel +} + +// 兼职岗位同步 成功返回结果 +type AlibabaIdleParttimeJobsyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_parttime_jobsync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/idleparttime/AlibabaIdleParttimeJobsyncResponse.go b/model/idleparttime/AlibabaIdleParttimeJobsyncResponse.go deleted file mode 100644 index 2fd27ad86f..0000000000 --- a/model/idleparttime/AlibabaIdleParttimeJobsyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idleparttime - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -兼职岗位同步 API返回值 -alibaba.idle.parttime.jobsync - -服务商同步岗位信息给闲鱼 -*/ -type AlibabaIdleParttimeJobsyncAPIResponse struct { - model.CommonResponse - AlibabaIdleParttimeJobsyncResponse -} - -// 兼职岗位同步 成功返回结果 -type AlibabaIdleParttimeJobsyncResponse struct { - XMLName xml.Name `xml:"alibaba_idle_parttime_jobsync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/idleparttime/AlibabaIdleParttimeNotifyAPIRequest.go b/model/idleparttime/AlibabaIdleParttimeNotifyAPIRequest.go new file mode 100644 index 0000000000..f906184505 --- /dev/null +++ b/model/idleparttime/AlibabaIdleParttimeNotifyAPIRequest.go @@ -0,0 +1,136 @@ +package idleparttime + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +兼职通知接口 API请求 +alibaba.idle.parttime.notify + +服务商侧有岗位状态变更对我们进行通知(岗位关闭, 录取状态) +*/ +type AlibabaIdleParttimeNotifyAPIRequest struct { + model.Params + // 实时同步类型, 0: 岗位状态, 1: 录取状态 + _type int64 + // 岗位: 0关闭 ; 录取: 0不录取, 1录取 + _status int64 + // 岗位id + _jobId int64 + // 用户id + _userId int64 + // 同步时间 + _syncTime int64 + // 报名id + _applyId int64 + // 通知消息 + _message string +} + +// 初始化AlibabaIdleParttimeNotifyAPIRequest对象 +func NewAlibabaIdleParttimeNotifyRequest() *AlibabaIdleParttimeNotifyAPIRequest{ + return &AlibabaIdleParttimeNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleParttimeNotifyAPIRequest) GetApiMethodName() string { + return "alibaba.idle.parttime.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleParttimeNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// 实时同步类型, 0: 岗位状态, 1: 录取状态 +func (r *AlibabaIdleParttimeNotifyAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaIdleParttimeNotifyAPIRequest) GetType() int64 { + return r._type +} +// Status Setter +// 岗位: 0关闭 ; 录取: 0不录取, 1录取 +func (r *AlibabaIdleParttimeNotifyAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaIdleParttimeNotifyAPIRequest) GetStatus() int64 { + return r._status +} +// JobId Setter +// 岗位id +func (r *AlibabaIdleParttimeNotifyAPIRequest) SetJobId(_jobId int64) error { + r._jobId = _jobId + r.Set("job_id", _jobId) + return nil +} + +// JobId Getter +func (r AlibabaIdleParttimeNotifyAPIRequest) GetJobId() int64 { + return r._jobId +} +// UserId Setter +// 用户id +func (r *AlibabaIdleParttimeNotifyAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaIdleParttimeNotifyAPIRequest) GetUserId() int64 { + return r._userId +} +// SyncTime Setter +// 同步时间 +func (r *AlibabaIdleParttimeNotifyAPIRequest) SetSyncTime(_syncTime int64) error { + r._syncTime = _syncTime + r.Set("sync_time", _syncTime) + return nil +} + +// SyncTime Getter +func (r AlibabaIdleParttimeNotifyAPIRequest) GetSyncTime() int64 { + return r._syncTime +} +// ApplyId Setter +// 报名id +func (r *AlibabaIdleParttimeNotifyAPIRequest) SetApplyId(_applyId int64) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r AlibabaIdleParttimeNotifyAPIRequest) GetApplyId() int64 { + return r._applyId +} +// Message Setter +// 通知消息 +func (r *AlibabaIdleParttimeNotifyAPIRequest) SetMessage(_message string) error { + r._message = _message + r.Set("message", _message) + return nil +} + +// Message Getter +func (r AlibabaIdleParttimeNotifyAPIRequest) GetMessage() string { + return r._message +} diff --git a/model/idleparttime/AlibabaIdleParttimeNotifyAPIResponse.go b/model/idleparttime/AlibabaIdleParttimeNotifyAPIResponse.go new file mode 100644 index 0000000000..a07936df97 --- /dev/null +++ b/model/idleparttime/AlibabaIdleParttimeNotifyAPIResponse.go @@ -0,0 +1,27 @@ +package idleparttime + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +兼职通知接口 API返回值 +alibaba.idle.parttime.notify + +服务商侧有岗位状态变更对我们进行通知(岗位关闭, 录取状态) +*/ +type AlibabaIdleParttimeNotifyAPIResponse struct { + model.CommonResponse + AlibabaIdleParttimeNotifyAPIResponseModel +} + +// 兼职通知接口 成功返回结果 +type AlibabaIdleParttimeNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_parttime_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/idleparttime/AlibabaIdleParttimeNotifyResponse.go b/model/idleparttime/AlibabaIdleParttimeNotifyResponse.go deleted file mode 100644 index c55864cc39..0000000000 --- a/model/idleparttime/AlibabaIdleParttimeNotifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idleparttime - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -兼职通知接口 API返回值 -alibaba.idle.parttime.notify - -服务商侧有岗位状态变更对我们进行通知(岗位关闭, 录取状态) -*/ -type AlibabaIdleParttimeNotifyAPIResponse struct { - model.CommonResponse - AlibabaIdleParttimeNotifyResponse -} - -// 兼职通知接口 成功返回结果 -type AlibabaIdleParttimeNotifyResponse struct { - XMLName xml.Name `xml:"alibaba_idle_parttime_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/idleparttime/AlibabaIdleParttimeSynclogAPIRequest.go b/model/idleparttime/AlibabaIdleParttimeSynclogAPIRequest.go new file mode 100644 index 0000000000..510d3da068 --- /dev/null +++ b/model/idleparttime/AlibabaIdleParttimeSynclogAPIRequest.go @@ -0,0 +1,122 @@ +package idleparttime + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +兼职同步日志 API请求 +alibaba.idle.parttime.synclog + +提供给供应商查询的接口 +*/ +type AlibabaIdleParttimeSynclogAPIRequest struct { + model.Params + // 查询岗位同步开始时间 + _startTime int64 + // 查询岗位同步结束时间 + _endTime int64 + // 查询的类型, 0:岗位 + _type int64 + // 页大小 + _pageSize int64 + // 第几页, 从0开始 + _pageNum int64 + // 同步的id + _syncIds []int64 +} + +// 初始化AlibabaIdleParttimeSynclogAPIRequest对象 +func NewAlibabaIdleParttimeSynclogRequest() *AlibabaIdleParttimeSynclogAPIRequest{ + return &AlibabaIdleParttimeSynclogAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIdleParttimeSynclogAPIRequest) GetApiMethodName() string { + return "alibaba.idle.parttime.synclog" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIdleParttimeSynclogAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartTime Setter +// 查询岗位同步开始时间 +func (r *AlibabaIdleParttimeSynclogAPIRequest) SetStartTime(_startTime int64) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r AlibabaIdleParttimeSynclogAPIRequest) GetStartTime() int64 { + return r._startTime +} +// EndTime Setter +// 查询岗位同步结束时间 +func (r *AlibabaIdleParttimeSynclogAPIRequest) SetEndTime(_endTime int64) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r AlibabaIdleParttimeSynclogAPIRequest) GetEndTime() int64 { + return r._endTime +} +// Type Setter +// 查询的类型, 0:岗位 +func (r *AlibabaIdleParttimeSynclogAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaIdleParttimeSynclogAPIRequest) GetType() int64 { + return r._type +} +// PageSize Setter +// 页大小 +func (r *AlibabaIdleParttimeSynclogAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaIdleParttimeSynclogAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNum Setter +// 第几页, 从0开始 +func (r *AlibabaIdleParttimeSynclogAPIRequest) SetPageNum(_pageNum int64) error { + r._pageNum = _pageNum + r.Set("page_num", _pageNum) + return nil +} + +// PageNum Getter +func (r AlibabaIdleParttimeSynclogAPIRequest) GetPageNum() int64 { + return r._pageNum +} +// SyncIds Setter +// 同步的id +func (r *AlibabaIdleParttimeSynclogAPIRequest) SetSyncIds(_syncIds []int64) error { + r._syncIds = _syncIds + r.Set("sync_ids", _syncIds) + return nil +} + +// SyncIds Getter +func (r AlibabaIdleParttimeSynclogAPIRequest) GetSyncIds() []int64 { + return r._syncIds +} diff --git a/model/idleparttime/AlibabaIdleParttimeSynclogAPIResponse.go b/model/idleparttime/AlibabaIdleParttimeSynclogAPIResponse.go new file mode 100644 index 0000000000..9645d1a277 --- /dev/null +++ b/model/idleparttime/AlibabaIdleParttimeSynclogAPIResponse.go @@ -0,0 +1,27 @@ +package idleparttime + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +兼职同步日志 API返回值 +alibaba.idle.parttime.synclog + +提供给供应商查询的接口 +*/ +type AlibabaIdleParttimeSynclogAPIResponse struct { + model.CommonResponse + AlibabaIdleParttimeSynclogAPIResponseModel +} + +// 兼职同步日志 成功返回结果 +type AlibabaIdleParttimeSynclogAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_idle_parttime_synclog_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaIdleParttimeSynclogResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/idleparttime/AlibabaIdleParttimeSynclogResponse.go b/model/idleparttime/AlibabaIdleParttimeSynclogResponse.go deleted file mode 100644 index 8a8054e838..0000000000 --- a/model/idleparttime/AlibabaIdleParttimeSynclogResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package idleparttime - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -兼职同步日志 API返回值 -alibaba.idle.parttime.synclog - -提供给供应商查询的接口 -*/ -type AlibabaIdleParttimeSynclogAPIResponse struct { - model.CommonResponse - AlibabaIdleParttimeSynclogResponse -} - -// 兼职同步日志 成功返回结果 -type AlibabaIdleParttimeSynclogResponse struct { - XMLName xml.Name `xml:"alibaba_idle_parttime_synclog_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaIdleParttimeSynclogResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ieagency/AlitripIeBuyerOrderBookpayAPIRequest.go b/model/ieagency/AlitripIeBuyerOrderBookpayAPIRequest.go new file mode 100644 index 0000000000..7f98427b68 --- /dev/null +++ b/model/ieagency/AlitripIeBuyerOrderBookpayAPIRequest.go @@ -0,0 +1,52 @@ +package ieagency + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票】下单预定支付 API请求 +alitrip.ie.buyer.order.bookpay + +【国际机票】 生单预定支付接口 +*/ +type AlitripIeBuyerOrderBookpayAPIRequest struct { + model.Params + // 生单支付请求参数 + _bookPayOrderParam *BookPayOrderRq +} + +// 初始化AlitripIeBuyerOrderBookpayAPIRequest对象 +func NewAlitripIeBuyerOrderBookpayRequest() *AlitripIeBuyerOrderBookpayAPIRequest{ + return &AlitripIeBuyerOrderBookpayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripIeBuyerOrderBookpayAPIRequest) GetApiMethodName() string { + return "alitrip.ie.buyer.order.bookpay" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripIeBuyerOrderBookpayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BookPayOrderParam Setter +// 生单支付请求参数 +func (r *AlitripIeBuyerOrderBookpayAPIRequest) SetBookPayOrderParam(_bookPayOrderParam *BookPayOrderRq) error { + r._bookPayOrderParam = _bookPayOrderParam + r.Set("book_pay_order_param", _bookPayOrderParam) + return nil +} + +// BookPayOrderParam Getter +func (r AlitripIeBuyerOrderBookpayAPIRequest) GetBookPayOrderParam() *BookPayOrderRq { + return r._bookPayOrderParam +} diff --git a/model/ieagency/AlitripIeBuyerOrderBookpayAPIResponse.go b/model/ieagency/AlitripIeBuyerOrderBookpayAPIResponse.go new file mode 100644 index 0000000000..75f7a1d6ec --- /dev/null +++ b/model/ieagency/AlitripIeBuyerOrderBookpayAPIResponse.go @@ -0,0 +1,27 @@ +package ieagency + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票】下单预定支付 API返回值 +alitrip.ie.buyer.order.bookpay + +【国际机票】 生单预定支付接口 +*/ +type AlitripIeBuyerOrderBookpayAPIResponse struct { + model.CommonResponse + AlitripIeBuyerOrderBookpayAPIResponseModel +} + +// 【国际机票】下单预定支付 成功返回结果 +type AlitripIeBuyerOrderBookpayAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ie_buyer_order_bookpay_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应 + BookPayOrderResult *BaseApiResult `json:"book_pay_order_result,omitempty" xml:"book_pay_order_result,omitempty"` +} diff --git a/model/ieagency/AlitripIeBuyerOrderBookpayResponse.go b/model/ieagency/AlitripIeBuyerOrderBookpayResponse.go deleted file mode 100644 index 97dcb59a15..0000000000 --- a/model/ieagency/AlitripIeBuyerOrderBookpayResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ieagency - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【国际机票】下单预定支付 API返回值 -alitrip.ie.buyer.order.bookpay - -【国际机票】 生单预定支付接口 -*/ -type AlitripIeBuyerOrderBookpayAPIResponse struct { - model.CommonResponse - AlitripIeBuyerOrderBookpayResponse -} - -// 【国际机票】下单预定支付 成功返回结果 -type AlitripIeBuyerOrderBookpayResponse struct { - XMLName xml.Name `xml:"alitrip_ie_buyer_order_bookpay_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应 - BookPayOrderResult *BaseApiResult `json:"book_pay_order_result,omitempty" xml:"book_pay_order_result,omitempty"` -} diff --git a/model/ieagency/AlitripTripvpAgentOrderSearchAPIRequest.go b/model/ieagency/AlitripTripvpAgentOrderSearchAPIRequest.go new file mode 100644 index 0000000000..19da1775ba --- /dev/null +++ b/model/ieagency/AlitripTripvpAgentOrderSearchAPIRequest.go @@ -0,0 +1,122 @@ +package ieagency + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票】查询辅营订单列表 API请求 +alitrip.tripvp.agent.order.search + +【国际机票】查询辅营订单列表 +*/ +type AlitripTripvpAgentOrderSearchAPIRequest struct { + model.Params + // 代理商ID + _agentId int64 + // 辅营创建开始时间 + _beginTime string + // 当前页码 + _currentPage int64 + // 辅营创建结束时间 + _endTime string + // 订单状态,1-待支付 2-支付成功 3- 辅营出货成功 4-订单取消 + _orderStatus int64 + // 分页行数 + _pageSize int64 +} + +// 初始化AlitripTripvpAgentOrderSearchAPIRequest对象 +func NewAlitripTripvpAgentOrderSearchRequest() *AlitripTripvpAgentOrderSearchAPIRequest{ + return &AlitripTripvpAgentOrderSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTripvpAgentOrderSearchAPIRequest) GetApiMethodName() string { + return "alitrip.tripvp.agent.order.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTripvpAgentOrderSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentId Setter +// 代理商ID +func (r *AlitripTripvpAgentOrderSearchAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r AlitripTripvpAgentOrderSearchAPIRequest) GetAgentId() int64 { + return r._agentId +} +// BeginTime Setter +// 辅营创建开始时间 +func (r *AlitripTripvpAgentOrderSearchAPIRequest) SetBeginTime(_beginTime string) error { + r._beginTime = _beginTime + r.Set("begin_time", _beginTime) + return nil +} + +// BeginTime Getter +func (r AlitripTripvpAgentOrderSearchAPIRequest) GetBeginTime() string { + return r._beginTime +} +// CurrentPage Setter +// 当前页码 +func (r *AlitripTripvpAgentOrderSearchAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AlitripTripvpAgentOrderSearchAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// EndTime Setter +// 辅营创建结束时间 +func (r *AlitripTripvpAgentOrderSearchAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r AlitripTripvpAgentOrderSearchAPIRequest) GetEndTime() string { + return r._endTime +} +// OrderStatus Setter +// 订单状态,1-待支付 2-支付成功 3- 辅营出货成功 4-订单取消 +func (r *AlitripTripvpAgentOrderSearchAPIRequest) SetOrderStatus(_orderStatus int64) error { + r._orderStatus = _orderStatus + r.Set("order_status", _orderStatus) + return nil +} + +// OrderStatus Getter +func (r AlitripTripvpAgentOrderSearchAPIRequest) GetOrderStatus() int64 { + return r._orderStatus +} +// PageSize Setter +// 分页行数 +func (r *AlitripTripvpAgentOrderSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlitripTripvpAgentOrderSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/ieagency/AlitripTripvpAgentOrderSearchAPIResponse.go b/model/ieagency/AlitripTripvpAgentOrderSearchAPIResponse.go new file mode 100644 index 0000000000..ed2cff9a55 --- /dev/null +++ b/model/ieagency/AlitripTripvpAgentOrderSearchAPIResponse.go @@ -0,0 +1,31 @@ +package ieagency + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票】查询辅营订单列表 API返回值 +alitrip.tripvp.agent.order.search + +【国际机票】查询辅营订单列表 +*/ +type AlitripTripvpAgentOrderSearchAPIResponse struct { + model.CommonResponse + AlitripTripvpAgentOrderSearchAPIResponseModel +} + +// 【国际机票】查询辅营订单列表 成功返回结果 +type AlitripTripvpAgentOrderSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_tripvp_agent_order_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 当前页码CurrentPage + CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"` + // 是否有下一页 + HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` + // 辅营订单列表 + OrderVos []VirProOrderVo `json:"order_vos,omitempty" xml:"order_vos>vir_pro_order_vo,omitempty"` +} diff --git a/model/ieagency/AlitripTripvpAgentOrderSearchResponse.go b/model/ieagency/AlitripTripvpAgentOrderSearchResponse.go deleted file mode 100644 index 2372f5df4d..0000000000 --- a/model/ieagency/AlitripTripvpAgentOrderSearchResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package ieagency - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【国际机票】查询辅营订单列表 API返回值 -alitrip.tripvp.agent.order.search - -【国际机票】查询辅营订单列表 -*/ -type AlitripTripvpAgentOrderSearchAPIResponse struct { - model.CommonResponse - AlitripTripvpAgentOrderSearchResponse -} - -// 【国际机票】查询辅营订单列表 成功返回结果 -type AlitripTripvpAgentOrderSearchResponse struct { - XMLName xml.Name `xml:"alitrip_tripvp_agent_order_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 当前页码CurrentPage - CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"` - // 是否有下一页 - HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` - // 辅营订单列表 - OrderVos []VirProOrderVo `json:"order_vos,omitempty" xml:"order_vos>vir_pro_order_vo,omitempty"` -} diff --git a/model/ieagency/TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest.go b/model/ieagency/TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest.go new file mode 100644 index 0000000000..f6d35a560c --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest.go @@ -0,0 +1,164 @@ +package ieagency + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家查询改签列表 API请求 +taobao.alitrip.ie.agent.change.querychangelist + +提供B2B卖家查看改签列表服务 +*/ +type TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest struct { + model.Params + // WAITING_CONFIRM(10, "卖家待确认"),CONFIRMED(20, "卖家已确认"),WAITING_ISSUE(30, "卖家待出票"),FROZEN_ORDER(40, "出票超时冻结"),ISSUE_SUCCESS(50, "出票成功"),CHECKING_FAILURE(60,"验真失败"),CHECKING_SUCCCESS(61,"验真成功"),REFUSED(70, "卖家已拒绝") + _changeBizStatusEnum string + // 改签申请单ID + _changeOrderId int64 + // 申请原因类型 0-因乘客个人原因(自愿改签) ,1-因航班取消/延误(非自愿), + _changeReasonType string + // 1 + _endCreateDate string + // 订单ID + _orderId int64 + // 分页索引 + _pageIndex int64 + // 分页大小 + _pageSize int64 + // 排序 + _sortField int64 + // 1 + _startCreateDate string +} + +// 初始化TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest对象 +func NewTaobaoAlitripIeAgentChangeQuerychangelistRequest() *TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest{ + return &TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.ie.agent.change.querychangelist" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChangeBizStatusEnum Setter +// WAITING_CONFIRM(10, "卖家待确认"),CONFIRMED(20, "卖家已确认"),WAITING_ISSUE(30, "卖家待出票"),FROZEN_ORDER(40, "出票超时冻结"),ISSUE_SUCCESS(50, "出票成功"),CHECKING_FAILURE(60,"验真失败"),CHECKING_SUCCCESS(61,"验真成功"),REFUSED(70, "卖家已拒绝") +func (r *TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) SetChangeBizStatusEnum(_changeBizStatusEnum string) error { + r._changeBizStatusEnum = _changeBizStatusEnum + r.Set("change_biz_status_enum", _changeBizStatusEnum) + return nil +} + +// ChangeBizStatusEnum Getter +func (r TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) GetChangeBizStatusEnum() string { + return r._changeBizStatusEnum +} +// ChangeOrderId Setter +// 改签申请单ID +func (r *TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) SetChangeOrderId(_changeOrderId int64) error { + r._changeOrderId = _changeOrderId + r.Set("change_order_id", _changeOrderId) + return nil +} + +// ChangeOrderId Getter +func (r TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) GetChangeOrderId() int64 { + return r._changeOrderId +} +// ChangeReasonType Setter +// 申请原因类型 0-因乘客个人原因(自愿改签) ,1-因航班取消/延误(非自愿), +func (r *TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) SetChangeReasonType(_changeReasonType string) error { + r._changeReasonType = _changeReasonType + r.Set("change_reason_type", _changeReasonType) + return nil +} + +// ChangeReasonType Getter +func (r TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) GetChangeReasonType() string { + return r._changeReasonType +} +// EndCreateDate Setter +// 1 +func (r *TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) SetEndCreateDate(_endCreateDate string) error { + r._endCreateDate = _endCreateDate + r.Set("end_create_date", _endCreateDate) + return nil +} + +// EndCreateDate Getter +func (r TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) GetEndCreateDate() string { + return r._endCreateDate +} +// OrderId Setter +// 订单ID +func (r *TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) GetOrderId() int64 { + return r._orderId +} +// PageIndex Setter +// 分页索引 +func (r *TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} +// PageSize Setter +// 分页大小 +func (r *TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// SortField Setter +// 排序 +func (r *TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) SetSortField(_sortField int64) error { + r._sortField = _sortField + r.Set("sort_field", _sortField) + return nil +} + +// SortField Getter +func (r TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) GetSortField() int64 { + return r._sortField +} +// StartCreateDate Setter +// 1 +func (r *TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) SetStartCreateDate(_startCreateDate string) error { + r._startCreateDate = _startCreateDate + r.Set("start_create_date", _startCreateDate) + return nil +} + +// StartCreateDate Getter +func (r TaobaoAlitripIeAgentChangeQuerychangelistAPIRequest) GetStartCreateDate() string { + return r._startCreateDate +} diff --git a/model/ieagency/TaobaoAlitripIeAgentChangeQuerychangelistAPIResponse.go b/model/ieagency/TaobaoAlitripIeAgentChangeQuerychangelistAPIResponse.go new file mode 100644 index 0000000000..accf18f887 --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentChangeQuerychangelistAPIResponse.go @@ -0,0 +1,27 @@ +package ieagency + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家查询改签列表 API返回值 +taobao.alitrip.ie.agent.change.querychangelist + +提供B2B卖家查看改签列表服务 +*/ +type TaobaoAlitripIeAgentChangeQuerychangelistAPIResponse struct { + model.CommonResponse + TaobaoAlitripIeAgentChangeQuerychangelistAPIResponseModel +} + +// 卖家查询改签列表 成功返回结果 +type TaobaoAlitripIeAgentChangeQuerychangelistAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ie_agent_change_querychangelist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *QueryChangeAgentListRs `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ieagency/TaobaoAlitripIeAgentChangeQuerychangelistResponse.go b/model/ieagency/TaobaoAlitripIeAgentChangeQuerychangelistResponse.go deleted file mode 100644 index b06d2629b0..0000000000 --- a/model/ieagency/TaobaoAlitripIeAgentChangeQuerychangelistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ieagency - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家查询改签列表 API返回值 -taobao.alitrip.ie.agent.change.querychangelist - -提供B2B卖家查看改签列表服务 -*/ -type TaobaoAlitripIeAgentChangeQuerychangelistAPIResponse struct { - model.CommonResponse - TaobaoAlitripIeAgentChangeQuerychangelistResponse -} - -// 卖家查询改签列表 成功返回结果 -type TaobaoAlitripIeAgentChangeQuerychangelistResponse struct { - XMLName xml.Name `xml:"alitrip_ie_agent_change_querychangelist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *QueryChangeAgentListRs `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ieagency/TaobaoAlitripIeAgentOrderGetAPIRequest.go b/model/ieagency/TaobaoAlitripIeAgentOrderGetAPIRequest.go new file mode 100644 index 0000000000..eae9ace527 --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentOrderGetAPIRequest.go @@ -0,0 +1,66 @@ +package ieagency + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票】查询订单详情 API请求 +taobao.alitrip.ie.agent.order.get + +根据订单ID查询订单详情 +*/ +type TaobaoAlitripIeAgentOrderGetAPIRequest struct { + model.Params + // 代理商ID + _agentId int64 + // 交易订单ID + _tradeOrderId int64 +} + +// 初始化TaobaoAlitripIeAgentOrderGetAPIRequest对象 +func NewTaobaoAlitripIeAgentOrderGetRequest() *TaobaoAlitripIeAgentOrderGetAPIRequest{ + return &TaobaoAlitripIeAgentOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripIeAgentOrderGetAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.ie.agent.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripIeAgentOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentId Setter +// 代理商ID +func (r *TaobaoAlitripIeAgentOrderGetAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoAlitripIeAgentOrderGetAPIRequest) GetAgentId() int64 { + return r._agentId +} +// TradeOrderId Setter +// 交易订单ID +func (r *TaobaoAlitripIeAgentOrderGetAPIRequest) SetTradeOrderId(_tradeOrderId int64) error { + r._tradeOrderId = _tradeOrderId + r.Set("trade_order_id", _tradeOrderId) + return nil +} + +// TradeOrderId Getter +func (r TaobaoAlitripIeAgentOrderGetAPIRequest) GetTradeOrderId() int64 { + return r._tradeOrderId +} diff --git a/model/ieagency/TaobaoAlitripIeAgentOrderGetAPIResponse.go b/model/ieagency/TaobaoAlitripIeAgentOrderGetAPIResponse.go new file mode 100644 index 0000000000..75659f7c30 --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentOrderGetAPIResponse.go @@ -0,0 +1,27 @@ +package ieagency + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票】查询订单详情 API返回值 +taobao.alitrip.ie.agent.order.get + +根据订单ID查询订单详情 +*/ +type TaobaoAlitripIeAgentOrderGetAPIResponse struct { + model.CommonResponse + TaobaoAlitripIeAgentOrderGetAPIResponseModel +} + +// 【国际机票】查询订单详情 成功返回结果 +type TaobaoAlitripIeAgentOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ie_agent_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据 + OrderVo *IeOrderVo `json:"order_vo,omitempty" xml:"order_vo,omitempty"` +} diff --git a/model/ieagency/TaobaoAlitripIeAgentOrderGetResponse.go b/model/ieagency/TaobaoAlitripIeAgentOrderGetResponse.go deleted file mode 100644 index 2b1329d74c..0000000000 --- a/model/ieagency/TaobaoAlitripIeAgentOrderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ieagency - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【国际机票】查询订单详情 API返回值 -taobao.alitrip.ie.agent.order.get - -根据订单ID查询订单详情 -*/ -type TaobaoAlitripIeAgentOrderGetAPIResponse struct { - model.CommonResponse - TaobaoAlitripIeAgentOrderGetResponse -} - -// 【国际机票】查询订单详情 成功返回结果 -type TaobaoAlitripIeAgentOrderGetResponse struct { - XMLName xml.Name `xml:"alitrip_ie_agent_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据 - OrderVo *IeOrderVo `json:"order_vo,omitempty" xml:"order_vo,omitempty"` -} diff --git a/model/ieagency/TaobaoAlitripIeAgentOrderHkAPIRequest.go b/model/ieagency/TaobaoAlitripIeAgentOrderHkAPIRequest.go new file mode 100644 index 0000000000..3305295e80 --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentOrderHkAPIRequest.go @@ -0,0 +1,66 @@ +package ieagency + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票】手工预定回填PNR API请求 +taobao.alitrip.ie.agent.order.hk + +代理商通过手工预定PNR,并回填。 +*/ +type TaobaoAlitripIeAgentOrderHkAPIRequest struct { + model.Params + // 代理商ID + _agentId int64 + // 回填pnr信息 + _writeBackPnrVO *IeWriteBackPnrVO +} + +// 初始化TaobaoAlitripIeAgentOrderHkAPIRequest对象 +func NewTaobaoAlitripIeAgentOrderHkRequest() *TaobaoAlitripIeAgentOrderHkAPIRequest{ + return &TaobaoAlitripIeAgentOrderHkAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripIeAgentOrderHkAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.ie.agent.order.hk" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripIeAgentOrderHkAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentId Setter +// 代理商ID +func (r *TaobaoAlitripIeAgentOrderHkAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoAlitripIeAgentOrderHkAPIRequest) GetAgentId() int64 { + return r._agentId +} +// WriteBackPnrVO Setter +// 回填pnr信息 +func (r *TaobaoAlitripIeAgentOrderHkAPIRequest) SetWriteBackPnrVO(_writeBackPnrVO *IeWriteBackPnrVO) error { + r._writeBackPnrVO = _writeBackPnrVO + r.Set("write_back_pnr_v_o", _writeBackPnrVO) + return nil +} + +// WriteBackPnrVO Getter +func (r TaobaoAlitripIeAgentOrderHkAPIRequest) GetWriteBackPnrVO() *IeWriteBackPnrVO { + return r._writeBackPnrVO +} diff --git a/model/ieagency/TaobaoAlitripIeAgentOrderHkAPIResponse.go b/model/ieagency/TaobaoAlitripIeAgentOrderHkAPIResponse.go new file mode 100644 index 0000000000..63c427c19b --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentOrderHkAPIResponse.go @@ -0,0 +1,27 @@ +package ieagency + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票】手工预定回填PNR API返回值 +taobao.alitrip.ie.agent.order.hk + +代理商通过手工预定PNR,并回填。 +*/ +type TaobaoAlitripIeAgentOrderHkAPIResponse struct { + model.CommonResponse + TaobaoAlitripIeAgentOrderHkAPIResponseModel +} + +// 【国际机票】手工预定回填PNR 成功返回结果 +type TaobaoAlitripIeAgentOrderHkAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ie_agent_order_hk_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否回填成功true:成功 false:失败 + HkSuccess bool `json:"hk_success,omitempty" xml:"hk_success,omitempty"` +} diff --git a/model/ieagency/TaobaoAlitripIeAgentOrderHkResponse.go b/model/ieagency/TaobaoAlitripIeAgentOrderHkResponse.go deleted file mode 100644 index dbe1c99a62..0000000000 --- a/model/ieagency/TaobaoAlitripIeAgentOrderHkResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ieagency - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【国际机票】手工预定回填PNR API返回值 -taobao.alitrip.ie.agent.order.hk - -代理商通过手工预定PNR,并回填。 -*/ -type TaobaoAlitripIeAgentOrderHkAPIResponse struct { - model.CommonResponse - TaobaoAlitripIeAgentOrderHkResponse -} - -// 【国际机票】手工预定回填PNR 成功返回结果 -type TaobaoAlitripIeAgentOrderHkResponse struct { - XMLName xml.Name `xml:"alitrip_ie_agent_order_hk_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否回填成功true:成功 false:失败 - HkSuccess bool `json:"hk_success,omitempty" xml:"hk_success,omitempty"` -} diff --git a/model/ieagency/TaobaoAlitripIeAgentOrderSearchAPIRequest.go b/model/ieagency/TaobaoAlitripIeAgentOrderSearchAPIRequest.go new file mode 100644 index 0000000000..59fb17438e --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentOrderSearchAPIRequest.go @@ -0,0 +1,164 @@ +package ieagency + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票】订单列表查询 API请求 +taobao.alitrip.ie.agent.order.search + +根据指定条件查询国际机票订单列表 +*/ +type TaobaoAlitripIeAgentOrderSearchAPIRequest struct { + model.Params + // 代理商ID + _agentId int64 + // 订单起始日期 + _beginTime string + // 当前页码 + _currentPage int64 + // 订单结束日期 + _endTime string + // 订单状态(只能传入一个状态,不支持多个一起传) + _orderStatus string + // 分页大小 + _pageSize int64 + // 0:自有运价;3:公布运价;9:大卖家API;11私有库存 + _fareSource int64 + // 供应渠道/资源码 + _resourceCode string + // officeNo + _officeNo string +} + +// 初始化TaobaoAlitripIeAgentOrderSearchAPIRequest对象 +func NewTaobaoAlitripIeAgentOrderSearchRequest() *TaobaoAlitripIeAgentOrderSearchAPIRequest{ + return &TaobaoAlitripIeAgentOrderSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripIeAgentOrderSearchAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.ie.agent.order.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripIeAgentOrderSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentId Setter +// 代理商ID +func (r *TaobaoAlitripIeAgentOrderSearchAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoAlitripIeAgentOrderSearchAPIRequest) GetAgentId() int64 { + return r._agentId +} +// BeginTime Setter +// 订单起始日期 +func (r *TaobaoAlitripIeAgentOrderSearchAPIRequest) SetBeginTime(_beginTime string) error { + r._beginTime = _beginTime + r.Set("begin_time", _beginTime) + return nil +} + +// BeginTime Getter +func (r TaobaoAlitripIeAgentOrderSearchAPIRequest) GetBeginTime() string { + return r._beginTime +} +// CurrentPage Setter +// 当前页码 +func (r *TaobaoAlitripIeAgentOrderSearchAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TaobaoAlitripIeAgentOrderSearchAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// EndTime Setter +// 订单结束日期 +func (r *TaobaoAlitripIeAgentOrderSearchAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoAlitripIeAgentOrderSearchAPIRequest) GetEndTime() string { + return r._endTime +} +// OrderStatus Setter +// 订单状态(只能传入一个状态,不支持多个一起传) +func (r *TaobaoAlitripIeAgentOrderSearchAPIRequest) SetOrderStatus(_orderStatus string) error { + r._orderStatus = _orderStatus + r.Set("order_status", _orderStatus) + return nil +} + +// OrderStatus Getter +func (r TaobaoAlitripIeAgentOrderSearchAPIRequest) GetOrderStatus() string { + return r._orderStatus +} +// PageSize Setter +// 分页大小 +func (r *TaobaoAlitripIeAgentOrderSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoAlitripIeAgentOrderSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// FareSource Setter +// 0:自有运价;3:公布运价;9:大卖家API;11私有库存 +func (r *TaobaoAlitripIeAgentOrderSearchAPIRequest) SetFareSource(_fareSource int64) error { + r._fareSource = _fareSource + r.Set("fare_source", _fareSource) + return nil +} + +// FareSource Getter +func (r TaobaoAlitripIeAgentOrderSearchAPIRequest) GetFareSource() int64 { + return r._fareSource +} +// ResourceCode Setter +// 供应渠道/资源码 +func (r *TaobaoAlitripIeAgentOrderSearchAPIRequest) SetResourceCode(_resourceCode string) error { + r._resourceCode = _resourceCode + r.Set("resource_code", _resourceCode) + return nil +} + +// ResourceCode Getter +func (r TaobaoAlitripIeAgentOrderSearchAPIRequest) GetResourceCode() string { + return r._resourceCode +} +// OfficeNo Setter +// officeNo +func (r *TaobaoAlitripIeAgentOrderSearchAPIRequest) SetOfficeNo(_officeNo string) error { + r._officeNo = _officeNo + r.Set("office_no", _officeNo) + return nil +} + +// OfficeNo Getter +func (r TaobaoAlitripIeAgentOrderSearchAPIRequest) GetOfficeNo() string { + return r._officeNo +} diff --git a/model/ieagency/TaobaoAlitripIeAgentOrderSearchAPIResponse.go b/model/ieagency/TaobaoAlitripIeAgentOrderSearchAPIResponse.go new file mode 100644 index 0000000000..58e86543a7 --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentOrderSearchAPIResponse.go @@ -0,0 +1,31 @@ +package ieagency + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票】订单列表查询 API返回值 +taobao.alitrip.ie.agent.order.search + +根据指定条件查询国际机票订单列表 +*/ +type TaobaoAlitripIeAgentOrderSearchAPIResponse struct { + model.CommonResponse + TaobaoAlitripIeAgentOrderSearchAPIResponseModel +} + +// 【国际机票】订单列表查询 成功返回结果 +type TaobaoAlitripIeAgentOrderSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ie_agent_order_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单列表 + BaseOrderVos []IeBaseOrderVo `json:"base_order_vos,omitempty" xml:"base_order_vos>ie_base_order_vo,omitempty"` + // 请求成功标识 + QuerySuccess bool `json:"query_success,omitempty" xml:"query_success,omitempty"` + // 是否可以翻页查询 + HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` +} diff --git a/model/ieagency/TaobaoAlitripIeAgentOrderSearchResponse.go b/model/ieagency/TaobaoAlitripIeAgentOrderSearchResponse.go deleted file mode 100644 index bcddb3f04c..0000000000 --- a/model/ieagency/TaobaoAlitripIeAgentOrderSearchResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package ieagency - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【国际机票】订单列表查询 API返回值 -taobao.alitrip.ie.agent.order.search - -根据指定条件查询国际机票订单列表 -*/ -type TaobaoAlitripIeAgentOrderSearchAPIResponse struct { - model.CommonResponse - TaobaoAlitripIeAgentOrderSearchResponse -} - -// 【国际机票】订单列表查询 成功返回结果 -type TaobaoAlitripIeAgentOrderSearchResponse struct { - XMLName xml.Name `xml:"alitrip_ie_agent_order_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单列表 - BaseOrderVos []IeBaseOrderVo `json:"base_order_vos,omitempty" xml:"base_order_vos>ie_base_order_vo,omitempty"` - // 请求成功标识 - QuerySuccess bool `json:"query_success,omitempty" xml:"query_success,omitempty"` - // 是否可以翻页查询 - HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` -} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundAgreeAPIRequest.go b/model/ieagency/TaobaoAlitripIeAgentRefundAgreeAPIRequest.go new file mode 100644 index 0000000000..2ce51747f7 --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentRefundAgreeAPIRequest.go @@ -0,0 +1,108 @@ +package ieagency + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同意退票 API请求 +taobao.alitrip.ie.agent.refund.agree + +卖家同意买家退票申请 +*/ +type TaobaoAlitripIeAgentRefundAgreeAPIRequest struct { + model.Params + // 退款金额 + _refundMoney int64 + // 申请单id + _applyId int64 + // 订单id + _orderId int64 + // 回复信息 + _agentAnswer string + // 代理商id + _agentId int64 +} + +// 初始化TaobaoAlitripIeAgentRefundAgreeAPIRequest对象 +func NewTaobaoAlitripIeAgentRefundAgreeRequest() *TaobaoAlitripIeAgentRefundAgreeAPIRequest{ + return &TaobaoAlitripIeAgentRefundAgreeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripIeAgentRefundAgreeAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.ie.agent.refund.agree" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripIeAgentRefundAgreeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundMoney Setter +// 退款金额 +func (r *TaobaoAlitripIeAgentRefundAgreeAPIRequest) SetRefundMoney(_refundMoney int64) error { + r._refundMoney = _refundMoney + r.Set("refund_money", _refundMoney) + return nil +} + +// RefundMoney Getter +func (r TaobaoAlitripIeAgentRefundAgreeAPIRequest) GetRefundMoney() int64 { + return r._refundMoney +} +// ApplyId Setter +// 申请单id +func (r *TaobaoAlitripIeAgentRefundAgreeAPIRequest) SetApplyId(_applyId int64) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r TaobaoAlitripIeAgentRefundAgreeAPIRequest) GetApplyId() int64 { + return r._applyId +} +// OrderId Setter +// 订单id +func (r *TaobaoAlitripIeAgentRefundAgreeAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoAlitripIeAgentRefundAgreeAPIRequest) GetOrderId() int64 { + return r._orderId +} +// AgentAnswer Setter +// 回复信息 +func (r *TaobaoAlitripIeAgentRefundAgreeAPIRequest) SetAgentAnswer(_agentAnswer string) error { + r._agentAnswer = _agentAnswer + r.Set("agent_answer", _agentAnswer) + return nil +} + +// AgentAnswer Getter +func (r TaobaoAlitripIeAgentRefundAgreeAPIRequest) GetAgentAnswer() string { + return r._agentAnswer +} +// AgentId Setter +// 代理商id +func (r *TaobaoAlitripIeAgentRefundAgreeAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoAlitripIeAgentRefundAgreeAPIRequest) GetAgentId() int64 { + return r._agentId +} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundAgreeAPIResponse.go b/model/ieagency/TaobaoAlitripIeAgentRefundAgreeAPIResponse.go new file mode 100644 index 0000000000..3104079d4c --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentRefundAgreeAPIResponse.go @@ -0,0 +1,27 @@ +package ieagency + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同意退票 API返回值 +taobao.alitrip.ie.agent.refund.agree + +卖家同意买家退票申请 +*/ +type TaobaoAlitripIeAgentRefundAgreeAPIResponse struct { + model.CommonResponse + TaobaoAlitripIeAgentRefundAgreeAPIResponseModel +} + +// 同意退票 成功返回结果 +type TaobaoAlitripIeAgentRefundAgreeAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ie_agent_refund_agree_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AgreeRefundTicketRs `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundAgreeResponse.go b/model/ieagency/TaobaoAlitripIeAgentRefundAgreeResponse.go deleted file mode 100644 index 7e92fd8454..0000000000 --- a/model/ieagency/TaobaoAlitripIeAgentRefundAgreeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ieagency - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同意退票 API返回值 -taobao.alitrip.ie.agent.refund.agree - -卖家同意买家退票申请 -*/ -type TaobaoAlitripIeAgentRefundAgreeAPIResponse struct { - model.CommonResponse - TaobaoAlitripIeAgentRefundAgreeResponse -} - -// 同意退票 成功返回结果 -type TaobaoAlitripIeAgentRefundAgreeResponse struct { - XMLName xml.Name `xml:"alitrip_ie_agent_refund_agree_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AgreeRefundTicketRs `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundGetAPIRequest.go b/model/ieagency/TaobaoAlitripIeAgentRefundGetAPIRequest.go new file mode 100644 index 0000000000..e1cdbfe819 --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentRefundGetAPIRequest.go @@ -0,0 +1,66 @@ +package ieagency + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取退票申请详情 API请求 +taobao.alitrip.ie.agent.refund.get + +获取退票申请详情 +*/ +type TaobaoAlitripIeAgentRefundGetAPIRequest struct { + model.Params + // 退票申请单id + _applyId int64 + // 代理商id + _agentId int64 +} + +// 初始化TaobaoAlitripIeAgentRefundGetAPIRequest对象 +func NewTaobaoAlitripIeAgentRefundGetRequest() *TaobaoAlitripIeAgentRefundGetAPIRequest{ + return &TaobaoAlitripIeAgentRefundGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripIeAgentRefundGetAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.ie.agent.refund.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripIeAgentRefundGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApplyId Setter +// 退票申请单id +func (r *TaobaoAlitripIeAgentRefundGetAPIRequest) SetApplyId(_applyId int64) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r TaobaoAlitripIeAgentRefundGetAPIRequest) GetApplyId() int64 { + return r._applyId +} +// AgentId Setter +// 代理商id +func (r *TaobaoAlitripIeAgentRefundGetAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoAlitripIeAgentRefundGetAPIRequest) GetAgentId() int64 { + return r._agentId +} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundGetAPIResponse.go b/model/ieagency/TaobaoAlitripIeAgentRefundGetAPIResponse.go new file mode 100644 index 0000000000..771c644dd3 --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentRefundGetAPIResponse.go @@ -0,0 +1,27 @@ +package ieagency + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取退票申请详情 API返回值 +taobao.alitrip.ie.agent.refund.get + +获取退票申请详情 +*/ +type TaobaoAlitripIeAgentRefundGetAPIResponse struct { + model.CommonResponse + TaobaoAlitripIeAgentRefundGetAPIResponseModel +} + +// 获取退票申请详情 成功返回结果 +type TaobaoAlitripIeAgentRefundGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ie_agent_refund_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *QueryRefundTicketDetailRs `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundGetResponse.go b/model/ieagency/TaobaoAlitripIeAgentRefundGetResponse.go deleted file mode 100644 index 71dcf481a6..0000000000 --- a/model/ieagency/TaobaoAlitripIeAgentRefundGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ieagency - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取退票申请详情 API返回值 -taobao.alitrip.ie.agent.refund.get - -获取退票申请详情 -*/ -type TaobaoAlitripIeAgentRefundGetAPIResponse struct { - model.CommonResponse - TaobaoAlitripIeAgentRefundGetResponse -} - -// 获取退票申请详情 成功返回结果 -type TaobaoAlitripIeAgentRefundGetResponse struct { - XMLName xml.Name `xml:"alitrip_ie_agent_refund_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *QueryRefundTicketDetailRs `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundNewGetdetailAPIRequest.go b/model/ieagency/TaobaoAlitripIeAgentRefundNewGetdetailAPIRequest.go new file mode 100644 index 0000000000..e280ab7e19 --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentRefundNewGetdetailAPIRequest.go @@ -0,0 +1,52 @@ +package ieagency + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询申请单详情(新版) API请求 +taobao.alitrip.ie.agent.refund.new.getdetail + +查询申请单详情 +*/ +type TaobaoAlitripIeAgentRefundNewGetdetailAPIRequest struct { + model.Params + // 请求 + _paramRefundOrderQueryDetailRq *RefundOrderQueryDetailRq +} + +// 初始化TaobaoAlitripIeAgentRefundNewGetdetailAPIRequest对象 +func NewTaobaoAlitripIeAgentRefundNewGetdetailRequest() *TaobaoAlitripIeAgentRefundNewGetdetailAPIRequest{ + return &TaobaoAlitripIeAgentRefundNewGetdetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripIeAgentRefundNewGetdetailAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.ie.agent.refund.new.getdetail" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripIeAgentRefundNewGetdetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamRefundOrderQueryDetailRq Setter +// 请求 +func (r *TaobaoAlitripIeAgentRefundNewGetdetailAPIRequest) SetParamRefundOrderQueryDetailRq(_paramRefundOrderQueryDetailRq *RefundOrderQueryDetailRq) error { + r._paramRefundOrderQueryDetailRq = _paramRefundOrderQueryDetailRq + r.Set("param_refund_order_query_detail_rq", _paramRefundOrderQueryDetailRq) + return nil +} + +// ParamRefundOrderQueryDetailRq Getter +func (r TaobaoAlitripIeAgentRefundNewGetdetailAPIRequest) GetParamRefundOrderQueryDetailRq() *RefundOrderQueryDetailRq { + return r._paramRefundOrderQueryDetailRq +} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundNewGetdetailAPIResponse.go b/model/ieagency/TaobaoAlitripIeAgentRefundNewGetdetailAPIResponse.go new file mode 100644 index 0000000000..3b22759dab --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentRefundNewGetdetailAPIResponse.go @@ -0,0 +1,27 @@ +package ieagency + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询申请单详情(新版) API返回值 +taobao.alitrip.ie.agent.refund.new.getdetail + +查询申请单详情 +*/ +type TaobaoAlitripIeAgentRefundNewGetdetailAPIResponse struct { + model.CommonResponse + TaobaoAlitripIeAgentRefundNewGetdetailAPIResponseModel +} + +// 查询申请单详情(新版) 成功返回结果 +type TaobaoAlitripIeAgentRefundNewGetdetailAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ie_agent_refund_new_getdetail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *RefundOrderQueryDetailRs `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundNewGetdetailResponse.go b/model/ieagency/TaobaoAlitripIeAgentRefundNewGetdetailResponse.go deleted file mode 100644 index 17d6990065..0000000000 --- a/model/ieagency/TaobaoAlitripIeAgentRefundNewGetdetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ieagency - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询申请单详情(新版) API返回值 -taobao.alitrip.ie.agent.refund.new.getdetail - -查询申请单详情 -*/ -type TaobaoAlitripIeAgentRefundNewGetdetailAPIResponse struct { - model.CommonResponse - TaobaoAlitripIeAgentRefundNewGetdetailResponse -} - -// 查询申请单详情(新版) 成功返回结果 -type TaobaoAlitripIeAgentRefundNewGetdetailResponse struct { - XMLName xml.Name `xml:"alitrip_ie_agent_refund_new_getdetail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *RefundOrderQueryDetailRs `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundNewGetlistAPIRequest.go b/model/ieagency/TaobaoAlitripIeAgentRefundNewGetlistAPIRequest.go new file mode 100644 index 0000000000..5e76cddf50 --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentRefundNewGetlistAPIRequest.go @@ -0,0 +1,52 @@ +package ieagency + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新查询退票申请单列表 API请求 +taobao.alitrip.ie.agent.refund.new.getlist + +查询商家国际机票退票申请单列表 +*/ +type TaobaoAlitripIeAgentRefundNewGetlistAPIRequest struct { + model.Params + // 列表查询 + _paramRefundOrderQueryListRq *RefundOrderQueryListRq +} + +// 初始化TaobaoAlitripIeAgentRefundNewGetlistAPIRequest对象 +func NewTaobaoAlitripIeAgentRefundNewGetlistRequest() *TaobaoAlitripIeAgentRefundNewGetlistAPIRequest{ + return &TaobaoAlitripIeAgentRefundNewGetlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripIeAgentRefundNewGetlistAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.ie.agent.refund.new.getlist" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripIeAgentRefundNewGetlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamRefundOrderQueryListRq Setter +// 列表查询 +func (r *TaobaoAlitripIeAgentRefundNewGetlistAPIRequest) SetParamRefundOrderQueryListRq(_paramRefundOrderQueryListRq *RefundOrderQueryListRq) error { + r._paramRefundOrderQueryListRq = _paramRefundOrderQueryListRq + r.Set("param_refund_order_query_list_rq", _paramRefundOrderQueryListRq) + return nil +} + +// ParamRefundOrderQueryListRq Getter +func (r TaobaoAlitripIeAgentRefundNewGetlistAPIRequest) GetParamRefundOrderQueryListRq() *RefundOrderQueryListRq { + return r._paramRefundOrderQueryListRq +} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundNewGetlistAPIResponse.go b/model/ieagency/TaobaoAlitripIeAgentRefundNewGetlistAPIResponse.go new file mode 100644 index 0000000000..3489309290 --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentRefundNewGetlistAPIResponse.go @@ -0,0 +1,27 @@ +package ieagency + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新查询退票申请单列表 API返回值 +taobao.alitrip.ie.agent.refund.new.getlist + +查询商家国际机票退票申请单列表 +*/ +type TaobaoAlitripIeAgentRefundNewGetlistAPIResponse struct { + model.CommonResponse + TaobaoAlitripIeAgentRefundNewGetlistAPIResponseModel +} + +// 新查询退票申请单列表 成功返回结果 +type TaobaoAlitripIeAgentRefundNewGetlistAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ie_agent_refund_new_getlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *RefundOrderQueryListRs `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundNewGetlistResponse.go b/model/ieagency/TaobaoAlitripIeAgentRefundNewGetlistResponse.go deleted file mode 100644 index 27526fb3e8..0000000000 --- a/model/ieagency/TaobaoAlitripIeAgentRefundNewGetlistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ieagency - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新查询退票申请单列表 API返回值 -taobao.alitrip.ie.agent.refund.new.getlist - -查询商家国际机票退票申请单列表 -*/ -type TaobaoAlitripIeAgentRefundNewGetlistAPIResponse struct { - model.CommonResponse - TaobaoAlitripIeAgentRefundNewGetlistResponse -} - -// 新查询退票申请单列表 成功返回结果 -type TaobaoAlitripIeAgentRefundNewGetlistResponse struct { - XMLName xml.Name `xml:"alitrip_ie_agent_refund_new_getlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *RefundOrderQueryListRs `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIRequest.go b/model/ieagency/TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIRequest.go new file mode 100644 index 0000000000..c8722a2169 --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIRequest.go @@ -0,0 +1,52 @@ +package ieagency + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +补退接口 API请求 +taobao.alitrip.ie.agent.refund.new.multiplerefunds + +1. 补退接口, 可以进行多次退款 +*/ +type TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIRequest struct { + model.Params + // 请求参数 + _paramRefundOrderMultipleRefundsRq *RefundOrderMultipleRefundsRq +} + +// 初始化TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIRequest对象 +func NewTaobaoAlitripIeAgentRefundNewMultiplerefundsRequest() *TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIRequest{ + return &TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.ie.agent.refund.new.multiplerefunds" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamRefundOrderMultipleRefundsRq Setter +// 请求参数 +func (r *TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIRequest) SetParamRefundOrderMultipleRefundsRq(_paramRefundOrderMultipleRefundsRq *RefundOrderMultipleRefundsRq) error { + r._paramRefundOrderMultipleRefundsRq = _paramRefundOrderMultipleRefundsRq + r.Set("param_refund_order_multiple_refunds_rq", _paramRefundOrderMultipleRefundsRq) + return nil +} + +// ParamRefundOrderMultipleRefundsRq Getter +func (r TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIRequest) GetParamRefundOrderMultipleRefundsRq() *RefundOrderMultipleRefundsRq { + return r._paramRefundOrderMultipleRefundsRq +} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIResponse.go b/model/ieagency/TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIResponse.go new file mode 100644 index 0000000000..6bafba6ab2 --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIResponse.go @@ -0,0 +1,27 @@ +package ieagency + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +补退接口 API返回值 +taobao.alitrip.ie.agent.refund.new.multiplerefunds + +1. 补退接口, 可以进行多次退款 +*/ +type TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIResponse struct { + model.CommonResponse + TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIResponseModel +} + +// 补退接口 成功返回结果 +type TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ie_agent_refund_new_multiplerefunds_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *RefundOrderMultipleRefundsRs `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundNewMultiplerefundsResponse.go b/model/ieagency/TaobaoAlitripIeAgentRefundNewMultiplerefundsResponse.go deleted file mode 100644 index 1c78f44b04..0000000000 --- a/model/ieagency/TaobaoAlitripIeAgentRefundNewMultiplerefundsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ieagency - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -补退接口 API返回值 -taobao.alitrip.ie.agent.refund.new.multiplerefunds - -1. 补退接口, 可以进行多次退款 -*/ -type TaobaoAlitripIeAgentRefundNewMultiplerefundsAPIResponse struct { - model.CommonResponse - TaobaoAlitripIeAgentRefundNewMultiplerefundsResponse -} - -// 补退接口 成功返回结果 -type TaobaoAlitripIeAgentRefundNewMultiplerefundsResponse struct { - XMLName xml.Name `xml:"alitrip_ie_agent_refund_new_multiplerefunds_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *RefundOrderMultipleRefundsRs `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundNewReceiveAPIRequest.go b/model/ieagency/TaobaoAlitripIeAgentRefundNewReceiveAPIRequest.go new file mode 100644 index 0000000000..b8e9f6914a --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentRefundNewReceiveAPIRequest.go @@ -0,0 +1,80 @@ +package ieagency + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家退票受理申请(对外) API请求 +taobao.alitrip.ie.agent.refund.new.receive + +允许代理商通过top接口受理退票申请 +*/ +type TaobaoAlitripIeAgentRefundNewReceiveAPIRequest struct { + model.Params + // 退票申请单id + _applyId int64 + // 代理商id + _agentId int64 + // 订单id + _orderId int64 +} + +// 初始化TaobaoAlitripIeAgentRefundNewReceiveAPIRequest对象 +func NewTaobaoAlitripIeAgentRefundNewReceiveRequest() *TaobaoAlitripIeAgentRefundNewReceiveAPIRequest{ + return &TaobaoAlitripIeAgentRefundNewReceiveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripIeAgentRefundNewReceiveAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.ie.agent.refund.new.receive" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripIeAgentRefundNewReceiveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApplyId Setter +// 退票申请单id +func (r *TaobaoAlitripIeAgentRefundNewReceiveAPIRequest) SetApplyId(_applyId int64) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r TaobaoAlitripIeAgentRefundNewReceiveAPIRequest) GetApplyId() int64 { + return r._applyId +} +// AgentId Setter +// 代理商id +func (r *TaobaoAlitripIeAgentRefundNewReceiveAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoAlitripIeAgentRefundNewReceiveAPIRequest) GetAgentId() int64 { + return r._agentId +} +// OrderId Setter +// 订单id +func (r *TaobaoAlitripIeAgentRefundNewReceiveAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoAlitripIeAgentRefundNewReceiveAPIRequest) GetOrderId() int64 { + return r._orderId +} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundNewReceiveAPIResponse.go b/model/ieagency/TaobaoAlitripIeAgentRefundNewReceiveAPIResponse.go new file mode 100644 index 0000000000..ddf9a6c02f --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentRefundNewReceiveAPIResponse.go @@ -0,0 +1,27 @@ +package ieagency + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家退票受理申请(对外) API返回值 +taobao.alitrip.ie.agent.refund.new.receive + +允许代理商通过top接口受理退票申请 +*/ +type TaobaoAlitripIeAgentRefundNewReceiveAPIResponse struct { + model.CommonResponse + TaobaoAlitripIeAgentRefundNewReceiveAPIResponseModel +} + +// 商家退票受理申请(对外) 成功返回结果 +type TaobaoAlitripIeAgentRefundNewReceiveAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ie_agent_refund_new_receive_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ReceiveRefundTicketRs `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundNewReceiveResponse.go b/model/ieagency/TaobaoAlitripIeAgentRefundNewReceiveResponse.go deleted file mode 100644 index 65b84714f6..0000000000 --- a/model/ieagency/TaobaoAlitripIeAgentRefundNewReceiveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ieagency - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家退票受理申请(对外) API返回值 -taobao.alitrip.ie.agent.refund.new.receive - -允许代理商通过top接口受理退票申请 -*/ -type TaobaoAlitripIeAgentRefundNewReceiveAPIResponse struct { - model.CommonResponse - TaobaoAlitripIeAgentRefundNewReceiveResponse -} - -// 商家退票受理申请(对外) 成功返回结果 -type TaobaoAlitripIeAgentRefundNewReceiveResponse struct { - XMLName xml.Name `xml:"alitrip_ie_agent_refund_new_receive_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ReceiveRefundTicketRs `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundRefundmoneyAPIRequest.go b/model/ieagency/TaobaoAlitripIeAgentRefundRefundmoneyAPIRequest.go new file mode 100644 index 0000000000..e0199da318 --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentRefundRefundmoneyAPIRequest.go @@ -0,0 +1,66 @@ +package ieagency + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +确认退款 API请求 +taobao.alitrip.ie.agent.refund.refundmoney + +卖家进行退款操作 +*/ +type TaobaoAlitripIeAgentRefundRefundmoneyAPIRequest struct { + model.Params + // 退票申请单id + _applyId int64 + // 代理商id + _agentId int64 +} + +// 初始化TaobaoAlitripIeAgentRefundRefundmoneyAPIRequest对象 +func NewTaobaoAlitripIeAgentRefundRefundmoneyRequest() *TaobaoAlitripIeAgentRefundRefundmoneyAPIRequest{ + return &TaobaoAlitripIeAgentRefundRefundmoneyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripIeAgentRefundRefundmoneyAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.ie.agent.refund.refundmoney" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripIeAgentRefundRefundmoneyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApplyId Setter +// 退票申请单id +func (r *TaobaoAlitripIeAgentRefundRefundmoneyAPIRequest) SetApplyId(_applyId int64) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r TaobaoAlitripIeAgentRefundRefundmoneyAPIRequest) GetApplyId() int64 { + return r._applyId +} +// AgentId Setter +// 代理商id +func (r *TaobaoAlitripIeAgentRefundRefundmoneyAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoAlitripIeAgentRefundRefundmoneyAPIRequest) GetAgentId() int64 { + return r._agentId +} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundRefundmoneyAPIResponse.go b/model/ieagency/TaobaoAlitripIeAgentRefundRefundmoneyAPIResponse.go new file mode 100644 index 0000000000..61c55426bb --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentRefundRefundmoneyAPIResponse.go @@ -0,0 +1,27 @@ +package ieagency + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +确认退款 API返回值 +taobao.alitrip.ie.agent.refund.refundmoney + +卖家进行退款操作 +*/ +type TaobaoAlitripIeAgentRefundRefundmoneyAPIResponse struct { + model.CommonResponse + TaobaoAlitripIeAgentRefundRefundmoneyAPIResponseModel +} + +// 确认退款 成功返回结果 +type TaobaoAlitripIeAgentRefundRefundmoneyAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ie_agent_refund_refundmoney_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *RefundMoneyNoPasswordRs `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundRefundmoneyResponse.go b/model/ieagency/TaobaoAlitripIeAgentRefundRefundmoneyResponse.go deleted file mode 100644 index 62381107f9..0000000000 --- a/model/ieagency/TaobaoAlitripIeAgentRefundRefundmoneyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ieagency - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -确认退款 API返回值 -taobao.alitrip.ie.agent.refund.refundmoney - -卖家进行退款操作 -*/ -type TaobaoAlitripIeAgentRefundRefundmoneyAPIResponse struct { - model.CommonResponse - TaobaoAlitripIeAgentRefundRefundmoneyResponse -} - -// 确认退款 成功返回结果 -type TaobaoAlitripIeAgentRefundRefundmoneyResponse struct { - XMLName xml.Name `xml:"alitrip_ie_agent_refund_refundmoney_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *RefundMoneyNoPasswordRs `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundRefuseAPIRequest.go b/model/ieagency/TaobaoAlitripIeAgentRefundRefuseAPIRequest.go new file mode 100644 index 0000000000..4453a05f21 --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentRefundRefuseAPIRequest.go @@ -0,0 +1,94 @@ +package ieagency + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +拒绝退票申请 API请求 +taobao.alitrip.ie.agent.refund.refuse + +卖家拒绝退票退票申请 +*/ +type TaobaoAlitripIeAgentRefundRefuseAPIRequest struct { + model.Params + // 退票申请单id + _applyId int64 + // 订单id + _orderId int64 + // 代理商回复 + _agentAnswer string + // 代理商id + _agentId int64 +} + +// 初始化TaobaoAlitripIeAgentRefundRefuseAPIRequest对象 +func NewTaobaoAlitripIeAgentRefundRefuseRequest() *TaobaoAlitripIeAgentRefundRefuseAPIRequest{ + return &TaobaoAlitripIeAgentRefundRefuseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripIeAgentRefundRefuseAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.ie.agent.refund.refuse" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripIeAgentRefundRefuseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApplyId Setter +// 退票申请单id +func (r *TaobaoAlitripIeAgentRefundRefuseAPIRequest) SetApplyId(_applyId int64) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r TaobaoAlitripIeAgentRefundRefuseAPIRequest) GetApplyId() int64 { + return r._applyId +} +// OrderId Setter +// 订单id +func (r *TaobaoAlitripIeAgentRefundRefuseAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoAlitripIeAgentRefundRefuseAPIRequest) GetOrderId() int64 { + return r._orderId +} +// AgentAnswer Setter +// 代理商回复 +func (r *TaobaoAlitripIeAgentRefundRefuseAPIRequest) SetAgentAnswer(_agentAnswer string) error { + r._agentAnswer = _agentAnswer + r.Set("agent_answer", _agentAnswer) + return nil +} + +// AgentAnswer Getter +func (r TaobaoAlitripIeAgentRefundRefuseAPIRequest) GetAgentAnswer() string { + return r._agentAnswer +} +// AgentId Setter +// 代理商id +func (r *TaobaoAlitripIeAgentRefundRefuseAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoAlitripIeAgentRefundRefuseAPIRequest) GetAgentId() int64 { + return r._agentId +} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundRefuseAPIResponse.go b/model/ieagency/TaobaoAlitripIeAgentRefundRefuseAPIResponse.go new file mode 100644 index 0000000000..3badb4febb --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentRefundRefuseAPIResponse.go @@ -0,0 +1,27 @@ +package ieagency + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +拒绝退票申请 API返回值 +taobao.alitrip.ie.agent.refund.refuse + +卖家拒绝退票退票申请 +*/ +type TaobaoAlitripIeAgentRefundRefuseAPIResponse struct { + model.CommonResponse + TaobaoAlitripIeAgentRefundRefuseAPIResponseModel +} + +// 拒绝退票申请 成功返回结果 +type TaobaoAlitripIeAgentRefundRefuseAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ie_agent_refund_refuse_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *RefuseRefundTicketRs `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundRefuseResponse.go b/model/ieagency/TaobaoAlitripIeAgentRefundRefuseResponse.go deleted file mode 100644 index 1a08cff9b7..0000000000 --- a/model/ieagency/TaobaoAlitripIeAgentRefundRefuseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ieagency - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -拒绝退票申请 API返回值 -taobao.alitrip.ie.agent.refund.refuse - -卖家拒绝退票退票申请 -*/ -type TaobaoAlitripIeAgentRefundRefuseAPIResponse struct { - model.CommonResponse - TaobaoAlitripIeAgentRefundRefuseResponse -} - -// 拒绝退票申请 成功返回结果 -type TaobaoAlitripIeAgentRefundRefuseResponse struct { - XMLName xml.Name `xml:"alitrip_ie_agent_refund_refuse_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *RefuseRefundTicketRs `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundSearchAPIRequest.go b/model/ieagency/TaobaoAlitripIeAgentRefundSearchAPIRequest.go new file mode 100644 index 0000000000..47e64e7f3b --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentRefundSearchAPIRequest.go @@ -0,0 +1,122 @@ +package ieagency + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家查询退票申请 API请求 +taobao.alitrip.ie.agent.refund.search + +卖家查询退票申请 +*/ +type TaobaoAlitripIeAgentRefundSearchAPIRequest struct { + model.Params + // 查询起始时间 + _createStartTime string + // 查询结束时间 + _createEndTime string + // WAIT(1,"待处理"), AGREED(2, "已同意"),REFUSE(3, "已拒绝"),PROCESS(6, "已受理"), SUCCESS(7, "已退款"); + _refundStatus int64 + // 从1开始 + _pageIndex int64 + // 每页大小 + _pageSize int64 + // 代理商id + _agentId int64 +} + +// 初始化TaobaoAlitripIeAgentRefundSearchAPIRequest对象 +func NewTaobaoAlitripIeAgentRefundSearchRequest() *TaobaoAlitripIeAgentRefundSearchAPIRequest{ + return &TaobaoAlitripIeAgentRefundSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripIeAgentRefundSearchAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.ie.agent.refund.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripIeAgentRefundSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CreateStartTime Setter +// 查询起始时间 +func (r *TaobaoAlitripIeAgentRefundSearchAPIRequest) SetCreateStartTime(_createStartTime string) error { + r._createStartTime = _createStartTime + r.Set("create_start_time", _createStartTime) + return nil +} + +// CreateStartTime Getter +func (r TaobaoAlitripIeAgentRefundSearchAPIRequest) GetCreateStartTime() string { + return r._createStartTime +} +// CreateEndTime Setter +// 查询结束时间 +func (r *TaobaoAlitripIeAgentRefundSearchAPIRequest) SetCreateEndTime(_createEndTime string) error { + r._createEndTime = _createEndTime + r.Set("create_end_time", _createEndTime) + return nil +} + +// CreateEndTime Getter +func (r TaobaoAlitripIeAgentRefundSearchAPIRequest) GetCreateEndTime() string { + return r._createEndTime +} +// RefundStatus Setter +// WAIT(1,"待处理"), AGREED(2, "已同意"),REFUSE(3, "已拒绝"),PROCESS(6, "已受理"), SUCCESS(7, "已退款"); +func (r *TaobaoAlitripIeAgentRefundSearchAPIRequest) SetRefundStatus(_refundStatus int64) error { + r._refundStatus = _refundStatus + r.Set("refund_status", _refundStatus) + return nil +} + +// RefundStatus Getter +func (r TaobaoAlitripIeAgentRefundSearchAPIRequest) GetRefundStatus() int64 { + return r._refundStatus +} +// PageIndex Setter +// 从1开始 +func (r *TaobaoAlitripIeAgentRefundSearchAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TaobaoAlitripIeAgentRefundSearchAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} +// PageSize Setter +// 每页大小 +func (r *TaobaoAlitripIeAgentRefundSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoAlitripIeAgentRefundSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// AgentId Setter +// 代理商id +func (r *TaobaoAlitripIeAgentRefundSearchAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoAlitripIeAgentRefundSearchAPIRequest) GetAgentId() int64 { + return r._agentId +} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundSearchAPIResponse.go b/model/ieagency/TaobaoAlitripIeAgentRefundSearchAPIResponse.go new file mode 100644 index 0000000000..8aa5ace1be --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentRefundSearchAPIResponse.go @@ -0,0 +1,27 @@ +package ieagency + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家查询退票申请 API返回值 +taobao.alitrip.ie.agent.refund.search + +卖家查询退票申请 +*/ +type TaobaoAlitripIeAgentRefundSearchAPIResponse struct { + model.CommonResponse + TaobaoAlitripIeAgentRefundSearchAPIResponseModel +} + +// 卖家查询退票申请 成功返回结果 +type TaobaoAlitripIeAgentRefundSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ie_agent_refund_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *QueryRefundTicketsRs `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ieagency/TaobaoAlitripIeAgentRefundSearchResponse.go b/model/ieagency/TaobaoAlitripIeAgentRefundSearchResponse.go deleted file mode 100644 index bfff8b04b0..0000000000 --- a/model/ieagency/TaobaoAlitripIeAgentRefundSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ieagency - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家查询退票申请 API返回值 -taobao.alitrip.ie.agent.refund.search - -卖家查询退票申请 -*/ -type TaobaoAlitripIeAgentRefundSearchAPIResponse struct { - model.CommonResponse - TaobaoAlitripIeAgentRefundSearchResponse -} - -// 卖家查询退票申请 成功返回结果 -type TaobaoAlitripIeAgentRefundSearchResponse struct { - XMLName xml.Name `xml:"alitrip_ie_agent_refund_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *QueryRefundTicketsRs `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ieagency/TaobaoAlitripIeAgentTicketIssueAPIRequest.go b/model/ieagency/TaobaoAlitripIeAgentTicketIssueAPIRequest.go new file mode 100644 index 0000000000..17ab5f1a94 --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentTicketIssueAPIRequest.go @@ -0,0 +1,66 @@ +package ieagency + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票】手工出票 API请求 +taobao.alitrip.ie.agent.ticket.issue + +代理商手工出票,并回填票号 +*/ +type TaobaoAlitripIeAgentTicketIssueAPIRequest struct { + model.Params + // 代理商id + _agentId int64 + // 出票信息 + _issueTicketVO *IeIssueTicketVO +} + +// 初始化TaobaoAlitripIeAgentTicketIssueAPIRequest对象 +func NewTaobaoAlitripIeAgentTicketIssueRequest() *TaobaoAlitripIeAgentTicketIssueAPIRequest{ + return &TaobaoAlitripIeAgentTicketIssueAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripIeAgentTicketIssueAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.ie.agent.ticket.issue" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripIeAgentTicketIssueAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentId Setter +// 代理商id +func (r *TaobaoAlitripIeAgentTicketIssueAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoAlitripIeAgentTicketIssueAPIRequest) GetAgentId() int64 { + return r._agentId +} +// IssueTicketVO Setter +// 出票信息 +func (r *TaobaoAlitripIeAgentTicketIssueAPIRequest) SetIssueTicketVO(_issueTicketVO *IeIssueTicketVO) error { + r._issueTicketVO = _issueTicketVO + r.Set("issue_ticket_v_o", _issueTicketVO) + return nil +} + +// IssueTicketVO Getter +func (r TaobaoAlitripIeAgentTicketIssueAPIRequest) GetIssueTicketVO() *IeIssueTicketVO { + return r._issueTicketVO +} diff --git a/model/ieagency/TaobaoAlitripIeAgentTicketIssueAPIResponse.go b/model/ieagency/TaobaoAlitripIeAgentTicketIssueAPIResponse.go new file mode 100644 index 0000000000..c0c601dcea --- /dev/null +++ b/model/ieagency/TaobaoAlitripIeAgentTicketIssueAPIResponse.go @@ -0,0 +1,27 @@ +package ieagency + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票】手工出票 API返回值 +taobao.alitrip.ie.agent.ticket.issue + +代理商手工出票,并回填票号 +*/ +type TaobaoAlitripIeAgentTicketIssueAPIResponse struct { + model.CommonResponse + TaobaoAlitripIeAgentTicketIssueAPIResponseModel +} + +// 【国际机票】手工出票 成功返回结果 +type TaobaoAlitripIeAgentTicketIssueAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ie_agent_ticket_issue_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 回填票号是否成功,true:成功,false:失败 + TicketSuccess bool `json:"ticket_success,omitempty" xml:"ticket_success,omitempty"` +} diff --git a/model/ieagency/TaobaoAlitripIeAgentTicketIssueResponse.go b/model/ieagency/TaobaoAlitripIeAgentTicketIssueResponse.go deleted file mode 100644 index 16953cc108..0000000000 --- a/model/ieagency/TaobaoAlitripIeAgentTicketIssueResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ieagency - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【国际机票】手工出票 API返回值 -taobao.alitrip.ie.agent.ticket.issue - -代理商手工出票,并回填票号 -*/ -type TaobaoAlitripIeAgentTicketIssueAPIResponse struct { - model.CommonResponse - TaobaoAlitripIeAgentTicketIssueResponse -} - -// 【国际机票】手工出票 成功返回结果 -type TaobaoAlitripIeAgentTicketIssueResponse struct { - XMLName xml.Name `xml:"alitrip_ie_agent_ticket_issue_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 回填票号是否成功,true:成功,false:失败 - TicketSuccess bool `json:"ticket_success,omitempty" xml:"ticket_success,omitempty"` -} diff --git a/model/ihome/AlibabaIhomeCtomCaseMainpicUpdateAPIRequest.go b/model/ihome/AlibabaIhomeCtomCaseMainpicUpdateAPIRequest.go new file mode 100644 index 0000000000..2df22ed5aa --- /dev/null +++ b/model/ihome/AlibabaIhomeCtomCaseMainpicUpdateAPIRequest.go @@ -0,0 +1,95 @@ +package ihome + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +方案渲染图修改 API请求 +alibaba.ihome.ctom.case.mainpic.update + +用于在门店工作台里的编辑器保存方案,由三维家后端调用阿里后端,保存方案信息 +此接口只允许ihome业务使用,用于门店的编辑功能,只允许广东三维家信息科技有限公司一家公司调用,不适用于其他业务。 +*/ +type AlibabaIhomeCtomCaseMainpicUpdateAPIRequest struct { + model.Params + // 32位字符串 + _traceId string + // 方案id + _caseId string + // 图片的地址 + _picUrl string + // 图片类型 + _picType string +} + +// 初始化AlibabaIhomeCtomCaseMainpicUpdateAPIRequest对象 +func NewAlibabaIhomeCtomCaseMainpicUpdateRequest() *AlibabaIhomeCtomCaseMainpicUpdateAPIRequest{ + return &AlibabaIhomeCtomCaseMainpicUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIhomeCtomCaseMainpicUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.ihome.ctom.case.mainpic.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIhomeCtomCaseMainpicUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TraceId Setter +// 32位字符串 +func (r *AlibabaIhomeCtomCaseMainpicUpdateAPIRequest) SetTraceId(_traceId string) error { + r._traceId = _traceId + r.Set("trace_id", _traceId) + return nil +} + +// TraceId Getter +func (r AlibabaIhomeCtomCaseMainpicUpdateAPIRequest) GetTraceId() string { + return r._traceId +} +// CaseId Setter +// 方案id +func (r *AlibabaIhomeCtomCaseMainpicUpdateAPIRequest) SetCaseId(_caseId string) error { + r._caseId = _caseId + r.Set("case_id", _caseId) + return nil +} + +// CaseId Getter +func (r AlibabaIhomeCtomCaseMainpicUpdateAPIRequest) GetCaseId() string { + return r._caseId +} +// PicUrl Setter +// 图片的地址 +func (r *AlibabaIhomeCtomCaseMainpicUpdateAPIRequest) SetPicUrl(_picUrl string) error { + r._picUrl = _picUrl + r.Set("pic_url", _picUrl) + return nil +} + +// PicUrl Getter +func (r AlibabaIhomeCtomCaseMainpicUpdateAPIRequest) GetPicUrl() string { + return r._picUrl +} +// PicType Setter +// 图片类型 +func (r *AlibabaIhomeCtomCaseMainpicUpdateAPIRequest) SetPicType(_picType string) error { + r._picType = _picType + r.Set("pic_type", _picType) + return nil +} + +// PicType Getter +func (r AlibabaIhomeCtomCaseMainpicUpdateAPIRequest) GetPicType() string { + return r._picType +} diff --git a/model/ihome/AlibabaIhomeCtomCaseMainpicUpdateAPIResponse.go b/model/ihome/AlibabaIhomeCtomCaseMainpicUpdateAPIResponse.go new file mode 100644 index 0000000000..ab218ee2f7 --- /dev/null +++ b/model/ihome/AlibabaIhomeCtomCaseMainpicUpdateAPIResponse.go @@ -0,0 +1,28 @@ +package ihome + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +方案渲染图修改 API返回值 +alibaba.ihome.ctom.case.mainpic.update + +用于在门店工作台里的编辑器保存方案,由三维家后端调用阿里后端,保存方案信息 +此接口只允许ihome业务使用,用于门店的编辑功能,只允许广东三维家信息科技有限公司一家公司调用,不适用于其他业务。 +*/ +type AlibabaIhomeCtomCaseMainpicUpdateAPIResponse struct { + model.CommonResponse + AlibabaIhomeCtomCaseMainpicUpdateAPIResponseModel +} + +// 方案渲染图修改 成功返回结果 +type AlibabaIhomeCtomCaseMainpicUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ihome_ctom_case_mainpic_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 根据站点名称查询产品 + ApiResult *AlibabaIhomeCtomCaseMainpicUpdateApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/ihome/AlibabaIhomeCtomCaseMainpicUpdateResponse.go b/model/ihome/AlibabaIhomeCtomCaseMainpicUpdateResponse.go deleted file mode 100644 index 06928d162a..0000000000 --- a/model/ihome/AlibabaIhomeCtomCaseMainpicUpdateResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package ihome - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -方案渲染图修改 API返回值 -alibaba.ihome.ctom.case.mainpic.update - -用于在门店工作台里的编辑器保存方案,由三维家后端调用阿里后端,保存方案信息 -此接口只允许ihome业务使用,用于门店的编辑功能,只允许广东三维家信息科技有限公司一家公司调用,不适用于其他业务。 -*/ -type AlibabaIhomeCtomCaseMainpicUpdateAPIResponse struct { - model.CommonResponse - AlibabaIhomeCtomCaseMainpicUpdateResponse -} - -// 方案渲染图修改 成功返回结果 -type AlibabaIhomeCtomCaseMainpicUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_ihome_ctom_case_mainpic_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 根据站点名称查询产品 - ApiResult *AlibabaIhomeCtomCaseMainpicUpdateApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/ihome/AlibabaIhomeCtomContentImgUploadAPIRequest.go b/model/ihome/AlibabaIhomeCtomContentImgUploadAPIRequest.go new file mode 100644 index 0000000000..e6856efe2b --- /dev/null +++ b/model/ihome/AlibabaIhomeCtomContentImgUploadAPIRequest.go @@ -0,0 +1,52 @@ +package ihome + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +实拍图投稿链路上传图片 API请求 +alibaba.ihome.ctom.content.img.upload + +实拍图投稿链路上传图片 +*/ +type AlibabaIhomeCtomContentImgUploadAPIRequest struct { + model.Params + // materialDTO + _materialDto *UploadPicMaterialDto +} + +// 初始化AlibabaIhomeCtomContentImgUploadAPIRequest对象 +func NewAlibabaIhomeCtomContentImgUploadRequest() *AlibabaIhomeCtomContentImgUploadAPIRequest{ + return &AlibabaIhomeCtomContentImgUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIhomeCtomContentImgUploadAPIRequest) GetApiMethodName() string { + return "alibaba.ihome.ctom.content.img.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIhomeCtomContentImgUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MaterialDto Setter +// materialDTO +func (r *AlibabaIhomeCtomContentImgUploadAPIRequest) SetMaterialDto(_materialDto *UploadPicMaterialDto) error { + r._materialDto = _materialDto + r.Set("material_dto", _materialDto) + return nil +} + +// MaterialDto Getter +func (r AlibabaIhomeCtomContentImgUploadAPIRequest) GetMaterialDto() *UploadPicMaterialDto { + return r._materialDto +} diff --git a/model/ihome/AlibabaIhomeCtomContentImgUploadAPIResponse.go b/model/ihome/AlibabaIhomeCtomContentImgUploadAPIResponse.go new file mode 100644 index 0000000000..392cfec49f --- /dev/null +++ b/model/ihome/AlibabaIhomeCtomContentImgUploadAPIResponse.go @@ -0,0 +1,27 @@ +package ihome + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +实拍图投稿链路上传图片 API返回值 +alibaba.ihome.ctom.content.img.upload + +实拍图投稿链路上传图片 +*/ +type AlibabaIhomeCtomContentImgUploadAPIResponse struct { + model.CommonResponse + AlibabaIhomeCtomContentImgUploadAPIResponseModel +} + +// 实拍图投稿链路上传图片 成功返回结果 +type AlibabaIhomeCtomContentImgUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ihome_ctom_content_img_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 根据站点名称查询产品 + Result *AlibabaIhomeCtomContentImgUploadApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ihome/AlibabaIhomeCtomContentImgUploadResponse.go b/model/ihome/AlibabaIhomeCtomContentImgUploadResponse.go deleted file mode 100644 index 8ebcd7efaf..0000000000 --- a/model/ihome/AlibabaIhomeCtomContentImgUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ihome - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -实拍图投稿链路上传图片 API返回值 -alibaba.ihome.ctom.content.img.upload - -实拍图投稿链路上传图片 -*/ -type AlibabaIhomeCtomContentImgUploadAPIResponse struct { - model.CommonResponse - AlibabaIhomeCtomContentImgUploadResponse -} - -// 实拍图投稿链路上传图片 成功返回结果 -type AlibabaIhomeCtomContentImgUploadResponse struct { - XMLName xml.Name `xml:"alibaba_ihome_ctom_content_img_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 根据站点名称查询产品 - Result *AlibabaIhomeCtomContentImgUploadApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ihome/AlibabaIhomeCtomContentPublishStatusAPIRequest.go b/model/ihome/AlibabaIhomeCtomContentPublishStatusAPIRequest.go new file mode 100644 index 0000000000..83fe7cc705 --- /dev/null +++ b/model/ihome/AlibabaIhomeCtomContentPublishStatusAPIRequest.go @@ -0,0 +1,52 @@ +package ihome + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +实拍图发布审核状态查询API API请求 +alibaba.ihome.ctom.content.publish.status + +实拍图发布审核状态查询API +*/ +type AlibabaIhomeCtomContentPublishStatusAPIRequest struct { + model.Params + // 要查询投稿状态的ID列表 + _idList []int64 +} + +// 初始化AlibabaIhomeCtomContentPublishStatusAPIRequest对象 +func NewAlibabaIhomeCtomContentPublishStatusRequest() *AlibabaIhomeCtomContentPublishStatusAPIRequest{ + return &AlibabaIhomeCtomContentPublishStatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIhomeCtomContentPublishStatusAPIRequest) GetApiMethodName() string { + return "alibaba.ihome.ctom.content.publish.status" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIhomeCtomContentPublishStatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IdList Setter +// 要查询投稿状态的ID列表 +func (r *AlibabaIhomeCtomContentPublishStatusAPIRequest) SetIdList(_idList []int64) error { + r._idList = _idList + r.Set("id_list", _idList) + return nil +} + +// IdList Getter +func (r AlibabaIhomeCtomContentPublishStatusAPIRequest) GetIdList() []int64 { + return r._idList +} diff --git a/model/ihome/AlibabaIhomeCtomContentPublishStatusAPIResponse.go b/model/ihome/AlibabaIhomeCtomContentPublishStatusAPIResponse.go new file mode 100644 index 0000000000..282ef04c72 --- /dev/null +++ b/model/ihome/AlibabaIhomeCtomContentPublishStatusAPIResponse.go @@ -0,0 +1,27 @@ +package ihome + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +实拍图发布审核状态查询API API返回值 +alibaba.ihome.ctom.content.publish.status + +实拍图发布审核状态查询API +*/ +type AlibabaIhomeCtomContentPublishStatusAPIResponse struct { + model.CommonResponse + AlibabaIhomeCtomContentPublishStatusAPIResponseModel +} + +// 实拍图发布审核状态查询API 成功返回结果 +type AlibabaIhomeCtomContentPublishStatusAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ihome_ctom_content_publish_status_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 根据站点名称查询产品 + Result *AlibabaIhomeCtomContentPublishStatusApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ihome/AlibabaIhomeCtomContentPublishStatusResponse.go b/model/ihome/AlibabaIhomeCtomContentPublishStatusResponse.go deleted file mode 100644 index dab9155790..0000000000 --- a/model/ihome/AlibabaIhomeCtomContentPublishStatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ihome - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -实拍图发布审核状态查询API API返回值 -alibaba.ihome.ctom.content.publish.status - -实拍图发布审核状态查询API -*/ -type AlibabaIhomeCtomContentPublishStatusAPIResponse struct { - model.CommonResponse - AlibabaIhomeCtomContentPublishStatusResponse -} - -// 实拍图发布审核状态查询API 成功返回结果 -type AlibabaIhomeCtomContentPublishStatusResponse struct { - XMLName xml.Name `xml:"alibaba_ihome_ctom_content_publish_status_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 根据站点名称查询产品 - Result *AlibabaIhomeCtomContentPublishStatusApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ihome/AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest.go b/model/ihome/AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest.go new file mode 100644 index 0000000000..752ba8fe08 --- /dev/null +++ b/model/ihome/AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest.go @@ -0,0 +1,192 @@ +package ihome + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +售后上门信息同步 API请求 +alibaba.ihome.ctom.postsale.onsite.sync + +用于三维家同步售后单上门人员和时间信息 +*/ +type AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest struct { + model.Params + // 预约后展示给客户的员工联系方式 + _deliveryPhone string + // 提交部门ID(预约的操作人所属部门) + _unitId string + // 备注 + _memo string + // 预约事件发生时间 + _time int64 + // 服务ID + _serviceId string + // 预约目标时间 + _deliveryDate int64 + // 具体操作人ID(预约人) + _operatorId string + // 联系人员名字 + _deliveryName string + // 售后单ID + _postSalesId string + // 配送、安装或上门 + _type string + // 三维家补单ID + _additionalOrderId string +} + +// 初始化AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest对象 +func NewAlibabaIhomeCtomPostsaleOnsiteSyncRequest() *AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest{ + return &AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) GetApiMethodName() string { + return "alibaba.ihome.ctom.postsale.onsite.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeliveryPhone Setter +// 预约后展示给客户的员工联系方式 +func (r *AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) SetDeliveryPhone(_deliveryPhone string) error { + r._deliveryPhone = _deliveryPhone + r.Set("delivery_phone", _deliveryPhone) + return nil +} + +// DeliveryPhone Getter +func (r AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) GetDeliveryPhone() string { + return r._deliveryPhone +} +// UnitId Setter +// 提交部门ID(预约的操作人所属部门) +func (r *AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) SetUnitId(_unitId string) error { + r._unitId = _unitId + r.Set("unit_id", _unitId) + return nil +} + +// UnitId Getter +func (r AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) GetUnitId() string { + return r._unitId +} +// Memo Setter +// 备注 +func (r *AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) SetMemo(_memo string) error { + r._memo = _memo + r.Set("memo", _memo) + return nil +} + +// Memo Getter +func (r AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) GetMemo() string { + return r._memo +} +// Time Setter +// 预约事件发生时间 +func (r *AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) SetTime(_time int64) error { + r._time = _time + r.Set("time", _time) + return nil +} + +// Time Getter +func (r AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) GetTime() int64 { + return r._time +} +// ServiceId Setter +// 服务ID +func (r *AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) SetServiceId(_serviceId string) error { + r._serviceId = _serviceId + r.Set("service_id", _serviceId) + return nil +} + +// ServiceId Getter +func (r AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) GetServiceId() string { + return r._serviceId +} +// DeliveryDate Setter +// 预约目标时间 +func (r *AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) SetDeliveryDate(_deliveryDate int64) error { + r._deliveryDate = _deliveryDate + r.Set("delivery_date", _deliveryDate) + return nil +} + +// DeliveryDate Getter +func (r AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) GetDeliveryDate() int64 { + return r._deliveryDate +} +// OperatorId Setter +// 具体操作人ID(预约人) +func (r *AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) SetOperatorId(_operatorId string) error { + r._operatorId = _operatorId + r.Set("operator_id", _operatorId) + return nil +} + +// OperatorId Getter +func (r AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) GetOperatorId() string { + return r._operatorId +} +// DeliveryName Setter +// 联系人员名字 +func (r *AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) SetDeliveryName(_deliveryName string) error { + r._deliveryName = _deliveryName + r.Set("delivery_name", _deliveryName) + return nil +} + +// DeliveryName Getter +func (r AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) GetDeliveryName() string { + return r._deliveryName +} +// PostSalesId Setter +// 售后单ID +func (r *AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) SetPostSalesId(_postSalesId string) error { + r._postSalesId = _postSalesId + r.Set("post_sales_id", _postSalesId) + return nil +} + +// PostSalesId Getter +func (r AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) GetPostSalesId() string { + return r._postSalesId +} +// Type Setter +// 配送、安装或上门 +func (r *AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) GetType() string { + return r._type +} +// AdditionalOrderId Setter +// 三维家补单ID +func (r *AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) SetAdditionalOrderId(_additionalOrderId string) error { + r._additionalOrderId = _additionalOrderId + r.Set("additional_order_id", _additionalOrderId) + return nil +} + +// AdditionalOrderId Getter +func (r AlibabaIhomeCtomPostsaleOnsiteSyncAPIRequest) GetAdditionalOrderId() string { + return r._additionalOrderId +} diff --git a/model/ihome/AlibabaIhomeCtomPostsaleOnsiteSyncAPIResponse.go b/model/ihome/AlibabaIhomeCtomPostsaleOnsiteSyncAPIResponse.go new file mode 100644 index 0000000000..f3511fba3d --- /dev/null +++ b/model/ihome/AlibabaIhomeCtomPostsaleOnsiteSyncAPIResponse.go @@ -0,0 +1,27 @@ +package ihome + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +售后上门信息同步 API返回值 +alibaba.ihome.ctom.postsale.onsite.sync + +用于三维家同步售后单上门人员和时间信息 +*/ +type AlibabaIhomeCtomPostsaleOnsiteSyncAPIResponse struct { + model.CommonResponse + AlibabaIhomeCtomPostsaleOnsiteSyncAPIResponseModel +} + +// 售后上门信息同步 成功返回结果 +type AlibabaIhomeCtomPostsaleOnsiteSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ihome_ctom_postsale_onsite_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ihome/AlibabaIhomeCtomPostsaleOnsiteSyncResponse.go b/model/ihome/AlibabaIhomeCtomPostsaleOnsiteSyncResponse.go deleted file mode 100644 index 693fb96d5a..0000000000 --- a/model/ihome/AlibabaIhomeCtomPostsaleOnsiteSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ihome - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -售后上门信息同步 API返回值 -alibaba.ihome.ctom.postsale.onsite.sync - -用于三维家同步售后单上门人员和时间信息 -*/ -type AlibabaIhomeCtomPostsaleOnsiteSyncAPIResponse struct { - model.CommonResponse - AlibabaIhomeCtomPostsaleOnsiteSyncResponse -} - -// 售后上门信息同步 成功返回结果 -type AlibabaIhomeCtomPostsaleOnsiteSyncResponse struct { - XMLName xml.Name `xml:"alibaba_ihome_ctom_postsale_onsite_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ihome/AlibabaIhomeCtomPostsaleStatusSyncAPIRequest.go b/model/ihome/AlibabaIhomeCtomPostsaleStatusSyncAPIRequest.go new file mode 100644 index 0000000000..ebafea432c --- /dev/null +++ b/model/ihome/AlibabaIhomeCtomPostsaleStatusSyncAPIRequest.go @@ -0,0 +1,192 @@ +package ihome + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +C2M售后状态同步 API请求 +alibaba.ihome.ctom.postsale.status.sync + +供给三维家同步定制、成品商品售后进度状态 +*/ +type AlibabaIhomeCtomPostsaleStatusSyncAPIRequest struct { + model.Params + // 三维家服务ID + _serviceId string + // 三维家售后单号ID + _postSalesId string + // 三维家订单号ID + _subOrderId string + // 三维家操作人部门ID + _unitId string + // 三维家操作人ID + _operatorId string + // 售后状态更新 + _status string + // 售后发起来源 + _source string + // 是否加急订单 + _isExpedited string + // 售后单更新状态原因 + _reason string + // 售后单结束原因 + _finishType string + // 客服代表ID + _csrId string +} + +// 初始化AlibabaIhomeCtomPostsaleStatusSyncAPIRequest对象 +func NewAlibabaIhomeCtomPostsaleStatusSyncRequest() *AlibabaIhomeCtomPostsaleStatusSyncAPIRequest{ + return &AlibabaIhomeCtomPostsaleStatusSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) GetApiMethodName() string { + return "alibaba.ihome.ctom.postsale.status.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceId Setter +// 三维家服务ID +func (r *AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) SetServiceId(_serviceId string) error { + r._serviceId = _serviceId + r.Set("service_id", _serviceId) + return nil +} + +// ServiceId Getter +func (r AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) GetServiceId() string { + return r._serviceId +} +// PostSalesId Setter +// 三维家售后单号ID +func (r *AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) SetPostSalesId(_postSalesId string) error { + r._postSalesId = _postSalesId + r.Set("post_sales_id", _postSalesId) + return nil +} + +// PostSalesId Getter +func (r AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) GetPostSalesId() string { + return r._postSalesId +} +// SubOrderId Setter +// 三维家订单号ID +func (r *AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) SetSubOrderId(_subOrderId string) error { + r._subOrderId = _subOrderId + r.Set("sub_order_id", _subOrderId) + return nil +} + +// SubOrderId Getter +func (r AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) GetSubOrderId() string { + return r._subOrderId +} +// UnitId Setter +// 三维家操作人部门ID +func (r *AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) SetUnitId(_unitId string) error { + r._unitId = _unitId + r.Set("unit_id", _unitId) + return nil +} + +// UnitId Getter +func (r AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) GetUnitId() string { + return r._unitId +} +// OperatorId Setter +// 三维家操作人ID +func (r *AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) SetOperatorId(_operatorId string) error { + r._operatorId = _operatorId + r.Set("operator_id", _operatorId) + return nil +} + +// OperatorId Getter +func (r AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) GetOperatorId() string { + return r._operatorId +} +// Status Setter +// 售后状态更新 +func (r *AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) GetStatus() string { + return r._status +} +// Source Setter +// 售后发起来源 +func (r *AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) GetSource() string { + return r._source +} +// IsExpedited Setter +// 是否加急订单 +func (r *AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) SetIsExpedited(_isExpedited string) error { + r._isExpedited = _isExpedited + r.Set("is_expedited", _isExpedited) + return nil +} + +// IsExpedited Getter +func (r AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) GetIsExpedited() string { + return r._isExpedited +} +// Reason Setter +// 售后单更新状态原因 +func (r *AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) SetReason(_reason string) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) GetReason() string { + return r._reason +} +// FinishType Setter +// 售后单结束原因 +func (r *AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) SetFinishType(_finishType string) error { + r._finishType = _finishType + r.Set("finish_type", _finishType) + return nil +} + +// FinishType Getter +func (r AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) GetFinishType() string { + return r._finishType +} +// CsrId Setter +// 客服代表ID +func (r *AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) SetCsrId(_csrId string) error { + r._csrId = _csrId + r.Set("csr_id", _csrId) + return nil +} + +// CsrId Getter +func (r AlibabaIhomeCtomPostsaleStatusSyncAPIRequest) GetCsrId() string { + return r._csrId +} diff --git a/model/ihome/AlibabaIhomeCtomPostsaleStatusSyncAPIResponse.go b/model/ihome/AlibabaIhomeCtomPostsaleStatusSyncAPIResponse.go new file mode 100644 index 0000000000..0d19e2c220 --- /dev/null +++ b/model/ihome/AlibabaIhomeCtomPostsaleStatusSyncAPIResponse.go @@ -0,0 +1,27 @@ +package ihome + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +C2M售后状态同步 API返回值 +alibaba.ihome.ctom.postsale.status.sync + +供给三维家同步定制、成品商品售后进度状态 +*/ +type AlibabaIhomeCtomPostsaleStatusSyncAPIResponse struct { + model.CommonResponse + AlibabaIhomeCtomPostsaleStatusSyncAPIResponseModel +} + +// C2M售后状态同步 成功返回结果 +type AlibabaIhomeCtomPostsaleStatusSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ihome_ctom_postsale_status_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ihome/AlibabaIhomeCtomPostsaleStatusSyncResponse.go b/model/ihome/AlibabaIhomeCtomPostsaleStatusSyncResponse.go deleted file mode 100644 index d5dd163f09..0000000000 --- a/model/ihome/AlibabaIhomeCtomPostsaleStatusSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ihome - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -C2M售后状态同步 API返回值 -alibaba.ihome.ctom.postsale.status.sync - -供给三维家同步定制、成品商品售后进度状态 -*/ -type AlibabaIhomeCtomPostsaleStatusSyncAPIResponse struct { - model.CommonResponse - AlibabaIhomeCtomPostsaleStatusSyncResponse -} - -// C2M售后状态同步 成功返回结果 -type AlibabaIhomeCtomPostsaleStatusSyncResponse struct { - XMLName xml.Name `xml:"alibaba_ihome_ctom_postsale_status_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ihome/TaobaoIhomeAdvancepicUploadAPIRequest.go b/model/ihome/TaobaoIhomeAdvancepicUploadAPIRequest.go new file mode 100644 index 0000000000..72bb4834d1 --- /dev/null +++ b/model/ihome/TaobaoIhomeAdvancepicUploadAPIRequest.go @@ -0,0 +1,52 @@ +package ihome + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ihome图片上传 API请求 +taobao.ihome.advancepic.upload + +ihome 定制业务编辑器投稿素材上传 +*/ +type TaobaoIhomeAdvancepicUploadAPIRequest struct { + model.Params + // 图片类 + _materials []AdvancePicMaterialDto +} + +// 初始化TaobaoIhomeAdvancepicUploadAPIRequest对象 +func NewTaobaoIhomeAdvancepicUploadRequest() *TaobaoIhomeAdvancepicUploadAPIRequest{ + return &TaobaoIhomeAdvancepicUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoIhomeAdvancepicUploadAPIRequest) GetApiMethodName() string { + return "taobao.ihome.advancepic.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoIhomeAdvancepicUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Materials Setter +// 图片类 +func (r *TaobaoIhomeAdvancepicUploadAPIRequest) SetMaterials(_materials []AdvancePicMaterialDto) error { + r._materials = _materials + r.Set("materials", _materials) + return nil +} + +// Materials Getter +func (r TaobaoIhomeAdvancepicUploadAPIRequest) GetMaterials() []AdvancePicMaterialDto { + return r._materials +} diff --git a/model/ihome/TaobaoIhomeAdvancepicUploadAPIResponse.go b/model/ihome/TaobaoIhomeAdvancepicUploadAPIResponse.go new file mode 100644 index 0000000000..681c5a8423 --- /dev/null +++ b/model/ihome/TaobaoIhomeAdvancepicUploadAPIResponse.go @@ -0,0 +1,27 @@ +package ihome + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ihome图片上传 API返回值 +taobao.ihome.advancepic.upload + +ihome 定制业务编辑器投稿素材上传 +*/ +type TaobaoIhomeAdvancepicUploadAPIResponse struct { + model.CommonResponse + TaobaoIhomeAdvancepicUploadAPIResponseModel +} + +// ihome图片上传 成功返回结果 +type TaobaoIhomeAdvancepicUploadAPIResponseModel struct { + XMLName xml.Name `xml:"ihome_advancepic_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 根据站点名称查询产品 + Result *TaobaoIhomeAdvancepicUploadApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ihome/TaobaoIhomeAdvancepicUploadResponse.go b/model/ihome/TaobaoIhomeAdvancepicUploadResponse.go deleted file mode 100644 index f436020e5a..0000000000 --- a/model/ihome/TaobaoIhomeAdvancepicUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ihome - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ihome图片上传 API返回值 -taobao.ihome.advancepic.upload - -ihome 定制业务编辑器投稿素材上传 -*/ -type TaobaoIhomeAdvancepicUploadAPIResponse struct { - model.CommonResponse - TaobaoIhomeAdvancepicUploadResponse -} - -// ihome图片上传 成功返回结果 -type TaobaoIhomeAdvancepicUploadResponse struct { - XMLName xml.Name `xml:"ihome_advancepic_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 根据站点名称查询产品 - Result *TaobaoIhomeAdvancepicUploadApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractActivityAddcommentAPIRequest.go b/model/interact/AlibabaInteractActivityAddcommentAPIRequest.go new file mode 100644 index 0000000000..bd39936cd6 --- /dev/null +++ b/model/interact/AlibabaInteractActivityAddcommentAPIRequest.go @@ -0,0 +1,80 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +微淘评论接口 API请求 +alibaba.interact.activity.addcomment + +发表评论,并返回楼层 +*/ +type AlibabaInteractActivityAddcommentAPIRequest struct { + model.Params + // 该字段为评论内容 + _content string + // 评论feedid + _feedId int64 + // 发评论的业务id + _bizId string +} + +// 初始化AlibabaInteractActivityAddcommentAPIRequest对象 +func NewAlibabaInteractActivityAddcommentRequest() *AlibabaInteractActivityAddcommentAPIRequest{ + return &AlibabaInteractActivityAddcommentAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractActivityAddcommentAPIRequest) GetApiMethodName() string { + return "alibaba.interact.activity.addcomment" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractActivityAddcommentAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Content Setter +// 该字段为评论内容 +func (r *AlibabaInteractActivityAddcommentAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r AlibabaInteractActivityAddcommentAPIRequest) GetContent() string { + return r._content +} +// FeedId Setter +// 评论feedid +func (r *AlibabaInteractActivityAddcommentAPIRequest) SetFeedId(_feedId int64) error { + r._feedId = _feedId + r.Set("feed_id", _feedId) + return nil +} + +// FeedId Getter +func (r AlibabaInteractActivityAddcommentAPIRequest) GetFeedId() int64 { + return r._feedId +} +// BizId Setter +// 发评论的业务id +func (r *AlibabaInteractActivityAddcommentAPIRequest) SetBizId(_bizId string) error { + r._bizId = _bizId + r.Set("biz_id", _bizId) + return nil +} + +// BizId Getter +func (r AlibabaInteractActivityAddcommentAPIRequest) GetBizId() string { + return r._bizId +} diff --git a/model/interact/AlibabaInteractActivityAddcommentAPIResponse.go b/model/interact/AlibabaInteractActivityAddcommentAPIResponse.go new file mode 100644 index 0000000000..dffa30ff78 --- /dev/null +++ b/model/interact/AlibabaInteractActivityAddcommentAPIResponse.go @@ -0,0 +1,29 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +微淘评论接口 API返回值 +alibaba.interact.activity.addcomment + +发表评论,并返回楼层 +*/ +type AlibabaInteractActivityAddcommentAPIResponse struct { + model.CommonResponse + AlibabaInteractActivityAddcommentAPIResponseModel +} + +// 微淘评论接口 成功返回结果 +type AlibabaInteractActivityAddcommentAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_activity_addcomment_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 评论的楼层数 + Floor int64 `json:"floor,omitempty" xml:"floor,omitempty"` +} diff --git a/model/interact/AlibabaInteractActivityAddcommentResponse.go b/model/interact/AlibabaInteractActivityAddcommentResponse.go deleted file mode 100644 index 5517de352c..0000000000 --- a/model/interact/AlibabaInteractActivityAddcommentResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -微淘评论接口 API返回值 -alibaba.interact.activity.addcomment - -发表评论,并返回楼层 -*/ -type AlibabaInteractActivityAddcommentAPIResponse struct { - model.CommonResponse - AlibabaInteractActivityAddcommentResponse -} - -// 微淘评论接口 成功返回结果 -type AlibabaInteractActivityAddcommentResponse struct { - XMLName xml.Name `xml:"alibaba_interact_activity_addcomment_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 评论的楼层数 - Floor int64 `json:"floor,omitempty" xml:"floor,omitempty"` -} diff --git a/model/interact/AlibabaInteractActivityApplyAPIRequest.go b/model/interact/AlibabaInteractActivityApplyAPIRequest.go new file mode 100644 index 0000000000..cafd889efc --- /dev/null +++ b/model/interact/AlibabaInteractActivityApplyAPIRequest.go @@ -0,0 +1,136 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV报名官方活动(中心化流量) API请求 +alibaba.interact.activity.apply + +支持商家将使用isv创建的活动所对应的权益信息同步到手淘,供过滤是否在中心化流量入口透出 +*/ +type AlibabaInteractActivityApplyAPIRequest struct { + model.Params + // 活动发放的权益类型,1:支付宝红包2:流量包3:淘金币4:集分宝5:优惠卷 + _benefitType string + // 权益对应的面额 + _benefitDenomination string + // 报名参加的中心化流量活动的banner 地址 + _bannerUrl string + // 报名参加中心化流量活动的活动id + _activityBizId string + // 该活动参与的中心化流量活动。1:代表每日赢宝箱2:微淘广场 + _bizType string + // 权益总额 + _benefitAmount string + // 权益属性(如红包,则为relationid) + _benefitAttribute string +} + +// 初始化AlibabaInteractActivityApplyAPIRequest对象 +func NewAlibabaInteractActivityApplyRequest() *AlibabaInteractActivityApplyAPIRequest{ + return &AlibabaInteractActivityApplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractActivityApplyAPIRequest) GetApiMethodName() string { + return "alibaba.interact.activity.apply" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractActivityApplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BenefitType Setter +// 活动发放的权益类型,1:支付宝红包2:流量包3:淘金币4:集分宝5:优惠卷 +func (r *AlibabaInteractActivityApplyAPIRequest) SetBenefitType(_benefitType string) error { + r._benefitType = _benefitType + r.Set("benefit_type", _benefitType) + return nil +} + +// BenefitType Getter +func (r AlibabaInteractActivityApplyAPIRequest) GetBenefitType() string { + return r._benefitType +} +// BenefitDenomination Setter +// 权益对应的面额 +func (r *AlibabaInteractActivityApplyAPIRequest) SetBenefitDenomination(_benefitDenomination string) error { + r._benefitDenomination = _benefitDenomination + r.Set("benefit_denomination", _benefitDenomination) + return nil +} + +// BenefitDenomination Getter +func (r AlibabaInteractActivityApplyAPIRequest) GetBenefitDenomination() string { + return r._benefitDenomination +} +// BannerUrl Setter +// 报名参加的中心化流量活动的banner 地址 +func (r *AlibabaInteractActivityApplyAPIRequest) SetBannerUrl(_bannerUrl string) error { + r._bannerUrl = _bannerUrl + r.Set("banner_url", _bannerUrl) + return nil +} + +// BannerUrl Getter +func (r AlibabaInteractActivityApplyAPIRequest) GetBannerUrl() string { + return r._bannerUrl +} +// ActivityBizId Setter +// 报名参加中心化流量活动的活动id +func (r *AlibabaInteractActivityApplyAPIRequest) SetActivityBizId(_activityBizId string) error { + r._activityBizId = _activityBizId + r.Set("activity_biz_id", _activityBizId) + return nil +} + +// ActivityBizId Getter +func (r AlibabaInteractActivityApplyAPIRequest) GetActivityBizId() string { + return r._activityBizId +} +// BizType Setter +// 该活动参与的中心化流量活动。1:代表每日赢宝箱2:微淘广场 +func (r *AlibabaInteractActivityApplyAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r AlibabaInteractActivityApplyAPIRequest) GetBizType() string { + return r._bizType +} +// BenefitAmount Setter +// 权益总额 +func (r *AlibabaInteractActivityApplyAPIRequest) SetBenefitAmount(_benefitAmount string) error { + r._benefitAmount = _benefitAmount + r.Set("benefit_amount", _benefitAmount) + return nil +} + +// BenefitAmount Getter +func (r AlibabaInteractActivityApplyAPIRequest) GetBenefitAmount() string { + return r._benefitAmount +} +// BenefitAttribute Setter +// 权益属性(如红包,则为relationid) +func (r *AlibabaInteractActivityApplyAPIRequest) SetBenefitAttribute(_benefitAttribute string) error { + r._benefitAttribute = _benefitAttribute + r.Set("benefit_attribute", _benefitAttribute) + return nil +} + +// BenefitAttribute Getter +func (r AlibabaInteractActivityApplyAPIRequest) GetBenefitAttribute() string { + return r._benefitAttribute +} diff --git a/model/interact/AlibabaInteractActivityApplyAPIResponse.go b/model/interact/AlibabaInteractActivityApplyAPIResponse.go new file mode 100644 index 0000000000..04f944f18e --- /dev/null +++ b/model/interact/AlibabaInteractActivityApplyAPIResponse.go @@ -0,0 +1,31 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV报名官方活动(中心化流量) API返回值 +alibaba.interact.activity.apply + +支持商家将使用isv创建的活动所对应的权益信息同步到手淘,供过滤是否在中心化流量入口透出 +*/ +type AlibabaInteractActivityApplyAPIResponse struct { + model.CommonResponse + AlibabaInteractActivityApplyAPIResponseModel +} + +// ISV报名官方活动(中心化流量) 成功返回结果 +type AlibabaInteractActivityApplyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_activity_apply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务结果对象 + Data *ActivityWriteResult `json:"data,omitempty" xml:"data,omitempty"` + // top接口执行成功与否 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 出错提示信息 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` +} diff --git a/model/interact/AlibabaInteractActivityApplyResponse.go b/model/interact/AlibabaInteractActivityApplyResponse.go deleted file mode 100644 index 6bb9a398d5..0000000000 --- a/model/interact/AlibabaInteractActivityApplyResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV报名官方活动(中心化流量) API返回值 -alibaba.interact.activity.apply - -支持商家将使用isv创建的活动所对应的权益信息同步到手淘,供过滤是否在中心化流量入口透出 -*/ -type AlibabaInteractActivityApplyAPIResponse struct { - model.CommonResponse - AlibabaInteractActivityApplyResponse -} - -// ISV报名官方活动(中心化流量) 成功返回结果 -type AlibabaInteractActivityApplyResponse struct { - XMLName xml.Name `xml:"alibaba_interact_activity_apply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务结果对象 - Data *ActivityWriteResult `json:"data,omitempty" xml:"data,omitempty"` - // top接口执行成功与否 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 出错提示信息 - ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` -} diff --git a/model/interact/AlibabaInteractActivityPushtoalicomAPIRequest.go b/model/interact/AlibabaInteractActivityPushtoalicomAPIRequest.go new file mode 100644 index 0000000000..66ca5bf6b9 --- /dev/null +++ b/model/interact/AlibabaInteractActivityPushtoalicomAPIRequest.go @@ -0,0 +1,66 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +小铺isv推广流量活动到流量聚乐部 API请求 +alibaba.interact.activity.pushtoalicom + +涉及到流量包的小铺isv,将活动推送到流量聚乐部 +*/ +type AlibabaInteractActivityPushtoalicomAPIRequest struct { + model.Params + // 推送到流量聚乐部的banner图 + _bannerUrl string + // 推送到流量聚乐部的活动bizid + _bizId string +} + +// 初始化AlibabaInteractActivityPushtoalicomAPIRequest对象 +func NewAlibabaInteractActivityPushtoalicomRequest() *AlibabaInteractActivityPushtoalicomAPIRequest{ + return &AlibabaInteractActivityPushtoalicomAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractActivityPushtoalicomAPIRequest) GetApiMethodName() string { + return "alibaba.interact.activity.pushtoalicom" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractActivityPushtoalicomAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BannerUrl Setter +// 推送到流量聚乐部的banner图 +func (r *AlibabaInteractActivityPushtoalicomAPIRequest) SetBannerUrl(_bannerUrl string) error { + r._bannerUrl = _bannerUrl + r.Set("banner_url", _bannerUrl) + return nil +} + +// BannerUrl Getter +func (r AlibabaInteractActivityPushtoalicomAPIRequest) GetBannerUrl() string { + return r._bannerUrl +} +// BizId Setter +// 推送到流量聚乐部的活动bizid +func (r *AlibabaInteractActivityPushtoalicomAPIRequest) SetBizId(_bizId string) error { + r._bizId = _bizId + r.Set("biz_id", _bizId) + return nil +} + +// BizId Getter +func (r AlibabaInteractActivityPushtoalicomAPIRequest) GetBizId() string { + return r._bizId +} diff --git a/model/interact/AlibabaInteractActivityPushtoalicomAPIResponse.go b/model/interact/AlibabaInteractActivityPushtoalicomAPIResponse.go new file mode 100644 index 0000000000..3d91069f6b --- /dev/null +++ b/model/interact/AlibabaInteractActivityPushtoalicomAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +小铺isv推广流量活动到流量聚乐部 API返回值 +alibaba.interact.activity.pushtoalicom + +涉及到流量包的小铺isv,将活动推送到流量聚乐部 +*/ +type AlibabaInteractActivityPushtoalicomAPIResponse struct { + model.CommonResponse + AlibabaInteractActivityPushtoalicomAPIResponseModel +} + +// 小铺isv推广流量活动到流量聚乐部 成功返回结果 +type AlibabaInteractActivityPushtoalicomAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_activity_pushtoalicom_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推送成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/interact/AlibabaInteractActivityPushtoalicomResponse.go b/model/interact/AlibabaInteractActivityPushtoalicomResponse.go deleted file mode 100644 index 6468549f62..0000000000 --- a/model/interact/AlibabaInteractActivityPushtoalicomResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -小铺isv推广流量活动到流量聚乐部 API返回值 -alibaba.interact.activity.pushtoalicom - -涉及到流量包的小铺isv,将活动推送到流量聚乐部 -*/ -type AlibabaInteractActivityPushtoalicomAPIResponse struct { - model.CommonResponse - AlibabaInteractActivityPushtoalicomResponse -} - -// 小铺isv推广流量活动到流量聚乐部 成功返回结果 -type AlibabaInteractActivityPushtoalicomResponse struct { - XMLName xml.Name `xml:"alibaba_interact_activity_pushtoalicom_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推送成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/interact/AlibabaInteractActivityRegisterAPIRequest.go b/model/interact/AlibabaInteractActivityRegisterAPIRequest.go new file mode 100644 index 0000000000..9d87fb28f0 --- /dev/null +++ b/model/interact/AlibabaInteractActivityRegisterAPIRequest.go @@ -0,0 +1,150 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV互动应用活动注册服务 API请求 +alibaba.interact.activity.register + +为支持卖家由ISV互动应用可以在手淘店铺首页透出,提供ISV互动应用创建的活动注册到手淘的服务 +*/ +type AlibabaInteractActivityRegisterAPIRequest struct { + model.Params + // 页面内容链接,仅允许ascii字符 + _entryUrl string + // 活动ID + _bizId string + // 活动描述文字 + _description string + // 活动结束时间 + _endTime string + // 活动名称 + _name string + // 活动封面图片(非必填) + _picture string + // 活动开始时间 + _startTime string + // 是否有有效时间,若为真开始时间和结束时间必填,默认为真 + _hasValidTime bool +} + +// 初始化AlibabaInteractActivityRegisterAPIRequest对象 +func NewAlibabaInteractActivityRegisterRequest() *AlibabaInteractActivityRegisterAPIRequest{ + return &AlibabaInteractActivityRegisterAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractActivityRegisterAPIRequest) GetApiMethodName() string { + return "alibaba.interact.activity.register" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractActivityRegisterAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EntryUrl Setter +// 页面内容链接,仅允许ascii字符 +func (r *AlibabaInteractActivityRegisterAPIRequest) SetEntryUrl(_entryUrl string) error { + r._entryUrl = _entryUrl + r.Set("entry_url", _entryUrl) + return nil +} + +// EntryUrl Getter +func (r AlibabaInteractActivityRegisterAPIRequest) GetEntryUrl() string { + return r._entryUrl +} +// BizId Setter +// 活动ID +func (r *AlibabaInteractActivityRegisterAPIRequest) SetBizId(_bizId string) error { + r._bizId = _bizId + r.Set("biz_id", _bizId) + return nil +} + +// BizId Getter +func (r AlibabaInteractActivityRegisterAPIRequest) GetBizId() string { + return r._bizId +} +// Description Setter +// 活动描述文字 +func (r *AlibabaInteractActivityRegisterAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r AlibabaInteractActivityRegisterAPIRequest) GetDescription() string { + return r._description +} +// EndTime Setter +// 活动结束时间 +func (r *AlibabaInteractActivityRegisterAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r AlibabaInteractActivityRegisterAPIRequest) GetEndTime() string { + return r._endTime +} +// Name Setter +// 活动名称 +func (r *AlibabaInteractActivityRegisterAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r AlibabaInteractActivityRegisterAPIRequest) GetName() string { + return r._name +} +// Picture Setter +// 活动封面图片(非必填) +func (r *AlibabaInteractActivityRegisterAPIRequest) SetPicture(_picture string) error { + r._picture = _picture + r.Set("picture", _picture) + return nil +} + +// Picture Getter +func (r AlibabaInteractActivityRegisterAPIRequest) GetPicture() string { + return r._picture +} +// StartTime Setter +// 活动开始时间 +func (r *AlibabaInteractActivityRegisterAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r AlibabaInteractActivityRegisterAPIRequest) GetStartTime() string { + return r._startTime +} +// HasValidTime Setter +// 是否有有效时间,若为真开始时间和结束时间必填,默认为真 +func (r *AlibabaInteractActivityRegisterAPIRequest) SetHasValidTime(_hasValidTime bool) error { + r._hasValidTime = _hasValidTime + r.Set("has_valid_time", _hasValidTime) + return nil +} + +// HasValidTime Getter +func (r AlibabaInteractActivityRegisterAPIRequest) GetHasValidTime() bool { + return r._hasValidTime +} diff --git a/model/interact/AlibabaInteractActivityRegisterAPIResponse.go b/model/interact/AlibabaInteractActivityRegisterAPIResponse.go new file mode 100644 index 0000000000..1baf5843c6 --- /dev/null +++ b/model/interact/AlibabaInteractActivityRegisterAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV互动应用活动注册服务 API返回值 +alibaba.interact.activity.register + +为支持卖家由ISV互动应用可以在手淘店铺首页透出,提供ISV互动应用创建的活动注册到手淘的服务 +*/ +type AlibabaInteractActivityRegisterAPIResponse struct { + model.CommonResponse + AlibabaInteractActivityRegisterAPIResponseModel +} + +// ISV互动应用活动注册服务 成功返回结果 +type AlibabaInteractActivityRegisterAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_activity_register_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 活动注册成功,将活动注册后的ID和h5链接返回给调用方 + RegisterSucessInfo *AllsparkResult `json:"register_sucess_info,omitempty" xml:"register_sucess_info,omitempty"` +} diff --git a/model/interact/AlibabaInteractActivityRegisterResponse.go b/model/interact/AlibabaInteractActivityRegisterResponse.go deleted file mode 100644 index 3311ba9cd2..0000000000 --- a/model/interact/AlibabaInteractActivityRegisterResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV互动应用活动注册服务 API返回值 -alibaba.interact.activity.register - -为支持卖家由ISV互动应用可以在手淘店铺首页透出,提供ISV互动应用创建的活动注册到手淘的服务 -*/ -type AlibabaInteractActivityRegisterAPIResponse struct { - model.CommonResponse - AlibabaInteractActivityRegisterResponse -} - -// ISV互动应用活动注册服务 成功返回结果 -type AlibabaInteractActivityRegisterResponse struct { - XMLName xml.Name `xml:"alibaba_interact_activity_register_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 活动注册成功,将活动注册后的ID和h5链接返回给调用方 - RegisterSucessInfo *AllsparkResult `json:"register_sucess_info,omitempty" xml:"register_sucess_info,omitempty"` -} diff --git a/model/interact/AlibabaInteractActivityUnregisterAPIRequest.go b/model/interact/AlibabaInteractActivityUnregisterAPIRequest.go new file mode 100644 index 0000000000..6bb01bf55a --- /dev/null +++ b/model/interact/AlibabaInteractActivityUnregisterAPIRequest.go @@ -0,0 +1,52 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV互动应用活动关闭服务 API请求 +alibaba.interact.activity.unregister + +卖家在ISV互动应用中设置的活动主动关闭的服务 +*/ +type AlibabaInteractActivityUnregisterAPIRequest struct { + model.Params + // 互动活动ID + _bizId string +} + +// 初始化AlibabaInteractActivityUnregisterAPIRequest对象 +func NewAlibabaInteractActivityUnregisterRequest() *AlibabaInteractActivityUnregisterAPIRequest{ + return &AlibabaInteractActivityUnregisterAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractActivityUnregisterAPIRequest) GetApiMethodName() string { + return "alibaba.interact.activity.unregister" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractActivityUnregisterAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizId Setter +// 互动活动ID +func (r *AlibabaInteractActivityUnregisterAPIRequest) SetBizId(_bizId string) error { + r._bizId = _bizId + r.Set("biz_id", _bizId) + return nil +} + +// BizId Getter +func (r AlibabaInteractActivityUnregisterAPIRequest) GetBizId() string { + return r._bizId +} diff --git a/model/interact/AlibabaInteractActivityUnregisterAPIResponse.go b/model/interact/AlibabaInteractActivityUnregisterAPIResponse.go new file mode 100644 index 0000000000..6170ff01e6 --- /dev/null +++ b/model/interact/AlibabaInteractActivityUnregisterAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV互动应用活动关闭服务 API返回值 +alibaba.interact.activity.unregister + +卖家在ISV互动应用中设置的活动主动关闭的服务 +*/ +type AlibabaInteractActivityUnregisterAPIResponse struct { + model.CommonResponse + AlibabaInteractActivityUnregisterAPIResponseModel +} + +// ISV互动应用活动关闭服务 成功返回结果 +type AlibabaInteractActivityUnregisterAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_activity_unregister_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 关闭活动结果 + UnregisterResult *AllsparkResult `json:"unregister_result,omitempty" xml:"unregister_result,omitempty"` +} diff --git a/model/interact/AlibabaInteractActivityUnregisterResponse.go b/model/interact/AlibabaInteractActivityUnregisterResponse.go deleted file mode 100644 index 047f8d091e..0000000000 --- a/model/interact/AlibabaInteractActivityUnregisterResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV互动应用活动关闭服务 API返回值 -alibaba.interact.activity.unregister - -卖家在ISV互动应用中设置的活动主动关闭的服务 -*/ -type AlibabaInteractActivityUnregisterAPIResponse struct { - model.CommonResponse - AlibabaInteractActivityUnregisterResponse -} - -// ISV互动应用活动关闭服务 成功返回结果 -type AlibabaInteractActivityUnregisterResponse struct { - XMLName xml.Name `xml:"alibaba_interact_activity_unregister_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 关闭活动结果 - UnregisterResult *AllsparkResult `json:"unregister_result,omitempty" xml:"unregister_result,omitempty"` -} diff --git a/model/interact/AlibabaInteractCoinBuyerAddAPIRequest.go b/model/interact/AlibabaInteractCoinBuyerAddAPIRequest.go new file mode 100644 index 0000000000..6a7c6d5a22 --- /dev/null +++ b/model/interact/AlibabaInteractCoinBuyerAddAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +平台向买家发放淘金币 API请求 +alibaba.interact.coin.buyer.add + +手淘开放专用接口,没有数据返回,仅用于手淘容器中jssdk接口鉴权。ISV调用该接口向买家发放平台淘金币,需要优惠平台运营审核ISV资质。 +*/ +type AlibabaInteractCoinBuyerAddAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractCoinBuyerAddAPIRequest对象 +func NewAlibabaInteractCoinBuyerAddRequest() *AlibabaInteractCoinBuyerAddAPIRequest{ + return &AlibabaInteractCoinBuyerAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractCoinBuyerAddAPIRequest) GetApiMethodName() string { + return "alibaba.interact.coin.buyer.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractCoinBuyerAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractCoinBuyerAddAPIResponse.go b/model/interact/AlibabaInteractCoinBuyerAddAPIResponse.go new file mode 100644 index 0000000000..6426baf815 --- /dev/null +++ b/model/interact/AlibabaInteractCoinBuyerAddAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +平台向买家发放淘金币 API返回值 +alibaba.interact.coin.buyer.add + +手淘开放专用接口,没有数据返回,仅用于手淘容器中jssdk接口鉴权。ISV调用该接口向买家发放平台淘金币,需要优惠平台运营审核ISV资质。 +*/ +type AlibabaInteractCoinBuyerAddAPIResponse struct { + model.CommonResponse + AlibabaInteractCoinBuyerAddAPIResponseModel +} + +// 平台向买家发放淘金币 成功返回结果 +type AlibabaInteractCoinBuyerAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_coin_buyer_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result=0 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractCoinBuyerAddResponse.go b/model/interact/AlibabaInteractCoinBuyerAddResponse.go deleted file mode 100644 index 554b50cfbf..0000000000 --- a/model/interact/AlibabaInteractCoinBuyerAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -平台向买家发放淘金币 API返回值 -alibaba.interact.coin.buyer.add - -手淘开放专用接口,没有数据返回,仅用于手淘容器中jssdk接口鉴权。ISV调用该接口向买家发放平台淘金币,需要优惠平台运营审核ISV资质。 -*/ -type AlibabaInteractCoinBuyerAddAPIResponse struct { - model.CommonResponse - AlibabaInteractCoinBuyerAddResponse -} - -// 平台向买家发放淘金币 成功返回结果 -type AlibabaInteractCoinBuyerAddResponse struct { - XMLName xml.Name `xml:"alibaba_interact_coin_buyer_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result=0 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractCouponApplyAPIRequest.go b/model/interact/AlibabaInteractCouponApplyAPIRequest.go new file mode 100644 index 0000000000..c5ee8c372d --- /dev/null +++ b/model/interact/AlibabaInteractCouponApplyAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券领取鉴权接口 API请求 +alibaba.interact.coupon.apply + +鉴权接口,为coupon.apply接口鉴权 +*/ +type AlibabaInteractCouponApplyAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractCouponApplyAPIRequest对象 +func NewAlibabaInteractCouponApplyRequest() *AlibabaInteractCouponApplyAPIRequest{ + return &AlibabaInteractCouponApplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractCouponApplyAPIRequest) GetApiMethodName() string { + return "alibaba.interact.coupon.apply" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractCouponApplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractCouponApplyAPIResponse.go b/model/interact/AlibabaInteractCouponApplyAPIResponse.go new file mode 100644 index 0000000000..15b4f0aabb --- /dev/null +++ b/model/interact/AlibabaInteractCouponApplyAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券领取鉴权接口 API返回值 +alibaba.interact.coupon.apply + +鉴权接口,为coupon.apply接口鉴权 +*/ +type AlibabaInteractCouponApplyAPIResponse struct { + model.CommonResponse + AlibabaInteractCouponApplyAPIResponseModel +} + +// 优惠券领取鉴权接口 成功返回结果 +type AlibabaInteractCouponApplyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_coupon_apply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 无用参数,top限制一定要有出参,增加此参数 + Stub string `json:"stub,omitempty" xml:"stub,omitempty"` +} diff --git a/model/interact/AlibabaInteractCouponApplyResponse.go b/model/interact/AlibabaInteractCouponApplyResponse.go deleted file mode 100644 index b0f71bb74f..0000000000 --- a/model/interact/AlibabaInteractCouponApplyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -优惠券领取鉴权接口 API返回值 -alibaba.interact.coupon.apply - -鉴权接口,为coupon.apply接口鉴权 -*/ -type AlibabaInteractCouponApplyAPIResponse struct { - model.CommonResponse - AlibabaInteractCouponApplyResponse -} - -// 优惠券领取鉴权接口 成功返回结果 -type AlibabaInteractCouponApplyResponse struct { - XMLName xml.Name `xml:"alibaba_interact_coupon_apply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 无用参数,top限制一定要有出参,增加此参数 - Stub string `json:"stub,omitempty" xml:"stub,omitempty"` -} diff --git a/model/interact/AlibabaInteractCurrentMixusernickAPIRequest.go b/model/interact/AlibabaInteractCurrentMixusernickAPIRequest.go new file mode 100644 index 0000000000..e2473d6d99 --- /dev/null +++ b/model/interact/AlibabaInteractCurrentMixusernickAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +手淘混淆nick开放接口鉴权专用 API请求 +alibaba.interact.current.mixusernick + +手淘混淆nick开放接口鉴权专用,无数据输入输出。 +*/ +type AlibabaInteractCurrentMixusernickAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractCurrentMixusernickAPIRequest对象 +func NewAlibabaInteractCurrentMixusernickRequest() *AlibabaInteractCurrentMixusernickAPIRequest{ + return &AlibabaInteractCurrentMixusernickAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractCurrentMixusernickAPIRequest) GetApiMethodName() string { + return "alibaba.interact.current.mixusernick" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractCurrentMixusernickAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractCurrentMixusernickAPIResponse.go b/model/interact/AlibabaInteractCurrentMixusernickAPIResponse.go new file mode 100644 index 0000000000..f1aacb8f9b --- /dev/null +++ b/model/interact/AlibabaInteractCurrentMixusernickAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +手淘混淆nick开放接口鉴权专用 API返回值 +alibaba.interact.current.mixusernick + +手淘混淆nick开放接口鉴权专用,无数据输入输出。 +*/ +type AlibabaInteractCurrentMixusernickAPIResponse struct { + model.CommonResponse + AlibabaInteractCurrentMixusernickAPIResponseModel +} + +// 手淘混淆nick开放接口鉴权专用 成功返回结果 +type AlibabaInteractCurrentMixusernickAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_current_mixusernick_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result=0 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractCurrentMixusernickResponse.go b/model/interact/AlibabaInteractCurrentMixusernickResponse.go deleted file mode 100644 index d9a61f5d2b..0000000000 --- a/model/interact/AlibabaInteractCurrentMixusernickResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -手淘混淆nick开放接口鉴权专用 API返回值 -alibaba.interact.current.mixusernick - -手淘混淆nick开放接口鉴权专用,无数据输入输出。 -*/ -type AlibabaInteractCurrentMixusernickAPIResponse struct { - model.CommonResponse - AlibabaInteractCurrentMixusernickResponse -} - -// 手淘混淆nick开放接口鉴权专用 成功返回结果 -type AlibabaInteractCurrentMixusernickResponse struct { - XMLName xml.Name `xml:"alibaba_interact_current_mixusernick_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result=0 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractIsvGatewayAPIRequest.go b/model/interact/AlibabaInteractIsvGatewayAPIRequest.go new file mode 100644 index 0000000000..fe5ef8b6fd --- /dev/null +++ b/model/interact/AlibabaInteractIsvGatewayAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +isv调用gateway API请求 +alibaba.interact.isv.gateway + +isv能够调用jae本身的server +*/ +type AlibabaInteractIsvGatewayAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractIsvGatewayAPIRequest对象 +func NewAlibabaInteractIsvGatewayRequest() *AlibabaInteractIsvGatewayAPIRequest{ + return &AlibabaInteractIsvGatewayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractIsvGatewayAPIRequest) GetApiMethodName() string { + return "alibaba.interact.isv.gateway" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractIsvGatewayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractIsvGatewayAPIResponse.go b/model/interact/AlibabaInteractIsvGatewayAPIResponse.go new file mode 100644 index 0000000000..8a847f66ea --- /dev/null +++ b/model/interact/AlibabaInteractIsvGatewayAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +isv调用gateway API返回值 +alibaba.interact.isv.gateway + +isv能够调用jae本身的server +*/ +type AlibabaInteractIsvGatewayAPIResponse struct { + model.CommonResponse + AlibabaInteractIsvGatewayAPIResponseModel +} + +// isv调用gateway 成功返回结果 +type AlibabaInteractIsvGatewayAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_isv_gateway_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ret=0 + Ret string `json:"ret,omitempty" xml:"ret,omitempty"` +} diff --git a/model/interact/AlibabaInteractIsvGatewayResponse.go b/model/interact/AlibabaInteractIsvGatewayResponse.go deleted file mode 100644 index 15e94094c0..0000000000 --- a/model/interact/AlibabaInteractIsvGatewayResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -isv调用gateway API返回值 -alibaba.interact.isv.gateway - -isv能够调用jae本身的server -*/ -type AlibabaInteractIsvGatewayAPIResponse struct { - model.CommonResponse - AlibabaInteractIsvGatewayResponse -} - -// isv调用gateway 成功返回结果 -type AlibabaInteractIsvGatewayResponse struct { - XMLName xml.Name `xml:"alibaba_interact_isv_gateway_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ret=0 - Ret string `json:"ret,omitempty" xml:"ret,omitempty"` -} diff --git a/model/interact/AlibabaInteractIsvadminAllpondsAPIRequest.go b/model/interact/AlibabaInteractIsvadminAllpondsAPIRequest.go new file mode 100644 index 0000000000..b18167e15a --- /dev/null +++ b/model/interact/AlibabaInteractIsvadminAllpondsAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取天猫互动奖池列表 API请求 +alibaba.interact.isvadmin.allponds + +获取天猫互动奖池列表 +*/ +type AlibabaInteractIsvadminAllpondsAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractIsvadminAllpondsAPIRequest对象 +func NewAlibabaInteractIsvadminAllpondsRequest() *AlibabaInteractIsvadminAllpondsAPIRequest{ + return &AlibabaInteractIsvadminAllpondsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractIsvadminAllpondsAPIRequest) GetApiMethodName() string { + return "alibaba.interact.isvadmin.allponds" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractIsvadminAllpondsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractIsvadminAllpondsAPIResponse.go b/model/interact/AlibabaInteractIsvadminAllpondsAPIResponse.go new file mode 100644 index 0000000000..756f42cb1a --- /dev/null +++ b/model/interact/AlibabaInteractIsvadminAllpondsAPIResponse.go @@ -0,0 +1,33 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取天猫互动奖池列表 API返回值 +alibaba.interact.isvadmin.allponds + +获取天猫互动奖池列表 +*/ +type AlibabaInteractIsvadminAllpondsAPIResponse struct { + model.CommonResponse + AlibabaInteractIsvadminAllpondsAPIResponseModel +} + +// 获取天猫互动奖池列表 成功返回结果 +type AlibabaInteractIsvadminAllpondsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_isvadmin_allponds_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 错误码 + InteractErrorCode string `json:"interact_error_code,omitempty" xml:"interact_error_code,omitempty"` + // 错误描述 + InteractErrorMsg string `json:"interact_error_msg,omitempty" xml:"interact_error_msg,omitempty"` + // 奖池列表 + Allponds []PrizePondDto `json:"allponds,omitempty" xml:"allponds>prize_pond_dto,omitempty"` +} diff --git a/model/interact/AlibabaInteractIsvadminAllpondsResponse.go b/model/interact/AlibabaInteractIsvadminAllpondsResponse.go deleted file mode 100644 index 13191a8135..0000000000 --- a/model/interact/AlibabaInteractIsvadminAllpondsResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取天猫互动奖池列表 API返回值 -alibaba.interact.isvadmin.allponds - -获取天猫互动奖池列表 -*/ -type AlibabaInteractIsvadminAllpondsAPIResponse struct { - model.CommonResponse - AlibabaInteractIsvadminAllpondsResponse -} - -// 获取天猫互动奖池列表 成功返回结果 -type AlibabaInteractIsvadminAllpondsResponse struct { - XMLName xml.Name `xml:"alibaba_interact_isvadmin_allponds_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` - // 错误码 - InteractErrorCode string `json:"interact_error_code,omitempty" xml:"interact_error_code,omitempty"` - // 错误描述 - InteractErrorMsg string `json:"interact_error_msg,omitempty" xml:"interact_error_msg,omitempty"` - // 奖池列表 - Allponds []PrizePondDto `json:"allponds,omitempty" xml:"allponds>prize_pond_dto,omitempty"` -} diff --git a/model/interact/AlibabaInteractIsvadminBindAPIRequest.go b/model/interact/AlibabaInteractIsvadminBindAPIRequest.go new file mode 100644 index 0000000000..669fcda279 --- /dev/null +++ b/model/interact/AlibabaInteractIsvadminBindAPIRequest.go @@ -0,0 +1,108 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建及绑定互动实例 API请求 +alibaba.interact.isvadmin.bind + +创建互动实例,并绑定奖池 +*/ +type AlibabaInteractIsvadminBindAPIRequest struct { + model.Params + // 描述信息 + _interactDescription string + // 互动实例名称 + _instanceName string + // 互动开始时间 + _startTime string + // 互动结束时间 + _endTime string + // 奖池ID + _lotteryCode string +} + +// 初始化AlibabaInteractIsvadminBindAPIRequest对象 +func NewAlibabaInteractIsvadminBindRequest() *AlibabaInteractIsvadminBindAPIRequest{ + return &AlibabaInteractIsvadminBindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractIsvadminBindAPIRequest) GetApiMethodName() string { + return "alibaba.interact.isvadmin.bind" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractIsvadminBindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InteractDescription Setter +// 描述信息 +func (r *AlibabaInteractIsvadminBindAPIRequest) SetInteractDescription(_interactDescription string) error { + r._interactDescription = _interactDescription + r.Set("interact_description", _interactDescription) + return nil +} + +// InteractDescription Getter +func (r AlibabaInteractIsvadminBindAPIRequest) GetInteractDescription() string { + return r._interactDescription +} +// InstanceName Setter +// 互动实例名称 +func (r *AlibabaInteractIsvadminBindAPIRequest) SetInstanceName(_instanceName string) error { + r._instanceName = _instanceName + r.Set("instance_name", _instanceName) + return nil +} + +// InstanceName Getter +func (r AlibabaInteractIsvadminBindAPIRequest) GetInstanceName() string { + return r._instanceName +} +// StartTime Setter +// 互动开始时间 +func (r *AlibabaInteractIsvadminBindAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r AlibabaInteractIsvadminBindAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 互动结束时间 +func (r *AlibabaInteractIsvadminBindAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r AlibabaInteractIsvadminBindAPIRequest) GetEndTime() string { + return r._endTime +} +// LotteryCode Setter +// 奖池ID +func (r *AlibabaInteractIsvadminBindAPIRequest) SetLotteryCode(_lotteryCode string) error { + r._lotteryCode = _lotteryCode + r.Set("lottery_code", _lotteryCode) + return nil +} + +// LotteryCode Getter +func (r AlibabaInteractIsvadminBindAPIRequest) GetLotteryCode() string { + return r._lotteryCode +} diff --git a/model/interact/AlibabaInteractIsvadminBindAPIResponse.go b/model/interact/AlibabaInteractIsvadminBindAPIResponse.go new file mode 100644 index 0000000000..9840a6b510 --- /dev/null +++ b/model/interact/AlibabaInteractIsvadminBindAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建及绑定互动实例 API返回值 +alibaba.interact.isvadmin.bind + +创建互动实例,并绑定奖池 +*/ +type AlibabaInteractIsvadminBindAPIResponse struct { + model.CommonResponse + AlibabaInteractIsvadminBindAPIResponseModel +} + +// 创建及绑定互动实例 成功返回结果 +type AlibabaInteractIsvadminBindAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_isvadmin_bind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回创建并且绑定成功的互动实例 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractIsvadminBindResponse.go b/model/interact/AlibabaInteractIsvadminBindResponse.go deleted file mode 100644 index 8a8d844790..0000000000 --- a/model/interact/AlibabaInteractIsvadminBindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建及绑定互动实例 API返回值 -alibaba.interact.isvadmin.bind - -创建互动实例,并绑定奖池 -*/ -type AlibabaInteractIsvadminBindAPIResponse struct { - model.CommonResponse - AlibabaInteractIsvadminBindResponse -} - -// 创建及绑定互动实例 成功返回结果 -type AlibabaInteractIsvadminBindResponse struct { - XMLName xml.Name `xml:"alibaba_interact_isvadmin_bind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回创建并且绑定成功的互动实例 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractIsvadminGetinteractbysellernickAPIRequest.go b/model/interact/AlibabaInteractIsvadminGetinteractbysellernickAPIRequest.go new file mode 100644 index 0000000000..fbf278d501 --- /dev/null +++ b/model/interact/AlibabaInteractIsvadminGetinteractbysellernickAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据sellerNick获取互动实例列表 API请求 +alibaba.interact.isvadmin.getinteractbysellernick + +根据sellerNick获取互动实例列表 +*/ +type AlibabaInteractIsvadminGetinteractbysellernickAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractIsvadminGetinteractbysellernickAPIRequest对象 +func NewAlibabaInteractIsvadminGetinteractbysellernickRequest() *AlibabaInteractIsvadminGetinteractbysellernickAPIRequest{ + return &AlibabaInteractIsvadminGetinteractbysellernickAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractIsvadminGetinteractbysellernickAPIRequest) GetApiMethodName() string { + return "alibaba.interact.isvadmin.getinteractbysellernick" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractIsvadminGetinteractbysellernickAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractIsvadminGetinteractbysellernickAPIResponse.go b/model/interact/AlibabaInteractIsvadminGetinteractbysellernickAPIResponse.go new file mode 100644 index 0000000000..5e858db13f --- /dev/null +++ b/model/interact/AlibabaInteractIsvadminGetinteractbysellernickAPIResponse.go @@ -0,0 +1,33 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据sellerNick获取互动实例列表 API返回值 +alibaba.interact.isvadmin.getinteractbysellernick + +根据sellerNick获取互动实例列表 +*/ +type AlibabaInteractIsvadminGetinteractbysellernickAPIResponse struct { + model.CommonResponse + AlibabaInteractIsvadminGetinteractbysellernickAPIResponseModel +} + +// 根据sellerNick获取互动实例列表 成功返回结果 +type AlibabaInteractIsvadminGetinteractbysellernickAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_isvadmin_getinteractbysellernick_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果是否成功 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 错误码 + Code string `json:"code,omitempty" xml:"code,omitempty"` + // 错误信息 + Msginfo string `json:"msginfo,omitempty" xml:"msginfo,omitempty"` + // 返回业务数据 + Interactdtos []InteractDto `json:"interactdtos,omitempty" xml:"interactdtos>interact_dto,omitempty"` +} diff --git a/model/interact/AlibabaInteractIsvadminGetinteractbysellernickResponse.go b/model/interact/AlibabaInteractIsvadminGetinteractbysellernickResponse.go deleted file mode 100644 index 433ae5d351..0000000000 --- a/model/interact/AlibabaInteractIsvadminGetinteractbysellernickResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据sellerNick获取互动实例列表 API返回值 -alibaba.interact.isvadmin.getinteractbysellernick - -根据sellerNick获取互动实例列表 -*/ -type AlibabaInteractIsvadminGetinteractbysellernickAPIResponse struct { - model.CommonResponse - AlibabaInteractIsvadminGetinteractbysellernickResponse -} - -// 根据sellerNick获取互动实例列表 成功返回结果 -type AlibabaInteractIsvadminGetinteractbysellernickResponse struct { - XMLName xml.Name `xml:"alibaba_interact_isvadmin_getinteractbysellernick_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果是否成功 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` - // 错误码 - Code string `json:"code,omitempty" xml:"code,omitempty"` - // 错误信息 - Msginfo string `json:"msginfo,omitempty" xml:"msginfo,omitempty"` - // 返回业务数据 - Interactdtos []InteractDto `json:"interactdtos,omitempty" xml:"interactdtos>interact_dto,omitempty"` -} diff --git a/model/interact/AlibabaInteractIsvadminGetpondbyinteractAPIRequest.go b/model/interact/AlibabaInteractIsvadminGetpondbyinteractAPIRequest.go new file mode 100644 index 0000000000..ee92b3d911 --- /dev/null +++ b/model/interact/AlibabaInteractIsvadminGetpondbyinteractAPIRequest.go @@ -0,0 +1,52 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据互动实例ID查询奖池信息 API请求 +alibaba.interact.isvadmin.getpondbyinteract + +根据互动实例ID查询奖池信息 +*/ +type AlibabaInteractIsvadminGetpondbyinteractAPIRequest struct { + model.Params + // 互动实例ID + _interactId string +} + +// 初始化AlibabaInteractIsvadminGetpondbyinteractAPIRequest对象 +func NewAlibabaInteractIsvadminGetpondbyinteractRequest() *AlibabaInteractIsvadminGetpondbyinteractAPIRequest{ + return &AlibabaInteractIsvadminGetpondbyinteractAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractIsvadminGetpondbyinteractAPIRequest) GetApiMethodName() string { + return "alibaba.interact.isvadmin.getpondbyinteract" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractIsvadminGetpondbyinteractAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InteractId Setter +// 互动实例ID +func (r *AlibabaInteractIsvadminGetpondbyinteractAPIRequest) SetInteractId(_interactId string) error { + r._interactId = _interactId + r.Set("interact_id", _interactId) + return nil +} + +// InteractId Getter +func (r AlibabaInteractIsvadminGetpondbyinteractAPIRequest) GetInteractId() string { + return r._interactId +} diff --git a/model/interact/AlibabaInteractIsvadminGetpondbyinteractAPIResponse.go b/model/interact/AlibabaInteractIsvadminGetpondbyinteractAPIResponse.go new file mode 100644 index 0000000000..485f84e105 --- /dev/null +++ b/model/interact/AlibabaInteractIsvadminGetpondbyinteractAPIResponse.go @@ -0,0 +1,33 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据互动实例ID查询奖池信息 API返回值 +alibaba.interact.isvadmin.getpondbyinteract + +根据互动实例ID查询奖池信息 +*/ +type AlibabaInteractIsvadminGetpondbyinteractAPIResponse struct { + model.CommonResponse + AlibabaInteractIsvadminGetpondbyinteractAPIResponseModel +} + +// 根据互动实例ID查询奖池信息 成功返回结果 +type AlibabaInteractIsvadminGetpondbyinteractAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_isvadmin_getpondbyinteract_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 奖池信息 + Data *PrizePondDto `json:"data,omitempty" xml:"data,omitempty"` + // 是否调用成功 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 调用错误原因 + Error string `json:"error,omitempty" xml:"error,omitempty"` + // 错误描述 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/interact/AlibabaInteractIsvadminGetpondbyinteractResponse.go b/model/interact/AlibabaInteractIsvadminGetpondbyinteractResponse.go deleted file mode 100644 index 635745fbe5..0000000000 --- a/model/interact/AlibabaInteractIsvadminGetpondbyinteractResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据互动实例ID查询奖池信息 API返回值 -alibaba.interact.isvadmin.getpondbyinteract - -根据互动实例ID查询奖池信息 -*/ -type AlibabaInteractIsvadminGetpondbyinteractAPIResponse struct { - model.CommonResponse - AlibabaInteractIsvadminGetpondbyinteractResponse -} - -// 根据互动实例ID查询奖池信息 成功返回结果 -type AlibabaInteractIsvadminGetpondbyinteractResponse struct { - XMLName xml.Name `xml:"alibaba_interact_isvadmin_getpondbyinteract_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 奖池信息 - Data *PrizePondDto `json:"data,omitempty" xml:"data,omitempty"` - // 是否调用成功 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` - // 调用错误原因 - Error string `json:"error,omitempty" xml:"error,omitempty"` - // 错误描述 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/interact/AlibabaInteractIsvlotteryIdrawAPIRequest.go b/model/interact/AlibabaInteractIsvlotteryIdrawAPIRequest.go new file mode 100644 index 0000000000..66d612309b --- /dev/null +++ b/model/interact/AlibabaInteractIsvlotteryIdrawAPIRequest.go @@ -0,0 +1,80 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +互动到店抽奖 API请求 +alibaba.interact.isvlottery.idraw + +互动到店抽奖 +*/ +type AlibabaInteractIsvlotteryIdrawAPIRequest struct { + model.Params + // 互动实例ID + _interactId string + // 抽奖ID列表 用逗号隔开 + _awardIds string + // 埋点参数 + _ua string +} + +// 初始化AlibabaInteractIsvlotteryIdrawAPIRequest对象 +func NewAlibabaInteractIsvlotteryIdrawRequest() *AlibabaInteractIsvlotteryIdrawAPIRequest{ + return &AlibabaInteractIsvlotteryIdrawAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractIsvlotteryIdrawAPIRequest) GetApiMethodName() string { + return "alibaba.interact.isvlottery.idraw" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractIsvlotteryIdrawAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InteractId Setter +// 互动实例ID +func (r *AlibabaInteractIsvlotteryIdrawAPIRequest) SetInteractId(_interactId string) error { + r._interactId = _interactId + r.Set("interact_id", _interactId) + return nil +} + +// InteractId Getter +func (r AlibabaInteractIsvlotteryIdrawAPIRequest) GetInteractId() string { + return r._interactId +} +// AwardIds Setter +// 抽奖ID列表 用逗号隔开 +func (r *AlibabaInteractIsvlotteryIdrawAPIRequest) SetAwardIds(_awardIds string) error { + r._awardIds = _awardIds + r.Set("award_ids", _awardIds) + return nil +} + +// AwardIds Getter +func (r AlibabaInteractIsvlotteryIdrawAPIRequest) GetAwardIds() string { + return r._awardIds +} +// Ua Setter +// 埋点参数 +func (r *AlibabaInteractIsvlotteryIdrawAPIRequest) SetUa(_ua string) error { + r._ua = _ua + r.Set("ua", _ua) + return nil +} + +// Ua Getter +func (r AlibabaInteractIsvlotteryIdrawAPIRequest) GetUa() string { + return r._ua +} diff --git a/model/interact/AlibabaInteractIsvlotteryIdrawAPIResponse.go b/model/interact/AlibabaInteractIsvlotteryIdrawAPIResponse.go new file mode 100644 index 0000000000..4ea8aee964 --- /dev/null +++ b/model/interact/AlibabaInteractIsvlotteryIdrawAPIResponse.go @@ -0,0 +1,33 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +互动到店抽奖 API返回值 +alibaba.interact.isvlottery.idraw + +互动到店抽奖 +*/ +type AlibabaInteractIsvlotteryIdrawAPIResponse struct { + model.CommonResponse + AlibabaInteractIsvlotteryIdrawAPIResponseModel +} + +// 互动到店抽奖 成功返回结果 +type AlibabaInteractIsvlotteryIdrawAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_isvlottery_idraw_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 抽奖中奖信息 + Data *LotteryProxyResult `json:"data,omitempty" xml:"data,omitempty"` + // 是否调用成功 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 错误信息 + BizCode string `json:"biz_code,omitempty" xml:"biz_code,omitempty"` + // 错误信息描述 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/interact/AlibabaInteractIsvlotteryIdrawResponse.go b/model/interact/AlibabaInteractIsvlotteryIdrawResponse.go deleted file mode 100644 index 127a0c454d..0000000000 --- a/model/interact/AlibabaInteractIsvlotteryIdrawResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -互动到店抽奖 API返回值 -alibaba.interact.isvlottery.idraw - -互动到店抽奖 -*/ -type AlibabaInteractIsvlotteryIdrawAPIResponse struct { - model.CommonResponse - AlibabaInteractIsvlotteryIdrawResponse -} - -// 互动到店抽奖 成功返回结果 -type AlibabaInteractIsvlotteryIdrawResponse struct { - XMLName xml.Name `xml:"alibaba_interact_isvlottery_idraw_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 抽奖中奖信息 - Data *LotteryProxyResult `json:"data,omitempty" xml:"data,omitempty"` - // 是否调用成功 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` - // 错误信息 - BizCode string `json:"biz_code,omitempty" xml:"biz_code,omitempty"` - // 错误信息描述 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/interact/AlibabaInteractIsvlotteryIsvdrawAPIRequest.go b/model/interact/AlibabaInteractIsvlotteryIsvdrawAPIRequest.go new file mode 100644 index 0000000000..061abe1c16 --- /dev/null +++ b/model/interact/AlibabaInteractIsvlotteryIsvdrawAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫奖池鉴权接口 API请求 +alibaba.interact.isvlottery.isvdraw + +鉴权接口,为tida.isvdraw接口鉴权 +*/ +type AlibabaInteractIsvlotteryIsvdrawAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractIsvlotteryIsvdrawAPIRequest对象 +func NewAlibabaInteractIsvlotteryIsvdrawRequest() *AlibabaInteractIsvlotteryIsvdrawAPIRequest{ + return &AlibabaInteractIsvlotteryIsvdrawAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractIsvlotteryIsvdrawAPIRequest) GetApiMethodName() string { + return "alibaba.interact.isvlottery.isvdraw" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractIsvlotteryIsvdrawAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractIsvlotteryIsvdrawAPIResponse.go b/model/interact/AlibabaInteractIsvlotteryIsvdrawAPIResponse.go new file mode 100644 index 0000000000..72b7965901 --- /dev/null +++ b/model/interact/AlibabaInteractIsvlotteryIsvdrawAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫奖池鉴权接口 API返回值 +alibaba.interact.isvlottery.isvdraw + +鉴权接口,为tida.isvdraw接口鉴权 +*/ +type AlibabaInteractIsvlotteryIsvdrawAPIResponse struct { + model.CommonResponse + AlibabaInteractIsvlotteryIsvdrawAPIResponseModel +} + +// 天猫奖池鉴权接口 成功返回结果 +type AlibabaInteractIsvlotteryIsvdrawAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_isvlottery_isvdraw_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 无用参数 + Stub string `json:"stub,omitempty" xml:"stub,omitempty"` +} diff --git a/model/interact/AlibabaInteractIsvlotteryIsvdrawResponse.go b/model/interact/AlibabaInteractIsvlotteryIsvdrawResponse.go deleted file mode 100644 index 03c01aa122..0000000000 --- a/model/interact/AlibabaInteractIsvlotteryIsvdrawResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫奖池鉴权接口 API返回值 -alibaba.interact.isvlottery.isvdraw - -鉴权接口,为tida.isvdraw接口鉴权 -*/ -type AlibabaInteractIsvlotteryIsvdrawAPIResponse struct { - model.CommonResponse - AlibabaInteractIsvlotteryIsvdrawResponse -} - -// 天猫奖池鉴权接口 成功返回结果 -type AlibabaInteractIsvlotteryIsvdrawResponse struct { - XMLName xml.Name `xml:"alibaba_interact_isvlottery_isvdraw_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 无用参数 - Stub string `json:"stub,omitempty" xml:"stub,omitempty"` -} diff --git a/model/interact/AlibabaInteractLoginAlipayauthAPIRequest.go b/model/interact/AlibabaInteractLoginAlipayauthAPIRequest.go new file mode 100644 index 0000000000..5c3af4184c --- /dev/null +++ b/model/interact/AlibabaInteractLoginAlipayauthAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +双11到店互动花呗红包获取token鉴权接口 API请求 +alibaba.interact.login.alipayauth + +双11到店互动花呗红包获取token鉴权接口 +*/ +type AlibabaInteractLoginAlipayauthAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractLoginAlipayauthAPIRequest对象 +func NewAlibabaInteractLoginAlipayauthRequest() *AlibabaInteractLoginAlipayauthAPIRequest{ + return &AlibabaInteractLoginAlipayauthAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractLoginAlipayauthAPIRequest) GetApiMethodName() string { + return "alibaba.interact.login.alipayauth" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractLoginAlipayauthAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractLoginAlipayauthAPIResponse.go b/model/interact/AlibabaInteractLoginAlipayauthAPIResponse.go new file mode 100644 index 0000000000..043a65f14e --- /dev/null +++ b/model/interact/AlibabaInteractLoginAlipayauthAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +双11到店互动花呗红包获取token鉴权接口 API返回值 +alibaba.interact.login.alipayauth + +双11到店互动花呗红包获取token鉴权接口 +*/ +type AlibabaInteractLoginAlipayauthAPIResponse struct { + model.CommonResponse + AlibabaInteractLoginAlipayauthAPIResponseModel +} + +// 双11到店互动花呗红包获取token鉴权接口 成功返回结果 +type AlibabaInteractLoginAlipayauthAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_login_alipayauth_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractLoginAlipayauthResponse.go b/model/interact/AlibabaInteractLoginAlipayauthResponse.go deleted file mode 100644 index dfbcb62746..0000000000 --- a/model/interact/AlibabaInteractLoginAlipayauthResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -双11到店互动花呗红包获取token鉴权接口 API返回值 -alibaba.interact.login.alipayauth - -双11到店互动花呗红包获取token鉴权接口 -*/ -type AlibabaInteractLoginAlipayauthAPIResponse struct { - model.CommonResponse - AlibabaInteractLoginAlipayauthResponse -} - -// 双11到店互动花呗红包获取token鉴权接口 成功返回结果 -type AlibabaInteractLoginAlipayauthResponse struct { - XMLName xml.Name `xml:"alibaba_interact_login_alipayauth_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractOnecodeIssueAPIRequest.go b/model/interact/AlibabaInteractOnecodeIssueAPIRequest.go new file mode 100644 index 0000000000..064d2a99be --- /dev/null +++ b/model/interact/AlibabaInteractOnecodeIssueAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +onecode代码通用鉴权 API请求 +alibaba.interact.onecode.issue + +手淘开放鉴权接口,仅用于tida接口鉴权,无输入输出。 +*/ +type AlibabaInteractOnecodeIssueAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractOnecodeIssueAPIRequest对象 +func NewAlibabaInteractOnecodeIssueRequest() *AlibabaInteractOnecodeIssueAPIRequest{ + return &AlibabaInteractOnecodeIssueAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractOnecodeIssueAPIRequest) GetApiMethodName() string { + return "alibaba.interact.onecode.issue" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractOnecodeIssueAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractOnecodeIssueAPIResponse.go b/model/interact/AlibabaInteractOnecodeIssueAPIResponse.go new file mode 100644 index 0000000000..6833daf427 --- /dev/null +++ b/model/interact/AlibabaInteractOnecodeIssueAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +onecode代码通用鉴权 API返回值 +alibaba.interact.onecode.issue + +手淘开放鉴权接口,仅用于tida接口鉴权,无输入输出。 +*/ +type AlibabaInteractOnecodeIssueAPIResponse struct { + model.CommonResponse + AlibabaInteractOnecodeIssueAPIResponseModel +} + +// onecode代码通用鉴权 成功返回结果 +type AlibabaInteractOnecodeIssueAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_onecode_issue_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result=0 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractOnecodeIssueResponse.go b/model/interact/AlibabaInteractOnecodeIssueResponse.go deleted file mode 100644 index 3b56eb596b..0000000000 --- a/model/interact/AlibabaInteractOnecodeIssueResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -onecode代码通用鉴权 API返回值 -alibaba.interact.onecode.issue - -手淘开放鉴权接口,仅用于tida接口鉴权,无输入输出。 -*/ -type AlibabaInteractOnecodeIssueAPIResponse struct { - model.CommonResponse - AlibabaInteractOnecodeIssueResponse -} - -// onecode代码通用鉴权 成功返回结果 -type AlibabaInteractOnecodeIssueResponse struct { - XMLName xml.Name `xml:"alibaba_interact_onecode_issue_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result=0 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractOpenIsattentionAPIRequest.go b/model/interact/AlibabaInteractOpenIsattentionAPIRequest.go new file mode 100644 index 0000000000..d6ba440847 --- /dev/null +++ b/model/interact/AlibabaInteractOpenIsattentionAPIRequest.go @@ -0,0 +1,52 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +判断用户是否收藏某个店铺 API请求 +alibaba.interact.open.isattention + +判断用户是否收藏某个店铺 +*/ +type AlibabaInteractOpenIsattentionAPIRequest struct { + model.Params + // 1 + _param0 int64 +} + +// 初始化AlibabaInteractOpenIsattentionAPIRequest对象 +func NewAlibabaInteractOpenIsattentionRequest() *AlibabaInteractOpenIsattentionAPIRequest{ + return &AlibabaInteractOpenIsattentionAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractOpenIsattentionAPIRequest) GetApiMethodName() string { + return "alibaba.interact.open.isattention" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractOpenIsattentionAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 1 +func (r *AlibabaInteractOpenIsattentionAPIRequest) SetParam0(_param0 int64) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaInteractOpenIsattentionAPIRequest) GetParam0() int64 { + return r._param0 +} diff --git a/model/interact/AlibabaInteractOpenIsattentionAPIResponse.go b/model/interact/AlibabaInteractOpenIsattentionAPIResponse.go new file mode 100644 index 0000000000..77d1e24c8c --- /dev/null +++ b/model/interact/AlibabaInteractOpenIsattentionAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +判断用户是否收藏某个店铺 API返回值 +alibaba.interact.open.isattention + +判断用户是否收藏某个店铺 +*/ +type AlibabaInteractOpenIsattentionAPIResponse struct { + model.CommonResponse + AlibabaInteractOpenIsattentionAPIResponseModel +} + +// 判断用户是否收藏某个店铺 成功返回结果 +type AlibabaInteractOpenIsattentionAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_open_isattention_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaInteractOpenIsattentionResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractOpenIsattentionResponse.go b/model/interact/AlibabaInteractOpenIsattentionResponse.go deleted file mode 100644 index 17f9bd405c..0000000000 --- a/model/interact/AlibabaInteractOpenIsattentionResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -判断用户是否收藏某个店铺 API返回值 -alibaba.interact.open.isattention - -判断用户是否收藏某个店铺 -*/ -type AlibabaInteractOpenIsattentionAPIResponse struct { - model.CommonResponse - AlibabaInteractOpenIsattentionResponse -} - -// 判断用户是否收藏某个店铺 成功返回结果 -type AlibabaInteractOpenIsattentionResponse struct { - XMLName xml.Name `xml:"alibaba_interact_open_isattention_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaInteractOpenIsattentionResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractOpenIsattentionResultDo.go b/model/interact/AlibabaInteractOpenIsattentionResultDo.go new file mode 100644 index 0000000000..60c932832d --- /dev/null +++ b/model/interact/AlibabaInteractOpenIsattentionResultDo.go @@ -0,0 +1,15 @@ +package interact + +// AlibabaInteractOpenIsattentionResultDo +type AlibabaInteractOpenIsattentionResultDo struct { + // isRetry + IsRetry bool `json:"is_retry,omitempty" xml:"is_retry,omitempty"` + // data + Data int64 `json:"data,omitempty" xml:"data,omitempty"` + // code + Code string `json:"code,omitempty" xml:"code,omitempty"` + // success + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // msg + Msg string `json:"msg,omitempty" xml:"msg,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorAudioAPIRequest.go b/model/interact/AlibabaInteractSensorAudioAPIRequest.go new file mode 100644 index 0000000000..a702320833 --- /dev/null +++ b/model/interact/AlibabaInteractSensorAudioAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +声音 API请求 +alibaba.interact.sensor.audio + +客户端声音 +*/ +type AlibabaInteractSensorAudioAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorAudioAPIRequest对象 +func NewAlibabaInteractSensorAudioRequest() *AlibabaInteractSensorAudioAPIRequest{ + return &AlibabaInteractSensorAudioAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorAudioAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.audio" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorAudioAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorAudioAPIResponse.go b/model/interact/AlibabaInteractSensorAudioAPIResponse.go new file mode 100644 index 0000000000..b53e3143c1 --- /dev/null +++ b/model/interact/AlibabaInteractSensorAudioAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +声音 API返回值 +alibaba.interact.sensor.audio + +客户端声音 +*/ +type AlibabaInteractSensorAudioAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorAudioAPIResponseModel +} + +// 声音 成功返回结果 +type AlibabaInteractSensorAudioAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_audio_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result=0表示成功 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorAudioResponse.go b/model/interact/AlibabaInteractSensorAudioResponse.go deleted file mode 100644 index 9fb4b47bfc..0000000000 --- a/model/interact/AlibabaInteractSensorAudioResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -声音 API返回值 -alibaba.interact.sensor.audio - -客户端声音 -*/ -type AlibabaInteractSensorAudioAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorAudioResponse -} - -// 声音 成功返回结果 -type AlibabaInteractSensorAudioResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_audio_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result=0表示成功 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorAuthorizeAPIRequest.go b/model/interact/AlibabaInteractSensorAuthorizeAPIRequest.go new file mode 100644 index 0000000000..d9bcf5a06f --- /dev/null +++ b/model/interact/AlibabaInteractSensorAuthorizeAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +客户端授权页 API请求 +alibaba.interact.sensor.authorize + +客户端授权页 +*/ +type AlibabaInteractSensorAuthorizeAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorAuthorizeAPIRequest对象 +func NewAlibabaInteractSensorAuthorizeRequest() *AlibabaInteractSensorAuthorizeAPIRequest{ + return &AlibabaInteractSensorAuthorizeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorAuthorizeAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.authorize" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorAuthorizeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorAuthorizeAPIResponse.go b/model/interact/AlibabaInteractSensorAuthorizeAPIResponse.go new file mode 100644 index 0000000000..44c4ed200b --- /dev/null +++ b/model/interact/AlibabaInteractSensorAuthorizeAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +客户端授权页 API返回值 +alibaba.interact.sensor.authorize + +客户端授权页 +*/ +type AlibabaInteractSensorAuthorizeAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorAuthorizeAPIResponseModel +} + +// 客户端授权页 成功返回结果 +type AlibabaInteractSensorAuthorizeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_authorize_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // return=0 表示成功 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorAuthorizeResponse.go b/model/interact/AlibabaInteractSensorAuthorizeResponse.go deleted file mode 100644 index b345007922..0000000000 --- a/model/interact/AlibabaInteractSensorAuthorizeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -客户端授权页 API返回值 -alibaba.interact.sensor.authorize - -客户端授权页 -*/ -type AlibabaInteractSensorAuthorizeAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorAuthorizeResponse -} - -// 客户端授权页 成功返回结果 -type AlibabaInteractSensorAuthorizeResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_authorize_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // return=0 表示成功 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorBlowAPIRequest.go b/model/interact/AlibabaInteractSensorBlowAPIRequest.go new file mode 100644 index 0000000000..fc857e99b7 --- /dev/null +++ b/model/interact/AlibabaInteractSensorBlowAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +吹气 API请求 +alibaba.interact.sensor.blow + +客户端吹气 +*/ +type AlibabaInteractSensorBlowAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorBlowAPIRequest对象 +func NewAlibabaInteractSensorBlowRequest() *AlibabaInteractSensorBlowAPIRequest{ + return &AlibabaInteractSensorBlowAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorBlowAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.blow" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorBlowAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorBlowAPIResponse.go b/model/interact/AlibabaInteractSensorBlowAPIResponse.go new file mode 100644 index 0000000000..4b287c60c1 --- /dev/null +++ b/model/interact/AlibabaInteractSensorBlowAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +吹气 API返回值 +alibaba.interact.sensor.blow + +客户端吹气 +*/ +type AlibabaInteractSensorBlowAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorBlowAPIResponseModel +} + +// 吹气 成功返回结果 +type AlibabaInteractSensorBlowAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_blow_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // return=0 表示成功 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorBlowResponse.go b/model/interact/AlibabaInteractSensorBlowResponse.go deleted file mode 100644 index 4eb02877b7..0000000000 --- a/model/interact/AlibabaInteractSensorBlowResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -吹气 API返回值 -alibaba.interact.sensor.blow - -客户端吹气 -*/ -type AlibabaInteractSensorBlowAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorBlowResponse -} - -// 吹气 成功返回结果 -type AlibabaInteractSensorBlowResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_blow_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // return=0 表示成功 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorCalendarAPIRequest.go b/model/interact/AlibabaInteractSensorCalendarAPIRequest.go new file mode 100644 index 0000000000..aebbf9c90f --- /dev/null +++ b/model/interact/AlibabaInteractSensorCalendarAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫互动游戏开放平台需要授权的传感器类接口(日历提醒) API请求 +alibaba.interact.sensor.calendar + +天猫互动游戏开放平台需要授权的传感器类接口(日历提醒) +*/ +type AlibabaInteractSensorCalendarAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorCalendarAPIRequest对象 +func NewAlibabaInteractSensorCalendarRequest() *AlibabaInteractSensorCalendarAPIRequest{ + return &AlibabaInteractSensorCalendarAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorCalendarAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.calendar" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorCalendarAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorCalendarAPIResponse.go b/model/interact/AlibabaInteractSensorCalendarAPIResponse.go new file mode 100644 index 0000000000..157dcdb967 --- /dev/null +++ b/model/interact/AlibabaInteractSensorCalendarAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫互动游戏开放平台需要授权的传感器类接口(日历提醒) API返回值 +alibaba.interact.sensor.calendar + +天猫互动游戏开放平台需要授权的传感器类接口(日历提醒) +*/ +type AlibabaInteractSensorCalendarAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorCalendarAPIResponseModel +} + +// 天猫互动游戏开放平台需要授权的传感器类接口(日历提醒) 成功返回结果 +type AlibabaInteractSensorCalendarAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_calendar_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorCalendarResponse.go b/model/interact/AlibabaInteractSensorCalendarResponse.go deleted file mode 100644 index e757299977..0000000000 --- a/model/interact/AlibabaInteractSensorCalendarResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫互动游戏开放平台需要授权的传感器类接口(日历提醒) API返回值 -alibaba.interact.sensor.calendar - -天猫互动游戏开放平台需要授权的传感器类接口(日历提醒) -*/ -type AlibabaInteractSensorCalendarAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorCalendarResponse -} - -// 天猫互动游戏开放平台需要授权的传感器类接口(日历提醒) 成功返回结果 -type AlibabaInteractSensorCalendarResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_calendar_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorFavoritesAPIRequest.go b/model/interact/AlibabaInteractSensorFavoritesAPIRequest.go new file mode 100644 index 0000000000..cd2aff7eb9 --- /dev/null +++ b/model/interact/AlibabaInteractSensorFavoritesAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +手淘开放收藏夹鉴权接口 API请求 +alibaba.interact.sensor.favorites + +手淘开放鉴权专用接口,无数据输出输入,仅用于鉴权。 +*/ +type AlibabaInteractSensorFavoritesAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorFavoritesAPIRequest对象 +func NewAlibabaInteractSensorFavoritesRequest() *AlibabaInteractSensorFavoritesAPIRequest{ + return &AlibabaInteractSensorFavoritesAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorFavoritesAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.favorites" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorFavoritesAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorFavoritesAPIResponse.go b/model/interact/AlibabaInteractSensorFavoritesAPIResponse.go new file mode 100644 index 0000000000..fed40176f6 --- /dev/null +++ b/model/interact/AlibabaInteractSensorFavoritesAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +手淘开放收藏夹鉴权接口 API返回值 +alibaba.interact.sensor.favorites + +手淘开放鉴权专用接口,无数据输出输入,仅用于鉴权。 +*/ +type AlibabaInteractSensorFavoritesAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorFavoritesAPIResponseModel +} + +// 手淘开放收藏夹鉴权接口 成功返回结果 +type AlibabaInteractSensorFavoritesAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_favorites_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // r=0 + R string `json:"r,omitempty" xml:"r,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorFavoritesResponse.go b/model/interact/AlibabaInteractSensorFavoritesResponse.go deleted file mode 100644 index f6cf8dcc33..0000000000 --- a/model/interact/AlibabaInteractSensorFavoritesResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -手淘开放收藏夹鉴权接口 API返回值 -alibaba.interact.sensor.favorites - -手淘开放鉴权专用接口,无数据输出输入,仅用于鉴权。 -*/ -type AlibabaInteractSensorFavoritesAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorFavoritesResponse -} - -// 手淘开放收藏夹鉴权接口 成功返回结果 -type AlibabaInteractSensorFavoritesResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_favorites_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // r=0 - R string `json:"r,omitempty" xml:"r,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorGcanvasAPIRequest.go b/model/interact/AlibabaInteractSensorGcanvasAPIRequest.go new file mode 100644 index 0000000000..0183be7b1c --- /dev/null +++ b/model/interact/AlibabaInteractSensorGcanvasAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +gcanvas API请求 +alibaba.interact.sensor.gcanvas + +gcanvas 功能 +*/ +type AlibabaInteractSensorGcanvasAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorGcanvasAPIRequest对象 +func NewAlibabaInteractSensorGcanvasRequest() *AlibabaInteractSensorGcanvasAPIRequest{ + return &AlibabaInteractSensorGcanvasAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorGcanvasAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.gcanvas" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorGcanvasAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorGcanvasAPIResponse.go b/model/interact/AlibabaInteractSensorGcanvasAPIResponse.go new file mode 100644 index 0000000000..c993062fb9 --- /dev/null +++ b/model/interact/AlibabaInteractSensorGcanvasAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +gcanvas API返回值 +alibaba.interact.sensor.gcanvas + +gcanvas 功能 +*/ +type AlibabaInteractSensorGcanvasAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorGcanvasAPIResponseModel +} + +// gcanvas 成功返回结果 +type AlibabaInteractSensorGcanvasAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_gcanvas_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result=0 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorGcanvasResponse.go b/model/interact/AlibabaInteractSensorGcanvasResponse.go deleted file mode 100644 index b2368b6db1..0000000000 --- a/model/interact/AlibabaInteractSensorGcanvasResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -gcanvas API返回值 -alibaba.interact.sensor.gcanvas - -gcanvas 功能 -*/ -type AlibabaInteractSensorGcanvasAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorGcanvasResponse -} - -// gcanvas 成功返回结果 -type AlibabaInteractSensorGcanvasResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_gcanvas_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result=0 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorGlueAPIRequest.go b/model/interact/AlibabaInteractSensorGlueAPIRequest.go new file mode 100644 index 0000000000..21aea58004 --- /dev/null +++ b/model/interact/AlibabaInteractSensorGlueAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +视频播放 API请求 +alibaba.interact.sensor.glue + +视频播放 +*/ +type AlibabaInteractSensorGlueAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorGlueAPIRequest对象 +func NewAlibabaInteractSensorGlueRequest() *AlibabaInteractSensorGlueAPIRequest{ + return &AlibabaInteractSensorGlueAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorGlueAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.glue" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorGlueAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorGlueAPIResponse.go b/model/interact/AlibabaInteractSensorGlueAPIResponse.go new file mode 100644 index 0000000000..c753deb1b5 --- /dev/null +++ b/model/interact/AlibabaInteractSensorGlueAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +视频播放 API返回值 +alibaba.interact.sensor.glue + +视频播放 +*/ +type AlibabaInteractSensorGlueAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorGlueAPIResponseModel +} + +// 视频播放 成功返回结果 +type AlibabaInteractSensorGlueAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_glue_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result=0 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorGlueResponse.go b/model/interact/AlibabaInteractSensorGlueResponse.go deleted file mode 100644 index 93adba24c3..0000000000 --- a/model/interact/AlibabaInteractSensorGlueResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -视频播放 API返回值 -alibaba.interact.sensor.glue - -视频播放 -*/ -type AlibabaInteractSensorGlueAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorGlueResponse -} - -// 视频播放 成功返回结果 -type AlibabaInteractSensorGlueResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_glue_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result=0 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorGmediaAPIRequest.go b/model/interact/AlibabaInteractSensorGmediaAPIRequest.go new file mode 100644 index 0000000000..4138efd506 --- /dev/null +++ b/model/interact/AlibabaInteractSensorGmediaAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +gmedia API请求 +alibaba.interact.sensor.gmedia + +媒体功能 +*/ +type AlibabaInteractSensorGmediaAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorGmediaAPIRequest对象 +func NewAlibabaInteractSensorGmediaRequest() *AlibabaInteractSensorGmediaAPIRequest{ + return &AlibabaInteractSensorGmediaAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorGmediaAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.gmedia" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorGmediaAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorGmediaAPIResponse.go b/model/interact/AlibabaInteractSensorGmediaAPIResponse.go new file mode 100644 index 0000000000..c94fd40ea5 --- /dev/null +++ b/model/interact/AlibabaInteractSensorGmediaAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +gmedia API返回值 +alibaba.interact.sensor.gmedia + +媒体功能 +*/ +type AlibabaInteractSensorGmediaAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorGmediaAPIResponseModel +} + +// gmedia 成功返回结果 +type AlibabaInteractSensorGmediaAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_gmedia_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result=0 表示成功 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorGmediaResponse.go b/model/interact/AlibabaInteractSensorGmediaResponse.go deleted file mode 100644 index 798b51aa0a..0000000000 --- a/model/interact/AlibabaInteractSensorGmediaResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -gmedia API返回值 -alibaba.interact.sensor.gmedia - -媒体功能 -*/ -type AlibabaInteractSensorGmediaAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorGmediaResponse -} - -// gmedia 成功返回结果 -type AlibabaInteractSensorGmediaResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_gmedia_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result=0 表示成功 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorGravityAPIRequest.go b/model/interact/AlibabaInteractSensorGravityAPIRequest.go new file mode 100644 index 0000000000..46f6a7af21 --- /dev/null +++ b/model/interact/AlibabaInteractSensorGravityAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +重力感应 API请求 +alibaba.interact.sensor.gravity + +native获取重力感应 +*/ +type AlibabaInteractSensorGravityAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorGravityAPIRequest对象 +func NewAlibabaInteractSensorGravityRequest() *AlibabaInteractSensorGravityAPIRequest{ + return &AlibabaInteractSensorGravityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorGravityAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.gravity" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorGravityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorGravityAPIResponse.go b/model/interact/AlibabaInteractSensorGravityAPIResponse.go new file mode 100644 index 0000000000..199c10a406 --- /dev/null +++ b/model/interact/AlibabaInteractSensorGravityAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +重力感应 API返回值 +alibaba.interact.sensor.gravity + +native获取重力感应 +*/ +type AlibabaInteractSensorGravityAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorGravityAPIResponseModel +} + +// 重力感应 成功返回结果 +type AlibabaInteractSensorGravityAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_gravity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 0表示成功呢 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorGravityResponse.go b/model/interact/AlibabaInteractSensorGravityResponse.go deleted file mode 100644 index 406630ccd8..0000000000 --- a/model/interact/AlibabaInteractSensorGravityResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -重力感应 API返回值 -alibaba.interact.sensor.gravity - -native获取重力感应 -*/ -type AlibabaInteractSensorGravityAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorGravityResponse -} - -// 重力感应 成功返回结果 -type AlibabaInteractSensorGravityResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_gravity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 0表示成功呢 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorGutilAPIRequest.go b/model/interact/AlibabaInteractSensorGutilAPIRequest.go new file mode 100644 index 0000000000..13160f7b53 --- /dev/null +++ b/model/interact/AlibabaInteractSensorGutilAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +canvas工具包 API请求 +alibaba.interact.sensor.gutil + +canvas工具包 +*/ +type AlibabaInteractSensorGutilAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorGutilAPIRequest对象 +func NewAlibabaInteractSensorGutilRequest() *AlibabaInteractSensorGutilAPIRequest{ + return &AlibabaInteractSensorGutilAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorGutilAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.gutil" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorGutilAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorGutilAPIResponse.go b/model/interact/AlibabaInteractSensorGutilAPIResponse.go new file mode 100644 index 0000000000..6c58ef062b --- /dev/null +++ b/model/interact/AlibabaInteractSensorGutilAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +canvas工具包 API返回值 +alibaba.interact.sensor.gutil + +canvas工具包 +*/ +type AlibabaInteractSensorGutilAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorGutilAPIResponseModel +} + +// canvas工具包 成功返回结果 +type AlibabaInteractSensorGutilAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_gutil_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result=0 表示成功 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorGutilResponse.go b/model/interact/AlibabaInteractSensorGutilResponse.go deleted file mode 100644 index 10b67b0b8b..0000000000 --- a/model/interact/AlibabaInteractSensorGutilResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -canvas工具包 API返回值 -alibaba.interact.sensor.gutil - -canvas工具包 -*/ -type AlibabaInteractSensorGutilAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorGutilResponse -} - -// canvas工具包 成功返回结果 -type AlibabaInteractSensorGutilResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_gutil_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result=0 表示成功 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorGyroAPIRequest.go b/model/interact/AlibabaInteractSensorGyroAPIRequest.go new file mode 100644 index 0000000000..5eecb110d0 --- /dev/null +++ b/model/interact/AlibabaInteractSensorGyroAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +陀螺仪 API请求 +alibaba.interact.sensor.gyro + +客户端陀螺仪 +*/ +type AlibabaInteractSensorGyroAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorGyroAPIRequest对象 +func NewAlibabaInteractSensorGyroRequest() *AlibabaInteractSensorGyroAPIRequest{ + return &AlibabaInteractSensorGyroAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorGyroAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.gyro" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorGyroAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorGyroAPIResponse.go b/model/interact/AlibabaInteractSensorGyroAPIResponse.go new file mode 100644 index 0000000000..f6436d3781 --- /dev/null +++ b/model/interact/AlibabaInteractSensorGyroAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +陀螺仪 API返回值 +alibaba.interact.sensor.gyro + +客户端陀螺仪 +*/ +type AlibabaInteractSensorGyroAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorGyroAPIResponseModel +} + +// 陀螺仪 成功返回结果 +type AlibabaInteractSensorGyroAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_gyro_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // return=0 表示正确 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorGyroResponse.go b/model/interact/AlibabaInteractSensorGyroResponse.go deleted file mode 100644 index cb33edce65..0000000000 --- a/model/interact/AlibabaInteractSensorGyroResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -陀螺仪 API返回值 -alibaba.interact.sensor.gyro - -客户端陀螺仪 -*/ -type AlibabaInteractSensorGyroAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorGyroResponse -} - -// 陀螺仪 成功返回结果 -type AlibabaInteractSensorGyroResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_gyro_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // return=0 表示正确 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorLoginAPIRequest.go b/model/interact/AlibabaInteractSensorLoginAPIRequest.go new file mode 100644 index 0000000000..b286fcc21e --- /dev/null +++ b/model/interact/AlibabaInteractSensorLoginAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取登陆页面 API请求 +alibaba.interact.sensor.login + +获取登陆页面 +*/ +type AlibabaInteractSensorLoginAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorLoginAPIRequest对象 +func NewAlibabaInteractSensorLoginRequest() *AlibabaInteractSensorLoginAPIRequest{ + return &AlibabaInteractSensorLoginAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorLoginAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.login" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorLoginAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorLoginAPIResponse.go b/model/interact/AlibabaInteractSensorLoginAPIResponse.go new file mode 100644 index 0000000000..d8850fe555 --- /dev/null +++ b/model/interact/AlibabaInteractSensorLoginAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取登陆页面 API返回值 +alibaba.interact.sensor.login + +获取登陆页面 +*/ +type AlibabaInteractSensorLoginAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorLoginAPIResponseModel +} + +// 获取登陆页面 成功返回结果 +type AlibabaInteractSensorLoginAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_login_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // return=0表示成功 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorLoginResponse.go b/model/interact/AlibabaInteractSensorLoginResponse.go deleted file mode 100644 index 8a890b1d95..0000000000 --- a/model/interact/AlibabaInteractSensorLoginResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取登陆页面 API返回值 -alibaba.interact.sensor.login - -获取登陆页面 -*/ -type AlibabaInteractSensorLoginAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorLoginResponse -} - -// 获取登陆页面 成功返回结果 -type AlibabaInteractSensorLoginResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_login_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // return=0表示成功 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorMaAPIRequest.go b/model/interact/AlibabaInteractSensorMaAPIRequest.go new file mode 100644 index 0000000000..6c89661304 --- /dev/null +++ b/model/interact/AlibabaInteractSensorMaAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +码相关API API请求 +alibaba.interact.sensor.ma + +码相关API +*/ +type AlibabaInteractSensorMaAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorMaAPIRequest对象 +func NewAlibabaInteractSensorMaRequest() *AlibabaInteractSensorMaAPIRequest{ + return &AlibabaInteractSensorMaAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorMaAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.ma" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorMaAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorMaAPIResponse.go b/model/interact/AlibabaInteractSensorMaAPIResponse.go new file mode 100644 index 0000000000..ded4225787 --- /dev/null +++ b/model/interact/AlibabaInteractSensorMaAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +码相关API API返回值 +alibaba.interact.sensor.ma + +码相关API +*/ +type AlibabaInteractSensorMaAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorMaAPIResponseModel +} + +// 码相关API 成功返回结果 +type AlibabaInteractSensorMaAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_ma_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result=0 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorMaResponse.go b/model/interact/AlibabaInteractSensorMaResponse.go deleted file mode 100644 index a519ff2c49..0000000000 --- a/model/interact/AlibabaInteractSensorMaResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -码相关API API返回值 -alibaba.interact.sensor.ma - -码相关API -*/ -type AlibabaInteractSensorMaAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorMaResponse -} - -// 码相关API 成功返回结果 -type AlibabaInteractSensorMaResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_ma_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result=0 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorMakeupAPIRequest.go b/model/interact/AlibabaInteractSensorMakeupAPIRequest.go new file mode 100644 index 0000000000..021a697e1f --- /dev/null +++ b/model/interact/AlibabaInteractSensorMakeupAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +美妆虚拟试装 API请求 +alibaba.interact.sensor.makeup + +手机淘宝美妆类目虚拟试妆权限,客户端能力(JS-API) +*/ +type AlibabaInteractSensorMakeupAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorMakeupAPIRequest对象 +func NewAlibabaInteractSensorMakeupRequest() *AlibabaInteractSensorMakeupAPIRequest{ + return &AlibabaInteractSensorMakeupAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorMakeupAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.makeup" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorMakeupAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorMakeupAPIResponse.go b/model/interact/AlibabaInteractSensorMakeupAPIResponse.go new file mode 100644 index 0000000000..0bcad86e8f --- /dev/null +++ b/model/interact/AlibabaInteractSensorMakeupAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +美妆虚拟试装 API返回值 +alibaba.interact.sensor.makeup + +手机淘宝美妆类目虚拟试妆权限,客户端能力(JS-API) +*/ +type AlibabaInteractSensorMakeupAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorMakeupAPIResponseModel +} + +// 美妆虚拟试装 成功返回结果 +type AlibabaInteractSensorMakeupAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_makeup_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 非restAPI,为jsapi result=0 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorMakeupResponse.go b/model/interact/AlibabaInteractSensorMakeupResponse.go deleted file mode 100644 index 62d11efac3..0000000000 --- a/model/interact/AlibabaInteractSensorMakeupResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -美妆虚拟试装 API返回值 -alibaba.interact.sensor.makeup - -手机淘宝美妆类目虚拟试妆权限,客户端能力(JS-API) -*/ -type AlibabaInteractSensorMakeupAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorMakeupResponse -} - -// 美妆虚拟试装 成功返回结果 -type AlibabaInteractSensorMakeupResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_makeup_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 非restAPI,为jsapi result=0 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorNetworkstatusAPIRequest.go b/model/interact/AlibabaInteractSensorNetworkstatusAPIRequest.go new file mode 100644 index 0000000000..6ab67e83b2 --- /dev/null +++ b/model/interact/AlibabaInteractSensorNetworkstatusAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +网络状态 API请求 +alibaba.interact.sensor.networkstatus + +客户端网络状态 +*/ +type AlibabaInteractSensorNetworkstatusAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorNetworkstatusAPIRequest对象 +func NewAlibabaInteractSensorNetworkstatusRequest() *AlibabaInteractSensorNetworkstatusAPIRequest{ + return &AlibabaInteractSensorNetworkstatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorNetworkstatusAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.networkstatus" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorNetworkstatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorNetworkstatusAPIResponse.go b/model/interact/AlibabaInteractSensorNetworkstatusAPIResponse.go new file mode 100644 index 0000000000..16f9428b87 --- /dev/null +++ b/model/interact/AlibabaInteractSensorNetworkstatusAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +网络状态 API返回值 +alibaba.interact.sensor.networkstatus + +客户端网络状态 +*/ +type AlibabaInteractSensorNetworkstatusAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorNetworkstatusAPIResponseModel +} + +// 网络状态 成功返回结果 +type AlibabaInteractSensorNetworkstatusAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_networkstatus_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // return=0表示成功 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorNetworkstatusResponse.go b/model/interact/AlibabaInteractSensorNetworkstatusResponse.go deleted file mode 100644 index d161ceaf84..0000000000 --- a/model/interact/AlibabaInteractSensorNetworkstatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -网络状态 API返回值 -alibaba.interact.sensor.networkstatus - -客户端网络状态 -*/ -type AlibabaInteractSensorNetworkstatusAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorNetworkstatusResponse -} - -// 网络状态 成功返回结果 -type AlibabaInteractSensorNetworkstatusResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_networkstatus_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // return=0表示成功 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorOpenwindowAPIRequest.go b/model/interact/AlibabaInteractSensorOpenwindowAPIRequest.go new file mode 100644 index 0000000000..f1cca783f5 --- /dev/null +++ b/model/interact/AlibabaInteractSensorOpenwindowAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +客户端打开新页面 API请求 +alibaba.interact.sensor.openwindow + +客户端打开新页面 +*/ +type AlibabaInteractSensorOpenwindowAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorOpenwindowAPIRequest对象 +func NewAlibabaInteractSensorOpenwindowRequest() *AlibabaInteractSensorOpenwindowAPIRequest{ + return &AlibabaInteractSensorOpenwindowAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorOpenwindowAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.openwindow" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorOpenwindowAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorOpenwindowAPIResponse.go b/model/interact/AlibabaInteractSensorOpenwindowAPIResponse.go new file mode 100644 index 0000000000..78db48a935 --- /dev/null +++ b/model/interact/AlibabaInteractSensorOpenwindowAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +客户端打开新页面 API返回值 +alibaba.interact.sensor.openwindow + +客户端打开新页面 +*/ +type AlibabaInteractSensorOpenwindowAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorOpenwindowAPIResponseModel +} + +// 客户端打开新页面 成功返回结果 +type AlibabaInteractSensorOpenwindowAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_openwindow_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result=0 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorOpenwindowResponse.go b/model/interact/AlibabaInteractSensorOpenwindowResponse.go deleted file mode 100644 index 162da7cc12..0000000000 --- a/model/interact/AlibabaInteractSensorOpenwindowResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -客户端打开新页面 API返回值 -alibaba.interact.sensor.openwindow - -客户端打开新页面 -*/ -type AlibabaInteractSensorOpenwindowAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorOpenwindowResponse -} - -// 客户端打开新页面 成功返回结果 -type AlibabaInteractSensorOpenwindowResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_openwindow_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result=0 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorPopwindowAPIRequest.go b/model/interact/AlibabaInteractSensorPopwindowAPIRequest.go new file mode 100644 index 0000000000..803d22ec0e --- /dev/null +++ b/model/interact/AlibabaInteractSensorPopwindowAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +popwindow API请求 +alibaba.interact.sensor.popwindow + +popwindow +*/ +type AlibabaInteractSensorPopwindowAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorPopwindowAPIRequest对象 +func NewAlibabaInteractSensorPopwindowRequest() *AlibabaInteractSensorPopwindowAPIRequest{ + return &AlibabaInteractSensorPopwindowAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorPopwindowAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.popwindow" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorPopwindowAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorPopwindowAPIResponse.go b/model/interact/AlibabaInteractSensorPopwindowAPIResponse.go new file mode 100644 index 0000000000..e837f264cc --- /dev/null +++ b/model/interact/AlibabaInteractSensorPopwindowAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +popwindow API返回值 +alibaba.interact.sensor.popwindow + +popwindow +*/ +type AlibabaInteractSensorPopwindowAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorPopwindowAPIResponseModel +} + +// popwindow 成功返回结果 +type AlibabaInteractSensorPopwindowAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_popwindow_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result=0 表示成功 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorPopwindowResponse.go b/model/interact/AlibabaInteractSensorPopwindowResponse.go deleted file mode 100644 index 4638e3f1a8..0000000000 --- a/model/interact/AlibabaInteractSensorPopwindowResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -popwindow API返回值 -alibaba.interact.sensor.popwindow - -popwindow -*/ -type AlibabaInteractSensorPopwindowAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorPopwindowResponse -} - -// popwindow 成功返回结果 -type AlibabaInteractSensorPopwindowResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_popwindow_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result=0 表示成功 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorShakeAPIRequest.go b/model/interact/AlibabaInteractSensorShakeAPIRequest.go new file mode 100644 index 0000000000..effcff3e81 --- /dev/null +++ b/model/interact/AlibabaInteractSensorShakeAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +摇一摇 API请求 +alibaba.interact.sensor.shake + +摇一摇 +*/ +type AlibabaInteractSensorShakeAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorShakeAPIRequest对象 +func NewAlibabaInteractSensorShakeRequest() *AlibabaInteractSensorShakeAPIRequest{ + return &AlibabaInteractSensorShakeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorShakeAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.shake" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorShakeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorShakeAPIResponse.go b/model/interact/AlibabaInteractSensorShakeAPIResponse.go new file mode 100644 index 0000000000..aac3acc68b --- /dev/null +++ b/model/interact/AlibabaInteractSensorShakeAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +摇一摇 API返回值 +alibaba.interact.sensor.shake + +摇一摇 +*/ +type AlibabaInteractSensorShakeAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorShakeAPIResponseModel +} + +// 摇一摇 成功返回结果 +type AlibabaInteractSensorShakeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_shake_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 0 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorShakeResponse.go b/model/interact/AlibabaInteractSensorShakeResponse.go deleted file mode 100644 index 0c5cbd72e0..0000000000 --- a/model/interact/AlibabaInteractSensorShakeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -摇一摇 API返回值 -alibaba.interact.sensor.shake - -摇一摇 -*/ -type AlibabaInteractSensorShakeAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorShakeResponse -} - -// 摇一摇 成功返回结果 -type AlibabaInteractSensorShakeResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_shake_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 0 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorShareAPIRequest.go b/model/interact/AlibabaInteractSensorShareAPIRequest.go new file mode 100644 index 0000000000..450aa97d8b --- /dev/null +++ b/model/interact/AlibabaInteractSensorShareAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分享 API请求 +alibaba.interact.sensor.share + +客户端分享 +*/ +type AlibabaInteractSensorShareAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorShareAPIRequest对象 +func NewAlibabaInteractSensorShareRequest() *AlibabaInteractSensorShareAPIRequest{ + return &AlibabaInteractSensorShareAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorShareAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.share" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorShareAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorShareAPIResponse.go b/model/interact/AlibabaInteractSensorShareAPIResponse.go new file mode 100644 index 0000000000..711c03a72b --- /dev/null +++ b/model/interact/AlibabaInteractSensorShareAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分享 API返回值 +alibaba.interact.sensor.share + +客户端分享 +*/ +type AlibabaInteractSensorShareAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorShareAPIResponseModel +} + +// 分享 成功返回结果 +type AlibabaInteractSensorShareAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_share_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // return=0表示成功 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorShareResponse.go b/model/interact/AlibabaInteractSensorShareResponse.go deleted file mode 100644 index 9a8fba00dd..0000000000 --- a/model/interact/AlibabaInteractSensorShareResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分享 API返回值 -alibaba.interact.sensor.share - -客户端分享 -*/ -type AlibabaInteractSensorShareAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorShareResponse -} - -// 分享 成功返回结果 -type AlibabaInteractSensorShareResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_share_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // return=0表示成功 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorTakephotoAPIRequest.go b/model/interact/AlibabaInteractSensorTakephotoAPIRequest.go new file mode 100644 index 0000000000..808f778efe --- /dev/null +++ b/model/interact/AlibabaInteractSensorTakephotoAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +takePhoto API请求 +alibaba.interact.sensor.takephoto + +客户端takePhoto +*/ +type AlibabaInteractSensorTakephotoAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorTakephotoAPIRequest对象 +func NewAlibabaInteractSensorTakephotoRequest() *AlibabaInteractSensorTakephotoAPIRequest{ + return &AlibabaInteractSensorTakephotoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorTakephotoAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.takephoto" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorTakephotoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorTakephotoAPIResponse.go b/model/interact/AlibabaInteractSensorTakephotoAPIResponse.go new file mode 100644 index 0000000000..7d6162c0e9 --- /dev/null +++ b/model/interact/AlibabaInteractSensorTakephotoAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +takePhoto API返回值 +alibaba.interact.sensor.takephoto + +客户端takePhoto +*/ +type AlibabaInteractSensorTakephotoAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorTakephotoAPIResponseModel +} + +// takePhoto 成功返回结果 +type AlibabaInteractSensorTakephotoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_takephoto_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // return=0表示成功 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorTakephotoResponse.go b/model/interact/AlibabaInteractSensorTakephotoResponse.go deleted file mode 100644 index 2c7bf8c0c2..0000000000 --- a/model/interact/AlibabaInteractSensorTakephotoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -takePhoto API返回值 -alibaba.interact.sensor.takephoto - -客户端takePhoto -*/ -type AlibabaInteractSensorTakephotoAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorTakephotoResponse -} - -// takePhoto 成功返回结果 -type AlibabaInteractSensorTakephotoResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_takephoto_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // return=0表示成功 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorTitlebarhideAPIRequest.go b/model/interact/AlibabaInteractSensorTitlebarhideAPIRequest.go new file mode 100644 index 0000000000..b314a90e33 --- /dev/null +++ b/model/interact/AlibabaInteractSensorTitlebarhideAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +隐藏titleBar API请求 +alibaba.interact.sensor.titlebarhide + +隐藏titleBar +*/ +type AlibabaInteractSensorTitlebarhideAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorTitlebarhideAPIRequest对象 +func NewAlibabaInteractSensorTitlebarhideRequest() *AlibabaInteractSensorTitlebarhideAPIRequest{ + return &AlibabaInteractSensorTitlebarhideAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorTitlebarhideAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.titlebarhide" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorTitlebarhideAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorTitlebarhideAPIResponse.go b/model/interact/AlibabaInteractSensorTitlebarhideAPIResponse.go new file mode 100644 index 0000000000..3e5fde82a5 --- /dev/null +++ b/model/interact/AlibabaInteractSensorTitlebarhideAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +隐藏titleBar API返回值 +alibaba.interact.sensor.titlebarhide + +隐藏titleBar +*/ +type AlibabaInteractSensorTitlebarhideAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorTitlebarhideAPIResponseModel +} + +// 隐藏titleBar 成功返回结果 +type AlibabaInteractSensorTitlebarhideAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_titlebarhide_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // return=0表示成功 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorTitlebarhideResponse.go b/model/interact/AlibabaInteractSensorTitlebarhideResponse.go deleted file mode 100644 index e86d769d03..0000000000 --- a/model/interact/AlibabaInteractSensorTitlebarhideResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -隐藏titleBar API返回值 -alibaba.interact.sensor.titlebarhide - -隐藏titleBar -*/ -type AlibabaInteractSensorTitlebarhideAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorTitlebarhideResponse -} - -// 隐藏titleBar 成功返回结果 -type AlibabaInteractSensorTitlebarhideResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_titlebarhide_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // return=0表示成功 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorToastAPIRequest.go b/model/interact/AlibabaInteractSensorToastAPIRequest.go new file mode 100644 index 0000000000..cf75c4bdd5 --- /dev/null +++ b/model/interact/AlibabaInteractSensorToastAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +toast API请求 +alibaba.interact.sensor.toast + +toast提示 +*/ +type AlibabaInteractSensorToastAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorToastAPIRequest对象 +func NewAlibabaInteractSensorToastRequest() *AlibabaInteractSensorToastAPIRequest{ + return &AlibabaInteractSensorToastAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorToastAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.toast" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorToastAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorToastAPIResponse.go b/model/interact/AlibabaInteractSensorToastAPIResponse.go new file mode 100644 index 0000000000..51a74f5cdb --- /dev/null +++ b/model/interact/AlibabaInteractSensorToastAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +toast API返回值 +alibaba.interact.sensor.toast + +toast提示 +*/ +type AlibabaInteractSensorToastAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorToastAPIResponseModel +} + +// toast 成功返回结果 +type AlibabaInteractSensorToastAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_toast_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result=0 表示成功 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorToastResponse.go b/model/interact/AlibabaInteractSensorToastResponse.go deleted file mode 100644 index 875bbd6984..0000000000 --- a/model/interact/AlibabaInteractSensorToastResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -toast API返回值 -alibaba.interact.sensor.toast - -toast提示 -*/ -type AlibabaInteractSensorToastAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorToastResponse -} - -// toast 成功返回结果 -type AlibabaInteractSensorToastResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_toast_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result=0 表示成功 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorVibrateAPIRequest.go b/model/interact/AlibabaInteractSensorVibrateAPIRequest.go new file mode 100644 index 0000000000..350cea65a1 --- /dev/null +++ b/model/interact/AlibabaInteractSensorVibrateAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +客户端震动 API请求 +alibaba.interact.sensor.vibrate + +客户端震动 +*/ +type AlibabaInteractSensorVibrateAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorVibrateAPIRequest对象 +func NewAlibabaInteractSensorVibrateRequest() *AlibabaInteractSensorVibrateAPIRequest{ + return &AlibabaInteractSensorVibrateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorVibrateAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.vibrate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorVibrateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorVibrateAPIResponse.go b/model/interact/AlibabaInteractSensorVibrateAPIResponse.go new file mode 100644 index 0000000000..23417a1f92 --- /dev/null +++ b/model/interact/AlibabaInteractSensorVibrateAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +客户端震动 API返回值 +alibaba.interact.sensor.vibrate + +客户端震动 +*/ +type AlibabaInteractSensorVibrateAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorVibrateAPIResponseModel +} + +// 客户端震动 成功返回结果 +type AlibabaInteractSensorVibrateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_vibrate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result=0表示成功 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorVibrateResponse.go b/model/interact/AlibabaInteractSensorVibrateResponse.go deleted file mode 100644 index dee21af12d..0000000000 --- a/model/interact/AlibabaInteractSensorVibrateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -客户端震动 API返回值 -alibaba.interact.sensor.vibrate - -客户端震动 -*/ -type AlibabaInteractSensorVibrateAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorVibrateResponse -} - -// 客户端震动 成功返回结果 -type AlibabaInteractSensorVibrateResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_vibrate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result=0表示成功 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractSensorWangwangAPIRequest.go b/model/interact/AlibabaInteractSensorWangwangAPIRequest.go new file mode 100644 index 0000000000..c0a6ecaa0e --- /dev/null +++ b/model/interact/AlibabaInteractSensorWangwangAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +手淘拉起旺旺接口 API请求 +alibaba.interact.sensor.wangwang + +手淘开放专用接口,没有数据返回,仅用于手淘容器中jssdk接口鉴权。手淘开放旺旺拉起功能给ISV。 +*/ +type AlibabaInteractSensorWangwangAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractSensorWangwangAPIRequest对象 +func NewAlibabaInteractSensorWangwangRequest() *AlibabaInteractSensorWangwangAPIRequest{ + return &AlibabaInteractSensorWangwangAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorWangwangAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.wangwang" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorWangwangAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractSensorWangwangAPIResponse.go b/model/interact/AlibabaInteractSensorWangwangAPIResponse.go new file mode 100644 index 0000000000..732dc58612 --- /dev/null +++ b/model/interact/AlibabaInteractSensorWangwangAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +手淘拉起旺旺接口 API返回值 +alibaba.interact.sensor.wangwang + +手淘开放专用接口,没有数据返回,仅用于手淘容器中jssdk接口鉴权。手淘开放旺旺拉起功能给ISV。 +*/ +type AlibabaInteractSensorWangwangAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorWangwangAPIResponseModel +} + +// 手淘拉起旺旺接口 成功返回结果 +type AlibabaInteractSensorWangwangAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_wangwang_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result=0 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractSensorWangwangResponse.go b/model/interact/AlibabaInteractSensorWangwangResponse.go deleted file mode 100644 index cbb69974ac..0000000000 --- a/model/interact/AlibabaInteractSensorWangwangResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -手淘拉起旺旺接口 API返回值 -alibaba.interact.sensor.wangwang - -手淘开放专用接口,没有数据返回,仅用于手淘容器中jssdk接口鉴权。手淘开放旺旺拉起功能给ISV。 -*/ -type AlibabaInteractSensorWangwangAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorWangwangResponse -} - -// 手淘拉起旺旺接口 成功返回结果 -type AlibabaInteractSensorWangwangResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_wangwang_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result=0 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractShopFavorAPIRequest.go b/model/interact/AlibabaInteractShopFavorAPIRequest.go new file mode 100644 index 0000000000..56146fbe27 --- /dev/null +++ b/model/interact/AlibabaInteractShopFavorAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +店铺收藏 API请求 +alibaba.interact.shop.favor + +店铺收藏mtop接口开放鉴权接口,无入参出参,无安全风险,mtop接口开发 酒仙。 +*/ +type AlibabaInteractShopFavorAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractShopFavorAPIRequest对象 +func NewAlibabaInteractShopFavorRequest() *AlibabaInteractShopFavorAPIRequest{ + return &AlibabaInteractShopFavorAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractShopFavorAPIRequest) GetApiMethodName() string { + return "alibaba.interact.shop.favor" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractShopFavorAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractShopFavorAPIResponse.go b/model/interact/AlibabaInteractShopFavorAPIResponse.go new file mode 100644 index 0000000000..731df261f2 --- /dev/null +++ b/model/interact/AlibabaInteractShopFavorAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +店铺收藏 API返回值 +alibaba.interact.shop.favor + +店铺收藏mtop接口开放鉴权接口,无入参出参,无安全风险,mtop接口开发 酒仙。 +*/ +type AlibabaInteractShopFavorAPIResponse struct { + model.CommonResponse + AlibabaInteractShopFavorAPIResponseModel +} + +// 店铺收藏 成功返回结果 +type AlibabaInteractShopFavorAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_shop_favor_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result=0 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractShopFavorResponse.go b/model/interact/AlibabaInteractShopFavorResponse.go deleted file mode 100644 index c56888a75c..0000000000 --- a/model/interact/AlibabaInteractShopFavorResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -店铺收藏 API返回值 -alibaba.interact.shop.favor - -店铺收藏mtop接口开放鉴权接口,无入参出参,无安全风险,mtop接口开发 酒仙。 -*/ -type AlibabaInteractShopFavorAPIResponse struct { - model.CommonResponse - AlibabaInteractShopFavorResponse -} - -// 店铺收藏 成功返回结果 -type AlibabaInteractShopFavorResponse struct { - XMLName xml.Name `xml:"alibaba_interact_shop_favor_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result=0 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractUmpMealQueryAPIRequest.go b/model/interact/AlibabaInteractUmpMealQueryAPIRequest.go new file mode 100644 index 0000000000..cfa2494eb3 --- /dev/null +++ b/model/interact/AlibabaInteractUmpMealQueryAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝卖家搭配套餐查询 API请求 +alibaba.interact.ump.meal.query + +查询卖家在优惠平台设置的搭配套餐列表,每个套餐包括名称、套餐价格、手淘套餐购买链接 +*/ +type AlibabaInteractUmpMealQueryAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractUmpMealQueryAPIRequest对象 +func NewAlibabaInteractUmpMealQueryRequest() *AlibabaInteractUmpMealQueryAPIRequest{ + return &AlibabaInteractUmpMealQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractUmpMealQueryAPIRequest) GetApiMethodName() string { + return "alibaba.interact.ump.meal.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractUmpMealQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractUmpMealQueryAPIResponse.go b/model/interact/AlibabaInteractUmpMealQueryAPIResponse.go new file mode 100644 index 0000000000..1ffc48e1fc --- /dev/null +++ b/model/interact/AlibabaInteractUmpMealQueryAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝卖家搭配套餐查询 API返回值 +alibaba.interact.ump.meal.query + +查询卖家在优惠平台设置的搭配套餐列表,每个套餐包括名称、套餐价格、手淘套餐购买链接 +*/ +type AlibabaInteractUmpMealQueryAPIResponse struct { + model.CommonResponse + AlibabaInteractUmpMealQueryAPIResponseModel +} + +// 淘宝卖家搭配套餐查询 成功返回结果 +type AlibabaInteractUmpMealQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_ump_meal_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 优惠平台搭配套餐对象 + Meals []OpenMealDo `json:"meals,omitempty" xml:"meals>open_meal_do,omitempty"` +} diff --git a/model/interact/AlibabaInteractUmpMealQueryResponse.go b/model/interact/AlibabaInteractUmpMealQueryResponse.go deleted file mode 100644 index 21ecfa4bcf..0000000000 --- a/model/interact/AlibabaInteractUmpMealQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝卖家搭配套餐查询 API返回值 -alibaba.interact.ump.meal.query - -查询卖家在优惠平台设置的搭配套餐列表,每个套餐包括名称、套餐价格、手淘套餐购买链接 -*/ -type AlibabaInteractUmpMealQueryAPIResponse struct { - model.CommonResponse - AlibabaInteractUmpMealQueryResponse -} - -// 淘宝卖家搭配套餐查询 成功返回结果 -type AlibabaInteractUmpMealQueryResponse struct { - XMLName xml.Name `xml:"alibaba_interact_ump_meal_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 优惠平台搭配套餐对象 - Meals []OpenMealDo `json:"meals,omitempty" xml:"meals>open_meal_do,omitempty"` -} diff --git a/model/interact/AlibabaInteractUserIsloginAPIRequest.go b/model/interact/AlibabaInteractUserIsloginAPIRequest.go new file mode 100644 index 0000000000..66f4a35cfb --- /dev/null +++ b/model/interact/AlibabaInteractUserIsloginAPIRequest.go @@ -0,0 +1,52 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +校验用户是否已经登录 API请求 +alibaba.interact.user.islogin + +API的功能是校验用户是否登录,ISV调用接口的时候,通过此接口映射到mtop.interact.user.islogin接口上,因此接口只是做一个给ISV注册调用api的入口,没有发生真实的RPC +*/ +type AlibabaInteractUserIsloginAPIRequest struct { + model.Params + // 用户nick + _buyerNick string +} + +// 初始化AlibabaInteractUserIsloginAPIRequest对象 +func NewAlibabaInteractUserIsloginRequest() *AlibabaInteractUserIsloginAPIRequest{ + return &AlibabaInteractUserIsloginAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractUserIsloginAPIRequest) GetApiMethodName() string { + return "alibaba.interact.user.islogin" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractUserIsloginAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BuyerNick Setter +// 用户nick +func (r *AlibabaInteractUserIsloginAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r AlibabaInteractUserIsloginAPIRequest) GetBuyerNick() string { + return r._buyerNick +} diff --git a/model/interact/AlibabaInteractUserIsloginAPIResponse.go b/model/interact/AlibabaInteractUserIsloginAPIResponse.go new file mode 100644 index 0000000000..c131630ec6 --- /dev/null +++ b/model/interact/AlibabaInteractUserIsloginAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +校验用户是否已经登录 API返回值 +alibaba.interact.user.islogin + +API的功能是校验用户是否登录,ISV调用接口的时候,通过此接口映射到mtop.interact.user.islogin接口上,因此接口只是做一个给ISV注册调用api的入口,没有发生真实的RPC +*/ +type AlibabaInteractUserIsloginAPIResponse struct { + model.CommonResponse + AlibabaInteractUserIsloginAPIResponseModel +} + +// 校验用户是否已经登录 成功返回结果 +type AlibabaInteractUserIsloginAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_user_islogin_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaInteractUserIsloginMtopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractUserIsloginResponse.go b/model/interact/AlibabaInteractUserIsloginResponse.go deleted file mode 100644 index b16b2645f5..0000000000 --- a/model/interact/AlibabaInteractUserIsloginResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -校验用户是否已经登录 API返回值 -alibaba.interact.user.islogin - -API的功能是校验用户是否登录,ISV调用接口的时候,通过此接口映射到mtop.interact.user.islogin接口上,因此接口只是做一个给ISV注册调用api的入口,没有发生真实的RPC -*/ -type AlibabaInteractUserIsloginAPIResponse struct { - model.CommonResponse - AlibabaInteractUserIsloginResponse -} - -// 校验用户是否已经登录 成功返回结果 -type AlibabaInteractUserIsloginResponse struct { - XMLName xml.Name `xml:"alibaba_interact_user_islogin_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaInteractUserIsloginMtopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/AlibabaInteractWirelessDrawAPIRequest.go b/model/interact/AlibabaInteractWirelessDrawAPIRequest.go new file mode 100644 index 0000000000..3830912984 --- /dev/null +++ b/model/interact/AlibabaInteractWirelessDrawAPIRequest.go @@ -0,0 +1,38 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +双11到店互动无线端抽奖接口鉴权 API请求 +alibaba.interact.wireless.draw + +双11到店互动无线端mtop接口开放鉴权接口,无入参出参,无安全风险,mtop接口开发 坯子 +*/ +type AlibabaInteractWirelessDrawAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractWirelessDrawAPIRequest对象 +func NewAlibabaInteractWirelessDrawRequest() *AlibabaInteractWirelessDrawAPIRequest{ + return &AlibabaInteractWirelessDrawAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractWirelessDrawAPIRequest) GetApiMethodName() string { + return "alibaba.interact.wireless.draw" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractWirelessDrawAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interact/AlibabaInteractWirelessDrawAPIResponse.go b/model/interact/AlibabaInteractWirelessDrawAPIResponse.go new file mode 100644 index 0000000000..e58701c868 --- /dev/null +++ b/model/interact/AlibabaInteractWirelessDrawAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +双11到店互动无线端抽奖接口鉴权 API返回值 +alibaba.interact.wireless.draw + +双11到店互动无线端mtop接口开放鉴权接口,无入参出参,无安全风险,mtop接口开发 坯子 +*/ +type AlibabaInteractWirelessDrawAPIResponse struct { + model.CommonResponse + AlibabaInteractWirelessDrawAPIResponseModel +} + +// 双11到店互动无线端抽奖接口鉴权 成功返回结果 +type AlibabaInteractWirelessDrawAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_wireless_draw_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/AlibabaInteractWirelessDrawResponse.go b/model/interact/AlibabaInteractWirelessDrawResponse.go deleted file mode 100644 index 2d06cf9f85..0000000000 --- a/model/interact/AlibabaInteractWirelessDrawResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -双11到店互动无线端抽奖接口鉴权 API返回值 -alibaba.interact.wireless.draw - -双11到店互动无线端mtop接口开放鉴权接口,无入参出参,无安全风险,mtop接口开发 坯子 -*/ -type AlibabaInteractWirelessDrawAPIResponse struct { - model.CommonResponse - AlibabaInteractWirelessDrawResponse -} - -// 双11到店互动无线端抽奖接口鉴权 成功返回结果 -type AlibabaInteractWirelessDrawResponse struct { - XMLName xml.Name `xml:"alibaba_interact_wireless_draw_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/TaobaoMixnickPlaytoweAPIRequest.go b/model/interact/TaobaoMixnickPlaytoweAPIRequest.go new file mode 100644 index 0000000000..2e6769eaac --- /dev/null +++ b/model/interact/TaobaoMixnickPlaytoweAPIRequest.go @@ -0,0 +1,52 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +互动mixNick转微淘 API请求 +taobao.mixnick.playtowe + +微淘应用的混淆nick转为互动类型混淆nick +*/ +type TaobaoMixnickPlaytoweAPIRequest struct { + model.Params + // 用户的混淆nick + _mixMix string +} + +// 初始化TaobaoMixnickPlaytoweAPIRequest对象 +func NewTaobaoMixnickPlaytoweRequest() *TaobaoMixnickPlaytoweAPIRequest{ + return &TaobaoMixnickPlaytoweAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMixnickPlaytoweAPIRequest) GetApiMethodName() string { + return "taobao.mixnick.playtowe" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMixnickPlaytoweAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MixMix Setter +// 用户的混淆nick +func (r *TaobaoMixnickPlaytoweAPIRequest) SetMixMix(_mixMix string) error { + r._mixMix = _mixMix + r.Set("mix_mix", _mixMix) + return nil +} + +// MixMix Getter +func (r TaobaoMixnickPlaytoweAPIRequest) GetMixMix() string { + return r._mixMix +} diff --git a/model/interact/TaobaoMixnickPlaytoweAPIResponse.go b/model/interact/TaobaoMixnickPlaytoweAPIResponse.go new file mode 100644 index 0000000000..04eefd5b7b --- /dev/null +++ b/model/interact/TaobaoMixnickPlaytoweAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +互动mixNick转微淘 API返回值 +taobao.mixnick.playtowe + +微淘应用的混淆nick转为互动类型混淆nick +*/ +type TaobaoMixnickPlaytoweAPIResponse struct { + model.CommonResponse + TaobaoMixnickPlaytoweAPIResponseModel +} + +// 互动mixNick转微淘 成功返回结果 +type TaobaoMixnickPlaytoweAPIResponseModel struct { + XMLName xml.Name `xml:"mixnick_playtowe_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 微淘混淆nick + WeMixnick string `json:"we_mixnick,omitempty" xml:"we_mixnick,omitempty"` +} diff --git a/model/interact/TaobaoMixnickPlaytoweResponse.go b/model/interact/TaobaoMixnickPlaytoweResponse.go deleted file mode 100644 index c4b572500a..0000000000 --- a/model/interact/TaobaoMixnickPlaytoweResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -互动mixNick转微淘 API返回值 -taobao.mixnick.playtowe - -微淘应用的混淆nick转为互动类型混淆nick -*/ -type TaobaoMixnickPlaytoweAPIResponse struct { - model.CommonResponse - TaobaoMixnickPlaytoweResponse -} - -// 互动mixNick转微淘 成功返回结果 -type TaobaoMixnickPlaytoweResponse struct { - XMLName xml.Name `xml:"mixnick_playtowe_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 微淘混淆nick - WeMixnick string `json:"we_mixnick,omitempty" xml:"we_mixnick,omitempty"` -} diff --git a/model/interact/TaobaoMixnickWetoplayAPIRequest.go b/model/interact/TaobaoMixnickWetoplayAPIRequest.go new file mode 100644 index 0000000000..0f4626ab19 --- /dev/null +++ b/model/interact/TaobaoMixnickWetoplayAPIRequest.go @@ -0,0 +1,66 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +微淘混淆nick转互动混淆nick API请求 +taobao.mixnick.wetoplay + +微淘应用的混淆nick转为互动类型混淆nick +*/ +type TaobaoMixnickWetoplayAPIRequest struct { + model.Params + // 排查问题id + _traceId string + // 微淘混淆nick + _weMixnick string +} + +// 初始化TaobaoMixnickWetoplayAPIRequest对象 +func NewTaobaoMixnickWetoplayRequest() *TaobaoMixnickWetoplayAPIRequest{ + return &TaobaoMixnickWetoplayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMixnickWetoplayAPIRequest) GetApiMethodName() string { + return "taobao.mixnick.wetoplay" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMixnickWetoplayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TraceId Setter +// 排查问题id +func (r *TaobaoMixnickWetoplayAPIRequest) SetTraceId(_traceId string) error { + r._traceId = _traceId + r.Set("trace_id", _traceId) + return nil +} + +// TraceId Getter +func (r TaobaoMixnickWetoplayAPIRequest) GetTraceId() string { + return r._traceId +} +// WeMixnick Setter +// 微淘混淆nick +func (r *TaobaoMixnickWetoplayAPIRequest) SetWeMixnick(_weMixnick string) error { + r._weMixnick = _weMixnick + r.Set("we_mixnick", _weMixnick) + return nil +} + +// WeMixnick Getter +func (r TaobaoMixnickWetoplayAPIRequest) GetWeMixnick() string { + return r._weMixnick +} diff --git a/model/interact/TaobaoMixnickWetoplayAPIResponse.go b/model/interact/TaobaoMixnickWetoplayAPIResponse.go new file mode 100644 index 0000000000..69a6b66eb4 --- /dev/null +++ b/model/interact/TaobaoMixnickWetoplayAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +微淘混淆nick转互动混淆nick API返回值 +taobao.mixnick.wetoplay + +微淘应用的混淆nick转为互动类型混淆nick +*/ +type TaobaoMixnickWetoplayAPIResponse struct { + model.CommonResponse + TaobaoMixnickWetoplayAPIResponseModel +} + +// 微淘混淆nick转互动混淆nick 成功返回结果 +type TaobaoMixnickWetoplayAPIResponseModel struct { + XMLName xml.Name `xml:"mixnick_wetoplay_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 微淘转互动混淆nick + PlayMixnickData *MixNickResult `json:"play_mixnick_data,omitempty" xml:"play_mixnick_data,omitempty"` +} diff --git a/model/interact/TaobaoMixnickWetoplayResponse.go b/model/interact/TaobaoMixnickWetoplayResponse.go deleted file mode 100644 index be0a14a134..0000000000 --- a/model/interact/TaobaoMixnickWetoplayResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -微淘混淆nick转互动混淆nick API返回值 -taobao.mixnick.wetoplay - -微淘应用的混淆nick转为互动类型混淆nick -*/ -type TaobaoMixnickWetoplayAPIResponse struct { - model.CommonResponse - TaobaoMixnickWetoplayResponse -} - -// 微淘混淆nick转互动混淆nick 成功返回结果 -type TaobaoMixnickWetoplayResponse struct { - XMLName xml.Name `xml:"mixnick_wetoplay_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 微淘转互动混淆nick - PlayMixnickData *MixNickResult `json:"play_mixnick_data,omitempty" xml:"play_mixnick_data,omitempty"` -} diff --git a/model/interact/TaobaoWeitaoFeedCancelAPIRequest.go b/model/interact/TaobaoWeitaoFeedCancelAPIRequest.go new file mode 100644 index 0000000000..359daddc93 --- /dev/null +++ b/model/interact/TaobaoWeitaoFeedCancelAPIRequest.go @@ -0,0 +1,80 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消广播在timeline、广场中展示 API请求 +taobao.weitao.feed.cancel + +取消广播在timeline和广场中的展示。 +*/ +type TaobaoWeitaoFeedCancelAPIRequest struct { + model.Params + // 广播id + _feedId int64 + // 三方活动ID + _bizId string + // 是否彻底删除(店铺动态不可见,等同卖家广播后台删除),默认false + _delete bool +} + +// 初始化TaobaoWeitaoFeedCancelAPIRequest对象 +func NewTaobaoWeitaoFeedCancelRequest() *TaobaoWeitaoFeedCancelAPIRequest{ + return &TaobaoWeitaoFeedCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWeitaoFeedCancelAPIRequest) GetApiMethodName() string { + return "taobao.weitao.feed.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWeitaoFeedCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FeedId Setter +// 广播id +func (r *TaobaoWeitaoFeedCancelAPIRequest) SetFeedId(_feedId int64) error { + r._feedId = _feedId + r.Set("feed_id", _feedId) + return nil +} + +// FeedId Getter +func (r TaobaoWeitaoFeedCancelAPIRequest) GetFeedId() int64 { + return r._feedId +} +// BizId Setter +// 三方活动ID +func (r *TaobaoWeitaoFeedCancelAPIRequest) SetBizId(_bizId string) error { + r._bizId = _bizId + r.Set("biz_id", _bizId) + return nil +} + +// BizId Getter +func (r TaobaoWeitaoFeedCancelAPIRequest) GetBizId() string { + return r._bizId +} +// Delete Setter +// 是否彻底删除(店铺动态不可见,等同卖家广播后台删除),默认false +func (r *TaobaoWeitaoFeedCancelAPIRequest) SetDelete(_delete bool) error { + r._delete = _delete + r.Set("delete", _delete) + return nil +} + +// Delete Getter +func (r TaobaoWeitaoFeedCancelAPIRequest) GetDelete() bool { + return r._delete +} diff --git a/model/interact/TaobaoWeitaoFeedCancelAPIResponse.go b/model/interact/TaobaoWeitaoFeedCancelAPIResponse.go new file mode 100644 index 0000000000..08f66ac04b --- /dev/null +++ b/model/interact/TaobaoWeitaoFeedCancelAPIResponse.go @@ -0,0 +1,27 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消广播在timeline、广场中展示 API返回值 +taobao.weitao.feed.cancel + +取消广播在timeline和广场中的展示。 +*/ +type TaobaoWeitaoFeedCancelAPIResponse struct { + model.CommonResponse + TaobaoWeitaoFeedCancelAPIResponseModel +} + +// 取消广播在timeline、广场中展示 成功返回结果 +type TaobaoWeitaoFeedCancelAPIResponseModel struct { + XMLName xml.Name `xml:"weitao_feed_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推送结果 + Result *PushResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/TaobaoWeitaoFeedCancelResponse.go b/model/interact/TaobaoWeitaoFeedCancelResponse.go deleted file mode 100644 index bf2dfda535..0000000000 --- a/model/interact/TaobaoWeitaoFeedCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消广播在timeline、广场中展示 API返回值 -taobao.weitao.feed.cancel - -取消广播在timeline和广场中的展示。 -*/ -type TaobaoWeitaoFeedCancelAPIResponse struct { - model.CommonResponse - TaobaoWeitaoFeedCancelResponse -} - -// 取消广播在timeline、广场中展示 成功返回结果 -type TaobaoWeitaoFeedCancelResponse struct { - XMLName xml.Name `xml:"weitao_feed_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推送结果 - Result *PushResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/TaobaoWeitaoFeedSynchronizeAPIRequest.go b/model/interact/TaobaoWeitaoFeedSynchronizeAPIRequest.go new file mode 100644 index 0000000000..28e93466d7 --- /dev/null +++ b/model/interact/TaobaoWeitaoFeedSynchronizeAPIRequest.go @@ -0,0 +1,136 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推广淘小铺isv 活动到微淘feed API请求 +taobao.weitao.feed.synchronize + +推广淘小铺isv 活动到微淘feed +*/ +type TaobaoWeitaoFeedSynchronizeAPIRequest struct { + model.Params + // 活动id + _bizId int64 + // feed封面图片url + _coverPath string + // feed点击跳转的活动地址 + _detailUrl string + // feed展示结束时间 + _endTime int64 + // feed展示开始时间 + _startTime int64 + // feed描述 + _summary string + // feed标题 + _title string +} + +// 初始化TaobaoWeitaoFeedSynchronizeAPIRequest对象 +func NewTaobaoWeitaoFeedSynchronizeRequest() *TaobaoWeitaoFeedSynchronizeAPIRequest{ + return &TaobaoWeitaoFeedSynchronizeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWeitaoFeedSynchronizeAPIRequest) GetApiMethodName() string { + return "taobao.weitao.feed.synchronize" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWeitaoFeedSynchronizeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizId Setter +// 活动id +func (r *TaobaoWeitaoFeedSynchronizeAPIRequest) SetBizId(_bizId int64) error { + r._bizId = _bizId + r.Set("biz_id", _bizId) + return nil +} + +// BizId Getter +func (r TaobaoWeitaoFeedSynchronizeAPIRequest) GetBizId() int64 { + return r._bizId +} +// CoverPath Setter +// feed封面图片url +func (r *TaobaoWeitaoFeedSynchronizeAPIRequest) SetCoverPath(_coverPath string) error { + r._coverPath = _coverPath + r.Set("cover_path", _coverPath) + return nil +} + +// CoverPath Getter +func (r TaobaoWeitaoFeedSynchronizeAPIRequest) GetCoverPath() string { + return r._coverPath +} +// DetailUrl Setter +// feed点击跳转的活动地址 +func (r *TaobaoWeitaoFeedSynchronizeAPIRequest) SetDetailUrl(_detailUrl string) error { + r._detailUrl = _detailUrl + r.Set("detail_url", _detailUrl) + return nil +} + +// DetailUrl Getter +func (r TaobaoWeitaoFeedSynchronizeAPIRequest) GetDetailUrl() string { + return r._detailUrl +} +// EndTime Setter +// feed展示结束时间 +func (r *TaobaoWeitaoFeedSynchronizeAPIRequest) SetEndTime(_endTime int64) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoWeitaoFeedSynchronizeAPIRequest) GetEndTime() int64 { + return r._endTime +} +// StartTime Setter +// feed展示开始时间 +func (r *TaobaoWeitaoFeedSynchronizeAPIRequest) SetStartTime(_startTime int64) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoWeitaoFeedSynchronizeAPIRequest) GetStartTime() int64 { + return r._startTime +} +// Summary Setter +// feed描述 +func (r *TaobaoWeitaoFeedSynchronizeAPIRequest) SetSummary(_summary string) error { + r._summary = _summary + r.Set("summary", _summary) + return nil +} + +// Summary Getter +func (r TaobaoWeitaoFeedSynchronizeAPIRequest) GetSummary() string { + return r._summary +} +// Title Setter +// feed标题 +func (r *TaobaoWeitaoFeedSynchronizeAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoWeitaoFeedSynchronizeAPIRequest) GetTitle() string { + return r._title +} diff --git a/model/interact/TaobaoWeitaoFeedSynchronizeAPIResponse.go b/model/interact/TaobaoWeitaoFeedSynchronizeAPIResponse.go new file mode 100644 index 0000000000..3213c18446 --- /dev/null +++ b/model/interact/TaobaoWeitaoFeedSynchronizeAPIResponse.go @@ -0,0 +1,29 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推广淘小铺isv 活动到微淘feed API返回值 +taobao.weitao.feed.synchronize + +推广淘小铺isv 活动到微淘feed +*/ +type TaobaoWeitaoFeedSynchronizeAPIResponse struct { + model.CommonResponse + TaobaoWeitaoFeedSynchronizeAPIResponseModel +} + +// 推广淘小铺isv 活动到微淘feed 成功返回结果 +type TaobaoWeitaoFeedSynchronizeAPIResponseModel struct { + XMLName xml.Name `xml:"weitao_feed_synchronize_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 同步到微淘成功与否 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 增加错误信息 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/interact/TaobaoWeitaoFeedSynchronizeNewAPIRequest.go b/model/interact/TaobaoWeitaoFeedSynchronizeNewAPIRequest.go new file mode 100644 index 0000000000..96bf62e10d --- /dev/null +++ b/model/interact/TaobaoWeitaoFeedSynchronizeNewAPIRequest.go @@ -0,0 +1,150 @@ +package interact + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推广淘小铺isv 活动到微淘feed API请求 +taobao.weitao.feed.synchronize.new + +推广微淘互动应用活动到微淘 +*/ +type TaobaoWeitaoFeedSynchronizeNewAPIRequest struct { + model.Params + // 广播类型:粉丝猜价格461、投票有礼462、粉丝抢红包463、盖楼有礼464、加购有礼465 + _feedType int64 + // feed点击跳转的活动地址 + _detailUrl string + // feed展示结束时间 + _endTime int64 + // feed展示开始时间 + _startTime int64 + // feed描述 + _summary string + // feed标题 + _title string + // 宝贝列表,用于card展示,0~2个宝贝ID + _itemIds []string + // 活动ID + _sbizId string +} + +// 初始化TaobaoWeitaoFeedSynchronizeNewAPIRequest对象 +func NewTaobaoWeitaoFeedSynchronizeNewRequest() *TaobaoWeitaoFeedSynchronizeNewAPIRequest{ + return &TaobaoWeitaoFeedSynchronizeNewAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWeitaoFeedSynchronizeNewAPIRequest) GetApiMethodName() string { + return "taobao.weitao.feed.synchronize.new" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWeitaoFeedSynchronizeNewAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FeedType Setter +// 广播类型:粉丝猜价格461、投票有礼462、粉丝抢红包463、盖楼有礼464、加购有礼465 +func (r *TaobaoWeitaoFeedSynchronizeNewAPIRequest) SetFeedType(_feedType int64) error { + r._feedType = _feedType + r.Set("feed_type", _feedType) + return nil +} + +// FeedType Getter +func (r TaobaoWeitaoFeedSynchronizeNewAPIRequest) GetFeedType() int64 { + return r._feedType +} +// DetailUrl Setter +// feed点击跳转的活动地址 +func (r *TaobaoWeitaoFeedSynchronizeNewAPIRequest) SetDetailUrl(_detailUrl string) error { + r._detailUrl = _detailUrl + r.Set("detail_url", _detailUrl) + return nil +} + +// DetailUrl Getter +func (r TaobaoWeitaoFeedSynchronizeNewAPIRequest) GetDetailUrl() string { + return r._detailUrl +} +// EndTime Setter +// feed展示结束时间 +func (r *TaobaoWeitaoFeedSynchronizeNewAPIRequest) SetEndTime(_endTime int64) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoWeitaoFeedSynchronizeNewAPIRequest) GetEndTime() int64 { + return r._endTime +} +// StartTime Setter +// feed展示开始时间 +func (r *TaobaoWeitaoFeedSynchronizeNewAPIRequest) SetStartTime(_startTime int64) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoWeitaoFeedSynchronizeNewAPIRequest) GetStartTime() int64 { + return r._startTime +} +// Summary Setter +// feed描述 +func (r *TaobaoWeitaoFeedSynchronizeNewAPIRequest) SetSummary(_summary string) error { + r._summary = _summary + r.Set("summary", _summary) + return nil +} + +// Summary Getter +func (r TaobaoWeitaoFeedSynchronizeNewAPIRequest) GetSummary() string { + return r._summary +} +// Title Setter +// feed标题 +func (r *TaobaoWeitaoFeedSynchronizeNewAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoWeitaoFeedSynchronizeNewAPIRequest) GetTitle() string { + return r._title +} +// ItemIds Setter +// 宝贝列表,用于card展示,0~2个宝贝ID +func (r *TaobaoWeitaoFeedSynchronizeNewAPIRequest) SetItemIds(_itemIds []string) error { + r._itemIds = _itemIds + r.Set("item_ids", _itemIds) + return nil +} + +// ItemIds Getter +func (r TaobaoWeitaoFeedSynchronizeNewAPIRequest) GetItemIds() []string { + return r._itemIds +} +// SbizId Setter +// 活动ID +func (r *TaobaoWeitaoFeedSynchronizeNewAPIRequest) SetSbizId(_sbizId string) error { + r._sbizId = _sbizId + r.Set("sbiz_id", _sbizId) + return nil +} + +// SbizId Getter +func (r TaobaoWeitaoFeedSynchronizeNewAPIRequest) GetSbizId() string { + return r._sbizId +} diff --git a/model/interact/TaobaoWeitaoFeedSynchronizeNewAPIResponse.go b/model/interact/TaobaoWeitaoFeedSynchronizeNewAPIResponse.go new file mode 100644 index 0000000000..76c3e98f16 --- /dev/null +++ b/model/interact/TaobaoWeitaoFeedSynchronizeNewAPIResponse.go @@ -0,0 +1,29 @@ +package interact + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推广淘小铺isv 活动到微淘feed API返回值 +taobao.weitao.feed.synchronize.new + +推广微淘互动应用活动到微淘 +*/ +type TaobaoWeitaoFeedSynchronizeNewAPIResponse struct { + model.CommonResponse + TaobaoWeitaoFeedSynchronizeNewAPIResponseModel +} + +// 推广淘小铺isv 活动到微淘feed 成功返回结果 +type TaobaoWeitaoFeedSynchronizeNewAPIResponseModel struct { + XMLName xml.Name `xml:"weitao_feed_synchronize_new_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 增加错误信息 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` + // 推送结果 + Result *PushResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/interact/TaobaoWeitaoFeedSynchronizeNewResponse.go b/model/interact/TaobaoWeitaoFeedSynchronizeNewResponse.go deleted file mode 100644 index 53b9ae77f1..0000000000 --- a/model/interact/TaobaoWeitaoFeedSynchronizeNewResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推广淘小铺isv 活动到微淘feed API返回值 -taobao.weitao.feed.synchronize.new - -推广微淘互动应用活动到微淘 -*/ -type TaobaoWeitaoFeedSynchronizeNewAPIResponse struct { - model.CommonResponse - TaobaoWeitaoFeedSynchronizeNewResponse -} - -// 推广淘小铺isv 活动到微淘feed 成功返回结果 -type TaobaoWeitaoFeedSynchronizeNewResponse struct { - XMLName xml.Name `xml:"weitao_feed_synchronize_new_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 增加错误信息 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` - // 推送结果 - Result *PushResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/interact/TaobaoWeitaoFeedSynchronizeResponse.go b/model/interact/TaobaoWeitaoFeedSynchronizeResponse.go deleted file mode 100644 index 2a96738ab1..0000000000 --- a/model/interact/TaobaoWeitaoFeedSynchronizeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package interact - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推广淘小铺isv 活动到微淘feed API返回值 -taobao.weitao.feed.synchronize - -推广淘小铺isv 活动到微淘feed -*/ -type TaobaoWeitaoFeedSynchronizeAPIResponse struct { - model.CommonResponse - TaobaoWeitaoFeedSynchronizeResponse -} - -// 推广淘小铺isv 活动到微淘feed 成功返回结果 -type TaobaoWeitaoFeedSynchronizeResponse struct { - XMLName xml.Name `xml:"weitao_feed_synchronize_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 同步到微淘成功与否 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 增加错误信息 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/interactvip/AlibabaInteractVipGetAPIRequest.go b/model/interactvip/AlibabaInteractVipGetAPIRequest.go new file mode 100644 index 0000000000..7c7cca57da --- /dev/null +++ b/model/interactvip/AlibabaInteractVipGetAPIRequest.go @@ -0,0 +1,38 @@ +package interactvip + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +会员淘气值获取 API请求 +alibaba.interact.vip.get + +提供用户淘气值&用户角色身份查询 +*/ +type AlibabaInteractVipGetAPIRequest struct { + model.Params +} + +// 初始化AlibabaInteractVipGetAPIRequest对象 +func NewAlibabaInteractVipGetRequest() *AlibabaInteractVipGetAPIRequest{ + return &AlibabaInteractVipGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractVipGetAPIRequest) GetApiMethodName() string { + return "alibaba.interact.vip.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractVipGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/interactvip/AlibabaInteractVipGetAPIResponse.go b/model/interactvip/AlibabaInteractVipGetAPIResponse.go new file mode 100644 index 0000000000..1f2bbc207e --- /dev/null +++ b/model/interactvip/AlibabaInteractVipGetAPIResponse.go @@ -0,0 +1,25 @@ +package interactvip + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +会员淘气值获取 API返回值 +alibaba.interact.vip.get + +提供用户淘气值&用户角色身份查询 +*/ +type AlibabaInteractVipGetAPIResponse struct { + model.CommonResponse + AlibabaInteractVipGetAPIResponseModel +} + +// 会员淘气值获取 成功返回结果 +type AlibabaInteractVipGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_vip_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` +} diff --git a/model/interactvip/AlibabaInteractVipGetResponse.go b/model/interactvip/AlibabaInteractVipGetResponse.go deleted file mode 100644 index 96e8b37462..0000000000 --- a/model/interactvip/AlibabaInteractVipGetResponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package interactvip - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -会员淘气值获取 API返回值 -alibaba.interact.vip.get - -提供用户淘气值&用户角色身份查询 -*/ -type AlibabaInteractVipGetAPIResponse struct { - model.CommonResponse - AlibabaInteractVipGetResponse -} - -// 会员淘气值获取 成功返回结果 -type AlibabaInteractVipGetResponse struct { - XMLName xml.Name `xml:"alibaba_interact_vip_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` -} diff --git a/model/inventory/AlibabaRetailDeviceInventorySyncAPIRequest.go b/model/inventory/AlibabaRetailDeviceInventorySyncAPIRequest.go new file mode 100644 index 0000000000..8afc0520aa --- /dev/null +++ b/model/inventory/AlibabaRetailDeviceInventorySyncAPIRequest.go @@ -0,0 +1,94 @@ +package inventory + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +库存同步接口 API请求 +alibaba.retail.device.inventory.sync + +商库存同步接口 +*/ +type AlibabaRetailDeviceInventorySyncAPIRequest struct { + model.Params + // 设备类型 + _deviceType string + // 设备Id + _deviceId string + // 系统自动生成 + _inventoryDtos []InventorySyncDto + // 系统自动生成 + _deviceOption *InventorySyncOption +} + +// 初始化AlibabaRetailDeviceInventorySyncAPIRequest对象 +func NewAlibabaRetailDeviceInventorySyncRequest() *AlibabaRetailDeviceInventorySyncAPIRequest{ + return &AlibabaRetailDeviceInventorySyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailDeviceInventorySyncAPIRequest) GetApiMethodName() string { + return "alibaba.retail.device.inventory.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailDeviceInventorySyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceType Setter +// 设备类型 +func (r *AlibabaRetailDeviceInventorySyncAPIRequest) SetDeviceType(_deviceType string) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r AlibabaRetailDeviceInventorySyncAPIRequest) GetDeviceType() string { + return r._deviceType +} +// DeviceId Setter +// 设备Id +func (r *AlibabaRetailDeviceInventorySyncAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r AlibabaRetailDeviceInventorySyncAPIRequest) GetDeviceId() string { + return r._deviceId +} +// InventoryDtos Setter +// 系统自动生成 +func (r *AlibabaRetailDeviceInventorySyncAPIRequest) SetInventoryDtos(_inventoryDtos []InventorySyncDto) error { + r._inventoryDtos = _inventoryDtos + r.Set("inventory_dtos", _inventoryDtos) + return nil +} + +// InventoryDtos Getter +func (r AlibabaRetailDeviceInventorySyncAPIRequest) GetInventoryDtos() []InventorySyncDto { + return r._inventoryDtos +} +// DeviceOption Setter +// 系统自动生成 +func (r *AlibabaRetailDeviceInventorySyncAPIRequest) SetDeviceOption(_deviceOption *InventorySyncOption) error { + r._deviceOption = _deviceOption + r.Set("device_option", _deviceOption) + return nil +} + +// DeviceOption Getter +func (r AlibabaRetailDeviceInventorySyncAPIRequest) GetDeviceOption() *InventorySyncOption { + return r._deviceOption +} diff --git a/model/inventory/AlibabaRetailDeviceInventorySyncAPIResponse.go b/model/inventory/AlibabaRetailDeviceInventorySyncAPIResponse.go new file mode 100644 index 0000000000..4dfd2d5ab5 --- /dev/null +++ b/model/inventory/AlibabaRetailDeviceInventorySyncAPIResponse.go @@ -0,0 +1,27 @@ +package inventory + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +库存同步接口 API返回值 +alibaba.retail.device.inventory.sync + +商库存同步接口 +*/ +type AlibabaRetailDeviceInventorySyncAPIResponse struct { + model.CommonResponse + AlibabaRetailDeviceInventorySyncAPIResponseModel +} + +// 库存同步接口 成功返回结果 +type AlibabaRetailDeviceInventorySyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_device_inventory_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaRetailDeviceInventorySyncResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/inventory/AlibabaRetailDeviceInventorySyncResponse.go b/model/inventory/AlibabaRetailDeviceInventorySyncResponse.go deleted file mode 100644 index cd5f2ee788..0000000000 --- a/model/inventory/AlibabaRetailDeviceInventorySyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package inventory - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -库存同步接口 API返回值 -alibaba.retail.device.inventory.sync - -商库存同步接口 -*/ -type AlibabaRetailDeviceInventorySyncAPIResponse struct { - model.CommonResponse - AlibabaRetailDeviceInventorySyncResponse -} - -// 库存同步接口 成功返回结果 -type AlibabaRetailDeviceInventorySyncResponse struct { - XMLName xml.Name `xml:"alibaba_retail_device_inventory_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaRetailDeviceInventorySyncResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/inventory/TaobaoInventoryMerchantAdjustAPIRequest.go b/model/inventory/TaobaoInventoryMerchantAdjustAPIRequest.go new file mode 100644 index 0000000000..3e9882be89 --- /dev/null +++ b/model/inventory/TaobaoInventoryMerchantAdjustAPIRequest.go @@ -0,0 +1,52 @@ +package inventory + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +货品库存商家端调整 API请求 +taobao.inventory.merchant.adjust + +货品库存商家端调整 ,入库,出库,盘点 +*/ +type TaobaoInventoryMerchantAdjustAPIRequest struct { + model.Params + // 调整库存对象 + _inventoryCheck *InventoryCheckDto +} + +// 初始化TaobaoInventoryMerchantAdjustAPIRequest对象 +func NewTaobaoInventoryMerchantAdjustRequest() *TaobaoInventoryMerchantAdjustAPIRequest{ + return &TaobaoInventoryMerchantAdjustAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoInventoryMerchantAdjustAPIRequest) GetApiMethodName() string { + return "taobao.inventory.merchant.adjust" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoInventoryMerchantAdjustAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InventoryCheck Setter +// 调整库存对象 +func (r *TaobaoInventoryMerchantAdjustAPIRequest) SetInventoryCheck(_inventoryCheck *InventoryCheckDto) error { + r._inventoryCheck = _inventoryCheck + r.Set("inventory_check", _inventoryCheck) + return nil +} + +// InventoryCheck Getter +func (r TaobaoInventoryMerchantAdjustAPIRequest) GetInventoryCheck() *InventoryCheckDto { + return r._inventoryCheck +} diff --git a/model/inventory/TaobaoInventoryMerchantAdjustAPIResponse.go b/model/inventory/TaobaoInventoryMerchantAdjustAPIResponse.go new file mode 100644 index 0000000000..c7f49afe7f --- /dev/null +++ b/model/inventory/TaobaoInventoryMerchantAdjustAPIResponse.go @@ -0,0 +1,27 @@ +package inventory + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +货品库存商家端调整 API返回值 +taobao.inventory.merchant.adjust + +货品库存商家端调整 ,入库,出库,盘点 +*/ +type TaobaoInventoryMerchantAdjustAPIResponse struct { + model.CommonResponse + TaobaoInventoryMerchantAdjustAPIResponseModel +} + +// 货品库存商家端调整 成功返回结果 +type TaobaoInventoryMerchantAdjustAPIResponseModel struct { + XMLName xml.Name `xml:"inventory_merchant_adjust_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/inventory/TaobaoInventoryMerchantAdjustResponse.go b/model/inventory/TaobaoInventoryMerchantAdjustResponse.go deleted file mode 100644 index d9ea57bc16..0000000000 --- a/model/inventory/TaobaoInventoryMerchantAdjustResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package inventory - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -货品库存商家端调整 API返回值 -taobao.inventory.merchant.adjust - -货品库存商家端调整 ,入库,出库,盘点 -*/ -type TaobaoInventoryMerchantAdjustAPIResponse struct { - model.CommonResponse - TaobaoInventoryMerchantAdjustResponse -} - -// 货品库存商家端调整 成功返回结果 -type TaobaoInventoryMerchantAdjustResponse struct { - XMLName xml.Name `xml:"inventory_merchant_adjust_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/inventory/TaobaoInventoryPlanEditAPIRequest.go b/model/inventory/TaobaoInventoryPlanEditAPIRequest.go new file mode 100644 index 0000000000..675bb32c53 --- /dev/null +++ b/model/inventory/TaobaoInventoryPlanEditAPIRequest.go @@ -0,0 +1,52 @@ +package inventory + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设置计划库存 API请求 +taobao.inventory.plan.edit + +初始化计划库存,或者编辑已经存在的计划库存 +*/ +type TaobaoInventoryPlanEditAPIRequest struct { + model.Params + // 计划库存设置入参 + _planTop *PlanTopDto +} + +// 初始化TaobaoInventoryPlanEditAPIRequest对象 +func NewTaobaoInventoryPlanEditRequest() *TaobaoInventoryPlanEditAPIRequest{ + return &TaobaoInventoryPlanEditAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoInventoryPlanEditAPIRequest) GetApiMethodName() string { + return "taobao.inventory.plan.edit" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoInventoryPlanEditAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PlanTop Setter +// 计划库存设置入参 +func (r *TaobaoInventoryPlanEditAPIRequest) SetPlanTop(_planTop *PlanTopDto) error { + r._planTop = _planTop + r.Set("plan_top", _planTop) + return nil +} + +// PlanTop Getter +func (r TaobaoInventoryPlanEditAPIRequest) GetPlanTop() *PlanTopDto { + return r._planTop +} diff --git a/model/inventory/TaobaoInventoryPlanEditAPIResponse.go b/model/inventory/TaobaoInventoryPlanEditAPIResponse.go new file mode 100644 index 0000000000..7413b5f7dd --- /dev/null +++ b/model/inventory/TaobaoInventoryPlanEditAPIResponse.go @@ -0,0 +1,27 @@ +package inventory + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设置计划库存 API返回值 +taobao.inventory.plan.edit + +初始化计划库存,或者编辑已经存在的计划库存 +*/ +type TaobaoInventoryPlanEditAPIResponse struct { + model.CommonResponse + TaobaoInventoryPlanEditAPIResponseModel +} + +// 设置计划库存 成功返回结果 +type TaobaoInventoryPlanEditAPIResponseModel struct { + XMLName xml.Name `xml:"inventory_plan_edit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 批量返回结果 + Result *BatchResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/inventory/TaobaoInventoryPlanEditResponse.go b/model/inventory/TaobaoInventoryPlanEditResponse.go deleted file mode 100644 index 3642c6e0c3..0000000000 --- a/model/inventory/TaobaoInventoryPlanEditResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package inventory - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设置计划库存 API返回值 -taobao.inventory.plan.edit - -初始化计划库存,或者编辑已经存在的计划库存 -*/ -type TaobaoInventoryPlanEditAPIResponse struct { - model.CommonResponse - TaobaoInventoryPlanEditResponse -} - -// 设置计划库存 成功返回结果 -type TaobaoInventoryPlanEditResponse struct { - XMLName xml.Name `xml:"inventory_plan_edit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 批量返回结果 - Result *BatchResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/inventory/TaobaoInventoryPlanInvalidAPIRequest.go b/model/inventory/TaobaoInventoryPlanInvalidAPIRequest.go new file mode 100644 index 0000000000..dd453cdb5b --- /dev/null +++ b/model/inventory/TaobaoInventoryPlanInvalidAPIRequest.go @@ -0,0 +1,52 @@ +package inventory + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +失效计划库存 API请求 +taobao.inventory.plan.invalid + +计划库存的失效服务 +*/ +type TaobaoInventoryPlanInvalidAPIRequest struct { + model.Params + // 计划库存失效入参 + _planStopTop *PlanStopTopDto +} + +// 初始化TaobaoInventoryPlanInvalidAPIRequest对象 +func NewTaobaoInventoryPlanInvalidRequest() *TaobaoInventoryPlanInvalidAPIRequest{ + return &TaobaoInventoryPlanInvalidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoInventoryPlanInvalidAPIRequest) GetApiMethodName() string { + return "taobao.inventory.plan.invalid" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoInventoryPlanInvalidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PlanStopTop Setter +// 计划库存失效入参 +func (r *TaobaoInventoryPlanInvalidAPIRequest) SetPlanStopTop(_planStopTop *PlanStopTopDto) error { + r._planStopTop = _planStopTop + r.Set("plan_stop_top", _planStopTop) + return nil +} + +// PlanStopTop Getter +func (r TaobaoInventoryPlanInvalidAPIRequest) GetPlanStopTop() *PlanStopTopDto { + return r._planStopTop +} diff --git a/model/inventory/TaobaoInventoryPlanInvalidAPIResponse.go b/model/inventory/TaobaoInventoryPlanInvalidAPIResponse.go new file mode 100644 index 0000000000..b6810c742c --- /dev/null +++ b/model/inventory/TaobaoInventoryPlanInvalidAPIResponse.go @@ -0,0 +1,27 @@ +package inventory + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +失效计划库存 API返回值 +taobao.inventory.plan.invalid + +计划库存的失效服务 +*/ +type TaobaoInventoryPlanInvalidAPIResponse struct { + model.CommonResponse + TaobaoInventoryPlanInvalidAPIResponseModel +} + +// 失效计划库存 成功返回结果 +type TaobaoInventoryPlanInvalidAPIResponseModel struct { + XMLName xml.Name `xml:"inventory_plan_invalid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 批量返回结果 + Result *BatchResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/inventory/TaobaoInventoryPlanInvalidResponse.go b/model/inventory/TaobaoInventoryPlanInvalidResponse.go deleted file mode 100644 index a4a2e1b4ec..0000000000 --- a/model/inventory/TaobaoInventoryPlanInvalidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package inventory - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -失效计划库存 API返回值 -taobao.inventory.plan.invalid - -计划库存的失效服务 -*/ -type TaobaoInventoryPlanInvalidAPIResponse struct { - model.CommonResponse - TaobaoInventoryPlanInvalidResponse -} - -// 失效计划库存 成功返回结果 -type TaobaoInventoryPlanInvalidResponse struct { - XMLName xml.Name `xml:"inventory_plan_invalid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 批量返回结果 - Result *BatchResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/inventory/TaobaoInventoryPlanQuantityIncreaseAPIRequest.go b/model/inventory/TaobaoInventoryPlanQuantityIncreaseAPIRequest.go new file mode 100644 index 0000000000..04aefb0c39 --- /dev/null +++ b/model/inventory/TaobaoInventoryPlanQuantityIncreaseAPIRequest.go @@ -0,0 +1,52 @@ +package inventory + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +计划库存的增量编辑 API请求 +taobao.inventory.plan.quantity.increase + +计划库存的增量编辑 +*/ +type TaobaoInventoryPlanQuantityIncreaseAPIRequest struct { + model.Params + // 增量编辑计划库存入参 + _planInvAdjustTop *PlanInvAdjustTopDto +} + +// 初始化TaobaoInventoryPlanQuantityIncreaseAPIRequest对象 +func NewTaobaoInventoryPlanQuantityIncreaseRequest() *TaobaoInventoryPlanQuantityIncreaseAPIRequest{ + return &TaobaoInventoryPlanQuantityIncreaseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoInventoryPlanQuantityIncreaseAPIRequest) GetApiMethodName() string { + return "taobao.inventory.plan.quantity.increase" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoInventoryPlanQuantityIncreaseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PlanInvAdjustTop Setter +// 增量编辑计划库存入参 +func (r *TaobaoInventoryPlanQuantityIncreaseAPIRequest) SetPlanInvAdjustTop(_planInvAdjustTop *PlanInvAdjustTopDto) error { + r._planInvAdjustTop = _planInvAdjustTop + r.Set("plan_inv_adjust_top", _planInvAdjustTop) + return nil +} + +// PlanInvAdjustTop Getter +func (r TaobaoInventoryPlanQuantityIncreaseAPIRequest) GetPlanInvAdjustTop() *PlanInvAdjustTopDto { + return r._planInvAdjustTop +} diff --git a/model/inventory/TaobaoInventoryPlanQuantityIncreaseAPIResponse.go b/model/inventory/TaobaoInventoryPlanQuantityIncreaseAPIResponse.go new file mode 100644 index 0000000000..26a28b325b --- /dev/null +++ b/model/inventory/TaobaoInventoryPlanQuantityIncreaseAPIResponse.go @@ -0,0 +1,27 @@ +package inventory + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +计划库存的增量编辑 API返回值 +taobao.inventory.plan.quantity.increase + +计划库存的增量编辑 +*/ +type TaobaoInventoryPlanQuantityIncreaseAPIResponse struct { + model.CommonResponse + TaobaoInventoryPlanQuantityIncreaseAPIResponseModel +} + +// 计划库存的增量编辑 成功返回结果 +type TaobaoInventoryPlanQuantityIncreaseAPIResponseModel struct { + XMLName xml.Name `xml:"inventory_plan_quantity_increase_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 批量返回结果 + Result *BatchResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/inventory/TaobaoInventoryPlanQuantityIncreaseResponse.go b/model/inventory/TaobaoInventoryPlanQuantityIncreaseResponse.go deleted file mode 100644 index f439d95ddf..0000000000 --- a/model/inventory/TaobaoInventoryPlanQuantityIncreaseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package inventory - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -计划库存的增量编辑 API返回值 -taobao.inventory.plan.quantity.increase - -计划库存的增量编辑 -*/ -type TaobaoInventoryPlanQuantityIncreaseAPIResponse struct { - model.CommonResponse - TaobaoInventoryPlanQuantityIncreaseResponse -} - -// 计划库存的增量编辑 成功返回结果 -type TaobaoInventoryPlanQuantityIncreaseResponse struct { - XMLName xml.Name `xml:"inventory_plan_quantity_increase_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 批量返回结果 - Result *BatchResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/inventory/TaobaoInventoryPlanQueryAPIRequest.go b/model/inventory/TaobaoInventoryPlanQueryAPIRequest.go new file mode 100644 index 0000000000..a9da225a72 --- /dev/null +++ b/model/inventory/TaobaoInventoryPlanQueryAPIRequest.go @@ -0,0 +1,52 @@ +package inventory + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +计划库存查询 API请求 +taobao.inventory.plan.query + +计划库存查询 +*/ +type TaobaoInventoryPlanQueryAPIRequest struct { + model.Params + // 计划库存查询入参 + _param *InvUnifyPlanTopQuerys +} + +// 初始化TaobaoInventoryPlanQueryAPIRequest对象 +func NewTaobaoInventoryPlanQueryRequest() *TaobaoInventoryPlanQueryAPIRequest{ + return &TaobaoInventoryPlanQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoInventoryPlanQueryAPIRequest) GetApiMethodName() string { + return "taobao.inventory.plan.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoInventoryPlanQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 计划库存查询入参 +func (r *TaobaoInventoryPlanQueryAPIRequest) SetParam(_param *InvUnifyPlanTopQuerys) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r TaobaoInventoryPlanQueryAPIRequest) GetParam() *InvUnifyPlanTopQuerys { + return r._param +} diff --git a/model/inventory/TaobaoInventoryPlanQueryAPIResponse.go b/model/inventory/TaobaoInventoryPlanQueryAPIResponse.go new file mode 100644 index 0000000000..defe54d33f --- /dev/null +++ b/model/inventory/TaobaoInventoryPlanQueryAPIResponse.go @@ -0,0 +1,27 @@ +package inventory + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +计划库存查询 API返回值 +taobao.inventory.plan.query + +计划库存查询 +*/ +type TaobaoInventoryPlanQueryAPIResponse struct { + model.CommonResponse + TaobaoInventoryPlanQueryAPIResponseModel +} + +// 计划库存查询 成功返回结果 +type TaobaoInventoryPlanQueryAPIResponseModel struct { + XMLName xml.Name `xml:"inventory_plan_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoInventoryPlanQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/inventory/TaobaoInventoryPlanQueryResponse.go b/model/inventory/TaobaoInventoryPlanQueryResponse.go deleted file mode 100644 index 52b64e16de..0000000000 --- a/model/inventory/TaobaoInventoryPlanQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package inventory - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -计划库存查询 API返回值 -taobao.inventory.plan.query - -计划库存查询 -*/ -type TaobaoInventoryPlanQueryAPIResponse struct { - model.CommonResponse - TaobaoInventoryPlanQueryResponse -} - -// 计划库存查询 成功返回结果 -type TaobaoInventoryPlanQueryResponse struct { - XMLName xml.Name `xml:"inventory_plan_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoInventoryPlanQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/inventory/TaobaoLocationRelationEditAPIRequest.go b/model/inventory/TaobaoLocationRelationEditAPIRequest.go new file mode 100644 index 0000000000..7e2065f5e4 --- /dev/null +++ b/model/inventory/TaobaoLocationRelationEditAPIRequest.go @@ -0,0 +1,52 @@ +package inventory + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +地点关联关系增量编辑 API请求 +taobao.location.relation.edit + +地点关联关系增量编辑 +*/ +type TaobaoLocationRelationEditAPIRequest struct { + model.Params + // 关系对象列表 + _locationRelationList []LocationRelationDto +} + +// 初始化TaobaoLocationRelationEditAPIRequest对象 +func NewTaobaoLocationRelationEditRequest() *TaobaoLocationRelationEditAPIRequest{ + return &TaobaoLocationRelationEditAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLocationRelationEditAPIRequest) GetApiMethodName() string { + return "taobao.location.relation.edit" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLocationRelationEditAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LocationRelationList Setter +// 关系对象列表 +func (r *TaobaoLocationRelationEditAPIRequest) SetLocationRelationList(_locationRelationList []LocationRelationDto) error { + r._locationRelationList = _locationRelationList + r.Set("location_relation_list", _locationRelationList) + return nil +} + +// LocationRelationList Getter +func (r TaobaoLocationRelationEditAPIRequest) GetLocationRelationList() []LocationRelationDto { + return r._locationRelationList +} diff --git a/model/inventory/TaobaoLocationRelationEditAPIResponse.go b/model/inventory/TaobaoLocationRelationEditAPIResponse.go new file mode 100644 index 0000000000..dc79a4fd84 --- /dev/null +++ b/model/inventory/TaobaoLocationRelationEditAPIResponse.go @@ -0,0 +1,31 @@ +package inventory + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +地点关联关系增量编辑 API返回值 +taobao.location.relation.edit + +地点关联关系增量编辑 +*/ +type TaobaoLocationRelationEditAPIResponse struct { + model.CommonResponse + TaobaoLocationRelationEditAPIResponseModel +} + +// 地点关联关系增量编辑 成功返回结果 +type TaobaoLocationRelationEditAPIResponseModel struct { + XMLName xml.Name `xml:"location_relation_edit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误码 + Errorcode string `json:"errorcode,omitempty" xml:"errorcode,omitempty"` +} diff --git a/model/inventory/TaobaoLocationRelationEditResponse.go b/model/inventory/TaobaoLocationRelationEditResponse.go deleted file mode 100644 index cf602df5c4..0000000000 --- a/model/inventory/TaobaoLocationRelationEditResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package inventory - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -地点关联关系增量编辑 API返回值 -taobao.location.relation.edit - -地点关联关系增量编辑 -*/ -type TaobaoLocationRelationEditAPIResponse struct { - model.CommonResponse - TaobaoLocationRelationEditResponse -} - -// 地点关联关系增量编辑 成功返回结果 -type TaobaoLocationRelationEditResponse struct { - XMLName xml.Name `xml:"location_relation_edit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误码 - Errorcode string `json:"errorcode,omitempty" xml:"errorcode,omitempty"` -} diff --git a/model/inventory/TaobaoLocationRelationQueryAPIRequest.go b/model/inventory/TaobaoLocationRelationQueryAPIRequest.go new file mode 100644 index 0000000000..ce0d983384 --- /dev/null +++ b/model/inventory/TaobaoLocationRelationQueryAPIRequest.go @@ -0,0 +1,53 @@ +package inventory + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +地点关联关系查询 API请求 +taobao.location.relation.query + +地点关联关系查询 +门店和仓库关联关系查询 +*/ +type TaobaoLocationRelationQueryAPIRequest struct { + model.Params + // 关系查询 + _locationRelation *LocationRelationDto +} + +// 初始化TaobaoLocationRelationQueryAPIRequest对象 +func NewTaobaoLocationRelationQueryRequest() *TaobaoLocationRelationQueryAPIRequest{ + return &TaobaoLocationRelationQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLocationRelationQueryAPIRequest) GetApiMethodName() string { + return "taobao.location.relation.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLocationRelationQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LocationRelation Setter +// 关系查询 +func (r *TaobaoLocationRelationQueryAPIRequest) SetLocationRelation(_locationRelation *LocationRelationDto) error { + r._locationRelation = _locationRelation + r.Set("location_relation", _locationRelation) + return nil +} + +// LocationRelation Getter +func (r TaobaoLocationRelationQueryAPIRequest) GetLocationRelation() *LocationRelationDto { + return r._locationRelation +} diff --git a/model/inventory/TaobaoLocationRelationQueryAPIResponse.go b/model/inventory/TaobaoLocationRelationQueryAPIResponse.go new file mode 100644 index 0000000000..d08d817487 --- /dev/null +++ b/model/inventory/TaobaoLocationRelationQueryAPIResponse.go @@ -0,0 +1,28 @@ +package inventory + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +地点关联关系查询 API返回值 +taobao.location.relation.query + +地点关联关系查询 +门店和仓库关联关系查询 +*/ +type TaobaoLocationRelationQueryAPIResponse struct { + model.CommonResponse + TaobaoLocationRelationQueryAPIResponseModel +} + +// 地点关联关系查询 成功返回结果 +type TaobaoLocationRelationQueryAPIResponseModel struct { + XMLName xml.Name `xml:"location_relation_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/inventory/TaobaoLocationRelationQueryResponse.go b/model/inventory/TaobaoLocationRelationQueryResponse.go deleted file mode 100644 index 99d56e53fb..0000000000 --- a/model/inventory/TaobaoLocationRelationQueryResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package inventory - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -地点关联关系查询 API返回值 -taobao.location.relation.query - -地点关联关系查询 -门店和仓库关联关系查询 -*/ -type TaobaoLocationRelationQueryAPIResponse struct { - model.CommonResponse - TaobaoLocationRelationQueryResponse -} - -// 地点关联关系查询 成功返回结果 -type TaobaoLocationRelationQueryResponse struct { - XMLName xml.Name `xml:"location_relation_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/AlibabaAilabsAligenieAlbumsGetAPIRequest.go b/model/iot/AlibabaAilabsAligenieAlbumsGetAPIRequest.go new file mode 100644 index 0000000000..2718d8101f --- /dev/null +++ b/model/iot/AlibabaAilabsAligenieAlbumsGetAPIRequest.go @@ -0,0 +1,136 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +专辑详情 API请求 +alibaba.ailabs.aligenie.albums.get + +给予厂商查询专辑下的音频详情 +*/ +type AlibabaAilabsAligenieAlbumsGetAPIRequest struct { + model.Params + // 账户体系隔离 + _schema string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 扩展信息,用于存放APP类型等 + _ext string + // 专辑 id + _param1 int64 + // 当前页(从1开始, 目前由于底层引擎限制,实际最多能查5000个,超过5000返回为空,请确保页码*分页大小不超过5000) + _param2 int64 + // 每页数量(不超过50) + _param3 int64 +} + +// 初始化AlibabaAilabsAligenieAlbumsGetAPIRequest对象 +func NewAlibabaAilabsAligenieAlbumsGetRequest() *AlibabaAilabsAligenieAlbumsGetAPIRequest{ + return &AlibabaAilabsAligenieAlbumsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsAligenieAlbumsGetAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.aligenie.albums.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsAligenieAlbumsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// 账户体系隔离 +func (r *AlibabaAilabsAligenieAlbumsGetAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r AlibabaAilabsAligenieAlbumsGetAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *AlibabaAilabsAligenieAlbumsGetAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaAilabsAligenieAlbumsGetAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *AlibabaAilabsAligenieAlbumsGetAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r AlibabaAilabsAligenieAlbumsGetAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *AlibabaAilabsAligenieAlbumsGetAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r AlibabaAilabsAligenieAlbumsGetAPIRequest) GetExt() string { + return r._ext +} +// Param1 Setter +// 专辑 id +func (r *AlibabaAilabsAligenieAlbumsGetAPIRequest) SetParam1(_param1 int64) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaAilabsAligenieAlbumsGetAPIRequest) GetParam1() int64 { + return r._param1 +} +// Param2 Setter +// 当前页(从1开始, 目前由于底层引擎限制,实际最多能查5000个,超过5000返回为空,请确保页码*分页大小不超过5000) +func (r *AlibabaAilabsAligenieAlbumsGetAPIRequest) SetParam2(_param2 int64) error { + r._param2 = _param2 + r.Set("param2", _param2) + return nil +} + +// Param2 Getter +func (r AlibabaAilabsAligenieAlbumsGetAPIRequest) GetParam2() int64 { + return r._param2 +} +// Param3 Setter +// 每页数量(不超过50) +func (r *AlibabaAilabsAligenieAlbumsGetAPIRequest) SetParam3(_param3 int64) error { + r._param3 = _param3 + r.Set("param3", _param3) + return nil +} + +// Param3 Getter +func (r AlibabaAilabsAligenieAlbumsGetAPIRequest) GetParam3() int64 { + return r._param3 +} diff --git a/model/iot/AlibabaAilabsAligenieAlbumsGetAPIResponse.go b/model/iot/AlibabaAilabsAligenieAlbumsGetAPIResponse.go new file mode 100644 index 0000000000..8b2234aabe --- /dev/null +++ b/model/iot/AlibabaAilabsAligenieAlbumsGetAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +专辑详情 API返回值 +alibaba.ailabs.aligenie.albums.get + +给予厂商查询专辑下的音频详情 +*/ +type AlibabaAilabsAligenieAlbumsGetAPIResponse struct { + model.CommonResponse + AlibabaAilabsAligenieAlbumsGetAPIResponseModel +} + +// 专辑详情 成功返回结果 +type AlibabaAilabsAligenieAlbumsGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_aligenie_albums_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/AlibabaAilabsAligenieAlbumsGetResponse.go b/model/iot/AlibabaAilabsAligenieAlbumsGetResponse.go deleted file mode 100644 index de097b77c5..0000000000 --- a/model/iot/AlibabaAilabsAligenieAlbumsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -专辑详情 API返回值 -alibaba.ailabs.aligenie.albums.get - -给予厂商查询专辑下的音频详情 -*/ -type AlibabaAilabsAligenieAlbumsGetAPIResponse struct { - model.CommonResponse - AlibabaAilabsAligenieAlbumsGetResponse -} - -// 专辑详情 成功返回结果 -type AlibabaAilabsAligenieAlbumsGetResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_aligenie_albums_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/AlibabaAilabsAligenieAlbumsSearchAPIRequest.go b/model/iot/AlibabaAilabsAligenieAlbumsSearchAPIRequest.go new file mode 100644 index 0000000000..6ae8477979 --- /dev/null +++ b/model/iot/AlibabaAilabsAligenieAlbumsSearchAPIRequest.go @@ -0,0 +1,164 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询专辑 API请求 +alibaba.ailabs.aligenie.albums.search + +搜索类目下的专辑信息 +*/ +type AlibabaAilabsAligenieAlbumsSearchAPIRequest struct { + model.Params + // 账户体系隔离 + _schema string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 扩展信息,用于存放APP类型等 + _ext string + // 一级类目,如:儿童、新闻、商业财经有声书等 + _param1 string + // 二级类目,如儿童下有:儿歌、童谣、国学等 + _param2 string + // 搜索的单个专辑名称 + _param3 string + // 当前页(从1开始, 目前由于底层引擎限制,实际最多能查5000个,超过5000返回为空,请确保页码*分页大小不超过5000) + _param4 int64 + // 每页数量(不超过50) + _param5 int64 +} + +// 初始化AlibabaAilabsAligenieAlbumsSearchAPIRequest对象 +func NewAlibabaAilabsAligenieAlbumsSearchRequest() *AlibabaAilabsAligenieAlbumsSearchAPIRequest{ + return &AlibabaAilabsAligenieAlbumsSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsAligenieAlbumsSearchAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.aligenie.albums.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsAligenieAlbumsSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// 账户体系隔离 +func (r *AlibabaAilabsAligenieAlbumsSearchAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r AlibabaAilabsAligenieAlbumsSearchAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *AlibabaAilabsAligenieAlbumsSearchAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaAilabsAligenieAlbumsSearchAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *AlibabaAilabsAligenieAlbumsSearchAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r AlibabaAilabsAligenieAlbumsSearchAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *AlibabaAilabsAligenieAlbumsSearchAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r AlibabaAilabsAligenieAlbumsSearchAPIRequest) GetExt() string { + return r._ext +} +// Param1 Setter +// 一级类目,如:儿童、新闻、商业财经有声书等 +func (r *AlibabaAilabsAligenieAlbumsSearchAPIRequest) SetParam1(_param1 string) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaAilabsAligenieAlbumsSearchAPIRequest) GetParam1() string { + return r._param1 +} +// Param2 Setter +// 二级类目,如儿童下有:儿歌、童谣、国学等 +func (r *AlibabaAilabsAligenieAlbumsSearchAPIRequest) SetParam2(_param2 string) error { + r._param2 = _param2 + r.Set("param2", _param2) + return nil +} + +// Param2 Getter +func (r AlibabaAilabsAligenieAlbumsSearchAPIRequest) GetParam2() string { + return r._param2 +} +// Param3 Setter +// 搜索的单个专辑名称 +func (r *AlibabaAilabsAligenieAlbumsSearchAPIRequest) SetParam3(_param3 string) error { + r._param3 = _param3 + r.Set("param3", _param3) + return nil +} + +// Param3 Getter +func (r AlibabaAilabsAligenieAlbumsSearchAPIRequest) GetParam3() string { + return r._param3 +} +// Param4 Setter +// 当前页(从1开始, 目前由于底层引擎限制,实际最多能查5000个,超过5000返回为空,请确保页码*分页大小不超过5000) +func (r *AlibabaAilabsAligenieAlbumsSearchAPIRequest) SetParam4(_param4 int64) error { + r._param4 = _param4 + r.Set("param4", _param4) + return nil +} + +// Param4 Getter +func (r AlibabaAilabsAligenieAlbumsSearchAPIRequest) GetParam4() int64 { + return r._param4 +} +// Param5 Setter +// 每页数量(不超过50) +func (r *AlibabaAilabsAligenieAlbumsSearchAPIRequest) SetParam5(_param5 int64) error { + r._param5 = _param5 + r.Set("param5", _param5) + return nil +} + +// Param5 Getter +func (r AlibabaAilabsAligenieAlbumsSearchAPIRequest) GetParam5() int64 { + return r._param5 +} diff --git a/model/iot/AlibabaAilabsAligenieAlbumsSearchAPIResponse.go b/model/iot/AlibabaAilabsAligenieAlbumsSearchAPIResponse.go new file mode 100644 index 0000000000..893e7443e8 --- /dev/null +++ b/model/iot/AlibabaAilabsAligenieAlbumsSearchAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询专辑 API返回值 +alibaba.ailabs.aligenie.albums.search + +搜索类目下的专辑信息 +*/ +type AlibabaAilabsAligenieAlbumsSearchAPIResponse struct { + model.CommonResponse + AlibabaAilabsAligenieAlbumsSearchAPIResponseModel +} + +// 查询专辑 成功返回结果 +type AlibabaAilabsAligenieAlbumsSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_aligenie_albums_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/AlibabaAilabsAligenieAlbumsSearchResponse.go b/model/iot/AlibabaAilabsAligenieAlbumsSearchResponse.go deleted file mode 100644 index cbfd42f3c6..0000000000 --- a/model/iot/AlibabaAilabsAligenieAlbumsSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询专辑 API返回值 -alibaba.ailabs.aligenie.albums.search - -搜索类目下的专辑信息 -*/ -type AlibabaAilabsAligenieAlbumsSearchAPIResponse struct { - model.CommonResponse - AlibabaAilabsAligenieAlbumsSearchResponse -} - -// 查询专辑 成功返回结果 -type AlibabaAilabsAligenieAlbumsSearchResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_aligenie_albums_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/AlibabaAilabsAligenieIotDeviceControlResultAPIRequest.go b/model/iot/AlibabaAilabsAligenieIotDeviceControlResultAPIRequest.go new file mode 100644 index 0000000000..1128808640 --- /dev/null +++ b/model/iot/AlibabaAilabsAligenieIotDeviceControlResultAPIRequest.go @@ -0,0 +1,108 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设备控制结果 API请求 +alibaba.ailabs.aligenie.iot.device.control.result + +智能IOT解决外部厂商在云云模式在用户通过天猫精灵下发设备指令过程中,厂商指令完成,回调结果通知 +*/ +type AlibabaAilabsAligenieIotDeviceControlResultAPIRequest struct { + model.Params + // 请求token + _requestToken string + // 设备ID + _deviceId string + // 操作类型 1:控制操作 0:查询 + _type int64 + // 控制成功 + _control bool + // 厂商执行返回ackCode + _ackCode string +} + +// 初始化AlibabaAilabsAligenieIotDeviceControlResultAPIRequest对象 +func NewAlibabaAilabsAligenieIotDeviceControlResultRequest() *AlibabaAilabsAligenieIotDeviceControlResultAPIRequest{ + return &AlibabaAilabsAligenieIotDeviceControlResultAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsAligenieIotDeviceControlResultAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.aligenie.iot.device.control.result" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsAligenieIotDeviceControlResultAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestToken Setter +// 请求token +func (r *AlibabaAilabsAligenieIotDeviceControlResultAPIRequest) SetRequestToken(_requestToken string) error { + r._requestToken = _requestToken + r.Set("request_token", _requestToken) + return nil +} + +// RequestToken Getter +func (r AlibabaAilabsAligenieIotDeviceControlResultAPIRequest) GetRequestToken() string { + return r._requestToken +} +// DeviceId Setter +// 设备ID +func (r *AlibabaAilabsAligenieIotDeviceControlResultAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r AlibabaAilabsAligenieIotDeviceControlResultAPIRequest) GetDeviceId() string { + return r._deviceId +} +// Type Setter +// 操作类型 1:控制操作 0:查询 +func (r *AlibabaAilabsAligenieIotDeviceControlResultAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaAilabsAligenieIotDeviceControlResultAPIRequest) GetType() int64 { + return r._type +} +// Control Setter +// 控制成功 +func (r *AlibabaAilabsAligenieIotDeviceControlResultAPIRequest) SetControl(_control bool) error { + r._control = _control + r.Set("control", _control) + return nil +} + +// Control Getter +func (r AlibabaAilabsAligenieIotDeviceControlResultAPIRequest) GetControl() bool { + return r._control +} +// AckCode Setter +// 厂商执行返回ackCode +func (r *AlibabaAilabsAligenieIotDeviceControlResultAPIRequest) SetAckCode(_ackCode string) error { + r._ackCode = _ackCode + r.Set("ack_code", _ackCode) + return nil +} + +// AckCode Getter +func (r AlibabaAilabsAligenieIotDeviceControlResultAPIRequest) GetAckCode() string { + return r._ackCode +} diff --git a/model/iot/AlibabaAilabsAligenieIotDeviceControlResultAPIResponse.go b/model/iot/AlibabaAilabsAligenieIotDeviceControlResultAPIResponse.go new file mode 100644 index 0000000000..4a9fdd27a9 --- /dev/null +++ b/model/iot/AlibabaAilabsAligenieIotDeviceControlResultAPIResponse.go @@ -0,0 +1,31 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设备控制结果 API返回值 +alibaba.ailabs.aligenie.iot.device.control.result + +智能IOT解决外部厂商在云云模式在用户通过天猫精灵下发设备指令过程中,厂商指令完成,回调结果通知 +*/ +type AlibabaAilabsAligenieIotDeviceControlResultAPIResponse struct { + model.CommonResponse + AlibabaAilabsAligenieIotDeviceControlResultAPIResponseModel +} + +// 设备控制结果 成功返回结果 +type AlibabaAilabsAligenieIotDeviceControlResultAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_aligenie_iot_device_control_result_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // statusCode + StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // result + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/AlibabaAilabsAligenieIotDeviceControlResultResponse.go b/model/iot/AlibabaAilabsAligenieIotDeviceControlResultResponse.go deleted file mode 100644 index 842c2258ad..0000000000 --- a/model/iot/AlibabaAilabsAligenieIotDeviceControlResultResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设备控制结果 API返回值 -alibaba.ailabs.aligenie.iot.device.control.result - -智能IOT解决外部厂商在云云模式在用户通过天猫精灵下发设备指令过程中,厂商指令完成,回调结果通知 -*/ -type AlibabaAilabsAligenieIotDeviceControlResultAPIResponse struct { - model.CommonResponse - AlibabaAilabsAligenieIotDeviceControlResultResponse -} - -// 设备控制结果 成功返回结果 -type AlibabaAilabsAligenieIotDeviceControlResultResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_aligenie_iot_device_control_result_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // statusCode - StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // result - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/AlibabaAilabsAligenieTracksSearchAPIRequest.go b/model/iot/AlibabaAilabsAligenieTracksSearchAPIRequest.go new file mode 100644 index 0000000000..dc000b7b66 --- /dev/null +++ b/model/iot/AlibabaAilabsAligenieTracksSearchAPIRequest.go @@ -0,0 +1,164 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询音频 API请求 +alibaba.ailabs.aligenie.tracks.search + +搜索类目下的音频信息 +*/ +type AlibabaAilabsAligenieTracksSearchAPIRequest struct { + model.Params + // 账户体系隔离 + _schema string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 扩展信息,用于存放APP类型等 + _ext string + // 一级类目,如:儿童、新闻、商业财经有声书等 + _param1 string + // 二级类目,如儿童下有:儿歌、童谣、国学等 + _param2 string + // 搜索的单个音频名称 + _param3 string + // 当前页(从1开始, 目前由于底层引擎限制,实际最多能查5000个,超过5000返回为空,请确保页码*分页大小不超过5000) + _param4 int64 + // 每页数量(不超过50) + _param5 int64 +} + +// 初始化AlibabaAilabsAligenieTracksSearchAPIRequest对象 +func NewAlibabaAilabsAligenieTracksSearchRequest() *AlibabaAilabsAligenieTracksSearchAPIRequest{ + return &AlibabaAilabsAligenieTracksSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsAligenieTracksSearchAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.aligenie.tracks.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsAligenieTracksSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// 账户体系隔离 +func (r *AlibabaAilabsAligenieTracksSearchAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r AlibabaAilabsAligenieTracksSearchAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *AlibabaAilabsAligenieTracksSearchAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaAilabsAligenieTracksSearchAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *AlibabaAilabsAligenieTracksSearchAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r AlibabaAilabsAligenieTracksSearchAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *AlibabaAilabsAligenieTracksSearchAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r AlibabaAilabsAligenieTracksSearchAPIRequest) GetExt() string { + return r._ext +} +// Param1 Setter +// 一级类目,如:儿童、新闻、商业财经有声书等 +func (r *AlibabaAilabsAligenieTracksSearchAPIRequest) SetParam1(_param1 string) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaAilabsAligenieTracksSearchAPIRequest) GetParam1() string { + return r._param1 +} +// Param2 Setter +// 二级类目,如儿童下有:儿歌、童谣、国学等 +func (r *AlibabaAilabsAligenieTracksSearchAPIRequest) SetParam2(_param2 string) error { + r._param2 = _param2 + r.Set("param2", _param2) + return nil +} + +// Param2 Getter +func (r AlibabaAilabsAligenieTracksSearchAPIRequest) GetParam2() string { + return r._param2 +} +// Param3 Setter +// 搜索的单个音频名称 +func (r *AlibabaAilabsAligenieTracksSearchAPIRequest) SetParam3(_param3 string) error { + r._param3 = _param3 + r.Set("param3", _param3) + return nil +} + +// Param3 Getter +func (r AlibabaAilabsAligenieTracksSearchAPIRequest) GetParam3() string { + return r._param3 +} +// Param4 Setter +// 当前页(从1开始, 目前由于底层引擎限制,实际最多能查5000个,超过5000返回为空,请确保页码*分页大小不超过5000) +func (r *AlibabaAilabsAligenieTracksSearchAPIRequest) SetParam4(_param4 int64) error { + r._param4 = _param4 + r.Set("param4", _param4) + return nil +} + +// Param4 Getter +func (r AlibabaAilabsAligenieTracksSearchAPIRequest) GetParam4() int64 { + return r._param4 +} +// Param5 Setter +// 每页数量(不超过50) +func (r *AlibabaAilabsAligenieTracksSearchAPIRequest) SetParam5(_param5 int64) error { + r._param5 = _param5 + r.Set("param5", _param5) + return nil +} + +// Param5 Getter +func (r AlibabaAilabsAligenieTracksSearchAPIRequest) GetParam5() int64 { + return r._param5 +} diff --git a/model/iot/AlibabaAilabsAligenieTracksSearchAPIResponse.go b/model/iot/AlibabaAilabsAligenieTracksSearchAPIResponse.go new file mode 100644 index 0000000000..b2cdbde1db --- /dev/null +++ b/model/iot/AlibabaAilabsAligenieTracksSearchAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询音频 API返回值 +alibaba.ailabs.aligenie.tracks.search + +搜索类目下的音频信息 +*/ +type AlibabaAilabsAligenieTracksSearchAPIResponse struct { + model.CommonResponse + AlibabaAilabsAligenieTracksSearchAPIResponseModel +} + +// 查询音频 成功返回结果 +type AlibabaAilabsAligenieTracksSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_aligenie_tracks_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/AlibabaAilabsAligenieTracksSearchResponse.go b/model/iot/AlibabaAilabsAligenieTracksSearchResponse.go deleted file mode 100644 index 31e6faf37f..0000000000 --- a/model/iot/AlibabaAilabsAligenieTracksSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询音频 API返回值 -alibaba.ailabs.aligenie.tracks.search - -搜索类目下的音频信息 -*/ -type AlibabaAilabsAligenieTracksSearchAPIResponse struct { - model.CommonResponse - AlibabaAilabsAligenieTracksSearchResponse -} - -// 查询音频 成功返回结果 -type AlibabaAilabsAligenieTracksSearchResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_aligenie_tracks_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/AlibabaAilabsIotBusinessRecipeGetdetailAPIRequest.go b/model/iot/AlibabaAilabsIotBusinessRecipeGetdetailAPIRequest.go new file mode 100644 index 0000000000..92447bc35f --- /dev/null +++ b/model/iot/AlibabaAilabsIotBusinessRecipeGetdetailAPIRequest.go @@ -0,0 +1,66 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取食谱详情 API请求 +alibaba.ailabs.iot.business.recipe.getdetail + +获取食谱详情接口,获取ISV自己的食谱详情数据 +*/ +type AlibabaAilabsIotBusinessRecipeGetdetailAPIRequest struct { + model.Params + // 行业食谱id + _businessRecipeId int64 + // 开放账号id + _openAccountId string +} + +// 初始化AlibabaAilabsIotBusinessRecipeGetdetailAPIRequest对象 +func NewAlibabaAilabsIotBusinessRecipeGetdetailRequest() *AlibabaAilabsIotBusinessRecipeGetdetailAPIRequest{ + return &AlibabaAilabsIotBusinessRecipeGetdetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsIotBusinessRecipeGetdetailAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.iot.business.recipe.getdetail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsIotBusinessRecipeGetdetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BusinessRecipeId Setter +// 行业食谱id +func (r *AlibabaAilabsIotBusinessRecipeGetdetailAPIRequest) SetBusinessRecipeId(_businessRecipeId int64) error { + r._businessRecipeId = _businessRecipeId + r.Set("business_recipe_id", _businessRecipeId) + return nil +} + +// BusinessRecipeId Getter +func (r AlibabaAilabsIotBusinessRecipeGetdetailAPIRequest) GetBusinessRecipeId() int64 { + return r._businessRecipeId +} +// OpenAccountId Setter +// 开放账号id +func (r *AlibabaAilabsIotBusinessRecipeGetdetailAPIRequest) SetOpenAccountId(_openAccountId string) error { + r._openAccountId = _openAccountId + r.Set("open_account_id", _openAccountId) + return nil +} + +// OpenAccountId Getter +func (r AlibabaAilabsIotBusinessRecipeGetdetailAPIRequest) GetOpenAccountId() string { + return r._openAccountId +} diff --git a/model/iot/AlibabaAilabsIotBusinessRecipeGetdetailAPIResponse.go b/model/iot/AlibabaAilabsIotBusinessRecipeGetdetailAPIResponse.go new file mode 100644 index 0000000000..9108151956 --- /dev/null +++ b/model/iot/AlibabaAilabsIotBusinessRecipeGetdetailAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取食谱详情 API返回值 +alibaba.ailabs.iot.business.recipe.getdetail + +获取食谱详情接口,获取ISV自己的食谱详情数据 +*/ +type AlibabaAilabsIotBusinessRecipeGetdetailAPIResponse struct { + model.CommonResponse + AlibabaAilabsIotBusinessRecipeGetdetailAPIResponseModel +} + +// 获取食谱详情 成功返回结果 +type AlibabaAilabsIotBusinessRecipeGetdetailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_iot_business_recipe_getdetail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回包装类 + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/AlibabaAilabsIotBusinessRecipeGetdetailResponse.go b/model/iot/AlibabaAilabsIotBusinessRecipeGetdetailResponse.go deleted file mode 100644 index 7a87472ef8..0000000000 --- a/model/iot/AlibabaAilabsIotBusinessRecipeGetdetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取食谱详情 API返回值 -alibaba.ailabs.iot.business.recipe.getdetail - -获取食谱详情接口,获取ISV自己的食谱详情数据 -*/ -type AlibabaAilabsIotBusinessRecipeGetdetailAPIResponse struct { - model.CommonResponse - AlibabaAilabsIotBusinessRecipeGetdetailResponse -} - -// 获取食谱详情 成功返回结果 -type AlibabaAilabsIotBusinessRecipeGetdetailResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_iot_business_recipe_getdetail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回包装类 - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/AlibabaAilabsIotBusinessRecipeGetpageAPIRequest.go b/model/iot/AlibabaAilabsIotBusinessRecipeGetpageAPIRequest.go new file mode 100644 index 0000000000..437a336f79 --- /dev/null +++ b/model/iot/AlibabaAilabsIotBusinessRecipeGetpageAPIRequest.go @@ -0,0 +1,80 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询食谱 API请求 +alibaba.ailabs.iot.business.recipe.getpage + +分页查询食谱数据 +*/ +type AlibabaAilabsIotBusinessRecipeGetpageAPIRequest struct { + model.Params + // 开放账号id + _openAccountId string + // 分页页码 + _pageNum int64 + // 分页大小 + _pageSize int64 +} + +// 初始化AlibabaAilabsIotBusinessRecipeGetpageAPIRequest对象 +func NewAlibabaAilabsIotBusinessRecipeGetpageRequest() *AlibabaAilabsIotBusinessRecipeGetpageAPIRequest{ + return &AlibabaAilabsIotBusinessRecipeGetpageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsIotBusinessRecipeGetpageAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.iot.business.recipe.getpage" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsIotBusinessRecipeGetpageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenAccountId Setter +// 开放账号id +func (r *AlibabaAilabsIotBusinessRecipeGetpageAPIRequest) SetOpenAccountId(_openAccountId string) error { + r._openAccountId = _openAccountId + r.Set("open_account_id", _openAccountId) + return nil +} + +// OpenAccountId Getter +func (r AlibabaAilabsIotBusinessRecipeGetpageAPIRequest) GetOpenAccountId() string { + return r._openAccountId +} +// PageNum Setter +// 分页页码 +func (r *AlibabaAilabsIotBusinessRecipeGetpageAPIRequest) SetPageNum(_pageNum int64) error { + r._pageNum = _pageNum + r.Set("page_num", _pageNum) + return nil +} + +// PageNum Getter +func (r AlibabaAilabsIotBusinessRecipeGetpageAPIRequest) GetPageNum() int64 { + return r._pageNum +} +// PageSize Setter +// 分页大小 +func (r *AlibabaAilabsIotBusinessRecipeGetpageAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAilabsIotBusinessRecipeGetpageAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/iot/AlibabaAilabsIotBusinessRecipeGetpageAPIResponse.go b/model/iot/AlibabaAilabsIotBusinessRecipeGetpageAPIResponse.go new file mode 100644 index 0000000000..62552d7b09 --- /dev/null +++ b/model/iot/AlibabaAilabsIotBusinessRecipeGetpageAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询食谱 API返回值 +alibaba.ailabs.iot.business.recipe.getpage + +分页查询食谱数据 +*/ +type AlibabaAilabsIotBusinessRecipeGetpageAPIResponse struct { + model.CommonResponse + AlibabaAilabsIotBusinessRecipeGetpageAPIResponseModel +} + +// 分页查询食谱 成功返回结果 +type AlibabaAilabsIotBusinessRecipeGetpageAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_iot_business_recipe_getpage_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回包装类 + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/AlibabaAilabsIotBusinessRecipeGetpageResponse.go b/model/iot/AlibabaAilabsIotBusinessRecipeGetpageResponse.go deleted file mode 100644 index acc82dac72..0000000000 --- a/model/iot/AlibabaAilabsIotBusinessRecipeGetpageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页查询食谱 API返回值 -alibaba.ailabs.iot.business.recipe.getpage - -分页查询食谱数据 -*/ -type AlibabaAilabsIotBusinessRecipeGetpageAPIResponse struct { - model.CommonResponse - AlibabaAilabsIotBusinessRecipeGetpageResponse -} - -// 分页查询食谱 成功返回结果 -type AlibabaAilabsIotBusinessRecipeGetpageResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_iot_business_recipe_getpage_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回包装类 - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/AlibabaAilabsIotBusinessRecipeInsertorupdateAPIRequest.go b/model/iot/AlibabaAilabsIotBusinessRecipeInsertorupdateAPIRequest.go new file mode 100644 index 0000000000..8510c90c4b --- /dev/null +++ b/model/iot/AlibabaAilabsIotBusinessRecipeInsertorupdateAPIRequest.go @@ -0,0 +1,52 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +插入和更新食谱 API请求 +alibaba.ailabs.iot.business.recipe.insertorupdate + +插入和更新食谱,将isv的食谱添加到云端进行存储 +*/ +type AlibabaAilabsIotBusinessRecipeInsertorupdateAPIRequest struct { + model.Params + // 行业食谱开放参数 + _paramBusinessRecipeOpenParam *BusinessRecipeOpenParam +} + +// 初始化AlibabaAilabsIotBusinessRecipeInsertorupdateAPIRequest对象 +func NewAlibabaAilabsIotBusinessRecipeInsertorupdateRequest() *AlibabaAilabsIotBusinessRecipeInsertorupdateAPIRequest{ + return &AlibabaAilabsIotBusinessRecipeInsertorupdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsIotBusinessRecipeInsertorupdateAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.iot.business.recipe.insertorupdate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsIotBusinessRecipeInsertorupdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBusinessRecipeOpenParam Setter +// 行业食谱开放参数 +func (r *AlibabaAilabsIotBusinessRecipeInsertorupdateAPIRequest) SetParamBusinessRecipeOpenParam(_paramBusinessRecipeOpenParam *BusinessRecipeOpenParam) error { + r._paramBusinessRecipeOpenParam = _paramBusinessRecipeOpenParam + r.Set("param_business_recipe_open_param", _paramBusinessRecipeOpenParam) + return nil +} + +// ParamBusinessRecipeOpenParam Getter +func (r AlibabaAilabsIotBusinessRecipeInsertorupdateAPIRequest) GetParamBusinessRecipeOpenParam() *BusinessRecipeOpenParam { + return r._paramBusinessRecipeOpenParam +} diff --git a/model/iot/AlibabaAilabsIotBusinessRecipeInsertorupdateAPIResponse.go b/model/iot/AlibabaAilabsIotBusinessRecipeInsertorupdateAPIResponse.go new file mode 100644 index 0000000000..5c78dc0500 --- /dev/null +++ b/model/iot/AlibabaAilabsIotBusinessRecipeInsertorupdateAPIResponse.go @@ -0,0 +1,33 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +插入和更新食谱 API返回值 +alibaba.ailabs.iot.business.recipe.insertorupdate + +插入和更新食谱,将isv的食谱添加到云端进行存储 +*/ +type AlibabaAilabsIotBusinessRecipeInsertorupdateAPIResponse struct { + model.CommonResponse + AlibabaAilabsIotBusinessRecipeInsertorupdateAPIResponseModel +} + +// 插入和更新食谱 成功返回结果 +type AlibabaAilabsIotBusinessRecipeInsertorupdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_iot_business_recipe_insertorupdate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 响应code + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 返回结果,行业食谱Id + RetValue int64 `json:"ret_value,omitempty" xml:"ret_value,omitempty"` + // 追踪id + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` +} diff --git a/model/iot/AlibabaAilabsIotBusinessRecipeInsertorupdateResponse.go b/model/iot/AlibabaAilabsIotBusinessRecipeInsertorupdateResponse.go deleted file mode 100644 index 101e346041..0000000000 --- a/model/iot/AlibabaAilabsIotBusinessRecipeInsertorupdateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -插入和更新食谱 API返回值 -alibaba.ailabs.iot.business.recipe.insertorupdate - -插入和更新食谱,将isv的食谱添加到云端进行存储 -*/ -type AlibabaAilabsIotBusinessRecipeInsertorupdateAPIResponse struct { - model.CommonResponse - AlibabaAilabsIotBusinessRecipeInsertorupdateResponse -} - -// 插入和更新食谱 成功返回结果 -type AlibabaAilabsIotBusinessRecipeInsertorupdateResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_iot_business_recipe_insertorupdate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 响应code - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 返回结果,行业食谱Id - RetValue int64 `json:"ret_value,omitempty" xml:"ret_value,omitempty"` - // 追踪id - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` -} diff --git a/model/iot/AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIRequest.go b/model/iot/AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIRequest.go new file mode 100644 index 0000000000..c60079d3a0 --- /dev/null +++ b/model/iot/AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIRequest.go @@ -0,0 +1,52 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +插入或更新食谱步骤 API请求 +alibaba.ailabs.iot.business.recipestep.insertorupdate + +插入或更新食谱步骤 +*/ +type AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIRequest struct { + model.Params + // 食谱步骤开放参数 + _paramBusinessRecipeStepOpenParam *BusinessRecipeStepOpenParam +} + +// 初始化AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIRequest对象 +func NewAlibabaAilabsIotBusinessRecipestepInsertorupdateRequest() *AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIRequest{ + return &AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.iot.business.recipestep.insertorupdate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBusinessRecipeStepOpenParam Setter +// 食谱步骤开放参数 +func (r *AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIRequest) SetParamBusinessRecipeStepOpenParam(_paramBusinessRecipeStepOpenParam *BusinessRecipeStepOpenParam) error { + r._paramBusinessRecipeStepOpenParam = _paramBusinessRecipeStepOpenParam + r.Set("param_business_recipe_step_open_param", _paramBusinessRecipeStepOpenParam) + return nil +} + +// ParamBusinessRecipeStepOpenParam Getter +func (r AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIRequest) GetParamBusinessRecipeStepOpenParam() *BusinessRecipeStepOpenParam { + return r._paramBusinessRecipeStepOpenParam +} diff --git a/model/iot/AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIResponse.go b/model/iot/AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIResponse.go new file mode 100644 index 0000000000..00cb313281 --- /dev/null +++ b/model/iot/AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIResponse.go @@ -0,0 +1,33 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +插入或更新食谱步骤 API返回值 +alibaba.ailabs.iot.business.recipestep.insertorupdate + +插入或更新食谱步骤 +*/ +type AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIResponse struct { + model.CommonResponse + AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIResponseModel +} + +// 插入或更新食谱步骤 成功返回结果 +type AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_iot_business_recipestep_insertorupdate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 响应code + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 返回结果 + RetValue int64 `json:"ret_value,omitempty" xml:"ret_value,omitempty"` + // 追踪id + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` +} diff --git a/model/iot/AlibabaAilabsIotBusinessRecipestepInsertorupdateResponse.go b/model/iot/AlibabaAilabsIotBusinessRecipestepInsertorupdateResponse.go deleted file mode 100644 index 9be8e4e19f..0000000000 --- a/model/iot/AlibabaAilabsIotBusinessRecipestepInsertorupdateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -插入或更新食谱步骤 API返回值 -alibaba.ailabs.iot.business.recipestep.insertorupdate - -插入或更新食谱步骤 -*/ -type AlibabaAilabsIotBusinessRecipestepInsertorupdateAPIResponse struct { - model.CommonResponse - AlibabaAilabsIotBusinessRecipestepInsertorupdateResponse -} - -// 插入或更新食谱步骤 成功返回结果 -type AlibabaAilabsIotBusinessRecipestepInsertorupdateResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_iot_business_recipestep_insertorupdate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 响应code - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 返回结果 - RetValue int64 `json:"ret_value,omitempty" xml:"ret_value,omitempty"` - // 追踪id - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` -} diff --git a/model/iot/AlibabaRetailDevicePayUrlGetAPIRequest.go b/model/iot/AlibabaRetailDevicePayUrlGetAPIRequest.go new file mode 100644 index 0000000000..0f2520ca03 --- /dev/null +++ b/model/iot/AlibabaRetailDevicePayUrlGetAPIRequest.go @@ -0,0 +1,108 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机支付二维链接获取 API请求 +alibaba.retail.device.payUrl.get + +贩卖机支付二维链接获取 +*/ +type AlibabaRetailDevicePayUrlGetAPIRequest struct { + model.Params + // 外部订单id + _isvOrderId string + // 业务名称 + _bizName string + // 商品id + _itemId int64 + // 设备sn + _deviceId string + // 1表示商品box,0或者为空表示普通商品 + _itemType int64 +} + +// 初始化AlibabaRetailDevicePayUrlGetAPIRequest对象 +func NewAlibabaRetailDevicePayUrlGetRequest() *AlibabaRetailDevicePayUrlGetAPIRequest{ + return &AlibabaRetailDevicePayUrlGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailDevicePayUrlGetAPIRequest) GetApiMethodName() string { + return "alibaba.retail.device.payUrl.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailDevicePayUrlGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IsvOrderId Setter +// 外部订单id +func (r *AlibabaRetailDevicePayUrlGetAPIRequest) SetIsvOrderId(_isvOrderId string) error { + r._isvOrderId = _isvOrderId + r.Set("isv_order_id", _isvOrderId) + return nil +} + +// IsvOrderId Getter +func (r AlibabaRetailDevicePayUrlGetAPIRequest) GetIsvOrderId() string { + return r._isvOrderId +} +// BizName Setter +// 业务名称 +func (r *AlibabaRetailDevicePayUrlGetAPIRequest) SetBizName(_bizName string) error { + r._bizName = _bizName + r.Set("biz_name", _bizName) + return nil +} + +// BizName Getter +func (r AlibabaRetailDevicePayUrlGetAPIRequest) GetBizName() string { + return r._bizName +} +// ItemId Setter +// 商品id +func (r *AlibabaRetailDevicePayUrlGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaRetailDevicePayUrlGetAPIRequest) GetItemId() int64 { + return r._itemId +} +// DeviceId Setter +// 设备sn +func (r *AlibabaRetailDevicePayUrlGetAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r AlibabaRetailDevicePayUrlGetAPIRequest) GetDeviceId() string { + return r._deviceId +} +// ItemType Setter +// 1表示商品box,0或者为空表示普通商品 +func (r *AlibabaRetailDevicePayUrlGetAPIRequest) SetItemType(_itemType int64) error { + r._itemType = _itemType + r.Set("item_type", _itemType) + return nil +} + +// ItemType Getter +func (r AlibabaRetailDevicePayUrlGetAPIRequest) GetItemType() int64 { + return r._itemType +} diff --git a/model/iot/AlibabaRetailDevicePayUrlGetAPIResponse.go b/model/iot/AlibabaRetailDevicePayUrlGetAPIResponse.go new file mode 100644 index 0000000000..5b3f9cec25 --- /dev/null +++ b/model/iot/AlibabaRetailDevicePayUrlGetAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机支付二维链接获取 API返回值 +alibaba.retail.device.payUrl.get + +贩卖机支付二维链接获取 +*/ +type AlibabaRetailDevicePayUrlGetAPIResponse struct { + model.CommonResponse + AlibabaRetailDevicePayUrlGetAPIResponseModel +} + +// 贩卖机支付二维链接获取 成功返回结果 +type AlibabaRetailDevicePayUrlGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_device_payUrl_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaRetailDevicePayUrlGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/AlibabaRetailDevicePayUrlGetResponse.go b/model/iot/AlibabaRetailDevicePayUrlGetResponse.go deleted file mode 100644 index 23d3e9661c..0000000000 --- a/model/iot/AlibabaRetailDevicePayUrlGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -贩卖机支付二维链接获取 API返回值 -alibaba.retail.device.payUrl.get - -贩卖机支付二维链接获取 -*/ -type AlibabaRetailDevicePayUrlGetAPIResponse struct { - model.CommonResponse - AlibabaRetailDevicePayUrlGetResponse -} - -// 贩卖机支付二维链接获取 成功返回结果 -type AlibabaRetailDevicePayUrlGetResponse struct { - XMLName xml.Name `xml:"alibaba_retail_device_payUrl_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaRetailDevicePayUrlGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIRequest.go b/model/iot/TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIRequest.go new file mode 100644 index 0000000000..00ef0788f7 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIRequest.go @@ -0,0 +1,94 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零配方案上报设备 API请求 +taobao.ailab.aicloud.smarthome.top.genielink.reportdevice + +零配方案中设备联网成功之后上报设备 +*/ +type TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIRequest struct { + model.Params + // 供应商id + _vendorId int64 + // 设备id + _deviceId string + // 设备状态,online上线,offline下线 + _status string + // 保留字段json字符串 + _extensions string +} + +// 初始化TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIRequest对象 +func NewTaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceRequest() *TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIRequest{ + return &TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.smarthome.top.genielink.reportdevice" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VendorId Setter +// 供应商id +func (r *TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIRequest) SetVendorId(_vendorId int64) error { + r._vendorId = _vendorId + r.Set("vendor_id", _vendorId) + return nil +} + +// VendorId Getter +func (r TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIRequest) GetVendorId() int64 { + return r._vendorId +} +// DeviceId Setter +// 设备id +func (r *TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIRequest) GetDeviceId() string { + return r._deviceId +} +// Status Setter +// 设备状态,online上线,offline下线 +func (r *TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIRequest) GetStatus() string { + return r._status +} +// Extensions Setter +// 保留字段json字符串 +func (r *TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIRequest) SetExtensions(_extensions string) error { + r._extensions = _extensions + r.Set("extensions", _extensions) + return nil +} + +// Extensions Getter +func (r TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIRequest) GetExtensions() string { + return r._extensions +} diff --git a/model/iot/TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIResponse.go b/model/iot/TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIResponse.go new file mode 100644 index 0000000000..d0d85d381d --- /dev/null +++ b/model/iot/TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零配方案上报设备 API返回值 +taobao.ailab.aicloud.smarthome.top.genielink.reportdevice + +零配方案中设备联网成功之后上报设备 +*/ +type TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIResponseModel +} + +// 零配方案上报设备 成功返回结果 +type TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_smarthome_top_genielink_reportdevice_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceResponse.go b/model/iot/TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceResponse.go deleted file mode 100644 index a0f141cdd9..0000000000 --- a/model/iot/TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零配方案上报设备 API返回值 -taobao.ailab.aicloud.smarthome.top.genielink.reportdevice - -零配方案中设备联网成功之后上报设备 -*/ -type TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceResponse -} - -// 零配方案上报设备 成功返回结果 -type TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_smarthome_top_genielink_reportdevice_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoAilabAicloudSmarthomeTopGenielinkReportdeviceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopAuthGetAPIRequest.go b/model/iot/TaobaoAilabAicloudTopAuthGetAPIRequest.go new file mode 100644 index 0000000000..4978bf8d14 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopAuthGetAPIRequest.go @@ -0,0 +1,94 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +登陆 API请求 +taobao.ailab.aicloud.top.auth.get + +登陆 +*/ +type TaobaoAilabAicloudTopAuthGetAPIRequest struct { + model.Params + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 账户体系隔离 + _schema string + // app类型 + _appType string +} + +// 初始化TaobaoAilabAicloudTopAuthGetAPIRequest对象 +func NewTaobaoAilabAicloudTopAuthGetRequest() *TaobaoAilabAicloudTopAuthGetAPIRequest{ + return &TaobaoAilabAicloudTopAuthGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopAuthGetAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.auth.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopAuthGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *TaobaoAilabAicloudTopAuthGetAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopAuthGetAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopAuthGetAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopAuthGetAPIRequest) GetUtdId() string { + return r._utdId +} +// Schema Setter +// 账户体系隔离 +func (r *TaobaoAilabAicloudTopAuthGetAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopAuthGetAPIRequest) GetSchema() string { + return r._schema +} +// AppType Setter +// app类型 +func (r *TaobaoAilabAicloudTopAuthGetAPIRequest) SetAppType(_appType string) error { + r._appType = _appType + r.Set("app_type", _appType) + return nil +} + +// AppType Getter +func (r TaobaoAilabAicloudTopAuthGetAPIRequest) GetAppType() string { + return r._appType +} diff --git a/model/iot/TaobaoAilabAicloudTopAuthGetAPIResponse.go b/model/iot/TaobaoAilabAicloudTopAuthGetAPIResponse.go new file mode 100644 index 0000000000..f9f31edcc6 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopAuthGetAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +登陆 API返回值 +taobao.ailab.aicloud.top.auth.get + +登陆 +*/ +type TaobaoAilabAicloudTopAuthGetAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopAuthGetAPIResponseModel +} + +// 登陆 成功返回结果 +type TaobaoAilabAicloudTopAuthGetAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_auth_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopAuthGetResponse.go b/model/iot/TaobaoAilabAicloudTopAuthGetResponse.go deleted file mode 100644 index d0197a2366..0000000000 --- a/model/iot/TaobaoAilabAicloudTopAuthGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -登陆 API返回值 -taobao.ailab.aicloud.top.auth.get - -登陆 -*/ -type TaobaoAilabAicloudTopAuthGetAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopAuthGetResponse -} - -// 登陆 成功返回结果 -type TaobaoAilabAicloudTopAuthGetResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_auth_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopAuthLogoutAPIRequest.go b/model/iot/TaobaoAilabAicloudTopAuthLogoutAPIRequest.go new file mode 100644 index 0000000000..2cb1a20863 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopAuthLogoutAPIRequest.go @@ -0,0 +1,80 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +登出 API请求 +taobao.ailab.aicloud.top.auth.logout + +登出 +*/ +type TaobaoAilabAicloudTopAuthLogoutAPIRequest struct { + model.Params + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 账户体系隔离,建议传入设备uuid + _schema string +} + +// 初始化TaobaoAilabAicloudTopAuthLogoutAPIRequest对象 +func NewTaobaoAilabAicloudTopAuthLogoutRequest() *TaobaoAilabAicloudTopAuthLogoutAPIRequest{ + return &TaobaoAilabAicloudTopAuthLogoutAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopAuthLogoutAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.auth.logout" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopAuthLogoutAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *TaobaoAilabAicloudTopAuthLogoutAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopAuthLogoutAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopAuthLogoutAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopAuthLogoutAPIRequest) GetUtdId() string { + return r._utdId +} +// Schema Setter +// 账户体系隔离,建议传入设备uuid +func (r *TaobaoAilabAicloudTopAuthLogoutAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopAuthLogoutAPIRequest) GetSchema() string { + return r._schema +} diff --git a/model/iot/TaobaoAilabAicloudTopAuthLogoutAPIResponse.go b/model/iot/TaobaoAilabAicloudTopAuthLogoutAPIResponse.go new file mode 100644 index 0000000000..99305da665 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopAuthLogoutAPIResponse.go @@ -0,0 +1,29 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +登出 API返回值 +taobao.ailab.aicloud.top.auth.logout + +登出 +*/ +type TaobaoAilabAicloudTopAuthLogoutAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopAuthLogoutAPIResponseModel +} + +// 登出 成功返回结果 +type TaobaoAilabAicloudTopAuthLogoutAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_auth_logout_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // msgInfo错误码信息,成功返回null + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopAuthLogoutResponse.go b/model/iot/TaobaoAilabAicloudTopAuthLogoutResponse.go deleted file mode 100644 index 39d0a1d7b8..0000000000 --- a/model/iot/TaobaoAilabAicloudTopAuthLogoutResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -登出 API返回值 -taobao.ailab.aicloud.top.auth.logout - -登出 -*/ -type TaobaoAilabAicloudTopAuthLogoutAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopAuthLogoutResponse -} - -// 登出 成功返回结果 -type TaobaoAilabAicloudTopAuthLogoutResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_auth_logout_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // msgInfo错误码信息,成功返回null - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceAuthcodeGetAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceAuthcodeGetAPIRequest.go new file mode 100644 index 0000000000..289eb1351c --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceAuthcodeGetAPIRequest.go @@ -0,0 +1,94 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备授权码 API请求 +taobao.ailab.aicloud.top.device.authcode.get + +获取设备授权码 +*/ +type TaobaoAilabAicloudTopDeviceAuthcodeGetAPIRequest struct { + model.Params + // 账户体系隔离,即硬件接入平台中取得的schema key。 + _schema string + // 用户ID,此处传入第三方账户体系的用户id,由开发者或厂商自行定义,每一schema key下唯一即可 + _userId string + // (废弃) 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 扩展信息,用于存放APP类型等 + _ext string +} + +// 初始化TaobaoAilabAicloudTopDeviceAuthcodeGetAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceAuthcodeGetRequest() *TaobaoAilabAicloudTopDeviceAuthcodeGetAPIRequest{ + return &TaobaoAilabAicloudTopDeviceAuthcodeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceAuthcodeGetAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.authcode.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceAuthcodeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// 账户体系隔离,即硬件接入平台中取得的schema key。 +func (r *TaobaoAilabAicloudTopDeviceAuthcodeGetAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopDeviceAuthcodeGetAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id,由开发者或厂商自行定义,每一schema key下唯一即可 +func (r *TaobaoAilabAicloudTopDeviceAuthcodeGetAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopDeviceAuthcodeGetAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// (废弃) 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopDeviceAuthcodeGetAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopDeviceAuthcodeGetAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopDeviceAuthcodeGetAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopDeviceAuthcodeGetAPIRequest) GetExt() string { + return r._ext +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceAuthcodeGetAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceAuthcodeGetAPIResponse.go new file mode 100644 index 0000000000..200037d2c3 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceAuthcodeGetAPIResponse.go @@ -0,0 +1,31 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备授权码 API返回值 +taobao.ailab.aicloud.top.device.authcode.get + +获取设备授权码 +*/ +type TaobaoAilabAicloudTopDeviceAuthcodeGetAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceAuthcodeGetAPIResponseModel +} + +// 获取设备授权码 成功返回结果 +type TaobaoAilabAicloudTopDeviceAuthcodeGetAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_authcode_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 设备授权码,后续流程中所述的auth code + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // msgInfo错误码信息,成功返回null + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceAuthcodeGetResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceAuthcodeGetResponse.go deleted file mode 100644 index 3f86bffda7..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceAuthcodeGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取设备授权码 API返回值 -taobao.ailab.aicloud.top.device.authcode.get - -获取设备授权码 -*/ -type TaobaoAilabAicloudTopDeviceAuthcodeGetAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceAuthcodeGetResponse -} - -// 获取设备授权码 成功返回结果 -type TaobaoAilabAicloudTopDeviceAuthcodeGetResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_authcode_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 设备授权码,后续流程中所述的auth code - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // msgInfo错误码信息,成功返回null - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest.go new file mode 100644 index 0000000000..96a6388c49 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest.go @@ -0,0 +1,108 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备授权码验证结果 API请求 +taobao.ailab.aicloud.top.device.authresult.get + +获取设备授权码验证结果 +*/ +type TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest struct { + model.Params + // 账户体系隔离 + _schema string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 扩展信息,用于存放APP类型等 + _ext string + // authCodes信息 + _authCodes []string +} + +// 初始化TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceAuthresultGetRequest() *TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest{ + return &TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.authresult.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// 账户体系隔离 +func (r *TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest) GetExt() string { + return r._ext +} +// AuthCodes Setter +// authCodes信息 +func (r *TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest) SetAuthCodes(_authCodes []string) error { + r._authCodes = _authCodes + r.Set("auth_codes", _authCodes) + return nil +} + +// AuthCodes Getter +func (r TaobaoAilabAicloudTopDeviceAuthresultGetAPIRequest) GetAuthCodes() []string { + return r._authCodes +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceAuthresultGetAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceAuthresultGetAPIResponse.go new file mode 100644 index 0000000000..f0b94045bb --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceAuthresultGetAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备授权码验证结果 API返回值 +taobao.ailab.aicloud.top.device.authresult.get + +获取设备授权码验证结果 +*/ +type TaobaoAilabAicloudTopDeviceAuthresultGetAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceAuthresultGetAPIResponseModel +} + +// 获取设备授权码验证结果 成功返回结果 +type TaobaoAilabAicloudTopDeviceAuthresultGetAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_authresult_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceAuthresultGetResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceAuthresultGetResponse.go deleted file mode 100644 index 99f490de60..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceAuthresultGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取设备授权码验证结果 API返回值 -taobao.ailab.aicloud.top.device.authresult.get - -获取设备授权码验证结果 -*/ -type TaobaoAilabAicloudTopDeviceAuthresultGetAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceAuthresultGetResponse -} - -// 获取设备授权码验证结果 成功返回结果 -type TaobaoAilabAicloudTopDeviceAuthresultGetResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_authresult_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlChildlockAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceControlChildlockAPIRequest.go new file mode 100644 index 0000000000..5f01e12532 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceControlChildlockAPIRequest.go @@ -0,0 +1,80 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设备儿童锁 API请求 +taobao.ailab.aicloud.top.device.control.childlock + +设备儿童锁 +*/ +type TaobaoAilabAicloudTopDeviceControlChildlockAPIRequest struct { + model.Params + // 用户信息 + _param0 *OpenBaseInfo + // 设备id + _param1 string + // 是否打开 + _param2 bool +} + +// 初始化TaobaoAilabAicloudTopDeviceControlChildlockAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceControlChildlockRequest() *TaobaoAilabAicloudTopDeviceControlChildlockAPIRequest{ + return &TaobaoAilabAicloudTopDeviceControlChildlockAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceControlChildlockAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.control.childlock" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceControlChildlockAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 用户信息 +func (r *TaobaoAilabAicloudTopDeviceControlChildlockAPIRequest) SetParam0(_param0 *OpenBaseInfo) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoAilabAicloudTopDeviceControlChildlockAPIRequest) GetParam0() *OpenBaseInfo { + return r._param0 +} +// Param1 Setter +// 设备id +func (r *TaobaoAilabAicloudTopDeviceControlChildlockAPIRequest) SetParam1(_param1 string) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r TaobaoAilabAicloudTopDeviceControlChildlockAPIRequest) GetParam1() string { + return r._param1 +} +// Param2 Setter +// 是否打开 +func (r *TaobaoAilabAicloudTopDeviceControlChildlockAPIRequest) SetParam2(_param2 bool) error { + r._param2 = _param2 + r.Set("param2", _param2) + return nil +} + +// Param2 Getter +func (r TaobaoAilabAicloudTopDeviceControlChildlockAPIRequest) GetParam2() bool { + return r._param2 +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlChildlockAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceControlChildlockAPIResponse.go new file mode 100644 index 0000000000..ab086aba46 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceControlChildlockAPIResponse.go @@ -0,0 +1,33 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设备儿童锁 API返回值 +taobao.ailab.aicloud.top.device.control.childlock + +设备儿童锁 +*/ +type TaobaoAilabAicloudTopDeviceControlChildlockAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceControlChildlockAPIResponseModel +} + +// 设备儿童锁 成功返回结果 +type TaobaoAilabAicloudTopDeviceControlChildlockAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_control_childlock_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 业务请求是否成功 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 网络请求是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlChildlockResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceControlChildlockResponse.go deleted file mode 100644 index ae45d87270..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceControlChildlockResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设备儿童锁 API返回值 -taobao.ailab.aicloud.top.device.control.childlock - -设备儿童锁 -*/ -type TaobaoAilabAicloudTopDeviceControlChildlockAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceControlChildlockResponse -} - -// 设备儿童锁 成功返回结果 -type TaobaoAilabAicloudTopDeviceControlChildlockResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_control_childlock_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 业务请求是否成功 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 网络请求是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlCustomAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceControlCustomAPIRequest.go new file mode 100644 index 0000000000..4595dc099d --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceControlCustomAPIRequest.go @@ -0,0 +1,80 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设备控制自定义扩展接口 API请求 +taobao.ailab.aicloud.top.device.control.custom + +设备控制自定义扩展接口 +*/ +type TaobaoAilabAicloudTopDeviceControlCustomAPIRequest struct { + model.Params + // 用户信息 + _param0 *OpenBaseInfo + // 设备id + _param1 string + // 参数key-value列表 + _param2 []string +} + +// 初始化TaobaoAilabAicloudTopDeviceControlCustomAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceControlCustomRequest() *TaobaoAilabAicloudTopDeviceControlCustomAPIRequest{ + return &TaobaoAilabAicloudTopDeviceControlCustomAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceControlCustomAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.control.custom" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceControlCustomAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 用户信息 +func (r *TaobaoAilabAicloudTopDeviceControlCustomAPIRequest) SetParam0(_param0 *OpenBaseInfo) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoAilabAicloudTopDeviceControlCustomAPIRequest) GetParam0() *OpenBaseInfo { + return r._param0 +} +// Param1 Setter +// 设备id +func (r *TaobaoAilabAicloudTopDeviceControlCustomAPIRequest) SetParam1(_param1 string) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r TaobaoAilabAicloudTopDeviceControlCustomAPIRequest) GetParam1() string { + return r._param1 +} +// Param2 Setter +// 参数key-value列表 +func (r *TaobaoAilabAicloudTopDeviceControlCustomAPIRequest) SetParam2(_param2 []string) error { + r._param2 = _param2 + r.Set("param2", _param2) + return nil +} + +// Param2 Getter +func (r TaobaoAilabAicloudTopDeviceControlCustomAPIRequest) GetParam2() []string { + return r._param2 +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlCustomAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceControlCustomAPIResponse.go new file mode 100644 index 0000000000..8311ec0f28 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceControlCustomAPIResponse.go @@ -0,0 +1,33 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设备控制自定义扩展接口 API返回值 +taobao.ailab.aicloud.top.device.control.custom + +设备控制自定义扩展接口 +*/ +type TaobaoAilabAicloudTopDeviceControlCustomAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceControlCustomAPIResponseModel +} + +// 设备控制自定义扩展接口 成功返回结果 +type TaobaoAilabAicloudTopDeviceControlCustomAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_control_custom_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 业务请求是否成功 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 网络请求是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlCustomResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceControlCustomResponse.go deleted file mode 100644 index cd11781f28..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceControlCustomResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设备控制自定义扩展接口 API返回值 -taobao.ailab.aicloud.top.device.control.custom - -设备控制自定义扩展接口 -*/ -type TaobaoAilabAicloudTopDeviceControlCustomAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceControlCustomResponse -} - -// 设备控制自定义扩展接口 成功返回结果 -type TaobaoAilabAicloudTopDeviceControlCustomResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_control_custom_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 业务请求是否成功 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 网络请求是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlHibernationAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceControlHibernationAPIRequest.go new file mode 100644 index 0000000000..bce6bb5601 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceControlHibernationAPIRequest.go @@ -0,0 +1,80 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定时休眠 API请求 +taobao.ailab.aicloud.top.device.control.hibernation + +定时休眠 +*/ +type TaobaoAilabAicloudTopDeviceControlHibernationAPIRequest struct { + model.Params + // 用户信息 + _param0 *OpenBaseInfo + // 设备id + _param1 string + // N秒后休眠 + _param2 string +} + +// 初始化TaobaoAilabAicloudTopDeviceControlHibernationAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceControlHibernationRequest() *TaobaoAilabAicloudTopDeviceControlHibernationAPIRequest{ + return &TaobaoAilabAicloudTopDeviceControlHibernationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceControlHibernationAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.control.hibernation" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceControlHibernationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 用户信息 +func (r *TaobaoAilabAicloudTopDeviceControlHibernationAPIRequest) SetParam0(_param0 *OpenBaseInfo) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoAilabAicloudTopDeviceControlHibernationAPIRequest) GetParam0() *OpenBaseInfo { + return r._param0 +} +// Param1 Setter +// 设备id +func (r *TaobaoAilabAicloudTopDeviceControlHibernationAPIRequest) SetParam1(_param1 string) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r TaobaoAilabAicloudTopDeviceControlHibernationAPIRequest) GetParam1() string { + return r._param1 +} +// Param2 Setter +// N秒后休眠 +func (r *TaobaoAilabAicloudTopDeviceControlHibernationAPIRequest) SetParam2(_param2 string) error { + r._param2 = _param2 + r.Set("param2", _param2) + return nil +} + +// Param2 Getter +func (r TaobaoAilabAicloudTopDeviceControlHibernationAPIRequest) GetParam2() string { + return r._param2 +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlHibernationAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceControlHibernationAPIResponse.go new file mode 100644 index 0000000000..4680dbcc14 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceControlHibernationAPIResponse.go @@ -0,0 +1,33 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定时休眠 API返回值 +taobao.ailab.aicloud.top.device.control.hibernation + +定时休眠 +*/ +type TaobaoAilabAicloudTopDeviceControlHibernationAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceControlHibernationAPIResponseModel +} + +// 定时休眠 成功返回结果 +type TaobaoAilabAicloudTopDeviceControlHibernationAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_control_hibernation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 业务请求是否成功 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 网络请求是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlHibernationResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceControlHibernationResponse.go deleted file mode 100644 index 64b466f021..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceControlHibernationResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定时休眠 API返回值 -taobao.ailab.aicloud.top.device.control.hibernation - -定时休眠 -*/ -type TaobaoAilabAicloudTopDeviceControlHibernationAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceControlHibernationResponse -} - -// 定时休眠 成功返回结果 -type TaobaoAilabAicloudTopDeviceControlHibernationResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_control_hibernation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 业务请求是否成功 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 网络请求是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlLampAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceControlLampAPIRequest.go new file mode 100644 index 0000000000..682652c30e --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceControlLampAPIRequest.go @@ -0,0 +1,94 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +台灯控制 API请求 +taobao.ailab.aicloud.top.device.control.lamp + +台灯控制 +*/ +type TaobaoAilabAicloudTopDeviceControlLampAPIRequest struct { + model.Params + // 用户信息 + _param0 *OpenBaseInfo + // 设备id + _param1 string + // 是否打开 + _param2 bool + // 目标名称 + _param3 string +} + +// 初始化TaobaoAilabAicloudTopDeviceControlLampAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceControlLampRequest() *TaobaoAilabAicloudTopDeviceControlLampAPIRequest{ + return &TaobaoAilabAicloudTopDeviceControlLampAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceControlLampAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.control.lamp" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceControlLampAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 用户信息 +func (r *TaobaoAilabAicloudTopDeviceControlLampAPIRequest) SetParam0(_param0 *OpenBaseInfo) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoAilabAicloudTopDeviceControlLampAPIRequest) GetParam0() *OpenBaseInfo { + return r._param0 +} +// Param1 Setter +// 设备id +func (r *TaobaoAilabAicloudTopDeviceControlLampAPIRequest) SetParam1(_param1 string) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r TaobaoAilabAicloudTopDeviceControlLampAPIRequest) GetParam1() string { + return r._param1 +} +// Param2 Setter +// 是否打开 +func (r *TaobaoAilabAicloudTopDeviceControlLampAPIRequest) SetParam2(_param2 bool) error { + r._param2 = _param2 + r.Set("param2", _param2) + return nil +} + +// Param2 Getter +func (r TaobaoAilabAicloudTopDeviceControlLampAPIRequest) GetParam2() bool { + return r._param2 +} +// Param3 Setter +// 目标名称 +func (r *TaobaoAilabAicloudTopDeviceControlLampAPIRequest) SetParam3(_param3 string) error { + r._param3 = _param3 + r.Set("param3", _param3) + return nil +} + +// Param3 Getter +func (r TaobaoAilabAicloudTopDeviceControlLampAPIRequest) GetParam3() string { + return r._param3 +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlLampAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceControlLampAPIResponse.go new file mode 100644 index 0000000000..2d669483b9 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceControlLampAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +台灯控制 API返回值 +taobao.ailab.aicloud.top.device.control.lamp + +台灯控制 +*/ +type TaobaoAilabAicloudTopDeviceControlLampAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceControlLampAPIResponseModel +} + +// 台灯控制 成功返回结果 +type TaobaoAilabAicloudTopDeviceControlLampAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_control_lamp_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlLampResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceControlLampResponse.go deleted file mode 100644 index 4f9a87a788..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceControlLampResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -台灯控制 API返回值 -taobao.ailab.aicloud.top.device.control.lamp - -台灯控制 -*/ -type TaobaoAilabAicloudTopDeviceControlLampAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceControlLampResponse -} - -// 台灯控制 成功返回结果 -type TaobaoAilabAicloudTopDeviceControlLampResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_control_lamp_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIRequest.go new file mode 100644 index 0000000000..80776256d5 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIRequest.go @@ -0,0 +1,80 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设备播放暂停 API请求 +taobao.ailab.aicloud.top.device.control.pauseandresume + +设备播放暂停 +*/ +type TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIRequest struct { + model.Params + // 用户信息 + _param0 *OpenBaseInfo + // 设备id + _param1 string + // 是暂停还是继续 + _param2 bool +} + +// 初始化TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceControlPauseandresumeRequest() *TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIRequest{ + return &TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.control.pauseandresume" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 用户信息 +func (r *TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIRequest) SetParam0(_param0 *OpenBaseInfo) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIRequest) GetParam0() *OpenBaseInfo { + return r._param0 +} +// Param1 Setter +// 设备id +func (r *TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIRequest) SetParam1(_param1 string) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIRequest) GetParam1() string { + return r._param1 +} +// Param2 Setter +// 是暂停还是继续 +func (r *TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIRequest) SetParam2(_param2 bool) error { + r._param2 = _param2 + r.Set("param2", _param2) + return nil +} + +// Param2 Getter +func (r TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIRequest) GetParam2() bool { + return r._param2 +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIResponse.go new file mode 100644 index 0000000000..9ab1f503b8 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设备播放暂停 API返回值 +taobao.ailab.aicloud.top.device.control.pauseandresume + +设备播放暂停 +*/ +type TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIResponseModel +} + +// 设备播放暂停 成功返回结果 +type TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_control_pauseandresume_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlPauseandresumeResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceControlPauseandresumeResponse.go deleted file mode 100644 index 4cf02b56e8..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceControlPauseandresumeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设备播放暂停 API返回值 -taobao.ailab.aicloud.top.device.control.pauseandresume - -设备播放暂停 -*/ -type TaobaoAilabAicloudTopDeviceControlPauseandresumeAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceControlPauseandresumeResponse -} - -// 设备播放暂停 成功返回结果 -type TaobaoAilabAicloudTopDeviceControlPauseandresumeResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_control_pauseandresume_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest.go new file mode 100644 index 0000000000..348f3a4928 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest.go @@ -0,0 +1,108 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过id播放歌曲 API请求 +taobao.ailab.aicloud.top.device.control.playbyid + +通过id播放歌曲 +*/ +type TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest struct { + model.Params + // 用户信息 + _param0 *OpenBaseInfo + // 设备id + _param1 string + // 音频id + _param2 string + // 音频来源 + _param3 string + // 音频类型,如果没有音频类型默认填children_song + _param4 string +} + +// 初始化TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceControlPlaybyidRequest() *TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest{ + return &TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.control.playbyid" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 用户信息 +func (r *TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest) SetParam0(_param0 *OpenBaseInfo) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest) GetParam0() *OpenBaseInfo { + return r._param0 +} +// Param1 Setter +// 设备id +func (r *TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest) SetParam1(_param1 string) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest) GetParam1() string { + return r._param1 +} +// Param2 Setter +// 音频id +func (r *TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest) SetParam2(_param2 string) error { + r._param2 = _param2 + r.Set("param2", _param2) + return nil +} + +// Param2 Getter +func (r TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest) GetParam2() string { + return r._param2 +} +// Param3 Setter +// 音频来源 +func (r *TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest) SetParam3(_param3 string) error { + r._param3 = _param3 + r.Set("param3", _param3) + return nil +} + +// Param3 Getter +func (r TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest) GetParam3() string { + return r._param3 +} +// Param4 Setter +// 音频类型,如果没有音频类型默认填children_song +func (r *TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest) SetParam4(_param4 string) error { + r._param4 = _param4 + r.Set("param4", _param4) + return nil +} + +// Param4 Getter +func (r TaobaoAilabAicloudTopDeviceControlPlaybyidAPIRequest) GetParam4() string { + return r._param4 +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlPlaybyidAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceControlPlaybyidAPIResponse.go new file mode 100644 index 0000000000..fd7b423396 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceControlPlaybyidAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过id播放歌曲 API返回值 +taobao.ailab.aicloud.top.device.control.playbyid + +通过id播放歌曲 +*/ +type TaobaoAilabAicloudTopDeviceControlPlaybyidAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceControlPlaybyidAPIResponseModel +} + +// 通过id播放歌曲 成功返回结果 +type TaobaoAilabAicloudTopDeviceControlPlaybyidAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_control_playbyid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlPlaybyidResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceControlPlaybyidResponse.go deleted file mode 100644 index deaa40b9a5..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceControlPlaybyidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过id播放歌曲 API返回值 -taobao.ailab.aicloud.top.device.control.playbyid - -通过id播放歌曲 -*/ -type TaobaoAilabAicloudTopDeviceControlPlaybyidAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceControlPlaybyidResponse -} - -// 通过id播放歌曲 成功返回结果 -type TaobaoAilabAicloudTopDeviceControlPlaybyidResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_control_playbyid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlPlayurlAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceControlPlayurlAPIRequest.go new file mode 100644 index 0000000000..030c6ba94d --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceControlPlayurlAPIRequest.go @@ -0,0 +1,80 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +点播url API请求 +taobao.ailab.aicloud.top.device.control.playurl + +点播url +*/ +type TaobaoAilabAicloudTopDeviceControlPlayurlAPIRequest struct { + model.Params + // 用户信息 + _param0 *OpenBaseInfo + // 设备id + _param1 string + // url + _param2 string +} + +// 初始化TaobaoAilabAicloudTopDeviceControlPlayurlAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceControlPlayurlRequest() *TaobaoAilabAicloudTopDeviceControlPlayurlAPIRequest{ + return &TaobaoAilabAicloudTopDeviceControlPlayurlAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceControlPlayurlAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.control.playurl" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceControlPlayurlAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 用户信息 +func (r *TaobaoAilabAicloudTopDeviceControlPlayurlAPIRequest) SetParam0(_param0 *OpenBaseInfo) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoAilabAicloudTopDeviceControlPlayurlAPIRequest) GetParam0() *OpenBaseInfo { + return r._param0 +} +// Param1 Setter +// 设备id +func (r *TaobaoAilabAicloudTopDeviceControlPlayurlAPIRequest) SetParam1(_param1 string) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r TaobaoAilabAicloudTopDeviceControlPlayurlAPIRequest) GetParam1() string { + return r._param1 +} +// Param2 Setter +// url +func (r *TaobaoAilabAicloudTopDeviceControlPlayurlAPIRequest) SetParam2(_param2 string) error { + r._param2 = _param2 + r.Set("param2", _param2) + return nil +} + +// Param2 Getter +func (r TaobaoAilabAicloudTopDeviceControlPlayurlAPIRequest) GetParam2() string { + return r._param2 +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlPlayurlAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceControlPlayurlAPIResponse.go new file mode 100644 index 0000000000..fe8ce307f4 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceControlPlayurlAPIResponse.go @@ -0,0 +1,33 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +点播url API返回值 +taobao.ailab.aicloud.top.device.control.playurl + +点播url +*/ +type TaobaoAilabAicloudTopDeviceControlPlayurlAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceControlPlayurlAPIResponseModel +} + +// 点播url 成功返回结果 +type TaobaoAilabAicloudTopDeviceControlPlayurlAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_control_playurl_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 业务请求是否成功 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 网络请求是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlPlayurlResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceControlPlayurlResponse.go deleted file mode 100644 index a8f73821d9..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceControlPlayurlResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -点播url API返回值 -taobao.ailab.aicloud.top.device.control.playurl - -点播url -*/ -type TaobaoAilabAicloudTopDeviceControlPlayurlAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceControlPlayurlResponse -} - -// 点播url 成功返回结果 -type TaobaoAilabAicloudTopDeviceControlPlayurlResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_control_playurl_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 业务请求是否成功 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 网络请求是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlVolumeAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceControlVolumeAPIRequest.go new file mode 100644 index 0000000000..f0cda3913e --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceControlVolumeAPIRequest.go @@ -0,0 +1,80 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设备音量 API请求 +taobao.ailab.aicloud.top.device.control.volume + +设备音量 +*/ +type TaobaoAilabAicloudTopDeviceControlVolumeAPIRequest struct { + model.Params + // 用户信息 + _param0 *OpenBaseInfo + // 设备id + _param1 string + // 音量0-100 + _param2 int64 +} + +// 初始化TaobaoAilabAicloudTopDeviceControlVolumeAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceControlVolumeRequest() *TaobaoAilabAicloudTopDeviceControlVolumeAPIRequest{ + return &TaobaoAilabAicloudTopDeviceControlVolumeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceControlVolumeAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.control.volume" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceControlVolumeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 用户信息 +func (r *TaobaoAilabAicloudTopDeviceControlVolumeAPIRequest) SetParam0(_param0 *OpenBaseInfo) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoAilabAicloudTopDeviceControlVolumeAPIRequest) GetParam0() *OpenBaseInfo { + return r._param0 +} +// Param1 Setter +// 设备id +func (r *TaobaoAilabAicloudTopDeviceControlVolumeAPIRequest) SetParam1(_param1 string) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r TaobaoAilabAicloudTopDeviceControlVolumeAPIRequest) GetParam1() string { + return r._param1 +} +// Param2 Setter +// 音量0-100 +func (r *TaobaoAilabAicloudTopDeviceControlVolumeAPIRequest) SetParam2(_param2 int64) error { + r._param2 = _param2 + r.Set("param2", _param2) + return nil +} + +// Param2 Getter +func (r TaobaoAilabAicloudTopDeviceControlVolumeAPIRequest) GetParam2() int64 { + return r._param2 +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlVolumeAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceControlVolumeAPIResponse.go new file mode 100644 index 0000000000..5451d47933 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceControlVolumeAPIResponse.go @@ -0,0 +1,33 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设备音量 API返回值 +taobao.ailab.aicloud.top.device.control.volume + +设备音量 +*/ +type TaobaoAilabAicloudTopDeviceControlVolumeAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceControlVolumeAPIResponseModel +} + +// 设备音量 成功返回结果 +type TaobaoAilabAicloudTopDeviceControlVolumeAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_control_volume_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 业务请求是否成功 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 网络请求是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceControlVolumeResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceControlVolumeResponse.go deleted file mode 100644 index 6605909dad..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceControlVolumeResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设备音量 API返回值 -taobao.ailab.aicloud.top.device.control.volume - -设备音量 -*/ -type TaobaoAilabAicloudTopDeviceControlVolumeAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceControlVolumeResponse -} - -// 设备音量 成功返回结果 -type TaobaoAilabAicloudTopDeviceControlVolumeResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_control_volume_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 业务请求是否成功 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 网络请求是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceDetailinfoGetAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceDetailinfoGetAPIRequest.go new file mode 100644 index 0000000000..dd2704ebf2 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceDetailinfoGetAPIRequest.go @@ -0,0 +1,94 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备详细信息 API请求 +taobao.ailab.aicloud.top.device.detailinfo.get + +获取设备详细信息 +*/ +type TaobaoAilabAicloudTopDeviceDetailinfoGetAPIRequest struct { + model.Params + // 三方用户id或淘宝openId + _originUserId string + // 账号秘钥 + _schemaKey string + // 三方传extUser,淘宝传openTaoBaoUser + _userType string + // 设备id + _deviceId string +} + +// 初始化TaobaoAilabAicloudTopDeviceDetailinfoGetAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceDetailinfoGetRequest() *TaobaoAilabAicloudTopDeviceDetailinfoGetAPIRequest{ + return &TaobaoAilabAicloudTopDeviceDetailinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceDetailinfoGetAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.detailinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceDetailinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OriginUserId Setter +// 三方用户id或淘宝openId +func (r *TaobaoAilabAicloudTopDeviceDetailinfoGetAPIRequest) SetOriginUserId(_originUserId string) error { + r._originUserId = _originUserId + r.Set("origin_user_id", _originUserId) + return nil +} + +// OriginUserId Getter +func (r TaobaoAilabAicloudTopDeviceDetailinfoGetAPIRequest) GetOriginUserId() string { + return r._originUserId +} +// SchemaKey Setter +// 账号秘钥 +func (r *TaobaoAilabAicloudTopDeviceDetailinfoGetAPIRequest) SetSchemaKey(_schemaKey string) error { + r._schemaKey = _schemaKey + r.Set("schema_key", _schemaKey) + return nil +} + +// SchemaKey Getter +func (r TaobaoAilabAicloudTopDeviceDetailinfoGetAPIRequest) GetSchemaKey() string { + return r._schemaKey +} +// UserType Setter +// 三方传extUser,淘宝传openTaoBaoUser +func (r *TaobaoAilabAicloudTopDeviceDetailinfoGetAPIRequest) SetUserType(_userType string) error { + r._userType = _userType + r.Set("user_type", _userType) + return nil +} + +// UserType Getter +func (r TaobaoAilabAicloudTopDeviceDetailinfoGetAPIRequest) GetUserType() string { + return r._userType +} +// DeviceId Setter +// 设备id +func (r *TaobaoAilabAicloudTopDeviceDetailinfoGetAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r TaobaoAilabAicloudTopDeviceDetailinfoGetAPIRequest) GetDeviceId() string { + return r._deviceId +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceDetailinfoGetAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceDetailinfoGetAPIResponse.go new file mode 100644 index 0000000000..848491f63d --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceDetailinfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备详细信息 API返回值 +taobao.ailab.aicloud.top.device.detailinfo.get + +获取设备详细信息 +*/ +type TaobaoAilabAicloudTopDeviceDetailinfoGetAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceDetailinfoGetAPIResponseModel +} + +// 获取设备详细信息 成功返回结果 +type TaobaoAilabAicloudTopDeviceDetailinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_detailinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoAilabAicloudTopDeviceDetailinfoGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceDetailinfoGetResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceDetailinfoGetResponse.go deleted file mode 100644 index c25508de48..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceDetailinfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取设备详细信息 API返回值 -taobao.ailab.aicloud.top.device.detailinfo.get - -获取设备详细信息 -*/ -type TaobaoAilabAicloudTopDeviceDetailinfoGetAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceDetailinfoGetResponse -} - -// 获取设备详细信息 成功返回结果 -type TaobaoAilabAicloudTopDeviceDetailinfoGetResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_detailinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoAilabAicloudTopDeviceDetailinfoGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceDeviceidConvertAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceDeviceidConvertAPIRequest.go new file mode 100644 index 0000000000..d686459ff9 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceDeviceidConvertAPIRequest.go @@ -0,0 +1,66 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +开放设备id转换内部设备id API请求 +taobao.ailab.aicloud.top.device.deviceid.convert + +将开放设备id转换为内部设备id +*/ +type TaobaoAilabAicloudTopDeviceDeviceidConvertAPIRequest struct { + model.Params + // 设备openId + _deviceOpenId string + // 技能id + _skillId string +} + +// 初始化TaobaoAilabAicloudTopDeviceDeviceidConvertAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceDeviceidConvertRequest() *TaobaoAilabAicloudTopDeviceDeviceidConvertAPIRequest{ + return &TaobaoAilabAicloudTopDeviceDeviceidConvertAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceDeviceidConvertAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.deviceid.convert" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceDeviceidConvertAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceOpenId Setter +// 设备openId +func (r *TaobaoAilabAicloudTopDeviceDeviceidConvertAPIRequest) SetDeviceOpenId(_deviceOpenId string) error { + r._deviceOpenId = _deviceOpenId + r.Set("device_open_id", _deviceOpenId) + return nil +} + +// DeviceOpenId Getter +func (r TaobaoAilabAicloudTopDeviceDeviceidConvertAPIRequest) GetDeviceOpenId() string { + return r._deviceOpenId +} +// SkillId Setter +// 技能id +func (r *TaobaoAilabAicloudTopDeviceDeviceidConvertAPIRequest) SetSkillId(_skillId string) error { + r._skillId = _skillId + r.Set("skill_id", _skillId) + return nil +} + +// SkillId Getter +func (r TaobaoAilabAicloudTopDeviceDeviceidConvertAPIRequest) GetSkillId() string { + return r._skillId +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceDeviceidConvertAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceDeviceidConvertAPIResponse.go new file mode 100644 index 0000000000..a015d450bd --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceDeviceidConvertAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +开放设备id转换内部设备id API返回值 +taobao.ailab.aicloud.top.device.deviceid.convert + +将开放设备id转换为内部设备id +*/ +type TaobaoAilabAicloudTopDeviceDeviceidConvertAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceDeviceidConvertAPIResponseModel +} + +// 开放设备id转换内部设备id 成功返回结果 +type TaobaoAilabAicloudTopDeviceDeviceidConvertAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_deviceid_convert_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoAilabAicloudTopDeviceDeviceidConvertResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceDeviceidConvertResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceDeviceidConvertResponse.go deleted file mode 100644 index 5a76384ba0..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceDeviceidConvertResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -开放设备id转换内部设备id API返回值 -taobao.ailab.aicloud.top.device.deviceid.convert - -将开放设备id转换为内部设备id -*/ -type TaobaoAilabAicloudTopDeviceDeviceidConvertAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceDeviceidConvertResponse -} - -// 开放设备id转换内部设备id 成功返回结果 -type TaobaoAilabAicloudTopDeviceDeviceidConvertResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_deviceid_convert_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoAilabAicloudTopDeviceDeviceidConvertResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceExtinfoGetAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceExtinfoGetAPIRequest.go new file mode 100644 index 0000000000..cea993c926 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceExtinfoGetAPIRequest.go @@ -0,0 +1,94 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备扩展信息 API请求 +taobao.ailab.aicloud.top.device.extinfo.get + +获取设备扩展信息 +*/ +type TaobaoAilabAicloudTopDeviceExtinfoGetAPIRequest struct { + model.Params + // 三方id、淘宝openId + _originUserId string + // 账号秘钥 + _schemaKey string + // 类型:openTaoBao, extUser + _userType string + // 设备id + _deviceId string +} + +// 初始化TaobaoAilabAicloudTopDeviceExtinfoGetAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceExtinfoGetRequest() *TaobaoAilabAicloudTopDeviceExtinfoGetAPIRequest{ + return &TaobaoAilabAicloudTopDeviceExtinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceExtinfoGetAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.extinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceExtinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OriginUserId Setter +// 三方id、淘宝openId +func (r *TaobaoAilabAicloudTopDeviceExtinfoGetAPIRequest) SetOriginUserId(_originUserId string) error { + r._originUserId = _originUserId + r.Set("origin_user_id", _originUserId) + return nil +} + +// OriginUserId Getter +func (r TaobaoAilabAicloudTopDeviceExtinfoGetAPIRequest) GetOriginUserId() string { + return r._originUserId +} +// SchemaKey Setter +// 账号秘钥 +func (r *TaobaoAilabAicloudTopDeviceExtinfoGetAPIRequest) SetSchemaKey(_schemaKey string) error { + r._schemaKey = _schemaKey + r.Set("schema_key", _schemaKey) + return nil +} + +// SchemaKey Getter +func (r TaobaoAilabAicloudTopDeviceExtinfoGetAPIRequest) GetSchemaKey() string { + return r._schemaKey +} +// UserType Setter +// 类型:openTaoBao, extUser +func (r *TaobaoAilabAicloudTopDeviceExtinfoGetAPIRequest) SetUserType(_userType string) error { + r._userType = _userType + r.Set("user_type", _userType) + return nil +} + +// UserType Getter +func (r TaobaoAilabAicloudTopDeviceExtinfoGetAPIRequest) GetUserType() string { + return r._userType +} +// DeviceId Setter +// 设备id +func (r *TaobaoAilabAicloudTopDeviceExtinfoGetAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r TaobaoAilabAicloudTopDeviceExtinfoGetAPIRequest) GetDeviceId() string { + return r._deviceId +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceExtinfoGetAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceExtinfoGetAPIResponse.go new file mode 100644 index 0000000000..d913b463b0 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceExtinfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备扩展信息 API返回值 +taobao.ailab.aicloud.top.device.extinfo.get + +获取设备扩展信息 +*/ +type TaobaoAilabAicloudTopDeviceExtinfoGetAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceExtinfoGetAPIResponseModel +} + +// 获取设备扩展信息 成功返回结果 +type TaobaoAilabAicloudTopDeviceExtinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_extinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoAilabAicloudTopDeviceExtinfoGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceExtinfoGetResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceExtinfoGetResponse.go deleted file mode 100644 index cd5dcad7d1..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceExtinfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取设备扩展信息 API返回值 -taobao.ailab.aicloud.top.device.extinfo.get - -获取设备扩展信息 -*/ -type TaobaoAilabAicloudTopDeviceExtinfoGetAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceExtinfoGetResponse -} - -// 获取设备扩展信息 成功返回结果 -type TaobaoAilabAicloudTopDeviceExtinfoGetResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_extinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoAilabAicloudTopDeviceExtinfoGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceGetstatusAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceGetstatusAPIRequest.go new file mode 100644 index 0000000000..ad434d441a --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceGetstatusAPIRequest.go @@ -0,0 +1,66 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备状态 API请求 +taobao.ailab.aicloud.top.device.getstatus + +获取设备状态 +*/ +type TaobaoAilabAicloudTopDeviceGetstatusAPIRequest struct { + model.Params + // 用户信息 + _param0 *OpenBaseInfo + // 设备id + _param1 string +} + +// 初始化TaobaoAilabAicloudTopDeviceGetstatusAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceGetstatusRequest() *TaobaoAilabAicloudTopDeviceGetstatusAPIRequest{ + return &TaobaoAilabAicloudTopDeviceGetstatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceGetstatusAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.getstatus" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceGetstatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 用户信息 +func (r *TaobaoAilabAicloudTopDeviceGetstatusAPIRequest) SetParam0(_param0 *OpenBaseInfo) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoAilabAicloudTopDeviceGetstatusAPIRequest) GetParam0() *OpenBaseInfo { + return r._param0 +} +// Param1 Setter +// 设备id +func (r *TaobaoAilabAicloudTopDeviceGetstatusAPIRequest) SetParam1(_param1 string) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r TaobaoAilabAicloudTopDeviceGetstatusAPIRequest) GetParam1() string { + return r._param1 +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceGetstatusAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceGetstatusAPIResponse.go new file mode 100644 index 0000000000..08dd061735 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceGetstatusAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备状态 API返回值 +taobao.ailab.aicloud.top.device.getstatus + +获取设备状态 +*/ +type TaobaoAilabAicloudTopDeviceGetstatusAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceGetstatusAPIResponseModel +} + +// 获取设备状态 成功返回结果 +type TaobaoAilabAicloudTopDeviceGetstatusAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_getstatus_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceGetstatusResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceGetstatusResponse.go deleted file mode 100644 index 954ae9f66b..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceGetstatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取设备状态 API返回值 -taobao.ailab.aicloud.top.device.getstatus - -获取设备状态 -*/ -type TaobaoAilabAicloudTopDeviceGetstatusAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceGetstatusResponse -} - -// 获取设备状态 成功返回结果 -type TaobaoAilabAicloudTopDeviceGetstatusResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_getstatus_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIRequest.go new file mode 100644 index 0000000000..252135dfb0 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIRequest.go @@ -0,0 +1,94 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取openid设备通用授权码 API请求 +taobao.ailab.aicloud.top.device.openid.authcode.get + +获取openid设备通用授权码 +*/ +type TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIRequest struct { + model.Params + // 淘宝openid + _openId string + // 账户体系隔离,即硬件接入平台中取得的schema key。 + _schema string + // (废弃) 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 扩展信息,用于存放APP类型等 + _ext string +} + +// 初始化TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceOpenidAuthcodeGetRequest() *TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIRequest{ + return &TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.openid.authcode.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenId Setter +// 淘宝openid +func (r *TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIRequest) SetOpenId(_openId string) error { + r._openId = _openId + r.Set("open_id", _openId) + return nil +} + +// OpenId Getter +func (r TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIRequest) GetOpenId() string { + return r._openId +} +// Schema Setter +// 账户体系隔离,即硬件接入平台中取得的schema key。 +func (r *TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIRequest) GetSchema() string { + return r._schema +} +// UtdId Setter +// (废弃) 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIRequest) GetExt() string { + return r._ext +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIResponse.go new file mode 100644 index 0000000000..53319f40f7 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取openid设备通用授权码 API返回值 +taobao.ailab.aicloud.top.device.openid.authcode.get + +获取openid设备通用授权码 +*/ +type TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIResponseModel +} + +// 获取openid设备通用授权码 成功返回结果 +type TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_openid_authcode_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetResponse.go deleted file mode 100644 index dc8d633169..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取openid设备通用授权码 API返回值 -taobao.ailab.aicloud.top.device.openid.authcode.get - -获取openid设备通用授权码 -*/ -type TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetResponse -} - -// 获取openid设备通用授权码 成功返回结果 -type TaobaoAilabAicloudTopDeviceOpenidAuthcodeGetResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_openid_authcode_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest.go new file mode 100644 index 0000000000..8a38cfee11 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest.go @@ -0,0 +1,122 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取openId设备授权码验证结果 API请求 +taobao.ailab.aicloud.top.device.openid.authresult.get + +获取openId设备授权码验证结果 +*/ +type TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest struct { + model.Params + // 淘宝openid + _openId string + // 账户体系隔离 + _schema string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 扩展信息,用于存放APP类型等 + _ext string + // authcode list + _authCodes []string +} + +// 初始化TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceOpenidAuthresultGetRequest() *TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest{ + return &TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.openid.authresult.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenId Setter +// 淘宝openid +func (r *TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest) SetOpenId(_openId string) error { + r._openId = _openId + r.Set("open_id", _openId) + return nil +} + +// OpenId Getter +func (r TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest) GetOpenId() string { + return r._openId +} +// Schema Setter +// 账户体系隔离 +func (r *TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest) GetSchema() string { + return r._schema +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest) GetUtdId() string { + return r._utdId +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest) GetUserId() string { + return r._userId +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest) GetExt() string { + return r._ext +} +// AuthCodes Setter +// authcode list +func (r *TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest) SetAuthCodes(_authCodes []string) error { + r._authCodes = _authCodes + r.Set("auth_codes", _authCodes) + return nil +} + +// AuthCodes Getter +func (r TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIRequest) GetAuthCodes() []string { + return r._authCodes +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIResponse.go new file mode 100644 index 0000000000..32f3532962 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取openId设备授权码验证结果 API返回值 +taobao.ailab.aicloud.top.device.openid.authresult.get + +获取openId设备授权码验证结果 +*/ +type TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIResponseModel +} + +// 获取openId设备授权码验证结果 成功返回结果 +type TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_openid_authresult_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthresultGetResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthresultGetResponse.go deleted file mode 100644 index d4a682a560..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceOpenidAuthresultGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取openId设备授权码验证结果 API返回值 -taobao.ailab.aicloud.top.device.openid.authresult.get - -获取openId设备授权码验证结果 -*/ -type TaobaoAilabAicloudTopDeviceOpenidAuthresultGetAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceOpenidAuthresultGetResponse -} - -// 获取openId设备授权码验证结果 成功返回结果 -type TaobaoAilabAicloudTopDeviceOpenidAuthresultGetResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_openid_authresult_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest.go new file mode 100644 index 0000000000..cb0e4bbd34 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest.go @@ -0,0 +1,122 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +openTaoBaoId解绑设备 API请求 +taobao.ailab.aicloud.top.device.openid.unbind + +openTaoBaoId解绑设备 +*/ +type TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest struct { + model.Params + // 淘宝openId + _openId string + // 设备uuid + _uuid string + // 账户体系隔离 + _schema string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 扩展信息,用于存放APP类型等 + _ext string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string +} + +// 初始化TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceOpenidUnbindRequest() *TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest{ + return &TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.openid.unbind" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenId Setter +// 淘宝openId +func (r *TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest) SetOpenId(_openId string) error { + r._openId = _openId + r.Set("open_id", _openId) + return nil +} + +// OpenId Getter +func (r TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest) GetOpenId() string { + return r._openId +} +// Uuid Setter +// 设备uuid +func (r *TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest) GetUuid() string { + return r._uuid +} +// Schema Setter +// 账户体系隔离 +func (r *TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest) GetUserId() string { + return r._userId +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest) GetExt() string { + return r._ext +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopDeviceOpenidUnbindAPIRequest) GetUtdId() string { + return r._utdId +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceOpenidUnbindAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceOpenidUnbindAPIResponse.go new file mode 100644 index 0000000000..427acc7db4 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceOpenidUnbindAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +openTaoBaoId解绑设备 API返回值 +taobao.ailab.aicloud.top.device.openid.unbind + +openTaoBaoId解绑设备 +*/ +type TaobaoAilabAicloudTopDeviceOpenidUnbindAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceOpenidUnbindAPIResponseModel +} + +// openTaoBaoId解绑设备 成功返回结果 +type TaobaoAilabAicloudTopDeviceOpenidUnbindAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_openid_unbind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceOpenidUnbindResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceOpenidUnbindResponse.go deleted file mode 100644 index 969e0276c6..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceOpenidUnbindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -openTaoBaoId解绑设备 API返回值 -taobao.ailab.aicloud.top.device.openid.unbind - -openTaoBaoId解绑设备 -*/ -type TaobaoAilabAicloudTopDeviceOpenidUnbindAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceOpenidUnbindResponse -} - -// openTaoBaoId解绑设备 成功返回结果 -type TaobaoAilabAicloudTopDeviceOpenidUnbindResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_openid_unbind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest.go new file mode 100644 index 0000000000..ed5b660604 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest.go @@ -0,0 +1,108 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +重置设备个性化设置 API请求 +taobao.ailab.aicloud.top.device.settings.reset + +重置设备个性化设置 +*/ +type TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest struct { + model.Params + // 账户体系隔离 + _schema string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 扩展信息,用于存放APP类型等 + _ext string + // 设备id + _param1 string +} + +// 初始化TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceSettingsResetRequest() *TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest{ + return &TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.settings.reset" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// 账户体系隔离 +func (r *TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest) GetExt() string { + return r._ext +} +// Param1 Setter +// 设备id +func (r *TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest) SetParam1(_param1 string) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r TaobaoAilabAicloudTopDeviceSettingsResetAPIRequest) GetParam1() string { + return r._param1 +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceSettingsResetAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceSettingsResetAPIResponse.go new file mode 100644 index 0000000000..84aa5e14fc --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceSettingsResetAPIResponse.go @@ -0,0 +1,35 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +重置设备个性化设置 API返回值 +taobao.ailab.aicloud.top.device.settings.reset + +重置设备个性化设置 +*/ +type TaobaoAilabAicloudTopDeviceSettingsResetAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceSettingsResetAPIResponseModel +} + +// 重置设备个性化设置 成功返回结果 +type TaobaoAilabAicloudTopDeviceSettingsResetAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_settings_reset_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 业务结果是否成功 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 网络请求是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 扩展字段 + ExtendInfo string `json:"extend_info,omitempty" xml:"extend_info,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceSettingsResetResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceSettingsResetResponse.go deleted file mode 100644 index 25d824110e..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceSettingsResetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -重置设备个性化设置 API返回值 -taobao.ailab.aicloud.top.device.settings.reset - -重置设备个性化设置 -*/ -type TaobaoAilabAicloudTopDeviceSettingsResetAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceSettingsResetResponse -} - -// 重置设备个性化设置 成功返回结果 -type TaobaoAilabAicloudTopDeviceSettingsResetResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_settings_reset_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 业务结果是否成功 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 网络请求是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 扩展字段 - ExtendInfo string `json:"extend_info,omitempty" xml:"extend_info,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceStatusinfoGetAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceStatusinfoGetAPIRequest.go new file mode 100644 index 0000000000..2012b65979 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceStatusinfoGetAPIRequest.go @@ -0,0 +1,94 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备状态信息 API请求 +taobao.ailab.aicloud.top.device.statusinfo.get + +获取设备状态信息 +*/ +type TaobaoAilabAicloudTopDeviceStatusinfoGetAPIRequest struct { + model.Params + // 三方用户id或淘宝openId + _originUserId string + // 账号秘钥 + _schemaKey string + // 三方传extUser,淘宝传openTaoBaoUser + _userType string + // 设备id + _deviceId string +} + +// 初始化TaobaoAilabAicloudTopDeviceStatusinfoGetAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceStatusinfoGetRequest() *TaobaoAilabAicloudTopDeviceStatusinfoGetAPIRequest{ + return &TaobaoAilabAicloudTopDeviceStatusinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceStatusinfoGetAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.statusinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceStatusinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OriginUserId Setter +// 三方用户id或淘宝openId +func (r *TaobaoAilabAicloudTopDeviceStatusinfoGetAPIRequest) SetOriginUserId(_originUserId string) error { + r._originUserId = _originUserId + r.Set("origin_user_id", _originUserId) + return nil +} + +// OriginUserId Getter +func (r TaobaoAilabAicloudTopDeviceStatusinfoGetAPIRequest) GetOriginUserId() string { + return r._originUserId +} +// SchemaKey Setter +// 账号秘钥 +func (r *TaobaoAilabAicloudTopDeviceStatusinfoGetAPIRequest) SetSchemaKey(_schemaKey string) error { + r._schemaKey = _schemaKey + r.Set("schema_key", _schemaKey) + return nil +} + +// SchemaKey Getter +func (r TaobaoAilabAicloudTopDeviceStatusinfoGetAPIRequest) GetSchemaKey() string { + return r._schemaKey +} +// UserType Setter +// 三方传extUser,淘宝传openTaoBaoUser +func (r *TaobaoAilabAicloudTopDeviceStatusinfoGetAPIRequest) SetUserType(_userType string) error { + r._userType = _userType + r.Set("user_type", _userType) + return nil +} + +// UserType Getter +func (r TaobaoAilabAicloudTopDeviceStatusinfoGetAPIRequest) GetUserType() string { + return r._userType +} +// DeviceId Setter +// 设备id +func (r *TaobaoAilabAicloudTopDeviceStatusinfoGetAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r TaobaoAilabAicloudTopDeviceStatusinfoGetAPIRequest) GetDeviceId() string { + return r._deviceId +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceStatusinfoGetAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceStatusinfoGetAPIResponse.go new file mode 100644 index 0000000000..51069c75c5 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceStatusinfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备状态信息 API返回值 +taobao.ailab.aicloud.top.device.statusinfo.get + +获取设备状态信息 +*/ +type TaobaoAilabAicloudTopDeviceStatusinfoGetAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceStatusinfoGetAPIResponseModel +} + +// 获取设备状态信息 成功返回结果 +type TaobaoAilabAicloudTopDeviceStatusinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_statusinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoAilabAicloudTopDeviceStatusinfoGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceStatusinfoGetResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceStatusinfoGetResponse.go deleted file mode 100644 index da6596d9e1..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceStatusinfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取设备状态信息 API返回值 -taobao.ailab.aicloud.top.device.statusinfo.get - -获取设备状态信息 -*/ -type TaobaoAilabAicloudTopDeviceStatusinfoGetAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceStatusinfoGetResponse -} - -// 获取设备状态信息 成功返回结果 -type TaobaoAilabAicloudTopDeviceStatusinfoGetResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_statusinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoAilabAicloudTopDeviceStatusinfoGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceUnbindAPIRequest.go b/model/iot/TaobaoAilabAicloudTopDeviceUnbindAPIRequest.go new file mode 100644 index 0000000000..8acc244858 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceUnbindAPIRequest.go @@ -0,0 +1,94 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +解绑设备 API请求 +taobao.ailab.aicloud.top.device.unbind + +解绑设备 +*/ +type TaobaoAilabAicloudTopDeviceUnbindAPIRequest struct { + model.Params + // 账户体系隔离 + _schema string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 扩展信息,用于存放APP类型等 + _ext string +} + +// 初始化TaobaoAilabAicloudTopDeviceUnbindAPIRequest对象 +func NewTaobaoAilabAicloudTopDeviceUnbindRequest() *TaobaoAilabAicloudTopDeviceUnbindAPIRequest{ + return &TaobaoAilabAicloudTopDeviceUnbindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopDeviceUnbindAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.device.unbind" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopDeviceUnbindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// 账户体系隔离 +func (r *TaobaoAilabAicloudTopDeviceUnbindAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopDeviceUnbindAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *TaobaoAilabAicloudTopDeviceUnbindAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopDeviceUnbindAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopDeviceUnbindAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopDeviceUnbindAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopDeviceUnbindAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopDeviceUnbindAPIRequest) GetExt() string { + return r._ext +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceUnbindAPIResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceUnbindAPIResponse.go new file mode 100644 index 0000000000..6902b86a8d --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopDeviceUnbindAPIResponse.go @@ -0,0 +1,31 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +解绑设备 API返回值 +taobao.ailab.aicloud.top.device.unbind + +解绑设备 +*/ +type TaobaoAilabAicloudTopDeviceUnbindAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopDeviceUnbindAPIResponseModel +} + +// 解绑设备 成功返回结果 +type TaobaoAilabAicloudTopDeviceUnbindAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_device_unbind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 解绑是否成功 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // msgInfo错误码信息,成功返回null + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopDeviceUnbindResponse.go b/model/iot/TaobaoAilabAicloudTopDeviceUnbindResponse.go deleted file mode 100644 index 043a6fcb1e..0000000000 --- a/model/iot/TaobaoAilabAicloudTopDeviceUnbindResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -解绑设备 API返回值 -taobao.ailab.aicloud.top.device.unbind - -解绑设备 -*/ -type TaobaoAilabAicloudTopDeviceUnbindAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopDeviceUnbindResponse -} - -// 解绑设备 成功返回结果 -type TaobaoAilabAicloudTopDeviceUnbindResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_device_unbind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 解绑是否成功 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // msgInfo错误码信息,成功返回null - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopFeedlistDeleteAPIRequest.go b/model/iot/TaobaoAilabAicloudTopFeedlistDeleteAPIRequest.go new file mode 100644 index 0000000000..e3575c9a22 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopFeedlistDeleteAPIRequest.go @@ -0,0 +1,108 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除单条对话流信息 API请求 +taobao.ailab.aicloud.top.feedlist.delete + +删除指定的某一条对话流信息 +*/ +type TaobaoAilabAicloudTopFeedlistDeleteAPIRequest struct { + model.Params + // 扩展信息,用于存放APP类型等 + _ext string + // 账户体系隔离 + _schema string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 消息的唯一标识 + _sentenceId string +} + +// 初始化TaobaoAilabAicloudTopFeedlistDeleteAPIRequest对象 +func NewTaobaoAilabAicloudTopFeedlistDeleteRequest() *TaobaoAilabAicloudTopFeedlistDeleteAPIRequest{ + return &TaobaoAilabAicloudTopFeedlistDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopFeedlistDeleteAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.feedlist.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopFeedlistDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopFeedlistDeleteAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopFeedlistDeleteAPIRequest) GetExt() string { + return r._ext +} +// Schema Setter +// 账户体系隔离 +func (r *TaobaoAilabAicloudTopFeedlistDeleteAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopFeedlistDeleteAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *TaobaoAilabAicloudTopFeedlistDeleteAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopFeedlistDeleteAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopFeedlistDeleteAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopFeedlistDeleteAPIRequest) GetUtdId() string { + return r._utdId +} +// SentenceId Setter +// 消息的唯一标识 +func (r *TaobaoAilabAicloudTopFeedlistDeleteAPIRequest) SetSentenceId(_sentenceId string) error { + r._sentenceId = _sentenceId + r.Set("sentence_id", _sentenceId) + return nil +} + +// SentenceId Getter +func (r TaobaoAilabAicloudTopFeedlistDeleteAPIRequest) GetSentenceId() string { + return r._sentenceId +} diff --git a/model/iot/TaobaoAilabAicloudTopFeedlistDeleteAPIResponse.go b/model/iot/TaobaoAilabAicloudTopFeedlistDeleteAPIResponse.go new file mode 100644 index 0000000000..e669fe16de --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopFeedlistDeleteAPIResponse.go @@ -0,0 +1,31 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除单条对话流信息 API返回值 +taobao.ailab.aicloud.top.feedlist.delete + +删除指定的某一条对话流信息 +*/ +type TaobaoAilabAicloudTopFeedlistDeleteAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopFeedlistDeleteAPIResponseModel +} + +// 删除单条对话流信息 成功返回结果 +type TaobaoAilabAicloudTopFeedlistDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_feedlist_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // model + Model string `json:"model,omitempty" xml:"model,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // success + IsSuccess string `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopFeedlistDeleteResponse.go b/model/iot/TaobaoAilabAicloudTopFeedlistDeleteResponse.go deleted file mode 100644 index 963843c62a..0000000000 --- a/model/iot/TaobaoAilabAicloudTopFeedlistDeleteResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除单条对话流信息 API返回值 -taobao.ailab.aicloud.top.feedlist.delete - -删除指定的某一条对话流信息 -*/ -type TaobaoAilabAicloudTopFeedlistDeleteAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopFeedlistDeleteResponse -} - -// 删除单条对话流信息 成功返回结果 -type TaobaoAilabAicloudTopFeedlistDeleteResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_feedlist_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // model - Model string `json:"model,omitempty" xml:"model,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // success - IsSuccess string `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopFeedlistGetAPIRequest.go b/model/iot/TaobaoAilabAicloudTopFeedlistGetAPIRequest.go new file mode 100644 index 0000000000..d2260498bd --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopFeedlistGetAPIRequest.go @@ -0,0 +1,94 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取对话流列表 API请求 +taobao.ailab.aicloud.top.feedlist.get + +获取指定应用的对话流信息 +*/ +type TaobaoAilabAicloudTopFeedlistGetAPIRequest struct { + model.Params + // 用户信息 + _param0 *OpenBaseInfo + // 设备id + _param1 string + // 最后一条对话的key + _param2 string + // 单页的条目数,注意,是String类型! + _param3 string +} + +// 初始化TaobaoAilabAicloudTopFeedlistGetAPIRequest对象 +func NewTaobaoAilabAicloudTopFeedlistGetRequest() *TaobaoAilabAicloudTopFeedlistGetAPIRequest{ + return &TaobaoAilabAicloudTopFeedlistGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopFeedlistGetAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.feedlist.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopFeedlistGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 用户信息 +func (r *TaobaoAilabAicloudTopFeedlistGetAPIRequest) SetParam0(_param0 *OpenBaseInfo) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoAilabAicloudTopFeedlistGetAPIRequest) GetParam0() *OpenBaseInfo { + return r._param0 +} +// Param1 Setter +// 设备id +func (r *TaobaoAilabAicloudTopFeedlistGetAPIRequest) SetParam1(_param1 string) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r TaobaoAilabAicloudTopFeedlistGetAPIRequest) GetParam1() string { + return r._param1 +} +// Param2 Setter +// 最后一条对话的key +func (r *TaobaoAilabAicloudTopFeedlistGetAPIRequest) SetParam2(_param2 string) error { + r._param2 = _param2 + r.Set("param2", _param2) + return nil +} + +// Param2 Getter +func (r TaobaoAilabAicloudTopFeedlistGetAPIRequest) GetParam2() string { + return r._param2 +} +// Param3 Setter +// 单页的条目数,注意,是String类型! +func (r *TaobaoAilabAicloudTopFeedlistGetAPIRequest) SetParam3(_param3 string) error { + r._param3 = _param3 + r.Set("param3", _param3) + return nil +} + +// Param3 Getter +func (r TaobaoAilabAicloudTopFeedlistGetAPIRequest) GetParam3() string { + return r._param3 +} diff --git a/model/iot/TaobaoAilabAicloudTopFeedlistGetAPIResponse.go b/model/iot/TaobaoAilabAicloudTopFeedlistGetAPIResponse.go new file mode 100644 index 0000000000..22184d0ad8 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopFeedlistGetAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取对话流列表 API返回值 +taobao.ailab.aicloud.top.feedlist.get + +获取指定应用的对话流信息 +*/ +type TaobaoAilabAicloudTopFeedlistGetAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopFeedlistGetAPIResponseModel +} + +// 获取对话流列表 成功返回结果 +type TaobaoAilabAicloudTopFeedlistGetAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_feedlist_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopFeedlistGetResponse.go b/model/iot/TaobaoAilabAicloudTopFeedlistGetResponse.go deleted file mode 100644 index f97e0d2c2f..0000000000 --- a/model/iot/TaobaoAilabAicloudTopFeedlistGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取对话流列表 API返回值 -taobao.ailab.aicloud.top.feedlist.get - -获取指定应用的对话流信息 -*/ -type TaobaoAilabAicloudTopFeedlistGetAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopFeedlistGetResponse -} - -// 获取对话流列表 成功返回结果 -type TaobaoAilabAicloudTopFeedlistGetResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_feedlist_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest.go b/model/iot/TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest.go new file mode 100644 index 0000000000..9d97e4a276 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest.go @@ -0,0 +1,136 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +儿童音频列表 API请求 +taobao.ailab.aicloud.top.freelisten.childrenalbum + +儿童音频列表 +*/ +type TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest struct { + model.Params + // 账户体系隔离 + _schema string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 扩展信息,用于存放APP类型等 + _ext string + // 音频类型,目前只支持以下几种类型:英语儿歌 英语故事 双语故事 国学启蒙 古典名著 成语故事 寓言故事 神话故事 诗词朗读 诗词婉唱 谚语故事 胎教音乐 经典儿歌 摇篮曲 睡前故事 绘本故事 儿童故事 儿童百科 经典故事 公主故事 名人故事 胎教故事 + _param1 string + // 页数 + _param2 int64 + // 每页条目数 + _param3 int64 +} + +// 初始化TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest对象 +func NewTaobaoAilabAicloudTopFreelistenChildrenalbumRequest() *TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest{ + return &TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.freelisten.childrenalbum" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// 账户体系隔离 +func (r *TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest) GetExt() string { + return r._ext +} +// Param1 Setter +// 音频类型,目前只支持以下几种类型:英语儿歌 英语故事 双语故事 国学启蒙 古典名著 成语故事 寓言故事 神话故事 诗词朗读 诗词婉唱 谚语故事 胎教音乐 经典儿歌 摇篮曲 睡前故事 绘本故事 儿童故事 儿童百科 经典故事 公主故事 名人故事 胎教故事 +func (r *TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest) SetParam1(_param1 string) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest) GetParam1() string { + return r._param1 +} +// Param2 Setter +// 页数 +func (r *TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest) SetParam2(_param2 int64) error { + r._param2 = _param2 + r.Set("param2", _param2) + return nil +} + +// Param2 Getter +func (r TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest) GetParam2() int64 { + return r._param2 +} +// Param3 Setter +// 每页条目数 +func (r *TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest) SetParam3(_param3 int64) error { + r._param3 = _param3 + r.Set("param3", _param3) + return nil +} + +// Param3 Getter +func (r TaobaoAilabAicloudTopFreelistenChildrenalbumAPIRequest) GetParam3() int64 { + return r._param3 +} diff --git a/model/iot/TaobaoAilabAicloudTopFreelistenChildrenalbumAPIResponse.go b/model/iot/TaobaoAilabAicloudTopFreelistenChildrenalbumAPIResponse.go new file mode 100644 index 0000000000..35ca244453 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopFreelistenChildrenalbumAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +儿童音频列表 API返回值 +taobao.ailab.aicloud.top.freelisten.childrenalbum + +儿童音频列表 +*/ +type TaobaoAilabAicloudTopFreelistenChildrenalbumAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopFreelistenChildrenalbumAPIResponseModel +} + +// 儿童音频列表 成功返回结果 +type TaobaoAilabAicloudTopFreelistenChildrenalbumAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_freelisten_childrenalbum_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopFreelistenChildrenalbumResponse.go b/model/iot/TaobaoAilabAicloudTopFreelistenChildrenalbumResponse.go deleted file mode 100644 index 1cd35437a4..0000000000 --- a/model/iot/TaobaoAilabAicloudTopFreelistenChildrenalbumResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -儿童音频列表 API返回值 -taobao.ailab.aicloud.top.freelisten.childrenalbum - -儿童音频列表 -*/ -type TaobaoAilabAicloudTopFreelistenChildrenalbumAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopFreelistenChildrenalbumResponse -} - -// 儿童音频列表 成功返回结果 -type TaobaoAilabAicloudTopFreelistenChildrenalbumResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_freelisten_childrenalbum_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopLikeAddAPIRequest.go b/model/iot/TaobaoAilabAicloudTopLikeAddAPIRequest.go new file mode 100644 index 0000000000..2ce9a6a4b2 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopLikeAddAPIRequest.go @@ -0,0 +1,150 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +增加收藏 API请求 +taobao.ailab.aicloud.top.like.add + +将制定内容加入收藏 +*/ +type TaobaoAilabAicloudTopLikeAddAPIRequest struct { + model.Params + // 扩展信息,用于存放APP类型等 + _ext string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 账户体系隔离 + _schema string + // 收藏类型,目前支持四种:story,children_song,music,program,分别表示故事、儿童、音乐和节目 + _type string + // 来源 + _source string + // 收藏的资源的ID + _itemId string + // 内容,必须要是一个json格式:{"song":"走过1999","singer":"张学友","album":"走过1999"} + _content string +} + +// 初始化TaobaoAilabAicloudTopLikeAddAPIRequest对象 +func NewTaobaoAilabAicloudTopLikeAddRequest() *TaobaoAilabAicloudTopLikeAddAPIRequest{ + return &TaobaoAilabAicloudTopLikeAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopLikeAddAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.like.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopLikeAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopLikeAddAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopLikeAddAPIRequest) GetExt() string { + return r._ext +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopLikeAddAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopLikeAddAPIRequest) GetUtdId() string { + return r._utdId +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *TaobaoAilabAicloudTopLikeAddAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopLikeAddAPIRequest) GetUserId() string { + return r._userId +} +// Schema Setter +// 账户体系隔离 +func (r *TaobaoAilabAicloudTopLikeAddAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopLikeAddAPIRequest) GetSchema() string { + return r._schema +} +// Type Setter +// 收藏类型,目前支持四种:story,children_song,music,program,分别表示故事、儿童、音乐和节目 +func (r *TaobaoAilabAicloudTopLikeAddAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoAilabAicloudTopLikeAddAPIRequest) GetType() string { + return r._type +} +// Source Setter +// 来源 +func (r *TaobaoAilabAicloudTopLikeAddAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoAilabAicloudTopLikeAddAPIRequest) GetSource() string { + return r._source +} +// ItemId Setter +// 收藏的资源的ID +func (r *TaobaoAilabAicloudTopLikeAddAPIRequest) SetItemId(_itemId string) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoAilabAicloudTopLikeAddAPIRequest) GetItemId() string { + return r._itemId +} +// Content Setter +// 内容,必须要是一个json格式:{"song":"走过1999","singer":"张学友","album":"走过1999"} +func (r *TaobaoAilabAicloudTopLikeAddAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r TaobaoAilabAicloudTopLikeAddAPIRequest) GetContent() string { + return r._content +} diff --git a/model/iot/TaobaoAilabAicloudTopLikeAddAPIResponse.go b/model/iot/TaobaoAilabAicloudTopLikeAddAPIResponse.go new file mode 100644 index 0000000000..1da1a981fc --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopLikeAddAPIResponse.go @@ -0,0 +1,31 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +增加收藏 API返回值 +taobao.ailab.aicloud.top.like.add + +将制定内容加入收藏 +*/ +type TaobaoAilabAicloudTopLikeAddAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopLikeAddAPIResponseModel +} + +// 增加收藏 成功返回结果 +type TaobaoAilabAicloudTopLikeAddAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_like_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 具体信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 标志是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 具体的结果值 + Model bool `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopLikeAddResponse.go b/model/iot/TaobaoAilabAicloudTopLikeAddResponse.go deleted file mode 100644 index 0bbdefd668..0000000000 --- a/model/iot/TaobaoAilabAicloudTopLikeAddResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -增加收藏 API返回值 -taobao.ailab.aicloud.top.like.add - -将制定内容加入收藏 -*/ -type TaobaoAilabAicloudTopLikeAddAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopLikeAddResponse -} - -// 增加收藏 成功返回结果 -type TaobaoAilabAicloudTopLikeAddResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_like_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 具体信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 标志是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 具体的结果值 - Model bool `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopLikeDeleteAPIRequest.go b/model/iot/TaobaoAilabAicloudTopLikeDeleteAPIRequest.go new file mode 100644 index 0000000000..c8ceb66397 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopLikeDeleteAPIRequest.go @@ -0,0 +1,136 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消收藏 API请求 +taobao.ailab.aicloud.top.like.delete + +取消收藏 +*/ +type TaobaoAilabAicloudTopLikeDeleteAPIRequest struct { + model.Params + // 扩展信息,用于存放APP类型等 + _ext string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 账户体系隔离 + _schema string + // 收藏类型,目前支持四种:story,children_song,music,program,分别表示故事、儿童、音乐和节目 + _type string + // 来源 + _source string + // 资源的记录ID + _itemId string +} + +// 初始化TaobaoAilabAicloudTopLikeDeleteAPIRequest对象 +func NewTaobaoAilabAicloudTopLikeDeleteRequest() *TaobaoAilabAicloudTopLikeDeleteAPIRequest{ + return &TaobaoAilabAicloudTopLikeDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopLikeDeleteAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.like.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopLikeDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopLikeDeleteAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopLikeDeleteAPIRequest) GetExt() string { + return r._ext +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopLikeDeleteAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopLikeDeleteAPIRequest) GetUtdId() string { + return r._utdId +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *TaobaoAilabAicloudTopLikeDeleteAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopLikeDeleteAPIRequest) GetUserId() string { + return r._userId +} +// Schema Setter +// 账户体系隔离 +func (r *TaobaoAilabAicloudTopLikeDeleteAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopLikeDeleteAPIRequest) GetSchema() string { + return r._schema +} +// Type Setter +// 收藏类型,目前支持四种:story,children_song,music,program,分别表示故事、儿童、音乐和节目 +func (r *TaobaoAilabAicloudTopLikeDeleteAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoAilabAicloudTopLikeDeleteAPIRequest) GetType() string { + return r._type +} +// Source Setter +// 来源 +func (r *TaobaoAilabAicloudTopLikeDeleteAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoAilabAicloudTopLikeDeleteAPIRequest) GetSource() string { + return r._source +} +// ItemId Setter +// 资源的记录ID +func (r *TaobaoAilabAicloudTopLikeDeleteAPIRequest) SetItemId(_itemId string) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoAilabAicloudTopLikeDeleteAPIRequest) GetItemId() string { + return r._itemId +} diff --git a/model/iot/TaobaoAilabAicloudTopLikeDeleteAPIResponse.go b/model/iot/TaobaoAilabAicloudTopLikeDeleteAPIResponse.go new file mode 100644 index 0000000000..b1354a8900 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopLikeDeleteAPIResponse.go @@ -0,0 +1,31 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消收藏 API返回值 +taobao.ailab.aicloud.top.like.delete + +取消收藏 +*/ +type TaobaoAilabAicloudTopLikeDeleteAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopLikeDeleteAPIResponseModel +} + +// 取消收藏 成功返回结果 +type TaobaoAilabAicloudTopLikeDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_like_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 具体结果值 + Model bool `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopLikeDeleteResponse.go b/model/iot/TaobaoAilabAicloudTopLikeDeleteResponse.go deleted file mode 100644 index 4ac25b2ed4..0000000000 --- a/model/iot/TaobaoAilabAicloudTopLikeDeleteResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消收藏 API返回值 -taobao.ailab.aicloud.top.like.delete - -取消收藏 -*/ -type TaobaoAilabAicloudTopLikeDeleteAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopLikeDeleteResponse -} - -// 取消收藏 成功返回结果 -type TaobaoAilabAicloudTopLikeDeleteResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_like_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 具体结果值 - Model bool `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopLikeFilterAPIRequest.go b/model/iot/TaobaoAilabAicloudTopLikeFilterAPIRequest.go new file mode 100644 index 0000000000..473a727695 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopLikeFilterAPIRequest.go @@ -0,0 +1,122 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +过滤列表歌曲存在于收藏列表的 API请求 +taobao.ailab.aicloud.top.like.filter + +过滤出传入列表歌曲存在于收藏列表的 +*/ +type TaobaoAilabAicloudTopLikeFilterAPIRequest struct { + model.Params + // 账户体系隔离 + _schema string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 扩展信息,用于存放APP类型等 + _ext string + // 音频收藏类型, 四种类型:music,children_song,program,story + _type string + // 传入的歌曲列表 + _mediaItems []MediaItem +} + +// 初始化TaobaoAilabAicloudTopLikeFilterAPIRequest对象 +func NewTaobaoAilabAicloudTopLikeFilterRequest() *TaobaoAilabAicloudTopLikeFilterAPIRequest{ + return &TaobaoAilabAicloudTopLikeFilterAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopLikeFilterAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.like.filter" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopLikeFilterAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// 账户体系隔离 +func (r *TaobaoAilabAicloudTopLikeFilterAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopLikeFilterAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *TaobaoAilabAicloudTopLikeFilterAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopLikeFilterAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopLikeFilterAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopLikeFilterAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopLikeFilterAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopLikeFilterAPIRequest) GetExt() string { + return r._ext +} +// Type Setter +// 音频收藏类型, 四种类型:music,children_song,program,story +func (r *TaobaoAilabAicloudTopLikeFilterAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoAilabAicloudTopLikeFilterAPIRequest) GetType() string { + return r._type +} +// MediaItems Setter +// 传入的歌曲列表 +func (r *TaobaoAilabAicloudTopLikeFilterAPIRequest) SetMediaItems(_mediaItems []MediaItem) error { + r._mediaItems = _mediaItems + r.Set("media_items", _mediaItems) + return nil +} + +// MediaItems Getter +func (r TaobaoAilabAicloudTopLikeFilterAPIRequest) GetMediaItems() []MediaItem { + return r._mediaItems +} diff --git a/model/iot/TaobaoAilabAicloudTopLikeFilterAPIResponse.go b/model/iot/TaobaoAilabAicloudTopLikeFilterAPIResponse.go new file mode 100644 index 0000000000..797ef3a2c5 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopLikeFilterAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +过滤列表歌曲存在于收藏列表的 API返回值 +taobao.ailab.aicloud.top.like.filter + +过滤出传入列表歌曲存在于收藏列表的 +*/ +type TaobaoAilabAicloudTopLikeFilterAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopLikeFilterAPIResponseModel +} + +// 过滤列表歌曲存在于收藏列表的 成功返回结果 +type TaobaoAilabAicloudTopLikeFilterAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_like_filter_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopLikeFilterResponse.go b/model/iot/TaobaoAilabAicloudTopLikeFilterResponse.go deleted file mode 100644 index 1876defa9e..0000000000 --- a/model/iot/TaobaoAilabAicloudTopLikeFilterResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -过滤列表歌曲存在于收藏列表的 API返回值 -taobao.ailab.aicloud.top.like.filter - -过滤出传入列表歌曲存在于收藏列表的 -*/ -type TaobaoAilabAicloudTopLikeFilterAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopLikeFilterResponse -} - -// 过滤列表歌曲存在于收藏列表的 成功返回结果 -type TaobaoAilabAicloudTopLikeFilterResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_like_filter_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopLikeListAPIRequest.go b/model/iot/TaobaoAilabAicloudTopLikeListAPIRequest.go new file mode 100644 index 0000000000..e1cd836f62 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopLikeListAPIRequest.go @@ -0,0 +1,136 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +列出收藏列表 API请求 +taobao.ailab.aicloud.top.like.list + +列出收藏列表 +*/ +type TaobaoAilabAicloudTopLikeListAPIRequest struct { + model.Params + // 扩展信息,用于存放APP类型等 + _ext string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 账户体系隔离 + _schema string + // 收藏类型,目前支持四种:story,children_song,music,program,分别表示故事、儿童、音乐和节目 + _param1 string + // 页码 从0起 + _param2 int64 + // 每页条目个数 + _param3 int64 +} + +// 初始化TaobaoAilabAicloudTopLikeListAPIRequest对象 +func NewTaobaoAilabAicloudTopLikeListRequest() *TaobaoAilabAicloudTopLikeListAPIRequest{ + return &TaobaoAilabAicloudTopLikeListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopLikeListAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.like.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopLikeListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopLikeListAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopLikeListAPIRequest) GetExt() string { + return r._ext +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopLikeListAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopLikeListAPIRequest) GetUtdId() string { + return r._utdId +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *TaobaoAilabAicloudTopLikeListAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopLikeListAPIRequest) GetUserId() string { + return r._userId +} +// Schema Setter +// 账户体系隔离 +func (r *TaobaoAilabAicloudTopLikeListAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopLikeListAPIRequest) GetSchema() string { + return r._schema +} +// Param1 Setter +// 收藏类型,目前支持四种:story,children_song,music,program,分别表示故事、儿童、音乐和节目 +func (r *TaobaoAilabAicloudTopLikeListAPIRequest) SetParam1(_param1 string) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r TaobaoAilabAicloudTopLikeListAPIRequest) GetParam1() string { + return r._param1 +} +// Param2 Setter +// 页码 从0起 +func (r *TaobaoAilabAicloudTopLikeListAPIRequest) SetParam2(_param2 int64) error { + r._param2 = _param2 + r.Set("param2", _param2) + return nil +} + +// Param2 Getter +func (r TaobaoAilabAicloudTopLikeListAPIRequest) GetParam2() int64 { + return r._param2 +} +// Param3 Setter +// 每页条目个数 +func (r *TaobaoAilabAicloudTopLikeListAPIRequest) SetParam3(_param3 int64) error { + r._param3 = _param3 + r.Set("param3", _param3) + return nil +} + +// Param3 Getter +func (r TaobaoAilabAicloudTopLikeListAPIRequest) GetParam3() int64 { + return r._param3 +} diff --git a/model/iot/TaobaoAilabAicloudTopLikeListAPIResponse.go b/model/iot/TaobaoAilabAicloudTopLikeListAPIResponse.go new file mode 100644 index 0000000000..6d3ebfa694 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopLikeListAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +列出收藏列表 API返回值 +taobao.ailab.aicloud.top.like.list + +列出收藏列表 +*/ +type TaobaoAilabAicloudTopLikeListAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopLikeListAPIResponseModel +} + +// 列出收藏列表 成功返回结果 +type TaobaoAilabAicloudTopLikeListAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_like_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopLikeListResponse.go b/model/iot/TaobaoAilabAicloudTopLikeListResponse.go deleted file mode 100644 index 66211fc867..0000000000 --- a/model/iot/TaobaoAilabAicloudTopLikeListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -列出收藏列表 API返回值 -taobao.ailab.aicloud.top.like.list - -列出收藏列表 -*/ -type TaobaoAilabAicloudTopLikeListAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopLikeListResponse -} - -// 列出收藏列表 成功返回结果 -type TaobaoAilabAicloudTopLikeListResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_like_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopMessageAddtextAPIRequest.go b/model/iot/TaobaoAilabAicloudTopMessageAddtextAPIRequest.go new file mode 100644 index 0000000000..2423b3b23e --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopMessageAddtextAPIRequest.go @@ -0,0 +1,94 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +精灵代说 API请求 +taobao.ailab.aicloud.top.message.addtext + +精灵代说 +*/ +type TaobaoAilabAicloudTopMessageAddtextAPIRequest struct { + model.Params + // 用户信息 + _param0 *OpenBaseInfo + // 设备id + _param1 string + // 代说文本 + _param2 string + // 扩展信息,可以为空 + _param3 string +} + +// 初始化TaobaoAilabAicloudTopMessageAddtextAPIRequest对象 +func NewTaobaoAilabAicloudTopMessageAddtextRequest() *TaobaoAilabAicloudTopMessageAddtextAPIRequest{ + return &TaobaoAilabAicloudTopMessageAddtextAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopMessageAddtextAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.message.addtext" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopMessageAddtextAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 用户信息 +func (r *TaobaoAilabAicloudTopMessageAddtextAPIRequest) SetParam0(_param0 *OpenBaseInfo) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoAilabAicloudTopMessageAddtextAPIRequest) GetParam0() *OpenBaseInfo { + return r._param0 +} +// Param1 Setter +// 设备id +func (r *TaobaoAilabAicloudTopMessageAddtextAPIRequest) SetParam1(_param1 string) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r TaobaoAilabAicloudTopMessageAddtextAPIRequest) GetParam1() string { + return r._param1 +} +// Param2 Setter +// 代说文本 +func (r *TaobaoAilabAicloudTopMessageAddtextAPIRequest) SetParam2(_param2 string) error { + r._param2 = _param2 + r.Set("param2", _param2) + return nil +} + +// Param2 Getter +func (r TaobaoAilabAicloudTopMessageAddtextAPIRequest) GetParam2() string { + return r._param2 +} +// Param3 Setter +// 扩展信息,可以为空 +func (r *TaobaoAilabAicloudTopMessageAddtextAPIRequest) SetParam3(_param3 string) error { + r._param3 = _param3 + r.Set("param3", _param3) + return nil +} + +// Param3 Getter +func (r TaobaoAilabAicloudTopMessageAddtextAPIRequest) GetParam3() string { + return r._param3 +} diff --git a/model/iot/TaobaoAilabAicloudTopMessageAddtextAPIResponse.go b/model/iot/TaobaoAilabAicloudTopMessageAddtextAPIResponse.go new file mode 100644 index 0000000000..ebf721da35 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopMessageAddtextAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +精灵代说 API返回值 +taobao.ailab.aicloud.top.message.addtext + +精灵代说 +*/ +type TaobaoAilabAicloudTopMessageAddtextAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopMessageAddtextAPIResponseModel +} + +// 精灵代说 成功返回结果 +type TaobaoAilabAicloudTopMessageAddtextAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_message_addtext_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopMessageAddtextResponse.go b/model/iot/TaobaoAilabAicloudTopMessageAddtextResponse.go deleted file mode 100644 index b06858365c..0000000000 --- a/model/iot/TaobaoAilabAicloudTopMessageAddtextResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -精灵代说 API返回值 -taobao.ailab.aicloud.top.message.addtext - -精灵代说 -*/ -type TaobaoAilabAicloudTopMessageAddtextAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopMessageAddtextResponse -} - -// 精灵代说 成功返回结果 -type TaobaoAilabAicloudTopMessageAddtextResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_message_addtext_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopMessageGetUnreadCountAPIRequest.go b/model/iot/TaobaoAilabAicloudTopMessageGetUnreadCountAPIRequest.go new file mode 100644 index 0000000000..131efa9a2d --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopMessageGetUnreadCountAPIRequest.go @@ -0,0 +1,94 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取未读的消息数量 API请求 +taobao.ailab.aicloud.top.message.get.unread.count + +开放获取未读留言数量的接口 +*/ +type TaobaoAilabAicloudTopMessageGetUnreadCountAPIRequest struct { + model.Params + // 账户体系隔离 + _schema string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 扩展信息,用于存放APP类型等 + _ext string +} + +// 初始化TaobaoAilabAicloudTopMessageGetUnreadCountAPIRequest对象 +func NewTaobaoAilabAicloudTopMessageGetUnreadCountRequest() *TaobaoAilabAicloudTopMessageGetUnreadCountAPIRequest{ + return &TaobaoAilabAicloudTopMessageGetUnreadCountAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopMessageGetUnreadCountAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.message.get.unread.count" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopMessageGetUnreadCountAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// 账户体系隔离 +func (r *TaobaoAilabAicloudTopMessageGetUnreadCountAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopMessageGetUnreadCountAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *TaobaoAilabAicloudTopMessageGetUnreadCountAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopMessageGetUnreadCountAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopMessageGetUnreadCountAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopMessageGetUnreadCountAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopMessageGetUnreadCountAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopMessageGetUnreadCountAPIRequest) GetExt() string { + return r._ext +} diff --git a/model/iot/TaobaoAilabAicloudTopMessageGetUnreadCountAPIResponse.go b/model/iot/TaobaoAilabAicloudTopMessageGetUnreadCountAPIResponse.go new file mode 100644 index 0000000000..4b0e143995 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopMessageGetUnreadCountAPIResponse.go @@ -0,0 +1,31 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取未读的消息数量 API返回值 +taobao.ailab.aicloud.top.message.get.unread.count + +开放获取未读留言数量的接口 +*/ +type TaobaoAilabAicloudTopMessageGetUnreadCountAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopMessageGetUnreadCountAPIResponseModel +} + +// 获取未读的消息数量 成功返回结果 +type TaobaoAilabAicloudTopMessageGetUnreadCountAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_message_get_unread_count_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 未读留言的数量 + Model int64 `json:"model,omitempty" xml:"model,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 异常描述 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopMessageGetUnreadCountResponse.go b/model/iot/TaobaoAilabAicloudTopMessageGetUnreadCountResponse.go deleted file mode 100644 index a57dd9e029..0000000000 --- a/model/iot/TaobaoAilabAicloudTopMessageGetUnreadCountResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取未读的消息数量 API返回值 -taobao.ailab.aicloud.top.message.get.unread.count - -开放获取未读留言数量的接口 -*/ -type TaobaoAilabAicloudTopMessageGetUnreadCountAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopMessageGetUnreadCountResponse -} - -// 获取未读的消息数量 成功返回结果 -type TaobaoAilabAicloudTopMessageGetUnreadCountResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_message_get_unread_count_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 未读留言的数量 - Model int64 `json:"model,omitempty" xml:"model,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 异常描述 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopMessageListAPIRequest.go b/model/iot/TaobaoAilabAicloudTopMessageListAPIRequest.go new file mode 100644 index 0000000000..2eae1be2e6 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopMessageListAPIRequest.go @@ -0,0 +1,122 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取留言列表 API请求 +taobao.ailab.aicloud.top.message.list + +根据指定参数获取留言列表 +*/ +type TaobaoAilabAicloudTopMessageListAPIRequest struct { + model.Params + // 账户体系隔离 + _schema string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 扩展信息,用于存放APP类型等 + _ext string + // 截止时间,yyyy-MM-dd HH:mm:ss.SSS + _beforeTime string + // 一次性展示多少条信息 + _limit int64 +} + +// 初始化TaobaoAilabAicloudTopMessageListAPIRequest对象 +func NewTaobaoAilabAicloudTopMessageListRequest() *TaobaoAilabAicloudTopMessageListAPIRequest{ + return &TaobaoAilabAicloudTopMessageListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopMessageListAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.message.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopMessageListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// 账户体系隔离 +func (r *TaobaoAilabAicloudTopMessageListAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopMessageListAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *TaobaoAilabAicloudTopMessageListAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopMessageListAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopMessageListAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopMessageListAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopMessageListAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopMessageListAPIRequest) GetExt() string { + return r._ext +} +// BeforeTime Setter +// 截止时间,yyyy-MM-dd HH:mm:ss.SSS +func (r *TaobaoAilabAicloudTopMessageListAPIRequest) SetBeforeTime(_beforeTime string) error { + r._beforeTime = _beforeTime + r.Set("before_time", _beforeTime) + return nil +} + +// BeforeTime Getter +func (r TaobaoAilabAicloudTopMessageListAPIRequest) GetBeforeTime() string { + return r._beforeTime +} +// Limit Setter +// 一次性展示多少条信息 +func (r *TaobaoAilabAicloudTopMessageListAPIRequest) SetLimit(_limit int64) error { + r._limit = _limit + r.Set("limit", _limit) + return nil +} + +// Limit Getter +func (r TaobaoAilabAicloudTopMessageListAPIRequest) GetLimit() int64 { + return r._limit +} diff --git a/model/iot/TaobaoAilabAicloudTopMessageListAPIResponse.go b/model/iot/TaobaoAilabAicloudTopMessageListAPIResponse.go new file mode 100644 index 0000000000..529322ce37 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopMessageListAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取留言列表 API返回值 +taobao.ailab.aicloud.top.message.list + +根据指定参数获取留言列表 +*/ +type TaobaoAilabAicloudTopMessageListAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopMessageListAPIResponseModel +} + +// 获取留言列表 成功返回结果 +type TaobaoAilabAicloudTopMessageListAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_message_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopMessageListResponse.go b/model/iot/TaobaoAilabAicloudTopMessageListResponse.go deleted file mode 100644 index 6b6329ecbd..0000000000 --- a/model/iot/TaobaoAilabAicloudTopMessageListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取留言列表 API返回值 -taobao.ailab.aicloud.top.message.list - -根据指定参数获取留言列表 -*/ -type TaobaoAilabAicloudTopMessageListAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopMessageListResponse -} - -// 获取留言列表 成功返回结果 -type TaobaoAilabAicloudTopMessageListResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_message_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TaobaoAilabAicloudTopMessageSendAPIRequest.go b/model/iot/TaobaoAilabAicloudTopMessageSendAPIRequest.go new file mode 100644 index 0000000000..b9efdd516d --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopMessageSendAPIRequest.go @@ -0,0 +1,108 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发送留言 API请求 +taobao.ailab.aicloud.top.message.send + +供准入的外部用户实现发送留言功能,APP端发送,设备端读取 +*/ +type TaobaoAilabAicloudTopMessageSendAPIRequest struct { + model.Params + // 扩展信息,用于存放APP类型等 + _ext string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 账户体系隔离 + _schema string + // 用户上传到OSS上的文件路径,不包含域名 + _audioPath string +} + +// 初始化TaobaoAilabAicloudTopMessageSendAPIRequest对象 +func NewTaobaoAilabAicloudTopMessageSendRequest() *TaobaoAilabAicloudTopMessageSendAPIRequest{ + return &TaobaoAilabAicloudTopMessageSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopMessageSendAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.message.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopMessageSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopMessageSendAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopMessageSendAPIRequest) GetExt() string { + return r._ext +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopMessageSendAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopMessageSendAPIRequest) GetUtdId() string { + return r._utdId +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *TaobaoAilabAicloudTopMessageSendAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopMessageSendAPIRequest) GetUserId() string { + return r._userId +} +// Schema Setter +// 账户体系隔离 +func (r *TaobaoAilabAicloudTopMessageSendAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopMessageSendAPIRequest) GetSchema() string { + return r._schema +} +// AudioPath Setter +// 用户上传到OSS上的文件路径,不包含域名 +func (r *TaobaoAilabAicloudTopMessageSendAPIRequest) SetAudioPath(_audioPath string) error { + r._audioPath = _audioPath + r.Set("audio_path", _audioPath) + return nil +} + +// AudioPath Getter +func (r TaobaoAilabAicloudTopMessageSendAPIRequest) GetAudioPath() string { + return r._audioPath +} diff --git a/model/iot/TaobaoAilabAicloudTopMessageSendAPIResponse.go b/model/iot/TaobaoAilabAicloudTopMessageSendAPIResponse.go new file mode 100644 index 0000000000..9791484016 --- /dev/null +++ b/model/iot/TaobaoAilabAicloudTopMessageSendAPIResponse.go @@ -0,0 +1,31 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发送留言 API返回值 +taobao.ailab.aicloud.top.message.send + +供准入的外部用户实现发送留言功能,APP端发送,设备端读取 +*/ +type TaobaoAilabAicloudTopMessageSendAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopMessageSendAPIResponseModel +} + +// 发送留言 成功返回结果 +type TaobaoAilabAicloudTopMessageSendAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_message_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // model + Model bool `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/iot/TaobaoAilabAicloudTopMessageSendResponse.go b/model/iot/TaobaoAilabAicloudTopMessageSendResponse.go deleted file mode 100644 index 52d94a4555..0000000000 --- a/model/iot/TaobaoAilabAicloudTopMessageSendResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发送留言 API返回值 -taobao.ailab.aicloud.top.message.send - -供准入的外部用户实现发送留言功能,APP端发送,设备端读取 -*/ -type TaobaoAilabAicloudTopMessageSendAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopMessageSendResponse -} - -// 发送留言 成功返回结果 -type TaobaoAilabAicloudTopMessageSendResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_message_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // model - Model bool `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/iot/TmallDeviceBrandMemberurlGetAPIRequest.go b/model/iot/TmallDeviceBrandMemberurlGetAPIRequest.go new file mode 100644 index 0000000000..203912a550 --- /dev/null +++ b/model/iot/TmallDeviceBrandMemberurlGetAPIRequest.go @@ -0,0 +1,108 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取智能硬件旗舰店入会码 API请求 +tmall.device.brand.memberurl.get + +获取旗舰店在智能硬件上的入会码 +*/ +type TmallDeviceBrandMemberurlGetAPIRequest struct { + model.Params + // 设备DeviceCode + _deviceCode string + // 入会后的回调地址 + _callbackUrl string + // 是否使用长期链接 + _longterm bool + // 页面banner的图片,如果没有传入,会使用系统默认图 + _bannerImg string + // 是否同时关注天猫理想站 + _followRetailAccount bool +} + +// 初始化TmallDeviceBrandMemberurlGetAPIRequest对象 +func NewTmallDeviceBrandMemberurlGetRequest() *TmallDeviceBrandMemberurlGetAPIRequest{ + return &TmallDeviceBrandMemberurlGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallDeviceBrandMemberurlGetAPIRequest) GetApiMethodName() string { + return "tmall.device.brand.memberurl.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallDeviceBrandMemberurlGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceCode Setter +// 设备DeviceCode +func (r *TmallDeviceBrandMemberurlGetAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r TmallDeviceBrandMemberurlGetAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// CallbackUrl Setter +// 入会后的回调地址 +func (r *TmallDeviceBrandMemberurlGetAPIRequest) SetCallbackUrl(_callbackUrl string) error { + r._callbackUrl = _callbackUrl + r.Set("callback_url", _callbackUrl) + return nil +} + +// CallbackUrl Getter +func (r TmallDeviceBrandMemberurlGetAPIRequest) GetCallbackUrl() string { + return r._callbackUrl +} +// Longterm Setter +// 是否使用长期链接 +func (r *TmallDeviceBrandMemberurlGetAPIRequest) SetLongterm(_longterm bool) error { + r._longterm = _longterm + r.Set("longterm", _longterm) + return nil +} + +// Longterm Getter +func (r TmallDeviceBrandMemberurlGetAPIRequest) GetLongterm() bool { + return r._longterm +} +// BannerImg Setter +// 页面banner的图片,如果没有传入,会使用系统默认图 +func (r *TmallDeviceBrandMemberurlGetAPIRequest) SetBannerImg(_bannerImg string) error { + r._bannerImg = _bannerImg + r.Set("banner_img", _bannerImg) + return nil +} + +// BannerImg Getter +func (r TmallDeviceBrandMemberurlGetAPIRequest) GetBannerImg() string { + return r._bannerImg +} +// FollowRetailAccount Setter +// 是否同时关注天猫理想站 +func (r *TmallDeviceBrandMemberurlGetAPIRequest) SetFollowRetailAccount(_followRetailAccount bool) error { + r._followRetailAccount = _followRetailAccount + r.Set("follow_retail_account", _followRetailAccount) + return nil +} + +// FollowRetailAccount Getter +func (r TmallDeviceBrandMemberurlGetAPIRequest) GetFollowRetailAccount() bool { + return r._followRetailAccount +} diff --git a/model/iot/TmallDeviceBrandMemberurlGetAPIResponse.go b/model/iot/TmallDeviceBrandMemberurlGetAPIResponse.go new file mode 100644 index 0000000000..88de17e155 --- /dev/null +++ b/model/iot/TmallDeviceBrandMemberurlGetAPIResponse.go @@ -0,0 +1,29 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取智能硬件旗舰店入会码 API返回值 +tmall.device.brand.memberurl.get + +获取旗舰店在智能硬件上的入会码 +*/ +type TmallDeviceBrandMemberurlGetAPIResponse struct { + model.CommonResponse + TmallDeviceBrandMemberurlGetAPIResponseModel +} + +// 获取智能硬件旗舰店入会码 成功返回结果 +type TmallDeviceBrandMemberurlGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_device_brand_memberurl_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 二维码图片URL + ShortImgUrl string `json:"short_img_url,omitempty" xml:"short_img_url,omitempty"` + // 二维码短链接地址 + ShortUrl string `json:"short_url,omitempty" xml:"short_url,omitempty"` +} diff --git a/model/iot/TmallDeviceBrandMemberurlGetResponse.go b/model/iot/TmallDeviceBrandMemberurlGetResponse.go deleted file mode 100644 index 316d6aada4..0000000000 --- a/model/iot/TmallDeviceBrandMemberurlGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取智能硬件旗舰店入会码 API返回值 -tmall.device.brand.memberurl.get - -获取旗舰店在智能硬件上的入会码 -*/ -type TmallDeviceBrandMemberurlGetAPIResponse struct { - model.CommonResponse - TmallDeviceBrandMemberurlGetResponse -} - -// 获取智能硬件旗舰店入会码 成功返回结果 -type TmallDeviceBrandMemberurlGetResponse struct { - XMLName xml.Name `xml:"tmall_device_brand_memberurl_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 二维码图片URL - ShortImgUrl string `json:"short_img_url,omitempty" xml:"short_img_url,omitempty"` - // 二维码短链接地址 - ShortUrl string `json:"short_url,omitempty" xml:"short_url,omitempty"` -} diff --git a/model/iot/TmallDeviceCarturlGetAPIRequest.go b/model/iot/TmallDeviceCarturlGetAPIRequest.go new file mode 100644 index 0000000000..55af70d8cc --- /dev/null +++ b/model/iot/TmallDeviceCarturlGetAPIRequest.go @@ -0,0 +1,80 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加商品到购物车 API请求 +tmall.device.carturl.get + +获取二维码,支持添加商品到购物车 +*/ +type TmallDeviceCarturlGetAPIRequest struct { + model.Params + // 商品信息,格式为 商品ID_SKU ID_数量,多条记录以逗号(,)分割 + _itemIds []string + // 设备业务编码 + _deviceCode string + // 是否申请长期链接 + _longterm bool +} + +// 初始化TmallDeviceCarturlGetAPIRequest对象 +func NewTmallDeviceCarturlGetRequest() *TmallDeviceCarturlGetAPIRequest{ + return &TmallDeviceCarturlGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallDeviceCarturlGetAPIRequest) GetApiMethodName() string { + return "tmall.device.carturl.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallDeviceCarturlGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemIds Setter +// 商品信息,格式为 商品ID_SKU ID_数量,多条记录以逗号(,)分割 +func (r *TmallDeviceCarturlGetAPIRequest) SetItemIds(_itemIds []string) error { + r._itemIds = _itemIds + r.Set("item_ids", _itemIds) + return nil +} + +// ItemIds Getter +func (r TmallDeviceCarturlGetAPIRequest) GetItemIds() []string { + return r._itemIds +} +// DeviceCode Setter +// 设备业务编码 +func (r *TmallDeviceCarturlGetAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r TmallDeviceCarturlGetAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// Longterm Setter +// 是否申请长期链接 +func (r *TmallDeviceCarturlGetAPIRequest) SetLongterm(_longterm bool) error { + r._longterm = _longterm + r.Set("longterm", _longterm) + return nil +} + +// Longterm Getter +func (r TmallDeviceCarturlGetAPIRequest) GetLongterm() bool { + return r._longterm +} diff --git a/model/iot/TmallDeviceCarturlGetAPIResponse.go b/model/iot/TmallDeviceCarturlGetAPIResponse.go new file mode 100644 index 0000000000..3947658cc3 --- /dev/null +++ b/model/iot/TmallDeviceCarturlGetAPIResponse.go @@ -0,0 +1,29 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加商品到购物车 API返回值 +tmall.device.carturl.get + +获取二维码,支持添加商品到购物车 +*/ +type TmallDeviceCarturlGetAPIResponse struct { + model.CommonResponse + TmallDeviceCarturlGetAPIResponseModel +} + +// 添加商品到购物车 成功返回结果 +type TmallDeviceCarturlGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_device_carturl_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 二维码短链接地址 + ShortUrl string `json:"short_url,omitempty" xml:"short_url,omitempty"` + // 二维码图片URL + ShortImgUrl string `json:"short_img_url,omitempty" xml:"short_img_url,omitempty"` +} diff --git a/model/iot/TmallDeviceCarturlGetResponse.go b/model/iot/TmallDeviceCarturlGetResponse.go deleted file mode 100644 index 4d1755ec03..0000000000 --- a/model/iot/TmallDeviceCarturlGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加商品到购物车 API返回值 -tmall.device.carturl.get - -获取二维码,支持添加商品到购物车 -*/ -type TmallDeviceCarturlGetAPIResponse struct { - model.CommonResponse - TmallDeviceCarturlGetResponse -} - -// 添加商品到购物车 成功返回结果 -type TmallDeviceCarturlGetResponse struct { - XMLName xml.Name `xml:"tmall_device_carturl_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 二维码短链接地址 - ShortUrl string `json:"short_url,omitempty" xml:"short_url,omitempty"` - // 二维码图片URL - ShortImgUrl string `json:"short_img_url,omitempty" xml:"short_img_url,omitempty"` -} diff --git a/model/iot/TmallDeviceItemPromotionGetAPIRequest.go b/model/iot/TmallDeviceItemPromotionGetAPIRequest.go new file mode 100644 index 0000000000..1ad00546db --- /dev/null +++ b/model/iot/TmallDeviceItemPromotionGetAPIRequest.go @@ -0,0 +1,52 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +智能硬件上商品优惠获取 API请求 +tmall.device.item.promotion.get + +商品优惠详情查询,可查询商品设置的详细优惠。包括限时折扣,满就送等官方优惠以及第三方优惠。 +*/ +type TmallDeviceItemPromotionGetAPIRequest struct { + model.Params + // 商品id + _itemId int64 +} + +// 初始化TmallDeviceItemPromotionGetAPIRequest对象 +func NewTmallDeviceItemPromotionGetRequest() *TmallDeviceItemPromotionGetAPIRequest{ + return &TmallDeviceItemPromotionGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallDeviceItemPromotionGetAPIRequest) GetApiMethodName() string { + return "tmall.device.item.promotion.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallDeviceItemPromotionGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TmallDeviceItemPromotionGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallDeviceItemPromotionGetAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/iot/TmallDeviceItemPromotionGetAPIResponse.go b/model/iot/TmallDeviceItemPromotionGetAPIResponse.go new file mode 100644 index 0000000000..9cc9d1060f --- /dev/null +++ b/model/iot/TmallDeviceItemPromotionGetAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +智能硬件上商品优惠获取 API返回值 +tmall.device.item.promotion.get + +商品优惠详情查询,可查询商品设置的详细优惠。包括限时折扣,满就送等官方优惠以及第三方优惠。 +*/ +type TmallDeviceItemPromotionGetAPIResponse struct { + model.CommonResponse + TmallDeviceItemPromotionGetAPIResponseModel +} + +// 智能硬件上商品优惠获取 成功返回结果 +type TmallDeviceItemPromotionGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_device_item_promotion_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 优惠详细信息 + Promotions *PromotionDisplayTop `json:"promotions,omitempty" xml:"promotions,omitempty"` +} diff --git a/model/iot/TmallDeviceItemPromotionGetResponse.go b/model/iot/TmallDeviceItemPromotionGetResponse.go deleted file mode 100644 index d066b86212..0000000000 --- a/model/iot/TmallDeviceItemPromotionGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -智能硬件上商品优惠获取 API返回值 -tmall.device.item.promotion.get - -商品优惠详情查询,可查询商品设置的详细优惠。包括限时折扣,满就送等官方优惠以及第三方优惠。 -*/ -type TmallDeviceItemPromotionGetAPIResponse struct { - model.CommonResponse - TmallDeviceItemPromotionGetResponse -} - -// 智能硬件上商品优惠获取 成功返回结果 -type TmallDeviceItemPromotionGetResponse struct { - XMLName xml.Name `xml:"tmall_device_item_promotion_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 优惠详细信息 - Promotions *PromotionDisplayTop `json:"promotions,omitempty" xml:"promotions,omitempty"` -} diff --git a/model/iot/TmallDeviceMemberIdentityGetAPIRequest.go b/model/iot/TmallDeviceMemberIdentityGetAPIRequest.go new file mode 100644 index 0000000000..7164439cc0 --- /dev/null +++ b/model/iot/TmallDeviceMemberIdentityGetAPIRequest.go @@ -0,0 +1,80 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +智能硬件会员判断 API请求 +tmall.device.member.identity.get + +用来识别该用户是否是商家会员· +*/ +type TmallDeviceMemberIdentityGetAPIRequest struct { + model.Params + // 扩展参数为JSON字符串,用于埋点统计,source为来源字段固定值 paiyangji代表来源派样机类型设备,deviceId 为设备id,itemId 相关商品id + _extraInfo string + // 混淆昵称, + _mixNick string + // 明文nick,可不填,直接填混淆昵称 + _nick string +} + +// 初始化TmallDeviceMemberIdentityGetAPIRequest对象 +func NewTmallDeviceMemberIdentityGetRequest() *TmallDeviceMemberIdentityGetAPIRequest{ + return &TmallDeviceMemberIdentityGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallDeviceMemberIdentityGetAPIRequest) GetApiMethodName() string { + return "tmall.device.member.identity.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallDeviceMemberIdentityGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExtraInfo Setter +// 扩展参数为JSON字符串,用于埋点统计,source为来源字段固定值 paiyangji代表来源派样机类型设备,deviceId 为设备id,itemId 相关商品id +func (r *TmallDeviceMemberIdentityGetAPIRequest) SetExtraInfo(_extraInfo string) error { + r._extraInfo = _extraInfo + r.Set("extra_info", _extraInfo) + return nil +} + +// ExtraInfo Getter +func (r TmallDeviceMemberIdentityGetAPIRequest) GetExtraInfo() string { + return r._extraInfo +} +// MixNick Setter +// 混淆昵称, +func (r *TmallDeviceMemberIdentityGetAPIRequest) SetMixNick(_mixNick string) error { + r._mixNick = _mixNick + r.Set("mix_nick", _mixNick) + return nil +} + +// MixNick Getter +func (r TmallDeviceMemberIdentityGetAPIRequest) GetMixNick() string { + return r._mixNick +} +// Nick Setter +// 明文nick,可不填,直接填混淆昵称 +func (r *TmallDeviceMemberIdentityGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TmallDeviceMemberIdentityGetAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/iot/TmallDeviceMemberIdentityGetAPIResponse.go b/model/iot/TmallDeviceMemberIdentityGetAPIResponse.go new file mode 100644 index 0000000000..cbd78a672e --- /dev/null +++ b/model/iot/TmallDeviceMemberIdentityGetAPIResponse.go @@ -0,0 +1,27 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +智能硬件会员判断 API返回值 +tmall.device.member.identity.get + +用来识别该用户是否是商家会员· +*/ +type TmallDeviceMemberIdentityGetAPIResponse struct { + model.CommonResponse + TmallDeviceMemberIdentityGetAPIResponseModel +} + +// 智能硬件会员判断 成功返回结果 +type TmallDeviceMemberIdentityGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_device_member_identity_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallDeviceMemberIdentityGetResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iot/TmallDeviceMemberIdentityGetResponse.go b/model/iot/TmallDeviceMemberIdentityGetResponse.go deleted file mode 100644 index fe14de9743..0000000000 --- a/model/iot/TmallDeviceMemberIdentityGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -智能硬件会员判断 API返回值 -tmall.device.member.identity.get - -用来识别该用户是否是商家会员· -*/ -type TmallDeviceMemberIdentityGetAPIResponse struct { - model.CommonResponse - TmallDeviceMemberIdentityGetResponse -} - -// 智能硬件会员判断 成功返回结果 -type TmallDeviceMemberIdentityGetResponse struct { - XMLName xml.Name `xml:"tmall_device_member_identity_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallDeviceMemberIdentityGetResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iot/TmallDeviceMemberIdentityGetResultDto.go b/model/iot/TmallDeviceMemberIdentityGetResultDto.go new file mode 100644 index 0000000000..789f7c37e9 --- /dev/null +++ b/model/iot/TmallDeviceMemberIdentityGetResultDto.go @@ -0,0 +1,13 @@ +package iot + +// TmallDeviceMemberIdentityGetResultDto +type TmallDeviceMemberIdentityGetResultDto struct { + // total + Total int64 `json:"total,omitempty" xml:"total,omitempty"` + // result + MemberInfo *MemberAccountDto `json:"member_info,omitempty" xml:"member_info,omitempty"` + // code + Code string `json:"code,omitempty" xml:"code,omitempty"` + // msg + Msg string `json:"msg,omitempty" xml:"msg,omitempty"` +} diff --git a/model/iot/TmallDeviceShortchainurlGetAPIRequest.go b/model/iot/TmallDeviceShortchainurlGetAPIRequest.go new file mode 100644 index 0000000000..1998d2e1c7 --- /dev/null +++ b/model/iot/TmallDeviceShortchainurlGetAPIRequest.go @@ -0,0 +1,108 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取二维码短链接 API请求 +tmall.device.shortchainurl.get + +获取二维码短链接 +*/ +type TmallDeviceShortchainurlGetAPIRequest struct { + model.Params + // 是否需要长期二维码,默认否 + _longterm bool + // 需要生成短链接的url + _url string + // 设备DeviceCode + _deviceCode string + // 商户中心门店ID + _storeId int64 + // 动作类型,支持自定义 + _action string +} + +// 初始化TmallDeviceShortchainurlGetAPIRequest对象 +func NewTmallDeviceShortchainurlGetRequest() *TmallDeviceShortchainurlGetAPIRequest{ + return &TmallDeviceShortchainurlGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallDeviceShortchainurlGetAPIRequest) GetApiMethodName() string { + return "tmall.device.shortchainurl.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallDeviceShortchainurlGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Longterm Setter +// 是否需要长期二维码,默认否 +func (r *TmallDeviceShortchainurlGetAPIRequest) SetLongterm(_longterm bool) error { + r._longterm = _longterm + r.Set("longterm", _longterm) + return nil +} + +// Longterm Getter +func (r TmallDeviceShortchainurlGetAPIRequest) GetLongterm() bool { + return r._longterm +} +// Url Setter +// 需要生成短链接的url +func (r *TmallDeviceShortchainurlGetAPIRequest) SetUrl(_url string) error { + r._url = _url + r.Set("url", _url) + return nil +} + +// Url Getter +func (r TmallDeviceShortchainurlGetAPIRequest) GetUrl() string { + return r._url +} +// DeviceCode Setter +// 设备DeviceCode +func (r *TmallDeviceShortchainurlGetAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r TmallDeviceShortchainurlGetAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// StoreId Setter +// 商户中心门店ID +func (r *TmallDeviceShortchainurlGetAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TmallDeviceShortchainurlGetAPIRequest) GetStoreId() int64 { + return r._storeId +} +// Action Setter +// 动作类型,支持自定义 +func (r *TmallDeviceShortchainurlGetAPIRequest) SetAction(_action string) error { + r._action = _action + r.Set("action", _action) + return nil +} + +// Action Getter +func (r TmallDeviceShortchainurlGetAPIRequest) GetAction() string { + return r._action +} diff --git a/model/iot/TmallDeviceShortchainurlGetAPIResponse.go b/model/iot/TmallDeviceShortchainurlGetAPIResponse.go new file mode 100644 index 0000000000..087cdd480c --- /dev/null +++ b/model/iot/TmallDeviceShortchainurlGetAPIResponse.go @@ -0,0 +1,29 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取二维码短链接 API返回值 +tmall.device.shortchainurl.get + +获取二维码短链接 +*/ +type TmallDeviceShortchainurlGetAPIResponse struct { + model.CommonResponse + TmallDeviceShortchainurlGetAPIResponseModel +} + +// 获取二维码短链接 成功返回结果 +type TmallDeviceShortchainurlGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_device_shortchainurl_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 二维码图片地址 + ShortImgUrl string `json:"short_img_url,omitempty" xml:"short_img_url,omitempty"` + // 短链接url + ShortUrl string `json:"short_url,omitempty" xml:"short_url,omitempty"` +} diff --git a/model/iot/TmallDeviceShortchainurlGetResponse.go b/model/iot/TmallDeviceShortchainurlGetResponse.go deleted file mode 100644 index 187889597b..0000000000 --- a/model/iot/TmallDeviceShortchainurlGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取二维码短链接 API返回值 -tmall.device.shortchainurl.get - -获取二维码短链接 -*/ -type TmallDeviceShortchainurlGetAPIResponse struct { - model.CommonResponse - TmallDeviceShortchainurlGetResponse -} - -// 获取二维码短链接 成功返回结果 -type TmallDeviceShortchainurlGetResponse struct { - XMLName xml.Name `xml:"tmall_device_shortchainurl_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 二维码图片地址 - ShortImgUrl string `json:"short_img_url,omitempty" xml:"short_img_url,omitempty"` - // 短链接url - ShortUrl string `json:"short_url,omitempty" xml:"short_url,omitempty"` -} diff --git a/model/iot/TmallDeviceStoreFollowurlGetAPIRequest.go b/model/iot/TmallDeviceStoreFollowurlGetAPIRequest.go new file mode 100644 index 0000000000..a8d6fe1a13 --- /dev/null +++ b/model/iot/TmallDeviceStoreFollowurlGetAPIRequest.go @@ -0,0 +1,108 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取店铺关注链接 API请求 +tmall.device.store.followurl.get + +获取智能硬件上的关注店铺的URL +*/ +type TmallDeviceStoreFollowurlGetAPIRequest struct { + model.Params + // 设备DeviceCode + _deviceCode string + // 关注完成后的回调地址,需要是EWS地址 + _callbackUrl string + // 是否同时关注天猫理想站 + _followRetailAccount bool + // 是否使用长期链接 + _longterm bool + // 页面banner的图片,如果没有传入,会使用系统默认图 + _bannerImg string +} + +// 初始化TmallDeviceStoreFollowurlGetAPIRequest对象 +func NewTmallDeviceStoreFollowurlGetRequest() *TmallDeviceStoreFollowurlGetAPIRequest{ + return &TmallDeviceStoreFollowurlGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallDeviceStoreFollowurlGetAPIRequest) GetApiMethodName() string { + return "tmall.device.store.followurl.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallDeviceStoreFollowurlGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceCode Setter +// 设备DeviceCode +func (r *TmallDeviceStoreFollowurlGetAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r TmallDeviceStoreFollowurlGetAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// CallbackUrl Setter +// 关注完成后的回调地址,需要是EWS地址 +func (r *TmallDeviceStoreFollowurlGetAPIRequest) SetCallbackUrl(_callbackUrl string) error { + r._callbackUrl = _callbackUrl + r.Set("callback_url", _callbackUrl) + return nil +} + +// CallbackUrl Getter +func (r TmallDeviceStoreFollowurlGetAPIRequest) GetCallbackUrl() string { + return r._callbackUrl +} +// FollowRetailAccount Setter +// 是否同时关注天猫理想站 +func (r *TmallDeviceStoreFollowurlGetAPIRequest) SetFollowRetailAccount(_followRetailAccount bool) error { + r._followRetailAccount = _followRetailAccount + r.Set("follow_retail_account", _followRetailAccount) + return nil +} + +// FollowRetailAccount Getter +func (r TmallDeviceStoreFollowurlGetAPIRequest) GetFollowRetailAccount() bool { + return r._followRetailAccount +} +// Longterm Setter +// 是否使用长期链接 +func (r *TmallDeviceStoreFollowurlGetAPIRequest) SetLongterm(_longterm bool) error { + r._longterm = _longterm + r.Set("longterm", _longterm) + return nil +} + +// Longterm Getter +func (r TmallDeviceStoreFollowurlGetAPIRequest) GetLongterm() bool { + return r._longterm +} +// BannerImg Setter +// 页面banner的图片,如果没有传入,会使用系统默认图 +func (r *TmallDeviceStoreFollowurlGetAPIRequest) SetBannerImg(_bannerImg string) error { + r._bannerImg = _bannerImg + r.Set("banner_img", _bannerImg) + return nil +} + +// BannerImg Getter +func (r TmallDeviceStoreFollowurlGetAPIRequest) GetBannerImg() string { + return r._bannerImg +} diff --git a/model/iot/TmallDeviceStoreFollowurlGetAPIResponse.go b/model/iot/TmallDeviceStoreFollowurlGetAPIResponse.go new file mode 100644 index 0000000000..e0d2363c7b --- /dev/null +++ b/model/iot/TmallDeviceStoreFollowurlGetAPIResponse.go @@ -0,0 +1,29 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取店铺关注链接 API返回值 +tmall.device.store.followurl.get + +获取智能硬件上的关注店铺的URL +*/ +type TmallDeviceStoreFollowurlGetAPIResponse struct { + model.CommonResponse + TmallDeviceStoreFollowurlGetAPIResponseModel +} + +// 获取店铺关注链接 成功返回结果 +type TmallDeviceStoreFollowurlGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_device_store_followurl_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 二维码短链接地址 + ShortUrl string `json:"short_url,omitempty" xml:"short_url,omitempty"` + // 二维码图片URL + ShortImgUrl string `json:"short_img_url,omitempty" xml:"short_img_url,omitempty"` +} diff --git a/model/iot/TmallDeviceStoreFollowurlGetResponse.go b/model/iot/TmallDeviceStoreFollowurlGetResponse.go deleted file mode 100644 index 6c8cd9d102..0000000000 --- a/model/iot/TmallDeviceStoreFollowurlGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取店铺关注链接 API返回值 -tmall.device.store.followurl.get - -获取智能硬件上的关注店铺的URL -*/ -type TmallDeviceStoreFollowurlGetAPIResponse struct { - model.CommonResponse - TmallDeviceStoreFollowurlGetResponse -} - -// 获取店铺关注链接 成功返回结果 -type TmallDeviceStoreFollowurlGetResponse struct { - XMLName xml.Name `xml:"tmall_device_store_followurl_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 二维码短链接地址 - ShortUrl string `json:"short_url,omitempty" xml:"short_url,omitempty"` - // 二维码图片URL - ShortImgUrl string `json:"short_img_url,omitempty" xml:"short_img_url,omitempty"` -} diff --git a/model/iot/TmallDeviceTradePrecreateAPIRequest.go b/model/iot/TmallDeviceTradePrecreateAPIRequest.go new file mode 100644 index 0000000000..929f6187db --- /dev/null +++ b/model/iot/TmallDeviceTradePrecreateAPIRequest.go @@ -0,0 +1,139 @@ +package iot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +智能硬件上预创建天猫订单 API请求 +tmall.device.trade.precreate + +智能硬件上预创建天猫订单。 +1,use_open_price不再需要传入,使用unit_price传入单价。 +2,订单默认5分钟自动关闭,没有付款的订单在手机淘宝不可见。 +3,同一个码只运行一个用户扫码,多个用户扫一个码会报错 订单不存在。 +*/ +type TmallDeviceTradePrecreateAPIRequest struct { + model.Params + // 交易类型。1,售卖。2,派样 + _type int64 + // 商品列表 + _itemList []TradeItemDo + // 设备业务编码 + _deviceCode string + // 外部订单ID,用户下保证唯一。最大长度22 + _outTradeId string + // 回调地址,当订单创建,付款成功后,会收到回调。必须是https地址,HTTP响应必须包含success,否则系统会重发 + _callbackUrl string + // 导购员手机号码 + _baPhone string + // 导购员所属门店 + _baStoreId int64 +} + +// 初始化TmallDeviceTradePrecreateAPIRequest对象 +func NewTmallDeviceTradePrecreateRequest() *TmallDeviceTradePrecreateAPIRequest{ + return &TmallDeviceTradePrecreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallDeviceTradePrecreateAPIRequest) GetApiMethodName() string { + return "tmall.device.trade.precreate" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallDeviceTradePrecreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// 交易类型。1,售卖。2,派样 +func (r *TmallDeviceTradePrecreateAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TmallDeviceTradePrecreateAPIRequest) GetType() int64 { + return r._type +} +// ItemList Setter +// 商品列表 +func (r *TmallDeviceTradePrecreateAPIRequest) SetItemList(_itemList []TradeItemDo) error { + r._itemList = _itemList + r.Set("item_list", _itemList) + return nil +} + +// ItemList Getter +func (r TmallDeviceTradePrecreateAPIRequest) GetItemList() []TradeItemDo { + return r._itemList +} +// DeviceCode Setter +// 设备业务编码 +func (r *TmallDeviceTradePrecreateAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r TmallDeviceTradePrecreateAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// OutTradeId Setter +// 外部订单ID,用户下保证唯一。最大长度22 +func (r *TmallDeviceTradePrecreateAPIRequest) SetOutTradeId(_outTradeId string) error { + r._outTradeId = _outTradeId + r.Set("out_trade_id", _outTradeId) + return nil +} + +// OutTradeId Getter +func (r TmallDeviceTradePrecreateAPIRequest) GetOutTradeId() string { + return r._outTradeId +} +// CallbackUrl Setter +// 回调地址,当订单创建,付款成功后,会收到回调。必须是https地址,HTTP响应必须包含success,否则系统会重发 +func (r *TmallDeviceTradePrecreateAPIRequest) SetCallbackUrl(_callbackUrl string) error { + r._callbackUrl = _callbackUrl + r.Set("callback_url", _callbackUrl) + return nil +} + +// CallbackUrl Getter +func (r TmallDeviceTradePrecreateAPIRequest) GetCallbackUrl() string { + return r._callbackUrl +} +// BaPhone Setter +// 导购员手机号码 +func (r *TmallDeviceTradePrecreateAPIRequest) SetBaPhone(_baPhone string) error { + r._baPhone = _baPhone + r.Set("ba_phone", _baPhone) + return nil +} + +// BaPhone Getter +func (r TmallDeviceTradePrecreateAPIRequest) GetBaPhone() string { + return r._baPhone +} +// BaStoreId Setter +// 导购员所属门店 +func (r *TmallDeviceTradePrecreateAPIRequest) SetBaStoreId(_baStoreId int64) error { + r._baStoreId = _baStoreId + r.Set("ba_store_id", _baStoreId) + return nil +} + +// BaStoreId Getter +func (r TmallDeviceTradePrecreateAPIRequest) GetBaStoreId() int64 { + return r._baStoreId +} diff --git a/model/iot/TmallDeviceTradePrecreateAPIResponse.go b/model/iot/TmallDeviceTradePrecreateAPIResponse.go new file mode 100644 index 0000000000..7070d3a596 --- /dev/null +++ b/model/iot/TmallDeviceTradePrecreateAPIResponse.go @@ -0,0 +1,36 @@ +package iot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +智能硬件上预创建天猫订单 API返回值 +tmall.device.trade.precreate + +智能硬件上预创建天猫订单。 +1,use_open_price不再需要传入,使用unit_price传入单价。 +2,订单默认5分钟自动关闭,没有付款的订单在手机淘宝不可见。 +3,同一个码只运行一个用户扫码,多个用户扫一个码会报错 订单不存在。 +*/ +type TmallDeviceTradePrecreateAPIResponse struct { + model.CommonResponse + TmallDeviceTradePrecreateAPIResponseModel +} + +// 智能硬件上预创建天猫订单 成功返回结果 +type TmallDeviceTradePrecreateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_device_trade_precreate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 链接有效结束时间 + LifeEnd string `json:"life_end,omitempty" xml:"life_end,omitempty"` + // 链接有效起始时间 + LifeStart string `json:"life_start,omitempty" xml:"life_start,omitempty"` + // 链接二维码图片 + QrCode string `json:"qr_code,omitempty" xml:"qr_code,omitempty"` + // 短链接 + ShortUrl string `json:"short_url,omitempty" xml:"short_url,omitempty"` +} diff --git a/model/iot/TmallDeviceTradePrecreateResponse.go b/model/iot/TmallDeviceTradePrecreateResponse.go deleted file mode 100644 index be91d5ee90..0000000000 --- a/model/iot/TmallDeviceTradePrecreateResponse.go +++ /dev/null @@ -1,36 +0,0 @@ -package iot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -智能硬件上预创建天猫订单 API返回值 -tmall.device.trade.precreate - -智能硬件上预创建天猫订单。 -1,use_open_price不再需要传入,使用unit_price传入单价。 -2,订单默认5分钟自动关闭,没有付款的订单在手机淘宝不可见。 -3,同一个码只运行一个用户扫码,多个用户扫一个码会报错 订单不存在。 -*/ -type TmallDeviceTradePrecreateAPIResponse struct { - model.CommonResponse - TmallDeviceTradePrecreateResponse -} - -// 智能硬件上预创建天猫订单 成功返回结果 -type TmallDeviceTradePrecreateResponse struct { - XMLName xml.Name `xml:"tmall_device_trade_precreate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 链接有效结束时间 - LifeEnd string `json:"life_end,omitempty" xml:"life_end,omitempty"` - // 链接有效起始时间 - LifeStart string `json:"life_start,omitempty" xml:"life_start,omitempty"` - // 链接二维码图片 - QrCode string `json:"qr_code,omitempty" xml:"qr_code,omitempty"` - // 短链接 - ShortUrl string `json:"short_url,omitempty" xml:"short_url,omitempty"` -} diff --git a/model/ioti/AlibabaItAlbumDeviceSendimageAPIRequest.go b/model/ioti/AlibabaItAlbumDeviceSendimageAPIRequest.go new file mode 100644 index 0000000000..00e88bc801 --- /dev/null +++ b/model/ioti/AlibabaItAlbumDeviceSendimageAPIRequest.go @@ -0,0 +1,52 @@ +package ioti + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +相框设备厂测刷图接口 API请求 +alibaba.it.album.device.sendimage + +提供传入电子相框设备mac,mac需属于厂测白名单设备,将设备刷新为系统默认的厂测图片 +*/ +type AlibabaItAlbumDeviceSendimageAPIRequest struct { + model.Params + // 下发图片mac地址 + _mac string +} + +// 初始化AlibabaItAlbumDeviceSendimageAPIRequest对象 +func NewAlibabaItAlbumDeviceSendimageRequest() *AlibabaItAlbumDeviceSendimageAPIRequest{ + return &AlibabaItAlbumDeviceSendimageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaItAlbumDeviceSendimageAPIRequest) GetApiMethodName() string { + return "alibaba.it.album.device.sendimage" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaItAlbumDeviceSendimageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Mac Setter +// 下发图片mac地址 +func (r *AlibabaItAlbumDeviceSendimageAPIRequest) SetMac(_mac string) error { + r._mac = _mac + r.Set("mac", _mac) + return nil +} + +// Mac Getter +func (r AlibabaItAlbumDeviceSendimageAPIRequest) GetMac() string { + return r._mac +} diff --git a/model/ioti/AlibabaItAlbumDeviceSendimageAPIResponse.go b/model/ioti/AlibabaItAlbumDeviceSendimageAPIResponse.go new file mode 100644 index 0000000000..14ead176f9 --- /dev/null +++ b/model/ioti/AlibabaItAlbumDeviceSendimageAPIResponse.go @@ -0,0 +1,27 @@ +package ioti + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +相框设备厂测刷图接口 API返回值 +alibaba.it.album.device.sendimage + +提供传入电子相框设备mac,mac需属于厂测白名单设备,将设备刷新为系统默认的厂测图片 +*/ +type AlibabaItAlbumDeviceSendimageAPIResponse struct { + model.CommonResponse + AlibabaItAlbumDeviceSendimageAPIResponseModel +} + +// 相框设备厂测刷图接口 成功返回结果 +type AlibabaItAlbumDeviceSendimageAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_it_album_device_sendimage_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回错误码与参数 + Resultmsg string `json:"resultmsg,omitempty" xml:"resultmsg,omitempty"` +} diff --git a/model/ioti/AlibabaItAlbumDeviceSendimageResponse.go b/model/ioti/AlibabaItAlbumDeviceSendimageResponse.go deleted file mode 100644 index 6edb3dfa7a..0000000000 --- a/model/ioti/AlibabaItAlbumDeviceSendimageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ioti - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -相框设备厂测刷图接口 API返回值 -alibaba.it.album.device.sendimage - -提供传入电子相框设备mac,mac需属于厂测白名单设备,将设备刷新为系统默认的厂测图片 -*/ -type AlibabaItAlbumDeviceSendimageAPIResponse struct { - model.CommonResponse - AlibabaItAlbumDeviceSendimageResponse -} - -// 相框设备厂测刷图接口 成功返回结果 -type AlibabaItAlbumDeviceSendimageResponse struct { - XMLName xml.Name `xml:"alibaba_it_album_device_sendimage_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回错误码与参数 - Resultmsg string `json:"resultmsg,omitempty" xml:"resultmsg,omitempty"` -} diff --git a/model/ioti/AlibabaItCloudliveGetagentconfigAPIRequest.go b/model/ioti/AlibabaItCloudliveGetagentconfigAPIRequest.go new file mode 100644 index 0000000000..fc8ea1b23f --- /dev/null +++ b/model/ioti/AlibabaItCloudliveGetagentconfigAPIRequest.go @@ -0,0 +1,94 @@ +package ioti + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线上巡店Agent获取配置 API请求 +alibaba.it.cloudlive.getagentconfig + +线上巡店应用,外部Agent设备获取设备配置信息,根据配置信息链接mqtt,跟云端进行进一步的消息通信。 +*/ +type AlibabaItCloudliveGetagentconfigAPIRequest struct { + model.Params + // agent标识信息 + _agentId string + // 时间戳 + _timeStamp int64 + // 签名 + _signature string + // 设备所在IP地址 + _agentIp string +} + +// 初始化AlibabaItCloudliveGetagentconfigAPIRequest对象 +func NewAlibabaItCloudliveGetagentconfigRequest() *AlibabaItCloudliveGetagentconfigAPIRequest{ + return &AlibabaItCloudliveGetagentconfigAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaItCloudliveGetagentconfigAPIRequest) GetApiMethodName() string { + return "alibaba.it.cloudlive.getagentconfig" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaItCloudliveGetagentconfigAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentId Setter +// agent标识信息 +func (r *AlibabaItCloudliveGetagentconfigAPIRequest) SetAgentId(_agentId string) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r AlibabaItCloudliveGetagentconfigAPIRequest) GetAgentId() string { + return r._agentId +} +// TimeStamp Setter +// 时间戳 +func (r *AlibabaItCloudliveGetagentconfigAPIRequest) SetTimeStamp(_timeStamp int64) error { + r._timeStamp = _timeStamp + r.Set("time_stamp", _timeStamp) + return nil +} + +// TimeStamp Getter +func (r AlibabaItCloudliveGetagentconfigAPIRequest) GetTimeStamp() int64 { + return r._timeStamp +} +// Signature Setter +// 签名 +func (r *AlibabaItCloudliveGetagentconfigAPIRequest) SetSignature(_signature string) error { + r._signature = _signature + r.Set("signature", _signature) + return nil +} + +// Signature Getter +func (r AlibabaItCloudliveGetagentconfigAPIRequest) GetSignature() string { + return r._signature +} +// AgentIp Setter +// 设备所在IP地址 +func (r *AlibabaItCloudliveGetagentconfigAPIRequest) SetAgentIp(_agentIp string) error { + r._agentIp = _agentIp + r.Set("agent_ip", _agentIp) + return nil +} + +// AgentIp Getter +func (r AlibabaItCloudliveGetagentconfigAPIRequest) GetAgentIp() string { + return r._agentIp +} diff --git a/model/ioti/AlibabaItCloudliveGetagentconfigAPIResponse.go b/model/ioti/AlibabaItCloudliveGetagentconfigAPIResponse.go new file mode 100644 index 0000000000..0914cdeecf --- /dev/null +++ b/model/ioti/AlibabaItCloudliveGetagentconfigAPIResponse.go @@ -0,0 +1,27 @@ +package ioti + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线上巡店Agent获取配置 API返回值 +alibaba.it.cloudlive.getagentconfig + +线上巡店应用,外部Agent设备获取设备配置信息,根据配置信息链接mqtt,跟云端进行进一步的消息通信。 +*/ +type AlibabaItCloudliveGetagentconfigAPIResponse struct { + model.CommonResponse + AlibabaItCloudliveGetagentconfigAPIResponseModel +} + +// 线上巡店Agent获取配置 成功返回结果 +type AlibabaItCloudliveGetagentconfigAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_it_cloudlive_getagentconfig_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 消息内容 + RespContent *AgentConfigResponse `json:"resp_content,omitempty" xml:"resp_content,omitempty"` +} diff --git a/model/ioti/AlibabaItCloudliveGetagentconfigResponse.go b/model/ioti/AlibabaItCloudliveGetagentconfigResponse.go deleted file mode 100644 index 04ef14b120..0000000000 --- a/model/ioti/AlibabaItCloudliveGetagentconfigResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ioti - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线上巡店Agent获取配置 API返回值 -alibaba.it.cloudlive.getagentconfig - -线上巡店应用,外部Agent设备获取设备配置信息,根据配置信息链接mqtt,跟云端进行进一步的消息通信。 -*/ -type AlibabaItCloudliveGetagentconfigAPIResponse struct { - model.CommonResponse - AlibabaItCloudliveGetagentconfigResponse -} - -// 线上巡店Agent获取配置 成功返回结果 -type AlibabaItCloudliveGetagentconfigResponse struct { - XMLName xml.Name `xml:"alibaba_it_cloudlive_getagentconfig_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 消息内容 - RespContent *AgentConfigResponse `json:"resp_content,omitempty" xml:"resp_content,omitempty"` -} diff --git a/model/ioti/AlibabaItEslEslimageSendimageAPIRequest.go b/model/ioti/AlibabaItEslEslimageSendimageAPIRequest.go new file mode 100644 index 0000000000..4bf5da1408 --- /dev/null +++ b/model/ioti/AlibabaItEslEslimageSendimageAPIRequest.go @@ -0,0 +1,52 @@ +package ioti + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +下发厂测初始化图片 API请求 +alibaba.it.esl.eslimage.sendimage + +工厂对生产出的电子价签进行全流程功能测试,能将出场图片通过ESL系统初始化到电子价签中 +*/ +type AlibabaItEslEslimageSendimageAPIRequest struct { + model.Params + // 价签地址 + _mac string +} + +// 初始化AlibabaItEslEslimageSendimageAPIRequest对象 +func NewAlibabaItEslEslimageSendimageRequest() *AlibabaItEslEslimageSendimageAPIRequest{ + return &AlibabaItEslEslimageSendimageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaItEslEslimageSendimageAPIRequest) GetApiMethodName() string { + return "alibaba.it.esl.eslimage.sendimage" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaItEslEslimageSendimageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Mac Setter +// 价签地址 +func (r *AlibabaItEslEslimageSendimageAPIRequest) SetMac(_mac string) error { + r._mac = _mac + r.Set("mac", _mac) + return nil +} + +// Mac Getter +func (r AlibabaItEslEslimageSendimageAPIRequest) GetMac() string { + return r._mac +} diff --git a/model/ioti/AlibabaItEslEslimageSendimageAPIResponse.go b/model/ioti/AlibabaItEslEslimageSendimageAPIResponse.go new file mode 100644 index 0000000000..e1dd1dc981 --- /dev/null +++ b/model/ioti/AlibabaItEslEslimageSendimageAPIResponse.go @@ -0,0 +1,27 @@ +package ioti + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +下发厂测初始化图片 API返回值 +alibaba.it.esl.eslimage.sendimage + +工厂对生产出的电子价签进行全流程功能测试,能将出场图片通过ESL系统初始化到电子价签中 +*/ +type AlibabaItEslEslimageSendimageAPIResponse struct { + model.CommonResponse + AlibabaItEslEslimageSendimageAPIResponseModel +} + +// 下发厂测初始化图片 成功返回结果 +type AlibabaItEslEslimageSendimageAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_it_esl_eslimage_sendimage_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // resultmsg + Resultmsg string `json:"resultmsg,omitempty" xml:"resultmsg,omitempty"` +} diff --git a/model/ioti/AlibabaItEslEslimageSendimageResponse.go b/model/ioti/AlibabaItEslEslimageSendimageResponse.go deleted file mode 100644 index 3a2c13f03b..0000000000 --- a/model/ioti/AlibabaItEslEslimageSendimageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ioti - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -下发厂测初始化图片 API返回值 -alibaba.it.esl.eslimage.sendimage - -工厂对生产出的电子价签进行全流程功能测试,能将出场图片通过ESL系统初始化到电子价签中 -*/ -type AlibabaItEslEslimageSendimageAPIResponse struct { - model.CommonResponse - AlibabaItEslEslimageSendimageResponse -} - -// 下发厂测初始化图片 成功返回结果 -type AlibabaItEslEslimageSendimageResponse struct { - XMLName xml.Name `xml:"alibaba_it_esl_eslimage_sendimage_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // resultmsg - Resultmsg string `json:"resultmsg,omitempty" xml:"resultmsg,omitempty"` -} diff --git a/model/ioti/AlibabaItEslEslimageShowimagecommonAPIRequest.go b/model/ioti/AlibabaItEslEslimageShowimagecommonAPIRequest.go new file mode 100644 index 0000000000..7a5c5fc1fa --- /dev/null +++ b/model/ioti/AlibabaItEslEslimageShowimagecommonAPIRequest.go @@ -0,0 +1,108 @@ +package ioti + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +对混合云提供的刷图接口 API请求 +alibaba.it.esl.eslimage.showimagecommon + +混合云使用,提供给isv和我们混合云环境部署的应用刷图 +*/ +type AlibabaItEslEslimageShowimagecommonAPIRequest struct { + model.Params + // ma地址 + _mac string + // 图片的base64编码,图片要和价签大小一致 + _content2 string + // 图片2的base64编码,图片要和价签大小一致 + _content string + // 是否压缩,默认不传,字符串:yes,no + _isCompress string + // 是否手动刷图,默认不传,字符串:true,false + _isManual string +} + +// 初始化AlibabaItEslEslimageShowimagecommonAPIRequest对象 +func NewAlibabaItEslEslimageShowimagecommonRequest() *AlibabaItEslEslimageShowimagecommonAPIRequest{ + return &AlibabaItEslEslimageShowimagecommonAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaItEslEslimageShowimagecommonAPIRequest) GetApiMethodName() string { + return "alibaba.it.esl.eslimage.showimagecommon" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaItEslEslimageShowimagecommonAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Mac Setter +// ma地址 +func (r *AlibabaItEslEslimageShowimagecommonAPIRequest) SetMac(_mac string) error { + r._mac = _mac + r.Set("mac", _mac) + return nil +} + +// Mac Getter +func (r AlibabaItEslEslimageShowimagecommonAPIRequest) GetMac() string { + return r._mac +} +// Content2 Setter +// 图片的base64编码,图片要和价签大小一致 +func (r *AlibabaItEslEslimageShowimagecommonAPIRequest) SetContent2(_content2 string) error { + r._content2 = _content2 + r.Set("content2", _content2) + return nil +} + +// Content2 Getter +func (r AlibabaItEslEslimageShowimagecommonAPIRequest) GetContent2() string { + return r._content2 +} +// Content Setter +// 图片2的base64编码,图片要和价签大小一致 +func (r *AlibabaItEslEslimageShowimagecommonAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r AlibabaItEslEslimageShowimagecommonAPIRequest) GetContent() string { + return r._content +} +// IsCompress Setter +// 是否压缩,默认不传,字符串:yes,no +func (r *AlibabaItEslEslimageShowimagecommonAPIRequest) SetIsCompress(_isCompress string) error { + r._isCompress = _isCompress + r.Set("is_compress", _isCompress) + return nil +} + +// IsCompress Getter +func (r AlibabaItEslEslimageShowimagecommonAPIRequest) GetIsCompress() string { + return r._isCompress +} +// IsManual Setter +// 是否手动刷图,默认不传,字符串:true,false +func (r *AlibabaItEslEslimageShowimagecommonAPIRequest) SetIsManual(_isManual string) error { + r._isManual = _isManual + r.Set("is_manual", _isManual) + return nil +} + +// IsManual Getter +func (r AlibabaItEslEslimageShowimagecommonAPIRequest) GetIsManual() string { + return r._isManual +} diff --git a/model/ioti/AlibabaItEslEslimageShowimagecommonAPIResponse.go b/model/ioti/AlibabaItEslEslimageShowimagecommonAPIResponse.go new file mode 100644 index 0000000000..d99fcc7f52 --- /dev/null +++ b/model/ioti/AlibabaItEslEslimageShowimagecommonAPIResponse.go @@ -0,0 +1,27 @@ +package ioti + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +对混合云提供的刷图接口 API返回值 +alibaba.it.esl.eslimage.showimagecommon + +混合云使用,提供给isv和我们混合云环境部署的应用刷图 +*/ +type AlibabaItEslEslimageShowimagecommonAPIResponse struct { + model.CommonResponse + AlibabaItEslEslimageShowimagecommonAPIResponseModel +} + +// 对混合云提供的刷图接口 成功返回结果 +type AlibabaItEslEslimageShowimagecommonAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_it_esl_eslimage_showimagecommon_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // resultmsg + Resultmsg string `json:"resultmsg,omitempty" xml:"resultmsg,omitempty"` +} diff --git a/model/ioti/AlibabaItEslEslimageShowimagecommonResponse.go b/model/ioti/AlibabaItEslEslimageShowimagecommonResponse.go deleted file mode 100644 index ae3c61efe9..0000000000 --- a/model/ioti/AlibabaItEslEslimageShowimagecommonResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ioti - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -对混合云提供的刷图接口 API返回值 -alibaba.it.esl.eslimage.showimagecommon - -混合云使用,提供给isv和我们混合云环境部署的应用刷图 -*/ -type AlibabaItEslEslimageShowimagecommonAPIResponse struct { - model.CommonResponse - AlibabaItEslEslimageShowimagecommonResponse -} - -// 对混合云提供的刷图接口 成功返回结果 -type AlibabaItEslEslimageShowimagecommonResponse struct { - XMLName xml.Name `xml:"alibaba_it_esl_eslimage_showimagecommon_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // resultmsg - Resultmsg string `json:"resultmsg,omitempty" xml:"resultmsg,omitempty"` -} diff --git a/model/ioti/AlibabaItEslSendledAPIRequest.go b/model/ioti/AlibabaItEslSendledAPIRequest.go new file mode 100644 index 0000000000..abdbc974f3 --- /dev/null +++ b/model/ioti/AlibabaItEslSendledAPIRequest.go @@ -0,0 +1,66 @@ +package ioti + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +厂测LED控制 API请求 +alibaba.it.esl.sendled + +针对厂测生产的的价签,增加led闪灯的接口,进行led 闪灯测试 +*/ +type AlibabaItEslSendledAPIRequest struct { + model.Params + // mac + _macAp string + // 0、1、2、3:关蓝绿红 + _type string +} + +// 初始化AlibabaItEslSendledAPIRequest对象 +func NewAlibabaItEslSendledRequest() *AlibabaItEslSendledAPIRequest{ + return &AlibabaItEslSendledAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaItEslSendledAPIRequest) GetApiMethodName() string { + return "alibaba.it.esl.sendled" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaItEslSendledAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MacAp Setter +// mac +func (r *AlibabaItEslSendledAPIRequest) SetMacAp(_macAp string) error { + r._macAp = _macAp + r.Set("mac_ap", _macAp) + return nil +} + +// MacAp Getter +func (r AlibabaItEslSendledAPIRequest) GetMacAp() string { + return r._macAp +} +// Type Setter +// 0、1、2、3:关蓝绿红 +func (r *AlibabaItEslSendledAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaItEslSendledAPIRequest) GetType() string { + return r._type +} diff --git a/model/ioti/AlibabaItEslSendledAPIResponse.go b/model/ioti/AlibabaItEslSendledAPIResponse.go new file mode 100644 index 0000000000..547559e493 --- /dev/null +++ b/model/ioti/AlibabaItEslSendledAPIResponse.go @@ -0,0 +1,27 @@ +package ioti + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +厂测LED控制 API返回值 +alibaba.it.esl.sendled + +针对厂测生产的的价签,增加led闪灯的接口,进行led 闪灯测试 +*/ +type AlibabaItEslSendledAPIResponse struct { + model.CommonResponse + AlibabaItEslSendledAPIResponseModel +} + +// 厂测LED控制 成功返回结果 +type AlibabaItEslSendledAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_it_esl_sendled_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Can not find Corresponding AP MAC with ESL + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ioti/AlibabaItEslSendledResponse.go b/model/ioti/AlibabaItEslSendledResponse.go deleted file mode 100644 index f6f2473b69..0000000000 --- a/model/ioti/AlibabaItEslSendledResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ioti - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -厂测LED控制 API返回值 -alibaba.it.esl.sendled - -针对厂测生产的的价签,增加led闪灯的接口,进行led 闪灯测试 -*/ -type AlibabaItEslSendledAPIResponse struct { - model.CommonResponse - AlibabaItEslSendledResponse -} - -// 厂测LED控制 成功返回结果 -type AlibabaItEslSendledResponse struct { - XMLName xml.Name `xml:"alibaba_it_esl_sendled_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Can not find Corresponding AP MAC with ESL - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ioti/AlibabaItEslSendotaAPIRequest.go b/model/ioti/AlibabaItEslSendotaAPIRequest.go new file mode 100644 index 0000000000..223b434888 --- /dev/null +++ b/model/ioti/AlibabaItEslSendotaAPIRequest.go @@ -0,0 +1,66 @@ +package ioti + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +电子价签ota接口 API请求 +alibaba.it.esl.sendota + +厂测接口,电子价签ota接口 +*/ +type AlibabaItEslSendotaAPIRequest struct { + model.Params + // mac + _macAp string + // base64的ota包 + _otaDataBase64String string +} + +// 初始化AlibabaItEslSendotaAPIRequest对象 +func NewAlibabaItEslSendotaRequest() *AlibabaItEslSendotaAPIRequest{ + return &AlibabaItEslSendotaAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaItEslSendotaAPIRequest) GetApiMethodName() string { + return "alibaba.it.esl.sendota" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaItEslSendotaAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MacAp Setter +// mac +func (r *AlibabaItEslSendotaAPIRequest) SetMacAp(_macAp string) error { + r._macAp = _macAp + r.Set("mac_ap", _macAp) + return nil +} + +// MacAp Getter +func (r AlibabaItEslSendotaAPIRequest) GetMacAp() string { + return r._macAp +} +// OtaDataBase64String Setter +// base64的ota包 +func (r *AlibabaItEslSendotaAPIRequest) SetOtaDataBase64String(_otaDataBase64String string) error { + r._otaDataBase64String = _otaDataBase64String + r.Set("ota_data_base64_string", _otaDataBase64String) + return nil +} + +// OtaDataBase64String Getter +func (r AlibabaItEslSendotaAPIRequest) GetOtaDataBase64String() string { + return r._otaDataBase64String +} diff --git a/model/ioti/AlibabaItEslSendotaAPIResponse.go b/model/ioti/AlibabaItEslSendotaAPIResponse.go new file mode 100644 index 0000000000..3c6790dc19 --- /dev/null +++ b/model/ioti/AlibabaItEslSendotaAPIResponse.go @@ -0,0 +1,27 @@ +package ioti + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +电子价签ota接口 API返回值 +alibaba.it.esl.sendota + +厂测接口,电子价签ota接口 +*/ +type AlibabaItEslSendotaAPIResponse struct { + model.CommonResponse + AlibabaItEslSendotaAPIResponseModel +} + +// 电子价签ota接口 成功返回结果 +type AlibabaItEslSendotaAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_it_esl_sendota_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Can not find Corresponding AP MAC with ESL + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ioti/AlibabaItEslSendotaResponse.go b/model/ioti/AlibabaItEslSendotaResponse.go deleted file mode 100644 index e51aa25857..0000000000 --- a/model/ioti/AlibabaItEslSendotaResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ioti - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -电子价签ota接口 API返回值 -alibaba.it.esl.sendota - -厂测接口,电子价签ota接口 -*/ -type AlibabaItEslSendotaAPIResponse struct { - model.CommonResponse - AlibabaItEslSendotaResponse -} - -// 电子价签ota接口 成功返回结果 -type AlibabaItEslSendotaResponse struct { - XMLName xml.Name `xml:"alibaba_it_esl_sendota_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Can not find Corresponding AP MAC with ESL - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iotticket/CainiaoIotTicketDetailQueryAPIRequest.go b/model/iotticket/CainiaoIotTicketDetailQueryAPIRequest.go new file mode 100644 index 0000000000..1a2705785f --- /dev/null +++ b/model/iotticket/CainiaoIotTicketDetailQueryAPIRequest.go @@ -0,0 +1,66 @@ +package iotticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +IoT售后工单详情查询 API请求 +cainiao.iot.ticket.detail.query + +Iot售后工单详情信息查询 +*/ +type CainiaoIotTicketDetailQueryAPIRequest struct { + model.Params + // 服务商唯一编码 + _spCode string + // 工单Id + _ticketId int64 +} + +// 初始化CainiaoIotTicketDetailQueryAPIRequest对象 +func NewCainiaoIotTicketDetailQueryRequest() *CainiaoIotTicketDetailQueryAPIRequest{ + return &CainiaoIotTicketDetailQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoIotTicketDetailQueryAPIRequest) GetApiMethodName() string { + return "cainiao.iot.ticket.detail.query" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoIotTicketDetailQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SpCode Setter +// 服务商唯一编码 +func (r *CainiaoIotTicketDetailQueryAPIRequest) SetSpCode(_spCode string) error { + r._spCode = _spCode + r.Set("sp_code", _spCode) + return nil +} + +// SpCode Getter +func (r CainiaoIotTicketDetailQueryAPIRequest) GetSpCode() string { + return r._spCode +} +// TicketId Setter +// 工单Id +func (r *CainiaoIotTicketDetailQueryAPIRequest) SetTicketId(_ticketId int64) error { + r._ticketId = _ticketId + r.Set("ticket_id", _ticketId) + return nil +} + +// TicketId Getter +func (r CainiaoIotTicketDetailQueryAPIRequest) GetTicketId() int64 { + return r._ticketId +} diff --git a/model/iotticket/CainiaoIotTicketDetailQueryAPIResponse.go b/model/iotticket/CainiaoIotTicketDetailQueryAPIResponse.go new file mode 100644 index 0000000000..2decf40c93 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketDetailQueryAPIResponse.go @@ -0,0 +1,27 @@ +package iotticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +IoT售后工单详情查询 API返回值 +cainiao.iot.ticket.detail.query + +Iot售后工单详情信息查询 +*/ +type CainiaoIotTicketDetailQueryAPIResponse struct { + model.CommonResponse + CainiaoIotTicketDetailQueryAPIResponseModel +} + +// IoT售后工单详情查询 成功返回结果 +type CainiaoIotTicketDetailQueryAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_iot_ticket_detail_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *CainiaoIotTicketDetailQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iotticket/CainiaoIotTicketDetailQueryResponse.go b/model/iotticket/CainiaoIotTicketDetailQueryResponse.go deleted file mode 100644 index c7e5a31e3b..0000000000 --- a/model/iotticket/CainiaoIotTicketDetailQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iotticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -IoT售后工单详情查询 API返回值 -cainiao.iot.ticket.detail.query - -Iot售后工单详情信息查询 -*/ -type CainiaoIotTicketDetailQueryAPIResponse struct { - model.CommonResponse - CainiaoIotTicketDetailQueryResponse -} - -// IoT售后工单详情查询 成功返回结果 -type CainiaoIotTicketDetailQueryResponse struct { - XMLName xml.Name `xml:"cainiao_iot_ticket_detail_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *CainiaoIotTicketDetailQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iotticket/CainiaoIotTicketSpAcceptAPIRequest.go b/model/iotticket/CainiaoIotTicketSpAcceptAPIRequest.go new file mode 100644 index 0000000000..87c8d38311 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpAcceptAPIRequest.go @@ -0,0 +1,52 @@ +package iotticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +IoT售后服务商确认接单 API请求 +cainiao.iot.ticket.sp.accept + +IoT售后服务商确认接单 +*/ +type CainiaoIotTicketSpAcceptAPIRequest struct { + model.Params + // 请求参数 + _param *AcceptTicketTopRequest +} + +// 初始化CainiaoIotTicketSpAcceptAPIRequest对象 +func NewCainiaoIotTicketSpAcceptRequest() *CainiaoIotTicketSpAcceptAPIRequest{ + return &CainiaoIotTicketSpAcceptAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoIotTicketSpAcceptAPIRequest) GetApiMethodName() string { + return "cainiao.iot.ticket.sp.accept" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoIotTicketSpAcceptAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 请求参数 +func (r *CainiaoIotTicketSpAcceptAPIRequest) SetParam(_param *AcceptTicketTopRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r CainiaoIotTicketSpAcceptAPIRequest) GetParam() *AcceptTicketTopRequest { + return r._param +} diff --git a/model/iotticket/CainiaoIotTicketSpAcceptAPIResponse.go b/model/iotticket/CainiaoIotTicketSpAcceptAPIResponse.go new file mode 100644 index 0000000000..f2cbafa5d0 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpAcceptAPIResponse.go @@ -0,0 +1,27 @@ +package iotticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +IoT售后服务商确认接单 API返回值 +cainiao.iot.ticket.sp.accept + +IoT售后服务商确认接单 +*/ +type CainiaoIotTicketSpAcceptAPIResponse struct { + model.CommonResponse + CainiaoIotTicketSpAcceptAPIResponseModel +} + +// IoT售后服务商确认接单 成功返回结果 +type CainiaoIotTicketSpAcceptAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_iot_ticket_sp_accept_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *CainiaoIotTicketSpAcceptResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iotticket/CainiaoIotTicketSpAcceptResponse.go b/model/iotticket/CainiaoIotTicketSpAcceptResponse.go deleted file mode 100644 index 3218e0416f..0000000000 --- a/model/iotticket/CainiaoIotTicketSpAcceptResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iotticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -IoT售后服务商确认接单 API返回值 -cainiao.iot.ticket.sp.accept - -IoT售后服务商确认接单 -*/ -type CainiaoIotTicketSpAcceptAPIResponse struct { - model.CommonResponse - CainiaoIotTicketSpAcceptResponse -} - -// IoT售后服务商确认接单 成功返回结果 -type CainiaoIotTicketSpAcceptResponse struct { - XMLName xml.Name `xml:"cainiao_iot_ticket_sp_accept_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *CainiaoIotTicketSpAcceptResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iotticket/CainiaoIotTicketSpAcceptResultDto.go b/model/iotticket/CainiaoIotTicketSpAcceptResultDto.go new file mode 100644 index 0000000000..a518b47a12 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpAcceptResultDto.go @@ -0,0 +1,11 @@ +package iotticket + +// CainiaoIotTicketSpAcceptResultDto +type CainiaoIotTicketSpAcceptResultDto struct { + // 异常描述 + ErrorDesc string `json:"error_desc,omitempty" xml:"error_desc,omitempty"` + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/iotticket/CainiaoIotTicketSpCancleAPIRequest.go b/model/iotticket/CainiaoIotTicketSpCancleAPIRequest.go new file mode 100644 index 0000000000..e2a274b202 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpCancleAPIRequest.go @@ -0,0 +1,52 @@ +package iotticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Iot售后服务商取消工单 API请求 +cainiao.iot.ticket.sp.cancle + +IoT售后服务商取消接单 +*/ +type CainiaoIotTicketSpCancleAPIRequest struct { + model.Params + // 请求参数 + _param *AcceptTicketTopRequest +} + +// 初始化CainiaoIotTicketSpCancleAPIRequest对象 +func NewCainiaoIotTicketSpCancleRequest() *CainiaoIotTicketSpCancleAPIRequest{ + return &CainiaoIotTicketSpCancleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoIotTicketSpCancleAPIRequest) GetApiMethodName() string { + return "cainiao.iot.ticket.sp.cancle" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoIotTicketSpCancleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 请求参数 +func (r *CainiaoIotTicketSpCancleAPIRequest) SetParam(_param *AcceptTicketTopRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r CainiaoIotTicketSpCancleAPIRequest) GetParam() *AcceptTicketTopRequest { + return r._param +} diff --git a/model/iotticket/CainiaoIotTicketSpCancleAPIResponse.go b/model/iotticket/CainiaoIotTicketSpCancleAPIResponse.go new file mode 100644 index 0000000000..12381c70f5 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpCancleAPIResponse.go @@ -0,0 +1,27 @@ +package iotticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Iot售后服务商取消工单 API返回值 +cainiao.iot.ticket.sp.cancle + +IoT售后服务商取消接单 +*/ +type CainiaoIotTicketSpCancleAPIResponse struct { + model.CommonResponse + CainiaoIotTicketSpCancleAPIResponseModel +} + +// Iot售后服务商取消工单 成功返回结果 +type CainiaoIotTicketSpCancleAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_iot_ticket_sp_cancle_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *CainiaoIotTicketSpCancleResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iotticket/CainiaoIotTicketSpCancleResponse.go b/model/iotticket/CainiaoIotTicketSpCancleResponse.go deleted file mode 100644 index 7a532a290f..0000000000 --- a/model/iotticket/CainiaoIotTicketSpCancleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iotticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Iot售后服务商取消工单 API返回值 -cainiao.iot.ticket.sp.cancle - -IoT售后服务商取消接单 -*/ -type CainiaoIotTicketSpCancleAPIResponse struct { - model.CommonResponse - CainiaoIotTicketSpCancleResponse -} - -// Iot售后服务商取消工单 成功返回结果 -type CainiaoIotTicketSpCancleResponse struct { - XMLName xml.Name `xml:"cainiao_iot_ticket_sp_cancle_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *CainiaoIotTicketSpCancleResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iotticket/CainiaoIotTicketSpCancleResultDto.go b/model/iotticket/CainiaoIotTicketSpCancleResultDto.go new file mode 100644 index 0000000000..43c75fc599 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpCancleResultDto.go @@ -0,0 +1,11 @@ +package iotticket + +// CainiaoIotTicketSpCancleResultDto +type CainiaoIotTicketSpCancleResultDto struct { + // 异常描述 + ErrorDesc string `json:"error_desc,omitempty" xml:"error_desc,omitempty"` + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/iotticket/CainiaoIotTicketSpCommentAPIRequest.go b/model/iotticket/CainiaoIotTicketSpCommentAPIRequest.go new file mode 100644 index 0000000000..05b3dae3b6 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpCommentAPIRequest.go @@ -0,0 +1,52 @@ +package iotticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +IoT售后服务商工单备注 API请求 +cainiao.iot.ticket.sp.comment + +IoT售后服务商工单备注 +*/ +type CainiaoIotTicketSpCommentAPIRequest struct { + model.Params + // 请求参数 + _param *CommentTicketTopRequest +} + +// 初始化CainiaoIotTicketSpCommentAPIRequest对象 +func NewCainiaoIotTicketSpCommentRequest() *CainiaoIotTicketSpCommentAPIRequest{ + return &CainiaoIotTicketSpCommentAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoIotTicketSpCommentAPIRequest) GetApiMethodName() string { + return "cainiao.iot.ticket.sp.comment" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoIotTicketSpCommentAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 请求参数 +func (r *CainiaoIotTicketSpCommentAPIRequest) SetParam(_param *CommentTicketTopRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r CainiaoIotTicketSpCommentAPIRequest) GetParam() *CommentTicketTopRequest { + return r._param +} diff --git a/model/iotticket/CainiaoIotTicketSpCommentAPIResponse.go b/model/iotticket/CainiaoIotTicketSpCommentAPIResponse.go new file mode 100644 index 0000000000..ca97edf815 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpCommentAPIResponse.go @@ -0,0 +1,27 @@ +package iotticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +IoT售后服务商工单备注 API返回值 +cainiao.iot.ticket.sp.comment + +IoT售后服务商工单备注 +*/ +type CainiaoIotTicketSpCommentAPIResponse struct { + model.CommonResponse + CainiaoIotTicketSpCommentAPIResponseModel +} + +// IoT售后服务商工单备注 成功返回结果 +type CainiaoIotTicketSpCommentAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_iot_ticket_sp_comment_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *CainiaoIotTicketSpCommentResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iotticket/CainiaoIotTicketSpCommentResponse.go b/model/iotticket/CainiaoIotTicketSpCommentResponse.go deleted file mode 100644 index ef0f57f122..0000000000 --- a/model/iotticket/CainiaoIotTicketSpCommentResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iotticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -IoT售后服务商工单备注 API返回值 -cainiao.iot.ticket.sp.comment - -IoT售后服务商工单备注 -*/ -type CainiaoIotTicketSpCommentAPIResponse struct { - model.CommonResponse - CainiaoIotTicketSpCommentResponse -} - -// IoT售后服务商工单备注 成功返回结果 -type CainiaoIotTicketSpCommentResponse struct { - XMLName xml.Name `xml:"cainiao_iot_ticket_sp_comment_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *CainiaoIotTicketSpCommentResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iotticket/CainiaoIotTicketSpCommentResultDto.go b/model/iotticket/CainiaoIotTicketSpCommentResultDto.go new file mode 100644 index 0000000000..8a1f410d07 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpCommentResultDto.go @@ -0,0 +1,11 @@ +package iotticket + +// CainiaoIotTicketSpCommentResultDto +type CainiaoIotTicketSpCommentResultDto struct { + // 异常描述 + ErrorDesc string `json:"error_desc,omitempty" xml:"error_desc,omitempty"` + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/iotticket/CainiaoIotTicketSpMailSignUploadAPIRequest.go b/model/iotticket/CainiaoIotTicketSpMailSignUploadAPIRequest.go new file mode 100644 index 0000000000..6b5bc9bad0 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpMailSignUploadAPIRequest.go @@ -0,0 +1,52 @@ +package iotticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +IoT售后服务商签收客户邮寄设备附件上传 API请求 +cainiao.iot.ticket.sp.mail.sign.upload + +IoT售后服务商签收客户邮寄设备附件上传 +*/ +type CainiaoIotTicketSpMailSignUploadAPIRequest struct { + model.Params + // 请求参数 + _param *UploadSignVoucherRequest +} + +// 初始化CainiaoIotTicketSpMailSignUploadAPIRequest对象 +func NewCainiaoIotTicketSpMailSignUploadRequest() *CainiaoIotTicketSpMailSignUploadAPIRequest{ + return &CainiaoIotTicketSpMailSignUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoIotTicketSpMailSignUploadAPIRequest) GetApiMethodName() string { + return "cainiao.iot.ticket.sp.mail.sign.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoIotTicketSpMailSignUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 请求参数 +func (r *CainiaoIotTicketSpMailSignUploadAPIRequest) SetParam(_param *UploadSignVoucherRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r CainiaoIotTicketSpMailSignUploadAPIRequest) GetParam() *UploadSignVoucherRequest { + return r._param +} diff --git a/model/iotticket/CainiaoIotTicketSpMailSignUploadAPIResponse.go b/model/iotticket/CainiaoIotTicketSpMailSignUploadAPIResponse.go new file mode 100644 index 0000000000..241f81374e --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpMailSignUploadAPIResponse.go @@ -0,0 +1,27 @@ +package iotticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +IoT售后服务商签收客户邮寄设备附件上传 API返回值 +cainiao.iot.ticket.sp.mail.sign.upload + +IoT售后服务商签收客户邮寄设备附件上传 +*/ +type CainiaoIotTicketSpMailSignUploadAPIResponse struct { + model.CommonResponse + CainiaoIotTicketSpMailSignUploadAPIResponseModel +} + +// IoT售后服务商签收客户邮寄设备附件上传 成功返回结果 +type CainiaoIotTicketSpMailSignUploadAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_iot_ticket_sp_mail_sign_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *CainiaoIotTicketSpMailSignUploadResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iotticket/CainiaoIotTicketSpMailSignUploadResponse.go b/model/iotticket/CainiaoIotTicketSpMailSignUploadResponse.go deleted file mode 100644 index e2432f0dbd..0000000000 --- a/model/iotticket/CainiaoIotTicketSpMailSignUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iotticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -IoT售后服务商签收客户邮寄设备附件上传 API返回值 -cainiao.iot.ticket.sp.mail.sign.upload - -IoT售后服务商签收客户邮寄设备附件上传 -*/ -type CainiaoIotTicketSpMailSignUploadAPIResponse struct { - model.CommonResponse - CainiaoIotTicketSpMailSignUploadResponse -} - -// IoT售后服务商签收客户邮寄设备附件上传 成功返回结果 -type CainiaoIotTicketSpMailSignUploadResponse struct { - XMLName xml.Name `xml:"cainiao_iot_ticket_sp_mail_sign_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *CainiaoIotTicketSpMailSignUploadResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iotticket/CainiaoIotTicketSpMailSignUploadResultDto.go b/model/iotticket/CainiaoIotTicketSpMailSignUploadResultDto.go new file mode 100644 index 0000000000..3c62e6a365 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpMailSignUploadResultDto.go @@ -0,0 +1,11 @@ +package iotticket + +// CainiaoIotTicketSpMailSignUploadResultDto +type CainiaoIotTicketSpMailSignUploadResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 异常描述 + ErrorDesc string `json:"error_desc,omitempty" xml:"error_desc,omitempty"` + // 异常编码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/iotticket/CainiaoIotTicketSpMailVoucherUploadAPIRequest.go b/model/iotticket/CainiaoIotTicketSpMailVoucherUploadAPIRequest.go new file mode 100644 index 0000000000..5a8bcbd112 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpMailVoucherUploadAPIRequest.go @@ -0,0 +1,52 @@ +package iotticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商寄出维修件上传凭证信息 API请求 +cainiao.iot.ticket.sp.mail.voucher.upload + +IoT售后服务商寄出维修件上传凭证信息 +*/ +type CainiaoIotTicketSpMailVoucherUploadAPIRequest struct { + model.Params + // 请求参数 + _param *CommentTicketTopRequest +} + +// 初始化CainiaoIotTicketSpMailVoucherUploadAPIRequest对象 +func NewCainiaoIotTicketSpMailVoucherUploadRequest() *CainiaoIotTicketSpMailVoucherUploadAPIRequest{ + return &CainiaoIotTicketSpMailVoucherUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoIotTicketSpMailVoucherUploadAPIRequest) GetApiMethodName() string { + return "cainiao.iot.ticket.sp.mail.voucher.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoIotTicketSpMailVoucherUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 请求参数 +func (r *CainiaoIotTicketSpMailVoucherUploadAPIRequest) SetParam(_param *CommentTicketTopRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r CainiaoIotTicketSpMailVoucherUploadAPIRequest) GetParam() *CommentTicketTopRequest { + return r._param +} diff --git a/model/iotticket/CainiaoIotTicketSpMailVoucherUploadAPIResponse.go b/model/iotticket/CainiaoIotTicketSpMailVoucherUploadAPIResponse.go new file mode 100644 index 0000000000..c9f2adf49d --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpMailVoucherUploadAPIResponse.go @@ -0,0 +1,27 @@ +package iotticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商寄出维修件上传凭证信息 API返回值 +cainiao.iot.ticket.sp.mail.voucher.upload + +IoT售后服务商寄出维修件上传凭证信息 +*/ +type CainiaoIotTicketSpMailVoucherUploadAPIResponse struct { + model.CommonResponse + CainiaoIotTicketSpMailVoucherUploadAPIResponseModel +} + +// 服务商寄出维修件上传凭证信息 成功返回结果 +type CainiaoIotTicketSpMailVoucherUploadAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_iot_ticket_sp_mail_voucher_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *CainiaoIotTicketSpMailVoucherUploadResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iotticket/CainiaoIotTicketSpMailVoucherUploadResponse.go b/model/iotticket/CainiaoIotTicketSpMailVoucherUploadResponse.go deleted file mode 100644 index 5db294d3fe..0000000000 --- a/model/iotticket/CainiaoIotTicketSpMailVoucherUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iotticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商寄出维修件上传凭证信息 API返回值 -cainiao.iot.ticket.sp.mail.voucher.upload - -IoT售后服务商寄出维修件上传凭证信息 -*/ -type CainiaoIotTicketSpMailVoucherUploadAPIResponse struct { - model.CommonResponse - CainiaoIotTicketSpMailVoucherUploadResponse -} - -// 服务商寄出维修件上传凭证信息 成功返回结果 -type CainiaoIotTicketSpMailVoucherUploadResponse struct { - XMLName xml.Name `xml:"cainiao_iot_ticket_sp_mail_voucher_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *CainiaoIotTicketSpMailVoucherUploadResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iotticket/CainiaoIotTicketSpMailVoucherUploadResultDto.go b/model/iotticket/CainiaoIotTicketSpMailVoucherUploadResultDto.go new file mode 100644 index 0000000000..d01396a5d8 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpMailVoucherUploadResultDto.go @@ -0,0 +1,11 @@ +package iotticket + +// CainiaoIotTicketSpMailVoucherUploadResultDto +type CainiaoIotTicketSpMailVoucherUploadResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 异常描述 + ErrorDesc string `json:"error_desc,omitempty" xml:"error_desc,omitempty"` + // 异常编码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/iotticket/CainiaoIotTicketSpMaintainCreateAPIRequest.go b/model/iotticket/CainiaoIotTicketSpMaintainCreateAPIRequest.go new file mode 100644 index 0000000000..31e13b7032 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpMaintainCreateAPIRequest.go @@ -0,0 +1,52 @@ +package iotticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +IoT售后服务商制定维修方案 API请求 +cainiao.iot.ticket.sp.maintain.create + +IoT售后服务商制定维修方案 +*/ +type CainiaoIotTicketSpMaintainCreateAPIRequest struct { + model.Params + // 请求参数 + _param *AssignMaintenancePersonnelTopRequest +} + +// 初始化CainiaoIotTicketSpMaintainCreateAPIRequest对象 +func NewCainiaoIotTicketSpMaintainCreateRequest() *CainiaoIotTicketSpMaintainCreateAPIRequest{ + return &CainiaoIotTicketSpMaintainCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoIotTicketSpMaintainCreateAPIRequest) GetApiMethodName() string { + return "cainiao.iot.ticket.sp.maintain.create" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoIotTicketSpMaintainCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 请求参数 +func (r *CainiaoIotTicketSpMaintainCreateAPIRequest) SetParam(_param *AssignMaintenancePersonnelTopRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r CainiaoIotTicketSpMaintainCreateAPIRequest) GetParam() *AssignMaintenancePersonnelTopRequest { + return r._param +} diff --git a/model/iotticket/CainiaoIotTicketSpMaintainCreateAPIResponse.go b/model/iotticket/CainiaoIotTicketSpMaintainCreateAPIResponse.go new file mode 100644 index 0000000000..bedbbb535e --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpMaintainCreateAPIResponse.go @@ -0,0 +1,27 @@ +package iotticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +IoT售后服务商制定维修方案 API返回值 +cainiao.iot.ticket.sp.maintain.create + +IoT售后服务商制定维修方案 +*/ +type CainiaoIotTicketSpMaintainCreateAPIResponse struct { + model.CommonResponse + CainiaoIotTicketSpMaintainCreateAPIResponseModel +} + +// IoT售后服务商制定维修方案 成功返回结果 +type CainiaoIotTicketSpMaintainCreateAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_iot_ticket_sp_maintain_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *CainiaoIotTicketSpMaintainCreateResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iotticket/CainiaoIotTicketSpMaintainCreateResponse.go b/model/iotticket/CainiaoIotTicketSpMaintainCreateResponse.go deleted file mode 100644 index bef3ee8d4c..0000000000 --- a/model/iotticket/CainiaoIotTicketSpMaintainCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iotticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -IoT售后服务商制定维修方案 API返回值 -cainiao.iot.ticket.sp.maintain.create - -IoT售后服务商制定维修方案 -*/ -type CainiaoIotTicketSpMaintainCreateAPIResponse struct { - model.CommonResponse - CainiaoIotTicketSpMaintainCreateResponse -} - -// IoT售后服务商制定维修方案 成功返回结果 -type CainiaoIotTicketSpMaintainCreateResponse struct { - XMLName xml.Name `xml:"cainiao_iot_ticket_sp_maintain_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *CainiaoIotTicketSpMaintainCreateResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iotticket/CainiaoIotTicketSpMaintainCreateResultDto.go b/model/iotticket/CainiaoIotTicketSpMaintainCreateResultDto.go new file mode 100644 index 0000000000..42208e7361 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpMaintainCreateResultDto.go @@ -0,0 +1,11 @@ +package iotticket + +// CainiaoIotTicketSpMaintainCreateResultDto +type CainiaoIotTicketSpMaintainCreateResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 异常描述 + ErrorDesc string `json:"error_desc,omitempty" xml:"error_desc,omitempty"` + // 异常编码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/iotticket/CainiaoIotTicketSpMaintainUpdateAPIRequest.go b/model/iotticket/CainiaoIotTicketSpMaintainUpdateAPIRequest.go new file mode 100644 index 0000000000..749cb0cf71 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpMaintainUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package iotticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +IoT售后服务商维修方案更新 API请求 +cainiao.iot.ticket.sp.maintain.update + +IoT售后服务商维修方案更新 +*/ +type CainiaoIotTicketSpMaintainUpdateAPIRequest struct { + model.Params + // 请求参数 + _param *UpdateMaintainPlanTopRequest +} + +// 初始化CainiaoIotTicketSpMaintainUpdateAPIRequest对象 +func NewCainiaoIotTicketSpMaintainUpdateRequest() *CainiaoIotTicketSpMaintainUpdateAPIRequest{ + return &CainiaoIotTicketSpMaintainUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoIotTicketSpMaintainUpdateAPIRequest) GetApiMethodName() string { + return "cainiao.iot.ticket.sp.maintain.update" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoIotTicketSpMaintainUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 请求参数 +func (r *CainiaoIotTicketSpMaintainUpdateAPIRequest) SetParam(_param *UpdateMaintainPlanTopRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r CainiaoIotTicketSpMaintainUpdateAPIRequest) GetParam() *UpdateMaintainPlanTopRequest { + return r._param +} diff --git a/model/iotticket/CainiaoIotTicketSpMaintainUpdateAPIResponse.go b/model/iotticket/CainiaoIotTicketSpMaintainUpdateAPIResponse.go new file mode 100644 index 0000000000..485d54e736 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpMaintainUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package iotticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +IoT售后服务商维修方案更新 API返回值 +cainiao.iot.ticket.sp.maintain.update + +IoT售后服务商维修方案更新 +*/ +type CainiaoIotTicketSpMaintainUpdateAPIResponse struct { + model.CommonResponse + CainiaoIotTicketSpMaintainUpdateAPIResponseModel +} + +// IoT售后服务商维修方案更新 成功返回结果 +type CainiaoIotTicketSpMaintainUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_iot_ticket_sp_maintain_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *CainiaoIotTicketSpMaintainUpdateResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iotticket/CainiaoIotTicketSpMaintainUpdateResponse.go b/model/iotticket/CainiaoIotTicketSpMaintainUpdateResponse.go deleted file mode 100644 index def623ea56..0000000000 --- a/model/iotticket/CainiaoIotTicketSpMaintainUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iotticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -IoT售后服务商维修方案更新 API返回值 -cainiao.iot.ticket.sp.maintain.update - -IoT售后服务商维修方案更新 -*/ -type CainiaoIotTicketSpMaintainUpdateAPIResponse struct { - model.CommonResponse - CainiaoIotTicketSpMaintainUpdateResponse -} - -// IoT售后服务商维修方案更新 成功返回结果 -type CainiaoIotTicketSpMaintainUpdateResponse struct { - XMLName xml.Name `xml:"cainiao_iot_ticket_sp_maintain_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *CainiaoIotTicketSpMaintainUpdateResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iotticket/CainiaoIotTicketSpMaintainUpdateResultDto.go b/model/iotticket/CainiaoIotTicketSpMaintainUpdateResultDto.go new file mode 100644 index 0000000000..82c442b7d5 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpMaintainUpdateResultDto.go @@ -0,0 +1,11 @@ +package iotticket + +// CainiaoIotTicketSpMaintainUpdateResultDto +type CainiaoIotTicketSpMaintainUpdateResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 异常描述 + ErrorDesc string `json:"error_desc,omitempty" xml:"error_desc,omitempty"` + // 异常编码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/iotticket/CainiaoIotTicketSpMaintainVtwoCreateAPIRequest.go b/model/iotticket/CainiaoIotTicketSpMaintainVtwoCreateAPIRequest.go new file mode 100644 index 0000000000..68bbd678aa --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpMaintainVtwoCreateAPIRequest.go @@ -0,0 +1,52 @@ +package iotticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商制定维修费方案 API请求 +cainiao.iot.ticket.sp.maintain.vtwo.create + +服务商制定维修费方案 +*/ +type CainiaoIotTicketSpMaintainVtwoCreateAPIRequest struct { + model.Params + // 维修方案 + _makeMaintainPlanTopRequest *MakeMaintainPlanV2TopRequest +} + +// 初始化CainiaoIotTicketSpMaintainVtwoCreateAPIRequest对象 +func NewCainiaoIotTicketSpMaintainVtwoCreateRequest() *CainiaoIotTicketSpMaintainVtwoCreateAPIRequest{ + return &CainiaoIotTicketSpMaintainVtwoCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoIotTicketSpMaintainVtwoCreateAPIRequest) GetApiMethodName() string { + return "cainiao.iot.ticket.sp.maintain.vtwo.create" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoIotTicketSpMaintainVtwoCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MakeMaintainPlanTopRequest Setter +// 维修方案 +func (r *CainiaoIotTicketSpMaintainVtwoCreateAPIRequest) SetMakeMaintainPlanTopRequest(_makeMaintainPlanTopRequest *MakeMaintainPlanV2TopRequest) error { + r._makeMaintainPlanTopRequest = _makeMaintainPlanTopRequest + r.Set("make_maintain_plan_top_request", _makeMaintainPlanTopRequest) + return nil +} + +// MakeMaintainPlanTopRequest Getter +func (r CainiaoIotTicketSpMaintainVtwoCreateAPIRequest) GetMakeMaintainPlanTopRequest() *MakeMaintainPlanV2TopRequest { + return r._makeMaintainPlanTopRequest +} diff --git a/model/iotticket/CainiaoIotTicketSpMaintainVtwoCreateAPIResponse.go b/model/iotticket/CainiaoIotTicketSpMaintainVtwoCreateAPIResponse.go new file mode 100644 index 0000000000..b60b0c429f --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpMaintainVtwoCreateAPIResponse.go @@ -0,0 +1,27 @@ +package iotticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商制定维修费方案 API返回值 +cainiao.iot.ticket.sp.maintain.vtwo.create + +服务商制定维修费方案 +*/ +type CainiaoIotTicketSpMaintainVtwoCreateAPIResponse struct { + model.CommonResponse + CainiaoIotTicketSpMaintainVtwoCreateAPIResponseModel +} + +// 服务商制定维修费方案 成功返回结果 +type CainiaoIotTicketSpMaintainVtwoCreateAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_iot_ticket_sp_maintain_vtwo_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *CainiaoIotTicketSpMaintainVtwoCreateResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iotticket/CainiaoIotTicketSpMaintainVtwoCreateResponse.go b/model/iotticket/CainiaoIotTicketSpMaintainVtwoCreateResponse.go deleted file mode 100644 index 2682e170a0..0000000000 --- a/model/iotticket/CainiaoIotTicketSpMaintainVtwoCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iotticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商制定维修费方案 API返回值 -cainiao.iot.ticket.sp.maintain.vtwo.create - -服务商制定维修费方案 -*/ -type CainiaoIotTicketSpMaintainVtwoCreateAPIResponse struct { - model.CommonResponse - CainiaoIotTicketSpMaintainVtwoCreateResponse -} - -// 服务商制定维修费方案 成功返回结果 -type CainiaoIotTicketSpMaintainVtwoCreateResponse struct { - XMLName xml.Name `xml:"cainiao_iot_ticket_sp_maintain_vtwo_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *CainiaoIotTicketSpMaintainVtwoCreateResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iotticket/CainiaoIotTicketSpMaintainVtwoCreateResultDto.go b/model/iotticket/CainiaoIotTicketSpMaintainVtwoCreateResultDto.go new file mode 100644 index 0000000000..45fccd92c7 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpMaintainVtwoCreateResultDto.go @@ -0,0 +1,11 @@ +package iotticket + +// CainiaoIotTicketSpMaintainVtwoCreateResultDto +type CainiaoIotTicketSpMaintainVtwoCreateResultDto struct { + // 异常描述 + ErrorDesc string `json:"error_desc,omitempty" xml:"error_desc,omitempty"` + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/iotticket/CainiaoIotTicketSpVtwoAcceptAPIRequest.go b/model/iotticket/CainiaoIotTicketSpVtwoAcceptAPIRequest.go new file mode 100644 index 0000000000..b5e44c21e4 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpVtwoAcceptAPIRequest.go @@ -0,0 +1,52 @@ +package iotticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +IoT售后服务商确认接单 API请求 +cainiao.iot.ticket.sp.vtwo.accept + +IoT售后服务商确认接单 +*/ +type CainiaoIotTicketSpVtwoAcceptAPIRequest struct { + model.Params + // 受理接口请求参数 + _acceptTicketTopRequest *AcceptTicketV2TopRequest +} + +// 初始化CainiaoIotTicketSpVtwoAcceptAPIRequest对象 +func NewCainiaoIotTicketSpVtwoAcceptRequest() *CainiaoIotTicketSpVtwoAcceptAPIRequest{ + return &CainiaoIotTicketSpVtwoAcceptAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoIotTicketSpVtwoAcceptAPIRequest) GetApiMethodName() string { + return "cainiao.iot.ticket.sp.vtwo.accept" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoIotTicketSpVtwoAcceptAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AcceptTicketTopRequest Setter +// 受理接口请求参数 +func (r *CainiaoIotTicketSpVtwoAcceptAPIRequest) SetAcceptTicketTopRequest(_acceptTicketTopRequest *AcceptTicketV2TopRequest) error { + r._acceptTicketTopRequest = _acceptTicketTopRequest + r.Set("accept_ticket_top_request", _acceptTicketTopRequest) + return nil +} + +// AcceptTicketTopRequest Getter +func (r CainiaoIotTicketSpVtwoAcceptAPIRequest) GetAcceptTicketTopRequest() *AcceptTicketV2TopRequest { + return r._acceptTicketTopRequest +} diff --git a/model/iotticket/CainiaoIotTicketSpVtwoAcceptAPIResponse.go b/model/iotticket/CainiaoIotTicketSpVtwoAcceptAPIResponse.go new file mode 100644 index 0000000000..6f88673e02 --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpVtwoAcceptAPIResponse.go @@ -0,0 +1,27 @@ +package iotticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +IoT售后服务商确认接单 API返回值 +cainiao.iot.ticket.sp.vtwo.accept + +IoT售后服务商确认接单 +*/ +type CainiaoIotTicketSpVtwoAcceptAPIResponse struct { + model.CommonResponse + CainiaoIotTicketSpVtwoAcceptAPIResponseModel +} + +// IoT售后服务商确认接单 成功返回结果 +type CainiaoIotTicketSpVtwoAcceptAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_iot_ticket_sp_vtwo_accept_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *CainiaoIotTicketSpVtwoAcceptResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/iotticket/CainiaoIotTicketSpVtwoAcceptResponse.go b/model/iotticket/CainiaoIotTicketSpVtwoAcceptResponse.go deleted file mode 100644 index d75ebe7b99..0000000000 --- a/model/iotticket/CainiaoIotTicketSpVtwoAcceptResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package iotticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -IoT售后服务商确认接单 API返回值 -cainiao.iot.ticket.sp.vtwo.accept - -IoT售后服务商确认接单 -*/ -type CainiaoIotTicketSpVtwoAcceptAPIResponse struct { - model.CommonResponse - CainiaoIotTicketSpVtwoAcceptResponse -} - -// IoT售后服务商确认接单 成功返回结果 -type CainiaoIotTicketSpVtwoAcceptResponse struct { - XMLName xml.Name `xml:"cainiao_iot_ticket_sp_vtwo_accept_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *CainiaoIotTicketSpVtwoAcceptResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/iotticket/CainiaoIotTicketSpVtwoAcceptResultDto.go b/model/iotticket/CainiaoIotTicketSpVtwoAcceptResultDto.go new file mode 100644 index 0000000000..df9d97f87f --- /dev/null +++ b/model/iotticket/CainiaoIotTicketSpVtwoAcceptResultDto.go @@ -0,0 +1,11 @@ +package iotticket + +// CainiaoIotTicketSpVtwoAcceptResultDto +type CainiaoIotTicketSpVtwoAcceptResultDto struct { + // 异常描述 + ErrorDesc string `json:"error_desc,omitempty" xml:"error_desc,omitempty"` + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` +} diff --git a/model/itpolicy/TaobaoAlitripItFareAddowAPIRequest.go b/model/itpolicy/TaobaoAlitripItFareAddowAPIRequest.go new file mode 100644 index 0000000000..c53e2f48f7 --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItFareAddowAPIRequest.go @@ -0,0 +1,1242 @@ +package itpolicy + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票自有政策】单条单程添加 API请求 +taobao.alitrip.it.fare.addow + +自有政策单程添加接口,重复的老数据会被删除,重复判断规则同excel +*/ +type TaobaoAlitripItFareAddowAPIRequest struct { + model.Params + // 外部政策ID,1、自行输入的ID,建议为唯一id,有些操作可以使用此id 最多50个字符 + _outFileCode string + // 文件编号 + _fileCode string + // (后期字段,预留),产品类型,1.不可为空 2.填写为:包机切位、申请、见舱预订; + _productType string + // (后期字段,预留),库存模式,1.不可为空 2.填写为见舱或定额;默认为见舱 + _stockMode string + // 出票航司,1.不可为空 2.航空公司二字码 3.只能输入一个 + _ticketingAirline string + // 销售航司,不同航段之间用 “,”隔开。 1、销售航司二字码; 2、如为直达;请录入一个航司二字码;如为中转,录入格式为 第一程航司,第二程航司;或者航司;若全程都一样,则录入一个航司二字代码即可 3、如果不录入,则航司默认为出票航司; + _saleAirline string + // 城市/机场选项,默认为城市1、可以填写:“机场",“城市”2、定义始发地/目的地/中转点,输入为机场,还是城市。3、如:此项输入机场,则始发地、目的地必须输入机场三字码 + _addressOption string + // 航程种类,1、默认为直达;有直达和中转两个选项;2、不填写 默认为 直达 + _tripType string + // 始发地,多个用“,”隔开 1.不得为空 2.可以填写:机场三字码”或“城市码” 3.最多允许100个机场三字码/城市码 + _originLand string + // 目的地,多个用“,”隔开 1.不得为空 2.可以填写:机场三字码”或“城市码” 3.最多允许100个机场三字码/城市码 + _destination string + // 中转地,多个用“,”隔开 1.不得为空 2.可以填写:机场三字码,城市码 3.最多允许100个机场三字码/城市码 4、当航程类型书写为 中转时,此处为必填 + _transitLand string + // 舱位, 用","表示航段的分割。 1、舱位代码。每段只允许录入一个舱位代码,若全程舱位一致则可以只录入一个 + _cabin string + // 航班号限制,同一航段之间用,隔开表示或的关系;不同航段之间用/隔开。 1 CA001-999,CA3000-3999 表示CA001至999以及3000至3999之间航班号的航班 2 MU 表示所有MU开头的航班 3 CA(LH\AZ) 表示CA开头的实际承运人为LH或AZ的航班 4 CA(*) 表示CA代码共享航班/CA开头的实际承运人为其他航空公司的航班 5 CA(CA) 表示CA自营航班/CA实际承运航班; 6 CA(OZ)001-999 表示CA开头航班号为001-999之间且实际承运人为OZ的航班; 7 为空表示无限制 + _restrictFlightNo string + // 排除航班号限制,同一航段之间用,隔开表示或的关系;不同航段之间用/隔开。 1 CA001-999,CA3000-3999 表示CA001至999以及3000至3999之间航班号的航班 2 MU 表示所有MU开头的自营航班 3 CA(LH\AZ) 表示CA开头的实际承运人为LH或AZ的航班 4 CA(*) 表示CA代码共享航班/CA开头的实际承运人为其他航空公司的航班 5 CA(CA) 表示CA自营航班/CA实际承运航班; 6 CA(OZ)001-999 表示CA开头航班号为001-999之间且实际承运人为OZ的航班; 7 为空表示无限制;8比如两段,第一段无限制,第二段有限制 /CA123 + _excludeFlightNo string + // 去程旅行有效期,支持多段组合,用“,”隔开, 1.不得为空 2例:2014-04-01~2014-06-30,2014-09-01 ~2014-09-30, 3日期格式为 YYYY-MM-DD或YYYY/MM/DD,例:2014-04-01或2014/04/01 + _validDate4Dep string + // 去程旅行排除时间段,支持多段组合,用“,”隔开隔开, 1.格式,例:2014-04-01~2014-12-31;或例:2014-04-01~2014-06-30,2014-09-01~2014-09-30, 3日期格式为 YYYY-MM-DD,YYYY/MM/DD 4、旅行排除日期最多只能输入200个字符 + _excludeDateRange4Dep string + // 去程旅行日期作用点,始发航段/第一国际段/主航段/全部;默认空为 第一国际段 + _tripDatePoint4Dep string + // 去程旅行排除日期作用点,始发航段/第一国际段/主航段/全部;默认空为 第一国际段 + _tripExcludeDatePoint4Dep string + // 去程班期限制,1.12表示周一周二 2.12:00-14:00表示每天的12点到14点 3. 12:00FRI-12:00SAT 表示周五的中午12点至周六的中午12点 + _flightDateRestrict4Dep string + // 去程班期作用点,始发航段/第一国际段/主航段/全部;默认空为 第一国际段 + _flightDatePoint4Dep string + // 销售日期,1、不得为空 2.输入格式为:2014-04-01~2014-06-30 3.不支持多段组合, 4.3日期格式为 YYYY-MM-DD或YYYY/MM/DD,例:2014-04-01或20104/04/01 + _saleDate string + // 成人旅客身份,1.不得为空 2.普通/学生 3.当输入学生时,儿童价格项输入无效 4.当为小团产品时,此适用身份类别必须为 普通。5、后期支持劳工、移民、海员、老人、青年 + _adultPassengerIdentity string + // 最小出行人数,数字1-9 + _minTravelPerson int64 + // 最大出行人数,数字1-9 + _maxTravelPerson int64 + // 小团儿童计数规则,可选值:1个儿童计1个成人、2个儿童计1个成人、儿童不计 + _gv2ChildRule string + // 国籍,可录入多个用","隔开表示或的关系 1、可录入国家二字代码,为空表示不限制,最多录20个 *默认为空,不输入为不限制 + _nationality string + // 除外国籍,可录入多个用","隔开表示或的关系 1、可录入国家二字代码,为空表示不限制,最多录20个 *默认为空,不输入为不限制 + _excludeNationality string + // 乘客年龄,1、可录入范围如21-25表示21周岁至25周岁 + _passengerAge string + // 销售票面价,1.不得为空 2.价格区间为【0-999999】 3、销售票面价为10的整数倍(向下取整,如录入3002,则实际录入数值为3000) + _ticketPrice int64 + // (后期字段,预留),成人税费,1、整数金额(包机切位产品适用) + _adultTax string + // 儿童价,1、可不输入,空表示不适用儿童价 2、可输入大于0的正整数及百分比,输入百分比时,成人价格必须录入 例如:2000或70%。 3. 百分比计算的数值,个位向上取整 当"乘客类型"输入非“普通”(成人)时,此项输入无效。 + _childPrice string + // (后期字段,预留),儿童税费,1、整数金额(包机切位产品适用) + _childTax string + // 返点,1.不得为空 2.只允许填写数字,支持到小数点后两位;不用填写% 3.返点需小于100 成人价=销售票面价*(1-返点)+留钱 + _returnPoint float64 + // 留钱,1.0或正负数字2.-20表示返20元;20代表留20元 + _adjustMoney int64 + // 提前出票时限,默认为空,代表无限制; 输入为小于等于365的正整数。 小于或等于最晚出票时限。 单位为天 + _earlyTicketingTimeLimit int64 + // 最晚出票时限,默认为空,代表无限制; 输入为小于等于365的正整数。 大于或等于提前出票时限。 单位为天 + _lateTicketingTimeLimit int64 + // 大客户编码,文本框 + _vipCode string + // (后期字段,预留),运价发布渠道,1、可填写 PC、无线、都适用 2、默认为都适用 + _fareSource string + // (后期字段,预留),是否创建PNR,1、选项 可填写是,否.默认为是 + _isCreatePnr string + // 预定OFFICE,空表示默认优先级最高OFFICE,可输入OFFICE,校验必须为配置中存在的OFFICE + _bookingOffice string + // 必填项 赋值范围:电子行程单,旅行发票,差额行程单发票,等额行程单 + _receipts string + // 是否校验票面价,1、可填写 是或者否;默认为否 + _isValidatPrice string + // (已废除字段),去程全部未使用可否退票,录入是或否 + _isCanRefund4Dep string + // (已废除字段),去程全部未使用退票费用,可输入格式如:200-72-300-48-1000-0-*,表示72小时前退票手续费200;48小时到72小时,退票手续费300;飞机起飞不足48小时退票手续费1000;飞机起飞后不予退票(输入*); + _refundPrice4Dep string + // (已废除字段),去程部分未使用退票费用,可输入空,*或正整数,其中空表示按照航空公司规定执行,*表示不支持部分退票 + _refundPartPrice4Dep string + // (已废除字段),去程全部未使用可否改期,录入是或否 + _isCanReissue4Dep string + // (已废除字段),去程全部未使用改期费用,可输入格式如:200-72-300-48-1000-0-*,表示72小时前改期手续费200;48小时到72小时,改期手续费300;飞机起飞不足48小时改期手续费1000;飞机起飞后不予改期(输入*); + _reissuePrice4Dep string + // (已废除字段),去程部分未使用改期费用,可输入空,*或正整数,其中空表示按照航空公司规定执行,*表示不支持部分改期 + _reissuePartPrice4Dep string + // (已废除字段),去程NOSHOW规定时限,输入正整数 + _noShowTimeLimit4Dep int64 + // (已废除字段),去程NOSHOW能否退票,输入是或否;默认为否 + _isNoShowCanRefund4Dep string + // (已废除字段),去程NOSHOW能否改期,输入是或否;默认为否 + _isNoShowCanReissue4Dep string + // (已废除字段),去程NOSHOW罚金,可为空,若输入则为正整数;其中空表示按航空公司规定执行 + _noShowPenalty4Dep int64 + // (后期字段,预留),去程行李额规定,可输入1-23,1-23 中间用","隔开,表示第一程和第二程(中转)支持行李额为1PC,23KG。若某段为空表示该段按照航空公司规定执行,逗号不可缺少;若不提供免费行李额直接输入空 + _luggageRule4Dep string + // 备注,出票备注文本 + _remark string + // 工作时间,18:00FRI表示周一到周五的每天早上9点到下午6点 最多录入三个时间段用,隔开表示或的关系 可以为空,表示不限制(运价上的工作时间优先级高于设置时间界面上的时间) + _workingHours string + // (已废除字段)退票规定,1、不可为空 2、可填写:收取20%退票费用,或者是收取500元退票费等。 3、退票规定最多为300个字符 + _refundRule string + // (已废除字段)改期规定,1、不可为空 2、可填写:收取20%改期费用,或者是收取500元改期费等。 3、改期规定最多为300个字符 + _reissueRule string + // (已废除字段)误机罚金说明,1、不可为空 2、可填写:起飞前不得退票,不得改期 3、误机罚金说明最多为300个字符 + _noshowRule string + // 行李额规定,1、不可为空2、可填写:1PC。逾重行李费用为每公斤100元3、行李额规定最多为300个字符 + _luggageRule string + // 运价渠道 可选listing,宝贝 默认listing + _applyChannel string + // 商品类型,可选值:普通、金牌,默认普通,非金牌卖家不得选择金牌 + _commodityType string + // 不录入表示不限制;选项为:仅限同集团代码共享适用;代码共享适用;不允许代码共享;不限制 默认不限制 + _codeSharingType string + // json格式的字符串,扩展属性,预留 + _extendAttributes string + // 购票须知,非必输长度小于300字符只在退票规定不为空时才会生效 + _buyTicketNotice string + // 必填项,全部未使用可否退票,可输入:是,否 + _isCanAllRefund string + // 【全部未使用可否退票】为是时,此项为必填项。 可输入格式如: 1) 200 表示退票手续费为200(货币单位在下一个格子里) 2) 20% 表示退票手续费为票面价的20% 3)* 表示不允许退票 4) 200-0-400 表示起飞前退票手续费200;起飞后退票手续费400 5) 30%-0-* 表示起飞前退票手续费为票面价的30%;起飞后不允许退票 6)200-72-300-48-1000-0-* 表示72小时前退票手续费200; 48小时到72小时,退票手续费300; 飞机起飞不足48小时; 退票手续费1000; 飞机起飞后不予退票(输入*) 7) 10%-72-30%-48-70%-0-* 表示72小时前退票手续费为票面价的10%; 48小时到72小时,退票手续费为票面价的30%; 飞机起飞不足48小时; 退票手续费为票面价的70%; 飞机起飞后不予退票(输入*) + _refundFeeAllUnused string + // 全部未使用退票币种,只能录入币种三字码,默认值CNY + _refundCurrencyAllUnused string + // 全部未使用退票费用收取方式,按每个航段收还是全程收(0:全程, 1:每个航段,默认值:全程) + _refundFeeTypeAllUnused string + // 必填项,部分未使用可否退票,可输入:是,否 + _isCanPartRefund string + // 部分未使用退票费用,格式同【全部未使用退票费用】,【部分未使用可否退票】为是时,此项为必填项 + _refundFeePartUnused string + // 部分未使用退票币种,可录入币种三字码,默认值CNY + _refundCurrencyPartUnused string + // 部分未使用退票费用收取方式,按每个航段收还是全程收(0:全程, 1:每个航段,默认值:全程) + _refundFeeTypePartUnused string + // 必填项,去程可否改期,可输入是或否 + _canDepChange string + // 【去程可否改期】为是时为必填项, 可输入格式如: 1) 200 表示改期手续费为200(货币单位在下一个格子里) 2)* 表示不允许改期 3) 200-0-400 表示起飞前改期手续费200;起飞后改期手续费400 4) 30-0-* 表示起飞前改期手续费30;起飞后不允许改期 5)200-72-300-48-1000-0-* 表示72小时前改期手续费200; 48小时到72小时,改期手续费300; 飞机起飞不足48小时; 改期手续费1000; 飞机起飞后不予改期(输入*) + _depChangeFee string + // 去程改期币种,可录入币种三字码,默认值CNY + _depChangeCurrency string + // 去程改期费用收取方式,按每个航段收还是全程收(0:全程, 1:每个航段,默认值:全程) + _depChangeFeeType string + // 必填项,NOSHOW是否有限制,可输入是或否 + _noshowRestrict string + // NOSHOW时限,只能录入整数,【NOSHOW是否有限制】为是时,此项为必填项 + _noshowTimeRestrict string + // NOSHOW时限单位(小时/天, 默认为小时) + _noshowTimeRestrictUnit string + // NOSHOW规则,可录入多个,多个用逗号分隔。可录入不可退票、不可改期、不可退票,不可改期 + _noshowRuleType string + // NOSHOW金额,只能录入整数或百分比,【NOSHOW是否有限制】为是,【NOSHOW规则】不是不可退票,不可改期时,此项为必填项 + _noshowFee string + // NOSHOW币种,可录入币种三字码,默认值CNY + _noshowCurrency string + // 运价基础,最大长度8 + _farebasis string + // 运价类型,最大长度3 + _fareTypeCode string + // 运价tariff,最大长度3 + _tariff string + // 运价规则id,最大长度4 + _ruleId string +} + +// 初始化TaobaoAlitripItFareAddowAPIRequest对象 +func NewTaobaoAlitripItFareAddowRequest() *TaobaoAlitripItFareAddowAPIRequest{ + return &TaobaoAlitripItFareAddowAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripItFareAddowAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.it.fare.addow" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripItFareAddowAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutFileCode Setter +// 外部政策ID,1、自行输入的ID,建议为唯一id,有些操作可以使用此id 最多50个字符 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetOutFileCode(_outFileCode string) error { + r._outFileCode = _outFileCode + r.Set("outFileCode", _outFileCode) + return nil +} + +// OutFileCode Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetOutFileCode() string { + return r._outFileCode +} +// FileCode Setter +// 文件编号 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetFileCode(_fileCode string) error { + r._fileCode = _fileCode + r.Set("fileCode", _fileCode) + return nil +} + +// FileCode Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetFileCode() string { + return r._fileCode +} +// ProductType Setter +// (后期字段,预留),产品类型,1.不可为空 2.填写为:包机切位、申请、见舱预订; +func (r *TaobaoAlitripItFareAddowAPIRequest) SetProductType(_productType string) error { + r._productType = _productType + r.Set("productType", _productType) + return nil +} + +// ProductType Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetProductType() string { + return r._productType +} +// StockMode Setter +// (后期字段,预留),库存模式,1.不可为空 2.填写为见舱或定额;默认为见舱 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetStockMode(_stockMode string) error { + r._stockMode = _stockMode + r.Set("stockMode", _stockMode) + return nil +} + +// StockMode Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetStockMode() string { + return r._stockMode +} +// TicketingAirline Setter +// 出票航司,1.不可为空 2.航空公司二字码 3.只能输入一个 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetTicketingAirline(_ticketingAirline string) error { + r._ticketingAirline = _ticketingAirline + r.Set("ticketingAirline", _ticketingAirline) + return nil +} + +// TicketingAirline Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetTicketingAirline() string { + return r._ticketingAirline +} +// SaleAirline Setter +// 销售航司,不同航段之间用 “,”隔开。 1、销售航司二字码; 2、如为直达;请录入一个航司二字码;如为中转,录入格式为 第一程航司,第二程航司;或者航司;若全程都一样,则录入一个航司二字代码即可 3、如果不录入,则航司默认为出票航司; +func (r *TaobaoAlitripItFareAddowAPIRequest) SetSaleAirline(_saleAirline string) error { + r._saleAirline = _saleAirline + r.Set("saleAirline", _saleAirline) + return nil +} + +// SaleAirline Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetSaleAirline() string { + return r._saleAirline +} +// AddressOption Setter +// 城市/机场选项,默认为城市1、可以填写:“机场",“城市”2、定义始发地/目的地/中转点,输入为机场,还是城市。3、如:此项输入机场,则始发地、目的地必须输入机场三字码 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetAddressOption(_addressOption string) error { + r._addressOption = _addressOption + r.Set("addressOption", _addressOption) + return nil +} + +// AddressOption Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetAddressOption() string { + return r._addressOption +} +// TripType Setter +// 航程种类,1、默认为直达;有直达和中转两个选项;2、不填写 默认为 直达 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetTripType(_tripType string) error { + r._tripType = _tripType + r.Set("tripType", _tripType) + return nil +} + +// TripType Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetTripType() string { + return r._tripType +} +// OriginLand Setter +// 始发地,多个用“,”隔开 1.不得为空 2.可以填写:机场三字码”或“城市码” 3.最多允许100个机场三字码/城市码 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetOriginLand(_originLand string) error { + r._originLand = _originLand + r.Set("originLand", _originLand) + return nil +} + +// OriginLand Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetOriginLand() string { + return r._originLand +} +// Destination Setter +// 目的地,多个用“,”隔开 1.不得为空 2.可以填写:机场三字码”或“城市码” 3.最多允许100个机场三字码/城市码 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetDestination(_destination string) error { + r._destination = _destination + r.Set("destination", _destination) + return nil +} + +// Destination Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetDestination() string { + return r._destination +} +// TransitLand Setter +// 中转地,多个用“,”隔开 1.不得为空 2.可以填写:机场三字码,城市码 3.最多允许100个机场三字码/城市码 4、当航程类型书写为 中转时,此处为必填 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetTransitLand(_transitLand string) error { + r._transitLand = _transitLand + r.Set("transitLand", _transitLand) + return nil +} + +// TransitLand Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetTransitLand() string { + return r._transitLand +} +// Cabin Setter +// 舱位, 用","表示航段的分割。 1、舱位代码。每段只允许录入一个舱位代码,若全程舱位一致则可以只录入一个 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetCabin(_cabin string) error { + r._cabin = _cabin + r.Set("cabin", _cabin) + return nil +} + +// Cabin Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetCabin() string { + return r._cabin +} +// RestrictFlightNo Setter +// 航班号限制,同一航段之间用,隔开表示或的关系;不同航段之间用/隔开。 1 CA001-999,CA3000-3999 表示CA001至999以及3000至3999之间航班号的航班 2 MU 表示所有MU开头的航班 3 CA(LH\AZ) 表示CA开头的实际承运人为LH或AZ的航班 4 CA(*) 表示CA代码共享航班/CA开头的实际承运人为其他航空公司的航班 5 CA(CA) 表示CA自营航班/CA实际承运航班; 6 CA(OZ)001-999 表示CA开头航班号为001-999之间且实际承运人为OZ的航班; 7 为空表示无限制 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetRestrictFlightNo(_restrictFlightNo string) error { + r._restrictFlightNo = _restrictFlightNo + r.Set("restrictFlightNo", _restrictFlightNo) + return nil +} + +// RestrictFlightNo Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetRestrictFlightNo() string { + return r._restrictFlightNo +} +// ExcludeFlightNo Setter +// 排除航班号限制,同一航段之间用,隔开表示或的关系;不同航段之间用/隔开。 1 CA001-999,CA3000-3999 表示CA001至999以及3000至3999之间航班号的航班 2 MU 表示所有MU开头的自营航班 3 CA(LH\AZ) 表示CA开头的实际承运人为LH或AZ的航班 4 CA(*) 表示CA代码共享航班/CA开头的实际承运人为其他航空公司的航班 5 CA(CA) 表示CA自营航班/CA实际承运航班; 6 CA(OZ)001-999 表示CA开头航班号为001-999之间且实际承运人为OZ的航班; 7 为空表示无限制;8比如两段,第一段无限制,第二段有限制 /CA123 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetExcludeFlightNo(_excludeFlightNo string) error { + r._excludeFlightNo = _excludeFlightNo + r.Set("excludeFlightNo", _excludeFlightNo) + return nil +} + +// ExcludeFlightNo Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetExcludeFlightNo() string { + return r._excludeFlightNo +} +// ValidDate4Dep Setter +// 去程旅行有效期,支持多段组合,用“,”隔开, 1.不得为空 2例:2014-04-01~2014-06-30,2014-09-01 ~2014-09-30, 3日期格式为 YYYY-MM-DD或YYYY/MM/DD,例:2014-04-01或2014/04/01 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetValidDate4Dep(_validDate4Dep string) error { + r._validDate4Dep = _validDate4Dep + r.Set("validDate4Dep", _validDate4Dep) + return nil +} + +// ValidDate4Dep Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetValidDate4Dep() string { + return r._validDate4Dep +} +// ExcludeDateRange4Dep Setter +// 去程旅行排除时间段,支持多段组合,用“,”隔开隔开, 1.格式,例:2014-04-01~2014-12-31;或例:2014-04-01~2014-06-30,2014-09-01~2014-09-30, 3日期格式为 YYYY-MM-DD,YYYY/MM/DD 4、旅行排除日期最多只能输入200个字符 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetExcludeDateRange4Dep(_excludeDateRange4Dep string) error { + r._excludeDateRange4Dep = _excludeDateRange4Dep + r.Set("excludeDateRange4Dep", _excludeDateRange4Dep) + return nil +} + +// ExcludeDateRange4Dep Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetExcludeDateRange4Dep() string { + return r._excludeDateRange4Dep +} +// TripDatePoint4Dep Setter +// 去程旅行日期作用点,始发航段/第一国际段/主航段/全部;默认空为 第一国际段 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetTripDatePoint4Dep(_tripDatePoint4Dep string) error { + r._tripDatePoint4Dep = _tripDatePoint4Dep + r.Set("tripDatePoint4Dep", _tripDatePoint4Dep) + return nil +} + +// TripDatePoint4Dep Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetTripDatePoint4Dep() string { + return r._tripDatePoint4Dep +} +// TripExcludeDatePoint4Dep Setter +// 去程旅行排除日期作用点,始发航段/第一国际段/主航段/全部;默认空为 第一国际段 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetTripExcludeDatePoint4Dep(_tripExcludeDatePoint4Dep string) error { + r._tripExcludeDatePoint4Dep = _tripExcludeDatePoint4Dep + r.Set("tripExcludeDatePoint4Dep", _tripExcludeDatePoint4Dep) + return nil +} + +// TripExcludeDatePoint4Dep Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetTripExcludeDatePoint4Dep() string { + return r._tripExcludeDatePoint4Dep +} +// FlightDateRestrict4Dep Setter +// 去程班期限制,1.12表示周一周二 2.12:00-14:00表示每天的12点到14点 3. 12:00FRI-12:00SAT 表示周五的中午12点至周六的中午12点 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetFlightDateRestrict4Dep(_flightDateRestrict4Dep string) error { + r._flightDateRestrict4Dep = _flightDateRestrict4Dep + r.Set("flightDateRestrict4Dep", _flightDateRestrict4Dep) + return nil +} + +// FlightDateRestrict4Dep Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetFlightDateRestrict4Dep() string { + return r._flightDateRestrict4Dep +} +// FlightDatePoint4Dep Setter +// 去程班期作用点,始发航段/第一国际段/主航段/全部;默认空为 第一国际段 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetFlightDatePoint4Dep(_flightDatePoint4Dep string) error { + r._flightDatePoint4Dep = _flightDatePoint4Dep + r.Set("flightDatePoint4Dep", _flightDatePoint4Dep) + return nil +} + +// FlightDatePoint4Dep Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetFlightDatePoint4Dep() string { + return r._flightDatePoint4Dep +} +// SaleDate Setter +// 销售日期,1、不得为空 2.输入格式为:2014-04-01~2014-06-30 3.不支持多段组合, 4.3日期格式为 YYYY-MM-DD或YYYY/MM/DD,例:2014-04-01或20104/04/01 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetSaleDate(_saleDate string) error { + r._saleDate = _saleDate + r.Set("saleDate", _saleDate) + return nil +} + +// SaleDate Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetSaleDate() string { + return r._saleDate +} +// AdultPassengerIdentity Setter +// 成人旅客身份,1.不得为空 2.普通/学生 3.当输入学生时,儿童价格项输入无效 4.当为小团产品时,此适用身份类别必须为 普通。5、后期支持劳工、移民、海员、老人、青年 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetAdultPassengerIdentity(_adultPassengerIdentity string) error { + r._adultPassengerIdentity = _adultPassengerIdentity + r.Set("adultPassengerIdentity", _adultPassengerIdentity) + return nil +} + +// AdultPassengerIdentity Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetAdultPassengerIdentity() string { + return r._adultPassengerIdentity +} +// MinTravelPerson Setter +// 最小出行人数,数字1-9 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetMinTravelPerson(_minTravelPerson int64) error { + r._minTravelPerson = _minTravelPerson + r.Set("minTravelPerson", _minTravelPerson) + return nil +} + +// MinTravelPerson Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetMinTravelPerson() int64 { + return r._minTravelPerson +} +// MaxTravelPerson Setter +// 最大出行人数,数字1-9 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetMaxTravelPerson(_maxTravelPerson int64) error { + r._maxTravelPerson = _maxTravelPerson + r.Set("maxTravelPerson", _maxTravelPerson) + return nil +} + +// MaxTravelPerson Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetMaxTravelPerson() int64 { + return r._maxTravelPerson +} +// Gv2ChildRule Setter +// 小团儿童计数规则,可选值:1个儿童计1个成人、2个儿童计1个成人、儿童不计 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetGv2ChildRule(_gv2ChildRule string) error { + r._gv2ChildRule = _gv2ChildRule + r.Set("gv2ChildRule", _gv2ChildRule) + return nil +} + +// Gv2ChildRule Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetGv2ChildRule() string { + return r._gv2ChildRule +} +// Nationality Setter +// 国籍,可录入多个用","隔开表示或的关系 1、可录入国家二字代码,为空表示不限制,最多录20个 *默认为空,不输入为不限制 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetNationality(_nationality string) error { + r._nationality = _nationality + r.Set("nationality", _nationality) + return nil +} + +// Nationality Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetNationality() string { + return r._nationality +} +// ExcludeNationality Setter +// 除外国籍,可录入多个用","隔开表示或的关系 1、可录入国家二字代码,为空表示不限制,最多录20个 *默认为空,不输入为不限制 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetExcludeNationality(_excludeNationality string) error { + r._excludeNationality = _excludeNationality + r.Set("excludeNationality", _excludeNationality) + return nil +} + +// ExcludeNationality Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetExcludeNationality() string { + return r._excludeNationality +} +// PassengerAge Setter +// 乘客年龄,1、可录入范围如21-25表示21周岁至25周岁 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetPassengerAge(_passengerAge string) error { + r._passengerAge = _passengerAge + r.Set("passengerAge", _passengerAge) + return nil +} + +// PassengerAge Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetPassengerAge() string { + return r._passengerAge +} +// TicketPrice Setter +// 销售票面价,1.不得为空 2.价格区间为【0-999999】 3、销售票面价为10的整数倍(向下取整,如录入3002,则实际录入数值为3000) +func (r *TaobaoAlitripItFareAddowAPIRequest) SetTicketPrice(_ticketPrice int64) error { + r._ticketPrice = _ticketPrice + r.Set("ticketPrice", _ticketPrice) + return nil +} + +// TicketPrice Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetTicketPrice() int64 { + return r._ticketPrice +} +// AdultTax Setter +// (后期字段,预留),成人税费,1、整数金额(包机切位产品适用) +func (r *TaobaoAlitripItFareAddowAPIRequest) SetAdultTax(_adultTax string) error { + r._adultTax = _adultTax + r.Set("adultTax", _adultTax) + return nil +} + +// AdultTax Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetAdultTax() string { + return r._adultTax +} +// ChildPrice Setter +// 儿童价,1、可不输入,空表示不适用儿童价 2、可输入大于0的正整数及百分比,输入百分比时,成人价格必须录入 例如:2000或70%。 3. 百分比计算的数值,个位向上取整 当"乘客类型"输入非“普通”(成人)时,此项输入无效。 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetChildPrice(_childPrice string) error { + r._childPrice = _childPrice + r.Set("childPrice", _childPrice) + return nil +} + +// ChildPrice Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetChildPrice() string { + return r._childPrice +} +// ChildTax Setter +// (后期字段,预留),儿童税费,1、整数金额(包机切位产品适用) +func (r *TaobaoAlitripItFareAddowAPIRequest) SetChildTax(_childTax string) error { + r._childTax = _childTax + r.Set("childTax", _childTax) + return nil +} + +// ChildTax Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetChildTax() string { + return r._childTax +} +// ReturnPoint Setter +// 返点,1.不得为空 2.只允许填写数字,支持到小数点后两位;不用填写% 3.返点需小于100 成人价=销售票面价*(1-返点)+留钱 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetReturnPoint(_returnPoint float64) error { + r._returnPoint = _returnPoint + r.Set("returnPoint", _returnPoint) + return nil +} + +// ReturnPoint Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetReturnPoint() float64 { + return r._returnPoint +} +// AdjustMoney Setter +// 留钱,1.0或正负数字2.-20表示返20元;20代表留20元 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetAdjustMoney(_adjustMoney int64) error { + r._adjustMoney = _adjustMoney + r.Set("adjustMoney", _adjustMoney) + return nil +} + +// AdjustMoney Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetAdjustMoney() int64 { + return r._adjustMoney +} +// EarlyTicketingTimeLimit Setter +// 提前出票时限,默认为空,代表无限制; 输入为小于等于365的正整数。 小于或等于最晚出票时限。 单位为天 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetEarlyTicketingTimeLimit(_earlyTicketingTimeLimit int64) error { + r._earlyTicketingTimeLimit = _earlyTicketingTimeLimit + r.Set("earlyTicketingTimeLimit", _earlyTicketingTimeLimit) + return nil +} + +// EarlyTicketingTimeLimit Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetEarlyTicketingTimeLimit() int64 { + return r._earlyTicketingTimeLimit +} +// LateTicketingTimeLimit Setter +// 最晚出票时限,默认为空,代表无限制; 输入为小于等于365的正整数。 大于或等于提前出票时限。 单位为天 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetLateTicketingTimeLimit(_lateTicketingTimeLimit int64) error { + r._lateTicketingTimeLimit = _lateTicketingTimeLimit + r.Set("lateTicketingTimeLimit", _lateTicketingTimeLimit) + return nil +} + +// LateTicketingTimeLimit Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetLateTicketingTimeLimit() int64 { + return r._lateTicketingTimeLimit +} +// VipCode Setter +// 大客户编码,文本框 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetVipCode(_vipCode string) error { + r._vipCode = _vipCode + r.Set("vipCode", _vipCode) + return nil +} + +// VipCode Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetVipCode() string { + return r._vipCode +} +// FareSource Setter +// (后期字段,预留),运价发布渠道,1、可填写 PC、无线、都适用 2、默认为都适用 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetFareSource(_fareSource string) error { + r._fareSource = _fareSource + r.Set("fareSource", _fareSource) + return nil +} + +// FareSource Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetFareSource() string { + return r._fareSource +} +// IsCreatePnr Setter +// (后期字段,预留),是否创建PNR,1、选项 可填写是,否.默认为是 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetIsCreatePnr(_isCreatePnr string) error { + r._isCreatePnr = _isCreatePnr + r.Set("isCreatePnr", _isCreatePnr) + return nil +} + +// IsCreatePnr Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetIsCreatePnr() string { + return r._isCreatePnr +} +// BookingOffice Setter +// 预定OFFICE,空表示默认优先级最高OFFICE,可输入OFFICE,校验必须为配置中存在的OFFICE +func (r *TaobaoAlitripItFareAddowAPIRequest) SetBookingOffice(_bookingOffice string) error { + r._bookingOffice = _bookingOffice + r.Set("bookingOffice", _bookingOffice) + return nil +} + +// BookingOffice Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetBookingOffice() string { + return r._bookingOffice +} +// Receipts Setter +// 必填项 赋值范围:电子行程单,旅行发票,差额行程单发票,等额行程单 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetReceipts(_receipts string) error { + r._receipts = _receipts + r.Set("receipts", _receipts) + return nil +} + +// Receipts Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetReceipts() string { + return r._receipts +} +// IsValidatPrice Setter +// 是否校验票面价,1、可填写 是或者否;默认为否 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetIsValidatPrice(_isValidatPrice string) error { + r._isValidatPrice = _isValidatPrice + r.Set("isValidatPrice", _isValidatPrice) + return nil +} + +// IsValidatPrice Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetIsValidatPrice() string { + return r._isValidatPrice +} +// IsCanRefund4Dep Setter +// (已废除字段),去程全部未使用可否退票,录入是或否 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetIsCanRefund4Dep(_isCanRefund4Dep string) error { + r._isCanRefund4Dep = _isCanRefund4Dep + r.Set("isCanRefund4Dep", _isCanRefund4Dep) + return nil +} + +// IsCanRefund4Dep Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetIsCanRefund4Dep() string { + return r._isCanRefund4Dep +} +// RefundPrice4Dep Setter +// (已废除字段),去程全部未使用退票费用,可输入格式如:200-72-300-48-1000-0-*,表示72小时前退票手续费200;48小时到72小时,退票手续费300;飞机起飞不足48小时退票手续费1000;飞机起飞后不予退票(输入*); +func (r *TaobaoAlitripItFareAddowAPIRequest) SetRefundPrice4Dep(_refundPrice4Dep string) error { + r._refundPrice4Dep = _refundPrice4Dep + r.Set("refundPrice4Dep", _refundPrice4Dep) + return nil +} + +// RefundPrice4Dep Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetRefundPrice4Dep() string { + return r._refundPrice4Dep +} +// RefundPartPrice4Dep Setter +// (已废除字段),去程部分未使用退票费用,可输入空,*或正整数,其中空表示按照航空公司规定执行,*表示不支持部分退票 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetRefundPartPrice4Dep(_refundPartPrice4Dep string) error { + r._refundPartPrice4Dep = _refundPartPrice4Dep + r.Set("refundPartPrice4Dep", _refundPartPrice4Dep) + return nil +} + +// RefundPartPrice4Dep Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetRefundPartPrice4Dep() string { + return r._refundPartPrice4Dep +} +// IsCanReissue4Dep Setter +// (已废除字段),去程全部未使用可否改期,录入是或否 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetIsCanReissue4Dep(_isCanReissue4Dep string) error { + r._isCanReissue4Dep = _isCanReissue4Dep + r.Set("isCanReissue4Dep", _isCanReissue4Dep) + return nil +} + +// IsCanReissue4Dep Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetIsCanReissue4Dep() string { + return r._isCanReissue4Dep +} +// ReissuePrice4Dep Setter +// (已废除字段),去程全部未使用改期费用,可输入格式如:200-72-300-48-1000-0-*,表示72小时前改期手续费200;48小时到72小时,改期手续费300;飞机起飞不足48小时改期手续费1000;飞机起飞后不予改期(输入*); +func (r *TaobaoAlitripItFareAddowAPIRequest) SetReissuePrice4Dep(_reissuePrice4Dep string) error { + r._reissuePrice4Dep = _reissuePrice4Dep + r.Set("reissuePrice4Dep", _reissuePrice4Dep) + return nil +} + +// ReissuePrice4Dep Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetReissuePrice4Dep() string { + return r._reissuePrice4Dep +} +// ReissuePartPrice4Dep Setter +// (已废除字段),去程部分未使用改期费用,可输入空,*或正整数,其中空表示按照航空公司规定执行,*表示不支持部分改期 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetReissuePartPrice4Dep(_reissuePartPrice4Dep string) error { + r._reissuePartPrice4Dep = _reissuePartPrice4Dep + r.Set("reissuePartPrice4Dep", _reissuePartPrice4Dep) + return nil +} + +// ReissuePartPrice4Dep Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetReissuePartPrice4Dep() string { + return r._reissuePartPrice4Dep +} +// NoShowTimeLimit4Dep Setter +// (已废除字段),去程NOSHOW规定时限,输入正整数 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetNoShowTimeLimit4Dep(_noShowTimeLimit4Dep int64) error { + r._noShowTimeLimit4Dep = _noShowTimeLimit4Dep + r.Set("noShowTimeLimit4Dep", _noShowTimeLimit4Dep) + return nil +} + +// NoShowTimeLimit4Dep Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetNoShowTimeLimit4Dep() int64 { + return r._noShowTimeLimit4Dep +} +// IsNoShowCanRefund4Dep Setter +// (已废除字段),去程NOSHOW能否退票,输入是或否;默认为否 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetIsNoShowCanRefund4Dep(_isNoShowCanRefund4Dep string) error { + r._isNoShowCanRefund4Dep = _isNoShowCanRefund4Dep + r.Set("isNoShowCanRefund4Dep", _isNoShowCanRefund4Dep) + return nil +} + +// IsNoShowCanRefund4Dep Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetIsNoShowCanRefund4Dep() string { + return r._isNoShowCanRefund4Dep +} +// IsNoShowCanReissue4Dep Setter +// (已废除字段),去程NOSHOW能否改期,输入是或否;默认为否 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetIsNoShowCanReissue4Dep(_isNoShowCanReissue4Dep string) error { + r._isNoShowCanReissue4Dep = _isNoShowCanReissue4Dep + r.Set("isNoShowCanReissue4Dep", _isNoShowCanReissue4Dep) + return nil +} + +// IsNoShowCanReissue4Dep Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetIsNoShowCanReissue4Dep() string { + return r._isNoShowCanReissue4Dep +} +// NoShowPenalty4Dep Setter +// (已废除字段),去程NOSHOW罚金,可为空,若输入则为正整数;其中空表示按航空公司规定执行 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetNoShowPenalty4Dep(_noShowPenalty4Dep int64) error { + r._noShowPenalty4Dep = _noShowPenalty4Dep + r.Set("noShowPenalty4Dep", _noShowPenalty4Dep) + return nil +} + +// NoShowPenalty4Dep Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetNoShowPenalty4Dep() int64 { + return r._noShowPenalty4Dep +} +// LuggageRule4Dep Setter +// (后期字段,预留),去程行李额规定,可输入1-23,1-23 中间用","隔开,表示第一程和第二程(中转)支持行李额为1PC,23KG。若某段为空表示该段按照航空公司规定执行,逗号不可缺少;若不提供免费行李额直接输入空 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetLuggageRule4Dep(_luggageRule4Dep string) error { + r._luggageRule4Dep = _luggageRule4Dep + r.Set("luggageRule4Dep", _luggageRule4Dep) + return nil +} + +// LuggageRule4Dep Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetLuggageRule4Dep() string { + return r._luggageRule4Dep +} +// Remark Setter +// 备注,出票备注文本 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetRemark() string { + return r._remark +} +// WorkingHours Setter +// 工作时间,18:00FRI表示周一到周五的每天早上9点到下午6点 最多录入三个时间段用,隔开表示或的关系 可以为空,表示不限制(运价上的工作时间优先级高于设置时间界面上的时间) +func (r *TaobaoAlitripItFareAddowAPIRequest) SetWorkingHours(_workingHours string) error { + r._workingHours = _workingHours + r.Set("workingHours", _workingHours) + return nil +} + +// WorkingHours Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetWorkingHours() string { + return r._workingHours +} +// RefundRule Setter +// (已废除字段)退票规定,1、不可为空 2、可填写:收取20%退票费用,或者是收取500元退票费等。 3、退票规定最多为300个字符 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetRefundRule(_refundRule string) error { + r._refundRule = _refundRule + r.Set("refundRule", _refundRule) + return nil +} + +// RefundRule Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetRefundRule() string { + return r._refundRule +} +// ReissueRule Setter +// (已废除字段)改期规定,1、不可为空 2、可填写:收取20%改期费用,或者是收取500元改期费等。 3、改期规定最多为300个字符 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetReissueRule(_reissueRule string) error { + r._reissueRule = _reissueRule + r.Set("reissueRule", _reissueRule) + return nil +} + +// ReissueRule Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetReissueRule() string { + return r._reissueRule +} +// NoshowRule Setter +// (已废除字段)误机罚金说明,1、不可为空 2、可填写:起飞前不得退票,不得改期 3、误机罚金说明最多为300个字符 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetNoshowRule(_noshowRule string) error { + r._noshowRule = _noshowRule + r.Set("noshowRule", _noshowRule) + return nil +} + +// NoshowRule Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetNoshowRule() string { + return r._noshowRule +} +// LuggageRule Setter +// 行李额规定,1、不可为空2、可填写:1PC。逾重行李费用为每公斤100元3、行李额规定最多为300个字符 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetLuggageRule(_luggageRule string) error { + r._luggageRule = _luggageRule + r.Set("luggageRule", _luggageRule) + return nil +} + +// LuggageRule Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetLuggageRule() string { + return r._luggageRule +} +// ApplyChannel Setter +// 运价渠道 可选listing,宝贝 默认listing +func (r *TaobaoAlitripItFareAddowAPIRequest) SetApplyChannel(_applyChannel string) error { + r._applyChannel = _applyChannel + r.Set("applyChannel", _applyChannel) + return nil +} + +// ApplyChannel Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetApplyChannel() string { + return r._applyChannel +} +// CommodityType Setter +// 商品类型,可选值:普通、金牌,默认普通,非金牌卖家不得选择金牌 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetCommodityType(_commodityType string) error { + r._commodityType = _commodityType + r.Set("commodityType", _commodityType) + return nil +} + +// CommodityType Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetCommodityType() string { + return r._commodityType +} +// CodeSharingType Setter +// 不录入表示不限制;选项为:仅限同集团代码共享适用;代码共享适用;不允许代码共享;不限制 默认不限制 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetCodeSharingType(_codeSharingType string) error { + r._codeSharingType = _codeSharingType + r.Set("codeSharingType", _codeSharingType) + return nil +} + +// CodeSharingType Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetCodeSharingType() string { + return r._codeSharingType +} +// ExtendAttributes Setter +// json格式的字符串,扩展属性,预留 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetExtendAttributes(_extendAttributes string) error { + r._extendAttributes = _extendAttributes + r.Set("extendAttributes", _extendAttributes) + return nil +} + +// ExtendAttributes Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetExtendAttributes() string { + return r._extendAttributes +} +// BuyTicketNotice Setter +// 购票须知,非必输长度小于300字符只在退票规定不为空时才会生效 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetBuyTicketNotice(_buyTicketNotice string) error { + r._buyTicketNotice = _buyTicketNotice + r.Set("buyTicketNotice", _buyTicketNotice) + return nil +} + +// BuyTicketNotice Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetBuyTicketNotice() string { + return r._buyTicketNotice +} +// IsCanAllRefund Setter +// 必填项,全部未使用可否退票,可输入:是,否 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetIsCanAllRefund(_isCanAllRefund string) error { + r._isCanAllRefund = _isCanAllRefund + r.Set("isCanAllRefund", _isCanAllRefund) + return nil +} + +// IsCanAllRefund Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetIsCanAllRefund() string { + return r._isCanAllRefund +} +// RefundFeeAllUnused Setter +// 【全部未使用可否退票】为是时,此项为必填项。 可输入格式如: 1) 200 表示退票手续费为200(货币单位在下一个格子里) 2) 20% 表示退票手续费为票面价的20% 3)* 表示不允许退票 4) 200-0-400 表示起飞前退票手续费200;起飞后退票手续费400 5) 30%-0-* 表示起飞前退票手续费为票面价的30%;起飞后不允许退票 6)200-72-300-48-1000-0-* 表示72小时前退票手续费200; 48小时到72小时,退票手续费300; 飞机起飞不足48小时; 退票手续费1000; 飞机起飞后不予退票(输入*) 7) 10%-72-30%-48-70%-0-* 表示72小时前退票手续费为票面价的10%; 48小时到72小时,退票手续费为票面价的30%; 飞机起飞不足48小时; 退票手续费为票面价的70%; 飞机起飞后不予退票(输入*) +func (r *TaobaoAlitripItFareAddowAPIRequest) SetRefundFeeAllUnused(_refundFeeAllUnused string) error { + r._refundFeeAllUnused = _refundFeeAllUnused + r.Set("refundFeeAllUnused", _refundFeeAllUnused) + return nil +} + +// RefundFeeAllUnused Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetRefundFeeAllUnused() string { + return r._refundFeeAllUnused +} +// RefundCurrencyAllUnused Setter +// 全部未使用退票币种,只能录入币种三字码,默认值CNY +func (r *TaobaoAlitripItFareAddowAPIRequest) SetRefundCurrencyAllUnused(_refundCurrencyAllUnused string) error { + r._refundCurrencyAllUnused = _refundCurrencyAllUnused + r.Set("refundCurrencyAllUnused", _refundCurrencyAllUnused) + return nil +} + +// RefundCurrencyAllUnused Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetRefundCurrencyAllUnused() string { + return r._refundCurrencyAllUnused +} +// RefundFeeTypeAllUnused Setter +// 全部未使用退票费用收取方式,按每个航段收还是全程收(0:全程, 1:每个航段,默认值:全程) +func (r *TaobaoAlitripItFareAddowAPIRequest) SetRefundFeeTypeAllUnused(_refundFeeTypeAllUnused string) error { + r._refundFeeTypeAllUnused = _refundFeeTypeAllUnused + r.Set("refundFeeTypeAllUnused", _refundFeeTypeAllUnused) + return nil +} + +// RefundFeeTypeAllUnused Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetRefundFeeTypeAllUnused() string { + return r._refundFeeTypeAllUnused +} +// IsCanPartRefund Setter +// 必填项,部分未使用可否退票,可输入:是,否 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetIsCanPartRefund(_isCanPartRefund string) error { + r._isCanPartRefund = _isCanPartRefund + r.Set("isCanPartRefund", _isCanPartRefund) + return nil +} + +// IsCanPartRefund Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetIsCanPartRefund() string { + return r._isCanPartRefund +} +// RefundFeePartUnused Setter +// 部分未使用退票费用,格式同【全部未使用退票费用】,【部分未使用可否退票】为是时,此项为必填项 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetRefundFeePartUnused(_refundFeePartUnused string) error { + r._refundFeePartUnused = _refundFeePartUnused + r.Set("refundFeePartUnused", _refundFeePartUnused) + return nil +} + +// RefundFeePartUnused Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetRefundFeePartUnused() string { + return r._refundFeePartUnused +} +// RefundCurrencyPartUnused Setter +// 部分未使用退票币种,可录入币种三字码,默认值CNY +func (r *TaobaoAlitripItFareAddowAPIRequest) SetRefundCurrencyPartUnused(_refundCurrencyPartUnused string) error { + r._refundCurrencyPartUnused = _refundCurrencyPartUnused + r.Set("refundCurrencyPartUnused", _refundCurrencyPartUnused) + return nil +} + +// RefundCurrencyPartUnused Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetRefundCurrencyPartUnused() string { + return r._refundCurrencyPartUnused +} +// RefundFeeTypePartUnused Setter +// 部分未使用退票费用收取方式,按每个航段收还是全程收(0:全程, 1:每个航段,默认值:全程) +func (r *TaobaoAlitripItFareAddowAPIRequest) SetRefundFeeTypePartUnused(_refundFeeTypePartUnused string) error { + r._refundFeeTypePartUnused = _refundFeeTypePartUnused + r.Set("refundFeeTypePartUnused", _refundFeeTypePartUnused) + return nil +} + +// RefundFeeTypePartUnused Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetRefundFeeTypePartUnused() string { + return r._refundFeeTypePartUnused +} +// CanDepChange Setter +// 必填项,去程可否改期,可输入是或否 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetCanDepChange(_canDepChange string) error { + r._canDepChange = _canDepChange + r.Set("canDepChange", _canDepChange) + return nil +} + +// CanDepChange Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetCanDepChange() string { + return r._canDepChange +} +// DepChangeFee Setter +// 【去程可否改期】为是时为必填项, 可输入格式如: 1) 200 表示改期手续费为200(货币单位在下一个格子里) 2)* 表示不允许改期 3) 200-0-400 表示起飞前改期手续费200;起飞后改期手续费400 4) 30-0-* 表示起飞前改期手续费30;起飞后不允许改期 5)200-72-300-48-1000-0-* 表示72小时前改期手续费200; 48小时到72小时,改期手续费300; 飞机起飞不足48小时; 改期手续费1000; 飞机起飞后不予改期(输入*) +func (r *TaobaoAlitripItFareAddowAPIRequest) SetDepChangeFee(_depChangeFee string) error { + r._depChangeFee = _depChangeFee + r.Set("depChangeFee", _depChangeFee) + return nil +} + +// DepChangeFee Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetDepChangeFee() string { + return r._depChangeFee +} +// DepChangeCurrency Setter +// 去程改期币种,可录入币种三字码,默认值CNY +func (r *TaobaoAlitripItFareAddowAPIRequest) SetDepChangeCurrency(_depChangeCurrency string) error { + r._depChangeCurrency = _depChangeCurrency + r.Set("depChangeCurrency", _depChangeCurrency) + return nil +} + +// DepChangeCurrency Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetDepChangeCurrency() string { + return r._depChangeCurrency +} +// DepChangeFeeType Setter +// 去程改期费用收取方式,按每个航段收还是全程收(0:全程, 1:每个航段,默认值:全程) +func (r *TaobaoAlitripItFareAddowAPIRequest) SetDepChangeFeeType(_depChangeFeeType string) error { + r._depChangeFeeType = _depChangeFeeType + r.Set("depChangeFeeType", _depChangeFeeType) + return nil +} + +// DepChangeFeeType Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetDepChangeFeeType() string { + return r._depChangeFeeType +} +// NoshowRestrict Setter +// 必填项,NOSHOW是否有限制,可输入是或否 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetNoshowRestrict(_noshowRestrict string) error { + r._noshowRestrict = _noshowRestrict + r.Set("noshowRestrict", _noshowRestrict) + return nil +} + +// NoshowRestrict Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetNoshowRestrict() string { + return r._noshowRestrict +} +// NoshowTimeRestrict Setter +// NOSHOW时限,只能录入整数,【NOSHOW是否有限制】为是时,此项为必填项 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetNoshowTimeRestrict(_noshowTimeRestrict string) error { + r._noshowTimeRestrict = _noshowTimeRestrict + r.Set("noshowTimeRestrict", _noshowTimeRestrict) + return nil +} + +// NoshowTimeRestrict Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetNoshowTimeRestrict() string { + return r._noshowTimeRestrict +} +// NoshowTimeRestrictUnit Setter +// NOSHOW时限单位(小时/天, 默认为小时) +func (r *TaobaoAlitripItFareAddowAPIRequest) SetNoshowTimeRestrictUnit(_noshowTimeRestrictUnit string) error { + r._noshowTimeRestrictUnit = _noshowTimeRestrictUnit + r.Set("noshowTimeRestrictUnit", _noshowTimeRestrictUnit) + return nil +} + +// NoshowTimeRestrictUnit Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetNoshowTimeRestrictUnit() string { + return r._noshowTimeRestrictUnit +} +// NoshowRuleType Setter +// NOSHOW规则,可录入多个,多个用逗号分隔。可录入不可退票、不可改期、不可退票,不可改期 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetNoshowRuleType(_noshowRuleType string) error { + r._noshowRuleType = _noshowRuleType + r.Set("noshowRuleType", _noshowRuleType) + return nil +} + +// NoshowRuleType Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetNoshowRuleType() string { + return r._noshowRuleType +} +// NoshowFee Setter +// NOSHOW金额,只能录入整数或百分比,【NOSHOW是否有限制】为是,【NOSHOW规则】不是不可退票,不可改期时,此项为必填项 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetNoshowFee(_noshowFee string) error { + r._noshowFee = _noshowFee + r.Set("noshowFee", _noshowFee) + return nil +} + +// NoshowFee Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetNoshowFee() string { + return r._noshowFee +} +// NoshowCurrency Setter +// NOSHOW币种,可录入币种三字码,默认值CNY +func (r *TaobaoAlitripItFareAddowAPIRequest) SetNoshowCurrency(_noshowCurrency string) error { + r._noshowCurrency = _noshowCurrency + r.Set("noshowCurrency", _noshowCurrency) + return nil +} + +// NoshowCurrency Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetNoshowCurrency() string { + return r._noshowCurrency +} +// Farebasis Setter +// 运价基础,最大长度8 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetFarebasis(_farebasis string) error { + r._farebasis = _farebasis + r.Set("farebasis", _farebasis) + return nil +} + +// Farebasis Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetFarebasis() string { + return r._farebasis +} +// FareTypeCode Setter +// 运价类型,最大长度3 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetFareTypeCode(_fareTypeCode string) error { + r._fareTypeCode = _fareTypeCode + r.Set("fareTypeCode", _fareTypeCode) + return nil +} + +// FareTypeCode Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetFareTypeCode() string { + return r._fareTypeCode +} +// Tariff Setter +// 运价tariff,最大长度3 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetTariff(_tariff string) error { + r._tariff = _tariff + r.Set("tariff", _tariff) + return nil +} + +// Tariff Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetTariff() string { + return r._tariff +} +// RuleId Setter +// 运价规则id,最大长度4 +func (r *TaobaoAlitripItFareAddowAPIRequest) SetRuleId(_ruleId string) error { + r._ruleId = _ruleId + r.Set("ruleId", _ruleId) + return nil +} + +// RuleId Getter +func (r TaobaoAlitripItFareAddowAPIRequest) GetRuleId() string { + return r._ruleId +} diff --git a/model/itpolicy/TaobaoAlitripItFareAddowAPIResponse.go b/model/itpolicy/TaobaoAlitripItFareAddowAPIResponse.go new file mode 100644 index 0000000000..a308331140 --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItFareAddowAPIResponse.go @@ -0,0 +1,29 @@ +package itpolicy + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票自有政策】单条单程添加 API返回值 +taobao.alitrip.it.fare.addow + +自有政策单程添加接口,重复的老数据会被删除,重复判断规则同excel +*/ +type TaobaoAlitripItFareAddowAPIResponse struct { + model.CommonResponse + TaobaoAlitripItFareAddowAPIResponseModel +} + +// 【国际机票自有政策】单条单程添加 成功返回结果 +type TaobaoAlitripItFareAddowAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_it_fare_addow_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 运价id + FareId int64 `json:"fare_id,omitempty" xml:"fare_id,omitempty"` + // json格式的字符串,扩展属性,预留 + ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` +} diff --git a/model/itpolicy/TaobaoAlitripItFareAddowResponse.go b/model/itpolicy/TaobaoAlitripItFareAddowResponse.go deleted file mode 100644 index 0be51deb37..0000000000 --- a/model/itpolicy/TaobaoAlitripItFareAddowResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package itpolicy - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【国际机票自有政策】单条单程添加 API返回值 -taobao.alitrip.it.fare.addow - -自有政策单程添加接口,重复的老数据会被删除,重复判断规则同excel -*/ -type TaobaoAlitripItFareAddowAPIResponse struct { - model.CommonResponse - TaobaoAlitripItFareAddowResponse -} - -// 【国际机票自有政策】单条单程添加 成功返回结果 -type TaobaoAlitripItFareAddowResponse struct { - XMLName xml.Name `xml:"alitrip_it_fare_addow_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 运价id - FareId int64 `json:"fare_id,omitempty" xml:"fare_id,omitempty"` - // json格式的字符串,扩展属性,预留 - ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` -} diff --git a/model/itpolicy/TaobaoAlitripItFareAddrtAPIRequest.go b/model/itpolicy/TaobaoAlitripItFareAddrtAPIRequest.go new file mode 100644 index 0000000000..0b3ace4816 --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItFareAddrtAPIRequest.go @@ -0,0 +1,1676 @@ +package itpolicy + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票自有政策】单条往返添加 API请求 +taobao.alitrip.it.fare.addrt + +自有政策往返添加接口 +*/ +type TaobaoAlitripItFareAddrtAPIRequest struct { + model.Params + // 外部政策ID,1、自行输入的ID,建议为唯一id,有些操作可以使用此id 最多50个字符 + _outFileCode string + // 文件编号 + _fileCode string + // (后期字段,预留),产品类型,1.不可为空 2.填写为:包机切位、申请、见舱预订; + _productType string + // (后期字段,预留),库存模式,1.不可为空 2.填写为见舱或定额;默认为见舱 + _stockMode string + // 是否1/2RT,1、请填写 是或者否;默认为否 + _isRT string + // (后期字段,预留),1/2RT类型,当需要多填入多个时,请以","分隔 1、可填写 、旅行有效期、排除旅行有效期、班期 ;表明1/2RT 混舱计算时,取严还是各取各 2、默认值是 全部各取各 + _rtType string + // 可组文件编号, 当需要多填入多个时,请以","分隔 1、标记可组文件的编号政策信息,可填写空白; 2、如果是否1/2RT 字段为是,则此字段为必输项 + _combinationFilecode string + // (后期字段,预留),是否允许缺口,1、为是或否;默认为否 + _isAllowOj string + // (后期字段,预留),缺口类型,1、可填单缺、双缺、始发地缺、目的地缺、或为空;默认为空(当允许缺口组合时,此项为必输项) + _ojType string + // (后期字段,预留),可组缺口文件编号,当需要多填入多个时,请以","分隔 1、标记政策信息,可填写空白; 2、如果是否缺口 字段为是,则此字段为必输项 + _combinationOjFilecode string + // 出票航司,1.不可为空 2.航空公司二字码 3.只能输入一个 + _ticketingAirline string + // 销售航司,不同航段之间用 “,”隔开。 1、销售航司二字码; 2、如为直达;请录入一个航司二字码;如为中转,录入格式为 第一程航司,第二程航司;或者航司;若全程都一样,则录入一个航司二字代码即可 3、如果不录入,则航司默认为出票航司; + _saleAirline string + // 城市/机场选项,默认为城市1、可以填写:“机场",“城市”2、定义始发地/目的地/中转点,输入为机场,还是城市。3、如:此项输入机场,则始发地、目的地必须输入机场三字码 + _addressOption string + // 航程种类,1、默认为直达;有直达和中转两个选项;2、不填写 默认为 直达 + _tripType string + // 始发地,多个用“,”隔开 1.不得为空 2.可以填写:机场三字码”或“城市码” 3.最多允许100个机场三字码/城市码 + _originLand string + // 目的地,多个用“,”隔开 1.不得为空 2.可以填写:机场三字码”或“城市码” 3.最多允许100个机场三字码/城市码 + _destination string + // 中转地,多个用“,”隔开 1.不得为空 2.可以填写:机场三字码,城市码 3.最多允许100个机场三字码/城市码 4、当航程类型书写为 中转时,此处为必填 + _transitLand string + // 舱位, 用","表示航段的分割。 1、舱位代码。每段只允许录入一个舱位代码,若全程舱位一致则可以只录入一个 + _cabin string + // 航班号限制,同一航段之间用,隔开表示或的关系;不同航段之间用/隔开。 1 CA001-999,CA3000-3999 表示CA001至999以及3000至3999之间航班号的航班 2 MU 表示所有MU开头的航班 3 CA(LH\AZ) 表示CA开头的实际承运人为LH或AZ的航班 4 CA(*) 表示CA代码共享航班/CA开头的实际承运人为其他航空公司的航班 5 CA(CA) 表示CA自营航班/CA实际承运航班; 6 CA(OZ)001-999 表示CA开头航班号为001-999之间且实际承运人为OZ的航班; 7 为空表示无限制 + _restrictFlightNo string + // 排除航班号限制,同一航段之间用,隔开表示或的关系;不同航段之间用/隔开。 1 CA001-999,CA3000-3999 表示CA001至999以及3000至3999之间航班号的航班 2 MU 表示所有MU开头的自营航班 3 CA(LH\AZ) 表示CA开头的实际承运人为LH或AZ的航班 4 CA(*) 表示CA代码共享航班/CA开头的实际承运人为其他航空公司的航班 5 CA(CA) 表示CA自营航班/CA实际承运航班; 6 CA(OZ)001-999 表示CA开头航班号为001-999之间且实际承运人为OZ的航班; 7 为空表示无限制;8比如两段,第一段无限制,第二段有限制 /CA123 + _excludeFlightNo string + // 去程旅行有效期,支持多段组合,用“,”隔开, 1.不得为空 2例:2014-04-01~2014-06-30,2014-09-01 ~2014-09-30, 3日期格式为 YYYY-MM-DD或YYYY/MM/DD,例:2014-04-01或2014/04/01 + _validDate4Dep string + // 去程旅行排除时间段,支持多段组合,用“,”隔开隔开, 1.格式,例:2014-04-01~2014-12-31;或例:2014-04-01~2014-06-30,2014-09-01~2014-09-30, 3日期格式为 YYYY-MM-DD,YYYY/MM/DD 4、旅行排除日期最多只能输入200个字符 + _excludeDateRange4Dep string + // 去程旅行日期作用点,始发航段/第一国际段/主航段/全部;默认空为 第一国际段 + _tripDatePoint4Dep string + // 去程旅行排除日期作用点,始发航段/第一国际段/主航段/全部;默认空为 第一国际段 + _tripExcludeDatePoint4Dep string + // 去程班期限制,1.12表示周一周二 2.12:00-14:00表示每天的12点到14点 3. 12:00FRI-12:00SAT 表示周五的中午12点至周六的中午12点 + _flightDateRestrict4Dep string + // 去程班期作用点,始发航段/第一国际段/主航段/全部;默认空为 第一国际段 + _flightDatePoint4Dep string + // 回程旅行有效期,支持多段组合,用“,”隔开, 1.不得为空 2例:2014-04-01~2014-6-30,2014-09-01 ~2014-09-30, 3日期格式为 YYYY-MM-DD或YYYY/MM/DD,例:2014-04-01或2014/04/01 + _validDate4Ret string + // 回程旅行排除时间段,支持多段组合,用“,”隔开隔开, 1.格式,例:2014-04-01~2014-12-31;或例:2014-04-01~2014-06-30,2014-09-01~2014-09-30, 3日期格式为 YYYY-MM-DD,YYYY/MM/DD 4、旅行排除日期最多只能输入200个字符 + _excludeDateRange4Ret string + // 回程旅行日期作用点,始发航段/第一国际段/主航段/全部;默认空为 第一国际段 + _tripDatePoint4Ret string + // 回程旅行排除日期作用点,始发航段/第一国际段/主航段/全部;默认空为 第一国际段 + _tripExcludeDatePoint4Ret string + // 回程班期限制,1.12表示周一周二 2.12:00-14:00表示每天的12点到14点 3. 12:00FRI-12:00SAT 表示周五的中午12点至周六的中午12点 + _flightDateRestrict4Ret string + // 回程班期作用点,始发航段/第一国际段/主航段/全部;默认空为 第一国际段 + _flightDatePoint4Ret string + // 销售日期,1、不得为空 2.输入格式为:2014-04-01~2014-06-30 3.不支持多段组合, 4.3日期格式为 YYYY-MM-DD或YYYY/MM/DD,例:2014-04-01或20104/04/01 + _saleDate string + // 最短停留期,1、 默认为空,代表无限制; 2、 格式为:数字+字符/字符 3D表示3天 ; 4M表示4个月 ; SAT表示周六; 3D/SAT表示3天或者周六 3、 12M 表示一年 + _minStay string + // 最长停留期,1、 默认为空,代表无限制; 2、 格式为:数字+字符/字符 3D表示3天 ; 4M表示4个月 ; SAT表示周六; 3D/SAT表示3天或者周六 3、 12M 表示一年 + _maxStay string + // 成人旅客身份,1.不得为空 2.普通/学生 3.当输入学生时,儿童价格项输入无效 4.当为小团产品时,此适用身份类别必须为 普通。5、后期支持劳工、移民、海员、老人、青年 + _adultPassengerIdentity string + // 最小出行人数,数字1-9 + _minTravelPerson int64 + // 最大出行人数,数字1-9 + _maxTravelPerson int64 + // (后期字段,预留),小团儿童计数规则,可选值:1个儿童计1个成人、2个儿童计1个成人、儿童不计 + _gv2ChildRule string + // 国籍,可录入多个用","隔开表示或的关系 1、可录入国家二字代码,为空表示不限制,最多录20个 *默认为空,不输入为不限制 + _nationality string + // 除外国籍,可录入多个用","隔开表示或的关系 1、可录入国家二字代码,为空表示不限制,最多录20个 *默认为空,不输入为不限制 + _excludeNationality string + // 乘客年龄,1、可录入范围如21-25表示21周岁至25周岁,1-表示1岁以上,-99表示99岁以下 + _passengerAge string + // 销售票面价,1.不得为空 2.价格区间为【0-999999】 3、销售票面价为10的整数倍(向下取整,如录入3002,则实际录入数值为3000) + _ticketPrice int64 + // (后期字段,预留),成人税费,1、整数金额(包机切位产品适用) + _adultTax int64 + // 儿童价,1、可不输入,空表示不适用儿童价 2、可输入大于0的正整数及百分比,输入百分比时,成人价格必须录入 例如:2000或70%。 3. 百分比计算的数值,个位向上取整 当"乘客类型"输入非“普通”(成人)时,此项输入无效。 + _childPrice string + // (后期字段,预留),儿童税费,1、整数金额(包机切位产品适用) + _childTax int64 + // 返点,1.不得为空 2.只允许填写数字,支持到小数点后两位;不用填写% 3.返点需小于100 成人价=销售票面价*(1-返点)+留钱 + _returnPoint float64 + // 留钱,1.0或正负数字2.-20表示返20元;20代表留20元 + _adjustMoney int64 + // 1/2RT佣金计算方式,1、各取各,取严; 默认为 取严 + _rtCommissionFormula string + // 提前出票时限,默认为空,代表无限制; 输入为小于等于365的正整数。 小于或等于最晚出票时限。 单位为天 + _earlyTicketingTimeLimit int64 + // 最晚出票时限,默认为空,代表无限制; 输入为小于等于365的正整数。 大于或等于提前出票时限。 单位为天 + _lateTicketingTimeLimit int64 + // 大客户编码,文本框 + _vipCode string + // (后期字段,预留),运价发布渠道,1、可填写 PC、无线、都适用 2、默认为都适用 + _fareSource string + // (后期字段,预留),是否创建PNR,1、选项 可填写是,否.默认为是 + _isCreatePnr string + // 预定OFFICE,空表示默认优先级最高OFFICE,可输入OFFICE,校验必须为配置中存在的OFFICE + _bookingOffice string + // 必填项 赋值范围 境外电子凭证,旅行发票,差额行程单发票,等额行程单 + _receipts string + // 是否校验票面价,1、可填写 是或者否;默认为否 + _isValidatPrice string + // (已废除字段),去程全部未使用可否退票,录入是或否 + _isCanRefund4Dep string + // (已废除字段),去程全部未使用退票费用,可输入格式如:200-72-300-48-1000-0-*,表示72小时前退票手续费200;48小时到72小时,退票手续费300;飞机起飞不足48小时退票手续费1000;飞机起飞后不予退票(输入*); + _refundPrice4Dep string + // (已废除字段),去程部分未使用退票费用,可输入空,*或正整数,其中空表示按照航空公司规定执行,*表示不支持部分退票 + _refundPartPrice4Dep string + // (已废除字段),回程全部未使用可否退票,录入是或否 + _isCanRefund4Ret string + // (已废除字段),回程全部未使用退票费用,可输入格式如:200-72-300-48-1000-0-*,表示72小时前退票手续费200;48小时到72小时,退票手续费300;飞机起飞不足48小时退票手续费1000;飞机起飞后不予退票(输入*); + _refundPrice4Ret string + // (已废除字段),回程部分未使用退票费用,可输入空,*或正整数,其中空表示按照航空公司规定执行,*表示不支持部分退票 + _refundPartPrice4Ret string + // (已废除字段),去程全部未使用可否改期,录入是或否 + _isCanReissue4Dep string + // (已废除字段),去程全部未使用改期费用,可输入格式如:200-72-300-48-1000-0-*,表示72小时前改期手续费200;48小时到72小时,改期手续费300;飞机起飞不足48小时改期手续费1000;飞机起飞后不予改期(输入*); + _reissuePrice4Dep string + // (已废除字段),去程部分未使用改期费用,可输入空,*或正整数,其中空表示按照航空公司规定执行,*表示不支持部分改期 + _reissuePartPrice4Dep string + // (已废除字段),回程全部未使用可否改期,录入是或否 + _isCanReissue4Ret string + // (已废除字段),回程全部未使用改期费用,可输入格式如:200-72-300-48-1000-0-*,表示72小时前改期手续费200;48小时到72小时,改期手续费300;飞机起飞不足48小时改期手续费1000;飞机起飞后不予改期(输入*); + _reissuePrice4Ret string + // (已废除字段),回程部分未使用改期费用,可输入空,*或正整数,其中空表示按照航空公司规定执行,*表示不支持部分改期 + _reissuePartPrice4Ret string + // (已废除字段),去程NOSHOW规定时限,输入正整数 + _noShowTimeLimit4Dep int64 + // (已废除字段),去程NOSHOW能否退票,输入是或否;默认为否 + _isNoShowCanRefund4Dep string + // (已废除字段),去程NOSHOW能否改期,输入是或否;默认为否 + _isNoShowCanReissue4Dep string + // (已废除字段),去程NOSHOW罚金,可为空,若输入则为正整数;其中空表示按航空公司规定执行 + _noShowPenalty4Dep int64 + // (已废除字段),回程NOSHOW规定时限,输入正整数 + _noShowTimeLimit4Ret int64 + // (已废除字段),回程NOSHOW能否退票,输入是或否;默认为否 + _isNoShowCanRefund4Ret string + // (已废除字段),回程NOSHOW能否改期,输入是或否;默认为否 + _isNoShowCanReissue4Ret string + // (已废除字段),回程NOSHOW罚金,可为空,若输入则为正整数;其中空表示按航空公司规定执行 + _noShowPenalty4Ret int64 + // (后期字段,预留),去程行李额规定,可输入1-23,1-23 中间用","隔开,表示第一程和第二程(中转)支持行李额为1PC,23KG。若某段为空表示该段按照航空公司规定执行,逗号不可缺少;若不提供免费行李额直接输入空 + _luggageRule4Dep string + // (后期字段,预留),回程行李额规定,可输入1-23,1-23 中间用","隔开,表示第一程和第二程(中转)支持行李额为1PC,23KG。若某段为空表示该段按照航空公司规定执行,逗号不可缺少;若不提供免费行李额直接输入空 + _luggageRule4Ret string + // 备注,出票备注文本 + _remark string + // 工作时间,18:00FRI表示周一到周五的每天早上9点到下午6点 最多录入三个时间段用,隔开表示或的关系 可以为空,表示不限制(运价上的工作时间优先级高于设置时间界面上的时间) + _workingHours string + // (已废除字段)退票规定,1、不可为空 2、可填写:收取20%退票费用,或者是收取500元退票费等。 3、退票规定最多为300个字符 + _refundRule string + // (已废除字段)改期规定,1、不可为空 2、可填写:收取20%改期费用,或者是收取500元改期费等。 3、改期规定最多为300个字符 + _reissueRule string + // (已废除字段)误机罚金说明,1、不可为空 2、可填写:起飞前不得退票,不得改期 3、误机罚金说明最多为300个字符 + _noshowRule string + // 行李额规定,1、不可为空2、可填写:1PC。逾重行李费用为每公斤100元3、行李额规定最多为300个字符 + _luggageRule string + // 运价渠道 可选listing宝贝 默认listing + _applyChannel string + // 商品类型,可选值:普通、金牌,默认普通,非金牌卖家不得选择金牌 + _commodityType string + // 不录入表示不限制;选项为:仅限同集团代码共享适用;代码共享适用;不允许代码共享;不限制 默认不限制 + _codeSharingType string + // json格式的字符串,扩展属性,预留 + _extendAttributes string + // 购票须知,非必输长度小于300字符只在退票规定不为空时才会生效 + _buyTicketNotice string + // 必填项,全部未使用可否退票,可输入:是,否 + _isCanAllRefund string + // 【全部未使用可否退票】为是时,此项为必填项。 可输入格式如: 1) 200 表示退票手续费为200(货币单位在下一个格子里) 2) 20% 表示退票手续费为票面价的20% 3)* 表示不允许退票 4) 200-0-400 表示起飞前退票手续费200;起飞后退票手续费400 5) 30%-0-* 表示起飞前退票手续费为票面价的30%;起飞后不允许退票 6)200-72-300-48-1000-0-* 表示72小时前退票手续费200; 48小时到72小时,退票手续费300; 飞机起飞不足48小时; 退票手续费1000; 飞机起飞后不予退票(输入*) 7) 10%-72-30%-48-70%-0-* 表示72小时前退票手续费为票面价的10%; 48小时到72小时,退票手续费为票面价的30%; 飞机起飞不足48小时; 退票手续费为票面价的70%; 飞机起飞后不予退票(输入*) + _refundFeeAllUnused string + // 全部未使用退票币种,只能录入币种三字码,默认值CNY + _refundCurrencyAllUnused string + // 全部未使用退票费用收取方式,按每个航段收还是全程收(0:全程, 1:每个航段,默认值:全程) + _refundFeeTypeAllUnused string + // 必填项,部分未使用可否退票,可输入:是,否 + _isCanPartRefund string + // 部分未使用退票费用,格式同【全部未使用退票费用】,【部分未使用可否退票】为是时,此项为必填项 + _refundFeePartUnused string + // 部分未使用退票币种,可录入币种三字码,默认值CNY + _refundCurrencyPartUnused string + // 部分未使用退票费用收取方式,按每个航段收还是全程收(0:全程, 1:每个航段,默认值:全程) + _refundFeeTypePartUnused string + // 必填项,去程可否改期,可输入是或否 + _canDepChange string + // 【去程可否改期】为是时为必填项, 可输入格式如: 1) 200 表示改期手续费为200(货币单位在下一个格子里) 2)* 表示不允许改期 3) 200-0-400 表示起飞前改期手续费200;起飞后改期手续费400 4) 30-0-* 表示起飞前改期手续费30;起飞后不允许改期 5)200-72-300-48-1000-0-* 表示72小时前改期手续费200; 48小时到72小时,改期手续费300; 飞机起飞不足48小时; 改期手续费1000; 飞机起飞后不予改期(输入*) + _depChangeFee string + // 去程改期币种,可录入币种三字码,默认值CNY + _depChangeCurrency string + // 去程改期费用收取方式,按每个航段收还是全程收(0:全程, 1:每个航段,默认值:全程) + _depChangeFeeType string + // 必填项,回程可否改期,可输入是或否 + _canRetChange string + // 回程改期费用,格式同【去程改期费用】,【回程可否改期】为是时为必填 + _retChangeFee string + // 回程改期币种,可输入币种三字码,默认值CN + _retChangeCurrency string + // 回程改期费用收取方式,按每个航段收还是全程收(0:全程, 1:每个航段,默认值:全程) + _retChangeFeeType string + // 必填项,NOSHOW是否有限制,可输入是或否 + _noshowRestrict string + // NOSHOW时限,只能录入整数,【NOSHOW是否有限制】为是时,此项为必填项 + _noshowTimeRestrict string + // NOSHOW时限单位(小时/天, 默认为小时) + _noshowTimeRestrictUnit string + // NOSHOW规则,可录入多个,多个用逗号分隔。可录入不可退票、不可改期、不可改期,不可改期 + _noshowRuleType string + // NOSHOW金额,只能录入整数或百分比,【NOSHOW是否有限制】为是,【NOSHOW规则】不是不可退票,不可改期时,此项为必填项 + _noshowFee string + // NOSHOW币种,可录入币种三字码,默认值CNY + _noshowCurrency string + // 运价基础,最大长度8 + _farebasis string + // 运价类型,最大长度3 + _fareTypeCode string + // 运价tariff,最大长度3 + _tariff string + // 运价规则id,最大长度4 + _ruleId string + // 运价组合适用方向,0(或者字段不存在):不限制/1:仅作用在去程/2:仅作用在回程 + _fareDirectDestrict int64 +} + +// 初始化TaobaoAlitripItFareAddrtAPIRequest对象 +func NewTaobaoAlitripItFareAddrtRequest() *TaobaoAlitripItFareAddrtAPIRequest{ + return &TaobaoAlitripItFareAddrtAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripItFareAddrtAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.it.fare.addrt" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripItFareAddrtAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutFileCode Setter +// 外部政策ID,1、自行输入的ID,建议为唯一id,有些操作可以使用此id 最多50个字符 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetOutFileCode(_outFileCode string) error { + r._outFileCode = _outFileCode + r.Set("outFileCode", _outFileCode) + return nil +} + +// OutFileCode Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetOutFileCode() string { + return r._outFileCode +} +// FileCode Setter +// 文件编号 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetFileCode(_fileCode string) error { + r._fileCode = _fileCode + r.Set("fileCode", _fileCode) + return nil +} + +// FileCode Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetFileCode() string { + return r._fileCode +} +// ProductType Setter +// (后期字段,预留),产品类型,1.不可为空 2.填写为:包机切位、申请、见舱预订; +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetProductType(_productType string) error { + r._productType = _productType + r.Set("productType", _productType) + return nil +} + +// ProductType Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetProductType() string { + return r._productType +} +// StockMode Setter +// (后期字段,预留),库存模式,1.不可为空 2.填写为见舱或定额;默认为见舱 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetStockMode(_stockMode string) error { + r._stockMode = _stockMode + r.Set("stockMode", _stockMode) + return nil +} + +// StockMode Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetStockMode() string { + return r._stockMode +} +// IsRT Setter +// 是否1/2RT,1、请填写 是或者否;默认为否 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetIsRT(_isRT string) error { + r._isRT = _isRT + r.Set("isRT", _isRT) + return nil +} + +// IsRT Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetIsRT() string { + return r._isRT +} +// RtType Setter +// (后期字段,预留),1/2RT类型,当需要多填入多个时,请以","分隔 1、可填写 、旅行有效期、排除旅行有效期、班期 ;表明1/2RT 混舱计算时,取严还是各取各 2、默认值是 全部各取各 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetRtType(_rtType string) error { + r._rtType = _rtType + r.Set("rtType", _rtType) + return nil +} + +// RtType Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetRtType() string { + return r._rtType +} +// CombinationFilecode Setter +// 可组文件编号, 当需要多填入多个时,请以","分隔 1、标记可组文件的编号政策信息,可填写空白; 2、如果是否1/2RT 字段为是,则此字段为必输项 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetCombinationFilecode(_combinationFilecode string) error { + r._combinationFilecode = _combinationFilecode + r.Set("combinationFilecode", _combinationFilecode) + return nil +} + +// CombinationFilecode Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetCombinationFilecode() string { + return r._combinationFilecode +} +// IsAllowOj Setter +// (后期字段,预留),是否允许缺口,1、为是或否;默认为否 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetIsAllowOj(_isAllowOj string) error { + r._isAllowOj = _isAllowOj + r.Set("isAllowOj", _isAllowOj) + return nil +} + +// IsAllowOj Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetIsAllowOj() string { + return r._isAllowOj +} +// OjType Setter +// (后期字段,预留),缺口类型,1、可填单缺、双缺、始发地缺、目的地缺、或为空;默认为空(当允许缺口组合时,此项为必输项) +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetOjType(_ojType string) error { + r._ojType = _ojType + r.Set("ojType", _ojType) + return nil +} + +// OjType Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetOjType() string { + return r._ojType +} +// CombinationOjFilecode Setter +// (后期字段,预留),可组缺口文件编号,当需要多填入多个时,请以","分隔 1、标记政策信息,可填写空白; 2、如果是否缺口 字段为是,则此字段为必输项 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetCombinationOjFilecode(_combinationOjFilecode string) error { + r._combinationOjFilecode = _combinationOjFilecode + r.Set("combinationOjFilecode", _combinationOjFilecode) + return nil +} + +// CombinationOjFilecode Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetCombinationOjFilecode() string { + return r._combinationOjFilecode +} +// TicketingAirline Setter +// 出票航司,1.不可为空 2.航空公司二字码 3.只能输入一个 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetTicketingAirline(_ticketingAirline string) error { + r._ticketingAirline = _ticketingAirline + r.Set("ticketingAirline", _ticketingAirline) + return nil +} + +// TicketingAirline Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetTicketingAirline() string { + return r._ticketingAirline +} +// SaleAirline Setter +// 销售航司,不同航段之间用 “,”隔开。 1、销售航司二字码; 2、如为直达;请录入一个航司二字码;如为中转,录入格式为 第一程航司,第二程航司;或者航司;若全程都一样,则录入一个航司二字代码即可 3、如果不录入,则航司默认为出票航司; +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetSaleAirline(_saleAirline string) error { + r._saleAirline = _saleAirline + r.Set("saleAirline", _saleAirline) + return nil +} + +// SaleAirline Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetSaleAirline() string { + return r._saleAirline +} +// AddressOption Setter +// 城市/机场选项,默认为城市1、可以填写:“机场",“城市”2、定义始发地/目的地/中转点,输入为机场,还是城市。3、如:此项输入机场,则始发地、目的地必须输入机场三字码 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetAddressOption(_addressOption string) error { + r._addressOption = _addressOption + r.Set("addressOption", _addressOption) + return nil +} + +// AddressOption Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetAddressOption() string { + return r._addressOption +} +// TripType Setter +// 航程种类,1、默认为直达;有直达和中转两个选项;2、不填写 默认为 直达 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetTripType(_tripType string) error { + r._tripType = _tripType + r.Set("tripType", _tripType) + return nil +} + +// TripType Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetTripType() string { + return r._tripType +} +// OriginLand Setter +// 始发地,多个用“,”隔开 1.不得为空 2.可以填写:机场三字码”或“城市码” 3.最多允许100个机场三字码/城市码 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetOriginLand(_originLand string) error { + r._originLand = _originLand + r.Set("originLand", _originLand) + return nil +} + +// OriginLand Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetOriginLand() string { + return r._originLand +} +// Destination Setter +// 目的地,多个用“,”隔开 1.不得为空 2.可以填写:机场三字码”或“城市码” 3.最多允许100个机场三字码/城市码 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetDestination(_destination string) error { + r._destination = _destination + r.Set("destination", _destination) + return nil +} + +// Destination Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetDestination() string { + return r._destination +} +// TransitLand Setter +// 中转地,多个用“,”隔开 1.不得为空 2.可以填写:机场三字码,城市码 3.最多允许100个机场三字码/城市码 4、当航程类型书写为 中转时,此处为必填 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetTransitLand(_transitLand string) error { + r._transitLand = _transitLand + r.Set("transitLand", _transitLand) + return nil +} + +// TransitLand Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetTransitLand() string { + return r._transitLand +} +// Cabin Setter +// 舱位, 用","表示航段的分割。 1、舱位代码。每段只允许录入一个舱位代码,若全程舱位一致则可以只录入一个 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetCabin(_cabin string) error { + r._cabin = _cabin + r.Set("cabin", _cabin) + return nil +} + +// Cabin Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetCabin() string { + return r._cabin +} +// RestrictFlightNo Setter +// 航班号限制,同一航段之间用,隔开表示或的关系;不同航段之间用/隔开。 1 CA001-999,CA3000-3999 表示CA001至999以及3000至3999之间航班号的航班 2 MU 表示所有MU开头的航班 3 CA(LH\AZ) 表示CA开头的实际承运人为LH或AZ的航班 4 CA(*) 表示CA代码共享航班/CA开头的实际承运人为其他航空公司的航班 5 CA(CA) 表示CA自营航班/CA实际承运航班; 6 CA(OZ)001-999 表示CA开头航班号为001-999之间且实际承运人为OZ的航班; 7 为空表示无限制 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetRestrictFlightNo(_restrictFlightNo string) error { + r._restrictFlightNo = _restrictFlightNo + r.Set("restrictFlightNo", _restrictFlightNo) + return nil +} + +// RestrictFlightNo Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetRestrictFlightNo() string { + return r._restrictFlightNo +} +// ExcludeFlightNo Setter +// 排除航班号限制,同一航段之间用,隔开表示或的关系;不同航段之间用/隔开。 1 CA001-999,CA3000-3999 表示CA001至999以及3000至3999之间航班号的航班 2 MU 表示所有MU开头的自营航班 3 CA(LH\AZ) 表示CA开头的实际承运人为LH或AZ的航班 4 CA(*) 表示CA代码共享航班/CA开头的实际承运人为其他航空公司的航班 5 CA(CA) 表示CA自营航班/CA实际承运航班; 6 CA(OZ)001-999 表示CA开头航班号为001-999之间且实际承运人为OZ的航班; 7 为空表示无限制;8比如两段,第一段无限制,第二段有限制 /CA123 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetExcludeFlightNo(_excludeFlightNo string) error { + r._excludeFlightNo = _excludeFlightNo + r.Set("excludeFlightNo", _excludeFlightNo) + return nil +} + +// ExcludeFlightNo Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetExcludeFlightNo() string { + return r._excludeFlightNo +} +// ValidDate4Dep Setter +// 去程旅行有效期,支持多段组合,用“,”隔开, 1.不得为空 2例:2014-04-01~2014-06-30,2014-09-01 ~2014-09-30, 3日期格式为 YYYY-MM-DD或YYYY/MM/DD,例:2014-04-01或2014/04/01 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetValidDate4Dep(_validDate4Dep string) error { + r._validDate4Dep = _validDate4Dep + r.Set("validDate4Dep", _validDate4Dep) + return nil +} + +// ValidDate4Dep Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetValidDate4Dep() string { + return r._validDate4Dep +} +// ExcludeDateRange4Dep Setter +// 去程旅行排除时间段,支持多段组合,用“,”隔开隔开, 1.格式,例:2014-04-01~2014-12-31;或例:2014-04-01~2014-06-30,2014-09-01~2014-09-30, 3日期格式为 YYYY-MM-DD,YYYY/MM/DD 4、旅行排除日期最多只能输入200个字符 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetExcludeDateRange4Dep(_excludeDateRange4Dep string) error { + r._excludeDateRange4Dep = _excludeDateRange4Dep + r.Set("excludeDateRange4Dep", _excludeDateRange4Dep) + return nil +} + +// ExcludeDateRange4Dep Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetExcludeDateRange4Dep() string { + return r._excludeDateRange4Dep +} +// TripDatePoint4Dep Setter +// 去程旅行日期作用点,始发航段/第一国际段/主航段/全部;默认空为 第一国际段 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetTripDatePoint4Dep(_tripDatePoint4Dep string) error { + r._tripDatePoint4Dep = _tripDatePoint4Dep + r.Set("tripDatePoint4Dep", _tripDatePoint4Dep) + return nil +} + +// TripDatePoint4Dep Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetTripDatePoint4Dep() string { + return r._tripDatePoint4Dep +} +// TripExcludeDatePoint4Dep Setter +// 去程旅行排除日期作用点,始发航段/第一国际段/主航段/全部;默认空为 第一国际段 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetTripExcludeDatePoint4Dep(_tripExcludeDatePoint4Dep string) error { + r._tripExcludeDatePoint4Dep = _tripExcludeDatePoint4Dep + r.Set("tripExcludeDatePoint4Dep", _tripExcludeDatePoint4Dep) + return nil +} + +// TripExcludeDatePoint4Dep Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetTripExcludeDatePoint4Dep() string { + return r._tripExcludeDatePoint4Dep +} +// FlightDateRestrict4Dep Setter +// 去程班期限制,1.12表示周一周二 2.12:00-14:00表示每天的12点到14点 3. 12:00FRI-12:00SAT 表示周五的中午12点至周六的中午12点 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetFlightDateRestrict4Dep(_flightDateRestrict4Dep string) error { + r._flightDateRestrict4Dep = _flightDateRestrict4Dep + r.Set("flightDateRestrict4Dep", _flightDateRestrict4Dep) + return nil +} + +// FlightDateRestrict4Dep Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetFlightDateRestrict4Dep() string { + return r._flightDateRestrict4Dep +} +// FlightDatePoint4Dep Setter +// 去程班期作用点,始发航段/第一国际段/主航段/全部;默认空为 第一国际段 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetFlightDatePoint4Dep(_flightDatePoint4Dep string) error { + r._flightDatePoint4Dep = _flightDatePoint4Dep + r.Set("flightDatePoint4Dep", _flightDatePoint4Dep) + return nil +} + +// FlightDatePoint4Dep Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetFlightDatePoint4Dep() string { + return r._flightDatePoint4Dep +} +// ValidDate4Ret Setter +// 回程旅行有效期,支持多段组合,用“,”隔开, 1.不得为空 2例:2014-04-01~2014-6-30,2014-09-01 ~2014-09-30, 3日期格式为 YYYY-MM-DD或YYYY/MM/DD,例:2014-04-01或2014/04/01 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetValidDate4Ret(_validDate4Ret string) error { + r._validDate4Ret = _validDate4Ret + r.Set("validDate4Ret", _validDate4Ret) + return nil +} + +// ValidDate4Ret Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetValidDate4Ret() string { + return r._validDate4Ret +} +// ExcludeDateRange4Ret Setter +// 回程旅行排除时间段,支持多段组合,用“,”隔开隔开, 1.格式,例:2014-04-01~2014-12-31;或例:2014-04-01~2014-06-30,2014-09-01~2014-09-30, 3日期格式为 YYYY-MM-DD,YYYY/MM/DD 4、旅行排除日期最多只能输入200个字符 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetExcludeDateRange4Ret(_excludeDateRange4Ret string) error { + r._excludeDateRange4Ret = _excludeDateRange4Ret + r.Set("excludeDateRange4Ret", _excludeDateRange4Ret) + return nil +} + +// ExcludeDateRange4Ret Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetExcludeDateRange4Ret() string { + return r._excludeDateRange4Ret +} +// TripDatePoint4Ret Setter +// 回程旅行日期作用点,始发航段/第一国际段/主航段/全部;默认空为 第一国际段 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetTripDatePoint4Ret(_tripDatePoint4Ret string) error { + r._tripDatePoint4Ret = _tripDatePoint4Ret + r.Set("tripDatePoint4Ret", _tripDatePoint4Ret) + return nil +} + +// TripDatePoint4Ret Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetTripDatePoint4Ret() string { + return r._tripDatePoint4Ret +} +// TripExcludeDatePoint4Ret Setter +// 回程旅行排除日期作用点,始发航段/第一国际段/主航段/全部;默认空为 第一国际段 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetTripExcludeDatePoint4Ret(_tripExcludeDatePoint4Ret string) error { + r._tripExcludeDatePoint4Ret = _tripExcludeDatePoint4Ret + r.Set("tripExcludeDatePoint4Ret", _tripExcludeDatePoint4Ret) + return nil +} + +// TripExcludeDatePoint4Ret Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetTripExcludeDatePoint4Ret() string { + return r._tripExcludeDatePoint4Ret +} +// FlightDateRestrict4Ret Setter +// 回程班期限制,1.12表示周一周二 2.12:00-14:00表示每天的12点到14点 3. 12:00FRI-12:00SAT 表示周五的中午12点至周六的中午12点 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetFlightDateRestrict4Ret(_flightDateRestrict4Ret string) error { + r._flightDateRestrict4Ret = _flightDateRestrict4Ret + r.Set("flightDateRestrict4Ret", _flightDateRestrict4Ret) + return nil +} + +// FlightDateRestrict4Ret Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetFlightDateRestrict4Ret() string { + return r._flightDateRestrict4Ret +} +// FlightDatePoint4Ret Setter +// 回程班期作用点,始发航段/第一国际段/主航段/全部;默认空为 第一国际段 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetFlightDatePoint4Ret(_flightDatePoint4Ret string) error { + r._flightDatePoint4Ret = _flightDatePoint4Ret + r.Set("flightDatePoint4Ret", _flightDatePoint4Ret) + return nil +} + +// FlightDatePoint4Ret Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetFlightDatePoint4Ret() string { + return r._flightDatePoint4Ret +} +// SaleDate Setter +// 销售日期,1、不得为空 2.输入格式为:2014-04-01~2014-06-30 3.不支持多段组合, 4.3日期格式为 YYYY-MM-DD或YYYY/MM/DD,例:2014-04-01或20104/04/01 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetSaleDate(_saleDate string) error { + r._saleDate = _saleDate + r.Set("saleDate", _saleDate) + return nil +} + +// SaleDate Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetSaleDate() string { + return r._saleDate +} +// MinStay Setter +// 最短停留期,1、 默认为空,代表无限制; 2、 格式为:数字+字符/字符 3D表示3天 ; 4M表示4个月 ; SAT表示周六; 3D/SAT表示3天或者周六 3、 12M 表示一年 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetMinStay(_minStay string) error { + r._minStay = _minStay + r.Set("minStay", _minStay) + return nil +} + +// MinStay Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetMinStay() string { + return r._minStay +} +// MaxStay Setter +// 最长停留期,1、 默认为空,代表无限制; 2、 格式为:数字+字符/字符 3D表示3天 ; 4M表示4个月 ; SAT表示周六; 3D/SAT表示3天或者周六 3、 12M 表示一年 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetMaxStay(_maxStay string) error { + r._maxStay = _maxStay + r.Set("maxStay", _maxStay) + return nil +} + +// MaxStay Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetMaxStay() string { + return r._maxStay +} +// AdultPassengerIdentity Setter +// 成人旅客身份,1.不得为空 2.普通/学生 3.当输入学生时,儿童价格项输入无效 4.当为小团产品时,此适用身份类别必须为 普通。5、后期支持劳工、移民、海员、老人、青年 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetAdultPassengerIdentity(_adultPassengerIdentity string) error { + r._adultPassengerIdentity = _adultPassengerIdentity + r.Set("adultPassengerIdentity", _adultPassengerIdentity) + return nil +} + +// AdultPassengerIdentity Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetAdultPassengerIdentity() string { + return r._adultPassengerIdentity +} +// MinTravelPerson Setter +// 最小出行人数,数字1-9 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetMinTravelPerson(_minTravelPerson int64) error { + r._minTravelPerson = _minTravelPerson + r.Set("minTravelPerson", _minTravelPerson) + return nil +} + +// MinTravelPerson Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetMinTravelPerson() int64 { + return r._minTravelPerson +} +// MaxTravelPerson Setter +// 最大出行人数,数字1-9 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetMaxTravelPerson(_maxTravelPerson int64) error { + r._maxTravelPerson = _maxTravelPerson + r.Set("maxTravelPerson", _maxTravelPerson) + return nil +} + +// MaxTravelPerson Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetMaxTravelPerson() int64 { + return r._maxTravelPerson +} +// Gv2ChildRule Setter +// (后期字段,预留),小团儿童计数规则,可选值:1个儿童计1个成人、2个儿童计1个成人、儿童不计 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetGv2ChildRule(_gv2ChildRule string) error { + r._gv2ChildRule = _gv2ChildRule + r.Set("gv2ChildRule", _gv2ChildRule) + return nil +} + +// Gv2ChildRule Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetGv2ChildRule() string { + return r._gv2ChildRule +} +// Nationality Setter +// 国籍,可录入多个用","隔开表示或的关系 1、可录入国家二字代码,为空表示不限制,最多录20个 *默认为空,不输入为不限制 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetNationality(_nationality string) error { + r._nationality = _nationality + r.Set("nationality", _nationality) + return nil +} + +// Nationality Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetNationality() string { + return r._nationality +} +// ExcludeNationality Setter +// 除外国籍,可录入多个用","隔开表示或的关系 1、可录入国家二字代码,为空表示不限制,最多录20个 *默认为空,不输入为不限制 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetExcludeNationality(_excludeNationality string) error { + r._excludeNationality = _excludeNationality + r.Set("excludeNationality", _excludeNationality) + return nil +} + +// ExcludeNationality Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetExcludeNationality() string { + return r._excludeNationality +} +// PassengerAge Setter +// 乘客年龄,1、可录入范围如21-25表示21周岁至25周岁,1-表示1岁以上,-99表示99岁以下 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetPassengerAge(_passengerAge string) error { + r._passengerAge = _passengerAge + r.Set("passengerAge", _passengerAge) + return nil +} + +// PassengerAge Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetPassengerAge() string { + return r._passengerAge +} +// TicketPrice Setter +// 销售票面价,1.不得为空 2.价格区间为【0-999999】 3、销售票面价为10的整数倍(向下取整,如录入3002,则实际录入数值为3000) +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetTicketPrice(_ticketPrice int64) error { + r._ticketPrice = _ticketPrice + r.Set("ticketPrice", _ticketPrice) + return nil +} + +// TicketPrice Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetTicketPrice() int64 { + return r._ticketPrice +} +// AdultTax Setter +// (后期字段,预留),成人税费,1、整数金额(包机切位产品适用) +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetAdultTax(_adultTax int64) error { + r._adultTax = _adultTax + r.Set("adultTax", _adultTax) + return nil +} + +// AdultTax Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetAdultTax() int64 { + return r._adultTax +} +// ChildPrice Setter +// 儿童价,1、可不输入,空表示不适用儿童价 2、可输入大于0的正整数及百分比,输入百分比时,成人价格必须录入 例如:2000或70%。 3. 百分比计算的数值,个位向上取整 当"乘客类型"输入非“普通”(成人)时,此项输入无效。 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetChildPrice(_childPrice string) error { + r._childPrice = _childPrice + r.Set("childPrice", _childPrice) + return nil +} + +// ChildPrice Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetChildPrice() string { + return r._childPrice +} +// ChildTax Setter +// (后期字段,预留),儿童税费,1、整数金额(包机切位产品适用) +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetChildTax(_childTax int64) error { + r._childTax = _childTax + r.Set("childTax", _childTax) + return nil +} + +// ChildTax Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetChildTax() int64 { + return r._childTax +} +// ReturnPoint Setter +// 返点,1.不得为空 2.只允许填写数字,支持到小数点后两位;不用填写% 3.返点需小于100 成人价=销售票面价*(1-返点)+留钱 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetReturnPoint(_returnPoint float64) error { + r._returnPoint = _returnPoint + r.Set("returnPoint", _returnPoint) + return nil +} + +// ReturnPoint Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetReturnPoint() float64 { + return r._returnPoint +} +// AdjustMoney Setter +// 留钱,1.0或正负数字2.-20表示返20元;20代表留20元 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetAdjustMoney(_adjustMoney int64) error { + r._adjustMoney = _adjustMoney + r.Set("adjustMoney", _adjustMoney) + return nil +} + +// AdjustMoney Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetAdjustMoney() int64 { + return r._adjustMoney +} +// RtCommissionFormula Setter +// 1/2RT佣金计算方式,1、各取各,取严; 默认为 取严 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetRtCommissionFormula(_rtCommissionFormula string) error { + r._rtCommissionFormula = _rtCommissionFormula + r.Set("rtCommissionFormula", _rtCommissionFormula) + return nil +} + +// RtCommissionFormula Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetRtCommissionFormula() string { + return r._rtCommissionFormula +} +// EarlyTicketingTimeLimit Setter +// 提前出票时限,默认为空,代表无限制; 输入为小于等于365的正整数。 小于或等于最晚出票时限。 单位为天 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetEarlyTicketingTimeLimit(_earlyTicketingTimeLimit int64) error { + r._earlyTicketingTimeLimit = _earlyTicketingTimeLimit + r.Set("earlyTicketingTimeLimit", _earlyTicketingTimeLimit) + return nil +} + +// EarlyTicketingTimeLimit Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetEarlyTicketingTimeLimit() int64 { + return r._earlyTicketingTimeLimit +} +// LateTicketingTimeLimit Setter +// 最晚出票时限,默认为空,代表无限制; 输入为小于等于365的正整数。 大于或等于提前出票时限。 单位为天 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetLateTicketingTimeLimit(_lateTicketingTimeLimit int64) error { + r._lateTicketingTimeLimit = _lateTicketingTimeLimit + r.Set("lateTicketingTimeLimit", _lateTicketingTimeLimit) + return nil +} + +// LateTicketingTimeLimit Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetLateTicketingTimeLimit() int64 { + return r._lateTicketingTimeLimit +} +// VipCode Setter +// 大客户编码,文本框 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetVipCode(_vipCode string) error { + r._vipCode = _vipCode + r.Set("vipCode", _vipCode) + return nil +} + +// VipCode Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetVipCode() string { + return r._vipCode +} +// FareSource Setter +// (后期字段,预留),运价发布渠道,1、可填写 PC、无线、都适用 2、默认为都适用 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetFareSource(_fareSource string) error { + r._fareSource = _fareSource + r.Set("fareSource", _fareSource) + return nil +} + +// FareSource Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetFareSource() string { + return r._fareSource +} +// IsCreatePnr Setter +// (后期字段,预留),是否创建PNR,1、选项 可填写是,否.默认为是 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetIsCreatePnr(_isCreatePnr string) error { + r._isCreatePnr = _isCreatePnr + r.Set("isCreatePnr", _isCreatePnr) + return nil +} + +// IsCreatePnr Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetIsCreatePnr() string { + return r._isCreatePnr +} +// BookingOffice Setter +// 预定OFFICE,空表示默认优先级最高OFFICE,可输入OFFICE,校验必须为配置中存在的OFFICE +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetBookingOffice(_bookingOffice string) error { + r._bookingOffice = _bookingOffice + r.Set("bookingOffice", _bookingOffice) + return nil +} + +// BookingOffice Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetBookingOffice() string { + return r._bookingOffice +} +// Receipts Setter +// 必填项 赋值范围 境外电子凭证,旅行发票,差额行程单发票,等额行程单 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetReceipts(_receipts string) error { + r._receipts = _receipts + r.Set("receipts", _receipts) + return nil +} + +// Receipts Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetReceipts() string { + return r._receipts +} +// IsValidatPrice Setter +// 是否校验票面价,1、可填写 是或者否;默认为否 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetIsValidatPrice(_isValidatPrice string) error { + r._isValidatPrice = _isValidatPrice + r.Set("isValidatPrice", _isValidatPrice) + return nil +} + +// IsValidatPrice Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetIsValidatPrice() string { + return r._isValidatPrice +} +// IsCanRefund4Dep Setter +// (已废除字段),去程全部未使用可否退票,录入是或否 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetIsCanRefund4Dep(_isCanRefund4Dep string) error { + r._isCanRefund4Dep = _isCanRefund4Dep + r.Set("isCanRefund4Dep", _isCanRefund4Dep) + return nil +} + +// IsCanRefund4Dep Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetIsCanRefund4Dep() string { + return r._isCanRefund4Dep +} +// RefundPrice4Dep Setter +// (已废除字段),去程全部未使用退票费用,可输入格式如:200-72-300-48-1000-0-*,表示72小时前退票手续费200;48小时到72小时,退票手续费300;飞机起飞不足48小时退票手续费1000;飞机起飞后不予退票(输入*); +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetRefundPrice4Dep(_refundPrice4Dep string) error { + r._refundPrice4Dep = _refundPrice4Dep + r.Set("refundPrice4Dep", _refundPrice4Dep) + return nil +} + +// RefundPrice4Dep Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetRefundPrice4Dep() string { + return r._refundPrice4Dep +} +// RefundPartPrice4Dep Setter +// (已废除字段),去程部分未使用退票费用,可输入空,*或正整数,其中空表示按照航空公司规定执行,*表示不支持部分退票 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetRefundPartPrice4Dep(_refundPartPrice4Dep string) error { + r._refundPartPrice4Dep = _refundPartPrice4Dep + r.Set("refundPartPrice4Dep", _refundPartPrice4Dep) + return nil +} + +// RefundPartPrice4Dep Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetRefundPartPrice4Dep() string { + return r._refundPartPrice4Dep +} +// IsCanRefund4Ret Setter +// (已废除字段),回程全部未使用可否退票,录入是或否 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetIsCanRefund4Ret(_isCanRefund4Ret string) error { + r._isCanRefund4Ret = _isCanRefund4Ret + r.Set("isCanRefund4Ret", _isCanRefund4Ret) + return nil +} + +// IsCanRefund4Ret Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetIsCanRefund4Ret() string { + return r._isCanRefund4Ret +} +// RefundPrice4Ret Setter +// (已废除字段),回程全部未使用退票费用,可输入格式如:200-72-300-48-1000-0-*,表示72小时前退票手续费200;48小时到72小时,退票手续费300;飞机起飞不足48小时退票手续费1000;飞机起飞后不予退票(输入*); +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetRefundPrice4Ret(_refundPrice4Ret string) error { + r._refundPrice4Ret = _refundPrice4Ret + r.Set("refundPrice4Ret", _refundPrice4Ret) + return nil +} + +// RefundPrice4Ret Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetRefundPrice4Ret() string { + return r._refundPrice4Ret +} +// RefundPartPrice4Ret Setter +// (已废除字段),回程部分未使用退票费用,可输入空,*或正整数,其中空表示按照航空公司规定执行,*表示不支持部分退票 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetRefundPartPrice4Ret(_refundPartPrice4Ret string) error { + r._refundPartPrice4Ret = _refundPartPrice4Ret + r.Set("refundPartPrice4Ret", _refundPartPrice4Ret) + return nil +} + +// RefundPartPrice4Ret Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetRefundPartPrice4Ret() string { + return r._refundPartPrice4Ret +} +// IsCanReissue4Dep Setter +// (已废除字段),去程全部未使用可否改期,录入是或否 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetIsCanReissue4Dep(_isCanReissue4Dep string) error { + r._isCanReissue4Dep = _isCanReissue4Dep + r.Set("isCanReissue4Dep", _isCanReissue4Dep) + return nil +} + +// IsCanReissue4Dep Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetIsCanReissue4Dep() string { + return r._isCanReissue4Dep +} +// ReissuePrice4Dep Setter +// (已废除字段),去程全部未使用改期费用,可输入格式如:200-72-300-48-1000-0-*,表示72小时前改期手续费200;48小时到72小时,改期手续费300;飞机起飞不足48小时改期手续费1000;飞机起飞后不予改期(输入*); +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetReissuePrice4Dep(_reissuePrice4Dep string) error { + r._reissuePrice4Dep = _reissuePrice4Dep + r.Set("reissuePrice4Dep", _reissuePrice4Dep) + return nil +} + +// ReissuePrice4Dep Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetReissuePrice4Dep() string { + return r._reissuePrice4Dep +} +// ReissuePartPrice4Dep Setter +// (已废除字段),去程部分未使用改期费用,可输入空,*或正整数,其中空表示按照航空公司规定执行,*表示不支持部分改期 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetReissuePartPrice4Dep(_reissuePartPrice4Dep string) error { + r._reissuePartPrice4Dep = _reissuePartPrice4Dep + r.Set("reissuePartPrice4Dep", _reissuePartPrice4Dep) + return nil +} + +// ReissuePartPrice4Dep Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetReissuePartPrice4Dep() string { + return r._reissuePartPrice4Dep +} +// IsCanReissue4Ret Setter +// (已废除字段),回程全部未使用可否改期,录入是或否 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetIsCanReissue4Ret(_isCanReissue4Ret string) error { + r._isCanReissue4Ret = _isCanReissue4Ret + r.Set("isCanReissue4Ret", _isCanReissue4Ret) + return nil +} + +// IsCanReissue4Ret Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetIsCanReissue4Ret() string { + return r._isCanReissue4Ret +} +// ReissuePrice4Ret Setter +// (已废除字段),回程全部未使用改期费用,可输入格式如:200-72-300-48-1000-0-*,表示72小时前改期手续费200;48小时到72小时,改期手续费300;飞机起飞不足48小时改期手续费1000;飞机起飞后不予改期(输入*); +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetReissuePrice4Ret(_reissuePrice4Ret string) error { + r._reissuePrice4Ret = _reissuePrice4Ret + r.Set("reissuePrice4Ret", _reissuePrice4Ret) + return nil +} + +// ReissuePrice4Ret Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetReissuePrice4Ret() string { + return r._reissuePrice4Ret +} +// ReissuePartPrice4Ret Setter +// (已废除字段),回程部分未使用改期费用,可输入空,*或正整数,其中空表示按照航空公司规定执行,*表示不支持部分改期 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetReissuePartPrice4Ret(_reissuePartPrice4Ret string) error { + r._reissuePartPrice4Ret = _reissuePartPrice4Ret + r.Set("reissuePartPrice4Ret", _reissuePartPrice4Ret) + return nil +} + +// ReissuePartPrice4Ret Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetReissuePartPrice4Ret() string { + return r._reissuePartPrice4Ret +} +// NoShowTimeLimit4Dep Setter +// (已废除字段),去程NOSHOW规定时限,输入正整数 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetNoShowTimeLimit4Dep(_noShowTimeLimit4Dep int64) error { + r._noShowTimeLimit4Dep = _noShowTimeLimit4Dep + r.Set("noShowTimeLimit4Dep", _noShowTimeLimit4Dep) + return nil +} + +// NoShowTimeLimit4Dep Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetNoShowTimeLimit4Dep() int64 { + return r._noShowTimeLimit4Dep +} +// IsNoShowCanRefund4Dep Setter +// (已废除字段),去程NOSHOW能否退票,输入是或否;默认为否 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetIsNoShowCanRefund4Dep(_isNoShowCanRefund4Dep string) error { + r._isNoShowCanRefund4Dep = _isNoShowCanRefund4Dep + r.Set("isNoShowCanRefund4Dep", _isNoShowCanRefund4Dep) + return nil +} + +// IsNoShowCanRefund4Dep Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetIsNoShowCanRefund4Dep() string { + return r._isNoShowCanRefund4Dep +} +// IsNoShowCanReissue4Dep Setter +// (已废除字段),去程NOSHOW能否改期,输入是或否;默认为否 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetIsNoShowCanReissue4Dep(_isNoShowCanReissue4Dep string) error { + r._isNoShowCanReissue4Dep = _isNoShowCanReissue4Dep + r.Set("isNoShowCanReissue4Dep", _isNoShowCanReissue4Dep) + return nil +} + +// IsNoShowCanReissue4Dep Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetIsNoShowCanReissue4Dep() string { + return r._isNoShowCanReissue4Dep +} +// NoShowPenalty4Dep Setter +// (已废除字段),去程NOSHOW罚金,可为空,若输入则为正整数;其中空表示按航空公司规定执行 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetNoShowPenalty4Dep(_noShowPenalty4Dep int64) error { + r._noShowPenalty4Dep = _noShowPenalty4Dep + r.Set("noShowPenalty4Dep", _noShowPenalty4Dep) + return nil +} + +// NoShowPenalty4Dep Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetNoShowPenalty4Dep() int64 { + return r._noShowPenalty4Dep +} +// NoShowTimeLimit4Ret Setter +// (已废除字段),回程NOSHOW规定时限,输入正整数 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetNoShowTimeLimit4Ret(_noShowTimeLimit4Ret int64) error { + r._noShowTimeLimit4Ret = _noShowTimeLimit4Ret + r.Set("noShowTimeLimit4Ret", _noShowTimeLimit4Ret) + return nil +} + +// NoShowTimeLimit4Ret Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetNoShowTimeLimit4Ret() int64 { + return r._noShowTimeLimit4Ret +} +// IsNoShowCanRefund4Ret Setter +// (已废除字段),回程NOSHOW能否退票,输入是或否;默认为否 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetIsNoShowCanRefund4Ret(_isNoShowCanRefund4Ret string) error { + r._isNoShowCanRefund4Ret = _isNoShowCanRefund4Ret + r.Set("isNoShowCanRefund4Ret", _isNoShowCanRefund4Ret) + return nil +} + +// IsNoShowCanRefund4Ret Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetIsNoShowCanRefund4Ret() string { + return r._isNoShowCanRefund4Ret +} +// IsNoShowCanReissue4Ret Setter +// (已废除字段),回程NOSHOW能否改期,输入是或否;默认为否 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetIsNoShowCanReissue4Ret(_isNoShowCanReissue4Ret string) error { + r._isNoShowCanReissue4Ret = _isNoShowCanReissue4Ret + r.Set("isNoShowCanReissue4Ret", _isNoShowCanReissue4Ret) + return nil +} + +// IsNoShowCanReissue4Ret Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetIsNoShowCanReissue4Ret() string { + return r._isNoShowCanReissue4Ret +} +// NoShowPenalty4Ret Setter +// (已废除字段),回程NOSHOW罚金,可为空,若输入则为正整数;其中空表示按航空公司规定执行 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetNoShowPenalty4Ret(_noShowPenalty4Ret int64) error { + r._noShowPenalty4Ret = _noShowPenalty4Ret + r.Set("noShowPenalty4Ret", _noShowPenalty4Ret) + return nil +} + +// NoShowPenalty4Ret Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetNoShowPenalty4Ret() int64 { + return r._noShowPenalty4Ret +} +// LuggageRule4Dep Setter +// (后期字段,预留),去程行李额规定,可输入1-23,1-23 中间用","隔开,表示第一程和第二程(中转)支持行李额为1PC,23KG。若某段为空表示该段按照航空公司规定执行,逗号不可缺少;若不提供免费行李额直接输入空 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetLuggageRule4Dep(_luggageRule4Dep string) error { + r._luggageRule4Dep = _luggageRule4Dep + r.Set("luggageRule4Dep", _luggageRule4Dep) + return nil +} + +// LuggageRule4Dep Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetLuggageRule4Dep() string { + return r._luggageRule4Dep +} +// LuggageRule4Ret Setter +// (后期字段,预留),回程行李额规定,可输入1-23,1-23 中间用","隔开,表示第一程和第二程(中转)支持行李额为1PC,23KG。若某段为空表示该段按照航空公司规定执行,逗号不可缺少;若不提供免费行李额直接输入空 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetLuggageRule4Ret(_luggageRule4Ret string) error { + r._luggageRule4Ret = _luggageRule4Ret + r.Set("luggageRule4Ret", _luggageRule4Ret) + return nil +} + +// LuggageRule4Ret Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetLuggageRule4Ret() string { + return r._luggageRule4Ret +} +// Remark Setter +// 备注,出票备注文本 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetRemark() string { + return r._remark +} +// WorkingHours Setter +// 工作时间,18:00FRI表示周一到周五的每天早上9点到下午6点 最多录入三个时间段用,隔开表示或的关系 可以为空,表示不限制(运价上的工作时间优先级高于设置时间界面上的时间) +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetWorkingHours(_workingHours string) error { + r._workingHours = _workingHours + r.Set("workingHours", _workingHours) + return nil +} + +// WorkingHours Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetWorkingHours() string { + return r._workingHours +} +// RefundRule Setter +// (已废除字段)退票规定,1、不可为空 2、可填写:收取20%退票费用,或者是收取500元退票费等。 3、退票规定最多为300个字符 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetRefundRule(_refundRule string) error { + r._refundRule = _refundRule + r.Set("refundRule", _refundRule) + return nil +} + +// RefundRule Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetRefundRule() string { + return r._refundRule +} +// ReissueRule Setter +// (已废除字段)改期规定,1、不可为空 2、可填写:收取20%改期费用,或者是收取500元改期费等。 3、改期规定最多为300个字符 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetReissueRule(_reissueRule string) error { + r._reissueRule = _reissueRule + r.Set("reissueRule", _reissueRule) + return nil +} + +// ReissueRule Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetReissueRule() string { + return r._reissueRule +} +// NoshowRule Setter +// (已废除字段)误机罚金说明,1、不可为空 2、可填写:起飞前不得退票,不得改期 3、误机罚金说明最多为300个字符 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetNoshowRule(_noshowRule string) error { + r._noshowRule = _noshowRule + r.Set("noshowRule", _noshowRule) + return nil +} + +// NoshowRule Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetNoshowRule() string { + return r._noshowRule +} +// LuggageRule Setter +// 行李额规定,1、不可为空2、可填写:1PC。逾重行李费用为每公斤100元3、行李额规定最多为300个字符 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetLuggageRule(_luggageRule string) error { + r._luggageRule = _luggageRule + r.Set("luggageRule", _luggageRule) + return nil +} + +// LuggageRule Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetLuggageRule() string { + return r._luggageRule +} +// ApplyChannel Setter +// 运价渠道 可选listing宝贝 默认listing +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetApplyChannel(_applyChannel string) error { + r._applyChannel = _applyChannel + r.Set("applyChannel", _applyChannel) + return nil +} + +// ApplyChannel Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetApplyChannel() string { + return r._applyChannel +} +// CommodityType Setter +// 商品类型,可选值:普通、金牌,默认普通,非金牌卖家不得选择金牌 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetCommodityType(_commodityType string) error { + r._commodityType = _commodityType + r.Set("commodityType", _commodityType) + return nil +} + +// CommodityType Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetCommodityType() string { + return r._commodityType +} +// CodeSharingType Setter +// 不录入表示不限制;选项为:仅限同集团代码共享适用;代码共享适用;不允许代码共享;不限制 默认不限制 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetCodeSharingType(_codeSharingType string) error { + r._codeSharingType = _codeSharingType + r.Set("codeSharingType", _codeSharingType) + return nil +} + +// CodeSharingType Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetCodeSharingType() string { + return r._codeSharingType +} +// ExtendAttributes Setter +// json格式的字符串,扩展属性,预留 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetExtendAttributes(_extendAttributes string) error { + r._extendAttributes = _extendAttributes + r.Set("extendAttributes", _extendAttributes) + return nil +} + +// ExtendAttributes Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetExtendAttributes() string { + return r._extendAttributes +} +// BuyTicketNotice Setter +// 购票须知,非必输长度小于300字符只在退票规定不为空时才会生效 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetBuyTicketNotice(_buyTicketNotice string) error { + r._buyTicketNotice = _buyTicketNotice + r.Set("buyTicketNotice", _buyTicketNotice) + return nil +} + +// BuyTicketNotice Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetBuyTicketNotice() string { + return r._buyTicketNotice +} +// IsCanAllRefund Setter +// 必填项,全部未使用可否退票,可输入:是,否 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetIsCanAllRefund(_isCanAllRefund string) error { + r._isCanAllRefund = _isCanAllRefund + r.Set("isCanAllRefund", _isCanAllRefund) + return nil +} + +// IsCanAllRefund Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetIsCanAllRefund() string { + return r._isCanAllRefund +} +// RefundFeeAllUnused Setter +// 【全部未使用可否退票】为是时,此项为必填项。 可输入格式如: 1) 200 表示退票手续费为200(货币单位在下一个格子里) 2) 20% 表示退票手续费为票面价的20% 3)* 表示不允许退票 4) 200-0-400 表示起飞前退票手续费200;起飞后退票手续费400 5) 30%-0-* 表示起飞前退票手续费为票面价的30%;起飞后不允许退票 6)200-72-300-48-1000-0-* 表示72小时前退票手续费200; 48小时到72小时,退票手续费300; 飞机起飞不足48小时; 退票手续费1000; 飞机起飞后不予退票(输入*) 7) 10%-72-30%-48-70%-0-* 表示72小时前退票手续费为票面价的10%; 48小时到72小时,退票手续费为票面价的30%; 飞机起飞不足48小时; 退票手续费为票面价的70%; 飞机起飞后不予退票(输入*) +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetRefundFeeAllUnused(_refundFeeAllUnused string) error { + r._refundFeeAllUnused = _refundFeeAllUnused + r.Set("refundFeeAllUnused", _refundFeeAllUnused) + return nil +} + +// RefundFeeAllUnused Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetRefundFeeAllUnused() string { + return r._refundFeeAllUnused +} +// RefundCurrencyAllUnused Setter +// 全部未使用退票币种,只能录入币种三字码,默认值CNY +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetRefundCurrencyAllUnused(_refundCurrencyAllUnused string) error { + r._refundCurrencyAllUnused = _refundCurrencyAllUnused + r.Set("refundCurrencyAllUnused", _refundCurrencyAllUnused) + return nil +} + +// RefundCurrencyAllUnused Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetRefundCurrencyAllUnused() string { + return r._refundCurrencyAllUnused +} +// RefundFeeTypeAllUnused Setter +// 全部未使用退票费用收取方式,按每个航段收还是全程收(0:全程, 1:每个航段,默认值:全程) +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetRefundFeeTypeAllUnused(_refundFeeTypeAllUnused string) error { + r._refundFeeTypeAllUnused = _refundFeeTypeAllUnused + r.Set("refundFeeTypeAllUnused", _refundFeeTypeAllUnused) + return nil +} + +// RefundFeeTypeAllUnused Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetRefundFeeTypeAllUnused() string { + return r._refundFeeTypeAllUnused +} +// IsCanPartRefund Setter +// 必填项,部分未使用可否退票,可输入:是,否 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetIsCanPartRefund(_isCanPartRefund string) error { + r._isCanPartRefund = _isCanPartRefund + r.Set("isCanPartRefund", _isCanPartRefund) + return nil +} + +// IsCanPartRefund Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetIsCanPartRefund() string { + return r._isCanPartRefund +} +// RefundFeePartUnused Setter +// 部分未使用退票费用,格式同【全部未使用退票费用】,【部分未使用可否退票】为是时,此项为必填项 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetRefundFeePartUnused(_refundFeePartUnused string) error { + r._refundFeePartUnused = _refundFeePartUnused + r.Set("refundFeePartUnused", _refundFeePartUnused) + return nil +} + +// RefundFeePartUnused Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetRefundFeePartUnused() string { + return r._refundFeePartUnused +} +// RefundCurrencyPartUnused Setter +// 部分未使用退票币种,可录入币种三字码,默认值CNY +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetRefundCurrencyPartUnused(_refundCurrencyPartUnused string) error { + r._refundCurrencyPartUnused = _refundCurrencyPartUnused + r.Set("refundCurrencyPartUnused", _refundCurrencyPartUnused) + return nil +} + +// RefundCurrencyPartUnused Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetRefundCurrencyPartUnused() string { + return r._refundCurrencyPartUnused +} +// RefundFeeTypePartUnused Setter +// 部分未使用退票费用收取方式,按每个航段收还是全程收(0:全程, 1:每个航段,默认值:全程) +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetRefundFeeTypePartUnused(_refundFeeTypePartUnused string) error { + r._refundFeeTypePartUnused = _refundFeeTypePartUnused + r.Set("refundFeeTypePartUnused", _refundFeeTypePartUnused) + return nil +} + +// RefundFeeTypePartUnused Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetRefundFeeTypePartUnused() string { + return r._refundFeeTypePartUnused +} +// CanDepChange Setter +// 必填项,去程可否改期,可输入是或否 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetCanDepChange(_canDepChange string) error { + r._canDepChange = _canDepChange + r.Set("canDepChange", _canDepChange) + return nil +} + +// CanDepChange Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetCanDepChange() string { + return r._canDepChange +} +// DepChangeFee Setter +// 【去程可否改期】为是时为必填项, 可输入格式如: 1) 200 表示改期手续费为200(货币单位在下一个格子里) 2)* 表示不允许改期 3) 200-0-400 表示起飞前改期手续费200;起飞后改期手续费400 4) 30-0-* 表示起飞前改期手续费30;起飞后不允许改期 5)200-72-300-48-1000-0-* 表示72小时前改期手续费200; 48小时到72小时,改期手续费300; 飞机起飞不足48小时; 改期手续费1000; 飞机起飞后不予改期(输入*) +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetDepChangeFee(_depChangeFee string) error { + r._depChangeFee = _depChangeFee + r.Set("depChangeFee", _depChangeFee) + return nil +} + +// DepChangeFee Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetDepChangeFee() string { + return r._depChangeFee +} +// DepChangeCurrency Setter +// 去程改期币种,可录入币种三字码,默认值CNY +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetDepChangeCurrency(_depChangeCurrency string) error { + r._depChangeCurrency = _depChangeCurrency + r.Set("depChangeCurrency", _depChangeCurrency) + return nil +} + +// DepChangeCurrency Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetDepChangeCurrency() string { + return r._depChangeCurrency +} +// DepChangeFeeType Setter +// 去程改期费用收取方式,按每个航段收还是全程收(0:全程, 1:每个航段,默认值:全程) +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetDepChangeFeeType(_depChangeFeeType string) error { + r._depChangeFeeType = _depChangeFeeType + r.Set("depChangeFeeType", _depChangeFeeType) + return nil +} + +// DepChangeFeeType Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetDepChangeFeeType() string { + return r._depChangeFeeType +} +// CanRetChange Setter +// 必填项,回程可否改期,可输入是或否 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetCanRetChange(_canRetChange string) error { + r._canRetChange = _canRetChange + r.Set("canRetChange", _canRetChange) + return nil +} + +// CanRetChange Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetCanRetChange() string { + return r._canRetChange +} +// RetChangeFee Setter +// 回程改期费用,格式同【去程改期费用】,【回程可否改期】为是时为必填 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetRetChangeFee(_retChangeFee string) error { + r._retChangeFee = _retChangeFee + r.Set("retChangeFee", _retChangeFee) + return nil +} + +// RetChangeFee Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetRetChangeFee() string { + return r._retChangeFee +} +// RetChangeCurrency Setter +// 回程改期币种,可输入币种三字码,默认值CN +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetRetChangeCurrency(_retChangeCurrency string) error { + r._retChangeCurrency = _retChangeCurrency + r.Set("retChangeCurrency", _retChangeCurrency) + return nil +} + +// RetChangeCurrency Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetRetChangeCurrency() string { + return r._retChangeCurrency +} +// RetChangeFeeType Setter +// 回程改期费用收取方式,按每个航段收还是全程收(0:全程, 1:每个航段,默认值:全程) +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetRetChangeFeeType(_retChangeFeeType string) error { + r._retChangeFeeType = _retChangeFeeType + r.Set("retChangeFeeType", _retChangeFeeType) + return nil +} + +// RetChangeFeeType Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetRetChangeFeeType() string { + return r._retChangeFeeType +} +// NoshowRestrict Setter +// 必填项,NOSHOW是否有限制,可输入是或否 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetNoshowRestrict(_noshowRestrict string) error { + r._noshowRestrict = _noshowRestrict + r.Set("noshowRestrict", _noshowRestrict) + return nil +} + +// NoshowRestrict Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetNoshowRestrict() string { + return r._noshowRestrict +} +// NoshowTimeRestrict Setter +// NOSHOW时限,只能录入整数,【NOSHOW是否有限制】为是时,此项为必填项 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetNoshowTimeRestrict(_noshowTimeRestrict string) error { + r._noshowTimeRestrict = _noshowTimeRestrict + r.Set("noshowTimeRestrict", _noshowTimeRestrict) + return nil +} + +// NoshowTimeRestrict Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetNoshowTimeRestrict() string { + return r._noshowTimeRestrict +} +// NoshowTimeRestrictUnit Setter +// NOSHOW时限单位(小时/天, 默认为小时) +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetNoshowTimeRestrictUnit(_noshowTimeRestrictUnit string) error { + r._noshowTimeRestrictUnit = _noshowTimeRestrictUnit + r.Set("noshowTimeRestrictUnit", _noshowTimeRestrictUnit) + return nil +} + +// NoshowTimeRestrictUnit Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetNoshowTimeRestrictUnit() string { + return r._noshowTimeRestrictUnit +} +// NoshowRuleType Setter +// NOSHOW规则,可录入多个,多个用逗号分隔。可录入不可退票、不可改期、不可改期,不可改期 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetNoshowRuleType(_noshowRuleType string) error { + r._noshowRuleType = _noshowRuleType + r.Set("noshowRuleType", _noshowRuleType) + return nil +} + +// NoshowRuleType Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetNoshowRuleType() string { + return r._noshowRuleType +} +// NoshowFee Setter +// NOSHOW金额,只能录入整数或百分比,【NOSHOW是否有限制】为是,【NOSHOW规则】不是不可退票,不可改期时,此项为必填项 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetNoshowFee(_noshowFee string) error { + r._noshowFee = _noshowFee + r.Set("noshowFee", _noshowFee) + return nil +} + +// NoshowFee Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetNoshowFee() string { + return r._noshowFee +} +// NoshowCurrency Setter +// NOSHOW币种,可录入币种三字码,默认值CNY +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetNoshowCurrency(_noshowCurrency string) error { + r._noshowCurrency = _noshowCurrency + r.Set("noshowCurrency", _noshowCurrency) + return nil +} + +// NoshowCurrency Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetNoshowCurrency() string { + return r._noshowCurrency +} +// Farebasis Setter +// 运价基础,最大长度8 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetFarebasis(_farebasis string) error { + r._farebasis = _farebasis + r.Set("farebasis", _farebasis) + return nil +} + +// Farebasis Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetFarebasis() string { + return r._farebasis +} +// FareTypeCode Setter +// 运价类型,最大长度3 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetFareTypeCode(_fareTypeCode string) error { + r._fareTypeCode = _fareTypeCode + r.Set("fareTypeCode", _fareTypeCode) + return nil +} + +// FareTypeCode Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetFareTypeCode() string { + return r._fareTypeCode +} +// Tariff Setter +// 运价tariff,最大长度3 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetTariff(_tariff string) error { + r._tariff = _tariff + r.Set("tariff", _tariff) + return nil +} + +// Tariff Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetTariff() string { + return r._tariff +} +// RuleId Setter +// 运价规则id,最大长度4 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetRuleId(_ruleId string) error { + r._ruleId = _ruleId + r.Set("ruleId", _ruleId) + return nil +} + +// RuleId Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetRuleId() string { + return r._ruleId +} +// FareDirectDestrict Setter +// 运价组合适用方向,0(或者字段不存在):不限制/1:仅作用在去程/2:仅作用在回程 +func (r *TaobaoAlitripItFareAddrtAPIRequest) SetFareDirectDestrict(_fareDirectDestrict int64) error { + r._fareDirectDestrict = _fareDirectDestrict + r.Set("fareDirectDestrict", _fareDirectDestrict) + return nil +} + +// FareDirectDestrict Getter +func (r TaobaoAlitripItFareAddrtAPIRequest) GetFareDirectDestrict() int64 { + return r._fareDirectDestrict +} diff --git a/model/itpolicy/TaobaoAlitripItFareAddrtAPIResponse.go b/model/itpolicy/TaobaoAlitripItFareAddrtAPIResponse.go new file mode 100644 index 0000000000..8eba40240f --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItFareAddrtAPIResponse.go @@ -0,0 +1,29 @@ +package itpolicy + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票自有政策】单条往返添加 API返回值 +taobao.alitrip.it.fare.addrt + +自有政策往返添加接口 +*/ +type TaobaoAlitripItFareAddrtAPIResponse struct { + model.CommonResponse + TaobaoAlitripItFareAddrtAPIResponseModel +} + +// 【国际机票自有政策】单条往返添加 成功返回结果 +type TaobaoAlitripItFareAddrtAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_it_fare_addrt_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 运价id + FareId int64 `json:"fare_id,omitempty" xml:"fare_id,omitempty"` + // json格式的字符串,扩展属性,预留 + ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` +} diff --git a/model/itpolicy/TaobaoAlitripItFareAddrtResponse.go b/model/itpolicy/TaobaoAlitripItFareAddrtResponse.go deleted file mode 100644 index f4b6c35e63..0000000000 --- a/model/itpolicy/TaobaoAlitripItFareAddrtResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package itpolicy - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【国际机票自有政策】单条往返添加 API返回值 -taobao.alitrip.it.fare.addrt - -自有政策往返添加接口 -*/ -type TaobaoAlitripItFareAddrtAPIResponse struct { - model.CommonResponse - TaobaoAlitripItFareAddrtResponse -} - -// 【国际机票自有政策】单条往返添加 成功返回结果 -type TaobaoAlitripItFareAddrtResponse struct { - XMLName xml.Name `xml:"alitrip_it_fare_addrt_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 运价id - FareId int64 `json:"fare_id,omitempty" xml:"fare_id,omitempty"` - // json格式的字符串,扩展属性,预留 - ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` -} diff --git a/model/itpolicy/TaobaoAlitripItFareBatchaddAPIRequest.go b/model/itpolicy/TaobaoAlitripItFareBatchaddAPIRequest.go new file mode 100644 index 0000000000..37dbcf9b34 --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItFareBatchaddAPIRequest.go @@ -0,0 +1,94 @@ +package itpolicy + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票自有政策】批量添加 API请求 +taobao.alitrip.it.fare.batchadd + +支持自有政策和销售规则批量添加,支持携程的数据格式。淘宝格式为list [object] to json string,object的属性和单条接口一致。每个接入方最多同时只能有1个处理中的导入任务,超过后直接返回失败。文件一定要zip压缩,压缩后大小不超过5M,编码格式utf-8 +*/ +type TaobaoAlitripItFareBatchaddAPIRequest struct { + model.Params + // 新增类型,1 自有政策单程 2 自有政策往返 3 销售规则 + _addType int64 + // 文本zip压缩后的数据字节流 + _bytes *model.File + // 数据格式类型,1 淘宝 2 携程 + _dataType int64 + // json格式的字符串,扩展属性,预留 + _extendAttributes string +} + +// 初始化TaobaoAlitripItFareBatchaddAPIRequest对象 +func NewTaobaoAlitripItFareBatchaddRequest() *TaobaoAlitripItFareBatchaddAPIRequest{ + return &TaobaoAlitripItFareBatchaddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripItFareBatchaddAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.it.fare.batchadd" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripItFareBatchaddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AddType Setter +// 新增类型,1 自有政策单程 2 自有政策往返 3 销售规则 +func (r *TaobaoAlitripItFareBatchaddAPIRequest) SetAddType(_addType int64) error { + r._addType = _addType + r.Set("addType", _addType) + return nil +} + +// AddType Getter +func (r TaobaoAlitripItFareBatchaddAPIRequest) GetAddType() int64 { + return r._addType +} +// Bytes Setter +// 文本zip压缩后的数据字节流 +func (r *TaobaoAlitripItFareBatchaddAPIRequest) SetBytes(_bytes *model.File) error { + r._bytes = _bytes + r.Set("bytes", _bytes) + return nil +} + +// Bytes Getter +func (r TaobaoAlitripItFareBatchaddAPIRequest) GetBytes() *model.File { + return r._bytes +} +// DataType Setter +// 数据格式类型,1 淘宝 2 携程 +func (r *TaobaoAlitripItFareBatchaddAPIRequest) SetDataType(_dataType int64) error { + r._dataType = _dataType + r.Set("dataType", _dataType) + return nil +} + +// DataType Getter +func (r TaobaoAlitripItFareBatchaddAPIRequest) GetDataType() int64 { + return r._dataType +} +// ExtendAttributes Setter +// json格式的字符串,扩展属性,预留 +func (r *TaobaoAlitripItFareBatchaddAPIRequest) SetExtendAttributes(_extendAttributes string) error { + r._extendAttributes = _extendAttributes + r.Set("extendAttributes", _extendAttributes) + return nil +} + +// ExtendAttributes Getter +func (r TaobaoAlitripItFareBatchaddAPIRequest) GetExtendAttributes() string { + return r._extendAttributes +} diff --git a/model/itpolicy/TaobaoAlitripItFareBatchaddAPIResponse.go b/model/itpolicy/TaobaoAlitripItFareBatchaddAPIResponse.go new file mode 100644 index 0000000000..0a66912d7d --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItFareBatchaddAPIResponse.go @@ -0,0 +1,29 @@ +package itpolicy + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票自有政策】批量添加 API返回值 +taobao.alitrip.it.fare.batchadd + +支持自有政策和销售规则批量添加,支持携程的数据格式。淘宝格式为list [object] to json string,object的属性和单条接口一致。每个接入方最多同时只能有1个处理中的导入任务,超过后直接返回失败。文件一定要zip压缩,压缩后大小不超过5M,编码格式utf-8 +*/ +type TaobaoAlitripItFareBatchaddAPIResponse struct { + model.CommonResponse + TaobaoAlitripItFareBatchaddAPIResponseModel +} + +// 【国际机票自有政策】批量添加 成功返回结果 +type TaobaoAlitripItFareBatchaddAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_it_fare_batchadd_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 任务id,可以根据任务id调用querytask查询执行结果 + TeskId int64 `json:"tesk_id,omitempty" xml:"tesk_id,omitempty"` + // json格式的字符串,扩展属性,预留 + ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` +} diff --git a/model/itpolicy/TaobaoAlitripItFareBatchaddResponse.go b/model/itpolicy/TaobaoAlitripItFareBatchaddResponse.go deleted file mode 100644 index 556c7cb58a..0000000000 --- a/model/itpolicy/TaobaoAlitripItFareBatchaddResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package itpolicy - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【国际机票自有政策】批量添加 API返回值 -taobao.alitrip.it.fare.batchadd - -支持自有政策和销售规则批量添加,支持携程的数据格式。淘宝格式为list [object] to json string,object的属性和单条接口一致。每个接入方最多同时只能有1个处理中的导入任务,超过后直接返回失败。文件一定要zip压缩,压缩后大小不超过5M,编码格式utf-8 -*/ -type TaobaoAlitripItFareBatchaddAPIResponse struct { - model.CommonResponse - TaobaoAlitripItFareBatchaddResponse -} - -// 【国际机票自有政策】批量添加 成功返回结果 -type TaobaoAlitripItFareBatchaddResponse struct { - XMLName xml.Name `xml:"alitrip_it_fare_batchadd_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 任务id,可以根据任务id调用querytask查询执行结果 - TeskId int64 `json:"tesk_id,omitempty" xml:"tesk_id,omitempty"` - // json格式的字符串,扩展属性,预留 - ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` -} diff --git a/model/itpolicy/TaobaoAlitripItFareBatchdeleteAPIRequest.go b/model/itpolicy/TaobaoAlitripItFareBatchdeleteAPIRequest.go new file mode 100644 index 0000000000..c75f1afbfe --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItFareBatchdeleteAPIRequest.go @@ -0,0 +1,248 @@ +package itpolicy + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票自有政策】批量删除 API请求 +taobao.alitrip.it.fare.batchdelete + +批量删除自有政策,单次删除最大5万,大于5万时候提示失败,需要缩小删除条件。此接口同步返回任务id,异步执行操作。每个接入方最多同时只能有10个处理中的任务,超过后直接返回失败。 +*/ +type TaobaoAlitripItFareBatchdeleteAPIRequest struct { + model.Params + // 航空公司 + _airline string + // 到达城市 可传多个 AND关系 + _arrCity string + // 舱位 可传多个 或者的关系 + _cabin string + // 是否能够混舱 + _canRt bool + // 到达城市 可传多个 AND关系 + _depCity string + // 最晚修改时间 + _endModifyDate string + // 文件编号 + _fileCode string + // 维护方式,可选值(UI:后台界面录入;EXCEL:后台excel批量导入;API:top接口添加) + _operateSource string + // 外部政策id + _outId string + // 最早修改时间 + _startModifyDate string + // 去程适用开始日期 + _startRestrictGoDate string + // 去程适用结束日期 + _endRestrictGoDate string + // 运价类型,1单程 2往返 + _fareType int64 + // 0:未发布 1:已发布 2:已过期。不传的话,默认只能删除未发布和已过期的数据 + _statusList []int64 + // json格式的字符串,扩展属性,预留 + _extendAttributes string +} + +// 初始化TaobaoAlitripItFareBatchdeleteAPIRequest对象 +func NewTaobaoAlitripItFareBatchdeleteRequest() *TaobaoAlitripItFareBatchdeleteAPIRequest{ + return &TaobaoAlitripItFareBatchdeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripItFareBatchdeleteAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.it.fare.batchdelete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripItFareBatchdeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Airline Setter +// 航空公司 +func (r *TaobaoAlitripItFareBatchdeleteAPIRequest) SetAirline(_airline string) error { + r._airline = _airline + r.Set("airline", _airline) + return nil +} + +// Airline Getter +func (r TaobaoAlitripItFareBatchdeleteAPIRequest) GetAirline() string { + return r._airline +} +// ArrCity Setter +// 到达城市 可传多个 AND关系 +func (r *TaobaoAlitripItFareBatchdeleteAPIRequest) SetArrCity(_arrCity string) error { + r._arrCity = _arrCity + r.Set("arrCity", _arrCity) + return nil +} + +// ArrCity Getter +func (r TaobaoAlitripItFareBatchdeleteAPIRequest) GetArrCity() string { + return r._arrCity +} +// Cabin Setter +// 舱位 可传多个 或者的关系 +func (r *TaobaoAlitripItFareBatchdeleteAPIRequest) SetCabin(_cabin string) error { + r._cabin = _cabin + r.Set("cabin", _cabin) + return nil +} + +// Cabin Getter +func (r TaobaoAlitripItFareBatchdeleteAPIRequest) GetCabin() string { + return r._cabin +} +// CanRt Setter +// 是否能够混舱 +func (r *TaobaoAlitripItFareBatchdeleteAPIRequest) SetCanRt(_canRt bool) error { + r._canRt = _canRt + r.Set("canRt", _canRt) + return nil +} + +// CanRt Getter +func (r TaobaoAlitripItFareBatchdeleteAPIRequest) GetCanRt() bool { + return r._canRt +} +// DepCity Setter +// 到达城市 可传多个 AND关系 +func (r *TaobaoAlitripItFareBatchdeleteAPIRequest) SetDepCity(_depCity string) error { + r._depCity = _depCity + r.Set("depCity", _depCity) + return nil +} + +// DepCity Getter +func (r TaobaoAlitripItFareBatchdeleteAPIRequest) GetDepCity() string { + return r._depCity +} +// EndModifyDate Setter +// 最晚修改时间 +func (r *TaobaoAlitripItFareBatchdeleteAPIRequest) SetEndModifyDate(_endModifyDate string) error { + r._endModifyDate = _endModifyDate + r.Set("endModifyDate", _endModifyDate) + return nil +} + +// EndModifyDate Getter +func (r TaobaoAlitripItFareBatchdeleteAPIRequest) GetEndModifyDate() string { + return r._endModifyDate +} +// FileCode Setter +// 文件编号 +func (r *TaobaoAlitripItFareBatchdeleteAPIRequest) SetFileCode(_fileCode string) error { + r._fileCode = _fileCode + r.Set("fileCode", _fileCode) + return nil +} + +// FileCode Getter +func (r TaobaoAlitripItFareBatchdeleteAPIRequest) GetFileCode() string { + return r._fileCode +} +// OperateSource Setter +// 维护方式,可选值(UI:后台界面录入;EXCEL:后台excel批量导入;API:top接口添加) +func (r *TaobaoAlitripItFareBatchdeleteAPIRequest) SetOperateSource(_operateSource string) error { + r._operateSource = _operateSource + r.Set("operateSource", _operateSource) + return nil +} + +// OperateSource Getter +func (r TaobaoAlitripItFareBatchdeleteAPIRequest) GetOperateSource() string { + return r._operateSource +} +// OutId Setter +// 外部政策id +func (r *TaobaoAlitripItFareBatchdeleteAPIRequest) SetOutId(_outId string) error { + r._outId = _outId + r.Set("outId", _outId) + return nil +} + +// OutId Getter +func (r TaobaoAlitripItFareBatchdeleteAPIRequest) GetOutId() string { + return r._outId +} +// StartModifyDate Setter +// 最早修改时间 +func (r *TaobaoAlitripItFareBatchdeleteAPIRequest) SetStartModifyDate(_startModifyDate string) error { + r._startModifyDate = _startModifyDate + r.Set("startModifyDate", _startModifyDate) + return nil +} + +// StartModifyDate Getter +func (r TaobaoAlitripItFareBatchdeleteAPIRequest) GetStartModifyDate() string { + return r._startModifyDate +} +// StartRestrictGoDate Setter +// 去程适用开始日期 +func (r *TaobaoAlitripItFareBatchdeleteAPIRequest) SetStartRestrictGoDate(_startRestrictGoDate string) error { + r._startRestrictGoDate = _startRestrictGoDate + r.Set("startRestrictGoDate", _startRestrictGoDate) + return nil +} + +// StartRestrictGoDate Getter +func (r TaobaoAlitripItFareBatchdeleteAPIRequest) GetStartRestrictGoDate() string { + return r._startRestrictGoDate +} +// EndRestrictGoDate Setter +// 去程适用结束日期 +func (r *TaobaoAlitripItFareBatchdeleteAPIRequest) SetEndRestrictGoDate(_endRestrictGoDate string) error { + r._endRestrictGoDate = _endRestrictGoDate + r.Set("endRestrictGoDate", _endRestrictGoDate) + return nil +} + +// EndRestrictGoDate Getter +func (r TaobaoAlitripItFareBatchdeleteAPIRequest) GetEndRestrictGoDate() string { + return r._endRestrictGoDate +} +// FareType Setter +// 运价类型,1单程 2往返 +func (r *TaobaoAlitripItFareBatchdeleteAPIRequest) SetFareType(_fareType int64) error { + r._fareType = _fareType + r.Set("fareType", _fareType) + return nil +} + +// FareType Getter +func (r TaobaoAlitripItFareBatchdeleteAPIRequest) GetFareType() int64 { + return r._fareType +} +// StatusList Setter +// 0:未发布 1:已发布 2:已过期。不传的话,默认只能删除未发布和已过期的数据 +func (r *TaobaoAlitripItFareBatchdeleteAPIRequest) SetStatusList(_statusList []int64) error { + r._statusList = _statusList + r.Set("statusList", _statusList) + return nil +} + +// StatusList Getter +func (r TaobaoAlitripItFareBatchdeleteAPIRequest) GetStatusList() []int64 { + return r._statusList +} +// ExtendAttributes Setter +// json格式的字符串,扩展属性,预留 +func (r *TaobaoAlitripItFareBatchdeleteAPIRequest) SetExtendAttributes(_extendAttributes string) error { + r._extendAttributes = _extendAttributes + r.Set("extendAttributes", _extendAttributes) + return nil +} + +// ExtendAttributes Getter +func (r TaobaoAlitripItFareBatchdeleteAPIRequest) GetExtendAttributes() string { + return r._extendAttributes +} diff --git a/model/itpolicy/TaobaoAlitripItFareBatchdeleteAPIResponse.go b/model/itpolicy/TaobaoAlitripItFareBatchdeleteAPIResponse.go new file mode 100644 index 0000000000..33fbec251a --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItFareBatchdeleteAPIResponse.go @@ -0,0 +1,29 @@ +package itpolicy + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票自有政策】批量删除 API返回值 +taobao.alitrip.it.fare.batchdelete + +批量删除自有政策,单次删除最大5万,大于5万时候提示失败,需要缩小删除条件。此接口同步返回任务id,异步执行操作。每个接入方最多同时只能有10个处理中的任务,超过后直接返回失败。 +*/ +type TaobaoAlitripItFareBatchdeleteAPIResponse struct { + model.CommonResponse + TaobaoAlitripItFareBatchdeleteAPIResponseModel +} + +// 【国际机票自有政策】批量删除 成功返回结果 +type TaobaoAlitripItFareBatchdeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_it_fare_batchdelete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 任务id,可以根据任务id调用querytask查询执行结果 + TaskId int64 `json:"task_id,omitempty" xml:"task_id,omitempty"` + // json格式的字符串,扩展属性,预留 + ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` +} diff --git a/model/itpolicy/TaobaoAlitripItFareBatchdeleteResponse.go b/model/itpolicy/TaobaoAlitripItFareBatchdeleteResponse.go deleted file mode 100644 index 2f585dc154..0000000000 --- a/model/itpolicy/TaobaoAlitripItFareBatchdeleteResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package itpolicy - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【国际机票自有政策】批量删除 API返回值 -taobao.alitrip.it.fare.batchdelete - -批量删除自有政策,单次删除最大5万,大于5万时候提示失败,需要缩小删除条件。此接口同步返回任务id,异步执行操作。每个接入方最多同时只能有10个处理中的任务,超过后直接返回失败。 -*/ -type TaobaoAlitripItFareBatchdeleteAPIResponse struct { - model.CommonResponse - TaobaoAlitripItFareBatchdeleteResponse -} - -// 【国际机票自有政策】批量删除 成功返回结果 -type TaobaoAlitripItFareBatchdeleteResponse struct { - XMLName xml.Name `xml:"alitrip_it_fare_batchdelete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 任务id,可以根据任务id调用querytask查询执行结果 - TaskId int64 `json:"task_id,omitempty" xml:"task_id,omitempty"` - // json格式的字符串,扩展属性,预留 - ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` -} diff --git a/model/itpolicy/TaobaoAlitripItFareDeleteAPIRequest.go b/model/itpolicy/TaobaoAlitripItFareDeleteAPIRequest.go new file mode 100644 index 0000000000..a4ddff9fdc --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItFareDeleteAPIRequest.go @@ -0,0 +1,80 @@ +package itpolicy + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票自有政策】单条删除 API请求 +taobao.alitrip.it.fare.delete + +自有政策删除接口,可以根据fareId或outId删除,根据outId删除时,如果outId不唯一,返回失败 +*/ +type TaobaoAlitripItFareDeleteAPIRequest struct { + model.Params + // json格式的字符串,扩展属性,预留 + _extendAttributes string + // 运价id,单条新增成功时返回运价id,fareId和outId必填一个,fareId优先 + _fareId int64 + // 外部id,为新增时请求参数中的外部政策id + _outId string +} + +// 初始化TaobaoAlitripItFareDeleteAPIRequest对象 +func NewTaobaoAlitripItFareDeleteRequest() *TaobaoAlitripItFareDeleteAPIRequest{ + return &TaobaoAlitripItFareDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripItFareDeleteAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.it.fare.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripItFareDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExtendAttributes Setter +// json格式的字符串,扩展属性,预留 +func (r *TaobaoAlitripItFareDeleteAPIRequest) SetExtendAttributes(_extendAttributes string) error { + r._extendAttributes = _extendAttributes + r.Set("extendAttributes", _extendAttributes) + return nil +} + +// ExtendAttributes Getter +func (r TaobaoAlitripItFareDeleteAPIRequest) GetExtendAttributes() string { + return r._extendAttributes +} +// FareId Setter +// 运价id,单条新增成功时返回运价id,fareId和outId必填一个,fareId优先 +func (r *TaobaoAlitripItFareDeleteAPIRequest) SetFareId(_fareId int64) error { + r._fareId = _fareId + r.Set("fareId", _fareId) + return nil +} + +// FareId Getter +func (r TaobaoAlitripItFareDeleteAPIRequest) GetFareId() int64 { + return r._fareId +} +// OutId Setter +// 外部id,为新增时请求参数中的外部政策id +func (r *TaobaoAlitripItFareDeleteAPIRequest) SetOutId(_outId string) error { + r._outId = _outId + r.Set("outId", _outId) + return nil +} + +// OutId Getter +func (r TaobaoAlitripItFareDeleteAPIRequest) GetOutId() string { + return r._outId +} diff --git a/model/itpolicy/TaobaoAlitripItFareDeleteAPIResponse.go b/model/itpolicy/TaobaoAlitripItFareDeleteAPIResponse.go new file mode 100644 index 0000000000..20d5b8cbcb --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItFareDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package itpolicy + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票自有政策】单条删除 API返回值 +taobao.alitrip.it.fare.delete + +自有政策删除接口,可以根据fareId或outId删除,根据outId删除时,如果outId不唯一,返回失败 +*/ +type TaobaoAlitripItFareDeleteAPIResponse struct { + model.CommonResponse + TaobaoAlitripItFareDeleteAPIResponseModel +} + +// 【国际机票自有政策】单条删除 成功返回结果 +type TaobaoAlitripItFareDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_it_fare_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // json格式的字符串,扩展属性,预留 + ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` +} diff --git a/model/itpolicy/TaobaoAlitripItFareDeleteResponse.go b/model/itpolicy/TaobaoAlitripItFareDeleteResponse.go deleted file mode 100644 index b68345d216..0000000000 --- a/model/itpolicy/TaobaoAlitripItFareDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package itpolicy - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【国际机票自有政策】单条删除 API返回值 -taobao.alitrip.it.fare.delete - -自有政策删除接口,可以根据fareId或outId删除,根据outId删除时,如果outId不唯一,返回失败 -*/ -type TaobaoAlitripItFareDeleteAPIResponse struct { - model.CommonResponse - TaobaoAlitripItFareDeleteResponse -} - -// 【国际机票自有政策】单条删除 成功返回结果 -type TaobaoAlitripItFareDeleteResponse struct { - XMLName xml.Name `xml:"alitrip_it_fare_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // json格式的字符串,扩展属性,预留 - ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` -} diff --git a/model/itpolicy/TaobaoAlitripItFareGetAPIRequest.go b/model/itpolicy/TaobaoAlitripItFareGetAPIRequest.go new file mode 100644 index 0000000000..08fff02539 --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItFareGetAPIRequest.go @@ -0,0 +1,80 @@ +package itpolicy + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票自有政策】单条查询 API请求 +taobao.alitrip.it.fare.get + +通过此接口可以查询单条政策的详情,可以根据fareId或outId查询,用户outId查询时,如果outId不唯一,只返回最新添加的一条数据 +*/ +type TaobaoAlitripItFareGetAPIRequest struct { + model.Params + // json格式的字符串,扩展属性,预留 + _extendAttributes string + // 运价id,单条新增成功时返回运价id,fareId和outId必填一个,fareId优先 + _fareId int64 + // 外部id,为新增时请求参数中的外部政策id + _outId string +} + +// 初始化TaobaoAlitripItFareGetAPIRequest对象 +func NewTaobaoAlitripItFareGetRequest() *TaobaoAlitripItFareGetAPIRequest{ + return &TaobaoAlitripItFareGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripItFareGetAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.it.fare.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripItFareGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExtendAttributes Setter +// json格式的字符串,扩展属性,预留 +func (r *TaobaoAlitripItFareGetAPIRequest) SetExtendAttributes(_extendAttributes string) error { + r._extendAttributes = _extendAttributes + r.Set("extendAttributes", _extendAttributes) + return nil +} + +// ExtendAttributes Getter +func (r TaobaoAlitripItFareGetAPIRequest) GetExtendAttributes() string { + return r._extendAttributes +} +// FareId Setter +// 运价id,单条新增成功时返回运价id,fareId和outId必填一个,fareId优先 +func (r *TaobaoAlitripItFareGetAPIRequest) SetFareId(_fareId int64) error { + r._fareId = _fareId + r.Set("fareId", _fareId) + return nil +} + +// FareId Getter +func (r TaobaoAlitripItFareGetAPIRequest) GetFareId() int64 { + return r._fareId +} +// OutId Setter +// 外部id,为新增时请求参数中的外部政策id +func (r *TaobaoAlitripItFareGetAPIRequest) SetOutId(_outId string) error { + r._outId = _outId + r.Set("outId", _outId) + return nil +} + +// OutId Getter +func (r TaobaoAlitripItFareGetAPIRequest) GetOutId() string { + return r._outId +} diff --git a/model/itpolicy/TaobaoAlitripItFareGetAPIResponse.go b/model/itpolicy/TaobaoAlitripItFareGetAPIResponse.go new file mode 100644 index 0000000000..7100cf8d86 --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItFareGetAPIResponse.go @@ -0,0 +1,35 @@ +package itpolicy + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票自有政策】单条查询 API返回值 +taobao.alitrip.it.fare.get + +通过此接口可以查询单条政策的详情,可以根据fareId或outId查询,用户outId查询时,如果outId不唯一,只返回最新添加的一条数据 +*/ +type TaobaoAlitripItFareGetAPIResponse struct { + model.CommonResponse + TaobaoAlitripItFareGetAPIResponseModel +} + +// 【国际机票自有政策】单条查询 成功返回结果 +type TaobaoAlitripItFareGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_it_fare_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // json格式的字符串,扩展属性,预留 + ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` + // 运价id + FareId int64 `json:"fare_id,omitempty" xml:"fare_id,omitempty"` + // 自有政策json序列化后字符串,具体属性和addow或addrt接口的请求参数一致,如:{"ticketingAirline":"CA","saleAirline":"CA","addressOption":"城市","tripType":"直达","originLand":"SHA,BJS","destination":"HKG,SHA","cabin":"N","restrictFlightNo":"","excludeFlightNo":"","validDate4Dep":"2015-05-30~2015-11-30","flightDateRestrict4Dep":"12","saleDate":"2015-05-30~2015-11-30","adultPassengerIdentity":"普通","ticketPrice":2000,"childPrice":"1980","returnPoint":1.0,"adjustMoney":0,"refundRule":"收取80000元退票费","reissueRule":"收取20%改期费","noshowRule":"起飞前不得退票,不得改期","luggageRule":"逾重行李费用为每公斤100元"} + FareJson string `json:"fare_json,omitempty" xml:"fare_json,omitempty"` + // 运价类型,1单程 2往返 + FareType int64 `json:"fare_type,omitempty" xml:"fare_type,omitempty"` + // 0:未发布 1:已发布 2:已过期 + Status int64 `json:"status,omitempty" xml:"status,omitempty"` +} diff --git a/model/itpolicy/TaobaoAlitripItFareGetResponse.go b/model/itpolicy/TaobaoAlitripItFareGetResponse.go deleted file mode 100644 index 4e09de6016..0000000000 --- a/model/itpolicy/TaobaoAlitripItFareGetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package itpolicy - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【国际机票自有政策】单条查询 API返回值 -taobao.alitrip.it.fare.get - -通过此接口可以查询单条政策的详情,可以根据fareId或outId查询,用户outId查询时,如果outId不唯一,只返回最新添加的一条数据 -*/ -type TaobaoAlitripItFareGetAPIResponse struct { - model.CommonResponse - TaobaoAlitripItFareGetResponse -} - -// 【国际机票自有政策】单条查询 成功返回结果 -type TaobaoAlitripItFareGetResponse struct { - XMLName xml.Name `xml:"alitrip_it_fare_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // json格式的字符串,扩展属性,预留 - ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` - // 运价id - FareId int64 `json:"fare_id,omitempty" xml:"fare_id,omitempty"` - // 自有政策json序列化后字符串,具体属性和addow或addrt接口的请求参数一致,如:{"ticketingAirline":"CA","saleAirline":"CA","addressOption":"城市","tripType":"直达","originLand":"SHA,BJS","destination":"HKG,SHA","cabin":"N","restrictFlightNo":"","excludeFlightNo":"","validDate4Dep":"2015-05-30~2015-11-30","flightDateRestrict4Dep":"12","saleDate":"2015-05-30~2015-11-30","adultPassengerIdentity":"普通","ticketPrice":2000,"childPrice":"1980","returnPoint":1.0,"adjustMoney":0,"refundRule":"收取80000元退票费","reissueRule":"收取20%改期费","noshowRule":"起飞前不得退票,不得改期","luggageRule":"逾重行李费用为每公斤100元"} - FareJson string `json:"fare_json,omitempty" xml:"fare_json,omitempty"` - // 运价类型,1单程 2往返 - FareType int64 `json:"fare_type,omitempty" xml:"fare_type,omitempty"` - // 0:未发布 1:已发布 2:已过期 - Status int64 `json:"status,omitempty" xml:"status,omitempty"` -} diff --git a/model/itpolicy/TaobaoAlitripItFareQuerytaskAPIRequest.go b/model/itpolicy/TaobaoAlitripItFareQuerytaskAPIRequest.go new file mode 100644 index 0000000000..4290d3e030 --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItFareQuerytaskAPIRequest.go @@ -0,0 +1,66 @@ +package itpolicy + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票自有政策】批量操作结果查询 API请求 +taobao.alitrip.it.fare.querytask + +批量操作同步返回任务id,后台生成异步任务,通过此接口查询批量操作的执行结果 +*/ +type TaobaoAlitripItFareQuerytaskAPIRequest struct { + model.Params + // json格式的字符串,扩展属性,预留 + _extendAttributes string + // 任务id + _taskId int64 +} + +// 初始化TaobaoAlitripItFareQuerytaskAPIRequest对象 +func NewTaobaoAlitripItFareQuerytaskRequest() *TaobaoAlitripItFareQuerytaskAPIRequest{ + return &TaobaoAlitripItFareQuerytaskAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripItFareQuerytaskAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.it.fare.querytask" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripItFareQuerytaskAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExtendAttributes Setter +// json格式的字符串,扩展属性,预留 +func (r *TaobaoAlitripItFareQuerytaskAPIRequest) SetExtendAttributes(_extendAttributes string) error { + r._extendAttributes = _extendAttributes + r.Set("extendAttributes", _extendAttributes) + return nil +} + +// ExtendAttributes Getter +func (r TaobaoAlitripItFareQuerytaskAPIRequest) GetExtendAttributes() string { + return r._extendAttributes +} +// TaskId Setter +// 任务id +func (r *TaobaoAlitripItFareQuerytaskAPIRequest) SetTaskId(_taskId int64) error { + r._taskId = _taskId + r.Set("taskId", _taskId) + return nil +} + +// TaskId Getter +func (r TaobaoAlitripItFareQuerytaskAPIRequest) GetTaskId() int64 { + return r._taskId +} diff --git a/model/itpolicy/TaobaoAlitripItFareQuerytaskAPIResponse.go b/model/itpolicy/TaobaoAlitripItFareQuerytaskAPIResponse.go new file mode 100644 index 0000000000..ff7ec5c99e --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItFareQuerytaskAPIResponse.go @@ -0,0 +1,35 @@ +package itpolicy + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票自有政策】批量操作结果查询 API返回值 +taobao.alitrip.it.fare.querytask + +批量操作同步返回任务id,后台生成异步任务,通过此接口查询批量操作的执行结果 +*/ +type TaobaoAlitripItFareQuerytaskAPIResponse struct { + model.CommonResponse + TaobaoAlitripItFareQuerytaskAPIResponseModel +} + +// 【国际机票自有政策】批量操作结果查询 成功返回结果 +type TaobaoAlitripItFareQuerytaskAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_it_fare_querytask_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 完成时间 + GmtFinished string `json:"gmt_finished,omitempty" xml:"gmt_finished,omitempty"` + // 成功处理条数 + ProcessAmount int64 `json:"process_amount,omitempty" xml:"process_amount,omitempty"` + // json格式的字符串,扩展属性,预留 + ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` + // 任务执行失败,会返回一条失败信息。如果是导入任务,会返回每条导入失败的政策说明,最多只返回200条失败信息。 + Errors []ErrorFareRow `json:"errors,omitempty" xml:"errors>error_fare_row,omitempty"` + // 任务状态,1 处理中,2 处理失败,3 处理完毕 + Status int64 `json:"status,omitempty" xml:"status,omitempty"` +} diff --git a/model/itpolicy/TaobaoAlitripItFareQuerytaskResponse.go b/model/itpolicy/TaobaoAlitripItFareQuerytaskResponse.go deleted file mode 100644 index 90eb20af5f..0000000000 --- a/model/itpolicy/TaobaoAlitripItFareQuerytaskResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package itpolicy - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【国际机票自有政策】批量操作结果查询 API返回值 -taobao.alitrip.it.fare.querytask - -批量操作同步返回任务id,后台生成异步任务,通过此接口查询批量操作的执行结果 -*/ -type TaobaoAlitripItFareQuerytaskAPIResponse struct { - model.CommonResponse - TaobaoAlitripItFareQuerytaskResponse -} - -// 【国际机票自有政策】批量操作结果查询 成功返回结果 -type TaobaoAlitripItFareQuerytaskResponse struct { - XMLName xml.Name `xml:"alitrip_it_fare_querytask_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 完成时间 - GmtFinished string `json:"gmt_finished,omitempty" xml:"gmt_finished,omitempty"` - // 成功处理条数 - ProcessAmount int64 `json:"process_amount,omitempty" xml:"process_amount,omitempty"` - // json格式的字符串,扩展属性,预留 - ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` - // 任务执行失败,会返回一条失败信息。如果是导入任务,会返回每条导入失败的政策说明,最多只返回200条失败信息。 - Errors []ErrorFareRow `json:"errors,omitempty" xml:"errors>error_fare_row,omitempty"` - // 任务状态,1 处理中,2 处理失败,3 处理完毕 - Status int64 `json:"status,omitempty" xml:"status,omitempty"` -} diff --git a/model/itpolicy/TaobaoAlitripItFareUpdateAPIRequest.go b/model/itpolicy/TaobaoAlitripItFareUpdateAPIRequest.go new file mode 100644 index 0000000000..3f9de1a17c --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItFareUpdateAPIRequest.go @@ -0,0 +1,108 @@ +package itpolicy + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票自有政策】单条修改 API请求 +taobao.alitrip.it.fare.update + +自有政策修改接口,可以根据fareId或outId修改,outId不唯一时,不能用outId修改。当外部政策id、出发城市、到达城市、出票航司任一有变化,或往返时是否允许混舱、文件编号、可混文件编号任一有变化,将删除老数据,产生一条新政策。 +*/ +type TaobaoAlitripItFareUpdateAPIRequest struct { + model.Params + // json格式的字符串,扩展属性,预留 + _extendAttributes string + // 运价id,单条新增成功时返回运价id,fareId和outId必填一个,fareId优先 + _fareId int64 + // 自有政策json序列化字符串,具体属性视fareType的类型,和addow或addrt接口的请求参数一致,如:{"ticketingAirline":"CA","saleAirline":"CA","addressOption":"城市","tripType":"直达","originLand":"SHA,BJS","destination":"HKG,SHA","cabin":"N","restrictFlightNo":"","excludeFlightNo":"","validDate4Dep":"2015-05-30~2015-11-30","flightDateRestrict4Dep":"12","saleDate":"2015-05-30~2015-11-30","adultPassengerIdentity":"普通","ticketPrice":2000,"childPrice":"1980","returnPoint":1.0,"adjustMoney":0,"refundRule":"收取80000元退票费","reissueRule":"收取20%改期费","noshowRule":"起飞前不得退票,不得改期","luggageRule":"逾重行李费用为每公斤100元"} + _fareJson string + // 运价类型,1单程 2往返 + _fareType int64 + // 外部id,为新增时请求参数中的外部政策id + _outId string +} + +// 初始化TaobaoAlitripItFareUpdateAPIRequest对象 +func NewTaobaoAlitripItFareUpdateRequest() *TaobaoAlitripItFareUpdateAPIRequest{ + return &TaobaoAlitripItFareUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripItFareUpdateAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.it.fare.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripItFareUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExtendAttributes Setter +// json格式的字符串,扩展属性,预留 +func (r *TaobaoAlitripItFareUpdateAPIRequest) SetExtendAttributes(_extendAttributes string) error { + r._extendAttributes = _extendAttributes + r.Set("extendAttributes", _extendAttributes) + return nil +} + +// ExtendAttributes Getter +func (r TaobaoAlitripItFareUpdateAPIRequest) GetExtendAttributes() string { + return r._extendAttributes +} +// FareId Setter +// 运价id,单条新增成功时返回运价id,fareId和outId必填一个,fareId优先 +func (r *TaobaoAlitripItFareUpdateAPIRequest) SetFareId(_fareId int64) error { + r._fareId = _fareId + r.Set("fareId", _fareId) + return nil +} + +// FareId Getter +func (r TaobaoAlitripItFareUpdateAPIRequest) GetFareId() int64 { + return r._fareId +} +// FareJson Setter +// 自有政策json序列化字符串,具体属性视fareType的类型,和addow或addrt接口的请求参数一致,如:{"ticketingAirline":"CA","saleAirline":"CA","addressOption":"城市","tripType":"直达","originLand":"SHA,BJS","destination":"HKG,SHA","cabin":"N","restrictFlightNo":"","excludeFlightNo":"","validDate4Dep":"2015-05-30~2015-11-30","flightDateRestrict4Dep":"12","saleDate":"2015-05-30~2015-11-30","adultPassengerIdentity":"普通","ticketPrice":2000,"childPrice":"1980","returnPoint":1.0,"adjustMoney":0,"refundRule":"收取80000元退票费","reissueRule":"收取20%改期费","noshowRule":"起飞前不得退票,不得改期","luggageRule":"逾重行李费用为每公斤100元"} +func (r *TaobaoAlitripItFareUpdateAPIRequest) SetFareJson(_fareJson string) error { + r._fareJson = _fareJson + r.Set("fareJson", _fareJson) + return nil +} + +// FareJson Getter +func (r TaobaoAlitripItFareUpdateAPIRequest) GetFareJson() string { + return r._fareJson +} +// FareType Setter +// 运价类型,1单程 2往返 +func (r *TaobaoAlitripItFareUpdateAPIRequest) SetFareType(_fareType int64) error { + r._fareType = _fareType + r.Set("fareType", _fareType) + return nil +} + +// FareType Getter +func (r TaobaoAlitripItFareUpdateAPIRequest) GetFareType() int64 { + return r._fareType +} +// OutId Setter +// 外部id,为新增时请求参数中的外部政策id +func (r *TaobaoAlitripItFareUpdateAPIRequest) SetOutId(_outId string) error { + r._outId = _outId + r.Set("outId", _outId) + return nil +} + +// OutId Getter +func (r TaobaoAlitripItFareUpdateAPIRequest) GetOutId() string { + return r._outId +} diff --git a/model/itpolicy/TaobaoAlitripItFareUpdateAPIResponse.go b/model/itpolicy/TaobaoAlitripItFareUpdateAPIResponse.go new file mode 100644 index 0000000000..9d78a83704 --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItFareUpdateAPIResponse.go @@ -0,0 +1,29 @@ +package itpolicy + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票自有政策】单条修改 API返回值 +taobao.alitrip.it.fare.update + +自有政策修改接口,可以根据fareId或outId修改,outId不唯一时,不能用outId修改。当外部政策id、出发城市、到达城市、出票航司任一有变化,或往返时是否允许混舱、文件编号、可混文件编号任一有变化,将删除老数据,产生一条新政策。 +*/ +type TaobaoAlitripItFareUpdateAPIResponse struct { + model.CommonResponse + TaobaoAlitripItFareUpdateAPIResponseModel +} + +// 【国际机票自有政策】单条修改 成功返回结果 +type TaobaoAlitripItFareUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_it_fare_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 运价id,根据更新的内容,此id可能会重新生成 + FareId int64 `json:"fare_id,omitempty" xml:"fare_id,omitempty"` + // json格式的字符串,扩展属性,预留 + ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` +} diff --git a/model/itpolicy/TaobaoAlitripItFareUpdateResponse.go b/model/itpolicy/TaobaoAlitripItFareUpdateResponse.go deleted file mode 100644 index c253027a16..0000000000 --- a/model/itpolicy/TaobaoAlitripItFareUpdateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package itpolicy - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【国际机票自有政策】单条修改 API返回值 -taobao.alitrip.it.fare.update - -自有政策修改接口,可以根据fareId或outId修改,outId不唯一时,不能用outId修改。当外部政策id、出发城市、到达城市、出票航司任一有变化,或往返时是否允许混舱、文件编号、可混文件编号任一有变化,将删除老数据,产生一条新政策。 -*/ -type TaobaoAlitripItFareUpdateAPIResponse struct { - model.CommonResponse - TaobaoAlitripItFareUpdateResponse -} - -// 【国际机票自有政策】单条修改 成功返回结果 -type TaobaoAlitripItFareUpdateResponse struct { - XMLName xml.Name `xml:"alitrip_it_fare_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 运价id,根据更新的内容,此id可能会重新生成 - FareId int64 `json:"fare_id,omitempty" xml:"fare_id,omitempty"` - // json格式的字符串,扩展属性,预留 - ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` -} diff --git a/model/itpolicy/TaobaoAlitripItPolicyAddAPIRequest.go b/model/itpolicy/TaobaoAlitripItPolicyAddAPIRequest.go new file mode 100644 index 0000000000..e4849948de --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItPolicyAddAPIRequest.go @@ -0,0 +1,66 @@ +package itpolicy + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票销售规则】单条新增 API请求 +taobao.alitrip.it.policy.add + +销售规则新增,成功返回taobaoId +*/ +type TaobaoAlitripItPolicyAddAPIRequest struct { + model.Params + // 扩展字段 + _extendAttributes string + // 国际机票销售规则 + _topPolicyDo *TopPolicyDo +} + +// 初始化TaobaoAlitripItPolicyAddAPIRequest对象 +func NewTaobaoAlitripItPolicyAddRequest() *TaobaoAlitripItPolicyAddAPIRequest{ + return &TaobaoAlitripItPolicyAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripItPolicyAddAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.it.policy.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripItPolicyAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExtendAttributes Setter +// 扩展字段 +func (r *TaobaoAlitripItPolicyAddAPIRequest) SetExtendAttributes(_extendAttributes string) error { + r._extendAttributes = _extendAttributes + r.Set("extend_attributes", _extendAttributes) + return nil +} + +// ExtendAttributes Getter +func (r TaobaoAlitripItPolicyAddAPIRequest) GetExtendAttributes() string { + return r._extendAttributes +} +// TopPolicyDo Setter +// 国际机票销售规则 +func (r *TaobaoAlitripItPolicyAddAPIRequest) SetTopPolicyDo(_topPolicyDo *TopPolicyDo) error { + r._topPolicyDo = _topPolicyDo + r.Set("top_policy_do", _topPolicyDo) + return nil +} + +// TopPolicyDo Getter +func (r TaobaoAlitripItPolicyAddAPIRequest) GetTopPolicyDo() *TopPolicyDo { + return r._topPolicyDo +} diff --git a/model/itpolicy/TaobaoAlitripItPolicyAddAPIResponse.go b/model/itpolicy/TaobaoAlitripItPolicyAddAPIResponse.go new file mode 100644 index 0000000000..51ea01e4d0 --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItPolicyAddAPIResponse.go @@ -0,0 +1,29 @@ +package itpolicy + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票销售规则】单条新增 API返回值 +taobao.alitrip.it.policy.add + +销售规则新增,成功返回taobaoId +*/ +type TaobaoAlitripItPolicyAddAPIResponse struct { + model.CommonResponse + TaobaoAlitripItPolicyAddAPIResponseModel +} + +// 【国际机票销售规则】单条新增 成功返回结果 +type TaobaoAlitripItPolicyAddAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_it_policy_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 淘宝政策id + TaobaoId int64 `json:"taobao_id,omitempty" xml:"taobao_id,omitempty"` + // 扩展字段 + ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` +} diff --git a/model/itpolicy/TaobaoAlitripItPolicyAddResponse.go b/model/itpolicy/TaobaoAlitripItPolicyAddResponse.go deleted file mode 100644 index d325d98284..0000000000 --- a/model/itpolicy/TaobaoAlitripItPolicyAddResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package itpolicy - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【国际机票销售规则】单条新增 API返回值 -taobao.alitrip.it.policy.add - -销售规则新增,成功返回taobaoId -*/ -type TaobaoAlitripItPolicyAddAPIResponse struct { - model.CommonResponse - TaobaoAlitripItPolicyAddResponse -} - -// 【国际机票销售规则】单条新增 成功返回结果 -type TaobaoAlitripItPolicyAddResponse struct { - XMLName xml.Name `xml:"alitrip_it_policy_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 淘宝政策id - TaobaoId int64 `json:"taobao_id,omitempty" xml:"taobao_id,omitempty"` - // 扩展字段 - ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` -} diff --git a/model/itpolicy/TaobaoAlitripItPolicyBatchdeleteAPIRequest.go b/model/itpolicy/TaobaoAlitripItPolicyBatchdeleteAPIRequest.go new file mode 100644 index 0000000000..8f8497b046 --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItPolicyBatchdeleteAPIRequest.go @@ -0,0 +1,122 @@ +package itpolicy + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票销售规则】批量删除 API请求 +taobao.alitrip.it.policy.batchdelete + +批量删除销售规则,单次删除最大5万,大于5万时候提示失败,需要缩小删除条件。此接口同步返回任务id,异步执行操作。每个接入方最多同时只能有10个处理中的任务,超过后直接返回失败。 +*/ +type TaobaoAlitripItPolicyBatchdeleteAPIRequest struct { + model.Params + // 航司二字码,完整匹配 + _airline string + // 到达,,完整匹配 + _arrCity string + // 舱位,,完整匹配 + _cabin string + // 出发,,完整匹配 + _depCity string + // 产品id,,完整匹配 + _policyId string + // 0:未发布 1:已发布 2:已过期。不传的话,默认只能删除未发布和已过期的数据 + _statusList []int64 +} + +// 初始化TaobaoAlitripItPolicyBatchdeleteAPIRequest对象 +func NewTaobaoAlitripItPolicyBatchdeleteRequest() *TaobaoAlitripItPolicyBatchdeleteAPIRequest{ + return &TaobaoAlitripItPolicyBatchdeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripItPolicyBatchdeleteAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.it.policy.batchdelete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripItPolicyBatchdeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Airline Setter +// 航司二字码,完整匹配 +func (r *TaobaoAlitripItPolicyBatchdeleteAPIRequest) SetAirline(_airline string) error { + r._airline = _airline + r.Set("airline", _airline) + return nil +} + +// Airline Getter +func (r TaobaoAlitripItPolicyBatchdeleteAPIRequest) GetAirline() string { + return r._airline +} +// ArrCity Setter +// 到达,,完整匹配 +func (r *TaobaoAlitripItPolicyBatchdeleteAPIRequest) SetArrCity(_arrCity string) error { + r._arrCity = _arrCity + r.Set("arr_city", _arrCity) + return nil +} + +// ArrCity Getter +func (r TaobaoAlitripItPolicyBatchdeleteAPIRequest) GetArrCity() string { + return r._arrCity +} +// Cabin Setter +// 舱位,,完整匹配 +func (r *TaobaoAlitripItPolicyBatchdeleteAPIRequest) SetCabin(_cabin string) error { + r._cabin = _cabin + r.Set("cabin", _cabin) + return nil +} + +// Cabin Getter +func (r TaobaoAlitripItPolicyBatchdeleteAPIRequest) GetCabin() string { + return r._cabin +} +// DepCity Setter +// 出发,,完整匹配 +func (r *TaobaoAlitripItPolicyBatchdeleteAPIRequest) SetDepCity(_depCity string) error { + r._depCity = _depCity + r.Set("dep_city", _depCity) + return nil +} + +// DepCity Getter +func (r TaobaoAlitripItPolicyBatchdeleteAPIRequest) GetDepCity() string { + return r._depCity +} +// PolicyId Setter +// 产品id,,完整匹配 +func (r *TaobaoAlitripItPolicyBatchdeleteAPIRequest) SetPolicyId(_policyId string) error { + r._policyId = _policyId + r.Set("policy_id", _policyId) + return nil +} + +// PolicyId Getter +func (r TaobaoAlitripItPolicyBatchdeleteAPIRequest) GetPolicyId() string { + return r._policyId +} +// StatusList Setter +// 0:未发布 1:已发布 2:已过期。不传的话,默认只能删除未发布和已过期的数据 +func (r *TaobaoAlitripItPolicyBatchdeleteAPIRequest) SetStatusList(_statusList []int64) error { + r._statusList = _statusList + r.Set("status_list", _statusList) + return nil +} + +// StatusList Getter +func (r TaobaoAlitripItPolicyBatchdeleteAPIRequest) GetStatusList() []int64 { + return r._statusList +} diff --git a/model/itpolicy/TaobaoAlitripItPolicyBatchdeleteAPIResponse.go b/model/itpolicy/TaobaoAlitripItPolicyBatchdeleteAPIResponse.go new file mode 100644 index 0000000000..60bab9f0be --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItPolicyBatchdeleteAPIResponse.go @@ -0,0 +1,29 @@ +package itpolicy + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票销售规则】批量删除 API返回值 +taobao.alitrip.it.policy.batchdelete + +批量删除销售规则,单次删除最大5万,大于5万时候提示失败,需要缩小删除条件。此接口同步返回任务id,异步执行操作。每个接入方最多同时只能有10个处理中的任务,超过后直接返回失败。 +*/ +type TaobaoAlitripItPolicyBatchdeleteAPIResponse struct { + model.CommonResponse + TaobaoAlitripItPolicyBatchdeleteAPIResponseModel +} + +// 【国际机票销售规则】批量删除 成功返回结果 +type TaobaoAlitripItPolicyBatchdeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_it_policy_batchdelete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 任务id + TaskId int64 `json:"task_id,omitempty" xml:"task_id,omitempty"` + // 扩展字段 + ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` +} diff --git a/model/itpolicy/TaobaoAlitripItPolicyBatchdeleteResponse.go b/model/itpolicy/TaobaoAlitripItPolicyBatchdeleteResponse.go deleted file mode 100644 index dce8eb4343..0000000000 --- a/model/itpolicy/TaobaoAlitripItPolicyBatchdeleteResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package itpolicy - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【国际机票销售规则】批量删除 API返回值 -taobao.alitrip.it.policy.batchdelete - -批量删除销售规则,单次删除最大5万,大于5万时候提示失败,需要缩小删除条件。此接口同步返回任务id,异步执行操作。每个接入方最多同时只能有10个处理中的任务,超过后直接返回失败。 -*/ -type TaobaoAlitripItPolicyBatchdeleteAPIResponse struct { - model.CommonResponse - TaobaoAlitripItPolicyBatchdeleteResponse -} - -// 【国际机票销售规则】批量删除 成功返回结果 -type TaobaoAlitripItPolicyBatchdeleteResponse struct { - XMLName xml.Name `xml:"alitrip_it_policy_batchdelete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 任务id - TaskId int64 `json:"task_id,omitempty" xml:"task_id,omitempty"` - // 扩展字段 - ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` -} diff --git a/model/itpolicy/TaobaoAlitripItPolicyDeleteAPIRequest.go b/model/itpolicy/TaobaoAlitripItPolicyDeleteAPIRequest.go new file mode 100644 index 0000000000..14d20d078e --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItPolicyDeleteAPIRequest.go @@ -0,0 +1,80 @@ +package itpolicy + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票销售规则】单条删除 API请求 +taobao.alitrip.it.policy.delete + +销售规则删除接口,可以根据taobaoId或outId删除,根据outId删除时,如果outId不唯一,返回失败 +*/ +type TaobaoAlitripItPolicyDeleteAPIRequest struct { + model.Params + // 扩展字段 + _extendAttributes string + // 接入方产品id + _outId string + // 淘宝政策id + _taobaoId int64 +} + +// 初始化TaobaoAlitripItPolicyDeleteAPIRequest对象 +func NewTaobaoAlitripItPolicyDeleteRequest() *TaobaoAlitripItPolicyDeleteAPIRequest{ + return &TaobaoAlitripItPolicyDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripItPolicyDeleteAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.it.policy.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripItPolicyDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExtendAttributes Setter +// 扩展字段 +func (r *TaobaoAlitripItPolicyDeleteAPIRequest) SetExtendAttributes(_extendAttributes string) error { + r._extendAttributes = _extendAttributes + r.Set("extend_attributes", _extendAttributes) + return nil +} + +// ExtendAttributes Getter +func (r TaobaoAlitripItPolicyDeleteAPIRequest) GetExtendAttributes() string { + return r._extendAttributes +} +// OutId Setter +// 接入方产品id +func (r *TaobaoAlitripItPolicyDeleteAPIRequest) SetOutId(_outId string) error { + r._outId = _outId + r.Set("out_id", _outId) + return nil +} + +// OutId Getter +func (r TaobaoAlitripItPolicyDeleteAPIRequest) GetOutId() string { + return r._outId +} +// TaobaoId Setter +// 淘宝政策id +func (r *TaobaoAlitripItPolicyDeleteAPIRequest) SetTaobaoId(_taobaoId int64) error { + r._taobaoId = _taobaoId + r.Set("taobao_id", _taobaoId) + return nil +} + +// TaobaoId Getter +func (r TaobaoAlitripItPolicyDeleteAPIRequest) GetTaobaoId() int64 { + return r._taobaoId +} diff --git a/model/itpolicy/TaobaoAlitripItPolicyDeleteAPIResponse.go b/model/itpolicy/TaobaoAlitripItPolicyDeleteAPIResponse.go new file mode 100644 index 0000000000..fa29dc1e61 --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItPolicyDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package itpolicy + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票销售规则】单条删除 API返回值 +taobao.alitrip.it.policy.delete + +销售规则删除接口,可以根据taobaoId或outId删除,根据outId删除时,如果outId不唯一,返回失败 +*/ +type TaobaoAlitripItPolicyDeleteAPIResponse struct { + model.CommonResponse + TaobaoAlitripItPolicyDeleteAPIResponseModel +} + +// 【国际机票销售规则】单条删除 成功返回结果 +type TaobaoAlitripItPolicyDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_it_policy_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 扩展字段 + ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` +} diff --git a/model/itpolicy/TaobaoAlitripItPolicyDeleteResponse.go b/model/itpolicy/TaobaoAlitripItPolicyDeleteResponse.go deleted file mode 100644 index d97a4658d3..0000000000 --- a/model/itpolicy/TaobaoAlitripItPolicyDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package itpolicy - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【国际机票销售规则】单条删除 API返回值 -taobao.alitrip.it.policy.delete - -销售规则删除接口,可以根据taobaoId或outId删除,根据outId删除时,如果outId不唯一,返回失败 -*/ -type TaobaoAlitripItPolicyDeleteAPIResponse struct { - model.CommonResponse - TaobaoAlitripItPolicyDeleteResponse -} - -// 【国际机票销售规则】单条删除 成功返回结果 -type TaobaoAlitripItPolicyDeleteResponse struct { - XMLName xml.Name `xml:"alitrip_it_policy_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 扩展字段 - ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` -} diff --git a/model/itpolicy/TaobaoAlitripItPolicyGetAPIRequest.go b/model/itpolicy/TaobaoAlitripItPolicyGetAPIRequest.go new file mode 100644 index 0000000000..796176e001 --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItPolicyGetAPIRequest.go @@ -0,0 +1,80 @@ +package itpolicy + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票销售规则】单条查询 API请求 +taobao.alitrip.it.policy.get + +通过此接口可以查询单条销售规则的详情,可以根据taobaoId或outId查询,用户outId查询时,如果outId不唯一,只返回最新添加的一条数据。taobaoId为新增成功时候返回的唯一id,outId为新增时的policy_id(产品编号) +*/ +type TaobaoAlitripItPolicyGetAPIRequest struct { + model.Params + // 预留扩展字段 + _extendAttributes string + // 接入方产品编号 + _outId string + // 淘宝政策id + _taobaoId int64 +} + +// 初始化TaobaoAlitripItPolicyGetAPIRequest对象 +func NewTaobaoAlitripItPolicyGetRequest() *TaobaoAlitripItPolicyGetAPIRequest{ + return &TaobaoAlitripItPolicyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripItPolicyGetAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.it.policy.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripItPolicyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExtendAttributes Setter +// 预留扩展字段 +func (r *TaobaoAlitripItPolicyGetAPIRequest) SetExtendAttributes(_extendAttributes string) error { + r._extendAttributes = _extendAttributes + r.Set("extend_attributes", _extendAttributes) + return nil +} + +// ExtendAttributes Getter +func (r TaobaoAlitripItPolicyGetAPIRequest) GetExtendAttributes() string { + return r._extendAttributes +} +// OutId Setter +// 接入方产品编号 +func (r *TaobaoAlitripItPolicyGetAPIRequest) SetOutId(_outId string) error { + r._outId = _outId + r.Set("out_id", _outId) + return nil +} + +// OutId Getter +func (r TaobaoAlitripItPolicyGetAPIRequest) GetOutId() string { + return r._outId +} +// TaobaoId Setter +// 淘宝政策id +func (r *TaobaoAlitripItPolicyGetAPIRequest) SetTaobaoId(_taobaoId int64) error { + r._taobaoId = _taobaoId + r.Set("taobao_id", _taobaoId) + return nil +} + +// TaobaoId Getter +func (r TaobaoAlitripItPolicyGetAPIRequest) GetTaobaoId() int64 { + return r._taobaoId +} diff --git a/model/itpolicy/TaobaoAlitripItPolicyGetAPIResponse.go b/model/itpolicy/TaobaoAlitripItPolicyGetAPIResponse.go new file mode 100644 index 0000000000..18421bc9a4 --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItPolicyGetAPIResponse.go @@ -0,0 +1,33 @@ +package itpolicy + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票销售规则】单条查询 API返回值 +taobao.alitrip.it.policy.get + +通过此接口可以查询单条销售规则的详情,可以根据taobaoId或outId查询,用户outId查询时,如果outId不唯一,只返回最新添加的一条数据。taobaoId为新增成功时候返回的唯一id,outId为新增时的policy_id(产品编号) +*/ +type TaobaoAlitripItPolicyGetAPIResponse struct { + model.CommonResponse + TaobaoAlitripItPolicyGetAPIResponseModel +} + +// 【国际机票销售规则】单条查询 成功返回结果 +type TaobaoAlitripItPolicyGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_it_policy_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 淘宝政策id + TaobaoId int64 `json:"taobao_id,omitempty" xml:"taobao_id,omitempty"` + // 政策状态,0-未发布,1-已发布,2-已过期 + Status int64 `json:"status,omitempty" xml:"status,omitempty"` + // 扩展字段 + ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` + // 政策信息 + PolicyDo *TopPolicyDo `json:"policy_do,omitempty" xml:"policy_do,omitempty"` +} diff --git a/model/itpolicy/TaobaoAlitripItPolicyGetResponse.go b/model/itpolicy/TaobaoAlitripItPolicyGetResponse.go deleted file mode 100644 index 2bdb9a6523..0000000000 --- a/model/itpolicy/TaobaoAlitripItPolicyGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package itpolicy - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【国际机票销售规则】单条查询 API返回值 -taobao.alitrip.it.policy.get - -通过此接口可以查询单条销售规则的详情,可以根据taobaoId或outId查询,用户outId查询时,如果outId不唯一,只返回最新添加的一条数据。taobaoId为新增成功时候返回的唯一id,outId为新增时的policy_id(产品编号) -*/ -type TaobaoAlitripItPolicyGetAPIResponse struct { - model.CommonResponse - TaobaoAlitripItPolicyGetResponse -} - -// 【国际机票销售规则】单条查询 成功返回结果 -type TaobaoAlitripItPolicyGetResponse struct { - XMLName xml.Name `xml:"alitrip_it_policy_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 淘宝政策id - TaobaoId int64 `json:"taobao_id,omitempty" xml:"taobao_id,omitempty"` - // 政策状态,0-未发布,1-已发布,2-已过期 - Status int64 `json:"status,omitempty" xml:"status,omitempty"` - // 扩展字段 - ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` - // 政策信息 - PolicyDo *TopPolicyDo `json:"policy_do,omitempty" xml:"policy_do,omitempty"` -} diff --git a/model/itpolicy/TaobaoAlitripItPolicyUpdateAPIRequest.go b/model/itpolicy/TaobaoAlitripItPolicyUpdateAPIRequest.go new file mode 100644 index 0000000000..c919765fe3 --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItPolicyUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package itpolicy + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票销售规则】单条更新 API请求 +taobao.alitrip.it.policy.update + +销售规则更新接口,可以根据taobaoId或outId修改,outId不唯一时,不能用outId修改。 +*/ +type TaobaoAlitripItPolicyUpdateAPIRequest struct { + model.Params + // 扩展字段 + _extendAttributes string + // 接入方产品id + _outId string + // 淘宝政策id + _taobaoId int64 + // 国际机票销售规则 + _topPolicyDo *TopPolicyDo +} + +// 初始化TaobaoAlitripItPolicyUpdateAPIRequest对象 +func NewTaobaoAlitripItPolicyUpdateRequest() *TaobaoAlitripItPolicyUpdateAPIRequest{ + return &TaobaoAlitripItPolicyUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripItPolicyUpdateAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.it.policy.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripItPolicyUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExtendAttributes Setter +// 扩展字段 +func (r *TaobaoAlitripItPolicyUpdateAPIRequest) SetExtendAttributes(_extendAttributes string) error { + r._extendAttributes = _extendAttributes + r.Set("extend_attributes", _extendAttributes) + return nil +} + +// ExtendAttributes Getter +func (r TaobaoAlitripItPolicyUpdateAPIRequest) GetExtendAttributes() string { + return r._extendAttributes +} +// OutId Setter +// 接入方产品id +func (r *TaobaoAlitripItPolicyUpdateAPIRequest) SetOutId(_outId string) error { + r._outId = _outId + r.Set("out_id", _outId) + return nil +} + +// OutId Getter +func (r TaobaoAlitripItPolicyUpdateAPIRequest) GetOutId() string { + return r._outId +} +// TaobaoId Setter +// 淘宝政策id +func (r *TaobaoAlitripItPolicyUpdateAPIRequest) SetTaobaoId(_taobaoId int64) error { + r._taobaoId = _taobaoId + r.Set("taobao_id", _taobaoId) + return nil +} + +// TaobaoId Getter +func (r TaobaoAlitripItPolicyUpdateAPIRequest) GetTaobaoId() int64 { + return r._taobaoId +} +// TopPolicyDo Setter +// 国际机票销售规则 +func (r *TaobaoAlitripItPolicyUpdateAPIRequest) SetTopPolicyDo(_topPolicyDo *TopPolicyDo) error { + r._topPolicyDo = _topPolicyDo + r.Set("top_policy_do", _topPolicyDo) + return nil +} + +// TopPolicyDo Getter +func (r TaobaoAlitripItPolicyUpdateAPIRequest) GetTopPolicyDo() *TopPolicyDo { + return r._topPolicyDo +} diff --git a/model/itpolicy/TaobaoAlitripItPolicyUpdateAPIResponse.go b/model/itpolicy/TaobaoAlitripItPolicyUpdateAPIResponse.go new file mode 100644 index 0000000000..1e1b5e43ba --- /dev/null +++ b/model/itpolicy/TaobaoAlitripItPolicyUpdateAPIResponse.go @@ -0,0 +1,29 @@ +package itpolicy + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【国际机票销售规则】单条更新 API返回值 +taobao.alitrip.it.policy.update + +销售规则更新接口,可以根据taobaoId或outId修改,outId不唯一时,不能用outId修改。 +*/ +type TaobaoAlitripItPolicyUpdateAPIResponse struct { + model.CommonResponse + TaobaoAlitripItPolicyUpdateAPIResponseModel +} + +// 【国际机票销售规则】单条更新 成功返回结果 +type TaobaoAlitripItPolicyUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_it_policy_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 淘宝政策id + TaobaoId int64 `json:"taobao_id,omitempty" xml:"taobao_id,omitempty"` + // 扩展字段 + ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` +} diff --git a/model/itpolicy/TaobaoAlitripItPolicyUpdateResponse.go b/model/itpolicy/TaobaoAlitripItPolicyUpdateResponse.go deleted file mode 100644 index f69713012e..0000000000 --- a/model/itpolicy/TaobaoAlitripItPolicyUpdateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package itpolicy - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【国际机票销售规则】单条更新 API返回值 -taobao.alitrip.it.policy.update - -销售规则更新接口,可以根据taobaoId或outId修改,outId不唯一时,不能用outId修改。 -*/ -type TaobaoAlitripItPolicyUpdateAPIResponse struct { - model.CommonResponse - TaobaoAlitripItPolicyUpdateResponse -} - -// 【国际机票销售规则】单条更新 成功返回结果 -type TaobaoAlitripItPolicyUpdateResponse struct { - XMLName xml.Name `xml:"alitrip_it_policy_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 淘宝政策id - TaobaoId int64 `json:"taobao_id,omitempty" xml:"taobao_id,omitempty"` - // 扩展字段 - ExtendAttributes string `json:"extend_attributes,omitempty" xml:"extend_attributes,omitempty"` -} diff --git a/model/jae/TaobaoAplatformWeakgetAPIRequest.go b/model/jae/TaobaoAplatformWeakgetAPIRequest.go new file mode 100644 index 0000000000..e5afd701a0 --- /dev/null +++ b/model/jae/TaobaoAplatformWeakgetAPIRequest.go @@ -0,0 +1,66 @@ +package jae + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +活动平台弱登录接口 API请求 +taobao.aplatform.weakget + +无线活动平台的开放接口,提供商品信息等的读操作 +*/ +type TaobaoAplatformWeakgetAPIRequest struct { + model.Params + // 客户端自带参数 + _paramRichClientInfo *RichClientInfo + // 业务自定义参数 + _paramDto *ParamDto +} + +// 初始化TaobaoAplatformWeakgetAPIRequest对象 +func NewTaobaoAplatformWeakgetRequest() *TaobaoAplatformWeakgetAPIRequest{ + return &TaobaoAplatformWeakgetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAplatformWeakgetAPIRequest) GetApiMethodName() string { + return "taobao.aplatform.weakget" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAplatformWeakgetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamRichClientInfo Setter +// 客户端自带参数 +func (r *TaobaoAplatformWeakgetAPIRequest) SetParamRichClientInfo(_paramRichClientInfo *RichClientInfo) error { + r._paramRichClientInfo = _paramRichClientInfo + r.Set("param_rich_client_info", _paramRichClientInfo) + return nil +} + +// ParamRichClientInfo Getter +func (r TaobaoAplatformWeakgetAPIRequest) GetParamRichClientInfo() *RichClientInfo { + return r._paramRichClientInfo +} +// ParamDto Setter +// 业务自定义参数 +func (r *TaobaoAplatformWeakgetAPIRequest) SetParamDto(_paramDto *ParamDto) error { + r._paramDto = _paramDto + r.Set("param_dto", _paramDto) + return nil +} + +// ParamDto Getter +func (r TaobaoAplatformWeakgetAPIRequest) GetParamDto() *ParamDto { + return r._paramDto +} diff --git a/model/jae/TaobaoAplatformWeakgetAPIResponse.go b/model/jae/TaobaoAplatformWeakgetAPIResponse.go new file mode 100644 index 0000000000..2eec647ef9 --- /dev/null +++ b/model/jae/TaobaoAplatformWeakgetAPIResponse.go @@ -0,0 +1,27 @@ +package jae + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +活动平台弱登录接口 API返回值 +taobao.aplatform.weakget + +无线活动平台的开放接口,提供商品信息等的读操作 +*/ +type TaobaoAplatformWeakgetAPIResponse struct { + model.CommonResponse + TaobaoAplatformWeakgetAPIResponseModel +} + +// 活动平台弱登录接口 成功返回结果 +type TaobaoAplatformWeakgetAPIResponseModel struct { + XMLName xml.Name `xml:"aplatform_weakget_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoAplatformWeakgetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/jae/TaobaoAplatformWeakgetResponse.go b/model/jae/TaobaoAplatformWeakgetResponse.go deleted file mode 100644 index 1eab71bad4..0000000000 --- a/model/jae/TaobaoAplatformWeakgetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jae - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -活动平台弱登录接口 API返回值 -taobao.aplatform.weakget - -无线活动平台的开放接口,提供商品信息等的读操作 -*/ -type TaobaoAplatformWeakgetAPIResponse struct { - model.CommonResponse - TaobaoAplatformWeakgetResponse -} - -// 活动平台弱登录接口 成功返回结果 -type TaobaoAplatformWeakgetResponse struct { - XMLName xml.Name `xml:"aplatform_weakget_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoAplatformWeakgetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/jipiao/TaobaoAlitripBuyerGetAPIRequest.go b/model/jipiao/TaobaoAlitripBuyerGetAPIRequest.go new file mode 100644 index 0000000000..39973e05c7 --- /dev/null +++ b/model/jipiao/TaobaoAlitripBuyerGetAPIRequest.go @@ -0,0 +1,52 @@ +package jipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +敏感信息查询 API请求 +taobao.alitrip.buyer.get + +针对商家提供统一的TOP接口,可以根据订单获取订单对应买家联系电话(阿里小号)。 +*/ +type TaobaoAlitripBuyerGetAPIRequest struct { + model.Params + // 敏感信息查询请求参数 + _requestAxb *RequestAxbDo +} + +// 初始化TaobaoAlitripBuyerGetAPIRequest对象 +func NewTaobaoAlitripBuyerGetRequest() *TaobaoAlitripBuyerGetAPIRequest{ + return &TaobaoAlitripBuyerGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripBuyerGetAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.buyer.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripBuyerGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestAxb Setter +// 敏感信息查询请求参数 +func (r *TaobaoAlitripBuyerGetAPIRequest) SetRequestAxb(_requestAxb *RequestAxbDo) error { + r._requestAxb = _requestAxb + r.Set("request_axb", _requestAxb) + return nil +} + +// RequestAxb Getter +func (r TaobaoAlitripBuyerGetAPIRequest) GetRequestAxb() *RequestAxbDo { + return r._requestAxb +} diff --git a/model/jipiao/TaobaoAlitripBuyerGetAPIResponse.go b/model/jipiao/TaobaoAlitripBuyerGetAPIResponse.go new file mode 100644 index 0000000000..2fef02793b --- /dev/null +++ b/model/jipiao/TaobaoAlitripBuyerGetAPIResponse.go @@ -0,0 +1,29 @@ +package jipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +敏感信息查询 API返回值 +taobao.alitrip.buyer.get + +针对商家提供统一的TOP接口,可以根据订单获取订单对应买家联系电话(阿里小号)。 +*/ +type TaobaoAlitripBuyerGetAPIResponse struct { + model.CommonResponse + TaobaoAlitripBuyerGetAPIResponseModel +} + +// 敏感信息查询 成功返回结果 +type TaobaoAlitripBuyerGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_buyer_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求内容,如阿里小号 + Content string `json:"content,omitempty" xml:"content,omitempty"` + // 有效期 + Expires string `json:"expires,omitempty" xml:"expires,omitempty"` +} diff --git a/model/jipiao/TaobaoAlitripBuyerGetResponse.go b/model/jipiao/TaobaoAlitripBuyerGetResponse.go deleted file mode 100644 index a1b9a8a29e..0000000000 --- a/model/jipiao/TaobaoAlitripBuyerGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package jipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -敏感信息查询 API返回值 -taobao.alitrip.buyer.get - -针对商家提供统一的TOP接口,可以根据订单获取订单对应买家联系电话(阿里小号)。 -*/ -type TaobaoAlitripBuyerGetAPIResponse struct { - model.CommonResponse - TaobaoAlitripBuyerGetResponse -} - -// 敏感信息查询 成功返回结果 -type TaobaoAlitripBuyerGetResponse struct { - XMLName xml.Name `xml:"alitrip_buyer_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求内容,如阿里小号 - Content string `json:"content,omitempty" xml:"content,omitempty"` - // 有效期 - Expires string `json:"expires,omitempty" xml:"expires,omitempty"` -} diff --git a/model/jipiao/TaobaoAlitripSellerModifyListAPIRequest.go b/model/jipiao/TaobaoAlitripSellerModifyListAPIRequest.go new file mode 100644 index 0000000000..b66eaf3609 --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerModifyListAPIRequest.go @@ -0,0 +1,192 @@ +package jipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商订单】改签订单列表 API请求 +taobao.alitrip.seller.modify.list + +提供机票代理商查询改签订单列表 +*/ +type TaobaoAlitripSellerModifyListAPIRequest struct { + model.Params + // 申请单ID + _applyId int64 + // 淘宝订单号 + _orderId int64 + // 改签发起时间的查询结束日期 和 更新时间必选其一 + _applyDateEnd string + // 改签发起时间的查询开始日期 和 更新时间必选其一 + _applyDateStart string + // 页码 + _currentPage int64 + // 乘客起飞时间的查询结束日期 + _flyDateEnd string + // 乘客起飞时间的查询开始日期 + _flyDateStart string + // 每页记录数 + _pageSize int64 + // 1:初始状态,2:已改签成功,3:已拒绝,4:未付款(已回填退票费),5:已付款 + _status int64 + // 记录修改结束时间 和 改签发起时间必选其一 + _modifyDateEnd string + // 记录修改起始时间 和 改签发起时间必选其一 + _modifyDateStart string +} + +// 初始化TaobaoAlitripSellerModifyListAPIRequest对象 +func NewTaobaoAlitripSellerModifyListRequest() *TaobaoAlitripSellerModifyListAPIRequest{ + return &TaobaoAlitripSellerModifyListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripSellerModifyListAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.seller.modify.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripSellerModifyListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApplyId Setter +// 申请单ID +func (r *TaobaoAlitripSellerModifyListAPIRequest) SetApplyId(_applyId int64) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r TaobaoAlitripSellerModifyListAPIRequest) GetApplyId() int64 { + return r._applyId +} +// OrderId Setter +// 淘宝订单号 +func (r *TaobaoAlitripSellerModifyListAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoAlitripSellerModifyListAPIRequest) GetOrderId() int64 { + return r._orderId +} +// ApplyDateEnd Setter +// 改签发起时间的查询结束日期 和 更新时间必选其一 +func (r *TaobaoAlitripSellerModifyListAPIRequest) SetApplyDateEnd(_applyDateEnd string) error { + r._applyDateEnd = _applyDateEnd + r.Set("apply_date_end", _applyDateEnd) + return nil +} + +// ApplyDateEnd Getter +func (r TaobaoAlitripSellerModifyListAPIRequest) GetApplyDateEnd() string { + return r._applyDateEnd +} +// ApplyDateStart Setter +// 改签发起时间的查询开始日期 和 更新时间必选其一 +func (r *TaobaoAlitripSellerModifyListAPIRequest) SetApplyDateStart(_applyDateStart string) error { + r._applyDateStart = _applyDateStart + r.Set("apply_date_start", _applyDateStart) + return nil +} + +// ApplyDateStart Getter +func (r TaobaoAlitripSellerModifyListAPIRequest) GetApplyDateStart() string { + return r._applyDateStart +} +// CurrentPage Setter +// 页码 +func (r *TaobaoAlitripSellerModifyListAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TaobaoAlitripSellerModifyListAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// FlyDateEnd Setter +// 乘客起飞时间的查询结束日期 +func (r *TaobaoAlitripSellerModifyListAPIRequest) SetFlyDateEnd(_flyDateEnd string) error { + r._flyDateEnd = _flyDateEnd + r.Set("fly_date_end", _flyDateEnd) + return nil +} + +// FlyDateEnd Getter +func (r TaobaoAlitripSellerModifyListAPIRequest) GetFlyDateEnd() string { + return r._flyDateEnd +} +// FlyDateStart Setter +// 乘客起飞时间的查询开始日期 +func (r *TaobaoAlitripSellerModifyListAPIRequest) SetFlyDateStart(_flyDateStart string) error { + r._flyDateStart = _flyDateStart + r.Set("fly_date_start", _flyDateStart) + return nil +} + +// FlyDateStart Getter +func (r TaobaoAlitripSellerModifyListAPIRequest) GetFlyDateStart() string { + return r._flyDateStart +} +// PageSize Setter +// 每页记录数 +func (r *TaobaoAlitripSellerModifyListAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoAlitripSellerModifyListAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Status Setter +// 1:初始状态,2:已改签成功,3:已拒绝,4:未付款(已回填退票费),5:已付款 +func (r *TaobaoAlitripSellerModifyListAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoAlitripSellerModifyListAPIRequest) GetStatus() int64 { + return r._status +} +// ModifyDateEnd Setter +// 记录修改结束时间 和 改签发起时间必选其一 +func (r *TaobaoAlitripSellerModifyListAPIRequest) SetModifyDateEnd(_modifyDateEnd string) error { + r._modifyDateEnd = _modifyDateEnd + r.Set("modify_date_end", _modifyDateEnd) + return nil +} + +// ModifyDateEnd Getter +func (r TaobaoAlitripSellerModifyListAPIRequest) GetModifyDateEnd() string { + return r._modifyDateEnd +} +// ModifyDateStart Setter +// 记录修改起始时间 和 改签发起时间必选其一 +func (r *TaobaoAlitripSellerModifyListAPIRequest) SetModifyDateStart(_modifyDateStart string) error { + r._modifyDateStart = _modifyDateStart + r.Set("modify_date_start", _modifyDateStart) + return nil +} + +// ModifyDateStart Getter +func (r TaobaoAlitripSellerModifyListAPIRequest) GetModifyDateStart() string { + return r._modifyDateStart +} diff --git a/model/jipiao/TaobaoAlitripSellerModifyListAPIResponse.go b/model/jipiao/TaobaoAlitripSellerModifyListAPIResponse.go new file mode 100644 index 0000000000..911036ed61 --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerModifyListAPIResponse.go @@ -0,0 +1,29 @@ +package jipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商订单】改签订单列表 API返回值 +taobao.alitrip.seller.modify.list + +提供机票代理商查询改签订单列表 +*/ +type TaobaoAlitripSellerModifyListAPIResponse struct { + model.CommonResponse + TaobaoAlitripSellerModifyListAPIResponseModel +} + +// 【机票代理商订单】改签订单列表 成功返回结果 +type TaobaoAlitripSellerModifyListAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_seller_modify_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 改签订单列表 + OrderList []SyncOrderDo `json:"order_list,omitempty" xml:"order_list>sync_order_do,omitempty"` + // 查出总记录数 + TotalItem int64 `json:"total_item,omitempty" xml:"total_item,omitempty"` +} diff --git a/model/jipiao/TaobaoAlitripSellerModifyListResponse.go b/model/jipiao/TaobaoAlitripSellerModifyListResponse.go deleted file mode 100644 index 7a4423f42b..0000000000 --- a/model/jipiao/TaobaoAlitripSellerModifyListResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package jipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【机票代理商订单】改签订单列表 API返回值 -taobao.alitrip.seller.modify.list - -提供机票代理商查询改签订单列表 -*/ -type TaobaoAlitripSellerModifyListAPIResponse struct { - model.CommonResponse - TaobaoAlitripSellerModifyListResponse -} - -// 【机票代理商订单】改签订单列表 成功返回结果 -type TaobaoAlitripSellerModifyListResponse struct { - XMLName xml.Name `xml:"alitrip_seller_modify_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 改签订单列表 - OrderList []SyncOrderDo `json:"order_list,omitempty" xml:"order_list>sync_order_do,omitempty"` - // 查出总记录数 - TotalItem int64 `json:"total_item,omitempty" xml:"total_item,omitempty"` -} diff --git a/model/jipiao/TaobaoAlitripSellerOrderConfirmAPIRequest.go b/model/jipiao/TaobaoAlitripSellerOrderConfirmAPIRequest.go new file mode 100644 index 0000000000..6191a81dc4 --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerOrderConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package jipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商确认机票订单接口 API请求 +taobao.alitrip.seller.order.confirm + +此接口用于代理商确认机票订单。 +*/ +type TaobaoAlitripSellerOrderConfirmAPIRequest struct { + model.Params + // 请求参数 + _tripConfirmOrderParam *TripConfirmOrderParam +} + +// 初始化TaobaoAlitripSellerOrderConfirmAPIRequest对象 +func NewTaobaoAlitripSellerOrderConfirmRequest() *TaobaoAlitripSellerOrderConfirmAPIRequest{ + return &TaobaoAlitripSellerOrderConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripSellerOrderConfirmAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.seller.order.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripSellerOrderConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TripConfirmOrderParam Setter +// 请求参数 +func (r *TaobaoAlitripSellerOrderConfirmAPIRequest) SetTripConfirmOrderParam(_tripConfirmOrderParam *TripConfirmOrderParam) error { + r._tripConfirmOrderParam = _tripConfirmOrderParam + r.Set("trip_confirm_order_param", _tripConfirmOrderParam) + return nil +} + +// TripConfirmOrderParam Getter +func (r TaobaoAlitripSellerOrderConfirmAPIRequest) GetTripConfirmOrderParam() *TripConfirmOrderParam { + return r._tripConfirmOrderParam +} diff --git a/model/jipiao/TaobaoAlitripSellerOrderConfirmAPIResponse.go b/model/jipiao/TaobaoAlitripSellerOrderConfirmAPIResponse.go new file mode 100644 index 0000000000..a77b5d9965 --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerOrderConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package jipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商确认机票订单接口 API返回值 +taobao.alitrip.seller.order.confirm + +此接口用于代理商确认机票订单。 +*/ +type TaobaoAlitripSellerOrderConfirmAPIResponse struct { + model.CommonResponse + TaobaoAlitripSellerOrderConfirmAPIResponseModel +} + +// 代理商确认机票订单接口 成功返回结果 +type TaobaoAlitripSellerOrderConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_seller_order_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *TripOrderConfirmResultVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/jipiao/TaobaoAlitripSellerOrderConfirmResponse.go b/model/jipiao/TaobaoAlitripSellerOrderConfirmResponse.go deleted file mode 100644 index 835bba1a71..0000000000 --- a/model/jipiao/TaobaoAlitripSellerOrderConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -代理商确认机票订单接口 API返回值 -taobao.alitrip.seller.order.confirm - -此接口用于代理商确认机票订单。 -*/ -type TaobaoAlitripSellerOrderConfirmAPIResponse struct { - model.CommonResponse - TaobaoAlitripSellerOrderConfirmResponse -} - -// 代理商确认机票订单接口 成功返回结果 -type TaobaoAlitripSellerOrderConfirmResponse struct { - XMLName xml.Name `xml:"alitrip_seller_order_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *TripOrderConfirmResultVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/jipiao/TaobaoAlitripSellerRefundConfirmreturnAPIRequest.go b/model/jipiao/TaobaoAlitripSellerRefundConfirmreturnAPIRequest.go new file mode 100644 index 0000000000..2278c20fc8 --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerRefundConfirmreturnAPIRequest.go @@ -0,0 +1,52 @@ +package jipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商】确认退票 API请求 +taobao.alitrip.seller.refund.confirmreturn + +确认退票 +*/ +type TaobaoAlitripSellerRefundConfirmreturnAPIRequest struct { + model.Params + // 退票申请单 + _applyId int64 +} + +// 初始化TaobaoAlitripSellerRefundConfirmreturnAPIRequest对象 +func NewTaobaoAlitripSellerRefundConfirmreturnRequest() *TaobaoAlitripSellerRefundConfirmreturnAPIRequest{ + return &TaobaoAlitripSellerRefundConfirmreturnAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripSellerRefundConfirmreturnAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.seller.refund.confirmreturn" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripSellerRefundConfirmreturnAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApplyId Setter +// 退票申请单 +func (r *TaobaoAlitripSellerRefundConfirmreturnAPIRequest) SetApplyId(_applyId int64) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r TaobaoAlitripSellerRefundConfirmreturnAPIRequest) GetApplyId() int64 { + return r._applyId +} diff --git a/model/jipiao/TaobaoAlitripSellerRefundConfirmreturnAPIResponse.go b/model/jipiao/TaobaoAlitripSellerRefundConfirmreturnAPIResponse.go new file mode 100644 index 0000000000..55b8be287a --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerRefundConfirmreturnAPIResponse.go @@ -0,0 +1,27 @@ +package jipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商】确认退票 API返回值 +taobao.alitrip.seller.refund.confirmreturn + +确认退票 +*/ +type TaobaoAlitripSellerRefundConfirmreturnAPIResponse struct { + model.CommonResponse + TaobaoAlitripSellerRefundConfirmreturnAPIResponseModel +} + +// 【机票代理商】确认退票 成功返回结果 +type TaobaoAlitripSellerRefundConfirmreturnAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_seller_refund_confirmreturn_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/jipiao/TaobaoAlitripSellerRefundConfirmreturnResponse.go b/model/jipiao/TaobaoAlitripSellerRefundConfirmreturnResponse.go deleted file mode 100644 index df037da9d6..0000000000 --- a/model/jipiao/TaobaoAlitripSellerRefundConfirmreturnResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【机票代理商】确认退票 API返回值 -taobao.alitrip.seller.refund.confirmreturn - -确认退票 -*/ -type TaobaoAlitripSellerRefundConfirmreturnAPIResponse struct { - model.CommonResponse - TaobaoAlitripSellerRefundConfirmreturnResponse -} - -// 【机票代理商】确认退票 成功返回结果 -type TaobaoAlitripSellerRefundConfirmreturnResponse struct { - XMLName xml.Name `xml:"alitrip_seller_refund_confirmreturn_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/jipiao/TaobaoAlitripSellerRefundFillfeeAPIRequest.go b/model/jipiao/TaobaoAlitripSellerRefundFillfeeAPIRequest.go new file mode 100644 index 0000000000..e789f7cb7e --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerRefundFillfeeAPIRequest.go @@ -0,0 +1,108 @@ +package jipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +机票代理商】回填手续费 API请求 +taobao.alitrip.seller.refund.fillfee + +回填手续费 +*/ +type TaobaoAlitripSellerRefundFillfeeAPIRequest struct { + model.Params + // 申请单ID + _applyId int64 + // 费对于关系,格式:{apply_fee_id:123,value:费用,金额单位分} + _feePriceMap string + // 改签费用,格式:{detail_id:123,value:费用,金额单位分} + _modifyFee string + // 票价信息,格式:{apply_fee_id:123,value:费用,金额单位分} + _ticketPriceMap string + // 升舱费用,格式:{detail_id:123,value:费用,金额单位分} + _upgradeFee string +} + +// 初始化TaobaoAlitripSellerRefundFillfeeAPIRequest对象 +func NewTaobaoAlitripSellerRefundFillfeeRequest() *TaobaoAlitripSellerRefundFillfeeAPIRequest{ + return &TaobaoAlitripSellerRefundFillfeeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripSellerRefundFillfeeAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.seller.refund.fillfee" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripSellerRefundFillfeeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApplyId Setter +// 申请单ID +func (r *TaobaoAlitripSellerRefundFillfeeAPIRequest) SetApplyId(_applyId int64) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r TaobaoAlitripSellerRefundFillfeeAPIRequest) GetApplyId() int64 { + return r._applyId +} +// FeePriceMap Setter +// 费对于关系,格式:{apply_fee_id:123,value:费用,金额单位分} +func (r *TaobaoAlitripSellerRefundFillfeeAPIRequest) SetFeePriceMap(_feePriceMap string) error { + r._feePriceMap = _feePriceMap + r.Set("fee_price_map", _feePriceMap) + return nil +} + +// FeePriceMap Getter +func (r TaobaoAlitripSellerRefundFillfeeAPIRequest) GetFeePriceMap() string { + return r._feePriceMap +} +// ModifyFee Setter +// 改签费用,格式:{detail_id:123,value:费用,金额单位分} +func (r *TaobaoAlitripSellerRefundFillfeeAPIRequest) SetModifyFee(_modifyFee string) error { + r._modifyFee = _modifyFee + r.Set("modify_fee", _modifyFee) + return nil +} + +// ModifyFee Getter +func (r TaobaoAlitripSellerRefundFillfeeAPIRequest) GetModifyFee() string { + return r._modifyFee +} +// TicketPriceMap Setter +// 票价信息,格式:{apply_fee_id:123,value:费用,金额单位分} +func (r *TaobaoAlitripSellerRefundFillfeeAPIRequest) SetTicketPriceMap(_ticketPriceMap string) error { + r._ticketPriceMap = _ticketPriceMap + r.Set("ticket_price_map", _ticketPriceMap) + return nil +} + +// TicketPriceMap Getter +func (r TaobaoAlitripSellerRefundFillfeeAPIRequest) GetTicketPriceMap() string { + return r._ticketPriceMap +} +// UpgradeFee Setter +// 升舱费用,格式:{detail_id:123,value:费用,金额单位分} +func (r *TaobaoAlitripSellerRefundFillfeeAPIRequest) SetUpgradeFee(_upgradeFee string) error { + r._upgradeFee = _upgradeFee + r.Set("upgrade_fee", _upgradeFee) + return nil +} + +// UpgradeFee Getter +func (r TaobaoAlitripSellerRefundFillfeeAPIRequest) GetUpgradeFee() string { + return r._upgradeFee +} diff --git a/model/jipiao/TaobaoAlitripSellerRefundFillfeeAPIResponse.go b/model/jipiao/TaobaoAlitripSellerRefundFillfeeAPIResponse.go new file mode 100644 index 0000000000..57c696f6a6 --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerRefundFillfeeAPIResponse.go @@ -0,0 +1,27 @@ +package jipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +机票代理商】回填手续费 API返回值 +taobao.alitrip.seller.refund.fillfee + +回填手续费 +*/ +type TaobaoAlitripSellerRefundFillfeeAPIResponse struct { + model.CommonResponse + TaobaoAlitripSellerRefundFillfeeAPIResponseModel +} + +// 机票代理商】回填手续费 成功返回结果 +type TaobaoAlitripSellerRefundFillfeeAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_seller_refund_fillfee_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/jipiao/TaobaoAlitripSellerRefundFillfeeResponse.go b/model/jipiao/TaobaoAlitripSellerRefundFillfeeResponse.go deleted file mode 100644 index 1cf48709ee..0000000000 --- a/model/jipiao/TaobaoAlitripSellerRefundFillfeeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -机票代理商】回填手续费 API返回值 -taobao.alitrip.seller.refund.fillfee - -回填手续费 -*/ -type TaobaoAlitripSellerRefundFillfeeAPIResponse struct { - model.CommonResponse - TaobaoAlitripSellerRefundFillfeeResponse -} - -// 机票代理商】回填手续费 成功返回结果 -type TaobaoAlitripSellerRefundFillfeeResponse struct { - XMLName xml.Name `xml:"alitrip_seller_refund_fillfee_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/jipiao/TaobaoAlitripSellerRefundGetAPIRequest.go b/model/jipiao/TaobaoAlitripSellerRefundGetAPIRequest.go new file mode 100644 index 0000000000..252c1e8eb5 --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerRefundGetAPIRequest.go @@ -0,0 +1,52 @@ +package jipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商】退票申请单详情 API请求 +taobao.alitrip.seller.refund.get + +查询退票申请单详情 +*/ +type TaobaoAlitripSellerRefundGetAPIRequest struct { + model.Params + // 申请单ID + _applyId int64 +} + +// 初始化TaobaoAlitripSellerRefundGetAPIRequest对象 +func NewTaobaoAlitripSellerRefundGetRequest() *TaobaoAlitripSellerRefundGetAPIRequest{ + return &TaobaoAlitripSellerRefundGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripSellerRefundGetAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.seller.refund.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripSellerRefundGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApplyId Setter +// 申请单ID +func (r *TaobaoAlitripSellerRefundGetAPIRequest) SetApplyId(_applyId int64) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r TaobaoAlitripSellerRefundGetAPIRequest) GetApplyId() int64 { + return r._applyId +} diff --git a/model/jipiao/TaobaoAlitripSellerRefundGetAPIResponse.go b/model/jipiao/TaobaoAlitripSellerRefundGetAPIResponse.go new file mode 100644 index 0000000000..f5f5db6f74 --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerRefundGetAPIResponse.go @@ -0,0 +1,27 @@ +package jipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商】退票申请单详情 API返回值 +taobao.alitrip.seller.refund.get + +查询退票申请单详情 +*/ +type TaobaoAlitripSellerRefundGetAPIResponse struct { + model.CommonResponse + TaobaoAlitripSellerRefundGetAPIResponseModel +} + +// 【机票代理商】退票申请单详情 成功返回结果 +type TaobaoAlitripSellerRefundGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_seller_refund_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoAlitripSellerRefundGetResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/jipiao/TaobaoAlitripSellerRefundGetResponse.go b/model/jipiao/TaobaoAlitripSellerRefundGetResponse.go deleted file mode 100644 index 2084cc75b8..0000000000 --- a/model/jipiao/TaobaoAlitripSellerRefundGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【机票代理商】退票申请单详情 API返回值 -taobao.alitrip.seller.refund.get - -查询退票申请单详情 -*/ -type TaobaoAlitripSellerRefundGetAPIResponse struct { - model.CommonResponse - TaobaoAlitripSellerRefundGetResponse -} - -// 【机票代理商】退票申请单详情 成功返回结果 -type TaobaoAlitripSellerRefundGetResponse struct { - XMLName xml.Name `xml:"alitrip_seller_refund_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoAlitripSellerRefundGetResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/jipiao/TaobaoAlitripSellerRefundGetResultDo.go b/model/jipiao/TaobaoAlitripSellerRefundGetResultDo.go new file mode 100644 index 0000000000..bfae39f223 --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerRefundGetResultDo.go @@ -0,0 +1,13 @@ +package jipiao + +// TaobaoAlitripSellerRefundGetResultDo +type TaobaoAlitripSellerRefundGetResultDo struct { + // 系统自动生成 + ErrorCode string `json:"errorCode,omitempty" xml:"errorCode,omitempty"` + // 系统自动生成 + ErrorMsg string `json:"errorMsg,omitempty" xml:"errorMsg,omitempty"` + // 申请单详情 + Results *ReturnTicketDetail `json:"results,omitempty" xml:"results,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/jipiao/TaobaoAlitripSellerRefundRefusereturnAPIRequest.go b/model/jipiao/TaobaoAlitripSellerRefundRefusereturnAPIRequest.go new file mode 100644 index 0000000000..b6e9bfee09 --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerRefundRefusereturnAPIRequest.go @@ -0,0 +1,66 @@ +package jipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商】拒绝退票 API请求 +taobao.alitrip.seller.refund.refusereturn + +拒绝退票 +*/ +type TaobaoAlitripSellerRefundRefusereturnAPIRequest struct { + model.Params + // 申请单ID + _applyId int64 + // 拒绝理由 + _reason string +} + +// 初始化TaobaoAlitripSellerRefundRefusereturnAPIRequest对象 +func NewTaobaoAlitripSellerRefundRefusereturnRequest() *TaobaoAlitripSellerRefundRefusereturnAPIRequest{ + return &TaobaoAlitripSellerRefundRefusereturnAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripSellerRefundRefusereturnAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.seller.refund.refusereturn" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripSellerRefundRefusereturnAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApplyId Setter +// 申请单ID +func (r *TaobaoAlitripSellerRefundRefusereturnAPIRequest) SetApplyId(_applyId int64) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r TaobaoAlitripSellerRefundRefusereturnAPIRequest) GetApplyId() int64 { + return r._applyId +} +// Reason Setter +// 拒绝理由 +func (r *TaobaoAlitripSellerRefundRefusereturnAPIRequest) SetReason(_reason string) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r TaobaoAlitripSellerRefundRefusereturnAPIRequest) GetReason() string { + return r._reason +} diff --git a/model/jipiao/TaobaoAlitripSellerRefundRefusereturnAPIResponse.go b/model/jipiao/TaobaoAlitripSellerRefundRefusereturnAPIResponse.go new file mode 100644 index 0000000000..3013f98997 --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerRefundRefusereturnAPIResponse.go @@ -0,0 +1,27 @@ +package jipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商】拒绝退票 API返回值 +taobao.alitrip.seller.refund.refusereturn + +拒绝退票 +*/ +type TaobaoAlitripSellerRefundRefusereturnAPIResponse struct { + model.CommonResponse + TaobaoAlitripSellerRefundRefusereturnAPIResponseModel +} + +// 【机票代理商】拒绝退票 成功返回结果 +type TaobaoAlitripSellerRefundRefusereturnAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_seller_refund_refusereturn_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoAlitripSellerRefundRefusereturnResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/jipiao/TaobaoAlitripSellerRefundRefusereturnResponse.go b/model/jipiao/TaobaoAlitripSellerRefundRefusereturnResponse.go deleted file mode 100644 index f2ea3d3a95..0000000000 --- a/model/jipiao/TaobaoAlitripSellerRefundRefusereturnResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【机票代理商】拒绝退票 API返回值 -taobao.alitrip.seller.refund.refusereturn - -拒绝退票 -*/ -type TaobaoAlitripSellerRefundRefusereturnAPIResponse struct { - model.CommonResponse - TaobaoAlitripSellerRefundRefusereturnResponse -} - -// 【机票代理商】拒绝退票 成功返回结果 -type TaobaoAlitripSellerRefundRefusereturnResponse struct { - XMLName xml.Name `xml:"alitrip_seller_refund_refusereturn_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoAlitripSellerRefundRefusereturnResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/jipiao/TaobaoAlitripSellerRefundRefusereturnResultDo.go b/model/jipiao/TaobaoAlitripSellerRefundRefusereturnResultDo.go new file mode 100644 index 0000000000..8b70b692c6 --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerRefundRefusereturnResultDo.go @@ -0,0 +1,13 @@ +package jipiao + +// TaobaoAlitripSellerRefundRefusereturnResultDo +type TaobaoAlitripSellerRefundRefusereturnResultDo struct { + // 系统自动生成 + ErrorCode string `json:"errorCode,omitempty" xml:"errorCode,omitempty"` + // 系统自动生成 + ErrorMsg string `json:"errorMsg,omitempty" xml:"errorMsg,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 处理结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/jipiao/TaobaoAlitripSellerRefundSearchAPIRequest.go b/model/jipiao/TaobaoAlitripSellerRefundSearchAPIRequest.go new file mode 100644 index 0000000000..b7ff88b7d8 --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerRefundSearchAPIRequest.go @@ -0,0 +1,80 @@ +package jipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商】退票申请单列表 API请求 +taobao.alitrip.seller.refund.search + +查询退票申请单列表 +*/ +type TaobaoAlitripSellerRefundSearchAPIRequest struct { + model.Params + // 结束时间 + _endTime string + // 开始时间 + _startTime string + // 申请单状态(如果为空查询所有状态,1初始 2接受 3确认 4失败 5买家处理 6卖家处理 7等待小二回填 8退款成功) + _status int64 +} + +// 初始化TaobaoAlitripSellerRefundSearchAPIRequest对象 +func NewTaobaoAlitripSellerRefundSearchRequest() *TaobaoAlitripSellerRefundSearchAPIRequest{ + return &TaobaoAlitripSellerRefundSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripSellerRefundSearchAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.seller.refund.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripSellerRefundSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EndTime Setter +// 结束时间 +func (r *TaobaoAlitripSellerRefundSearchAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoAlitripSellerRefundSearchAPIRequest) GetEndTime() string { + return r._endTime +} +// StartTime Setter +// 开始时间 +func (r *TaobaoAlitripSellerRefundSearchAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoAlitripSellerRefundSearchAPIRequest) GetStartTime() string { + return r._startTime +} +// Status Setter +// 申请单状态(如果为空查询所有状态,1初始 2接受 3确认 4失败 5买家处理 6卖家处理 7等待小二回填 8退款成功) +func (r *TaobaoAlitripSellerRefundSearchAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoAlitripSellerRefundSearchAPIRequest) GetStatus() int64 { + return r._status +} diff --git a/model/jipiao/TaobaoAlitripSellerRefundSearchAPIResponse.go b/model/jipiao/TaobaoAlitripSellerRefundSearchAPIResponse.go new file mode 100644 index 0000000000..6f504fb02f --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerRefundSearchAPIResponse.go @@ -0,0 +1,27 @@ +package jipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商】退票申请单列表 API返回值 +taobao.alitrip.seller.refund.search + +查询退票申请单列表 +*/ +type TaobaoAlitripSellerRefundSearchAPIResponse struct { + model.CommonResponse + TaobaoAlitripSellerRefundSearchAPIResponseModel +} + +// 【机票代理商】退票申请单列表 成功返回结果 +type TaobaoAlitripSellerRefundSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_seller_refund_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoAlitripSellerRefundSearchResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/jipiao/TaobaoAlitripSellerRefundSearchResponse.go b/model/jipiao/TaobaoAlitripSellerRefundSearchResponse.go deleted file mode 100644 index 57ac6e0c19..0000000000 --- a/model/jipiao/TaobaoAlitripSellerRefundSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【机票代理商】退票申请单列表 API返回值 -taobao.alitrip.seller.refund.search - -查询退票申请单列表 -*/ -type TaobaoAlitripSellerRefundSearchAPIResponse struct { - model.CommonResponse - TaobaoAlitripSellerRefundSearchResponse -} - -// 【机票代理商】退票申请单列表 成功返回结果 -type TaobaoAlitripSellerRefundSearchResponse struct { - XMLName xml.Name `xml:"alitrip_seller_refund_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoAlitripSellerRefundSearchResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/jipiao/TaobaoAlitripSellerRefundSearchResultDo.go b/model/jipiao/TaobaoAlitripSellerRefundSearchResultDo.go new file mode 100644 index 0000000000..c55b44c90d --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerRefundSearchResultDo.go @@ -0,0 +1,13 @@ +package jipiao + +// TaobaoAlitripSellerRefundSearchResultDo +type TaobaoAlitripSellerRefundSearchResultDo struct { + // 错误码 + ErrorCode string `json:"errorCode,omitempty" xml:"errorCode,omitempty"` + // 错误信息 + ErrorMsg string `json:"errorMsg,omitempty" xml:"errorMsg,omitempty"` + // ReturnTicketDo + Results []ReturnTicketDo `json:"results,omitempty" xml:"results>return_ticket_do,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/jipiao/TaobaoAlitripSellerRefundmoneyConfirmAPIRequest.go b/model/jipiao/TaobaoAlitripSellerRefundmoneyConfirmAPIRequest.go new file mode 100644 index 0000000000..c9b90e0766 --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerRefundmoneyConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package jipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商订单】确认退款 API请求 +taobao.alitrip.seller.refundmoney.confirm + +代理人确认退票申请单的退款 +*/ +type TaobaoAlitripSellerRefundmoneyConfirmAPIRequest struct { + model.Params + // 申请单id + _applyId int64 +} + +// 初始化TaobaoAlitripSellerRefundmoneyConfirmAPIRequest对象 +func NewTaobaoAlitripSellerRefundmoneyConfirmRequest() *TaobaoAlitripSellerRefundmoneyConfirmAPIRequest{ + return &TaobaoAlitripSellerRefundmoneyConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripSellerRefundmoneyConfirmAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.seller.refundmoney.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripSellerRefundmoneyConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApplyId Setter +// 申请单id +func (r *TaobaoAlitripSellerRefundmoneyConfirmAPIRequest) SetApplyId(_applyId int64) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r TaobaoAlitripSellerRefundmoneyConfirmAPIRequest) GetApplyId() int64 { + return r._applyId +} diff --git a/model/jipiao/TaobaoAlitripSellerRefundmoneyConfirmAPIResponse.go b/model/jipiao/TaobaoAlitripSellerRefundmoneyConfirmAPIResponse.go new file mode 100644 index 0000000000..437f990069 --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerRefundmoneyConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package jipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商订单】确认退款 API返回值 +taobao.alitrip.seller.refundmoney.confirm + +代理人确认退票申请单的退款 +*/ +type TaobaoAlitripSellerRefundmoneyConfirmAPIResponse struct { + model.CommonResponse + TaobaoAlitripSellerRefundmoneyConfirmAPIResponseModel +} + +// 【机票代理商订单】确认退款 成功返回结果 +type TaobaoAlitripSellerRefundmoneyConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_seller_refundmoney_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功确认 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/jipiao/TaobaoAlitripSellerRefundmoneyConfirmResponse.go b/model/jipiao/TaobaoAlitripSellerRefundmoneyConfirmResponse.go deleted file mode 100644 index e968e9c72a..0000000000 --- a/model/jipiao/TaobaoAlitripSellerRefundmoneyConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【机票代理商订单】确认退款 API返回值 -taobao.alitrip.seller.refundmoney.confirm - -代理人确认退票申请单的退款 -*/ -type TaobaoAlitripSellerRefundmoneyConfirmAPIResponse struct { - model.CommonResponse - TaobaoAlitripSellerRefundmoneyConfirmResponse -} - -// 【机票代理商订单】确认退款 成功返回结果 -type TaobaoAlitripSellerRefundmoneyConfirmResponse struct { - XMLName xml.Name `xml:"alitrip_seller_refundmoney_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功确认 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/jipiao/TaobaoAlitripSellerRefundorderlistFetchAPIRequest.go b/model/jipiao/TaobaoAlitripSellerRefundorderlistFetchAPIRequest.go new file mode 100644 index 0000000000..716330b675 --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerRefundorderlistFetchAPIRequest.go @@ -0,0 +1,80 @@ +package jipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商】——退票订单列表提取 API请求 +taobao.alitrip.seller.refundorderlist.fetch + +代理商纬度退票订单列表提取 +*/ +type TaobaoAlitripSellerRefundorderlistFetchAPIRequest struct { + model.Params + // 提取数据的开始时间 + _startDate string + // 1:初始,2:接受,3:确认,4:失败,5:买家处理,6:卖家处理,7:等待小二回填,8:退款成功 + _status int64 + // 提取数据的结束时间 + _endDate string +} + +// 初始化TaobaoAlitripSellerRefundorderlistFetchAPIRequest对象 +func NewTaobaoAlitripSellerRefundorderlistFetchRequest() *TaobaoAlitripSellerRefundorderlistFetchAPIRequest{ + return &TaobaoAlitripSellerRefundorderlistFetchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripSellerRefundorderlistFetchAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.seller.refundorderlist.fetch" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripSellerRefundorderlistFetchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartDate Setter +// 提取数据的开始时间 +func (r *TaobaoAlitripSellerRefundorderlistFetchAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoAlitripSellerRefundorderlistFetchAPIRequest) GetStartDate() string { + return r._startDate +} +// Status Setter +// 1:初始,2:接受,3:确认,4:失败,5:买家处理,6:卖家处理,7:等待小二回填,8:退款成功 +func (r *TaobaoAlitripSellerRefundorderlistFetchAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoAlitripSellerRefundorderlistFetchAPIRequest) GetStatus() int64 { + return r._status +} +// EndDate Setter +// 提取数据的结束时间 +func (r *TaobaoAlitripSellerRefundorderlistFetchAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoAlitripSellerRefundorderlistFetchAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/jipiao/TaobaoAlitripSellerRefundorderlistFetchAPIResponse.go b/model/jipiao/TaobaoAlitripSellerRefundorderlistFetchAPIResponse.go new file mode 100644 index 0000000000..9370eba02c --- /dev/null +++ b/model/jipiao/TaobaoAlitripSellerRefundorderlistFetchAPIResponse.go @@ -0,0 +1,27 @@ +package jipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商】——退票订单列表提取 API返回值 +taobao.alitrip.seller.refundorderlist.fetch + +代理商纬度退票订单列表提取 +*/ +type TaobaoAlitripSellerRefundorderlistFetchAPIResponse struct { + model.CommonResponse + TaobaoAlitripSellerRefundorderlistFetchAPIResponseModel +} + +// 【机票代理商】——退票订单列表提取 成功返回结果 +type TaobaoAlitripSellerRefundorderlistFetchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_seller_refundorderlist_fetch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 退票订单列表 + ResultList []ReturnApplyDo `json:"result_list,omitempty" xml:"result_list>return_apply_do,omitempty"` +} diff --git a/model/jipiao/TaobaoAlitripSellerRefundorderlistFetchResponse.go b/model/jipiao/TaobaoAlitripSellerRefundorderlistFetchResponse.go deleted file mode 100644 index 4866f8dcd9..0000000000 --- a/model/jipiao/TaobaoAlitripSellerRefundorderlistFetchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【机票代理商】——退票订单列表提取 API返回值 -taobao.alitrip.seller.refundorderlist.fetch - -代理商纬度退票订单列表提取 -*/ -type TaobaoAlitripSellerRefundorderlistFetchAPIResponse struct { - model.CommonResponse - TaobaoAlitripSellerRefundorderlistFetchResponse -} - -// 【机票代理商】——退票订单列表提取 成功返回结果 -type TaobaoAlitripSellerRefundorderlistFetchResponse struct { - XMLName xml.Name `xml:"alitrip_seller_refundorderlist_fetch_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 退票订单列表 - ResultList []ReturnApplyDo `json:"result_list,omitempty" xml:"result_list>return_apply_do,omitempty"` -} diff --git a/model/jipiao/TaobaoAlitripSupplierModifyListAPIRequest.go b/model/jipiao/TaobaoAlitripSupplierModifyListAPIRequest.go new file mode 100644 index 0000000000..c41b80aa2f --- /dev/null +++ b/model/jipiao/TaobaoAlitripSupplierModifyListAPIRequest.go @@ -0,0 +1,136 @@ +package jipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商订单】改签通知单列表 API请求 +taobao.alitrip.supplier.modify.list + +提供供应商查询改签通知单列表 +*/ +type TaobaoAlitripSupplierModifyListAPIRequest struct { + model.Params + // 页码 + _currentPage int64 + // 乘客出发时间查询结束日期 + _depEnd string + // 乘客出发时间查询开始日期 + _depStart string + // 申请单创建时间查询结束日期 + _gmtCreateEnd string + // 申请单创建时间查询开始日期 + _gmtCreateStart string + // 每页记录数 + _pageSize int64 + // 1:改签申请列表,2:改签已支付列表,3:改签成功列表 + _status int64 +} + +// 初始化TaobaoAlitripSupplierModifyListAPIRequest对象 +func NewTaobaoAlitripSupplierModifyListRequest() *TaobaoAlitripSupplierModifyListAPIRequest{ + return &TaobaoAlitripSupplierModifyListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripSupplierModifyListAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.supplier.modify.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripSupplierModifyListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CurrentPage Setter +// 页码 +func (r *TaobaoAlitripSupplierModifyListAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TaobaoAlitripSupplierModifyListAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// DepEnd Setter +// 乘客出发时间查询结束日期 +func (r *TaobaoAlitripSupplierModifyListAPIRequest) SetDepEnd(_depEnd string) error { + r._depEnd = _depEnd + r.Set("dep_end", _depEnd) + return nil +} + +// DepEnd Getter +func (r TaobaoAlitripSupplierModifyListAPIRequest) GetDepEnd() string { + return r._depEnd +} +// DepStart Setter +// 乘客出发时间查询开始日期 +func (r *TaobaoAlitripSupplierModifyListAPIRequest) SetDepStart(_depStart string) error { + r._depStart = _depStart + r.Set("dep_start", _depStart) + return nil +} + +// DepStart Getter +func (r TaobaoAlitripSupplierModifyListAPIRequest) GetDepStart() string { + return r._depStart +} +// GmtCreateEnd Setter +// 申请单创建时间查询结束日期 +func (r *TaobaoAlitripSupplierModifyListAPIRequest) SetGmtCreateEnd(_gmtCreateEnd string) error { + r._gmtCreateEnd = _gmtCreateEnd + r.Set("gmt_create_end", _gmtCreateEnd) + return nil +} + +// GmtCreateEnd Getter +func (r TaobaoAlitripSupplierModifyListAPIRequest) GetGmtCreateEnd() string { + return r._gmtCreateEnd +} +// GmtCreateStart Setter +// 申请单创建时间查询开始日期 +func (r *TaobaoAlitripSupplierModifyListAPIRequest) SetGmtCreateStart(_gmtCreateStart string) error { + r._gmtCreateStart = _gmtCreateStart + r.Set("gmt_create_start", _gmtCreateStart) + return nil +} + +// GmtCreateStart Getter +func (r TaobaoAlitripSupplierModifyListAPIRequest) GetGmtCreateStart() string { + return r._gmtCreateStart +} +// PageSize Setter +// 每页记录数 +func (r *TaobaoAlitripSupplierModifyListAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoAlitripSupplierModifyListAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Status Setter +// 1:改签申请列表,2:改签已支付列表,3:改签成功列表 +func (r *TaobaoAlitripSupplierModifyListAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoAlitripSupplierModifyListAPIRequest) GetStatus() int64 { + return r._status +} diff --git a/model/jipiao/TaobaoAlitripSupplierModifyListAPIResponse.go b/model/jipiao/TaobaoAlitripSupplierModifyListAPIResponse.go new file mode 100644 index 0000000000..45fc9437c1 --- /dev/null +++ b/model/jipiao/TaobaoAlitripSupplierModifyListAPIResponse.go @@ -0,0 +1,27 @@ +package jipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商订单】改签通知单列表 API返回值 +taobao.alitrip.supplier.modify.list + +提供供应商查询改签通知单列表 +*/ +type TaobaoAlitripSupplierModifyListAPIResponse struct { + model.CommonResponse + TaobaoAlitripSupplierModifyListAPIResponseModel +} + +// 【机票代理商订单】改签通知单列表 成功返回结果 +type TaobaoAlitripSupplierModifyListAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_supplier_modify_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 改签信息列表 + OrderList []BbSyncOrderDto `json:"order_list,omitempty" xml:"order_list>bb_sync_order_dto,omitempty"` +} diff --git a/model/jipiao/TaobaoAlitripSupplierModifyListResponse.go b/model/jipiao/TaobaoAlitripSupplierModifyListResponse.go deleted file mode 100644 index 4090a39173..0000000000 --- a/model/jipiao/TaobaoAlitripSupplierModifyListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【机票代理商订单】改签通知单列表 API返回值 -taobao.alitrip.supplier.modify.list - -提供供应商查询改签通知单列表 -*/ -type TaobaoAlitripSupplierModifyListAPIResponse struct { - model.CommonResponse - TaobaoAlitripSupplierModifyListResponse -} - -// 【机票代理商订单】改签通知单列表 成功返回结果 -type TaobaoAlitripSupplierModifyListResponse struct { - XMLName xml.Name `xml:"alitrip_supplier_modify_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 改签信息列表 - OrderList []BbSyncOrderDto `json:"order_list,omitempty" xml:"order_list>bb_sync_order_dto,omitempty"` -} diff --git a/model/jipiao/TaobaoJipiaoAgentOrderBdetailAPIRequest.go b/model/jipiao/TaobaoJipiaoAgentOrderBdetailAPIRequest.go new file mode 100644 index 0000000000..6aa79cf737 --- /dev/null +++ b/model/jipiao/TaobaoJipiaoAgentOrderBdetailAPIRequest.go @@ -0,0 +1,52 @@ +package jipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商订单】采购订单详情 API请求 +taobao.jipiao.agent.order.bdetail + +根据淘宝系统订单号获取订单详情信息 +*/ +type TaobaoJipiaoAgentOrderBdetailAPIRequest struct { + model.Params + // 订单号 + _orderId int64 +} + +// 初始化TaobaoJipiaoAgentOrderBdetailAPIRequest对象 +func NewTaobaoJipiaoAgentOrderBdetailRequest() *TaobaoJipiaoAgentOrderBdetailAPIRequest{ + return &TaobaoJipiaoAgentOrderBdetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJipiaoAgentOrderBdetailAPIRequest) GetApiMethodName() string { + return "taobao.jipiao.agent.order.bdetail" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJipiaoAgentOrderBdetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单号 +func (r *TaobaoJipiaoAgentOrderBdetailAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoJipiaoAgentOrderBdetailAPIRequest) GetOrderId() int64 { + return r._orderId +} diff --git a/model/jipiao/TaobaoJipiaoAgentOrderBdetailAPIResponse.go b/model/jipiao/TaobaoJipiaoAgentOrderBdetailAPIResponse.go new file mode 100644 index 0000000000..cc85b0d26f --- /dev/null +++ b/model/jipiao/TaobaoJipiaoAgentOrderBdetailAPIResponse.go @@ -0,0 +1,29 @@ +package jipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商订单】采购订单详情 API返回值 +taobao.jipiao.agent.order.bdetail + +根据淘宝系统订单号获取订单详情信息 +*/ +type TaobaoJipiaoAgentOrderBdetailAPIResponse struct { + model.CommonResponse + TaobaoJipiaoAgentOrderBdetailAPIResponseModel +} + +// 【机票代理商订单】采购订单详情 成功返回结果 +type TaobaoJipiaoAgentOrderBdetailAPIResponseModel struct { + XMLName xml.Name `xml:"jipiao_agent_order_bdetail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回操作成功失败信息 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 机票订单的详情列表,当前支持返回一个订单 + Orders []TripOrder `json:"orders,omitempty" xml:"orders>trip_order,omitempty"` +} diff --git a/model/jipiao/TaobaoJipiaoAgentOrderBdetailResponse.go b/model/jipiao/TaobaoJipiaoAgentOrderBdetailResponse.go deleted file mode 100644 index b51da2bc13..0000000000 --- a/model/jipiao/TaobaoJipiaoAgentOrderBdetailResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package jipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【机票代理商订单】采购订单详情 API返回值 -taobao.jipiao.agent.order.bdetail - -根据淘宝系统订单号获取订单详情信息 -*/ -type TaobaoJipiaoAgentOrderBdetailAPIResponse struct { - model.CommonResponse - TaobaoJipiaoAgentOrderBdetailResponse -} - -// 【机票代理商订单】采购订单详情 成功返回结果 -type TaobaoJipiaoAgentOrderBdetailResponse struct { - XMLName xml.Name `xml:"jipiao_agent_order_bdetail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回操作成功失败信息 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 机票订单的详情列表,当前支持返回一个订单 - Orders []TripOrder `json:"orders,omitempty" xml:"orders>trip_order,omitempty"` -} diff --git a/model/jipiao/TaobaoJipiaoAgentOrderDetailAPIRequest.go b/model/jipiao/TaobaoJipiaoAgentOrderDetailAPIRequest.go new file mode 100644 index 0000000000..6c8a7e8982 --- /dev/null +++ b/model/jipiao/TaobaoJipiaoAgentOrderDetailAPIRequest.go @@ -0,0 +1,52 @@ +package jipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商订单】订单详情 API请求 +taobao.jipiao.agent.order.detail + +根据淘宝系统订单号获取订单详情信息 +*/ +type TaobaoJipiaoAgentOrderDetailAPIRequest struct { + model.Params + // 淘宝订单id列表,当前支持列表长度为1,即当前只支持单个订单详情查询 + _orderIds []int64 +} + +// 初始化TaobaoJipiaoAgentOrderDetailAPIRequest对象 +func NewTaobaoJipiaoAgentOrderDetailRequest() *TaobaoJipiaoAgentOrderDetailAPIRequest{ + return &TaobaoJipiaoAgentOrderDetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJipiaoAgentOrderDetailAPIRequest) GetApiMethodName() string { + return "taobao.jipiao.agent.order.detail" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJipiaoAgentOrderDetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderIds Setter +// 淘宝订单id列表,当前支持列表长度为1,即当前只支持单个订单详情查询 +func (r *TaobaoJipiaoAgentOrderDetailAPIRequest) SetOrderIds(_orderIds []int64) error { + r._orderIds = _orderIds + r.Set("order_ids", _orderIds) + return nil +} + +// OrderIds Getter +func (r TaobaoJipiaoAgentOrderDetailAPIRequest) GetOrderIds() []int64 { + return r._orderIds +} diff --git a/model/jipiao/TaobaoJipiaoAgentOrderDetailAPIResponse.go b/model/jipiao/TaobaoJipiaoAgentOrderDetailAPIResponse.go new file mode 100644 index 0000000000..74843ec955 --- /dev/null +++ b/model/jipiao/TaobaoJipiaoAgentOrderDetailAPIResponse.go @@ -0,0 +1,29 @@ +package jipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商订单】订单详情 API返回值 +taobao.jipiao.agent.order.detail + +根据淘宝系统订单号获取订单详情信息 +*/ +type TaobaoJipiaoAgentOrderDetailAPIResponse struct { + model.CommonResponse + TaobaoJipiaoAgentOrderDetailAPIResponseModel +} + +// 【机票代理商订单】订单详情 成功返回结果 +type TaobaoJipiaoAgentOrderDetailAPIResponseModel struct { + XMLName xml.Name `xml:"jipiao_agent_order_detail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回操作成功失败信息 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 机票订单的详情列表,当前支持返回一个订单 + Orders []TripOrder `json:"orders,omitempty" xml:"orders>trip_order,omitempty"` +} diff --git a/model/jipiao/TaobaoJipiaoAgentOrderDetailResponse.go b/model/jipiao/TaobaoJipiaoAgentOrderDetailResponse.go deleted file mode 100644 index 653ddd45d4..0000000000 --- a/model/jipiao/TaobaoJipiaoAgentOrderDetailResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package jipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【机票代理商订单】订单详情 API返回值 -taobao.jipiao.agent.order.detail - -根据淘宝系统订单号获取订单详情信息 -*/ -type TaobaoJipiaoAgentOrderDetailAPIResponse struct { - model.CommonResponse - TaobaoJipiaoAgentOrderDetailResponse -} - -// 【机票代理商订单】订单详情 成功返回结果 -type TaobaoJipiaoAgentOrderDetailResponse struct { - XMLName xml.Name `xml:"jipiao_agent_order_detail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回操作成功失败信息 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 机票订单的详情列表,当前支持返回一个订单 - Orders []TripOrder `json:"orders,omitempty" xml:"orders>trip_order,omitempty"` -} diff --git a/model/jipiao/TaobaoJipiaoAgentOrderSearchAPIRequest.go b/model/jipiao/TaobaoJipiaoAgentOrderSearchAPIRequest.go new file mode 100644 index 0000000000..38457d1399 --- /dev/null +++ b/model/jipiao/TaobaoJipiaoAgentOrderSearchAPIRequest.go @@ -0,0 +1,136 @@ +package jipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商订单】订单搜索 API请求 +taobao.jipiao.agent.order.search + +卖家根据条件查询淘宝订单id列表 +*/ +type TaobaoJipiaoAgentOrderSearchAPIRequest struct { + model.Params + // 创建订单时间范围的开始时间,注意:当前搜索条件开始结束时间范围不能超过三天,默认开始时间为当前时间往前推三天 (具体天数可能调整) + _beginTime string + // 创建订单时间范围的结束时间,注意:当前搜索条件开始结束时间范围不能超过三天,默认为当前时间 (具体天数可能调整) + _endTime string + // 订单状态,默认为空,查询所有状态的订单
1:待确认
2:待出票
3:强制成功
4:未付款
5:预订成功
6:已失效 + _status int64 + // 航程类型: 0.单程;1.往返 + _tripType int64 + // 是否需要行程单,true表示需要行程单;false表示不许要 + _hasItinerary bool + // 页码,默认第一页;注意:页大小固定,搜索结果中返回页大小pageSize,和是否包含下一页hasNext + _page int64 + // 扩展字段:
needFilterAutobook:默认true。待出票状态下,会根据此值过滤掉自动出票状态下订单,以防止重复出票的问题。对于精选票,此值需要设置成false,并由API使用者保证不会重复出票。 + _extra string +} + +// 初始化TaobaoJipiaoAgentOrderSearchAPIRequest对象 +func NewTaobaoJipiaoAgentOrderSearchRequest() *TaobaoJipiaoAgentOrderSearchAPIRequest{ + return &TaobaoJipiaoAgentOrderSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJipiaoAgentOrderSearchAPIRequest) GetApiMethodName() string { + return "taobao.jipiao.agent.order.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJipiaoAgentOrderSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BeginTime Setter +// 创建订单时间范围的开始时间,注意:当前搜索条件开始结束时间范围不能超过三天,默认开始时间为当前时间往前推三天 (具体天数可能调整) +func (r *TaobaoJipiaoAgentOrderSearchAPIRequest) SetBeginTime(_beginTime string) error { + r._beginTime = _beginTime + r.Set("begin_time", _beginTime) + return nil +} + +// BeginTime Getter +func (r TaobaoJipiaoAgentOrderSearchAPIRequest) GetBeginTime() string { + return r._beginTime +} +// EndTime Setter +// 创建订单时间范围的结束时间,注意:当前搜索条件开始结束时间范围不能超过三天,默认为当前时间 (具体天数可能调整) +func (r *TaobaoJipiaoAgentOrderSearchAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoJipiaoAgentOrderSearchAPIRequest) GetEndTime() string { + return r._endTime +} +// Status Setter +// 订单状态,默认为空,查询所有状态的订单
1:待确认
2:待出票
3:强制成功
4:未付款
5:预订成功
6:已失效 +func (r *TaobaoJipiaoAgentOrderSearchAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoJipiaoAgentOrderSearchAPIRequest) GetStatus() int64 { + return r._status +} +// TripType Setter +// 航程类型: 0.单程;1.往返 +func (r *TaobaoJipiaoAgentOrderSearchAPIRequest) SetTripType(_tripType int64) error { + r._tripType = _tripType + r.Set("trip_type", _tripType) + return nil +} + +// TripType Getter +func (r TaobaoJipiaoAgentOrderSearchAPIRequest) GetTripType() int64 { + return r._tripType +} +// HasItinerary Setter +// 是否需要行程单,true表示需要行程单;false表示不许要 +func (r *TaobaoJipiaoAgentOrderSearchAPIRequest) SetHasItinerary(_hasItinerary bool) error { + r._hasItinerary = _hasItinerary + r.Set("has_itinerary", _hasItinerary) + return nil +} + +// HasItinerary Getter +func (r TaobaoJipiaoAgentOrderSearchAPIRequest) GetHasItinerary() bool { + return r._hasItinerary +} +// Page Setter +// 页码,默认第一页;注意:页大小固定,搜索结果中返回页大小pageSize,和是否包含下一页hasNext +func (r *TaobaoJipiaoAgentOrderSearchAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r TaobaoJipiaoAgentOrderSearchAPIRequest) GetPage() int64 { + return r._page +} +// Extra Setter +// 扩展字段:
needFilterAutobook:默认true。待出票状态下,会根据此值过滤掉自动出票状态下订单,以防止重复出票的问题。对于精选票,此值需要设置成false,并由API使用者保证不会重复出票。 +func (r *TaobaoJipiaoAgentOrderSearchAPIRequest) SetExtra(_extra string) error { + r._extra = _extra + r.Set("extra", _extra) + return nil +} + +// Extra Getter +func (r TaobaoJipiaoAgentOrderSearchAPIRequest) GetExtra() string { + return r._extra +} diff --git a/model/jipiao/TaobaoJipiaoAgentOrderSearchAPIResponse.go b/model/jipiao/TaobaoJipiaoAgentOrderSearchAPIResponse.go new file mode 100644 index 0000000000..52a3300749 --- /dev/null +++ b/model/jipiao/TaobaoJipiaoAgentOrderSearchAPIResponse.go @@ -0,0 +1,31 @@ +package jipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商订单】订单搜索 API返回值 +taobao.jipiao.agent.order.search + +卖家根据条件查询淘宝订单id列表 +*/ +type TaobaoJipiaoAgentOrderSearchAPIResponse struct { + model.CommonResponse + TaobaoJipiaoAgentOrderSearchAPIResponseModel +} + +// 【机票代理商订单】订单搜索 成功返回结果 +type TaobaoJipiaoAgentOrderSearchAPIResponseModel struct { + XMLName xml.Name `xml:"jipiao_agent_order_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回操作成功失败信息 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 失败时的错误信息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 机票订单搜索返回结果对象 + SearchResult *SearchOrderResult `json:"search_result,omitempty" xml:"search_result,omitempty"` +} diff --git a/model/jipiao/TaobaoJipiaoAgentOrderSearchResponse.go b/model/jipiao/TaobaoJipiaoAgentOrderSearchResponse.go deleted file mode 100644 index 0e7ebc70d3..0000000000 --- a/model/jipiao/TaobaoJipiaoAgentOrderSearchResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package jipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【机票代理商订单】订单搜索 API返回值 -taobao.jipiao.agent.order.search - -卖家根据条件查询淘宝订单id列表 -*/ -type TaobaoJipiaoAgentOrderSearchAPIResponse struct { - model.CommonResponse - TaobaoJipiaoAgentOrderSearchResponse -} - -// 【机票代理商订单】订单搜索 成功返回结果 -type TaobaoJipiaoAgentOrderSearchResponse struct { - XMLName xml.Name `xml:"jipiao_agent_order_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回操作成功失败信息 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 失败时的错误信息 - ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` - // 机票订单搜索返回结果对象 - SearchResult *SearchOrderResult `json:"search_result,omitempty" xml:"search_result,omitempty"` -} diff --git a/model/jipiao/TaobaoJipiaoAgentOrderTicketAPIRequest.go b/model/jipiao/TaobaoJipiaoAgentOrderTicketAPIRequest.go new file mode 100644 index 0000000000..b4a3d7d4a7 --- /dev/null +++ b/model/jipiao/TaobaoJipiaoAgentOrderTicketAPIRequest.go @@ -0,0 +1,66 @@ +package jipiao + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商订单】订单回填票号/成功订单 API请求 +taobao.jipiao.agent.order.ticket + +淘宝机票代理商回填票号/成功订单 +*/ +type TaobaoJipiaoAgentOrderTicketAPIRequest struct { + model.Params + // 淘宝系统订单id + _orderId int64 + // 成功订单参数:列表元素结构为——
1.航班号(注:是订单里的航班号,非实际承运航班号);
2.旧乘机人姓名;
3.新乘机人姓名;
4.票号 (乘机人、航段对应的票号)
说明:
1.往返订单,2段航班对应1个票号的,需要2条success_info记录,分别对应去程、回程;
2.有时用户输入的乘机人姓名输入错误或者有生僻字,代理商必须输入新的名字以保证验真通过;即旧乘机人姓名和新乘机人姓名不需要变化时可以相同 + _successInfo []string +} + +// 初始化TaobaoJipiaoAgentOrderTicketAPIRequest对象 +func NewTaobaoJipiaoAgentOrderTicketRequest() *TaobaoJipiaoAgentOrderTicketAPIRequest{ + return &TaobaoJipiaoAgentOrderTicketAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJipiaoAgentOrderTicketAPIRequest) GetApiMethodName() string { + return "taobao.jipiao.agent.order.ticket" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJipiaoAgentOrderTicketAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 淘宝系统订单id +func (r *TaobaoJipiaoAgentOrderTicketAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoJipiaoAgentOrderTicketAPIRequest) GetOrderId() int64 { + return r._orderId +} +// SuccessInfo Setter +// 成功订单参数:列表元素结构为——
1.航班号(注:是订单里的航班号,非实际承运航班号);
2.旧乘机人姓名;
3.新乘机人姓名;
4.票号 (乘机人、航段对应的票号)
说明:
1.往返订单,2段航班对应1个票号的,需要2条success_info记录,分别对应去程、回程;
2.有时用户输入的乘机人姓名输入错误或者有生僻字,代理商必须输入新的名字以保证验真通过;即旧乘机人姓名和新乘机人姓名不需要变化时可以相同 +func (r *TaobaoJipiaoAgentOrderTicketAPIRequest) SetSuccessInfo(_successInfo []string) error { + r._successInfo = _successInfo + r.Set("success_info", _successInfo) + return nil +} + +// SuccessInfo Getter +func (r TaobaoJipiaoAgentOrderTicketAPIRequest) GetSuccessInfo() []string { + return r._successInfo +} diff --git a/model/jipiao/TaobaoJipiaoAgentOrderTicketAPIResponse.go b/model/jipiao/TaobaoJipiaoAgentOrderTicketAPIResponse.go new file mode 100644 index 0000000000..dffc464db3 --- /dev/null +++ b/model/jipiao/TaobaoJipiaoAgentOrderTicketAPIResponse.go @@ -0,0 +1,31 @@ +package jipiao + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【机票代理商订单】订单回填票号/成功订单 API返回值 +taobao.jipiao.agent.order.ticket + +淘宝机票代理商回填票号/成功订单 +*/ +type TaobaoJipiaoAgentOrderTicketAPIResponse struct { + model.CommonResponse + TaobaoJipiaoAgentOrderTicketAPIResponseModel +} + +// 【机票代理商订单】订单回填票号/成功订单 成功返回结果 +type TaobaoJipiaoAgentOrderTicketAPIResponseModel struct { + XMLName xml.Name `xml:"jipiao_agent_order_ticket_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回操作成功失败信息 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 返回回填票号操作成功失败信息 + IsTicketSuccess bool `json:"is_ticket_success,omitempty" xml:"is_ticket_success,omitempty"` + // 返回接口调用完成后,整个订单是否成功 + IsOrderSuccess bool `json:"is_order_success,omitempty" xml:"is_order_success,omitempty"` +} diff --git a/model/jipiao/TaobaoJipiaoAgentOrderTicketResponse.go b/model/jipiao/TaobaoJipiaoAgentOrderTicketResponse.go deleted file mode 100644 index 2f8740aa58..0000000000 --- a/model/jipiao/TaobaoJipiaoAgentOrderTicketResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package jipiao - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【机票代理商订单】订单回填票号/成功订单 API返回值 -taobao.jipiao.agent.order.ticket - -淘宝机票代理商回填票号/成功订单 -*/ -type TaobaoJipiaoAgentOrderTicketAPIResponse struct { - model.CommonResponse - TaobaoJipiaoAgentOrderTicketResponse -} - -// 【机票代理商订单】订单回填票号/成功订单 成功返回结果 -type TaobaoJipiaoAgentOrderTicketResponse struct { - XMLName xml.Name `xml:"jipiao_agent_order_ticket_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回操作成功失败信息 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 返回回填票号操作成功失败信息 - IsTicketSuccess bool `json:"is_ticket_success,omitempty" xml:"is_ticket_success,omitempty"` - // 返回接口调用完成后,整个订单是否成功 - IsOrderSuccess bool `json:"is_order_success,omitempty" xml:"is_order_success,omitempty"` -} diff --git a/model/jms/TaobaoJushitaJmsGroupDeleteAPIRequest.go b/model/jms/TaobaoJushitaJmsGroupDeleteAPIRequest.go new file mode 100644 index 0000000000..6b61ba19e4 --- /dev/null +++ b/model/jms/TaobaoJushitaJmsGroupDeleteAPIRequest.go @@ -0,0 +1,80 @@ +package jms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除ONS分组 API请求 +taobao.jushita.jms.group.delete + +删除ONS分组 +*/ +type TaobaoJushitaJmsGroupDeleteAPIRequest struct { + model.Params + // 分组名称,分组删除后,用户的消息将会存储于默认分组中。警告:由于分组已经删除,用户之前未消费的消息将无法再获取。不能以default开头,default开头为系统默认组。 + _groupName string + // 用户列表,不传表示删除整个分组,如果用户全部删除后,也会自动删除整个分组 + _nicks []string + // 用户所属于的平台类型,tbUIC:淘宝用户; icbu: icbu用户 + _userPlatform string +} + +// 初始化TaobaoJushitaJmsGroupDeleteAPIRequest对象 +func NewTaobaoJushitaJmsGroupDeleteRequest() *TaobaoJushitaJmsGroupDeleteAPIRequest{ + return &TaobaoJushitaJmsGroupDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJushitaJmsGroupDeleteAPIRequest) GetApiMethodName() string { + return "taobao.jushita.jms.group.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJushitaJmsGroupDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupName Setter +// 分组名称,分组删除后,用户的消息将会存储于默认分组中。警告:由于分组已经删除,用户之前未消费的消息将无法再获取。不能以default开头,default开头为系统默认组。 +func (r *TaobaoJushitaJmsGroupDeleteAPIRequest) SetGroupName(_groupName string) error { + r._groupName = _groupName + r.Set("group_name", _groupName) + return nil +} + +// GroupName Getter +func (r TaobaoJushitaJmsGroupDeleteAPIRequest) GetGroupName() string { + return r._groupName +} +// Nicks Setter +// 用户列表,不传表示删除整个分组,如果用户全部删除后,也会自动删除整个分组 +func (r *TaobaoJushitaJmsGroupDeleteAPIRequest) SetNicks(_nicks []string) error { + r._nicks = _nicks + r.Set("nicks", _nicks) + return nil +} + +// Nicks Getter +func (r TaobaoJushitaJmsGroupDeleteAPIRequest) GetNicks() []string { + return r._nicks +} +// UserPlatform Setter +// 用户所属于的平台类型,tbUIC:淘宝用户; icbu: icbu用户 +func (r *TaobaoJushitaJmsGroupDeleteAPIRequest) SetUserPlatform(_userPlatform string) error { + r._userPlatform = _userPlatform + r.Set("user_platform", _userPlatform) + return nil +} + +// UserPlatform Getter +func (r TaobaoJushitaJmsGroupDeleteAPIRequest) GetUserPlatform() string { + return r._userPlatform +} diff --git a/model/jms/TaobaoJushitaJmsGroupDeleteAPIResponse.go b/model/jms/TaobaoJushitaJmsGroupDeleteAPIResponse.go new file mode 100644 index 0000000000..89278169bc --- /dev/null +++ b/model/jms/TaobaoJushitaJmsGroupDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package jms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除ONS分组 API返回值 +taobao.jushita.jms.group.delete + +删除ONS分组 +*/ +type TaobaoJushitaJmsGroupDeleteAPIResponse struct { + model.CommonResponse + TaobaoJushitaJmsGroupDeleteAPIResponseModel +} + +// 删除ONS分组 成功返回结果 +type TaobaoJushitaJmsGroupDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"jushita_jms_group_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/jms/TaobaoJushitaJmsGroupDeleteResponse.go b/model/jms/TaobaoJushitaJmsGroupDeleteResponse.go deleted file mode 100644 index f0f249fa1f..0000000000 --- a/model/jms/TaobaoJushitaJmsGroupDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除ONS分组 API返回值 -taobao.jushita.jms.group.delete - -删除ONS分组 -*/ -type TaobaoJushitaJmsGroupDeleteAPIResponse struct { - model.CommonResponse - TaobaoJushitaJmsGroupDeleteResponse -} - -// 删除ONS分组 成功返回结果 -type TaobaoJushitaJmsGroupDeleteResponse struct { - XMLName xml.Name `xml:"jushita_jms_group_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/jms/TaobaoJushitaJmsGroupGetAPIRequest.go b/model/jms/TaobaoJushitaJmsGroupGetAPIRequest.go new file mode 100644 index 0000000000..f053eac061 --- /dev/null +++ b/model/jms/TaobaoJushitaJmsGroupGetAPIRequest.go @@ -0,0 +1,80 @@ +package jms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询ONS分组 API请求 +taobao.jushita.jms.group.get + +查询当前appkey在ONS中已有的分组 +*/ +type TaobaoJushitaJmsGroupGetAPIRequest struct { + model.Params + // 页码 + _pageNo int64 + // 每页返回多少个分组 + _pageSize int64 + // 要查询分组的名称,多个分组用半角逗号分隔,不传代表查询所有分组信息,但不会返回组下面的用户信息。如果应用没有设置分组则返回空。组名不能以default开头,default开头是系统默认的组。 + _groupNames []string +} + +// 初始化TaobaoJushitaJmsGroupGetAPIRequest对象 +func NewTaobaoJushitaJmsGroupGetRequest() *TaobaoJushitaJmsGroupGetAPIRequest{ + return &TaobaoJushitaJmsGroupGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJushitaJmsGroupGetAPIRequest) GetApiMethodName() string { + return "taobao.jushita.jms.group.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJushitaJmsGroupGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageNo Setter +// 页码 +func (r *TaobaoJushitaJmsGroupGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoJushitaJmsGroupGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页返回多少个分组 +func (r *TaobaoJushitaJmsGroupGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoJushitaJmsGroupGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// GroupNames Setter +// 要查询分组的名称,多个分组用半角逗号分隔,不传代表查询所有分组信息,但不会返回组下面的用户信息。如果应用没有设置分组则返回空。组名不能以default开头,default开头是系统默认的组。 +func (r *TaobaoJushitaJmsGroupGetAPIRequest) SetGroupNames(_groupNames []string) error { + r._groupNames = _groupNames + r.Set("group_names", _groupNames) + return nil +} + +// GroupNames Getter +func (r TaobaoJushitaJmsGroupGetAPIRequest) GetGroupNames() []string { + return r._groupNames +} diff --git a/model/jms/TaobaoJushitaJmsGroupGetAPIResponse.go b/model/jms/TaobaoJushitaJmsGroupGetAPIResponse.go new file mode 100644 index 0000000000..136968eb2b --- /dev/null +++ b/model/jms/TaobaoJushitaJmsGroupGetAPIResponse.go @@ -0,0 +1,29 @@ +package jms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询ONS分组 API返回值 +taobao.jushita.jms.group.get + +查询当前appkey在ONS中已有的分组 +*/ +type TaobaoJushitaJmsGroupGetAPIResponse struct { + model.CommonResponse + TaobaoJushitaJmsGroupGetAPIResponseModel +} + +// 查询ONS分组 成功返回结果 +type TaobaoJushitaJmsGroupGetAPIResponseModel struct { + XMLName xml.Name `xml:"jushita_jms_group_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 分组信息 + Groups []MsgGroupDo `json:"groups,omitempty" xml:"groups>msg_group_do,omitempty"` +} diff --git a/model/jms/TaobaoJushitaJmsGroupGetResponse.go b/model/jms/TaobaoJushitaJmsGroupGetResponse.go deleted file mode 100644 index d688717a2d..0000000000 --- a/model/jms/TaobaoJushitaJmsGroupGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package jms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询ONS分组 API返回值 -taobao.jushita.jms.group.get - -查询当前appkey在ONS中已有的分组 -*/ -type TaobaoJushitaJmsGroupGetAPIResponse struct { - model.CommonResponse - TaobaoJushitaJmsGroupGetResponse -} - -// 查询ONS分组 成功返回结果 -type TaobaoJushitaJmsGroupGetResponse struct { - XMLName xml.Name `xml:"jushita_jms_group_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 分组信息 - Groups []MsgGroupDo `json:"groups,omitempty" xml:"groups>msg_group_do,omitempty"` -} diff --git a/model/jms/TaobaoJushitaJmsTopicsGetAPIRequest.go b/model/jms/TaobaoJushitaJmsTopicsGetAPIRequest.go new file mode 100644 index 0000000000..645ea5dfe4 --- /dev/null +++ b/model/jms/TaobaoJushitaJmsTopicsGetAPIRequest.go @@ -0,0 +1,52 @@ +package jms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据用户nick获取开通的消息列表 API请求 +taobao.jushita.jms.topics.get + +根据用户nick获取开通的消息列表 +*/ +type TaobaoJushitaJmsTopicsGetAPIRequest struct { + model.Params + // 卖家nick + _nick string +} + +// 初始化TaobaoJushitaJmsTopicsGetAPIRequest对象 +func NewTaobaoJushitaJmsTopicsGetRequest() *TaobaoJushitaJmsTopicsGetAPIRequest{ + return &TaobaoJushitaJmsTopicsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJushitaJmsTopicsGetAPIRequest) GetApiMethodName() string { + return "taobao.jushita.jms.topics.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJushitaJmsTopicsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 卖家nick +func (r *TaobaoJushitaJmsTopicsGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoJushitaJmsTopicsGetAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/jms/TaobaoJushitaJmsTopicsGetAPIResponse.go b/model/jms/TaobaoJushitaJmsTopicsGetAPIResponse.go new file mode 100644 index 0000000000..edf3798f87 --- /dev/null +++ b/model/jms/TaobaoJushitaJmsTopicsGetAPIResponse.go @@ -0,0 +1,31 @@ +package jms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据用户nick获取开通的消息列表 API返回值 +taobao.jushita.jms.topics.get + +根据用户nick获取开通的消息列表 +*/ +type TaobaoJushitaJmsTopicsGetAPIResponse struct { + model.CommonResponse + TaobaoJushitaJmsTopicsGetAPIResponseModel +} + +// 根据用户nick获取开通的消息列表 成功返回结果 +type TaobaoJushitaJmsTopicsGetAPIResponseModel struct { + XMLName xml.Name `xml:"jushita_jms_topics_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"` + // topic列表 + Results []string `json:"results,omitempty" xml:"results>string,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/jms/TaobaoJushitaJmsTopicsGetResponse.go b/model/jms/TaobaoJushitaJmsTopicsGetResponse.go deleted file mode 100644 index b39a407a9d..0000000000 --- a/model/jms/TaobaoJushitaJmsTopicsGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package jms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据用户nick获取开通的消息列表 API返回值 -taobao.jushita.jms.topics.get - -根据用户nick获取开通的消息列表 -*/ -type TaobaoJushitaJmsTopicsGetAPIResponse struct { - model.CommonResponse - TaobaoJushitaJmsTopicsGetResponse -} - -// 根据用户nick获取开通的消息列表 成功返回结果 -type TaobaoJushitaJmsTopicsGetResponse struct { - XMLName xml.Name `xml:"jushita_jms_topics_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"` - // topic列表 - Results []string `json:"results,omitempty" xml:"results>string,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/jms/TaobaoJushitaJmsUserAddAPIRequest.go b/model/jms/TaobaoJushitaJmsUserAddAPIRequest.go new file mode 100644 index 0000000000..ed55f60231 --- /dev/null +++ b/model/jms/TaobaoJushitaJmsUserAddAPIRequest.go @@ -0,0 +1,52 @@ +package jms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加ONS消息同步用户 API请求 +taobao.jushita.jms.user.add + +添加ONS消息同步用户 +*/ +type TaobaoJushitaJmsUserAddAPIRequest struct { + model.Params + // topic列表,不填则继承appkey所订阅的topic + _topicNames []string +} + +// 初始化TaobaoJushitaJmsUserAddAPIRequest对象 +func NewTaobaoJushitaJmsUserAddRequest() *TaobaoJushitaJmsUserAddAPIRequest{ + return &TaobaoJushitaJmsUserAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJushitaJmsUserAddAPIRequest) GetApiMethodName() string { + return "taobao.jushita.jms.user.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJushitaJmsUserAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TopicNames Setter +// topic列表,不填则继承appkey所订阅的topic +func (r *TaobaoJushitaJmsUserAddAPIRequest) SetTopicNames(_topicNames []string) error { + r._topicNames = _topicNames + r.Set("topic_names", _topicNames) + return nil +} + +// TopicNames Getter +func (r TaobaoJushitaJmsUserAddAPIRequest) GetTopicNames() []string { + return r._topicNames +} diff --git a/model/jms/TaobaoJushitaJmsUserAddAPIResponse.go b/model/jms/TaobaoJushitaJmsUserAddAPIResponse.go new file mode 100644 index 0000000000..02140a9d93 --- /dev/null +++ b/model/jms/TaobaoJushitaJmsUserAddAPIResponse.go @@ -0,0 +1,27 @@ +package jms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加ONS消息同步用户 API返回值 +taobao.jushita.jms.user.add + +添加ONS消息同步用户 +*/ +type TaobaoJushitaJmsUserAddAPIResponse struct { + model.CommonResponse + TaobaoJushitaJmsUserAddAPIResponseModel +} + +// 添加ONS消息同步用户 成功返回结果 +type TaobaoJushitaJmsUserAddAPIResponseModel struct { + XMLName xml.Name `xml:"jushita_jms_user_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功,如果失败请看错误信息 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/jms/TaobaoJushitaJmsUserAddResponse.go b/model/jms/TaobaoJushitaJmsUserAddResponse.go deleted file mode 100644 index 5969b444e3..0000000000 --- a/model/jms/TaobaoJushitaJmsUserAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加ONS消息同步用户 API返回值 -taobao.jushita.jms.user.add - -添加ONS消息同步用户 -*/ -type TaobaoJushitaJmsUserAddAPIResponse struct { - model.CommonResponse - TaobaoJushitaJmsUserAddResponse -} - -// 添加ONS消息同步用户 成功返回结果 -type TaobaoJushitaJmsUserAddResponse struct { - XMLName xml.Name `xml:"jushita_jms_user_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功,如果失败请看错误信息 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/jms/TaobaoJushitaJmsUserDeleteAPIRequest.go b/model/jms/TaobaoJushitaJmsUserDeleteAPIRequest.go new file mode 100644 index 0000000000..0118632f0c --- /dev/null +++ b/model/jms/TaobaoJushitaJmsUserDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package jms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除ONS消息同步用户 API请求 +taobao.jushita.jms.user.delete + +删除ONS消息同步用户,删除后用户的消息将不会推送到聚石塔的ONS中 +*/ +type TaobaoJushitaJmsUserDeleteAPIRequest struct { + model.Params + // 需要停止同步消息的用户nick + _userNick string +} + +// 初始化TaobaoJushitaJmsUserDeleteAPIRequest对象 +func NewTaobaoJushitaJmsUserDeleteRequest() *TaobaoJushitaJmsUserDeleteAPIRequest{ + return &TaobaoJushitaJmsUserDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJushitaJmsUserDeleteAPIRequest) GetApiMethodName() string { + return "taobao.jushita.jms.user.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJushitaJmsUserDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserNick Setter +// 需要停止同步消息的用户nick +func (r *TaobaoJushitaJmsUserDeleteAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r TaobaoJushitaJmsUserDeleteAPIRequest) GetUserNick() string { + return r._userNick +} diff --git a/model/jms/TaobaoJushitaJmsUserDeleteAPIResponse.go b/model/jms/TaobaoJushitaJmsUserDeleteAPIResponse.go new file mode 100644 index 0000000000..feef1605cf --- /dev/null +++ b/model/jms/TaobaoJushitaJmsUserDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package jms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除ONS消息同步用户 API返回值 +taobao.jushita.jms.user.delete + +删除ONS消息同步用户,删除后用户的消息将不会推送到聚石塔的ONS中 +*/ +type TaobaoJushitaJmsUserDeleteAPIResponse struct { + model.CommonResponse + TaobaoJushitaJmsUserDeleteAPIResponseModel +} + +// 删除ONS消息同步用户 成功返回结果 +type TaobaoJushitaJmsUserDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"jushita_jms_user_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否删除成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/jms/TaobaoJushitaJmsUserDeleteResponse.go b/model/jms/TaobaoJushitaJmsUserDeleteResponse.go deleted file mode 100644 index 414a20235e..0000000000 --- a/model/jms/TaobaoJushitaJmsUserDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除ONS消息同步用户 API返回值 -taobao.jushita.jms.user.delete - -删除ONS消息同步用户,删除后用户的消息将不会推送到聚石塔的ONS中 -*/ -type TaobaoJushitaJmsUserDeleteAPIResponse struct { - model.CommonResponse - TaobaoJushitaJmsUserDeleteResponse -} - -// 删除ONS消息同步用户 成功返回结果 -type TaobaoJushitaJmsUserDeleteResponse struct { - XMLName xml.Name `xml:"jushita_jms_user_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否删除成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/jms/TaobaoJushitaJmsUserGetAPIRequest.go b/model/jms/TaobaoJushitaJmsUserGetAPIRequest.go new file mode 100644 index 0000000000..ceaf7fe554 --- /dev/null +++ b/model/jms/TaobaoJushitaJmsUserGetAPIRequest.go @@ -0,0 +1,52 @@ +package jms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询某个用户是否同步消息 API请求 +taobao.jushita.jms.user.get + +查询某个用户是否同步消息,只支持单个查询 +*/ +type TaobaoJushitaJmsUserGetAPIRequest struct { + model.Params + // 需要查询的用户名 + _userNick string +} + +// 初始化TaobaoJushitaJmsUserGetAPIRequest对象 +func NewTaobaoJushitaJmsUserGetRequest() *TaobaoJushitaJmsUserGetAPIRequest{ + return &TaobaoJushitaJmsUserGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJushitaJmsUserGetAPIRequest) GetApiMethodName() string { + return "taobao.jushita.jms.user.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJushitaJmsUserGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserNick Setter +// 需要查询的用户名 +func (r *TaobaoJushitaJmsUserGetAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r TaobaoJushitaJmsUserGetAPIRequest) GetUserNick() string { + return r._userNick +} diff --git a/model/jms/TaobaoJushitaJmsUserGetAPIResponse.go b/model/jms/TaobaoJushitaJmsUserGetAPIResponse.go new file mode 100644 index 0000000000..0f29a29225 --- /dev/null +++ b/model/jms/TaobaoJushitaJmsUserGetAPIResponse.go @@ -0,0 +1,27 @@ +package jms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询某个用户是否同步消息 API返回值 +taobao.jushita.jms.user.get + +查询某个用户是否同步消息,只支持单个查询 +*/ +type TaobaoJushitaJmsUserGetAPIResponse struct { + model.CommonResponse + TaobaoJushitaJmsUserGetAPIResponseModel +} + +// 查询某个用户是否同步消息 成功返回结果 +type TaobaoJushitaJmsUserGetAPIResponseModel struct { + XMLName xml.Name `xml:"jushita_jms_user_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 同步的用户信息 + OnsUser *TmcUser `json:"ons_user,omitempty" xml:"ons_user,omitempty"` +} diff --git a/model/jms/TaobaoJushitaJmsUserGetResponse.go b/model/jms/TaobaoJushitaJmsUserGetResponse.go deleted file mode 100644 index 06b7784ebb..0000000000 --- a/model/jms/TaobaoJushitaJmsUserGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询某个用户是否同步消息 API返回值 -taobao.jushita.jms.user.get - -查询某个用户是否同步消息,只支持单个查询 -*/ -type TaobaoJushitaJmsUserGetAPIResponse struct { - model.CommonResponse - TaobaoJushitaJmsUserGetResponse -} - -// 查询某个用户是否同步消息 成功返回结果 -type TaobaoJushitaJmsUserGetResponse struct { - XMLName xml.Name `xml:"jushita_jms_user_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 同步的用户信息 - OnsUser *TmcUser `json:"ons_user,omitempty" xml:"ons_user,omitempty"` -} diff --git a/model/jst/AlibabaModifyaddressIsvBindsellerCheckAPIRequest.go b/model/jst/AlibabaModifyaddressIsvBindsellerCheckAPIRequest.go new file mode 100644 index 0000000000..63ef8a01fc --- /dev/null +++ b/model/jst/AlibabaModifyaddressIsvBindsellerCheckAPIRequest.go @@ -0,0 +1,42 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询服务商下的商家是否开通了改地址 API请求 +alibaba.modifyaddress.isv.bindseller.check + +鉴权服务商和商家的绑定关系,看商家是否开通了改地址 +1. 没有授权 +2. 已与当前appkey签约 +3. 没有签约 +4. 与其他服务商软件签约,如果是同一个isv name,返回appkey,否则不返回。 +*/ +type AlibabaModifyaddressIsvBindsellerCheckAPIRequest struct { + model.Params +} + +// 初始化AlibabaModifyaddressIsvBindsellerCheckAPIRequest对象 +func NewAlibabaModifyaddressIsvBindsellerCheckRequest() *AlibabaModifyaddressIsvBindsellerCheckAPIRequest{ + return &AlibabaModifyaddressIsvBindsellerCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaModifyaddressIsvBindsellerCheckAPIRequest) GetApiMethodName() string { + return "alibaba.modifyaddress.isv.bindseller.check" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaModifyaddressIsvBindsellerCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/jst/AlibabaModifyaddressIsvBindsellerCheckAPIResponse.go b/model/jst/AlibabaModifyaddressIsvBindsellerCheckAPIResponse.go new file mode 100644 index 0000000000..ca453ab2f4 --- /dev/null +++ b/model/jst/AlibabaModifyaddressIsvBindsellerCheckAPIResponse.go @@ -0,0 +1,31 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询服务商下的商家是否开通了改地址 API返回值 +alibaba.modifyaddress.isv.bindseller.check + +鉴权服务商和商家的绑定关系,看商家是否开通了改地址 +1. 没有授权 +2. 已与当前appkey签约 +3. 没有签约 +4. 与其他服务商软件签约,如果是同一个isv name,返回appkey,否则不返回。 +*/ +type AlibabaModifyaddressIsvBindsellerCheckAPIResponse struct { + model.CommonResponse + AlibabaModifyaddressIsvBindsellerCheckAPIResponseModel +} + +// 查询服务商下的商家是否开通了改地址 成功返回结果 +type AlibabaModifyaddressIsvBindsellerCheckAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_modifyaddress_isv_bindseller_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // model + Model *CheckSellerChooseErpResponse `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/jst/AlibabaModifyaddressIsvBindsellerCheckResponse.go b/model/jst/AlibabaModifyaddressIsvBindsellerCheckResponse.go deleted file mode 100644 index a607aa66ef..0000000000 --- a/model/jst/AlibabaModifyaddressIsvBindsellerCheckResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询服务商下的商家是否开通了改地址 API返回值 -alibaba.modifyaddress.isv.bindseller.check - -鉴权服务商和商家的绑定关系,看商家是否开通了改地址 -1. 没有授权 -2. 已与当前appkey签约 -3. 没有签约 -4. 与其他服务商软件签约,如果是同一个isv name,返回appkey,否则不返回。 -*/ -type AlibabaModifyaddressIsvBindsellerCheckAPIResponse struct { - model.CommonResponse - AlibabaModifyaddressIsvBindsellerCheckResponse -} - -// 查询服务商下的商家是否开通了改地址 成功返回结果 -type AlibabaModifyaddressIsvBindsellerCheckResponse struct { - XMLName xml.Name `xml:"alibaba_modifyaddress_isv_bindseller_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // model - Model *CheckSellerChooseErpResponse `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/jst/TaobaoJdsHluserGetAPIRequest.go b/model/jst/TaobaoJdsHluserGetAPIRequest.go new file mode 100644 index 0000000000..b95a12e473 --- /dev/null +++ b/model/jst/TaobaoJdsHluserGetAPIRequest.go @@ -0,0 +1,38 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单全链路用户信息获取 API请求 +taobao.jds.hluser.get + +订单全链路用户信息获取 +*/ +type TaobaoJdsHluserGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoJdsHluserGetAPIRequest对象 +func NewTaobaoJdsHluserGetRequest() *TaobaoJdsHluserGetAPIRequest{ + return &TaobaoJdsHluserGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJdsHluserGetAPIRequest) GetApiMethodName() string { + return "taobao.jds.hluser.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJdsHluserGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/jst/TaobaoJdsHluserGetAPIResponse.go b/model/jst/TaobaoJdsHluserGetAPIResponse.go new file mode 100644 index 0000000000..4ae5d9433a --- /dev/null +++ b/model/jst/TaobaoJdsHluserGetAPIResponse.go @@ -0,0 +1,27 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单全链路用户信息获取 API返回值 +taobao.jds.hluser.get + +订单全链路用户信息获取 +*/ +type TaobaoJdsHluserGetAPIResponse struct { + model.CommonResponse + TaobaoJdsHluserGetAPIResponseModel +} + +// 订单全链路用户信息获取 成功返回结果 +type TaobaoJdsHluserGetAPIResponseModel struct { + XMLName xml.Name `xml:"jds_hluser_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 回流用户信息 + HlUser *HlUserDo `json:"hl_user,omitempty" xml:"hl_user,omitempty"` +} diff --git a/model/jst/TaobaoJdsHluserGetResponse.go b/model/jst/TaobaoJdsHluserGetResponse.go deleted file mode 100644 index 2fca57f949..0000000000 --- a/model/jst/TaobaoJdsHluserGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单全链路用户信息获取 API返回值 -taobao.jds.hluser.get - -订单全链路用户信息获取 -*/ -type TaobaoJdsHluserGetAPIResponse struct { - model.CommonResponse - TaobaoJdsHluserGetResponse -} - -// 订单全链路用户信息获取 成功返回结果 -type TaobaoJdsHluserGetResponse struct { - XMLName xml.Name `xml:"jds_hluser_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 回流用户信息 - HlUser *HlUserDo `json:"hl_user,omitempty" xml:"hl_user,omitempty"` -} diff --git a/model/jst/TaobaoJdsHluserUpdateAPIRequest.go b/model/jst/TaobaoJdsHluserUpdateAPIRequest.go new file mode 100644 index 0000000000..41d6a4b737 --- /dev/null +++ b/model/jst/TaobaoJdsHluserUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单全链路用户信息修改 API请求 +taobao.jds.hluser.update + +订单全链路用户信息修改,比如是否开放买家端展示 +*/ +type TaobaoJdsHluserUpdateAPIRequest struct { + model.Params + // 回流信息是否开通买家端展示,可选值open,close + _openForBuyer string + // 为空,则默认是X_TO_SYSTEM,X_WAIT_ALLOCATION,X_OUT_WAREHOUSE 可选值是X_DOWNLOADED,X_TO_SYSTEM,X_SERVICE_AUDITED,X_FINANCE_AUDITED,X_ALLOCATION_NOTIFIED,X_WAIT_ALLOCATION,X_SORT_PRINTED,X_SEND_PRINTED,X_LOGISTICS_PRINTED,X_SORTED,X_EXAMINED,X_PACKAGED,X_WEIGHED,X_OUT_WAREHOUS + _openNodes string +} + +// 初始化TaobaoJdsHluserUpdateAPIRequest对象 +func NewTaobaoJdsHluserUpdateRequest() *TaobaoJdsHluserUpdateAPIRequest{ + return &TaobaoJdsHluserUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJdsHluserUpdateAPIRequest) GetApiMethodName() string { + return "taobao.jds.hluser.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJdsHluserUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenForBuyer Setter +// 回流信息是否开通买家端展示,可选值open,close +func (r *TaobaoJdsHluserUpdateAPIRequest) SetOpenForBuyer(_openForBuyer string) error { + r._openForBuyer = _openForBuyer + r.Set("open_for_buyer", _openForBuyer) + return nil +} + +// OpenForBuyer Getter +func (r TaobaoJdsHluserUpdateAPIRequest) GetOpenForBuyer() string { + return r._openForBuyer +} +// OpenNodes Setter +// 为空,则默认是X_TO_SYSTEM,X_WAIT_ALLOCATION,X_OUT_WAREHOUSE 可选值是X_DOWNLOADED,X_TO_SYSTEM,X_SERVICE_AUDITED,X_FINANCE_AUDITED,X_ALLOCATION_NOTIFIED,X_WAIT_ALLOCATION,X_SORT_PRINTED,X_SEND_PRINTED,X_LOGISTICS_PRINTED,X_SORTED,X_EXAMINED,X_PACKAGED,X_WEIGHED,X_OUT_WAREHOUS +func (r *TaobaoJdsHluserUpdateAPIRequest) SetOpenNodes(_openNodes string) error { + r._openNodes = _openNodes + r.Set("open_nodes", _openNodes) + return nil +} + +// OpenNodes Getter +func (r TaobaoJdsHluserUpdateAPIRequest) GetOpenNodes() string { + return r._openNodes +} diff --git a/model/jst/TaobaoJdsHluserUpdateAPIResponse.go b/model/jst/TaobaoJdsHluserUpdateAPIResponse.go new file mode 100644 index 0000000000..1bf29bb1d7 --- /dev/null +++ b/model/jst/TaobaoJdsHluserUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单全链路用户信息修改 API返回值 +taobao.jds.hluser.update + +订单全链路用户信息修改,比如是否开放买家端展示 +*/ +type TaobaoJdsHluserUpdateAPIResponse struct { + model.CommonResponse + TaobaoJdsHluserUpdateAPIResponseModel +} + +// 订单全链路用户信息修改 成功返回结果 +type TaobaoJdsHluserUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"jds_hluser_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/jst/TaobaoJdsHluserUpdateResponse.go b/model/jst/TaobaoJdsHluserUpdateResponse.go deleted file mode 100644 index b481d8aa1f..0000000000 --- a/model/jst/TaobaoJdsHluserUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单全链路用户信息修改 API返回值 -taobao.jds.hluser.update - -订单全链路用户信息修改,比如是否开放买家端展示 -*/ -type TaobaoJdsHluserUpdateAPIResponse struct { - model.CommonResponse - TaobaoJdsHluserUpdateResponse -} - -// 订单全链路用户信息修改 成功返回结果 -type TaobaoJdsHluserUpdateResponse struct { - XMLName xml.Name `xml:"jds_hluser_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/jst/TaobaoJdsRefundTracesGetAPIRequest.go b/model/jst/TaobaoJdsRefundTracesGetAPIRequest.go new file mode 100644 index 0000000000..31bcd402cc --- /dev/null +++ b/model/jst/TaobaoJdsRefundTracesGetAPIRequest.go @@ -0,0 +1,52 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单条退款跟踪详情 API请求 +taobao.jds.refund.traces.get + +获取聚石塔数据共享的交易全链路的退款信息 +*/ +type TaobaoJdsRefundTracesGetAPIRequest struct { + model.Params + // 淘宝的退款编号 + _refundId int64 +} + +// 初始化TaobaoJdsRefundTracesGetAPIRequest对象 +func NewTaobaoJdsRefundTracesGetRequest() *TaobaoJdsRefundTracesGetAPIRequest{ + return &TaobaoJdsRefundTracesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJdsRefundTracesGetAPIRequest) GetApiMethodName() string { + return "taobao.jds.refund.traces.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJdsRefundTracesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundId Setter +// 淘宝的退款编号 +func (r *TaobaoJdsRefundTracesGetAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoJdsRefundTracesGetAPIRequest) GetRefundId() int64 { + return r._refundId +} diff --git a/model/jst/TaobaoJdsRefundTracesGetAPIResponse.go b/model/jst/TaobaoJdsRefundTracesGetAPIResponse.go new file mode 100644 index 0000000000..5143f330ca --- /dev/null +++ b/model/jst/TaobaoJdsRefundTracesGetAPIResponse.go @@ -0,0 +1,29 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单条退款跟踪详情 API返回值 +taobao.jds.refund.traces.get + +获取聚石塔数据共享的交易全链路的退款信息 +*/ +type TaobaoJdsRefundTracesGetAPIResponse struct { + model.CommonResponse + TaobaoJdsRefundTracesGetAPIResponseModel +} + +// 获取单条退款跟踪详情 成功返回结果 +type TaobaoJdsRefundTracesGetAPIResponseModel struct { + XMLName xml.Name `xml:"jds_refund_traces_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 退款跟踪列表 + Traces []RefundTrace `json:"traces,omitempty" xml:"traces>refund_trace,omitempty"` + // 用户在全链路系统中的状态(比如是否存在) + UserStatus string `json:"user_status,omitempty" xml:"user_status,omitempty"` +} diff --git a/model/jst/TaobaoJdsRefundTracesGetResponse.go b/model/jst/TaobaoJdsRefundTracesGetResponse.go deleted file mode 100644 index f5c203e882..0000000000 --- a/model/jst/TaobaoJdsRefundTracesGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取单条退款跟踪详情 API返回值 -taobao.jds.refund.traces.get - -获取聚石塔数据共享的交易全链路的退款信息 -*/ -type TaobaoJdsRefundTracesGetAPIResponse struct { - model.CommonResponse - TaobaoJdsRefundTracesGetResponse -} - -// 获取单条退款跟踪详情 成功返回结果 -type TaobaoJdsRefundTracesGetResponse struct { - XMLName xml.Name `xml:"jds_refund_traces_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 退款跟踪列表 - Traces []RefundTrace `json:"traces,omitempty" xml:"traces>refund_trace,omitempty"` - // 用户在全链路系统中的状态(比如是否存在) - UserStatus string `json:"user_status,omitempty" xml:"user_status,omitempty"` -} diff --git a/model/jst/TaobaoJdsTradeTracesGetAPIRequest.go b/model/jst/TaobaoJdsTradeTracesGetAPIRequest.go new file mode 100644 index 0000000000..a7f57fb205 --- /dev/null +++ b/model/jst/TaobaoJdsTradeTracesGetAPIRequest.go @@ -0,0 +1,52 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单条订单跟踪详情 API请求 +taobao.jds.trade.traces.get + +获取聚石塔数据共享的交易全链路信息 +*/ +type TaobaoJdsTradeTracesGetAPIRequest struct { + model.Params + // 淘宝的订单tid + _tid int64 +} + +// 初始化TaobaoJdsTradeTracesGetAPIRequest对象 +func NewTaobaoJdsTradeTracesGetRequest() *TaobaoJdsTradeTracesGetAPIRequest{ + return &TaobaoJdsTradeTracesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJdsTradeTracesGetAPIRequest) GetApiMethodName() string { + return "taobao.jds.trade.traces.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJdsTradeTracesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 淘宝的订单tid +func (r *TaobaoJdsTradeTracesGetAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoJdsTradeTracesGetAPIRequest) GetTid() int64 { + return r._tid +} diff --git a/model/jst/TaobaoJdsTradeTracesGetAPIResponse.go b/model/jst/TaobaoJdsTradeTracesGetAPIResponse.go new file mode 100644 index 0000000000..268c6d010f --- /dev/null +++ b/model/jst/TaobaoJdsTradeTracesGetAPIResponse.go @@ -0,0 +1,29 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单条订单跟踪详情 API返回值 +taobao.jds.trade.traces.get + +获取聚石塔数据共享的交易全链路信息 +*/ +type TaobaoJdsTradeTracesGetAPIResponse struct { + model.CommonResponse + TaobaoJdsTradeTracesGetAPIResponseModel +} + +// 获取单条订单跟踪详情 成功返回结果 +type TaobaoJdsTradeTracesGetAPIResponseModel struct { + XMLName xml.Name `xml:"jds_trade_traces_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 跟踪信息列表 + Traces []TradeTrace `json:"traces,omitempty" xml:"traces>trade_trace,omitempty"` + // 在订单全链路系统中的状态(比如是否存在) + UserStatus string `json:"user_status,omitempty" xml:"user_status,omitempty"` +} diff --git a/model/jst/TaobaoJdsTradeTracesGetResponse.go b/model/jst/TaobaoJdsTradeTracesGetResponse.go deleted file mode 100644 index 31e26f1e16..0000000000 --- a/model/jst/TaobaoJdsTradeTracesGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取单条订单跟踪详情 API返回值 -taobao.jds.trade.traces.get - -获取聚石塔数据共享的交易全链路信息 -*/ -type TaobaoJdsTradeTracesGetAPIResponse struct { - model.CommonResponse - TaobaoJdsTradeTracesGetResponse -} - -// 获取单条订单跟踪详情 成功返回结果 -type TaobaoJdsTradeTracesGetResponse struct { - XMLName xml.Name `xml:"jds_trade_traces_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 跟踪信息列表 - Traces []TradeTrace `json:"traces,omitempty" xml:"traces>trade_trace,omitempty"` - // 在订单全链路系统中的状态(比如是否存在) - UserStatus string `json:"user_status,omitempty" xml:"user_status,omitempty"` -} diff --git a/model/jst/TaobaoJdsTradesStatisticsDiffAPIRequest.go b/model/jst/TaobaoJdsTradesStatisticsDiffAPIRequest.go new file mode 100644 index 0000000000..622ce5ec49 --- /dev/null +++ b/model/jst/TaobaoJdsTradesStatisticsDiffAPIRequest.go @@ -0,0 +1,94 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单全链路状态统计差异比较 API请求 +taobao.jds.trades.statistics.diff + +订单全链路状态统计差异比较 +*/ +type TaobaoJdsTradesStatisticsDiffAPIRequest struct { + model.Params + // 查询的日期,格式如YYYYMMDD的日期对应的数字 + _date int64 + // 需要比较的状态,将会和post_status做比较 + _preStatus string + // 需要比较的状态 + _postStatus string + // 页数 + _pageNo int64 +} + +// 初始化TaobaoJdsTradesStatisticsDiffAPIRequest对象 +func NewTaobaoJdsTradesStatisticsDiffRequest() *TaobaoJdsTradesStatisticsDiffAPIRequest{ + return &TaobaoJdsTradesStatisticsDiffAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJdsTradesStatisticsDiffAPIRequest) GetApiMethodName() string { + return "taobao.jds.trades.statistics.diff" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJdsTradesStatisticsDiffAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Date Setter +// 查询的日期,格式如YYYYMMDD的日期对应的数字 +func (r *TaobaoJdsTradesStatisticsDiffAPIRequest) SetDate(_date int64) error { + r._date = _date + r.Set("date", _date) + return nil +} + +// Date Getter +func (r TaobaoJdsTradesStatisticsDiffAPIRequest) GetDate() int64 { + return r._date +} +// PreStatus Setter +// 需要比较的状态,将会和post_status做比较 +func (r *TaobaoJdsTradesStatisticsDiffAPIRequest) SetPreStatus(_preStatus string) error { + r._preStatus = _preStatus + r.Set("pre_status", _preStatus) + return nil +} + +// PreStatus Getter +func (r TaobaoJdsTradesStatisticsDiffAPIRequest) GetPreStatus() string { + return r._preStatus +} +// PostStatus Setter +// 需要比较的状态 +func (r *TaobaoJdsTradesStatisticsDiffAPIRequest) SetPostStatus(_postStatus string) error { + r._postStatus = _postStatus + r.Set("post_status", _postStatus) + return nil +} + +// PostStatus Getter +func (r TaobaoJdsTradesStatisticsDiffAPIRequest) GetPostStatus() string { + return r._postStatus +} +// PageNo Setter +// 页数 +func (r *TaobaoJdsTradesStatisticsDiffAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoJdsTradesStatisticsDiffAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/jst/TaobaoJdsTradesStatisticsDiffAPIResponse.go b/model/jst/TaobaoJdsTradesStatisticsDiffAPIResponse.go new file mode 100644 index 0000000000..1034628318 --- /dev/null +++ b/model/jst/TaobaoJdsTradesStatisticsDiffAPIResponse.go @@ -0,0 +1,29 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单全链路状态统计差异比较 API返回值 +taobao.jds.trades.statistics.diff + +订单全链路状态统计差异比较 +*/ +type TaobaoJdsTradesStatisticsDiffAPIResponse struct { + model.CommonResponse + TaobaoJdsTradesStatisticsDiffAPIResponseModel +} + +// 订单全链路状态统计差异比较 成功返回结果 +type TaobaoJdsTradesStatisticsDiffAPIResponseModel struct { + XMLName xml.Name `xml:"jds_trades_statistics_diff_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // pre_status比post_status多的tid列表 + Tids []int64 `json:"tids,omitempty" xml:"tids>int64,omitempty"` + // 总记录数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/jst/TaobaoJdsTradesStatisticsDiffResponse.go b/model/jst/TaobaoJdsTradesStatisticsDiffResponse.go deleted file mode 100644 index 34e44e09bf..0000000000 --- a/model/jst/TaobaoJdsTradesStatisticsDiffResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单全链路状态统计差异比较 API返回值 -taobao.jds.trades.statistics.diff - -订单全链路状态统计差异比较 -*/ -type TaobaoJdsTradesStatisticsDiffAPIResponse struct { - model.CommonResponse - TaobaoJdsTradesStatisticsDiffResponse -} - -// 订单全链路状态统计差异比较 成功返回结果 -type TaobaoJdsTradesStatisticsDiffResponse struct { - XMLName xml.Name `xml:"jds_trades_statistics_diff_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // pre_status比post_status多的tid列表 - Tids []int64 `json:"tids,omitempty" xml:"tids>int64,omitempty"` - // 总记录数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/jst/TaobaoJdsTradesStatisticsGetAPIRequest.go b/model/jst/TaobaoJdsTradesStatisticsGetAPIRequest.go new file mode 100644 index 0000000000..7633d5fe18 --- /dev/null +++ b/model/jst/TaobaoJdsTradesStatisticsGetAPIRequest.go @@ -0,0 +1,52 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取订单数量统计结果 API请求 +taobao.jds.trades.statistics.get + +获取订单数量统计结果 +*/ +type TaobaoJdsTradesStatisticsGetAPIRequest struct { + model.Params + // 查询的日期,格式如YYYYMMDD的日期对应的数字 + _date int64 +} + +// 初始化TaobaoJdsTradesStatisticsGetAPIRequest对象 +func NewTaobaoJdsTradesStatisticsGetRequest() *TaobaoJdsTradesStatisticsGetAPIRequest{ + return &TaobaoJdsTradesStatisticsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJdsTradesStatisticsGetAPIRequest) GetApiMethodName() string { + return "taobao.jds.trades.statistics.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJdsTradesStatisticsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Date Setter +// 查询的日期,格式如YYYYMMDD的日期对应的数字 +func (r *TaobaoJdsTradesStatisticsGetAPIRequest) SetDate(_date int64) error { + r._date = _date + r.Set("date", _date) + return nil +} + +// Date Getter +func (r TaobaoJdsTradesStatisticsGetAPIRequest) GetDate() int64 { + return r._date +} diff --git a/model/jst/TaobaoJdsTradesStatisticsGetAPIResponse.go b/model/jst/TaobaoJdsTradesStatisticsGetAPIResponse.go new file mode 100644 index 0000000000..0391abfe13 --- /dev/null +++ b/model/jst/TaobaoJdsTradesStatisticsGetAPIResponse.go @@ -0,0 +1,27 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取订单数量统计结果 API返回值 +taobao.jds.trades.statistics.get + +获取订单数量统计结果 +*/ +type TaobaoJdsTradesStatisticsGetAPIResponse struct { + model.CommonResponse + TaobaoJdsTradesStatisticsGetAPIResponseModel +} + +// 获取订单数量统计结果 成功返回结果 +type TaobaoJdsTradesStatisticsGetAPIResponseModel struct { + XMLName xml.Name `xml:"jds_trades_statistics_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单状态计数值 + StatusInfos []TradeStat `json:"status_infos,omitempty" xml:"status_infos>trade_stat,omitempty"` +} diff --git a/model/jst/TaobaoJdsTradesStatisticsGetResponse.go b/model/jst/TaobaoJdsTradesStatisticsGetResponse.go deleted file mode 100644 index 9ed065f85b..0000000000 --- a/model/jst/TaobaoJdsTradesStatisticsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取订单数量统计结果 API返回值 -taobao.jds.trades.statistics.get - -获取订单数量统计结果 -*/ -type TaobaoJdsTradesStatisticsGetAPIResponse struct { - model.CommonResponse - TaobaoJdsTradesStatisticsGetResponse -} - -// 获取订单数量统计结果 成功返回结果 -type TaobaoJdsTradesStatisticsGetResponse struct { - XMLName xml.Name `xml:"jds_trades_statistics_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单状态计数值 - StatusInfos []TradeStat `json:"status_infos,omitempty" xml:"status_infos>trade_stat,omitempty"` -} diff --git a/model/jst/TaobaoJstMiniappCrowdCreateAPIRequest.go b/model/jst/TaobaoJstMiniappCrowdCreateAPIRequest.go new file mode 100644 index 0000000000..89c5edb853 --- /dev/null +++ b/model/jst/TaobaoJstMiniappCrowdCreateAPIRequest.go @@ -0,0 +1,94 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +小程序活动创建 API请求 +taobao.jst.miniapp.crowd.create + +小程序活动创建 +*/ +type TaobaoJstMiniappCrowdCreateAPIRequest struct { + model.Params + // 活动开始时间,开始时间和结束时间不能超过1个月 + _endDate string + // 活动描述 + _description string + // 活动开始时间 + _startDate string + // 活动名称 + _crowdName string +} + +// 初始化TaobaoJstMiniappCrowdCreateAPIRequest对象 +func NewTaobaoJstMiniappCrowdCreateRequest() *TaobaoJstMiniappCrowdCreateAPIRequest{ + return &TaobaoJstMiniappCrowdCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstMiniappCrowdCreateAPIRequest) GetApiMethodName() string { + return "taobao.jst.miniapp.crowd.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstMiniappCrowdCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EndDate Setter +// 活动开始时间,开始时间和结束时间不能超过1个月 +func (r *TaobaoJstMiniappCrowdCreateAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoJstMiniappCrowdCreateAPIRequest) GetEndDate() string { + return r._endDate +} +// Description Setter +// 活动描述 +func (r *TaobaoJstMiniappCrowdCreateAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r TaobaoJstMiniappCrowdCreateAPIRequest) GetDescription() string { + return r._description +} +// StartDate Setter +// 活动开始时间 +func (r *TaobaoJstMiniappCrowdCreateAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoJstMiniappCrowdCreateAPIRequest) GetStartDate() string { + return r._startDate +} +// CrowdName Setter +// 活动名称 +func (r *TaobaoJstMiniappCrowdCreateAPIRequest) SetCrowdName(_crowdName string) error { + r._crowdName = _crowdName + r.Set("crowd_name", _crowdName) + return nil +} + +// CrowdName Getter +func (r TaobaoJstMiniappCrowdCreateAPIRequest) GetCrowdName() string { + return r._crowdName +} diff --git a/model/jst/TaobaoJstMiniappCrowdCreateAPIResponse.go b/model/jst/TaobaoJstMiniappCrowdCreateAPIResponse.go new file mode 100644 index 0000000000..0d8d9cc5fe --- /dev/null +++ b/model/jst/TaobaoJstMiniappCrowdCreateAPIResponse.go @@ -0,0 +1,29 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +小程序活动创建 API返回值 +taobao.jst.miniapp.crowd.create + +小程序活动创建 +*/ +type TaobaoJstMiniappCrowdCreateAPIResponse struct { + model.CommonResponse + TaobaoJstMiniappCrowdCreateAPIResponseModel +} + +// 小程序活动创建 成功返回结果 +type TaobaoJstMiniappCrowdCreateAPIResponseModel struct { + XMLName xml.Name `xml:"jst_miniapp_crowd_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 活动Code,活动的唯一标识 + Result string `json:"result,omitempty" xml:"result,omitempty"` + // 状态码 + RCode int64 `json:"r_code,omitempty" xml:"r_code,omitempty"` +} diff --git a/model/jst/TaobaoJstMiniappCrowdCreateResponse.go b/model/jst/TaobaoJstMiniappCrowdCreateResponse.go deleted file mode 100644 index b045a53338..0000000000 --- a/model/jst/TaobaoJstMiniappCrowdCreateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -小程序活动创建 API返回值 -taobao.jst.miniapp.crowd.create - -小程序活动创建 -*/ -type TaobaoJstMiniappCrowdCreateAPIResponse struct { - model.CommonResponse - TaobaoJstMiniappCrowdCreateResponse -} - -// 小程序活动创建 成功返回结果 -type TaobaoJstMiniappCrowdCreateResponse struct { - XMLName xml.Name `xml:"jst_miniapp_crowd_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 活动Code,活动的唯一标识 - Result string `json:"result,omitempty" xml:"result,omitempty"` - // 状态码 - RCode int64 `json:"r_code,omitempty" xml:"r_code,omitempty"` -} diff --git a/model/jst/TaobaoJstMiniappCrowdMessageSendAPIRequest.go b/model/jst/TaobaoJstMiniappCrowdMessageSendAPIRequest.go new file mode 100644 index 0000000000..d2c9640404 --- /dev/null +++ b/model/jst/TaobaoJstMiniappCrowdMessageSendAPIRequest.go @@ -0,0 +1,108 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +小程序活动短信发送 API请求 +taobao.jst.miniapp.crowd.message.send + +小程序活动短信发送 +*/ +type TaobaoJstMiniappCrowdMessageSendAPIRequest struct { + model.Params + // 短信签名 + _signName string + // 活动code + _crowdCode string + // 短信模板,必须为全变量模板 + _templateCode string + // 短信内容 + _content string + // 短信中携带的短链,会替换短信内容中的${url} + _url string +} + +// 初始化TaobaoJstMiniappCrowdMessageSendAPIRequest对象 +func NewTaobaoJstMiniappCrowdMessageSendRequest() *TaobaoJstMiniappCrowdMessageSendAPIRequest{ + return &TaobaoJstMiniappCrowdMessageSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstMiniappCrowdMessageSendAPIRequest) GetApiMethodName() string { + return "taobao.jst.miniapp.crowd.message.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstMiniappCrowdMessageSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SignName Setter +// 短信签名 +func (r *TaobaoJstMiniappCrowdMessageSendAPIRequest) SetSignName(_signName string) error { + r._signName = _signName + r.Set("sign_name", _signName) + return nil +} + +// SignName Getter +func (r TaobaoJstMiniappCrowdMessageSendAPIRequest) GetSignName() string { + return r._signName +} +// CrowdCode Setter +// 活动code +func (r *TaobaoJstMiniappCrowdMessageSendAPIRequest) SetCrowdCode(_crowdCode string) error { + r._crowdCode = _crowdCode + r.Set("crowd_code", _crowdCode) + return nil +} + +// CrowdCode Getter +func (r TaobaoJstMiniappCrowdMessageSendAPIRequest) GetCrowdCode() string { + return r._crowdCode +} +// TemplateCode Setter +// 短信模板,必须为全变量模板 +func (r *TaobaoJstMiniappCrowdMessageSendAPIRequest) SetTemplateCode(_templateCode string) error { + r._templateCode = _templateCode + r.Set("template_code", _templateCode) + return nil +} + +// TemplateCode Getter +func (r TaobaoJstMiniappCrowdMessageSendAPIRequest) GetTemplateCode() string { + return r._templateCode +} +// Content Setter +// 短信内容 +func (r *TaobaoJstMiniappCrowdMessageSendAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r TaobaoJstMiniappCrowdMessageSendAPIRequest) GetContent() string { + return r._content +} +// Url Setter +// 短信中携带的短链,会替换短信内容中的${url} +func (r *TaobaoJstMiniappCrowdMessageSendAPIRequest) SetUrl(_url string) error { + r._url = _url + r.Set("url", _url) + return nil +} + +// Url Getter +func (r TaobaoJstMiniappCrowdMessageSendAPIRequest) GetUrl() string { + return r._url +} diff --git a/model/jst/TaobaoJstMiniappCrowdMessageSendAPIResponse.go b/model/jst/TaobaoJstMiniappCrowdMessageSendAPIResponse.go new file mode 100644 index 0000000000..075ff1ccf4 --- /dev/null +++ b/model/jst/TaobaoJstMiniappCrowdMessageSendAPIResponse.go @@ -0,0 +1,29 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +小程序活动短信发送 API返回值 +taobao.jst.miniapp.crowd.message.send + +小程序活动短信发送 +*/ +type TaobaoJstMiniappCrowdMessageSendAPIResponse struct { + model.CommonResponse + TaobaoJstMiniappCrowdMessageSendAPIResponseModel +} + +// 小程序活动短信发送 成功返回结果 +type TaobaoJstMiniappCrowdMessageSendAPIResponseModel struct { + XMLName xml.Name `xml:"jst_miniapp_crowd_message_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 发送的短信条数 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` + // 发送成功 + RCode int64 `json:"r_code,omitempty" xml:"r_code,omitempty"` +} diff --git a/model/jst/TaobaoJstMiniappCrowdMessageSendResponse.go b/model/jst/TaobaoJstMiniappCrowdMessageSendResponse.go deleted file mode 100644 index 960914d117..0000000000 --- a/model/jst/TaobaoJstMiniappCrowdMessageSendResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -小程序活动短信发送 API返回值 -taobao.jst.miniapp.crowd.message.send - -小程序活动短信发送 -*/ -type TaobaoJstMiniappCrowdMessageSendAPIResponse struct { - model.CommonResponse - TaobaoJstMiniappCrowdMessageSendResponse -} - -// 小程序活动短信发送 成功返回结果 -type TaobaoJstMiniappCrowdMessageSendResponse struct { - XMLName xml.Name `xml:"jst_miniapp_crowd_message_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 发送的短信条数 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` - // 发送成功 - RCode int64 `json:"r_code,omitempty" xml:"r_code,omitempty"` -} diff --git a/model/jst/TaobaoJstMiniappCrowdUserAddAPIRequest.go b/model/jst/TaobaoJstMiniappCrowdUserAddAPIRequest.go new file mode 100644 index 0000000000..12734f8eae --- /dev/null +++ b/model/jst/TaobaoJstMiniappCrowdUserAddAPIRequest.go @@ -0,0 +1,80 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +小程序添加用户到指定的活动 API请求 +taobao.jst.miniapp.crowd.user.add + +小程序添加用户到指定的活动 +*/ +type TaobaoJstMiniappCrowdUserAddAPIRequest struct { + model.Params + // 活动code + _crowdCode string + // 小程序id + _mcGwSourceMiniAppId string + // 小程序appkey + _mcGwSourceAppKey string +} + +// 初始化TaobaoJstMiniappCrowdUserAddAPIRequest对象 +func NewTaobaoJstMiniappCrowdUserAddRequest() *TaobaoJstMiniappCrowdUserAddAPIRequest{ + return &TaobaoJstMiniappCrowdUserAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstMiniappCrowdUserAddAPIRequest) GetApiMethodName() string { + return "taobao.jst.miniapp.crowd.user.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstMiniappCrowdUserAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CrowdCode Setter +// 活动code +func (r *TaobaoJstMiniappCrowdUserAddAPIRequest) SetCrowdCode(_crowdCode string) error { + r._crowdCode = _crowdCode + r.Set("crowd_code", _crowdCode) + return nil +} + +// CrowdCode Getter +func (r TaobaoJstMiniappCrowdUserAddAPIRequest) GetCrowdCode() string { + return r._crowdCode +} +// McGwSourceMiniAppId Setter +// 小程序id +func (r *TaobaoJstMiniappCrowdUserAddAPIRequest) SetMcGwSourceMiniAppId(_mcGwSourceMiniAppId string) error { + r._mcGwSourceMiniAppId = _mcGwSourceMiniAppId + r.Set("mc_gw_source_mini_app_id", _mcGwSourceMiniAppId) + return nil +} + +// McGwSourceMiniAppId Getter +func (r TaobaoJstMiniappCrowdUserAddAPIRequest) GetMcGwSourceMiniAppId() string { + return r._mcGwSourceMiniAppId +} +// McGwSourceAppKey Setter +// 小程序appkey +func (r *TaobaoJstMiniappCrowdUserAddAPIRequest) SetMcGwSourceAppKey(_mcGwSourceAppKey string) error { + r._mcGwSourceAppKey = _mcGwSourceAppKey + r.Set("mc_gw_source_app_key", _mcGwSourceAppKey) + return nil +} + +// McGwSourceAppKey Getter +func (r TaobaoJstMiniappCrowdUserAddAPIRequest) GetMcGwSourceAppKey() string { + return r._mcGwSourceAppKey +} diff --git a/model/jst/TaobaoJstMiniappCrowdUserAddAPIResponse.go b/model/jst/TaobaoJstMiniappCrowdUserAddAPIResponse.go new file mode 100644 index 0000000000..a1891933cc --- /dev/null +++ b/model/jst/TaobaoJstMiniappCrowdUserAddAPIResponse.go @@ -0,0 +1,29 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +小程序添加用户到指定的活动 API返回值 +taobao.jst.miniapp.crowd.user.add + +小程序添加用户到指定的活动 +*/ +type TaobaoJstMiniappCrowdUserAddAPIResponse struct { + model.CommonResponse + TaobaoJstMiniappCrowdUserAddAPIResponseModel +} + +// 小程序添加用户到指定的活动 成功返回结果 +type TaobaoJstMiniappCrowdUserAddAPIResponseModel struct { + XMLName xml.Name `xml:"jst_miniapp_crowd_user_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 添加成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 请求成功 + RCode int64 `json:"r_code,omitempty" xml:"r_code,omitempty"` +} diff --git a/model/jst/TaobaoJstMiniappCrowdUserAddResponse.go b/model/jst/TaobaoJstMiniappCrowdUserAddResponse.go deleted file mode 100644 index 58a52ce44b..0000000000 --- a/model/jst/TaobaoJstMiniappCrowdUserAddResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -小程序添加用户到指定的活动 API返回值 -taobao.jst.miniapp.crowd.user.add - -小程序添加用户到指定的活动 -*/ -type TaobaoJstMiniappCrowdUserAddAPIResponse struct { - model.CommonResponse - TaobaoJstMiniappCrowdUserAddResponse -} - -// 小程序添加用户到指定的活动 成功返回结果 -type TaobaoJstMiniappCrowdUserAddResponse struct { - XMLName xml.Name `xml:"jst_miniapp_crowd_user_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 添加成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 请求成功 - RCode int64 `json:"r_code,omitempty" xml:"r_code,omitempty"` -} diff --git a/model/jst/TaobaoJstMiniappOpenidMessageSendAPIRequest.go b/model/jst/TaobaoJstMiniappOpenidMessageSendAPIRequest.go new file mode 100644 index 0000000000..1cb96fe674 --- /dev/null +++ b/model/jst/TaobaoJstMiniappOpenidMessageSendAPIRequest.go @@ -0,0 +1,150 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单个openId用户短信发送 API请求 +taobao.jst.miniapp.openid.message.send + +单个openId用户短信发送 +*/ +type TaobaoJstMiniappOpenidMessageSendAPIRequest struct { + model.Params + // 短信签名 + _signName string + // 用户openId + _openId string + // 短信模板 + _templateCode string + // 短信内容 + _content string + // 短链,替换短信内容中的${url} + _url string + // 商家的APPKEY,如果openId是用商家的appKey生成的则需要传递 + _sellerAppKey string + // 活动或人群code + _crowdCode string + // 短信拓展码 + _extendNum string +} + +// 初始化TaobaoJstMiniappOpenidMessageSendAPIRequest对象 +func NewTaobaoJstMiniappOpenidMessageSendRequest() *TaobaoJstMiniappOpenidMessageSendAPIRequest{ + return &TaobaoJstMiniappOpenidMessageSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstMiniappOpenidMessageSendAPIRequest) GetApiMethodName() string { + return "taobao.jst.miniapp.openid.message.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstMiniappOpenidMessageSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SignName Setter +// 短信签名 +func (r *TaobaoJstMiniappOpenidMessageSendAPIRequest) SetSignName(_signName string) error { + r._signName = _signName + r.Set("sign_name", _signName) + return nil +} + +// SignName Getter +func (r TaobaoJstMiniappOpenidMessageSendAPIRequest) GetSignName() string { + return r._signName +} +// OpenId Setter +// 用户openId +func (r *TaobaoJstMiniappOpenidMessageSendAPIRequest) SetOpenId(_openId string) error { + r._openId = _openId + r.Set("open_id", _openId) + return nil +} + +// OpenId Getter +func (r TaobaoJstMiniappOpenidMessageSendAPIRequest) GetOpenId() string { + return r._openId +} +// TemplateCode Setter +// 短信模板 +func (r *TaobaoJstMiniappOpenidMessageSendAPIRequest) SetTemplateCode(_templateCode string) error { + r._templateCode = _templateCode + r.Set("template_code", _templateCode) + return nil +} + +// TemplateCode Getter +func (r TaobaoJstMiniappOpenidMessageSendAPIRequest) GetTemplateCode() string { + return r._templateCode +} +// Content Setter +// 短信内容 +func (r *TaobaoJstMiniappOpenidMessageSendAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r TaobaoJstMiniappOpenidMessageSendAPIRequest) GetContent() string { + return r._content +} +// Url Setter +// 短链,替换短信内容中的${url} +func (r *TaobaoJstMiniappOpenidMessageSendAPIRequest) SetUrl(_url string) error { + r._url = _url + r.Set("url", _url) + return nil +} + +// Url Getter +func (r TaobaoJstMiniappOpenidMessageSendAPIRequest) GetUrl() string { + return r._url +} +// SellerAppKey Setter +// 商家的APPKEY,如果openId是用商家的appKey生成的则需要传递 +func (r *TaobaoJstMiniappOpenidMessageSendAPIRequest) SetSellerAppKey(_sellerAppKey string) error { + r._sellerAppKey = _sellerAppKey + r.Set("seller_app_key", _sellerAppKey) + return nil +} + +// SellerAppKey Getter +func (r TaobaoJstMiniappOpenidMessageSendAPIRequest) GetSellerAppKey() string { + return r._sellerAppKey +} +// CrowdCode Setter +// 活动或人群code +func (r *TaobaoJstMiniappOpenidMessageSendAPIRequest) SetCrowdCode(_crowdCode string) error { + r._crowdCode = _crowdCode + r.Set("crowd_code", _crowdCode) + return nil +} + +// CrowdCode Getter +func (r TaobaoJstMiniappOpenidMessageSendAPIRequest) GetCrowdCode() string { + return r._crowdCode +} +// ExtendNum Setter +// 短信拓展码 +func (r *TaobaoJstMiniappOpenidMessageSendAPIRequest) SetExtendNum(_extendNum string) error { + r._extendNum = _extendNum + r.Set("extend_num", _extendNum) + return nil +} + +// ExtendNum Getter +func (r TaobaoJstMiniappOpenidMessageSendAPIRequest) GetExtendNum() string { + return r._extendNum +} diff --git a/model/jst/TaobaoJstMiniappOpenidMessageSendAPIResponse.go b/model/jst/TaobaoJstMiniappOpenidMessageSendAPIResponse.go new file mode 100644 index 0000000000..e3d03ada6d --- /dev/null +++ b/model/jst/TaobaoJstMiniappOpenidMessageSendAPIResponse.go @@ -0,0 +1,31 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单个openId用户短信发送 API返回值 +taobao.jst.miniapp.openid.message.send + +单个openId用户短信发送 +*/ +type TaobaoJstMiniappOpenidMessageSendAPIResponse struct { + model.CommonResponse + TaobaoJstMiniappOpenidMessageSendAPIResponseModel +} + +// 单个openId用户短信发送 成功返回结果 +type TaobaoJstMiniappOpenidMessageSendAPIResponseModel struct { + XMLName xml.Name `xml:"jst_miniapp_openid_message_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 短信回执码 + Result string `json:"result,omitempty" xml:"result,omitempty"` + // 请求code + RCode int64 `json:"r_code,omitempty" xml:"r_code,omitempty"` + // 请求失败错误信息 + RErrMsg string `json:"r_err_msg,omitempty" xml:"r_err_msg,omitempty"` +} diff --git a/model/jst/TaobaoJstMiniappOpenidMessageSendResponse.go b/model/jst/TaobaoJstMiniappOpenidMessageSendResponse.go deleted file mode 100644 index ca0dc6ae2d..0000000000 --- a/model/jst/TaobaoJstMiniappOpenidMessageSendResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单个openId用户短信发送 API返回值 -taobao.jst.miniapp.openid.message.send - -单个openId用户短信发送 -*/ -type TaobaoJstMiniappOpenidMessageSendAPIResponse struct { - model.CommonResponse - TaobaoJstMiniappOpenidMessageSendResponse -} - -// 单个openId用户短信发送 成功返回结果 -type TaobaoJstMiniappOpenidMessageSendResponse struct { - XMLName xml.Name `xml:"jst_miniapp_openid_message_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 短信回执码 - Result string `json:"result,omitempty" xml:"result,omitempty"` - // 请求code - RCode int64 `json:"r_code,omitempty" xml:"r_code,omitempty"` - // 请求失败错误信息 - RErrMsg string `json:"r_err_msg,omitempty" xml:"r_err_msg,omitempty"` -} diff --git a/model/jst/TaobaoJstSmsExtendcodeQueryAPIRequest.go b/model/jst/TaobaoJstSmsExtendcodeQueryAPIRequest.go new file mode 100644 index 0000000000..abbab2ba70 --- /dev/null +++ b/model/jst/TaobaoJstSmsExtendcodeQueryAPIRequest.go @@ -0,0 +1,52 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔扩展码查询 API请求 +taobao.jst.sms.extendcode.query + +聚石塔扩展码查询 +*/ +type TaobaoJstSmsExtendcodeQueryAPIRequest struct { + model.Params + // 扩展码查询请求 + _extendCodeQueryRequest *ExtendCodeQueryRequest +} + +// 初始化TaobaoJstSmsExtendcodeQueryAPIRequest对象 +func NewTaobaoJstSmsExtendcodeQueryRequest() *TaobaoJstSmsExtendcodeQueryAPIRequest{ + return &TaobaoJstSmsExtendcodeQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstSmsExtendcodeQueryAPIRequest) GetApiMethodName() string { + return "taobao.jst.sms.extendcode.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstSmsExtendcodeQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExtendCodeQueryRequest Setter +// 扩展码查询请求 +func (r *TaobaoJstSmsExtendcodeQueryAPIRequest) SetExtendCodeQueryRequest(_extendCodeQueryRequest *ExtendCodeQueryRequest) error { + r._extendCodeQueryRequest = _extendCodeQueryRequest + r.Set("extend_code_query_request", _extendCodeQueryRequest) + return nil +} + +// ExtendCodeQueryRequest Getter +func (r TaobaoJstSmsExtendcodeQueryAPIRequest) GetExtendCodeQueryRequest() *ExtendCodeQueryRequest { + return r._extendCodeQueryRequest +} diff --git a/model/jst/TaobaoJstSmsExtendcodeQueryAPIResponse.go b/model/jst/TaobaoJstSmsExtendcodeQueryAPIResponse.go new file mode 100644 index 0000000000..bbcc101688 --- /dev/null +++ b/model/jst/TaobaoJstSmsExtendcodeQueryAPIResponse.go @@ -0,0 +1,35 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔扩展码查询 API返回值 +taobao.jst.sms.extendcode.query + +聚石塔扩展码查询 +*/ +type TaobaoJstSmsExtendcodeQueryAPIResponse struct { + model.CommonResponse + TaobaoJstSmsExtendcodeQueryAPIResponseModel +} + +// 聚石塔扩展码查询 成功返回结果 +type TaobaoJstSmsExtendcodeQueryAPIResponseModel struct { + XMLName xml.Name `xml:"jst_sms_extendcode_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统异常 + ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` + // 成功 + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` + // 请求id + ResponseId string `json:"response_id,omitempty" xml:"response_id,omitempty"` + // 成功 + Module string `json:"module,omitempty" xml:"module,omitempty"` + // 系统异常 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/jst/TaobaoJstSmsExtendcodeQueryResponse.go b/model/jst/TaobaoJstSmsExtendcodeQueryResponse.go deleted file mode 100644 index c217bfe7fb..0000000000 --- a/model/jst/TaobaoJstSmsExtendcodeQueryResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚石塔扩展码查询 API返回值 -taobao.jst.sms.extendcode.query - -聚石塔扩展码查询 -*/ -type TaobaoJstSmsExtendcodeQueryAPIResponse struct { - model.CommonResponse - TaobaoJstSmsExtendcodeQueryResponse -} - -// 聚石塔扩展码查询 成功返回结果 -type TaobaoJstSmsExtendcodeQueryResponse struct { - XMLName xml.Name `xml:"jst_sms_extendcode_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统异常 - ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` - // 成功 - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` - // 请求id - ResponseId string `json:"response_id,omitempty" xml:"response_id,omitempty"` - // 成功 - Module string `json:"module,omitempty" xml:"module,omitempty"` - // 系统异常 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/jst/TaobaoJstSmsMenuinfoReportAPIRequest.go b/model/jst/TaobaoJstSmsMenuinfoReportAPIRequest.go new file mode 100644 index 0000000000..143be74204 --- /dev/null +++ b/model/jst/TaobaoJstSmsMenuinfoReportAPIRequest.go @@ -0,0 +1,52 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔菜单信息上报 API请求 +taobao.jst.sms.menuinfo.report + +聚石塔菜单信息上报 +*/ +type TaobaoJstSmsMenuinfoReportAPIRequest struct { + model.Params + // 菜单信息上报接口的请求参数 + _menuInfoReportRequest *MenuInfoReportRequest +} + +// 初始化TaobaoJstSmsMenuinfoReportAPIRequest对象 +func NewTaobaoJstSmsMenuinfoReportRequest() *TaobaoJstSmsMenuinfoReportAPIRequest{ + return &TaobaoJstSmsMenuinfoReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstSmsMenuinfoReportAPIRequest) GetApiMethodName() string { + return "taobao.jst.sms.menuinfo.report" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstSmsMenuinfoReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MenuInfoReportRequest Setter +// 菜单信息上报接口的请求参数 +func (r *TaobaoJstSmsMenuinfoReportAPIRequest) SetMenuInfoReportRequest(_menuInfoReportRequest *MenuInfoReportRequest) error { + r._menuInfoReportRequest = _menuInfoReportRequest + r.Set("menu_info_report_request", _menuInfoReportRequest) + return nil +} + +// MenuInfoReportRequest Getter +func (r TaobaoJstSmsMenuinfoReportAPIRequest) GetMenuInfoReportRequest() *MenuInfoReportRequest { + return r._menuInfoReportRequest +} diff --git a/model/jst/TaobaoJstSmsMenuinfoReportAPIResponse.go b/model/jst/TaobaoJstSmsMenuinfoReportAPIResponse.go new file mode 100644 index 0000000000..3fddb0c95e --- /dev/null +++ b/model/jst/TaobaoJstSmsMenuinfoReportAPIResponse.go @@ -0,0 +1,35 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔菜单信息上报 API返回值 +taobao.jst.sms.menuinfo.report + +聚石塔菜单信息上报 +*/ +type TaobaoJstSmsMenuinfoReportAPIResponse struct { + model.CommonResponse + TaobaoJstSmsMenuinfoReportAPIResponseModel +} + +// 聚石塔菜单信息上报 成功返回结果 +type TaobaoJstSmsMenuinfoReportAPIResponseModel struct { + XMLName xml.Name `xml:"jst_sms_menuinfo_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统异常 + ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` + // 成功 + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` + // 请求id + ResponseId string `json:"response_id,omitempty" xml:"response_id,omitempty"` + // 成功 + Module bool `json:"module,omitempty" xml:"module,omitempty"` + // 系统异常 + ResponseMessage string `json:"response_message,omitempty" xml:"response_message,omitempty"` +} diff --git a/model/jst/TaobaoJstSmsMenuinfoReportResponse.go b/model/jst/TaobaoJstSmsMenuinfoReportResponse.go deleted file mode 100644 index 4b98957931..0000000000 --- a/model/jst/TaobaoJstSmsMenuinfoReportResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚石塔菜单信息上报 API返回值 -taobao.jst.sms.menuinfo.report - -聚石塔菜单信息上报 -*/ -type TaobaoJstSmsMenuinfoReportAPIResponse struct { - model.CommonResponse - TaobaoJstSmsMenuinfoReportResponse -} - -// 聚石塔菜单信息上报 成功返回结果 -type TaobaoJstSmsMenuinfoReportResponse struct { - XMLName xml.Name `xml:"jst_sms_menuinfo_report_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统异常 - ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` - // 成功 - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` - // 请求id - ResponseId string `json:"response_id,omitempty" xml:"response_id,omitempty"` - // 成功 - Module bool `json:"module,omitempty" xml:"module,omitempty"` - // 系统异常 - ResponseMessage string `json:"response_message,omitempty" xml:"response_message,omitempty"` -} diff --git a/model/jst/TaobaoJstSmsMessageDirectBatchsendAPIRequest.go b/model/jst/TaobaoJstSmsMessageDirectBatchsendAPIRequest.go new file mode 100644 index 0000000000..943d80fa49 --- /dev/null +++ b/model/jst/TaobaoJstSmsMessageDirectBatchsendAPIRequest.go @@ -0,0 +1,150 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔新短信发送接口 API请求 +taobao.jst.sms.message.direct.batchsend + +聚石塔所见即所得的短信发送接口 +*/ +type TaobaoJstSmsMessageDirectBatchsendAPIRequest struct { + model.Params + // 短信签名 + _signName string + // 短信中带的短链,如果不传则没有短信效果数据 + _url string + // 短信模版CODE,必须为全变量模板 + _smsTemplateCode string + // 短信接收号码,json格式,最多200个号码 + _recNum string + // 短信内容,如果带${url}则会被入参url替换 + _smsContent string + // 短信扩展码(JSON字符串数组格式),拓展码个数需要和电话号码个数一致。 + _extendNum string + // 短信任务code,没有请先创建。 + _taskCode string + // 一个在taskcode下唯一的随机字符串,对于taskSign相同的请求平台认为是商家的同一次短信发送。 + _taskSign string +} + +// 初始化TaobaoJstSmsMessageDirectBatchsendAPIRequest对象 +func NewTaobaoJstSmsMessageDirectBatchsendRequest() *TaobaoJstSmsMessageDirectBatchsendAPIRequest{ + return &TaobaoJstSmsMessageDirectBatchsendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstSmsMessageDirectBatchsendAPIRequest) GetApiMethodName() string { + return "taobao.jst.sms.message.direct.batchsend" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstSmsMessageDirectBatchsendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SignName Setter +// 短信签名 +func (r *TaobaoJstSmsMessageDirectBatchsendAPIRequest) SetSignName(_signName string) error { + r._signName = _signName + r.Set("sign_name", _signName) + return nil +} + +// SignName Getter +func (r TaobaoJstSmsMessageDirectBatchsendAPIRequest) GetSignName() string { + return r._signName +} +// Url Setter +// 短信中带的短链,如果不传则没有短信效果数据 +func (r *TaobaoJstSmsMessageDirectBatchsendAPIRequest) SetUrl(_url string) error { + r._url = _url + r.Set("url", _url) + return nil +} + +// Url Getter +func (r TaobaoJstSmsMessageDirectBatchsendAPIRequest) GetUrl() string { + return r._url +} +// SmsTemplateCode Setter +// 短信模版CODE,必须为全变量模板 +func (r *TaobaoJstSmsMessageDirectBatchsendAPIRequest) SetSmsTemplateCode(_smsTemplateCode string) error { + r._smsTemplateCode = _smsTemplateCode + r.Set("sms_template_code", _smsTemplateCode) + return nil +} + +// SmsTemplateCode Getter +func (r TaobaoJstSmsMessageDirectBatchsendAPIRequest) GetSmsTemplateCode() string { + return r._smsTemplateCode +} +// RecNum Setter +// 短信接收号码,json格式,最多200个号码 +func (r *TaobaoJstSmsMessageDirectBatchsendAPIRequest) SetRecNum(_recNum string) error { + r._recNum = _recNum + r.Set("rec_num", _recNum) + return nil +} + +// RecNum Getter +func (r TaobaoJstSmsMessageDirectBatchsendAPIRequest) GetRecNum() string { + return r._recNum +} +// SmsContent Setter +// 短信内容,如果带${url}则会被入参url替换 +func (r *TaobaoJstSmsMessageDirectBatchsendAPIRequest) SetSmsContent(_smsContent string) error { + r._smsContent = _smsContent + r.Set("sms_content", _smsContent) + return nil +} + +// SmsContent Getter +func (r TaobaoJstSmsMessageDirectBatchsendAPIRequest) GetSmsContent() string { + return r._smsContent +} +// ExtendNum Setter +// 短信扩展码(JSON字符串数组格式),拓展码个数需要和电话号码个数一致。 +func (r *TaobaoJstSmsMessageDirectBatchsendAPIRequest) SetExtendNum(_extendNum string) error { + r._extendNum = _extendNum + r.Set("extend_num", _extendNum) + return nil +} + +// ExtendNum Getter +func (r TaobaoJstSmsMessageDirectBatchsendAPIRequest) GetExtendNum() string { + return r._extendNum +} +// TaskCode Setter +// 短信任务code,没有请先创建。 +func (r *TaobaoJstSmsMessageDirectBatchsendAPIRequest) SetTaskCode(_taskCode string) error { + r._taskCode = _taskCode + r.Set("task_code", _taskCode) + return nil +} + +// TaskCode Getter +func (r TaobaoJstSmsMessageDirectBatchsendAPIRequest) GetTaskCode() string { + return r._taskCode +} +// TaskSign Setter +// 一个在taskcode下唯一的随机字符串,对于taskSign相同的请求平台认为是商家的同一次短信发送。 +func (r *TaobaoJstSmsMessageDirectBatchsendAPIRequest) SetTaskSign(_taskSign string) error { + r._taskSign = _taskSign + r.Set("task_sign", _taskSign) + return nil +} + +// TaskSign Getter +func (r TaobaoJstSmsMessageDirectBatchsendAPIRequest) GetTaskSign() string { + return r._taskSign +} diff --git a/model/jst/TaobaoJstSmsMessageDirectBatchsendAPIResponse.go b/model/jst/TaobaoJstSmsMessageDirectBatchsendAPIResponse.go new file mode 100644 index 0000000000..7788056b84 --- /dev/null +++ b/model/jst/TaobaoJstSmsMessageDirectBatchsendAPIResponse.go @@ -0,0 +1,27 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔新短信发送接口 API返回值 +taobao.jst.sms.message.direct.batchsend + +聚石塔所见即所得的短信发送接口 +*/ +type TaobaoJstSmsMessageDirectBatchsendAPIResponse struct { + model.CommonResponse + TaobaoJstSmsMessageDirectBatchsendAPIResponseModel +} + +// 聚石塔新短信发送接口 成功返回结果 +type TaobaoJstSmsMessageDirectBatchsendAPIResponseModel struct { + XMLName xml.Name `xml:"jst_sms_message_direct_batchsend_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 短信回执码 + Module string `json:"module,omitempty" xml:"module,omitempty"` +} diff --git a/model/jst/TaobaoJstSmsMessageDirectBatchsendResponse.go b/model/jst/TaobaoJstSmsMessageDirectBatchsendResponse.go deleted file mode 100644 index 9d49299121..0000000000 --- a/model/jst/TaobaoJstSmsMessageDirectBatchsendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚石塔新短信发送接口 API返回值 -taobao.jst.sms.message.direct.batchsend - -聚石塔所见即所得的短信发送接口 -*/ -type TaobaoJstSmsMessageDirectBatchsendAPIResponse struct { - model.CommonResponse - TaobaoJstSmsMessageDirectBatchsendResponse -} - -// 聚石塔新短信发送接口 成功返回结果 -type TaobaoJstSmsMessageDirectBatchsendResponse struct { - XMLName xml.Name `xml:"jst_sms_message_direct_batchsend_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 短信回执码 - Module string `json:"module,omitempty" xml:"module,omitempty"` -} diff --git a/model/jst/TaobaoJstSmsMessageSendAPIRequest.go b/model/jst/TaobaoJstSmsMessageSendAPIRequest.go new file mode 100644 index 0000000000..b6603bdf8b --- /dev/null +++ b/model/jst/TaobaoJstSmsMessageSendAPIRequest.go @@ -0,0 +1,52 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔数据paas短信发送接口 API请求 +taobao.jst.sms.message.send + +聚石塔短信PAAS场景中,ISV通过该API帮商家发送短信给用户。 +*/ +type TaobaoJstSmsMessageSendAPIRequest struct { + model.Params + // 短信发送请求 + _sendMessageRequest *SendMessageRequest +} + +// 初始化TaobaoJstSmsMessageSendAPIRequest对象 +func NewTaobaoJstSmsMessageSendRequest() *TaobaoJstSmsMessageSendAPIRequest{ + return &TaobaoJstSmsMessageSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstSmsMessageSendAPIRequest) GetApiMethodName() string { + return "taobao.jst.sms.message.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstSmsMessageSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SendMessageRequest Setter +// 短信发送请求 +func (r *TaobaoJstSmsMessageSendAPIRequest) SetSendMessageRequest(_sendMessageRequest *SendMessageRequest) error { + r._sendMessageRequest = _sendMessageRequest + r.Set("send_message_request", _sendMessageRequest) + return nil +} + +// SendMessageRequest Getter +func (r TaobaoJstSmsMessageSendAPIRequest) GetSendMessageRequest() *SendMessageRequest { + return r._sendMessageRequest +} diff --git a/model/jst/TaobaoJstSmsMessageSendAPIResponse.go b/model/jst/TaobaoJstSmsMessageSendAPIResponse.go new file mode 100644 index 0000000000..689fca7511 --- /dev/null +++ b/model/jst/TaobaoJstSmsMessageSendAPIResponse.go @@ -0,0 +1,33 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔数据paas短信发送接口 API返回值 +taobao.jst.sms.message.send + +聚石塔短信PAAS场景中,ISV通过该API帮商家发送短信给用户。 +*/ +type TaobaoJstSmsMessageSendAPIResponse struct { + model.CommonResponse + TaobaoJstSmsMessageSendAPIResponseModel +} + +// 聚石塔数据paas短信发送接口 成功返回结果 +type TaobaoJstSmsMessageSendAPIResponseModel struct { + XMLName xml.Name `xml:"jst_sms_message_send_response"` + // 参数错误 + RequestCode string `json:"request_code,omitempty" xml:"request_code,omitempty"` + // 请求成功 + RequestSuccess bool `json:"request_success,omitempty" xml:"request_success,omitempty"` + // 1234 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 空 + Module string `json:"module,omitempty" xml:"module,omitempty"` + // 参数错误 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/jst/TaobaoJstSmsMessageSendResponse.go b/model/jst/TaobaoJstSmsMessageSendResponse.go deleted file mode 100644 index 98d08f87a2..0000000000 --- a/model/jst/TaobaoJstSmsMessageSendResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚石塔数据paas短信发送接口 API返回值 -taobao.jst.sms.message.send - -聚石塔短信PAAS场景中,ISV通过该API帮商家发送短信给用户。 -*/ -type TaobaoJstSmsMessageSendAPIResponse struct { - model.CommonResponse - TaobaoJstSmsMessageSendResponse -} - -// 聚石塔数据paas短信发送接口 成功返回结果 -type TaobaoJstSmsMessageSendResponse struct { - XMLName xml.Name `xml:"jst_sms_message_send_response"` - // 参数错误 - RequestCode string `json:"request_code,omitempty" xml:"request_code,omitempty"` - // 请求成功 - RequestSuccess bool `json:"request_success,omitempty" xml:"request_success,omitempty"` - // 1234 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 空 - Module string `json:"module,omitempty" xml:"module,omitempty"` - // 参数错误 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/jst/TaobaoJstSmsMessageShorturlCreateAPIRequest.go b/model/jst/TaobaoJstSmsMessageShorturlCreateAPIRequest.go new file mode 100644 index 0000000000..741803818c --- /dev/null +++ b/model/jst/TaobaoJstSmsMessageShorturlCreateAPIRequest.go @@ -0,0 +1,94 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔营销效果短链生成 API请求 +taobao.jst.sms.message.shorturl.create + +聚石塔生成淘短链接口 +*/ +type TaobaoJstSmsMessageShorturlCreateAPIRequest struct { + model.Params + // 是否需要https前缀: true-要 false-不要 + _needHttpsPrefix bool + // 人群标签 + _tag string + // 商品或者店铺的H5地址,只支持长链 + _url string + // 批次号 + _batchNumber string +} + +// 初始化TaobaoJstSmsMessageShorturlCreateAPIRequest对象 +func NewTaobaoJstSmsMessageShorturlCreateRequest() *TaobaoJstSmsMessageShorturlCreateAPIRequest{ + return &TaobaoJstSmsMessageShorturlCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstSmsMessageShorturlCreateAPIRequest) GetApiMethodName() string { + return "taobao.jst.sms.message.shorturl.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstSmsMessageShorturlCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NeedHttpsPrefix Setter +// 是否需要https前缀: true-要 false-不要 +func (r *TaobaoJstSmsMessageShorturlCreateAPIRequest) SetNeedHttpsPrefix(_needHttpsPrefix bool) error { + r._needHttpsPrefix = _needHttpsPrefix + r.Set("need_https_prefix", _needHttpsPrefix) + return nil +} + +// NeedHttpsPrefix Getter +func (r TaobaoJstSmsMessageShorturlCreateAPIRequest) GetNeedHttpsPrefix() bool { + return r._needHttpsPrefix +} +// Tag Setter +// 人群标签 +func (r *TaobaoJstSmsMessageShorturlCreateAPIRequest) SetTag(_tag string) error { + r._tag = _tag + r.Set("tag", _tag) + return nil +} + +// Tag Getter +func (r TaobaoJstSmsMessageShorturlCreateAPIRequest) GetTag() string { + return r._tag +} +// Url Setter +// 商品或者店铺的H5地址,只支持长链 +func (r *TaobaoJstSmsMessageShorturlCreateAPIRequest) SetUrl(_url string) error { + r._url = _url + r.Set("url", _url) + return nil +} + +// Url Getter +func (r TaobaoJstSmsMessageShorturlCreateAPIRequest) GetUrl() string { + return r._url +} +// BatchNumber Setter +// 批次号 +func (r *TaobaoJstSmsMessageShorturlCreateAPIRequest) SetBatchNumber(_batchNumber string) error { + r._batchNumber = _batchNumber + r.Set("batch_number", _batchNumber) + return nil +} + +// BatchNumber Getter +func (r TaobaoJstSmsMessageShorturlCreateAPIRequest) GetBatchNumber() string { + return r._batchNumber +} diff --git a/model/jst/TaobaoJstSmsMessageShorturlCreateAPIResponse.go b/model/jst/TaobaoJstSmsMessageShorturlCreateAPIResponse.go new file mode 100644 index 0000000000..85238a3bef --- /dev/null +++ b/model/jst/TaobaoJstSmsMessageShorturlCreateAPIResponse.go @@ -0,0 +1,35 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔营销效果短链生成 API返回值 +taobao.jst.sms.message.shorturl.create + +聚石塔生成淘短链接口 +*/ +type TaobaoJstSmsMessageShorturlCreateAPIResponse struct { + model.CommonResponse + TaobaoJstSmsMessageShorturlCreateAPIResponseModel +} + +// 聚石塔营销效果短链生成 成功返回结果 +type TaobaoJstSmsMessageShorturlCreateAPIResponseModel struct { + XMLName xml.Name `xml:"jst_sms_message_shorturl_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功 + RCode string `json:"r_code,omitempty" xml:"r_code,omitempty"` + // 成功 + RSuccess bool `json:"r_success,omitempty" xml:"r_success,omitempty"` + // 请求ID + RRequestId string `json:"r_request_id,omitempty" xml:"r_request_id,omitempty"` + // 短链值(短链的有效期为2个月) + Module string `json:"module,omitempty" xml:"module,omitempty"` + // 请求失败时的错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/jst/TaobaoJstSmsMessageShorturlCreateResponse.go b/model/jst/TaobaoJstSmsMessageShorturlCreateResponse.go deleted file mode 100644 index cbd26446df..0000000000 --- a/model/jst/TaobaoJstSmsMessageShorturlCreateResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚石塔营销效果短链生成 API返回值 -taobao.jst.sms.message.shorturl.create - -聚石塔生成淘短链接口 -*/ -type TaobaoJstSmsMessageShorturlCreateAPIResponse struct { - model.CommonResponse - TaobaoJstSmsMessageShorturlCreateResponse -} - -// 聚石塔营销效果短链生成 成功返回结果 -type TaobaoJstSmsMessageShorturlCreateResponse struct { - XMLName xml.Name `xml:"jst_sms_message_shorturl_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功 - RCode string `json:"r_code,omitempty" xml:"r_code,omitempty"` - // 成功 - RSuccess bool `json:"r_success,omitempty" xml:"r_success,omitempty"` - // 请求ID - RRequestId string `json:"r_request_id,omitempty" xml:"r_request_id,omitempty"` - // 短链值(短链的有效期为2个月) - Module string `json:"module,omitempty" xml:"module,omitempty"` - // 请求失败时的错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/jst/TaobaoJstSmsMessageShorturlQueryAPIRequest.go b/model/jst/TaobaoJstSmsMessageShorturlQueryAPIRequest.go new file mode 100644 index 0000000000..1cd5bc42bc --- /dev/null +++ b/model/jst/TaobaoJstSmsMessageShorturlQueryAPIRequest.go @@ -0,0 +1,52 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔短链信息查询 API请求 +taobao.jst.sms.message.shorturl.query + +聚石塔短链信息查询 +*/ +type TaobaoJstSmsMessageShorturlQueryAPIRequest struct { + model.Params + // 短链名,即域名后的字符串 + _shortName string +} + +// 初始化TaobaoJstSmsMessageShorturlQueryAPIRequest对象 +func NewTaobaoJstSmsMessageShorturlQueryRequest() *TaobaoJstSmsMessageShorturlQueryAPIRequest{ + return &TaobaoJstSmsMessageShorturlQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstSmsMessageShorturlQueryAPIRequest) GetApiMethodName() string { + return "taobao.jst.sms.message.shorturl.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstSmsMessageShorturlQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShortName Setter +// 短链名,即域名后的字符串 +func (r *TaobaoJstSmsMessageShorturlQueryAPIRequest) SetShortName(_shortName string) error { + r._shortName = _shortName + r.Set("short_name", _shortName) + return nil +} + +// ShortName Getter +func (r TaobaoJstSmsMessageShorturlQueryAPIRequest) GetShortName() string { + return r._shortName +} diff --git a/model/jst/TaobaoJstSmsMessageShorturlQueryAPIResponse.go b/model/jst/TaobaoJstSmsMessageShorturlQueryAPIResponse.go new file mode 100644 index 0000000000..72204d3568 --- /dev/null +++ b/model/jst/TaobaoJstSmsMessageShorturlQueryAPIResponse.go @@ -0,0 +1,37 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔短链信息查询 API返回值 +taobao.jst.sms.message.shorturl.query + +聚石塔短链信息查询 +*/ +type TaobaoJstSmsMessageShorturlQueryAPIResponse struct { + model.CommonResponse + TaobaoJstSmsMessageShorturlQueryAPIResponseModel +} + +// 聚石塔短链信息查询 成功返回结果 +type TaobaoJstSmsMessageShorturlQueryAPIResponseModel struct { + XMLName xml.Name `xml:"jst_sms_message_shorturl_query_response"` + // 请求成功 + RCode string `json:"r_code,omitempty" xml:"r_code,omitempty"` + // 成功 + RSuccess bool `json:"r_success,omitempty" xml:"r_success,omitempty"` + // TOP请求ID + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 短链名 + ShortName string `json:"short_name,omitempty" xml:"short_name,omitempty"` + // 短链失效时间 + LifeEnd string `json:"life_end,omitempty" xml:"life_end,omitempty"` + // 短链生成时间 + LifeStart string `json:"life_start,omitempty" xml:"life_start,omitempty"` + // 查询短链信息失败 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/jst/TaobaoJstSmsMessageShorturlQueryResponse.go b/model/jst/TaobaoJstSmsMessageShorturlQueryResponse.go deleted file mode 100644 index bc12bd7101..0000000000 --- a/model/jst/TaobaoJstSmsMessageShorturlQueryResponse.go +++ /dev/null @@ -1,37 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚石塔短链信息查询 API返回值 -taobao.jst.sms.message.shorturl.query - -聚石塔短链信息查询 -*/ -type TaobaoJstSmsMessageShorturlQueryAPIResponse struct { - model.CommonResponse - TaobaoJstSmsMessageShorturlQueryResponse -} - -// 聚石塔短链信息查询 成功返回结果 -type TaobaoJstSmsMessageShorturlQueryResponse struct { - XMLName xml.Name `xml:"jst_sms_message_shorturl_query_response"` - // 请求成功 - RCode string `json:"r_code,omitempty" xml:"r_code,omitempty"` - // 成功 - RSuccess bool `json:"r_success,omitempty" xml:"r_success,omitempty"` - // TOP请求ID - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 短链名 - ShortName string `json:"short_name,omitempty" xml:"short_name,omitempty"` - // 短链失效时间 - LifeEnd string `json:"life_end,omitempty" xml:"life_end,omitempty"` - // 短链生成时间 - LifeStart string `json:"life_start,omitempty" xml:"life_start,omitempty"` - // 查询短链信息失败 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/jst/TaobaoJstSmsOfficialaccountCancelAPIRequest.go b/model/jst/TaobaoJstSmsOfficialaccountCancelAPIRequest.go new file mode 100644 index 0000000000..c5bc8e90f5 --- /dev/null +++ b/model/jst/TaobaoJstSmsOfficialaccountCancelAPIRequest.go @@ -0,0 +1,52 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔取消公众号订购 API请求 +taobao.jst.sms.officialaccount.cancel + +聚石塔取消公众号订购 +*/ +type TaobaoJstSmsOfficialaccountCancelAPIRequest struct { + model.Params + // 取消公众号订购请求 + _cancelOrderRequest *CancelOrderRequest +} + +// 初始化TaobaoJstSmsOfficialaccountCancelAPIRequest对象 +func NewTaobaoJstSmsOfficialaccountCancelRequest() *TaobaoJstSmsOfficialaccountCancelAPIRequest{ + return &TaobaoJstSmsOfficialaccountCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstSmsOfficialaccountCancelAPIRequest) GetApiMethodName() string { + return "taobao.jst.sms.officialaccount.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstSmsOfficialaccountCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CancelOrderRequest Setter +// 取消公众号订购请求 +func (r *TaobaoJstSmsOfficialaccountCancelAPIRequest) SetCancelOrderRequest(_cancelOrderRequest *CancelOrderRequest) error { + r._cancelOrderRequest = _cancelOrderRequest + r.Set("cancel_order_request", _cancelOrderRequest) + return nil +} + +// CancelOrderRequest Getter +func (r TaobaoJstSmsOfficialaccountCancelAPIRequest) GetCancelOrderRequest() *CancelOrderRequest { + return r._cancelOrderRequest +} diff --git a/model/jst/TaobaoJstSmsOfficialaccountCancelAPIResponse.go b/model/jst/TaobaoJstSmsOfficialaccountCancelAPIResponse.go new file mode 100644 index 0000000000..b6b7815c97 --- /dev/null +++ b/model/jst/TaobaoJstSmsOfficialaccountCancelAPIResponse.go @@ -0,0 +1,35 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔取消公众号订购 API返回值 +taobao.jst.sms.officialaccount.cancel + +聚石塔取消公众号订购 +*/ +type TaobaoJstSmsOfficialaccountCancelAPIResponse struct { + model.CommonResponse + TaobaoJstSmsOfficialaccountCancelAPIResponseModel +} + +// 聚石塔取消公众号订购 成功返回结果 +type TaobaoJstSmsOfficialaccountCancelAPIResponseModel struct { + XMLName xml.Name `xml:"jst_sms_officialaccount_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统异常 + ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` + // 成功 + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` + // 请求id + ResponseId string `json:"response_id,omitempty" xml:"response_id,omitempty"` + // 成功 + Module bool `json:"module,omitempty" xml:"module,omitempty"` + // 系统异常 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/jst/TaobaoJstSmsOfficialaccountCancelResponse.go b/model/jst/TaobaoJstSmsOfficialaccountCancelResponse.go deleted file mode 100644 index 165da95f64..0000000000 --- a/model/jst/TaobaoJstSmsOfficialaccountCancelResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚石塔取消公众号订购 API返回值 -taobao.jst.sms.officialaccount.cancel - -聚石塔取消公众号订购 -*/ -type TaobaoJstSmsOfficialaccountCancelAPIResponse struct { - model.CommonResponse - TaobaoJstSmsOfficialaccountCancelResponse -} - -// 聚石塔取消公众号订购 成功返回结果 -type TaobaoJstSmsOfficialaccountCancelResponse struct { - XMLName xml.Name `xml:"jst_sms_officialaccount_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统异常 - ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` - // 成功 - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` - // 请求id - ResponseId string `json:"response_id,omitempty" xml:"response_id,omitempty"` - // 成功 - Module bool `json:"module,omitempty" xml:"module,omitempty"` - // 系统异常 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/jst/TaobaoJstSmsOfficialaccountOfflineAPIRequest.go b/model/jst/TaobaoJstSmsOfficialaccountOfflineAPIRequest.go new file mode 100644 index 0000000000..ba6437547a --- /dev/null +++ b/model/jst/TaobaoJstSmsOfficialaccountOfflineAPIRequest.go @@ -0,0 +1,52 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔公众号下线 API请求 +taobao.jst.sms.officialaccount.offline + +聚石塔公众号下线 +*/ +type TaobaoJstSmsOfficialaccountOfflineAPIRequest struct { + model.Params + // 公众号下线请求 + _officialAccountOffline *JstBaseRequest +} + +// 初始化TaobaoJstSmsOfficialaccountOfflineAPIRequest对象 +func NewTaobaoJstSmsOfficialaccountOfflineRequest() *TaobaoJstSmsOfficialaccountOfflineAPIRequest{ + return &TaobaoJstSmsOfficialaccountOfflineAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstSmsOfficialaccountOfflineAPIRequest) GetApiMethodName() string { + return "taobao.jst.sms.officialaccount.offline" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstSmsOfficialaccountOfflineAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OfficialAccountOffline Setter +// 公众号下线请求 +func (r *TaobaoJstSmsOfficialaccountOfflineAPIRequest) SetOfficialAccountOffline(_officialAccountOffline *JstBaseRequest) error { + r._officialAccountOffline = _officialAccountOffline + r.Set("official_account_offline", _officialAccountOffline) + return nil +} + +// OfficialAccountOffline Getter +func (r TaobaoJstSmsOfficialaccountOfflineAPIRequest) GetOfficialAccountOffline() *JstBaseRequest { + return r._officialAccountOffline +} diff --git a/model/jst/TaobaoJstSmsOfficialaccountOfflineAPIResponse.go b/model/jst/TaobaoJstSmsOfficialaccountOfflineAPIResponse.go new file mode 100644 index 0000000000..c9236c8b87 --- /dev/null +++ b/model/jst/TaobaoJstSmsOfficialaccountOfflineAPIResponse.go @@ -0,0 +1,35 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔公众号下线 API返回值 +taobao.jst.sms.officialaccount.offline + +聚石塔公众号下线 +*/ +type TaobaoJstSmsOfficialaccountOfflineAPIResponse struct { + model.CommonResponse + TaobaoJstSmsOfficialaccountOfflineAPIResponseModel +} + +// 聚石塔公众号下线 成功返回结果 +type TaobaoJstSmsOfficialaccountOfflineAPIResponseModel struct { + XMLName xml.Name `xml:"jst_sms_officialaccount_offline_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统异常 + ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` + // 成功 + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` + // 请求id + ResponseId string `json:"response_id,omitempty" xml:"response_id,omitempty"` + // 成功 + Module bool `json:"module,omitempty" xml:"module,omitempty"` + // 系统异常 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/jst/TaobaoJstSmsOfficialaccountOfflineResponse.go b/model/jst/TaobaoJstSmsOfficialaccountOfflineResponse.go deleted file mode 100644 index 30be908626..0000000000 --- a/model/jst/TaobaoJstSmsOfficialaccountOfflineResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚石塔公众号下线 API返回值 -taobao.jst.sms.officialaccount.offline - -聚石塔公众号下线 -*/ -type TaobaoJstSmsOfficialaccountOfflineAPIResponse struct { - model.CommonResponse - TaobaoJstSmsOfficialaccountOfflineResponse -} - -// 聚石塔公众号下线 成功返回结果 -type TaobaoJstSmsOfficialaccountOfflineResponse struct { - XMLName xml.Name `xml:"jst_sms_officialaccount_offline_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统异常 - ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` - // 成功 - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` - // 请求id - ResponseId string `json:"response_id,omitempty" xml:"response_id,omitempty"` - // 成功 - Module bool `json:"module,omitempty" xml:"module,omitempty"` - // 系统异常 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/jst/TaobaoJstSmsOfficialaccountOnlineAPIRequest.go b/model/jst/TaobaoJstSmsOfficialaccountOnlineAPIRequest.go new file mode 100644 index 0000000000..84b2accc99 --- /dev/null +++ b/model/jst/TaobaoJstSmsOfficialaccountOnlineAPIRequest.go @@ -0,0 +1,52 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔公众号上线 API请求 +taobao.jst.sms.officialaccount.online + +聚石塔公众号上线 +*/ +type TaobaoJstSmsOfficialaccountOnlineAPIRequest struct { + model.Params + // 公众号上线请求参数 + _officialAccountOnlineRequest *JstBaseRequest +} + +// 初始化TaobaoJstSmsOfficialaccountOnlineAPIRequest对象 +func NewTaobaoJstSmsOfficialaccountOnlineRequest() *TaobaoJstSmsOfficialaccountOnlineAPIRequest{ + return &TaobaoJstSmsOfficialaccountOnlineAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstSmsOfficialaccountOnlineAPIRequest) GetApiMethodName() string { + return "taobao.jst.sms.officialaccount.online" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstSmsOfficialaccountOnlineAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OfficialAccountOnlineRequest Setter +// 公众号上线请求参数 +func (r *TaobaoJstSmsOfficialaccountOnlineAPIRequest) SetOfficialAccountOnlineRequest(_officialAccountOnlineRequest *JstBaseRequest) error { + r._officialAccountOnlineRequest = _officialAccountOnlineRequest + r.Set("official_account_online_request", _officialAccountOnlineRequest) + return nil +} + +// OfficialAccountOnlineRequest Getter +func (r TaobaoJstSmsOfficialaccountOnlineAPIRequest) GetOfficialAccountOnlineRequest() *JstBaseRequest { + return r._officialAccountOnlineRequest +} diff --git a/model/jst/TaobaoJstSmsOfficialaccountOnlineAPIResponse.go b/model/jst/TaobaoJstSmsOfficialaccountOnlineAPIResponse.go new file mode 100644 index 0000000000..1b2c299bcf --- /dev/null +++ b/model/jst/TaobaoJstSmsOfficialaccountOnlineAPIResponse.go @@ -0,0 +1,35 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔公众号上线 API返回值 +taobao.jst.sms.officialaccount.online + +聚石塔公众号上线 +*/ +type TaobaoJstSmsOfficialaccountOnlineAPIResponse struct { + model.CommonResponse + TaobaoJstSmsOfficialaccountOnlineAPIResponseModel +} + +// 聚石塔公众号上线 成功返回结果 +type TaobaoJstSmsOfficialaccountOnlineAPIResponseModel struct { + XMLName xml.Name `xml:"jst_sms_officialaccount_online_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统异常 + ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` + // 成功 + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` + // 请求id + ResponseId string `json:"response_id,omitempty" xml:"response_id,omitempty"` + // 成功 + Module bool `json:"module,omitempty" xml:"module,omitempty"` + // 系统异常 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/jst/TaobaoJstSmsOfficialaccountOnlineResponse.go b/model/jst/TaobaoJstSmsOfficialaccountOnlineResponse.go deleted file mode 100644 index 469c885ad0..0000000000 --- a/model/jst/TaobaoJstSmsOfficialaccountOnlineResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚石塔公众号上线 API返回值 -taobao.jst.sms.officialaccount.online - -聚石塔公众号上线 -*/ -type TaobaoJstSmsOfficialaccountOnlineAPIResponse struct { - model.CommonResponse - TaobaoJstSmsOfficialaccountOnlineResponse -} - -// 聚石塔公众号上线 成功返回结果 -type TaobaoJstSmsOfficialaccountOnlineResponse struct { - XMLName xml.Name `xml:"jst_sms_officialaccount_online_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统异常 - ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` - // 成功 - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` - // 请求id - ResponseId string `json:"response_id,omitempty" xml:"response_id,omitempty"` - // 成功 - Module bool `json:"module,omitempty" xml:"module,omitempty"` - // 系统异常 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/jst/TaobaoJstSmsOfficialaccountOrderAPIRequest.go b/model/jst/TaobaoJstSmsOfficialaccountOrderAPIRequest.go new file mode 100644 index 0000000000..3e1af1144a --- /dev/null +++ b/model/jst/TaobaoJstSmsOfficialaccountOrderAPIRequest.go @@ -0,0 +1,52 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔订购公众号 API请求 +taobao.jst.sms.officialaccount.order + +聚石塔订购公众号接口 +*/ +type TaobaoJstSmsOfficialaccountOrderAPIRequest struct { + model.Params + // 聚石塔公众号订购 + _orderOfficialAccountRequest *OrderOfficialAccountRequest +} + +// 初始化TaobaoJstSmsOfficialaccountOrderAPIRequest对象 +func NewTaobaoJstSmsOfficialaccountOrderRequest() *TaobaoJstSmsOfficialaccountOrderAPIRequest{ + return &TaobaoJstSmsOfficialaccountOrderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstSmsOfficialaccountOrderAPIRequest) GetApiMethodName() string { + return "taobao.jst.sms.officialaccount.order" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstSmsOfficialaccountOrderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderOfficialAccountRequest Setter +// 聚石塔公众号订购 +func (r *TaobaoJstSmsOfficialaccountOrderAPIRequest) SetOrderOfficialAccountRequest(_orderOfficialAccountRequest *OrderOfficialAccountRequest) error { + r._orderOfficialAccountRequest = _orderOfficialAccountRequest + r.Set("order_official_account_request", _orderOfficialAccountRequest) + return nil +} + +// OrderOfficialAccountRequest Getter +func (r TaobaoJstSmsOfficialaccountOrderAPIRequest) GetOrderOfficialAccountRequest() *OrderOfficialAccountRequest { + return r._orderOfficialAccountRequest +} diff --git a/model/jst/TaobaoJstSmsOfficialaccountOrderAPIResponse.go b/model/jst/TaobaoJstSmsOfficialaccountOrderAPIResponse.go new file mode 100644 index 0000000000..7270b8c45e --- /dev/null +++ b/model/jst/TaobaoJstSmsOfficialaccountOrderAPIResponse.go @@ -0,0 +1,35 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔订购公众号 API返回值 +taobao.jst.sms.officialaccount.order + +聚石塔订购公众号接口 +*/ +type TaobaoJstSmsOfficialaccountOrderAPIResponse struct { + model.CommonResponse + TaobaoJstSmsOfficialaccountOrderAPIResponseModel +} + +// 聚石塔订购公众号 成功返回结果 +type TaobaoJstSmsOfficialaccountOrderAPIResponseModel struct { + XMLName xml.Name `xml:"jst_sms_officialaccount_order_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统异常 + ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` + // 成功 + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` + // 请求id + ResponseId string `json:"response_id,omitempty" xml:"response_id,omitempty"` + // 上报成功 + Module bool `json:"module,omitempty" xml:"module,omitempty"` + // 系统异常 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/jst/TaobaoJstSmsOfficialaccountOrderResponse.go b/model/jst/TaobaoJstSmsOfficialaccountOrderResponse.go deleted file mode 100644 index 276b0e8e46..0000000000 --- a/model/jst/TaobaoJstSmsOfficialaccountOrderResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚石塔订购公众号 API返回值 -taobao.jst.sms.officialaccount.order - -聚石塔订购公众号接口 -*/ -type TaobaoJstSmsOfficialaccountOrderAPIResponse struct { - model.CommonResponse - TaobaoJstSmsOfficialaccountOrderResponse -} - -// 聚石塔订购公众号 成功返回结果 -type TaobaoJstSmsOfficialaccountOrderResponse struct { - XMLName xml.Name `xml:"jst_sms_officialaccount_order_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统异常 - ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` - // 成功 - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` - // 请求id - ResponseId string `json:"response_id,omitempty" xml:"response_id,omitempty"` - // 上报成功 - Module bool `json:"module,omitempty" xml:"module,omitempty"` - // 系统异常 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/jst/TaobaoJstSmsOfficialaccountReportAPIRequest.go b/model/jst/TaobaoJstSmsOfficialaccountReportAPIRequest.go new file mode 100644 index 0000000000..2cacc33204 --- /dev/null +++ b/model/jst/TaobaoJstSmsOfficialaccountReportAPIRequest.go @@ -0,0 +1,52 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔公众号信息上报 API请求 +taobao.jst.sms.officialaccount.report + +聚石塔公众号信息上报 +*/ +type TaobaoJstSmsOfficialaccountReportAPIRequest struct { + model.Params + // 公众号信息上报接口入参 + _officialAccountInfoReportRequest *OfficialAccountInfoReportRequest +} + +// 初始化TaobaoJstSmsOfficialaccountReportAPIRequest对象 +func NewTaobaoJstSmsOfficialaccountReportRequest() *TaobaoJstSmsOfficialaccountReportAPIRequest{ + return &TaobaoJstSmsOfficialaccountReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstSmsOfficialaccountReportAPIRequest) GetApiMethodName() string { + return "taobao.jst.sms.officialaccount.report" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstSmsOfficialaccountReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OfficialAccountInfoReportRequest Setter +// 公众号信息上报接口入参 +func (r *TaobaoJstSmsOfficialaccountReportAPIRequest) SetOfficialAccountInfoReportRequest(_officialAccountInfoReportRequest *OfficialAccountInfoReportRequest) error { + r._officialAccountInfoReportRequest = _officialAccountInfoReportRequest + r.Set("official_account_info_report_request", _officialAccountInfoReportRequest) + return nil +} + +// OfficialAccountInfoReportRequest Getter +func (r TaobaoJstSmsOfficialaccountReportAPIRequest) GetOfficialAccountInfoReportRequest() *OfficialAccountInfoReportRequest { + return r._officialAccountInfoReportRequest +} diff --git a/model/jst/TaobaoJstSmsOfficialaccountReportAPIResponse.go b/model/jst/TaobaoJstSmsOfficialaccountReportAPIResponse.go new file mode 100644 index 0000000000..da259256c3 --- /dev/null +++ b/model/jst/TaobaoJstSmsOfficialaccountReportAPIResponse.go @@ -0,0 +1,35 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔公众号信息上报 API返回值 +taobao.jst.sms.officialaccount.report + +聚石塔公众号信息上报 +*/ +type TaobaoJstSmsOfficialaccountReportAPIResponse struct { + model.CommonResponse + TaobaoJstSmsOfficialaccountReportAPIResponseModel +} + +// 聚石塔公众号信息上报 成功返回结果 +type TaobaoJstSmsOfficialaccountReportAPIResponseModel struct { + XMLName xml.Name `xml:"jst_sms_officialaccount_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统异常 + ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` + // 成功 + ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` + // 请求id + ResponseId string `json:"response_id,omitempty" xml:"response_id,omitempty"` + // 上报成功 + Module bool `json:"module,omitempty" xml:"module,omitempty"` + // 系统异常 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/jst/TaobaoJstSmsOfficialaccountReportResponse.go b/model/jst/TaobaoJstSmsOfficialaccountReportResponse.go deleted file mode 100644 index 6fb09aa605..0000000000 --- a/model/jst/TaobaoJstSmsOfficialaccountReportResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚石塔公众号信息上报 API返回值 -taobao.jst.sms.officialaccount.report - -聚石塔公众号信息上报 -*/ -type TaobaoJstSmsOfficialaccountReportAPIResponse struct { - model.CommonResponse - TaobaoJstSmsOfficialaccountReportResponse -} - -// 聚石塔公众号信息上报 成功返回结果 -type TaobaoJstSmsOfficialaccountReportResponse struct { - XMLName xml.Name `xml:"jst_sms_officialaccount_report_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统异常 - ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` - // 成功 - ResponseSuccess bool `json:"response_success,omitempty" xml:"response_success,omitempty"` - // 请求id - ResponseId string `json:"response_id,omitempty" xml:"response_id,omitempty"` - // 上报成功 - Module bool `json:"module,omitempty" xml:"module,omitempty"` - // 系统异常 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/jst/TaobaoJstSmsStatusQueryAPIRequest.go b/model/jst/TaobaoJstSmsStatusQueryAPIRequest.go new file mode 100644 index 0000000000..0f0367442b --- /dev/null +++ b/model/jst/TaobaoJstSmsStatusQueryAPIRequest.go @@ -0,0 +1,52 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔公众号状态查询 API请求 +taobao.jst.sms.status.query + +聚石塔公众号状态查询 +*/ +type TaobaoJstSmsStatusQueryAPIRequest struct { + model.Params + // 公众号状态信息查询请求 + _officialAccountStatusQueryRequest *JstBaseRequest +} + +// 初始化TaobaoJstSmsStatusQueryAPIRequest对象 +func NewTaobaoJstSmsStatusQueryRequest() *TaobaoJstSmsStatusQueryAPIRequest{ + return &TaobaoJstSmsStatusQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstSmsStatusQueryAPIRequest) GetApiMethodName() string { + return "taobao.jst.sms.status.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstSmsStatusQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OfficialAccountStatusQueryRequest Setter +// 公众号状态信息查询请求 +func (r *TaobaoJstSmsStatusQueryAPIRequest) SetOfficialAccountStatusQueryRequest(_officialAccountStatusQueryRequest *JstBaseRequest) error { + r._officialAccountStatusQueryRequest = _officialAccountStatusQueryRequest + r.Set("official_account_status_query_request", _officialAccountStatusQueryRequest) + return nil +} + +// OfficialAccountStatusQueryRequest Getter +func (r TaobaoJstSmsStatusQueryAPIRequest) GetOfficialAccountStatusQueryRequest() *JstBaseRequest { + return r._officialAccountStatusQueryRequest +} diff --git a/model/jst/TaobaoJstSmsStatusQueryAPIResponse.go b/model/jst/TaobaoJstSmsStatusQueryAPIResponse.go new file mode 100644 index 0000000000..4d3e3b7a8a --- /dev/null +++ b/model/jst/TaobaoJstSmsStatusQueryAPIResponse.go @@ -0,0 +1,27 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔公众号状态查询 API返回值 +taobao.jst.sms.status.query + +聚石塔公众号状态查询 +*/ +type TaobaoJstSmsStatusQueryAPIResponse struct { + model.CommonResponse + TaobaoJstSmsStatusQueryAPIResponseModel +} + +// 聚石塔公众号状态查询 成功返回结果 +type TaobaoJstSmsStatusQueryAPIResponseModel struct { + XMLName xml.Name `xml:"jst_sms_status_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *SmsResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/jst/TaobaoJstSmsStatusQueryResponse.go b/model/jst/TaobaoJstSmsStatusQueryResponse.go deleted file mode 100644 index 7ce65cb9d3..0000000000 --- a/model/jst/TaobaoJstSmsStatusQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚石塔公众号状态查询 API返回值 -taobao.jst.sms.status.query - -聚石塔公众号状态查询 -*/ -type TaobaoJstSmsStatusQueryAPIResponse struct { - model.CommonResponse - TaobaoJstSmsStatusQueryResponse -} - -// 聚石塔公众号状态查询 成功返回结果 -type TaobaoJstSmsStatusQueryResponse struct { - XMLName xml.Name `xml:"jst_sms_status_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *SmsResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/jst/TaobaoJstSmsTaskCreateAPIRequest.go b/model/jst/TaobaoJstSmsTaskCreateAPIRequest.go new file mode 100644 index 0000000000..09c374c02f --- /dev/null +++ b/model/jst/TaobaoJstSmsTaskCreateAPIRequest.go @@ -0,0 +1,52 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔短信任务创建接口 API请求 +taobao.jst.sms.task.create + +聚石塔短信的任务创建接口,用于创建数字短信、公众号短信、权益短信的AB测试任务。 +*/ +type TaobaoJstSmsTaskCreateAPIRequest struct { + model.Params + // 创建任务的入参 + _paramCreateSmsTaskRequest *CreateSmsTaskRequest +} + +// 初始化TaobaoJstSmsTaskCreateAPIRequest对象 +func NewTaobaoJstSmsTaskCreateRequest() *TaobaoJstSmsTaskCreateAPIRequest{ + return &TaobaoJstSmsTaskCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstSmsTaskCreateAPIRequest) GetApiMethodName() string { + return "taobao.jst.sms.task.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstSmsTaskCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCreateSmsTaskRequest Setter +// 创建任务的入参 +func (r *TaobaoJstSmsTaskCreateAPIRequest) SetParamCreateSmsTaskRequest(_paramCreateSmsTaskRequest *CreateSmsTaskRequest) error { + r._paramCreateSmsTaskRequest = _paramCreateSmsTaskRequest + r.Set("param_create_sms_task_request", _paramCreateSmsTaskRequest) + return nil +} + +// ParamCreateSmsTaskRequest Getter +func (r TaobaoJstSmsTaskCreateAPIRequest) GetParamCreateSmsTaskRequest() *CreateSmsTaskRequest { + return r._paramCreateSmsTaskRequest +} diff --git a/model/jst/TaobaoJstSmsTaskCreateAPIResponse.go b/model/jst/TaobaoJstSmsTaskCreateAPIResponse.go new file mode 100644 index 0000000000..54baee4aae --- /dev/null +++ b/model/jst/TaobaoJstSmsTaskCreateAPIResponse.go @@ -0,0 +1,27 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚石塔短信任务创建接口 API返回值 +taobao.jst.sms.task.create + +聚石塔短信的任务创建接口,用于创建数字短信、公众号短信、权益短信的AB测试任务。 +*/ +type TaobaoJstSmsTaskCreateAPIResponse struct { + model.CommonResponse + TaobaoJstSmsTaskCreateAPIResponseModel +} + +// 聚石塔短信任务创建接口 成功返回结果 +type TaobaoJstSmsTaskCreateAPIResponseModel struct { + XMLName xml.Name `xml:"jst_sms_task_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *SmsResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/jst/TaobaoJstSmsTaskCreateResponse.go b/model/jst/TaobaoJstSmsTaskCreateResponse.go deleted file mode 100644 index 4a9cafd72f..0000000000 --- a/model/jst/TaobaoJstSmsTaskCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚石塔短信任务创建接口 API返回值 -taobao.jst.sms.task.create - -聚石塔短信的任务创建接口,用于创建数字短信、公众号短信、权益短信的AB测试任务。 -*/ -type TaobaoJstSmsTaskCreateAPIResponse struct { - model.CommonResponse - TaobaoJstSmsTaskCreateResponse -} - -// 聚石塔短信任务创建接口 成功返回结果 -type TaobaoJstSmsTaskCreateResponse struct { - XMLName xml.Name `xml:"jst_sms_task_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *SmsResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/jst/TaobaoJushitaJdpUserAddAPIRequest.go b/model/jst/TaobaoJushitaJdpUserAddAPIRequest.go new file mode 100644 index 0000000000..6ab43e7310 --- /dev/null +++ b/model/jst/TaobaoJushitaJdpUserAddAPIRequest.go @@ -0,0 +1,66 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加数据推送用户 API请求 +taobao.jushita.jdp.user.add + +提供给接入数据推送的应用添加数据推送服务的用户 +*/ +type TaobaoJushitaJdpUserAddAPIRequest struct { + model.Params + // RDS实例名称 + _rdsName string + // 推送历史数据天数,只能为90天内,包含90天。当此参数不填时,表示以页面中应用配置的历史天数为准;如果为0表示这个用户不推送历史数据;其它表示推送的历史天数。 + _historyDays int64 +} + +// 初始化TaobaoJushitaJdpUserAddAPIRequest对象 +func NewTaobaoJushitaJdpUserAddRequest() *TaobaoJushitaJdpUserAddAPIRequest{ + return &TaobaoJushitaJdpUserAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJushitaJdpUserAddAPIRequest) GetApiMethodName() string { + return "taobao.jushita.jdp.user.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJushitaJdpUserAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RdsName Setter +// RDS实例名称 +func (r *TaobaoJushitaJdpUserAddAPIRequest) SetRdsName(_rdsName string) error { + r._rdsName = _rdsName + r.Set("rds_name", _rdsName) + return nil +} + +// RdsName Getter +func (r TaobaoJushitaJdpUserAddAPIRequest) GetRdsName() string { + return r._rdsName +} +// HistoryDays Setter +// 推送历史数据天数,只能为90天内,包含90天。当此参数不填时,表示以页面中应用配置的历史天数为准;如果为0表示这个用户不推送历史数据;其它表示推送的历史天数。 +func (r *TaobaoJushitaJdpUserAddAPIRequest) SetHistoryDays(_historyDays int64) error { + r._historyDays = _historyDays + r.Set("history_days", _historyDays) + return nil +} + +// HistoryDays Getter +func (r TaobaoJushitaJdpUserAddAPIRequest) GetHistoryDays() int64 { + return r._historyDays +} diff --git a/model/jst/TaobaoJushitaJdpUserAddAPIResponse.go b/model/jst/TaobaoJushitaJdpUserAddAPIResponse.go new file mode 100644 index 0000000000..a34c125e6c --- /dev/null +++ b/model/jst/TaobaoJushitaJdpUserAddAPIResponse.go @@ -0,0 +1,27 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加数据推送用户 API返回值 +taobao.jushita.jdp.user.add + +提供给接入数据推送的应用添加数据推送服务的用户 +*/ +type TaobaoJushitaJdpUserAddAPIResponse struct { + model.CommonResponse + TaobaoJushitaJdpUserAddAPIResponseModel +} + +// 添加数据推送用户 成功返回结果 +type TaobaoJushitaJdpUserAddAPIResponseModel struct { + XMLName xml.Name `xml:"jushita_jdp_user_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否添加成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/jst/TaobaoJushitaJdpUserAddResponse.go b/model/jst/TaobaoJushitaJdpUserAddResponse.go deleted file mode 100644 index 1ea7aed7ce..0000000000 --- a/model/jst/TaobaoJushitaJdpUserAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加数据推送用户 API返回值 -taobao.jushita.jdp.user.add - -提供给接入数据推送的应用添加数据推送服务的用户 -*/ -type TaobaoJushitaJdpUserAddAPIResponse struct { - model.CommonResponse - TaobaoJushitaJdpUserAddResponse -} - -// 添加数据推送用户 成功返回结果 -type TaobaoJushitaJdpUserAddResponse struct { - XMLName xml.Name `xml:"jushita_jdp_user_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否添加成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/jst/TaobaoJushitaJdpUserDeleteAPIRequest.go b/model/jst/TaobaoJushitaJdpUserDeleteAPIRequest.go new file mode 100644 index 0000000000..5e41129392 --- /dev/null +++ b/model/jst/TaobaoJushitaJdpUserDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除数据推送用户 API请求 +taobao.jushita.jdp.user.delete + +删除应用的数据推送用户,用户被删除后,重新添加时会重新同步历史数据。 +*/ +type TaobaoJushitaJdpUserDeleteAPIRequest struct { + model.Params + // 要删除用户的昵称 + _nick string + // 需要删除的用户编号 + _userId int64 +} + +// 初始化TaobaoJushitaJdpUserDeleteAPIRequest对象 +func NewTaobaoJushitaJdpUserDeleteRequest() *TaobaoJushitaJdpUserDeleteAPIRequest{ + return &TaobaoJushitaJdpUserDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJushitaJdpUserDeleteAPIRequest) GetApiMethodName() string { + return "taobao.jushita.jdp.user.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJushitaJdpUserDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 要删除用户的昵称 +func (r *TaobaoJushitaJdpUserDeleteAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoJushitaJdpUserDeleteAPIRequest) GetNick() string { + return r._nick +} +// UserId Setter +// 需要删除的用户编号 +func (r *TaobaoJushitaJdpUserDeleteAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoJushitaJdpUserDeleteAPIRequest) GetUserId() int64 { + return r._userId +} diff --git a/model/jst/TaobaoJushitaJdpUserDeleteAPIResponse.go b/model/jst/TaobaoJushitaJdpUserDeleteAPIResponse.go new file mode 100644 index 0000000000..c24f04f893 --- /dev/null +++ b/model/jst/TaobaoJushitaJdpUserDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除数据推送用户 API返回值 +taobao.jushita.jdp.user.delete + +删除应用的数据推送用户,用户被删除后,重新添加时会重新同步历史数据。 +*/ +type TaobaoJushitaJdpUserDeleteAPIResponse struct { + model.CommonResponse + TaobaoJushitaJdpUserDeleteAPIResponseModel +} + +// 删除数据推送用户 成功返回结果 +type TaobaoJushitaJdpUserDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"jushita_jdp_user_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否删除成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/jst/TaobaoJushitaJdpUserDeleteResponse.go b/model/jst/TaobaoJushitaJdpUserDeleteResponse.go deleted file mode 100644 index 4cae3411d9..0000000000 --- a/model/jst/TaobaoJushitaJdpUserDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除数据推送用户 API返回值 -taobao.jushita.jdp.user.delete - -删除应用的数据推送用户,用户被删除后,重新添加时会重新同步历史数据。 -*/ -type TaobaoJushitaJdpUserDeleteAPIResponse struct { - model.CommonResponse - TaobaoJushitaJdpUserDeleteResponse -} - -// 删除数据推送用户 成功返回结果 -type TaobaoJushitaJdpUserDeleteResponse struct { - XMLName xml.Name `xml:"jushita_jdp_user_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否删除成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/jst/TaobaoJushitaJdpUsersGetAPIRequest.go b/model/jst/TaobaoJushitaJdpUsersGetAPIRequest.go new file mode 100644 index 0000000000..fe4b4cb6d9 --- /dev/null +++ b/model/jst/TaobaoJushitaJdpUsersGetAPIRequest.go @@ -0,0 +1,108 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取开通的订单同步服务的用户 API请求 +taobao.jushita.jdp.users.get + +获取开通的订单同步服务的用户,含有rds的路由关系 +*/ +type TaobaoJushitaJdpUsersGetAPIRequest struct { + model.Params + // 此参数一般不用传,用于查询最后更改时间在某个时间段内的用户 + _startModified string + // 此参数一般不用传,用于查询最后更改时间在某个时间段内的用户 + _endModified string + // 每页记录数,默认200 + _pageSize int64 + // 当前页数 + _pageNo int64 + // 如果传了user_id表示单条查询 + _userId int64 +} + +// 初始化TaobaoJushitaJdpUsersGetAPIRequest对象 +func NewTaobaoJushitaJdpUsersGetRequest() *TaobaoJushitaJdpUsersGetAPIRequest{ + return &TaobaoJushitaJdpUsersGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJushitaJdpUsersGetAPIRequest) GetApiMethodName() string { + return "taobao.jushita.jdp.users.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJushitaJdpUsersGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartModified Setter +// 此参数一般不用传,用于查询最后更改时间在某个时间段内的用户 +func (r *TaobaoJushitaJdpUsersGetAPIRequest) SetStartModified(_startModified string) error { + r._startModified = _startModified + r.Set("start_modified", _startModified) + return nil +} + +// StartModified Getter +func (r TaobaoJushitaJdpUsersGetAPIRequest) GetStartModified() string { + return r._startModified +} +// EndModified Setter +// 此参数一般不用传,用于查询最后更改时间在某个时间段内的用户 +func (r *TaobaoJushitaJdpUsersGetAPIRequest) SetEndModified(_endModified string) error { + r._endModified = _endModified + r.Set("end_modified", _endModified) + return nil +} + +// EndModified Getter +func (r TaobaoJushitaJdpUsersGetAPIRequest) GetEndModified() string { + return r._endModified +} +// PageSize Setter +// 每页记录数,默认200 +func (r *TaobaoJushitaJdpUsersGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoJushitaJdpUsersGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 当前页数 +func (r *TaobaoJushitaJdpUsersGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoJushitaJdpUsersGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// UserId Setter +// 如果传了user_id表示单条查询 +func (r *TaobaoJushitaJdpUsersGetAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoJushitaJdpUsersGetAPIRequest) GetUserId() int64 { + return r._userId +} diff --git a/model/jst/TaobaoJushitaJdpUsersGetAPIResponse.go b/model/jst/TaobaoJushitaJdpUsersGetAPIResponse.go new file mode 100644 index 0000000000..1fdff9c218 --- /dev/null +++ b/model/jst/TaobaoJushitaJdpUsersGetAPIResponse.go @@ -0,0 +1,29 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取开通的订单同步服务的用户 API返回值 +taobao.jushita.jdp.users.get + +获取开通的订单同步服务的用户,含有rds的路由关系 +*/ +type TaobaoJushitaJdpUsersGetAPIResponse struct { + model.CommonResponse + TaobaoJushitaJdpUsersGetAPIResponseModel +} + +// 获取开通的订单同步服务的用户 成功返回结果 +type TaobaoJushitaJdpUsersGetAPIResponseModel struct { + XMLName xml.Name `xml:"jushita_jdp_users_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 用户列表 + Users []JdpUser `json:"users,omitempty" xml:"users>jdp_user,omitempty"` + // 总记录数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/jst/TaobaoJushitaJdpUsersGetResponse.go b/model/jst/TaobaoJushitaJdpUsersGetResponse.go deleted file mode 100644 index 09073288f1..0000000000 --- a/model/jst/TaobaoJushitaJdpUsersGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取开通的订单同步服务的用户 API返回值 -taobao.jushita.jdp.users.get - -获取开通的订单同步服务的用户,含有rds的路由关系 -*/ -type TaobaoJushitaJdpUsersGetAPIResponse struct { - model.CommonResponse - TaobaoJushitaJdpUsersGetResponse -} - -// 获取开通的订单同步服务的用户 成功返回结果 -type TaobaoJushitaJdpUsersGetResponse struct { - XMLName xml.Name `xml:"jushita_jdp_users_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 用户列表 - Users []JdpUser `json:"users,omitempty" xml:"users>jdp_user,omitempty"` - // 总记录数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/jst/TaobaoModifyaddressOpenAPIRequest.go b/model/jst/TaobaoModifyaddressOpenAPIRequest.go new file mode 100644 index 0000000000..08eb04bc41 --- /dev/null +++ b/model/jst/TaobaoModifyaddressOpenAPIRequest.go @@ -0,0 +1,38 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝自助修改地址服务开通 API请求 +taobao.modifyaddress.open + +商家自助修改地址服务开通 +*/ +type TaobaoModifyaddressOpenAPIRequest struct { + model.Params +} + +// 初始化TaobaoModifyaddressOpenAPIRequest对象 +func NewTaobaoModifyaddressOpenRequest() *TaobaoModifyaddressOpenAPIRequest{ + return &TaobaoModifyaddressOpenAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoModifyaddressOpenAPIRequest) GetApiMethodName() string { + return "taobao.modifyaddress.open" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoModifyaddressOpenAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/jst/TaobaoModifyaddressOpenAPIResponse.go b/model/jst/TaobaoModifyaddressOpenAPIResponse.go new file mode 100644 index 0000000000..dd97382934 --- /dev/null +++ b/model/jst/TaobaoModifyaddressOpenAPIResponse.go @@ -0,0 +1,31 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝自助修改地址服务开通 API返回值 +taobao.modifyaddress.open + +商家自助修改地址服务开通 +*/ +type TaobaoModifyaddressOpenAPIResponse struct { + model.CommonResponse + TaobaoModifyaddressOpenAPIResponseModel +} + +// 淘宝自助修改地址服务开通 成功返回结果 +type TaobaoModifyaddressOpenAPIResponseModel struct { + XMLName xml.Name `xml:"modifyaddress_open_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 错误信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/jst/TaobaoModifyaddressOpenResponse.go b/model/jst/TaobaoModifyaddressOpenResponse.go deleted file mode 100644 index edd9da0201..0000000000 --- a/model/jst/TaobaoModifyaddressOpenResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝自助修改地址服务开通 API返回值 -taobao.modifyaddress.open - -商家自助修改地址服务开通 -*/ -type TaobaoModifyaddressOpenAPIResponse struct { - model.CommonResponse - TaobaoModifyaddressOpenResponse -} - -// 淘宝自助修改地址服务开通 成功返回结果 -type TaobaoModifyaddressOpenResponse struct { - XMLName xml.Name `xml:"modifyaddress_open_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 错误信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/jst/TaobaoOcApContractsignedGetAPIRequest.go b/model/jst/TaobaoOcApContractsignedGetAPIRequest.go new file mode 100644 index 0000000000..d42b5869eb --- /dev/null +++ b/model/jst/TaobaoOcApContractsignedGetAPIRequest.go @@ -0,0 +1,38 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户是否签署支付宝代扣协议 API请求 +taobao.oc.ap.contractsigned.get + +用户是否签署支付宝代扣协议 +*/ +type TaobaoOcApContractsignedGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoOcApContractsignedGetAPIRequest对象 +func NewTaobaoOcApContractsignedGetRequest() *TaobaoOcApContractsignedGetAPIRequest{ + return &TaobaoOcApContractsignedGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOcApContractsignedGetAPIRequest) GetApiMethodName() string { + return "taobao.oc.ap.contractsigned.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOcApContractsignedGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/jst/TaobaoOcApContractsignedGetAPIResponse.go b/model/jst/TaobaoOcApContractsignedGetAPIResponse.go new file mode 100644 index 0000000000..29c637d7fe --- /dev/null +++ b/model/jst/TaobaoOcApContractsignedGetAPIResponse.go @@ -0,0 +1,29 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户是否签署支付宝代扣协议 API返回值 +taobao.oc.ap.contractsigned.get + +用户是否签署支付宝代扣协议 +*/ +type TaobaoOcApContractsignedGetAPIResponse struct { + model.CommonResponse + TaobaoOcApContractsignedGetAPIResponseModel +} + +// 用户是否签署支付宝代扣协议 成功返回结果 +type TaobaoOcApContractsignedGetAPIResponseModel struct { + XMLName xml.Name `xml:"oc_ap_contractsigned_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否开通 + ContractSign bool `json:"contract_sign,omitempty" xml:"contract_sign,omitempty"` + // 调用出错描述信息 + ErrorDescription string `json:"error_description,omitempty" xml:"error_description,omitempty"` +} diff --git a/model/jst/TaobaoOcApContractsignedGetResponse.go b/model/jst/TaobaoOcApContractsignedGetResponse.go deleted file mode 100644 index 8b76909991..0000000000 --- a/model/jst/TaobaoOcApContractsignedGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户是否签署支付宝代扣协议 API返回值 -taobao.oc.ap.contractsigned.get - -用户是否签署支付宝代扣协议 -*/ -type TaobaoOcApContractsignedGetAPIResponse struct { - model.CommonResponse - TaobaoOcApContractsignedGetResponse -} - -// 用户是否签署支付宝代扣协议 成功返回结果 -type TaobaoOcApContractsignedGetResponse struct { - XMLName xml.Name `xml:"oc_ap_contractsigned_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否开通 - ContractSign bool `json:"contract_sign,omitempty" xml:"contract_sign,omitempty"` - // 调用出错描述信息 - ErrorDescription string `json:"error_description,omitempty" xml:"error_description,omitempty"` -} diff --git a/model/jst/TaobaoOcApContracturlGetAPIRequest.go b/model/jst/TaobaoOcApContracturlGetAPIRequest.go new file mode 100644 index 0000000000..93414228c4 --- /dev/null +++ b/model/jst/TaobaoOcApContracturlGetAPIRequest.go @@ -0,0 +1,38 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +按用户获取支付宝代扣协议链接地址 API请求 +taobao.oc.ap.contracturl.get + +按用户获取支付宝代扣协议链接地址 +*/ +type TaobaoOcApContracturlGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoOcApContracturlGetAPIRequest对象 +func NewTaobaoOcApContracturlGetRequest() *TaobaoOcApContracturlGetAPIRequest{ + return &TaobaoOcApContracturlGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOcApContracturlGetAPIRequest) GetApiMethodName() string { + return "taobao.oc.ap.contracturl.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOcApContracturlGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/jst/TaobaoOcApContracturlGetAPIResponse.go b/model/jst/TaobaoOcApContracturlGetAPIResponse.go new file mode 100644 index 0000000000..114cb83d4b --- /dev/null +++ b/model/jst/TaobaoOcApContracturlGetAPIResponse.go @@ -0,0 +1,31 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +按用户获取支付宝代扣协议链接地址 API返回值 +taobao.oc.ap.contracturl.get + +按用户获取支付宝代扣协议链接地址 +*/ +type TaobaoOcApContracturlGetAPIResponse struct { + model.CommonResponse + TaobaoOcApContracturlGetAPIResponseModel +} + +// 按用户获取支付宝代扣协议链接地址 成功返回结果 +type TaobaoOcApContracturlGetAPIResponseModel struct { + XMLName xml.Name `xml:"oc_ap_contracturl_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 判断操作是否执行成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 代扣url地址 + Url string `json:"url,omitempty" xml:"url,omitempty"` + // 错误描述信息 + ErrorDescription string `json:"error_description,omitempty" xml:"error_description,omitempty"` +} diff --git a/model/jst/TaobaoOcApContracturlGetResponse.go b/model/jst/TaobaoOcApContracturlGetResponse.go deleted file mode 100644 index b780d2c55b..0000000000 --- a/model/jst/TaobaoOcApContracturlGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -按用户获取支付宝代扣协议链接地址 API返回值 -taobao.oc.ap.contracturl.get - -按用户获取支付宝代扣协议链接地址 -*/ -type TaobaoOcApContracturlGetAPIResponse struct { - model.CommonResponse - TaobaoOcApContracturlGetResponse -} - -// 按用户获取支付宝代扣协议链接地址 成功返回结果 -type TaobaoOcApContracturlGetResponse struct { - XMLName xml.Name `xml:"oc_ap_contracturl_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 判断操作是否执行成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 代扣url地址 - Url string `json:"url,omitempty" xml:"url,omitempty"` - // 错误描述信息 - ErrorDescription string `json:"error_description,omitempty" xml:"error_description,omitempty"` -} diff --git a/model/jst/TaobaoOcApRuleCreateAPIRequest.go b/model/jst/TaobaoOcApRuleCreateAPIRequest.go new file mode 100644 index 0000000000..a2fa9c689c --- /dev/null +++ b/model/jst/TaobaoOcApRuleCreateAPIRequest.go @@ -0,0 +1,66 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建分账规则 API请求 +taobao.oc.ap.rule.create + +OC分账业务功能支持,用于创建分账规则 +*/ +type TaobaoOcApRuleCreateAPIRequest struct { + model.Params + // 传入比例数组后者金额数组 + _divisionRule []int64 + // 规则描述相关扩展信息,divisonRule的值包含("byAmount" 或者 "byPercentage"),excutionPeriod的值包含( "month" 或者 "day" 或者 "now") + _extAttributes string +} + +// 初始化TaobaoOcApRuleCreateAPIRequest对象 +func NewTaobaoOcApRuleCreateRequest() *TaobaoOcApRuleCreateAPIRequest{ + return &TaobaoOcApRuleCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOcApRuleCreateAPIRequest) GetApiMethodName() string { + return "taobao.oc.ap.rule.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOcApRuleCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DivisionRule Setter +// 传入比例数组后者金额数组 +func (r *TaobaoOcApRuleCreateAPIRequest) SetDivisionRule(_divisionRule []int64) error { + r._divisionRule = _divisionRule + r.Set("division_rule", _divisionRule) + return nil +} + +// DivisionRule Getter +func (r TaobaoOcApRuleCreateAPIRequest) GetDivisionRule() []int64 { + return r._divisionRule +} +// ExtAttributes Setter +// 规则描述相关扩展信息,divisonRule的值包含("byAmount" 或者 "byPercentage"),excutionPeriod的值包含( "month" 或者 "day" 或者 "now") +func (r *TaobaoOcApRuleCreateAPIRequest) SetExtAttributes(_extAttributes string) error { + r._extAttributes = _extAttributes + r.Set("ext_attributes", _extAttributes) + return nil +} + +// ExtAttributes Getter +func (r TaobaoOcApRuleCreateAPIRequest) GetExtAttributes() string { + return r._extAttributes +} diff --git a/model/jst/TaobaoOcApRuleCreateAPIResponse.go b/model/jst/TaobaoOcApRuleCreateAPIResponse.go new file mode 100644 index 0000000000..c1b0cf2b1f --- /dev/null +++ b/model/jst/TaobaoOcApRuleCreateAPIResponse.go @@ -0,0 +1,31 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建分账规则 API返回值 +taobao.oc.ap.rule.create + +OC分账业务功能支持,用于创建分账规则 +*/ +type TaobaoOcApRuleCreateAPIResponse struct { + model.CommonResponse + TaobaoOcApRuleCreateAPIResponseModel +} + +// 创建分账规则 成功返回结果 +type TaobaoOcApRuleCreateAPIResponseModel struct { + XMLName xml.Name `xml:"oc_ap_rule_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 规则id + RuleId int64 `json:"rule_id,omitempty" xml:"rule_id,omitempty"` + // 错误描述 + ErrorDescription string `json:"error_description,omitempty" xml:"error_description,omitempty"` + // 表示方法是否正常执行成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/jst/TaobaoOcApRuleCreateResponse.go b/model/jst/TaobaoOcApRuleCreateResponse.go deleted file mode 100644 index b1e6a86954..0000000000 --- a/model/jst/TaobaoOcApRuleCreateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建分账规则 API返回值 -taobao.oc.ap.rule.create - -OC分账业务功能支持,用于创建分账规则 -*/ -type TaobaoOcApRuleCreateAPIResponse struct { - model.CommonResponse - TaobaoOcApRuleCreateResponse -} - -// 创建分账规则 成功返回结果 -type TaobaoOcApRuleCreateResponse struct { - XMLName xml.Name `xml:"oc_ap_rule_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 规则id - RuleId int64 `json:"rule_id,omitempty" xml:"rule_id,omitempty"` - // 错误描述 - ErrorDescription string `json:"error_description,omitempty" xml:"error_description,omitempty"` - // 表示方法是否正常执行成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/jst/TaobaoOcEserviceAppointListAPIRequest.go b/model/jst/TaobaoOcEserviceAppointListAPIRequest.go new file mode 100644 index 0000000000..ea9b2d461e --- /dev/null +++ b/model/jst/TaobaoOcEserviceAppointListAPIRequest.go @@ -0,0 +1,150 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +交互卡片预约信息读取接口 API请求 +taobao.oc.eservice.appoint.list + +允许外部的isv通过该接口读取门店预约信息 +*/ +type TaobaoOcEserviceAppointListAPIRequest struct { + model.Params + // 预约信息唯一编码(code, customerNick, customerPhone, houseAddressCity, mallCode 调用时五个可选参数中任选一个作为输入参数) + _code int64 + // 门店编码(code, customerNick, customerPhone, houseAddressCity, mallCode 调用时五个可选参数中任选一个作为输入参数) + _mallCode string + // 查询预约的起始时间,格式yyyyMMddHHmmss,默认为当前时间 + _startAppointTime string + // 买家客户nick(code, customerNick, customerPhone, houseAddressCity, mallCode 调用时五个可选参数中任选一个作为输入参数) + _customerNick string + // 买家客户电话号码(code, customerNick, customerPhone, houseAddressCity, mallCode 调用时五个可选参数中任选一个作为输入参数) + _customerPhone string + // 买家客户装修房屋所在的市(code, customerNick, customerPhone, houseAddressCity, mallCode 调用时五个可选参数中任选一个作为输入参数) + _houseAddressCity string + // 卖家主账号id + _sellerId int64 + // 返回结果按预约时间排序,指示升序还是降息,取值asc和desc + _sortOrder string +} + +// 初始化TaobaoOcEserviceAppointListAPIRequest对象 +func NewTaobaoOcEserviceAppointListRequest() *TaobaoOcEserviceAppointListAPIRequest{ + return &TaobaoOcEserviceAppointListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOcEserviceAppointListAPIRequest) GetApiMethodName() string { + return "taobao.oc.eservice.appoint.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOcEserviceAppointListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 预约信息唯一编码(code, customerNick, customerPhone, houseAddressCity, mallCode 调用时五个可选参数中任选一个作为输入参数) +func (r *TaobaoOcEserviceAppointListAPIRequest) SetCode(_code int64) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r TaobaoOcEserviceAppointListAPIRequest) GetCode() int64 { + return r._code +} +// MallCode Setter +// 门店编码(code, customerNick, customerPhone, houseAddressCity, mallCode 调用时五个可选参数中任选一个作为输入参数) +func (r *TaobaoOcEserviceAppointListAPIRequest) SetMallCode(_mallCode string) error { + r._mallCode = _mallCode + r.Set("mall_code", _mallCode) + return nil +} + +// MallCode Getter +func (r TaobaoOcEserviceAppointListAPIRequest) GetMallCode() string { + return r._mallCode +} +// StartAppointTime Setter +// 查询预约的起始时间,格式yyyyMMddHHmmss,默认为当前时间 +func (r *TaobaoOcEserviceAppointListAPIRequest) SetStartAppointTime(_startAppointTime string) error { + r._startAppointTime = _startAppointTime + r.Set("start_appoint_time", _startAppointTime) + return nil +} + +// StartAppointTime Getter +func (r TaobaoOcEserviceAppointListAPIRequest) GetStartAppointTime() string { + return r._startAppointTime +} +// CustomerNick Setter +// 买家客户nick(code, customerNick, customerPhone, houseAddressCity, mallCode 调用时五个可选参数中任选一个作为输入参数) +func (r *TaobaoOcEserviceAppointListAPIRequest) SetCustomerNick(_customerNick string) error { + r._customerNick = _customerNick + r.Set("customer_nick", _customerNick) + return nil +} + +// CustomerNick Getter +func (r TaobaoOcEserviceAppointListAPIRequest) GetCustomerNick() string { + return r._customerNick +} +// CustomerPhone Setter +// 买家客户电话号码(code, customerNick, customerPhone, houseAddressCity, mallCode 调用时五个可选参数中任选一个作为输入参数) +func (r *TaobaoOcEserviceAppointListAPIRequest) SetCustomerPhone(_customerPhone string) error { + r._customerPhone = _customerPhone + r.Set("customer_phone", _customerPhone) + return nil +} + +// CustomerPhone Getter +func (r TaobaoOcEserviceAppointListAPIRequest) GetCustomerPhone() string { + return r._customerPhone +} +// HouseAddressCity Setter +// 买家客户装修房屋所在的市(code, customerNick, customerPhone, houseAddressCity, mallCode 调用时五个可选参数中任选一个作为输入参数) +func (r *TaobaoOcEserviceAppointListAPIRequest) SetHouseAddressCity(_houseAddressCity string) error { + r._houseAddressCity = _houseAddressCity + r.Set("house_address_city", _houseAddressCity) + return nil +} + +// HouseAddressCity Getter +func (r TaobaoOcEserviceAppointListAPIRequest) GetHouseAddressCity() string { + return r._houseAddressCity +} +// SellerId Setter +// 卖家主账号id +func (r *TaobaoOcEserviceAppointListAPIRequest) SetSellerId(_sellerId int64) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r TaobaoOcEserviceAppointListAPIRequest) GetSellerId() int64 { + return r._sellerId +} +// SortOrder Setter +// 返回结果按预约时间排序,指示升序还是降息,取值asc和desc +func (r *TaobaoOcEserviceAppointListAPIRequest) SetSortOrder(_sortOrder string) error { + r._sortOrder = _sortOrder + r.Set("sort_order", _sortOrder) + return nil +} + +// SortOrder Getter +func (r TaobaoOcEserviceAppointListAPIRequest) GetSortOrder() string { + return r._sortOrder +} diff --git a/model/jst/TaobaoOcEserviceAppointListAPIResponse.go b/model/jst/TaobaoOcEserviceAppointListAPIResponse.go new file mode 100644 index 0000000000..44946f7b42 --- /dev/null +++ b/model/jst/TaobaoOcEserviceAppointListAPIResponse.go @@ -0,0 +1,29 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +交互卡片预约信息读取接口 API返回值 +taobao.oc.eservice.appoint.list + +允许外部的isv通过该接口读取门店预约信息 +*/ +type TaobaoOcEserviceAppointListAPIResponse struct { + model.CommonResponse + TaobaoOcEserviceAppointListAPIResponseModel +} + +// 交互卡片预约信息读取接口 成功返回结果 +type TaobaoOcEserviceAppointListAPIResponseModel struct { + XMLName xml.Name `xml:"oc_eservice_appoint_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的预约信息,多个预约信息按照预约时间升序排序 + Models []O2oAppointInfoDto `json:"models,omitempty" xml:"models>o2o_appoint_info_dto,omitempty"` + // 返回的预约信息数目 + TotalNumber int64 `json:"total_number,omitempty" xml:"total_number,omitempty"` +} diff --git a/model/jst/TaobaoOcEserviceAppointListResponse.go b/model/jst/TaobaoOcEserviceAppointListResponse.go deleted file mode 100644 index 5ba863ec57..0000000000 --- a/model/jst/TaobaoOcEserviceAppointListResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -交互卡片预约信息读取接口 API返回值 -taobao.oc.eservice.appoint.list - -允许外部的isv通过该接口读取门店预约信息 -*/ -type TaobaoOcEserviceAppointListAPIResponse struct { - model.CommonResponse - TaobaoOcEserviceAppointListResponse -} - -// 交互卡片预约信息读取接口 成功返回结果 -type TaobaoOcEserviceAppointListResponse struct { - XMLName xml.Name `xml:"oc_eservice_appoint_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的预约信息,多个预约信息按照预约时间升序排序 - Models []O2oAppointInfoDto `json:"models,omitempty" xml:"models>o2o_appoint_info_dto,omitempty"` - // 返回的预约信息数目 - TotalNumber int64 `json:"total_number,omitempty" xml:"total_number,omitempty"` -} diff --git a/model/jst/TaobaoOcOrderApUpdateAPIRequest.go b/model/jst/TaobaoOcOrderApUpdateAPIRequest.go new file mode 100644 index 0000000000..90453f869b --- /dev/null +++ b/model/jst/TaobaoOcOrderApUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +按OC订单分账 API请求 +taobao.oc.order.ap.update + +对OC订单执行分账操作 +*/ +type TaobaoOcOrderApUpdateAPIRequest struct { + model.Params + // 调用创建OC订单接口生成的id + _ocOrderId int64 +} + +// 初始化TaobaoOcOrderApUpdateAPIRequest对象 +func NewTaobaoOcOrderApUpdateRequest() *TaobaoOcOrderApUpdateAPIRequest{ + return &TaobaoOcOrderApUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOcOrderApUpdateAPIRequest) GetApiMethodName() string { + return "taobao.oc.order.ap.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOcOrderApUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OcOrderId Setter +// 调用创建OC订单接口生成的id +func (r *TaobaoOcOrderApUpdateAPIRequest) SetOcOrderId(_ocOrderId int64) error { + r._ocOrderId = _ocOrderId + r.Set("oc_order_id", _ocOrderId) + return nil +} + +// OcOrderId Getter +func (r TaobaoOcOrderApUpdateAPIRequest) GetOcOrderId() int64 { + return r._ocOrderId +} diff --git a/model/jst/TaobaoOcOrderApUpdateAPIResponse.go b/model/jst/TaobaoOcOrderApUpdateAPIResponse.go new file mode 100644 index 0000000000..a29566078b --- /dev/null +++ b/model/jst/TaobaoOcOrderApUpdateAPIResponse.go @@ -0,0 +1,31 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +按OC订单分账 API返回值 +taobao.oc.order.ap.update + +对OC订单执行分账操作 +*/ +type TaobaoOcOrderApUpdateAPIResponse struct { + model.CommonResponse + TaobaoOcOrderApUpdateAPIResponseModel +} + +// 按OC订单分账 成功返回结果 +type TaobaoOcOrderApUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"oc_order_ap_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 描述操作执行是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // OC订单id + OcOrderId int64 `json:"oc_order_id,omitempty" xml:"oc_order_id,omitempty"` + // 执行失败时候的错误描述信息 + ErrorDescription string `json:"error_description,omitempty" xml:"error_description,omitempty"` +} diff --git a/model/jst/TaobaoOcOrderApUpdateResponse.go b/model/jst/TaobaoOcOrderApUpdateResponse.go deleted file mode 100644 index fcfca2a266..0000000000 --- a/model/jst/TaobaoOcOrderApUpdateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -按OC订单分账 API返回值 -taobao.oc.order.ap.update - -对OC订单执行分账操作 -*/ -type TaobaoOcOrderApUpdateAPIResponse struct { - model.CommonResponse - TaobaoOcOrderApUpdateResponse -} - -// 按OC订单分账 成功返回结果 -type TaobaoOcOrderApUpdateResponse struct { - XMLName xml.Name `xml:"oc_order_ap_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 描述操作执行是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // OC订单id - OcOrderId int64 `json:"oc_order_id,omitempty" xml:"oc_order_id,omitempty"` - // 执行失败时候的错误描述信息 - ErrorDescription string `json:"error_description,omitempty" xml:"error_description,omitempty"` -} diff --git a/model/jst/TaobaoOcOrderCreateAPIRequest.go b/model/jst/TaobaoOcOrderCreateAPIRequest.go new file mode 100644 index 0000000000..9dfcb8fa9f --- /dev/null +++ b/model/jst/TaobaoOcOrderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建OC订单 API请求 +taobao.oc.order.create + +创建OC订单接口 +*/ +type TaobaoOcOrderCreateAPIRequest struct { + model.Params + // OC订单 + _paramOCOrder *OcOrder +} + +// 初始化TaobaoOcOrderCreateAPIRequest对象 +func NewTaobaoOcOrderCreateRequest() *TaobaoOcOrderCreateAPIRequest{ + return &TaobaoOcOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOcOrderCreateAPIRequest) GetApiMethodName() string { + return "taobao.oc.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOcOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamOCOrder Setter +// OC订单 +func (r *TaobaoOcOrderCreateAPIRequest) SetParamOCOrder(_paramOCOrder *OcOrder) error { + r._paramOCOrder = _paramOCOrder + r.Set("param_o_c_order", _paramOCOrder) + return nil +} + +// ParamOCOrder Getter +func (r TaobaoOcOrderCreateAPIRequest) GetParamOCOrder() *OcOrder { + return r._paramOCOrder +} diff --git a/model/jst/TaobaoOcOrderCreateAPIResponse.go b/model/jst/TaobaoOcOrderCreateAPIResponse.go new file mode 100644 index 0000000000..00486a98f4 --- /dev/null +++ b/model/jst/TaobaoOcOrderCreateAPIResponse.go @@ -0,0 +1,31 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建OC订单 API返回值 +taobao.oc.order.create + +创建OC订单接口 +*/ +type TaobaoOcOrderCreateAPIResponse struct { + model.CommonResponse + TaobaoOcOrderCreateAPIResponseModel +} + +// 创建OC订单 成功返回结果 +type TaobaoOcOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"oc_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 表示是否执行成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 执行失败原因 + ErrorDescription string `json:"error_description,omitempty" xml:"error_description,omitempty"` + // OcOrder + OcOrder *OcOrder `json:"oc_order,omitempty" xml:"oc_order,omitempty"` +} diff --git a/model/jst/TaobaoOcOrderCreateResponse.go b/model/jst/TaobaoOcOrderCreateResponse.go deleted file mode 100644 index a383374fec..0000000000 --- a/model/jst/TaobaoOcOrderCreateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建OC订单 API返回值 -taobao.oc.order.create - -创建OC订单接口 -*/ -type TaobaoOcOrderCreateAPIResponse struct { - model.CommonResponse - TaobaoOcOrderCreateResponse -} - -// 创建OC订单 成功返回结果 -type TaobaoOcOrderCreateResponse struct { - XMLName xml.Name `xml:"oc_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 表示是否执行成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 执行失败原因 - ErrorDescription string `json:"error_description,omitempty" xml:"error_description,omitempty"` - // OcOrder - OcOrder *OcOrder `json:"oc_order,omitempty" xml:"oc_order,omitempty"` -} diff --git a/model/jst/TaobaoOcTradesBytagGetAPIRequest.go b/model/jst/TaobaoOcTradesBytagGetAPIRequest.go new file mode 100644 index 0000000000..8bddebf819 --- /dev/null +++ b/model/jst/TaobaoOcTradesBytagGetAPIRequest.go @@ -0,0 +1,94 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +标签查询订单 API请求 +taobao.oc.trades.bytag.get + +根据标签查询订单编号 +*/ +type TaobaoOcTradesBytagGetAPIRequest struct { + model.Params + // 分页大小 + _pageSize int64 + // 标签类型,1官方,2自定义 + _tagType int64 + // 当前页 + _page int64 + // 标签名称 + _tagName string +} + +// 初始化TaobaoOcTradesBytagGetAPIRequest对象 +func NewTaobaoOcTradesBytagGetRequest() *TaobaoOcTradesBytagGetAPIRequest{ + return &TaobaoOcTradesBytagGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOcTradesBytagGetAPIRequest) GetApiMethodName() string { + return "taobao.oc.trades.bytag.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOcTradesBytagGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageSize Setter +// 分页大小 +func (r *TaobaoOcTradesBytagGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoOcTradesBytagGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// TagType Setter +// 标签类型,1官方,2自定义 +func (r *TaobaoOcTradesBytagGetAPIRequest) SetTagType(_tagType int64) error { + r._tagType = _tagType + r.Set("tag_type", _tagType) + return nil +} + +// TagType Getter +func (r TaobaoOcTradesBytagGetAPIRequest) GetTagType() int64 { + return r._tagType +} +// Page Setter +// 当前页 +func (r *TaobaoOcTradesBytagGetAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r TaobaoOcTradesBytagGetAPIRequest) GetPage() int64 { + return r._page +} +// TagName Setter +// 标签名称 +func (r *TaobaoOcTradesBytagGetAPIRequest) SetTagName(_tagName string) error { + r._tagName = _tagName + r.Set("tag_name", _tagName) + return nil +} + +// TagName Getter +func (r TaobaoOcTradesBytagGetAPIRequest) GetTagName() string { + return r._tagName +} diff --git a/model/jst/TaobaoOcTradesBytagGetAPIResponse.go b/model/jst/TaobaoOcTradesBytagGetAPIResponse.go new file mode 100644 index 0000000000..6f0dcccb56 --- /dev/null +++ b/model/jst/TaobaoOcTradesBytagGetAPIResponse.go @@ -0,0 +1,29 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +标签查询订单 API返回值 +taobao.oc.trades.bytag.get + +根据标签查询订单编号 +*/ +type TaobaoOcTradesBytagGetAPIResponse struct { + model.CommonResponse + TaobaoOcTradesBytagGetAPIResponseModel +} + +// 标签查询订单 成功返回结果 +type TaobaoOcTradesBytagGetAPIResponseModel struct { + XMLName xml.Name `xml:"oc_trades_bytag_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 打了该标签的订单编号列表 + Tids []int64 `json:"tids,omitempty" xml:"tids>int64,omitempty"` + // 总数 + Totals int64 `json:"totals,omitempty" xml:"totals,omitempty"` +} diff --git a/model/jst/TaobaoOcTradesBytagGetResponse.go b/model/jst/TaobaoOcTradesBytagGetResponse.go deleted file mode 100644 index 943554ac73..0000000000 --- a/model/jst/TaobaoOcTradesBytagGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -标签查询订单 API返回值 -taobao.oc.trades.bytag.get - -根据标签查询订单编号 -*/ -type TaobaoOcTradesBytagGetAPIResponse struct { - model.CommonResponse - TaobaoOcTradesBytagGetResponse -} - -// 标签查询订单 成功返回结果 -type TaobaoOcTradesBytagGetResponse struct { - XMLName xml.Name `xml:"oc_trades_bytag_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 打了该标签的订单编号列表 - Tids []int64 `json:"tids,omitempty" xml:"tids>int64,omitempty"` - // 总数 - Totals int64 `json:"totals,omitempty" xml:"totals,omitempty"` -} diff --git a/model/jst/TaobaoOcTradetagAttachAPIRequest.go b/model/jst/TaobaoOcTradetagAttachAPIRequest.go new file mode 100644 index 0000000000..7dea0e6985 --- /dev/null +++ b/model/jst/TaobaoOcTradetagAttachAPIRequest.go @@ -0,0 +1,108 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单打标或者订单标签更新 API请求 +taobao.oc.tradetag.attach + +对订单添加标签和更新标签。标签分为官方标签和自定义标签。
官方标签目前有:赠品,电子发票,收货地址变更,预售。具体格式说明请看http://open.taobao.com/doc/detail.htm?id=102731
自定义标签有2个通用属性:
`show_str:给消费者显示的字符串(如果可以显示的话)
`pic_urls:图片url,地址必须是图片空间的url,最多5张 +*/ +type TaobaoOcTradetagAttachAPIRequest struct { + model.Params + // 标签类型 1:官方标签 2:自定义标签 + _tagType int64 + // 订单id + _tid int64 + // 标签名称 + _tagName string + // 标签值,json格式 + _tagValue string + // 该标签在消费者端是否显示,0:不显示,1:显示 + _visible int64 +} + +// 初始化TaobaoOcTradetagAttachAPIRequest对象 +func NewTaobaoOcTradetagAttachRequest() *TaobaoOcTradetagAttachAPIRequest{ + return &TaobaoOcTradetagAttachAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOcTradetagAttachAPIRequest) GetApiMethodName() string { + return "taobao.oc.tradetag.attach" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOcTradetagAttachAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TagType Setter +// 标签类型 1:官方标签 2:自定义标签 +func (r *TaobaoOcTradetagAttachAPIRequest) SetTagType(_tagType int64) error { + r._tagType = _tagType + r.Set("tag_type", _tagType) + return nil +} + +// TagType Getter +func (r TaobaoOcTradetagAttachAPIRequest) GetTagType() int64 { + return r._tagType +} +// Tid Setter +// 订单id +func (r *TaobaoOcTradetagAttachAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoOcTradetagAttachAPIRequest) GetTid() int64 { + return r._tid +} +// TagName Setter +// 标签名称 +func (r *TaobaoOcTradetagAttachAPIRequest) SetTagName(_tagName string) error { + r._tagName = _tagName + r.Set("tag_name", _tagName) + return nil +} + +// TagName Getter +func (r TaobaoOcTradetagAttachAPIRequest) GetTagName() string { + return r._tagName +} +// TagValue Setter +// 标签值,json格式 +func (r *TaobaoOcTradetagAttachAPIRequest) SetTagValue(_tagValue string) error { + r._tagValue = _tagValue + r.Set("tag_value", _tagValue) + return nil +} + +// TagValue Getter +func (r TaobaoOcTradetagAttachAPIRequest) GetTagValue() string { + return r._tagValue +} +// Visible Setter +// 该标签在消费者端是否显示,0:不显示,1:显示 +func (r *TaobaoOcTradetagAttachAPIRequest) SetVisible(_visible int64) error { + r._visible = _visible + r.Set("visible", _visible) + return nil +} + +// Visible Getter +func (r TaobaoOcTradetagAttachAPIRequest) GetVisible() int64 { + return r._visible +} diff --git a/model/jst/TaobaoOcTradetagAttachAPIResponse.go b/model/jst/TaobaoOcTradetagAttachAPIResponse.go new file mode 100644 index 0000000000..009ebe4c00 --- /dev/null +++ b/model/jst/TaobaoOcTradetagAttachAPIResponse.go @@ -0,0 +1,27 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单打标或者订单标签更新 API返回值 +taobao.oc.tradetag.attach + +对订单添加标签和更新标签。标签分为官方标签和自定义标签。
官方标签目前有:赠品,电子发票,收货地址变更,预售。具体格式说明请看http://open.taobao.com/doc/detail.htm?id=102731
自定义标签有2个通用属性:
`show_str:给消费者显示的字符串(如果可以显示的话)
`pic_urls:图片url,地址必须是图片空间的url,最多5张 +*/ +type TaobaoOcTradetagAttachAPIResponse struct { + model.CommonResponse + TaobaoOcTradetagAttachAPIResponseModel +} + +// 订单打标或者订单标签更新 成功返回结果 +type TaobaoOcTradetagAttachAPIResponseModel struct { + XMLName xml.Name `xml:"oc_tradetag_attach_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作成功或者操作失败 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/jst/TaobaoOcTradetagAttachResponse.go b/model/jst/TaobaoOcTradetagAttachResponse.go deleted file mode 100644 index 26de96d545..0000000000 --- a/model/jst/TaobaoOcTradetagAttachResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单打标或者订单标签更新 API返回值 -taobao.oc.tradetag.attach - -对订单添加标签和更新标签。标签分为官方标签和自定义标签。
官方标签目前有:赠品,电子发票,收货地址变更,预售。具体格式说明请看http://open.taobao.com/doc/detail.htm?id=102731
自定义标签有2个通用属性:
`show_str:给消费者显示的字符串(如果可以显示的话)
`pic_urls:图片url,地址必须是图片空间的url,最多5张 -*/ -type TaobaoOcTradetagAttachAPIResponse struct { - model.CommonResponse - TaobaoOcTradetagAttachResponse -} - -// 订单打标或者订单标签更新 成功返回结果 -type TaobaoOcTradetagAttachResponse struct { - XMLName xml.Name `xml:"oc_tradetag_attach_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作成功或者操作失败 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/jst/TaobaoOcTradetagsGetAPIRequest.go b/model/jst/TaobaoOcTradetagsGetAPIRequest.go new file mode 100644 index 0000000000..d3e5d35cf1 --- /dev/null +++ b/model/jst/TaobaoOcTradetagsGetAPIRequest.go @@ -0,0 +1,97 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据订单查询订单标签 API请求 +taobao.oc.tradetags.get + +根据订单查询订单标签。
+返回的tag说明:1为官方标,2为自定义标,3为主站只读标签。
+官方标签和自定义标签请看taobao.oc.tradetag.attach 接口说明
+主站只读标签请看:http://open.taobao.com/doc/detail.htm?id=102865
+*/ +type TaobaoOcTradetagsGetAPIRequest struct { + model.Params + // 交易主订单id + _tid int64 + // 是否查询历史标签 + _history int64 + // 不填,则默认只查询1,2。1为官方标,2为自定义标,3为主站只读标签 + _tagTypes []string + // 不填,则不做标签名称过滤 + _tagNames []string +} + +// 初始化TaobaoOcTradetagsGetAPIRequest对象 +func NewTaobaoOcTradetagsGetRequest() *TaobaoOcTradetagsGetAPIRequest{ + return &TaobaoOcTradetagsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOcTradetagsGetAPIRequest) GetApiMethodName() string { + return "taobao.oc.tradetags.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOcTradetagsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 交易主订单id +func (r *TaobaoOcTradetagsGetAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoOcTradetagsGetAPIRequest) GetTid() int64 { + return r._tid +} +// History Setter +// 是否查询历史标签 +func (r *TaobaoOcTradetagsGetAPIRequest) SetHistory(_history int64) error { + r._history = _history + r.Set("history", _history) + return nil +} + +// History Getter +func (r TaobaoOcTradetagsGetAPIRequest) GetHistory() int64 { + return r._history +} +// TagTypes Setter +// 不填,则默认只查询1,2。1为官方标,2为自定义标,3为主站只读标签 +func (r *TaobaoOcTradetagsGetAPIRequest) SetTagTypes(_tagTypes []string) error { + r._tagTypes = _tagTypes + r.Set("tag_types", _tagTypes) + return nil +} + +// TagTypes Getter +func (r TaobaoOcTradetagsGetAPIRequest) GetTagTypes() []string { + return r._tagTypes +} +// TagNames Setter +// 不填,则不做标签名称过滤 +func (r *TaobaoOcTradetagsGetAPIRequest) SetTagNames(_tagNames []string) error { + r._tagNames = _tagNames + r.Set("tag_names", _tagNames) + return nil +} + +// TagNames Getter +func (r TaobaoOcTradetagsGetAPIRequest) GetTagNames() []string { + return r._tagNames +} diff --git a/model/jst/TaobaoOcTradetagsGetAPIResponse.go b/model/jst/TaobaoOcTradetagsGetAPIResponse.go new file mode 100644 index 0000000000..568bf93089 --- /dev/null +++ b/model/jst/TaobaoOcTradetagsGetAPIResponse.go @@ -0,0 +1,30 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据订单查询订单标签 API返回值 +taobao.oc.tradetags.get + +根据订单查询订单标签。
+返回的tag说明:1为官方标,2为自定义标,3为主站只读标签。
+官方标签和自定义标签请看taobao.oc.tradetag.attach 接口说明
+主站只读标签请看:http://open.taobao.com/doc/detail.htm?id=102865
+*/ +type TaobaoOcTradetagsGetAPIResponse struct { + model.CommonResponse + TaobaoOcTradetagsGetAPIResponseModel +} + +// 根据订单查询订单标签 成功返回结果 +type TaobaoOcTradetagsGetAPIResponseModel struct { + XMLName xml.Name `xml:"oc_tradetags_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + TradeTags []TradeTagRelationDo `json:"trade_tags,omitempty" xml:"trade_tags>trade_tag_relation_do,omitempty"` +} diff --git a/model/jst/TaobaoOcTradetagsGetResponse.go b/model/jst/TaobaoOcTradetagsGetResponse.go deleted file mode 100644 index 2cd11ef637..0000000000 --- a/model/jst/TaobaoOcTradetagsGetResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据订单查询订单标签 API返回值 -taobao.oc.tradetags.get - -根据订单查询订单标签。
-返回的tag说明:1为官方标,2为自定义标,3为主站只读标签。
-官方标签和自定义标签请看taobao.oc.tradetag.attach 接口说明
-主站只读标签请看:http://open.taobao.com/doc/detail.htm?id=102865
-*/ -type TaobaoOcTradetagsGetAPIResponse struct { - model.CommonResponse - TaobaoOcTradetagsGetResponse -} - -// 根据订单查询订单标签 成功返回结果 -type TaobaoOcTradetagsGetResponse struct { - XMLName xml.Name `xml:"oc_tradetags_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - TradeTags []TradeTagRelationDo `json:"trade_tags,omitempty" xml:"trade_tags>trade_tag_relation_do,omitempty"` -} diff --git a/model/jst/TaobaoOcTradetraceAlertsGetAPIRequest.go b/model/jst/TaobaoOcTradetraceAlertsGetAPIRequest.go new file mode 100644 index 0000000000..bb3760ebfe --- /dev/null +++ b/model/jst/TaobaoOcTradetraceAlertsGetAPIRequest.go @@ -0,0 +1,80 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +异常订单信息获取 API请求 +taobao.oc.tradetrace.alerts.get + +提供订单预警模块的数据查询接口 +*/ +type TaobaoOcTradetraceAlertsGetAPIRequest struct { + model.Params + // 异常类型代码:发货回写淘宝异常=1,商家系统漏单提醒=2,发货超时提醒=3,物流寄送超时=4,买家签收超时=5,物流中转异常=6,退货寄回异常=7,订单追回提醒=8"。 + _abnormalType int64 + // 返回数据的页码 + _pageNo int64 + // 返回数据每页包含的记录数目 + _pageSize int64 +} + +// 初始化TaobaoOcTradetraceAlertsGetAPIRequest对象 +func NewTaobaoOcTradetraceAlertsGetRequest() *TaobaoOcTradetraceAlertsGetAPIRequest{ + return &TaobaoOcTradetraceAlertsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOcTradetraceAlertsGetAPIRequest) GetApiMethodName() string { + return "taobao.oc.tradetrace.alerts.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOcTradetraceAlertsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AbnormalType Setter +// 异常类型代码:发货回写淘宝异常=1,商家系统漏单提醒=2,发货超时提醒=3,物流寄送超时=4,买家签收超时=5,物流中转异常=6,退货寄回异常=7,订单追回提醒=8"。 +func (r *TaobaoOcTradetraceAlertsGetAPIRequest) SetAbnormalType(_abnormalType int64) error { + r._abnormalType = _abnormalType + r.Set("abnormal_type", _abnormalType) + return nil +} + +// AbnormalType Getter +func (r TaobaoOcTradetraceAlertsGetAPIRequest) GetAbnormalType() int64 { + return r._abnormalType +} +// PageNo Setter +// 返回数据的页码 +func (r *TaobaoOcTradetraceAlertsGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoOcTradetraceAlertsGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 返回数据每页包含的记录数目 +func (r *TaobaoOcTradetraceAlertsGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoOcTradetraceAlertsGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/jst/TaobaoOcTradetraceAlertsGetAPIResponse.go b/model/jst/TaobaoOcTradetraceAlertsGetAPIResponse.go new file mode 100644 index 0000000000..d1990ff2bd --- /dev/null +++ b/model/jst/TaobaoOcTradetraceAlertsGetAPIResponse.go @@ -0,0 +1,27 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +异常订单信息获取 API返回值 +taobao.oc.tradetrace.alerts.get + +提供订单预警模块的数据查询接口 +*/ +type TaobaoOcTradetraceAlertsGetAPIResponse struct { + model.CommonResponse + TaobaoOcTradetraceAlertsGetAPIResponseModel +} + +// 异常订单信息获取 成功返回结果 +type TaobaoOcTradetraceAlertsGetAPIResponseModel struct { + XMLName xml.Name `xml:"oc_tradetrace_alerts_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异常订单数据 + ResultList []SimpleAbnormalOrderDetail `json:"result_list,omitempty" xml:"result_list>simple_abnormal_order_detail,omitempty"` +} diff --git a/model/jst/TaobaoOcTradetraceAlertsGetResponse.go b/model/jst/TaobaoOcTradetraceAlertsGetResponse.go deleted file mode 100644 index 97934e18ab..0000000000 --- a/model/jst/TaobaoOcTradetraceAlertsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -异常订单信息获取 API返回值 -taobao.oc.tradetrace.alerts.get - -提供订单预警模块的数据查询接口 -*/ -type TaobaoOcTradetraceAlertsGetAPIResponse struct { - model.CommonResponse - TaobaoOcTradetraceAlertsGetResponse -} - -// 异常订单信息获取 成功返回结果 -type TaobaoOcTradetraceAlertsGetResponse struct { - XMLName xml.Name `xml:"oc_tradetrace_alerts_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异常订单数据 - ResultList []SimpleAbnormalOrderDetail `json:"result_list,omitempty" xml:"result_list>simple_abnormal_order_detail,omitempty"` -} diff --git a/model/jst/TaobaoQimenOrderstatusUpdateAPIRequest.go b/model/jst/TaobaoQimenOrderstatusUpdateAPIRequest.go new file mode 100644 index 0000000000..d4a95a8dc0 --- /dev/null +++ b/model/jst/TaobaoQimenOrderstatusUpdateAPIRequest.go @@ -0,0 +1,136 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单状态更新接口 API请求 +taobao.qimen.orderstatus.update + +星盘和ISV,可以通过此接口,来更新订单状态。此接口应用于使用阿里星盘分单,且使用商家系统(非阿里掌柜)接单/拒单的模式下更新订单状态。 +*/ +type TaobaoQimenOrderstatusUpdateAPIRequest struct { + model.Params + // 星盘派单号 + _allocationCode string + // 淘系子订单号 + _orderCodes []int64 + // 目标门店的商户中心门店编码 + _storeId int64 + // 业务类型,(枚举值:FAHUO、ZITI) + _type string + // 订单状态,门店发货包括X_SHOP_ALLOCATION、X_SHOP_DENYX_SHOP_HANDLED、X_SHOP_CANCEL_CONFIRM、X_SHOP_CANCEL_DENIED、X_MATCHED;门店自提包括X_COMMODITY_CONFIRMX_COMMODITY_TRANSER、X_TRANSFER _SUCCESS、X_SHOP_CANCEL_CONFIRM、X_MATCHED、X_SHOP_DENY + _status string + // 操作人 + _operator string + // 事件发生时间 + _actionTime string +} + +// 初始化TaobaoQimenOrderstatusUpdateAPIRequest对象 +func NewTaobaoQimenOrderstatusUpdateRequest() *TaobaoQimenOrderstatusUpdateAPIRequest{ + return &TaobaoQimenOrderstatusUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenOrderstatusUpdateAPIRequest) GetApiMethodName() string { + return "taobao.qimen.orderstatus.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenOrderstatusUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AllocationCode Setter +// 星盘派单号 +func (r *TaobaoQimenOrderstatusUpdateAPIRequest) SetAllocationCode(_allocationCode string) error { + r._allocationCode = _allocationCode + r.Set("allocation_code", _allocationCode) + return nil +} + +// AllocationCode Getter +func (r TaobaoQimenOrderstatusUpdateAPIRequest) GetAllocationCode() string { + return r._allocationCode +} +// OrderCodes Setter +// 淘系子订单号 +func (r *TaobaoQimenOrderstatusUpdateAPIRequest) SetOrderCodes(_orderCodes []int64) error { + r._orderCodes = _orderCodes + r.Set("order_codes", _orderCodes) + return nil +} + +// OrderCodes Getter +func (r TaobaoQimenOrderstatusUpdateAPIRequest) GetOrderCodes() []int64 { + return r._orderCodes +} +// StoreId Setter +// 目标门店的商户中心门店编码 +func (r *TaobaoQimenOrderstatusUpdateAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoQimenOrderstatusUpdateAPIRequest) GetStoreId() int64 { + return r._storeId +} +// Type Setter +// 业务类型,(枚举值:FAHUO、ZITI) +func (r *TaobaoQimenOrderstatusUpdateAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoQimenOrderstatusUpdateAPIRequest) GetType() string { + return r._type +} +// Status Setter +// 订单状态,门店发货包括X_SHOP_ALLOCATION、X_SHOP_DENYX_SHOP_HANDLED、X_SHOP_CANCEL_CONFIRM、X_SHOP_CANCEL_DENIED、X_MATCHED;门店自提包括X_COMMODITY_CONFIRMX_COMMODITY_TRANSER、X_TRANSFER _SUCCESS、X_SHOP_CANCEL_CONFIRM、X_MATCHED、X_SHOP_DENY +func (r *TaobaoQimenOrderstatusUpdateAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoQimenOrderstatusUpdateAPIRequest) GetStatus() string { + return r._status +} +// Operator Setter +// 操作人 +func (r *TaobaoQimenOrderstatusUpdateAPIRequest) SetOperator(_operator string) error { + r._operator = _operator + r.Set("operator", _operator) + return nil +} + +// Operator Getter +func (r TaobaoQimenOrderstatusUpdateAPIRequest) GetOperator() string { + return r._operator +} +// ActionTime Setter +// 事件发生时间 +func (r *TaobaoQimenOrderstatusUpdateAPIRequest) SetActionTime(_actionTime string) error { + r._actionTime = _actionTime + r.Set("action_time", _actionTime) + return nil +} + +// ActionTime Getter +func (r TaobaoQimenOrderstatusUpdateAPIRequest) GetActionTime() string { + return r._actionTime +} diff --git a/model/jst/TaobaoQimenOrderstatusUpdateAPIResponse.go b/model/jst/TaobaoQimenOrderstatusUpdateAPIResponse.go new file mode 100644 index 0000000000..d8be2351da --- /dev/null +++ b/model/jst/TaobaoQimenOrderstatusUpdateAPIResponse.go @@ -0,0 +1,31 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单状态更新接口 API返回值 +taobao.qimen.orderstatus.update + +星盘和ISV,可以通过此接口,来更新订单状态。此接口应用于使用阿里星盘分单,且使用商家系统(非阿里掌柜)接单/拒单的模式下更新订单状态。 +*/ +type TaobaoQimenOrderstatusUpdateAPIResponse struct { + model.CommonResponse + TaobaoQimenOrderstatusUpdateAPIResponseModel +} + +// 订单状态更新接口 成功返回结果 +type TaobaoQimenOrderstatusUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_orderstatus_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // resultCode + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/jst/TaobaoQimenOrderstatusUpdateResponse.go b/model/jst/TaobaoQimenOrderstatusUpdateResponse.go deleted file mode 100644 index d3cda7f06f..0000000000 --- a/model/jst/TaobaoQimenOrderstatusUpdateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单状态更新接口 API返回值 -taobao.qimen.orderstatus.update - -星盘和ISV,可以通过此接口,来更新订单状态。此接口应用于使用阿里星盘分单,且使用商家系统(非阿里掌柜)接单/拒单的模式下更新订单状态。 -*/ -type TaobaoQimenOrderstatusUpdateAPIResponse struct { - model.CommonResponse - TaobaoQimenOrderstatusUpdateResponse -} - -// 订单状态更新接口 成功返回结果 -type TaobaoQimenOrderstatusUpdateResponse struct { - XMLName xml.Name `xml:"qimen_orderstatus_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // resultCode - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/jst/TaobaoRdsDbCreateAPIRequest.go b/model/jst/TaobaoRdsDbCreateAPIRequest.go new file mode 100644 index 0000000000..b07521d5a3 --- /dev/null +++ b/model/jst/TaobaoRdsDbCreateAPIRequest.go @@ -0,0 +1,80 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +rds创建数据库 API请求 +taobao.rds.db.create + +在rds实例里创建数据库 +*/ +type TaobaoRdsDbCreateAPIRequest struct { + model.Params + // rds的实例名 + _instanceName string + // 数据库名 + _dbName string + // 已存在账号名 + _accountName string +} + +// 初始化TaobaoRdsDbCreateAPIRequest对象 +func NewTaobaoRdsDbCreateRequest() *TaobaoRdsDbCreateAPIRequest{ + return &TaobaoRdsDbCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRdsDbCreateAPIRequest) GetApiMethodName() string { + return "taobao.rds.db.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRdsDbCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InstanceName Setter +// rds的实例名 +func (r *TaobaoRdsDbCreateAPIRequest) SetInstanceName(_instanceName string) error { + r._instanceName = _instanceName + r.Set("instance_name", _instanceName) + return nil +} + +// InstanceName Getter +func (r TaobaoRdsDbCreateAPIRequest) GetInstanceName() string { + return r._instanceName +} +// DbName Setter +// 数据库名 +func (r *TaobaoRdsDbCreateAPIRequest) SetDbName(_dbName string) error { + r._dbName = _dbName + r.Set("db_name", _dbName) + return nil +} + +// DbName Getter +func (r TaobaoRdsDbCreateAPIRequest) GetDbName() string { + return r._dbName +} +// AccountName Setter +// 已存在账号名 +func (r *TaobaoRdsDbCreateAPIRequest) SetAccountName(_accountName string) error { + r._accountName = _accountName + r.Set("account_name", _accountName) + return nil +} + +// AccountName Getter +func (r TaobaoRdsDbCreateAPIRequest) GetAccountName() string { + return r._accountName +} diff --git a/model/jst/TaobaoRdsDbCreateAPIResponse.go b/model/jst/TaobaoRdsDbCreateAPIResponse.go new file mode 100644 index 0000000000..85891394ae --- /dev/null +++ b/model/jst/TaobaoRdsDbCreateAPIResponse.go @@ -0,0 +1,27 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +rds创建数据库 API返回值 +taobao.rds.db.create + +在rds实例里创建数据库 +*/ +type TaobaoRdsDbCreateAPIResponse struct { + model.CommonResponse + TaobaoRdsDbCreateAPIResponseModel +} + +// rds创建数据库 成功返回结果 +type TaobaoRdsDbCreateAPIResponseModel struct { + XMLName xml.Name `xml:"rds_db_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // rds创建、查询、删除db返回结果的数据结构 + RdsDbInfo *RdsDbInfo `json:"rds_db_info,omitempty" xml:"rds_db_info,omitempty"` +} diff --git a/model/jst/TaobaoRdsDbCreateResponse.go b/model/jst/TaobaoRdsDbCreateResponse.go deleted file mode 100644 index f4bfffd161..0000000000 --- a/model/jst/TaobaoRdsDbCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -rds创建数据库 API返回值 -taobao.rds.db.create - -在rds实例里创建数据库 -*/ -type TaobaoRdsDbCreateAPIResponse struct { - model.CommonResponse - TaobaoRdsDbCreateResponse -} - -// rds创建数据库 成功返回结果 -type TaobaoRdsDbCreateResponse struct { - XMLName xml.Name `xml:"rds_db_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // rds创建、查询、删除db返回结果的数据结构 - RdsDbInfo *RdsDbInfo `json:"rds_db_info,omitempty" xml:"rds_db_info,omitempty"` -} diff --git a/model/jst/TaobaoRdsDbCreateaccountAPIRequest.go b/model/jst/TaobaoRdsDbCreateaccountAPIRequest.go new file mode 100644 index 0000000000..3decfd66f9 --- /dev/null +++ b/model/jst/TaobaoRdsDbCreateaccountAPIRequest.go @@ -0,0 +1,52 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +rds创建数据库账户 API请求 +taobao.rds.db.createaccount + +rds创建数据库账户 +*/ +type TaobaoRdsDbCreateaccountAPIRequest struct { + model.Params + // 入参对象 + _param0 *RequestDbAccountModel +} + +// 初始化TaobaoRdsDbCreateaccountAPIRequest对象 +func NewTaobaoRdsDbCreateaccountRequest() *TaobaoRdsDbCreateaccountAPIRequest{ + return &TaobaoRdsDbCreateaccountAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRdsDbCreateaccountAPIRequest) GetApiMethodName() string { + return "taobao.rds.db.createaccount" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRdsDbCreateaccountAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 入参对象 +func (r *TaobaoRdsDbCreateaccountAPIRequest) SetParam0(_param0 *RequestDbAccountModel) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoRdsDbCreateaccountAPIRequest) GetParam0() *RequestDbAccountModel { + return r._param0 +} diff --git a/model/jst/TaobaoRdsDbCreateaccountAPIResponse.go b/model/jst/TaobaoRdsDbCreateaccountAPIResponse.go new file mode 100644 index 0000000000..b3edc8c780 --- /dev/null +++ b/model/jst/TaobaoRdsDbCreateaccountAPIResponse.go @@ -0,0 +1,27 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +rds创建数据库账户 API返回值 +taobao.rds.db.createaccount + +rds创建数据库账户 +*/ +type TaobaoRdsDbCreateaccountAPIResponse struct { + model.CommonResponse + TaobaoRdsDbCreateaccountAPIResponseModel +} + +// rds创建数据库账户 成功返回结果 +type TaobaoRdsDbCreateaccountAPIResponseModel struct { + XMLName xml.Name `xml:"rds_db_createaccount_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoRdsDbCreateaccountResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/jst/TaobaoRdsDbCreateaccountResponse.go b/model/jst/TaobaoRdsDbCreateaccountResponse.go deleted file mode 100644 index 03a3a3c654..0000000000 --- a/model/jst/TaobaoRdsDbCreateaccountResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -rds创建数据库账户 API返回值 -taobao.rds.db.createaccount - -rds创建数据库账户 -*/ -type TaobaoRdsDbCreateaccountAPIResponse struct { - model.CommonResponse - TaobaoRdsDbCreateaccountResponse -} - -// rds创建数据库账户 成功返回结果 -type TaobaoRdsDbCreateaccountResponse struct { - XMLName xml.Name `xml:"rds_db_createaccount_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoRdsDbCreateaccountResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/jst/TaobaoRdsDbDeleteAPIRequest.go b/model/jst/TaobaoRdsDbDeleteAPIRequest.go new file mode 100644 index 0000000000..96cdb3d6de --- /dev/null +++ b/model/jst/TaobaoRdsDbDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +RDS数据库删除 API请求 +taobao.rds.db.delete + +通过api删除用户RDS的数据库 +*/ +type TaobaoRdsDbDeleteAPIRequest struct { + model.Params + // rds的实例名 + _instanceName string + // 数据库的name,可以通过 taobao.rds.db.get 获取 + _dbName string +} + +// 初始化TaobaoRdsDbDeleteAPIRequest对象 +func NewTaobaoRdsDbDeleteRequest() *TaobaoRdsDbDeleteAPIRequest{ + return &TaobaoRdsDbDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRdsDbDeleteAPIRequest) GetApiMethodName() string { + return "taobao.rds.db.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRdsDbDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InstanceName Setter +// rds的实例名 +func (r *TaobaoRdsDbDeleteAPIRequest) SetInstanceName(_instanceName string) error { + r._instanceName = _instanceName + r.Set("instance_name", _instanceName) + return nil +} + +// InstanceName Getter +func (r TaobaoRdsDbDeleteAPIRequest) GetInstanceName() string { + return r._instanceName +} +// DbName Setter +// 数据库的name,可以通过 taobao.rds.db.get 获取 +func (r *TaobaoRdsDbDeleteAPIRequest) SetDbName(_dbName string) error { + r._dbName = _dbName + r.Set("db_name", _dbName) + return nil +} + +// DbName Getter +func (r TaobaoRdsDbDeleteAPIRequest) GetDbName() string { + return r._dbName +} diff --git a/model/jst/TaobaoRdsDbDeleteAPIResponse.go b/model/jst/TaobaoRdsDbDeleteAPIResponse.go new file mode 100644 index 0000000000..8b794219c4 --- /dev/null +++ b/model/jst/TaobaoRdsDbDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +RDS数据库删除 API返回值 +taobao.rds.db.delete + +通过api删除用户RDS的数据库 +*/ +type TaobaoRdsDbDeleteAPIResponse struct { + model.CommonResponse + TaobaoRdsDbDeleteAPIResponseModel +} + +// RDS数据库删除 成功返回结果 +type TaobaoRdsDbDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"rds_db_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 删除数据库,返回结果对象 + RdsDbInfo *RdsDbInfo `json:"rds_db_info,omitempty" xml:"rds_db_info,omitempty"` +} diff --git a/model/jst/TaobaoRdsDbDeleteResponse.go b/model/jst/TaobaoRdsDbDeleteResponse.go deleted file mode 100644 index 31def8f6b3..0000000000 --- a/model/jst/TaobaoRdsDbDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -RDS数据库删除 API返回值 -taobao.rds.db.delete - -通过api删除用户RDS的数据库 -*/ -type TaobaoRdsDbDeleteAPIResponse struct { - model.CommonResponse - TaobaoRdsDbDeleteResponse -} - -// RDS数据库删除 成功返回结果 -type TaobaoRdsDbDeleteResponse struct { - XMLName xml.Name `xml:"rds_db_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 删除数据库,返回结果对象 - RdsDbInfo *RdsDbInfo `json:"rds_db_info,omitempty" xml:"rds_db_info,omitempty"` -} diff --git a/model/jst/TaobaoRdsDbGetAPIRequest.go b/model/jst/TaobaoRdsDbGetAPIRequest.go new file mode 100644 index 0000000000..5320b6e9ab --- /dev/null +++ b/model/jst/TaobaoRdsDbGetAPIRequest.go @@ -0,0 +1,66 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询rds下的数据库 API请求 +taobao.rds.db.get + +查询rds实例下的数据库 +*/ +type TaobaoRdsDbGetAPIRequest struct { + model.Params + // rds的实例名 + _instanceName string + // 数据库状态,默认值1 + _dbStatus int64 +} + +// 初始化TaobaoRdsDbGetAPIRequest对象 +func NewTaobaoRdsDbGetRequest() *TaobaoRdsDbGetAPIRequest{ + return &TaobaoRdsDbGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRdsDbGetAPIRequest) GetApiMethodName() string { + return "taobao.rds.db.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRdsDbGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InstanceName Setter +// rds的实例名 +func (r *TaobaoRdsDbGetAPIRequest) SetInstanceName(_instanceName string) error { + r._instanceName = _instanceName + r.Set("instance_name", _instanceName) + return nil +} + +// InstanceName Getter +func (r TaobaoRdsDbGetAPIRequest) GetInstanceName() string { + return r._instanceName +} +// DbStatus Setter +// 数据库状态,默认值1 +func (r *TaobaoRdsDbGetAPIRequest) SetDbStatus(_dbStatus int64) error { + r._dbStatus = _dbStatus + r.Set("db_status", _dbStatus) + return nil +} + +// DbStatus Getter +func (r TaobaoRdsDbGetAPIRequest) GetDbStatus() int64 { + return r._dbStatus +} diff --git a/model/jst/TaobaoRdsDbGetAPIResponse.go b/model/jst/TaobaoRdsDbGetAPIResponse.go new file mode 100644 index 0000000000..051209193f --- /dev/null +++ b/model/jst/TaobaoRdsDbGetAPIResponse.go @@ -0,0 +1,27 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询rds下的数据库 API返回值 +taobao.rds.db.get + +查询rds实例下的数据库 +*/ +type TaobaoRdsDbGetAPIResponse struct { + model.CommonResponse + TaobaoRdsDbGetAPIResponseModel +} + +// 查询rds下的数据库 成功返回结果 +type TaobaoRdsDbGetAPIResponseModel struct { + XMLName xml.Name `xml:"rds_db_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 数据库查询返回数据结构 + RdsDbInfos []RdsDbInfo `json:"rds_db_infos,omitempty" xml:"rds_db_infos>rds_db_info,omitempty"` +} diff --git a/model/jst/TaobaoRdsDbGetResponse.go b/model/jst/TaobaoRdsDbGetResponse.go deleted file mode 100644 index 92f48a3954..0000000000 --- a/model/jst/TaobaoRdsDbGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询rds下的数据库 API返回值 -taobao.rds.db.get - -查询rds实例下的数据库 -*/ -type TaobaoRdsDbGetAPIResponse struct { - model.CommonResponse - TaobaoRdsDbGetResponse -} - -// 查询rds下的数据库 成功返回结果 -type TaobaoRdsDbGetResponse struct { - XMLName xml.Name `xml:"rds_db_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 数据库查询返回数据结构 - RdsDbInfos []RdsDbInfo `json:"rds_db_infos,omitempty" xml:"rds_db_infos>rds_db_info,omitempty"` -} diff --git a/model/jst/TaobaoRdsDbGetdbAPIRequest.go b/model/jst/TaobaoRdsDbGetdbAPIRequest.go new file mode 100644 index 0000000000..f0065ba335 --- /dev/null +++ b/model/jst/TaobaoRdsDbGetdbAPIRequest.go @@ -0,0 +1,66 @@ +package jst + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +rds获取RDS的DB API请求 +taobao.rds.db.getdb + +rds获取RDS的DB +*/ +type TaobaoRdsDbGetdbAPIRequest struct { + model.Params + // 账户名 + _accountName string + // 实例名 + _instanceName string +} + +// 初始化TaobaoRdsDbGetdbAPIRequest对象 +func NewTaobaoRdsDbGetdbRequest() *TaobaoRdsDbGetdbAPIRequest{ + return &TaobaoRdsDbGetdbAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRdsDbGetdbAPIRequest) GetApiMethodName() string { + return "taobao.rds.db.getdb" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRdsDbGetdbAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccountName Setter +// 账户名 +func (r *TaobaoRdsDbGetdbAPIRequest) SetAccountName(_accountName string) error { + r._accountName = _accountName + r.Set("account_name", _accountName) + return nil +} + +// AccountName Getter +func (r TaobaoRdsDbGetdbAPIRequest) GetAccountName() string { + return r._accountName +} +// InstanceName Setter +// 实例名 +func (r *TaobaoRdsDbGetdbAPIRequest) SetInstanceName(_instanceName string) error { + r._instanceName = _instanceName + r.Set("instance_name", _instanceName) + return nil +} + +// InstanceName Getter +func (r TaobaoRdsDbGetdbAPIRequest) GetInstanceName() string { + return r._instanceName +} diff --git a/model/jst/TaobaoRdsDbGetdbAPIResponse.go b/model/jst/TaobaoRdsDbGetdbAPIResponse.go new file mode 100644 index 0000000000..a63b6d2268 --- /dev/null +++ b/model/jst/TaobaoRdsDbGetdbAPIResponse.go @@ -0,0 +1,27 @@ +package jst + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +rds获取RDS的DB API返回值 +taobao.rds.db.getdb + +rds获取RDS的DB +*/ +type TaobaoRdsDbGetdbAPIResponse struct { + model.CommonResponse + TaobaoRdsDbGetdbAPIResponseModel +} + +// rds获取RDS的DB 成功返回结果 +type TaobaoRdsDbGetdbAPIResponseModel struct { + XMLName xml.Name `xml:"rds_db_getdb_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoRdsDbGetdbResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/jst/TaobaoRdsDbGetdbResponse.go b/model/jst/TaobaoRdsDbGetdbResponse.go deleted file mode 100644 index 9f42fcc651..0000000000 --- a/model/jst/TaobaoRdsDbGetdbResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jst - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -rds获取RDS的DB API返回值 -taobao.rds.db.getdb - -rds获取RDS的DB -*/ -type TaobaoRdsDbGetdbAPIResponse struct { - model.CommonResponse - TaobaoRdsDbGetdbResponse -} - -// rds获取RDS的DB 成功返回结果 -type TaobaoRdsDbGetdbResponse struct { - XMLName xml.Name `xml:"rds_db_getdb_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoRdsDbGetdbResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/jstinteractive/TaobaoJstInteractiveActivityCreateAPIRequest.go b/model/jstinteractive/TaobaoJstInteractiveActivityCreateAPIRequest.go new file mode 100644 index 0000000000..54307c8771 --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractiveActivityCreateAPIRequest.go @@ -0,0 +1,94 @@ +package jstinteractive + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +互动任务活动创建接口 API请求 +taobao.jst.interactive.activity.create + +调用活动创建接口为小程序创建互动任务活动,任务列表仅在活动期间内返回 +*/ +type TaobaoJstInteractiveActivityCreateAPIRequest struct { + model.Params + // 小程序id + _miniAppId string + // 活动名称 + _activityName string + // 活动开始时间,格式为yyyy-MM-dd HH:mm:ss,任务列表只在活动期间内返回 + _startTime string + // 活动结束时间,格式为yyyy-MM-dd HH:mm:ss,任务列表只在活动期间内返回 + _endTime string +} + +// 初始化TaobaoJstInteractiveActivityCreateAPIRequest对象 +func NewTaobaoJstInteractiveActivityCreateRequest() *TaobaoJstInteractiveActivityCreateAPIRequest{ + return &TaobaoJstInteractiveActivityCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstInteractiveActivityCreateAPIRequest) GetApiMethodName() string { + return "taobao.jst.interactive.activity.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstInteractiveActivityCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MiniAppId Setter +// 小程序id +func (r *TaobaoJstInteractiveActivityCreateAPIRequest) SetMiniAppId(_miniAppId string) error { + r._miniAppId = _miniAppId + r.Set("mini_app_id", _miniAppId) + return nil +} + +// MiniAppId Getter +func (r TaobaoJstInteractiveActivityCreateAPIRequest) GetMiniAppId() string { + return r._miniAppId +} +// ActivityName Setter +// 活动名称 +func (r *TaobaoJstInteractiveActivityCreateAPIRequest) SetActivityName(_activityName string) error { + r._activityName = _activityName + r.Set("activity_name", _activityName) + return nil +} + +// ActivityName Getter +func (r TaobaoJstInteractiveActivityCreateAPIRequest) GetActivityName() string { + return r._activityName +} +// StartTime Setter +// 活动开始时间,格式为yyyy-MM-dd HH:mm:ss,任务列表只在活动期间内返回 +func (r *TaobaoJstInteractiveActivityCreateAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoJstInteractiveActivityCreateAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 活动结束时间,格式为yyyy-MM-dd HH:mm:ss,任务列表只在活动期间内返回 +func (r *TaobaoJstInteractiveActivityCreateAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoJstInteractiveActivityCreateAPIRequest) GetEndTime() string { + return r._endTime +} diff --git a/model/jstinteractive/TaobaoJstInteractiveActivityCreateAPIResponse.go b/model/jstinteractive/TaobaoJstInteractiveActivityCreateAPIResponse.go new file mode 100644 index 0000000000..042d86bd6b --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractiveActivityCreateAPIResponse.go @@ -0,0 +1,27 @@ +package jstinteractive + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +互动任务活动创建接口 API返回值 +taobao.jst.interactive.activity.create + +调用活动创建接口为小程序创建互动任务活动,任务列表仅在活动期间内返回 +*/ +type TaobaoJstInteractiveActivityCreateAPIResponse struct { + model.CommonResponse + TaobaoJstInteractiveActivityCreateAPIResponseModel +} + +// 互动任务活动创建接口 成功返回结果 +type TaobaoJstInteractiveActivityCreateAPIResponseModel struct { + XMLName xml.Name `xml:"jst_interactive_activity_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 活动id + ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"` +} diff --git a/model/jstinteractive/TaobaoJstInteractiveActivityCreateResponse.go b/model/jstinteractive/TaobaoJstInteractiveActivityCreateResponse.go deleted file mode 100644 index 71b87fc84c..0000000000 --- a/model/jstinteractive/TaobaoJstInteractiveActivityCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jstinteractive - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -互动任务活动创建接口 API返回值 -taobao.jst.interactive.activity.create - -调用活动创建接口为小程序创建互动任务活动,任务列表仅在活动期间内返回 -*/ -type TaobaoJstInteractiveActivityCreateAPIResponse struct { - model.CommonResponse - TaobaoJstInteractiveActivityCreateResponse -} - -// 互动任务活动创建接口 成功返回结果 -type TaobaoJstInteractiveActivityCreateResponse struct { - XMLName xml.Name `xml:"jst_interactive_activity_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 活动id - ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"` -} diff --git a/model/jstinteractive/TaobaoJstInteractiveActivityQueryAPIRequest.go b/model/jstinteractive/TaobaoJstInteractiveActivityQueryAPIRequest.go new file mode 100644 index 0000000000..fe3d5f7169 --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractiveActivityQueryAPIRequest.go @@ -0,0 +1,52 @@ +package jstinteractive + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +互动任务活动查询接口 API请求 +taobao.jst.interactive.activity.query + +互动任务活动查询接口 +*/ +type TaobaoJstInteractiveActivityQueryAPIRequest struct { + model.Params + // 小程序id + _miniAppId string +} + +// 初始化TaobaoJstInteractiveActivityQueryAPIRequest对象 +func NewTaobaoJstInteractiveActivityQueryRequest() *TaobaoJstInteractiveActivityQueryAPIRequest{ + return &TaobaoJstInteractiveActivityQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstInteractiveActivityQueryAPIRequest) GetApiMethodName() string { + return "taobao.jst.interactive.activity.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstInteractiveActivityQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MiniAppId Setter +// 小程序id +func (r *TaobaoJstInteractiveActivityQueryAPIRequest) SetMiniAppId(_miniAppId string) error { + r._miniAppId = _miniAppId + r.Set("mini_app_id", _miniAppId) + return nil +} + +// MiniAppId Getter +func (r TaobaoJstInteractiveActivityQueryAPIRequest) GetMiniAppId() string { + return r._miniAppId +} diff --git a/model/jstinteractive/TaobaoJstInteractiveActivityQueryAPIResponse.go b/model/jstinteractive/TaobaoJstInteractiveActivityQueryAPIResponse.go new file mode 100644 index 0000000000..9f84b1b07c --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractiveActivityQueryAPIResponse.go @@ -0,0 +1,27 @@ +package jstinteractive + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +互动任务活动查询接口 API返回值 +taobao.jst.interactive.activity.query + +互动任务活动查询接口 +*/ +type TaobaoJstInteractiveActivityQueryAPIResponse struct { + model.CommonResponse + TaobaoJstInteractiveActivityQueryAPIResponseModel +} + +// 互动任务活动查询接口 成功返回结果 +type TaobaoJstInteractiveActivityQueryAPIResponseModel struct { + XMLName xml.Name `xml:"jst_interactive_activity_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 活动列表,只返回有效的活动 + ActivityList []Activity `json:"activity_list,omitempty" xml:"activity_list>activity,omitempty"` +} diff --git a/model/jstinteractive/TaobaoJstInteractiveActivityQueryResponse.go b/model/jstinteractive/TaobaoJstInteractiveActivityQueryResponse.go deleted file mode 100644 index 32bf7ae737..0000000000 --- a/model/jstinteractive/TaobaoJstInteractiveActivityQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jstinteractive - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -互动任务活动查询接口 API返回值 -taobao.jst.interactive.activity.query - -互动任务活动查询接口 -*/ -type TaobaoJstInteractiveActivityQueryAPIResponse struct { - model.CommonResponse - TaobaoJstInteractiveActivityQueryResponse -} - -// 互动任务活动查询接口 成功返回结果 -type TaobaoJstInteractiveActivityQueryResponse struct { - XMLName xml.Name `xml:"jst_interactive_activity_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 活动列表,只返回有效的活动 - ActivityList []Activity `json:"activity_list,omitempty" xml:"activity_list>activity,omitempty"` -} diff --git a/model/jstinteractive/TaobaoJstInteractiveActivityUpdateAPIRequest.go b/model/jstinteractive/TaobaoJstInteractiveActivityUpdateAPIRequest.go new file mode 100644 index 0000000000..20275ab88e --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractiveActivityUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package jstinteractive + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +互动任务活动修改接口 API请求 +taobao.jst.interactive.activity.update + +互动任务活动修改接口 +*/ +type TaobaoJstInteractiveActivityUpdateAPIRequest struct { + model.Params + // 小程序id + _miniAppId string + // 活动开始时间,格式为yyyy-MM-dd HH:mm:ss,任务列表只在活动期间内返回 + _startTime string + // 活动结束时间,格式为yyyy-MM-dd HH:mm:ss,任务列表只在活动期间内返回 + _endTime string + // 活动状态,0=无效,1=有效,status设为0即代表删除此活动,需创建新的活动 + _status int64 +} + +// 初始化TaobaoJstInteractiveActivityUpdateAPIRequest对象 +func NewTaobaoJstInteractiveActivityUpdateRequest() *TaobaoJstInteractiveActivityUpdateAPIRequest{ + return &TaobaoJstInteractiveActivityUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstInteractiveActivityUpdateAPIRequest) GetApiMethodName() string { + return "taobao.jst.interactive.activity.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstInteractiveActivityUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MiniAppId Setter +// 小程序id +func (r *TaobaoJstInteractiveActivityUpdateAPIRequest) SetMiniAppId(_miniAppId string) error { + r._miniAppId = _miniAppId + r.Set("mini_app_id", _miniAppId) + return nil +} + +// MiniAppId Getter +func (r TaobaoJstInteractiveActivityUpdateAPIRequest) GetMiniAppId() string { + return r._miniAppId +} +// StartTime Setter +// 活动开始时间,格式为yyyy-MM-dd HH:mm:ss,任务列表只在活动期间内返回 +func (r *TaobaoJstInteractiveActivityUpdateAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoJstInteractiveActivityUpdateAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 活动结束时间,格式为yyyy-MM-dd HH:mm:ss,任务列表只在活动期间内返回 +func (r *TaobaoJstInteractiveActivityUpdateAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoJstInteractiveActivityUpdateAPIRequest) GetEndTime() string { + return r._endTime +} +// Status Setter +// 活动状态,0=无效,1=有效,status设为0即代表删除此活动,需创建新的活动 +func (r *TaobaoJstInteractiveActivityUpdateAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoJstInteractiveActivityUpdateAPIRequest) GetStatus() int64 { + return r._status +} diff --git a/model/jstinteractive/TaobaoJstInteractiveActivityUpdateAPIResponse.go b/model/jstinteractive/TaobaoJstInteractiveActivityUpdateAPIResponse.go new file mode 100644 index 0000000000..6d3cf52d89 --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractiveActivityUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package jstinteractive + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +互动任务活动修改接口 API返回值 +taobao.jst.interactive.activity.update + +互动任务活动修改接口 +*/ +type TaobaoJstInteractiveActivityUpdateAPIResponse struct { + model.CommonResponse + TaobaoJstInteractiveActivityUpdateAPIResponseModel +} + +// 互动任务活动修改接口 成功返回结果 +type TaobaoJstInteractiveActivityUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"jst_interactive_activity_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改结果 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/jstinteractive/TaobaoJstInteractiveActivityUpdateResponse.go b/model/jstinteractive/TaobaoJstInteractiveActivityUpdateResponse.go deleted file mode 100644 index c79c0b7a2c..0000000000 --- a/model/jstinteractive/TaobaoJstInteractiveActivityUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jstinteractive - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -互动任务活动修改接口 API返回值 -taobao.jst.interactive.activity.update - -互动任务活动修改接口 -*/ -type TaobaoJstInteractiveActivityUpdateAPIResponse struct { - model.CommonResponse - TaobaoJstInteractiveActivityUpdateResponse -} - -// 互动任务活动修改接口 成功返回结果 -type TaobaoJstInteractiveActivityUpdateResponse struct { - XMLName xml.Name `xml:"jst_interactive_activity_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改结果 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/jstinteractive/TaobaoJstInteractiveAssetsConfigAPIRequest.go b/model/jstinteractive/TaobaoJstInteractiveAssetsConfigAPIRequest.go new file mode 100644 index 0000000000..922fbdcc62 --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractiveAssetsConfigAPIRequest.go @@ -0,0 +1,66 @@ +package jstinteractive + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +任务素材配置接口 API请求 +taobao.jst.interactive.assets.config + +任务素材配置接口 +*/ +type TaobaoJstInteractiveAssetsConfigAPIRequest struct { + model.Params + // [] + _assetsConfigList []AssetsConfig + // 小程序id + _miniAppId string +} + +// 初始化TaobaoJstInteractiveAssetsConfigAPIRequest对象 +func NewTaobaoJstInteractiveAssetsConfigRequest() *TaobaoJstInteractiveAssetsConfigAPIRequest{ + return &TaobaoJstInteractiveAssetsConfigAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstInteractiveAssetsConfigAPIRequest) GetApiMethodName() string { + return "taobao.jst.interactive.assets.config" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstInteractiveAssetsConfigAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AssetsConfigList Setter +// [] +func (r *TaobaoJstInteractiveAssetsConfigAPIRequest) SetAssetsConfigList(_assetsConfigList []AssetsConfig) error { + r._assetsConfigList = _assetsConfigList + r.Set("assets_config_list", _assetsConfigList) + return nil +} + +// AssetsConfigList Getter +func (r TaobaoJstInteractiveAssetsConfigAPIRequest) GetAssetsConfigList() []AssetsConfig { + return r._assetsConfigList +} +// MiniAppId Setter +// 小程序id +func (r *TaobaoJstInteractiveAssetsConfigAPIRequest) SetMiniAppId(_miniAppId string) error { + r._miniAppId = _miniAppId + r.Set("mini_app_id", _miniAppId) + return nil +} + +// MiniAppId Getter +func (r TaobaoJstInteractiveAssetsConfigAPIRequest) GetMiniAppId() string { + return r._miniAppId +} diff --git a/model/jstinteractive/TaobaoJstInteractiveAssetsConfigAPIResponse.go b/model/jstinteractive/TaobaoJstInteractiveAssetsConfigAPIResponse.go new file mode 100644 index 0000000000..9aa3c2721b --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractiveAssetsConfigAPIResponse.go @@ -0,0 +1,27 @@ +package jstinteractive + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +任务素材配置接口 API返回值 +taobao.jst.interactive.assets.config + +任务素材配置接口 +*/ +type TaobaoJstInteractiveAssetsConfigAPIResponse struct { + model.CommonResponse + TaobaoJstInteractiveAssetsConfigAPIResponseModel +} + +// 任务素材配置接口 成功返回结果 +type TaobaoJstInteractiveAssetsConfigAPIResponseModel struct { + XMLName xml.Name `xml:"jst_interactive_assets_config_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/jstinteractive/TaobaoJstInteractiveAssetsConfigResponse.go b/model/jstinteractive/TaobaoJstInteractiveAssetsConfigResponse.go deleted file mode 100644 index a88afa01e9..0000000000 --- a/model/jstinteractive/TaobaoJstInteractiveAssetsConfigResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jstinteractive - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -任务素材配置接口 API返回值 -taobao.jst.interactive.assets.config - -任务素材配置接口 -*/ -type TaobaoJstInteractiveAssetsConfigAPIResponse struct { - model.CommonResponse - TaobaoJstInteractiveAssetsConfigResponse -} - -// 任务素材配置接口 成功返回结果 -type TaobaoJstInteractiveAssetsConfigResponse struct { - XMLName xml.Name `xml:"jst_interactive_assets_config_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/jstinteractive/TaobaoJstInteractiveAssetsConfiguredQueryAPIRequest.go b/model/jstinteractive/TaobaoJstInteractiveAssetsConfiguredQueryAPIRequest.go new file mode 100644 index 0000000000..82dd1ea430 --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractiveAssetsConfiguredQueryAPIRequest.go @@ -0,0 +1,52 @@ +package jstinteractive + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询已配置的任务素材列表接口 API请求 +taobao.jst.interactive.assets.configured.query + +查询已配置任务素材列表 +*/ +type TaobaoJstInteractiveAssetsConfiguredQueryAPIRequest struct { + model.Params + // 小程序id + _miniAppId string +} + +// 初始化TaobaoJstInteractiveAssetsConfiguredQueryAPIRequest对象 +func NewTaobaoJstInteractiveAssetsConfiguredQueryRequest() *TaobaoJstInteractiveAssetsConfiguredQueryAPIRequest{ + return &TaobaoJstInteractiveAssetsConfiguredQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstInteractiveAssetsConfiguredQueryAPIRequest) GetApiMethodName() string { + return "taobao.jst.interactive.assets.configured.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstInteractiveAssetsConfiguredQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MiniAppId Setter +// 小程序id +func (r *TaobaoJstInteractiveAssetsConfiguredQueryAPIRequest) SetMiniAppId(_miniAppId string) error { + r._miniAppId = _miniAppId + r.Set("mini_app_id", _miniAppId) + return nil +} + +// MiniAppId Getter +func (r TaobaoJstInteractiveAssetsConfiguredQueryAPIRequest) GetMiniAppId() string { + return r._miniAppId +} diff --git a/model/jstinteractive/TaobaoJstInteractiveAssetsConfiguredQueryAPIResponse.go b/model/jstinteractive/TaobaoJstInteractiveAssetsConfiguredQueryAPIResponse.go new file mode 100644 index 0000000000..c29ed7bc1a --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractiveAssetsConfiguredQueryAPIResponse.go @@ -0,0 +1,27 @@ +package jstinteractive + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询已配置的任务素材列表接口 API返回值 +taobao.jst.interactive.assets.configured.query + +查询已配置任务素材列表 +*/ +type TaobaoJstInteractiveAssetsConfiguredQueryAPIResponse struct { + model.CommonResponse + TaobaoJstInteractiveAssetsConfiguredQueryAPIResponseModel +} + +// 查询已配置的任务素材列表接口 成功返回结果 +type TaobaoJstInteractiveAssetsConfiguredQueryAPIResponseModel struct { + XMLName xml.Name `xml:"jst_interactive_assets_configured_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 可配置任务素材列表 + AssetsList []AssetsConfig `json:"assets_list,omitempty" xml:"assets_list>assets_config,omitempty"` +} diff --git a/model/jstinteractive/TaobaoJstInteractiveAssetsConfiguredQueryResponse.go b/model/jstinteractive/TaobaoJstInteractiveAssetsConfiguredQueryResponse.go deleted file mode 100644 index 783ea78102..0000000000 --- a/model/jstinteractive/TaobaoJstInteractiveAssetsConfiguredQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jstinteractive - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询已配置的任务素材列表接口 API返回值 -taobao.jst.interactive.assets.configured.query - -查询已配置任务素材列表 -*/ -type TaobaoJstInteractiveAssetsConfiguredQueryAPIResponse struct { - model.CommonResponse - TaobaoJstInteractiveAssetsConfiguredQueryResponse -} - -// 查询已配置的任务素材列表接口 成功返回结果 -type TaobaoJstInteractiveAssetsConfiguredQueryResponse struct { - XMLName xml.Name `xml:"jst_interactive_assets_configured_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 可配置任务素材列表 - AssetsList []AssetsConfig `json:"assets_list,omitempty" xml:"assets_list>assets_config,omitempty"` -} diff --git a/model/jstinteractive/TaobaoJstInteractiveAssetsQueryAPIRequest.go b/model/jstinteractive/TaobaoJstInteractiveAssetsQueryAPIRequest.go new file mode 100644 index 0000000000..9cf1ef8725 --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractiveAssetsQueryAPIRequest.go @@ -0,0 +1,52 @@ +package jstinteractive + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询可配置任务素材接口 API请求 +taobao.jst.interactive.assets.query + +查询可配置任务素材列表,用以配置任务素材 +*/ +type TaobaoJstInteractiveAssetsQueryAPIRequest struct { + model.Params + // 小程序id + _miniAppId string +} + +// 初始化TaobaoJstInteractiveAssetsQueryAPIRequest对象 +func NewTaobaoJstInteractiveAssetsQueryRequest() *TaobaoJstInteractiveAssetsQueryAPIRequest{ + return &TaobaoJstInteractiveAssetsQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstInteractiveAssetsQueryAPIRequest) GetApiMethodName() string { + return "taobao.jst.interactive.assets.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstInteractiveAssetsQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MiniAppId Setter +// 小程序id +func (r *TaobaoJstInteractiveAssetsQueryAPIRequest) SetMiniAppId(_miniAppId string) error { + r._miniAppId = _miniAppId + r.Set("mini_app_id", _miniAppId) + return nil +} + +// MiniAppId Getter +func (r TaobaoJstInteractiveAssetsQueryAPIRequest) GetMiniAppId() string { + return r._miniAppId +} diff --git a/model/jstinteractive/TaobaoJstInteractiveAssetsQueryAPIResponse.go b/model/jstinteractive/TaobaoJstInteractiveAssetsQueryAPIResponse.go new file mode 100644 index 0000000000..bedfd01742 --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractiveAssetsQueryAPIResponse.go @@ -0,0 +1,27 @@ +package jstinteractive + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询可配置任务素材接口 API返回值 +taobao.jst.interactive.assets.query + +查询可配置任务素材列表,用以配置任务素材 +*/ +type TaobaoJstInteractiveAssetsQueryAPIResponse struct { + model.CommonResponse + TaobaoJstInteractiveAssetsQueryAPIResponseModel +} + +// 查询可配置任务素材接口 成功返回结果 +type TaobaoJstInteractiveAssetsQueryAPIResponseModel struct { + XMLName xml.Name `xml:"jst_interactive_assets_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 可配置任务素材列表 + AssetsList []AssetsConfig `json:"assets_list,omitempty" xml:"assets_list>assets_config,omitempty"` +} diff --git a/model/jstinteractive/TaobaoJstInteractiveAssetsQueryResponse.go b/model/jstinteractive/TaobaoJstInteractiveAssetsQueryResponse.go deleted file mode 100644 index 8d333c95f1..0000000000 --- a/model/jstinteractive/TaobaoJstInteractiveAssetsQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jstinteractive - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询可配置任务素材接口 API返回值 -taobao.jst.interactive.assets.query - -查询可配置任务素材列表,用以配置任务素材 -*/ -type TaobaoJstInteractiveAssetsQueryAPIResponse struct { - model.CommonResponse - TaobaoJstInteractiveAssetsQueryResponse -} - -// 查询可配置任务素材接口 成功返回结果 -type TaobaoJstInteractiveAssetsQueryResponse struct { - XMLName xml.Name `xml:"jst_interactive_assets_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 可配置任务素材列表 - AssetsList []AssetsConfig `json:"assets_list,omitempty" xml:"assets_list>assets_config,omitempty"` -} diff --git a/model/jstinteractive/TaobaoJstInteractivePointDecreaseAPIRequest.go b/model/jstinteractive/TaobaoJstInteractivePointDecreaseAPIRequest.go new file mode 100644 index 0000000000..ebb2da1e41 --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractivePointDecreaseAPIRequest.go @@ -0,0 +1,66 @@ +package jstinteractive + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +互动积分扣减接口 API请求 +taobao.jst.interactive.point.decrease + +扣减用户的互动积分 +*/ +type TaobaoJstInteractivePointDecreaseAPIRequest struct { + model.Params + // 扣减的积分值 + _amount int64 + // 幂等操作码,要确保唯一性,同一个操作码只能使用一次,避免重复操作 + _operateCode string +} + +// 初始化TaobaoJstInteractivePointDecreaseAPIRequest对象 +func NewTaobaoJstInteractivePointDecreaseRequest() *TaobaoJstInteractivePointDecreaseAPIRequest{ + return &TaobaoJstInteractivePointDecreaseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstInteractivePointDecreaseAPIRequest) GetApiMethodName() string { + return "taobao.jst.interactive.point.decrease" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstInteractivePointDecreaseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Amount Setter +// 扣减的积分值 +func (r *TaobaoJstInteractivePointDecreaseAPIRequest) SetAmount(_amount int64) error { + r._amount = _amount + r.Set("amount", _amount) + return nil +} + +// Amount Getter +func (r TaobaoJstInteractivePointDecreaseAPIRequest) GetAmount() int64 { + return r._amount +} +// OperateCode Setter +// 幂等操作码,要确保唯一性,同一个操作码只能使用一次,避免重复操作 +func (r *TaobaoJstInteractivePointDecreaseAPIRequest) SetOperateCode(_operateCode string) error { + r._operateCode = _operateCode + r.Set("operate_code", _operateCode) + return nil +} + +// OperateCode Getter +func (r TaobaoJstInteractivePointDecreaseAPIRequest) GetOperateCode() string { + return r._operateCode +} diff --git a/model/jstinteractive/TaobaoJstInteractivePointDecreaseAPIResponse.go b/model/jstinteractive/TaobaoJstInteractivePointDecreaseAPIResponse.go new file mode 100644 index 0000000000..d0cead7a48 --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractivePointDecreaseAPIResponse.go @@ -0,0 +1,29 @@ +package jstinteractive + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +互动积分扣减接口 API返回值 +taobao.jst.interactive.point.decrease + +扣减用户的互动积分 +*/ +type TaobaoJstInteractivePointDecreaseAPIResponse struct { + model.CommonResponse + TaobaoJstInteractivePointDecreaseAPIResponseModel +} + +// 互动积分扣减接口 成功返回结果 +type TaobaoJstInteractivePointDecreaseAPIResponseModel struct { + XMLName xml.Name `xml:"jst_interactive_point_decrease_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 用户积分总额 + Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"` +} diff --git a/model/jstinteractive/TaobaoJstInteractivePointDecreaseResponse.go b/model/jstinteractive/TaobaoJstInteractivePointDecreaseResponse.go deleted file mode 100644 index b98292f785..0000000000 --- a/model/jstinteractive/TaobaoJstInteractivePointDecreaseResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package jstinteractive - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -互动积分扣减接口 API返回值 -taobao.jst.interactive.point.decrease - -扣减用户的互动积分 -*/ -type TaobaoJstInteractivePointDecreaseAPIResponse struct { - model.CommonResponse - TaobaoJstInteractivePointDecreaseResponse -} - -// 互动积分扣减接口 成功返回结果 -type TaobaoJstInteractivePointDecreaseResponse struct { - XMLName xml.Name `xml:"jst_interactive_point_decrease_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 用户积分总额 - Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"` -} diff --git a/model/jstinteractive/TaobaoJstInteractivePointIncreaseAPIRequest.go b/model/jstinteractive/TaobaoJstInteractivePointIncreaseAPIRequest.go new file mode 100644 index 0000000000..5ee069dc29 --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractivePointIncreaseAPIRequest.go @@ -0,0 +1,66 @@ +package jstinteractive + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +互动积分发放接口 API请求 +taobao.jst.interactive.point.increase + +向用户发放互动积分 +*/ +type TaobaoJstInteractivePointIncreaseAPIRequest struct { + model.Params + // 发放的积分值 + _amount int64 + // 幂等操作码,要确保唯一性,同一个操作码只能使用一次,避免重复操作 + _operateCode string +} + +// 初始化TaobaoJstInteractivePointIncreaseAPIRequest对象 +func NewTaobaoJstInteractivePointIncreaseRequest() *TaobaoJstInteractivePointIncreaseAPIRequest{ + return &TaobaoJstInteractivePointIncreaseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstInteractivePointIncreaseAPIRequest) GetApiMethodName() string { + return "taobao.jst.interactive.point.increase" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstInteractivePointIncreaseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Amount Setter +// 发放的积分值 +func (r *TaobaoJstInteractivePointIncreaseAPIRequest) SetAmount(_amount int64) error { + r._amount = _amount + r.Set("amount", _amount) + return nil +} + +// Amount Getter +func (r TaobaoJstInteractivePointIncreaseAPIRequest) GetAmount() int64 { + return r._amount +} +// OperateCode Setter +// 幂等操作码,要确保唯一性,同一个操作码只能使用一次,避免重复操作 +func (r *TaobaoJstInteractivePointIncreaseAPIRequest) SetOperateCode(_operateCode string) error { + r._operateCode = _operateCode + r.Set("operate_code", _operateCode) + return nil +} + +// OperateCode Getter +func (r TaobaoJstInteractivePointIncreaseAPIRequest) GetOperateCode() string { + return r._operateCode +} diff --git a/model/jstinteractive/TaobaoJstInteractivePointIncreaseAPIResponse.go b/model/jstinteractive/TaobaoJstInteractivePointIncreaseAPIResponse.go new file mode 100644 index 0000000000..9f19984000 --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractivePointIncreaseAPIResponse.go @@ -0,0 +1,29 @@ +package jstinteractive + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +互动积分发放接口 API返回值 +taobao.jst.interactive.point.increase + +向用户发放互动积分 +*/ +type TaobaoJstInteractivePointIncreaseAPIResponse struct { + model.CommonResponse + TaobaoJstInteractivePointIncreaseAPIResponseModel +} + +// 互动积分发放接口 成功返回结果 +type TaobaoJstInteractivePointIncreaseAPIResponseModel struct { + XMLName xml.Name `xml:"jst_interactive_point_increase_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 用户积分总额 + Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"` +} diff --git a/model/jstinteractive/TaobaoJstInteractivePointIncreaseResponse.go b/model/jstinteractive/TaobaoJstInteractivePointIncreaseResponse.go deleted file mode 100644 index 9e07581e51..0000000000 --- a/model/jstinteractive/TaobaoJstInteractivePointIncreaseResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package jstinteractive - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -互动积分发放接口 API返回值 -taobao.jst.interactive.point.increase - -向用户发放互动积分 -*/ -type TaobaoJstInteractivePointIncreaseAPIResponse struct { - model.CommonResponse - TaobaoJstInteractivePointIncreaseResponse -} - -// 互动积分发放接口 成功返回结果 -type TaobaoJstInteractivePointIncreaseResponse struct { - XMLName xml.Name `xml:"jst_interactive_point_increase_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 用户积分总额 - Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"` -} diff --git a/model/jstinteractive/TaobaoJstInteractivePointQueryAPIRequest.go b/model/jstinteractive/TaobaoJstInteractivePointQueryAPIRequest.go new file mode 100644 index 0000000000..a307cbcbf6 --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractivePointQueryAPIRequest.go @@ -0,0 +1,38 @@ +package jstinteractive + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +互动积分查询接口 API请求 +taobao.jst.interactive.point.query + +查询用户的互动积分 +*/ +type TaobaoJstInteractivePointQueryAPIRequest struct { + model.Params +} + +// 初始化TaobaoJstInteractivePointQueryAPIRequest对象 +func NewTaobaoJstInteractivePointQueryRequest() *TaobaoJstInteractivePointQueryAPIRequest{ + return &TaobaoJstInteractivePointQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstInteractivePointQueryAPIRequest) GetApiMethodName() string { + return "taobao.jst.interactive.point.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstInteractivePointQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/jstinteractive/TaobaoJstInteractivePointQueryAPIResponse.go b/model/jstinteractive/TaobaoJstInteractivePointQueryAPIResponse.go new file mode 100644 index 0000000000..f24f03d639 --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractivePointQueryAPIResponse.go @@ -0,0 +1,29 @@ +package jstinteractive + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +互动积分查询接口 API返回值 +taobao.jst.interactive.point.query + +查询用户的互动积分 +*/ +type TaobaoJstInteractivePointQueryAPIResponse struct { + model.CommonResponse + TaobaoJstInteractivePointQueryAPIResponseModel +} + +// 互动积分查询接口 成功返回结果 +type TaobaoJstInteractivePointQueryAPIResponseModel struct { + XMLName xml.Name `xml:"jst_interactive_point_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 查询结果 + Data *InteractivePointQueryResponse `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/jstinteractive/TaobaoJstInteractivePointQueryResponse.go b/model/jstinteractive/TaobaoJstInteractivePointQueryResponse.go deleted file mode 100644 index d2455267a0..0000000000 --- a/model/jstinteractive/TaobaoJstInteractivePointQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package jstinteractive - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -互动积分查询接口 API返回值 -taobao.jst.interactive.point.query - -查询用户的互动积分 -*/ -type TaobaoJstInteractivePointQueryAPIResponse struct { - model.CommonResponse - TaobaoJstInteractivePointQueryResponse -} - -// 互动积分查询接口 成功返回结果 -type TaobaoJstInteractivePointQueryResponse struct { - XMLName xml.Name `xml:"jst_interactive_point_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 查询结果 - Data *InteractivePointQueryResponse `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/jstinteractive/TaobaoJstInteractiveTaskQueryAPIRequest.go b/model/jstinteractive/TaobaoJstInteractiveTaskQueryAPIRequest.go new file mode 100644 index 0000000000..f33b75c8ea --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractiveTaskQueryAPIRequest.go @@ -0,0 +1,38 @@ +package jstinteractive + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +互动任务列表查询接口 API请求 +taobao.jst.interactive.task.query + +查询用户的互动任务列表 +*/ +type TaobaoJstInteractiveTaskQueryAPIRequest struct { + model.Params +} + +// 初始化TaobaoJstInteractiveTaskQueryAPIRequest对象 +func NewTaobaoJstInteractiveTaskQueryRequest() *TaobaoJstInteractiveTaskQueryAPIRequest{ + return &TaobaoJstInteractiveTaskQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstInteractiveTaskQueryAPIRequest) GetApiMethodName() string { + return "taobao.jst.interactive.task.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstInteractiveTaskQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/jstinteractive/TaobaoJstInteractiveTaskQueryAPIResponse.go b/model/jstinteractive/TaobaoJstInteractiveTaskQueryAPIResponse.go new file mode 100644 index 0000000000..748e8794dc --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractiveTaskQueryAPIResponse.go @@ -0,0 +1,29 @@ +package jstinteractive + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +互动任务列表查询接口 API返回值 +taobao.jst.interactive.task.query + +查询用户的互动任务列表 +*/ +type TaobaoJstInteractiveTaskQueryAPIResponse struct { + model.CommonResponse + TaobaoJstInteractiveTaskQueryAPIResponseModel +} + +// 互动任务列表查询接口 成功返回结果 +type TaobaoJstInteractiveTaskQueryAPIResponseModel struct { + XMLName xml.Name `xml:"jst_interactive_task_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 查询结果 + Data *InteractiveTaskQueryResponse `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/jstinteractive/TaobaoJstInteractiveTaskQueryResponse.go b/model/jstinteractive/TaobaoJstInteractiveTaskQueryResponse.go deleted file mode 100644 index d2129535c2..0000000000 --- a/model/jstinteractive/TaobaoJstInteractiveTaskQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package jstinteractive - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -互动任务列表查询接口 API返回值 -taobao.jst.interactive.task.query - -查询用户的互动任务列表 -*/ -type TaobaoJstInteractiveTaskQueryAPIResponse struct { - model.CommonResponse - TaobaoJstInteractiveTaskQueryResponse -} - -// 互动任务列表查询接口 成功返回结果 -type TaobaoJstInteractiveTaskQueryResponse struct { - XMLName xml.Name `xml:"jst_interactive_task_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 查询结果 - Data *InteractiveTaskQueryResponse `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/jstinteractive/TaobaoJstInteractiveTaskRegisterAPIRequest.go b/model/jstinteractive/TaobaoJstInteractiveTaskRegisterAPIRequest.go new file mode 100644 index 0000000000..6d842d8c63 --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractiveTaskRegisterAPIRequest.go @@ -0,0 +1,52 @@ +package jstinteractive + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +互动任务开通接口 API请求 +taobao.jst.interactive.task.register + +调用互动任务开通接口为小程序开通互动任务 +*/ +type TaobaoJstInteractiveTaskRegisterAPIRequest struct { + model.Params + // 小程序id + _miniAppId string +} + +// 初始化TaobaoJstInteractiveTaskRegisterAPIRequest对象 +func NewTaobaoJstInteractiveTaskRegisterRequest() *TaobaoJstInteractiveTaskRegisterAPIRequest{ + return &TaobaoJstInteractiveTaskRegisterAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstInteractiveTaskRegisterAPIRequest) GetApiMethodName() string { + return "taobao.jst.interactive.task.register" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstInteractiveTaskRegisterAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MiniAppId Setter +// 小程序id +func (r *TaobaoJstInteractiveTaskRegisterAPIRequest) SetMiniAppId(_miniAppId string) error { + r._miniAppId = _miniAppId + r.Set("mini_app_id", _miniAppId) + return nil +} + +// MiniAppId Getter +func (r TaobaoJstInteractiveTaskRegisterAPIRequest) GetMiniAppId() string { + return r._miniAppId +} diff --git a/model/jstinteractive/TaobaoJstInteractiveTaskRegisterAPIResponse.go b/model/jstinteractive/TaobaoJstInteractiveTaskRegisterAPIResponse.go new file mode 100644 index 0000000000..002c11fbe7 --- /dev/null +++ b/model/jstinteractive/TaobaoJstInteractiveTaskRegisterAPIResponse.go @@ -0,0 +1,27 @@ +package jstinteractive + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +互动任务开通接口 API返回值 +taobao.jst.interactive.task.register + +调用互动任务开通接口为小程序开通互动任务 +*/ +type TaobaoJstInteractiveTaskRegisterAPIResponse struct { + model.CommonResponse + TaobaoJstInteractiveTaskRegisterAPIResponseModel +} + +// 互动任务开通接口 成功返回结果 +type TaobaoJstInteractiveTaskRegisterAPIResponseModel struct { + XMLName xml.Name `xml:"jst_interactive_task_register_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/jstinteractive/TaobaoJstInteractiveTaskRegisterResponse.go b/model/jstinteractive/TaobaoJstInteractiveTaskRegisterResponse.go deleted file mode 100644 index 236077003b..0000000000 --- a/model/jstinteractive/TaobaoJstInteractiveTaskRegisterResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jstinteractive - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -互动任务开通接口 API返回值 -taobao.jst.interactive.task.register - -调用互动任务开通接口为小程序开通互动任务 -*/ -type TaobaoJstInteractiveTaskRegisterAPIResponse struct { - model.CommonResponse - TaobaoJstInteractiveTaskRegisterResponse -} - -// 互动任务开通接口 成功返回结果 -type TaobaoJstInteractiveTaskRegisterResponse struct { - XMLName xml.Name `xml:"jst_interactive_task_register_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/jstsecret/TaobaoJstSecretGetAPIRequest.go b/model/jstsecret/TaobaoJstSecretGetAPIRequest.go new file mode 100644 index 0000000000..e6e6681b70 --- /dev/null +++ b/model/jstsecret/TaobaoJstSecretGetAPIRequest.go @@ -0,0 +1,80 @@ +package jstsecret + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取订单消费者的隐私号码 API请求 +taobao.jst.secret.get + +根据订单号获取消费者的隐私号 +*/ +type TaobaoJstSecretGetAPIRequest struct { + model.Params + // 订单号 + _tid int64 + // 隐私号类型,1=手机号,2=分机号,默认为1;分机号使用时拨打手机号转分机号 + _type int64 + // 隐私号码过期天数,默认30天,取值范围[1,30] + _expireDays int64 +} + +// 初始化TaobaoJstSecretGetAPIRequest对象 +func NewTaobaoJstSecretGetRequest() *TaobaoJstSecretGetAPIRequest{ + return &TaobaoJstSecretGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstSecretGetAPIRequest) GetApiMethodName() string { + return "taobao.jst.secret.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstSecretGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 订单号 +func (r *TaobaoJstSecretGetAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoJstSecretGetAPIRequest) GetTid() int64 { + return r._tid +} +// Type Setter +// 隐私号类型,1=手机号,2=分机号,默认为1;分机号使用时拨打手机号转分机号 +func (r *TaobaoJstSecretGetAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoJstSecretGetAPIRequest) GetType() int64 { + return r._type +} +// ExpireDays Setter +// 隐私号码过期天数,默认30天,取值范围[1,30] +func (r *TaobaoJstSecretGetAPIRequest) SetExpireDays(_expireDays int64) error { + r._expireDays = _expireDays + r.Set("expire_days", _expireDays) + return nil +} + +// ExpireDays Getter +func (r TaobaoJstSecretGetAPIRequest) GetExpireDays() int64 { + return r._expireDays +} diff --git a/model/jstsecret/TaobaoJstSecretGetAPIResponse.go b/model/jstsecret/TaobaoJstSecretGetAPIResponse.go new file mode 100644 index 0000000000..32f105a7af --- /dev/null +++ b/model/jstsecret/TaobaoJstSecretGetAPIResponse.go @@ -0,0 +1,27 @@ +package jstsecret + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取订单消费者的隐私号码 API返回值 +taobao.jst.secret.get + +根据订单号获取消费者的隐私号 +*/ +type TaobaoJstSecretGetAPIResponse struct { + model.CommonResponse + TaobaoJstSecretGetAPIResponseModel +} + +// 获取订单消费者的隐私号码 成功返回结果 +type TaobaoJstSecretGetAPIResponseModel struct { + XMLName xml.Name `xml:"jst_secret_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Secret *SecretNoBindResponse `json:"secret,omitempty" xml:"secret,omitempty"` +} diff --git a/model/jstsecret/TaobaoJstSecretGetResponse.go b/model/jstsecret/TaobaoJstSecretGetResponse.go deleted file mode 100644 index b4ccabe8b1..0000000000 --- a/model/jstsecret/TaobaoJstSecretGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jstsecret - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取订单消费者的隐私号码 API返回值 -taobao.jst.secret.get - -根据订单号获取消费者的隐私号 -*/ -type TaobaoJstSecretGetAPIResponse struct { - model.CommonResponse - TaobaoJstSecretGetResponse -} - -// 获取订单消费者的隐私号码 成功返回结果 -type TaobaoJstSecretGetResponse struct { - XMLName xml.Name `xml:"jst_secret_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Secret *SecretNoBindResponse `json:"secret,omitempty" xml:"secret,omitempty"` -} diff --git a/model/ju/TaobaoJuItemsSearchAPIRequest.go b/model/ju/TaobaoJuItemsSearchAPIRequest.go new file mode 100644 index 0000000000..b5a51b2b2c --- /dev/null +++ b/model/ju/TaobaoJuItemsSearchAPIRequest.go @@ -0,0 +1,52 @@ +package ju + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚划算商品搜索接口 API请求 +taobao.ju.items.search + +搜索聚划算商品 +*/ +type TaobaoJuItemsSearchAPIRequest struct { + model.Params + // query + _paramTopItemQuery *TopItemQuery +} + +// 初始化TaobaoJuItemsSearchAPIRequest对象 +func NewTaobaoJuItemsSearchRequest() *TaobaoJuItemsSearchAPIRequest{ + return &TaobaoJuItemsSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJuItemsSearchAPIRequest) GetApiMethodName() string { + return "taobao.ju.items.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJuItemsSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamTopItemQuery Setter +// query +func (r *TaobaoJuItemsSearchAPIRequest) SetParamTopItemQuery(_paramTopItemQuery *TopItemQuery) error { + r._paramTopItemQuery = _paramTopItemQuery + r.Set("param_top_item_query", _paramTopItemQuery) + return nil +} + +// ParamTopItemQuery Getter +func (r TaobaoJuItemsSearchAPIRequest) GetParamTopItemQuery() *TopItemQuery { + return r._paramTopItemQuery +} diff --git a/model/ju/TaobaoJuItemsSearchAPIResponse.go b/model/ju/TaobaoJuItemsSearchAPIResponse.go new file mode 100644 index 0000000000..1fd6f9a85e --- /dev/null +++ b/model/ju/TaobaoJuItemsSearchAPIResponse.go @@ -0,0 +1,27 @@ +package ju + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚划算商品搜索接口 API返回值 +taobao.ju.items.search + +搜索聚划算商品 +*/ +type TaobaoJuItemsSearchAPIResponse struct { + model.CommonResponse + TaobaoJuItemsSearchAPIResponseModel +} + +// 聚划算商品搜索接口 成功返回结果 +type TaobaoJuItemsSearchAPIResponseModel struct { + XMLName xml.Name `xml:"ju_items_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *PaginationResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ju/TaobaoJuItemsSearchResponse.go b/model/ju/TaobaoJuItemsSearchResponse.go deleted file mode 100644 index a3fee35efe..0000000000 --- a/model/ju/TaobaoJuItemsSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ju - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚划算商品搜索接口 API返回值 -taobao.ju.items.search - -搜索聚划算商品 -*/ -type TaobaoJuItemsSearchAPIResponse struct { - model.CommonResponse - TaobaoJuItemsSearchResponse -} - -// 聚划算商品搜索接口 成功返回结果 -type TaobaoJuItemsSearchResponse struct { - XMLName xml.Name `xml:"ju_items_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *PaginationResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/jym/AlibabaJymRequirementOrdersOperationNotifyAPIRequest.go b/model/jym/AlibabaJymRequirementOrdersOperationNotifyAPIRequest.go new file mode 100644 index 0000000000..9efcbbe821 --- /dev/null +++ b/model/jym/AlibabaJymRequirementOrdersOperationNotifyAPIRequest.go @@ -0,0 +1,66 @@ +package jym + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +交易猫需求订单操作接口 API请求 +alibaba.jym.requirement.orders.operation.notify + +交易猫需求订单操作接口 +*/ +type AlibabaJymRequirementOrdersOperationNotifyAPIRequest struct { + model.Params + // 需求订单操作 + _operation int64 + // 需求订单id + _reqmntOrderId string +} + +// 初始化AlibabaJymRequirementOrdersOperationNotifyAPIRequest对象 +func NewAlibabaJymRequirementOrdersOperationNotifyRequest() *AlibabaJymRequirementOrdersOperationNotifyAPIRequest{ + return &AlibabaJymRequirementOrdersOperationNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaJymRequirementOrdersOperationNotifyAPIRequest) GetApiMethodName() string { + return "alibaba.jym.requirement.orders.operation.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaJymRequirementOrdersOperationNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Operation Setter +// 需求订单操作 +func (r *AlibabaJymRequirementOrdersOperationNotifyAPIRequest) SetOperation(_operation int64) error { + r._operation = _operation + r.Set("operation", _operation) + return nil +} + +// Operation Getter +func (r AlibabaJymRequirementOrdersOperationNotifyAPIRequest) GetOperation() int64 { + return r._operation +} +// ReqmntOrderId Setter +// 需求订单id +func (r *AlibabaJymRequirementOrdersOperationNotifyAPIRequest) SetReqmntOrderId(_reqmntOrderId string) error { + r._reqmntOrderId = _reqmntOrderId + r.Set("reqmnt_order_id", _reqmntOrderId) + return nil +} + +// ReqmntOrderId Getter +func (r AlibabaJymRequirementOrdersOperationNotifyAPIRequest) GetReqmntOrderId() string { + return r._reqmntOrderId +} diff --git a/model/jym/AlibabaJymRequirementOrdersOperationNotifyAPIResponse.go b/model/jym/AlibabaJymRequirementOrdersOperationNotifyAPIResponse.go new file mode 100644 index 0000000000..2df02d7a2c --- /dev/null +++ b/model/jym/AlibabaJymRequirementOrdersOperationNotifyAPIResponse.go @@ -0,0 +1,27 @@ +package jym + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +交易猫需求订单操作接口 API返回值 +alibaba.jym.requirement.orders.operation.notify + +交易猫需求订单操作接口 +*/ +type AlibabaJymRequirementOrdersOperationNotifyAPIResponse struct { + model.CommonResponse + AlibabaJymRequirementOrdersOperationNotifyAPIResponseModel +} + +// 交易猫需求订单操作接口 成功返回结果 +type AlibabaJymRequirementOrdersOperationNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_jym_requirement_orders_operation_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + ResultDto *AlibabaJymRequirementOrdersOperationNotifyResultDto `json:"result_dto,omitempty" xml:"result_dto,omitempty"` +} diff --git a/model/jym/AlibabaJymRequirementOrdersOperationNotifyResponse.go b/model/jym/AlibabaJymRequirementOrdersOperationNotifyResponse.go deleted file mode 100644 index e8d0cc163a..0000000000 --- a/model/jym/AlibabaJymRequirementOrdersOperationNotifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jym - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -交易猫需求订单操作接口 API返回值 -alibaba.jym.requirement.orders.operation.notify - -交易猫需求订单操作接口 -*/ -type AlibabaJymRequirementOrdersOperationNotifyAPIResponse struct { - model.CommonResponse - AlibabaJymRequirementOrdersOperationNotifyResponse -} - -// 交易猫需求订单操作接口 成功返回结果 -type AlibabaJymRequirementOrdersOperationNotifyResponse struct { - XMLName xml.Name `xml:"alibaba_jym_requirement_orders_operation_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - ResultDto *AlibabaJymRequirementOrdersOperationNotifyResultDto `json:"result_dto,omitempty" xml:"result_dto,omitempty"` -} diff --git a/model/jym/AlibabaJymRequirementOrdersOperationNotifyResultDto.go b/model/jym/AlibabaJymRequirementOrdersOperationNotifyResultDto.go new file mode 100644 index 0000000000..fe95c380c8 --- /dev/null +++ b/model/jym/AlibabaJymRequirementOrdersOperationNotifyResultDto.go @@ -0,0 +1,13 @@ +package jym + +// AlibabaJymRequirementOrdersOperationNotifyResultDto +type AlibabaJymRequirementOrdersOperationNotifyResultDto struct { + // 业务数据 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 状态码 + StateCode string `json:"state_code,omitempty" xml:"state_code,omitempty"` + // 错误信息 + ExtraErrMsg string `json:"extra_err_msg,omitempty" xml:"extra_err_msg,omitempty"` +} diff --git a/model/jym/AlibabaJymRequirementsReceiveAPIRequest.go b/model/jym/AlibabaJymRequirementsReceiveAPIRequest.go new file mode 100644 index 0000000000..c2e5180b98 --- /dev/null +++ b/model/jym/AlibabaJymRequirementsReceiveAPIRequest.go @@ -0,0 +1,80 @@ +package jym + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +交易猫需求接单接口 API请求 +alibaba.jym.requirements.receive + +交易猫需求接单接口 +*/ +type AlibabaJymRequirementsReceiveAPIRequest struct { + model.Params + // 需求id + _requirementId string + // 接单者手机号 + _receiverMobile string + // 需求订单id + _requirementOrderId string +} + +// 初始化AlibabaJymRequirementsReceiveAPIRequest对象 +func NewAlibabaJymRequirementsReceiveRequest() *AlibabaJymRequirementsReceiveAPIRequest{ + return &AlibabaJymRequirementsReceiveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaJymRequirementsReceiveAPIRequest) GetApiMethodName() string { + return "alibaba.jym.requirements.receive" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaJymRequirementsReceiveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequirementId Setter +// 需求id +func (r *AlibabaJymRequirementsReceiveAPIRequest) SetRequirementId(_requirementId string) error { + r._requirementId = _requirementId + r.Set("requirement_id", _requirementId) + return nil +} + +// RequirementId Getter +func (r AlibabaJymRequirementsReceiveAPIRequest) GetRequirementId() string { + return r._requirementId +} +// ReceiverMobile Setter +// 接单者手机号 +func (r *AlibabaJymRequirementsReceiveAPIRequest) SetReceiverMobile(_receiverMobile string) error { + r._receiverMobile = _receiverMobile + r.Set("receiver_mobile", _receiverMobile) + return nil +} + +// ReceiverMobile Getter +func (r AlibabaJymRequirementsReceiveAPIRequest) GetReceiverMobile() string { + return r._receiverMobile +} +// RequirementOrderId Setter +// 需求订单id +func (r *AlibabaJymRequirementsReceiveAPIRequest) SetRequirementOrderId(_requirementOrderId string) error { + r._requirementOrderId = _requirementOrderId + r.Set("requirement_order_id", _requirementOrderId) + return nil +} + +// RequirementOrderId Getter +func (r AlibabaJymRequirementsReceiveAPIRequest) GetRequirementOrderId() string { + return r._requirementOrderId +} diff --git a/model/jym/AlibabaJymRequirementsReceiveAPIResponse.go b/model/jym/AlibabaJymRequirementsReceiveAPIResponse.go new file mode 100644 index 0000000000..dafd0dd002 --- /dev/null +++ b/model/jym/AlibabaJymRequirementsReceiveAPIResponse.go @@ -0,0 +1,27 @@ +package jym + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +交易猫需求接单接口 API返回值 +alibaba.jym.requirements.receive + +交易猫需求接单接口 +*/ +type AlibabaJymRequirementsReceiveAPIResponse struct { + model.CommonResponse + AlibabaJymRequirementsReceiveAPIResponseModel +} + +// 交易猫需求接单接口 成功返回结果 +type AlibabaJymRequirementsReceiveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_jym_requirements_receive_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + ResultDto *AlibabaJymRequirementsReceiveResultDto `json:"result_dto,omitempty" xml:"result_dto,omitempty"` +} diff --git a/model/jym/AlibabaJymRequirementsReceiveResponse.go b/model/jym/AlibabaJymRequirementsReceiveResponse.go deleted file mode 100644 index 6dee1f07d8..0000000000 --- a/model/jym/AlibabaJymRequirementsReceiveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jym - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -交易猫需求接单接口 API返回值 -alibaba.jym.requirements.receive - -交易猫需求接单接口 -*/ -type AlibabaJymRequirementsReceiveAPIResponse struct { - model.CommonResponse - AlibabaJymRequirementsReceiveResponse -} - -// 交易猫需求接单接口 成功返回结果 -type AlibabaJymRequirementsReceiveResponse struct { - XMLName xml.Name `xml:"alibaba_jym_requirements_receive_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - ResultDto *AlibabaJymRequirementsReceiveResultDto `json:"result_dto,omitempty" xml:"result_dto,omitempty"` -} diff --git a/model/jym/AlibabaJymRequirementsReceiveResultDto.go b/model/jym/AlibabaJymRequirementsReceiveResultDto.go new file mode 100644 index 0000000000..f280dcc15c --- /dev/null +++ b/model/jym/AlibabaJymRequirementsReceiveResultDto.go @@ -0,0 +1,13 @@ +package jym + +// AlibabaJymRequirementsReceiveResultDto +type AlibabaJymRequirementsReceiveResultDto struct { + // 错误信息 + ExtraErrMsg string `json:"extra_err_msg,omitempty" xml:"extra_err_msg,omitempty"` + // 状态码 + StateCode string `json:"state_code,omitempty" xml:"state_code,omitempty"` + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 业务数据 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/jym/TaobaoJymMemberRealnameVerifyWithoutuidAPIRequest.go b/model/jym/TaobaoJymMemberRealnameVerifyWithoutuidAPIRequest.go new file mode 100644 index 0000000000..f0ae63f251 --- /dev/null +++ b/model/jym/TaobaoJymMemberRealnameVerifyWithoutuidAPIRequest.go @@ -0,0 +1,66 @@ +package jym + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户实名认证 API请求 +taobao.jym.member.realname.verify.withoutuid + +开放用户实名认证接口使用 +*/ +type TaobaoJymMemberRealnameVerifyWithoutuidAPIRequest struct { + model.Params + // 加密名字串 + _encryptName string + // 加密身份证串 + _encryptIdNo string +} + +// 初始化TaobaoJymMemberRealnameVerifyWithoutuidAPIRequest对象 +func NewTaobaoJymMemberRealnameVerifyWithoutuidRequest() *TaobaoJymMemberRealnameVerifyWithoutuidAPIRequest{ + return &TaobaoJymMemberRealnameVerifyWithoutuidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJymMemberRealnameVerifyWithoutuidAPIRequest) GetApiMethodName() string { + return "taobao.jym.member.realname.verify.withoutuid" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJymMemberRealnameVerifyWithoutuidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EncryptName Setter +// 加密名字串 +func (r *TaobaoJymMemberRealnameVerifyWithoutuidAPIRequest) SetEncryptName(_encryptName string) error { + r._encryptName = _encryptName + r.Set("encrypt_name", _encryptName) + return nil +} + +// EncryptName Getter +func (r TaobaoJymMemberRealnameVerifyWithoutuidAPIRequest) GetEncryptName() string { + return r._encryptName +} +// EncryptIdNo Setter +// 加密身份证串 +func (r *TaobaoJymMemberRealnameVerifyWithoutuidAPIRequest) SetEncryptIdNo(_encryptIdNo string) error { + r._encryptIdNo = _encryptIdNo + r.Set("encrypt_id_no", _encryptIdNo) + return nil +} + +// EncryptIdNo Getter +func (r TaobaoJymMemberRealnameVerifyWithoutuidAPIRequest) GetEncryptIdNo() string { + return r._encryptIdNo +} diff --git a/model/jym/TaobaoJymMemberRealnameVerifyWithoutuidAPIResponse.go b/model/jym/TaobaoJymMemberRealnameVerifyWithoutuidAPIResponse.go new file mode 100644 index 0000000000..a59209c05b --- /dev/null +++ b/model/jym/TaobaoJymMemberRealnameVerifyWithoutuidAPIResponse.go @@ -0,0 +1,27 @@ +package jym + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户实名认证 API返回值 +taobao.jym.member.realname.verify.withoutuid + +开放用户实名认证接口使用 +*/ +type TaobaoJymMemberRealnameVerifyWithoutuidAPIResponse struct { + model.CommonResponse + TaobaoJymMemberRealnameVerifyWithoutuidAPIResponseModel +} + +// 用户实名认证 成功返回结果 +type TaobaoJymMemberRealnameVerifyWithoutuidAPIResponseModel struct { + XMLName xml.Name `xml:"jym_member_realname_verify_withoutuid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 实名认证结果 + Result *TaobaoJymMemberRealnameVerifyWithoutuidResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/jym/TaobaoJymMemberRealnameVerifyWithoutuidResponse.go b/model/jym/TaobaoJymMemberRealnameVerifyWithoutuidResponse.go deleted file mode 100644 index d2f9dc8ce6..0000000000 --- a/model/jym/TaobaoJymMemberRealnameVerifyWithoutuidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package jym - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户实名认证 API返回值 -taobao.jym.member.realname.verify.withoutuid - -开放用户实名认证接口使用 -*/ -type TaobaoJymMemberRealnameVerifyWithoutuidAPIResponse struct { - model.CommonResponse - TaobaoJymMemberRealnameVerifyWithoutuidResponse -} - -// 用户实名认证 成功返回结果 -type TaobaoJymMemberRealnameVerifyWithoutuidResponse struct { - XMLName xml.Name `xml:"jym_member_realname_verify_withoutuid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 实名认证结果 - Result *TaobaoJymMemberRealnameVerifyWithoutuidResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/jym/TaobaoJymMemberRealnameVerifyWithoutuidResultDto.go b/model/jym/TaobaoJymMemberRealnameVerifyWithoutuidResultDto.go new file mode 100644 index 0000000000..0d78d96dc4 --- /dev/null +++ b/model/jym/TaobaoJymMemberRealnameVerifyWithoutuidResultDto.go @@ -0,0 +1,13 @@ +package jym + +// TaobaoJymMemberRealnameVerifyWithoutuidResultDto +type TaobaoJymMemberRealnameVerifyWithoutuidResultDto struct { + // 1 + Result *RealNameVerifyTopDto `json:"result,omitempty" xml:"result,omitempty"` + // 调用是否成功 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 调用接口结果编码 + StateCode string `json:"state_code,omitempty" xml:"state_code,omitempty"` + // 调用接口异常信息明细 + ExtraErrMsg string `json:"extra_err_msg,omitempty" xml:"extra_err_msg,omitempty"` +} diff --git a/model/kbalgo/AlibabaKbalgoAlscpoisGetAPIRequest.go b/model/kbalgo/AlibabaKbalgoAlscpoisGetAPIRequest.go new file mode 100644 index 0000000000..ab0cbfaacb --- /dev/null +++ b/model/kbalgo/AlibabaKbalgoAlscpoisGetAPIRequest.go @@ -0,0 +1,66 @@ +package kbalgo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百度批量获取本地poi接口 API请求 +alibaba.kbalgo.alscpois.get + +接口用于百度方获取本地生活poi数据,分页获取。 +*/ +type AlibabaKbalgoAlscpoisGetAPIRequest struct { + model.Params + // 第几页 + _pageNum int64 + // 每页的数量。 + _pageSize int64 +} + +// 初始化AlibabaKbalgoAlscpoisGetAPIRequest对象 +func NewAlibabaKbalgoAlscpoisGetRequest() *AlibabaKbalgoAlscpoisGetAPIRequest{ + return &AlibabaKbalgoAlscpoisGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaKbalgoAlscpoisGetAPIRequest) GetApiMethodName() string { + return "alibaba.kbalgo.alscpois.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaKbalgoAlscpoisGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageNum Setter +// 第几页 +func (r *AlibabaKbalgoAlscpoisGetAPIRequest) SetPageNum(_pageNum int64) error { + r._pageNum = _pageNum + r.Set("page_num", _pageNum) + return nil +} + +// PageNum Getter +func (r AlibabaKbalgoAlscpoisGetAPIRequest) GetPageNum() int64 { + return r._pageNum +} +// PageSize Setter +// 每页的数量。 +func (r *AlibabaKbalgoAlscpoisGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaKbalgoAlscpoisGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/kbalgo/AlibabaKbalgoAlscpoisGetAPIResponse.go b/model/kbalgo/AlibabaKbalgoAlscpoisGetAPIResponse.go new file mode 100644 index 0000000000..015f25d028 --- /dev/null +++ b/model/kbalgo/AlibabaKbalgoAlscpoisGetAPIResponse.go @@ -0,0 +1,27 @@ +package kbalgo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百度批量获取本地poi接口 API返回值 +alibaba.kbalgo.alscpois.get + +接口用于百度方获取本地生活poi数据,分页获取。 +*/ +type AlibabaKbalgoAlscpoisGetAPIResponse struct { + model.CommonResponse + AlibabaKbalgoAlscpoisGetAPIResponseModel +} + +// 百度批量获取本地poi接口 成功返回结果 +type AlibabaKbalgoAlscpoisGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_kbalgo_alscpois_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果根节点。 + Result *AlscPoiToBaiduResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/kbalgo/AlibabaKbalgoAlscpoisGetResponse.go b/model/kbalgo/AlibabaKbalgoAlscpoisGetResponse.go deleted file mode 100644 index 8c7f66c7fc..0000000000 --- a/model/kbalgo/AlibabaKbalgoAlscpoisGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package kbalgo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百度批量获取本地poi接口 API返回值 -alibaba.kbalgo.alscpois.get - -接口用于百度方获取本地生活poi数据,分页获取。 -*/ -type AlibabaKbalgoAlscpoisGetAPIResponse struct { - model.CommonResponse - AlibabaKbalgoAlscpoisGetResponse -} - -// 百度批量获取本地poi接口 成功返回结果 -type AlibabaKbalgoAlscpoisGetResponse struct { - XMLName xml.Name `xml:"alibaba_kbalgo_alscpois_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果根节点。 - Result *AlscPoiToBaiduResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/kclub/AlibabaKclubKcGetcategorytreeAPIRequest.go b/model/kclub/AlibabaKclubKcGetcategorytreeAPIRequest.go new file mode 100644 index 0000000000..20db0dd6eb --- /dev/null +++ b/model/kclub/AlibabaKclubKcGetcategorytreeAPIRequest.go @@ -0,0 +1,66 @@ +package kclub + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +知识云-查询租户下类目树 API请求 +alibaba.kclub.kc.getcategorytree + +知识云-查询租户下类目树。通过租户id、类型(外部类目、帮助中心类目、内部类目)。 +*/ +type AlibabaKclubKcGetcategorytreeAPIRequest struct { + model.Params + // 租户id + _tenantId int64 + // 鉴权参数 + _auth *TenancyAuth +} + +// 初始化AlibabaKclubKcGetcategorytreeAPIRequest对象 +func NewAlibabaKclubKcGetcategorytreeRequest() *AlibabaKclubKcGetcategorytreeAPIRequest{ + return &AlibabaKclubKcGetcategorytreeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaKclubKcGetcategorytreeAPIRequest) GetApiMethodName() string { + return "alibaba.kclub.kc.getcategorytree" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaKclubKcGetcategorytreeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TenantId Setter +// 租户id +func (r *AlibabaKclubKcGetcategorytreeAPIRequest) SetTenantId(_tenantId int64) error { + r._tenantId = _tenantId + r.Set("tenant_id", _tenantId) + return nil +} + +// TenantId Getter +func (r AlibabaKclubKcGetcategorytreeAPIRequest) GetTenantId() int64 { + return r._tenantId +} +// Auth Setter +// 鉴权参数 +func (r *AlibabaKclubKcGetcategorytreeAPIRequest) SetAuth(_auth *TenancyAuth) error { + r._auth = _auth + r.Set("auth", _auth) + return nil +} + +// Auth Getter +func (r AlibabaKclubKcGetcategorytreeAPIRequest) GetAuth() *TenancyAuth { + return r._auth +} diff --git a/model/kclub/AlibabaKclubKcGetcategorytreeAPIResponse.go b/model/kclub/AlibabaKclubKcGetcategorytreeAPIResponse.go new file mode 100644 index 0000000000..b7fe71dad9 --- /dev/null +++ b/model/kclub/AlibabaKclubKcGetcategorytreeAPIResponse.go @@ -0,0 +1,27 @@ +package kclub + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +知识云-查询租户下类目树 API返回值 +alibaba.kclub.kc.getcategorytree + +知识云-查询租户下类目树。通过租户id、类型(外部类目、帮助中心类目、内部类目)。 +*/ +type AlibabaKclubKcGetcategorytreeAPIResponse struct { + model.CommonResponse + AlibabaKclubKcGetcategorytreeAPIResponseModel +} + +// 知识云-查询租户下类目树 成功返回结果 +type AlibabaKclubKcGetcategorytreeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_kclub_kc_getcategorytree_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaKclubKcGetcategorytreeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/kclub/AlibabaKclubKcGetcategorytreeResponse.go b/model/kclub/AlibabaKclubKcGetcategorytreeResponse.go deleted file mode 100644 index 719649fe67..0000000000 --- a/model/kclub/AlibabaKclubKcGetcategorytreeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package kclub - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -知识云-查询租户下类目树 API返回值 -alibaba.kclub.kc.getcategorytree - -知识云-查询租户下类目树。通过租户id、类型(外部类目、帮助中心类目、内部类目)。 -*/ -type AlibabaKclubKcGetcategorytreeAPIResponse struct { - model.CommonResponse - AlibabaKclubKcGetcategorytreeResponse -} - -// 知识云-查询租户下类目树 成功返回结果 -type AlibabaKclubKcGetcategorytreeResponse struct { - XMLName xml.Name `xml:"alibaba_kclub_kc_getcategorytree_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaKclubKcGetcategorytreeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/kclub/AlibabaKclubKcQaGetAPIRequest.go b/model/kclub/AlibabaKclubKcQaGetAPIRequest.go new file mode 100644 index 0000000000..f08f094d2a --- /dev/null +++ b/model/kclub/AlibabaKclubKcQaGetAPIRequest.go @@ -0,0 +1,80 @@ +package kclub + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +知识云-查询单个知识详情 API请求 +alibaba.kclub.kc.qa.get + +知识云-查询单个知识详情。通过租户id、问题id查询问题详情 +*/ +type AlibabaKclubKcQaGetAPIRequest struct { + model.Params + // 问题id + _questionId int64 + // 过滤条件 + _filter *KcQaFilter + // 鉴权 + _auth *TenancyAuth +} + +// 初始化AlibabaKclubKcQaGetAPIRequest对象 +func NewAlibabaKclubKcQaGetRequest() *AlibabaKclubKcQaGetAPIRequest{ + return &AlibabaKclubKcQaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaKclubKcQaGetAPIRequest) GetApiMethodName() string { + return "alibaba.kclub.kc.qa.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaKclubKcQaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QuestionId Setter +// 问题id +func (r *AlibabaKclubKcQaGetAPIRequest) SetQuestionId(_questionId int64) error { + r._questionId = _questionId + r.Set("question_id", _questionId) + return nil +} + +// QuestionId Getter +func (r AlibabaKclubKcQaGetAPIRequest) GetQuestionId() int64 { + return r._questionId +} +// Filter Setter +// 过滤条件 +func (r *AlibabaKclubKcQaGetAPIRequest) SetFilter(_filter *KcQaFilter) error { + r._filter = _filter + r.Set("filter", _filter) + return nil +} + +// Filter Getter +func (r AlibabaKclubKcQaGetAPIRequest) GetFilter() *KcQaFilter { + return r._filter +} +// Auth Setter +// 鉴权 +func (r *AlibabaKclubKcQaGetAPIRequest) SetAuth(_auth *TenancyAuth) error { + r._auth = _auth + r.Set("auth", _auth) + return nil +} + +// Auth Getter +func (r AlibabaKclubKcQaGetAPIRequest) GetAuth() *TenancyAuth { + return r._auth +} diff --git a/model/kclub/AlibabaKclubKcQaGetAPIResponse.go b/model/kclub/AlibabaKclubKcQaGetAPIResponse.go new file mode 100644 index 0000000000..1cde570860 --- /dev/null +++ b/model/kclub/AlibabaKclubKcQaGetAPIResponse.go @@ -0,0 +1,27 @@ +package kclub + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +知识云-查询单个知识详情 API返回值 +alibaba.kclub.kc.qa.get + +知识云-查询单个知识详情。通过租户id、问题id查询问题详情 +*/ +type AlibabaKclubKcQaGetAPIResponse struct { + model.CommonResponse + AlibabaKclubKcQaGetAPIResponseModel +} + +// 知识云-查询单个知识详情 成功返回结果 +type AlibabaKclubKcQaGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_kclub_kc_qa_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaKclubKcQaGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/kclub/AlibabaKclubKcQaGetResponse.go b/model/kclub/AlibabaKclubKcQaGetResponse.go deleted file mode 100644 index 7149034456..0000000000 --- a/model/kclub/AlibabaKclubKcQaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package kclub - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -知识云-查询单个知识详情 API返回值 -alibaba.kclub.kc.qa.get - -知识云-查询单个知识详情。通过租户id、问题id查询问题详情 -*/ -type AlibabaKclubKcQaGetAPIResponse struct { - model.CommonResponse - AlibabaKclubKcQaGetResponse -} - -// 知识云-查询单个知识详情 成功返回结果 -type AlibabaKclubKcQaGetResponse struct { - XMLName xml.Name `xml:"alibaba_kclub_kc_qa_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaKclubKcQaGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/kclub/AlibabaKclubKcQaSearchAPIRequest.go b/model/kclub/AlibabaKclubKcQaSearchAPIRequest.go new file mode 100644 index 0000000000..88aa0b0030 --- /dev/null +++ b/model/kclub/AlibabaKclubKcQaSearchAPIRequest.go @@ -0,0 +1,66 @@ +package kclub + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +知识云-知识检索 API请求 +alibaba.kclub.kc.qa.search + +知识云-知识搜索服务 +*/ +type AlibabaKclubKcQaSearchAPIRequest struct { + model.Params + // 查询参数 + _query *KcSearchQuestionQuery + // 鉴权 + _auth *TenancyAuth +} + +// 初始化AlibabaKclubKcQaSearchAPIRequest对象 +func NewAlibabaKclubKcQaSearchRequest() *AlibabaKclubKcQaSearchAPIRequest{ + return &AlibabaKclubKcQaSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaKclubKcQaSearchAPIRequest) GetApiMethodName() string { + return "alibaba.kclub.kc.qa.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaKclubKcQaSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 查询参数 +func (r *AlibabaKclubKcQaSearchAPIRequest) SetQuery(_query *KcSearchQuestionQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaKclubKcQaSearchAPIRequest) GetQuery() *KcSearchQuestionQuery { + return r._query +} +// Auth Setter +// 鉴权 +func (r *AlibabaKclubKcQaSearchAPIRequest) SetAuth(_auth *TenancyAuth) error { + r._auth = _auth + r.Set("auth", _auth) + return nil +} + +// Auth Getter +func (r AlibabaKclubKcQaSearchAPIRequest) GetAuth() *TenancyAuth { + return r._auth +} diff --git a/model/kclub/AlibabaKclubKcQaSearchAPIResponse.go b/model/kclub/AlibabaKclubKcQaSearchAPIResponse.go new file mode 100644 index 0000000000..bf279ab311 --- /dev/null +++ b/model/kclub/AlibabaKclubKcQaSearchAPIResponse.go @@ -0,0 +1,27 @@ +package kclub + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +知识云-知识检索 API返回值 +alibaba.kclub.kc.qa.search + +知识云-知识搜索服务 +*/ +type AlibabaKclubKcQaSearchAPIResponse struct { + model.CommonResponse + AlibabaKclubKcQaSearchAPIResponseModel +} + +// 知识云-知识检索 成功返回结果 +type AlibabaKclubKcQaSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_kclub_kc_qa_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 搜索结果 + Result *AlibabaKclubKcQaSearchResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/kclub/AlibabaKclubKcQaSearchPageAPIRequest.go b/model/kclub/AlibabaKclubKcQaSearchPageAPIRequest.go new file mode 100644 index 0000000000..d02e1d1bb6 --- /dev/null +++ b/model/kclub/AlibabaKclubKcQaSearchPageAPIRequest.go @@ -0,0 +1,66 @@ +package kclub + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +知识云-知识检索(分页) API请求 +alibaba.kclub.kc.qa.search.page + +知识云-知识搜索服务 +*/ +type AlibabaKclubKcQaSearchPageAPIRequest struct { + model.Params + // 查询参数 + _query *KcSearchQuestionQuery + // 鉴权 + _auth *TenancyAuth +} + +// 初始化AlibabaKclubKcQaSearchPageAPIRequest对象 +func NewAlibabaKclubKcQaSearchPageRequest() *AlibabaKclubKcQaSearchPageAPIRequest{ + return &AlibabaKclubKcQaSearchPageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaKclubKcQaSearchPageAPIRequest) GetApiMethodName() string { + return "alibaba.kclub.kc.qa.search.page" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaKclubKcQaSearchPageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 查询参数 +func (r *AlibabaKclubKcQaSearchPageAPIRequest) SetQuery(_query *KcSearchQuestionQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaKclubKcQaSearchPageAPIRequest) GetQuery() *KcSearchQuestionQuery { + return r._query +} +// Auth Setter +// 鉴权 +func (r *AlibabaKclubKcQaSearchPageAPIRequest) SetAuth(_auth *TenancyAuth) error { + r._auth = _auth + r.Set("auth", _auth) + return nil +} + +// Auth Getter +func (r AlibabaKclubKcQaSearchPageAPIRequest) GetAuth() *TenancyAuth { + return r._auth +} diff --git a/model/kclub/AlibabaKclubKcQaSearchPageAPIResponse.go b/model/kclub/AlibabaKclubKcQaSearchPageAPIResponse.go new file mode 100644 index 0000000000..0e05c2b30e --- /dev/null +++ b/model/kclub/AlibabaKclubKcQaSearchPageAPIResponse.go @@ -0,0 +1,27 @@ +package kclub + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +知识云-知识检索(分页) API返回值 +alibaba.kclub.kc.qa.search.page + +知识云-知识搜索服务 +*/ +type AlibabaKclubKcQaSearchPageAPIResponse struct { + model.CommonResponse + AlibabaKclubKcQaSearchPageAPIResponseModel +} + +// 知识云-知识检索(分页) 成功返回结果 +type AlibabaKclubKcQaSearchPageAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_kclub_kc_qa_search_page_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaKclubKcQaSearchPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/kclub/AlibabaKclubKcQaSearchPageResponse.go b/model/kclub/AlibabaKclubKcQaSearchPageResponse.go deleted file mode 100644 index 4204319077..0000000000 --- a/model/kclub/AlibabaKclubKcQaSearchPageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package kclub - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -知识云-知识检索(分页) API返回值 -alibaba.kclub.kc.qa.search.page - -知识云-知识搜索服务 -*/ -type AlibabaKclubKcQaSearchPageAPIResponse struct { - model.CommonResponse - AlibabaKclubKcQaSearchPageResponse -} - -// 知识云-知识检索(分页) 成功返回结果 -type AlibabaKclubKcQaSearchPageResponse struct { - XMLName xml.Name `xml:"alibaba_kclub_kc_qa_search_page_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaKclubKcQaSearchPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/kclub/AlibabaKclubKcQaSearchResponse.go b/model/kclub/AlibabaKclubKcQaSearchResponse.go deleted file mode 100644 index 9534428832..0000000000 --- a/model/kclub/AlibabaKclubKcQaSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package kclub - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -知识云-知识检索 API返回值 -alibaba.kclub.kc.qa.search - -知识云-知识搜索服务 -*/ -type AlibabaKclubKcQaSearchAPIResponse struct { - model.CommonResponse - AlibabaKclubKcQaSearchResponse -} - -// 知识云-知识检索 成功返回结果 -type AlibabaKclubKcQaSearchResponse struct { - XMLName xml.Name `xml:"alibaba_kclub_kc_qa_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 搜索结果 - Result *AlibabaKclubKcQaSearchResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/kclub/AlibabaKclubKcQueryknowledgeAPIRequest.go b/model/kclub/AlibabaKclubKcQueryknowledgeAPIRequest.go new file mode 100644 index 0000000000..83456efbcd --- /dev/null +++ b/model/kclub/AlibabaKclubKcQueryknowledgeAPIRequest.go @@ -0,0 +1,66 @@ +package kclub + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +知识云-通用知识查询服务 API请求 +alibaba.kclub.kc.queryknowledge + +知识云-通用知识查询服务。通过租户id、类目id、知识类型、知识状态等条件查询类目。 +*/ +type AlibabaKclubKcQueryknowledgeAPIRequest struct { + model.Params + // 查询条件 + _kcQaQuery *KcQaQuery + // 鉴权 + _auth *TenancyAuth +} + +// 初始化AlibabaKclubKcQueryknowledgeAPIRequest对象 +func NewAlibabaKclubKcQueryknowledgeRequest() *AlibabaKclubKcQueryknowledgeAPIRequest{ + return &AlibabaKclubKcQueryknowledgeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaKclubKcQueryknowledgeAPIRequest) GetApiMethodName() string { + return "alibaba.kclub.kc.queryknowledge" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaKclubKcQueryknowledgeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// KcQaQuery Setter +// 查询条件 +func (r *AlibabaKclubKcQueryknowledgeAPIRequest) SetKcQaQuery(_kcQaQuery *KcQaQuery) error { + r._kcQaQuery = _kcQaQuery + r.Set("kc_qa_query", _kcQaQuery) + return nil +} + +// KcQaQuery Getter +func (r AlibabaKclubKcQueryknowledgeAPIRequest) GetKcQaQuery() *KcQaQuery { + return r._kcQaQuery +} +// Auth Setter +// 鉴权 +func (r *AlibabaKclubKcQueryknowledgeAPIRequest) SetAuth(_auth *TenancyAuth) error { + r._auth = _auth + r.Set("auth", _auth) + return nil +} + +// Auth Getter +func (r AlibabaKclubKcQueryknowledgeAPIRequest) GetAuth() *TenancyAuth { + return r._auth +} diff --git a/model/kclub/AlibabaKclubKcQueryknowledgeAPIResponse.go b/model/kclub/AlibabaKclubKcQueryknowledgeAPIResponse.go new file mode 100644 index 0000000000..f4f1727f77 --- /dev/null +++ b/model/kclub/AlibabaKclubKcQueryknowledgeAPIResponse.go @@ -0,0 +1,27 @@ +package kclub + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +知识云-通用知识查询服务 API返回值 +alibaba.kclub.kc.queryknowledge + +知识云-通用知识查询服务。通过租户id、类目id、知识类型、知识状态等条件查询类目。 +*/ +type AlibabaKclubKcQueryknowledgeAPIResponse struct { + model.CommonResponse + AlibabaKclubKcQueryknowledgeAPIResponseModel +} + +// 知识云-通用知识查询服务 成功返回结果 +type AlibabaKclubKcQueryknowledgeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_kclub_kc_queryknowledge_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *AlibabaKclubKcQueryknowledgeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/kclub/AlibabaKclubKcQueryknowledgeResponse.go b/model/kclub/AlibabaKclubKcQueryknowledgeResponse.go deleted file mode 100644 index 8128a7c0d1..0000000000 --- a/model/kclub/AlibabaKclubKcQueryknowledgeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package kclub - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -知识云-通用知识查询服务 API返回值 -alibaba.kclub.kc.queryknowledge - -知识云-通用知识查询服务。通过租户id、类目id、知识类型、知识状态等条件查询类目。 -*/ -type AlibabaKclubKcQueryknowledgeAPIResponse struct { - model.CommonResponse - AlibabaKclubKcQueryknowledgeResponse -} - -// 知识云-通用知识查询服务 成功返回结果 -type AlibabaKclubKcQueryknowledgeResponse struct { - XMLName xml.Name `xml:"alibaba_kclub_kc_queryknowledge_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *AlibabaKclubKcQueryknowledgeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonItemDetailQueryAPIRequest.go b/model/koubeimall/TaobaoKoubeiMallCommonItemDetailQueryAPIRequest.go new file mode 100644 index 0000000000..9764bb5460 --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonItemDetailQueryAPIRequest.go @@ -0,0 +1,178 @@ +package koubeimall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品详情信息 API请求 +taobao.koubei.mall.common.item.detail.query + +查询口碑综合体内商品详情信息 +*/ +type TaobaoKoubeiMallCommonItemDetailQueryAPIRequest struct { + model.Params + // 身份ID,识别合作方身份(可联系口碑综合体业务获取) + _dataSetId string + // 商圈ID + _mallId string + // 门店ID + _storeId string + // 商品ID + _itemId string + // 口碑城市编码(示例:杭州市330100) + _cityCode string + // 经度(终端设备地理位置) + _longitude string + // 纬度(终端设备地理位置) + _latitude string + // 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) + _displayChannel string + // 支付宝/口碑/淘宝app版本号 + _appVersion string + // 终端设备描述(中、英文均可) + _terminalType string +} + +// 初始化TaobaoKoubeiMallCommonItemDetailQueryAPIRequest对象 +func NewTaobaoKoubeiMallCommonItemDetailQueryRequest() *TaobaoKoubeiMallCommonItemDetailQueryAPIRequest{ + return &TaobaoKoubeiMallCommonItemDetailQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) GetApiMethodName() string { + return "taobao.koubei.mall.common.item.detail.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DataSetId Setter +// 身份ID,识别合作方身份(可联系口碑综合体业务获取) +func (r *TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) SetDataSetId(_dataSetId string) error { + r._dataSetId = _dataSetId + r.Set("data_set_id", _dataSetId) + return nil +} + +// DataSetId Getter +func (r TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) GetDataSetId() string { + return r._dataSetId +} +// MallId Setter +// 商圈ID +func (r *TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) SetMallId(_mallId string) error { + r._mallId = _mallId + r.Set("mall_id", _mallId) + return nil +} + +// MallId Getter +func (r TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) GetMallId() string { + return r._mallId +} +// StoreId Setter +// 门店ID +func (r *TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) GetStoreId() string { + return r._storeId +} +// ItemId Setter +// 商品ID +func (r *TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) SetItemId(_itemId string) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) GetItemId() string { + return r._itemId +} +// CityCode Setter +// 口碑城市编码(示例:杭州市330100) +func (r *TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) SetCityCode(_cityCode string) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) GetCityCode() string { + return r._cityCode +} +// Longitude Setter +// 经度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) GetLongitude() string { + return r._longitude +} +// Latitude Setter +// 纬度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) GetLatitude() string { + return r._latitude +} +// DisplayChannel Setter +// 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) +func (r *TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) SetDisplayChannel(_displayChannel string) error { + r._displayChannel = _displayChannel + r.Set("display_channel", _displayChannel) + return nil +} + +// DisplayChannel Getter +func (r TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) GetDisplayChannel() string { + return r._displayChannel +} +// AppVersion Setter +// 支付宝/口碑/淘宝app版本号 +func (r *TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) SetAppVersion(_appVersion string) error { + r._appVersion = _appVersion + r.Set("app_version", _appVersion) + return nil +} + +// AppVersion Getter +func (r TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) GetAppVersion() string { + return r._appVersion +} +// TerminalType Setter +// 终端设备描述(中、英文均可) +func (r *TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r TaobaoKoubeiMallCommonItemDetailQueryAPIRequest) GetTerminalType() string { + return r._terminalType +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonItemDetailQueryAPIResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonItemDetailQueryAPIResponse.go new file mode 100644 index 0000000000..ac29689abe --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonItemDetailQueryAPIResponse.go @@ -0,0 +1,27 @@ +package koubeimall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品详情信息 API返回值 +taobao.koubei.mall.common.item.detail.query + +查询口碑综合体内商品详情信息 +*/ +type TaobaoKoubeiMallCommonItemDetailQueryAPIResponse struct { + model.CommonResponse + TaobaoKoubeiMallCommonItemDetailQueryAPIResponseModel +} + +// 查询商品详情信息 成功返回结果 +type TaobaoKoubeiMallCommonItemDetailQueryAPIResponseModel struct { + XMLName xml.Name `xml:"koubei_mall_common_item_detail_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoKoubeiMallCommonItemDetailQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonItemDetailQueryResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonItemDetailQueryResponse.go deleted file mode 100644 index 876d630fb7..0000000000 --- a/model/koubeimall/TaobaoKoubeiMallCommonItemDetailQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package koubeimall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询商品详情信息 API返回值 -taobao.koubei.mall.common.item.detail.query - -查询口碑综合体内商品详情信息 -*/ -type TaobaoKoubeiMallCommonItemDetailQueryAPIResponse struct { - model.CommonResponse - TaobaoKoubeiMallCommonItemDetailQueryResponse -} - -// 查询商品详情信息 成功返回结果 -type TaobaoKoubeiMallCommonItemDetailQueryResponse struct { - XMLName xml.Name `xml:"koubei_mall_common_item_detail_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoKoubeiMallCommonItemDetailQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonItemShelfPageAPIRequest.go b/model/koubeimall/TaobaoKoubeiMallCommonItemShelfPageAPIRequest.go new file mode 100644 index 0000000000..85dc2b2dd7 --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonItemShelfPageAPIRequest.go @@ -0,0 +1,192 @@ +package koubeimall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店货架商品列表信息查询 API请求 +taobao.koubei.mall.common.item.shelf.page + +查询口碑综合体内门店货架商品列表信息接口 +*/ +type TaobaoKoubeiMallCommonItemShelfPageAPIRequest struct { + model.Params + // 身份ID,识别合作方身份(可联系口碑综合体业务获取) + _dataSetId string + // 商圈ID + _mallId string + // 商圈内的门店ID + _storeId string + // 分页查询起始值,默认为0 + _start int64 + // 每页查询量,固定8个 + _pageSize int64 + // 口碑城市编码(示例:杭州市330100) + _cityCode string + // 经度(终端设备地理位置) + _longitude string + // 纬度(终端设备地理位置) + _latitude string + // 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) + _displayChannel string + // 终端设备描述(中、英文均可) + _terminalType string + // 支付宝/口碑/淘宝app版本号 + _appVersion string +} + +// 初始化TaobaoKoubeiMallCommonItemShelfPageAPIRequest对象 +func NewTaobaoKoubeiMallCommonItemShelfPageRequest() *TaobaoKoubeiMallCommonItemShelfPageAPIRequest{ + return &TaobaoKoubeiMallCommonItemShelfPageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoKoubeiMallCommonItemShelfPageAPIRequest) GetApiMethodName() string { + return "taobao.koubei.mall.common.item.shelf.page" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoKoubeiMallCommonItemShelfPageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DataSetId Setter +// 身份ID,识别合作方身份(可联系口碑综合体业务获取) +func (r *TaobaoKoubeiMallCommonItemShelfPageAPIRequest) SetDataSetId(_dataSetId string) error { + r._dataSetId = _dataSetId + r.Set("data_set_id", _dataSetId) + return nil +} + +// DataSetId Getter +func (r TaobaoKoubeiMallCommonItemShelfPageAPIRequest) GetDataSetId() string { + return r._dataSetId +} +// MallId Setter +// 商圈ID +func (r *TaobaoKoubeiMallCommonItemShelfPageAPIRequest) SetMallId(_mallId string) error { + r._mallId = _mallId + r.Set("mall_id", _mallId) + return nil +} + +// MallId Getter +func (r TaobaoKoubeiMallCommonItemShelfPageAPIRequest) GetMallId() string { + return r._mallId +} +// StoreId Setter +// 商圈内的门店ID +func (r *TaobaoKoubeiMallCommonItemShelfPageAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoKoubeiMallCommonItemShelfPageAPIRequest) GetStoreId() string { + return r._storeId +} +// Start Setter +// 分页查询起始值,默认为0 +func (r *TaobaoKoubeiMallCommonItemShelfPageAPIRequest) SetStart(_start int64) error { + r._start = _start + r.Set("start", _start) + return nil +} + +// Start Getter +func (r TaobaoKoubeiMallCommonItemShelfPageAPIRequest) GetStart() int64 { + return r._start +} +// PageSize Setter +// 每页查询量,固定8个 +func (r *TaobaoKoubeiMallCommonItemShelfPageAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoKoubeiMallCommonItemShelfPageAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// CityCode Setter +// 口碑城市编码(示例:杭州市330100) +func (r *TaobaoKoubeiMallCommonItemShelfPageAPIRequest) SetCityCode(_cityCode string) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r TaobaoKoubeiMallCommonItemShelfPageAPIRequest) GetCityCode() string { + return r._cityCode +} +// Longitude Setter +// 经度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonItemShelfPageAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r TaobaoKoubeiMallCommonItemShelfPageAPIRequest) GetLongitude() string { + return r._longitude +} +// Latitude Setter +// 纬度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonItemShelfPageAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r TaobaoKoubeiMallCommonItemShelfPageAPIRequest) GetLatitude() string { + return r._latitude +} +// DisplayChannel Setter +// 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) +func (r *TaobaoKoubeiMallCommonItemShelfPageAPIRequest) SetDisplayChannel(_displayChannel string) error { + r._displayChannel = _displayChannel + r.Set("display_channel", _displayChannel) + return nil +} + +// DisplayChannel Getter +func (r TaobaoKoubeiMallCommonItemShelfPageAPIRequest) GetDisplayChannel() string { + return r._displayChannel +} +// TerminalType Setter +// 终端设备描述(中、英文均可) +func (r *TaobaoKoubeiMallCommonItemShelfPageAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r TaobaoKoubeiMallCommonItemShelfPageAPIRequest) GetTerminalType() string { + return r._terminalType +} +// AppVersion Setter +// 支付宝/口碑/淘宝app版本号 +func (r *TaobaoKoubeiMallCommonItemShelfPageAPIRequest) SetAppVersion(_appVersion string) error { + r._appVersion = _appVersion + r.Set("app_version", _appVersion) + return nil +} + +// AppVersion Getter +func (r TaobaoKoubeiMallCommonItemShelfPageAPIRequest) GetAppVersion() string { + return r._appVersion +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonItemShelfPageAPIResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonItemShelfPageAPIResponse.go new file mode 100644 index 0000000000..f83788cbc6 --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonItemShelfPageAPIResponse.go @@ -0,0 +1,27 @@ +package koubeimall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店货架商品列表信息查询 API返回值 +taobao.koubei.mall.common.item.shelf.page + +查询口碑综合体内门店货架商品列表信息接口 +*/ +type TaobaoKoubeiMallCommonItemShelfPageAPIResponse struct { + model.CommonResponse + TaobaoKoubeiMallCommonItemShelfPageAPIResponseModel +} + +// 门店货架商品列表信息查询 成功返回结果 +type TaobaoKoubeiMallCommonItemShelfPageAPIResponseModel struct { + XMLName xml.Name `xml:"koubei_mall_common_item_shelf_page_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // API接口返回的result模型 + Result *TaobaoKoubeiMallCommonItemShelfPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonItemShelfPageResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonItemShelfPageResponse.go deleted file mode 100644 index 283d86a55e..0000000000 --- a/model/koubeimall/TaobaoKoubeiMallCommonItemShelfPageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package koubeimall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店货架商品列表信息查询 API返回值 -taobao.koubei.mall.common.item.shelf.page - -查询口碑综合体内门店货架商品列表信息接口 -*/ -type TaobaoKoubeiMallCommonItemShelfPageAPIResponse struct { - model.CommonResponse - TaobaoKoubeiMallCommonItemShelfPageResponse -} - -// 门店货架商品列表信息查询 成功返回结果 -type TaobaoKoubeiMallCommonItemShelfPageResponse struct { - XMLName xml.Name `xml:"koubei_mall_common_item_shelf_page_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // API接口返回的result模型 - Result *TaobaoKoubeiMallCommonItemShelfPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest.go b/model/koubeimall/TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest.go new file mode 100644 index 0000000000..ef1cc0fc88 --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest.go @@ -0,0 +1,164 @@ +package koubeimall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商圈内的超值特惠商品信息 API请求 +taobao.koubei.mall.common.item.super.discount.list + +查询商圈超值特惠商品信息列表 +*/ +type TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest struct { + model.Params + // 身份ID,识别合作方身份(可联系口碑综合体业务获取) + _dataSetId string + // 商圈ID + _mallId string + // 查询商品最大个数,最大值50 + _itemSize int64 + // 经度(终端设备地理位置) + _longitude string + // 纬度(终端设备地理位置) + _latitude string + // 口碑城市编码(示例:杭州市330100) + _cityCode string + // 终端设备描述(中、英文均可) + _terminalType string + // 支付宝/口碑/淘宝app版本号 + _appVersion string + // 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) + _displayChannel string +} + +// 初始化TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest对象 +func NewTaobaoKoubeiMallCommonItemSuperDiscountListRequest() *TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest{ + return &TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) GetApiMethodName() string { + return "taobao.koubei.mall.common.item.super.discount.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DataSetId Setter +// 身份ID,识别合作方身份(可联系口碑综合体业务获取) +func (r *TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) SetDataSetId(_dataSetId string) error { + r._dataSetId = _dataSetId + r.Set("data_set_id", _dataSetId) + return nil +} + +// DataSetId Getter +func (r TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) GetDataSetId() string { + return r._dataSetId +} +// MallId Setter +// 商圈ID +func (r *TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) SetMallId(_mallId string) error { + r._mallId = _mallId + r.Set("mall_id", _mallId) + return nil +} + +// MallId Getter +func (r TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) GetMallId() string { + return r._mallId +} +// ItemSize Setter +// 查询商品最大个数,最大值50 +func (r *TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) SetItemSize(_itemSize int64) error { + r._itemSize = _itemSize + r.Set("item_size", _itemSize) + return nil +} + +// ItemSize Getter +func (r TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) GetItemSize() int64 { + return r._itemSize +} +// Longitude Setter +// 经度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) GetLongitude() string { + return r._longitude +} +// Latitude Setter +// 纬度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) GetLatitude() string { + return r._latitude +} +// CityCode Setter +// 口碑城市编码(示例:杭州市330100) +func (r *TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) SetCityCode(_cityCode string) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) GetCityCode() string { + return r._cityCode +} +// TerminalType Setter +// 终端设备描述(中、英文均可) +func (r *TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) GetTerminalType() string { + return r._terminalType +} +// AppVersion Setter +// 支付宝/口碑/淘宝app版本号 +func (r *TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) SetAppVersion(_appVersion string) error { + r._appVersion = _appVersion + r.Set("app_version", _appVersion) + return nil +} + +// AppVersion Getter +func (r TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) GetAppVersion() string { + return r._appVersion +} +// DisplayChannel Setter +// 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) +func (r *TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) SetDisplayChannel(_displayChannel string) error { + r._displayChannel = _displayChannel + r.Set("display_channel", _displayChannel) + return nil +} + +// DisplayChannel Getter +func (r TaobaoKoubeiMallCommonItemSuperDiscountListAPIRequest) GetDisplayChannel() string { + return r._displayChannel +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonItemSuperDiscountListAPIResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonItemSuperDiscountListAPIResponse.go new file mode 100644 index 0000000000..bf93d4b0a4 --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonItemSuperDiscountListAPIResponse.go @@ -0,0 +1,27 @@ +package koubeimall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商圈内的超值特惠商品信息 API返回值 +taobao.koubei.mall.common.item.super.discount.list + +查询商圈超值特惠商品信息列表 +*/ +type TaobaoKoubeiMallCommonItemSuperDiscountListAPIResponse struct { + model.CommonResponse + TaobaoKoubeiMallCommonItemSuperDiscountListAPIResponseModel +} + +// 查询商圈内的超值特惠商品信息 成功返回结果 +type TaobaoKoubeiMallCommonItemSuperDiscountListAPIResponseModel struct { + XMLName xml.Name `xml:"koubei_mall_common_item_super_discount_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoKoubeiMallCommonItemSuperDiscountListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonItemSuperDiscountListResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonItemSuperDiscountListResponse.go deleted file mode 100644 index 658700e11e..0000000000 --- a/model/koubeimall/TaobaoKoubeiMallCommonItemSuperDiscountListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package koubeimall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询商圈内的超值特惠商品信息 API返回值 -taobao.koubei.mall.common.item.super.discount.list - -查询商圈超值特惠商品信息列表 -*/ -type TaobaoKoubeiMallCommonItemSuperDiscountListAPIResponse struct { - model.CommonResponse - TaobaoKoubeiMallCommonItemSuperDiscountListResponse -} - -// 查询商圈内的超值特惠商品信息 成功返回结果 -type TaobaoKoubeiMallCommonItemSuperDiscountListResponse struct { - XMLName xml.Name `xml:"koubei_mall_common_item_super_discount_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoKoubeiMallCommonItemSuperDiscountListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonMallAuthPageAPIRequest.go b/model/koubeimall/TaobaoKoubeiMallCommonMallAuthPageAPIRequest.go new file mode 100644 index 0000000000..fa7d24411d --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonMallAuthPageAPIRequest.go @@ -0,0 +1,164 @@ +package koubeimall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询已授权的商圈列表信息 API请求 +taobao.koubei.mall.common.mall.auth.page + +分页查询口碑已授权商圈的列表信息 +*/ +type TaobaoKoubeiMallCommonMallAuthPageAPIRequest struct { + model.Params + // 身份ID,识别合作方身份(可联系口碑综合体业务获取) + _dataSetId string + // 分页查询起始值,默认为0 + _start int64 + // 每页查询量,默认10(建议查询值为10的倍数,最大不超过30) + _pageSize int64 + // 经度(终端设备地理位置) + _longitude string + // 纬度(终端设备地理位置) + _latitude string + // 口碑城市编码(示例:杭州市330100) + _cityCode string + // 支付宝/口碑/淘宝app版本号 + _appVersion string + // 终端设备描述(中、英文均可) + _terminalType string + // 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) + _displayChannel string +} + +// 初始化TaobaoKoubeiMallCommonMallAuthPageAPIRequest对象 +func NewTaobaoKoubeiMallCommonMallAuthPageRequest() *TaobaoKoubeiMallCommonMallAuthPageAPIRequest{ + return &TaobaoKoubeiMallCommonMallAuthPageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoKoubeiMallCommonMallAuthPageAPIRequest) GetApiMethodName() string { + return "taobao.koubei.mall.common.mall.auth.page" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoKoubeiMallCommonMallAuthPageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DataSetId Setter +// 身份ID,识别合作方身份(可联系口碑综合体业务获取) +func (r *TaobaoKoubeiMallCommonMallAuthPageAPIRequest) SetDataSetId(_dataSetId string) error { + r._dataSetId = _dataSetId + r.Set("data_set_id", _dataSetId) + return nil +} + +// DataSetId Getter +func (r TaobaoKoubeiMallCommonMallAuthPageAPIRequest) GetDataSetId() string { + return r._dataSetId +} +// Start Setter +// 分页查询起始值,默认为0 +func (r *TaobaoKoubeiMallCommonMallAuthPageAPIRequest) SetStart(_start int64) error { + r._start = _start + r.Set("start", _start) + return nil +} + +// Start Getter +func (r TaobaoKoubeiMallCommonMallAuthPageAPIRequest) GetStart() int64 { + return r._start +} +// PageSize Setter +// 每页查询量,默认10(建议查询值为10的倍数,最大不超过30) +func (r *TaobaoKoubeiMallCommonMallAuthPageAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoKoubeiMallCommonMallAuthPageAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Longitude Setter +// 经度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonMallAuthPageAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r TaobaoKoubeiMallCommonMallAuthPageAPIRequest) GetLongitude() string { + return r._longitude +} +// Latitude Setter +// 纬度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonMallAuthPageAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r TaobaoKoubeiMallCommonMallAuthPageAPIRequest) GetLatitude() string { + return r._latitude +} +// CityCode Setter +// 口碑城市编码(示例:杭州市330100) +func (r *TaobaoKoubeiMallCommonMallAuthPageAPIRequest) SetCityCode(_cityCode string) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r TaobaoKoubeiMallCommonMallAuthPageAPIRequest) GetCityCode() string { + return r._cityCode +} +// AppVersion Setter +// 支付宝/口碑/淘宝app版本号 +func (r *TaobaoKoubeiMallCommonMallAuthPageAPIRequest) SetAppVersion(_appVersion string) error { + r._appVersion = _appVersion + r.Set("app_version", _appVersion) + return nil +} + +// AppVersion Getter +func (r TaobaoKoubeiMallCommonMallAuthPageAPIRequest) GetAppVersion() string { + return r._appVersion +} +// TerminalType Setter +// 终端设备描述(中、英文均可) +func (r *TaobaoKoubeiMallCommonMallAuthPageAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r TaobaoKoubeiMallCommonMallAuthPageAPIRequest) GetTerminalType() string { + return r._terminalType +} +// DisplayChannel Setter +// 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) +func (r *TaobaoKoubeiMallCommonMallAuthPageAPIRequest) SetDisplayChannel(_displayChannel string) error { + r._displayChannel = _displayChannel + r.Set("display_channel", _displayChannel) + return nil +} + +// DisplayChannel Getter +func (r TaobaoKoubeiMallCommonMallAuthPageAPIRequest) GetDisplayChannel() string { + return r._displayChannel +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonMallAuthPageAPIResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonMallAuthPageAPIResponse.go new file mode 100644 index 0000000000..0b00794bcf --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonMallAuthPageAPIResponse.go @@ -0,0 +1,27 @@ +package koubeimall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询已授权的商圈列表信息 API返回值 +taobao.koubei.mall.common.mall.auth.page + +分页查询口碑已授权商圈的列表信息 +*/ +type TaobaoKoubeiMallCommonMallAuthPageAPIResponse struct { + model.CommonResponse + TaobaoKoubeiMallCommonMallAuthPageAPIResponseModel +} + +// 分页查询已授权的商圈列表信息 成功返回结果 +type TaobaoKoubeiMallCommonMallAuthPageAPIResponseModel struct { + XMLName xml.Name `xml:"koubei_mall_common_mall_auth_page_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // API接口返回的result模型 + Result *TaobaoKoubeiMallCommonMallAuthPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonMallAuthPageResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonMallAuthPageResponse.go deleted file mode 100644 index 7a22652854..0000000000 --- a/model/koubeimall/TaobaoKoubeiMallCommonMallAuthPageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package koubeimall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页查询已授权的商圈列表信息 API返回值 -taobao.koubei.mall.common.mall.auth.page - -分页查询口碑已授权商圈的列表信息 -*/ -type TaobaoKoubeiMallCommonMallAuthPageAPIResponse struct { - model.CommonResponse - TaobaoKoubeiMallCommonMallAuthPageResponse -} - -// 分页查询已授权的商圈列表信息 成功返回结果 -type TaobaoKoubeiMallCommonMallAuthPageResponse struct { - XMLName xml.Name `xml:"koubei_mall_common_mall_auth_page_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // API接口返回的result模型 - Result *TaobaoKoubeiMallCommonMallAuthPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonMallDetailGetAPIRequest.go b/model/koubeimall/TaobaoKoubeiMallCommonMallDetailGetAPIRequest.go new file mode 100644 index 0000000000..5b9448e052 --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonMallDetailGetAPIRequest.go @@ -0,0 +1,150 @@ +package koubeimall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商圈详细信息 API请求 +taobao.koubei.mall.common.mall.detail.get + +查询口碑综合体-商圈详细信息,包含商圈基础信息、门店类目分类、商圈推荐商品等模块信息 +*/ +type TaobaoKoubeiMallCommonMallDetailGetAPIRequest struct { + model.Params + // 身份ID,识别合作方身份(可联系口碑综合体业务获取) + _dataSetId string + // 商圈ID + _mallId string + // 经度(终端设备地理位置) + _longitude string + // 纬度(终端设备地理位置) + _latitude string + // 终端设备描述(中、英文均可) + _terminalType string + // 支付宝/口碑/淘宝app版本号 + _appVersion string + // 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) + _displayChannel string + // 口碑城市编码(示例:杭州市330100) + _cityCode string +} + +// 初始化TaobaoKoubeiMallCommonMallDetailGetAPIRequest对象 +func NewTaobaoKoubeiMallCommonMallDetailGetRequest() *TaobaoKoubeiMallCommonMallDetailGetAPIRequest{ + return &TaobaoKoubeiMallCommonMallDetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoKoubeiMallCommonMallDetailGetAPIRequest) GetApiMethodName() string { + return "taobao.koubei.mall.common.mall.detail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoKoubeiMallCommonMallDetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DataSetId Setter +// 身份ID,识别合作方身份(可联系口碑综合体业务获取) +func (r *TaobaoKoubeiMallCommonMallDetailGetAPIRequest) SetDataSetId(_dataSetId string) error { + r._dataSetId = _dataSetId + r.Set("data_set_id", _dataSetId) + return nil +} + +// DataSetId Getter +func (r TaobaoKoubeiMallCommonMallDetailGetAPIRequest) GetDataSetId() string { + return r._dataSetId +} +// MallId Setter +// 商圈ID +func (r *TaobaoKoubeiMallCommonMallDetailGetAPIRequest) SetMallId(_mallId string) error { + r._mallId = _mallId + r.Set("mall_id", _mallId) + return nil +} + +// MallId Getter +func (r TaobaoKoubeiMallCommonMallDetailGetAPIRequest) GetMallId() string { + return r._mallId +} +// Longitude Setter +// 经度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonMallDetailGetAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r TaobaoKoubeiMallCommonMallDetailGetAPIRequest) GetLongitude() string { + return r._longitude +} +// Latitude Setter +// 纬度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonMallDetailGetAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r TaobaoKoubeiMallCommonMallDetailGetAPIRequest) GetLatitude() string { + return r._latitude +} +// TerminalType Setter +// 终端设备描述(中、英文均可) +func (r *TaobaoKoubeiMallCommonMallDetailGetAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r TaobaoKoubeiMallCommonMallDetailGetAPIRequest) GetTerminalType() string { + return r._terminalType +} +// AppVersion Setter +// 支付宝/口碑/淘宝app版本号 +func (r *TaobaoKoubeiMallCommonMallDetailGetAPIRequest) SetAppVersion(_appVersion string) error { + r._appVersion = _appVersion + r.Set("app_version", _appVersion) + return nil +} + +// AppVersion Getter +func (r TaobaoKoubeiMallCommonMallDetailGetAPIRequest) GetAppVersion() string { + return r._appVersion +} +// DisplayChannel Setter +// 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) +func (r *TaobaoKoubeiMallCommonMallDetailGetAPIRequest) SetDisplayChannel(_displayChannel string) error { + r._displayChannel = _displayChannel + r.Set("display_channel", _displayChannel) + return nil +} + +// DisplayChannel Getter +func (r TaobaoKoubeiMallCommonMallDetailGetAPIRequest) GetDisplayChannel() string { + return r._displayChannel +} +// CityCode Setter +// 口碑城市编码(示例:杭州市330100) +func (r *TaobaoKoubeiMallCommonMallDetailGetAPIRequest) SetCityCode(_cityCode string) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r TaobaoKoubeiMallCommonMallDetailGetAPIRequest) GetCityCode() string { + return r._cityCode +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonMallDetailGetAPIResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonMallDetailGetAPIResponse.go new file mode 100644 index 0000000000..4cc404355b --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonMallDetailGetAPIResponse.go @@ -0,0 +1,27 @@ +package koubeimall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商圈详细信息 API返回值 +taobao.koubei.mall.common.mall.detail.get + +查询口碑综合体-商圈详细信息,包含商圈基础信息、门店类目分类、商圈推荐商品等模块信息 +*/ +type TaobaoKoubeiMallCommonMallDetailGetAPIResponse struct { + model.CommonResponse + TaobaoKoubeiMallCommonMallDetailGetAPIResponseModel +} + +// 查询商圈详细信息 成功返回结果 +type TaobaoKoubeiMallCommonMallDetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"koubei_mall_common_mall_detail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // API接口返回的result模型 + Result *TaobaoKoubeiMallCommonMallDetailGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonMallDetailGetResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonMallDetailGetResponse.go deleted file mode 100644 index bc324cdde4..0000000000 --- a/model/koubeimall/TaobaoKoubeiMallCommonMallDetailGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package koubeimall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询商圈详细信息 API返回值 -taobao.koubei.mall.common.mall.detail.get - -查询口碑综合体-商圈详细信息,包含商圈基础信息、门店类目分类、商圈推荐商品等模块信息 -*/ -type TaobaoKoubeiMallCommonMallDetailGetAPIResponse struct { - model.CommonResponse - TaobaoKoubeiMallCommonMallDetailGetResponse -} - -// 查询商圈详细信息 成功返回结果 -type TaobaoKoubeiMallCommonMallDetailGetResponse struct { - XMLName xml.Name `xml:"koubei_mall_common_mall_detail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // API接口返回的result模型 - Result *TaobaoKoubeiMallCommonMallDetailGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonMallNearListAPIRequest.go b/model/koubeimall/TaobaoKoubeiMallCommonMallNearListAPIRequest.go new file mode 100644 index 0000000000..69d1e4983a --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonMallNearListAPIRequest.go @@ -0,0 +1,164 @@ +package koubeimall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据POI查询附近商圈列表信息 API请求 +taobao.koubei.mall.common.mall.near.list + +通过用户/终端设备地理位置POI信息,查询附近商圈信息 +*/ +type TaobaoKoubeiMallCommonMallNearListAPIRequest struct { + model.Params + // 身份ID,识别合作方身份(可联系口碑综合体业务获取) + _dataSetId string + // 召回半径,单位m,最大数值不能超过10km(该字段为空,默认全城召回) + _radius int64 + // 查询个数,最大查询量不能超过50个 + _size int64 + // 经度(终端设备地理位置) + _longitude string + // 纬度(终端设备地理位置) + _latitude string + // 口碑城市编码(示例:杭州市330100) + _cityCode string + // 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) + _displayChannel string + // 支付宝/口碑/淘宝app版本号 + _appVersion string + // 终端设备描述(中、英文均可) + _terminalType string +} + +// 初始化TaobaoKoubeiMallCommonMallNearListAPIRequest对象 +func NewTaobaoKoubeiMallCommonMallNearListRequest() *TaobaoKoubeiMallCommonMallNearListAPIRequest{ + return &TaobaoKoubeiMallCommonMallNearListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetApiMethodName() string { + return "taobao.koubei.mall.common.mall.near.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DataSetId Setter +// 身份ID,识别合作方身份(可联系口碑综合体业务获取) +func (r *TaobaoKoubeiMallCommonMallNearListAPIRequest) SetDataSetId(_dataSetId string) error { + r._dataSetId = _dataSetId + r.Set("data_set_id", _dataSetId) + return nil +} + +// DataSetId Getter +func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetDataSetId() string { + return r._dataSetId +} +// Radius Setter +// 召回半径,单位m,最大数值不能超过10km(该字段为空,默认全城召回) +func (r *TaobaoKoubeiMallCommonMallNearListAPIRequest) SetRadius(_radius int64) error { + r._radius = _radius + r.Set("radius", _radius) + return nil +} + +// Radius Getter +func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetRadius() int64 { + return r._radius +} +// Size Setter +// 查询个数,最大查询量不能超过50个 +func (r *TaobaoKoubeiMallCommonMallNearListAPIRequest) SetSize(_size int64) error { + r._size = _size + r.Set("size", _size) + return nil +} + +// Size Getter +func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetSize() int64 { + return r._size +} +// Longitude Setter +// 经度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonMallNearListAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetLongitude() string { + return r._longitude +} +// Latitude Setter +// 纬度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonMallNearListAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetLatitude() string { + return r._latitude +} +// CityCode Setter +// 口碑城市编码(示例:杭州市330100) +func (r *TaobaoKoubeiMallCommonMallNearListAPIRequest) SetCityCode(_cityCode string) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetCityCode() string { + return r._cityCode +} +// DisplayChannel Setter +// 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) +func (r *TaobaoKoubeiMallCommonMallNearListAPIRequest) SetDisplayChannel(_displayChannel string) error { + r._displayChannel = _displayChannel + r.Set("display_channel", _displayChannel) + return nil +} + +// DisplayChannel Getter +func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetDisplayChannel() string { + return r._displayChannel +} +// AppVersion Setter +// 支付宝/口碑/淘宝app版本号 +func (r *TaobaoKoubeiMallCommonMallNearListAPIRequest) SetAppVersion(_appVersion string) error { + r._appVersion = _appVersion + r.Set("app_version", _appVersion) + return nil +} + +// AppVersion Getter +func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetAppVersion() string { + return r._appVersion +} +// TerminalType Setter +// 终端设备描述(中、英文均可) +func (r *TaobaoKoubeiMallCommonMallNearListAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r TaobaoKoubeiMallCommonMallNearListAPIRequest) GetTerminalType() string { + return r._terminalType +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonMallNearListAPIResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonMallNearListAPIResponse.go new file mode 100644 index 0000000000..5abeb69d7a --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonMallNearListAPIResponse.go @@ -0,0 +1,27 @@ +package koubeimall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据POI查询附近商圈列表信息 API返回值 +taobao.koubei.mall.common.mall.near.list + +通过用户/终端设备地理位置POI信息,查询附近商圈信息 +*/ +type TaobaoKoubeiMallCommonMallNearListAPIResponse struct { + model.CommonResponse + TaobaoKoubeiMallCommonMallNearListAPIResponseModel +} + +// 根据POI查询附近商圈列表信息 成功返回结果 +type TaobaoKoubeiMallCommonMallNearListAPIResponseModel struct { + XMLName xml.Name `xml:"koubei_mall_common_mall_near_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoKoubeiMallCommonMallNearListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonMallNearListResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonMallNearListResponse.go deleted file mode 100644 index 2d335b422a..0000000000 --- a/model/koubeimall/TaobaoKoubeiMallCommonMallNearListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package koubeimall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据POI查询附近商圈列表信息 API返回值 -taobao.koubei.mall.common.mall.near.list - -通过用户/终端设备地理位置POI信息,查询附近商圈信息 -*/ -type TaobaoKoubeiMallCommonMallNearListAPIResponse struct { - model.CommonResponse - TaobaoKoubeiMallCommonMallNearListResponse -} - -// 根据POI查询附近商圈列表信息 成功返回结果 -type TaobaoKoubeiMallCommonMallNearListResponse struct { - XMLName xml.Name `xml:"koubei_mall_common_mall_near_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoKoubeiMallCommonMallNearListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonStoreCommentPageAPIRequest.go b/model/koubeimall/TaobaoKoubeiMallCommonStoreCommentPageAPIRequest.go new file mode 100644 index 0000000000..ecc41c30f2 --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonStoreCommentPageAPIRequest.go @@ -0,0 +1,192 @@ +package koubeimall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询门店评论详情信息 API请求 +taobao.koubei.mall.common.store.comment.page + +查询口碑综合体内的门店评论信息 +*/ +type TaobaoKoubeiMallCommonStoreCommentPageAPIRequest struct { + model.Params + // 身份ID,识别合作方身份(可联系口碑综合体业务获取) + _dataSetId string + // 商圈ID + _mallId string + // 门店ID + _storeId string + // 查询起始值,默认为0 + _start int64 + // 每页查询量,默认为20,最大数值20 + _pageSize int64 + // 口碑城市编码(示例:杭州市330100) + _cityCode string + // 纬度(终端设备地理位置) + _longitude string + // 经度(终端设备地理位置) + _latitude string + // 终端设备描述(中、英文均可) + _terminalType string + // 支付宝/口碑/淘宝app版本号 + _appVersion string + // 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) + _displayChannel string +} + +// 初始化TaobaoKoubeiMallCommonStoreCommentPageAPIRequest对象 +func NewTaobaoKoubeiMallCommonStoreCommentPageRequest() *TaobaoKoubeiMallCommonStoreCommentPageAPIRequest{ + return &TaobaoKoubeiMallCommonStoreCommentPageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) GetApiMethodName() string { + return "taobao.koubei.mall.common.store.comment.page" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DataSetId Setter +// 身份ID,识别合作方身份(可联系口碑综合体业务获取) +func (r *TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) SetDataSetId(_dataSetId string) error { + r._dataSetId = _dataSetId + r.Set("data_set_id", _dataSetId) + return nil +} + +// DataSetId Getter +func (r TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) GetDataSetId() string { + return r._dataSetId +} +// MallId Setter +// 商圈ID +func (r *TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) SetMallId(_mallId string) error { + r._mallId = _mallId + r.Set("mall_id", _mallId) + return nil +} + +// MallId Getter +func (r TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) GetMallId() string { + return r._mallId +} +// StoreId Setter +// 门店ID +func (r *TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) GetStoreId() string { + return r._storeId +} +// Start Setter +// 查询起始值,默认为0 +func (r *TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) SetStart(_start int64) error { + r._start = _start + r.Set("start", _start) + return nil +} + +// Start Getter +func (r TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) GetStart() int64 { + return r._start +} +// PageSize Setter +// 每页查询量,默认为20,最大数值20 +func (r *TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// CityCode Setter +// 口碑城市编码(示例:杭州市330100) +func (r *TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) SetCityCode(_cityCode string) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) GetCityCode() string { + return r._cityCode +} +// Longitude Setter +// 纬度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) GetLongitude() string { + return r._longitude +} +// Latitude Setter +// 经度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) GetLatitude() string { + return r._latitude +} +// TerminalType Setter +// 终端设备描述(中、英文均可) +func (r *TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) GetTerminalType() string { + return r._terminalType +} +// AppVersion Setter +// 支付宝/口碑/淘宝app版本号 +func (r *TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) SetAppVersion(_appVersion string) error { + r._appVersion = _appVersion + r.Set("app_version", _appVersion) + return nil +} + +// AppVersion Getter +func (r TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) GetAppVersion() string { + return r._appVersion +} +// DisplayChannel Setter +// 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) +func (r *TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) SetDisplayChannel(_displayChannel string) error { + r._displayChannel = _displayChannel + r.Set("display_channel", _displayChannel) + return nil +} + +// DisplayChannel Getter +func (r TaobaoKoubeiMallCommonStoreCommentPageAPIRequest) GetDisplayChannel() string { + return r._displayChannel +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonStoreCommentPageAPIResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonStoreCommentPageAPIResponse.go new file mode 100644 index 0000000000..2b02242098 --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonStoreCommentPageAPIResponse.go @@ -0,0 +1,27 @@ +package koubeimall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询门店评论详情信息 API返回值 +taobao.koubei.mall.common.store.comment.page + +查询口碑综合体内的门店评论信息 +*/ +type TaobaoKoubeiMallCommonStoreCommentPageAPIResponse struct { + model.CommonResponse + TaobaoKoubeiMallCommonStoreCommentPageAPIResponseModel +} + +// 分页查询门店评论详情信息 成功返回结果 +type TaobaoKoubeiMallCommonStoreCommentPageAPIResponseModel struct { + XMLName xml.Name `xml:"koubei_mall_common_store_comment_page_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoKoubeiMallCommonStoreCommentPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonStoreCommentPageResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonStoreCommentPageResponse.go deleted file mode 100644 index 0bef2cecb9..0000000000 --- a/model/koubeimall/TaobaoKoubeiMallCommonStoreCommentPageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package koubeimall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页查询门店评论详情信息 API返回值 -taobao.koubei.mall.common.store.comment.page - -查询口碑综合体内的门店评论信息 -*/ -type TaobaoKoubeiMallCommonStoreCommentPageAPIResponse struct { - model.CommonResponse - TaobaoKoubeiMallCommonStoreCommentPageResponse -} - -// 分页查询门店评论详情信息 成功返回结果 -type TaobaoKoubeiMallCommonStoreCommentPageResponse struct { - XMLName xml.Name `xml:"koubei_mall_common_store_comment_page_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoKoubeiMallCommonStoreCommentPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest.go b/model/koubeimall/TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest.go new file mode 100644 index 0000000000..c06b286b6f --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest.go @@ -0,0 +1,164 @@ +package koubeimall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询综合体内的门店详细信息 API请求 +taobao.koubei.mall.common.store.detail.query + +查询口碑综合体内的门店详情信息 +*/ +type TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest struct { + model.Params + // 身份ID,识别合作方身份(可联系口碑综合体业务获取) + _dataSetId string + // 商圈ID + _mallId string + // 商圈内的门店ID + _storeId string + // 口碑城市编码(示例:杭州市330100) + _cityCode string + // 经度(终端设备地理位置) + _longitude string + // 纬度(终端设备地理位置) + _latitude string + // 终端设备描述(中、英文均可) + _terminalType string + // 支付宝/口碑/淘宝app版本号 + _appVersion string + // 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) + _displayChannel string +} + +// 初始化TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest对象 +func NewTaobaoKoubeiMallCommonStoreDetailQueryRequest() *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest{ + return &TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetApiMethodName() string { + return "taobao.koubei.mall.common.store.detail.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DataSetId Setter +// 身份ID,识别合作方身份(可联系口碑综合体业务获取) +func (r *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) SetDataSetId(_dataSetId string) error { + r._dataSetId = _dataSetId + r.Set("data_set_id", _dataSetId) + return nil +} + +// DataSetId Getter +func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetDataSetId() string { + return r._dataSetId +} +// MallId Setter +// 商圈ID +func (r *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) SetMallId(_mallId string) error { + r._mallId = _mallId + r.Set("mall_id", _mallId) + return nil +} + +// MallId Getter +func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetMallId() string { + return r._mallId +} +// StoreId Setter +// 商圈内的门店ID +func (r *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetStoreId() string { + return r._storeId +} +// CityCode Setter +// 口碑城市编码(示例:杭州市330100) +func (r *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) SetCityCode(_cityCode string) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetCityCode() string { + return r._cityCode +} +// Longitude Setter +// 经度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetLongitude() string { + return r._longitude +} +// Latitude Setter +// 纬度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetLatitude() string { + return r._latitude +} +// TerminalType Setter +// 终端设备描述(中、英文均可) +func (r *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetTerminalType() string { + return r._terminalType +} +// AppVersion Setter +// 支付宝/口碑/淘宝app版本号 +func (r *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) SetAppVersion(_appVersion string) error { + r._appVersion = _appVersion + r.Set("app_version", _appVersion) + return nil +} + +// AppVersion Getter +func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetAppVersion() string { + return r._appVersion +} +// DisplayChannel Setter +// 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) +func (r *TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) SetDisplayChannel(_displayChannel string) error { + r._displayChannel = _displayChannel + r.Set("display_channel", _displayChannel) + return nil +} + +// DisplayChannel Getter +func (r TaobaoKoubeiMallCommonStoreDetailQueryAPIRequest) GetDisplayChannel() string { + return r._displayChannel +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonStoreDetailQueryAPIResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonStoreDetailQueryAPIResponse.go new file mode 100644 index 0000000000..eabb4cd1c4 --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonStoreDetailQueryAPIResponse.go @@ -0,0 +1,27 @@ +package koubeimall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询综合体内的门店详细信息 API返回值 +taobao.koubei.mall.common.store.detail.query + +查询口碑综合体内的门店详情信息 +*/ +type TaobaoKoubeiMallCommonStoreDetailQueryAPIResponse struct { + model.CommonResponse + TaobaoKoubeiMallCommonStoreDetailQueryAPIResponseModel +} + +// 查询综合体内的门店详细信息 成功返回结果 +type TaobaoKoubeiMallCommonStoreDetailQueryAPIResponseModel struct { + XMLName xml.Name `xml:"koubei_mall_common_store_detail_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoKoubeiMallCommonStoreDetailQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonStoreDetailQueryResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonStoreDetailQueryResponse.go deleted file mode 100644 index c46e88ed12..0000000000 --- a/model/koubeimall/TaobaoKoubeiMallCommonStoreDetailQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package koubeimall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询综合体内的门店详细信息 API返回值 -taobao.koubei.mall.common.store.detail.query - -查询口碑综合体内的门店详情信息 -*/ -type TaobaoKoubeiMallCommonStoreDetailQueryAPIResponse struct { - model.CommonResponse - TaobaoKoubeiMallCommonStoreDetailQueryResponse -} - -// 查询综合体内的门店详细信息 成功返回结果 -type TaobaoKoubeiMallCommonStoreDetailQueryResponse struct { - XMLName xml.Name `xml:"koubei_mall_common_store_detail_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoKoubeiMallCommonStoreDetailQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest.go b/model/koubeimall/TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest.go new file mode 100644 index 0000000000..f1fce3140f --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest.go @@ -0,0 +1,164 @@ +package koubeimall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询门店推荐菜信息 API请求 +taobao.koubei.mall.common.store.display.goods.list + +提供查询口碑商圈内的门店推荐菜信息 +*/ +type TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest struct { + model.Params + // 身份ID,识别合作方身份(可联系口碑综合体业务获取) + _dataSetId string + // 门店ID + _storeId string + // 商圈ID + _mallId string + // 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) + _displayChannel string + // 口碑城市编码(示例:杭州市330100) + _cityCode string + // 经度(终端设备地理位置) + _longitude string + // 纬度(终端设备地理位置) + _latitude string + // 终端设备描述(中、英文均可) + _terminalType string + // 支付宝/口碑/淘宝app版本号 + _appVersion string +} + +// 初始化TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest对象 +func NewTaobaoKoubeiMallCommonStoreDisplayGoodsListRequest() *TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest{ + return &TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) GetApiMethodName() string { + return "taobao.koubei.mall.common.store.display.goods.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DataSetId Setter +// 身份ID,识别合作方身份(可联系口碑综合体业务获取) +func (r *TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) SetDataSetId(_dataSetId string) error { + r._dataSetId = _dataSetId + r.Set("data_set_id", _dataSetId) + return nil +} + +// DataSetId Getter +func (r TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) GetDataSetId() string { + return r._dataSetId +} +// StoreId Setter +// 门店ID +func (r *TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) GetStoreId() string { + return r._storeId +} +// MallId Setter +// 商圈ID +func (r *TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) SetMallId(_mallId string) error { + r._mallId = _mallId + r.Set("mall_id", _mallId) + return nil +} + +// MallId Getter +func (r TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) GetMallId() string { + return r._mallId +} +// DisplayChannel Setter +// 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) +func (r *TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) SetDisplayChannel(_displayChannel string) error { + r._displayChannel = _displayChannel + r.Set("display_channel", _displayChannel) + return nil +} + +// DisplayChannel Getter +func (r TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) GetDisplayChannel() string { + return r._displayChannel +} +// CityCode Setter +// 口碑城市编码(示例:杭州市330100) +func (r *TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) SetCityCode(_cityCode string) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) GetCityCode() string { + return r._cityCode +} +// Longitude Setter +// 经度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) GetLongitude() string { + return r._longitude +} +// Latitude Setter +// 纬度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) GetLatitude() string { + return r._latitude +} +// TerminalType Setter +// 终端设备描述(中、英文均可) +func (r *TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) GetTerminalType() string { + return r._terminalType +} +// AppVersion Setter +// 支付宝/口碑/淘宝app版本号 +func (r *TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) SetAppVersion(_appVersion string) error { + r._appVersion = _appVersion + r.Set("app_version", _appVersion) + return nil +} + +// AppVersion Getter +func (r TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIRequest) GetAppVersion() string { + return r._appVersion +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIResponse.go new file mode 100644 index 0000000000..f906a53d71 --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIResponse.go @@ -0,0 +1,27 @@ +package koubeimall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询门店推荐菜信息 API返回值 +taobao.koubei.mall.common.store.display.goods.list + +提供查询口碑商圈内的门店推荐菜信息 +*/ +type TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIResponse struct { + model.CommonResponse + TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIResponseModel +} + +// 查询门店推荐菜信息 成功返回结果 +type TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIResponseModel struct { + XMLName xml.Name `xml:"koubei_mall_common_store_display_goods_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // API接口返回的result模型 + Result *TaobaoKoubeiMallCommonStoreDisplayGoodsListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonStoreDisplayGoodsListResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonStoreDisplayGoodsListResponse.go deleted file mode 100644 index bcd89fe322..0000000000 --- a/model/koubeimall/TaobaoKoubeiMallCommonStoreDisplayGoodsListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package koubeimall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询门店推荐菜信息 API返回值 -taobao.koubei.mall.common.store.display.goods.list - -提供查询口碑商圈内的门店推荐菜信息 -*/ -type TaobaoKoubeiMallCommonStoreDisplayGoodsListAPIResponse struct { - model.CommonResponse - TaobaoKoubeiMallCommonStoreDisplayGoodsListResponse -} - -// 查询门店推荐菜信息 成功返回结果 -type TaobaoKoubeiMallCommonStoreDisplayGoodsListResponse struct { - XMLName xml.Name `xml:"koubei_mall_common_store_display_goods_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // API接口返回的result模型 - Result *TaobaoKoubeiMallCommonStoreDisplayGoodsListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonStorePageAPIRequest.go b/model/koubeimall/TaobaoKoubeiMallCommonStorePageAPIRequest.go new file mode 100644 index 0000000000..643094a050 --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonStorePageAPIRequest.go @@ -0,0 +1,234 @@ +package koubeimall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询综合体内的门店列表信息 API请求 +taobao.koubei.mall.common.store.page + +分页查询综合体内的门店列表信息 +*/ +type TaobaoKoubeiMallCommonStorePageAPIRequest struct { + model.Params + // 身份ID,识别合作方身份(可联系口碑综合体业务获取) + _dataSetId string + // 商圈ID + _mallId string + // 分页查询起始值,默认为0 + _start int64 + // 每页查询量,默认10(建议查询值为10的倍数,最大不超过20) + _pageSize int64 + // 门店列表按照类目筛选条件过滤,可通过查询商圈详情获取类目信息 + _categoryIds []string + // 商圈内的门店ID + _storeId string + // 门店列表排序规则;默认:门店质量分降序,暂无其它排序规则 + _order string + // 店铺服务标签,用于列表过滤条件;比如:点餐/外卖/预定等服务筛选条件。预定:SERVICE_DING;排号:SERVICE_PAI;点菜:SERVICE_DIAN;外卖:SERVICE_WAI; + _serviceTag []string + // 口碑城市编码(示例:杭州市330100) + _cityCode string + // 经度(终端设备地理位置) + _longitude string + // 纬度(终端设备地理位置) + _latitude string + // 终端设备描述(中、英文均可) + _terminalType string + // 支付宝/口碑/淘宝app版本号 + _appVersion string + // 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) + _displayChannel string +} + +// 初始化TaobaoKoubeiMallCommonStorePageAPIRequest对象 +func NewTaobaoKoubeiMallCommonStorePageRequest() *TaobaoKoubeiMallCommonStorePageAPIRequest{ + return &TaobaoKoubeiMallCommonStorePageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoKoubeiMallCommonStorePageAPIRequest) GetApiMethodName() string { + return "taobao.koubei.mall.common.store.page" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoKoubeiMallCommonStorePageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DataSetId Setter +// 身份ID,识别合作方身份(可联系口碑综合体业务获取) +func (r *TaobaoKoubeiMallCommonStorePageAPIRequest) SetDataSetId(_dataSetId string) error { + r._dataSetId = _dataSetId + r.Set("data_set_id", _dataSetId) + return nil +} + +// DataSetId Getter +func (r TaobaoKoubeiMallCommonStorePageAPIRequest) GetDataSetId() string { + return r._dataSetId +} +// MallId Setter +// 商圈ID +func (r *TaobaoKoubeiMallCommonStorePageAPIRequest) SetMallId(_mallId string) error { + r._mallId = _mallId + r.Set("mall_id", _mallId) + return nil +} + +// MallId Getter +func (r TaobaoKoubeiMallCommonStorePageAPIRequest) GetMallId() string { + return r._mallId +} +// Start Setter +// 分页查询起始值,默认为0 +func (r *TaobaoKoubeiMallCommonStorePageAPIRequest) SetStart(_start int64) error { + r._start = _start + r.Set("start", _start) + return nil +} + +// Start Getter +func (r TaobaoKoubeiMallCommonStorePageAPIRequest) GetStart() int64 { + return r._start +} +// PageSize Setter +// 每页查询量,默认10(建议查询值为10的倍数,最大不超过20) +func (r *TaobaoKoubeiMallCommonStorePageAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoKoubeiMallCommonStorePageAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// CategoryIds Setter +// 门店列表按照类目筛选条件过滤,可通过查询商圈详情获取类目信息 +func (r *TaobaoKoubeiMallCommonStorePageAPIRequest) SetCategoryIds(_categoryIds []string) error { + r._categoryIds = _categoryIds + r.Set("category_ids", _categoryIds) + return nil +} + +// CategoryIds Getter +func (r TaobaoKoubeiMallCommonStorePageAPIRequest) GetCategoryIds() []string { + return r._categoryIds +} +// StoreId Setter +// 商圈内的门店ID +func (r *TaobaoKoubeiMallCommonStorePageAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoKoubeiMallCommonStorePageAPIRequest) GetStoreId() string { + return r._storeId +} +// Order Setter +// 门店列表排序规则;默认:门店质量分降序,暂无其它排序规则 +func (r *TaobaoKoubeiMallCommonStorePageAPIRequest) SetOrder(_order string) error { + r._order = _order + r.Set("order", _order) + return nil +} + +// Order Getter +func (r TaobaoKoubeiMallCommonStorePageAPIRequest) GetOrder() string { + return r._order +} +// ServiceTag Setter +// 店铺服务标签,用于列表过滤条件;比如:点餐/外卖/预定等服务筛选条件。预定:SERVICE_DING;排号:SERVICE_PAI;点菜:SERVICE_DIAN;外卖:SERVICE_WAI; +func (r *TaobaoKoubeiMallCommonStorePageAPIRequest) SetServiceTag(_serviceTag []string) error { + r._serviceTag = _serviceTag + r.Set("service_tag", _serviceTag) + return nil +} + +// ServiceTag Getter +func (r TaobaoKoubeiMallCommonStorePageAPIRequest) GetServiceTag() []string { + return r._serviceTag +} +// CityCode Setter +// 口碑城市编码(示例:杭州市330100) +func (r *TaobaoKoubeiMallCommonStorePageAPIRequest) SetCityCode(_cityCode string) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r TaobaoKoubeiMallCommonStorePageAPIRequest) GetCityCode() string { + return r._cityCode +} +// Longitude Setter +// 经度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonStorePageAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r TaobaoKoubeiMallCommonStorePageAPIRequest) GetLongitude() string { + return r._longitude +} +// Latitude Setter +// 纬度(终端设备地理位置) +func (r *TaobaoKoubeiMallCommonStorePageAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r TaobaoKoubeiMallCommonStorePageAPIRequest) GetLatitude() string { + return r._latitude +} +// TerminalType Setter +// 终端设备描述(中、英文均可) +func (r *TaobaoKoubeiMallCommonStorePageAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r TaobaoKoubeiMallCommonStorePageAPIRequest) GetTerminalType() string { + return r._terminalType +} +// AppVersion Setter +// 支付宝/口碑/淘宝app版本号 +func (r *TaobaoKoubeiMallCommonStorePageAPIRequest) SetAppVersion(_appVersion string) error { + r._appVersion = _appVersion + r.Set("app_version", _appVersion) + return nil +} + +// AppVersion Getter +func (r TaobaoKoubeiMallCommonStorePageAPIRequest) GetAppVersion() string { + return r._appVersion +} +// DisplayChannel Setter +// 展示渠道:ALIPAY_APP KOUBEI_APP TAOBAO_APP(默认ALIPAY_APP) +func (r *TaobaoKoubeiMallCommonStorePageAPIRequest) SetDisplayChannel(_displayChannel string) error { + r._displayChannel = _displayChannel + r.Set("display_channel", _displayChannel) + return nil +} + +// DisplayChannel Getter +func (r TaobaoKoubeiMallCommonStorePageAPIRequest) GetDisplayChannel() string { + return r._displayChannel +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonStorePageAPIResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonStorePageAPIResponse.go new file mode 100644 index 0000000000..822eb72c93 --- /dev/null +++ b/model/koubeimall/TaobaoKoubeiMallCommonStorePageAPIResponse.go @@ -0,0 +1,27 @@ +package koubeimall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询综合体内的门店列表信息 API返回值 +taobao.koubei.mall.common.store.page + +分页查询综合体内的门店列表信息 +*/ +type TaobaoKoubeiMallCommonStorePageAPIResponse struct { + model.CommonResponse + TaobaoKoubeiMallCommonStorePageAPIResponseModel +} + +// 分页查询综合体内的门店列表信息 成功返回结果 +type TaobaoKoubeiMallCommonStorePageAPIResponseModel struct { + XMLName xml.Name `xml:"koubei_mall_common_store_page_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // API接口返回的result模型 + Result *TaobaoKoubeiMallCommonStorePageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/koubeimall/TaobaoKoubeiMallCommonStorePageResponse.go b/model/koubeimall/TaobaoKoubeiMallCommonStorePageResponse.go deleted file mode 100644 index 5b256c4351..0000000000 --- a/model/koubeimall/TaobaoKoubeiMallCommonStorePageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package koubeimall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页查询综合体内的门店列表信息 API返回值 -taobao.koubei.mall.common.store.page - -分页查询综合体内的门店列表信息 -*/ -type TaobaoKoubeiMallCommonStorePageAPIResponse struct { - model.CommonResponse - TaobaoKoubeiMallCommonStorePageResponse -} - -// 分页查询综合体内的门店列表信息 成功返回结果 -type TaobaoKoubeiMallCommonStorePageResponse struct { - XMLName xml.Name `xml:"koubei_mall_common_store_page_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // API接口返回的result模型 - Result *TaobaoKoubeiMallCommonStorePageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/larkiot/TaobaoLarkIotOrderConfirmorderAPIRequest.go b/model/larkiot/TaobaoLarkIotOrderConfirmorderAPIRequest.go new file mode 100644 index 0000000000..f968e1b832 --- /dev/null +++ b/model/larkiot/TaobaoLarkIotOrderConfirmorderAPIRequest.go @@ -0,0 +1,178 @@ +package larkiot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +iot渠道卖品落单 API请求 +taobao.lark.iot.order.confirmorder + +云智对接无人超市,接收无人超市订单信息 +*/ +type TaobaoLarkIotOrderConfirmorderAPIRequest struct { + model.Params + // 渠道编码 + _channelCode string + // 影院内码 + _cinemaLinkId string + // 外部订单号 + _outGoodsOrderId string + // 工作站id + _workstationId string + // 工作站名称 + _workstationName string + // 支付方式 + _paymentList string + // 优惠列表 + _promotionList string + // 卖品列表 + _goodsList string + // 手机号 + _mobile string + // 管理员 + _operatorUserId string +} + +// 初始化TaobaoLarkIotOrderConfirmorderAPIRequest对象 +func NewTaobaoLarkIotOrderConfirmorderRequest() *TaobaoLarkIotOrderConfirmorderAPIRequest{ + return &TaobaoLarkIotOrderConfirmorderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLarkIotOrderConfirmorderAPIRequest) GetApiMethodName() string { + return "taobao.lark.iot.order.confirmorder" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLarkIotOrderConfirmorderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChannelCode Setter +// 渠道编码 +func (r *TaobaoLarkIotOrderConfirmorderAPIRequest) SetChannelCode(_channelCode string) error { + r._channelCode = _channelCode + r.Set("channel_code", _channelCode) + return nil +} + +// ChannelCode Getter +func (r TaobaoLarkIotOrderConfirmorderAPIRequest) GetChannelCode() string { + return r._channelCode +} +// CinemaLinkId Setter +// 影院内码 +func (r *TaobaoLarkIotOrderConfirmorderAPIRequest) SetCinemaLinkId(_cinemaLinkId string) error { + r._cinemaLinkId = _cinemaLinkId + r.Set("cinema_link_id", _cinemaLinkId) + return nil +} + +// CinemaLinkId Getter +func (r TaobaoLarkIotOrderConfirmorderAPIRequest) GetCinemaLinkId() string { + return r._cinemaLinkId +} +// OutGoodsOrderId Setter +// 外部订单号 +func (r *TaobaoLarkIotOrderConfirmorderAPIRequest) SetOutGoodsOrderId(_outGoodsOrderId string) error { + r._outGoodsOrderId = _outGoodsOrderId + r.Set("out_goods_order_id", _outGoodsOrderId) + return nil +} + +// OutGoodsOrderId Getter +func (r TaobaoLarkIotOrderConfirmorderAPIRequest) GetOutGoodsOrderId() string { + return r._outGoodsOrderId +} +// WorkstationId Setter +// 工作站id +func (r *TaobaoLarkIotOrderConfirmorderAPIRequest) SetWorkstationId(_workstationId string) error { + r._workstationId = _workstationId + r.Set("workstation_id", _workstationId) + return nil +} + +// WorkstationId Getter +func (r TaobaoLarkIotOrderConfirmorderAPIRequest) GetWorkstationId() string { + return r._workstationId +} +// WorkstationName Setter +// 工作站名称 +func (r *TaobaoLarkIotOrderConfirmorderAPIRequest) SetWorkstationName(_workstationName string) error { + r._workstationName = _workstationName + r.Set("workstation_name", _workstationName) + return nil +} + +// WorkstationName Getter +func (r TaobaoLarkIotOrderConfirmorderAPIRequest) GetWorkstationName() string { + return r._workstationName +} +// PaymentList Setter +// 支付方式 +func (r *TaobaoLarkIotOrderConfirmorderAPIRequest) SetPaymentList(_paymentList string) error { + r._paymentList = _paymentList + r.Set("payment_list", _paymentList) + return nil +} + +// PaymentList Getter +func (r TaobaoLarkIotOrderConfirmorderAPIRequest) GetPaymentList() string { + return r._paymentList +} +// PromotionList Setter +// 优惠列表 +func (r *TaobaoLarkIotOrderConfirmorderAPIRequest) SetPromotionList(_promotionList string) error { + r._promotionList = _promotionList + r.Set("promotion_list", _promotionList) + return nil +} + +// PromotionList Getter +func (r TaobaoLarkIotOrderConfirmorderAPIRequest) GetPromotionList() string { + return r._promotionList +} +// GoodsList Setter +// 卖品列表 +func (r *TaobaoLarkIotOrderConfirmorderAPIRequest) SetGoodsList(_goodsList string) error { + r._goodsList = _goodsList + r.Set("goods_list", _goodsList) + return nil +} + +// GoodsList Getter +func (r TaobaoLarkIotOrderConfirmorderAPIRequest) GetGoodsList() string { + return r._goodsList +} +// Mobile Setter +// 手机号 +func (r *TaobaoLarkIotOrderConfirmorderAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r TaobaoLarkIotOrderConfirmorderAPIRequest) GetMobile() string { + return r._mobile +} +// OperatorUserId Setter +// 管理员 +func (r *TaobaoLarkIotOrderConfirmorderAPIRequest) SetOperatorUserId(_operatorUserId string) error { + r._operatorUserId = _operatorUserId + r.Set("operator_user_id", _operatorUserId) + return nil +} + +// OperatorUserId Getter +func (r TaobaoLarkIotOrderConfirmorderAPIRequest) GetOperatorUserId() string { + return r._operatorUserId +} diff --git a/model/larkiot/TaobaoLarkIotOrderConfirmorderAPIResponse.go b/model/larkiot/TaobaoLarkIotOrderConfirmorderAPIResponse.go new file mode 100644 index 0000000000..81e198842e --- /dev/null +++ b/model/larkiot/TaobaoLarkIotOrderConfirmorderAPIResponse.go @@ -0,0 +1,27 @@ +package larkiot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +iot渠道卖品落单 API返回值 +taobao.lark.iot.order.confirmorder + +云智对接无人超市,接收无人超市订单信息 +*/ +type TaobaoLarkIotOrderConfirmorderAPIResponse struct { + model.CommonResponse + TaobaoLarkIotOrderConfirmorderAPIResponseModel +} + +// iot渠道卖品落单 成功返回结果 +type TaobaoLarkIotOrderConfirmorderAPIResponseModel struct { + XMLName xml.Name `xml:"lark_iot_order_confirmorder_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回下单结果 + Data *BizSingleResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/larkiot/TaobaoLarkIotOrderConfirmorderResponse.go b/model/larkiot/TaobaoLarkIotOrderConfirmorderResponse.go deleted file mode 100644 index bdfea052bc..0000000000 --- a/model/larkiot/TaobaoLarkIotOrderConfirmorderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package larkiot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -iot渠道卖品落单 API返回值 -taobao.lark.iot.order.confirmorder - -云智对接无人超市,接收无人超市订单信息 -*/ -type TaobaoLarkIotOrderConfirmorderAPIResponse struct { - model.CommonResponse - TaobaoLarkIotOrderConfirmorderResponse -} - -// iot渠道卖品落单 成功返回结果 -type TaobaoLarkIotOrderConfirmorderResponse struct { - XMLName xml.Name `xml:"lark_iot_order_confirmorder_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回下单结果 - Data *BizSingleResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/larkiot/TaobaoLarkIotOrderGetcinemasAPIRequest.go b/model/larkiot/TaobaoLarkIotOrderGetcinemasAPIRequest.go new file mode 100644 index 0000000000..d3b7dfe17f --- /dev/null +++ b/model/larkiot/TaobaoLarkIotOrderGetcinemasAPIRequest.go @@ -0,0 +1,52 @@ +package larkiot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取iot渠道开放的影院 API请求 +taobao.lark.iot.order.getcinemas + +iot渠道拉取有权限访问的影院 +*/ +type TaobaoLarkIotOrderGetcinemasAPIRequest struct { + model.Params + // 渠道编码 + _channelCode string +} + +// 初始化TaobaoLarkIotOrderGetcinemasAPIRequest对象 +func NewTaobaoLarkIotOrderGetcinemasRequest() *TaobaoLarkIotOrderGetcinemasAPIRequest{ + return &TaobaoLarkIotOrderGetcinemasAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLarkIotOrderGetcinemasAPIRequest) GetApiMethodName() string { + return "taobao.lark.iot.order.getcinemas" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLarkIotOrderGetcinemasAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChannelCode Setter +// 渠道编码 +func (r *TaobaoLarkIotOrderGetcinemasAPIRequest) SetChannelCode(_channelCode string) error { + r._channelCode = _channelCode + r.Set("channel_code", _channelCode) + return nil +} + +// ChannelCode Getter +func (r TaobaoLarkIotOrderGetcinemasAPIRequest) GetChannelCode() string { + return r._channelCode +} diff --git a/model/larkiot/TaobaoLarkIotOrderGetcinemasAPIResponse.go b/model/larkiot/TaobaoLarkIotOrderGetcinemasAPIResponse.go new file mode 100644 index 0000000000..23b8318564 --- /dev/null +++ b/model/larkiot/TaobaoLarkIotOrderGetcinemasAPIResponse.go @@ -0,0 +1,27 @@ +package larkiot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取iot渠道开放的影院 API返回值 +taobao.lark.iot.order.getcinemas + +iot渠道拉取有权限访问的影院 +*/ +type TaobaoLarkIotOrderGetcinemasAPIResponse struct { + model.CommonResponse + TaobaoLarkIotOrderGetcinemasAPIResponseModel +} + +// 获取iot渠道开放的影院 成功返回结果 +type TaobaoLarkIotOrderGetcinemasAPIResponseModel struct { + XMLName xml.Name `xml:"lark_iot_order_getcinemas_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 有权限的影院列表 + Data *BizListResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/larkiot/TaobaoLarkIotOrderGetcinemasResponse.go b/model/larkiot/TaobaoLarkIotOrderGetcinemasResponse.go deleted file mode 100644 index c36cba2155..0000000000 --- a/model/larkiot/TaobaoLarkIotOrderGetcinemasResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package larkiot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取iot渠道开放的影院 API返回值 -taobao.lark.iot.order.getcinemas - -iot渠道拉取有权限访问的影院 -*/ -type TaobaoLarkIotOrderGetcinemasAPIResponse struct { - model.CommonResponse - TaobaoLarkIotOrderGetcinemasResponse -} - -// 获取iot渠道开放的影院 成功返回结果 -type TaobaoLarkIotOrderGetcinemasResponse struct { - XMLName xml.Name `xml:"lark_iot_order_getcinemas_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 有权限的影院列表 - Data *BizListResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/larkiot/TaobaoLarkIotOrderGetgoodslistAPIRequest.go b/model/larkiot/TaobaoLarkIotOrderGetgoodslistAPIRequest.go new file mode 100644 index 0000000000..2dfa647f9a --- /dev/null +++ b/model/larkiot/TaobaoLarkIotOrderGetgoodslistAPIRequest.go @@ -0,0 +1,66 @@ +package larkiot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +iot渠道获取卖品信息 API请求 +taobao.lark.iot.order.getgoodslist + +iot无人超市服务商通过接口获取影院的可售卖品数据 +*/ +type TaobaoLarkIotOrderGetgoodslistAPIRequest struct { + model.Params + // 渠道编码 + _channelCode string + // 影院内码 + _cinemaLinkId string +} + +// 初始化TaobaoLarkIotOrderGetgoodslistAPIRequest对象 +func NewTaobaoLarkIotOrderGetgoodslistRequest() *TaobaoLarkIotOrderGetgoodslistAPIRequest{ + return &TaobaoLarkIotOrderGetgoodslistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLarkIotOrderGetgoodslistAPIRequest) GetApiMethodName() string { + return "taobao.lark.iot.order.getgoodslist" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLarkIotOrderGetgoodslistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChannelCode Setter +// 渠道编码 +func (r *TaobaoLarkIotOrderGetgoodslistAPIRequest) SetChannelCode(_channelCode string) error { + r._channelCode = _channelCode + r.Set("channel_code", _channelCode) + return nil +} + +// ChannelCode Getter +func (r TaobaoLarkIotOrderGetgoodslistAPIRequest) GetChannelCode() string { + return r._channelCode +} +// CinemaLinkId Setter +// 影院内码 +func (r *TaobaoLarkIotOrderGetgoodslistAPIRequest) SetCinemaLinkId(_cinemaLinkId string) error { + r._cinemaLinkId = _cinemaLinkId + r.Set("cinema_link_id", _cinemaLinkId) + return nil +} + +// CinemaLinkId Getter +func (r TaobaoLarkIotOrderGetgoodslistAPIRequest) GetCinemaLinkId() string { + return r._cinemaLinkId +} diff --git a/model/larkiot/TaobaoLarkIotOrderGetgoodslistAPIResponse.go b/model/larkiot/TaobaoLarkIotOrderGetgoodslistAPIResponse.go new file mode 100644 index 0000000000..f4a9acd509 --- /dev/null +++ b/model/larkiot/TaobaoLarkIotOrderGetgoodslistAPIResponse.go @@ -0,0 +1,27 @@ +package larkiot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +iot渠道获取卖品信息 API返回值 +taobao.lark.iot.order.getgoodslist + +iot无人超市服务商通过接口获取影院的可售卖品数据 +*/ +type TaobaoLarkIotOrderGetgoodslistAPIResponse struct { + model.CommonResponse + TaobaoLarkIotOrderGetgoodslistAPIResponseModel +} + +// iot渠道获取卖品信息 成功返回结果 +type TaobaoLarkIotOrderGetgoodslistAPIResponseModel struct { + XMLName xml.Name `xml:"lark_iot_order_getgoodslist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 卖品信息列表 + Data *BizSingleResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/larkiot/TaobaoLarkIotOrderGetgoodslistResponse.go b/model/larkiot/TaobaoLarkIotOrderGetgoodslistResponse.go deleted file mode 100644 index f01aafcf9f..0000000000 --- a/model/larkiot/TaobaoLarkIotOrderGetgoodslistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package larkiot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -iot渠道获取卖品信息 API返回值 -taobao.lark.iot.order.getgoodslist - -iot无人超市服务商通过接口获取影院的可售卖品数据 -*/ -type TaobaoLarkIotOrderGetgoodslistAPIResponse struct { - model.CommonResponse - TaobaoLarkIotOrderGetgoodslistResponse -} - -// iot渠道获取卖品信息 成功返回结果 -type TaobaoLarkIotOrderGetgoodslistResponse struct { - XMLName xml.Name `xml:"lark_iot_order_getgoodslist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 卖品信息列表 - Data *BizSingleResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/larkiot/TaobaoLarkPosBasedataGetworkstationAPIRequest.go b/model/larkiot/TaobaoLarkPosBasedataGetworkstationAPIRequest.go new file mode 100644 index 0000000000..221e9a900a --- /dev/null +++ b/model/larkiot/TaobaoLarkPosBasedataGetworkstationAPIRequest.go @@ -0,0 +1,66 @@ +package larkiot + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据影城id工作站和macId获取工作站 API请求 +taobao.lark.pos.basedata.getworkstation + +获取单独工作站 +*/ +type TaobaoLarkPosBasedataGetworkstationAPIRequest struct { + model.Params + // 影城cinemaLinkId + _cinemaLinkId string + // 终端编码 + _posCode string +} + +// 初始化TaobaoLarkPosBasedataGetworkstationAPIRequest对象 +func NewTaobaoLarkPosBasedataGetworkstationRequest() *TaobaoLarkPosBasedataGetworkstationAPIRequest{ + return &TaobaoLarkPosBasedataGetworkstationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLarkPosBasedataGetworkstationAPIRequest) GetApiMethodName() string { + return "taobao.lark.pos.basedata.getworkstation" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLarkPosBasedataGetworkstationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CinemaLinkId Setter +// 影城cinemaLinkId +func (r *TaobaoLarkPosBasedataGetworkstationAPIRequest) SetCinemaLinkId(_cinemaLinkId string) error { + r._cinemaLinkId = _cinemaLinkId + r.Set("cinema_link_id", _cinemaLinkId) + return nil +} + +// CinemaLinkId Getter +func (r TaobaoLarkPosBasedataGetworkstationAPIRequest) GetCinemaLinkId() string { + return r._cinemaLinkId +} +// PosCode Setter +// 终端编码 +func (r *TaobaoLarkPosBasedataGetworkstationAPIRequest) SetPosCode(_posCode string) error { + r._posCode = _posCode + r.Set("pos_code", _posCode) + return nil +} + +// PosCode Getter +func (r TaobaoLarkPosBasedataGetworkstationAPIRequest) GetPosCode() string { + return r._posCode +} diff --git a/model/larkiot/TaobaoLarkPosBasedataGetworkstationAPIResponse.go b/model/larkiot/TaobaoLarkPosBasedataGetworkstationAPIResponse.go new file mode 100644 index 0000000000..86baaea0cf --- /dev/null +++ b/model/larkiot/TaobaoLarkPosBasedataGetworkstationAPIResponse.go @@ -0,0 +1,27 @@ +package larkiot + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据影城id工作站和macId获取工作站 API返回值 +taobao.lark.pos.basedata.getworkstation + +获取单独工作站 +*/ +type TaobaoLarkPosBasedataGetworkstationAPIResponse struct { + model.CommonResponse + TaobaoLarkPosBasedataGetworkstationAPIResponseModel +} + +// 根据影城id工作站和macId获取工作站 成功返回结果 +type TaobaoLarkPosBasedataGetworkstationAPIResponseModel struct { + XMLName xml.Name `xml:"lark_pos_basedata_getworkstation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应结果 + Data string `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/larkiot/TaobaoLarkPosBasedataGetworkstationResponse.go b/model/larkiot/TaobaoLarkPosBasedataGetworkstationResponse.go deleted file mode 100644 index b6575c2fc0..0000000000 --- a/model/larkiot/TaobaoLarkPosBasedataGetworkstationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package larkiot - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据影城id工作站和macId获取工作站 API返回值 -taobao.lark.pos.basedata.getworkstation - -获取单独工作站 -*/ -type TaobaoLarkPosBasedataGetworkstationAPIResponse struct { - model.CommonResponse - TaobaoLarkPosBasedataGetworkstationResponse -} - -// 根据影城id工作站和macId获取工作站 成功返回结果 -type TaobaoLarkPosBasedataGetworkstationResponse struct { - XMLName xml.Name `xml:"lark_pos_basedata_getworkstation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应结果 - Data string `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/lbs/TaobaoLbsMessageUploadAPIRequest.go b/model/lbs/TaobaoLbsMessageUploadAPIRequest.go new file mode 100644 index 0000000000..c230c16684 --- /dev/null +++ b/model/lbs/TaobaoLbsMessageUploadAPIRequest.go @@ -0,0 +1,66 @@ +package lbs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +lbs数据采集 API请求 +taobao.lbs.message.upload + +lbs数据采集 +*/ +type TaobaoLbsMessageUploadAPIRequest struct { + model.Params + // 消息TOPIC + _topic string + // 消息体 json结构 + _body string +} + +// 初始化TaobaoLbsMessageUploadAPIRequest对象 +func NewTaobaoLbsMessageUploadRequest() *TaobaoLbsMessageUploadAPIRequest{ + return &TaobaoLbsMessageUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLbsMessageUploadAPIRequest) GetApiMethodName() string { + return "taobao.lbs.message.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLbsMessageUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Topic Setter +// 消息TOPIC +func (r *TaobaoLbsMessageUploadAPIRequest) SetTopic(_topic string) error { + r._topic = _topic + r.Set("topic", _topic) + return nil +} + +// Topic Getter +func (r TaobaoLbsMessageUploadAPIRequest) GetTopic() string { + return r._topic +} +// Body Setter +// 消息体 json结构 +func (r *TaobaoLbsMessageUploadAPIRequest) SetBody(_body string) error { + r._body = _body + r.Set("body", _body) + return nil +} + +// Body Getter +func (r TaobaoLbsMessageUploadAPIRequest) GetBody() string { + return r._body +} diff --git a/model/lbs/TaobaoLbsMessageUploadAPIResponse.go b/model/lbs/TaobaoLbsMessageUploadAPIResponse.go new file mode 100644 index 0000000000..2c574d5e63 --- /dev/null +++ b/model/lbs/TaobaoLbsMessageUploadAPIResponse.go @@ -0,0 +1,31 @@ +package lbs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +lbs数据采集 API返回值 +taobao.lbs.message.upload + +lbs数据采集 +*/ +type TaobaoLbsMessageUploadAPIResponse struct { + model.CommonResponse + TaobaoLbsMessageUploadAPIResponseModel +} + +// lbs数据采集 成功返回结果 +type TaobaoLbsMessageUploadAPIResponseModel struct { + XMLName xml.Name `xml:"lbs_message_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // subCode + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // subMsg + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/lbs/TaobaoLbsMessageUploadResponse.go b/model/lbs/TaobaoLbsMessageUploadResponse.go deleted file mode 100644 index 2567607e22..0000000000 --- a/model/lbs/TaobaoLbsMessageUploadResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package lbs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -lbs数据采集 API返回值 -taobao.lbs.message.upload - -lbs数据采集 -*/ -type TaobaoLbsMessageUploadAPIResponse struct { - model.CommonResponse - TaobaoLbsMessageUploadResponse -} - -// lbs数据采集 成功返回结果 -type TaobaoLbsMessageUploadResponse struct { - XMLName xml.Name `xml:"lbs_message_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // subCode - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // subMsg - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/legalcase/AlibabaLegalCaseCommonEnumdataAPIRequest.go b/model/legalcase/AlibabaLegalCaseCommonEnumdataAPIRequest.go new file mode 100644 index 0000000000..33d53e1b1b --- /dev/null +++ b/model/legalcase/AlibabaLegalCaseCommonEnumdataAPIRequest.go @@ -0,0 +1,66 @@ +package legalcase + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取通用枚举值接口 API请求 +alibaba.legal.case.common.enumdata + +获取通用枚举值接口 +*/ +type AlibabaLegalCaseCommonEnumdataAPIRequest struct { + model.Params + // bu + _key string + // 语言 + _lang string +} + +// 初始化AlibabaLegalCaseCommonEnumdataAPIRequest对象 +func NewAlibabaLegalCaseCommonEnumdataRequest() *AlibabaLegalCaseCommonEnumdataAPIRequest{ + return &AlibabaLegalCaseCommonEnumdataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegalCaseCommonEnumdataAPIRequest) GetApiMethodName() string { + return "alibaba.legal.case.common.enumdata" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegalCaseCommonEnumdataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Key Setter +// bu +func (r *AlibabaLegalCaseCommonEnumdataAPIRequest) SetKey(_key string) error { + r._key = _key + r.Set("key", _key) + return nil +} + +// Key Getter +func (r AlibabaLegalCaseCommonEnumdataAPIRequest) GetKey() string { + return r._key +} +// Lang Setter +// 语言 +func (r *AlibabaLegalCaseCommonEnumdataAPIRequest) SetLang(_lang string) error { + r._lang = _lang + r.Set("lang", _lang) + return nil +} + +// Lang Getter +func (r AlibabaLegalCaseCommonEnumdataAPIRequest) GetLang() string { + return r._lang +} diff --git a/model/legalcase/AlibabaLegalCaseCommonEnumdataAPIResponse.go b/model/legalcase/AlibabaLegalCaseCommonEnumdataAPIResponse.go new file mode 100644 index 0000000000..5f3c40f1cb --- /dev/null +++ b/model/legalcase/AlibabaLegalCaseCommonEnumdataAPIResponse.go @@ -0,0 +1,27 @@ +package legalcase + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取通用枚举值接口 API返回值 +alibaba.legal.case.common.enumdata + +获取通用枚举值接口 +*/ +type AlibabaLegalCaseCommonEnumdataAPIResponse struct { + model.CommonResponse + AlibabaLegalCaseCommonEnumdataAPIResponseModel +} + +// 获取通用枚举值接口 成功返回结果 +type AlibabaLegalCaseCommonEnumdataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_legal_case_common_enumdata_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/legalcase/AlibabaLegalCaseCommonEnumdataResponse.go b/model/legalcase/AlibabaLegalCaseCommonEnumdataResponse.go deleted file mode 100644 index 5214b1adde..0000000000 --- a/model/legalcase/AlibabaLegalCaseCommonEnumdataResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package legalcase - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取通用枚举值接口 API返回值 -alibaba.legal.case.common.enumdata - -获取通用枚举值接口 -*/ -type AlibabaLegalCaseCommonEnumdataAPIResponse struct { - model.CommonResponse - AlibabaLegalCaseCommonEnumdataResponse -} - -// 获取通用枚举值接口 成功返回结果 -type AlibabaLegalCaseCommonEnumdataResponse struct { - XMLName xml.Name `xml:"alibaba_legal_case_common_enumdata_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/legalcase/AlibabaLegalCaseCommonNoticeAPIRequest.go b/model/legalcase/AlibabaLegalCaseCommonNoticeAPIRequest.go new file mode 100644 index 0000000000..8a17cddb87 --- /dev/null +++ b/model/legalcase/AlibabaLegalCaseCommonNoticeAPIRequest.go @@ -0,0 +1,94 @@ +package legalcase + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +消息通知 API请求 +alibaba.legal.case.common.notice + +同步通知给诉讼系统 +*/ +type AlibabaLegalCaseCommonNoticeAPIRequest struct { + model.Params + // 案件id + _caseId int64 + // 委托id + _entrustId int64 + // adminicular_evidence(补充证据)risk_early_warning(风险预警) + _type string + // 消息模型 + _noticeModel *NoticeModel +} + +// 初始化AlibabaLegalCaseCommonNoticeAPIRequest对象 +func NewAlibabaLegalCaseCommonNoticeRequest() *AlibabaLegalCaseCommonNoticeAPIRequest{ + return &AlibabaLegalCaseCommonNoticeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegalCaseCommonNoticeAPIRequest) GetApiMethodName() string { + return "alibaba.legal.case.common.notice" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegalCaseCommonNoticeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CaseId Setter +// 案件id +func (r *AlibabaLegalCaseCommonNoticeAPIRequest) SetCaseId(_caseId int64) error { + r._caseId = _caseId + r.Set("case_id", _caseId) + return nil +} + +// CaseId Getter +func (r AlibabaLegalCaseCommonNoticeAPIRequest) GetCaseId() int64 { + return r._caseId +} +// EntrustId Setter +// 委托id +func (r *AlibabaLegalCaseCommonNoticeAPIRequest) SetEntrustId(_entrustId int64) error { + r._entrustId = _entrustId + r.Set("entrust_id", _entrustId) + return nil +} + +// EntrustId Getter +func (r AlibabaLegalCaseCommonNoticeAPIRequest) GetEntrustId() int64 { + return r._entrustId +} +// Type Setter +// adminicular_evidence(补充证据)risk_early_warning(风险预警) +func (r *AlibabaLegalCaseCommonNoticeAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaLegalCaseCommonNoticeAPIRequest) GetType() string { + return r._type +} +// NoticeModel Setter +// 消息模型 +func (r *AlibabaLegalCaseCommonNoticeAPIRequest) SetNoticeModel(_noticeModel *NoticeModel) error { + r._noticeModel = _noticeModel + r.Set("notice_model", _noticeModel) + return nil +} + +// NoticeModel Getter +func (r AlibabaLegalCaseCommonNoticeAPIRequest) GetNoticeModel() *NoticeModel { + return r._noticeModel +} diff --git a/model/legalcase/AlibabaLegalCaseCommonNoticeAPIResponse.go b/model/legalcase/AlibabaLegalCaseCommonNoticeAPIResponse.go new file mode 100644 index 0000000000..15755bc398 --- /dev/null +++ b/model/legalcase/AlibabaLegalCaseCommonNoticeAPIResponse.go @@ -0,0 +1,33 @@ +package legalcase + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +消息通知 API返回值 +alibaba.legal.case.common.notice + +同步通知给诉讼系统 +*/ +type AlibabaLegalCaseCommonNoticeAPIResponse struct { + model.CommonResponse + AlibabaLegalCaseCommonNoticeAPIResponseModel +} + +// 消息通知 成功返回结果 +type AlibabaLegalCaseCommonNoticeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_legal_case_common_notice_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // error + Errcode string `json:"errcode,omitempty" xml:"errcode,omitempty"` + // content + Content string `json:"content,omitempty" xml:"content,omitempty"` + // msg + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/legalcase/AlibabaLegalCaseCommonNoticeResponse.go b/model/legalcase/AlibabaLegalCaseCommonNoticeResponse.go deleted file mode 100644 index ea180d4291..0000000000 --- a/model/legalcase/AlibabaLegalCaseCommonNoticeResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package legalcase - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -消息通知 API返回值 -alibaba.legal.case.common.notice - -同步通知给诉讼系统 -*/ -type AlibabaLegalCaseCommonNoticeAPIResponse struct { - model.CommonResponse - AlibabaLegalCaseCommonNoticeResponse -} - -// 消息通知 成功返回结果 -type AlibabaLegalCaseCommonNoticeResponse struct { - XMLName xml.Name `xml:"alibaba_legal_case_common_notice_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // error - Errcode string `json:"errcode,omitempty" xml:"errcode,omitempty"` - // content - Content string `json:"content,omitempty" xml:"content,omitempty"` - // msg - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/legalcase/AlibabaLegalCaseCourtTimeUpdateAPIRequest.go b/model/legalcase/AlibabaLegalCaseCourtTimeUpdateAPIRequest.go new file mode 100644 index 0000000000..7a2188bd2c --- /dev/null +++ b/model/legalcase/AlibabaLegalCaseCourtTimeUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package legalcase + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +开庭时间变更 API请求 +alibaba.legal.case.court.time.update + +修改案件的开庭时间 +*/ +type AlibabaLegalCaseCourtTimeUpdateAPIRequest struct { + model.Params + // 案件id + _caseId int64 + // 委托id + _entrustId int64 + // 开庭时间 + _courtTime string +} + +// 初始化AlibabaLegalCaseCourtTimeUpdateAPIRequest对象 +func NewAlibabaLegalCaseCourtTimeUpdateRequest() *AlibabaLegalCaseCourtTimeUpdateAPIRequest{ + return &AlibabaLegalCaseCourtTimeUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegalCaseCourtTimeUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.legal.case.court.time.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegalCaseCourtTimeUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CaseId Setter +// 案件id +func (r *AlibabaLegalCaseCourtTimeUpdateAPIRequest) SetCaseId(_caseId int64) error { + r._caseId = _caseId + r.Set("case_id", _caseId) + return nil +} + +// CaseId Getter +func (r AlibabaLegalCaseCourtTimeUpdateAPIRequest) GetCaseId() int64 { + return r._caseId +} +// EntrustId Setter +// 委托id +func (r *AlibabaLegalCaseCourtTimeUpdateAPIRequest) SetEntrustId(_entrustId int64) error { + r._entrustId = _entrustId + r.Set("entrust_id", _entrustId) + return nil +} + +// EntrustId Getter +func (r AlibabaLegalCaseCourtTimeUpdateAPIRequest) GetEntrustId() int64 { + return r._entrustId +} +// CourtTime Setter +// 开庭时间 +func (r *AlibabaLegalCaseCourtTimeUpdateAPIRequest) SetCourtTime(_courtTime string) error { + r._courtTime = _courtTime + r.Set("court_time", _courtTime) + return nil +} + +// CourtTime Getter +func (r AlibabaLegalCaseCourtTimeUpdateAPIRequest) GetCourtTime() string { + return r._courtTime +} diff --git a/model/legalcase/AlibabaLegalCaseCourtTimeUpdateAPIResponse.go b/model/legalcase/AlibabaLegalCaseCourtTimeUpdateAPIResponse.go new file mode 100644 index 0000000000..986467f2e4 --- /dev/null +++ b/model/legalcase/AlibabaLegalCaseCourtTimeUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package legalcase + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +开庭时间变更 API返回值 +alibaba.legal.case.court.time.update + +修改案件的开庭时间 +*/ +type AlibabaLegalCaseCourtTimeUpdateAPIResponse struct { + model.CommonResponse + AlibabaLegalCaseCourtTimeUpdateAPIResponseModel +} + +// 开庭时间变更 成功返回结果 +type AlibabaLegalCaseCourtTimeUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_legal_case_court_time_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/legalcase/AlibabaLegalCaseCourtTimeUpdateResponse.go b/model/legalcase/AlibabaLegalCaseCourtTimeUpdateResponse.go deleted file mode 100644 index 25e4827672..0000000000 --- a/model/legalcase/AlibabaLegalCaseCourtTimeUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package legalcase - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -开庭时间变更 API返回值 -alibaba.legal.case.court.time.update - -修改案件的开庭时间 -*/ -type AlibabaLegalCaseCourtTimeUpdateAPIResponse struct { - model.CommonResponse - AlibabaLegalCaseCourtTimeUpdateResponse -} - -// 开庭时间变更 成功返回结果 -type AlibabaLegalCaseCourtTimeUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_legal_case_court_time_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/legalcase/AlibabaLegalCaseEntrustCallbackAPIRequest.go b/model/legalcase/AlibabaLegalCaseEntrustCallbackAPIRequest.go new file mode 100644 index 0000000000..77bf0d9d16 --- /dev/null +++ b/model/legalcase/AlibabaLegalCaseEntrustCallbackAPIRequest.go @@ -0,0 +1,66 @@ +package legalcase + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +委托回调接口 API请求 +alibaba.legal.case.entrust.callback + +委托回调接口 +*/ +type AlibabaLegalCaseEntrustCallbackAPIRequest struct { + model.Params + // 委托id + _entrustId int64 + // 案件id + _caseId int64 +} + +// 初始化AlibabaLegalCaseEntrustCallbackAPIRequest对象 +func NewAlibabaLegalCaseEntrustCallbackRequest() *AlibabaLegalCaseEntrustCallbackAPIRequest{ + return &AlibabaLegalCaseEntrustCallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegalCaseEntrustCallbackAPIRequest) GetApiMethodName() string { + return "alibaba.legal.case.entrust.callback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegalCaseEntrustCallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EntrustId Setter +// 委托id +func (r *AlibabaLegalCaseEntrustCallbackAPIRequest) SetEntrustId(_entrustId int64) error { + r._entrustId = _entrustId + r.Set("entrust_id", _entrustId) + return nil +} + +// EntrustId Getter +func (r AlibabaLegalCaseEntrustCallbackAPIRequest) GetEntrustId() int64 { + return r._entrustId +} +// CaseId Setter +// 案件id +func (r *AlibabaLegalCaseEntrustCallbackAPIRequest) SetCaseId(_caseId int64) error { + r._caseId = _caseId + r.Set("case_id", _caseId) + return nil +} + +// CaseId Getter +func (r AlibabaLegalCaseEntrustCallbackAPIRequest) GetCaseId() int64 { + return r._caseId +} diff --git a/model/legalcase/AlibabaLegalCaseEntrustCallbackAPIResponse.go b/model/legalcase/AlibabaLegalCaseEntrustCallbackAPIResponse.go new file mode 100644 index 0000000000..3605203a6f --- /dev/null +++ b/model/legalcase/AlibabaLegalCaseEntrustCallbackAPIResponse.go @@ -0,0 +1,31 @@ +package legalcase + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +委托回调接口 API返回值 +alibaba.legal.case.entrust.callback + +委托回调接口 +*/ +type AlibabaLegalCaseEntrustCallbackAPIResponse struct { + model.CommonResponse + AlibabaLegalCaseEntrustCallbackAPIResponseModel +} + +// 委托回调接口 成功返回结果 +type AlibabaLegalCaseEntrustCallbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_legal_case_entrust_callback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // void + Content string `json:"content,omitempty" xml:"content,omitempty"` + // error_code + ECode string `json:"e_code,omitempty" xml:"e_code,omitempty"` + // error_msg + EMsg string `json:"e_msg,omitempty" xml:"e_msg,omitempty"` +} diff --git a/model/legalcase/AlibabaLegalCaseEntrustCallbackResponse.go b/model/legalcase/AlibabaLegalCaseEntrustCallbackResponse.go deleted file mode 100644 index b98f0b304d..0000000000 --- a/model/legalcase/AlibabaLegalCaseEntrustCallbackResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package legalcase - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -委托回调接口 API返回值 -alibaba.legal.case.entrust.callback - -委托回调接口 -*/ -type AlibabaLegalCaseEntrustCallbackAPIResponse struct { - model.CommonResponse - AlibabaLegalCaseEntrustCallbackResponse -} - -// 委托回调接口 成功返回结果 -type AlibabaLegalCaseEntrustCallbackResponse struct { - XMLName xml.Name `xml:"alibaba_legal_case_entrust_callback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // void - Content string `json:"content,omitempty" xml:"content,omitempty"` - // error_code - ECode string `json:"e_code,omitempty" xml:"e_code,omitempty"` - // error_msg - EMsg string `json:"e_msg,omitempty" xml:"e_msg,omitempty"` -} diff --git a/model/legalcase/AlibabaLegalCaseEntrustGetAPIRequest.go b/model/legalcase/AlibabaLegalCaseEntrustGetAPIRequest.go new file mode 100644 index 0000000000..a00e575ef0 --- /dev/null +++ b/model/legalcase/AlibabaLegalCaseEntrustGetAPIRequest.go @@ -0,0 +1,52 @@ +package legalcase + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +委托 API请求 +alibaba.legal.case.entrust.get + +获取委托案件的基本信息 +*/ +type AlibabaLegalCaseEntrustGetAPIRequest struct { + model.Params + // 委托id + _entrustId int64 +} + +// 初始化AlibabaLegalCaseEntrustGetAPIRequest对象 +func NewAlibabaLegalCaseEntrustGetRequest() *AlibabaLegalCaseEntrustGetAPIRequest{ + return &AlibabaLegalCaseEntrustGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegalCaseEntrustGetAPIRequest) GetApiMethodName() string { + return "alibaba.legal.case.entrust.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegalCaseEntrustGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EntrustId Setter +// 委托id +func (r *AlibabaLegalCaseEntrustGetAPIRequest) SetEntrustId(_entrustId int64) error { + r._entrustId = _entrustId + r.Set("entrust_id", _entrustId) + return nil +} + +// EntrustId Getter +func (r AlibabaLegalCaseEntrustGetAPIRequest) GetEntrustId() int64 { + return r._entrustId +} diff --git a/model/legalcase/AlibabaLegalCaseEntrustGetAPIResponse.go b/model/legalcase/AlibabaLegalCaseEntrustGetAPIResponse.go new file mode 100644 index 0000000000..8f0f29707b --- /dev/null +++ b/model/legalcase/AlibabaLegalCaseEntrustGetAPIResponse.go @@ -0,0 +1,27 @@ +package legalcase + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +委托 API返回值 +alibaba.legal.case.entrust.get + +获取委托案件的基本信息 +*/ +type AlibabaLegalCaseEntrustGetAPIResponse struct { + model.CommonResponse + AlibabaLegalCaseEntrustGetAPIResponseModel +} + +// 委托 成功返回结果 +type AlibabaLegalCaseEntrustGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_legal_case_entrust_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/legalcase/AlibabaLegalCaseEntrustGetResponse.go b/model/legalcase/AlibabaLegalCaseEntrustGetResponse.go deleted file mode 100644 index 6776c09b63..0000000000 --- a/model/legalcase/AlibabaLegalCaseEntrustGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package legalcase - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -委托 API返回值 -alibaba.legal.case.entrust.get - -获取委托案件的基本信息 -*/ -type AlibabaLegalCaseEntrustGetAPIResponse struct { - model.CommonResponse - AlibabaLegalCaseEntrustGetResponse -} - -// 委托 成功返回结果 -type AlibabaLegalCaseEntrustGetResponse struct { - XMLName xml.Name `xml:"alibaba_legal_case_entrust_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/legalcase/AlibabaLegalCaseMediateRecordSaveAPIRequest.go b/model/legalcase/AlibabaLegalCaseMediateRecordSaveAPIRequest.go new file mode 100644 index 0000000000..abeb72ab5e --- /dev/null +++ b/model/legalcase/AlibabaLegalCaseMediateRecordSaveAPIRequest.go @@ -0,0 +1,80 @@ +package legalcase + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增调解结果 API请求 +alibaba.legal.case.mediate.record.save + +增加调解沟通记录 +*/ +type AlibabaLegalCaseMediateRecordSaveAPIRequest struct { + model.Params + // 案件id + _caseId int64 + // 委托id + _entrustId int64 + // 记录 + _record *MediateCommunicationModel +} + +// 初始化AlibabaLegalCaseMediateRecordSaveAPIRequest对象 +func NewAlibabaLegalCaseMediateRecordSaveRequest() *AlibabaLegalCaseMediateRecordSaveAPIRequest{ + return &AlibabaLegalCaseMediateRecordSaveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegalCaseMediateRecordSaveAPIRequest) GetApiMethodName() string { + return "alibaba.legal.case.mediate.record.save" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegalCaseMediateRecordSaveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CaseId Setter +// 案件id +func (r *AlibabaLegalCaseMediateRecordSaveAPIRequest) SetCaseId(_caseId int64) error { + r._caseId = _caseId + r.Set("case_id", _caseId) + return nil +} + +// CaseId Getter +func (r AlibabaLegalCaseMediateRecordSaveAPIRequest) GetCaseId() int64 { + return r._caseId +} +// EntrustId Setter +// 委托id +func (r *AlibabaLegalCaseMediateRecordSaveAPIRequest) SetEntrustId(_entrustId int64) error { + r._entrustId = _entrustId + r.Set("entrust_id", _entrustId) + return nil +} + +// EntrustId Getter +func (r AlibabaLegalCaseMediateRecordSaveAPIRequest) GetEntrustId() int64 { + return r._entrustId +} +// Record Setter +// 记录 +func (r *AlibabaLegalCaseMediateRecordSaveAPIRequest) SetRecord(_record *MediateCommunicationModel) error { + r._record = _record + r.Set("record", _record) + return nil +} + +// Record Getter +func (r AlibabaLegalCaseMediateRecordSaveAPIRequest) GetRecord() *MediateCommunicationModel { + return r._record +} diff --git a/model/legalcase/AlibabaLegalCaseMediateRecordSaveAPIResponse.go b/model/legalcase/AlibabaLegalCaseMediateRecordSaveAPIResponse.go new file mode 100644 index 0000000000..04a2d97f6b --- /dev/null +++ b/model/legalcase/AlibabaLegalCaseMediateRecordSaveAPIResponse.go @@ -0,0 +1,27 @@ +package legalcase + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增调解结果 API返回值 +alibaba.legal.case.mediate.record.save + +增加调解沟通记录 +*/ +type AlibabaLegalCaseMediateRecordSaveAPIResponse struct { + model.CommonResponse + AlibabaLegalCaseMediateRecordSaveAPIResponseModel +} + +// 新增调解结果 成功返回结果 +type AlibabaLegalCaseMediateRecordSaveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_legal_case_mediate_record_save_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/legalcase/AlibabaLegalCaseMediateRecordSaveResponse.go b/model/legalcase/AlibabaLegalCaseMediateRecordSaveResponse.go deleted file mode 100644 index 609c7e1d99..0000000000 --- a/model/legalcase/AlibabaLegalCaseMediateRecordSaveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package legalcase - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增调解结果 API返回值 -alibaba.legal.case.mediate.record.save - -增加调解沟通记录 -*/ -type AlibabaLegalCaseMediateRecordSaveAPIResponse struct { - model.CommonResponse - AlibabaLegalCaseMediateRecordSaveResponse -} - -// 新增调解结果 成功返回结果 -type AlibabaLegalCaseMediateRecordSaveResponse struct { - XMLName xml.Name `xml:"alibaba_legal_case_mediate_record_save_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/legalcase/AlibabaLegalCaseStandpointFeedbackAPIRequest.go b/model/legalcase/AlibabaLegalCaseStandpointFeedbackAPIRequest.go new file mode 100644 index 0000000000..6fee414d5b --- /dev/null +++ b/model/legalcase/AlibabaLegalCaseStandpointFeedbackAPIRequest.go @@ -0,0 +1,52 @@ +package legalcase + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增或更新 反馈口径(采纳口径/不采纳口径) API请求 +alibaba.legal.case.standpoint.feedback + +新增或更新 反馈口径(采纳口径/不采纳口径) +*/ +type AlibabaLegalCaseStandpointFeedbackAPIRequest struct { + model.Params + // 反馈对象 + _feedbackRequestModel *FeedbackRequestModel +} + +// 初始化AlibabaLegalCaseStandpointFeedbackAPIRequest对象 +func NewAlibabaLegalCaseStandpointFeedbackRequest() *AlibabaLegalCaseStandpointFeedbackAPIRequest{ + return &AlibabaLegalCaseStandpointFeedbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegalCaseStandpointFeedbackAPIRequest) GetApiMethodName() string { + return "alibaba.legal.case.standpoint.feedback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegalCaseStandpointFeedbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FeedbackRequestModel Setter +// 反馈对象 +func (r *AlibabaLegalCaseStandpointFeedbackAPIRequest) SetFeedbackRequestModel(_feedbackRequestModel *FeedbackRequestModel) error { + r._feedbackRequestModel = _feedbackRequestModel + r.Set("feedback_request_model", _feedbackRequestModel) + return nil +} + +// FeedbackRequestModel Getter +func (r AlibabaLegalCaseStandpointFeedbackAPIRequest) GetFeedbackRequestModel() *FeedbackRequestModel { + return r._feedbackRequestModel +} diff --git a/model/legalcase/AlibabaLegalCaseStandpointFeedbackAPIResponse.go b/model/legalcase/AlibabaLegalCaseStandpointFeedbackAPIResponse.go new file mode 100644 index 0000000000..b09daac2ed --- /dev/null +++ b/model/legalcase/AlibabaLegalCaseStandpointFeedbackAPIResponse.go @@ -0,0 +1,33 @@ +package legalcase + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增或更新 反馈口径(采纳口径/不采纳口径) API返回值 +alibaba.legal.case.standpoint.feedback + +新增或更新 反馈口径(采纳口径/不采纳口径) +*/ +type AlibabaLegalCaseStandpointFeedbackAPIResponse struct { + model.CommonResponse + AlibabaLegalCaseStandpointFeedbackAPIResponseModel +} + +// 新增或更新 反馈口径(采纳口径/不采纳口径) 成功返回结果 +type AlibabaLegalCaseStandpointFeedbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_legal_case_standpoint_feedback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误编码 + Errcode string `json:"errcode,omitempty" xml:"errcode,omitempty"` + // 成功失败 true/false + Content bool `json:"content,omitempty" xml:"content,omitempty"` + // 错误信息描述 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/legalcase/AlibabaLegalCaseStandpointFeedbackResponse.go b/model/legalcase/AlibabaLegalCaseStandpointFeedbackResponse.go deleted file mode 100644 index af10138d05..0000000000 --- a/model/legalcase/AlibabaLegalCaseStandpointFeedbackResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package legalcase - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增或更新 反馈口径(采纳口径/不采纳口径) API返回值 -alibaba.legal.case.standpoint.feedback - -新增或更新 反馈口径(采纳口径/不采纳口径) -*/ -type AlibabaLegalCaseStandpointFeedbackAPIResponse struct { - model.CommonResponse - AlibabaLegalCaseStandpointFeedbackResponse -} - -// 新增或更新 反馈口径(采纳口径/不采纳口径) 成功返回结果 -type AlibabaLegalCaseStandpointFeedbackResponse struct { - XMLName xml.Name `xml:"alibaba_legal_case_standpoint_feedback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误编码 - Errcode string `json:"errcode,omitempty" xml:"errcode,omitempty"` - // 成功失败 true/false - Content bool `json:"content,omitempty" xml:"content,omitempty"` - // 错误信息描述 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/legalcase/AlibabaLegalCaseStandpointQueryrefAPIRequest.go b/model/legalcase/AlibabaLegalCaseStandpointQueryrefAPIRequest.go new file mode 100644 index 0000000000..e90b7b62eb --- /dev/null +++ b/model/legalcase/AlibabaLegalCaseStandpointQueryrefAPIRequest.go @@ -0,0 +1,80 @@ +package legalcase + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询推送口径信息 API请求 +alibaba.legal.case.standpoint.queryref + +查询推送口径信息 +*/ +type AlibabaLegalCaseStandpointQueryrefAPIRequest struct { + model.Params + // 案件id + _suitId int64 + // 委托id + _entrustId int64 + // 查询的口径id列表 + _standpointIds []int64 +} + +// 初始化AlibabaLegalCaseStandpointQueryrefAPIRequest对象 +func NewAlibabaLegalCaseStandpointQueryrefRequest() *AlibabaLegalCaseStandpointQueryrefAPIRequest{ + return &AlibabaLegalCaseStandpointQueryrefAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegalCaseStandpointQueryrefAPIRequest) GetApiMethodName() string { + return "alibaba.legal.case.standpoint.queryref" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegalCaseStandpointQueryrefAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SuitId Setter +// 案件id +func (r *AlibabaLegalCaseStandpointQueryrefAPIRequest) SetSuitId(_suitId int64) error { + r._suitId = _suitId + r.Set("suit_id", _suitId) + return nil +} + +// SuitId Getter +func (r AlibabaLegalCaseStandpointQueryrefAPIRequest) GetSuitId() int64 { + return r._suitId +} +// EntrustId Setter +// 委托id +func (r *AlibabaLegalCaseStandpointQueryrefAPIRequest) SetEntrustId(_entrustId int64) error { + r._entrustId = _entrustId + r.Set("entrust_id", _entrustId) + return nil +} + +// EntrustId Getter +func (r AlibabaLegalCaseStandpointQueryrefAPIRequest) GetEntrustId() int64 { + return r._entrustId +} +// StandpointIds Setter +// 查询的口径id列表 +func (r *AlibabaLegalCaseStandpointQueryrefAPIRequest) SetStandpointIds(_standpointIds []int64) error { + r._standpointIds = _standpointIds + r.Set("standpoint_ids", _standpointIds) + return nil +} + +// StandpointIds Getter +func (r AlibabaLegalCaseStandpointQueryrefAPIRequest) GetStandpointIds() []int64 { + return r._standpointIds +} diff --git a/model/legalcase/AlibabaLegalCaseStandpointQueryrefAPIResponse.go b/model/legalcase/AlibabaLegalCaseStandpointQueryrefAPIResponse.go new file mode 100644 index 0000000000..3e210efecc --- /dev/null +++ b/model/legalcase/AlibabaLegalCaseStandpointQueryrefAPIResponse.go @@ -0,0 +1,27 @@ +package legalcase + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询推送口径信息 API返回值 +alibaba.legal.case.standpoint.queryref + +查询推送口径信息 +*/ +type AlibabaLegalCaseStandpointQueryrefAPIResponse struct { + model.CommonResponse + AlibabaLegalCaseStandpointQueryrefAPIResponseModel +} + +// 查询推送口径信息 成功返回结果 +type AlibabaLegalCaseStandpointQueryrefAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_legal_case_standpoint_queryref_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/legalcase/AlibabaLegalCaseStandpointQueryrefResponse.go b/model/legalcase/AlibabaLegalCaseStandpointQueryrefResponse.go deleted file mode 100644 index 98b8e39fd7..0000000000 --- a/model/legalcase/AlibabaLegalCaseStandpointQueryrefResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package legalcase - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询推送口径信息 API返回值 -alibaba.legal.case.standpoint.queryref - -查询推送口径信息 -*/ -type AlibabaLegalCaseStandpointQueryrefAPIResponse struct { - model.CommonResponse - AlibabaLegalCaseStandpointQueryrefResponse -} - -// 查询推送口径信息 成功返回结果 -type AlibabaLegalCaseStandpointQueryrefResponse struct { - XMLName xml.Name `xml:"alibaba_legal_case_standpoint_queryref_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/legalcase/AlibabaLegalCaseStandpointSavestandpointAPIRequest.go b/model/legalcase/AlibabaLegalCaseStandpointSavestandpointAPIRequest.go new file mode 100644 index 0000000000..85ebc9b682 --- /dev/null +++ b/model/legalcase/AlibabaLegalCaseStandpointSavestandpointAPIRequest.go @@ -0,0 +1,108 @@ +package legalcase + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增反馈口径 API请求 +alibaba.legal.case.standpoint.savestandpoint + +新增反馈口径 ,从外部接受反馈的口径 +*/ +type AlibabaLegalCaseStandpointSavestandpointAPIRequest struct { + model.Params + // 答辩口径 + _defenseCaliber string + // 口径描述 + _standpointDesc string + // 案件id + _suitId int64 + // 委托id + _entrustId int64 + // 提交人 + _submitPeople string +} + +// 初始化AlibabaLegalCaseStandpointSavestandpointAPIRequest对象 +func NewAlibabaLegalCaseStandpointSavestandpointRequest() *AlibabaLegalCaseStandpointSavestandpointAPIRequest{ + return &AlibabaLegalCaseStandpointSavestandpointAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegalCaseStandpointSavestandpointAPIRequest) GetApiMethodName() string { + return "alibaba.legal.case.standpoint.savestandpoint" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegalCaseStandpointSavestandpointAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DefenseCaliber Setter +// 答辩口径 +func (r *AlibabaLegalCaseStandpointSavestandpointAPIRequest) SetDefenseCaliber(_defenseCaliber string) error { + r._defenseCaliber = _defenseCaliber + r.Set("defense_caliber", _defenseCaliber) + return nil +} + +// DefenseCaliber Getter +func (r AlibabaLegalCaseStandpointSavestandpointAPIRequest) GetDefenseCaliber() string { + return r._defenseCaliber +} +// StandpointDesc Setter +// 口径描述 +func (r *AlibabaLegalCaseStandpointSavestandpointAPIRequest) SetStandpointDesc(_standpointDesc string) error { + r._standpointDesc = _standpointDesc + r.Set("standpoint_desc", _standpointDesc) + return nil +} + +// StandpointDesc Getter +func (r AlibabaLegalCaseStandpointSavestandpointAPIRequest) GetStandpointDesc() string { + return r._standpointDesc +} +// SuitId Setter +// 案件id +func (r *AlibabaLegalCaseStandpointSavestandpointAPIRequest) SetSuitId(_suitId int64) error { + r._suitId = _suitId + r.Set("suit_id", _suitId) + return nil +} + +// SuitId Getter +func (r AlibabaLegalCaseStandpointSavestandpointAPIRequest) GetSuitId() int64 { + return r._suitId +} +// EntrustId Setter +// 委托id +func (r *AlibabaLegalCaseStandpointSavestandpointAPIRequest) SetEntrustId(_entrustId int64) error { + r._entrustId = _entrustId + r.Set("entrust_id", _entrustId) + return nil +} + +// EntrustId Getter +func (r AlibabaLegalCaseStandpointSavestandpointAPIRequest) GetEntrustId() int64 { + return r._entrustId +} +// SubmitPeople Setter +// 提交人 +func (r *AlibabaLegalCaseStandpointSavestandpointAPIRequest) SetSubmitPeople(_submitPeople string) error { + r._submitPeople = _submitPeople + r.Set("submit_people", _submitPeople) + return nil +} + +// SubmitPeople Getter +func (r AlibabaLegalCaseStandpointSavestandpointAPIRequest) GetSubmitPeople() string { + return r._submitPeople +} diff --git a/model/legalcase/AlibabaLegalCaseStandpointSavestandpointAPIResponse.go b/model/legalcase/AlibabaLegalCaseStandpointSavestandpointAPIResponse.go new file mode 100644 index 0000000000..f924e5f23e --- /dev/null +++ b/model/legalcase/AlibabaLegalCaseStandpointSavestandpointAPIResponse.go @@ -0,0 +1,33 @@ +package legalcase + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增反馈口径 API返回值 +alibaba.legal.case.standpoint.savestandpoint + +新增反馈口径 ,从外部接受反馈的口径 +*/ +type AlibabaLegalCaseStandpointSavestandpointAPIResponse struct { + model.CommonResponse + AlibabaLegalCaseStandpointSavestandpointAPIResponseModel +} + +// 新增反馈口径 成功返回结果 +type AlibabaLegalCaseStandpointSavestandpointAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_legal_case_standpoint_savestandpoint_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误编码 + Errcode string `json:"errcode,omitempty" xml:"errcode,omitempty"` + // 反馈的新增口径id + Content int64 `json:"content,omitempty" xml:"content,omitempty"` + // 错误描述 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/legalcase/AlibabaLegalCaseStandpointSavestandpointResponse.go b/model/legalcase/AlibabaLegalCaseStandpointSavestandpointResponse.go deleted file mode 100644 index 97e068841d..0000000000 --- a/model/legalcase/AlibabaLegalCaseStandpointSavestandpointResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package legalcase - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增反馈口径 API返回值 -alibaba.legal.case.standpoint.savestandpoint - -新增反馈口径 ,从外部接受反馈的口径 -*/ -type AlibabaLegalCaseStandpointSavestandpointAPIResponse struct { - model.CommonResponse - AlibabaLegalCaseStandpointSavestandpointResponse -} - -// 新增反馈口径 成功返回结果 -type AlibabaLegalCaseStandpointSavestandpointResponse struct { - XMLName xml.Name `xml:"alibaba_legal_case_standpoint_savestandpoint_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误编码 - Errcode string `json:"errcode,omitempty" xml:"errcode,omitempty"` - // 反馈的新增口径id - Content int64 `json:"content,omitempty" xml:"content,omitempty"` - // 错误描述 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/legalcase/AlibabaLegalSuitFileUploadAPIRequest.go b/model/legalcase/AlibabaLegalSuitFileUploadAPIRequest.go new file mode 100644 index 0000000000..031d96ae5e --- /dev/null +++ b/model/legalcase/AlibabaLegalSuitFileUploadAPIRequest.go @@ -0,0 +1,108 @@ +package legalcase + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +诉讼文件上传接口 API请求 +alibaba.legal.suit.file.upload + +上传文件接口 +*/ +type AlibabaLegalSuitFileUploadAPIRequest struct { + model.Params + // 文件 + _file *model.File + // 时间搓 + _timeStamp int64 + // 文件名称 + _fileName string + // 文件大小 + _fileSize int64 + // 签名 + _signature string +} + +// 初始化AlibabaLegalSuitFileUploadAPIRequest对象 +func NewAlibabaLegalSuitFileUploadRequest() *AlibabaLegalSuitFileUploadAPIRequest{ + return &AlibabaLegalSuitFileUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegalSuitFileUploadAPIRequest) GetApiMethodName() string { + return "alibaba.legal.suit.file.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegalSuitFileUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// File Setter +// 文件 +func (r *AlibabaLegalSuitFileUploadAPIRequest) SetFile(_file *model.File) error { + r._file = _file + r.Set("file", _file) + return nil +} + +// File Getter +func (r AlibabaLegalSuitFileUploadAPIRequest) GetFile() *model.File { + return r._file +} +// TimeStamp Setter +// 时间搓 +func (r *AlibabaLegalSuitFileUploadAPIRequest) SetTimeStamp(_timeStamp int64) error { + r._timeStamp = _timeStamp + r.Set("time_stamp", _timeStamp) + return nil +} + +// TimeStamp Getter +func (r AlibabaLegalSuitFileUploadAPIRequest) GetTimeStamp() int64 { + return r._timeStamp +} +// FileName Setter +// 文件名称 +func (r *AlibabaLegalSuitFileUploadAPIRequest) SetFileName(_fileName string) error { + r._fileName = _fileName + r.Set("file_name", _fileName) + return nil +} + +// FileName Getter +func (r AlibabaLegalSuitFileUploadAPIRequest) GetFileName() string { + return r._fileName +} +// FileSize Setter +// 文件大小 +func (r *AlibabaLegalSuitFileUploadAPIRequest) SetFileSize(_fileSize int64) error { + r._fileSize = _fileSize + r.Set("file_size", _fileSize) + return nil +} + +// FileSize Getter +func (r AlibabaLegalSuitFileUploadAPIRequest) GetFileSize() int64 { + return r._fileSize +} +// Signature Setter +// 签名 +func (r *AlibabaLegalSuitFileUploadAPIRequest) SetSignature(_signature string) error { + r._signature = _signature + r.Set("signature", _signature) + return nil +} + +// Signature Getter +func (r AlibabaLegalSuitFileUploadAPIRequest) GetSignature() string { + return r._signature +} diff --git a/model/legalcase/AlibabaLegalSuitFileUploadAPIResponse.go b/model/legalcase/AlibabaLegalSuitFileUploadAPIResponse.go new file mode 100644 index 0000000000..ddf253d412 --- /dev/null +++ b/model/legalcase/AlibabaLegalSuitFileUploadAPIResponse.go @@ -0,0 +1,33 @@ +package legalcase + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +诉讼文件上传接口 API返回值 +alibaba.legal.suit.file.upload + +上传文件接口 +*/ +type AlibabaLegalSuitFileUploadAPIResponse struct { + model.CommonResponse + AlibabaLegalSuitFileUploadAPIResponseModel +} + +// 诉讼文件上传接口 成功返回结果 +type AlibabaLegalSuitFileUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_legal_suit_file_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 失败原因 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 是否调用成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 文件上传后的生成的id + Content string `json:"content,omitempty" xml:"content,omitempty"` + // 失败的code枚举 + CodeError string `json:"code_error,omitempty" xml:"code_error,omitempty"` +} diff --git a/model/legalcase/AlibabaLegalSuitFileUploadResponse.go b/model/legalcase/AlibabaLegalSuitFileUploadResponse.go deleted file mode 100644 index f67f5f8c25..0000000000 --- a/model/legalcase/AlibabaLegalSuitFileUploadResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package legalcase - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -诉讼文件上传接口 API返回值 -alibaba.legal.suit.file.upload - -上传文件接口 -*/ -type AlibabaLegalSuitFileUploadAPIResponse struct { - model.CommonResponse - AlibabaLegalSuitFileUploadResponse -} - -// 诉讼文件上传接口 成功返回结果 -type AlibabaLegalSuitFileUploadResponse struct { - XMLName xml.Name `xml:"alibaba_legal_suit_file_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 失败原因 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 是否调用成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 文件上传后的生成的id - Content string `json:"content,omitempty" xml:"content,omitempty"` - // 失败的code枚举 - CodeError string `json:"code_error,omitempty" xml:"code_error,omitempty"` -} diff --git a/model/legalsuit/AlibabaLegalSuitCaseGetAPIRequest.go b/model/legalsuit/AlibabaLegalSuitCaseGetAPIRequest.go new file mode 100644 index 0000000000..8515de1617 --- /dev/null +++ b/model/legalsuit/AlibabaLegalSuitCaseGetAPIRequest.go @@ -0,0 +1,52 @@ +package legalsuit + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取案件信息接口v2版本 API请求 +alibaba.legal.suit.case.get + +获取案件信息 +*/ +type AlibabaLegalSuitCaseGetAPIRequest struct { + model.Params + // 案件id + _id int64 +} + +// 初始化AlibabaLegalSuitCaseGetAPIRequest对象 +func NewAlibabaLegalSuitCaseGetRequest() *AlibabaLegalSuitCaseGetAPIRequest{ + return &AlibabaLegalSuitCaseGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegalSuitCaseGetAPIRequest) GetApiMethodName() string { + return "alibaba.legal.suit.case.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegalSuitCaseGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 案件id +func (r *AlibabaLegalSuitCaseGetAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaLegalSuitCaseGetAPIRequest) GetId() int64 { + return r._id +} diff --git a/model/legalsuit/AlibabaLegalSuitCaseGetAPIResponse.go b/model/legalsuit/AlibabaLegalSuitCaseGetAPIResponse.go new file mode 100644 index 0000000000..7f02bd0163 --- /dev/null +++ b/model/legalsuit/AlibabaLegalSuitCaseGetAPIResponse.go @@ -0,0 +1,27 @@ +package legalsuit + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取案件信息接口v2版本 API返回值 +alibaba.legal.suit.case.get + +获取案件信息 +*/ +type AlibabaLegalSuitCaseGetAPIResponse struct { + model.CommonResponse + AlibabaLegalSuitCaseGetAPIResponseModel +} + +// 获取案件信息接口v2版本 成功返回结果 +type AlibabaLegalSuitCaseGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_legal_suit_case_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/legalsuit/AlibabaLegalSuitCaseGetResponse.go b/model/legalsuit/AlibabaLegalSuitCaseGetResponse.go deleted file mode 100644 index 78778d891b..0000000000 --- a/model/legalsuit/AlibabaLegalSuitCaseGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package legalsuit - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取案件信息接口v2版本 API返回值 -alibaba.legal.suit.case.get - -获取案件信息 -*/ -type AlibabaLegalSuitCaseGetAPIResponse struct { - model.CommonResponse - AlibabaLegalSuitCaseGetResponse -} - -// 获取案件信息接口v2版本 成功返回结果 -type AlibabaLegalSuitCaseGetResponse struct { - XMLName xml.Name `xml:"alibaba_legal_suit_case_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/legalsuit/AlibabaLegalSuitCourtAfterPushAPIRequest.go b/model/legalsuit/AlibabaLegalSuitCourtAfterPushAPIRequest.go new file mode 100644 index 0000000000..33ac55bbcc --- /dev/null +++ b/model/legalsuit/AlibabaLegalSuitCourtAfterPushAPIRequest.go @@ -0,0 +1,52 @@ +package legalsuit + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新或者新增庭后信息 API请求 +alibaba.legal.suit.court.after.push + +供外部ISV供应商 推送庭后信息给集团诉讼 +*/ +type AlibabaLegalSuitCourtAfterPushAPIRequest struct { + model.Params + // 庭后信息 + _afterCourtInfoModel *AfterCourtInfoModel +} + +// 初始化AlibabaLegalSuitCourtAfterPushAPIRequest对象 +func NewAlibabaLegalSuitCourtAfterPushRequest() *AlibabaLegalSuitCourtAfterPushAPIRequest{ + return &AlibabaLegalSuitCourtAfterPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegalSuitCourtAfterPushAPIRequest) GetApiMethodName() string { + return "alibaba.legal.suit.court.after.push" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegalSuitCourtAfterPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AfterCourtInfoModel Setter +// 庭后信息 +func (r *AlibabaLegalSuitCourtAfterPushAPIRequest) SetAfterCourtInfoModel(_afterCourtInfoModel *AfterCourtInfoModel) error { + r._afterCourtInfoModel = _afterCourtInfoModel + r.Set("after_court_info_model", _afterCourtInfoModel) + return nil +} + +// AfterCourtInfoModel Getter +func (r AlibabaLegalSuitCourtAfterPushAPIRequest) GetAfterCourtInfoModel() *AfterCourtInfoModel { + return r._afterCourtInfoModel +} diff --git a/model/legalsuit/AlibabaLegalSuitCourtAfterPushAPIResponse.go b/model/legalsuit/AlibabaLegalSuitCourtAfterPushAPIResponse.go new file mode 100644 index 0000000000..80a1bb0f8e --- /dev/null +++ b/model/legalsuit/AlibabaLegalSuitCourtAfterPushAPIResponse.go @@ -0,0 +1,27 @@ +package legalsuit + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新或者新增庭后信息 API返回值 +alibaba.legal.suit.court.after.push + +供外部ISV供应商 推送庭后信息给集团诉讼 +*/ +type AlibabaLegalSuitCourtAfterPushAPIResponse struct { + model.CommonResponse + AlibabaLegalSuitCourtAfterPushAPIResponseModel +} + +// 更新或者新增庭后信息 成功返回结果 +type AlibabaLegalSuitCourtAfterPushAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_legal_suit_court_after_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/legalsuit/AlibabaLegalSuitCourtAfterPushResponse.go b/model/legalsuit/AlibabaLegalSuitCourtAfterPushResponse.go deleted file mode 100644 index 623305e7d3..0000000000 --- a/model/legalsuit/AlibabaLegalSuitCourtAfterPushResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package legalsuit - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新或者新增庭后信息 API返回值 -alibaba.legal.suit.court.after.push - -供外部ISV供应商 推送庭后信息给集团诉讼 -*/ -type AlibabaLegalSuitCourtAfterPushAPIResponse struct { - model.CommonResponse - AlibabaLegalSuitCourtAfterPushResponse -} - -// 更新或者新增庭后信息 成功返回结果 -type AlibabaLegalSuitCourtAfterPushResponse struct { - XMLName xml.Name `xml:"alibaba_legal_suit_court_after_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/legalsuit/AlibabaLegalSuitCourtBeforePushAPIRequest.go b/model/legalsuit/AlibabaLegalSuitCourtBeforePushAPIRequest.go new file mode 100644 index 0000000000..5993d153ed --- /dev/null +++ b/model/legalsuit/AlibabaLegalSuitCourtBeforePushAPIRequest.go @@ -0,0 +1,52 @@ +package legalsuit + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新或保存庭前信息 API请求 +alibaba.legal.suit.court.before.push + +更新或者保存庭前信息 +*/ +type AlibabaLegalSuitCourtBeforePushAPIRequest struct { + model.Params + // 庭前信息 + _beforeCourtModel *BeforeCourtModel +} + +// 初始化AlibabaLegalSuitCourtBeforePushAPIRequest对象 +func NewAlibabaLegalSuitCourtBeforePushRequest() *AlibabaLegalSuitCourtBeforePushAPIRequest{ + return &AlibabaLegalSuitCourtBeforePushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegalSuitCourtBeforePushAPIRequest) GetApiMethodName() string { + return "alibaba.legal.suit.court.before.push" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegalSuitCourtBeforePushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BeforeCourtModel Setter +// 庭前信息 +func (r *AlibabaLegalSuitCourtBeforePushAPIRequest) SetBeforeCourtModel(_beforeCourtModel *BeforeCourtModel) error { + r._beforeCourtModel = _beforeCourtModel + r.Set("before_court_model", _beforeCourtModel) + return nil +} + +// BeforeCourtModel Getter +func (r AlibabaLegalSuitCourtBeforePushAPIRequest) GetBeforeCourtModel() *BeforeCourtModel { + return r._beforeCourtModel +} diff --git a/model/legalsuit/AlibabaLegalSuitCourtBeforePushAPIResponse.go b/model/legalsuit/AlibabaLegalSuitCourtBeforePushAPIResponse.go new file mode 100644 index 0000000000..353e99f7b4 --- /dev/null +++ b/model/legalsuit/AlibabaLegalSuitCourtBeforePushAPIResponse.go @@ -0,0 +1,27 @@ +package legalsuit + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新或保存庭前信息 API返回值 +alibaba.legal.suit.court.before.push + +更新或者保存庭前信息 +*/ +type AlibabaLegalSuitCourtBeforePushAPIResponse struct { + model.CommonResponse + AlibabaLegalSuitCourtBeforePushAPIResponseModel +} + +// 更新或保存庭前信息 成功返回结果 +type AlibabaLegalSuitCourtBeforePushAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_legal_suit_court_before_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/legalsuit/AlibabaLegalSuitCourtBeforePushResponse.go b/model/legalsuit/AlibabaLegalSuitCourtBeforePushResponse.go deleted file mode 100644 index 5dd8876dc7..0000000000 --- a/model/legalsuit/AlibabaLegalSuitCourtBeforePushResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package legalsuit - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新或保存庭前信息 API返回值 -alibaba.legal.suit.court.before.push - -更新或者保存庭前信息 -*/ -type AlibabaLegalSuitCourtBeforePushAPIResponse struct { - model.CommonResponse - AlibabaLegalSuitCourtBeforePushResponse -} - -// 更新或保存庭前信息 成功返回结果 -type AlibabaLegalSuitCourtBeforePushResponse struct { - XMLName xml.Name `xml:"alibaba_legal_suit_court_before_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/legalsuit/AlibabaLegalSuitCourtEntrustGetAPIRequest.go b/model/legalsuit/AlibabaLegalSuitCourtEntrustGetAPIRequest.go new file mode 100644 index 0000000000..e86472422d --- /dev/null +++ b/model/legalsuit/AlibabaLegalSuitCourtEntrustGetAPIRequest.go @@ -0,0 +1,66 @@ +package legalsuit + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +委托开庭服务查询 API请求 +alibaba.legal.suit.court.entrust.get + +查询委托开庭信息 +*/ +type AlibabaLegalSuitCourtEntrustGetAPIRequest struct { + model.Params + // 委托ID + _entrustId int64 + // 案件ID + _suitId int64 +} + +// 初始化AlibabaLegalSuitCourtEntrustGetAPIRequest对象 +func NewAlibabaLegalSuitCourtEntrustGetRequest() *AlibabaLegalSuitCourtEntrustGetAPIRequest{ + return &AlibabaLegalSuitCourtEntrustGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegalSuitCourtEntrustGetAPIRequest) GetApiMethodName() string { + return "alibaba.legal.suit.court.entrust.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegalSuitCourtEntrustGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EntrustId Setter +// 委托ID +func (r *AlibabaLegalSuitCourtEntrustGetAPIRequest) SetEntrustId(_entrustId int64) error { + r._entrustId = _entrustId + r.Set("entrust_id", _entrustId) + return nil +} + +// EntrustId Getter +func (r AlibabaLegalSuitCourtEntrustGetAPIRequest) GetEntrustId() int64 { + return r._entrustId +} +// SuitId Setter +// 案件ID +func (r *AlibabaLegalSuitCourtEntrustGetAPIRequest) SetSuitId(_suitId int64) error { + r._suitId = _suitId + r.Set("suit_id", _suitId) + return nil +} + +// SuitId Getter +func (r AlibabaLegalSuitCourtEntrustGetAPIRequest) GetSuitId() int64 { + return r._suitId +} diff --git a/model/legalsuit/AlibabaLegalSuitCourtEntrustGetAPIResponse.go b/model/legalsuit/AlibabaLegalSuitCourtEntrustGetAPIResponse.go new file mode 100644 index 0000000000..2da704dc07 --- /dev/null +++ b/model/legalsuit/AlibabaLegalSuitCourtEntrustGetAPIResponse.go @@ -0,0 +1,27 @@ +package legalsuit + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +委托开庭服务查询 API返回值 +alibaba.legal.suit.court.entrust.get + +查询委托开庭信息 +*/ +type AlibabaLegalSuitCourtEntrustGetAPIResponse struct { + model.CommonResponse + AlibabaLegalSuitCourtEntrustGetAPIResponseModel +} + +// 委托开庭服务查询 成功返回结果 +type AlibabaLegalSuitCourtEntrustGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_legal_suit_court_entrust_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/legalsuit/AlibabaLegalSuitCourtEntrustGetResponse.go b/model/legalsuit/AlibabaLegalSuitCourtEntrustGetResponse.go deleted file mode 100644 index 8b8019fae6..0000000000 --- a/model/legalsuit/AlibabaLegalSuitCourtEntrustGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package legalsuit - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -委托开庭服务查询 API返回值 -alibaba.legal.suit.court.entrust.get - -查询委托开庭信息 -*/ -type AlibabaLegalSuitCourtEntrustGetAPIResponse struct { - model.CommonResponse - AlibabaLegalSuitCourtEntrustGetResponse -} - -// 委托开庭服务查询 成功返回结果 -type AlibabaLegalSuitCourtEntrustGetResponse struct { - XMLName xml.Name `xml:"alibaba_legal_suit_court_entrust_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/legalsuit/AlibabaLegalSuitCourtLawyerPushAPIRequest.go b/model/legalsuit/AlibabaLegalSuitCourtLawyerPushAPIRequest.go new file mode 100644 index 0000000000..0d267a97e9 --- /dev/null +++ b/model/legalsuit/AlibabaLegalSuitCourtLawyerPushAPIRequest.go @@ -0,0 +1,80 @@ +package legalsuit + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推荐律师接口 API请求 +alibaba.legal.suit.court.lawyer.push + +为诉讼系统推荐律师 +*/ +type AlibabaLegalSuitCourtLawyerPushAPIRequest struct { + model.Params + // 委托ID + _entrustId int64 + // 案件ID + _suitId int64 + // 推荐律师模型 + _lawyersModel *LawyersModel +} + +// 初始化AlibabaLegalSuitCourtLawyerPushAPIRequest对象 +func NewAlibabaLegalSuitCourtLawyerPushRequest() *AlibabaLegalSuitCourtLawyerPushAPIRequest{ + return &AlibabaLegalSuitCourtLawyerPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegalSuitCourtLawyerPushAPIRequest) GetApiMethodName() string { + return "alibaba.legal.suit.court.lawyer.push" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegalSuitCourtLawyerPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EntrustId Setter +// 委托ID +func (r *AlibabaLegalSuitCourtLawyerPushAPIRequest) SetEntrustId(_entrustId int64) error { + r._entrustId = _entrustId + r.Set("entrust_id", _entrustId) + return nil +} + +// EntrustId Getter +func (r AlibabaLegalSuitCourtLawyerPushAPIRequest) GetEntrustId() int64 { + return r._entrustId +} +// SuitId Setter +// 案件ID +func (r *AlibabaLegalSuitCourtLawyerPushAPIRequest) SetSuitId(_suitId int64) error { + r._suitId = _suitId + r.Set("suit_id", _suitId) + return nil +} + +// SuitId Getter +func (r AlibabaLegalSuitCourtLawyerPushAPIRequest) GetSuitId() int64 { + return r._suitId +} +// LawyersModel Setter +// 推荐律师模型 +func (r *AlibabaLegalSuitCourtLawyerPushAPIRequest) SetLawyersModel(_lawyersModel *LawyersModel) error { + r._lawyersModel = _lawyersModel + r.Set("lawyers_model", _lawyersModel) + return nil +} + +// LawyersModel Getter +func (r AlibabaLegalSuitCourtLawyerPushAPIRequest) GetLawyersModel() *LawyersModel { + return r._lawyersModel +} diff --git a/model/legalsuit/AlibabaLegalSuitCourtLawyerPushAPIResponse.go b/model/legalsuit/AlibabaLegalSuitCourtLawyerPushAPIResponse.go new file mode 100644 index 0000000000..178acf2fc8 --- /dev/null +++ b/model/legalsuit/AlibabaLegalSuitCourtLawyerPushAPIResponse.go @@ -0,0 +1,27 @@ +package legalsuit + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推荐律师接口 API返回值 +alibaba.legal.suit.court.lawyer.push + +为诉讼系统推荐律师 +*/ +type AlibabaLegalSuitCourtLawyerPushAPIResponse struct { + model.CommonResponse + AlibabaLegalSuitCourtLawyerPushAPIResponseModel +} + +// 推荐律师接口 成功返回结果 +type AlibabaLegalSuitCourtLawyerPushAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_legal_suit_court_lawyer_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/legalsuit/AlibabaLegalSuitCourtLawyerPushResponse.go b/model/legalsuit/AlibabaLegalSuitCourtLawyerPushResponse.go deleted file mode 100644 index f13a0de4d1..0000000000 --- a/model/legalsuit/AlibabaLegalSuitCourtLawyerPushResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package legalsuit - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推荐律师接口 API返回值 -alibaba.legal.suit.court.lawyer.push - -为诉讼系统推荐律师 -*/ -type AlibabaLegalSuitCourtLawyerPushAPIResponse struct { - model.CommonResponse - AlibabaLegalSuitCourtLawyerPushResponse -} - -// 推荐律师接口 成功返回结果 -type AlibabaLegalSuitCourtLawyerPushResponse struct { - XMLName xml.Name `xml:"alibaba_legal_suit_court_lawyer_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/legalsuit/AlibabaLegalSuitCourtOpenPushAPIRequest.go b/model/legalsuit/AlibabaLegalSuitCourtOpenPushAPIRequest.go new file mode 100644 index 0000000000..9240d9a48e --- /dev/null +++ b/model/legalsuit/AlibabaLegalSuitCourtOpenPushAPIRequest.go @@ -0,0 +1,52 @@ +package legalsuit + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +开庭信息推送接口 API请求 +alibaba.legal.suit.court.open.push + +供ISV推送开庭信息给集团诉讼 +*/ +type AlibabaLegalSuitCourtOpenPushAPIRequest struct { + model.Params + // 开庭信息 + _courtInfoModel *CourtInfoModel +} + +// 初始化AlibabaLegalSuitCourtOpenPushAPIRequest对象 +func NewAlibabaLegalSuitCourtOpenPushRequest() *AlibabaLegalSuitCourtOpenPushAPIRequest{ + return &AlibabaLegalSuitCourtOpenPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegalSuitCourtOpenPushAPIRequest) GetApiMethodName() string { + return "alibaba.legal.suit.court.open.push" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegalSuitCourtOpenPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CourtInfoModel Setter +// 开庭信息 +func (r *AlibabaLegalSuitCourtOpenPushAPIRequest) SetCourtInfoModel(_courtInfoModel *CourtInfoModel) error { + r._courtInfoModel = _courtInfoModel + r.Set("court_info_model", _courtInfoModel) + return nil +} + +// CourtInfoModel Getter +func (r AlibabaLegalSuitCourtOpenPushAPIRequest) GetCourtInfoModel() *CourtInfoModel { + return r._courtInfoModel +} diff --git a/model/legalsuit/AlibabaLegalSuitCourtOpenPushAPIResponse.go b/model/legalsuit/AlibabaLegalSuitCourtOpenPushAPIResponse.go new file mode 100644 index 0000000000..0d386c09e9 --- /dev/null +++ b/model/legalsuit/AlibabaLegalSuitCourtOpenPushAPIResponse.go @@ -0,0 +1,27 @@ +package legalsuit + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +开庭信息推送接口 API返回值 +alibaba.legal.suit.court.open.push + +供ISV推送开庭信息给集团诉讼 +*/ +type AlibabaLegalSuitCourtOpenPushAPIResponse struct { + model.CommonResponse + AlibabaLegalSuitCourtOpenPushAPIResponseModel +} + +// 开庭信息推送接口 成功返回结果 +type AlibabaLegalSuitCourtOpenPushAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_legal_suit_court_open_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/legalsuit/AlibabaLegalSuitCourtOpenPushResponse.go b/model/legalsuit/AlibabaLegalSuitCourtOpenPushResponse.go deleted file mode 100644 index 06e00865a0..0000000000 --- a/model/legalsuit/AlibabaLegalSuitCourtOpenPushResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package legalsuit - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -开庭信息推送接口 API返回值 -alibaba.legal.suit.court.open.push - -供ISV推送开庭信息给集团诉讼 -*/ -type AlibabaLegalSuitCourtOpenPushAPIResponse struct { - model.CommonResponse - AlibabaLegalSuitCourtOpenPushResponse -} - -// 开庭信息推送接口 成功返回结果 -type AlibabaLegalSuitCourtOpenPushResponse struct { - XMLName xml.Name `xml:"alibaba_legal_suit_court_open_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/legalsuit/AlibabaLegalSuitDominationPushAPIRequest.go b/model/legalsuit/AlibabaLegalSuitDominationPushAPIRequest.go new file mode 100644 index 0000000000..640ffb41b2 --- /dev/null +++ b/model/legalsuit/AlibabaLegalSuitDominationPushAPIRequest.go @@ -0,0 +1,52 @@ +package legalsuit + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新或者保存管辖信息 API请求 +alibaba.legal.suit.domination.push + +ISV推送管辖信息到诉讼平台 +*/ +type AlibabaLegalSuitDominationPushAPIRequest struct { + model.Params + // 管辖信息 + _dominationDissentModel *DominationDissentModel +} + +// 初始化AlibabaLegalSuitDominationPushAPIRequest对象 +func NewAlibabaLegalSuitDominationPushRequest() *AlibabaLegalSuitDominationPushAPIRequest{ + return &AlibabaLegalSuitDominationPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegalSuitDominationPushAPIRequest) GetApiMethodName() string { + return "alibaba.legal.suit.domination.push" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegalSuitDominationPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DominationDissentModel Setter +// 管辖信息 +func (r *AlibabaLegalSuitDominationPushAPIRequest) SetDominationDissentModel(_dominationDissentModel *DominationDissentModel) error { + r._dominationDissentModel = _dominationDissentModel + r.Set("domination_dissent_model", _dominationDissentModel) + return nil +} + +// DominationDissentModel Getter +func (r AlibabaLegalSuitDominationPushAPIRequest) GetDominationDissentModel() *DominationDissentModel { + return r._dominationDissentModel +} diff --git a/model/legalsuit/AlibabaLegalSuitDominationPushAPIResponse.go b/model/legalsuit/AlibabaLegalSuitDominationPushAPIResponse.go new file mode 100644 index 0000000000..d43f6f518c --- /dev/null +++ b/model/legalsuit/AlibabaLegalSuitDominationPushAPIResponse.go @@ -0,0 +1,27 @@ +package legalsuit + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新或者保存管辖信息 API返回值 +alibaba.legal.suit.domination.push + +ISV推送管辖信息到诉讼平台 +*/ +type AlibabaLegalSuitDominationPushAPIResponse struct { + model.CommonResponse + AlibabaLegalSuitDominationPushAPIResponseModel +} + +// 更新或者保存管辖信息 成功返回结果 +type AlibabaLegalSuitDominationPushAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_legal_suit_domination_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/legalsuit/AlibabaLegalSuitDominationPushResponse.go b/model/legalsuit/AlibabaLegalSuitDominationPushResponse.go deleted file mode 100644 index 3bba73d1c7..0000000000 --- a/model/legalsuit/AlibabaLegalSuitDominationPushResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package legalsuit - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新或者保存管辖信息 API返回值 -alibaba.legal.suit.domination.push - -ISV推送管辖信息到诉讼平台 -*/ -type AlibabaLegalSuitDominationPushAPIResponse struct { - model.CommonResponse - AlibabaLegalSuitDominationPushResponse -} - -// 更新或者保存管辖信息 成功返回结果 -type AlibabaLegalSuitDominationPushResponse struct { - XMLName xml.Name `xml:"alibaba_legal_suit_domination_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/legalsuit/AlibabaLegalSuitJudgementGetAPIRequest.go b/model/legalsuit/AlibabaLegalSuitJudgementGetAPIRequest.go new file mode 100644 index 0000000000..2e876f080d --- /dev/null +++ b/model/legalsuit/AlibabaLegalSuitJudgementGetAPIRequest.go @@ -0,0 +1,52 @@ +package legalsuit + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取裁判登记信息 API请求 +alibaba.legal.suit.judgement.get + +供ISV供应商获取集团法务系统的裁判登记信息 +*/ +type AlibabaLegalSuitJudgementGetAPIRequest struct { + model.Params + // 案件id + _suitId int64 +} + +// 初始化AlibabaLegalSuitJudgementGetAPIRequest对象 +func NewAlibabaLegalSuitJudgementGetRequest() *AlibabaLegalSuitJudgementGetAPIRequest{ + return &AlibabaLegalSuitJudgementGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegalSuitJudgementGetAPIRequest) GetApiMethodName() string { + return "alibaba.legal.suit.judgement.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegalSuitJudgementGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SuitId Setter +// 案件id +func (r *AlibabaLegalSuitJudgementGetAPIRequest) SetSuitId(_suitId int64) error { + r._suitId = _suitId + r.Set("suit_id", _suitId) + return nil +} + +// SuitId Getter +func (r AlibabaLegalSuitJudgementGetAPIRequest) GetSuitId() int64 { + return r._suitId +} diff --git a/model/legalsuit/AlibabaLegalSuitJudgementGetAPIResponse.go b/model/legalsuit/AlibabaLegalSuitJudgementGetAPIResponse.go new file mode 100644 index 0000000000..171dfcb346 --- /dev/null +++ b/model/legalsuit/AlibabaLegalSuitJudgementGetAPIResponse.go @@ -0,0 +1,27 @@ +package legalsuit + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取裁判登记信息 API返回值 +alibaba.legal.suit.judgement.get + +供ISV供应商获取集团法务系统的裁判登记信息 +*/ +type AlibabaLegalSuitJudgementGetAPIResponse struct { + model.CommonResponse + AlibabaLegalSuitJudgementGetAPIResponseModel +} + +// 获取裁判登记信息 成功返回结果 +type AlibabaLegalSuitJudgementGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_legal_suit_judgement_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/legalsuit/AlibabaLegalSuitJudgementGetResponse.go b/model/legalsuit/AlibabaLegalSuitJudgementGetResponse.go deleted file mode 100644 index 1b98beab95..0000000000 --- a/model/legalsuit/AlibabaLegalSuitJudgementGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package legalsuit - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取裁判登记信息 API返回值 -alibaba.legal.suit.judgement.get - -供ISV供应商获取集团法务系统的裁判登记信息 -*/ -type AlibabaLegalSuitJudgementGetAPIResponse struct { - model.CommonResponse - AlibabaLegalSuitJudgementGetResponse -} - -// 获取裁判登记信息 成功返回结果 -type AlibabaLegalSuitJudgementGetResponse struct { - XMLName xml.Name `xml:"alibaba_legal_suit_judgement_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/legalsuit/AlibabaLegalSuitJudgementPushAPIRequest.go b/model/legalsuit/AlibabaLegalSuitJudgementPushAPIRequest.go new file mode 100644 index 0000000000..806fdf1e4a --- /dev/null +++ b/model/legalsuit/AlibabaLegalSuitJudgementPushAPIRequest.go @@ -0,0 +1,52 @@ +package legalsuit + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推送裁判登记信息给集团法务系统 API请求 +alibaba.legal.suit.judgement.push + +isv推送裁判登记信息给集团法务系统 +*/ +type AlibabaLegalSuitJudgementPushAPIRequest struct { + model.Params + // 裁判登记信息 + _refereeRegistrationModel *RefereeRegistrationModel +} + +// 初始化AlibabaLegalSuitJudgementPushAPIRequest对象 +func NewAlibabaLegalSuitJudgementPushRequest() *AlibabaLegalSuitJudgementPushAPIRequest{ + return &AlibabaLegalSuitJudgementPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLegalSuitJudgementPushAPIRequest) GetApiMethodName() string { + return "alibaba.legal.suit.judgement.push" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLegalSuitJudgementPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefereeRegistrationModel Setter +// 裁判登记信息 +func (r *AlibabaLegalSuitJudgementPushAPIRequest) SetRefereeRegistrationModel(_refereeRegistrationModel *RefereeRegistrationModel) error { + r._refereeRegistrationModel = _refereeRegistrationModel + r.Set("referee_registration_model", _refereeRegistrationModel) + return nil +} + +// RefereeRegistrationModel Getter +func (r AlibabaLegalSuitJudgementPushAPIRequest) GetRefereeRegistrationModel() *RefereeRegistrationModel { + return r._refereeRegistrationModel +} diff --git a/model/legalsuit/AlibabaLegalSuitJudgementPushAPIResponse.go b/model/legalsuit/AlibabaLegalSuitJudgementPushAPIResponse.go new file mode 100644 index 0000000000..885ff4434a --- /dev/null +++ b/model/legalsuit/AlibabaLegalSuitJudgementPushAPIResponse.go @@ -0,0 +1,27 @@ +package legalsuit + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推送裁判登记信息给集团法务系统 API返回值 +alibaba.legal.suit.judgement.push + +isv推送裁判登记信息给集团法务系统 +*/ +type AlibabaLegalSuitJudgementPushAPIResponse struct { + model.CommonResponse + AlibabaLegalSuitJudgementPushAPIResponseModel +} + +// 推送裁判登记信息给集团法务系统 成功返回结果 +type AlibabaLegalSuitJudgementPushAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_legal_suit_judgement_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // alinkappserver系统返回的通用结果类 + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/legalsuit/AlibabaLegalSuitJudgementPushResponse.go b/model/legalsuit/AlibabaLegalSuitJudgementPushResponse.go deleted file mode 100644 index 20e571661e..0000000000 --- a/model/legalsuit/AlibabaLegalSuitJudgementPushResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package legalsuit - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推送裁判登记信息给集团法务系统 API返回值 -alibaba.legal.suit.judgement.push - -isv推送裁判登记信息给集团法务系统 -*/ -type AlibabaLegalSuitJudgementPushAPIResponse struct { - model.CommonResponse - AlibabaLegalSuitJudgementPushResponse -} - -// 推送裁判登记信息给集团法务系统 成功返回结果 -type AlibabaLegalSuitJudgementPushResponse struct { - XMLName xml.Name `xml:"alibaba_legal_suit_judgement_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // alinkappserver系统返回的通用结果类 - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lifeservice/TaobaoPlaceStoreRelationAddAPIRequest.go b/model/lifeservice/TaobaoPlaceStoreRelationAddAPIRequest.go new file mode 100644 index 0000000000..ed4eabba1b --- /dev/null +++ b/model/lifeservice/TaobaoPlaceStoreRelationAddAPIRequest.go @@ -0,0 +1,80 @@ +package lifeservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店关系新增 API请求 +taobao.place.store.relation.add + +新增授权用户的门店关系信息 +*/ +type TaobaoPlaceStoreRelationAddAPIRequest struct { + model.Params + // 关系B的门店ID + _outerId string + // 关系类型(outer_id是主, store_id是从) + _relationType int64 + // 门店ID + _storeId int64 +} + +// 初始化TaobaoPlaceStoreRelationAddAPIRequest对象 +func NewTaobaoPlaceStoreRelationAddRequest() *TaobaoPlaceStoreRelationAddAPIRequest{ + return &TaobaoPlaceStoreRelationAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPlaceStoreRelationAddAPIRequest) GetApiMethodName() string { + return "taobao.place.store.relation.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPlaceStoreRelationAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterId Setter +// 关系B的门店ID +func (r *TaobaoPlaceStoreRelationAddAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoPlaceStoreRelationAddAPIRequest) GetOuterId() string { + return r._outerId +} +// RelationType Setter +// 关系类型(outer_id是主, store_id是从) +func (r *TaobaoPlaceStoreRelationAddAPIRequest) SetRelationType(_relationType int64) error { + r._relationType = _relationType + r.Set("relation_type", _relationType) + return nil +} + +// RelationType Getter +func (r TaobaoPlaceStoreRelationAddAPIRequest) GetRelationType() int64 { + return r._relationType +} +// StoreId Setter +// 门店ID +func (r *TaobaoPlaceStoreRelationAddAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoPlaceStoreRelationAddAPIRequest) GetStoreId() int64 { + return r._storeId +} diff --git a/model/lifeservice/TaobaoPlaceStoreRelationAddAPIResponse.go b/model/lifeservice/TaobaoPlaceStoreRelationAddAPIResponse.go new file mode 100644 index 0000000000..d2e1978668 --- /dev/null +++ b/model/lifeservice/TaobaoPlaceStoreRelationAddAPIResponse.go @@ -0,0 +1,31 @@ +package lifeservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店关系新增 API返回值 +taobao.place.store.relation.add + +新增授权用户的门店关系信息 +*/ +type TaobaoPlaceStoreRelationAddAPIResponse struct { + model.CommonResponse + TaobaoPlaceStoreRelationAddAPIResponseModel +} + +// 门店关系新增 成功返回结果 +type TaobaoPlaceStoreRelationAddAPIResponseModel struct { + XMLName xml.Name `xml:"place_store_relation_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否失败 + Failure bool `json:"failure,omitempty" xml:"failure,omitempty"` + // 返回结果:true成功;false失败 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` + // 个数 + TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` +} diff --git a/model/lifeservice/TaobaoPlaceStoreRelationAddResponse.go b/model/lifeservice/TaobaoPlaceStoreRelationAddResponse.go deleted file mode 100644 index de758a2afc..0000000000 --- a/model/lifeservice/TaobaoPlaceStoreRelationAddResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package lifeservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店关系新增 API返回值 -taobao.place.store.relation.add - -新增授权用户的门店关系信息 -*/ -type TaobaoPlaceStoreRelationAddAPIResponse struct { - model.CommonResponse - TaobaoPlaceStoreRelationAddResponse -} - -// 门店关系新增 成功返回结果 -type TaobaoPlaceStoreRelationAddResponse struct { - XMLName xml.Name `xml:"place_store_relation_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否失败 - Failure bool `json:"failure,omitempty" xml:"failure,omitempty"` - // 返回结果:true成功;false失败 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` - // 个数 - TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` -} diff --git a/model/logistic/AlibabaAlihealthNrDeliveryHistorySaveAPIRequest.go b/model/logistic/AlibabaAlihealthNrDeliveryHistorySaveAPIRequest.go new file mode 100644 index 0000000000..7dad00a019 --- /dev/null +++ b/model/logistic/AlibabaAlihealthNrDeliveryHistorySaveAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物流信息回传接口 API请求 +alibaba.alihealth.nr.delivery.history.save + +商家ERP回传物流信息 +*/ +type AlibabaAlihealthNrDeliveryHistorySaveAPIRequest struct { + model.Params + // 入参 + _deliveryEvent *DeliveryEventDto +} + +// 初始化AlibabaAlihealthNrDeliveryHistorySaveAPIRequest对象 +func NewAlibabaAlihealthNrDeliveryHistorySaveRequest() *AlibabaAlihealthNrDeliveryHistorySaveAPIRequest{ + return &AlibabaAlihealthNrDeliveryHistorySaveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthNrDeliveryHistorySaveAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.nr.delivery.history.save" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthNrDeliveryHistorySaveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeliveryEvent Setter +// 入参 +func (r *AlibabaAlihealthNrDeliveryHistorySaveAPIRequest) SetDeliveryEvent(_deliveryEvent *DeliveryEventDto) error { + r._deliveryEvent = _deliveryEvent + r.Set("delivery_event", _deliveryEvent) + return nil +} + +// DeliveryEvent Getter +func (r AlibabaAlihealthNrDeliveryHistorySaveAPIRequest) GetDeliveryEvent() *DeliveryEventDto { + return r._deliveryEvent +} diff --git a/model/logistic/AlibabaAlihealthNrDeliveryHistorySaveAPIResponse.go b/model/logistic/AlibabaAlihealthNrDeliveryHistorySaveAPIResponse.go new file mode 100644 index 0000000000..d3fb314d1f --- /dev/null +++ b/model/logistic/AlibabaAlihealthNrDeliveryHistorySaveAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物流信息回传接口 API返回值 +alibaba.alihealth.nr.delivery.history.save + +商家ERP回传物流信息 +*/ +type AlibabaAlihealthNrDeliveryHistorySaveAPIResponse struct { + model.CommonResponse + AlibabaAlihealthNrDeliveryHistorySaveAPIResponseModel +} + +// 物流信息回传接口 成功返回结果 +type AlibabaAlihealthNrDeliveryHistorySaveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_nr_delivery_history_save_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *ResponseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/logistic/AlibabaAlihealthNrDeliveryHistorySaveResponse.go b/model/logistic/AlibabaAlihealthNrDeliveryHistorySaveResponse.go deleted file mode 100644 index 0e9bd14d11..0000000000 --- a/model/logistic/AlibabaAlihealthNrDeliveryHistorySaveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物流信息回传接口 API返回值 -alibaba.alihealth.nr.delivery.history.save - -商家ERP回传物流信息 -*/ -type AlibabaAlihealthNrDeliveryHistorySaveAPIResponse struct { - model.CommonResponse - AlibabaAlihealthNrDeliveryHistorySaveResponse -} - -// 物流信息回传接口 成功返回结果 -type AlibabaAlihealthNrDeliveryHistorySaveResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_nr_delivery_history_save_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *ResponseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/logistic/AlibabaAlinkMessageHistoryActionAPIRequest.go b/model/logistic/AlibabaAlinkMessageHistoryActionAPIRequest.go new file mode 100644 index 0000000000..197e9f7e8f --- /dev/null +++ b/model/logistic/AlibabaAlinkMessageHistoryActionAPIRequest.go @@ -0,0 +1,66 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +操作历史消息 API请求 +alibaba.alink.message.history.action + +阿里智能操作历史消息 +*/ +type AlibabaAlinkMessageHistoryActionAPIRequest struct { + model.Params + // 消息id + _index string + // 删除:delete,已读:read + _action string +} + +// 初始化AlibabaAlinkMessageHistoryActionAPIRequest对象 +func NewAlibabaAlinkMessageHistoryActionRequest() *AlibabaAlinkMessageHistoryActionAPIRequest{ + return &AlibabaAlinkMessageHistoryActionAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlinkMessageHistoryActionAPIRequest) GetApiMethodName() string { + return "alibaba.alink.message.history.action" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlinkMessageHistoryActionAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Index Setter +// 消息id +func (r *AlibabaAlinkMessageHistoryActionAPIRequest) SetIndex(_index string) error { + r._index = _index + r.Set("index", _index) + return nil +} + +// Index Getter +func (r AlibabaAlinkMessageHistoryActionAPIRequest) GetIndex() string { + return r._index +} +// Action Setter +// 删除:delete,已读:read +func (r *AlibabaAlinkMessageHistoryActionAPIRequest) SetAction(_action string) error { + r._action = _action + r.Set("action", _action) + return nil +} + +// Action Getter +func (r AlibabaAlinkMessageHistoryActionAPIRequest) GetAction() string { + return r._action +} diff --git a/model/logistic/AlibabaAlinkMessageHistoryActionAPIResponse.go b/model/logistic/AlibabaAlinkMessageHistoryActionAPIResponse.go new file mode 100644 index 0000000000..e4c734f932 --- /dev/null +++ b/model/logistic/AlibabaAlinkMessageHistoryActionAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +操作历史消息 API返回值 +alibaba.alink.message.history.action + +阿里智能操作历史消息 +*/ +type AlibabaAlinkMessageHistoryActionAPIResponse struct { + model.CommonResponse + AlibabaAlinkMessageHistoryActionAPIResponseModel +} + +// 操作历史消息 成功返回结果 +type AlibabaAlinkMessageHistoryActionAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alink_message_history_action_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/logistic/AlibabaAlinkMessageHistoryActionResponse.go b/model/logistic/AlibabaAlinkMessageHistoryActionResponse.go deleted file mode 100644 index bde8b66387..0000000000 --- a/model/logistic/AlibabaAlinkMessageHistoryActionResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -操作历史消息 API返回值 -alibaba.alink.message.history.action - -阿里智能操作历史消息 -*/ -type AlibabaAlinkMessageHistoryActionAPIResponse struct { - model.CommonResponse - AlibabaAlinkMessageHistoryActionResponse -} - -// 操作历史消息 成功返回结果 -type AlibabaAlinkMessageHistoryActionResponse struct { - XMLName xml.Name `xml:"alibaba_alink_message_history_action_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TopServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/logistic/AlibabaAscpLogisticsConsignResendAPIRequest.go b/model/logistic/AlibabaAscpLogisticsConsignResendAPIRequest.go new file mode 100644 index 0000000000..7c3a63cb22 --- /dev/null +++ b/model/logistic/AlibabaAscpLogisticsConsignResendAPIRequest.go @@ -0,0 +1,82 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改物流公司和运单号 API请求 +alibaba.ascp.logistics.consign.resend + +支持卖家发货后修改运单号;支持在线下单和自己联系两种发货方式;使用条件: +1、必须是已发货订单,自己联系发货的必须24小时内才可修改;在线下单的,必须下单后物流公司未揽收成功前才可修改; +2、自己联系只能切换为自己联系的公司,在线下单也只能切换为在线下单的物流公司 +*/ +type AlibabaAscpLogisticsConsignResendAPIRequest struct { + model.Params + // 订单id + _tid string + // 拆单子订单列表,对应的数据是:子订单号列表。可以不传,但是如果传了则必须符合传递的规则。子订单必须是操作的物流订单的子订单的真子集 + _subTids string + // 包裹包含的运单号及快递公司编号,多包裹时,需要包含所有包裹的运单号等信息 + _consignPkgs []TopConsignPkgRequest +} + +// 初始化AlibabaAscpLogisticsConsignResendAPIRequest对象 +func NewAlibabaAscpLogisticsConsignResendRequest() *AlibabaAscpLogisticsConsignResendAPIRequest{ + return &AlibabaAscpLogisticsConsignResendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpLogisticsConsignResendAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.logistics.consign.resend" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpLogisticsConsignResendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 订单id +func (r *AlibabaAscpLogisticsConsignResendAPIRequest) SetTid(_tid string) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r AlibabaAscpLogisticsConsignResendAPIRequest) GetTid() string { + return r._tid +} +// SubTids Setter +// 拆单子订单列表,对应的数据是:子订单号列表。可以不传,但是如果传了则必须符合传递的规则。子订单必须是操作的物流订单的子订单的真子集 +func (r *AlibabaAscpLogisticsConsignResendAPIRequest) SetSubTids(_subTids string) error { + r._subTids = _subTids + r.Set("sub_tids", _subTids) + return nil +} + +// SubTids Getter +func (r AlibabaAscpLogisticsConsignResendAPIRequest) GetSubTids() string { + return r._subTids +} +// ConsignPkgs Setter +// 包裹包含的运单号及快递公司编号,多包裹时,需要包含所有包裹的运单号等信息 +func (r *AlibabaAscpLogisticsConsignResendAPIRequest) SetConsignPkgs(_consignPkgs []TopConsignPkgRequest) error { + r._consignPkgs = _consignPkgs + r.Set("consign_pkgs", _consignPkgs) + return nil +} + +// ConsignPkgs Getter +func (r AlibabaAscpLogisticsConsignResendAPIRequest) GetConsignPkgs() []TopConsignPkgRequest { + return r._consignPkgs +} diff --git a/model/logistic/AlibabaAscpLogisticsConsignResendAPIResponse.go b/model/logistic/AlibabaAscpLogisticsConsignResendAPIResponse.go new file mode 100644 index 0000000000..1e61f628be --- /dev/null +++ b/model/logistic/AlibabaAscpLogisticsConsignResendAPIResponse.go @@ -0,0 +1,29 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改物流公司和运单号 API返回值 +alibaba.ascp.logistics.consign.resend + +支持卖家发货后修改运单号;支持在线下单和自己联系两种发货方式;使用条件: +1、必须是已发货订单,自己联系发货的必须24小时内才可修改;在线下单的,必须下单后物流公司未揽收成功前才可修改; +2、自己联系只能切换为自己联系的公司,在线下单也只能切换为在线下单的物流公司 +*/ +type AlibabaAscpLogisticsConsignResendAPIResponse struct { + model.CommonResponse + AlibabaAscpLogisticsConsignResendAPIResponseModel +} + +// 修改物流公司和运单号 成功返回结果 +type AlibabaAscpLogisticsConsignResendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_logistics_consign_resend_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlibabaAscpLogisticsConsignResendResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/logistic/AlibabaAscpLogisticsConsignResendResponse.go b/model/logistic/AlibabaAscpLogisticsConsignResendResponse.go deleted file mode 100644 index 4e5331f8c0..0000000000 --- a/model/logistic/AlibabaAscpLogisticsConsignResendResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改物流公司和运单号 API返回值 -alibaba.ascp.logistics.consign.resend - -支持卖家发货后修改运单号;支持在线下单和自己联系两种发货方式;使用条件: -1、必须是已发货订单,自己联系发货的必须24小时内才可修改;在线下单的,必须下单后物流公司未揽收成功前才可修改; -2、自己联系只能切换为自己联系的公司,在线下单也只能切换为在线下单的物流公司 -*/ -type AlibabaAscpLogisticsConsignResendAPIResponse struct { - model.CommonResponse - AlibabaAscpLogisticsConsignResendResponse -} - -// 修改物流公司和运单号 成功返回结果 -type AlibabaAscpLogisticsConsignResendResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_logistics_consign_resend_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlibabaAscpLogisticsConsignResendResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/logistic/AlibabaAscpLogisticsConsignResendResultDto.go b/model/logistic/AlibabaAscpLogisticsConsignResendResultDto.go new file mode 100644 index 0000000000..c737a5fd7a --- /dev/null +++ b/model/logistic/AlibabaAscpLogisticsConsignResendResultDto.go @@ -0,0 +1,7 @@ +package logistic + +// AlibabaAscpLogisticsConsignResendResultDto +type AlibabaAscpLogisticsConsignResendResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/logistic/AlibabaAscpLogisticsOfflineSendAPIRequest.go b/model/logistic/AlibabaAscpLogisticsOfflineSendAPIRequest.go new file mode 100644 index 0000000000..2c457d5d66 --- /dev/null +++ b/model/logistic/AlibabaAscpLogisticsOfflineSendAPIRequest.go @@ -0,0 +1,122 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +自己联系物流发货 API请求 +alibaba.ascp.logistics.offline.send + +用户调用该接口可实现自己联系发货,使用该接口发货,交易订单状态会直接变成卖家已发货 +*/ +type AlibabaAscpLogisticsOfflineSendAPIRequest struct { + model.Params + // 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址 + _senderId int64 + // feature参数格式 范例: identCode=tid1:识别码1,识别码2|tid2:识别码3;machineCode=tid3:3C机器号A,3C机器号B identCode为识别码的KEY,machineCode为3C的KEY,多个key之间用”;”分隔 “tid1:识别码1,识别码2|tid2:识别码3”为identCode对应的value。 "|"不同商品间的分隔符。 例1商品和2商品,之间就用"|"分开。 TID就是商品代表的子订单号,对应taobao.trade.fullinfo.get 接口获得的oid字段。(通过OID可以唯一定位到当前商品上) ":"TID和具体传入参数间的分隔符。冒号前表示TID,之后代表该商品的参数属性。 "," 属性间分隔符。(对应商品数量,当存在一个商品的数量超过1个时,用逗号分开)。 具体:当订单中A商品的数量为2个,其中手机串号分别为"12345","67890"。 参数格式:identCode=TIDA:12345,67890。 TIDA对应了A宝贝,冒号后用逗号分隔的"12345","67890".说明本订单A宝贝的数量为2,值分别为"12345","67890"。 当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。retailStoreId=12345,发货门店ID或仓信息。retailStoreType=STORE: 发货门店类别,STORE表示门店,WAREHOUSE表示电商仓。对于全渠道订单回传的商家,retailStoreId和retailStoreType字段为必填字段 + _feature string + // 淘宝交易ID + _tid string + // 需要拆单发货的子订单集合,针对的是一笔交易下有多个子订单需要分开发货的场景;1次可传人多个子订单号,子订单间用逗号隔开;为空表示不做拆单发货。 + _subTid string + // 包裹信息 + _consignPkgs []TopConsignPkgRequest + // 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。 如果为空,取的卖家的默认退货地址 + _cancelId int64 +} + +// 初始化AlibabaAscpLogisticsOfflineSendAPIRequest对象 +func NewAlibabaAscpLogisticsOfflineSendRequest() *AlibabaAscpLogisticsOfflineSendAPIRequest{ + return &AlibabaAscpLogisticsOfflineSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpLogisticsOfflineSendAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.logistics.offline.send" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpLogisticsOfflineSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SenderId Setter +// 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址 +func (r *AlibabaAscpLogisticsOfflineSendAPIRequest) SetSenderId(_senderId int64) error { + r._senderId = _senderId + r.Set("sender_id", _senderId) + return nil +} + +// SenderId Getter +func (r AlibabaAscpLogisticsOfflineSendAPIRequest) GetSenderId() int64 { + return r._senderId +} +// Feature Setter +// feature参数格式 范例: identCode=tid1:识别码1,识别码2|tid2:识别码3;machineCode=tid3:3C机器号A,3C机器号B identCode为识别码的KEY,machineCode为3C的KEY,多个key之间用”;”分隔 “tid1:识别码1,识别码2|tid2:识别码3”为identCode对应的value。 "|"不同商品间的分隔符。 例1商品和2商品,之间就用"|"分开。 TID就是商品代表的子订单号,对应taobao.trade.fullinfo.get 接口获得的oid字段。(通过OID可以唯一定位到当前商品上) ":"TID和具体传入参数间的分隔符。冒号前表示TID,之后代表该商品的参数属性。 "," 属性间分隔符。(对应商品数量,当存在一个商品的数量超过1个时,用逗号分开)。 具体:当订单中A商品的数量为2个,其中手机串号分别为"12345","67890"。 参数格式:identCode=TIDA:12345,67890。 TIDA对应了A宝贝,冒号后用逗号分隔的"12345","67890".说明本订单A宝贝的数量为2,值分别为"12345","67890"。 当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。retailStoreId=12345,发货门店ID或仓信息。retailStoreType=STORE: 发货门店类别,STORE表示门店,WAREHOUSE表示电商仓。对于全渠道订单回传的商家,retailStoreId和retailStoreType字段为必填字段 +func (r *AlibabaAscpLogisticsOfflineSendAPIRequest) SetFeature(_feature string) error { + r._feature = _feature + r.Set("feature", _feature) + return nil +} + +// Feature Getter +func (r AlibabaAscpLogisticsOfflineSendAPIRequest) GetFeature() string { + return r._feature +} +// Tid Setter +// 淘宝交易ID +func (r *AlibabaAscpLogisticsOfflineSendAPIRequest) SetTid(_tid string) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r AlibabaAscpLogisticsOfflineSendAPIRequest) GetTid() string { + return r._tid +} +// SubTid Setter +// 需要拆单发货的子订单集合,针对的是一笔交易下有多个子订单需要分开发货的场景;1次可传人多个子订单号,子订单间用逗号隔开;为空表示不做拆单发货。 +func (r *AlibabaAscpLogisticsOfflineSendAPIRequest) SetSubTid(_subTid string) error { + r._subTid = _subTid + r.Set("sub_tid", _subTid) + return nil +} + +// SubTid Getter +func (r AlibabaAscpLogisticsOfflineSendAPIRequest) GetSubTid() string { + return r._subTid +} +// ConsignPkgs Setter +// 包裹信息 +func (r *AlibabaAscpLogisticsOfflineSendAPIRequest) SetConsignPkgs(_consignPkgs []TopConsignPkgRequest) error { + r._consignPkgs = _consignPkgs + r.Set("consign_pkgs", _consignPkgs) + return nil +} + +// ConsignPkgs Getter +func (r AlibabaAscpLogisticsOfflineSendAPIRequest) GetConsignPkgs() []TopConsignPkgRequest { + return r._consignPkgs +} +// CancelId Setter +// 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。 如果为空,取的卖家的默认退货地址 +func (r *AlibabaAscpLogisticsOfflineSendAPIRequest) SetCancelId(_cancelId int64) error { + r._cancelId = _cancelId + r.Set("cancel_id", _cancelId) + return nil +} + +// CancelId Getter +func (r AlibabaAscpLogisticsOfflineSendAPIRequest) GetCancelId() int64 { + return r._cancelId +} diff --git a/model/logistic/AlibabaAscpLogisticsOfflineSendAPIResponse.go b/model/logistic/AlibabaAscpLogisticsOfflineSendAPIResponse.go new file mode 100644 index 0000000000..ce64b60996 --- /dev/null +++ b/model/logistic/AlibabaAscpLogisticsOfflineSendAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +自己联系物流发货 API返回值 +alibaba.ascp.logistics.offline.send + +用户调用该接口可实现自己联系发货,使用该接口发货,交易订单状态会直接变成卖家已发货 +*/ +type AlibabaAscpLogisticsOfflineSendAPIResponse struct { + model.CommonResponse + AlibabaAscpLogisticsOfflineSendAPIResponseModel +} + +// 自己联系物流发货 成功返回结果 +type AlibabaAscpLogisticsOfflineSendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_logistics_offline_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlibabaAscpLogisticsOfflineSendResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/logistic/AlibabaAscpLogisticsOfflineSendResponse.go b/model/logistic/AlibabaAscpLogisticsOfflineSendResponse.go deleted file mode 100644 index 8f9ba8fb18..0000000000 --- a/model/logistic/AlibabaAscpLogisticsOfflineSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -自己联系物流发货 API返回值 -alibaba.ascp.logistics.offline.send - -用户调用该接口可实现自己联系发货,使用该接口发货,交易订单状态会直接变成卖家已发货 -*/ -type AlibabaAscpLogisticsOfflineSendAPIResponse struct { - model.CommonResponse - AlibabaAscpLogisticsOfflineSendResponse -} - -// 自己联系物流发货 成功返回结果 -type AlibabaAscpLogisticsOfflineSendResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_logistics_offline_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlibabaAscpLogisticsOfflineSendResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/logistic/AlibabaAscpLogisticsOfflineSendResultDto.go b/model/logistic/AlibabaAscpLogisticsOfflineSendResultDto.go new file mode 100644 index 0000000000..4967a90f33 --- /dev/null +++ b/model/logistic/AlibabaAscpLogisticsOfflineSendResultDto.go @@ -0,0 +1,7 @@ +package logistic + +// AlibabaAscpLogisticsOfflineSendResultDto +type AlibabaAscpLogisticsOfflineSendResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/logistic/AlibabaEleFengniaoCancelMerchantAPIRequest.go b/model/logistic/AlibabaEleFengniaoCancelMerchantAPIRequest.go new file mode 100644 index 0000000000..f48b4a5954 --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoCancelMerchantAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商户取消 API请求 +alibaba.ele.fengniao.cancel.merchant + +商户取消配送 +*/ +type AlibabaEleFengniaoCancelMerchantAPIRequest struct { + model.Params + // 参数param + _param *Param +} + +// 初始化AlibabaEleFengniaoCancelMerchantAPIRequest对象 +func NewAlibabaEleFengniaoCancelMerchantRequest() *AlibabaEleFengniaoCancelMerchantAPIRequest{ + return &AlibabaEleFengniaoCancelMerchantAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleFengniaoCancelMerchantAPIRequest) GetApiMethodName() string { + return "alibaba.ele.fengniao.cancel.merchant" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleFengniaoCancelMerchantAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 参数param +func (r *AlibabaEleFengniaoCancelMerchantAPIRequest) SetParam(_param *Param) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaEleFengniaoCancelMerchantAPIRequest) GetParam() *Param { + return r._param +} diff --git a/model/logistic/AlibabaEleFengniaoCancelMerchantAPIResponse.go b/model/logistic/AlibabaEleFengniaoCancelMerchantAPIResponse.go new file mode 100644 index 0000000000..172cd5067a --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoCancelMerchantAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商户取消 API返回值 +alibaba.ele.fengniao.cancel.merchant + +商户取消配送 +*/ +type AlibabaEleFengniaoCancelMerchantAPIResponse struct { + model.CommonResponse + AlibabaEleFengniaoCancelMerchantAPIResponseModel +} + +// 商户取消 成功返回结果 +type AlibabaEleFengniaoCancelMerchantAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_fengniao_cancel_merchant_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/logistic/AlibabaEleFengniaoCancelMerchantResponse.go b/model/logistic/AlibabaEleFengniaoCancelMerchantResponse.go deleted file mode 100644 index dc314f7eb5..0000000000 --- a/model/logistic/AlibabaEleFengniaoCancelMerchantResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商户取消 API返回值 -alibaba.ele.fengniao.cancel.merchant - -商户取消配送 -*/ -type AlibabaEleFengniaoCancelMerchantAPIResponse struct { - model.CommonResponse - AlibabaEleFengniaoCancelMerchantResponse -} - -// 商户取消 成功返回结果 -type AlibabaEleFengniaoCancelMerchantResponse struct { - XMLName xml.Name `xml:"alibaba_ele_fengniao_cancel_merchant_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/logistic/AlibabaEleFengniaoCarrierCapacityQueryAPIRequest.go b/model/logistic/AlibabaEleFengniaoCarrierCapacityQueryAPIRequest.go new file mode 100644 index 0000000000..f096146441 --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoCarrierCapacityQueryAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +按照门店查询骑手运力状态查询 API请求 +alibaba.ele.fengniao.carrier.capacity.query + +提供给大润发,用于按照站点纬度查询大润发每个配送站的实时上班骑手数、到店骑手数、活跃骑手数量 +*/ +type AlibabaEleFengniaoCarrierCapacityQueryAPIRequest struct { + model.Params + // 系统自动生成 + _param *Param +} + +// 初始化AlibabaEleFengniaoCarrierCapacityQueryAPIRequest对象 +func NewAlibabaEleFengniaoCarrierCapacityQueryRequest() *AlibabaEleFengniaoCarrierCapacityQueryAPIRequest{ + return &AlibabaEleFengniaoCarrierCapacityQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleFengniaoCarrierCapacityQueryAPIRequest) GetApiMethodName() string { + return "alibaba.ele.fengniao.carrier.capacity.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleFengniaoCarrierCapacityQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 系统自动生成 +func (r *AlibabaEleFengniaoCarrierCapacityQueryAPIRequest) SetParam(_param *Param) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaEleFengniaoCarrierCapacityQueryAPIRequest) GetParam() *Param { + return r._param +} diff --git a/model/logistic/AlibabaEleFengniaoCarrierCapacityQueryAPIResponse.go b/model/logistic/AlibabaEleFengniaoCarrierCapacityQueryAPIResponse.go new file mode 100644 index 0000000000..a0118e945d --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoCarrierCapacityQueryAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +按照门店查询骑手运力状态查询 API返回值 +alibaba.ele.fengniao.carrier.capacity.query + +提供给大润发,用于按照站点纬度查询大润发每个配送站的实时上班骑手数、到店骑手数、活跃骑手数量 +*/ +type AlibabaEleFengniaoCarrierCapacityQueryAPIResponse struct { + model.CommonResponse + AlibabaEleFengniaoCarrierCapacityQueryAPIResponseModel +} + +// 按照门店查询骑手运力状态查询 成功返回结果 +type AlibabaEleFengniaoCarrierCapacityQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_fengniao_carrier_capacity_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Results []Capacities `json:"results,omitempty" xml:"results>capacities,omitempty"` +} diff --git a/model/logistic/AlibabaEleFengniaoCarrierCapacityQueryResponse.go b/model/logistic/AlibabaEleFengniaoCarrierCapacityQueryResponse.go deleted file mode 100644 index 71a1d03bab..0000000000 --- a/model/logistic/AlibabaEleFengniaoCarrierCapacityQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -按照门店查询骑手运力状态查询 API返回值 -alibaba.ele.fengniao.carrier.capacity.query - -提供给大润发,用于按照站点纬度查询大润发每个配送站的实时上班骑手数、到店骑手数、活跃骑手数量 -*/ -type AlibabaEleFengniaoCarrierCapacityQueryAPIResponse struct { - model.CommonResponse - AlibabaEleFengniaoCarrierCapacityQueryResponse -} - -// 按照门店查询骑手运力状态查询 成功返回结果 -type AlibabaEleFengniaoCarrierCapacityQueryResponse struct { - XMLName xml.Name `xml:"alibaba_ele_fengniao_carrier_capacity_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Results []Capacities `json:"results,omitempty" xml:"results>capacities,omitempty"` -} diff --git a/model/logistic/AlibabaEleFengniaoCarrierdriverLocationAPIRequest.go b/model/logistic/AlibabaEleFengniaoCarrierdriverLocationAPIRequest.go new file mode 100644 index 0000000000..0a76793906 --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoCarrierdriverLocationAPIRequest.go @@ -0,0 +1,66 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询骑手当前位置 API请求 +alibaba.ele.fengniao.carrierdriver.location + +查询骑手当前位置 +*/ +type AlibabaEleFengniaoCarrierdriverLocationAPIRequest struct { + model.Params + // appid + _appId string + // 外部订单号 + _partnerOrderCode string +} + +// 初始化AlibabaEleFengniaoCarrierdriverLocationAPIRequest对象 +func NewAlibabaEleFengniaoCarrierdriverLocationRequest() *AlibabaEleFengniaoCarrierdriverLocationAPIRequest{ + return &AlibabaEleFengniaoCarrierdriverLocationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleFengniaoCarrierdriverLocationAPIRequest) GetApiMethodName() string { + return "alibaba.ele.fengniao.carrierdriver.location" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleFengniaoCarrierdriverLocationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppId Setter +// appid +func (r *AlibabaEleFengniaoCarrierdriverLocationAPIRequest) SetAppId(_appId string) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r AlibabaEleFengniaoCarrierdriverLocationAPIRequest) GetAppId() string { + return r._appId +} +// PartnerOrderCode Setter +// 外部订单号 +func (r *AlibabaEleFengniaoCarrierdriverLocationAPIRequest) SetPartnerOrderCode(_partnerOrderCode string) error { + r._partnerOrderCode = _partnerOrderCode + r.Set("partner_order_code", _partnerOrderCode) + return nil +} + +// PartnerOrderCode Getter +func (r AlibabaEleFengniaoCarrierdriverLocationAPIRequest) GetPartnerOrderCode() string { + return r._partnerOrderCode +} diff --git a/model/logistic/AlibabaEleFengniaoCarrierdriverLocationAPIResponse.go b/model/logistic/AlibabaEleFengniaoCarrierdriverLocationAPIResponse.go new file mode 100644 index 0000000000..73c913cd6f --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoCarrierdriverLocationAPIResponse.go @@ -0,0 +1,35 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询骑手当前位置 API返回值 +alibaba.ele.fengniao.carrierdriver.location + +查询骑手当前位置 +*/ +type AlibabaEleFengniaoCarrierdriverLocationAPIResponse struct { + model.CommonResponse + AlibabaEleFengniaoCarrierdriverLocationAPIResponseModel +} + +// 查询骑手当前位置 成功返回结果 +type AlibabaEleFengniaoCarrierdriverLocationAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_fengniao_carrierdriver_location_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // location + Location *Location `json:"location,omitempty" xml:"location,omitempty"` + // 运单状态 + State int64 `json:"state,omitempty" xml:"state,omitempty"` + // 骑手电话 + CarrierDriverPhone string `json:"carrier_driver_phone,omitempty" xml:"carrier_driver_phone,omitempty"` + // 骑手姓名 + CarrierDriverName string `json:"carrier_driver_name,omitempty" xml:"carrier_driver_name,omitempty"` + // 运单状态变化时间点 + OccurredAt int64 `json:"occurred_at,omitempty" xml:"occurred_at,omitempty"` +} diff --git a/model/logistic/AlibabaEleFengniaoCarrierdriverLocationResponse.go b/model/logistic/AlibabaEleFengniaoCarrierdriverLocationResponse.go deleted file mode 100644 index 2ae7b0bdd1..0000000000 --- a/model/logistic/AlibabaEleFengniaoCarrierdriverLocationResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询骑手当前位置 API返回值 -alibaba.ele.fengniao.carrierdriver.location - -查询骑手当前位置 -*/ -type AlibabaEleFengniaoCarrierdriverLocationAPIResponse struct { - model.CommonResponse - AlibabaEleFengniaoCarrierdriverLocationResponse -} - -// 查询骑手当前位置 成功返回结果 -type AlibabaEleFengniaoCarrierdriverLocationResponse struct { - XMLName xml.Name `xml:"alibaba_ele_fengniao_carrierdriver_location_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // location - Location *Location `json:"location,omitempty" xml:"location,omitempty"` - // 运单状态 - State int64 `json:"state,omitempty" xml:"state,omitempty"` - // 骑手电话 - CarrierDriverPhone string `json:"carrier_driver_phone,omitempty" xml:"carrier_driver_phone,omitempty"` - // 骑手姓名 - CarrierDriverName string `json:"carrier_driver_name,omitempty" xml:"carrier_driver_name,omitempty"` - // 运单状态变化时间点 - OccurredAt int64 `json:"occurred_at,omitempty" xml:"occurred_at,omitempty"` -} diff --git a/model/logistic/AlibabaEleFengniaoChainstoreContractCancelAPIRequest.go b/model/logistic/AlibabaEleFengniaoChainstoreContractCancelAPIRequest.go new file mode 100644 index 0000000000..73e7ed65d6 --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoChainstoreContractCancelAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店解约接口 API请求 +alibaba.ele.fengniao.chainstore.contract.cancel + +调用成功后,门店和蜂鸟解除物流合同,不能再使用此门店推单 +*/ +type AlibabaEleFengniaoChainstoreContractCancelAPIRequest struct { + model.Params + // 系统自动生成 + _param *AlibabaEleFengniaoChainstoreContractCancelData +} + +// 初始化AlibabaEleFengniaoChainstoreContractCancelAPIRequest对象 +func NewAlibabaEleFengniaoChainstoreContractCancelRequest() *AlibabaEleFengniaoChainstoreContractCancelAPIRequest{ + return &AlibabaEleFengniaoChainstoreContractCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleFengniaoChainstoreContractCancelAPIRequest) GetApiMethodName() string { + return "alibaba.ele.fengniao.chainstore.contract.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleFengniaoChainstoreContractCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 系统自动生成 +func (r *AlibabaEleFengniaoChainstoreContractCancelAPIRequest) SetParam(_param *AlibabaEleFengniaoChainstoreContractCancelData) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaEleFengniaoChainstoreContractCancelAPIRequest) GetParam() *AlibabaEleFengniaoChainstoreContractCancelData { + return r._param +} diff --git a/model/logistic/AlibabaEleFengniaoChainstoreContractCancelAPIResponse.go b/model/logistic/AlibabaEleFengniaoChainstoreContractCancelAPIResponse.go new file mode 100644 index 0000000000..23b8a0b01e --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoChainstoreContractCancelAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店解约接口 API返回值 +alibaba.ele.fengniao.chainstore.contract.cancel + +调用成功后,门店和蜂鸟解除物流合同,不能再使用此门店推单 +*/ +type AlibabaEleFengniaoChainstoreContractCancelAPIResponse struct { + model.CommonResponse + AlibabaEleFengniaoChainstoreContractCancelAPIResponseModel +} + +// 门店解约接口 成功返回结果 +type AlibabaEleFengniaoChainstoreContractCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_fengniao_chainstore_contract_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // msg + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/logistic/AlibabaEleFengniaoChainstoreContractCancelResponse.go b/model/logistic/AlibabaEleFengniaoChainstoreContractCancelResponse.go deleted file mode 100644 index ad452c1946..0000000000 --- a/model/logistic/AlibabaEleFengniaoChainstoreContractCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店解约接口 API返回值 -alibaba.ele.fengniao.chainstore.contract.cancel - -调用成功后,门店和蜂鸟解除物流合同,不能再使用此门店推单 -*/ -type AlibabaEleFengniaoChainstoreContractCancelAPIResponse struct { - model.CommonResponse - AlibabaEleFengniaoChainstoreContractCancelResponse -} - -// 门店解约接口 成功返回结果 -type AlibabaEleFengniaoChainstoreContractCancelResponse struct { - XMLName xml.Name `xml:"alibaba_ele_fengniao_chainstore_contract_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // msg - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/logistic/AlibabaEleFengniaoChainstoreContractChangeAPIRequest.go b/model/logistic/AlibabaEleFengniaoChainstoreContractChangeAPIRequest.go new file mode 100644 index 0000000000..6fffc582c9 --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoChainstoreContractChangeAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店改签合同接口 API请求 +alibaba.ele.fengniao.chainstore.contract.change + +通过调用接口,门店改签物流服务包 +*/ +type AlibabaEleFengniaoChainstoreContractChangeAPIRequest struct { + model.Params + // 系统自动生成 + _param *Param +} + +// 初始化AlibabaEleFengniaoChainstoreContractChangeAPIRequest对象 +func NewAlibabaEleFengniaoChainstoreContractChangeRequest() *AlibabaEleFengniaoChainstoreContractChangeAPIRequest{ + return &AlibabaEleFengniaoChainstoreContractChangeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleFengniaoChainstoreContractChangeAPIRequest) GetApiMethodName() string { + return "alibaba.ele.fengniao.chainstore.contract.change" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleFengniaoChainstoreContractChangeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 系统自动生成 +func (r *AlibabaEleFengniaoChainstoreContractChangeAPIRequest) SetParam(_param *Param) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaEleFengniaoChainstoreContractChangeAPIRequest) GetParam() *Param { + return r._param +} diff --git a/model/logistic/AlibabaEleFengniaoChainstoreContractChangeAPIResponse.go b/model/logistic/AlibabaEleFengniaoChainstoreContractChangeAPIResponse.go new file mode 100644 index 0000000000..9ec01ddbd9 --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoChainstoreContractChangeAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店改签合同接口 API返回值 +alibaba.ele.fengniao.chainstore.contract.change + +通过调用接口,门店改签物流服务包 +*/ +type AlibabaEleFengniaoChainstoreContractChangeAPIResponse struct { + model.CommonResponse + AlibabaEleFengniaoChainstoreContractChangeAPIResponseModel +} + +// 门店改签合同接口 成功返回结果 +type AlibabaEleFengniaoChainstoreContractChangeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_fengniao_chainstore_contract_change_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // msg + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/logistic/AlibabaEleFengniaoChainstoreContractChangeResponse.go b/model/logistic/AlibabaEleFengniaoChainstoreContractChangeResponse.go deleted file mode 100644 index cd2ce0a1a1..0000000000 --- a/model/logistic/AlibabaEleFengniaoChainstoreContractChangeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店改签合同接口 API返回值 -alibaba.ele.fengniao.chainstore.contract.change - -通过调用接口,门店改签物流服务包 -*/ -type AlibabaEleFengniaoChainstoreContractChangeAPIResponse struct { - model.CommonResponse - AlibabaEleFengniaoChainstoreContractChangeResponse -} - -// 门店改签合同接口 成功返回结果 -type AlibabaEleFengniaoChainstoreContractChangeResponse struct { - XMLName xml.Name `xml:"alibaba_ele_fengniao_chainstore_contract_change_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // msg - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/logistic/AlibabaEleFengniaoChainstoreRangesAPIRequest.go b/model/logistic/AlibabaEleFengniaoChainstoreRangesAPIRequest.go new file mode 100644 index 0000000000..8dfb284d90 --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoChainstoreRangesAPIRequest.go @@ -0,0 +1,80 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +蜂鸟查询门店配送范围接口 API请求 +alibaba.ele.fengniao.chainstore.ranges + +蜂鸟查询门店配送范围接口 +*/ +type AlibabaEleFengniaoChainstoreRangesAPIRequest struct { + model.Params + // 商户code + _merchantCode string + // appId + _appId string + // 门店code + _chainstoreCode string +} + +// 初始化AlibabaEleFengniaoChainstoreRangesAPIRequest对象 +func NewAlibabaEleFengniaoChainstoreRangesRequest() *AlibabaEleFengniaoChainstoreRangesAPIRequest{ + return &AlibabaEleFengniaoChainstoreRangesAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleFengniaoChainstoreRangesAPIRequest) GetApiMethodName() string { + return "alibaba.ele.fengniao.chainstore.ranges" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleFengniaoChainstoreRangesAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MerchantCode Setter +// 商户code +func (r *AlibabaEleFengniaoChainstoreRangesAPIRequest) SetMerchantCode(_merchantCode string) error { + r._merchantCode = _merchantCode + r.Set("merchant_code", _merchantCode) + return nil +} + +// MerchantCode Getter +func (r AlibabaEleFengniaoChainstoreRangesAPIRequest) GetMerchantCode() string { + return r._merchantCode +} +// AppId Setter +// appId +func (r *AlibabaEleFengniaoChainstoreRangesAPIRequest) SetAppId(_appId string) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r AlibabaEleFengniaoChainstoreRangesAPIRequest) GetAppId() string { + return r._appId +} +// ChainstoreCode Setter +// 门店code +func (r *AlibabaEleFengniaoChainstoreRangesAPIRequest) SetChainstoreCode(_chainstoreCode string) error { + r._chainstoreCode = _chainstoreCode + r.Set("chainstore_code", _chainstoreCode) + return nil +} + +// ChainstoreCode Getter +func (r AlibabaEleFengniaoChainstoreRangesAPIRequest) GetChainstoreCode() string { + return r._chainstoreCode +} diff --git a/model/logistic/AlibabaEleFengniaoChainstoreRangesAPIResponse.go b/model/logistic/AlibabaEleFengniaoChainstoreRangesAPIResponse.go new file mode 100644 index 0000000000..6ede366abf --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoChainstoreRangesAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +蜂鸟查询门店配送范围接口 API返回值 +alibaba.ele.fengniao.chainstore.ranges + +蜂鸟查询门店配送范围接口 +*/ +type AlibabaEleFengniaoChainstoreRangesAPIResponse struct { + model.CommonResponse + AlibabaEleFengniaoChainstoreRangesAPIResponseModel +} + +// 蜂鸟查询门店配送范围接口 成功返回结果 +type AlibabaEleFengniaoChainstoreRangesAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_fengniao_chainstore_ranges_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + RangeList []AlibabaEleFengniaoChainstoreRangesResult `json:"range_list,omitempty" xml:"range_list>alibaba_ele_fengniao_chainstore_ranges_result,omitempty"` +} diff --git a/model/logistic/AlibabaEleFengniaoChainstoreRangesResponse.go b/model/logistic/AlibabaEleFengniaoChainstoreRangesResponse.go deleted file mode 100644 index f8b063b160..0000000000 --- a/model/logistic/AlibabaEleFengniaoChainstoreRangesResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -蜂鸟查询门店配送范围接口 API返回值 -alibaba.ele.fengniao.chainstore.ranges - -蜂鸟查询门店配送范围接口 -*/ -type AlibabaEleFengniaoChainstoreRangesAPIResponse struct { - model.CommonResponse - AlibabaEleFengniaoChainstoreRangesResponse -} - -// 蜂鸟查询门店配送范围接口 成功返回结果 -type AlibabaEleFengniaoChainstoreRangesResponse struct { - XMLName xml.Name `xml:"alibaba_ele_fengniao_chainstore_ranges_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - RangeList []AlibabaEleFengniaoChainstoreRangesResult `json:"range_list,omitempty" xml:"range_list>alibaba_ele_fengniao_chainstore_ranges_result,omitempty"` -} diff --git a/model/logistic/AlibabaEleFengniaoChainstoreUpdateAPIRequest.go b/model/logistic/AlibabaEleFengniaoChainstoreUpdateAPIRequest.go new file mode 100644 index 0000000000..f68fcb810d --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoChainstoreUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改门店信息接口 API请求 +alibaba.ele.fengniao.chainstore.update + +修改门店的经纬度,文本地址,电话,门店名 +*/ +type AlibabaEleFengniaoChainstoreUpdateAPIRequest struct { + model.Params + // 入参 + _param *Param +} + +// 初始化AlibabaEleFengniaoChainstoreUpdateAPIRequest对象 +func NewAlibabaEleFengniaoChainstoreUpdateRequest() *AlibabaEleFengniaoChainstoreUpdateAPIRequest{ + return &AlibabaEleFengniaoChainstoreUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleFengniaoChainstoreUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.ele.fengniao.chainstore.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleFengniaoChainstoreUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *AlibabaEleFengniaoChainstoreUpdateAPIRequest) SetParam(_param *Param) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaEleFengniaoChainstoreUpdateAPIRequest) GetParam() *Param { + return r._param +} diff --git a/model/logistic/AlibabaEleFengniaoChainstoreUpdateAPIResponse.go b/model/logistic/AlibabaEleFengniaoChainstoreUpdateAPIResponse.go new file mode 100644 index 0000000000..6b303ee84f --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoChainstoreUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改门店信息接口 API返回值 +alibaba.ele.fengniao.chainstore.update + +修改门店的经纬度,文本地址,电话,门店名 +*/ +type AlibabaEleFengniaoChainstoreUpdateAPIResponse struct { + model.CommonResponse + AlibabaEleFengniaoChainstoreUpdateAPIResponseModel +} + +// 修改门店信息接口 成功返回结果 +type AlibabaEleFengniaoChainstoreUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_fengniao_chainstore_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/logistic/AlibabaEleFengniaoChainstoreUpdateResponse.go b/model/logistic/AlibabaEleFengniaoChainstoreUpdateResponse.go deleted file mode 100644 index 10b7100b76..0000000000 --- a/model/logistic/AlibabaEleFengniaoChainstoreUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改门店信息接口 API返回值 -alibaba.ele.fengniao.chainstore.update - -修改门店的经纬度,文本地址,电话,门店名 -*/ -type AlibabaEleFengniaoChainstoreUpdateAPIResponse struct { - model.CommonResponse - AlibabaEleFengniaoChainstoreUpdateResponse -} - -// 修改门店信息接口 成功返回结果 -type AlibabaEleFengniaoChainstoreUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_ele_fengniao_chainstore_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/logistic/AlibabaEleFengniaoMerchantContractCancelAPIRequest.go b/model/logistic/AlibabaEleFengniaoMerchantContractCancelAPIRequest.go new file mode 100644 index 0000000000..c5d29d74f1 --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoMerchantContractCancelAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +蜂鸟商户解约接口 API请求 +alibaba.ele.fengniao.merchant.contract.cancel + +通过调用此接口,商家及商家下的所有门店解除蜂鸟物流服务 +*/ +type AlibabaEleFengniaoMerchantContractCancelAPIRequest struct { + model.Params + // 系统自动生成 + _param *Param +} + +// 初始化AlibabaEleFengniaoMerchantContractCancelAPIRequest对象 +func NewAlibabaEleFengniaoMerchantContractCancelRequest() *AlibabaEleFengniaoMerchantContractCancelAPIRequest{ + return &AlibabaEleFengniaoMerchantContractCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleFengniaoMerchantContractCancelAPIRequest) GetApiMethodName() string { + return "alibaba.ele.fengniao.merchant.contract.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleFengniaoMerchantContractCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 系统自动生成 +func (r *AlibabaEleFengniaoMerchantContractCancelAPIRequest) SetParam(_param *Param) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaEleFengniaoMerchantContractCancelAPIRequest) GetParam() *Param { + return r._param +} diff --git a/model/logistic/AlibabaEleFengniaoMerchantContractCancelAPIResponse.go b/model/logistic/AlibabaEleFengniaoMerchantContractCancelAPIResponse.go new file mode 100644 index 0000000000..d252a69416 --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoMerchantContractCancelAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +蜂鸟商户解约接口 API返回值 +alibaba.ele.fengniao.merchant.contract.cancel + +通过调用此接口,商家及商家下的所有门店解除蜂鸟物流服务 +*/ +type AlibabaEleFengniaoMerchantContractCancelAPIResponse struct { + model.CommonResponse + AlibabaEleFengniaoMerchantContractCancelAPIResponseModel +} + +// 蜂鸟商户解约接口 成功返回结果 +type AlibabaEleFengniaoMerchantContractCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_fengniao_merchant_contract_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/logistic/AlibabaEleFengniaoMerchantContractCancelResponse.go b/model/logistic/AlibabaEleFengniaoMerchantContractCancelResponse.go deleted file mode 100644 index 647cc69407..0000000000 --- a/model/logistic/AlibabaEleFengniaoMerchantContractCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -蜂鸟商户解约接口 API返回值 -alibaba.ele.fengniao.merchant.contract.cancel - -通过调用此接口,商家及商家下的所有门店解除蜂鸟物流服务 -*/ -type AlibabaEleFengniaoMerchantContractCancelAPIResponse struct { - model.CommonResponse - AlibabaEleFengniaoMerchantContractCancelResponse -} - -// 蜂鸟商户解约接口 成功返回结果 -type AlibabaEleFengniaoMerchantContractCancelResponse struct { - XMLName xml.Name `xml:"alibaba_ele_fengniao_merchant_contract_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/logistic/AlibabaEleFengniaoOrderPushAPIRequest.go b/model/logistic/AlibabaEleFengniaoOrderPushAPIRequest.go new file mode 100644 index 0000000000..929cc70d1e --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoOrderPushAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推送订单 API请求 +alibaba.ele.fengniao.order.push + +推送淘宝订单至蜂鸟开放平台配送 +*/ +type AlibabaEleFengniaoOrderPushAPIRequest struct { + model.Params + // 参数param + _param *Param +} + +// 初始化AlibabaEleFengniaoOrderPushAPIRequest对象 +func NewAlibabaEleFengniaoOrderPushRequest() *AlibabaEleFengniaoOrderPushAPIRequest{ + return &AlibabaEleFengniaoOrderPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleFengniaoOrderPushAPIRequest) GetApiMethodName() string { + return "alibaba.ele.fengniao.order.push" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleFengniaoOrderPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 参数param +func (r *AlibabaEleFengniaoOrderPushAPIRequest) SetParam(_param *Param) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaEleFengniaoOrderPushAPIRequest) GetParam() *Param { + return r._param +} diff --git a/model/logistic/AlibabaEleFengniaoOrderPushAPIResponse.go b/model/logistic/AlibabaEleFengniaoOrderPushAPIResponse.go new file mode 100644 index 0000000000..bcfe79b651 --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoOrderPushAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推送订单 API返回值 +alibaba.ele.fengniao.order.push + +推送淘宝订单至蜂鸟开放平台配送 +*/ +type AlibabaEleFengniaoOrderPushAPIResponse struct { + model.CommonResponse + AlibabaEleFengniaoOrderPushAPIResponseModel +} + +// 推送订单 成功返回结果 +type AlibabaEleFengniaoOrderPushAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_fengniao_order_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // msg + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/logistic/AlibabaEleFengniaoOrderPushResponse.go b/model/logistic/AlibabaEleFengniaoOrderPushResponse.go deleted file mode 100644 index c20c62279e..0000000000 --- a/model/logistic/AlibabaEleFengniaoOrderPushResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推送订单 API返回值 -alibaba.ele.fengniao.order.push - -推送淘宝订单至蜂鸟开放平台配送 -*/ -type AlibabaEleFengniaoOrderPushAPIResponse struct { - model.CommonResponse - AlibabaEleFengniaoOrderPushResponse -} - -// 推送订单 成功返回结果 -type AlibabaEleFengniaoOrderPushResponse struct { - XMLName xml.Name `xml:"alibaba_ele_fengniao_order_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // msg - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/logistic/AlibabaEleFengniaoOrderQueryAPIRequest.go b/model/logistic/AlibabaEleFengniaoOrderQueryAPIRequest.go new file mode 100644 index 0000000000..60e3f0748b --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoOrderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询订单基本信息 API请求 +alibaba.ele.fengniao.order.query + +查询订单基本信息 +*/ +type AlibabaEleFengniaoOrderQueryAPIRequest struct { + model.Params + // 参数 + _param *Param +} + +// 初始化AlibabaEleFengniaoOrderQueryAPIRequest对象 +func NewAlibabaEleFengniaoOrderQueryRequest() *AlibabaEleFengniaoOrderQueryAPIRequest{ + return &AlibabaEleFengniaoOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleFengniaoOrderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.ele.fengniao.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleFengniaoOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 参数 +func (r *AlibabaEleFengniaoOrderQueryAPIRequest) SetParam(_param *Param) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaEleFengniaoOrderQueryAPIRequest) GetParam() *Param { + return r._param +} diff --git a/model/logistic/AlibabaEleFengniaoOrderQueryAPIResponse.go b/model/logistic/AlibabaEleFengniaoOrderQueryAPIResponse.go new file mode 100644 index 0000000000..a5f4456334 --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoOrderQueryAPIResponse.go @@ -0,0 +1,37 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询订单基本信息 API返回值 +alibaba.ele.fengniao.order.query + +查询订单基本信息 +*/ +type AlibabaEleFengniaoOrderQueryAPIResponse struct { + model.CommonResponse + AlibabaEleFengniaoOrderQueryAPIResponseModel +} + +// 查询订单基本信息 成功返回结果 +type AlibabaEleFengniaoOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_fengniao_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // kvs + Kvs []Kvs `json:"kvs,omitempty" xml:"kvs>kvs,omitempty"` + // 收件人经度 + ReceiverLongitude string `json:"receiver_longitude,omitempty" xml:"receiver_longitude,omitempty"` + // 寄件人纬度 + TransportLatitude string `json:"transport_latitude,omitempty" xml:"transport_latitude,omitempty"` + // 寄件人经度 + TransportLongitude string `json:"transport_longitude,omitempty" xml:"transport_longitude,omitempty"` + // 订单号 + OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"` + // 收件人纬度 + ReceiverLatitude string `json:"receiver_latitude,omitempty" xml:"receiver_latitude,omitempty"` +} diff --git a/model/logistic/AlibabaEleFengniaoOrderQueryResponse.go b/model/logistic/AlibabaEleFengniaoOrderQueryResponse.go deleted file mode 100644 index 4ee0c370a2..0000000000 --- a/model/logistic/AlibabaEleFengniaoOrderQueryResponse.go +++ /dev/null @@ -1,37 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询订单基本信息 API返回值 -alibaba.ele.fengniao.order.query - -查询订单基本信息 -*/ -type AlibabaEleFengniaoOrderQueryAPIResponse struct { - model.CommonResponse - AlibabaEleFengniaoOrderQueryResponse -} - -// 查询订单基本信息 成功返回结果 -type AlibabaEleFengniaoOrderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_ele_fengniao_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // kvs - Kvs []Kvs `json:"kvs,omitempty" xml:"kvs>kvs,omitempty"` - // 收件人经度 - ReceiverLongitude string `json:"receiver_longitude,omitempty" xml:"receiver_longitude,omitempty"` - // 寄件人纬度 - TransportLatitude string `json:"transport_latitude,omitempty" xml:"transport_latitude,omitempty"` - // 寄件人经度 - TransportLongitude string `json:"transport_longitude,omitempty" xml:"transport_longitude,omitempty"` - // 订单号 - OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"` - // 收件人纬度 - ReceiverLatitude string `json:"receiver_latitude,omitempty" xml:"receiver_latitude,omitempty"` -} diff --git a/model/logistic/AlibabaEleFengniaoServicePackageQueryAPIRequest.go b/model/logistic/AlibabaEleFengniaoServicePackageQueryAPIRequest.go new file mode 100644 index 0000000000..8ad2ef6518 --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoServicePackageQueryAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +预采购服务包查询接口 API请求 +alibaba.ele.fengniao.service.package.query + +查询门店所在经纬度可用服务包的接口 +*/ +type AlibabaEleFengniaoServicePackageQueryAPIRequest struct { + model.Params + // 入参 + _param *Param +} + +// 初始化AlibabaEleFengniaoServicePackageQueryAPIRequest对象 +func NewAlibabaEleFengniaoServicePackageQueryRequest() *AlibabaEleFengniaoServicePackageQueryAPIRequest{ + return &AlibabaEleFengniaoServicePackageQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleFengniaoServicePackageQueryAPIRequest) GetApiMethodName() string { + return "alibaba.ele.fengniao.service.package.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleFengniaoServicePackageQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *AlibabaEleFengniaoServicePackageQueryAPIRequest) SetParam(_param *Param) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaEleFengniaoServicePackageQueryAPIRequest) GetParam() *Param { + return r._param +} diff --git a/model/logistic/AlibabaEleFengniaoServicePackageQueryAPIResponse.go b/model/logistic/AlibabaEleFengniaoServicePackageQueryAPIResponse.go new file mode 100644 index 0000000000..c8a98935ac --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoServicePackageQueryAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +预采购服务包查询接口 API返回值 +alibaba.ele.fengniao.service.package.query + +查询门店所在经纬度可用服务包的接口 +*/ +type AlibabaEleFengniaoServicePackageQueryAPIResponse struct { + model.CommonResponse + AlibabaEleFengniaoServicePackageQueryAPIResponseModel +} + +// 预采购服务包查询接口 成功返回结果 +type AlibabaEleFengniaoServicePackageQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_fengniao_service_package_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // servicePackages + ServicePackages []AlibabaEleFengniaoServicePackageQueryResult `json:"service_packages,omitempty" xml:"service_packages>alibaba_ele_fengniao_service_package_query_result,omitempty"` +} diff --git a/model/logistic/AlibabaEleFengniaoServicePackageQueryResponse.go b/model/logistic/AlibabaEleFengniaoServicePackageQueryResponse.go deleted file mode 100644 index 19fe4b282b..0000000000 --- a/model/logistic/AlibabaEleFengniaoServicePackageQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -预采购服务包查询接口 API返回值 -alibaba.ele.fengniao.service.package.query - -查询门店所在经纬度可用服务包的接口 -*/ -type AlibabaEleFengniaoServicePackageQueryAPIResponse struct { - model.CommonResponse - AlibabaEleFengniaoServicePackageQueryResponse -} - -// 预采购服务包查询接口 成功返回结果 -type AlibabaEleFengniaoServicePackageQueryResponse struct { - XMLName xml.Name `xml:"alibaba_ele_fengniao_service_package_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // servicePackages - ServicePackages []AlibabaEleFengniaoServicePackageQueryResult `json:"service_packages,omitempty" xml:"service_packages>alibaba_ele_fengniao_service_package_query_result,omitempty"` -} diff --git a/model/logistic/AlibabaEleFengniaoShippingorderEventAPIRequest.go b/model/logistic/AlibabaEleFengniaoShippingorderEventAPIRequest.go new file mode 100644 index 0000000000..81c89da8a1 --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoShippingorderEventAPIRequest.go @@ -0,0 +1,66 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询运单事件信息 API请求 +alibaba.ele.fengniao.shippingorder.event + +查询运单事件信息 +*/ +type AlibabaEleFengniaoShippingorderEventAPIRequest struct { + model.Params + // appid + _appId string + // 外部订单号 + _partnerOrderCode string +} + +// 初始化AlibabaEleFengniaoShippingorderEventAPIRequest对象 +func NewAlibabaEleFengniaoShippingorderEventRequest() *AlibabaEleFengniaoShippingorderEventAPIRequest{ + return &AlibabaEleFengniaoShippingorderEventAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleFengniaoShippingorderEventAPIRequest) GetApiMethodName() string { + return "alibaba.ele.fengniao.shippingorder.event" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleFengniaoShippingorderEventAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppId Setter +// appid +func (r *AlibabaEleFengniaoShippingorderEventAPIRequest) SetAppId(_appId string) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r AlibabaEleFengniaoShippingorderEventAPIRequest) GetAppId() string { + return r._appId +} +// PartnerOrderCode Setter +// 外部订单号 +func (r *AlibabaEleFengniaoShippingorderEventAPIRequest) SetPartnerOrderCode(_partnerOrderCode string) error { + r._partnerOrderCode = _partnerOrderCode + r.Set("partner_order_code", _partnerOrderCode) + return nil +} + +// PartnerOrderCode Getter +func (r AlibabaEleFengniaoShippingorderEventAPIRequest) GetPartnerOrderCode() string { + return r._partnerOrderCode +} diff --git a/model/logistic/AlibabaEleFengniaoShippingorderEventAPIResponse.go b/model/logistic/AlibabaEleFengniaoShippingorderEventAPIResponse.go new file mode 100644 index 0000000000..c16d21df4d --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoShippingorderEventAPIResponse.go @@ -0,0 +1,33 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询运单事件信息 API返回值 +alibaba.ele.fengniao.shippingorder.event + +查询运单事件信息 +*/ +type AlibabaEleFengniaoShippingorderEventAPIResponse struct { + model.CommonResponse + AlibabaEleFengniaoShippingorderEventAPIResponseModel +} + +// 查询运单事件信息 成功返回结果 +type AlibabaEleFengniaoShippingorderEventAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_fengniao_shippingorder_event_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // shippingOrderEvents + ShippingOrderEvents []ShippingOrderEvent `json:"shipping_order_events,omitempty" xml:"shipping_order_events>shipping_order_event,omitempty"` + // 终态时间 + FinishAt int64 `json:"finish_at,omitempty" xml:"finish_at,omitempty"` + // MERCHANT_CANCEL:商家取消,DELIVERY_TIMEOUT:配送超时,系统标记异常 + ShippingRemarkCode string `json:"shipping_remark_code,omitempty" xml:"shipping_remark_code,omitempty"` + // 骑手预计送达时间 + PredictDeliveryAt int64 `json:"predict_delivery_at,omitempty" xml:"predict_delivery_at,omitempty"` +} diff --git a/model/logistic/AlibabaEleFengniaoShippingorderEventResponse.go b/model/logistic/AlibabaEleFengniaoShippingorderEventResponse.go deleted file mode 100644 index 7b940b2ec4..0000000000 --- a/model/logistic/AlibabaEleFengniaoShippingorderEventResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询运单事件信息 API返回值 -alibaba.ele.fengniao.shippingorder.event - -查询运单事件信息 -*/ -type AlibabaEleFengniaoShippingorderEventAPIResponse struct { - model.CommonResponse - AlibabaEleFengniaoShippingorderEventResponse -} - -// 查询运单事件信息 成功返回结果 -type AlibabaEleFengniaoShippingorderEventResponse struct { - XMLName xml.Name `xml:"alibaba_ele_fengniao_shippingorder_event_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // shippingOrderEvents - ShippingOrderEvents []ShippingOrderEvent `json:"shipping_order_events,omitempty" xml:"shipping_order_events>shipping_order_event,omitempty"` - // 终态时间 - FinishAt int64 `json:"finish_at,omitempty" xml:"finish_at,omitempty"` - // MERCHANT_CANCEL:商家取消,DELIVERY_TIMEOUT:配送超时,系统标记异常 - ShippingRemarkCode string `json:"shipping_remark_code,omitempty" xml:"shipping_remark_code,omitempty"` - // 骑手预计送达时间 - PredictDeliveryAt int64 `json:"predict_delivery_at,omitempty" xml:"predict_delivery_at,omitempty"` -} diff --git a/model/logistic/AlibabaEleFengniaoTradeUpdateAPIRequest.go b/model/logistic/AlibabaEleFengniaoTradeUpdateAPIRequest.go new file mode 100644 index 0000000000..8c196ad70f --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoTradeUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新蜂鸟扣费状态 API请求 +alibaba.ele.fengniao.trade.update + +汇金扣费成功后,回调该接口更新扣费状态 +*/ +type AlibabaEleFengniaoTradeUpdateAPIRequest struct { + model.Params + // param 参数 + _param *Param +} + +// 初始化AlibabaEleFengniaoTradeUpdateAPIRequest对象 +func NewAlibabaEleFengniaoTradeUpdateRequest() *AlibabaEleFengniaoTradeUpdateAPIRequest{ + return &AlibabaEleFengniaoTradeUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleFengniaoTradeUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.ele.fengniao.trade.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleFengniaoTradeUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// param 参数 +func (r *AlibabaEleFengniaoTradeUpdateAPIRequest) SetParam(_param *Param) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaEleFengniaoTradeUpdateAPIRequest) GetParam() *Param { + return r._param +} diff --git a/model/logistic/AlibabaEleFengniaoTradeUpdateAPIResponse.go b/model/logistic/AlibabaEleFengniaoTradeUpdateAPIResponse.go new file mode 100644 index 0000000000..96e1a2908c --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoTradeUpdateAPIResponse.go @@ -0,0 +1,29 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新蜂鸟扣费状态 API返回值 +alibaba.ele.fengniao.trade.update + +汇金扣费成功后,回调该接口更新扣费状态 +*/ +type AlibabaEleFengniaoTradeUpdateAPIResponse struct { + model.CommonResponse + AlibabaEleFengniaoTradeUpdateAPIResponseModel +} + +// 更新蜂鸟扣费状态 成功返回结果 +type AlibabaEleFengniaoTradeUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_fengniao_trade_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 1:成功 0:失败 + Status int64 `json:"status,omitempty" xml:"status,omitempty"` + // 无此交易记录 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/logistic/AlibabaEleFengniaoTradeUpdateResponse.go b/model/logistic/AlibabaEleFengniaoTradeUpdateResponse.go deleted file mode 100644 index d2d889ad27..0000000000 --- a/model/logistic/AlibabaEleFengniaoTradeUpdateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新蜂鸟扣费状态 API返回值 -alibaba.ele.fengniao.trade.update - -汇金扣费成功后,回调该接口更新扣费状态 -*/ -type AlibabaEleFengniaoTradeUpdateAPIResponse struct { - model.CommonResponse - AlibabaEleFengniaoTradeUpdateResponse -} - -// 更新蜂鸟扣费状态 成功返回结果 -type AlibabaEleFengniaoTradeUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_ele_fengniao_trade_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 1:成功 0:失败 - Status int64 `json:"status,omitempty" xml:"status,omitempty"` - // 无此交易记录 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/logistic/AlibabaEleFengniaoUserTimeQueryAPIRequest.go b/model/logistic/AlibabaEleFengniaoUserTimeQueryAPIRequest.go new file mode 100644 index 0000000000..95ca791cc9 --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoUserTimeQueryAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +蜂鸟询用户T API请求 +alibaba.ele.fengniao.user.time.query + +蜂鸟询用户T +*/ +type AlibabaEleFengniaoUserTimeQueryAPIRequest struct { + model.Params + // 询T入参 + _param *PredictDeliveryTimeParam +} + +// 初始化AlibabaEleFengniaoUserTimeQueryAPIRequest对象 +func NewAlibabaEleFengniaoUserTimeQueryRequest() *AlibabaEleFengniaoUserTimeQueryAPIRequest{ + return &AlibabaEleFengniaoUserTimeQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaEleFengniaoUserTimeQueryAPIRequest) GetApiMethodName() string { + return "alibaba.ele.fengniao.user.time.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaEleFengniaoUserTimeQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 询T入参 +func (r *AlibabaEleFengniaoUserTimeQueryAPIRequest) SetParam(_param *PredictDeliveryTimeParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaEleFengniaoUserTimeQueryAPIRequest) GetParam() *PredictDeliveryTimeParam { + return r._param +} diff --git a/model/logistic/AlibabaEleFengniaoUserTimeQueryAPIResponse.go b/model/logistic/AlibabaEleFengniaoUserTimeQueryAPIResponse.go new file mode 100644 index 0000000000..417f787500 --- /dev/null +++ b/model/logistic/AlibabaEleFengniaoUserTimeQueryAPIResponse.go @@ -0,0 +1,29 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +蜂鸟询用户T API返回值 +alibaba.ele.fengniao.user.time.query + +蜂鸟询用户T +*/ +type AlibabaEleFengniaoUserTimeQueryAPIResponse struct { + model.CommonResponse + AlibabaEleFengniaoUserTimeQueryAPIResponseModel +} + +// 蜂鸟询用户T 成功返回结果 +type AlibabaEleFengniaoUserTimeQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ele_fengniao_user_time_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 骑手预计时间 + CarrierPredictDeliveryTime int64 `json:"carrier_predict_delivery_time,omitempty" xml:"carrier_predict_delivery_time,omitempty"` + // 用户预计时间 + CustomerPredictDeliveryTime int64 `json:"customer_predict_delivery_time,omitempty" xml:"customer_predict_delivery_time,omitempty"` +} diff --git a/model/logistic/AlibabaEleFengniaoUserTimeQueryResponse.go b/model/logistic/AlibabaEleFengniaoUserTimeQueryResponse.go deleted file mode 100644 index e68c5ce041..0000000000 --- a/model/logistic/AlibabaEleFengniaoUserTimeQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -蜂鸟询用户T API返回值 -alibaba.ele.fengniao.user.time.query - -蜂鸟询用户T -*/ -type AlibabaEleFengniaoUserTimeQueryAPIResponse struct { - model.CommonResponse - AlibabaEleFengniaoUserTimeQueryResponse -} - -// 蜂鸟询用户T 成功返回结果 -type AlibabaEleFengniaoUserTimeQueryResponse struct { - XMLName xml.Name `xml:"alibaba_ele_fengniao_user_time_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 骑手预计时间 - CarrierPredictDeliveryTime int64 `json:"carrier_predict_delivery_time,omitempty" xml:"carrier_predict_delivery_time,omitempty"` - // 用户预计时间 - CustomerPredictDeliveryTime int64 `json:"customer_predict_delivery_time,omitempty" xml:"customer_predict_delivery_time,omitempty"` -} diff --git a/model/logistic/AlibabaTclsFulfillQaOrderCreateAPIRequest.go b/model/logistic/AlibabaTclsFulfillQaOrderCreateAPIRequest.go new file mode 100644 index 0000000000..8517228625 --- /dev/null +++ b/model/logistic/AlibabaTclsFulfillQaOrderCreateAPIRequest.go @@ -0,0 +1,94 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创单接口 API请求 +alibaba.tcls.fulfill.qa.order.create + +根据历史测试履约单号,复制一个同样镜像的履约单号并下发给大润发仓(api实现已经限制了测试数据) +*/ +type AlibabaTclsFulfillQaOrderCreateAPIRequest struct { + model.Params + // 原始履约单号 + _fulfillOrderId string + // 目标ip + _targetIp string + // 执行人姓名 + _creator string + // 执行人工号 + _jobNo string +} + +// 初始化AlibabaTclsFulfillQaOrderCreateAPIRequest对象 +func NewAlibabaTclsFulfillQaOrderCreateRequest() *AlibabaTclsFulfillQaOrderCreateAPIRequest{ + return &AlibabaTclsFulfillQaOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTclsFulfillQaOrderCreateAPIRequest) GetApiMethodName() string { + return "alibaba.tcls.fulfill.qa.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTclsFulfillQaOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FulfillOrderId Setter +// 原始履约单号 +func (r *AlibabaTclsFulfillQaOrderCreateAPIRequest) SetFulfillOrderId(_fulfillOrderId string) error { + r._fulfillOrderId = _fulfillOrderId + r.Set("fulfill_order_id", _fulfillOrderId) + return nil +} + +// FulfillOrderId Getter +func (r AlibabaTclsFulfillQaOrderCreateAPIRequest) GetFulfillOrderId() string { + return r._fulfillOrderId +} +// TargetIp Setter +// 目标ip +func (r *AlibabaTclsFulfillQaOrderCreateAPIRequest) SetTargetIp(_targetIp string) error { + r._targetIp = _targetIp + r.Set("target_ip", _targetIp) + return nil +} + +// TargetIp Getter +func (r AlibabaTclsFulfillQaOrderCreateAPIRequest) GetTargetIp() string { + return r._targetIp +} +// Creator Setter +// 执行人姓名 +func (r *AlibabaTclsFulfillQaOrderCreateAPIRequest) SetCreator(_creator string) error { + r._creator = _creator + r.Set("creator", _creator) + return nil +} + +// Creator Getter +func (r AlibabaTclsFulfillQaOrderCreateAPIRequest) GetCreator() string { + return r._creator +} +// JobNo Setter +// 执行人工号 +func (r *AlibabaTclsFulfillQaOrderCreateAPIRequest) SetJobNo(_jobNo string) error { + r._jobNo = _jobNo + r.Set("job_no", _jobNo) + return nil +} + +// JobNo Getter +func (r AlibabaTclsFulfillQaOrderCreateAPIRequest) GetJobNo() string { + return r._jobNo +} diff --git a/model/logistic/AlibabaTclsFulfillQaOrderCreateAPIResponse.go b/model/logistic/AlibabaTclsFulfillQaOrderCreateAPIResponse.go new file mode 100644 index 0000000000..ec0149e147 --- /dev/null +++ b/model/logistic/AlibabaTclsFulfillQaOrderCreateAPIResponse.go @@ -0,0 +1,35 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创单接口 API返回值 +alibaba.tcls.fulfill.qa.order.create + +根据历史测试履约单号,复制一个同样镜像的履约单号并下发给大润发仓(api实现已经限制了测试数据) +*/ +type AlibabaTclsFulfillQaOrderCreateAPIResponse struct { + model.CommonResponse + AlibabaTclsFulfillQaOrderCreateAPIResponseModel +} + +// 创单接口 成功返回结果 +type AlibabaTclsFulfillQaOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tcls_fulfill_qa_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 鹰眼id + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 返回素材id + Data string `json:"data,omitempty" xml:"data,omitempty"` + // 是否成功 + RtSuccess bool `json:"rt_success,omitempty" xml:"rt_success,omitempty"` + // 错误码 + RtErrorCode int64 `json:"rt_error_code,omitempty" xml:"rt_error_code,omitempty"` + // 错误信息 + RtErrorMsg string `json:"rt_error_msg,omitempty" xml:"rt_error_msg,omitempty"` +} diff --git a/model/logistic/AlibabaTclsFulfillQaOrderCreateResponse.go b/model/logistic/AlibabaTclsFulfillQaOrderCreateResponse.go deleted file mode 100644 index 8b4f16bc4c..0000000000 --- a/model/logistic/AlibabaTclsFulfillQaOrderCreateResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创单接口 API返回值 -alibaba.tcls.fulfill.qa.order.create - -根据历史测试履约单号,复制一个同样镜像的履约单号并下发给大润发仓(api实现已经限制了测试数据) -*/ -type AlibabaTclsFulfillQaOrderCreateAPIResponse struct { - model.CommonResponse - AlibabaTclsFulfillQaOrderCreateResponse -} - -// 创单接口 成功返回结果 -type AlibabaTclsFulfillQaOrderCreateResponse struct { - XMLName xml.Name `xml:"alibaba_tcls_fulfill_qa_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 鹰眼id - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 返回素材id - Data string `json:"data,omitempty" xml:"data,omitempty"` - // 是否成功 - RtSuccess bool `json:"rt_success,omitempty" xml:"rt_success,omitempty"` - // 错误码 - RtErrorCode int64 `json:"rt_error_code,omitempty" xml:"rt_error_code,omitempty"` - // 错误信息 - RtErrorMsg string `json:"rt_error_msg,omitempty" xml:"rt_error_msg,omitempty"` -} diff --git a/model/logistic/CainiaoCbossWorkplatformBiztypeQueryallAPIRequest.go b/model/logistic/CainiaoCbossWorkplatformBiztypeQueryallAPIRequest.go new file mode 100644 index 0000000000..f14644930b --- /dev/null +++ b/model/logistic/CainiaoCbossWorkplatformBiztypeQueryallAPIRequest.go @@ -0,0 +1,66 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟工单平台根据交易订单查询某条业务线上的所有业务类型 API请求 +cainiao.cboss.workplatform.biztype.queryall + +菜鸟工单平台根据交易订单查询某条业务线上的所有业务类型。 目前调用者ISV +*/ +type CainiaoCbossWorkplatformBiztypeQueryallAPIRequest struct { + model.Params + // level + _level int64 + // tradeId + _tradeId string +} + +// 初始化CainiaoCbossWorkplatformBiztypeQueryallAPIRequest对象 +func NewCainiaoCbossWorkplatformBiztypeQueryallRequest() *CainiaoCbossWorkplatformBiztypeQueryallAPIRequest{ + return &CainiaoCbossWorkplatformBiztypeQueryallAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCbossWorkplatformBiztypeQueryallAPIRequest) GetApiMethodName() string { + return "cainiao.cboss.workplatform.biztype.queryall" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCbossWorkplatformBiztypeQueryallAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Level Setter +// level +func (r *CainiaoCbossWorkplatformBiztypeQueryallAPIRequest) SetLevel(_level int64) error { + r._level = _level + r.Set("level", _level) + return nil +} + +// Level Getter +func (r CainiaoCbossWorkplatformBiztypeQueryallAPIRequest) GetLevel() int64 { + return r._level +} +// TradeId Setter +// tradeId +func (r *CainiaoCbossWorkplatformBiztypeQueryallAPIRequest) SetTradeId(_tradeId string) error { + r._tradeId = _tradeId + r.Set("trade_id", _tradeId) + return nil +} + +// TradeId Getter +func (r CainiaoCbossWorkplatformBiztypeQueryallAPIRequest) GetTradeId() string { + return r._tradeId +} diff --git a/model/logistic/CainiaoCbossWorkplatformBiztypeQueryallAPIResponse.go b/model/logistic/CainiaoCbossWorkplatformBiztypeQueryallAPIResponse.go new file mode 100644 index 0000000000..5f22b9e2a8 --- /dev/null +++ b/model/logistic/CainiaoCbossWorkplatformBiztypeQueryallAPIResponse.go @@ -0,0 +1,33 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟工单平台根据交易订单查询某条业务线上的所有业务类型 API返回值 +cainiao.cboss.workplatform.biztype.queryall + +菜鸟工单平台根据交易订单查询某条业务线上的所有业务类型。 目前调用者ISV +*/ +type CainiaoCbossWorkplatformBiztypeQueryallAPIResponse struct { + model.CommonResponse + CainiaoCbossWorkplatformBiztypeQueryallAPIResponseModel +} + +// 菜鸟工单平台根据交易订单查询某条业务线上的所有业务类型 成功返回结果 +type CainiaoCbossWorkplatformBiztypeQueryallAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cboss_workplatform_biztype_queryall_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // bizTypeJson + BizTypeJson string `json:"biz_type_json,omitempty" xml:"biz_type_json,omitempty"` + // success + ResSuccess bool `json:"res_success,omitempty" xml:"res_success,omitempty"` + // errorCode + ResErrorCode string `json:"res_error_code,omitempty" xml:"res_error_code,omitempty"` + // errorMsg + ResErrorMsg string `json:"res_error_msg,omitempty" xml:"res_error_msg,omitempty"` +} diff --git a/model/logistic/CainiaoCbossWorkplatformBiztypeQueryallResponse.go b/model/logistic/CainiaoCbossWorkplatformBiztypeQueryallResponse.go deleted file mode 100644 index 70449a22fc..0000000000 --- a/model/logistic/CainiaoCbossWorkplatformBiztypeQueryallResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -菜鸟工单平台根据交易订单查询某条业务线上的所有业务类型 API返回值 -cainiao.cboss.workplatform.biztype.queryall - -菜鸟工单平台根据交易订单查询某条业务线上的所有业务类型。 目前调用者ISV -*/ -type CainiaoCbossWorkplatformBiztypeQueryallAPIResponse struct { - model.CommonResponse - CainiaoCbossWorkplatformBiztypeQueryallResponse -} - -// 菜鸟工单平台根据交易订单查询某条业务线上的所有业务类型 成功返回结果 -type CainiaoCbossWorkplatformBiztypeQueryallResponse struct { - XMLName xml.Name `xml:"cainiao_cboss_workplatform_biztype_queryall_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // bizTypeJson - BizTypeJson string `json:"biz_type_json,omitempty" xml:"biz_type_json,omitempty"` - // success - ResSuccess bool `json:"res_success,omitempty" xml:"res_success,omitempty"` - // errorCode - ResErrorCode string `json:"res_error_code,omitempty" xml:"res_error_code,omitempty"` - // errorMsg - ResErrorMsg string `json:"res_error_msg,omitempty" xml:"res_error_msg,omitempty"` -} diff --git a/model/logistic/CainiaoCbossWorkplatformBiztypeQuerybyidAPIRequest.go b/model/logistic/CainiaoCbossWorkplatformBiztypeQuerybyidAPIRequest.go new file mode 100644 index 0000000000..c0a48290ef --- /dev/null +++ b/model/logistic/CainiaoCbossWorkplatformBiztypeQuerybyidAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟工单平台根据业务类型id查询业务类型详细信息 API请求 +cainiao.cboss.workplatform.biztype.querybyid + +菜鸟工单平台根据业务类型id查询业务类型详细信息。 目前调用者ISV +*/ +type CainiaoCbossWorkplatformBiztypeQuerybyidAPIRequest struct { + model.Params + // 业务类型id + _bizTypeId string +} + +// 初始化CainiaoCbossWorkplatformBiztypeQuerybyidAPIRequest对象 +func NewCainiaoCbossWorkplatformBiztypeQuerybyidRequest() *CainiaoCbossWorkplatformBiztypeQuerybyidAPIRequest{ + return &CainiaoCbossWorkplatformBiztypeQuerybyidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCbossWorkplatformBiztypeQuerybyidAPIRequest) GetApiMethodName() string { + return "cainiao.cboss.workplatform.biztype.querybyid" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCbossWorkplatformBiztypeQuerybyidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizTypeId Setter +// 业务类型id +func (r *CainiaoCbossWorkplatformBiztypeQuerybyidAPIRequest) SetBizTypeId(_bizTypeId string) error { + r._bizTypeId = _bizTypeId + r.Set("biz_type_id", _bizTypeId) + return nil +} + +// BizTypeId Getter +func (r CainiaoCbossWorkplatformBiztypeQuerybyidAPIRequest) GetBizTypeId() string { + return r._bizTypeId +} diff --git a/model/logistic/CainiaoCbossWorkplatformBiztypeQuerybyidAPIResponse.go b/model/logistic/CainiaoCbossWorkplatformBiztypeQuerybyidAPIResponse.go new file mode 100644 index 0000000000..19a85a3795 --- /dev/null +++ b/model/logistic/CainiaoCbossWorkplatformBiztypeQuerybyidAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟工单平台根据业务类型id查询业务类型详细信息 API返回值 +cainiao.cboss.workplatform.biztype.querybyid + +菜鸟工单平台根据业务类型id查询业务类型详细信息。 目前调用者ISV +*/ +type CainiaoCbossWorkplatformBiztypeQuerybyidAPIResponse struct { + model.CommonResponse + CainiaoCbossWorkplatformBiztypeQuerybyidAPIResponseModel +} + +// 菜鸟工单平台根据业务类型id查询业务类型详细信息 成功返回结果 +type CainiaoCbossWorkplatformBiztypeQuerybyidAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cboss_workplatform_biztype_querybyid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CainiaoCbossWorkplatformBiztypeQuerybyidResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/logistic/CainiaoCbossWorkplatformBiztypeQuerybyidResponse.go b/model/logistic/CainiaoCbossWorkplatformBiztypeQuerybyidResponse.go deleted file mode 100644 index 58cbfd16b8..0000000000 --- a/model/logistic/CainiaoCbossWorkplatformBiztypeQuerybyidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -菜鸟工单平台根据业务类型id查询业务类型详细信息 API返回值 -cainiao.cboss.workplatform.biztype.querybyid - -菜鸟工单平台根据业务类型id查询业务类型详细信息。 目前调用者ISV -*/ -type CainiaoCbossWorkplatformBiztypeQuerybyidAPIResponse struct { - model.CommonResponse - CainiaoCbossWorkplatformBiztypeQuerybyidResponse -} - -// 菜鸟工单平台根据业务类型id查询业务类型详细信息 成功返回结果 -type CainiaoCbossWorkplatformBiztypeQuerybyidResponse struct { - XMLName xml.Name `xml:"cainiao_cboss_workplatform_biztype_querybyid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CainiaoCbossWorkplatformBiztypeQuerybyidResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/logistic/CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIRequest.go b/model/logistic/CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIRequest.go new file mode 100644 index 0000000000..880f4bd762 --- /dev/null +++ b/model/logistic/CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据交易单号判断是否为菜鸟发货订单 API请求 +cainiao.cboss.workplatform.logistics.iscainiaoorder + +根据交易单号判断是否为菜鸟发货订单 +*/ +type CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIRequest struct { + model.Params + // 交易单号 + _tradeId string +} + +// 初始化CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIRequest对象 +func NewCainiaoCbossWorkplatformLogisticsIscainiaoorderRequest() *CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIRequest{ + return &CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIRequest) GetApiMethodName() string { + return "cainiao.cboss.workplatform.logistics.iscainiaoorder" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeId Setter +// 交易单号 +func (r *CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIRequest) SetTradeId(_tradeId string) error { + r._tradeId = _tradeId + r.Set("trade_id", _tradeId) + return nil +} + +// TradeId Getter +func (r CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIRequest) GetTradeId() string { + return r._tradeId +} diff --git a/model/logistic/CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIResponse.go b/model/logistic/CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIResponse.go new file mode 100644 index 0000000000..0df4e25105 --- /dev/null +++ b/model/logistic/CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIResponse.go @@ -0,0 +1,33 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据交易单号判断是否为菜鸟发货订单 API返回值 +cainiao.cboss.workplatform.logistics.iscainiaoorder + +根据交易单号判断是否为菜鸟发货订单 +*/ +type CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIResponse struct { + model.CommonResponse + CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIResponseModel +} + +// 根据交易单号判断是否为菜鸟发货订单 成功返回结果 +type CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cboss_workplatform_logistics_iscainiaoorder_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // isCainiaoOrder + IsCainiaoOrder bool `json:"is_cainiao_order,omitempty" xml:"is_cainiao_order,omitempty"` + // success + ResSuccess bool `json:"res_success,omitempty" xml:"res_success,omitempty"` + // errorCode + ResErrorCode string `json:"res_error_code,omitempty" xml:"res_error_code,omitempty"` + // errorMsg + ResErrorMsg string `json:"res_error_msg,omitempty" xml:"res_error_msg,omitempty"` +} diff --git a/model/logistic/CainiaoCbossWorkplatformLogisticsIscainiaoorderResponse.go b/model/logistic/CainiaoCbossWorkplatformLogisticsIscainiaoorderResponse.go deleted file mode 100644 index f19dca75b9..0000000000 --- a/model/logistic/CainiaoCbossWorkplatformLogisticsIscainiaoorderResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据交易单号判断是否为菜鸟发货订单 API返回值 -cainiao.cboss.workplatform.logistics.iscainiaoorder - -根据交易单号判断是否为菜鸟发货订单 -*/ -type CainiaoCbossWorkplatformLogisticsIscainiaoorderAPIResponse struct { - model.CommonResponse - CainiaoCbossWorkplatformLogisticsIscainiaoorderResponse -} - -// 根据交易单号判断是否为菜鸟发货订单 成功返回结果 -type CainiaoCbossWorkplatformLogisticsIscainiaoorderResponse struct { - XMLName xml.Name `xml:"cainiao_cboss_workplatform_logistics_iscainiaoorder_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // isCainiaoOrder - IsCainiaoOrder bool `json:"is_cainiao_order,omitempty" xml:"is_cainiao_order,omitempty"` - // success - ResSuccess bool `json:"res_success,omitempty" xml:"res_success,omitempty"` - // errorCode - ResErrorCode string `json:"res_error_code,omitempty" xml:"res_error_code,omitempty"` - // errorMsg - ResErrorMsg string `json:"res_error_msg,omitempty" xml:"res_error_msg,omitempty"` -} diff --git a/model/logistic/CainiaoCbossWorkplatformOperationReplyAPIRequest.go b/model/logistic/CainiaoCbossWorkplatformOperationReplyAPIRequest.go new file mode 100644 index 0000000000..08e6cb5ab4 --- /dev/null +++ b/model/logistic/CainiaoCbossWorkplatformOperationReplyAPIRequest.go @@ -0,0 +1,164 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟工单操作回传 API请求 +cainiao.cboss.workplatform.operation.reply + +菜鸟工单进度下发接口,目前调用者ISV +*/ +type CainiaoCbossWorkplatformOperationReplyAPIRequest struct { + model.Params + // 工单id + _workOrderId string + // 工单任务id + _taskId string + // 任务操作时间 + _actionTime string + // 任务操作类型 + _actionType int64 + // 操作者userId + _dealerUserId string + // 操作者联系方式 + _dealerContact string + // 商家工单操作回传备注 + _memo string + // 凭证照片地址拼接 + _attachPath string + // 扩展字段 + _features string +} + +// 初始化CainiaoCbossWorkplatformOperationReplyAPIRequest对象 +func NewCainiaoCbossWorkplatformOperationReplyRequest() *CainiaoCbossWorkplatformOperationReplyAPIRequest{ + return &CainiaoCbossWorkplatformOperationReplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCbossWorkplatformOperationReplyAPIRequest) GetApiMethodName() string { + return "cainiao.cboss.workplatform.operation.reply" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCbossWorkplatformOperationReplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkOrderId Setter +// 工单id +func (r *CainiaoCbossWorkplatformOperationReplyAPIRequest) SetWorkOrderId(_workOrderId string) error { + r._workOrderId = _workOrderId + r.Set("work_order_id", _workOrderId) + return nil +} + +// WorkOrderId Getter +func (r CainiaoCbossWorkplatformOperationReplyAPIRequest) GetWorkOrderId() string { + return r._workOrderId +} +// TaskId Setter +// 工单任务id +func (r *CainiaoCbossWorkplatformOperationReplyAPIRequest) SetTaskId(_taskId string) error { + r._taskId = _taskId + r.Set("task_id", _taskId) + return nil +} + +// TaskId Getter +func (r CainiaoCbossWorkplatformOperationReplyAPIRequest) GetTaskId() string { + return r._taskId +} +// ActionTime Setter +// 任务操作时间 +func (r *CainiaoCbossWorkplatformOperationReplyAPIRequest) SetActionTime(_actionTime string) error { + r._actionTime = _actionTime + r.Set("action_time", _actionTime) + return nil +} + +// ActionTime Getter +func (r CainiaoCbossWorkplatformOperationReplyAPIRequest) GetActionTime() string { + return r._actionTime +} +// ActionType Setter +// 任务操作类型 +func (r *CainiaoCbossWorkplatformOperationReplyAPIRequest) SetActionType(_actionType int64) error { + r._actionType = _actionType + r.Set("action_type", _actionType) + return nil +} + +// ActionType Getter +func (r CainiaoCbossWorkplatformOperationReplyAPIRequest) GetActionType() int64 { + return r._actionType +} +// DealerUserId Setter +// 操作者userId +func (r *CainiaoCbossWorkplatformOperationReplyAPIRequest) SetDealerUserId(_dealerUserId string) error { + r._dealerUserId = _dealerUserId + r.Set("dealer_user_id", _dealerUserId) + return nil +} + +// DealerUserId Getter +func (r CainiaoCbossWorkplatformOperationReplyAPIRequest) GetDealerUserId() string { + return r._dealerUserId +} +// DealerContact Setter +// 操作者联系方式 +func (r *CainiaoCbossWorkplatformOperationReplyAPIRequest) SetDealerContact(_dealerContact string) error { + r._dealerContact = _dealerContact + r.Set("dealer_contact", _dealerContact) + return nil +} + +// DealerContact Getter +func (r CainiaoCbossWorkplatformOperationReplyAPIRequest) GetDealerContact() string { + return r._dealerContact +} +// Memo Setter +// 商家工单操作回传备注 +func (r *CainiaoCbossWorkplatformOperationReplyAPIRequest) SetMemo(_memo string) error { + r._memo = _memo + r.Set("memo", _memo) + return nil +} + +// Memo Getter +func (r CainiaoCbossWorkplatformOperationReplyAPIRequest) GetMemo() string { + return r._memo +} +// AttachPath Setter +// 凭证照片地址拼接 +func (r *CainiaoCbossWorkplatformOperationReplyAPIRequest) SetAttachPath(_attachPath string) error { + r._attachPath = _attachPath + r.Set("attach_path", _attachPath) + return nil +} + +// AttachPath Getter +func (r CainiaoCbossWorkplatformOperationReplyAPIRequest) GetAttachPath() string { + return r._attachPath +} +// Features Setter +// 扩展字段 +func (r *CainiaoCbossWorkplatformOperationReplyAPIRequest) SetFeatures(_features string) error { + r._features = _features + r.Set("features", _features) + return nil +} + +// Features Getter +func (r CainiaoCbossWorkplatformOperationReplyAPIRequest) GetFeatures() string { + return r._features +} diff --git a/model/logistic/CainiaoCbossWorkplatformOperationReplyAPIResponse.go b/model/logistic/CainiaoCbossWorkplatformOperationReplyAPIResponse.go new file mode 100644 index 0000000000..5f33d169fc --- /dev/null +++ b/model/logistic/CainiaoCbossWorkplatformOperationReplyAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟工单操作回传 API返回值 +cainiao.cboss.workplatform.operation.reply + +菜鸟工单进度下发接口,目前调用者ISV +*/ +type CainiaoCbossWorkplatformOperationReplyAPIResponse struct { + model.CommonResponse + CainiaoCbossWorkplatformOperationReplyAPIResponseModel +} + +// 菜鸟工单操作回传 成功返回结果 +type CainiaoCbossWorkplatformOperationReplyAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cboss_workplatform_operation_reply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CainiaoCbossWorkplatformOperationReplyResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/logistic/CainiaoCbossWorkplatformOperationReplyResponse.go b/model/logistic/CainiaoCbossWorkplatformOperationReplyResponse.go deleted file mode 100644 index 826a32883c..0000000000 --- a/model/logistic/CainiaoCbossWorkplatformOperationReplyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -菜鸟工单操作回传 API返回值 -cainiao.cboss.workplatform.operation.reply - -菜鸟工单进度下发接口,目前调用者ISV -*/ -type CainiaoCbossWorkplatformOperationReplyAPIResponse struct { - model.CommonResponse - CainiaoCbossWorkplatformOperationReplyResponse -} - -// 菜鸟工单操作回传 成功返回结果 -type CainiaoCbossWorkplatformOperationReplyResponse struct { - XMLName xml.Name `xml:"cainiao_cboss_workplatform_operation_reply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CainiaoCbossWorkplatformOperationReplyResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/logistic/CainiaoCbossWorkplatformWorkorderCreateAPIRequest.go b/model/logistic/CainiaoCbossWorkplatformWorkorderCreateAPIRequest.go new file mode 100644 index 0000000000..03e7942c35 --- /dev/null +++ b/model/logistic/CainiaoCbossWorkplatformWorkorderCreateAPIRequest.go @@ -0,0 +1,248 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟工单创建接口 API请求 +cainiao.cboss.workplatform.workorder.create + +菜鸟工单创建接口,目前调用者ISV +*/ +type CainiaoCbossWorkplatformWorkorderCreateAPIRequest struct { + model.Params + // 工单类型 + _workOrderType string + // 业务类型 + _bizType string + // 工单创建备注 + _memo string + // 货主商家用户id + _memberId string + // 货主用户角色 + _memberRole string + // 创建者淘宝id(区分子账号) + _creatorId string + // 创建者角色 + _creatorRole string + // 外部业务系统主键 + _bizEntityValue string + // 店铺用户id + _shopUserId string + // 交易订单id + _tradeId string + // 工单来源 + _source string + // 来源签名,用于唯一区分不同的来源方 + _sourceSign string + // 运单号 + _mailNo string + // 扩展字段 + _features string + // 凭证地址列表 + _attachPathList []string +} + +// 初始化CainiaoCbossWorkplatformWorkorderCreateAPIRequest对象 +func NewCainiaoCbossWorkplatformWorkorderCreateRequest() *CainiaoCbossWorkplatformWorkorderCreateAPIRequest{ + return &CainiaoCbossWorkplatformWorkorderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCbossWorkplatformWorkorderCreateAPIRequest) GetApiMethodName() string { + return "cainiao.cboss.workplatform.workorder.create" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCbossWorkplatformWorkorderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkOrderType Setter +// 工单类型 +func (r *CainiaoCbossWorkplatformWorkorderCreateAPIRequest) SetWorkOrderType(_workOrderType string) error { + r._workOrderType = _workOrderType + r.Set("work_order_type", _workOrderType) + return nil +} + +// WorkOrderType Getter +func (r CainiaoCbossWorkplatformWorkorderCreateAPIRequest) GetWorkOrderType() string { + return r._workOrderType +} +// BizType Setter +// 业务类型 +func (r *CainiaoCbossWorkplatformWorkorderCreateAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r CainiaoCbossWorkplatformWorkorderCreateAPIRequest) GetBizType() string { + return r._bizType +} +// Memo Setter +// 工单创建备注 +func (r *CainiaoCbossWorkplatformWorkorderCreateAPIRequest) SetMemo(_memo string) error { + r._memo = _memo + r.Set("memo", _memo) + return nil +} + +// Memo Getter +func (r CainiaoCbossWorkplatformWorkorderCreateAPIRequest) GetMemo() string { + return r._memo +} +// MemberId Setter +// 货主商家用户id +func (r *CainiaoCbossWorkplatformWorkorderCreateAPIRequest) SetMemberId(_memberId string) error { + r._memberId = _memberId + r.Set("member_id", _memberId) + return nil +} + +// MemberId Getter +func (r CainiaoCbossWorkplatformWorkorderCreateAPIRequest) GetMemberId() string { + return r._memberId +} +// MemberRole Setter +// 货主用户角色 +func (r *CainiaoCbossWorkplatformWorkorderCreateAPIRequest) SetMemberRole(_memberRole string) error { + r._memberRole = _memberRole + r.Set("member_role", _memberRole) + return nil +} + +// MemberRole Getter +func (r CainiaoCbossWorkplatformWorkorderCreateAPIRequest) GetMemberRole() string { + return r._memberRole +} +// CreatorId Setter +// 创建者淘宝id(区分子账号) +func (r *CainiaoCbossWorkplatformWorkorderCreateAPIRequest) SetCreatorId(_creatorId string) error { + r._creatorId = _creatorId + r.Set("creator_id", _creatorId) + return nil +} + +// CreatorId Getter +func (r CainiaoCbossWorkplatformWorkorderCreateAPIRequest) GetCreatorId() string { + return r._creatorId +} +// CreatorRole Setter +// 创建者角色 +func (r *CainiaoCbossWorkplatformWorkorderCreateAPIRequest) SetCreatorRole(_creatorRole string) error { + r._creatorRole = _creatorRole + r.Set("creator_role", _creatorRole) + return nil +} + +// CreatorRole Getter +func (r CainiaoCbossWorkplatformWorkorderCreateAPIRequest) GetCreatorRole() string { + return r._creatorRole +} +// BizEntityValue Setter +// 外部业务系统主键 +func (r *CainiaoCbossWorkplatformWorkorderCreateAPIRequest) SetBizEntityValue(_bizEntityValue string) error { + r._bizEntityValue = _bizEntityValue + r.Set("biz_entity_value", _bizEntityValue) + return nil +} + +// BizEntityValue Getter +func (r CainiaoCbossWorkplatformWorkorderCreateAPIRequest) GetBizEntityValue() string { + return r._bizEntityValue +} +// ShopUserId Setter +// 店铺用户id +func (r *CainiaoCbossWorkplatformWorkorderCreateAPIRequest) SetShopUserId(_shopUserId string) error { + r._shopUserId = _shopUserId + r.Set("shop_user_id", _shopUserId) + return nil +} + +// ShopUserId Getter +func (r CainiaoCbossWorkplatformWorkorderCreateAPIRequest) GetShopUserId() string { + return r._shopUserId +} +// TradeId Setter +// 交易订单id +func (r *CainiaoCbossWorkplatformWorkorderCreateAPIRequest) SetTradeId(_tradeId string) error { + r._tradeId = _tradeId + r.Set("trade_id", _tradeId) + return nil +} + +// TradeId Getter +func (r CainiaoCbossWorkplatformWorkorderCreateAPIRequest) GetTradeId() string { + return r._tradeId +} +// Source Setter +// 工单来源 +func (r *CainiaoCbossWorkplatformWorkorderCreateAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r CainiaoCbossWorkplatformWorkorderCreateAPIRequest) GetSource() string { + return r._source +} +// SourceSign Setter +// 来源签名,用于唯一区分不同的来源方 +func (r *CainiaoCbossWorkplatformWorkorderCreateAPIRequest) SetSourceSign(_sourceSign string) error { + r._sourceSign = _sourceSign + r.Set("source_sign", _sourceSign) + return nil +} + +// SourceSign Getter +func (r CainiaoCbossWorkplatformWorkorderCreateAPIRequest) GetSourceSign() string { + return r._sourceSign +} +// MailNo Setter +// 运单号 +func (r *CainiaoCbossWorkplatformWorkorderCreateAPIRequest) SetMailNo(_mailNo string) error { + r._mailNo = _mailNo + r.Set("mail_no", _mailNo) + return nil +} + +// MailNo Getter +func (r CainiaoCbossWorkplatformWorkorderCreateAPIRequest) GetMailNo() string { + return r._mailNo +} +// Features Setter +// 扩展字段 +func (r *CainiaoCbossWorkplatformWorkorderCreateAPIRequest) SetFeatures(_features string) error { + r._features = _features + r.Set("features", _features) + return nil +} + +// Features Getter +func (r CainiaoCbossWorkplatformWorkorderCreateAPIRequest) GetFeatures() string { + return r._features +} +// AttachPathList Setter +// 凭证地址列表 +func (r *CainiaoCbossWorkplatformWorkorderCreateAPIRequest) SetAttachPathList(_attachPathList []string) error { + r._attachPathList = _attachPathList + r.Set("attach_path_list", _attachPathList) + return nil +} + +// AttachPathList Getter +func (r CainiaoCbossWorkplatformWorkorderCreateAPIRequest) GetAttachPathList() []string { + return r._attachPathList +} diff --git a/model/logistic/CainiaoCbossWorkplatformWorkorderCreateAPIResponse.go b/model/logistic/CainiaoCbossWorkplatformWorkorderCreateAPIResponse.go new file mode 100644 index 0000000000..4bc90abf52 --- /dev/null +++ b/model/logistic/CainiaoCbossWorkplatformWorkorderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟工单创建接口 API返回值 +cainiao.cboss.workplatform.workorder.create + +菜鸟工单创建接口,目前调用者ISV +*/ +type CainiaoCbossWorkplatformWorkorderCreateAPIResponse struct { + model.CommonResponse + CainiaoCbossWorkplatformWorkorderCreateAPIResponseModel +} + +// 菜鸟工单创建接口 成功返回结果 +type CainiaoCbossWorkplatformWorkorderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cboss_workplatform_workorder_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *CainiaoCbossWorkplatformWorkorderCreateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/logistic/CainiaoCbossWorkplatformWorkorderCreateResponse.go b/model/logistic/CainiaoCbossWorkplatformWorkorderCreateResponse.go deleted file mode 100644 index cb422d7181..0000000000 --- a/model/logistic/CainiaoCbossWorkplatformWorkorderCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -菜鸟工单创建接口 API返回值 -cainiao.cboss.workplatform.workorder.create - -菜鸟工单创建接口,目前调用者ISV -*/ -type CainiaoCbossWorkplatformWorkorderCreateAPIResponse struct { - model.CommonResponse - CainiaoCbossWorkplatformWorkorderCreateResponse -} - -// 菜鸟工单创建接口 成功返回结果 -type CainiaoCbossWorkplatformWorkorderCreateResponse struct { - XMLName xml.Name `xml:"cainiao_cboss_workplatform_workorder_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *CainiaoCbossWorkplatformWorkorderCreateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/logistic/CainiaoCbossWorkplatformWorkorderProcessNotifyAPIRequest.go b/model/logistic/CainiaoCbossWorkplatformWorkorderProcessNotifyAPIRequest.go new file mode 100644 index 0000000000..e8fd497c3e --- /dev/null +++ b/model/logistic/CainiaoCbossWorkplatformWorkorderProcessNotifyAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟工单系统的工单进度下发 API请求 +cainiao.cboss.workplatform.workorder.process.notify + +菜鸟工单系统的工单进度下发(SPI) +*/ +type CainiaoCbossWorkplatformWorkorderProcessNotifyAPIRequest struct { + model.Params + // 服务入参 + _content *CainiaoCbossWorkplatformWorkorderProcessNotifyStruct +} + +// 初始化CainiaoCbossWorkplatformWorkorderProcessNotifyAPIRequest对象 +func NewCainiaoCbossWorkplatformWorkorderProcessNotifyRequest() *CainiaoCbossWorkplatformWorkorderProcessNotifyAPIRequest{ + return &CainiaoCbossWorkplatformWorkorderProcessNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCbossWorkplatformWorkorderProcessNotifyAPIRequest) GetApiMethodName() string { + return "cainiao.cboss.workplatform.workorder.process.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCbossWorkplatformWorkorderProcessNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Content Setter +// 服务入参 +func (r *CainiaoCbossWorkplatformWorkorderProcessNotifyAPIRequest) SetContent(_content *CainiaoCbossWorkplatformWorkorderProcessNotifyStruct) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r CainiaoCbossWorkplatformWorkorderProcessNotifyAPIRequest) GetContent() *CainiaoCbossWorkplatformWorkorderProcessNotifyStruct { + return r._content +} diff --git a/model/logistic/CainiaoCbossWorkplatformWorkorderProcessNotifyAPIResponse.go b/model/logistic/CainiaoCbossWorkplatformWorkorderProcessNotifyAPIResponse.go new file mode 100644 index 0000000000..3a9fd9b7b7 --- /dev/null +++ b/model/logistic/CainiaoCbossWorkplatformWorkorderProcessNotifyAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟工单系统的工单进度下发 API返回值 +cainiao.cboss.workplatform.workorder.process.notify + +菜鸟工单系统的工单进度下发(SPI) +*/ +type CainiaoCbossWorkplatformWorkorderProcessNotifyAPIResponse struct { + model.CommonResponse + CainiaoCbossWorkplatformWorkorderProcessNotifyAPIResponseModel +} + +// 菜鸟工单系统的工单进度下发 成功返回结果 +type CainiaoCbossWorkplatformWorkorderProcessNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cboss_workplatform_workorder_process_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Response *CainiaoCbossWorkplatformWorkorderProcessNotifyStruct `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/logistic/CainiaoCbossWorkplatformWorkorderProcessNotifyResponse.go b/model/logistic/CainiaoCbossWorkplatformWorkorderProcessNotifyResponse.go deleted file mode 100644 index f837bcca9f..0000000000 --- a/model/logistic/CainiaoCbossWorkplatformWorkorderProcessNotifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -菜鸟工单系统的工单进度下发 API返回值 -cainiao.cboss.workplatform.workorder.process.notify - -菜鸟工单系统的工单进度下发(SPI) -*/ -type CainiaoCbossWorkplatformWorkorderProcessNotifyAPIResponse struct { - model.CommonResponse - CainiaoCbossWorkplatformWorkorderProcessNotifyResponse -} - -// 菜鸟工单系统的工单进度下发 成功返回结果 -type CainiaoCbossWorkplatformWorkorderProcessNotifyResponse struct { - XMLName xml.Name `xml:"cainiao_cboss_workplatform_workorder_process_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Response *CainiaoCbossWorkplatformWorkorderProcessNotifyStruct `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/logistic/CainiaoCbossWorkplatformWorkorderTaskNotifyAPIRequest.go b/model/logistic/CainiaoCbossWorkplatformWorkorderTaskNotifyAPIRequest.go new file mode 100644 index 0000000000..ddf87c3098 --- /dev/null +++ b/model/logistic/CainiaoCbossWorkplatformWorkorderTaskNotifyAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +TOP-SPI工单任务下发接口 API请求 +cainiao.cboss.workplatform.workorder.task.notify + +TOP-SPI工单任务下发接口(菜鸟--->商家ISV) +*/ +type CainiaoCbossWorkplatformWorkorderTaskNotifyAPIRequest struct { + model.Params + // content + _content *CainiaoCbossWorkplatformWorkorderTaskNotifyStruct +} + +// 初始化CainiaoCbossWorkplatformWorkorderTaskNotifyAPIRequest对象 +func NewCainiaoCbossWorkplatformWorkorderTaskNotifyRequest() *CainiaoCbossWorkplatformWorkorderTaskNotifyAPIRequest{ + return &CainiaoCbossWorkplatformWorkorderTaskNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCbossWorkplatformWorkorderTaskNotifyAPIRequest) GetApiMethodName() string { + return "cainiao.cboss.workplatform.workorder.task.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCbossWorkplatformWorkorderTaskNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Content Setter +// content +func (r *CainiaoCbossWorkplatformWorkorderTaskNotifyAPIRequest) SetContent(_content *CainiaoCbossWorkplatformWorkorderTaskNotifyStruct) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r CainiaoCbossWorkplatformWorkorderTaskNotifyAPIRequest) GetContent() *CainiaoCbossWorkplatformWorkorderTaskNotifyStruct { + return r._content +} diff --git a/model/logistic/CainiaoCbossWorkplatformWorkorderTaskNotifyAPIResponse.go b/model/logistic/CainiaoCbossWorkplatformWorkorderTaskNotifyAPIResponse.go new file mode 100644 index 0000000000..1b208eedb5 --- /dev/null +++ b/model/logistic/CainiaoCbossWorkplatformWorkorderTaskNotifyAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +TOP-SPI工单任务下发接口 API返回值 +cainiao.cboss.workplatform.workorder.task.notify + +TOP-SPI工单任务下发接口(菜鸟--->商家ISV) +*/ +type CainiaoCbossWorkplatformWorkorderTaskNotifyAPIResponse struct { + model.CommonResponse + CainiaoCbossWorkplatformWorkorderTaskNotifyAPIResponseModel +} + +// TOP-SPI工单任务下发接口 成功返回结果 +type CainiaoCbossWorkplatformWorkorderTaskNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cboss_workplatform_workorder_task_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // response + Response *CainiaoCbossWorkplatformWorkorderTaskNotifyStruct `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/logistic/CainiaoCbossWorkplatformWorkorderTaskNotifyResponse.go b/model/logistic/CainiaoCbossWorkplatformWorkorderTaskNotifyResponse.go deleted file mode 100644 index b3884ca1c4..0000000000 --- a/model/logistic/CainiaoCbossWorkplatformWorkorderTaskNotifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -TOP-SPI工单任务下发接口 API返回值 -cainiao.cboss.workplatform.workorder.task.notify - -TOP-SPI工单任务下发接口(菜鸟--->商家ISV) -*/ -type CainiaoCbossWorkplatformWorkorderTaskNotifyAPIResponse struct { - model.CommonResponse - CainiaoCbossWorkplatformWorkorderTaskNotifyResponse -} - -// TOP-SPI工单任务下发接口 成功返回结果 -type CainiaoCbossWorkplatformWorkorderTaskNotifyResponse struct { - XMLName xml.Name `xml:"cainiao_cboss_workplatform_workorder_task_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // response - Response *CainiaoCbossWorkplatformWorkorderTaskNotifyStruct `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/logistic/CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest.go b/model/logistic/CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest.go new file mode 100644 index 0000000000..9b2652415d --- /dev/null +++ b/model/logistic/CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest.go @@ -0,0 +1,184 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +CP配送物流时效预测 API请求 +cainiao.data.logistics.cp.delivery.aging.predict + +时效和服务预期是商家发货时比较关注的信息,也是选择快递公司的一个重要参考(除去长期合作合同因素)。所以,在商家发货时给商家提供线路时效预估能帮助商家选择更好的快递公司,且对消费者来说也能整体提升体验。 + +日常时效是数值字符串 +大促时效是数值区间字符串 +方式1: +输入:发货省、市、区、详细地址,收货省、市、区、街道、详细地址,快递公司ID +输出:预估时效(小时数) +*/ +type CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest struct { + model.Params + // 发货城市 + _sendCityName string + // 发货区 + _sendCountyName string + // 自己输入的详细发货地址 + _sendAddr string + // 发货省 + _sendProvName string + // 收货城市 + _recCityName string + // 自己输入的详细收货地址 + _recAddr string + // 收货区 + _recCountyName string + // 收货省 + _recProvName string + // 第四级,一般是收货街道 + _recTownName string + // 物流公司id + _cpId string +} + +// 初始化CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest对象 +func NewCainiaoDataLogisticsCpDeliveryAgingPredictRequest() *CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest{ + return &CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) GetApiMethodName() string { + return "cainiao.data.logistics.cp.delivery.aging.predict" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SendCityName Setter +// 发货城市 +func (r *CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) SetSendCityName(_sendCityName string) error { + r._sendCityName = _sendCityName + r.Set("send_city_name", _sendCityName) + return nil +} + +// SendCityName Getter +func (r CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) GetSendCityName() string { + return r._sendCityName +} +// SendCountyName Setter +// 发货区 +func (r *CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) SetSendCountyName(_sendCountyName string) error { + r._sendCountyName = _sendCountyName + r.Set("send_county_name", _sendCountyName) + return nil +} + +// SendCountyName Getter +func (r CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) GetSendCountyName() string { + return r._sendCountyName +} +// SendAddr Setter +// 自己输入的详细发货地址 +func (r *CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) SetSendAddr(_sendAddr string) error { + r._sendAddr = _sendAddr + r.Set("send_addr", _sendAddr) + return nil +} + +// SendAddr Getter +func (r CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) GetSendAddr() string { + return r._sendAddr +} +// SendProvName Setter +// 发货省 +func (r *CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) SetSendProvName(_sendProvName string) error { + r._sendProvName = _sendProvName + r.Set("send_prov_name", _sendProvName) + return nil +} + +// SendProvName Getter +func (r CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) GetSendProvName() string { + return r._sendProvName +} +// RecCityName Setter +// 收货城市 +func (r *CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) SetRecCityName(_recCityName string) error { + r._recCityName = _recCityName + r.Set("rec_city_name", _recCityName) + return nil +} + +// RecCityName Getter +func (r CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) GetRecCityName() string { + return r._recCityName +} +// RecAddr Setter +// 自己输入的详细收货地址 +func (r *CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) SetRecAddr(_recAddr string) error { + r._recAddr = _recAddr + r.Set("rec_addr", _recAddr) + return nil +} + +// RecAddr Getter +func (r CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) GetRecAddr() string { + return r._recAddr +} +// RecCountyName Setter +// 收货区 +func (r *CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) SetRecCountyName(_recCountyName string) error { + r._recCountyName = _recCountyName + r.Set("rec_county_name", _recCountyName) + return nil +} + +// RecCountyName Getter +func (r CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) GetRecCountyName() string { + return r._recCountyName +} +// RecProvName Setter +// 收货省 +func (r *CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) SetRecProvName(_recProvName string) error { + r._recProvName = _recProvName + r.Set("rec_prov_name", _recProvName) + return nil +} + +// RecProvName Getter +func (r CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) GetRecProvName() string { + return r._recProvName +} +// RecTownName Setter +// 第四级,一般是收货街道 +func (r *CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) SetRecTownName(_recTownName string) error { + r._recTownName = _recTownName + r.Set("rec_town_name", _recTownName) + return nil +} + +// RecTownName Getter +func (r CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) GetRecTownName() string { + return r._recTownName +} +// CpId Setter +// 物流公司id +func (r *CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) SetCpId(_cpId string) error { + r._cpId = _cpId + r.Set("cp_id", _cpId) + return nil +} + +// CpId Getter +func (r CainiaoDataLogisticsCpDeliveryAgingPredictAPIRequest) GetCpId() string { + return r._cpId +} diff --git a/model/logistic/CainiaoDataLogisticsCpDeliveryAgingPredictAPIResponse.go b/model/logistic/CainiaoDataLogisticsCpDeliveryAgingPredictAPIResponse.go new file mode 100644 index 0000000000..d5454b6d81 --- /dev/null +++ b/model/logistic/CainiaoDataLogisticsCpDeliveryAgingPredictAPIResponse.go @@ -0,0 +1,33 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +CP配送物流时效预测 API返回值 +cainiao.data.logistics.cp.delivery.aging.predict + +时效和服务预期是商家发货时比较关注的信息,也是选择快递公司的一个重要参考(除去长期合作合同因素)。所以,在商家发货时给商家提供线路时效预估能帮助商家选择更好的快递公司,且对消费者来说也能整体提升体验。 + +日常时效是数值字符串 +大促时效是数值区间字符串 +方式1: +输入:发货省、市、区、详细地址,收货省、市、区、街道、详细地址,快递公司ID +输出:预估时效(小时数) +*/ +type CainiaoDataLogisticsCpDeliveryAgingPredictAPIResponse struct { + model.CommonResponse + CainiaoDataLogisticsCpDeliveryAgingPredictAPIResponseModel +} + +// CP配送物流时效预测 成功返回结果 +type CainiaoDataLogisticsCpDeliveryAgingPredictAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_data_logistics_cp_delivery_aging_predict_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据值 + Data *DeliveryTimingDto `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/logistic/CainiaoDataLogisticsCpDeliveryAgingPredictResponse.go b/model/logistic/CainiaoDataLogisticsCpDeliveryAgingPredictResponse.go deleted file mode 100644 index fb6910f545..0000000000 --- a/model/logistic/CainiaoDataLogisticsCpDeliveryAgingPredictResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -CP配送物流时效预测 API返回值 -cainiao.data.logistics.cp.delivery.aging.predict - -时效和服务预期是商家发货时比较关注的信息,也是选择快递公司的一个重要参考(除去长期合作合同因素)。所以,在商家发货时给商家提供线路时效预估能帮助商家选择更好的快递公司,且对消费者来说也能整体提升体验。 - -日常时效是数值字符串 -大促时效是数值区间字符串 -方式1: -输入:发货省、市、区、详细地址,收货省、市、区、街道、详细地址,快递公司ID -输出:预估时效(小时数) -*/ -type CainiaoDataLogisticsCpDeliveryAgingPredictAPIResponse struct { - model.CommonResponse - CainiaoDataLogisticsCpDeliveryAgingPredictResponse -} - -// CP配送物流时效预测 成功返回结果 -type CainiaoDataLogisticsCpDeliveryAgingPredictResponse struct { - XMLName xml.Name `xml:"cainiao_data_logistics_cp_delivery_aging_predict_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据值 - Data *DeliveryTimingDto `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/logistic/CainiaoDataLogisticsDeliveryAgingPredictAPIRequest.go b/model/logistic/CainiaoDataLogisticsDeliveryAgingPredictAPIRequest.go new file mode 100644 index 0000000000..c705d1bf1e --- /dev/null +++ b/model/logistic/CainiaoDataLogisticsDeliveryAgingPredictAPIRequest.go @@ -0,0 +1,168 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +配送物流时效预测 API请求 +cainiao.data.logistics.delivery.aging.predict + +时效和服务预期是商家发货时比较关注的信息,也是选择快递公司的一个重要参考(除去长期合作合同因素)。所以,在商家发货时给商家提供线路时效预估能帮助商家选择更好的快递公司,且对消费者来说也能整体提升体验。 + +日常,展示具体的预测时效数值 + +大促期间,展示预测的时效区间 +*/ +type CainiaoDataLogisticsDeliveryAgingPredictAPIRequest struct { + model.Params + // 发货城市 + _sendCityName string + // 发货区 + _sendCountyName string + // 发货详细地址 + _sendAddr string + // 发货省 + _sendProvName string + // 收货市 + _recCityName string + // 收货详细地址 + _recAddr string + // 收货区 + _recCountyName string + // 收货省 + _recProvName string + // 收货街道 + _recTownName string +} + +// 初始化CainiaoDataLogisticsDeliveryAgingPredictAPIRequest对象 +func NewCainiaoDataLogisticsDeliveryAgingPredictRequest() *CainiaoDataLogisticsDeliveryAgingPredictAPIRequest{ + return &CainiaoDataLogisticsDeliveryAgingPredictAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) GetApiMethodName() string { + return "cainiao.data.logistics.delivery.aging.predict" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SendCityName Setter +// 发货城市 +func (r *CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) SetSendCityName(_sendCityName string) error { + r._sendCityName = _sendCityName + r.Set("send_city_name", _sendCityName) + return nil +} + +// SendCityName Getter +func (r CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) GetSendCityName() string { + return r._sendCityName +} +// SendCountyName Setter +// 发货区 +func (r *CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) SetSendCountyName(_sendCountyName string) error { + r._sendCountyName = _sendCountyName + r.Set("send_county_name", _sendCountyName) + return nil +} + +// SendCountyName Getter +func (r CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) GetSendCountyName() string { + return r._sendCountyName +} +// SendAddr Setter +// 发货详细地址 +func (r *CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) SetSendAddr(_sendAddr string) error { + r._sendAddr = _sendAddr + r.Set("send_addr", _sendAddr) + return nil +} + +// SendAddr Getter +func (r CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) GetSendAddr() string { + return r._sendAddr +} +// SendProvName Setter +// 发货省 +func (r *CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) SetSendProvName(_sendProvName string) error { + r._sendProvName = _sendProvName + r.Set("send_prov_name", _sendProvName) + return nil +} + +// SendProvName Getter +func (r CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) GetSendProvName() string { + return r._sendProvName +} +// RecCityName Setter +// 收货市 +func (r *CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) SetRecCityName(_recCityName string) error { + r._recCityName = _recCityName + r.Set("rec_city_name", _recCityName) + return nil +} + +// RecCityName Getter +func (r CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) GetRecCityName() string { + return r._recCityName +} +// RecAddr Setter +// 收货详细地址 +func (r *CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) SetRecAddr(_recAddr string) error { + r._recAddr = _recAddr + r.Set("rec_addr", _recAddr) + return nil +} + +// RecAddr Getter +func (r CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) GetRecAddr() string { + return r._recAddr +} +// RecCountyName Setter +// 收货区 +func (r *CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) SetRecCountyName(_recCountyName string) error { + r._recCountyName = _recCountyName + r.Set("rec_county_name", _recCountyName) + return nil +} + +// RecCountyName Getter +func (r CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) GetRecCountyName() string { + return r._recCountyName +} +// RecProvName Setter +// 收货省 +func (r *CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) SetRecProvName(_recProvName string) error { + r._recProvName = _recProvName + r.Set("rec_prov_name", _recProvName) + return nil +} + +// RecProvName Getter +func (r CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) GetRecProvName() string { + return r._recProvName +} +// RecTownName Setter +// 收货街道 +func (r *CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) SetRecTownName(_recTownName string) error { + r._recTownName = _recTownName + r.Set("rec_town_name", _recTownName) + return nil +} + +// RecTownName Getter +func (r CainiaoDataLogisticsDeliveryAgingPredictAPIRequest) GetRecTownName() string { + return r._recTownName +} diff --git a/model/logistic/CainiaoDataLogisticsDeliveryAgingPredictAPIResponse.go b/model/logistic/CainiaoDataLogisticsDeliveryAgingPredictAPIResponse.go new file mode 100644 index 0000000000..6e2ef7b4d5 --- /dev/null +++ b/model/logistic/CainiaoDataLogisticsDeliveryAgingPredictAPIResponse.go @@ -0,0 +1,31 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +配送物流时效预测 API返回值 +cainiao.data.logistics.delivery.aging.predict + +时效和服务预期是商家发货时比较关注的信息,也是选择快递公司的一个重要参考(除去长期合作合同因素)。所以,在商家发货时给商家提供线路时效预估能帮助商家选择更好的快递公司,且对消费者来说也能整体提升体验。 + +日常,展示具体的预测时效数值 + +大促期间,展示预测的时效区间 +*/ +type CainiaoDataLogisticsDeliveryAgingPredictAPIResponse struct { + model.CommonResponse + CainiaoDataLogisticsDeliveryAgingPredictAPIResponseModel +} + +// 配送物流时效预测 成功返回结果 +type CainiaoDataLogisticsDeliveryAgingPredictAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_data_logistics_delivery_aging_predict_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 列表类型返回 + Datas []CainiaoDataLogisticsDeliveryAgingPredictData `json:"datas,omitempty" xml:"datas>cainiao_data_logistics_delivery_aging_predict_data,omitempty"` +} diff --git a/model/logistic/CainiaoDataLogisticsDeliveryAgingPredictResponse.go b/model/logistic/CainiaoDataLogisticsDeliveryAgingPredictResponse.go deleted file mode 100644 index bf237a42a5..0000000000 --- a/model/logistic/CainiaoDataLogisticsDeliveryAgingPredictResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -配送物流时效预测 API返回值 -cainiao.data.logistics.delivery.aging.predict - -时效和服务预期是商家发货时比较关注的信息,也是选择快递公司的一个重要参考(除去长期合作合同因素)。所以,在商家发货时给商家提供线路时效预估能帮助商家选择更好的快递公司,且对消费者来说也能整体提升体验。 - -日常,展示具体的预测时效数值 - -大促期间,展示预测的时效区间 -*/ -type CainiaoDataLogisticsDeliveryAgingPredictAPIResponse struct { - model.CommonResponse - CainiaoDataLogisticsDeliveryAgingPredictResponse -} - -// 配送物流时效预测 成功返回结果 -type CainiaoDataLogisticsDeliveryAgingPredictResponse struct { - XMLName xml.Name `xml:"cainiao_data_logistics_delivery_aging_predict_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 列表类型返回 - Datas []CainiaoDataLogisticsDeliveryAgingPredictData `json:"datas,omitempty" xml:"datas>cainiao_data_logistics_delivery_aging_predict_data,omitempty"` -} diff --git a/model/logistic/CainiaoMemberCourierCpresignAPIRequest.go b/model/logistic/CainiaoMemberCourierCpresignAPIRequest.go new file mode 100644 index 0000000000..ed437d7b36 --- /dev/null +++ b/model/logistic/CainiaoMemberCourierCpresignAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +cp清理离职用户信息 API请求 +cainiao.member.courier.cpresign + +CP清理内部离职的用户信息 +*/ +type CainiaoMemberCourierCpresignAPIRequest struct { + model.Params + // 菜鸟用户id + _accountId int64 +} + +// 初始化CainiaoMemberCourierCpresignAPIRequest对象 +func NewCainiaoMemberCourierCpresignRequest() *CainiaoMemberCourierCpresignAPIRequest{ + return &CainiaoMemberCourierCpresignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoMemberCourierCpresignAPIRequest) GetApiMethodName() string { + return "cainiao.member.courier.cpresign" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoMemberCourierCpresignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccountId Setter +// 菜鸟用户id +func (r *CainiaoMemberCourierCpresignAPIRequest) SetAccountId(_accountId int64) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r CainiaoMemberCourierCpresignAPIRequest) GetAccountId() int64 { + return r._accountId +} diff --git a/model/logistic/CainiaoMemberCourierCpresignAPIResponse.go b/model/logistic/CainiaoMemberCourierCpresignAPIResponse.go new file mode 100644 index 0000000000..fdf8218e2d --- /dev/null +++ b/model/logistic/CainiaoMemberCourierCpresignAPIResponse.go @@ -0,0 +1,33 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +cp清理离职用户信息 API返回值 +cainiao.member.courier.cpresign + +CP清理内部离职的用户信息 +*/ +type CainiaoMemberCourierCpresignAPIResponse struct { + model.CommonResponse + CainiaoMemberCourierCpresignAPIResponseModel +} + +// cp清理离职用户信息 成功返回结果 +type CainiaoMemberCourierCpresignAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_member_courier_cpresign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 具体错误信息 + StatusMessage string `json:"status_message,omitempty" xml:"status_message,omitempty"` + // 错误编码 + StatusCode string `json:"status_code,omitempty" xml:"status_code,omitempty"` + // 业务处理是否成功 + Data bool `json:"data,omitempty" xml:"data,omitempty"` + // 调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/logistic/CainiaoMemberCourierCpresignResponse.go b/model/logistic/CainiaoMemberCourierCpresignResponse.go deleted file mode 100644 index 4f8219493a..0000000000 --- a/model/logistic/CainiaoMemberCourierCpresignResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -cp清理离职用户信息 API返回值 -cainiao.member.courier.cpresign - -CP清理内部离职的用户信息 -*/ -type CainiaoMemberCourierCpresignAPIResponse struct { - model.CommonResponse - CainiaoMemberCourierCpresignResponse -} - -// cp清理离职用户信息 成功返回结果 -type CainiaoMemberCourierCpresignResponse struct { - XMLName xml.Name `xml:"cainiao_member_courier_cpresign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 具体错误信息 - StatusMessage string `json:"status_message,omitempty" xml:"status_message,omitempty"` - // 错误编码 - StatusCode string `json:"status_code,omitempty" xml:"status_code,omitempty"` - // 业务处理是否成功 - Data bool `json:"data,omitempty" xml:"data,omitempty"` - // 调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/logistic/CainiaoReachableBatchjudgeAPIRequest.go b/model/logistic/CainiaoReachableBatchjudgeAPIRequest.go new file mode 100644 index 0000000000..2a40c5fcda --- /dev/null +++ b/model/logistic/CainiaoReachableBatchjudgeAPIRequest.go @@ -0,0 +1,80 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +是否派送可达判定批量查询接口 API请求 +cainiao.reachable.batchjudge + +提供给商家在发货之前做截单处理,输入物流商编码和收发货地址进行可达判定,目前支持国内主流的物流服务商, 支持快运和快递两种类型 +*/ +type CainiaoReachableBatchjudgeAPIRequest struct { + model.Params + // 调用方对象 + _clientInfo *ClientInfoDto + // 1:快递 2:快运 + _addressType int64 + // 收发信息 + _data *RoutingReachableBatchRequestDto +} + +// 初始化CainiaoReachableBatchjudgeAPIRequest对象 +func NewCainiaoReachableBatchjudgeRequest() *CainiaoReachableBatchjudgeAPIRequest{ + return &CainiaoReachableBatchjudgeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoReachableBatchjudgeAPIRequest) GetApiMethodName() string { + return "cainiao.reachable.batchjudge" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoReachableBatchjudgeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ClientInfo Setter +// 调用方对象 +func (r *CainiaoReachableBatchjudgeAPIRequest) SetClientInfo(_clientInfo *ClientInfoDto) error { + r._clientInfo = _clientInfo + r.Set("client_info", _clientInfo) + return nil +} + +// ClientInfo Getter +func (r CainiaoReachableBatchjudgeAPIRequest) GetClientInfo() *ClientInfoDto { + return r._clientInfo +} +// AddressType Setter +// 1:快递 2:快运 +func (r *CainiaoReachableBatchjudgeAPIRequest) SetAddressType(_addressType int64) error { + r._addressType = _addressType + r.Set("address_type", _addressType) + return nil +} + +// AddressType Getter +func (r CainiaoReachableBatchjudgeAPIRequest) GetAddressType() int64 { + return r._addressType +} +// Data Setter +// 收发信息 +func (r *CainiaoReachableBatchjudgeAPIRequest) SetData(_data *RoutingReachableBatchRequestDto) error { + r._data = _data + r.Set("data", _data) + return nil +} + +// Data Getter +func (r CainiaoReachableBatchjudgeAPIRequest) GetData() *RoutingReachableBatchRequestDto { + return r._data +} diff --git a/model/logistic/CainiaoReachableBatchjudgeAPIResponse.go b/model/logistic/CainiaoReachableBatchjudgeAPIResponse.go new file mode 100644 index 0000000000..01fff4b48c --- /dev/null +++ b/model/logistic/CainiaoReachableBatchjudgeAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +是否派送可达判定批量查询接口 API返回值 +cainiao.reachable.batchjudge + +提供给商家在发货之前做截单处理,输入物流商编码和收发货地址进行可达判定,目前支持国内主流的物流服务商, 支持快运和快递两种类型 +*/ +type CainiaoReachableBatchjudgeAPIResponse struct { + model.CommonResponse + CainiaoReachableBatchjudgeAPIResponseModel +} + +// 是否派送可达判定批量查询接口 成功返回结果 +type CainiaoReachableBatchjudgeAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_reachable_batchjudge_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *BaseResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/logistic/CainiaoReachableBatchjudgeResponse.go b/model/logistic/CainiaoReachableBatchjudgeResponse.go deleted file mode 100644 index c90d327785..0000000000 --- a/model/logistic/CainiaoReachableBatchjudgeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -是否派送可达判定批量查询接口 API返回值 -cainiao.reachable.batchjudge - -提供给商家在发货之前做截单处理,输入物流商编码和收发货地址进行可达判定,目前支持国内主流的物流服务商, 支持快运和快递两种类型 -*/ -type CainiaoReachableBatchjudgeAPIResponse struct { - model.CommonResponse - CainiaoReachableBatchjudgeResponse -} - -// 是否派送可达判定批量查询接口 成功返回结果 -type CainiaoReachableBatchjudgeResponse struct { - XMLName xml.Name `xml:"cainiao_reachable_batchjudge_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *BaseResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/logistic/TaobaoAreasGetAPIRequest.go b/model/logistic/TaobaoAreasGetAPIRequest.go new file mode 100644 index 0000000000..232821b660 --- /dev/null +++ b/model/logistic/TaobaoAreasGetAPIRequest.go @@ -0,0 +1,53 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询地址区域 API请求 +taobao.areas.get + +查询标准地址区域代码信息。可以直接参考最新的行政区域代码: + http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/ +*/ +type TaobaoAreasGetAPIRequest struct { + model.Params + // 需返回的字段列表.可选值:Area 结构中的所有字段;多个字段之间用","分隔.如:id,type,name,parent_id,zip. + _fields string +} + +// 初始化TaobaoAreasGetAPIRequest对象 +func NewTaobaoAreasGetRequest() *TaobaoAreasGetAPIRequest{ + return &TaobaoAreasGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAreasGetAPIRequest) GetApiMethodName() string { + return "taobao.areas.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAreasGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需返回的字段列表.可选值:Area 结构中的所有字段;多个字段之间用","分隔.如:id,type,name,parent_id,zip. +func (r *TaobaoAreasGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoAreasGetAPIRequest) GetFields() string { + return r._fields +} diff --git a/model/logistic/TaobaoAreasGetAPIResponse.go b/model/logistic/TaobaoAreasGetAPIResponse.go new file mode 100644 index 0000000000..05b69fea3d --- /dev/null +++ b/model/logistic/TaobaoAreasGetAPIResponse.go @@ -0,0 +1,28 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询地址区域 API返回值 +taobao.areas.get + +查询标准地址区域代码信息。可以直接参考最新的行政区域代码: + http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/ +*/ +type TaobaoAreasGetAPIResponse struct { + model.CommonResponse + TaobaoAreasGetAPIResponseModel +} + +// 查询地址区域 成功返回结果 +type TaobaoAreasGetAPIResponseModel struct { + XMLName xml.Name `xml:"areas_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 地址区域信息列表.返回的Area包含的具体信息为入参fields请求的字段信息 。 + Areas []Area `json:"areas,omitempty" xml:"areas>area,omitempty"` +} diff --git a/model/logistic/TaobaoAreasGetResponse.go b/model/logistic/TaobaoAreasGetResponse.go deleted file mode 100644 index ee1dcce3f8..0000000000 --- a/model/logistic/TaobaoAreasGetResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询地址区域 API返回值 -taobao.areas.get - -查询标准地址区域代码信息。可以直接参考最新的行政区域代码: - http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/ -*/ -type TaobaoAreasGetAPIResponse struct { - model.CommonResponse - TaobaoAreasGetResponse -} - -// 查询地址区域 成功返回结果 -type TaobaoAreasGetResponse struct { - XMLName xml.Name `xml:"areas_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 地址区域信息列表.返回的Area包含的具体信息为入参fields请求的字段信息 。 - Areas []Area `json:"areas,omitempty" xml:"areas>area,omitempty"` -} diff --git a/model/logistic/TaobaoDeliveryTemplateAddAPIRequest.go b/model/logistic/TaobaoDeliveryTemplateAddAPIRequest.go new file mode 100644 index 0000000000..fd82c24eb0 --- /dev/null +++ b/model/logistic/TaobaoDeliveryTemplateAddAPIRequest.go @@ -0,0 +1,178 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增运费模板 API请求 +taobao.delivery.template.add + +增加运费模板的外部接口 +*/ +type TaobaoDeliveryTemplateAddAPIRequest struct { + model.Params + // 运费模板的名称,长度不能超过50个字节 + _name string + // 可选值:0、1 ,说明如下
0:表示买家承担服务费;
1:表示卖家承担服务费 + _assumer int64 + // 可选值:0、1、3,说明如下。
0:表示按宝贝件数计算运费
1:表示按宝贝重量计算运费
3:表示按宝贝体积计算运费 + _valuation int64 + // 运费方式:平邮 (post),快递公司(express),EMS (ems),货到付款(cod),物流宝保障速递(wlb),家装物流(furniture)结构:value1;value2;value3;value4 如: post;express;ems;cod
注意:在添加多个运费方式时,字符串中使用 ";" 分号区分。template_dests(指定地区)template_start_standards(首费标准)、template_start_fees(首费)、template_add_standards(增费标准)、template_add_fees(增费)必须与template_types的分号数量相同.
注意:
1、post,ems,express三种运费方式必须填写一个
2、只有订购了货到付款用户可以填cod;只有家装物流用户可以填写furniture只有订购了保障速递的用户可以填写bzsd,只有物流宝用户可以填写wlb
3、如果是货到付款用户当没有填写cod运送方式时,运费模板会默认继承express的费用为cod的费用
4、如果是保障速递户当没有填写bzsd运送方式时,运费模板会默认继承express的费用为bzsd的费用
5、由于3和4的原因所以当是货到付款用户或保障速递用户时如果没填写对应的运送方式express是必须填写的
+ _templateTypes string + // 邮费子项涉及的地区.结构: value1;value2;value3,value4
如:1,110000;1,110000;1,310000;1,320000,330000。 aredId解释(1=全国,110000=北京,310000=上海,320000=江苏,330000=浙江)如果template_types设置为post;ems;exmpress;cod则表示为平邮(post)指定默认地区(全国)和北京地区的运费;其他的类似以分号区分一一对应
可以用taobao.areas.get接口获取.或者参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20080215_402462675.htm

每个运费方式设置涉及的地区中必须包含全国地区(areaId=1)表示默认运费,可以只设置默认运费
注意:为多个地区指定指定不同(首费标准、首费、增费标准、增费一项不一样就算不同)的运费以逗号","区分,template_start_standards(首费标准)、template_start_fees(首费)、template_add_standards(增费标准)、template_add_fees(增费)必须与template_types分号数量相同。如果为需要为多个地区指定相同运费则地区之间用“|”隔开即可。如果卖家没有传入发货地址则默认地址库的发货地址 + _templateDests string + // 首费标准:当valuation(记价方式)为0时输入1-9999范围内的整数
当valuation(记价方式)为1时输入0.1-9999.9范围内的小数只能包含以为小数(单位为千克)
当valuation(记价方式)为3时输入0.1-999.9范围内的数值,数值只能包含一位小数(单位为 立方米)
输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致 + _templateStartStandards string + // 首费:输入0.00-999.99(最多包含两位小数)
输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致 + _templateStartFees string + // 增费标准:当valuation(记价方式)为0时输入1-9999范围内的整数
当valuation(记价方式)为1时输入0.1-9999.9范围内的小数只能包含以为小数(单位为千克)
当valuation(记价方式)为3时输入0.1-999.9范围内的数值,数值只能包含一位小数(单位为 立方米)

输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致 + _templateAddStandards string + // 增费:输入0.00-999.99(最多包含两位小数)



增费必须小于等于首费,但是当首费为0时增费可以大于首费




输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致 + _templateAddFees string + // 卖家发货地址区域ID


可以不填,如果没有填写取卖家默认发货地址的区域ID,如果需要输入必须用taobao.areas.get接口获取.或者参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20080215_402462675.htm




注意:填入该值时必须取您的发货地址最小区域级别ID,比如您的发货地址是:某省XX市xx区(县)时需要填入区(县)的ID,当然有些地方没有区或县可以直接填市级别的ID + _consignAreaId int64 +} + +// 初始化TaobaoDeliveryTemplateAddAPIRequest对象 +func NewTaobaoDeliveryTemplateAddRequest() *TaobaoDeliveryTemplateAddAPIRequest{ + return &TaobaoDeliveryTemplateAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDeliveryTemplateAddAPIRequest) GetApiMethodName() string { + return "taobao.delivery.template.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDeliveryTemplateAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// 运费模板的名称,长度不能超过50个字节 +func (r *TaobaoDeliveryTemplateAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoDeliveryTemplateAddAPIRequest) GetName() string { + return r._name +} +// Assumer Setter +// 可选值:0、1 ,说明如下
0:表示买家承担服务费;
1:表示卖家承担服务费 +func (r *TaobaoDeliveryTemplateAddAPIRequest) SetAssumer(_assumer int64) error { + r._assumer = _assumer + r.Set("assumer", _assumer) + return nil +} + +// Assumer Getter +func (r TaobaoDeliveryTemplateAddAPIRequest) GetAssumer() int64 { + return r._assumer +} +// Valuation Setter +// 可选值:0、1、3,说明如下。
0:表示按宝贝件数计算运费
1:表示按宝贝重量计算运费
3:表示按宝贝体积计算运费 +func (r *TaobaoDeliveryTemplateAddAPIRequest) SetValuation(_valuation int64) error { + r._valuation = _valuation + r.Set("valuation", _valuation) + return nil +} + +// Valuation Getter +func (r TaobaoDeliveryTemplateAddAPIRequest) GetValuation() int64 { + return r._valuation +} +// TemplateTypes Setter +// 运费方式:平邮 (post),快递公司(express),EMS (ems),货到付款(cod),物流宝保障速递(wlb),家装物流(furniture)结构:value1;value2;value3;value4 如: post;express;ems;cod
注意:在添加多个运费方式时,字符串中使用 ";" 分号区分。template_dests(指定地区)template_start_standards(首费标准)、template_start_fees(首费)、template_add_standards(增费标准)、template_add_fees(增费)必须与template_types的分号数量相同.
注意:
1、post,ems,express三种运费方式必须填写一个
2、只有订购了货到付款用户可以填cod;只有家装物流用户可以填写furniture只有订购了保障速递的用户可以填写bzsd,只有物流宝用户可以填写wlb
3、如果是货到付款用户当没有填写cod运送方式时,运费模板会默认继承express的费用为cod的费用
4、如果是保障速递户当没有填写bzsd运送方式时,运费模板会默认继承express的费用为bzsd的费用
5、由于3和4的原因所以当是货到付款用户或保障速递用户时如果没填写对应的运送方式express是必须填写的
+func (r *TaobaoDeliveryTemplateAddAPIRequest) SetTemplateTypes(_templateTypes string) error { + r._templateTypes = _templateTypes + r.Set("template_types", _templateTypes) + return nil +} + +// TemplateTypes Getter +func (r TaobaoDeliveryTemplateAddAPIRequest) GetTemplateTypes() string { + return r._templateTypes +} +// TemplateDests Setter +// 邮费子项涉及的地区.结构: value1;value2;value3,value4
如:1,110000;1,110000;1,310000;1,320000,330000。 aredId解释(1=全国,110000=北京,310000=上海,320000=江苏,330000=浙江)如果template_types设置为post;ems;exmpress;cod则表示为平邮(post)指定默认地区(全国)和北京地区的运费;其他的类似以分号区分一一对应
可以用taobao.areas.get接口获取.或者参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20080215_402462675.htm

每个运费方式设置涉及的地区中必须包含全国地区(areaId=1)表示默认运费,可以只设置默认运费
注意:为多个地区指定指定不同(首费标准、首费、增费标准、增费一项不一样就算不同)的运费以逗号","区分,template_start_standards(首费标准)、template_start_fees(首费)、template_add_standards(增费标准)、template_add_fees(增费)必须与template_types分号数量相同。如果为需要为多个地区指定相同运费则地区之间用“|”隔开即可。如果卖家没有传入发货地址则默认地址库的发货地址 +func (r *TaobaoDeliveryTemplateAddAPIRequest) SetTemplateDests(_templateDests string) error { + r._templateDests = _templateDests + r.Set("template_dests", _templateDests) + return nil +} + +// TemplateDests Getter +func (r TaobaoDeliveryTemplateAddAPIRequest) GetTemplateDests() string { + return r._templateDests +} +// TemplateStartStandards Setter +// 首费标准:当valuation(记价方式)为0时输入1-9999范围内的整数
当valuation(记价方式)为1时输入0.1-9999.9范围内的小数只能包含以为小数(单位为千克)
当valuation(记价方式)为3时输入0.1-999.9范围内的数值,数值只能包含一位小数(单位为 立方米)
输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致 +func (r *TaobaoDeliveryTemplateAddAPIRequest) SetTemplateStartStandards(_templateStartStandards string) error { + r._templateStartStandards = _templateStartStandards + r.Set("template_start_standards", _templateStartStandards) + return nil +} + +// TemplateStartStandards Getter +func (r TaobaoDeliveryTemplateAddAPIRequest) GetTemplateStartStandards() string { + return r._templateStartStandards +} +// TemplateStartFees Setter +// 首费:输入0.00-999.99(最多包含两位小数)
输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致 +func (r *TaobaoDeliveryTemplateAddAPIRequest) SetTemplateStartFees(_templateStartFees string) error { + r._templateStartFees = _templateStartFees + r.Set("template_start_fees", _templateStartFees) + return nil +} + +// TemplateStartFees Getter +func (r TaobaoDeliveryTemplateAddAPIRequest) GetTemplateStartFees() string { + return r._templateStartFees +} +// TemplateAddStandards Setter +// 增费标准:当valuation(记价方式)为0时输入1-9999范围内的整数
当valuation(记价方式)为1时输入0.1-9999.9范围内的小数只能包含以为小数(单位为千克)
当valuation(记价方式)为3时输入0.1-999.9范围内的数值,数值只能包含一位小数(单位为 立方米)

输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致 +func (r *TaobaoDeliveryTemplateAddAPIRequest) SetTemplateAddStandards(_templateAddStandards string) error { + r._templateAddStandards = _templateAddStandards + r.Set("template_add_standards", _templateAddStandards) + return nil +} + +// TemplateAddStandards Getter +func (r TaobaoDeliveryTemplateAddAPIRequest) GetTemplateAddStandards() string { + return r._templateAddStandards +} +// TemplateAddFees Setter +// 增费:输入0.00-999.99(最多包含两位小数)



增费必须小于等于首费,但是当首费为0时增费可以大于首费




输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致 +func (r *TaobaoDeliveryTemplateAddAPIRequest) SetTemplateAddFees(_templateAddFees string) error { + r._templateAddFees = _templateAddFees + r.Set("template_add_fees", _templateAddFees) + return nil +} + +// TemplateAddFees Getter +func (r TaobaoDeliveryTemplateAddAPIRequest) GetTemplateAddFees() string { + return r._templateAddFees +} +// ConsignAreaId Setter +// 卖家发货地址区域ID


可以不填,如果没有填写取卖家默认发货地址的区域ID,如果需要输入必须用taobao.areas.get接口获取.或者参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20080215_402462675.htm




注意:填入该值时必须取您的发货地址最小区域级别ID,比如您的发货地址是:某省XX市xx区(县)时需要填入区(县)的ID,当然有些地方没有区或县可以直接填市级别的ID +func (r *TaobaoDeliveryTemplateAddAPIRequest) SetConsignAreaId(_consignAreaId int64) error { + r._consignAreaId = _consignAreaId + r.Set("consign_area_id", _consignAreaId) + return nil +} + +// ConsignAreaId Getter +func (r TaobaoDeliveryTemplateAddAPIRequest) GetConsignAreaId() int64 { + return r._consignAreaId +} diff --git a/model/logistic/TaobaoDeliveryTemplateAddAPIResponse.go b/model/logistic/TaobaoDeliveryTemplateAddAPIResponse.go new file mode 100644 index 0000000000..4000684f3a --- /dev/null +++ b/model/logistic/TaobaoDeliveryTemplateAddAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增运费模板 API返回值 +taobao.delivery.template.add + +增加运费模板的外部接口 +*/ +type TaobaoDeliveryTemplateAddAPIResponse struct { + model.CommonResponse + TaobaoDeliveryTemplateAddAPIResponseModel +} + +// 新增运费模板 成功返回结果 +type TaobaoDeliveryTemplateAddAPIResponseModel struct { + XMLName xml.Name `xml:"delivery_template_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 模板对象 + DeliveryTemplate *DeliveryTemplate `json:"delivery_template,omitempty" xml:"delivery_template,omitempty"` +} diff --git a/model/logistic/TaobaoDeliveryTemplateAddResponse.go b/model/logistic/TaobaoDeliveryTemplateAddResponse.go deleted file mode 100644 index 95f2667c29..0000000000 --- a/model/logistic/TaobaoDeliveryTemplateAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增运费模板 API返回值 -taobao.delivery.template.add - -增加运费模板的外部接口 -*/ -type TaobaoDeliveryTemplateAddAPIResponse struct { - model.CommonResponse - TaobaoDeliveryTemplateAddResponse -} - -// 新增运费模板 成功返回结果 -type TaobaoDeliveryTemplateAddResponse struct { - XMLName xml.Name `xml:"delivery_template_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 模板对象 - DeliveryTemplate *DeliveryTemplate `json:"delivery_template,omitempty" xml:"delivery_template,omitempty"` -} diff --git a/model/logistic/TaobaoDeliveryTemplateDeleteAPIRequest.go b/model/logistic/TaobaoDeliveryTemplateDeleteAPIRequest.go new file mode 100644 index 0000000000..a67161f442 --- /dev/null +++ b/model/logistic/TaobaoDeliveryTemplateDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除运费模板 API请求 +taobao.delivery.template.delete + +根据用户指定的模板ID删除指定的模板 +*/ +type TaobaoDeliveryTemplateDeleteAPIRequest struct { + model.Params + // 运费模板ID + _templateId int64 +} + +// 初始化TaobaoDeliveryTemplateDeleteAPIRequest对象 +func NewTaobaoDeliveryTemplateDeleteRequest() *TaobaoDeliveryTemplateDeleteAPIRequest{ + return &TaobaoDeliveryTemplateDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDeliveryTemplateDeleteAPIRequest) GetApiMethodName() string { + return "taobao.delivery.template.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDeliveryTemplateDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TemplateId Setter +// 运费模板ID +func (r *TaobaoDeliveryTemplateDeleteAPIRequest) SetTemplateId(_templateId int64) error { + r._templateId = _templateId + r.Set("template_id", _templateId) + return nil +} + +// TemplateId Getter +func (r TaobaoDeliveryTemplateDeleteAPIRequest) GetTemplateId() int64 { + return r._templateId +} diff --git a/model/logistic/TaobaoDeliveryTemplateDeleteAPIResponse.go b/model/logistic/TaobaoDeliveryTemplateDeleteAPIResponse.go new file mode 100644 index 0000000000..2b747b4e3c --- /dev/null +++ b/model/logistic/TaobaoDeliveryTemplateDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除运费模板 API返回值 +taobao.delivery.template.delete + +根据用户指定的模板ID删除指定的模板 +*/ +type TaobaoDeliveryTemplateDeleteAPIResponse struct { + model.CommonResponse + TaobaoDeliveryTemplateDeleteAPIResponseModel +} + +// 删除运费模板 成功返回结果 +type TaobaoDeliveryTemplateDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"delivery_template_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 表示删除成功还是失败 + Complete bool `json:"complete,omitempty" xml:"complete,omitempty"` +} diff --git a/model/logistic/TaobaoDeliveryTemplateDeleteResponse.go b/model/logistic/TaobaoDeliveryTemplateDeleteResponse.go deleted file mode 100644 index 3f4256e1d2..0000000000 --- a/model/logistic/TaobaoDeliveryTemplateDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除运费模板 API返回值 -taobao.delivery.template.delete - -根据用户指定的模板ID删除指定的模板 -*/ -type TaobaoDeliveryTemplateDeleteAPIResponse struct { - model.CommonResponse - TaobaoDeliveryTemplateDeleteResponse -} - -// 删除运费模板 成功返回结果 -type TaobaoDeliveryTemplateDeleteResponse struct { - XMLName xml.Name `xml:"delivery_template_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 表示删除成功还是失败 - Complete bool `json:"complete,omitempty" xml:"complete,omitempty"` -} diff --git a/model/logistic/TaobaoDeliveryTemplateGetAPIRequest.go b/model/logistic/TaobaoDeliveryTemplateGetAPIRequest.go new file mode 100644 index 0000000000..9267e98f9d --- /dev/null +++ b/model/logistic/TaobaoDeliveryTemplateGetAPIRequest.go @@ -0,0 +1,80 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户指定运费模板信息 API请求 +taobao.delivery.template.get + +获取用户指定运费模板信息 +*/ +type TaobaoDeliveryTemplateGetAPIRequest struct { + model.Params + // 需要查询的运费模板ID列表 + _templateIds []string + // 需返回的字段列表。


可选值:示例中的值;各字段之间用","隔开





template_id:查询模板ID

template_name:查询模板名称

assumer:查询服务承担放

valuation:查询计价规则

supports:查询增值服务列表

created:查询模板创建时间

modified:查询修改时间

consign_area_id:运费模板上设置的卖家发货地址最小级别ID

address:卖家地址信息





query_cod:查询货到付款运费信息

query_post:查询平邮运费信息

query_express:查询快递公司运费信息

query_ems:查询EMS运费信息

query_bzsd:查询普通保障速递运费信息

query_wlb:查询物流宝保障速递运费信息

query_furniture:查询家装物流运费信息




不能有空格 + _fields []string + // 在没有登录的情况下根据淘宝用户昵称查询指定的模板 + _userNick string +} + +// 初始化TaobaoDeliveryTemplateGetAPIRequest对象 +func NewTaobaoDeliveryTemplateGetRequest() *TaobaoDeliveryTemplateGetAPIRequest{ + return &TaobaoDeliveryTemplateGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDeliveryTemplateGetAPIRequest) GetApiMethodName() string { + return "taobao.delivery.template.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDeliveryTemplateGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TemplateIds Setter +// 需要查询的运费模板ID列表 +func (r *TaobaoDeliveryTemplateGetAPIRequest) SetTemplateIds(_templateIds []string) error { + r._templateIds = _templateIds + r.Set("template_ids", _templateIds) + return nil +} + +// TemplateIds Getter +func (r TaobaoDeliveryTemplateGetAPIRequest) GetTemplateIds() []string { + return r._templateIds +} +// Fields Setter +// 需返回的字段列表。


可选值:示例中的值;各字段之间用","隔开





template_id:查询模板ID

template_name:查询模板名称

assumer:查询服务承担放

valuation:查询计价规则

supports:查询增值服务列表

created:查询模板创建时间

modified:查询修改时间

consign_area_id:运费模板上设置的卖家发货地址最小级别ID

address:卖家地址信息





query_cod:查询货到付款运费信息

query_post:查询平邮运费信息

query_express:查询快递公司运费信息

query_ems:查询EMS运费信息

query_bzsd:查询普通保障速递运费信息

query_wlb:查询物流宝保障速递运费信息

query_furniture:查询家装物流运费信息




不能有空格 +func (r *TaobaoDeliveryTemplateGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoDeliveryTemplateGetAPIRequest) GetFields() []string { + return r._fields +} +// UserNick Setter +// 在没有登录的情况下根据淘宝用户昵称查询指定的模板 +func (r *TaobaoDeliveryTemplateGetAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r TaobaoDeliveryTemplateGetAPIRequest) GetUserNick() string { + return r._userNick +} diff --git a/model/logistic/TaobaoDeliveryTemplateGetAPIResponse.go b/model/logistic/TaobaoDeliveryTemplateGetAPIResponse.go new file mode 100644 index 0000000000..4e4c6c7819 --- /dev/null +++ b/model/logistic/TaobaoDeliveryTemplateGetAPIResponse.go @@ -0,0 +1,29 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户指定运费模板信息 API返回值 +taobao.delivery.template.get + +获取用户指定运费模板信息 +*/ +type TaobaoDeliveryTemplateGetAPIResponse struct { + model.CommonResponse + TaobaoDeliveryTemplateGetAPIResponseModel +} + +// 获取用户指定运费模板信息 成功返回结果 +type TaobaoDeliveryTemplateGetAPIResponseModel struct { + XMLName xml.Name `xml:"delivery_template_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 运费模板列表 + DeliveryTemplates []DeliveryTemplate `json:"delivery_templates,omitempty" xml:"delivery_templates>delivery_template,omitempty"` + // 获得到符合条件的结果总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/logistic/TaobaoDeliveryTemplateGetResponse.go b/model/logistic/TaobaoDeliveryTemplateGetResponse.go deleted file mode 100644 index ff8e39a97a..0000000000 --- a/model/logistic/TaobaoDeliveryTemplateGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户指定运费模板信息 API返回值 -taobao.delivery.template.get - -获取用户指定运费模板信息 -*/ -type TaobaoDeliveryTemplateGetAPIResponse struct { - model.CommonResponse - TaobaoDeliveryTemplateGetResponse -} - -// 获取用户指定运费模板信息 成功返回结果 -type TaobaoDeliveryTemplateGetResponse struct { - XMLName xml.Name `xml:"delivery_template_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 运费模板列表 - DeliveryTemplates []DeliveryTemplate `json:"delivery_templates,omitempty" xml:"delivery_templates>delivery_template,omitempty"` - // 获得到符合条件的结果总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/logistic/TaobaoDeliveryTemplateUpdateAPIRequest.go b/model/logistic/TaobaoDeliveryTemplateUpdateAPIRequest.go new file mode 100644 index 0000000000..3553b05d42 --- /dev/null +++ b/model/logistic/TaobaoDeliveryTemplateUpdateAPIRequest.go @@ -0,0 +1,164 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改运费模板 API请求 +taobao.delivery.template.update + +修改运费模板 +*/ +type TaobaoDeliveryTemplateUpdateAPIRequest struct { + model.Params + // 模板名称,长度不能大于50个字节 + _name string + // 需要修改的模板对应的模板ID + _templateId int64 + // 可选值:0,1
说明
0:表示买家承担服务费;
1:表示卖家承担服务费 + _assumer int64 + // 运费方式:平邮 (post),快递公司(express),EMS (ems),货到付款(cod)结构:value1;value2;value3;value4
如: post;express;ems;cod


注意:在添加多个运费方式时,字符串中使用 ";" 分号区分。template_dests(指定地区) template_start_standards(首费标准)、template_start_fees(首费)、template_add_standards(增费标准)、template_add_fees(增费)必须与template_types的分号数量相同.




普通用户:post,ems,express三种运费方式必须填写一个,不能填写cod。
货到付款用户:如果填写了cod运费方式,则post,ems,express三种运费方式也必须填写一个,如果没有填写cod则填写的运费方式中必须存在express
+ _templateTypes string + // 邮费子项涉及的地区.结构: value1;value2;value3,value4
如:1,110000;1,110000;1,310000;1,320000,330000。 aredId解释(1=全国,110000=北京,310000=上海,320000=江苏,330000=浙江)如果template_types设置为post;ems;exmpress;cod则表示为平邮(post)指定默认地区(全国)和北京地区的运费;其他的类似以分号区分一一对应
可以用taobao.areas.get接口获取.或者参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20080215_402462675.htm
每个运费方式设置的设涉及地区中必须包含全国地区(areaId=1)表示默认运费,可以只设置默认运费
注意:为多个地区指定指定不同(首费标准、首费、增费标准、增费一项不一样就算不同)的运费以逗号","区分,template_start_standards(首费标准)、template_start_fees(首费)、template_add_standards(增费标准)、template_add_fees(增费)必须与template_types分号数量相同。如果为需要为多个地区指定相同运费则地区之间用“|”隔开即可。 + _templateDests string + // 首费标准:当valuation(记价方式)为0时输入1-9999范围内的整数
首费标准目前只能为1

输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致 + _templateStartStandards string + // 首费:输入0.01-999.99(最多包含两位小数)

首费不能为0
输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致 + _templateStartFees string + // 增费标准:当valuation(记价方式)为0时输入1-9999范围内的整数
增费标准目前只能为1
输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致 + _templateAddStandards string + // 增费:输入0.00-999.99(最多包含两位小数)
增费可以为0
输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致 + _templateAddFees string +} + +// 初始化TaobaoDeliveryTemplateUpdateAPIRequest对象 +func NewTaobaoDeliveryTemplateUpdateRequest() *TaobaoDeliveryTemplateUpdateAPIRequest{ + return &TaobaoDeliveryTemplateUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDeliveryTemplateUpdateAPIRequest) GetApiMethodName() string { + return "taobao.delivery.template.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDeliveryTemplateUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// 模板名称,长度不能大于50个字节 +func (r *TaobaoDeliveryTemplateUpdateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoDeliveryTemplateUpdateAPIRequest) GetName() string { + return r._name +} +// TemplateId Setter +// 需要修改的模板对应的模板ID +func (r *TaobaoDeliveryTemplateUpdateAPIRequest) SetTemplateId(_templateId int64) error { + r._templateId = _templateId + r.Set("template_id", _templateId) + return nil +} + +// TemplateId Getter +func (r TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateId() int64 { + return r._templateId +} +// Assumer Setter +// 可选值:0,1
说明
0:表示买家承担服务费;
1:表示卖家承担服务费 +func (r *TaobaoDeliveryTemplateUpdateAPIRequest) SetAssumer(_assumer int64) error { + r._assumer = _assumer + r.Set("assumer", _assumer) + return nil +} + +// Assumer Getter +func (r TaobaoDeliveryTemplateUpdateAPIRequest) GetAssumer() int64 { + return r._assumer +} +// TemplateTypes Setter +// 运费方式:平邮 (post),快递公司(express),EMS (ems),货到付款(cod)结构:value1;value2;value3;value4
如: post;express;ems;cod


注意:在添加多个运费方式时,字符串中使用 ";" 分号区分。template_dests(指定地区) template_start_standards(首费标准)、template_start_fees(首费)、template_add_standards(增费标准)、template_add_fees(增费)必须与template_types的分号数量相同.




普通用户:post,ems,express三种运费方式必须填写一个,不能填写cod。
货到付款用户:如果填写了cod运费方式,则post,ems,express三种运费方式也必须填写一个,如果没有填写cod则填写的运费方式中必须存在express
+func (r *TaobaoDeliveryTemplateUpdateAPIRequest) SetTemplateTypes(_templateTypes string) error { + r._templateTypes = _templateTypes + r.Set("template_types", _templateTypes) + return nil +} + +// TemplateTypes Getter +func (r TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateTypes() string { + return r._templateTypes +} +// TemplateDests Setter +// 邮费子项涉及的地区.结构: value1;value2;value3,value4
如:1,110000;1,110000;1,310000;1,320000,330000。 aredId解释(1=全国,110000=北京,310000=上海,320000=江苏,330000=浙江)如果template_types设置为post;ems;exmpress;cod则表示为平邮(post)指定默认地区(全国)和北京地区的运费;其他的类似以分号区分一一对应
可以用taobao.areas.get接口获取.或者参考:http://www.stats.gov.cn/tjbz/xzqhdm/t20080215_402462675.htm
每个运费方式设置的设涉及地区中必须包含全国地区(areaId=1)表示默认运费,可以只设置默认运费
注意:为多个地区指定指定不同(首费标准、首费、增费标准、增费一项不一样就算不同)的运费以逗号","区分,template_start_standards(首费标准)、template_start_fees(首费)、template_add_standards(增费标准)、template_add_fees(增费)必须与template_types分号数量相同。如果为需要为多个地区指定相同运费则地区之间用“|”隔开即可。 +func (r *TaobaoDeliveryTemplateUpdateAPIRequest) SetTemplateDests(_templateDests string) error { + r._templateDests = _templateDests + r.Set("template_dests", _templateDests) + return nil +} + +// TemplateDests Getter +func (r TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateDests() string { + return r._templateDests +} +// TemplateStartStandards Setter +// 首费标准:当valuation(记价方式)为0时输入1-9999范围内的整数
首费标准目前只能为1

输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致 +func (r *TaobaoDeliveryTemplateUpdateAPIRequest) SetTemplateStartStandards(_templateStartStandards string) error { + r._templateStartStandards = _templateStartStandards + r.Set("template_start_standards", _templateStartStandards) + return nil +} + +// TemplateStartStandards Getter +func (r TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateStartStandards() string { + return r._templateStartStandards +} +// TemplateStartFees Setter +// 首费:输入0.01-999.99(最多包含两位小数)

首费不能为0
输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致 +func (r *TaobaoDeliveryTemplateUpdateAPIRequest) SetTemplateStartFees(_templateStartFees string) error { + r._templateStartFees = _templateStartFees + r.Set("template_start_fees", _templateStartFees) + return nil +} + +// TemplateStartFees Getter +func (r TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateStartFees() string { + return r._templateStartFees +} +// TemplateAddStandards Setter +// 增费标准:当valuation(记价方式)为0时输入1-9999范围内的整数
增费标准目前只能为1
输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致 +func (r *TaobaoDeliveryTemplateUpdateAPIRequest) SetTemplateAddStandards(_templateAddStandards string) error { + r._templateAddStandards = _templateAddStandards + r.Set("template_add_standards", _templateAddStandards) + return nil +} + +// TemplateAddStandards Getter +func (r TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateAddStandards() string { + return r._templateAddStandards +} +// TemplateAddFees Setter +// 增费:输入0.00-999.99(最多包含两位小数)
增费可以为0
输入的格式分号个数和template_types数量一致,逗号个数必须与template_dests以分号隔开之后一一对应的数量一致 +func (r *TaobaoDeliveryTemplateUpdateAPIRequest) SetTemplateAddFees(_templateAddFees string) error { + r._templateAddFees = _templateAddFees + r.Set("template_add_fees", _templateAddFees) + return nil +} + +// TemplateAddFees Getter +func (r TaobaoDeliveryTemplateUpdateAPIRequest) GetTemplateAddFees() string { + return r._templateAddFees +} diff --git a/model/logistic/TaobaoDeliveryTemplateUpdateAPIResponse.go b/model/logistic/TaobaoDeliveryTemplateUpdateAPIResponse.go new file mode 100644 index 0000000000..4eb534910f --- /dev/null +++ b/model/logistic/TaobaoDeliveryTemplateUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改运费模板 API返回值 +taobao.delivery.template.update + +修改运费模板 +*/ +type TaobaoDeliveryTemplateUpdateAPIResponse struct { + model.CommonResponse + TaobaoDeliveryTemplateUpdateAPIResponseModel +} + +// 修改运费模板 成功返回结果 +type TaobaoDeliveryTemplateUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"delivery_template_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 表示修改是否成功 + Complete bool `json:"complete,omitempty" xml:"complete,omitempty"` +} diff --git a/model/logistic/TaobaoDeliveryTemplateUpdateResponse.go b/model/logistic/TaobaoDeliveryTemplateUpdateResponse.go deleted file mode 100644 index 2dc3297aca..0000000000 --- a/model/logistic/TaobaoDeliveryTemplateUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改运费模板 API返回值 -taobao.delivery.template.update - -修改运费模板 -*/ -type TaobaoDeliveryTemplateUpdateAPIResponse struct { - model.CommonResponse - TaobaoDeliveryTemplateUpdateResponse -} - -// 修改运费模板 成功返回结果 -type TaobaoDeliveryTemplateUpdateResponse struct { - XMLName xml.Name `xml:"delivery_template_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 表示修改是否成功 - Complete bool `json:"complete,omitempty" xml:"complete,omitempty"` -} diff --git a/model/logistic/TaobaoDeliveryTemplatesGetAPIRequest.go b/model/logistic/TaobaoDeliveryTemplatesGetAPIRequest.go new file mode 100644 index 0000000000..93388ad56f --- /dev/null +++ b/model/logistic/TaobaoDeliveryTemplatesGetAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户下所有模板 API请求 +taobao.delivery.templates.get + +根据用户ID获取用户下所有模板 +*/ +type TaobaoDeliveryTemplatesGetAPIRequest struct { + model.Params + // 需返回的字段列表。


可选值:示例中的值;各字段之间用","隔开





template_id:查询模板ID

template_name:查询模板名称

assumer:查询服务承担放

valuation:查询计价规则

supports:查询增值服务列表

created:查询模板创建时间

modified:查询修改时间

consign_area_id:运费模板上设置的卖家发货地址最小级别ID

address:卖家地址信息





query_cod:查询货到付款运费信息

query_post:查询平邮运费信息

query_express:查询快递公司运费信息

query_ems:查询EMS运费信息

query_bzsd:查询普通保障速递运费信息

query_wlb:查询物流宝保障速递运费信息

query_furniture:查询家装物流运费信息




不能有空格 + _fields string +} + +// 初始化TaobaoDeliveryTemplatesGetAPIRequest对象 +func NewTaobaoDeliveryTemplatesGetRequest() *TaobaoDeliveryTemplatesGetAPIRequest{ + return &TaobaoDeliveryTemplatesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDeliveryTemplatesGetAPIRequest) GetApiMethodName() string { + return "taobao.delivery.templates.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDeliveryTemplatesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需返回的字段列表。


可选值:示例中的值;各字段之间用","隔开





template_id:查询模板ID

template_name:查询模板名称

assumer:查询服务承担放

valuation:查询计价规则

supports:查询增值服务列表

created:查询模板创建时间

modified:查询修改时间

consign_area_id:运费模板上设置的卖家发货地址最小级别ID

address:卖家地址信息





query_cod:查询货到付款运费信息

query_post:查询平邮运费信息

query_express:查询快递公司运费信息

query_ems:查询EMS运费信息

query_bzsd:查询普通保障速递运费信息

query_wlb:查询物流宝保障速递运费信息

query_furniture:查询家装物流运费信息




不能有空格 +func (r *TaobaoDeliveryTemplatesGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoDeliveryTemplatesGetAPIRequest) GetFields() string { + return r._fields +} diff --git a/model/logistic/TaobaoDeliveryTemplatesGetAPIResponse.go b/model/logistic/TaobaoDeliveryTemplatesGetAPIResponse.go new file mode 100644 index 0000000000..c37d382d4e --- /dev/null +++ b/model/logistic/TaobaoDeliveryTemplatesGetAPIResponse.go @@ -0,0 +1,29 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户下所有模板 API返回值 +taobao.delivery.templates.get + +根据用户ID获取用户下所有模板 +*/ +type TaobaoDeliveryTemplatesGetAPIResponse struct { + model.CommonResponse + TaobaoDeliveryTemplatesGetAPIResponseModel +} + +// 获取用户下所有模板 成功返回结果 +type TaobaoDeliveryTemplatesGetAPIResponseModel struct { + XMLName xml.Name `xml:"delivery_templates_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 运费模板列表 + DeliveryTemplates []DeliveryTemplate `json:"delivery_templates,omitempty" xml:"delivery_templates>delivery_template,omitempty"` + // 获得到符合条件的结果总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/logistic/TaobaoDeliveryTemplatesGetResponse.go b/model/logistic/TaobaoDeliveryTemplatesGetResponse.go deleted file mode 100644 index 3e51c78b1b..0000000000 --- a/model/logistic/TaobaoDeliveryTemplatesGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户下所有模板 API返回值 -taobao.delivery.templates.get - -根据用户ID获取用户下所有模板 -*/ -type TaobaoDeliveryTemplatesGetAPIResponse struct { - model.CommonResponse - TaobaoDeliveryTemplatesGetResponse -} - -// 获取用户下所有模板 成功返回结果 -type TaobaoDeliveryTemplatesGetResponse struct { - XMLName xml.Name `xml:"delivery_templates_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 运费模板列表 - DeliveryTemplates []DeliveryTemplate `json:"delivery_templates,omitempty" xml:"delivery_templates>delivery_template,omitempty"` - // 获得到符合条件的结果总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsAddressAddAPIRequest.go b/model/logistic/TaobaoLogisticsAddressAddAPIRequest.go new file mode 100644 index 0000000000..a48e75a02d --- /dev/null +++ b/model/logistic/TaobaoLogisticsAddressAddAPIRequest.go @@ -0,0 +1,206 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家地址库新增接口 API请求 +taobao.logistics.address.add + +通过此接口新增卖家地址库,卖家最多可添加5条地址库,新增第一条卖家地址,将会自动设为默认地址库 +*/ +type TaobaoLogisticsAddressAddAPIRequest struct { + model.Params + // 联系人姓名 长度不可超过20个字节 + _contactName string + // 所在省 + _province string + // 所在市 + _city string + // 区、县

如果所在地区是海外的可以为空,否则为必参 + _country string + // 详细街道地址,不需要重复填写省/市/区 + _addr string + // 地区邮政编码

如果所在地区是海外的可以为空,否则为必参 + _zipCode string + // 电话号码,手机与电话必需有一个 + _phone string + // 手机号码,手机与电话必需有一个

手机号码不能超过20位 + _mobilePhone string + // 公司名称,
公司名称长能不能超过20字节 + _sellerCompany string + // 备注,
备注不能超过256字节 + _memo string + // 默认取货地址。

选择此项(true),将当前地址设为默认取货地址,撤消原默认取货地址 + _getDef bool + // 默认退货地址。

选择此项(true),将当前地址设为默认退货地址,撤消原默认退货地址 + _cancelDef bool +} + +// 初始化TaobaoLogisticsAddressAddAPIRequest对象 +func NewTaobaoLogisticsAddressAddRequest() *TaobaoLogisticsAddressAddAPIRequest{ + return &TaobaoLogisticsAddressAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsAddressAddAPIRequest) GetApiMethodName() string { + return "taobao.logistics.address.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsAddressAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ContactName Setter +// 联系人姓名 长度不可超过20个字节 +func (r *TaobaoLogisticsAddressAddAPIRequest) SetContactName(_contactName string) error { + r._contactName = _contactName + r.Set("contact_name", _contactName) + return nil +} + +// ContactName Getter +func (r TaobaoLogisticsAddressAddAPIRequest) GetContactName() string { + return r._contactName +} +// Province Setter +// 所在省 +func (r *TaobaoLogisticsAddressAddAPIRequest) SetProvince(_province string) error { + r._province = _province + r.Set("province", _province) + return nil +} + +// Province Getter +func (r TaobaoLogisticsAddressAddAPIRequest) GetProvince() string { + return r._province +} +// City Setter +// 所在市 +func (r *TaobaoLogisticsAddressAddAPIRequest) SetCity(_city string) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r TaobaoLogisticsAddressAddAPIRequest) GetCity() string { + return r._city +} +// Country Setter +// 区、县

如果所在地区是海外的可以为空,否则为必参 +func (r *TaobaoLogisticsAddressAddAPIRequest) SetCountry(_country string) error { + r._country = _country + r.Set("country", _country) + return nil +} + +// Country Getter +func (r TaobaoLogisticsAddressAddAPIRequest) GetCountry() string { + return r._country +} +// Addr Setter +// 详细街道地址,不需要重复填写省/市/区 +func (r *TaobaoLogisticsAddressAddAPIRequest) SetAddr(_addr string) error { + r._addr = _addr + r.Set("addr", _addr) + return nil +} + +// Addr Getter +func (r TaobaoLogisticsAddressAddAPIRequest) GetAddr() string { + return r._addr +} +// ZipCode Setter +// 地区邮政编码

如果所在地区是海外的可以为空,否则为必参 +func (r *TaobaoLogisticsAddressAddAPIRequest) SetZipCode(_zipCode string) error { + r._zipCode = _zipCode + r.Set("zip_code", _zipCode) + return nil +} + +// ZipCode Getter +func (r TaobaoLogisticsAddressAddAPIRequest) GetZipCode() string { + return r._zipCode +} +// Phone Setter +// 电话号码,手机与电话必需有一个 +func (r *TaobaoLogisticsAddressAddAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r TaobaoLogisticsAddressAddAPIRequest) GetPhone() string { + return r._phone +} +// MobilePhone Setter +// 手机号码,手机与电话必需有一个

手机号码不能超过20位 +func (r *TaobaoLogisticsAddressAddAPIRequest) SetMobilePhone(_mobilePhone string) error { + r._mobilePhone = _mobilePhone + r.Set("mobile_phone", _mobilePhone) + return nil +} + +// MobilePhone Getter +func (r TaobaoLogisticsAddressAddAPIRequest) GetMobilePhone() string { + return r._mobilePhone +} +// SellerCompany Setter +// 公司名称,
公司名称长能不能超过20字节 +func (r *TaobaoLogisticsAddressAddAPIRequest) SetSellerCompany(_sellerCompany string) error { + r._sellerCompany = _sellerCompany + r.Set("seller_company", _sellerCompany) + return nil +} + +// SellerCompany Getter +func (r TaobaoLogisticsAddressAddAPIRequest) GetSellerCompany() string { + return r._sellerCompany +} +// Memo Setter +// 备注,
备注不能超过256字节 +func (r *TaobaoLogisticsAddressAddAPIRequest) SetMemo(_memo string) error { + r._memo = _memo + r.Set("memo", _memo) + return nil +} + +// Memo Getter +func (r TaobaoLogisticsAddressAddAPIRequest) GetMemo() string { + return r._memo +} +// GetDef Setter +// 默认取货地址。

选择此项(true),将当前地址设为默认取货地址,撤消原默认取货地址 +func (r *TaobaoLogisticsAddressAddAPIRequest) SetGetDef(_getDef bool) error { + r._getDef = _getDef + r.Set("get_def", _getDef) + return nil +} + +// GetDef Getter +func (r TaobaoLogisticsAddressAddAPIRequest) GetGetDef() bool { + return r._getDef +} +// CancelDef Setter +// 默认退货地址。

选择此项(true),将当前地址设为默认退货地址,撤消原默认退货地址 +func (r *TaobaoLogisticsAddressAddAPIRequest) SetCancelDef(_cancelDef bool) error { + r._cancelDef = _cancelDef + r.Set("cancel_def", _cancelDef) + return nil +} + +// CancelDef Getter +func (r TaobaoLogisticsAddressAddAPIRequest) GetCancelDef() bool { + return r._cancelDef +} diff --git a/model/logistic/TaobaoLogisticsAddressAddAPIResponse.go b/model/logistic/TaobaoLogisticsAddressAddAPIResponse.go new file mode 100644 index 0000000000..dcb2280c7b --- /dev/null +++ b/model/logistic/TaobaoLogisticsAddressAddAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家地址库新增接口 API返回值 +taobao.logistics.address.add + +通过此接口新增卖家地址库,卖家最多可添加5条地址库,新增第一条卖家地址,将会自动设为默认地址库 +*/ +type TaobaoLogisticsAddressAddAPIResponse struct { + model.CommonResponse + TaobaoLogisticsAddressAddAPIResponseModel +} + +// 卖家地址库新增接口 成功返回结果 +type TaobaoLogisticsAddressAddAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_address_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 只返回修改日期modify_date + AddressResult *AddressResult `json:"address_result,omitempty" xml:"address_result,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsAddressAddResponse.go b/model/logistic/TaobaoLogisticsAddressAddResponse.go deleted file mode 100644 index 2bfd2504bf..0000000000 --- a/model/logistic/TaobaoLogisticsAddressAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家地址库新增接口 API返回值 -taobao.logistics.address.add - -通过此接口新增卖家地址库,卖家最多可添加5条地址库,新增第一条卖家地址,将会自动设为默认地址库 -*/ -type TaobaoLogisticsAddressAddAPIResponse struct { - model.CommonResponse - TaobaoLogisticsAddressAddResponse -} - -// 卖家地址库新增接口 成功返回结果 -type TaobaoLogisticsAddressAddResponse struct { - XMLName xml.Name `xml:"logistics_address_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 只返回修改日期modify_date - AddressResult *AddressResult `json:"address_result,omitempty" xml:"address_result,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsAddressModifyAPIRequest.go b/model/logistic/TaobaoLogisticsAddressModifyAPIRequest.go new file mode 100644 index 0000000000..651905ec99 --- /dev/null +++ b/model/logistic/TaobaoLogisticsAddressModifyAPIRequest.go @@ -0,0 +1,220 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家地址库修改 API请求 +taobao.logistics.address.modify + +卖家地址库修改 +*/ +type TaobaoLogisticsAddressModifyAPIRequest struct { + model.Params + // 地址库ID + _contactId int64 + // 联系人姓名
长度不可超过20个字节 + _contactName string + // 所在省 + _province string + // 所在市 + _city string + // 区、县

如果所在地区是海外的可以为空,否则为必参 + _country string + // 详细街道地址,不需要重复填写省/市/区 + _addr string + // 地区邮政编码

如果所在地区是海外的可以为空,否则为必参 + _zipCode string + // 电话号码,手机与电话必需有一个 + _phone string + // 手机号码,手机与电话必需有一个
手机号码不能超过20位 + _mobilePhone string + // 公司名称,

公司名称长能不能超过20字节 + _sellerCompany string + // 备注,
备注不能超过256字节 + _memo string + // 默认取货地址。

选择此项(true),将当前地址设为默认取货地址,撤消原默认取货地址 + _getDef bool + // 默认退货地址。

选择此项(true),将当前地址设为默认退货地址,撤消原默认退货地址 + _cancelDef bool +} + +// 初始化TaobaoLogisticsAddressModifyAPIRequest对象 +func NewTaobaoLogisticsAddressModifyRequest() *TaobaoLogisticsAddressModifyAPIRequest{ + return &TaobaoLogisticsAddressModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsAddressModifyAPIRequest) GetApiMethodName() string { + return "taobao.logistics.address.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsAddressModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ContactId Setter +// 地址库ID +func (r *TaobaoLogisticsAddressModifyAPIRequest) SetContactId(_contactId int64) error { + r._contactId = _contactId + r.Set("contact_id", _contactId) + return nil +} + +// ContactId Getter +func (r TaobaoLogisticsAddressModifyAPIRequest) GetContactId() int64 { + return r._contactId +} +// ContactName Setter +// 联系人姓名
长度不可超过20个字节 +func (r *TaobaoLogisticsAddressModifyAPIRequest) SetContactName(_contactName string) error { + r._contactName = _contactName + r.Set("contact_name", _contactName) + return nil +} + +// ContactName Getter +func (r TaobaoLogisticsAddressModifyAPIRequest) GetContactName() string { + return r._contactName +} +// Province Setter +// 所在省 +func (r *TaobaoLogisticsAddressModifyAPIRequest) SetProvince(_province string) error { + r._province = _province + r.Set("province", _province) + return nil +} + +// Province Getter +func (r TaobaoLogisticsAddressModifyAPIRequest) GetProvince() string { + return r._province +} +// City Setter +// 所在市 +func (r *TaobaoLogisticsAddressModifyAPIRequest) SetCity(_city string) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r TaobaoLogisticsAddressModifyAPIRequest) GetCity() string { + return r._city +} +// Country Setter +// 区、县

如果所在地区是海外的可以为空,否则为必参 +func (r *TaobaoLogisticsAddressModifyAPIRequest) SetCountry(_country string) error { + r._country = _country + r.Set("country", _country) + return nil +} + +// Country Getter +func (r TaobaoLogisticsAddressModifyAPIRequest) GetCountry() string { + return r._country +} +// Addr Setter +// 详细街道地址,不需要重复填写省/市/区 +func (r *TaobaoLogisticsAddressModifyAPIRequest) SetAddr(_addr string) error { + r._addr = _addr + r.Set("addr", _addr) + return nil +} + +// Addr Getter +func (r TaobaoLogisticsAddressModifyAPIRequest) GetAddr() string { + return r._addr +} +// ZipCode Setter +// 地区邮政编码

如果所在地区是海外的可以为空,否则为必参 +func (r *TaobaoLogisticsAddressModifyAPIRequest) SetZipCode(_zipCode string) error { + r._zipCode = _zipCode + r.Set("zip_code", _zipCode) + return nil +} + +// ZipCode Getter +func (r TaobaoLogisticsAddressModifyAPIRequest) GetZipCode() string { + return r._zipCode +} +// Phone Setter +// 电话号码,手机与电话必需有一个 +func (r *TaobaoLogisticsAddressModifyAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r TaobaoLogisticsAddressModifyAPIRequest) GetPhone() string { + return r._phone +} +// MobilePhone Setter +// 手机号码,手机与电话必需有一个
手机号码不能超过20位 +func (r *TaobaoLogisticsAddressModifyAPIRequest) SetMobilePhone(_mobilePhone string) error { + r._mobilePhone = _mobilePhone + r.Set("mobile_phone", _mobilePhone) + return nil +} + +// MobilePhone Getter +func (r TaobaoLogisticsAddressModifyAPIRequest) GetMobilePhone() string { + return r._mobilePhone +} +// SellerCompany Setter +// 公司名称,

公司名称长能不能超过20字节 +func (r *TaobaoLogisticsAddressModifyAPIRequest) SetSellerCompany(_sellerCompany string) error { + r._sellerCompany = _sellerCompany + r.Set("seller_company", _sellerCompany) + return nil +} + +// SellerCompany Getter +func (r TaobaoLogisticsAddressModifyAPIRequest) GetSellerCompany() string { + return r._sellerCompany +} +// Memo Setter +// 备注,
备注不能超过256字节 +func (r *TaobaoLogisticsAddressModifyAPIRequest) SetMemo(_memo string) error { + r._memo = _memo + r.Set("memo", _memo) + return nil +} + +// Memo Getter +func (r TaobaoLogisticsAddressModifyAPIRequest) GetMemo() string { + return r._memo +} +// GetDef Setter +// 默认取货地址。

选择此项(true),将当前地址设为默认取货地址,撤消原默认取货地址 +func (r *TaobaoLogisticsAddressModifyAPIRequest) SetGetDef(_getDef bool) error { + r._getDef = _getDef + r.Set("get_def", _getDef) + return nil +} + +// GetDef Getter +func (r TaobaoLogisticsAddressModifyAPIRequest) GetGetDef() bool { + return r._getDef +} +// CancelDef Setter +// 默认退货地址。

选择此项(true),将当前地址设为默认退货地址,撤消原默认退货地址 +func (r *TaobaoLogisticsAddressModifyAPIRequest) SetCancelDef(_cancelDef bool) error { + r._cancelDef = _cancelDef + r.Set("cancel_def", _cancelDef) + return nil +} + +// CancelDef Getter +func (r TaobaoLogisticsAddressModifyAPIRequest) GetCancelDef() bool { + return r._cancelDef +} diff --git a/model/logistic/TaobaoLogisticsAddressModifyAPIResponse.go b/model/logistic/TaobaoLogisticsAddressModifyAPIResponse.go new file mode 100644 index 0000000000..27e2cafd06 --- /dev/null +++ b/model/logistic/TaobaoLogisticsAddressModifyAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家地址库修改 API返回值 +taobao.logistics.address.modify + +卖家地址库修改 +*/ +type TaobaoLogisticsAddressModifyAPIResponse struct { + model.CommonResponse + TaobaoLogisticsAddressModifyAPIResponseModel +} + +// 卖家地址库修改 成功返回结果 +type TaobaoLogisticsAddressModifyAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_address_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 只返回修改时间modify_date + AddressResult *AddressResult `json:"address_result,omitempty" xml:"address_result,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsAddressModifyResponse.go b/model/logistic/TaobaoLogisticsAddressModifyResponse.go deleted file mode 100644 index ec1f9f3713..0000000000 --- a/model/logistic/TaobaoLogisticsAddressModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家地址库修改 API返回值 -taobao.logistics.address.modify - -卖家地址库修改 -*/ -type TaobaoLogisticsAddressModifyAPIResponse struct { - model.CommonResponse - TaobaoLogisticsAddressModifyResponse -} - -// 卖家地址库修改 成功返回结果 -type TaobaoLogisticsAddressModifyResponse struct { - XMLName xml.Name `xml:"logistics_address_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 只返回修改时间modify_date - AddressResult *AddressResult `json:"address_result,omitempty" xml:"address_result,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsAddressReachableAPIRequest.go b/model/logistic/TaobaoLogisticsAddressReachableAPIRequest.go new file mode 100644 index 0000000000..c99be434dd --- /dev/null +++ b/model/logistic/TaobaoLogisticsAddressReachableAPIRequest.go @@ -0,0 +1,109 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +判定服务是否可达 API请求 +taobao.logistics.address.reachable + +根据输入的目标地址,判断服务是否可达。 +现已支持筛单的快递公司共15家:中国邮政、EMS、国通、汇通、快捷、全峰、优速、圆通、宅急送、中通、顺丰、天天、韵达、德邦快递、申通 +*/ +type TaobaoLogisticsAddressReachableAPIRequest struct { + model.Params + // 标准区域编码(三级行政区编码或是四级行政区),可以通过taobao.areas.get获取,如北京市朝阳区为110105 + _areaCode string + // 详细地址 + _address string + // 物流公司编码ID,可以从这个接口获取所有物流公司的标准编码taobao.logistics.companies.get,可以传入多个值,以英文逗号分隔,如“1000000952,1000000953” + _partnerIds string + // 服务对应的数字编码,如揽派范围对应88 + _serviceType int64 + // 发货地,标准区域编码(四级行政),可以通过taobao.areas.get获取,如浙江省杭州市余杭区闲林街道为 330110011 + _sourceAreaCode string +} + +// 初始化TaobaoLogisticsAddressReachableAPIRequest对象 +func NewTaobaoLogisticsAddressReachableRequest() *TaobaoLogisticsAddressReachableAPIRequest{ + return &TaobaoLogisticsAddressReachableAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsAddressReachableAPIRequest) GetApiMethodName() string { + return "taobao.logistics.address.reachable" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsAddressReachableAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AreaCode Setter +// 标准区域编码(三级行政区编码或是四级行政区),可以通过taobao.areas.get获取,如北京市朝阳区为110105 +func (r *TaobaoLogisticsAddressReachableAPIRequest) SetAreaCode(_areaCode string) error { + r._areaCode = _areaCode + r.Set("area_code", _areaCode) + return nil +} + +// AreaCode Getter +func (r TaobaoLogisticsAddressReachableAPIRequest) GetAreaCode() string { + return r._areaCode +} +// Address Setter +// 详细地址 +func (r *TaobaoLogisticsAddressReachableAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r TaobaoLogisticsAddressReachableAPIRequest) GetAddress() string { + return r._address +} +// PartnerIds Setter +// 物流公司编码ID,可以从这个接口获取所有物流公司的标准编码taobao.logistics.companies.get,可以传入多个值,以英文逗号分隔,如“1000000952,1000000953” +func (r *TaobaoLogisticsAddressReachableAPIRequest) SetPartnerIds(_partnerIds string) error { + r._partnerIds = _partnerIds + r.Set("partner_ids", _partnerIds) + return nil +} + +// PartnerIds Getter +func (r TaobaoLogisticsAddressReachableAPIRequest) GetPartnerIds() string { + return r._partnerIds +} +// ServiceType Setter +// 服务对应的数字编码,如揽派范围对应88 +func (r *TaobaoLogisticsAddressReachableAPIRequest) SetServiceType(_serviceType int64) error { + r._serviceType = _serviceType + r.Set("service_type", _serviceType) + return nil +} + +// ServiceType Getter +func (r TaobaoLogisticsAddressReachableAPIRequest) GetServiceType() int64 { + return r._serviceType +} +// SourceAreaCode Setter +// 发货地,标准区域编码(四级行政),可以通过taobao.areas.get获取,如浙江省杭州市余杭区闲林街道为 330110011 +func (r *TaobaoLogisticsAddressReachableAPIRequest) SetSourceAreaCode(_sourceAreaCode string) error { + r._sourceAreaCode = _sourceAreaCode + r.Set("source_area_code", _sourceAreaCode) + return nil +} + +// SourceAreaCode Getter +func (r TaobaoLogisticsAddressReachableAPIRequest) GetSourceAreaCode() string { + return r._sourceAreaCode +} diff --git a/model/logistic/TaobaoLogisticsAddressReachableAPIResponse.go b/model/logistic/TaobaoLogisticsAddressReachableAPIResponse.go new file mode 100644 index 0000000000..7bcf8fbf9c --- /dev/null +++ b/model/logistic/TaobaoLogisticsAddressReachableAPIResponse.go @@ -0,0 +1,28 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +判定服务是否可达 API返回值 +taobao.logistics.address.reachable + +根据输入的目标地址,判断服务是否可达。 +现已支持筛单的快递公司共15家:中国邮政、EMS、国通、汇通、快捷、全峰、优速、圆通、宅急送、中通、顺丰、天天、韵达、德邦快递、申通 +*/ +type TaobaoLogisticsAddressReachableAPIResponse struct { + model.CommonResponse + TaobaoLogisticsAddressReachableAPIResponseModel +} + +// 判定服务是否可达 成功返回结果 +type TaobaoLogisticsAddressReachableAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_address_reachable_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 地址可达返回结果,每个TP对应一个 + ReachableResultList []AddressReachableResult `json:"reachable_result_list,omitempty" xml:"reachable_result_list>address_reachable_result,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsAddressReachableResponse.go b/model/logistic/TaobaoLogisticsAddressReachableResponse.go deleted file mode 100644 index 775e3b6ab2..0000000000 --- a/model/logistic/TaobaoLogisticsAddressReachableResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -判定服务是否可达 API返回值 -taobao.logistics.address.reachable - -根据输入的目标地址,判断服务是否可达。 -现已支持筛单的快递公司共15家:中国邮政、EMS、国通、汇通、快捷、全峰、优速、圆通、宅急送、中通、顺丰、天天、韵达、德邦快递、申通 -*/ -type TaobaoLogisticsAddressReachableAPIResponse struct { - model.CommonResponse - TaobaoLogisticsAddressReachableResponse -} - -// 判定服务是否可达 成功返回结果 -type TaobaoLogisticsAddressReachableResponse struct { - XMLName xml.Name `xml:"logistics_address_reachable_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 地址可达返回结果,每个TP对应一个 - ReachableResultList []AddressReachableResult `json:"reachable_result_list,omitempty" xml:"reachable_result_list>address_reachable_result,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsAddressReachablebatchGetAPIRequest.go b/model/logistic/TaobaoLogisticsAddressReachablebatchGetAPIRequest.go new file mode 100644 index 0000000000..9cbaf9c82f --- /dev/null +++ b/model/logistic/TaobaoLogisticsAddressReachablebatchGetAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量判定服务是否可达 API请求 +taobao.logistics.address.reachablebatch.get + +批量判定服务是否可达 +*/ +type TaobaoLogisticsAddressReachablebatchGetAPIRequest struct { + model.Params + // 筛单用户输入地址结构 + _addressList []AddressReachable +} + +// 初始化TaobaoLogisticsAddressReachablebatchGetAPIRequest对象 +func NewTaobaoLogisticsAddressReachablebatchGetRequest() *TaobaoLogisticsAddressReachablebatchGetAPIRequest{ + return &TaobaoLogisticsAddressReachablebatchGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsAddressReachablebatchGetAPIRequest) GetApiMethodName() string { + return "taobao.logistics.address.reachablebatch.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsAddressReachablebatchGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AddressList Setter +// 筛单用户输入地址结构 +func (r *TaobaoLogisticsAddressReachablebatchGetAPIRequest) SetAddressList(_addressList []AddressReachable) error { + r._addressList = _addressList + r.Set("address_list", _addressList) + return nil +} + +// AddressList Getter +func (r TaobaoLogisticsAddressReachablebatchGetAPIRequest) GetAddressList() []AddressReachable { + return r._addressList +} diff --git a/model/logistic/TaobaoLogisticsAddressReachablebatchGetAPIResponse.go b/model/logistic/TaobaoLogisticsAddressReachablebatchGetAPIResponse.go new file mode 100644 index 0000000000..84054071d2 --- /dev/null +++ b/model/logistic/TaobaoLogisticsAddressReachablebatchGetAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量判定服务是否可达 API返回值 +taobao.logistics.address.reachablebatch.get + +批量判定服务是否可达 +*/ +type TaobaoLogisticsAddressReachablebatchGetAPIResponse struct { + model.CommonResponse + TaobaoLogisticsAddressReachablebatchGetAPIResponseModel +} + +// 批量判定服务是否可达 成功返回结果 +type TaobaoLogisticsAddressReachablebatchGetAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_address_reachablebatch_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 物流是否可达结果列表 + ReachableResults []AddressReachableTopResult `json:"reachable_results,omitempty" xml:"reachable_results>address_reachable_top_result,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsAddressReachablebatchGetResponse.go b/model/logistic/TaobaoLogisticsAddressReachablebatchGetResponse.go deleted file mode 100644 index 653536bd27..0000000000 --- a/model/logistic/TaobaoLogisticsAddressReachablebatchGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量判定服务是否可达 API返回值 -taobao.logistics.address.reachablebatch.get - -批量判定服务是否可达 -*/ -type TaobaoLogisticsAddressReachablebatchGetAPIResponse struct { - model.CommonResponse - TaobaoLogisticsAddressReachablebatchGetResponse -} - -// 批量判定服务是否可达 成功返回结果 -type TaobaoLogisticsAddressReachablebatchGetResponse struct { - XMLName xml.Name `xml:"logistics_address_reachablebatch_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 物流是否可达结果列表 - ReachableResults []AddressReachableTopResult `json:"reachable_results,omitempty" xml:"reachable_results>address_reachable_top_result,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsAddressRemoveAPIRequest.go b/model/logistic/TaobaoLogisticsAddressRemoveAPIRequest.go new file mode 100644 index 0000000000..4e50298a05 --- /dev/null +++ b/model/logistic/TaobaoLogisticsAddressRemoveAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除卖家地址库 API请求 +taobao.logistics.address.remove + +用此接口删除卖家地址库 +*/ +type TaobaoLogisticsAddressRemoveAPIRequest struct { + model.Params + // 地址库ID + _contactId int64 +} + +// 初始化TaobaoLogisticsAddressRemoveAPIRequest对象 +func NewTaobaoLogisticsAddressRemoveRequest() *TaobaoLogisticsAddressRemoveAPIRequest{ + return &TaobaoLogisticsAddressRemoveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsAddressRemoveAPIRequest) GetApiMethodName() string { + return "taobao.logistics.address.remove" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsAddressRemoveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ContactId Setter +// 地址库ID +func (r *TaobaoLogisticsAddressRemoveAPIRequest) SetContactId(_contactId int64) error { + r._contactId = _contactId + r.Set("contact_id", _contactId) + return nil +} + +// ContactId Getter +func (r TaobaoLogisticsAddressRemoveAPIRequest) GetContactId() int64 { + return r._contactId +} diff --git a/model/logistic/TaobaoLogisticsAddressRemoveAPIResponse.go b/model/logistic/TaobaoLogisticsAddressRemoveAPIResponse.go new file mode 100644 index 0000000000..75bc616f81 --- /dev/null +++ b/model/logistic/TaobaoLogisticsAddressRemoveAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除卖家地址库 API返回值 +taobao.logistics.address.remove + +用此接口删除卖家地址库 +*/ +type TaobaoLogisticsAddressRemoveAPIResponse struct { + model.CommonResponse + TaobaoLogisticsAddressRemoveAPIResponseModel +} + +// 删除卖家地址库 成功返回结果 +type TaobaoLogisticsAddressRemoveAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_address_remove_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 只返回修改日期modify_date + AddressResult *AddressResult `json:"address_result,omitempty" xml:"address_result,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsAddressRemoveResponse.go b/model/logistic/TaobaoLogisticsAddressRemoveResponse.go deleted file mode 100644 index 61c27d3698..0000000000 --- a/model/logistic/TaobaoLogisticsAddressRemoveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除卖家地址库 API返回值 -taobao.logistics.address.remove - -用此接口删除卖家地址库 -*/ -type TaobaoLogisticsAddressRemoveAPIResponse struct { - model.CommonResponse - TaobaoLogisticsAddressRemoveResponse -} - -// 删除卖家地址库 成功返回结果 -type TaobaoLogisticsAddressRemoveResponse struct { - XMLName xml.Name `xml:"logistics_address_remove_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 只返回修改日期modify_date - AddressResult *AddressResult `json:"address_result,omitempty" xml:"address_result,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsAddressSearchAPIRequest.go b/model/logistic/TaobaoLogisticsAddressSearchAPIRequest.go new file mode 100644 index 0000000000..1335d75cbd --- /dev/null +++ b/model/logistic/TaobaoLogisticsAddressSearchAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家地址库 API请求 +taobao.logistics.address.search + +通过此接口查询卖家地址库, +*/ +type TaobaoLogisticsAddressSearchAPIRequest struct { + model.Params + // 可选,参数列表如下:
no_def:查询非默认地址
get_def:查询默认取货地址,也即对应卖家后台地址库中发货地址(send_def暂不起作用)
cancel_def:查询默认退货地址
缺省此参数时,查询所有当前用户的地址库
+ _rdef string +} + +// 初始化TaobaoLogisticsAddressSearchAPIRequest对象 +func NewTaobaoLogisticsAddressSearchRequest() *TaobaoLogisticsAddressSearchAPIRequest{ + return &TaobaoLogisticsAddressSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsAddressSearchAPIRequest) GetApiMethodName() string { + return "taobao.logistics.address.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsAddressSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rdef Setter +// 可选,参数列表如下:
no_def:查询非默认地址
get_def:查询默认取货地址,也即对应卖家后台地址库中发货地址(send_def暂不起作用)
cancel_def:查询默认退货地址
缺省此参数时,查询所有当前用户的地址库
+func (r *TaobaoLogisticsAddressSearchAPIRequest) SetRdef(_rdef string) error { + r._rdef = _rdef + r.Set("rdef", _rdef) + return nil +} + +// Rdef Getter +func (r TaobaoLogisticsAddressSearchAPIRequest) GetRdef() string { + return r._rdef +} diff --git a/model/logistic/TaobaoLogisticsAddressSearchAPIResponse.go b/model/logistic/TaobaoLogisticsAddressSearchAPIResponse.go new file mode 100644 index 0000000000..047c4e7c3c --- /dev/null +++ b/model/logistic/TaobaoLogisticsAddressSearchAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家地址库 API返回值 +taobao.logistics.address.search + +通过此接口查询卖家地址库, +*/ +type TaobaoLogisticsAddressSearchAPIResponse struct { + model.CommonResponse + TaobaoLogisticsAddressSearchAPIResponseModel +} + +// 查询卖家地址库 成功返回结果 +type TaobaoLogisticsAddressSearchAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_address_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 一组地址库数据, + Addresses []AddressResult `json:"addresses,omitempty" xml:"addresses>address_result,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsAddressSearchResponse.go b/model/logistic/TaobaoLogisticsAddressSearchResponse.go deleted file mode 100644 index 7c3d8a0a19..0000000000 --- a/model/logistic/TaobaoLogisticsAddressSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询卖家地址库 API返回值 -taobao.logistics.address.search - -通过此接口查询卖家地址库, -*/ -type TaobaoLogisticsAddressSearchAPIResponse struct { - model.CommonResponse - TaobaoLogisticsAddressSearchResponse -} - -// 查询卖家地址库 成功返回结果 -type TaobaoLogisticsAddressSearchResponse struct { - XMLName xml.Name `xml:"logistics_address_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 一组地址库数据, - Addresses []AddressResult `json:"addresses,omitempty" xml:"addresses>address_result,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsCompaniesGetAPIRequest.go b/model/logistic/TaobaoLogisticsCompaniesGetAPIRequest.go new file mode 100644 index 0000000000..49636e9cb3 --- /dev/null +++ b/model/logistic/TaobaoLogisticsCompaniesGetAPIRequest.go @@ -0,0 +1,80 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询物流公司信息 API请求 +taobao.logistics.companies.get + +查询淘宝网合作的物流公司信息,用于发货接口。 +*/ +type TaobaoLogisticsCompaniesGetAPIRequest struct { + model.Params + // 需返回的字段列表。可选值:LogisticCompany 结构中的所有字段;多个字段间用","逗号隔开.
如:id,code,name,reg_mail_no

说明:

id:物流公司ID

code:物流公司code

name:物流公司名称

reg_mail_no:物流公司对应的运单规则 + _fields []string + // 是否查询推荐物流公司.可选值:true,false.如果不提供此参数,将会返回所有支持电话联系的物流公司. + _isRecommended bool + // 推荐物流公司的下单方式.可选值:offline(电话联系/自己联系),online(在线下单),all(即电话联系又在线下单). 此参数仅仅用于is_recommended 为ture时。就是说对于推荐物流公司才可用.如果不选择此参数将会返回推荐物流中支持电话联系的物流公司. + _orderMode string +} + +// 初始化TaobaoLogisticsCompaniesGetAPIRequest对象 +func NewTaobaoLogisticsCompaniesGetRequest() *TaobaoLogisticsCompaniesGetAPIRequest{ + return &TaobaoLogisticsCompaniesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsCompaniesGetAPIRequest) GetApiMethodName() string { + return "taobao.logistics.companies.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsCompaniesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需返回的字段列表。可选值:LogisticCompany 结构中的所有字段;多个字段间用","逗号隔开.
如:id,code,name,reg_mail_no

说明:

id:物流公司ID

code:物流公司code

name:物流公司名称

reg_mail_no:物流公司对应的运单规则 +func (r *TaobaoLogisticsCompaniesGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoLogisticsCompaniesGetAPIRequest) GetFields() []string { + return r._fields +} +// IsRecommended Setter +// 是否查询推荐物流公司.可选值:true,false.如果不提供此参数,将会返回所有支持电话联系的物流公司. +func (r *TaobaoLogisticsCompaniesGetAPIRequest) SetIsRecommended(_isRecommended bool) error { + r._isRecommended = _isRecommended + r.Set("is_recommended", _isRecommended) + return nil +} + +// IsRecommended Getter +func (r TaobaoLogisticsCompaniesGetAPIRequest) GetIsRecommended() bool { + return r._isRecommended +} +// OrderMode Setter +// 推荐物流公司的下单方式.可选值:offline(电话联系/自己联系),online(在线下单),all(即电话联系又在线下单). 此参数仅仅用于is_recommended 为ture时。就是说对于推荐物流公司才可用.如果不选择此参数将会返回推荐物流中支持电话联系的物流公司. +func (r *TaobaoLogisticsCompaniesGetAPIRequest) SetOrderMode(_orderMode string) error { + r._orderMode = _orderMode + r.Set("order_mode", _orderMode) + return nil +} + +// OrderMode Getter +func (r TaobaoLogisticsCompaniesGetAPIRequest) GetOrderMode() string { + return r._orderMode +} diff --git a/model/logistic/TaobaoLogisticsCompaniesGetAPIResponse.go b/model/logistic/TaobaoLogisticsCompaniesGetAPIResponse.go new file mode 100644 index 0000000000..c42d050ea6 --- /dev/null +++ b/model/logistic/TaobaoLogisticsCompaniesGetAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询物流公司信息 API返回值 +taobao.logistics.companies.get + +查询淘宝网合作的物流公司信息,用于发货接口。 +*/ +type TaobaoLogisticsCompaniesGetAPIResponse struct { + model.CommonResponse + TaobaoLogisticsCompaniesGetAPIResponseModel +} + +// 查询物流公司信息 成功返回结果 +type TaobaoLogisticsCompaniesGetAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_companies_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 物流公司信息。返回的LogisticCompany包含的具体信息为入参fields请求的字段信息。 + LogisticsCompanies []LogisticsCompany `json:"logistics_companies,omitempty" xml:"logistics_companies>logistics_company,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsCompaniesGetResponse.go b/model/logistic/TaobaoLogisticsCompaniesGetResponse.go deleted file mode 100644 index 3622b2a75e..0000000000 --- a/model/logistic/TaobaoLogisticsCompaniesGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询物流公司信息 API返回值 -taobao.logistics.companies.get - -查询淘宝网合作的物流公司信息,用于发货接口。 -*/ -type TaobaoLogisticsCompaniesGetAPIResponse struct { - model.CommonResponse - TaobaoLogisticsCompaniesGetResponse -} - -// 查询物流公司信息 成功返回结果 -type TaobaoLogisticsCompaniesGetResponse struct { - XMLName xml.Name `xml:"logistics_companies_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 物流公司信息。返回的LogisticCompany包含的具体信息为入参fields请求的字段信息。 - LogisticsCompanies []LogisticsCompany `json:"logistics_companies,omitempty" xml:"logistics_companies>logistics_company,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsConsignOrderCreateandsendAPIRequest.go b/model/logistic/TaobaoLogisticsConsignOrderCreateandsendAPIRequest.go new file mode 100644 index 0000000000..9d71bba1a4 --- /dev/null +++ b/model/logistic/TaobaoLogisticsConsignOrderCreateandsendAPIRequest.go @@ -0,0 +1,416 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建订单并发货 API请求 +taobao.logistics.consign.order.createandsend + +创建物流订单,并发货。 +*/ +type TaobaoLogisticsConsignOrderCreateandsendAPIRequest struct { + model.Params + // 用户ID + _userId int64 + // 订单来源,值选择:30 + _orderSource int64 + // 订单类型,值固定选择:30 + _orderType int64 + // 物流订单物流类型,值固定选择:2 + _logisType int64 + // 物流公司ID + _companyId int64 + // 交易流水号,淘外订单号或者商家内部交易流水号 + _tradeId int64 + // 运单号 + _mailNo string + // 费用承担方式 1买家承担运费 2卖家承担运费 + _shipping string + // 发件人名称 + _sName string + // 发件人区域ID + _sAreaId int64 + // 发件人街道地址 + _sAddress string + // 发件人出编 + _sZipCode string + // 手机号码 + _sMobilePhone string + // 电话号码 + _sTelephone string + // 省 + _sProvName string + // 市 + _sCityName string + // 区 + _sDistName string + // 收件人名称 + _rName string + // 收件人区域ID + _rAreaId int64 + // 收件人街道地址 + _rAddress string + // 收件人邮编 + _rZipCode string + // 手机号码 + _rMobilePhone string + // 电话号码 + _rTelephone string + // 省 + _rProvName string + // 市 + _rCityName string + // 区 + _rDistName string + // 物品的json数据。 + _itemJsonString string +} + +// 初始化TaobaoLogisticsConsignOrderCreateandsendAPIRequest对象 +func NewTaobaoLogisticsConsignOrderCreateandsendRequest() *TaobaoLogisticsConsignOrderCreateandsendAPIRequest{ + return &TaobaoLogisticsConsignOrderCreateandsendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetApiMethodName() string { + return "taobao.logistics.consign.order.createandsend" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户ID +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetUserId() int64 { + return r._userId +} +// OrderSource Setter +// 订单来源,值选择:30 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetOrderSource(_orderSource int64) error { + r._orderSource = _orderSource + r.Set("order_source", _orderSource) + return nil +} + +// OrderSource Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetOrderSource() int64 { + return r._orderSource +} +// OrderType Setter +// 订单类型,值固定选择:30 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetOrderType(_orderType int64) error { + r._orderType = _orderType + r.Set("order_type", _orderType) + return nil +} + +// OrderType Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetOrderType() int64 { + return r._orderType +} +// LogisType Setter +// 物流订单物流类型,值固定选择:2 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetLogisType(_logisType int64) error { + r._logisType = _logisType + r.Set("logis_type", _logisType) + return nil +} + +// LogisType Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetLogisType() int64 { + return r._logisType +} +// CompanyId Setter +// 物流公司ID +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetCompanyId(_companyId int64) error { + r._companyId = _companyId + r.Set("company_id", _companyId) + return nil +} + +// CompanyId Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetCompanyId() int64 { + return r._companyId +} +// TradeId Setter +// 交易流水号,淘外订单号或者商家内部交易流水号 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetTradeId(_tradeId int64) error { + r._tradeId = _tradeId + r.Set("trade_id", _tradeId) + return nil +} + +// TradeId Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetTradeId() int64 { + return r._tradeId +} +// MailNo Setter +// 运单号 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetMailNo(_mailNo string) error { + r._mailNo = _mailNo + r.Set("mail_no", _mailNo) + return nil +} + +// MailNo Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetMailNo() string { + return r._mailNo +} +// Shipping Setter +// 费用承担方式 1买家承担运费 2卖家承担运费 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetShipping(_shipping string) error { + r._shipping = _shipping + r.Set("shipping", _shipping) + return nil +} + +// Shipping Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetShipping() string { + return r._shipping +} +// SName Setter +// 发件人名称 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetSName(_sName string) error { + r._sName = _sName + r.Set("s_name", _sName) + return nil +} + +// SName Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetSName() string { + return r._sName +} +// SAreaId Setter +// 发件人区域ID +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetSAreaId(_sAreaId int64) error { + r._sAreaId = _sAreaId + r.Set("s_area_id", _sAreaId) + return nil +} + +// SAreaId Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetSAreaId() int64 { + return r._sAreaId +} +// SAddress Setter +// 发件人街道地址 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetSAddress(_sAddress string) error { + r._sAddress = _sAddress + r.Set("s_address", _sAddress) + return nil +} + +// SAddress Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetSAddress() string { + return r._sAddress +} +// SZipCode Setter +// 发件人出编 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetSZipCode(_sZipCode string) error { + r._sZipCode = _sZipCode + r.Set("s_zip_code", _sZipCode) + return nil +} + +// SZipCode Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetSZipCode() string { + return r._sZipCode +} +// SMobilePhone Setter +// 手机号码 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetSMobilePhone(_sMobilePhone string) error { + r._sMobilePhone = _sMobilePhone + r.Set("s_mobile_phone", _sMobilePhone) + return nil +} + +// SMobilePhone Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetSMobilePhone() string { + return r._sMobilePhone +} +// STelephone Setter +// 电话号码 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetSTelephone(_sTelephone string) error { + r._sTelephone = _sTelephone + r.Set("s_telephone", _sTelephone) + return nil +} + +// STelephone Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetSTelephone() string { + return r._sTelephone +} +// SProvName Setter +// 省 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetSProvName(_sProvName string) error { + r._sProvName = _sProvName + r.Set("s_prov_name", _sProvName) + return nil +} + +// SProvName Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetSProvName() string { + return r._sProvName +} +// SCityName Setter +// 市 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetSCityName(_sCityName string) error { + r._sCityName = _sCityName + r.Set("s_city_name", _sCityName) + return nil +} + +// SCityName Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetSCityName() string { + return r._sCityName +} +// SDistName Setter +// 区 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetSDistName(_sDistName string) error { + r._sDistName = _sDistName + r.Set("s_dist_name", _sDistName) + return nil +} + +// SDistName Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetSDistName() string { + return r._sDistName +} +// RName Setter +// 收件人名称 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetRName(_rName string) error { + r._rName = _rName + r.Set("r_name", _rName) + return nil +} + +// RName Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetRName() string { + return r._rName +} +// RAreaId Setter +// 收件人区域ID +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetRAreaId(_rAreaId int64) error { + r._rAreaId = _rAreaId + r.Set("r_area_id", _rAreaId) + return nil +} + +// RAreaId Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetRAreaId() int64 { + return r._rAreaId +} +// RAddress Setter +// 收件人街道地址 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetRAddress(_rAddress string) error { + r._rAddress = _rAddress + r.Set("r_address", _rAddress) + return nil +} + +// RAddress Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetRAddress() string { + return r._rAddress +} +// RZipCode Setter +// 收件人邮编 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetRZipCode(_rZipCode string) error { + r._rZipCode = _rZipCode + r.Set("r_zip_code", _rZipCode) + return nil +} + +// RZipCode Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetRZipCode() string { + return r._rZipCode +} +// RMobilePhone Setter +// 手机号码 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetRMobilePhone(_rMobilePhone string) error { + r._rMobilePhone = _rMobilePhone + r.Set("r_mobile_phone", _rMobilePhone) + return nil +} + +// RMobilePhone Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetRMobilePhone() string { + return r._rMobilePhone +} +// RTelephone Setter +// 电话号码 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetRTelephone(_rTelephone string) error { + r._rTelephone = _rTelephone + r.Set("r_telephone", _rTelephone) + return nil +} + +// RTelephone Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetRTelephone() string { + return r._rTelephone +} +// RProvName Setter +// 省 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetRProvName(_rProvName string) error { + r._rProvName = _rProvName + r.Set("r_prov_name", _rProvName) + return nil +} + +// RProvName Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetRProvName() string { + return r._rProvName +} +// RCityName Setter +// 市 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetRCityName(_rCityName string) error { + r._rCityName = _rCityName + r.Set("r_city_name", _rCityName) + return nil +} + +// RCityName Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetRCityName() string { + return r._rCityName +} +// RDistName Setter +// 区 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetRDistName(_rDistName string) error { + r._rDistName = _rDistName + r.Set("r_dist_name", _rDistName) + return nil +} + +// RDistName Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetRDistName() string { + return r._rDistName +} +// ItemJsonString Setter +// 物品的json数据。 +func (r *TaobaoLogisticsConsignOrderCreateandsendAPIRequest) SetItemJsonString(_itemJsonString string) error { + r._itemJsonString = _itemJsonString + r.Set("item_json_string", _itemJsonString) + return nil +} + +// ItemJsonString Getter +func (r TaobaoLogisticsConsignOrderCreateandsendAPIRequest) GetItemJsonString() string { + return r._itemJsonString +} diff --git a/model/logistic/TaobaoLogisticsConsignOrderCreateandsendAPIResponse.go b/model/logistic/TaobaoLogisticsConsignOrderCreateandsendAPIResponse.go new file mode 100644 index 0000000000..47b4a8d683 --- /dev/null +++ b/model/logistic/TaobaoLogisticsConsignOrderCreateandsendAPIResponse.go @@ -0,0 +1,31 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建订单并发货 API返回值 +taobao.logistics.consign.order.createandsend + +创建物流订单,并发货。 +*/ +type TaobaoLogisticsConsignOrderCreateandsendAPIResponse struct { + model.CommonResponse + TaobaoLogisticsConsignOrderCreateandsendAPIResponseModel +} + +// 创建订单并发货 成功返回结果 +type TaobaoLogisticsConsignOrderCreateandsendAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_consign_order_createandsend_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果描述 + ResultDesc string `json:"result_desc,omitempty" xml:"result_desc,omitempty"` + // 订单ID + OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsConsignOrderCreateandsendResponse.go b/model/logistic/TaobaoLogisticsConsignOrderCreateandsendResponse.go deleted file mode 100644 index 3a00da6f09..0000000000 --- a/model/logistic/TaobaoLogisticsConsignOrderCreateandsendResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建订单并发货 API返回值 -taobao.logistics.consign.order.createandsend - -创建物流订单,并发货。 -*/ -type TaobaoLogisticsConsignOrderCreateandsendAPIResponse struct { - model.CommonResponse - TaobaoLogisticsConsignOrderCreateandsendResponse -} - -// 创建订单并发货 成功返回结果 -type TaobaoLogisticsConsignOrderCreateandsendResponse struct { - XMLName xml.Name `xml:"logistics_consign_order_createandsend_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果描述 - ResultDesc string `json:"result_desc,omitempty" xml:"result_desc,omitempty"` - // 订单ID - OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsConsignResendAPIRequest.go b/model/logistic/TaobaoLogisticsConsignResendAPIRequest.go new file mode 100644 index 0000000000..f9d932291f --- /dev/null +++ b/model/logistic/TaobaoLogisticsConsignResendAPIRequest.go @@ -0,0 +1,136 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改物流公司和运单号 API请求 +taobao.logistics.consign.resend + +支持卖家发货后修改运单号;支持在线下单和自己联系两种发货方式;使用条件:

1、必须是已发货订单,自己联系发货的必须24小时内才可修改;在线下单的,必须下单后物流公司未揽收成功前才可修改;
2、自己联系只能切换为自己联系的公司,在线下单也只能切换为在线下单的物流公司。 +*/ +type TaobaoLogisticsConsignResendAPIRequest struct { + model.Params + // 淘宝交易ID + _tid int64 + // 拆单子订单列表,对应的数据是:子订单号列表。可以不传,但是如果传了则必须符合传递的规则。子订单必须是操作的物流订单的子订单的真子集! + _subTid []int64 + // 表明是否是拆单,默认值0,1表示拆单 + _isSplit int64 + // 运单号.具体一个物流公司的真实运单号码。淘宝官方物流会校验,请谨慎传入; + _outSid string + // 物流公司代码.如"POST"代表中国邮政,"ZJS"代表宅急送。调用 taobao.logistics.companies.get 获取。
如果是货到付款订单,选择的物流公司必须支持货到付款发货方式 + _companyCode string + // feature参数格式
范例: identCode=tid1:识别码1,识别码2|tid2:识别码3;machineCode=tid3:3C机器号A,3C机器号B
identCode为识别码的KEY,machineCode为3C的KEY,多个key之间用”;”分隔
“tid1:识别码1,识别码2|tid2:识别码3”为identCode对应的value。"|"不同商品间的分隔符。
例1商品和2商品,之间就用"|"分开。
TID就是商品代表的子订单号,对应taobao.trade.fullinfo.get 接口获得的oid字段。(通过OID可以唯一定位到当前商品上)
":"TID和具体传入参数间的分隔符。冒号前表示TID,之后代表该商品的参数属性。
"," 属性间分隔符。(对应商品数量,当存在一个商品的数量超过1个时,用逗号分开)。
具体:当订单中A商品的数量为2个,其中手机串号分别为"12345","67890"。
参数格式:identCode=TIDA:12345,67890。TIDA对应了A宝贝,冒号后用逗号分隔的"12345","67890".说明本订单A宝贝的数量为2,值分别为"12345","67890"。
当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。 + _feature string + // 商家的IP地址 + _sellerIp string +} + +// 初始化TaobaoLogisticsConsignResendAPIRequest对象 +func NewTaobaoLogisticsConsignResendRequest() *TaobaoLogisticsConsignResendAPIRequest{ + return &TaobaoLogisticsConsignResendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsConsignResendAPIRequest) GetApiMethodName() string { + return "taobao.logistics.consign.resend" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsConsignResendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 淘宝交易ID +func (r *TaobaoLogisticsConsignResendAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoLogisticsConsignResendAPIRequest) GetTid() int64 { + return r._tid +} +// SubTid Setter +// 拆单子订单列表,对应的数据是:子订单号列表。可以不传,但是如果传了则必须符合传递的规则。子订单必须是操作的物流订单的子订单的真子集! +func (r *TaobaoLogisticsConsignResendAPIRequest) SetSubTid(_subTid []int64) error { + r._subTid = _subTid + r.Set("sub_tid", _subTid) + return nil +} + +// SubTid Getter +func (r TaobaoLogisticsConsignResendAPIRequest) GetSubTid() []int64 { + return r._subTid +} +// IsSplit Setter +// 表明是否是拆单,默认值0,1表示拆单 +func (r *TaobaoLogisticsConsignResendAPIRequest) SetIsSplit(_isSplit int64) error { + r._isSplit = _isSplit + r.Set("is_split", _isSplit) + return nil +} + +// IsSplit Getter +func (r TaobaoLogisticsConsignResendAPIRequest) GetIsSplit() int64 { + return r._isSplit +} +// OutSid Setter +// 运单号.具体一个物流公司的真实运单号码。淘宝官方物流会校验,请谨慎传入; +func (r *TaobaoLogisticsConsignResendAPIRequest) SetOutSid(_outSid string) error { + r._outSid = _outSid + r.Set("out_sid", _outSid) + return nil +} + +// OutSid Getter +func (r TaobaoLogisticsConsignResendAPIRequest) GetOutSid() string { + return r._outSid +} +// CompanyCode Setter +// 物流公司代码.如"POST"代表中国邮政,"ZJS"代表宅急送。调用 taobao.logistics.companies.get 获取。
如果是货到付款订单,选择的物流公司必须支持货到付款发货方式 +func (r *TaobaoLogisticsConsignResendAPIRequest) SetCompanyCode(_companyCode string) error { + r._companyCode = _companyCode + r.Set("company_code", _companyCode) + return nil +} + +// CompanyCode Getter +func (r TaobaoLogisticsConsignResendAPIRequest) GetCompanyCode() string { + return r._companyCode +} +// Feature Setter +// feature参数格式
范例: identCode=tid1:识别码1,识别码2|tid2:识别码3;machineCode=tid3:3C机器号A,3C机器号B
identCode为识别码的KEY,machineCode为3C的KEY,多个key之间用”;”分隔
“tid1:识别码1,识别码2|tid2:识别码3”为identCode对应的value。"|"不同商品间的分隔符。
例1商品和2商品,之间就用"|"分开。
TID就是商品代表的子订单号,对应taobao.trade.fullinfo.get 接口获得的oid字段。(通过OID可以唯一定位到当前商品上)
":"TID和具体传入参数间的分隔符。冒号前表示TID,之后代表该商品的参数属性。
"," 属性间分隔符。(对应商品数量,当存在一个商品的数量超过1个时,用逗号分开)。
具体:当订单中A商品的数量为2个,其中手机串号分别为"12345","67890"。
参数格式:identCode=TIDA:12345,67890。TIDA对应了A宝贝,冒号后用逗号分隔的"12345","67890".说明本订单A宝贝的数量为2,值分别为"12345","67890"。
当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。 +func (r *TaobaoLogisticsConsignResendAPIRequest) SetFeature(_feature string) error { + r._feature = _feature + r.Set("feature", _feature) + return nil +} + +// Feature Getter +func (r TaobaoLogisticsConsignResendAPIRequest) GetFeature() string { + return r._feature +} +// SellerIp Setter +// 商家的IP地址 +func (r *TaobaoLogisticsConsignResendAPIRequest) SetSellerIp(_sellerIp string) error { + r._sellerIp = _sellerIp + r.Set("seller_ip", _sellerIp) + return nil +} + +// SellerIp Getter +func (r TaobaoLogisticsConsignResendAPIRequest) GetSellerIp() string { + return r._sellerIp +} diff --git a/model/logistic/TaobaoLogisticsConsignResendAPIResponse.go b/model/logistic/TaobaoLogisticsConsignResendAPIResponse.go new file mode 100644 index 0000000000..fccc8d5c1e --- /dev/null +++ b/model/logistic/TaobaoLogisticsConsignResendAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改物流公司和运单号 API返回值 +taobao.logistics.consign.resend + +支持卖家发货后修改运单号;支持在线下单和自己联系两种发货方式;使用条件:

1、必须是已发货订单,自己联系发货的必须24小时内才可修改;在线下单的,必须下单后物流公司未揽收成功前才可修改;
2、自己联系只能切换为自己联系的公司,在线下单也只能切换为在线下单的物流公司。 +*/ +type TaobaoLogisticsConsignResendAPIResponse struct { + model.CommonResponse + TaobaoLogisticsConsignResendAPIResponseModel +} + +// 修改物流公司和运单号 成功返回结果 +type TaobaoLogisticsConsignResendAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_consign_resend_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回发货是否成功is_success + Shipping *Shipping `json:"shipping,omitempty" xml:"shipping,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsConsignResendResponse.go b/model/logistic/TaobaoLogisticsConsignResendResponse.go deleted file mode 100644 index 963d6c283a..0000000000 --- a/model/logistic/TaobaoLogisticsConsignResendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改物流公司和运单号 API返回值 -taobao.logistics.consign.resend - -支持卖家发货后修改运单号;支持在线下单和自己联系两种发货方式;使用条件:

1、必须是已发货订单,自己联系发货的必须24小时内才可修改;在线下单的,必须下单后物流公司未揽收成功前才可修改;
2、自己联系只能切换为自己联系的公司,在线下单也只能切换为在线下单的物流公司。 -*/ -type TaobaoLogisticsConsignResendAPIResponse struct { - model.CommonResponse - TaobaoLogisticsConsignResendResponse -} - -// 修改物流公司和运单号 成功返回结果 -type TaobaoLogisticsConsignResendResponse struct { - XMLName xml.Name `xml:"logistics_consign_resend_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回发货是否成功is_success - Shipping *Shipping `json:"shipping,omitempty" xml:"shipping,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsConsignTcConfirmAPIRequest.go b/model/logistic/TaobaoLogisticsConsignTcConfirmAPIRequest.go new file mode 100644 index 0000000000..745ed121e3 --- /dev/null +++ b/model/logistic/TaobaoLogisticsConsignTcConfirmAPIRequest.go @@ -0,0 +1,138 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通知交易确认发货接口 API请求 +taobao.logistics.consign.tc.confirm + +下述业务场景可以使用此接口通知相关的交易订单发货: +1、发货过程分为多段操作,在确定发货之前,不需要通知交易,当货确认已发出之后,才通知交易发货。 +2、发货过程涉及到多个订单,其中一个订单是跟实操的发货操作同步的,剩下的订单,需要在实操的订单发货之后,一并通知交易发货。 +*/ +type TaobaoLogisticsConsignTcConfirmAPIRequest struct { + model.Params + // 货主id + _providerId int64 + // ERP的名称 + _appName string + // 扩展字段 K:V; + _extendFields string + // 发货的包裹 + _goodsList []ConfirmConsignGoodsDto + // 已发货的外部订单号 + _outTradeNo string + // 卖家id + _sellerId int64 + // 待发货的淘宝主交易号 + _tradeId int64 +} + +// 初始化TaobaoLogisticsConsignTcConfirmAPIRequest对象 +func NewTaobaoLogisticsConsignTcConfirmRequest() *TaobaoLogisticsConsignTcConfirmAPIRequest{ + return &TaobaoLogisticsConsignTcConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsConsignTcConfirmAPIRequest) GetApiMethodName() string { + return "taobao.logistics.consign.tc.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsConsignTcConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProviderId Setter +// 货主id +func (r *TaobaoLogisticsConsignTcConfirmAPIRequest) SetProviderId(_providerId int64) error { + r._providerId = _providerId + r.Set("provider_id", _providerId) + return nil +} + +// ProviderId Getter +func (r TaobaoLogisticsConsignTcConfirmAPIRequest) GetProviderId() int64 { + return r._providerId +} +// AppName Setter +// ERP的名称 +func (r *TaobaoLogisticsConsignTcConfirmAPIRequest) SetAppName(_appName string) error { + r._appName = _appName + r.Set("app_name", _appName) + return nil +} + +// AppName Getter +func (r TaobaoLogisticsConsignTcConfirmAPIRequest) GetAppName() string { + return r._appName +} +// ExtendFields Setter +// 扩展字段 K:V; +func (r *TaobaoLogisticsConsignTcConfirmAPIRequest) SetExtendFields(_extendFields string) error { + r._extendFields = _extendFields + r.Set("extend_fields", _extendFields) + return nil +} + +// ExtendFields Getter +func (r TaobaoLogisticsConsignTcConfirmAPIRequest) GetExtendFields() string { + return r._extendFields +} +// GoodsList Setter +// 发货的包裹 +func (r *TaobaoLogisticsConsignTcConfirmAPIRequest) SetGoodsList(_goodsList []ConfirmConsignGoodsDto) error { + r._goodsList = _goodsList + r.Set("goods_list", _goodsList) + return nil +} + +// GoodsList Getter +func (r TaobaoLogisticsConsignTcConfirmAPIRequest) GetGoodsList() []ConfirmConsignGoodsDto { + return r._goodsList +} +// OutTradeNo Setter +// 已发货的外部订单号 +func (r *TaobaoLogisticsConsignTcConfirmAPIRequest) SetOutTradeNo(_outTradeNo string) error { + r._outTradeNo = _outTradeNo + r.Set("out_trade_no", _outTradeNo) + return nil +} + +// OutTradeNo Getter +func (r TaobaoLogisticsConsignTcConfirmAPIRequest) GetOutTradeNo() string { + return r._outTradeNo +} +// SellerId Setter +// 卖家id +func (r *TaobaoLogisticsConsignTcConfirmAPIRequest) SetSellerId(_sellerId int64) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r TaobaoLogisticsConsignTcConfirmAPIRequest) GetSellerId() int64 { + return r._sellerId +} +// TradeId Setter +// 待发货的淘宝主交易号 +func (r *TaobaoLogisticsConsignTcConfirmAPIRequest) SetTradeId(_tradeId int64) error { + r._tradeId = _tradeId + r.Set("trade_id", _tradeId) + return nil +} + +// TradeId Getter +func (r TaobaoLogisticsConsignTcConfirmAPIRequest) GetTradeId() int64 { + return r._tradeId +} diff --git a/model/logistic/TaobaoLogisticsConsignTcConfirmAPIResponse.go b/model/logistic/TaobaoLogisticsConsignTcConfirmAPIResponse.go new file mode 100644 index 0000000000..4255da19de --- /dev/null +++ b/model/logistic/TaobaoLogisticsConsignTcConfirmAPIResponse.go @@ -0,0 +1,33 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通知交易确认发货接口 API返回值 +taobao.logistics.consign.tc.confirm + +下述业务场景可以使用此接口通知相关的交易订单发货: +1、发货过程分为多段操作,在确定发货之前,不需要通知交易,当货确认已发出之后,才通知交易发货。 +2、发货过程涉及到多个订单,其中一个订单是跟实操的发货操作同步的,剩下的订单,需要在实操的订单发货之后,一并通知交易发货。 +*/ +type TaobaoLogisticsConsignTcConfirmAPIResponse struct { + model.CommonResponse + TaobaoLogisticsConsignTcConfirmAPIResponseModel +} + +// 通知交易确认发货接口 成功返回结果 +type TaobaoLogisticsConsignTcConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_consign_tc_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 菜鸟发货单据 + OrderConsignCode string `json:"order_consign_code,omitempty" xml:"order_consign_code,omitempty"` + // 是否重试 + Retry bool `json:"retry,omitempty" xml:"retry,omitempty"` + // 单次调用流程唯一id + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsConsignTcConfirmResponse.go b/model/logistic/TaobaoLogisticsConsignTcConfirmResponse.go deleted file mode 100644 index de6b6d3bac..0000000000 --- a/model/logistic/TaobaoLogisticsConsignTcConfirmResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通知交易确认发货接口 API返回值 -taobao.logistics.consign.tc.confirm - -下述业务场景可以使用此接口通知相关的交易订单发货: -1、发货过程分为多段操作,在确定发货之前,不需要通知交易,当货确认已发出之后,才通知交易发货。 -2、发货过程涉及到多个订单,其中一个订单是跟实操的发货操作同步的,剩下的订单,需要在实操的订单发货之后,一并通知交易发货。 -*/ -type TaobaoLogisticsConsignTcConfirmAPIResponse struct { - model.CommonResponse - TaobaoLogisticsConsignTcConfirmResponse -} - -// 通知交易确认发货接口 成功返回结果 -type TaobaoLogisticsConsignTcConfirmResponse struct { - XMLName xml.Name `xml:"logistics_consign_tc_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 菜鸟发货单据 - OrderConsignCode string `json:"order_consign_code,omitempty" xml:"order_consign_code,omitempty"` - // 是否重试 - Retry bool `json:"retry,omitempty" xml:"retry,omitempty"` - // 单次调用流程唯一id - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsDummySendAPIRequest.go b/model/logistic/TaobaoLogisticsDummySendAPIRequest.go new file mode 100644 index 0000000000..edb5054a7d --- /dev/null +++ b/model/logistic/TaobaoLogisticsDummySendAPIRequest.go @@ -0,0 +1,80 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +无需物流(虚拟)发货处理 API请求 +taobao.logistics.dummy.send + +用户调用该接口可实现无需物流(虚拟)发货,使用该接口发货,交易订单状态会直接变成卖家已发货 +*/ +type TaobaoLogisticsDummySendAPIRequest struct { + model.Params + // 淘宝交易ID + _tid int64 + // feature参数格式
范例: identCode=tid1:识别码1,识别码2|tid2:识别码3;machineCode=tid3:3C机器号A,3C机器号B
identCode为识别码的KEY,machineCode为3C的KEY,多个key之间用”;”分隔
“tid1:识别码1,识别码2|tid2:识别码3”为identCode对应的value。"|"不同商品间的分隔符。
例1商品和2商品,之间就用"|"分开。
TID就是商品代表的子订单号,对应taobao.trade.fullinfo.get 接口获得的oid字段。(通过OID可以唯一定位到当前商品上)
":"TID和具体传入参数间的分隔符。冒号前表示TID,之后代表该商品的参数属性。
"," 属性间分隔符。(对应商品数量,当存在一个商品的数量超过1个时,用逗号分开)。
具体:当订单中A商品的数量为2个,其中手机串号分别为"12345","67890"。
参数格式:identCode=TIDA:12345,67890。TIDA对应了A宝贝,冒号后用逗号分隔的"12345","67890".说明本订单A宝贝的数量为2,值分别为"12345","67890"。
当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。 + _feature string + // 商家的IP地址 + _sellerIp string +} + +// 初始化TaobaoLogisticsDummySendAPIRequest对象 +func NewTaobaoLogisticsDummySendRequest() *TaobaoLogisticsDummySendAPIRequest{ + return &TaobaoLogisticsDummySendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsDummySendAPIRequest) GetApiMethodName() string { + return "taobao.logistics.dummy.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsDummySendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 淘宝交易ID +func (r *TaobaoLogisticsDummySendAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoLogisticsDummySendAPIRequest) GetTid() int64 { + return r._tid +} +// Feature Setter +// feature参数格式
范例: identCode=tid1:识别码1,识别码2|tid2:识别码3;machineCode=tid3:3C机器号A,3C机器号B
identCode为识别码的KEY,machineCode为3C的KEY,多个key之间用”;”分隔
“tid1:识别码1,识别码2|tid2:识别码3”为identCode对应的value。"|"不同商品间的分隔符。
例1商品和2商品,之间就用"|"分开。
TID就是商品代表的子订单号,对应taobao.trade.fullinfo.get 接口获得的oid字段。(通过OID可以唯一定位到当前商品上)
":"TID和具体传入参数间的分隔符。冒号前表示TID,之后代表该商品的参数属性。
"," 属性间分隔符。(对应商品数量,当存在一个商品的数量超过1个时,用逗号分开)。
具体:当订单中A商品的数量为2个,其中手机串号分别为"12345","67890"。
参数格式:identCode=TIDA:12345,67890。TIDA对应了A宝贝,冒号后用逗号分隔的"12345","67890".说明本订单A宝贝的数量为2,值分别为"12345","67890"。
当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。 +func (r *TaobaoLogisticsDummySendAPIRequest) SetFeature(_feature string) error { + r._feature = _feature + r.Set("feature", _feature) + return nil +} + +// Feature Getter +func (r TaobaoLogisticsDummySendAPIRequest) GetFeature() string { + return r._feature +} +// SellerIp Setter +// 商家的IP地址 +func (r *TaobaoLogisticsDummySendAPIRequest) SetSellerIp(_sellerIp string) error { + r._sellerIp = _sellerIp + r.Set("seller_ip", _sellerIp) + return nil +} + +// SellerIp Getter +func (r TaobaoLogisticsDummySendAPIRequest) GetSellerIp() string { + return r._sellerIp +} diff --git a/model/logistic/TaobaoLogisticsDummySendAPIResponse.go b/model/logistic/TaobaoLogisticsDummySendAPIResponse.go new file mode 100644 index 0000000000..5a86205ffb --- /dev/null +++ b/model/logistic/TaobaoLogisticsDummySendAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +无需物流(虚拟)发货处理 API返回值 +taobao.logistics.dummy.send + +用户调用该接口可实现无需物流(虚拟)发货,使用该接口发货,交易订单状态会直接变成卖家已发货 +*/ +type TaobaoLogisticsDummySendAPIResponse struct { + model.CommonResponse + TaobaoLogisticsDummySendAPIResponseModel +} + +// 无需物流(虚拟)发货处理 成功返回结果 +type TaobaoLogisticsDummySendAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_dummy_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回发货是否成功is_success + Shipping *Shipping `json:"shipping,omitempty" xml:"shipping,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsDummySendResponse.go b/model/logistic/TaobaoLogisticsDummySendResponse.go deleted file mode 100644 index 14d8ffd62e..0000000000 --- a/model/logistic/TaobaoLogisticsDummySendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -无需物流(虚拟)发货处理 API返回值 -taobao.logistics.dummy.send - -用户调用该接口可实现无需物流(虚拟)发货,使用该接口发货,交易订单状态会直接变成卖家已发货 -*/ -type TaobaoLogisticsDummySendAPIResponse struct { - model.CommonResponse - TaobaoLogisticsDummySendResponse -} - -// 无需物流(虚拟)发货处理 成功返回结果 -type TaobaoLogisticsDummySendResponse struct { - XMLName xml.Name `xml:"logistics_dummy_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回发货是否成功is_success - Shipping *Shipping `json:"shipping,omitempty" xml:"shipping,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsExpressModifyAppointAPIRequest.go b/model/logistic/TaobaoLogisticsExpressModifyAppointAPIRequest.go new file mode 100644 index 0000000000..b5e84908d1 --- /dev/null +++ b/model/logistic/TaobaoLogisticsExpressModifyAppointAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +快递改约api API请求 +taobao.logistics.express.modify.appoint + +商家通过此api操作修改物流单,交易单的收货人地址、收货人联系方式、预约配送日期 +*/ +type TaobaoLogisticsExpressModifyAppointAPIRequest struct { + model.Params + // 改约请求对象 + _expressModifyAppointTopRequest *ExpressModifyAppointTopRequestDto +} + +// 初始化TaobaoLogisticsExpressModifyAppointAPIRequest对象 +func NewTaobaoLogisticsExpressModifyAppointRequest() *TaobaoLogisticsExpressModifyAppointAPIRequest{ + return &TaobaoLogisticsExpressModifyAppointAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsExpressModifyAppointAPIRequest) GetApiMethodName() string { + return "taobao.logistics.express.modify.appoint" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsExpressModifyAppointAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExpressModifyAppointTopRequest Setter +// 改约请求对象 +func (r *TaobaoLogisticsExpressModifyAppointAPIRequest) SetExpressModifyAppointTopRequest(_expressModifyAppointTopRequest *ExpressModifyAppointTopRequestDto) error { + r._expressModifyAppointTopRequest = _expressModifyAppointTopRequest + r.Set("express_modify_appoint_top_request", _expressModifyAppointTopRequest) + return nil +} + +// ExpressModifyAppointTopRequest Getter +func (r TaobaoLogisticsExpressModifyAppointAPIRequest) GetExpressModifyAppointTopRequest() *ExpressModifyAppointTopRequestDto { + return r._expressModifyAppointTopRequest +} diff --git a/model/logistic/TaobaoLogisticsExpressModifyAppointAPIResponse.go b/model/logistic/TaobaoLogisticsExpressModifyAppointAPIResponse.go new file mode 100644 index 0000000000..aeb65bd82f --- /dev/null +++ b/model/logistic/TaobaoLogisticsExpressModifyAppointAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +快递改约api API返回值 +taobao.logistics.express.modify.appoint + +商家通过此api操作修改物流单,交易单的收货人地址、收货人联系方式、预约配送日期 +*/ +type TaobaoLogisticsExpressModifyAppointAPIResponse struct { + model.CommonResponse + TaobaoLogisticsExpressModifyAppointAPIResponseModel +} + +// 快递改约api 成功返回结果 +type TaobaoLogisticsExpressModifyAppointAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_express_modify_appoint_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *SingleResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsExpressModifyAppointResponse.go b/model/logistic/TaobaoLogisticsExpressModifyAppointResponse.go deleted file mode 100644 index cf72d512eb..0000000000 --- a/model/logistic/TaobaoLogisticsExpressModifyAppointResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -快递改约api API返回值 -taobao.logistics.express.modify.appoint - -商家通过此api操作修改物流单,交易单的收货人地址、收货人联系方式、预约配送日期 -*/ -type TaobaoLogisticsExpressModifyAppointAPIResponse struct { - model.CommonResponse - TaobaoLogisticsExpressModifyAppointResponse -} - -// 快递改约api 成功返回结果 -type TaobaoLogisticsExpressModifyAppointResponse struct { - XMLName xml.Name `xml:"logistics_express_modify_appoint_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *SingleResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsOfflineSendAPIRequest.go b/model/logistic/TaobaoLogisticsOfflineSendAPIRequest.go new file mode 100644 index 0000000000..1039d5eeff --- /dev/null +++ b/model/logistic/TaobaoLogisticsOfflineSendAPIRequest.go @@ -0,0 +1,164 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +自己联系物流(线下物流)发货 API请求 +taobao.logistics.offline.send + +用户调用该接口可实现自己联系发货(线下物流),使用该接口发货,交易订单状态会直接变成卖家已发货。不支持货到付款、在线下单类型的订单。 +*/ +type TaobaoLogisticsOfflineSendAPIRequest struct { + model.Params + // 需要拆单发货的子订单集合,针对的是一笔交易下有多个子订单需要分开发货的场景;1次可传人多个子订单号,子订单间用逗号隔开;为空表示不做拆单发货。 + _subTid []int64 + // 淘宝交易ID + _tid int64 + // 表明是否是拆单,默认值0,1表示拆单 + _isSplit int64 + // 运单号.具体一个物流公司的真实运单号码。淘宝官方物流会校验,请谨慎传入; + _outSid string + // 物流公司代码.如"POST"就代表中国邮政,"ZJS"就代表宅急送.调用 taobao.logistics.companies.get 获取。 + _companyCode string + // 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址 + _senderId int64 + // 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。 如果为空,取的卖家的默认退货地址 + _cancelId int64 + // feature参数格式 范例: identCode=tid1:识别码1,识别码2|tid2:识别码3;machineCode=tid3:3C机器号A,3C机器号B identCode为识别码的KEY,machineCode为3C的KEY,多个key之间用”;”分隔 “tid1:识别码1,识别码2|tid2:识别码3”为identCode对应的value。 "|"不同商品间的分隔符。 例1商品和2商品,之间就用"|"分开。 TID就是商品代表的子订单号,对应taobao.trade.fullinfo.get 接口获得的oid字段。(通过OID可以唯一定位到当前商品上) ":"TID和具体传入参数间的分隔符。冒号前表示TID,之后代表该商品的参数属性。 "," 属性间分隔符。(对应商品数量,当存在一个商品的数量超过1个时,用逗号分开)。 具体:当订单中A商品的数量为2个,其中手机串号分别为"12345","67890"。 参数格式:identCode=TIDA:12345,67890。 TIDA对应了A宝贝,冒号后用逗号分隔的"12345","67890".说明本订单A宝贝的数量为2,值分别为"12345","67890"。 当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。retailStoreId=12345,发货门店ID或仓信息。retailStoreType=STORE: 发货门店类别,STORE表示门店,WAREHOUSE表示电商仓。对于全渠道订单回传的商家,retailStoreId和retailStoreType字段为必填字段。 + _feature string + // 商家的IP地址 + _sellerIp string +} + +// 初始化TaobaoLogisticsOfflineSendAPIRequest对象 +func NewTaobaoLogisticsOfflineSendRequest() *TaobaoLogisticsOfflineSendAPIRequest{ + return &TaobaoLogisticsOfflineSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsOfflineSendAPIRequest) GetApiMethodName() string { + return "taobao.logistics.offline.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsOfflineSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubTid Setter +// 需要拆单发货的子订单集合,针对的是一笔交易下有多个子订单需要分开发货的场景;1次可传人多个子订单号,子订单间用逗号隔开;为空表示不做拆单发货。 +func (r *TaobaoLogisticsOfflineSendAPIRequest) SetSubTid(_subTid []int64) error { + r._subTid = _subTid + r.Set("sub_tid", _subTid) + return nil +} + +// SubTid Getter +func (r TaobaoLogisticsOfflineSendAPIRequest) GetSubTid() []int64 { + return r._subTid +} +// Tid Setter +// 淘宝交易ID +func (r *TaobaoLogisticsOfflineSendAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoLogisticsOfflineSendAPIRequest) GetTid() int64 { + return r._tid +} +// IsSplit Setter +// 表明是否是拆单,默认值0,1表示拆单 +func (r *TaobaoLogisticsOfflineSendAPIRequest) SetIsSplit(_isSplit int64) error { + r._isSplit = _isSplit + r.Set("is_split", _isSplit) + return nil +} + +// IsSplit Getter +func (r TaobaoLogisticsOfflineSendAPIRequest) GetIsSplit() int64 { + return r._isSplit +} +// OutSid Setter +// 运单号.具体一个物流公司的真实运单号码。淘宝官方物流会校验,请谨慎传入; +func (r *TaobaoLogisticsOfflineSendAPIRequest) SetOutSid(_outSid string) error { + r._outSid = _outSid + r.Set("out_sid", _outSid) + return nil +} + +// OutSid Getter +func (r TaobaoLogisticsOfflineSendAPIRequest) GetOutSid() string { + return r._outSid +} +// CompanyCode Setter +// 物流公司代码.如"POST"就代表中国邮政,"ZJS"就代表宅急送.调用 taobao.logistics.companies.get 获取。 +func (r *TaobaoLogisticsOfflineSendAPIRequest) SetCompanyCode(_companyCode string) error { + r._companyCode = _companyCode + r.Set("company_code", _companyCode) + return nil +} + +// CompanyCode Getter +func (r TaobaoLogisticsOfflineSendAPIRequest) GetCompanyCode() string { + return r._companyCode +} +// SenderId Setter +// 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址 +func (r *TaobaoLogisticsOfflineSendAPIRequest) SetSenderId(_senderId int64) error { + r._senderId = _senderId + r.Set("sender_id", _senderId) + return nil +} + +// SenderId Getter +func (r TaobaoLogisticsOfflineSendAPIRequest) GetSenderId() int64 { + return r._senderId +} +// CancelId Setter +// 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。 如果为空,取的卖家的默认退货地址 +func (r *TaobaoLogisticsOfflineSendAPIRequest) SetCancelId(_cancelId int64) error { + r._cancelId = _cancelId + r.Set("cancel_id", _cancelId) + return nil +} + +// CancelId Getter +func (r TaobaoLogisticsOfflineSendAPIRequest) GetCancelId() int64 { + return r._cancelId +} +// Feature Setter +// feature参数格式 范例: identCode=tid1:识别码1,识别码2|tid2:识别码3;machineCode=tid3:3C机器号A,3C机器号B identCode为识别码的KEY,machineCode为3C的KEY,多个key之间用”;”分隔 “tid1:识别码1,识别码2|tid2:识别码3”为identCode对应的value。 "|"不同商品间的分隔符。 例1商品和2商品,之间就用"|"分开。 TID就是商品代表的子订单号,对应taobao.trade.fullinfo.get 接口获得的oid字段。(通过OID可以唯一定位到当前商品上) ":"TID和具体传入参数间的分隔符。冒号前表示TID,之后代表该商品的参数属性。 "," 属性间分隔符。(对应商品数量,当存在一个商品的数量超过1个时,用逗号分开)。 具体:当订单中A商品的数量为2个,其中手机串号分别为"12345","67890"。 参数格式:identCode=TIDA:12345,67890。 TIDA对应了A宝贝,冒号后用逗号分隔的"12345","67890".说明本订单A宝贝的数量为2,值分别为"12345","67890"。 当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。retailStoreId=12345,发货门店ID或仓信息。retailStoreType=STORE: 发货门店类别,STORE表示门店,WAREHOUSE表示电商仓。对于全渠道订单回传的商家,retailStoreId和retailStoreType字段为必填字段。 +func (r *TaobaoLogisticsOfflineSendAPIRequest) SetFeature(_feature string) error { + r._feature = _feature + r.Set("feature", _feature) + return nil +} + +// Feature Getter +func (r TaobaoLogisticsOfflineSendAPIRequest) GetFeature() string { + return r._feature +} +// SellerIp Setter +// 商家的IP地址 +func (r *TaobaoLogisticsOfflineSendAPIRequest) SetSellerIp(_sellerIp string) error { + r._sellerIp = _sellerIp + r.Set("seller_ip", _sellerIp) + return nil +} + +// SellerIp Getter +func (r TaobaoLogisticsOfflineSendAPIRequest) GetSellerIp() string { + return r._sellerIp +} diff --git a/model/logistic/TaobaoLogisticsOfflineSendAPIResponse.go b/model/logistic/TaobaoLogisticsOfflineSendAPIResponse.go new file mode 100644 index 0000000000..69aef6b5e4 --- /dev/null +++ b/model/logistic/TaobaoLogisticsOfflineSendAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +自己联系物流(线下物流)发货 API返回值 +taobao.logistics.offline.send + +用户调用该接口可实现自己联系发货(线下物流),使用该接口发货,交易订单状态会直接变成卖家已发货。不支持货到付款、在线下单类型的订单。 +*/ +type TaobaoLogisticsOfflineSendAPIResponse struct { + model.CommonResponse + TaobaoLogisticsOfflineSendAPIResponseModel +} + +// 自己联系物流(线下物流)发货 成功返回结果 +type TaobaoLogisticsOfflineSendAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_offline_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 自己联系的调用结果 + Shipping *Shipping `json:"shipping,omitempty" xml:"shipping,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsOfflineSendResponse.go b/model/logistic/TaobaoLogisticsOfflineSendResponse.go deleted file mode 100644 index 4d29117a09..0000000000 --- a/model/logistic/TaobaoLogisticsOfflineSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -自己联系物流(线下物流)发货 API返回值 -taobao.logistics.offline.send - -用户调用该接口可实现自己联系发货(线下物流),使用该接口发货,交易订单状态会直接变成卖家已发货。不支持货到付款、在线下单类型的订单。 -*/ -type TaobaoLogisticsOfflineSendAPIResponse struct { - model.CommonResponse - TaobaoLogisticsOfflineSendResponse -} - -// 自己联系物流(线下物流)发货 成功返回结果 -type TaobaoLogisticsOfflineSendResponse struct { - XMLName xml.Name `xml:"logistics_offline_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 自己联系的调用结果 - Shipping *Shipping `json:"shipping,omitempty" xml:"shipping,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsOnlineCancelAPIRequest.go b/model/logistic/TaobaoLogisticsOnlineCancelAPIRequest.go new file mode 100644 index 0000000000..78317cfae5 --- /dev/null +++ b/model/logistic/TaobaoLogisticsOnlineCancelAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消物流订单接口 API请求 +taobao.logistics.online.cancel + +调此接口取消发货的订单,重新选择物流公司发货。前提是物流公司未揽收货物。对未发货和已经被物流公司揽收的物流订单,是不能取消的。 +*/ +type TaobaoLogisticsOnlineCancelAPIRequest struct { + model.Params + // 淘宝交易ID + _tid int64 +} + +// 初始化TaobaoLogisticsOnlineCancelAPIRequest对象 +func NewTaobaoLogisticsOnlineCancelRequest() *TaobaoLogisticsOnlineCancelAPIRequest{ + return &TaobaoLogisticsOnlineCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsOnlineCancelAPIRequest) GetApiMethodName() string { + return "taobao.logistics.online.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsOnlineCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 淘宝交易ID +func (r *TaobaoLogisticsOnlineCancelAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoLogisticsOnlineCancelAPIRequest) GetTid() int64 { + return r._tid +} diff --git a/model/logistic/TaobaoLogisticsOnlineCancelAPIResponse.go b/model/logistic/TaobaoLogisticsOnlineCancelAPIResponse.go new file mode 100644 index 0000000000..a1e3d5e55a --- /dev/null +++ b/model/logistic/TaobaoLogisticsOnlineCancelAPIResponse.go @@ -0,0 +1,31 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消物流订单接口 API返回值 +taobao.logistics.online.cancel + +调此接口取消发货的订单,重新选择物流公司发货。前提是物流公司未揽收货物。对未发货和已经被物流公司揽收的物流订单,是不能取消的。 +*/ +type TaobaoLogisticsOnlineCancelAPIResponse struct { + model.CommonResponse + TaobaoLogisticsOnlineCancelAPIResponseModel +} + +// 取消物流订单接口 成功返回结果 +type TaobaoLogisticsOnlineCancelAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_online_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功与失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 修改时间 + ModifyTime string `json:"modify_time,omitempty" xml:"modify_time,omitempty"` + // 重新创建物流订单id + RecreatedOrderId string `json:"recreated_order_id,omitempty" xml:"recreated_order_id,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsOnlineCancelResponse.go b/model/logistic/TaobaoLogisticsOnlineCancelResponse.go deleted file mode 100644 index 5f706d7a2d..0000000000 --- a/model/logistic/TaobaoLogisticsOnlineCancelResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消物流订单接口 API返回值 -taobao.logistics.online.cancel - -调此接口取消发货的订单,重新选择物流公司发货。前提是物流公司未揽收货物。对未发货和已经被物流公司揽收的物流订单,是不能取消的。 -*/ -type TaobaoLogisticsOnlineCancelAPIResponse struct { - model.CommonResponse - TaobaoLogisticsOnlineCancelResponse -} - -// 取消物流订单接口 成功返回结果 -type TaobaoLogisticsOnlineCancelResponse struct { - XMLName xml.Name `xml:"logistics_online_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功与失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 修改时间 - ModifyTime string `json:"modify_time,omitempty" xml:"modify_time,omitempty"` - // 重新创建物流订单id - RecreatedOrderId string `json:"recreated_order_id,omitempty" xml:"recreated_order_id,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsOnlineConfirmAPIRequest.go b/model/logistic/TaobaoLogisticsOnlineConfirmAPIRequest.go new file mode 100644 index 0000000000..b8f798f8b3 --- /dev/null +++ b/model/logistic/TaobaoLogisticsOnlineConfirmAPIRequest.go @@ -0,0 +1,109 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +确认发货通知接口 API请求 +taobao.logistics.online.confirm + +
仅在使用taobao.logistics.online.send 发货时未输入运单号的情况下,需要使用该接口补充填写运单号,来确认发货。
+确认发货的目的是让交易流程继续走下去,确认发货后交易状态会由【买家已付款】变为【卖家已发货】。
+*/ +type TaobaoLogisticsOnlineConfirmAPIRequest struct { + model.Params + // 淘宝交易ID + _tid int64 + // 拆单子订单列表,对应的数据是:子订单号的列表。可以不传,但是如果传了则必须符合传递的规则。子订单必须是操作的物流订单的子订单的真子集 + _subTid []int64 + // 表明是否是拆单,默认值0,1表示拆单 + _isSplit int64 + // 运单号.具体一个物流公司的真实运单号码。淘宝官方物流会校验,请谨慎传入; + _outSid string + // 商家的IP地址 + _sellerIp string +} + +// 初始化TaobaoLogisticsOnlineConfirmAPIRequest对象 +func NewTaobaoLogisticsOnlineConfirmRequest() *TaobaoLogisticsOnlineConfirmAPIRequest{ + return &TaobaoLogisticsOnlineConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsOnlineConfirmAPIRequest) GetApiMethodName() string { + return "taobao.logistics.online.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsOnlineConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 淘宝交易ID +func (r *TaobaoLogisticsOnlineConfirmAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoLogisticsOnlineConfirmAPIRequest) GetTid() int64 { + return r._tid +} +// SubTid Setter +// 拆单子订单列表,对应的数据是:子订单号的列表。可以不传,但是如果传了则必须符合传递的规则。子订单必须是操作的物流订单的子订单的真子集 +func (r *TaobaoLogisticsOnlineConfirmAPIRequest) SetSubTid(_subTid []int64) error { + r._subTid = _subTid + r.Set("sub_tid", _subTid) + return nil +} + +// SubTid Getter +func (r TaobaoLogisticsOnlineConfirmAPIRequest) GetSubTid() []int64 { + return r._subTid +} +// IsSplit Setter +// 表明是否是拆单,默认值0,1表示拆单 +func (r *TaobaoLogisticsOnlineConfirmAPIRequest) SetIsSplit(_isSplit int64) error { + r._isSplit = _isSplit + r.Set("is_split", _isSplit) + return nil +} + +// IsSplit Getter +func (r TaobaoLogisticsOnlineConfirmAPIRequest) GetIsSplit() int64 { + return r._isSplit +} +// OutSid Setter +// 运单号.具体一个物流公司的真实运单号码。淘宝官方物流会校验,请谨慎传入; +func (r *TaobaoLogisticsOnlineConfirmAPIRequest) SetOutSid(_outSid string) error { + r._outSid = _outSid + r.Set("out_sid", _outSid) + return nil +} + +// OutSid Getter +func (r TaobaoLogisticsOnlineConfirmAPIRequest) GetOutSid() string { + return r._outSid +} +// SellerIp Setter +// 商家的IP地址 +func (r *TaobaoLogisticsOnlineConfirmAPIRequest) SetSellerIp(_sellerIp string) error { + r._sellerIp = _sellerIp + r.Set("seller_ip", _sellerIp) + return nil +} + +// SellerIp Getter +func (r TaobaoLogisticsOnlineConfirmAPIRequest) GetSellerIp() string { + return r._sellerIp +} diff --git a/model/logistic/TaobaoLogisticsOnlineConfirmAPIResponse.go b/model/logistic/TaobaoLogisticsOnlineConfirmAPIResponse.go new file mode 100644 index 0000000000..4a52d730cc --- /dev/null +++ b/model/logistic/TaobaoLogisticsOnlineConfirmAPIResponse.go @@ -0,0 +1,28 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +确认发货通知接口 API返回值 +taobao.logistics.online.confirm + +
仅在使用taobao.logistics.online.send 发货时未输入运单号的情况下,需要使用该接口补充填写运单号,来确认发货。
+确认发货的目的是让交易流程继续走下去,确认发货后交易状态会由【买家已付款】变为【卖家已发货】。
+*/ +type TaobaoLogisticsOnlineConfirmAPIResponse struct { + model.CommonResponse + TaobaoLogisticsOnlineConfirmAPIResponseModel +} + +// 确认发货通知接口 成功返回结果 +type TaobaoLogisticsOnlineConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_online_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 只返回is_success:是否成功。 + Shipping *Shipping `json:"shipping,omitempty" xml:"shipping,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsOnlineConfirmResponse.go b/model/logistic/TaobaoLogisticsOnlineConfirmResponse.go deleted file mode 100644 index c46b90931c..0000000000 --- a/model/logistic/TaobaoLogisticsOnlineConfirmResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -确认发货通知接口 API返回值 -taobao.logistics.online.confirm - -
仅在使用taobao.logistics.online.send 发货时未输入运单号的情况下,需要使用该接口补充填写运单号,来确认发货。
-确认发货的目的是让交易流程继续走下去,确认发货后交易状态会由【买家已付款】变为【卖家已发货】。
-*/ -type TaobaoLogisticsOnlineConfirmAPIResponse struct { - model.CommonResponse - TaobaoLogisticsOnlineConfirmResponse -} - -// 确认发货通知接口 成功返回结果 -type TaobaoLogisticsOnlineConfirmResponse struct { - XMLName xml.Name `xml:"logistics_online_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 只返回is_success:是否成功。 - Shipping *Shipping `json:"shipping,omitempty" xml:"shipping,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsOnlineSendAPIRequest.go b/model/logistic/TaobaoLogisticsOnlineSendAPIRequest.go new file mode 100644 index 0000000000..14b6945354 --- /dev/null +++ b/model/logistic/TaobaoLogisticsOnlineSendAPIRequest.go @@ -0,0 +1,164 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +在线订单发货处理(支持货到付款) API请求 +taobao.logistics.online.send + +用户调用该接口可实现在线订单发货(支持货到付款)
调用该接口实现在线下单发货,有两种情况:

如果不输入运单号的情况:交易状态不会改变,需要调用taobao.logistics.online.confirm确认发货后交易状态才会变成卖家已发货。

如果输入运单号的情况发货:交易订单状态会直接变成卖家已发货 。
+*/ +type TaobaoLogisticsOnlineSendAPIRequest struct { + model.Params + // 需要拆单发货的子订单集合,针对的是一笔交易下有多个子订单需要分开发货的场景;1次可传人多个子订单号,子订单间用逗号隔开;为空表示不做拆单发货。 + _subTid []int64 + // 淘宝交易ID + _tid int64 + // 表明是否是拆单,默认值0,1表示拆单 + _isSplit int64 + // 运单号.具体一个物流公司的真实运单号码。淘宝官方物流会校验,请谨慎传入; + _outSid string + // 物流公司代码.如"POST"就代表中国邮政,"ZJS"就代表宅急送.调用 taobao.logistics.companies.get 获取。 + _companyCode string + // 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址 + _senderId int64 + // 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。 如果为空,取的卖家的默认退货地址 + _cancelId int64 + // feature参数格式 范例: identCode=tid1:识别码1,识别码2|tid2:识别码3;machineCode=tid3:3C机器号A,3C机器号B identCode为识别码的KEY,machineCode为3C的KEY,多个key之间用”;”分隔 “tid1:识别码1,识别码2|tid2:识别码3”为identCode对应的value。 "|"不同商品间的分隔符。 例1商品和2商品,之间就用"|"分开。 TID就是商品代表的子订单号,对应taobao.trade.fullinfo.get 接口获得的oid字段。(通过OID可以唯一定位到当前商品上) ":"TID和具体传入参数间的分隔符。冒号前表示TID,之后代表该商品的参数属性。 "," 属性间分隔符。(对应商品数量,当存在一个商品的数量超过1个时,用逗号分开)。 具体:当订单中A商品的数量为2个,其中手机串号分别为"12345","67890"。 参数格式:identCode=TIDA:12345,67890。 TIDA对应了A宝贝,冒号后用逗号分隔的"12345","67890".说明本订单A宝贝的数量为2,值分别为"12345","67890"。 当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。retailStoreId=12345,发货门店ID或仓信息。retailStoreType=STORE: 发货门店类别,STORE表示门店,WAREHOUSE表示电商仓。对于全渠道订单回传的商家,retailStoreId和retailStoreType字段为必填字段。 + _feature string + // 商家的IP地址 + _sellerIp string +} + +// 初始化TaobaoLogisticsOnlineSendAPIRequest对象 +func NewTaobaoLogisticsOnlineSendRequest() *TaobaoLogisticsOnlineSendAPIRequest{ + return &TaobaoLogisticsOnlineSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsOnlineSendAPIRequest) GetApiMethodName() string { + return "taobao.logistics.online.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsOnlineSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubTid Setter +// 需要拆单发货的子订单集合,针对的是一笔交易下有多个子订单需要分开发货的场景;1次可传人多个子订单号,子订单间用逗号隔开;为空表示不做拆单发货。 +func (r *TaobaoLogisticsOnlineSendAPIRequest) SetSubTid(_subTid []int64) error { + r._subTid = _subTid + r.Set("sub_tid", _subTid) + return nil +} + +// SubTid Getter +func (r TaobaoLogisticsOnlineSendAPIRequest) GetSubTid() []int64 { + return r._subTid +} +// Tid Setter +// 淘宝交易ID +func (r *TaobaoLogisticsOnlineSendAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoLogisticsOnlineSendAPIRequest) GetTid() int64 { + return r._tid +} +// IsSplit Setter +// 表明是否是拆单,默认值0,1表示拆单 +func (r *TaobaoLogisticsOnlineSendAPIRequest) SetIsSplit(_isSplit int64) error { + r._isSplit = _isSplit + r.Set("is_split", _isSplit) + return nil +} + +// IsSplit Getter +func (r TaobaoLogisticsOnlineSendAPIRequest) GetIsSplit() int64 { + return r._isSplit +} +// OutSid Setter +// 运单号.具体一个物流公司的真实运单号码。淘宝官方物流会校验,请谨慎传入; +func (r *TaobaoLogisticsOnlineSendAPIRequest) SetOutSid(_outSid string) error { + r._outSid = _outSid + r.Set("out_sid", _outSid) + return nil +} + +// OutSid Getter +func (r TaobaoLogisticsOnlineSendAPIRequest) GetOutSid() string { + return r._outSid +} +// CompanyCode Setter +// 物流公司代码.如"POST"就代表中国邮政,"ZJS"就代表宅急送.调用 taobao.logistics.companies.get 获取。 +func (r *TaobaoLogisticsOnlineSendAPIRequest) SetCompanyCode(_companyCode string) error { + r._companyCode = _companyCode + r.Set("company_code", _companyCode) + return nil +} + +// CompanyCode Getter +func (r TaobaoLogisticsOnlineSendAPIRequest) GetCompanyCode() string { + return r._companyCode +} +// SenderId Setter +// 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址 +func (r *TaobaoLogisticsOnlineSendAPIRequest) SetSenderId(_senderId int64) error { + r._senderId = _senderId + r.Set("sender_id", _senderId) + return nil +} + +// SenderId Getter +func (r TaobaoLogisticsOnlineSendAPIRequest) GetSenderId() int64 { + return r._senderId +} +// CancelId Setter +// 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。 如果为空,取的卖家的默认退货地址 +func (r *TaobaoLogisticsOnlineSendAPIRequest) SetCancelId(_cancelId int64) error { + r._cancelId = _cancelId + r.Set("cancel_id", _cancelId) + return nil +} + +// CancelId Getter +func (r TaobaoLogisticsOnlineSendAPIRequest) GetCancelId() int64 { + return r._cancelId +} +// Feature Setter +// feature参数格式 范例: identCode=tid1:识别码1,识别码2|tid2:识别码3;machineCode=tid3:3C机器号A,3C机器号B identCode为识别码的KEY,machineCode为3C的KEY,多个key之间用”;”分隔 “tid1:识别码1,识别码2|tid2:识别码3”为identCode对应的value。 "|"不同商品间的分隔符。 例1商品和2商品,之间就用"|"分开。 TID就是商品代表的子订单号,对应taobao.trade.fullinfo.get 接口获得的oid字段。(通过OID可以唯一定位到当前商品上) ":"TID和具体传入参数间的分隔符。冒号前表示TID,之后代表该商品的参数属性。 "," 属性间分隔符。(对应商品数量,当存在一个商品的数量超过1个时,用逗号分开)。 具体:当订单中A商品的数量为2个,其中手机串号分别为"12345","67890"。 参数格式:identCode=TIDA:12345,67890。 TIDA对应了A宝贝,冒号后用逗号分隔的"12345","67890".说明本订单A宝贝的数量为2,值分别为"12345","67890"。 当存在"|"时,就说明订单中存在多个商品,商品间用"|"分隔了开来。|"之后的内容含义同上。retailStoreId=12345,发货门店ID或仓信息。retailStoreType=STORE: 发货门店类别,STORE表示门店,WAREHOUSE表示电商仓。对于全渠道订单回传的商家,retailStoreId和retailStoreType字段为必填字段。 +func (r *TaobaoLogisticsOnlineSendAPIRequest) SetFeature(_feature string) error { + r._feature = _feature + r.Set("feature", _feature) + return nil +} + +// Feature Getter +func (r TaobaoLogisticsOnlineSendAPIRequest) GetFeature() string { + return r._feature +} +// SellerIp Setter +// 商家的IP地址 +func (r *TaobaoLogisticsOnlineSendAPIRequest) SetSellerIp(_sellerIp string) error { + r._sellerIp = _sellerIp + r.Set("seller_ip", _sellerIp) + return nil +} + +// SellerIp Getter +func (r TaobaoLogisticsOnlineSendAPIRequest) GetSellerIp() string { + return r._sellerIp +} diff --git a/model/logistic/TaobaoLogisticsOnlineSendAPIResponse.go b/model/logistic/TaobaoLogisticsOnlineSendAPIResponse.go new file mode 100644 index 0000000000..cbf5117af5 --- /dev/null +++ b/model/logistic/TaobaoLogisticsOnlineSendAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +在线订单发货处理(支持货到付款) API返回值 +taobao.logistics.online.send + +用户调用该接口可实现在线订单发货(支持货到付款)
调用该接口实现在线下单发货,有两种情况:

如果不输入运单号的情况:交易状态不会改变,需要调用taobao.logistics.online.confirm确认发货后交易状态才会变成卖家已发货。

如果输入运单号的情况发货:交易订单状态会直接变成卖家已发货 。
+*/ +type TaobaoLogisticsOnlineSendAPIResponse struct { + model.CommonResponse + TaobaoLogisticsOnlineSendAPIResponseModel +} + +// 在线订单发货处理(支持货到付款) 成功返回结果 +type TaobaoLogisticsOnlineSendAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_online_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // de + Shipping *Shipping `json:"shipping,omitempty" xml:"shipping,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsOnlineSendResponse.go b/model/logistic/TaobaoLogisticsOnlineSendResponse.go deleted file mode 100644 index f89bf20db0..0000000000 --- a/model/logistic/TaobaoLogisticsOnlineSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -在线订单发货处理(支持货到付款) API返回值 -taobao.logistics.online.send - -用户调用该接口可实现在线订单发货(支持货到付款)
调用该接口实现在线下单发货,有两种情况:

如果不输入运单号的情况:交易状态不会改变,需要调用taobao.logistics.online.confirm确认发货后交易状态才会变成卖家已发货。

如果输入运单号的情况发货:交易订单状态会直接变成卖家已发货 。
-*/ -type TaobaoLogisticsOnlineSendAPIResponse struct { - model.CommonResponse - TaobaoLogisticsOnlineSendResponse -} - -// 在线订单发货处理(支持货到付款) 成功返回结果 -type TaobaoLogisticsOnlineSendResponse struct { - XMLName xml.Name `xml:"logistics_online_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // de - Shipping *Shipping `json:"shipping,omitempty" xml:"shipping,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsOrderCreateAPIRequest.go b/model/logistic/TaobaoLogisticsOrderCreateAPIRequest.go new file mode 100644 index 0000000000..73e6111614 --- /dev/null +++ b/model/logistic/TaobaoLogisticsOrderCreateAPIRequest.go @@ -0,0 +1,178 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建物流订单 API请求 +taobao.logistics.order.create + +用户调用该接口可以创建物流订单。目前仅支持手工订单的创建,创建完毕后默认自动使用“自己联系”的方式发货并且初始状态为”已发货“。也可以通过可选参数选择是否发货以及何种方式进行发货。 +*/ +type TaobaoLogisticsOrderCreateAPIRequest struct { + model.Params + // 发货方式,默认为自己联系发货。可选值:ONLINE(在线下单)、OFFLINE(自己联系)。 + _logisType string + // 发货的物流公司代码,如申通=STO,圆通=YTO。is_consign=true时,此项必填。 + _logisCompanyCode string + // 发货的物流公司运单号。在logis_type=OFFLINE且is_consign=true时,此项必填。 + _mailNo string + // 运送的货物名称列表,用|号隔开 + _goodsNames string + // 运送货物的数量列表,用|号隔开 + _goodsQuantities string + // 运送货物的单价列表(注意:单位为分),用|号隔开 + _itemValues string + // 卖家旺旺号 + _sellerWangwangId string + // 订单的交易号码 + _tradeId int64 + // 创建订单同时是否进行发货,默认发货。 + _isConsign bool + // 运费承担方式。1为买家承担运费,2为卖家承担运费,其他值为错误参数。 + _shipping int64 +} + +// 初始化TaobaoLogisticsOrderCreateAPIRequest对象 +func NewTaobaoLogisticsOrderCreateRequest() *TaobaoLogisticsOrderCreateAPIRequest{ + return &TaobaoLogisticsOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsOrderCreateAPIRequest) GetApiMethodName() string { + return "taobao.logistics.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LogisType Setter +// 发货方式,默认为自己联系发货。可选值:ONLINE(在线下单)、OFFLINE(自己联系)。 +func (r *TaobaoLogisticsOrderCreateAPIRequest) SetLogisType(_logisType string) error { + r._logisType = _logisType + r.Set("logis_type", _logisType) + return nil +} + +// LogisType Getter +func (r TaobaoLogisticsOrderCreateAPIRequest) GetLogisType() string { + return r._logisType +} +// LogisCompanyCode Setter +// 发货的物流公司代码,如申通=STO,圆通=YTO。is_consign=true时,此项必填。 +func (r *TaobaoLogisticsOrderCreateAPIRequest) SetLogisCompanyCode(_logisCompanyCode string) error { + r._logisCompanyCode = _logisCompanyCode + r.Set("logis_company_code", _logisCompanyCode) + return nil +} + +// LogisCompanyCode Getter +func (r TaobaoLogisticsOrderCreateAPIRequest) GetLogisCompanyCode() string { + return r._logisCompanyCode +} +// MailNo Setter +// 发货的物流公司运单号。在logis_type=OFFLINE且is_consign=true时,此项必填。 +func (r *TaobaoLogisticsOrderCreateAPIRequest) SetMailNo(_mailNo string) error { + r._mailNo = _mailNo + r.Set("mail_no", _mailNo) + return nil +} + +// MailNo Getter +func (r TaobaoLogisticsOrderCreateAPIRequest) GetMailNo() string { + return r._mailNo +} +// GoodsNames Setter +// 运送的货物名称列表,用|号隔开 +func (r *TaobaoLogisticsOrderCreateAPIRequest) SetGoodsNames(_goodsNames string) error { + r._goodsNames = _goodsNames + r.Set("goods_names", _goodsNames) + return nil +} + +// GoodsNames Getter +func (r TaobaoLogisticsOrderCreateAPIRequest) GetGoodsNames() string { + return r._goodsNames +} +// GoodsQuantities Setter +// 运送货物的数量列表,用|号隔开 +func (r *TaobaoLogisticsOrderCreateAPIRequest) SetGoodsQuantities(_goodsQuantities string) error { + r._goodsQuantities = _goodsQuantities + r.Set("goods_quantities", _goodsQuantities) + return nil +} + +// GoodsQuantities Getter +func (r TaobaoLogisticsOrderCreateAPIRequest) GetGoodsQuantities() string { + return r._goodsQuantities +} +// ItemValues Setter +// 运送货物的单价列表(注意:单位为分),用|号隔开 +func (r *TaobaoLogisticsOrderCreateAPIRequest) SetItemValues(_itemValues string) error { + r._itemValues = _itemValues + r.Set("item_values", _itemValues) + return nil +} + +// ItemValues Getter +func (r TaobaoLogisticsOrderCreateAPIRequest) GetItemValues() string { + return r._itemValues +} +// SellerWangwangId Setter +// 卖家旺旺号 +func (r *TaobaoLogisticsOrderCreateAPIRequest) SetSellerWangwangId(_sellerWangwangId string) error { + r._sellerWangwangId = _sellerWangwangId + r.Set("seller_wangwang_id", _sellerWangwangId) + return nil +} + +// SellerWangwangId Getter +func (r TaobaoLogisticsOrderCreateAPIRequest) GetSellerWangwangId() string { + return r._sellerWangwangId +} +// TradeId Setter +// 订单的交易号码 +func (r *TaobaoLogisticsOrderCreateAPIRequest) SetTradeId(_tradeId int64) error { + r._tradeId = _tradeId + r.Set("trade_id", _tradeId) + return nil +} + +// TradeId Getter +func (r TaobaoLogisticsOrderCreateAPIRequest) GetTradeId() int64 { + return r._tradeId +} +// IsConsign Setter +// 创建订单同时是否进行发货,默认发货。 +func (r *TaobaoLogisticsOrderCreateAPIRequest) SetIsConsign(_isConsign bool) error { + r._isConsign = _isConsign + r.Set("is_consign", _isConsign) + return nil +} + +// IsConsign Getter +func (r TaobaoLogisticsOrderCreateAPIRequest) GetIsConsign() bool { + return r._isConsign +} +// Shipping Setter +// 运费承担方式。1为买家承担运费,2为卖家承担运费,其他值为错误参数。 +func (r *TaobaoLogisticsOrderCreateAPIRequest) SetShipping(_shipping int64) error { + r._shipping = _shipping + r.Set("shipping", _shipping) + return nil +} + +// Shipping Getter +func (r TaobaoLogisticsOrderCreateAPIRequest) GetShipping() int64 { + return r._shipping +} diff --git a/model/logistic/TaobaoLogisticsOrderCreateAPIResponse.go b/model/logistic/TaobaoLogisticsOrderCreateAPIResponse.go new file mode 100644 index 0000000000..d190b91577 --- /dev/null +++ b/model/logistic/TaobaoLogisticsOrderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建物流订单 API返回值 +taobao.logistics.order.create + +用户调用该接口可以创建物流订单。目前仅支持手工订单的创建,创建完毕后默认自动使用“自己联系”的方式发货并且初始状态为”已发货“。也可以通过可选参数选择是否发货以及何种方式进行发货。 +*/ +type TaobaoLogisticsOrderCreateAPIResponse struct { + model.CommonResponse + TaobaoLogisticsOrderCreateAPIResponseModel +} + +// 创建物流订单 成功返回结果 +type TaobaoLogisticsOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 淘宝物流订单交易号,如返回-1则表示错误。如果在新建订单时传入trade_id,此处会返回此id,如果未传入trade_id,此处会返回淘宝物流分配的交易号码。 + TradeId int64 `json:"trade_id,omitempty" xml:"trade_id,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsOrderCreateResponse.go b/model/logistic/TaobaoLogisticsOrderCreateResponse.go deleted file mode 100644 index f9c40db70d..0000000000 --- a/model/logistic/TaobaoLogisticsOrderCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建物流订单 API返回值 -taobao.logistics.order.create - -用户调用该接口可以创建物流订单。目前仅支持手工订单的创建,创建完毕后默认自动使用“自己联系”的方式发货并且初始状态为”已发货“。也可以通过可选参数选择是否发货以及何种方式进行发货。 -*/ -type TaobaoLogisticsOrderCreateAPIResponse struct { - model.CommonResponse - TaobaoLogisticsOrderCreateResponse -} - -// 创建物流订单 成功返回结果 -type TaobaoLogisticsOrderCreateResponse struct { - XMLName xml.Name `xml:"logistics_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 淘宝物流订单交易号,如返回-1则表示错误。如果在新建订单时传入trade_id,此处会返回此id,如果未传入trade_id,此处会返回淘宝物流分配的交易号码。 - TradeId int64 `json:"trade_id,omitempty" xml:"trade_id,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsOrderShengxianConfirmAPIRequest.go b/model/logistic/TaobaoLogisticsOrderShengxianConfirmAPIRequest.go new file mode 100644 index 0000000000..369a44d28c --- /dev/null +++ b/model/logistic/TaobaoLogisticsOrderShengxianConfirmAPIRequest.go @@ -0,0 +1,150 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物流宝生鲜冷链的发货 API请求 +taobao.logistics.order.shengxian.confirm + +优鲜送,生鲜业务使用该接口发货,交易订单状态会直接变成卖家已发货。不支持货到付款、在线下单类型的订单。 +*/ +type TaobaoLogisticsOrderShengxianConfirmAPIRequest struct { + model.Params + // 淘宝交易ID + _tid int64 + // 运单号.具体一个物流公司的真实运单号码。支持多个运单号,多个运单号之间用英文分号(;)隔开,不能重复。淘宝官方物流会校验,请谨慎传入; + _outSid string + // 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址如果service_code不为空,默认使用service_code如果service_code为空,sender_id不为空,使用sender_id对应的地址发货如果service_code与sender_id都为空,使用默认地址发货 + _senderId int64 + // 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。
如果为空,取的卖家的默认退货地址
+ _cancelId int64 + // 商家的IP地址 + _sellerIp string + // 物流订单ID 。同淘宝交易订单互斥,淘宝交易号存在,,以淘宝交易号为准 + _logisId int64 + // 仓库的服务代码标示,代码一个仓库的实体。(可以通过taobao.wlb.stores.baseinfo.get接口查询)如果service_code为空,默认通过sender_id来发货 + _serviceCode string + // 1:冷链。0:常温 + _deliveryType int64 +} + +// 初始化TaobaoLogisticsOrderShengxianConfirmAPIRequest对象 +func NewTaobaoLogisticsOrderShengxianConfirmRequest() *TaobaoLogisticsOrderShengxianConfirmAPIRequest{ + return &TaobaoLogisticsOrderShengxianConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsOrderShengxianConfirmAPIRequest) GetApiMethodName() string { + return "taobao.logistics.order.shengxian.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsOrderShengxianConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 淘宝交易ID +func (r *TaobaoLogisticsOrderShengxianConfirmAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoLogisticsOrderShengxianConfirmAPIRequest) GetTid() int64 { + return r._tid +} +// OutSid Setter +// 运单号.具体一个物流公司的真实运单号码。支持多个运单号,多个运单号之间用英文分号(;)隔开,不能重复。淘宝官方物流会校验,请谨慎传入; +func (r *TaobaoLogisticsOrderShengxianConfirmAPIRequest) SetOutSid(_outSid string) error { + r._outSid = _outSid + r.Set("out_sid", _outSid) + return nil +} + +// OutSid Getter +func (r TaobaoLogisticsOrderShengxianConfirmAPIRequest) GetOutSid() string { + return r._outSid +} +// SenderId Setter +// 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址如果service_code不为空,默认使用service_code如果service_code为空,sender_id不为空,使用sender_id对应的地址发货如果service_code与sender_id都为空,使用默认地址发货 +func (r *TaobaoLogisticsOrderShengxianConfirmAPIRequest) SetSenderId(_senderId int64) error { + r._senderId = _senderId + r.Set("sender_id", _senderId) + return nil +} + +// SenderId Getter +func (r TaobaoLogisticsOrderShengxianConfirmAPIRequest) GetSenderId() int64 { + return r._senderId +} +// CancelId Setter +// 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。
如果为空,取的卖家的默认退货地址
+func (r *TaobaoLogisticsOrderShengxianConfirmAPIRequest) SetCancelId(_cancelId int64) error { + r._cancelId = _cancelId + r.Set("cancel_id", _cancelId) + return nil +} + +// CancelId Getter +func (r TaobaoLogisticsOrderShengxianConfirmAPIRequest) GetCancelId() int64 { + return r._cancelId +} +// SellerIp Setter +// 商家的IP地址 +func (r *TaobaoLogisticsOrderShengxianConfirmAPIRequest) SetSellerIp(_sellerIp string) error { + r._sellerIp = _sellerIp + r.Set("seller_ip", _sellerIp) + return nil +} + +// SellerIp Getter +func (r TaobaoLogisticsOrderShengxianConfirmAPIRequest) GetSellerIp() string { + return r._sellerIp +} +// LogisId Setter +// 物流订单ID 。同淘宝交易订单互斥,淘宝交易号存在,,以淘宝交易号为准 +func (r *TaobaoLogisticsOrderShengxianConfirmAPIRequest) SetLogisId(_logisId int64) error { + r._logisId = _logisId + r.Set("logis_id", _logisId) + return nil +} + +// LogisId Getter +func (r TaobaoLogisticsOrderShengxianConfirmAPIRequest) GetLogisId() int64 { + return r._logisId +} +// ServiceCode Setter +// 仓库的服务代码标示,代码一个仓库的实体。(可以通过taobao.wlb.stores.baseinfo.get接口查询)如果service_code为空,默认通过sender_id来发货 +func (r *TaobaoLogisticsOrderShengxianConfirmAPIRequest) SetServiceCode(_serviceCode string) error { + r._serviceCode = _serviceCode + r.Set("service_code", _serviceCode) + return nil +} + +// ServiceCode Getter +func (r TaobaoLogisticsOrderShengxianConfirmAPIRequest) GetServiceCode() string { + return r._serviceCode +} +// DeliveryType Setter +// 1:冷链。0:常温 +func (r *TaobaoLogisticsOrderShengxianConfirmAPIRequest) SetDeliveryType(_deliveryType int64) error { + r._deliveryType = _deliveryType + r.Set("delivery_type", _deliveryType) + return nil +} + +// DeliveryType Getter +func (r TaobaoLogisticsOrderShengxianConfirmAPIRequest) GetDeliveryType() int64 { + return r._deliveryType +} diff --git a/model/logistic/TaobaoLogisticsOrderShengxianConfirmAPIResponse.go b/model/logistic/TaobaoLogisticsOrderShengxianConfirmAPIResponse.go new file mode 100644 index 0000000000..1ba5ed3383 --- /dev/null +++ b/model/logistic/TaobaoLogisticsOrderShengxianConfirmAPIResponse.go @@ -0,0 +1,29 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物流宝生鲜冷链的发货 API返回值 +taobao.logistics.order.shengxian.confirm + +优鲜送,生鲜业务使用该接口发货,交易订单状态会直接变成卖家已发货。不支持货到付款、在线下单类型的订单。 +*/ +type TaobaoLogisticsOrderShengxianConfirmAPIResponse struct { + model.CommonResponse + TaobaoLogisticsOrderShengxianConfirmAPIResponseModel +} + +// 物流宝生鲜冷链的发货 成功返回结果 +type TaobaoLogisticsOrderShengxianConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_order_shengxian_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 发货成功后,返回承运商的信息 + ShipFresh *ShipFresh `json:"ship_fresh,omitempty" xml:"ship_fresh,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsOrderShengxianConfirmResponse.go b/model/logistic/TaobaoLogisticsOrderShengxianConfirmResponse.go deleted file mode 100644 index 68ccdf1c5c..0000000000 --- a/model/logistic/TaobaoLogisticsOrderShengxianConfirmResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物流宝生鲜冷链的发货 API返回值 -taobao.logistics.order.shengxian.confirm - -优鲜送,生鲜业务使用该接口发货,交易订单状态会直接变成卖家已发货。不支持货到付款、在线下单类型的订单。 -*/ -type TaobaoLogisticsOrderShengxianConfirmAPIResponse struct { - model.CommonResponse - TaobaoLogisticsOrderShengxianConfirmResponse -} - -// 物流宝生鲜冷链的发货 成功返回结果 -type TaobaoLogisticsOrderShengxianConfirmResponse struct { - XMLName xml.Name `xml:"logistics_order_shengxian_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 发货成功后,返回承运商的信息 - ShipFresh *ShipFresh `json:"ship_fresh,omitempty" xml:"ship_fresh,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsOrdersDetailGetAPIRequest.go b/model/logistic/TaobaoLogisticsOrdersDetailGetAPIRequest.go new file mode 100644 index 0000000000..7affeb6535 --- /dev/null +++ b/model/logistic/TaobaoLogisticsOrdersDetailGetAPIRequest.go @@ -0,0 +1,206 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询物流订单,返回详细信息 API请求 +taobao.logistics.orders.detail.get + +查询物流订单的详细信息,涉及用户隐私字段。 +*/ +type TaobaoLogisticsOrdersDetailGetAPIRequest struct { + model.Params + // 需返回的字段列表.可选值:Shipping 物流数据结构中所有字段.fileds中可以指定返回以上任意一个或者多个字段,以","分隔. + _fields string + // 交易ID.如果加入tid参数的话,不用传其他的参数,但是仅会返回一条物流订单信息. + _tid int64 + // 买家昵称 + _buyerNick string + // 物流状态.可查看数据结构 Shipping 中的status字段. + _status string + // 卖家是否发货.可选值:yes(是),no(否).如:yes. + _sellerConfirm string + // 收货人姓名 + _receiverName string + // 创建时间开始.格式:yyyy-MM-dd HH:mm:ss + _startCreated string + // 创建时间结束.格式:yyyy-MM-dd HH:mm:ss + _endCreated string + // 谁承担运费.可选值:buyer(买家),seller(卖家).如:buyer + _freightPayer string + // 物流方式.可选值:post(平邮),express(快递),ems(EMS).如:post + _type string + // 页码.该字段没传 或 值<1 ,则默认page_no为1 + _pageNo int64 + // 每页条数.该字段没传 或 值<1 ,则默认page_size为40 + _pageSize int64 +} + +// 初始化TaobaoLogisticsOrdersDetailGetAPIRequest对象 +func NewTaobaoLogisticsOrdersDetailGetRequest() *TaobaoLogisticsOrdersDetailGetAPIRequest{ + return &TaobaoLogisticsOrdersDetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsOrdersDetailGetAPIRequest) GetApiMethodName() string { + return "taobao.logistics.orders.detail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsOrdersDetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需返回的字段列表.可选值:Shipping 物流数据结构中所有字段.fileds中可以指定返回以上任意一个或者多个字段,以","分隔. +func (r *TaobaoLogisticsOrdersDetailGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoLogisticsOrdersDetailGetAPIRequest) GetFields() string { + return r._fields +} +// Tid Setter +// 交易ID.如果加入tid参数的话,不用传其他的参数,但是仅会返回一条物流订单信息. +func (r *TaobaoLogisticsOrdersDetailGetAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoLogisticsOrdersDetailGetAPIRequest) GetTid() int64 { + return r._tid +} +// BuyerNick Setter +// 买家昵称 +func (r *TaobaoLogisticsOrdersDetailGetAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoLogisticsOrdersDetailGetAPIRequest) GetBuyerNick() string { + return r._buyerNick +} +// Status Setter +// 物流状态.可查看数据结构 Shipping 中的status字段. +func (r *TaobaoLogisticsOrdersDetailGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoLogisticsOrdersDetailGetAPIRequest) GetStatus() string { + return r._status +} +// SellerConfirm Setter +// 卖家是否发货.可选值:yes(是),no(否).如:yes. +func (r *TaobaoLogisticsOrdersDetailGetAPIRequest) SetSellerConfirm(_sellerConfirm string) error { + r._sellerConfirm = _sellerConfirm + r.Set("seller_confirm", _sellerConfirm) + return nil +} + +// SellerConfirm Getter +func (r TaobaoLogisticsOrdersDetailGetAPIRequest) GetSellerConfirm() string { + return r._sellerConfirm +} +// ReceiverName Setter +// 收货人姓名 +func (r *TaobaoLogisticsOrdersDetailGetAPIRequest) SetReceiverName(_receiverName string) error { + r._receiverName = _receiverName + r.Set("receiver_name", _receiverName) + return nil +} + +// ReceiverName Getter +func (r TaobaoLogisticsOrdersDetailGetAPIRequest) GetReceiverName() string { + return r._receiverName +} +// StartCreated Setter +// 创建时间开始.格式:yyyy-MM-dd HH:mm:ss +func (r *TaobaoLogisticsOrdersDetailGetAPIRequest) SetStartCreated(_startCreated string) error { + r._startCreated = _startCreated + r.Set("start_created", _startCreated) + return nil +} + +// StartCreated Getter +func (r TaobaoLogisticsOrdersDetailGetAPIRequest) GetStartCreated() string { + return r._startCreated +} +// EndCreated Setter +// 创建时间结束.格式:yyyy-MM-dd HH:mm:ss +func (r *TaobaoLogisticsOrdersDetailGetAPIRequest) SetEndCreated(_endCreated string) error { + r._endCreated = _endCreated + r.Set("end_created", _endCreated) + return nil +} + +// EndCreated Getter +func (r TaobaoLogisticsOrdersDetailGetAPIRequest) GetEndCreated() string { + return r._endCreated +} +// FreightPayer Setter +// 谁承担运费.可选值:buyer(买家),seller(卖家).如:buyer +func (r *TaobaoLogisticsOrdersDetailGetAPIRequest) SetFreightPayer(_freightPayer string) error { + r._freightPayer = _freightPayer + r.Set("freight_payer", _freightPayer) + return nil +} + +// FreightPayer Getter +func (r TaobaoLogisticsOrdersDetailGetAPIRequest) GetFreightPayer() string { + return r._freightPayer +} +// Type Setter +// 物流方式.可选值:post(平邮),express(快递),ems(EMS).如:post +func (r *TaobaoLogisticsOrdersDetailGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoLogisticsOrdersDetailGetAPIRequest) GetType() string { + return r._type +} +// PageNo Setter +// 页码.该字段没传 或 值<1 ,则默认page_no为1 +func (r *TaobaoLogisticsOrdersDetailGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoLogisticsOrdersDetailGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数.该字段没传 或 值<1 ,则默认page_size为40 +func (r *TaobaoLogisticsOrdersDetailGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoLogisticsOrdersDetailGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/logistic/TaobaoLogisticsOrdersDetailGetAPIResponse.go b/model/logistic/TaobaoLogisticsOrdersDetailGetAPIResponse.go new file mode 100644 index 0000000000..fa3d0d4c2e --- /dev/null +++ b/model/logistic/TaobaoLogisticsOrdersDetailGetAPIResponse.go @@ -0,0 +1,29 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询物流订单,返回详细信息 API返回值 +taobao.logistics.orders.detail.get + +查询物流订单的详细信息,涉及用户隐私字段。 +*/ +type TaobaoLogisticsOrdersDetailGetAPIResponse struct { + model.CommonResponse + TaobaoLogisticsOrdersDetailGetAPIResponseModel +} + +// 批量查询物流订单,返回详细信息 成功返回结果 +type TaobaoLogisticsOrdersDetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_orders_detail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 获取的物流订单详情列表.返回的Shipping包含的具体信息为入参fields请求的字段信息. + Shippings []Shipping `json:"shippings,omitempty" xml:"shippings>shipping,omitempty"` + // 搜索到的物流订单列表总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsOrdersDetailGetResponse.go b/model/logistic/TaobaoLogisticsOrdersDetailGetResponse.go deleted file mode 100644 index eba1d856ae..0000000000 --- a/model/logistic/TaobaoLogisticsOrdersDetailGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量查询物流订单,返回详细信息 API返回值 -taobao.logistics.orders.detail.get - -查询物流订单的详细信息,涉及用户隐私字段。 -*/ -type TaobaoLogisticsOrdersDetailGetAPIResponse struct { - model.CommonResponse - TaobaoLogisticsOrdersDetailGetResponse -} - -// 批量查询物流订单,返回详细信息 成功返回结果 -type TaobaoLogisticsOrdersDetailGetResponse struct { - XMLName xml.Name `xml:"logistics_orders_detail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 获取的物流订单详情列表.返回的Shipping包含的具体信息为入参fields请求的字段信息. - Shippings []Shipping `json:"shippings,omitempty" xml:"shippings>shipping,omitempty"` - // 搜索到的物流订单列表总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsOrdersGetAPIRequest.go b/model/logistic/TaobaoLogisticsOrdersGetAPIRequest.go new file mode 100644 index 0000000000..f83a9c16dd --- /dev/null +++ b/model/logistic/TaobaoLogisticsOrdersGetAPIRequest.go @@ -0,0 +1,206 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询物流订单 API请求 +taobao.logistics.orders.get + +批量查询物流订单。 +*/ +type TaobaoLogisticsOrdersGetAPIRequest struct { + model.Params + // 需返回的字段列表.可选值:Shipping 物流数据结构中的以下字段:

tid,order_code,seller_nick,buyer_nick,delivery_start, delivery_end,out_sid,item_title,receiver_name, created,modified,status,type,freight_payer,seller_confirm,company_name,sub_tids,is_spilt;
多个字段之间用","分隔。如tid,seller_nick,buyer_nick,delivery_start。 + _fields string + // 交易ID.如果加入tid参数的话,不用传其他的参数,若传入tid:非拆单场景,仅会返回一条物流订单信息;拆单场景,会返回多条物流订单信息 + _tid int64 + // 买家昵称 + _buyerNick string + // 物流状态.查看数据结构 Shipping 中的status字段. + _status string + // 卖家是否发货.可选值:yes(是),no(否).如:yes + _sellerConfirm string + // 收货人姓名 + _receiverName string + // 创建时间开始 + _startCreated string + // 创建时间结束 + _endCreated string + // 谁承担运费.可选值:buyer(买家),seller(卖家).如:buyer + _freightPayer string + // 物流方式.可选值:post(平邮),express(快递),ems(EMS).如:post + _type string + // 页码.该字段没传 或 值<1 ,则默认page_no为1 + _pageNo int64 + // 每页条数.该字段没传 或 值<1 ,则默认page_size为40 + _pageSize int64 +} + +// 初始化TaobaoLogisticsOrdersGetAPIRequest对象 +func NewTaobaoLogisticsOrdersGetRequest() *TaobaoLogisticsOrdersGetAPIRequest{ + return &TaobaoLogisticsOrdersGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsOrdersGetAPIRequest) GetApiMethodName() string { + return "taobao.logistics.orders.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsOrdersGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需返回的字段列表.可选值:Shipping 物流数据结构中的以下字段:

tid,order_code,seller_nick,buyer_nick,delivery_start, delivery_end,out_sid,item_title,receiver_name, created,modified,status,type,freight_payer,seller_confirm,company_name,sub_tids,is_spilt;
多个字段之间用","分隔。如tid,seller_nick,buyer_nick,delivery_start。 +func (r *TaobaoLogisticsOrdersGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoLogisticsOrdersGetAPIRequest) GetFields() string { + return r._fields +} +// Tid Setter +// 交易ID.如果加入tid参数的话,不用传其他的参数,若传入tid:非拆单场景,仅会返回一条物流订单信息;拆单场景,会返回多条物流订单信息 +func (r *TaobaoLogisticsOrdersGetAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoLogisticsOrdersGetAPIRequest) GetTid() int64 { + return r._tid +} +// BuyerNick Setter +// 买家昵称 +func (r *TaobaoLogisticsOrdersGetAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoLogisticsOrdersGetAPIRequest) GetBuyerNick() string { + return r._buyerNick +} +// Status Setter +// 物流状态.查看数据结构 Shipping 中的status字段. +func (r *TaobaoLogisticsOrdersGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoLogisticsOrdersGetAPIRequest) GetStatus() string { + return r._status +} +// SellerConfirm Setter +// 卖家是否发货.可选值:yes(是),no(否).如:yes +func (r *TaobaoLogisticsOrdersGetAPIRequest) SetSellerConfirm(_sellerConfirm string) error { + r._sellerConfirm = _sellerConfirm + r.Set("seller_confirm", _sellerConfirm) + return nil +} + +// SellerConfirm Getter +func (r TaobaoLogisticsOrdersGetAPIRequest) GetSellerConfirm() string { + return r._sellerConfirm +} +// ReceiverName Setter +// 收货人姓名 +func (r *TaobaoLogisticsOrdersGetAPIRequest) SetReceiverName(_receiverName string) error { + r._receiverName = _receiverName + r.Set("receiver_name", _receiverName) + return nil +} + +// ReceiverName Getter +func (r TaobaoLogisticsOrdersGetAPIRequest) GetReceiverName() string { + return r._receiverName +} +// StartCreated Setter +// 创建时间开始 +func (r *TaobaoLogisticsOrdersGetAPIRequest) SetStartCreated(_startCreated string) error { + r._startCreated = _startCreated + r.Set("start_created", _startCreated) + return nil +} + +// StartCreated Getter +func (r TaobaoLogisticsOrdersGetAPIRequest) GetStartCreated() string { + return r._startCreated +} +// EndCreated Setter +// 创建时间结束 +func (r *TaobaoLogisticsOrdersGetAPIRequest) SetEndCreated(_endCreated string) error { + r._endCreated = _endCreated + r.Set("end_created", _endCreated) + return nil +} + +// EndCreated Getter +func (r TaobaoLogisticsOrdersGetAPIRequest) GetEndCreated() string { + return r._endCreated +} +// FreightPayer Setter +// 谁承担运费.可选值:buyer(买家),seller(卖家).如:buyer +func (r *TaobaoLogisticsOrdersGetAPIRequest) SetFreightPayer(_freightPayer string) error { + r._freightPayer = _freightPayer + r.Set("freight_payer", _freightPayer) + return nil +} + +// FreightPayer Getter +func (r TaobaoLogisticsOrdersGetAPIRequest) GetFreightPayer() string { + return r._freightPayer +} +// Type Setter +// 物流方式.可选值:post(平邮),express(快递),ems(EMS).如:post +func (r *TaobaoLogisticsOrdersGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoLogisticsOrdersGetAPIRequest) GetType() string { + return r._type +} +// PageNo Setter +// 页码.该字段没传 或 值<1 ,则默认page_no为1 +func (r *TaobaoLogisticsOrdersGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoLogisticsOrdersGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数.该字段没传 或 值<1 ,则默认page_size为40 +func (r *TaobaoLogisticsOrdersGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoLogisticsOrdersGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/logistic/TaobaoLogisticsOrdersGetAPIResponse.go b/model/logistic/TaobaoLogisticsOrdersGetAPIResponse.go new file mode 100644 index 0000000000..67c9196481 --- /dev/null +++ b/model/logistic/TaobaoLogisticsOrdersGetAPIResponse.go @@ -0,0 +1,29 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询物流订单 API返回值 +taobao.logistics.orders.get + +批量查询物流订单。 +*/ +type TaobaoLogisticsOrdersGetAPIResponse struct { + model.CommonResponse + TaobaoLogisticsOrdersGetAPIResponseModel +} + +// 批量查询物流订单 成功返回结果 +type TaobaoLogisticsOrdersGetAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_orders_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 获取的物流订单详情列表
返回的Shipping包含的具体信息为入参fields请求的字段信息 + Shippings []Shipping `json:"shippings,omitempty" xml:"shippings>shipping,omitempty"` + // 搜索到的物流订单列表总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsOrdersGetResponse.go b/model/logistic/TaobaoLogisticsOrdersGetResponse.go deleted file mode 100644 index d336d47019..0000000000 --- a/model/logistic/TaobaoLogisticsOrdersGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量查询物流订单 API返回值 -taobao.logistics.orders.get - -批量查询物流订单。 -*/ -type TaobaoLogisticsOrdersGetAPIResponse struct { - model.CommonResponse - TaobaoLogisticsOrdersGetResponse -} - -// 批量查询物流订单 成功返回结果 -type TaobaoLogisticsOrdersGetResponse struct { - XMLName xml.Name `xml:"logistics_orders_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 获取的物流订单详情列表
返回的Shipping包含的具体信息为入参fields请求的字段信息 - Shippings []Shipping `json:"shippings,omitempty" xml:"shippings>shipping,omitempty"` - // 搜索到的物流订单列表总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsPartnersGetAPIRequest.go b/model/logistic/TaobaoLogisticsPartnersGetAPIRequest.go new file mode 100644 index 0000000000..921b4b40f3 --- /dev/null +++ b/model/logistic/TaobaoLogisticsPartnersGetAPIRequest.go @@ -0,0 +1,108 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询支持起始地到目的地范围的物流公司 API请求 +taobao.logistics.partners.get + +查询物流公司信息(可以查询目的地可不可达情况) +*/ +type TaobaoLogisticsPartnersGetAPIRequest struct { + model.Params + // 物流公司揽货地地区码(必须是区、县一级的).参考:http://www.stats.gov.cn/tjsj/tjbz/xzqhdm/201401/t20140116_501070.html或者调用 taobao.areas.get 获取 + _sourceId string + // 物流公司派送地地区码(必须是区、县一级的).参考:http://www.stats.gov.cn/tjsj/tjbz/xzqhdm/201401/t20140116_501070.html或者调用 taobao.areas.get 获取 + _targetId string + // 服务类型,根据此参数可查出提供相应服务类型的物流公司信息(物流公司状态正常),可选值:cod(货到付款)、online(在线下单)、 offline(自己联系)、limit(限时物流)。然后再根据source_id,target_id,goods_value这三个条件来过滤物流公司. 目前输入自己联系服务类型将会返回空,因为自己联系并没有具体的服务信息,所以不会有记录。 + _serviceType string + // 货物价格.只有当选择货到付款此参数才会有效 + _goodsValue string + // 是否需要揽收资费信息,默认false。在此值为false时,返回内容中将无carriage。在未设置source_id或target_id的情况下,无法查询揽收资费信息。自己联系无揽收资费记录。 + _isNeedCarriage bool +} + +// 初始化TaobaoLogisticsPartnersGetAPIRequest对象 +func NewTaobaoLogisticsPartnersGetRequest() *TaobaoLogisticsPartnersGetAPIRequest{ + return &TaobaoLogisticsPartnersGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsPartnersGetAPIRequest) GetApiMethodName() string { + return "taobao.logistics.partners.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsPartnersGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SourceId Setter +// 物流公司揽货地地区码(必须是区、县一级的).参考:http://www.stats.gov.cn/tjsj/tjbz/xzqhdm/201401/t20140116_501070.html或者调用 taobao.areas.get 获取 +func (r *TaobaoLogisticsPartnersGetAPIRequest) SetSourceId(_sourceId string) error { + r._sourceId = _sourceId + r.Set("source_id", _sourceId) + return nil +} + +// SourceId Getter +func (r TaobaoLogisticsPartnersGetAPIRequest) GetSourceId() string { + return r._sourceId +} +// TargetId Setter +// 物流公司派送地地区码(必须是区、县一级的).参考:http://www.stats.gov.cn/tjsj/tjbz/xzqhdm/201401/t20140116_501070.html或者调用 taobao.areas.get 获取 +func (r *TaobaoLogisticsPartnersGetAPIRequest) SetTargetId(_targetId string) error { + r._targetId = _targetId + r.Set("target_id", _targetId) + return nil +} + +// TargetId Getter +func (r TaobaoLogisticsPartnersGetAPIRequest) GetTargetId() string { + return r._targetId +} +// ServiceType Setter +// 服务类型,根据此参数可查出提供相应服务类型的物流公司信息(物流公司状态正常),可选值:cod(货到付款)、online(在线下单)、 offline(自己联系)、limit(限时物流)。然后再根据source_id,target_id,goods_value这三个条件来过滤物流公司. 目前输入自己联系服务类型将会返回空,因为自己联系并没有具体的服务信息,所以不会有记录。 +func (r *TaobaoLogisticsPartnersGetAPIRequest) SetServiceType(_serviceType string) error { + r._serviceType = _serviceType + r.Set("service_type", _serviceType) + return nil +} + +// ServiceType Getter +func (r TaobaoLogisticsPartnersGetAPIRequest) GetServiceType() string { + return r._serviceType +} +// GoodsValue Setter +// 货物价格.只有当选择货到付款此参数才会有效 +func (r *TaobaoLogisticsPartnersGetAPIRequest) SetGoodsValue(_goodsValue string) error { + r._goodsValue = _goodsValue + r.Set("goods_value", _goodsValue) + return nil +} + +// GoodsValue Getter +func (r TaobaoLogisticsPartnersGetAPIRequest) GetGoodsValue() string { + return r._goodsValue +} +// IsNeedCarriage Setter +// 是否需要揽收资费信息,默认false。在此值为false时,返回内容中将无carriage。在未设置source_id或target_id的情况下,无法查询揽收资费信息。自己联系无揽收资费记录。 +func (r *TaobaoLogisticsPartnersGetAPIRequest) SetIsNeedCarriage(_isNeedCarriage bool) error { + r._isNeedCarriage = _isNeedCarriage + r.Set("is_need_carriage", _isNeedCarriage) + return nil +} + +// IsNeedCarriage Getter +func (r TaobaoLogisticsPartnersGetAPIRequest) GetIsNeedCarriage() bool { + return r._isNeedCarriage +} diff --git a/model/logistic/TaobaoLogisticsPartnersGetAPIResponse.go b/model/logistic/TaobaoLogisticsPartnersGetAPIResponse.go new file mode 100644 index 0000000000..57d88d9baa --- /dev/null +++ b/model/logistic/TaobaoLogisticsPartnersGetAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询支持起始地到目的地范围的物流公司 API返回值 +taobao.logistics.partners.get + +查询物流公司信息(可以查询目的地可不可达情况) +*/ +type TaobaoLogisticsPartnersGetAPIResponse struct { + model.CommonResponse + TaobaoLogisticsPartnersGetAPIResponseModel +} + +// 查询支持起始地到目的地范围的物流公司 成功返回结果 +type TaobaoLogisticsPartnersGetAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_partners_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询揽送范围之内的物流公司信息 + LogisticsPartners []LogisticsPartner `json:"logistics_partners,omitempty" xml:"logistics_partners>logistics_partner,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsPartnersGetResponse.go b/model/logistic/TaobaoLogisticsPartnersGetResponse.go deleted file mode 100644 index eeab92a739..0000000000 --- a/model/logistic/TaobaoLogisticsPartnersGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询支持起始地到目的地范围的物流公司 API返回值 -taobao.logistics.partners.get - -查询物流公司信息(可以查询目的地可不可达情况) -*/ -type TaobaoLogisticsPartnersGetAPIResponse struct { - model.CommonResponse - TaobaoLogisticsPartnersGetResponse -} - -// 查询支持起始地到目的地范围的物流公司 成功返回结果 -type TaobaoLogisticsPartnersGetResponse struct { - XMLName xml.Name `xml:"logistics_partners_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询揽送范围之内的物流公司信息 - LogisticsPartners []LogisticsPartner `json:"logistics_partners,omitempty" xml:"logistics_partners>logistics_partner,omitempty"` -} diff --git a/model/logistic/TaobaoLogisticsTraceSearchAPIRequest.go b/model/logistic/TaobaoLogisticsTraceSearchAPIRequest.go new file mode 100644 index 0000000000..0acde12f47 --- /dev/null +++ b/model/logistic/TaobaoLogisticsTraceSearchAPIRequest.go @@ -0,0 +1,80 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物流流转信息查询 API请求 +taobao.logistics.trace.search + +用户根据淘宝交易号查询物流流转信息,如2010-8-10 15:23:00到达杭州集散地。
此接口的返回信息都由物流公司提供。(备注:使用线下发货(offline.send)的运单,不支持运单状态的实时跟踪,只要一发货,状态就会变为对方已签收,该字段仅对线上发货(online.send)的运单有效。) +*/ +type TaobaoLogisticsTraceSearchAPIRequest struct { + model.Params + // 淘宝交易号,请勿传非淘宝交易号 + _tid int64 + // 表明是否是拆单,默认值0,1表示拆单 + _isSplit int64 + // 拆单子订单列表,当is_split=1时,需要传人;对应的数据是:子订单号的列表。 + _subTid []int64 +} + +// 初始化TaobaoLogisticsTraceSearchAPIRequest对象 +func NewTaobaoLogisticsTraceSearchRequest() *TaobaoLogisticsTraceSearchAPIRequest{ + return &TaobaoLogisticsTraceSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLogisticsTraceSearchAPIRequest) GetApiMethodName() string { + return "taobao.logistics.trace.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLogisticsTraceSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 淘宝交易号,请勿传非淘宝交易号 +func (r *TaobaoLogisticsTraceSearchAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoLogisticsTraceSearchAPIRequest) GetTid() int64 { + return r._tid +} +// IsSplit Setter +// 表明是否是拆单,默认值0,1表示拆单 +func (r *TaobaoLogisticsTraceSearchAPIRequest) SetIsSplit(_isSplit int64) error { + r._isSplit = _isSplit + r.Set("is_split", _isSplit) + return nil +} + +// IsSplit Getter +func (r TaobaoLogisticsTraceSearchAPIRequest) GetIsSplit() int64 { + return r._isSplit +} +// SubTid Setter +// 拆单子订单列表,当is_split=1时,需要传人;对应的数据是:子订单号的列表。 +func (r *TaobaoLogisticsTraceSearchAPIRequest) SetSubTid(_subTid []int64) error { + r._subTid = _subTid + r.Set("sub_tid", _subTid) + return nil +} + +// SubTid Getter +func (r TaobaoLogisticsTraceSearchAPIRequest) GetSubTid() []int64 { + return r._subTid +} diff --git a/model/logistic/TaobaoLogisticsTraceSearchAPIResponse.go b/model/logistic/TaobaoLogisticsTraceSearchAPIResponse.go new file mode 100644 index 0000000000..1d95992b4f --- /dev/null +++ b/model/logistic/TaobaoLogisticsTraceSearchAPIResponse.go @@ -0,0 +1,35 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物流流转信息查询 API返回值 +taobao.logistics.trace.search + +用户根据淘宝交易号查询物流流转信息,如2010-8-10 15:23:00到达杭州集散地。
此接口的返回信息都由物流公司提供。(备注:使用线下发货(offline.send)的运单,不支持运单状态的实时跟踪,只要一发货,状态就会变为对方已签收,该字段仅对线上发货(online.send)的运单有效。) +*/ +type TaobaoLogisticsTraceSearchAPIResponse struct { + model.CommonResponse + TaobaoLogisticsTraceSearchAPIResponseModel +} + +// 物流流转信息查询 成功返回结果 +type TaobaoLogisticsTraceSearchAPIResponseModel struct { + XMLName xml.Name `xml:"logistics_trace_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 运单号 + OutSid string `json:"out_sid,omitempty" xml:"out_sid,omitempty"` + // 物流公司名称 + CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"` + // 交易号 + Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"` + // 订单的物流状态(仅支持线上发货online订单,线下发货offline发出后直接变为已签收)* 等候发送给物流公司*已提交给物流公司,等待物流公司接单*已经确认消息接收,等待物流公司接单*物流公司已接单*物流公司不接单*物流公司揽收失败*物流公司揽收成功*签收失败*对方已签收*对方拒绝签收 + Status string `json:"status,omitempty" xml:"status,omitempty"` + // 流转信息列表 + TraceList []TransitStepInfo `json:"trace_list,omitempty" xml:"trace_list>transit_step_info,omitempty"` +} diff --git a/model/logistic/TaobaoLogisticsTraceSearchResponse.go b/model/logistic/TaobaoLogisticsTraceSearchResponse.go deleted file mode 100644 index 06e008d41c..0000000000 --- a/model/logistic/TaobaoLogisticsTraceSearchResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物流流转信息查询 API返回值 -taobao.logistics.trace.search - -用户根据淘宝交易号查询物流流转信息,如2010-8-10 15:23:00到达杭州集散地。
此接口的返回信息都由物流公司提供。(备注:使用线下发货(offline.send)的运单,不支持运单状态的实时跟踪,只要一发货,状态就会变为对方已签收,该字段仅对线上发货(online.send)的运单有效。) -*/ -type TaobaoLogisticsTraceSearchAPIResponse struct { - model.CommonResponse - TaobaoLogisticsTraceSearchResponse -} - -// 物流流转信息查询 成功返回结果 -type TaobaoLogisticsTraceSearchResponse struct { - XMLName xml.Name `xml:"logistics_trace_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 运单号 - OutSid string `json:"out_sid,omitempty" xml:"out_sid,omitempty"` - // 物流公司名称 - CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"` - // 交易号 - Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"` - // 订单的物流状态(仅支持线上发货online订单,线下发货offline发出后直接变为已签收)* 等候发送给物流公司*已提交给物流公司,等待物流公司接单*已经确认消息接收,等待物流公司接单*物流公司已接单*物流公司不接单*物流公司揽收失败*物流公司揽收成功*签收失败*对方已签收*对方拒绝签收 - Status string `json:"status,omitempty" xml:"status,omitempty"` - // 流转信息列表 - TraceList []TransitStepInfo `json:"trace_list,omitempty" xml:"trace_list>transit_step_info,omitempty"` -} diff --git a/model/logistic/TaobaoNextoneLogisticsSignUpdateAPIRequest.go b/model/logistic/TaobaoNextoneLogisticsSignUpdateAPIRequest.go new file mode 100644 index 0000000000..c043c3ed48 --- /dev/null +++ b/model/logistic/TaobaoNextoneLogisticsSignUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AG物流签收状态写接口 API请求 +taobao.nextone.logistics.sign.update + +商家上传退货的签收状态给AG +*/ +type TaobaoNextoneLogisticsSignUpdateAPIRequest struct { + model.Params + // 退款编号 + _refundId int64 + // 货物签收状态 + _signStatus int64 +} + +// 初始化TaobaoNextoneLogisticsSignUpdateAPIRequest对象 +func NewTaobaoNextoneLogisticsSignUpdateRequest() *TaobaoNextoneLogisticsSignUpdateAPIRequest{ + return &TaobaoNextoneLogisticsSignUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoNextoneLogisticsSignUpdateAPIRequest) GetApiMethodName() string { + return "taobao.nextone.logistics.sign.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoNextoneLogisticsSignUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundId Setter +// 退款编号 +func (r *TaobaoNextoneLogisticsSignUpdateAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoNextoneLogisticsSignUpdateAPIRequest) GetRefundId() int64 { + return r._refundId +} +// SignStatus Setter +// 货物签收状态 +func (r *TaobaoNextoneLogisticsSignUpdateAPIRequest) SetSignStatus(_signStatus int64) error { + r._signStatus = _signStatus + r.Set("sign_status", _signStatus) + return nil +} + +// SignStatus Getter +func (r TaobaoNextoneLogisticsSignUpdateAPIRequest) GetSignStatus() int64 { + return r._signStatus +} diff --git a/model/logistic/TaobaoNextoneLogisticsSignUpdateAPIResponse.go b/model/logistic/TaobaoNextoneLogisticsSignUpdateAPIResponse.go new file mode 100644 index 0000000000..183ddf5c60 --- /dev/null +++ b/model/logistic/TaobaoNextoneLogisticsSignUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AG物流签收状态写接口 API返回值 +taobao.nextone.logistics.sign.update + +商家上传退货的签收状态给AG +*/ +type TaobaoNextoneLogisticsSignUpdateAPIResponse struct { + model.CommonResponse + TaobaoNextoneLogisticsSignUpdateAPIResponseModel +} + +// AG物流签收状态写接口 成功返回结果 +type TaobaoNextoneLogisticsSignUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"nextone_logistics_sign_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TaobaoNextoneLogisticsSignUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/logistic/TaobaoNextoneLogisticsSignUpdateResponse.go b/model/logistic/TaobaoNextoneLogisticsSignUpdateResponse.go deleted file mode 100644 index b28d4bf039..0000000000 --- a/model/logistic/TaobaoNextoneLogisticsSignUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AG物流签收状态写接口 API返回值 -taobao.nextone.logistics.sign.update - -商家上传退货的签收状态给AG -*/ -type TaobaoNextoneLogisticsSignUpdateAPIResponse struct { - model.CommonResponse - TaobaoNextoneLogisticsSignUpdateResponse -} - -// AG物流签收状态写接口 成功返回结果 -type TaobaoNextoneLogisticsSignUpdateResponse struct { - XMLName xml.Name `xml:"nextone_logistics_sign_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TaobaoNextoneLogisticsSignUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/logistic/TaobaoNextoneLogisticsWarehouseUpdateAPIRequest.go b/model/logistic/TaobaoNextoneLogisticsWarehouseUpdateAPIRequest.go new file mode 100644 index 0000000000..c5bf1a608a --- /dev/null +++ b/model/logistic/TaobaoNextoneLogisticsWarehouseUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AG退货入仓状态写接口 API请求 +taobao.nextone.logistics.warehouse.update + +商家上传退货入仓状态给ag +*/ +type TaobaoNextoneLogisticsWarehouseUpdateAPIRequest struct { + model.Params + // 退款编号 + _refundId int64 + // 退货入仓状态 1.已入仓 + _warehouseStatus int64 +} + +// 初始化TaobaoNextoneLogisticsWarehouseUpdateAPIRequest对象 +func NewTaobaoNextoneLogisticsWarehouseUpdateRequest() *TaobaoNextoneLogisticsWarehouseUpdateAPIRequest{ + return &TaobaoNextoneLogisticsWarehouseUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoNextoneLogisticsWarehouseUpdateAPIRequest) GetApiMethodName() string { + return "taobao.nextone.logistics.warehouse.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoNextoneLogisticsWarehouseUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundId Setter +// 退款编号 +func (r *TaobaoNextoneLogisticsWarehouseUpdateAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoNextoneLogisticsWarehouseUpdateAPIRequest) GetRefundId() int64 { + return r._refundId +} +// WarehouseStatus Setter +// 退货入仓状态 1.已入仓 +func (r *TaobaoNextoneLogisticsWarehouseUpdateAPIRequest) SetWarehouseStatus(_warehouseStatus int64) error { + r._warehouseStatus = _warehouseStatus + r.Set("warehouse_status", _warehouseStatus) + return nil +} + +// WarehouseStatus Getter +func (r TaobaoNextoneLogisticsWarehouseUpdateAPIRequest) GetWarehouseStatus() int64 { + return r._warehouseStatus +} diff --git a/model/logistic/TaobaoNextoneLogisticsWarehouseUpdateAPIResponse.go b/model/logistic/TaobaoNextoneLogisticsWarehouseUpdateAPIResponse.go new file mode 100644 index 0000000000..6a55fd8009 --- /dev/null +++ b/model/logistic/TaobaoNextoneLogisticsWarehouseUpdateAPIResponse.go @@ -0,0 +1,33 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AG退货入仓状态写接口 API返回值 +taobao.nextone.logistics.warehouse.update + +商家上传退货入仓状态给ag +*/ +type TaobaoNextoneLogisticsWarehouseUpdateAPIResponse struct { + model.CommonResponse + TaobaoNextoneLogisticsWarehouseUpdateAPIResponseModel +} + +// AG退货入仓状态写接口 成功返回结果 +type TaobaoNextoneLogisticsWarehouseUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"nextone_logistics_warehouse_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // resultData + ResultData string `json:"result_data,omitempty" xml:"result_data,omitempty"` + // errorInfo + ErrInfo string `json:"err_info,omitempty" xml:"err_info,omitempty"` + // errorCode + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` + // success + Succeed bool `json:"succeed,omitempty" xml:"succeed,omitempty"` +} diff --git a/model/logistic/TaobaoNextoneLogisticsWarehouseUpdateResponse.go b/model/logistic/TaobaoNextoneLogisticsWarehouseUpdateResponse.go deleted file mode 100644 index 64e77b504a..0000000000 --- a/model/logistic/TaobaoNextoneLogisticsWarehouseUpdateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AG退货入仓状态写接口 API返回值 -taobao.nextone.logistics.warehouse.update - -商家上传退货入仓状态给ag -*/ -type TaobaoNextoneLogisticsWarehouseUpdateAPIResponse struct { - model.CommonResponse - TaobaoNextoneLogisticsWarehouseUpdateResponse -} - -// AG退货入仓状态写接口 成功返回结果 -type TaobaoNextoneLogisticsWarehouseUpdateResponse struct { - XMLName xml.Name `xml:"nextone_logistics_warehouse_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // resultData - ResultData string `json:"result_data,omitempty" xml:"result_data,omitempty"` - // errorInfo - ErrInfo string `json:"err_info,omitempty" xml:"err_info,omitempty"` - // errorCode - ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` - // success - Succeed bool `json:"succeed,omitempty" xml:"succeed,omitempty"` -} diff --git a/model/logistic/TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIRequest.go b/model/logistic/TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIRequest.go new file mode 100644 index 0000000000..5126540a44 --- /dev/null +++ b/model/logistic/TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +补发单物流信息回传 API请求 +taobao.rdc.aligenius.warehouse.resend.logistics.msg.post + +补发单erp物流信息回传平台 +*/ +type TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIRequest struct { + model.Params + // 参数 + _param0 *SendResendLogisticsMsgDto +} + +// 初始化TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIRequest对象 +func NewTaobaoRdcAligeniusWarehouseResendLogisticsMsgPostRequest() *TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIRequest{ + return &TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIRequest) GetApiMethodName() string { + return "taobao.rdc.aligenius.warehouse.resend.logistics.msg.post" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 参数 +func (r *TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIRequest) SetParam0(_param0 *SendResendLogisticsMsgDto) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIRequest) GetParam0() *SendResendLogisticsMsgDto { + return r._param0 +} diff --git a/model/logistic/TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIResponse.go b/model/logistic/TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIResponse.go new file mode 100644 index 0000000000..40f7b44ef0 --- /dev/null +++ b/model/logistic/TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +补发单物流信息回传 API返回值 +taobao.rdc.aligenius.warehouse.resend.logistics.msg.post + +补发单erp物流信息回传平台 +*/ +type TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIResponse struct { + model.CommonResponse + TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIResponseModel +} + +// 补发单物流信息回传 成功返回结果 +type TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIResponseModel struct { + XMLName xml.Name `xml:"rdc_aligenius_warehouse_resend_logistics_msg_post_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/logistic/TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostResponse.go b/model/logistic/TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostResponse.go deleted file mode 100644 index d771846698..0000000000 --- a/model/logistic/TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -补发单物流信息回传 API返回值 -taobao.rdc.aligenius.warehouse.resend.logistics.msg.post - -补发单erp物流信息回传平台 -*/ -type TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostAPIResponse struct { - model.CommonResponse - TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostResponse -} - -// 补发单物流信息回传 成功返回结果 -type TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostResponse struct { - XMLName xml.Name `xml:"rdc_aligenius_warehouse_resend_logistics_msg_post_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoRdcAligeniusWarehouseResendLogisticsMsgPostResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/logistic/TaobaoRdcAligeniusWarehouseResendUpdateAPIRequest.go b/model/logistic/TaobaoRdcAligeniusWarehouseResendUpdateAPIRequest.go new file mode 100644 index 0000000000..d1d2433530 --- /dev/null +++ b/model/logistic/TaobaoRdcAligeniusWarehouseResendUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +补发单状态回传 API请求 +taobao.rdc.aligenius.warehouse.resend.update + +补发单状态回传接口 +*/ +type TaobaoRdcAligeniusWarehouseResendUpdateAPIRequest struct { + model.Params + // 参数 + _param0 *UpdateResendStatusDto +} + +// 初始化TaobaoRdcAligeniusWarehouseResendUpdateAPIRequest对象 +func NewTaobaoRdcAligeniusWarehouseResendUpdateRequest() *TaobaoRdcAligeniusWarehouseResendUpdateAPIRequest{ + return &TaobaoRdcAligeniusWarehouseResendUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRdcAligeniusWarehouseResendUpdateAPIRequest) GetApiMethodName() string { + return "taobao.rdc.aligenius.warehouse.resend.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRdcAligeniusWarehouseResendUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 参数 +func (r *TaobaoRdcAligeniusWarehouseResendUpdateAPIRequest) SetParam0(_param0 *UpdateResendStatusDto) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoRdcAligeniusWarehouseResendUpdateAPIRequest) GetParam0() *UpdateResendStatusDto { + return r._param0 +} diff --git a/model/logistic/TaobaoRdcAligeniusWarehouseResendUpdateAPIResponse.go b/model/logistic/TaobaoRdcAligeniusWarehouseResendUpdateAPIResponse.go new file mode 100644 index 0000000000..f3e803aafb --- /dev/null +++ b/model/logistic/TaobaoRdcAligeniusWarehouseResendUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +补发单状态回传 API返回值 +taobao.rdc.aligenius.warehouse.resend.update + +补发单状态回传接口 +*/ +type TaobaoRdcAligeniusWarehouseResendUpdateAPIResponse struct { + model.CommonResponse + TaobaoRdcAligeniusWarehouseResendUpdateAPIResponseModel +} + +// 补发单状态回传 成功返回结果 +type TaobaoRdcAligeniusWarehouseResendUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"rdc_aligenius_warehouse_resend_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoRdcAligeniusWarehouseResendUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/logistic/TaobaoRdcAligeniusWarehouseResendUpdateResponse.go b/model/logistic/TaobaoRdcAligeniusWarehouseResendUpdateResponse.go deleted file mode 100644 index ce1b321515..0000000000 --- a/model/logistic/TaobaoRdcAligeniusWarehouseResendUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -补发单状态回传 API返回值 -taobao.rdc.aligenius.warehouse.resend.update - -补发单状态回传接口 -*/ -type TaobaoRdcAligeniusWarehouseResendUpdateAPIResponse struct { - model.CommonResponse - TaobaoRdcAligeniusWarehouseResendUpdateResponse -} - -// 补发单状态回传 成功返回结果 -type TaobaoRdcAligeniusWarehouseResendUpdateResponse struct { - XMLName xml.Name `xml:"rdc_aligenius_warehouse_resend_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoRdcAligeniusWarehouseResendUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/logistic/TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIRequest.go b/model/logistic/TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIRequest.go new file mode 100644 index 0000000000..e34b5c9826 --- /dev/null +++ b/model/logistic/TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销退单事件回传接口 API请求 +taobao.rdc.aligenius.warehouse.reverse.event.update + +用于erp回传销退单相关信息到平台 +*/ +type TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIRequest struct { + model.Params + // 参数 + _param0 *ReverseEventInfoDto +} + +// 初始化TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIRequest对象 +func NewTaobaoRdcAligeniusWarehouseReverseEventUpdateRequest() *TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIRequest{ + return &TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIRequest) GetApiMethodName() string { + return "taobao.rdc.aligenius.warehouse.reverse.event.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 参数 +func (r *TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIRequest) SetParam0(_param0 *ReverseEventInfoDto) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIRequest) GetParam0() *ReverseEventInfoDto { + return r._param0 +} diff --git a/model/logistic/TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIResponse.go b/model/logistic/TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIResponse.go new file mode 100644 index 0000000000..c72c5db3c1 --- /dev/null +++ b/model/logistic/TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销退单事件回传接口 API返回值 +taobao.rdc.aligenius.warehouse.reverse.event.update + +用于erp回传销退单相关信息到平台 +*/ +type TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIResponse struct { + model.CommonResponse + TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIResponseModel +} + +// 销退单事件回传接口 成功返回结果 +type TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"rdc_aligenius_warehouse_reverse_event_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoRdcAligeniusWarehouseReverseEventUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/logistic/TaobaoRdcAligeniusWarehouseReverseEventUpdateResponse.go b/model/logistic/TaobaoRdcAligeniusWarehouseReverseEventUpdateResponse.go deleted file mode 100644 index 713ef97ffd..0000000000 --- a/model/logistic/TaobaoRdcAligeniusWarehouseReverseEventUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销退单事件回传接口 API返回值 -taobao.rdc.aligenius.warehouse.reverse.event.update - -用于erp回传销退单相关信息到平台 -*/ -type TaobaoRdcAligeniusWarehouseReverseEventUpdateAPIResponse struct { - model.CommonResponse - TaobaoRdcAligeniusWarehouseReverseEventUpdateResponse -} - -// 销退单事件回传接口 成功返回结果 -type TaobaoRdcAligeniusWarehouseReverseEventUpdateResponse struct { - XMLName xml.Name `xml:"rdc_aligenius_warehouse_reverse_event_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoRdcAligeniusWarehouseReverseEventUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/logistic/TaobaoRdcAligeniusWarehouseReverseUploadingAPIRequest.go b/model/logistic/TaobaoRdcAligeniusWarehouseReverseUploadingAPIRequest.go new file mode 100644 index 0000000000..74f27cb2c7 --- /dev/null +++ b/model/logistic/TaobaoRdcAligeniusWarehouseReverseUploadingAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销退单上传 API请求 +taobao.rdc.aligenius.warehouse.reverse.uploading + +主要用于商家上传仓库销退单信息 +*/ +type TaobaoRdcAligeniusWarehouseReverseUploadingAPIRequest struct { + model.Params + // 参数 + _param0 *WarehouseReverseUploadingDto +} + +// 初始化TaobaoRdcAligeniusWarehouseReverseUploadingAPIRequest对象 +func NewTaobaoRdcAligeniusWarehouseReverseUploadingRequest() *TaobaoRdcAligeniusWarehouseReverseUploadingAPIRequest{ + return &TaobaoRdcAligeniusWarehouseReverseUploadingAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRdcAligeniusWarehouseReverseUploadingAPIRequest) GetApiMethodName() string { + return "taobao.rdc.aligenius.warehouse.reverse.uploading" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRdcAligeniusWarehouseReverseUploadingAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 参数 +func (r *TaobaoRdcAligeniusWarehouseReverseUploadingAPIRequest) SetParam0(_param0 *WarehouseReverseUploadingDto) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoRdcAligeniusWarehouseReverseUploadingAPIRequest) GetParam0() *WarehouseReverseUploadingDto { + return r._param0 +} diff --git a/model/logistic/TaobaoRdcAligeniusWarehouseReverseUploadingAPIResponse.go b/model/logistic/TaobaoRdcAligeniusWarehouseReverseUploadingAPIResponse.go new file mode 100644 index 0000000000..78b33e9270 --- /dev/null +++ b/model/logistic/TaobaoRdcAligeniusWarehouseReverseUploadingAPIResponse.go @@ -0,0 +1,31 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销退单上传 API返回值 +taobao.rdc.aligenius.warehouse.reverse.uploading + +主要用于商家上传仓库销退单信息 +*/ +type TaobaoRdcAligeniusWarehouseReverseUploadingAPIResponse struct { + model.CommonResponse + TaobaoRdcAligeniusWarehouseReverseUploadingAPIResponseModel +} + +// 销退单上传 成功返回结果 +type TaobaoRdcAligeniusWarehouseReverseUploadingAPIResponseModel struct { + XMLName xml.Name `xml:"rdc_aligenius_warehouse_reverse_uploading_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误描述 + FailInfo string `json:"fail_info,omitempty" xml:"fail_info,omitempty"` + // 错误码 + FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"` + // 是否成功 + SuccessFlag bool `json:"success_flag,omitempty" xml:"success_flag,omitempty"` +} diff --git a/model/logistic/TaobaoRdcAligeniusWarehouseReverseUploadingResponse.go b/model/logistic/TaobaoRdcAligeniusWarehouseReverseUploadingResponse.go deleted file mode 100644 index 240e1d7c76..0000000000 --- a/model/logistic/TaobaoRdcAligeniusWarehouseReverseUploadingResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销退单上传 API返回值 -taobao.rdc.aligenius.warehouse.reverse.uploading - -主要用于商家上传仓库销退单信息 -*/ -type TaobaoRdcAligeniusWarehouseReverseUploadingAPIResponse struct { - model.CommonResponse - TaobaoRdcAligeniusWarehouseReverseUploadingResponse -} - -// 销退单上传 成功返回结果 -type TaobaoRdcAligeniusWarehouseReverseUploadingResponse struct { - XMLName xml.Name `xml:"rdc_aligenius_warehouse_reverse_uploading_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误描述 - FailInfo string `json:"fail_info,omitempty" xml:"fail_info,omitempty"` - // 错误码 - FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"` - // 是否成功 - SuccessFlag bool `json:"success_flag,omitempty" xml:"success_flag,omitempty"` -} diff --git a/model/logistic/TaobaoWlbImportThreeplOfflineConsignAPIRequest.go b/model/logistic/TaobaoWlbImportThreeplOfflineConsignAPIRequest.go new file mode 100644 index 0000000000..d239503a2b --- /dev/null +++ b/model/logistic/TaobaoWlbImportThreeplOfflineConsignAPIRequest.go @@ -0,0 +1,108 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +3PL直邮线下发货 API请求 +taobao.wlb.import.threepl.offline.consign + +菜鸟认证直邮线下发货 +*/ +type TaobaoWlbImportThreeplOfflineConsignAPIRequest struct { + model.Params + // 交易单号 + _tradeId int64 + // 资源id + _resId int64 + // 资源code + _resCode string + // 运单号 + _waybillNo string + // 发件人地址库id + _fromId int64 +} + +// 初始化TaobaoWlbImportThreeplOfflineConsignAPIRequest对象 +func NewTaobaoWlbImportThreeplOfflineConsignRequest() *TaobaoWlbImportThreeplOfflineConsignAPIRequest{ + return &TaobaoWlbImportThreeplOfflineConsignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbImportThreeplOfflineConsignAPIRequest) GetApiMethodName() string { + return "taobao.wlb.import.threepl.offline.consign" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbImportThreeplOfflineConsignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeId Setter +// 交易单号 +func (r *TaobaoWlbImportThreeplOfflineConsignAPIRequest) SetTradeId(_tradeId int64) error { + r._tradeId = _tradeId + r.Set("trade_id", _tradeId) + return nil +} + +// TradeId Getter +func (r TaobaoWlbImportThreeplOfflineConsignAPIRequest) GetTradeId() int64 { + return r._tradeId +} +// ResId Setter +// 资源id +func (r *TaobaoWlbImportThreeplOfflineConsignAPIRequest) SetResId(_resId int64) error { + r._resId = _resId + r.Set("res_id", _resId) + return nil +} + +// ResId Getter +func (r TaobaoWlbImportThreeplOfflineConsignAPIRequest) GetResId() int64 { + return r._resId +} +// ResCode Setter +// 资源code +func (r *TaobaoWlbImportThreeplOfflineConsignAPIRequest) SetResCode(_resCode string) error { + r._resCode = _resCode + r.Set("res_code", _resCode) + return nil +} + +// ResCode Getter +func (r TaobaoWlbImportThreeplOfflineConsignAPIRequest) GetResCode() string { + return r._resCode +} +// WaybillNo Setter +// 运单号 +func (r *TaobaoWlbImportThreeplOfflineConsignAPIRequest) SetWaybillNo(_waybillNo string) error { + r._waybillNo = _waybillNo + r.Set("waybill_no", _waybillNo) + return nil +} + +// WaybillNo Getter +func (r TaobaoWlbImportThreeplOfflineConsignAPIRequest) GetWaybillNo() string { + return r._waybillNo +} +// FromId Setter +// 发件人地址库id +func (r *TaobaoWlbImportThreeplOfflineConsignAPIRequest) SetFromId(_fromId int64) error { + r._fromId = _fromId + r.Set("from_id", _fromId) + return nil +} + +// FromId Getter +func (r TaobaoWlbImportThreeplOfflineConsignAPIRequest) GetFromId() int64 { + return r._fromId +} diff --git a/model/logistic/TaobaoWlbImportThreeplOfflineConsignAPIResponse.go b/model/logistic/TaobaoWlbImportThreeplOfflineConsignAPIResponse.go new file mode 100644 index 0000000000..13c8819c31 --- /dev/null +++ b/model/logistic/TaobaoWlbImportThreeplOfflineConsignAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +3PL直邮线下发货 API返回值 +taobao.wlb.import.threepl.offline.consign + +菜鸟认证直邮线下发货 +*/ +type TaobaoWlbImportThreeplOfflineConsignAPIResponse struct { + model.CommonResponse + TaobaoWlbImportThreeplOfflineConsignAPIResponseModel +} + +// 3PL直邮线下发货 成功返回结果 +type TaobaoWlbImportThreeplOfflineConsignAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_import_threepl_offline_consign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/logistic/TaobaoWlbImportThreeplOfflineConsignResponse.go b/model/logistic/TaobaoWlbImportThreeplOfflineConsignResponse.go deleted file mode 100644 index f95876cd07..0000000000 --- a/model/logistic/TaobaoWlbImportThreeplOfflineConsignResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -3PL直邮线下发货 API返回值 -taobao.wlb.import.threepl.offline.consign - -菜鸟认证直邮线下发货 -*/ -type TaobaoWlbImportThreeplOfflineConsignAPIResponse struct { - model.CommonResponse - TaobaoWlbImportThreeplOfflineConsignResponse -} - -// 3PL直邮线下发货 成功返回结果 -type TaobaoWlbImportThreeplOfflineConsignResponse struct { - XMLName xml.Name `xml:"wlb_import_threepl_offline_consign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/logistic/TaobaoWlbImportThreeplResourceGetAPIRequest.go b/model/logistic/TaobaoWlbImportThreeplResourceGetAPIRequest.go new file mode 100644 index 0000000000..5ab437d25b --- /dev/null +++ b/model/logistic/TaobaoWlbImportThreeplResourceGetAPIRequest.go @@ -0,0 +1,80 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +3PL直邮获取资源列表 API请求 +taobao.wlb.import.threepl.resource.get + +获取3pl直邮的发货可用资源 +*/ +type TaobaoWlbImportThreeplResourceGetAPIRequest struct { + model.Params + // ONLINE或者OFFLINE + _type string + // 发货地区域id + _fromId int64 + // 收件人地址 + _toAddress *AddressDto +} + +// 初始化TaobaoWlbImportThreeplResourceGetAPIRequest对象 +func NewTaobaoWlbImportThreeplResourceGetRequest() *TaobaoWlbImportThreeplResourceGetAPIRequest{ + return &TaobaoWlbImportThreeplResourceGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbImportThreeplResourceGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.import.threepl.resource.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbImportThreeplResourceGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// ONLINE或者OFFLINE +func (r *TaobaoWlbImportThreeplResourceGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoWlbImportThreeplResourceGetAPIRequest) GetType() string { + return r._type +} +// FromId Setter +// 发货地区域id +func (r *TaobaoWlbImportThreeplResourceGetAPIRequest) SetFromId(_fromId int64) error { + r._fromId = _fromId + r.Set("from_id", _fromId) + return nil +} + +// FromId Getter +func (r TaobaoWlbImportThreeplResourceGetAPIRequest) GetFromId() int64 { + return r._fromId +} +// ToAddress Setter +// 收件人地址 +func (r *TaobaoWlbImportThreeplResourceGetAPIRequest) SetToAddress(_toAddress *AddressDto) error { + r._toAddress = _toAddress + r.Set("to_address", _toAddress) + return nil +} + +// ToAddress Getter +func (r TaobaoWlbImportThreeplResourceGetAPIRequest) GetToAddress() *AddressDto { + return r._toAddress +} diff --git a/model/logistic/TaobaoWlbImportThreeplResourceGetAPIResponse.go b/model/logistic/TaobaoWlbImportThreeplResourceGetAPIResponse.go new file mode 100644 index 0000000000..c6c645651d --- /dev/null +++ b/model/logistic/TaobaoWlbImportThreeplResourceGetAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +3PL直邮获取资源列表 API返回值 +taobao.wlb.import.threepl.resource.get + +获取3pl直邮的发货可用资源 +*/ +type TaobaoWlbImportThreeplResourceGetAPIResponse struct { + model.CommonResponse + TaobaoWlbImportThreeplResourceGetAPIResponseModel +} + +// 3PL直邮获取资源列表 成功返回结果 +type TaobaoWlbImportThreeplResourceGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_import_threepl_resource_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/logistic/TaobaoWlbImportThreeplResourceGetResponse.go b/model/logistic/TaobaoWlbImportThreeplResourceGetResponse.go deleted file mode 100644 index cc0de96589..0000000000 --- a/model/logistic/TaobaoWlbImportThreeplResourceGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -3PL直邮获取资源列表 API返回值 -taobao.wlb.import.threepl.resource.get - -获取3pl直邮的发货可用资源 -*/ -type TaobaoWlbImportThreeplResourceGetAPIResponse struct { - model.CommonResponse - TaobaoWlbImportThreeplResourceGetResponse -} - -// 3PL直邮获取资源列表 成功返回结果 -type TaobaoWlbImportThreeplResourceGetResponse struct { - XMLName xml.Name `xml:"wlb_import_threepl_resource_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/logistic/TaobaoWlbOrderJzConsignAPIRequest.go b/model/logistic/TaobaoWlbOrderJzConsignAPIRequest.go new file mode 100644 index 0000000000..7c7867f0b4 --- /dev/null +++ b/model/logistic/TaobaoWlbOrderJzConsignAPIRequest.go @@ -0,0 +1,136 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +家装发货接口 API请求 +taobao.wlb.order.jz.consign + +家装类订单使用该接口发货 +*/ +type TaobaoWlbOrderJzConsignAPIRequest struct { + model.Params + // 交易号 + _tid int64 + // 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址 + _senderId int64 + // 家装收货人信息,如果为空,则取默认收货信息 + _jzReceiverTo *JzReceiverTo + // 发货参数 + _jzTopArgs *JzTopArgs + // 物流公司信息 + _lgTpDto *Tpdto + // 安装公司信息,需要安装时,才填写 + _insTpDto *Tpdto + // 安装收货人信息,如果为空,则取默认收货人信息 + _insReceiverTo *JzReceiverTo +} + +// 初始化TaobaoWlbOrderJzConsignAPIRequest对象 +func NewTaobaoWlbOrderJzConsignRequest() *TaobaoWlbOrderJzConsignAPIRequest{ + return &TaobaoWlbOrderJzConsignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbOrderJzConsignAPIRequest) GetApiMethodName() string { + return "taobao.wlb.order.jz.consign" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbOrderJzConsignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 交易号 +func (r *TaobaoWlbOrderJzConsignAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoWlbOrderJzConsignAPIRequest) GetTid() int64 { + return r._tid +} +// SenderId Setter +// 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址 +func (r *TaobaoWlbOrderJzConsignAPIRequest) SetSenderId(_senderId int64) error { + r._senderId = _senderId + r.Set("sender_id", _senderId) + return nil +} + +// SenderId Getter +func (r TaobaoWlbOrderJzConsignAPIRequest) GetSenderId() int64 { + return r._senderId +} +// JzReceiverTo Setter +// 家装收货人信息,如果为空,则取默认收货信息 +func (r *TaobaoWlbOrderJzConsignAPIRequest) SetJzReceiverTo(_jzReceiverTo *JzReceiverTo) error { + r._jzReceiverTo = _jzReceiverTo + r.Set("jz_receiver_to", _jzReceiverTo) + return nil +} + +// JzReceiverTo Getter +func (r TaobaoWlbOrderJzConsignAPIRequest) GetJzReceiverTo() *JzReceiverTo { + return r._jzReceiverTo +} +// JzTopArgs Setter +// 发货参数 +func (r *TaobaoWlbOrderJzConsignAPIRequest) SetJzTopArgs(_jzTopArgs *JzTopArgs) error { + r._jzTopArgs = _jzTopArgs + r.Set("jz_top_args", _jzTopArgs) + return nil +} + +// JzTopArgs Getter +func (r TaobaoWlbOrderJzConsignAPIRequest) GetJzTopArgs() *JzTopArgs { + return r._jzTopArgs +} +// LgTpDto Setter +// 物流公司信息 +func (r *TaobaoWlbOrderJzConsignAPIRequest) SetLgTpDto(_lgTpDto *Tpdto) error { + r._lgTpDto = _lgTpDto + r.Set("lg_tp_dto", _lgTpDto) + return nil +} + +// LgTpDto Getter +func (r TaobaoWlbOrderJzConsignAPIRequest) GetLgTpDto() *Tpdto { + return r._lgTpDto +} +// InsTpDto Setter +// 安装公司信息,需要安装时,才填写 +func (r *TaobaoWlbOrderJzConsignAPIRequest) SetInsTpDto(_insTpDto *Tpdto) error { + r._insTpDto = _insTpDto + r.Set("ins_tp_dto", _insTpDto) + return nil +} + +// InsTpDto Getter +func (r TaobaoWlbOrderJzConsignAPIRequest) GetInsTpDto() *Tpdto { + return r._insTpDto +} +// InsReceiverTo Setter +// 安装收货人信息,如果为空,则取默认收货人信息 +func (r *TaobaoWlbOrderJzConsignAPIRequest) SetInsReceiverTo(_insReceiverTo *JzReceiverTo) error { + r._insReceiverTo = _insReceiverTo + r.Set("ins_receiver_to", _insReceiverTo) + return nil +} + +// InsReceiverTo Getter +func (r TaobaoWlbOrderJzConsignAPIRequest) GetInsReceiverTo() *JzReceiverTo { + return r._insReceiverTo +} diff --git a/model/logistic/TaobaoWlbOrderJzConsignAPIResponse.go b/model/logistic/TaobaoWlbOrderJzConsignAPIResponse.go new file mode 100644 index 0000000000..b9d5a7d111 --- /dev/null +++ b/model/logistic/TaobaoWlbOrderJzConsignAPIResponse.go @@ -0,0 +1,31 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +家装发货接口 API返回值 +taobao.wlb.order.jz.consign + +家装类订单使用该接口发货 +*/ +type TaobaoWlbOrderJzConsignAPIResponse struct { + model.CommonResponse + TaobaoWlbOrderJzConsignAPIResponseModel +} + +// 家装发货接口 成功返回结果 +type TaobaoWlbOrderJzConsignAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_order_jz_consign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + ResultErrorCode string `json:"result_error_code,omitempty" xml:"result_error_code,omitempty"` + // 错误信息描述 + ResultErrorMsg string `json:"result_error_msg,omitempty" xml:"result_error_msg,omitempty"` + // 是否成功 + ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` +} diff --git a/model/logistic/TaobaoWlbOrderJzConsignResponse.go b/model/logistic/TaobaoWlbOrderJzConsignResponse.go deleted file mode 100644 index f082c5855e..0000000000 --- a/model/logistic/TaobaoWlbOrderJzConsignResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -家装发货接口 API返回值 -taobao.wlb.order.jz.consign - -家装类订单使用该接口发货 -*/ -type TaobaoWlbOrderJzConsignAPIResponse struct { - model.CommonResponse - TaobaoWlbOrderJzConsignResponse -} - -// 家装发货接口 成功返回结果 -type TaobaoWlbOrderJzConsignResponse struct { - XMLName xml.Name `xml:"wlb_order_jz_consign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - ResultErrorCode string `json:"result_error_code,omitempty" xml:"result_error_code,omitempty"` - // 错误信息描述 - ResultErrorMsg string `json:"result_error_msg,omitempty" xml:"result_error_msg,omitempty"` - // 是否成功 - ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` -} diff --git a/model/logistic/TaobaoWlbOrderJzQueryAPIRequest.go b/model/logistic/TaobaoWlbOrderJzQueryAPIRequest.go new file mode 100644 index 0000000000..27da15bc9b --- /dev/null +++ b/model/logistic/TaobaoWlbOrderJzQueryAPIRequest.go @@ -0,0 +1,94 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +家装业务查询物流公司api API请求 +taobao.wlb.order.jz.query + +家装业务查询物流公司api +*/ +type TaobaoWlbOrderJzQueryAPIRequest struct { + model.Params + // 交易id + _tid int64 + // 家装收货人信息 + _jzReceiverTo *JzReceiverTo + // 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址 + _senderId int64 + // 家装安装服务收货人信息 + _insJzReceiverTO *JzReceiverTo +} + +// 初始化TaobaoWlbOrderJzQueryAPIRequest对象 +func NewTaobaoWlbOrderJzQueryRequest() *TaobaoWlbOrderJzQueryAPIRequest{ + return &TaobaoWlbOrderJzQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbOrderJzQueryAPIRequest) GetApiMethodName() string { + return "taobao.wlb.order.jz.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbOrderJzQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 交易id +func (r *TaobaoWlbOrderJzQueryAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoWlbOrderJzQueryAPIRequest) GetTid() int64 { + return r._tid +} +// JzReceiverTo Setter +// 家装收货人信息 +func (r *TaobaoWlbOrderJzQueryAPIRequest) SetJzReceiverTo(_jzReceiverTo *JzReceiverTo) error { + r._jzReceiverTo = _jzReceiverTo + r.Set("jz_receiver_to", _jzReceiverTo) + return nil +} + +// JzReceiverTo Getter +func (r TaobaoWlbOrderJzQueryAPIRequest) GetJzReceiverTo() *JzReceiverTo { + return r._jzReceiverTo +} +// SenderId Setter +// 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址 +func (r *TaobaoWlbOrderJzQueryAPIRequest) SetSenderId(_senderId int64) error { + r._senderId = _senderId + r.Set("sender_id", _senderId) + return nil +} + +// SenderId Getter +func (r TaobaoWlbOrderJzQueryAPIRequest) GetSenderId() int64 { + return r._senderId +} +// InsJzReceiverTO Setter +// 家装安装服务收货人信息 +func (r *TaobaoWlbOrderJzQueryAPIRequest) SetInsJzReceiverTO(_insJzReceiverTO *JzReceiverTo) error { + r._insJzReceiverTO = _insJzReceiverTO + r.Set("ins_jz_receiver_t_o", _insJzReceiverTO) + return nil +} + +// InsJzReceiverTO Getter +func (r TaobaoWlbOrderJzQueryAPIRequest) GetInsJzReceiverTO() *JzReceiverTo { + return r._insJzReceiverTO +} diff --git a/model/logistic/TaobaoWlbOrderJzQueryAPIResponse.go b/model/logistic/TaobaoWlbOrderJzQueryAPIResponse.go new file mode 100644 index 0000000000..ff3c78e7bc --- /dev/null +++ b/model/logistic/TaobaoWlbOrderJzQueryAPIResponse.go @@ -0,0 +1,33 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +家装业务查询物流公司api API返回值 +taobao.wlb.order.jz.query + +家装业务查询物流公司api +*/ +type TaobaoWlbOrderJzQueryAPIResponse struct { + model.CommonResponse + TaobaoWlbOrderJzQueryAPIResponseModel +} + +// 家装业务查询物流公司api 成功返回结果 +type TaobaoWlbOrderJzQueryAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_order_jz_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误编码 + ResultErrorCode string `json:"result_error_code,omitempty" xml:"result_error_code,omitempty"` + // 错误信息 + ResultErrorMsg string `json:"result_error_msg,omitempty" xml:"result_error_msg,omitempty"` + // 结果信息 + Result *JzTopDto `json:"result,omitempty" xml:"result,omitempty"` + // 是否成功 + ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` +} diff --git a/model/logistic/TaobaoWlbOrderJzQueryResponse.go b/model/logistic/TaobaoWlbOrderJzQueryResponse.go deleted file mode 100644 index d3f1315b4c..0000000000 --- a/model/logistic/TaobaoWlbOrderJzQueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -家装业务查询物流公司api API返回值 -taobao.wlb.order.jz.query - -家装业务查询物流公司api -*/ -type TaobaoWlbOrderJzQueryAPIResponse struct { - model.CommonResponse - TaobaoWlbOrderJzQueryResponse -} - -// 家装业务查询物流公司api 成功返回结果 -type TaobaoWlbOrderJzQueryResponse struct { - XMLName xml.Name `xml:"wlb_order_jz_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误编码 - ResultErrorCode string `json:"result_error_code,omitempty" xml:"result_error_code,omitempty"` - // 错误信息 - ResultErrorMsg string `json:"result_error_msg,omitempty" xml:"result_error_msg,omitempty"` - // 结果信息 - Result *JzTopDto `json:"result,omitempty" xml:"result,omitempty"` - // 是否成功 - ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` -} diff --git a/model/logistic/TaobaoWlbStoresBaseinfoGetAPIRequest.go b/model/logistic/TaobaoWlbStoresBaseinfoGetAPIRequest.go new file mode 100644 index 0000000000..16e393217f --- /dev/null +++ b/model/logistic/TaobaoWlbStoresBaseinfoGetAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家按照仓的类型获取仓库接口 API请求 +taobao.wlb.stores.baseinfo.get + +通过USERID和仓库类型,获取商家自有仓库或菜鸟仓库或全部仓库 +*/ +type TaobaoWlbStoresBaseinfoGetAPIRequest struct { + model.Params + // 0.商家仓库.1.菜鸟仓库.2全部被划分的仓库 + _type int64 +} + +// 初始化TaobaoWlbStoresBaseinfoGetAPIRequest对象 +func NewTaobaoWlbStoresBaseinfoGetRequest() *TaobaoWlbStoresBaseinfoGetAPIRequest{ + return &TaobaoWlbStoresBaseinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbStoresBaseinfoGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.stores.baseinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbStoresBaseinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// 0.商家仓库.1.菜鸟仓库.2全部被划分的仓库 +func (r *TaobaoWlbStoresBaseinfoGetAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoWlbStoresBaseinfoGetAPIRequest) GetType() int64 { + return r._type +} diff --git a/model/logistic/TaobaoWlbStoresBaseinfoGetAPIResponse.go b/model/logistic/TaobaoWlbStoresBaseinfoGetAPIResponse.go new file mode 100644 index 0000000000..dd7fea51a1 --- /dev/null +++ b/model/logistic/TaobaoWlbStoresBaseinfoGetAPIResponse.go @@ -0,0 +1,29 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家按照仓的类型获取仓库接口 API返回值 +taobao.wlb.stores.baseinfo.get + +通过USERID和仓库类型,获取商家自有仓库或菜鸟仓库或全部仓库 +*/ +type TaobaoWlbStoresBaseinfoGetAPIResponse struct { + model.CommonResponse + TaobaoWlbStoresBaseinfoGetAPIResponseModel +} + +// 商家按照仓的类型获取仓库接口 成功返回结果 +type TaobaoWlbStoresBaseinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_stores_baseinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 仓库列表 + StoreInfoList []StoreInfo `json:"store_info_list,omitempty" xml:"store_info_list>store_info,omitempty"` + // 返回的总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/logistic/TaobaoWlbStoresBaseinfoGetResponse.go b/model/logistic/TaobaoWlbStoresBaseinfoGetResponse.go deleted file mode 100644 index 398387f721..0000000000 --- a/model/logistic/TaobaoWlbStoresBaseinfoGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家按照仓的类型获取仓库接口 API返回值 -taobao.wlb.stores.baseinfo.get - -通过USERID和仓库类型,获取商家自有仓库或菜鸟仓库或全部仓库 -*/ -type TaobaoWlbStoresBaseinfoGetAPIResponse struct { - model.CommonResponse - TaobaoWlbStoresBaseinfoGetResponse -} - -// 商家按照仓的类型获取仓库接口 成功返回结果 -type TaobaoWlbStoresBaseinfoGetResponse struct { - XMLName xml.Name `xml:"wlb_stores_baseinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 仓库列表 - StoreInfoList []StoreInfo `json:"store_info_list,omitempty" xml:"store_info_list>store_info,omitempty"` - // 返回的总数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/logistic/TaobaoWmsOrderWarehouseRouteGetAPIRequest.go b/model/logistic/TaobaoWmsOrderWarehouseRouteGetAPIRequest.go new file mode 100644 index 0000000000..9dbfec6b85 --- /dev/null +++ b/model/logistic/TaobaoWmsOrderWarehouseRouteGetAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取订单仓库路由信息 API请求 +taobao.wms.order.warehouse.route.get + +获取订单仓库路由信息 +*/ +type TaobaoWmsOrderWarehouseRouteGetAPIRequest struct { + model.Params + // 订单编号 + _orderCode string +} + +// 初始化TaobaoWmsOrderWarehouseRouteGetAPIRequest对象 +func NewTaobaoWmsOrderWarehouseRouteGetRequest() *TaobaoWmsOrderWarehouseRouteGetAPIRequest{ + return &TaobaoWmsOrderWarehouseRouteGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWmsOrderWarehouseRouteGetAPIRequest) GetApiMethodName() string { + return "taobao.wms.order.warehouse.route.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWmsOrderWarehouseRouteGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderCode Setter +// 订单编号 +func (r *TaobaoWmsOrderWarehouseRouteGetAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r TaobaoWmsOrderWarehouseRouteGetAPIRequest) GetOrderCode() string { + return r._orderCode +} diff --git a/model/logistic/TaobaoWmsOrderWarehouseRouteGetAPIResponse.go b/model/logistic/TaobaoWmsOrderWarehouseRouteGetAPIResponse.go new file mode 100644 index 0000000000..4f0a8e99b3 --- /dev/null +++ b/model/logistic/TaobaoWmsOrderWarehouseRouteGetAPIResponse.go @@ -0,0 +1,35 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取订单仓库路由信息 API返回值 +taobao.wms.order.warehouse.route.get + +获取订单仓库路由信息 +*/ +type TaobaoWmsOrderWarehouseRouteGetAPIResponse struct { + model.CommonResponse + TaobaoWmsOrderWarehouseRouteGetAPIResponseModel +} + +// 获取订单仓库路由信息 成功返回结果 +type TaobaoWmsOrderWarehouseRouteGetAPIResponseModel struct { + XMLName xml.Name `xml:"wms_order_warehouse_route_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品列表 + Items []OrderWarehouseRouteGetItems `json:"items,omitempty" xml:"items>order_warehouse_route_get_items,omitempty"` + // 是否成功 + WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` + // 错误信息 + WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` + // 错误信息 + WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` + // 订单编号 + OrderCode string `json:"order_code,omitempty" xml:"order_code,omitempty"` +} diff --git a/model/logistic/TaobaoWmsOrderWarehouseRouteGetResponse.go b/model/logistic/TaobaoWmsOrderWarehouseRouteGetResponse.go deleted file mode 100644 index 24ffd07f1c..0000000000 --- a/model/logistic/TaobaoWmsOrderWarehouseRouteGetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取订单仓库路由信息 API返回值 -taobao.wms.order.warehouse.route.get - -获取订单仓库路由信息 -*/ -type TaobaoWmsOrderWarehouseRouteGetAPIResponse struct { - model.CommonResponse - TaobaoWmsOrderWarehouseRouteGetResponse -} - -// 获取订单仓库路由信息 成功返回结果 -type TaobaoWmsOrderWarehouseRouteGetResponse struct { - XMLName xml.Name `xml:"wms_order_warehouse_route_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品列表 - Items []OrderWarehouseRouteGetItems `json:"items,omitempty" xml:"items>order_warehouse_route_get_items,omitempty"` - // 是否成功 - WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` - // 错误信息 - WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` - // 错误信息 - WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` - // 订单编号 - OrderCode string `json:"order_code,omitempty" xml:"order_code,omitempty"` -} diff --git a/model/logistic/WdkLogisticNetworkResourceGroupQueryAPIRequest.go b/model/logistic/WdkLogisticNetworkResourceGroupQueryAPIRequest.go new file mode 100644 index 0000000000..57a373aa3d --- /dev/null +++ b/model/logistic/WdkLogisticNetworkResourceGroupQueryAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询网格仓-区块-自提点关系 API请求 +wdk.logistic.network.resource.group.query + +查询网格仓-区块-自提点关系 +*/ +type WdkLogisticNetworkResourceGroupQueryAPIRequest struct { + model.Params + // 入参 + _paramResourceGroupPageQueryRequest *ResourceGroupPageQueryRequest +} + +// 初始化WdkLogisticNetworkResourceGroupQueryAPIRequest对象 +func NewWdkLogisticNetworkResourceGroupQueryRequest() *WdkLogisticNetworkResourceGroupQueryAPIRequest{ + return &WdkLogisticNetworkResourceGroupQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r WdkLogisticNetworkResourceGroupQueryAPIRequest) GetApiMethodName() string { + return "wdk.logistic.network.resource.group.query" +} + +// IRequest interface 方法, 获取API参数 +func (r WdkLogisticNetworkResourceGroupQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamResourceGroupPageQueryRequest Setter +// 入参 +func (r *WdkLogisticNetworkResourceGroupQueryAPIRequest) SetParamResourceGroupPageQueryRequest(_paramResourceGroupPageQueryRequest *ResourceGroupPageQueryRequest) error { + r._paramResourceGroupPageQueryRequest = _paramResourceGroupPageQueryRequest + r.Set("param_resource_group_page_query_request", _paramResourceGroupPageQueryRequest) + return nil +} + +// ParamResourceGroupPageQueryRequest Getter +func (r WdkLogisticNetworkResourceGroupQueryAPIRequest) GetParamResourceGroupPageQueryRequest() *ResourceGroupPageQueryRequest { + return r._paramResourceGroupPageQueryRequest +} diff --git a/model/logistic/WdkLogisticNetworkResourceGroupQueryAPIResponse.go b/model/logistic/WdkLogisticNetworkResourceGroupQueryAPIResponse.go new file mode 100644 index 0000000000..7f910bdd6a --- /dev/null +++ b/model/logistic/WdkLogisticNetworkResourceGroupQueryAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询网格仓-区块-自提点关系 API返回值 +wdk.logistic.network.resource.group.query + +查询网格仓-区块-自提点关系 +*/ +type WdkLogisticNetworkResourceGroupQueryAPIResponse struct { + model.CommonResponse + WdkLogisticNetworkResourceGroupQueryAPIResponseModel +} + +// 查询网格仓-区块-自提点关系 成功返回结果 +type WdkLogisticNetworkResourceGroupQueryAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_logistic_network_resource_group_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *LogisticsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/logistic/WdkLogisticNetworkResourceGroupQueryResponse.go b/model/logistic/WdkLogisticNetworkResourceGroupQueryResponse.go deleted file mode 100644 index df061bacbf..0000000000 --- a/model/logistic/WdkLogisticNetworkResourceGroupQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询网格仓-区块-自提点关系 API返回值 -wdk.logistic.network.resource.group.query - -查询网格仓-区块-自提点关系 -*/ -type WdkLogisticNetworkResourceGroupQueryAPIResponse struct { - model.CommonResponse - WdkLogisticNetworkResourceGroupQueryResponse -} - -// 查询网格仓-区块-自提点关系 成功返回结果 -type WdkLogisticNetworkResourceGroupQueryResponse struct { - XMLName xml.Name `xml:"wdk_logistic_network_resource_group_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *LogisticsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/logistic/WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIRequest.go b/model/logistic/WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIRequest.go new file mode 100644 index 0000000000..60d7738c63 --- /dev/null +++ b/model/logistic/WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +仓站(网格仓自提点)关系查询 API请求 +wdk.logistic.network.warehouse.delivery.relation.query + +盒马集市,仓站(网格仓自提点)关系查询 +*/ +type WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIRequest struct { + model.Params + // 参数 + _paramWarehouseDeliveryRelationPageQueryRequest *WarehouseDeliveryRelationPageQueryRequest +} + +// 初始化WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIRequest对象 +func NewWdkLogisticNetworkWarehouseDeliveryRelationQueryRequest() *WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIRequest{ + return &WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIRequest) GetApiMethodName() string { + return "wdk.logistic.network.warehouse.delivery.relation.query" +} + +// IRequest interface 方法, 获取API参数 +func (r WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamWarehouseDeliveryRelationPageQueryRequest Setter +// 参数 +func (r *WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIRequest) SetParamWarehouseDeliveryRelationPageQueryRequest(_paramWarehouseDeliveryRelationPageQueryRequest *WarehouseDeliveryRelationPageQueryRequest) error { + r._paramWarehouseDeliveryRelationPageQueryRequest = _paramWarehouseDeliveryRelationPageQueryRequest + r.Set("param_warehouse_delivery_relation_page_query_request", _paramWarehouseDeliveryRelationPageQueryRequest) + return nil +} + +// ParamWarehouseDeliveryRelationPageQueryRequest Getter +func (r WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIRequest) GetParamWarehouseDeliveryRelationPageQueryRequest() *WarehouseDeliveryRelationPageQueryRequest { + return r._paramWarehouseDeliveryRelationPageQueryRequest +} diff --git a/model/logistic/WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIResponse.go b/model/logistic/WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIResponse.go new file mode 100644 index 0000000000..5fa1591d1e --- /dev/null +++ b/model/logistic/WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +仓站(网格仓自提点)关系查询 API返回值 +wdk.logistic.network.warehouse.delivery.relation.query + +盒马集市,仓站(网格仓自提点)关系查询 +*/ +type WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIResponse struct { + model.CommonResponse + WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIResponseModel +} + +// 仓站(网格仓自提点)关系查询 成功返回结果 +type WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_logistic_network_warehouse_delivery_relation_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 参数 + Result *LogisticsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/logistic/WdkLogisticNetworkWarehouseDeliveryRelationQueryResponse.go b/model/logistic/WdkLogisticNetworkWarehouseDeliveryRelationQueryResponse.go deleted file mode 100644 index 54931e111a..0000000000 --- a/model/logistic/WdkLogisticNetworkWarehouseDeliveryRelationQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -仓站(网格仓自提点)关系查询 API返回值 -wdk.logistic.network.warehouse.delivery.relation.query - -盒马集市,仓站(网格仓自提点)关系查询 -*/ -type WdkLogisticNetworkWarehouseDeliveryRelationQueryAPIResponse struct { - model.CommonResponse - WdkLogisticNetworkWarehouseDeliveryRelationQueryResponse -} - -// 仓站(网格仓自提点)关系查询 成功返回结果 -type WdkLogisticNetworkWarehouseDeliveryRelationQueryResponse struct { - XMLName xml.Name `xml:"wdk_logistic_network_warehouse_delivery_relation_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 参数 - Result *LogisticsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIRequest.go b/model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIRequest.go new file mode 100644 index 0000000000..77726d5f77 --- /dev/null +++ b/model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +中心仓查网格仓 API请求 +wdk.logistic.network.warehouse.resource.relation.query.from + +盒马集市,中心仓查询网格仓 +*/ +type WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIRequest struct { + model.Params + // 查询参数 + _paramPageQueryWarehouseResourceRelationByFromRequest *PageQueryWarehouseResourceRelationByFromRequest +} + +// 初始化WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIRequest对象 +func NewWdkLogisticNetworkWarehouseResourceRelationQueryFromRequest() *WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIRequest{ + return &WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIRequest) GetApiMethodName() string { + return "wdk.logistic.network.warehouse.resource.relation.query.from" +} + +// IRequest interface 方法, 获取API参数 +func (r WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamPageQueryWarehouseResourceRelationByFromRequest Setter +// 查询参数 +func (r *WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIRequest) SetParamPageQueryWarehouseResourceRelationByFromRequest(_paramPageQueryWarehouseResourceRelationByFromRequest *PageQueryWarehouseResourceRelationByFromRequest) error { + r._paramPageQueryWarehouseResourceRelationByFromRequest = _paramPageQueryWarehouseResourceRelationByFromRequest + r.Set("param_page_query_warehouse_resource_relation_by_from_request", _paramPageQueryWarehouseResourceRelationByFromRequest) + return nil +} + +// ParamPageQueryWarehouseResourceRelationByFromRequest Getter +func (r WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIRequest) GetParamPageQueryWarehouseResourceRelationByFromRequest() *PageQueryWarehouseResourceRelationByFromRequest { + return r._paramPageQueryWarehouseResourceRelationByFromRequest +} diff --git a/model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIResponse.go b/model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIResponse.go new file mode 100644 index 0000000000..0650c5114e --- /dev/null +++ b/model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +中心仓查网格仓 API返回值 +wdk.logistic.network.warehouse.resource.relation.query.from + +盒马集市,中心仓查询网格仓 +*/ +type WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIResponse struct { + model.CommonResponse + WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIResponseModel +} + +// 中心仓查网格仓 成功返回结果 +type WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_logistic_network_warehouse_resource_relation_query_from_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *LogisticsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryFromResponse.go b/model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryFromResponse.go deleted file mode 100644 index 3e903a30e5..0000000000 --- a/model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryFromResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -中心仓查网格仓 API返回值 -wdk.logistic.network.warehouse.resource.relation.query.from - -盒马集市,中心仓查询网格仓 -*/ -type WdkLogisticNetworkWarehouseResourceRelationQueryFromAPIResponse struct { - model.CommonResponse - WdkLogisticNetworkWarehouseResourceRelationQueryFromResponse -} - -// 中心仓查网格仓 成功返回结果 -type WdkLogisticNetworkWarehouseResourceRelationQueryFromResponse struct { - XMLName xml.Name `xml:"wdk_logistic_network_warehouse_resource_relation_query_from_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *LogisticsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIRequest.go b/model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIRequest.go new file mode 100644 index 0000000000..1e398826bb --- /dev/null +++ b/model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIRequest.go @@ -0,0 +1,52 @@ +package logistic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +按网格仓查中心仓(带缓存) API请求 +wdk.logistic.network.warehouse.resource.relation.query.to.codes + +盒马集市,网格仓查询中心仓 +*/ +type WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIRequest struct { + model.Params + // 入参 + _paramYxWarehouseResourceRelationQueryRequest *YxWarehouseResourceRelationQueryRequest +} + +// 初始化WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIRequest对象 +func NewWdkLogisticNetworkWarehouseResourceRelationQueryToCodesRequest() *WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIRequest{ + return &WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIRequest) GetApiMethodName() string { + return "wdk.logistic.network.warehouse.resource.relation.query.to.codes" +} + +// IRequest interface 方法, 获取API参数 +func (r WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamYxWarehouseResourceRelationQueryRequest Setter +// 入参 +func (r *WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIRequest) SetParamYxWarehouseResourceRelationQueryRequest(_paramYxWarehouseResourceRelationQueryRequest *YxWarehouseResourceRelationQueryRequest) error { + r._paramYxWarehouseResourceRelationQueryRequest = _paramYxWarehouseResourceRelationQueryRequest + r.Set("param_yx_warehouse_resource_relation_query_request", _paramYxWarehouseResourceRelationQueryRequest) + return nil +} + +// ParamYxWarehouseResourceRelationQueryRequest Getter +func (r WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIRequest) GetParamYxWarehouseResourceRelationQueryRequest() *YxWarehouseResourceRelationQueryRequest { + return r._paramYxWarehouseResourceRelationQueryRequest +} diff --git a/model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIResponse.go b/model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIResponse.go new file mode 100644 index 0000000000..9646d10a00 --- /dev/null +++ b/model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIResponse.go @@ -0,0 +1,27 @@ +package logistic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +按网格仓查中心仓(带缓存) API返回值 +wdk.logistic.network.warehouse.resource.relation.query.to.codes + +盒马集市,网格仓查询中心仓 +*/ +type WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIResponse struct { + model.CommonResponse + WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIResponseModel +} + +// 按网格仓查中心仓(带缓存) 成功返回结果 +type WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_logistic_network_warehouse_resource_relation_query_to_codes_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *LogisticsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryToCodesResponse.go b/model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryToCodesResponse.go deleted file mode 100644 index 1d955321a0..0000000000 --- a/model/logistic/WdkLogisticNetworkWarehouseResourceRelationQueryToCodesResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package logistic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -按网格仓查中心仓(带缓存) API返回值 -wdk.logistic.network.warehouse.resource.relation.query.to.codes - -盒马集市,网格仓查询中心仓 -*/ -type WdkLogisticNetworkWarehouseResourceRelationQueryToCodesAPIResponse struct { - model.CommonResponse - WdkLogisticNetworkWarehouseResourceRelationQueryToCodesResponse -} - -// 按网格仓查中心仓(带缓存) 成功返回结果 -type WdkLogisticNetworkWarehouseResourceRelationQueryToCodesResponse struct { - XMLName xml.Name `xml:"wdk_logistic_network_warehouse_resource_relation_query_to_codes_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *LogisticsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstbm/AlibabaLstBmStoreAddAPIRequest.go b/model/lstbm/AlibabaLstBmStoreAddAPIRequest.go new file mode 100644 index 0000000000..77193a3b9a --- /dev/null +++ b/model/lstbm/AlibabaLstBmStoreAddAPIRequest.go @@ -0,0 +1,52 @@ +package lstbm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +导入品牌商自有门店 API请求 +alibaba.lst.bm.store.add + +导入品牌商自有门店 +*/ +type AlibabaLstBmStoreAddAPIRequest struct { + model.Params + // 门店数据模型 + _openStoreDto *LstTopOpenStoreDto +} + +// 初始化AlibabaLstBmStoreAddAPIRequest对象 +func NewAlibabaLstBmStoreAddRequest() *AlibabaLstBmStoreAddAPIRequest{ + return &AlibabaLstBmStoreAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstBmStoreAddAPIRequest) GetApiMethodName() string { + return "alibaba.lst.bm.store.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstBmStoreAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenStoreDto Setter +// 门店数据模型 +func (r *AlibabaLstBmStoreAddAPIRequest) SetOpenStoreDto(_openStoreDto *LstTopOpenStoreDto) error { + r._openStoreDto = _openStoreDto + r.Set("open_store_dto", _openStoreDto) + return nil +} + +// OpenStoreDto Getter +func (r AlibabaLstBmStoreAddAPIRequest) GetOpenStoreDto() *LstTopOpenStoreDto { + return r._openStoreDto +} diff --git a/model/lstbm/AlibabaLstBmStoreAddAPIResponse.go b/model/lstbm/AlibabaLstBmStoreAddAPIResponse.go new file mode 100644 index 0000000000..25d5c758a5 --- /dev/null +++ b/model/lstbm/AlibabaLstBmStoreAddAPIResponse.go @@ -0,0 +1,27 @@ +package lstbm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +导入品牌商自有门店 API返回值 +alibaba.lst.bm.store.add + +导入品牌商自有门店 +*/ +type AlibabaLstBmStoreAddAPIResponse struct { + model.CommonResponse + AlibabaLstBmStoreAddAPIResponseModel +} + +// 导入品牌商自有门店 成功返回结果 +type AlibabaLstBmStoreAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_bm_store_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true表示执行成功,false表示执行失败 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstbm/AlibabaLstBmStoreAddResponse.go b/model/lstbm/AlibabaLstBmStoreAddResponse.go deleted file mode 100644 index 20440ad43c..0000000000 --- a/model/lstbm/AlibabaLstBmStoreAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstbm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -导入品牌商自有门店 API返回值 -alibaba.lst.bm.store.add - -导入品牌商自有门店 -*/ -type AlibabaLstBmStoreAddAPIResponse struct { - model.CommonResponse - AlibabaLstBmStoreAddResponse -} - -// 导入品牌商自有门店 成功返回结果 -type AlibabaLstBmStoreAddResponse struct { - XMLName xml.Name `xml:"alibaba_lst_bm_store_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true表示执行成功,false表示执行失败 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstbm/AlibabaLstBmStoreEmpSaveAPIRequest.go b/model/lstbm/AlibabaLstBmStoreEmpSaveAPIRequest.go new file mode 100644 index 0000000000..81c3f73f3c --- /dev/null +++ b/model/lstbm/AlibabaLstBmStoreEmpSaveAPIRequest.go @@ -0,0 +1,66 @@ +package lstbm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +保存品牌商自有门店和内部业代之间的关系 API请求 +alibaba.lst.bm.store.emp.save + +保存品牌商自有门店和内部业代之间的关系 +*/ +type AlibabaLstBmStoreEmpSaveAPIRequest struct { + model.Params + // 门店id标识 + _storeId string + // 员工id标识 + _bmEmpId string +} + +// 初始化AlibabaLstBmStoreEmpSaveAPIRequest对象 +func NewAlibabaLstBmStoreEmpSaveRequest() *AlibabaLstBmStoreEmpSaveAPIRequest{ + return &AlibabaLstBmStoreEmpSaveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstBmStoreEmpSaveAPIRequest) GetApiMethodName() string { + return "alibaba.lst.bm.store.emp.save" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstBmStoreEmpSaveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店id标识 +func (r *AlibabaLstBmStoreEmpSaveAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaLstBmStoreEmpSaveAPIRequest) GetStoreId() string { + return r._storeId +} +// BmEmpId Setter +// 员工id标识 +func (r *AlibabaLstBmStoreEmpSaveAPIRequest) SetBmEmpId(_bmEmpId string) error { + r._bmEmpId = _bmEmpId + r.Set("bm_emp_id", _bmEmpId) + return nil +} + +// BmEmpId Getter +func (r AlibabaLstBmStoreEmpSaveAPIRequest) GetBmEmpId() string { + return r._bmEmpId +} diff --git a/model/lstbm/AlibabaLstBmStoreEmpSaveAPIResponse.go b/model/lstbm/AlibabaLstBmStoreEmpSaveAPIResponse.go new file mode 100644 index 0000000000..588642caf9 --- /dev/null +++ b/model/lstbm/AlibabaLstBmStoreEmpSaveAPIResponse.go @@ -0,0 +1,27 @@ +package lstbm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +保存品牌商自有门店和内部业代之间的关系 API返回值 +alibaba.lst.bm.store.emp.save + +保存品牌商自有门店和内部业代之间的关系 +*/ +type AlibabaLstBmStoreEmpSaveAPIResponse struct { + model.CommonResponse + AlibabaLstBmStoreEmpSaveAPIResponseModel +} + +// 保存品牌商自有门店和内部业代之间的关系 成功返回结果 +type AlibabaLstBmStoreEmpSaveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_bm_store_emp_save_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true表示执行成功,false表示执行失败 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstbm/AlibabaLstBmStoreEmpSaveResponse.go b/model/lstbm/AlibabaLstBmStoreEmpSaveResponse.go deleted file mode 100644 index 9fc5e54c1a..0000000000 --- a/model/lstbm/AlibabaLstBmStoreEmpSaveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstbm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -保存品牌商自有门店和内部业代之间的关系 API返回值 -alibaba.lst.bm.store.emp.save - -保存品牌商自有门店和内部业代之间的关系 -*/ -type AlibabaLstBmStoreEmpSaveAPIResponse struct { - model.CommonResponse - AlibabaLstBmStoreEmpSaveResponse -} - -// 保存品牌商自有门店和内部业代之间的关系 成功返回结果 -type AlibabaLstBmStoreEmpSaveResponse struct { - XMLName xml.Name `xml:"alibaba_lst_bm_store_emp_save_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true表示执行成功,false表示执行失败 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstbm/AlibabaLstBmStoreUpdateAPIRequest.go b/model/lstbm/AlibabaLstBmStoreUpdateAPIRequest.go new file mode 100644 index 0000000000..e511533ae9 --- /dev/null +++ b/model/lstbm/AlibabaLstBmStoreUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package lstbm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改品牌商自有门店数据 API请求 +alibaba.lst.bm.store.update + +修改品牌商自有门店数据 +*/ +type AlibabaLstBmStoreUpdateAPIRequest struct { + model.Params + // 门店数据模型 + _openStoreDto *LstTopOpenStoreDto +} + +// 初始化AlibabaLstBmStoreUpdateAPIRequest对象 +func NewAlibabaLstBmStoreUpdateRequest() *AlibabaLstBmStoreUpdateAPIRequest{ + return &AlibabaLstBmStoreUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstBmStoreUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.lst.bm.store.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstBmStoreUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenStoreDto Setter +// 门店数据模型 +func (r *AlibabaLstBmStoreUpdateAPIRequest) SetOpenStoreDto(_openStoreDto *LstTopOpenStoreDto) error { + r._openStoreDto = _openStoreDto + r.Set("open_store_dto", _openStoreDto) + return nil +} + +// OpenStoreDto Getter +func (r AlibabaLstBmStoreUpdateAPIRequest) GetOpenStoreDto() *LstTopOpenStoreDto { + return r._openStoreDto +} diff --git a/model/lstbm/AlibabaLstBmStoreUpdateAPIResponse.go b/model/lstbm/AlibabaLstBmStoreUpdateAPIResponse.go new file mode 100644 index 0000000000..35f57c2d57 --- /dev/null +++ b/model/lstbm/AlibabaLstBmStoreUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package lstbm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改品牌商自有门店数据 API返回值 +alibaba.lst.bm.store.update + +修改品牌商自有门店数据 +*/ +type AlibabaLstBmStoreUpdateAPIResponse struct { + model.CommonResponse + AlibabaLstBmStoreUpdateAPIResponseModel +} + +// 修改品牌商自有门店数据 成功返回结果 +type AlibabaLstBmStoreUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_bm_store_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true表示执行成功,false表示执行失败 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstbm/AlibabaLstBmStoreUpdateResponse.go b/model/lstbm/AlibabaLstBmStoreUpdateResponse.go deleted file mode 100644 index addf4c977f..0000000000 --- a/model/lstbm/AlibabaLstBmStoreUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstbm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改品牌商自有门店数据 API返回值 -alibaba.lst.bm.store.update - -修改品牌商自有门店数据 -*/ -type AlibabaLstBmStoreUpdateAPIResponse struct { - model.CommonResponse - AlibabaLstBmStoreUpdateResponse -} - -// 修改品牌商自有门店数据 成功返回结果 -type AlibabaLstBmStoreUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_lst_bm_store_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true表示执行成功,false表示执行失败 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstfundbill/AlibabaLstTradeOrderFundbillQueryAPIRequest.go b/model/lstfundbill/AlibabaLstTradeOrderFundbillQueryAPIRequest.go new file mode 100644 index 0000000000..dfcc7ea37b --- /dev/null +++ b/model/lstfundbill/AlibabaLstTradeOrderFundbillQueryAPIRequest.go @@ -0,0 +1,94 @@ +package lstfundbill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +结算明细数据查询(品牌商视角) API请求 +alibaba.lst.trade.order.fundbill.query + +按照指定日期提供交易账单维度的结算明细数据,比供应商工作台上的结算账单还多一些数据项。 +*/ +type AlibabaLstTradeOrderFundbillQueryAPIRequest struct { + model.Params + // 每页最大记录数 + _size int64 + // 账单日期,格式:yyyy-MM-dd + _billDate string + // 页码 + _page int64 + // 为true时,返回相应的商品详细信息,item_id和unit + _needItemDetail bool +} + +// 初始化AlibabaLstTradeOrderFundbillQueryAPIRequest对象 +func NewAlibabaLstTradeOrderFundbillQueryRequest() *AlibabaLstTradeOrderFundbillQueryAPIRequest{ + return &AlibabaLstTradeOrderFundbillQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstTradeOrderFundbillQueryAPIRequest) GetApiMethodName() string { + return "alibaba.lst.trade.order.fundbill.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstTradeOrderFundbillQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Size Setter +// 每页最大记录数 +func (r *AlibabaLstTradeOrderFundbillQueryAPIRequest) SetSize(_size int64) error { + r._size = _size + r.Set("size", _size) + return nil +} + +// Size Getter +func (r AlibabaLstTradeOrderFundbillQueryAPIRequest) GetSize() int64 { + return r._size +} +// BillDate Setter +// 账单日期,格式:yyyy-MM-dd +func (r *AlibabaLstTradeOrderFundbillQueryAPIRequest) SetBillDate(_billDate string) error { + r._billDate = _billDate + r.Set("bill_date", _billDate) + return nil +} + +// BillDate Getter +func (r AlibabaLstTradeOrderFundbillQueryAPIRequest) GetBillDate() string { + return r._billDate +} +// Page Setter +// 页码 +func (r *AlibabaLstTradeOrderFundbillQueryAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaLstTradeOrderFundbillQueryAPIRequest) GetPage() int64 { + return r._page +} +// NeedItemDetail Setter +// 为true时,返回相应的商品详细信息,item_id和unit +func (r *AlibabaLstTradeOrderFundbillQueryAPIRequest) SetNeedItemDetail(_needItemDetail bool) error { + r._needItemDetail = _needItemDetail + r.Set("need_item_detail", _needItemDetail) + return nil +} + +// NeedItemDetail Getter +func (r AlibabaLstTradeOrderFundbillQueryAPIRequest) GetNeedItemDetail() bool { + return r._needItemDetail +} diff --git a/model/lstfundbill/AlibabaLstTradeOrderFundbillQueryAPIResponse.go b/model/lstfundbill/AlibabaLstTradeOrderFundbillQueryAPIResponse.go new file mode 100644 index 0000000000..de3950addf --- /dev/null +++ b/model/lstfundbill/AlibabaLstTradeOrderFundbillQueryAPIResponse.go @@ -0,0 +1,27 @@ +package lstfundbill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +结算明细数据查询(品牌商视角) API返回值 +alibaba.lst.trade.order.fundbill.query + +按照指定日期提供交易账单维度的结算明细数据,比供应商工作台上的结算账单还多一些数据项。 +*/ +type AlibabaLstTradeOrderFundbillQueryAPIResponse struct { + model.CommonResponse + AlibabaLstTradeOrderFundbillQueryAPIResponseModel +} + +// 结算明细数据查询(品牌商视角) 成功返回结果 +type AlibabaLstTradeOrderFundbillQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_trade_order_fundbill_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 包装类 + Result *PagedResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstfundbill/AlibabaLstTradeOrderFundbillQueryResponse.go b/model/lstfundbill/AlibabaLstTradeOrderFundbillQueryResponse.go deleted file mode 100644 index 0e31095309..0000000000 --- a/model/lstfundbill/AlibabaLstTradeOrderFundbillQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstfundbill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -结算明细数据查询(品牌商视角) API返回值 -alibaba.lst.trade.order.fundbill.query - -按照指定日期提供交易账单维度的结算明细数据,比供应商工作台上的结算账单还多一些数据项。 -*/ -type AlibabaLstTradeOrderFundbillQueryAPIResponse struct { - model.CommonResponse - AlibabaLstTradeOrderFundbillQueryResponse -} - -// 结算明细数据查询(品牌商视角) 成功返回结果 -type AlibabaLstTradeOrderFundbillQueryResponse struct { - XMLName xml.Name `xml:"alibaba_lst_trade_order_fundbill_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 包装类 - Result *PagedResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstfundbill/AlibabaLstTradeSellerOrderFundbillListQueryAPIRequest.go b/model/lstfundbill/AlibabaLstTradeSellerOrderFundbillListQueryAPIRequest.go new file mode 100644 index 0000000000..a1322e2f7b --- /dev/null +++ b/model/lstfundbill/AlibabaLstTradeSellerOrderFundbillListQueryAPIRequest.go @@ -0,0 +1,80 @@ +package lstfundbill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +结算明细数据查询(卖家视角) API请求 +alibaba.lst.trade.seller.order.fundbill.list.query + +提供For供应商的结算接口,以交易账单维度提供开放数据,满足供应商自动化结算的诉求 +*/ +type AlibabaLstTradeSellerOrderFundbillListQueryAPIRequest struct { + model.Params + // 每页最大主订单数,注意:返回的content_list数据按照子订单维度展开 + _size int64 + // 账单日期,格式:yyyy-MM-dd + _billDate string + // 页码 + _page int64 +} + +// 初始化AlibabaLstTradeSellerOrderFundbillListQueryAPIRequest对象 +func NewAlibabaLstTradeSellerOrderFundbillListQueryRequest() *AlibabaLstTradeSellerOrderFundbillListQueryAPIRequest{ + return &AlibabaLstTradeSellerOrderFundbillListQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstTradeSellerOrderFundbillListQueryAPIRequest) GetApiMethodName() string { + return "alibaba.lst.trade.seller.order.fundbill.list.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstTradeSellerOrderFundbillListQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Size Setter +// 每页最大主订单数,注意:返回的content_list数据按照子订单维度展开 +func (r *AlibabaLstTradeSellerOrderFundbillListQueryAPIRequest) SetSize(_size int64) error { + r._size = _size + r.Set("size", _size) + return nil +} + +// Size Getter +func (r AlibabaLstTradeSellerOrderFundbillListQueryAPIRequest) GetSize() int64 { + return r._size +} +// BillDate Setter +// 账单日期,格式:yyyy-MM-dd +func (r *AlibabaLstTradeSellerOrderFundbillListQueryAPIRequest) SetBillDate(_billDate string) error { + r._billDate = _billDate + r.Set("bill_date", _billDate) + return nil +} + +// BillDate Getter +func (r AlibabaLstTradeSellerOrderFundbillListQueryAPIRequest) GetBillDate() string { + return r._billDate +} +// Page Setter +// 页码 +func (r *AlibabaLstTradeSellerOrderFundbillListQueryAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaLstTradeSellerOrderFundbillListQueryAPIRequest) GetPage() int64 { + return r._page +} diff --git a/model/lstfundbill/AlibabaLstTradeSellerOrderFundbillListQueryAPIResponse.go b/model/lstfundbill/AlibabaLstTradeSellerOrderFundbillListQueryAPIResponse.go new file mode 100644 index 0000000000..ffe1036d08 --- /dev/null +++ b/model/lstfundbill/AlibabaLstTradeSellerOrderFundbillListQueryAPIResponse.go @@ -0,0 +1,27 @@ +package lstfundbill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +结算明细数据查询(卖家视角) API返回值 +alibaba.lst.trade.seller.order.fundbill.list.query + +提供For供应商的结算接口,以交易账单维度提供开放数据,满足供应商自动化结算的诉求 +*/ +type AlibabaLstTradeSellerOrderFundbillListQueryAPIResponse struct { + model.CommonResponse + AlibabaLstTradeSellerOrderFundbillListQueryAPIResponseModel +} + +// 结算明细数据查询(卖家视角) 成功返回结果 +type AlibabaLstTradeSellerOrderFundbillListQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_trade_seller_order_fundbill_list_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 包装类 + Result *PagedResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstfundbill/AlibabaLstTradeSellerOrderFundbillListQueryResponse.go b/model/lstfundbill/AlibabaLstTradeSellerOrderFundbillListQueryResponse.go deleted file mode 100644 index 33bb19290d..0000000000 --- a/model/lstfundbill/AlibabaLstTradeSellerOrderFundbillListQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstfundbill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -结算明细数据查询(卖家视角) API返回值 -alibaba.lst.trade.seller.order.fundbill.list.query - -提供For供应商的结算接口,以交易账单维度提供开放数据,满足供应商自动化结算的诉求 -*/ -type AlibabaLstTradeSellerOrderFundbillListQueryAPIResponse struct { - model.CommonResponse - AlibabaLstTradeSellerOrderFundbillListQueryResponse -} - -// 结算明细数据查询(卖家视角) 成功返回结果 -type AlibabaLstTradeSellerOrderFundbillListQueryResponse struct { - XMLName xml.Name `xml:"alibaba_lst_trade_seller_order_fundbill_list_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 包装类 - Result *PagedResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lsticitem/AlibabaLstIcItemInfoQueryAPIRequest.go b/model/lsticitem/AlibabaLstIcItemInfoQueryAPIRequest.go new file mode 100644 index 0000000000..cee3ffa3e0 --- /dev/null +++ b/model/lsticitem/AlibabaLstIcItemInfoQueryAPIRequest.go @@ -0,0 +1,52 @@ +package lsticitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品信息查询 API请求 +alibaba.lst.ic.item.info.query + +查询商品信息 +*/ +type AlibabaLstIcItemInfoQueryAPIRequest struct { + model.Params + // 零售通商品查询参数 + _query *LstItemListParam +} + +// 初始化AlibabaLstIcItemInfoQueryAPIRequest对象 +func NewAlibabaLstIcItemInfoQueryRequest() *AlibabaLstIcItemInfoQueryAPIRequest{ + return &AlibabaLstIcItemInfoQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstIcItemInfoQueryAPIRequest) GetApiMethodName() string { + return "alibaba.lst.ic.item.info.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstIcItemInfoQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 零售通商品查询参数 +func (r *AlibabaLstIcItemInfoQueryAPIRequest) SetQuery(_query *LstItemListParam) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaLstIcItemInfoQueryAPIRequest) GetQuery() *LstItemListParam { + return r._query +} diff --git a/model/lsticitem/AlibabaLstIcItemInfoQueryAPIResponse.go b/model/lsticitem/AlibabaLstIcItemInfoQueryAPIResponse.go new file mode 100644 index 0000000000..8b12c2b55f --- /dev/null +++ b/model/lsticitem/AlibabaLstIcItemInfoQueryAPIResponse.go @@ -0,0 +1,27 @@ +package lsticitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品信息查询 API返回值 +alibaba.lst.ic.item.info.query + +查询商品信息 +*/ +type AlibabaLstIcItemInfoQueryAPIResponse struct { + model.CommonResponse + AlibabaLstIcItemInfoQueryAPIResponseModel +} + +// 商品信息查询 成功返回结果 +type AlibabaLstIcItemInfoQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_ic_item_info_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *PagedResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lsticitem/AlibabaLstIcItemInfoQueryResponse.go b/model/lsticitem/AlibabaLstIcItemInfoQueryResponse.go deleted file mode 100644 index 25ad81b622..0000000000 --- a/model/lsticitem/AlibabaLstIcItemInfoQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lsticitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品信息查询 API返回值 -alibaba.lst.ic.item.info.query - -查询商品信息 -*/ -type AlibabaLstIcItemInfoQueryAPIResponse struct { - model.CommonResponse - AlibabaLstIcItemInfoQueryResponse -} - -// 商品信息查询 成功返回结果 -type AlibabaLstIcItemInfoQueryResponse struct { - XMLName xml.Name `xml:"alibaba_lst_ic_item_info_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *PagedResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstlogistics/AlibabaLstLogisticsSendinfoQueryAPIRequest.go b/model/lstlogistics/AlibabaLstLogisticsSendinfoQueryAPIRequest.go new file mode 100644 index 0000000000..a44622f4d2 --- /dev/null +++ b/model/lstlogistics/AlibabaLstLogisticsSendinfoQueryAPIRequest.go @@ -0,0 +1,52 @@ +package lstlogistics + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商-异云-查询主订单包含的物流单 API请求 +alibaba.lst.logistics.sendinfo.query + +查询主订单包含的物流单 +*/ +type AlibabaLstLogisticsSendinfoQueryAPIRequest struct { + model.Params + // 入参 + _query *LstLogisticsInfoQuery +} + +// 初始化AlibabaLstLogisticsSendinfoQueryAPIRequest对象 +func NewAlibabaLstLogisticsSendinfoQueryRequest() *AlibabaLstLogisticsSendinfoQueryAPIRequest{ + return &AlibabaLstLogisticsSendinfoQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstLogisticsSendinfoQueryAPIRequest) GetApiMethodName() string { + return "alibaba.lst.logistics.sendinfo.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstLogisticsSendinfoQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 入参 +func (r *AlibabaLstLogisticsSendinfoQueryAPIRequest) SetQuery(_query *LstLogisticsInfoQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaLstLogisticsSendinfoQueryAPIRequest) GetQuery() *LstLogisticsInfoQuery { + return r._query +} diff --git a/model/lstlogistics/AlibabaLstLogisticsSendinfoQueryAPIResponse.go b/model/lstlogistics/AlibabaLstLogisticsSendinfoQueryAPIResponse.go new file mode 100644 index 0000000000..5e7da2256d --- /dev/null +++ b/model/lstlogistics/AlibabaLstLogisticsSendinfoQueryAPIResponse.go @@ -0,0 +1,27 @@ +package lstlogistics + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商-异云-查询主订单包含的物流单 API返回值 +alibaba.lst.logistics.sendinfo.query + +查询主订单包含的物流单 +*/ +type AlibabaLstLogisticsSendinfoQueryAPIResponse struct { + model.CommonResponse + AlibabaLstLogisticsSendinfoQueryAPIResponseModel +} + +// 供应商-异云-查询主订单包含的物流单 成功返回结果 +type AlibabaLstLogisticsSendinfoQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_logistics_sendinfo_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaLstLogisticsSendinfoQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstlogistics/AlibabaLstLogisticsSendinfoQueryResponse.go b/model/lstlogistics/AlibabaLstLogisticsSendinfoQueryResponse.go deleted file mode 100644 index a9c90a153c..0000000000 --- a/model/lstlogistics/AlibabaLstLogisticsSendinfoQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstlogistics - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商-异云-查询主订单包含的物流单 API返回值 -alibaba.lst.logistics.sendinfo.query - -查询主订单包含的物流单 -*/ -type AlibabaLstLogisticsSendinfoQueryAPIResponse struct { - model.CommonResponse - AlibabaLstLogisticsSendinfoQueryResponse -} - -// 供应商-异云-查询主订单包含的物流单 成功返回结果 -type AlibabaLstLogisticsSendinfoQueryResponse struct { - XMLName xml.Name `xml:"alibaba_lst_logistics_sendinfo_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaLstLogisticsSendinfoQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstlogistics/AlibabaLstLogisticsThirdpartCompanyListAPIRequest.go b/model/lstlogistics/AlibabaLstLogisticsThirdpartCompanyListAPIRequest.go new file mode 100644 index 0000000000..471733da9a --- /dev/null +++ b/model/lstlogistics/AlibabaLstLogisticsThirdpartCompanyListAPIRequest.go @@ -0,0 +1,52 @@ +package lstlogistics + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商-异云-第三方物流公司列表 API请求 +alibaba.lst.logistics.thirdpart.company.list + +异地云仓发货时,需填写的第三方物流公司列表 +*/ +type AlibabaLstLogisticsThirdpartCompanyListAPIRequest struct { + model.Params + // 入参 + _query *LstLogisticsCompanyQuery +} + +// 初始化AlibabaLstLogisticsThirdpartCompanyListAPIRequest对象 +func NewAlibabaLstLogisticsThirdpartCompanyListRequest() *AlibabaLstLogisticsThirdpartCompanyListAPIRequest{ + return &AlibabaLstLogisticsThirdpartCompanyListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstLogisticsThirdpartCompanyListAPIRequest) GetApiMethodName() string { + return "alibaba.lst.logistics.thirdpart.company.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstLogisticsThirdpartCompanyListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 入参 +func (r *AlibabaLstLogisticsThirdpartCompanyListAPIRequest) SetQuery(_query *LstLogisticsCompanyQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaLstLogisticsThirdpartCompanyListAPIRequest) GetQuery() *LstLogisticsCompanyQuery { + return r._query +} diff --git a/model/lstlogistics/AlibabaLstLogisticsThirdpartCompanyListAPIResponse.go b/model/lstlogistics/AlibabaLstLogisticsThirdpartCompanyListAPIResponse.go new file mode 100644 index 0000000000..3ceabce46d --- /dev/null +++ b/model/lstlogistics/AlibabaLstLogisticsThirdpartCompanyListAPIResponse.go @@ -0,0 +1,27 @@ +package lstlogistics + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商-异云-第三方物流公司列表 API返回值 +alibaba.lst.logistics.thirdpart.company.list + +异地云仓发货时,需填写的第三方物流公司列表 +*/ +type AlibabaLstLogisticsThirdpartCompanyListAPIResponse struct { + model.CommonResponse + AlibabaLstLogisticsThirdpartCompanyListAPIResponseModel +} + +// 供应商-异云-第三方物流公司列表 成功返回结果 +type AlibabaLstLogisticsThirdpartCompanyListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_logistics_thirdpart_company_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回内容 + ContentList []Content `json:"content_list,omitempty" xml:"content_list>content,omitempty"` +} diff --git a/model/lstlogistics/AlibabaLstLogisticsThirdpartCompanyListResponse.go b/model/lstlogistics/AlibabaLstLogisticsThirdpartCompanyListResponse.go deleted file mode 100644 index 078f7252db..0000000000 --- a/model/lstlogistics/AlibabaLstLogisticsThirdpartCompanyListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstlogistics - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商-异云-第三方物流公司列表 API返回值 -alibaba.lst.logistics.thirdpart.company.list - -异地云仓发货时,需填写的第三方物流公司列表 -*/ -type AlibabaLstLogisticsThirdpartCompanyListAPIResponse struct { - model.CommonResponse - AlibabaLstLogisticsThirdpartCompanyListResponse -} - -// 供应商-异云-第三方物流公司列表 成功返回结果 -type AlibabaLstLogisticsThirdpartCompanyListResponse struct { - XMLName xml.Name `xml:"alibaba_lst_logistics_thirdpart_company_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回内容 - ContentList []Content `json:"content_list,omitempty" xml:"content_list>content,omitempty"` -} diff --git a/model/lstlogistics/AlibabaLstLogisticsThirdpartSendAPIRequest.go b/model/lstlogistics/AlibabaLstLogisticsThirdpartSendAPIRequest.go new file mode 100644 index 0000000000..38e7ea2cb7 --- /dev/null +++ b/model/lstlogistics/AlibabaLstLogisticsThirdpartSendAPIRequest.go @@ -0,0 +1,52 @@ +package lstlogistics + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商-异云-使用第三方物流发货 API请求 +alibaba.lst.logistics.thirdpart.send + +异地云仓的订单,使用第三方物流的发货方式来变更订单发货状态 +*/ +type AlibabaLstLogisticsThirdpartSendAPIRequest struct { + model.Params + // 入参 + _param *SendOfflineOrderParam +} + +// 初始化AlibabaLstLogisticsThirdpartSendAPIRequest对象 +func NewAlibabaLstLogisticsThirdpartSendRequest() *AlibabaLstLogisticsThirdpartSendAPIRequest{ + return &AlibabaLstLogisticsThirdpartSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstLogisticsThirdpartSendAPIRequest) GetApiMethodName() string { + return "alibaba.lst.logistics.thirdpart.send" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstLogisticsThirdpartSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *AlibabaLstLogisticsThirdpartSendAPIRequest) SetParam(_param *SendOfflineOrderParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaLstLogisticsThirdpartSendAPIRequest) GetParam() *SendOfflineOrderParam { + return r._param +} diff --git a/model/lstlogistics/AlibabaLstLogisticsThirdpartSendAPIResponse.go b/model/lstlogistics/AlibabaLstLogisticsThirdpartSendAPIResponse.go new file mode 100644 index 0000000000..130906409c --- /dev/null +++ b/model/lstlogistics/AlibabaLstLogisticsThirdpartSendAPIResponse.go @@ -0,0 +1,27 @@ +package lstlogistics + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商-异云-使用第三方物流发货 API返回值 +alibaba.lst.logistics.thirdpart.send + +异地云仓的订单,使用第三方物流的发货方式来变更订单发货状态 +*/ +type AlibabaLstLogisticsThirdpartSendAPIResponse struct { + model.CommonResponse + AlibabaLstLogisticsThirdpartSendAPIResponseModel +} + +// 供应商-异云-使用第三方物流发货 成功返回结果 +type AlibabaLstLogisticsThirdpartSendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_logistics_thirdpart_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaLstLogisticsThirdpartSendResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstlogistics/AlibabaLstLogisticsThirdpartSendResponse.go b/model/lstlogistics/AlibabaLstLogisticsThirdpartSendResponse.go deleted file mode 100644 index 66620dc0a6..0000000000 --- a/model/lstlogistics/AlibabaLstLogisticsThirdpartSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstlogistics - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商-异云-使用第三方物流发货 API返回值 -alibaba.lst.logistics.thirdpart.send - -异地云仓的订单,使用第三方物流的发货方式来变更订单发货状态 -*/ -type AlibabaLstLogisticsThirdpartSendAPIResponse struct { - model.CommonResponse - AlibabaLstLogisticsThirdpartSendResponse -} - -// 供应商-异云-使用第三方物流发货 成功返回结果 -type AlibabaLstLogisticsThirdpartSendResponse struct { - XMLName xml.Name `xml:"alibaba_lst_logistics_thirdpart_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaLstLogisticsThirdpartSendResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstlogistics/AlibabaLstLogisticsTraceQueryAPIRequest.go b/model/lstlogistics/AlibabaLstLogisticsTraceQueryAPIRequest.go new file mode 100644 index 0000000000..7c9e559336 --- /dev/null +++ b/model/lstlogistics/AlibabaLstLogisticsTraceQueryAPIRequest.go @@ -0,0 +1,52 @@ +package lstlogistics + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商-异云-查询运单物流追踪信息 API请求 +alibaba.lst.logistics.trace.query + +查询LP单物流追踪信息 +*/ +type AlibabaLstLogisticsTraceQueryAPIRequest struct { + model.Params + // 入参 + _query *LstLogisticsTraceQuery +} + +// 初始化AlibabaLstLogisticsTraceQueryAPIRequest对象 +func NewAlibabaLstLogisticsTraceQueryRequest() *AlibabaLstLogisticsTraceQueryAPIRequest{ + return &AlibabaLstLogisticsTraceQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstLogisticsTraceQueryAPIRequest) GetApiMethodName() string { + return "alibaba.lst.logistics.trace.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstLogisticsTraceQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 入参 +func (r *AlibabaLstLogisticsTraceQueryAPIRequest) SetQuery(_query *LstLogisticsTraceQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaLstLogisticsTraceQueryAPIRequest) GetQuery() *LstLogisticsTraceQuery { + return r._query +} diff --git a/model/lstlogistics/AlibabaLstLogisticsTraceQueryAPIResponse.go b/model/lstlogistics/AlibabaLstLogisticsTraceQueryAPIResponse.go new file mode 100644 index 0000000000..19186c4212 --- /dev/null +++ b/model/lstlogistics/AlibabaLstLogisticsTraceQueryAPIResponse.go @@ -0,0 +1,27 @@ +package lstlogistics + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商-异云-查询运单物流追踪信息 API返回值 +alibaba.lst.logistics.trace.query + +查询LP单物流追踪信息 +*/ +type AlibabaLstLogisticsTraceQueryAPIResponse struct { + model.CommonResponse + AlibabaLstLogisticsTraceQueryAPIResponseModel +} + +// 供应商-异云-查询运单物流追踪信息 成功返回结果 +type AlibabaLstLogisticsTraceQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_logistics_trace_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaLstLogisticsTraceQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstlogistics/AlibabaLstLogisticsTraceQueryResponse.go b/model/lstlogistics/AlibabaLstLogisticsTraceQueryResponse.go deleted file mode 100644 index 6d2f84555f..0000000000 --- a/model/lstlogistics/AlibabaLstLogisticsTraceQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstlogistics - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商-异云-查询运单物流追踪信息 API返回值 -alibaba.lst.logistics.trace.query - -查询LP单物流追踪信息 -*/ -type AlibabaLstLogisticsTraceQueryAPIResponse struct { - model.CommonResponse - AlibabaLstLogisticsTraceQueryResponse -} - -// 供应商-异云-查询运单物流追踪信息 成功返回结果 -type AlibabaLstLogisticsTraceQueryResponse struct { - XMLName xml.Name `xml:"alibaba_lst_logistics_trace_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaLstLogisticsTraceQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstlogistics/AlibabaLstShiporderCancelAPIRequest.go b/model/lstlogistics/AlibabaLstShiporderCancelAPIRequest.go new file mode 100644 index 0000000000..7a6f54ef33 --- /dev/null +++ b/model/lstlogistics/AlibabaLstShiporderCancelAPIRequest.go @@ -0,0 +1,80 @@ +package lstlogistics + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售通发货单取消 API请求 +alibaba.lst.shiporder.cancel + +通过该接口可以取消零售通运保保发货单,并处理相关业务流程。 +*/ +type AlibabaLstShiporderCancelAPIRequest struct { + model.Params + // 取消原因 + _reason string + // 订单号 + _outOrderId string + // 需要退款的明细ID + _detailOrderIds []string +} + +// 初始化AlibabaLstShiporderCancelAPIRequest对象 +func NewAlibabaLstShiporderCancelRequest() *AlibabaLstShiporderCancelAPIRequest{ + return &AlibabaLstShiporderCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstShiporderCancelAPIRequest) GetApiMethodName() string { + return "alibaba.lst.shiporder.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstShiporderCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Reason Setter +// 取消原因 +func (r *AlibabaLstShiporderCancelAPIRequest) SetReason(_reason string) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r AlibabaLstShiporderCancelAPIRequest) GetReason() string { + return r._reason +} +// OutOrderId Setter +// 订单号 +func (r *AlibabaLstShiporderCancelAPIRequest) SetOutOrderId(_outOrderId string) error { + r._outOrderId = _outOrderId + r.Set("out_order_id", _outOrderId) + return nil +} + +// OutOrderId Getter +func (r AlibabaLstShiporderCancelAPIRequest) GetOutOrderId() string { + return r._outOrderId +} +// DetailOrderIds Setter +// 需要退款的明细ID +func (r *AlibabaLstShiporderCancelAPIRequest) SetDetailOrderIds(_detailOrderIds []string) error { + r._detailOrderIds = _detailOrderIds + r.Set("detail_order_ids", _detailOrderIds) + return nil +} + +// DetailOrderIds Getter +func (r AlibabaLstShiporderCancelAPIRequest) GetDetailOrderIds() []string { + return r._detailOrderIds +} diff --git a/model/lstlogistics/AlibabaLstShiporderCancelAPIResponse.go b/model/lstlogistics/AlibabaLstShiporderCancelAPIResponse.go new file mode 100644 index 0000000000..a56a228f15 --- /dev/null +++ b/model/lstlogistics/AlibabaLstShiporderCancelAPIResponse.go @@ -0,0 +1,27 @@ +package lstlogistics + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售通发货单取消 API返回值 +alibaba.lst.shiporder.cancel + +通过该接口可以取消零售通运保保发货单,并处理相关业务流程。 +*/ +type AlibabaLstShiporderCancelAPIResponse struct { + model.CommonResponse + AlibabaLstShiporderCancelAPIResponseModel +} + +// 零售通发货单取消 成功返回结果 +type AlibabaLstShiporderCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_shiporder_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstlogistics/AlibabaLstShiporderCancelResponse.go b/model/lstlogistics/AlibabaLstShiporderCancelResponse.go deleted file mode 100644 index bf351cabbb..0000000000 --- a/model/lstlogistics/AlibabaLstShiporderCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstlogistics - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售通发货单取消 API返回值 -alibaba.lst.shiporder.cancel - -通过该接口可以取消零售通运保保发货单,并处理相关业务流程。 -*/ -type AlibabaLstShiporderCancelAPIResponse struct { - model.CommonResponse - AlibabaLstShiporderCancelResponse -} - -// 零售通发货单取消 成功返回结果 -type AlibabaLstShiporderCancelResponse struct { - XMLName xml.Name `xml:"alibaba_lst_shiporder_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstlogistics/AlibabaLstShiporderCreateAPIRequest.go b/model/lstlogistics/AlibabaLstShiporderCreateAPIRequest.go new file mode 100644 index 0000000000..b46c8d61ef --- /dev/null +++ b/model/lstlogistics/AlibabaLstShiporderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package lstlogistics + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售通发货单创建 API请求 +alibaba.lst.shiporder.create + +通过该接口可以创建零售通运保保发货单,并处理相关业务流程。 +*/ +type AlibabaLstShiporderCreateAPIRequest struct { + model.Params + // 创建发货单入参 + _shipOrder *LstThirdPartMainShipOrderCreateDto +} + +// 初始化AlibabaLstShiporderCreateAPIRequest对象 +func NewAlibabaLstShiporderCreateRequest() *AlibabaLstShiporderCreateAPIRequest{ + return &AlibabaLstShiporderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstShiporderCreateAPIRequest) GetApiMethodName() string { + return "alibaba.lst.shiporder.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstShiporderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShipOrder Setter +// 创建发货单入参 +func (r *AlibabaLstShiporderCreateAPIRequest) SetShipOrder(_shipOrder *LstThirdPartMainShipOrderCreateDto) error { + r._shipOrder = _shipOrder + r.Set("ship_order", _shipOrder) + return nil +} + +// ShipOrder Getter +func (r AlibabaLstShiporderCreateAPIRequest) GetShipOrder() *LstThirdPartMainShipOrderCreateDto { + return r._shipOrder +} diff --git a/model/lstlogistics/AlibabaLstShiporderCreateAPIResponse.go b/model/lstlogistics/AlibabaLstShiporderCreateAPIResponse.go new file mode 100644 index 0000000000..662a4f2e2e --- /dev/null +++ b/model/lstlogistics/AlibabaLstShiporderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package lstlogistics + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售通发货单创建 API返回值 +alibaba.lst.shiporder.create + +通过该接口可以创建零售通运保保发货单,并处理相关业务流程。 +*/ +type AlibabaLstShiporderCreateAPIResponse struct { + model.CommonResponse + AlibabaLstShiporderCreateAPIResponseModel +} + +// 零售通发货单创建 成功返回结果 +type AlibabaLstShiporderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_shiporder_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstlogistics/AlibabaLstShiporderCreateResponse.go b/model/lstlogistics/AlibabaLstShiporderCreateResponse.go deleted file mode 100644 index 5ad9d521fb..0000000000 --- a/model/lstlogistics/AlibabaLstShiporderCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstlogistics - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售通发货单创建 API返回值 -alibaba.lst.shiporder.create - -通过该接口可以创建零售通运保保发货单,并处理相关业务流程。 -*/ -type AlibabaLstShiporderCreateAPIResponse struct { - model.CommonResponse - AlibabaLstShiporderCreateResponse -} - -// 零售通发货单创建 成功返回结果 -type AlibabaLstShiporderCreateResponse struct { - XMLName xml.Name `xml:"alibaba_lst_shiporder_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstlogistics/AlibabaLstShiporderQueryAPIRequest.go b/model/lstlogistics/AlibabaLstShiporderQueryAPIRequest.go new file mode 100644 index 0000000000..409db5d9e2 --- /dev/null +++ b/model/lstlogistics/AlibabaLstShiporderQueryAPIRequest.go @@ -0,0 +1,66 @@ +package lstlogistics + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售通发货单查询 API请求 +alibaba.lst.shiporder.query + +通过该接口可以查询零售通运保保发货单,并处理相关业务流程。 +*/ +type AlibabaLstShiporderQueryAPIRequest struct { + model.Params + // 零售通 + _source string + // 订单 + _outOrderId string +} + +// 初始化AlibabaLstShiporderQueryAPIRequest对象 +func NewAlibabaLstShiporderQueryRequest() *AlibabaLstShiporderQueryAPIRequest{ + return &AlibabaLstShiporderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstShiporderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.lst.shiporder.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstShiporderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Source Setter +// 零售通 +func (r *AlibabaLstShiporderQueryAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r AlibabaLstShiporderQueryAPIRequest) GetSource() string { + return r._source +} +// OutOrderId Setter +// 订单 +func (r *AlibabaLstShiporderQueryAPIRequest) SetOutOrderId(_outOrderId string) error { + r._outOrderId = _outOrderId + r.Set("out_order_id", _outOrderId) + return nil +} + +// OutOrderId Getter +func (r AlibabaLstShiporderQueryAPIRequest) GetOutOrderId() string { + return r._outOrderId +} diff --git a/model/lstlogistics/AlibabaLstShiporderQueryAPIResponse.go b/model/lstlogistics/AlibabaLstShiporderQueryAPIResponse.go new file mode 100644 index 0000000000..4667b8889f --- /dev/null +++ b/model/lstlogistics/AlibabaLstShiporderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package lstlogistics + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售通发货单查询 API返回值 +alibaba.lst.shiporder.query + +通过该接口可以查询零售通运保保发货单,并处理相关业务流程。 +*/ +type AlibabaLstShiporderQueryAPIResponse struct { + model.CommonResponse + AlibabaLstShiporderQueryAPIResponseModel +} + +// 零售通发货单查询 成功返回结果 +type AlibabaLstShiporderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_shiporder_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstlogistics/AlibabaLstShiporderQueryResponse.go b/model/lstlogistics/AlibabaLstShiporderQueryResponse.go deleted file mode 100644 index 307216e7ae..0000000000 --- a/model/lstlogistics/AlibabaLstShiporderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstlogistics - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售通发货单查询 API返回值 -alibaba.lst.shiporder.query - -通过该接口可以查询零售通运保保发货单,并处理相关业务流程。 -*/ -type AlibabaLstShiporderQueryAPIResponse struct { - model.CommonResponse - AlibabaLstShiporderQueryResponse -} - -// 零售通发货单查询 成功返回结果 -type AlibabaLstShiporderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_lst_shiporder_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstlogistics2/AlibabaLstLogisticsNotraceSendAPIRequest.go b/model/lstlogistics2/AlibabaLstLogisticsNotraceSendAPIRequest.go new file mode 100644 index 0000000000..e7a5912ed0 --- /dev/null +++ b/model/lstlogistics2/AlibabaLstLogisticsNotraceSendAPIRequest.go @@ -0,0 +1,52 @@ +package lstlogistics2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商-异云-无需物流发货 API请求 +alibaba.lst.logistics.notrace.send + +异地云仓的订单,使用无需物流的发货方式来变更订单发货状态 +*/ +type AlibabaLstLogisticsNotraceSendAPIRequest struct { + model.Params + // 入参 + _param *SendDummyOrderParam +} + +// 初始化AlibabaLstLogisticsNotraceSendAPIRequest对象 +func NewAlibabaLstLogisticsNotraceSendRequest() *AlibabaLstLogisticsNotraceSendAPIRequest{ + return &AlibabaLstLogisticsNotraceSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstLogisticsNotraceSendAPIRequest) GetApiMethodName() string { + return "alibaba.lst.logistics.notrace.send" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstLogisticsNotraceSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *AlibabaLstLogisticsNotraceSendAPIRequest) SetParam(_param *SendDummyOrderParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaLstLogisticsNotraceSendAPIRequest) GetParam() *SendDummyOrderParam { + return r._param +} diff --git a/model/lstlogistics2/AlibabaLstLogisticsNotraceSendAPIResponse.go b/model/lstlogistics2/AlibabaLstLogisticsNotraceSendAPIResponse.go new file mode 100644 index 0000000000..d418d040d7 --- /dev/null +++ b/model/lstlogistics2/AlibabaLstLogisticsNotraceSendAPIResponse.go @@ -0,0 +1,27 @@ +package lstlogistics2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商-异云-无需物流发货 API返回值 +alibaba.lst.logistics.notrace.send + +异地云仓的订单,使用无需物流的发货方式来变更订单发货状态 +*/ +type AlibabaLstLogisticsNotraceSendAPIResponse struct { + model.CommonResponse + AlibabaLstLogisticsNotraceSendAPIResponseModel +} + +// 供应商-异云-无需物流发货 成功返回结果 +type AlibabaLstLogisticsNotraceSendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_logistics_notrace_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaLstLogisticsNotraceSendResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstlogistics2/AlibabaLstLogisticsNotraceSendResponse.go b/model/lstlogistics2/AlibabaLstLogisticsNotraceSendResponse.go deleted file mode 100644 index 3391fb7c93..0000000000 --- a/model/lstlogistics2/AlibabaLstLogisticsNotraceSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstlogistics2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商-异云-无需物流发货 API返回值 -alibaba.lst.logistics.notrace.send - -异地云仓的订单,使用无需物流的发货方式来变更订单发货状态 -*/ -type AlibabaLstLogisticsNotraceSendAPIResponse struct { - model.CommonResponse - AlibabaLstLogisticsNotraceSendResponse -} - -// 供应商-异云-无需物流发货 成功返回结果 -type AlibabaLstLogisticsNotraceSendResponse struct { - XMLName xml.Name `xml:"alibaba_lst_logistics_notrace_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaLstLogisticsNotraceSendResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderCancelAPIRequest.go b/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderCancelAPIRequest.go new file mode 100644 index 0000000000..f3b2e9f9cb --- /dev/null +++ b/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderCancelAPIRequest.go @@ -0,0 +1,52 @@ +package lstlogistics2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商-线下订单-取消接口 API请求 +alibaba.lst.trade.seller.offline.order.cancel + +供应商线下订单数据上传之后取消 +*/ +type AlibabaLstTradeSellerOfflineOrderCancelAPIRequest struct { + model.Params + // 入参 + _offlineOrderCancalParam *LstOfflineOrderCancalParam +} + +// 初始化AlibabaLstTradeSellerOfflineOrderCancelAPIRequest对象 +func NewAlibabaLstTradeSellerOfflineOrderCancelRequest() *AlibabaLstTradeSellerOfflineOrderCancelAPIRequest{ + return &AlibabaLstTradeSellerOfflineOrderCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstTradeSellerOfflineOrderCancelAPIRequest) GetApiMethodName() string { + return "alibaba.lst.trade.seller.offline.order.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstTradeSellerOfflineOrderCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OfflineOrderCancalParam Setter +// 入参 +func (r *AlibabaLstTradeSellerOfflineOrderCancelAPIRequest) SetOfflineOrderCancalParam(_offlineOrderCancalParam *LstOfflineOrderCancalParam) error { + r._offlineOrderCancalParam = _offlineOrderCancalParam + r.Set("offline_order_cancal_param", _offlineOrderCancalParam) + return nil +} + +// OfflineOrderCancalParam Getter +func (r AlibabaLstTradeSellerOfflineOrderCancelAPIRequest) GetOfflineOrderCancalParam() *LstOfflineOrderCancalParam { + return r._offlineOrderCancalParam +} diff --git a/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderCancelAPIResponse.go b/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderCancelAPIResponse.go new file mode 100644 index 0000000000..9359cbd65e --- /dev/null +++ b/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderCancelAPIResponse.go @@ -0,0 +1,27 @@ +package lstlogistics2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商-线下订单-取消接口 API返回值 +alibaba.lst.trade.seller.offline.order.cancel + +供应商线下订单数据上传之后取消 +*/ +type AlibabaLstTradeSellerOfflineOrderCancelAPIResponse struct { + model.CommonResponse + AlibabaLstTradeSellerOfflineOrderCancelAPIResponseModel +} + +// 供应商-线下订单-取消接口 成功返回结果 +type AlibabaLstTradeSellerOfflineOrderCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_trade_seller_offline_order_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaLstTradeSellerOfflineOrderCancelResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderCancelResponse.go b/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderCancelResponse.go deleted file mode 100644 index 46f075616e..0000000000 --- a/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstlogistics2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商-线下订单-取消接口 API返回值 -alibaba.lst.trade.seller.offline.order.cancel - -供应商线下订单数据上传之后取消 -*/ -type AlibabaLstTradeSellerOfflineOrderCancelAPIResponse struct { - model.CommonResponse - AlibabaLstTradeSellerOfflineOrderCancelResponse -} - -// 供应商-线下订单-取消接口 成功返回结果 -type AlibabaLstTradeSellerOfflineOrderCancelResponse struct { - XMLName xml.Name `xml:"alibaba_lst_trade_seller_offline_order_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaLstTradeSellerOfflineOrderCancelResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderQueryAPIRequest.go b/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderQueryAPIRequest.go new file mode 100644 index 0000000000..7947b6134d --- /dev/null +++ b/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package lstlogistics2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商-线下订单-查询接口 API请求 +alibaba.lst.trade.seller.offline.order.query + +供应商线下订单数据上传后查询物流状态 +*/ +type AlibabaLstTradeSellerOfflineOrderQueryAPIRequest struct { + model.Params + // 入参 + _offlineOrderQueryParam *LstOfflineOrderQueryParam +} + +// 初始化AlibabaLstTradeSellerOfflineOrderQueryAPIRequest对象 +func NewAlibabaLstTradeSellerOfflineOrderQueryRequest() *AlibabaLstTradeSellerOfflineOrderQueryAPIRequest{ + return &AlibabaLstTradeSellerOfflineOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstTradeSellerOfflineOrderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.lst.trade.seller.offline.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstTradeSellerOfflineOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OfflineOrderQueryParam Setter +// 入参 +func (r *AlibabaLstTradeSellerOfflineOrderQueryAPIRequest) SetOfflineOrderQueryParam(_offlineOrderQueryParam *LstOfflineOrderQueryParam) error { + r._offlineOrderQueryParam = _offlineOrderQueryParam + r.Set("offline_order_query_param", _offlineOrderQueryParam) + return nil +} + +// OfflineOrderQueryParam Getter +func (r AlibabaLstTradeSellerOfflineOrderQueryAPIRequest) GetOfflineOrderQueryParam() *LstOfflineOrderQueryParam { + return r._offlineOrderQueryParam +} diff --git a/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderQueryAPIResponse.go b/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderQueryAPIResponse.go new file mode 100644 index 0000000000..4edc038ff2 --- /dev/null +++ b/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package lstlogistics2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商-线下订单-查询接口 API返回值 +alibaba.lst.trade.seller.offline.order.query + +供应商线下订单数据上传后查询物流状态 +*/ +type AlibabaLstTradeSellerOfflineOrderQueryAPIResponse struct { + model.CommonResponse + AlibabaLstTradeSellerOfflineOrderQueryAPIResponseModel +} + +// 供应商-线下订单-查询接口 成功返回结果 +type AlibabaLstTradeSellerOfflineOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_trade_seller_offline_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaLstTradeSellerOfflineOrderQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderQueryResponse.go b/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderQueryResponse.go deleted file mode 100644 index 99ec9a8d1a..0000000000 --- a/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstlogistics2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商-线下订单-查询接口 API返回值 -alibaba.lst.trade.seller.offline.order.query - -供应商线下订单数据上传后查询物流状态 -*/ -type AlibabaLstTradeSellerOfflineOrderQueryAPIResponse struct { - model.CommonResponse - AlibabaLstTradeSellerOfflineOrderQueryResponse -} - -// 供应商-线下订单-查询接口 成功返回结果 -type AlibabaLstTradeSellerOfflineOrderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_lst_trade_seller_offline_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaLstTradeSellerOfflineOrderQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderUploadAPIRequest.go b/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderUploadAPIRequest.go new file mode 100644 index 0000000000..c09a9b798d --- /dev/null +++ b/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderUploadAPIRequest.go @@ -0,0 +1,52 @@ +package lstlogistics2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商-线下订单-导入接口 API请求 +alibaba.lst.trade.seller.offline.order.upload + +供应商线下订单数据上传、实现和零售通本地云仓订单的共配 +*/ +type AlibabaLstTradeSellerOfflineOrderUploadAPIRequest struct { + model.Params + // 入参 + _offlineOrderUploadParam *LstOffLineOrderUploadParam +} + +// 初始化AlibabaLstTradeSellerOfflineOrderUploadAPIRequest对象 +func NewAlibabaLstTradeSellerOfflineOrderUploadRequest() *AlibabaLstTradeSellerOfflineOrderUploadAPIRequest{ + return &AlibabaLstTradeSellerOfflineOrderUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstTradeSellerOfflineOrderUploadAPIRequest) GetApiMethodName() string { + return "alibaba.lst.trade.seller.offline.order.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstTradeSellerOfflineOrderUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OfflineOrderUploadParam Setter +// 入参 +func (r *AlibabaLstTradeSellerOfflineOrderUploadAPIRequest) SetOfflineOrderUploadParam(_offlineOrderUploadParam *LstOffLineOrderUploadParam) error { + r._offlineOrderUploadParam = _offlineOrderUploadParam + r.Set("offline_order_upload_param", _offlineOrderUploadParam) + return nil +} + +// OfflineOrderUploadParam Getter +func (r AlibabaLstTradeSellerOfflineOrderUploadAPIRequest) GetOfflineOrderUploadParam() *LstOffLineOrderUploadParam { + return r._offlineOrderUploadParam +} diff --git a/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderUploadAPIResponse.go b/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderUploadAPIResponse.go new file mode 100644 index 0000000000..2d8c9516ed --- /dev/null +++ b/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderUploadAPIResponse.go @@ -0,0 +1,27 @@ +package lstlogistics2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商-线下订单-导入接口 API返回值 +alibaba.lst.trade.seller.offline.order.upload + +供应商线下订单数据上传、实现和零售通本地云仓订单的共配 +*/ +type AlibabaLstTradeSellerOfflineOrderUploadAPIResponse struct { + model.CommonResponse + AlibabaLstTradeSellerOfflineOrderUploadAPIResponseModel +} + +// 供应商-线下订单-导入接口 成功返回结果 +type AlibabaLstTradeSellerOfflineOrderUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_trade_seller_offline_order_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaLstTradeSellerOfflineOrderUploadResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderUploadResponse.go b/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderUploadResponse.go deleted file mode 100644 index 8245f603a5..0000000000 --- a/model/lstlogistics2/AlibabaLstTradeSellerOfflineOrderUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstlogistics2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商-线下订单-导入接口 API返回值 -alibaba.lst.trade.seller.offline.order.upload - -供应商线下订单数据上传、实现和零售通本地云仓订单的共配 -*/ -type AlibabaLstTradeSellerOfflineOrderUploadAPIResponse struct { - model.CommonResponse - AlibabaLstTradeSellerOfflineOrderUploadResponse -} - -// 供应商-线下订单-导入接口 成功返回结果 -type AlibabaLstTradeSellerOfflineOrderUploadResponse struct { - XMLName xml.Name `xml:"alibaba_lst_trade_seller_offline_order_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaLstTradeSellerOfflineOrderUploadResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstmarketing/AlibabaLstMarketingQuerybyorderidAPIRequest.go b/model/lstmarketing/AlibabaLstMarketingQuerybyorderidAPIRequest.go new file mode 100644 index 0000000000..42b308aba6 --- /dev/null +++ b/model/lstmarketing/AlibabaLstMarketingQuerybyorderidAPIRequest.go @@ -0,0 +1,66 @@ +package lstmarketing + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据订单查询营销信息 API请求 +alibaba.lst.marketing.querybyorderid + +根据订单查询营销信息 +*/ +type AlibabaLstMarketingQuerybyorderidAPIRequest struct { + model.Params + // 主订单 + _mainOrderId int64 + // 子订单 + _subOrderId int64 +} + +// 初始化AlibabaLstMarketingQuerybyorderidAPIRequest对象 +func NewAlibabaLstMarketingQuerybyorderidRequest() *AlibabaLstMarketingQuerybyorderidAPIRequest{ + return &AlibabaLstMarketingQuerybyorderidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstMarketingQuerybyorderidAPIRequest) GetApiMethodName() string { + return "alibaba.lst.marketing.querybyorderid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstMarketingQuerybyorderidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainOrderId Setter +// 主订单 +func (r *AlibabaLstMarketingQuerybyorderidAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r AlibabaLstMarketingQuerybyorderidAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} +// SubOrderId Setter +// 子订单 +func (r *AlibabaLstMarketingQuerybyorderidAPIRequest) SetSubOrderId(_subOrderId int64) error { + r._subOrderId = _subOrderId + r.Set("sub_order_id", _subOrderId) + return nil +} + +// SubOrderId Getter +func (r AlibabaLstMarketingQuerybyorderidAPIRequest) GetSubOrderId() int64 { + return r._subOrderId +} diff --git a/model/lstmarketing/AlibabaLstMarketingQuerybyorderidAPIResponse.go b/model/lstmarketing/AlibabaLstMarketingQuerybyorderidAPIResponse.go new file mode 100644 index 0000000000..19e0432729 --- /dev/null +++ b/model/lstmarketing/AlibabaLstMarketingQuerybyorderidAPIResponse.go @@ -0,0 +1,27 @@ +package lstmarketing + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据订单查询营销信息 API返回值 +alibaba.lst.marketing.querybyorderid + +根据订单查询营销信息 +*/ +type AlibabaLstMarketingQuerybyorderidAPIResponse struct { + model.CommonResponse + AlibabaLstMarketingQuerybyorderidAPIResponseModel +} + +// 根据订单查询营销信息 成功返回结果 +type AlibabaLstMarketingQuerybyorderidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_marketing_querybyorderid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlibabaLstMarketingQuerybyorderidResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstmarketing/AlibabaLstMarketingQuerybyorderidResponse.go b/model/lstmarketing/AlibabaLstMarketingQuerybyorderidResponse.go deleted file mode 100644 index bc051b1191..0000000000 --- a/model/lstmarketing/AlibabaLstMarketingQuerybyorderidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstmarketing - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据订单查询营销信息 API返回值 -alibaba.lst.marketing.querybyorderid - -根据订单查询营销信息 -*/ -type AlibabaLstMarketingQuerybyorderidAPIResponse struct { - model.CommonResponse - AlibabaLstMarketingQuerybyorderidResponse -} - -// 根据订单查询营销信息 成功返回结果 -type AlibabaLstMarketingQuerybyorderidResponse struct { - XMLName xml.Name `xml:"alibaba_lst_marketing_querybyorderid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlibabaLstMarketingQuerybyorderidResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstmarketing/AlibabaLstMarketingQuerybyorderidResultDto.go b/model/lstmarketing/AlibabaLstMarketingQuerybyorderidResultDto.go new file mode 100644 index 0000000000..9a8c03f6fa --- /dev/null +++ b/model/lstmarketing/AlibabaLstMarketingQuerybyorderidResultDto.go @@ -0,0 +1,13 @@ +package lstmarketing + +// AlibabaLstMarketingQuerybyorderidResultDto +type AlibabaLstMarketingQuerybyorderidResultDto struct { + // 错误信息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 订单实体 + Content *LstTopOrderDto `json:"content,omitempty" xml:"content,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/lstpos/AlibabaLstPosOpenAccountCheckissettledAPIRequest.go b/model/lstpos/AlibabaLstPosOpenAccountCheckissettledAPIRequest.go new file mode 100644 index 0000000000..a6a552305c --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenAccountCheckissettledAPIRequest.go @@ -0,0 +1,52 @@ +package lstpos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +校验当前用户是否入驻了零售通门店接口 API请求 +alibaba.lst.pos.open.account.checkissettled + +校验当前用户是否入驻了零售通门店接口 +*/ +type AlibabaLstPosOpenAccountCheckissettledAPIRequest struct { + model.Params + // 当前登录主账号userId + _userId int64 +} + +// 初始化AlibabaLstPosOpenAccountCheckissettledAPIRequest对象 +func NewAlibabaLstPosOpenAccountCheckissettledRequest() *AlibabaLstPosOpenAccountCheckissettledAPIRequest{ + return &AlibabaLstPosOpenAccountCheckissettledAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstPosOpenAccountCheckissettledAPIRequest) GetApiMethodName() string { + return "alibaba.lst.pos.open.account.checkissettled" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstPosOpenAccountCheckissettledAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 当前登录主账号userId +func (r *AlibabaLstPosOpenAccountCheckissettledAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaLstPosOpenAccountCheckissettledAPIRequest) GetUserId() int64 { + return r._userId +} diff --git a/model/lstpos/AlibabaLstPosOpenAccountCheckissettledAPIResponse.go b/model/lstpos/AlibabaLstPosOpenAccountCheckissettledAPIResponse.go new file mode 100644 index 0000000000..b4efea08cb --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenAccountCheckissettledAPIResponse.go @@ -0,0 +1,27 @@ +package lstpos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +校验当前用户是否入驻了零售通门店接口 API返回值 +alibaba.lst.pos.open.account.checkissettled + +校验当前用户是否入驻了零售通门店接口 +*/ +type AlibabaLstPosOpenAccountCheckissettledAPIResponse struct { + model.CommonResponse + AlibabaLstPosOpenAccountCheckissettledAPIResponseModel +} + +// 校验当前用户是否入驻了零售通门店接口 成功返回结果 +type AlibabaLstPosOpenAccountCheckissettledAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_pos_open_account_checkissettled_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *AlibabaLstPosOpenAccountCheckissettledResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstpos/AlibabaLstPosOpenAccountCheckissettledResponse.go b/model/lstpos/AlibabaLstPosOpenAccountCheckissettledResponse.go deleted file mode 100644 index ffc40b3126..0000000000 --- a/model/lstpos/AlibabaLstPosOpenAccountCheckissettledResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstpos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -校验当前用户是否入驻了零售通门店接口 API返回值 -alibaba.lst.pos.open.account.checkissettled - -校验当前用户是否入驻了零售通门店接口 -*/ -type AlibabaLstPosOpenAccountCheckissettledAPIResponse struct { - model.CommonResponse - AlibabaLstPosOpenAccountCheckissettledResponse -} - -// 校验当前用户是否入驻了零售通门店接口 成功返回结果 -type AlibabaLstPosOpenAccountCheckissettledResponse struct { - XMLName xml.Name `xml:"alibaba_lst_pos_open_account_checkissettled_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *AlibabaLstPosOpenAccountCheckissettledResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstpos/AlibabaLstPosOpenAccountCheckissettledResultDto.go b/model/lstpos/AlibabaLstPosOpenAccountCheckissettledResultDto.go new file mode 100644 index 0000000000..af4a886533 --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenAccountCheckissettledResultDto.go @@ -0,0 +1,13 @@ +package lstpos + +// AlibabaLstPosOpenAccountCheckissettledResultDto +type AlibabaLstPosOpenAccountCheckissettledResultDto struct { + // 错误信息描述 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 接口具体返回的业务数据对象 + Module string `json:"module,omitempty" xml:"module,omitempty"` + // 业务错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 接口调用是否成功 true:调用成功 false:调用失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/lstpos/AlibabaLstPosOpenCashierSynccashierdataAPIRequest.go b/model/lstpos/AlibabaLstPosOpenCashierSynccashierdataAPIRequest.go new file mode 100644 index 0000000000..47b5b7d8dc --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenCashierSynccashierdataAPIRequest.go @@ -0,0 +1,66 @@ +package lstpos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +收银快照同步接口(最多10条订单信息) API请求 +alibaba.lst.pos.open.cashier.synccashierdata + +收银快照同步接口(最多10条订单信息) +*/ +type AlibabaLstPosOpenCashierSynccashierdataAPIRequest struct { + model.Params + // 订单对象列表 + _cashierFlowDTOList []CashierFlowDto + // 门店对应的主账号id + _userId int64 +} + +// 初始化AlibabaLstPosOpenCashierSynccashierdataAPIRequest对象 +func NewAlibabaLstPosOpenCashierSynccashierdataRequest() *AlibabaLstPosOpenCashierSynccashierdataAPIRequest{ + return &AlibabaLstPosOpenCashierSynccashierdataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstPosOpenCashierSynccashierdataAPIRequest) GetApiMethodName() string { + return "alibaba.lst.pos.open.cashier.synccashierdata" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstPosOpenCashierSynccashierdataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CashierFlowDTOList Setter +// 订单对象列表 +func (r *AlibabaLstPosOpenCashierSynccashierdataAPIRequest) SetCashierFlowDTOList(_cashierFlowDTOList []CashierFlowDto) error { + r._cashierFlowDTOList = _cashierFlowDTOList + r.Set("cashier_flow_d_t_o_list", _cashierFlowDTOList) + return nil +} + +// CashierFlowDTOList Getter +func (r AlibabaLstPosOpenCashierSynccashierdataAPIRequest) GetCashierFlowDTOList() []CashierFlowDto { + return r._cashierFlowDTOList +} +// UserId Setter +// 门店对应的主账号id +func (r *AlibabaLstPosOpenCashierSynccashierdataAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaLstPosOpenCashierSynccashierdataAPIRequest) GetUserId() int64 { + return r._userId +} diff --git a/model/lstpos/AlibabaLstPosOpenCashierSynccashierdataAPIResponse.go b/model/lstpos/AlibabaLstPosOpenCashierSynccashierdataAPIResponse.go new file mode 100644 index 0000000000..f6bce3dcb3 --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenCashierSynccashierdataAPIResponse.go @@ -0,0 +1,27 @@ +package lstpos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +收银快照同步接口(最多10条订单信息) API返回值 +alibaba.lst.pos.open.cashier.synccashierdata + +收银快照同步接口(最多10条订单信息) +*/ +type AlibabaLstPosOpenCashierSynccashierdataAPIResponse struct { + model.CommonResponse + AlibabaLstPosOpenCashierSynccashierdataAPIResponseModel +} + +// 收银快照同步接口(最多10条订单信息) 成功返回结果 +type AlibabaLstPosOpenCashierSynccashierdataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_pos_open_cashier_synccashierdata_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应结果 + Result *AlibabaLstPosOpenCashierSynccashierdataResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstpos/AlibabaLstPosOpenCashierSynccashierdataResponse.go b/model/lstpos/AlibabaLstPosOpenCashierSynccashierdataResponse.go deleted file mode 100644 index 1a5f3045e4..0000000000 --- a/model/lstpos/AlibabaLstPosOpenCashierSynccashierdataResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstpos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -收银快照同步接口(最多10条订单信息) API返回值 -alibaba.lst.pos.open.cashier.synccashierdata - -收银快照同步接口(最多10条订单信息) -*/ -type AlibabaLstPosOpenCashierSynccashierdataAPIResponse struct { - model.CommonResponse - AlibabaLstPosOpenCashierSynccashierdataResponse -} - -// 收银快照同步接口(最多10条订单信息) 成功返回结果 -type AlibabaLstPosOpenCashierSynccashierdataResponse struct { - XMLName xml.Name `xml:"alibaba_lst_pos_open_cashier_synccashierdata_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应结果 - Result *AlibabaLstPosOpenCashierSynccashierdataResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstpos/AlibabaLstPosOpenCashierSynccashierdataResultDto.go b/model/lstpos/AlibabaLstPosOpenCashierSynccashierdataResultDto.go new file mode 100644 index 0000000000..b9297bbf25 --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenCashierSynccashierdataResultDto.go @@ -0,0 +1,13 @@ +package lstpos + +// AlibabaLstPosOpenCashierSynccashierdataResultDto +type AlibabaLstPosOpenCashierSynccashierdataResultDto struct { + // 错误消息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 单个订单处理结果 + ModuleList []ErrorResult `json:"module_list,omitempty" xml:"module_list>error_result,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 调用成功与否标示 true:成功 false:失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIRequest.go b/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIRequest.go new file mode 100644 index 0000000000..11df39382b --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIRequest.go @@ -0,0 +1,52 @@ +package lstpos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV条码库查询接口 API请求 +alibaba.lst.pos.open.goods.getgoodsbybarcode + +ISV条码库查询接口 +*/ +type AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIRequest struct { + model.Params + // 商品条码 + _barcode string +} + +// 初始化AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIRequest对象 +func NewAlibabaLstPosOpenGoodsGetgoodsbybarcodeRequest() *AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIRequest{ + return &AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIRequest) GetApiMethodName() string { + return "alibaba.lst.pos.open.goods.getgoodsbybarcode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Barcode Setter +// 商品条码 +func (r *AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIRequest) SetBarcode(_barcode string) error { + r._barcode = _barcode + r.Set("barcode", _barcode) + return nil +} + +// Barcode Getter +func (r AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIRequest) GetBarcode() string { + return r._barcode +} diff --git a/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIResponse.go b/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIResponse.go new file mode 100644 index 0000000000..2234c65da3 --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIResponse.go @@ -0,0 +1,27 @@ +package lstpos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV条码库查询接口 API返回值 +alibaba.lst.pos.open.goods.getgoodsbybarcode + +ISV条码库查询接口 +*/ +type AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIResponse struct { + model.CommonResponse + AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIResponseModel +} + +// ISV条码库查询接口 成功返回结果 +type AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_pos_open_goods_getgoodsbybarcode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *AlibabaLstPosOpenGoodsGetgoodsbybarcodeResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbybarcodeResponse.go b/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbybarcodeResponse.go deleted file mode 100644 index 47ab02017e..0000000000 --- a/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbybarcodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstpos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV条码库查询接口 API返回值 -alibaba.lst.pos.open.goods.getgoodsbybarcode - -ISV条码库查询接口 -*/ -type AlibabaLstPosOpenGoodsGetgoodsbybarcodeAPIResponse struct { - model.CommonResponse - AlibabaLstPosOpenGoodsGetgoodsbybarcodeResponse -} - -// ISV条码库查询接口 成功返回结果 -type AlibabaLstPosOpenGoodsGetgoodsbybarcodeResponse struct { - XMLName xml.Name `xml:"alibaba_lst_pos_open_goods_getgoodsbybarcode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *AlibabaLstPosOpenGoodsGetgoodsbybarcodeResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbybarcodeResultDto.go b/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbybarcodeResultDto.go new file mode 100644 index 0000000000..9b09a7fee8 --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbybarcodeResultDto.go @@ -0,0 +1,13 @@ +package lstpos + +// AlibabaLstPosOpenGoodsGetgoodsbybarcodeResultDto +type AlibabaLstPosOpenGoodsGetgoodsbybarcodeResultDto struct { + // 错误信息描述 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 接口具体返回的业务数据对象 + Module *GoodsDto `json:"module,omitempty" xml:"module,omitempty"` + // 业务错误码 + ErrorCode int64 `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 接口调用是否成功 true:调用成功 false:调用失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbypagingAPIRequest.go b/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbypagingAPIRequest.go new file mode 100644 index 0000000000..9abb7f5f6a --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbypagingAPIRequest.go @@ -0,0 +1,66 @@ +package lstpos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询用户全量的门店域商品接口(每页最多20条) API请求 +alibaba.lst.pos.open.goods.getgoodsbypaging + +分页查询用户全量的门店域商品接口(每页最多20条) +*/ +type AlibabaLstPosOpenGoodsGetgoodsbypagingAPIRequest struct { + model.Params + // 当前页码 + _page int64 + // 当前主账号userId + _userId int64 +} + +// 初始化AlibabaLstPosOpenGoodsGetgoodsbypagingAPIRequest对象 +func NewAlibabaLstPosOpenGoodsGetgoodsbypagingRequest() *AlibabaLstPosOpenGoodsGetgoodsbypagingAPIRequest{ + return &AlibabaLstPosOpenGoodsGetgoodsbypagingAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstPosOpenGoodsGetgoodsbypagingAPIRequest) GetApiMethodName() string { + return "alibaba.lst.pos.open.goods.getgoodsbypaging" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstPosOpenGoodsGetgoodsbypagingAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Page Setter +// 当前页码 +func (r *AlibabaLstPosOpenGoodsGetgoodsbypagingAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaLstPosOpenGoodsGetgoodsbypagingAPIRequest) GetPage() int64 { + return r._page +} +// UserId Setter +// 当前主账号userId +func (r *AlibabaLstPosOpenGoodsGetgoodsbypagingAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaLstPosOpenGoodsGetgoodsbypagingAPIRequest) GetUserId() int64 { + return r._userId +} diff --git a/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbypagingAPIResponse.go b/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbypagingAPIResponse.go new file mode 100644 index 0000000000..90634a9c9d --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbypagingAPIResponse.go @@ -0,0 +1,27 @@ +package lstpos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询用户全量的门店域商品接口(每页最多20条) API返回值 +alibaba.lst.pos.open.goods.getgoodsbypaging + +分页查询用户全量的门店域商品接口(每页最多20条) +*/ +type AlibabaLstPosOpenGoodsGetgoodsbypagingAPIResponse struct { + model.CommonResponse + AlibabaLstPosOpenGoodsGetgoodsbypagingAPIResponseModel +} + +// 分页查询用户全量的门店域商品接口(每页最多20条) 成功返回结果 +type AlibabaLstPosOpenGoodsGetgoodsbypagingAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_pos_open_goods_getgoodsbypaging_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *AlibabaLstPosOpenGoodsGetgoodsbypagingResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbypagingResponse.go b/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbypagingResponse.go deleted file mode 100644 index 61252a2db4..0000000000 --- a/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbypagingResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstpos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页查询用户全量的门店域商品接口(每页最多20条) API返回值 -alibaba.lst.pos.open.goods.getgoodsbypaging - -分页查询用户全量的门店域商品接口(每页最多20条) -*/ -type AlibabaLstPosOpenGoodsGetgoodsbypagingAPIResponse struct { - model.CommonResponse - AlibabaLstPosOpenGoodsGetgoodsbypagingResponse -} - -// 分页查询用户全量的门店域商品接口(每页最多20条) 成功返回结果 -type AlibabaLstPosOpenGoodsGetgoodsbypagingResponse struct { - XMLName xml.Name `xml:"alibaba_lst_pos_open_goods_getgoodsbypaging_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *AlibabaLstPosOpenGoodsGetgoodsbypagingResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbypagingResultDto.go b/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbypagingResultDto.go new file mode 100644 index 0000000000..53c4d30197 --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenGoodsGetgoodsbypagingResultDto.go @@ -0,0 +1,13 @@ +package lstpos + +// AlibabaLstPosOpenGoodsGetgoodsbypagingResultDto +type AlibabaLstPosOpenGoodsGetgoodsbypagingResultDto struct { + // 错误信息描述 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 接口具体返回的业务数据对象 + Modules []GoodsDto `json:"modules,omitempty" xml:"modules>goods_dto,omitempty"` + // 业务错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 接口调用是否成功 true:调用成功 false:调用失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/lstpos/AlibabaLstPosOpenGoodsSyncgoodsdataAPIRequest.go b/model/lstpos/AlibabaLstPosOpenGoodsSyncgoodsdataAPIRequest.go new file mode 100644 index 0000000000..c865ab9a3d --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenGoodsSyncgoodsdataAPIRequest.go @@ -0,0 +1,66 @@ +package lstpos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店商品批量同步接口(最多10条商品信息) API请求 +alibaba.lst.pos.open.goods.syncgoodsdata + +门店商品批量同步接口(最多10条商品信息) +*/ +type AlibabaLstPosOpenGoodsSyncgoodsdataAPIRequest struct { + model.Params + // 商品对象列表 + _goodsDTOList []GoodsDto + // 用户主账号Id + _userId int64 +} + +// 初始化AlibabaLstPosOpenGoodsSyncgoodsdataAPIRequest对象 +func NewAlibabaLstPosOpenGoodsSyncgoodsdataRequest() *AlibabaLstPosOpenGoodsSyncgoodsdataAPIRequest{ + return &AlibabaLstPosOpenGoodsSyncgoodsdataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstPosOpenGoodsSyncgoodsdataAPIRequest) GetApiMethodName() string { + return "alibaba.lst.pos.open.goods.syncgoodsdata" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstPosOpenGoodsSyncgoodsdataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GoodsDTOList Setter +// 商品对象列表 +func (r *AlibabaLstPosOpenGoodsSyncgoodsdataAPIRequest) SetGoodsDTOList(_goodsDTOList []GoodsDto) error { + r._goodsDTOList = _goodsDTOList + r.Set("goods_d_t_o_list", _goodsDTOList) + return nil +} + +// GoodsDTOList Getter +func (r AlibabaLstPosOpenGoodsSyncgoodsdataAPIRequest) GetGoodsDTOList() []GoodsDto { + return r._goodsDTOList +} +// UserId Setter +// 用户主账号Id +func (r *AlibabaLstPosOpenGoodsSyncgoodsdataAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaLstPosOpenGoodsSyncgoodsdataAPIRequest) GetUserId() int64 { + return r._userId +} diff --git a/model/lstpos/AlibabaLstPosOpenGoodsSyncgoodsdataAPIResponse.go b/model/lstpos/AlibabaLstPosOpenGoodsSyncgoodsdataAPIResponse.go new file mode 100644 index 0000000000..4db92b5587 --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenGoodsSyncgoodsdataAPIResponse.go @@ -0,0 +1,27 @@ +package lstpos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店商品批量同步接口(最多10条商品信息) API返回值 +alibaba.lst.pos.open.goods.syncgoodsdata + +门店商品批量同步接口(最多10条商品信息) +*/ +type AlibabaLstPosOpenGoodsSyncgoodsdataAPIResponse struct { + model.CommonResponse + AlibabaLstPosOpenGoodsSyncgoodsdataAPIResponseModel +} + +// 门店商品批量同步接口(最多10条商品信息) 成功返回结果 +type AlibabaLstPosOpenGoodsSyncgoodsdataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_pos_open_goods_syncgoodsdata_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *AlibabaLstPosOpenGoodsSyncgoodsdataResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstpos/AlibabaLstPosOpenGoodsSyncgoodsdataResponse.go b/model/lstpos/AlibabaLstPosOpenGoodsSyncgoodsdataResponse.go deleted file mode 100644 index 1351eb3e89..0000000000 --- a/model/lstpos/AlibabaLstPosOpenGoodsSyncgoodsdataResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstpos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店商品批量同步接口(最多10条商品信息) API返回值 -alibaba.lst.pos.open.goods.syncgoodsdata - -门店商品批量同步接口(最多10条商品信息) -*/ -type AlibabaLstPosOpenGoodsSyncgoodsdataAPIResponse struct { - model.CommonResponse - AlibabaLstPosOpenGoodsSyncgoodsdataResponse -} - -// 门店商品批量同步接口(最多10条商品信息) 成功返回结果 -type AlibabaLstPosOpenGoodsSyncgoodsdataResponse struct { - XMLName xml.Name `xml:"alibaba_lst_pos_open_goods_syncgoodsdata_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *AlibabaLstPosOpenGoodsSyncgoodsdataResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstpos/AlibabaLstPosOpenGoodsSyncgoodsdataResultDto.go b/model/lstpos/AlibabaLstPosOpenGoodsSyncgoodsdataResultDto.go new file mode 100644 index 0000000000..bc2ce14901 --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenGoodsSyncgoodsdataResultDto.go @@ -0,0 +1,13 @@ +package lstpos + +// AlibabaLstPosOpenGoodsSyncgoodsdataResultDto +type AlibabaLstPosOpenGoodsSyncgoodsdataResultDto struct { + // 错误信息描述 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 接口具体返回的业务数据对象 + Modules []ErrorResult `json:"modules,omitempty" xml:"modules>error_result,omitempty"` + // 业务错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 接口调用是否成功 true:调用成功 false:调用失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/lstpos/AlibabaLstPosOpenInventoryGetinventorydataAPIRequest.go b/model/lstpos/AlibabaLstPosOpenInventoryGetinventorydataAPIRequest.go new file mode 100644 index 0000000000..a80aa7ae7d --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenInventoryGetinventorydataAPIRequest.go @@ -0,0 +1,66 @@ +package lstpos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品库存只读接口(最多20条库存信息) API请求 +alibaba.lst.pos.open.inventory.getinventorydata + +商品库存只读接口(最多20条库存信息) +*/ +type AlibabaLstPosOpenInventoryGetinventorydataAPIRequest struct { + model.Params + // ISV商品Id列表 + _isvGoodsIdList []string + // 门店主账号Id + _userId int64 +} + +// 初始化AlibabaLstPosOpenInventoryGetinventorydataAPIRequest对象 +func NewAlibabaLstPosOpenInventoryGetinventorydataRequest() *AlibabaLstPosOpenInventoryGetinventorydataAPIRequest{ + return &AlibabaLstPosOpenInventoryGetinventorydataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstPosOpenInventoryGetinventorydataAPIRequest) GetApiMethodName() string { + return "alibaba.lst.pos.open.inventory.getinventorydata" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstPosOpenInventoryGetinventorydataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IsvGoodsIdList Setter +// ISV商品Id列表 +func (r *AlibabaLstPosOpenInventoryGetinventorydataAPIRequest) SetIsvGoodsIdList(_isvGoodsIdList []string) error { + r._isvGoodsIdList = _isvGoodsIdList + r.Set("isv_goods_id_list", _isvGoodsIdList) + return nil +} + +// IsvGoodsIdList Getter +func (r AlibabaLstPosOpenInventoryGetinventorydataAPIRequest) GetIsvGoodsIdList() []string { + return r._isvGoodsIdList +} +// UserId Setter +// 门店主账号Id +func (r *AlibabaLstPosOpenInventoryGetinventorydataAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaLstPosOpenInventoryGetinventorydataAPIRequest) GetUserId() int64 { + return r._userId +} diff --git a/model/lstpos/AlibabaLstPosOpenInventoryGetinventorydataAPIResponse.go b/model/lstpos/AlibabaLstPosOpenInventoryGetinventorydataAPIResponse.go new file mode 100644 index 0000000000..fffdd8b465 --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenInventoryGetinventorydataAPIResponse.go @@ -0,0 +1,27 @@ +package lstpos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品库存只读接口(最多20条库存信息) API返回值 +alibaba.lst.pos.open.inventory.getinventorydata + +商品库存只读接口(最多20条库存信息) +*/ +type AlibabaLstPosOpenInventoryGetinventorydataAPIResponse struct { + model.CommonResponse + AlibabaLstPosOpenInventoryGetinventorydataAPIResponseModel +} + +// 商品库存只读接口(最多20条库存信息) 成功返回结果 +type AlibabaLstPosOpenInventoryGetinventorydataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_pos_open_inventory_getinventorydata_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回结果对象 + Result *AlibabaLstPosOpenInventoryGetinventorydataResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstpos/AlibabaLstPosOpenInventoryGetinventorydataResponse.go b/model/lstpos/AlibabaLstPosOpenInventoryGetinventorydataResponse.go deleted file mode 100644 index 7e178e0d71..0000000000 --- a/model/lstpos/AlibabaLstPosOpenInventoryGetinventorydataResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstpos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品库存只读接口(最多20条库存信息) API返回值 -alibaba.lst.pos.open.inventory.getinventorydata - -商品库存只读接口(最多20条库存信息) -*/ -type AlibabaLstPosOpenInventoryGetinventorydataAPIResponse struct { - model.CommonResponse - AlibabaLstPosOpenInventoryGetinventorydataResponse -} - -// 商品库存只读接口(最多20条库存信息) 成功返回结果 -type AlibabaLstPosOpenInventoryGetinventorydataResponse struct { - XMLName xml.Name `xml:"alibaba_lst_pos_open_inventory_getinventorydata_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回结果对象 - Result *AlibabaLstPosOpenInventoryGetinventorydataResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstpos/AlibabaLstPosOpenInventoryGetinventorydataResultDto.go b/model/lstpos/AlibabaLstPosOpenInventoryGetinventorydataResultDto.go new file mode 100644 index 0000000000..72473e0926 --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenInventoryGetinventorydataResultDto.go @@ -0,0 +1,13 @@ +package lstpos + +// AlibabaLstPosOpenInventoryGetinventorydataResultDto +type AlibabaLstPosOpenInventoryGetinventorydataResultDto struct { + // 错误信息描述 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 接口具体返回的业务数据对象 + ModuleList []InventoryDto `json:"module_list,omitempty" xml:"module_list>inventory_dto,omitempty"` + // 业务错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 接口调用是否成功 true:调用成功 false:调用失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/lstpos/AlibabaLstPosOpenInventorySyncinventorydataAPIRequest.go b/model/lstpos/AlibabaLstPosOpenInventorySyncinventorydataAPIRequest.go new file mode 100644 index 0000000000..0f2e58b32c --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenInventorySyncinventorydataAPIRequest.go @@ -0,0 +1,66 @@ +package lstpos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品库存修改同步接口(最多20条库存信息) API请求 +alibaba.lst.pos.open.inventory.syncinventorydata + +商品库存修改同步接口(最多20条库存信息) +*/ +type AlibabaLstPosOpenInventorySyncinventorydataAPIRequest struct { + model.Params + // 库存对象列表 + _inventoryDTOList []InventoryDto + // 门店对应的主账号id + _userId int64 +} + +// 初始化AlibabaLstPosOpenInventorySyncinventorydataAPIRequest对象 +func NewAlibabaLstPosOpenInventorySyncinventorydataRequest() *AlibabaLstPosOpenInventorySyncinventorydataAPIRequest{ + return &AlibabaLstPosOpenInventorySyncinventorydataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstPosOpenInventorySyncinventorydataAPIRequest) GetApiMethodName() string { + return "alibaba.lst.pos.open.inventory.syncinventorydata" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstPosOpenInventorySyncinventorydataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InventoryDTOList Setter +// 库存对象列表 +func (r *AlibabaLstPosOpenInventorySyncinventorydataAPIRequest) SetInventoryDTOList(_inventoryDTOList []InventoryDto) error { + r._inventoryDTOList = _inventoryDTOList + r.Set("inventory_d_t_o_list", _inventoryDTOList) + return nil +} + +// InventoryDTOList Getter +func (r AlibabaLstPosOpenInventorySyncinventorydataAPIRequest) GetInventoryDTOList() []InventoryDto { + return r._inventoryDTOList +} +// UserId Setter +// 门店对应的主账号id +func (r *AlibabaLstPosOpenInventorySyncinventorydataAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaLstPosOpenInventorySyncinventorydataAPIRequest) GetUserId() int64 { + return r._userId +} diff --git a/model/lstpos/AlibabaLstPosOpenInventorySyncinventorydataAPIResponse.go b/model/lstpos/AlibabaLstPosOpenInventorySyncinventorydataAPIResponse.go new file mode 100644 index 0000000000..f8994b6fff --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenInventorySyncinventorydataAPIResponse.go @@ -0,0 +1,27 @@ +package lstpos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品库存修改同步接口(最多20条库存信息) API返回值 +alibaba.lst.pos.open.inventory.syncinventorydata + +商品库存修改同步接口(最多20条库存信息) +*/ +type AlibabaLstPosOpenInventorySyncinventorydataAPIResponse struct { + model.CommonResponse + AlibabaLstPosOpenInventorySyncinventorydataAPIResponseModel +} + +// 商品库存修改同步接口(最多20条库存信息) 成功返回结果 +type AlibabaLstPosOpenInventorySyncinventorydataAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_pos_open_inventory_syncinventorydata_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *AlibabaLstPosOpenInventorySyncinventorydataResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstpos/AlibabaLstPosOpenInventorySyncinventorydataResponse.go b/model/lstpos/AlibabaLstPosOpenInventorySyncinventorydataResponse.go deleted file mode 100644 index e151e8f855..0000000000 --- a/model/lstpos/AlibabaLstPosOpenInventorySyncinventorydataResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstpos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品库存修改同步接口(最多20条库存信息) API返回值 -alibaba.lst.pos.open.inventory.syncinventorydata - -商品库存修改同步接口(最多20条库存信息) -*/ -type AlibabaLstPosOpenInventorySyncinventorydataAPIResponse struct { - model.CommonResponse - AlibabaLstPosOpenInventorySyncinventorydataResponse -} - -// 商品库存修改同步接口(最多20条库存信息) 成功返回结果 -type AlibabaLstPosOpenInventorySyncinventorydataResponse struct { - XMLName xml.Name `xml:"alibaba_lst_pos_open_inventory_syncinventorydata_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *AlibabaLstPosOpenInventorySyncinventorydataResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstpos/AlibabaLstPosOpenInventorySyncinventorydataResultDto.go b/model/lstpos/AlibabaLstPosOpenInventorySyncinventorydataResultDto.go new file mode 100644 index 0000000000..07ac773812 --- /dev/null +++ b/model/lstpos/AlibabaLstPosOpenInventorySyncinventorydataResultDto.go @@ -0,0 +1,13 @@ +package lstpos + +// AlibabaLstPosOpenInventorySyncinventorydataResultDto +type AlibabaLstPosOpenInventorySyncinventorydataResultDto struct { + // 错误消息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 接口具体返回的业务数据对象 + ModuleList []ErrorResult `json:"module_list,omitempty" xml:"module_list>error_result,omitempty"` + // 错误误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 接口调用是否成功 true:调用成功 false:调用失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/lstspeacker/AlibabaLstSpeakerConfigureAPIRequest.go b/model/lstspeacker/AlibabaLstSpeakerConfigureAPIRequest.go new file mode 100644 index 0000000000..60c7808250 --- /dev/null +++ b/model/lstspeacker/AlibabaLstSpeakerConfigureAPIRequest.go @@ -0,0 +1,80 @@ +package lstspeacker + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售通音箱配置通用泛化调用接口 API请求 +alibaba.lst.speaker.configure + +零售通音箱配置通用泛化调用接口,包括内容、音量、音频等内容 +*/ +type AlibabaLstSpeakerConfigureAPIRequest struct { + model.Params + // 设备编码 + _deviceCode string + // 命令类型setPayTime,adjustVolume,syncAudio,syncAudioAdvert + _command string + // 数据体,根据命令不同而不同 + _params string +} + +// 初始化AlibabaLstSpeakerConfigureAPIRequest对象 +func NewAlibabaLstSpeakerConfigureRequest() *AlibabaLstSpeakerConfigureAPIRequest{ + return &AlibabaLstSpeakerConfigureAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstSpeakerConfigureAPIRequest) GetApiMethodName() string { + return "alibaba.lst.speaker.configure" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstSpeakerConfigureAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceCode Setter +// 设备编码 +func (r *AlibabaLstSpeakerConfigureAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r AlibabaLstSpeakerConfigureAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// Command Setter +// 命令类型setPayTime,adjustVolume,syncAudio,syncAudioAdvert +func (r *AlibabaLstSpeakerConfigureAPIRequest) SetCommand(_command string) error { + r._command = _command + r.Set("command", _command) + return nil +} + +// Command Getter +func (r AlibabaLstSpeakerConfigureAPIRequest) GetCommand() string { + return r._command +} +// Params Setter +// 数据体,根据命令不同而不同 +func (r *AlibabaLstSpeakerConfigureAPIRequest) SetParams(_params string) error { + r._params = _params + r.Set("params", _params) + return nil +} + +// Params Getter +func (r AlibabaLstSpeakerConfigureAPIRequest) GetParams() string { + return r._params +} diff --git a/model/lstspeacker/AlibabaLstSpeakerConfigureAPIResponse.go b/model/lstspeacker/AlibabaLstSpeakerConfigureAPIResponse.go new file mode 100644 index 0000000000..e16839c818 --- /dev/null +++ b/model/lstspeacker/AlibabaLstSpeakerConfigureAPIResponse.go @@ -0,0 +1,33 @@ +package lstspeacker + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售通音箱配置通用泛化调用接口 API返回值 +alibaba.lst.speaker.configure + +零售通音箱配置通用泛化调用接口,包括内容、音量、音频等内容 +*/ +type AlibabaLstSpeakerConfigureAPIResponse struct { + model.CommonResponse + AlibabaLstSpeakerConfigureAPIResponseModel +} + +// 零售通音箱配置通用泛化调用接口 成功返回结果 +type AlibabaLstSpeakerConfigureAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_speaker_configure_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 执行结果 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 执行结果标识 + Module bool `json:"module,omitempty" xml:"module,omitempty"` + // 错误码 + ErroMessage string `json:"erro_message,omitempty" xml:"erro_message,omitempty"` + // 错误码 + ErroCode string `json:"erro_code,omitempty" xml:"erro_code,omitempty"` +} diff --git a/model/lstspeacker/AlibabaLstSpeakerConfigureAdjustvolumeAPIRequest.go b/model/lstspeacker/AlibabaLstSpeakerConfigureAdjustvolumeAPIRequest.go new file mode 100644 index 0000000000..592d1f9433 --- /dev/null +++ b/model/lstspeacker/AlibabaLstSpeakerConfigureAdjustvolumeAPIRequest.go @@ -0,0 +1,80 @@ +package lstspeacker + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +音箱音量调节 API请求 +alibaba.lst.speaker.configure.adjustvolume + +音箱音量调节 +*/ +type AlibabaLstSpeakerConfigureAdjustvolumeAPIRequest struct { + model.Params + // 设备编码 + _deviceCode string + // 音量直 + _volume string + // 音量类型,val:固定值, percent:百分比 + _valueType string +} + +// 初始化AlibabaLstSpeakerConfigureAdjustvolumeAPIRequest对象 +func NewAlibabaLstSpeakerConfigureAdjustvolumeRequest() *AlibabaLstSpeakerConfigureAdjustvolumeAPIRequest{ + return &AlibabaLstSpeakerConfigureAdjustvolumeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstSpeakerConfigureAdjustvolumeAPIRequest) GetApiMethodName() string { + return "alibaba.lst.speaker.configure.adjustvolume" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstSpeakerConfigureAdjustvolumeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceCode Setter +// 设备编码 +func (r *AlibabaLstSpeakerConfigureAdjustvolumeAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r AlibabaLstSpeakerConfigureAdjustvolumeAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// Volume Setter +// 音量直 +func (r *AlibabaLstSpeakerConfigureAdjustvolumeAPIRequest) SetVolume(_volume string) error { + r._volume = _volume + r.Set("volume", _volume) + return nil +} + +// Volume Getter +func (r AlibabaLstSpeakerConfigureAdjustvolumeAPIRequest) GetVolume() string { + return r._volume +} +// ValueType Setter +// 音量类型,val:固定值, percent:百分比 +func (r *AlibabaLstSpeakerConfigureAdjustvolumeAPIRequest) SetValueType(_valueType string) error { + r._valueType = _valueType + r.Set("value_type", _valueType) + return nil +} + +// ValueType Getter +func (r AlibabaLstSpeakerConfigureAdjustvolumeAPIRequest) GetValueType() string { + return r._valueType +} diff --git a/model/lstspeacker/AlibabaLstSpeakerConfigureAdjustvolumeAPIResponse.go b/model/lstspeacker/AlibabaLstSpeakerConfigureAdjustvolumeAPIResponse.go new file mode 100644 index 0000000000..271ae33805 --- /dev/null +++ b/model/lstspeacker/AlibabaLstSpeakerConfigureAdjustvolumeAPIResponse.go @@ -0,0 +1,33 @@ +package lstspeacker + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +音箱音量调节 API返回值 +alibaba.lst.speaker.configure.adjustvolume + +音箱音量调节 +*/ +type AlibabaLstSpeakerConfigureAdjustvolumeAPIResponse struct { + model.CommonResponse + AlibabaLstSpeakerConfigureAdjustvolumeAPIResponseModel +} + +// 音箱音量调节 成功返回结果 +type AlibabaLstSpeakerConfigureAdjustvolumeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_speaker_configure_adjustvolume_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 执行结果 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 执行结果标识 + Module bool `json:"module,omitempty" xml:"module,omitempty"` + // 错误码 + ErroMessage string `json:"erro_message,omitempty" xml:"erro_message,omitempty"` + // 错误码 + ErroCode string `json:"erro_code,omitempty" xml:"erro_code,omitempty"` +} diff --git a/model/lstspeacker/AlibabaLstSpeakerConfigureAdjustvolumeResponse.go b/model/lstspeacker/AlibabaLstSpeakerConfigureAdjustvolumeResponse.go deleted file mode 100644 index 56abed9469..0000000000 --- a/model/lstspeacker/AlibabaLstSpeakerConfigureAdjustvolumeResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package lstspeacker - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -音箱音量调节 API返回值 -alibaba.lst.speaker.configure.adjustvolume - -音箱音量调节 -*/ -type AlibabaLstSpeakerConfigureAdjustvolumeAPIResponse struct { - model.CommonResponse - AlibabaLstSpeakerConfigureAdjustvolumeResponse -} - -// 音箱音量调节 成功返回结果 -type AlibabaLstSpeakerConfigureAdjustvolumeResponse struct { - XMLName xml.Name `xml:"alibaba_lst_speaker_configure_adjustvolume_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 执行结果 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` - // 执行结果标识 - Module bool `json:"module,omitempty" xml:"module,omitempty"` - // 错误码 - ErroMessage string `json:"erro_message,omitempty" xml:"erro_message,omitempty"` - // 错误码 - ErroCode string `json:"erro_code,omitempty" xml:"erro_code,omitempty"` -} diff --git a/model/lstspeacker/AlibabaLstSpeakerConfigureResponse.go b/model/lstspeacker/AlibabaLstSpeakerConfigureResponse.go deleted file mode 100644 index b7a89ba687..0000000000 --- a/model/lstspeacker/AlibabaLstSpeakerConfigureResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package lstspeacker - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售通音箱配置通用泛化调用接口 API返回值 -alibaba.lst.speaker.configure - -零售通音箱配置通用泛化调用接口,包括内容、音量、音频等内容 -*/ -type AlibabaLstSpeakerConfigureAPIResponse struct { - model.CommonResponse - AlibabaLstSpeakerConfigureResponse -} - -// 零售通音箱配置通用泛化调用接口 成功返回结果 -type AlibabaLstSpeakerConfigureResponse struct { - XMLName xml.Name `xml:"alibaba_lst_speaker_configure_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 执行结果 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` - // 执行结果标识 - Module bool `json:"module,omitempty" xml:"module,omitempty"` - // 错误码 - ErroMessage string `json:"erro_message,omitempty" xml:"erro_message,omitempty"` - // 错误码 - ErroCode string `json:"erro_code,omitempty" xml:"erro_code,omitempty"` -} diff --git a/model/lstspeacker/AlibabaLstSpeakerConfigureSetpaytimeAPIRequest.go b/model/lstspeacker/AlibabaLstSpeakerConfigureSetpaytimeAPIRequest.go new file mode 100644 index 0000000000..12b90874ad --- /dev/null +++ b/model/lstspeacker/AlibabaLstSpeakerConfigureSetpaytimeAPIRequest.go @@ -0,0 +1,108 @@ +package lstspeacker + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +音箱播放配置 API请求 +alibaba.lst.speaker.configure.setpaytime + +音箱播放配置 +*/ +type AlibabaLstSpeakerConfigureSetpaytimeAPIRequest struct { + model.Params + // 设备编码 + _deviceCode string + // 开始时间 + _playStartTime string + // 结束时间 + _playEndTime string + // 是否播放广告 + _isOnlyPlayAdvert bool + // 是否设置播放时间 + _isSetPlayTime bool +} + +// 初始化AlibabaLstSpeakerConfigureSetpaytimeAPIRequest对象 +func NewAlibabaLstSpeakerConfigureSetpaytimeRequest() *AlibabaLstSpeakerConfigureSetpaytimeAPIRequest{ + return &AlibabaLstSpeakerConfigureSetpaytimeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstSpeakerConfigureSetpaytimeAPIRequest) GetApiMethodName() string { + return "alibaba.lst.speaker.configure.setpaytime" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstSpeakerConfigureSetpaytimeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceCode Setter +// 设备编码 +func (r *AlibabaLstSpeakerConfigureSetpaytimeAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r AlibabaLstSpeakerConfigureSetpaytimeAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// PlayStartTime Setter +// 开始时间 +func (r *AlibabaLstSpeakerConfigureSetpaytimeAPIRequest) SetPlayStartTime(_playStartTime string) error { + r._playStartTime = _playStartTime + r.Set("play_start_time", _playStartTime) + return nil +} + +// PlayStartTime Getter +func (r AlibabaLstSpeakerConfigureSetpaytimeAPIRequest) GetPlayStartTime() string { + return r._playStartTime +} +// PlayEndTime Setter +// 结束时间 +func (r *AlibabaLstSpeakerConfigureSetpaytimeAPIRequest) SetPlayEndTime(_playEndTime string) error { + r._playEndTime = _playEndTime + r.Set("play_end_time", _playEndTime) + return nil +} + +// PlayEndTime Getter +func (r AlibabaLstSpeakerConfigureSetpaytimeAPIRequest) GetPlayEndTime() string { + return r._playEndTime +} +// IsOnlyPlayAdvert Setter +// 是否播放广告 +func (r *AlibabaLstSpeakerConfigureSetpaytimeAPIRequest) SetIsOnlyPlayAdvert(_isOnlyPlayAdvert bool) error { + r._isOnlyPlayAdvert = _isOnlyPlayAdvert + r.Set("is_only_play_advert", _isOnlyPlayAdvert) + return nil +} + +// IsOnlyPlayAdvert Getter +func (r AlibabaLstSpeakerConfigureSetpaytimeAPIRequest) GetIsOnlyPlayAdvert() bool { + return r._isOnlyPlayAdvert +} +// IsSetPlayTime Setter +// 是否设置播放时间 +func (r *AlibabaLstSpeakerConfigureSetpaytimeAPIRequest) SetIsSetPlayTime(_isSetPlayTime bool) error { + r._isSetPlayTime = _isSetPlayTime + r.Set("is_set_play_time", _isSetPlayTime) + return nil +} + +// IsSetPlayTime Getter +func (r AlibabaLstSpeakerConfigureSetpaytimeAPIRequest) GetIsSetPlayTime() bool { + return r._isSetPlayTime +} diff --git a/model/lstspeacker/AlibabaLstSpeakerConfigureSetpaytimeAPIResponse.go b/model/lstspeacker/AlibabaLstSpeakerConfigureSetpaytimeAPIResponse.go new file mode 100644 index 0000000000..c104b8e284 --- /dev/null +++ b/model/lstspeacker/AlibabaLstSpeakerConfigureSetpaytimeAPIResponse.go @@ -0,0 +1,33 @@ +package lstspeacker + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +音箱播放配置 API返回值 +alibaba.lst.speaker.configure.setpaytime + +音箱播放配置 +*/ +type AlibabaLstSpeakerConfigureSetpaytimeAPIResponse struct { + model.CommonResponse + AlibabaLstSpeakerConfigureSetpaytimeAPIResponseModel +} + +// 音箱播放配置 成功返回结果 +type AlibabaLstSpeakerConfigureSetpaytimeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_speaker_configure_setpaytime_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 执行结果 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 执行结果标识 + Module bool `json:"module,omitempty" xml:"module,omitempty"` + // 错误码 + ErroMessage string `json:"erro_message,omitempty" xml:"erro_message,omitempty"` + // 错误码 + ErroCode string `json:"erro_code,omitempty" xml:"erro_code,omitempty"` +} diff --git a/model/lstspeacker/AlibabaLstSpeakerConfigureSetpaytimeResponse.go b/model/lstspeacker/AlibabaLstSpeakerConfigureSetpaytimeResponse.go deleted file mode 100644 index a69d54f561..0000000000 --- a/model/lstspeacker/AlibabaLstSpeakerConfigureSetpaytimeResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package lstspeacker - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -音箱播放配置 API返回值 -alibaba.lst.speaker.configure.setpaytime - -音箱播放配置 -*/ -type AlibabaLstSpeakerConfigureSetpaytimeAPIResponse struct { - model.CommonResponse - AlibabaLstSpeakerConfigureSetpaytimeResponse -} - -// 音箱播放配置 成功返回结果 -type AlibabaLstSpeakerConfigureSetpaytimeResponse struct { - XMLName xml.Name `xml:"alibaba_lst_speaker_configure_setpaytime_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 执行结果 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` - // 执行结果标识 - Module bool `json:"module,omitempty" xml:"module,omitempty"` - // 错误码 - ErroMessage string `json:"erro_message,omitempty" xml:"erro_message,omitempty"` - // 错误码 - ErroCode string `json:"erro_code,omitempty" xml:"erro_code,omitempty"` -} diff --git a/model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioAPIRequest.go b/model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioAPIRequest.go new file mode 100644 index 0000000000..71b38ce0b9 --- /dev/null +++ b/model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioAPIRequest.go @@ -0,0 +1,66 @@ +package lstspeacker + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +音频同步 API请求 +alibaba.lst.speaker.configure.syncaudio + +音频同步 +*/ +type AlibabaLstSpeakerConfigureSyncaudioAPIRequest struct { + model.Params + // 设备编码 + _deviceCode string + // 参数 + _speakerConfigParam4SyncAudio *SpeakerConfigParam4SyncAudio +} + +// 初始化AlibabaLstSpeakerConfigureSyncaudioAPIRequest对象 +func NewAlibabaLstSpeakerConfigureSyncaudioRequest() *AlibabaLstSpeakerConfigureSyncaudioAPIRequest{ + return &AlibabaLstSpeakerConfigureSyncaudioAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstSpeakerConfigureSyncaudioAPIRequest) GetApiMethodName() string { + return "alibaba.lst.speaker.configure.syncaudio" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstSpeakerConfigureSyncaudioAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceCode Setter +// 设备编码 +func (r *AlibabaLstSpeakerConfigureSyncaudioAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r AlibabaLstSpeakerConfigureSyncaudioAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// SpeakerConfigParam4SyncAudio Setter +// 参数 +func (r *AlibabaLstSpeakerConfigureSyncaudioAPIRequest) SetSpeakerConfigParam4SyncAudio(_speakerConfigParam4SyncAudio *SpeakerConfigParam4SyncAudio) error { + r._speakerConfigParam4SyncAudio = _speakerConfigParam4SyncAudio + r.Set("speaker_config_param4_sync_audio", _speakerConfigParam4SyncAudio) + return nil +} + +// SpeakerConfigParam4SyncAudio Getter +func (r AlibabaLstSpeakerConfigureSyncaudioAPIRequest) GetSpeakerConfigParam4SyncAudio() *SpeakerConfigParam4SyncAudio { + return r._speakerConfigParam4SyncAudio +} diff --git a/model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioAPIResponse.go b/model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioAPIResponse.go new file mode 100644 index 0000000000..eb563b3818 --- /dev/null +++ b/model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioAPIResponse.go @@ -0,0 +1,33 @@ +package lstspeacker + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +音频同步 API返回值 +alibaba.lst.speaker.configure.syncaudio + +音频同步 +*/ +type AlibabaLstSpeakerConfigureSyncaudioAPIResponse struct { + model.CommonResponse + AlibabaLstSpeakerConfigureSyncaudioAPIResponseModel +} + +// 音频同步 成功返回结果 +type AlibabaLstSpeakerConfigureSyncaudioAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_speaker_configure_syncaudio_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 执行结果 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 执行结果标识 + Module bool `json:"module,omitempty" xml:"module,omitempty"` + // 错误码 + ErroMessage string `json:"erro_message,omitempty" xml:"erro_message,omitempty"` + // 错误码 + ErroCode string `json:"erro_code,omitempty" xml:"erro_code,omitempty"` +} diff --git a/model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioResponse.go b/model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioResponse.go deleted file mode 100644 index 1131182d89..0000000000 --- a/model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package lstspeacker - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -音频同步 API返回值 -alibaba.lst.speaker.configure.syncaudio - -音频同步 -*/ -type AlibabaLstSpeakerConfigureSyncaudioAPIResponse struct { - model.CommonResponse - AlibabaLstSpeakerConfigureSyncaudioResponse -} - -// 音频同步 成功返回结果 -type AlibabaLstSpeakerConfigureSyncaudioResponse struct { - XMLName xml.Name `xml:"alibaba_lst_speaker_configure_syncaudio_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 执行结果 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` - // 执行结果标识 - Module bool `json:"module,omitempty" xml:"module,omitempty"` - // 错误码 - ErroMessage string `json:"erro_message,omitempty" xml:"erro_message,omitempty"` - // 错误码 - ErroCode string `json:"erro_code,omitempty" xml:"erro_code,omitempty"` -} diff --git a/model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioadvertAPIRequest.go b/model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioadvertAPIRequest.go new file mode 100644 index 0000000000..8db788cf5e --- /dev/null +++ b/model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioadvertAPIRequest.go @@ -0,0 +1,66 @@ +package lstspeacker + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同步广告 API请求 +alibaba.lst.speaker.configure.syncaudioadvert + +如意音箱广告同步 +*/ +type AlibabaLstSpeakerConfigureSyncaudioadvertAPIRequest struct { + model.Params + // 设备编码 + _deviceCode string + // 音频参数 + _speakerConfigParam4SyncAudioAdvert *SpeakerConfigParam4SyncAudioAdvert +} + +// 初始化AlibabaLstSpeakerConfigureSyncaudioadvertAPIRequest对象 +func NewAlibabaLstSpeakerConfigureSyncaudioadvertRequest() *AlibabaLstSpeakerConfigureSyncaudioadvertAPIRequest{ + return &AlibabaLstSpeakerConfigureSyncaudioadvertAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstSpeakerConfigureSyncaudioadvertAPIRequest) GetApiMethodName() string { + return "alibaba.lst.speaker.configure.syncaudioadvert" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstSpeakerConfigureSyncaudioadvertAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceCode Setter +// 设备编码 +func (r *AlibabaLstSpeakerConfigureSyncaudioadvertAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r AlibabaLstSpeakerConfigureSyncaudioadvertAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// SpeakerConfigParam4SyncAudioAdvert Setter +// 音频参数 +func (r *AlibabaLstSpeakerConfigureSyncaudioadvertAPIRequest) SetSpeakerConfigParam4SyncAudioAdvert(_speakerConfigParam4SyncAudioAdvert *SpeakerConfigParam4SyncAudioAdvert) error { + r._speakerConfigParam4SyncAudioAdvert = _speakerConfigParam4SyncAudioAdvert + r.Set("speaker_config_param4_sync_audio_advert", _speakerConfigParam4SyncAudioAdvert) + return nil +} + +// SpeakerConfigParam4SyncAudioAdvert Getter +func (r AlibabaLstSpeakerConfigureSyncaudioadvertAPIRequest) GetSpeakerConfigParam4SyncAudioAdvert() *SpeakerConfigParam4SyncAudioAdvert { + return r._speakerConfigParam4SyncAudioAdvert +} diff --git a/model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioadvertAPIResponse.go b/model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioadvertAPIResponse.go new file mode 100644 index 0000000000..607332a09a --- /dev/null +++ b/model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioadvertAPIResponse.go @@ -0,0 +1,33 @@ +package lstspeacker + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同步广告 API返回值 +alibaba.lst.speaker.configure.syncaudioadvert + +如意音箱广告同步 +*/ +type AlibabaLstSpeakerConfigureSyncaudioadvertAPIResponse struct { + model.CommonResponse + AlibabaLstSpeakerConfigureSyncaudioadvertAPIResponseModel +} + +// 同步广告 成功返回结果 +type AlibabaLstSpeakerConfigureSyncaudioadvertAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_speaker_configure_syncaudioadvert_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 执行结果 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 执行结果标识 + Module bool `json:"module,omitempty" xml:"module,omitempty"` + // 错误码 + ErroMessage string `json:"erro_message,omitempty" xml:"erro_message,omitempty"` + // 错误码 + ErroCode string `json:"erro_code,omitempty" xml:"erro_code,omitempty"` +} diff --git a/model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioadvertResponse.go b/model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioadvertResponse.go deleted file mode 100644 index dd0f999488..0000000000 --- a/model/lstspeacker/AlibabaLstSpeakerConfigureSyncaudioadvertResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package lstspeacker - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同步广告 API返回值 -alibaba.lst.speaker.configure.syncaudioadvert - -如意音箱广告同步 -*/ -type AlibabaLstSpeakerConfigureSyncaudioadvertAPIResponse struct { - model.CommonResponse - AlibabaLstSpeakerConfigureSyncaudioadvertResponse -} - -// 同步广告 成功返回结果 -type AlibabaLstSpeakerConfigureSyncaudioadvertResponse struct { - XMLName xml.Name `xml:"alibaba_lst_speaker_configure_syncaudioadvert_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 执行结果 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` - // 执行结果标识 - Module bool `json:"module,omitempty" xml:"module,omitempty"` - // 错误码 - ErroMessage string `json:"erro_message,omitempty" xml:"erro_message,omitempty"` - // 错误码 - ErroCode string `json:"erro_code,omitempty" xml:"erro_code,omitempty"` -} diff --git a/model/lstspeacker/AlibabaLstSpeakerFileUploadAPIRequest.go b/model/lstspeacker/AlibabaLstSpeakerFileUploadAPIRequest.go new file mode 100644 index 0000000000..fe726351aa --- /dev/null +++ b/model/lstspeacker/AlibabaLstSpeakerFileUploadAPIRequest.go @@ -0,0 +1,94 @@ +package lstspeacker + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +如意音箱音频文件长传 API请求 +alibaba.lst.speaker.file.upload + +如意音箱音频文件长传 +*/ +type AlibabaLstSpeakerFileUploadAPIRequest struct { + model.Params + // 数据流 + _fileBytes *model.File + // 文件类型,audio:音频,advert:广告 + _fileType string + // 文件ID + _fileId string + // md5直 + _md5 string +} + +// 初始化AlibabaLstSpeakerFileUploadAPIRequest对象 +func NewAlibabaLstSpeakerFileUploadRequest() *AlibabaLstSpeakerFileUploadAPIRequest{ + return &AlibabaLstSpeakerFileUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstSpeakerFileUploadAPIRequest) GetApiMethodName() string { + return "alibaba.lst.speaker.file.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstSpeakerFileUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FileBytes Setter +// 数据流 +func (r *AlibabaLstSpeakerFileUploadAPIRequest) SetFileBytes(_fileBytes *model.File) error { + r._fileBytes = _fileBytes + r.Set("file_bytes", _fileBytes) + return nil +} + +// FileBytes Getter +func (r AlibabaLstSpeakerFileUploadAPIRequest) GetFileBytes() *model.File { + return r._fileBytes +} +// FileType Setter +// 文件类型,audio:音频,advert:广告 +func (r *AlibabaLstSpeakerFileUploadAPIRequest) SetFileType(_fileType string) error { + r._fileType = _fileType + r.Set("file_type", _fileType) + return nil +} + +// FileType Getter +func (r AlibabaLstSpeakerFileUploadAPIRequest) GetFileType() string { + return r._fileType +} +// FileId Setter +// 文件ID +func (r *AlibabaLstSpeakerFileUploadAPIRequest) SetFileId(_fileId string) error { + r._fileId = _fileId + r.Set("file_id", _fileId) + return nil +} + +// FileId Getter +func (r AlibabaLstSpeakerFileUploadAPIRequest) GetFileId() string { + return r._fileId +} +// Md5 Setter +// md5直 +func (r *AlibabaLstSpeakerFileUploadAPIRequest) SetMd5(_md5 string) error { + r._md5 = _md5 + r.Set("md5", _md5) + return nil +} + +// Md5 Getter +func (r AlibabaLstSpeakerFileUploadAPIRequest) GetMd5() string { + return r._md5 +} diff --git a/model/lstspeacker/AlibabaLstSpeakerFileUploadAPIResponse.go b/model/lstspeacker/AlibabaLstSpeakerFileUploadAPIResponse.go new file mode 100644 index 0000000000..f6b343039d --- /dev/null +++ b/model/lstspeacker/AlibabaLstSpeakerFileUploadAPIResponse.go @@ -0,0 +1,27 @@ +package lstspeacker + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +如意音箱音频文件长传 API返回值 +alibaba.lst.speaker.file.upload + +如意音箱音频文件长传 +*/ +type AlibabaLstSpeakerFileUploadAPIResponse struct { + model.CommonResponse + AlibabaLstSpeakerFileUploadAPIResponseModel +} + +// 如意音箱音频文件长传 成功返回结果 +type AlibabaLstSpeakerFileUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_speaker_file_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlibabaLstSpeakerFileUploadResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstspeacker/AlibabaLstSpeakerFileUploadResponse.go b/model/lstspeacker/AlibabaLstSpeakerFileUploadResponse.go deleted file mode 100644 index c288d584b0..0000000000 --- a/model/lstspeacker/AlibabaLstSpeakerFileUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstspeacker - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -如意音箱音频文件长传 API返回值 -alibaba.lst.speaker.file.upload - -如意音箱音频文件长传 -*/ -type AlibabaLstSpeakerFileUploadAPIResponse struct { - model.CommonResponse - AlibabaLstSpeakerFileUploadResponse -} - -// 如意音箱音频文件长传 成功返回结果 -type AlibabaLstSpeakerFileUploadResponse struct { - XMLName xml.Name `xml:"alibaba_lst_speaker_file_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlibabaLstSpeakerFileUploadResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstspeacker/AlibabaLstSpeakerFileUploadResultDto.go b/model/lstspeacker/AlibabaLstSpeakerFileUploadResultDto.go new file mode 100644 index 0000000000..9659353cea --- /dev/null +++ b/model/lstspeacker/AlibabaLstSpeakerFileUploadResultDto.go @@ -0,0 +1,13 @@ +package lstspeacker + +// AlibabaLstSpeakerFileUploadResultDto +type AlibabaLstSpeakerFileUploadResultDto struct { + // 执行结果 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // SpeakerFileDto + Module *SpeakerFileDto `json:"module,omitempty" xml:"module,omitempty"` + // 错误码 + ErroMessage string `json:"erro_message,omitempty" xml:"erro_message,omitempty"` + // 错误码 + ErroCode string `json:"erro_code,omitempty" xml:"erro_code,omitempty"` +} diff --git a/model/lstspeacker/AlibabaLstSpeakerStatusGetAPIRequest.go b/model/lstspeacker/AlibabaLstSpeakerStatusGetAPIRequest.go new file mode 100644 index 0000000000..57e4e15393 --- /dev/null +++ b/model/lstspeacker/AlibabaLstSpeakerStatusGetAPIRequest.go @@ -0,0 +1,52 @@ +package lstspeacker + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +音箱设备在线状态 API请求 +alibaba.lst.speaker.status.get + +音箱设备在线状态查询 +*/ +type AlibabaLstSpeakerStatusGetAPIRequest struct { + model.Params + // 设备编码 + _deviceCode string +} + +// 初始化AlibabaLstSpeakerStatusGetAPIRequest对象 +func NewAlibabaLstSpeakerStatusGetRequest() *AlibabaLstSpeakerStatusGetAPIRequest{ + return &AlibabaLstSpeakerStatusGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstSpeakerStatusGetAPIRequest) GetApiMethodName() string { + return "alibaba.lst.speaker.status.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstSpeakerStatusGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceCode Setter +// 设备编码 +func (r *AlibabaLstSpeakerStatusGetAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r AlibabaLstSpeakerStatusGetAPIRequest) GetDeviceCode() string { + return r._deviceCode +} diff --git a/model/lstspeacker/AlibabaLstSpeakerStatusGetAPIResponse.go b/model/lstspeacker/AlibabaLstSpeakerStatusGetAPIResponse.go new file mode 100644 index 0000000000..cac6b44cde --- /dev/null +++ b/model/lstspeacker/AlibabaLstSpeakerStatusGetAPIResponse.go @@ -0,0 +1,27 @@ +package lstspeacker + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +音箱设备在线状态 API返回值 +alibaba.lst.speaker.status.get + +音箱设备在线状态查询 +*/ +type AlibabaLstSpeakerStatusGetAPIResponse struct { + model.CommonResponse + AlibabaLstSpeakerStatusGetAPIResponseModel +} + +// 音箱设备在线状态 成功返回结果 +type AlibabaLstSpeakerStatusGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_speaker_status_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlibabaLstSpeakerStatusGetResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstspeacker/AlibabaLstSpeakerStatusGetResponse.go b/model/lstspeacker/AlibabaLstSpeakerStatusGetResponse.go deleted file mode 100644 index ac4776920c..0000000000 --- a/model/lstspeacker/AlibabaLstSpeakerStatusGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstspeacker - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -音箱设备在线状态 API返回值 -alibaba.lst.speaker.status.get - -音箱设备在线状态查询 -*/ -type AlibabaLstSpeakerStatusGetAPIResponse struct { - model.CommonResponse - AlibabaLstSpeakerStatusGetResponse -} - -// 音箱设备在线状态 成功返回结果 -type AlibabaLstSpeakerStatusGetResponse struct { - XMLName xml.Name `xml:"alibaba_lst_speaker_status_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlibabaLstSpeakerStatusGetResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstspeacker/AlibabaLstSpeakerStatusGetResultDto.go b/model/lstspeacker/AlibabaLstSpeakerStatusGetResultDto.go new file mode 100644 index 0000000000..daf50a258e --- /dev/null +++ b/model/lstspeacker/AlibabaLstSpeakerStatusGetResultDto.go @@ -0,0 +1,13 @@ +package lstspeacker + +// AlibabaLstSpeakerStatusGetResultDto +type AlibabaLstSpeakerStatusGetResultDto struct { + // 执行结果 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 状态对象 + Module *SpeakerOnLineStatus `json:"module,omitempty" xml:"module,omitempty"` + // 错误码 + ErroMessage string `json:"erro_message,omitempty" xml:"erro_message,omitempty"` + // 错误码 + ErroCode string `json:"erro_code,omitempty" xml:"erro_code,omitempty"` +} diff --git a/model/lsttrade/AlibabaLstNicetuanOrderSaveAPIRequest.go b/model/lsttrade/AlibabaLstNicetuanOrderSaveAPIRequest.go new file mode 100644 index 0000000000..9aff80db79 --- /dev/null +++ b/model/lsttrade/AlibabaLstNicetuanOrderSaveAPIRequest.go @@ -0,0 +1,52 @@ +package lsttrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +十荟团订单同步至零售通 API请求 +alibaba.lst.nicetuan.order.save + +十荟团订单同步至零售通,十荟团单向写到零售通 +*/ +type AlibabaLstNicetuanOrderSaveAPIRequest struct { + model.Params + // 订单数据 + _param *NicetuanMainOrderParam +} + +// 初始化AlibabaLstNicetuanOrderSaveAPIRequest对象 +func NewAlibabaLstNicetuanOrderSaveRequest() *AlibabaLstNicetuanOrderSaveAPIRequest{ + return &AlibabaLstNicetuanOrderSaveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstNicetuanOrderSaveAPIRequest) GetApiMethodName() string { + return "alibaba.lst.nicetuan.order.save" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstNicetuanOrderSaveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 订单数据 +func (r *AlibabaLstNicetuanOrderSaveAPIRequest) SetParam(_param *NicetuanMainOrderParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaLstNicetuanOrderSaveAPIRequest) GetParam() *NicetuanMainOrderParam { + return r._param +} diff --git a/model/lsttrade/AlibabaLstNicetuanOrderSaveAPIResponse.go b/model/lsttrade/AlibabaLstNicetuanOrderSaveAPIResponse.go new file mode 100644 index 0000000000..a1f2277fcf --- /dev/null +++ b/model/lsttrade/AlibabaLstNicetuanOrderSaveAPIResponse.go @@ -0,0 +1,27 @@ +package lsttrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +十荟团订单同步至零售通 API返回值 +alibaba.lst.nicetuan.order.save + +十荟团订单同步至零售通,十荟团单向写到零售通 +*/ +type AlibabaLstNicetuanOrderSaveAPIResponse struct { + model.CommonResponse + AlibabaLstNicetuanOrderSaveAPIResponseModel +} + +// 十荟团订单同步至零售通 成功返回结果 +type AlibabaLstNicetuanOrderSaveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_nicetuan_order_save_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *HsfResultVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lsttrade/AlibabaLstNicetuanOrderSaveResponse.go b/model/lsttrade/AlibabaLstNicetuanOrderSaveResponse.go deleted file mode 100644 index 792315b582..0000000000 --- a/model/lsttrade/AlibabaLstNicetuanOrderSaveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lsttrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -十荟团订单同步至零售通 API返回值 -alibaba.lst.nicetuan.order.save - -十荟团订单同步至零售通,十荟团单向写到零售通 -*/ -type AlibabaLstNicetuanOrderSaveAPIResponse struct { - model.CommonResponse - AlibabaLstNicetuanOrderSaveResponse -} - -// 十荟团订单同步至零售通 成功返回结果 -type AlibabaLstNicetuanOrderSaveResponse struct { - XMLName xml.Name `xml:"alibaba_lst_nicetuan_order_save_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *HsfResultVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lsttrade/AlibabaLstTradeFastrefundGoodsstatusSyncAPIRequest.go b/model/lsttrade/AlibabaLstTradeFastrefundGoodsstatusSyncAPIRequest.go new file mode 100644 index 0000000000..a4019efe5f --- /dev/null +++ b/model/lsttrade/AlibabaLstTradeFastrefundGoodsstatusSyncAPIRequest.go @@ -0,0 +1,80 @@ +package lsttrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家退款单商品状态同步 API请求 +alibaba.lst.trade.fastrefund.goodsstatus.sync + +卖家退款单商品状态同步 +*/ +type AlibabaLstTradeFastrefundGoodsstatusSyncAPIRequest struct { + model.Params + // 主订单id + _mainOrderId int64 + // 退款单id + _refundId string + // 未发货,枚举类型:UNSEND + _status string +} + +// 初始化AlibabaLstTradeFastrefundGoodsstatusSyncAPIRequest对象 +func NewAlibabaLstTradeFastrefundGoodsstatusSyncRequest() *AlibabaLstTradeFastrefundGoodsstatusSyncAPIRequest{ + return &AlibabaLstTradeFastrefundGoodsstatusSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstTradeFastrefundGoodsstatusSyncAPIRequest) GetApiMethodName() string { + return "alibaba.lst.trade.fastrefund.goodsstatus.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstTradeFastrefundGoodsstatusSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainOrderId Setter +// 主订单id +func (r *AlibabaLstTradeFastrefundGoodsstatusSyncAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r AlibabaLstTradeFastrefundGoodsstatusSyncAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} +// RefundId Setter +// 退款单id +func (r *AlibabaLstTradeFastrefundGoodsstatusSyncAPIRequest) SetRefundId(_refundId string) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r AlibabaLstTradeFastrefundGoodsstatusSyncAPIRequest) GetRefundId() string { + return r._refundId +} +// Status Setter +// 未发货,枚举类型:UNSEND +func (r *AlibabaLstTradeFastrefundGoodsstatusSyncAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaLstTradeFastrefundGoodsstatusSyncAPIRequest) GetStatus() string { + return r._status +} diff --git a/model/lsttrade/AlibabaLstTradeFastrefundGoodsstatusSyncAPIResponse.go b/model/lsttrade/AlibabaLstTradeFastrefundGoodsstatusSyncAPIResponse.go new file mode 100644 index 0000000000..95578a753d --- /dev/null +++ b/model/lsttrade/AlibabaLstTradeFastrefundGoodsstatusSyncAPIResponse.go @@ -0,0 +1,27 @@ +package lsttrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家退款单商品状态同步 API返回值 +alibaba.lst.trade.fastrefund.goodsstatus.sync + +卖家退款单商品状态同步 +*/ +type AlibabaLstTradeFastrefundGoodsstatusSyncAPIResponse struct { + model.CommonResponse + AlibabaLstTradeFastrefundGoodsstatusSyncAPIResponseModel +} + +// 卖家退款单商品状态同步 成功返回结果 +type AlibabaLstTradeFastrefundGoodsstatusSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_trade_fastrefund_goodsstatus_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true表示成功,false表示失败 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lsttrade/AlibabaLstTradeFastrefundGoodsstatusSyncResponse.go b/model/lsttrade/AlibabaLstTradeFastrefundGoodsstatusSyncResponse.go deleted file mode 100644 index 901b1d5eac..0000000000 --- a/model/lsttrade/AlibabaLstTradeFastrefundGoodsstatusSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lsttrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家退款单商品状态同步 API返回值 -alibaba.lst.trade.fastrefund.goodsstatus.sync - -卖家退款单商品状态同步 -*/ -type AlibabaLstTradeFastrefundGoodsstatusSyncAPIResponse struct { - model.CommonResponse - AlibabaLstTradeFastrefundGoodsstatusSyncResponse -} - -// 卖家退款单商品状态同步 成功返回结果 -type AlibabaLstTradeFastrefundGoodsstatusSyncResponse struct { - XMLName xml.Name `xml:"alibaba_lst_trade_fastrefund_goodsstatus_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true表示成功,false表示失败 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lsttrade/AlibabaLstTradeOrderGetAPIRequest.go b/model/lsttrade/AlibabaLstTradeOrderGetAPIRequest.go new file mode 100644 index 0000000000..fef3ddb058 --- /dev/null +++ b/model/lsttrade/AlibabaLstTradeOrderGetAPIRequest.go @@ -0,0 +1,66 @@ +package lsttrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售通交易订单查询--品牌商视角 API请求 +alibaba.lst.trade.order.get + +根据订单id查询零售通交易订单 +*/ +type AlibabaLstTradeOrderGetAPIRequest struct { + model.Params + // 主订单id + _mainOrderId int64 + // 子订单id + _subOrderId int64 +} + +// 初始化AlibabaLstTradeOrderGetAPIRequest对象 +func NewAlibabaLstTradeOrderGetRequest() *AlibabaLstTradeOrderGetAPIRequest{ + return &AlibabaLstTradeOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstTradeOrderGetAPIRequest) GetApiMethodName() string { + return "alibaba.lst.trade.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstTradeOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainOrderId Setter +// 主订单id +func (r *AlibabaLstTradeOrderGetAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r AlibabaLstTradeOrderGetAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} +// SubOrderId Setter +// 子订单id +func (r *AlibabaLstTradeOrderGetAPIRequest) SetSubOrderId(_subOrderId int64) error { + r._subOrderId = _subOrderId + r.Set("sub_order_id", _subOrderId) + return nil +} + +// SubOrderId Getter +func (r AlibabaLstTradeOrderGetAPIRequest) GetSubOrderId() int64 { + return r._subOrderId +} diff --git a/model/lsttrade/AlibabaLstTradeOrderGetAPIResponse.go b/model/lsttrade/AlibabaLstTradeOrderGetAPIResponse.go new file mode 100644 index 0000000000..49ce5042c2 --- /dev/null +++ b/model/lsttrade/AlibabaLstTradeOrderGetAPIResponse.go @@ -0,0 +1,27 @@ +package lsttrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售通交易订单查询--品牌商视角 API返回值 +alibaba.lst.trade.order.get + +根据订单id查询零售通交易订单 +*/ +type AlibabaLstTradeOrderGetAPIResponse struct { + model.CommonResponse + AlibabaLstTradeOrderGetAPIResponseModel +} + +// 零售通交易订单查询--品牌商视角 成功返回结果 +type AlibabaLstTradeOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_trade_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlibabaLstTradeOrderGetResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lsttrade/AlibabaLstTradeOrderGetResponse.go b/model/lsttrade/AlibabaLstTradeOrderGetResponse.go deleted file mode 100644 index f4e9caba63..0000000000 --- a/model/lsttrade/AlibabaLstTradeOrderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lsttrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售通交易订单查询--品牌商视角 API返回值 -alibaba.lst.trade.order.get - -根据订单id查询零售通交易订单 -*/ -type AlibabaLstTradeOrderGetAPIResponse struct { - model.CommonResponse - AlibabaLstTradeOrderGetResponse -} - -// 零售通交易订单查询--品牌商视角 成功返回结果 -type AlibabaLstTradeOrderGetResponse struct { - XMLName xml.Name `xml:"alibaba_lst_trade_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlibabaLstTradeOrderGetResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lsttrade/AlibabaLstTradeOrderGetResultDto.go b/model/lsttrade/AlibabaLstTradeOrderGetResultDto.go new file mode 100644 index 0000000000..29ed313279 --- /dev/null +++ b/model/lsttrade/AlibabaLstTradeOrderGetResultDto.go @@ -0,0 +1,13 @@ +package lsttrade + +// AlibabaLstTradeOrderGetResultDto +type AlibabaLstTradeOrderGetResultDto struct { + // 错误码 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 返回模型 + Content *LstTopOrderDto `json:"content,omitempty" xml:"content,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/lsttrade/AlibabaLstTradeOrderQuerychangeAPIRequest.go b/model/lsttrade/AlibabaLstTradeOrderQuerychangeAPIRequest.go new file mode 100644 index 0000000000..5540045392 --- /dev/null +++ b/model/lsttrade/AlibabaLstTradeOrderQuerychangeAPIRequest.go @@ -0,0 +1,52 @@ +package lsttrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单id批量查询(品牌商视角) API请求 +alibaba.lst.trade.order.querychange + +根据品牌和时间段查询有变更记录的订单id +*/ +type AlibabaLstTradeOrderQuerychangeAPIRequest struct { + model.Params + // 入参包装类 + _query *LstOrderQuery +} + +// 初始化AlibabaLstTradeOrderQuerychangeAPIRequest对象 +func NewAlibabaLstTradeOrderQuerychangeRequest() *AlibabaLstTradeOrderQuerychangeAPIRequest{ + return &AlibabaLstTradeOrderQuerychangeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstTradeOrderQuerychangeAPIRequest) GetApiMethodName() string { + return "alibaba.lst.trade.order.querychange" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstTradeOrderQuerychangeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 入参包装类 +func (r *AlibabaLstTradeOrderQuerychangeAPIRequest) SetQuery(_query *LstOrderQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaLstTradeOrderQuerychangeAPIRequest) GetQuery() *LstOrderQuery { + return r._query +} diff --git a/model/lsttrade/AlibabaLstTradeOrderQuerychangeAPIResponse.go b/model/lsttrade/AlibabaLstTradeOrderQuerychangeAPIResponse.go new file mode 100644 index 0000000000..60ea5552fa --- /dev/null +++ b/model/lsttrade/AlibabaLstTradeOrderQuerychangeAPIResponse.go @@ -0,0 +1,27 @@ +package lsttrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单id批量查询(品牌商视角) API返回值 +alibaba.lst.trade.order.querychange + +根据品牌和时间段查询有变更记录的订单id +*/ +type AlibabaLstTradeOrderQuerychangeAPIResponse struct { + model.CommonResponse + AlibabaLstTradeOrderQuerychangeAPIResponseModel +} + +// 订单id批量查询(品牌商视角) 成功返回结果 +type AlibabaLstTradeOrderQuerychangeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_trade_order_querychange_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *PagedResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lsttrade/AlibabaLstTradeOrderQuerychangeResponse.go b/model/lsttrade/AlibabaLstTradeOrderQuerychangeResponse.go deleted file mode 100644 index 7c40f53d59..0000000000 --- a/model/lsttrade/AlibabaLstTradeOrderQuerychangeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lsttrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单id批量查询(品牌商视角) API返回值 -alibaba.lst.trade.order.querychange - -根据品牌和时间段查询有变更记录的订单id -*/ -type AlibabaLstTradeOrderQuerychangeAPIResponse struct { - model.CommonResponse - AlibabaLstTradeOrderQuerychangeResponse -} - -// 订单id批量查询(品牌商视角) 成功返回结果 -type AlibabaLstTradeOrderQuerychangeResponse struct { - XMLName xml.Name `xml:"alibaba_lst_trade_order_querychange_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *PagedResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lsttrade/AlibabaLstTradeOrderRefundListQueryAPIRequest.go b/model/lsttrade/AlibabaLstTradeOrderRefundListQueryAPIRequest.go new file mode 100644 index 0000000000..0912143feb --- /dev/null +++ b/model/lsttrade/AlibabaLstTradeOrderRefundListQueryAPIRequest.go @@ -0,0 +1,52 @@ +package lsttrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询退款单列表(卖家视角) API请求 +alibaba.lst.trade.order.refund.list.query + +查询退款单列表(卖家视角) +*/ +type AlibabaLstTradeOrderRefundListQueryAPIRequest struct { + model.Params + // 输入参数 + _param *TopLstSupplierOrderRefundQuery +} + +// 初始化AlibabaLstTradeOrderRefundListQueryAPIRequest对象 +func NewAlibabaLstTradeOrderRefundListQueryRequest() *AlibabaLstTradeOrderRefundListQueryAPIRequest{ + return &AlibabaLstTradeOrderRefundListQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstTradeOrderRefundListQueryAPIRequest) GetApiMethodName() string { + return "alibaba.lst.trade.order.refund.list.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstTradeOrderRefundListQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 输入参数 +func (r *AlibabaLstTradeOrderRefundListQueryAPIRequest) SetParam(_param *TopLstSupplierOrderRefundQuery) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaLstTradeOrderRefundListQueryAPIRequest) GetParam() *TopLstSupplierOrderRefundQuery { + return r._param +} diff --git a/model/lsttrade/AlibabaLstTradeOrderRefundListQueryAPIResponse.go b/model/lsttrade/AlibabaLstTradeOrderRefundListQueryAPIResponse.go new file mode 100644 index 0000000000..df086bcb81 --- /dev/null +++ b/model/lsttrade/AlibabaLstTradeOrderRefundListQueryAPIResponse.go @@ -0,0 +1,33 @@ +package lsttrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询退款单列表(卖家视角) API返回值 +alibaba.lst.trade.order.refund.list.query + +查询退款单列表(卖家视角) +*/ +type AlibabaLstTradeOrderRefundListQueryAPIResponse struct { + model.CommonResponse + AlibabaLstTradeOrderRefundListQueryAPIResponseModel +} + +// 查询退款单列表(卖家视角) 成功返回结果 +type AlibabaLstTradeOrderRefundListQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_trade_order_refund_list_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 总数 + Total int64 `json:"total,omitempty" xml:"total,omitempty"` + // 每页数量 + Size int64 `json:"size,omitempty" xml:"size,omitempty"` + // 当前页 + Page int64 `json:"page,omitempty" xml:"page,omitempty"` + // 列表数据 + ContentList []Content `json:"content_list,omitempty" xml:"content_list>content,omitempty"` +} diff --git a/model/lsttrade/AlibabaLstTradeOrderRefundListQueryResponse.go b/model/lsttrade/AlibabaLstTradeOrderRefundListQueryResponse.go deleted file mode 100644 index ef150f85aa..0000000000 --- a/model/lsttrade/AlibabaLstTradeOrderRefundListQueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package lsttrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询退款单列表(卖家视角) API返回值 -alibaba.lst.trade.order.refund.list.query - -查询退款单列表(卖家视角) -*/ -type AlibabaLstTradeOrderRefundListQueryAPIResponse struct { - model.CommonResponse - AlibabaLstTradeOrderRefundListQueryResponse -} - -// 查询退款单列表(卖家视角) 成功返回结果 -type AlibabaLstTradeOrderRefundListQueryResponse struct { - XMLName xml.Name `xml:"alibaba_lst_trade_order_refund_list_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 总数 - Total int64 `json:"total,omitempty" xml:"total,omitempty"` - // 每页数量 - Size int64 `json:"size,omitempty" xml:"size,omitempty"` - // 当前页 - Page int64 `json:"page,omitempty" xml:"page,omitempty"` - // 列表数据 - ContentList []Content `json:"content_list,omitempty" xml:"content_list>content,omitempty"` -} diff --git a/model/lsttrade/AlibabaLstTradeRefundOrderGetAPIRequest.go b/model/lsttrade/AlibabaLstTradeRefundOrderGetAPIRequest.go new file mode 100644 index 0000000000..2d7143428b --- /dev/null +++ b/model/lsttrade/AlibabaLstTradeRefundOrderGetAPIRequest.go @@ -0,0 +1,66 @@ +package lsttrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售通退款订单查询 API请求 +alibaba.lst.trade.refund.order.get + +零售通退款订单查询 +*/ +type AlibabaLstTradeRefundOrderGetAPIRequest struct { + model.Params + // 退款单id + _refundId string + // 主订单id + _mainOrderId int64 +} + +// 初始化AlibabaLstTradeRefundOrderGetAPIRequest对象 +func NewAlibabaLstTradeRefundOrderGetRequest() *AlibabaLstTradeRefundOrderGetAPIRequest{ + return &AlibabaLstTradeRefundOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstTradeRefundOrderGetAPIRequest) GetApiMethodName() string { + return "alibaba.lst.trade.refund.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstTradeRefundOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundId Setter +// 退款单id +func (r *AlibabaLstTradeRefundOrderGetAPIRequest) SetRefundId(_refundId string) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r AlibabaLstTradeRefundOrderGetAPIRequest) GetRefundId() string { + return r._refundId +} +// MainOrderId Setter +// 主订单id +func (r *AlibabaLstTradeRefundOrderGetAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r AlibabaLstTradeRefundOrderGetAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} diff --git a/model/lsttrade/AlibabaLstTradeRefundOrderGetAPIResponse.go b/model/lsttrade/AlibabaLstTradeRefundOrderGetAPIResponse.go new file mode 100644 index 0000000000..3f2c5c9626 --- /dev/null +++ b/model/lsttrade/AlibabaLstTradeRefundOrderGetAPIResponse.go @@ -0,0 +1,35 @@ +package lsttrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售通退款订单查询 API返回值 +alibaba.lst.trade.refund.order.get + +零售通退款订单查询 +*/ +type AlibabaLstTradeRefundOrderGetAPIResponse struct { + model.CommonResponse + AlibabaLstTradeRefundOrderGetAPIResponseModel +} + +// 零售通退款订单查询 成功返回结果 +type AlibabaLstTradeRefundOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_trade_refund_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 退款单id + RefundId string `json:"refund_id,omitempty" xml:"refund_id,omitempty"` + // 退款申请时间 + GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` + // 退款状态,取值如下:等待卖家同意(waitselleragree),待买家修改(waitbuyermodify),等待买家退货(waitbuyersend),等待卖家确认收货(waitsellerreceive),退款成功(refundsuccess), 退款关闭(refundclose) + RefundStatus string `json:"refund_status,omitempty" xml:"refund_status,omitempty"` + // 退款完成时间 + GmtCompleted string `json:"gmt_completed,omitempty" xml:"gmt_completed,omitempty"` + // 子订单退款信息列表 + SubOrders []RefundSubOrderInfo `json:"sub_orders,omitempty" xml:"sub_orders>refund_sub_order_info,omitempty"` +} diff --git a/model/lsttrade/AlibabaLstTradeRefundOrderGetResponse.go b/model/lsttrade/AlibabaLstTradeRefundOrderGetResponse.go deleted file mode 100644 index 18b56c0bd2..0000000000 --- a/model/lsttrade/AlibabaLstTradeRefundOrderGetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package lsttrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售通退款订单查询 API返回值 -alibaba.lst.trade.refund.order.get - -零售通退款订单查询 -*/ -type AlibabaLstTradeRefundOrderGetAPIResponse struct { - model.CommonResponse - AlibabaLstTradeRefundOrderGetResponse -} - -// 零售通退款订单查询 成功返回结果 -type AlibabaLstTradeRefundOrderGetResponse struct { - XMLName xml.Name `xml:"alibaba_lst_trade_refund_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 退款单id - RefundId string `json:"refund_id,omitempty" xml:"refund_id,omitempty"` - // 退款申请时间 - GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` - // 退款状态,取值如下:等待卖家同意(waitselleragree),待买家修改(waitbuyermodify),等待买家退货(waitbuyersend),等待卖家确认收货(waitsellerreceive),退款成功(refundsuccess), 退款关闭(refundclose) - RefundStatus string `json:"refund_status,omitempty" xml:"refund_status,omitempty"` - // 退款完成时间 - GmtCompleted string `json:"gmt_completed,omitempty" xml:"gmt_completed,omitempty"` - // 子订单退款信息列表 - SubOrders []RefundSubOrderInfo `json:"sub_orders,omitempty" xml:"sub_orders>refund_sub_order_info,omitempty"` -} diff --git a/model/lsttrade/AlibabaLstTradeSellerOrderDetailQueryAPIRequest.go b/model/lsttrade/AlibabaLstTradeSellerOrderDetailQueryAPIRequest.go new file mode 100644 index 0000000000..caad246cd2 --- /dev/null +++ b/model/lsttrade/AlibabaLstTradeSellerOrderDetailQueryAPIRequest.go @@ -0,0 +1,52 @@ +package lsttrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单详情查看(卖家视角) API请求 +alibaba.lst.trade.seller.order.detail.query + +订单详情查看(卖家视角) +*/ +type AlibabaLstTradeSellerOrderDetailQueryAPIRequest struct { + model.Params + // 入参 + _param *LstTradeGetSellerOrderListParam +} + +// 初始化AlibabaLstTradeSellerOrderDetailQueryAPIRequest对象 +func NewAlibabaLstTradeSellerOrderDetailQueryRequest() *AlibabaLstTradeSellerOrderDetailQueryAPIRequest{ + return &AlibabaLstTradeSellerOrderDetailQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstTradeSellerOrderDetailQueryAPIRequest) GetApiMethodName() string { + return "alibaba.lst.trade.seller.order.detail.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstTradeSellerOrderDetailQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *AlibabaLstTradeSellerOrderDetailQueryAPIRequest) SetParam(_param *LstTradeGetSellerOrderListParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaLstTradeSellerOrderDetailQueryAPIRequest) GetParam() *LstTradeGetSellerOrderListParam { + return r._param +} diff --git a/model/lsttrade/AlibabaLstTradeSellerOrderDetailQueryAPIResponse.go b/model/lsttrade/AlibabaLstTradeSellerOrderDetailQueryAPIResponse.go new file mode 100644 index 0000000000..05ef4e26a1 --- /dev/null +++ b/model/lsttrade/AlibabaLstTradeSellerOrderDetailQueryAPIResponse.go @@ -0,0 +1,27 @@ +package lsttrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单详情查看(卖家视角) API返回值 +alibaba.lst.trade.seller.order.detail.query + +订单详情查看(卖家视角) +*/ +type AlibabaLstTradeSellerOrderDetailQueryAPIResponse struct { + model.CommonResponse + AlibabaLstTradeSellerOrderDetailQueryAPIResponseModel +} + +// 订单详情查看(卖家视角) 成功返回结果 +type AlibabaLstTradeSellerOrderDetailQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_trade_seller_order_detail_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异步获取历史数据接口返回结果 + Result *AlibabaLstTradeSellerOrderDetailQueryResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lsttrade/AlibabaLstTradeSellerOrderDetailQueryResponse.go b/model/lsttrade/AlibabaLstTradeSellerOrderDetailQueryResponse.go deleted file mode 100644 index c9b7fec92b..0000000000 --- a/model/lsttrade/AlibabaLstTradeSellerOrderDetailQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lsttrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单详情查看(卖家视角) API返回值 -alibaba.lst.trade.seller.order.detail.query - -订单详情查看(卖家视角) -*/ -type AlibabaLstTradeSellerOrderDetailQueryAPIResponse struct { - model.CommonResponse - AlibabaLstTradeSellerOrderDetailQueryResponse -} - -// 订单详情查看(卖家视角) 成功返回结果 -type AlibabaLstTradeSellerOrderDetailQueryResponse struct { - XMLName xml.Name `xml:"alibaba_lst_trade_seller_order_detail_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异步获取历史数据接口返回结果 - Result *AlibabaLstTradeSellerOrderDetailQueryResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lsttrade/AlibabaLstTradeSellerOrderDetailQueryResultDto.go b/model/lsttrade/AlibabaLstTradeSellerOrderDetailQueryResultDto.go new file mode 100644 index 0000000000..4677b38986 --- /dev/null +++ b/model/lsttrade/AlibabaLstTradeSellerOrderDetailQueryResultDto.go @@ -0,0 +1,13 @@ +package lsttrade + +// AlibabaLstTradeSellerOrderDetailQueryResultDto +type AlibabaLstTradeSellerOrderDetailQueryResultDto struct { + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 返回值 + Content *Content `json:"content,omitempty" xml:"content,omitempty"` +} diff --git a/model/lsttrade/AlibabaLstTradeSellerOrderListQueryAPIRequest.go b/model/lsttrade/AlibabaLstTradeSellerOrderListQueryAPIRequest.go new file mode 100644 index 0000000000..bd37ce6401 --- /dev/null +++ b/model/lsttrade/AlibabaLstTradeSellerOrderListQueryAPIRequest.go @@ -0,0 +1,52 @@ +package lsttrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单列表查看(卖家视角) API请求 +alibaba.lst.trade.seller.order.list.query + +卖家视角订单查询,查询授权经销商订单列表 +*/ +type AlibabaLstTradeSellerOrderListQueryAPIRequest struct { + model.Params + // 入参 + _param *LstTradeGetSellerOrderListParam +} + +// 初始化AlibabaLstTradeSellerOrderListQueryAPIRequest对象 +func NewAlibabaLstTradeSellerOrderListQueryRequest() *AlibabaLstTradeSellerOrderListQueryAPIRequest{ + return &AlibabaLstTradeSellerOrderListQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstTradeSellerOrderListQueryAPIRequest) GetApiMethodName() string { + return "alibaba.lst.trade.seller.order.list.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstTradeSellerOrderListQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *AlibabaLstTradeSellerOrderListQueryAPIRequest) SetParam(_param *LstTradeGetSellerOrderListParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaLstTradeSellerOrderListQueryAPIRequest) GetParam() *LstTradeGetSellerOrderListParam { + return r._param +} diff --git a/model/lsttrade/AlibabaLstTradeSellerOrderListQueryAPIResponse.go b/model/lsttrade/AlibabaLstTradeSellerOrderListQueryAPIResponse.go new file mode 100644 index 0000000000..17f6c82603 --- /dev/null +++ b/model/lsttrade/AlibabaLstTradeSellerOrderListQueryAPIResponse.go @@ -0,0 +1,27 @@ +package lsttrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单列表查看(卖家视角) API返回值 +alibaba.lst.trade.seller.order.list.query + +卖家视角订单查询,查询授权经销商订单列表 +*/ +type AlibabaLstTradeSellerOrderListQueryAPIResponse struct { + model.CommonResponse + AlibabaLstTradeSellerOrderListQueryAPIResponseModel +} + +// 订单列表查看(卖家视角) 成功返回结果 +type AlibabaLstTradeSellerOrderListQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_trade_seller_order_list_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaLstTradeSellerOrderListQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lsttrade/AlibabaLstTradeSellerOrderListQueryResponse.go b/model/lsttrade/AlibabaLstTradeSellerOrderListQueryResponse.go deleted file mode 100644 index 9fb2387ab0..0000000000 --- a/model/lsttrade/AlibabaLstTradeSellerOrderListQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lsttrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单列表查看(卖家视角) API返回值 -alibaba.lst.trade.seller.order.list.query - -卖家视角订单查询,查询授权经销商订单列表 -*/ -type AlibabaLstTradeSellerOrderListQueryAPIResponse struct { - model.CommonResponse - AlibabaLstTradeSellerOrderListQueryResponse -} - -// 订单列表查看(卖家视角) 成功返回结果 -type AlibabaLstTradeSellerOrderListQueryResponse struct { - XMLName xml.Name `xml:"alibaba_lst_trade_seller_order_list_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaLstTradeSellerOrderListQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lsttrade/AlibabaLstTradeShiporderQueryAPIRequest.go b/model/lsttrade/AlibabaLstTradeShiporderQueryAPIRequest.go new file mode 100644 index 0000000000..d765a13ff5 --- /dev/null +++ b/model/lsttrade/AlibabaLstTradeShiporderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package lsttrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商数据开放--发货单接口 API请求 +alibaba.lst.trade.shiporder.query + +供应商数据开放--发货单接口 +*/ +type AlibabaLstTradeShiporderQueryAPIRequest struct { + model.Params + // 入参 + _paramLstShipOrderQuery *LstShipOrderQuery +} + +// 初始化AlibabaLstTradeShiporderQueryAPIRequest对象 +func NewAlibabaLstTradeShiporderQueryRequest() *AlibabaLstTradeShiporderQueryAPIRequest{ + return &AlibabaLstTradeShiporderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstTradeShiporderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.lst.trade.shiporder.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstTradeShiporderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamLstShipOrderQuery Setter +// 入参 +func (r *AlibabaLstTradeShiporderQueryAPIRequest) SetParamLstShipOrderQuery(_paramLstShipOrderQuery *LstShipOrderQuery) error { + r._paramLstShipOrderQuery = _paramLstShipOrderQuery + r.Set("param_lst_ship_order_query", _paramLstShipOrderQuery) + return nil +} + +// ParamLstShipOrderQuery Getter +func (r AlibabaLstTradeShiporderQueryAPIRequest) GetParamLstShipOrderQuery() *LstShipOrderQuery { + return r._paramLstShipOrderQuery +} diff --git a/model/lsttrade/AlibabaLstTradeShiporderQueryAPIResponse.go b/model/lsttrade/AlibabaLstTradeShiporderQueryAPIResponse.go new file mode 100644 index 0000000000..8997db210f --- /dev/null +++ b/model/lsttrade/AlibabaLstTradeShiporderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package lsttrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商数据开放--发货单接口 API返回值 +alibaba.lst.trade.shiporder.query + +供应商数据开放--发货单接口 +*/ +type AlibabaLstTradeShiporderQueryAPIResponse struct { + model.CommonResponse + AlibabaLstTradeShiporderQueryAPIResponseModel +} + +// 供应商数据开放--发货单接口 成功返回结果 +type AlibabaLstTradeShiporderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_trade_shiporder_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *PagedResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lsttrade/AlibabaLstTradeShiporderQueryResponse.go b/model/lsttrade/AlibabaLstTradeShiporderQueryResponse.go deleted file mode 100644 index 7b64f4297b..0000000000 --- a/model/lsttrade/AlibabaLstTradeShiporderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lsttrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商数据开放--发货单接口 API返回值 -alibaba.lst.trade.shiporder.query - -供应商数据开放--发货单接口 -*/ -type AlibabaLstTradeShiporderQueryAPIResponse struct { - model.CommonResponse - AlibabaLstTradeShiporderQueryResponse -} - -// 供应商数据开放--发货单接口 成功返回结果 -type AlibabaLstTradeShiporderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_lst_trade_shiporder_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *PagedResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstvending/AlibabaLstVendingCargospaceSaveAPIRequest.go b/model/lstvending/AlibabaLstVendingCargospaceSaveAPIRequest.go new file mode 100644 index 0000000000..f45bfedd71 --- /dev/null +++ b/model/lstvending/AlibabaLstVendingCargospaceSaveAPIRequest.go @@ -0,0 +1,52 @@ +package lstvending + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +自动售卖机货道数据回流 API请求 +alibaba.lst.vending.cargospace.save + +自动售卖机货道数据回流接口,ISV通过调用此接口上传售卖机货道信息。 +*/ +type AlibabaLstVendingCargospaceSaveAPIRequest struct { + model.Params + // 货道信息 + _cargoSpaceDTOList []VendingCargoSpaceDto +} + +// 初始化AlibabaLstVendingCargospaceSaveAPIRequest对象 +func NewAlibabaLstVendingCargospaceSaveRequest() *AlibabaLstVendingCargospaceSaveAPIRequest{ + return &AlibabaLstVendingCargospaceSaveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstVendingCargospaceSaveAPIRequest) GetApiMethodName() string { + return "alibaba.lst.vending.cargospace.save" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstVendingCargospaceSaveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CargoSpaceDTOList Setter +// 货道信息 +func (r *AlibabaLstVendingCargospaceSaveAPIRequest) SetCargoSpaceDTOList(_cargoSpaceDTOList []VendingCargoSpaceDto) error { + r._cargoSpaceDTOList = _cargoSpaceDTOList + r.Set("cargo_space_d_t_o_list", _cargoSpaceDTOList) + return nil +} + +// CargoSpaceDTOList Getter +func (r AlibabaLstVendingCargospaceSaveAPIRequest) GetCargoSpaceDTOList() []VendingCargoSpaceDto { + return r._cargoSpaceDTOList +} diff --git a/model/lstvending/AlibabaLstVendingCargospaceSaveAPIResponse.go b/model/lstvending/AlibabaLstVendingCargospaceSaveAPIResponse.go new file mode 100644 index 0000000000..46a84672ff --- /dev/null +++ b/model/lstvending/AlibabaLstVendingCargospaceSaveAPIResponse.go @@ -0,0 +1,27 @@ +package lstvending + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +自动售卖机货道数据回流 API返回值 +alibaba.lst.vending.cargospace.save + +自动售卖机货道数据回流接口,ISV通过调用此接口上传售卖机货道信息。 +*/ +type AlibabaLstVendingCargospaceSaveAPIResponse struct { + model.CommonResponse + AlibabaLstVendingCargospaceSaveAPIResponseModel +} + +// 自动售卖机货道数据回流 成功返回结果 +type AlibabaLstVendingCargospaceSaveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_vending_cargospace_save_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果集 + Result *MultiResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstvending/AlibabaLstVendingCargospaceSaveResponse.go b/model/lstvending/AlibabaLstVendingCargospaceSaveResponse.go deleted file mode 100644 index 7e4f44f6ea..0000000000 --- a/model/lstvending/AlibabaLstVendingCargospaceSaveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstvending - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -自动售卖机货道数据回流 API返回值 -alibaba.lst.vending.cargospace.save - -自动售卖机货道数据回流接口,ISV通过调用此接口上传售卖机货道信息。 -*/ -type AlibabaLstVendingCargospaceSaveAPIResponse struct { - model.CommonResponse - AlibabaLstVendingCargospaceSaveResponse -} - -// 自动售卖机货道数据回流 成功返回结果 -type AlibabaLstVendingCargospaceSaveResponse struct { - XMLName xml.Name `xml:"alibaba_lst_vending_cargospace_save_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果集 - Result *MultiResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstvending/AlibabaLstVendingCargospaceSaveResultDto.go b/model/lstvending/AlibabaLstVendingCargospaceSaveResultDto.go new file mode 100644 index 0000000000..254c0a30b3 --- /dev/null +++ b/model/lstvending/AlibabaLstVendingCargospaceSaveResultDto.go @@ -0,0 +1,11 @@ +package lstvending + +// AlibabaLstVendingCargospaceSaveResultDto +type AlibabaLstVendingCargospaceSaveResultDto struct { + // 错误信息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 记录唯一标识 + Key string `json:"key,omitempty" xml:"key,omitempty"` +} diff --git a/model/lstvending/AlibabaLstVendingEquipmentQueryAPIRequest.go b/model/lstvending/AlibabaLstVendingEquipmentQueryAPIRequest.go new file mode 100644 index 0000000000..dc72f7cf5c --- /dev/null +++ b/model/lstvending/AlibabaLstVendingEquipmentQueryAPIRequest.go @@ -0,0 +1,52 @@ +package lstvending + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +自动售卖机设备信息查询 API请求 +alibaba.lst.vending.equipment.query + +为零售通品牌商提供已租赁的设备信息查询。 +*/ +type AlibabaLstVendingEquipmentQueryAPIRequest struct { + model.Params + // 设备查询条件 + _openEquipmentQuery *OpenEquipmentQuery +} + +// 初始化AlibabaLstVendingEquipmentQueryAPIRequest对象 +func NewAlibabaLstVendingEquipmentQueryRequest() *AlibabaLstVendingEquipmentQueryAPIRequest{ + return &AlibabaLstVendingEquipmentQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstVendingEquipmentQueryAPIRequest) GetApiMethodName() string { + return "alibaba.lst.vending.equipment.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstVendingEquipmentQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenEquipmentQuery Setter +// 设备查询条件 +func (r *AlibabaLstVendingEquipmentQueryAPIRequest) SetOpenEquipmentQuery(_openEquipmentQuery *OpenEquipmentQuery) error { + r._openEquipmentQuery = _openEquipmentQuery + r.Set("open_equipment_query", _openEquipmentQuery) + return nil +} + +// OpenEquipmentQuery Getter +func (r AlibabaLstVendingEquipmentQueryAPIRequest) GetOpenEquipmentQuery() *OpenEquipmentQuery { + return r._openEquipmentQuery +} diff --git a/model/lstvending/AlibabaLstVendingEquipmentQueryAPIResponse.go b/model/lstvending/AlibabaLstVendingEquipmentQueryAPIResponse.go new file mode 100644 index 0000000000..281994bb1c --- /dev/null +++ b/model/lstvending/AlibabaLstVendingEquipmentQueryAPIResponse.go @@ -0,0 +1,27 @@ +package lstvending + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +自动售卖机设备信息查询 API返回值 +alibaba.lst.vending.equipment.query + +为零售通品牌商提供已租赁的设备信息查询。 +*/ +type AlibabaLstVendingEquipmentQueryAPIResponse struct { + model.CommonResponse + AlibabaLstVendingEquipmentQueryAPIResponseModel +} + +// 自动售卖机设备信息查询 成功返回结果 +type AlibabaLstVendingEquipmentQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_vending_equipment_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果集 + Result *AlibabaLstVendingEquipmentQueryResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstvending/AlibabaLstVendingEquipmentQueryResponse.go b/model/lstvending/AlibabaLstVendingEquipmentQueryResponse.go deleted file mode 100644 index bf13b8658c..0000000000 --- a/model/lstvending/AlibabaLstVendingEquipmentQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstvending - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -自动售卖机设备信息查询 API返回值 -alibaba.lst.vending.equipment.query - -为零售通品牌商提供已租赁的设备信息查询。 -*/ -type AlibabaLstVendingEquipmentQueryAPIResponse struct { - model.CommonResponse - AlibabaLstVendingEquipmentQueryResponse -} - -// 自动售卖机设备信息查询 成功返回结果 -type AlibabaLstVendingEquipmentQueryResponse struct { - XMLName xml.Name `xml:"alibaba_lst_vending_equipment_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果集 - Result *AlibabaLstVendingEquipmentQueryResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstvending/AlibabaLstVendingEquipmentQueryResultDto.go b/model/lstvending/AlibabaLstVendingEquipmentQueryResultDto.go new file mode 100644 index 0000000000..2879b85737 --- /dev/null +++ b/model/lstvending/AlibabaLstVendingEquipmentQueryResultDto.go @@ -0,0 +1,13 @@ +package lstvending + +// AlibabaLstVendingEquipmentQueryResultDto +type AlibabaLstVendingEquipmentQueryResultDto struct { + // 错误信息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 设备信息列表 + ModuleList []OpenEquipmentDto `json:"module_list,omitempty" xml:"module_list>open_equipment_dto,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 是否执行异常 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/lstvending/AlibabaLstVendingGoodsSaveAPIRequest.go b/model/lstvending/AlibabaLstVendingGoodsSaveAPIRequest.go new file mode 100644 index 0000000000..5a5fb20755 --- /dev/null +++ b/model/lstvending/AlibabaLstVendingGoodsSaveAPIRequest.go @@ -0,0 +1,52 @@ +package lstvending + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +自动售卖机商品回传 API请求 +alibaba.lst.vending.goods.save + +零售通自动售卖机商品数据回流。 +*/ +type AlibabaLstVendingGoodsSaveAPIRequest struct { + model.Params + // 商品信息 + _goodsDTOList []VendingGoodsDto +} + +// 初始化AlibabaLstVendingGoodsSaveAPIRequest对象 +func NewAlibabaLstVendingGoodsSaveRequest() *AlibabaLstVendingGoodsSaveAPIRequest{ + return &AlibabaLstVendingGoodsSaveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstVendingGoodsSaveAPIRequest) GetApiMethodName() string { + return "alibaba.lst.vending.goods.save" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstVendingGoodsSaveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GoodsDTOList Setter +// 商品信息 +func (r *AlibabaLstVendingGoodsSaveAPIRequest) SetGoodsDTOList(_goodsDTOList []VendingGoodsDto) error { + r._goodsDTOList = _goodsDTOList + r.Set("goods_d_t_o_list", _goodsDTOList) + return nil +} + +// GoodsDTOList Getter +func (r AlibabaLstVendingGoodsSaveAPIRequest) GetGoodsDTOList() []VendingGoodsDto { + return r._goodsDTOList +} diff --git a/model/lstvending/AlibabaLstVendingGoodsSaveAPIResponse.go b/model/lstvending/AlibabaLstVendingGoodsSaveAPIResponse.go new file mode 100644 index 0000000000..d25b88d7c2 --- /dev/null +++ b/model/lstvending/AlibabaLstVendingGoodsSaveAPIResponse.go @@ -0,0 +1,27 @@ +package lstvending + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +自动售卖机商品回传 API返回值 +alibaba.lst.vending.goods.save + +零售通自动售卖机商品数据回流。 +*/ +type AlibabaLstVendingGoodsSaveAPIResponse struct { + model.CommonResponse + AlibabaLstVendingGoodsSaveAPIResponseModel +} + +// 自动售卖机商品回传 成功返回结果 +type AlibabaLstVendingGoodsSaveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_vending_goods_save_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果集 + Result *MultiResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstvending/AlibabaLstVendingGoodsSaveResponse.go b/model/lstvending/AlibabaLstVendingGoodsSaveResponse.go deleted file mode 100644 index 480c050e11..0000000000 --- a/model/lstvending/AlibabaLstVendingGoodsSaveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstvending - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -自动售卖机商品回传 API返回值 -alibaba.lst.vending.goods.save - -零售通自动售卖机商品数据回流。 -*/ -type AlibabaLstVendingGoodsSaveAPIResponse struct { - model.CommonResponse - AlibabaLstVendingGoodsSaveResponse -} - -// 自动售卖机商品回传 成功返回结果 -type AlibabaLstVendingGoodsSaveResponse struct { - XMLName xml.Name `xml:"alibaba_lst_vending_goods_save_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果集 - Result *MultiResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstvending/AlibabaLstVendingGoodsSaveResultDto.go b/model/lstvending/AlibabaLstVendingGoodsSaveResultDto.go new file mode 100644 index 0000000000..07dc52202c --- /dev/null +++ b/model/lstvending/AlibabaLstVendingGoodsSaveResultDto.go @@ -0,0 +1,11 @@ +package lstvending + +// AlibabaLstVendingGoodsSaveResultDto +type AlibabaLstVendingGoodsSaveResultDto struct { + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 错误信息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 记录唯一值 + Key string `json:"key,omitempty" xml:"key,omitempty"` +} diff --git a/model/lstvending/AlibabaLstVendingOrderUpdateAPIRequest.go b/model/lstvending/AlibabaLstVendingOrderUpdateAPIRequest.go new file mode 100644 index 0000000000..f97590cdef --- /dev/null +++ b/model/lstvending/AlibabaLstVendingOrderUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package lstvending + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +自动售货机订单物流信息回传 API请求 +alibaba.lst.vending.order.update + +零售通与设备供应商进行订单对接,通过此接口回流订单物流信息。 +*/ +type AlibabaLstVendingOrderUpdateAPIRequest struct { + model.Params + // 零售通设备订单 + _vendingOrderDTO *VendingOrderDto +} + +// 初始化AlibabaLstVendingOrderUpdateAPIRequest对象 +func NewAlibabaLstVendingOrderUpdateRequest() *AlibabaLstVendingOrderUpdateAPIRequest{ + return &AlibabaLstVendingOrderUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstVendingOrderUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.lst.vending.order.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstVendingOrderUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VendingOrderDTO Setter +// 零售通设备订单 +func (r *AlibabaLstVendingOrderUpdateAPIRequest) SetVendingOrderDTO(_vendingOrderDTO *VendingOrderDto) error { + r._vendingOrderDTO = _vendingOrderDTO + r.Set("vending_order_d_t_o", _vendingOrderDTO) + return nil +} + +// VendingOrderDTO Getter +func (r AlibabaLstVendingOrderUpdateAPIRequest) GetVendingOrderDTO() *VendingOrderDto { + return r._vendingOrderDTO +} diff --git a/model/lstvending/AlibabaLstVendingOrderUpdateAPIResponse.go b/model/lstvending/AlibabaLstVendingOrderUpdateAPIResponse.go new file mode 100644 index 0000000000..dbf808335a --- /dev/null +++ b/model/lstvending/AlibabaLstVendingOrderUpdateAPIResponse.go @@ -0,0 +1,33 @@ +package lstvending + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +自动售货机订单物流信息回传 API返回值 +alibaba.lst.vending.order.update + +零售通与设备供应商进行订单对接,通过此接口回流订单物流信息。 +*/ +type AlibabaLstVendingOrderUpdateAPIResponse struct { + model.CommonResponse + AlibabaLstVendingOrderUpdateAPIResponseModel +} + +// 自动售货机订单物流信息回传 成功返回结果 +type AlibabaLstVendingOrderUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_vending_order_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求是否成功 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 错误码 + ErrorNo string `json:"error_no,omitempty" xml:"error_no,omitempty"` + // 错误信息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 是否执行了更新操作 + Module bool `json:"module,omitempty" xml:"module,omitempty"` +} diff --git a/model/lstvending/AlibabaLstVendingOrderUpdateResponse.go b/model/lstvending/AlibabaLstVendingOrderUpdateResponse.go deleted file mode 100644 index 502cd17955..0000000000 --- a/model/lstvending/AlibabaLstVendingOrderUpdateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package lstvending - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -自动售货机订单物流信息回传 API返回值 -alibaba.lst.vending.order.update - -零售通与设备供应商进行订单对接,通过此接口回流订单物流信息。 -*/ -type AlibabaLstVendingOrderUpdateAPIResponse struct { - model.CommonResponse - AlibabaLstVendingOrderUpdateResponse -} - -// 自动售货机订单物流信息回传 成功返回结果 -type AlibabaLstVendingOrderUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_lst_vending_order_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求是否成功 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` - // 错误码 - ErrorNo string `json:"error_no,omitempty" xml:"error_no,omitempty"` - // 错误信息 - ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` - // 是否执行了更新操作 - Module bool `json:"module,omitempty" xml:"module,omitempty"` -} diff --git a/model/lstvending/AlibabaLstVendingShippingCallbackAPIRequest.go b/model/lstvending/AlibabaLstVendingShippingCallbackAPIRequest.go new file mode 100644 index 0000000000..bc20072994 --- /dev/null +++ b/model/lstvending/AlibabaLstVendingShippingCallbackAPIRequest.go @@ -0,0 +1,108 @@ +package lstvending + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +售货机出货回传接口 API请求 +alibaba.lst.vending.shipping.callback + +零售通自动售货机商品出货回传接口,同步商品出库最新状态。 +*/ +type AlibabaLstVendingShippingCallbackAPIRequest struct { + model.Params + // 厂商设备编码 + _equipmentCode string + // 交易流水号 + _tradeFlowNo string + // 处理结果代码 + _code string + // 处理结果代码描述 + _message string + // 出货时间 + _time string +} + +// 初始化AlibabaLstVendingShippingCallbackAPIRequest对象 +func NewAlibabaLstVendingShippingCallbackRequest() *AlibabaLstVendingShippingCallbackAPIRequest{ + return &AlibabaLstVendingShippingCallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstVendingShippingCallbackAPIRequest) GetApiMethodName() string { + return "alibaba.lst.vending.shipping.callback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstVendingShippingCallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EquipmentCode Setter +// 厂商设备编码 +func (r *AlibabaLstVendingShippingCallbackAPIRequest) SetEquipmentCode(_equipmentCode string) error { + r._equipmentCode = _equipmentCode + r.Set("equipment_code", _equipmentCode) + return nil +} + +// EquipmentCode Getter +func (r AlibabaLstVendingShippingCallbackAPIRequest) GetEquipmentCode() string { + return r._equipmentCode +} +// TradeFlowNo Setter +// 交易流水号 +func (r *AlibabaLstVendingShippingCallbackAPIRequest) SetTradeFlowNo(_tradeFlowNo string) error { + r._tradeFlowNo = _tradeFlowNo + r.Set("trade_flow_no", _tradeFlowNo) + return nil +} + +// TradeFlowNo Getter +func (r AlibabaLstVendingShippingCallbackAPIRequest) GetTradeFlowNo() string { + return r._tradeFlowNo +} +// Code Setter +// 处理结果代码 +func (r *AlibabaLstVendingShippingCallbackAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaLstVendingShippingCallbackAPIRequest) GetCode() string { + return r._code +} +// Message Setter +// 处理结果代码描述 +func (r *AlibabaLstVendingShippingCallbackAPIRequest) SetMessage(_message string) error { + r._message = _message + r.Set("message", _message) + return nil +} + +// Message Getter +func (r AlibabaLstVendingShippingCallbackAPIRequest) GetMessage() string { + return r._message +} +// Time Setter +// 出货时间 +func (r *AlibabaLstVendingShippingCallbackAPIRequest) SetTime(_time string) error { + r._time = _time + r.Set("time", _time) + return nil +} + +// Time Getter +func (r AlibabaLstVendingShippingCallbackAPIRequest) GetTime() string { + return r._time +} diff --git a/model/lstvending/AlibabaLstVendingShippingCallbackAPIResponse.go b/model/lstvending/AlibabaLstVendingShippingCallbackAPIResponse.go new file mode 100644 index 0000000000..fed334b0b5 --- /dev/null +++ b/model/lstvending/AlibabaLstVendingShippingCallbackAPIResponse.go @@ -0,0 +1,27 @@ +package lstvending + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +售货机出货回传接口 API返回值 +alibaba.lst.vending.shipping.callback + +零售通自动售货机商品出货回传接口,同步商品出库最新状态。 +*/ +type AlibabaLstVendingShippingCallbackAPIResponse struct { + model.CommonResponse + AlibabaLstVendingShippingCallbackAPIResponseModel +} + +// 售货机出货回传接口 成功返回结果 +type AlibabaLstVendingShippingCallbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_vending_shipping_callback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 执行结果 + Module bool `json:"module,omitempty" xml:"module,omitempty"` +} diff --git a/model/lstvending/AlibabaLstVendingShippingCallbackResponse.go b/model/lstvending/AlibabaLstVendingShippingCallbackResponse.go deleted file mode 100644 index 65d9af90ba..0000000000 --- a/model/lstvending/AlibabaLstVendingShippingCallbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstvending - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -售货机出货回传接口 API返回值 -alibaba.lst.vending.shipping.callback - -零售通自动售货机商品出货回传接口,同步商品出库最新状态。 -*/ -type AlibabaLstVendingShippingCallbackAPIResponse struct { - model.CommonResponse - AlibabaLstVendingShippingCallbackResponse -} - -// 售货机出货回传接口 成功返回结果 -type AlibabaLstVendingShippingCallbackResponse struct { - XMLName xml.Name `xml:"alibaba_lst_vending_shipping_callback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 执行结果 - Module bool `json:"module,omitempty" xml:"module,omitempty"` -} diff --git a/model/lstvending/AlibabaLstVendingTradeflowQueryAPIRequest.go b/model/lstvending/AlibabaLstVendingTradeflowQueryAPIRequest.go new file mode 100644 index 0000000000..c2be0f55a1 --- /dev/null +++ b/model/lstvending/AlibabaLstVendingTradeflowQueryAPIRequest.go @@ -0,0 +1,52 @@ +package lstvending + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +自动售卖机交易流水查询 API请求 +alibaba.lst.vending.tradeflow.query + +零售通自动售卖机交易流水查询接口,品牌商通过此接口同步商品交易数据。 +*/ +type AlibabaLstVendingTradeflowQueryAPIRequest struct { + model.Params + // 交易流水查询条件 + _openTradeFlowQuery *OpenTradeFlowQuery +} + +// 初始化AlibabaLstVendingTradeflowQueryAPIRequest对象 +func NewAlibabaLstVendingTradeflowQueryRequest() *AlibabaLstVendingTradeflowQueryAPIRequest{ + return &AlibabaLstVendingTradeflowQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstVendingTradeflowQueryAPIRequest) GetApiMethodName() string { + return "alibaba.lst.vending.tradeflow.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstVendingTradeflowQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenTradeFlowQuery Setter +// 交易流水查询条件 +func (r *AlibabaLstVendingTradeflowQueryAPIRequest) SetOpenTradeFlowQuery(_openTradeFlowQuery *OpenTradeFlowQuery) error { + r._openTradeFlowQuery = _openTradeFlowQuery + r.Set("open_trade_flow_query", _openTradeFlowQuery) + return nil +} + +// OpenTradeFlowQuery Getter +func (r AlibabaLstVendingTradeflowQueryAPIRequest) GetOpenTradeFlowQuery() *OpenTradeFlowQuery { + return r._openTradeFlowQuery +} diff --git a/model/lstvending/AlibabaLstVendingTradeflowQueryAPIResponse.go b/model/lstvending/AlibabaLstVendingTradeflowQueryAPIResponse.go new file mode 100644 index 0000000000..92a791e5f5 --- /dev/null +++ b/model/lstvending/AlibabaLstVendingTradeflowQueryAPIResponse.go @@ -0,0 +1,27 @@ +package lstvending + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +自动售卖机交易流水查询 API返回值 +alibaba.lst.vending.tradeflow.query + +零售通自动售卖机交易流水查询接口,品牌商通过此接口同步商品交易数据。 +*/ +type AlibabaLstVendingTradeflowQueryAPIResponse struct { + model.CommonResponse + AlibabaLstVendingTradeflowQueryAPIResponseModel +} + +// 自动售卖机交易流水查询 成功返回结果 +type AlibabaLstVendingTradeflowQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_vending_tradeflow_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果集 + Result *AlibabaLstVendingTradeflowQueryResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstvending/AlibabaLstVendingTradeflowQueryResponse.go b/model/lstvending/AlibabaLstVendingTradeflowQueryResponse.go deleted file mode 100644 index 6dce7c2190..0000000000 --- a/model/lstvending/AlibabaLstVendingTradeflowQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstvending - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -自动售卖机交易流水查询 API返回值 -alibaba.lst.vending.tradeflow.query - -零售通自动售卖机交易流水查询接口,品牌商通过此接口同步商品交易数据。 -*/ -type AlibabaLstVendingTradeflowQueryAPIResponse struct { - model.CommonResponse - AlibabaLstVendingTradeflowQueryResponse -} - -// 自动售卖机交易流水查询 成功返回结果 -type AlibabaLstVendingTradeflowQueryResponse struct { - XMLName xml.Name `xml:"alibaba_lst_vending_tradeflow_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果集 - Result *AlibabaLstVendingTradeflowQueryResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstvending/AlibabaLstVendingTradeflowQueryResultDto.go b/model/lstvending/AlibabaLstVendingTradeflowQueryResultDto.go new file mode 100644 index 0000000000..a292225e16 --- /dev/null +++ b/model/lstvending/AlibabaLstVendingTradeflowQueryResultDto.go @@ -0,0 +1,13 @@ +package lstvending + +// AlibabaLstVendingTradeflowQueryResultDto +type AlibabaLstVendingTradeflowQueryResultDto struct { + // 错误信息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 交易流水记录 + ModuleList []VendingTradeFlowDto `json:"module_list,omitempty" xml:"module_list>vending_trade_flow_dto,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 是否异常 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/lstvending/AlibabaLstVendingTradeflowSaveAPIRequest.go b/model/lstvending/AlibabaLstVendingTradeflowSaveAPIRequest.go new file mode 100644 index 0000000000..30f4ab4f17 --- /dev/null +++ b/model/lstvending/AlibabaLstVendingTradeflowSaveAPIRequest.go @@ -0,0 +1,52 @@ +package lstvending + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +自动售卖机交易信息回流 API请求 +alibaba.lst.vending.tradeflow.save + +自动售货机交易信息同步接口,ISV通过此接口上传售货机交易信息。 +*/ +type AlibabaLstVendingTradeflowSaveAPIRequest struct { + model.Params + // 交易流水信息 + _tradeFlowDTOList []VendingTradeFlowDto +} + +// 初始化AlibabaLstVendingTradeflowSaveAPIRequest对象 +func NewAlibabaLstVendingTradeflowSaveRequest() *AlibabaLstVendingTradeflowSaveAPIRequest{ + return &AlibabaLstVendingTradeflowSaveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstVendingTradeflowSaveAPIRequest) GetApiMethodName() string { + return "alibaba.lst.vending.tradeflow.save" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstVendingTradeflowSaveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeFlowDTOList Setter +// 交易流水信息 +func (r *AlibabaLstVendingTradeflowSaveAPIRequest) SetTradeFlowDTOList(_tradeFlowDTOList []VendingTradeFlowDto) error { + r._tradeFlowDTOList = _tradeFlowDTOList + r.Set("trade_flow_d_t_o_list", _tradeFlowDTOList) + return nil +} + +// TradeFlowDTOList Getter +func (r AlibabaLstVendingTradeflowSaveAPIRequest) GetTradeFlowDTOList() []VendingTradeFlowDto { + return r._tradeFlowDTOList +} diff --git a/model/lstvending/AlibabaLstVendingTradeflowSaveAPIResponse.go b/model/lstvending/AlibabaLstVendingTradeflowSaveAPIResponse.go new file mode 100644 index 0000000000..7092a31211 --- /dev/null +++ b/model/lstvending/AlibabaLstVendingTradeflowSaveAPIResponse.go @@ -0,0 +1,27 @@ +package lstvending + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +自动售卖机交易信息回流 API返回值 +alibaba.lst.vending.tradeflow.save + +自动售货机交易信息同步接口,ISV通过此接口上传售货机交易信息。 +*/ +type AlibabaLstVendingTradeflowSaveAPIResponse struct { + model.CommonResponse + AlibabaLstVendingTradeflowSaveAPIResponseModel +} + +// 自动售卖机交易信息回流 成功返回结果 +type AlibabaLstVendingTradeflowSaveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_vending_tradeflow_save_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果集 + Result *MultiResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstvending/AlibabaLstVendingTradeflowSaveResponse.go b/model/lstvending/AlibabaLstVendingTradeflowSaveResponse.go deleted file mode 100644 index 5b83807589..0000000000 --- a/model/lstvending/AlibabaLstVendingTradeflowSaveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstvending - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -自动售卖机交易信息回流 API返回值 -alibaba.lst.vending.tradeflow.save - -自动售货机交易信息同步接口,ISV通过此接口上传售货机交易信息。 -*/ -type AlibabaLstVendingTradeflowSaveAPIResponse struct { - model.CommonResponse - AlibabaLstVendingTradeflowSaveResponse -} - -// 自动售卖机交易信息回流 成功返回结果 -type AlibabaLstVendingTradeflowSaveResponse struct { - XMLName xml.Name `xml:"alibaba_lst_vending_tradeflow_save_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果集 - Result *MultiResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstvending/AlibabaLstVendingTradeflowSaveResultDto.go b/model/lstvending/AlibabaLstVendingTradeflowSaveResultDto.go new file mode 100644 index 0000000000..c4575eae8d --- /dev/null +++ b/model/lstvending/AlibabaLstVendingTradeflowSaveResultDto.go @@ -0,0 +1,11 @@ +package lstvending + +// AlibabaLstVendingTradeflowSaveResultDto +type AlibabaLstVendingTradeflowSaveResultDto struct { + // 错误信息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 执行失败记录ID + Key string `json:"key,omitempty" xml:"key,omitempty"` +} diff --git a/model/lstvending/AlibabaLstVendngImageUploadAPIRequest.go b/model/lstvending/AlibabaLstVendngImageUploadAPIRequest.go new file mode 100644 index 0000000000..26f8976bce --- /dev/null +++ b/model/lstvending/AlibabaLstVendngImageUploadAPIRequest.go @@ -0,0 +1,52 @@ +package lstvending + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +售货机商品图片上传 API请求 +alibaba.lst.vendng.image.upload + +零售通自动售货机商品图片上传接口,主要为ISV厂商提供图片同步的通道,从而建立统一的商品图片库。 +*/ +type AlibabaLstVendngImageUploadAPIRequest struct { + model.Params + // 图片文件字节数组 + _imgBytes *model.File +} + +// 初始化AlibabaLstVendngImageUploadAPIRequest对象 +func NewAlibabaLstVendngImageUploadRequest() *AlibabaLstVendngImageUploadAPIRequest{ + return &AlibabaLstVendngImageUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstVendngImageUploadAPIRequest) GetApiMethodName() string { + return "alibaba.lst.vendng.image.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstVendngImageUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImgBytes Setter +// 图片文件字节数组 +func (r *AlibabaLstVendngImageUploadAPIRequest) SetImgBytes(_imgBytes *model.File) error { + r._imgBytes = _imgBytes + r.Set("img_bytes", _imgBytes) + return nil +} + +// ImgBytes Getter +func (r AlibabaLstVendngImageUploadAPIRequest) GetImgBytes() *model.File { + return r._imgBytes +} diff --git a/model/lstvending/AlibabaLstVendngImageUploadAPIResponse.go b/model/lstvending/AlibabaLstVendngImageUploadAPIResponse.go new file mode 100644 index 0000000000..95898fabfa --- /dev/null +++ b/model/lstvending/AlibabaLstVendngImageUploadAPIResponse.go @@ -0,0 +1,27 @@ +package lstvending + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +售货机商品图片上传 API返回值 +alibaba.lst.vendng.image.upload + +零售通自动售货机商品图片上传接口,主要为ISV厂商提供图片同步的通道,从而建立统一的商品图片库。 +*/ +type AlibabaLstVendngImageUploadAPIResponse struct { + model.CommonResponse + AlibabaLstVendngImageUploadAPIResponseModel +} + +// 售货机商品图片上传 成功返回结果 +type AlibabaLstVendngImageUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_vendng_image_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果集 + Result *AlibabaLstVendngImageUploadResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstvending/AlibabaLstVendngImageUploadResponse.go b/model/lstvending/AlibabaLstVendngImageUploadResponse.go deleted file mode 100644 index b8433a61e9..0000000000 --- a/model/lstvending/AlibabaLstVendngImageUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstvending - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -售货机商品图片上传 API返回值 -alibaba.lst.vendng.image.upload - -零售通自动售货机商品图片上传接口,主要为ISV厂商提供图片同步的通道,从而建立统一的商品图片库。 -*/ -type AlibabaLstVendngImageUploadAPIResponse struct { - model.CommonResponse - AlibabaLstVendngImageUploadResponse -} - -// 售货机商品图片上传 成功返回结果 -type AlibabaLstVendngImageUploadResponse struct { - XMLName xml.Name `xml:"alibaba_lst_vendng_image_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果集 - Result *AlibabaLstVendngImageUploadResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstvending/AlibabaLstVendngImageUploadResultDto.go b/model/lstvending/AlibabaLstVendngImageUploadResultDto.go new file mode 100644 index 0000000000..8ca8c257a0 --- /dev/null +++ b/model/lstvending/AlibabaLstVendngImageUploadResultDto.go @@ -0,0 +1,13 @@ +package lstvending + +// AlibabaLstVendngImageUploadResultDto +type AlibabaLstVendngImageUploadResultDto struct { + // 错误信息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 图片上传信息 + Module *VendingImageDto `json:"module,omitempty" xml:"module,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 是否处理成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/lstwarehouse/AlibabaLstBranddatashareStockdataQueryAPIRequest.go b/model/lstwarehouse/AlibabaLstBranddatashareStockdataQueryAPIRequest.go new file mode 100644 index 0000000000..e475832462 --- /dev/null +++ b/model/lstwarehouse/AlibabaLstBranddatashareStockdataQueryAPIRequest.go @@ -0,0 +1,52 @@ +package lstwarehouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询品牌商品实仓库存/周转效能 API请求 +alibaba.lst.branddatashare.stockdata.query + +品牌商查询授权供应商实仓库存数据 +*/ +type AlibabaLstBranddatashareStockdataQueryAPIRequest struct { + model.Params + // 入参 + _param *BmSupplierStockDataParam +} + +// 初始化AlibabaLstBranddatashareStockdataQueryAPIRequest对象 +func NewAlibabaLstBranddatashareStockdataQueryRequest() *AlibabaLstBranddatashareStockdataQueryAPIRequest{ + return &AlibabaLstBranddatashareStockdataQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstBranddatashareStockdataQueryAPIRequest) GetApiMethodName() string { + return "alibaba.lst.branddatashare.stockdata.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstBranddatashareStockdataQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *AlibabaLstBranddatashareStockdataQueryAPIRequest) SetParam(_param *BmSupplierStockDataParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaLstBranddatashareStockdataQueryAPIRequest) GetParam() *BmSupplierStockDataParam { + return r._param +} diff --git a/model/lstwarehouse/AlibabaLstBranddatashareStockdataQueryAPIResponse.go b/model/lstwarehouse/AlibabaLstBranddatashareStockdataQueryAPIResponse.go new file mode 100644 index 0000000000..229ac00842 --- /dev/null +++ b/model/lstwarehouse/AlibabaLstBranddatashareStockdataQueryAPIResponse.go @@ -0,0 +1,27 @@ +package lstwarehouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询品牌商品实仓库存/周转效能 API返回值 +alibaba.lst.branddatashare.stockdata.query + +品牌商查询授权供应商实仓库存数据 +*/ +type AlibabaLstBranddatashareStockdataQueryAPIResponse struct { + model.CommonResponse + AlibabaLstBranddatashareStockdataQueryAPIResponseModel +} + +// 查询品牌商品实仓库存/周转效能 成功返回结果 +type AlibabaLstBranddatashareStockdataQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_branddatashare_stockdata_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaLstBranddatashareStockdataQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstwarehouse/AlibabaLstBranddatashareStockdataQueryResponse.go b/model/lstwarehouse/AlibabaLstBranddatashareStockdataQueryResponse.go deleted file mode 100644 index 92901e560f..0000000000 --- a/model/lstwarehouse/AlibabaLstBranddatashareStockdataQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstwarehouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询品牌商品实仓库存/周转效能 API返回值 -alibaba.lst.branddatashare.stockdata.query - -品牌商查询授权供应商实仓库存数据 -*/ -type AlibabaLstBranddatashareStockdataQueryAPIResponse struct { - model.CommonResponse - AlibabaLstBranddatashareStockdataQueryResponse -} - -// 查询品牌商品实仓库存/周转效能 成功返回结果 -type AlibabaLstBranddatashareStockdataQueryResponse struct { - XMLName xml.Name `xml:"alibaba_lst_branddatashare_stockdata_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaLstBranddatashareStockdataQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstwarehouse/AlibabaLstBranddatashareSuppliersListQueryAPIRequest.go b/model/lstwarehouse/AlibabaLstBranddatashareSuppliersListQueryAPIRequest.go new file mode 100644 index 0000000000..5aba4efe67 --- /dev/null +++ b/model/lstwarehouse/AlibabaLstBranddatashareSuppliersListQueryAPIRequest.go @@ -0,0 +1,52 @@ +package lstwarehouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌数据授权的供应商列表 API请求 +alibaba.lst.branddatashare.suppliers.list.query + +品牌商查询品牌数据授权的供应商列表 +*/ +type AlibabaLstBranddatashareSuppliersListQueryAPIRequest struct { + model.Params + // 入参 + _query *LstBmSupplierQuery +} + +// 初始化AlibabaLstBranddatashareSuppliersListQueryAPIRequest对象 +func NewAlibabaLstBranddatashareSuppliersListQueryRequest() *AlibabaLstBranddatashareSuppliersListQueryAPIRequest{ + return &AlibabaLstBranddatashareSuppliersListQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstBranddatashareSuppliersListQueryAPIRequest) GetApiMethodName() string { + return "alibaba.lst.branddatashare.suppliers.list.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstBranddatashareSuppliersListQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 入参 +func (r *AlibabaLstBranddatashareSuppliersListQueryAPIRequest) SetQuery(_query *LstBmSupplierQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaLstBranddatashareSuppliersListQueryAPIRequest) GetQuery() *LstBmSupplierQuery { + return r._query +} diff --git a/model/lstwarehouse/AlibabaLstBranddatashareSuppliersListQueryAPIResponse.go b/model/lstwarehouse/AlibabaLstBranddatashareSuppliersListQueryAPIResponse.go new file mode 100644 index 0000000000..3b74edc536 --- /dev/null +++ b/model/lstwarehouse/AlibabaLstBranddatashareSuppliersListQueryAPIResponse.go @@ -0,0 +1,27 @@ +package lstwarehouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌数据授权的供应商列表 API返回值 +alibaba.lst.branddatashare.suppliers.list.query + +品牌商查询品牌数据授权的供应商列表 +*/ +type AlibabaLstBranddatashareSuppliersListQueryAPIResponse struct { + model.CommonResponse + AlibabaLstBranddatashareSuppliersListQueryAPIResponseModel +} + +// 品牌数据授权的供应商列表 成功返回结果 +type AlibabaLstBranddatashareSuppliersListQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_branddatashare_suppliers_list_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值列表 + ContentList []Content `json:"content_list,omitempty" xml:"content_list>content,omitempty"` +} diff --git a/model/lstwarehouse/AlibabaLstBranddatashareSuppliersListQueryResponse.go b/model/lstwarehouse/AlibabaLstBranddatashareSuppliersListQueryResponse.go deleted file mode 100644 index f1517acfbc..0000000000 --- a/model/lstwarehouse/AlibabaLstBranddatashareSuppliersListQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstwarehouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -品牌数据授权的供应商列表 API返回值 -alibaba.lst.branddatashare.suppliers.list.query - -品牌商查询品牌数据授权的供应商列表 -*/ -type AlibabaLstBranddatashareSuppliersListQueryAPIResponse struct { - model.CommonResponse - AlibabaLstBranddatashareSuppliersListQueryResponse -} - -// 品牌数据授权的供应商列表 成功返回结果 -type AlibabaLstBranddatashareSuppliersListQueryResponse struct { - XMLName xml.Name `xml:"alibaba_lst_branddatashare_suppliers_list_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值列表 - ContentList []Content `json:"content_list,omitempty" xml:"content_list>content,omitempty"` -} diff --git a/model/lstwarehouse/AlibabaLstIcStockItemsUpdateAPIRequest.go b/model/lstwarehouse/AlibabaLstIcStockItemsUpdateAPIRequest.go new file mode 100644 index 0000000000..ef097ca210 --- /dev/null +++ b/model/lstwarehouse/AlibabaLstIcStockItemsUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package lstwarehouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售通经销商商品库存设置 API请求 +alibaba.lst.ic.stock.items.update + +零售通经销商商品库存设置 +*/ +type AlibabaLstIcStockItemsUpdateAPIRequest struct { + model.Params + // 零售通经销商商品库存 + _query *LstItemStockParam +} + +// 初始化AlibabaLstIcStockItemsUpdateAPIRequest对象 +func NewAlibabaLstIcStockItemsUpdateRequest() *AlibabaLstIcStockItemsUpdateAPIRequest{ + return &AlibabaLstIcStockItemsUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstIcStockItemsUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.lst.ic.stock.items.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstIcStockItemsUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 零售通经销商商品库存 +func (r *AlibabaLstIcStockItemsUpdateAPIRequest) SetQuery(_query *LstItemStockParam) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaLstIcStockItemsUpdateAPIRequest) GetQuery() *LstItemStockParam { + return r._query +} diff --git a/model/lstwarehouse/AlibabaLstIcStockItemsUpdateAPIResponse.go b/model/lstwarehouse/AlibabaLstIcStockItemsUpdateAPIResponse.go new file mode 100644 index 0000000000..ab4f207cd0 --- /dev/null +++ b/model/lstwarehouse/AlibabaLstIcStockItemsUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package lstwarehouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售通经销商商品库存设置 API返回值 +alibaba.lst.ic.stock.items.update + +零售通经销商商品库存设置 +*/ +type AlibabaLstIcStockItemsUpdateAPIResponse struct { + model.CommonResponse + AlibabaLstIcStockItemsUpdateAPIResponseModel +} + +// 零售通经销商商品库存设置 成功返回结果 +type AlibabaLstIcStockItemsUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_ic_stock_items_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaLstIcStockItemsUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstwarehouse/AlibabaLstIcStockItemsUpdateResponse.go b/model/lstwarehouse/AlibabaLstIcStockItemsUpdateResponse.go deleted file mode 100644 index 6d088bc3b0..0000000000 --- a/model/lstwarehouse/AlibabaLstIcStockItemsUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstwarehouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售通经销商商品库存设置 API返回值 -alibaba.lst.ic.stock.items.update - -零售通经销商商品库存设置 -*/ -type AlibabaLstIcStockItemsUpdateAPIResponse struct { - model.CommonResponse - AlibabaLstIcStockItemsUpdateResponse -} - -// 零售通经销商商品库存设置 成功返回结果 -type AlibabaLstIcStockItemsUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_lst_ic_stock_items_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaLstIcStockItemsUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/lstwarehouse/AlibabaLstTradeSellerWarehouseQueryAPIRequest.go b/model/lstwarehouse/AlibabaLstTradeSellerWarehouseQueryAPIRequest.go new file mode 100644 index 0000000000..c9a068bb08 --- /dev/null +++ b/model/lstwarehouse/AlibabaLstTradeSellerWarehouseQueryAPIRequest.go @@ -0,0 +1,52 @@ +package lstwarehouse + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商-本云商家-仓库查询接口 API请求 +alibaba.lst.trade.seller.warehouse.query + +查询本地云仓商家的仓库 +*/ +type AlibabaLstTradeSellerWarehouseQueryAPIRequest struct { + model.Params + // 入参 + _warehouseQueryParam *WarehouseQueryParam +} + +// 初始化AlibabaLstTradeSellerWarehouseQueryAPIRequest对象 +func NewAlibabaLstTradeSellerWarehouseQueryRequest() *AlibabaLstTradeSellerWarehouseQueryAPIRequest{ + return &AlibabaLstTradeSellerWarehouseQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstTradeSellerWarehouseQueryAPIRequest) GetApiMethodName() string { + return "alibaba.lst.trade.seller.warehouse.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstTradeSellerWarehouseQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseQueryParam Setter +// 入参 +func (r *AlibabaLstTradeSellerWarehouseQueryAPIRequest) SetWarehouseQueryParam(_warehouseQueryParam *WarehouseQueryParam) error { + r._warehouseQueryParam = _warehouseQueryParam + r.Set("warehouse_query_param", _warehouseQueryParam) + return nil +} + +// WarehouseQueryParam Getter +func (r AlibabaLstTradeSellerWarehouseQueryAPIRequest) GetWarehouseQueryParam() *WarehouseQueryParam { + return r._warehouseQueryParam +} diff --git a/model/lstwarehouse/AlibabaLstTradeSellerWarehouseQueryAPIResponse.go b/model/lstwarehouse/AlibabaLstTradeSellerWarehouseQueryAPIResponse.go new file mode 100644 index 0000000000..9c0b6fb424 --- /dev/null +++ b/model/lstwarehouse/AlibabaLstTradeSellerWarehouseQueryAPIResponse.go @@ -0,0 +1,27 @@ +package lstwarehouse + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商-本云商家-仓库查询接口 API返回值 +alibaba.lst.trade.seller.warehouse.query + +查询本地云仓商家的仓库 +*/ +type AlibabaLstTradeSellerWarehouseQueryAPIResponse struct { + model.CommonResponse + AlibabaLstTradeSellerWarehouseQueryAPIResponseModel +} + +// 供应商-本云商家-仓库查询接口 成功返回结果 +type AlibabaLstTradeSellerWarehouseQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_trade_seller_warehouse_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaLstTradeSellerWarehouseQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/lstwarehouse/AlibabaLstTradeSellerWarehouseQueryResponse.go b/model/lstwarehouse/AlibabaLstTradeSellerWarehouseQueryResponse.go deleted file mode 100644 index d978c65559..0000000000 --- a/model/lstwarehouse/AlibabaLstTradeSellerWarehouseQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package lstwarehouse - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商-本云商家-仓库查询接口 API返回值 -alibaba.lst.trade.seller.warehouse.query - -查询本地云仓商家的仓库 -*/ -type AlibabaLstTradeSellerWarehouseQueryAPIResponse struct { - model.CommonResponse - AlibabaLstTradeSellerWarehouseQueryResponse -} - -// 供应商-本云商家-仓库查询接口 成功返回结果 -type AlibabaLstTradeSellerWarehouseQueryResponse struct { - XMLName xml.Name `xml:"alibaba_lst_trade_seller_warehouse_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaLstTradeSellerWarehouseQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ma/TaobaoMaQrcodeCommonCreateAPIRequest.go b/model/ma/TaobaoMaQrcodeCommonCreateAPIRequest.go new file mode 100644 index 0000000000..6c52f93924 --- /dev/null +++ b/model/ma/TaobaoMaQrcodeCommonCreateAPIRequest.go @@ -0,0 +1,150 @@ +package ma + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建码平台常用二维码 API请求 +taobao.ma.qrcode.common.create + +创建码平台对外提供的常用二维码接口,不适于码平台业务类型的码创建,如不支持包裹码、媒体码等,业务类型的码需要单独提供API。 +*/ +type TaobaoMaQrcodeCommonCreateAPIRequest struct { + model.Params + // 要制作的二维码业务类型:page:无线页面类型item:宝贝ID类型url:普通的URL连接类型shop:店铺ID类型 + _type string + // 二维码的内容之一,由type决定:type=page时,content传入无线页面的URL连接内容;type=item时,content传入宝贝数字ID;type=url时,content传入普通的URL连接内容;type=shop时,content传入店铺ID; + _content string + // 二维码名字,即创建的二维码,在码平台上显示记录的名字。 + _name string + // 二维码需要布点的位置,方便用户在码平台上可以区分看到不同布点的扫码数据情况;列表值,用半角','号分割,单个渠道名不能超过16字符。 + _channelName string + // 二维码的样式名,支持普通码的颜色或官方模板的模板名;普通码的颜色可选输入:“000000”(黑色)、“EF4F2B”(橙色);官方模板的可选输入(实际尺寸比样例大):“ww_color.png“ 尺寸290x320,样例:http://gtms03.alicdn.com/tps/i3/T1YLPRFRXXXXbsbYwb-100-102.png;“tb_scan.png“ 尺寸290x320,样例:http://gtms01.alicdn.com/tps/i1/T14vsEFThdXXbsbYwb-100-102.png;“ww_hide_color.png“ 尺寸200x263,样例:http://gtms04.alicdn.com/tps/i4/TB1URvlFVXXXXbRXFXXwxcf6pXX-76-100.png;“tmall_hide_color.png“ 尺寸200x263,样例:http://gtms01.alicdn.com/tps/i1/TB1S5PiFVXXXXacXVXXwxcf6pXX-76-100.png。 + _style string + // 二维码尺寸,只支持普通二维码,不支持官方模板,单位为像素,最小为60×60,最大为300×300,建议175×175。官方模板大小尺寸见style说明。 + _size int64 + // 是否需要矢量图,如果需要矢量图,设置为true;只支持普通二维码,官方模板不支持矢量图 + _needEps bool + // 二维码的logo地址,只允许淘宝官方图片空间的图片地址,其他非图片空间图片不支持。官方淘logo图片地址:http://img01.taobaocdn.com/imgextra/T1Od8YFT8eXXXXXXXX。 + _logo string +} + +// 初始化TaobaoMaQrcodeCommonCreateAPIRequest对象 +func NewTaobaoMaQrcodeCommonCreateRequest() *TaobaoMaQrcodeCommonCreateAPIRequest{ + return &TaobaoMaQrcodeCommonCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMaQrcodeCommonCreateAPIRequest) GetApiMethodName() string { + return "taobao.ma.qrcode.common.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMaQrcodeCommonCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// 要制作的二维码业务类型:page:无线页面类型item:宝贝ID类型url:普通的URL连接类型shop:店铺ID类型 +func (r *TaobaoMaQrcodeCommonCreateAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoMaQrcodeCommonCreateAPIRequest) GetType() string { + return r._type +} +// Content Setter +// 二维码的内容之一,由type决定:type=page时,content传入无线页面的URL连接内容;type=item时,content传入宝贝数字ID;type=url时,content传入普通的URL连接内容;type=shop时,content传入店铺ID; +func (r *TaobaoMaQrcodeCommonCreateAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r TaobaoMaQrcodeCommonCreateAPIRequest) GetContent() string { + return r._content +} +// Name Setter +// 二维码名字,即创建的二维码,在码平台上显示记录的名字。 +func (r *TaobaoMaQrcodeCommonCreateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoMaQrcodeCommonCreateAPIRequest) GetName() string { + return r._name +} +// ChannelName Setter +// 二维码需要布点的位置,方便用户在码平台上可以区分看到不同布点的扫码数据情况;列表值,用半角','号分割,单个渠道名不能超过16字符。 +func (r *TaobaoMaQrcodeCommonCreateAPIRequest) SetChannelName(_channelName string) error { + r._channelName = _channelName + r.Set("channel_name", _channelName) + return nil +} + +// ChannelName Getter +func (r TaobaoMaQrcodeCommonCreateAPIRequest) GetChannelName() string { + return r._channelName +} +// Style Setter +// 二维码的样式名,支持普通码的颜色或官方模板的模板名;普通码的颜色可选输入:“000000”(黑色)、“EF4F2B”(橙色);官方模板的可选输入(实际尺寸比样例大):“ww_color.png“ 尺寸290x320,样例:http://gtms03.alicdn.com/tps/i3/T1YLPRFRXXXXbsbYwb-100-102.png;“tb_scan.png“ 尺寸290x320,样例:http://gtms01.alicdn.com/tps/i1/T14vsEFThdXXbsbYwb-100-102.png;“ww_hide_color.png“ 尺寸200x263,样例:http://gtms04.alicdn.com/tps/i4/TB1URvlFVXXXXbRXFXXwxcf6pXX-76-100.png;“tmall_hide_color.png“ 尺寸200x263,样例:http://gtms01.alicdn.com/tps/i1/TB1S5PiFVXXXXacXVXXwxcf6pXX-76-100.png。 +func (r *TaobaoMaQrcodeCommonCreateAPIRequest) SetStyle(_style string) error { + r._style = _style + r.Set("style", _style) + return nil +} + +// Style Getter +func (r TaobaoMaQrcodeCommonCreateAPIRequest) GetStyle() string { + return r._style +} +// Size Setter +// 二维码尺寸,只支持普通二维码,不支持官方模板,单位为像素,最小为60×60,最大为300×300,建议175×175。官方模板大小尺寸见style说明。 +func (r *TaobaoMaQrcodeCommonCreateAPIRequest) SetSize(_size int64) error { + r._size = _size + r.Set("size", _size) + return nil +} + +// Size Getter +func (r TaobaoMaQrcodeCommonCreateAPIRequest) GetSize() int64 { + return r._size +} +// NeedEps Setter +// 是否需要矢量图,如果需要矢量图,设置为true;只支持普通二维码,官方模板不支持矢量图 +func (r *TaobaoMaQrcodeCommonCreateAPIRequest) SetNeedEps(_needEps bool) error { + r._needEps = _needEps + r.Set("need_eps", _needEps) + return nil +} + +// NeedEps Getter +func (r TaobaoMaQrcodeCommonCreateAPIRequest) GetNeedEps() bool { + return r._needEps +} +// Logo Setter +// 二维码的logo地址,只允许淘宝官方图片空间的图片地址,其他非图片空间图片不支持。官方淘logo图片地址:http://img01.taobaocdn.com/imgextra/T1Od8YFT8eXXXXXXXX。 +func (r *TaobaoMaQrcodeCommonCreateAPIRequest) SetLogo(_logo string) error { + r._logo = _logo + r.Set("logo", _logo) + return nil +} + +// Logo Getter +func (r TaobaoMaQrcodeCommonCreateAPIRequest) GetLogo() string { + return r._logo +} diff --git a/model/ma/TaobaoMaQrcodeCommonCreateAPIResponse.go b/model/ma/TaobaoMaQrcodeCommonCreateAPIResponse.go new file mode 100644 index 0000000000..621d29ea37 --- /dev/null +++ b/model/ma/TaobaoMaQrcodeCommonCreateAPIResponse.go @@ -0,0 +1,29 @@ +package ma + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建码平台常用二维码 API返回值 +taobao.ma.qrcode.common.create + +创建码平台对外提供的常用二维码接口,不适于码平台业务类型的码创建,如不支持包裹码、媒体码等,业务类型的码需要单独提供API。 +*/ +type TaobaoMaQrcodeCommonCreateAPIResponse struct { + model.CommonResponse + TaobaoMaQrcodeCommonCreateAPIResponseModel +} + +// 创建码平台常用二维码 成功返回结果 +type TaobaoMaQrcodeCommonCreateAPIResponseModel struct { + XMLName xml.Name `xml:"ma_qrcode_common_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 二维码对像 + Modules []QrcodeDo `json:"modules,omitempty" xml:"modules>qrcode_do,omitempty"` + // 执行是否成功 + Suc bool `json:"suc,omitempty" xml:"suc,omitempty"` +} diff --git a/model/ma/TaobaoMaQrcodeCommonCreateResponse.go b/model/ma/TaobaoMaQrcodeCommonCreateResponse.go deleted file mode 100644 index 1c64bbabb0..0000000000 --- a/model/ma/TaobaoMaQrcodeCommonCreateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package ma - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建码平台常用二维码 API返回值 -taobao.ma.qrcode.common.create - -创建码平台对外提供的常用二维码接口,不适于码平台业务类型的码创建,如不支持包裹码、媒体码等,业务类型的码需要单独提供API。 -*/ -type TaobaoMaQrcodeCommonCreateAPIResponse struct { - model.CommonResponse - TaobaoMaQrcodeCommonCreateResponse -} - -// 创建码平台常用二维码 成功返回结果 -type TaobaoMaQrcodeCommonCreateResponse struct { - XMLName xml.Name `xml:"ma_qrcode_common_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 二维码对像 - Modules []QrcodeDo `json:"modules,omitempty" xml:"modules>qrcode_do,omitempty"` - // 执行是否成功 - Suc bool `json:"suc,omitempty" xml:"suc,omitempty"` -} diff --git a/model/ma/TaobaoWirelessXcodeCreateAPIRequest.go b/model/ma/TaobaoWirelessXcodeCreateAPIRequest.go new file mode 100644 index 0000000000..e31349e755 --- /dev/null +++ b/model/ma/TaobaoWirelessXcodeCreateAPIRequest.go @@ -0,0 +1,80 @@ +package ma + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建二维码/短连接 API请求 +taobao.wireless.xcode.create + +创建码平台的普通二维码或者长连接转短连接服务 +*/ +type TaobaoWirelessXcodeCreateAPIRequest struct { + model.Params + // 码平台开放的业务code + _bizCode string + // 原始内容/原始地址 + _content string + // 普通二维码样式参数 + _style *QrCodeStyle +} + +// 初始化TaobaoWirelessXcodeCreateAPIRequest对象 +func NewTaobaoWirelessXcodeCreateRequest() *TaobaoWirelessXcodeCreateAPIRequest{ + return &TaobaoWirelessXcodeCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWirelessXcodeCreateAPIRequest) GetApiMethodName() string { + return "taobao.wireless.xcode.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWirelessXcodeCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizCode Setter +// 码平台开放的业务code +func (r *TaobaoWirelessXcodeCreateAPIRequest) SetBizCode(_bizCode string) error { + r._bizCode = _bizCode + r.Set("biz_code", _bizCode) + return nil +} + +// BizCode Getter +func (r TaobaoWirelessXcodeCreateAPIRequest) GetBizCode() string { + return r._bizCode +} +// Content Setter +// 原始内容/原始地址 +func (r *TaobaoWirelessXcodeCreateAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r TaobaoWirelessXcodeCreateAPIRequest) GetContent() string { + return r._content +} +// Style Setter +// 普通二维码样式参数 +func (r *TaobaoWirelessXcodeCreateAPIRequest) SetStyle(_style *QrCodeStyle) error { + r._style = _style + r.Set("style", _style) + return nil +} + +// Style Getter +func (r TaobaoWirelessXcodeCreateAPIRequest) GetStyle() *QrCodeStyle { + return r._style +} diff --git a/model/ma/TaobaoWirelessXcodeCreateAPIResponse.go b/model/ma/TaobaoWirelessXcodeCreateAPIResponse.go new file mode 100644 index 0000000000..404f837e80 --- /dev/null +++ b/model/ma/TaobaoWirelessXcodeCreateAPIResponse.go @@ -0,0 +1,27 @@ +package ma + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建二维码/短连接 API返回值 +taobao.wireless.xcode.create + +创建码平台的普通二维码或者长连接转短连接服务 +*/ +type TaobaoWirelessXcodeCreateAPIResponse struct { + model.CommonResponse + TaobaoWirelessXcodeCreateAPIResponseModel +} + +// 创建二维码/短连接 成功返回结果 +type TaobaoWirelessXcodeCreateAPIResponseModel struct { + XMLName xml.Name `xml:"wireless_xcode_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创建二维码/短连接 返回信息 + Xcode *XCodeTo `json:"xcode,omitempty" xml:"xcode,omitempty"` +} diff --git a/model/ma/TaobaoWirelessXcodeCreateResponse.go b/model/ma/TaobaoWirelessXcodeCreateResponse.go deleted file mode 100644 index 191174e7b3..0000000000 --- a/model/ma/TaobaoWirelessXcodeCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ma - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建二维码/短连接 API返回值 -taobao.wireless.xcode.create - -创建码平台的普通二维码或者长连接转短连接服务 -*/ -type TaobaoWirelessXcodeCreateAPIResponse struct { - model.CommonResponse - TaobaoWirelessXcodeCreateResponse -} - -// 创建二维码/短连接 成功返回结果 -type TaobaoWirelessXcodeCreateResponse struct { - XMLName xml.Name `xml:"wireless_xcode_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创建二维码/短连接 返回信息 - Xcode *XCodeTo `json:"xcode,omitempty" xml:"xcode,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixDistributionCmbParamencryptAPIRequest.go b/model/maitix/AlibabaDamaiMaitixDistributionCmbParamencryptAPIRequest.go new file mode 100644 index 0000000000..74d94792d9 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixDistributionCmbParamencryptAPIRequest.go @@ -0,0 +1,52 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +加密招商一网能支付入参 API请求 +alibaba.damai.maitix.distribution.cmb.paramencrypt + +encryptParam4Cmb +*/ +type AlibabaDamaiMaitixDistributionCmbParamencryptAPIRequest struct { + model.Params + // 入参param + _param *DisEncrypt4CmbParam +} + +// 初始化AlibabaDamaiMaitixDistributionCmbParamencryptAPIRequest对象 +func NewAlibabaDamaiMaitixDistributionCmbParamencryptRequest() *AlibabaDamaiMaitixDistributionCmbParamencryptAPIRequest{ + return &AlibabaDamaiMaitixDistributionCmbParamencryptAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixDistributionCmbParamencryptAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.distribution.cmb.paramencrypt" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixDistributionCmbParamencryptAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参param +func (r *AlibabaDamaiMaitixDistributionCmbParamencryptAPIRequest) SetParam(_param *DisEncrypt4CmbParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaDamaiMaitixDistributionCmbParamencryptAPIRequest) GetParam() *DisEncrypt4CmbParam { + return r._param +} diff --git a/model/maitix/AlibabaDamaiMaitixDistributionCmbParamencryptAPIResponse.go b/model/maitix/AlibabaDamaiMaitixDistributionCmbParamencryptAPIResponse.go new file mode 100644 index 0000000000..724fe55895 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixDistributionCmbParamencryptAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +加密招商一网能支付入参 API返回值 +alibaba.damai.maitix.distribution.cmb.paramencrypt + +encryptParam4Cmb +*/ +type AlibabaDamaiMaitixDistributionCmbParamencryptAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixDistributionCmbParamencryptAPIResponseModel +} + +// 加密招商一网能支付入参 成功返回结果 +type AlibabaDamaiMaitixDistributionCmbParamencryptAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_distribution_cmb_paramencrypt_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixDistributionCmbParamencryptResponse.go b/model/maitix/AlibabaDamaiMaitixDistributionCmbParamencryptResponse.go deleted file mode 100644 index e89116fcb2..0000000000 --- a/model/maitix/AlibabaDamaiMaitixDistributionCmbParamencryptResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -加密招商一网能支付入参 API返回值 -alibaba.damai.maitix.distribution.cmb.paramencrypt - -encryptParam4Cmb -*/ -type AlibabaDamaiMaitixDistributionCmbParamencryptAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixDistributionCmbParamencryptResponse -} - -// 加密招商一网能支付入参 成功返回结果 -type AlibabaDamaiMaitixDistributionCmbParamencryptResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_distribution_cmb_paramencrypt_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIRequest.go b/model/maitix/AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIRequest.go new file mode 100644 index 0000000000..9a53adf1a3 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIRequest.go @@ -0,0 +1,52 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询招行支付状态api API请求 +alibaba.damai.maitix.distribution.cmb.querypayresult + +queryPayResult +*/ +type AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIRequest struct { + model.Params + // 入参param + _param *QueryPayResultParam +} + +// 初始化AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIRequest对象 +func NewAlibabaDamaiMaitixDistributionCmbQuerypayresultRequest() *AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIRequest{ + return &AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.distribution.cmb.querypayresult" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参param +func (r *AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIRequest) SetParam(_param *QueryPayResultParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIRequest) GetParam() *QueryPayResultParam { + return r._param +} diff --git a/model/maitix/AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIResponse.go b/model/maitix/AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIResponse.go new file mode 100644 index 0000000000..fc52aada1a --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询招行支付状态api API返回值 +alibaba.damai.maitix.distribution.cmb.querypayresult + +queryPayResult +*/ +type AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIResponseModel +} + +// 查询招行支付状态api 成功返回结果 +type AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_distribution_cmb_querypayresult_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixDistributionCmbQuerypayresultResponse.go b/model/maitix/AlibabaDamaiMaitixDistributionCmbQuerypayresultResponse.go deleted file mode 100644 index e449ecdb35..0000000000 --- a/model/maitix/AlibabaDamaiMaitixDistributionCmbQuerypayresultResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询招行支付状态api API返回值 -alibaba.damai.maitix.distribution.cmb.querypayresult - -queryPayResult -*/ -type AlibabaDamaiMaitixDistributionCmbQuerypayresultAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixDistributionCmbQuerypayresultResponse -} - -// 查询招行支付状态api 成功返回结果 -type AlibabaDamaiMaitixDistributionCmbQuerypayresultResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_distribution_cmb_querypayresult_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixDistributionDeliveryCalculateAPIRequest.go b/model/maitix/AlibabaDamaiMaitixDistributionDeliveryCalculateAPIRequest.go new file mode 100644 index 0000000000..e3c31d1064 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixDistributionDeliveryCalculateAPIRequest.go @@ -0,0 +1,52 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +计算渠道用户下单快递费 API请求 +alibaba.damai.maitix.distribution.delivery.calculate + +计算渠道用户下单快递费 +*/ +type AlibabaDamaiMaitixDistributionDeliveryCalculateAPIRequest struct { + model.Params + // 入参 + _param *OpenApiPostFeeParam +} + +// 初始化AlibabaDamaiMaitixDistributionDeliveryCalculateAPIRequest对象 +func NewAlibabaDamaiMaitixDistributionDeliveryCalculateRequest() *AlibabaDamaiMaitixDistributionDeliveryCalculateAPIRequest{ + return &AlibabaDamaiMaitixDistributionDeliveryCalculateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixDistributionDeliveryCalculateAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.distribution.delivery.calculate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixDistributionDeliveryCalculateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *AlibabaDamaiMaitixDistributionDeliveryCalculateAPIRequest) SetParam(_param *OpenApiPostFeeParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaDamaiMaitixDistributionDeliveryCalculateAPIRequest) GetParam() *OpenApiPostFeeParam { + return r._param +} diff --git a/model/maitix/AlibabaDamaiMaitixDistributionDeliveryCalculateAPIResponse.go b/model/maitix/AlibabaDamaiMaitixDistributionDeliveryCalculateAPIResponse.go new file mode 100644 index 0000000000..594826aad3 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixDistributionDeliveryCalculateAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +计算渠道用户下单快递费 API返回值 +alibaba.damai.maitix.distribution.delivery.calculate + +计算渠道用户下单快递费 +*/ +type AlibabaDamaiMaitixDistributionDeliveryCalculateAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixDistributionDeliveryCalculateAPIResponseModel +} + +// 计算渠道用户下单快递费 成功返回结果 +type AlibabaDamaiMaitixDistributionDeliveryCalculateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_distribution_delivery_calculate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaDamaiMaitixDistributionDeliveryCalculateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixDistributionDeliveryCalculateResponse.go b/model/maitix/AlibabaDamaiMaitixDistributionDeliveryCalculateResponse.go deleted file mode 100644 index 41a10279cd..0000000000 --- a/model/maitix/AlibabaDamaiMaitixDistributionDeliveryCalculateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -计算渠道用户下单快递费 API返回值 -alibaba.damai.maitix.distribution.delivery.calculate - -计算渠道用户下单快递费 -*/ -type AlibabaDamaiMaitixDistributionDeliveryCalculateAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixDistributionDeliveryCalculateResponse -} - -// 计算渠道用户下单快递费 成功返回结果 -type AlibabaDamaiMaitixDistributionDeliveryCalculateResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_distribution_delivery_calculate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaDamaiMaitixDistributionDeliveryCalculateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixDistributionDeliveryQueryAPIRequest.go b/model/maitix/AlibabaDamaiMaitixDistributionDeliveryQueryAPIRequest.go new file mode 100644 index 0000000000..aa0bd22dcf --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixDistributionDeliveryQueryAPIRequest.go @@ -0,0 +1,52 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询分销物流单 API请求 +alibaba.damai.maitix.distribution.delivery.query + +渠道查询物流订单 +*/ +type AlibabaDamaiMaitixDistributionDeliveryQueryAPIRequest struct { + model.Params + // 主订单号 + _mainOrderId string +} + +// 初始化AlibabaDamaiMaitixDistributionDeliveryQueryAPIRequest对象 +func NewAlibabaDamaiMaitixDistributionDeliveryQueryRequest() *AlibabaDamaiMaitixDistributionDeliveryQueryAPIRequest{ + return &AlibabaDamaiMaitixDistributionDeliveryQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixDistributionDeliveryQueryAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.distribution.delivery.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixDistributionDeliveryQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainOrderId Setter +// 主订单号 +func (r *AlibabaDamaiMaitixDistributionDeliveryQueryAPIRequest) SetMainOrderId(_mainOrderId string) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r AlibabaDamaiMaitixDistributionDeliveryQueryAPIRequest) GetMainOrderId() string { + return r._mainOrderId +} diff --git a/model/maitix/AlibabaDamaiMaitixDistributionDeliveryQueryAPIResponse.go b/model/maitix/AlibabaDamaiMaitixDistributionDeliveryQueryAPIResponse.go new file mode 100644 index 0000000000..e18f33a8e8 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixDistributionDeliveryQueryAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询分销物流单 API返回值 +alibaba.damai.maitix.distribution.delivery.query + +渠道查询物流订单 +*/ +type AlibabaDamaiMaitixDistributionDeliveryQueryAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixDistributionDeliveryQueryAPIResponseModel +} + +// 查询分销物流单 成功返回结果 +type AlibabaDamaiMaitixDistributionDeliveryQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_distribution_delivery_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixDistributionDeliveryQueryResponse.go b/model/maitix/AlibabaDamaiMaitixDistributionDeliveryQueryResponse.go deleted file mode 100644 index 559249bbb4..0000000000 --- a/model/maitix/AlibabaDamaiMaitixDistributionDeliveryQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询分销物流单 API返回值 -alibaba.damai.maitix.distribution.delivery.query - -渠道查询物流订单 -*/ -type AlibabaDamaiMaitixDistributionDeliveryQueryAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixDistributionDeliveryQueryResponse -} - -// 查询分销物流单 成功返回结果 -type AlibabaDamaiMaitixDistributionDeliveryQueryResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_distribution_delivery_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixDistributionExchangepointQueryAPIRequest.go b/model/maitix/AlibabaDamaiMaitixDistributionExchangepointQueryAPIRequest.go new file mode 100644 index 0000000000..297721432a --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixDistributionExchangepointQueryAPIRequest.go @@ -0,0 +1,52 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分销查询取票点接口 API请求 +alibaba.damai.maitix.distribution.exchangepoint.query + +分销查询取票点接口 +*/ +type AlibabaDamaiMaitixDistributionExchangepointQueryAPIRequest struct { + model.Params + // 必填-项目id + _projectId int64 +} + +// 初始化AlibabaDamaiMaitixDistributionExchangepointQueryAPIRequest对象 +func NewAlibabaDamaiMaitixDistributionExchangepointQueryRequest() *AlibabaDamaiMaitixDistributionExchangepointQueryAPIRequest{ + return &AlibabaDamaiMaitixDistributionExchangepointQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixDistributionExchangepointQueryAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.distribution.exchangepoint.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixDistributionExchangepointQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProjectId Setter +// 必填-项目id +func (r *AlibabaDamaiMaitixDistributionExchangepointQueryAPIRequest) SetProjectId(_projectId int64) error { + r._projectId = _projectId + r.Set("project_id", _projectId) + return nil +} + +// ProjectId Getter +func (r AlibabaDamaiMaitixDistributionExchangepointQueryAPIRequest) GetProjectId() int64 { + return r._projectId +} diff --git a/model/maitix/AlibabaDamaiMaitixDistributionExchangepointQueryAPIResponse.go b/model/maitix/AlibabaDamaiMaitixDistributionExchangepointQueryAPIResponse.go new file mode 100644 index 0000000000..71a114ac21 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixDistributionExchangepointQueryAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分销查询取票点接口 API返回值 +alibaba.damai.maitix.distribution.exchangepoint.query + +分销查询取票点接口 +*/ +type AlibabaDamaiMaitixDistributionExchangepointQueryAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixDistributionExchangepointQueryAPIResponseModel +} + +// 分销查询取票点接口 成功返回结果 +type AlibabaDamaiMaitixDistributionExchangepointQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_distribution_exchangepoint_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixDistributionExchangepointQueryResponse.go b/model/maitix/AlibabaDamaiMaitixDistributionExchangepointQueryResponse.go deleted file mode 100644 index 4ba3515326..0000000000 --- a/model/maitix/AlibabaDamaiMaitixDistributionExchangepointQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分销查询取票点接口 API返回值 -alibaba.damai.maitix.distribution.exchangepoint.query - -分销查询取票点接口 -*/ -type AlibabaDamaiMaitixDistributionExchangepointQueryAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixDistributionExchangepointQueryResponse -} - -// 分销查询取票点接口 成功返回结果 -type AlibabaDamaiMaitixDistributionExchangepointQueryResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_distribution_exchangepoint_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixEticketDistributionQueryAPIRequest.go b/model/maitix/AlibabaDamaiMaitixEticketDistributionQueryAPIRequest.go new file mode 100644 index 0000000000..7afc1e4f7e --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixEticketDistributionQueryAPIRequest.go @@ -0,0 +1,52 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分销电子票查询接口 API请求 +alibaba.damai.maitix.eticket.distribution.query + +分销电子票查询接口 +*/ +type AlibabaDamaiMaitixEticketDistributionQueryAPIRequest struct { + model.Params + // 入参param + _param *EticketQueryParam +} + +// 初始化AlibabaDamaiMaitixEticketDistributionQueryAPIRequest对象 +func NewAlibabaDamaiMaitixEticketDistributionQueryRequest() *AlibabaDamaiMaitixEticketDistributionQueryAPIRequest{ + return &AlibabaDamaiMaitixEticketDistributionQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixEticketDistributionQueryAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.eticket.distribution.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixEticketDistributionQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参param +func (r *AlibabaDamaiMaitixEticketDistributionQueryAPIRequest) SetParam(_param *EticketQueryParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaDamaiMaitixEticketDistributionQueryAPIRequest) GetParam() *EticketQueryParam { + return r._param +} diff --git a/model/maitix/AlibabaDamaiMaitixEticketDistributionQueryAPIResponse.go b/model/maitix/AlibabaDamaiMaitixEticketDistributionQueryAPIResponse.go new file mode 100644 index 0000000000..525dd65a7f --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixEticketDistributionQueryAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分销电子票查询接口 API返回值 +alibaba.damai.maitix.eticket.distribution.query + +分销电子票查询接口 +*/ +type AlibabaDamaiMaitixEticketDistributionQueryAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixEticketDistributionQueryAPIResponseModel +} + +// 分销电子票查询接口 成功返回结果 +type AlibabaDamaiMaitixEticketDistributionQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_eticket_distribution_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixEticketDistributionQueryResponse.go b/model/maitix/AlibabaDamaiMaitixEticketDistributionQueryResponse.go deleted file mode 100644 index 80513352bc..0000000000 --- a/model/maitix/AlibabaDamaiMaitixEticketDistributionQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分销电子票查询接口 API返回值 -alibaba.damai.maitix.eticket.distribution.query - -分销电子票查询接口 -*/ -type AlibabaDamaiMaitixEticketDistributionQueryAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixEticketDistributionQueryResponse -} - -// 分销电子票查询接口 成功返回结果 -type AlibabaDamaiMaitixEticketDistributionQueryResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_eticket_distribution_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIRequest.go b/model/maitix/AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIRequest.go new file mode 100644 index 0000000000..9cc399fba7 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIRequest.go @@ -0,0 +1,52 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分销状态查询接口queryPerformStatusByPerformId API请求 +alibaba.damai.maitix.opengateway.perform.status.query + +queryPerformStatusByPerformId +*/ +type AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIRequest struct { + model.Params + // 入参 + _disPerformStatusQueryParam *DisPerformStatusQueryDto +} + +// 初始化AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIRequest对象 +func NewAlibabaDamaiMaitixOpengatewayPerformStatusQueryRequest() *AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIRequest{ + return &AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.opengateway.perform.status.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DisPerformStatusQueryParam Setter +// 入参 +func (r *AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIRequest) SetDisPerformStatusQueryParam(_disPerformStatusQueryParam *DisPerformStatusQueryDto) error { + r._disPerformStatusQueryParam = _disPerformStatusQueryParam + r.Set("dis_perform_status_query_param", _disPerformStatusQueryParam) + return nil +} + +// DisPerformStatusQueryParam Getter +func (r AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIRequest) GetDisPerformStatusQueryParam() *DisPerformStatusQueryDto { + return r._disPerformStatusQueryParam +} diff --git a/model/maitix/AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIResponse.go b/model/maitix/AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIResponse.go new file mode 100644 index 0000000000..079ab3305f --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分销状态查询接口queryPerformStatusByPerformId API返回值 +alibaba.damai.maitix.opengateway.perform.status.query + +queryPerformStatusByPerformId +*/ +type AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIResponseModel +} + +// 分销状态查询接口queryPerformStatusByPerformId 成功返回结果 +type AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_opengateway_perform_status_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果 + Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixOpengatewayPerformStatusQueryResponse.go b/model/maitix/AlibabaDamaiMaitixOpengatewayPerformStatusQueryResponse.go deleted file mode 100644 index 102a661aaf..0000000000 --- a/model/maitix/AlibabaDamaiMaitixOpengatewayPerformStatusQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分销状态查询接口queryPerformStatusByPerformId API返回值 -alibaba.damai.maitix.opengateway.perform.status.query - -queryPerformStatusByPerformId -*/ -type AlibabaDamaiMaitixOpengatewayPerformStatusQueryAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixOpengatewayPerformStatusQueryResponse -} - -// 分销状态查询接口queryPerformStatusByPerformId 成功返回结果 -type AlibabaDamaiMaitixOpengatewayPerformStatusQueryResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_opengateway_perform_status_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果 - Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIRequest.go b/model/maitix/AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIRequest.go new file mode 100644 index 0000000000..afd5d758ab --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIRequest.go @@ -0,0 +1,52 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分销状态查询接口queryProjectStatusByProjectId API请求 +alibaba.damai.maitix.opengateway.project.status.query + +queryProjectStatusByProjectId +*/ +type AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIRequest struct { + model.Params + // 入参dto + _disProjectStatusQueryParam *DisProjectStatusQueryDto +} + +// 初始化AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIRequest对象 +func NewAlibabaDamaiMaitixOpengatewayProjectStatusQueryRequest() *AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIRequest{ + return &AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.opengateway.project.status.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DisProjectStatusQueryParam Setter +// 入参dto +func (r *AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIRequest) SetDisProjectStatusQueryParam(_disProjectStatusQueryParam *DisProjectStatusQueryDto) error { + r._disProjectStatusQueryParam = _disProjectStatusQueryParam + r.Set("dis_project_status_query_param", _disProjectStatusQueryParam) + return nil +} + +// DisProjectStatusQueryParam Getter +func (r AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIRequest) GetDisProjectStatusQueryParam() *DisProjectStatusQueryDto { + return r._disProjectStatusQueryParam +} diff --git a/model/maitix/AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIResponse.go b/model/maitix/AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIResponse.go new file mode 100644 index 0000000000..4ce9c5b174 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分销状态查询接口queryProjectStatusByProjectId API返回值 +alibaba.damai.maitix.opengateway.project.status.query + +queryProjectStatusByProjectId +*/ +type AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIResponseModel +} + +// 分销状态查询接口queryProjectStatusByProjectId 成功返回结果 +type AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_opengateway_project_status_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixOpengatewayProjectStatusQueryResponse.go b/model/maitix/AlibabaDamaiMaitixOpengatewayProjectStatusQueryResponse.go deleted file mode 100644 index 6cdaffe817..0000000000 --- a/model/maitix/AlibabaDamaiMaitixOpengatewayProjectStatusQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分销状态查询接口queryProjectStatusByProjectId API返回值 -alibaba.damai.maitix.opengateway.project.status.query - -queryProjectStatusByProjectId -*/ -type AlibabaDamaiMaitixOpengatewayProjectStatusQueryAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixOpengatewayProjectStatusQueryResponse -} - -// 分销状态查询接口queryProjectStatusByProjectId 成功返回结果 -type AlibabaDamaiMaitixOpengatewayProjectStatusQueryResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_opengateway_project_status_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIRequest.go b/model/maitix/AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIRequest.go new file mode 100644 index 0000000000..e869bf53b5 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIRequest.go @@ -0,0 +1,52 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分销状态查询接口queryTicketItemStatusByTicketItemId API请求 +alibaba.damai.maitix.opengateway.ticketItem.status.query + +queryTicketItemStatusByTicketItemId +*/ +type AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIRequest struct { + model.Params + // 入参 + _disTicketItemStatusQueryParam *DisTicketItemStatusQueryDto +} + +// 初始化AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIRequest对象 +func NewAlibabaDamaiMaitixOpengatewayTicketItemStatusQueryRequest() *AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIRequest{ + return &AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.opengateway.ticketItem.status.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DisTicketItemStatusQueryParam Setter +// 入参 +func (r *AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIRequest) SetDisTicketItemStatusQueryParam(_disTicketItemStatusQueryParam *DisTicketItemStatusQueryDto) error { + r._disTicketItemStatusQueryParam = _disTicketItemStatusQueryParam + r.Set("dis_ticket_item_status_query_param", _disTicketItemStatusQueryParam) + return nil +} + +// DisTicketItemStatusQueryParam Getter +func (r AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIRequest) GetDisTicketItemStatusQueryParam() *DisTicketItemStatusQueryDto { + return r._disTicketItemStatusQueryParam +} diff --git a/model/maitix/AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIResponse.go b/model/maitix/AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIResponse.go new file mode 100644 index 0000000000..dd39afaed9 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分销状态查询接口queryTicketItemStatusByTicketItemId API返回值 +alibaba.damai.maitix.opengateway.ticketItem.status.query + +queryTicketItemStatusByTicketItemId +*/ +type AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIResponseModel +} + +// 分销状态查询接口queryTicketItemStatusByTicketItemId 成功返回结果 +type AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_opengateway_ticketItem_status_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryResponse.go b/model/maitix/AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryResponse.go deleted file mode 100644 index a2890f0c2e..0000000000 --- a/model/maitix/AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分销状态查询接口queryTicketItemStatusByTicketItemId API返回值 -alibaba.damai.maitix.opengateway.ticketItem.status.query - -queryTicketItemStatusByTicketItemId -*/ -type AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryResponse -} - -// 分销状态查询接口queryTicketItemStatusByTicketItemId 成功返回结果 -type AlibabaDamaiMaitixOpengatewayTicketItemStatusQueryResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_opengateway_ticketItem_status_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixOrderCancelAPIRequest.go b/model/maitix/AlibabaDamaiMaitixOrderCancelAPIRequest.go new file mode 100644 index 0000000000..416aa44a76 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixOrderCancelAPIRequest.go @@ -0,0 +1,52 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦-库存释放 API请求 +alibaba.damai.maitix.order.cancel + +库存释放 +*/ +type AlibabaDamaiMaitixOrderCancelAPIRequest struct { + model.Params + // 库存释放入参 + _param *MoaUnlockTicketParam +} + +// 初始化AlibabaDamaiMaitixOrderCancelAPIRequest对象 +func NewAlibabaDamaiMaitixOrderCancelRequest() *AlibabaDamaiMaitixOrderCancelAPIRequest{ + return &AlibabaDamaiMaitixOrderCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixOrderCancelAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.order.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixOrderCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 库存释放入参 +func (r *AlibabaDamaiMaitixOrderCancelAPIRequest) SetParam(_param *MoaUnlockTicketParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaDamaiMaitixOrderCancelAPIRequest) GetParam() *MoaUnlockTicketParam { + return r._param +} diff --git a/model/maitix/AlibabaDamaiMaitixOrderCancelAPIResponse.go b/model/maitix/AlibabaDamaiMaitixOrderCancelAPIResponse.go new file mode 100644 index 0000000000..92a0a2551a --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixOrderCancelAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦-库存释放 API返回值 +alibaba.damai.maitix.order.cancel + +库存释放 +*/ +type AlibabaDamaiMaitixOrderCancelAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixOrderCancelAPIResponseModel +} + +// 大麦-库存释放 成功返回结果 +type AlibabaDamaiMaitixOrderCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_order_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果集 + Result *MxResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixOrderCancelResponse.go b/model/maitix/AlibabaDamaiMaitixOrderCancelResponse.go deleted file mode 100644 index 4c23304ad0..0000000000 --- a/model/maitix/AlibabaDamaiMaitixOrderCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦-库存释放 API返回值 -alibaba.damai.maitix.order.cancel - -库存释放 -*/ -type AlibabaDamaiMaitixOrderCancelAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixOrderCancelResponse -} - -// 大麦-库存释放 成功返回结果 -type AlibabaDamaiMaitixOrderCancelResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_order_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果集 - Result *MxResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixOrderConfirmAPIRequest.go b/model/maitix/AlibabaDamaiMaitixOrderConfirmAPIRequest.go new file mode 100644 index 0000000000..3e25c333b8 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixOrderConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦-出票 API请求 +alibaba.damai.maitix.order.confirm + +出票 +*/ +type AlibabaDamaiMaitixOrderConfirmAPIRequest struct { + model.Params + // 出票入参 + _param *MoaConfirmOrderParam +} + +// 初始化AlibabaDamaiMaitixOrderConfirmAPIRequest对象 +func NewAlibabaDamaiMaitixOrderConfirmRequest() *AlibabaDamaiMaitixOrderConfirmAPIRequest{ + return &AlibabaDamaiMaitixOrderConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixOrderConfirmAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.order.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixOrderConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 出票入参 +func (r *AlibabaDamaiMaitixOrderConfirmAPIRequest) SetParam(_param *MoaConfirmOrderParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaDamaiMaitixOrderConfirmAPIRequest) GetParam() *MoaConfirmOrderParam { + return r._param +} diff --git a/model/maitix/AlibabaDamaiMaitixOrderConfirmAPIResponse.go b/model/maitix/AlibabaDamaiMaitixOrderConfirmAPIResponse.go new file mode 100644 index 0000000000..60f551d1f1 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixOrderConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦-出票 API返回值 +alibaba.damai.maitix.order.confirm + +出票 +*/ +type AlibabaDamaiMaitixOrderConfirmAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixOrderConfirmAPIResponseModel +} + +// 大麦-出票 成功返回结果 +type AlibabaDamaiMaitixOrderConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_order_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果集 + Result *MxResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixOrderConfirmResponse.go b/model/maitix/AlibabaDamaiMaitixOrderConfirmResponse.go deleted file mode 100644 index f47b5190f2..0000000000 --- a/model/maitix/AlibabaDamaiMaitixOrderConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦-出票 API返回值 -alibaba.damai.maitix.order.confirm - -出票 -*/ -type AlibabaDamaiMaitixOrderConfirmAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixOrderConfirmResponse -} - -// 大麦-出票 成功返回结果 -type AlibabaDamaiMaitixOrderConfirmResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_order_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果集 - Result *MxResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixOrderDirectrefundAPIRequest.go b/model/maitix/AlibabaDamaiMaitixOrderDirectrefundAPIRequest.go new file mode 100644 index 0000000000..c0e773876f --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixOrderDirectrefundAPIRequest.go @@ -0,0 +1,52 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦-直接退票 API请求 +alibaba.damai.maitix.order.directrefund + +大麦-退票 +*/ +type AlibabaDamaiMaitixOrderDirectrefundAPIRequest struct { + model.Params + // 退票入参 + _param *MoaRefundAuditParam +} + +// 初始化AlibabaDamaiMaitixOrderDirectrefundAPIRequest对象 +func NewAlibabaDamaiMaitixOrderDirectrefundRequest() *AlibabaDamaiMaitixOrderDirectrefundAPIRequest{ + return &AlibabaDamaiMaitixOrderDirectrefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixOrderDirectrefundAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.order.directrefund" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixOrderDirectrefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 退票入参 +func (r *AlibabaDamaiMaitixOrderDirectrefundAPIRequest) SetParam(_param *MoaRefundAuditParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaDamaiMaitixOrderDirectrefundAPIRequest) GetParam() *MoaRefundAuditParam { + return r._param +} diff --git a/model/maitix/AlibabaDamaiMaitixOrderDirectrefundAPIResponse.go b/model/maitix/AlibabaDamaiMaitixOrderDirectrefundAPIResponse.go new file mode 100644 index 0000000000..c414bc2569 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixOrderDirectrefundAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦-直接退票 API返回值 +alibaba.damai.maitix.order.directrefund + +大麦-退票 +*/ +type AlibabaDamaiMaitixOrderDirectrefundAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixOrderDirectrefundAPIResponseModel +} + +// 大麦-直接退票 成功返回结果 +type AlibabaDamaiMaitixOrderDirectrefundAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_order_directrefund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 退票返回对象 + Result *MxResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixOrderDirectrefundResponse.go b/model/maitix/AlibabaDamaiMaitixOrderDirectrefundResponse.go deleted file mode 100644 index da53e0f7ab..0000000000 --- a/model/maitix/AlibabaDamaiMaitixOrderDirectrefundResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦-直接退票 API返回值 -alibaba.damai.maitix.order.directrefund - -大麦-退票 -*/ -type AlibabaDamaiMaitixOrderDirectrefundAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixOrderDirectrefundResponse -} - -// 大麦-直接退票 成功返回结果 -type AlibabaDamaiMaitixOrderDirectrefundResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_order_directrefund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 退票返回对象 - Result *MxResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixOrderDistributionCreateAPIRequest.go b/model/maitix/AlibabaDamaiMaitixOrderDistributionCreateAPIRequest.go new file mode 100644 index 0000000000..90fd7f0cb5 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixOrderDistributionCreateAPIRequest.go @@ -0,0 +1,52 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦-新分销下单 API请求 +alibaba.damai.maitix.order.distribution.create + +createDistributionOrder +*/ +type AlibabaDamaiMaitixOrderDistributionCreateAPIRequest struct { + model.Params + // 下单参数param + _param *MoaOrderParam +} + +// 初始化AlibabaDamaiMaitixOrderDistributionCreateAPIRequest对象 +func NewAlibabaDamaiMaitixOrderDistributionCreateRequest() *AlibabaDamaiMaitixOrderDistributionCreateAPIRequest{ + return &AlibabaDamaiMaitixOrderDistributionCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixOrderDistributionCreateAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.order.distribution.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixOrderDistributionCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 下单参数param +func (r *AlibabaDamaiMaitixOrderDistributionCreateAPIRequest) SetParam(_param *MoaOrderParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaDamaiMaitixOrderDistributionCreateAPIRequest) GetParam() *MoaOrderParam { + return r._param +} diff --git a/model/maitix/AlibabaDamaiMaitixOrderDistributionCreateAPIResponse.go b/model/maitix/AlibabaDamaiMaitixOrderDistributionCreateAPIResponse.go new file mode 100644 index 0000000000..13577e6a9a --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixOrderDistributionCreateAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦-新分销下单 API返回值 +alibaba.damai.maitix.order.distribution.create + +createDistributionOrder +*/ +type AlibabaDamaiMaitixOrderDistributionCreateAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixOrderDistributionCreateAPIResponseModel +} + +// 大麦-新分销下单 成功返回结果 +type AlibabaDamaiMaitixOrderDistributionCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_order_distribution_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *MxResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixOrderDistributionCreateResponse.go b/model/maitix/AlibabaDamaiMaitixOrderDistributionCreateResponse.go deleted file mode 100644 index 8b90bb87dd..0000000000 --- a/model/maitix/AlibabaDamaiMaitixOrderDistributionCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦-新分销下单 API返回值 -alibaba.damai.maitix.order.distribution.create - -createDistributionOrder -*/ -type AlibabaDamaiMaitixOrderDistributionCreateAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixOrderDistributionCreateResponse -} - -// 大麦-新分销下单 成功返回结果 -type AlibabaDamaiMaitixOrderDistributionCreateResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_order_distribution_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *MxResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixOrderQueryAPIRequest.go b/model/maitix/AlibabaDamaiMaitixOrderQueryAPIRequest.go new file mode 100644 index 0000000000..7cdfcf2382 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixOrderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦-查询分销单 API请求 +alibaba.damai.maitix.order.query + +查询分销单 +*/ +type AlibabaDamaiMaitixOrderQueryAPIRequest struct { + model.Params + // 分销单查询入参 + _param *MoaOrderQueryParam +} + +// 初始化AlibabaDamaiMaitixOrderQueryAPIRequest对象 +func NewAlibabaDamaiMaitixOrderQueryRequest() *AlibabaDamaiMaitixOrderQueryAPIRequest{ + return &AlibabaDamaiMaitixOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixOrderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 分销单查询入参 +func (r *AlibabaDamaiMaitixOrderQueryAPIRequest) SetParam(_param *MoaOrderQueryParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaDamaiMaitixOrderQueryAPIRequest) GetParam() *MoaOrderQueryParam { + return r._param +} diff --git a/model/maitix/AlibabaDamaiMaitixOrderQueryAPIResponse.go b/model/maitix/AlibabaDamaiMaitixOrderQueryAPIResponse.go new file mode 100644 index 0000000000..355274513f --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦-查询分销单 API返回值 +alibaba.damai.maitix.order.query + +查询分销单 +*/ +type AlibabaDamaiMaitixOrderQueryAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixOrderQueryAPIResponseModel +} + +// 大麦-查询分销单 成功返回结果 +type AlibabaDamaiMaitixOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果集 + Result *MxResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixOrderQueryResponse.go b/model/maitix/AlibabaDamaiMaitixOrderQueryResponse.go deleted file mode 100644 index efcd607aa7..0000000000 --- a/model/maitix/AlibabaDamaiMaitixOrderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦-查询分销单 API返回值 -alibaba.damai.maitix.order.query - -查询分销单 -*/ -type AlibabaDamaiMaitixOrderQueryAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixOrderQueryResponse -} - -// 大麦-查询分销单 成功返回结果 -type AlibabaDamaiMaitixOrderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果集 - Result *MxResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixProjectDistributionDetailQueryAPIRequest.go b/model/maitix/AlibabaDamaiMaitixProjectDistributionDetailQueryAPIRequest.go new file mode 100644 index 0000000000..05d470c099 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixProjectDistributionDetailQueryAPIRequest.go @@ -0,0 +1,52 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦分销项目内容详情查询 API请求 +alibaba.damai.maitix.project.distribution.detail.query + +大麦分销项目内容详情查询,提供项目的内容详情 +*/ +type AlibabaDamaiMaitixProjectDistributionDetailQueryAPIRequest struct { + model.Params + // 项目ID,前提已授权 + _projectId int64 +} + +// 初始化AlibabaDamaiMaitixProjectDistributionDetailQueryAPIRequest对象 +func NewAlibabaDamaiMaitixProjectDistributionDetailQueryRequest() *AlibabaDamaiMaitixProjectDistributionDetailQueryAPIRequest{ + return &AlibabaDamaiMaitixProjectDistributionDetailQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixProjectDistributionDetailQueryAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.project.distribution.detail.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixProjectDistributionDetailQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProjectId Setter +// 项目ID,前提已授权 +func (r *AlibabaDamaiMaitixProjectDistributionDetailQueryAPIRequest) SetProjectId(_projectId int64) error { + r._projectId = _projectId + r.Set("project_id", _projectId) + return nil +} + +// ProjectId Getter +func (r AlibabaDamaiMaitixProjectDistributionDetailQueryAPIRequest) GetProjectId() int64 { + return r._projectId +} diff --git a/model/maitix/AlibabaDamaiMaitixProjectDistributionDetailQueryAPIResponse.go b/model/maitix/AlibabaDamaiMaitixProjectDistributionDetailQueryAPIResponse.go new file mode 100644 index 0000000000..1d6a3444b7 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixProjectDistributionDetailQueryAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大麦分销项目内容详情查询 API返回值 +alibaba.damai.maitix.project.distribution.detail.query + +大麦分销项目内容详情查询,提供项目的内容详情 +*/ +type AlibabaDamaiMaitixProjectDistributionDetailQueryAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixProjectDistributionDetailQueryAPIResponseModel +} + +// 大麦分销项目内容详情查询 成功返回结果 +type AlibabaDamaiMaitixProjectDistributionDetailQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_project_distribution_detail_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaDamaiMaitixProjectDistributionDetailQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixProjectDistributionDetailQueryResponse.go b/model/maitix/AlibabaDamaiMaitixProjectDistributionDetailQueryResponse.go deleted file mode 100644 index e2665b27c1..0000000000 --- a/model/maitix/AlibabaDamaiMaitixProjectDistributionDetailQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大麦分销项目内容详情查询 API返回值 -alibaba.damai.maitix.project.distribution.detail.query - -大麦分销项目内容详情查询,提供项目的内容详情 -*/ -type AlibabaDamaiMaitixProjectDistributionDetailQueryAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixProjectDistributionDetailQueryResponse -} - -// 大麦分销项目内容详情查询 成功返回结果 -type AlibabaDamaiMaitixProjectDistributionDetailQueryResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_project_distribution_detail_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaDamaiMaitixProjectDistributionDetailQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixProjectDistributionQueryAPIRequest.go b/model/maitix/AlibabaDamaiMaitixProjectDistributionQueryAPIRequest.go new file mode 100644 index 0000000000..657588e13f --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixProjectDistributionQueryAPIRequest.go @@ -0,0 +1,52 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分销单个项目信息查询 API请求 +alibaba.damai.maitix.project.distribution.query + +发布分销项目查询单个项目信息接口 +*/ +type AlibabaDamaiMaitixProjectDistributionQueryAPIRequest struct { + model.Params + // 项目id + _projectId int64 +} + +// 初始化AlibabaDamaiMaitixProjectDistributionQueryAPIRequest对象 +func NewAlibabaDamaiMaitixProjectDistributionQueryRequest() *AlibabaDamaiMaitixProjectDistributionQueryAPIRequest{ + return &AlibabaDamaiMaitixProjectDistributionQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixProjectDistributionQueryAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.project.distribution.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixProjectDistributionQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProjectId Setter +// 项目id +func (r *AlibabaDamaiMaitixProjectDistributionQueryAPIRequest) SetProjectId(_projectId int64) error { + r._projectId = _projectId + r.Set("project_id", _projectId) + return nil +} + +// ProjectId Getter +func (r AlibabaDamaiMaitixProjectDistributionQueryAPIRequest) GetProjectId() int64 { + return r._projectId +} diff --git a/model/maitix/AlibabaDamaiMaitixProjectDistributionQueryAPIResponse.go b/model/maitix/AlibabaDamaiMaitixProjectDistributionQueryAPIResponse.go new file mode 100644 index 0000000000..08ce1a9a23 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixProjectDistributionQueryAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分销单个项目信息查询 API返回值 +alibaba.damai.maitix.project.distribution.query + +发布分销项目查询单个项目信息接口 +*/ +type AlibabaDamaiMaitixProjectDistributionQueryAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixProjectDistributionQueryAPIResponseModel +} + +// 分销单个项目信息查询 成功返回结果 +type AlibabaDamaiMaitixProjectDistributionQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_project_distribution_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixProjectDistributionQueryResponse.go b/model/maitix/AlibabaDamaiMaitixProjectDistributionQueryResponse.go deleted file mode 100644 index 3b22a44929..0000000000 --- a/model/maitix/AlibabaDamaiMaitixProjectDistributionQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分销单个项目信息查询 API返回值 -alibaba.damai.maitix.project.distribution.query - -发布分销项目查询单个项目信息接口 -*/ -type AlibabaDamaiMaitixProjectDistributionQueryAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixProjectDistributionQueryResponse -} - -// 分销单个项目信息查询 成功返回结果 -type AlibabaDamaiMaitixProjectDistributionQueryResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_project_distribution_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixProjectDistributionQuerybypageAPIRequest.go b/model/maitix/AlibabaDamaiMaitixProjectDistributionQuerybypageAPIRequest.go new file mode 100644 index 0000000000..eacc848b86 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixProjectDistributionQuerybypageAPIRequest.go @@ -0,0 +1,52 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分销项目分页查询项目列表服务 API请求 +alibaba.damai.maitix.project.distribution.querybypage + +分销项目分页查询项目列表服务 +*/ +type AlibabaDamaiMaitixProjectDistributionQuerybypageAPIRequest struct { + model.Params + // 入参param + _param *ProjectPageParam +} + +// 初始化AlibabaDamaiMaitixProjectDistributionQuerybypageAPIRequest对象 +func NewAlibabaDamaiMaitixProjectDistributionQuerybypageRequest() *AlibabaDamaiMaitixProjectDistributionQuerybypageAPIRequest{ + return &AlibabaDamaiMaitixProjectDistributionQuerybypageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixProjectDistributionQuerybypageAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.project.distribution.querybypage" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixProjectDistributionQuerybypageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参param +func (r *AlibabaDamaiMaitixProjectDistributionQuerybypageAPIRequest) SetParam(_param *ProjectPageParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaDamaiMaitixProjectDistributionQuerybypageAPIRequest) GetParam() *ProjectPageParam { + return r._param +} diff --git a/model/maitix/AlibabaDamaiMaitixProjectDistributionQuerybypageAPIResponse.go b/model/maitix/AlibabaDamaiMaitixProjectDistributionQuerybypageAPIResponse.go new file mode 100644 index 0000000000..022923a115 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixProjectDistributionQuerybypageAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分销项目分页查询项目列表服务 API返回值 +alibaba.damai.maitix.project.distribution.querybypage + +分销项目分页查询项目列表服务 +*/ +type AlibabaDamaiMaitixProjectDistributionQuerybypageAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixProjectDistributionQuerybypageAPIResponseModel +} + +// 分销项目分页查询项目列表服务 成功返回结果 +type AlibabaDamaiMaitixProjectDistributionQuerybypageAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_project_distribution_querybypage_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixProjectDistributionQuerybypageResponse.go b/model/maitix/AlibabaDamaiMaitixProjectDistributionQuerybypageResponse.go deleted file mode 100644 index 8244694b5c..0000000000 --- a/model/maitix/AlibabaDamaiMaitixProjectDistributionQuerybypageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分销项目分页查询项目列表服务 API返回值 -alibaba.damai.maitix.project.distribution.querybypage - -分销项目分页查询项目列表服务 -*/ -type AlibabaDamaiMaitixProjectDistributionQuerybypageAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixProjectDistributionQuerybypageResponse -} - -// 分销项目分页查询项目列表服务 成功返回结果 -type AlibabaDamaiMaitixProjectDistributionQuerybypageResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_project_distribution_querybypage_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixProjectDistributionQuerylistAPIRequest.go b/model/maitix/AlibabaDamaiMaitixProjectDistributionQuerylistAPIRequest.go new file mode 100644 index 0000000000..de09f76716 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixProjectDistributionQuerylistAPIRequest.go @@ -0,0 +1,38 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分销项目列表查询(已过时,不推荐使用) API请求 +alibaba.damai.maitix.project.distribution.querylist + +分销项目列表查询接口(已过时,不推荐使用) +*/ +type AlibabaDamaiMaitixProjectDistributionQuerylistAPIRequest struct { + model.Params +} + +// 初始化AlibabaDamaiMaitixProjectDistributionQuerylistAPIRequest对象 +func NewAlibabaDamaiMaitixProjectDistributionQuerylistRequest() *AlibabaDamaiMaitixProjectDistributionQuerylistAPIRequest{ + return &AlibabaDamaiMaitixProjectDistributionQuerylistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixProjectDistributionQuerylistAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.project.distribution.querylist" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixProjectDistributionQuerylistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/maitix/AlibabaDamaiMaitixProjectDistributionQuerylistAPIResponse.go b/model/maitix/AlibabaDamaiMaitixProjectDistributionQuerylistAPIResponse.go new file mode 100644 index 0000000000..0348520301 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixProjectDistributionQuerylistAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分销项目列表查询(已过时,不推荐使用) API返回值 +alibaba.damai.maitix.project.distribution.querylist + +分销项目列表查询接口(已过时,不推荐使用) +*/ +type AlibabaDamaiMaitixProjectDistributionQuerylistAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixProjectDistributionQuerylistAPIResponseModel +} + +// 分销项目列表查询(已过时,不推荐使用) 成功返回结果 +type AlibabaDamaiMaitixProjectDistributionQuerylistAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_project_distribution_querylist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixProjectDistributionQuerylistResponse.go b/model/maitix/AlibabaDamaiMaitixProjectDistributionQuerylistResponse.go deleted file mode 100644 index 31879d0683..0000000000 --- a/model/maitix/AlibabaDamaiMaitixProjectDistributionQuerylistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分销项目列表查询(已过时,不推荐使用) API返回值 -alibaba.damai.maitix.project.distribution.querylist - -分销项目列表查询接口(已过时,不推荐使用) -*/ -type AlibabaDamaiMaitixProjectDistributionQuerylistAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixProjectDistributionQuerylistResponse -} - -// 分销项目列表查询(已过时,不推荐使用) 成功返回结果 -type AlibabaDamaiMaitixProjectDistributionQuerylistResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_project_distribution_querylist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixSeatInfoQueryAPIRequest.go b/model/maitix/AlibabaDamaiMaitixSeatInfoQueryAPIRequest.go new file mode 100644 index 0000000000..9be2f5ad6f --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixSeatInfoQueryAPIRequest.go @@ -0,0 +1,52 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分销商查询座位信息 API请求 +alibaba.damai.maitix.seat.info.query + +分销查询座位文案信息 +*/ +type AlibabaDamaiMaitixSeatInfoQueryAPIRequest struct { + model.Params + // 入参 + _seatQueryParam *SeatQueryParam +} + +// 初始化AlibabaDamaiMaitixSeatInfoQueryAPIRequest对象 +func NewAlibabaDamaiMaitixSeatInfoQueryRequest() *AlibabaDamaiMaitixSeatInfoQueryAPIRequest{ + return &AlibabaDamaiMaitixSeatInfoQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixSeatInfoQueryAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.seat.info.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixSeatInfoQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SeatQueryParam Setter +// 入参 +func (r *AlibabaDamaiMaitixSeatInfoQueryAPIRequest) SetSeatQueryParam(_seatQueryParam *SeatQueryParam) error { + r._seatQueryParam = _seatQueryParam + r.Set("seat_query_param", _seatQueryParam) + return nil +} + +// SeatQueryParam Getter +func (r AlibabaDamaiMaitixSeatInfoQueryAPIRequest) GetSeatQueryParam() *SeatQueryParam { + return r._seatQueryParam +} diff --git a/model/maitix/AlibabaDamaiMaitixSeatInfoQueryAPIResponse.go b/model/maitix/AlibabaDamaiMaitixSeatInfoQueryAPIResponse.go new file mode 100644 index 0000000000..4c96a01e0a --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixSeatInfoQueryAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分销商查询座位信息 API返回值 +alibaba.damai.maitix.seat.info.query + +分销查询座位文案信息 +*/ +type AlibabaDamaiMaitixSeatInfoQueryAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixSeatInfoQueryAPIResponseModel +} + +// 分销商查询座位信息 成功返回结果 +type AlibabaDamaiMaitixSeatInfoQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_seat_info_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回信息 + Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixSeatInfoQueryResponse.go b/model/maitix/AlibabaDamaiMaitixSeatInfoQueryResponse.go deleted file mode 100644 index 7de3d88fef..0000000000 --- a/model/maitix/AlibabaDamaiMaitixSeatInfoQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分销商查询座位信息 API返回值 -alibaba.damai.maitix.seat.info.query - -分销查询座位文案信息 -*/ -type AlibabaDamaiMaitixSeatInfoQueryAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixSeatInfoQueryResponse -} - -// 分销商查询座位信息 成功返回结果 -type AlibabaDamaiMaitixSeatInfoQueryResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_seat_info_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回信息 - Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/maitix/AlibabaDamaiMaitixSeatTokenQueryAPIRequest.go b/model/maitix/AlibabaDamaiMaitixSeatTokenQueryAPIRequest.go new file mode 100644 index 0000000000..761f66ab08 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixSeatTokenQueryAPIRequest.go @@ -0,0 +1,94 @@ +package maitix + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分销商选座获取qtoken API请求 +alibaba.damai.maitix.seat.token.query + +选座分销,分销商查询token +*/ +type AlibabaDamaiMaitixSeatTokenQueryAPIRequest struct { + model.Params + // 场次ID-必填 + _performId int64 + // 项目ID-必填 + _projectId int64 + // 必填-选座结束跳转回去的url,这是渠道方自己的url地址,用于接收选座后的座位信息参数 + _callbackUrl string + // 会话ID,保证一次选座会话,建议使用 appKey+随机串 生成 ;注意:同一个场次下的会话ID不能重复 + _requestId string +} + +// 初始化AlibabaDamaiMaitixSeatTokenQueryAPIRequest对象 +func NewAlibabaDamaiMaitixSeatTokenQueryRequest() *AlibabaDamaiMaitixSeatTokenQueryAPIRequest{ + return &AlibabaDamaiMaitixSeatTokenQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDamaiMaitixSeatTokenQueryAPIRequest) GetApiMethodName() string { + return "alibaba.damai.maitix.seat.token.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDamaiMaitixSeatTokenQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PerformId Setter +// 场次ID-必填 +func (r *AlibabaDamaiMaitixSeatTokenQueryAPIRequest) SetPerformId(_performId int64) error { + r._performId = _performId + r.Set("perform_id", _performId) + return nil +} + +// PerformId Getter +func (r AlibabaDamaiMaitixSeatTokenQueryAPIRequest) GetPerformId() int64 { + return r._performId +} +// ProjectId Setter +// 项目ID-必填 +func (r *AlibabaDamaiMaitixSeatTokenQueryAPIRequest) SetProjectId(_projectId int64) error { + r._projectId = _projectId + r.Set("project_id", _projectId) + return nil +} + +// ProjectId Getter +func (r AlibabaDamaiMaitixSeatTokenQueryAPIRequest) GetProjectId() int64 { + return r._projectId +} +// CallbackUrl Setter +// 必填-选座结束跳转回去的url,这是渠道方自己的url地址,用于接收选座后的座位信息参数 +func (r *AlibabaDamaiMaitixSeatTokenQueryAPIRequest) SetCallbackUrl(_callbackUrl string) error { + r._callbackUrl = _callbackUrl + r.Set("callback_url", _callbackUrl) + return nil +} + +// CallbackUrl Getter +func (r AlibabaDamaiMaitixSeatTokenQueryAPIRequest) GetCallbackUrl() string { + return r._callbackUrl +} +// RequestId Setter +// 会话ID,保证一次选座会话,建议使用 appKey+随机串 生成 ;注意:同一个场次下的会话ID不能重复 +func (r *AlibabaDamaiMaitixSeatTokenQueryAPIRequest) SetRequestId(_requestId string) error { + r._requestId = _requestId + r.Set("request_id", _requestId) + return nil +} + +// RequestId Getter +func (r AlibabaDamaiMaitixSeatTokenQueryAPIRequest) GetRequestId() string { + return r._requestId +} diff --git a/model/maitix/AlibabaDamaiMaitixSeatTokenQueryAPIResponse.go b/model/maitix/AlibabaDamaiMaitixSeatTokenQueryAPIResponse.go new file mode 100644 index 0000000000..5d8a10b935 --- /dev/null +++ b/model/maitix/AlibabaDamaiMaitixSeatTokenQueryAPIResponse.go @@ -0,0 +1,27 @@ +package maitix + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分销商选座获取qtoken API返回值 +alibaba.damai.maitix.seat.token.query + +选座分销,分销商查询token +*/ +type AlibabaDamaiMaitixSeatTokenQueryAPIResponse struct { + model.CommonResponse + AlibabaDamaiMaitixSeatTokenQueryAPIResponseModel +} + +// 分销商选座获取qtoken 成功返回结果 +type AlibabaDamaiMaitixSeatTokenQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_damai_maitix_seat_token_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/maitix/AlibabaDamaiMaitixSeatTokenQueryResponse.go b/model/maitix/AlibabaDamaiMaitixSeatTokenQueryResponse.go deleted file mode 100644 index ade59fee4b..0000000000 --- a/model/maitix/AlibabaDamaiMaitixSeatTokenQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package maitix - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分销商选座获取qtoken API返回值 -alibaba.damai.maitix.seat.token.query - -选座分销,分销商查询token -*/ -type AlibabaDamaiMaitixSeatTokenQueryAPIResponse struct { - model.CommonResponse - AlibabaDamaiMaitixSeatTokenQueryResponse -} - -// 分销商选座获取qtoken 成功返回结果 -type AlibabaDamaiMaitixSeatTokenQueryResponse struct { - XMLName xml.Name `xml:"alibaba_damai_maitix_seat_token_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *OpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mc/AliyunUnimktTaskChargeLaunchAPIRequest.go b/model/mc/AliyunUnimktTaskChargeLaunchAPIRequest.go new file mode 100644 index 0000000000..81a9db0cf9 --- /dev/null +++ b/model/mc/AliyunUnimktTaskChargeLaunchAPIRequest.go @@ -0,0 +1,108 @@ +package mc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +云码权益查询 API请求 +aliyun.unimkt.task.charge.launch + +云码线上流量投放链路,用于判断用户是否有匹配的投放计划 +*/ +type AliyunUnimktTaskChargeLaunchAPIRequest struct { + model.Params + // 服务商附加url参数 + _extra string + // urlID + _urlId string + // 支付宝openID + _alipayOpenId string + // 渠道ID + _channelId string + // 淘宝ID + _userId string +} + +// 初始化AliyunUnimktTaskChargeLaunchAPIRequest对象 +func NewAliyunUnimktTaskChargeLaunchRequest() *AliyunUnimktTaskChargeLaunchAPIRequest{ + return &AliyunUnimktTaskChargeLaunchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunUnimktTaskChargeLaunchAPIRequest) GetApiMethodName() string { + return "aliyun.unimkt.task.charge.launch" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunUnimktTaskChargeLaunchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Extra Setter +// 服务商附加url参数 +func (r *AliyunUnimktTaskChargeLaunchAPIRequest) SetExtra(_extra string) error { + r._extra = _extra + r.Set("extra", _extra) + return nil +} + +// Extra Getter +func (r AliyunUnimktTaskChargeLaunchAPIRequest) GetExtra() string { + return r._extra +} +// UrlId Setter +// urlID +func (r *AliyunUnimktTaskChargeLaunchAPIRequest) SetUrlId(_urlId string) error { + r._urlId = _urlId + r.Set("url_id", _urlId) + return nil +} + +// UrlId Getter +func (r AliyunUnimktTaskChargeLaunchAPIRequest) GetUrlId() string { + return r._urlId +} +// AlipayOpenId Setter +// 支付宝openID +func (r *AliyunUnimktTaskChargeLaunchAPIRequest) SetAlipayOpenId(_alipayOpenId string) error { + r._alipayOpenId = _alipayOpenId + r.Set("alipay_open_id", _alipayOpenId) + return nil +} + +// AlipayOpenId Getter +func (r AliyunUnimktTaskChargeLaunchAPIRequest) GetAlipayOpenId() string { + return r._alipayOpenId +} +// ChannelId Setter +// 渠道ID +func (r *AliyunUnimktTaskChargeLaunchAPIRequest) SetChannelId(_channelId string) error { + r._channelId = _channelId + r.Set("channel_id", _channelId) + return nil +} + +// ChannelId Getter +func (r AliyunUnimktTaskChargeLaunchAPIRequest) GetChannelId() string { + return r._channelId +} +// UserId Setter +// 淘宝ID +func (r *AliyunUnimktTaskChargeLaunchAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AliyunUnimktTaskChargeLaunchAPIRequest) GetUserId() string { + return r._userId +} diff --git a/model/mc/AliyunUnimktTaskChargeLaunchAPIResponse.go b/model/mc/AliyunUnimktTaskChargeLaunchAPIResponse.go new file mode 100644 index 0000000000..31d5932379 --- /dev/null +++ b/model/mc/AliyunUnimktTaskChargeLaunchAPIResponse.go @@ -0,0 +1,33 @@ +package mc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +云码权益查询 API返回值 +aliyun.unimkt.task.charge.launch + +云码线上流量投放链路,用于判断用户是否有匹配的投放计划 +*/ +type AliyunUnimktTaskChargeLaunchAPIResponse struct { + model.CommonResponse + AliyunUnimktTaskChargeLaunchAPIResponseModel +} + +// 云码权益查询 成功返回结果 +type AliyunUnimktTaskChargeLaunchAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_unimkt_task_charge_launch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 执行结果 + TaskSuccess bool `json:"task_success,omitempty" xml:"task_success,omitempty"` + // 错误消息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 错误码 + TaskErrorCode int64 `json:"task_error_code,omitempty" xml:"task_error_code,omitempty"` + // 任务结果 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mc/AliyunUnimktTaskChargeLaunchResponse.go b/model/mc/AliyunUnimktTaskChargeLaunchResponse.go deleted file mode 100644 index eddb30a127..0000000000 --- a/model/mc/AliyunUnimktTaskChargeLaunchResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package mc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -云码权益查询 API返回值 -aliyun.unimkt.task.charge.launch - -云码线上流量投放链路,用于判断用户是否有匹配的投放计划 -*/ -type AliyunUnimktTaskChargeLaunchAPIResponse struct { - model.CommonResponse - AliyunUnimktTaskChargeLaunchResponse -} - -// 云码权益查询 成功返回结果 -type AliyunUnimktTaskChargeLaunchResponse struct { - XMLName xml.Name `xml:"aliyun_unimkt_task_charge_launch_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 执行结果 - TaskSuccess bool `json:"task_success,omitempty" xml:"task_success,omitempty"` - // 错误消息 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 错误码 - TaskErrorCode int64 `json:"task_error_code,omitempty" xml:"task_error_code,omitempty"` - // 任务结果 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mc/TmallMcDeviceCircleCheckAPIRequest.go b/model/mc/TmallMcDeviceCircleCheckAPIRequest.go new file mode 100644 index 0000000000..93d9d3ef89 --- /dev/null +++ b/model/mc/TmallMcDeviceCircleCheckAPIRequest.go @@ -0,0 +1,66 @@ +package mc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +云码设备圈选情况查询 API请求 +tmall.mc.device.circle.check + +云码设备圈选情况查询 +*/ +type TmallMcDeviceCircleCheckAPIRequest struct { + model.Params + // 外部设备编码 + _outerCode string + // 渠道编码 + _channelId string +} + +// 初始化TmallMcDeviceCircleCheckAPIRequest对象 +func NewTmallMcDeviceCircleCheckRequest() *TmallMcDeviceCircleCheckAPIRequest{ + return &TmallMcDeviceCircleCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallMcDeviceCircleCheckAPIRequest) GetApiMethodName() string { + return "tmall.mc.device.circle.check" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallMcDeviceCircleCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterCode Setter +// 外部设备编码 +func (r *TmallMcDeviceCircleCheckAPIRequest) SetOuterCode(_outerCode string) error { + r._outerCode = _outerCode + r.Set("outer_code", _outerCode) + return nil +} + +// OuterCode Getter +func (r TmallMcDeviceCircleCheckAPIRequest) GetOuterCode() string { + return r._outerCode +} +// ChannelId Setter +// 渠道编码 +func (r *TmallMcDeviceCircleCheckAPIRequest) SetChannelId(_channelId string) error { + r._channelId = _channelId + r.Set("channel_id", _channelId) + return nil +} + +// ChannelId Getter +func (r TmallMcDeviceCircleCheckAPIRequest) GetChannelId() string { + return r._channelId +} diff --git a/model/mc/TmallMcDeviceCircleCheckAPIResponse.go b/model/mc/TmallMcDeviceCircleCheckAPIResponse.go new file mode 100644 index 0000000000..d5b6831805 --- /dev/null +++ b/model/mc/TmallMcDeviceCircleCheckAPIResponse.go @@ -0,0 +1,27 @@ +package mc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +云码设备圈选情况查询 API返回值 +tmall.mc.device.circle.check + +云码设备圈选情况查询 +*/ +type TmallMcDeviceCircleCheckAPIResponse struct { + model.CommonResponse + TmallMcDeviceCircleCheckAPIResponseModel +} + +// 云码设备圈选情况查询 成功返回结果 +type TmallMcDeviceCircleCheckAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_mc_device_circle_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 设备相关投放计划 + Results []TaskDto `json:"results,omitempty" xml:"results>task_dto,omitempty"` +} diff --git a/model/mc/TmallMcDeviceCircleCheckResponse.go b/model/mc/TmallMcDeviceCircleCheckResponse.go deleted file mode 100644 index 23642b3eea..0000000000 --- a/model/mc/TmallMcDeviceCircleCheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -云码设备圈选情况查询 API返回值 -tmall.mc.device.circle.check - -云码设备圈选情况查询 -*/ -type TmallMcDeviceCircleCheckAPIResponse struct { - model.CommonResponse - TmallMcDeviceCircleCheckResponse -} - -// 云码设备圈选情况查询 成功返回结果 -type TmallMcDeviceCircleCheckResponse struct { - XMLName xml.Name `xml:"tmall_mc_device_circle_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 设备相关投放计划 - Results []TaskDto `json:"results,omitempty" xml:"results>task_dto,omitempty"` -} diff --git a/model/mc/TmallMcRecordOrderSyncAPIRequest.go b/model/mc/TmallMcRecordOrderSyncAPIRequest.go new file mode 100644 index 0000000000..cac5a12c52 --- /dev/null +++ b/model/mc/TmallMcRecordOrderSyncAPIRequest.go @@ -0,0 +1,122 @@ +package mc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单信息同步 API请求 +tmall.mc.record.order.sync + +订单信息同步(零售云接口) +*/ +type TmallMcRecordOrderSyncAPIRequest struct { + model.Params + // 设备编码 + _deviceCode string + // 原价 + _originPrice int64 + // 实付价 + _payPrice int64 + // 用户openId + _openId string + // 核销结果 + _result string + // 云码版本号 + _version string +} + +// 初始化TmallMcRecordOrderSyncAPIRequest对象 +func NewTmallMcRecordOrderSyncRequest() *TmallMcRecordOrderSyncAPIRequest{ + return &TmallMcRecordOrderSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallMcRecordOrderSyncAPIRequest) GetApiMethodName() string { + return "tmall.mc.record.order.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallMcRecordOrderSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceCode Setter +// 设备编码 +func (r *TmallMcRecordOrderSyncAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r TmallMcRecordOrderSyncAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// OriginPrice Setter +// 原价 +func (r *TmallMcRecordOrderSyncAPIRequest) SetOriginPrice(_originPrice int64) error { + r._originPrice = _originPrice + r.Set("origin_price", _originPrice) + return nil +} + +// OriginPrice Getter +func (r TmallMcRecordOrderSyncAPIRequest) GetOriginPrice() int64 { + return r._originPrice +} +// PayPrice Setter +// 实付价 +func (r *TmallMcRecordOrderSyncAPIRequest) SetPayPrice(_payPrice int64) error { + r._payPrice = _payPrice + r.Set("pay_price", _payPrice) + return nil +} + +// PayPrice Getter +func (r TmallMcRecordOrderSyncAPIRequest) GetPayPrice() int64 { + return r._payPrice +} +// OpenId Setter +// 用户openId +func (r *TmallMcRecordOrderSyncAPIRequest) SetOpenId(_openId string) error { + r._openId = _openId + r.Set("open_id", _openId) + return nil +} + +// OpenId Getter +func (r TmallMcRecordOrderSyncAPIRequest) GetOpenId() string { + return r._openId +} +// Result Setter +// 核销结果 +func (r *TmallMcRecordOrderSyncAPIRequest) SetResult(_result string) error { + r._result = _result + r.Set("result", _result) + return nil +} + +// Result Getter +func (r TmallMcRecordOrderSyncAPIRequest) GetResult() string { + return r._result +} +// Version Setter +// 云码版本号 +func (r *TmallMcRecordOrderSyncAPIRequest) SetVersion(_version string) error { + r._version = _version + r.Set("version", _version) + return nil +} + +// Version Getter +func (r TmallMcRecordOrderSyncAPIRequest) GetVersion() string { + return r._version +} diff --git a/model/mc/TmallMcRecordOrderSyncAPIResponse.go b/model/mc/TmallMcRecordOrderSyncAPIResponse.go new file mode 100644 index 0000000000..cad8e78c59 --- /dev/null +++ b/model/mc/TmallMcRecordOrderSyncAPIResponse.go @@ -0,0 +1,27 @@ +package mc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单信息同步 API返回值 +tmall.mc.record.order.sync + +订单信息同步(零售云接口) +*/ +type TmallMcRecordOrderSyncAPIResponse struct { + model.CommonResponse + TmallMcRecordOrderSyncAPIResponseModel +} + +// 订单信息同步 成功返回结果 +type TmallMcRecordOrderSyncAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_mc_record_order_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 同步成功 + Data bool `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/mc/TmallMcRecordOrderSyncResponse.go b/model/mc/TmallMcRecordOrderSyncResponse.go deleted file mode 100644 index 1d51562db9..0000000000 --- a/model/mc/TmallMcRecordOrderSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单信息同步 API返回值 -tmall.mc.record.order.sync - -订单信息同步(零售云接口) -*/ -type TmallMcRecordOrderSyncAPIResponse struct { - model.CommonResponse - TmallMcRecordOrderSyncResponse -} - -// 订单信息同步 成功返回结果 -type TmallMcRecordOrderSyncResponse struct { - XMLName xml.Name `xml:"tmall_mc_record_order_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 同步成功 - Data bool `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/mc/TmallMcTaskChargeLaunchAPIRequest.go b/model/mc/TmallMcTaskChargeLaunchAPIRequest.go new file mode 100644 index 0000000000..463c7db470 --- /dev/null +++ b/model/mc/TmallMcTaskChargeLaunchAPIRequest.go @@ -0,0 +1,108 @@ +package mc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +云码充电宝投放链路 API请求 +tmall.mc.task.charge.launch + +云码充电宝投放链路,用于判断用户是否有匹配的投放计划 +*/ +type TmallMcTaskChargeLaunchAPIRequest struct { + model.Params + // 外部设备编码 + _outerCode string + // 渠道ID + _channelId string + // 支付宝openID + _alipayOpenId string + // urlID + _urlId string + // 服务商附加url参数 + _extra string +} + +// 初始化TmallMcTaskChargeLaunchAPIRequest对象 +func NewTmallMcTaskChargeLaunchRequest() *TmallMcTaskChargeLaunchAPIRequest{ + return &TmallMcTaskChargeLaunchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallMcTaskChargeLaunchAPIRequest) GetApiMethodName() string { + return "tmall.mc.task.charge.launch" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallMcTaskChargeLaunchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterCode Setter +// 外部设备编码 +func (r *TmallMcTaskChargeLaunchAPIRequest) SetOuterCode(_outerCode string) error { + r._outerCode = _outerCode + r.Set("outer_code", _outerCode) + return nil +} + +// OuterCode Getter +func (r TmallMcTaskChargeLaunchAPIRequest) GetOuterCode() string { + return r._outerCode +} +// ChannelId Setter +// 渠道ID +func (r *TmallMcTaskChargeLaunchAPIRequest) SetChannelId(_channelId string) error { + r._channelId = _channelId + r.Set("channel_id", _channelId) + return nil +} + +// ChannelId Getter +func (r TmallMcTaskChargeLaunchAPIRequest) GetChannelId() string { + return r._channelId +} +// AlipayOpenId Setter +// 支付宝openID +func (r *TmallMcTaskChargeLaunchAPIRequest) SetAlipayOpenId(_alipayOpenId string) error { + r._alipayOpenId = _alipayOpenId + r.Set("alipay_open_id", _alipayOpenId) + return nil +} + +// AlipayOpenId Getter +func (r TmallMcTaskChargeLaunchAPIRequest) GetAlipayOpenId() string { + return r._alipayOpenId +} +// UrlId Setter +// urlID +func (r *TmallMcTaskChargeLaunchAPIRequest) SetUrlId(_urlId string) error { + r._urlId = _urlId + r.Set("url_id", _urlId) + return nil +} + +// UrlId Getter +func (r TmallMcTaskChargeLaunchAPIRequest) GetUrlId() string { + return r._urlId +} +// Extra Setter +// 服务商附加url参数 +func (r *TmallMcTaskChargeLaunchAPIRequest) SetExtra(_extra string) error { + r._extra = _extra + r.Set("extra", _extra) + return nil +} + +// Extra Getter +func (r TmallMcTaskChargeLaunchAPIRequest) GetExtra() string { + return r._extra +} diff --git a/model/mc/TmallMcTaskChargeLaunchAPIResponse.go b/model/mc/TmallMcTaskChargeLaunchAPIResponse.go new file mode 100644 index 0000000000..c510bea21e --- /dev/null +++ b/model/mc/TmallMcTaskChargeLaunchAPIResponse.go @@ -0,0 +1,27 @@ +package mc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +云码充电宝投放链路 API返回值 +tmall.mc.task.charge.launch + +云码充电宝投放链路,用于判断用户是否有匹配的投放计划 +*/ +type TmallMcTaskChargeLaunchAPIResponse struct { + model.CommonResponse + TmallMcTaskChargeLaunchAPIResponseModel +} + +// 云码充电宝投放链路 成功返回结果 +type TmallMcTaskChargeLaunchAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_mc_task_charge_launch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 入会页url + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mc/TmallMcTaskChargeLaunchResponse.go b/model/mc/TmallMcTaskChargeLaunchResponse.go deleted file mode 100644 index 5fdb495968..0000000000 --- a/model/mc/TmallMcTaskChargeLaunchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -云码充电宝投放链路 API返回值 -tmall.mc.task.charge.launch - -云码充电宝投放链路,用于判断用户是否有匹配的投放计划 -*/ -type TmallMcTaskChargeLaunchAPIResponse struct { - model.CommonResponse - TmallMcTaskChargeLaunchResponse -} - -// 云码充电宝投放链路 成功返回结果 -type TmallMcTaskChargeLaunchResponse struct { - XMLName xml.Name `xml:"tmall_mc_task_charge_launch_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 入会页url - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/media/TaobaoInteractiveListGetbyuserAPIRequest.go b/model/media/TaobaoInteractiveListGetbyuserAPIRequest.go new file mode 100644 index 0000000000..e8fa6ad82f --- /dev/null +++ b/model/media/TaobaoInteractiveListGetbyuserAPIRequest.go @@ -0,0 +1,66 @@ +package media + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户获取视频互动列表 API请求 +taobao.interactive.list.getbyuser + +根据用户来获取用户编辑的互动列表 +*/ +type TaobaoInteractiveListGetbyuserAPIRequest struct { + model.Params + // 当前页 + _currentPage int64 + // 每页多少 + _pageSize int64 +} + +// 初始化TaobaoInteractiveListGetbyuserAPIRequest对象 +func NewTaobaoInteractiveListGetbyuserRequest() *TaobaoInteractiveListGetbyuserAPIRequest{ + return &TaobaoInteractiveListGetbyuserAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoInteractiveListGetbyuserAPIRequest) GetApiMethodName() string { + return "taobao.interactive.list.getbyuser" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoInteractiveListGetbyuserAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CurrentPage Setter +// 当前页 +func (r *TaobaoInteractiveListGetbyuserAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TaobaoInteractiveListGetbyuserAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// PageSize Setter +// 每页多少 +func (r *TaobaoInteractiveListGetbyuserAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoInteractiveListGetbyuserAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/media/TaobaoInteractiveListGetbyuserAPIResponse.go b/model/media/TaobaoInteractiveListGetbyuserAPIResponse.go new file mode 100644 index 0000000000..60340f58ec --- /dev/null +++ b/model/media/TaobaoInteractiveListGetbyuserAPIResponse.go @@ -0,0 +1,27 @@ +package media + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户获取视频互动列表 API返回值 +taobao.interactive.list.getbyuser + +根据用户来获取用户编辑的互动列表 +*/ +type TaobaoInteractiveListGetbyuserAPIResponse struct { + model.CommonResponse + TaobaoInteractiveListGetbyuserAPIResponseModel +} + +// 用户获取视频互动列表 成功返回结果 +type TaobaoInteractiveListGetbyuserAPIResponseModel struct { + XMLName xml.Name `xml:"interactive_list_getbyuser_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoInteractiveListGetbyuserResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/media/TaobaoInteractiveListGetbyuserResponse.go b/model/media/TaobaoInteractiveListGetbyuserResponse.go deleted file mode 100644 index 1b65c83b29..0000000000 --- a/model/media/TaobaoInteractiveListGetbyuserResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package media - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户获取视频互动列表 API返回值 -taobao.interactive.list.getbyuser - -根据用户来获取用户编辑的互动列表 -*/ -type TaobaoInteractiveListGetbyuserAPIResponse struct { - model.CommonResponse - TaobaoInteractiveListGetbyuserResponse -} - -// 用户获取视频互动列表 成功返回结果 -type TaobaoInteractiveListGetbyuserResponse struct { - XMLName xml.Name `xml:"interactive_list_getbyuser_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoInteractiveListGetbyuserResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/media/TaobaoMediaFileAddAPIRequest.go b/model/media/TaobaoMediaFileAddAPIRequest.go new file mode 100644 index 0000000000..8631eb1999 --- /dev/null +++ b/model/media/TaobaoMediaFileAddAPIRequest.go @@ -0,0 +1,108 @@ +package media + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +多媒体平台文件添加 API请求 +taobao.media.file.add + +用户通过top上传文件到多媒体平台 +*/ +type TaobaoMediaFileAddAPIRequest struct { + model.Params + // 文件属于的那个目录的目录编号 + _dirId int64 + // 上传文件的名称 + _name string + // 额外信息 + _ext int64 + // 文件 + _fileData *model.File + // 接入多媒体平台的业务code每个应用有一个特有的业务code + _bizCode string +} + +// 初始化TaobaoMediaFileAddAPIRequest对象 +func NewTaobaoMediaFileAddRequest() *TaobaoMediaFileAddAPIRequest{ + return &TaobaoMediaFileAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMediaFileAddAPIRequest) GetApiMethodName() string { + return "taobao.media.file.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMediaFileAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DirId Setter +// 文件属于的那个目录的目录编号 +func (r *TaobaoMediaFileAddAPIRequest) SetDirId(_dirId int64) error { + r._dirId = _dirId + r.Set("dir_id", _dirId) + return nil +} + +// DirId Getter +func (r TaobaoMediaFileAddAPIRequest) GetDirId() int64 { + return r._dirId +} +// Name Setter +// 上传文件的名称 +func (r *TaobaoMediaFileAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoMediaFileAddAPIRequest) GetName() string { + return r._name +} +// Ext Setter +// 额外信息 +func (r *TaobaoMediaFileAddAPIRequest) SetExt(_ext int64) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoMediaFileAddAPIRequest) GetExt() int64 { + return r._ext +} +// FileData Setter +// 文件 +func (r *TaobaoMediaFileAddAPIRequest) SetFileData(_fileData *model.File) error { + r._fileData = _fileData + r.Set("file_data", _fileData) + return nil +} + +// FileData Getter +func (r TaobaoMediaFileAddAPIRequest) GetFileData() *model.File { + return r._fileData +} +// BizCode Setter +// 接入多媒体平台的业务code每个应用有一个特有的业务code +func (r *TaobaoMediaFileAddAPIRequest) SetBizCode(_bizCode string) error { + r._bizCode = _bizCode + r.Set("biz_code", _bizCode) + return nil +} + +// BizCode Getter +func (r TaobaoMediaFileAddAPIRequest) GetBizCode() string { + return r._bizCode +} diff --git a/model/media/TaobaoMediaFileAddAPIResponse.go b/model/media/TaobaoMediaFileAddAPIResponse.go new file mode 100644 index 0000000000..c3548db3f5 --- /dev/null +++ b/model/media/TaobaoMediaFileAddAPIResponse.go @@ -0,0 +1,27 @@ +package media + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +多媒体平台文件添加 API返回值 +taobao.media.file.add + +用户通过top上传文件到多媒体平台 +*/ +type TaobaoMediaFileAddAPIResponse struct { + model.CommonResponse + TaobaoMediaFileAddAPIResponseModel +} + +// 多媒体平台文件添加 成功返回结果 +type TaobaoMediaFileAddAPIResponseModel struct { + XMLName xml.Name `xml:"media_file_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 上传到多媒体平台的文件 + File *File `json:"file,omitempty" xml:"file,omitempty"` +} diff --git a/model/media/TaobaoMediaFileAddResponse.go b/model/media/TaobaoMediaFileAddResponse.go deleted file mode 100644 index fdfbfdf68e..0000000000 --- a/model/media/TaobaoMediaFileAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package media - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -多媒体平台文件添加 API返回值 -taobao.media.file.add - -用户通过top上传文件到多媒体平台 -*/ -type TaobaoMediaFileAddAPIResponse struct { - model.CommonResponse - TaobaoMediaFileAddResponse -} - -// 多媒体平台文件添加 成功返回结果 -type TaobaoMediaFileAddResponse struct { - XMLName xml.Name `xml:"media_file_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 上传到多媒体平台的文件 - File *File `json:"file,omitempty" xml:"file,omitempty"` -} diff --git a/model/media/TaobaoMediaVideoListAPIRequest.go b/model/media/TaobaoMediaVideoListAPIRequest.go new file mode 100644 index 0000000000..1eb6a5ddbc --- /dev/null +++ b/model/media/TaobaoMediaVideoListAPIRequest.go @@ -0,0 +1,52 @@ +package media + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商家视频列表 API请求 +taobao.media.video.list + +用于获取授权商家的视频列表 +*/ +type TaobaoMediaVideoListAPIRequest struct { + model.Params + // 搜索条件 + _searchCondition *VideoSearchCondition2 +} + +// 初始化TaobaoMediaVideoListAPIRequest对象 +func NewTaobaoMediaVideoListRequest() *TaobaoMediaVideoListAPIRequest{ + return &TaobaoMediaVideoListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMediaVideoListAPIRequest) GetApiMethodName() string { + return "taobao.media.video.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMediaVideoListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SearchCondition Setter +// 搜索条件 +func (r *TaobaoMediaVideoListAPIRequest) SetSearchCondition(_searchCondition *VideoSearchCondition2) error { + r._searchCondition = _searchCondition + r.Set("search_condition", _searchCondition) + return nil +} + +// SearchCondition Getter +func (r TaobaoMediaVideoListAPIRequest) GetSearchCondition() *VideoSearchCondition2 { + return r._searchCondition +} diff --git a/model/media/TaobaoMediaVideoListAPIResponse.go b/model/media/TaobaoMediaVideoListAPIResponse.go new file mode 100644 index 0000000000..1b60b20048 --- /dev/null +++ b/model/media/TaobaoMediaVideoListAPIResponse.go @@ -0,0 +1,27 @@ +package media + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商家视频列表 API返回值 +taobao.media.video.list + +用于获取授权商家的视频列表 +*/ +type TaobaoMediaVideoListAPIResponse struct { + model.CommonResponse + TaobaoMediaVideoListAPIResponseModel +} + +// 获取商家视频列表 成功返回结果 +type TaobaoMediaVideoListAPIResponseModel struct { + XMLName xml.Name `xml:"media_video_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *SearchResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/media/TaobaoMediaVideoListResponse.go b/model/media/TaobaoMediaVideoListResponse.go deleted file mode 100644 index dfcee081fa..0000000000 --- a/model/media/TaobaoMediaVideoListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package media - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取商家视频列表 API返回值 -taobao.media.video.list - -用于获取授权商家的视频列表 -*/ -type TaobaoMediaVideoListAPIResponse struct { - model.CommonResponse - TaobaoMediaVideoListResponse -} - -// 获取商家视频列表 成功返回结果 -type TaobaoMediaVideoListResponse struct { - XMLName xml.Name `xml:"media_video_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *SearchResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/media/TaobaoMiniappCloudPictureTokenAPIRequest.go b/model/media/TaobaoMiniappCloudPictureTokenAPIRequest.go new file mode 100644 index 0000000000..91592878cc --- /dev/null +++ b/model/media/TaobaoMiniappCloudPictureTokenAPIRequest.go @@ -0,0 +1,59 @@ +package media + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +云存储上传token获取 API请求 +taobao.miniapp.cloud.picture.token + +获取图片上传token,作为http://upload.cloud.tmall.com/api/proxy/upload接口上传的凭证。 + +上传的html示例代码为: +<form action="http://upload.cloud.tmall.com/api/proxy/upload" method="post" enctype="multipart/form-data"> + 上传token: <input type="text" name="Authorization" value="" /><br/> + 上传文件:<input type="file" name="content" /><br/> + <input type="submit" value="Submit "/> +</form> +*/ +type TaobaoMiniappCloudPictureTokenAPIRequest struct { + model.Params + // 请求参数 + _generateTokenRequest *GenerateTokenRequest +} + +// 初始化TaobaoMiniappCloudPictureTokenAPIRequest对象 +func NewTaobaoMiniappCloudPictureTokenRequest() *TaobaoMiniappCloudPictureTokenAPIRequest{ + return &TaobaoMiniappCloudPictureTokenAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappCloudPictureTokenAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.cloud.picture.token" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappCloudPictureTokenAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GenerateTokenRequest Setter +// 请求参数 +func (r *TaobaoMiniappCloudPictureTokenAPIRequest) SetGenerateTokenRequest(_generateTokenRequest *GenerateTokenRequest) error { + r._generateTokenRequest = _generateTokenRequest + r.Set("generate_token_request", _generateTokenRequest) + return nil +} + +// GenerateTokenRequest Getter +func (r TaobaoMiniappCloudPictureTokenAPIRequest) GetGenerateTokenRequest() *GenerateTokenRequest { + return r._generateTokenRequest +} diff --git a/model/media/TaobaoMiniappCloudPictureTokenAPIResponse.go b/model/media/TaobaoMiniappCloudPictureTokenAPIResponse.go new file mode 100644 index 0000000000..9c7c49933e --- /dev/null +++ b/model/media/TaobaoMiniappCloudPictureTokenAPIResponse.go @@ -0,0 +1,34 @@ +package media + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +云存储上传token获取 API返回值 +taobao.miniapp.cloud.picture.token + +获取图片上传token,作为http://upload.cloud.tmall.com/api/proxy/upload接口上传的凭证。 + +上传的html示例代码为: +<form action="http://upload.cloud.tmall.com/api/proxy/upload" method="post" enctype="multipart/form-data"> + 上传token: <input type="text" name="Authorization" value="" /><br/> + 上传文件:<input type="file" name="content" /><br/> + <input type="submit" value="Submit "/> +</form> +*/ +type TaobaoMiniappCloudPictureTokenAPIResponse struct { + model.CommonResponse + TaobaoMiniappCloudPictureTokenAPIResponseModel +} + +// 云存储上传token获取 成功返回结果 +type TaobaoMiniappCloudPictureTokenAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_cloud_picture_token_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的token + Token string `json:"token,omitempty" xml:"token,omitempty"` +} diff --git a/model/media/TaobaoMiniappCloudPictureTokenResponse.go b/model/media/TaobaoMiniappCloudPictureTokenResponse.go deleted file mode 100644 index 4685edaa9b..0000000000 --- a/model/media/TaobaoMiniappCloudPictureTokenResponse.go +++ /dev/null @@ -1,34 +0,0 @@ -package media - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -云存储上传token获取 API返回值 -taobao.miniapp.cloud.picture.token - -获取图片上传token,作为http://upload.cloud.tmall.com/api/proxy/upload接口上传的凭证。 - -上传的html示例代码为: -<form action="http://upload.cloud.tmall.com/api/proxy/upload" method="post" enctype="multipart/form-data"> - 上传token: <input type="text" name="Authorization" value="" /><br/> - 上传文件:<input type="file" name="content" /><br/> - <input type="submit" value="Submit "/> -</form> -*/ -type TaobaoMiniappCloudPictureTokenAPIResponse struct { - model.CommonResponse - TaobaoMiniappCloudPictureTokenResponse -} - -// 云存储上传token获取 成功返回结果 -type TaobaoMiniappCloudPictureTokenResponse struct { - XMLName xml.Name `xml:"miniapp_cloud_picture_token_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的token - Token string `json:"token,omitempty" xml:"token,omitempty"` -} diff --git a/model/media/TaobaoPictureCategoryAddAPIRequest.go b/model/media/TaobaoPictureCategoryAddAPIRequest.go new file mode 100644 index 0000000000..ba364cc307 --- /dev/null +++ b/model/media/TaobaoPictureCategoryAddAPIRequest.go @@ -0,0 +1,66 @@ +package media + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增图片分类信息 API请求 +taobao.picture.category.add + +同一卖家最多添加500个图片分类,图片分类名称长度最大为20个字符 +*/ +type TaobaoPictureCategoryAddAPIRequest struct { + model.Params + // 图片分类名称,最大长度20字符,中文字符算2个字符,不能为空 + _pictureCategoryName string + // 图片分类的父分类,一级分类的parent_id为0,二级分类的则为其父分类的picture_category_id + _parentId int64 +} + +// 初始化TaobaoPictureCategoryAddAPIRequest对象 +func NewTaobaoPictureCategoryAddRequest() *TaobaoPictureCategoryAddAPIRequest{ + return &TaobaoPictureCategoryAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPictureCategoryAddAPIRequest) GetApiMethodName() string { + return "taobao.picture.category.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPictureCategoryAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PictureCategoryName Setter +// 图片分类名称,最大长度20字符,中文字符算2个字符,不能为空 +func (r *TaobaoPictureCategoryAddAPIRequest) SetPictureCategoryName(_pictureCategoryName string) error { + r._pictureCategoryName = _pictureCategoryName + r.Set("picture_category_name", _pictureCategoryName) + return nil +} + +// PictureCategoryName Getter +func (r TaobaoPictureCategoryAddAPIRequest) GetPictureCategoryName() string { + return r._pictureCategoryName +} +// ParentId Setter +// 图片分类的父分类,一级分类的parent_id为0,二级分类的则为其父分类的picture_category_id +func (r *TaobaoPictureCategoryAddAPIRequest) SetParentId(_parentId int64) error { + r._parentId = _parentId + r.Set("parent_id", _parentId) + return nil +} + +// ParentId Getter +func (r TaobaoPictureCategoryAddAPIRequest) GetParentId() int64 { + return r._parentId +} diff --git a/model/media/TaobaoPictureCategoryAddAPIResponse.go b/model/media/TaobaoPictureCategoryAddAPIResponse.go new file mode 100644 index 0000000000..7c1fac9f59 --- /dev/null +++ b/model/media/TaobaoPictureCategoryAddAPIResponse.go @@ -0,0 +1,27 @@ +package media + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增图片分类信息 API返回值 +taobao.picture.category.add + +同一卖家最多添加500个图片分类,图片分类名称长度最大为20个字符 +*/ +type TaobaoPictureCategoryAddAPIResponse struct { + model.CommonResponse + TaobaoPictureCategoryAddAPIResponseModel +} + +// 新增图片分类信息 成功返回结果 +type TaobaoPictureCategoryAddAPIResponseModel struct { + XMLName xml.Name `xml:"picture_category_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 图片分类信息 + PictureCategory *PictureCategory `json:"picture_category,omitempty" xml:"picture_category,omitempty"` +} diff --git a/model/media/TaobaoPictureCategoryAddResponse.go b/model/media/TaobaoPictureCategoryAddResponse.go deleted file mode 100644 index 001c0b1401..0000000000 --- a/model/media/TaobaoPictureCategoryAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package media - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增图片分类信息 API返回值 -taobao.picture.category.add - -同一卖家最多添加500个图片分类,图片分类名称长度最大为20个字符 -*/ -type TaobaoPictureCategoryAddAPIResponse struct { - model.CommonResponse - TaobaoPictureCategoryAddResponse -} - -// 新增图片分类信息 成功返回结果 -type TaobaoPictureCategoryAddResponse struct { - XMLName xml.Name `xml:"picture_category_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 图片分类信息 - PictureCategory *PictureCategory `json:"picture_category,omitempty" xml:"picture_category,omitempty"` -} diff --git a/model/media/TaobaoPictureCategoryGetAPIRequest.go b/model/media/TaobaoPictureCategoryGetAPIRequest.go new file mode 100644 index 0000000000..7291ed195d --- /dev/null +++ b/model/media/TaobaoPictureCategoryGetAPIRequest.go @@ -0,0 +1,108 @@ +package media + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取图片分类信息 API请求 +taobao.picture.category.get + +获取图片分类信息 +*/ +type TaobaoPictureCategoryGetAPIRequest struct { + model.Params + // 1 + _type string + // 图片分类ID + _pictureCategoryId int64 + // 图片分类名,不支持模糊查询 + _pictureCategoryName string + // 取二级分类时设置为对应父分类id
取一级分类时父分类id设为0
取全部分类的时候不设或设为-1 + _parentId int64 + // 图片分类的修改时间点,格式:yyyy-MM-dd HH:mm:ss。查询此修改时间点之后到目前的图片分类。 + _modifiedTime string +} + +// 初始化TaobaoPictureCategoryGetAPIRequest对象 +func NewTaobaoPictureCategoryGetRequest() *TaobaoPictureCategoryGetAPIRequest{ + return &TaobaoPictureCategoryGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPictureCategoryGetAPIRequest) GetApiMethodName() string { + return "taobao.picture.category.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPictureCategoryGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// 1 +func (r *TaobaoPictureCategoryGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoPictureCategoryGetAPIRequest) GetType() string { + return r._type +} +// PictureCategoryId Setter +// 图片分类ID +func (r *TaobaoPictureCategoryGetAPIRequest) SetPictureCategoryId(_pictureCategoryId int64) error { + r._pictureCategoryId = _pictureCategoryId + r.Set("picture_category_id", _pictureCategoryId) + return nil +} + +// PictureCategoryId Getter +func (r TaobaoPictureCategoryGetAPIRequest) GetPictureCategoryId() int64 { + return r._pictureCategoryId +} +// PictureCategoryName Setter +// 图片分类名,不支持模糊查询 +func (r *TaobaoPictureCategoryGetAPIRequest) SetPictureCategoryName(_pictureCategoryName string) error { + r._pictureCategoryName = _pictureCategoryName + r.Set("picture_category_name", _pictureCategoryName) + return nil +} + +// PictureCategoryName Getter +func (r TaobaoPictureCategoryGetAPIRequest) GetPictureCategoryName() string { + return r._pictureCategoryName +} +// ParentId Setter +// 取二级分类时设置为对应父分类id
取一级分类时父分类id设为0
取全部分类的时候不设或设为-1 +func (r *TaobaoPictureCategoryGetAPIRequest) SetParentId(_parentId int64) error { + r._parentId = _parentId + r.Set("parent_id", _parentId) + return nil +} + +// ParentId Getter +func (r TaobaoPictureCategoryGetAPIRequest) GetParentId() int64 { + return r._parentId +} +// ModifiedTime Setter +// 图片分类的修改时间点,格式:yyyy-MM-dd HH:mm:ss。查询此修改时间点之后到目前的图片分类。 +func (r *TaobaoPictureCategoryGetAPIRequest) SetModifiedTime(_modifiedTime string) error { + r._modifiedTime = _modifiedTime + r.Set("modified_time", _modifiedTime) + return nil +} + +// ModifiedTime Getter +func (r TaobaoPictureCategoryGetAPIRequest) GetModifiedTime() string { + return r._modifiedTime +} diff --git a/model/media/TaobaoPictureCategoryGetAPIResponse.go b/model/media/TaobaoPictureCategoryGetAPIResponse.go new file mode 100644 index 0000000000..49214390a4 --- /dev/null +++ b/model/media/TaobaoPictureCategoryGetAPIResponse.go @@ -0,0 +1,27 @@ +package media + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取图片分类信息 API返回值 +taobao.picture.category.get + +获取图片分类信息 +*/ +type TaobaoPictureCategoryGetAPIResponse struct { + model.CommonResponse + TaobaoPictureCategoryGetAPIResponseModel +} + +// 获取图片分类信息 成功返回结果 +type TaobaoPictureCategoryGetAPIResponseModel struct { + XMLName xml.Name `xml:"picture_category_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 图片分类 + PictureCategories []PictureCategory `json:"picture_categories,omitempty" xml:"picture_categories>picture_category,omitempty"` +} diff --git a/model/media/TaobaoPictureCategoryGetResponse.go b/model/media/TaobaoPictureCategoryGetResponse.go deleted file mode 100644 index 384cd1c484..0000000000 --- a/model/media/TaobaoPictureCategoryGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package media - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取图片分类信息 API返回值 -taobao.picture.category.get - -获取图片分类信息 -*/ -type TaobaoPictureCategoryGetAPIResponse struct { - model.CommonResponse - TaobaoPictureCategoryGetResponse -} - -// 获取图片分类信息 成功返回结果 -type TaobaoPictureCategoryGetResponse struct { - XMLName xml.Name `xml:"picture_category_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 图片分类 - PictureCategories []PictureCategory `json:"picture_categories,omitempty" xml:"picture_categories>picture_category,omitempty"` -} diff --git a/model/media/TaobaoPictureCategoryUpdateAPIRequest.go b/model/media/TaobaoPictureCategoryUpdateAPIRequest.go new file mode 100644 index 0000000000..689f6de412 --- /dev/null +++ b/model/media/TaobaoPictureCategoryUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package media + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新图片分类 API请求 +taobao.picture.category.update + +更新图片分类的名字,或者更新图片分类的父分类(即分类移动)。只能移动2级分类到非2级分类,默认分类和1级分类不可移动。 +*/ +type TaobaoPictureCategoryUpdateAPIRequest struct { + model.Params + // 要更新的图片分类的id + _categoryId int64 + // 图片分类的新名字,最大长度20字符,不能为空 + _categoryName string + // 图片分类的新父分类id + _parentId int64 +} + +// 初始化TaobaoPictureCategoryUpdateAPIRequest对象 +func NewTaobaoPictureCategoryUpdateRequest() *TaobaoPictureCategoryUpdateAPIRequest{ + return &TaobaoPictureCategoryUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPictureCategoryUpdateAPIRequest) GetApiMethodName() string { + return "taobao.picture.category.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPictureCategoryUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CategoryId Setter +// 要更新的图片分类的id +func (r *TaobaoPictureCategoryUpdateAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r TaobaoPictureCategoryUpdateAPIRequest) GetCategoryId() int64 { + return r._categoryId +} +// CategoryName Setter +// 图片分类的新名字,最大长度20字符,不能为空 +func (r *TaobaoPictureCategoryUpdateAPIRequest) SetCategoryName(_categoryName string) error { + r._categoryName = _categoryName + r.Set("category_name", _categoryName) + return nil +} + +// CategoryName Getter +func (r TaobaoPictureCategoryUpdateAPIRequest) GetCategoryName() string { + return r._categoryName +} +// ParentId Setter +// 图片分类的新父分类id +func (r *TaobaoPictureCategoryUpdateAPIRequest) SetParentId(_parentId int64) error { + r._parentId = _parentId + r.Set("parent_id", _parentId) + return nil +} + +// ParentId Getter +func (r TaobaoPictureCategoryUpdateAPIRequest) GetParentId() int64 { + return r._parentId +} diff --git a/model/media/TaobaoPictureCategoryUpdateAPIResponse.go b/model/media/TaobaoPictureCategoryUpdateAPIResponse.go new file mode 100644 index 0000000000..fd0d662879 --- /dev/null +++ b/model/media/TaobaoPictureCategoryUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package media + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新图片分类 API返回值 +taobao.picture.category.update + +更新图片分类的名字,或者更新图片分类的父分类(即分类移动)。只能移动2级分类到非2级分类,默认分类和1级分类不可移动。 +*/ +type TaobaoPictureCategoryUpdateAPIResponse struct { + model.CommonResponse + TaobaoPictureCategoryUpdateAPIResponseModel +} + +// 更新图片分类 成功返回结果 +type TaobaoPictureCategoryUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"picture_category_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 更新图片分类是否成功 + Done bool `json:"done,omitempty" xml:"done,omitempty"` +} diff --git a/model/media/TaobaoPictureCategoryUpdateResponse.go b/model/media/TaobaoPictureCategoryUpdateResponse.go deleted file mode 100644 index 5d98c39a70..0000000000 --- a/model/media/TaobaoPictureCategoryUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package media - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新图片分类 API返回值 -taobao.picture.category.update - -更新图片分类的名字,或者更新图片分类的父分类(即分类移动)。只能移动2级分类到非2级分类,默认分类和1级分类不可移动。 -*/ -type TaobaoPictureCategoryUpdateAPIResponse struct { - model.CommonResponse - TaobaoPictureCategoryUpdateResponse -} - -// 更新图片分类 成功返回结果 -type TaobaoPictureCategoryUpdateResponse struct { - XMLName xml.Name `xml:"picture_category_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 更新图片分类是否成功 - Done bool `json:"done,omitempty" xml:"done,omitempty"` -} diff --git a/model/media/TaobaoPictureChangecategoryAPIRequest.go b/model/media/TaobaoPictureChangecategoryAPIRequest.go new file mode 100644 index 0000000000..3df452e5f0 --- /dev/null +++ b/model/media/TaobaoPictureChangecategoryAPIRequest.go @@ -0,0 +1,66 @@ +package media + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改图片的分类 API请求 +taobao.picture.changecategory + +把批量的图片移动到某个分类下 +*/ +type TaobaoPictureChangecategoryAPIRequest struct { + model.Params + // 要移动的图片的id + _pictureIds []int64 + // 目标分类的id + _pictureCategoryId int64 +} + +// 初始化TaobaoPictureChangecategoryAPIRequest对象 +func NewTaobaoPictureChangecategoryRequest() *TaobaoPictureChangecategoryAPIRequest{ + return &TaobaoPictureChangecategoryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPictureChangecategoryAPIRequest) GetApiMethodName() string { + return "taobao.picture.changecategory" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPictureChangecategoryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PictureIds Setter +// 要移动的图片的id +func (r *TaobaoPictureChangecategoryAPIRequest) SetPictureIds(_pictureIds []int64) error { + r._pictureIds = _pictureIds + r.Set("picture_ids", _pictureIds) + return nil +} + +// PictureIds Getter +func (r TaobaoPictureChangecategoryAPIRequest) GetPictureIds() []int64 { + return r._pictureIds +} +// PictureCategoryId Setter +// 目标分类的id +func (r *TaobaoPictureChangecategoryAPIRequest) SetPictureCategoryId(_pictureCategoryId int64) error { + r._pictureCategoryId = _pictureCategoryId + r.Set("picture_category_id", _pictureCategoryId) + return nil +} + +// PictureCategoryId Getter +func (r TaobaoPictureChangecategoryAPIRequest) GetPictureCategoryId() int64 { + return r._pictureCategoryId +} diff --git a/model/media/TaobaoPictureChangecategoryAPIResponse.go b/model/media/TaobaoPictureChangecategoryAPIResponse.go new file mode 100644 index 0000000000..827de025d6 --- /dev/null +++ b/model/media/TaobaoPictureChangecategoryAPIResponse.go @@ -0,0 +1,27 @@ +package media + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改图片的分类 API返回值 +taobao.picture.changecategory + +把批量的图片移动到某个分类下 +*/ +type TaobaoPictureChangecategoryAPIResponse struct { + model.CommonResponse + TaobaoPictureChangecategoryAPIResponseModel +} + +// 修改图片的分类 成功返回结果 +type TaobaoPictureChangecategoryAPIResponseModel struct { + XMLName xml.Name `xml:"picture_changecategory_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 移动图片是否成功:部分移动成功为true,全部移动失败为false。 + Done bool `json:"done,omitempty" xml:"done,omitempty"` +} diff --git a/model/media/TaobaoPictureChangecategoryResponse.go b/model/media/TaobaoPictureChangecategoryResponse.go deleted file mode 100644 index 358f1fde93..0000000000 --- a/model/media/TaobaoPictureChangecategoryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package media - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改图片的分类 API返回值 -taobao.picture.changecategory - -把批量的图片移动到某个分类下 -*/ -type TaobaoPictureChangecategoryAPIResponse struct { - model.CommonResponse - TaobaoPictureChangecategoryResponse -} - -// 修改图片的分类 成功返回结果 -type TaobaoPictureChangecategoryResponse struct { - XMLName xml.Name `xml:"picture_changecategory_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 移动图片是否成功:部分移动成功为true,全部移动失败为false。 - Done bool `json:"done,omitempty" xml:"done,omitempty"` -} diff --git a/model/media/TaobaoPictureDeleteAPIRequest.go b/model/media/TaobaoPictureDeleteAPIRequest.go new file mode 100644 index 0000000000..911b2bf6f5 --- /dev/null +++ b/model/media/TaobaoPictureDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package media + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除图片空间图片 API请求 +taobao.picture.delete + +删除图片空间图片 +*/ +type TaobaoPictureDeleteAPIRequest struct { + model.Params + // 图片ID字符串,可以一个也可以一组,用英文逗号间隔,如450,120,155.限制数量是100 + _pictureIds []string +} + +// 初始化TaobaoPictureDeleteAPIRequest对象 +func NewTaobaoPictureDeleteRequest() *TaobaoPictureDeleteAPIRequest{ + return &TaobaoPictureDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPictureDeleteAPIRequest) GetApiMethodName() string { + return "taobao.picture.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPictureDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PictureIds Setter +// 图片ID字符串,可以一个也可以一组,用英文逗号间隔,如450,120,155.限制数量是100 +func (r *TaobaoPictureDeleteAPIRequest) SetPictureIds(_pictureIds []string) error { + r._pictureIds = _pictureIds + r.Set("picture_ids", _pictureIds) + return nil +} + +// PictureIds Getter +func (r TaobaoPictureDeleteAPIRequest) GetPictureIds() []string { + return r._pictureIds +} diff --git a/model/media/TaobaoPictureDeleteAPIResponse.go b/model/media/TaobaoPictureDeleteAPIResponse.go new file mode 100644 index 0000000000..a7867645eb --- /dev/null +++ b/model/media/TaobaoPictureDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package media + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除图片空间图片 API返回值 +taobao.picture.delete + +删除图片空间图片 +*/ +type TaobaoPictureDeleteAPIResponse struct { + model.CommonResponse + TaobaoPictureDeleteAPIResponseModel +} + +// 删除图片空间图片 成功返回结果 +type TaobaoPictureDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"picture_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否删除 + Success string `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/media/TaobaoPictureDeleteResponse.go b/model/media/TaobaoPictureDeleteResponse.go deleted file mode 100644 index e23a68c36d..0000000000 --- a/model/media/TaobaoPictureDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package media - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除图片空间图片 API返回值 -taobao.picture.delete - -删除图片空间图片 -*/ -type TaobaoPictureDeleteAPIResponse struct { - model.CommonResponse - TaobaoPictureDeleteResponse -} - -// 删除图片空间图片 成功返回结果 -type TaobaoPictureDeleteResponse struct { - XMLName xml.Name `xml:"picture_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否删除 - Success string `json:"success,omitempty" xml:"success,omitempty"` -} diff --git a/model/media/TaobaoPictureGetAPIRequest.go b/model/media/TaobaoPictureGetAPIRequest.go new file mode 100644 index 0000000000..4e44d0a86a --- /dev/null +++ b/model/media/TaobaoPictureGetAPIRequest.go @@ -0,0 +1,220 @@ +package media + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取图片信息 API请求 +taobao.picture.get + +获取图片信息 +*/ +type TaobaoPictureGetAPIRequest struct { + model.Params + // 图片ID + _pictureId int64 + // 图片分类ID + _pictureCategoryId int64 + // 是否删除,unfroze代表没有删除 + _deleted string + // 图片标题,最大长度50字符,中英文都算一字符 + _title string + // 图片查询结果排序,time:desc按上传时间从晚到早(默认), time:asc按上传时间从早到晚,sizes:desc按图片从大到小,sizes:asc按图片从小到大,默认time:desc + _orderBy string + // 查询上传开始时间点,格式:yyyy-MM-dd HH:mm:ss + _startDate string + // 查询上传结束时间点,格式:yyyy-MM-dd HH:mm:ss + _endDate string + // 页码.传入值为1代表第一页,传入值为2代表第二页,依此类推,默认值为1 + _pageNo int64 + // 每页条数.每页返回最多返回100条,默认值40 + _pageSize int64 + // 图片被修改的时间点,格式:yyyy-MM-dd HH:mm:ss。查询此修改时间点之后到目前的图片。 + _modifiedTime string + // 图片使用,如果是pc宝贝detail使用,设置为client:computer,查询出来的图片是符合pc的宝贝detail显示的如果是手机宝贝detail使用,设置为client:phone,查询出来的图片是符合手机的宝贝detail显示的,默认值是全部 + _clientType string + // 图片url查询接口 + _urls string + // 是否获取https的链接 + _isHttps bool +} + +// 初始化TaobaoPictureGetAPIRequest对象 +func NewTaobaoPictureGetRequest() *TaobaoPictureGetAPIRequest{ + return &TaobaoPictureGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPictureGetAPIRequest) GetApiMethodName() string { + return "taobao.picture.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPictureGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PictureId Setter +// 图片ID +func (r *TaobaoPictureGetAPIRequest) SetPictureId(_pictureId int64) error { + r._pictureId = _pictureId + r.Set("picture_id", _pictureId) + return nil +} + +// PictureId Getter +func (r TaobaoPictureGetAPIRequest) GetPictureId() int64 { + return r._pictureId +} +// PictureCategoryId Setter +// 图片分类ID +func (r *TaobaoPictureGetAPIRequest) SetPictureCategoryId(_pictureCategoryId int64) error { + r._pictureCategoryId = _pictureCategoryId + r.Set("picture_category_id", _pictureCategoryId) + return nil +} + +// PictureCategoryId Getter +func (r TaobaoPictureGetAPIRequest) GetPictureCategoryId() int64 { + return r._pictureCategoryId +} +// Deleted Setter +// 是否删除,unfroze代表没有删除 +func (r *TaobaoPictureGetAPIRequest) SetDeleted(_deleted string) error { + r._deleted = _deleted + r.Set("deleted", _deleted) + return nil +} + +// Deleted Getter +func (r TaobaoPictureGetAPIRequest) GetDeleted() string { + return r._deleted +} +// Title Setter +// 图片标题,最大长度50字符,中英文都算一字符 +func (r *TaobaoPictureGetAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoPictureGetAPIRequest) GetTitle() string { + return r._title +} +// OrderBy Setter +// 图片查询结果排序,time:desc按上传时间从晚到早(默认), time:asc按上传时间从早到晚,sizes:desc按图片从大到小,sizes:asc按图片从小到大,默认time:desc +func (r *TaobaoPictureGetAPIRequest) SetOrderBy(_orderBy string) error { + r._orderBy = _orderBy + r.Set("order_by", _orderBy) + return nil +} + +// OrderBy Getter +func (r TaobaoPictureGetAPIRequest) GetOrderBy() string { + return r._orderBy +} +// StartDate Setter +// 查询上传开始时间点,格式:yyyy-MM-dd HH:mm:ss +func (r *TaobaoPictureGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoPictureGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 查询上传结束时间点,格式:yyyy-MM-dd HH:mm:ss +func (r *TaobaoPictureGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoPictureGetAPIRequest) GetEndDate() string { + return r._endDate +} +// PageNo Setter +// 页码.传入值为1代表第一页,传入值为2代表第二页,依此类推,默认值为1 +func (r *TaobaoPictureGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoPictureGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数.每页返回最多返回100条,默认值40 +func (r *TaobaoPictureGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoPictureGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// ModifiedTime Setter +// 图片被修改的时间点,格式:yyyy-MM-dd HH:mm:ss。查询此修改时间点之后到目前的图片。 +func (r *TaobaoPictureGetAPIRequest) SetModifiedTime(_modifiedTime string) error { + r._modifiedTime = _modifiedTime + r.Set("modified_time", _modifiedTime) + return nil +} + +// ModifiedTime Getter +func (r TaobaoPictureGetAPIRequest) GetModifiedTime() string { + return r._modifiedTime +} +// ClientType Setter +// 图片使用,如果是pc宝贝detail使用,设置为client:computer,查询出来的图片是符合pc的宝贝detail显示的如果是手机宝贝detail使用,设置为client:phone,查询出来的图片是符合手机的宝贝detail显示的,默认值是全部 +func (r *TaobaoPictureGetAPIRequest) SetClientType(_clientType string) error { + r._clientType = _clientType + r.Set("client_type", _clientType) + return nil +} + +// ClientType Getter +func (r TaobaoPictureGetAPIRequest) GetClientType() string { + return r._clientType +} +// Urls Setter +// 图片url查询接口 +func (r *TaobaoPictureGetAPIRequest) SetUrls(_urls string) error { + r._urls = _urls + r.Set("urls", _urls) + return nil +} + +// Urls Getter +func (r TaobaoPictureGetAPIRequest) GetUrls() string { + return r._urls +} +// IsHttps Setter +// 是否获取https的链接 +func (r *TaobaoPictureGetAPIRequest) SetIsHttps(_isHttps bool) error { + r._isHttps = _isHttps + r.Set("is_https", _isHttps) + return nil +} + +// IsHttps Getter +func (r TaobaoPictureGetAPIRequest) GetIsHttps() bool { + return r._isHttps +} diff --git a/model/media/TaobaoPictureGetAPIResponse.go b/model/media/TaobaoPictureGetAPIResponse.go new file mode 100644 index 0000000000..aea6eedcbd --- /dev/null +++ b/model/media/TaobaoPictureGetAPIResponse.go @@ -0,0 +1,27 @@ +package media + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取图片信息 API返回值 +taobao.picture.get + +获取图片信息 +*/ +type TaobaoPictureGetAPIResponse struct { + model.CommonResponse + TaobaoPictureGetAPIResponseModel +} + +// 获取图片信息 成功返回结果 +type TaobaoPictureGetAPIResponseModel struct { + XMLName xml.Name `xml:"picture_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 图片信息列表 + Pictures []Picture `json:"pictures,omitempty" xml:"pictures>picture,omitempty"` +} diff --git a/model/media/TaobaoPictureGetResponse.go b/model/media/TaobaoPictureGetResponse.go deleted file mode 100644 index 2c0256fe6c..0000000000 --- a/model/media/TaobaoPictureGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package media - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取图片信息 API返回值 -taobao.picture.get - -获取图片信息 -*/ -type TaobaoPictureGetAPIResponse struct { - model.CommonResponse - TaobaoPictureGetResponse -} - -// 获取图片信息 成功返回结果 -type TaobaoPictureGetResponse struct { - XMLName xml.Name `xml:"picture_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 图片信息列表 - Pictures []Picture `json:"pictures,omitempty" xml:"pictures>picture,omitempty"` -} diff --git a/model/media/TaobaoPictureIsreferencedGetAPIRequest.go b/model/media/TaobaoPictureIsreferencedGetAPIRequest.go new file mode 100644 index 0000000000..d6edd00e9d --- /dev/null +++ b/model/media/TaobaoPictureIsreferencedGetAPIRequest.go @@ -0,0 +1,52 @@ +package media + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +图片是否被引用 API请求 +taobao.picture.isreferenced.get + +查询图片是否被引用,被引用返回true,未被引用返回false +*/ +type TaobaoPictureIsreferencedGetAPIRequest struct { + model.Params + // 图片id + _pictureId int64 +} + +// 初始化TaobaoPictureIsreferencedGetAPIRequest对象 +func NewTaobaoPictureIsreferencedGetRequest() *TaobaoPictureIsreferencedGetAPIRequest{ + return &TaobaoPictureIsreferencedGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPictureIsreferencedGetAPIRequest) GetApiMethodName() string { + return "taobao.picture.isreferenced.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPictureIsreferencedGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PictureId Setter +// 图片id +func (r *TaobaoPictureIsreferencedGetAPIRequest) SetPictureId(_pictureId int64) error { + r._pictureId = _pictureId + r.Set("picture_id", _pictureId) + return nil +} + +// PictureId Getter +func (r TaobaoPictureIsreferencedGetAPIRequest) GetPictureId() int64 { + return r._pictureId +} diff --git a/model/media/TaobaoPictureIsreferencedGetAPIResponse.go b/model/media/TaobaoPictureIsreferencedGetAPIResponse.go new file mode 100644 index 0000000000..8895b0d4bd --- /dev/null +++ b/model/media/TaobaoPictureIsreferencedGetAPIResponse.go @@ -0,0 +1,27 @@ +package media + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +图片是否被引用 API返回值 +taobao.picture.isreferenced.get + +查询图片是否被引用,被引用返回true,未被引用返回false +*/ +type TaobaoPictureIsreferencedGetAPIResponse struct { + model.CommonResponse + TaobaoPictureIsreferencedGetAPIResponseModel +} + +// 图片是否被引用 成功返回结果 +type TaobaoPictureIsreferencedGetAPIResponseModel struct { + XMLName xml.Name `xml:"picture_isreferenced_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 图片是否被引用 + IsReferenced bool `json:"is_referenced,omitempty" xml:"is_referenced,omitempty"` +} diff --git a/model/media/TaobaoPictureIsreferencedGetResponse.go b/model/media/TaobaoPictureIsreferencedGetResponse.go deleted file mode 100644 index 9715927fbb..0000000000 --- a/model/media/TaobaoPictureIsreferencedGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package media - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -图片是否被引用 API返回值 -taobao.picture.isreferenced.get - -查询图片是否被引用,被引用返回true,未被引用返回false -*/ -type TaobaoPictureIsreferencedGetAPIResponse struct { - model.CommonResponse - TaobaoPictureIsreferencedGetResponse -} - -// 图片是否被引用 成功返回结果 -type TaobaoPictureIsreferencedGetResponse struct { - XMLName xml.Name `xml:"picture_isreferenced_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 图片是否被引用 - IsReferenced bool `json:"is_referenced,omitempty" xml:"is_referenced,omitempty"` -} diff --git a/model/media/TaobaoPicturePicturesCountAPIRequest.go b/model/media/TaobaoPicturePicturesCountAPIRequest.go new file mode 100644 index 0000000000..7bd489f095 --- /dev/null +++ b/model/media/TaobaoPicturePicturesCountAPIRequest.go @@ -0,0 +1,150 @@ +package media + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +图片总数查询 API请求 +taobao.picture.pictures.count + +图片总数查询 +*/ +type TaobaoPicturePicturesCountAPIRequest struct { + model.Params + // 查询上传开始时间点,格式:yyyy-MM-dd HH:mm:ss + _startDate string + // 图片分类 + _pictureCategoryId int64 + // 文件名 + _title string + // 查询上传结束时间点,格式:yyyy-MM-dd HH:mm:ss + _endDate string + // 图片被修改的时间点,格式:yyyy-MM-dd HH:mm:ss。查询此修改时间点之后到目前的图片。 + _startModifiedDate string + // 是否删除,undeleted代表没有删除,deleted表示删除 + _deleted string + // 图片ID + _pictureId int64 + // 图片使用,如果是pc宝贝detail使用,设置为client:computer,查询出来的图片是符合pc的宝贝detail显示的如果是手机宝贝detail使用,设置为client:phone,查询出来的图片是符合手机的宝贝detail显示的,默认值是全部 + _clientType string +} + +// 初始化TaobaoPicturePicturesCountAPIRequest对象 +func NewTaobaoPicturePicturesCountRequest() *TaobaoPicturePicturesCountAPIRequest{ + return &TaobaoPicturePicturesCountAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPicturePicturesCountAPIRequest) GetApiMethodName() string { + return "taobao.picture.pictures.count" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPicturePicturesCountAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartDate Setter +// 查询上传开始时间点,格式:yyyy-MM-dd HH:mm:ss +func (r *TaobaoPicturePicturesCountAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoPicturePicturesCountAPIRequest) GetStartDate() string { + return r._startDate +} +// PictureCategoryId Setter +// 图片分类 +func (r *TaobaoPicturePicturesCountAPIRequest) SetPictureCategoryId(_pictureCategoryId int64) error { + r._pictureCategoryId = _pictureCategoryId + r.Set("picture_category_id", _pictureCategoryId) + return nil +} + +// PictureCategoryId Getter +func (r TaobaoPicturePicturesCountAPIRequest) GetPictureCategoryId() int64 { + return r._pictureCategoryId +} +// Title Setter +// 文件名 +func (r *TaobaoPicturePicturesCountAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoPicturePicturesCountAPIRequest) GetTitle() string { + return r._title +} +// EndDate Setter +// 查询上传结束时间点,格式:yyyy-MM-dd HH:mm:ss +func (r *TaobaoPicturePicturesCountAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoPicturePicturesCountAPIRequest) GetEndDate() string { + return r._endDate +} +// StartModifiedDate Setter +// 图片被修改的时间点,格式:yyyy-MM-dd HH:mm:ss。查询此修改时间点之后到目前的图片。 +func (r *TaobaoPicturePicturesCountAPIRequest) SetStartModifiedDate(_startModifiedDate string) error { + r._startModifiedDate = _startModifiedDate + r.Set("start_modified_date", _startModifiedDate) + return nil +} + +// StartModifiedDate Getter +func (r TaobaoPicturePicturesCountAPIRequest) GetStartModifiedDate() string { + return r._startModifiedDate +} +// Deleted Setter +// 是否删除,undeleted代表没有删除,deleted表示删除 +func (r *TaobaoPicturePicturesCountAPIRequest) SetDeleted(_deleted string) error { + r._deleted = _deleted + r.Set("deleted", _deleted) + return nil +} + +// Deleted Getter +func (r TaobaoPicturePicturesCountAPIRequest) GetDeleted() string { + return r._deleted +} +// PictureId Setter +// 图片ID +func (r *TaobaoPicturePicturesCountAPIRequest) SetPictureId(_pictureId int64) error { + r._pictureId = _pictureId + r.Set("picture_id", _pictureId) + return nil +} + +// PictureId Getter +func (r TaobaoPicturePicturesCountAPIRequest) GetPictureId() int64 { + return r._pictureId +} +// ClientType Setter +// 图片使用,如果是pc宝贝detail使用,设置为client:computer,查询出来的图片是符合pc的宝贝detail显示的如果是手机宝贝detail使用,设置为client:phone,查询出来的图片是符合手机的宝贝detail显示的,默认值是全部 +func (r *TaobaoPicturePicturesCountAPIRequest) SetClientType(_clientType string) error { + r._clientType = _clientType + r.Set("client_type", _clientType) + return nil +} + +// ClientType Getter +func (r TaobaoPicturePicturesCountAPIRequest) GetClientType() string { + return r._clientType +} diff --git a/model/media/TaobaoPicturePicturesCountAPIResponse.go b/model/media/TaobaoPicturePicturesCountAPIResponse.go new file mode 100644 index 0000000000..5afa56d54b --- /dev/null +++ b/model/media/TaobaoPicturePicturesCountAPIResponse.go @@ -0,0 +1,27 @@ +package media + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +图片总数查询 API返回值 +taobao.picture.pictures.count + +图片总数查询 +*/ +type TaobaoPicturePicturesCountAPIResponse struct { + model.CommonResponse + TaobaoPicturePicturesCountAPIResponseModel +} + +// 图片总数查询 成功返回结果 +type TaobaoPicturePicturesCountAPIResponseModel struct { + XMLName xml.Name `xml:"picture_pictures_count_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询的文件总数 + Totals int64 `json:"totals,omitempty" xml:"totals,omitempty"` +} diff --git a/model/media/TaobaoPicturePicturesCountResponse.go b/model/media/TaobaoPicturePicturesCountResponse.go deleted file mode 100644 index 49cd3e9d0f..0000000000 --- a/model/media/TaobaoPicturePicturesCountResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package media - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -图片总数查询 API返回值 -taobao.picture.pictures.count - -图片总数查询 -*/ -type TaobaoPicturePicturesCountAPIResponse struct { - model.CommonResponse - TaobaoPicturePicturesCountResponse -} - -// 图片总数查询 成功返回结果 -type TaobaoPicturePicturesCountResponse struct { - XMLName xml.Name `xml:"picture_pictures_count_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询的文件总数 - Totals int64 `json:"totals,omitempty" xml:"totals,omitempty"` -} diff --git a/model/media/TaobaoPicturePicturesGetAPIRequest.go b/model/media/TaobaoPicturePicturesGetAPIRequest.go new file mode 100644 index 0000000000..ad69259a31 --- /dev/null +++ b/model/media/TaobaoPicturePicturesGetAPIRequest.go @@ -0,0 +1,220 @@ +package media + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +图片获取 API请求 +taobao.picture.pictures.get + +图片空间对外的图片获取接口,该接口只针对分页获取,获取某一页的图片,该接口不支持总数的查询asd +*/ +type TaobaoPicturePicturesGetAPIRequest struct { + model.Params + // 查询上传结束时间点,格式:yyyy-MM-dd HH:mm:ss + _startDate string + // 图片分类 + _pictureCategoryId int64 + // 图片查询结果排序,time:desc按上传时间从晚到早(默认), time:asc按上传时间从早到晚,sizes:desc按图片从大到小,sizes:asc按图片从小到大,默认time:desc + _orderBy string + // 图片标题,最大长度50字符,中英文都算一字符 + _title string + // 每页条数.每页返回最多返回100条,默认值40 + _pageSize int64 + // 结束时间 + _endDate string + // 页码.传入值为1代表第一页,传入值为2代表第二页,依此类推,默认值为1 + _currentPage int64 + // 图片被修改的时间点,格式:yyyy-MM-dd HH:mm:ss。查询此修改时间点之后到目前的图片。 + _startModifiedDate string + // 是否删除,deleted代表没有删除 + _deleted string + // 图片ID + _pictureId int64 + // 图片使用,如果是pc宝贝detail使用,设置为client:computer,查询出来的图片是符合pc的宝贝detail显示的如果是手机宝贝detail使用,设置为client:phone,查询出来的图片是符合手机的宝贝detail显示的,默认值是全部 + _clientType string + // 图片url查询接口 + _urls string + // 是否获取https的链接 + _isHttps bool +} + +// 初始化TaobaoPicturePicturesGetAPIRequest对象 +func NewTaobaoPicturePicturesGetRequest() *TaobaoPicturePicturesGetAPIRequest{ + return &TaobaoPicturePicturesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPicturePicturesGetAPIRequest) GetApiMethodName() string { + return "taobao.picture.pictures.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPicturePicturesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartDate Setter +// 查询上传结束时间点,格式:yyyy-MM-dd HH:mm:ss +func (r *TaobaoPicturePicturesGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoPicturePicturesGetAPIRequest) GetStartDate() string { + return r._startDate +} +// PictureCategoryId Setter +// 图片分类 +func (r *TaobaoPicturePicturesGetAPIRequest) SetPictureCategoryId(_pictureCategoryId int64) error { + r._pictureCategoryId = _pictureCategoryId + r.Set("picture_category_id", _pictureCategoryId) + return nil +} + +// PictureCategoryId Getter +func (r TaobaoPicturePicturesGetAPIRequest) GetPictureCategoryId() int64 { + return r._pictureCategoryId +} +// OrderBy Setter +// 图片查询结果排序,time:desc按上传时间从晚到早(默认), time:asc按上传时间从早到晚,sizes:desc按图片从大到小,sizes:asc按图片从小到大,默认time:desc +func (r *TaobaoPicturePicturesGetAPIRequest) SetOrderBy(_orderBy string) error { + r._orderBy = _orderBy + r.Set("order_by", _orderBy) + return nil +} + +// OrderBy Getter +func (r TaobaoPicturePicturesGetAPIRequest) GetOrderBy() string { + return r._orderBy +} +// Title Setter +// 图片标题,最大长度50字符,中英文都算一字符 +func (r *TaobaoPicturePicturesGetAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoPicturePicturesGetAPIRequest) GetTitle() string { + return r._title +} +// PageSize Setter +// 每页条数.每页返回最多返回100条,默认值40 +func (r *TaobaoPicturePicturesGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoPicturePicturesGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// EndDate Setter +// 结束时间 +func (r *TaobaoPicturePicturesGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoPicturePicturesGetAPIRequest) GetEndDate() string { + return r._endDate +} +// CurrentPage Setter +// 页码.传入值为1代表第一页,传入值为2代表第二页,依此类推,默认值为1 +func (r *TaobaoPicturePicturesGetAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TaobaoPicturePicturesGetAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// StartModifiedDate Setter +// 图片被修改的时间点,格式:yyyy-MM-dd HH:mm:ss。查询此修改时间点之后到目前的图片。 +func (r *TaobaoPicturePicturesGetAPIRequest) SetStartModifiedDate(_startModifiedDate string) error { + r._startModifiedDate = _startModifiedDate + r.Set("start_modified_date", _startModifiedDate) + return nil +} + +// StartModifiedDate Getter +func (r TaobaoPicturePicturesGetAPIRequest) GetStartModifiedDate() string { + return r._startModifiedDate +} +// Deleted Setter +// 是否删除,deleted代表没有删除 +func (r *TaobaoPicturePicturesGetAPIRequest) SetDeleted(_deleted string) error { + r._deleted = _deleted + r.Set("deleted", _deleted) + return nil +} + +// Deleted Getter +func (r TaobaoPicturePicturesGetAPIRequest) GetDeleted() string { + return r._deleted +} +// PictureId Setter +// 图片ID +func (r *TaobaoPicturePicturesGetAPIRequest) SetPictureId(_pictureId int64) error { + r._pictureId = _pictureId + r.Set("picture_id", _pictureId) + return nil +} + +// PictureId Getter +func (r TaobaoPicturePicturesGetAPIRequest) GetPictureId() int64 { + return r._pictureId +} +// ClientType Setter +// 图片使用,如果是pc宝贝detail使用,设置为client:computer,查询出来的图片是符合pc的宝贝detail显示的如果是手机宝贝detail使用,设置为client:phone,查询出来的图片是符合手机的宝贝detail显示的,默认值是全部 +func (r *TaobaoPicturePicturesGetAPIRequest) SetClientType(_clientType string) error { + r._clientType = _clientType + r.Set("client_type", _clientType) + return nil +} + +// ClientType Getter +func (r TaobaoPicturePicturesGetAPIRequest) GetClientType() string { + return r._clientType +} +// Urls Setter +// 图片url查询接口 +func (r *TaobaoPicturePicturesGetAPIRequest) SetUrls(_urls string) error { + r._urls = _urls + r.Set("urls", _urls) + return nil +} + +// Urls Getter +func (r TaobaoPicturePicturesGetAPIRequest) GetUrls() string { + return r._urls +} +// IsHttps Setter +// 是否获取https的链接 +func (r *TaobaoPicturePicturesGetAPIRequest) SetIsHttps(_isHttps bool) error { + r._isHttps = _isHttps + r.Set("is_https", _isHttps) + return nil +} + +// IsHttps Getter +func (r TaobaoPicturePicturesGetAPIRequest) GetIsHttps() bool { + return r._isHttps +} diff --git a/model/media/TaobaoPicturePicturesGetAPIResponse.go b/model/media/TaobaoPicturePicturesGetAPIResponse.go new file mode 100644 index 0000000000..b20aa57bab --- /dev/null +++ b/model/media/TaobaoPicturePicturesGetAPIResponse.go @@ -0,0 +1,27 @@ +package media + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +图片获取 API返回值 +taobao.picture.pictures.get + +图片空间对外的图片获取接口,该接口只针对分页获取,获取某一页的图片,该接口不支持总数的查询asd +*/ +type TaobaoPicturePicturesGetAPIResponse struct { + model.CommonResponse + TaobaoPicturePicturesGetAPIResponseModel +} + +// 图片获取 成功返回结果 +type TaobaoPicturePicturesGetAPIResponseModel struct { + XMLName xml.Name `xml:"picture_pictures_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 图片空间图片数据对象 + Pictures []Picture `json:"pictures,omitempty" xml:"pictures>picture,omitempty"` +} diff --git a/model/media/TaobaoPicturePicturesGetResponse.go b/model/media/TaobaoPicturePicturesGetResponse.go deleted file mode 100644 index 5dd5670df1..0000000000 --- a/model/media/TaobaoPicturePicturesGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package media - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -图片获取 API返回值 -taobao.picture.pictures.get - -图片空间对外的图片获取接口,该接口只针对分页获取,获取某一页的图片,该接口不支持总数的查询asd -*/ -type TaobaoPicturePicturesGetAPIResponse struct { - model.CommonResponse - TaobaoPicturePicturesGetResponse -} - -// 图片获取 成功返回结果 -type TaobaoPicturePicturesGetResponse struct { - XMLName xml.Name `xml:"picture_pictures_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 图片空间图片数据对象 - Pictures []Picture `json:"pictures,omitempty" xml:"pictures>picture,omitempty"` -} diff --git a/model/media/TaobaoPictureReplaceAPIRequest.go b/model/media/TaobaoPictureReplaceAPIRequest.go new file mode 100644 index 0000000000..89329ab972 --- /dev/null +++ b/model/media/TaobaoPictureReplaceAPIRequest.go @@ -0,0 +1,66 @@ +package media + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +替换图片 API请求 +taobao.picture.replace + +替换一张图片,只替换图片数据,图片名称,图片分类等保持不变。 +*/ +type TaobaoPictureReplaceAPIRequest struct { + model.Params + // 要替换的图片的id,必须大于0 + _pictureId int64 + // 图片二进制文件流,不能为空,允许png、jpg、gif图片格式 + _imageData *model.File +} + +// 初始化TaobaoPictureReplaceAPIRequest对象 +func NewTaobaoPictureReplaceRequest() *TaobaoPictureReplaceAPIRequest{ + return &TaobaoPictureReplaceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPictureReplaceAPIRequest) GetApiMethodName() string { + return "taobao.picture.replace" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPictureReplaceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PictureId Setter +// 要替换的图片的id,必须大于0 +func (r *TaobaoPictureReplaceAPIRequest) SetPictureId(_pictureId int64) error { + r._pictureId = _pictureId + r.Set("picture_id", _pictureId) + return nil +} + +// PictureId Getter +func (r TaobaoPictureReplaceAPIRequest) GetPictureId() int64 { + return r._pictureId +} +// ImageData Setter +// 图片二进制文件流,不能为空,允许png、jpg、gif图片格式 +func (r *TaobaoPictureReplaceAPIRequest) SetImageData(_imageData *model.File) error { + r._imageData = _imageData + r.Set("image_data", _imageData) + return nil +} + +// ImageData Getter +func (r TaobaoPictureReplaceAPIRequest) GetImageData() *model.File { + return r._imageData +} diff --git a/model/media/TaobaoPictureReplaceAPIResponse.go b/model/media/TaobaoPictureReplaceAPIResponse.go new file mode 100644 index 0000000000..4390a3196f --- /dev/null +++ b/model/media/TaobaoPictureReplaceAPIResponse.go @@ -0,0 +1,27 @@ +package media + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +替换图片 API返回值 +taobao.picture.replace + +替换一张图片,只替换图片数据,图片名称,图片分类等保持不变。 +*/ +type TaobaoPictureReplaceAPIResponse struct { + model.CommonResponse + TaobaoPictureReplaceAPIResponseModel +} + +// 替换图片 成功返回结果 +type TaobaoPictureReplaceAPIResponseModel struct { + XMLName xml.Name `xml:"picture_replace_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 图片替换是否成功 + Done bool `json:"done,omitempty" xml:"done,omitempty"` +} diff --git a/model/media/TaobaoPictureReplaceResponse.go b/model/media/TaobaoPictureReplaceResponse.go deleted file mode 100644 index b38f53cc03..0000000000 --- a/model/media/TaobaoPictureReplaceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package media - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -替换图片 API返回值 -taobao.picture.replace - -替换一张图片,只替换图片数据,图片名称,图片分类等保持不变。 -*/ -type TaobaoPictureReplaceAPIResponse struct { - model.CommonResponse - TaobaoPictureReplaceResponse -} - -// 替换图片 成功返回结果 -type TaobaoPictureReplaceResponse struct { - XMLName xml.Name `xml:"picture_replace_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 图片替换是否成功 - Done bool `json:"done,omitempty" xml:"done,omitempty"` -} diff --git a/model/media/TaobaoPictureUpdateAPIRequest.go b/model/media/TaobaoPictureUpdateAPIRequest.go new file mode 100644 index 0000000000..15e491059e --- /dev/null +++ b/model/media/TaobaoPictureUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package media + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改图片名字 API请求 +taobao.picture.update + +修改指定图片的图片名 +*/ +type TaobaoPictureUpdateAPIRequest struct { + model.Params + // 要更改名字的图片的id + _pictureId int64 + // 新的图片名,最大长度50字符,不能为空 + _newName string +} + +// 初始化TaobaoPictureUpdateAPIRequest对象 +func NewTaobaoPictureUpdateRequest() *TaobaoPictureUpdateAPIRequest{ + return &TaobaoPictureUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPictureUpdateAPIRequest) GetApiMethodName() string { + return "taobao.picture.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPictureUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PictureId Setter +// 要更改名字的图片的id +func (r *TaobaoPictureUpdateAPIRequest) SetPictureId(_pictureId int64) error { + r._pictureId = _pictureId + r.Set("picture_id", _pictureId) + return nil +} + +// PictureId Getter +func (r TaobaoPictureUpdateAPIRequest) GetPictureId() int64 { + return r._pictureId +} +// NewName Setter +// 新的图片名,最大长度50字符,不能为空 +func (r *TaobaoPictureUpdateAPIRequest) SetNewName(_newName string) error { + r._newName = _newName + r.Set("new_name", _newName) + return nil +} + +// NewName Getter +func (r TaobaoPictureUpdateAPIRequest) GetNewName() string { + return r._newName +} diff --git a/model/media/TaobaoPictureUpdateAPIResponse.go b/model/media/TaobaoPictureUpdateAPIResponse.go new file mode 100644 index 0000000000..e522ae9294 --- /dev/null +++ b/model/media/TaobaoPictureUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package media + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改图片名字 API返回值 +taobao.picture.update + +修改指定图片的图片名 +*/ +type TaobaoPictureUpdateAPIResponse struct { + model.CommonResponse + TaobaoPictureUpdateAPIResponseModel +} + +// 修改图片名字 成功返回结果 +type TaobaoPictureUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"picture_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 更新是否成功 + Done bool `json:"done,omitempty" xml:"done,omitempty"` +} diff --git a/model/media/TaobaoPictureUpdateResponse.go b/model/media/TaobaoPictureUpdateResponse.go deleted file mode 100644 index a6c8b97463..0000000000 --- a/model/media/TaobaoPictureUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package media - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改图片名字 API返回值 -taobao.picture.update - -修改指定图片的图片名 -*/ -type TaobaoPictureUpdateAPIResponse struct { - model.CommonResponse - TaobaoPictureUpdateResponse -} - -// 修改图片名字 成功返回结果 -type TaobaoPictureUpdateResponse struct { - XMLName xml.Name `xml:"picture_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 更新是否成功 - Done bool `json:"done,omitempty" xml:"done,omitempty"` -} diff --git a/model/media/TaobaoPictureUploadAPIRequest.go b/model/media/TaobaoPictureUploadAPIRequest.go new file mode 100644 index 0000000000..931a796f1e --- /dev/null +++ b/model/media/TaobaoPictureUploadAPIRequest.go @@ -0,0 +1,122 @@ +package media + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传单张图片 API请求 +taobao.picture.upload + +图片空间上传接口 +*/ +type TaobaoPictureUploadAPIRequest struct { + model.Params + // 图片分类ID,设置具体某个分类ID或设置0上传到默认分类,只能传入一个分类 + _pictureCategoryId int64 + // 图片二进制文件流,不能为空,允许png、jpg、gif图片格式,3M以内。 + _img *model.File + // 包括后缀名的图片标题,不能为空,如Bule.jpg,有些卖家希望图片上传后取图片文件的默认名 + _imageInputTitle string + // 图片标题,如果为空,传的图片标题就取去掉后缀名的image_input_title,超过50字符长度会截取50字符,重名会在标题末尾加"(1)";标题末尾已经有"(数字)"了,则数字加1 + _title string + // 图片上传的来源,有电脑版本宝贝发布,手机版本宝贝发布client:computer电脑版本宝贝使用,client:phone手机版本宝贝使用。注意:当client:phone时,图片限制为宽度在480-620之间,长度不能超过960,否则会报错。 + _clientType string + // 是否获取https连接 + _isHttps bool +} + +// 初始化TaobaoPictureUploadAPIRequest对象 +func NewTaobaoPictureUploadRequest() *TaobaoPictureUploadAPIRequest{ + return &TaobaoPictureUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPictureUploadAPIRequest) GetApiMethodName() string { + return "taobao.picture.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPictureUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PictureCategoryId Setter +// 图片分类ID,设置具体某个分类ID或设置0上传到默认分类,只能传入一个分类 +func (r *TaobaoPictureUploadAPIRequest) SetPictureCategoryId(_pictureCategoryId int64) error { + r._pictureCategoryId = _pictureCategoryId + r.Set("picture_category_id", _pictureCategoryId) + return nil +} + +// PictureCategoryId Getter +func (r TaobaoPictureUploadAPIRequest) GetPictureCategoryId() int64 { + return r._pictureCategoryId +} +// Img Setter +// 图片二进制文件流,不能为空,允许png、jpg、gif图片格式,3M以内。 +func (r *TaobaoPictureUploadAPIRequest) SetImg(_img *model.File) error { + r._img = _img + r.Set("img", _img) + return nil +} + +// Img Getter +func (r TaobaoPictureUploadAPIRequest) GetImg() *model.File { + return r._img +} +// ImageInputTitle Setter +// 包括后缀名的图片标题,不能为空,如Bule.jpg,有些卖家希望图片上传后取图片文件的默认名 +func (r *TaobaoPictureUploadAPIRequest) SetImageInputTitle(_imageInputTitle string) error { + r._imageInputTitle = _imageInputTitle + r.Set("image_input_title", _imageInputTitle) + return nil +} + +// ImageInputTitle Getter +func (r TaobaoPictureUploadAPIRequest) GetImageInputTitle() string { + return r._imageInputTitle +} +// Title Setter +// 图片标题,如果为空,传的图片标题就取去掉后缀名的image_input_title,超过50字符长度会截取50字符,重名会在标题末尾加"(1)";标题末尾已经有"(数字)"了,则数字加1 +func (r *TaobaoPictureUploadAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoPictureUploadAPIRequest) GetTitle() string { + return r._title +} +// ClientType Setter +// 图片上传的来源,有电脑版本宝贝发布,手机版本宝贝发布client:computer电脑版本宝贝使用,client:phone手机版本宝贝使用。注意:当client:phone时,图片限制为宽度在480-620之间,长度不能超过960,否则会报错。 +func (r *TaobaoPictureUploadAPIRequest) SetClientType(_clientType string) error { + r._clientType = _clientType + r.Set("client_type", _clientType) + return nil +} + +// ClientType Getter +func (r TaobaoPictureUploadAPIRequest) GetClientType() string { + return r._clientType +} +// IsHttps Setter +// 是否获取https连接 +func (r *TaobaoPictureUploadAPIRequest) SetIsHttps(_isHttps bool) error { + r._isHttps = _isHttps + r.Set("is_https", _isHttps) + return nil +} + +// IsHttps Getter +func (r TaobaoPictureUploadAPIRequest) GetIsHttps() bool { + return r._isHttps +} diff --git a/model/media/TaobaoPictureUploadAPIResponse.go b/model/media/TaobaoPictureUploadAPIResponse.go new file mode 100644 index 0000000000..317f1cf303 --- /dev/null +++ b/model/media/TaobaoPictureUploadAPIResponse.go @@ -0,0 +1,27 @@ +package media + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传单张图片 API返回值 +taobao.picture.upload + +图片空间上传接口 +*/ +type TaobaoPictureUploadAPIResponse struct { + model.CommonResponse + TaobaoPictureUploadAPIResponseModel +} + +// 上传单张图片 成功返回结果 +type TaobaoPictureUploadAPIResponseModel struct { + XMLName xml.Name `xml:"picture_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 当前上传的一张图片信息 + Picture *Picture `json:"picture,omitempty" xml:"picture,omitempty"` +} diff --git a/model/media/TaobaoPictureUploadResponse.go b/model/media/TaobaoPictureUploadResponse.go deleted file mode 100644 index e86d5e1c70..0000000000 --- a/model/media/TaobaoPictureUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package media - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传单张图片 API返回值 -taobao.picture.upload - -图片空间上传接口 -*/ -type TaobaoPictureUploadAPIResponse struct { - model.CommonResponse - TaobaoPictureUploadResponse -} - -// 上传单张图片 成功返回结果 -type TaobaoPictureUploadResponse struct { - XMLName xml.Name `xml:"picture_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 当前上传的一张图片信息 - Picture *Picture `json:"picture,omitempty" xml:"picture,omitempty"` -} diff --git a/model/media/TaobaoPictureUserinfoGetAPIRequest.go b/model/media/TaobaoPictureUserinfoGetAPIRequest.go new file mode 100644 index 0000000000..87d31ca972 --- /dev/null +++ b/model/media/TaobaoPictureUserinfoGetAPIRequest.go @@ -0,0 +1,38 @@ +package media + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询图片空间用户的信息 API请求 +taobao.picture.userinfo.get + +查询用户的图片空间使用信息,包括:订购量,已使用容量,免费容量,总的可使用容量,订购有效期,剩余容量 +*/ +type TaobaoPictureUserinfoGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoPictureUserinfoGetAPIRequest对象 +func NewTaobaoPictureUserinfoGetRequest() *TaobaoPictureUserinfoGetAPIRequest{ + return &TaobaoPictureUserinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPictureUserinfoGetAPIRequest) GetApiMethodName() string { + return "taobao.picture.userinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPictureUserinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/media/TaobaoPictureUserinfoGetAPIResponse.go b/model/media/TaobaoPictureUserinfoGetAPIResponse.go new file mode 100644 index 0000000000..73d9a3fd89 --- /dev/null +++ b/model/media/TaobaoPictureUserinfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package media + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询图片空间用户的信息 API返回值 +taobao.picture.userinfo.get + +查询用户的图片空间使用信息,包括:订购量,已使用容量,免费容量,总的可使用容量,订购有效期,剩余容量 +*/ +type TaobaoPictureUserinfoGetAPIResponse struct { + model.CommonResponse + TaobaoPictureUserinfoGetAPIResponseModel +} + +// 查询图片空间用户的信息 成功返回结果 +type TaobaoPictureUserinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"picture_userinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 用户使用图片空间的信息 + UserInfo *UserInfo `json:"user_info,omitempty" xml:"user_info,omitempty"` +} diff --git a/model/media/TaobaoPictureUserinfoGetResponse.go b/model/media/TaobaoPictureUserinfoGetResponse.go deleted file mode 100644 index ad37fe9fa2..0000000000 --- a/model/media/TaobaoPictureUserinfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package media - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询图片空间用户的信息 API返回值 -taobao.picture.userinfo.get - -查询用户的图片空间使用信息,包括:订购量,已使用容量,免费容量,总的可使用容量,订购有效期,剩余容量 -*/ -type TaobaoPictureUserinfoGetAPIResponse struct { - model.CommonResponse - TaobaoPictureUserinfoGetResponse -} - -// 查询图片空间用户的信息 成功返回结果 -type TaobaoPictureUserinfoGetResponse struct { - XMLName xml.Name `xml:"picture_userinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 用户使用图片空间的信息 - UserInfo *UserInfo `json:"user_info,omitempty" xml:"user_info,omitempty"` -} diff --git a/model/media/TaobaoVasServiceGetServTimesAPIRequest.go b/model/media/TaobaoVasServiceGetServTimesAPIRequest.go new file mode 100644 index 0000000000..f6ae5698e5 --- /dev/null +++ b/model/media/TaobaoVasServiceGetServTimesAPIRequest.go @@ -0,0 +1,52 @@ +package media + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询某个用户图片空间的使用情况 API请求 +taobao.vas.service.getServTimes + +查询某个用户图片空间的使用情况 +*/ +type TaobaoVasServiceGetServTimesAPIRequest struct { + model.Params + // 服务编码 + _servCode string +} + +// 初始化TaobaoVasServiceGetServTimesAPIRequest对象 +func NewTaobaoVasServiceGetServTimesRequest() *TaobaoVasServiceGetServTimesAPIRequest{ + return &TaobaoVasServiceGetServTimesAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVasServiceGetServTimesAPIRequest) GetApiMethodName() string { + return "taobao.vas.service.getServTimes" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVasServiceGetServTimesAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServCode Setter +// 服务编码 +func (r *TaobaoVasServiceGetServTimesAPIRequest) SetServCode(_servCode string) error { + r._servCode = _servCode + r.Set("serv_code", _servCode) + return nil +} + +// ServCode Getter +func (r TaobaoVasServiceGetServTimesAPIRequest) GetServCode() string { + return r._servCode +} diff --git a/model/media/TaobaoVasServiceGetServTimesAPIResponse.go b/model/media/TaobaoVasServiceGetServTimesAPIResponse.go new file mode 100644 index 0000000000..4c4edd55a9 --- /dev/null +++ b/model/media/TaobaoVasServiceGetServTimesAPIResponse.go @@ -0,0 +1,29 @@ +package media + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询某个用户图片空间的使用情况 API返回值 +taobao.vas.service.getServTimes + +查询某个用户图片空间的使用情况 +*/ +type TaobaoVasServiceGetServTimesAPIResponse struct { + model.CommonResponse + TaobaoVasServiceGetServTimesAPIResponseModel +} + +// 查询某个用户图片空间的使用情况 成功返回结果 +type TaobaoVasServiceGetServTimesAPIResponseModel struct { + XMLName xml.Name `xml:"vas_service_getServTimes_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 总次数(容量) + TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` + // 剩余次数(容量) + LeftNum int64 `json:"left_num,omitempty" xml:"left_num,omitempty"` +} diff --git a/model/media/TaobaoVasServiceGetServTimesResponse.go b/model/media/TaobaoVasServiceGetServTimesResponse.go deleted file mode 100644 index a40281241c..0000000000 --- a/model/media/TaobaoVasServiceGetServTimesResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package media - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询某个用户图片空间的使用情况 API返回值 -taobao.vas.service.getServTimes - -查询某个用户图片空间的使用情况 -*/ -type TaobaoVasServiceGetServTimesAPIResponse struct { - model.CommonResponse - TaobaoVasServiceGetServTimesResponse -} - -// 查询某个用户图片空间的使用情况 成功返回结果 -type TaobaoVasServiceGetServTimesResponse struct { - XMLName xml.Name `xml:"vas_service_getServTimes_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 总次数(容量) - TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` - // 剩余次数(容量) - LeftNum int64 `json:"left_num,omitempty" xml:"left_num,omitempty"` -} diff --git a/model/medicalbase/AlibabaAlihealthMedicalbaseOrderStatusSyncAPIRequest.go b/model/medicalbase/AlibabaAlihealthMedicalbaseOrderStatusSyncAPIRequest.go new file mode 100644 index 0000000000..bf87875d03 --- /dev/null +++ b/model/medicalbase/AlibabaAlihealthMedicalbaseOrderStatusSyncAPIRequest.go @@ -0,0 +1,52 @@ +package medicalbase + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +号源直连订单状态同步接口 API请求 +alibaba.alihealth.medicalbase.order.status.sync + +互联网医院isv批量通过接口批量导入 +*/ +type AlibabaAlihealthMedicalbaseOrderStatusSyncAPIRequest struct { + model.Params + // 订单信息 + _orderlSyncDTO *OrderlSyncDto +} + +// 初始化AlibabaAlihealthMedicalbaseOrderStatusSyncAPIRequest对象 +func NewAlibabaAlihealthMedicalbaseOrderStatusSyncRequest() *AlibabaAlihealthMedicalbaseOrderStatusSyncAPIRequest{ + return &AlibabaAlihealthMedicalbaseOrderStatusSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMedicalbaseOrderStatusSyncAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.medicalbase.order.status.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMedicalbaseOrderStatusSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderlSyncDTO Setter +// 订单信息 +func (r *AlibabaAlihealthMedicalbaseOrderStatusSyncAPIRequest) SetOrderlSyncDTO(_orderlSyncDTO *OrderlSyncDto) error { + r._orderlSyncDTO = _orderlSyncDTO + r.Set("orderl_sync_d_t_o", _orderlSyncDTO) + return nil +} + +// OrderlSyncDTO Getter +func (r AlibabaAlihealthMedicalbaseOrderStatusSyncAPIRequest) GetOrderlSyncDTO() *OrderlSyncDto { + return r._orderlSyncDTO +} diff --git a/model/medicalbase/AlibabaAlihealthMedicalbaseOrderStatusSyncAPIResponse.go b/model/medicalbase/AlibabaAlihealthMedicalbaseOrderStatusSyncAPIResponse.go new file mode 100644 index 0000000000..9d05ae2770 --- /dev/null +++ b/model/medicalbase/AlibabaAlihealthMedicalbaseOrderStatusSyncAPIResponse.go @@ -0,0 +1,27 @@ +package medicalbase + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +号源直连订单状态同步接口 API返回值 +alibaba.alihealth.medicalbase.order.status.sync + +互联网医院isv批量通过接口批量导入 +*/ +type AlibabaAlihealthMedicalbaseOrderStatusSyncAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMedicalbaseOrderStatusSyncAPIResponseModel +} + +// 号源直连订单状态同步接口 成功返回结果 +type AlibabaAlihealthMedicalbaseOrderStatusSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_medicalbase_order_status_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和三方交互最外层model对象 + Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/medicalbase/AlibabaAlihealthMedicalbaseOrderStatusSyncResponse.go b/model/medicalbase/AlibabaAlihealthMedicalbaseOrderStatusSyncResponse.go deleted file mode 100644 index 2ee53e4685..0000000000 --- a/model/medicalbase/AlibabaAlihealthMedicalbaseOrderStatusSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package medicalbase - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -号源直连订单状态同步接口 API返回值 -alibaba.alihealth.medicalbase.order.status.sync - -互联网医院isv批量通过接口批量导入 -*/ -type AlibabaAlihealthMedicalbaseOrderStatusSyncAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMedicalbaseOrderStatusSyncResponse -} - -// 号源直连订单状态同步接口 成功返回结果 -type AlibabaAlihealthMedicalbaseOrderStatusSyncResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_medicalbase_order_status_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和三方交互最外层model对象 - Result *TopResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mei/ResultDto.go b/model/mei/ResultDto.go new file mode 100644 index 0000000000..640678cab4 --- /dev/null +++ b/model/mei/ResultDto.go @@ -0,0 +1,13 @@ +package mei + +// ResultDto +type ResultDto struct { + // total + Total int64 `json:"total,omitempty" xml:"total,omitempty"` + // result + Result *MemberAccountDto `json:"result,omitempty" xml:"result,omitempty"` + // code + Code string `json:"code,omitempty" xml:"code,omitempty"` + // msg + Msg string `json:"msg,omitempty" xml:"msg,omitempty"` +} diff --git a/model/mei/TmallCrmMemberFrontUnbindAPIRequest.go b/model/mei/TmallCrmMemberFrontUnbindAPIRequest.go new file mode 100644 index 0000000000..e2335c8512 --- /dev/null +++ b/model/mei/TmallCrmMemberFrontUnbindAPIRequest.go @@ -0,0 +1,52 @@ +package mei + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌会员解绑 API请求 +tmall.crm.member.front.unbind + +品牌会员解绑功能 +*/ +type TmallCrmMemberFrontUnbindAPIRequest struct { + model.Params + // 会员昵称 + _userNick string +} + +// 初始化TmallCrmMemberFrontUnbindAPIRequest对象 +func NewTmallCrmMemberFrontUnbindRequest() *TmallCrmMemberFrontUnbindAPIRequest{ + return &TmallCrmMemberFrontUnbindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCrmMemberFrontUnbindAPIRequest) GetApiMethodName() string { + return "tmall.crm.member.front.unbind" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCrmMemberFrontUnbindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserNick Setter +// 会员昵称 +func (r *TmallCrmMemberFrontUnbindAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r TmallCrmMemberFrontUnbindAPIRequest) GetUserNick() string { + return r._userNick +} diff --git a/model/mei/TmallCrmMemberFrontUnbindAPIResponse.go b/model/mei/TmallCrmMemberFrontUnbindAPIResponse.go new file mode 100644 index 0000000000..e83e84295b --- /dev/null +++ b/model/mei/TmallCrmMemberFrontUnbindAPIResponse.go @@ -0,0 +1,27 @@ +package mei + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌会员解绑 API返回值 +tmall.crm.member.front.unbind + +品牌会员解绑功能 +*/ +type TmallCrmMemberFrontUnbindAPIResponse struct { + model.CommonResponse + TmallCrmMemberFrontUnbindAPIResponseModel +} + +// 品牌会员解绑 成功返回结果 +type TmallCrmMemberFrontUnbindAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_crm_member_front_unbind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口调用是否成功 + ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` +} diff --git a/model/mei/TmallCrmMemberFrontUnbindResponse.go b/model/mei/TmallCrmMemberFrontUnbindResponse.go deleted file mode 100644 index 9603ed26e7..0000000000 --- a/model/mei/TmallCrmMemberFrontUnbindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mei - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -品牌会员解绑 API返回值 -tmall.crm.member.front.unbind - -品牌会员解绑功能 -*/ -type TmallCrmMemberFrontUnbindAPIResponse struct { - model.CommonResponse - TmallCrmMemberFrontUnbindResponse -} - -// 品牌会员解绑 成功返回结果 -type TmallCrmMemberFrontUnbindResponse struct { - XMLName xml.Name `xml:"tmall_crm_member_front_unbind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口调用是否成功 - ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` -} diff --git a/model/mei/TmallCrmMemberPointChangeAPIRequest.go b/model/mei/TmallCrmMemberPointChangeAPIRequest.go new file mode 100644 index 0000000000..7a560e1a24 --- /dev/null +++ b/model/mei/TmallCrmMemberPointChangeAPIRequest.go @@ -0,0 +1,108 @@ +package mei + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +会员积分变更 API请求 +tmall.crm.member.point.change + +品牌CRM项目中,会员积分变更接口。 +*/ +type TmallCrmMemberPointChangeAPIRequest struct { + model.Params + // 更改积分数值 + _point int64 + // minus:扣减;add:累加 + _type string + // 业务代码 + _bizCode string + // 业务描述 + _bizDetail string + // 用户昵称 + _userNick string +} + +// 初始化TmallCrmMemberPointChangeAPIRequest对象 +func NewTmallCrmMemberPointChangeRequest() *TmallCrmMemberPointChangeAPIRequest{ + return &TmallCrmMemberPointChangeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCrmMemberPointChangeAPIRequest) GetApiMethodName() string { + return "tmall.crm.member.point.change" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCrmMemberPointChangeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Point Setter +// 更改积分数值 +func (r *TmallCrmMemberPointChangeAPIRequest) SetPoint(_point int64) error { + r._point = _point + r.Set("point", _point) + return nil +} + +// Point Getter +func (r TmallCrmMemberPointChangeAPIRequest) GetPoint() int64 { + return r._point +} +// Type Setter +// minus:扣减;add:累加 +func (r *TmallCrmMemberPointChangeAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TmallCrmMemberPointChangeAPIRequest) GetType() string { + return r._type +} +// BizCode Setter +// 业务代码 +func (r *TmallCrmMemberPointChangeAPIRequest) SetBizCode(_bizCode string) error { + r._bizCode = _bizCode + r.Set("biz_code", _bizCode) + return nil +} + +// BizCode Getter +func (r TmallCrmMemberPointChangeAPIRequest) GetBizCode() string { + return r._bizCode +} +// BizDetail Setter +// 业务描述 +func (r *TmallCrmMemberPointChangeAPIRequest) SetBizDetail(_bizDetail string) error { + r._bizDetail = _bizDetail + r.Set("biz_detail", _bizDetail) + return nil +} + +// BizDetail Getter +func (r TmallCrmMemberPointChangeAPIRequest) GetBizDetail() string { + return r._bizDetail +} +// UserNick Setter +// 用户昵称 +func (r *TmallCrmMemberPointChangeAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r TmallCrmMemberPointChangeAPIRequest) GetUserNick() string { + return r._userNick +} diff --git a/model/mei/TmallCrmMemberPointChangeAPIResponse.go b/model/mei/TmallCrmMemberPointChangeAPIResponse.go new file mode 100644 index 0000000000..65591c22f0 --- /dev/null +++ b/model/mei/TmallCrmMemberPointChangeAPIResponse.go @@ -0,0 +1,27 @@ +package mei + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +会员积分变更 API返回值 +tmall.crm.member.point.change + +品牌CRM项目中,会员积分变更接口。 +*/ +type TmallCrmMemberPointChangeAPIResponse struct { + model.CommonResponse + TmallCrmMemberPointChangeAPIResponseModel +} + +// 会员积分变更 成功返回结果 +type TmallCrmMemberPointChangeAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_crm_member_point_change_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用是否成功 + ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` +} diff --git a/model/mei/TmallCrmMemberPointChangeResponse.go b/model/mei/TmallCrmMemberPointChangeResponse.go deleted file mode 100644 index f8f874387f..0000000000 --- a/model/mei/TmallCrmMemberPointChangeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mei - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -会员积分变更 API返回值 -tmall.crm.member.point.change - -品牌CRM项目中,会员积分变更接口。 -*/ -type TmallCrmMemberPointChangeAPIResponse struct { - model.CommonResponse - TmallCrmMemberPointChangeResponse -} - -// 会员积分变更 成功返回结果 -type TmallCrmMemberPointChangeResponse struct { - XMLName xml.Name `xml:"tmall_crm_member_point_change_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用是否成功 - ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` -} diff --git a/model/mei/TmallMeiCrmCallbackPointChangeAPIRequest.go b/model/mei/TmallMeiCrmCallbackPointChangeAPIRequest.go new file mode 100644 index 0000000000..f2b68f4b85 --- /dev/null +++ b/model/mei/TmallMeiCrmCallbackPointChangeAPIRequest.go @@ -0,0 +1,122 @@ +package mei + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌积分变更回调API API请求 +tmall.mei.crm.callback.point.change + +线下品牌积分变更消息回调API,告诉积分扣减或者累加是否成功。 +*/ +type TmallMeiCrmCallbackPointChangeAPIRequest struct { + model.Params + // 混淆会员手机号码 + _mixMobile string + // 变更记录ID + _recordId int64 + // 0:成功。1:失败 + _result int64 + // 处理失败的错误码. + _errorCode string + // 拓展信息 + _extInfo string + // 积分信息 + _point int64 +} + +// 初始化TmallMeiCrmCallbackPointChangeAPIRequest对象 +func NewTmallMeiCrmCallbackPointChangeRequest() *TmallMeiCrmCallbackPointChangeAPIRequest{ + return &TmallMeiCrmCallbackPointChangeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallMeiCrmCallbackPointChangeAPIRequest) GetApiMethodName() string { + return "tmall.mei.crm.callback.point.change" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallMeiCrmCallbackPointChangeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MixMobile Setter +// 混淆会员手机号码 +func (r *TmallMeiCrmCallbackPointChangeAPIRequest) SetMixMobile(_mixMobile string) error { + r._mixMobile = _mixMobile + r.Set("mix_mobile", _mixMobile) + return nil +} + +// MixMobile Getter +func (r TmallMeiCrmCallbackPointChangeAPIRequest) GetMixMobile() string { + return r._mixMobile +} +// RecordId Setter +// 变更记录ID +func (r *TmallMeiCrmCallbackPointChangeAPIRequest) SetRecordId(_recordId int64) error { + r._recordId = _recordId + r.Set("record_id", _recordId) + return nil +} + +// RecordId Getter +func (r TmallMeiCrmCallbackPointChangeAPIRequest) GetRecordId() int64 { + return r._recordId +} +// Result Setter +// 0:成功。1:失败 +func (r *TmallMeiCrmCallbackPointChangeAPIRequest) SetResult(_result int64) error { + r._result = _result + r.Set("result", _result) + return nil +} + +// Result Getter +func (r TmallMeiCrmCallbackPointChangeAPIRequest) GetResult() int64 { + return r._result +} +// ErrorCode Setter +// 处理失败的错误码. +func (r *TmallMeiCrmCallbackPointChangeAPIRequest) SetErrorCode(_errorCode string) error { + r._errorCode = _errorCode + r.Set("error_code", _errorCode) + return nil +} + +// ErrorCode Getter +func (r TmallMeiCrmCallbackPointChangeAPIRequest) GetErrorCode() string { + return r._errorCode +} +// ExtInfo Setter +// 拓展信息 +func (r *TmallMeiCrmCallbackPointChangeAPIRequest) SetExtInfo(_extInfo string) error { + r._extInfo = _extInfo + r.Set("ext_info", _extInfo) + return nil +} + +// ExtInfo Getter +func (r TmallMeiCrmCallbackPointChangeAPIRequest) GetExtInfo() string { + return r._extInfo +} +// Point Setter +// 积分信息 +func (r *TmallMeiCrmCallbackPointChangeAPIRequest) SetPoint(_point int64) error { + r._point = _point + r.Set("point", _point) + return nil +} + +// Point Getter +func (r TmallMeiCrmCallbackPointChangeAPIRequest) GetPoint() int64 { + return r._point +} diff --git a/model/mei/TmallMeiCrmCallbackPointChangeAPIResponse.go b/model/mei/TmallMeiCrmCallbackPointChangeAPIResponse.go new file mode 100644 index 0000000000..b1b5fb50b5 --- /dev/null +++ b/model/mei/TmallMeiCrmCallbackPointChangeAPIResponse.go @@ -0,0 +1,27 @@ +package mei + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌积分变更回调API API返回值 +tmall.mei.crm.callback.point.change + +线下品牌积分变更消息回调API,告诉积分扣减或者累加是否成功。 +*/ +type TmallMeiCrmCallbackPointChangeAPIResponse struct { + model.CommonResponse + TmallMeiCrmCallbackPointChangeAPIResponseModel +} + +// 品牌积分变更回调API 成功返回结果 +type TmallMeiCrmCallbackPointChangeAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_mei_crm_callback_point_change_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` +} diff --git a/model/mei/TmallMeiCrmCallbackPointChangeResponse.go b/model/mei/TmallMeiCrmCallbackPointChangeResponse.go deleted file mode 100644 index ea8c0aa688..0000000000 --- a/model/mei/TmallMeiCrmCallbackPointChangeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mei - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -品牌积分变更回调API API返回值 -tmall.mei.crm.callback.point.change - -线下品牌积分变更消息回调API,告诉积分扣减或者累加是否成功。 -*/ -type TmallMeiCrmCallbackPointChangeAPIResponse struct { - model.CommonResponse - TmallMeiCrmCallbackPointChangeResponse -} - -// 品牌积分变更回调API 成功返回结果 -type TmallMeiCrmCallbackPointChangeResponse struct { - XMLName xml.Name `xml:"tmall_mei_crm_callback_point_change_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` -} diff --git a/model/mei/TmallMeiCrmMemberGetbypaycodeAPIRequest.go b/model/mei/TmallMeiCrmMemberGetbypaycodeAPIRequest.go new file mode 100644 index 0000000000..12125078a5 --- /dev/null +++ b/model/mei/TmallMeiCrmMemberGetbypaycodeAPIRequest.go @@ -0,0 +1,52 @@ +package mei + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +支付码获取会员信息 API请求 +tmall.mei.crm.member.getbypaycode + +通过支付码获取会员信息 +*/ +type TmallMeiCrmMemberGetbypaycodeAPIRequest struct { + model.Params + // 会员码 + _payCode string +} + +// 初始化TmallMeiCrmMemberGetbypaycodeAPIRequest对象 +func NewTmallMeiCrmMemberGetbypaycodeRequest() *TmallMeiCrmMemberGetbypaycodeAPIRequest{ + return &TmallMeiCrmMemberGetbypaycodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallMeiCrmMemberGetbypaycodeAPIRequest) GetApiMethodName() string { + return "tmall.mei.crm.member.getbypaycode" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallMeiCrmMemberGetbypaycodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PayCode Setter +// 会员码 +func (r *TmallMeiCrmMemberGetbypaycodeAPIRequest) SetPayCode(_payCode string) error { + r._payCode = _payCode + r.Set("pay_code", _payCode) + return nil +} + +// PayCode Getter +func (r TmallMeiCrmMemberGetbypaycodeAPIRequest) GetPayCode() string { + return r._payCode +} diff --git a/model/mei/TmallMeiCrmMemberGetbypaycodeAPIResponse.go b/model/mei/TmallMeiCrmMemberGetbypaycodeAPIResponse.go new file mode 100644 index 0000000000..b04a954742 --- /dev/null +++ b/model/mei/TmallMeiCrmMemberGetbypaycodeAPIResponse.go @@ -0,0 +1,27 @@ +package mei + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +支付码获取会员信息 API返回值 +tmall.mei.crm.member.getbypaycode + +通过支付码获取会员信息 +*/ +type TmallMeiCrmMemberGetbypaycodeAPIResponse struct { + model.CommonResponse + TmallMeiCrmMemberGetbypaycodeAPIResponseModel +} + +// 支付码获取会员信息 成功返回结果 +type TmallMeiCrmMemberGetbypaycodeAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_mei_crm_member_getbypaycode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mei/TmallMeiCrmMemberGetbypaycodeResponse.go b/model/mei/TmallMeiCrmMemberGetbypaycodeResponse.go deleted file mode 100644 index 1c52273264..0000000000 --- a/model/mei/TmallMeiCrmMemberGetbypaycodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mei - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -支付码获取会员信息 API返回值 -tmall.mei.crm.member.getbypaycode - -通过支付码获取会员信息 -*/ -type TmallMeiCrmMemberGetbypaycodeAPIResponse struct { - model.CommonResponse - TmallMeiCrmMemberGetbypaycodeResponse -} - -// 支付码获取会员信息 成功返回结果 -type TmallMeiCrmMemberGetbypaycodeResponse struct { - XMLName xml.Name `xml:"tmall_mei_crm_member_getbypaycode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mei/TmallMeiCrmMemberSyncAPIRequest.go b/model/mei/TmallMeiCrmMemberSyncAPIRequest.go new file mode 100644 index 0000000000..89af2311b3 --- /dev/null +++ b/model/mei/TmallMeiCrmMemberSyncAPIRequest.go @@ -0,0 +1,138 @@ +package mei + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同步推送会员信息 API请求 +tmall.mei.crm.member.sync + +品牌方通过该api主动推送会员信息。使用场景包括 +1.用户在线上注册后,线下补充信息后,同步到线上。 +2.其他情况的主动推送变更。 +*/ +type TmallMeiCrmMemberSyncAPIRequest struct { + model.Params + // 会员手机号码 + _mobile string + // 会员积分 + _point int64 + // 会员等级 + _level int64 + // 会员拓展信息 + _extend string + // 该次同步的版本信息(建议使用时间戳) + _version int64 + // 混淆昵称 + _mixNick string + // 昵称 + _nick string +} + +// 初始化TmallMeiCrmMemberSyncAPIRequest对象 +func NewTmallMeiCrmMemberSyncRequest() *TmallMeiCrmMemberSyncAPIRequest{ + return &TmallMeiCrmMemberSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallMeiCrmMemberSyncAPIRequest) GetApiMethodName() string { + return "tmall.mei.crm.member.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallMeiCrmMemberSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Mobile Setter +// 会员手机号码 +func (r *TmallMeiCrmMemberSyncAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r TmallMeiCrmMemberSyncAPIRequest) GetMobile() string { + return r._mobile +} +// Point Setter +// 会员积分 +func (r *TmallMeiCrmMemberSyncAPIRequest) SetPoint(_point int64) error { + r._point = _point + r.Set("point", _point) + return nil +} + +// Point Getter +func (r TmallMeiCrmMemberSyncAPIRequest) GetPoint() int64 { + return r._point +} +// Level Setter +// 会员等级 +func (r *TmallMeiCrmMemberSyncAPIRequest) SetLevel(_level int64) error { + r._level = _level + r.Set("level", _level) + return nil +} + +// Level Getter +func (r TmallMeiCrmMemberSyncAPIRequest) GetLevel() int64 { + return r._level +} +// Extend Setter +// 会员拓展信息 +func (r *TmallMeiCrmMemberSyncAPIRequest) SetExtend(_extend string) error { + r._extend = _extend + r.Set("extend", _extend) + return nil +} + +// Extend Getter +func (r TmallMeiCrmMemberSyncAPIRequest) GetExtend() string { + return r._extend +} +// Version Setter +// 该次同步的版本信息(建议使用时间戳) +func (r *TmallMeiCrmMemberSyncAPIRequest) SetVersion(_version int64) error { + r._version = _version + r.Set("version", _version) + return nil +} + +// Version Getter +func (r TmallMeiCrmMemberSyncAPIRequest) GetVersion() int64 { + return r._version +} +// MixNick Setter +// 混淆昵称 +func (r *TmallMeiCrmMemberSyncAPIRequest) SetMixNick(_mixNick string) error { + r._mixNick = _mixNick + r.Set("mix_nick", _mixNick) + return nil +} + +// MixNick Getter +func (r TmallMeiCrmMemberSyncAPIRequest) GetMixNick() string { + return r._mixNick +} +// Nick Setter +// 昵称 +func (r *TmallMeiCrmMemberSyncAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TmallMeiCrmMemberSyncAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/mei/TmallMeiCrmMemberSyncAPIResponse.go b/model/mei/TmallMeiCrmMemberSyncAPIResponse.go new file mode 100644 index 0000000000..75c5fd711b --- /dev/null +++ b/model/mei/TmallMeiCrmMemberSyncAPIResponse.go @@ -0,0 +1,29 @@ +package mei + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同步推送会员信息 API返回值 +tmall.mei.crm.member.sync + +品牌方通过该api主动推送会员信息。使用场景包括 +1.用户在线上注册后,线下补充信息后,同步到线上。 +2.其他情况的主动推送变更。 +*/ +type TmallMeiCrmMemberSyncAPIResponse struct { + model.CommonResponse + TmallMeiCrmMemberSyncAPIResponseModel +} + +// 同步推送会员信息 成功返回结果 +type TmallMeiCrmMemberSyncAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_mei_crm_member_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 处理的其他信息 + MeiExtraInfo string `json:"mei_extra_info,omitempty" xml:"mei_extra_info,omitempty"` +} diff --git a/model/mei/TmallMeiCrmMemberSyncResponse.go b/model/mei/TmallMeiCrmMemberSyncResponse.go deleted file mode 100644 index 96e3407c4f..0000000000 --- a/model/mei/TmallMeiCrmMemberSyncResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package mei - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同步推送会员信息 API返回值 -tmall.mei.crm.member.sync - -品牌方通过该api主动推送会员信息。使用场景包括 -1.用户在线上注册后,线下补充信息后,同步到线上。 -2.其他情况的主动推送变更。 -*/ -type TmallMeiCrmMemberSyncAPIResponse struct { - model.CommonResponse - TmallMeiCrmMemberSyncResponse -} - -// 同步推送会员信息 成功返回结果 -type TmallMeiCrmMemberSyncResponse struct { - XMLName xml.Name `xml:"tmall_mei_crm_member_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 处理的其他信息 - MeiExtraInfo string `json:"mei_extra_info,omitempty" xml:"mei_extra_info,omitempty"` -} diff --git a/model/middleclaims/AlibabaMiddleClaimsacceptReceiveAPIRequest.go b/model/middleclaims/AlibabaMiddleClaimsacceptReceiveAPIRequest.go new file mode 100644 index 0000000000..0f3ddb7f21 --- /dev/null +++ b/model/middleclaims/AlibabaMiddleClaimsacceptReceiveAPIRequest.go @@ -0,0 +1,52 @@ +package middleclaims + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +国际化中台服务域接收保险公司理赔受理结果 API请求 +alibaba.middle.claimsaccept.receive + +国际化中台服务域与保险公司交互对接一个订单在保险公司方对该订单进行理赔受理结果的处理后,将该结果返回至服务域 +*/ +type AlibabaMiddleClaimsacceptReceiveAPIRequest struct { + model.Params + // 理赔受理结果实体类 + _claimsAcceptDto *ClaimsAcceptDto +} + +// 初始化AlibabaMiddleClaimsacceptReceiveAPIRequest对象 +func NewAlibabaMiddleClaimsacceptReceiveRequest() *AlibabaMiddleClaimsacceptReceiveAPIRequest{ + return &AlibabaMiddleClaimsacceptReceiveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMiddleClaimsacceptReceiveAPIRequest) GetApiMethodName() string { + return "alibaba.middle.claimsaccept.receive" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMiddleClaimsacceptReceiveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ClaimsAcceptDto Setter +// 理赔受理结果实体类 +func (r *AlibabaMiddleClaimsacceptReceiveAPIRequest) SetClaimsAcceptDto(_claimsAcceptDto *ClaimsAcceptDto) error { + r._claimsAcceptDto = _claimsAcceptDto + r.Set("claims_accept_dto", _claimsAcceptDto) + return nil +} + +// ClaimsAcceptDto Getter +func (r AlibabaMiddleClaimsacceptReceiveAPIRequest) GetClaimsAcceptDto() *ClaimsAcceptDto { + return r._claimsAcceptDto +} diff --git a/model/middleclaims/AlibabaMiddleClaimsacceptReceiveAPIResponse.go b/model/middleclaims/AlibabaMiddleClaimsacceptReceiveAPIResponse.go new file mode 100644 index 0000000000..d5d933e898 --- /dev/null +++ b/model/middleclaims/AlibabaMiddleClaimsacceptReceiveAPIResponse.go @@ -0,0 +1,27 @@ +package middleclaims + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +国际化中台服务域接收保险公司理赔受理结果 API返回值 +alibaba.middle.claimsaccept.receive + +国际化中台服务域与保险公司交互对接一个订单在保险公司方对该订单进行理赔受理结果的处理后,将该结果返回至服务域 +*/ +type AlibabaMiddleClaimsacceptReceiveAPIResponse struct { + model.CommonResponse + AlibabaMiddleClaimsacceptReceiveAPIResponseModel +} + +// 国际化中台服务域接收保险公司理赔受理结果 成功返回结果 +type AlibabaMiddleClaimsacceptReceiveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_middle_claimsaccept_receive_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *AlibabaMiddleClaimsacceptReceiveResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/middleclaims/AlibabaMiddleClaimsacceptReceiveResponse.go b/model/middleclaims/AlibabaMiddleClaimsacceptReceiveResponse.go deleted file mode 100644 index 7ed142cb4d..0000000000 --- a/model/middleclaims/AlibabaMiddleClaimsacceptReceiveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package middleclaims - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -国际化中台服务域接收保险公司理赔受理结果 API返回值 -alibaba.middle.claimsaccept.receive - -国际化中台服务域与保险公司交互对接一个订单在保险公司方对该订单进行理赔受理结果的处理后,将该结果返回至服务域 -*/ -type AlibabaMiddleClaimsacceptReceiveAPIResponse struct { - model.CommonResponse - AlibabaMiddleClaimsacceptReceiveResponse -} - -// 国际化中台服务域接收保险公司理赔受理结果 成功返回结果 -type AlibabaMiddleClaimsacceptReceiveResponse struct { - XMLName xml.Name `xml:"alibaba_middle_claimsaccept_receive_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *AlibabaMiddleClaimsacceptReceiveResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/middleclaims/AlibabaMiddleClaimsbillReceiveAPIRequest.go b/model/middleclaims/AlibabaMiddleClaimsbillReceiveAPIRequest.go new file mode 100644 index 0000000000..b620e034df --- /dev/null +++ b/model/middleclaims/AlibabaMiddleClaimsbillReceiveAPIRequest.go @@ -0,0 +1,52 @@ +package middleclaims + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +国际化中台服务域接收理赔账单 API请求 +alibaba.middle.claimsbill.receive + +国际化中台服务域与保险公司交互对接一个订单在保险公司方对该订单进行理赔打款的处理后,将该打款结果返回至服务域 +*/ +type AlibabaMiddleClaimsbillReceiveAPIRequest struct { + model.Params + // 理赔账单实体 + _claimsBillDto *ClaimsBillDto +} + +// 初始化AlibabaMiddleClaimsbillReceiveAPIRequest对象 +func NewAlibabaMiddleClaimsbillReceiveRequest() *AlibabaMiddleClaimsbillReceiveAPIRequest{ + return &AlibabaMiddleClaimsbillReceiveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMiddleClaimsbillReceiveAPIRequest) GetApiMethodName() string { + return "alibaba.middle.claimsbill.receive" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMiddleClaimsbillReceiveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ClaimsBillDto Setter +// 理赔账单实体 +func (r *AlibabaMiddleClaimsbillReceiveAPIRequest) SetClaimsBillDto(_claimsBillDto *ClaimsBillDto) error { + r._claimsBillDto = _claimsBillDto + r.Set("claims_bill_dto", _claimsBillDto) + return nil +} + +// ClaimsBillDto Getter +func (r AlibabaMiddleClaimsbillReceiveAPIRequest) GetClaimsBillDto() *ClaimsBillDto { + return r._claimsBillDto +} diff --git a/model/middleclaims/AlibabaMiddleClaimsbillReceiveAPIResponse.go b/model/middleclaims/AlibabaMiddleClaimsbillReceiveAPIResponse.go new file mode 100644 index 0000000000..74a03beef2 --- /dev/null +++ b/model/middleclaims/AlibabaMiddleClaimsbillReceiveAPIResponse.go @@ -0,0 +1,27 @@ +package middleclaims + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +国际化中台服务域接收理赔账单 API返回值 +alibaba.middle.claimsbill.receive + +国际化中台服务域与保险公司交互对接一个订单在保险公司方对该订单进行理赔打款的处理后,将该打款结果返回至服务域 +*/ +type AlibabaMiddleClaimsbillReceiveAPIResponse struct { + model.CommonResponse + AlibabaMiddleClaimsbillReceiveAPIResponseModel +} + +// 国际化中台服务域接收理赔账单 成功返回结果 +type AlibabaMiddleClaimsbillReceiveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_middle_claimsbill_receive_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果实体类 + Result *AlibabaMiddleClaimsbillReceiveResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/middleclaims/AlibabaMiddleClaimsbillReceiveResponse.go b/model/middleclaims/AlibabaMiddleClaimsbillReceiveResponse.go deleted file mode 100644 index 7ccc39c0fa..0000000000 --- a/model/middleclaims/AlibabaMiddleClaimsbillReceiveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package middleclaims - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -国际化中台服务域接收理赔账单 API返回值 -alibaba.middle.claimsbill.receive - -国际化中台服务域与保险公司交互对接一个订单在保险公司方对该订单进行理赔打款的处理后,将该打款结果返回至服务域 -*/ -type AlibabaMiddleClaimsbillReceiveAPIResponse struct { - model.CommonResponse - AlibabaMiddleClaimsbillReceiveResponse -} - -// 国际化中台服务域接收理赔账单 成功返回结果 -type AlibabaMiddleClaimsbillReceiveResponse struct { - XMLName xml.Name `xml:"alibaba_middle_claimsbill_receive_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果实体类 - Result *AlibabaMiddleClaimsbillReceiveResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/middleclaims/AlibabaMiddleClaimsresultReceiveAPIRequest.go b/model/middleclaims/AlibabaMiddleClaimsresultReceiveAPIRequest.go new file mode 100644 index 0000000000..fd30893341 --- /dev/null +++ b/model/middleclaims/AlibabaMiddleClaimsresultReceiveAPIRequest.go @@ -0,0 +1,52 @@ +package middleclaims + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +国际化中台服务域接收理赔结果 API请求 +alibaba.middle.claimsresult.receive + +国际化中台服务域与保险公司交互对接一个订单在保险公司方对该订单进行理赔结果的处理后,将该结果返回至服务域 +*/ +type AlibabaMiddleClaimsresultReceiveAPIRequest struct { + model.Params + // 理赔结果实体 + _claimsResultDTO *ClaimsResultDto +} + +// 初始化AlibabaMiddleClaimsresultReceiveAPIRequest对象 +func NewAlibabaMiddleClaimsresultReceiveRequest() *AlibabaMiddleClaimsresultReceiveAPIRequest{ + return &AlibabaMiddleClaimsresultReceiveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMiddleClaimsresultReceiveAPIRequest) GetApiMethodName() string { + return "alibaba.middle.claimsresult.receive" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMiddleClaimsresultReceiveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ClaimsResultDTO Setter +// 理赔结果实体 +func (r *AlibabaMiddleClaimsresultReceiveAPIRequest) SetClaimsResultDTO(_claimsResultDTO *ClaimsResultDto) error { + r._claimsResultDTO = _claimsResultDTO + r.Set("claims_result_d_t_o", _claimsResultDTO) + return nil +} + +// ClaimsResultDTO Getter +func (r AlibabaMiddleClaimsresultReceiveAPIRequest) GetClaimsResultDTO() *ClaimsResultDto { + return r._claimsResultDTO +} diff --git a/model/middleclaims/AlibabaMiddleClaimsresultReceiveAPIResponse.go b/model/middleclaims/AlibabaMiddleClaimsresultReceiveAPIResponse.go new file mode 100644 index 0000000000..be0f4b88a2 --- /dev/null +++ b/model/middleclaims/AlibabaMiddleClaimsresultReceiveAPIResponse.go @@ -0,0 +1,27 @@ +package middleclaims + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +国际化中台服务域接收理赔结果 API返回值 +alibaba.middle.claimsresult.receive + +国际化中台服务域与保险公司交互对接一个订单在保险公司方对该订单进行理赔结果的处理后,将该结果返回至服务域 +*/ +type AlibabaMiddleClaimsresultReceiveAPIResponse struct { + model.CommonResponse + AlibabaMiddleClaimsresultReceiveAPIResponseModel +} + +// 国际化中台服务域接收理赔结果 成功返回结果 +type AlibabaMiddleClaimsresultReceiveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_middle_claimsresult_receive_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *AlibabaMiddleClaimsresultReceiveResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/middleclaims/AlibabaMiddleClaimsresultReceiveResponse.go b/model/middleclaims/AlibabaMiddleClaimsresultReceiveResponse.go deleted file mode 100644 index 8d901d0f22..0000000000 --- a/model/middleclaims/AlibabaMiddleClaimsresultReceiveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package middleclaims - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -国际化中台服务域接收理赔结果 API返回值 -alibaba.middle.claimsresult.receive - -国际化中台服务域与保险公司交互对接一个订单在保险公司方对该订单进行理赔结果的处理后,将该结果返回至服务域 -*/ -type AlibabaMiddleClaimsresultReceiveAPIResponse struct { - model.CommonResponse - AlibabaMiddleClaimsresultReceiveResponse -} - -// 国际化中台服务域接收理赔结果 成功返回结果 -type AlibabaMiddleClaimsresultReceiveResponse struct { - XMLName xml.Name `xml:"alibaba_middle_claimsresult_receive_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *AlibabaMiddleClaimsresultReceiveResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/miniapp/TaobaoMiniappCloudFunctionInvokeAPIRequest.go b/model/miniapp/TaobaoMiniappCloudFunctionInvokeAPIRequest.go new file mode 100644 index 0000000000..8bb9dcd1b5 --- /dev/null +++ b/model/miniapp/TaobaoMiniappCloudFunctionInvokeAPIRequest.go @@ -0,0 +1,108 @@ +package miniapp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +外部触发云函数 API请求 +taobao.miniapp.cloud.function.invoke + +用户isv从外部触发聚石塔云函数的执行。 +*/ +type TaobaoMiniappCloudFunctionInvokeAPIRequest struct { + model.Params + // 云函数名称 + _name string + // 指定云函数的handler + _handler string + // 调用云函数时的传参(JSON格式) + _data string + // 云环境 + _env string + // 扩展协议参数 + _exts string +} + +// 初始化TaobaoMiniappCloudFunctionInvokeAPIRequest对象 +func NewTaobaoMiniappCloudFunctionInvokeRequest() *TaobaoMiniappCloudFunctionInvokeAPIRequest{ + return &TaobaoMiniappCloudFunctionInvokeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.cloud.function.invoke" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// 云函数名称 +func (r *TaobaoMiniappCloudFunctionInvokeAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetName() string { + return r._name +} +// Handler Setter +// 指定云函数的handler +func (r *TaobaoMiniappCloudFunctionInvokeAPIRequest) SetHandler(_handler string) error { + r._handler = _handler + r.Set("handler", _handler) + return nil +} + +// Handler Getter +func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetHandler() string { + return r._handler +} +// Data Setter +// 调用云函数时的传参(JSON格式) +func (r *TaobaoMiniappCloudFunctionInvokeAPIRequest) SetData(_data string) error { + r._data = _data + r.Set("data", _data) + return nil +} + +// Data Getter +func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetData() string { + return r._data +} +// Env Setter +// 云环境 +func (r *TaobaoMiniappCloudFunctionInvokeAPIRequest) SetEnv(_env string) error { + r._env = _env + r.Set("env", _env) + return nil +} + +// Env Getter +func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetEnv() string { + return r._env +} +// Exts Setter +// 扩展协议参数 +func (r *TaobaoMiniappCloudFunctionInvokeAPIRequest) SetExts(_exts string) error { + r._exts = _exts + r.Set("exts", _exts) + return nil +} + +// Exts Getter +func (r TaobaoMiniappCloudFunctionInvokeAPIRequest) GetExts() string { + return r._exts +} diff --git a/model/miniapp/TaobaoMiniappCloudFunctionInvokeAPIResponse.go b/model/miniapp/TaobaoMiniappCloudFunctionInvokeAPIResponse.go new file mode 100644 index 0000000000..12961955ef --- /dev/null +++ b/model/miniapp/TaobaoMiniappCloudFunctionInvokeAPIResponse.go @@ -0,0 +1,27 @@ +package miniapp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +外部触发云函数 API返回值 +taobao.miniapp.cloud.function.invoke + +用户isv从外部触发聚石塔云函数的执行。 +*/ +type TaobaoMiniappCloudFunctionInvokeAPIResponse struct { + model.CommonResponse + TaobaoMiniappCloudFunctionInvokeAPIResponseModel +} + +// 外部触发云函数 成功返回结果 +type TaobaoMiniappCloudFunctionInvokeAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_cloud_function_invoke_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回参数,长度限制8个字符,超出部分会被截断 + Data string `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/miniapp/TaobaoMiniappCloudFunctionInvokeResponse.go b/model/miniapp/TaobaoMiniappCloudFunctionInvokeResponse.go deleted file mode 100644 index 0e6fa230fb..0000000000 --- a/model/miniapp/TaobaoMiniappCloudFunctionInvokeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package miniapp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -外部触发云函数 API返回值 -taobao.miniapp.cloud.function.invoke - -用户isv从外部触发聚石塔云函数的执行。 -*/ -type TaobaoMiniappCloudFunctionInvokeAPIResponse struct { - model.CommonResponse - TaobaoMiniappCloudFunctionInvokeResponse -} - -// 外部触发云函数 成功返回结果 -type TaobaoMiniappCloudFunctionInvokeResponse struct { - XMLName xml.Name `xml:"miniapp_cloud_function_invoke_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回参数,长度限制8个字符,超出部分会被截断 - Data string `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/miniapp/TaobaoMiniappCloudStoreRelationAddAPIRequest.go b/model/miniapp/TaobaoMiniappCloudStoreRelationAddAPIRequest.go new file mode 100644 index 0000000000..b2507df385 --- /dev/null +++ b/model/miniapp/TaobaoMiniappCloudStoreRelationAddAPIRequest.go @@ -0,0 +1,108 @@ +package miniapp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +云存储添加 API请求 +taobao.miniapp.cloud.store.relation.add + +用于用户上传文件之后回写云存储的关联关系 +*/ +type TaobaoMiniappCloudStoreRelationAddAPIRequest struct { + model.Params + // 环境 test/online + _env string + // 文件类型 image/audio/video/font/other + _fileType string + // 上传平台返回的文件唯一ID + _specialId string + // 上传平台返回的文件url,部分文件类型无固定url,非必填 + _url string + // 文件路径 + _cloudPath string +} + +// 初始化TaobaoMiniappCloudStoreRelationAddAPIRequest对象 +func NewTaobaoMiniappCloudStoreRelationAddRequest() *TaobaoMiniappCloudStoreRelationAddAPIRequest{ + return &TaobaoMiniappCloudStoreRelationAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.cloud.store.relation.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Env Setter +// 环境 test/online +func (r *TaobaoMiniappCloudStoreRelationAddAPIRequest) SetEnv(_env string) error { + r._env = _env + r.Set("env", _env) + return nil +} + +// Env Getter +func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetEnv() string { + return r._env +} +// FileType Setter +// 文件类型 image/audio/video/font/other +func (r *TaobaoMiniappCloudStoreRelationAddAPIRequest) SetFileType(_fileType string) error { + r._fileType = _fileType + r.Set("file_type", _fileType) + return nil +} + +// FileType Getter +func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetFileType() string { + return r._fileType +} +// SpecialId Setter +// 上传平台返回的文件唯一ID +func (r *TaobaoMiniappCloudStoreRelationAddAPIRequest) SetSpecialId(_specialId string) error { + r._specialId = _specialId + r.Set("special_id", _specialId) + return nil +} + +// SpecialId Getter +func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetSpecialId() string { + return r._specialId +} +// Url Setter +// 上传平台返回的文件url,部分文件类型无固定url,非必填 +func (r *TaobaoMiniappCloudStoreRelationAddAPIRequest) SetUrl(_url string) error { + r._url = _url + r.Set("url", _url) + return nil +} + +// Url Getter +func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetUrl() string { + return r._url +} +// CloudPath Setter +// 文件路径 +func (r *TaobaoMiniappCloudStoreRelationAddAPIRequest) SetCloudPath(_cloudPath string) error { + r._cloudPath = _cloudPath + r.Set("cloud_path", _cloudPath) + return nil +} + +// CloudPath Getter +func (r TaobaoMiniappCloudStoreRelationAddAPIRequest) GetCloudPath() string { + return r._cloudPath +} diff --git a/model/miniapp/TaobaoMiniappCloudStoreRelationAddAPIResponse.go b/model/miniapp/TaobaoMiniappCloudStoreRelationAddAPIResponse.go new file mode 100644 index 0000000000..abe3190311 --- /dev/null +++ b/model/miniapp/TaobaoMiniappCloudStoreRelationAddAPIResponse.go @@ -0,0 +1,29 @@ +package miniapp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +云存储添加 API返回值 +taobao.miniapp.cloud.store.relation.add + +用于用户上传文件之后回写云存储的关联关系 +*/ +type TaobaoMiniappCloudStoreRelationAddAPIResponse struct { + model.CommonResponse + TaobaoMiniappCloudStoreRelationAddAPIResponseModel +} + +// 云存储添加 成功返回结果 +type TaobaoMiniappCloudStoreRelationAddAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_cloud_store_relation_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 文件真实url + Url string `json:"url,omitempty" xml:"url,omitempty"` + // 云存储文件唯一ID + FileId string `json:"file_id,omitempty" xml:"file_id,omitempty"` +} diff --git a/model/miniapp/TaobaoMiniappCloudStoreRelationAddResponse.go b/model/miniapp/TaobaoMiniappCloudStoreRelationAddResponse.go deleted file mode 100644 index 4f541a1943..0000000000 --- a/model/miniapp/TaobaoMiniappCloudStoreRelationAddResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package miniapp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -云存储添加 API返回值 -taobao.miniapp.cloud.store.relation.add - -用于用户上传文件之后回写云存储的关联关系 -*/ -type TaobaoMiniappCloudStoreRelationAddAPIResponse struct { - model.CommonResponse - TaobaoMiniappCloudStoreRelationAddResponse -} - -// 云存储添加 成功返回结果 -type TaobaoMiniappCloudStoreRelationAddResponse struct { - XMLName xml.Name `xml:"miniapp_cloud_store_relation_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 文件真实url - Url string `json:"url,omitempty" xml:"url,omitempty"` - // 云存储文件唯一ID - FileId string `json:"file_id,omitempty" xml:"file_id,omitempty"` -} diff --git a/model/miniappcloud/TaobaoMiniappCloudMongoInsertAPIRequest.go b/model/miniappcloud/TaobaoMiniappCloudMongoInsertAPIRequest.go new file mode 100644 index 0000000000..8910daec18 --- /dev/null +++ b/model/miniappcloud/TaobaoMiniappCloudMongoInsertAPIRequest.go @@ -0,0 +1,80 @@ +package miniappcloud + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +MongoDB插入单条数据 API请求 +taobao.miniapp.cloud.mongo.insert + +向商家应用云中插入一条记录,用于外部数据同步到应用中 +*/ +type TaobaoMiniappCloudMongoInsertAPIRequest struct { + model.Params + // 待插入的数据,JSON格式 + _record string + // MongoDB表名 + _collection string + // 要操作的环境,默认是测试环境 + _env string +} + +// 初始化TaobaoMiniappCloudMongoInsertAPIRequest对象 +func NewTaobaoMiniappCloudMongoInsertRequest() *TaobaoMiniappCloudMongoInsertAPIRequest{ + return &TaobaoMiniappCloudMongoInsertAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappCloudMongoInsertAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.cloud.mongo.insert" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappCloudMongoInsertAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Record Setter +// 待插入的数据,JSON格式 +func (r *TaobaoMiniappCloudMongoInsertAPIRequest) SetRecord(_record string) error { + r._record = _record + r.Set("record", _record) + return nil +} + +// Record Getter +func (r TaobaoMiniappCloudMongoInsertAPIRequest) GetRecord() string { + return r._record +} +// Collection Setter +// MongoDB表名 +func (r *TaobaoMiniappCloudMongoInsertAPIRequest) SetCollection(_collection string) error { + r._collection = _collection + r.Set("collection", _collection) + return nil +} + +// Collection Getter +func (r TaobaoMiniappCloudMongoInsertAPIRequest) GetCollection() string { + return r._collection +} +// Env Setter +// 要操作的环境,默认是测试环境 +func (r *TaobaoMiniappCloudMongoInsertAPIRequest) SetEnv(_env string) error { + r._env = _env + r.Set("env", _env) + return nil +} + +// Env Getter +func (r TaobaoMiniappCloudMongoInsertAPIRequest) GetEnv() string { + return r._env +} diff --git a/model/miniappcloud/TaobaoMiniappCloudMongoInsertAPIResponse.go b/model/miniappcloud/TaobaoMiniappCloudMongoInsertAPIResponse.go new file mode 100644 index 0000000000..1dcda02eb3 --- /dev/null +++ b/model/miniappcloud/TaobaoMiniappCloudMongoInsertAPIResponse.go @@ -0,0 +1,27 @@ +package miniappcloud + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +MongoDB插入单条数据 API返回值 +taobao.miniapp.cloud.mongo.insert + +向商家应用云中插入一条记录,用于外部数据同步到应用中 +*/ +type TaobaoMiniappCloudMongoInsertAPIResponse struct { + model.CommonResponse + TaobaoMiniappCloudMongoInsertAPIResponseModel +} + +// MongoDB插入单条数据 成功返回结果 +type TaobaoMiniappCloudMongoInsertAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_cloud_mongo_insert_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的数据ID,在表中为_id字段 + Id string `json:"id,omitempty" xml:"id,omitempty"` +} diff --git a/model/miniappcloud/TaobaoMiniappCloudMongoInsertResponse.go b/model/miniappcloud/TaobaoMiniappCloudMongoInsertResponse.go deleted file mode 100644 index 10d353f72d..0000000000 --- a/model/miniappcloud/TaobaoMiniappCloudMongoInsertResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package miniappcloud - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -MongoDB插入单条数据 API返回值 -taobao.miniapp.cloud.mongo.insert - -向商家应用云中插入一条记录,用于外部数据同步到应用中 -*/ -type TaobaoMiniappCloudMongoInsertAPIResponse struct { - model.CommonResponse - TaobaoMiniappCloudMongoInsertResponse -} - -// MongoDB插入单条数据 成功返回结果 -type TaobaoMiniappCloudMongoInsertResponse struct { - XMLName xml.Name `xml:"miniapp_cloud_mongo_insert_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的数据ID,在表中为_id字段 - Id string `json:"id,omitempty" xml:"id,omitempty"` -} diff --git a/model/miniappcloud/TaobaoMiniappCloudMongoUpdateAPIRequest.go b/model/miniappcloud/TaobaoMiniappCloudMongoUpdateAPIRequest.go new file mode 100644 index 0000000000..e19339ae6c --- /dev/null +++ b/model/miniappcloud/TaobaoMiniappCloudMongoUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package miniappcloud + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新MongoDB中的数据 API请求 +taobao.miniapp.cloud.mongo.update + +更新MongoDB中的数据 +*/ +type TaobaoMiniappCloudMongoUpdateAPIRequest struct { + model.Params + // MongoDB表名 + _collection string + // 更新条件 + _filter string + // 待写入的数据 + _record string + // 要操作的环境,默认是测试环境 + _env string +} + +// 初始化TaobaoMiniappCloudMongoUpdateAPIRequest对象 +func NewTaobaoMiniappCloudMongoUpdateRequest() *TaobaoMiniappCloudMongoUpdateAPIRequest{ + return &TaobaoMiniappCloudMongoUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappCloudMongoUpdateAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.cloud.mongo.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappCloudMongoUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Collection Setter +// MongoDB表名 +func (r *TaobaoMiniappCloudMongoUpdateAPIRequest) SetCollection(_collection string) error { + r._collection = _collection + r.Set("collection", _collection) + return nil +} + +// Collection Getter +func (r TaobaoMiniappCloudMongoUpdateAPIRequest) GetCollection() string { + return r._collection +} +// Filter Setter +// 更新条件 +func (r *TaobaoMiniappCloudMongoUpdateAPIRequest) SetFilter(_filter string) error { + r._filter = _filter + r.Set("filter", _filter) + return nil +} + +// Filter Getter +func (r TaobaoMiniappCloudMongoUpdateAPIRequest) GetFilter() string { + return r._filter +} +// Record Setter +// 待写入的数据 +func (r *TaobaoMiniappCloudMongoUpdateAPIRequest) SetRecord(_record string) error { + r._record = _record + r.Set("record", _record) + return nil +} + +// Record Getter +func (r TaobaoMiniappCloudMongoUpdateAPIRequest) GetRecord() string { + return r._record +} +// Env Setter +// 要操作的环境,默认是测试环境 +func (r *TaobaoMiniappCloudMongoUpdateAPIRequest) SetEnv(_env string) error { + r._env = _env + r.Set("env", _env) + return nil +} + +// Env Getter +func (r TaobaoMiniappCloudMongoUpdateAPIRequest) GetEnv() string { + return r._env +} diff --git a/model/miniappcloud/TaobaoMiniappCloudMongoUpdateAPIResponse.go b/model/miniappcloud/TaobaoMiniappCloudMongoUpdateAPIResponse.go new file mode 100644 index 0000000000..c582912360 --- /dev/null +++ b/model/miniappcloud/TaobaoMiniappCloudMongoUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package miniappcloud + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新MongoDB中的数据 API返回值 +taobao.miniapp.cloud.mongo.update + +更新MongoDB中的数据 +*/ +type TaobaoMiniappCloudMongoUpdateAPIResponse struct { + model.CommonResponse + TaobaoMiniappCloudMongoUpdateAPIResponseModel +} + +// 更新MongoDB中的数据 成功返回结果 +type TaobaoMiniappCloudMongoUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_cloud_mongo_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 更新的记录数 + Total int64 `json:"total,omitempty" xml:"total,omitempty"` +} diff --git a/model/miniappcloud/TaobaoMiniappCloudMongoUpdateResponse.go b/model/miniappcloud/TaobaoMiniappCloudMongoUpdateResponse.go deleted file mode 100644 index 2e65989bee..0000000000 --- a/model/miniappcloud/TaobaoMiniappCloudMongoUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package miniappcloud - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新MongoDB中的数据 API返回值 -taobao.miniapp.cloud.mongo.update - -更新MongoDB中的数据 -*/ -type TaobaoMiniappCloudMongoUpdateAPIResponse struct { - model.CommonResponse - TaobaoMiniappCloudMongoUpdateResponse -} - -// 更新MongoDB中的数据 成功返回结果 -type TaobaoMiniappCloudMongoUpdateResponse struct { - XMLName xml.Name `xml:"miniapp_cloud_mongo_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 更新的记录数 - Total int64 `json:"total,omitempty" xml:"total,omitempty"` -} diff --git a/model/miniappcloud/TaobaoMiniappCloudStoreListfileAPIRequest.go b/model/miniappcloud/TaobaoMiniappCloudStoreListfileAPIRequest.go new file mode 100644 index 0000000000..93a3308a55 --- /dev/null +++ b/model/miniappcloud/TaobaoMiniappCloudStoreListfileAPIRequest.go @@ -0,0 +1,66 @@ +package miniappcloud + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +云存储根据文件名反查地址 API请求 +taobao.miniapp.cloud.store.listfile + +云存储中,根据文件名反查地址 +*/ +type TaobaoMiniappCloudStoreListfileAPIRequest struct { + model.Params + // 环境(online/test) + _env string + // 文件全路径名 + _filePath string +} + +// 初始化TaobaoMiniappCloudStoreListfileAPIRequest对象 +func NewTaobaoMiniappCloudStoreListfileRequest() *TaobaoMiniappCloudStoreListfileAPIRequest{ + return &TaobaoMiniappCloudStoreListfileAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappCloudStoreListfileAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.cloud.store.listfile" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappCloudStoreListfileAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Env Setter +// 环境(online/test) +func (r *TaobaoMiniappCloudStoreListfileAPIRequest) SetEnv(_env string) error { + r._env = _env + r.Set("env", _env) + return nil +} + +// Env Getter +func (r TaobaoMiniappCloudStoreListfileAPIRequest) GetEnv() string { + return r._env +} +// FilePath Setter +// 文件全路径名 +func (r *TaobaoMiniappCloudStoreListfileAPIRequest) SetFilePath(_filePath string) error { + r._filePath = _filePath + r.Set("file_path", _filePath) + return nil +} + +// FilePath Getter +func (r TaobaoMiniappCloudStoreListfileAPIRequest) GetFilePath() string { + return r._filePath +} diff --git a/model/miniappcloud/TaobaoMiniappCloudStoreListfileAPIResponse.go b/model/miniappcloud/TaobaoMiniappCloudStoreListfileAPIResponse.go new file mode 100644 index 0000000000..4d06eebc52 --- /dev/null +++ b/model/miniappcloud/TaobaoMiniappCloudStoreListfileAPIResponse.go @@ -0,0 +1,27 @@ +package miniappcloud + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +云存储根据文件名反查地址 API返回值 +taobao.miniapp.cloud.store.listfile + +云存储中,根据文件名反查地址 +*/ +type TaobaoMiniappCloudStoreListfileAPIResponse struct { + model.CommonResponse + TaobaoMiniappCloudStoreListfileAPIResponseModel +} + +// 云存储根据文件名反查地址 成功返回结果 +type TaobaoMiniappCloudStoreListfileAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_cloud_store_listfile_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Files []File `json:"files,omitempty" xml:"files>file,omitempty"` +} diff --git a/model/miniappcloud/TaobaoMiniappCloudStoreListfileResponse.go b/model/miniappcloud/TaobaoMiniappCloudStoreListfileResponse.go deleted file mode 100644 index ab3795cab4..0000000000 --- a/model/miniappcloud/TaobaoMiniappCloudStoreListfileResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package miniappcloud - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -云存储根据文件名反查地址 API返回值 -taobao.miniapp.cloud.store.listfile - -云存储中,根据文件名反查地址 -*/ -type TaobaoMiniappCloudStoreListfileAPIResponse struct { - model.CommonResponse - TaobaoMiniappCloudStoreListfileResponse -} - -// 云存储根据文件名反查地址 成功返回结果 -type TaobaoMiniappCloudStoreListfileResponse struct { - XMLName xml.Name `xml:"miniapp_cloud_store_listfile_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Files []File `json:"files,omitempty" xml:"files>file,omitempty"` -} diff --git a/model/miniappopen/TaobaoMiniappAppSellerConfigCompleteAPIRequest.go b/model/miniappopen/TaobaoMiniappAppSellerConfigCompleteAPIRequest.go new file mode 100644 index 0000000000..c5e25a0054 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappAppSellerConfigCompleteAPIRequest.go @@ -0,0 +1,66 @@ +package miniappopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家完成小程序相关配置 API请求 +taobao.miniapp.app.seller.config.complete + +通过该接口告知平台商家已经完成小程序相关的必要设置,可进行后续操作。主要用于小部件、客服插件等场景。 +*/ +type TaobaoMiniappAppSellerConfigCompleteAPIRequest struct { + model.Params + // 商家已完成配置的小部件/B端插件的appid + _appId int64 + // 小部件必传,B端插件不用传。与app_id对应的已完成配置的版本号 + _version string +} + +// 初始化TaobaoMiniappAppSellerConfigCompleteAPIRequest对象 +func NewTaobaoMiniappAppSellerConfigCompleteRequest() *TaobaoMiniappAppSellerConfigCompleteAPIRequest{ + return &TaobaoMiniappAppSellerConfigCompleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappAppSellerConfigCompleteAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.app.seller.config.complete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappAppSellerConfigCompleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppId Setter +// 商家已完成配置的小部件/B端插件的appid +func (r *TaobaoMiniappAppSellerConfigCompleteAPIRequest) SetAppId(_appId int64) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r TaobaoMiniappAppSellerConfigCompleteAPIRequest) GetAppId() int64 { + return r._appId +} +// Version Setter +// 小部件必传,B端插件不用传。与app_id对应的已完成配置的版本号 +func (r *TaobaoMiniappAppSellerConfigCompleteAPIRequest) SetVersion(_version string) error { + r._version = _version + r.Set("version", _version) + return nil +} + +// Version Getter +func (r TaobaoMiniappAppSellerConfigCompleteAPIRequest) GetVersion() string { + return r._version +} diff --git a/model/miniappopen/TaobaoMiniappAppSellerConfigCompleteAPIResponse.go b/model/miniappopen/TaobaoMiniappAppSellerConfigCompleteAPIResponse.go new file mode 100644 index 0000000000..7f8f48ef65 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappAppSellerConfigCompleteAPIResponse.go @@ -0,0 +1,27 @@ +package miniappopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家完成小程序相关配置 API返回值 +taobao.miniapp.app.seller.config.complete + +通过该接口告知平台商家已经完成小程序相关的必要设置,可进行后续操作。主要用于小部件、客服插件等场景。 +*/ +type TaobaoMiniappAppSellerConfigCompleteAPIResponse struct { + model.CommonResponse + TaobaoMiniappAppSellerConfigCompleteAPIResponseModel +} + +// 商家完成小程序相关配置 成功返回结果 +type TaobaoMiniappAppSellerConfigCompleteAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_app_seller_config_complete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作成功与否 + Model bool `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/miniappopen/TaobaoMiniappAppSellerConfigCompleteResponse.go b/model/miniappopen/TaobaoMiniappAppSellerConfigCompleteResponse.go deleted file mode 100644 index f48bbd7f8e..0000000000 --- a/model/miniappopen/TaobaoMiniappAppSellerConfigCompleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package miniappopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家完成小程序相关配置 API返回值 -taobao.miniapp.app.seller.config.complete - -通过该接口告知平台商家已经完成小程序相关的必要设置,可进行后续操作。主要用于小部件、客服插件等场景。 -*/ -type TaobaoMiniappAppSellerConfigCompleteAPIResponse struct { - model.CommonResponse - TaobaoMiniappAppSellerConfigCompleteResponse -} - -// 商家完成小程序相关配置 成功返回结果 -type TaobaoMiniappAppSellerConfigCompleteResponse struct { - XMLName xml.Name `xml:"miniapp_app_seller_config_complete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作成功与否 - Model bool `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/miniappopen/TaobaoMiniappDistributionItemsBindAPIRequest.go b/model/miniappopen/TaobaoMiniappDistributionItemsBindAPIRequest.go new file mode 100644 index 0000000000..bbfcc7f794 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappDistributionItemsBindAPIRequest.go @@ -0,0 +1,80 @@ +package miniappopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +小程序投放-商品绑定/解绑 API请求 +taobao.miniapp.distribution.items.bind + +提供给使用了投放插件的服务商,可以调用该API实现帮助商家更新已创建的投放单中的绑定商品信息。 +*/ +type TaobaoMiniappDistributionItemsBindAPIRequest struct { + model.Params + // 商品id列表 + _targetEntityList []string + // 投放的商家应用完整链接 + _url string + // true表示新增绑定,false表示解绑 + _addBind bool +} + +// 初始化TaobaoMiniappDistributionItemsBindAPIRequest对象 +func NewTaobaoMiniappDistributionItemsBindRequest() *TaobaoMiniappDistributionItemsBindAPIRequest{ + return &TaobaoMiniappDistributionItemsBindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappDistributionItemsBindAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.distribution.items.bind" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappDistributionItemsBindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TargetEntityList Setter +// 商品id列表 +func (r *TaobaoMiniappDistributionItemsBindAPIRequest) SetTargetEntityList(_targetEntityList []string) error { + r._targetEntityList = _targetEntityList + r.Set("target_entity_list", _targetEntityList) + return nil +} + +// TargetEntityList Getter +func (r TaobaoMiniappDistributionItemsBindAPIRequest) GetTargetEntityList() []string { + return r._targetEntityList +} +// Url Setter +// 投放的商家应用完整链接 +func (r *TaobaoMiniappDistributionItemsBindAPIRequest) SetUrl(_url string) error { + r._url = _url + r.Set("url", _url) + return nil +} + +// Url Getter +func (r TaobaoMiniappDistributionItemsBindAPIRequest) GetUrl() string { + return r._url +} +// AddBind Setter +// true表示新增绑定,false表示解绑 +func (r *TaobaoMiniappDistributionItemsBindAPIRequest) SetAddBind(_addBind bool) error { + r._addBind = _addBind + r.Set("add_bind", _addBind) + return nil +} + +// AddBind Getter +func (r TaobaoMiniappDistributionItemsBindAPIRequest) GetAddBind() bool { + return r._addBind +} diff --git a/model/miniappopen/TaobaoMiniappDistributionItemsBindAPIResponse.go b/model/miniappopen/TaobaoMiniappDistributionItemsBindAPIResponse.go new file mode 100644 index 0000000000..e42e4abc1f --- /dev/null +++ b/model/miniappopen/TaobaoMiniappDistributionItemsBindAPIResponse.go @@ -0,0 +1,27 @@ +package miniappopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +小程序投放-商品绑定/解绑 API返回值 +taobao.miniapp.distribution.items.bind + +提供给使用了投放插件的服务商,可以调用该API实现帮助商家更新已创建的投放单中的绑定商品信息。 +*/ +type TaobaoMiniappDistributionItemsBindAPIResponse struct { + model.CommonResponse + TaobaoMiniappDistributionItemsBindAPIResponseModel +} + +// 小程序投放-商品绑定/解绑 成功返回结果 +type TaobaoMiniappDistributionItemsBindAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_distribution_items_bind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 绑定的结果列表 + ModelList []DistributionOrderBindTargetEntityOpenResultDto `json:"model_list,omitempty" xml:"model_list>distribution_order_bind_target_entity_open_result_dto,omitempty"` +} diff --git a/model/miniappopen/TaobaoMiniappDistributionItemsBindResponse.go b/model/miniappopen/TaobaoMiniappDistributionItemsBindResponse.go deleted file mode 100644 index d920565c22..0000000000 --- a/model/miniappopen/TaobaoMiniappDistributionItemsBindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package miniappopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -小程序投放-商品绑定/解绑 API返回值 -taobao.miniapp.distribution.items.bind - -提供给使用了投放插件的服务商,可以调用该API实现帮助商家更新已创建的投放单中的绑定商品信息。 -*/ -type TaobaoMiniappDistributionItemsBindAPIResponse struct { - model.CommonResponse - TaobaoMiniappDistributionItemsBindResponse -} - -// 小程序投放-商品绑定/解绑 成功返回结果 -type TaobaoMiniappDistributionItemsBindResponse struct { - XMLName xml.Name `xml:"miniapp_distribution_items_bind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 绑定的结果列表 - ModelList []DistributionOrderBindTargetEntityOpenResultDto `json:"model_list,omitempty" xml:"model_list>distribution_order_bind_target_entity_open_result_dto,omitempty"` -} diff --git a/model/miniappopen/TaobaoMiniappDistributionOrderCreateAPIRequest.go b/model/miniappopen/TaobaoMiniappDistributionOrderCreateAPIRequest.go new file mode 100644 index 0000000000..e561125114 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappDistributionOrderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package miniappopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建小程序投放计划 API请求 +taobao.miniapp.distribution.order.create + +帮助商家,创建小程序的投放计划。 +*/ +type TaobaoMiniappDistributionOrderCreateAPIRequest struct { + model.Params + // 投放计划信息 + _orderRequest *DistributionOrderSaveOpenRequest +} + +// 初始化TaobaoMiniappDistributionOrderCreateAPIRequest对象 +func NewTaobaoMiniappDistributionOrderCreateRequest() *TaobaoMiniappDistributionOrderCreateAPIRequest{ + return &TaobaoMiniappDistributionOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappDistributionOrderCreateAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.distribution.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappDistributionOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderRequest Setter +// 投放计划信息 +func (r *TaobaoMiniappDistributionOrderCreateAPIRequest) SetOrderRequest(_orderRequest *DistributionOrderSaveOpenRequest) error { + r._orderRequest = _orderRequest + r.Set("order_request", _orderRequest) + return nil +} + +// OrderRequest Getter +func (r TaobaoMiniappDistributionOrderCreateAPIRequest) GetOrderRequest() *DistributionOrderSaveOpenRequest { + return r._orderRequest +} diff --git a/model/miniappopen/TaobaoMiniappDistributionOrderCreateAPIResponse.go b/model/miniappopen/TaobaoMiniappDistributionOrderCreateAPIResponse.go new file mode 100644 index 0000000000..5059aa1f6e --- /dev/null +++ b/model/miniappopen/TaobaoMiniappDistributionOrderCreateAPIResponse.go @@ -0,0 +1,33 @@ +package miniappopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建小程序投放计划 API返回值 +taobao.miniapp.distribution.order.create + +帮助商家,创建小程序的投放计划。 +*/ +type TaobaoMiniappDistributionOrderCreateAPIResponse struct { + model.CommonResponse + TaobaoMiniappDistributionOrderCreateAPIResponseModel +} + +// 创建小程序投放计划 成功返回结果 +type TaobaoMiniappDistributionOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_distribution_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用是否成功 + OrderSuccess bool `json:"order_success,omitempty" xml:"order_success,omitempty"` + // 错误码 + OrderErrorCode int64 `json:"order_error_code,omitempty" xml:"order_error_code,omitempty"` + // 错误信息 + OrderErrorInfo string `json:"order_error_info,omitempty" xml:"order_error_info,omitempty"` + // 创建成功的投放计划id + Model int64 `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/miniappopen/TaobaoMiniappDistributionOrderCreateResponse.go b/model/miniappopen/TaobaoMiniappDistributionOrderCreateResponse.go deleted file mode 100644 index 9020028ae6..0000000000 --- a/model/miniappopen/TaobaoMiniappDistributionOrderCreateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package miniappopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建小程序投放计划 API返回值 -taobao.miniapp.distribution.order.create - -帮助商家,创建小程序的投放计划。 -*/ -type TaobaoMiniappDistributionOrderCreateAPIResponse struct { - model.CommonResponse - TaobaoMiniappDistributionOrderCreateResponse -} - -// 创建小程序投放计划 成功返回结果 -type TaobaoMiniappDistributionOrderCreateResponse struct { - XMLName xml.Name `xml:"miniapp_distribution_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用是否成功 - OrderSuccess bool `json:"order_success,omitempty" xml:"order_success,omitempty"` - // 错误码 - OrderErrorCode int64 `json:"order_error_code,omitempty" xml:"order_error_code,omitempty"` - // 错误信息 - OrderErrorInfo string `json:"order_error_info,omitempty" xml:"order_error_info,omitempty"` - // 创建成功的投放计划id - Model int64 `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/miniappopen/TaobaoMiniappDistributionOrderGetAPIRequest.go b/model/miniappopen/TaobaoMiniappDistributionOrderGetAPIRequest.go new file mode 100644 index 0000000000..2ed45dac9a --- /dev/null +++ b/model/miniappopen/TaobaoMiniappDistributionOrderGetAPIRequest.go @@ -0,0 +1,52 @@ +package miniappopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +小程序投放-查询小程序投放计划信息 API请求 +taobao.miniapp.distribution.order.get + +服务商可通过该API,读取自己开发的小程序对应的投放计划的相关信息 +*/ +type TaobaoMiniappDistributionOrderGetAPIRequest struct { + model.Params + // 查询入参 + _orderIdRequest *DistributionOrderQueryByIdOpenRequest +} + +// 初始化TaobaoMiniappDistributionOrderGetAPIRequest对象 +func NewTaobaoMiniappDistributionOrderGetRequest() *TaobaoMiniappDistributionOrderGetAPIRequest{ + return &TaobaoMiniappDistributionOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappDistributionOrderGetAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.distribution.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappDistributionOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderIdRequest Setter +// 查询入参 +func (r *TaobaoMiniappDistributionOrderGetAPIRequest) SetOrderIdRequest(_orderIdRequest *DistributionOrderQueryByIdOpenRequest) error { + r._orderIdRequest = _orderIdRequest + r.Set("order_id_request", _orderIdRequest) + return nil +} + +// OrderIdRequest Getter +func (r TaobaoMiniappDistributionOrderGetAPIRequest) GetOrderIdRequest() *DistributionOrderQueryByIdOpenRequest { + return r._orderIdRequest +} diff --git a/model/miniappopen/TaobaoMiniappDistributionOrderGetAPIResponse.go b/model/miniappopen/TaobaoMiniappDistributionOrderGetAPIResponse.go new file mode 100644 index 0000000000..7833ad7335 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappDistributionOrderGetAPIResponse.go @@ -0,0 +1,27 @@ +package miniappopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +小程序投放-查询小程序投放计划信息 API返回值 +taobao.miniapp.distribution.order.get + +服务商可通过该API,读取自己开发的小程序对应的投放计划的相关信息 +*/ +type TaobaoMiniappDistributionOrderGetAPIResponse struct { + model.CommonResponse + TaobaoMiniappDistributionOrderGetAPIResponseModel +} + +// 小程序投放-查询小程序投放计划信息 成功返回结果 +type TaobaoMiniappDistributionOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_distribution_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 投放计划列表的详细信息 + Model []DistributionOrderOpenBizDto `json:"model,omitempty" xml:"model>distribution_order_open_biz_dto,omitempty"` +} diff --git a/model/miniappopen/TaobaoMiniappDistributionOrderGetResponse.go b/model/miniappopen/TaobaoMiniappDistributionOrderGetResponse.go deleted file mode 100644 index 7934082eb3..0000000000 --- a/model/miniappopen/TaobaoMiniappDistributionOrderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package miniappopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -小程序投放-查询小程序投放计划信息 API返回值 -taobao.miniapp.distribution.order.get - -服务商可通过该API,读取自己开发的小程序对应的投放计划的相关信息 -*/ -type TaobaoMiniappDistributionOrderGetAPIResponse struct { - model.CommonResponse - TaobaoMiniappDistributionOrderGetResponse -} - -// 小程序投放-查询小程序投放计划信息 成功返回结果 -type TaobaoMiniappDistributionOrderGetResponse struct { - XMLName xml.Name `xml:"miniapp_distribution_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 投放计划列表的详细信息 - Model []DistributionOrderOpenBizDto `json:"model,omitempty" xml:"model>distribution_order_open_biz_dto,omitempty"` -} diff --git a/model/miniappopen/TaobaoMiniappDistributionOrderItemsAllBindAPIRequest.go b/model/miniappopen/TaobaoMiniappDistributionOrderItemsAllBindAPIRequest.go new file mode 100644 index 0000000000..1ba93d5e51 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappDistributionOrderItemsAllBindAPIRequest.go @@ -0,0 +1,52 @@ +package miniappopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +小程序投放-基于投放计划绑定/解绑全店商品 API请求 +taobao.miniapp.distribution.order.items.all.bind + +提供给使用了投放插件的服务商,可以调用该API实现帮助商家更新已创建的投放单中的绑定商品信息。该接口对应的能力是全店投放,该能力的使用,需要联系平台运营进行人工申请,申请通过以后方可调用成功。 +*/ +type TaobaoMiniappDistributionOrderItemsAllBindAPIRequest struct { + model.Params + // 绑定/解绑的入参信息 + _allItemBindRequest *DistributionOrderBindTargetEntityOpenRequestV2 +} + +// 初始化TaobaoMiniappDistributionOrderItemsAllBindAPIRequest对象 +func NewTaobaoMiniappDistributionOrderItemsAllBindRequest() *TaobaoMiniappDistributionOrderItemsAllBindAPIRequest{ + return &TaobaoMiniappDistributionOrderItemsAllBindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappDistributionOrderItemsAllBindAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.distribution.order.items.all.bind" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappDistributionOrderItemsAllBindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AllItemBindRequest Setter +// 绑定/解绑的入参信息 +func (r *TaobaoMiniappDistributionOrderItemsAllBindAPIRequest) SetAllItemBindRequest(_allItemBindRequest *DistributionOrderBindTargetEntityOpenRequestV2) error { + r._allItemBindRequest = _allItemBindRequest + r.Set("all_item_bind_request", _allItemBindRequest) + return nil +} + +// AllItemBindRequest Getter +func (r TaobaoMiniappDistributionOrderItemsAllBindAPIRequest) GetAllItemBindRequest() *DistributionOrderBindTargetEntityOpenRequestV2 { + return r._allItemBindRequest +} diff --git a/model/miniappopen/TaobaoMiniappDistributionOrderItemsAllBindAPIResponse.go b/model/miniappopen/TaobaoMiniappDistributionOrderItemsAllBindAPIResponse.go new file mode 100644 index 0000000000..ad37eca238 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappDistributionOrderItemsAllBindAPIResponse.go @@ -0,0 +1,27 @@ +package miniappopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +小程序投放-基于投放计划绑定/解绑全店商品 API返回值 +taobao.miniapp.distribution.order.items.all.bind + +提供给使用了投放插件的服务商,可以调用该API实现帮助商家更新已创建的投放单中的绑定商品信息。该接口对应的能力是全店投放,该能力的使用,需要联系平台运营进行人工申请,申请通过以后方可调用成功。 +*/ +type TaobaoMiniappDistributionOrderItemsAllBindAPIResponse struct { + model.CommonResponse + TaobaoMiniappDistributionOrderItemsAllBindAPIResponseModel +} + +// 小程序投放-基于投放计划绑定/解绑全店商品 成功返回结果 +type TaobaoMiniappDistributionOrderItemsAllBindAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_distribution_order_items_all_bind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否绑定/解绑成功 + Model bool `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/miniappopen/TaobaoMiniappDistributionOrderItemsAllBindResponse.go b/model/miniappopen/TaobaoMiniappDistributionOrderItemsAllBindResponse.go deleted file mode 100644 index af9a719caa..0000000000 --- a/model/miniappopen/TaobaoMiniappDistributionOrderItemsAllBindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package miniappopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -小程序投放-基于投放计划绑定/解绑全店商品 API返回值 -taobao.miniapp.distribution.order.items.all.bind - -提供给使用了投放插件的服务商,可以调用该API实现帮助商家更新已创建的投放单中的绑定商品信息。该接口对应的能力是全店投放,该能力的使用,需要联系平台运营进行人工申请,申请通过以后方可调用成功。 -*/ -type TaobaoMiniappDistributionOrderItemsAllBindAPIResponse struct { - model.CommonResponse - TaobaoMiniappDistributionOrderItemsAllBindResponse -} - -// 小程序投放-基于投放计划绑定/解绑全店商品 成功返回结果 -type TaobaoMiniappDistributionOrderItemsAllBindResponse struct { - XMLName xml.Name `xml:"miniapp_distribution_order_items_all_bind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否绑定/解绑成功 - Model bool `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/miniappopen/TaobaoMiniappDistributionOrderItemsBindAPIRequest.go b/model/miniappopen/TaobaoMiniappDistributionOrderItemsBindAPIRequest.go new file mode 100644 index 0000000000..ec1243a2ba --- /dev/null +++ b/model/miniappopen/TaobaoMiniappDistributionOrderItemsBindAPIRequest.go @@ -0,0 +1,80 @@ +package miniappopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +小程序投放-基于投放计划绑定/解绑商品 API请求 +taobao.miniapp.distribution.order.items.bind + +提供给使用了投放插件的服务商,可以调用该API实现帮助商家更新已创建的投放单中的绑定商品信息。 +*/ +type TaobaoMiniappDistributionOrderItemsBindAPIRequest struct { + model.Params + // 商品id列表 + _targetEntityList []string + // true表示新增绑定,false表示解绑 + _addBind bool + // 投放计划标识id + _distributeId int64 +} + +// 初始化TaobaoMiniappDistributionOrderItemsBindAPIRequest对象 +func NewTaobaoMiniappDistributionOrderItemsBindRequest() *TaobaoMiniappDistributionOrderItemsBindAPIRequest{ + return &TaobaoMiniappDistributionOrderItemsBindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappDistributionOrderItemsBindAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.distribution.order.items.bind" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappDistributionOrderItemsBindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TargetEntityList Setter +// 商品id列表 +func (r *TaobaoMiniappDistributionOrderItemsBindAPIRequest) SetTargetEntityList(_targetEntityList []string) error { + r._targetEntityList = _targetEntityList + r.Set("target_entity_list", _targetEntityList) + return nil +} + +// TargetEntityList Getter +func (r TaobaoMiniappDistributionOrderItemsBindAPIRequest) GetTargetEntityList() []string { + return r._targetEntityList +} +// AddBind Setter +// true表示新增绑定,false表示解绑 +func (r *TaobaoMiniappDistributionOrderItemsBindAPIRequest) SetAddBind(_addBind bool) error { + r._addBind = _addBind + r.Set("add_bind", _addBind) + return nil +} + +// AddBind Getter +func (r TaobaoMiniappDistributionOrderItemsBindAPIRequest) GetAddBind() bool { + return r._addBind +} +// DistributeId Setter +// 投放计划标识id +func (r *TaobaoMiniappDistributionOrderItemsBindAPIRequest) SetDistributeId(_distributeId int64) error { + r._distributeId = _distributeId + r.Set("distribute_id", _distributeId) + return nil +} + +// DistributeId Getter +func (r TaobaoMiniappDistributionOrderItemsBindAPIRequest) GetDistributeId() int64 { + return r._distributeId +} diff --git a/model/miniappopen/TaobaoMiniappDistributionOrderItemsBindAPIResponse.go b/model/miniappopen/TaobaoMiniappDistributionOrderItemsBindAPIResponse.go new file mode 100644 index 0000000000..5df82767e1 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappDistributionOrderItemsBindAPIResponse.go @@ -0,0 +1,27 @@ +package miniappopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +小程序投放-基于投放计划绑定/解绑商品 API返回值 +taobao.miniapp.distribution.order.items.bind + +提供给使用了投放插件的服务商,可以调用该API实现帮助商家更新已创建的投放单中的绑定商品信息。 +*/ +type TaobaoMiniappDistributionOrderItemsBindAPIResponse struct { + model.CommonResponse + TaobaoMiniappDistributionOrderItemsBindAPIResponseModel +} + +// 小程序投放-基于投放计划绑定/解绑商品 成功返回结果 +type TaobaoMiniappDistributionOrderItemsBindAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_distribution_order_items_bind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 绑定的结果 + Model *DistributionOrderBindTargetEntityOpenResultDto `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/miniappopen/TaobaoMiniappDistributionOrderItemsBindResponse.go b/model/miniappopen/TaobaoMiniappDistributionOrderItemsBindResponse.go deleted file mode 100644 index 3f354b570d..0000000000 --- a/model/miniappopen/TaobaoMiniappDistributionOrderItemsBindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package miniappopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -小程序投放-基于投放计划绑定/解绑商品 API返回值 -taobao.miniapp.distribution.order.items.bind - -提供给使用了投放插件的服务商,可以调用该API实现帮助商家更新已创建的投放单中的绑定商品信息。 -*/ -type TaobaoMiniappDistributionOrderItemsBindAPIResponse struct { - model.CommonResponse - TaobaoMiniappDistributionOrderItemsBindResponse -} - -// 小程序投放-基于投放计划绑定/解绑商品 成功返回结果 -type TaobaoMiniappDistributionOrderItemsBindResponse struct { - XMLName xml.Name `xml:"miniapp_distribution_order_items_bind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 绑定的结果 - Model *DistributionOrderBindTargetEntityOpenResultDto `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/miniappopen/TaobaoMiniappShorturlCreateAPIRequest.go b/model/miniappopen/TaobaoMiniappShorturlCreateAPIRequest.go new file mode 100644 index 0000000000..3affc3fa07 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappShorturlCreateAPIRequest.go @@ -0,0 +1,53 @@ +package miniappopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +生成淘宝小程序短链接 API请求 +taobao.miniapp.shorturl.create + +提供淘宝小程序短链接生成的能力,只允许对淘宝小程序对应的域名:https://m.duanqu.com/ 生成对应的短链接,其他域名无效 +【特别注意:短链接有效期为30天,超过时效短链接将无法正常跳转到原始链接地址,请勿将短链接投放或装修到长期存在的入口】 +*/ +type TaobaoMiniappShorturlCreateAPIRequest struct { + model.Params + // 小程序链接地址。说明:链接地址,只允许https协议,域名只支持m.duanqu.com,链接必须包含_ariver_appid参数,链接不能够包含spm、short_name、app、tb_url_time_stamp这些系统保留参数 + _miniappUrl string +} + +// 初始化TaobaoMiniappShorturlCreateAPIRequest对象 +func NewTaobaoMiniappShorturlCreateRequest() *TaobaoMiniappShorturlCreateAPIRequest{ + return &TaobaoMiniappShorturlCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappShorturlCreateAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.shorturl.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappShorturlCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MiniappUrl Setter +// 小程序链接地址。说明:链接地址,只允许https协议,域名只支持m.duanqu.com,链接必须包含_ariver_appid参数,链接不能够包含spm、short_name、app、tb_url_time_stamp这些系统保留参数 +func (r *TaobaoMiniappShorturlCreateAPIRequest) SetMiniappUrl(_miniappUrl string) error { + r._miniappUrl = _miniappUrl + r.Set("miniapp_url", _miniappUrl) + return nil +} + +// MiniappUrl Getter +func (r TaobaoMiniappShorturlCreateAPIRequest) GetMiniappUrl() string { + return r._miniappUrl +} diff --git a/model/miniappopen/TaobaoMiniappShorturlCreateAPIResponse.go b/model/miniappopen/TaobaoMiniappShorturlCreateAPIResponse.go new file mode 100644 index 0000000000..431c752fe1 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappShorturlCreateAPIResponse.go @@ -0,0 +1,28 @@ +package miniappopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +生成淘宝小程序短链接 API返回值 +taobao.miniapp.shorturl.create + +提供淘宝小程序短链接生成的能力,只允许对淘宝小程序对应的域名:https://m.duanqu.com/ 生成对应的短链接,其他域名无效 +【特别注意:短链接有效期为30天,超过时效短链接将无法正常跳转到原始链接地址,请勿将短链接投放或装修到长期存在的入口】 +*/ +type TaobaoMiniappShorturlCreateAPIResponse struct { + model.CommonResponse + TaobaoMiniappShorturlCreateAPIResponseModel +} + +// 生成淘宝小程序短链接 成功返回结果 +type TaobaoMiniappShorturlCreateAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_shorturl_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoMiniappShorturlCreateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/miniappopen/TaobaoMiniappShorturlCreateResponse.go b/model/miniappopen/TaobaoMiniappShorturlCreateResponse.go deleted file mode 100644 index 0a4967a9f4..0000000000 --- a/model/miniappopen/TaobaoMiniappShorturlCreateResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package miniappopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -生成淘宝小程序短链接 API返回值 -taobao.miniapp.shorturl.create - -提供淘宝小程序短链接生成的能力,只允许对淘宝小程序对应的域名:https://m.duanqu.com/ 生成对应的短链接,其他域名无效 -【特别注意:短链接有效期为30天,超过时效短链接将无法正常跳转到原始链接地址,请勿将短链接投放或装修到长期存在的入口】 -*/ -type TaobaoMiniappShorturlCreateAPIResponse struct { - model.CommonResponse - TaobaoMiniappShorturlCreateResponse -} - -// 生成淘宝小程序短链接 成功返回结果 -type TaobaoMiniappShorturlCreateResponse struct { - XMLName xml.Name `xml:"miniapp_shorturl_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoMiniappShorturlCreateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/miniappopen/TaobaoMiniappTemplateInstantiateAPIRequest.go b/model/miniappopen/TaobaoMiniappTemplateInstantiateAPIRequest.go new file mode 100644 index 0000000000..595d66ab21 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappTemplateInstantiateAPIRequest.go @@ -0,0 +1,150 @@ +package miniappopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +构建实例化应用 API请求 +taobao.miniapp.template.instantiate + +实例化saas化的小程序 +*/ +type TaobaoMiniappTemplateInstantiateAPIRequest struct { + model.Params + // 投放端,目前可投放: taobao(淘宝),tmall(天猫),taobao为必填,需要模板在这些端上已经发布上线 + _clients []string + // 描述长度(9~200) + _description string + // 扩展信息,JSON格式。 + _extJson string + // 小程序icon + _icon string + // 小程序名称按平台规则自动生成,该字段仅做兜底使用。 + _name string + // 模板id + _templateId string + // 模板版本 + _templateVersion string + // 小程序简称【1-16】字符,可重名 + _alias string +} + +// 初始化TaobaoMiniappTemplateInstantiateAPIRequest对象 +func NewTaobaoMiniappTemplateInstantiateRequest() *TaobaoMiniappTemplateInstantiateAPIRequest{ + return &TaobaoMiniappTemplateInstantiateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappTemplateInstantiateAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.template.instantiate" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappTemplateInstantiateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Clients Setter +// 投放端,目前可投放: taobao(淘宝),tmall(天猫),taobao为必填,需要模板在这些端上已经发布上线 +func (r *TaobaoMiniappTemplateInstantiateAPIRequest) SetClients(_clients []string) error { + r._clients = _clients + r.Set("clients", _clients) + return nil +} + +// Clients Getter +func (r TaobaoMiniappTemplateInstantiateAPIRequest) GetClients() []string { + return r._clients +} +// Description Setter +// 描述长度(9~200) +func (r *TaobaoMiniappTemplateInstantiateAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r TaobaoMiniappTemplateInstantiateAPIRequest) GetDescription() string { + return r._description +} +// ExtJson Setter +// 扩展信息,JSON格式。 +func (r *TaobaoMiniappTemplateInstantiateAPIRequest) SetExtJson(_extJson string) error { + r._extJson = _extJson + r.Set("ext_json", _extJson) + return nil +} + +// ExtJson Getter +func (r TaobaoMiniappTemplateInstantiateAPIRequest) GetExtJson() string { + return r._extJson +} +// Icon Setter +// 小程序icon +func (r *TaobaoMiniappTemplateInstantiateAPIRequest) SetIcon(_icon string) error { + r._icon = _icon + r.Set("icon", _icon) + return nil +} + +// Icon Getter +func (r TaobaoMiniappTemplateInstantiateAPIRequest) GetIcon() string { + return r._icon +} +// Name Setter +// 小程序名称按平台规则自动生成,该字段仅做兜底使用。 +func (r *TaobaoMiniappTemplateInstantiateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoMiniappTemplateInstantiateAPIRequest) GetName() string { + return r._name +} +// TemplateId Setter +// 模板id +func (r *TaobaoMiniappTemplateInstantiateAPIRequest) SetTemplateId(_templateId string) error { + r._templateId = _templateId + r.Set("template_id", _templateId) + return nil +} + +// TemplateId Getter +func (r TaobaoMiniappTemplateInstantiateAPIRequest) GetTemplateId() string { + return r._templateId +} +// TemplateVersion Setter +// 模板版本 +func (r *TaobaoMiniappTemplateInstantiateAPIRequest) SetTemplateVersion(_templateVersion string) error { + r._templateVersion = _templateVersion + r.Set("template_version", _templateVersion) + return nil +} + +// TemplateVersion Getter +func (r TaobaoMiniappTemplateInstantiateAPIRequest) GetTemplateVersion() string { + return r._templateVersion +} +// Alias Setter +// 小程序简称【1-16】字符,可重名 +func (r *TaobaoMiniappTemplateInstantiateAPIRequest) SetAlias(_alias string) error { + r._alias = _alias + r.Set("alias", _alias) + return nil +} + +// Alias Getter +func (r TaobaoMiniappTemplateInstantiateAPIRequest) GetAlias() string { + return r._alias +} diff --git a/model/miniappopen/TaobaoMiniappTemplateInstantiateAPIResponse.go b/model/miniappopen/TaobaoMiniappTemplateInstantiateAPIResponse.go new file mode 100644 index 0000000000..17b4e15a72 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappTemplateInstantiateAPIResponse.go @@ -0,0 +1,41 @@ +package miniappopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +构建实例化应用 API返回值 +taobao.miniapp.template.instantiate + +实例化saas化的小程序 +*/ +type TaobaoMiniappTemplateInstantiateAPIResponse struct { + model.CommonResponse + TaobaoMiniappTemplateInstantiateAPIResponseModel +} + +// 构建实例化应用 成功返回结果 +type TaobaoMiniappTemplateInstantiateAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_template_instantiate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // appkey + Appkey string `json:"appkey,omitempty" xml:"appkey,omitempty"` + // 小程序app_id + AppId string `json:"app_id,omitempty" xml:"app_id,omitempty"` + // 小程序名称按平台规则自动生成。在授权弹窗标题、「关于」页面展示名称。 + AppName string `json:"app_name,omitempty" xml:"app_name,omitempty"` + // 小程序描述 + AppDescription string `json:"app_description,omitempty" xml:"app_description,omitempty"` + // 小程序icon + AppIcon string `json:"app_icon,omitempty" xml:"app_icon,omitempty"` + // 当前新生成的预览版本的链接,仅当前商家有权限预览。 + PreViewUrl string `json:"pre_view_url,omitempty" xml:"pre_view_url,omitempty"` + // 当前新生成的预览版本号 + AppVersion string `json:"app_version,omitempty" xml:"app_version,omitempty"` + // 小程序简称。在小程序Loading动画、首页标题、「更多」菜单标题上优先展示简称。 + AppAlias string `json:"app_alias,omitempty" xml:"app_alias,omitempty"` +} diff --git a/model/miniappopen/TaobaoMiniappTemplateInstantiateResponse.go b/model/miniappopen/TaobaoMiniappTemplateInstantiateResponse.go deleted file mode 100644 index 00e87d5bc3..0000000000 --- a/model/miniappopen/TaobaoMiniappTemplateInstantiateResponse.go +++ /dev/null @@ -1,41 +0,0 @@ -package miniappopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -构建实例化应用 API返回值 -taobao.miniapp.template.instantiate - -实例化saas化的小程序 -*/ -type TaobaoMiniappTemplateInstantiateAPIResponse struct { - model.CommonResponse - TaobaoMiniappTemplateInstantiateResponse -} - -// 构建实例化应用 成功返回结果 -type TaobaoMiniappTemplateInstantiateResponse struct { - XMLName xml.Name `xml:"miniapp_template_instantiate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // appkey - Appkey string `json:"appkey,omitempty" xml:"appkey,omitempty"` - // 小程序app_id - AppId string `json:"app_id,omitempty" xml:"app_id,omitempty"` - // 小程序名称按平台规则自动生成。在授权弹窗标题、「关于」页面展示名称。 - AppName string `json:"app_name,omitempty" xml:"app_name,omitempty"` - // 小程序描述 - AppDescription string `json:"app_description,omitempty" xml:"app_description,omitempty"` - // 小程序icon - AppIcon string `json:"app_icon,omitempty" xml:"app_icon,omitempty"` - // 当前新生成的预览版本的链接,仅当前商家有权限预览。 - PreViewUrl string `json:"pre_view_url,omitempty" xml:"pre_view_url,omitempty"` - // 当前新生成的预览版本号 - AppVersion string `json:"app_version,omitempty" xml:"app_version,omitempty"` - // 小程序简称。在小程序Loading动画、首页标题、「更多」菜单标题上优先展示简称。 - AppAlias string `json:"app_alias,omitempty" xml:"app_alias,omitempty"` -} diff --git a/model/miniappopen/TaobaoMiniappTemplateOfflineappAPIRequest.go b/model/miniappopen/TaobaoMiniappTemplateOfflineappAPIRequest.go new file mode 100644 index 0000000000..10caeff6be --- /dev/null +++ b/model/miniappopen/TaobaoMiniappTemplateOfflineappAPIRequest.go @@ -0,0 +1,94 @@ +package miniappopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +下线实例化应用 API请求 +taobao.miniapp.template.offlineapp + +对指定的实例化小程序进行下线,需要指定clients和app_version +*/ +type TaobaoMiniappTemplateOfflineappAPIRequest struct { + model.Params + // 要下线的投放端,目前可投放: taobao(淘宝),tmall(天猫) + _clients []string + // 要下线的小程序app_id + _appId string + // 要下线的小程序版本号 + _appVersion string + // 模板id + _templateId string +} + +// 初始化TaobaoMiniappTemplateOfflineappAPIRequest对象 +func NewTaobaoMiniappTemplateOfflineappRequest() *TaobaoMiniappTemplateOfflineappAPIRequest{ + return &TaobaoMiniappTemplateOfflineappAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappTemplateOfflineappAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.template.offlineapp" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappTemplateOfflineappAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Clients Setter +// 要下线的投放端,目前可投放: taobao(淘宝),tmall(天猫) +func (r *TaobaoMiniappTemplateOfflineappAPIRequest) SetClients(_clients []string) error { + r._clients = _clients + r.Set("clients", _clients) + return nil +} + +// Clients Getter +func (r TaobaoMiniappTemplateOfflineappAPIRequest) GetClients() []string { + return r._clients +} +// AppId Setter +// 要下线的小程序app_id +func (r *TaobaoMiniappTemplateOfflineappAPIRequest) SetAppId(_appId string) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r TaobaoMiniappTemplateOfflineappAPIRequest) GetAppId() string { + return r._appId +} +// AppVersion Setter +// 要下线的小程序版本号 +func (r *TaobaoMiniappTemplateOfflineappAPIRequest) SetAppVersion(_appVersion string) error { + r._appVersion = _appVersion + r.Set("app_version", _appVersion) + return nil +} + +// AppVersion Getter +func (r TaobaoMiniappTemplateOfflineappAPIRequest) GetAppVersion() string { + return r._appVersion +} +// TemplateId Setter +// 模板id +func (r *TaobaoMiniappTemplateOfflineappAPIRequest) SetTemplateId(_templateId string) error { + r._templateId = _templateId + r.Set("template_id", _templateId) + return nil +} + +// TemplateId Getter +func (r TaobaoMiniappTemplateOfflineappAPIRequest) GetTemplateId() string { + return r._templateId +} diff --git a/model/miniappopen/TaobaoMiniappTemplateOfflineappAPIResponse.go b/model/miniappopen/TaobaoMiniappTemplateOfflineappAPIResponse.go new file mode 100644 index 0000000000..4d1faae898 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappTemplateOfflineappAPIResponse.go @@ -0,0 +1,29 @@ +package miniappopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +下线实例化应用 API返回值 +taobao.miniapp.template.offlineapp + +对指定的实例化小程序进行下线,需要指定clients和app_version +*/ +type TaobaoMiniappTemplateOfflineappAPIResponse struct { + model.CommonResponse + TaobaoMiniappTemplateOfflineappAPIResponseModel +} + +// 下线实例化应用 成功返回结果 +type TaobaoMiniappTemplateOfflineappAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_template_offlineapp_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 各端的下线结果 + OfflineResults []MiniappInstanceAppOfflineDto `json:"offline_results,omitempty" xml:"offline_results>miniapp_instance_app_offline_dto,omitempty"` + // 下线的appId + AppId string `json:"app_id,omitempty" xml:"app_id,omitempty"` +} diff --git a/model/miniappopen/TaobaoMiniappTemplateOfflineappResponse.go b/model/miniappopen/TaobaoMiniappTemplateOfflineappResponse.go deleted file mode 100644 index e99e14df50..0000000000 --- a/model/miniappopen/TaobaoMiniappTemplateOfflineappResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package miniappopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -下线实例化应用 API返回值 -taobao.miniapp.template.offlineapp - -对指定的实例化小程序进行下线,需要指定clients和app_version -*/ -type TaobaoMiniappTemplateOfflineappAPIResponse struct { - model.CommonResponse - TaobaoMiniappTemplateOfflineappResponse -} - -// 下线实例化应用 成功返回结果 -type TaobaoMiniappTemplateOfflineappResponse struct { - XMLName xml.Name `xml:"miniapp_template_offlineapp_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 各端的下线结果 - OfflineResults []MiniappInstanceAppOfflineDto `json:"offline_results,omitempty" xml:"offline_results>miniapp_instance_app_offline_dto,omitempty"` - // 下线的appId - AppId string `json:"app_id,omitempty" xml:"app_id,omitempty"` -} diff --git a/model/miniappopen/TaobaoMiniappTemplateOnlineappAPIRequest.go b/model/miniappopen/TaobaoMiniappTemplateOnlineappAPIRequest.go new file mode 100644 index 0000000000..56dffabc33 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappTemplateOnlineappAPIRequest.go @@ -0,0 +1,108 @@ +package miniappopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上线实例化应用 API请求 +taobao.miniapp.template.onlineapp + +将指定的预览版本发布上线,预览版本号由构建实例化或更新实例化接口返回。 +*/ +type TaobaoMiniappTemplateOnlineappAPIRequest struct { + model.Params + // 要更新的投放端,目前可投放: taobao(淘宝),tmall(天猫) + _clients []string + // 小程序app_id + _appId string + // 模板id + _templateId string + // 模板版本 + _templateVersion string + // 待上线的预览版本号 + _appVersion string +} + +// 初始化TaobaoMiniappTemplateOnlineappAPIRequest对象 +func NewTaobaoMiniappTemplateOnlineappRequest() *TaobaoMiniappTemplateOnlineappAPIRequest{ + return &TaobaoMiniappTemplateOnlineappAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappTemplateOnlineappAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.template.onlineapp" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappTemplateOnlineappAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Clients Setter +// 要更新的投放端,目前可投放: taobao(淘宝),tmall(天猫) +func (r *TaobaoMiniappTemplateOnlineappAPIRequest) SetClients(_clients []string) error { + r._clients = _clients + r.Set("clients", _clients) + return nil +} + +// Clients Getter +func (r TaobaoMiniappTemplateOnlineappAPIRequest) GetClients() []string { + return r._clients +} +// AppId Setter +// 小程序app_id +func (r *TaobaoMiniappTemplateOnlineappAPIRequest) SetAppId(_appId string) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r TaobaoMiniappTemplateOnlineappAPIRequest) GetAppId() string { + return r._appId +} +// TemplateId Setter +// 模板id +func (r *TaobaoMiniappTemplateOnlineappAPIRequest) SetTemplateId(_templateId string) error { + r._templateId = _templateId + r.Set("template_id", _templateId) + return nil +} + +// TemplateId Getter +func (r TaobaoMiniappTemplateOnlineappAPIRequest) GetTemplateId() string { + return r._templateId +} +// TemplateVersion Setter +// 模板版本 +func (r *TaobaoMiniappTemplateOnlineappAPIRequest) SetTemplateVersion(_templateVersion string) error { + r._templateVersion = _templateVersion + r.Set("template_version", _templateVersion) + return nil +} + +// TemplateVersion Getter +func (r TaobaoMiniappTemplateOnlineappAPIRequest) GetTemplateVersion() string { + return r._templateVersion +} +// AppVersion Setter +// 待上线的预览版本号 +func (r *TaobaoMiniappTemplateOnlineappAPIRequest) SetAppVersion(_appVersion string) error { + r._appVersion = _appVersion + r.Set("app_version", _appVersion) + return nil +} + +// AppVersion Getter +func (r TaobaoMiniappTemplateOnlineappAPIRequest) GetAppVersion() string { + return r._appVersion +} diff --git a/model/miniappopen/TaobaoMiniappTemplateOnlineappAPIResponse.go b/model/miniappopen/TaobaoMiniappTemplateOnlineappAPIResponse.go new file mode 100644 index 0000000000..02c78d2c44 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappTemplateOnlineappAPIResponse.go @@ -0,0 +1,29 @@ +package miniappopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上线实例化应用 API返回值 +taobao.miniapp.template.onlineapp + +将指定的预览版本发布上线,预览版本号由构建实例化或更新实例化接口返回。 +*/ +type TaobaoMiniappTemplateOnlineappAPIResponse struct { + model.CommonResponse + TaobaoMiniappTemplateOnlineappAPIResponseModel +} + +// 上线实例化应用 成功返回结果 +type TaobaoMiniappTemplateOnlineappAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_template_onlineapp_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分端上线结果 + OnlineResults []MiniappInstanceAppOnlineDto `json:"online_results,omitempty" xml:"online_results>miniapp_instance_app_online_dto,omitempty"` + // 基本信息 + AppInfo *MiniAppEntityTemplateDto `json:"app_info,omitempty" xml:"app_info,omitempty"` +} diff --git a/model/miniappopen/TaobaoMiniappTemplateOnlineappResponse.go b/model/miniappopen/TaobaoMiniappTemplateOnlineappResponse.go deleted file mode 100644 index 266ae6a6ef..0000000000 --- a/model/miniappopen/TaobaoMiniappTemplateOnlineappResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package miniappopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上线实例化应用 API返回值 -taobao.miniapp.template.onlineapp - -将指定的预览版本发布上线,预览版本号由构建实例化或更新实例化接口返回。 -*/ -type TaobaoMiniappTemplateOnlineappAPIResponse struct { - model.CommonResponse - TaobaoMiniappTemplateOnlineappResponse -} - -// 上线实例化应用 成功返回结果 -type TaobaoMiniappTemplateOnlineappResponse struct { - XMLName xml.Name `xml:"miniapp_template_onlineapp_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分端上线结果 - OnlineResults []MiniappInstanceAppOnlineDto `json:"online_results,omitempty" xml:"online_results>miniapp_instance_app_online_dto,omitempty"` - // 基本信息 - AppInfo *MiniAppEntityTemplateDto `json:"app_info,omitempty" xml:"app_info,omitempty"` -} diff --git a/model/miniappopen/TaobaoMiniappTemplateQueryappAPIRequest.go b/model/miniappopen/TaobaoMiniappTemplateQueryappAPIRequest.go new file mode 100644 index 0000000000..3c489df4a3 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappTemplateQueryappAPIRequest.go @@ -0,0 +1,80 @@ +package miniappopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询实例化应用版本 API请求 +taobao.miniapp.template.queryapp + +根据模板id和商家信息,查询实例化小程序版本查询 +*/ +type TaobaoMiniappTemplateQueryappAPIRequest struct { + model.Params + // 分页大小,最大50,按照小程序Id倒序 + _pageSize int64 + // 模板id + _templateId string + // 分页号,>=1 + _pageNum int64 +} + +// 初始化TaobaoMiniappTemplateQueryappAPIRequest对象 +func NewTaobaoMiniappTemplateQueryappRequest() *TaobaoMiniappTemplateQueryappAPIRequest{ + return &TaobaoMiniappTemplateQueryappAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappTemplateQueryappAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.template.queryapp" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappTemplateQueryappAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageSize Setter +// 分页大小,最大50,按照小程序Id倒序 +func (r *TaobaoMiniappTemplateQueryappAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoMiniappTemplateQueryappAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// TemplateId Setter +// 模板id +func (r *TaobaoMiniappTemplateQueryappAPIRequest) SetTemplateId(_templateId string) error { + r._templateId = _templateId + r.Set("template_id", _templateId) + return nil +} + +// TemplateId Getter +func (r TaobaoMiniappTemplateQueryappAPIRequest) GetTemplateId() string { + return r._templateId +} +// PageNum Setter +// 分页号,>=1 +func (r *TaobaoMiniappTemplateQueryappAPIRequest) SetPageNum(_pageNum int64) error { + r._pageNum = _pageNum + r.Set("page_num", _pageNum) + return nil +} + +// PageNum Getter +func (r TaobaoMiniappTemplateQueryappAPIRequest) GetPageNum() int64 { + return r._pageNum +} diff --git a/model/miniappopen/TaobaoMiniappTemplateQueryappAPIResponse.go b/model/miniappopen/TaobaoMiniappTemplateQueryappAPIResponse.go new file mode 100644 index 0000000000..e8741d779c --- /dev/null +++ b/model/miniappopen/TaobaoMiniappTemplateQueryappAPIResponse.go @@ -0,0 +1,27 @@ +package miniappopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询实例化应用版本 API返回值 +taobao.miniapp.template.queryapp + +根据模板id和商家信息,查询实例化小程序版本查询 +*/ +type TaobaoMiniappTemplateQueryappAPIResponse struct { + model.CommonResponse + TaobaoMiniappTemplateQueryappAPIResponseModel +} + +// 查询实例化应用版本 成功返回结果 +type TaobaoMiniappTemplateQueryappAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_template_queryapp_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 所有版本信息 + AllVersionInfos []MiniappInstanceAppAllVersionsDto `json:"all_version_infos,omitempty" xml:"all_version_infos>miniapp_instance_app_all_versions_dto,omitempty"` +} diff --git a/model/miniappopen/TaobaoMiniappTemplateQueryappResponse.go b/model/miniappopen/TaobaoMiniappTemplateQueryappResponse.go deleted file mode 100644 index 9e69c0f65d..0000000000 --- a/model/miniappopen/TaobaoMiniappTemplateQueryappResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package miniappopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询实例化应用版本 API返回值 -taobao.miniapp.template.queryapp - -根据模板id和商家信息,查询实例化小程序版本查询 -*/ -type TaobaoMiniappTemplateQueryappAPIResponse struct { - model.CommonResponse - TaobaoMiniappTemplateQueryappResponse -} - -// 查询实例化应用版本 成功返回结果 -type TaobaoMiniappTemplateQueryappResponse struct { - XMLName xml.Name `xml:"miniapp_template_queryapp_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 所有版本信息 - AllVersionInfos []MiniappInstanceAppAllVersionsDto `json:"all_version_infos,omitempty" xml:"all_version_infos>miniapp_instance_app_all_versions_dto,omitempty"` -} diff --git a/model/miniappopen/TaobaoMiniappTemplateRollbackAPIRequest.go b/model/miniappopen/TaobaoMiniappTemplateRollbackAPIRequest.go new file mode 100644 index 0000000000..8954a50c73 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappTemplateRollbackAPIRequest.go @@ -0,0 +1,108 @@ +package miniappopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +回滚实例化应用 API请求 +taobao.miniapp.template.rollback + +将实例化小程序回滚到指定版本 +*/ +type TaobaoMiniappTemplateRollbackAPIRequest struct { + model.Params + // 要回滚的投放端,目前可投放: taobao,tmall + _clients []string + // 小程序app_id + _appId string + // 回到到该app_version + _appVersion string + // 实例化小程序对应的模板id + _templateId string + // 与app_version对应的模板版本 + _templateVersion string +} + +// 初始化TaobaoMiniappTemplateRollbackAPIRequest对象 +func NewTaobaoMiniappTemplateRollbackRequest() *TaobaoMiniappTemplateRollbackAPIRequest{ + return &TaobaoMiniappTemplateRollbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappTemplateRollbackAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.template.rollback" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappTemplateRollbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Clients Setter +// 要回滚的投放端,目前可投放: taobao,tmall +func (r *TaobaoMiniappTemplateRollbackAPIRequest) SetClients(_clients []string) error { + r._clients = _clients + r.Set("clients", _clients) + return nil +} + +// Clients Getter +func (r TaobaoMiniappTemplateRollbackAPIRequest) GetClients() []string { + return r._clients +} +// AppId Setter +// 小程序app_id +func (r *TaobaoMiniappTemplateRollbackAPIRequest) SetAppId(_appId string) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r TaobaoMiniappTemplateRollbackAPIRequest) GetAppId() string { + return r._appId +} +// AppVersion Setter +// 回到到该app_version +func (r *TaobaoMiniappTemplateRollbackAPIRequest) SetAppVersion(_appVersion string) error { + r._appVersion = _appVersion + r.Set("app_version", _appVersion) + return nil +} + +// AppVersion Getter +func (r TaobaoMiniappTemplateRollbackAPIRequest) GetAppVersion() string { + return r._appVersion +} +// TemplateId Setter +// 实例化小程序对应的模板id +func (r *TaobaoMiniappTemplateRollbackAPIRequest) SetTemplateId(_templateId string) error { + r._templateId = _templateId + r.Set("template_id", _templateId) + return nil +} + +// TemplateId Getter +func (r TaobaoMiniappTemplateRollbackAPIRequest) GetTemplateId() string { + return r._templateId +} +// TemplateVersion Setter +// 与app_version对应的模板版本 +func (r *TaobaoMiniappTemplateRollbackAPIRequest) SetTemplateVersion(_templateVersion string) error { + r._templateVersion = _templateVersion + r.Set("template_version", _templateVersion) + return nil +} + +// TemplateVersion Getter +func (r TaobaoMiniappTemplateRollbackAPIRequest) GetTemplateVersion() string { + return r._templateVersion +} diff --git a/model/miniappopen/TaobaoMiniappTemplateRollbackAPIResponse.go b/model/miniappopen/TaobaoMiniappTemplateRollbackAPIResponse.go new file mode 100644 index 0000000000..a2f437e3f3 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappTemplateRollbackAPIResponse.go @@ -0,0 +1,29 @@ +package miniappopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +回滚实例化应用 API返回值 +taobao.miniapp.template.rollback + +将实例化小程序回滚到指定版本 +*/ +type TaobaoMiniappTemplateRollbackAPIResponse struct { + model.CommonResponse + TaobaoMiniappTemplateRollbackAPIResponseModel +} + +// 回滚实例化应用 成功返回结果 +type TaobaoMiniappTemplateRollbackAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_template_rollback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分端回滚结果 + OnlineResults []MiniappInstanceAppOnlineDto `json:"online_results,omitempty" xml:"online_results>miniapp_instance_app_online_dto,omitempty"` + // 基本信息 + AppInfo *MiniAppEntityTemplateDto `json:"app_info,omitempty" xml:"app_info,omitempty"` +} diff --git a/model/miniappopen/TaobaoMiniappTemplateRollbackResponse.go b/model/miniappopen/TaobaoMiniappTemplateRollbackResponse.go deleted file mode 100644 index 8865762234..0000000000 --- a/model/miniappopen/TaobaoMiniappTemplateRollbackResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package miniappopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -回滚实例化应用 API返回值 -taobao.miniapp.template.rollback - -将实例化小程序回滚到指定版本 -*/ -type TaobaoMiniappTemplateRollbackAPIResponse struct { - model.CommonResponse - TaobaoMiniappTemplateRollbackResponse -} - -// 回滚实例化应用 成功返回结果 -type TaobaoMiniappTemplateRollbackResponse struct { - XMLName xml.Name `xml:"miniapp_template_rollback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分端回滚结果 - OnlineResults []MiniappInstanceAppOnlineDto `json:"online_results,omitempty" xml:"online_results>miniapp_instance_app_online_dto,omitempty"` - // 基本信息 - AppInfo *MiniAppEntityTemplateDto `json:"app_info,omitempty" xml:"app_info,omitempty"` -} diff --git a/model/miniappopen/TaobaoMiniappTemplateUpdateAPIRequest.go b/model/miniappopen/TaobaoMiniappTemplateUpdateAPIRequest.go new file mode 100644 index 0000000000..b896c15772 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappTemplateUpdateAPIRequest.go @@ -0,0 +1,108 @@ +package miniappopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(已废弃)更新实例化应用 API请求 +taobao.miniapp.template.update + +商家应用c端模板实例化小程序更新 +*/ +type TaobaoMiniappTemplateUpdateAPIRequest struct { + model.Params + // 要更新的投放端,目前可投放: taobao(淘宝),tmall(天猫) + _clients []string + // 应用id + _id string + // schema信息,不填且 应用线上版本使用的templateId与传入的templateId不一致,则会报错; 一致,则复用线上版本的schema。 + _extJson string + // 模板id + _templateId string + // 模板版本 + _templateVersion string +} + +// 初始化TaobaoMiniappTemplateUpdateAPIRequest对象 +func NewTaobaoMiniappTemplateUpdateRequest() *TaobaoMiniappTemplateUpdateAPIRequest{ + return &TaobaoMiniappTemplateUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappTemplateUpdateAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.template.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappTemplateUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Clients Setter +// 要更新的投放端,目前可投放: taobao(淘宝),tmall(天猫) +func (r *TaobaoMiniappTemplateUpdateAPIRequest) SetClients(_clients []string) error { + r._clients = _clients + r.Set("clients", _clients) + return nil +} + +// Clients Getter +func (r TaobaoMiniappTemplateUpdateAPIRequest) GetClients() []string { + return r._clients +} +// Id Setter +// 应用id +func (r *TaobaoMiniappTemplateUpdateAPIRequest) SetId(_id string) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TaobaoMiniappTemplateUpdateAPIRequest) GetId() string { + return r._id +} +// ExtJson Setter +// schema信息,不填且 应用线上版本使用的templateId与传入的templateId不一致,则会报错; 一致,则复用线上版本的schema。 +func (r *TaobaoMiniappTemplateUpdateAPIRequest) SetExtJson(_extJson string) error { + r._extJson = _extJson + r.Set("ext_json", _extJson) + return nil +} + +// ExtJson Getter +func (r TaobaoMiniappTemplateUpdateAPIRequest) GetExtJson() string { + return r._extJson +} +// TemplateId Setter +// 模板id +func (r *TaobaoMiniappTemplateUpdateAPIRequest) SetTemplateId(_templateId string) error { + r._templateId = _templateId + r.Set("template_id", _templateId) + return nil +} + +// TemplateId Getter +func (r TaobaoMiniappTemplateUpdateAPIRequest) GetTemplateId() string { + return r._templateId +} +// TemplateVersion Setter +// 模板版本 +func (r *TaobaoMiniappTemplateUpdateAPIRequest) SetTemplateVersion(_templateVersion string) error { + r._templateVersion = _templateVersion + r.Set("template_version", _templateVersion) + return nil +} + +// TemplateVersion Getter +func (r TaobaoMiniappTemplateUpdateAPIRequest) GetTemplateVersion() string { + return r._templateVersion +} diff --git a/model/miniappopen/TaobaoMiniappTemplateUpdateAPIResponse.go b/model/miniappopen/TaobaoMiniappTemplateUpdateAPIResponse.go new file mode 100644 index 0000000000..ac3182cc0a --- /dev/null +++ b/model/miniappopen/TaobaoMiniappTemplateUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package miniappopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(已废弃)更新实例化应用 API返回值 +taobao.miniapp.template.update + +商家应用c端模板实例化小程序更新 +*/ +type TaobaoMiniappTemplateUpdateAPIResponse struct { + model.CommonResponse + TaobaoMiniappTemplateUpdateAPIResponseModel +} + +// (已废弃)更新实例化应用 成功返回结果 +type TaobaoMiniappTemplateUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_template_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoMiniappTemplateUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/miniappopen/TaobaoMiniappTemplateUpdateResponse.go b/model/miniappopen/TaobaoMiniappTemplateUpdateResponse.go deleted file mode 100644 index 5f31fd4537..0000000000 --- a/model/miniappopen/TaobaoMiniappTemplateUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package miniappopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(已废弃)更新实例化应用 API返回值 -taobao.miniapp.template.update - -商家应用c端模板实例化小程序更新 -*/ -type TaobaoMiniappTemplateUpdateAPIResponse struct { - model.CommonResponse - TaobaoMiniappTemplateUpdateResponse -} - -// (已废弃)更新实例化应用 成功返回结果 -type TaobaoMiniappTemplateUpdateResponse struct { - XMLName xml.Name `xml:"miniapp_template_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoMiniappTemplateUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/miniappopen/TaobaoMiniappTemplateUpdateappAPIRequest.go b/model/miniappopen/TaobaoMiniappTemplateUpdateappAPIRequest.go new file mode 100644 index 0000000000..609c763378 --- /dev/null +++ b/model/miniappopen/TaobaoMiniappTemplateUpdateappAPIRequest.go @@ -0,0 +1,150 @@ +package miniappopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新实例化应用 API请求 +taobao.miniapp.template.updateapp + +商家应用c端模板实例化小程序更新,生成新的版本,但不会自动上线新版本 +*/ +type TaobaoMiniappTemplateUpdateappAPIRequest struct { + model.Params + // 要更新的投放端,目前可投放: taobao(淘宝),tmall(天猫) + _clients []string + // 应用id,如果应用在对应端上已有的最新版本所使用的模板id,模板version和extjson,与本次入参一致,则认为不需要更新,返回已有的版本。 + _appId string + // 扩展信息。线上版本使用的template_id与传入的template_id一致时,可不填。 + _extJson string + // 模板id + _templateId string + // 模板版本 + _templateVersion string + // Logo更新,1月5次 + _icon string + // 描述更新,1年5次 + _desc string + // 简称更新,1年5次 + _alias string +} + +// 初始化TaobaoMiniappTemplateUpdateappAPIRequest对象 +func NewTaobaoMiniappTemplateUpdateappRequest() *TaobaoMiniappTemplateUpdateappAPIRequest{ + return &TaobaoMiniappTemplateUpdateappAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappTemplateUpdateappAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.template.updateapp" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappTemplateUpdateappAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Clients Setter +// 要更新的投放端,目前可投放: taobao(淘宝),tmall(天猫) +func (r *TaobaoMiniappTemplateUpdateappAPIRequest) SetClients(_clients []string) error { + r._clients = _clients + r.Set("clients", _clients) + return nil +} + +// Clients Getter +func (r TaobaoMiniappTemplateUpdateappAPIRequest) GetClients() []string { + return r._clients +} +// AppId Setter +// 应用id,如果应用在对应端上已有的最新版本所使用的模板id,模板version和extjson,与本次入参一致,则认为不需要更新,返回已有的版本。 +func (r *TaobaoMiniappTemplateUpdateappAPIRequest) SetAppId(_appId string) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r TaobaoMiniappTemplateUpdateappAPIRequest) GetAppId() string { + return r._appId +} +// ExtJson Setter +// 扩展信息。线上版本使用的template_id与传入的template_id一致时,可不填。 +func (r *TaobaoMiniappTemplateUpdateappAPIRequest) SetExtJson(_extJson string) error { + r._extJson = _extJson + r.Set("ext_json", _extJson) + return nil +} + +// ExtJson Getter +func (r TaobaoMiniappTemplateUpdateappAPIRequest) GetExtJson() string { + return r._extJson +} +// TemplateId Setter +// 模板id +func (r *TaobaoMiniappTemplateUpdateappAPIRequest) SetTemplateId(_templateId string) error { + r._templateId = _templateId + r.Set("template_id", _templateId) + return nil +} + +// TemplateId Getter +func (r TaobaoMiniappTemplateUpdateappAPIRequest) GetTemplateId() string { + return r._templateId +} +// TemplateVersion Setter +// 模板版本 +func (r *TaobaoMiniappTemplateUpdateappAPIRequest) SetTemplateVersion(_templateVersion string) error { + r._templateVersion = _templateVersion + r.Set("template_version", _templateVersion) + return nil +} + +// TemplateVersion Getter +func (r TaobaoMiniappTemplateUpdateappAPIRequest) GetTemplateVersion() string { + return r._templateVersion +} +// Icon Setter +// Logo更新,1月5次 +func (r *TaobaoMiniappTemplateUpdateappAPIRequest) SetIcon(_icon string) error { + r._icon = _icon + r.Set("icon", _icon) + return nil +} + +// Icon Getter +func (r TaobaoMiniappTemplateUpdateappAPIRequest) GetIcon() string { + return r._icon +} +// Desc Setter +// 描述更新,1年5次 +func (r *TaobaoMiniappTemplateUpdateappAPIRequest) SetDesc(_desc string) error { + r._desc = _desc + r.Set("desc", _desc) + return nil +} + +// Desc Getter +func (r TaobaoMiniappTemplateUpdateappAPIRequest) GetDesc() string { + return r._desc +} +// Alias Setter +// 简称更新,1年5次 +func (r *TaobaoMiniappTemplateUpdateappAPIRequest) SetAlias(_alias string) error { + r._alias = _alias + r.Set("alias", _alias) + return nil +} + +// Alias Getter +func (r TaobaoMiniappTemplateUpdateappAPIRequest) GetAlias() string { + return r._alias +} diff --git a/model/miniappopen/TaobaoMiniappTemplateUpdateappAPIResponse.go b/model/miniappopen/TaobaoMiniappTemplateUpdateappAPIResponse.go new file mode 100644 index 0000000000..44ef5e96bd --- /dev/null +++ b/model/miniappopen/TaobaoMiniappTemplateUpdateappAPIResponse.go @@ -0,0 +1,41 @@ +package miniappopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新实例化应用 API返回值 +taobao.miniapp.template.updateapp + +商家应用c端模板实例化小程序更新,生成新的版本,但不会自动上线新版本 +*/ +type TaobaoMiniappTemplateUpdateappAPIResponse struct { + model.CommonResponse + TaobaoMiniappTemplateUpdateappAPIResponseModel +} + +// 更新实例化应用 成功返回结果 +type TaobaoMiniappTemplateUpdateappAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_template_updateapp_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 小程序描述 + AppDescription string `json:"app_description,omitempty" xml:"app_description,omitempty"` + // 小程序icon + AppIcon string `json:"app_icon,omitempty" xml:"app_icon,omitempty"` + // 小程序名称 + AppName string `json:"app_name,omitempty" xml:"app_name,omitempty"` + // top appkey + Appkey string `json:"appkey,omitempty" xml:"appkey,omitempty"` + // 小程序app_id + AppId string `json:"app_id,omitempty" xml:"app_id,omitempty"` + // 当前新生成的预览版本的链接,仅当前商家有权限预览。 + PreViewUrl string `json:"pre_view_url,omitempty" xml:"pre_view_url,omitempty"` + // 当前新生成的预览版本号 + AppVersion string `json:"app_version,omitempty" xml:"app_version,omitempty"` + // 小程序简称 + AppAlias string `json:"app_alias,omitempty" xml:"app_alias,omitempty"` +} diff --git a/model/miniappopen/TaobaoMiniappTemplateUpdateappResponse.go b/model/miniappopen/TaobaoMiniappTemplateUpdateappResponse.go deleted file mode 100644 index 5b717734a5..0000000000 --- a/model/miniappopen/TaobaoMiniappTemplateUpdateappResponse.go +++ /dev/null @@ -1,41 +0,0 @@ -package miniappopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新实例化应用 API返回值 -taobao.miniapp.template.updateapp - -商家应用c端模板实例化小程序更新,生成新的版本,但不会自动上线新版本 -*/ -type TaobaoMiniappTemplateUpdateappAPIResponse struct { - model.CommonResponse - TaobaoMiniappTemplateUpdateappResponse -} - -// 更新实例化应用 成功返回结果 -type TaobaoMiniappTemplateUpdateappResponse struct { - XMLName xml.Name `xml:"miniapp_template_updateapp_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 小程序描述 - AppDescription string `json:"app_description,omitempty" xml:"app_description,omitempty"` - // 小程序icon - AppIcon string `json:"app_icon,omitempty" xml:"app_icon,omitempty"` - // 小程序名称 - AppName string `json:"app_name,omitempty" xml:"app_name,omitempty"` - // top appkey - Appkey string `json:"appkey,omitempty" xml:"appkey,omitempty"` - // 小程序app_id - AppId string `json:"app_id,omitempty" xml:"app_id,omitempty"` - // 当前新生成的预览版本的链接,仅当前商家有权限预览。 - PreViewUrl string `json:"pre_view_url,omitempty" xml:"pre_view_url,omitempty"` - // 当前新生成的预览版本号 - AppVersion string `json:"app_version,omitempty" xml:"app_version,omitempty"` - // 小程序简称 - AppAlias string `json:"app_alias,omitempty" xml:"app_alias,omitempty"` -} diff --git a/model/miniappopen/TaobaoMiniapppTemplateInstantiateAPIRequest.go b/model/miniappopen/TaobaoMiniapppTemplateInstantiateAPIRequest.go new file mode 100644 index 0000000000..583c02e450 --- /dev/null +++ b/model/miniappopen/TaobaoMiniapppTemplateInstantiateAPIRequest.go @@ -0,0 +1,136 @@ +package miniappopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(已废弃)构建实例化应用 API请求 +taobao.miniappp.template.instantiate + +实例化saas化的小程序 +*/ +type TaobaoMiniapppTemplateInstantiateAPIRequest struct { + model.Params + // 投放端,目前可投放: taobao(淘宝),tmall(天猫) + _clients []string + // 描述长度(9~200) + _description string + // schemadata, json字符串 + _extJson string + // 小程序icon + _icon string + // 小程序名称 + _name string + // 模板id + _templateId string + // 模板版本 + _templateVersion string +} + +// 初始化TaobaoMiniapppTemplateInstantiateAPIRequest对象 +func NewTaobaoMiniapppTemplateInstantiateRequest() *TaobaoMiniapppTemplateInstantiateAPIRequest{ + return &TaobaoMiniapppTemplateInstantiateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniapppTemplateInstantiateAPIRequest) GetApiMethodName() string { + return "taobao.miniappp.template.instantiate" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniapppTemplateInstantiateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Clients Setter +// 投放端,目前可投放: taobao(淘宝),tmall(天猫) +func (r *TaobaoMiniapppTemplateInstantiateAPIRequest) SetClients(_clients []string) error { + r._clients = _clients + r.Set("clients", _clients) + return nil +} + +// Clients Getter +func (r TaobaoMiniapppTemplateInstantiateAPIRequest) GetClients() []string { + return r._clients +} +// Description Setter +// 描述长度(9~200) +func (r *TaobaoMiniapppTemplateInstantiateAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r TaobaoMiniapppTemplateInstantiateAPIRequest) GetDescription() string { + return r._description +} +// ExtJson Setter +// schemadata, json字符串 +func (r *TaobaoMiniapppTemplateInstantiateAPIRequest) SetExtJson(_extJson string) error { + r._extJson = _extJson + r.Set("ext_json", _extJson) + return nil +} + +// ExtJson Getter +func (r TaobaoMiniapppTemplateInstantiateAPIRequest) GetExtJson() string { + return r._extJson +} +// Icon Setter +// 小程序icon +func (r *TaobaoMiniapppTemplateInstantiateAPIRequest) SetIcon(_icon string) error { + r._icon = _icon + r.Set("icon", _icon) + return nil +} + +// Icon Getter +func (r TaobaoMiniapppTemplateInstantiateAPIRequest) GetIcon() string { + return r._icon +} +// Name Setter +// 小程序名称 +func (r *TaobaoMiniapppTemplateInstantiateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoMiniapppTemplateInstantiateAPIRequest) GetName() string { + return r._name +} +// TemplateId Setter +// 模板id +func (r *TaobaoMiniapppTemplateInstantiateAPIRequest) SetTemplateId(_templateId string) error { + r._templateId = _templateId + r.Set("template_id", _templateId) + return nil +} + +// TemplateId Getter +func (r TaobaoMiniapppTemplateInstantiateAPIRequest) GetTemplateId() string { + return r._templateId +} +// TemplateVersion Setter +// 模板版本 +func (r *TaobaoMiniapppTemplateInstantiateAPIRequest) SetTemplateVersion(_templateVersion string) error { + r._templateVersion = _templateVersion + r.Set("template_version", _templateVersion) + return nil +} + +// TemplateVersion Getter +func (r TaobaoMiniapppTemplateInstantiateAPIRequest) GetTemplateVersion() string { + return r._templateVersion +} diff --git a/model/miniappopen/TaobaoMiniapppTemplateInstantiateAPIResponse.go b/model/miniappopen/TaobaoMiniapppTemplateInstantiateAPIResponse.go new file mode 100644 index 0000000000..1a2692f9fa --- /dev/null +++ b/model/miniappopen/TaobaoMiniapppTemplateInstantiateAPIResponse.go @@ -0,0 +1,27 @@ +package miniappopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(已废弃)构建实例化应用 API返回值 +taobao.miniappp.template.instantiate + +实例化saas化的小程序 +*/ +type TaobaoMiniapppTemplateInstantiateAPIResponse struct { + model.CommonResponse + TaobaoMiniapppTemplateInstantiateAPIResponseModel +} + +// (已废弃)构建实例化应用 成功返回结果 +type TaobaoMiniapppTemplateInstantiateAPIResponseModel struct { + XMLName xml.Name `xml:"miniappp_template_instantiate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoMiniapppTemplateInstantiateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/miniappopen/TaobaoMiniapppTemplateInstantiateResponse.go b/model/miniappopen/TaobaoMiniapppTemplateInstantiateResponse.go deleted file mode 100644 index 7018c70e39..0000000000 --- a/model/miniappopen/TaobaoMiniapppTemplateInstantiateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package miniappopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(已废弃)构建实例化应用 API返回值 -taobao.miniappp.template.instantiate - -实例化saas化的小程序 -*/ -type TaobaoMiniapppTemplateInstantiateAPIResponse struct { - model.CommonResponse - TaobaoMiniapppTemplateInstantiateResponse -} - -// (已废弃)构建实例化应用 成功返回结果 -type TaobaoMiniapppTemplateInstantiateResponse struct { - XMLName xml.Name `xml:"miniappp_template_instantiate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoMiniapppTemplateInstantiateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mirage/YoukuMirageQueryPermissionAPIRequest.go b/model/mirage/YoukuMirageQueryPermissionAPIRequest.go new file mode 100644 index 0000000000..e8799f6c0e --- /dev/null +++ b/model/mirage/YoukuMirageQueryPermissionAPIRequest.go @@ -0,0 +1,52 @@ +package mirage + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +优酷播控查询是否可播API API请求 +youku.mirage.query.permission + +根据节目ID或者VID查询视频或者节目是否可以播放 +*/ +type YoukuMirageQueryPermissionAPIRequest struct { + model.Params + // 入参 + _permissionRequestDto *PermissionRequestDto +} + +// 初始化YoukuMirageQueryPermissionAPIRequest对象 +func NewYoukuMirageQueryPermissionRequest() *YoukuMirageQueryPermissionAPIRequest{ + return &YoukuMirageQueryPermissionAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuMirageQueryPermissionAPIRequest) GetApiMethodName() string { + return "youku.mirage.query.permission" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuMirageQueryPermissionAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PermissionRequestDto Setter +// 入参 +func (r *YoukuMirageQueryPermissionAPIRequest) SetPermissionRequestDto(_permissionRequestDto *PermissionRequestDto) error { + r._permissionRequestDto = _permissionRequestDto + r.Set("permission_request_dto", _permissionRequestDto) + return nil +} + +// PermissionRequestDto Getter +func (r YoukuMirageQueryPermissionAPIRequest) GetPermissionRequestDto() *PermissionRequestDto { + return r._permissionRequestDto +} diff --git a/model/mirage/YoukuMirageQueryPermissionAPIResponse.go b/model/mirage/YoukuMirageQueryPermissionAPIResponse.go new file mode 100644 index 0000000000..ed6a1574db --- /dev/null +++ b/model/mirage/YoukuMirageQueryPermissionAPIResponse.go @@ -0,0 +1,27 @@ +package mirage + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +优酷播控查询是否可播API API返回值 +youku.mirage.query.permission + +根据节目ID或者VID查询视频或者节目是否可以播放 +*/ +type YoukuMirageQueryPermissionAPIResponse struct { + model.CommonResponse + YoukuMirageQueryPermissionAPIResponseModel +} + +// 优酷播控查询是否可播API 成功返回结果 +type YoukuMirageQueryPermissionAPIResponseModel struct { + XMLName xml.Name `xml:"youku_mirage_query_permission_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Resp *PermissionResponseDto `json:"resp,omitempty" xml:"resp,omitempty"` +} diff --git a/model/mirage/YoukuMirageQueryPermissionResponse.go b/model/mirage/YoukuMirageQueryPermissionResponse.go deleted file mode 100644 index e62e3bf949..0000000000 --- a/model/mirage/YoukuMirageQueryPermissionResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mirage - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -优酷播控查询是否可播API API返回值 -youku.mirage.query.permission - -根据节目ID或者VID查询视频或者节目是否可以播放 -*/ -type YoukuMirageQueryPermissionAPIResponse struct { - model.CommonResponse - YoukuMirageQueryPermissionResponse -} - -// 优酷播控查询是否可播API 成功返回结果 -type YoukuMirageQueryPermissionResponse struct { - XMLName xml.Name `xml:"youku_mirage_query_permission_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Resp *PermissionResponseDto `json:"resp,omitempty" xml:"resp,omitempty"` -} diff --git a/model/mos/AlibabaMjMemberBindmemberAPIRequest.go b/model/mos/AlibabaMjMemberBindmemberAPIRequest.go new file mode 100644 index 0000000000..f2d2b2ebd6 --- /dev/null +++ b/model/mos/AlibabaMjMemberBindmemberAPIRequest.go @@ -0,0 +1,94 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +绑定会员 API请求 +alibaba.mj.member.bindmember + +用于绑定喵街数字化会员 +*/ +type AlibabaMjMemberBindmemberAPIRequest struct { + model.Params + // 用户号 + _userId int64 + // 商城Id + _mallId int64 + // open_id + _openId string + // 渠道 + _channel string +} + +// 初始化AlibabaMjMemberBindmemberAPIRequest对象 +func NewAlibabaMjMemberBindmemberRequest() *AlibabaMjMemberBindmemberAPIRequest{ + return &AlibabaMjMemberBindmemberAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjMemberBindmemberAPIRequest) GetApiMethodName() string { + return "alibaba.mj.member.bindmember" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjMemberBindmemberAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户号 +func (r *AlibabaMjMemberBindmemberAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaMjMemberBindmemberAPIRequest) GetUserId() int64 { + return r._userId +} +// MallId Setter +// 商城Id +func (r *AlibabaMjMemberBindmemberAPIRequest) SetMallId(_mallId int64) error { + r._mallId = _mallId + r.Set("mall_id", _mallId) + return nil +} + +// MallId Getter +func (r AlibabaMjMemberBindmemberAPIRequest) GetMallId() int64 { + return r._mallId +} +// OpenId Setter +// open_id +func (r *AlibabaMjMemberBindmemberAPIRequest) SetOpenId(_openId string) error { + r._openId = _openId + r.Set("open_id", _openId) + return nil +} + +// OpenId Getter +func (r AlibabaMjMemberBindmemberAPIRequest) GetOpenId() string { + return r._openId +} +// Channel Setter +// 渠道 +func (r *AlibabaMjMemberBindmemberAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r AlibabaMjMemberBindmemberAPIRequest) GetChannel() string { + return r._channel +} diff --git a/model/mos/AlibabaMjMemberBindmemberAPIResponse.go b/model/mos/AlibabaMjMemberBindmemberAPIResponse.go new file mode 100644 index 0000000000..2492e49762 --- /dev/null +++ b/model/mos/AlibabaMjMemberBindmemberAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +绑定会员 API返回值 +alibaba.mj.member.bindmember + +用于绑定喵街数字化会员 +*/ +type AlibabaMjMemberBindmemberAPIResponse struct { + model.CommonResponse + AlibabaMjMemberBindmemberAPIResponseModel +} + +// 绑定会员 成功返回结果 +type AlibabaMjMemberBindmemberAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_member_bindmember_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 1 + Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMjMemberBindmemberResponse.go b/model/mos/AlibabaMjMemberBindmemberResponse.go deleted file mode 100644 index 2dcbe1439c..0000000000 --- a/model/mos/AlibabaMjMemberBindmemberResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -绑定会员 API返回值 -alibaba.mj.member.bindmember - -用于绑定喵街数字化会员 -*/ -type AlibabaMjMemberBindmemberAPIResponse struct { - model.CommonResponse - AlibabaMjMemberBindmemberResponse -} - -// 绑定会员 成功返回结果 -type AlibabaMjMemberBindmemberResponse struct { - XMLName xml.Name `xml:"alibaba_mj_member_bindmember_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 1 - Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMjMemberHasbindAPIRequest.go b/model/mos/AlibabaMjMemberHasbindAPIRequest.go new file mode 100644 index 0000000000..ffc720bf0d --- /dev/null +++ b/model/mos/AlibabaMjMemberHasbindAPIRequest.go @@ -0,0 +1,66 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +喵街会员是否绑定 API请求 +alibaba.mj.member.hasbind + +喵街检测用户是否为数字化会员 +*/ +type AlibabaMjMemberHasbindAPIRequest struct { + model.Params + // user_id + _userId int64 + // open_id + _openId string +} + +// 初始化AlibabaMjMemberHasbindAPIRequest对象 +func NewAlibabaMjMemberHasbindRequest() *AlibabaMjMemberHasbindAPIRequest{ + return &AlibabaMjMemberHasbindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjMemberHasbindAPIRequest) GetApiMethodName() string { + return "alibaba.mj.member.hasbind" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjMemberHasbindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// user_id +func (r *AlibabaMjMemberHasbindAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaMjMemberHasbindAPIRequest) GetUserId() int64 { + return r._userId +} +// OpenId Setter +// open_id +func (r *AlibabaMjMemberHasbindAPIRequest) SetOpenId(_openId string) error { + r._openId = _openId + r.Set("open_id", _openId) + return nil +} + +// OpenId Getter +func (r AlibabaMjMemberHasbindAPIRequest) GetOpenId() string { + return r._openId +} diff --git a/model/mos/AlibabaMjMemberHasbindAPIResponse.go b/model/mos/AlibabaMjMemberHasbindAPIResponse.go new file mode 100644 index 0000000000..2cb8749675 --- /dev/null +++ b/model/mos/AlibabaMjMemberHasbindAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +喵街会员是否绑定 API返回值 +alibaba.mj.member.hasbind + +喵街检测用户是否为数字化会员 +*/ +type AlibabaMjMemberHasbindAPIResponse struct { + model.CommonResponse + AlibabaMjMemberHasbindAPIResponseModel +} + +// 喵街会员是否绑定 成功返回结果 +type AlibabaMjMemberHasbindAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_member_hasbind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMjMemberHasbindResponse.go b/model/mos/AlibabaMjMemberHasbindResponse.go deleted file mode 100644 index 5bb148e1c9..0000000000 --- a/model/mos/AlibabaMjMemberHasbindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -喵街会员是否绑定 API返回值 -alibaba.mj.member.hasbind - -喵街检测用户是否为数字化会员 -*/ -type AlibabaMjMemberHasbindAPIResponse struct { - model.CommonResponse - AlibabaMjMemberHasbindResponse -} - -// 喵街会员是否绑定 成功返回结果 -type AlibabaMjMemberHasbindResponse struct { - XMLName xml.Name `xml:"alibaba_mj_member_hasbind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMjMosFundCancelbillAPIRequest.go b/model/mos/AlibabaMjMosFundCancelbillAPIRequest.go new file mode 100644 index 0000000000..5d4627a719 --- /dev/null +++ b/model/mos/AlibabaMjMosFundCancelbillAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消付款单 API请求 +alibaba.mj.mos.fund.cancelbill + +取消付款单 +*/ +type AlibabaMjMosFundCancelbillAPIRequest struct { + model.Params + // 取消入参 + _cancelBillDTO *CancelBillDto +} + +// 初始化AlibabaMjMosFundCancelbillAPIRequest对象 +func NewAlibabaMjMosFundCancelbillRequest() *AlibabaMjMosFundCancelbillAPIRequest{ + return &AlibabaMjMosFundCancelbillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjMosFundCancelbillAPIRequest) GetApiMethodName() string { + return "alibaba.mj.mos.fund.cancelbill" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjMosFundCancelbillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CancelBillDTO Setter +// 取消入参 +func (r *AlibabaMjMosFundCancelbillAPIRequest) SetCancelBillDTO(_cancelBillDTO *CancelBillDto) error { + r._cancelBillDTO = _cancelBillDTO + r.Set("cancel_bill_d_t_o", _cancelBillDTO) + return nil +} + +// CancelBillDTO Getter +func (r AlibabaMjMosFundCancelbillAPIRequest) GetCancelBillDTO() *CancelBillDto { + return r._cancelBillDTO +} diff --git a/model/mos/AlibabaMjMosFundCancelbillAPIResponse.go b/model/mos/AlibabaMjMosFundCancelbillAPIResponse.go new file mode 100644 index 0000000000..9fbca21127 --- /dev/null +++ b/model/mos/AlibabaMjMosFundCancelbillAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消付款单 API返回值 +alibaba.mj.mos.fund.cancelbill + +取消付款单 +*/ +type AlibabaMjMosFundCancelbillAPIResponse struct { + model.CommonResponse + AlibabaMjMosFundCancelbillAPIResponseModel +} + +// 取消付款单 成功返回结果 +type AlibabaMjMosFundCancelbillAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_mos_fund_cancelbill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data bool `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/mos/AlibabaMjMosFundCancelbillResponse.go b/model/mos/AlibabaMjMosFundCancelbillResponse.go deleted file mode 100644 index 559d0fc24d..0000000000 --- a/model/mos/AlibabaMjMosFundCancelbillResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消付款单 API返回值 -alibaba.mj.mos.fund.cancelbill - -取消付款单 -*/ -type AlibabaMjMosFundCancelbillAPIResponse struct { - model.CommonResponse - AlibabaMjMosFundCancelbillResponse -} - -// 取消付款单 成功返回结果 -type AlibabaMjMosFundCancelbillResponse struct { - XMLName xml.Name `xml:"alibaba_mj_mos_fund_cancelbill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data bool `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/mos/AlibabaMjMosFundCreatebillAPIRequest.go b/model/mos/AlibabaMjMosFundCreatebillAPIRequest.go new file mode 100644 index 0000000000..fd7afb5e38 --- /dev/null +++ b/model/mos/AlibabaMjMosFundCreatebillAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建一个付款单 API请求 +alibaba.mj.mos.fund.createbill + +创建一个付款单 +*/ +type AlibabaMjMosFundCreatebillAPIRequest struct { + model.Params + // 创建付款单入参 + _billDto *CreateBillDto +} + +// 初始化AlibabaMjMosFundCreatebillAPIRequest对象 +func NewAlibabaMjMosFundCreatebillRequest() *AlibabaMjMosFundCreatebillAPIRequest{ + return &AlibabaMjMosFundCreatebillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjMosFundCreatebillAPIRequest) GetApiMethodName() string { + return "alibaba.mj.mos.fund.createbill" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjMosFundCreatebillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillDto Setter +// 创建付款单入参 +func (r *AlibabaMjMosFundCreatebillAPIRequest) SetBillDto(_billDto *CreateBillDto) error { + r._billDto = _billDto + r.Set("bill_dto", _billDto) + return nil +} + +// BillDto Getter +func (r AlibabaMjMosFundCreatebillAPIRequest) GetBillDto() *CreateBillDto { + return r._billDto +} diff --git a/model/mos/AlibabaMjMosFundCreatebillAPIResponse.go b/model/mos/AlibabaMjMosFundCreatebillAPIResponse.go new file mode 100644 index 0000000000..7a1f5270c7 --- /dev/null +++ b/model/mos/AlibabaMjMosFundCreatebillAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建一个付款单 API返回值 +alibaba.mj.mos.fund.createbill + +创建一个付款单 +*/ +type AlibabaMjMosFundCreatebillAPIResponse struct { + model.CommonResponse + AlibabaMjMosFundCreatebillAPIResponseModel +} + +// 创建一个付款单 成功返回结果 +type AlibabaMjMosFundCreatebillAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_mos_fund_createbill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data string `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/mos/AlibabaMjMosFundCreatebillResponse.go b/model/mos/AlibabaMjMosFundCreatebillResponse.go deleted file mode 100644 index e2cdb06b1a..0000000000 --- a/model/mos/AlibabaMjMosFundCreatebillResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建一个付款单 API返回值 -alibaba.mj.mos.fund.createbill - -创建一个付款单 -*/ -type AlibabaMjMosFundCreatebillAPIResponse struct { - model.CommonResponse - AlibabaMjMosFundCreatebillResponse -} - -// 创建一个付款单 成功返回结果 -type AlibabaMjMosFundCreatebillResponse struct { - XMLName xml.Name `xml:"alibaba_mj_mos_fund_createbill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data string `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/mos/AlibabaMjMosFundModifybillbankaccountAPIRequest.go b/model/mos/AlibabaMjMosFundModifybillbankaccountAPIRequest.go new file mode 100644 index 0000000000..80f34a910d --- /dev/null +++ b/model/mos/AlibabaMjMosFundModifybillbankaccountAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改付款单的银行账户信息 API请求 +alibaba.mj.mos.fund.modifybillbankaccount + +修改付款单的银行账户信息 +*/ +type AlibabaMjMosFundModifybillbankaccountAPIRequest struct { + model.Params + // 修改入参 + _modifyDto *ModifyBillDto +} + +// 初始化AlibabaMjMosFundModifybillbankaccountAPIRequest对象 +func NewAlibabaMjMosFundModifybillbankaccountRequest() *AlibabaMjMosFundModifybillbankaccountAPIRequest{ + return &AlibabaMjMosFundModifybillbankaccountAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjMosFundModifybillbankaccountAPIRequest) GetApiMethodName() string { + return "alibaba.mj.mos.fund.modifybillbankaccount" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjMosFundModifybillbankaccountAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ModifyDto Setter +// 修改入参 +func (r *AlibabaMjMosFundModifybillbankaccountAPIRequest) SetModifyDto(_modifyDto *ModifyBillDto) error { + r._modifyDto = _modifyDto + r.Set("modify_dto", _modifyDto) + return nil +} + +// ModifyDto Getter +func (r AlibabaMjMosFundModifybillbankaccountAPIRequest) GetModifyDto() *ModifyBillDto { + return r._modifyDto +} diff --git a/model/mos/AlibabaMjMosFundModifybillbankaccountAPIResponse.go b/model/mos/AlibabaMjMosFundModifybillbankaccountAPIResponse.go new file mode 100644 index 0000000000..3f430d64b7 --- /dev/null +++ b/model/mos/AlibabaMjMosFundModifybillbankaccountAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改付款单的银行账户信息 API返回值 +alibaba.mj.mos.fund.modifybillbankaccount + +修改付款单的银行账户信息 +*/ +type AlibabaMjMosFundModifybillbankaccountAPIResponse struct { + model.CommonResponse + AlibabaMjMosFundModifybillbankaccountAPIResponseModel +} + +// 修改付款单的银行账户信息 成功返回结果 +type AlibabaMjMosFundModifybillbankaccountAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_mos_fund_modifybillbankaccount_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data bool `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/mos/AlibabaMjMosFundModifybillbankaccountResponse.go b/model/mos/AlibabaMjMosFundModifybillbankaccountResponse.go deleted file mode 100644 index eace23678f..0000000000 --- a/model/mos/AlibabaMjMosFundModifybillbankaccountResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改付款单的银行账户信息 API返回值 -alibaba.mj.mos.fund.modifybillbankaccount - -修改付款单的银行账户信息 -*/ -type AlibabaMjMosFundModifybillbankaccountAPIResponse struct { - model.CommonResponse - AlibabaMjMosFundModifybillbankaccountResponse -} - -// 修改付款单的银行账户信息 成功返回结果 -type AlibabaMjMosFundModifybillbankaccountResponse struct { - XMLName xml.Name `xml:"alibaba_mj_mos_fund_modifybillbankaccount_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data bool `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/mos/AlibabaMjMoscarnivalReceivecouponAPIRequest.go b/model/mos/AlibabaMjMoscarnivalReceivecouponAPIRequest.go new file mode 100644 index 0000000000..e36816cf7d --- /dev/null +++ b/model/mos/AlibabaMjMoscarnivalReceivecouponAPIRequest.go @@ -0,0 +1,66 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据手机号码领券 API请求 +alibaba.mj.moscarnival.receivecoupon + +根据手机号码领券 +*/ +type AlibabaMjMoscarnivalReceivecouponAPIRequest struct { + model.Params + // 手机号码 + _mobile string + // 活动id + _activityId int64 +} + +// 初始化AlibabaMjMoscarnivalReceivecouponAPIRequest对象 +func NewAlibabaMjMoscarnivalReceivecouponRequest() *AlibabaMjMoscarnivalReceivecouponAPIRequest{ + return &AlibabaMjMoscarnivalReceivecouponAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjMoscarnivalReceivecouponAPIRequest) GetApiMethodName() string { + return "alibaba.mj.moscarnival.receivecoupon" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjMoscarnivalReceivecouponAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Mobile Setter +// 手机号码 +func (r *AlibabaMjMoscarnivalReceivecouponAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r AlibabaMjMoscarnivalReceivecouponAPIRequest) GetMobile() string { + return r._mobile +} +// ActivityId Setter +// 活动id +func (r *AlibabaMjMoscarnivalReceivecouponAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r AlibabaMjMoscarnivalReceivecouponAPIRequest) GetActivityId() int64 { + return r._activityId +} diff --git a/model/mos/AlibabaMjMoscarnivalReceivecouponAPIResponse.go b/model/mos/AlibabaMjMoscarnivalReceivecouponAPIResponse.go new file mode 100644 index 0000000000..fe989685f2 --- /dev/null +++ b/model/mos/AlibabaMjMoscarnivalReceivecouponAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据手机号码领券 API返回值 +alibaba.mj.moscarnival.receivecoupon + +根据手机号码领券 +*/ +type AlibabaMjMoscarnivalReceivecouponAPIResponse struct { + model.CommonResponse + AlibabaMjMoscarnivalReceivecouponAPIResponseModel +} + +// 根据手机号码领券 成功返回结果 +type AlibabaMjMoscarnivalReceivecouponAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_moscarnival_receivecoupon_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaMjMoscarnivalReceivecouponResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMjMoscarnivalReceivecouponResponse.go b/model/mos/AlibabaMjMoscarnivalReceivecouponResponse.go deleted file mode 100644 index f056d54cbb..0000000000 --- a/model/mos/AlibabaMjMoscarnivalReceivecouponResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据手机号码领券 API返回值 -alibaba.mj.moscarnival.receivecoupon - -根据手机号码领券 -*/ -type AlibabaMjMoscarnivalReceivecouponAPIResponse struct { - model.CommonResponse - AlibabaMjMoscarnivalReceivecouponResponse -} - -// 根据手机号码领券 成功返回结果 -type AlibabaMjMoscarnivalReceivecouponResponse struct { - XMLName xml.Name `xml:"alibaba_mj_moscarnival_receivecoupon_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaMjMoscarnivalReceivecouponResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMjMoscarnivalReceivecouponResultDo.go b/model/mos/AlibabaMjMoscarnivalReceivecouponResultDo.go new file mode 100644 index 0000000000..7e593f4d4e --- /dev/null +++ b/model/mos/AlibabaMjMoscarnivalReceivecouponResultDo.go @@ -0,0 +1,21 @@ +package mos + +// AlibabaMjMoscarnivalReceivecouponResultDo +type AlibabaMjMoscarnivalReceivecouponResultDo struct { + // 调用链id + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 总行数 + Total int64 `json:"total,omitempty" xml:"total,omitempty"` + // 是否成功 + Data string `json:"data,omitempty" xml:"data,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrCode int64 `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 错误信息 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // 结果码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 标题 + Titles []string `json:"titles,omitempty" xml:"titles>string,omitempty"` +} diff --git a/model/mos/AlibabaMjMoscarnivalReceiveencryptAPIRequest.go b/model/mos/AlibabaMjMoscarnivalReceiveencryptAPIRequest.go new file mode 100644 index 0000000000..0003497710 --- /dev/null +++ b/model/mos/AlibabaMjMoscarnivalReceiveencryptAPIRequest.go @@ -0,0 +1,66 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据加密手机号领券 API请求 +alibaba.mj.moscarnival.receiveencrypt + +根据加密手机号领券 +*/ +type AlibabaMjMoscarnivalReceiveencryptAPIRequest struct { + model.Params + // 加密手机号码 + _mobile string + // 活动id + _activityId int64 +} + +// 初始化AlibabaMjMoscarnivalReceiveencryptAPIRequest对象 +func NewAlibabaMjMoscarnivalReceiveencryptRequest() *AlibabaMjMoscarnivalReceiveencryptAPIRequest{ + return &AlibabaMjMoscarnivalReceiveencryptAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjMoscarnivalReceiveencryptAPIRequest) GetApiMethodName() string { + return "alibaba.mj.moscarnival.receiveencrypt" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjMoscarnivalReceiveencryptAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Mobile Setter +// 加密手机号码 +func (r *AlibabaMjMoscarnivalReceiveencryptAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r AlibabaMjMoscarnivalReceiveencryptAPIRequest) GetMobile() string { + return r._mobile +} +// ActivityId Setter +// 活动id +func (r *AlibabaMjMoscarnivalReceiveencryptAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r AlibabaMjMoscarnivalReceiveencryptAPIRequest) GetActivityId() int64 { + return r._activityId +} diff --git a/model/mos/AlibabaMjMoscarnivalReceiveencryptAPIResponse.go b/model/mos/AlibabaMjMoscarnivalReceiveencryptAPIResponse.go new file mode 100644 index 0000000000..c1c641a33a --- /dev/null +++ b/model/mos/AlibabaMjMoscarnivalReceiveencryptAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据加密手机号领券 API返回值 +alibaba.mj.moscarnival.receiveencrypt + +根据加密手机号领券 +*/ +type AlibabaMjMoscarnivalReceiveencryptAPIResponse struct { + model.CommonResponse + AlibabaMjMoscarnivalReceiveencryptAPIResponseModel +} + +// 根据加密手机号领券 成功返回结果 +type AlibabaMjMoscarnivalReceiveencryptAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_moscarnival_receiveencrypt_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaMjMoscarnivalReceiveencryptResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMjMoscarnivalReceiveencryptResponse.go b/model/mos/AlibabaMjMoscarnivalReceiveencryptResponse.go deleted file mode 100644 index c2b0809e63..0000000000 --- a/model/mos/AlibabaMjMoscarnivalReceiveencryptResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据加密手机号领券 API返回值 -alibaba.mj.moscarnival.receiveencrypt - -根据加密手机号领券 -*/ -type AlibabaMjMoscarnivalReceiveencryptAPIResponse struct { - model.CommonResponse - AlibabaMjMoscarnivalReceiveencryptResponse -} - -// 根据加密手机号领券 成功返回结果 -type AlibabaMjMoscarnivalReceiveencryptResponse struct { - XMLName xml.Name `xml:"alibaba_mj_moscarnival_receiveencrypt_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaMjMoscarnivalReceiveencryptResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMjMoscarnivalReceiveencryptResultDo.go b/model/mos/AlibabaMjMoscarnivalReceiveencryptResultDo.go new file mode 100644 index 0000000000..a9ce800fa5 --- /dev/null +++ b/model/mos/AlibabaMjMoscarnivalReceiveencryptResultDo.go @@ -0,0 +1,19 @@ +package mos + +// AlibabaMjMoscarnivalReceiveencryptResultDo +type AlibabaMjMoscarnivalReceiveencryptResultDo struct { + // 调用链id + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 总行数 + Total int64 `json:"total,omitempty" xml:"total,omitempty"` + // 券结果 + Data *AlibabaMjMoscarnivalReceiveencryptData `json:"data,omitempty" xml:"data,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrCode int64 `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 错误信息 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // 结果码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/mos/AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest.go b/model/mos/AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest.go new file mode 100644 index 0000000000..7572daed91 --- /dev/null +++ b/model/mos/AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest.go @@ -0,0 +1,122 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大pos银行卡调账申请 API请求 +alibaba.mj.oc.bigpos.banksale.adjustment.apply + +大pos银行卡调账申请 +*/ +type AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest struct { + model.Params + // 门店号 + _storeNo string + // 调账金额 + _amount int64 + // 卡号 + _cardNo string + // 交易时间 + _operTime string + // 收银员号 + _operator string + // 调账收银机号 + _posNo string +} + +// 初始化AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest对象 +func NewAlibabaMjOcBigposBanksaleAdjustmentApplyRequest() *AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest{ + return &AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest) GetApiMethodName() string { + return "alibaba.mj.oc.bigpos.banksale.adjustment.apply" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreNo Setter +// 门店号 +func (r *AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest) SetStoreNo(_storeNo string) error { + r._storeNo = _storeNo + r.Set("store_no", _storeNo) + return nil +} + +// StoreNo Getter +func (r AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest) GetStoreNo() string { + return r._storeNo +} +// Amount Setter +// 调账金额 +func (r *AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest) SetAmount(_amount int64) error { + r._amount = _amount + r.Set("amount", _amount) + return nil +} + +// Amount Getter +func (r AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest) GetAmount() int64 { + return r._amount +} +// CardNo Setter +// 卡号 +func (r *AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest) SetCardNo(_cardNo string) error { + r._cardNo = _cardNo + r.Set("card_no", _cardNo) + return nil +} + +// CardNo Getter +func (r AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest) GetCardNo() string { + return r._cardNo +} +// OperTime Setter +// 交易时间 +func (r *AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest) SetOperTime(_operTime string) error { + r._operTime = _operTime + r.Set("oper_time", _operTime) + return nil +} + +// OperTime Getter +func (r AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest) GetOperTime() string { + return r._operTime +} +// Operator Setter +// 收银员号 +func (r *AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest) SetOperator(_operator string) error { + r._operator = _operator + r.Set("operator", _operator) + return nil +} + +// Operator Getter +func (r AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest) GetOperator() string { + return r._operator +} +// PosNo Setter +// 调账收银机号 +func (r *AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest) SetPosNo(_posNo string) error { + r._posNo = _posNo + r.Set("pos_no", _posNo) + return nil +} + +// PosNo Getter +func (r AlibabaMjOcBigposBanksaleAdjustmentApplyAPIRequest) GetPosNo() string { + return r._posNo +} diff --git a/model/mos/AlibabaMjOcBigposBanksaleAdjustmentApplyAPIResponse.go b/model/mos/AlibabaMjOcBigposBanksaleAdjustmentApplyAPIResponse.go new file mode 100644 index 0000000000..38454e822d --- /dev/null +++ b/model/mos/AlibabaMjOcBigposBanksaleAdjustmentApplyAPIResponse.go @@ -0,0 +1,25 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大pos银行卡调账申请 API返回值 +alibaba.mj.oc.bigpos.banksale.adjustment.apply + +大pos银行卡调账申请 +*/ +type AlibabaMjOcBigposBanksaleAdjustmentApplyAPIResponse struct { + model.CommonResponse + AlibabaMjOcBigposBanksaleAdjustmentApplyAPIResponseModel +} + +// 大pos银行卡调账申请 成功返回结果 +type AlibabaMjOcBigposBanksaleAdjustmentApplyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_oc_bigpos_banksale_adjustment_apply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` +} diff --git a/model/mos/AlibabaMjOcBigposBanksaleAdjustmentApplyResponse.go b/model/mos/AlibabaMjOcBigposBanksaleAdjustmentApplyResponse.go deleted file mode 100644 index df6cce1b36..0000000000 --- a/model/mos/AlibabaMjOcBigposBanksaleAdjustmentApplyResponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大pos银行卡调账申请 API返回值 -alibaba.mj.oc.bigpos.banksale.adjustment.apply - -大pos银行卡调账申请 -*/ -type AlibabaMjOcBigposBanksaleAdjustmentApplyAPIResponse struct { - model.CommonResponse - AlibabaMjOcBigposBanksaleAdjustmentApplyResponse -} - -// 大pos银行卡调账申请 成功返回结果 -type AlibabaMjOcBigposBanksaleAdjustmentApplyResponse struct { - XMLName xml.Name `xml:"alibaba_mj_oc_bigpos_banksale_adjustment_apply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` -} diff --git a/model/mos/AlibabaMjOcBigposBanksaleQueryAPIRequest.go b/model/mos/AlibabaMjOcBigposBanksaleQueryAPIRequest.go new file mode 100644 index 0000000000..6e6756c6c9 --- /dev/null +++ b/model/mos/AlibabaMjOcBigposBanksaleQueryAPIRequest.go @@ -0,0 +1,94 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大pos银行卡查账接口 API请求 +alibaba.mj.oc.bigpos.banksale.query + +大pos银行卡查账接口,给收银员查询银行卡销售记录,便于调账 +*/ +type AlibabaMjOcBigposBanksaleQueryAPIRequest struct { + model.Params + // 开始时间 + _startTime string + // 卡号 + _cardNo string + // 外部门店号 + _outStoreNo string + // 结束时间 + _endTime string +} + +// 初始化AlibabaMjOcBigposBanksaleQueryAPIRequest对象 +func NewAlibabaMjOcBigposBanksaleQueryRequest() *AlibabaMjOcBigposBanksaleQueryAPIRequest{ + return &AlibabaMjOcBigposBanksaleQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjOcBigposBanksaleQueryAPIRequest) GetApiMethodName() string { + return "alibaba.mj.oc.bigpos.banksale.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjOcBigposBanksaleQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartTime Setter +// 开始时间 +func (r *AlibabaMjOcBigposBanksaleQueryAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r AlibabaMjOcBigposBanksaleQueryAPIRequest) GetStartTime() string { + return r._startTime +} +// CardNo Setter +// 卡号 +func (r *AlibabaMjOcBigposBanksaleQueryAPIRequest) SetCardNo(_cardNo string) error { + r._cardNo = _cardNo + r.Set("card_no", _cardNo) + return nil +} + +// CardNo Getter +func (r AlibabaMjOcBigposBanksaleQueryAPIRequest) GetCardNo() string { + return r._cardNo +} +// OutStoreNo Setter +// 外部门店号 +func (r *AlibabaMjOcBigposBanksaleQueryAPIRequest) SetOutStoreNo(_outStoreNo string) error { + r._outStoreNo = _outStoreNo + r.Set("out_store_no", _outStoreNo) + return nil +} + +// OutStoreNo Getter +func (r AlibabaMjOcBigposBanksaleQueryAPIRequest) GetOutStoreNo() string { + return r._outStoreNo +} +// EndTime Setter +// 结束时间 +func (r *AlibabaMjOcBigposBanksaleQueryAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r AlibabaMjOcBigposBanksaleQueryAPIRequest) GetEndTime() string { + return r._endTime +} diff --git a/model/mos/AlibabaMjOcBigposBanksaleQueryAPIResponse.go b/model/mos/AlibabaMjOcBigposBanksaleQueryAPIResponse.go new file mode 100644 index 0000000000..ee8f0e8dbf --- /dev/null +++ b/model/mos/AlibabaMjOcBigposBanksaleQueryAPIResponse.go @@ -0,0 +1,29 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大pos银行卡查账接口 API返回值 +alibaba.mj.oc.bigpos.banksale.query + +大pos银行卡查账接口,给收银员查询银行卡销售记录,便于调账 +*/ +type AlibabaMjOcBigposBanksaleQueryAPIResponse struct { + model.CommonResponse + AlibabaMjOcBigposBanksaleQueryAPIResponseModel +} + +// 大pos银行卡查账接口 成功返回结果 +type AlibabaMjOcBigposBanksaleQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_oc_bigpos_banksale_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 明细数量 + Total int64 `json:"total,omitempty" xml:"total,omitempty"` + // 数据主体 + Datas []AlibabaMjOcBigposBanksaleQueryData `json:"datas,omitempty" xml:"datas>alibaba_mj_oc_bigpos_banksale_query_data,omitempty"` +} diff --git a/model/mos/AlibabaMjOcBigposBanksaleQueryResponse.go b/model/mos/AlibabaMjOcBigposBanksaleQueryResponse.go deleted file mode 100644 index 1c5eae05c4..0000000000 --- a/model/mos/AlibabaMjOcBigposBanksaleQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大pos银行卡查账接口 API返回值 -alibaba.mj.oc.bigpos.banksale.query - -大pos银行卡查账接口,给收银员查询银行卡销售记录,便于调账 -*/ -type AlibabaMjOcBigposBanksaleQueryAPIResponse struct { - model.CommonResponse - AlibabaMjOcBigposBanksaleQueryResponse -} - -// 大pos银行卡查账接口 成功返回结果 -type AlibabaMjOcBigposBanksaleQueryResponse struct { - XMLName xml.Name `xml:"alibaba_mj_oc_bigpos_banksale_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 明细数量 - Total int64 `json:"total,omitempty" xml:"total,omitempty"` - // 数据主体 - Datas []AlibabaMjOcBigposBanksaleQueryData `json:"datas,omitempty" xml:"datas>alibaba_mj_oc_bigpos_banksale_query_data,omitempty"` -} diff --git a/model/mos/AlibabaMjOcCalldispatcherAPIRequest.go b/model/mos/AlibabaMjOcCalldispatcherAPIRequest.go new file mode 100644 index 0000000000..5bc1c27b37 --- /dev/null +++ b/model/mos/AlibabaMjOcCalldispatcherAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +呼叫运力 API请求 +alibaba.mj.oc.calldispatcher + +定时达呼叫运力接口 +*/ +type AlibabaMjOcCalldispatcherAPIRequest struct { + model.Params + // 入参 + _callDispatcherDTO *CallDispatcherDto +} + +// 初始化AlibabaMjOcCalldispatcherAPIRequest对象 +func NewAlibabaMjOcCalldispatcherRequest() *AlibabaMjOcCalldispatcherAPIRequest{ + return &AlibabaMjOcCalldispatcherAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjOcCalldispatcherAPIRequest) GetApiMethodName() string { + return "alibaba.mj.oc.calldispatcher" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjOcCalldispatcherAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CallDispatcherDTO Setter +// 入参 +func (r *AlibabaMjOcCalldispatcherAPIRequest) SetCallDispatcherDTO(_callDispatcherDTO *CallDispatcherDto) error { + r._callDispatcherDTO = _callDispatcherDTO + r.Set("call_dispatcher_d_t_o", _callDispatcherDTO) + return nil +} + +// CallDispatcherDTO Getter +func (r AlibabaMjOcCalldispatcherAPIRequest) GetCallDispatcherDTO() *CallDispatcherDto { + return r._callDispatcherDTO +} diff --git a/model/mos/AlibabaMjOcCalldispatcherAPIResponse.go b/model/mos/AlibabaMjOcCalldispatcherAPIResponse.go new file mode 100644 index 0000000000..d8b299b4b8 --- /dev/null +++ b/model/mos/AlibabaMjOcCalldispatcherAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +呼叫运力 API返回值 +alibaba.mj.oc.calldispatcher + +定时达呼叫运力接口 +*/ +type AlibabaMjOcCalldispatcherAPIResponse struct { + model.CommonResponse + AlibabaMjOcCalldispatcherAPIResponseModel +} + +// 呼叫运力 成功返回结果 +type AlibabaMjOcCalldispatcherAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_oc_calldispatcher_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMjOcCalldispatcherResponse.go b/model/mos/AlibabaMjOcCalldispatcherResponse.go deleted file mode 100644 index 618bf67c37..0000000000 --- a/model/mos/AlibabaMjOcCalldispatcherResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -呼叫运力 API返回值 -alibaba.mj.oc.calldispatcher - -定时达呼叫运力接口 -*/ -type AlibabaMjOcCalldispatcherAPIResponse struct { - model.CommonResponse - AlibabaMjOcCalldispatcherResponse -} - -// 呼叫运力 成功返回结果 -type AlibabaMjOcCalldispatcherResponse struct { - XMLName xml.Name `xml:"alibaba_mj_oc_calldispatcher_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMjOcConfpickupgoodsAPIRequest.go b/model/mos/AlibabaMjOcConfpickupgoodsAPIRequest.go new file mode 100644 index 0000000000..281bf7f83c --- /dev/null +++ b/model/mos/AlibabaMjOcConfpickupgoodsAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提货核销 API请求 +alibaba.mj.oc.confpickupgoods + +此API用于在银泰商场中,消费者在提货中心提货时, 商户后台调用此接口进行提货核销操作 +*/ +type AlibabaMjOcConfpickupgoodsAPIRequest struct { + model.Params + // 提货核销请求参数 + _confPickupGoodsRequest *ConfPickupGoodsReqDto +} + +// 初始化AlibabaMjOcConfpickupgoodsAPIRequest对象 +func NewAlibabaMjOcConfpickupgoodsRequest() *AlibabaMjOcConfpickupgoodsAPIRequest{ + return &AlibabaMjOcConfpickupgoodsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjOcConfpickupgoodsAPIRequest) GetApiMethodName() string { + return "alibaba.mj.oc.confpickupgoods" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjOcConfpickupgoodsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ConfPickupGoodsRequest Setter +// 提货核销请求参数 +func (r *AlibabaMjOcConfpickupgoodsAPIRequest) SetConfPickupGoodsRequest(_confPickupGoodsRequest *ConfPickupGoodsReqDto) error { + r._confPickupGoodsRequest = _confPickupGoodsRequest + r.Set("conf_pickup_goods_request", _confPickupGoodsRequest) + return nil +} + +// ConfPickupGoodsRequest Getter +func (r AlibabaMjOcConfpickupgoodsAPIRequest) GetConfPickupGoodsRequest() *ConfPickupGoodsReqDto { + return r._confPickupGoodsRequest +} diff --git a/model/mos/AlibabaMjOcConfpickupgoodsAPIResponse.go b/model/mos/AlibabaMjOcConfpickupgoodsAPIResponse.go new file mode 100644 index 0000000000..c11143afe1 --- /dev/null +++ b/model/mos/AlibabaMjOcConfpickupgoodsAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提货核销 API返回值 +alibaba.mj.oc.confpickupgoods + +此API用于在银泰商场中,消费者在提货中心提货时, 商户后台调用此接口进行提货核销操作 +*/ +type AlibabaMjOcConfpickupgoodsAPIResponse struct { + model.CommonResponse + AlibabaMjOcConfpickupgoodsAPIResponseModel +} + +// 提货核销 成功返回结果 +type AlibabaMjOcConfpickupgoodsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_oc_confpickupgoods_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/mos/AlibabaMjOcConfpickupgoodsResponse.go b/model/mos/AlibabaMjOcConfpickupgoodsResponse.go deleted file mode 100644 index 8ef5e24cbc..0000000000 --- a/model/mos/AlibabaMjOcConfpickupgoodsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提货核销 API返回值 -alibaba.mj.oc.confpickupgoods - -此API用于在银泰商场中,消费者在提货中心提货时, 商户后台调用此接口进行提货核销操作 -*/ -type AlibabaMjOcConfpickupgoodsAPIResponse struct { - model.CommonResponse - AlibabaMjOcConfpickupgoodsResponse -} - -// 提货核销 成功返回结果 -type AlibabaMjOcConfpickupgoodsResponse struct { - XMLName xml.Name `xml:"alibaba_mj_oc_confpickupgoods_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/mos/AlibabaMjOcGetproductbyscancodeAPIRequest.go b/model/mos/AlibabaMjOcGetproductbyscancodeAPIRequest.go new file mode 100644 index 0000000000..895d5f5f8e --- /dev/null +++ b/model/mos/AlibabaMjOcGetproductbyscancodeAPIRequest.go @@ -0,0 +1,94 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +POS商品查询接口 API请求 +alibaba.mj.oc.getproductbyscancode + +此API用于在银泰商场中,POS端扫码获取商品信息 +*/ +type AlibabaMjOcGetproductbyscancodeAPIRequest struct { + model.Params + // 码, 对应的信息可能是款号,也有可能是具体的某一个商品 + _code string + // 条码/二维码/rfid(电子标签),货号、条码、零售+唯一码;ARTNO、BARCODE、UNIQUECODE + _codeType string + // 专柜编码 + _shopCode string + // 门店编码 + _storeCode string +} + +// 初始化AlibabaMjOcGetproductbyscancodeAPIRequest对象 +func NewAlibabaMjOcGetproductbyscancodeRequest() *AlibabaMjOcGetproductbyscancodeAPIRequest{ + return &AlibabaMjOcGetproductbyscancodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjOcGetproductbyscancodeAPIRequest) GetApiMethodName() string { + return "alibaba.mj.oc.getproductbyscancode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjOcGetproductbyscancodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 码, 对应的信息可能是款号,也有可能是具体的某一个商品 +func (r *AlibabaMjOcGetproductbyscancodeAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaMjOcGetproductbyscancodeAPIRequest) GetCode() string { + return r._code +} +// CodeType Setter +// 条码/二维码/rfid(电子标签),货号、条码、零售+唯一码;ARTNO、BARCODE、UNIQUECODE +func (r *AlibabaMjOcGetproductbyscancodeAPIRequest) SetCodeType(_codeType string) error { + r._codeType = _codeType + r.Set("code_type", _codeType) + return nil +} + +// CodeType Getter +func (r AlibabaMjOcGetproductbyscancodeAPIRequest) GetCodeType() string { + return r._codeType +} +// ShopCode Setter +// 专柜编码 +func (r *AlibabaMjOcGetproductbyscancodeAPIRequest) SetShopCode(_shopCode string) error { + r._shopCode = _shopCode + r.Set("shop_code", _shopCode) + return nil +} + +// ShopCode Getter +func (r AlibabaMjOcGetproductbyscancodeAPIRequest) GetShopCode() string { + return r._shopCode +} +// StoreCode Setter +// 门店编码 +func (r *AlibabaMjOcGetproductbyscancodeAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r AlibabaMjOcGetproductbyscancodeAPIRequest) GetStoreCode() string { + return r._storeCode +} diff --git a/model/mos/AlibabaMjOcGetproductbyscancodeAPIResponse.go b/model/mos/AlibabaMjOcGetproductbyscancodeAPIResponse.go new file mode 100644 index 0000000000..689e63267f --- /dev/null +++ b/model/mos/AlibabaMjOcGetproductbyscancodeAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +POS商品查询接口 API返回值 +alibaba.mj.oc.getproductbyscancode + +此API用于在银泰商场中,POS端扫码获取商品信息 +*/ +type AlibabaMjOcGetproductbyscancodeAPIResponse struct { + model.CommonResponse + AlibabaMjOcGetproductbyscancodeAPIResponseModel +} + +// POS商品查询接口 成功返回结果 +type AlibabaMjOcGetproductbyscancodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_oc_getproductbyscancode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + ProductList []ScanProduct `json:"product_list,omitempty" xml:"product_list>scan_product,omitempty"` +} diff --git a/model/mos/AlibabaMjOcGetproductbyscancodeResponse.go b/model/mos/AlibabaMjOcGetproductbyscancodeResponse.go deleted file mode 100644 index 663d900d9f..0000000000 --- a/model/mos/AlibabaMjOcGetproductbyscancodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -POS商品查询接口 API返回值 -alibaba.mj.oc.getproductbyscancode - -此API用于在银泰商场中,POS端扫码获取商品信息 -*/ -type AlibabaMjOcGetproductbyscancodeAPIResponse struct { - model.CommonResponse - AlibabaMjOcGetproductbyscancodeResponse -} - -// POS商品查询接口 成功返回结果 -type AlibabaMjOcGetproductbyscancodeResponse struct { - XMLName xml.Name `xml:"alibaba_mj_oc_getproductbyscancode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - ProductList []ScanProduct `json:"product_list,omitempty" xml:"product_list>scan_product,omitempty"` -} diff --git a/model/mos/AlibabaMjOcOfflineMaxticketnoGetAPIRequest.go b/model/mos/AlibabaMjOcOfflineMaxticketnoGetAPIRequest.go new file mode 100644 index 0000000000..8fe029e737 --- /dev/null +++ b/model/mos/AlibabaMjOcOfflineMaxticketnoGetAPIRequest.go @@ -0,0 +1,80 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +pos机获取线下最大小票号 API请求 +alibaba.mj.oc.offline.maxticketno.get + +给pos机提供线下最大小票号查询 +*/ +type AlibabaMjOcOfflineMaxticketnoGetAPIRequest struct { + model.Params + // 收银机号 + _posNo string + // 外部门店号 + _storeNo string + // 日期 + _datetime string +} + +// 初始化AlibabaMjOcOfflineMaxticketnoGetAPIRequest对象 +func NewAlibabaMjOcOfflineMaxticketnoGetRequest() *AlibabaMjOcOfflineMaxticketnoGetAPIRequest{ + return &AlibabaMjOcOfflineMaxticketnoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjOcOfflineMaxticketnoGetAPIRequest) GetApiMethodName() string { + return "alibaba.mj.oc.offline.maxticketno.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjOcOfflineMaxticketnoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PosNo Setter +// 收银机号 +func (r *AlibabaMjOcOfflineMaxticketnoGetAPIRequest) SetPosNo(_posNo string) error { + r._posNo = _posNo + r.Set("pos_no", _posNo) + return nil +} + +// PosNo Getter +func (r AlibabaMjOcOfflineMaxticketnoGetAPIRequest) GetPosNo() string { + return r._posNo +} +// StoreNo Setter +// 外部门店号 +func (r *AlibabaMjOcOfflineMaxticketnoGetAPIRequest) SetStoreNo(_storeNo string) error { + r._storeNo = _storeNo + r.Set("store_no", _storeNo) + return nil +} + +// StoreNo Getter +func (r AlibabaMjOcOfflineMaxticketnoGetAPIRequest) GetStoreNo() string { + return r._storeNo +} +// Datetime Setter +// 日期 +func (r *AlibabaMjOcOfflineMaxticketnoGetAPIRequest) SetDatetime(_datetime string) error { + r._datetime = _datetime + r.Set("datetime", _datetime) + return nil +} + +// Datetime Getter +func (r AlibabaMjOcOfflineMaxticketnoGetAPIRequest) GetDatetime() string { + return r._datetime +} diff --git a/model/mos/AlibabaMjOcOfflineMaxticketnoGetAPIResponse.go b/model/mos/AlibabaMjOcOfflineMaxticketnoGetAPIResponse.go new file mode 100644 index 0000000000..0b8dfb3bd7 --- /dev/null +++ b/model/mos/AlibabaMjOcOfflineMaxticketnoGetAPIResponse.go @@ -0,0 +1,35 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +pos机获取线下最大小票号 API返回值 +alibaba.mj.oc.offline.maxticketno.get + +给pos机提供线下最大小票号查询 +*/ +type AlibabaMjOcOfflineMaxticketnoGetAPIResponse struct { + model.CommonResponse + AlibabaMjOcOfflineMaxticketnoGetAPIResponseModel +} + +// pos机获取线下最大小票号 成功返回结果 +type AlibabaMjOcOfflineMaxticketnoGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_oc_offline_maxticketno_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 时间 + PayDate string `json:"pay_date,omitempty" xml:"pay_date,omitempty"` + // 收银机号 + PosNo string `json:"pos_no,omitempty" xml:"pos_no,omitempty"` + // 联合收银标记 + Union bool `json:"union,omitempty" xml:"union,omitempty"` + // 小票号 + PayNo string `json:"pay_no,omitempty" xml:"pay_no,omitempty"` + // 外部门店号 + StoreNo string `json:"store_no,omitempty" xml:"store_no,omitempty"` +} diff --git a/model/mos/AlibabaMjOcOfflineMaxticketnoGetResponse.go b/model/mos/AlibabaMjOcOfflineMaxticketnoGetResponse.go deleted file mode 100644 index 720b82dfa5..0000000000 --- a/model/mos/AlibabaMjOcOfflineMaxticketnoGetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -pos机获取线下最大小票号 API返回值 -alibaba.mj.oc.offline.maxticketno.get - -给pos机提供线下最大小票号查询 -*/ -type AlibabaMjOcOfflineMaxticketnoGetAPIResponse struct { - model.CommonResponse - AlibabaMjOcOfflineMaxticketnoGetResponse -} - -// pos机获取线下最大小票号 成功返回结果 -type AlibabaMjOcOfflineMaxticketnoGetResponse struct { - XMLName xml.Name `xml:"alibaba_mj_oc_offline_maxticketno_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 时间 - PayDate string `json:"pay_date,omitempty" xml:"pay_date,omitempty"` - // 收银机号 - PosNo string `json:"pos_no,omitempty" xml:"pos_no,omitempty"` - // 联合收银标记 - Union bool `json:"union,omitempty" xml:"union,omitempty"` - // 小票号 - PayNo string `json:"pay_no,omitempty" xml:"pay_no,omitempty"` - // 外部门店号 - StoreNo string `json:"store_no,omitempty" xml:"store_no,omitempty"` -} diff --git a/model/mos/AlibabaMjOcOnlineTicketnoGetAPIRequest.go b/model/mos/AlibabaMjOcOnlineTicketnoGetAPIRequest.go new file mode 100644 index 0000000000..8b17f87568 --- /dev/null +++ b/model/mos/AlibabaMjOcOnlineTicketnoGetAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线上小票号获取 API请求 +alibaba.mj.oc.online.ticketno.get + +线上小票号获取 +*/ +type AlibabaMjOcOnlineTicketnoGetAPIRequest struct { + model.Params + // 外部门店号 + _outStoreNo string +} + +// 初始化AlibabaMjOcOnlineTicketnoGetAPIRequest对象 +func NewAlibabaMjOcOnlineTicketnoGetRequest() *AlibabaMjOcOnlineTicketnoGetAPIRequest{ + return &AlibabaMjOcOnlineTicketnoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjOcOnlineTicketnoGetAPIRequest) GetApiMethodName() string { + return "alibaba.mj.oc.online.ticketno.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjOcOnlineTicketnoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutStoreNo Setter +// 外部门店号 +func (r *AlibabaMjOcOnlineTicketnoGetAPIRequest) SetOutStoreNo(_outStoreNo string) error { + r._outStoreNo = _outStoreNo + r.Set("out_store_no", _outStoreNo) + return nil +} + +// OutStoreNo Getter +func (r AlibabaMjOcOnlineTicketnoGetAPIRequest) GetOutStoreNo() string { + return r._outStoreNo +} diff --git a/model/mos/AlibabaMjOcOnlineTicketnoGetAPIResponse.go b/model/mos/AlibabaMjOcOnlineTicketnoGetAPIResponse.go new file mode 100644 index 0000000000..d97aefc1fa --- /dev/null +++ b/model/mos/AlibabaMjOcOnlineTicketnoGetAPIResponse.go @@ -0,0 +1,33 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线上小票号获取 API返回值 +alibaba.mj.oc.online.ticketno.get + +线上小票号获取 +*/ +type AlibabaMjOcOnlineTicketnoGetAPIResponse struct { + model.CommonResponse + AlibabaMjOcOnlineTicketnoGetAPIResponseModel +} + +// 线上小票号获取 成功返回结果 +type AlibabaMjOcOnlineTicketnoGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_oc_online_ticketno_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Data string `json:"data,omitempty" xml:"data,omitempty"` + // 错误信息 + ErrorsMsg string `json:"errors_msg,omitempty" xml:"errors_msg,omitempty"` + // 错误码 + ErrorsCode int64 `json:"errors_code,omitempty" xml:"errors_code,omitempty"` + // 调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/mos/AlibabaMjOcOnlineTicketnoGetResponse.go b/model/mos/AlibabaMjOcOnlineTicketnoGetResponse.go deleted file mode 100644 index c9ac2d605e..0000000000 --- a/model/mos/AlibabaMjOcOnlineTicketnoGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线上小票号获取 API返回值 -alibaba.mj.oc.online.ticketno.get - -线上小票号获取 -*/ -type AlibabaMjOcOnlineTicketnoGetAPIResponse struct { - model.CommonResponse - AlibabaMjOcOnlineTicketnoGetResponse -} - -// 线上小票号获取 成功返回结果 -type AlibabaMjOcOnlineTicketnoGetResponse struct { - XMLName xml.Name `xml:"alibaba_mj_oc_online_ticketno_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Data string `json:"data,omitempty" xml:"data,omitempty"` - // 错误信息 - ErrorsMsg string `json:"errors_msg,omitempty" xml:"errors_msg,omitempty"` - // 错误码 - ErrorsCode int64 `json:"errors_code,omitempty" xml:"errors_code,omitempty"` - // 调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/mos/AlibabaMjOcOutboundAPIRequest.go b/model/mos/AlibabaMjOcOutboundAPIRequest.go new file mode 100644 index 0000000000..e22bd3d67f --- /dev/null +++ b/model/mos/AlibabaMjOcOutboundAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售商品发货 API请求 +alibaba.mj.oc.outbound + +用于接收发货的数据 +*/ +type AlibabaMjOcOutboundAPIRequest struct { + model.Params + // 发货信息 + _goodsOutbound *GoodsOutboundDto +} + +// 初始化AlibabaMjOcOutboundAPIRequest对象 +func NewAlibabaMjOcOutboundRequest() *AlibabaMjOcOutboundAPIRequest{ + return &AlibabaMjOcOutboundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjOcOutboundAPIRequest) GetApiMethodName() string { + return "alibaba.mj.oc.outbound" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjOcOutboundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GoodsOutbound Setter +// 发货信息 +func (r *AlibabaMjOcOutboundAPIRequest) SetGoodsOutbound(_goodsOutbound *GoodsOutboundDto) error { + r._goodsOutbound = _goodsOutbound + r.Set("goods_outbound", _goodsOutbound) + return nil +} + +// GoodsOutbound Getter +func (r AlibabaMjOcOutboundAPIRequest) GetGoodsOutbound() *GoodsOutboundDto { + return r._goodsOutbound +} diff --git a/model/mos/AlibabaMjOcOutboundAPIResponse.go b/model/mos/AlibabaMjOcOutboundAPIResponse.go new file mode 100644 index 0000000000..a71e2ebcdb --- /dev/null +++ b/model/mos/AlibabaMjOcOutboundAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售商品发货 API返回值 +alibaba.mj.oc.outbound + +用于接收发货的数据 +*/ +type AlibabaMjOcOutboundAPIResponse struct { + model.CommonResponse + AlibabaMjOcOutboundAPIResponseModel +} + +// 零售商品发货 成功返回结果 +type AlibabaMjOcOutboundAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_oc_outbound_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/mos/AlibabaMjOcOutboundResponse.go b/model/mos/AlibabaMjOcOutboundResponse.go deleted file mode 100644 index 5415b3d78e..0000000000 --- a/model/mos/AlibabaMjOcOutboundResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售商品发货 API返回值 -alibaba.mj.oc.outbound - -用于接收发货的数据 -*/ -type AlibabaMjOcOutboundAPIResponse struct { - model.CommonResponse - AlibabaMjOcOutboundResponse -} - -// 零售商品发货 成功返回结果 -type AlibabaMjOcOutboundResponse struct { - XMLName xml.Name `xml:"alibaba_mj_oc_outbound_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/mos/AlibabaMjOcPayAPIRequest.go b/model/mos/AlibabaMjOcPayAPIRequest.go new file mode 100644 index 0000000000..0801ebe95c --- /dev/null +++ b/model/mos/AlibabaMjOcPayAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +POS收银成功后订单同步 API请求 +alibaba.mj.oc.pay + +此API用于在银泰商场中,消费者在收银台收银/退款时, POS系统在收银或退款成功后,调用此接口进行订单同步 +*/ +type AlibabaMjOcPayAPIRequest struct { + model.Params + // 订单数据 + _posOrder *PosOrderDto +} + +// 初始化AlibabaMjOcPayAPIRequest对象 +func NewAlibabaMjOcPayRequest() *AlibabaMjOcPayAPIRequest{ + return &AlibabaMjOcPayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjOcPayAPIRequest) GetApiMethodName() string { + return "alibaba.mj.oc.pay" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjOcPayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PosOrder Setter +// 订单数据 +func (r *AlibabaMjOcPayAPIRequest) SetPosOrder(_posOrder *PosOrderDto) error { + r._posOrder = _posOrder + r.Set("pos_order", _posOrder) + return nil +} + +// PosOrder Getter +func (r AlibabaMjOcPayAPIRequest) GetPosOrder() *PosOrderDto { + return r._posOrder +} diff --git a/model/mos/AlibabaMjOcPayAPIResponse.go b/model/mos/AlibabaMjOcPayAPIResponse.go new file mode 100644 index 0000000000..cae28970f8 --- /dev/null +++ b/model/mos/AlibabaMjOcPayAPIResponse.go @@ -0,0 +1,33 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +POS收银成功后订单同步 API返回值 +alibaba.mj.oc.pay + +此API用于在银泰商场中,消费者在收银台收银/退款时, POS系统在收银或退款成功后,调用此接口进行订单同步 +*/ +type AlibabaMjOcPayAPIResponse struct { + model.CommonResponse + AlibabaMjOcPayAPIResponseModel +} + +// POS收银成功后订单同步 成功返回结果 +type AlibabaMjOcPayAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_oc_pay_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // errCode + ExCode int64 `json:"ex_code,omitempty" xml:"ex_code,omitempty"` + // errMsg + ExMsg string `json:"ex_msg,omitempty" xml:"ex_msg,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // POS交易号 + OutTradeNo string `json:"out_trade_no,omitempty" xml:"out_trade_no,omitempty"` +} diff --git a/model/mos/AlibabaMjOcPayResponse.go b/model/mos/AlibabaMjOcPayResponse.go deleted file mode 100644 index 18d692876d..0000000000 --- a/model/mos/AlibabaMjOcPayResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -POS收银成功后订单同步 API返回值 -alibaba.mj.oc.pay - -此API用于在银泰商场中,消费者在收银台收银/退款时, POS系统在收银或退款成功后,调用此接口进行订单同步 -*/ -type AlibabaMjOcPayAPIResponse struct { - model.CommonResponse - AlibabaMjOcPayResponse -} - -// POS收银成功后订单同步 成功返回结果 -type AlibabaMjOcPayResponse struct { - XMLName xml.Name `xml:"alibaba_mj_oc_pay_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // errCode - ExCode int64 `json:"ex_code,omitempty" xml:"ex_code,omitempty"` - // errMsg - ExMsg string `json:"ex_msg,omitempty" xml:"ex_msg,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // POS交易号 - OutTradeNo string `json:"out_trade_no,omitempty" xml:"out_trade_no,omitempty"` -} diff --git a/model/mos/AlibabaMjOcSyncpayinfoAPIRequest.go b/model/mos/AlibabaMjOcSyncpayinfoAPIRequest.go new file mode 100644 index 0000000000..8cd88680a5 --- /dev/null +++ b/model/mos/AlibabaMjOcSyncpayinfoAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +支付参考号回传 API请求 +alibaba.mj.oc.syncpayinfo + +支付参考号同步到oc +*/ +type AlibabaMjOcSyncpayinfoAPIRequest struct { + model.Params + // 支付参考号信息 + _posPay *PosPayDto +} + +// 初始化AlibabaMjOcSyncpayinfoAPIRequest对象 +func NewAlibabaMjOcSyncpayinfoRequest() *AlibabaMjOcSyncpayinfoAPIRequest{ + return &AlibabaMjOcSyncpayinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjOcSyncpayinfoAPIRequest) GetApiMethodName() string { + return "alibaba.mj.oc.syncpayinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjOcSyncpayinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PosPay Setter +// 支付参考号信息 +func (r *AlibabaMjOcSyncpayinfoAPIRequest) SetPosPay(_posPay *PosPayDto) error { + r._posPay = _posPay + r.Set("pos_pay", _posPay) + return nil +} + +// PosPay Getter +func (r AlibabaMjOcSyncpayinfoAPIRequest) GetPosPay() *PosPayDto { + return r._posPay +} diff --git a/model/mos/AlibabaMjOcSyncpayinfoAPIResponse.go b/model/mos/AlibabaMjOcSyncpayinfoAPIResponse.go new file mode 100644 index 0000000000..4b761f6bf7 --- /dev/null +++ b/model/mos/AlibabaMjOcSyncpayinfoAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +支付参考号回传 API返回值 +alibaba.mj.oc.syncpayinfo + +支付参考号同步到oc +*/ +type AlibabaMjOcSyncpayinfoAPIResponse struct { + model.CommonResponse + AlibabaMjOcSyncpayinfoAPIResponseModel +} + +// 支付参考号回传 成功返回结果 +type AlibabaMjOcSyncpayinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_oc_syncpayinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaMjOcSyncpayinfoResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMjOcSyncpayinfoResponse.go b/model/mos/AlibabaMjOcSyncpayinfoResponse.go deleted file mode 100644 index 6fa17f5d6b..0000000000 --- a/model/mos/AlibabaMjOcSyncpayinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -支付参考号回传 API返回值 -alibaba.mj.oc.syncpayinfo - -支付参考号同步到oc -*/ -type AlibabaMjOcSyncpayinfoAPIResponse struct { - model.CommonResponse - AlibabaMjOcSyncpayinfoResponse -} - -// 支付参考号回传 成功返回结果 -type AlibabaMjOcSyncpayinfoResponse struct { - XMLName xml.Name `xml:"alibaba_mj_oc_syncpayinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaMjOcSyncpayinfoResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMjOcSyncpayinfoResultDo.go b/model/mos/AlibabaMjOcSyncpayinfoResultDo.go new file mode 100644 index 0000000000..f6c042f879 --- /dev/null +++ b/model/mos/AlibabaMjOcSyncpayinfoResultDo.go @@ -0,0 +1,13 @@ +package mos + +// AlibabaMjOcSyncpayinfoResultDo +type AlibabaMjOcSyncpayinfoResultDo struct { + // 错误信息 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // 错误码 + ErrCode int64 `json:"err_code,omitempty" xml:"err_code,omitempty"` + // success + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // data + Date string `json:"date,omitempty" xml:"date,omitempty"` +} diff --git a/model/mos/AlibabaMjOcWritesaleslipAPIRequest.go b/model/mos/AlibabaMjOcWritesaleslipAPIRequest.go new file mode 100644 index 0000000000..d7d27fa110 --- /dev/null +++ b/model/mos/AlibabaMjOcWritesaleslipAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +开票占库 API请求 +alibaba.mj.oc.writesaleslip + +开票占库 +*/ +type AlibabaMjOcWritesaleslipAPIRequest struct { + model.Params + // 开票占库入参 + _posSaleOrder *PosSaleOrderDto +} + +// 初始化AlibabaMjOcWritesaleslipAPIRequest对象 +func NewAlibabaMjOcWritesaleslipRequest() *AlibabaMjOcWritesaleslipAPIRequest{ + return &AlibabaMjOcWritesaleslipAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjOcWritesaleslipAPIRequest) GetApiMethodName() string { + return "alibaba.mj.oc.writesaleslip" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjOcWritesaleslipAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PosSaleOrder Setter +// 开票占库入参 +func (r *AlibabaMjOcWritesaleslipAPIRequest) SetPosSaleOrder(_posSaleOrder *PosSaleOrderDto) error { + r._posSaleOrder = _posSaleOrder + r.Set("pos_sale_order", _posSaleOrder) + return nil +} + +// PosSaleOrder Getter +func (r AlibabaMjOcWritesaleslipAPIRequest) GetPosSaleOrder() *PosSaleOrderDto { + return r._posSaleOrder +} diff --git a/model/mos/AlibabaMjOcWritesaleslipAPIResponse.go b/model/mos/AlibabaMjOcWritesaleslipAPIResponse.go new file mode 100644 index 0000000000..300628bfeb --- /dev/null +++ b/model/mos/AlibabaMjOcWritesaleslipAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +开票占库 API返回值 +alibaba.mj.oc.writesaleslip + +开票占库 +*/ +type AlibabaMjOcWritesaleslipAPIResponse struct { + model.CommonResponse + AlibabaMjOcWritesaleslipAPIResponseModel +} + +// 开票占库 成功返回结果 +type AlibabaMjOcWritesaleslipAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_oc_writesaleslip_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/mos/AlibabaMjOcWritesaleslipResponse.go b/model/mos/AlibabaMjOcWritesaleslipResponse.go deleted file mode 100644 index a6e1d4aa9b..0000000000 --- a/model/mos/AlibabaMjOcWritesaleslipResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -开票占库 API返回值 -alibaba.mj.oc.writesaleslip - -开票占库 -*/ -type AlibabaMjOcWritesaleslipAPIResponse struct { - model.CommonResponse - AlibabaMjOcWritesaleslipResponse -} - -// 开票占库 成功返回结果 -type AlibabaMjOcWritesaleslipResponse struct { - XMLName xml.Name `xml:"alibaba_mj_oc_writesaleslip_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/mos/AlibabaMjPresaleSettlementAddlistAPIRequest.go b/model/mos/AlibabaMjPresaleSettlementAddlistAPIRequest.go new file mode 100644 index 0000000000..228e9fc3d3 --- /dev/null +++ b/model/mos/AlibabaMjPresaleSettlementAddlistAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +预售结算数据回传 API请求 +alibaba.mj.presale.settlement.addlist + +用于预售活动结算数据的回传。 +*/ +type AlibabaMjPresaleSettlementAddlistAPIRequest struct { + model.Params + // 订单json格式数据 + _preSaleRefundJson string +} + +// 初始化AlibabaMjPresaleSettlementAddlistAPIRequest对象 +func NewAlibabaMjPresaleSettlementAddlistRequest() *AlibabaMjPresaleSettlementAddlistAPIRequest{ + return &AlibabaMjPresaleSettlementAddlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjPresaleSettlementAddlistAPIRequest) GetApiMethodName() string { + return "alibaba.mj.presale.settlement.addlist" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjPresaleSettlementAddlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PreSaleRefundJson Setter +// 订单json格式数据 +func (r *AlibabaMjPresaleSettlementAddlistAPIRequest) SetPreSaleRefundJson(_preSaleRefundJson string) error { + r._preSaleRefundJson = _preSaleRefundJson + r.Set("pre_sale_refund_json", _preSaleRefundJson) + return nil +} + +// PreSaleRefundJson Getter +func (r AlibabaMjPresaleSettlementAddlistAPIRequest) GetPreSaleRefundJson() string { + return r._preSaleRefundJson +} diff --git a/model/mos/AlibabaMjPresaleSettlementAddlistAPIResponse.go b/model/mos/AlibabaMjPresaleSettlementAddlistAPIResponse.go new file mode 100644 index 0000000000..7ff7715ede --- /dev/null +++ b/model/mos/AlibabaMjPresaleSettlementAddlistAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +预售结算数据回传 API返回值 +alibaba.mj.presale.settlement.addlist + +用于预售活动结算数据的回传。 +*/ +type AlibabaMjPresaleSettlementAddlistAPIResponse struct { + model.CommonResponse + AlibabaMjPresaleSettlementAddlistAPIResponseModel +} + +// 预售结算数据回传 成功返回结果 +type AlibabaMjPresaleSettlementAddlistAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_presale_settlement_addlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/mos/AlibabaMjPresaleSettlementAddlistResponse.go b/model/mos/AlibabaMjPresaleSettlementAddlistResponse.go deleted file mode 100644 index eb9811a1c5..0000000000 --- a/model/mos/AlibabaMjPresaleSettlementAddlistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -预售结算数据回传 API返回值 -alibaba.mj.presale.settlement.addlist - -用于预售活动结算数据的回传。 -*/ -type AlibabaMjPresaleSettlementAddlistAPIResponse struct { - model.CommonResponse - AlibabaMjPresaleSettlementAddlistResponse -} - -// 预售结算数据回传 成功返回结果 -type AlibabaMjPresaleSettlementAddlistResponse struct { - XMLName xml.Name `xml:"alibaba_mj_presale_settlement_addlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/mos/AlibabaMjPresaleSettlementStatisticsAPIRequest.go b/model/mos/AlibabaMjPresaleSettlementStatisticsAPIRequest.go new file mode 100644 index 0000000000..68399227ab --- /dev/null +++ b/model/mos/AlibabaMjPresaleSettlementStatisticsAPIRequest.go @@ -0,0 +1,66 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +预购结算数据统计 API请求 +alibaba.mj.presale.settlement.statistics + +预购结算数据统计 +*/ +type AlibabaMjPresaleSettlementStatisticsAPIRequest struct { + model.Params + // 活动期号 + _actionNo int64 + // 外部门店编码 + _storeNo string +} + +// 初始化AlibabaMjPresaleSettlementStatisticsAPIRequest对象 +func NewAlibabaMjPresaleSettlementStatisticsRequest() *AlibabaMjPresaleSettlementStatisticsAPIRequest{ + return &AlibabaMjPresaleSettlementStatisticsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMjPresaleSettlementStatisticsAPIRequest) GetApiMethodName() string { + return "alibaba.mj.presale.settlement.statistics" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMjPresaleSettlementStatisticsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActionNo Setter +// 活动期号 +func (r *AlibabaMjPresaleSettlementStatisticsAPIRequest) SetActionNo(_actionNo int64) error { + r._actionNo = _actionNo + r.Set("action_no", _actionNo) + return nil +} + +// ActionNo Getter +func (r AlibabaMjPresaleSettlementStatisticsAPIRequest) GetActionNo() int64 { + return r._actionNo +} +// StoreNo Setter +// 外部门店编码 +func (r *AlibabaMjPresaleSettlementStatisticsAPIRequest) SetStoreNo(_storeNo string) error { + r._storeNo = _storeNo + r.Set("store_no", _storeNo) + return nil +} + +// StoreNo Getter +func (r AlibabaMjPresaleSettlementStatisticsAPIRequest) GetStoreNo() string { + return r._storeNo +} diff --git a/model/mos/AlibabaMjPresaleSettlementStatisticsAPIResponse.go b/model/mos/AlibabaMjPresaleSettlementStatisticsAPIResponse.go new file mode 100644 index 0000000000..852c9eb58b --- /dev/null +++ b/model/mos/AlibabaMjPresaleSettlementStatisticsAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +预购结算数据统计 API返回值 +alibaba.mj.presale.settlement.statistics + +预购结算数据统计 +*/ +type AlibabaMjPresaleSettlementStatisticsAPIResponse struct { + model.CommonResponse + AlibabaMjPresaleSettlementStatisticsAPIResponseModel +} + +// 预购结算数据统计 成功返回结果 +type AlibabaMjPresaleSettlementStatisticsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mj_presale_settlement_statistics_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data *AlibabaMjPresaleSettlementStatisticsData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/mos/AlibabaMjPresaleSettlementStatisticsResponse.go b/model/mos/AlibabaMjPresaleSettlementStatisticsResponse.go deleted file mode 100644 index 43b8a30de5..0000000000 --- a/model/mos/AlibabaMjPresaleSettlementStatisticsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -预购结算数据统计 API返回值 -alibaba.mj.presale.settlement.statistics - -预购结算数据统计 -*/ -type AlibabaMjPresaleSettlementStatisticsAPIResponse struct { - model.CommonResponse - AlibabaMjPresaleSettlementStatisticsResponse -} - -// 预购结算数据统计 成功返回结果 -type AlibabaMjPresaleSettlementStatisticsResponse struct { - XMLName xml.Name `xml:"alibaba_mj_presale_settlement_statistics_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data *AlibabaMjPresaleSettlementStatisticsData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/mos/AlibabaMosArkHealthOfflineLevelGetAPIRequest.go b/model/mos/AlibabaMosArkHealthOfflineLevelGetAPIRequest.go new file mode 100644 index 0000000000..5e24d9499b --- /dev/null +++ b/model/mos/AlibabaMosArkHealthOfflineLevelGetAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取mall的离线等级 API请求 +alibaba.mos.ark.health.offline.level.get + +获取mall的离线等级 +*/ +type AlibabaMosArkHealthOfflineLevelGetAPIRequest struct { + model.Params + // 商场id + _mallId string +} + +// 初始化AlibabaMosArkHealthOfflineLevelGetAPIRequest对象 +func NewAlibabaMosArkHealthOfflineLevelGetRequest() *AlibabaMosArkHealthOfflineLevelGetAPIRequest{ + return &AlibabaMosArkHealthOfflineLevelGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosArkHealthOfflineLevelGetAPIRequest) GetApiMethodName() string { + return "alibaba.mos.ark.health.offline.level.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosArkHealthOfflineLevelGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MallId Setter +// 商场id +func (r *AlibabaMosArkHealthOfflineLevelGetAPIRequest) SetMallId(_mallId string) error { + r._mallId = _mallId + r.Set("mall_id", _mallId) + return nil +} + +// MallId Getter +func (r AlibabaMosArkHealthOfflineLevelGetAPIRequest) GetMallId() string { + return r._mallId +} diff --git a/model/mos/AlibabaMosArkHealthOfflineLevelGetAPIResponse.go b/model/mos/AlibabaMosArkHealthOfflineLevelGetAPIResponse.go new file mode 100644 index 0000000000..a0915b9637 --- /dev/null +++ b/model/mos/AlibabaMosArkHealthOfflineLevelGetAPIResponse.go @@ -0,0 +1,33 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取mall的离线等级 API返回值 +alibaba.mos.ark.health.offline.level.get + +获取mall的离线等级 +*/ +type AlibabaMosArkHealthOfflineLevelGetAPIResponse struct { + model.CommonResponse + AlibabaMosArkHealthOfflineLevelGetAPIResponseModel +} + +// 获取mall的离线等级 成功返回结果 +type AlibabaMosArkHealthOfflineLevelGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_ark_health_offline_level_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // model + Data string `json:"data,omitempty" xml:"data,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` +} diff --git a/model/mos/AlibabaMosArkHealthOfflineLevelGetResponse.go b/model/mos/AlibabaMosArkHealthOfflineLevelGetResponse.go deleted file mode 100644 index 21e0923a75..0000000000 --- a/model/mos/AlibabaMosArkHealthOfflineLevelGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取mall的离线等级 API返回值 -alibaba.mos.ark.health.offline.level.get - -获取mall的离线等级 -*/ -type AlibabaMosArkHealthOfflineLevelGetAPIResponse struct { - model.CommonResponse - AlibabaMosArkHealthOfflineLevelGetResponse -} - -// 获取mall的离线等级 成功返回结果 -type AlibabaMosArkHealthOfflineLevelGetResponse struct { - XMLName xml.Name `xml:"alibaba_mos_ark_health_offline_level_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // model - Data string `json:"data,omitempty" xml:"data,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` -} diff --git a/model/mos/AlibabaMosBunkBunkinfoQuerybunkAPIRequest.go b/model/mos/AlibabaMosBunkBunkinfoQuerybunkAPIRequest.go new file mode 100644 index 0000000000..8f84179a5f --- /dev/null +++ b/model/mos/AlibabaMosBunkBunkinfoQuerybunkAPIRequest.go @@ -0,0 +1,80 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据合同号查询铺位信息 API请求 +alibaba.mos.bunk.bunkinfo.querybunk + +根据合同号查询铺位信息 +*/ +type AlibabaMosBunkBunkinfoQuerybunkAPIRequest struct { + model.Params + // 门店号 + _storeNo string + // 合同状态集合 + _statusList []string + // 合同号集合 + _contractCodes []string +} + +// 初始化AlibabaMosBunkBunkinfoQuerybunkAPIRequest对象 +func NewAlibabaMosBunkBunkinfoQuerybunkRequest() *AlibabaMosBunkBunkinfoQuerybunkAPIRequest{ + return &AlibabaMosBunkBunkinfoQuerybunkAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosBunkBunkinfoQuerybunkAPIRequest) GetApiMethodName() string { + return "alibaba.mos.bunk.bunkinfo.querybunk" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosBunkBunkinfoQuerybunkAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreNo Setter +// 门店号 +func (r *AlibabaMosBunkBunkinfoQuerybunkAPIRequest) SetStoreNo(_storeNo string) error { + r._storeNo = _storeNo + r.Set("store_no", _storeNo) + return nil +} + +// StoreNo Getter +func (r AlibabaMosBunkBunkinfoQuerybunkAPIRequest) GetStoreNo() string { + return r._storeNo +} +// StatusList Setter +// 合同状态集合 +func (r *AlibabaMosBunkBunkinfoQuerybunkAPIRequest) SetStatusList(_statusList []string) error { + r._statusList = _statusList + r.Set("status_list", _statusList) + return nil +} + +// StatusList Getter +func (r AlibabaMosBunkBunkinfoQuerybunkAPIRequest) GetStatusList() []string { + return r._statusList +} +// ContractCodes Setter +// 合同号集合 +func (r *AlibabaMosBunkBunkinfoQuerybunkAPIRequest) SetContractCodes(_contractCodes []string) error { + r._contractCodes = _contractCodes + r.Set("contract_codes", _contractCodes) + return nil +} + +// ContractCodes Getter +func (r AlibabaMosBunkBunkinfoQuerybunkAPIRequest) GetContractCodes() []string { + return r._contractCodes +} diff --git a/model/mos/AlibabaMosBunkBunkinfoQuerybunkAPIResponse.go b/model/mos/AlibabaMosBunkBunkinfoQuerybunkAPIResponse.go new file mode 100644 index 0000000000..b0f81b0406 --- /dev/null +++ b/model/mos/AlibabaMosBunkBunkinfoQuerybunkAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据合同号查询铺位信息 API返回值 +alibaba.mos.bunk.bunkinfo.querybunk + +根据合同号查询铺位信息 +*/ +type AlibabaMosBunkBunkinfoQuerybunkAPIResponse struct { + model.CommonResponse + AlibabaMosBunkBunkinfoQuerybunkAPIResponseModel +} + +// 根据合同号查询铺位信息 成功返回结果 +type AlibabaMosBunkBunkinfoQuerybunkAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_bunk_bunkinfo_querybunk_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaMosBunkBunkinfoQuerybunkResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMosBunkBunkinfoQuerybunkResponse.go b/model/mos/AlibabaMosBunkBunkinfoQuerybunkResponse.go deleted file mode 100644 index 91bfd66d90..0000000000 --- a/model/mos/AlibabaMosBunkBunkinfoQuerybunkResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据合同号查询铺位信息 API返回值 -alibaba.mos.bunk.bunkinfo.querybunk - -根据合同号查询铺位信息 -*/ -type AlibabaMosBunkBunkinfoQuerybunkAPIResponse struct { - model.CommonResponse - AlibabaMosBunkBunkinfoQuerybunkResponse -} - -// 根据合同号查询铺位信息 成功返回结果 -type AlibabaMosBunkBunkinfoQuerybunkResponse struct { - XMLName xml.Name `xml:"alibaba_mos_bunk_bunkinfo_querybunk_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaMosBunkBunkinfoQuerybunkResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMosBunkBunkinfoQuerybunkResultDo.go b/model/mos/AlibabaMosBunkBunkinfoQuerybunkResultDo.go new file mode 100644 index 0000000000..dc89544207 --- /dev/null +++ b/model/mos/AlibabaMosBunkBunkinfoQuerybunkResultDo.go @@ -0,0 +1,23 @@ +package mos + +// AlibabaMosBunkBunkinfoQuerybunkResultDo +type AlibabaMosBunkBunkinfoQuerybunkResultDo struct { + // 全链路追踪id + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 总量 + Total int64 `json:"total,omitempty" xml:"total,omitempty"` + // 返回数据 + DataList []BunkSimpleDto `json:"data_list,omitempty" xml:"data_list>bunk_simple_dto,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrCode int64 `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 其他 + Extra string `json:"extra,omitempty" xml:"extra,omitempty"` + // 错误信息 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // 结果码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 结果标题 + Titles []string `json:"titles,omitempty" xml:"titles>string,omitempty"` +} diff --git a/model/mos/AlibabaMosFinanceBankinfoQuerybankAPIRequest.go b/model/mos/AlibabaMosFinanceBankinfoQuerybankAPIRequest.go new file mode 100644 index 0000000000..1b37a07a05 --- /dev/null +++ b/model/mos/AlibabaMosFinanceBankinfoQuerybankAPIRequest.go @@ -0,0 +1,80 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商银行账号查询 API请求 +alibaba.mos.finance.bankinfo.querybank + +查询供应商对应的银行账号信息 +*/ +type AlibabaMosFinanceBankinfoQuerybankAPIRequest struct { + model.Params + // 供应商id + _supplierId string + // 门店号 + _storeNo string + // 签约主体id + _companyId string +} + +// 初始化AlibabaMosFinanceBankinfoQuerybankAPIRequest对象 +func NewAlibabaMosFinanceBankinfoQuerybankRequest() *AlibabaMosFinanceBankinfoQuerybankAPIRequest{ + return &AlibabaMosFinanceBankinfoQuerybankAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosFinanceBankinfoQuerybankAPIRequest) GetApiMethodName() string { + return "alibaba.mos.finance.bankinfo.querybank" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosFinanceBankinfoQuerybankAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SupplierId Setter +// 供应商id +func (r *AlibabaMosFinanceBankinfoQuerybankAPIRequest) SetSupplierId(_supplierId string) error { + r._supplierId = _supplierId + r.Set("supplier_id", _supplierId) + return nil +} + +// SupplierId Getter +func (r AlibabaMosFinanceBankinfoQuerybankAPIRequest) GetSupplierId() string { + return r._supplierId +} +// StoreNo Setter +// 门店号 +func (r *AlibabaMosFinanceBankinfoQuerybankAPIRequest) SetStoreNo(_storeNo string) error { + r._storeNo = _storeNo + r.Set("store_no", _storeNo) + return nil +} + +// StoreNo Getter +func (r AlibabaMosFinanceBankinfoQuerybankAPIRequest) GetStoreNo() string { + return r._storeNo +} +// CompanyId Setter +// 签约主体id +func (r *AlibabaMosFinanceBankinfoQuerybankAPIRequest) SetCompanyId(_companyId string) error { + r._companyId = _companyId + r.Set("company_id", _companyId) + return nil +} + +// CompanyId Getter +func (r AlibabaMosFinanceBankinfoQuerybankAPIRequest) GetCompanyId() string { + return r._companyId +} diff --git a/model/mos/AlibabaMosFinanceBankinfoQuerybankAPIResponse.go b/model/mos/AlibabaMosFinanceBankinfoQuerybankAPIResponse.go new file mode 100644 index 0000000000..7fddd959f8 --- /dev/null +++ b/model/mos/AlibabaMosFinanceBankinfoQuerybankAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商银行账号查询 API返回值 +alibaba.mos.finance.bankinfo.querybank + +查询供应商对应的银行账号信息 +*/ +type AlibabaMosFinanceBankinfoQuerybankAPIResponse struct { + model.CommonResponse + AlibabaMosFinanceBankinfoQuerybankAPIResponseModel +} + +// 供应商银行账号查询 成功返回结果 +type AlibabaMosFinanceBankinfoQuerybankAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_finance_bankinfo_querybank_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaMosFinanceBankinfoQuerybankResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMosFinanceBankinfoQuerybankResponse.go b/model/mos/AlibabaMosFinanceBankinfoQuerybankResponse.go deleted file mode 100644 index f8b13f00bb..0000000000 --- a/model/mos/AlibabaMosFinanceBankinfoQuerybankResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商银行账号查询 API返回值 -alibaba.mos.finance.bankinfo.querybank - -查询供应商对应的银行账号信息 -*/ -type AlibabaMosFinanceBankinfoQuerybankAPIResponse struct { - model.CommonResponse - AlibabaMosFinanceBankinfoQuerybankResponse -} - -// 供应商银行账号查询 成功返回结果 -type AlibabaMosFinanceBankinfoQuerybankResponse struct { - XMLName xml.Name `xml:"alibaba_mos_finance_bankinfo_querybank_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaMosFinanceBankinfoQuerybankResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMosFinanceBankinfoQuerybankResultDo.go b/model/mos/AlibabaMosFinanceBankinfoQuerybankResultDo.go new file mode 100644 index 0000000000..2d5e46db0c --- /dev/null +++ b/model/mos/AlibabaMosFinanceBankinfoQuerybankResultDo.go @@ -0,0 +1,21 @@ +package mos + +// AlibabaMosFinanceBankinfoQuerybankResultDo +type AlibabaMosFinanceBankinfoQuerybankResultDo struct { + // 总量 + Total int64 `json:"total,omitempty" xml:"total,omitempty"` + // 扩展 + Extra string `json:"extra,omitempty" xml:"extra,omitempty"` + // 全链路追踪id + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 描述 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // 是否成功 + Data *SupplierBankInfoDto `json:"data,omitempty" xml:"data,omitempty"` + // 成功 + ErrCode int64 `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 返回值 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/mos/AlibabaMosOcTradeSyncbanksaleAPIRequest.go b/model/mos/AlibabaMosOcTradeSyncbanksaleAPIRequest.go new file mode 100644 index 0000000000..0ebd09d85d --- /dev/null +++ b/model/mos/AlibabaMosOcTradeSyncbanksaleAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +云闪付、银行卡销售数据回传接口 API请求 +alibaba.mos.oc.trade.syncbanksale + +云闪付、银行卡销售数据回传 +*/ +type AlibabaMosOcTradeSyncbanksaleAPIRequest struct { + model.Params + // pos云闪付、银行卡销售数据 + _posBankSaleInfoDto *PosBankSaleInfoDto +} + +// 初始化AlibabaMosOcTradeSyncbanksaleAPIRequest对象 +func NewAlibabaMosOcTradeSyncbanksaleRequest() *AlibabaMosOcTradeSyncbanksaleAPIRequest{ + return &AlibabaMosOcTradeSyncbanksaleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosOcTradeSyncbanksaleAPIRequest) GetApiMethodName() string { + return "alibaba.mos.oc.trade.syncbanksale" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosOcTradeSyncbanksaleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PosBankSaleInfoDto Setter +// pos云闪付、银行卡销售数据 +func (r *AlibabaMosOcTradeSyncbanksaleAPIRequest) SetPosBankSaleInfoDto(_posBankSaleInfoDto *PosBankSaleInfoDto) error { + r._posBankSaleInfoDto = _posBankSaleInfoDto + r.Set("pos_bank_sale_info_dto", _posBankSaleInfoDto) + return nil +} + +// PosBankSaleInfoDto Getter +func (r AlibabaMosOcTradeSyncbanksaleAPIRequest) GetPosBankSaleInfoDto() *PosBankSaleInfoDto { + return r._posBankSaleInfoDto +} diff --git a/model/mos/AlibabaMosOcTradeSyncbanksaleAPIResponse.go b/model/mos/AlibabaMosOcTradeSyncbanksaleAPIResponse.go new file mode 100644 index 0000000000..29aad8895a --- /dev/null +++ b/model/mos/AlibabaMosOcTradeSyncbanksaleAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +云闪付、银行卡销售数据回传接口 API返回值 +alibaba.mos.oc.trade.syncbanksale + +云闪付、银行卡销售数据回传 +*/ +type AlibabaMosOcTradeSyncbanksaleAPIResponse struct { + model.CommonResponse + AlibabaMosOcTradeSyncbanksaleAPIResponseModel +} + +// 云闪付、银行卡销售数据回传接口 成功返回结果 +type AlibabaMosOcTradeSyncbanksaleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_oc_trade_syncbanksale_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // resultDTO + Result *AlibabaMosOcTradeSyncbanksaleResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMosOcTradeSyncbanksaleResponse.go b/model/mos/AlibabaMosOcTradeSyncbanksaleResponse.go deleted file mode 100644 index bef24fb28d..0000000000 --- a/model/mos/AlibabaMosOcTradeSyncbanksaleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -云闪付、银行卡销售数据回传接口 API返回值 -alibaba.mos.oc.trade.syncbanksale - -云闪付、银行卡销售数据回传 -*/ -type AlibabaMosOcTradeSyncbanksaleAPIResponse struct { - model.CommonResponse - AlibabaMosOcTradeSyncbanksaleResponse -} - -// 云闪付、银行卡销售数据回传接口 成功返回结果 -type AlibabaMosOcTradeSyncbanksaleResponse struct { - XMLName xml.Name `xml:"alibaba_mos_oc_trade_syncbanksale_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // resultDTO - Result *AlibabaMosOcTradeSyncbanksaleResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMosOcTradeSyncbanksaleResultDo.go b/model/mos/AlibabaMosOcTradeSyncbanksaleResultDo.go new file mode 100644 index 0000000000..6d21f050a5 --- /dev/null +++ b/model/mos/AlibabaMosOcTradeSyncbanksaleResultDo.go @@ -0,0 +1,11 @@ +package mos + +// AlibabaMosOcTradeSyncbanksaleResultDo +type AlibabaMosOcTradeSyncbanksaleResultDo struct { + // errCode + ErrCode int64 `json:"err_code,omitempty" xml:"err_code,omitempty"` + // errMsg + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // success + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/mos/AlibabaMosOnsiteTradeIsnewpayorderAPIRequest.go b/model/mos/AlibabaMosOnsiteTradeIsnewpayorderAPIRequest.go new file mode 100644 index 0000000000..74dd9c249a --- /dev/null +++ b/model/mos/AlibabaMosOnsiteTradeIsnewpayorderAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +是否为新支付订单 API请求 +alibaba.mos.onsite.trade.isnewpayorder + +退款时,老支付宝手淘退款接口需要查一下该订单是否为新支付订单 +*/ +type AlibabaMosOnsiteTradeIsnewpayorderAPIRequest struct { + model.Params + // 外部订单号 + _outTradeNo string +} + +// 初始化AlibabaMosOnsiteTradeIsnewpayorderAPIRequest对象 +func NewAlibabaMosOnsiteTradeIsnewpayorderRequest() *AlibabaMosOnsiteTradeIsnewpayorderAPIRequest{ + return &AlibabaMosOnsiteTradeIsnewpayorderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosOnsiteTradeIsnewpayorderAPIRequest) GetApiMethodName() string { + return "alibaba.mos.onsite.trade.isnewpayorder" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosOnsiteTradeIsnewpayorderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutTradeNo Setter +// 外部订单号 +func (r *AlibabaMosOnsiteTradeIsnewpayorderAPIRequest) SetOutTradeNo(_outTradeNo string) error { + r._outTradeNo = _outTradeNo + r.Set("out_trade_no", _outTradeNo) + return nil +} + +// OutTradeNo Getter +func (r AlibabaMosOnsiteTradeIsnewpayorderAPIRequest) GetOutTradeNo() string { + return r._outTradeNo +} diff --git a/model/mos/AlibabaMosOnsiteTradeIsnewpayorderAPIResponse.go b/model/mos/AlibabaMosOnsiteTradeIsnewpayorderAPIResponse.go new file mode 100644 index 0000000000..79f1fee395 --- /dev/null +++ b/model/mos/AlibabaMosOnsiteTradeIsnewpayorderAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +是否为新支付订单 API返回值 +alibaba.mos.onsite.trade.isnewpayorder + +退款时,老支付宝手淘退款接口需要查一下该订单是否为新支付订单 +*/ +type AlibabaMosOnsiteTradeIsnewpayorderAPIResponse struct { + model.CommonResponse + AlibabaMosOnsiteTradeIsnewpayorderAPIResponseModel +} + +// 是否为新支付订单 成功返回结果 +type AlibabaMosOnsiteTradeIsnewpayorderAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_onsite_trade_isnewpayorder_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaMosOnsiteTradeIsnewpayorderResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMosOnsiteTradeIsnewpayorderResponse.go b/model/mos/AlibabaMosOnsiteTradeIsnewpayorderResponse.go deleted file mode 100644 index a54fb1c93c..0000000000 --- a/model/mos/AlibabaMosOnsiteTradeIsnewpayorderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -是否为新支付订单 API返回值 -alibaba.mos.onsite.trade.isnewpayorder - -退款时,老支付宝手淘退款接口需要查一下该订单是否为新支付订单 -*/ -type AlibabaMosOnsiteTradeIsnewpayorderAPIResponse struct { - model.CommonResponse - AlibabaMosOnsiteTradeIsnewpayorderResponse -} - -// 是否为新支付订单 成功返回结果 -type AlibabaMosOnsiteTradeIsnewpayorderResponse struct { - XMLName xml.Name `xml:"alibaba_mos_onsite_trade_isnewpayorder_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaMosOnsiteTradeIsnewpayorderResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMosOnsiteTradeIsnewpayorderResultDo.go b/model/mos/AlibabaMosOnsiteTradeIsnewpayorderResultDo.go new file mode 100644 index 0000000000..642cef71de --- /dev/null +++ b/model/mos/AlibabaMosOnsiteTradeIsnewpayorderResultDo.go @@ -0,0 +1,13 @@ +package mos + +// AlibabaMosOnsiteTradeIsnewpayorderResultDo +type AlibabaMosOnsiteTradeIsnewpayorderResultDo struct { + // 是否为新支付订单。true:是,false:不是 + Data bool `json:"data,omitempty" xml:"data,omitempty"` + // errCode + ErrCode int64 `json:"err_code,omitempty" xml:"err_code,omitempty"` + // errMsg + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // success + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/mos/AlibabaMosOnsiteTradeOldrefundAPIRequest.go b/model/mos/AlibabaMosOnsiteTradeOldrefundAPIRequest.go new file mode 100644 index 0000000000..b4890c3ae9 --- /dev/null +++ b/model/mos/AlibabaMosOnsiteTradeOldrefundAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线下新退款接口(专为老退款接口调用) API请求 +alibaba.mos.onsite.trade.oldrefund + +线下新退款接口(专为老退款接口调用)。新接口支付支付宝、手淘、天猫,老接口退款时,需要调用该接口退新单,并适配老接口响应参数返回 +*/ +type AlibabaMosOnsiteTradeOldrefundAPIRequest struct { + model.Params + // 交易退款请求 + _onsiteRefundRequest *OnsiteRefundRequest +} + +// 初始化AlibabaMosOnsiteTradeOldrefundAPIRequest对象 +func NewAlibabaMosOnsiteTradeOldrefundRequest() *AlibabaMosOnsiteTradeOldrefundAPIRequest{ + return &AlibabaMosOnsiteTradeOldrefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosOnsiteTradeOldrefundAPIRequest) GetApiMethodName() string { + return "alibaba.mos.onsite.trade.oldrefund" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosOnsiteTradeOldrefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OnsiteRefundRequest Setter +// 交易退款请求 +func (r *AlibabaMosOnsiteTradeOldrefundAPIRequest) SetOnsiteRefundRequest(_onsiteRefundRequest *OnsiteRefundRequest) error { + r._onsiteRefundRequest = _onsiteRefundRequest + r.Set("onsite_refund_request", _onsiteRefundRequest) + return nil +} + +// OnsiteRefundRequest Getter +func (r AlibabaMosOnsiteTradeOldrefundAPIRequest) GetOnsiteRefundRequest() *OnsiteRefundRequest { + return r._onsiteRefundRequest +} diff --git a/model/mos/AlibabaMosOnsiteTradeOldrefundAPIResponse.go b/model/mos/AlibabaMosOnsiteTradeOldrefundAPIResponse.go new file mode 100644 index 0000000000..9f9db986ac --- /dev/null +++ b/model/mos/AlibabaMosOnsiteTradeOldrefundAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线下新退款接口(专为老退款接口调用) API返回值 +alibaba.mos.onsite.trade.oldrefund + +线下新退款接口(专为老退款接口调用)。新接口支付支付宝、手淘、天猫,老接口退款时,需要调用该接口退新单,并适配老接口响应参数返回 +*/ +type AlibabaMosOnsiteTradeOldrefundAPIResponse struct { + model.CommonResponse + AlibabaMosOnsiteTradeOldrefundAPIResponseModel +} + +// 线下新退款接口(专为老退款接口调用) 成功返回结果 +type AlibabaMosOnsiteTradeOldrefundAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_onsite_trade_oldrefund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 交易退款响应 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMosOnsiteTradeOldrefundResponse.go b/model/mos/AlibabaMosOnsiteTradeOldrefundResponse.go deleted file mode 100644 index 14f56d0b4f..0000000000 --- a/model/mos/AlibabaMosOnsiteTradeOldrefundResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线下新退款接口(专为老退款接口调用) API返回值 -alibaba.mos.onsite.trade.oldrefund - -线下新退款接口(专为老退款接口调用)。新接口支付支付宝、手淘、天猫,老接口退款时,需要调用该接口退新单,并适配老接口响应参数返回 -*/ -type AlibabaMosOnsiteTradeOldrefundAPIResponse struct { - model.CommonResponse - AlibabaMosOnsiteTradeOldrefundResponse -} - -// 线下新退款接口(专为老退款接口调用) 成功返回结果 -type AlibabaMosOnsiteTradeOldrefundResponse struct { - XMLName xml.Name `xml:"alibaba_mos_onsite_trade_oldrefund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 交易退款响应 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMosOnsiteTradePayAPIRequest.go b/model/mos/AlibabaMosOnsiteTradePayAPIRequest.go new file mode 100644 index 0000000000..2d01ab541c --- /dev/null +++ b/model/mos/AlibabaMosOnsiteTradePayAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新商场当面付商户扫码付 API请求 +alibaba.mos.onsite.trade.pay + +收银员使用扫码设备读取用户“付款码”后,将二维码或条码信息通过本接口上送至喵街发起支付。 +*/ +type AlibabaMosOnsiteTradePayAPIRequest struct { + model.Params + // 创建订单请求参数 + _onsiteTradePayRequest *OnsiteTradePayRequest +} + +// 初始化AlibabaMosOnsiteTradePayAPIRequest对象 +func NewAlibabaMosOnsiteTradePayRequest() *AlibabaMosOnsiteTradePayAPIRequest{ + return &AlibabaMosOnsiteTradePayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosOnsiteTradePayAPIRequest) GetApiMethodName() string { + return "alibaba.mos.onsite.trade.pay" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosOnsiteTradePayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OnsiteTradePayRequest Setter +// 创建订单请求参数 +func (r *AlibabaMosOnsiteTradePayAPIRequest) SetOnsiteTradePayRequest(_onsiteTradePayRequest *OnsiteTradePayRequest) error { + r._onsiteTradePayRequest = _onsiteTradePayRequest + r.Set("onsite_trade_pay_request", _onsiteTradePayRequest) + return nil +} + +// OnsiteTradePayRequest Getter +func (r AlibabaMosOnsiteTradePayAPIRequest) GetOnsiteTradePayRequest() *OnsiteTradePayRequest { + return r._onsiteTradePayRequest +} diff --git a/model/mos/AlibabaMosOnsiteTradePayAPIResponse.go b/model/mos/AlibabaMosOnsiteTradePayAPIResponse.go new file mode 100644 index 0000000000..2ea80f4d3e --- /dev/null +++ b/model/mos/AlibabaMosOnsiteTradePayAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新商场当面付商户扫码付 API返回值 +alibaba.mos.onsite.trade.pay + +收银员使用扫码设备读取用户“付款码”后,将二维码或条码信息通过本接口上送至喵街发起支付。 +*/ +type AlibabaMosOnsiteTradePayAPIResponse struct { + model.CommonResponse + AlibabaMosOnsiteTradePayAPIResponseModel +} + +// 新商场当面付商户扫码付 成功返回结果 +type AlibabaMosOnsiteTradePayAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_onsite_trade_pay_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创建订单响应信息。必然返回 + OnsiteTradePayResponse *OnsiteTradePayResponse `json:"onsite_trade_pay_response,omitempty" xml:"onsite_trade_pay_response,omitempty"` +} diff --git a/model/mos/AlibabaMosOnsiteTradePayResponse.go b/model/mos/AlibabaMosOnsiteTradePayResponse.go deleted file mode 100644 index 84ceb2147d..0000000000 --- a/model/mos/AlibabaMosOnsiteTradePayResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新商场当面付商户扫码付 API返回值 -alibaba.mos.onsite.trade.pay - -收银员使用扫码设备读取用户“付款码”后,将二维码或条码信息通过本接口上送至喵街发起支付。 -*/ -type AlibabaMosOnsiteTradePayAPIResponse struct { - model.CommonResponse - AlibabaMosOnsiteTradePayResponse -} - -// 新商场当面付商户扫码付 成功返回结果 -type AlibabaMosOnsiteTradePayResponse struct { - XMLName xml.Name `xml:"alibaba_mos_onsite_trade_pay_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创建订单响应信息。必然返回 - OnsiteTradePayResponse *OnsiteTradePayResponse `json:"onsite_trade_pay_response,omitempty" xml:"onsite_trade_pay_response,omitempty"` -} diff --git a/model/mos/AlibabaMosOnsiteTradeQueryAPIRequest.go b/model/mos/AlibabaMosOnsiteTradeQueryAPIRequest.go new file mode 100644 index 0000000000..8d24012271 --- /dev/null +++ b/model/mos/AlibabaMosOnsiteTradeQueryAPIRequest.go @@ -0,0 +1,95 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新商场当面付交易查询 API请求 +alibaba.mos.onsite.trade.query + +本接口提供新商场当面付订单的查询的功能,商户可以通过本接口主动查询订单状态,完成下一步的业务逻辑。 +商户系统应在两种场景下调用此接口: 商户POS系统应该在调用[条码支付请求接口]并成功返回后,调用此接口查询订单的处理状态。 +*/ +type AlibabaMosOnsiteTradeQueryAPIRequest struct { + model.Params + // 喵街交易流水号。与商户支付流水号两者至少要填写一个。如果均有,优先级为喵街交易流水号 > 商户支付流水号。 + _tradeNo string + // 商户ID类型,取值为miaojie或out + _storeIdType string + // 门店号或喵街商户ID + _storeId string + // 原支付请求的商户支付流水号。与喵街交易流水号两者至少要填写一个。如果均有,优先级为喵街交易流水号 > 商户支付流水号。 + _outTradeNo string +} + +// 初始化AlibabaMosOnsiteTradeQueryAPIRequest对象 +func NewAlibabaMosOnsiteTradeQueryRequest() *AlibabaMosOnsiteTradeQueryAPIRequest{ + return &AlibabaMosOnsiteTradeQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosOnsiteTradeQueryAPIRequest) GetApiMethodName() string { + return "alibaba.mos.onsite.trade.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosOnsiteTradeQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeNo Setter +// 喵街交易流水号。与商户支付流水号两者至少要填写一个。如果均有,优先级为喵街交易流水号 > 商户支付流水号。 +func (r *AlibabaMosOnsiteTradeQueryAPIRequest) SetTradeNo(_tradeNo string) error { + r._tradeNo = _tradeNo + r.Set("trade_no", _tradeNo) + return nil +} + +// TradeNo Getter +func (r AlibabaMosOnsiteTradeQueryAPIRequest) GetTradeNo() string { + return r._tradeNo +} +// StoreIdType Setter +// 商户ID类型,取值为miaojie或out +func (r *AlibabaMosOnsiteTradeQueryAPIRequest) SetStoreIdType(_storeIdType string) error { + r._storeIdType = _storeIdType + r.Set("store_id_type", _storeIdType) + return nil +} + +// StoreIdType Getter +func (r AlibabaMosOnsiteTradeQueryAPIRequest) GetStoreIdType() string { + return r._storeIdType +} +// StoreId Setter +// 门店号或喵街商户ID +func (r *AlibabaMosOnsiteTradeQueryAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaMosOnsiteTradeQueryAPIRequest) GetStoreId() string { + return r._storeId +} +// OutTradeNo Setter +// 原支付请求的商户支付流水号。与喵街交易流水号两者至少要填写一个。如果均有,优先级为喵街交易流水号 > 商户支付流水号。 +func (r *AlibabaMosOnsiteTradeQueryAPIRequest) SetOutTradeNo(_outTradeNo string) error { + r._outTradeNo = _outTradeNo + r.Set("out_trade_no", _outTradeNo) + return nil +} + +// OutTradeNo Getter +func (r AlibabaMosOnsiteTradeQueryAPIRequest) GetOutTradeNo() string { + return r._outTradeNo +} diff --git a/model/mos/AlibabaMosOnsiteTradeQueryAPIResponse.go b/model/mos/AlibabaMosOnsiteTradeQueryAPIResponse.go new file mode 100644 index 0000000000..1b71487380 --- /dev/null +++ b/model/mos/AlibabaMosOnsiteTradeQueryAPIResponse.go @@ -0,0 +1,28 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新商场当面付交易查询 API返回值 +alibaba.mos.onsite.trade.query + +本接口提供新商场当面付订单的查询的功能,商户可以通过本接口主动查询订单状态,完成下一步的业务逻辑。 +商户系统应在两种场景下调用此接口: 商户POS系统应该在调用[条码支付请求接口]并成功返回后,调用此接口查询订单的处理状态。 +*/ +type AlibabaMosOnsiteTradeQueryAPIResponse struct { + model.CommonResponse + AlibabaMosOnsiteTradeQueryAPIResponseModel +} + +// 新商场当面付交易查询 成功返回结果 +type AlibabaMosOnsiteTradeQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_onsite_trade_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果对象。必然返回 + OnsiteTradeQueryResponse *OnsiteTradeQueryResponse `json:"onsite_trade_query_response,omitempty" xml:"onsite_trade_query_response,omitempty"` +} diff --git a/model/mos/AlibabaMosOnsiteTradeQueryResponse.go b/model/mos/AlibabaMosOnsiteTradeQueryResponse.go deleted file mode 100644 index cfe21669a0..0000000000 --- a/model/mos/AlibabaMosOnsiteTradeQueryResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新商场当面付交易查询 API返回值 -alibaba.mos.onsite.trade.query - -本接口提供新商场当面付订单的查询的功能,商户可以通过本接口主动查询订单状态,完成下一步的业务逻辑。 -商户系统应在两种场景下调用此接口: 商户POS系统应该在调用[条码支付请求接口]并成功返回后,调用此接口查询订单的处理状态。 -*/ -type AlibabaMosOnsiteTradeQueryAPIResponse struct { - model.CommonResponse - AlibabaMosOnsiteTradeQueryResponse -} - -// 新商场当面付交易查询 成功返回结果 -type AlibabaMosOnsiteTradeQueryResponse struct { - XMLName xml.Name `xml:"alibaba_mos_onsite_trade_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果对象。必然返回 - OnsiteTradeQueryResponse *OnsiteTradeQueryResponse `json:"onsite_trade_query_response,omitempty" xml:"onsite_trade_query_response,omitempty"` -} diff --git a/model/mos/AlibabaMosOnsiteTradeQueryrefundAPIRequest.go b/model/mos/AlibabaMosOnsiteTradeQueryrefundAPIRequest.go new file mode 100644 index 0000000000..88b7416d4e --- /dev/null +++ b/model/mos/AlibabaMosOnsiteTradeQueryrefundAPIRequest.go @@ -0,0 +1,66 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +退款查询 API请求 +alibaba.mos.onsite.trade.queryrefund + +商户可使用该接口查询退款请求是否执行成功。 +*/ +type AlibabaMosOnsiteTradeQueryrefundAPIRequest struct { + model.Params + // 退款外部流水号 + _outRequestNo string + // 订单号。可能为外部订单号,也可能为喵街订单号 + _orderNo string +} + +// 初始化AlibabaMosOnsiteTradeQueryrefundAPIRequest对象 +func NewAlibabaMosOnsiteTradeQueryrefundRequest() *AlibabaMosOnsiteTradeQueryrefundAPIRequest{ + return &AlibabaMosOnsiteTradeQueryrefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosOnsiteTradeQueryrefundAPIRequest) GetApiMethodName() string { + return "alibaba.mos.onsite.trade.queryrefund" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosOnsiteTradeQueryrefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutRequestNo Setter +// 退款外部流水号 +func (r *AlibabaMosOnsiteTradeQueryrefundAPIRequest) SetOutRequestNo(_outRequestNo string) error { + r._outRequestNo = _outRequestNo + r.Set("out_request_no", _outRequestNo) + return nil +} + +// OutRequestNo Getter +func (r AlibabaMosOnsiteTradeQueryrefundAPIRequest) GetOutRequestNo() string { + return r._outRequestNo +} +// OrderNo Setter +// 订单号。可能为外部订单号,也可能为喵街订单号 +func (r *AlibabaMosOnsiteTradeQueryrefundAPIRequest) SetOrderNo(_orderNo string) error { + r._orderNo = _orderNo + r.Set("order_no", _orderNo) + return nil +} + +// OrderNo Getter +func (r AlibabaMosOnsiteTradeQueryrefundAPIRequest) GetOrderNo() string { + return r._orderNo +} diff --git a/model/mos/AlibabaMosOnsiteTradeQueryrefundAPIResponse.go b/model/mos/AlibabaMosOnsiteTradeQueryrefundAPIResponse.go new file mode 100644 index 0000000000..780b3e48f6 --- /dev/null +++ b/model/mos/AlibabaMosOnsiteTradeQueryrefundAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +退款查询 API返回值 +alibaba.mos.onsite.trade.queryrefund + +商户可使用该接口查询退款请求是否执行成功。 +*/ +type AlibabaMosOnsiteTradeQueryrefundAPIResponse struct { + model.CommonResponse + AlibabaMosOnsiteTradeQueryrefundAPIResponseModel +} + +// 退款查询 成功返回结果 +type AlibabaMosOnsiteTradeQueryrefundAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_onsite_trade_queryrefund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaMosOnsiteTradeQueryrefundResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMosOnsiteTradeQueryrefundResponse.go b/model/mos/AlibabaMosOnsiteTradeQueryrefundResponse.go deleted file mode 100644 index 21b08c8096..0000000000 --- a/model/mos/AlibabaMosOnsiteTradeQueryrefundResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -退款查询 API返回值 -alibaba.mos.onsite.trade.queryrefund - -商户可使用该接口查询退款请求是否执行成功。 -*/ -type AlibabaMosOnsiteTradeQueryrefundAPIResponse struct { - model.CommonResponse - AlibabaMosOnsiteTradeQueryrefundResponse -} - -// 退款查询 成功返回结果 -type AlibabaMosOnsiteTradeQueryrefundResponse struct { - XMLName xml.Name `xml:"alibaba_mos_onsite_trade_queryrefund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaMosOnsiteTradeQueryrefundResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMosOnsiteTradeQueryrefundResultDo.go b/model/mos/AlibabaMosOnsiteTradeQueryrefundResultDo.go new file mode 100644 index 0000000000..2d147a04fb --- /dev/null +++ b/model/mos/AlibabaMosOnsiteTradeQueryrefundResultDo.go @@ -0,0 +1,13 @@ +package mos + +// AlibabaMosOnsiteTradeQueryrefundResultDo +type AlibabaMosOnsiteTradeQueryrefundResultDo struct { + // data + Data *OnsiteRefundResponse `json:"data,omitempty" xml:"data,omitempty"` + // errCode + ErrCode int64 `json:"err_code,omitempty" xml:"err_code,omitempty"` + // errMsg + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // success + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/mos/AlibabaMosOnsiteTradeRefundAPIRequest.go b/model/mos/AlibabaMosOnsiteTradeRefundAPIRequest.go new file mode 100644 index 0000000000..f9e77f53ba --- /dev/null +++ b/model/mos/AlibabaMosOnsiteTradeRefundAPIRequest.go @@ -0,0 +1,55 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +退款 API请求 +alibaba.mos.onsite.trade.refund + +当交易发生之后一段时间内,由于消费者或者商户的原因需退款,商户可通过退款接口将支付款退还给消费者,喵街将在收到退款请求并验证成功后,按退款规则将支付款按原路退到消费者账号上。 + +1. 交易超过可退款时间(签约时设置的可退款时间)的订单无法进行退款。 +2. 只支持全额退款。 +*/ +type AlibabaMosOnsiteTradeRefundAPIRequest struct { + model.Params + // 交易退款请求 + _onsiteRefundRequest *OnsiteRefundRequest +} + +// 初始化AlibabaMosOnsiteTradeRefundAPIRequest对象 +func NewAlibabaMosOnsiteTradeRefundRequest() *AlibabaMosOnsiteTradeRefundAPIRequest{ + return &AlibabaMosOnsiteTradeRefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosOnsiteTradeRefundAPIRequest) GetApiMethodName() string { + return "alibaba.mos.onsite.trade.refund" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosOnsiteTradeRefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OnsiteRefundRequest Setter +// 交易退款请求 +func (r *AlibabaMosOnsiteTradeRefundAPIRequest) SetOnsiteRefundRequest(_onsiteRefundRequest *OnsiteRefundRequest) error { + r._onsiteRefundRequest = _onsiteRefundRequest + r.Set("onsite_refund_request", _onsiteRefundRequest) + return nil +} + +// OnsiteRefundRequest Getter +func (r AlibabaMosOnsiteTradeRefundAPIRequest) GetOnsiteRefundRequest() *OnsiteRefundRequest { + return r._onsiteRefundRequest +} diff --git a/model/mos/AlibabaMosOnsiteTradeRefundAPIResponse.go b/model/mos/AlibabaMosOnsiteTradeRefundAPIResponse.go new file mode 100644 index 0000000000..c1d7558b0c --- /dev/null +++ b/model/mos/AlibabaMosOnsiteTradeRefundAPIResponse.go @@ -0,0 +1,30 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +退款 API返回值 +alibaba.mos.onsite.trade.refund + +当交易发生之后一段时间内,由于消费者或者商户的原因需退款,商户可通过退款接口将支付款退还给消费者,喵街将在收到退款请求并验证成功后,按退款规则将支付款按原路退到消费者账号上。 + +1. 交易超过可退款时间(签约时设置的可退款时间)的订单无法进行退款。 +2. 只支持全额退款。 +*/ +type AlibabaMosOnsiteTradeRefundAPIResponse struct { + model.CommonResponse + AlibabaMosOnsiteTradeRefundAPIResponseModel +} + +// 退款 成功返回结果 +type AlibabaMosOnsiteTradeRefundAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_onsite_trade_refund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 交易退款响应 + Result *AlibabaMosOnsiteTradeRefundResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMosOnsiteTradeRefundResponse.go b/model/mos/AlibabaMosOnsiteTradeRefundResponse.go deleted file mode 100644 index d010ecab0f..0000000000 --- a/model/mos/AlibabaMosOnsiteTradeRefundResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -退款 API返回值 -alibaba.mos.onsite.trade.refund - -当交易发生之后一段时间内,由于消费者或者商户的原因需退款,商户可通过退款接口将支付款退还给消费者,喵街将在收到退款请求并验证成功后,按退款规则将支付款按原路退到消费者账号上。 - -1. 交易超过可退款时间(签约时设置的可退款时间)的订单无法进行退款。 -2. 只支持全额退款。 -*/ -type AlibabaMosOnsiteTradeRefundAPIResponse struct { - model.CommonResponse - AlibabaMosOnsiteTradeRefundResponse -} - -// 退款 成功返回结果 -type AlibabaMosOnsiteTradeRefundResponse struct { - XMLName xml.Name `xml:"alibaba_mos_onsite_trade_refund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 交易退款响应 - Result *AlibabaMosOnsiteTradeRefundResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMosOnsiteTradeRefundResultDo.go b/model/mos/AlibabaMosOnsiteTradeRefundResultDo.go new file mode 100644 index 0000000000..1d7339b2fd --- /dev/null +++ b/model/mos/AlibabaMosOnsiteTradeRefundResultDo.go @@ -0,0 +1,13 @@ +package mos + +// AlibabaMosOnsiteTradeRefundResultDo +type AlibabaMosOnsiteTradeRefundResultDo struct { + // data + Data *RefundResponse `json:"data,omitempty" xml:"data,omitempty"` + // 错误码 + ErrCode int64 `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 错误信息 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // success + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/mos/AlibabaMosOrderqsMisbigposOrderQueryAPIRequest.go b/model/mos/AlibabaMosOrderqsMisbigposOrderQueryAPIRequest.go new file mode 100644 index 0000000000..e70d98e27d --- /dev/null +++ b/model/mos/AlibabaMosOrderqsMisbigposOrderQueryAPIRequest.go @@ -0,0 +1,94 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大pos新选单退 API请求 +alibaba.mos.orderqs.misbigpos.order.query + +大pos新选单退 +*/ +type AlibabaMosOrderqsMisbigposOrderQueryAPIRequest struct { + model.Params + // 外部门店号 + _storeNo string + // 基本信息获取参数 + _queryBaseData bool + // 小票号 + _receiptNo string + // 券扩展数据获取 + _queryCouponExtern bool +} + +// 初始化AlibabaMosOrderqsMisbigposOrderQueryAPIRequest对象 +func NewAlibabaMosOrderqsMisbigposOrderQueryRequest() *AlibabaMosOrderqsMisbigposOrderQueryAPIRequest{ + return &AlibabaMosOrderqsMisbigposOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosOrderqsMisbigposOrderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.mos.orderqs.misbigpos.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosOrderqsMisbigposOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreNo Setter +// 外部门店号 +func (r *AlibabaMosOrderqsMisbigposOrderQueryAPIRequest) SetStoreNo(_storeNo string) error { + r._storeNo = _storeNo + r.Set("store_no", _storeNo) + return nil +} + +// StoreNo Getter +func (r AlibabaMosOrderqsMisbigposOrderQueryAPIRequest) GetStoreNo() string { + return r._storeNo +} +// QueryBaseData Setter +// 基本信息获取参数 +func (r *AlibabaMosOrderqsMisbigposOrderQueryAPIRequest) SetQueryBaseData(_queryBaseData bool) error { + r._queryBaseData = _queryBaseData + r.Set("query_base_data", _queryBaseData) + return nil +} + +// QueryBaseData Getter +func (r AlibabaMosOrderqsMisbigposOrderQueryAPIRequest) GetQueryBaseData() bool { + return r._queryBaseData +} +// ReceiptNo Setter +// 小票号 +func (r *AlibabaMosOrderqsMisbigposOrderQueryAPIRequest) SetReceiptNo(_receiptNo string) error { + r._receiptNo = _receiptNo + r.Set("receipt_no", _receiptNo) + return nil +} + +// ReceiptNo Getter +func (r AlibabaMosOrderqsMisbigposOrderQueryAPIRequest) GetReceiptNo() string { + return r._receiptNo +} +// QueryCouponExtern Setter +// 券扩展数据获取 +func (r *AlibabaMosOrderqsMisbigposOrderQueryAPIRequest) SetQueryCouponExtern(_queryCouponExtern bool) error { + r._queryCouponExtern = _queryCouponExtern + r.Set("query_coupon_extern", _queryCouponExtern) + return nil +} + +// QueryCouponExtern Getter +func (r AlibabaMosOrderqsMisbigposOrderQueryAPIRequest) GetQueryCouponExtern() bool { + return r._queryCouponExtern +} diff --git a/model/mos/AlibabaMosOrderqsMisbigposOrderQueryAPIResponse.go b/model/mos/AlibabaMosOrderqsMisbigposOrderQueryAPIResponse.go new file mode 100644 index 0000000000..db6e921b27 --- /dev/null +++ b/model/mos/AlibabaMosOrderqsMisbigposOrderQueryAPIResponse.go @@ -0,0 +1,49 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大pos新选单退 API返回值 +alibaba.mos.orderqs.misbigpos.order.query + +大pos新选单退 +*/ +type AlibabaMosOrderqsMisbigposOrderQueryAPIResponse struct { + model.CommonResponse + AlibabaMosOrderqsMisbigposOrderQueryAPIResponseModel +} + +// 大pos新选单退 成功返回结果 +type AlibabaMosOrderqsMisbigposOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_orderqs_misbigpos_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + ErrsMsg string `json:"errs_msg,omitempty" xml:"errs_msg,omitempty"` + // 错误码 + ErrsCode int64 `json:"errs_code,omitempty" xml:"errs_code,omitempty"` + // 调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 小票基本数据 + Sumstrs []SumStr `json:"sumstrs,omitempty" xml:"sumstrs>sum_str,omitempty"` + // 支付方式数据 + Payments []Payment `json:"payments,omitempty" xml:"payments>payment,omitempty"` + // 商品信息 + Goods []Goods `json:"goods,omitempty" xml:"goods>goods,omitempty"` + // 定向礼券相关 + Coupons []Coupon `json:"coupons,omitempty" xml:"coupons>coupon,omitempty"` + // 会员相关 + Vipinfo *Vipinfo `json:"vipinfo,omitempty" xml:"vipinfo,omitempty"` + // 退款相关 + Refunds []Refund `json:"refunds,omitempty" xml:"refunds>refund,omitempty"` + // 分摊相关 + Products []Product `json:"products,omitempty" xml:"products>product,omitempty"` + // 券相关 + CouponExterns []Couponextern `json:"coupon_externs,omitempty" xml:"coupon_externs>couponextern,omitempty"` + // 满返接口使用情况 + CouponServiceValid bool `json:"coupon_service_valid,omitempty" xml:"coupon_service_valid,omitempty"` +} diff --git a/model/mos/AlibabaMosOrderqsMisbigposOrderQueryResponse.go b/model/mos/AlibabaMosOrderqsMisbigposOrderQueryResponse.go deleted file mode 100644 index 1726a9859f..0000000000 --- a/model/mos/AlibabaMosOrderqsMisbigposOrderQueryResponse.go +++ /dev/null @@ -1,49 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大pos新选单退 API返回值 -alibaba.mos.orderqs.misbigpos.order.query - -大pos新选单退 -*/ -type AlibabaMosOrderqsMisbigposOrderQueryAPIResponse struct { - model.CommonResponse - AlibabaMosOrderqsMisbigposOrderQueryResponse -} - -// 大pos新选单退 成功返回结果 -type AlibabaMosOrderqsMisbigposOrderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_mos_orderqs_misbigpos_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - ErrsMsg string `json:"errs_msg,omitempty" xml:"errs_msg,omitempty"` - // 错误码 - ErrsCode int64 `json:"errs_code,omitempty" xml:"errs_code,omitempty"` - // 调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 小票基本数据 - Sumstrs []SumStr `json:"sumstrs,omitempty" xml:"sumstrs>sum_str,omitempty"` - // 支付方式数据 - Payments []Payment `json:"payments,omitempty" xml:"payments>payment,omitempty"` - // 商品信息 - Goods []Goods `json:"goods,omitempty" xml:"goods>goods,omitempty"` - // 定向礼券相关 - Coupons []Coupon `json:"coupons,omitempty" xml:"coupons>coupon,omitempty"` - // 会员相关 - Vipinfo *Vipinfo `json:"vipinfo,omitempty" xml:"vipinfo,omitempty"` - // 退款相关 - Refunds []Refund `json:"refunds,omitempty" xml:"refunds>refund,omitempty"` - // 分摊相关 - Products []Product `json:"products,omitempty" xml:"products>product,omitempty"` - // 券相关 - CouponExterns []Couponextern `json:"coupon_externs,omitempty" xml:"coupon_externs>couponextern,omitempty"` - // 满返接口使用情况 - CouponServiceValid bool `json:"coupon_service_valid,omitempty" xml:"coupon_service_valid,omitempty"` -} diff --git a/model/mos/AlibabaMosPosAlarmAPIRequest.go b/model/mos/AlibabaMosPosAlarmAPIRequest.go new file mode 100644 index 0000000000..af53865366 --- /dev/null +++ b/model/mos/AlibabaMosPosAlarmAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +pos故障报警 API请求 +alibaba.mos.pos.alarm + +故障报警 +*/ +type AlibabaMosPosAlarmAPIRequest struct { + model.Params + // 参数 + _param0 *PosLogDto +} + +// 初始化AlibabaMosPosAlarmAPIRequest对象 +func NewAlibabaMosPosAlarmRequest() *AlibabaMosPosAlarmAPIRequest{ + return &AlibabaMosPosAlarmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosPosAlarmAPIRequest) GetApiMethodName() string { + return "alibaba.mos.pos.alarm" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosPosAlarmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 参数 +func (r *AlibabaMosPosAlarmAPIRequest) SetParam0(_param0 *PosLogDto) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaMosPosAlarmAPIRequest) GetParam0() *PosLogDto { + return r._param0 +} diff --git a/model/mos/AlibabaMosPosAlarmAPIResponse.go b/model/mos/AlibabaMosPosAlarmAPIResponse.go new file mode 100644 index 0000000000..8e0157d855 --- /dev/null +++ b/model/mos/AlibabaMosPosAlarmAPIResponse.go @@ -0,0 +1,31 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +pos故障报警 API返回值 +alibaba.mos.pos.alarm + +故障报警 +*/ +type AlibabaMosPosAlarmAPIResponse struct { + model.CommonResponse + AlibabaMosPosAlarmAPIResponseModel +} + +// pos故障报警 成功返回结果 +type AlibabaMosPosAlarmAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_pos_alarm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // errMsg + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // errCode + SubErrCode int64 `json:"sub_err_code,omitempty" xml:"sub_err_code,omitempty"` + // success/false + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMosPosAlarmResponse.go b/model/mos/AlibabaMosPosAlarmResponse.go deleted file mode 100644 index 61dec0aafa..0000000000 --- a/model/mos/AlibabaMosPosAlarmResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -pos故障报警 API返回值 -alibaba.mos.pos.alarm - -故障报警 -*/ -type AlibabaMosPosAlarmAPIResponse struct { - model.CommonResponse - AlibabaMosPosAlarmResponse -} - -// pos故障报警 成功返回结果 -type AlibabaMosPosAlarmResponse struct { - XMLName xml.Name `xml:"alibaba_mos_pos_alarm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // errMsg - ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` - // errCode - SubErrCode int64 `json:"sub_err_code,omitempty" xml:"sub_err_code,omitempty"` - // success/false - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMosStoreGetcloudshelfversionAPIRequest.go b/model/mos/AlibabaMosStoreGetcloudshelfversionAPIRequest.go new file mode 100644 index 0000000000..85ffd7d90f --- /dev/null +++ b/model/mos/AlibabaMosStoreGetcloudshelfversionAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取云货架版本信息 API请求 +alibaba.mos.store.getcloudshelfversion + +根据屏编号获取云货架版本信息 +*/ +type AlibabaMosStoreGetcloudshelfversionAPIRequest struct { + model.Params + // 屏编号 + _screenNo string +} + +// 初始化AlibabaMosStoreGetcloudshelfversionAPIRequest对象 +func NewAlibabaMosStoreGetcloudshelfversionRequest() *AlibabaMosStoreGetcloudshelfversionAPIRequest{ + return &AlibabaMosStoreGetcloudshelfversionAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosStoreGetcloudshelfversionAPIRequest) GetApiMethodName() string { + return "alibaba.mos.store.getcloudshelfversion" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosStoreGetcloudshelfversionAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ScreenNo Setter +// 屏编号 +func (r *AlibabaMosStoreGetcloudshelfversionAPIRequest) SetScreenNo(_screenNo string) error { + r._screenNo = _screenNo + r.Set("screen_no", _screenNo) + return nil +} + +// ScreenNo Getter +func (r AlibabaMosStoreGetcloudshelfversionAPIRequest) GetScreenNo() string { + return r._screenNo +} diff --git a/model/mos/AlibabaMosStoreGetcloudshelfversionAPIResponse.go b/model/mos/AlibabaMosStoreGetcloudshelfversionAPIResponse.go new file mode 100644 index 0000000000..dd93fa87bf --- /dev/null +++ b/model/mos/AlibabaMosStoreGetcloudshelfversionAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取云货架版本信息 API返回值 +alibaba.mos.store.getcloudshelfversion + +根据屏编号获取云货架版本信息 +*/ +type AlibabaMosStoreGetcloudshelfversionAPIResponse struct { + model.CommonResponse + AlibabaMosStoreGetcloudshelfversionAPIResponseModel +} + +// 获取云货架版本信息 成功返回结果 +type AlibabaMosStoreGetcloudshelfversionAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_store_getcloudshelfversion_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaMosStoreGetcloudshelfversionResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMosStoreGetcloudshelfversionResponse.go b/model/mos/AlibabaMosStoreGetcloudshelfversionResponse.go deleted file mode 100644 index 00a487b34d..0000000000 --- a/model/mos/AlibabaMosStoreGetcloudshelfversionResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取云货架版本信息 API返回值 -alibaba.mos.store.getcloudshelfversion - -根据屏编号获取云货架版本信息 -*/ -type AlibabaMosStoreGetcloudshelfversionAPIResponse struct { - model.CommonResponse - AlibabaMosStoreGetcloudshelfversionResponse -} - -// 获取云货架版本信息 成功返回结果 -type AlibabaMosStoreGetcloudshelfversionResponse struct { - XMLName xml.Name `xml:"alibaba_mos_store_getcloudshelfversion_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaMosStoreGetcloudshelfversionResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMosStoreGetcloudshelfversionResultDo.go b/model/mos/AlibabaMosStoreGetcloudshelfversionResultDo.go new file mode 100644 index 0000000000..ec4cfebc91 --- /dev/null +++ b/model/mos/AlibabaMosStoreGetcloudshelfversionResultDo.go @@ -0,0 +1,13 @@ +package mos + +// AlibabaMosStoreGetcloudshelfversionResultDo +type AlibabaMosStoreGetcloudshelfversionResultDo struct { + // data + Data int64 `json:"data,omitempty" xml:"data,omitempty"` + // errCode + ErrCode int64 `json:"err_code,omitempty" xml:"err_code,omitempty"` + // errMsg + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // success + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/mos/AlibabaMosStoreGetdefautitemsAPIRequest.go b/model/mos/AlibabaMosStoreGetdefautitemsAPIRequest.go new file mode 100644 index 0000000000..07fdc97663 --- /dev/null +++ b/model/mos/AlibabaMosStoreGetdefautitemsAPIRequest.go @@ -0,0 +1,80 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取默认状态下商品列表 API请求 +alibaba.mos.store.getdefautitems + +获取默认状态下商品列表 +*/ +type AlibabaMosStoreGetdefautitemsAPIRequest struct { + model.Params + // 屏编号 + _screenNo string + // 分页查询开始index + _start int64 + // 分页查询每页记录数 + _limitCount int64 +} + +// 初始化AlibabaMosStoreGetdefautitemsAPIRequest对象 +func NewAlibabaMosStoreGetdefautitemsRequest() *AlibabaMosStoreGetdefautitemsAPIRequest{ + return &AlibabaMosStoreGetdefautitemsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosStoreGetdefautitemsAPIRequest) GetApiMethodName() string { + return "alibaba.mos.store.getdefautitems" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosStoreGetdefautitemsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ScreenNo Setter +// 屏编号 +func (r *AlibabaMosStoreGetdefautitemsAPIRequest) SetScreenNo(_screenNo string) error { + r._screenNo = _screenNo + r.Set("screen_no", _screenNo) + return nil +} + +// ScreenNo Getter +func (r AlibabaMosStoreGetdefautitemsAPIRequest) GetScreenNo() string { + return r._screenNo +} +// Start Setter +// 分页查询开始index +func (r *AlibabaMosStoreGetdefautitemsAPIRequest) SetStart(_start int64) error { + r._start = _start + r.Set("start", _start) + return nil +} + +// Start Getter +func (r AlibabaMosStoreGetdefautitemsAPIRequest) GetStart() int64 { + return r._start +} +// LimitCount Setter +// 分页查询每页记录数 +func (r *AlibabaMosStoreGetdefautitemsAPIRequest) SetLimitCount(_limitCount int64) error { + r._limitCount = _limitCount + r.Set("limit_count", _limitCount) + return nil +} + +// LimitCount Getter +func (r AlibabaMosStoreGetdefautitemsAPIRequest) GetLimitCount() int64 { + return r._limitCount +} diff --git a/model/mos/AlibabaMosStoreGetdefautitemsAPIResponse.go b/model/mos/AlibabaMosStoreGetdefautitemsAPIResponse.go new file mode 100644 index 0000000000..dcc49bcfb8 --- /dev/null +++ b/model/mos/AlibabaMosStoreGetdefautitemsAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取默认状态下商品列表 API返回值 +alibaba.mos.store.getdefautitems + +获取默认状态下商品列表 +*/ +type AlibabaMosStoreGetdefautitemsAPIResponse struct { + model.CommonResponse + AlibabaMosStoreGetdefautitemsAPIResponseModel +} + +// 获取默认状态下商品列表 成功返回结果 +type AlibabaMosStoreGetdefautitemsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_store_getdefautitems_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaMosStoreGetdefautitemsResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMosStoreGetdefautitemsResponse.go b/model/mos/AlibabaMosStoreGetdefautitemsResponse.go deleted file mode 100644 index d50a80aa8a..0000000000 --- a/model/mos/AlibabaMosStoreGetdefautitemsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取默认状态下商品列表 API返回值 -alibaba.mos.store.getdefautitems - -获取默认状态下商品列表 -*/ -type AlibabaMosStoreGetdefautitemsAPIResponse struct { - model.CommonResponse - AlibabaMosStoreGetdefautitemsResponse -} - -// 获取默认状态下商品列表 成功返回结果 -type AlibabaMosStoreGetdefautitemsResponse struct { - XMLName xml.Name `xml:"alibaba_mos_store_getdefautitems_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaMosStoreGetdefautitemsResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMosStoreGetdefautitemsResultDo.go b/model/mos/AlibabaMosStoreGetdefautitemsResultDo.go new file mode 100644 index 0000000000..792fc621e0 --- /dev/null +++ b/model/mos/AlibabaMosStoreGetdefautitemsResultDo.go @@ -0,0 +1,15 @@ +package mos + +// AlibabaMosStoreGetdefautitemsResultDo +type AlibabaMosStoreGetdefautitemsResultDo struct { + // data + Data *MjStoreItemsTopVo `json:"data,omitempty" xml:"data,omitempty"` + // errCode + ErrCode int64 `json:"err_code,omitempty" xml:"err_code,omitempty"` + // errMsg + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // success + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // total + Total int64 `json:"total,omitempty" xml:"total,omitempty"` +} diff --git a/model/mos/AlibabaMosStoreGetstorelistAPIRequest.go b/model/mos/AlibabaMosStoreGetstorelistAPIRequest.go new file mode 100644 index 0000000000..b6e4cabafb --- /dev/null +++ b/model/mos/AlibabaMosStoreGetstorelistAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据屏编号获取专柜集 API请求 +alibaba.mos.store.getstorelist + +根据屏编号获取专柜集 +*/ +type AlibabaMosStoreGetstorelistAPIRequest struct { + model.Params + // 屏编号 + _screenNo string +} + +// 初始化AlibabaMosStoreGetstorelistAPIRequest对象 +func NewAlibabaMosStoreGetstorelistRequest() *AlibabaMosStoreGetstorelistAPIRequest{ + return &AlibabaMosStoreGetstorelistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosStoreGetstorelistAPIRequest) GetApiMethodName() string { + return "alibaba.mos.store.getstorelist" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosStoreGetstorelistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ScreenNo Setter +// 屏编号 +func (r *AlibabaMosStoreGetstorelistAPIRequest) SetScreenNo(_screenNo string) error { + r._screenNo = _screenNo + r.Set("screen_no", _screenNo) + return nil +} + +// ScreenNo Getter +func (r AlibabaMosStoreGetstorelistAPIRequest) GetScreenNo() string { + return r._screenNo +} diff --git a/model/mos/AlibabaMosStoreGetstorelistAPIResponse.go b/model/mos/AlibabaMosStoreGetstorelistAPIResponse.go new file mode 100644 index 0000000000..783ee3ad5d --- /dev/null +++ b/model/mos/AlibabaMosStoreGetstorelistAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据屏编号获取专柜集 API返回值 +alibaba.mos.store.getstorelist + +根据屏编号获取专柜集 +*/ +type AlibabaMosStoreGetstorelistAPIResponse struct { + model.CommonResponse + AlibabaMosStoreGetstorelistAPIResponseModel +} + +// 根据屏编号获取专柜集 成功返回结果 +type AlibabaMosStoreGetstorelistAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_store_getstorelist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaMosStoreGetstorelistResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMosStoreGetstorelistResponse.go b/model/mos/AlibabaMosStoreGetstorelistResponse.go deleted file mode 100644 index c325d92cc5..0000000000 --- a/model/mos/AlibabaMosStoreGetstorelistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据屏编号获取专柜集 API返回值 -alibaba.mos.store.getstorelist - -根据屏编号获取专柜集 -*/ -type AlibabaMosStoreGetstorelistAPIResponse struct { - model.CommonResponse - AlibabaMosStoreGetstorelistResponse -} - -// 根据屏编号获取专柜集 成功返回结果 -type AlibabaMosStoreGetstorelistResponse struct { - XMLName xml.Name `xml:"alibaba_mos_store_getstorelist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaMosStoreGetstorelistResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMosStoreGetstorelistResultDo.go b/model/mos/AlibabaMosStoreGetstorelistResultDo.go new file mode 100644 index 0000000000..5fe17931fe --- /dev/null +++ b/model/mos/AlibabaMosStoreGetstorelistResultDo.go @@ -0,0 +1,13 @@ +package mos + +// AlibabaMosStoreGetstorelistResultDo +type AlibabaMosStoreGetstorelistResultDo struct { + // data + Data *MjStoresTopVo `json:"data,omitempty" xml:"data,omitempty"` + // 错误码 + ErrCode int64 `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 错误信息 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // success + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/mos/AlibabaMosStoreRecordscreenpointinfoAPIRequest.go b/model/mos/AlibabaMosStoreRecordscreenpointinfoAPIRequest.go new file mode 100644 index 0000000000..e0e16ba515 --- /dev/null +++ b/model/mos/AlibabaMosStoreRecordscreenpointinfoAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +云屏埋点数据记录接口 API请求 +alibaba.mos.store.recordscreenpointinfo + +记录云屏埋点数据 +*/ +type AlibabaMosStoreRecordscreenpointinfoAPIRequest struct { + model.Params + // 云屏埋点信息 + _screenPointInfo string +} + +// 初始化AlibabaMosStoreRecordscreenpointinfoAPIRequest对象 +func NewAlibabaMosStoreRecordscreenpointinfoRequest() *AlibabaMosStoreRecordscreenpointinfoAPIRequest{ + return &AlibabaMosStoreRecordscreenpointinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosStoreRecordscreenpointinfoAPIRequest) GetApiMethodName() string { + return "alibaba.mos.store.recordscreenpointinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosStoreRecordscreenpointinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ScreenPointInfo Setter +// 云屏埋点信息 +func (r *AlibabaMosStoreRecordscreenpointinfoAPIRequest) SetScreenPointInfo(_screenPointInfo string) error { + r._screenPointInfo = _screenPointInfo + r.Set("screen_point_info", _screenPointInfo) + return nil +} + +// ScreenPointInfo Getter +func (r AlibabaMosStoreRecordscreenpointinfoAPIRequest) GetScreenPointInfo() string { + return r._screenPointInfo +} diff --git a/model/mos/AlibabaMosStoreRecordscreenpointinfoAPIResponse.go b/model/mos/AlibabaMosStoreRecordscreenpointinfoAPIResponse.go new file mode 100644 index 0000000000..96026fede8 --- /dev/null +++ b/model/mos/AlibabaMosStoreRecordscreenpointinfoAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +云屏埋点数据记录接口 API返回值 +alibaba.mos.store.recordscreenpointinfo + +记录云屏埋点数据 +*/ +type AlibabaMosStoreRecordscreenpointinfoAPIResponse struct { + model.CommonResponse + AlibabaMosStoreRecordscreenpointinfoAPIResponseModel +} + +// 云屏埋点数据记录接口 成功返回结果 +type AlibabaMosStoreRecordscreenpointinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_store_recordscreenpointinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaMosStoreRecordscreenpointinfoResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMosStoreRecordscreenpointinfoResponse.go b/model/mos/AlibabaMosStoreRecordscreenpointinfoResponse.go deleted file mode 100644 index c901773adc..0000000000 --- a/model/mos/AlibabaMosStoreRecordscreenpointinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -云屏埋点数据记录接口 API返回值 -alibaba.mos.store.recordscreenpointinfo - -记录云屏埋点数据 -*/ -type AlibabaMosStoreRecordscreenpointinfoAPIResponse struct { - model.CommonResponse - AlibabaMosStoreRecordscreenpointinfoResponse -} - -// 云屏埋点数据记录接口 成功返回结果 -type AlibabaMosStoreRecordscreenpointinfoResponse struct { - XMLName xml.Name `xml:"alibaba_mos_store_recordscreenpointinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaMosStoreRecordscreenpointinfoResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMosStoreRecordscreenpointinfoResultDo.go b/model/mos/AlibabaMosStoreRecordscreenpointinfoResultDo.go new file mode 100644 index 0000000000..e614a4f21f --- /dev/null +++ b/model/mos/AlibabaMosStoreRecordscreenpointinfoResultDo.go @@ -0,0 +1,11 @@ +package mos + +// AlibabaMosStoreRecordscreenpointinfoResultDo +type AlibabaMosStoreRecordscreenpointinfoResultDo struct { + // errCode + ErrCode int64 `json:"err_code,omitempty" xml:"err_code,omitempty"` + // errMsg + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // success + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/mos/AlibabaMosSupplierBasisGetsupplierinfoAPIRequest.go b/model/mos/AlibabaMosSupplierBasisGetsupplierinfoAPIRequest.go new file mode 100644 index 0000000000..7cfc47e68f --- /dev/null +++ b/model/mos/AlibabaMosSupplierBasisGetsupplierinfoAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取供应商基础信息 API请求 +alibaba.mos.supplier.basis.getsupplierinfo + +基于供应商id获取供应商基础脱敏信息 +*/ +type AlibabaMosSupplierBasisGetsupplierinfoAPIRequest struct { + model.Params + // 供应商id + _supplierId string +} + +// 初始化AlibabaMosSupplierBasisGetsupplierinfoAPIRequest对象 +func NewAlibabaMosSupplierBasisGetsupplierinfoRequest() *AlibabaMosSupplierBasisGetsupplierinfoAPIRequest{ + return &AlibabaMosSupplierBasisGetsupplierinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosSupplierBasisGetsupplierinfoAPIRequest) GetApiMethodName() string { + return "alibaba.mos.supplier.basis.getsupplierinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosSupplierBasisGetsupplierinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SupplierId Setter +// 供应商id +func (r *AlibabaMosSupplierBasisGetsupplierinfoAPIRequest) SetSupplierId(_supplierId string) error { + r._supplierId = _supplierId + r.Set("supplier_id", _supplierId) + return nil +} + +// SupplierId Getter +func (r AlibabaMosSupplierBasisGetsupplierinfoAPIRequest) GetSupplierId() string { + return r._supplierId +} diff --git a/model/mos/AlibabaMosSupplierBasisGetsupplierinfoAPIResponse.go b/model/mos/AlibabaMosSupplierBasisGetsupplierinfoAPIResponse.go new file mode 100644 index 0000000000..3bec709d4e --- /dev/null +++ b/model/mos/AlibabaMosSupplierBasisGetsupplierinfoAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取供应商基础信息 API返回值 +alibaba.mos.supplier.basis.getsupplierinfo + +基于供应商id获取供应商基础脱敏信息 +*/ +type AlibabaMosSupplierBasisGetsupplierinfoAPIResponse struct { + model.CommonResponse + AlibabaMosSupplierBasisGetsupplierinfoAPIResponseModel +} + +// 获取供应商基础信息 成功返回结果 +type AlibabaMosSupplierBasisGetsupplierinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_supplier_basis_getsupplierinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据 + Result *JsonResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMosSupplierBasisGetsupplierinfoResponse.go b/model/mos/AlibabaMosSupplierBasisGetsupplierinfoResponse.go deleted file mode 100644 index 6f60eab585..0000000000 --- a/model/mos/AlibabaMosSupplierBasisGetsupplierinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取供应商基础信息 API返回值 -alibaba.mos.supplier.basis.getsupplierinfo - -基于供应商id获取供应商基础脱敏信息 -*/ -type AlibabaMosSupplierBasisGetsupplierinfoAPIResponse struct { - model.CommonResponse - AlibabaMosSupplierBasisGetsupplierinfoResponse -} - -// 获取供应商基础信息 成功返回结果 -type AlibabaMosSupplierBasisGetsupplierinfoResponse struct { - XMLName xml.Name `xml:"alibaba_mos_supplier_basis_getsupplierinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据 - Result *JsonResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMosflowWorkQueryvariablesAPIRequest.go b/model/mos/AlibabaMosflowWorkQueryvariablesAPIRequest.go new file mode 100644 index 0000000000..c92ea2cd01 --- /dev/null +++ b/model/mos/AlibabaMosflowWorkQueryvariablesAPIRequest.go @@ -0,0 +1,52 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定流程上下文参数 API请求 +alibaba.mosflow.work.queryvariables + +业务查询指定流程上下文内容 +*/ +type AlibabaMosflowWorkQueryvariablesAPIRequest struct { + model.Params + // 流程实例ID + _processInstanceId string +} + +// 初始化AlibabaMosflowWorkQueryvariablesAPIRequest对象 +func NewAlibabaMosflowWorkQueryvariablesRequest() *AlibabaMosflowWorkQueryvariablesAPIRequest{ + return &AlibabaMosflowWorkQueryvariablesAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosflowWorkQueryvariablesAPIRequest) GetApiMethodName() string { + return "alibaba.mosflow.work.queryvariables" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosflowWorkQueryvariablesAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProcessInstanceId Setter +// 流程实例ID +func (r *AlibabaMosflowWorkQueryvariablesAPIRequest) SetProcessInstanceId(_processInstanceId string) error { + r._processInstanceId = _processInstanceId + r.Set("process_instance_id", _processInstanceId) + return nil +} + +// ProcessInstanceId Getter +func (r AlibabaMosflowWorkQueryvariablesAPIRequest) GetProcessInstanceId() string { + return r._processInstanceId +} diff --git a/model/mos/AlibabaMosflowWorkQueryvariablesAPIResponse.go b/model/mos/AlibabaMosflowWorkQueryvariablesAPIResponse.go new file mode 100644 index 0000000000..b1b5eda22f --- /dev/null +++ b/model/mos/AlibabaMosflowWorkQueryvariablesAPIResponse.go @@ -0,0 +1,27 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定流程上下文参数 API返回值 +alibaba.mosflow.work.queryvariables + +业务查询指定流程上下文内容 +*/ +type AlibabaMosflowWorkQueryvariablesAPIResponse struct { + model.CommonResponse + AlibabaMosflowWorkQueryvariablesAPIResponseModel +} + +// 获取指定流程上下文参数 成功返回结果 +type AlibabaMosflowWorkQueryvariablesAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mosflow_work_queryvariables_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *MultiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mos/AlibabaMosflowWorkQueryvariablesResponse.go b/model/mos/AlibabaMosflowWorkQueryvariablesResponse.go deleted file mode 100644 index 68f846a902..0000000000 --- a/model/mos/AlibabaMosflowWorkQueryvariablesResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取指定流程上下文参数 API返回值 -alibaba.mosflow.work.queryvariables - -业务查询指定流程上下文内容 -*/ -type AlibabaMosflowWorkQueryvariablesAPIResponse struct { - model.CommonResponse - AlibabaMosflowWorkQueryvariablesResponse -} - -// 获取指定流程上下文参数 成功返回结果 -type AlibabaMosflowWorkQueryvariablesResponse struct { - XMLName xml.Name `xml:"alibaba_mosflow_work_queryvariables_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *MultiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mos/AlibabaMosflowWorkStartprocessAPIRequest.go b/model/mos/AlibabaMosflowWorkStartprocessAPIRequest.go new file mode 100644 index 0000000000..2a4903306d --- /dev/null +++ b/model/mos/AlibabaMosflowWorkStartprocessAPIRequest.go @@ -0,0 +1,66 @@ +package mos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发起流程 API请求 +alibaba.mosflow.work.startprocess + +业务发起流程审批 +*/ +type AlibabaMosflowWorkStartprocessAPIRequest struct { + model.Params + // 参数二:额外业务参数,Map的JSON串 + _variables string + // 流程必传参数 + _parameterEntity *ParameterEntity +} + +// 初始化AlibabaMosflowWorkStartprocessAPIRequest对象 +func NewAlibabaMosflowWorkStartprocessRequest() *AlibabaMosflowWorkStartprocessAPIRequest{ + return &AlibabaMosflowWorkStartprocessAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosflowWorkStartprocessAPIRequest) GetApiMethodName() string { + return "alibaba.mosflow.work.startprocess" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosflowWorkStartprocessAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Variables Setter +// 参数二:额外业务参数,Map的JSON串 +func (r *AlibabaMosflowWorkStartprocessAPIRequest) SetVariables(_variables string) error { + r._variables = _variables + r.Set("variables", _variables) + return nil +} + +// Variables Getter +func (r AlibabaMosflowWorkStartprocessAPIRequest) GetVariables() string { + return r._variables +} +// ParameterEntity Setter +// 流程必传参数 +func (r *AlibabaMosflowWorkStartprocessAPIRequest) SetParameterEntity(_parameterEntity *ParameterEntity) error { + r._parameterEntity = _parameterEntity + r.Set("parameter_entity", _parameterEntity) + return nil +} + +// ParameterEntity Getter +func (r AlibabaMosflowWorkStartprocessAPIRequest) GetParameterEntity() *ParameterEntity { + return r._parameterEntity +} diff --git a/model/mos/AlibabaMosflowWorkStartprocessAPIResponse.go b/model/mos/AlibabaMosflowWorkStartprocessAPIResponse.go new file mode 100644 index 0000000000..ae2991f153 --- /dev/null +++ b/model/mos/AlibabaMosflowWorkStartprocessAPIResponse.go @@ -0,0 +1,33 @@ +package mos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发起流程 API返回值 +alibaba.mosflow.work.startprocess + +业务发起流程审批 +*/ +type AlibabaMosflowWorkStartprocessAPIResponse struct { + model.CommonResponse + AlibabaMosflowWorkStartprocessAPIResponseModel +} + +// 发起流程 成功返回结果 +type AlibabaMosflowWorkStartprocessAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mosflow_work_startprocess_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应参数 + Data string `json:"data,omitempty" xml:"data,omitempty"` + // 操作是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 异常信息 + ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"` + // 异常Code + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/mos/AlibabaMosflowWorkStartprocessResponse.go b/model/mos/AlibabaMosflowWorkStartprocessResponse.go deleted file mode 100644 index e30b45ef55..0000000000 --- a/model/mos/AlibabaMosflowWorkStartprocessResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package mos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发起流程 API返回值 -alibaba.mosflow.work.startprocess - -业务发起流程审批 -*/ -type AlibabaMosflowWorkStartprocessAPIResponse struct { - model.CommonResponse - AlibabaMosflowWorkStartprocessResponse -} - -// 发起流程 成功返回结果 -type AlibabaMosflowWorkStartprocessResponse struct { - XMLName xml.Name `xml:"alibaba_mosflow_work_startprocess_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应参数 - Data string `json:"data,omitempty" xml:"data,omitempty"` - // 操作是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 异常信息 - ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"` - // 异常Code - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/moscm/AlibabaMosDeliverySendAPIRequest.go b/model/moscm/AlibabaMosDeliverySendAPIRequest.go new file mode 100644 index 0000000000..bcd8300336 --- /dev/null +++ b/model/moscm/AlibabaMosDeliverySendAPIRequest.go @@ -0,0 +1,52 @@ +package moscm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发货 API请求 +alibaba.mos.delivery.send + +订单发货填写快递单 +*/ +type AlibabaMosDeliverySendAPIRequest struct { + model.Params + // 发货信息 + _deliveryDto *DeliveryDto +} + +// 初始化AlibabaMosDeliverySendAPIRequest对象 +func NewAlibabaMosDeliverySendRequest() *AlibabaMosDeliverySendAPIRequest{ + return &AlibabaMosDeliverySendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosDeliverySendAPIRequest) GetApiMethodName() string { + return "alibaba.mos.delivery.send" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosDeliverySendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeliveryDto Setter +// 发货信息 +func (r *AlibabaMosDeliverySendAPIRequest) SetDeliveryDto(_deliveryDto *DeliveryDto) error { + r._deliveryDto = _deliveryDto + r.Set("delivery_dto", _deliveryDto) + return nil +} + +// DeliveryDto Getter +func (r AlibabaMosDeliverySendAPIRequest) GetDeliveryDto() *DeliveryDto { + return r._deliveryDto +} diff --git a/model/moscm/AlibabaMosDeliverySendAPIResponse.go b/model/moscm/AlibabaMosDeliverySendAPIResponse.go new file mode 100644 index 0000000000..3a6294f2d4 --- /dev/null +++ b/model/moscm/AlibabaMosDeliverySendAPIResponse.go @@ -0,0 +1,27 @@ +package moscm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发货 API返回值 +alibaba.mos.delivery.send + +订单发货填写快递单 +*/ +type AlibabaMosDeliverySendAPIResponse struct { + model.CommonResponse + AlibabaMosDeliverySendAPIResponseModel +} + +// 发货 成功返回结果 +type AlibabaMosDeliverySendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_delivery_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaMosDeliverySendResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/moscm/AlibabaMosDeliverySendResponse.go b/model/moscm/AlibabaMosDeliverySendResponse.go deleted file mode 100644 index cda0b6522d..0000000000 --- a/model/moscm/AlibabaMosDeliverySendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package moscm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发货 API返回值 -alibaba.mos.delivery.send - -订单发货填写快递单 -*/ -type AlibabaMosDeliverySendAPIResponse struct { - model.CommonResponse - AlibabaMosDeliverySendResponse -} - -// 发货 成功返回结果 -type AlibabaMosDeliverySendResponse struct { - XMLName xml.Name `xml:"alibaba_mos_delivery_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaMosDeliverySendResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/moscm/AlibabaMosDeliverySendResultDo.go b/model/moscm/AlibabaMosDeliverySendResultDo.go new file mode 100644 index 0000000000..d9681a7234 --- /dev/null +++ b/model/moscm/AlibabaMosDeliverySendResultDo.go @@ -0,0 +1,11 @@ +package moscm + +// AlibabaMosDeliverySendResultDo +type AlibabaMosDeliverySendResultDo struct { + // 异常信息 + SubMsg string `json:"sub_msg,omitempty" xml:"sub_msg,omitempty"` + // 编码 + SubCode string `json:"sub_code,omitempty" xml:"sub_code,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/moscm/AlibabaMosGoodsAdjustAPIRequest.go b/model/moscm/AlibabaMosGoodsAdjustAPIRequest.go new file mode 100644 index 0000000000..2f47362361 --- /dev/null +++ b/model/moscm/AlibabaMosGoodsAdjustAPIRequest.go @@ -0,0 +1,52 @@ +package moscm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +调整库存 API请求 +alibaba.mos.goods.adjust + +库存调整接口 +*/ +type AlibabaMosGoodsAdjustAPIRequest struct { + model.Params + // 库存调整入参 + _paramIsvStockAdjustRequestDTO *IsvStockAdjustRequestDto +} + +// 初始化AlibabaMosGoodsAdjustAPIRequest对象 +func NewAlibabaMosGoodsAdjustRequest() *AlibabaMosGoodsAdjustAPIRequest{ + return &AlibabaMosGoodsAdjustAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosGoodsAdjustAPIRequest) GetApiMethodName() string { + return "alibaba.mos.goods.adjust" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosGoodsAdjustAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamIsvStockAdjustRequestDTO Setter +// 库存调整入参 +func (r *AlibabaMosGoodsAdjustAPIRequest) SetParamIsvStockAdjustRequestDTO(_paramIsvStockAdjustRequestDTO *IsvStockAdjustRequestDto) error { + r._paramIsvStockAdjustRequestDTO = _paramIsvStockAdjustRequestDTO + r.Set("param_isv_stock_adjust_request_d_t_o", _paramIsvStockAdjustRequestDTO) + return nil +} + +// ParamIsvStockAdjustRequestDTO Getter +func (r AlibabaMosGoodsAdjustAPIRequest) GetParamIsvStockAdjustRequestDTO() *IsvStockAdjustRequestDto { + return r._paramIsvStockAdjustRequestDTO +} diff --git a/model/moscm/AlibabaMosGoodsAdjustAPIResponse.go b/model/moscm/AlibabaMosGoodsAdjustAPIResponse.go new file mode 100644 index 0000000000..016bf76d61 --- /dev/null +++ b/model/moscm/AlibabaMosGoodsAdjustAPIResponse.go @@ -0,0 +1,27 @@ +package moscm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +调整库存 API返回值 +alibaba.mos.goods.adjust + +库存调整接口 +*/ +type AlibabaMosGoodsAdjustAPIResponse struct { + model.CommonResponse + AlibabaMosGoodsAdjustAPIResponseModel +} + +// 调整库存 成功返回结果 +type AlibabaMosGoodsAdjustAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_goods_adjust_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 库存调整单号 + Result *AlibabaMosGoodsAdjustResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/moscm/AlibabaMosGoodsAdjustResponse.go b/model/moscm/AlibabaMosGoodsAdjustResponse.go deleted file mode 100644 index 172762d9d5..0000000000 --- a/model/moscm/AlibabaMosGoodsAdjustResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package moscm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -调整库存 API返回值 -alibaba.mos.goods.adjust - -库存调整接口 -*/ -type AlibabaMosGoodsAdjustAPIResponse struct { - model.CommonResponse - AlibabaMosGoodsAdjustResponse -} - -// 调整库存 成功返回结果 -type AlibabaMosGoodsAdjustResponse struct { - XMLName xml.Name `xml:"alibaba_mos_goods_adjust_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 库存调整单号 - Result *AlibabaMosGoodsAdjustResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/moscm/AlibabaMosGoodsAdjustResultDo.go b/model/moscm/AlibabaMosGoodsAdjustResultDo.go new file mode 100644 index 0000000000..b4654db187 --- /dev/null +++ b/model/moscm/AlibabaMosGoodsAdjustResultDo.go @@ -0,0 +1,7 @@ +package moscm + +// AlibabaMosGoodsAdjustResultDo +type AlibabaMosGoodsAdjustResultDo struct { + // 返回生成的单据号 + Data string `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/moscm/AlibabaMosGoodsBulkinputcspuAPIRequest.go b/model/moscm/AlibabaMosGoodsBulkinputcspuAPIRequest.go new file mode 100644 index 0000000000..088a4bf662 --- /dev/null +++ b/model/moscm/AlibabaMosGoodsBulkinputcspuAPIRequest.go @@ -0,0 +1,52 @@ +package moscm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量录入商品信息 API请求 +alibaba.mos.goods.bulkinputcspu + +用于商品信息的批量导入到银泰商品中台 +*/ +type AlibabaMosGoodsBulkinputcspuAPIRequest struct { + model.Params + // 录入商品信息列表(最大列表长度:20) + _cspuInputDtoList []CspuInputDto +} + +// 初始化AlibabaMosGoodsBulkinputcspuAPIRequest对象 +func NewAlibabaMosGoodsBulkinputcspuRequest() *AlibabaMosGoodsBulkinputcspuAPIRequest{ + return &AlibabaMosGoodsBulkinputcspuAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosGoodsBulkinputcspuAPIRequest) GetApiMethodName() string { + return "alibaba.mos.goods.bulkinputcspu" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosGoodsBulkinputcspuAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CspuInputDtoList Setter +// 录入商品信息列表(最大列表长度:20) +func (r *AlibabaMosGoodsBulkinputcspuAPIRequest) SetCspuInputDtoList(_cspuInputDtoList []CspuInputDto) error { + r._cspuInputDtoList = _cspuInputDtoList + r.Set("cspu_input_dto_list", _cspuInputDtoList) + return nil +} + +// CspuInputDtoList Getter +func (r AlibabaMosGoodsBulkinputcspuAPIRequest) GetCspuInputDtoList() []CspuInputDto { + return r._cspuInputDtoList +} diff --git a/model/moscm/AlibabaMosGoodsBulkinputcspuAPIResponse.go b/model/moscm/AlibabaMosGoodsBulkinputcspuAPIResponse.go new file mode 100644 index 0000000000..c6a91c9f61 --- /dev/null +++ b/model/moscm/AlibabaMosGoodsBulkinputcspuAPIResponse.go @@ -0,0 +1,27 @@ +package moscm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量录入商品信息 API返回值 +alibaba.mos.goods.bulkinputcspu + +用于商品信息的批量导入到银泰商品中台 +*/ +type AlibabaMosGoodsBulkinputcspuAPIResponse struct { + model.CommonResponse + AlibabaMosGoodsBulkinputcspuAPIResponseModel +} + +// 批量录入商品信息 成功返回结果 +type AlibabaMosGoodsBulkinputcspuAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_goods_bulkinputcspu_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据 + Data *BulkInputCspuResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/moscm/AlibabaMosGoodsBulkinputcspuResponse.go b/model/moscm/AlibabaMosGoodsBulkinputcspuResponse.go deleted file mode 100644 index 949548f686..0000000000 --- a/model/moscm/AlibabaMosGoodsBulkinputcspuResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package moscm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量录入商品信息 API返回值 -alibaba.mos.goods.bulkinputcspu - -用于商品信息的批量导入到银泰商品中台 -*/ -type AlibabaMosGoodsBulkinputcspuAPIResponse struct { - model.CommonResponse - AlibabaMosGoodsBulkinputcspuResponse -} - -// 批量录入商品信息 成功返回结果 -type AlibabaMosGoodsBulkinputcspuResponse struct { - XMLName xml.Name `xml:"alibaba_mos_goods_bulkinputcspu_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据 - Data *BulkInputCspuResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/moscm/AlibabaMosGoodsInventoryGetinventorysAPIRequest.go b/model/moscm/AlibabaMosGoodsInventoryGetinventorysAPIRequest.go new file mode 100644 index 0000000000..e1fee7176f --- /dev/null +++ b/model/moscm/AlibabaMosGoodsInventoryGetinventorysAPIRequest.go @@ -0,0 +1,52 @@ +package moscm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +可售库存查询 API请求 +alibaba.mos.goods.inventory.getinventorys + +查询商品的可售、在库和占库数量 +*/ +type AlibabaMosGoodsInventoryGetinventorysAPIRequest struct { + model.Params + // 查询对象 + _paramVirtualInventoryQueryDto *VirtualInventoryQueryDto +} + +// 初始化AlibabaMosGoodsInventoryGetinventorysAPIRequest对象 +func NewAlibabaMosGoodsInventoryGetinventorysRequest() *AlibabaMosGoodsInventoryGetinventorysAPIRequest{ + return &AlibabaMosGoodsInventoryGetinventorysAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosGoodsInventoryGetinventorysAPIRequest) GetApiMethodName() string { + return "alibaba.mos.goods.inventory.getinventorys" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosGoodsInventoryGetinventorysAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamVirtualInventoryQueryDto Setter +// 查询对象 +func (r *AlibabaMosGoodsInventoryGetinventorysAPIRequest) SetParamVirtualInventoryQueryDto(_paramVirtualInventoryQueryDto *VirtualInventoryQueryDto) error { + r._paramVirtualInventoryQueryDto = _paramVirtualInventoryQueryDto + r.Set("param_virtual_inventory_query_dto", _paramVirtualInventoryQueryDto) + return nil +} + +// ParamVirtualInventoryQueryDto Getter +func (r AlibabaMosGoodsInventoryGetinventorysAPIRequest) GetParamVirtualInventoryQueryDto() *VirtualInventoryQueryDto { + return r._paramVirtualInventoryQueryDto +} diff --git a/model/moscm/AlibabaMosGoodsInventoryGetinventorysAPIResponse.go b/model/moscm/AlibabaMosGoodsInventoryGetinventorysAPIResponse.go new file mode 100644 index 0000000000..4ccef20baf --- /dev/null +++ b/model/moscm/AlibabaMosGoodsInventoryGetinventorysAPIResponse.go @@ -0,0 +1,27 @@ +package moscm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +可售库存查询 API返回值 +alibaba.mos.goods.inventory.getinventorys + +查询商品的可售、在库和占库数量 +*/ +type AlibabaMosGoodsInventoryGetinventorysAPIResponse struct { + model.CommonResponse + AlibabaMosGoodsInventoryGetinventorysAPIResponseModel +} + +// 可售库存查询 成功返回结果 +type AlibabaMosGoodsInventoryGetinventorysAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_goods_inventory_getinventorys_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的数据 + Datas []VirtualInventoryDto `json:"datas,omitempty" xml:"datas>virtual_inventory_dto,omitempty"` +} diff --git a/model/moscm/AlibabaMosGoodsInventoryGetinventorysResponse.go b/model/moscm/AlibabaMosGoodsInventoryGetinventorysResponse.go deleted file mode 100644 index 9638b4355a..0000000000 --- a/model/moscm/AlibabaMosGoodsInventoryGetinventorysResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package moscm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -可售库存查询 API返回值 -alibaba.mos.goods.inventory.getinventorys - -查询商品的可售、在库和占库数量 -*/ -type AlibabaMosGoodsInventoryGetinventorysAPIResponse struct { - model.CommonResponse - AlibabaMosGoodsInventoryGetinventorysResponse -} - -// 可售库存查询 成功返回结果 -type AlibabaMosGoodsInventoryGetinventorysResponse struct { - XMLName xml.Name `xml:"alibaba_mos_goods_inventory_getinventorys_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的数据 - Datas []VirtualInventoryDto `json:"datas,omitempty" xml:"datas>virtual_inventory_dto,omitempty"` -} diff --git a/model/moscm/AlibabaMosGoodsSearchcspuAPIRequest.go b/model/moscm/AlibabaMosGoodsSearchcspuAPIRequest.go new file mode 100644 index 0000000000..0b2a8b0a77 --- /dev/null +++ b/model/moscm/AlibabaMosGoodsSearchcspuAPIRequest.go @@ -0,0 +1,66 @@ +package moscm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +cspu查询 API请求 +alibaba.mos.goods.searchcspu + +商品信息查询(仅用于商品上传数据验证,不能用于商品下载,有限流) +*/ +type AlibabaMosGoodsSearchcspuAPIRequest struct { + model.Params + // 组合查询对象 + _paramCspuCriteria *CspuCriteria + // 分页参数 + _paramPaginator *Paginator +} + +// 初始化AlibabaMosGoodsSearchcspuAPIRequest对象 +func NewAlibabaMosGoodsSearchcspuRequest() *AlibabaMosGoodsSearchcspuAPIRequest{ + return &AlibabaMosGoodsSearchcspuAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosGoodsSearchcspuAPIRequest) GetApiMethodName() string { + return "alibaba.mos.goods.searchcspu" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosGoodsSearchcspuAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCspuCriteria Setter +// 组合查询对象 +func (r *AlibabaMosGoodsSearchcspuAPIRequest) SetParamCspuCriteria(_paramCspuCriteria *CspuCriteria) error { + r._paramCspuCriteria = _paramCspuCriteria + r.Set("param_cspu_criteria", _paramCspuCriteria) + return nil +} + +// ParamCspuCriteria Getter +func (r AlibabaMosGoodsSearchcspuAPIRequest) GetParamCspuCriteria() *CspuCriteria { + return r._paramCspuCriteria +} +// ParamPaginator Setter +// 分页参数 +func (r *AlibabaMosGoodsSearchcspuAPIRequest) SetParamPaginator(_paramPaginator *Paginator) error { + r._paramPaginator = _paramPaginator + r.Set("param_paginator", _paramPaginator) + return nil +} + +// ParamPaginator Getter +func (r AlibabaMosGoodsSearchcspuAPIRequest) GetParamPaginator() *Paginator { + return r._paramPaginator +} diff --git a/model/moscm/AlibabaMosGoodsSearchcspuAPIResponse.go b/model/moscm/AlibabaMosGoodsSearchcspuAPIResponse.go new file mode 100644 index 0000000000..c95fa8cc56 --- /dev/null +++ b/model/moscm/AlibabaMosGoodsSearchcspuAPIResponse.go @@ -0,0 +1,27 @@ +package moscm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +cspu查询 API返回值 +alibaba.mos.goods.searchcspu + +商品信息查询(仅用于商品上传数据验证,不能用于商品下载,有限流) +*/ +type AlibabaMosGoodsSearchcspuAPIResponse struct { + model.CommonResponse + AlibabaMosGoodsSearchcspuAPIResponseModel +} + +// cspu查询 成功返回结果 +type AlibabaMosGoodsSearchcspuAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_goods_searchcspu_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data *PagedList `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/moscm/AlibabaMosGoodsSearchcspuResponse.go b/model/moscm/AlibabaMosGoodsSearchcspuResponse.go deleted file mode 100644 index 949d057ebf..0000000000 --- a/model/moscm/AlibabaMosGoodsSearchcspuResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package moscm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -cspu查询 API返回值 -alibaba.mos.goods.searchcspu - -商品信息查询(仅用于商品上传数据验证,不能用于商品下载,有限流) -*/ -type AlibabaMosGoodsSearchcspuAPIResponse struct { - model.CommonResponse - AlibabaMosGoodsSearchcspuResponse -} - -// cspu查询 成功返回结果 -type AlibabaMosGoodsSearchcspuResponse struct { - XMLName xml.Name `xml:"alibaba_mos_goods_searchcspu_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data *PagedList `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/moscm/AlibabaMosGoodsSetpriceAPIRequest.go b/model/moscm/AlibabaMosGoodsSetpriceAPIRequest.go new file mode 100644 index 0000000000..6c24f92621 --- /dev/null +++ b/model/moscm/AlibabaMosGoodsSetpriceAPIRequest.go @@ -0,0 +1,52 @@ +package moscm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +价格变更接口 API请求 +alibaba.mos.goods.setprice + +价格变更接口,供供应商修改价格时使用。 +*/ +type AlibabaMosGoodsSetpriceAPIRequest struct { + model.Params + // 价格变更对象列表 + _priceDtoList []PriceDto +} + +// 初始化AlibabaMosGoodsSetpriceAPIRequest对象 +func NewAlibabaMosGoodsSetpriceRequest() *AlibabaMosGoodsSetpriceAPIRequest{ + return &AlibabaMosGoodsSetpriceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosGoodsSetpriceAPIRequest) GetApiMethodName() string { + return "alibaba.mos.goods.setprice" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosGoodsSetpriceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PriceDtoList Setter +// 价格变更对象列表 +func (r *AlibabaMosGoodsSetpriceAPIRequest) SetPriceDtoList(_priceDtoList []PriceDto) error { + r._priceDtoList = _priceDtoList + r.Set("price_dto_list", _priceDtoList) + return nil +} + +// PriceDtoList Getter +func (r AlibabaMosGoodsSetpriceAPIRequest) GetPriceDtoList() []PriceDto { + return r._priceDtoList +} diff --git a/model/moscm/AlibabaMosGoodsSetpriceAPIResponse.go b/model/moscm/AlibabaMosGoodsSetpriceAPIResponse.go new file mode 100644 index 0000000000..a2faa1648d --- /dev/null +++ b/model/moscm/AlibabaMosGoodsSetpriceAPIResponse.go @@ -0,0 +1,27 @@ +package moscm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +价格变更接口 API返回值 +alibaba.mos.goods.setprice + +价格变更接口,供供应商修改价格时使用。 +*/ +type AlibabaMosGoodsSetpriceAPIResponse struct { + model.CommonResponse + AlibabaMosGoodsSetpriceAPIResponseModel +} + +// 价格变更接口 成功返回结果 +type AlibabaMosGoodsSetpriceAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_goods_setprice_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据 + DataS []PriceResult `json:"data_s,omitempty" xml:"data_s>price_result,omitempty"` +} diff --git a/model/moscm/AlibabaMosGoodsSetpriceResponse.go b/model/moscm/AlibabaMosGoodsSetpriceResponse.go deleted file mode 100644 index ff860fbc48..0000000000 --- a/model/moscm/AlibabaMosGoodsSetpriceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package moscm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -价格变更接口 API返回值 -alibaba.mos.goods.setprice - -价格变更接口,供供应商修改价格时使用。 -*/ -type AlibabaMosGoodsSetpriceAPIResponse struct { - model.CommonResponse - AlibabaMosGoodsSetpriceResponse -} - -// 价格变更接口 成功返回结果 -type AlibabaMosGoodsSetpriceResponse struct { - XMLName xml.Name `xml:"alibaba_mos_goods_setprice_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据 - DataS []PriceResult `json:"data_s,omitempty" xml:"data_s>price_result,omitempty"` -} diff --git a/model/moscm/AlibabaMosGoodsSynchinventorybycountingAPIRequest.go b/model/moscm/AlibabaMosGoodsSynchinventorybycountingAPIRequest.go new file mode 100644 index 0000000000..0c566dfc75 --- /dev/null +++ b/model/moscm/AlibabaMosGoodsSynchinventorybycountingAPIRequest.go @@ -0,0 +1,67 @@ +package moscm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +以盘点方式调整库存:传入商品实际库存 API请求 +alibaba.mos.goods.synchinventorybycounting + +以盘点方式调整库存:传入商品实际库存 +盘点单自动判断数量增减 +*/ +type AlibabaMosGoodsSynchinventorybycountingAPIRequest struct { + model.Params + // 专柜信息 + _paramCountingInfoDto *CountingInfoDto + // 盘点库存项(最大列表长度:20) + _countingItemDto []CountingItemDto +} + +// 初始化AlibabaMosGoodsSynchinventorybycountingAPIRequest对象 +func NewAlibabaMosGoodsSynchinventorybycountingRequest() *AlibabaMosGoodsSynchinventorybycountingAPIRequest{ + return &AlibabaMosGoodsSynchinventorybycountingAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosGoodsSynchinventorybycountingAPIRequest) GetApiMethodName() string { + return "alibaba.mos.goods.synchinventorybycounting" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosGoodsSynchinventorybycountingAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCountingInfoDto Setter +// 专柜信息 +func (r *AlibabaMosGoodsSynchinventorybycountingAPIRequest) SetParamCountingInfoDto(_paramCountingInfoDto *CountingInfoDto) error { + r._paramCountingInfoDto = _paramCountingInfoDto + r.Set("param_counting_info_dto", _paramCountingInfoDto) + return nil +} + +// ParamCountingInfoDto Getter +func (r AlibabaMosGoodsSynchinventorybycountingAPIRequest) GetParamCountingInfoDto() *CountingInfoDto { + return r._paramCountingInfoDto +} +// CountingItemDto Setter +// 盘点库存项(最大列表长度:20) +func (r *AlibabaMosGoodsSynchinventorybycountingAPIRequest) SetCountingItemDto(_countingItemDto []CountingItemDto) error { + r._countingItemDto = _countingItemDto + r.Set("counting_item_dto", _countingItemDto) + return nil +} + +// CountingItemDto Getter +func (r AlibabaMosGoodsSynchinventorybycountingAPIRequest) GetCountingItemDto() []CountingItemDto { + return r._countingItemDto +} diff --git a/model/moscm/AlibabaMosGoodsSynchinventorybycountingAPIResponse.go b/model/moscm/AlibabaMosGoodsSynchinventorybycountingAPIResponse.go new file mode 100644 index 0000000000..3cec8ed341 --- /dev/null +++ b/model/moscm/AlibabaMosGoodsSynchinventorybycountingAPIResponse.go @@ -0,0 +1,28 @@ +package moscm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +以盘点方式调整库存:传入商品实际库存 API返回值 +alibaba.mos.goods.synchinventorybycounting + +以盘点方式调整库存:传入商品实际库存 +盘点单自动判断数量增减 +*/ +type AlibabaMosGoodsSynchinventorybycountingAPIResponse struct { + model.CommonResponse + AlibabaMosGoodsSynchinventorybycountingAPIResponseModel +} + +// 以盘点方式调整库存:传入商品实际库存 成功返回结果 +type AlibabaMosGoodsSynchinventorybycountingAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_goods_synchinventorybycounting_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回盘点单号 + Result *AlibabaMosGoodsSynchinventorybycountingResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/moscm/AlibabaMosGoodsSynchinventorybycountingResponse.go b/model/moscm/AlibabaMosGoodsSynchinventorybycountingResponse.go deleted file mode 100644 index f2eb44a140..0000000000 --- a/model/moscm/AlibabaMosGoodsSynchinventorybycountingResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package moscm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -以盘点方式调整库存:传入商品实际库存 API返回值 -alibaba.mos.goods.synchinventorybycounting - -以盘点方式调整库存:传入商品实际库存 -盘点单自动判断数量增减 -*/ -type AlibabaMosGoodsSynchinventorybycountingAPIResponse struct { - model.CommonResponse - AlibabaMosGoodsSynchinventorybycountingResponse -} - -// 以盘点方式调整库存:传入商品实际库存 成功返回结果 -type AlibabaMosGoodsSynchinventorybycountingResponse struct { - XMLName xml.Name `xml:"alibaba_mos_goods_synchinventorybycounting_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回盘点单号 - Result *AlibabaMosGoodsSynchinventorybycountingResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/moscm/AlibabaMosGoodsSynchinventorybycountingResultDo.go b/model/moscm/AlibabaMosGoodsSynchinventorybycountingResultDo.go new file mode 100644 index 0000000000..4488346e7f --- /dev/null +++ b/model/moscm/AlibabaMosGoodsSynchinventorybycountingResultDo.go @@ -0,0 +1,7 @@ +package moscm + +// AlibabaMosGoodsSynchinventorybycountingResultDo +type AlibabaMosGoodsSynchinventorybycountingResultDo struct { + // 返回数据 + Data string `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/moscm/AlibabaMosOrderListGetAPIRequest.go b/model/moscm/AlibabaMosOrderListGetAPIRequest.go new file mode 100644 index 0000000000..20e704a001 --- /dev/null +++ b/model/moscm/AlibabaMosOrderListGetAPIRequest.go @@ -0,0 +1,66 @@ +package moscm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询订单交易 API请求 +alibaba.mos.order.list.get + +批量查询交易信息 +*/ +type AlibabaMosOrderListGetAPIRequest struct { + model.Params + // 订单查询条件 + _orderCriteria *OrderCriteria + // 分页信息 + _paginator *Paginator +} + +// 初始化AlibabaMosOrderListGetAPIRequest对象 +func NewAlibabaMosOrderListGetRequest() *AlibabaMosOrderListGetAPIRequest{ + return &AlibabaMosOrderListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosOrderListGetAPIRequest) GetApiMethodName() string { + return "alibaba.mos.order.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosOrderListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderCriteria Setter +// 订单查询条件 +func (r *AlibabaMosOrderListGetAPIRequest) SetOrderCriteria(_orderCriteria *OrderCriteria) error { + r._orderCriteria = _orderCriteria + r.Set("order_criteria", _orderCriteria) + return nil +} + +// OrderCriteria Getter +func (r AlibabaMosOrderListGetAPIRequest) GetOrderCriteria() *OrderCriteria { + return r._orderCriteria +} +// Paginator Setter +// 分页信息 +func (r *AlibabaMosOrderListGetAPIRequest) SetPaginator(_paginator *Paginator) error { + r._paginator = _paginator + r.Set("paginator", _paginator) + return nil +} + +// Paginator Getter +func (r AlibabaMosOrderListGetAPIRequest) GetPaginator() *Paginator { + return r._paginator +} diff --git a/model/moscm/AlibabaMosOrderListGetAPIResponse.go b/model/moscm/AlibabaMosOrderListGetAPIResponse.go new file mode 100644 index 0000000000..6777b4c9f6 --- /dev/null +++ b/model/moscm/AlibabaMosOrderListGetAPIResponse.go @@ -0,0 +1,27 @@ +package moscm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询订单交易 API返回值 +alibaba.mos.order.list.get + +批量查询交易信息 +*/ +type AlibabaMosOrderListGetAPIResponse struct { + model.CommonResponse + AlibabaMosOrderListGetAPIResponseModel +} + +// 批量查询订单交易 成功返回结果 +type AlibabaMosOrderListGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_order_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *AlibabaMosOrderListGetResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/moscm/AlibabaMosOrderListGetResponse.go b/model/moscm/AlibabaMosOrderListGetResponse.go deleted file mode 100644 index a1e2d37181..0000000000 --- a/model/moscm/AlibabaMosOrderListGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package moscm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量查询订单交易 API返回值 -alibaba.mos.order.list.get - -批量查询交易信息 -*/ -type AlibabaMosOrderListGetAPIResponse struct { - model.CommonResponse - AlibabaMosOrderListGetResponse -} - -// 批量查询订单交易 成功返回结果 -type AlibabaMosOrderListGetResponse struct { - XMLName xml.Name `xml:"alibaba_mos_order_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *AlibabaMosOrderListGetResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/moscm/AlibabaMosOrderListGetResultDo.go b/model/moscm/AlibabaMosOrderListGetResultDo.go new file mode 100644 index 0000000000..485215f75f --- /dev/null +++ b/model/moscm/AlibabaMosOrderListGetResultDo.go @@ -0,0 +1,13 @@ +package moscm + +// AlibabaMosOrderListGetResultDo +type AlibabaMosOrderListGetResultDo struct { + // 消息 + SubMsg string `json:"sub_msg,omitempty" xml:"sub_msg,omitempty"` + // 状态码 + SubCode string `json:"sub_code,omitempty" xml:"sub_code,omitempty"` + // 结果集 + Data *PagedList `json:"data,omitempty" xml:"data,omitempty"` + // 成功标志 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/moscm/AlibabaMosOrderQueryAPIRequest.go b/model/moscm/AlibabaMosOrderQueryAPIRequest.go new file mode 100644 index 0000000000..87bdf1d0d4 --- /dev/null +++ b/model/moscm/AlibabaMosOrderQueryAPIRequest.go @@ -0,0 +1,66 @@ +package moscm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询订单信息 API请求 +alibaba.mos.order.query + +查询多笔交易信息 +*/ +type AlibabaMosOrderQueryAPIRequest struct { + model.Params + // 订单查询 + _orderCriteria *OrderCriteria + // 分页信息 + _paginator *Paginator +} + +// 初始化AlibabaMosOrderQueryAPIRequest对象 +func NewAlibabaMosOrderQueryRequest() *AlibabaMosOrderQueryAPIRequest{ + return &AlibabaMosOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosOrderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.mos.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderCriteria Setter +// 订单查询 +func (r *AlibabaMosOrderQueryAPIRequest) SetOrderCriteria(_orderCriteria *OrderCriteria) error { + r._orderCriteria = _orderCriteria + r.Set("order_criteria", _orderCriteria) + return nil +} + +// OrderCriteria Getter +func (r AlibabaMosOrderQueryAPIRequest) GetOrderCriteria() *OrderCriteria { + return r._orderCriteria +} +// Paginator Setter +// 分页信息 +func (r *AlibabaMosOrderQueryAPIRequest) SetPaginator(_paginator *Paginator) error { + r._paginator = _paginator + r.Set("paginator", _paginator) + return nil +} + +// Paginator Getter +func (r AlibabaMosOrderQueryAPIRequest) GetPaginator() *Paginator { + return r._paginator +} diff --git a/model/moscm/AlibabaMosOrderQueryAPIResponse.go b/model/moscm/AlibabaMosOrderQueryAPIResponse.go new file mode 100644 index 0000000000..fcb6fb079b --- /dev/null +++ b/model/moscm/AlibabaMosOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package moscm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询订单信息 API返回值 +alibaba.mos.order.query + +查询多笔交易信息 +*/ +type AlibabaMosOrderQueryAPIResponse struct { + model.CommonResponse + AlibabaMosOrderQueryAPIResponseModel +} + +// 批量查询订单信息 成功返回结果 +type AlibabaMosOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaMosOrderQueryResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/moscm/AlibabaMosOrderQueryResponse.go b/model/moscm/AlibabaMosOrderQueryResponse.go deleted file mode 100644 index 696cc1a11c..0000000000 --- a/model/moscm/AlibabaMosOrderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package moscm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量查询订单信息 API返回值 -alibaba.mos.order.query - -查询多笔交易信息 -*/ -type AlibabaMosOrderQueryAPIResponse struct { - model.CommonResponse - AlibabaMosOrderQueryResponse -} - -// 批量查询订单信息 成功返回结果 -type AlibabaMosOrderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_mos_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaMosOrderQueryResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/moscm/AlibabaMosOrderQueryResultDo.go b/model/moscm/AlibabaMosOrderQueryResultDo.go new file mode 100644 index 0000000000..b6a0a6f1e5 --- /dev/null +++ b/model/moscm/AlibabaMosOrderQueryResultDo.go @@ -0,0 +1,13 @@ +package moscm + +// AlibabaMosOrderQueryResultDo +type AlibabaMosOrderQueryResultDo struct { + // 订单数据 + Data *PagedList `json:"data,omitempty" xml:"data,omitempty"` + // 异常信息 + SubMsg string `json:"sub_msg,omitempty" xml:"sub_msg,omitempty"` + // 等于200代表成功 + SubCode string `json:"sub_code,omitempty" xml:"sub_code,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/moscm/AlibabaMosOrderRefundListGetAPIRequest.go b/model/moscm/AlibabaMosOrderRefundListGetAPIRequest.go new file mode 100644 index 0000000000..fab028ea7e --- /dev/null +++ b/model/moscm/AlibabaMosOrderRefundListGetAPIRequest.go @@ -0,0 +1,66 @@ +package moscm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询交易退货信息 API请求 +alibaba.mos.order.refund.list.get + +批量查询多个退货单的退货明细 +*/ +type AlibabaMosOrderRefundListGetAPIRequest struct { + model.Params + // 退换货查询条件 + _rmaCriteria *RmaCriteria + // 分页信息 + _paginator *Paginator +} + +// 初始化AlibabaMosOrderRefundListGetAPIRequest对象 +func NewAlibabaMosOrderRefundListGetRequest() *AlibabaMosOrderRefundListGetAPIRequest{ + return &AlibabaMosOrderRefundListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosOrderRefundListGetAPIRequest) GetApiMethodName() string { + return "alibaba.mos.order.refund.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosOrderRefundListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RmaCriteria Setter +// 退换货查询条件 +func (r *AlibabaMosOrderRefundListGetAPIRequest) SetRmaCriteria(_rmaCriteria *RmaCriteria) error { + r._rmaCriteria = _rmaCriteria + r.Set("rma_criteria", _rmaCriteria) + return nil +} + +// RmaCriteria Getter +func (r AlibabaMosOrderRefundListGetAPIRequest) GetRmaCriteria() *RmaCriteria { + return r._rmaCriteria +} +// Paginator Setter +// 分页信息 +func (r *AlibabaMosOrderRefundListGetAPIRequest) SetPaginator(_paginator *Paginator) error { + r._paginator = _paginator + r.Set("paginator", _paginator) + return nil +} + +// Paginator Getter +func (r AlibabaMosOrderRefundListGetAPIRequest) GetPaginator() *Paginator { + return r._paginator +} diff --git a/model/moscm/AlibabaMosOrderRefundListGetAPIResponse.go b/model/moscm/AlibabaMosOrderRefundListGetAPIResponse.go new file mode 100644 index 0000000000..eb225756c8 --- /dev/null +++ b/model/moscm/AlibabaMosOrderRefundListGetAPIResponse.go @@ -0,0 +1,27 @@ +package moscm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询交易退货信息 API返回值 +alibaba.mos.order.refund.list.get + +批量查询多个退货单的退货明细 +*/ +type AlibabaMosOrderRefundListGetAPIResponse struct { + model.CommonResponse + AlibabaMosOrderRefundListGetAPIResponseModel +} + +// 批量查询交易退货信息 成功返回结果 +type AlibabaMosOrderRefundListGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_order_refund_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *AlibabaMosOrderRefundListGetResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/moscm/AlibabaMosOrderRefundListGetResponse.go b/model/moscm/AlibabaMosOrderRefundListGetResponse.go deleted file mode 100644 index 9bf48fa14e..0000000000 --- a/model/moscm/AlibabaMosOrderRefundListGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package moscm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量查询交易退货信息 API返回值 -alibaba.mos.order.refund.list.get - -批量查询多个退货单的退货明细 -*/ -type AlibabaMosOrderRefundListGetAPIResponse struct { - model.CommonResponse - AlibabaMosOrderRefundListGetResponse -} - -// 批量查询交易退货信息 成功返回结果 -type AlibabaMosOrderRefundListGetResponse struct { - XMLName xml.Name `xml:"alibaba_mos_order_refund_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *AlibabaMosOrderRefundListGetResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/moscm/AlibabaMosOrderRefundListGetResultDto.go b/model/moscm/AlibabaMosOrderRefundListGetResultDto.go new file mode 100644 index 0000000000..317fce6c6d --- /dev/null +++ b/model/moscm/AlibabaMosOrderRefundListGetResultDto.go @@ -0,0 +1,13 @@ +package moscm + +// AlibabaMosOrderRefundListGetResultDto +type AlibabaMosOrderRefundListGetResultDto struct { + // 结果集 + Data *PagedList `json:"data,omitempty" xml:"data,omitempty"` + // 状态码 + SubCode string `json:"sub_code,omitempty" xml:"sub_code,omitempty"` + // 信息 + SubMsg string `json:"sub_msg,omitempty" xml:"sub_msg,omitempty"` + // 成功标志 + Success string `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/mozi/AlibabaMoziBucAccountListAccountidsAPIRequest.go b/model/mozi/AlibabaMoziBucAccountListAccountidsAPIRequest.go new file mode 100644 index 0000000000..7448625ad6 --- /dev/null +++ b/model/mozi/AlibabaMoziBucAccountListAccountidsAPIRequest.go @@ -0,0 +1,52 @@ +package mozi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据一批账号ID查询账号列表 API请求 +alibaba.mozi.buc.account.list.accountids + +根据一批账号ID查询账号列表 +*/ +type AlibabaMoziBucAccountListAccountidsAPIRequest struct { + model.Params + // 请求参数 + _listAccountIds *ListAccountsByAccountIdsRequest +} + +// 初始化AlibabaMoziBucAccountListAccountidsAPIRequest对象 +func NewAlibabaMoziBucAccountListAccountidsRequest() *AlibabaMoziBucAccountListAccountidsAPIRequest{ + return &AlibabaMoziBucAccountListAccountidsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziBucAccountListAccountidsAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.buc.account.list.accountids" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziBucAccountListAccountidsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ListAccountIds Setter +// 请求参数 +func (r *AlibabaMoziBucAccountListAccountidsAPIRequest) SetListAccountIds(_listAccountIds *ListAccountsByAccountIdsRequest) error { + r._listAccountIds = _listAccountIds + r.Set("list_account_ids", _listAccountIds) + return nil +} + +// ListAccountIds Getter +func (r AlibabaMoziBucAccountListAccountidsAPIRequest) GetListAccountIds() *ListAccountsByAccountIdsRequest { + return r._listAccountIds +} diff --git a/model/mozi/AlibabaMoziBucAccountListAccountidsAPIResponse.go b/model/mozi/AlibabaMoziBucAccountListAccountidsAPIResponse.go new file mode 100644 index 0000000000..f3c971b9d1 --- /dev/null +++ b/model/mozi/AlibabaMoziBucAccountListAccountidsAPIResponse.go @@ -0,0 +1,27 @@ +package mozi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据一批账号ID查询账号列表 API返回值 +alibaba.mozi.buc.account.list.accountids + +根据一批账号ID查询账号列表 +*/ +type AlibabaMoziBucAccountListAccountidsAPIResponse struct { + model.CommonResponse + AlibabaMoziBucAccountListAccountidsAPIResponseModel +} + +// 根据一批账号ID查询账号列表 成功返回结果 +type AlibabaMoziBucAccountListAccountidsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_buc_account_list_accountids_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *ListAccountsByAccountIdsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mozi/AlibabaMoziBucAccountListAccountidsResponse.go b/model/mozi/AlibabaMoziBucAccountListAccountidsResponse.go deleted file mode 100644 index d4b792c055..0000000000 --- a/model/mozi/AlibabaMoziBucAccountListAccountidsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mozi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据一批账号ID查询账号列表 API返回值 -alibaba.mozi.buc.account.list.accountids - -根据一批账号ID查询账号列表 -*/ -type AlibabaMoziBucAccountListAccountidsAPIResponse struct { - model.CommonResponse - AlibabaMoziBucAccountListAccountidsResponse -} - -// 根据一批账号ID查询账号列表 成功返回结果 -type AlibabaMoziBucAccountListAccountidsResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_buc_account_list_accountids_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *ListAccountsByAccountIdsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mozi/AlibabaMoziBucAccountPageallAPIRequest.go b/model/mozi/AlibabaMoziBucAccountPageallAPIRequest.go new file mode 100644 index 0000000000..a5a8961289 --- /dev/null +++ b/model/mozi/AlibabaMoziBucAccountPageallAPIRequest.go @@ -0,0 +1,52 @@ +package mozi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询租户内内所有账号 API请求 +alibaba.mozi.buc.account.pageall + +查询租户内内所有账号 +*/ +type AlibabaMoziBucAccountPageallAPIRequest struct { + model.Params + // 查询租户内所有人员和账号 + _pageAll *PageAllAccountsRequest +} + +// 初始化AlibabaMoziBucAccountPageallAPIRequest对象 +func NewAlibabaMoziBucAccountPageallRequest() *AlibabaMoziBucAccountPageallAPIRequest{ + return &AlibabaMoziBucAccountPageallAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziBucAccountPageallAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.buc.account.pageall" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziBucAccountPageallAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageAll Setter +// 查询租户内所有人员和账号 +func (r *AlibabaMoziBucAccountPageallAPIRequest) SetPageAll(_pageAll *PageAllAccountsRequest) error { + r._pageAll = _pageAll + r.Set("page_all", _pageAll) + return nil +} + +// PageAll Getter +func (r AlibabaMoziBucAccountPageallAPIRequest) GetPageAll() *PageAllAccountsRequest { + return r._pageAll +} diff --git a/model/mozi/AlibabaMoziBucAccountPageallAPIResponse.go b/model/mozi/AlibabaMoziBucAccountPageallAPIResponse.go new file mode 100644 index 0000000000..dd3405d5cf --- /dev/null +++ b/model/mozi/AlibabaMoziBucAccountPageallAPIResponse.go @@ -0,0 +1,27 @@ +package mozi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询租户内内所有账号 API返回值 +alibaba.mozi.buc.account.pageall + +查询租户内内所有账号 +*/ +type AlibabaMoziBucAccountPageallAPIResponse struct { + model.CommonResponse + AlibabaMoziBucAccountPageallAPIResponseModel +} + +// 查询租户内内所有账号 成功返回结果 +type AlibabaMoziBucAccountPageallAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_buc_account_pageall_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *PageAllAccountsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mozi/AlibabaMoziBucAccountPageallResponse.go b/model/mozi/AlibabaMoziBucAccountPageallResponse.go deleted file mode 100644 index 05a5b4e08b..0000000000 --- a/model/mozi/AlibabaMoziBucAccountPageallResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mozi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询租户内内所有账号 API返回值 -alibaba.mozi.buc.account.pageall - -查询租户内内所有账号 -*/ -type AlibabaMoziBucAccountPageallAPIResponse struct { - model.CommonResponse - AlibabaMoziBucAccountPageallResponse -} - -// 查询租户内内所有账号 成功返回结果 -type AlibabaMoziBucAccountPageallResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_buc_account_pageall_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *PageAllAccountsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mozi/AlibabaMoziFusionAddorupdateEmployeeAccountAPIRequest.go b/model/mozi/AlibabaMoziFusionAddorupdateEmployeeAccountAPIRequest.go new file mode 100644 index 0000000000..fa886edd92 --- /dev/null +++ b/model/mozi/AlibabaMoziFusionAddorupdateEmployeeAccountAPIRequest.go @@ -0,0 +1,52 @@ +package mozi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加人员和账号复合接口 API请求 +alibaba.mozi.fusion.addorupdate.employee.account + +添加人员和账号复合接口 +*/ +type AlibabaMoziFusionAddorupdateEmployeeAccountAPIRequest struct { + model.Params + // 人员账号 + _employeeAccount *AddOrUpdateTenantEmployeeAndAccountRequest +} + +// 初始化AlibabaMoziFusionAddorupdateEmployeeAccountAPIRequest对象 +func NewAlibabaMoziFusionAddorupdateEmployeeAccountRequest() *AlibabaMoziFusionAddorupdateEmployeeAccountAPIRequest{ + return &AlibabaMoziFusionAddorupdateEmployeeAccountAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziFusionAddorupdateEmployeeAccountAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.fusion.addorupdate.employee.account" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziFusionAddorupdateEmployeeAccountAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EmployeeAccount Setter +// 人员账号 +func (r *AlibabaMoziFusionAddorupdateEmployeeAccountAPIRequest) SetEmployeeAccount(_employeeAccount *AddOrUpdateTenantEmployeeAndAccountRequest) error { + r._employeeAccount = _employeeAccount + r.Set("employee_account", _employeeAccount) + return nil +} + +// EmployeeAccount Getter +func (r AlibabaMoziFusionAddorupdateEmployeeAccountAPIRequest) GetEmployeeAccount() *AddOrUpdateTenantEmployeeAndAccountRequest { + return r._employeeAccount +} diff --git a/model/mozi/AlibabaMoziFusionAddorupdateEmployeeAccountAPIResponse.go b/model/mozi/AlibabaMoziFusionAddorupdateEmployeeAccountAPIResponse.go new file mode 100644 index 0000000000..5ad42300c6 --- /dev/null +++ b/model/mozi/AlibabaMoziFusionAddorupdateEmployeeAccountAPIResponse.go @@ -0,0 +1,27 @@ +package mozi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加人员和账号复合接口 API返回值 +alibaba.mozi.fusion.addorupdate.employee.account + +添加人员和账号复合接口 +*/ +type AlibabaMoziFusionAddorupdateEmployeeAccountAPIResponse struct { + model.CommonResponse + AlibabaMoziFusionAddorupdateEmployeeAccountAPIResponseModel +} + +// 添加人员和账号复合接口 成功返回结果 +type AlibabaMoziFusionAddorupdateEmployeeAccountAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_fusion_addorupdate_employee_account_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AddOrUpdateTenantEmployeeAndAccountResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mozi/AlibabaMoziFusionAddorupdateEmployeeAccountResponse.go b/model/mozi/AlibabaMoziFusionAddorupdateEmployeeAccountResponse.go deleted file mode 100644 index 36f6ac181c..0000000000 --- a/model/mozi/AlibabaMoziFusionAddorupdateEmployeeAccountResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mozi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加人员和账号复合接口 API返回值 -alibaba.mozi.fusion.addorupdate.employee.account - -添加人员和账号复合接口 -*/ -type AlibabaMoziFusionAddorupdateEmployeeAccountAPIResponse struct { - model.CommonResponse - AlibabaMoziFusionAddorupdateEmployeeAccountResponse -} - -// 添加人员和账号复合接口 成功返回结果 -type AlibabaMoziFusionAddorupdateEmployeeAccountResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_fusion_addorupdate_employee_account_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AddOrUpdateTenantEmployeeAndAccountResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mozi/AlibabaMoziFusionCreateEmployeeAccountAPIRequest.go b/model/mozi/AlibabaMoziFusionCreateEmployeeAccountAPIRequest.go new file mode 100644 index 0000000000..8bad923f25 --- /dev/null +++ b/model/mozi/AlibabaMoziFusionCreateEmployeeAccountAPIRequest.go @@ -0,0 +1,52 @@ +package mozi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建MOZI自建人员和账号 API请求 +alibaba.mozi.fusion.create.employee.account + +创建MOZI自建人员和账号 +*/ +type AlibabaMoziFusionCreateEmployeeAccountAPIRequest struct { + model.Params + // 入参 + _employeeAccount *CreateTenantEmployeeAndAccountRequest +} + +// 初始化AlibabaMoziFusionCreateEmployeeAccountAPIRequest对象 +func NewAlibabaMoziFusionCreateEmployeeAccountRequest() *AlibabaMoziFusionCreateEmployeeAccountAPIRequest{ + return &AlibabaMoziFusionCreateEmployeeAccountAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziFusionCreateEmployeeAccountAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.fusion.create.employee.account" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziFusionCreateEmployeeAccountAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EmployeeAccount Setter +// 入参 +func (r *AlibabaMoziFusionCreateEmployeeAccountAPIRequest) SetEmployeeAccount(_employeeAccount *CreateTenantEmployeeAndAccountRequest) error { + r._employeeAccount = _employeeAccount + r.Set("employee_account", _employeeAccount) + return nil +} + +// EmployeeAccount Getter +func (r AlibabaMoziFusionCreateEmployeeAccountAPIRequest) GetEmployeeAccount() *CreateTenantEmployeeAndAccountRequest { + return r._employeeAccount +} diff --git a/model/mozi/AlibabaMoziFusionCreateEmployeeAccountAPIResponse.go b/model/mozi/AlibabaMoziFusionCreateEmployeeAccountAPIResponse.go new file mode 100644 index 0000000000..68cbc2d30b --- /dev/null +++ b/model/mozi/AlibabaMoziFusionCreateEmployeeAccountAPIResponse.go @@ -0,0 +1,27 @@ +package mozi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建MOZI自建人员和账号 API返回值 +alibaba.mozi.fusion.create.employee.account + +创建MOZI自建人员和账号 +*/ +type AlibabaMoziFusionCreateEmployeeAccountAPIResponse struct { + model.CommonResponse + AlibabaMoziFusionCreateEmployeeAccountAPIResponseModel +} + +// 创建MOZI自建人员和账号 成功返回结果 +type AlibabaMoziFusionCreateEmployeeAccountAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_fusion_create_employee_account_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CreateTenantEmployeeAndAccountResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mozi/AlibabaMoziFusionCreateEmployeeAccountResponse.go b/model/mozi/AlibabaMoziFusionCreateEmployeeAccountResponse.go deleted file mode 100644 index 343075ec77..0000000000 --- a/model/mozi/AlibabaMoziFusionCreateEmployeeAccountResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mozi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建MOZI自建人员和账号 API返回值 -alibaba.mozi.fusion.create.employee.account - -创建MOZI自建人员和账号 -*/ -type AlibabaMoziFusionCreateEmployeeAccountAPIResponse struct { - model.CommonResponse - AlibabaMoziFusionCreateEmployeeAccountResponse -} - -// 创建MOZI自建人员和账号 成功返回结果 -type AlibabaMoziFusionCreateEmployeeAccountResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_fusion_create_employee_account_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CreateTenantEmployeeAndAccountResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mozi/AlibabaMoziFusionDimissionEmployeeAccountAPIRequest.go b/model/mozi/AlibabaMoziFusionDimissionEmployeeAccountAPIRequest.go new file mode 100644 index 0000000000..c9562b97e0 --- /dev/null +++ b/model/mozi/AlibabaMoziFusionDimissionEmployeeAccountAPIRequest.go @@ -0,0 +1,52 @@ +package mozi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +人员离职 API请求 +alibaba.mozi.fusion.dimission.employee.account + +人员离职并且回收账号 +*/ +type AlibabaMoziFusionDimissionEmployeeAccountAPIRequest struct { + model.Params + // 入参 + _dimissionEmployee *RemoveTenantEmployeeAndAccountRequest +} + +// 初始化AlibabaMoziFusionDimissionEmployeeAccountAPIRequest对象 +func NewAlibabaMoziFusionDimissionEmployeeAccountRequest() *AlibabaMoziFusionDimissionEmployeeAccountAPIRequest{ + return &AlibabaMoziFusionDimissionEmployeeAccountAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziFusionDimissionEmployeeAccountAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.fusion.dimission.employee.account" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziFusionDimissionEmployeeAccountAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DimissionEmployee Setter +// 入参 +func (r *AlibabaMoziFusionDimissionEmployeeAccountAPIRequest) SetDimissionEmployee(_dimissionEmployee *RemoveTenantEmployeeAndAccountRequest) error { + r._dimissionEmployee = _dimissionEmployee + r.Set("dimission.employee", _dimissionEmployee) + return nil +} + +// DimissionEmployee Getter +func (r AlibabaMoziFusionDimissionEmployeeAccountAPIRequest) GetDimissionEmployee() *RemoveTenantEmployeeAndAccountRequest { + return r._dimissionEmployee +} diff --git a/model/mozi/AlibabaMoziFusionDimissionEmployeeAccountAPIResponse.go b/model/mozi/AlibabaMoziFusionDimissionEmployeeAccountAPIResponse.go new file mode 100644 index 0000000000..4a53f96353 --- /dev/null +++ b/model/mozi/AlibabaMoziFusionDimissionEmployeeAccountAPIResponse.go @@ -0,0 +1,27 @@ +package mozi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +人员离职 API返回值 +alibaba.mozi.fusion.dimission.employee.account + +人员离职并且回收账号 +*/ +type AlibabaMoziFusionDimissionEmployeeAccountAPIResponse struct { + model.CommonResponse + AlibabaMoziFusionDimissionEmployeeAccountAPIResponseModel +} + +// 人员离职 成功返回结果 +type AlibabaMoziFusionDimissionEmployeeAccountAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_fusion_dimission_employee_account_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *RemoveTenantEmployeeAndAccountResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mozi/AlibabaMoziFusionDimissionEmployeeAccountResponse.go b/model/mozi/AlibabaMoziFusionDimissionEmployeeAccountResponse.go deleted file mode 100644 index 492b730e8b..0000000000 --- a/model/mozi/AlibabaMoziFusionDimissionEmployeeAccountResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mozi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -人员离职 API返回值 -alibaba.mozi.fusion.dimission.employee.account - -人员离职并且回收账号 -*/ -type AlibabaMoziFusionDimissionEmployeeAccountAPIResponse struct { - model.CommonResponse - AlibabaMoziFusionDimissionEmployeeAccountResponse -} - -// 人员离职 成功返回结果 -type AlibabaMoziFusionDimissionEmployeeAccountResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_fusion_dimission_employee_account_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *RemoveTenantEmployeeAndAccountResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mozi/AlibabaMoziFusionReentryEmployeeAccountAPIRequest.go b/model/mozi/AlibabaMoziFusionReentryEmployeeAccountAPIRequest.go new file mode 100644 index 0000000000..c08a483ea4 --- /dev/null +++ b/model/mozi/AlibabaMoziFusionReentryEmployeeAccountAPIRequest.go @@ -0,0 +1,52 @@ +package mozi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +重新入职并且重新启用账号 API请求 +alibaba.mozi.fusion.reentry.employee.account + +重新入职并且重新启用账号 +*/ +type AlibabaMoziFusionReentryEmployeeAccountAPIRequest struct { + model.Params + // 入参 + _reentryEmployeeAccount *ReEntryTenantEmployeeAndAccountRequest +} + +// 初始化AlibabaMoziFusionReentryEmployeeAccountAPIRequest对象 +func NewAlibabaMoziFusionReentryEmployeeAccountRequest() *AlibabaMoziFusionReentryEmployeeAccountAPIRequest{ + return &AlibabaMoziFusionReentryEmployeeAccountAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziFusionReentryEmployeeAccountAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.fusion.reentry.employee.account" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziFusionReentryEmployeeAccountAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReentryEmployeeAccount Setter +// 入参 +func (r *AlibabaMoziFusionReentryEmployeeAccountAPIRequest) SetReentryEmployeeAccount(_reentryEmployeeAccount *ReEntryTenantEmployeeAndAccountRequest) error { + r._reentryEmployeeAccount = _reentryEmployeeAccount + r.Set("reentry.employee.account", _reentryEmployeeAccount) + return nil +} + +// ReentryEmployeeAccount Getter +func (r AlibabaMoziFusionReentryEmployeeAccountAPIRequest) GetReentryEmployeeAccount() *ReEntryTenantEmployeeAndAccountRequest { + return r._reentryEmployeeAccount +} diff --git a/model/mozi/AlibabaMoziFusionReentryEmployeeAccountAPIResponse.go b/model/mozi/AlibabaMoziFusionReentryEmployeeAccountAPIResponse.go new file mode 100644 index 0000000000..36b13dfc25 --- /dev/null +++ b/model/mozi/AlibabaMoziFusionReentryEmployeeAccountAPIResponse.go @@ -0,0 +1,27 @@ +package mozi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +重新入职并且重新启用账号 API返回值 +alibaba.mozi.fusion.reentry.employee.account + +重新入职并且重新启用账号 +*/ +type AlibabaMoziFusionReentryEmployeeAccountAPIResponse struct { + model.CommonResponse + AlibabaMoziFusionReentryEmployeeAccountAPIResponseModel +} + +// 重新入职并且重新启用账号 成功返回结果 +type AlibabaMoziFusionReentryEmployeeAccountAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_fusion_reentry_employee_account_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ReEntryTenantEmployeeAndAccountResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mozi/AlibabaMoziFusionReentryEmployeeAccountResponse.go b/model/mozi/AlibabaMoziFusionReentryEmployeeAccountResponse.go deleted file mode 100644 index 5ab0a60f8c..0000000000 --- a/model/mozi/AlibabaMoziFusionReentryEmployeeAccountResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mozi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -重新入职并且重新启用账号 API返回值 -alibaba.mozi.fusion.reentry.employee.account - -重新入职并且重新启用账号 -*/ -type AlibabaMoziFusionReentryEmployeeAccountAPIResponse struct { - model.CommonResponse - AlibabaMoziFusionReentryEmployeeAccountResponse -} - -// 重新入职并且重新启用账号 成功返回结果 -type AlibabaMoziFusionReentryEmployeeAccountResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_fusion_reentry_employee_account_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ReEntryTenantEmployeeAndAccountResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mozi/AlibabaMoziFusionUpdateEmployeeAccountAPIRequest.go b/model/mozi/AlibabaMoziFusionUpdateEmployeeAccountAPIRequest.go new file mode 100644 index 0000000000..6b97274754 --- /dev/null +++ b/model/mozi/AlibabaMoziFusionUpdateEmployeeAccountAPIRequest.go @@ -0,0 +1,52 @@ +package mozi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新人员和账号属性 API请求 +alibaba.mozi.fusion.update.employee.account + +更新人员和账号基本属性 +*/ +type AlibabaMoziFusionUpdateEmployeeAccountAPIRequest struct { + model.Params + // 入参 + _employeeAccount *UpdateTenantEmployeeAndAccountRequest +} + +// 初始化AlibabaMoziFusionUpdateEmployeeAccountAPIRequest对象 +func NewAlibabaMoziFusionUpdateEmployeeAccountRequest() *AlibabaMoziFusionUpdateEmployeeAccountAPIRequest{ + return &AlibabaMoziFusionUpdateEmployeeAccountAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziFusionUpdateEmployeeAccountAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.fusion.update.employee.account" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziFusionUpdateEmployeeAccountAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EmployeeAccount Setter +// 入参 +func (r *AlibabaMoziFusionUpdateEmployeeAccountAPIRequest) SetEmployeeAccount(_employeeAccount *UpdateTenantEmployeeAndAccountRequest) error { + r._employeeAccount = _employeeAccount + r.Set("employee_account", _employeeAccount) + return nil +} + +// EmployeeAccount Getter +func (r AlibabaMoziFusionUpdateEmployeeAccountAPIRequest) GetEmployeeAccount() *UpdateTenantEmployeeAndAccountRequest { + return r._employeeAccount +} diff --git a/model/mozi/AlibabaMoziFusionUpdateEmployeeAccountAPIResponse.go b/model/mozi/AlibabaMoziFusionUpdateEmployeeAccountAPIResponse.go new file mode 100644 index 0000000000..6761913f26 --- /dev/null +++ b/model/mozi/AlibabaMoziFusionUpdateEmployeeAccountAPIResponse.go @@ -0,0 +1,27 @@ +package mozi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新人员和账号属性 API返回值 +alibaba.mozi.fusion.update.employee.account + +更新人员和账号基本属性 +*/ +type AlibabaMoziFusionUpdateEmployeeAccountAPIResponse struct { + model.CommonResponse + AlibabaMoziFusionUpdateEmployeeAccountAPIResponseModel +} + +// 更新人员和账号属性 成功返回结果 +type AlibabaMoziFusionUpdateEmployeeAccountAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_fusion_update_employee_account_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *UpdateTenantEmployeeAndAccountResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mozi/AlibabaMoziFusionUpdateEmployeeAccountResponse.go b/model/mozi/AlibabaMoziFusionUpdateEmployeeAccountResponse.go deleted file mode 100644 index ee1b32f71e..0000000000 --- a/model/mozi/AlibabaMoziFusionUpdateEmployeeAccountResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mozi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新人员和账号属性 API返回值 -alibaba.mozi.fusion.update.employee.account - -更新人员和账号基本属性 -*/ -type AlibabaMoziFusionUpdateEmployeeAccountAPIResponse struct { - model.CommonResponse - AlibabaMoziFusionUpdateEmployeeAccountResponse -} - -// 更新人员和账号属性 成功返回结果 -type AlibabaMoziFusionUpdateEmployeeAccountResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_fusion_update_employee_account_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *UpdateTenantEmployeeAndAccountResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mozi/AlibabaMoziVdsTenantApiServiceDismissAPIRequest.go b/model/mozi/AlibabaMoziVdsTenantApiServiceDismissAPIRequest.go new file mode 100644 index 0000000000..d644e31bf0 --- /dev/null +++ b/model/mozi/AlibabaMoziVdsTenantApiServiceDismissAPIRequest.go @@ -0,0 +1,52 @@ +package mozi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +MOZI解除组织主管服务 API请求 +alibaba.mozi.vds.tenant.api.service.dismiss + +解除组织主管 +*/ +type AlibabaMoziVdsTenantApiServiceDismissAPIRequest struct { + model.Params + // 第一个入参 + _par0 *DismissOrganizationSupervisorRequest +} + +// 初始化AlibabaMoziVdsTenantApiServiceDismissAPIRequest对象 +func NewAlibabaMoziVdsTenantApiServiceDismissRequest() *AlibabaMoziVdsTenantApiServiceDismissAPIRequest{ + return &AlibabaMoziVdsTenantApiServiceDismissAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziVdsTenantApiServiceDismissAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.vds.tenant.api.service.dismiss" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziVdsTenantApiServiceDismissAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Par0 Setter +// 第一个入参 +func (r *AlibabaMoziVdsTenantApiServiceDismissAPIRequest) SetPar0(_par0 *DismissOrganizationSupervisorRequest) error { + r._par0 = _par0 + r.Set("par0", _par0) + return nil +} + +// Par0 Getter +func (r AlibabaMoziVdsTenantApiServiceDismissAPIRequest) GetPar0() *DismissOrganizationSupervisorRequest { + return r._par0 +} diff --git a/model/mozi/AlibabaMoziVdsTenantApiServiceDismissAPIResponse.go b/model/mozi/AlibabaMoziVdsTenantApiServiceDismissAPIResponse.go new file mode 100644 index 0000000000..ba8ee3a233 --- /dev/null +++ b/model/mozi/AlibabaMoziVdsTenantApiServiceDismissAPIResponse.go @@ -0,0 +1,27 @@ +package mozi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +MOZI解除组织主管服务 API返回值 +alibaba.mozi.vds.tenant.api.service.dismiss + +解除组织主管 +*/ +type AlibabaMoziVdsTenantApiServiceDismissAPIResponse struct { + model.CommonResponse + AlibabaMoziVdsTenantApiServiceDismissAPIResponseModel +} + +// MOZI解除组织主管服务 成功返回结果 +type AlibabaMoziVdsTenantApiServiceDismissAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_vds_tenant_api_service_dismiss_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *DismissOrganizationSupervisorResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mozi/AlibabaMoziVdsTenantApiServiceDismissResponse.go b/model/mozi/AlibabaMoziVdsTenantApiServiceDismissResponse.go deleted file mode 100644 index 3ca0512bc7..0000000000 --- a/model/mozi/AlibabaMoziVdsTenantApiServiceDismissResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mozi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -MOZI解除组织主管服务 API返回值 -alibaba.mozi.vds.tenant.api.service.dismiss - -解除组织主管 -*/ -type AlibabaMoziVdsTenantApiServiceDismissAPIResponse struct { - model.CommonResponse - AlibabaMoziVdsTenantApiServiceDismissResponse -} - -// MOZI解除组织主管服务 成功返回结果 -type AlibabaMoziVdsTenantApiServiceDismissResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_vds_tenant_api_service_dismiss_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *DismissOrganizationSupervisorResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mozi/AlibabaMoziVdsTenantApiServiceGetadminAPIRequest.go b/model/mozi/AlibabaMoziVdsTenantApiServiceGetadminAPIRequest.go new file mode 100644 index 0000000000..b5d929c21c --- /dev/null +++ b/model/mozi/AlibabaMoziVdsTenantApiServiceGetadminAPIRequest.go @@ -0,0 +1,52 @@ +package mozi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取员工租户管理员信息(查询员工是否为租户管理员) API请求 +alibaba.mozi.vds.tenant.api.service.getadmin + +获取员工租户管理员信息(查询员工是否为租户管理员) +*/ +type AlibabaMoziVdsTenantApiServiceGetadminAPIRequest struct { + model.Params + // 入参 + _par0 *GetEmployeeTenantAdminInfoRequest +} + +// 初始化AlibabaMoziVdsTenantApiServiceGetadminAPIRequest对象 +func NewAlibabaMoziVdsTenantApiServiceGetadminRequest() *AlibabaMoziVdsTenantApiServiceGetadminAPIRequest{ + return &AlibabaMoziVdsTenantApiServiceGetadminAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziVdsTenantApiServiceGetadminAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.vds.tenant.api.service.getadmin" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziVdsTenantApiServiceGetadminAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Par0 Setter +// 入参 +func (r *AlibabaMoziVdsTenantApiServiceGetadminAPIRequest) SetPar0(_par0 *GetEmployeeTenantAdminInfoRequest) error { + r._par0 = _par0 + r.Set("par0", _par0) + return nil +} + +// Par0 Getter +func (r AlibabaMoziVdsTenantApiServiceGetadminAPIRequest) GetPar0() *GetEmployeeTenantAdminInfoRequest { + return r._par0 +} diff --git a/model/mozi/AlibabaMoziVdsTenantApiServiceGetadminAPIResponse.go b/model/mozi/AlibabaMoziVdsTenantApiServiceGetadminAPIResponse.go new file mode 100644 index 0000000000..11a4bef9cc --- /dev/null +++ b/model/mozi/AlibabaMoziVdsTenantApiServiceGetadminAPIResponse.go @@ -0,0 +1,27 @@ +package mozi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取员工租户管理员信息(查询员工是否为租户管理员) API返回值 +alibaba.mozi.vds.tenant.api.service.getadmin + +获取员工租户管理员信息(查询员工是否为租户管理员) +*/ +type AlibabaMoziVdsTenantApiServiceGetadminAPIResponse struct { + model.CommonResponse + AlibabaMoziVdsTenantApiServiceGetadminAPIResponseModel +} + +// 获取员工租户管理员信息(查询员工是否为租户管理员) 成功返回结果 +type AlibabaMoziVdsTenantApiServiceGetadminAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_vds_tenant_api_service_getadmin_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *GetEmployeeTenantAdminInfoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mozi/AlibabaMoziVdsTenantApiServiceGetadminResponse.go b/model/mozi/AlibabaMoziVdsTenantApiServiceGetadminResponse.go deleted file mode 100644 index f58163b8d3..0000000000 --- a/model/mozi/AlibabaMoziVdsTenantApiServiceGetadminResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mozi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取员工租户管理员信息(查询员工是否为租户管理员) API返回值 -alibaba.mozi.vds.tenant.api.service.getadmin - -获取员工租户管理员信息(查询员工是否为租户管理员) -*/ -type AlibabaMoziVdsTenantApiServiceGetadminAPIResponse struct { - model.CommonResponse - AlibabaMoziVdsTenantApiServiceGetadminResponse -} - -// 获取员工租户管理员信息(查询员工是否为租户管理员) 成功返回结果 -type AlibabaMoziVdsTenantApiServiceGetadminResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_vds_tenant_api_service_getadmin_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *GetEmployeeTenantAdminInfoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mozi/AlibabaMoziVdsTenantApiServiceMatchempcodesAPIRequest.go b/model/mozi/AlibabaMoziVdsTenantApiServiceMatchempcodesAPIRequest.go new file mode 100644 index 0000000000..d89670274b --- /dev/null +++ b/model/mozi/AlibabaMoziVdsTenantApiServiceMatchempcodesAPIRequest.go @@ -0,0 +1,52 @@ +package mozi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +校验组-员工是否匹配 API请求 +alibaba.mozi.vds.tenant.api.service.matchempcodes + +校验组-员工是否匹配 +*/ +type AlibabaMoziVdsTenantApiServiceMatchempcodesAPIRequest struct { + model.Params + // 入参 + _par0 *MatchWithEmployeeRequest +} + +// 初始化AlibabaMoziVdsTenantApiServiceMatchempcodesAPIRequest对象 +func NewAlibabaMoziVdsTenantApiServiceMatchempcodesRequest() *AlibabaMoziVdsTenantApiServiceMatchempcodesAPIRequest{ + return &AlibabaMoziVdsTenantApiServiceMatchempcodesAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziVdsTenantApiServiceMatchempcodesAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.vds.tenant.api.service.matchempcodes" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziVdsTenantApiServiceMatchempcodesAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Par0 Setter +// 入参 +func (r *AlibabaMoziVdsTenantApiServiceMatchempcodesAPIRequest) SetPar0(_par0 *MatchWithEmployeeRequest) error { + r._par0 = _par0 + r.Set("par0", _par0) + return nil +} + +// Par0 Getter +func (r AlibabaMoziVdsTenantApiServiceMatchempcodesAPIRequest) GetPar0() *MatchWithEmployeeRequest { + return r._par0 +} diff --git a/model/mozi/AlibabaMoziVdsTenantApiServiceMatchempcodesAPIResponse.go b/model/mozi/AlibabaMoziVdsTenantApiServiceMatchempcodesAPIResponse.go new file mode 100644 index 0000000000..6b725b1bcf --- /dev/null +++ b/model/mozi/AlibabaMoziVdsTenantApiServiceMatchempcodesAPIResponse.go @@ -0,0 +1,27 @@ +package mozi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +校验组-员工是否匹配 API返回值 +alibaba.mozi.vds.tenant.api.service.matchempcodes + +校验组-员工是否匹配 +*/ +type AlibabaMoziVdsTenantApiServiceMatchempcodesAPIResponse struct { + model.CommonResponse + AlibabaMoziVdsTenantApiServiceMatchempcodesAPIResponseModel +} + +// 校验组-员工是否匹配 成功返回结果 +type AlibabaMoziVdsTenantApiServiceMatchempcodesAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_vds_tenant_api_service_matchempcodes_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *MatchWithEmployeeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mozi/AlibabaMoziVdsTenantApiServiceMatchempcodesResponse.go b/model/mozi/AlibabaMoziVdsTenantApiServiceMatchempcodesResponse.go deleted file mode 100644 index 46da940705..0000000000 --- a/model/mozi/AlibabaMoziVdsTenantApiServiceMatchempcodesResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mozi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -校验组-员工是否匹配 API返回值 -alibaba.mozi.vds.tenant.api.service.matchempcodes - -校验组-员工是否匹配 -*/ -type AlibabaMoziVdsTenantApiServiceMatchempcodesAPIResponse struct { - model.CommonResponse - AlibabaMoziVdsTenantApiServiceMatchempcodesResponse -} - -// 校验组-员工是否匹配 成功返回结果 -type AlibabaMoziVdsTenantApiServiceMatchempcodesResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_vds_tenant_api_service_matchempcodes_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *MatchWithEmployeeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mozi/AlibabaMoziVdsTenantApiServicePagesubadminsAPIRequest.go b/model/mozi/AlibabaMoziVdsTenantApiServicePagesubadminsAPIRequest.go new file mode 100644 index 0000000000..189987f2d1 --- /dev/null +++ b/model/mozi/AlibabaMoziVdsTenantApiServicePagesubadminsAPIRequest.go @@ -0,0 +1,52 @@ +package mozi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询租户子管理员 API请求 +alibaba.mozi.vds.tenant.api.service.pagesubadmins + +分页查询租户子管理员 +*/ +type AlibabaMoziVdsTenantApiServicePagesubadminsAPIRequest struct { + model.Params + // 入参 + _par0 *PageTenantSubAdminsRequest +} + +// 初始化AlibabaMoziVdsTenantApiServicePagesubadminsAPIRequest对象 +func NewAlibabaMoziVdsTenantApiServicePagesubadminsRequest() *AlibabaMoziVdsTenantApiServicePagesubadminsAPIRequest{ + return &AlibabaMoziVdsTenantApiServicePagesubadminsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziVdsTenantApiServicePagesubadminsAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.vds.tenant.api.service.pagesubadmins" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziVdsTenantApiServicePagesubadminsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Par0 Setter +// 入参 +func (r *AlibabaMoziVdsTenantApiServicePagesubadminsAPIRequest) SetPar0(_par0 *PageTenantSubAdminsRequest) error { + r._par0 = _par0 + r.Set("par0", _par0) + return nil +} + +// Par0 Getter +func (r AlibabaMoziVdsTenantApiServicePagesubadminsAPIRequest) GetPar0() *PageTenantSubAdminsRequest { + return r._par0 +} diff --git a/model/mozi/AlibabaMoziVdsTenantApiServicePagesubadminsAPIResponse.go b/model/mozi/AlibabaMoziVdsTenantApiServicePagesubadminsAPIResponse.go new file mode 100644 index 0000000000..7c87210c53 --- /dev/null +++ b/model/mozi/AlibabaMoziVdsTenantApiServicePagesubadminsAPIResponse.go @@ -0,0 +1,27 @@ +package mozi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询租户子管理员 API返回值 +alibaba.mozi.vds.tenant.api.service.pagesubadmins + +分页查询租户子管理员 +*/ +type AlibabaMoziVdsTenantApiServicePagesubadminsAPIResponse struct { + model.CommonResponse + AlibabaMoziVdsTenantApiServicePagesubadminsAPIResponseModel +} + +// 分页查询租户子管理员 成功返回结果 +type AlibabaMoziVdsTenantApiServicePagesubadminsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_vds_tenant_api_service_pagesubadmins_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *PageTenantSubAdminsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mozi/AlibabaMoziVdsTenantApiServicePagesubadminsResponse.go b/model/mozi/AlibabaMoziVdsTenantApiServicePagesubadminsResponse.go deleted file mode 100644 index a93462ab9f..0000000000 --- a/model/mozi/AlibabaMoziVdsTenantApiServicePagesubadminsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mozi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页查询租户子管理员 API返回值 -alibaba.mozi.vds.tenant.api.service.pagesubadmins - -分页查询租户子管理员 -*/ -type AlibabaMoziVdsTenantApiServicePagesubadminsAPIResponse struct { - model.CommonResponse - AlibabaMoziVdsTenantApiServicePagesubadminsResponse -} - -// 分页查询租户子管理员 成功返回结果 -type AlibabaMoziVdsTenantApiServicePagesubadminsResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_vds_tenant_api_service_pagesubadmins_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *PageTenantSubAdminsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mozi/AlibabaMoziVdsTenantApiServiceTenantbyidAPIRequest.go b/model/mozi/AlibabaMoziVdsTenantApiServiceTenantbyidAPIRequest.go new file mode 100644 index 0000000000..f0e0283168 --- /dev/null +++ b/model/mozi/AlibabaMoziVdsTenantApiServiceTenantbyidAPIRequest.go @@ -0,0 +1,52 @@ +package mozi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +按租户ID查询租户信息 API请求 +alibaba.mozi.vds.tenant.api.service.tenantbyid + +按租户ID查询租户信息 +*/ +type AlibabaMoziVdsTenantApiServiceTenantbyidAPIRequest struct { + model.Params + // 入参 + _par0 *GetTenantByIdRequest +} + +// 初始化AlibabaMoziVdsTenantApiServiceTenantbyidAPIRequest对象 +func NewAlibabaMoziVdsTenantApiServiceTenantbyidRequest() *AlibabaMoziVdsTenantApiServiceTenantbyidAPIRequest{ + return &AlibabaMoziVdsTenantApiServiceTenantbyidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziVdsTenantApiServiceTenantbyidAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.vds.tenant.api.service.tenantbyid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziVdsTenantApiServiceTenantbyidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Par0 Setter +// 入参 +func (r *AlibabaMoziVdsTenantApiServiceTenantbyidAPIRequest) SetPar0(_par0 *GetTenantByIdRequest) error { + r._par0 = _par0 + r.Set("par0", _par0) + return nil +} + +// Par0 Getter +func (r AlibabaMoziVdsTenantApiServiceTenantbyidAPIRequest) GetPar0() *GetTenantByIdRequest { + return r._par0 +} diff --git a/model/mozi/AlibabaMoziVdsTenantApiServiceTenantbyidAPIResponse.go b/model/mozi/AlibabaMoziVdsTenantApiServiceTenantbyidAPIResponse.go new file mode 100644 index 0000000000..c4c244f1df --- /dev/null +++ b/model/mozi/AlibabaMoziVdsTenantApiServiceTenantbyidAPIResponse.go @@ -0,0 +1,27 @@ +package mozi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +按租户ID查询租户信息 API返回值 +alibaba.mozi.vds.tenant.api.service.tenantbyid + +按租户ID查询租户信息 +*/ +type AlibabaMoziVdsTenantApiServiceTenantbyidAPIResponse struct { + model.CommonResponse + AlibabaMoziVdsTenantApiServiceTenantbyidAPIResponseModel +} + +// 按租户ID查询租户信息 成功返回结果 +type AlibabaMoziVdsTenantApiServiceTenantbyidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_vds_tenant_api_service_tenantbyid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *GetTenantByIdResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mozi/AlibabaMoziVdsTenantApiServiceTenantbyidResponse.go b/model/mozi/AlibabaMoziVdsTenantApiServiceTenantbyidResponse.go deleted file mode 100644 index 30986ed050..0000000000 --- a/model/mozi/AlibabaMoziVdsTenantApiServiceTenantbyidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mozi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -按租户ID查询租户信息 API返回值 -alibaba.mozi.vds.tenant.api.service.tenantbyid - -按租户ID查询租户信息 -*/ -type AlibabaMoziVdsTenantApiServiceTenantbyidAPIResponse struct { - model.CommonResponse - AlibabaMoziVdsTenantApiServiceTenantbyidResponse -} - -// 按租户ID查询租户信息 成功返回结果 -type AlibabaMoziVdsTenantApiServiceTenantbyidResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_vds_tenant_api_service_tenantbyid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *GetTenantByIdResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/moziacl/AlibabaMoziAclAppGetpermisspkgsAPIRequest.go b/model/moziacl/AlibabaMoziAclAppGetpermisspkgsAPIRequest.go new file mode 100644 index 0000000000..5a7a43afb3 --- /dev/null +++ b/model/moziacl/AlibabaMoziAclAppGetpermisspkgsAPIRequest.go @@ -0,0 +1,52 @@ +package moziacl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页获取应用的权限套餐 API请求 +alibaba.mozi.acl.app.getpermisspkgs + +分页查询应用下的权限套餐列表 +*/ +type AlibabaMoziAclAppGetpermisspkgsAPIRequest struct { + model.Params + // 获取应用的权限套餐请求对象 + _getAppPermissionPackagesRequest *GetAppPermissionPackageRequest +} + +// 初始化AlibabaMoziAclAppGetpermisspkgsAPIRequest对象 +func NewAlibabaMoziAclAppGetpermisspkgsRequest() *AlibabaMoziAclAppGetpermisspkgsAPIRequest{ + return &AlibabaMoziAclAppGetpermisspkgsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziAclAppGetpermisspkgsAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.acl.app.getpermisspkgs" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziAclAppGetpermisspkgsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GetAppPermissionPackagesRequest Setter +// 获取应用的权限套餐请求对象 +func (r *AlibabaMoziAclAppGetpermisspkgsAPIRequest) SetGetAppPermissionPackagesRequest(_getAppPermissionPackagesRequest *GetAppPermissionPackageRequest) error { + r._getAppPermissionPackagesRequest = _getAppPermissionPackagesRequest + r.Set("get_app_permission_packages_request", _getAppPermissionPackagesRequest) + return nil +} + +// GetAppPermissionPackagesRequest Getter +func (r AlibabaMoziAclAppGetpermisspkgsAPIRequest) GetGetAppPermissionPackagesRequest() *GetAppPermissionPackageRequest { + return r._getAppPermissionPackagesRequest +} diff --git a/model/moziacl/AlibabaMoziAclAppGetpermisspkgsAPIResponse.go b/model/moziacl/AlibabaMoziAclAppGetpermisspkgsAPIResponse.go new file mode 100644 index 0000000000..1677762a06 --- /dev/null +++ b/model/moziacl/AlibabaMoziAclAppGetpermisspkgsAPIResponse.go @@ -0,0 +1,27 @@ +package moziacl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页获取应用的权限套餐 API返回值 +alibaba.mozi.acl.app.getpermisspkgs + +分页查询应用下的权限套餐列表 +*/ +type AlibabaMoziAclAppGetpermisspkgsAPIResponse struct { + model.CommonResponse + AlibabaMoziAclAppGetpermisspkgsAPIResponseModel +} + +// 分页获取应用的权限套餐 成功返回结果 +type AlibabaMoziAclAppGetpermisspkgsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_acl_app_getpermisspkgs_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 获取应用的权限套餐列表结果对象 + Result *AppPermissionPackageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/moziacl/AlibabaMoziAclAppGetpermisspkgsResponse.go b/model/moziacl/AlibabaMoziAclAppGetpermisspkgsResponse.go deleted file mode 100644 index da5f293454..0000000000 --- a/model/moziacl/AlibabaMoziAclAppGetpermisspkgsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package moziacl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页获取应用的权限套餐 API返回值 -alibaba.mozi.acl.app.getpermisspkgs - -分页查询应用下的权限套餐列表 -*/ -type AlibabaMoziAclAppGetpermisspkgsAPIResponse struct { - model.CommonResponse - AlibabaMoziAclAppGetpermisspkgsResponse -} - -// 分页获取应用的权限套餐 成功返回结果 -type AlibabaMoziAclAppGetpermisspkgsResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_acl_app_getpermisspkgs_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 获取应用的权限套餐列表结果对象 - Result *AppPermissionPackageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/moziacl/AlibabaMoziAclGrantGrantroleAPIRequest.go b/model/moziacl/AlibabaMoziAclGrantGrantroleAPIRequest.go new file mode 100644 index 0000000000..2d13a6863a --- /dev/null +++ b/model/moziacl/AlibabaMoziAclGrantGrantroleAPIRequest.go @@ -0,0 +1,52 @@ +package moziacl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +将一个角色授予一个账号 API请求 +alibaba.mozi.acl.grant.grantrole + +根据入参,将入参中的角色授权给入参的某个账户,调用此接口后,该账户就会被授予该角色 +*/ +type AlibabaMoziAclGrantGrantroleAPIRequest struct { + model.Params + // 整体入参对象 + _grantRolesRequest *GrantRolesRequest +} + +// 初始化AlibabaMoziAclGrantGrantroleAPIRequest对象 +func NewAlibabaMoziAclGrantGrantroleRequest() *AlibabaMoziAclGrantGrantroleAPIRequest{ + return &AlibabaMoziAclGrantGrantroleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziAclGrantGrantroleAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.acl.grant.grantrole" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziAclGrantGrantroleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GrantRolesRequest Setter +// 整体入参对象 +func (r *AlibabaMoziAclGrantGrantroleAPIRequest) SetGrantRolesRequest(_grantRolesRequest *GrantRolesRequest) error { + r._grantRolesRequest = _grantRolesRequest + r.Set("grant_roles_request", _grantRolesRequest) + return nil +} + +// GrantRolesRequest Getter +func (r AlibabaMoziAclGrantGrantroleAPIRequest) GetGrantRolesRequest() *GrantRolesRequest { + return r._grantRolesRequest +} diff --git a/model/moziacl/AlibabaMoziAclGrantGrantroleAPIResponse.go b/model/moziacl/AlibabaMoziAclGrantGrantroleAPIResponse.go new file mode 100644 index 0000000000..37d8483f12 --- /dev/null +++ b/model/moziacl/AlibabaMoziAclGrantGrantroleAPIResponse.go @@ -0,0 +1,27 @@ +package moziacl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +将一个角色授予一个账号 API返回值 +alibaba.mozi.acl.grant.grantrole + +根据入参,将入参中的角色授权给入参的某个账户,调用此接口后,该账户就会被授予该角色 +*/ +type AlibabaMoziAclGrantGrantroleAPIResponse struct { + model.CommonResponse + AlibabaMoziAclGrantGrantroleAPIResponseModel +} + +// 将一个角色授予一个账号 成功返回结果 +type AlibabaMoziAclGrantGrantroleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_acl_grant_grantrole_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 给账号授予角色结果 + Result *GrantRolesResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/moziacl/AlibabaMoziAclGrantGrantroleResponse.go b/model/moziacl/AlibabaMoziAclGrantGrantroleResponse.go deleted file mode 100644 index 158871d6e8..0000000000 --- a/model/moziacl/AlibabaMoziAclGrantGrantroleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package moziacl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -将一个角色授予一个账号 API返回值 -alibaba.mozi.acl.grant.grantrole - -根据入参,将入参中的角色授权给入参的某个账户,调用此接口后,该账户就会被授予该角色 -*/ -type AlibabaMoziAclGrantGrantroleAPIResponse struct { - model.CommonResponse - AlibabaMoziAclGrantGrantroleResponse -} - -// 将一个角色授予一个账号 成功返回结果 -type AlibabaMoziAclGrantGrantroleResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_acl_grant_grantrole_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 给账号授予角色结果 - Result *GrantRolesResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/moziacl/AlibabaMoziAclPermissionPageRolepermissionAPIRequest.go b/model/moziacl/AlibabaMoziAclPermissionPageRolepermissionAPIRequest.go new file mode 100644 index 0000000000..e53a10ef6b --- /dev/null +++ b/model/moziacl/AlibabaMoziAclPermissionPageRolepermissionAPIRequest.go @@ -0,0 +1,52 @@ +package moziacl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询角色下包含的权限列表 API请求 +alibaba.mozi.acl.permission.page.rolepermission + +根据传入的角色name,分页查询该角色包含的权限列表 +*/ +type AlibabaMoziAclPermissionPageRolepermissionAPIRequest struct { + model.Params + // 分页查询角色下包含的权限列表 + _pageRolePermisions *PageRolePermissionRequest +} + +// 初始化AlibabaMoziAclPermissionPageRolepermissionAPIRequest对象 +func NewAlibabaMoziAclPermissionPageRolepermissionRequest() *AlibabaMoziAclPermissionPageRolepermissionAPIRequest{ + return &AlibabaMoziAclPermissionPageRolepermissionAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziAclPermissionPageRolepermissionAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.acl.permission.page.rolepermission" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziAclPermissionPageRolepermissionAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageRolePermisions Setter +// 分页查询角色下包含的权限列表 +func (r *AlibabaMoziAclPermissionPageRolepermissionAPIRequest) SetPageRolePermisions(_pageRolePermisions *PageRolePermissionRequest) error { + r._pageRolePermisions = _pageRolePermisions + r.Set("page_role_permisions", _pageRolePermisions) + return nil +} + +// PageRolePermisions Getter +func (r AlibabaMoziAclPermissionPageRolepermissionAPIRequest) GetPageRolePermisions() *PageRolePermissionRequest { + return r._pageRolePermisions +} diff --git a/model/moziacl/AlibabaMoziAclPermissionPageRolepermissionAPIResponse.go b/model/moziacl/AlibabaMoziAclPermissionPageRolepermissionAPIResponse.go new file mode 100644 index 0000000000..bf2eda44cd --- /dev/null +++ b/model/moziacl/AlibabaMoziAclPermissionPageRolepermissionAPIResponse.go @@ -0,0 +1,27 @@ +package moziacl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询角色下包含的权限列表 API返回值 +alibaba.mozi.acl.permission.page.rolepermission + +根据传入的角色name,分页查询该角色包含的权限列表 +*/ +type AlibabaMoziAclPermissionPageRolepermissionAPIResponse struct { + model.CommonResponse + AlibabaMoziAclPermissionPageRolepermissionAPIResponseModel +} + +// 分页查询角色下包含的权限列表 成功返回结果 +type AlibabaMoziAclPermissionPageRolepermissionAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_acl_permission_page_rolepermission_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询角色下权限列表结果对象 + Result *PageRolePermissionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/moziacl/AlibabaMoziAclPermissionPageRolepermissionResponse.go b/model/moziacl/AlibabaMoziAclPermissionPageRolepermissionResponse.go deleted file mode 100644 index a7c84ac369..0000000000 --- a/model/moziacl/AlibabaMoziAclPermissionPageRolepermissionResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package moziacl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页查询角色下包含的权限列表 API返回值 -alibaba.mozi.acl.permission.page.rolepermission - -根据传入的角色name,分页查询该角色包含的权限列表 -*/ -type AlibabaMoziAclPermissionPageRolepermissionAPIResponse struct { - model.CommonResponse - AlibabaMoziAclPermissionPageRolepermissionResponse -} - -// 分页查询角色下包含的权限列表 成功返回结果 -type AlibabaMoziAclPermissionPageRolepermissionResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_acl_permission_page_rolepermission_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询角色下权限列表结果对象 - Result *PageRolePermissionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/moziacl/AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest.go b/model/moziacl/AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest.go new file mode 100644 index 0000000000..c935f5123e --- /dev/null +++ b/model/moziacl/AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest.go @@ -0,0 +1,52 @@ +package moziacl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +权限套餐添加权限 API请求 +alibaba.mozi.acl.permissionpkg.add.permissions + +此接口的功能为:将一批应用下的权限添加到该应用下的权限套餐中 +*/ +type AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest struct { + model.Params + // 请求对象 + _parameters *UpdatePermissionsToPermissionPackageRequest +} + +// 初始化AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest对象 +func NewAlibabaMoziAclPermissionpkgAddPermissionsRequest() *AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest{ + return &AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.acl.permissionpkg.add.permissions" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Parameters Setter +// 请求对象 +func (r *AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) SetParameters(_parameters *UpdatePermissionsToPermissionPackageRequest) error { + r._parameters = _parameters + r.Set("parameters", _parameters) + return nil +} + +// Parameters Getter +func (r AlibabaMoziAclPermissionpkgAddPermissionsAPIRequest) GetParameters() *UpdatePermissionsToPermissionPackageRequest { + return r._parameters +} diff --git a/model/moziacl/AlibabaMoziAclPermissionpkgAddPermissionsAPIResponse.go b/model/moziacl/AlibabaMoziAclPermissionpkgAddPermissionsAPIResponse.go new file mode 100644 index 0000000000..db24edde71 --- /dev/null +++ b/model/moziacl/AlibabaMoziAclPermissionpkgAddPermissionsAPIResponse.go @@ -0,0 +1,27 @@ +package moziacl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +权限套餐添加权限 API返回值 +alibaba.mozi.acl.permissionpkg.add.permissions + +此接口的功能为:将一批应用下的权限添加到该应用下的权限套餐中 +*/ +type AlibabaMoziAclPermissionpkgAddPermissionsAPIResponse struct { + model.CommonResponse + AlibabaMoziAclPermissionpkgAddPermissionsAPIResponseModel +} + +// 权限套餐添加权限 成功返回结果 +type AlibabaMoziAclPermissionpkgAddPermissionsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_acl_permissionpkg_add_permissions_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Result *UpdatePermissionsToPermissionPackageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/moziacl/AlibabaMoziAclPermissionpkgAddPermissionsResponse.go b/model/moziacl/AlibabaMoziAclPermissionpkgAddPermissionsResponse.go deleted file mode 100644 index c77589ca4d..0000000000 --- a/model/moziacl/AlibabaMoziAclPermissionpkgAddPermissionsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package moziacl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -权限套餐添加权限 API返回值 -alibaba.mozi.acl.permissionpkg.add.permissions - -此接口的功能为:将一批应用下的权限添加到该应用下的权限套餐中 -*/ -type AlibabaMoziAclPermissionpkgAddPermissionsAPIResponse struct { - model.CommonResponse - AlibabaMoziAclPermissionpkgAddPermissionsResponse -} - -// 权限套餐添加权限 成功返回结果 -type AlibabaMoziAclPermissionpkgAddPermissionsResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_acl_permissionpkg_add_permissions_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Result *UpdatePermissionsToPermissionPackageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/moziacl/AlibabaMoziAclPermissionpkgAddRolesAPIRequest.go b/model/moziacl/AlibabaMoziAclPermissionpkgAddRolesAPIRequest.go new file mode 100644 index 0000000000..84c32168b7 --- /dev/null +++ b/model/moziacl/AlibabaMoziAclPermissionpkgAddRolesAPIRequest.go @@ -0,0 +1,52 @@ +package moziacl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +将角色添加到权限套餐中 API请求 +alibaba.mozi.acl.permissionpkg.add.roles + +此接口是将应用下的一批角色添加到该应用的某个权限套餐中 +*/ +type AlibabaMoziAclPermissionpkgAddRolesAPIRequest struct { + model.Params + // 请求入参对象 + _parameters *UpdateRolesToPermissionPackageRequest +} + +// 初始化AlibabaMoziAclPermissionpkgAddRolesAPIRequest对象 +func NewAlibabaMoziAclPermissionpkgAddRolesRequest() *AlibabaMoziAclPermissionpkgAddRolesAPIRequest{ + return &AlibabaMoziAclPermissionpkgAddRolesAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziAclPermissionpkgAddRolesAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.acl.permissionpkg.add.roles" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziAclPermissionpkgAddRolesAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Parameters Setter +// 请求入参对象 +func (r *AlibabaMoziAclPermissionpkgAddRolesAPIRequest) SetParameters(_parameters *UpdateRolesToPermissionPackageRequest) error { + r._parameters = _parameters + r.Set("parameters", _parameters) + return nil +} + +// Parameters Getter +func (r AlibabaMoziAclPermissionpkgAddRolesAPIRequest) GetParameters() *UpdateRolesToPermissionPackageRequest { + return r._parameters +} diff --git a/model/moziacl/AlibabaMoziAclPermissionpkgAddRolesAPIResponse.go b/model/moziacl/AlibabaMoziAclPermissionpkgAddRolesAPIResponse.go new file mode 100644 index 0000000000..2053694e5f --- /dev/null +++ b/model/moziacl/AlibabaMoziAclPermissionpkgAddRolesAPIResponse.go @@ -0,0 +1,27 @@ +package moziacl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +将角色添加到权限套餐中 API返回值 +alibaba.mozi.acl.permissionpkg.add.roles + +此接口是将应用下的一批角色添加到该应用的某个权限套餐中 +*/ +type AlibabaMoziAclPermissionpkgAddRolesAPIResponse struct { + model.CommonResponse + AlibabaMoziAclPermissionpkgAddRolesAPIResponseModel +} + +// 将角色添加到权限套餐中 成功返回结果 +type AlibabaMoziAclPermissionpkgAddRolesAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_acl_permissionpkg_add_roles_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Result *UpdateRolesToPermissionPackageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/moziacl/AlibabaMoziAclPermissionpkgAddRolesResponse.go b/model/moziacl/AlibabaMoziAclPermissionpkgAddRolesResponse.go deleted file mode 100644 index 2c78ec87c5..0000000000 --- a/model/moziacl/AlibabaMoziAclPermissionpkgAddRolesResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package moziacl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -将角色添加到权限套餐中 API返回值 -alibaba.mozi.acl.permissionpkg.add.roles - -此接口是将应用下的一批角色添加到该应用的某个权限套餐中 -*/ -type AlibabaMoziAclPermissionpkgAddRolesAPIResponse struct { - model.CommonResponse - AlibabaMoziAclPermissionpkgAddRolesResponse -} - -// 将角色添加到权限套餐中 成功返回结果 -type AlibabaMoziAclPermissionpkgAddRolesResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_acl_permissionpkg_add_roles_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Result *UpdateRolesToPermissionPackageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/moziacl/AlibabaMoziAclRoleAddAPIRequest.go b/model/moziacl/AlibabaMoziAclRoleAddAPIRequest.go new file mode 100644 index 0000000000..3d844b2d9c --- /dev/null +++ b/model/moziacl/AlibabaMoziAclRoleAddAPIRequest.go @@ -0,0 +1,52 @@ +package moziacl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增一个角色 API请求 +alibaba.mozi.acl.role.add + +新增一个角色 +*/ +type AlibabaMoziAclRoleAddAPIRequest struct { + model.Params + // 创建角色请求对象 + _createRoleRequest *CreateRoleRequest +} + +// 初始化AlibabaMoziAclRoleAddAPIRequest对象 +func NewAlibabaMoziAclRoleAddRequest() *AlibabaMoziAclRoleAddAPIRequest{ + return &AlibabaMoziAclRoleAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziAclRoleAddAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.acl.role.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziAclRoleAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CreateRoleRequest Setter +// 创建角色请求对象 +func (r *AlibabaMoziAclRoleAddAPIRequest) SetCreateRoleRequest(_createRoleRequest *CreateRoleRequest) error { + r._createRoleRequest = _createRoleRequest + r.Set("create_role_request", _createRoleRequest) + return nil +} + +// CreateRoleRequest Getter +func (r AlibabaMoziAclRoleAddAPIRequest) GetCreateRoleRequest() *CreateRoleRequest { + return r._createRoleRequest +} diff --git a/model/moziacl/AlibabaMoziAclRoleAddAPIResponse.go b/model/moziacl/AlibabaMoziAclRoleAddAPIResponse.go new file mode 100644 index 0000000000..51ce6a493e --- /dev/null +++ b/model/moziacl/AlibabaMoziAclRoleAddAPIResponse.go @@ -0,0 +1,27 @@ +package moziacl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增一个角色 API返回值 +alibaba.mozi.acl.role.add + +新增一个角色 +*/ +type AlibabaMoziAclRoleAddAPIResponse struct { + model.CommonResponse + AlibabaMoziAclRoleAddAPIResponseModel +} + +// 新增一个角色 成功返回结果 +type AlibabaMoziAclRoleAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_acl_role_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创建角色结果对象 + Result *CreateRoleResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/moziacl/AlibabaMoziAclRoleAddPermissionsAPIRequest.go b/model/moziacl/AlibabaMoziAclRoleAddPermissionsAPIRequest.go new file mode 100644 index 0000000000..c250e75d08 --- /dev/null +++ b/model/moziacl/AlibabaMoziAclRoleAddPermissionsAPIRequest.go @@ -0,0 +1,52 @@ +package moziacl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +角色添加功能权限 API请求 +alibaba.mozi.acl.role.add.permissions + +往角色中添加一批功能权限 +*/ +type AlibabaMoziAclRoleAddPermissionsAPIRequest struct { + model.Params + // 角色添加功能权限请求对象 + _addPermissionsToRole *AddPermissionToRoleRequest +} + +// 初始化AlibabaMoziAclRoleAddPermissionsAPIRequest对象 +func NewAlibabaMoziAclRoleAddPermissionsRequest() *AlibabaMoziAclRoleAddPermissionsAPIRequest{ + return &AlibabaMoziAclRoleAddPermissionsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziAclRoleAddPermissionsAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.acl.role.add.permissions" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziAclRoleAddPermissionsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AddPermissionsToRole Setter +// 角色添加功能权限请求对象 +func (r *AlibabaMoziAclRoleAddPermissionsAPIRequest) SetAddPermissionsToRole(_addPermissionsToRole *AddPermissionToRoleRequest) error { + r._addPermissionsToRole = _addPermissionsToRole + r.Set("add_permissions_to_role", _addPermissionsToRole) + return nil +} + +// AddPermissionsToRole Getter +func (r AlibabaMoziAclRoleAddPermissionsAPIRequest) GetAddPermissionsToRole() *AddPermissionToRoleRequest { + return r._addPermissionsToRole +} diff --git a/model/moziacl/AlibabaMoziAclRoleAddPermissionsAPIResponse.go b/model/moziacl/AlibabaMoziAclRoleAddPermissionsAPIResponse.go new file mode 100644 index 0000000000..0bed119129 --- /dev/null +++ b/model/moziacl/AlibabaMoziAclRoleAddPermissionsAPIResponse.go @@ -0,0 +1,27 @@ +package moziacl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +角色添加功能权限 API返回值 +alibaba.mozi.acl.role.add.permissions + +往角色中添加一批功能权限 +*/ +type AlibabaMoziAclRoleAddPermissionsAPIResponse struct { + model.CommonResponse + AlibabaMoziAclRoleAddPermissionsAPIResponseModel +} + +// 角色添加功能权限 成功返回结果 +type AlibabaMoziAclRoleAddPermissionsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_acl_role_add_permissions_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 角色移除功能权限结果对象 + Result *AddPermissionToRoleResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/moziacl/AlibabaMoziAclRoleAddPermissionsResponse.go b/model/moziacl/AlibabaMoziAclRoleAddPermissionsResponse.go deleted file mode 100644 index e90520d731..0000000000 --- a/model/moziacl/AlibabaMoziAclRoleAddPermissionsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package moziacl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -角色添加功能权限 API返回值 -alibaba.mozi.acl.role.add.permissions - -往角色中添加一批功能权限 -*/ -type AlibabaMoziAclRoleAddPermissionsAPIResponse struct { - model.CommonResponse - AlibabaMoziAclRoleAddPermissionsResponse -} - -// 角色添加功能权限 成功返回结果 -type AlibabaMoziAclRoleAddPermissionsResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_acl_role_add_permissions_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 角色移除功能权限结果对象 - Result *AddPermissionToRoleResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/moziacl/AlibabaMoziAclRoleAddResponse.go b/model/moziacl/AlibabaMoziAclRoleAddResponse.go deleted file mode 100644 index 0134d54012..0000000000 --- a/model/moziacl/AlibabaMoziAclRoleAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package moziacl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增一个角色 API返回值 -alibaba.mozi.acl.role.add - -新增一个角色 -*/ -type AlibabaMoziAclRoleAddAPIResponse struct { - model.CommonResponse - AlibabaMoziAclRoleAddResponse -} - -// 新增一个角色 成功返回结果 -type AlibabaMoziAclRoleAddResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_acl_role_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创建角色结果对象 - Result *CreateRoleResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/moziacl/AlibabaMoziAclRoleRemoveAPIRequest.go b/model/moziacl/AlibabaMoziAclRoleRemoveAPIRequest.go new file mode 100644 index 0000000000..7650410b76 --- /dev/null +++ b/model/moziacl/AlibabaMoziAclRoleRemoveAPIRequest.go @@ -0,0 +1,52 @@ +package moziacl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除角色 API请求 +alibaba.mozi.acl.role.remove + +根据传入的角色code、租户id,删除租户内对应的角色 +*/ +type AlibabaMoziAclRoleRemoveAPIRequest struct { + model.Params + // 删除角色请求对象 + _deleteRolesRequest *DeleteRolesRequest +} + +// 初始化AlibabaMoziAclRoleRemoveAPIRequest对象 +func NewAlibabaMoziAclRoleRemoveRequest() *AlibabaMoziAclRoleRemoveAPIRequest{ + return &AlibabaMoziAclRoleRemoveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziAclRoleRemoveAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.acl.role.remove" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziAclRoleRemoveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeleteRolesRequest Setter +// 删除角色请求对象 +func (r *AlibabaMoziAclRoleRemoveAPIRequest) SetDeleteRolesRequest(_deleteRolesRequest *DeleteRolesRequest) error { + r._deleteRolesRequest = _deleteRolesRequest + r.Set("delete_roles_request", _deleteRolesRequest) + return nil +} + +// DeleteRolesRequest Getter +func (r AlibabaMoziAclRoleRemoveAPIRequest) GetDeleteRolesRequest() *DeleteRolesRequest { + return r._deleteRolesRequest +} diff --git a/model/moziacl/AlibabaMoziAclRoleRemoveAPIResponse.go b/model/moziacl/AlibabaMoziAclRoleRemoveAPIResponse.go new file mode 100644 index 0000000000..cea249834a --- /dev/null +++ b/model/moziacl/AlibabaMoziAclRoleRemoveAPIResponse.go @@ -0,0 +1,35 @@ +package moziacl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除角色 API返回值 +alibaba.mozi.acl.role.remove + +根据传入的角色code、租户id,删除租户内对应的角色 +*/ +type AlibabaMoziAclRoleRemoveAPIResponse struct { + model.CommonResponse + AlibabaMoziAclRoleRemoveAPIResponseModel +} + +// 删除角色 成功返回结果 +type AlibabaMoziAclRoleRemoveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_acl_role_remove_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 无值 + Data string `json:"data,omitempty" xml:"data,omitempty"` + // 是否操作成功,true代表操作成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 请求id + MoziRequestId string `json:"mozi_request_id,omitempty" xml:"mozi_request_id,omitempty"` + // 如果success不为true,则自此段返回详细的错误信息 + ResponseMessage string `json:"response_message,omitempty" xml:"response_message,omitempty"` + // 如果success为true,则返回0,否则此段返回详细的错误code + ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` +} diff --git a/model/moziacl/AlibabaMoziAclRoleRemovePermissionsAPIRequest.go b/model/moziacl/AlibabaMoziAclRoleRemovePermissionsAPIRequest.go new file mode 100644 index 0000000000..42c3cf7021 --- /dev/null +++ b/model/moziacl/AlibabaMoziAclRoleRemovePermissionsAPIRequest.go @@ -0,0 +1,52 @@ +package moziacl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +角色移除功能权限 API请求 +alibaba.mozi.acl.role.remove.permissions + +从角色中移除一批功能权限 +*/ +type AlibabaMoziAclRoleRemovePermissionsAPIRequest struct { + model.Params + // 角色移除功能权限请求对象 + _removePermissionsFromRole *RemovePermissionsFromRoleRequest +} + +// 初始化AlibabaMoziAclRoleRemovePermissionsAPIRequest对象 +func NewAlibabaMoziAclRoleRemovePermissionsRequest() *AlibabaMoziAclRoleRemovePermissionsAPIRequest{ + return &AlibabaMoziAclRoleRemovePermissionsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziAclRoleRemovePermissionsAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.acl.role.remove.permissions" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziAclRoleRemovePermissionsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RemovePermissionsFromRole Setter +// 角色移除功能权限请求对象 +func (r *AlibabaMoziAclRoleRemovePermissionsAPIRequest) SetRemovePermissionsFromRole(_removePermissionsFromRole *RemovePermissionsFromRoleRequest) error { + r._removePermissionsFromRole = _removePermissionsFromRole + r.Set("remove_permissions_from_role", _removePermissionsFromRole) + return nil +} + +// RemovePermissionsFromRole Getter +func (r AlibabaMoziAclRoleRemovePermissionsAPIRequest) GetRemovePermissionsFromRole() *RemovePermissionsFromRoleRequest { + return r._removePermissionsFromRole +} diff --git a/model/moziacl/AlibabaMoziAclRoleRemovePermissionsAPIResponse.go b/model/moziacl/AlibabaMoziAclRoleRemovePermissionsAPIResponse.go new file mode 100644 index 0000000000..e72534cb7a --- /dev/null +++ b/model/moziacl/AlibabaMoziAclRoleRemovePermissionsAPIResponse.go @@ -0,0 +1,27 @@ +package moziacl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +角色移除功能权限 API返回值 +alibaba.mozi.acl.role.remove.permissions + +从角色中移除一批功能权限 +*/ +type AlibabaMoziAclRoleRemovePermissionsAPIResponse struct { + model.CommonResponse + AlibabaMoziAclRoleRemovePermissionsAPIResponseModel +} + +// 角色移除功能权限 成功返回结果 +type AlibabaMoziAclRoleRemovePermissionsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_acl_role_remove_permissions_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 角色移除功能权限结果对象 + Result *RemovePermissionsFromRoleResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/moziacl/AlibabaMoziAclRoleRemovePermissionsResponse.go b/model/moziacl/AlibabaMoziAclRoleRemovePermissionsResponse.go deleted file mode 100644 index d2ce9d6e9f..0000000000 --- a/model/moziacl/AlibabaMoziAclRoleRemovePermissionsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package moziacl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -角色移除功能权限 API返回值 -alibaba.mozi.acl.role.remove.permissions - -从角色中移除一批功能权限 -*/ -type AlibabaMoziAclRoleRemovePermissionsAPIResponse struct { - model.CommonResponse - AlibabaMoziAclRoleRemovePermissionsResponse -} - -// 角色移除功能权限 成功返回结果 -type AlibabaMoziAclRoleRemovePermissionsResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_acl_role_remove_permissions_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 角色移除功能权限结果对象 - Result *RemovePermissionsFromRoleResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/moziacl/AlibabaMoziAclRoleRemoveResponse.go b/model/moziacl/AlibabaMoziAclRoleRemoveResponse.go deleted file mode 100644 index eaf930a35c..0000000000 --- a/model/moziacl/AlibabaMoziAclRoleRemoveResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package moziacl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除角色 API返回值 -alibaba.mozi.acl.role.remove - -根据传入的角色code、租户id,删除租户内对应的角色 -*/ -type AlibabaMoziAclRoleRemoveAPIResponse struct { - model.CommonResponse - AlibabaMoziAclRoleRemoveResponse -} - -// 删除角色 成功返回结果 -type AlibabaMoziAclRoleRemoveResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_acl_role_remove_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 无值 - Data string `json:"data,omitempty" xml:"data,omitempty"` - // 是否操作成功,true代表操作成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 请求id - MoziRequestId string `json:"mozi_request_id,omitempty" xml:"mozi_request_id,omitempty"` - // 如果success不为true,则自此段返回详细的错误信息 - ResponseMessage string `json:"response_message,omitempty" xml:"response_message,omitempty"` - // 如果success为true,则返回0,否则此段返回详细的错误code - ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` -} diff --git a/model/moziacl/AlibabaMoziAclUserpermissionsRevokeAPIRequest.go b/model/moziacl/AlibabaMoziAclUserpermissionsRevokeAPIRequest.go new file mode 100644 index 0000000000..7cce46f588 --- /dev/null +++ b/model/moziacl/AlibabaMoziAclUserpermissionsRevokeAPIRequest.go @@ -0,0 +1,52 @@ +package moziacl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +回收账户权限 API请求 +alibaba.mozi.acl.userpermissions.revoke + +调用此接口,会根据入参回收该账户下的该批权限点 +*/ +type AlibabaMoziAclUserpermissionsRevokeAPIRequest struct { + model.Params + // 回收权限入参对象 + _revokePermission *RevokePermissionsRequest +} + +// 初始化AlibabaMoziAclUserpermissionsRevokeAPIRequest对象 +func NewAlibabaMoziAclUserpermissionsRevokeRequest() *AlibabaMoziAclUserpermissionsRevokeAPIRequest{ + return &AlibabaMoziAclUserpermissionsRevokeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziAclUserpermissionsRevokeAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.acl.userpermissions.revoke" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziAclUserpermissionsRevokeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RevokePermission Setter +// 回收权限入参对象 +func (r *AlibabaMoziAclUserpermissionsRevokeAPIRequest) SetRevokePermission(_revokePermission *RevokePermissionsRequest) error { + r._revokePermission = _revokePermission + r.Set("revoke_permission", _revokePermission) + return nil +} + +// RevokePermission Getter +func (r AlibabaMoziAclUserpermissionsRevokeAPIRequest) GetRevokePermission() *RevokePermissionsRequest { + return r._revokePermission +} diff --git a/model/moziacl/AlibabaMoziAclUserpermissionsRevokeAPIResponse.go b/model/moziacl/AlibabaMoziAclUserpermissionsRevokeAPIResponse.go new file mode 100644 index 0000000000..aac24a963a --- /dev/null +++ b/model/moziacl/AlibabaMoziAclUserpermissionsRevokeAPIResponse.go @@ -0,0 +1,27 @@ +package moziacl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +回收账户权限 API返回值 +alibaba.mozi.acl.userpermissions.revoke + +调用此接口,会根据入参回收该账户下的该批权限点 +*/ +type AlibabaMoziAclUserpermissionsRevokeAPIResponse struct { + model.CommonResponse + AlibabaMoziAclUserpermissionsRevokeAPIResponseModel +} + +// 回收账户权限 成功返回结果 +type AlibabaMoziAclUserpermissionsRevokeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_acl_userpermissions_revoke_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 回收账户的权限请求返回对象 + Result *RevokePermissionsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/moziacl/AlibabaMoziAclUserpermissionsRevokeResponse.go b/model/moziacl/AlibabaMoziAclUserpermissionsRevokeResponse.go deleted file mode 100644 index 47b38b2365..0000000000 --- a/model/moziacl/AlibabaMoziAclUserpermissionsRevokeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package moziacl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -回收账户权限 API返回值 -alibaba.mozi.acl.userpermissions.revoke - -调用此接口,会根据入参回收该账户下的该批权限点 -*/ -type AlibabaMoziAclUserpermissionsRevokeAPIResponse struct { - model.CommonResponse - AlibabaMoziAclUserpermissionsRevokeResponse -} - -// 回收账户权限 成功返回结果 -type AlibabaMoziAclUserpermissionsRevokeResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_acl_userpermissions_revoke_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 回收账户的权限请求返回对象 - Result *RevokePermissionsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/moziacl/AlibabaMoziAclUserrolesRevokeAPIRequest.go b/model/moziacl/AlibabaMoziAclUserrolesRevokeAPIRequest.go new file mode 100644 index 0000000000..1115a0af71 --- /dev/null +++ b/model/moziacl/AlibabaMoziAclUserrolesRevokeAPIRequest.go @@ -0,0 +1,52 @@ +package moziacl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +回收账户被授予的角色接口 API请求 +alibaba.mozi.acl.userroles.revoke + +调用此接口,会根据入参回收该账户下的该批角色 +*/ +type AlibabaMoziAclUserrolesRevokeAPIRequest struct { + model.Params + // 回收角色入参对象 + _revokeRolesRequest *RevokeRolesRequest +} + +// 初始化AlibabaMoziAclUserrolesRevokeAPIRequest对象 +func NewAlibabaMoziAclUserrolesRevokeRequest() *AlibabaMoziAclUserrolesRevokeAPIRequest{ + return &AlibabaMoziAclUserrolesRevokeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziAclUserrolesRevokeAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.acl.userroles.revoke" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziAclUserrolesRevokeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RevokeRolesRequest Setter +// 回收角色入参对象 +func (r *AlibabaMoziAclUserrolesRevokeAPIRequest) SetRevokeRolesRequest(_revokeRolesRequest *RevokeRolesRequest) error { + r._revokeRolesRequest = _revokeRolesRequest + r.Set("revoke_roles_request", _revokeRolesRequest) + return nil +} + +// RevokeRolesRequest Getter +func (r AlibabaMoziAclUserrolesRevokeAPIRequest) GetRevokeRolesRequest() *RevokeRolesRequest { + return r._revokeRolesRequest +} diff --git a/model/moziacl/AlibabaMoziAclUserrolesRevokeAPIResponse.go b/model/moziacl/AlibabaMoziAclUserrolesRevokeAPIResponse.go new file mode 100644 index 0000000000..bc228b29da --- /dev/null +++ b/model/moziacl/AlibabaMoziAclUserrolesRevokeAPIResponse.go @@ -0,0 +1,27 @@ +package moziacl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +回收账户被授予的角色接口 API返回值 +alibaba.mozi.acl.userroles.revoke + +调用此接口,会根据入参回收该账户下的该批角色 +*/ +type AlibabaMoziAclUserrolesRevokeAPIResponse struct { + model.CommonResponse + AlibabaMoziAclUserrolesRevokeAPIResponseModel +} + +// 回收账户被授予的角色接口 成功返回结果 +type AlibabaMoziAclUserrolesRevokeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_acl_userroles_revoke_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 回收角色结果对象 + Result *RevokeRolesResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/moziacl/AlibabaMoziAclUserrolesRevokeResponse.go b/model/moziacl/AlibabaMoziAclUserrolesRevokeResponse.go deleted file mode 100644 index 25de905031..0000000000 --- a/model/moziacl/AlibabaMoziAclUserrolesRevokeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package moziacl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -回收账户被授予的角色接口 API返回值 -alibaba.mozi.acl.userroles.revoke - -调用此接口,会根据入参回收该账户下的该批角色 -*/ -type AlibabaMoziAclUserrolesRevokeAPIResponse struct { - model.CommonResponse - AlibabaMoziAclUserrolesRevokeResponse -} - -// 回收账户被授予的角色接口 成功返回结果 -type AlibabaMoziAclUserrolesRevokeResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_acl_userroles_revoke_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 回收角色结果对象 - Result *RevokeRolesResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mozivds/AlibabaMoziVdsTenantApiServiceAddadminAPIRequest.go b/model/mozivds/AlibabaMoziVdsTenantApiServiceAddadminAPIRequest.go new file mode 100644 index 0000000000..2f8f601f1f --- /dev/null +++ b/model/mozivds/AlibabaMoziVdsTenantApiServiceAddadminAPIRequest.go @@ -0,0 +1,53 @@ +package mozivds + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新建租户管理员 API请求 +alibaba.mozi.vds.tenant.api.service.addadmin + +新建租户管理员 +alibaba.mozi.vds.tenant.api.service.addadmin +*/ +type AlibabaMoziVdsTenantApiServiceAddadminAPIRequest struct { + model.Params + // 请求参数 + _param0 *AddTenantAdminsRequest +} + +// 初始化AlibabaMoziVdsTenantApiServiceAddadminAPIRequest对象 +func NewAlibabaMoziVdsTenantApiServiceAddadminRequest() *AlibabaMoziVdsTenantApiServiceAddadminAPIRequest{ + return &AlibabaMoziVdsTenantApiServiceAddadminAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziVdsTenantApiServiceAddadminAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.vds.tenant.api.service.addadmin" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziVdsTenantApiServiceAddadminAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 请求参数 +func (r *AlibabaMoziVdsTenantApiServiceAddadminAPIRequest) SetParam0(_param0 *AddTenantAdminsRequest) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaMoziVdsTenantApiServiceAddadminAPIRequest) GetParam0() *AddTenantAdminsRequest { + return r._param0 +} diff --git a/model/mozivds/AlibabaMoziVdsTenantApiServiceAddadminAPIResponse.go b/model/mozivds/AlibabaMoziVdsTenantApiServiceAddadminAPIResponse.go new file mode 100644 index 0000000000..25c327dfd3 --- /dev/null +++ b/model/mozivds/AlibabaMoziVdsTenantApiServiceAddadminAPIResponse.go @@ -0,0 +1,28 @@ +package mozivds + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新建租户管理员 API返回值 +alibaba.mozi.vds.tenant.api.service.addadmin + +新建租户管理员 +alibaba.mozi.vds.tenant.api.service.addadmin +*/ +type AlibabaMoziVdsTenantApiServiceAddadminAPIResponse struct { + model.CommonResponse + AlibabaMoziVdsTenantApiServiceAddadminAPIResponseModel +} + +// 新建租户管理员 成功返回结果 +type AlibabaMoziVdsTenantApiServiceAddadminAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_vds_tenant_api_service_addadmin_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *AddTenantAdminsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mozivds/AlibabaMoziVdsTenantApiServiceAddadminResponse.go b/model/mozivds/AlibabaMoziVdsTenantApiServiceAddadminResponse.go deleted file mode 100644 index 6d53eb23c9..0000000000 --- a/model/mozivds/AlibabaMoziVdsTenantApiServiceAddadminResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package mozivds - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新建租户管理员 API返回值 -alibaba.mozi.vds.tenant.api.service.addadmin - -新建租户管理员 -alibaba.mozi.vds.tenant.api.service.addadmin -*/ -type AlibabaMoziVdsTenantApiServiceAddadminAPIResponse struct { - model.CommonResponse - AlibabaMoziVdsTenantApiServiceAddadminResponse -} - -// 新建租户管理员 成功返回结果 -type AlibabaMoziVdsTenantApiServiceAddadminResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_vds_tenant_api_service_addadmin_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *AddTenantAdminsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mozivds/AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest.go b/model/mozivds/AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest.go new file mode 100644 index 0000000000..714ecccc83 --- /dev/null +++ b/model/mozivds/AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest.go @@ -0,0 +1,52 @@ +package mozivds + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除租户管理员服务 API请求 +alibaba.mozi.vds.tenant.api.service.removeadmin + +删除租户管理员top服务 +*/ +type AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest struct { + model.Params + // 请求入参 + _param *RemoveTenantAdminsRequest +} + +// 初始化AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest对象 +func NewAlibabaMoziVdsTenantApiServiceRemoveadminRequest() *AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest{ + return &AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest) GetApiMethodName() string { + return "alibaba.mozi.vds.tenant.api.service.removeadmin" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 请求入参 +func (r *AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest) SetParam(_param *RemoveTenantAdminsRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaMoziVdsTenantApiServiceRemoveadminAPIRequest) GetParam() *RemoveTenantAdminsRequest { + return r._param +} diff --git a/model/mozivds/AlibabaMoziVdsTenantApiServiceRemoveadminAPIResponse.go b/model/mozivds/AlibabaMoziVdsTenantApiServiceRemoveadminAPIResponse.go new file mode 100644 index 0000000000..d65a0e0398 --- /dev/null +++ b/model/mozivds/AlibabaMoziVdsTenantApiServiceRemoveadminAPIResponse.go @@ -0,0 +1,27 @@ +package mozivds + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除租户管理员服务 API返回值 +alibaba.mozi.vds.tenant.api.service.removeadmin + +删除租户管理员top服务 +*/ +type AlibabaMoziVdsTenantApiServiceRemoveadminAPIResponse struct { + model.CommonResponse + AlibabaMoziVdsTenantApiServiceRemoveadminAPIResponseModel +} + +// 删除租户管理员服务 成功返回结果 +type AlibabaMoziVdsTenantApiServiceRemoveadminAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mozi_vds_tenant_api_service_removeadmin_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *RemoveTenantAdminsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mozivds/AlibabaMoziVdsTenantApiServiceRemoveadminResponse.go b/model/mozivds/AlibabaMoziVdsTenantApiServiceRemoveadminResponse.go deleted file mode 100644 index e6aa1be2e3..0000000000 --- a/model/mozivds/AlibabaMoziVdsTenantApiServiceRemoveadminResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mozivds - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除租户管理员服务 API返回值 -alibaba.mozi.vds.tenant.api.service.removeadmin - -删除租户管理员top服务 -*/ -type AlibabaMoziVdsTenantApiServiceRemoveadminAPIResponse struct { - model.CommonResponse - AlibabaMoziVdsTenantApiServiceRemoveadminResponse -} - -// 删除租户管理员服务 成功返回结果 -type AlibabaMoziVdsTenantApiServiceRemoveadminResponse struct { - XMLName xml.Name `xml:"alibaba_mozi_vds_tenant_api_service_removeadmin_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *RemoveTenantAdminsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/msgamp/TaobaoMessageSendAPIRequest.go b/model/msgamp/TaobaoMessageSendAPIRequest.go new file mode 100644 index 0000000000..62cc5cf224 --- /dev/null +++ b/model/msgamp/TaobaoMessageSendAPIRequest.go @@ -0,0 +1,52 @@ +package msgamp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +消息发送 API请求 +taobao.message.send + +消息发送接口 +*/ +type TaobaoMessageSendAPIRequest struct { + model.Params + // 消息发送相关参数 + _sendMessageReq *SendMessageReq +} + +// 初始化TaobaoMessageSendAPIRequest对象 +func NewTaobaoMessageSendRequest() *TaobaoMessageSendAPIRequest{ + return &TaobaoMessageSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMessageSendAPIRequest) GetApiMethodName() string { + return "taobao.message.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMessageSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SendMessageReq Setter +// 消息发送相关参数 +func (r *TaobaoMessageSendAPIRequest) SetSendMessageReq(_sendMessageReq *SendMessageReq) error { + r._sendMessageReq = _sendMessageReq + r.Set("send_message_req", _sendMessageReq) + return nil +} + +// SendMessageReq Getter +func (r TaobaoMessageSendAPIRequest) GetSendMessageReq() *SendMessageReq { + return r._sendMessageReq +} diff --git a/model/msgamp/TaobaoMessageSendAPIResponse.go b/model/msgamp/TaobaoMessageSendAPIResponse.go new file mode 100644 index 0000000000..f5231b9137 --- /dev/null +++ b/model/msgamp/TaobaoMessageSendAPIResponse.go @@ -0,0 +1,33 @@ +package msgamp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +消息发送 API返回值 +taobao.message.send + +消息发送接口 +*/ +type TaobaoMessageSendAPIResponse struct { + model.CommonResponse + TaobaoMessageSendAPIResponseModel +} + +// 消息发送 成功返回结果 +type TaobaoMessageSendAPIResponseModel struct { + XMLName xml.Name `xml:"message_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 返回值 + Model string `json:"model,omitempty" xml:"model,omitempty"` + // 错误信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 错误码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` +} diff --git a/model/msgamp/TaobaoMessageSendResponse.go b/model/msgamp/TaobaoMessageSendResponse.go deleted file mode 100644 index ebd789a21e..0000000000 --- a/model/msgamp/TaobaoMessageSendResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package msgamp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -消息发送 API返回值 -taobao.message.send - -消息发送接口 -*/ -type TaobaoMessageSendAPIResponse struct { - model.CommonResponse - TaobaoMessageSendResponse -} - -// 消息发送 成功返回结果 -type TaobaoMessageSendResponse struct { - XMLName xml.Name `xml:"message_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 返回值 - Model string `json:"model,omitempty" xml:"model,omitempty"` - // 错误信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 错误码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` -} diff --git a/model/mtop/TaobaoMtopUploadTokenGetAPIRequest.go b/model/mtop/TaobaoMtopUploadTokenGetAPIRequest.go new file mode 100644 index 0000000000..ddef8830ff --- /dev/null +++ b/model/mtop/TaobaoMtopUploadTokenGetAPIRequest.go @@ -0,0 +1,52 @@ +package mtop + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取文件上传授权 API请求 +taobao.mtop.upload.token.get + +获取mtop文件上传授权 +*/ +type TaobaoMtopUploadTokenGetAPIRequest struct { + model.Params + // 系统自动生成 + _paramUploadTokenRequest *UploadTokenRequestV +} + +// 初始化TaobaoMtopUploadTokenGetAPIRequest对象 +func NewTaobaoMtopUploadTokenGetRequest() *TaobaoMtopUploadTokenGetAPIRequest{ + return &TaobaoMtopUploadTokenGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMtopUploadTokenGetAPIRequest) GetApiMethodName() string { + return "taobao.mtop.upload.token.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMtopUploadTokenGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamUploadTokenRequest Setter +// 系统自动生成 +func (r *TaobaoMtopUploadTokenGetAPIRequest) SetParamUploadTokenRequest(_paramUploadTokenRequest *UploadTokenRequestV) error { + r._paramUploadTokenRequest = _paramUploadTokenRequest + r.Set("param_upload_token_request", _paramUploadTokenRequest) + return nil +} + +// ParamUploadTokenRequest Getter +func (r TaobaoMtopUploadTokenGetAPIRequest) GetParamUploadTokenRequest() *UploadTokenRequestV { + return r._paramUploadTokenRequest +} diff --git a/model/mtop/TaobaoMtopUploadTokenGetAPIResponse.go b/model/mtop/TaobaoMtopUploadTokenGetAPIResponse.go new file mode 100644 index 0000000000..d28796d11e --- /dev/null +++ b/model/mtop/TaobaoMtopUploadTokenGetAPIResponse.go @@ -0,0 +1,39 @@ +package mtop + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取文件上传授权 API返回值 +taobao.mtop.upload.token.get + +获取mtop文件上传授权 +*/ +type TaobaoMtopUploadTokenGetAPIResponse struct { + model.CommonResponse + TaobaoMtopUploadTokenGetAPIResponseModel +} + +// 获取文件上传授权 成功返回结果 +type TaobaoMtopUploadTokenGetAPIResponseModel struct { + XMLName xml.Name `xml:"mtop_upload_token_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // msg + Message string `json:"message,omitempty" xml:"message,omitempty"` + // code + Code string `json:"code,omitempty" xml:"code,omitempty"` + // 单次上传文件块最大大小,单位 byte + MaxBodyLength int64 `json:"max_body_length,omitempty" xml:"max_body_length,omitempty"` + // 单个文件重试上传次数 + MaxRetryTimes int64 `json:"max_retry_times,omitempty" xml:"max_retry_times,omitempty"` + // 本次指定的上传文件服务器地址 + ServerAddress string `json:"server_address,omitempty" xml:"server_address,omitempty"` + // token失效时间点 + Timeout int64 `json:"timeout,omitempty" xml:"timeout,omitempty"` + // 颁发的上传令牌 + Token string `json:"token,omitempty" xml:"token,omitempty"` +} diff --git a/model/mtop/TaobaoMtopUploadTokenGetResponse.go b/model/mtop/TaobaoMtopUploadTokenGetResponse.go deleted file mode 100644 index 27e0e673c9..0000000000 --- a/model/mtop/TaobaoMtopUploadTokenGetResponse.go +++ /dev/null @@ -1,39 +0,0 @@ -package mtop - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取文件上传授权 API返回值 -taobao.mtop.upload.token.get - -获取mtop文件上传授权 -*/ -type TaobaoMtopUploadTokenGetAPIResponse struct { - model.CommonResponse - TaobaoMtopUploadTokenGetResponse -} - -// 获取文件上传授权 成功返回结果 -type TaobaoMtopUploadTokenGetResponse struct { - XMLName xml.Name `xml:"mtop_upload_token_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // msg - Message string `json:"message,omitempty" xml:"message,omitempty"` - // code - Code string `json:"code,omitempty" xml:"code,omitempty"` - // 单次上传文件块最大大小,单位 byte - MaxBodyLength int64 `json:"max_body_length,omitempty" xml:"max_body_length,omitempty"` - // 单个文件重试上传次数 - MaxRetryTimes int64 `json:"max_retry_times,omitempty" xml:"max_retry_times,omitempty"` - // 本次指定的上传文件服务器地址 - ServerAddress string `json:"server_address,omitempty" xml:"server_address,omitempty"` - // token失效时间点 - Timeout int64 `json:"timeout,omitempty" xml:"timeout,omitempty"` - // 颁发的上传令牌 - Token string `json:"token,omitempty" xml:"token,omitempty"` -} diff --git a/model/mtopopen/AlibabaInteractAllsparkisvDrawAPIRequest.go b/model/mtopopen/AlibabaInteractAllsparkisvDrawAPIRequest.go new file mode 100644 index 0000000000..d9246cd239 --- /dev/null +++ b/model/mtopopen/AlibabaInteractAllsparkisvDrawAPIRequest.go @@ -0,0 +1,66 @@ +package mtopopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +allspark提供抽奖tida接口对应鉴权接口 API请求 +alibaba.interact.allsparkisv.draw + +该接口没有实际对外使用。只是内部鉴权使用,不会有三方应用调用 +*/ +type AlibabaInteractAllsparkisvDrawAPIRequest struct { + model.Params + // ddd + _test string + // dd + _ddd string +} + +// 初始化AlibabaInteractAllsparkisvDrawAPIRequest对象 +func NewAlibabaInteractAllsparkisvDrawRequest() *AlibabaInteractAllsparkisvDrawAPIRequest{ + return &AlibabaInteractAllsparkisvDrawAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractAllsparkisvDrawAPIRequest) GetApiMethodName() string { + return "alibaba.interact.allsparkisv.draw" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractAllsparkisvDrawAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Test Setter +// ddd +func (r *AlibabaInteractAllsparkisvDrawAPIRequest) SetTest(_test string) error { + r._test = _test + r.Set("test", _test) + return nil +} + +// Test Getter +func (r AlibabaInteractAllsparkisvDrawAPIRequest) GetTest() string { + return r._test +} +// Ddd Setter +// dd +func (r *AlibabaInteractAllsparkisvDrawAPIRequest) SetDdd(_ddd string) error { + r._ddd = _ddd + r.Set("ddd", _ddd) + return nil +} + +// Ddd Getter +func (r AlibabaInteractAllsparkisvDrawAPIRequest) GetDdd() string { + return r._ddd +} diff --git a/model/mtopopen/AlibabaInteractAllsparkisvDrawAPIResponse.go b/model/mtopopen/AlibabaInteractAllsparkisvDrawAPIResponse.go new file mode 100644 index 0000000000..47d3a80c78 --- /dev/null +++ b/model/mtopopen/AlibabaInteractAllsparkisvDrawAPIResponse.go @@ -0,0 +1,27 @@ +package mtopopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +allspark提供抽奖tida接口对应鉴权接口 API返回值 +alibaba.interact.allsparkisv.draw + +该接口没有实际对外使用。只是内部鉴权使用,不会有三方应用调用 +*/ +type AlibabaInteractAllsparkisvDrawAPIResponse struct { + model.CommonResponse + AlibabaInteractAllsparkisvDrawAPIResponseModel +} + +// allspark提供抽奖tida接口对应鉴权接口 成功返回结果 +type AlibabaInteractAllsparkisvDrawAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_allsparkisv_draw_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ddd + Ddd string `json:"ddd,omitempty" xml:"ddd,omitempty"` +} diff --git a/model/mtopopen/AlibabaInteractAllsparkisvDrawResponse.go b/model/mtopopen/AlibabaInteractAllsparkisvDrawResponse.go deleted file mode 100644 index 2681a7613f..0000000000 --- a/model/mtopopen/AlibabaInteractAllsparkisvDrawResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mtopopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -allspark提供抽奖tida接口对应鉴权接口 API返回值 -alibaba.interact.allsparkisv.draw - -该接口没有实际对外使用。只是内部鉴权使用,不会有三方应用调用 -*/ -type AlibabaInteractAllsparkisvDrawAPIResponse struct { - model.CommonResponse - AlibabaInteractAllsparkisvDrawResponse -} - -// allspark提供抽奖tida接口对应鉴权接口 成功返回结果 -type AlibabaInteractAllsparkisvDrawResponse struct { - XMLName xml.Name `xml:"alibaba_interact_allsparkisv_draw_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ddd - Ddd string `json:"ddd,omitempty" xml:"ddd,omitempty"` -} diff --git a/model/mtopopen/AlibabaInteractAopdataRegisterAPIRequest.go b/model/mtopopen/AlibabaInteractAopdataRegisterAPIRequest.go new file mode 100644 index 0000000000..5b42c138e5 --- /dev/null +++ b/model/mtopopen/AlibabaInteractAopdataRegisterAPIRequest.go @@ -0,0 +1,52 @@ +package mtopopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +资源位数据推送接口 API请求 +alibaba.interact.aopdata.register + +提供给isv,查询以及推送浮层资源位的三方活动数据 +*/ +type AlibabaInteractAopdataRegisterAPIRequest struct { + model.Params + // 入参 + _paramTopIsvDecorateParam *TopIsvDecorateParam +} + +// 初始化AlibabaInteractAopdataRegisterAPIRequest对象 +func NewAlibabaInteractAopdataRegisterRequest() *AlibabaInteractAopdataRegisterAPIRequest{ + return &AlibabaInteractAopdataRegisterAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractAopdataRegisterAPIRequest) GetApiMethodName() string { + return "alibaba.interact.aopdata.register" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractAopdataRegisterAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamTopIsvDecorateParam Setter +// 入参 +func (r *AlibabaInteractAopdataRegisterAPIRequest) SetParamTopIsvDecorateParam(_paramTopIsvDecorateParam *TopIsvDecorateParam) error { + r._paramTopIsvDecorateParam = _paramTopIsvDecorateParam + r.Set("param_top_isv_decorate_param", _paramTopIsvDecorateParam) + return nil +} + +// ParamTopIsvDecorateParam Getter +func (r AlibabaInteractAopdataRegisterAPIRequest) GetParamTopIsvDecorateParam() *TopIsvDecorateParam { + return r._paramTopIsvDecorateParam +} diff --git a/model/mtopopen/AlibabaInteractAopdataRegisterAPIResponse.go b/model/mtopopen/AlibabaInteractAopdataRegisterAPIResponse.go new file mode 100644 index 0000000000..6610b1e3a0 --- /dev/null +++ b/model/mtopopen/AlibabaInteractAopdataRegisterAPIResponse.go @@ -0,0 +1,27 @@ +package mtopopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +资源位数据推送接口 API返回值 +alibaba.interact.aopdata.register + +提供给isv,查询以及推送浮层资源位的三方活动数据 +*/ +type AlibabaInteractAopdataRegisterAPIResponse struct { + model.CommonResponse + AlibabaInteractAopdataRegisterAPIResponseModel +} + +// 资源位数据推送接口 成功返回结果 +type AlibabaInteractAopdataRegisterAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_aopdata_register_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaInteractAopdataRegisterResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mtopopen/AlibabaInteractAopdataRegisterResponse.go b/model/mtopopen/AlibabaInteractAopdataRegisterResponse.go deleted file mode 100644 index ca57906e29..0000000000 --- a/model/mtopopen/AlibabaInteractAopdataRegisterResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mtopopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -资源位数据推送接口 API返回值 -alibaba.interact.aopdata.register - -提供给isv,查询以及推送浮层资源位的三方活动数据 -*/ -type AlibabaInteractAopdataRegisterAPIResponse struct { - model.CommonResponse - AlibabaInteractAopdataRegisterResponse -} - -// 资源位数据推送接口 成功返回结果 -type AlibabaInteractAopdataRegisterResponse struct { - XMLName xml.Name `xml:"alibaba_interact_aopdata_register_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaInteractAopdataRegisterResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mtopopen/AlibabaInteractLotteryactivityRegisterAPIRequest.go b/model/mtopopen/AlibabaInteractLotteryactivityRegisterAPIRequest.go new file mode 100644 index 0000000000..fe98c2a265 --- /dev/null +++ b/model/mtopopen/AlibabaInteractLotteryactivityRegisterAPIRequest.go @@ -0,0 +1,52 @@ +package mtopopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +回传抽奖相关参数 API请求 +alibaba.interact.lotteryactivity.register + +提供接口供三方应用将数据回传到平台 +*/ +type AlibabaInteractLotteryactivityRegisterAPIRequest struct { + model.Params + // 入参 + _paramTopUpdateActivityLotteryInfoParam *TopUpdateActivityLotteryInfoParam +} + +// 初始化AlibabaInteractLotteryactivityRegisterAPIRequest对象 +func NewAlibabaInteractLotteryactivityRegisterRequest() *AlibabaInteractLotteryactivityRegisterAPIRequest{ + return &AlibabaInteractLotteryactivityRegisterAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractLotteryactivityRegisterAPIRequest) GetApiMethodName() string { + return "alibaba.interact.lotteryactivity.register" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractLotteryactivityRegisterAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamTopUpdateActivityLotteryInfoParam Setter +// 入参 +func (r *AlibabaInteractLotteryactivityRegisterAPIRequest) SetParamTopUpdateActivityLotteryInfoParam(_paramTopUpdateActivityLotteryInfoParam *TopUpdateActivityLotteryInfoParam) error { + r._paramTopUpdateActivityLotteryInfoParam = _paramTopUpdateActivityLotteryInfoParam + r.Set("param_top_update_activity_lottery_info_param", _paramTopUpdateActivityLotteryInfoParam) + return nil +} + +// ParamTopUpdateActivityLotteryInfoParam Getter +func (r AlibabaInteractLotteryactivityRegisterAPIRequest) GetParamTopUpdateActivityLotteryInfoParam() *TopUpdateActivityLotteryInfoParam { + return r._paramTopUpdateActivityLotteryInfoParam +} diff --git a/model/mtopopen/AlibabaInteractLotteryactivityRegisterAPIResponse.go b/model/mtopopen/AlibabaInteractLotteryactivityRegisterAPIResponse.go new file mode 100644 index 0000000000..8ad741bd73 --- /dev/null +++ b/model/mtopopen/AlibabaInteractLotteryactivityRegisterAPIResponse.go @@ -0,0 +1,27 @@ +package mtopopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +回传抽奖相关参数 API返回值 +alibaba.interact.lotteryactivity.register + +提供接口供三方应用将数据回传到平台 +*/ +type AlibabaInteractLotteryactivityRegisterAPIResponse struct { + model.CommonResponse + AlibabaInteractLotteryactivityRegisterAPIResponseModel +} + +// 回传抽奖相关参数 成功返回结果 +type AlibabaInteractLotteryactivityRegisterAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_lotteryactivity_register_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaInteractLotteryactivityRegisterResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mtopopen/AlibabaInteractLotteryactivityRegisterResponse.go b/model/mtopopen/AlibabaInteractLotteryactivityRegisterResponse.go deleted file mode 100644 index 9d74bffe0e..0000000000 --- a/model/mtopopen/AlibabaInteractLotteryactivityRegisterResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mtopopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -回传抽奖相关参数 API返回值 -alibaba.interact.lotteryactivity.register - -提供接口供三方应用将数据回传到平台 -*/ -type AlibabaInteractLotteryactivityRegisterAPIResponse struct { - model.CommonResponse - AlibabaInteractLotteryactivityRegisterResponse -} - -// 回传抽奖相关参数 成功返回结果 -type AlibabaInteractLotteryactivityRegisterResponse struct { - XMLName xml.Name `xml:"alibaba_interact_lotteryactivity_register_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaInteractLotteryactivityRegisterResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mtopopen/AlibabaInteractMediaArtworkAPIRequest.go b/model/mtopopen/AlibabaInteractMediaArtworkAPIRequest.go new file mode 100644 index 0000000000..06d200fee6 --- /dev/null +++ b/model/mtopopen/AlibabaInteractMediaArtworkAPIRequest.go @@ -0,0 +1,52 @@ +package mtopopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +原图相关鉴权接口 API请求 +alibaba.interact.media.artwork + +拍摄并上传原图相关鉴权接口 +*/ +type AlibabaInteractMediaArtworkAPIRequest struct { + model.Params + // 系统自动生成 + _id string +} + +// 初始化AlibabaInteractMediaArtworkAPIRequest对象 +func NewAlibabaInteractMediaArtworkRequest() *AlibabaInteractMediaArtworkAPIRequest{ + return &AlibabaInteractMediaArtworkAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractMediaArtworkAPIRequest) GetApiMethodName() string { + return "alibaba.interact.media.artwork" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractMediaArtworkAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 系统自动生成 +func (r *AlibabaInteractMediaArtworkAPIRequest) SetId(_id string) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaInteractMediaArtworkAPIRequest) GetId() string { + return r._id +} diff --git a/model/mtopopen/AlibabaInteractMediaArtworkAPIResponse.go b/model/mtopopen/AlibabaInteractMediaArtworkAPIResponse.go new file mode 100644 index 0000000000..ae095c0b06 --- /dev/null +++ b/model/mtopopen/AlibabaInteractMediaArtworkAPIResponse.go @@ -0,0 +1,25 @@ +package mtopopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +原图相关鉴权接口 API返回值 +alibaba.interact.media.artwork + +拍摄并上传原图相关鉴权接口 +*/ +type AlibabaInteractMediaArtworkAPIResponse struct { + model.CommonResponse + AlibabaInteractMediaArtworkAPIResponseModel +} + +// 原图相关鉴权接口 成功返回结果 +type AlibabaInteractMediaArtworkAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_media_artwork_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` +} diff --git a/model/mtopopen/AlibabaInteractMediaArtworkResponse.go b/model/mtopopen/AlibabaInteractMediaArtworkResponse.go deleted file mode 100644 index 0c75476e47..0000000000 --- a/model/mtopopen/AlibabaInteractMediaArtworkResponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package mtopopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -原图相关鉴权接口 API返回值 -alibaba.interact.media.artwork - -拍摄并上传原图相关鉴权接口 -*/ -type AlibabaInteractMediaArtworkAPIResponse struct { - model.CommonResponse - AlibabaInteractMediaArtworkResponse -} - -// 原图相关鉴权接口 成功返回结果 -type AlibabaInteractMediaArtworkResponse struct { - XMLName xml.Name `xml:"alibaba_interact_media_artwork_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` -} diff --git a/model/mtopopen/AlibabaInteractMediaAudioAPIRequest.go b/model/mtopopen/AlibabaInteractMediaAudioAPIRequest.go new file mode 100644 index 0000000000..077f8d0f50 --- /dev/null +++ b/model/mtopopen/AlibabaInteractMediaAudioAPIRequest.go @@ -0,0 +1,52 @@ +package mtopopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +音频相关鉴权接口 API请求 +alibaba.interact.media.audio + +新音频包的鉴权接口 +*/ +type AlibabaInteractMediaAudioAPIRequest struct { + model.Params + // 系统自动生成 + _id string +} + +// 初始化AlibabaInteractMediaAudioAPIRequest对象 +func NewAlibabaInteractMediaAudioRequest() *AlibabaInteractMediaAudioAPIRequest{ + return &AlibabaInteractMediaAudioAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractMediaAudioAPIRequest) GetApiMethodName() string { + return "alibaba.interact.media.audio" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractMediaAudioAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 系统自动生成 +func (r *AlibabaInteractMediaAudioAPIRequest) SetId(_id string) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaInteractMediaAudioAPIRequest) GetId() string { + return r._id +} diff --git a/model/mtopopen/AlibabaInteractMediaAudioAPIResponse.go b/model/mtopopen/AlibabaInteractMediaAudioAPIResponse.go new file mode 100644 index 0000000000..7d9d7f92be --- /dev/null +++ b/model/mtopopen/AlibabaInteractMediaAudioAPIResponse.go @@ -0,0 +1,25 @@ +package mtopopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +音频相关鉴权接口 API返回值 +alibaba.interact.media.audio + +新音频包的鉴权接口 +*/ +type AlibabaInteractMediaAudioAPIResponse struct { + model.CommonResponse + AlibabaInteractMediaAudioAPIResponseModel +} + +// 音频相关鉴权接口 成功返回结果 +type AlibabaInteractMediaAudioAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_media_audio_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` +} diff --git a/model/mtopopen/AlibabaInteractMediaAudioResponse.go b/model/mtopopen/AlibabaInteractMediaAudioResponse.go deleted file mode 100644 index 38c3aab699..0000000000 --- a/model/mtopopen/AlibabaInteractMediaAudioResponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package mtopopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -音频相关鉴权接口 API返回值 -alibaba.interact.media.audio - -新音频包的鉴权接口 -*/ -type AlibabaInteractMediaAudioAPIResponse struct { - model.CommonResponse - AlibabaInteractMediaAudioResponse -} - -// 音频相关鉴权接口 成功返回结果 -type AlibabaInteractMediaAudioResponse struct { - XMLName xml.Name `xml:"alibaba_interact_media_audio_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` -} diff --git a/model/mtopopen/AlibabaInteractSensorSocialAPIRequest.go b/model/mtopopen/AlibabaInteractSensorSocialAPIRequest.go new file mode 100644 index 0000000000..76429d1465 --- /dev/null +++ b/model/mtopopen/AlibabaInteractSensorSocialAPIRequest.go @@ -0,0 +1,52 @@ +package mtopopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +社交组件 API请求 +alibaba.interact.sensor.social + +赞,评论 ,关注 新增接口 +*/ +type AlibabaInteractSensorSocialAPIRequest struct { + model.Params + // 系统自动生成 + _id string +} + +// 初始化AlibabaInteractSensorSocialAPIRequest对象 +func NewAlibabaInteractSensorSocialRequest() *AlibabaInteractSensorSocialAPIRequest{ + return &AlibabaInteractSensorSocialAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorSocialAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.social" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorSocialAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 系统自动生成 +func (r *AlibabaInteractSensorSocialAPIRequest) SetId(_id string) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaInteractSensorSocialAPIRequest) GetId() string { + return r._id +} diff --git a/model/mtopopen/AlibabaInteractSensorSocialAPIResponse.go b/model/mtopopen/AlibabaInteractSensorSocialAPIResponse.go new file mode 100644 index 0000000000..ece3aafff0 --- /dev/null +++ b/model/mtopopen/AlibabaInteractSensorSocialAPIResponse.go @@ -0,0 +1,27 @@ +package mtopopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +社交组件 API返回值 +alibaba.interact.sensor.social + +赞,评论 ,关注 新增接口 +*/ +type AlibabaInteractSensorSocialAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorSocialAPIResponseModel +} + +// 社交组件 成功返回结果 +type AlibabaInteractSensorSocialAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_social_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result=1 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mtopopen/AlibabaInteractSensorSocialResponse.go b/model/mtopopen/AlibabaInteractSensorSocialResponse.go deleted file mode 100644 index c41da61c7c..0000000000 --- a/model/mtopopen/AlibabaInteractSensorSocialResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mtopopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -社交组件 API返回值 -alibaba.interact.sensor.social - -赞,评论 ,关注 新增接口 -*/ -type AlibabaInteractSensorSocialAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorSocialResponse -} - -// 社交组件 成功返回结果 -type AlibabaInteractSensorSocialResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_social_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result=1 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mtopopen/AlibabaInteractSensorTradeAPIRequest.go b/model/mtopopen/AlibabaInteractSensorTradeAPIRequest.go new file mode 100644 index 0000000000..a4cd4a7593 --- /dev/null +++ b/model/mtopopen/AlibabaInteractSensorTradeAPIRequest.go @@ -0,0 +1,52 @@ +package mtopopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +交易组件 API请求 +alibaba.interact.sensor.trade + +交易流程 +*/ +type AlibabaInteractSensorTradeAPIRequest struct { + model.Params + // 系统自动生成 + _id string +} + +// 初始化AlibabaInteractSensorTradeAPIRequest对象 +func NewAlibabaInteractSensorTradeRequest() *AlibabaInteractSensorTradeAPIRequest{ + return &AlibabaInteractSensorTradeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorTradeAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.trade" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorTradeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 系统自动生成 +func (r *AlibabaInteractSensorTradeAPIRequest) SetId(_id string) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaInteractSensorTradeAPIRequest) GetId() string { + return r._id +} diff --git a/model/mtopopen/AlibabaInteractSensorTradeAPIResponse.go b/model/mtopopen/AlibabaInteractSensorTradeAPIResponse.go new file mode 100644 index 0000000000..8c113b3816 --- /dev/null +++ b/model/mtopopen/AlibabaInteractSensorTradeAPIResponse.go @@ -0,0 +1,27 @@ +package mtopopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +交易组件 API返回值 +alibaba.interact.sensor.trade + +交易流程 +*/ +type AlibabaInteractSensorTradeAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorTradeAPIResponseModel +} + +// 交易组件 成功返回结果 +type AlibabaInteractSensorTradeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_trade_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result=1 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mtopopen/AlibabaInteractSensorTradeBuyAPIRequest.go b/model/mtopopen/AlibabaInteractSensorTradeBuyAPIRequest.go new file mode 100644 index 0000000000..19f7b2f016 --- /dev/null +++ b/model/mtopopen/AlibabaInteractSensorTradeBuyAPIRequest.go @@ -0,0 +1,52 @@ +package mtopopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +手淘下单能力开放 API请求 +alibaba.interact.sensor.trade.buy + +交易流程鉴权 +*/ +type AlibabaInteractSensorTradeBuyAPIRequest struct { + model.Params + // 系统自动生成 + _id string +} + +// 初始化AlibabaInteractSensorTradeBuyAPIRequest对象 +func NewAlibabaInteractSensorTradeBuyRequest() *AlibabaInteractSensorTradeBuyAPIRequest{ + return &AlibabaInteractSensorTradeBuyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorTradeBuyAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.trade.buy" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorTradeBuyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 系统自动生成 +func (r *AlibabaInteractSensorTradeBuyAPIRequest) SetId(_id string) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaInteractSensorTradeBuyAPIRequest) GetId() string { + return r._id +} diff --git a/model/mtopopen/AlibabaInteractSensorTradeBuyAPIResponse.go b/model/mtopopen/AlibabaInteractSensorTradeBuyAPIResponse.go new file mode 100644 index 0000000000..066dcf7af6 --- /dev/null +++ b/model/mtopopen/AlibabaInteractSensorTradeBuyAPIResponse.go @@ -0,0 +1,25 @@ +package mtopopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +手淘下单能力开放 API返回值 +alibaba.interact.sensor.trade.buy + +交易流程鉴权 +*/ +type AlibabaInteractSensorTradeBuyAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorTradeBuyAPIResponseModel +} + +// 手淘下单能力开放 成功返回结果 +type AlibabaInteractSensorTradeBuyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_trade_buy_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` +} diff --git a/model/mtopopen/AlibabaInteractSensorTradeBuyResponse.go b/model/mtopopen/AlibabaInteractSensorTradeBuyResponse.go deleted file mode 100644 index 03c411c1b5..0000000000 --- a/model/mtopopen/AlibabaInteractSensorTradeBuyResponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package mtopopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -手淘下单能力开放 API返回值 -alibaba.interact.sensor.trade.buy - -交易流程鉴权 -*/ -type AlibabaInteractSensorTradeBuyAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorTradeBuyResponse -} - -// 手淘下单能力开放 成功返回结果 -type AlibabaInteractSensorTradeBuyResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_trade_buy_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` -} diff --git a/model/mtopopen/AlibabaInteractSensorTradeResponse.go b/model/mtopopen/AlibabaInteractSensorTradeResponse.go deleted file mode 100644 index 50734148d7..0000000000 --- a/model/mtopopen/AlibabaInteractSensorTradeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mtopopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -交易组件 API返回值 -alibaba.interact.sensor.trade - -交易流程 -*/ -type AlibabaInteractSensorTradeAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorTradeResponse -} - -// 交易组件 成功返回结果 -type AlibabaInteractSensorTradeResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_trade_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result=1 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mtopopen/TaobaoOauthCodeCreateAPIRequest.go b/model/mtopopen/TaobaoOauthCodeCreateAPIRequest.go new file mode 100644 index 0000000000..12116e4755 --- /dev/null +++ b/model/mtopopen/TaobaoOauthCodeCreateAPIRequest.go @@ -0,0 +1,52 @@ +package mtopopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝OauthCode颁发 API请求 +taobao.oauth.code.create + +手淘无线开放的oauthCode颁发接口 +*/ +type TaobaoOauthCodeCreateAPIRequest struct { + model.Params + // mock param + _test int64 +} + +// 初始化TaobaoOauthCodeCreateAPIRequest对象 +func NewTaobaoOauthCodeCreateRequest() *TaobaoOauthCodeCreateAPIRequest{ + return &TaobaoOauthCodeCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOauthCodeCreateAPIRequest) GetApiMethodName() string { + return "taobao.oauth.code.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOauthCodeCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Test Setter +// mock param +func (r *TaobaoOauthCodeCreateAPIRequest) SetTest(_test int64) error { + r._test = _test + r.Set("test", _test) + return nil +} + +// Test Getter +func (r TaobaoOauthCodeCreateAPIRequest) GetTest() int64 { + return r._test +} diff --git a/model/mtopopen/TaobaoOauthCodeCreateAPIResponse.go b/model/mtopopen/TaobaoOauthCodeCreateAPIResponse.go new file mode 100644 index 0000000000..94869d828b --- /dev/null +++ b/model/mtopopen/TaobaoOauthCodeCreateAPIResponse.go @@ -0,0 +1,27 @@ +package mtopopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝OauthCode颁发 API返回值 +taobao.oauth.code.create + +手淘无线开放的oauthCode颁发接口 +*/ +type TaobaoOauthCodeCreateAPIResponse struct { + model.CommonResponse + TaobaoOauthCodeCreateAPIResponseModel +} + +// 淘宝OauthCode颁发 成功返回结果 +type TaobaoOauthCodeCreateAPIResponseModel struct { + XMLName xml.Name `xml:"oauth_code_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // mock out params + Test int64 `json:"test,omitempty" xml:"test,omitempty"` +} diff --git a/model/mtopopen/TaobaoOauthCodeCreateResponse.go b/model/mtopopen/TaobaoOauthCodeCreateResponse.go deleted file mode 100644 index 1d5dc85d62..0000000000 --- a/model/mtopopen/TaobaoOauthCodeCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mtopopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝OauthCode颁发 API返回值 -taobao.oauth.code.create - -手淘无线开放的oauthCode颁发接口 -*/ -type TaobaoOauthCodeCreateAPIResponse struct { - model.CommonResponse - TaobaoOauthCodeCreateResponse -} - -// 淘宝OauthCode颁发 成功返回结果 -type TaobaoOauthCodeCreateResponse struct { - XMLName xml.Name `xml:"oauth_code_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // mock out params - Test int64 `json:"test,omitempty" xml:"test,omitempty"` -} diff --git a/model/mtopopen/TaobaoWeitaoFeedIsrelationAPIRequest.go b/model/mtopopen/TaobaoWeitaoFeedIsrelationAPIRequest.go new file mode 100644 index 0000000000..eb3573830c --- /dev/null +++ b/model/mtopopen/TaobaoWeitaoFeedIsrelationAPIRequest.go @@ -0,0 +1,66 @@ +package mtopopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +是否关注 API请求 +taobao.weitao.feed.isrelation + +判断用户是否关注对应的公共账号 +*/ +type TaobaoWeitaoFeedIsrelationAPIRequest struct { + model.Params + // 要查询的粉丝的淘宝昵称 + _fansNick string + // 要查询的公共账号的淘宝昵称 + _sellerNick string +} + +// 初始化TaobaoWeitaoFeedIsrelationAPIRequest对象 +func NewTaobaoWeitaoFeedIsrelationRequest() *TaobaoWeitaoFeedIsrelationAPIRequest{ + return &TaobaoWeitaoFeedIsrelationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWeitaoFeedIsrelationAPIRequest) GetApiMethodName() string { + return "taobao.weitao.feed.isrelation" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWeitaoFeedIsrelationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FansNick Setter +// 要查询的粉丝的淘宝昵称 +func (r *TaobaoWeitaoFeedIsrelationAPIRequest) SetFansNick(_fansNick string) error { + r._fansNick = _fansNick + r.Set("fans_nick", _fansNick) + return nil +} + +// FansNick Getter +func (r TaobaoWeitaoFeedIsrelationAPIRequest) GetFansNick() string { + return r._fansNick +} +// SellerNick Setter +// 要查询的公共账号的淘宝昵称 +func (r *TaobaoWeitaoFeedIsrelationAPIRequest) SetSellerNick(_sellerNick string) error { + r._sellerNick = _sellerNick + r.Set("seller_nick", _sellerNick) + return nil +} + +// SellerNick Getter +func (r TaobaoWeitaoFeedIsrelationAPIRequest) GetSellerNick() string { + return r._sellerNick +} diff --git a/model/mtopopen/TaobaoWeitaoFeedIsrelationAPIResponse.go b/model/mtopopen/TaobaoWeitaoFeedIsrelationAPIResponse.go new file mode 100644 index 0000000000..0e9a18cae3 --- /dev/null +++ b/model/mtopopen/TaobaoWeitaoFeedIsrelationAPIResponse.go @@ -0,0 +1,27 @@ +package mtopopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +是否关注 API返回值 +taobao.weitao.feed.isrelation + +判断用户是否关注对应的公共账号 +*/ +type TaobaoWeitaoFeedIsrelationAPIResponse struct { + model.CommonResponse + TaobaoWeitaoFeedIsrelationAPIResponseModel +} + +// 是否关注 成功返回结果 +type TaobaoWeitaoFeedIsrelationAPIResponseModel struct { + XMLName xml.Name `xml:"weitao_feed_isrelation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否关注 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mtopopen/TaobaoWeitaoFeedIsrelationResponse.go b/model/mtopopen/TaobaoWeitaoFeedIsrelationResponse.go deleted file mode 100644 index ce1b950b0d..0000000000 --- a/model/mtopopen/TaobaoWeitaoFeedIsrelationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mtopopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -是否关注 API返回值 -taobao.weitao.feed.isrelation - -判断用户是否关注对应的公共账号 -*/ -type TaobaoWeitaoFeedIsrelationAPIResponse struct { - model.CommonResponse - TaobaoWeitaoFeedIsrelationResponse -} - -// 是否关注 成功返回结果 -type TaobaoWeitaoFeedIsrelationResponse struct { - XMLName xml.Name `xml:"weitao_feed_isrelation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否关注 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mtopopen/TaobaoWirelessBuntingShopShorturlCreateAPIRequest.go b/model/mtopopen/TaobaoWirelessBuntingShopShorturlCreateAPIRequest.go new file mode 100644 index 0000000000..1082403f07 --- /dev/null +++ b/model/mtopopen/TaobaoWirelessBuntingShopShorturlCreateAPIRequest.go @@ -0,0 +1,52 @@ +package mtopopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过店铺id取得短链 API请求 +taobao.wireless.bunting.shop.shorturl.create + +通过店铺id取得短链 +*/ +type TaobaoWirelessBuntingShopShorturlCreateAPIRequest struct { + model.Params + // 商店id + _shopId string +} + +// 初始化TaobaoWirelessBuntingShopShorturlCreateAPIRequest对象 +func NewTaobaoWirelessBuntingShopShorturlCreateRequest() *TaobaoWirelessBuntingShopShorturlCreateAPIRequest{ + return &TaobaoWirelessBuntingShopShorturlCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWirelessBuntingShopShorturlCreateAPIRequest) GetApiMethodName() string { + return "taobao.wireless.bunting.shop.shorturl.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWirelessBuntingShopShorturlCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShopId Setter +// 商店id +func (r *TaobaoWirelessBuntingShopShorturlCreateAPIRequest) SetShopId(_shopId string) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r TaobaoWirelessBuntingShopShorturlCreateAPIRequest) GetShopId() string { + return r._shopId +} diff --git a/model/mtopopen/TaobaoWirelessBuntingShopShorturlCreateAPIResponse.go b/model/mtopopen/TaobaoWirelessBuntingShopShorturlCreateAPIResponse.go new file mode 100644 index 0000000000..5bf26386d7 --- /dev/null +++ b/model/mtopopen/TaobaoWirelessBuntingShopShorturlCreateAPIResponse.go @@ -0,0 +1,27 @@ +package mtopopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过店铺id取得短链 API返回值 +taobao.wireless.bunting.shop.shorturl.create + +通过店铺id取得短链 +*/ +type TaobaoWirelessBuntingShopShorturlCreateAPIResponse struct { + model.CommonResponse + TaobaoWirelessBuntingShopShorturlCreateAPIResponseModel +} + +// 通过店铺id取得短链 成功返回结果 +type TaobaoWirelessBuntingShopShorturlCreateAPIResponseModel struct { + XMLName xml.Name `xml:"wireless_bunting_shop_shorturl_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 短链 + Shorturl string `json:"shorturl,omitempty" xml:"shorturl,omitempty"` +} diff --git a/model/mtopopen/TaobaoWirelessBuntingShopShorturlCreateResponse.go b/model/mtopopen/TaobaoWirelessBuntingShopShorturlCreateResponse.go deleted file mode 100644 index 6517968e01..0000000000 --- a/model/mtopopen/TaobaoWirelessBuntingShopShorturlCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mtopopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过店铺id取得短链 API返回值 -taobao.wireless.bunting.shop.shorturl.create - -通过店铺id取得短链 -*/ -type TaobaoWirelessBuntingShopShorturlCreateAPIResponse struct { - model.CommonResponse - TaobaoWirelessBuntingShopShorturlCreateResponse -} - -// 通过店铺id取得短链 成功返回结果 -type TaobaoWirelessBuntingShopShorturlCreateResponse struct { - XMLName xml.Name `xml:"wireless_bunting_shop_shorturl_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 短链 - Shorturl string `json:"shorturl,omitempty" xml:"shorturl,omitempty"` -} diff --git a/model/mydata/AlibabaMydataOverviewDateGetAPIRequest.go b/model/mydata/AlibabaMydataOverviewDateGetAPIRequest.go new file mode 100644 index 0000000000..5f24fd59a2 --- /dev/null +++ b/model/mydata/AlibabaMydataOverviewDateGetAPIRequest.go @@ -0,0 +1,38 @@ +package mydata + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +我的效果-获取数据周期 API请求 +alibaba.mydata.overview.date.get + +获取数据管家我的效果API可以使用的数据周期 +*/ +type AlibabaMydataOverviewDateGetAPIRequest struct { + model.Params +} + +// 初始化AlibabaMydataOverviewDateGetAPIRequest对象 +func NewAlibabaMydataOverviewDateGetRequest() *AlibabaMydataOverviewDateGetAPIRequest{ + return &AlibabaMydataOverviewDateGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMydataOverviewDateGetAPIRequest) GetApiMethodName() string { + return "alibaba.mydata.overview.date.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMydataOverviewDateGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/mydata/AlibabaMydataOverviewDateGetAPIResponse.go b/model/mydata/AlibabaMydataOverviewDateGetAPIResponse.go new file mode 100644 index 0000000000..d8c8c8d088 --- /dev/null +++ b/model/mydata/AlibabaMydataOverviewDateGetAPIResponse.go @@ -0,0 +1,27 @@ +package mydata + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +我的效果-获取数据周期 API返回值 +alibaba.mydata.overview.date.get + +获取数据管家我的效果API可以使用的数据周期 +*/ +type AlibabaMydataOverviewDateGetAPIResponse struct { + model.CommonResponse + AlibabaMydataOverviewDateGetAPIResponseModel +} + +// 我的效果-获取数据周期 成功返回结果 +type AlibabaMydataOverviewDateGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mydata_overview_date_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 我的效果可选数据周期列表 + ResultList []DateRange `json:"result_list,omitempty" xml:"result_list>date_range,omitempty"` +} diff --git a/model/mydata/AlibabaMydataOverviewDateGetResponse.go b/model/mydata/AlibabaMydataOverviewDateGetResponse.go deleted file mode 100644 index 01a0550d7f..0000000000 --- a/model/mydata/AlibabaMydataOverviewDateGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mydata - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -我的效果-获取数据周期 API返回值 -alibaba.mydata.overview.date.get - -获取数据管家我的效果API可以使用的数据周期 -*/ -type AlibabaMydataOverviewDateGetAPIResponse struct { - model.CommonResponse - AlibabaMydataOverviewDateGetResponse -} - -// 我的效果-获取数据周期 成功返回结果 -type AlibabaMydataOverviewDateGetResponse struct { - XMLName xml.Name `xml:"alibaba_mydata_overview_date_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 我的效果可选数据周期列表 - ResultList []DateRange `json:"result_list,omitempty" xml:"result_list>date_range,omitempty"` -} diff --git a/model/mydata/AlibabaMydataOverviewIndicatorBasicGetAPIRequest.go b/model/mydata/AlibabaMydataOverviewIndicatorBasicGetAPIRequest.go new file mode 100644 index 0000000000..b2d846f24b --- /dev/null +++ b/model/mydata/AlibabaMydataOverviewIndicatorBasicGetAPIRequest.go @@ -0,0 +1,66 @@ +package mydata + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +我的效果-获取公司询盘流量行业表现 API请求 +alibaba.mydata.overview.indicator.basic.get + +获取公司询盘流量行业表现 +*/ +type AlibabaMydataOverviewIndicatorBasicGetAPIRequest struct { + model.Params + // 要查询的数据周期 + _dateRange *DateRange + // 要查询的行业信息 + _industry *Industry +} + +// 初始化AlibabaMydataOverviewIndicatorBasicGetAPIRequest对象 +func NewAlibabaMydataOverviewIndicatorBasicGetRequest() *AlibabaMydataOverviewIndicatorBasicGetAPIRequest{ + return &AlibabaMydataOverviewIndicatorBasicGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMydataOverviewIndicatorBasicGetAPIRequest) GetApiMethodName() string { + return "alibaba.mydata.overview.indicator.basic.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMydataOverviewIndicatorBasicGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DateRange Setter +// 要查询的数据周期 +func (r *AlibabaMydataOverviewIndicatorBasicGetAPIRequest) SetDateRange(_dateRange *DateRange) error { + r._dateRange = _dateRange + r.Set("date_range", _dateRange) + return nil +} + +// DateRange Getter +func (r AlibabaMydataOverviewIndicatorBasicGetAPIRequest) GetDateRange() *DateRange { + return r._dateRange +} +// Industry Setter +// 要查询的行业信息 +func (r *AlibabaMydataOverviewIndicatorBasicGetAPIRequest) SetIndustry(_industry *Industry) error { + r._industry = _industry + r.Set("industry", _industry) + return nil +} + +// Industry Getter +func (r AlibabaMydataOverviewIndicatorBasicGetAPIRequest) GetIndustry() *Industry { + return r._industry +} diff --git a/model/mydata/AlibabaMydataOverviewIndicatorBasicGetAPIResponse.go b/model/mydata/AlibabaMydataOverviewIndicatorBasicGetAPIResponse.go new file mode 100644 index 0000000000..56999983e6 --- /dev/null +++ b/model/mydata/AlibabaMydataOverviewIndicatorBasicGetAPIResponse.go @@ -0,0 +1,27 @@ +package mydata + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +我的效果-获取公司询盘流量行业表现 API返回值 +alibaba.mydata.overview.indicator.basic.get + +获取公司询盘流量行业表现 +*/ +type AlibabaMydataOverviewIndicatorBasicGetAPIResponse struct { + model.CommonResponse + AlibabaMydataOverviewIndicatorBasicGetAPIResponseModel +} + +// 我的效果-获取公司询盘流量行业表现 成功返回结果 +type AlibabaMydataOverviewIndicatorBasicGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mydata_overview_indicator_basic_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 公司询盘流量指标 + Result *CompanyIndicators `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mydata/AlibabaMydataOverviewIndicatorBasicGetResponse.go b/model/mydata/AlibabaMydataOverviewIndicatorBasicGetResponse.go deleted file mode 100644 index 72a4cd9848..0000000000 --- a/model/mydata/AlibabaMydataOverviewIndicatorBasicGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mydata - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -我的效果-获取公司询盘流量行业表现 API返回值 -alibaba.mydata.overview.indicator.basic.get - -获取公司询盘流量行业表现 -*/ -type AlibabaMydataOverviewIndicatorBasicGetAPIResponse struct { - model.CommonResponse - AlibabaMydataOverviewIndicatorBasicGetResponse -} - -// 我的效果-获取公司询盘流量行业表现 成功返回结果 -type AlibabaMydataOverviewIndicatorBasicGetResponse struct { - XMLName xml.Name `xml:"alibaba_mydata_overview_indicator_basic_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 公司询盘流量指标 - Result *CompanyIndicators `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/mydata/AlibabaMydataOverviewIndustryGetAPIRequest.go b/model/mydata/AlibabaMydataOverviewIndustryGetAPIRequest.go new file mode 100644 index 0000000000..44cf39dcb2 --- /dev/null +++ b/model/mydata/AlibabaMydataOverviewIndustryGetAPIRequest.go @@ -0,0 +1,52 @@ +package mydata + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +我的效果-获取Top行业列表 API请求 +alibaba.mydata.overview.industry.get + +获取数据管家我的效果API可以使用的行业 +*/ +type AlibabaMydataOverviewIndustryGetAPIRequest struct { + model.Params + // 系统自动生成 + _dateRange *DateRange +} + +// 初始化AlibabaMydataOverviewIndustryGetAPIRequest对象 +func NewAlibabaMydataOverviewIndustryGetRequest() *AlibabaMydataOverviewIndustryGetAPIRequest{ + return &AlibabaMydataOverviewIndustryGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMydataOverviewIndustryGetAPIRequest) GetApiMethodName() string { + return "alibaba.mydata.overview.industry.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMydataOverviewIndustryGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DateRange Setter +// 系统自动生成 +func (r *AlibabaMydataOverviewIndustryGetAPIRequest) SetDateRange(_dateRange *DateRange) error { + r._dateRange = _dateRange + r.Set("date_range", _dateRange) + return nil +} + +// DateRange Getter +func (r AlibabaMydataOverviewIndustryGetAPIRequest) GetDateRange() *DateRange { + return r._dateRange +} diff --git a/model/mydata/AlibabaMydataOverviewIndustryGetAPIResponse.go b/model/mydata/AlibabaMydataOverviewIndustryGetAPIResponse.go new file mode 100644 index 0000000000..72d175d817 --- /dev/null +++ b/model/mydata/AlibabaMydataOverviewIndustryGetAPIResponse.go @@ -0,0 +1,27 @@ +package mydata + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +我的效果-获取Top行业列表 API返回值 +alibaba.mydata.overview.industry.get + +获取数据管家我的效果API可以使用的行业 +*/ +type AlibabaMydataOverviewIndustryGetAPIResponse struct { + model.CommonResponse + AlibabaMydataOverviewIndustryGetAPIResponseModel +} + +// 我的效果-获取Top行业列表 成功返回结果 +type AlibabaMydataOverviewIndustryGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mydata_overview_industry_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 供应商Top行业列表 + ResultList []Industry `json:"result_list,omitempty" xml:"result_list>industry,omitempty"` +} diff --git a/model/mydata/AlibabaMydataOverviewIndustryGetResponse.go b/model/mydata/AlibabaMydataOverviewIndustryGetResponse.go deleted file mode 100644 index 2602d0bc23..0000000000 --- a/model/mydata/AlibabaMydataOverviewIndustryGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mydata - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -我的效果-获取Top行业列表 API返回值 -alibaba.mydata.overview.industry.get - -获取数据管家我的效果API可以使用的行业 -*/ -type AlibabaMydataOverviewIndustryGetAPIResponse struct { - model.CommonResponse - AlibabaMydataOverviewIndustryGetResponse -} - -// 我的效果-获取Top行业列表 成功返回结果 -type AlibabaMydataOverviewIndustryGetResponse struct { - XMLName xml.Name `xml:"alibaba_mydata_overview_industry_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 供应商Top行业列表 - ResultList []Industry `json:"result_list,omitempty" xml:"result_list>industry,omitempty"` -} diff --git a/model/mydata/AlibabaMydataSelfProductDateGetAPIRequest.go b/model/mydata/AlibabaMydataSelfProductDateGetAPIRequest.go new file mode 100644 index 0000000000..083d005856 --- /dev/null +++ b/model/mydata/AlibabaMydataSelfProductDateGetAPIRequest.go @@ -0,0 +1,52 @@ +package mydata + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取客户产品相关表现数据的可用时间范围 API请求 +alibaba.mydata.self.product.date.get + +获取客户产品相关表现数据的可用时间范围 +*/ +type AlibabaMydataSelfProductDateGetAPIRequest struct { + model.Params + // 统计周期类型,可以为"day","week","month" + _statisticsType string +} + +// 初始化AlibabaMydataSelfProductDateGetAPIRequest对象 +func NewAlibabaMydataSelfProductDateGetRequest() *AlibabaMydataSelfProductDateGetAPIRequest{ + return &AlibabaMydataSelfProductDateGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMydataSelfProductDateGetAPIRequest) GetApiMethodName() string { + return "alibaba.mydata.self.product.date.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMydataSelfProductDateGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StatisticsType Setter +// 统计周期类型,可以为"day","week","month" +func (r *AlibabaMydataSelfProductDateGetAPIRequest) SetStatisticsType(_statisticsType string) error { + r._statisticsType = _statisticsType + r.Set("statistics_type", _statisticsType) + return nil +} + +// StatisticsType Getter +func (r AlibabaMydataSelfProductDateGetAPIRequest) GetStatisticsType() string { + return r._statisticsType +} diff --git a/model/mydata/AlibabaMydataSelfProductDateGetAPIResponse.go b/model/mydata/AlibabaMydataSelfProductDateGetAPIResponse.go new file mode 100644 index 0000000000..76de075634 --- /dev/null +++ b/model/mydata/AlibabaMydataSelfProductDateGetAPIResponse.go @@ -0,0 +1,29 @@ +package mydata + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取客户产品相关表现数据的可用时间范围 API返回值 +alibaba.mydata.self.product.date.get + +获取客户产品相关表现数据的可用时间范围 +*/ +type AlibabaMydataSelfProductDateGetAPIResponse struct { + model.CommonResponse + AlibabaMydataSelfProductDateGetAPIResponseModel +} + +// 获取客户产品相关表现数据的可用时间范围 成功返回结果 +type AlibabaMydataSelfProductDateGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mydata_self_product_date_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // endDate + EndDate string `json:"end_date,omitempty" xml:"end_date,omitempty"` + // startDate + StartDate string `json:"start_date,omitempty" xml:"start_date,omitempty"` +} diff --git a/model/mydata/AlibabaMydataSelfProductDateGetResponse.go b/model/mydata/AlibabaMydataSelfProductDateGetResponse.go deleted file mode 100644 index be8e9c94ff..0000000000 --- a/model/mydata/AlibabaMydataSelfProductDateGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package mydata - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取客户产品相关表现数据的可用时间范围 API返回值 -alibaba.mydata.self.product.date.get - -获取客户产品相关表现数据的可用时间范围 -*/ -type AlibabaMydataSelfProductDateGetAPIResponse struct { - model.CommonResponse - AlibabaMydataSelfProductDateGetResponse -} - -// 获取客户产品相关表现数据的可用时间范围 成功返回结果 -type AlibabaMydataSelfProductDateGetResponse struct { - XMLName xml.Name `xml:"alibaba_mydata_self_product_date_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // endDate - EndDate string `json:"end_date,omitempty" xml:"end_date,omitempty"` - // startDate - StartDate string `json:"start_date,omitempty" xml:"start_date,omitempty"` -} diff --git a/model/mydata/AlibabaMydataSelfProductGetAPIRequest.go b/model/mydata/AlibabaMydataSelfProductGetAPIRequest.go new file mode 100644 index 0000000000..51abaa3c7f --- /dev/null +++ b/model/mydata/AlibabaMydataSelfProductGetAPIRequest.go @@ -0,0 +1,80 @@ +package mydata + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取客户产品相关表现数据 API请求 +alibaba.mydata.self.product.get + +获取客户产品相关表现数据 +*/ +type AlibabaMydataSelfProductGetAPIRequest struct { + model.Params + // 统计周期,可以为"day", "week", "month" + _statisticsType string + // 统计日期 + _statDate string + // 待查询产品id列表 + _productIds []int64 +} + +// 初始化AlibabaMydataSelfProductGetAPIRequest对象 +func NewAlibabaMydataSelfProductGetRequest() *AlibabaMydataSelfProductGetAPIRequest{ + return &AlibabaMydataSelfProductGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMydataSelfProductGetAPIRequest) GetApiMethodName() string { + return "alibaba.mydata.self.product.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMydataSelfProductGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StatisticsType Setter +// 统计周期,可以为"day", "week", "month" +func (r *AlibabaMydataSelfProductGetAPIRequest) SetStatisticsType(_statisticsType string) error { + r._statisticsType = _statisticsType + r.Set("statistics_type", _statisticsType) + return nil +} + +// StatisticsType Getter +func (r AlibabaMydataSelfProductGetAPIRequest) GetStatisticsType() string { + return r._statisticsType +} +// StatDate Setter +// 统计日期 +func (r *AlibabaMydataSelfProductGetAPIRequest) SetStatDate(_statDate string) error { + r._statDate = _statDate + r.Set("stat_date", _statDate) + return nil +} + +// StatDate Getter +func (r AlibabaMydataSelfProductGetAPIRequest) GetStatDate() string { + return r._statDate +} +// ProductIds Setter +// 待查询产品id列表 +func (r *AlibabaMydataSelfProductGetAPIRequest) SetProductIds(_productIds []int64) error { + r._productIds = _productIds + r.Set("product_ids", _productIds) + return nil +} + +// ProductIds Getter +func (r AlibabaMydataSelfProductGetAPIRequest) GetProductIds() []int64 { + return r._productIds +} diff --git a/model/mydata/AlibabaMydataSelfProductGetAPIResponse.go b/model/mydata/AlibabaMydataSelfProductGetAPIResponse.go new file mode 100644 index 0000000000..5baf9e42af --- /dev/null +++ b/model/mydata/AlibabaMydataSelfProductGetAPIResponse.go @@ -0,0 +1,27 @@ +package mydata + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取客户产品相关表现数据 API返回值 +alibaba.mydata.self.product.get + +获取客户产品相关表现数据 +*/ +type AlibabaMydataSelfProductGetAPIResponse struct { + model.CommonResponse + AlibabaMydataSelfProductGetAPIResponseModel +} + +// 获取客户产品相关表现数据 成功返回结果 +type AlibabaMydataSelfProductGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mydata_self_product_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 产品效果查询结果 + Result *ProductEffect `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/mydata/AlibabaMydataSelfProductGetResponse.go b/model/mydata/AlibabaMydataSelfProductGetResponse.go deleted file mode 100644 index 0845742777..0000000000 --- a/model/mydata/AlibabaMydataSelfProductGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package mydata - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取客户产品相关表现数据 API返回值 -alibaba.mydata.self.product.get - -获取客户产品相关表现数据 -*/ -type AlibabaMydataSelfProductGetAPIResponse struct { - model.CommonResponse - AlibabaMydataSelfProductGetResponse -} - -// 获取客户产品相关表现数据 成功返回结果 -type AlibabaMydataSelfProductGetResponse struct { - XMLName xml.Name `xml:"alibaba_mydata_self_product_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 产品效果查询结果 - Result *ProductEffect `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/nazca/AlibabaInfodeptLassenCasestatisticsGetAPIRequest.go b/model/nazca/AlibabaInfodeptLassenCasestatisticsGetAPIRequest.go new file mode 100644 index 0000000000..5d04d027ba --- /dev/null +++ b/model/nazca/AlibabaInfodeptLassenCasestatisticsGetAPIRequest.go @@ -0,0 +1,80 @@ +package nazca + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +法庭提交和结案案件量接口 API请求 +alibaba.infodept.lassen.casestatistics.get + +功能描述:云嘉为浙江省高院制作数据大屏,需展示网上法庭相关数据,我方为省高院提供浙江省内法院收案和结案的案件量,开放数据接口,供其调取这两组数据。 +*/ +type AlibabaInfodeptLassenCasestatisticsGetAPIRequest struct { + model.Params + // 地区代码 + _areaCode string + // 开始时间 + _startTime string + // 结束时间 + _endTime string +} + +// 初始化AlibabaInfodeptLassenCasestatisticsGetAPIRequest对象 +func NewAlibabaInfodeptLassenCasestatisticsGetRequest() *AlibabaInfodeptLassenCasestatisticsGetAPIRequest{ + return &AlibabaInfodeptLassenCasestatisticsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInfodeptLassenCasestatisticsGetAPIRequest) GetApiMethodName() string { + return "alibaba.infodept.lassen.casestatistics.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInfodeptLassenCasestatisticsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AreaCode Setter +// 地区代码 +func (r *AlibabaInfodeptLassenCasestatisticsGetAPIRequest) SetAreaCode(_areaCode string) error { + r._areaCode = _areaCode + r.Set("area_code", _areaCode) + return nil +} + +// AreaCode Getter +func (r AlibabaInfodeptLassenCasestatisticsGetAPIRequest) GetAreaCode() string { + return r._areaCode +} +// StartTime Setter +// 开始时间 +func (r *AlibabaInfodeptLassenCasestatisticsGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r AlibabaInfodeptLassenCasestatisticsGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束时间 +func (r *AlibabaInfodeptLassenCasestatisticsGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r AlibabaInfodeptLassenCasestatisticsGetAPIRequest) GetEndTime() string { + return r._endTime +} diff --git a/model/nazca/AlibabaInfodeptLassenCasestatisticsGetAPIResponse.go b/model/nazca/AlibabaInfodeptLassenCasestatisticsGetAPIResponse.go new file mode 100644 index 0000000000..8680bab9f1 --- /dev/null +++ b/model/nazca/AlibabaInfodeptLassenCasestatisticsGetAPIResponse.go @@ -0,0 +1,27 @@ +package nazca + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +法庭提交和结案案件量接口 API返回值 +alibaba.infodept.lassen.casestatistics.get + +功能描述:云嘉为浙江省高院制作数据大屏,需展示网上法庭相关数据,我方为省高院提供浙江省内法院收案和结案的案件量,开放数据接口,供其调取这两组数据。 +*/ +type AlibabaInfodeptLassenCasestatisticsGetAPIResponse struct { + model.CommonResponse + AlibabaInfodeptLassenCasestatisticsGetAPIResponseModel +} + +// 法庭提交和结案案件量接口 成功返回结果 +type AlibabaInfodeptLassenCasestatisticsGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_infodept_lassen_casestatistics_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/nazca/AlibabaInfodeptLassenCasestatisticsGetResponse.go b/model/nazca/AlibabaInfodeptLassenCasestatisticsGetResponse.go deleted file mode 100644 index 64ef6f77d8..0000000000 --- a/model/nazca/AlibabaInfodeptLassenCasestatisticsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nazca - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -法庭提交和结案案件量接口 API返回值 -alibaba.infodept.lassen.casestatistics.get - -功能描述:云嘉为浙江省高院制作数据大屏,需展示网上法庭相关数据,我方为省高院提供浙江省内法院收案和结案的案件量,开放数据接口,供其调取这两组数据。 -*/ -type AlibabaInfodeptLassenCasestatisticsGetAPIResponse struct { - model.CommonResponse - AlibabaInfodeptLassenCasestatisticsGetResponse -} - -// 法庭提交和结案案件量接口 成功返回结果 -type AlibabaInfodeptLassenCasestatisticsGetResponse struct { - XMLName xml.Name `xml:"alibaba_infodept_lassen_casestatistics_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/nazca/AlibabaNazcaAuthAuthapplyCallbackAPIRequest.go b/model/nazca/AlibabaNazcaAuthAuthapplyCallbackAPIRequest.go new file mode 100644 index 0000000000..7dd05c81db --- /dev/null +++ b/model/nazca/AlibabaNazcaAuthAuthapplyCallbackAPIRequest.go @@ -0,0 +1,52 @@ +package nazca + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +认证的统一回调接口 API请求 +alibaba.nazca.auth.authapply.callback + +认证的统一回调接口 +*/ +type AlibabaNazcaAuthAuthapplyCallbackAPIRequest struct { + model.Params + // 认证回调参数 + _authApplyDoneCallbackDo *AuthApplyDoneCallBackDo +} + +// 初始化AlibabaNazcaAuthAuthapplyCallbackAPIRequest对象 +func NewAlibabaNazcaAuthAuthapplyCallbackRequest() *AlibabaNazcaAuthAuthapplyCallbackAPIRequest{ + return &AlibabaNazcaAuthAuthapplyCallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNazcaAuthAuthapplyCallbackAPIRequest) GetApiMethodName() string { + return "alibaba.nazca.auth.authapply.callback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNazcaAuthAuthapplyCallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AuthApplyDoneCallbackDo Setter +// 认证回调参数 +func (r *AlibabaNazcaAuthAuthapplyCallbackAPIRequest) SetAuthApplyDoneCallbackDo(_authApplyDoneCallbackDo *AuthApplyDoneCallBackDo) error { + r._authApplyDoneCallbackDo = _authApplyDoneCallbackDo + r.Set("auth_apply_done_callback_do", _authApplyDoneCallbackDo) + return nil +} + +// AuthApplyDoneCallbackDo Getter +func (r AlibabaNazcaAuthAuthapplyCallbackAPIRequest) GetAuthApplyDoneCallbackDo() *AuthApplyDoneCallBackDo { + return r._authApplyDoneCallbackDo +} diff --git a/model/nazca/AlibabaNazcaAuthAuthapplyCallbackAPIResponse.go b/model/nazca/AlibabaNazcaAuthAuthapplyCallbackAPIResponse.go new file mode 100644 index 0000000000..a695ed0e14 --- /dev/null +++ b/model/nazca/AlibabaNazcaAuthAuthapplyCallbackAPIResponse.go @@ -0,0 +1,27 @@ +package nazca + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +认证的统一回调接口 API返回值 +alibaba.nazca.auth.authapply.callback + +认证的统一回调接口 +*/ +type AlibabaNazcaAuthAuthapplyCallbackAPIResponse struct { + model.CommonResponse + AlibabaNazcaAuthAuthapplyCallbackAPIResponseModel +} + +// 认证的统一回调接口 成功返回结果 +type AlibabaNazcaAuthAuthapplyCallbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nazca_auth_authapply_callback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/nazca/AlibabaNazcaAuthAuthapplyCallbackResponse.go b/model/nazca/AlibabaNazcaAuthAuthapplyCallbackResponse.go deleted file mode 100644 index 414663237b..0000000000 --- a/model/nazca/AlibabaNazcaAuthAuthapplyCallbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nazca - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -认证的统一回调接口 API返回值 -alibaba.nazca.auth.authapply.callback - -认证的统一回调接口 -*/ -type AlibabaNazcaAuthAuthapplyCallbackAPIResponse struct { - model.CommonResponse - AlibabaNazcaAuthAuthapplyCallbackResponse -} - -// 认证的统一回调接口 成功返回结果 -type AlibabaNazcaAuthAuthapplyCallbackResponse struct { - XMLName xml.Name `xml:"alibaba_nazca_auth_authapply_callback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/nazca/AlibabaNazcaAuthChangeauthapplyCallbackAPIRequest.go b/model/nazca/AlibabaNazcaAuthChangeauthapplyCallbackAPIRequest.go new file mode 100644 index 0000000000..f5d11b6acd --- /dev/null +++ b/model/nazca/AlibabaNazcaAuthChangeauthapplyCallbackAPIRequest.go @@ -0,0 +1,52 @@ +package nazca + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +变更认证回调 API请求 +alibaba.nazca.auth.changeauthapply.callback + +变更认证回调 +*/ +type AlibabaNazcaAuthChangeauthapplyCallbackAPIRequest struct { + model.Params + // 变更认证回调参数 + _paramChangeAuthCallBackDo *ChangeAuthCallBackDo +} + +// 初始化AlibabaNazcaAuthChangeauthapplyCallbackAPIRequest对象 +func NewAlibabaNazcaAuthChangeauthapplyCallbackRequest() *AlibabaNazcaAuthChangeauthapplyCallbackAPIRequest{ + return &AlibabaNazcaAuthChangeauthapplyCallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNazcaAuthChangeauthapplyCallbackAPIRequest) GetApiMethodName() string { + return "alibaba.nazca.auth.changeauthapply.callback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNazcaAuthChangeauthapplyCallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamChangeAuthCallBackDo Setter +// 变更认证回调参数 +func (r *AlibabaNazcaAuthChangeauthapplyCallbackAPIRequest) SetParamChangeAuthCallBackDo(_paramChangeAuthCallBackDo *ChangeAuthCallBackDo) error { + r._paramChangeAuthCallBackDo = _paramChangeAuthCallBackDo + r.Set("param_change_auth_call_back_do", _paramChangeAuthCallBackDo) + return nil +} + +// ParamChangeAuthCallBackDo Getter +func (r AlibabaNazcaAuthChangeauthapplyCallbackAPIRequest) GetParamChangeAuthCallBackDo() *ChangeAuthCallBackDo { + return r._paramChangeAuthCallBackDo +} diff --git a/model/nazca/AlibabaNazcaAuthChangeauthapplyCallbackAPIResponse.go b/model/nazca/AlibabaNazcaAuthChangeauthapplyCallbackAPIResponse.go new file mode 100644 index 0000000000..fe7becda32 --- /dev/null +++ b/model/nazca/AlibabaNazcaAuthChangeauthapplyCallbackAPIResponse.go @@ -0,0 +1,27 @@ +package nazca + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +变更认证回调 API返回值 +alibaba.nazca.auth.changeauthapply.callback + +变更认证回调 +*/ +type AlibabaNazcaAuthChangeauthapplyCallbackAPIResponse struct { + model.CommonResponse + AlibabaNazcaAuthChangeauthapplyCallbackAPIResponseModel +} + +// 变更认证回调 成功返回结果 +type AlibabaNazcaAuthChangeauthapplyCallbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nazca_auth_changeauthapply_callback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/nazca/AlibabaNazcaAuthChangeauthapplyCallbackResponse.go b/model/nazca/AlibabaNazcaAuthChangeauthapplyCallbackResponse.go deleted file mode 100644 index ab838e6518..0000000000 --- a/model/nazca/AlibabaNazcaAuthChangeauthapplyCallbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nazca - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -变更认证回调 API返回值 -alibaba.nazca.auth.changeauthapply.callback - -变更认证回调 -*/ -type AlibabaNazcaAuthChangeauthapplyCallbackAPIResponse struct { - model.CommonResponse - AlibabaNazcaAuthChangeauthapplyCallbackResponse -} - -// 变更认证回调 成功返回结果 -type AlibabaNazcaAuthChangeauthapplyCallbackResponse struct { - XMLName xml.Name `xml:"alibaba_nazca_auth_changeauthapply_callback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/nazca/AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest.go b/model/nazca/AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest.go new file mode 100644 index 0000000000..9bf34e40f1 --- /dev/null +++ b/model/nazca/AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest.go @@ -0,0 +1,108 @@ +package nazca + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +出证申请回调 API请求 +alibaba.nazca.auth.issueauthapply.callback + +出证申请回调 +*/ +type AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest struct { + model.Params + // 合同编号 + _contractNum string + // 出证机构 + _issueOrg string + // 客户在1688的唯一标识 + _platformUserId string + // 出证报告下载地址 + _reportUrl string + // 出证状态 + _status string +} + +// 初始化AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest对象 +func NewAlibabaNazcaAuthIssueauthapplyCallbackRequest() *AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest{ + return &AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest) GetApiMethodName() string { + return "alibaba.nazca.auth.issueauthapply.callback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ContractNum Setter +// 合同编号 +func (r *AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest) SetContractNum(_contractNum string) error { + r._contractNum = _contractNum + r.Set("contract_num", _contractNum) + return nil +} + +// ContractNum Getter +func (r AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest) GetContractNum() string { + return r._contractNum +} +// IssueOrg Setter +// 出证机构 +func (r *AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest) SetIssueOrg(_issueOrg string) error { + r._issueOrg = _issueOrg + r.Set("issue_org", _issueOrg) + return nil +} + +// IssueOrg Getter +func (r AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest) GetIssueOrg() string { + return r._issueOrg +} +// PlatformUserId Setter +// 客户在1688的唯一标识 +func (r *AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest) SetPlatformUserId(_platformUserId string) error { + r._platformUserId = _platformUserId + r.Set("platform_user_id", _platformUserId) + return nil +} + +// PlatformUserId Getter +func (r AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest) GetPlatformUserId() string { + return r._platformUserId +} +// ReportUrl Setter +// 出证报告下载地址 +func (r *AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest) SetReportUrl(_reportUrl string) error { + r._reportUrl = _reportUrl + r.Set("report_url", _reportUrl) + return nil +} + +// ReportUrl Getter +func (r AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest) GetReportUrl() string { + return r._reportUrl +} +// Status Setter +// 出证状态 +func (r *AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaNazcaAuthIssueauthapplyCallbackAPIRequest) GetStatus() string { + return r._status +} diff --git a/model/nazca/AlibabaNazcaAuthIssueauthapplyCallbackAPIResponse.go b/model/nazca/AlibabaNazcaAuthIssueauthapplyCallbackAPIResponse.go new file mode 100644 index 0000000000..7ec1fe08c2 --- /dev/null +++ b/model/nazca/AlibabaNazcaAuthIssueauthapplyCallbackAPIResponse.go @@ -0,0 +1,27 @@ +package nazca + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +出证申请回调 API返回值 +alibaba.nazca.auth.issueauthapply.callback + +出证申请回调 +*/ +type AlibabaNazcaAuthIssueauthapplyCallbackAPIResponse struct { + model.CommonResponse + AlibabaNazcaAuthIssueauthapplyCallbackAPIResponseModel +} + +// 出证申请回调 成功返回结果 +type AlibabaNazcaAuthIssueauthapplyCallbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nazca_auth_issueauthapply_callback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/nazca/AlibabaNazcaAuthIssueauthapplyCallbackResponse.go b/model/nazca/AlibabaNazcaAuthIssueauthapplyCallbackResponse.go deleted file mode 100644 index cf8817945d..0000000000 --- a/model/nazca/AlibabaNazcaAuthIssueauthapplyCallbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nazca - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -出证申请回调 API返回值 -alibaba.nazca.auth.issueauthapply.callback - -出证申请回调 -*/ -type AlibabaNazcaAuthIssueauthapplyCallbackAPIResponse struct { - model.CommonResponse - AlibabaNazcaAuthIssueauthapplyCallbackResponse -} - -// 出证申请回调 成功返回结果 -type AlibabaNazcaAuthIssueauthapplyCallbackResponse struct { - XMLName xml.Name `xml:"alibaba_nazca_auth_issueauthapply_callback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/nazca/AlibabaNazcaTokenAuthapplyGetAPIRequest.go b/model/nazca/AlibabaNazcaTokenAuthapplyGetAPIRequest.go new file mode 100644 index 0000000000..998f0cf73a --- /dev/null +++ b/model/nazca/AlibabaNazcaTokenAuthapplyGetAPIRequest.go @@ -0,0 +1,52 @@ +package nazca + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据token获取认证申请信息 API请求 +alibaba.nazca.token.authapply.get + +根据token获取认证申请信息 +*/ +type AlibabaNazcaTokenAuthapplyGetAPIRequest struct { + model.Params + // token + _token string +} + +// 初始化AlibabaNazcaTokenAuthapplyGetAPIRequest对象 +func NewAlibabaNazcaTokenAuthapplyGetRequest() *AlibabaNazcaTokenAuthapplyGetAPIRequest{ + return &AlibabaNazcaTokenAuthapplyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNazcaTokenAuthapplyGetAPIRequest) GetApiMethodName() string { + return "alibaba.nazca.token.authapply.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNazcaTokenAuthapplyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Token Setter +// token +func (r *AlibabaNazcaTokenAuthapplyGetAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaNazcaTokenAuthapplyGetAPIRequest) GetToken() string { + return r._token +} diff --git a/model/nazca/AlibabaNazcaTokenAuthapplyGetAPIResponse.go b/model/nazca/AlibabaNazcaTokenAuthapplyGetAPIResponse.go new file mode 100644 index 0000000000..3943f1367b --- /dev/null +++ b/model/nazca/AlibabaNazcaTokenAuthapplyGetAPIResponse.go @@ -0,0 +1,27 @@ +package nazca + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据token获取认证申请信息 API返回值 +alibaba.nazca.token.authapply.get + +根据token获取认证申请信息 +*/ +type AlibabaNazcaTokenAuthapplyGetAPIResponse struct { + model.CommonResponse + AlibabaNazcaTokenAuthapplyGetAPIResponseModel +} + +// 根据token获取认证申请信息 成功返回结果 +type AlibabaNazcaTokenAuthapplyGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nazca_token_authapply_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/nazca/AlibabaNazcaTokenAuthapplyGetResponse.go b/model/nazca/AlibabaNazcaTokenAuthapplyGetResponse.go deleted file mode 100644 index 628c8f714e..0000000000 --- a/model/nazca/AlibabaNazcaTokenAuthapplyGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nazca - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据token获取认证申请信息 API返回值 -alibaba.nazca.token.authapply.get - -根据token获取认证申请信息 -*/ -type AlibabaNazcaTokenAuthapplyGetAPIResponse struct { - model.CommonResponse - AlibabaNazcaTokenAuthapplyGetResponse -} - -// 根据token获取认证申请信息 成功返回结果 -type AlibabaNazcaTokenAuthapplyGetResponse struct { - XMLName xml.Name `xml:"alibaba_nazca_token_authapply_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/nazca/AlibabaNazcaTokenChangeauthapplyGetAPIRequest.go b/model/nazca/AlibabaNazcaTokenChangeauthapplyGetAPIRequest.go new file mode 100644 index 0000000000..3b136ccb0b --- /dev/null +++ b/model/nazca/AlibabaNazcaTokenChangeauthapplyGetAPIRequest.go @@ -0,0 +1,52 @@ +package nazca + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据token获取变更认证申请信息 API请求 +alibaba.nazca.token.changeauthapply.get + +根据token获取变更认证申请信息 +*/ +type AlibabaNazcaTokenChangeauthapplyGetAPIRequest struct { + model.Params + // token + _token string +} + +// 初始化AlibabaNazcaTokenChangeauthapplyGetAPIRequest对象 +func NewAlibabaNazcaTokenChangeauthapplyGetRequest() *AlibabaNazcaTokenChangeauthapplyGetAPIRequest{ + return &AlibabaNazcaTokenChangeauthapplyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNazcaTokenChangeauthapplyGetAPIRequest) GetApiMethodName() string { + return "alibaba.nazca.token.changeauthapply.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNazcaTokenChangeauthapplyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Token Setter +// token +func (r *AlibabaNazcaTokenChangeauthapplyGetAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaNazcaTokenChangeauthapplyGetAPIRequest) GetToken() string { + return r._token +} diff --git a/model/nazca/AlibabaNazcaTokenChangeauthapplyGetAPIResponse.go b/model/nazca/AlibabaNazcaTokenChangeauthapplyGetAPIResponse.go new file mode 100644 index 0000000000..93e7fb3e3d --- /dev/null +++ b/model/nazca/AlibabaNazcaTokenChangeauthapplyGetAPIResponse.go @@ -0,0 +1,27 @@ +package nazca + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据token获取变更认证申请信息 API返回值 +alibaba.nazca.token.changeauthapply.get + +根据token获取变更认证申请信息 +*/ +type AlibabaNazcaTokenChangeauthapplyGetAPIResponse struct { + model.CommonResponse + AlibabaNazcaTokenChangeauthapplyGetAPIResponseModel +} + +// 根据token获取变更认证申请信息 成功返回结果 +type AlibabaNazcaTokenChangeauthapplyGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nazca_token_changeauthapply_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/nazca/AlibabaNazcaTokenChangeauthapplyGetResponse.go b/model/nazca/AlibabaNazcaTokenChangeauthapplyGetResponse.go deleted file mode 100644 index c1eae0e888..0000000000 --- a/model/nazca/AlibabaNazcaTokenChangeauthapplyGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nazca - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据token获取变更认证申请信息 API返回值 -alibaba.nazca.token.changeauthapply.get - -根据token获取变更认证申请信息 -*/ -type AlibabaNazcaTokenChangeauthapplyGetAPIResponse struct { - model.CommonResponse - AlibabaNazcaTokenChangeauthapplyGetResponse -} - -// 根据token获取变更认证申请信息 成功返回结果 -type AlibabaNazcaTokenChangeauthapplyGetResponse struct { - XMLName xml.Name `xml:"alibaba_nazca_token_changeauthapply_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/nazca/AlibabaNazcaTokenFilesecretGetAPIRequest.go b/model/nazca/AlibabaNazcaTokenFilesecretGetAPIRequest.go new file mode 100644 index 0000000000..8028e3be5b --- /dev/null +++ b/model/nazca/AlibabaNazcaTokenFilesecretGetAPIRequest.go @@ -0,0 +1,66 @@ +package nazca + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取文件秘钥 API请求 +alibaba.nazca.token.filesecret.get + +获取文件秘钥 +*/ +type AlibabaNazcaTokenFilesecretGetAPIRequest struct { + model.Params + // 客户在1688的唯一标识 + _platformUserId string + // 合同编号 + _contractNum string +} + +// 初始化AlibabaNazcaTokenFilesecretGetAPIRequest对象 +func NewAlibabaNazcaTokenFilesecretGetRequest() *AlibabaNazcaTokenFilesecretGetAPIRequest{ + return &AlibabaNazcaTokenFilesecretGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNazcaTokenFilesecretGetAPIRequest) GetApiMethodName() string { + return "alibaba.nazca.token.filesecret.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNazcaTokenFilesecretGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PlatformUserId Setter +// 客户在1688的唯一标识 +func (r *AlibabaNazcaTokenFilesecretGetAPIRequest) SetPlatformUserId(_platformUserId string) error { + r._platformUserId = _platformUserId + r.Set("platform_user_id", _platformUserId) + return nil +} + +// PlatformUserId Getter +func (r AlibabaNazcaTokenFilesecretGetAPIRequest) GetPlatformUserId() string { + return r._platformUserId +} +// ContractNum Setter +// 合同编号 +func (r *AlibabaNazcaTokenFilesecretGetAPIRequest) SetContractNum(_contractNum string) error { + r._contractNum = _contractNum + r.Set("contract_num", _contractNum) + return nil +} + +// ContractNum Getter +func (r AlibabaNazcaTokenFilesecretGetAPIRequest) GetContractNum() string { + return r._contractNum +} diff --git a/model/nazca/AlibabaNazcaTokenFilesecretGetAPIResponse.go b/model/nazca/AlibabaNazcaTokenFilesecretGetAPIResponse.go new file mode 100644 index 0000000000..0394c43958 --- /dev/null +++ b/model/nazca/AlibabaNazcaTokenFilesecretGetAPIResponse.go @@ -0,0 +1,35 @@ +package nazca + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取文件秘钥 API返回值 +alibaba.nazca.token.filesecret.get + +获取文件秘钥 +*/ +type AlibabaNazcaTokenFilesecretGetAPIResponse struct { + model.CommonResponse + AlibabaNazcaTokenFilesecretGetAPIResponseModel +} + +// 获取文件秘钥 成功返回结果 +type AlibabaNazcaTokenFilesecretGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nazca_token_filesecret_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // error + Error string `json:"error,omitempty" xml:"error,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 文件秘钥 + RetValue string `json:"ret_value,omitempty" xml:"ret_value,omitempty"` + // 错误信息 + SubErrorMessage string `json:"sub_error_message,omitempty" xml:"sub_error_message,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/nazca/AlibabaNazcaTokenFilesecretGetResponse.go b/model/nazca/AlibabaNazcaTokenFilesecretGetResponse.go deleted file mode 100644 index db98cc1f24..0000000000 --- a/model/nazca/AlibabaNazcaTokenFilesecretGetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package nazca - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取文件秘钥 API返回值 -alibaba.nazca.token.filesecret.get - -获取文件秘钥 -*/ -type AlibabaNazcaTokenFilesecretGetAPIResponse struct { - model.CommonResponse - AlibabaNazcaTokenFilesecretGetResponse -} - -// 获取文件秘钥 成功返回结果 -type AlibabaNazcaTokenFilesecretGetResponse struct { - XMLName xml.Name `xml:"alibaba_nazca_token_filesecret_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // error - Error string `json:"error,omitempty" xml:"error,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 文件秘钥 - RetValue string `json:"ret_value,omitempty" xml:"ret_value,omitempty"` - // 错误信息 - SubErrorMessage string `json:"sub_error_message,omitempty" xml:"sub_error_message,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/nazca/AlibabaNazcaTokenIssuecertapplyGetAPIRequest.go b/model/nazca/AlibabaNazcaTokenIssuecertapplyGetAPIRequest.go new file mode 100644 index 0000000000..9f7474eb7b --- /dev/null +++ b/model/nazca/AlibabaNazcaTokenIssuecertapplyGetAPIRequest.go @@ -0,0 +1,52 @@ +package nazca + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据token获取出证申请信息 API请求 +alibaba.nazca.token.issuecertapply.get + +根据token获取出证申请信息 +*/ +type AlibabaNazcaTokenIssuecertapplyGetAPIRequest struct { + model.Params + // token + _token string +} + +// 初始化AlibabaNazcaTokenIssuecertapplyGetAPIRequest对象 +func NewAlibabaNazcaTokenIssuecertapplyGetRequest() *AlibabaNazcaTokenIssuecertapplyGetAPIRequest{ + return &AlibabaNazcaTokenIssuecertapplyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNazcaTokenIssuecertapplyGetAPIRequest) GetApiMethodName() string { + return "alibaba.nazca.token.issuecertapply.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNazcaTokenIssuecertapplyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Token Setter +// token +func (r *AlibabaNazcaTokenIssuecertapplyGetAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaNazcaTokenIssuecertapplyGetAPIRequest) GetToken() string { + return r._token +} diff --git a/model/nazca/AlibabaNazcaTokenIssuecertapplyGetAPIResponse.go b/model/nazca/AlibabaNazcaTokenIssuecertapplyGetAPIResponse.go new file mode 100644 index 0000000000..9e0fd02e26 --- /dev/null +++ b/model/nazca/AlibabaNazcaTokenIssuecertapplyGetAPIResponse.go @@ -0,0 +1,27 @@ +package nazca + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据token获取出证申请信息 API返回值 +alibaba.nazca.token.issuecertapply.get + +根据token获取出证申请信息 +*/ +type AlibabaNazcaTokenIssuecertapplyGetAPIResponse struct { + model.CommonResponse + AlibabaNazcaTokenIssuecertapplyGetAPIResponseModel +} + +// 根据token获取出证申请信息 成功返回结果 +type AlibabaNazcaTokenIssuecertapplyGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nazca_token_issuecertapply_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/nazca/AlibabaNazcaTokenIssuecertapplyGetResponse.go b/model/nazca/AlibabaNazcaTokenIssuecertapplyGetResponse.go deleted file mode 100644 index b20bb8c12a..0000000000 --- a/model/nazca/AlibabaNazcaTokenIssuecertapplyGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nazca - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据token获取出证申请信息 API返回值 -alibaba.nazca.token.issuecertapply.get - -根据token获取出证申请信息 -*/ -type AlibabaNazcaTokenIssuecertapplyGetAPIResponse struct { - model.CommonResponse - AlibabaNazcaTokenIssuecertapplyGetResponse -} - -// 根据token获取出证申请信息 成功返回结果 -type AlibabaNazcaTokenIssuecertapplyGetResponse struct { - XMLName xml.Name `xml:"alibaba_nazca_token_issuecertapply_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/newretail/AlibabaItApAddressGetAPIRequest.go b/model/newretail/AlibabaItApAddressGetAPIRequest.go new file mode 100644 index 0000000000..2ec4fc0cad --- /dev/null +++ b/model/newretail/AlibabaItApAddressGetAPIRequest.go @@ -0,0 +1,108 @@ +package newretail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +getApAddressByMacNew API请求 +alibaba.it.ap.address.get + +根据ap 的mac地址查询ap的结构化位置信息 +*/ +type AlibabaItApAddressGetAPIRequest struct { + model.Params + // 签名 + _signature string + // 语言 + _language string + // 分配的ak + _appKeyInternal string + // ap的mac + _mac string + // 当前时间戳,毫秒 + _timestampInternal int64 +} + +// 初始化AlibabaItApAddressGetAPIRequest对象 +func NewAlibabaItApAddressGetRequest() *AlibabaItApAddressGetAPIRequest{ + return &AlibabaItApAddressGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaItApAddressGetAPIRequest) GetApiMethodName() string { + return "alibaba.it.ap.address.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaItApAddressGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Signature Setter +// 签名 +func (r *AlibabaItApAddressGetAPIRequest) SetSignature(_signature string) error { + r._signature = _signature + r.Set("signature", _signature) + return nil +} + +// Signature Getter +func (r AlibabaItApAddressGetAPIRequest) GetSignature() string { + return r._signature +} +// Language Setter +// 语言 +func (r *AlibabaItApAddressGetAPIRequest) SetLanguage(_language string) error { + r._language = _language + r.Set("language", _language) + return nil +} + +// Language Getter +func (r AlibabaItApAddressGetAPIRequest) GetLanguage() string { + return r._language +} +// AppKeyInternal Setter +// 分配的ak +func (r *AlibabaItApAddressGetAPIRequest) SetAppKeyInternal(_appKeyInternal string) error { + r._appKeyInternal = _appKeyInternal + r.Set("app_key_internal", _appKeyInternal) + return nil +} + +// AppKeyInternal Getter +func (r AlibabaItApAddressGetAPIRequest) GetAppKeyInternal() string { + return r._appKeyInternal +} +// Mac Setter +// ap的mac +func (r *AlibabaItApAddressGetAPIRequest) SetMac(_mac string) error { + r._mac = _mac + r.Set("mac", _mac) + return nil +} + +// Mac Getter +func (r AlibabaItApAddressGetAPIRequest) GetMac() string { + return r._mac +} +// TimestampInternal Setter +// 当前时间戳,毫秒 +func (r *AlibabaItApAddressGetAPIRequest) SetTimestampInternal(_timestampInternal int64) error { + r._timestampInternal = _timestampInternal + r.Set("timestamp_internal", _timestampInternal) + return nil +} + +// TimestampInternal Getter +func (r AlibabaItApAddressGetAPIRequest) GetTimestampInternal() int64 { + return r._timestampInternal +} diff --git a/model/newretail/AlibabaItApAddressGetAPIResponse.go b/model/newretail/AlibabaItApAddressGetAPIResponse.go new file mode 100644 index 0000000000..aa45050267 --- /dev/null +++ b/model/newretail/AlibabaItApAddressGetAPIResponse.go @@ -0,0 +1,27 @@ +package newretail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +getApAddressByMacNew API返回值 +alibaba.it.ap.address.get + +根据ap 的mac地址查询ap的结构化位置信息 +*/ +type AlibabaItApAddressGetAPIResponse struct { + model.CommonResponse + AlibabaItApAddressGetAPIResponseModel +} + +// getApAddressByMacNew 成功返回结果 +type AlibabaItApAddressGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_it_ap_address_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaItApAddressGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/newretail/AlibabaItApAddressGetResponse.go b/model/newretail/AlibabaItApAddressGetResponse.go deleted file mode 100644 index 2bb8708b2d..0000000000 --- a/model/newretail/AlibabaItApAddressGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package newretail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -getApAddressByMacNew API返回值 -alibaba.it.ap.address.get - -根据ap 的mac地址查询ap的结构化位置信息 -*/ -type AlibabaItApAddressGetAPIResponse struct { - model.CommonResponse - AlibabaItApAddressGetResponse -} - -// getApAddressByMacNew 成功返回结果 -type AlibabaItApAddressGetResponse struct { - XMLName xml.Name `xml:"alibaba_it_ap_address_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaItApAddressGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/newretail/AlibabaItApAddressSetAPIRequest.go b/model/newretail/AlibabaItApAddressSetAPIRequest.go new file mode 100644 index 0000000000..4c553e74c5 --- /dev/null +++ b/model/newretail/AlibabaItApAddressSetAPIRequest.go @@ -0,0 +1,248 @@ +package newretail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +setApAddressNew API请求 +alibaba.it.ap.address.set + +该接口可为ISV系统提供 ap位置信息维护的功能 +*/ +type AlibabaItApAddressSetAPIRequest struct { + model.Params + // 城市 + _apCityName string + // 经度 + _lng string + // 签名 + _signature string + // 园区/门店 + _apCampusName string + // 区域 + _apAreaName string + // 省份 + _apProvinceName string + // ap mac地址 + _mac string + // ap空间单元名称 + _apUnitName string + // 楼层 + _apFloor string + // 楼栋 + _apBuildingName string + // 分配的内部ak + _appKeyInternal string + // 国家 + _apNationName string + // 纬度 + _lat string + // 方位 + _direction string + // 时间戳,毫秒 + _timestampInternal int64 +} + +// 初始化AlibabaItApAddressSetAPIRequest对象 +func NewAlibabaItApAddressSetRequest() *AlibabaItApAddressSetAPIRequest{ + return &AlibabaItApAddressSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaItApAddressSetAPIRequest) GetApiMethodName() string { + return "alibaba.it.ap.address.set" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaItApAddressSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApCityName Setter +// 城市 +func (r *AlibabaItApAddressSetAPIRequest) SetApCityName(_apCityName string) error { + r._apCityName = _apCityName + r.Set("ap_city_name", _apCityName) + return nil +} + +// ApCityName Getter +func (r AlibabaItApAddressSetAPIRequest) GetApCityName() string { + return r._apCityName +} +// Lng Setter +// 经度 +func (r *AlibabaItApAddressSetAPIRequest) SetLng(_lng string) error { + r._lng = _lng + r.Set("lng", _lng) + return nil +} + +// Lng Getter +func (r AlibabaItApAddressSetAPIRequest) GetLng() string { + return r._lng +} +// Signature Setter +// 签名 +func (r *AlibabaItApAddressSetAPIRequest) SetSignature(_signature string) error { + r._signature = _signature + r.Set("signature", _signature) + return nil +} + +// Signature Getter +func (r AlibabaItApAddressSetAPIRequest) GetSignature() string { + return r._signature +} +// ApCampusName Setter +// 园区/门店 +func (r *AlibabaItApAddressSetAPIRequest) SetApCampusName(_apCampusName string) error { + r._apCampusName = _apCampusName + r.Set("ap_campus_name", _apCampusName) + return nil +} + +// ApCampusName Getter +func (r AlibabaItApAddressSetAPIRequest) GetApCampusName() string { + return r._apCampusName +} +// ApAreaName Setter +// 区域 +func (r *AlibabaItApAddressSetAPIRequest) SetApAreaName(_apAreaName string) error { + r._apAreaName = _apAreaName + r.Set("ap_area_name", _apAreaName) + return nil +} + +// ApAreaName Getter +func (r AlibabaItApAddressSetAPIRequest) GetApAreaName() string { + return r._apAreaName +} +// ApProvinceName Setter +// 省份 +func (r *AlibabaItApAddressSetAPIRequest) SetApProvinceName(_apProvinceName string) error { + r._apProvinceName = _apProvinceName + r.Set("ap_province_name", _apProvinceName) + return nil +} + +// ApProvinceName Getter +func (r AlibabaItApAddressSetAPIRequest) GetApProvinceName() string { + return r._apProvinceName +} +// Mac Setter +// ap mac地址 +func (r *AlibabaItApAddressSetAPIRequest) SetMac(_mac string) error { + r._mac = _mac + r.Set("mac", _mac) + return nil +} + +// Mac Getter +func (r AlibabaItApAddressSetAPIRequest) GetMac() string { + return r._mac +} +// ApUnitName Setter +// ap空间单元名称 +func (r *AlibabaItApAddressSetAPIRequest) SetApUnitName(_apUnitName string) error { + r._apUnitName = _apUnitName + r.Set("ap_unit_name", _apUnitName) + return nil +} + +// ApUnitName Getter +func (r AlibabaItApAddressSetAPIRequest) GetApUnitName() string { + return r._apUnitName +} +// ApFloor Setter +// 楼层 +func (r *AlibabaItApAddressSetAPIRequest) SetApFloor(_apFloor string) error { + r._apFloor = _apFloor + r.Set("ap_floor", _apFloor) + return nil +} + +// ApFloor Getter +func (r AlibabaItApAddressSetAPIRequest) GetApFloor() string { + return r._apFloor +} +// ApBuildingName Setter +// 楼栋 +func (r *AlibabaItApAddressSetAPIRequest) SetApBuildingName(_apBuildingName string) error { + r._apBuildingName = _apBuildingName + r.Set("ap_building_name", _apBuildingName) + return nil +} + +// ApBuildingName Getter +func (r AlibabaItApAddressSetAPIRequest) GetApBuildingName() string { + return r._apBuildingName +} +// AppKeyInternal Setter +// 分配的内部ak +func (r *AlibabaItApAddressSetAPIRequest) SetAppKeyInternal(_appKeyInternal string) error { + r._appKeyInternal = _appKeyInternal + r.Set("app_key_internal", _appKeyInternal) + return nil +} + +// AppKeyInternal Getter +func (r AlibabaItApAddressSetAPIRequest) GetAppKeyInternal() string { + return r._appKeyInternal +} +// ApNationName Setter +// 国家 +func (r *AlibabaItApAddressSetAPIRequest) SetApNationName(_apNationName string) error { + r._apNationName = _apNationName + r.Set("ap_nation_name", _apNationName) + return nil +} + +// ApNationName Getter +func (r AlibabaItApAddressSetAPIRequest) GetApNationName() string { + return r._apNationName +} +// Lat Setter +// 纬度 +func (r *AlibabaItApAddressSetAPIRequest) SetLat(_lat string) error { + r._lat = _lat + r.Set("lat", _lat) + return nil +} + +// Lat Getter +func (r AlibabaItApAddressSetAPIRequest) GetLat() string { + return r._lat +} +// Direction Setter +// 方位 +func (r *AlibabaItApAddressSetAPIRequest) SetDirection(_direction string) error { + r._direction = _direction + r.Set("direction", _direction) + return nil +} + +// Direction Getter +func (r AlibabaItApAddressSetAPIRequest) GetDirection() string { + return r._direction +} +// TimestampInternal Setter +// 时间戳,毫秒 +func (r *AlibabaItApAddressSetAPIRequest) SetTimestampInternal(_timestampInternal int64) error { + r._timestampInternal = _timestampInternal + r.Set("timestamp_internal", _timestampInternal) + return nil +} + +// TimestampInternal Getter +func (r AlibabaItApAddressSetAPIRequest) GetTimestampInternal() int64 { + return r._timestampInternal +} diff --git a/model/newretail/AlibabaItApAddressSetAPIResponse.go b/model/newretail/AlibabaItApAddressSetAPIResponse.go new file mode 100644 index 0000000000..e6db2d525d --- /dev/null +++ b/model/newretail/AlibabaItApAddressSetAPIResponse.go @@ -0,0 +1,27 @@ +package newretail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +setApAddressNew API返回值 +alibaba.it.ap.address.set + +该接口可为ISV系统提供 ap位置信息维护的功能 +*/ +type AlibabaItApAddressSetAPIResponse struct { + model.CommonResponse + AlibabaItApAddressSetAPIResponseModel +} + +// setApAddressNew 成功返回结果 +type AlibabaItApAddressSetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_it_ap_address_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaItApAddressSetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/newretail/AlibabaItApAddressSetResponse.go b/model/newretail/AlibabaItApAddressSetResponse.go deleted file mode 100644 index 549dc80047..0000000000 --- a/model/newretail/AlibabaItApAddressSetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package newretail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -setApAddressNew API返回值 -alibaba.it.ap.address.set - -该接口可为ISV系统提供 ap位置信息维护的功能 -*/ -type AlibabaItApAddressSetAPIResponse struct { - model.CommonResponse - AlibabaItApAddressSetResponse -} - -// setApAddressNew 成功返回结果 -type AlibabaItApAddressSetResponse struct { - XMLName xml.Name `xml:"alibaba_it_ap_address_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaItApAddressSetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/nlife/AlibabaNlifeB2bTradeListAPIRequest.go b/model/nlife/AlibabaNlifeB2bTradeListAPIRequest.go new file mode 100644 index 0000000000..bd521d29c7 --- /dev/null +++ b/model/nlife/AlibabaNlifeB2bTradeListAPIRequest.go @@ -0,0 +1,108 @@ +package nlife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取企业下的采购单列表 API请求 +alibaba.nlife.b2b.trade.list + +获取指定门店下的采购单列表 +*/ +type AlibabaNlifeB2bTradeListAPIRequest struct { + model.Params + // 采购单生效时间开始范围 + _startEffectiveDate string + // 采购单生效时间结束范围 + _endEffectiveDate string + // 查询的页码 + _pageNo int64 + // 每页的数量 + _pageSize int64 + // 企业ID + _entId int64 +} + +// 初始化AlibabaNlifeB2bTradeListAPIRequest对象 +func NewAlibabaNlifeB2bTradeListRequest() *AlibabaNlifeB2bTradeListAPIRequest{ + return &AlibabaNlifeB2bTradeListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNlifeB2bTradeListAPIRequest) GetApiMethodName() string { + return "alibaba.nlife.b2b.trade.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNlifeB2bTradeListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartEffectiveDate Setter +// 采购单生效时间开始范围 +func (r *AlibabaNlifeB2bTradeListAPIRequest) SetStartEffectiveDate(_startEffectiveDate string) error { + r._startEffectiveDate = _startEffectiveDate + r.Set("start_effective_date", _startEffectiveDate) + return nil +} + +// StartEffectiveDate Getter +func (r AlibabaNlifeB2bTradeListAPIRequest) GetStartEffectiveDate() string { + return r._startEffectiveDate +} +// EndEffectiveDate Setter +// 采购单生效时间结束范围 +func (r *AlibabaNlifeB2bTradeListAPIRequest) SetEndEffectiveDate(_endEffectiveDate string) error { + r._endEffectiveDate = _endEffectiveDate + r.Set("end_effective_date", _endEffectiveDate) + return nil +} + +// EndEffectiveDate Getter +func (r AlibabaNlifeB2bTradeListAPIRequest) GetEndEffectiveDate() string { + return r._endEffectiveDate +} +// PageNo Setter +// 查询的页码 +func (r *AlibabaNlifeB2bTradeListAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r AlibabaNlifeB2bTradeListAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页的数量 +func (r *AlibabaNlifeB2bTradeListAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaNlifeB2bTradeListAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// EntId Setter +// 企业ID +func (r *AlibabaNlifeB2bTradeListAPIRequest) SetEntId(_entId int64) error { + r._entId = _entId + r.Set("ent_id", _entId) + return nil +} + +// EntId Getter +func (r AlibabaNlifeB2bTradeListAPIRequest) GetEntId() int64 { + return r._entId +} diff --git a/model/nlife/AlibabaNlifeB2bTradeListAPIResponse.go b/model/nlife/AlibabaNlifeB2bTradeListAPIResponse.go new file mode 100644 index 0000000000..a7f91a9fb6 --- /dev/null +++ b/model/nlife/AlibabaNlifeB2bTradeListAPIResponse.go @@ -0,0 +1,27 @@ +package nlife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取企业下的采购单列表 API返回值 +alibaba.nlife.b2b.trade.list + +获取指定门店下的采购单列表 +*/ +type AlibabaNlifeB2bTradeListAPIResponse struct { + model.CommonResponse + AlibabaNlifeB2bTradeListAPIResponseModel +} + +// 获取企业下的采购单列表 成功返回结果 +type AlibabaNlifeB2bTradeListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nlife_b2b_trade_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果数据 + Data *ProcurementResponseDo `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/nlife/AlibabaNlifeB2bTradeListResponse.go b/model/nlife/AlibabaNlifeB2bTradeListResponse.go deleted file mode 100644 index 04f1737927..0000000000 --- a/model/nlife/AlibabaNlifeB2bTradeListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nlife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取企业下的采购单列表 API返回值 -alibaba.nlife.b2b.trade.list - -获取指定门店下的采购单列表 -*/ -type AlibabaNlifeB2bTradeListAPIResponse struct { - model.CommonResponse - AlibabaNlifeB2bTradeListResponse -} - -// 获取企业下的采购单列表 成功返回结果 -type AlibabaNlifeB2bTradeListResponse struct { - XMLName xml.Name `xml:"alibaba_nlife_b2b_trade_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果数据 - Data *ProcurementResponseDo `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/nlife/AlibabaNlifeB2bTradeRefundListAPIRequest.go b/model/nlife/AlibabaNlifeB2bTradeRefundListAPIRequest.go new file mode 100644 index 0000000000..961ae48ca6 --- /dev/null +++ b/model/nlife/AlibabaNlifeB2bTradeRefundListAPIRequest.go @@ -0,0 +1,108 @@ +package nlife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取采购退货单列表 API请求 +alibaba.nlife.b2b.trade.refund.list + +获取采购退货单列表 +*/ +type AlibabaNlifeB2bTradeRefundListAPIRequest struct { + model.Params + // 采购退货单创建时间开始范围 + _startEffectiveDate string + // 采购退货单创建时间结束范围 + _endEffectiveDate string + // 查询的页数 + _pageNo int64 + // 每页的数量 + _pageSize int64 + // 企业Id + _entId int64 +} + +// 初始化AlibabaNlifeB2bTradeRefundListAPIRequest对象 +func NewAlibabaNlifeB2bTradeRefundListRequest() *AlibabaNlifeB2bTradeRefundListAPIRequest{ + return &AlibabaNlifeB2bTradeRefundListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNlifeB2bTradeRefundListAPIRequest) GetApiMethodName() string { + return "alibaba.nlife.b2b.trade.refund.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNlifeB2bTradeRefundListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartEffectiveDate Setter +// 采购退货单创建时间开始范围 +func (r *AlibabaNlifeB2bTradeRefundListAPIRequest) SetStartEffectiveDate(_startEffectiveDate string) error { + r._startEffectiveDate = _startEffectiveDate + r.Set("start_effective_date", _startEffectiveDate) + return nil +} + +// StartEffectiveDate Getter +func (r AlibabaNlifeB2bTradeRefundListAPIRequest) GetStartEffectiveDate() string { + return r._startEffectiveDate +} +// EndEffectiveDate Setter +// 采购退货单创建时间结束范围 +func (r *AlibabaNlifeB2bTradeRefundListAPIRequest) SetEndEffectiveDate(_endEffectiveDate string) error { + r._endEffectiveDate = _endEffectiveDate + r.Set("end_effective_date", _endEffectiveDate) + return nil +} + +// EndEffectiveDate Getter +func (r AlibabaNlifeB2bTradeRefundListAPIRequest) GetEndEffectiveDate() string { + return r._endEffectiveDate +} +// PageNo Setter +// 查询的页数 +func (r *AlibabaNlifeB2bTradeRefundListAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r AlibabaNlifeB2bTradeRefundListAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页的数量 +func (r *AlibabaNlifeB2bTradeRefundListAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaNlifeB2bTradeRefundListAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// EntId Setter +// 企业Id +func (r *AlibabaNlifeB2bTradeRefundListAPIRequest) SetEntId(_entId int64) error { + r._entId = _entId + r.Set("ent_id", _entId) + return nil +} + +// EntId Getter +func (r AlibabaNlifeB2bTradeRefundListAPIRequest) GetEntId() int64 { + return r._entId +} diff --git a/model/nlife/AlibabaNlifeB2bTradeRefundListAPIResponse.go b/model/nlife/AlibabaNlifeB2bTradeRefundListAPIResponse.go new file mode 100644 index 0000000000..09f8b4857a --- /dev/null +++ b/model/nlife/AlibabaNlifeB2bTradeRefundListAPIResponse.go @@ -0,0 +1,27 @@ +package nlife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取采购退货单列表 API返回值 +alibaba.nlife.b2b.trade.refund.list + +获取采购退货单列表 +*/ +type AlibabaNlifeB2bTradeRefundListAPIResponse struct { + model.CommonResponse + AlibabaNlifeB2bTradeRefundListAPIResponseModel +} + +// 获取采购退货单列表 成功返回结果 +type AlibabaNlifeB2bTradeRefundListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nlife_b2b_trade_refund_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果数据 + Data *RefundListResponseDo `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/nlife/AlibabaNlifeB2bTradeRefundListResponse.go b/model/nlife/AlibabaNlifeB2bTradeRefundListResponse.go deleted file mode 100644 index 595bcee0fd..0000000000 --- a/model/nlife/AlibabaNlifeB2bTradeRefundListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nlife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取采购退货单列表 API返回值 -alibaba.nlife.b2b.trade.refund.list - -获取采购退货单列表 -*/ -type AlibabaNlifeB2bTradeRefundListAPIResponse struct { - model.CommonResponse - AlibabaNlifeB2bTradeRefundListResponse -} - -// 获取采购退货单列表 成功返回结果 -type AlibabaNlifeB2bTradeRefundListResponse struct { - XMLName xml.Name `xml:"alibaba_nlife_b2b_trade_refund_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果数据 - Data *RefundListResponseDo `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/nlife/AlibabaNlifeB2cCodeConvertAPIRequest.go b/model/nlife/AlibabaNlifeB2cCodeConvertAPIRequest.go new file mode 100644 index 0000000000..3914f375ab --- /dev/null +++ b/model/nlife/AlibabaNlifeB2cCodeConvertAPIRequest.go @@ -0,0 +1,66 @@ +package nlife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +b2c转码 API请求 +alibaba.nlife.b2c.code.convert + +将商品的URL转码,ISV将该码写入RFID +*/ +type AlibabaNlifeB2cCodeConvertAPIRequest struct { + model.Params + // 零售商在零售+平台ID,非唯一码模式必填,建议传递该值 + _storeId string + // 商品URL + _url string +} + +// 初始化AlibabaNlifeB2cCodeConvertAPIRequest对象 +func NewAlibabaNlifeB2cCodeConvertRequest() *AlibabaNlifeB2cCodeConvertAPIRequest{ + return &AlibabaNlifeB2cCodeConvertAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNlifeB2cCodeConvertAPIRequest) GetApiMethodName() string { + return "alibaba.nlife.b2c.code.convert" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNlifeB2cCodeConvertAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 零售商在零售+平台ID,非唯一码模式必填,建议传递该值 +func (r *AlibabaNlifeB2cCodeConvertAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaNlifeB2cCodeConvertAPIRequest) GetStoreId() string { + return r._storeId +} +// Url Setter +// 商品URL +func (r *AlibabaNlifeB2cCodeConvertAPIRequest) SetUrl(_url string) error { + r._url = _url + r.Set("url", _url) + return nil +} + +// Url Getter +func (r AlibabaNlifeB2cCodeConvertAPIRequest) GetUrl() string { + return r._url +} diff --git a/model/nlife/AlibabaNlifeB2cCodeConvertAPIResponse.go b/model/nlife/AlibabaNlifeB2cCodeConvertAPIResponse.go new file mode 100644 index 0000000000..78bd42c7e9 --- /dev/null +++ b/model/nlife/AlibabaNlifeB2cCodeConvertAPIResponse.go @@ -0,0 +1,27 @@ +package nlife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +b2c转码 API返回值 +alibaba.nlife.b2c.code.convert + +将商品的URL转码,ISV将该码写入RFID +*/ +type AlibabaNlifeB2cCodeConvertAPIResponse struct { + model.CommonResponse + AlibabaNlifeB2cCodeConvertAPIResponseModel +} + +// b2c转码 成功返回结果 +type AlibabaNlifeB2cCodeConvertAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nlife_b2c_code_convert_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data *ItemCodeConvertResponse `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/nlife/AlibabaNlifeB2cCodeConvertResponse.go b/model/nlife/AlibabaNlifeB2cCodeConvertResponse.go deleted file mode 100644 index 7e883ee04a..0000000000 --- a/model/nlife/AlibabaNlifeB2cCodeConvertResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nlife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -b2c转码 API返回值 -alibaba.nlife.b2c.code.convert - -将商品的URL转码,ISV将该码写入RFID -*/ -type AlibabaNlifeB2cCodeConvertAPIResponse struct { - model.CommonResponse - AlibabaNlifeB2cCodeConvertResponse -} - -// b2c转码 成功返回结果 -type AlibabaNlifeB2cCodeConvertResponse struct { - XMLName xml.Name `xml:"alibaba_nlife_b2c_code_convert_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data *ItemCodeConvertResponse `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/nlife/AlibabaNlifeB2cItemDetailGetAPIRequest.go b/model/nlife/AlibabaNlifeB2cItemDetailGetAPIRequest.go new file mode 100644 index 0000000000..fdd43e9d00 --- /dev/null +++ b/model/nlife/AlibabaNlifeB2cItemDetailGetAPIRequest.go @@ -0,0 +1,66 @@ +package nlife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +b2c码详情查询 API请求 +alibaba.nlife.b2c.item.detail.get + +根据零售+平台生成的唯一码获取对应详情 +*/ +type AlibabaNlifeB2cItemDetailGetAPIRequest struct { + model.Params + // 商家入驻门店在零售+平台的ID + _storeId string + // 零售+平台生成的唯一码或条码 + _uniqueCode string +} + +// 初始化AlibabaNlifeB2cItemDetailGetAPIRequest对象 +func NewAlibabaNlifeB2cItemDetailGetRequest() *AlibabaNlifeB2cItemDetailGetAPIRequest{ + return &AlibabaNlifeB2cItemDetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNlifeB2cItemDetailGetAPIRequest) GetApiMethodName() string { + return "alibaba.nlife.b2c.item.detail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNlifeB2cItemDetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 商家入驻门店在零售+平台的ID +func (r *AlibabaNlifeB2cItemDetailGetAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaNlifeB2cItemDetailGetAPIRequest) GetStoreId() string { + return r._storeId +} +// UniqueCode Setter +// 零售+平台生成的唯一码或条码 +func (r *AlibabaNlifeB2cItemDetailGetAPIRequest) SetUniqueCode(_uniqueCode string) error { + r._uniqueCode = _uniqueCode + r.Set("unique_code", _uniqueCode) + return nil +} + +// UniqueCode Getter +func (r AlibabaNlifeB2cItemDetailGetAPIRequest) GetUniqueCode() string { + return r._uniqueCode +} diff --git a/model/nlife/AlibabaNlifeB2cItemDetailGetAPIResponse.go b/model/nlife/AlibabaNlifeB2cItemDetailGetAPIResponse.go new file mode 100644 index 0000000000..e1d3b57b49 --- /dev/null +++ b/model/nlife/AlibabaNlifeB2cItemDetailGetAPIResponse.go @@ -0,0 +1,65 @@ +package nlife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +b2c码详情查询 API返回值 +alibaba.nlife.b2c.item.detail.get + +根据零售+平台生成的唯一码获取对应详情 +*/ +type AlibabaNlifeB2cItemDetailGetAPIResponse struct { + model.CommonResponse + AlibabaNlifeB2cItemDetailGetAPIResponseModel +} + +// b2c码详情查询 成功返回结果 +type AlibabaNlifeB2cItemDetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nlife_b2c_item_detail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品图片链接(线下商品无) + PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"` + // 商品名称 + Name string `json:"name,omitempty" xml:"name,omitempty"` + // 商品出售价格 + Price string `json:"price,omitempty" xml:"price,omitempty"` + // 商品原价 + OrgPrice string `json:"org_price,omitempty" xml:"org_price,omitempty"` + // 商品在天猫上的详情页链接(线下商品无 + DetailUrl string `json:"detail_url,omitempty" xml:"detail_url,omitempty"` + // 商品ItemId + ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"` + // 商品SkuId + SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"` + // sku级别 + BarCode string `json:"bar_code,omitempty" xml:"bar_code,omitempty"` + // 零售+平台生成的商品唯一码或条码 + UniqueCode string `json:"unique_code,omitempty" xml:"unique_code,omitempty"` + // 入驻天猫的品牌ID(线下商品无 + BrandId string `json:"brand_id,omitempty" xml:"brand_id,omitempty"` + // 入驻天猫的品牌名称(线下商品无) + BrandName string `json:"brand_name,omitempty" xml:"brand_name,omitempty"` + // 供应商ID + SupplierId string `json:"supplier_id,omitempty" xml:"supplier_id,omitempty"` + // 供应商名称 + SupplierName string `json:"supplier_name,omitempty" xml:"supplier_name,omitempty"` + // 商品级别 + GoodsNo string `json:"goods_no,omitempty" xml:"goods_no,omitempty"` + // 结算码是否可变 + CodeChangeable bool `json:"code_changeable,omitempty" xml:"code_changeable,omitempty"` + // 结算码 + SettleCode string `json:"settle_code,omitempty" xml:"settle_code,omitempty"` + // 销售属性 + Property string `json:"property,omitempty" xml:"property,omitempty"` + // 叶子类目ID + CatId string `json:"cat_id,omitempty" xml:"cat_id,omitempty"` + // 叶子类目名称 + CatName string `json:"cat_name,omitempty" xml:"cat_name,omitempty"` + // 当前sku库存 + CurrentInventory string `json:"current_inventory,omitempty" xml:"current_inventory,omitempty"` +} diff --git a/model/nlife/AlibabaNlifeB2cItemDetailGetResponse.go b/model/nlife/AlibabaNlifeB2cItemDetailGetResponse.go deleted file mode 100644 index c374453dc0..0000000000 --- a/model/nlife/AlibabaNlifeB2cItemDetailGetResponse.go +++ /dev/null @@ -1,65 +0,0 @@ -package nlife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -b2c码详情查询 API返回值 -alibaba.nlife.b2c.item.detail.get - -根据零售+平台生成的唯一码获取对应详情 -*/ -type AlibabaNlifeB2cItemDetailGetAPIResponse struct { - model.CommonResponse - AlibabaNlifeB2cItemDetailGetResponse -} - -// b2c码详情查询 成功返回结果 -type AlibabaNlifeB2cItemDetailGetResponse struct { - XMLName xml.Name `xml:"alibaba_nlife_b2c_item_detail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品图片链接(线下商品无) - PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"` - // 商品名称 - Name string `json:"name,omitempty" xml:"name,omitempty"` - // 商品出售价格 - Price string `json:"price,omitempty" xml:"price,omitempty"` - // 商品原价 - OrgPrice string `json:"org_price,omitempty" xml:"org_price,omitempty"` - // 商品在天猫上的详情页链接(线下商品无 - DetailUrl string `json:"detail_url,omitempty" xml:"detail_url,omitempty"` - // 商品ItemId - ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"` - // 商品SkuId - SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"` - // sku级别 - BarCode string `json:"bar_code,omitempty" xml:"bar_code,omitempty"` - // 零售+平台生成的商品唯一码或条码 - UniqueCode string `json:"unique_code,omitempty" xml:"unique_code,omitempty"` - // 入驻天猫的品牌ID(线下商品无 - BrandId string `json:"brand_id,omitempty" xml:"brand_id,omitempty"` - // 入驻天猫的品牌名称(线下商品无) - BrandName string `json:"brand_name,omitempty" xml:"brand_name,omitempty"` - // 供应商ID - SupplierId string `json:"supplier_id,omitempty" xml:"supplier_id,omitempty"` - // 供应商名称 - SupplierName string `json:"supplier_name,omitempty" xml:"supplier_name,omitempty"` - // 商品级别 - GoodsNo string `json:"goods_no,omitempty" xml:"goods_no,omitempty"` - // 结算码是否可变 - CodeChangeable bool `json:"code_changeable,omitempty" xml:"code_changeable,omitempty"` - // 结算码 - SettleCode string `json:"settle_code,omitempty" xml:"settle_code,omitempty"` - // 销售属性 - Property string `json:"property,omitempty" xml:"property,omitempty"` - // 叶子类目ID - CatId string `json:"cat_id,omitempty" xml:"cat_id,omitempty"` - // 叶子类目名称 - CatName string `json:"cat_name,omitempty" xml:"cat_name,omitempty"` - // 当前sku库存 - CurrentInventory string `json:"current_inventory,omitempty" xml:"current_inventory,omitempty"` -} diff --git a/model/nlife/AlibabaNlifeB2cMemberDiscountruleGetAPIRequest.go b/model/nlife/AlibabaNlifeB2cMemberDiscountruleGetAPIRequest.go new file mode 100644 index 0000000000..279cb1cdcb --- /dev/null +++ b/model/nlife/AlibabaNlifeB2cMemberDiscountruleGetAPIRequest.go @@ -0,0 +1,66 @@ +package nlife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +会员抵扣规则 API请求 +alibaba.nlife.b2c.member.discountrule.get + +获取企业会员抵扣规则 +*/ +type AlibabaNlifeB2cMemberDiscountruleGetAPIRequest struct { + model.Params + // 企业ID + _companyId string + // 会员在ISV处的编号 + _cardNo string +} + +// 初始化AlibabaNlifeB2cMemberDiscountruleGetAPIRequest对象 +func NewAlibabaNlifeB2cMemberDiscountruleGetRequest() *AlibabaNlifeB2cMemberDiscountruleGetAPIRequest{ + return &AlibabaNlifeB2cMemberDiscountruleGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNlifeB2cMemberDiscountruleGetAPIRequest) GetApiMethodName() string { + return "alibaba.nlife.b2c.member.discountrule.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNlifeB2cMemberDiscountruleGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CompanyId Setter +// 企业ID +func (r *AlibabaNlifeB2cMemberDiscountruleGetAPIRequest) SetCompanyId(_companyId string) error { + r._companyId = _companyId + r.Set("company_id", _companyId) + return nil +} + +// CompanyId Getter +func (r AlibabaNlifeB2cMemberDiscountruleGetAPIRequest) GetCompanyId() string { + return r._companyId +} +// CardNo Setter +// 会员在ISV处的编号 +func (r *AlibabaNlifeB2cMemberDiscountruleGetAPIRequest) SetCardNo(_cardNo string) error { + r._cardNo = _cardNo + r.Set("card_no", _cardNo) + return nil +} + +// CardNo Getter +func (r AlibabaNlifeB2cMemberDiscountruleGetAPIRequest) GetCardNo() string { + return r._cardNo +} diff --git a/model/nlife/AlibabaNlifeB2cMemberDiscountruleGetAPIResponse.go b/model/nlife/AlibabaNlifeB2cMemberDiscountruleGetAPIResponse.go new file mode 100644 index 0000000000..607af46032 --- /dev/null +++ b/model/nlife/AlibabaNlifeB2cMemberDiscountruleGetAPIResponse.go @@ -0,0 +1,35 @@ +package nlife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +会员抵扣规则 API返回值 +alibaba.nlife.b2c.member.discountrule.get + +获取企业会员抵扣规则 +*/ +type AlibabaNlifeB2cMemberDiscountruleGetAPIResponse struct { + model.CommonResponse + AlibabaNlifeB2cMemberDiscountruleGetAPIResponseModel +} + +// 会员抵扣规则 成功返回结果 +type AlibabaNlifeB2cMemberDiscountruleGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nlife_b2c_member_discountrule_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 业务成功与否 true/false + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 错误码,当result为false时设置 + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 错误信息,当result为false时设置 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // 抵扣规则 + DiscountRule *DiscountRule `json:"discount_rule,omitempty" xml:"discount_rule,omitempty"` + // 结构化的文案 + DiscountMemos []DiscountMemo `json:"discount_memos,omitempty" xml:"discount_memos>discount_memo,omitempty"` +} diff --git a/model/nlife/AlibabaNlifeB2cMemberDiscountruleGetResponse.go b/model/nlife/AlibabaNlifeB2cMemberDiscountruleGetResponse.go deleted file mode 100644 index 25dfbf4614..0000000000 --- a/model/nlife/AlibabaNlifeB2cMemberDiscountruleGetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package nlife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -会员抵扣规则 API返回值 -alibaba.nlife.b2c.member.discountrule.get - -获取企业会员抵扣规则 -*/ -type AlibabaNlifeB2cMemberDiscountruleGetAPIResponse struct { - model.CommonResponse - AlibabaNlifeB2cMemberDiscountruleGetResponse -} - -// 会员抵扣规则 成功返回结果 -type AlibabaNlifeB2cMemberDiscountruleGetResponse struct { - XMLName xml.Name `xml:"alibaba_nlife_b2c_member_discountrule_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 业务成功与否 true/false - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 错误码,当result为false时设置 - ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` - // 错误信息,当result为false时设置 - ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` - // 抵扣规则 - DiscountRule *DiscountRule `json:"discount_rule,omitempty" xml:"discount_rule,omitempty"` - // 结构化的文案 - DiscountMemos []DiscountMemo `json:"discount_memos,omitempty" xml:"discount_memos>discount_memo,omitempty"` -} diff --git a/model/nlife/AlibabaNlifeB2cTradeCancelAPIRequest.go b/model/nlife/AlibabaNlifeB2cTradeCancelAPIRequest.go new file mode 100644 index 0000000000..ef3cd2caf2 --- /dev/null +++ b/model/nlife/AlibabaNlifeB2cTradeCancelAPIRequest.go @@ -0,0 +1,80 @@ +package nlife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售+平台取消订单 API请求 +alibaba.nlife.b2c.trade.cancel + +零售+平台取消订单接口 +*/ +type AlibabaNlifeB2cTradeCancelAPIRequest struct { + model.Params + // 零售+平台订单号,和out_trade_no不能同时为空 + _tradeNo string + // 外部订单号,和trade_no不能同时为空 + _outTradeNo string + // 零售+门店号 + _storeId string +} + +// 初始化AlibabaNlifeB2cTradeCancelAPIRequest对象 +func NewAlibabaNlifeB2cTradeCancelRequest() *AlibabaNlifeB2cTradeCancelAPIRequest{ + return &AlibabaNlifeB2cTradeCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNlifeB2cTradeCancelAPIRequest) GetApiMethodName() string { + return "alibaba.nlife.b2c.trade.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNlifeB2cTradeCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeNo Setter +// 零售+平台订单号,和out_trade_no不能同时为空 +func (r *AlibabaNlifeB2cTradeCancelAPIRequest) SetTradeNo(_tradeNo string) error { + r._tradeNo = _tradeNo + r.Set("trade_no", _tradeNo) + return nil +} + +// TradeNo Getter +func (r AlibabaNlifeB2cTradeCancelAPIRequest) GetTradeNo() string { + return r._tradeNo +} +// OutTradeNo Setter +// 外部订单号,和trade_no不能同时为空 +func (r *AlibabaNlifeB2cTradeCancelAPIRequest) SetOutTradeNo(_outTradeNo string) error { + r._outTradeNo = _outTradeNo + r.Set("out_trade_no", _outTradeNo) + return nil +} + +// OutTradeNo Getter +func (r AlibabaNlifeB2cTradeCancelAPIRequest) GetOutTradeNo() string { + return r._outTradeNo +} +// StoreId Setter +// 零售+门店号 +func (r *AlibabaNlifeB2cTradeCancelAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaNlifeB2cTradeCancelAPIRequest) GetStoreId() string { + return r._storeId +} diff --git a/model/nlife/AlibabaNlifeB2cTradeCancelAPIResponse.go b/model/nlife/AlibabaNlifeB2cTradeCancelAPIResponse.go new file mode 100644 index 0000000000..d2044d3e62 --- /dev/null +++ b/model/nlife/AlibabaNlifeB2cTradeCancelAPIResponse.go @@ -0,0 +1,29 @@ +package nlife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售+平台取消订单 API返回值 +alibaba.nlife.b2c.trade.cancel + +零售+平台取消订单接口 +*/ +type AlibabaNlifeB2cTradeCancelAPIResponse struct { + model.CommonResponse + AlibabaNlifeB2cTradeCancelAPIResponseModel +} + +// 零售+平台取消订单 成功返回结果 +type AlibabaNlifeB2cTradeCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nlife_b2c_trade_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单取消时间 + GmtCancel string `json:"gmt_cancel,omitempty" xml:"gmt_cancel,omitempty"` + // 扩展参数JSON + ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` +} diff --git a/model/nlife/AlibabaNlifeB2cTradeCancelResponse.go b/model/nlife/AlibabaNlifeB2cTradeCancelResponse.go deleted file mode 100644 index 8d9b8cf825..0000000000 --- a/model/nlife/AlibabaNlifeB2cTradeCancelResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package nlife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售+平台取消订单 API返回值 -alibaba.nlife.b2c.trade.cancel - -零售+平台取消订单接口 -*/ -type AlibabaNlifeB2cTradeCancelAPIResponse struct { - model.CommonResponse - AlibabaNlifeB2cTradeCancelResponse -} - -// 零售+平台取消订单 成功返回结果 -type AlibabaNlifeB2cTradeCancelResponse struct { - XMLName xml.Name `xml:"alibaba_nlife_b2c_trade_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单取消时间 - GmtCancel string `json:"gmt_cancel,omitempty" xml:"gmt_cancel,omitempty"` - // 扩展参数JSON - ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` -} diff --git a/model/nlife/AlibabaNlifeB2cTradeDownloadAPIRequest.go b/model/nlife/AlibabaNlifeB2cTradeDownloadAPIRequest.go new file mode 100644 index 0000000000..2ccbaefd3a --- /dev/null +++ b/model/nlife/AlibabaNlifeB2cTradeDownloadAPIRequest.go @@ -0,0 +1,108 @@ +package nlife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +b2c下载订单 API请求 +alibaba.nlife.b2c.trade.download + +下载零售商在零售+平台创建的订单 +*/ +type AlibabaNlifeB2cTradeDownloadAPIRequest struct { + model.Params + // 页码 + _pageNo int64 + // 分页大小 + _pageSize int64 + // 零售门店在零售+平台对应的ID + _storeId string + // 开始时间 + _startDate string + // 结束时间 + _endDate string +} + +// 初始化AlibabaNlifeB2cTradeDownloadAPIRequest对象 +func NewAlibabaNlifeB2cTradeDownloadRequest() *AlibabaNlifeB2cTradeDownloadAPIRequest{ + return &AlibabaNlifeB2cTradeDownloadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNlifeB2cTradeDownloadAPIRequest) GetApiMethodName() string { + return "alibaba.nlife.b2c.trade.download" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNlifeB2cTradeDownloadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageNo Setter +// 页码 +func (r *AlibabaNlifeB2cTradeDownloadAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r AlibabaNlifeB2cTradeDownloadAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 分页大小 +func (r *AlibabaNlifeB2cTradeDownloadAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaNlifeB2cTradeDownloadAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// StoreId Setter +// 零售门店在零售+平台对应的ID +func (r *AlibabaNlifeB2cTradeDownloadAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaNlifeB2cTradeDownloadAPIRequest) GetStoreId() string { + return r._storeId +} +// StartDate Setter +// 开始时间 +func (r *AlibabaNlifeB2cTradeDownloadAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r AlibabaNlifeB2cTradeDownloadAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 结束时间 +func (r *AlibabaNlifeB2cTradeDownloadAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaNlifeB2cTradeDownloadAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/nlife/AlibabaNlifeB2cTradeDownloadAPIResponse.go b/model/nlife/AlibabaNlifeB2cTradeDownloadAPIResponse.go new file mode 100644 index 0000000000..079567bcbf --- /dev/null +++ b/model/nlife/AlibabaNlifeB2cTradeDownloadAPIResponse.go @@ -0,0 +1,29 @@ +package nlife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +b2c下载订单 API返回值 +alibaba.nlife.b2c.trade.download + +下载零售商在零售+平台创建的订单 +*/ +type AlibabaNlifeB2cTradeDownloadAPIResponse struct { + model.CommonResponse + AlibabaNlifeB2cTradeDownloadAPIResponseModel +} + +// b2c下载订单 成功返回结果 +type AlibabaNlifeB2cTradeDownloadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nlife_b2c_trade_download_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询命中数量 + Total int64 `json:"total,omitempty" xml:"total,omitempty"` + // 订单列表 + OrderList []Order `json:"order_list,omitempty" xml:"order_list>order,omitempty"` +} diff --git a/model/nlife/AlibabaNlifeB2cTradeDownloadResponse.go b/model/nlife/AlibabaNlifeB2cTradeDownloadResponse.go deleted file mode 100644 index 88008418eb..0000000000 --- a/model/nlife/AlibabaNlifeB2cTradeDownloadResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package nlife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -b2c下载订单 API返回值 -alibaba.nlife.b2c.trade.download - -下载零售商在零售+平台创建的订单 -*/ -type AlibabaNlifeB2cTradeDownloadAPIResponse struct { - model.CommonResponse - AlibabaNlifeB2cTradeDownloadResponse -} - -// b2c下载订单 成功返回结果 -type AlibabaNlifeB2cTradeDownloadResponse struct { - XMLName xml.Name `xml:"alibaba_nlife_b2c_trade_download_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询命中数量 - Total int64 `json:"total,omitempty" xml:"total,omitempty"` - // 订单列表 - OrderList []Order `json:"order_list,omitempty" xml:"order_list>order,omitempty"` -} diff --git a/model/nlife/AlibabaNlifeB2cTradeGetAPIRequest.go b/model/nlife/AlibabaNlifeB2cTradeGetAPIRequest.go new file mode 100644 index 0000000000..9cd15c81c7 --- /dev/null +++ b/model/nlife/AlibabaNlifeB2cTradeGetAPIRequest.go @@ -0,0 +1,80 @@ +package nlife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售+平台查询订单 API请求 +alibaba.nlife.b2c.trade.get + +查询零售+平台创建出来的订单详情 +*/ +type AlibabaNlifeB2cTradeGetAPIRequest struct { + model.Params + // 零售+平台订单号,和out_trade_no不能同时为空 + _tradeNo string + // 外部订单号,和trade_no不能同时为空 + _outTradeNo string + // 零售+门店ID,如果传递的是outTradeNola,那么这个是必传的 + _storeId string +} + +// 初始化AlibabaNlifeB2cTradeGetAPIRequest对象 +func NewAlibabaNlifeB2cTradeGetRequest() *AlibabaNlifeB2cTradeGetAPIRequest{ + return &AlibabaNlifeB2cTradeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNlifeB2cTradeGetAPIRequest) GetApiMethodName() string { + return "alibaba.nlife.b2c.trade.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNlifeB2cTradeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeNo Setter +// 零售+平台订单号,和out_trade_no不能同时为空 +func (r *AlibabaNlifeB2cTradeGetAPIRequest) SetTradeNo(_tradeNo string) error { + r._tradeNo = _tradeNo + r.Set("trade_no", _tradeNo) + return nil +} + +// TradeNo Getter +func (r AlibabaNlifeB2cTradeGetAPIRequest) GetTradeNo() string { + return r._tradeNo +} +// OutTradeNo Setter +// 外部订单号,和trade_no不能同时为空 +func (r *AlibabaNlifeB2cTradeGetAPIRequest) SetOutTradeNo(_outTradeNo string) error { + r._outTradeNo = _outTradeNo + r.Set("out_trade_no", _outTradeNo) + return nil +} + +// OutTradeNo Getter +func (r AlibabaNlifeB2cTradeGetAPIRequest) GetOutTradeNo() string { + return r._outTradeNo +} +// StoreId Setter +// 零售+门店ID,如果传递的是outTradeNola,那么这个是必传的 +func (r *AlibabaNlifeB2cTradeGetAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaNlifeB2cTradeGetAPIRequest) GetStoreId() string { + return r._storeId +} diff --git a/model/nlife/AlibabaNlifeB2cTradeGetAPIResponse.go b/model/nlife/AlibabaNlifeB2cTradeGetAPIResponse.go new file mode 100644 index 0000000000..211ef96de7 --- /dev/null +++ b/model/nlife/AlibabaNlifeB2cTradeGetAPIResponse.go @@ -0,0 +1,79 @@ +package nlife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售+平台查询订单 API返回值 +alibaba.nlife.b2c.trade.get + +查询零售+平台创建出来的订单详情 +*/ +type AlibabaNlifeB2cTradeGetAPIResponse struct { + model.CommonResponse + AlibabaNlifeB2cTradeGetAPIResponseModel +} + +// 零售+平台查询订单 成功返回结果 +type AlibabaNlifeB2cTradeGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nlife_b2c_trade_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单创建渠道, API("经由零售+平台API创建"), POS("经由零售+平台收银系统创建"), TAOBAO("经由淘宝/天猫创建"); + Channel string `json:"channel,omitempty" xml:"channel,omitempty"` + // 渠道数据,JSON + ChannelData string `json:"channel_data,omitempty" xml:"channel_data,omitempty"` + // 买家ID + BuyerId string `json:"buyer_id,omitempty" xml:"buyer_id,omitempty"` + // 买家类型: TAOBAO_OPENID("经阿里百川淘宝登陆获取到的用户ID"), ALIPAY_OPENID("经蚂蚁金服开放平台支付宝App登陆获得的用户ID"), WECHAT_OPENID("经微信开放平台微信App登陆获得的用户id"), PHONE_NUMBER("通过手机号码登陆"), APP_USERID("商户自由的用户ID"), ANONYMOUS_USER("匿名用户"); + BuyerIdType string `json:"buyer_id_type,omitempty" xml:"buyer_id_type,omitempty"` + // 商户自有的会员卡号 + OutCardNo string `json:"out_card_no,omitempty" xml:"out_card_no,omitempty"` + // 订单描述 + OrderBody string `json:"order_body,omitempty" xml:"order_body,omitempty"` + // 导购员ID + SalesId string `json:"sales_id,omitempty" xml:"sales_id,omitempty"` + // 购买的商品列表 + GoodsList []Goods `json:"goods_list,omitempty" xml:"goods_list>goods,omitempty"` + // 订单总金额 基础单位,人民币 分 + TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"` + // 支付资金渠道列表 + FundBillList []FundBill `json:"fund_bill_list,omitempty" xml:"fund_bill_list>fund_bill,omitempty"` + // 提货方式: LOGISTICS("物流发货"), SELF_DELIVERY("门店自提"); + PickingUp string `json:"picking_up,omitempty" xml:"picking_up,omitempty"` + // 创建时间 + GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` + // 支付时间 + GmtPay string `json:"gmt_pay,omitempty" xml:"gmt_pay,omitempty"` + // 订单取消时间 + GmtCancel string `json:"gmt_cancel,omitempty" xml:"gmt_cancel,omitempty"` + // 退款列表 + RefundList []Refund `json:"refund_list,omitempty" xml:"refund_list>refund,omitempty"` + // 退款状态: REFUNED("已全额退款"), REFUNDED_PART("已部分退货"); + RefundStatus string `json:"refund_status,omitempty" xml:"refund_status,omitempty"` + // 物流状态: WAIT_FOR_CONSIGN("有待发货商品"), WAIT_FOR_SIGN("全部商品已发货"), SIGNED("全部商品已签收"), REJECTED("全部商品已拒收"); + LogisticsStatus string `json:"logistics_status,omitempty" xml:"logistics_status,omitempty"` + // 物流状态列表 + LogisticsStatusList []LogisticsStatus `json:"logistics_status_list,omitempty" xml:"logistics_status_list>logistics_status,omitempty"` + // 扩展参数 JSON + ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` + // 透传参数,格式自定,查询时原样返回 + Attachment string `json:"attachment,omitempty" xml:"attachment,omitempty"` + // payStatus + PayStatus string `json:"pay_status,omitempty" xml:"pay_status,omitempty"` + // 零售+订单号 + TradeNo string `json:"trade_no,omitempty" xml:"trade_no,omitempty"` + // 外部业务方订单号 + OutTradeNo string `json:"out_trade_no,omitempty" xml:"out_trade_no,omitempty"` + // 全渠道订单号 + OmniTradeNo string `json:"omni_trade_no,omitempty" xml:"omni_trade_no,omitempty"` + // 订单所在的零售+门店ID + StoreId string `json:"store_id,omitempty" xml:"store_id,omitempty"` + // 收银员名称 + SalesName string `json:"sales_name,omitempty" xml:"sales_name,omitempty"` + // 0:门店订单;1:全渠道订单;3:网直供订单 + TradeBizType *model.File `json:"trade_biz_type,omitempty" xml:"trade_biz_type,omitempty"` +} diff --git a/model/nlife/AlibabaNlifeB2cTradeGetResponse.go b/model/nlife/AlibabaNlifeB2cTradeGetResponse.go deleted file mode 100644 index b450db265b..0000000000 --- a/model/nlife/AlibabaNlifeB2cTradeGetResponse.go +++ /dev/null @@ -1,79 +0,0 @@ -package nlife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售+平台查询订单 API返回值 -alibaba.nlife.b2c.trade.get - -查询零售+平台创建出来的订单详情 -*/ -type AlibabaNlifeB2cTradeGetAPIResponse struct { - model.CommonResponse - AlibabaNlifeB2cTradeGetResponse -} - -// 零售+平台查询订单 成功返回结果 -type AlibabaNlifeB2cTradeGetResponse struct { - XMLName xml.Name `xml:"alibaba_nlife_b2c_trade_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单创建渠道, API("经由零售+平台API创建"), POS("经由零售+平台收银系统创建"), TAOBAO("经由淘宝/天猫创建"); - Channel string `json:"channel,omitempty" xml:"channel,omitempty"` - // 渠道数据,JSON - ChannelData string `json:"channel_data,omitempty" xml:"channel_data,omitempty"` - // 买家ID - BuyerId string `json:"buyer_id,omitempty" xml:"buyer_id,omitempty"` - // 买家类型: TAOBAO_OPENID("经阿里百川淘宝登陆获取到的用户ID"), ALIPAY_OPENID("经蚂蚁金服开放平台支付宝App登陆获得的用户ID"), WECHAT_OPENID("经微信开放平台微信App登陆获得的用户id"), PHONE_NUMBER("通过手机号码登陆"), APP_USERID("商户自由的用户ID"), ANONYMOUS_USER("匿名用户"); - BuyerIdType string `json:"buyer_id_type,omitempty" xml:"buyer_id_type,omitempty"` - // 商户自有的会员卡号 - OutCardNo string `json:"out_card_no,omitempty" xml:"out_card_no,omitempty"` - // 订单描述 - OrderBody string `json:"order_body,omitempty" xml:"order_body,omitempty"` - // 导购员ID - SalesId string `json:"sales_id,omitempty" xml:"sales_id,omitempty"` - // 购买的商品列表 - GoodsList []Goods `json:"goods_list,omitempty" xml:"goods_list>goods,omitempty"` - // 订单总金额 基础单位,人民币 分 - TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"` - // 支付资金渠道列表 - FundBillList []FundBill `json:"fund_bill_list,omitempty" xml:"fund_bill_list>fund_bill,omitempty"` - // 提货方式: LOGISTICS("物流发货"), SELF_DELIVERY("门店自提"); - PickingUp string `json:"picking_up,omitempty" xml:"picking_up,omitempty"` - // 创建时间 - GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` - // 支付时间 - GmtPay string `json:"gmt_pay,omitempty" xml:"gmt_pay,omitempty"` - // 订单取消时间 - GmtCancel string `json:"gmt_cancel,omitempty" xml:"gmt_cancel,omitempty"` - // 退款列表 - RefundList []Refund `json:"refund_list,omitempty" xml:"refund_list>refund,omitempty"` - // 退款状态: REFUNED("已全额退款"), REFUNDED_PART("已部分退货"); - RefundStatus string `json:"refund_status,omitempty" xml:"refund_status,omitempty"` - // 物流状态: WAIT_FOR_CONSIGN("有待发货商品"), WAIT_FOR_SIGN("全部商品已发货"), SIGNED("全部商品已签收"), REJECTED("全部商品已拒收"); - LogisticsStatus string `json:"logistics_status,omitempty" xml:"logistics_status,omitempty"` - // 物流状态列表 - LogisticsStatusList []LogisticsStatus `json:"logistics_status_list,omitempty" xml:"logistics_status_list>logistics_status,omitempty"` - // 扩展参数 JSON - ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` - // 透传参数,格式自定,查询时原样返回 - Attachment string `json:"attachment,omitempty" xml:"attachment,omitempty"` - // payStatus - PayStatus string `json:"pay_status,omitempty" xml:"pay_status,omitempty"` - // 零售+订单号 - TradeNo string `json:"trade_no,omitempty" xml:"trade_no,omitempty"` - // 外部业务方订单号 - OutTradeNo string `json:"out_trade_no,omitempty" xml:"out_trade_no,omitempty"` - // 全渠道订单号 - OmniTradeNo string `json:"omni_trade_no,omitempty" xml:"omni_trade_no,omitempty"` - // 订单所在的零售+门店ID - StoreId string `json:"store_id,omitempty" xml:"store_id,omitempty"` - // 收银员名称 - SalesName string `json:"sales_name,omitempty" xml:"sales_name,omitempty"` - // 0:门店订单;1:全渠道订单;3:网直供订单 - TradeBizType *model.File `json:"trade_biz_type,omitempty" xml:"trade_biz_type,omitempty"` -} diff --git a/model/nlife/AlibabaNlifeB2cTradePayAPIRequest.go b/model/nlife/AlibabaNlifeB2cTradePayAPIRequest.go new file mode 100644 index 0000000000..0d3143cbf5 --- /dev/null +++ b/model/nlife/AlibabaNlifeB2cTradePayAPIRequest.go @@ -0,0 +1,178 @@ +package nlife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售+平台支付订单 API请求 +alibaba.nlife.b2c.trade.pay + +零售+平台支付接口,外部商户调用此接口告知零售+支付结果,保持订单状态同步 +*/ +type AlibabaNlifeB2cTradePayAPIRequest struct { + model.Params + // 零售+平台订单号,和out_trade_no不能同时为空 + _tradeNo string + // 提货方式: LOGISTICS("物流发货"), SELF_DELIVERY("门店自提"); + _pickingUp string + // 收货人 + _consignee string + // 收货人电话 + _consigneePhoneNum string + // 收货人地址 + _consigneeAddress string + // ISV处支付时间 + _gmtPayment string + // 支付资金各渠道列表 + _fundBillList []FundBill + // 外部订单号,和trade_no不能同时为空 + _outTradeNo string + // 实付金额,单位人民币分;该字段实际为必选,为兼容已经接入的isv设置成可选 + _actualPayFee int64 + // 只传out_trade_no时候,零售+门店号一定要传 + _storeId string +} + +// 初始化AlibabaNlifeB2cTradePayAPIRequest对象 +func NewAlibabaNlifeB2cTradePayRequest() *AlibabaNlifeB2cTradePayAPIRequest{ + return &AlibabaNlifeB2cTradePayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNlifeB2cTradePayAPIRequest) GetApiMethodName() string { + return "alibaba.nlife.b2c.trade.pay" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNlifeB2cTradePayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeNo Setter +// 零售+平台订单号,和out_trade_no不能同时为空 +func (r *AlibabaNlifeB2cTradePayAPIRequest) SetTradeNo(_tradeNo string) error { + r._tradeNo = _tradeNo + r.Set("trade_no", _tradeNo) + return nil +} + +// TradeNo Getter +func (r AlibabaNlifeB2cTradePayAPIRequest) GetTradeNo() string { + return r._tradeNo +} +// PickingUp Setter +// 提货方式: LOGISTICS("物流发货"), SELF_DELIVERY("门店自提"); +func (r *AlibabaNlifeB2cTradePayAPIRequest) SetPickingUp(_pickingUp string) error { + r._pickingUp = _pickingUp + r.Set("picking_up", _pickingUp) + return nil +} + +// PickingUp Getter +func (r AlibabaNlifeB2cTradePayAPIRequest) GetPickingUp() string { + return r._pickingUp +} +// Consignee Setter +// 收货人 +func (r *AlibabaNlifeB2cTradePayAPIRequest) SetConsignee(_consignee string) error { + r._consignee = _consignee + r.Set("consignee", _consignee) + return nil +} + +// Consignee Getter +func (r AlibabaNlifeB2cTradePayAPIRequest) GetConsignee() string { + return r._consignee +} +// ConsigneePhoneNum Setter +// 收货人电话 +func (r *AlibabaNlifeB2cTradePayAPIRequest) SetConsigneePhoneNum(_consigneePhoneNum string) error { + r._consigneePhoneNum = _consigneePhoneNum + r.Set("consignee_phone_num", _consigneePhoneNum) + return nil +} + +// ConsigneePhoneNum Getter +func (r AlibabaNlifeB2cTradePayAPIRequest) GetConsigneePhoneNum() string { + return r._consigneePhoneNum +} +// ConsigneeAddress Setter +// 收货人地址 +func (r *AlibabaNlifeB2cTradePayAPIRequest) SetConsigneeAddress(_consigneeAddress string) error { + r._consigneeAddress = _consigneeAddress + r.Set("consignee_address", _consigneeAddress) + return nil +} + +// ConsigneeAddress Getter +func (r AlibabaNlifeB2cTradePayAPIRequest) GetConsigneeAddress() string { + return r._consigneeAddress +} +// GmtPayment Setter +// ISV处支付时间 +func (r *AlibabaNlifeB2cTradePayAPIRequest) SetGmtPayment(_gmtPayment string) error { + r._gmtPayment = _gmtPayment + r.Set("gmt_payment", _gmtPayment) + return nil +} + +// GmtPayment Getter +func (r AlibabaNlifeB2cTradePayAPIRequest) GetGmtPayment() string { + return r._gmtPayment +} +// FundBillList Setter +// 支付资金各渠道列表 +func (r *AlibabaNlifeB2cTradePayAPIRequest) SetFundBillList(_fundBillList []FundBill) error { + r._fundBillList = _fundBillList + r.Set("fund_bill_list", _fundBillList) + return nil +} + +// FundBillList Getter +func (r AlibabaNlifeB2cTradePayAPIRequest) GetFundBillList() []FundBill { + return r._fundBillList +} +// OutTradeNo Setter +// 外部订单号,和trade_no不能同时为空 +func (r *AlibabaNlifeB2cTradePayAPIRequest) SetOutTradeNo(_outTradeNo string) error { + r._outTradeNo = _outTradeNo + r.Set("out_trade_no", _outTradeNo) + return nil +} + +// OutTradeNo Getter +func (r AlibabaNlifeB2cTradePayAPIRequest) GetOutTradeNo() string { + return r._outTradeNo +} +// ActualPayFee Setter +// 实付金额,单位人民币分;该字段实际为必选,为兼容已经接入的isv设置成可选 +func (r *AlibabaNlifeB2cTradePayAPIRequest) SetActualPayFee(_actualPayFee int64) error { + r._actualPayFee = _actualPayFee + r.Set("actual_pay_fee", _actualPayFee) + return nil +} + +// ActualPayFee Getter +func (r AlibabaNlifeB2cTradePayAPIRequest) GetActualPayFee() int64 { + return r._actualPayFee +} +// StoreId Setter +// 只传out_trade_no时候,零售+门店号一定要传 +func (r *AlibabaNlifeB2cTradePayAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaNlifeB2cTradePayAPIRequest) GetStoreId() string { + return r._storeId +} diff --git a/model/nlife/AlibabaNlifeB2cTradePayAPIResponse.go b/model/nlife/AlibabaNlifeB2cTradePayAPIResponse.go new file mode 100644 index 0000000000..8ec8b0e953 --- /dev/null +++ b/model/nlife/AlibabaNlifeB2cTradePayAPIResponse.go @@ -0,0 +1,29 @@ +package nlife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售+平台支付订单 API返回值 +alibaba.nlife.b2c.trade.pay + +零售+平台支付接口,外部商户调用此接口告知零售+支付结果,保持订单状态同步 +*/ +type AlibabaNlifeB2cTradePayAPIResponse struct { + model.CommonResponse + AlibabaNlifeB2cTradePayAPIResponseModel +} + +// 零售+平台支付订单 成功返回结果 +type AlibabaNlifeB2cTradePayAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nlife_b2c_trade_pay_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 扩展参数 + ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` + // gmtPayment + GmtPayment string `json:"gmt_payment,omitempty" xml:"gmt_payment,omitempty"` +} diff --git a/model/nlife/AlibabaNlifeB2cTradePayResponse.go b/model/nlife/AlibabaNlifeB2cTradePayResponse.go deleted file mode 100644 index c07afc1ba2..0000000000 --- a/model/nlife/AlibabaNlifeB2cTradePayResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package nlife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售+平台支付订单 API返回值 -alibaba.nlife.b2c.trade.pay - -零售+平台支付接口,外部商户调用此接口告知零售+支付结果,保持订单状态同步 -*/ -type AlibabaNlifeB2cTradePayAPIResponse struct { - model.CommonResponse - AlibabaNlifeB2cTradePayResponse -} - -// 零售+平台支付订单 成功返回结果 -type AlibabaNlifeB2cTradePayResponse struct { - XMLName xml.Name `xml:"alibaba_nlife_b2c_trade_pay_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 扩展参数 - ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` - // gmtPayment - GmtPayment string `json:"gmt_payment,omitempty" xml:"gmt_payment,omitempty"` -} diff --git a/model/nlife/AlibabaNlifeB2cTradeRefundAPIRequest.go b/model/nlife/AlibabaNlifeB2cTradeRefundAPIRequest.go new file mode 100644 index 0000000000..b4ee0e469a --- /dev/null +++ b/model/nlife/AlibabaNlifeB2cTradeRefundAPIRequest.go @@ -0,0 +1,136 @@ +package nlife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售+请求退款 API请求 +alibaba.nlife.b2c.trade.refund + +零售+平台请求退款接口,在零售+平台不会有资金流变动,只是订单状态的更新 +*/ +type AlibabaNlifeB2cTradeRefundAPIRequest struct { + model.Params + // 零售+平台订单号,和out_trade_no不能同时为空 + _tradeNo string + // 外部请求号 + _outRequestNo string + // 退款资金列表 + _refundBillList []FundBill + // 所退货物的ID列表,逗号分隔商品组,冒号分隔商品和退货数量,支持三种方式退。 条码模式:barcode1:3,barcode2:2 表示barcode1退3件,barcode2退2件。 item_sku模式:itemId1_skuId1:3,itemId2_skuId2:2 表示itemId1_skuId1这个商品退3件,itemId2_skuId2这个商品退2件。 唯一码模式:uniqeueCodeA:1,uniqeueCodeA:1,因唯一码指定到唯一一件商品,退货数量都是1。 + _refundGoodsList []string + // 外部订单号,和trade_no不能同时为空 + _outTradeNo string + // 零售+门店ID + _storeId string + // 退积分,ISV自行算好 + _refundPoints int64 +} + +// 初始化AlibabaNlifeB2cTradeRefundAPIRequest对象 +func NewAlibabaNlifeB2cTradeRefundRequest() *AlibabaNlifeB2cTradeRefundAPIRequest{ + return &AlibabaNlifeB2cTradeRefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNlifeB2cTradeRefundAPIRequest) GetApiMethodName() string { + return "alibaba.nlife.b2c.trade.refund" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNlifeB2cTradeRefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeNo Setter +// 零售+平台订单号,和out_trade_no不能同时为空 +func (r *AlibabaNlifeB2cTradeRefundAPIRequest) SetTradeNo(_tradeNo string) error { + r._tradeNo = _tradeNo + r.Set("trade_no", _tradeNo) + return nil +} + +// TradeNo Getter +func (r AlibabaNlifeB2cTradeRefundAPIRequest) GetTradeNo() string { + return r._tradeNo +} +// OutRequestNo Setter +// 外部请求号 +func (r *AlibabaNlifeB2cTradeRefundAPIRequest) SetOutRequestNo(_outRequestNo string) error { + r._outRequestNo = _outRequestNo + r.Set("out_request_no", _outRequestNo) + return nil +} + +// OutRequestNo Getter +func (r AlibabaNlifeB2cTradeRefundAPIRequest) GetOutRequestNo() string { + return r._outRequestNo +} +// RefundBillList Setter +// 退款资金列表 +func (r *AlibabaNlifeB2cTradeRefundAPIRequest) SetRefundBillList(_refundBillList []FundBill) error { + r._refundBillList = _refundBillList + r.Set("refund_bill_list", _refundBillList) + return nil +} + +// RefundBillList Getter +func (r AlibabaNlifeB2cTradeRefundAPIRequest) GetRefundBillList() []FundBill { + return r._refundBillList +} +// RefundGoodsList Setter +// 所退货物的ID列表,逗号分隔商品组,冒号分隔商品和退货数量,支持三种方式退。 条码模式:barcode1:3,barcode2:2 表示barcode1退3件,barcode2退2件。 item_sku模式:itemId1_skuId1:3,itemId2_skuId2:2 表示itemId1_skuId1这个商品退3件,itemId2_skuId2这个商品退2件。 唯一码模式:uniqeueCodeA:1,uniqeueCodeA:1,因唯一码指定到唯一一件商品,退货数量都是1。 +func (r *AlibabaNlifeB2cTradeRefundAPIRequest) SetRefundGoodsList(_refundGoodsList []string) error { + r._refundGoodsList = _refundGoodsList + r.Set("refund_goods_list", _refundGoodsList) + return nil +} + +// RefundGoodsList Getter +func (r AlibabaNlifeB2cTradeRefundAPIRequest) GetRefundGoodsList() []string { + return r._refundGoodsList +} +// OutTradeNo Setter +// 外部订单号,和trade_no不能同时为空 +func (r *AlibabaNlifeB2cTradeRefundAPIRequest) SetOutTradeNo(_outTradeNo string) error { + r._outTradeNo = _outTradeNo + r.Set("out_trade_no", _outTradeNo) + return nil +} + +// OutTradeNo Getter +func (r AlibabaNlifeB2cTradeRefundAPIRequest) GetOutTradeNo() string { + return r._outTradeNo +} +// StoreId Setter +// 零售+门店ID +func (r *AlibabaNlifeB2cTradeRefundAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaNlifeB2cTradeRefundAPIRequest) GetStoreId() string { + return r._storeId +} +// RefundPoints Setter +// 退积分,ISV自行算好 +func (r *AlibabaNlifeB2cTradeRefundAPIRequest) SetRefundPoints(_refundPoints int64) error { + r._refundPoints = _refundPoints + r.Set("refund_points", _refundPoints) + return nil +} + +// RefundPoints Getter +func (r AlibabaNlifeB2cTradeRefundAPIRequest) GetRefundPoints() int64 { + return r._refundPoints +} diff --git a/model/nlife/AlibabaNlifeB2cTradeRefundAPIResponse.go b/model/nlife/AlibabaNlifeB2cTradeRefundAPIResponse.go new file mode 100644 index 0000000000..a0d4ecf181 --- /dev/null +++ b/model/nlife/AlibabaNlifeB2cTradeRefundAPIResponse.go @@ -0,0 +1,29 @@ +package nlife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售+请求退款 API返回值 +alibaba.nlife.b2c.trade.refund + +零售+平台请求退款接口,在零售+平台不会有资金流变动,只是订单状态的更新 +*/ +type AlibabaNlifeB2cTradeRefundAPIResponse struct { + model.CommonResponse + AlibabaNlifeB2cTradeRefundAPIResponseModel +} + +// 零售+请求退款 成功返回结果 +type AlibabaNlifeB2cTradeRefundAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nlife_b2c_trade_refund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 退款时间 + GmtRefund string `json:"gmt_refund,omitempty" xml:"gmt_refund,omitempty"` + // 扩展参数 + ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` +} diff --git a/model/nlife/AlibabaNlifeB2cTradeRefundResponse.go b/model/nlife/AlibabaNlifeB2cTradeRefundResponse.go deleted file mode 100644 index 2dad473431..0000000000 --- a/model/nlife/AlibabaNlifeB2cTradeRefundResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package nlife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售+请求退款 API返回值 -alibaba.nlife.b2c.trade.refund - -零售+平台请求退款接口,在零售+平台不会有资金流变动,只是订单状态的更新 -*/ -type AlibabaNlifeB2cTradeRefundAPIResponse struct { - model.CommonResponse - AlibabaNlifeB2cTradeRefundResponse -} - -// 零售+请求退款 成功返回结果 -type AlibabaNlifeB2cTradeRefundResponse struct { - XMLName xml.Name `xml:"alibaba_nlife_b2c_trade_refund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 退款时间 - GmtRefund string `json:"gmt_refund,omitempty" xml:"gmt_refund,omitempty"` - // 扩展参数 - ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` -} diff --git a/model/nlife/AlibabaNlifeB2cTradestatusDriveAPIRequest.go b/model/nlife/AlibabaNlifeB2cTradestatusDriveAPIRequest.go new file mode 100644 index 0000000000..ce0abefc7d --- /dev/null +++ b/model/nlife/AlibabaNlifeB2cTradestatusDriveAPIRequest.go @@ -0,0 +1,136 @@ +package nlife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +b2c订单状态驱动 API请求 +alibaba.nlife.b2c.tradestatus.drive + +用于驱动零售+订单状态 +*/ +type AlibabaNlifeB2cTradestatusDriveAPIRequest struct { + model.Params + // 零售门店在零售+平台的ID + _storeId string + // APP:是指线上销售应用,POS:是指现场收银应用 + _channel string + // 对零售+为外部订单号,对业务方为订单号 + _outTradeNo string + // 零售+平台订单号,和out_trade_no不能同时为空 + _tradeNo string + // 接口类型:CONFIRM(收货)DELIVER(发货) + _action string + // 货流信息 + _logisticsInfo *LogisticsInfo + // 扩展参数 JSON格式 + _extendParams string +} + +// 初始化AlibabaNlifeB2cTradestatusDriveAPIRequest对象 +func NewAlibabaNlifeB2cTradestatusDriveRequest() *AlibabaNlifeB2cTradestatusDriveAPIRequest{ + return &AlibabaNlifeB2cTradestatusDriveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNlifeB2cTradestatusDriveAPIRequest) GetApiMethodName() string { + return "alibaba.nlife.b2c.tradestatus.drive" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNlifeB2cTradestatusDriveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 零售门店在零售+平台的ID +func (r *AlibabaNlifeB2cTradestatusDriveAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaNlifeB2cTradestatusDriveAPIRequest) GetStoreId() string { + return r._storeId +} +// Channel Setter +// APP:是指线上销售应用,POS:是指现场收银应用 +func (r *AlibabaNlifeB2cTradestatusDriveAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r AlibabaNlifeB2cTradestatusDriveAPIRequest) GetChannel() string { + return r._channel +} +// OutTradeNo Setter +// 对零售+为外部订单号,对业务方为订单号 +func (r *AlibabaNlifeB2cTradestatusDriveAPIRequest) SetOutTradeNo(_outTradeNo string) error { + r._outTradeNo = _outTradeNo + r.Set("out_trade_no", _outTradeNo) + return nil +} + +// OutTradeNo Getter +func (r AlibabaNlifeB2cTradestatusDriveAPIRequest) GetOutTradeNo() string { + return r._outTradeNo +} +// TradeNo Setter +// 零售+平台订单号,和out_trade_no不能同时为空 +func (r *AlibabaNlifeB2cTradestatusDriveAPIRequest) SetTradeNo(_tradeNo string) error { + r._tradeNo = _tradeNo + r.Set("trade_no", _tradeNo) + return nil +} + +// TradeNo Getter +func (r AlibabaNlifeB2cTradestatusDriveAPIRequest) GetTradeNo() string { + return r._tradeNo +} +// Action Setter +// 接口类型:CONFIRM(收货)DELIVER(发货) +func (r *AlibabaNlifeB2cTradestatusDriveAPIRequest) SetAction(_action string) error { + r._action = _action + r.Set("action", _action) + return nil +} + +// Action Getter +func (r AlibabaNlifeB2cTradestatusDriveAPIRequest) GetAction() string { + return r._action +} +// LogisticsInfo Setter +// 货流信息 +func (r *AlibabaNlifeB2cTradestatusDriveAPIRequest) SetLogisticsInfo(_logisticsInfo *LogisticsInfo) error { + r._logisticsInfo = _logisticsInfo + r.Set("logistics_info", _logisticsInfo) + return nil +} + +// LogisticsInfo Getter +func (r AlibabaNlifeB2cTradestatusDriveAPIRequest) GetLogisticsInfo() *LogisticsInfo { + return r._logisticsInfo +} +// ExtendParams Setter +// 扩展参数 JSON格式 +func (r *AlibabaNlifeB2cTradestatusDriveAPIRequest) SetExtendParams(_extendParams string) error { + r._extendParams = _extendParams + r.Set("extend_params", _extendParams) + return nil +} + +// ExtendParams Getter +func (r AlibabaNlifeB2cTradestatusDriveAPIRequest) GetExtendParams() string { + return r._extendParams +} diff --git a/model/nlife/AlibabaNlifeB2cTradestatusDriveAPIResponse.go b/model/nlife/AlibabaNlifeB2cTradestatusDriveAPIResponse.go new file mode 100644 index 0000000000..e2dfbed987 --- /dev/null +++ b/model/nlife/AlibabaNlifeB2cTradestatusDriveAPIResponse.go @@ -0,0 +1,27 @@ +package nlife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +b2c订单状态驱动 API返回值 +alibaba.nlife.b2c.tradestatus.drive + +用于驱动零售+订单状态 +*/ +type AlibabaNlifeB2cTradestatusDriveAPIResponse struct { + model.CommonResponse + AlibabaNlifeB2cTradestatusDriveAPIResponseModel +} + +// b2c订单状态驱动 成功返回结果 +type AlibabaNlifeB2cTradestatusDriveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nlife_b2c_tradestatus_drive_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 描述 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/nlife/AlibabaNlifeB2cTradestatusDriveResponse.go b/model/nlife/AlibabaNlifeB2cTradestatusDriveResponse.go deleted file mode 100644 index dbf3f8c05f..0000000000 --- a/model/nlife/AlibabaNlifeB2cTradestatusDriveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nlife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -b2c订单状态驱动 API返回值 -alibaba.nlife.b2c.tradestatus.drive - -用于驱动零售+订单状态 -*/ -type AlibabaNlifeB2cTradestatusDriveAPIResponse struct { - model.CommonResponse - AlibabaNlifeB2cTradestatusDriveResponse -} - -// b2c订单状态驱动 成功返回结果 -type AlibabaNlifeB2cTradestatusDriveResponse struct { - XMLName xml.Name `xml:"alibaba_nlife_b2c_tradestatus_drive_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 描述 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/nlife/AlibabaNlifeStoreDeliverdetailGetAPIRequest.go b/model/nlife/AlibabaNlifeStoreDeliverdetailGetAPIRequest.go new file mode 100644 index 0000000000..9776721366 --- /dev/null +++ b/model/nlife/AlibabaNlifeStoreDeliverdetailGetAPIRequest.go @@ -0,0 +1,66 @@ +package nlife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询发货单详情 API请求 +alibaba.nlife.store.deliverdetail.get + +查询发货单详情 +*/ +type AlibabaNlifeStoreDeliverdetailGetAPIRequest struct { + model.Params + // 发货单号 + _consignNo string + // 门店id + _storeId int64 +} + +// 初始化AlibabaNlifeStoreDeliverdetailGetAPIRequest对象 +func NewAlibabaNlifeStoreDeliverdetailGetRequest() *AlibabaNlifeStoreDeliverdetailGetAPIRequest{ + return &AlibabaNlifeStoreDeliverdetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNlifeStoreDeliverdetailGetAPIRequest) GetApiMethodName() string { + return "alibaba.nlife.store.deliverdetail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNlifeStoreDeliverdetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ConsignNo Setter +// 发货单号 +func (r *AlibabaNlifeStoreDeliverdetailGetAPIRequest) SetConsignNo(_consignNo string) error { + r._consignNo = _consignNo + r.Set("consign_no", _consignNo) + return nil +} + +// ConsignNo Getter +func (r AlibabaNlifeStoreDeliverdetailGetAPIRequest) GetConsignNo() string { + return r._consignNo +} +// StoreId Setter +// 门店id +func (r *AlibabaNlifeStoreDeliverdetailGetAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaNlifeStoreDeliverdetailGetAPIRequest) GetStoreId() int64 { + return r._storeId +} diff --git a/model/nlife/AlibabaNlifeStoreDeliverdetailGetAPIResponse.go b/model/nlife/AlibabaNlifeStoreDeliverdetailGetAPIResponse.go new file mode 100644 index 0000000000..b4ae8679ac --- /dev/null +++ b/model/nlife/AlibabaNlifeStoreDeliverdetailGetAPIResponse.go @@ -0,0 +1,27 @@ +package nlife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询发货单详情 API返回值 +alibaba.nlife.store.deliverdetail.get + +查询发货单详情 +*/ +type AlibabaNlifeStoreDeliverdetailGetAPIResponse struct { + model.CommonResponse + AlibabaNlifeStoreDeliverdetailGetAPIResponseModel +} + +// 查询发货单详情 成功返回结果 +type AlibabaNlifeStoreDeliverdetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nlife_store_deliverdetail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果数据 + Data *DeliverDetailDo `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/nlife/AlibabaNlifeStoreDeliverdetailGetResponse.go b/model/nlife/AlibabaNlifeStoreDeliverdetailGetResponse.go deleted file mode 100644 index f2192894fa..0000000000 --- a/model/nlife/AlibabaNlifeStoreDeliverdetailGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nlife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询发货单详情 API返回值 -alibaba.nlife.store.deliverdetail.get - -查询发货单详情 -*/ -type AlibabaNlifeStoreDeliverdetailGetAPIResponse struct { - model.CommonResponse - AlibabaNlifeStoreDeliverdetailGetResponse -} - -// 查询发货单详情 成功返回结果 -type AlibabaNlifeStoreDeliverdetailGetResponse struct { - XMLName xml.Name `xml:"alibaba_nlife_store_deliverdetail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果数据 - Data *DeliverDetailDo `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/nlife/AlibabaNlifeStoreDeliversGetAPIRequest.go b/model/nlife/AlibabaNlifeStoreDeliversGetAPIRequest.go new file mode 100644 index 0000000000..550151ff0f --- /dev/null +++ b/model/nlife/AlibabaNlifeStoreDeliversGetAPIRequest.go @@ -0,0 +1,94 @@ +package nlife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取门店采购单下的发货单列表 API请求 +alibaba.nlife.store.delivers.get + +获取门店采购单下的发货单列表 +*/ +type AlibabaNlifeStoreDeliversGetAPIRequest struct { + model.Params + // 门店采购订单号 + _tradeNo string + // 零售商的门店id + _storeId int64 + // 每页的数量 + _pageSize int64 + // 查询的页码 + _pageNo int64 +} + +// 初始化AlibabaNlifeStoreDeliversGetAPIRequest对象 +func NewAlibabaNlifeStoreDeliversGetRequest() *AlibabaNlifeStoreDeliversGetAPIRequest{ + return &AlibabaNlifeStoreDeliversGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNlifeStoreDeliversGetAPIRequest) GetApiMethodName() string { + return "alibaba.nlife.store.delivers.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNlifeStoreDeliversGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeNo Setter +// 门店采购订单号 +func (r *AlibabaNlifeStoreDeliversGetAPIRequest) SetTradeNo(_tradeNo string) error { + r._tradeNo = _tradeNo + r.Set("trade_no", _tradeNo) + return nil +} + +// TradeNo Getter +func (r AlibabaNlifeStoreDeliversGetAPIRequest) GetTradeNo() string { + return r._tradeNo +} +// StoreId Setter +// 零售商的门店id +func (r *AlibabaNlifeStoreDeliversGetAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaNlifeStoreDeliversGetAPIRequest) GetStoreId() int64 { + return r._storeId +} +// PageSize Setter +// 每页的数量 +func (r *AlibabaNlifeStoreDeliversGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaNlifeStoreDeliversGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 查询的页码 +func (r *AlibabaNlifeStoreDeliversGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r AlibabaNlifeStoreDeliversGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/nlife/AlibabaNlifeStoreDeliversGetAPIResponse.go b/model/nlife/AlibabaNlifeStoreDeliversGetAPIResponse.go new file mode 100644 index 0000000000..caa8a266cd --- /dev/null +++ b/model/nlife/AlibabaNlifeStoreDeliversGetAPIResponse.go @@ -0,0 +1,27 @@ +package nlife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取门店采购单下的发货单列表 API返回值 +alibaba.nlife.store.delivers.get + +获取门店采购单下的发货单列表 +*/ +type AlibabaNlifeStoreDeliversGetAPIResponse struct { + model.CommonResponse + AlibabaNlifeStoreDeliversGetAPIResponseModel +} + +// 获取门店采购单下的发货单列表 成功返回结果 +type AlibabaNlifeStoreDeliversGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nlife_store_delivers_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果数据 + Data *DeliverResponseDo `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/nlife/AlibabaNlifeStoreDeliversGetResponse.go b/model/nlife/AlibabaNlifeStoreDeliversGetResponse.go deleted file mode 100644 index e7dd7dbd49..0000000000 --- a/model/nlife/AlibabaNlifeStoreDeliversGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nlife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取门店采购单下的发货单列表 API返回值 -alibaba.nlife.store.delivers.get - -获取门店采购单下的发货单列表 -*/ -type AlibabaNlifeStoreDeliversGetAPIResponse struct { - model.CommonResponse - AlibabaNlifeStoreDeliversGetResponse -} - -// 获取门店采购单下的发货单列表 成功返回结果 -type AlibabaNlifeStoreDeliversGetResponse struct { - XMLName xml.Name `xml:"alibaba_nlife_store_delivers_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果数据 - Data *DeliverResponseDo `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/nlife/AlibabaNlifeStoreItemdetailGetAPIRequest.go b/model/nlife/AlibabaNlifeStoreItemdetailGetAPIRequest.go new file mode 100644 index 0000000000..3fe8ec59fa --- /dev/null +++ b/model/nlife/AlibabaNlifeStoreItemdetailGetAPIRequest.go @@ -0,0 +1,136 @@ +package nlife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品的详情信息 API请求 +alibaba.nlife.store.itemdetail.get + +查询零售加平台上单个商品的详情信息 +*/ +type AlibabaNlifeStoreItemdetailGetAPIRequest struct { + model.Params + // 门店类型: 零售加的门店-RETAIL_PLUS_STORE ; 商户中心门店-PLACE_STORE ; 门店设备号-STORE_DEVICE + _storeIdType string + // 门店ID + _storeId string + // 商品在外部商家的编码(与item_id不能同时为空) + _outerId string + // 商品Item的ID(与outer_id不能同时为空) + _itemId int64 + // skuId列表-可查询指定的sku + _skuIdList []int64 + // 商品来源类型: 0-线上商品; 1-商户导入的线下商品. 如果为空则默认值为0 + _itemType *model.File + // 商家对商品的自用编码 + _code string +} + +// 初始化AlibabaNlifeStoreItemdetailGetAPIRequest对象 +func NewAlibabaNlifeStoreItemdetailGetRequest() *AlibabaNlifeStoreItemdetailGetAPIRequest{ + return &AlibabaNlifeStoreItemdetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNlifeStoreItemdetailGetAPIRequest) GetApiMethodName() string { + return "alibaba.nlife.store.itemdetail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNlifeStoreItemdetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreIdType Setter +// 门店类型: 零售加的门店-RETAIL_PLUS_STORE ; 商户中心门店-PLACE_STORE ; 门店设备号-STORE_DEVICE +func (r *AlibabaNlifeStoreItemdetailGetAPIRequest) SetStoreIdType(_storeIdType string) error { + r._storeIdType = _storeIdType + r.Set("store_id_type", _storeIdType) + return nil +} + +// StoreIdType Getter +func (r AlibabaNlifeStoreItemdetailGetAPIRequest) GetStoreIdType() string { + return r._storeIdType +} +// StoreId Setter +// 门店ID +func (r *AlibabaNlifeStoreItemdetailGetAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaNlifeStoreItemdetailGetAPIRequest) GetStoreId() string { + return r._storeId +} +// OuterId Setter +// 商品在外部商家的编码(与item_id不能同时为空) +func (r *AlibabaNlifeStoreItemdetailGetAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r AlibabaNlifeStoreItemdetailGetAPIRequest) GetOuterId() string { + return r._outerId +} +// ItemId Setter +// 商品Item的ID(与outer_id不能同时为空) +func (r *AlibabaNlifeStoreItemdetailGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaNlifeStoreItemdetailGetAPIRequest) GetItemId() int64 { + return r._itemId +} +// SkuIdList Setter +// skuId列表-可查询指定的sku +func (r *AlibabaNlifeStoreItemdetailGetAPIRequest) SetSkuIdList(_skuIdList []int64) error { + r._skuIdList = _skuIdList + r.Set("sku_id_list", _skuIdList) + return nil +} + +// SkuIdList Getter +func (r AlibabaNlifeStoreItemdetailGetAPIRequest) GetSkuIdList() []int64 { + return r._skuIdList +} +// ItemType Setter +// 商品来源类型: 0-线上商品; 1-商户导入的线下商品. 如果为空则默认值为0 +func (r *AlibabaNlifeStoreItemdetailGetAPIRequest) SetItemType(_itemType *model.File) error { + r._itemType = _itemType + r.Set("item_type", _itemType) + return nil +} + +// ItemType Getter +func (r AlibabaNlifeStoreItemdetailGetAPIRequest) GetItemType() *model.File { + return r._itemType +} +// Code Setter +// 商家对商品的自用编码 +func (r *AlibabaNlifeStoreItemdetailGetAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaNlifeStoreItemdetailGetAPIRequest) GetCode() string { + return r._code +} diff --git a/model/nlife/AlibabaNlifeStoreItemdetailGetAPIResponse.go b/model/nlife/AlibabaNlifeStoreItemdetailGetAPIResponse.go new file mode 100644 index 0000000000..731b6fb821 --- /dev/null +++ b/model/nlife/AlibabaNlifeStoreItemdetailGetAPIResponse.go @@ -0,0 +1,29 @@ +package nlife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品的详情信息 API返回值 +alibaba.nlife.store.itemdetail.get + +查询零售加平台上单个商品的详情信息 +*/ +type AlibabaNlifeStoreItemdetailGetAPIResponse struct { + model.CommonResponse + AlibabaNlifeStoreItemdetailGetAPIResponseModel +} + +// 查询商品的详情信息 成功返回结果 +type AlibabaNlifeStoreItemdetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nlife_store_itemdetail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true-查询成功;false-查询失败 + Succes bool `json:"succes,omitempty" xml:"succes,omitempty"` + // 商品详情信息 + Item *RetailItemTopDo `json:"item,omitempty" xml:"item,omitempty"` +} diff --git a/model/nlife/AlibabaNlifeStoreItemdetailGetResponse.go b/model/nlife/AlibabaNlifeStoreItemdetailGetResponse.go deleted file mode 100644 index 1583570fb4..0000000000 --- a/model/nlife/AlibabaNlifeStoreItemdetailGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package nlife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询商品的详情信息 API返回值 -alibaba.nlife.store.itemdetail.get - -查询零售加平台上单个商品的详情信息 -*/ -type AlibabaNlifeStoreItemdetailGetAPIResponse struct { - model.CommonResponse - AlibabaNlifeStoreItemdetailGetResponse -} - -// 查询商品的详情信息 成功返回结果 -type AlibabaNlifeStoreItemdetailGetResponse struct { - XMLName xml.Name `xml:"alibaba_nlife_store_itemdetail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true-查询成功;false-查询失败 - Succes bool `json:"succes,omitempty" xml:"succes,omitempty"` - // 商品详情信息 - Item *RetailItemTopDo `json:"item,omitempty" xml:"item,omitempty"` -} diff --git a/model/nlife/AlibabaNlifeStoreItemdetailsGetAPIRequest.go b/model/nlife/AlibabaNlifeStoreItemdetailsGetAPIRequest.go new file mode 100644 index 0000000000..ce27e8d868 --- /dev/null +++ b/model/nlife/AlibabaNlifeStoreItemdetailsGetAPIRequest.go @@ -0,0 +1,94 @@ +package nlife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取零售加商品详情信息 API请求 +alibaba.nlife.store.itemdetails.get + +批量获取零售加平台上的商品详情信息 +*/ +type AlibabaNlifeStoreItemdetailsGetAPIRequest struct { + model.Params + // 门店ID/设备号 + _storeId string + // 门店类型: 零售加的门店-RETAIL_PLUS_STORE ; 商户中心门店-PLACE_STORE ; 门店设备号-STORE_DEVICE + _storeIdType string + // 查询参数list + _itemQueryDOList []ItemQueryDOList + // 商品来源类型: 0-线上商品; 1-商户导入的线下商品. 如果为空则默认值为0 + _itemType *model.File +} + +// 初始化AlibabaNlifeStoreItemdetailsGetAPIRequest对象 +func NewAlibabaNlifeStoreItemdetailsGetRequest() *AlibabaNlifeStoreItemdetailsGetAPIRequest{ + return &AlibabaNlifeStoreItemdetailsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNlifeStoreItemdetailsGetAPIRequest) GetApiMethodName() string { + return "alibaba.nlife.store.itemdetails.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNlifeStoreItemdetailsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店ID/设备号 +func (r *AlibabaNlifeStoreItemdetailsGetAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaNlifeStoreItemdetailsGetAPIRequest) GetStoreId() string { + return r._storeId +} +// StoreIdType Setter +// 门店类型: 零售加的门店-RETAIL_PLUS_STORE ; 商户中心门店-PLACE_STORE ; 门店设备号-STORE_DEVICE +func (r *AlibabaNlifeStoreItemdetailsGetAPIRequest) SetStoreIdType(_storeIdType string) error { + r._storeIdType = _storeIdType + r.Set("store_id_type", _storeIdType) + return nil +} + +// StoreIdType Getter +func (r AlibabaNlifeStoreItemdetailsGetAPIRequest) GetStoreIdType() string { + return r._storeIdType +} +// ItemQueryDOList Setter +// 查询参数list +func (r *AlibabaNlifeStoreItemdetailsGetAPIRequest) SetItemQueryDOList(_itemQueryDOList []ItemQueryDOList) error { + r._itemQueryDOList = _itemQueryDOList + r.Set("item_query_d_o_list", _itemQueryDOList) + return nil +} + +// ItemQueryDOList Getter +func (r AlibabaNlifeStoreItemdetailsGetAPIRequest) GetItemQueryDOList() []ItemQueryDOList { + return r._itemQueryDOList +} +// ItemType Setter +// 商品来源类型: 0-线上商品; 1-商户导入的线下商品. 如果为空则默认值为0 +func (r *AlibabaNlifeStoreItemdetailsGetAPIRequest) SetItemType(_itemType *model.File) error { + r._itemType = _itemType + r.Set("item_type", _itemType) + return nil +} + +// ItemType Getter +func (r AlibabaNlifeStoreItemdetailsGetAPIRequest) GetItemType() *model.File { + return r._itemType +} diff --git a/model/nlife/AlibabaNlifeStoreItemdetailsGetAPIResponse.go b/model/nlife/AlibabaNlifeStoreItemdetailsGetAPIResponse.go new file mode 100644 index 0000000000..54458c055e --- /dev/null +++ b/model/nlife/AlibabaNlifeStoreItemdetailsGetAPIResponse.go @@ -0,0 +1,31 @@ +package nlife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取零售加商品详情信息 API返回值 +alibaba.nlife.store.itemdetails.get + +批量获取零售加平台上的商品详情信息 +*/ +type AlibabaNlifeStoreItemdetailsGetAPIResponse struct { + model.CommonResponse + AlibabaNlifeStoreItemdetailsGetAPIResponseModel +} + +// 批量获取零售加商品详情信息 成功返回结果 +type AlibabaNlifeStoreItemdetailsGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nlife_store_itemdetails_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品详情列表 + ItemList []RetailItemTopDo `json:"item_list,omitempty" xml:"item_list>retail_item_top_do,omitempty"` + // true-查询成功;false-查询失败 + Succes bool `json:"succes,omitempty" xml:"succes,omitempty"` + // 总数 + Total int64 `json:"total,omitempty" xml:"total,omitempty"` +} diff --git a/model/nlife/AlibabaNlifeStoreItemdetailsGetResponse.go b/model/nlife/AlibabaNlifeStoreItemdetailsGetResponse.go deleted file mode 100644 index 52d3b91495..0000000000 --- a/model/nlife/AlibabaNlifeStoreItemdetailsGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package nlife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量获取零售加商品详情信息 API返回值 -alibaba.nlife.store.itemdetails.get - -批量获取零售加平台上的商品详情信息 -*/ -type AlibabaNlifeStoreItemdetailsGetAPIResponse struct { - model.CommonResponse - AlibabaNlifeStoreItemdetailsGetResponse -} - -// 批量获取零售加商品详情信息 成功返回结果 -type AlibabaNlifeStoreItemdetailsGetResponse struct { - XMLName xml.Name `xml:"alibaba_nlife_store_itemdetails_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品详情列表 - ItemList []RetailItemTopDo `json:"item_list,omitempty" xml:"item_list>retail_item_top_do,omitempty"` - // true-查询成功;false-查询失败 - Succes bool `json:"succes,omitempty" xml:"succes,omitempty"` - // 总数 - Total int64 `json:"total,omitempty" xml:"total,omitempty"` -} diff --git a/model/nlife/AlibabaNlifeStoreItemsGetAPIRequest.go b/model/nlife/AlibabaNlifeStoreItemsGetAPIRequest.go new file mode 100644 index 0000000000..e5b05a6122 --- /dev/null +++ b/model/nlife/AlibabaNlifeStoreItemsGetAPIRequest.go @@ -0,0 +1,206 @@ +package nlife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取门店的商品列表(在售|已下架|全部) API请求 +alibaba.nlife.store.items.get + +利用该接口可以获取到零售+商品服务中符合条件的商品列表,包括在售的、已下架的或者是所有状态的商品。 +*/ +type AlibabaNlifeStoreItemsGetAPIRequest struct { + model.Params + // 门店类型: 零售加的门店-RETAIL_PLUS_STORE ; 商户中心门店-PLACE_STORE ; 门店设备号-STORE_DEVICE + _storeIdType string + // 门店ID/设备号 + _storeId string + // 商品类目ID + _cid int64 + // 品牌ID + _brandId int64 + // 商品状态: ON_SALE-在售 ; OFF_SALE-已下架 ; ALL-全部 + _status string + // 商品类型: STORE_GOODS-经销/现货 ; SUPPLIER_GOODS-代销/网直供 ; TAOKE-淘宝客 ; ALL-全部商品 + _type string + // 商品名称(支持模糊查询) + _title string + // 查询开始时间 + _startModified string + // 查询结束时间 + _endModified string + // 分页的页码 + _pageNo int64 + // 分页时每页的数量 + _pageSize int64 + // 商品的来源:0-从零售加采购的商品;1-商户线下导入的商品 + _itemType int64 +} + +// 初始化AlibabaNlifeStoreItemsGetAPIRequest对象 +func NewAlibabaNlifeStoreItemsGetRequest() *AlibabaNlifeStoreItemsGetAPIRequest{ + return &AlibabaNlifeStoreItemsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNlifeStoreItemsGetAPIRequest) GetApiMethodName() string { + return "alibaba.nlife.store.items.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNlifeStoreItemsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreIdType Setter +// 门店类型: 零售加的门店-RETAIL_PLUS_STORE ; 商户中心门店-PLACE_STORE ; 门店设备号-STORE_DEVICE +func (r *AlibabaNlifeStoreItemsGetAPIRequest) SetStoreIdType(_storeIdType string) error { + r._storeIdType = _storeIdType + r.Set("store_id_type", _storeIdType) + return nil +} + +// StoreIdType Getter +func (r AlibabaNlifeStoreItemsGetAPIRequest) GetStoreIdType() string { + return r._storeIdType +} +// StoreId Setter +// 门店ID/设备号 +func (r *AlibabaNlifeStoreItemsGetAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaNlifeStoreItemsGetAPIRequest) GetStoreId() string { + return r._storeId +} +// Cid Setter +// 商品类目ID +func (r *AlibabaNlifeStoreItemsGetAPIRequest) SetCid(_cid int64) error { + r._cid = _cid + r.Set("cid", _cid) + return nil +} + +// Cid Getter +func (r AlibabaNlifeStoreItemsGetAPIRequest) GetCid() int64 { + return r._cid +} +// BrandId Setter +// 品牌ID +func (r *AlibabaNlifeStoreItemsGetAPIRequest) SetBrandId(_brandId int64) error { + r._brandId = _brandId + r.Set("brand_id", _brandId) + return nil +} + +// BrandId Getter +func (r AlibabaNlifeStoreItemsGetAPIRequest) GetBrandId() int64 { + return r._brandId +} +// Status Setter +// 商品状态: ON_SALE-在售 ; OFF_SALE-已下架 ; ALL-全部 +func (r *AlibabaNlifeStoreItemsGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaNlifeStoreItemsGetAPIRequest) GetStatus() string { + return r._status +} +// Type Setter +// 商品类型: STORE_GOODS-经销/现货 ; SUPPLIER_GOODS-代销/网直供 ; TAOKE-淘宝客 ; ALL-全部商品 +func (r *AlibabaNlifeStoreItemsGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaNlifeStoreItemsGetAPIRequest) GetType() string { + return r._type +} +// Title Setter +// 商品名称(支持模糊查询) +func (r *AlibabaNlifeStoreItemsGetAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r AlibabaNlifeStoreItemsGetAPIRequest) GetTitle() string { + return r._title +} +// StartModified Setter +// 查询开始时间 +func (r *AlibabaNlifeStoreItemsGetAPIRequest) SetStartModified(_startModified string) error { + r._startModified = _startModified + r.Set("start_modified", _startModified) + return nil +} + +// StartModified Getter +func (r AlibabaNlifeStoreItemsGetAPIRequest) GetStartModified() string { + return r._startModified +} +// EndModified Setter +// 查询结束时间 +func (r *AlibabaNlifeStoreItemsGetAPIRequest) SetEndModified(_endModified string) error { + r._endModified = _endModified + r.Set("end_modified", _endModified) + return nil +} + +// EndModified Getter +func (r AlibabaNlifeStoreItemsGetAPIRequest) GetEndModified() string { + return r._endModified +} +// PageNo Setter +// 分页的页码 +func (r *AlibabaNlifeStoreItemsGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r AlibabaNlifeStoreItemsGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 分页时每页的数量 +func (r *AlibabaNlifeStoreItemsGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaNlifeStoreItemsGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// ItemType Setter +// 商品的来源:0-从零售加采购的商品;1-商户线下导入的商品 +func (r *AlibabaNlifeStoreItemsGetAPIRequest) SetItemType(_itemType int64) error { + r._itemType = _itemType + r.Set("item_type", _itemType) + return nil +} + +// ItemType Getter +func (r AlibabaNlifeStoreItemsGetAPIRequest) GetItemType() int64 { + return r._itemType +} diff --git a/model/nlife/AlibabaNlifeStoreItemsGetAPIResponse.go b/model/nlife/AlibabaNlifeStoreItemsGetAPIResponse.go new file mode 100644 index 0000000000..8b5ee5e324 --- /dev/null +++ b/model/nlife/AlibabaNlifeStoreItemsGetAPIResponse.go @@ -0,0 +1,31 @@ +package nlife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取门店的商品列表(在售|已下架|全部) API返回值 +alibaba.nlife.store.items.get + +利用该接口可以获取到零售+商品服务中符合条件的商品列表,包括在售的、已下架的或者是所有状态的商品。 +*/ +type AlibabaNlifeStoreItemsGetAPIResponse struct { + model.CommonResponse + AlibabaNlifeStoreItemsGetAPIResponseModel +} + +// 获取门店的商品列表(在售|已下架|全部) 成功返回结果 +type AlibabaNlifeStoreItemsGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nlife_store_items_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 搜索到符合条件的结果总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 具体的商品信息列表 + ItemList []RetailItemTopDo `json:"item_list,omitempty" xml:"item_list>retail_item_top_do,omitempty"` + // true-查询成功;false-查询失败 + Succes bool `json:"succes,omitempty" xml:"succes,omitempty"` +} diff --git a/model/nlife/AlibabaNlifeStoreItemsGetResponse.go b/model/nlife/AlibabaNlifeStoreItemsGetResponse.go deleted file mode 100644 index 41e44e4cb2..0000000000 --- a/model/nlife/AlibabaNlifeStoreItemsGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package nlife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取门店的商品列表(在售|已下架|全部) API返回值 -alibaba.nlife.store.items.get - -利用该接口可以获取到零售+商品服务中符合条件的商品列表,包括在售的、已下架的或者是所有状态的商品。 -*/ -type AlibabaNlifeStoreItemsGetAPIResponse struct { - model.CommonResponse - AlibabaNlifeStoreItemsGetResponse -} - -// 获取门店的商品列表(在售|已下架|全部) 成功返回结果 -type AlibabaNlifeStoreItemsGetResponse struct { - XMLName xml.Name `xml:"alibaba_nlife_store_items_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 搜索到符合条件的结果总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 具体的商品信息列表 - ItemList []RetailItemTopDo `json:"item_list,omitempty" xml:"item_list>retail_item_top_do,omitempty"` - // true-查询成功;false-查询失败 - Succes bool `json:"succes,omitempty" xml:"succes,omitempty"` -} diff --git a/model/nlife/AlibabaNlifeStoreTradedetailGetAPIRequest.go b/model/nlife/AlibabaNlifeStoreTradedetailGetAPIRequest.go new file mode 100644 index 0000000000..6bbd11e770 --- /dev/null +++ b/model/nlife/AlibabaNlifeStoreTradedetailGetAPIRequest.go @@ -0,0 +1,52 @@ +package nlife + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询采购单详情信息 API请求 +alibaba.nlife.store.tradedetail.get + +根据集团id和采购单号,查询采购单的详情信息 +*/ +type AlibabaNlifeStoreTradedetailGetAPIRequest struct { + model.Params + // 集团采购单号 + _procurementNo string +} + +// 初始化AlibabaNlifeStoreTradedetailGetAPIRequest对象 +func NewAlibabaNlifeStoreTradedetailGetRequest() *AlibabaNlifeStoreTradedetailGetAPIRequest{ + return &AlibabaNlifeStoreTradedetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNlifeStoreTradedetailGetAPIRequest) GetApiMethodName() string { + return "alibaba.nlife.store.tradedetail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNlifeStoreTradedetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProcurementNo Setter +// 集团采购单号 +func (r *AlibabaNlifeStoreTradedetailGetAPIRequest) SetProcurementNo(_procurementNo string) error { + r._procurementNo = _procurementNo + r.Set("procurement_no", _procurementNo) + return nil +} + +// ProcurementNo Getter +func (r AlibabaNlifeStoreTradedetailGetAPIRequest) GetProcurementNo() string { + return r._procurementNo +} diff --git a/model/nlife/AlibabaNlifeStoreTradedetailGetAPIResponse.go b/model/nlife/AlibabaNlifeStoreTradedetailGetAPIResponse.go new file mode 100644 index 0000000000..3e2e6766da --- /dev/null +++ b/model/nlife/AlibabaNlifeStoreTradedetailGetAPIResponse.go @@ -0,0 +1,27 @@ +package nlife + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询采购单详情信息 API返回值 +alibaba.nlife.store.tradedetail.get + +根据集团id和采购单号,查询采购单的详情信息 +*/ +type AlibabaNlifeStoreTradedetailGetAPIResponse struct { + model.CommonResponse + AlibabaNlifeStoreTradedetailGetAPIResponseModel +} + +// 查询采购单详情信息 成功返回结果 +type AlibabaNlifeStoreTradedetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_nlife_store_tradedetail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data *ProcurementDetailResponseDo `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/nlife/AlibabaNlifeStoreTradedetailGetResponse.go b/model/nlife/AlibabaNlifeStoreTradedetailGetResponse.go deleted file mode 100644 index 37441a3ffb..0000000000 --- a/model/nlife/AlibabaNlifeStoreTradedetailGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nlife - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询采购单详情信息 API返回值 -alibaba.nlife.store.tradedetail.get - -根据集团id和采购单号,查询采购单的详情信息 -*/ -type AlibabaNlifeStoreTradedetailGetAPIResponse struct { - model.CommonResponse - AlibabaNlifeStoreTradedetailGetResponse -} - -// 查询采购单详情信息 成功返回结果 -type AlibabaNlifeStoreTradedetailGetResponse struct { - XMLName xml.Name `xml:"alibaba_nlife_store_tradedetail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data *ProcurementDetailResponseDo `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/nlp/TaobaoNlpPreprocessAPIRequest.go b/model/nlp/TaobaoNlpPreprocessAPIRequest.go new file mode 100644 index 0000000000..d26fda85c6 --- /dev/null +++ b/model/nlp/TaobaoNlpPreprocessAPIRequest.go @@ -0,0 +1,80 @@ +package nlp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +文本语言预处理 API请求 +taobao.nlp.preprocess + +实现文本语言处理中的预处理功能,如实现文字繁简转换、文字转拼音、文字拆分、谐音同音字替换和形似字替换。 +*/ +type TaobaoNlpPreprocessAPIRequest struct { + model.Params + // 文本内容 + _text *Text + // 谐音字转换、形似字转换需提供关键词进行替换,关键词之间以#分隔。keyword示例:兼职#招聘#微信、天猫#日结#微信#招聘#加微 + _keyword string + // 1)繁简字转换:func_type=1,对应type =1 繁转简 type=2 简转繁;2)拆分字转换:func_type =2,对应type=1 文字拆分 type=2 拆分字合并;3)文字转拼音:func_type =3,对应type=1 文字转拼音 type=2 拼音+声调;4)谐音同音字替换:func_type =4,对应type=1 谐音字替换 type=2 同音字替换;5)形似字替换:func_type =5,对应type=1 形似字替换; + _funcType int64 +} + +// 初始化TaobaoNlpPreprocessAPIRequest对象 +func NewTaobaoNlpPreprocessRequest() *TaobaoNlpPreprocessAPIRequest{ + return &TaobaoNlpPreprocessAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoNlpPreprocessAPIRequest) GetApiMethodName() string { + return "taobao.nlp.preprocess" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoNlpPreprocessAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Text Setter +// 文本内容 +func (r *TaobaoNlpPreprocessAPIRequest) SetText(_text *Text) error { + r._text = _text + r.Set("text", _text) + return nil +} + +// Text Getter +func (r TaobaoNlpPreprocessAPIRequest) GetText() *Text { + return r._text +} +// Keyword Setter +// 谐音字转换、形似字转换需提供关键词进行替换,关键词之间以#分隔。keyword示例:兼职#招聘#微信、天猫#日结#微信#招聘#加微 +func (r *TaobaoNlpPreprocessAPIRequest) SetKeyword(_keyword string) error { + r._keyword = _keyword + r.Set("keyword", _keyword) + return nil +} + +// Keyword Getter +func (r TaobaoNlpPreprocessAPIRequest) GetKeyword() string { + return r._keyword +} +// FuncType Setter +// 1)繁简字转换:func_type=1,对应type =1 繁转简 type=2 简转繁;2)拆分字转换:func_type =2,对应type=1 文字拆分 type=2 拆分字合并;3)文字转拼音:func_type =3,对应type=1 文字转拼音 type=2 拼音+声调;4)谐音同音字替换:func_type =4,对应type=1 谐音字替换 type=2 同音字替换;5)形似字替换:func_type =5,对应type=1 形似字替换; +func (r *TaobaoNlpPreprocessAPIRequest) SetFuncType(_funcType int64) error { + r._funcType = _funcType + r.Set("func_type", _funcType) + return nil +} + +// FuncType Getter +func (r TaobaoNlpPreprocessAPIRequest) GetFuncType() int64 { + return r._funcType +} diff --git a/model/nlp/TaobaoNlpPreprocessAPIResponse.go b/model/nlp/TaobaoNlpPreprocessAPIResponse.go new file mode 100644 index 0000000000..07e73826d4 --- /dev/null +++ b/model/nlp/TaobaoNlpPreprocessAPIResponse.go @@ -0,0 +1,27 @@ +package nlp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +文本语言预处理 API返回值 +taobao.nlp.preprocess + +实现文本语言处理中的预处理功能,如实现文字繁简转换、文字转拼音、文字拆分、谐音同音字替换和形似字替换。 +*/ +type TaobaoNlpPreprocessAPIResponse struct { + model.CommonResponse + TaobaoNlpPreprocessAPIResponseModel +} + +// 文本语言预处理 成功返回结果 +type TaobaoNlpPreprocessAPIResponseModel struct { + XMLName xml.Name `xml:"nlp_preprocess_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Processresult *ProcessResult `json:"processresult,omitempty" xml:"processresult,omitempty"` +} diff --git a/model/nlp/TaobaoNlpPreprocessResponse.go b/model/nlp/TaobaoNlpPreprocessResponse.go deleted file mode 100644 index adda48f79d..0000000000 --- a/model/nlp/TaobaoNlpPreprocessResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nlp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -文本语言预处理 API返回值 -taobao.nlp.preprocess - -实现文本语言处理中的预处理功能,如实现文字繁简转换、文字转拼音、文字拆分、谐音同音字替换和形似字替换。 -*/ -type TaobaoNlpPreprocessAPIResponse struct { - model.CommonResponse - TaobaoNlpPreprocessResponse -} - -// 文本语言预处理 成功返回结果 -type TaobaoNlpPreprocessResponse struct { - XMLName xml.Name `xml:"nlp_preprocess_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Processresult *ProcessResult `json:"processresult,omitempty" xml:"processresult,omitempty"` -} diff --git a/model/nlp/TaobaoNlpSimilarityAPIRequest.go b/model/nlp/TaobaoNlpSimilarityAPIRequest.go new file mode 100644 index 0000000000..fa07f99dc1 --- /dev/null +++ b/model/nlp/TaobaoNlpSimilarityAPIRequest.go @@ -0,0 +1,52 @@ +package nlp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +文本语言相似度 API请求 +taobao.nlp.similarity + +文本语言相似度计算,提供余弦距离、编辑距离和simHash三种相似度计算。返回文本相似度区间为0-1之间,0为完全不相似,1为完全相似。 +*/ +type TaobaoNlpSimilarityAPIRequest struct { + model.Params + // 多文本内容 + _texts *Texts +} + +// 初始化TaobaoNlpSimilarityAPIRequest对象 +func NewTaobaoNlpSimilarityRequest() *TaobaoNlpSimilarityAPIRequest{ + return &TaobaoNlpSimilarityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoNlpSimilarityAPIRequest) GetApiMethodName() string { + return "taobao.nlp.similarity" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoNlpSimilarityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Texts Setter +// 多文本内容 +func (r *TaobaoNlpSimilarityAPIRequest) SetTexts(_texts *Texts) error { + r._texts = _texts + r.Set("texts", _texts) + return nil +} + +// Texts Getter +func (r TaobaoNlpSimilarityAPIRequest) GetTexts() *Texts { + return r._texts +} diff --git a/model/nlp/TaobaoNlpSimilarityAPIResponse.go b/model/nlp/TaobaoNlpSimilarityAPIResponse.go new file mode 100644 index 0000000000..2f9c12605b --- /dev/null +++ b/model/nlp/TaobaoNlpSimilarityAPIResponse.go @@ -0,0 +1,27 @@ +package nlp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +文本语言相似度 API返回值 +taobao.nlp.similarity + +文本语言相似度计算,提供余弦距离、编辑距离和simHash三种相似度计算。返回文本相似度区间为0-1之间,0为完全不相似,1为完全相似。 +*/ +type TaobaoNlpSimilarityAPIResponse struct { + model.CommonResponse + TaobaoNlpSimilarityAPIResponseModel +} + +// 文本语言相似度 成功返回结果 +type TaobaoNlpSimilarityAPIResponseModel struct { + XMLName xml.Name `xml:"nlp_similarity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Simresult *SimResult `json:"simresult,omitempty" xml:"simresult,omitempty"` +} diff --git a/model/nlp/TaobaoNlpSimilarityResponse.go b/model/nlp/TaobaoNlpSimilarityResponse.go deleted file mode 100644 index 8f0faee2d8..0000000000 --- a/model/nlp/TaobaoNlpSimilarityResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nlp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -文本语言相似度 API返回值 -taobao.nlp.similarity - -文本语言相似度计算,提供余弦距离、编辑距离和simHash三种相似度计算。返回文本相似度区间为0-1之间,0为完全不相似,1为完全相似。 -*/ -type TaobaoNlpSimilarityAPIResponse struct { - model.CommonResponse - TaobaoNlpSimilarityResponse -} - -// 文本语言相似度 成功返回结果 -type TaobaoNlpSimilarityResponse struct { - XMLName xml.Name `xml:"nlp_similarity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Simresult *SimResult `json:"simresult,omitempty" xml:"simresult,omitempty"` -} diff --git a/model/nlp/TaobaoNlpWordAPIRequest.go b/model/nlp/TaobaoNlpWordAPIRequest.go new file mode 100644 index 0000000000..0359d54134 --- /dev/null +++ b/model/nlp/TaobaoNlpWordAPIRequest.go @@ -0,0 +1,66 @@ +package nlp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +文本语言词法分析 API请求 +taobao.nlp.word + +提供文本语言处理中的词法分析功能,开放中文分词和词权重计算功能。 +*/ +type TaobaoNlpWordAPIRequest struct { + model.Params + // 功能类型选择:1)wType=1时提供分词功能,type=0时为基本粒度,type=1时为混合粒度,type=3时为基本粒度和混合粒度共同输出; + _wType int64 + // 文本内容 + _text *Text +} + +// 初始化TaobaoNlpWordAPIRequest对象 +func NewTaobaoNlpWordRequest() *TaobaoNlpWordAPIRequest{ + return &TaobaoNlpWordAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoNlpWordAPIRequest) GetApiMethodName() string { + return "taobao.nlp.word" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoNlpWordAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WType Setter +// 功能类型选择:1)wType=1时提供分词功能,type=0时为基本粒度,type=1时为混合粒度,type=3时为基本粒度和混合粒度共同输出; +func (r *TaobaoNlpWordAPIRequest) SetWType(_wType int64) error { + r._wType = _wType + r.Set("w_type", _wType) + return nil +} + +// WType Getter +func (r TaobaoNlpWordAPIRequest) GetWType() int64 { + return r._wType +} +// Text Setter +// 文本内容 +func (r *TaobaoNlpWordAPIRequest) SetText(_text *Text) error { + r._text = _text + r.Set("text", _text) + return nil +} + +// Text Getter +func (r TaobaoNlpWordAPIRequest) GetText() *Text { + return r._text +} diff --git a/model/nlp/TaobaoNlpWordAPIResponse.go b/model/nlp/TaobaoNlpWordAPIResponse.go new file mode 100644 index 0000000000..56daf771eb --- /dev/null +++ b/model/nlp/TaobaoNlpWordAPIResponse.go @@ -0,0 +1,27 @@ +package nlp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +文本语言词法分析 API返回值 +taobao.nlp.word + +提供文本语言处理中的词法分析功能,开放中文分词和词权重计算功能。 +*/ +type TaobaoNlpWordAPIResponse struct { + model.CommonResponse + TaobaoNlpWordAPIResponseModel +} + +// 文本语言词法分析 成功返回结果 +type TaobaoNlpWordAPIResponseModel struct { + XMLName xml.Name `xml:"nlp_word_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回词法分析的结果 + Wordresult *WordResult `json:"wordresult,omitempty" xml:"wordresult,omitempty"` +} diff --git a/model/nlp/TaobaoNlpWordResponse.go b/model/nlp/TaobaoNlpWordResponse.go deleted file mode 100644 index ff6296b00f..0000000000 --- a/model/nlp/TaobaoNlpWordResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nlp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -文本语言词法分析 API返回值 -taobao.nlp.word - -提供文本语言处理中的词法分析功能,开放中文分词和词权重计算功能。 -*/ -type TaobaoNlpWordAPIResponse struct { - model.CommonResponse - TaobaoNlpWordResponse -} - -// 文本语言词法分析 成功返回结果 -type TaobaoNlpWordResponse struct { - XMLName xml.Name `xml:"nlp_word_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回词法分析的结果 - Wordresult *WordResult `json:"wordresult,omitempty" xml:"wordresult,omitempty"` -} diff --git a/model/normalvisa/AlitripTravelVisaApplicantImportAPIRequest.go b/model/normalvisa/AlitripTravelVisaApplicantImportAPIRequest.go new file mode 100644 index 0000000000..599469ef14 --- /dev/null +++ b/model/normalvisa/AlitripTravelVisaApplicantImportAPIRequest.go @@ -0,0 +1,136 @@ +package normalvisa + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +签证申请人导入 API请求 +alitrip.travel.visa.applicant.import + +签证线下申请人导入接口。供商家将线下的签证申请人信息导入,进行签证线上化办理 +*/ +type AlitripTravelVisaApplicantImportAPIRequest struct { + model.Params + // 国家id。目前支持越南(27027) + _nationId int64 + // 证件照文件字节流 + _photoFile *model.File + // 外部商家申请人id + _outerApplyId string + // 护照文件类型 + _passportFileType string + // 护照文件字节流 + _passportFile *model.File + // 证件照文件类型 + _photoFileType string + // 申请人信息。字段注释:1.sex(性别),值:M/F;2.nationality(国籍),值:CHN(中国大陆),HKG(中国香港),MAC(中国澳门),USA(美国),CAN(加拿大);3.daibanTypeId(代办类型):1(越南一个月单次入境),2(越南一个月多次入境),3(越南三个月单次入境),4(越南三个月多次入境) + _formDataJson string +} + +// 初始化AlitripTravelVisaApplicantImportAPIRequest对象 +func NewAlitripTravelVisaApplicantImportRequest() *AlitripTravelVisaApplicantImportAPIRequest{ + return &AlitripTravelVisaApplicantImportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelVisaApplicantImportAPIRequest) GetApiMethodName() string { + return "alitrip.travel.visa.applicant.import" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelVisaApplicantImportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NationId Setter +// 国家id。目前支持越南(27027) +func (r *AlitripTravelVisaApplicantImportAPIRequest) SetNationId(_nationId int64) error { + r._nationId = _nationId + r.Set("nation_id", _nationId) + return nil +} + +// NationId Getter +func (r AlitripTravelVisaApplicantImportAPIRequest) GetNationId() int64 { + return r._nationId +} +// PhotoFile Setter +// 证件照文件字节流 +func (r *AlitripTravelVisaApplicantImportAPIRequest) SetPhotoFile(_photoFile *model.File) error { + r._photoFile = _photoFile + r.Set("photo_file", _photoFile) + return nil +} + +// PhotoFile Getter +func (r AlitripTravelVisaApplicantImportAPIRequest) GetPhotoFile() *model.File { + return r._photoFile +} +// OuterApplyId Setter +// 外部商家申请人id +func (r *AlitripTravelVisaApplicantImportAPIRequest) SetOuterApplyId(_outerApplyId string) error { + r._outerApplyId = _outerApplyId + r.Set("outer_apply_id", _outerApplyId) + return nil +} + +// OuterApplyId Getter +func (r AlitripTravelVisaApplicantImportAPIRequest) GetOuterApplyId() string { + return r._outerApplyId +} +// PassportFileType Setter +// 护照文件类型 +func (r *AlitripTravelVisaApplicantImportAPIRequest) SetPassportFileType(_passportFileType string) error { + r._passportFileType = _passportFileType + r.Set("passport_file_type", _passportFileType) + return nil +} + +// PassportFileType Getter +func (r AlitripTravelVisaApplicantImportAPIRequest) GetPassportFileType() string { + return r._passportFileType +} +// PassportFile Setter +// 护照文件字节流 +func (r *AlitripTravelVisaApplicantImportAPIRequest) SetPassportFile(_passportFile *model.File) error { + r._passportFile = _passportFile + r.Set("passport_file", _passportFile) + return nil +} + +// PassportFile Getter +func (r AlitripTravelVisaApplicantImportAPIRequest) GetPassportFile() *model.File { + return r._passportFile +} +// PhotoFileType Setter +// 证件照文件类型 +func (r *AlitripTravelVisaApplicantImportAPIRequest) SetPhotoFileType(_photoFileType string) error { + r._photoFileType = _photoFileType + r.Set("photo_file_type", _photoFileType) + return nil +} + +// PhotoFileType Getter +func (r AlitripTravelVisaApplicantImportAPIRequest) GetPhotoFileType() string { + return r._photoFileType +} +// FormDataJson Setter +// 申请人信息。字段注释:1.sex(性别),值:M/F;2.nationality(国籍),值:CHN(中国大陆),HKG(中国香港),MAC(中国澳门),USA(美国),CAN(加拿大);3.daibanTypeId(代办类型):1(越南一个月单次入境),2(越南一个月多次入境),3(越南三个月单次入境),4(越南三个月多次入境) +func (r *AlitripTravelVisaApplicantImportAPIRequest) SetFormDataJson(_formDataJson string) error { + r._formDataJson = _formDataJson + r.Set("form_data_json", _formDataJson) + return nil +} + +// FormDataJson Getter +func (r AlitripTravelVisaApplicantImportAPIRequest) GetFormDataJson() string { + return r._formDataJson +} diff --git a/model/normalvisa/AlitripTravelVisaApplicantImportAPIResponse.go b/model/normalvisa/AlitripTravelVisaApplicantImportAPIResponse.go new file mode 100644 index 0000000000..29c40024ce --- /dev/null +++ b/model/normalvisa/AlitripTravelVisaApplicantImportAPIResponse.go @@ -0,0 +1,39 @@ +package normalvisa + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +签证申请人导入 API返回值 +alitrip.travel.visa.applicant.import + +签证线下申请人导入接口。供商家将线下的签证申请人信息导入,进行签证线上化办理 +*/ +type AlitripTravelVisaApplicantImportAPIResponse struct { + model.CommonResponse + AlitripTravelVisaApplicantImportAPIResponseModel +} + +// 签证申请人导入 成功返回结果 +type AlitripTravelVisaApplicantImportAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_visa_applicant_import_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 外部商家申请人id + OuterApplyId string `json:"outer_apply_id,omitempty" xml:"outer_apply_id,omitempty"` + // 申请人id + ApplyId string `json:"apply_id,omitempty" xml:"apply_id,omitempty"` + // 拼音姓 + LastNamePinyin string `json:"last_name_pinyin,omitempty" xml:"last_name_pinyin,omitempty"` + // 拼音名 + FirstNamePinyin string `json:"first_name_pinyin,omitempty" xml:"first_name_pinyin,omitempty"` + // 护照号 + PassportNumber string `json:"passport_number,omitempty" xml:"passport_number,omitempty"` + // 错误类型:1-数据重复,2-数据错误 + ErrorType int64 `json:"error_type,omitempty" xml:"error_type,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/normalvisa/AlitripTravelVisaApplicantImportResponse.go b/model/normalvisa/AlitripTravelVisaApplicantImportResponse.go deleted file mode 100644 index bc0e370cb0..0000000000 --- a/model/normalvisa/AlitripTravelVisaApplicantImportResponse.go +++ /dev/null @@ -1,39 +0,0 @@ -package normalvisa - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -签证申请人导入 API返回值 -alitrip.travel.visa.applicant.import - -签证线下申请人导入接口。供商家将线下的签证申请人信息导入,进行签证线上化办理 -*/ -type AlitripTravelVisaApplicantImportAPIResponse struct { - model.CommonResponse - AlitripTravelVisaApplicantImportResponse -} - -// 签证申请人导入 成功返回结果 -type AlitripTravelVisaApplicantImportResponse struct { - XMLName xml.Name `xml:"alitrip_travel_visa_applicant_import_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 外部商家申请人id - OuterApplyId string `json:"outer_apply_id,omitempty" xml:"outer_apply_id,omitempty"` - // 申请人id - ApplyId string `json:"apply_id,omitempty" xml:"apply_id,omitempty"` - // 拼音姓 - LastNamePinyin string `json:"last_name_pinyin,omitempty" xml:"last_name_pinyin,omitempty"` - // 拼音名 - FirstNamePinyin string `json:"first_name_pinyin,omitempty" xml:"first_name_pinyin,omitempty"` - // 护照号 - PassportNumber string `json:"passport_number,omitempty" xml:"passport_number,omitempty"` - // 错误类型:1-数据重复,2-数据错误 - ErrorType int64 `json:"error_type,omitempty" xml:"error_type,omitempty"` - // 错误信息 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/normalvisa/AlitripTravelVisaApplicantQueryAPIRequest.go b/model/normalvisa/AlitripTravelVisaApplicantQueryAPIRequest.go new file mode 100644 index 0000000000..25c8a34909 --- /dev/null +++ b/model/normalvisa/AlitripTravelVisaApplicantQueryAPIRequest.go @@ -0,0 +1,52 @@ +package normalvisa + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +签证申请人查询接口 API请求 +alitrip.travel.visa.applicant.query + +签证申请人查询接口,商家可根据条件查询申请人id,用于签证办理 +*/ +type AlitripTravelVisaApplicantQueryAPIRequest struct { + model.Params + // 请求参数 + _param0 *QueryApplicantParam +} + +// 初始化AlitripTravelVisaApplicantQueryAPIRequest对象 +func NewAlitripTravelVisaApplicantQueryRequest() *AlitripTravelVisaApplicantQueryAPIRequest{ + return &AlitripTravelVisaApplicantQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelVisaApplicantQueryAPIRequest) GetApiMethodName() string { + return "alitrip.travel.visa.applicant.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelVisaApplicantQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 请求参数 +func (r *AlitripTravelVisaApplicantQueryAPIRequest) SetParam0(_param0 *QueryApplicantParam) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlitripTravelVisaApplicantQueryAPIRequest) GetParam0() *QueryApplicantParam { + return r._param0 +} diff --git a/model/normalvisa/AlitripTravelVisaApplicantQueryAPIResponse.go b/model/normalvisa/AlitripTravelVisaApplicantQueryAPIResponse.go new file mode 100644 index 0000000000..7d5cee8547 --- /dev/null +++ b/model/normalvisa/AlitripTravelVisaApplicantQueryAPIResponse.go @@ -0,0 +1,27 @@ +package normalvisa + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +签证申请人查询接口 API返回值 +alitrip.travel.visa.applicant.query + +签证申请人查询接口,商家可根据条件查询申请人id,用于签证办理 +*/ +type AlitripTravelVisaApplicantQueryAPIResponse struct { + model.CommonResponse + AlitripTravelVisaApplicantQueryAPIResponseModel +} + +// 签证申请人查询接口 成功返回结果 +type AlitripTravelVisaApplicantQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_visa_applicant_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *QueryVisaApplicantResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/normalvisa/AlitripTravelVisaApplicantQueryResponse.go b/model/normalvisa/AlitripTravelVisaApplicantQueryResponse.go deleted file mode 100644 index 2480f3c938..0000000000 --- a/model/normalvisa/AlitripTravelVisaApplicantQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package normalvisa - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -签证申请人查询接口 API返回值 -alitrip.travel.visa.applicant.query - -签证申请人查询接口,商家可根据条件查询申请人id,用于签证办理 -*/ -type AlitripTravelVisaApplicantQueryAPIResponse struct { - model.CommonResponse - AlitripTravelVisaApplicantQueryResponse -} - -// 签证申请人查询接口 成功返回结果 -type AlitripTravelVisaApplicantQueryResponse struct { - XMLName xml.Name `xml:"alitrip_travel_visa_applicant_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *QueryVisaApplicantResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/normalvisa/AlitripTravelVisaSignSendAPIRequest.go b/model/normalvisa/AlitripTravelVisaSignSendAPIRequest.go new file mode 100644 index 0000000000..3f504d59b0 --- /dev/null +++ b/model/normalvisa/AlitripTravelVisaSignSendAPIRequest.go @@ -0,0 +1,80 @@ +package normalvisa + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +签证批量申请人送签接口 API请求 +alitrip.travel.visa.sign.send + +签证批量申请人送签接口,用于商家批量送签。 +*/ +type AlitripTravelVisaSignSendAPIRequest struct { + model.Params + // 国家id。目前只支持越南,越南国家id:27027 + _nationId int64 + // 送签类型:1-非加急,2-加急,默认非加急 + _signType int64 + // 申请人ids + _applyIds []string +} + +// 初始化AlitripTravelVisaSignSendAPIRequest对象 +func NewAlitripTravelVisaSignSendRequest() *AlitripTravelVisaSignSendAPIRequest{ + return &AlitripTravelVisaSignSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelVisaSignSendAPIRequest) GetApiMethodName() string { + return "alitrip.travel.visa.sign.send" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelVisaSignSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NationId Setter +// 国家id。目前只支持越南,越南国家id:27027 +func (r *AlitripTravelVisaSignSendAPIRequest) SetNationId(_nationId int64) error { + r._nationId = _nationId + r.Set("nation_id", _nationId) + return nil +} + +// NationId Getter +func (r AlitripTravelVisaSignSendAPIRequest) GetNationId() int64 { + return r._nationId +} +// SignType Setter +// 送签类型:1-非加急,2-加急,默认非加急 +func (r *AlitripTravelVisaSignSendAPIRequest) SetSignType(_signType int64) error { + r._signType = _signType + r.Set("sign_type", _signType) + return nil +} + +// SignType Getter +func (r AlitripTravelVisaSignSendAPIRequest) GetSignType() int64 { + return r._signType +} +// ApplyIds Setter +// 申请人ids +func (r *AlitripTravelVisaSignSendAPIRequest) SetApplyIds(_applyIds []string) error { + r._applyIds = _applyIds + r.Set("apply_ids", _applyIds) + return nil +} + +// ApplyIds Getter +func (r AlitripTravelVisaSignSendAPIRequest) GetApplyIds() []string { + return r._applyIds +} diff --git a/model/normalvisa/AlitripTravelVisaSignSendAPIResponse.go b/model/normalvisa/AlitripTravelVisaSignSendAPIResponse.go new file mode 100644 index 0000000000..b96b7ad7db --- /dev/null +++ b/model/normalvisa/AlitripTravelVisaSignSendAPIResponse.go @@ -0,0 +1,29 @@ +package normalvisa + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +签证批量申请人送签接口 API返回值 +alitrip.travel.visa.sign.send + +签证批量申请人送签接口,用于商家批量送签。 +*/ +type AlitripTravelVisaSignSendAPIResponse struct { + model.CommonResponse + AlitripTravelVisaSignSendAPIResponseModel +} + +// 签证批量申请人送签接口 成功返回结果 +type AlitripTravelVisaSignSendAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_visa_sign_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 批次信息 + BatchInfos []BatchInfo `json:"batch_infos,omitempty" xml:"batch_infos>batch_info,omitempty"` + // 失败信息 + FailInfos []SendSignFailInfo `json:"fail_infos,omitempty" xml:"fail_infos>send_sign_fail_info,omitempty"` +} diff --git a/model/normalvisa/AlitripTravelVisaSignSendResponse.go b/model/normalvisa/AlitripTravelVisaSignSendResponse.go deleted file mode 100644 index 12fae4279e..0000000000 --- a/model/normalvisa/AlitripTravelVisaSignSendResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package normalvisa - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -签证批量申请人送签接口 API返回值 -alitrip.travel.visa.sign.send - -签证批量申请人送签接口,用于商家批量送签。 -*/ -type AlitripTravelVisaSignSendAPIResponse struct { - model.CommonResponse - AlitripTravelVisaSignSendResponse -} - -// 签证批量申请人送签接口 成功返回结果 -type AlitripTravelVisaSignSendResponse struct { - XMLName xml.Name `xml:"alitrip_travel_visa_sign_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 批次信息 - BatchInfos []BatchInfo `json:"batch_infos,omitempty" xml:"batch_infos>batch_info,omitempty"` - // 失败信息 - FailInfos []SendSignFailInfo `json:"fail_infos,omitempty" xml:"fail_infos>send_sign_fail_info,omitempty"` -} diff --git a/model/normalvisa/TaobaoAlitripTravelNormalvisaGetAPIRequest.go b/model/normalvisa/TaobaoAlitripTravelNormalvisaGetAPIRequest.go new file mode 100644 index 0000000000..2d769a7820 --- /dev/null +++ b/model/normalvisa/TaobaoAlitripTravelNormalvisaGetAPIRequest.go @@ -0,0 +1,52 @@ +package normalvisa + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取签证记录 API请求 +taobao.alitrip.travel.normalvisa.get + +用于获取普通签证的记录信息 +*/ +type TaobaoAlitripTravelNormalvisaGetAPIRequest struct { + model.Params + // 订单号 + _bizOrderId int64 +} + +// 初始化TaobaoAlitripTravelNormalvisaGetAPIRequest对象 +func NewTaobaoAlitripTravelNormalvisaGetRequest() *TaobaoAlitripTravelNormalvisaGetAPIRequest{ + return &TaobaoAlitripTravelNormalvisaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelNormalvisaGetAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.normalvisa.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelNormalvisaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizOrderId Setter +// 订单号 +func (r *TaobaoAlitripTravelNormalvisaGetAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r TaobaoAlitripTravelNormalvisaGetAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} diff --git a/model/normalvisa/TaobaoAlitripTravelNormalvisaGetAPIResponse.go b/model/normalvisa/TaobaoAlitripTravelNormalvisaGetAPIResponse.go new file mode 100644 index 0000000000..2166fd239c --- /dev/null +++ b/model/normalvisa/TaobaoAlitripTravelNormalvisaGetAPIResponse.go @@ -0,0 +1,27 @@ +package normalvisa + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取签证记录 API返回值 +taobao.alitrip.travel.normalvisa.get + +用于获取普通签证的记录信息 +*/ +type TaobaoAlitripTravelNormalvisaGetAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelNormalvisaGetAPIResponseModel +} + +// 获取签证记录 成功返回结果 +type TaobaoAlitripTravelNormalvisaGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_normalvisa_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TaobaoAlitripTravelNormalvisaGetResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/normalvisa/TaobaoAlitripTravelNormalvisaGetResponse.go b/model/normalvisa/TaobaoAlitripTravelNormalvisaGetResponse.go deleted file mode 100644 index 3116f65f96..0000000000 --- a/model/normalvisa/TaobaoAlitripTravelNormalvisaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package normalvisa - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取签证记录 API返回值 -taobao.alitrip.travel.normalvisa.get - -用于获取普通签证的记录信息 -*/ -type TaobaoAlitripTravelNormalvisaGetAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelNormalvisaGetResponse -} - -// 获取签证记录 成功返回结果 -type TaobaoAlitripTravelNormalvisaGetResponse struct { - XMLName xml.Name `xml:"alitrip_travel_normalvisa_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TaobaoAlitripTravelNormalvisaGetResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/normalvisa/TaobaoAlitripTravelNormalvisaGetcompanyAPIRequest.go b/model/normalvisa/TaobaoAlitripTravelNormalvisaGetcompanyAPIRequest.go new file mode 100644 index 0000000000..542f7060ea --- /dev/null +++ b/model/normalvisa/TaobaoAlitripTravelNormalvisaGetcompanyAPIRequest.go @@ -0,0 +1,52 @@ +package normalvisa + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取物流公司信息 API请求 +taobao.alitrip.travel.normalvisa.getcompany + +获取物流公司信息 +*/ +type TaobaoAlitripTravelNormalvisaGetcompanyAPIRequest struct { + model.Params + // true:取5个重要的物流公司 false:取所有的物流公司 + _param0 bool +} + +// 初始化TaobaoAlitripTravelNormalvisaGetcompanyAPIRequest对象 +func NewTaobaoAlitripTravelNormalvisaGetcompanyRequest() *TaobaoAlitripTravelNormalvisaGetcompanyAPIRequest{ + return &TaobaoAlitripTravelNormalvisaGetcompanyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelNormalvisaGetcompanyAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.normalvisa.getcompany" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelNormalvisaGetcompanyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// true:取5个重要的物流公司 false:取所有的物流公司 +func (r *TaobaoAlitripTravelNormalvisaGetcompanyAPIRequest) SetParam0(_param0 bool) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoAlitripTravelNormalvisaGetcompanyAPIRequest) GetParam0() bool { + return r._param0 +} diff --git a/model/normalvisa/TaobaoAlitripTravelNormalvisaGetcompanyAPIResponse.go b/model/normalvisa/TaobaoAlitripTravelNormalvisaGetcompanyAPIResponse.go new file mode 100644 index 0000000000..a353fcc524 --- /dev/null +++ b/model/normalvisa/TaobaoAlitripTravelNormalvisaGetcompanyAPIResponse.go @@ -0,0 +1,27 @@ +package normalvisa + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取物流公司信息 API返回值 +taobao.alitrip.travel.normalvisa.getcompany + +获取物流公司信息 +*/ +type TaobaoAlitripTravelNormalvisaGetcompanyAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelNormalvisaGetcompanyAPIResponseModel +} + +// 获取物流公司信息 成功返回结果 +type TaobaoAlitripTravelNormalvisaGetcompanyAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_normalvisa_getcompany_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果,有返回代表成功 + Result *TaobaoAlitripTravelNormalvisaGetcompanyResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/normalvisa/TaobaoAlitripTravelNormalvisaGetcompanyResponse.go b/model/normalvisa/TaobaoAlitripTravelNormalvisaGetcompanyResponse.go deleted file mode 100644 index 2c4f9e71b6..0000000000 --- a/model/normalvisa/TaobaoAlitripTravelNormalvisaGetcompanyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package normalvisa - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取物流公司信息 API返回值 -taobao.alitrip.travel.normalvisa.getcompany - -获取物流公司信息 -*/ -type TaobaoAlitripTravelNormalvisaGetcompanyAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelNormalvisaGetcompanyResponse -} - -// 获取物流公司信息 成功返回结果 -type TaobaoAlitripTravelNormalvisaGetcompanyResponse struct { - XMLName xml.Name `xml:"alitrip_travel_normalvisa_getcompany_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果,有返回代表成功 - Result *TaobaoAlitripTravelNormalvisaGetcompanyResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/normalvisa/TaobaoAlitripTravelNormalvisaGetdetailAPIRequest.go b/model/normalvisa/TaobaoAlitripTravelNormalvisaGetdetailAPIRequest.go new file mode 100644 index 0000000000..5970844086 --- /dev/null +++ b/model/normalvisa/TaobaoAlitripTravelNormalvisaGetdetailAPIRequest.go @@ -0,0 +1,52 @@ +package normalvisa + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单笔订单的详情 API请求 +taobao.alitrip.travel.normalvisa.getdetail + +获取单笔签证的详细记录 +*/ +type TaobaoAlitripTravelNormalvisaGetdetailAPIRequest struct { + model.Params + // 订单id + _bizOrderId int64 +} + +// 初始化TaobaoAlitripTravelNormalvisaGetdetailAPIRequest对象 +func NewTaobaoAlitripTravelNormalvisaGetdetailRequest() *TaobaoAlitripTravelNormalvisaGetdetailAPIRequest{ + return &TaobaoAlitripTravelNormalvisaGetdetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelNormalvisaGetdetailAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.normalvisa.getdetail" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelNormalvisaGetdetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizOrderId Setter +// 订单id +func (r *TaobaoAlitripTravelNormalvisaGetdetailAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r TaobaoAlitripTravelNormalvisaGetdetailAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} diff --git a/model/normalvisa/TaobaoAlitripTravelNormalvisaGetdetailAPIResponse.go b/model/normalvisa/TaobaoAlitripTravelNormalvisaGetdetailAPIResponse.go new file mode 100644 index 0000000000..3fb0abd5c8 --- /dev/null +++ b/model/normalvisa/TaobaoAlitripTravelNormalvisaGetdetailAPIResponse.go @@ -0,0 +1,27 @@ +package normalvisa + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单笔订单的详情 API返回值 +taobao.alitrip.travel.normalvisa.getdetail + +获取单笔签证的详细记录 +*/ +type TaobaoAlitripTravelNormalvisaGetdetailAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelNormalvisaGetdetailAPIResponseModel +} + +// 获取单笔订单的详情 成功返回结果 +type TaobaoAlitripTravelNormalvisaGetdetailAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_normalvisa_getdetail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TaobaoAlitripTravelNormalvisaGetdetailResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/normalvisa/TaobaoAlitripTravelNormalvisaGetdetailResponse.go b/model/normalvisa/TaobaoAlitripTravelNormalvisaGetdetailResponse.go deleted file mode 100644 index b7faeb88ec..0000000000 --- a/model/normalvisa/TaobaoAlitripTravelNormalvisaGetdetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package normalvisa - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取单笔订单的详情 API返回值 -taobao.alitrip.travel.normalvisa.getdetail - -获取单笔签证的详细记录 -*/ -type TaobaoAlitripTravelNormalvisaGetdetailAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelNormalvisaGetdetailResponse -} - -// 获取单笔订单的详情 成功返回结果 -type TaobaoAlitripTravelNormalvisaGetdetailResponse struct { - XMLName xml.Name `xml:"alitrip_travel_normalvisa_getdetail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TaobaoAlitripTravelNormalvisaGetdetailResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/normalvisa/TaobaoAlitripTravelNormalvisaStoreuserAPIRequest.go b/model/normalvisa/TaobaoAlitripTravelNormalvisaStoreuserAPIRequest.go new file mode 100644 index 0000000000..7965cda878 --- /dev/null +++ b/model/normalvisa/TaobaoAlitripTravelNormalvisaStoreuserAPIRequest.go @@ -0,0 +1,66 @@ +package normalvisa + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +代填办理人信息 API请求 +taobao.alitrip.travel.normalvisa.storeuser + +卖家代填买家填写办理人信息 +*/ +type TaobaoAlitripTravelNormalvisaStoreuserAPIRequest struct { + model.Params + // 订单id + _bizOrderId int64 + // 列表:签证人信息列表 + _normalVisaUserUnitList []NormalVisaUserUnit +} + +// 初始化TaobaoAlitripTravelNormalvisaStoreuserAPIRequest对象 +func NewTaobaoAlitripTravelNormalvisaStoreuserRequest() *TaobaoAlitripTravelNormalvisaStoreuserAPIRequest{ + return &TaobaoAlitripTravelNormalvisaStoreuserAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelNormalvisaStoreuserAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.normalvisa.storeuser" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelNormalvisaStoreuserAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizOrderId Setter +// 订单id +func (r *TaobaoAlitripTravelNormalvisaStoreuserAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r TaobaoAlitripTravelNormalvisaStoreuserAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} +// NormalVisaUserUnitList Setter +// 列表:签证人信息列表 +func (r *TaobaoAlitripTravelNormalvisaStoreuserAPIRequest) SetNormalVisaUserUnitList(_normalVisaUserUnitList []NormalVisaUserUnit) error { + r._normalVisaUserUnitList = _normalVisaUserUnitList + r.Set("normal_visa_user_unit_list", _normalVisaUserUnitList) + return nil +} + +// NormalVisaUserUnitList Getter +func (r TaobaoAlitripTravelNormalvisaStoreuserAPIRequest) GetNormalVisaUserUnitList() []NormalVisaUserUnit { + return r._normalVisaUserUnitList +} diff --git a/model/normalvisa/TaobaoAlitripTravelNormalvisaStoreuserAPIResponse.go b/model/normalvisa/TaobaoAlitripTravelNormalvisaStoreuserAPIResponse.go new file mode 100644 index 0000000000..21e02ddb10 --- /dev/null +++ b/model/normalvisa/TaobaoAlitripTravelNormalvisaStoreuserAPIResponse.go @@ -0,0 +1,27 @@ +package normalvisa + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +代填办理人信息 API返回值 +taobao.alitrip.travel.normalvisa.storeuser + +卖家代填买家填写办理人信息 +*/ +type TaobaoAlitripTravelNormalvisaStoreuserAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelNormalvisaStoreuserAPIResponseModel +} + +// 代填办理人信息 成功返回结果 +type TaobaoAlitripTravelNormalvisaStoreuserAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_normalvisa_storeuser_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果:包含results数组代表成功 + Result *TaobaoAlitripTravelNormalvisaStoreuserResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/normalvisa/TaobaoAlitripTravelNormalvisaStoreuserResponse.go b/model/normalvisa/TaobaoAlitripTravelNormalvisaStoreuserResponse.go deleted file mode 100644 index 451ac1071f..0000000000 --- a/model/normalvisa/TaobaoAlitripTravelNormalvisaStoreuserResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package normalvisa - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -代填办理人信息 API返回值 -taobao.alitrip.travel.normalvisa.storeuser - -卖家代填买家填写办理人信息 -*/ -type TaobaoAlitripTravelNormalvisaStoreuserAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelNormalvisaStoreuserResponse -} - -// 代填办理人信息 成功返回结果 -type TaobaoAlitripTravelNormalvisaStoreuserResponse struct { - XMLName xml.Name `xml:"alitrip_travel_normalvisa_storeuser_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果:包含results数组代表成功 - Result *TaobaoAlitripTravelNormalvisaStoreuserResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/normalvisa/TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIRequest.go b/model/normalvisa/TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIRequest.go new file mode 100644 index 0000000000..582d35fefc --- /dev/null +++ b/model/normalvisa/TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIRequest.go @@ -0,0 +1,66 @@ +package normalvisa + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新签证办理进度 API请求 +taobao.alitrip.travel.normalvisa.updatepersonstauts + +更新签证办理进度 +*/ +type TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIRequest struct { + model.Params + // 更新信息 + _normalVisaUpdateUnitList []NormalVisaUpdateUnit + // 订单号 + _bizOrderId int64 +} + +// 初始化TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIRequest对象 +func NewTaobaoAlitripTravelNormalvisaUpdatepersonstautsRequest() *TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIRequest{ + return &TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.normalvisa.updatepersonstauts" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NormalVisaUpdateUnitList Setter +// 更新信息 +func (r *TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIRequest) SetNormalVisaUpdateUnitList(_normalVisaUpdateUnitList []NormalVisaUpdateUnit) error { + r._normalVisaUpdateUnitList = _normalVisaUpdateUnitList + r.Set("normal_visa_update_unit_list", _normalVisaUpdateUnitList) + return nil +} + +// NormalVisaUpdateUnitList Getter +func (r TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIRequest) GetNormalVisaUpdateUnitList() []NormalVisaUpdateUnit { + return r._normalVisaUpdateUnitList +} +// BizOrderId Setter +// 订单号 +func (r *TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} diff --git a/model/normalvisa/TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIResponse.go b/model/normalvisa/TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIResponse.go new file mode 100644 index 0000000000..d62a35f55a --- /dev/null +++ b/model/normalvisa/TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIResponse.go @@ -0,0 +1,27 @@ +package normalvisa + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新签证办理进度 API返回值 +taobao.alitrip.travel.normalvisa.updatepersonstauts + +更新签证办理进度 +*/ +type TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIResponseModel +} + +// 更新签证办理进度 成功返回结果 +type TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_normalvisa_updatepersonstauts_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果:包含result更新成功 + Result *TaobaoAlitripTravelNormalvisaUpdatepersonstautsResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/normalvisa/TaobaoAlitripTravelNormalvisaUpdatepersonstautsResponse.go b/model/normalvisa/TaobaoAlitripTravelNormalvisaUpdatepersonstautsResponse.go deleted file mode 100644 index 8a509a0b73..0000000000 --- a/model/normalvisa/TaobaoAlitripTravelNormalvisaUpdatepersonstautsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package normalvisa - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新签证办理进度 API返回值 -taobao.alitrip.travel.normalvisa.updatepersonstauts - -更新签证办理进度 -*/ -type TaobaoAlitripTravelNormalvisaUpdatepersonstautsAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelNormalvisaUpdatepersonstautsResponse -} - -// 更新签证办理进度 成功返回结果 -type TaobaoAlitripTravelNormalvisaUpdatepersonstautsResponse struct { - XMLName xml.Name `xml:"alitrip_travel_normalvisa_updatepersonstauts_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果:包含result更新成功 - Result *TaobaoAlitripTravelNormalvisaUpdatepersonstautsResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/normalvisa/TaobaoAlitripTravelNormalvisaUploadfileAPIRequest.go b/model/normalvisa/TaobaoAlitripTravelNormalvisaUploadfileAPIRequest.go new file mode 100644 index 0000000000..d8d382fc4f --- /dev/null +++ b/model/normalvisa/TaobaoAlitripTravelNormalvisaUploadfileAPIRequest.go @@ -0,0 +1,80 @@ +package normalvisa + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传电子签证 API请求 +taobao.alitrip.travel.normalvisa.uploadfile + +上传电子签证 +*/ +type TaobaoAlitripTravelNormalvisaUploadfileAPIRequest struct { + model.Params + // 文件 + _fileBytes *model.File + // 文件名:注意文件名请保证和上传的文件一直 + _fileName string + // 订单id + _bizOrderId int64 +} + +// 初始化TaobaoAlitripTravelNormalvisaUploadfileAPIRequest对象 +func NewTaobaoAlitripTravelNormalvisaUploadfileRequest() *TaobaoAlitripTravelNormalvisaUploadfileAPIRequest{ + return &TaobaoAlitripTravelNormalvisaUploadfileAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelNormalvisaUploadfileAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.normalvisa.uploadfile" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelNormalvisaUploadfileAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FileBytes Setter +// 文件 +func (r *TaobaoAlitripTravelNormalvisaUploadfileAPIRequest) SetFileBytes(_fileBytes *model.File) error { + r._fileBytes = _fileBytes + r.Set("file_bytes", _fileBytes) + return nil +} + +// FileBytes Getter +func (r TaobaoAlitripTravelNormalvisaUploadfileAPIRequest) GetFileBytes() *model.File { + return r._fileBytes +} +// FileName Setter +// 文件名:注意文件名请保证和上传的文件一直 +func (r *TaobaoAlitripTravelNormalvisaUploadfileAPIRequest) SetFileName(_fileName string) error { + r._fileName = _fileName + r.Set("file_name", _fileName) + return nil +} + +// FileName Getter +func (r TaobaoAlitripTravelNormalvisaUploadfileAPIRequest) GetFileName() string { + return r._fileName +} +// BizOrderId Setter +// 订单id +func (r *TaobaoAlitripTravelNormalvisaUploadfileAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r TaobaoAlitripTravelNormalvisaUploadfileAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} diff --git a/model/normalvisa/TaobaoAlitripTravelNormalvisaUploadfileAPIResponse.go b/model/normalvisa/TaobaoAlitripTravelNormalvisaUploadfileAPIResponse.go new file mode 100644 index 0000000000..945cda932d --- /dev/null +++ b/model/normalvisa/TaobaoAlitripTravelNormalvisaUploadfileAPIResponse.go @@ -0,0 +1,27 @@ +package normalvisa + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传电子签证 API返回值 +taobao.alitrip.travel.normalvisa.uploadfile + +上传电子签证 +*/ +type TaobaoAlitripTravelNormalvisaUploadfileAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelNormalvisaUploadfileAPIResponseModel +} + +// 上传电子签证 成功返回结果 +type TaobaoAlitripTravelNormalvisaUploadfileAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_normalvisa_uploadfile_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果:包含results则代表成功保存 + Result *TaobaoAlitripTravelNormalvisaUploadfileResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/normalvisa/TaobaoAlitripTravelNormalvisaUploadfileResponse.go b/model/normalvisa/TaobaoAlitripTravelNormalvisaUploadfileResponse.go deleted file mode 100644 index 4880ca650e..0000000000 --- a/model/normalvisa/TaobaoAlitripTravelNormalvisaUploadfileResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package normalvisa - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传电子签证 API返回值 -taobao.alitrip.travel.normalvisa.uploadfile - -上传电子签证 -*/ -type TaobaoAlitripTravelNormalvisaUploadfileAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelNormalvisaUploadfileResponse -} - -// 上传电子签证 成功返回结果 -type TaobaoAlitripTravelNormalvisaUploadfileResponse struct { - XMLName xml.Name `xml:"alitrip_travel_normalvisa_uploadfile_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果:包含results则代表成功保存 - Result *TaobaoAlitripTravelNormalvisaUploadfileResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/nropen/AlibabaAscpIndustryDisivisonQueryAPIRequest.go b/model/nropen/AlibabaAscpIndustryDisivisonQueryAPIRequest.go new file mode 100644 index 0000000000..96a8d9e4b7 --- /dev/null +++ b/model/nropen/AlibabaAscpIndustryDisivisonQueryAPIRequest.go @@ -0,0 +1,52 @@ +package nropen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询服务支持地区列表 API请求 +alibaba.ascp.industry.disivison.query + +商家获取服务支持地区 +*/ +type AlibabaAscpIndustryDisivisonQueryAPIRequest struct { + model.Params + // 服务编码 + _serviceCode string +} + +// 初始化AlibabaAscpIndustryDisivisonQueryAPIRequest对象 +func NewAlibabaAscpIndustryDisivisonQueryRequest() *AlibabaAscpIndustryDisivisonQueryAPIRequest{ + return &AlibabaAscpIndustryDisivisonQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpIndustryDisivisonQueryAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.industry.disivison.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpIndustryDisivisonQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceCode Setter +// 服务编码 +func (r *AlibabaAscpIndustryDisivisonQueryAPIRequest) SetServiceCode(_serviceCode string) error { + r._serviceCode = _serviceCode + r.Set("service_code", _serviceCode) + return nil +} + +// ServiceCode Getter +func (r AlibabaAscpIndustryDisivisonQueryAPIRequest) GetServiceCode() string { + return r._serviceCode +} diff --git a/model/nropen/AlibabaAscpIndustryDisivisonQueryAPIResponse.go b/model/nropen/AlibabaAscpIndustryDisivisonQueryAPIResponse.go new file mode 100644 index 0000000000..33b33f23ba --- /dev/null +++ b/model/nropen/AlibabaAscpIndustryDisivisonQueryAPIResponse.go @@ -0,0 +1,27 @@ +package nropen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询服务支持地区列表 API返回值 +alibaba.ascp.industry.disivison.query + +商家获取服务支持地区 +*/ +type AlibabaAscpIndustryDisivisonQueryAPIResponse struct { + model.CommonResponse + AlibabaAscpIndustryDisivisonQueryAPIResponseModel +} + +// 查询服务支持地区列表 成功返回结果 +type AlibabaAscpIndustryDisivisonQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_industry_disivison_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Data *AlibabaAscpIndustryDisivisonQueryData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/nropen/AlibabaAscpIndustryDisivisonQueryResponse.go b/model/nropen/AlibabaAscpIndustryDisivisonQueryResponse.go deleted file mode 100644 index f8da68ca54..0000000000 --- a/model/nropen/AlibabaAscpIndustryDisivisonQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nropen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询服务支持地区列表 API返回值 -alibaba.ascp.industry.disivison.query - -商家获取服务支持地区 -*/ -type AlibabaAscpIndustryDisivisonQueryAPIResponse struct { - model.CommonResponse - AlibabaAscpIndustryDisivisonQueryResponse -} - -// 查询服务支持地区列表 成功返回结果 -type AlibabaAscpIndustryDisivisonQueryResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_industry_disivison_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Data *AlibabaAscpIndustryDisivisonQueryData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/nrpos/AlibabaMosCommdyOfflineGetfileurlAPIRequest.go b/model/nrpos/AlibabaMosCommdyOfflineGetfileurlAPIRequest.go new file mode 100644 index 0000000000..f3631b2031 --- /dev/null +++ b/model/nrpos/AlibabaMosCommdyOfflineGetfileurlAPIRequest.go @@ -0,0 +1,52 @@ +package nrpos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +去前置机pos商品离线文件下载地址查询接口 API请求 +alibaba.mos.commdy.offline.getfileurl + +去前置机-pos查询离线文件下载地址接口 +*/ +type AlibabaMosCommdyOfflineGetfileurlAPIRequest struct { + model.Params + // 离线文件名称 + _fileKeys []string +} + +// 初始化AlibabaMosCommdyOfflineGetfileurlAPIRequest对象 +func NewAlibabaMosCommdyOfflineGetfileurlRequest() *AlibabaMosCommdyOfflineGetfileurlAPIRequest{ + return &AlibabaMosCommdyOfflineGetfileurlAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosCommdyOfflineGetfileurlAPIRequest) GetApiMethodName() string { + return "alibaba.mos.commdy.offline.getfileurl" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosCommdyOfflineGetfileurlAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FileKeys Setter +// 离线文件名称 +func (r *AlibabaMosCommdyOfflineGetfileurlAPIRequest) SetFileKeys(_fileKeys []string) error { + r._fileKeys = _fileKeys + r.Set("file_keys", _fileKeys) + return nil +} + +// FileKeys Getter +func (r AlibabaMosCommdyOfflineGetfileurlAPIRequest) GetFileKeys() []string { + return r._fileKeys +} diff --git a/model/nrpos/AlibabaMosCommdyOfflineGetfileurlAPIResponse.go b/model/nrpos/AlibabaMosCommdyOfflineGetfileurlAPIResponse.go new file mode 100644 index 0000000000..097453b2ac --- /dev/null +++ b/model/nrpos/AlibabaMosCommdyOfflineGetfileurlAPIResponse.go @@ -0,0 +1,27 @@ +package nrpos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +去前置机pos商品离线文件下载地址查询接口 API返回值 +alibaba.mos.commdy.offline.getfileurl + +去前置机-pos查询离线文件下载地址接口 +*/ +type AlibabaMosCommdyOfflineGetfileurlAPIResponse struct { + model.CommonResponse + AlibabaMosCommdyOfflineGetfileurlAPIResponseModel +} + +// 去前置机pos商品离线文件下载地址查询接口 成功返回结果 +type AlibabaMosCommdyOfflineGetfileurlAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_commdy_offline_getfileurl_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaMosCommdyOfflineGetfileurlResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/nrpos/AlibabaMosCommdyOfflineGetfileurlResponse.go b/model/nrpos/AlibabaMosCommdyOfflineGetfileurlResponse.go deleted file mode 100644 index 56b4c755d9..0000000000 --- a/model/nrpos/AlibabaMosCommdyOfflineGetfileurlResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nrpos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -去前置机pos商品离线文件下载地址查询接口 API返回值 -alibaba.mos.commdy.offline.getfileurl - -去前置机-pos查询离线文件下载地址接口 -*/ -type AlibabaMosCommdyOfflineGetfileurlAPIResponse struct { - model.CommonResponse - AlibabaMosCommdyOfflineGetfileurlResponse -} - -// 去前置机pos商品离线文件下载地址查询接口 成功返回结果 -type AlibabaMosCommdyOfflineGetfileurlResponse struct { - XMLName xml.Name `xml:"alibaba_mos_commdy_offline_getfileurl_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaMosCommdyOfflineGetfileurlResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/nrpos/AlibabaMosCommdyOfflineGetfileurlResultDo.go b/model/nrpos/AlibabaMosCommdyOfflineGetfileurlResultDo.go new file mode 100644 index 0000000000..72826a8544 --- /dev/null +++ b/model/nrpos/AlibabaMosCommdyOfflineGetfileurlResultDo.go @@ -0,0 +1,21 @@ +package nrpos + +// AlibabaMosCommdyOfflineGetfileurlResultDo +type AlibabaMosCommdyOfflineGetfileurlResultDo struct { + // 返回头 + Headers string `json:"headers,omitempty" xml:"headers,omitempty"` + // null + MappingCode string `json:"mapping_code,omitempty" xml:"mapping_code,omitempty"` + // 返回结果合集 + Datas []OfflineFileDto `json:"datas,omitempty" xml:"datas>offline_file_dto,omitempty"` + // http请求返回码 + HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"` + // null + BizExtMap string `json:"biz_ext_map,omitempty" xml:"biz_ext_map,omitempty"` + // 业务返回码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 业务返回信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/nrpos/AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest.go b/model/nrpos/AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest.go new file mode 100644 index 0000000000..a00166652c --- /dev/null +++ b/model/nrpos/AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest.go @@ -0,0 +1,52 @@ +package nrpos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +去前置机商品在线查询 API请求 +alibaba.mos.commdy.posmerchandise.getmerchandise + +去前置机商品在线查询接口 +*/ +type AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest struct { + model.Params + // 查询参数列表 + _posMerchandiseList []QueryMerchandiseDto +} + +// 初始化AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest对象 +func NewAlibabaMosCommdyPosmerchandiseGetmerchandiseRequest() *AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest{ + return &AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest) GetApiMethodName() string { + return "alibaba.mos.commdy.posmerchandise.getmerchandise" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PosMerchandiseList Setter +// 查询参数列表 +func (r *AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest) SetPosMerchandiseList(_posMerchandiseList []QueryMerchandiseDto) error { + r._posMerchandiseList = _posMerchandiseList + r.Set("pos_merchandise_list", _posMerchandiseList) + return nil +} + +// PosMerchandiseList Getter +func (r AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIRequest) GetPosMerchandiseList() []QueryMerchandiseDto { + return r._posMerchandiseList +} diff --git a/model/nrpos/AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse.go b/model/nrpos/AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse.go new file mode 100644 index 0000000000..e8f8431053 --- /dev/null +++ b/model/nrpos/AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse.go @@ -0,0 +1,27 @@ +package nrpos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +去前置机商品在线查询 API返回值 +alibaba.mos.commdy.posmerchandise.getmerchandise + +去前置机商品在线查询接口 +*/ +type AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse struct { + model.CommonResponse + AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponseModel +} + +// 去前置机商品在线查询 成功返回结果 +type AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_commdy_posmerchandise_getmerchandise_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/nrpos/AlibabaMosCommdyPosmerchandiseGetmerchandiseResponse.go b/model/nrpos/AlibabaMosCommdyPosmerchandiseGetmerchandiseResponse.go deleted file mode 100644 index 97d332d8c9..0000000000 --- a/model/nrpos/AlibabaMosCommdyPosmerchandiseGetmerchandiseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nrpos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -去前置机商品在线查询 API返回值 -alibaba.mos.commdy.posmerchandise.getmerchandise - -去前置机商品在线查询接口 -*/ -type AlibabaMosCommdyPosmerchandiseGetmerchandiseAPIResponse struct { - model.CommonResponse - AlibabaMosCommdyPosmerchandiseGetmerchandiseResponse -} - -// 去前置机商品在线查询 成功返回结果 -type AlibabaMosCommdyPosmerchandiseGetmerchandiseResponse struct { - XMLName xml.Name `xml:"alibaba_mos_commdy_posmerchandise_getmerchandise_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/nrpos/AlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo.go b/model/nrpos/AlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo.go new file mode 100644 index 0000000000..41f3c61f28 --- /dev/null +++ b/model/nrpos/AlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo.go @@ -0,0 +1,21 @@ +package nrpos + +// AlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo +type AlibabaMosCommdyPosmerchandiseGetmerchandiseResultDo struct { + // 返回头 + Headers string `json:"headers,omitempty" xml:"headers,omitempty"` + // null + MappingCode string `json:"mapping_code,omitempty" xml:"mapping_code,omitempty"` + // 返回数据, + Datas []MerchandiseInfoDto `json:"datas,omitempty" xml:"datas>merchandise_info_dto,omitempty"` + // http请求返回码 + HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"` + // null + BizExtMap string `json:"biz_ext_map,omitempty" xml:"biz_ext_map,omitempty"` + // 业务返回码,801表示商品不存在 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 业务返回信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/nrt/AlibabaAscpInventoryQueryAPIRequest.go b/model/nrt/AlibabaAscpInventoryQueryAPIRequest.go new file mode 100644 index 0000000000..6a0f95a309 --- /dev/null +++ b/model/nrt/AlibabaAscpInventoryQueryAPIRequest.go @@ -0,0 +1,52 @@ +package nrt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品库存查询接口 API请求 +alibaba.ascp.inventory.query + +新零售联盟商家库存查询接口,用于商家商品库存数量感知查询 +*/ +type AlibabaAscpInventoryQueryAPIRequest struct { + model.Params + // 系统自动生成 + _invSingleItemSyncDto *InvSingleItemSyncDto +} + +// 初始化AlibabaAscpInventoryQueryAPIRequest对象 +func NewAlibabaAscpInventoryQueryRequest() *AlibabaAscpInventoryQueryAPIRequest{ + return &AlibabaAscpInventoryQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpInventoryQueryAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.inventory.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpInventoryQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InvSingleItemSyncDto Setter +// 系统自动生成 +func (r *AlibabaAscpInventoryQueryAPIRequest) SetInvSingleItemSyncDto(_invSingleItemSyncDto *InvSingleItemSyncDto) error { + r._invSingleItemSyncDto = _invSingleItemSyncDto + r.Set("inv_single_item_sync_dto", _invSingleItemSyncDto) + return nil +} + +// InvSingleItemSyncDto Getter +func (r AlibabaAscpInventoryQueryAPIRequest) GetInvSingleItemSyncDto() *InvSingleItemSyncDto { + return r._invSingleItemSyncDto +} diff --git a/model/nrt/AlibabaAscpInventoryQueryAPIResponse.go b/model/nrt/AlibabaAscpInventoryQueryAPIResponse.go new file mode 100644 index 0000000000..79bd22d530 --- /dev/null +++ b/model/nrt/AlibabaAscpInventoryQueryAPIResponse.go @@ -0,0 +1,27 @@ +package nrt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品库存查询接口 API返回值 +alibaba.ascp.inventory.query + +新零售联盟商家库存查询接口,用于商家商品库存数量感知查询 +*/ +type AlibabaAscpInventoryQueryAPIResponse struct { + model.CommonResponse + AlibabaAscpInventoryQueryAPIResponseModel +} + +// 商品库存查询接口 成功返回结果 +type AlibabaAscpInventoryQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_inventory_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/nrt/AlibabaAscpInventoryQueryResponse.go b/model/nrt/AlibabaAscpInventoryQueryResponse.go deleted file mode 100644 index fcb98b03b3..0000000000 --- a/model/nrt/AlibabaAscpInventoryQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nrt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品库存查询接口 API返回值 -alibaba.ascp.inventory.query - -新零售联盟商家库存查询接口,用于商家商品库存数量感知查询 -*/ -type AlibabaAscpInventoryQueryAPIResponse struct { - model.CommonResponse - AlibabaAscpInventoryQueryResponse -} - -// 商品库存查询接口 成功返回结果 -type AlibabaAscpInventoryQueryResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_inventory_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/nrt/AlibabaAscpInventorySyncAPIRequest.go b/model/nrt/AlibabaAscpInventorySyncAPIRequest.go new file mode 100644 index 0000000000..c850d7389f --- /dev/null +++ b/model/nrt/AlibabaAscpInventorySyncAPIRequest.go @@ -0,0 +1,52 @@ +package nrt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +库存同步接口 API请求 +alibaba.ascp.inventory.sync + +新零售联盟商家库存同步接口,用于商家商品库存数量同步到阿里系统 +*/ +type AlibabaAscpInventorySyncAPIRequest struct { + model.Params + // 库存同步DTO + _invSingleItemSyncDto *InvSingleItemSyncDto +} + +// 初始化AlibabaAscpInventorySyncAPIRequest对象 +func NewAlibabaAscpInventorySyncRequest() *AlibabaAscpInventorySyncAPIRequest{ + return &AlibabaAscpInventorySyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAscpInventorySyncAPIRequest) GetApiMethodName() string { + return "alibaba.ascp.inventory.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAscpInventorySyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InvSingleItemSyncDto Setter +// 库存同步DTO +func (r *AlibabaAscpInventorySyncAPIRequest) SetInvSingleItemSyncDto(_invSingleItemSyncDto *InvSingleItemSyncDto) error { + r._invSingleItemSyncDto = _invSingleItemSyncDto + r.Set("inv_single_item_sync_dto", _invSingleItemSyncDto) + return nil +} + +// InvSingleItemSyncDto Getter +func (r AlibabaAscpInventorySyncAPIRequest) GetInvSingleItemSyncDto() *InvSingleItemSyncDto { + return r._invSingleItemSyncDto +} diff --git a/model/nrt/AlibabaAscpInventorySyncAPIResponse.go b/model/nrt/AlibabaAscpInventorySyncAPIResponse.go new file mode 100644 index 0000000000..f6482d69d4 --- /dev/null +++ b/model/nrt/AlibabaAscpInventorySyncAPIResponse.go @@ -0,0 +1,27 @@ +package nrt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +库存同步接口 API返回值 +alibaba.ascp.inventory.sync + +新零售联盟商家库存同步接口,用于商家商品库存数量同步到阿里系统 +*/ +type AlibabaAscpInventorySyncAPIResponse struct { + model.CommonResponse + AlibabaAscpInventorySyncAPIResponseModel +} + +// 库存同步接口 成功返回结果 +type AlibabaAscpInventorySyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ascp_inventory_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/nrt/AlibabaAscpInventorySyncResponse.go b/model/nrt/AlibabaAscpInventorySyncResponse.go deleted file mode 100644 index ce8c44f884..0000000000 --- a/model/nrt/AlibabaAscpInventorySyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nrt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -库存同步接口 API返回值 -alibaba.ascp.inventory.sync - -新零售联盟商家库存同步接口,用于商家商品库存数量同步到阿里系统 -*/ -type AlibabaAscpInventorySyncAPIResponse struct { - model.CommonResponse - AlibabaAscpInventorySyncResponse -} - -// 库存同步接口 成功返回结果 -type AlibabaAscpInventorySyncResponse struct { - XMLName xml.Name `xml:"alibaba_ascp_inventory_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/nrt/AlibabaRetailDeviceVendingRegisterAPIRequest.go b/model/nrt/AlibabaRetailDeviceVendingRegisterAPIRequest.go new file mode 100644 index 0000000000..b4829ca996 --- /dev/null +++ b/model/nrt/AlibabaRetailDeviceVendingRegisterAPIRequest.go @@ -0,0 +1,192 @@ +package nrt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机设备注册 API请求 +alibaba.retail.device.vending.register + +贩卖机注册 +*/ +type AlibabaRetailDeviceVendingRegisterAPIRequest struct { + model.Params + // 设备名称 + _deviceName string + // 设备地址 + _address string + // 对接过阿里atm传入 + _deviceSn string + // 业务编码,联系对接人申请 + _bizCode string + // 外部设备编号 + _deviceUuid string + // 设备类型 + _deviceModel string + // COMMUNITY:小区,SCHOOL:学校,OFFICE:写字楼,SHOPPING_MALL:商场,AIRPORT:机场,SUBWAY:地铁,HOSPITAL:医院,PLAYGROUNDS:游乐场所,FACTORY:工厂,VIEWPOINT:旅游景点,OTHERS:其他 + _scene string + // 场地名称,根据场地类型来,如:学校名称,商场名称。如果不传系统会根据address传入计算,为确保准确性请传入并确保address完整 + _siteName string + // 楼栋信息。如果不传系统会根据address传入计算,为确保准确性请传入并确保address完整 + _floor string + // 层。如果不传系统会根据address传入计算,为确保准确性请传入并确保address完整 + _layer string + // 室内地址描述。如果不传系统会根据address传入计算,为确保准确性请传入并确保address完整 + _location string +} + +// 初始化AlibabaRetailDeviceVendingRegisterAPIRequest对象 +func NewAlibabaRetailDeviceVendingRegisterRequest() *AlibabaRetailDeviceVendingRegisterAPIRequest{ + return &AlibabaRetailDeviceVendingRegisterAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailDeviceVendingRegisterAPIRequest) GetApiMethodName() string { + return "alibaba.retail.device.vending.register" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailDeviceVendingRegisterAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceName Setter +// 设备名称 +func (r *AlibabaRetailDeviceVendingRegisterAPIRequest) SetDeviceName(_deviceName string) error { + r._deviceName = _deviceName + r.Set("device_name", _deviceName) + return nil +} + +// DeviceName Getter +func (r AlibabaRetailDeviceVendingRegisterAPIRequest) GetDeviceName() string { + return r._deviceName +} +// Address Setter +// 设备地址 +func (r *AlibabaRetailDeviceVendingRegisterAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r AlibabaRetailDeviceVendingRegisterAPIRequest) GetAddress() string { + return r._address +} +// DeviceSn Setter +// 对接过阿里atm传入 +func (r *AlibabaRetailDeviceVendingRegisterAPIRequest) SetDeviceSn(_deviceSn string) error { + r._deviceSn = _deviceSn + r.Set("device_sn", _deviceSn) + return nil +} + +// DeviceSn Getter +func (r AlibabaRetailDeviceVendingRegisterAPIRequest) GetDeviceSn() string { + return r._deviceSn +} +// BizCode Setter +// 业务编码,联系对接人申请 +func (r *AlibabaRetailDeviceVendingRegisterAPIRequest) SetBizCode(_bizCode string) error { + r._bizCode = _bizCode + r.Set("biz_code", _bizCode) + return nil +} + +// BizCode Getter +func (r AlibabaRetailDeviceVendingRegisterAPIRequest) GetBizCode() string { + return r._bizCode +} +// DeviceUuid Setter +// 外部设备编号 +func (r *AlibabaRetailDeviceVendingRegisterAPIRequest) SetDeviceUuid(_deviceUuid string) error { + r._deviceUuid = _deviceUuid + r.Set("device_uuid", _deviceUuid) + return nil +} + +// DeviceUuid Getter +func (r AlibabaRetailDeviceVendingRegisterAPIRequest) GetDeviceUuid() string { + return r._deviceUuid +} +// DeviceModel Setter +// 设备类型 +func (r *AlibabaRetailDeviceVendingRegisterAPIRequest) SetDeviceModel(_deviceModel string) error { + r._deviceModel = _deviceModel + r.Set("device_model", _deviceModel) + return nil +} + +// DeviceModel Getter +func (r AlibabaRetailDeviceVendingRegisterAPIRequest) GetDeviceModel() string { + return r._deviceModel +} +// Scene Setter +// COMMUNITY:小区,SCHOOL:学校,OFFICE:写字楼,SHOPPING_MALL:商场,AIRPORT:机场,SUBWAY:地铁,HOSPITAL:医院,PLAYGROUNDS:游乐场所,FACTORY:工厂,VIEWPOINT:旅游景点,OTHERS:其他 +func (r *AlibabaRetailDeviceVendingRegisterAPIRequest) SetScene(_scene string) error { + r._scene = _scene + r.Set("scene", _scene) + return nil +} + +// Scene Getter +func (r AlibabaRetailDeviceVendingRegisterAPIRequest) GetScene() string { + return r._scene +} +// SiteName Setter +// 场地名称,根据场地类型来,如:学校名称,商场名称。如果不传系统会根据address传入计算,为确保准确性请传入并确保address完整 +func (r *AlibabaRetailDeviceVendingRegisterAPIRequest) SetSiteName(_siteName string) error { + r._siteName = _siteName + r.Set("site_name", _siteName) + return nil +} + +// SiteName Getter +func (r AlibabaRetailDeviceVendingRegisterAPIRequest) GetSiteName() string { + return r._siteName +} +// Floor Setter +// 楼栋信息。如果不传系统会根据address传入计算,为确保准确性请传入并确保address完整 +func (r *AlibabaRetailDeviceVendingRegisterAPIRequest) SetFloor(_floor string) error { + r._floor = _floor + r.Set("floor", _floor) + return nil +} + +// Floor Getter +func (r AlibabaRetailDeviceVendingRegisterAPIRequest) GetFloor() string { + return r._floor +} +// Layer Setter +// 层。如果不传系统会根据address传入计算,为确保准确性请传入并确保address完整 +func (r *AlibabaRetailDeviceVendingRegisterAPIRequest) SetLayer(_layer string) error { + r._layer = _layer + r.Set("layer", _layer) + return nil +} + +// Layer Getter +func (r AlibabaRetailDeviceVendingRegisterAPIRequest) GetLayer() string { + return r._layer +} +// Location Setter +// 室内地址描述。如果不传系统会根据address传入计算,为确保准确性请传入并确保address完整 +func (r *AlibabaRetailDeviceVendingRegisterAPIRequest) SetLocation(_location string) error { + r._location = _location + r.Set("location", _location) + return nil +} + +// Location Getter +func (r AlibabaRetailDeviceVendingRegisterAPIRequest) GetLocation() string { + return r._location +} diff --git a/model/nrt/AlibabaRetailDeviceVendingRegisterAPIResponse.go b/model/nrt/AlibabaRetailDeviceVendingRegisterAPIResponse.go new file mode 100644 index 0000000000..995ff302d6 --- /dev/null +++ b/model/nrt/AlibabaRetailDeviceVendingRegisterAPIResponse.go @@ -0,0 +1,27 @@ +package nrt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机设备注册 API返回值 +alibaba.retail.device.vending.register + +贩卖机注册 +*/ +type AlibabaRetailDeviceVendingRegisterAPIResponse struct { + model.CommonResponse + AlibabaRetailDeviceVendingRegisterAPIResponseModel +} + +// 贩卖机设备注册 成功返回结果 +type AlibabaRetailDeviceVendingRegisterAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_device_vending_register_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaRetailDeviceVendingRegisterResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/nrt/AlibabaRetailDeviceVendingRegisterResponse.go b/model/nrt/AlibabaRetailDeviceVendingRegisterResponse.go deleted file mode 100644 index 58d74adf0f..0000000000 --- a/model/nrt/AlibabaRetailDeviceVendingRegisterResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nrt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -贩卖机设备注册 API返回值 -alibaba.retail.device.vending.register - -贩卖机注册 -*/ -type AlibabaRetailDeviceVendingRegisterAPIResponse struct { - model.CommonResponse - AlibabaRetailDeviceVendingRegisterResponse -} - -// 贩卖机设备注册 成功返回结果 -type AlibabaRetailDeviceVendingRegisterResponse struct { - XMLName xml.Name `xml:"alibaba_retail_device_vending_register_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaRetailDeviceVendingRegisterResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/nrt/AlibabaRetailDeviceVendingRegisterResultDo.go b/model/nrt/AlibabaRetailDeviceVendingRegisterResultDo.go new file mode 100644 index 0000000000..74dd6d2dc2 --- /dev/null +++ b/model/nrt/AlibabaRetailDeviceVendingRegisterResultDo.go @@ -0,0 +1,13 @@ +package nrt + +// AlibabaRetailDeviceVendingRegisterResultDo +type AlibabaRetailDeviceVendingRegisterResultDo struct { + // 是否成功 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 数据 + Data *DeviceDto `json:"data,omitempty" xml:"data,omitempty"` + // 错误码 + Code string `json:"code,omitempty" xml:"code,omitempty"` + // 测试 + Msg string `json:"msg,omitempty" xml:"msg,omitempty"` +} diff --git a/model/nrt/AlibabaRetailVendingRoadItemSyncAPIRequest.go b/model/nrt/AlibabaRetailVendingRoadItemSyncAPIRequest.go new file mode 100644 index 0000000000..b42a8c9476 --- /dev/null +++ b/model/nrt/AlibabaRetailVendingRoadItemSyncAPIRequest.go @@ -0,0 +1,52 @@ +package nrt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机库存商品同步 API请求 +alibaba.retail.vending.road.item.sync + +贩卖机库存商品同步 +*/ +type AlibabaRetailVendingRoadItemSyncAPIRequest struct { + model.Params + // 入参 + _roadItemSync *RoadItemSyncDto +} + +// 初始化AlibabaRetailVendingRoadItemSyncAPIRequest对象 +func NewAlibabaRetailVendingRoadItemSyncRequest() *AlibabaRetailVendingRoadItemSyncAPIRequest{ + return &AlibabaRetailVendingRoadItemSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailVendingRoadItemSyncAPIRequest) GetApiMethodName() string { + return "alibaba.retail.vending.road.item.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailVendingRoadItemSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RoadItemSync Setter +// 入参 +func (r *AlibabaRetailVendingRoadItemSyncAPIRequest) SetRoadItemSync(_roadItemSync *RoadItemSyncDto) error { + r._roadItemSync = _roadItemSync + r.Set("road_item_sync", _roadItemSync) + return nil +} + +// RoadItemSync Getter +func (r AlibabaRetailVendingRoadItemSyncAPIRequest) GetRoadItemSync() *RoadItemSyncDto { + return r._roadItemSync +} diff --git a/model/nrt/AlibabaRetailVendingRoadItemSyncAPIResponse.go b/model/nrt/AlibabaRetailVendingRoadItemSyncAPIResponse.go new file mode 100644 index 0000000000..c2ed5fb315 --- /dev/null +++ b/model/nrt/AlibabaRetailVendingRoadItemSyncAPIResponse.go @@ -0,0 +1,33 @@ +package nrt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机库存商品同步 API返回值 +alibaba.retail.vending.road.item.sync + +贩卖机库存商品同步 +*/ +type AlibabaRetailVendingRoadItemSyncAPIResponse struct { + model.CommonResponse + AlibabaRetailVendingRoadItemSyncAPIResponseModel +} + +// 贩卖机库存商品同步 成功返回结果 +type AlibabaRetailVendingRoadItemSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_vending_road_item_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功标识 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 是否成功 + Data bool `json:"data,omitempty" xml:"data,omitempty"` + // 错误码 + ECode string `json:"e_code,omitempty" xml:"e_code,omitempty"` + // 错误消息 + EMsg string `json:"e_msg,omitempty" xml:"e_msg,omitempty"` +} diff --git a/model/nrt/AlibabaRetailVendingRoadItemSyncResponse.go b/model/nrt/AlibabaRetailVendingRoadItemSyncResponse.go deleted file mode 100644 index 8d5d272f52..0000000000 --- a/model/nrt/AlibabaRetailVendingRoadItemSyncResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package nrt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -贩卖机库存商品同步 API返回值 -alibaba.retail.vending.road.item.sync - -贩卖机库存商品同步 -*/ -type AlibabaRetailVendingRoadItemSyncAPIResponse struct { - model.CommonResponse - AlibabaRetailVendingRoadItemSyncResponse -} - -// 贩卖机库存商品同步 成功返回结果 -type AlibabaRetailVendingRoadItemSyncResponse struct { - XMLName xml.Name `xml:"alibaba_retail_vending_road_item_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功标识 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` - // 是否成功 - Data bool `json:"data,omitempty" xml:"data,omitempty"` - // 错误码 - ECode string `json:"e_code,omitempty" xml:"e_code,omitempty"` - // 错误消息 - EMsg string `json:"e_msg,omitempty" xml:"e_msg,omitempty"` -} diff --git a/model/nrt/TmallNrtBranddetailQueryAPIRequest.go b/model/nrt/TmallNrtBranddetailQueryAPIRequest.go new file mode 100644 index 0000000000..4a6a3d895e --- /dev/null +++ b/model/nrt/TmallNrtBranddetailQueryAPIRequest.go @@ -0,0 +1,52 @@ +package nrt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌详情查询 API请求 +tmall.nrt.branddetail.query + +根据品牌id查询品牌的详细信息 +*/ +type TmallNrtBranddetailQueryAPIRequest struct { + model.Params + // 品牌id + _brandId int64 +} + +// 初始化TmallNrtBranddetailQueryAPIRequest对象 +func NewTmallNrtBranddetailQueryRequest() *TmallNrtBranddetailQueryAPIRequest{ + return &TmallNrtBranddetailQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrtBranddetailQueryAPIRequest) GetApiMethodName() string { + return "tmall.nrt.branddetail.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrtBranddetailQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BrandId Setter +// 品牌id +func (r *TmallNrtBranddetailQueryAPIRequest) SetBrandId(_brandId int64) error { + r._brandId = _brandId + r.Set("brand_id", _brandId) + return nil +} + +// BrandId Getter +func (r TmallNrtBranddetailQueryAPIRequest) GetBrandId() int64 { + return r._brandId +} diff --git a/model/nrt/TmallNrtBranddetailQueryAPIResponse.go b/model/nrt/TmallNrtBranddetailQueryAPIResponse.go new file mode 100644 index 0000000000..1c90a32d00 --- /dev/null +++ b/model/nrt/TmallNrtBranddetailQueryAPIResponse.go @@ -0,0 +1,27 @@ +package nrt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌详情查询 API返回值 +tmall.nrt.branddetail.query + +根据品牌id查询品牌的详细信息 +*/ +type TmallNrtBranddetailQueryAPIResponse struct { + model.CommonResponse + TmallNrtBranddetailQueryAPIResponseModel +} + +// 品牌详情查询 成功返回结果 +type TmallNrtBranddetailQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nrt_branddetail_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data string `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/nrt/TmallNrtBranddetailQueryResponse.go b/model/nrt/TmallNrtBranddetailQueryResponse.go deleted file mode 100644 index dbec717dee..0000000000 --- a/model/nrt/TmallNrtBranddetailQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nrt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -品牌详情查询 API返回值 -tmall.nrt.branddetail.query - -根据品牌id查询品牌的详细信息 -*/ -type TmallNrtBranddetailQueryAPIResponse struct { - model.CommonResponse - TmallNrtBranddetailQueryResponse -} - -// 品牌详情查询 成功返回结果 -type TmallNrtBranddetailQueryResponse struct { - XMLName xml.Name `xml:"tmall_nrt_branddetail_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data string `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/nrt/TmallNrtBrandinfoQueryAPIRequest.go b/model/nrt/TmallNrtBrandinfoQueryAPIRequest.go new file mode 100644 index 0000000000..758240f2c0 --- /dev/null +++ b/model/nrt/TmallNrtBrandinfoQueryAPIRequest.go @@ -0,0 +1,38 @@ +package nrt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌数据查询 API请求 +tmall.nrt.brandinfo.query + +商家获取自己旗舰店授权的品牌id列表 +*/ +type TmallNrtBrandinfoQueryAPIRequest struct { + model.Params +} + +// 初始化TmallNrtBrandinfoQueryAPIRequest对象 +func NewTmallNrtBrandinfoQueryRequest() *TmallNrtBrandinfoQueryAPIRequest{ + return &TmallNrtBrandinfoQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrtBrandinfoQueryAPIRequest) GetApiMethodName() string { + return "tmall.nrt.brandinfo.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrtBrandinfoQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/nrt/TmallNrtBrandinfoQueryAPIResponse.go b/model/nrt/TmallNrtBrandinfoQueryAPIResponse.go new file mode 100644 index 0000000000..2da7411dba --- /dev/null +++ b/model/nrt/TmallNrtBrandinfoQueryAPIResponse.go @@ -0,0 +1,27 @@ +package nrt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌数据查询 API返回值 +tmall.nrt.brandinfo.query + +商家获取自己旗舰店授权的品牌id列表 +*/ +type TmallNrtBrandinfoQueryAPIResponse struct { + model.CommonResponse + TmallNrtBrandinfoQueryAPIResponseModel +} + +// 品牌数据查询 成功返回结果 +type TmallNrtBrandinfoQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nrt_brandinfo_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 品牌id + Datas []string `json:"datas,omitempty" xml:"datas>string,omitempty"` +} diff --git a/model/nrt/TmallNrtBrandinfoQueryResponse.go b/model/nrt/TmallNrtBrandinfoQueryResponse.go deleted file mode 100644 index 16e4f217ac..0000000000 --- a/model/nrt/TmallNrtBrandinfoQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nrt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -品牌数据查询 API返回值 -tmall.nrt.brandinfo.query - -商家获取自己旗舰店授权的品牌id列表 -*/ -type TmallNrtBrandinfoQueryAPIResponse struct { - model.CommonResponse - TmallNrtBrandinfoQueryResponse -} - -// 品牌数据查询 成功返回结果 -type TmallNrtBrandinfoQueryResponse struct { - XMLName xml.Name `xml:"tmall_nrt_brandinfo_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 品牌id - Datas []string `json:"datas,omitempty" xml:"datas>string,omitempty"` -} diff --git a/model/nrt/TmallNrtCouponSendAPIRequest.go b/model/nrt/TmallNrtCouponSendAPIRequest.go new file mode 100644 index 0000000000..bed21667cf --- /dev/null +++ b/model/nrt/TmallNrtCouponSendAPIRequest.go @@ -0,0 +1,52 @@ +package nrt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +券发放接口 API请求 +tmall.nrt.coupon.send + +新零售场景,商家自有渠道发放券 +*/ +type TmallNrtCouponSendAPIRequest struct { + model.Params + // 发券dto + _nrtCouponSendDto *NrtCouponSendDto +} + +// 初始化TmallNrtCouponSendAPIRequest对象 +func NewTmallNrtCouponSendRequest() *TmallNrtCouponSendAPIRequest{ + return &TmallNrtCouponSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrtCouponSendAPIRequest) GetApiMethodName() string { + return "tmall.nrt.coupon.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrtCouponSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NrtCouponSendDto Setter +// 发券dto +func (r *TmallNrtCouponSendAPIRequest) SetNrtCouponSendDto(_nrtCouponSendDto *NrtCouponSendDto) error { + r._nrtCouponSendDto = _nrtCouponSendDto + r.Set("nrt_coupon_send_dto", _nrtCouponSendDto) + return nil +} + +// NrtCouponSendDto Getter +func (r TmallNrtCouponSendAPIRequest) GetNrtCouponSendDto() *NrtCouponSendDto { + return r._nrtCouponSendDto +} diff --git a/model/nrt/TmallNrtCouponSendAPIResponse.go b/model/nrt/TmallNrtCouponSendAPIResponse.go new file mode 100644 index 0000000000..ebf4cc4ab0 --- /dev/null +++ b/model/nrt/TmallNrtCouponSendAPIResponse.go @@ -0,0 +1,27 @@ +package nrt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +券发放接口 API返回值 +tmall.nrt.coupon.send + +新零售场景,商家自有渠道发放券 +*/ +type TmallNrtCouponSendAPIResponse struct { + model.CommonResponse + TmallNrtCouponSendAPIResponseModel +} + +// 券发放接口 成功返回结果 +type TmallNrtCouponSendAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nrt_coupon_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 发券结果对象 + Model *SendCouponResponse `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/nrt/TmallNrtCouponSendResponse.go b/model/nrt/TmallNrtCouponSendResponse.go deleted file mode 100644 index b6cb29a818..0000000000 --- a/model/nrt/TmallNrtCouponSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nrt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -券发放接口 API返回值 -tmall.nrt.coupon.send - -新零售场景,商家自有渠道发放券 -*/ -type TmallNrtCouponSendAPIResponse struct { - model.CommonResponse - TmallNrtCouponSendResponse -} - -// 券发放接口 成功返回结果 -type TmallNrtCouponSendResponse struct { - XMLName xml.Name `xml:"tmall_nrt_coupon_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 发券结果对象 - Model *SendCouponResponse `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/nrt/TmallNrtCoupontemplateQueryAPIRequest.go b/model/nrt/TmallNrtCoupontemplateQueryAPIRequest.go new file mode 100644 index 0000000000..428a9b3eda --- /dev/null +++ b/model/nrt/TmallNrtCoupontemplateQueryAPIRequest.go @@ -0,0 +1,94 @@ +package nrt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +券模板查询 API请求 +tmall.nrt.coupontemplate.query + +新零售场景,商家拉取在新零售工作台设置的券数据 +*/ +type TmallNrtCoupontemplateQueryAPIRequest struct { + model.Params + // 券列表 + _couponTypeList []int64 + // 当前页 + _currentPage int64 + // 每页数据数量 + _pageSize int64 + // 业务code阿里指定 + _bizCode string +} + +// 初始化TmallNrtCoupontemplateQueryAPIRequest对象 +func NewTmallNrtCoupontemplateQueryRequest() *TmallNrtCoupontemplateQueryAPIRequest{ + return &TmallNrtCoupontemplateQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrtCoupontemplateQueryAPIRequest) GetApiMethodName() string { + return "tmall.nrt.coupontemplate.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrtCoupontemplateQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CouponTypeList Setter +// 券列表 +func (r *TmallNrtCoupontemplateQueryAPIRequest) SetCouponTypeList(_couponTypeList []int64) error { + r._couponTypeList = _couponTypeList + r.Set("coupon_type_list", _couponTypeList) + return nil +} + +// CouponTypeList Getter +func (r TmallNrtCoupontemplateQueryAPIRequest) GetCouponTypeList() []int64 { + return r._couponTypeList +} +// CurrentPage Setter +// 当前页 +func (r *TmallNrtCoupontemplateQueryAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TmallNrtCoupontemplateQueryAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// PageSize Setter +// 每页数据数量 +func (r *TmallNrtCoupontemplateQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TmallNrtCoupontemplateQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// BizCode Setter +// 业务code阿里指定 +func (r *TmallNrtCoupontemplateQueryAPIRequest) SetBizCode(_bizCode string) error { + r._bizCode = _bizCode + r.Set("biz_code", _bizCode) + return nil +} + +// BizCode Getter +func (r TmallNrtCoupontemplateQueryAPIRequest) GetBizCode() string { + return r._bizCode +} diff --git a/model/nrt/TmallNrtCoupontemplateQueryAPIResponse.go b/model/nrt/TmallNrtCoupontemplateQueryAPIResponse.go new file mode 100644 index 0000000000..2b254d2340 --- /dev/null +++ b/model/nrt/TmallNrtCoupontemplateQueryAPIResponse.go @@ -0,0 +1,29 @@ +package nrt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +券模板查询 API返回值 +tmall.nrt.coupontemplate.query + +新零售场景,商家拉取在新零售工作台设置的券数据 +*/ +type TmallNrtCoupontemplateQueryAPIResponse struct { + model.CommonResponse + TmallNrtCoupontemplateQueryAPIResponseModel +} + +// 券模板查询 成功返回结果 +type TmallNrtCoupontemplateQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nrt_coupontemplate_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // model + Model *PageData `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/nrt/TmallNrtCoupontemplateQueryResponse.go b/model/nrt/TmallNrtCoupontemplateQueryResponse.go deleted file mode 100644 index b8ade40609..0000000000 --- a/model/nrt/TmallNrtCoupontemplateQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package nrt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -券模板查询 API返回值 -tmall.nrt.coupontemplate.query - -新零售场景,商家拉取在新零售工作台设置的券数据 -*/ -type TmallNrtCoupontemplateQueryAPIResponse struct { - model.CommonResponse - TmallNrtCoupontemplateQueryResponse -} - -// 券模板查询 成功返回结果 -type TmallNrtCoupontemplateQueryResponse struct { - XMLName xml.Name `xml:"tmall_nrt_coupontemplate_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // model - Model *PageData `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/nrt/TmallNrtEasyhomememberSynAPIRequest.go b/model/nrt/TmallNrtEasyhomememberSynAPIRequest.go new file mode 100644 index 0000000000..6189c73e33 --- /dev/null +++ b/model/nrt/TmallNrtEasyhomememberSynAPIRequest.go @@ -0,0 +1,52 @@ +package nrt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +会员信息同 API请求 +tmall.nrt.easyhomemember.syn + +居然之家将会员信息同步到零售中台 包含基本的会员信息 +*/ +type TmallNrtEasyhomememberSynAPIRequest struct { + model.Params + // 入参 + _param *ExternalMemberDto +} + +// 初始化TmallNrtEasyhomememberSynAPIRequest对象 +func NewTmallNrtEasyhomememberSynRequest() *TmallNrtEasyhomememberSynAPIRequest{ + return &TmallNrtEasyhomememberSynAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrtEasyhomememberSynAPIRequest) GetApiMethodName() string { + return "tmall.nrt.easyhomemember.syn" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrtEasyhomememberSynAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *TmallNrtEasyhomememberSynAPIRequest) SetParam(_param *ExternalMemberDto) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r TmallNrtEasyhomememberSynAPIRequest) GetParam() *ExternalMemberDto { + return r._param +} diff --git a/model/nrt/TmallNrtEasyhomememberSynAPIResponse.go b/model/nrt/TmallNrtEasyhomememberSynAPIResponse.go new file mode 100644 index 0000000000..0bcbbf94f6 --- /dev/null +++ b/model/nrt/TmallNrtEasyhomememberSynAPIResponse.go @@ -0,0 +1,27 @@ +package nrt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +会员信息同 API返回值 +tmall.nrt.easyhomemember.syn + +居然之家将会员信息同步到零售中台 包含基本的会员信息 +*/ +type TmallNrtEasyhomememberSynAPIResponse struct { + model.CommonResponse + TmallNrtEasyhomememberSynAPIResponseModel +} + +// 会员信息同 成功返回结果 +type TmallNrtEasyhomememberSynAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nrt_easyhomemember_syn_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/nrt/TmallNrtEasyhomememberSynResponse.go b/model/nrt/TmallNrtEasyhomememberSynResponse.go deleted file mode 100644 index 789476877c..0000000000 --- a/model/nrt/TmallNrtEasyhomememberSynResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nrt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -会员信息同 API返回值 -tmall.nrt.easyhomemember.syn - -居然之家将会员信息同步到零售中台 包含基本的会员信息 -*/ -type TmallNrtEasyhomememberSynAPIResponse struct { - model.CommonResponse - TmallNrtEasyhomememberSynResponse -} - -// 会员信息同 成功返回结果 -type TmallNrtEasyhomememberSynResponse struct { - XMLName xml.Name `xml:"tmall_nrt_easyhomemember_syn_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/nrt/TmallNrtItemGetAPIRequest.go b/model/nrt/TmallNrtItemGetAPIRequest.go new file mode 100644 index 0000000000..b9dbab0ad1 --- /dev/null +++ b/model/nrt/TmallNrtItemGetAPIRequest.go @@ -0,0 +1,66 @@ +package nrt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +家装新零售商品信息查询 API请求 +tmall.nrt.item.get + +查询新零售商品信息 +*/ +type TmallNrtItemGetAPIRequest struct { + model.Params + // 城市站id + _boothId int64 + // 商品id + _itemId int64 +} + +// 初始化TmallNrtItemGetAPIRequest对象 +func NewTmallNrtItemGetRequest() *TmallNrtItemGetAPIRequest{ + return &TmallNrtItemGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrtItemGetAPIRequest) GetApiMethodName() string { + return "tmall.nrt.item.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrtItemGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BoothId Setter +// 城市站id +func (r *TmallNrtItemGetAPIRequest) SetBoothId(_boothId int64) error { + r._boothId = _boothId + r.Set("booth_id", _boothId) + return nil +} + +// BoothId Getter +func (r TmallNrtItemGetAPIRequest) GetBoothId() int64 { + return r._boothId +} +// ItemId Setter +// 商品id +func (r *TmallNrtItemGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallNrtItemGetAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/nrt/TmallNrtItemGetAPIResponse.go b/model/nrt/TmallNrtItemGetAPIResponse.go new file mode 100644 index 0000000000..e55e062244 --- /dev/null +++ b/model/nrt/TmallNrtItemGetAPIResponse.go @@ -0,0 +1,27 @@ +package nrt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +家装新零售商品信息查询 API返回值 +tmall.nrt.item.get + +查询新零售商品信息 +*/ +type TmallNrtItemGetAPIResponse struct { + model.CommonResponse + TmallNrtItemGetAPIResponseModel +} + +// 家装新零售商品信息查询 成功返回结果 +type TmallNrtItemGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nrt_item_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + TmallNrtItemGet *TmallNrtItemGetResultDo `json:"tmall_nrt_item_get,omitempty" xml:"tmall_nrt_item_get,omitempty"` +} diff --git a/model/nrt/TmallNrtItemGetResponse.go b/model/nrt/TmallNrtItemGetResponse.go deleted file mode 100644 index 80528102ef..0000000000 --- a/model/nrt/TmallNrtItemGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nrt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -家装新零售商品信息查询 API返回值 -tmall.nrt.item.get - -查询新零售商品信息 -*/ -type TmallNrtItemGetAPIResponse struct { - model.CommonResponse - TmallNrtItemGetResponse -} - -// 家装新零售商品信息查询 成功返回结果 -type TmallNrtItemGetResponse struct { - XMLName xml.Name `xml:"tmall_nrt_item_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - TmallNrtItemGet *TmallNrtItemGetResultDo `json:"tmall_nrt_item_get,omitempty" xml:"tmall_nrt_item_get,omitempty"` -} diff --git a/model/nrt/TmallNrtItemGetResultDo.go b/model/nrt/TmallNrtItemGetResultDo.go new file mode 100644 index 0000000000..9b8daf91b6 --- /dev/null +++ b/model/nrt/TmallNrtItemGetResultDo.go @@ -0,0 +1,13 @@ +package nrt + +// TmallNrtItemGetResultDo +type TmallNrtItemGetResultDo struct { + // 是否成功 + Data *TopHomeItemDto `json:"data,omitempty" xml:"data,omitempty"` + // 错误码 + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 错误信息 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/nrt/TmallNrtItemMainSynchronizeAPIRequest.go b/model/nrt/TmallNrtItemMainSynchronizeAPIRequest.go new file mode 100644 index 0000000000..d6e4698815 --- /dev/null +++ b/model/nrt/TmallNrtItemMainSynchronizeAPIRequest.go @@ -0,0 +1,164 @@ +package nrt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +家装新零售主商品同步至阿里 API请求 +tmall.nrt.item.main.synchronize + +同步红星美凯龙存量商品到阿里 +*/ +type TmallNrtItemMainSynchronizeAPIRequest struct { + model.Params + // 摊位id + _boothId string + // 叶子类目id + _cid int64 + // 类目属性 + _props []CategoryPropDto + // 经销商编码 + _dealerCode string + // 卖场id + _mallId string + // 商家编码 + _outerId string + // 系统自动生成 + _outerProps *MacallineItemExtDto + // 价格 + _price string + // 商品名 + _title string +} + +// 初始化TmallNrtItemMainSynchronizeAPIRequest对象 +func NewTmallNrtItemMainSynchronizeRequest() *TmallNrtItemMainSynchronizeAPIRequest{ + return &TmallNrtItemMainSynchronizeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrtItemMainSynchronizeAPIRequest) GetApiMethodName() string { + return "tmall.nrt.item.main.synchronize" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrtItemMainSynchronizeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BoothId Setter +// 摊位id +func (r *TmallNrtItemMainSynchronizeAPIRequest) SetBoothId(_boothId string) error { + r._boothId = _boothId + r.Set("booth_id", _boothId) + return nil +} + +// BoothId Getter +func (r TmallNrtItemMainSynchronizeAPIRequest) GetBoothId() string { + return r._boothId +} +// Cid Setter +// 叶子类目id +func (r *TmallNrtItemMainSynchronizeAPIRequest) SetCid(_cid int64) error { + r._cid = _cid + r.Set("cid", _cid) + return nil +} + +// Cid Getter +func (r TmallNrtItemMainSynchronizeAPIRequest) GetCid() int64 { + return r._cid +} +// Props Setter +// 类目属性 +func (r *TmallNrtItemMainSynchronizeAPIRequest) SetProps(_props []CategoryPropDto) error { + r._props = _props + r.Set("props", _props) + return nil +} + +// Props Getter +func (r TmallNrtItemMainSynchronizeAPIRequest) GetProps() []CategoryPropDto { + return r._props +} +// DealerCode Setter +// 经销商编码 +func (r *TmallNrtItemMainSynchronizeAPIRequest) SetDealerCode(_dealerCode string) error { + r._dealerCode = _dealerCode + r.Set("dealer_code", _dealerCode) + return nil +} + +// DealerCode Getter +func (r TmallNrtItemMainSynchronizeAPIRequest) GetDealerCode() string { + return r._dealerCode +} +// MallId Setter +// 卖场id +func (r *TmallNrtItemMainSynchronizeAPIRequest) SetMallId(_mallId string) error { + r._mallId = _mallId + r.Set("mall_id", _mallId) + return nil +} + +// MallId Getter +func (r TmallNrtItemMainSynchronizeAPIRequest) GetMallId() string { + return r._mallId +} +// OuterId Setter +// 商家编码 +func (r *TmallNrtItemMainSynchronizeAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TmallNrtItemMainSynchronizeAPIRequest) GetOuterId() string { + return r._outerId +} +// OuterProps Setter +// 系统自动生成 +func (r *TmallNrtItemMainSynchronizeAPIRequest) SetOuterProps(_outerProps *MacallineItemExtDto) error { + r._outerProps = _outerProps + r.Set("outer_props", _outerProps) + return nil +} + +// OuterProps Getter +func (r TmallNrtItemMainSynchronizeAPIRequest) GetOuterProps() *MacallineItemExtDto { + return r._outerProps +} +// Price Setter +// 价格 +func (r *TmallNrtItemMainSynchronizeAPIRequest) SetPrice(_price string) error { + r._price = _price + r.Set("price", _price) + return nil +} + +// Price Getter +func (r TmallNrtItemMainSynchronizeAPIRequest) GetPrice() string { + return r._price +} +// Title Setter +// 商品名 +func (r *TmallNrtItemMainSynchronizeAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TmallNrtItemMainSynchronizeAPIRequest) GetTitle() string { + return r._title +} diff --git a/model/nrt/TmallNrtItemMainSynchronizeAPIResponse.go b/model/nrt/TmallNrtItemMainSynchronizeAPIResponse.go new file mode 100644 index 0000000000..d8d82b1058 --- /dev/null +++ b/model/nrt/TmallNrtItemMainSynchronizeAPIResponse.go @@ -0,0 +1,27 @@ +package nrt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +家装新零售主商品同步至阿里 API返回值 +tmall.nrt.item.main.synchronize + +同步红星美凯龙存量商品到阿里 +*/ +type TmallNrtItemMainSynchronizeAPIResponse struct { + model.CommonResponse + TmallNrtItemMainSynchronizeAPIResponseModel +} + +// 家装新零售主商品同步至阿里 成功返回结果 +type TmallNrtItemMainSynchronizeAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nrt_item_main_synchronize_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + TmallNrtItemMainSynchronize *TmallNrtItemMainSynchronizeResultDo `json:"tmall_nrt_item_main_synchronize,omitempty" xml:"tmall_nrt_item_main_synchronize,omitempty"` +} diff --git a/model/nrt/TmallNrtItemMainSynchronizeResponse.go b/model/nrt/TmallNrtItemMainSynchronizeResponse.go deleted file mode 100644 index 73d806ccb9..0000000000 --- a/model/nrt/TmallNrtItemMainSynchronizeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nrt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -家装新零售主商品同步至阿里 API返回值 -tmall.nrt.item.main.synchronize - -同步红星美凯龙存量商品到阿里 -*/ -type TmallNrtItemMainSynchronizeAPIResponse struct { - model.CommonResponse - TmallNrtItemMainSynchronizeResponse -} - -// 家装新零售主商品同步至阿里 成功返回结果 -type TmallNrtItemMainSynchronizeResponse struct { - XMLName xml.Name `xml:"tmall_nrt_item_main_synchronize_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - TmallNrtItemMainSynchronize *TmallNrtItemMainSynchronizeResultDo `json:"tmall_nrt_item_main_synchronize,omitempty" xml:"tmall_nrt_item_main_synchronize,omitempty"` -} diff --git a/model/nrt/TmallNrtItemMainSynchronizeResultDo.go b/model/nrt/TmallNrtItemMainSynchronizeResultDo.go new file mode 100644 index 0000000000..885012b0a9 --- /dev/null +++ b/model/nrt/TmallNrtItemMainSynchronizeResultDo.go @@ -0,0 +1,9 @@ +package nrt + +// TmallNrtItemMainSynchronizeResultDo +type TmallNrtItemMainSynchronizeResultDo struct { + // 返回值 + Data *NrtItemSyncResultDto `json:"data,omitempty" xml:"data,omitempty"` + // 调用是否成功 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` +} diff --git a/model/nrt/TmallNrtMemberOpenidAPIRequest.go b/model/nrt/TmallNrtMemberOpenidAPIRequest.go new file mode 100644 index 0000000000..8008a4ded7 --- /dev/null +++ b/model/nrt/TmallNrtMemberOpenidAPIRequest.go @@ -0,0 +1,52 @@ +package nrt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据会员手机查询openId API请求 +tmall.nrt.member.openid + +根据会员手机查询openId +*/ +type TmallNrtMemberOpenidAPIRequest struct { + model.Params + // 会员DTO + _nrtMemberDto *NrtMemberDto +} + +// 初始化TmallNrtMemberOpenidAPIRequest对象 +func NewTmallNrtMemberOpenidRequest() *TmallNrtMemberOpenidAPIRequest{ + return &TmallNrtMemberOpenidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrtMemberOpenidAPIRequest) GetApiMethodName() string { + return "tmall.nrt.member.openid" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrtMemberOpenidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NrtMemberDto Setter +// 会员DTO +func (r *TmallNrtMemberOpenidAPIRequest) SetNrtMemberDto(_nrtMemberDto *NrtMemberDto) error { + r._nrtMemberDto = _nrtMemberDto + r.Set("nrt_member_dto", _nrtMemberDto) + return nil +} + +// NrtMemberDto Getter +func (r TmallNrtMemberOpenidAPIRequest) GetNrtMemberDto() *NrtMemberDto { + return r._nrtMemberDto +} diff --git a/model/nrt/TmallNrtMemberOpenidAPIResponse.go b/model/nrt/TmallNrtMemberOpenidAPIResponse.go new file mode 100644 index 0000000000..6494b1d3c9 --- /dev/null +++ b/model/nrt/TmallNrtMemberOpenidAPIResponse.go @@ -0,0 +1,27 @@ +package nrt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据会员手机查询openId API返回值 +tmall.nrt.member.openid + +根据会员手机查询openId +*/ +type TmallNrtMemberOpenidAPIResponse struct { + model.CommonResponse + TmallNrtMemberOpenidAPIResponseModel +} + +// 根据会员手机查询openId 成功返回结果 +type TmallNrtMemberOpenidAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nrt_member_openid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TmallNrtMemberOpenidResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/nrt/TmallNrtMemberOpenidResponse.go b/model/nrt/TmallNrtMemberOpenidResponse.go deleted file mode 100644 index ac8afc5f8a..0000000000 --- a/model/nrt/TmallNrtMemberOpenidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nrt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据会员手机查询openId API返回值 -tmall.nrt.member.openid - -根据会员手机查询openId -*/ -type TmallNrtMemberOpenidAPIResponse struct { - model.CommonResponse - TmallNrtMemberOpenidResponse -} - -// 根据会员手机查询openId 成功返回结果 -type TmallNrtMemberOpenidResponse struct { - XMLName xml.Name `xml:"tmall_nrt_member_openid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TmallNrtMemberOpenidResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/nrt/TmallNrtMemberOpenidResultDo.go b/model/nrt/TmallNrtMemberOpenidResultDo.go new file mode 100644 index 0000000000..53a9490205 --- /dev/null +++ b/model/nrt/TmallNrtMemberOpenidResultDo.go @@ -0,0 +1,13 @@ +package nrt + +// TmallNrtMemberOpenidResultDo +type TmallNrtMemberOpenidResultDo struct { + // 错误码 + Code string `json:"code,omitempty" xml:"code,omitempty"` + // 错误信息 + Msg string `json:"msg,omitempty" xml:"msg,omitempty"` + // 是否成功 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 返回的业务数据 + Data *MemberSynResponse `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/nrt/TmallNrtMemberSynchronizeAPIRequest.go b/model/nrt/TmallNrtMemberSynchronizeAPIRequest.go new file mode 100644 index 0000000000..4d9fb2e3a8 --- /dev/null +++ b/model/nrt/TmallNrtMemberSynchronizeAPIRequest.go @@ -0,0 +1,52 @@ +package nrt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新零售会员同步接口 API请求 +tmall.nrt.member.synchronize + +新零售会员上翻接口,商家的会员信息同步至阿里侧 +*/ +type TmallNrtMemberSynchronizeAPIRequest struct { + model.Params + // 会员DTO + _nrtMemberDto *NrtMemberDto +} + +// 初始化TmallNrtMemberSynchronizeAPIRequest对象 +func NewTmallNrtMemberSynchronizeRequest() *TmallNrtMemberSynchronizeAPIRequest{ + return &TmallNrtMemberSynchronizeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrtMemberSynchronizeAPIRequest) GetApiMethodName() string { + return "tmall.nrt.member.synchronize" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrtMemberSynchronizeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NrtMemberDto Setter +// 会员DTO +func (r *TmallNrtMemberSynchronizeAPIRequest) SetNrtMemberDto(_nrtMemberDto *NrtMemberDto) error { + r._nrtMemberDto = _nrtMemberDto + r.Set("nrt_member_dto", _nrtMemberDto) + return nil +} + +// NrtMemberDto Getter +func (r TmallNrtMemberSynchronizeAPIRequest) GetNrtMemberDto() *NrtMemberDto { + return r._nrtMemberDto +} diff --git a/model/nrt/TmallNrtMemberSynchronizeAPIResponse.go b/model/nrt/TmallNrtMemberSynchronizeAPIResponse.go new file mode 100644 index 0000000000..ee53f16260 --- /dev/null +++ b/model/nrt/TmallNrtMemberSynchronizeAPIResponse.go @@ -0,0 +1,27 @@ +package nrt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新零售会员同步接口 API返回值 +tmall.nrt.member.synchronize + +新零售会员上翻接口,商家的会员信息同步至阿里侧 +*/ +type TmallNrtMemberSynchronizeAPIResponse struct { + model.CommonResponse + TmallNrtMemberSynchronizeAPIResponseModel +} + +// 新零售会员同步接口 成功返回结果 +type TmallNrtMemberSynchronizeAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nrt_member_synchronize_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Data *MemberSynResponse `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/nrt/TmallNrtMemberSynchronizeResponse.go b/model/nrt/TmallNrtMemberSynchronizeResponse.go deleted file mode 100644 index 72c80003a2..0000000000 --- a/model/nrt/TmallNrtMemberSynchronizeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nrt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新零售会员同步接口 API返回值 -tmall.nrt.member.synchronize - -新零售会员上翻接口,商家的会员信息同步至阿里侧 -*/ -type TmallNrtMemberSynchronizeAPIResponse struct { - model.CommonResponse - TmallNrtMemberSynchronizeResponse -} - -// 新零售会员同步接口 成功返回结果 -type TmallNrtMemberSynchronizeResponse struct { - XMLName xml.Name `xml:"tmall_nrt_member_synchronize_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Data *MemberSynResponse `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/nrt/TmallNrtPayMerchantStallSigningModifyAPIRequest.go b/model/nrt/TmallNrtPayMerchantStallSigningModifyAPIRequest.go new file mode 100644 index 0000000000..c0b4d04eee --- /dev/null +++ b/model/nrt/TmallNrtPayMerchantStallSigningModifyAPIRequest.go @@ -0,0 +1,52 @@ +package nrt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +三级商户进件修改 API请求 +tmall.nrt.pay.merchant.stall.signing.modify + +三级商户进件修改 +*/ +type TmallNrtPayMerchantStallSigningModifyAPIRequest struct { + model.Params + // 请求参数 + _req *StallSigningReqDto +} + +// 初始化TmallNrtPayMerchantStallSigningModifyAPIRequest对象 +func NewTmallNrtPayMerchantStallSigningModifyRequest() *TmallNrtPayMerchantStallSigningModifyAPIRequest{ + return &TmallNrtPayMerchantStallSigningModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrtPayMerchantStallSigningModifyAPIRequest) GetApiMethodName() string { + return "tmall.nrt.pay.merchant.stall.signing.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrtPayMerchantStallSigningModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Req Setter +// 请求参数 +func (r *TmallNrtPayMerchantStallSigningModifyAPIRequest) SetReq(_req *StallSigningReqDto) error { + r._req = _req + r.Set("req", _req) + return nil +} + +// Req Getter +func (r TmallNrtPayMerchantStallSigningModifyAPIRequest) GetReq() *StallSigningReqDto { + return r._req +} diff --git a/model/nrt/TmallNrtPayMerchantStallSigningModifyAPIResponse.go b/model/nrt/TmallNrtPayMerchantStallSigningModifyAPIResponse.go new file mode 100644 index 0000000000..73a9782422 --- /dev/null +++ b/model/nrt/TmallNrtPayMerchantStallSigningModifyAPIResponse.go @@ -0,0 +1,27 @@ +package nrt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +三级商户进件修改 API返回值 +tmall.nrt.pay.merchant.stall.signing.modify + +三级商户进件修改 +*/ +type TmallNrtPayMerchantStallSigningModifyAPIResponse struct { + model.CommonResponse + TmallNrtPayMerchantStallSigningModifyAPIResponseModel +} + +// 三级商户进件修改 成功返回结果 +type TmallNrtPayMerchantStallSigningModifyAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nrt_pay_merchant_stall_signing_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TmallNrtPayMerchantStallSigningModifyResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/nrt/TmallNrtPayMerchantStallSigningModifyResponse.go b/model/nrt/TmallNrtPayMerchantStallSigningModifyResponse.go deleted file mode 100644 index 6c242b6041..0000000000 --- a/model/nrt/TmallNrtPayMerchantStallSigningModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nrt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -三级商户进件修改 API返回值 -tmall.nrt.pay.merchant.stall.signing.modify - -三级商户进件修改 -*/ -type TmallNrtPayMerchantStallSigningModifyAPIResponse struct { - model.CommonResponse - TmallNrtPayMerchantStallSigningModifyResponse -} - -// 三级商户进件修改 成功返回结果 -type TmallNrtPayMerchantStallSigningModifyResponse struct { - XMLName xml.Name `xml:"tmall_nrt_pay_merchant_stall_signing_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TmallNrtPayMerchantStallSigningModifyResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/nrt/TmallNrtPayMerchantStallSigningModifyResultDo.go b/model/nrt/TmallNrtPayMerchantStallSigningModifyResultDo.go new file mode 100644 index 0000000000..836efeef1d --- /dev/null +++ b/model/nrt/TmallNrtPayMerchantStallSigningModifyResultDo.go @@ -0,0 +1,13 @@ +package nrt + +// TmallNrtPayMerchantStallSigningModifyResultDo +type TmallNrtPayMerchantStallSigningModifyResultDo struct { + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 系统自动生成 + Data *StallSigningRespDto `json:"data,omitempty" xml:"data,omitempty"` + // 系统自动生成 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // 系统自动生成 + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` +} diff --git a/model/nrt/TmallNrtSimpleitemQueryAPIRequest.go b/model/nrt/TmallNrtSimpleitemQueryAPIRequest.go new file mode 100644 index 0000000000..3484d7638b --- /dev/null +++ b/model/nrt/TmallNrtSimpleitemQueryAPIRequest.go @@ -0,0 +1,54 @@ +package nrt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +简易商品查询接口 API请求 +tmall.nrt.simpleitem.query + +为居然之家和阿里的合资公司 homeStyler提供简易的商品信息查询 包含商品名称 图片 状态 + +后续合资公司服务会迁移到内网 暂时过渡用 +*/ +type TmallNrtSimpleitemQueryAPIRequest struct { + model.Params + // 商品编码数组 + _ids []int64 +} + +// 初始化TmallNrtSimpleitemQueryAPIRequest对象 +func NewTmallNrtSimpleitemQueryRequest() *TmallNrtSimpleitemQueryAPIRequest{ + return &TmallNrtSimpleitemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrtSimpleitemQueryAPIRequest) GetApiMethodName() string { + return "tmall.nrt.simpleitem.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrtSimpleitemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Ids Setter +// 商品编码数组 +func (r *TmallNrtSimpleitemQueryAPIRequest) SetIds(_ids []int64) error { + r._ids = _ids + r.Set("ids", _ids) + return nil +} + +// Ids Getter +func (r TmallNrtSimpleitemQueryAPIRequest) GetIds() []int64 { + return r._ids +} diff --git a/model/nrt/TmallNrtSimpleitemQueryAPIResponse.go b/model/nrt/TmallNrtSimpleitemQueryAPIResponse.go new file mode 100644 index 0000000000..8231787ca8 --- /dev/null +++ b/model/nrt/TmallNrtSimpleitemQueryAPIResponse.go @@ -0,0 +1,31 @@ +package nrt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +简易商品查询接口 API返回值 +tmall.nrt.simpleitem.query + +为居然之家和阿里的合资公司 homeStyler提供简易的商品信息查询 包含商品名称 图片 状态 + +后续合资公司服务会迁移到内网 暂时过渡用 +*/ +type TmallNrtSimpleitemQueryAPIResponse struct { + model.CommonResponse + TmallNrtSimpleitemQueryAPIResponseModel +} + +// 简易商品查询接口 成功返回结果 +type TmallNrtSimpleitemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nrt_simpleitem_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 对象 + Models []TmallNrtSimpleitemQueryModel `json:"models,omitempty" xml:"models>tmall_nrt_simpleitem_query_model,omitempty"` +} diff --git a/model/nrt/TmallNrtSimpleitemQueryResponse.go b/model/nrt/TmallNrtSimpleitemQueryResponse.go deleted file mode 100644 index 1182c09a4b..0000000000 --- a/model/nrt/TmallNrtSimpleitemQueryResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package nrt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -简易商品查询接口 API返回值 -tmall.nrt.simpleitem.query - -为居然之家和阿里的合资公司 homeStyler提供简易的商品信息查询 包含商品名称 图片 状态 - -后续合资公司服务会迁移到内网 暂时过渡用 -*/ -type TmallNrtSimpleitemQueryAPIResponse struct { - model.CommonResponse - TmallNrtSimpleitemQueryResponse -} - -// 简易商品查询接口 成功返回结果 -type TmallNrtSimpleitemQueryResponse struct { - XMLName xml.Name `xml:"tmall_nrt_simpleitem_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` - // 对象 - Models []TmallNrtSimpleitemQueryModel `json:"models,omitempty" xml:"models>tmall_nrt_simpleitem_query_model,omitempty"` -} diff --git a/model/nrt/TmallNrtStallPayratioSynchronizeAPIRequest.go b/model/nrt/TmallNrtStallPayratioSynchronizeAPIRequest.go new file mode 100644 index 0000000000..de145ed4b7 --- /dev/null +++ b/model/nrt/TmallNrtStallPayratioSynchronizeAPIRequest.go @@ -0,0 +1,94 @@ +package nrt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同步摊位收银比例 API请求 +tmall.nrt.stall.payratio.synchronize + +ISV同步摊位收银比例到阿里 +*/ +type TmallNrtStallPayratioSynchronizeAPIRequest struct { + model.Params + // 业务编码 + _bizCode string + // 合同编号 + _contractCode string + // 摊位编码 + _storeCode string + // 收银比例 + _payRatio string +} + +// 初始化TmallNrtStallPayratioSynchronizeAPIRequest对象 +func NewTmallNrtStallPayratioSynchronizeRequest() *TmallNrtStallPayratioSynchronizeAPIRequest{ + return &TmallNrtStallPayratioSynchronizeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrtStallPayratioSynchronizeAPIRequest) GetApiMethodName() string { + return "tmall.nrt.stall.payratio.synchronize" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrtStallPayratioSynchronizeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizCode Setter +// 业务编码 +func (r *TmallNrtStallPayratioSynchronizeAPIRequest) SetBizCode(_bizCode string) error { + r._bizCode = _bizCode + r.Set("biz_code", _bizCode) + return nil +} + +// BizCode Getter +func (r TmallNrtStallPayratioSynchronizeAPIRequest) GetBizCode() string { + return r._bizCode +} +// ContractCode Setter +// 合同编号 +func (r *TmallNrtStallPayratioSynchronizeAPIRequest) SetContractCode(_contractCode string) error { + r._contractCode = _contractCode + r.Set("contract_code", _contractCode) + return nil +} + +// ContractCode Getter +func (r TmallNrtStallPayratioSynchronizeAPIRequest) GetContractCode() string { + return r._contractCode +} +// StoreCode Setter +// 摊位编码 +func (r *TmallNrtStallPayratioSynchronizeAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TmallNrtStallPayratioSynchronizeAPIRequest) GetStoreCode() string { + return r._storeCode +} +// PayRatio Setter +// 收银比例 +func (r *TmallNrtStallPayratioSynchronizeAPIRequest) SetPayRatio(_payRatio string) error { + r._payRatio = _payRatio + r.Set("pay_ratio", _payRatio) + return nil +} + +// PayRatio Getter +func (r TmallNrtStallPayratioSynchronizeAPIRequest) GetPayRatio() string { + return r._payRatio +} diff --git a/model/nrt/TmallNrtStallPayratioSynchronizeAPIResponse.go b/model/nrt/TmallNrtStallPayratioSynchronizeAPIResponse.go new file mode 100644 index 0000000000..12342ff9f5 --- /dev/null +++ b/model/nrt/TmallNrtStallPayratioSynchronizeAPIResponse.go @@ -0,0 +1,25 @@ +package nrt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同步摊位收银比例 API返回值 +tmall.nrt.stall.payratio.synchronize + +ISV同步摊位收银比例到阿里 +*/ +type TmallNrtStallPayratioSynchronizeAPIResponse struct { + model.CommonResponse + TmallNrtStallPayratioSynchronizeAPIResponseModel +} + +// 同步摊位收银比例 成功返回结果 +type TmallNrtStallPayratioSynchronizeAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nrt_stall_payratio_synchronize_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` +} diff --git a/model/nrt/TmallNrtStallPayratioSynchronizeResponse.go b/model/nrt/TmallNrtStallPayratioSynchronizeResponse.go deleted file mode 100644 index ebf6971577..0000000000 --- a/model/nrt/TmallNrtStallPayratioSynchronizeResponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package nrt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同步摊位收银比例 API返回值 -tmall.nrt.stall.payratio.synchronize - -ISV同步摊位收银比例到阿里 -*/ -type TmallNrtStallPayratioSynchronizeAPIResponse struct { - model.CommonResponse - TmallNrtStallPayratioSynchronizeResponse -} - -// 同步摊位收银比例 成功返回结果 -type TmallNrtStallPayratioSynchronizeResponse struct { - XMLName xml.Name `xml:"tmall_nrt_stall_payratio_synchronize_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` -} diff --git a/model/nrt/TmallNrtStallSynchronizeAPIRequest.go b/model/nrt/TmallNrtStallSynchronizeAPIRequest.go new file mode 100644 index 0000000000..e35cd40a9a --- /dev/null +++ b/model/nrt/TmallNrtStallSynchronizeAPIRequest.go @@ -0,0 +1,52 @@ +package nrt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +摊位信息同步 API请求 +tmall.nrt.stall.synchronize + +摊位信息同步 +*/ +type TmallNrtStallSynchronizeAPIRequest struct { + model.Params + // 参数对象 + _stall *NrtStoreDto +} + +// 初始化TmallNrtStallSynchronizeAPIRequest对象 +func NewTmallNrtStallSynchronizeRequest() *TmallNrtStallSynchronizeAPIRequest{ + return &TmallNrtStallSynchronizeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrtStallSynchronizeAPIRequest) GetApiMethodName() string { + return "tmall.nrt.stall.synchronize" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrtStallSynchronizeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Stall Setter +// 参数对象 +func (r *TmallNrtStallSynchronizeAPIRequest) SetStall(_stall *NrtStoreDto) error { + r._stall = _stall + r.Set("stall", _stall) + return nil +} + +// Stall Getter +func (r TmallNrtStallSynchronizeAPIRequest) GetStall() *NrtStoreDto { + return r._stall +} diff --git a/model/nrt/TmallNrtStallSynchronizeAPIResponse.go b/model/nrt/TmallNrtStallSynchronizeAPIResponse.go new file mode 100644 index 0000000000..e96d4f67c2 --- /dev/null +++ b/model/nrt/TmallNrtStallSynchronizeAPIResponse.go @@ -0,0 +1,27 @@ +package nrt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +摊位信息同步 API返回值 +tmall.nrt.stall.synchronize + +摊位信息同步 +*/ +type TmallNrtStallSynchronizeAPIResponse struct { + model.CommonResponse + TmallNrtStallSynchronizeAPIResponseModel +} + +// 摊位信息同步 成功返回结果 +type TmallNrtStallSynchronizeAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nrt_stall_synchronize_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + TmallNrtStallSynchronize *ResultDo `json:"tmall_nrt_stall_synchronize,omitempty" xml:"tmall_nrt_stall_synchronize,omitempty"` +} diff --git a/model/nrt/TmallNrtStallSynchronizeResponse.go b/model/nrt/TmallNrtStallSynchronizeResponse.go deleted file mode 100644 index 3648bda438..0000000000 --- a/model/nrt/TmallNrtStallSynchronizeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package nrt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -摊位信息同步 API返回值 -tmall.nrt.stall.synchronize - -摊位信息同步 -*/ -type TmallNrtStallSynchronizeAPIResponse struct { - model.CommonResponse - TmallNrtStallSynchronizeResponse -} - -// 摊位信息同步 成功返回结果 -type TmallNrtStallSynchronizeResponse struct { - XMLName xml.Name `xml:"tmall_nrt_stall_synchronize_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - TmallNrtStallSynchronize *ResultDo `json:"tmall_nrt_stall_synchronize,omitempty" xml:"tmall_nrt_stall_synchronize,omitempty"` -} diff --git a/model/omniorder/AlibabaRetailCommissionOrderQueryAPIRequest.go b/model/omniorder/AlibabaRetailCommissionOrderQueryAPIRequest.go new file mode 100644 index 0000000000..ad42ce4854 --- /dev/null +++ b/model/omniorder/AlibabaRetailCommissionOrderQueryAPIRequest.go @@ -0,0 +1,94 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分销订单查询 API请求 +alibaba.retail.commission.order.query + +查询商家的分销订单 +*/ +type AlibabaRetailCommissionOrderQueryAPIRequest struct { + model.Params + // 页码,默认第一页 + _pageNo int64 + // 页大小,默认每页十条 + _pageSize int64 + // 查询三个月内交易创建时间开始。格式:yyyy-MM-dd HH:mm:ss + _endPayTime string + // 查询交易创建时间结束。格式:yyyy-MM-dd HH:mm:ss + _startPayTime string +} + +// 初始化AlibabaRetailCommissionOrderQueryAPIRequest对象 +func NewAlibabaRetailCommissionOrderQueryRequest() *AlibabaRetailCommissionOrderQueryAPIRequest{ + return &AlibabaRetailCommissionOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailCommissionOrderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.retail.commission.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailCommissionOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageNo Setter +// 页码,默认第一页 +func (r *AlibabaRetailCommissionOrderQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r AlibabaRetailCommissionOrderQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 页大小,默认每页十条 +func (r *AlibabaRetailCommissionOrderQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaRetailCommissionOrderQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// EndPayTime Setter +// 查询三个月内交易创建时间开始。格式:yyyy-MM-dd HH:mm:ss +func (r *AlibabaRetailCommissionOrderQueryAPIRequest) SetEndPayTime(_endPayTime string) error { + r._endPayTime = _endPayTime + r.Set("end_pay_time", _endPayTime) + return nil +} + +// EndPayTime Getter +func (r AlibabaRetailCommissionOrderQueryAPIRequest) GetEndPayTime() string { + return r._endPayTime +} +// StartPayTime Setter +// 查询交易创建时间结束。格式:yyyy-MM-dd HH:mm:ss +func (r *AlibabaRetailCommissionOrderQueryAPIRequest) SetStartPayTime(_startPayTime string) error { + r._startPayTime = _startPayTime + r.Set("start_pay_time", _startPayTime) + return nil +} + +// StartPayTime Getter +func (r AlibabaRetailCommissionOrderQueryAPIRequest) GetStartPayTime() string { + return r._startPayTime +} diff --git a/model/omniorder/AlibabaRetailCommissionOrderQueryAPIResponse.go b/model/omniorder/AlibabaRetailCommissionOrderQueryAPIResponse.go new file mode 100644 index 0000000000..8150fa6fd6 --- /dev/null +++ b/model/omniorder/AlibabaRetailCommissionOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分销订单查询 API返回值 +alibaba.retail.commission.order.query + +查询商家的分销订单 +*/ +type AlibabaRetailCommissionOrderQueryAPIResponse struct { + model.CommonResponse + AlibabaRetailCommissionOrderQueryAPIResponseModel +} + +// 分销订单查询 成功返回结果 +type AlibabaRetailCommissionOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_commission_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分页结果 + Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/AlibabaRetailCommissionOrderQueryResponse.go b/model/omniorder/AlibabaRetailCommissionOrderQueryResponse.go deleted file mode 100644 index 2b2c6f74d6..0000000000 --- a/model/omniorder/AlibabaRetailCommissionOrderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分销订单查询 API返回值 -alibaba.retail.commission.order.query - -查询商家的分销订单 -*/ -type AlibabaRetailCommissionOrderQueryAPIResponse struct { - model.CommonResponse - AlibabaRetailCommissionOrderQueryResponse -} - -// 分销订单查询 成功返回结果 -type AlibabaRetailCommissionOrderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_retail_commission_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分页结果 - Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/AlibabaRetailCommissionOrderSyncAPIRequest.go b/model/omniorder/AlibabaRetailCommissionOrderSyncAPIRequest.go new file mode 100644 index 0000000000..4eebff6ad7 --- /dev/null +++ b/model/omniorder/AlibabaRetailCommissionOrderSyncAPIRequest.go @@ -0,0 +1,52 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分佣数据传输 API请求 +alibaba.retail.commission.order.sync + +同步分佣结果 +*/ +type AlibabaRetailCommissionOrderSyncAPIRequest struct { + model.Params + // 请求参数 + _param0 *UniverseOrderVo +} + +// 初始化AlibabaRetailCommissionOrderSyncAPIRequest对象 +func NewAlibabaRetailCommissionOrderSyncRequest() *AlibabaRetailCommissionOrderSyncAPIRequest{ + return &AlibabaRetailCommissionOrderSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailCommissionOrderSyncAPIRequest) GetApiMethodName() string { + return "alibaba.retail.commission.order.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailCommissionOrderSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 请求参数 +func (r *AlibabaRetailCommissionOrderSyncAPIRequest) SetParam0(_param0 *UniverseOrderVo) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaRetailCommissionOrderSyncAPIRequest) GetParam0() *UniverseOrderVo { + return r._param0 +} diff --git a/model/omniorder/AlibabaRetailCommissionOrderSyncAPIResponse.go b/model/omniorder/AlibabaRetailCommissionOrderSyncAPIResponse.go new file mode 100644 index 0000000000..dfd6ddcdeb --- /dev/null +++ b/model/omniorder/AlibabaRetailCommissionOrderSyncAPIResponse.go @@ -0,0 +1,33 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分佣数据传输 API返回值 +alibaba.retail.commission.order.sync + +同步分佣结果 +*/ +type AlibabaRetailCommissionOrderSyncAPIResponse struct { + model.CommonResponse + AlibabaRetailCommissionOrderSyncAPIResponseModel +} + +// 分佣数据传输 成功返回结果 +type AlibabaRetailCommissionOrderSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_commission_order_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回描述 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回的数据实体 + Data bool `json:"data,omitempty" xml:"data,omitempty"` + // 返回的执行状态吗 + SCode string `json:"s_code,omitempty" xml:"s_code,omitempty"` + // 是否执行成功 + SSuccess bool `json:"s_success,omitempty" xml:"s_success,omitempty"` +} diff --git a/model/omniorder/AlibabaRetailCommissionOrderSyncResponse.go b/model/omniorder/AlibabaRetailCommissionOrderSyncResponse.go deleted file mode 100644 index 3074894215..0000000000 --- a/model/omniorder/AlibabaRetailCommissionOrderSyncResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分佣数据传输 API返回值 -alibaba.retail.commission.order.sync - -同步分佣结果 -*/ -type AlibabaRetailCommissionOrderSyncAPIResponse struct { - model.CommonResponse - AlibabaRetailCommissionOrderSyncResponse -} - -// 分佣数据传输 成功返回结果 -type AlibabaRetailCommissionOrderSyncResponse struct { - XMLName xml.Name `xml:"alibaba_retail_commission_order_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回描述 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 返回的数据实体 - Data bool `json:"data,omitempty" xml:"data,omitempty"` - // 返回的执行状态吗 - SCode string `json:"s_code,omitempty" xml:"s_code,omitempty"` - // 是否执行成功 - SSuccess bool `json:"s_success,omitempty" xml:"s_success,omitempty"` -} diff --git a/model/omniorder/AlibabaRetailCommissionResultQueryAPIRequest.go b/model/omniorder/AlibabaRetailCommissionResultQueryAPIRequest.go new file mode 100644 index 0000000000..190fd6a189 --- /dev/null +++ b/model/omniorder/AlibabaRetailCommissionResultQueryAPIRequest.go @@ -0,0 +1,52 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分佣结果查询 API请求 +alibaba.retail.commission.result.query + +查询导购分佣记录 +*/ +type AlibabaRetailCommissionResultQueryAPIRequest struct { + model.Params + // 请求参数 + _param0 *CommissionResultQuery +} + +// 初始化AlibabaRetailCommissionResultQueryAPIRequest对象 +func NewAlibabaRetailCommissionResultQueryRequest() *AlibabaRetailCommissionResultQueryAPIRequest{ + return &AlibabaRetailCommissionResultQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailCommissionResultQueryAPIRequest) GetApiMethodName() string { + return "alibaba.retail.commission.result.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailCommissionResultQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 请求参数 +func (r *AlibabaRetailCommissionResultQueryAPIRequest) SetParam0(_param0 *CommissionResultQuery) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaRetailCommissionResultQueryAPIRequest) GetParam0() *CommissionResultQuery { + return r._param0 +} diff --git a/model/omniorder/AlibabaRetailCommissionResultQueryAPIResponse.go b/model/omniorder/AlibabaRetailCommissionResultQueryAPIResponse.go new file mode 100644 index 0000000000..6e40e0871b --- /dev/null +++ b/model/omniorder/AlibabaRetailCommissionResultQueryAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分佣结果查询 API返回值 +alibaba.retail.commission.result.query + +查询导购分佣记录 +*/ +type AlibabaRetailCommissionResultQueryAPIResponse struct { + model.CommonResponse + AlibabaRetailCommissionResultQueryAPIResponseModel +} + +// 分佣结果查询 成功返回结果 +type AlibabaRetailCommissionResultQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_commission_result_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回包装类 + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/AlibabaRetailCommissionResultQueryResponse.go b/model/omniorder/AlibabaRetailCommissionResultQueryResponse.go deleted file mode 100644 index afe5f58fc2..0000000000 --- a/model/omniorder/AlibabaRetailCommissionResultQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分佣结果查询 API返回值 -alibaba.retail.commission.result.query - -查询导购分佣记录 -*/ -type AlibabaRetailCommissionResultQueryAPIResponse struct { - model.CommonResponse - AlibabaRetailCommissionResultQueryResponse -} - -// 分佣结果查询 成功返回结果 -type AlibabaRetailCommissionResultQueryResponse struct { - XMLName xml.Name `xml:"alibaba_retail_commission_result_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回包装类 - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/AlibabaRetailCommissionStatusChangeAPIRequest.go b/model/omniorder/AlibabaRetailCommissionStatusChangeAPIRequest.go new file mode 100644 index 0000000000..5201e7f4d7 --- /dev/null +++ b/model/omniorder/AlibabaRetailCommissionStatusChangeAPIRequest.go @@ -0,0 +1,52 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分佣状态变更 API请求 +alibaba.retail.commission.status.change + +分佣系统,分佣状态变更接口 +*/ +type AlibabaRetailCommissionStatusChangeAPIRequest struct { + model.Params + // 请求参数 + _param0 *UniverseOrderVo +} + +// 初始化AlibabaRetailCommissionStatusChangeAPIRequest对象 +func NewAlibabaRetailCommissionStatusChangeRequest() *AlibabaRetailCommissionStatusChangeAPIRequest{ + return &AlibabaRetailCommissionStatusChangeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailCommissionStatusChangeAPIRequest) GetApiMethodName() string { + return "alibaba.retail.commission.status.change" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailCommissionStatusChangeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 请求参数 +func (r *AlibabaRetailCommissionStatusChangeAPIRequest) SetParam0(_param0 *UniverseOrderVo) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaRetailCommissionStatusChangeAPIRequest) GetParam0() *UniverseOrderVo { + return r._param0 +} diff --git a/model/omniorder/AlibabaRetailCommissionStatusChangeAPIResponse.go b/model/omniorder/AlibabaRetailCommissionStatusChangeAPIResponse.go new file mode 100644 index 0000000000..564f9be710 --- /dev/null +++ b/model/omniorder/AlibabaRetailCommissionStatusChangeAPIResponse.go @@ -0,0 +1,33 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分佣状态变更 API返回值 +alibaba.retail.commission.status.change + +分佣系统,分佣状态变更接口 +*/ +type AlibabaRetailCommissionStatusChangeAPIResponse struct { + model.CommonResponse + AlibabaRetailCommissionStatusChangeAPIResponseModel +} + +// 分佣状态变更 成功返回结果 +type AlibabaRetailCommissionStatusChangeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_commission_status_change_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回描述信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回的数据实体 + Data bool `json:"data,omitempty" xml:"data,omitempty"` + // 返回的执行状态吗 + SCode string `json:"s_code,omitempty" xml:"s_code,omitempty"` + // 是否执行成功 + SSuccess bool `json:"s_success,omitempty" xml:"s_success,omitempty"` +} diff --git a/model/omniorder/AlibabaRetailCommissionStatusChangeResponse.go b/model/omniorder/AlibabaRetailCommissionStatusChangeResponse.go deleted file mode 100644 index 6bf75b58d3..0000000000 --- a/model/omniorder/AlibabaRetailCommissionStatusChangeResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分佣状态变更 API返回值 -alibaba.retail.commission.status.change - -分佣系统,分佣状态变更接口 -*/ -type AlibabaRetailCommissionStatusChangeAPIResponse struct { - model.CommonResponse - AlibabaRetailCommissionStatusChangeResponse -} - -// 分佣状态变更 成功返回结果 -type AlibabaRetailCommissionStatusChangeResponse struct { - XMLName xml.Name `xml:"alibaba_retail_commission_status_change_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回描述信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 返回的数据实体 - Data bool `json:"data,omitempty" xml:"data,omitempty"` - // 返回的执行状态吗 - SCode string `json:"s_code,omitempty" xml:"s_code,omitempty"` - // 是否执行成功 - SSuccess bool `json:"s_success,omitempty" xml:"s_success,omitempty"` -} diff --git a/model/omniorder/TaobaoJstAstrolabeOrderstatusSyncAPIRequest.go b/model/omniorder/TaobaoJstAstrolabeOrderstatusSyncAPIRequest.go new file mode 100644 index 0000000000..5a671f144d --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeOrderstatusSyncAPIRequest.go @@ -0,0 +1,136 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线下门店派单以及单据相关操作接口 API请求 +taobao.jst.astrolabe.orderstatus.sync + +针对ERP系统部署在门店的商家,将派单状态回流到星盘 +*/ +type TaobaoJstAstrolabeOrderstatusSyncAPIRequest struct { + model.Params + // 子订单Id + _subOrderIds []int64 + // 事件发生时间 + _actionTime string + // 操作人 + _operator string + // 业务类型 + _type string + // 订单状态 + _status string + // 目标门店的商户中心门店编码 + _storeId int64 + // 交易订单 + _parentOrderCode int64 +} + +// 初始化TaobaoJstAstrolabeOrderstatusSyncAPIRequest对象 +func NewTaobaoJstAstrolabeOrderstatusSyncRequest() *TaobaoJstAstrolabeOrderstatusSyncAPIRequest{ + return &TaobaoJstAstrolabeOrderstatusSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstAstrolabeOrderstatusSyncAPIRequest) GetApiMethodName() string { + return "taobao.jst.astrolabe.orderstatus.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstAstrolabeOrderstatusSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubOrderIds Setter +// 子订单Id +func (r *TaobaoJstAstrolabeOrderstatusSyncAPIRequest) SetSubOrderIds(_subOrderIds []int64) error { + r._subOrderIds = _subOrderIds + r.Set("sub_order_ids", _subOrderIds) + return nil +} + +// SubOrderIds Getter +func (r TaobaoJstAstrolabeOrderstatusSyncAPIRequest) GetSubOrderIds() []int64 { + return r._subOrderIds +} +// ActionTime Setter +// 事件发生时间 +func (r *TaobaoJstAstrolabeOrderstatusSyncAPIRequest) SetActionTime(_actionTime string) error { + r._actionTime = _actionTime + r.Set("action_time", _actionTime) + return nil +} + +// ActionTime Getter +func (r TaobaoJstAstrolabeOrderstatusSyncAPIRequest) GetActionTime() string { + return r._actionTime +} +// Operator Setter +// 操作人 +func (r *TaobaoJstAstrolabeOrderstatusSyncAPIRequest) SetOperator(_operator string) error { + r._operator = _operator + r.Set("operator", _operator) + return nil +} + +// Operator Getter +func (r TaobaoJstAstrolabeOrderstatusSyncAPIRequest) GetOperator() string { + return r._operator +} +// Type Setter +// 业务类型 +func (r *TaobaoJstAstrolabeOrderstatusSyncAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoJstAstrolabeOrderstatusSyncAPIRequest) GetType() string { + return r._type +} +// Status Setter +// 订单状态 +func (r *TaobaoJstAstrolabeOrderstatusSyncAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoJstAstrolabeOrderstatusSyncAPIRequest) GetStatus() string { + return r._status +} +// StoreId Setter +// 目标门店的商户中心门店编码 +func (r *TaobaoJstAstrolabeOrderstatusSyncAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoJstAstrolabeOrderstatusSyncAPIRequest) GetStoreId() int64 { + return r._storeId +} +// ParentOrderCode Setter +// 交易订单 +func (r *TaobaoJstAstrolabeOrderstatusSyncAPIRequest) SetParentOrderCode(_parentOrderCode int64) error { + r._parentOrderCode = _parentOrderCode + r.Set("parent_order_code", _parentOrderCode) + return nil +} + +// ParentOrderCode Getter +func (r TaobaoJstAstrolabeOrderstatusSyncAPIRequest) GetParentOrderCode() int64 { + return r._parentOrderCode +} diff --git a/model/omniorder/TaobaoJstAstrolabeOrderstatusSyncAPIResponse.go b/model/omniorder/TaobaoJstAstrolabeOrderstatusSyncAPIResponse.go new file mode 100644 index 0000000000..4d6743cf93 --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeOrderstatusSyncAPIResponse.go @@ -0,0 +1,29 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线下门店派单以及单据相关操作接口 API返回值 +taobao.jst.astrolabe.orderstatus.sync + +针对ERP系统部署在门店的商家,将派单状态回流到星盘 +*/ +type TaobaoJstAstrolabeOrderstatusSyncAPIResponse struct { + model.CommonResponse + TaobaoJstAstrolabeOrderstatusSyncAPIResponseModel +} + +// 线下门店派单以及单据相关操作接口 成功返回结果 +type TaobaoJstAstrolabeOrderstatusSyncAPIResponseModel struct { + XMLName xml.Name `xml:"jst_astrolabe_orderstatus_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // code + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/omniorder/TaobaoJstAstrolabeOrderstatusSyncResponse.go b/model/omniorder/TaobaoJstAstrolabeOrderstatusSyncResponse.go deleted file mode 100644 index 7f44d5a358..0000000000 --- a/model/omniorder/TaobaoJstAstrolabeOrderstatusSyncResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线下门店派单以及单据相关操作接口 API返回值 -taobao.jst.astrolabe.orderstatus.sync - -针对ERP系统部署在门店的商家,将派单状态回流到星盘 -*/ -type TaobaoJstAstrolabeOrderstatusSyncAPIResponse struct { - model.CommonResponse - TaobaoJstAstrolabeOrderstatusSyncResponse -} - -// 线下门店派单以及单据相关操作接口 成功返回结果 -type TaobaoJstAstrolabeOrderstatusSyncResponse struct { - XMLName xml.Name `xml:"jst_astrolabe_orderstatus_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // code - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryAdjustAPIRequest.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryAdjustAPIRequest.go new file mode 100644 index 0000000000..1a114f31b1 --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryAdjustAPIRequest.go @@ -0,0 +1,66 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +后端商品库存占用调整接口 API请求 +taobao.jst.astrolabe.storeinventory.adjust + +当第三方系统出现分单结果和天猫货品中心分单结果不一致时,需要调用此接口同步分单消息给天猫货品中心,调整之前占用的门店/电商仓库存。 +*/ +type TaobaoJstAstrolabeStoreinventoryAdjustAPIRequest struct { + model.Params + // 操作时间 + _operationTime string + // 库存调整信息 + _inventoryAdjustInfo *InventoryAdjustInfo +} + +// 初始化TaobaoJstAstrolabeStoreinventoryAdjustAPIRequest对象 +func NewTaobaoJstAstrolabeStoreinventoryAdjustRequest() *TaobaoJstAstrolabeStoreinventoryAdjustAPIRequest{ + return &TaobaoJstAstrolabeStoreinventoryAdjustAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstAstrolabeStoreinventoryAdjustAPIRequest) GetApiMethodName() string { + return "taobao.jst.astrolabe.storeinventory.adjust" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstAstrolabeStoreinventoryAdjustAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OperationTime Setter +// 操作时间 +func (r *TaobaoJstAstrolabeStoreinventoryAdjustAPIRequest) SetOperationTime(_operationTime string) error { + r._operationTime = _operationTime + r.Set("operation_time", _operationTime) + return nil +} + +// OperationTime Getter +func (r TaobaoJstAstrolabeStoreinventoryAdjustAPIRequest) GetOperationTime() string { + return r._operationTime +} +// InventoryAdjustInfo Setter +// 库存调整信息 +func (r *TaobaoJstAstrolabeStoreinventoryAdjustAPIRequest) SetInventoryAdjustInfo(_inventoryAdjustInfo *InventoryAdjustInfo) error { + r._inventoryAdjustInfo = _inventoryAdjustInfo + r.Set("inventory_adjust_info", _inventoryAdjustInfo) + return nil +} + +// InventoryAdjustInfo Getter +func (r TaobaoJstAstrolabeStoreinventoryAdjustAPIRequest) GetInventoryAdjustInfo() *InventoryAdjustInfo { + return r._inventoryAdjustInfo +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryAdjustAPIResponse.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryAdjustAPIResponse.go new file mode 100644 index 0000000000..4b0f83904e --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryAdjustAPIResponse.go @@ -0,0 +1,31 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +后端商品库存占用调整接口 API返回值 +taobao.jst.astrolabe.storeinventory.adjust + +当第三方系统出现分单结果和天猫货品中心分单结果不一致时,需要调用此接口同步分单消息给天猫货品中心,调整之前占用的门店/电商仓库存。 +*/ +type TaobaoJstAstrolabeStoreinventoryAdjustAPIResponse struct { + model.CommonResponse + TaobaoJstAstrolabeStoreinventoryAdjustAPIResponseModel +} + +// 后端商品库存占用调整接口 成功返回结果 +type TaobaoJstAstrolabeStoreinventoryAdjustAPIResponseModel struct { + XMLName xml.Name `xml:"jst_astrolabe_storeinventory_adjust_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应标签 + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // 响应编码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 响应信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryAdjustResponse.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryAdjustResponse.go deleted file mode 100644 index 8af1dc9c44..0000000000 --- a/model/omniorder/TaobaoJstAstrolabeStoreinventoryAdjustResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -后端商品库存占用调整接口 API返回值 -taobao.jst.astrolabe.storeinventory.adjust - -当第三方系统出现分单结果和天猫货品中心分单结果不一致时,需要调用此接口同步分单消息给天猫货品中心,调整之前占用的门店/电商仓库存。 -*/ -type TaobaoJstAstrolabeStoreinventoryAdjustAPIResponse struct { - model.CommonResponse - TaobaoJstAstrolabeStoreinventoryAdjustResponse -} - -// 后端商品库存占用调整接口 成功返回结果 -type TaobaoJstAstrolabeStoreinventoryAdjustResponse struct { - XMLName xml.Name `xml:"jst_astrolabe_storeinventory_adjust_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应标签 - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // 响应编码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 响应信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryInitialAPIRequest.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryInitialAPIRequest.go new file mode 100644 index 0000000000..511ae4139b --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryInitialAPIRequest.go @@ -0,0 +1,66 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +后端商品库存初始化 API请求 +taobao.jst.astrolabe.storeinventory.initial + +初始化电商仓或门店库存,该接口一次可以初始化多个门店(或电商仓)的多个商品的多种类型库存。此接口只能使用一次,后续所有的库存变动都需走增量库存同步接口。 +*/ +type TaobaoJstAstrolabeStoreinventoryInitialAPIRequest struct { + model.Params + // 操作时间 + _operationTime string + // 门店列表 + _stores []Store +} + +// 初始化TaobaoJstAstrolabeStoreinventoryInitialAPIRequest对象 +func NewTaobaoJstAstrolabeStoreinventoryInitialRequest() *TaobaoJstAstrolabeStoreinventoryInitialAPIRequest{ + return &TaobaoJstAstrolabeStoreinventoryInitialAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstAstrolabeStoreinventoryInitialAPIRequest) GetApiMethodName() string { + return "taobao.jst.astrolabe.storeinventory.initial" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstAstrolabeStoreinventoryInitialAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OperationTime Setter +// 操作时间 +func (r *TaobaoJstAstrolabeStoreinventoryInitialAPIRequest) SetOperationTime(_operationTime string) error { + r._operationTime = _operationTime + r.Set("operation_time", _operationTime) + return nil +} + +// OperationTime Getter +func (r TaobaoJstAstrolabeStoreinventoryInitialAPIRequest) GetOperationTime() string { + return r._operationTime +} +// Stores Setter +// 门店列表 +func (r *TaobaoJstAstrolabeStoreinventoryInitialAPIRequest) SetStores(_stores []Store) error { + r._stores = _stores + r.Set("stores", _stores) + return nil +} + +// Stores Getter +func (r TaobaoJstAstrolabeStoreinventoryInitialAPIRequest) GetStores() []Store { + return r._stores +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryInitialAPIResponse.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryInitialAPIResponse.go new file mode 100644 index 0000000000..856a93f284 --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryInitialAPIResponse.go @@ -0,0 +1,33 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +后端商品库存初始化 API返回值 +taobao.jst.astrolabe.storeinventory.initial + +初始化电商仓或门店库存,该接口一次可以初始化多个门店(或电商仓)的多个商品的多种类型库存。此接口只能使用一次,后续所有的库存变动都需走增量库存同步接口。 +*/ +type TaobaoJstAstrolabeStoreinventoryInitialAPIResponse struct { + model.CommonResponse + TaobaoJstAstrolabeStoreinventoryInitialAPIResponseModel +} + +// 后端商品库存初始化 成功返回结果 +type TaobaoJstAstrolabeStoreinventoryInitialAPIResponseModel struct { + XMLName xml.Name `xml:"jst_astrolabe_storeinventory_initial_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 响应标签 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 响应标示 + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // 错误信息列表 + ErrorDescriptions []TaobaoJstAstrolabeStoreinventoryInitialError `json:"error_descriptions,omitempty" xml:"error_descriptions>taobao_jst_astrolabe_storeinventory_initial_error,omitempty"` +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryInitialError.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryInitialError.go new file mode 100644 index 0000000000..1a0c54877f --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryInitialError.go @@ -0,0 +1,9 @@ +package omniorder + +// TaobaoJstAstrolabeStoreinventoryInitialError +type TaobaoJstAstrolabeStoreinventoryInitialError struct { + // 错误描述 + Descrpition string `json:"descrpition,omitempty" xml:"descrpition,omitempty"` + // 处理失败的流水号(有多个时,用逗号分隔) + FailedBillNum string `json:"failed_bill_num,omitempty" xml:"failed_bill_num,omitempty"` +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryInitialResponse.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryInitialResponse.go deleted file mode 100644 index ae9acecc72..0000000000 --- a/model/omniorder/TaobaoJstAstrolabeStoreinventoryInitialResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -后端商品库存初始化 API返回值 -taobao.jst.astrolabe.storeinventory.initial - -初始化电商仓或门店库存,该接口一次可以初始化多个门店(或电商仓)的多个商品的多种类型库存。此接口只能使用一次,后续所有的库存变动都需走增量库存同步接口。 -*/ -type TaobaoJstAstrolabeStoreinventoryInitialAPIResponse struct { - model.CommonResponse - TaobaoJstAstrolabeStoreinventoryInitialResponse -} - -// 后端商品库存初始化 成功返回结果 -type TaobaoJstAstrolabeStoreinventoryInitialResponse struct { - XMLName xml.Name `xml:"jst_astrolabe_storeinventory_initial_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 响应标签 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 响应标示 - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // 错误信息列表 - ErrorDescriptions []TaobaoJstAstrolabeStoreinventoryInitialError `json:"error_descriptions,omitempty" xml:"error_descriptions>taobao_jst_astrolabe_storeinventory_initial_error,omitempty"` -} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemadjustAPIRequest.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemadjustAPIRequest.go new file mode 100644 index 0000000000..44ba8bf309 --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemadjustAPIRequest.go @@ -0,0 +1,66 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +库存占用调整接口 API请求 +taobao.jst.astrolabe.storeinventory.itemadjust + +当第三方系统出现分单结果和天猫货品中心分单结果不一致时,需要调用此接口同步分单消息给天猫货品中心,调整之前占用的门店/电商仓库存。 +*/ +type TaobaoJstAstrolabeStoreinventoryItemadjustAPIRequest struct { + model.Params + // 操作时间 + _operationTime string + // 库存调整信息 + _inventoryAdjustInfo *InventoryAdjustInfo +} + +// 初始化TaobaoJstAstrolabeStoreinventoryItemadjustAPIRequest对象 +func NewTaobaoJstAstrolabeStoreinventoryItemadjustRequest() *TaobaoJstAstrolabeStoreinventoryItemadjustAPIRequest{ + return &TaobaoJstAstrolabeStoreinventoryItemadjustAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstAstrolabeStoreinventoryItemadjustAPIRequest) GetApiMethodName() string { + return "taobao.jst.astrolabe.storeinventory.itemadjust" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstAstrolabeStoreinventoryItemadjustAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OperationTime Setter +// 操作时间 +func (r *TaobaoJstAstrolabeStoreinventoryItemadjustAPIRequest) SetOperationTime(_operationTime string) error { + r._operationTime = _operationTime + r.Set("operation_time", _operationTime) + return nil +} + +// OperationTime Getter +func (r TaobaoJstAstrolabeStoreinventoryItemadjustAPIRequest) GetOperationTime() string { + return r._operationTime +} +// InventoryAdjustInfo Setter +// 库存调整信息 +func (r *TaobaoJstAstrolabeStoreinventoryItemadjustAPIRequest) SetInventoryAdjustInfo(_inventoryAdjustInfo *InventoryAdjustInfo) error { + r._inventoryAdjustInfo = _inventoryAdjustInfo + r.Set("inventory_adjust_info", _inventoryAdjustInfo) + return nil +} + +// InventoryAdjustInfo Getter +func (r TaobaoJstAstrolabeStoreinventoryItemadjustAPIRequest) GetInventoryAdjustInfo() *InventoryAdjustInfo { + return r._inventoryAdjustInfo +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemadjustAPIResponse.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemadjustAPIResponse.go new file mode 100644 index 0000000000..547f9675c2 --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemadjustAPIResponse.go @@ -0,0 +1,31 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +库存占用调整接口 API返回值 +taobao.jst.astrolabe.storeinventory.itemadjust + +当第三方系统出现分单结果和天猫货品中心分单结果不一致时,需要调用此接口同步分单消息给天猫货品中心,调整之前占用的门店/电商仓库存。 +*/ +type TaobaoJstAstrolabeStoreinventoryItemadjustAPIResponse struct { + model.CommonResponse + TaobaoJstAstrolabeStoreinventoryItemadjustAPIResponseModel +} + +// 库存占用调整接口 成功返回结果 +type TaobaoJstAstrolabeStoreinventoryItemadjustAPIResponseModel struct { + XMLName xml.Name `xml:"jst_astrolabe_storeinventory_itemadjust_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应标签 + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // 响应编码 + QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` + // 响应信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemadjustResponse.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemadjustResponse.go deleted file mode 100644 index 6edca19ecf..0000000000 --- a/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemadjustResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -库存占用调整接口 API返回值 -taobao.jst.astrolabe.storeinventory.itemadjust - -当第三方系统出现分单结果和天猫货品中心分单结果不一致时,需要调用此接口同步分单消息给天猫货品中心,调整之前占用的门店/电商仓库存。 -*/ -type TaobaoJstAstrolabeStoreinventoryItemadjustAPIResponse struct { - model.CommonResponse - TaobaoJstAstrolabeStoreinventoryItemadjustResponse -} - -// 库存占用调整接口 成功返回结果 -type TaobaoJstAstrolabeStoreinventoryItemadjustResponse struct { - XMLName xml.Name `xml:"jst_astrolabe_storeinventory_itemadjust_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应标签 - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // 响应编码 - QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` - // 响应信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryIteminitialAPIRequest.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryIteminitialAPIRequest.go new file mode 100644 index 0000000000..eef5876707 --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryIteminitialAPIRequest.go @@ -0,0 +1,66 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +库存初始化接口 API请求 +taobao.jst.astrolabe.storeinventory.iteminitial + +ERP调用奇门的接口,对门店的库存进行初始化 +*/ +type TaobaoJstAstrolabeStoreinventoryIteminitialAPIRequest struct { + model.Params + // 门店列表 + _stores []Store + // 操作时间 + _operationTime string +} + +// 初始化TaobaoJstAstrolabeStoreinventoryIteminitialAPIRequest对象 +func NewTaobaoJstAstrolabeStoreinventoryIteminitialRequest() *TaobaoJstAstrolabeStoreinventoryIteminitialAPIRequest{ + return &TaobaoJstAstrolabeStoreinventoryIteminitialAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstAstrolabeStoreinventoryIteminitialAPIRequest) GetApiMethodName() string { + return "taobao.jst.astrolabe.storeinventory.iteminitial" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstAstrolabeStoreinventoryIteminitialAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Stores Setter +// 门店列表 +func (r *TaobaoJstAstrolabeStoreinventoryIteminitialAPIRequest) SetStores(_stores []Store) error { + r._stores = _stores + r.Set("stores", _stores) + return nil +} + +// Stores Getter +func (r TaobaoJstAstrolabeStoreinventoryIteminitialAPIRequest) GetStores() []Store { + return r._stores +} +// OperationTime Setter +// 操作时间 +func (r *TaobaoJstAstrolabeStoreinventoryIteminitialAPIRequest) SetOperationTime(_operationTime string) error { + r._operationTime = _operationTime + r.Set("operation_time", _operationTime) + return nil +} + +// OperationTime Getter +func (r TaobaoJstAstrolabeStoreinventoryIteminitialAPIRequest) GetOperationTime() string { + return r._operationTime +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryIteminitialAPIResponse.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryIteminitialAPIResponse.go new file mode 100644 index 0000000000..64f75300ba --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryIteminitialAPIResponse.go @@ -0,0 +1,33 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +库存初始化接口 API返回值 +taobao.jst.astrolabe.storeinventory.iteminitial + +ERP调用奇门的接口,对门店的库存进行初始化 +*/ +type TaobaoJstAstrolabeStoreinventoryIteminitialAPIResponse struct { + model.CommonResponse + TaobaoJstAstrolabeStoreinventoryIteminitialAPIResponseModel +} + +// 库存初始化接口 成功返回结果 +type TaobaoJstAstrolabeStoreinventoryIteminitialAPIResponseModel struct { + XMLName xml.Name `xml:"jst_astrolabe_storeinventory_iteminitial_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应标示 + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // 响应标签 + QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` + // 响应信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 错误信息列表 + ErrorDescriptions []TaobaoJstAstrolabeStoreinventoryIteminitialError `json:"error_descriptions,omitempty" xml:"error_descriptions>taobao_jst_astrolabe_storeinventory_iteminitial_error,omitempty"` +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryIteminitialError.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryIteminitialError.go new file mode 100644 index 0000000000..63bc5ccd68 --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryIteminitialError.go @@ -0,0 +1,9 @@ +package omniorder + +// TaobaoJstAstrolabeStoreinventoryIteminitialError +type TaobaoJstAstrolabeStoreinventoryIteminitialError struct { + // 错误描述 + Descrpition string `json:"descrpition,omitempty" xml:"descrpition,omitempty"` + // 处理失败的流水号(有多个时,用逗号分隔) + FailedBillNum string `json:"failed_bill_num,omitempty" xml:"failed_bill_num,omitempty"` +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryIteminitialResponse.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryIteminitialResponse.go deleted file mode 100644 index 3303eb438e..0000000000 --- a/model/omniorder/TaobaoJstAstrolabeStoreinventoryIteminitialResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -库存初始化接口 API返回值 -taobao.jst.astrolabe.storeinventory.iteminitial - -ERP调用奇门的接口,对门店的库存进行初始化 -*/ -type TaobaoJstAstrolabeStoreinventoryIteminitialAPIResponse struct { - model.CommonResponse - TaobaoJstAstrolabeStoreinventoryIteminitialResponse -} - -// 库存初始化接口 成功返回结果 -type TaobaoJstAstrolabeStoreinventoryIteminitialResponse struct { - XMLName xml.Name `xml:"jst_astrolabe_storeinventory_iteminitial_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应标示 - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // 响应标签 - QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` - // 响应信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 错误信息列表 - ErrorDescriptions []TaobaoJstAstrolabeStoreinventoryIteminitialError `json:"error_descriptions,omitempty" xml:"error_descriptions>taobao_jst_astrolabe_storeinventory_iteminitial_error,omitempty"` -} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemqueryAPIRequest.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemqueryAPIRequest.go new file mode 100644 index 0000000000..0ef297b7eb --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemqueryAPIRequest.go @@ -0,0 +1,52 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +库存查询接口 API请求 +taobao.jst.astrolabe.storeinventory.itemquery + +查询门店或电商仓库存,该接口一次可以同时查询多个门店或电商仓的多个商品的多种类型的库存 +*/ +type TaobaoJstAstrolabeStoreinventoryItemqueryAPIRequest struct { + model.Params + // 门店信息 + _stores []Store +} + +// 初始化TaobaoJstAstrolabeStoreinventoryItemqueryAPIRequest对象 +func NewTaobaoJstAstrolabeStoreinventoryItemqueryRequest() *TaobaoJstAstrolabeStoreinventoryItemqueryAPIRequest{ + return &TaobaoJstAstrolabeStoreinventoryItemqueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstAstrolabeStoreinventoryItemqueryAPIRequest) GetApiMethodName() string { + return "taobao.jst.astrolabe.storeinventory.itemquery" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstAstrolabeStoreinventoryItemqueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Stores Setter +// 门店信息 +func (r *TaobaoJstAstrolabeStoreinventoryItemqueryAPIRequest) SetStores(_stores []Store) error { + r._stores = _stores + r.Set("stores", _stores) + return nil +} + +// Stores Getter +func (r TaobaoJstAstrolabeStoreinventoryItemqueryAPIRequest) GetStores() []Store { + return r._stores +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemqueryAPIResponse.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemqueryAPIResponse.go new file mode 100644 index 0000000000..99f8ee9543 --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemqueryAPIResponse.go @@ -0,0 +1,33 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +库存查询接口 API返回值 +taobao.jst.astrolabe.storeinventory.itemquery + +查询门店或电商仓库存,该接口一次可以同时查询多个门店或电商仓的多个商品的多种类型的库存 +*/ +type TaobaoJstAstrolabeStoreinventoryItemqueryAPIResponse struct { + model.CommonResponse + TaobaoJstAstrolabeStoreinventoryItemqueryAPIResponseModel +} + +// 库存查询接口 成功返回结果 +type TaobaoJstAstrolabeStoreinventoryItemqueryAPIResponseModel struct { + XMLName xml.Name `xml:"jst_astrolabe_storeinventory_itemquery_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应标示 + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // 响应编码 + QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 门店列表 + Stores []Store `json:"stores,omitempty" xml:"stores>store,omitempty"` +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemqueryResponse.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemqueryResponse.go deleted file mode 100644 index 5d048306f9..0000000000 --- a/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemqueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -库存查询接口 API返回值 -taobao.jst.astrolabe.storeinventory.itemquery - -查询门店或电商仓库存,该接口一次可以同时查询多个门店或电商仓的多个商品的多种类型的库存 -*/ -type TaobaoJstAstrolabeStoreinventoryItemqueryAPIResponse struct { - model.CommonResponse - TaobaoJstAstrolabeStoreinventoryItemqueryResponse -} - -// 库存查询接口 成功返回结果 -type TaobaoJstAstrolabeStoreinventoryItemqueryResponse struct { - XMLName xml.Name `xml:"jst_astrolabe_storeinventory_itemquery_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应标示 - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // 响应编码 - QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 门店列表 - Stores []Store `json:"stores,omitempty" xml:"stores>store,omitempty"` -} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemupdateAPIRequest.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemupdateAPIRequest.go new file mode 100644 index 0000000000..413f5e8e73 --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemupdateAPIRequest.go @@ -0,0 +1,66 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +库存增量更新接口 API请求 +taobao.jst.astrolabe.storeinventory.itemupdate + +ERP调用该接口,增量更新门店或电商仓库存,该接口一次可以同时增量更新多个门店的多个商品的非确定性库存。 +*/ +type TaobaoJstAstrolabeStoreinventoryItemupdateAPIRequest struct { + model.Params + // 门店列表 + _stores []Store + // 操作时间 + _operationTime string +} + +// 初始化TaobaoJstAstrolabeStoreinventoryItemupdateAPIRequest对象 +func NewTaobaoJstAstrolabeStoreinventoryItemupdateRequest() *TaobaoJstAstrolabeStoreinventoryItemupdateAPIRequest{ + return &TaobaoJstAstrolabeStoreinventoryItemupdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstAstrolabeStoreinventoryItemupdateAPIRequest) GetApiMethodName() string { + return "taobao.jst.astrolabe.storeinventory.itemupdate" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstAstrolabeStoreinventoryItemupdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Stores Setter +// 门店列表 +func (r *TaobaoJstAstrolabeStoreinventoryItemupdateAPIRequest) SetStores(_stores []Store) error { + r._stores = _stores + r.Set("stores", _stores) + return nil +} + +// Stores Getter +func (r TaobaoJstAstrolabeStoreinventoryItemupdateAPIRequest) GetStores() []Store { + return r._stores +} +// OperationTime Setter +// 操作时间 +func (r *TaobaoJstAstrolabeStoreinventoryItemupdateAPIRequest) SetOperationTime(_operationTime string) error { + r._operationTime = _operationTime + r.Set("operation_time", _operationTime) + return nil +} + +// OperationTime Getter +func (r TaobaoJstAstrolabeStoreinventoryItemupdateAPIRequest) GetOperationTime() string { + return r._operationTime +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemupdateAPIResponse.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemupdateAPIResponse.go new file mode 100644 index 0000000000..6b270dcfa1 --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemupdateAPIResponse.go @@ -0,0 +1,33 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +库存增量更新接口 API返回值 +taobao.jst.astrolabe.storeinventory.itemupdate + +ERP调用该接口,增量更新门店或电商仓库存,该接口一次可以同时增量更新多个门店的多个商品的非确定性库存。 +*/ +type TaobaoJstAstrolabeStoreinventoryItemupdateAPIResponse struct { + model.CommonResponse + TaobaoJstAstrolabeStoreinventoryItemupdateAPIResponseModel +} + +// 库存增量更新接口 成功返回结果 +type TaobaoJstAstrolabeStoreinventoryItemupdateAPIResponseModel struct { + XMLName xml.Name `xml:"jst_astrolabe_storeinventory_itemupdate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应标示 + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // 响应标签 + QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` + // 响应信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 错误信息列表 + ErrorDescriptions []TaobaoJstAstrolabeStoreinventoryItemupdateError `json:"error_descriptions,omitempty" xml:"error_descriptions>taobao_jst_astrolabe_storeinventory_itemupdate_error,omitempty"` +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemupdateError.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemupdateError.go new file mode 100644 index 0000000000..d29bb5dc20 --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemupdateError.go @@ -0,0 +1,9 @@ +package omniorder + +// TaobaoJstAstrolabeStoreinventoryItemupdateError +type TaobaoJstAstrolabeStoreinventoryItemupdateError struct { + // 错误描述 + Descrpition string `json:"descrpition,omitempty" xml:"descrpition,omitempty"` + // 处理失败的流水号 + FailedBillNum string `json:"failed_bill_num,omitempty" xml:"failed_bill_num,omitempty"` +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemupdateResponse.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemupdateResponse.go deleted file mode 100644 index 5fc86822e5..0000000000 --- a/model/omniorder/TaobaoJstAstrolabeStoreinventoryItemupdateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -库存增量更新接口 API返回值 -taobao.jst.astrolabe.storeinventory.itemupdate - -ERP调用该接口,增量更新门店或电商仓库存,该接口一次可以同时增量更新多个门店的多个商品的非确定性库存。 -*/ -type TaobaoJstAstrolabeStoreinventoryItemupdateAPIResponse struct { - model.CommonResponse - TaobaoJstAstrolabeStoreinventoryItemupdateResponse -} - -// 库存增量更新接口 成功返回结果 -type TaobaoJstAstrolabeStoreinventoryItemupdateResponse struct { - XMLName xml.Name `xml:"jst_astrolabe_storeinventory_itemupdate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应标示 - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // 响应标签 - QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` - // 响应信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 错误信息列表 - ErrorDescriptions []TaobaoJstAstrolabeStoreinventoryItemupdateError `json:"error_descriptions,omitempty" xml:"error_descriptions>taobao_jst_astrolabe_storeinventory_itemupdate_error,omitempty"` -} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryQueryAPIRequest.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryQueryAPIRequest.go new file mode 100644 index 0000000000..d387617a61 --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryQueryAPIRequest.go @@ -0,0 +1,52 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +后端商品库存查询接口 API请求 +taobao.jst.astrolabe.storeinventory.query + +查询门店或电商仓库存,该接口一次可以同时查询多个门店或电商仓的多个商品的多种类型的库存 +*/ +type TaobaoJstAstrolabeStoreinventoryQueryAPIRequest struct { + model.Params + // 门店 + _stores []Store +} + +// 初始化TaobaoJstAstrolabeStoreinventoryQueryAPIRequest对象 +func NewTaobaoJstAstrolabeStoreinventoryQueryRequest() *TaobaoJstAstrolabeStoreinventoryQueryAPIRequest{ + return &TaobaoJstAstrolabeStoreinventoryQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstAstrolabeStoreinventoryQueryAPIRequest) GetApiMethodName() string { + return "taobao.jst.astrolabe.storeinventory.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstAstrolabeStoreinventoryQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Stores Setter +// 门店 +func (r *TaobaoJstAstrolabeStoreinventoryQueryAPIRequest) SetStores(_stores []Store) error { + r._stores = _stores + r.Set("stores", _stores) + return nil +} + +// Stores Getter +func (r TaobaoJstAstrolabeStoreinventoryQueryAPIRequest) GetStores() []Store { + return r._stores +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryQueryAPIResponse.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryQueryAPIResponse.go new file mode 100644 index 0000000000..724abba97f --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryQueryAPIResponse.go @@ -0,0 +1,33 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +后端商品库存查询接口 API返回值 +taobao.jst.astrolabe.storeinventory.query + +查询门店或电商仓库存,该接口一次可以同时查询多个门店或电商仓的多个商品的多种类型的库存 +*/ +type TaobaoJstAstrolabeStoreinventoryQueryAPIResponse struct { + model.CommonResponse + TaobaoJstAstrolabeStoreinventoryQueryAPIResponseModel +} + +// 后端商品库存查询接口 成功返回结果 +type TaobaoJstAstrolabeStoreinventoryQueryAPIResponseModel struct { + XMLName xml.Name `xml:"jst_astrolabe_storeinventory_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应标示 + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // 响应编码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 响应信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 门店列表 + Stores []Store `json:"stores,omitempty" xml:"stores>store,omitempty"` +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryQueryResponse.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryQueryResponse.go deleted file mode 100644 index c53b61263e..0000000000 --- a/model/omniorder/TaobaoJstAstrolabeStoreinventoryQueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -后端商品库存查询接口 API返回值 -taobao.jst.astrolabe.storeinventory.query - -查询门店或电商仓库存,该接口一次可以同时查询多个门店或电商仓的多个商品的多种类型的库存 -*/ -type TaobaoJstAstrolabeStoreinventoryQueryAPIResponse struct { - model.CommonResponse - TaobaoJstAstrolabeStoreinventoryQueryResponse -} - -// 后端商品库存查询接口 成功返回结果 -type TaobaoJstAstrolabeStoreinventoryQueryResponse struct { - XMLName xml.Name `xml:"jst_astrolabe_storeinventory_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应标示 - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // 响应编码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 响应信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 门店列表 - Stores []Store `json:"stores,omitempty" xml:"stores>store,omitempty"` -} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryUpdateAPIRequest.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryUpdateAPIRequest.go new file mode 100644 index 0000000000..dcc6fb9f7d --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +后端商品库存增量更新接口 API请求 +taobao.jst.astrolabe.storeinventory.update + +增量更新门店或电商仓库存,该接口一次可以同时增量更新多个门店的多个商品的非确定性库存 +*/ +type TaobaoJstAstrolabeStoreinventoryUpdateAPIRequest struct { + model.Params + // 操作时间 + _operationTime string + // 门店列表 + _stores []Store +} + +// 初始化TaobaoJstAstrolabeStoreinventoryUpdateAPIRequest对象 +func NewTaobaoJstAstrolabeStoreinventoryUpdateRequest() *TaobaoJstAstrolabeStoreinventoryUpdateAPIRequest{ + return &TaobaoJstAstrolabeStoreinventoryUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoJstAstrolabeStoreinventoryUpdateAPIRequest) GetApiMethodName() string { + return "taobao.jst.astrolabe.storeinventory.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoJstAstrolabeStoreinventoryUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OperationTime Setter +// 操作时间 +func (r *TaobaoJstAstrolabeStoreinventoryUpdateAPIRequest) SetOperationTime(_operationTime string) error { + r._operationTime = _operationTime + r.Set("operation_time", _operationTime) + return nil +} + +// OperationTime Getter +func (r TaobaoJstAstrolabeStoreinventoryUpdateAPIRequest) GetOperationTime() string { + return r._operationTime +} +// Stores Setter +// 门店列表 +func (r *TaobaoJstAstrolabeStoreinventoryUpdateAPIRequest) SetStores(_stores []Store) error { + r._stores = _stores + r.Set("stores", _stores) + return nil +} + +// Stores Getter +func (r TaobaoJstAstrolabeStoreinventoryUpdateAPIRequest) GetStores() []Store { + return r._stores +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryUpdateAPIResponse.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryUpdateAPIResponse.go new file mode 100644 index 0000000000..d2d42ce349 --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryUpdateAPIResponse.go @@ -0,0 +1,33 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +后端商品库存增量更新接口 API返回值 +taobao.jst.astrolabe.storeinventory.update + +增量更新门店或电商仓库存,该接口一次可以同时增量更新多个门店的多个商品的非确定性库存 +*/ +type TaobaoJstAstrolabeStoreinventoryUpdateAPIResponse struct { + model.CommonResponse + TaobaoJstAstrolabeStoreinventoryUpdateAPIResponseModel +} + +// 后端商品库存增量更新接口 成功返回结果 +type TaobaoJstAstrolabeStoreinventoryUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"jst_astrolabe_storeinventory_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应标示 + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // 响应标签 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 响应信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 错误信息列表 + ErrorDescriptions []TaobaoJstAstrolabeStoreinventoryUpdateError `json:"error_descriptions,omitempty" xml:"error_descriptions>taobao_jst_astrolabe_storeinventory_update_error,omitempty"` +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryUpdateError.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryUpdateError.go new file mode 100644 index 0000000000..c062a45a65 --- /dev/null +++ b/model/omniorder/TaobaoJstAstrolabeStoreinventoryUpdateError.go @@ -0,0 +1,9 @@ +package omniorder + +// TaobaoJstAstrolabeStoreinventoryUpdateError +type TaobaoJstAstrolabeStoreinventoryUpdateError struct { + // 错误描述 + Description string `json:"description,omitempty" xml:"description,omitempty"` + // 处理失败的流水号 + FailedBillNum string `json:"failed_bill_num,omitempty" xml:"failed_bill_num,omitempty"` +} diff --git a/model/omniorder/TaobaoJstAstrolabeStoreinventoryUpdateResponse.go b/model/omniorder/TaobaoJstAstrolabeStoreinventoryUpdateResponse.go deleted file mode 100644 index ee05d22617..0000000000 --- a/model/omniorder/TaobaoJstAstrolabeStoreinventoryUpdateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -后端商品库存增量更新接口 API返回值 -taobao.jst.astrolabe.storeinventory.update - -增量更新门店或电商仓库存,该接口一次可以同时增量更新多个门店的多个商品的非确定性库存 -*/ -type TaobaoJstAstrolabeStoreinventoryUpdateAPIResponse struct { - model.CommonResponse - TaobaoJstAstrolabeStoreinventoryUpdateResponse -} - -// 后端商品库存增量更新接口 成功返回结果 -type TaobaoJstAstrolabeStoreinventoryUpdateResponse struct { - XMLName xml.Name `xml:"jst_astrolabe_storeinventory_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应标示 - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // 响应标签 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 响应信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 错误信息列表 - ErrorDescriptions []TaobaoJstAstrolabeStoreinventoryUpdateError `json:"error_descriptions,omitempty" xml:"error_descriptions>taobao_jst_astrolabe_storeinventory_update_error,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniDealerOdersGetAPIRequest.go b/model/omniorder/TaobaoOmniDealerOdersGetAPIRequest.go new file mode 100644 index 0000000000..6ad7aa994b --- /dev/null +++ b/model/omniorder/TaobaoOmniDealerOdersGetAPIRequest.go @@ -0,0 +1,52 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单笔全渠道经销商订单的详细信息 API请求 +taobao.omni.dealer.oders.get + +全渠道经销商获取单笔订单的详细信息 +*/ +type TaobaoOmniDealerOdersGetAPIRequest struct { + model.Params + // 主订单ID + _mainOrderId int64 +} + +// 初始化TaobaoOmniDealerOdersGetAPIRequest对象 +func NewTaobaoOmniDealerOdersGetRequest() *TaobaoOmniDealerOdersGetAPIRequest{ + return &TaobaoOmniDealerOdersGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniDealerOdersGetAPIRequest) GetApiMethodName() string { + return "taobao.omni.dealer.oders.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniDealerOdersGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainOrderId Setter +// 主订单ID +func (r *TaobaoOmniDealerOdersGetAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r TaobaoOmniDealerOdersGetAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} diff --git a/model/omniorder/TaobaoOmniDealerOdersGetAPIResponse.go b/model/omniorder/TaobaoOmniDealerOdersGetAPIResponse.go new file mode 100644 index 0000000000..42ee14c2ec --- /dev/null +++ b/model/omniorder/TaobaoOmniDealerOdersGetAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单笔全渠道经销商订单的详细信息 API返回值 +taobao.omni.dealer.oders.get + +全渠道经销商获取单笔订单的详细信息 +*/ +type TaobaoOmniDealerOdersGetAPIResponse struct { + model.CommonResponse + TaobaoOmniDealerOdersGetAPIResponseModel +} + +// 获取单笔全渠道经销商订单的详细信息 成功返回结果 +type TaobaoOmniDealerOdersGetAPIResponseModel struct { + XMLName xml.Name `xml:"omni_dealer_oders_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单 + Data *TaobaoOmniDealerOdersGetData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniDealerOdersGetResponse.go b/model/omniorder/TaobaoOmniDealerOdersGetResponse.go deleted file mode 100644 index 70bd029f72..0000000000 --- a/model/omniorder/TaobaoOmniDealerOdersGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取单笔全渠道经销商订单的详细信息 API返回值 -taobao.omni.dealer.oders.get - -全渠道经销商获取单笔订单的详细信息 -*/ -type TaobaoOmniDealerOdersGetAPIResponse struct { - model.CommonResponse - TaobaoOmniDealerOdersGetResponse -} - -// 获取单笔全渠道经销商订单的详细信息 成功返回结果 -type TaobaoOmniDealerOdersGetResponse struct { - XMLName xml.Name `xml:"omni_dealer_oders_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单 - Data *TaobaoOmniDealerOdersGetData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniDealerOdersListAPIRequest.go b/model/omniorder/TaobaoOmniDealerOdersListAPIRequest.go new file mode 100644 index 0000000000..866c1d8e14 --- /dev/null +++ b/model/omniorder/TaobaoOmniDealerOdersListAPIRequest.go @@ -0,0 +1,52 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道经销商订单列表 API请求 +taobao.omni.dealer.oders.list + +全渠道经销商订单列表查询 +*/ +type TaobaoOmniDealerOdersListAPIRequest struct { + model.Params + // 参数对象 + _queryParam *QueryOmniOrderRequest +} + +// 初始化TaobaoOmniDealerOdersListAPIRequest对象 +func NewTaobaoOmniDealerOdersListRequest() *TaobaoOmniDealerOdersListAPIRequest{ + return &TaobaoOmniDealerOdersListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniDealerOdersListAPIRequest) GetApiMethodName() string { + return "taobao.omni.dealer.oders.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniDealerOdersListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryParam Setter +// 参数对象 +func (r *TaobaoOmniDealerOdersListAPIRequest) SetQueryParam(_queryParam *QueryOmniOrderRequest) error { + r._queryParam = _queryParam + r.Set("query_param", _queryParam) + return nil +} + +// QueryParam Getter +func (r TaobaoOmniDealerOdersListAPIRequest) GetQueryParam() *QueryOmniOrderRequest { + return r._queryParam +} diff --git a/model/omniorder/TaobaoOmniDealerOdersListAPIResponse.go b/model/omniorder/TaobaoOmniDealerOdersListAPIResponse.go new file mode 100644 index 0000000000..ee7f431e31 --- /dev/null +++ b/model/omniorder/TaobaoOmniDealerOdersListAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道经销商订单列表 API返回值 +taobao.omni.dealer.oders.list + +全渠道经销商订单列表查询 +*/ +type TaobaoOmniDealerOdersListAPIResponse struct { + model.CommonResponse + TaobaoOmniDealerOdersListAPIResponseModel +} + +// 全渠道经销商订单列表 成功返回结果 +type TaobaoOmniDealerOdersListAPIResponseModel struct { + XMLName xml.Name `xml:"omni_dealer_oders_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分页结果 + Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniDealerOdersListResponse.go b/model/omniorder/TaobaoOmniDealerOdersListResponse.go deleted file mode 100644 index d4dd3ce14f..0000000000 --- a/model/omniorder/TaobaoOmniDealerOdersListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -全渠道经销商订单列表 API返回值 -taobao.omni.dealer.oders.list - -全渠道经销商订单列表查询 -*/ -type TaobaoOmniDealerOdersListAPIResponse struct { - model.CommonResponse - TaobaoOmniDealerOdersListResponse -} - -// 全渠道经销商订单列表 成功返回结果 -type TaobaoOmniDealerOdersListResponse struct { - XMLName xml.Name `xml:"omni_dealer_oders_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分页结果 - Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniitemCategoryGetAPIRequest.go b/model/omniorder/TaobaoOmniitemCategoryGetAPIRequest.go new file mode 100644 index 0000000000..b355ddb1a1 --- /dev/null +++ b/model/omniorder/TaobaoOmniitemCategoryGetAPIRequest.go @@ -0,0 +1,52 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道商品轻发布类目信息 API请求 +taobao.omniitem.category.get + +全渠道商品轻发布类目信息 +*/ +type TaobaoOmniitemCategoryGetAPIRequest struct { + model.Params + // 全渠道商品类目ID,不填表示获取所有全渠道商品类目信息 + _categoryId int64 +} + +// 初始化TaobaoOmniitemCategoryGetAPIRequest对象 +func NewTaobaoOmniitemCategoryGetRequest() *TaobaoOmniitemCategoryGetAPIRequest{ + return &TaobaoOmniitemCategoryGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniitemCategoryGetAPIRequest) GetApiMethodName() string { + return "taobao.omniitem.category.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniitemCategoryGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CategoryId Setter +// 全渠道商品类目ID,不填表示获取所有全渠道商品类目信息 +func (r *TaobaoOmniitemCategoryGetAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r TaobaoOmniitemCategoryGetAPIRequest) GetCategoryId() int64 { + return r._categoryId +} diff --git a/model/omniorder/TaobaoOmniitemCategoryGetAPIResponse.go b/model/omniorder/TaobaoOmniitemCategoryGetAPIResponse.go new file mode 100644 index 0000000000..edd0d016a1 --- /dev/null +++ b/model/omniorder/TaobaoOmniitemCategoryGetAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道商品轻发布类目信息 API返回值 +taobao.omniitem.category.get + +全渠道商品轻发布类目信息 +*/ +type TaobaoOmniitemCategoryGetAPIResponse struct { + model.CommonResponse + TaobaoOmniitemCategoryGetAPIResponseModel +} + +// 全渠道商品轻发布类目信息 成功返回结果 +type TaobaoOmniitemCategoryGetAPIResponseModel struct { + XMLName xml.Name `xml:"omniitem_category_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniitemCategoryGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniitemCategoryGetResponse.go b/model/omniorder/TaobaoOmniitemCategoryGetResponse.go deleted file mode 100644 index b3f3fa3400..0000000000 --- a/model/omniorder/TaobaoOmniitemCategoryGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -全渠道商品轻发布类目信息 API返回值 -taobao.omniitem.category.get - -全渠道商品轻发布类目信息 -*/ -type TaobaoOmniitemCategoryGetAPIResponse struct { - model.CommonResponse - TaobaoOmniitemCategoryGetResponse -} - -// 全渠道商品轻发布类目信息 成功返回结果 -type TaobaoOmniitemCategoryGetResponse struct { - XMLName xml.Name `xml:"omniitem_category_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniitemCategoryGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniitemClassifyDeleteAPIRequest.go b/model/omniorder/TaobaoOmniitemClassifyDeleteAPIRequest.go new file mode 100644 index 0000000000..71ea30469e --- /dev/null +++ b/model/omniorder/TaobaoOmniitemClassifyDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除一个分类 API请求 +taobao.omniitem.classify.delete + +删除一个分类 +*/ +type TaobaoOmniitemClassifyDeleteAPIRequest struct { + model.Params + // 分类ID + _classifyId int64 + // 操作人信息(暂时不填) + _operator string +} + +// 初始化TaobaoOmniitemClassifyDeleteAPIRequest对象 +func NewTaobaoOmniitemClassifyDeleteRequest() *TaobaoOmniitemClassifyDeleteAPIRequest{ + return &TaobaoOmniitemClassifyDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniitemClassifyDeleteAPIRequest) GetApiMethodName() string { + return "taobao.omniitem.classify.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniitemClassifyDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ClassifyId Setter +// 分类ID +func (r *TaobaoOmniitemClassifyDeleteAPIRequest) SetClassifyId(_classifyId int64) error { + r._classifyId = _classifyId + r.Set("classify_id", _classifyId) + return nil +} + +// ClassifyId Getter +func (r TaobaoOmniitemClassifyDeleteAPIRequest) GetClassifyId() int64 { + return r._classifyId +} +// Operator Setter +// 操作人信息(暂时不填) +func (r *TaobaoOmniitemClassifyDeleteAPIRequest) SetOperator(_operator string) error { + r._operator = _operator + r.Set("operator", _operator) + return nil +} + +// Operator Getter +func (r TaobaoOmniitemClassifyDeleteAPIRequest) GetOperator() string { + return r._operator +} diff --git a/model/omniorder/TaobaoOmniitemClassifyDeleteAPIResponse.go b/model/omniorder/TaobaoOmniitemClassifyDeleteAPIResponse.go new file mode 100644 index 0000000000..2664f0ae5a --- /dev/null +++ b/model/omniorder/TaobaoOmniitemClassifyDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除一个分类 API返回值 +taobao.omniitem.classify.delete + +删除一个分类 +*/ +type TaobaoOmniitemClassifyDeleteAPIResponse struct { + model.CommonResponse + TaobaoOmniitemClassifyDeleteAPIResponseModel +} + +// 删除一个分类 成功返回结果 +type TaobaoOmniitemClassifyDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"omniitem_classify_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniitemClassifyDeleteResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniitemClassifyDeleteResponse.go b/model/omniorder/TaobaoOmniitemClassifyDeleteResponse.go deleted file mode 100644 index ab7cc6bbe2..0000000000 --- a/model/omniorder/TaobaoOmniitemClassifyDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除一个分类 API返回值 -taobao.omniitem.classify.delete - -删除一个分类 -*/ -type TaobaoOmniitemClassifyDeleteAPIResponse struct { - model.CommonResponse - TaobaoOmniitemClassifyDeleteResponse -} - -// 删除一个分类 成功返回结果 -type TaobaoOmniitemClassifyDeleteResponse struct { - XMLName xml.Name `xml:"omniitem_classify_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniitemClassifyDeleteResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniitemClassifyItemBatchOperateAPIRequest.go b/model/omniorder/TaobaoOmniitemClassifyItemBatchOperateAPIRequest.go new file mode 100644 index 0000000000..40d38198d5 --- /dev/null +++ b/model/omniorder/TaobaoOmniitemClassifyItemBatchOperateAPIRequest.go @@ -0,0 +1,94 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量添加/删除商品和分类的关联关系 API请求 +taobao.omniitem.classify.item.batch.operate + +批量添加/删除商品和分类的关联关系 +*/ +type TaobaoOmniitemClassifyItemBatchOperateAPIRequest struct { + model.Params + // 分类ID + _classifyIds []int64 + // 需要添加分类关联关系的商品ID + _addItemIds []int64 + // 需要删除分类关联关系的商品ID + _deleteItemIds []int64 + // 操作人信息(暂时不填) + _operator string +} + +// 初始化TaobaoOmniitemClassifyItemBatchOperateAPIRequest对象 +func NewTaobaoOmniitemClassifyItemBatchOperateRequest() *TaobaoOmniitemClassifyItemBatchOperateAPIRequest{ + return &TaobaoOmniitemClassifyItemBatchOperateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniitemClassifyItemBatchOperateAPIRequest) GetApiMethodName() string { + return "taobao.omniitem.classify.item.batch.operate" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniitemClassifyItemBatchOperateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ClassifyIds Setter +// 分类ID +func (r *TaobaoOmniitemClassifyItemBatchOperateAPIRequest) SetClassifyIds(_classifyIds []int64) error { + r._classifyIds = _classifyIds + r.Set("classify_ids", _classifyIds) + return nil +} + +// ClassifyIds Getter +func (r TaobaoOmniitemClassifyItemBatchOperateAPIRequest) GetClassifyIds() []int64 { + return r._classifyIds +} +// AddItemIds Setter +// 需要添加分类关联关系的商品ID +func (r *TaobaoOmniitemClassifyItemBatchOperateAPIRequest) SetAddItemIds(_addItemIds []int64) error { + r._addItemIds = _addItemIds + r.Set("add_item_ids", _addItemIds) + return nil +} + +// AddItemIds Getter +func (r TaobaoOmniitemClassifyItemBatchOperateAPIRequest) GetAddItemIds() []int64 { + return r._addItemIds +} +// DeleteItemIds Setter +// 需要删除分类关联关系的商品ID +func (r *TaobaoOmniitemClassifyItemBatchOperateAPIRequest) SetDeleteItemIds(_deleteItemIds []int64) error { + r._deleteItemIds = _deleteItemIds + r.Set("delete_item_ids", _deleteItemIds) + return nil +} + +// DeleteItemIds Getter +func (r TaobaoOmniitemClassifyItemBatchOperateAPIRequest) GetDeleteItemIds() []int64 { + return r._deleteItemIds +} +// Operator Setter +// 操作人信息(暂时不填) +func (r *TaobaoOmniitemClassifyItemBatchOperateAPIRequest) SetOperator(_operator string) error { + r._operator = _operator + r.Set("operator", _operator) + return nil +} + +// Operator Getter +func (r TaobaoOmniitemClassifyItemBatchOperateAPIRequest) GetOperator() string { + return r._operator +} diff --git a/model/omniorder/TaobaoOmniitemClassifyItemBatchOperateAPIResponse.go b/model/omniorder/TaobaoOmniitemClassifyItemBatchOperateAPIResponse.go new file mode 100644 index 0000000000..f987f8341f --- /dev/null +++ b/model/omniorder/TaobaoOmniitemClassifyItemBatchOperateAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量添加/删除商品和分类的关联关系 API返回值 +taobao.omniitem.classify.item.batch.operate + +批量添加/删除商品和分类的关联关系 +*/ +type TaobaoOmniitemClassifyItemBatchOperateAPIResponse struct { + model.CommonResponse + TaobaoOmniitemClassifyItemBatchOperateAPIResponseModel +} + +// 批量添加/删除商品和分类的关联关系 成功返回结果 +type TaobaoOmniitemClassifyItemBatchOperateAPIResponseModel struct { + XMLName xml.Name `xml:"omniitem_classify_item_batch_operate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniitemClassifyItemBatchOperateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniitemClassifyItemBatchOperateResponse.go b/model/omniorder/TaobaoOmniitemClassifyItemBatchOperateResponse.go deleted file mode 100644 index 4baee943ba..0000000000 --- a/model/omniorder/TaobaoOmniitemClassifyItemBatchOperateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量添加/删除商品和分类的关联关系 API返回值 -taobao.omniitem.classify.item.batch.operate - -批量添加/删除商品和分类的关联关系 -*/ -type TaobaoOmniitemClassifyItemBatchOperateAPIResponse struct { - model.CommonResponse - TaobaoOmniitemClassifyItemBatchOperateResponse -} - -// 批量添加/删除商品和分类的关联关系 成功返回结果 -type TaobaoOmniitemClassifyItemBatchOperateResponse struct { - XMLName xml.Name `xml:"omniitem_classify_item_batch_operate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniitemClassifyItemBatchOperateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniitemClassifyItemQueryAPIRequest.go b/model/omniorder/TaobaoOmniitemClassifyItemQueryAPIRequest.go new file mode 100644 index 0000000000..a49591d197 --- /dev/null +++ b/model/omniorder/TaobaoOmniitemClassifyItemQueryAPIRequest.go @@ -0,0 +1,80 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据分类查商品信息 API请求 +taobao.omniitem.classify.item.query + +商家根据分类查商品 +*/ +type TaobaoOmniitemClassifyItemQueryAPIRequest struct { + model.Params + // 分类ID + _classifyId int64 + // 页码 + _pageNum int64 + // 每页大小 + _pageSize int64 +} + +// 初始化TaobaoOmniitemClassifyItemQueryAPIRequest对象 +func NewTaobaoOmniitemClassifyItemQueryRequest() *TaobaoOmniitemClassifyItemQueryAPIRequest{ + return &TaobaoOmniitemClassifyItemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniitemClassifyItemQueryAPIRequest) GetApiMethodName() string { + return "taobao.omniitem.classify.item.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniitemClassifyItemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ClassifyId Setter +// 分类ID +func (r *TaobaoOmniitemClassifyItemQueryAPIRequest) SetClassifyId(_classifyId int64) error { + r._classifyId = _classifyId + r.Set("classify_id", _classifyId) + return nil +} + +// ClassifyId Getter +func (r TaobaoOmniitemClassifyItemQueryAPIRequest) GetClassifyId() int64 { + return r._classifyId +} +// PageNum Setter +// 页码 +func (r *TaobaoOmniitemClassifyItemQueryAPIRequest) SetPageNum(_pageNum int64) error { + r._pageNum = _pageNum + r.Set("page_num", _pageNum) + return nil +} + +// PageNum Getter +func (r TaobaoOmniitemClassifyItemQueryAPIRequest) GetPageNum() int64 { + return r._pageNum +} +// PageSize Setter +// 每页大小 +func (r *TaobaoOmniitemClassifyItemQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoOmniitemClassifyItemQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/omniorder/TaobaoOmniitemClassifyItemQueryAPIResponse.go b/model/omniorder/TaobaoOmniitemClassifyItemQueryAPIResponse.go new file mode 100644 index 0000000000..d61b26cb95 --- /dev/null +++ b/model/omniorder/TaobaoOmniitemClassifyItemQueryAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据分类查商品信息 API返回值 +taobao.omniitem.classify.item.query + +商家根据分类查商品 +*/ +type TaobaoOmniitemClassifyItemQueryAPIResponse struct { + model.CommonResponse + TaobaoOmniitemClassifyItemQueryAPIResponseModel +} + +// 根据分类查商品信息 成功返回结果 +type TaobaoOmniitemClassifyItemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"omniitem_classify_item_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniitemClassifyItemQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniitemClassifyItemQueryResponse.go b/model/omniorder/TaobaoOmniitemClassifyItemQueryResponse.go deleted file mode 100644 index 245a6d4b0f..0000000000 --- a/model/omniorder/TaobaoOmniitemClassifyItemQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据分类查商品信息 API返回值 -taobao.omniitem.classify.item.query - -商家根据分类查商品 -*/ -type TaobaoOmniitemClassifyItemQueryAPIResponse struct { - model.CommonResponse - TaobaoOmniitemClassifyItemQueryResponse -} - -// 根据分类查商品信息 成功返回结果 -type TaobaoOmniitemClassifyItemQueryResponse struct { - XMLName xml.Name `xml:"omniitem_classify_item_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniitemClassifyItemQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniitemClassifyOperatorAPIRequest.go b/model/omniorder/TaobaoOmniitemClassifyOperatorAPIRequest.go new file mode 100644 index 0000000000..2d9c4a3c97 --- /dev/null +++ b/model/omniorder/TaobaoOmniitemClassifyOperatorAPIRequest.go @@ -0,0 +1,94 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加/修改分类 API请求 +taobao.omniitem.classify.operator + +添加/修改分类 +*/ +type TaobaoOmniitemClassifyOperatorAPIRequest struct { + model.Params + // 分类信息 + _category *OmniItemCategoryDetailDto + // 需要添加的关联关系的商品 + _addItemIds []int64 + // 需要修改的关联关系的商品 + _removeItemIds []int64 + // 操作人信息(暂时不填) + _operator string +} + +// 初始化TaobaoOmniitemClassifyOperatorAPIRequest对象 +func NewTaobaoOmniitemClassifyOperatorRequest() *TaobaoOmniitemClassifyOperatorAPIRequest{ + return &TaobaoOmniitemClassifyOperatorAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniitemClassifyOperatorAPIRequest) GetApiMethodName() string { + return "taobao.omniitem.classify.operator" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniitemClassifyOperatorAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Category Setter +// 分类信息 +func (r *TaobaoOmniitemClassifyOperatorAPIRequest) SetCategory(_category *OmniItemCategoryDetailDto) error { + r._category = _category + r.Set("category", _category) + return nil +} + +// Category Getter +func (r TaobaoOmniitemClassifyOperatorAPIRequest) GetCategory() *OmniItemCategoryDetailDto { + return r._category +} +// AddItemIds Setter +// 需要添加的关联关系的商品 +func (r *TaobaoOmniitemClassifyOperatorAPIRequest) SetAddItemIds(_addItemIds []int64) error { + r._addItemIds = _addItemIds + r.Set("add_item_ids", _addItemIds) + return nil +} + +// AddItemIds Getter +func (r TaobaoOmniitemClassifyOperatorAPIRequest) GetAddItemIds() []int64 { + return r._addItemIds +} +// RemoveItemIds Setter +// 需要修改的关联关系的商品 +func (r *TaobaoOmniitemClassifyOperatorAPIRequest) SetRemoveItemIds(_removeItemIds []int64) error { + r._removeItemIds = _removeItemIds + r.Set("remove_item_ids", _removeItemIds) + return nil +} + +// RemoveItemIds Getter +func (r TaobaoOmniitemClassifyOperatorAPIRequest) GetRemoveItemIds() []int64 { + return r._removeItemIds +} +// Operator Setter +// 操作人信息(暂时不填) +func (r *TaobaoOmniitemClassifyOperatorAPIRequest) SetOperator(_operator string) error { + r._operator = _operator + r.Set("operator", _operator) + return nil +} + +// Operator Getter +func (r TaobaoOmniitemClassifyOperatorAPIRequest) GetOperator() string { + return r._operator +} diff --git a/model/omniorder/TaobaoOmniitemClassifyOperatorAPIResponse.go b/model/omniorder/TaobaoOmniitemClassifyOperatorAPIResponse.go new file mode 100644 index 0000000000..c120b8f338 --- /dev/null +++ b/model/omniorder/TaobaoOmniitemClassifyOperatorAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加/修改分类 API返回值 +taobao.omniitem.classify.operator + +添加/修改分类 +*/ +type TaobaoOmniitemClassifyOperatorAPIResponse struct { + model.CommonResponse + TaobaoOmniitemClassifyOperatorAPIResponseModel +} + +// 添加/修改分类 成功返回结果 +type TaobaoOmniitemClassifyOperatorAPIResponseModel struct { + XMLName xml.Name `xml:"omniitem_classify_operator_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniitemClassifyOperatorResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniitemClassifyOperatorResponse.go b/model/omniorder/TaobaoOmniitemClassifyOperatorResponse.go deleted file mode 100644 index 2eb5e28a1e..0000000000 --- a/model/omniorder/TaobaoOmniitemClassifyOperatorResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加/修改分类 API返回值 -taobao.omniitem.classify.operator - -添加/修改分类 -*/ -type TaobaoOmniitemClassifyOperatorAPIResponse struct { - model.CommonResponse - TaobaoOmniitemClassifyOperatorResponse -} - -// 添加/修改分类 成功返回结果 -type TaobaoOmniitemClassifyOperatorResponse struct { - XMLName xml.Name `xml:"omniitem_classify_operator_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniitemClassifyOperatorResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniitemClassifyQueryAPIRequest.go b/model/omniorder/TaobaoOmniitemClassifyQueryAPIRequest.go new file mode 100644 index 0000000000..af0c070701 --- /dev/null +++ b/model/omniorder/TaobaoOmniitemClassifyQueryAPIRequest.go @@ -0,0 +1,80 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询分类信息 API请求 +taobao.omniitem.classify.query + +通过查询关键字,分页查询分类信息 +*/ +type TaobaoOmniitemClassifyQueryAPIRequest struct { + model.Params + // 查询关键词 + _keyword string + // 页码 + _pageNum int64 + // 每页大小 + _pageSize int64 +} + +// 初始化TaobaoOmniitemClassifyQueryAPIRequest对象 +func NewTaobaoOmniitemClassifyQueryRequest() *TaobaoOmniitemClassifyQueryAPIRequest{ + return &TaobaoOmniitemClassifyQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniitemClassifyQueryAPIRequest) GetApiMethodName() string { + return "taobao.omniitem.classify.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniitemClassifyQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Keyword Setter +// 查询关键词 +func (r *TaobaoOmniitemClassifyQueryAPIRequest) SetKeyword(_keyword string) error { + r._keyword = _keyword + r.Set("keyword", _keyword) + return nil +} + +// Keyword Getter +func (r TaobaoOmniitemClassifyQueryAPIRequest) GetKeyword() string { + return r._keyword +} +// PageNum Setter +// 页码 +func (r *TaobaoOmniitemClassifyQueryAPIRequest) SetPageNum(_pageNum int64) error { + r._pageNum = _pageNum + r.Set("page_num", _pageNum) + return nil +} + +// PageNum Getter +func (r TaobaoOmniitemClassifyQueryAPIRequest) GetPageNum() int64 { + return r._pageNum +} +// PageSize Setter +// 每页大小 +func (r *TaobaoOmniitemClassifyQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoOmniitemClassifyQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/omniorder/TaobaoOmniitemClassifyQueryAPIResponse.go b/model/omniorder/TaobaoOmniitemClassifyQueryAPIResponse.go new file mode 100644 index 0000000000..b2a33c0356 --- /dev/null +++ b/model/omniorder/TaobaoOmniitemClassifyQueryAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询分类信息 API返回值 +taobao.omniitem.classify.query + +通过查询关键字,分页查询分类信息 +*/ +type TaobaoOmniitemClassifyQueryAPIResponse struct { + model.CommonResponse + TaobaoOmniitemClassifyQueryAPIResponseModel +} + +// 查询分类信息 成功返回结果 +type TaobaoOmniitemClassifyQueryAPIResponseModel struct { + XMLName xml.Name `xml:"omniitem_classify_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniitemClassifyQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniitemClassifyQueryResponse.go b/model/omniorder/TaobaoOmniitemClassifyQueryResponse.go deleted file mode 100644 index a203ed2262..0000000000 --- a/model/omniorder/TaobaoOmniitemClassifyQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询分类信息 API返回值 -taobao.omniitem.classify.query - -通过查询关键字,分页查询分类信息 -*/ -type TaobaoOmniitemClassifyQueryAPIResponse struct { - model.CommonResponse - TaobaoOmniitemClassifyQueryResponse -} - -// 查询分类信息 成功返回结果 -type TaobaoOmniitemClassifyQueryResponse struct { - XMLName xml.Name `xml:"omniitem_classify_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniitemClassifyQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniitemClassifyStoreBatchOperateAPIRequest.go b/model/omniorder/TaobaoOmniitemClassifyStoreBatchOperateAPIRequest.go new file mode 100644 index 0000000000..9c7d8fdd4d --- /dev/null +++ b/model/omniorder/TaobaoOmniitemClassifyStoreBatchOperateAPIRequest.go @@ -0,0 +1,94 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量添加/删除门店和分类的关联关系 API请求 +taobao.omniitem.classify.store.batch.operate + +批量添加/删除门店和分类的关联关系 +*/ +type TaobaoOmniitemClassifyStoreBatchOperateAPIRequest struct { + model.Params + // 商家门店ID + _storeIds []int64 + // 需要添加的分类ID + _addCategoryIds []int64 + // 需要删除的分类ID + _removeCategoryIds []int64 + // 操作信息(暂时不填) + _operator string +} + +// 初始化TaobaoOmniitemClassifyStoreBatchOperateAPIRequest对象 +func NewTaobaoOmniitemClassifyStoreBatchOperateRequest() *TaobaoOmniitemClassifyStoreBatchOperateAPIRequest{ + return &TaobaoOmniitemClassifyStoreBatchOperateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniitemClassifyStoreBatchOperateAPIRequest) GetApiMethodName() string { + return "taobao.omniitem.classify.store.batch.operate" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniitemClassifyStoreBatchOperateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreIds Setter +// 商家门店ID +func (r *TaobaoOmniitemClassifyStoreBatchOperateAPIRequest) SetStoreIds(_storeIds []int64) error { + r._storeIds = _storeIds + r.Set("store_ids", _storeIds) + return nil +} + +// StoreIds Getter +func (r TaobaoOmniitemClassifyStoreBatchOperateAPIRequest) GetStoreIds() []int64 { + return r._storeIds +} +// AddCategoryIds Setter +// 需要添加的分类ID +func (r *TaobaoOmniitemClassifyStoreBatchOperateAPIRequest) SetAddCategoryIds(_addCategoryIds []int64) error { + r._addCategoryIds = _addCategoryIds + r.Set("add_category_ids", _addCategoryIds) + return nil +} + +// AddCategoryIds Getter +func (r TaobaoOmniitemClassifyStoreBatchOperateAPIRequest) GetAddCategoryIds() []int64 { + return r._addCategoryIds +} +// RemoveCategoryIds Setter +// 需要删除的分类ID +func (r *TaobaoOmniitemClassifyStoreBatchOperateAPIRequest) SetRemoveCategoryIds(_removeCategoryIds []int64) error { + r._removeCategoryIds = _removeCategoryIds + r.Set("remove_category_ids", _removeCategoryIds) + return nil +} + +// RemoveCategoryIds Getter +func (r TaobaoOmniitemClassifyStoreBatchOperateAPIRequest) GetRemoveCategoryIds() []int64 { + return r._removeCategoryIds +} +// Operator Setter +// 操作信息(暂时不填) +func (r *TaobaoOmniitemClassifyStoreBatchOperateAPIRequest) SetOperator(_operator string) error { + r._operator = _operator + r.Set("operator", _operator) + return nil +} + +// Operator Getter +func (r TaobaoOmniitemClassifyStoreBatchOperateAPIRequest) GetOperator() string { + return r._operator +} diff --git a/model/omniorder/TaobaoOmniitemClassifyStoreBatchOperateAPIResponse.go b/model/omniorder/TaobaoOmniitemClassifyStoreBatchOperateAPIResponse.go new file mode 100644 index 0000000000..c3f71aecd2 --- /dev/null +++ b/model/omniorder/TaobaoOmniitemClassifyStoreBatchOperateAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量添加/删除门店和分类的关联关系 API返回值 +taobao.omniitem.classify.store.batch.operate + +批量添加/删除门店和分类的关联关系 +*/ +type TaobaoOmniitemClassifyStoreBatchOperateAPIResponse struct { + model.CommonResponse + TaobaoOmniitemClassifyStoreBatchOperateAPIResponseModel +} + +// 批量添加/删除门店和分类的关联关系 成功返回结果 +type TaobaoOmniitemClassifyStoreBatchOperateAPIResponseModel struct { + XMLName xml.Name `xml:"omniitem_classify_store_batch_operate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniitemClassifyStoreBatchOperateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniitemClassifyStoreBatchOperateResponse.go b/model/omniorder/TaobaoOmniitemClassifyStoreBatchOperateResponse.go deleted file mode 100644 index 98a9738657..0000000000 --- a/model/omniorder/TaobaoOmniitemClassifyStoreBatchOperateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量添加/删除门店和分类的关联关系 API返回值 -taobao.omniitem.classify.store.batch.operate - -批量添加/删除门店和分类的关联关系 -*/ -type TaobaoOmniitemClassifyStoreBatchOperateAPIResponse struct { - model.CommonResponse - TaobaoOmniitemClassifyStoreBatchOperateResponse -} - -// 批量添加/删除门店和分类的关联关系 成功返回结果 -type TaobaoOmniitemClassifyStoreBatchOperateResponse struct { - XMLName xml.Name `xml:"omniitem_classify_store_batch_operate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniitemClassifyStoreBatchOperateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniitemClassifyStoreQueryAPIRequest.go b/model/omniorder/TaobaoOmniitemClassifyStoreQueryAPIRequest.go new file mode 100644 index 0000000000..2698c3e708 --- /dev/null +++ b/model/omniorder/TaobaoOmniitemClassifyStoreQueryAPIRequest.go @@ -0,0 +1,80 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据门店查分类信息 API请求 +taobao.omniitem.classify.store.query + +根据门店查分类信息 +*/ +type TaobaoOmniitemClassifyStoreQueryAPIRequest struct { + model.Params + // 商户的门店ID + _storeId int64 + // 页码 + _pageNum int64 + // 每页大小 + _pageSize int64 +} + +// 初始化TaobaoOmniitemClassifyStoreQueryAPIRequest对象 +func NewTaobaoOmniitemClassifyStoreQueryRequest() *TaobaoOmniitemClassifyStoreQueryAPIRequest{ + return &TaobaoOmniitemClassifyStoreQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniitemClassifyStoreQueryAPIRequest) GetApiMethodName() string { + return "taobao.omniitem.classify.store.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniitemClassifyStoreQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 商户的门店ID +func (r *TaobaoOmniitemClassifyStoreQueryAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoOmniitemClassifyStoreQueryAPIRequest) GetStoreId() int64 { + return r._storeId +} +// PageNum Setter +// 页码 +func (r *TaobaoOmniitemClassifyStoreQueryAPIRequest) SetPageNum(_pageNum int64) error { + r._pageNum = _pageNum + r.Set("page_num", _pageNum) + return nil +} + +// PageNum Getter +func (r TaobaoOmniitemClassifyStoreQueryAPIRequest) GetPageNum() int64 { + return r._pageNum +} +// PageSize Setter +// 每页大小 +func (r *TaobaoOmniitemClassifyStoreQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoOmniitemClassifyStoreQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/omniorder/TaobaoOmniitemClassifyStoreQueryAPIResponse.go b/model/omniorder/TaobaoOmniitemClassifyStoreQueryAPIResponse.go new file mode 100644 index 0000000000..d8d39c1050 --- /dev/null +++ b/model/omniorder/TaobaoOmniitemClassifyStoreQueryAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据门店查分类信息 API返回值 +taobao.omniitem.classify.store.query + +根据门店查分类信息 +*/ +type TaobaoOmniitemClassifyStoreQueryAPIResponse struct { + model.CommonResponse + TaobaoOmniitemClassifyStoreQueryAPIResponseModel +} + +// 根据门店查分类信息 成功返回结果 +type TaobaoOmniitemClassifyStoreQueryAPIResponseModel struct { + XMLName xml.Name `xml:"omniitem_classify_store_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniitemClassifyStoreQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniitemClassifyStoreQueryResponse.go b/model/omniorder/TaobaoOmniitemClassifyStoreQueryResponse.go deleted file mode 100644 index 55274e1191..0000000000 --- a/model/omniorder/TaobaoOmniitemClassifyStoreQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据门店查分类信息 API返回值 -taobao.omniitem.classify.store.query - -根据门店查分类信息 -*/ -type TaobaoOmniitemClassifyStoreQueryAPIResponse struct { - model.CommonResponse - TaobaoOmniitemClassifyStoreQueryResponse -} - -// 根据门店查分类信息 成功返回结果 -type TaobaoOmniitemClassifyStoreQueryResponse struct { - XMLName xml.Name `xml:"omniitem_classify_store_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniitemClassifyStoreQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniitemItemDeleteAPIRequest.go b/model/omniorder/TaobaoOmniitemItemDeleteAPIRequest.go new file mode 100644 index 0000000000..5ddd301770 --- /dev/null +++ b/model/omniorder/TaobaoOmniitemItemDeleteAPIRequest.go @@ -0,0 +1,80 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道商品删除 API请求 +taobao.omniitem.item.delete + +全渠道商品删除,能够对门店商品库商品进行删除动作 +*/ +type TaobaoOmniitemItemDeleteAPIRequest struct { + model.Params + // 条形码 + _barCode string + // 商品ID,若填入则以该字段为准,否则以outerId+barcode为准 + _itemId int64 + // 商品outerId + _outerId string +} + +// 初始化TaobaoOmniitemItemDeleteAPIRequest对象 +func NewTaobaoOmniitemItemDeleteRequest() *TaobaoOmniitemItemDeleteAPIRequest{ + return &TaobaoOmniitemItemDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniitemItemDeleteAPIRequest) GetApiMethodName() string { + return "taobao.omniitem.item.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniitemItemDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BarCode Setter +// 条形码 +func (r *TaobaoOmniitemItemDeleteAPIRequest) SetBarCode(_barCode string) error { + r._barCode = _barCode + r.Set("bar_code", _barCode) + return nil +} + +// BarCode Getter +func (r TaobaoOmniitemItemDeleteAPIRequest) GetBarCode() string { + return r._barCode +} +// ItemId Setter +// 商品ID,若填入则以该字段为准,否则以outerId+barcode为准 +func (r *TaobaoOmniitemItemDeleteAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoOmniitemItemDeleteAPIRequest) GetItemId() int64 { + return r._itemId +} +// OuterId Setter +// 商品outerId +func (r *TaobaoOmniitemItemDeleteAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoOmniitemItemDeleteAPIRequest) GetOuterId() string { + return r._outerId +} diff --git a/model/omniorder/TaobaoOmniitemItemDeleteAPIResponse.go b/model/omniorder/TaobaoOmniitemItemDeleteAPIResponse.go new file mode 100644 index 0000000000..45d0d1f411 --- /dev/null +++ b/model/omniorder/TaobaoOmniitemItemDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道商品删除 API返回值 +taobao.omniitem.item.delete + +全渠道商品删除,能够对门店商品库商品进行删除动作 +*/ +type TaobaoOmniitemItemDeleteAPIResponse struct { + model.CommonResponse + TaobaoOmniitemItemDeleteAPIResponseModel +} + +// 全渠道商品删除 成功返回结果 +type TaobaoOmniitemItemDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"omniitem_item_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniitemItemDeleteResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniitemItemDeleteResponse.go b/model/omniorder/TaobaoOmniitemItemDeleteResponse.go deleted file mode 100644 index c6879f82e2..0000000000 --- a/model/omniorder/TaobaoOmniitemItemDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -全渠道商品删除 API返回值 -taobao.omniitem.item.delete - -全渠道商品删除,能够对门店商品库商品进行删除动作 -*/ -type TaobaoOmniitemItemDeleteAPIResponse struct { - model.CommonResponse - TaobaoOmniitemItemDeleteResponse -} - -// 全渠道商品删除 成功返回结果 -type TaobaoOmniitemItemDeleteResponse struct { - XMLName xml.Name `xml:"omniitem_item_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniitemItemDeleteResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniitemItemFullupdateAPIRequest.go b/model/omniorder/TaobaoOmniitemItemFullupdateAPIRequest.go new file mode 100644 index 0000000000..2bbceb513f --- /dev/null +++ b/model/omniorder/TaobaoOmniitemItemFullupdateAPIRequest.go @@ -0,0 +1,68 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道商品全量更新 API请求 +taobao.omniitem.item.fullupdate + +全渠道商品全量更新,仅适用于全渠道门店商品 +需要全量传入商品相关所有参数,更新时会根据传入的字段进行全量更新 +对于SKU信息,会以skus对象进行判断,若传入的skus对象的sku为商品之前未包含的,则新增SKU,如果原先商品有该sku但现在没有传,则删除该SKU。所有传入的SKU信息要么全部均传入skuId,要么全部都不传入skuId。对于新增SKU的场景,目前无需传入SKUID,会根据传入的销售属性自动对应 +*/ +type TaobaoOmniitemItemFullupdateAPIRequest struct { + model.Params + // 发布商品信息 + _lightPublishInfo *ItemLightPublishDto + // 操作类型,STORE表示门店域新增,ALL表示全域新增 + _operateType string +} + +// 初始化TaobaoOmniitemItemFullupdateAPIRequest对象 +func NewTaobaoOmniitemItemFullupdateRequest() *TaobaoOmniitemItemFullupdateAPIRequest{ + return &TaobaoOmniitemItemFullupdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniitemItemFullupdateAPIRequest) GetApiMethodName() string { + return "taobao.omniitem.item.fullupdate" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniitemItemFullupdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LightPublishInfo Setter +// 发布商品信息 +func (r *TaobaoOmniitemItemFullupdateAPIRequest) SetLightPublishInfo(_lightPublishInfo *ItemLightPublishDto) error { + r._lightPublishInfo = _lightPublishInfo + r.Set("light_publish_info", _lightPublishInfo) + return nil +} + +// LightPublishInfo Getter +func (r TaobaoOmniitemItemFullupdateAPIRequest) GetLightPublishInfo() *ItemLightPublishDto { + return r._lightPublishInfo +} +// OperateType Setter +// 操作类型,STORE表示门店域新增,ALL表示全域新增 +func (r *TaobaoOmniitemItemFullupdateAPIRequest) SetOperateType(_operateType string) error { + r._operateType = _operateType + r.Set("operate_type", _operateType) + return nil +} + +// OperateType Getter +func (r TaobaoOmniitemItemFullupdateAPIRequest) GetOperateType() string { + return r._operateType +} diff --git a/model/omniorder/TaobaoOmniitemItemFullupdateAPIResponse.go b/model/omniorder/TaobaoOmniitemItemFullupdateAPIResponse.go new file mode 100644 index 0000000000..fa7693488d --- /dev/null +++ b/model/omniorder/TaobaoOmniitemItemFullupdateAPIResponse.go @@ -0,0 +1,29 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道商品全量更新 API返回值 +taobao.omniitem.item.fullupdate + +全渠道商品全量更新,仅适用于全渠道门店商品 +需要全量传入商品相关所有参数,更新时会根据传入的字段进行全量更新 +对于SKU信息,会以skus对象进行判断,若传入的skus对象的sku为商品之前未包含的,则新增SKU,如果原先商品有该sku但现在没有传,则删除该SKU。所有传入的SKU信息要么全部均传入skuId,要么全部都不传入skuId。对于新增SKU的场景,目前无需传入SKUID,会根据传入的销售属性自动对应 +*/ +type TaobaoOmniitemItemFullupdateAPIResponse struct { + model.CommonResponse + TaobaoOmniitemItemFullupdateAPIResponseModel +} + +// 全渠道商品全量更新 成功返回结果 +type TaobaoOmniitemItemFullupdateAPIResponseModel struct { + XMLName xml.Name `xml:"omniitem_item_fullupdate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoOmniitemItemFullupdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniitemItemFullupdateResponse.go b/model/omniorder/TaobaoOmniitemItemFullupdateResponse.go deleted file mode 100644 index f12b795be5..0000000000 --- a/model/omniorder/TaobaoOmniitemItemFullupdateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -全渠道商品全量更新 API返回值 -taobao.omniitem.item.fullupdate - -全渠道商品全量更新,仅适用于全渠道门店商品 -需要全量传入商品相关所有参数,更新时会根据传入的字段进行全量更新 -对于SKU信息,会以skus对象进行判断,若传入的skus对象的sku为商品之前未包含的,则新增SKU,如果原先商品有该sku但现在没有传,则删除该SKU。所有传入的SKU信息要么全部均传入skuId,要么全部都不传入skuId。对于新增SKU的场景,目前无需传入SKUID,会根据传入的销售属性自动对应 -*/ -type TaobaoOmniitemItemFullupdateAPIResponse struct { - model.CommonResponse - TaobaoOmniitemItemFullupdateResponse -} - -// 全渠道商品全量更新 成功返回结果 -type TaobaoOmniitemItemFullupdateResponse struct { - XMLName xml.Name `xml:"omniitem_item_fullupdate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoOmniitemItemFullupdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniitemItemGetAPIRequest.go b/model/omniorder/TaobaoOmniitemItemGetAPIRequest.go new file mode 100644 index 0000000000..980cc6b3b6 --- /dev/null +++ b/model/omniorder/TaobaoOmniitemItemGetAPIRequest.go @@ -0,0 +1,94 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取全渠道门店商品 API请求 +taobao.omniitem.item.get + +通过门店id/类目id/商品id单个或多个参数组合查询全渠道门店商品信息 +*/ +type TaobaoOmniitemItemGetAPIRequest struct { + model.Params + // 分页当前页数 + _pageNo int64 + // 分页单页大小 + _pageSize int64 + // 可选,指定获取的商品id + _itemId int64 + // 可选,指定获取的商品外部id + _outerId string +} + +// 初始化TaobaoOmniitemItemGetAPIRequest对象 +func NewTaobaoOmniitemItemGetRequest() *TaobaoOmniitemItemGetAPIRequest{ + return &TaobaoOmniitemItemGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniitemItemGetAPIRequest) GetApiMethodName() string { + return "taobao.omniitem.item.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniitemItemGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageNo Setter +// 分页当前页数 +func (r *TaobaoOmniitemItemGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoOmniitemItemGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 分页单页大小 +func (r *TaobaoOmniitemItemGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoOmniitemItemGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// ItemId Setter +// 可选,指定获取的商品id +func (r *TaobaoOmniitemItemGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoOmniitemItemGetAPIRequest) GetItemId() int64 { + return r._itemId +} +// OuterId Setter +// 可选,指定获取的商品外部id +func (r *TaobaoOmniitemItemGetAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoOmniitemItemGetAPIRequest) GetOuterId() string { + return r._outerId +} diff --git a/model/omniorder/TaobaoOmniitemItemGetAPIResponse.go b/model/omniorder/TaobaoOmniitemItemGetAPIResponse.go new file mode 100644 index 0000000000..5e1b43409f --- /dev/null +++ b/model/omniorder/TaobaoOmniitemItemGetAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取全渠道门店商品 API返回值 +taobao.omniitem.item.get + +通过门店id/类目id/商品id单个或多个参数组合查询全渠道门店商品信息 +*/ +type TaobaoOmniitemItemGetAPIResponse struct { + model.CommonResponse + TaobaoOmniitemItemGetAPIResponseModel +} + +// 获取全渠道门店商品 成功返回结果 +type TaobaoOmniitemItemGetAPIResponseModel struct { + XMLName xml.Name `xml:"omniitem_item_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniitemItemGetResponse.go b/model/omniorder/TaobaoOmniitemItemGetResponse.go deleted file mode 100644 index 6a8582cbfa..0000000000 --- a/model/omniorder/TaobaoOmniitemItemGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取全渠道门店商品 API返回值 -taobao.omniitem.item.get - -通过门店id/类目id/商品id单个或多个参数组合查询全渠道门店商品信息 -*/ -type TaobaoOmniitemItemGetAPIResponse struct { - model.CommonResponse - TaobaoOmniitemItemGetResponse -} - -// 获取全渠道门店商品 成功返回结果 -type TaobaoOmniitemItemGetResponse struct { - XMLName xml.Name `xml:"omniitem_item_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniitemItemImageUploadAPIRequest.go b/model/omniorder/TaobaoOmniitemItemImageUploadAPIRequest.go new file mode 100644 index 0000000000..239c3cf63b --- /dev/null +++ b/model/omniorder/TaobaoOmniitemItemImageUploadAPIRequest.go @@ -0,0 +1,122 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道商品上传图片 API请求 +taobao.omniitem.item.image.upload + +全渠道商品上传图片 +*/ +type TaobaoOmniitemItemImageUploadAPIRequest struct { + model.Params + // 商品图片信息,允许png、jpg、gif图片格式,3M以内 + _img *model.File + // 条形码 + _barCode string + // 商品ID,若填入商品ID则以商品ID为准,否则以outerId/barCode为准 + _itemId int64 + // 商品outerId + _outerId string + // 是否为主图 + _major bool + // 图片顺序 + _position int64 +} + +// 初始化TaobaoOmniitemItemImageUploadAPIRequest对象 +func NewTaobaoOmniitemItemImageUploadRequest() *TaobaoOmniitemItemImageUploadAPIRequest{ + return &TaobaoOmniitemItemImageUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniitemItemImageUploadAPIRequest) GetApiMethodName() string { + return "taobao.omniitem.item.image.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniitemItemImageUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Img Setter +// 商品图片信息,允许png、jpg、gif图片格式,3M以内 +func (r *TaobaoOmniitemItemImageUploadAPIRequest) SetImg(_img *model.File) error { + r._img = _img + r.Set("img", _img) + return nil +} + +// Img Getter +func (r TaobaoOmniitemItemImageUploadAPIRequest) GetImg() *model.File { + return r._img +} +// BarCode Setter +// 条形码 +func (r *TaobaoOmniitemItemImageUploadAPIRequest) SetBarCode(_barCode string) error { + r._barCode = _barCode + r.Set("bar_code", _barCode) + return nil +} + +// BarCode Getter +func (r TaobaoOmniitemItemImageUploadAPIRequest) GetBarCode() string { + return r._barCode +} +// ItemId Setter +// 商品ID,若填入商品ID则以商品ID为准,否则以outerId/barCode为准 +func (r *TaobaoOmniitemItemImageUploadAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoOmniitemItemImageUploadAPIRequest) GetItemId() int64 { + return r._itemId +} +// OuterId Setter +// 商品outerId +func (r *TaobaoOmniitemItemImageUploadAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoOmniitemItemImageUploadAPIRequest) GetOuterId() string { + return r._outerId +} +// Major Setter +// 是否为主图 +func (r *TaobaoOmniitemItemImageUploadAPIRequest) SetMajor(_major bool) error { + r._major = _major + r.Set("major", _major) + return nil +} + +// Major Getter +func (r TaobaoOmniitemItemImageUploadAPIRequest) GetMajor() bool { + return r._major +} +// Position Setter +// 图片顺序 +func (r *TaobaoOmniitemItemImageUploadAPIRequest) SetPosition(_position int64) error { + r._position = _position + r.Set("position", _position) + return nil +} + +// Position Getter +func (r TaobaoOmniitemItemImageUploadAPIRequest) GetPosition() int64 { + return r._position +} diff --git a/model/omniorder/TaobaoOmniitemItemImageUploadAPIResponse.go b/model/omniorder/TaobaoOmniitemItemImageUploadAPIResponse.go new file mode 100644 index 0000000000..dce3a8d6b6 --- /dev/null +++ b/model/omniorder/TaobaoOmniitemItemImageUploadAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道商品上传图片 API返回值 +taobao.omniitem.item.image.upload + +全渠道商品上传图片 +*/ +type TaobaoOmniitemItemImageUploadAPIResponse struct { + model.CommonResponse + TaobaoOmniitemItemImageUploadAPIResponseModel +} + +// 全渠道商品上传图片 成功返回结果 +type TaobaoOmniitemItemImageUploadAPIResponseModel struct { + XMLName xml.Name `xml:"omniitem_item_image_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniitemItemImageUploadResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniitemItemImageUploadResponse.go b/model/omniorder/TaobaoOmniitemItemImageUploadResponse.go deleted file mode 100644 index 39f189467c..0000000000 --- a/model/omniorder/TaobaoOmniitemItemImageUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -全渠道商品上传图片 API返回值 -taobao.omniitem.item.image.upload - -全渠道商品上传图片 -*/ -type TaobaoOmniitemItemImageUploadAPIResponse struct { - model.CommonResponse - TaobaoOmniitemItemImageUploadResponse -} - -// 全渠道商品上传图片 成功返回结果 -type TaobaoOmniitemItemImageUploadResponse struct { - XMLName xml.Name `xml:"omniitem_item_image_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniitemItemImageUploadResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniitemItemPublishAPIRequest.go b/model/omniorder/TaobaoOmniitemItemPublishAPIRequest.go new file mode 100644 index 0000000000..96f8fe622d --- /dev/null +++ b/model/omniorder/TaobaoOmniitemItemPublishAPIRequest.go @@ -0,0 +1,66 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道门店商品轻发布 API请求 +taobao.omniitem.item.publish + +全渠道门店商品轻发布 +*/ +type TaobaoOmniitemItemPublishAPIRequest struct { + model.Params + // 发布商品信息 + _lightPublishInfo *ItemLightPublishDto + // 在全域商品或是门店商品中校验码是否重复,可选值对应为ALL或者STORE + _operateType string +} + +// 初始化TaobaoOmniitemItemPublishAPIRequest对象 +func NewTaobaoOmniitemItemPublishRequest() *TaobaoOmniitemItemPublishAPIRequest{ + return &TaobaoOmniitemItemPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniitemItemPublishAPIRequest) GetApiMethodName() string { + return "taobao.omniitem.item.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniitemItemPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LightPublishInfo Setter +// 发布商品信息 +func (r *TaobaoOmniitemItemPublishAPIRequest) SetLightPublishInfo(_lightPublishInfo *ItemLightPublishDto) error { + r._lightPublishInfo = _lightPublishInfo + r.Set("light_publish_info", _lightPublishInfo) + return nil +} + +// LightPublishInfo Getter +func (r TaobaoOmniitemItemPublishAPIRequest) GetLightPublishInfo() *ItemLightPublishDto { + return r._lightPublishInfo +} +// OperateType Setter +// 在全域商品或是门店商品中校验码是否重复,可选值对应为ALL或者STORE +func (r *TaobaoOmniitemItemPublishAPIRequest) SetOperateType(_operateType string) error { + r._operateType = _operateType + r.Set("operate_type", _operateType) + return nil +} + +// OperateType Getter +func (r TaobaoOmniitemItemPublishAPIRequest) GetOperateType() string { + return r._operateType +} diff --git a/model/omniorder/TaobaoOmniitemItemPublishAPIResponse.go b/model/omniorder/TaobaoOmniitemItemPublishAPIResponse.go new file mode 100644 index 0000000000..b0bb146676 --- /dev/null +++ b/model/omniorder/TaobaoOmniitemItemPublishAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道门店商品轻发布 API返回值 +taobao.omniitem.item.publish + +全渠道门店商品轻发布 +*/ +type TaobaoOmniitemItemPublishAPIResponse struct { + model.CommonResponse + TaobaoOmniitemItemPublishAPIResponseModel +} + +// 全渠道门店商品轻发布 成功返回结果 +type TaobaoOmniitemItemPublishAPIResponseModel struct { + XMLName xml.Name `xml:"omniitem_item_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoOmniitemItemPublishResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniitemItemPublishResponse.go b/model/omniorder/TaobaoOmniitemItemPublishResponse.go deleted file mode 100644 index 38f723524c..0000000000 --- a/model/omniorder/TaobaoOmniitemItemPublishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -全渠道门店商品轻发布 API返回值 -taobao.omniitem.item.publish - -全渠道门店商品轻发布 -*/ -type TaobaoOmniitemItemPublishAPIResponse struct { - model.CommonResponse - TaobaoOmniitemItemPublishResponse -} - -// 全渠道门店商品轻发布 成功返回结果 -type TaobaoOmniitemItemPublishResponse struct { - XMLName xml.Name `xml:"omniitem_item_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoOmniitemItemPublishResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniitemSkuGetAPIRequest.go b/model/omniorder/TaobaoOmniitemSkuGetAPIRequest.go new file mode 100644 index 0000000000..948eef60be --- /dev/null +++ b/model/omniorder/TaobaoOmniitemSkuGetAPIRequest.go @@ -0,0 +1,80 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取全渠道门店商品sku API请求 +taobao.omniitem.sku.get + +通过skuId或者skuOutId查询全渠道门店商品sku信息 +*/ +type TaobaoOmniitemSkuGetAPIRequest struct { + model.Params + // 商品id + _itemId int64 + // skuId + _skuId int64 + // sku商家编码 + _skuOuterId string +} + +// 初始化TaobaoOmniitemSkuGetAPIRequest对象 +func NewTaobaoOmniitemSkuGetRequest() *TaobaoOmniitemSkuGetAPIRequest{ + return &TaobaoOmniitemSkuGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniitemSkuGetAPIRequest) GetApiMethodName() string { + return "taobao.omniitem.sku.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniitemSkuGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TaobaoOmniitemSkuGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoOmniitemSkuGetAPIRequest) GetItemId() int64 { + return r._itemId +} +// SkuId Setter +// skuId +func (r *TaobaoOmniitemSkuGetAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TaobaoOmniitemSkuGetAPIRequest) GetSkuId() int64 { + return r._skuId +} +// SkuOuterId Setter +// sku商家编码 +func (r *TaobaoOmniitemSkuGetAPIRequest) SetSkuOuterId(_skuOuterId string) error { + r._skuOuterId = _skuOuterId + r.Set("sku_outer_id", _skuOuterId) + return nil +} + +// SkuOuterId Getter +func (r TaobaoOmniitemSkuGetAPIRequest) GetSkuOuterId() string { + return r._skuOuterId +} diff --git a/model/omniorder/TaobaoOmniitemSkuGetAPIResponse.go b/model/omniorder/TaobaoOmniitemSkuGetAPIResponse.go new file mode 100644 index 0000000000..711cbf8a1d --- /dev/null +++ b/model/omniorder/TaobaoOmniitemSkuGetAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取全渠道门店商品sku API返回值 +taobao.omniitem.sku.get + +通过skuId或者skuOutId查询全渠道门店商品sku信息 +*/ +type TaobaoOmniitemSkuGetAPIResponse struct { + model.CommonResponse + TaobaoOmniitemSkuGetAPIResponseModel +} + +// 获取全渠道门店商品sku 成功返回结果 +type TaobaoOmniitemSkuGetAPIResponseModel struct { + XMLName xml.Name `xml:"omniitem_sku_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoOmniitemSkuGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniitemSkuGetResponse.go b/model/omniorder/TaobaoOmniitemSkuGetResponse.go deleted file mode 100644 index 0008d57cb5..0000000000 --- a/model/omniorder/TaobaoOmniitemSkuGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取全渠道门店商品sku API返回值 -taobao.omniitem.sku.get - -通过skuId或者skuOutId查询全渠道门店商品sku信息 -*/ -type TaobaoOmniitemSkuGetAPIResponse struct { - model.CommonResponse - TaobaoOmniitemSkuGetResponse -} - -// 获取全渠道门店商品sku 成功返回结果 -type TaobaoOmniitemSkuGetResponse struct { - XMLName xml.Name `xml:"omniitem_sku_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoOmniitemSkuGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderAllocatedinfoSyncAPIRequest.go b/model/omniorder/TaobaoOmniorderAllocatedinfoSyncAPIRequest.go new file mode 100644 index 0000000000..c0fe991c6b --- /dev/null +++ b/model/omniorder/TaobaoOmniorderAllocatedinfoSyncAPIRequest.go @@ -0,0 +1,122 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分单结果同步给星盘 API请求 +taobao.omniorder.allocatedinfo.sync + +ISV分单完成,将分单结果同步给星盘 +*/ +type TaobaoOmniorderAllocatedinfoSyncAPIRequest struct { + model.Params + // 淘宝交易主订单ID + _tid int64 + // 分单状态,如: 等待中(Waiting),已分单(Allocated),分单失败(AllocateFail) + _status string + // 分单结果消息, 如果status为AllocateFail, 则表示失败的理由. + _message string + // 1231243213213 + _reportTimestamp int64 + // 门店的分单列表 + _subOrderList []StoreAllocatedResult + // 跟踪Id + _traceId string +} + +// 初始化TaobaoOmniorderAllocatedinfoSyncAPIRequest对象 +func NewTaobaoOmniorderAllocatedinfoSyncRequest() *TaobaoOmniorderAllocatedinfoSyncAPIRequest{ + return &TaobaoOmniorderAllocatedinfoSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderAllocatedinfoSyncAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.allocatedinfo.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderAllocatedinfoSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 淘宝交易主订单ID +func (r *TaobaoOmniorderAllocatedinfoSyncAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoOmniorderAllocatedinfoSyncAPIRequest) GetTid() int64 { + return r._tid +} +// Status Setter +// 分单状态,如: 等待中(Waiting),已分单(Allocated),分单失败(AllocateFail) +func (r *TaobaoOmniorderAllocatedinfoSyncAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoOmniorderAllocatedinfoSyncAPIRequest) GetStatus() string { + return r._status +} +// Message Setter +// 分单结果消息, 如果status为AllocateFail, 则表示失败的理由. +func (r *TaobaoOmniorderAllocatedinfoSyncAPIRequest) SetMessage(_message string) error { + r._message = _message + r.Set("message", _message) + return nil +} + +// Message Getter +func (r TaobaoOmniorderAllocatedinfoSyncAPIRequest) GetMessage() string { + return r._message +} +// ReportTimestamp Setter +// 1231243213213 +func (r *TaobaoOmniorderAllocatedinfoSyncAPIRequest) SetReportTimestamp(_reportTimestamp int64) error { + r._reportTimestamp = _reportTimestamp + r.Set("report_timestamp", _reportTimestamp) + return nil +} + +// ReportTimestamp Getter +func (r TaobaoOmniorderAllocatedinfoSyncAPIRequest) GetReportTimestamp() int64 { + return r._reportTimestamp +} +// SubOrderList Setter +// 门店的分单列表 +func (r *TaobaoOmniorderAllocatedinfoSyncAPIRequest) SetSubOrderList(_subOrderList []StoreAllocatedResult) error { + r._subOrderList = _subOrderList + r.Set("sub_order_list", _subOrderList) + return nil +} + +// SubOrderList Getter +func (r TaobaoOmniorderAllocatedinfoSyncAPIRequest) GetSubOrderList() []StoreAllocatedResult { + return r._subOrderList +} +// TraceId Setter +// 跟踪Id +func (r *TaobaoOmniorderAllocatedinfoSyncAPIRequest) SetTraceId(_traceId string) error { + r._traceId = _traceId + r.Set("trace_id", _traceId) + return nil +} + +// TraceId Getter +func (r TaobaoOmniorderAllocatedinfoSyncAPIRequest) GetTraceId() string { + return r._traceId +} diff --git a/model/omniorder/TaobaoOmniorderAllocatedinfoSyncAPIResponse.go b/model/omniorder/TaobaoOmniorderAllocatedinfoSyncAPIResponse.go new file mode 100644 index 0000000000..6798532681 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderAllocatedinfoSyncAPIResponse.go @@ -0,0 +1,29 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分单结果同步给星盘 API返回值 +taobao.omniorder.allocatedinfo.sync + +ISV分单完成,将分单结果同步给星盘 +*/ +type TaobaoOmniorderAllocatedinfoSyncAPIResponse struct { + model.CommonResponse + TaobaoOmniorderAllocatedinfoSyncAPIResponseModel +} + +// 分单结果同步给星盘 成功返回结果 +type TaobaoOmniorderAllocatedinfoSyncAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_allocatedinfo_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 错误内容 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderAllocatedinfoSyncResponse.go b/model/omniorder/TaobaoOmniorderAllocatedinfoSyncResponse.go deleted file mode 100644 index f01b948a69..0000000000 --- a/model/omniorder/TaobaoOmniorderAllocatedinfoSyncResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分单结果同步给星盘 API返回值 -taobao.omniorder.allocatedinfo.sync - -ISV分单完成,将分单结果同步给星盘 -*/ -type TaobaoOmniorderAllocatedinfoSyncAPIResponse struct { - model.CommonResponse - TaobaoOmniorderAllocatedinfoSyncResponse -} - -// 分单结果同步给星盘 成功返回结果 -type TaobaoOmniorderAllocatedinfoSyncResponse struct { - XMLName xml.Name `xml:"omniorder_allocatedinfo_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` - // 错误内容 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderDtdConsignAPIRequest.go b/model/omniorder/TaobaoOmniorderDtdConsignAPIRequest.go new file mode 100644 index 0000000000..f763357e28 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderDtdConsignAPIRequest.go @@ -0,0 +1,66 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店自送发货 API请求 +taobao.omniorder.dtd.consign + +该接口触发门店自送发货,推进淘系订单状态为发货,为消费者发送核销码短信,并将物流信息写入订单 +*/ +type TaobaoOmniorderDtdConsignAPIRequest struct { + model.Params + // 淘宝订单主订单号 + _mainOrderId int64 + // 发货对应的商户中心门店ID + _storeId int64 +} + +// 初始化TaobaoOmniorderDtdConsignAPIRequest对象 +func NewTaobaoOmniorderDtdConsignRequest() *TaobaoOmniorderDtdConsignAPIRequest{ + return &TaobaoOmniorderDtdConsignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderDtdConsignAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.dtd.consign" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderDtdConsignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainOrderId Setter +// 淘宝订单主订单号 +func (r *TaobaoOmniorderDtdConsignAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r TaobaoOmniorderDtdConsignAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} +// StoreId Setter +// 发货对应的商户中心门店ID +func (r *TaobaoOmniorderDtdConsignAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoOmniorderDtdConsignAPIRequest) GetStoreId() int64 { + return r._storeId +} diff --git a/model/omniorder/TaobaoOmniorderDtdConsignAPIResponse.go b/model/omniorder/TaobaoOmniorderDtdConsignAPIResponse.go new file mode 100644 index 0000000000..6991867ac0 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderDtdConsignAPIResponse.go @@ -0,0 +1,29 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店自送发货 API返回值 +taobao.omniorder.dtd.consign + +该接口触发门店自送发货,推进淘系订单状态为发货,为消费者发送核销码短信,并将物流信息写入订单 +*/ +type TaobaoOmniorderDtdConsignAPIResponse struct { + model.CommonResponse + TaobaoOmniorderDtdConsignAPIResponseModel +} + +// 门店自送发货 成功返回结果 +type TaobaoOmniorderDtdConsignAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_dtd_consign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码,为0表示成功,非0表示失败 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderDtdConsignResponse.go b/model/omniorder/TaobaoOmniorderDtdConsignResponse.go deleted file mode 100644 index 505834cb40..0000000000 --- a/model/omniorder/TaobaoOmniorderDtdConsignResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店自送发货 API返回值 -taobao.omniorder.dtd.consign - -该接口触发门店自送发货,推进淘系订单状态为发货,为消费者发送核销码短信,并将物流信息写入订单 -*/ -type TaobaoOmniorderDtdConsignAPIResponse struct { - model.CommonResponse - TaobaoOmniorderDtdConsignResponse -} - -// 门店自送发货 成功返回结果 -type TaobaoOmniorderDtdConsignResponse struct { - XMLName xml.Name `xml:"omniorder_dtd_consign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码,为0表示成功,非0表示失败 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderDtdConsumeAPIRequest.go b/model/omniorder/TaobaoOmniorderDtdConsumeAPIRequest.go new file mode 100644 index 0000000000..819c189f54 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderDtdConsumeAPIRequest.go @@ -0,0 +1,52 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店自送对码进行核销 API请求 +taobao.omniorder.dtd.consume + +该接口根据传入的码及订单信息,如果码与订单一致,则对门店自送服务进行核销。 +*/ +type TaobaoOmniorderDtdConsumeAPIRequest struct { + model.Params + // 核销信息 + _paramDoor2doorConsumeRequest *Door2doorConsumeRequest +} + +// 初始化TaobaoOmniorderDtdConsumeAPIRequest对象 +func NewTaobaoOmniorderDtdConsumeRequest() *TaobaoOmniorderDtdConsumeAPIRequest{ + return &TaobaoOmniorderDtdConsumeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderDtdConsumeAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.dtd.consume" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderDtdConsumeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamDoor2doorConsumeRequest Setter +// 核销信息 +func (r *TaobaoOmniorderDtdConsumeAPIRequest) SetParamDoor2doorConsumeRequest(_paramDoor2doorConsumeRequest *Door2doorConsumeRequest) error { + r._paramDoor2doorConsumeRequest = _paramDoor2doorConsumeRequest + r.Set("param_door2door_consume_request", _paramDoor2doorConsumeRequest) + return nil +} + +// ParamDoor2doorConsumeRequest Getter +func (r TaobaoOmniorderDtdConsumeAPIRequest) GetParamDoor2doorConsumeRequest() *Door2doorConsumeRequest { + return r._paramDoor2doorConsumeRequest +} diff --git a/model/omniorder/TaobaoOmniorderDtdConsumeAPIResponse.go b/model/omniorder/TaobaoOmniorderDtdConsumeAPIResponse.go new file mode 100644 index 0000000000..5f53b6fafa --- /dev/null +++ b/model/omniorder/TaobaoOmniorderDtdConsumeAPIResponse.go @@ -0,0 +1,29 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店自送对码进行核销 API返回值 +taobao.omniorder.dtd.consume + +该接口根据传入的码及订单信息,如果码与订单一致,则对门店自送服务进行核销。 +*/ +type TaobaoOmniorderDtdConsumeAPIResponse struct { + model.CommonResponse + TaobaoOmniorderDtdConsumeAPIResponseModel +} + +// 门店自送对码进行核销 成功返回结果 +type TaobaoOmniorderDtdConsumeAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_dtd_consume_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码,为0表示成功,非0表示失败 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误西溪 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderDtdConsumeResponse.go b/model/omniorder/TaobaoOmniorderDtdConsumeResponse.go deleted file mode 100644 index 70653f3dbc..0000000000 --- a/model/omniorder/TaobaoOmniorderDtdConsumeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店自送对码进行核销 API返回值 -taobao.omniorder.dtd.consume - -该接口根据传入的码及订单信息,如果码与订单一致,则对门店自送服务进行核销。 -*/ -type TaobaoOmniorderDtdConsumeAPIResponse struct { - model.CommonResponse - TaobaoOmniorderDtdConsumeResponse -} - -// 门店自送对码进行核销 成功返回结果 -type TaobaoOmniorderDtdConsumeResponse struct { - XMLName xml.Name `xml:"omniorder_dtd_consume_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码,为0表示成功,非0表示失败 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误西溪 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderDtdQueryAPIRequest.go b/model/omniorder/TaobaoOmniorderDtdQueryAPIRequest.go new file mode 100644 index 0000000000..100006387e --- /dev/null +++ b/model/omniorder/TaobaoOmniorderDtdQueryAPIRequest.go @@ -0,0 +1,52 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店自送根据核销码查订单 API请求 +taobao.omniorder.dtd.query + +门店自送根据核销码码查询订单信息 +*/ +type TaobaoOmniorderDtdQueryAPIRequest struct { + model.Params + // 核销码 + _code string +} + +// 初始化TaobaoOmniorderDtdQueryAPIRequest对象 +func NewTaobaoOmniorderDtdQueryRequest() *TaobaoOmniorderDtdQueryAPIRequest{ + return &TaobaoOmniorderDtdQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderDtdQueryAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.dtd.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderDtdQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 核销码 +func (r *TaobaoOmniorderDtdQueryAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r TaobaoOmniorderDtdQueryAPIRequest) GetCode() string { + return r._code +} diff --git a/model/omniorder/TaobaoOmniorderDtdQueryAPIResponse.go b/model/omniorder/TaobaoOmniorderDtdQueryAPIResponse.go new file mode 100644 index 0000000000..eb33b2380b --- /dev/null +++ b/model/omniorder/TaobaoOmniorderDtdQueryAPIResponse.go @@ -0,0 +1,31 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店自送根据核销码查订单 API返回值 +taobao.omniorder.dtd.query + +门店自送根据核销码码查询订单信息 +*/ +type TaobaoOmniorderDtdQueryAPIResponse struct { + model.CommonResponse + TaobaoOmniorderDtdQueryAPIResponseModel +} + +// 门店自送根据核销码查订单 成功返回结果 +type TaobaoOmniorderDtdQueryAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_dtd_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码,为0表示成功,非0表示失败 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // data + Data *Door2doorQueryResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderDtdQueryResponse.go b/model/omniorder/TaobaoOmniorderDtdQueryResponse.go deleted file mode 100644 index 6439e0776d..0000000000 --- a/model/omniorder/TaobaoOmniorderDtdQueryResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店自送根据核销码查订单 API返回值 -taobao.omniorder.dtd.query - -门店自送根据核销码码查询订单信息 -*/ -type TaobaoOmniorderDtdQueryAPIResponse struct { - model.CommonResponse - TaobaoOmniorderDtdQueryResponse -} - -// 门店自送根据核销码查订单 成功返回结果 -type TaobaoOmniorderDtdQueryResponse struct { - XMLName xml.Name `xml:"omniorder_dtd_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码,为0表示成功,非0表示失败 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // data - Data *Door2doorQueryResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderDtdResendAPIRequest.go b/model/omniorder/TaobaoOmniorderDtdResendAPIRequest.go new file mode 100644 index 0000000000..68ad7e1d26 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderDtdResendAPIRequest.go @@ -0,0 +1,52 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店自送重发码 API请求 +taobao.omniorder.dtd.resend + +该接口触发对门店自送发码短信进行重发,码内容不变,接受码的手机号也不变。每个码限制每日重发一次,总共重发5次 +*/ +type TaobaoOmniorderDtdResendAPIRequest struct { + model.Params + // 淘宝主订单ID + _mainOrderId int64 +} + +// 初始化TaobaoOmniorderDtdResendAPIRequest对象 +func NewTaobaoOmniorderDtdResendRequest() *TaobaoOmniorderDtdResendAPIRequest{ + return &TaobaoOmniorderDtdResendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderDtdResendAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.dtd.resend" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderDtdResendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainOrderId Setter +// 淘宝主订单ID +func (r *TaobaoOmniorderDtdResendAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r TaobaoOmniorderDtdResendAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} diff --git a/model/omniorder/TaobaoOmniorderDtdResendAPIResponse.go b/model/omniorder/TaobaoOmniorderDtdResendAPIResponse.go new file mode 100644 index 0000000000..3a5f04ae19 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderDtdResendAPIResponse.go @@ -0,0 +1,29 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店自送重发码 API返回值 +taobao.omniorder.dtd.resend + +该接口触发对门店自送发码短信进行重发,码内容不变,接受码的手机号也不变。每个码限制每日重发一次,总共重发5次 +*/ +type TaobaoOmniorderDtdResendAPIResponse struct { + model.CommonResponse + TaobaoOmniorderDtdResendAPIResponseModel +} + +// 门店自送重发码 成功返回结果 +type TaobaoOmniorderDtdResendAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_dtd_resend_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码,为0表示成功,非0表示失败 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderDtdResendResponse.go b/model/omniorder/TaobaoOmniorderDtdResendResponse.go deleted file mode 100644 index fe878eb24d..0000000000 --- a/model/omniorder/TaobaoOmniorderDtdResendResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店自送重发码 API返回值 -taobao.omniorder.dtd.resend - -该接口触发对门店自送发码短信进行重发,码内容不变,接受码的手机号也不变。每个码限制每日重发一次,总共重发5次 -*/ -type TaobaoOmniorderDtdResendAPIResponse struct { - model.CommonResponse - TaobaoOmniorderDtdResendResponse -} - -// 门店自送重发码 成功返回结果 -type TaobaoOmniorderDtdResendResponse struct { - XMLName xml.Name `xml:"omniorder_dtd_resend_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码,为0表示成功,非0表示失败 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderGuideDataGetAPIRequest.go b/model/omniorder/TaobaoOmniorderGuideDataGetAPIRequest.go new file mode 100644 index 0000000000..d62c1fd9ca --- /dev/null +++ b/model/omniorder/TaobaoOmniorderGuideDataGetAPIRequest.go @@ -0,0 +1,94 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取全渠道导购产品数据 API请求 +taobao.omniorder.guide.data.get + +获取全渠道导购产品,目前包括随心购、随身购扫码、加购和交易数据。 +*/ +type TaobaoOmniorderGuideDataGetAPIRequest struct { + model.Params + // detail_smg_scan: 扫码购扫码明细;detail_smg_cart: 扫码购加购明细;detail_smg_order: 扫码购订单明细;detail_sxg_search: 随心购搜索明细;detail_sxg_view_item: 随心购商品浏览明细;detail_sxg_cart: 随心购加购明细;detail_sxg_order: 随心购订单明细 + _type string + // 拉取数据开始时间 + _startTime string + // 页码,从1开始 + _pageNo int64 + // 每页数量,不能大于1000 + _pageSize int64 +} + +// 初始化TaobaoOmniorderGuideDataGetAPIRequest对象 +func NewTaobaoOmniorderGuideDataGetRequest() *TaobaoOmniorderGuideDataGetAPIRequest{ + return &TaobaoOmniorderGuideDataGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderGuideDataGetAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.guide.data.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderGuideDataGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// detail_smg_scan: 扫码购扫码明细;detail_smg_cart: 扫码购加购明细;detail_smg_order: 扫码购订单明细;detail_sxg_search: 随心购搜索明细;detail_sxg_view_item: 随心购商品浏览明细;detail_sxg_cart: 随心购加购明细;detail_sxg_order: 随心购订单明细 +func (r *TaobaoOmniorderGuideDataGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoOmniorderGuideDataGetAPIRequest) GetType() string { + return r._type +} +// StartTime Setter +// 拉取数据开始时间 +func (r *TaobaoOmniorderGuideDataGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoOmniorderGuideDataGetAPIRequest) GetStartTime() string { + return r._startTime +} +// PageNo Setter +// 页码,从1开始 +func (r *TaobaoOmniorderGuideDataGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoOmniorderGuideDataGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页数量,不能大于1000 +func (r *TaobaoOmniorderGuideDataGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoOmniorderGuideDataGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/omniorder/TaobaoOmniorderGuideDataGetAPIResponse.go b/model/omniorder/TaobaoOmniorderGuideDataGetAPIResponse.go new file mode 100644 index 0000000000..005381ff52 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderGuideDataGetAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取全渠道导购产品数据 API返回值 +taobao.omniorder.guide.data.get + +获取全渠道导购产品,目前包括随心购、随身购扫码、加购和交易数据。 +*/ +type TaobaoOmniorderGuideDataGetAPIResponse struct { + model.CommonResponse + TaobaoOmniorderGuideDataGetAPIResponseModel +} + +// 获取全渠道导购产品数据 成功返回结果 +type TaobaoOmniorderGuideDataGetAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_guide_data_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 拉取的数据数组,如果为空,表示数据拉取完毕。拉取的数据字段包括打点时间、商家id、商品id和门店id等,传入的类型不同,返回的字段有所不同,可以根据具体类型的返回结果具体处理 + DataList []string `json:"data_list,omitempty" xml:"data_list>string,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderGuideDataGetResponse.go b/model/omniorder/TaobaoOmniorderGuideDataGetResponse.go deleted file mode 100644 index d79eef2b32..0000000000 --- a/model/omniorder/TaobaoOmniorderGuideDataGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取全渠道导购产品数据 API返回值 -taobao.omniorder.guide.data.get - -获取全渠道导购产品,目前包括随心购、随身购扫码、加购和交易数据。 -*/ -type TaobaoOmniorderGuideDataGetAPIResponse struct { - model.CommonResponse - TaobaoOmniorderGuideDataGetResponse -} - -// 获取全渠道导购产品数据 成功返回结果 -type TaobaoOmniorderGuideDataGetResponse struct { - XMLName xml.Name `xml:"omniorder_guide_data_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 拉取的数据数组,如果为空,表示数据拉取完毕。拉取的数据字段包括打点时间、商家id、商品id和门店id等,传入的类型不同,返回的字段有所不同,可以根据具体类型的返回结果具体处理 - DataList []string `json:"data_list,omitempty" xml:"data_list>string,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderItemTagOperateAPIRequest.go b/model/omniorder/TaobaoOmniorderItemTagOperateAPIRequest.go new file mode 100644 index 0000000000..c778ff85aa --- /dev/null +++ b/model/omniorder/TaobaoOmniorderItemTagOperateAPIRequest.go @@ -0,0 +1,94 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道商品打标与去标 API请求 +taobao.omniorder.item.tag.operate + +用于对全渠道商品进行打标、去标(门店发货标,门店自提标,前置拆单标)操作。另外还包括增加、删除、修改分单系统,接单系统配置。 +*/ +type TaobaoOmniorderItemTagOperateAPIRequest struct { + model.Params + // 商品ID + _itemId int64 + // 商品标,storeDeliver代表门店发货, AllocateByFront代表前置拆单, storeCollect代表门店自提 + _types []string + // 操作状态, 填 1 代表打标,填 -1 代表去标 + _status int64 + // 分单&接单设置 + _omniSetting *OmniSettingDto +} + +// 初始化TaobaoOmniorderItemTagOperateAPIRequest对象 +func NewTaobaoOmniorderItemTagOperateRequest() *TaobaoOmniorderItemTagOperateAPIRequest{ + return &TaobaoOmniorderItemTagOperateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderItemTagOperateAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.item.tag.operate" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderItemTagOperateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品ID +func (r *TaobaoOmniorderItemTagOperateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoOmniorderItemTagOperateAPIRequest) GetItemId() int64 { + return r._itemId +} +// Types Setter +// 商品标,storeDeliver代表门店发货, AllocateByFront代表前置拆单, storeCollect代表门店自提 +func (r *TaobaoOmniorderItemTagOperateAPIRequest) SetTypes(_types []string) error { + r._types = _types + r.Set("types", _types) + return nil +} + +// Types Getter +func (r TaobaoOmniorderItemTagOperateAPIRequest) GetTypes() []string { + return r._types +} +// Status Setter +// 操作状态, 填 1 代表打标,填 -1 代表去标 +func (r *TaobaoOmniorderItemTagOperateAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoOmniorderItemTagOperateAPIRequest) GetStatus() int64 { + return r._status +} +// OmniSetting Setter +// 分单&接单设置 +func (r *TaobaoOmniorderItemTagOperateAPIRequest) SetOmniSetting(_omniSetting *OmniSettingDto) error { + r._omniSetting = _omniSetting + r.Set("omni_setting", _omniSetting) + return nil +} + +// OmniSetting Getter +func (r TaobaoOmniorderItemTagOperateAPIRequest) GetOmniSetting() *OmniSettingDto { + return r._omniSetting +} diff --git a/model/omniorder/TaobaoOmniorderItemTagOperateAPIResponse.go b/model/omniorder/TaobaoOmniorderItemTagOperateAPIResponse.go new file mode 100644 index 0000000000..423f642264 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderItemTagOperateAPIResponse.go @@ -0,0 +1,29 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道商品打标与去标 API返回值 +taobao.omniorder.item.tag.operate + +用于对全渠道商品进行打标、去标(门店发货标,门店自提标,前置拆单标)操作。另外还包括增加、删除、修改分单系统,接单系统配置。 +*/ +type TaobaoOmniorderItemTagOperateAPIResponse struct { + model.CommonResponse + TaobaoOmniorderItemTagOperateAPIResponseModel +} + +// 全渠道商品打标与去标 成功返回结果 +type TaobaoOmniorderItemTagOperateAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_item_tag_operate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // code 不为 0时有值,代表异常信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 0 正常,否则异常 + Code string `json:"code,omitempty" xml:"code,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderItemTagOperateResponse.go b/model/omniorder/TaobaoOmniorderItemTagOperateResponse.go deleted file mode 100644 index f499ca9518..0000000000 --- a/model/omniorder/TaobaoOmniorderItemTagOperateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -全渠道商品打标与去标 API返回值 -taobao.omniorder.item.tag.operate - -用于对全渠道商品进行打标、去标(门店发货标,门店自提标,前置拆单标)操作。另外还包括增加、删除、修改分单系统,接单系统配置。 -*/ -type TaobaoOmniorderItemTagOperateAPIResponse struct { - model.CommonResponse - TaobaoOmniorderItemTagOperateResponse -} - -// 全渠道商品打标与去标 成功返回结果 -type TaobaoOmniorderItemTagOperateResponse struct { - XMLName xml.Name `xml:"omniorder_item_tag_operate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // code 不为 0时有值,代表异常信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 0 正常,否则异常 - Code string `json:"code,omitempty" xml:"code,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderPrintSaleJudgeAPIRequest.go b/model/omniorder/TaobaoOmniorderPrintSaleJudgeAPIRequest.go new file mode 100644 index 0000000000..571e6d55fb --- /dev/null +++ b/model/omniorder/TaobaoOmniorderPrintSaleJudgeAPIRequest.go @@ -0,0 +1,52 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +导购员判断 API请求 +taobao.omniorder.print.sale.judge + +用于判断当前子账号是否导购员 +*/ +type TaobaoOmniorderPrintSaleJudgeAPIRequest struct { + model.Params + // 用户子账号ID + _subUid int64 +} + +// 初始化TaobaoOmniorderPrintSaleJudgeAPIRequest对象 +func NewTaobaoOmniorderPrintSaleJudgeRequest() *TaobaoOmniorderPrintSaleJudgeAPIRequest{ + return &TaobaoOmniorderPrintSaleJudgeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderPrintSaleJudgeAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.print.sale.judge" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderPrintSaleJudgeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubUid Setter +// 用户子账号ID +func (r *TaobaoOmniorderPrintSaleJudgeAPIRequest) SetSubUid(_subUid int64) error { + r._subUid = _subUid + r.Set("sub_uid", _subUid) + return nil +} + +// SubUid Getter +func (r TaobaoOmniorderPrintSaleJudgeAPIRequest) GetSubUid() int64 { + return r._subUid +} diff --git a/model/omniorder/TaobaoOmniorderPrintSaleJudgeAPIResponse.go b/model/omniorder/TaobaoOmniorderPrintSaleJudgeAPIResponse.go new file mode 100644 index 0000000000..c636da5a31 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderPrintSaleJudgeAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +导购员判断 API返回值 +taobao.omniorder.print.sale.judge + +用于判断当前子账号是否导购员 +*/ +type TaobaoOmniorderPrintSaleJudgeAPIResponse struct { + model.CommonResponse + TaobaoOmniorderPrintSaleJudgeAPIResponseModel +} + +// 导购员判断 成功返回结果 +type TaobaoOmniorderPrintSaleJudgeAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_print_sale_judge_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data string `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderPrintSaleJudgeResponse.go b/model/omniorder/TaobaoOmniorderPrintSaleJudgeResponse.go deleted file mode 100644 index a74f72636f..0000000000 --- a/model/omniorder/TaobaoOmniorderPrintSaleJudgeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -导购员判断 API返回值 -taobao.omniorder.print.sale.judge - -用于判断当前子账号是否导购员 -*/ -type TaobaoOmniorderPrintSaleJudgeAPIResponse struct { - model.CommonResponse - TaobaoOmniorderPrintSaleJudgeResponse -} - -// 导购员判断 成功返回结果 -type TaobaoOmniorderPrintSaleJudgeResponse struct { - XMLName xml.Name `xml:"omniorder_print_sale_judge_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data string `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderStoreAccpetedAPIRequest.go b/model/omniorder/TaobaoOmniorderStoreAccpetedAPIRequest.go new file mode 100644 index 0000000000..ec3e34d335 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreAccpetedAPIRequest.go @@ -0,0 +1,94 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Pos端门店接单接口 API请求 +taobao.omniorder.store.accpeted + +ISV Pos端门店接单,通知星盘 +*/ +type TaobaoOmniorderStoreAccpetedAPIRequest struct { + model.Params + // 淘宝交易主订单ID + _tid int64 + // 子订单列表 + _subOrderList []StoreAcceptedResult + // ISV系统上报时间 + _reportTimestamp int64 + // 跟踪Id + _traceId string +} + +// 初始化TaobaoOmniorderStoreAccpetedAPIRequest对象 +func NewTaobaoOmniorderStoreAccpetedRequest() *TaobaoOmniorderStoreAccpetedAPIRequest{ + return &TaobaoOmniorderStoreAccpetedAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderStoreAccpetedAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.store.accpeted" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderStoreAccpetedAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 淘宝交易主订单ID +func (r *TaobaoOmniorderStoreAccpetedAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoOmniorderStoreAccpetedAPIRequest) GetTid() int64 { + return r._tid +} +// SubOrderList Setter +// 子订单列表 +func (r *TaobaoOmniorderStoreAccpetedAPIRequest) SetSubOrderList(_subOrderList []StoreAcceptedResult) error { + r._subOrderList = _subOrderList + r.Set("sub_order_list", _subOrderList) + return nil +} + +// SubOrderList Getter +func (r TaobaoOmniorderStoreAccpetedAPIRequest) GetSubOrderList() []StoreAcceptedResult { + return r._subOrderList +} +// ReportTimestamp Setter +// ISV系统上报时间 +func (r *TaobaoOmniorderStoreAccpetedAPIRequest) SetReportTimestamp(_reportTimestamp int64) error { + r._reportTimestamp = _reportTimestamp + r.Set("report_timestamp", _reportTimestamp) + return nil +} + +// ReportTimestamp Getter +func (r TaobaoOmniorderStoreAccpetedAPIRequest) GetReportTimestamp() int64 { + return r._reportTimestamp +} +// TraceId Setter +// 跟踪Id +func (r *TaobaoOmniorderStoreAccpetedAPIRequest) SetTraceId(_traceId string) error { + r._traceId = _traceId + r.Set("trace_id", _traceId) + return nil +} + +// TraceId Getter +func (r TaobaoOmniorderStoreAccpetedAPIRequest) GetTraceId() string { + return r._traceId +} diff --git a/model/omniorder/TaobaoOmniorderStoreAccpetedAPIResponse.go b/model/omniorder/TaobaoOmniorderStoreAccpetedAPIResponse.go new file mode 100644 index 0000000000..1f90158439 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreAccpetedAPIResponse.go @@ -0,0 +1,29 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Pos端门店接单接口 API返回值 +taobao.omniorder.store.accpeted + +ISV Pos端门店接单,通知星盘 +*/ +type TaobaoOmniorderStoreAccpetedAPIResponse struct { + model.CommonResponse + TaobaoOmniorderStoreAccpetedAPIResponseModel +} + +// Pos端门店接单接口 成功返回结果 +type TaobaoOmniorderStoreAccpetedAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_store_accpeted_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 错误内容 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderStoreAccpetedResponse.go b/model/omniorder/TaobaoOmniorderStoreAccpetedResponse.go deleted file mode 100644 index f76a34d01a..0000000000 --- a/model/omniorder/TaobaoOmniorderStoreAccpetedResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Pos端门店接单接口 API返回值 -taobao.omniorder.store.accpeted - -ISV Pos端门店接单,通知星盘 -*/ -type TaobaoOmniorderStoreAccpetedAPIResponse struct { - model.CommonResponse - TaobaoOmniorderStoreAccpetedResponse -} - -// Pos端门店接单接口 成功返回结果 -type TaobaoOmniorderStoreAccpetedResponse struct { - XMLName xml.Name `xml:"omniorder_store_accpeted_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` - // 错误内容 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderStoreCollectconfigGetAPIRequest.go b/model/omniorder/TaobaoOmniorderStoreCollectconfigGetAPIRequest.go new file mode 100644 index 0000000000..74e1964e7f --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreCollectconfigGetAPIRequest.go @@ -0,0 +1,66 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询门店自提配置内容 API请求 +taobao.omniorder.store.collectconfig.get + +查询门店自提配置内容 +*/ +type TaobaoOmniorderStoreCollectconfigGetAPIRequest struct { + model.Params + // 门店ID + _storeId int64 + // 是否是活动期 + _activity bool +} + +// 初始化TaobaoOmniorderStoreCollectconfigGetAPIRequest对象 +func NewTaobaoOmniorderStoreCollectconfigGetRequest() *TaobaoOmniorderStoreCollectconfigGetAPIRequest{ + return &TaobaoOmniorderStoreCollectconfigGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderStoreCollectconfigGetAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.store.collectconfig.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderStoreCollectconfigGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店ID +func (r *TaobaoOmniorderStoreCollectconfigGetAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoOmniorderStoreCollectconfigGetAPIRequest) GetStoreId() int64 { + return r._storeId +} +// Activity Setter +// 是否是活动期 +func (r *TaobaoOmniorderStoreCollectconfigGetAPIRequest) SetActivity(_activity bool) error { + r._activity = _activity + r.Set("activity", _activity) + return nil +} + +// Activity Getter +func (r TaobaoOmniorderStoreCollectconfigGetAPIRequest) GetActivity() bool { + return r._activity +} diff --git a/model/omniorder/TaobaoOmniorderStoreCollectconfigGetAPIResponse.go b/model/omniorder/TaobaoOmniorderStoreCollectconfigGetAPIResponse.go new file mode 100644 index 0000000000..fa2d88a899 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreCollectconfigGetAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询门店自提配置内容 API返回值 +taobao.omniorder.store.collectconfig.get + +查询门店自提配置内容 +*/ +type TaobaoOmniorderStoreCollectconfigGetAPIResponse struct { + model.CommonResponse + TaobaoOmniorderStoreCollectconfigGetAPIResponseModel +} + +// 查询门店自提配置内容 成功返回结果 +type TaobaoOmniorderStoreCollectconfigGetAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_store_collectconfig_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniorderStoreCollectconfigGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderStoreCollectconfigGetResponse.go b/model/omniorder/TaobaoOmniorderStoreCollectconfigGetResponse.go deleted file mode 100644 index f2234339a8..0000000000 --- a/model/omniorder/TaobaoOmniorderStoreCollectconfigGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询门店自提配置内容 API返回值 -taobao.omniorder.store.collectconfig.get - -查询门店自提配置内容 -*/ -type TaobaoOmniorderStoreCollectconfigGetAPIResponse struct { - model.CommonResponse - TaobaoOmniorderStoreCollectconfigGetResponse -} - -// 查询门店自提配置内容 成功返回结果 -type TaobaoOmniorderStoreCollectconfigGetResponse struct { - XMLName xml.Name `xml:"omniorder_store_collectconfig_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniorderStoreCollectconfigGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderStoreCollectconfigUpdateAPIRequest.go b/model/omniorder/TaobaoOmniorderStoreCollectconfigUpdateAPIRequest.go new file mode 100644 index 0000000000..1e9e481afb --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreCollectconfigUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店自提配置修改 API请求 +taobao.omniorder.store.collectconfig.update + +修改门店自提配置内容 +*/ +type TaobaoOmniorderStoreCollectconfigUpdateAPIRequest struct { + model.Params + // 门店自提配置 + _storeCollectConfig *StoreCollectConfig + // 门店ID + _storeId int64 +} + +// 初始化TaobaoOmniorderStoreCollectconfigUpdateAPIRequest对象 +func NewTaobaoOmniorderStoreCollectconfigUpdateRequest() *TaobaoOmniorderStoreCollectconfigUpdateAPIRequest{ + return &TaobaoOmniorderStoreCollectconfigUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderStoreCollectconfigUpdateAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.store.collectconfig.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderStoreCollectconfigUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreCollectConfig Setter +// 门店自提配置 +func (r *TaobaoOmniorderStoreCollectconfigUpdateAPIRequest) SetStoreCollectConfig(_storeCollectConfig *StoreCollectConfig) error { + r._storeCollectConfig = _storeCollectConfig + r.Set("store_collect_config", _storeCollectConfig) + return nil +} + +// StoreCollectConfig Getter +func (r TaobaoOmniorderStoreCollectconfigUpdateAPIRequest) GetStoreCollectConfig() *StoreCollectConfig { + return r._storeCollectConfig +} +// StoreId Setter +// 门店ID +func (r *TaobaoOmniorderStoreCollectconfigUpdateAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoOmniorderStoreCollectconfigUpdateAPIRequest) GetStoreId() int64 { + return r._storeId +} diff --git a/model/omniorder/TaobaoOmniorderStoreCollectconfigUpdateAPIResponse.go b/model/omniorder/TaobaoOmniorderStoreCollectconfigUpdateAPIResponse.go new file mode 100644 index 0000000000..9c0e7907d3 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreCollectconfigUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店自提配置修改 API返回值 +taobao.omniorder.store.collectconfig.update + +修改门店自提配置内容 +*/ +type TaobaoOmniorderStoreCollectconfigUpdateAPIResponse struct { + model.CommonResponse + TaobaoOmniorderStoreCollectconfigUpdateAPIResponseModel +} + +// 门店自提配置修改 成功返回结果 +type TaobaoOmniorderStoreCollectconfigUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_store_collectconfig_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniorderStoreCollectconfigUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderStoreCollectconfigUpdateResponse.go b/model/omniorder/TaobaoOmniorderStoreCollectconfigUpdateResponse.go deleted file mode 100644 index ad3cc97092..0000000000 --- a/model/omniorder/TaobaoOmniorderStoreCollectconfigUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店自提配置修改 API返回值 -taobao.omniorder.store.collectconfig.update - -修改门店自提配置内容 -*/ -type TaobaoOmniorderStoreCollectconfigUpdateAPIResponse struct { - model.CommonResponse - TaobaoOmniorderStoreCollectconfigUpdateResponse -} - -// 门店自提配置修改 成功返回结果 -type TaobaoOmniorderStoreCollectconfigUpdateResponse struct { - XMLName xml.Name `xml:"omniorder_store_collectconfig_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniorderStoreCollectconfigUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderStoreConsignedAPIRequest.go b/model/omniorder/TaobaoOmniorderStoreConsignedAPIRequest.go new file mode 100644 index 0000000000..860544bcdc --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreConsignedAPIRequest.go @@ -0,0 +1,178 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Pos端门店发货 API请求 +taobao.omniorder.store.consigned + +ISV Pos端门店发货,通知星盘 +*/ +type TaobaoOmniorderStoreConsignedAPIRequest struct { + model.Params + // 跟踪Id + _traceId string + // 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址 + _senderId int64 + // 家装物流-安装收货人信息,如果为空,则取默认收货人信息 + _insReceiverTo *JzReceiverDto + // 子订单列表 + _subOrderList []StoreConsignedResult + // 家装物流-发货参数 + _jzTopArgs *JzTopArgsDto + // 家装物流-安装公司信息,需要安装时,才填写 + _insTpDto *TpDto + // 家装物流-家装收货人信息,如果为空,则取默认收货信息 + _jzReceiverTo *JzReceiverDto + // 淘宝交易主订单ID + _tid int64 + // ISV系统上报时间 + _reportTimestamp int64 + // 家装物流-物流公司信息 + _lgTpDto *TpDto +} + +// 初始化TaobaoOmniorderStoreConsignedAPIRequest对象 +func NewTaobaoOmniorderStoreConsignedRequest() *TaobaoOmniorderStoreConsignedAPIRequest{ + return &TaobaoOmniorderStoreConsignedAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderStoreConsignedAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.store.consigned" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderStoreConsignedAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TraceId Setter +// 跟踪Id +func (r *TaobaoOmniorderStoreConsignedAPIRequest) SetTraceId(_traceId string) error { + r._traceId = _traceId + r.Set("trace_id", _traceId) + return nil +} + +// TraceId Getter +func (r TaobaoOmniorderStoreConsignedAPIRequest) GetTraceId() string { + return r._traceId +} +// SenderId Setter +// 卖家联系人地址库ID,可以通过taobao.logistics.address.search接口查询到地址库ID。如果为空,取的卖家的默认取货地址 +func (r *TaobaoOmniorderStoreConsignedAPIRequest) SetSenderId(_senderId int64) error { + r._senderId = _senderId + r.Set("sender_id", _senderId) + return nil +} + +// SenderId Getter +func (r TaobaoOmniorderStoreConsignedAPIRequest) GetSenderId() int64 { + return r._senderId +} +// InsReceiverTo Setter +// 家装物流-安装收货人信息,如果为空,则取默认收货人信息 +func (r *TaobaoOmniorderStoreConsignedAPIRequest) SetInsReceiverTo(_insReceiverTo *JzReceiverDto) error { + r._insReceiverTo = _insReceiverTo + r.Set("ins_receiver_to", _insReceiverTo) + return nil +} + +// InsReceiverTo Getter +func (r TaobaoOmniorderStoreConsignedAPIRequest) GetInsReceiverTo() *JzReceiverDto { + return r._insReceiverTo +} +// SubOrderList Setter +// 子订单列表 +func (r *TaobaoOmniorderStoreConsignedAPIRequest) SetSubOrderList(_subOrderList []StoreConsignedResult) error { + r._subOrderList = _subOrderList + r.Set("sub_order_list", _subOrderList) + return nil +} + +// SubOrderList Getter +func (r TaobaoOmniorderStoreConsignedAPIRequest) GetSubOrderList() []StoreConsignedResult { + return r._subOrderList +} +// JzTopArgs Setter +// 家装物流-发货参数 +func (r *TaobaoOmniorderStoreConsignedAPIRequest) SetJzTopArgs(_jzTopArgs *JzTopArgsDto) error { + r._jzTopArgs = _jzTopArgs + r.Set("jz_top_args", _jzTopArgs) + return nil +} + +// JzTopArgs Getter +func (r TaobaoOmniorderStoreConsignedAPIRequest) GetJzTopArgs() *JzTopArgsDto { + return r._jzTopArgs +} +// InsTpDto Setter +// 家装物流-安装公司信息,需要安装时,才填写 +func (r *TaobaoOmniorderStoreConsignedAPIRequest) SetInsTpDto(_insTpDto *TpDto) error { + r._insTpDto = _insTpDto + r.Set("ins_tp_dto", _insTpDto) + return nil +} + +// InsTpDto Getter +func (r TaobaoOmniorderStoreConsignedAPIRequest) GetInsTpDto() *TpDto { + return r._insTpDto +} +// JzReceiverTo Setter +// 家装物流-家装收货人信息,如果为空,则取默认收货信息 +func (r *TaobaoOmniorderStoreConsignedAPIRequest) SetJzReceiverTo(_jzReceiverTo *JzReceiverDto) error { + r._jzReceiverTo = _jzReceiverTo + r.Set("jz_receiver_to", _jzReceiverTo) + return nil +} + +// JzReceiverTo Getter +func (r TaobaoOmniorderStoreConsignedAPIRequest) GetJzReceiverTo() *JzReceiverDto { + return r._jzReceiverTo +} +// Tid Setter +// 淘宝交易主订单ID +func (r *TaobaoOmniorderStoreConsignedAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoOmniorderStoreConsignedAPIRequest) GetTid() int64 { + return r._tid +} +// ReportTimestamp Setter +// ISV系统上报时间 +func (r *TaobaoOmniorderStoreConsignedAPIRequest) SetReportTimestamp(_reportTimestamp int64) error { + r._reportTimestamp = _reportTimestamp + r.Set("report_timestamp", _reportTimestamp) + return nil +} + +// ReportTimestamp Getter +func (r TaobaoOmniorderStoreConsignedAPIRequest) GetReportTimestamp() int64 { + return r._reportTimestamp +} +// LgTpDto Setter +// 家装物流-物流公司信息 +func (r *TaobaoOmniorderStoreConsignedAPIRequest) SetLgTpDto(_lgTpDto *TpDto) error { + r._lgTpDto = _lgTpDto + r.Set("lg_tp_dto", _lgTpDto) + return nil +} + +// LgTpDto Getter +func (r TaobaoOmniorderStoreConsignedAPIRequest) GetLgTpDto() *TpDto { + return r._lgTpDto +} diff --git a/model/omniorder/TaobaoOmniorderStoreConsignedAPIResponse.go b/model/omniorder/TaobaoOmniorderStoreConsignedAPIResponse.go new file mode 100644 index 0000000000..0e58a28d73 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreConsignedAPIResponse.go @@ -0,0 +1,31 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Pos端门店发货 API返回值 +taobao.omniorder.store.consigned + +ISV Pos端门店发货,通知星盘 +*/ +type TaobaoOmniorderStoreConsignedAPIResponse struct { + model.CommonResponse + TaobaoOmniorderStoreConsignedAPIResponseModel +} + +// Pos端门店发货 成功返回结果 +type TaobaoOmniorderStoreConsignedAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_store_consigned_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 错误内容 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // data + Data *StoreConsignedResponse `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderStoreConsignedResponse.go b/model/omniorder/TaobaoOmniorderStoreConsignedResponse.go deleted file mode 100644 index 31e3bd0df1..0000000000 --- a/model/omniorder/TaobaoOmniorderStoreConsignedResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Pos端门店发货 API返回值 -taobao.omniorder.store.consigned - -ISV Pos端门店发货,通知星盘 -*/ -type TaobaoOmniorderStoreConsignedAPIResponse struct { - model.CommonResponse - TaobaoOmniorderStoreConsignedResponse -} - -// Pos端门店发货 成功返回结果 -type TaobaoOmniorderStoreConsignedResponse struct { - XMLName xml.Name `xml:"omniorder_store_consigned_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` - // 错误内容 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // data - Data *StoreConsignedResponse `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderStoreDeliverconfigGetAPIRequest.go b/model/omniorder/TaobaoOmniorderStoreDeliverconfigGetAPIRequest.go new file mode 100644 index 0000000000..71e6780504 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreDeliverconfigGetAPIRequest.go @@ -0,0 +1,66 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询门店发货配置内容 API请求 +taobao.omniorder.store.deliverconfig.get + +查询门店发货配置内容 +*/ +type TaobaoOmniorderStoreDeliverconfigGetAPIRequest struct { + model.Params + // 门店ID + _storeId int64 + // 是否是活动期 + _activity bool +} + +// 初始化TaobaoOmniorderStoreDeliverconfigGetAPIRequest对象 +func NewTaobaoOmniorderStoreDeliverconfigGetRequest() *TaobaoOmniorderStoreDeliverconfigGetAPIRequest{ + return &TaobaoOmniorderStoreDeliverconfigGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderStoreDeliverconfigGetAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.store.deliverconfig.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderStoreDeliverconfigGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店ID +func (r *TaobaoOmniorderStoreDeliverconfigGetAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoOmniorderStoreDeliverconfigGetAPIRequest) GetStoreId() int64 { + return r._storeId +} +// Activity Setter +// 是否是活动期 +func (r *TaobaoOmniorderStoreDeliverconfigGetAPIRequest) SetActivity(_activity bool) error { + r._activity = _activity + r.Set("activity", _activity) + return nil +} + +// Activity Getter +func (r TaobaoOmniorderStoreDeliverconfigGetAPIRequest) GetActivity() bool { + return r._activity +} diff --git a/model/omniorder/TaobaoOmniorderStoreDeliverconfigGetAPIResponse.go b/model/omniorder/TaobaoOmniorderStoreDeliverconfigGetAPIResponse.go new file mode 100644 index 0000000000..ac58c2884f --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreDeliverconfigGetAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询门店发货配置内容 API返回值 +taobao.omniorder.store.deliverconfig.get + +查询门店发货配置内容 +*/ +type TaobaoOmniorderStoreDeliverconfigGetAPIResponse struct { + model.CommonResponse + TaobaoOmniorderStoreDeliverconfigGetAPIResponseModel +} + +// 查询门店发货配置内容 成功返回结果 +type TaobaoOmniorderStoreDeliverconfigGetAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_store_deliverconfig_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniorderStoreDeliverconfigGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderStoreDeliverconfigGetResponse.go b/model/omniorder/TaobaoOmniorderStoreDeliverconfigGetResponse.go deleted file mode 100644 index cb2713da5f..0000000000 --- a/model/omniorder/TaobaoOmniorderStoreDeliverconfigGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询门店发货配置内容 API返回值 -taobao.omniorder.store.deliverconfig.get - -查询门店发货配置内容 -*/ -type TaobaoOmniorderStoreDeliverconfigGetAPIResponse struct { - model.CommonResponse - TaobaoOmniorderStoreDeliverconfigGetResponse -} - -// 查询门店发货配置内容 成功返回结果 -type TaobaoOmniorderStoreDeliverconfigGetResponse struct { - XMLName xml.Name `xml:"omniorder_store_deliverconfig_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniorderStoreDeliverconfigGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest.go b/model/omniorder/TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest.go new file mode 100644 index 0000000000..a7107eb389 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改门店发货配置内容 API请求 +taobao.omniorder.store.deliverconfig.update + +修改门店发货配置内容 +*/ +type TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest struct { + model.Params + // 门店ID + _storeId int64 + // 卖家发货配置 + _storeDeliverConfig *StoreDeliverConfig +} + +// 初始化TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest对象 +func NewTaobaoOmniorderStoreDeliverconfigUpdateRequest() *TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest{ + return &TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.store.deliverconfig.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店ID +func (r *TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest) GetStoreId() int64 { + return r._storeId +} +// StoreDeliverConfig Setter +// 卖家发货配置 +func (r *TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest) SetStoreDeliverConfig(_storeDeliverConfig *StoreDeliverConfig) error { + r._storeDeliverConfig = _storeDeliverConfig + r.Set("store_deliver_config", _storeDeliverConfig) + return nil +} + +// StoreDeliverConfig Getter +func (r TaobaoOmniorderStoreDeliverconfigUpdateAPIRequest) GetStoreDeliverConfig() *StoreDeliverConfig { + return r._storeDeliverConfig +} diff --git a/model/omniorder/TaobaoOmniorderStoreDeliverconfigUpdateAPIResponse.go b/model/omniorder/TaobaoOmniorderStoreDeliverconfigUpdateAPIResponse.go new file mode 100644 index 0000000000..1016815ac1 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreDeliverconfigUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改门店发货配置内容 API返回值 +taobao.omniorder.store.deliverconfig.update + +修改门店发货配置内容 +*/ +type TaobaoOmniorderStoreDeliverconfigUpdateAPIResponse struct { + model.CommonResponse + TaobaoOmniorderStoreDeliverconfigUpdateAPIResponseModel +} + +// 修改门店发货配置内容 成功返回结果 +type TaobaoOmniorderStoreDeliverconfigUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_store_deliverconfig_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniorderStoreDeliverconfigUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderStoreDeliverconfigUpdateResponse.go b/model/omniorder/TaobaoOmniorderStoreDeliverconfigUpdateResponse.go deleted file mode 100644 index 93b4884f7a..0000000000 --- a/model/omniorder/TaobaoOmniorderStoreDeliverconfigUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改门店发货配置内容 API返回值 -taobao.omniorder.store.deliverconfig.update - -修改门店发货配置内容 -*/ -type TaobaoOmniorderStoreDeliverconfigUpdateAPIResponse struct { - model.CommonResponse - TaobaoOmniorderStoreDeliverconfigUpdateResponse -} - -// 修改门店发货配置内容 成功返回结果 -type TaobaoOmniorderStoreDeliverconfigUpdateResponse struct { - XMLName xml.Name `xml:"omniorder_store_deliverconfig_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniorderStoreDeliverconfigUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderStoreGetconsignmailcodeAPIRequest.go b/model/omniorder/TaobaoOmniorderStoreGetconsignmailcodeAPIRequest.go new file mode 100644 index 0000000000..39674f1771 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreGetconsignmailcodeAPIRequest.go @@ -0,0 +1,122 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道门店物流菜鸟裹裹取号 API请求 +taobao.omniorder.store.getconsignmailcode + +用于ISV获取全渠道门店物流订单菜鸟裹裹门店的物流快递取号 +*/ +type TaobaoOmniorderStoreGetconsignmailcodeAPIRequest struct { + model.Params + // 门店ID + _storeId int64 + // 发件人联系电话,如空则表示使用门店信息中的电话号码 + _senderContact string + // 淘宝(TB)、天猫(TM)、京东(JD)、当当(DD)、拍拍(PP)、易讯(YX)、ebay(EBAY)、QQ网购(QQ) 、亚马逊(AMAZON)、苏宁(SN)、国美(GM)、唯品会(WPH)、聚美(JM)、乐蜂(LF)、蘑菇街(MGJ) 、聚尚(JS)、拍鞋(PX)、银泰(YT)、1号店(YHD)、凡客(VANCL)、邮乐(YL)、优购(YG)、阿里 巴巴(1688)、其他(OTHERS) + _channel string + // 订单信息,目前一次请求只支持一个主订单 + _trades []TradeOrderInfoDto + // 收件人信息 + _receiver *ReceiverDto + // 扩展信息 + _sdtExtendInfoDTO *SdtExtendInfoDto +} + +// 初始化TaobaoOmniorderStoreGetconsignmailcodeAPIRequest对象 +func NewTaobaoOmniorderStoreGetconsignmailcodeRequest() *TaobaoOmniorderStoreGetconsignmailcodeAPIRequest{ + return &TaobaoOmniorderStoreGetconsignmailcodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderStoreGetconsignmailcodeAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.store.getconsignmailcode" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderStoreGetconsignmailcodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店ID +func (r *TaobaoOmniorderStoreGetconsignmailcodeAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoOmniorderStoreGetconsignmailcodeAPIRequest) GetStoreId() int64 { + return r._storeId +} +// SenderContact Setter +// 发件人联系电话,如空则表示使用门店信息中的电话号码 +func (r *TaobaoOmniorderStoreGetconsignmailcodeAPIRequest) SetSenderContact(_senderContact string) error { + r._senderContact = _senderContact + r.Set("sender_contact", _senderContact) + return nil +} + +// SenderContact Getter +func (r TaobaoOmniorderStoreGetconsignmailcodeAPIRequest) GetSenderContact() string { + return r._senderContact +} +// Channel Setter +// 淘宝(TB)、天猫(TM)、京东(JD)、当当(DD)、拍拍(PP)、易讯(YX)、ebay(EBAY)、QQ网购(QQ) 、亚马逊(AMAZON)、苏宁(SN)、国美(GM)、唯品会(WPH)、聚美(JM)、乐蜂(LF)、蘑菇街(MGJ) 、聚尚(JS)、拍鞋(PX)、银泰(YT)、1号店(YHD)、凡客(VANCL)、邮乐(YL)、优购(YG)、阿里 巴巴(1688)、其他(OTHERS) +func (r *TaobaoOmniorderStoreGetconsignmailcodeAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r TaobaoOmniorderStoreGetconsignmailcodeAPIRequest) GetChannel() string { + return r._channel +} +// Trades Setter +// 订单信息,目前一次请求只支持一个主订单 +func (r *TaobaoOmniorderStoreGetconsignmailcodeAPIRequest) SetTrades(_trades []TradeOrderInfoDto) error { + r._trades = _trades + r.Set("trades", _trades) + return nil +} + +// Trades Getter +func (r TaobaoOmniorderStoreGetconsignmailcodeAPIRequest) GetTrades() []TradeOrderInfoDto { + return r._trades +} +// Receiver Setter +// 收件人信息 +func (r *TaobaoOmniorderStoreGetconsignmailcodeAPIRequest) SetReceiver(_receiver *ReceiverDto) error { + r._receiver = _receiver + r.Set("receiver", _receiver) + return nil +} + +// Receiver Getter +func (r TaobaoOmniorderStoreGetconsignmailcodeAPIRequest) GetReceiver() *ReceiverDto { + return r._receiver +} +// SdtExtendInfoDTO Setter +// 扩展信息 +func (r *TaobaoOmniorderStoreGetconsignmailcodeAPIRequest) SetSdtExtendInfoDTO(_sdtExtendInfoDTO *SdtExtendInfoDto) error { + r._sdtExtendInfoDTO = _sdtExtendInfoDTO + r.Set("sdt_extend_info_d_t_o", _sdtExtendInfoDTO) + return nil +} + +// SdtExtendInfoDTO Getter +func (r TaobaoOmniorderStoreGetconsignmailcodeAPIRequest) GetSdtExtendInfoDTO() *SdtExtendInfoDto { + return r._sdtExtendInfoDTO +} diff --git a/model/omniorder/TaobaoOmniorderStoreGetconsignmailcodeAPIResponse.go b/model/omniorder/TaobaoOmniorderStoreGetconsignmailcodeAPIResponse.go new file mode 100644 index 0000000000..7515f86b76 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreGetconsignmailcodeAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道门店物流菜鸟裹裹取号 API返回值 +taobao.omniorder.store.getconsignmailcode + +用于ISV获取全渠道门店物流订单菜鸟裹裹门店的物流快递取号 +*/ +type TaobaoOmniorderStoreGetconsignmailcodeAPIResponse struct { + model.CommonResponse + TaobaoOmniorderStoreGetconsignmailcodeAPIResponseModel +} + +// 全渠道门店物流菜鸟裹裹取号 成功返回结果 +type TaobaoOmniorderStoreGetconsignmailcodeAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_store_getconsignmailcode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniorderStoreGetconsignmailcodeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderStoreGetconsignmailcodeResponse.go b/model/omniorder/TaobaoOmniorderStoreGetconsignmailcodeResponse.go deleted file mode 100644 index c65702b2a1..0000000000 --- a/model/omniorder/TaobaoOmniorderStoreGetconsignmailcodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -全渠道门店物流菜鸟裹裹取号 API返回值 -taobao.omniorder.store.getconsignmailcode - -用于ISV获取全渠道门店物流订单菜鸟裹裹门店的物流快递取号 -*/ -type TaobaoOmniorderStoreGetconsignmailcodeAPIResponse struct { - model.CommonResponse - TaobaoOmniorderStoreGetconsignmailcodeResponse -} - -// 全渠道门店物流菜鸟裹裹取号 成功返回结果 -type TaobaoOmniorderStoreGetconsignmailcodeResponse struct { - XMLName xml.Name `xml:"omniorder_store_getconsignmailcode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniorderStoreGetconsignmailcodeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderStoreReallocateAPIRequest.go b/model/omniorder/TaobaoOmniorderStoreReallocateAPIRequest.go new file mode 100644 index 0000000000..7f7501791c --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreReallocateAPIRequest.go @@ -0,0 +1,94 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +rellocate API请求 +taobao.omniorder.store.reallocate + +门店发货提供改派接口 +*/ +type TaobaoOmniorderStoreReallocateAPIRequest struct { + model.Params + // 主订单号 + _mainOrderId int64 + // 子订单号 + _subOrderIds []int64 + // 门店Id + _storeId int64 + // 电商仓code + _warehouseCode string +} + +// 初始化TaobaoOmniorderStoreReallocateAPIRequest对象 +func NewTaobaoOmniorderStoreReallocateRequest() *TaobaoOmniorderStoreReallocateAPIRequest{ + return &TaobaoOmniorderStoreReallocateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderStoreReallocateAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.store.reallocate" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderStoreReallocateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainOrderId Setter +// 主订单号 +func (r *TaobaoOmniorderStoreReallocateAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r TaobaoOmniorderStoreReallocateAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} +// SubOrderIds Setter +// 子订单号 +func (r *TaobaoOmniorderStoreReallocateAPIRequest) SetSubOrderIds(_subOrderIds []int64) error { + r._subOrderIds = _subOrderIds + r.Set("sub_order_ids", _subOrderIds) + return nil +} + +// SubOrderIds Getter +func (r TaobaoOmniorderStoreReallocateAPIRequest) GetSubOrderIds() []int64 { + return r._subOrderIds +} +// StoreId Setter +// 门店Id +func (r *TaobaoOmniorderStoreReallocateAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoOmniorderStoreReallocateAPIRequest) GetStoreId() int64 { + return r._storeId +} +// WarehouseCode Setter +// 电商仓code +func (r *TaobaoOmniorderStoreReallocateAPIRequest) SetWarehouseCode(_warehouseCode string) error { + r._warehouseCode = _warehouseCode + r.Set("warehouse_code", _warehouseCode) + return nil +} + +// WarehouseCode Getter +func (r TaobaoOmniorderStoreReallocateAPIRequest) GetWarehouseCode() string { + return r._warehouseCode +} diff --git a/model/omniorder/TaobaoOmniorderStoreReallocateAPIResponse.go b/model/omniorder/TaobaoOmniorderStoreReallocateAPIResponse.go new file mode 100644 index 0000000000..0b450f3c28 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreReallocateAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +rellocate API返回值 +taobao.omniorder.store.reallocate + +门店发货提供改派接口 +*/ +type TaobaoOmniorderStoreReallocateAPIResponse struct { + model.CommonResponse + TaobaoOmniorderStoreReallocateAPIResponseModel +} + +// rellocate 成功返回结果 +type TaobaoOmniorderStoreReallocateAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_store_reallocate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniorderStoreReallocateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderStoreReallocateResponse.go b/model/omniorder/TaobaoOmniorderStoreReallocateResponse.go deleted file mode 100644 index 18ae6ba4c1..0000000000 --- a/model/omniorder/TaobaoOmniorderStoreReallocateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -rellocate API返回值 -taobao.omniorder.store.reallocate - -门店发货提供改派接口 -*/ -type TaobaoOmniorderStoreReallocateAPIResponse struct { - model.CommonResponse - TaobaoOmniorderStoreReallocateResponse -} - -// rellocate 成功返回结果 -type TaobaoOmniorderStoreReallocateResponse struct { - XMLName xml.Name `xml:"omniorder_store_reallocate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniorderStoreReallocateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderStoreRefusedAPIRequest.go b/model/omniorder/TaobaoOmniorderStoreRefusedAPIRequest.go new file mode 100644 index 0000000000..f0d31b42ff --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreRefusedAPIRequest.go @@ -0,0 +1,94 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Pos端门店拒单 API请求 +taobao.omniorder.store.refused + +ISV Pos端门店拒单,通知星盘 +*/ +type TaobaoOmniorderStoreRefusedAPIRequest struct { + model.Params + // 淘宝交易主订单ID + _tid int64 + // 子订单列表 + _subOrderList []SubOrder + // ISV的系统时间 + _reportTimestamp int64 + // 跟踪Id + _traceId string +} + +// 初始化TaobaoOmniorderStoreRefusedAPIRequest对象 +func NewTaobaoOmniorderStoreRefusedRequest() *TaobaoOmniorderStoreRefusedAPIRequest{ + return &TaobaoOmniorderStoreRefusedAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderStoreRefusedAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.store.refused" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderStoreRefusedAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 淘宝交易主订单ID +func (r *TaobaoOmniorderStoreRefusedAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoOmniorderStoreRefusedAPIRequest) GetTid() int64 { + return r._tid +} +// SubOrderList Setter +// 子订单列表 +func (r *TaobaoOmniorderStoreRefusedAPIRequest) SetSubOrderList(_subOrderList []SubOrder) error { + r._subOrderList = _subOrderList + r.Set("sub_order_list", _subOrderList) + return nil +} + +// SubOrderList Getter +func (r TaobaoOmniorderStoreRefusedAPIRequest) GetSubOrderList() []SubOrder { + return r._subOrderList +} +// ReportTimestamp Setter +// ISV的系统时间 +func (r *TaobaoOmniorderStoreRefusedAPIRequest) SetReportTimestamp(_reportTimestamp int64) error { + r._reportTimestamp = _reportTimestamp + r.Set("report_timestamp", _reportTimestamp) + return nil +} + +// ReportTimestamp Getter +func (r TaobaoOmniorderStoreRefusedAPIRequest) GetReportTimestamp() int64 { + return r._reportTimestamp +} +// TraceId Setter +// 跟踪Id +func (r *TaobaoOmniorderStoreRefusedAPIRequest) SetTraceId(_traceId string) error { + r._traceId = _traceId + r.Set("trace_id", _traceId) + return nil +} + +// TraceId Getter +func (r TaobaoOmniorderStoreRefusedAPIRequest) GetTraceId() string { + return r._traceId +} diff --git a/model/omniorder/TaobaoOmniorderStoreRefusedAPIResponse.go b/model/omniorder/TaobaoOmniorderStoreRefusedAPIResponse.go new file mode 100644 index 0000000000..2cc8775c0b --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreRefusedAPIResponse.go @@ -0,0 +1,29 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Pos端门店拒单 API返回值 +taobao.omniorder.store.refused + +ISV Pos端门店拒单,通知星盘 +*/ +type TaobaoOmniorderStoreRefusedAPIResponse struct { + model.CommonResponse + TaobaoOmniorderStoreRefusedAPIResponseModel +} + +// Pos端门店拒单 成功返回结果 +type TaobaoOmniorderStoreRefusedAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_store_refused_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 正常为0,其他表示异常 + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderStoreRefusedResponse.go b/model/omniorder/TaobaoOmniorderStoreRefusedResponse.go deleted file mode 100644 index e9af7f5061..0000000000 --- a/model/omniorder/TaobaoOmniorderStoreRefusedResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Pos端门店拒单 API返回值 -taobao.omniorder.store.refused - -ISV Pos端门店拒单,通知星盘 -*/ -type TaobaoOmniorderStoreRefusedAPIResponse struct { - model.CommonResponse - TaobaoOmniorderStoreRefusedResponse -} - -// Pos端门店拒单 成功返回结果 -type TaobaoOmniorderStoreRefusedResponse struct { - XMLName xml.Name `xml:"omniorder_store_refused_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 正常为0,其他表示异常 - ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderStoreSdtcancelAPIRequest.go b/model/omniorder/TaobaoOmniorderStoreSdtcancelAPIRequest.go new file mode 100644 index 0000000000..d91411f5ce --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreSdtcancelAPIRequest.go @@ -0,0 +1,52 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通知速店通取消取号 API请求 +taobao.omniorder.store.sdtcancel + +通知速店通取消取号 +*/ +type TaobaoOmniorderStoreSdtcancelAPIRequest struct { + model.Params + // 取号返回的packageId + _packageId int64 +} + +// 初始化TaobaoOmniorderStoreSdtcancelAPIRequest对象 +func NewTaobaoOmniorderStoreSdtcancelRequest() *TaobaoOmniorderStoreSdtcancelAPIRequest{ + return &TaobaoOmniorderStoreSdtcancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderStoreSdtcancelAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.store.sdtcancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderStoreSdtcancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PackageId Setter +// 取号返回的packageId +func (r *TaobaoOmniorderStoreSdtcancelAPIRequest) SetPackageId(_packageId int64) error { + r._packageId = _packageId + r.Set("package_id", _packageId) + return nil +} + +// PackageId Getter +func (r TaobaoOmniorderStoreSdtcancelAPIRequest) GetPackageId() int64 { + return r._packageId +} diff --git a/model/omniorder/TaobaoOmniorderStoreSdtcancelAPIResponse.go b/model/omniorder/TaobaoOmniorderStoreSdtcancelAPIResponse.go new file mode 100644 index 0000000000..fbd49f63b4 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreSdtcancelAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通知速店通取消取号 API返回值 +taobao.omniorder.store.sdtcancel + +通知速店通取消取号 +*/ +type TaobaoOmniorderStoreSdtcancelAPIResponse struct { + model.CommonResponse + TaobaoOmniorderStoreSdtcancelAPIResponseModel +} + +// 通知速店通取消取号 成功返回结果 +type TaobaoOmniorderStoreSdtcancelAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_store_sdtcancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoOmniorderStoreSdtcancelResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderStoreSdtcancelResponse.go b/model/omniorder/TaobaoOmniorderStoreSdtcancelResponse.go deleted file mode 100644 index e77387ff06..0000000000 --- a/model/omniorder/TaobaoOmniorderStoreSdtcancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通知速店通取消取号 API返回值 -taobao.omniorder.store.sdtcancel - -通知速店通取消取号 -*/ -type TaobaoOmniorderStoreSdtcancelAPIResponse struct { - model.CommonResponse - TaobaoOmniorderStoreSdtcancelResponse -} - -// 通知速店通取消取号 成功返回结果 -type TaobaoOmniorderStoreSdtcancelResponse struct { - XMLName xml.Name `xml:"omniorder_store_sdtcancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoOmniorderStoreSdtcancelResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderStoreSdtconsignAPIRequest.go b/model/omniorder/TaobaoOmniorderStoreSdtconsignAPIRequest.go new file mode 100644 index 0000000000..961b1971f3 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreSdtconsignAPIRequest.go @@ -0,0 +1,66 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通知菜鸟裹裹发货 API请求 +taobao.omniorder.store.sdtconsign + +ISV取完单号后通知菜鸟裹裹发货 +*/ +type TaobaoOmniorderStoreSdtconsignAPIRequest struct { + model.Params + // 取号接口返回的包裹id + _packageId string + // 发货标签号 + _tagCode string +} + +// 初始化TaobaoOmniorderStoreSdtconsignAPIRequest对象 +func NewTaobaoOmniorderStoreSdtconsignRequest() *TaobaoOmniorderStoreSdtconsignAPIRequest{ + return &TaobaoOmniorderStoreSdtconsignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderStoreSdtconsignAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.store.sdtconsign" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderStoreSdtconsignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PackageId Setter +// 取号接口返回的包裹id +func (r *TaobaoOmniorderStoreSdtconsignAPIRequest) SetPackageId(_packageId string) error { + r._packageId = _packageId + r.Set("package_id", _packageId) + return nil +} + +// PackageId Getter +func (r TaobaoOmniorderStoreSdtconsignAPIRequest) GetPackageId() string { + return r._packageId +} +// TagCode Setter +// 发货标签号 +func (r *TaobaoOmniorderStoreSdtconsignAPIRequest) SetTagCode(_tagCode string) error { + r._tagCode = _tagCode + r.Set("tag_code", _tagCode) + return nil +} + +// TagCode Getter +func (r TaobaoOmniorderStoreSdtconsignAPIRequest) GetTagCode() string { + return r._tagCode +} diff --git a/model/omniorder/TaobaoOmniorderStoreSdtconsignAPIResponse.go b/model/omniorder/TaobaoOmniorderStoreSdtconsignAPIResponse.go new file mode 100644 index 0000000000..54156cef4f --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreSdtconsignAPIResponse.go @@ -0,0 +1,31 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通知菜鸟裹裹发货 API返回值 +taobao.omniorder.store.sdtconsign + +ISV取完单号后通知菜鸟裹裹发货 +*/ +type TaobaoOmniorderStoreSdtconsignAPIResponse struct { + model.CommonResponse + TaobaoOmniorderStoreSdtconsignAPIResponseModel +} + +// 通知菜鸟裹裹发货 成功返回结果 +type TaobaoOmniorderStoreSdtconsignAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_store_sdtconsign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异常信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // data + Data *SdtConsignResponse `json:"data,omitempty" xml:"data,omitempty"` + // 异常码 0 为正常,否则异常 + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderStoreSdtconsignResponse.go b/model/omniorder/TaobaoOmniorderStoreSdtconsignResponse.go deleted file mode 100644 index eee2dc42ab..0000000000 --- a/model/omniorder/TaobaoOmniorderStoreSdtconsignResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通知菜鸟裹裹发货 API返回值 -taobao.omniorder.store.sdtconsign - -ISV取完单号后通知菜鸟裹裹发货 -*/ -type TaobaoOmniorderStoreSdtconsignAPIResponse struct { - model.CommonResponse - TaobaoOmniorderStoreSdtconsignResponse -} - -// 通知菜鸟裹裹发货 成功返回结果 -type TaobaoOmniorderStoreSdtconsignResponse struct { - XMLName xml.Name `xml:"omniorder_store_sdtconsign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异常信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // data - Data *SdtConsignResponse `json:"data,omitempty" xml:"data,omitempty"` - // 异常码 0 为正常,否则异常 - ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderStoreSdtquerystationAPIRequest.go b/model/omniorder/TaobaoOmniorderStoreSdtquerystationAPIRequest.go new file mode 100644 index 0000000000..69c1c5bbb0 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreSdtquerystationAPIRequest.go @@ -0,0 +1,52 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +速店通查询站点信息 API请求 +taobao.omniorder.store.sdtquerystation + +速店通查询站点信息 +*/ +type TaobaoOmniorderStoreSdtquerystationAPIRequest struct { + model.Params + // 取号时返回的packageId + _paramLong2 int64 +} + +// 初始化TaobaoOmniorderStoreSdtquerystationAPIRequest对象 +func NewTaobaoOmniorderStoreSdtquerystationRequest() *TaobaoOmniorderStoreSdtquerystationAPIRequest{ + return &TaobaoOmniorderStoreSdtquerystationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderStoreSdtquerystationAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.store.sdtquerystation" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderStoreSdtquerystationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamLong2 Setter +// 取号时返回的packageId +func (r *TaobaoOmniorderStoreSdtquerystationAPIRequest) SetParamLong2(_paramLong2 int64) error { + r._paramLong2 = _paramLong2 + r.Set("param_long2", _paramLong2) + return nil +} + +// ParamLong2 Getter +func (r TaobaoOmniorderStoreSdtquerystationAPIRequest) GetParamLong2() int64 { + return r._paramLong2 +} diff --git a/model/omniorder/TaobaoOmniorderStoreSdtquerystationAPIResponse.go b/model/omniorder/TaobaoOmniorderStoreSdtquerystationAPIResponse.go new file mode 100644 index 0000000000..e102246f35 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreSdtquerystationAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +速店通查询站点信息 API返回值 +taobao.omniorder.store.sdtquerystation + +速店通查询站点信息 +*/ +type TaobaoOmniorderStoreSdtquerystationAPIResponse struct { + model.CommonResponse + TaobaoOmniorderStoreSdtquerystationAPIResponseModel +} + +// 速店通查询站点信息 成功返回结果 +type TaobaoOmniorderStoreSdtquerystationAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_store_sdtquerystation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniorderStoreSdtquerystationResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderStoreSdtquerystationResponse.go b/model/omniorder/TaobaoOmniorderStoreSdtquerystationResponse.go deleted file mode 100644 index d3fe2093ab..0000000000 --- a/model/omniorder/TaobaoOmniorderStoreSdtquerystationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -速店通查询站点信息 API返回值 -taobao.omniorder.store.sdtquerystation - -速店通查询站点信息 -*/ -type TaobaoOmniorderStoreSdtquerystationAPIResponse struct { - model.CommonResponse - TaobaoOmniorderStoreSdtquerystationResponse -} - -// 速店通查询站点信息 成功返回结果 -type TaobaoOmniorderStoreSdtquerystationResponse struct { - XMLName xml.Name `xml:"omniorder_store_sdtquerystation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniorderStoreSdtquerystationResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderStoreSdtstatusAPIRequest.go b/model/omniorder/TaobaoOmniorderStoreSdtstatusAPIRequest.go new file mode 100644 index 0000000000..fdf8e55045 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreSdtstatusAPIRequest.go @@ -0,0 +1,52 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟裹裹运单状态查询 API请求 +taobao.omniorder.store.sdtstatus + +提供给商家查询运力单的状态。 +*/ +type TaobaoOmniorderStoreSdtstatusAPIRequest struct { + model.Params + // 菜鸟裹裹的包裹ID + _packageId int64 +} + +// 初始化TaobaoOmniorderStoreSdtstatusAPIRequest对象 +func NewTaobaoOmniorderStoreSdtstatusRequest() *TaobaoOmniorderStoreSdtstatusAPIRequest{ + return &TaobaoOmniorderStoreSdtstatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderStoreSdtstatusAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.store.sdtstatus" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderStoreSdtstatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PackageId Setter +// 菜鸟裹裹的包裹ID +func (r *TaobaoOmniorderStoreSdtstatusAPIRequest) SetPackageId(_packageId int64) error { + r._packageId = _packageId + r.Set("package_id", _packageId) + return nil +} + +// PackageId Getter +func (r TaobaoOmniorderStoreSdtstatusAPIRequest) GetPackageId() int64 { + return r._packageId +} diff --git a/model/omniorder/TaobaoOmniorderStoreSdtstatusAPIResponse.go b/model/omniorder/TaobaoOmniorderStoreSdtstatusAPIResponse.go new file mode 100644 index 0000000000..0a711bb5a5 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreSdtstatusAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟裹裹运单状态查询 API返回值 +taobao.omniorder.store.sdtstatus + +提供给商家查询运力单的状态。 +*/ +type TaobaoOmniorderStoreSdtstatusAPIResponse struct { + model.CommonResponse + TaobaoOmniorderStoreSdtstatusAPIResponseModel +} + +// 菜鸟裹裹运单状态查询 成功返回结果 +type TaobaoOmniorderStoreSdtstatusAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_store_sdtstatus_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniorderStoreSdtstatusResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderStoreSdtstatusResponse.go b/model/omniorder/TaobaoOmniorderStoreSdtstatusResponse.go deleted file mode 100644 index 47bd617d80..0000000000 --- a/model/omniorder/TaobaoOmniorderStoreSdtstatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -菜鸟裹裹运单状态查询 API返回值 -taobao.omniorder.store.sdtstatus - -提供给商家查询运力单的状态。 -*/ -type TaobaoOmniorderStoreSdtstatusAPIResponse struct { - model.CommonResponse - TaobaoOmniorderStoreSdtstatusResponse -} - -// 菜鸟裹裹运单状态查询 成功返回结果 -type TaobaoOmniorderStoreSdtstatusResponse struct { - XMLName xml.Name `xml:"omniorder_store_sdtstatus_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniorderStoreSdtstatusResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderStoreSwitchstatusGetAPIRequest.go b/model/omniorder/TaobaoOmniorderStoreSwitchstatusGetAPIRequest.go new file mode 100644 index 0000000000..126167e7c0 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreSwitchstatusGetAPIRequest.go @@ -0,0 +1,66 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +switchstatus.get API请求 +taobao.omniorder.store.switchstatus.get + +查询门店发货、门店自提状态 +*/ +type TaobaoOmniorderStoreSwitchstatusGetAPIRequest struct { + model.Params + // 门店ID + _storeId int64 + // 卖家ID + _sellerId int64 +} + +// 初始化TaobaoOmniorderStoreSwitchstatusGetAPIRequest对象 +func NewTaobaoOmniorderStoreSwitchstatusGetRequest() *TaobaoOmniorderStoreSwitchstatusGetAPIRequest{ + return &TaobaoOmniorderStoreSwitchstatusGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderStoreSwitchstatusGetAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.store.switchstatus.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderStoreSwitchstatusGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店ID +func (r *TaobaoOmniorderStoreSwitchstatusGetAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoOmniorderStoreSwitchstatusGetAPIRequest) GetStoreId() int64 { + return r._storeId +} +// SellerId Setter +// 卖家ID +func (r *TaobaoOmniorderStoreSwitchstatusGetAPIRequest) SetSellerId(_sellerId int64) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r TaobaoOmniorderStoreSwitchstatusGetAPIRequest) GetSellerId() int64 { + return r._sellerId +} diff --git a/model/omniorder/TaobaoOmniorderStoreSwitchstatusGetAPIResponse.go b/model/omniorder/TaobaoOmniorderStoreSwitchstatusGetAPIResponse.go new file mode 100644 index 0000000000..aeeb4007fe --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreSwitchstatusGetAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +switchstatus.get API返回值 +taobao.omniorder.store.switchstatus.get + +查询门店发货、门店自提状态 +*/ +type TaobaoOmniorderStoreSwitchstatusGetAPIResponse struct { + model.CommonResponse + TaobaoOmniorderStoreSwitchstatusGetAPIResponseModel +} + +// switchstatus.get 成功返回结果 +type TaobaoOmniorderStoreSwitchstatusGetAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_store_switchstatus_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniorderStoreSwitchstatusGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderStoreSwitchstatusGetResponse.go b/model/omniorder/TaobaoOmniorderStoreSwitchstatusGetResponse.go deleted file mode 100644 index e14cb570ce..0000000000 --- a/model/omniorder/TaobaoOmniorderStoreSwitchstatusGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -switchstatus.get API返回值 -taobao.omniorder.store.switchstatus.get - -查询门店发货、门店自提状态 -*/ -type TaobaoOmniorderStoreSwitchstatusGetAPIResponse struct { - model.CommonResponse - TaobaoOmniorderStoreSwitchstatusGetResponse -} - -// switchstatus.get 成功返回结果 -type TaobaoOmniorderStoreSwitchstatusGetResponse struct { - XMLName xml.Name `xml:"omniorder_store_switchstatus_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniorderStoreSwitchstatusGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderStoreSwitchstatusUpdateAPIRequest.go b/model/omniorder/TaobaoOmniorderStoreSwitchstatusUpdateAPIRequest.go new file mode 100644 index 0000000000..496385eca8 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreSwitchstatusUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +switchstatus.update API请求 +taobao.omniorder.store.switchstatus.update + +变更门店发货、门店自提状态 +*/ +type TaobaoOmniorderStoreSwitchstatusUpdateAPIRequest struct { + model.Params + // 门店ID + _storeId int64 + // 门店发货自提状态 + _status string +} + +// 初始化TaobaoOmniorderStoreSwitchstatusUpdateAPIRequest对象 +func NewTaobaoOmniorderStoreSwitchstatusUpdateRequest() *TaobaoOmniorderStoreSwitchstatusUpdateAPIRequest{ + return &TaobaoOmniorderStoreSwitchstatusUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderStoreSwitchstatusUpdateAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.store.switchstatus.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderStoreSwitchstatusUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店ID +func (r *TaobaoOmniorderStoreSwitchstatusUpdateAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoOmniorderStoreSwitchstatusUpdateAPIRequest) GetStoreId() int64 { + return r._storeId +} +// Status Setter +// 门店发货自提状态 +func (r *TaobaoOmniorderStoreSwitchstatusUpdateAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoOmniorderStoreSwitchstatusUpdateAPIRequest) GetStatus() string { + return r._status +} diff --git a/model/omniorder/TaobaoOmniorderStoreSwitchstatusUpdateAPIResponse.go b/model/omniorder/TaobaoOmniorderStoreSwitchstatusUpdateAPIResponse.go new file mode 100644 index 0000000000..73a0d1e92e --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStoreSwitchstatusUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +switchstatus.update API返回值 +taobao.omniorder.store.switchstatus.update + +变更门店发货、门店自提状态 +*/ +type TaobaoOmniorderStoreSwitchstatusUpdateAPIResponse struct { + model.CommonResponse + TaobaoOmniorderStoreSwitchstatusUpdateAPIResponseModel +} + +// switchstatus.update 成功返回结果 +type TaobaoOmniorderStoreSwitchstatusUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_store_switchstatus_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniorderStoreSwitchstatusUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderStoreSwitchstatusUpdateResponse.go b/model/omniorder/TaobaoOmniorderStoreSwitchstatusUpdateResponse.go deleted file mode 100644 index aea48e31f4..0000000000 --- a/model/omniorder/TaobaoOmniorderStoreSwitchstatusUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -switchstatus.update API返回值 -taobao.omniorder.store.switchstatus.update - -变更门店发货、门店自提状态 -*/ -type TaobaoOmniorderStoreSwitchstatusUpdateAPIResponse struct { - model.CommonResponse - TaobaoOmniorderStoreSwitchstatusUpdateResponse -} - -// switchstatus.update 成功返回结果 -type TaobaoOmniorderStoreSwitchstatusUpdateResponse struct { - XMLName xml.Name `xml:"omniorder_store_switchstatus_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniorderStoreSwitchstatusUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderStorecollectConsumeAPIRequest.go b/model/omniorder/TaobaoOmniorderStorecollectConsumeAPIRequest.go new file mode 100644 index 0000000000..92b037df9e --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStorecollectConsumeAPIRequest.go @@ -0,0 +1,80 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道门店自提核销订单 API请求 +taobao.omniorder.storecollect.consume + +全渠道门店自提核销订单 +*/ +type TaobaoOmniorderStorecollectConsumeAPIRequest struct { + model.Params + // 核销码 + _code string + // 淘宝主订单ID + _mainOrderId int64 + // 核销操作人信息 + _operator string +} + +// 初始化TaobaoOmniorderStorecollectConsumeAPIRequest对象 +func NewTaobaoOmniorderStorecollectConsumeRequest() *TaobaoOmniorderStorecollectConsumeAPIRequest{ + return &TaobaoOmniorderStorecollectConsumeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderStorecollectConsumeAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.storecollect.consume" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderStorecollectConsumeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 核销码 +func (r *TaobaoOmniorderStorecollectConsumeAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r TaobaoOmniorderStorecollectConsumeAPIRequest) GetCode() string { + return r._code +} +// MainOrderId Setter +// 淘宝主订单ID +func (r *TaobaoOmniorderStorecollectConsumeAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r TaobaoOmniorderStorecollectConsumeAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} +// Operator Setter +// 核销操作人信息 +func (r *TaobaoOmniorderStorecollectConsumeAPIRequest) SetOperator(_operator string) error { + r._operator = _operator + r.Set("operator", _operator) + return nil +} + +// Operator Getter +func (r TaobaoOmniorderStorecollectConsumeAPIRequest) GetOperator() string { + return r._operator +} diff --git a/model/omniorder/TaobaoOmniorderStorecollectConsumeAPIResponse.go b/model/omniorder/TaobaoOmniorderStorecollectConsumeAPIResponse.go new file mode 100644 index 0000000000..59de20ff46 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStorecollectConsumeAPIResponse.go @@ -0,0 +1,29 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道门店自提核销订单 API返回值 +taobao.omniorder.storecollect.consume + +全渠道门店自提核销订单 +*/ +type TaobaoOmniorderStorecollectConsumeAPIResponse struct { + model.CommonResponse + TaobaoOmniorderStorecollectConsumeAPIResponseModel +} + +// 全渠道门店自提核销订单 成功返回结果 +type TaobaoOmniorderStorecollectConsumeAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_storecollect_consume_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 0表示成功 + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 核销错误信息 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderStorecollectConsumeResponse.go b/model/omniorder/TaobaoOmniorderStorecollectConsumeResponse.go deleted file mode 100644 index 7dca36fc54..0000000000 --- a/model/omniorder/TaobaoOmniorderStorecollectConsumeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -全渠道门店自提核销订单 API返回值 -taobao.omniorder.storecollect.consume - -全渠道门店自提核销订单 -*/ -type TaobaoOmniorderStorecollectConsumeAPIResponse struct { - model.CommonResponse - TaobaoOmniorderStorecollectConsumeResponse -} - -// 全渠道门店自提核销订单 成功返回结果 -type TaobaoOmniorderStorecollectConsumeResponse struct { - XMLName xml.Name `xml:"omniorder_storecollect_consume_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 0表示成功 - ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` - // 核销错误信息 - ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` -} diff --git a/model/omniorder/TaobaoOmniorderStorecollectQueryAPIRequest.go b/model/omniorder/TaobaoOmniorderStorecollectQueryAPIRequest.go new file mode 100644 index 0000000000..847647b416 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStorecollectQueryAPIRequest.go @@ -0,0 +1,52 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道门店自提根据核销码查询订单 API请求 +taobao.omniorder.storecollect.query + +全渠道门店自提根据核销码查询订单 +*/ +type TaobaoOmniorderStorecollectQueryAPIRequest struct { + model.Params + // 核销码 + _code string +} + +// 初始化TaobaoOmniorderStorecollectQueryAPIRequest对象 +func NewTaobaoOmniorderStorecollectQueryRequest() *TaobaoOmniorderStorecollectQueryAPIRequest{ + return &TaobaoOmniorderStorecollectQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOmniorderStorecollectQueryAPIRequest) GetApiMethodName() string { + return "taobao.omniorder.storecollect.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOmniorderStorecollectQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 核销码 +func (r *TaobaoOmniorderStorecollectQueryAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r TaobaoOmniorderStorecollectQueryAPIRequest) GetCode() string { + return r._code +} diff --git a/model/omniorder/TaobaoOmniorderStorecollectQueryAPIResponse.go b/model/omniorder/TaobaoOmniorderStorecollectQueryAPIResponse.go new file mode 100644 index 0000000000..c9f2428680 --- /dev/null +++ b/model/omniorder/TaobaoOmniorderStorecollectQueryAPIResponse.go @@ -0,0 +1,27 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +全渠道门店自提根据核销码查询订单 API返回值 +taobao.omniorder.storecollect.query + +全渠道门店自提根据核销码查询订单 +*/ +type TaobaoOmniorderStorecollectQueryAPIResponse struct { + model.CommonResponse + TaobaoOmniorderStorecollectQueryAPIResponseModel +} + +// 全渠道门店自提根据核销码查询订单 成功返回结果 +type TaobaoOmniorderStorecollectQueryAPIResponseModel struct { + XMLName xml.Name `xml:"omniorder_storecollect_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOmniorderStorecollectQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/omniorder/TaobaoOmniorderStorecollectQueryResponse.go b/model/omniorder/TaobaoOmniorderStorecollectQueryResponse.go deleted file mode 100644 index f2cd27f094..0000000000 --- a/model/omniorder/TaobaoOmniorderStorecollectQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -全渠道门店自提根据核销码查询订单 API返回值 -taobao.omniorder.storecollect.query - -全渠道门店自提根据核销码查询订单 -*/ -type TaobaoOmniorderStorecollectQueryAPIResponse struct { - model.CommonResponse - TaobaoOmniorderStorecollectQueryResponse -} - -// 全渠道门店自提根据核销码查询订单 成功返回结果 -type TaobaoOmniorderStorecollectQueryResponse struct { - XMLName xml.Name `xml:"omniorder_storecollect_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOmniorderStorecollectQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/omniorder/TaobaoQimenItemsMarkingAPIRequest.go b/model/omniorder/TaobaoQimenItemsMarkingAPIRequest.go new file mode 100644 index 0000000000..49c63663e7 --- /dev/null +++ b/model/omniorder/TaobaoQimenItemsMarkingAPIRequest.go @@ -0,0 +1,94 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品通自动打标 API请求 +taobao.qimen.items.marking + +调用该接口,对商品进行XXXX标的打标、去标的动作。 +*/ +type TaobaoQimenItemsMarkingAPIRequest struct { + model.Params + // 操作类型,string(50),ADD=打标,DELETE=去标,必填 + _actionType string + // 打标值,string(50),TBKU=同步库存标,MDZT=门店自提标,必填 + _tagType string + // 线上商品ID,long,必填 + _itemIds []int64 + // 备注,string(500) + _remark string +} + +// 初始化TaobaoQimenItemsMarkingAPIRequest对象 +func NewTaobaoQimenItemsMarkingRequest() *TaobaoQimenItemsMarkingAPIRequest{ + return &TaobaoQimenItemsMarkingAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenItemsMarkingAPIRequest) GetApiMethodName() string { + return "taobao.qimen.items.marking" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenItemsMarkingAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActionType Setter +// 操作类型,string(50),ADD=打标,DELETE=去标,必填 +func (r *TaobaoQimenItemsMarkingAPIRequest) SetActionType(_actionType string) error { + r._actionType = _actionType + r.Set("action_type", _actionType) + return nil +} + +// ActionType Getter +func (r TaobaoQimenItemsMarkingAPIRequest) GetActionType() string { + return r._actionType +} +// TagType Setter +// 打标值,string(50),TBKU=同步库存标,MDZT=门店自提标,必填 +func (r *TaobaoQimenItemsMarkingAPIRequest) SetTagType(_tagType string) error { + r._tagType = _tagType + r.Set("tag_type", _tagType) + return nil +} + +// TagType Getter +func (r TaobaoQimenItemsMarkingAPIRequest) GetTagType() string { + return r._tagType +} +// ItemIds Setter +// 线上商品ID,long,必填 +func (r *TaobaoQimenItemsMarkingAPIRequest) SetItemIds(_itemIds []int64) error { + r._itemIds = _itemIds + r.Set("item_ids", _itemIds) + return nil +} + +// ItemIds Getter +func (r TaobaoQimenItemsMarkingAPIRequest) GetItemIds() []int64 { + return r._itemIds +} +// Remark Setter +// 备注,string(500) +func (r *TaobaoQimenItemsMarkingAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r TaobaoQimenItemsMarkingAPIRequest) GetRemark() string { + return r._remark +} diff --git a/model/omniorder/TaobaoQimenItemsMarkingAPIResponse.go b/model/omniorder/TaobaoQimenItemsMarkingAPIResponse.go new file mode 100644 index 0000000000..7cf869f772 --- /dev/null +++ b/model/omniorder/TaobaoQimenItemsMarkingAPIResponse.go @@ -0,0 +1,29 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品通自动打标 API返回值 +taobao.qimen.items.marking + +调用该接口,对商品进行XXXX标的打标、去标的动作。 +*/ +type TaobaoQimenItemsMarkingAPIResponse struct { + model.CommonResponse + TaobaoQimenItemsMarkingAPIResponseModel +} + +// 商品通自动打标 成功返回结果 +type TaobaoQimenItemsMarkingAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_items_marking_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // flag + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/omniorder/TaobaoQimenItemsMarkingResponse.go b/model/omniorder/TaobaoQimenItemsMarkingResponse.go deleted file mode 100644 index 8465e28f0f..0000000000 --- a/model/omniorder/TaobaoQimenItemsMarkingResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品通自动打标 API返回值 -taobao.qimen.items.marking - -调用该接口,对商品进行XXXX标的打标、去标的动作。 -*/ -type TaobaoQimenItemsMarkingAPIResponse struct { - model.CommonResponse - TaobaoQimenItemsMarkingResponse -} - -// 商品通自动打标 成功返回结果 -type TaobaoQimenItemsMarkingResponse struct { - XMLName xml.Name `xml:"qimen_items_marking_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // flag - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/omniorder/TaobaoQimenItemsTagQueryAPIRequest.go b/model/omniorder/TaobaoQimenItemsTagQueryAPIRequest.go new file mode 100644 index 0000000000..390ea0a3ea --- /dev/null +++ b/model/omniorder/TaobaoQimenItemsTagQueryAPIRequest.go @@ -0,0 +1,52 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +打标结果查询-商品维度 API请求 +taobao.qimen.items.tag.query + +调用该接口,查询某个/某批商品上的标 +*/ +type TaobaoQimenItemsTagQueryAPIRequest struct { + model.Params + // 线上淘宝商品ID,long,必填 + _itemIds []int64 +} + +// 初始化TaobaoQimenItemsTagQueryAPIRequest对象 +func NewTaobaoQimenItemsTagQueryRequest() *TaobaoQimenItemsTagQueryAPIRequest{ + return &TaobaoQimenItemsTagQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenItemsTagQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.items.tag.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenItemsTagQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemIds Setter +// 线上淘宝商品ID,long,必填 +func (r *TaobaoQimenItemsTagQueryAPIRequest) SetItemIds(_itemIds []int64) error { + r._itemIds = _itemIds + r.Set("item_ids", _itemIds) + return nil +} + +// ItemIds Getter +func (r TaobaoQimenItemsTagQueryAPIRequest) GetItemIds() []int64 { + return r._itemIds +} diff --git a/model/omniorder/TaobaoQimenItemsTagQueryAPIResponse.go b/model/omniorder/TaobaoQimenItemsTagQueryAPIResponse.go new file mode 100644 index 0000000000..7e90ff7b89 --- /dev/null +++ b/model/omniorder/TaobaoQimenItemsTagQueryAPIResponse.go @@ -0,0 +1,31 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +打标结果查询-商品维度 API返回值 +taobao.qimen.items.tag.query + +调用该接口,查询某个/某批商品上的标 +*/ +type TaobaoQimenItemsTagQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenItemsTagQueryAPIResponseModel +} + +// 打标结果查询-商品维度 成功返回结果 +type TaobaoQimenItemsTagQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_items_tag_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // flag + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // itemTags + ItemTags []ItemTag `json:"item_tags,omitempty" xml:"item_tags>item_tag,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/omniorder/TaobaoQimenItemsTagQueryResponse.go b/model/omniorder/TaobaoQimenItemsTagQueryResponse.go deleted file mode 100644 index 2b2778509a..0000000000 --- a/model/omniorder/TaobaoQimenItemsTagQueryResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -打标结果查询-商品维度 API返回值 -taobao.qimen.items.tag.query - -调用该接口,查询某个/某批商品上的标 -*/ -type TaobaoQimenItemsTagQueryAPIResponse struct { - model.CommonResponse - TaobaoQimenItemsTagQueryResponse -} - -// 打标结果查询-商品维度 成功返回结果 -type TaobaoQimenItemsTagQueryResponse struct { - XMLName xml.Name `xml:"qimen_items_tag_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // flag - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // itemTags - ItemTags []ItemTag `json:"item_tags,omitempty" xml:"item_tags>item_tag,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/omniorder/TaobaoQimenTagItemsQueryAPIRequest.go b/model/omniorder/TaobaoQimenTagItemsQueryAPIRequest.go new file mode 100644 index 0000000000..0bc4541257 --- /dev/null +++ b/model/omniorder/TaobaoQimenTagItemsQueryAPIRequest.go @@ -0,0 +1,66 @@ +package omniorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +打标结果查询-标维度 API请求 +taobao.qimen.tag.items.query + +调用该接口,查询打了某个标的商品列表。说明:该接口调用后,返回值的时间较长,建议不要经常调用。 +*/ +type TaobaoQimenTagItemsQueryAPIRequest struct { + model.Params + // 打标值,string(50),TBKU=同步库存标,MDZT=门店自提标,必填 + _tagType string + // 备注,string(500) + _remark string +} + +// 初始化TaobaoQimenTagItemsQueryAPIRequest对象 +func NewTaobaoQimenTagItemsQueryRequest() *TaobaoQimenTagItemsQueryAPIRequest{ + return &TaobaoQimenTagItemsQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenTagItemsQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.tag.items.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenTagItemsQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TagType Setter +// 打标值,string(50),TBKU=同步库存标,MDZT=门店自提标,必填 +func (r *TaobaoQimenTagItemsQueryAPIRequest) SetTagType(_tagType string) error { + r._tagType = _tagType + r.Set("tag_type", _tagType) + return nil +} + +// TagType Getter +func (r TaobaoQimenTagItemsQueryAPIRequest) GetTagType() string { + return r._tagType +} +// Remark Setter +// 备注,string(500) +func (r *TaobaoQimenTagItemsQueryAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r TaobaoQimenTagItemsQueryAPIRequest) GetRemark() string { + return r._remark +} diff --git a/model/omniorder/TaobaoQimenTagItemsQueryAPIResponse.go b/model/omniorder/TaobaoQimenTagItemsQueryAPIResponse.go new file mode 100644 index 0000000000..efe008c17a --- /dev/null +++ b/model/omniorder/TaobaoQimenTagItemsQueryAPIResponse.go @@ -0,0 +1,33 @@ +package omniorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +打标结果查询-标维度 API返回值 +taobao.qimen.tag.items.query + +调用该接口,查询打了某个标的商品列表。说明:该接口调用后,返回值的时间较长,建议不要经常调用。 +*/ +type TaobaoQimenTagItemsQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenTagItemsQueryAPIResponseModel +} + +// 打标结果查询-标维度 成功返回结果 +type TaobaoQimenTagItemsQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_tag_items_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // flag + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // itemIds + ItemIds []int64 `json:"item_ids,omitempty" xml:"item_ids>int64,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // tagType + TagType string `json:"tag_type,omitempty" xml:"tag_type,omitempty"` +} diff --git a/model/omniorder/TaobaoQimenTagItemsQueryResponse.go b/model/omniorder/TaobaoQimenTagItemsQueryResponse.go deleted file mode 100644 index eb03a4c074..0000000000 --- a/model/omniorder/TaobaoQimenTagItemsQueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package omniorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -打标结果查询-标维度 API返回值 -taobao.qimen.tag.items.query - -调用该接口,查询打了某个标的商品列表。说明:该接口调用后,返回值的时间较长,建议不要经常调用。 -*/ -type TaobaoQimenTagItemsQueryAPIResponse struct { - model.CommonResponse - TaobaoQimenTagItemsQueryResponse -} - -// 打标结果查询-标维度 成功返回结果 -type TaobaoQimenTagItemsQueryResponse struct { - XMLName xml.Name `xml:"qimen_tag_items_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // flag - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // itemIds - ItemIds []int64 `json:"item_ids,omitempty" xml:"item_ids>int64,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // tagType - TagType string `json:"tag_type,omitempty" xml:"tag_type,omitempty"` -} diff --git a/model/openim/TaobaoOpenimAppChatlogsGetAPIRequest.go b/model/openim/TaobaoOpenimAppChatlogsGetAPIRequest.go new file mode 100644 index 0000000000..b44e3edeb3 --- /dev/null +++ b/model/openim/TaobaoOpenimAppChatlogsGetAPIRequest.go @@ -0,0 +1,94 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +openim应用聊天记录查询 API请求 +taobao.openim.app.chatlogs.get + +查询openim应用的聊天记录 +*/ +type TaobaoOpenimAppChatlogsGetAPIRequest struct { + model.Params + // 查询结束时间。UTC时间。精度到秒 + _beg int64 + // 查询结束时间。UTC时间。精度到秒 + _end int64 + // 查询最大条数 + _count int64 + // 迭代key + _next string +} + +// 初始化TaobaoOpenimAppChatlogsGetAPIRequest对象 +func NewTaobaoOpenimAppChatlogsGetRequest() *TaobaoOpenimAppChatlogsGetAPIRequest{ + return &TaobaoOpenimAppChatlogsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimAppChatlogsGetAPIRequest) GetApiMethodName() string { + return "taobao.openim.app.chatlogs.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimAppChatlogsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Beg Setter +// 查询结束时间。UTC时间。精度到秒 +func (r *TaobaoOpenimAppChatlogsGetAPIRequest) SetBeg(_beg int64) error { + r._beg = _beg + r.Set("beg", _beg) + return nil +} + +// Beg Getter +func (r TaobaoOpenimAppChatlogsGetAPIRequest) GetBeg() int64 { + return r._beg +} +// End Setter +// 查询结束时间。UTC时间。精度到秒 +func (r *TaobaoOpenimAppChatlogsGetAPIRequest) SetEnd(_end int64) error { + r._end = _end + r.Set("end", _end) + return nil +} + +// End Getter +func (r TaobaoOpenimAppChatlogsGetAPIRequest) GetEnd() int64 { + return r._end +} +// Count Setter +// 查询最大条数 +func (r *TaobaoOpenimAppChatlogsGetAPIRequest) SetCount(_count int64) error { + r._count = _count + r.Set("count", _count) + return nil +} + +// Count Getter +func (r TaobaoOpenimAppChatlogsGetAPIRequest) GetCount() int64 { + return r._count +} +// Next Setter +// 迭代key +func (r *TaobaoOpenimAppChatlogsGetAPIRequest) SetNext(_next string) error { + r._next = _next + r.Set("next", _next) + return nil +} + +// Next Getter +func (r TaobaoOpenimAppChatlogsGetAPIRequest) GetNext() string { + return r._next +} diff --git a/model/openim/TaobaoOpenimAppChatlogsGetAPIResponse.go b/model/openim/TaobaoOpenimAppChatlogsGetAPIResponse.go new file mode 100644 index 0000000000..ba65175718 --- /dev/null +++ b/model/openim/TaobaoOpenimAppChatlogsGetAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +openim应用聊天记录查询 API返回值 +taobao.openim.app.chatlogs.get + +查询openim应用的聊天记录 +*/ +type TaobaoOpenimAppChatlogsGetAPIResponse struct { + model.CommonResponse + TaobaoOpenimAppChatlogsGetAPIResponseModel +} + +// openim应用聊天记录查询 成功返回结果 +type TaobaoOpenimAppChatlogsGetAPIResponseModel struct { + XMLName xml.Name `xml:"openim_app_chatlogs_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果 + Result *EsMessageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/openim/TaobaoOpenimAppChatlogsGetResponse.go b/model/openim/TaobaoOpenimAppChatlogsGetResponse.go deleted file mode 100644 index 6c7ade15b6..0000000000 --- a/model/openim/TaobaoOpenimAppChatlogsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -openim应用聊天记录查询 API返回值 -taobao.openim.app.chatlogs.get - -查询openim应用的聊天记录 -*/ -type TaobaoOpenimAppChatlogsGetAPIResponse struct { - model.CommonResponse - TaobaoOpenimAppChatlogsGetResponse -} - -// openim应用聊天记录查询 成功返回结果 -type TaobaoOpenimAppChatlogsGetResponse struct { - XMLName xml.Name `xml:"openim_app_chatlogs_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果 - Result *EsMessageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/openim/TaobaoOpenimChatlogsGetAPIRequest.go b/model/openim/TaobaoOpenimChatlogsGetAPIRequest.go new file mode 100644 index 0000000000..2bebd2f3fe --- /dev/null +++ b/model/openim/TaobaoOpenimChatlogsGetAPIRequest.go @@ -0,0 +1,122 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +openim聊天记录查询接口 API请求 +taobao.openim.chatlogs.get + +查询openim账号聊天记录 +*/ +type TaobaoOpenimChatlogsGetAPIRequest struct { + model.Params + // 用户1信息 + _user1 *OpenImUser + // 用户2信息 + _user2 *OpenImUser + // 查询开始时间(UTC时间) + _begin int64 + // 查询结束时间(UTC时间) + _end int64 + // 查询条数 + _count int64 + // 迭代key + _nextKey string +} + +// 初始化TaobaoOpenimChatlogsGetAPIRequest对象 +func NewTaobaoOpenimChatlogsGetRequest() *TaobaoOpenimChatlogsGetAPIRequest{ + return &TaobaoOpenimChatlogsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimChatlogsGetAPIRequest) GetApiMethodName() string { + return "taobao.openim.chatlogs.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimChatlogsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// User1 Setter +// 用户1信息 +func (r *TaobaoOpenimChatlogsGetAPIRequest) SetUser1(_user1 *OpenImUser) error { + r._user1 = _user1 + r.Set("user1", _user1) + return nil +} + +// User1 Getter +func (r TaobaoOpenimChatlogsGetAPIRequest) GetUser1() *OpenImUser { + return r._user1 +} +// User2 Setter +// 用户2信息 +func (r *TaobaoOpenimChatlogsGetAPIRequest) SetUser2(_user2 *OpenImUser) error { + r._user2 = _user2 + r.Set("user2", _user2) + return nil +} + +// User2 Getter +func (r TaobaoOpenimChatlogsGetAPIRequest) GetUser2() *OpenImUser { + return r._user2 +} +// Begin Setter +// 查询开始时间(UTC时间) +func (r *TaobaoOpenimChatlogsGetAPIRequest) SetBegin(_begin int64) error { + r._begin = _begin + r.Set("begin", _begin) + return nil +} + +// Begin Getter +func (r TaobaoOpenimChatlogsGetAPIRequest) GetBegin() int64 { + return r._begin +} +// End Setter +// 查询结束时间(UTC时间) +func (r *TaobaoOpenimChatlogsGetAPIRequest) SetEnd(_end int64) error { + r._end = _end + r.Set("end", _end) + return nil +} + +// End Getter +func (r TaobaoOpenimChatlogsGetAPIRequest) GetEnd() int64 { + return r._end +} +// Count Setter +// 查询条数 +func (r *TaobaoOpenimChatlogsGetAPIRequest) SetCount(_count int64) error { + r._count = _count + r.Set("count", _count) + return nil +} + +// Count Getter +func (r TaobaoOpenimChatlogsGetAPIRequest) GetCount() int64 { + return r._count +} +// NextKey Setter +// 迭代key +func (r *TaobaoOpenimChatlogsGetAPIRequest) SetNextKey(_nextKey string) error { + r._nextKey = _nextKey + r.Set("next_key", _nextKey) + return nil +} + +// NextKey Getter +func (r TaobaoOpenimChatlogsGetAPIRequest) GetNextKey() string { + return r._nextKey +} diff --git a/model/openim/TaobaoOpenimChatlogsGetAPIResponse.go b/model/openim/TaobaoOpenimChatlogsGetAPIResponse.go new file mode 100644 index 0000000000..ea895ccf99 --- /dev/null +++ b/model/openim/TaobaoOpenimChatlogsGetAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +openim聊天记录查询接口 API返回值 +taobao.openim.chatlogs.get + +查询openim账号聊天记录 +*/ +type TaobaoOpenimChatlogsGetAPIResponse struct { + model.CommonResponse + TaobaoOpenimChatlogsGetAPIResponseModel +} + +// openim聊天记录查询接口 成功返回结果 +type TaobaoOpenimChatlogsGetAPIResponseModel struct { + XMLName xml.Name `xml:"openim_chatlogs_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 聊天记录查询结果 + Result *RoamingMessageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/openim/TaobaoOpenimChatlogsGetResponse.go b/model/openim/TaobaoOpenimChatlogsGetResponse.go deleted file mode 100644 index 6ecb1aa452..0000000000 --- a/model/openim/TaobaoOpenimChatlogsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -openim聊天记录查询接口 API返回值 -taobao.openim.chatlogs.get - -查询openim账号聊天记录 -*/ -type TaobaoOpenimChatlogsGetAPIResponse struct { - model.CommonResponse - TaobaoOpenimChatlogsGetResponse -} - -// openim聊天记录查询接口 成功返回结果 -type TaobaoOpenimChatlogsGetResponse struct { - XMLName xml.Name `xml:"openim_chatlogs_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 聊天记录查询结果 - Result *RoamingMessageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/openim/TaobaoOpenimChatlogsImportAPIRequest.go b/model/openim/TaobaoOpenimChatlogsImportAPIRequest.go new file mode 100644 index 0000000000..d9f1281fca --- /dev/null +++ b/model/openim/TaobaoOpenimChatlogsImportAPIRequest.go @@ -0,0 +1,52 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +openim单聊消息导入 API请求 +taobao.openim.chatlogs.import + +提供openim账号的聊天消息导入功能 +*/ +type TaobaoOpenimChatlogsImportAPIRequest struct { + model.Params + // 消息序列 + _messages []TextMessage +} + +// 初始化TaobaoOpenimChatlogsImportAPIRequest对象 +func NewTaobaoOpenimChatlogsImportRequest() *TaobaoOpenimChatlogsImportAPIRequest{ + return &TaobaoOpenimChatlogsImportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimChatlogsImportAPIRequest) GetApiMethodName() string { + return "taobao.openim.chatlogs.import" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimChatlogsImportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Messages Setter +// 消息序列 +func (r *TaobaoOpenimChatlogsImportAPIRequest) SetMessages(_messages []TextMessage) error { + r._messages = _messages + r.Set("messages", _messages) + return nil +} + +// Messages Getter +func (r TaobaoOpenimChatlogsImportAPIRequest) GetMessages() []TextMessage { + return r._messages +} diff --git a/model/openim/TaobaoOpenimChatlogsImportAPIResponse.go b/model/openim/TaobaoOpenimChatlogsImportAPIResponse.go new file mode 100644 index 0000000000..a5c0f952a5 --- /dev/null +++ b/model/openim/TaobaoOpenimChatlogsImportAPIResponse.go @@ -0,0 +1,31 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +openim单聊消息导入 API返回值 +taobao.openim.chatlogs.import + +提供openim账号的聊天消息导入功能 +*/ +type TaobaoOpenimChatlogsImportAPIResponse struct { + model.CommonResponse + TaobaoOpenimChatlogsImportAPIResponseModel +} + +// openim单聊消息导入 成功返回结果 +type TaobaoOpenimChatlogsImportAPIResponseModel struct { + XMLName xml.Name `xml:"openim_chatlogs_import_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + Ret int64 `json:"ret,omitempty" xml:"ret,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 是否成功 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` +} diff --git a/model/openim/TaobaoOpenimChatlogsImportResponse.go b/model/openim/TaobaoOpenimChatlogsImportResponse.go deleted file mode 100644 index 7b1426a34c..0000000000 --- a/model/openim/TaobaoOpenimChatlogsImportResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -openim单聊消息导入 API返回值 -taobao.openim.chatlogs.import - -提供openim账号的聊天消息导入功能 -*/ -type TaobaoOpenimChatlogsImportAPIResponse struct { - model.CommonResponse - TaobaoOpenimChatlogsImportResponse -} - -// openim单聊消息导入 成功返回结果 -type TaobaoOpenimChatlogsImportResponse struct { - XMLName xml.Name `xml:"openim_chatlogs_import_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - Ret int64 `json:"ret,omitempty" xml:"ret,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 是否成功 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` -} diff --git a/model/openim/TaobaoOpenimCustmsgPushAPIRequest.go b/model/openim/TaobaoOpenimCustmsgPushAPIRequest.go new file mode 100644 index 0000000000..86cf17dfb1 --- /dev/null +++ b/model/openim/TaobaoOpenimCustmsgPushAPIRequest.go @@ -0,0 +1,52 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推送自定义openim消息 API请求 +taobao.openim.custmsg.push + +isv通过该接口给openim用户推送自定义消息 +*/ +type TaobaoOpenimCustmsgPushAPIRequest struct { + model.Params + // 自定义消息内容 + _custmsg *CustMsg +} + +// 初始化TaobaoOpenimCustmsgPushAPIRequest对象 +func NewTaobaoOpenimCustmsgPushRequest() *TaobaoOpenimCustmsgPushAPIRequest{ + return &TaobaoOpenimCustmsgPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimCustmsgPushAPIRequest) GetApiMethodName() string { + return "taobao.openim.custmsg.push" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimCustmsgPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Custmsg Setter +// 自定义消息内容 +func (r *TaobaoOpenimCustmsgPushAPIRequest) SetCustmsg(_custmsg *CustMsg) error { + r._custmsg = _custmsg + r.Set("custmsg", _custmsg) + return nil +} + +// Custmsg Getter +func (r TaobaoOpenimCustmsgPushAPIRequest) GetCustmsg() *CustMsg { + return r._custmsg +} diff --git a/model/openim/TaobaoOpenimCustmsgPushAPIResponse.go b/model/openim/TaobaoOpenimCustmsgPushAPIResponse.go new file mode 100644 index 0000000000..9dcb74ea51 --- /dev/null +++ b/model/openim/TaobaoOpenimCustmsgPushAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推送自定义openim消息 API返回值 +taobao.openim.custmsg.push + +isv通过该接口给openim用户推送自定义消息 +*/ +type TaobaoOpenimCustmsgPushAPIResponse struct { + model.CommonResponse + TaobaoOpenimCustmsgPushAPIResponseModel +} + +// 推送自定义openim消息 成功返回结果 +type TaobaoOpenimCustmsgPushAPIResponseModel struct { + XMLName xml.Name `xml:"openim_custmsg_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 消息id,用于定位问题 + Msgid int64 `json:"msgid,omitempty" xml:"msgid,omitempty"` +} diff --git a/model/openim/TaobaoOpenimCustmsgPushResponse.go b/model/openim/TaobaoOpenimCustmsgPushResponse.go deleted file mode 100644 index a5c0104551..0000000000 --- a/model/openim/TaobaoOpenimCustmsgPushResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推送自定义openim消息 API返回值 -taobao.openim.custmsg.push - -isv通过该接口给openim用户推送自定义消息 -*/ -type TaobaoOpenimCustmsgPushAPIResponse struct { - model.CommonResponse - TaobaoOpenimCustmsgPushResponse -} - -// 推送自定义openim消息 成功返回结果 -type TaobaoOpenimCustmsgPushResponse struct { - XMLName xml.Name `xml:"openim_custmsg_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 消息id,用于定位问题 - Msgid int64 `json:"msgid,omitempty" xml:"msgid,omitempty"` -} diff --git a/model/openim/TaobaoOpenimImmsgPushAPIRequest.go b/model/openim/TaobaoOpenimImmsgPushAPIRequest.go new file mode 100644 index 0000000000..2c8ae6f959 --- /dev/null +++ b/model/openim/TaobaoOpenimImmsgPushAPIRequest.go @@ -0,0 +1,52 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +openim标准消息发送 API请求 +taobao.openim.immsg.push + +服务端对openim用户发送标准消息,包括文字、语音、图片等。 +*/ +type TaobaoOpenimImmsgPushAPIRequest struct { + model.Params + // openim消息结构体 + _immsg *ImMsg +} + +// 初始化TaobaoOpenimImmsgPushAPIRequest对象 +func NewTaobaoOpenimImmsgPushRequest() *TaobaoOpenimImmsgPushAPIRequest{ + return &TaobaoOpenimImmsgPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimImmsgPushAPIRequest) GetApiMethodName() string { + return "taobao.openim.immsg.push" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimImmsgPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Immsg Setter +// openim消息结构体 +func (r *TaobaoOpenimImmsgPushAPIRequest) SetImmsg(_immsg *ImMsg) error { + r._immsg = _immsg + r.Set("immsg", _immsg) + return nil +} + +// Immsg Getter +func (r TaobaoOpenimImmsgPushAPIRequest) GetImmsg() *ImMsg { + return r._immsg +} diff --git a/model/openim/TaobaoOpenimImmsgPushAPIResponse.go b/model/openim/TaobaoOpenimImmsgPushAPIResponse.go new file mode 100644 index 0000000000..1c9733ecb3 --- /dev/null +++ b/model/openim/TaobaoOpenimImmsgPushAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +openim标准消息发送 API返回值 +taobao.openim.immsg.push + +服务端对openim用户发送标准消息,包括文字、语音、图片等。 +*/ +type TaobaoOpenimImmsgPushAPIResponse struct { + model.CommonResponse + TaobaoOpenimImmsgPushAPIResponseModel +} + +// openim标准消息发送 成功返回结果 +type TaobaoOpenimImmsgPushAPIResponseModel struct { + XMLName xml.Name `xml:"openim_immsg_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 消息id,方便定位问题 + Msgid int64 `json:"msgid,omitempty" xml:"msgid,omitempty"` +} diff --git a/model/openim/TaobaoOpenimImmsgPushResponse.go b/model/openim/TaobaoOpenimImmsgPushResponse.go deleted file mode 100644 index 0bbf2ef24f..0000000000 --- a/model/openim/TaobaoOpenimImmsgPushResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -openim标准消息发送 API返回值 -taobao.openim.immsg.push - -服务端对openim用户发送标准消息,包括文字、语音、图片等。 -*/ -type TaobaoOpenimImmsgPushAPIResponse struct { - model.CommonResponse - TaobaoOpenimImmsgPushResponse -} - -// openim标准消息发送 成功返回结果 -type TaobaoOpenimImmsgPushResponse struct { - XMLName xml.Name `xml:"openim_immsg_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 消息id,方便定位问题 - Msgid int64 `json:"msgid,omitempty" xml:"msgid,omitempty"` -} diff --git a/model/openim/TaobaoOpenimIoscertProductionSetAPIRequest.go b/model/openim/TaobaoOpenimIoscertProductionSetAPIRequest.go new file mode 100644 index 0000000000..108db427c2 --- /dev/null +++ b/model/openim/TaobaoOpenimIoscertProductionSetAPIRequest.go @@ -0,0 +1,66 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设置ios证书 API请求 +taobao.openim.ioscert.production.set + +设置ios证书 +*/ +type TaobaoOpenimIoscertProductionSetAPIRequest struct { + model.Params + // 证书密码 + _password string + // 证书文件内容,base64编码 + _cert string +} + +// 初始化TaobaoOpenimIoscertProductionSetAPIRequest对象 +func NewTaobaoOpenimIoscertProductionSetRequest() *TaobaoOpenimIoscertProductionSetAPIRequest{ + return &TaobaoOpenimIoscertProductionSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimIoscertProductionSetAPIRequest) GetApiMethodName() string { + return "taobao.openim.ioscert.production.set" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimIoscertProductionSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Password Setter +// 证书密码 +func (r *TaobaoOpenimIoscertProductionSetAPIRequest) SetPassword(_password string) error { + r._password = _password + r.Set("password", _password) + return nil +} + +// Password Getter +func (r TaobaoOpenimIoscertProductionSetAPIRequest) GetPassword() string { + return r._password +} +// Cert Setter +// 证书文件内容,base64编码 +func (r *TaobaoOpenimIoscertProductionSetAPIRequest) SetCert(_cert string) error { + r._cert = _cert + r.Set("cert", _cert) + return nil +} + +// Cert Getter +func (r TaobaoOpenimIoscertProductionSetAPIRequest) GetCert() string { + return r._cert +} diff --git a/model/openim/TaobaoOpenimIoscertProductionSetAPIResponse.go b/model/openim/TaobaoOpenimIoscertProductionSetAPIResponse.go new file mode 100644 index 0000000000..40b873f938 --- /dev/null +++ b/model/openim/TaobaoOpenimIoscertProductionSetAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设置ios证书 API返回值 +taobao.openim.ioscert.production.set + +设置ios证书 +*/ +type TaobaoOpenimIoscertProductionSetAPIResponse struct { + model.CommonResponse + TaobaoOpenimIoscertProductionSetAPIResponseModel +} + +// 设置ios证书 成功返回结果 +type TaobaoOpenimIoscertProductionSetAPIResponseModel struct { + XMLName xml.Name `xml:"openim_ioscert_production_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作成功 + Code string `json:"code,omitempty" xml:"code,omitempty"` +} diff --git a/model/openim/TaobaoOpenimIoscertProductionSetResponse.go b/model/openim/TaobaoOpenimIoscertProductionSetResponse.go deleted file mode 100644 index 00725c7708..0000000000 --- a/model/openim/TaobaoOpenimIoscertProductionSetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设置ios证书 API返回值 -taobao.openim.ioscert.production.set - -设置ios证书 -*/ -type TaobaoOpenimIoscertProductionSetAPIResponse struct { - model.CommonResponse - TaobaoOpenimIoscertProductionSetResponse -} - -// 设置ios证书 成功返回结果 -type TaobaoOpenimIoscertProductionSetResponse struct { - XMLName xml.Name `xml:"openim_ioscert_production_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作成功 - Code string `json:"code,omitempty" xml:"code,omitempty"` -} diff --git a/model/openim/TaobaoOpenimIoscertSandboxSetAPIRequest.go b/model/openim/TaobaoOpenimIoscertSandboxSetAPIRequest.go new file mode 100644 index 0000000000..da04f9e93e --- /dev/null +++ b/model/openim/TaobaoOpenimIoscertSandboxSetAPIRequest.go @@ -0,0 +1,66 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设置开发环境证书 API请求 +taobao.openim.ioscert.sandbox.set + +设置开发环境证书 +*/ +type TaobaoOpenimIoscertSandboxSetAPIRequest struct { + model.Params + // 证书内容,base64编码 + _cert string + // 系统自动生成 + _password string +} + +// 初始化TaobaoOpenimIoscertSandboxSetAPIRequest对象 +func NewTaobaoOpenimIoscertSandboxSetRequest() *TaobaoOpenimIoscertSandboxSetAPIRequest{ + return &TaobaoOpenimIoscertSandboxSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimIoscertSandboxSetAPIRequest) GetApiMethodName() string { + return "taobao.openim.ioscert.sandbox.set" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimIoscertSandboxSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Cert Setter +// 证书内容,base64编码 +func (r *TaobaoOpenimIoscertSandboxSetAPIRequest) SetCert(_cert string) error { + r._cert = _cert + r.Set("cert", _cert) + return nil +} + +// Cert Getter +func (r TaobaoOpenimIoscertSandboxSetAPIRequest) GetCert() string { + return r._cert +} +// Password Setter +// 系统自动生成 +func (r *TaobaoOpenimIoscertSandboxSetAPIRequest) SetPassword(_password string) error { + r._password = _password + r.Set("password", _password) + return nil +} + +// Password Getter +func (r TaobaoOpenimIoscertSandboxSetAPIRequest) GetPassword() string { + return r._password +} diff --git a/model/openim/TaobaoOpenimIoscertSandboxSetAPIResponse.go b/model/openim/TaobaoOpenimIoscertSandboxSetAPIResponse.go new file mode 100644 index 0000000000..36d01a63af --- /dev/null +++ b/model/openim/TaobaoOpenimIoscertSandboxSetAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设置开发环境证书 API返回值 +taobao.openim.ioscert.sandbox.set + +设置开发环境证书 +*/ +type TaobaoOpenimIoscertSandboxSetAPIResponse struct { + model.CommonResponse + TaobaoOpenimIoscertSandboxSetAPIResponseModel +} + +// 设置开发环境证书 成功返回结果 +type TaobaoOpenimIoscertSandboxSetAPIResponseModel struct { + XMLName xml.Name `xml:"openim_ioscert_sandbox_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作成功 + Code string `json:"code,omitempty" xml:"code,omitempty"` +} diff --git a/model/openim/TaobaoOpenimIoscertSandboxSetResponse.go b/model/openim/TaobaoOpenimIoscertSandboxSetResponse.go deleted file mode 100644 index e027cb0532..0000000000 --- a/model/openim/TaobaoOpenimIoscertSandboxSetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设置开发环境证书 API返回值 -taobao.openim.ioscert.sandbox.set - -设置开发环境证书 -*/ -type TaobaoOpenimIoscertSandboxSetAPIResponse struct { - model.CommonResponse - TaobaoOpenimIoscertSandboxSetResponse -} - -// 设置开发环境证书 成功返回结果 -type TaobaoOpenimIoscertSandboxSetResponse struct { - XMLName xml.Name `xml:"openim_ioscert_sandbox_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作成功 - Code string `json:"code,omitempty" xml:"code,omitempty"` -} diff --git a/model/openim/TaobaoOpenimRelationsGetAPIRequest.go b/model/openim/TaobaoOpenimRelationsGetAPIRequest.go new file mode 100644 index 0000000000..418f9ec45e --- /dev/null +++ b/model/openim/TaobaoOpenimRelationsGetAPIRequest.go @@ -0,0 +1,80 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取openim账号的聊天关系 API请求 +taobao.openim.relations.get + +获取openim账号的聊天关系 +*/ +type TaobaoOpenimRelationsGetAPIRequest struct { + model.Params + // 查询起始日期。格式yyyyMMdd。不得早于一个月 + _begDate string + // 查询结束日期。格式yyyyMMdd。不得早于一个月 + _endDate string + // 用户信息 + _user *OpenImUser +} + +// 初始化TaobaoOpenimRelationsGetAPIRequest对象 +func NewTaobaoOpenimRelationsGetRequest() *TaobaoOpenimRelationsGetAPIRequest{ + return &TaobaoOpenimRelationsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimRelationsGetAPIRequest) GetApiMethodName() string { + return "taobao.openim.relations.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimRelationsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BegDate Setter +// 查询起始日期。格式yyyyMMdd。不得早于一个月 +func (r *TaobaoOpenimRelationsGetAPIRequest) SetBegDate(_begDate string) error { + r._begDate = _begDate + r.Set("beg_date", _begDate) + return nil +} + +// BegDate Getter +func (r TaobaoOpenimRelationsGetAPIRequest) GetBegDate() string { + return r._begDate +} +// EndDate Setter +// 查询结束日期。格式yyyyMMdd。不得早于一个月 +func (r *TaobaoOpenimRelationsGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoOpenimRelationsGetAPIRequest) GetEndDate() string { + return r._endDate +} +// User Setter +// 用户信息 +func (r *TaobaoOpenimRelationsGetAPIRequest) SetUser(_user *OpenImUser) error { + r._user = _user + r.Set("user", _user) + return nil +} + +// User Getter +func (r TaobaoOpenimRelationsGetAPIRequest) GetUser() *OpenImUser { + return r._user +} diff --git a/model/openim/TaobaoOpenimRelationsGetAPIResponse.go b/model/openim/TaobaoOpenimRelationsGetAPIResponse.go new file mode 100644 index 0000000000..421f7aaf9f --- /dev/null +++ b/model/openim/TaobaoOpenimRelationsGetAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取openim账号的聊天关系 API返回值 +taobao.openim.relations.get + +获取openim账号的聊天关系 +*/ +type TaobaoOpenimRelationsGetAPIResponse struct { + model.CommonResponse + TaobaoOpenimRelationsGetAPIResponseModel +} + +// 获取openim账号的聊天关系 成功返回结果 +type TaobaoOpenimRelationsGetAPIResponseModel struct { + XMLName xml.Name `xml:"openim_relations_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 用户信息列表 + Users []OpenImUser `json:"users,omitempty" xml:"users>open_im_user,omitempty"` +} diff --git a/model/openim/TaobaoOpenimRelationsGetResponse.go b/model/openim/TaobaoOpenimRelationsGetResponse.go deleted file mode 100644 index 25dc37673b..0000000000 --- a/model/openim/TaobaoOpenimRelationsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取openim账号的聊天关系 API返回值 -taobao.openim.relations.get - -获取openim账号的聊天关系 -*/ -type TaobaoOpenimRelationsGetAPIResponse struct { - model.CommonResponse - TaobaoOpenimRelationsGetResponse -} - -// 获取openim账号的聊天关系 成功返回结果 -type TaobaoOpenimRelationsGetResponse struct { - XMLName xml.Name `xml:"openim_relations_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 用户信息列表 - Users []OpenImUser `json:"users,omitempty" xml:"users>open_im_user,omitempty"` -} diff --git a/model/openim/TaobaoOpenimSnfilterwordSetfilterAPIRequest.go b/model/openim/TaobaoOpenimSnfilterwordSetfilterAPIRequest.go new file mode 100644 index 0000000000..a5840f2342 --- /dev/null +++ b/model/openim/TaobaoOpenimSnfilterwordSetfilterAPIRequest.go @@ -0,0 +1,80 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词过滤 API请求 +taobao.openim.snfilterword.setfilter + +设置openim关键词过滤 +*/ +type TaobaoOpenimSnfilterwordSetfilterAPIRequest struct { + model.Params + // 上传者身份信息,区分不同上传者;只是记录,没有身份校验功能 + _creator string + // 需要过滤的关键词 + _filterword string + // 过滤原因描述 + _desc string +} + +// 初始化TaobaoOpenimSnfilterwordSetfilterAPIRequest对象 +func NewTaobaoOpenimSnfilterwordSetfilterRequest() *TaobaoOpenimSnfilterwordSetfilterAPIRequest{ + return &TaobaoOpenimSnfilterwordSetfilterAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimSnfilterwordSetfilterAPIRequest) GetApiMethodName() string { + return "taobao.openim.snfilterword.setfilter" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimSnfilterwordSetfilterAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Creator Setter +// 上传者身份信息,区分不同上传者;只是记录,没有身份校验功能 +func (r *TaobaoOpenimSnfilterwordSetfilterAPIRequest) SetCreator(_creator string) error { + r._creator = _creator + r.Set("creator", _creator) + return nil +} + +// Creator Getter +func (r TaobaoOpenimSnfilterwordSetfilterAPIRequest) GetCreator() string { + return r._creator +} +// Filterword Setter +// 需要过滤的关键词 +func (r *TaobaoOpenimSnfilterwordSetfilterAPIRequest) SetFilterword(_filterword string) error { + r._filterword = _filterword + r.Set("filterword", _filterword) + return nil +} + +// Filterword Getter +func (r TaobaoOpenimSnfilterwordSetfilterAPIRequest) GetFilterword() string { + return r._filterword +} +// Desc Setter +// 过滤原因描述 +func (r *TaobaoOpenimSnfilterwordSetfilterAPIRequest) SetDesc(_desc string) error { + r._desc = _desc + r.Set("desc", _desc) + return nil +} + +// Desc Getter +func (r TaobaoOpenimSnfilterwordSetfilterAPIRequest) GetDesc() string { + return r._desc +} diff --git a/model/openim/TaobaoOpenimSnfilterwordSetfilterAPIResponse.go b/model/openim/TaobaoOpenimSnfilterwordSetfilterAPIResponse.go new file mode 100644 index 0000000000..b22aa53601 --- /dev/null +++ b/model/openim/TaobaoOpenimSnfilterwordSetfilterAPIResponse.go @@ -0,0 +1,29 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词过滤 API返回值 +taobao.openim.snfilterword.setfilter + +设置openim关键词过滤 +*/ +type TaobaoOpenimSnfilterwordSetfilterAPIResponse struct { + model.CommonResponse + TaobaoOpenimSnfilterwordSetfilterAPIResponseModel +} + +// 关键词过滤 成功返回结果 +type TaobaoOpenimSnfilterwordSetfilterAPIResponseModel struct { + XMLName xml.Name `xml:"openim_snfilterword_setfilter_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功 + Errid int64 `json:"errid,omitempty" xml:"errid,omitempty"` + // 错误原因 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/openim/TaobaoOpenimSnfilterwordSetfilterResponse.go b/model/openim/TaobaoOpenimSnfilterwordSetfilterResponse.go deleted file mode 100644 index 5d695cf4fc..0000000000 --- a/model/openim/TaobaoOpenimSnfilterwordSetfilterResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -关键词过滤 API返回值 -taobao.openim.snfilterword.setfilter - -设置openim关键词过滤 -*/ -type TaobaoOpenimSnfilterwordSetfilterAPIResponse struct { - model.CommonResponse - TaobaoOpenimSnfilterwordSetfilterResponse -} - -// 关键词过滤 成功返回结果 -type TaobaoOpenimSnfilterwordSetfilterResponse struct { - XMLName xml.Name `xml:"openim_snfilterword_setfilter_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功 - Errid int64 `json:"errid,omitempty" xml:"errid,omitempty"` - // 错误原因 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/openim/TaobaoOpenimTribeCreateAPIRequest.go b/model/openim/TaobaoOpenimTribeCreateAPIRequest.go new file mode 100644 index 0000000000..610c178a1e --- /dev/null +++ b/model/openim/TaobaoOpenimTribeCreateAPIRequest.go @@ -0,0 +1,108 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建群 API请求 +taobao.openim.tribe.create + +创建一个openim的群 +*/ +type TaobaoOpenimTribeCreateAPIRequest struct { + model.Params + // 用户信息 + _user *OpenImUser + // 群名称 + _tribeName string + // 群公告 + _notice string + // 群类型有两种tribe_type = 0 普通群 普通群有管理员角色,对成员加入有权限控制tribe_type = 1 讨论组 讨论组没有管理员,不能解散 + _tribeType int64 + // 创建群时候拉入群的成员tribe_type = 1(即为讨论组类型)时 该参数为必选tribe_type = 0 (即为普通群类型)时,改参数无效,可不填 + _members []OpenImUser +} + +// 初始化TaobaoOpenimTribeCreateAPIRequest对象 +func NewTaobaoOpenimTribeCreateRequest() *TaobaoOpenimTribeCreateAPIRequest{ + return &TaobaoOpenimTribeCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimTribeCreateAPIRequest) GetApiMethodName() string { + return "taobao.openim.tribe.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimTribeCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// User Setter +// 用户信息 +func (r *TaobaoOpenimTribeCreateAPIRequest) SetUser(_user *OpenImUser) error { + r._user = _user + r.Set("user", _user) + return nil +} + +// User Getter +func (r TaobaoOpenimTribeCreateAPIRequest) GetUser() *OpenImUser { + return r._user +} +// TribeName Setter +// 群名称 +func (r *TaobaoOpenimTribeCreateAPIRequest) SetTribeName(_tribeName string) error { + r._tribeName = _tribeName + r.Set("tribe_name", _tribeName) + return nil +} + +// TribeName Getter +func (r TaobaoOpenimTribeCreateAPIRequest) GetTribeName() string { + return r._tribeName +} +// Notice Setter +// 群公告 +func (r *TaobaoOpenimTribeCreateAPIRequest) SetNotice(_notice string) error { + r._notice = _notice + r.Set("notice", _notice) + return nil +} + +// Notice Getter +func (r TaobaoOpenimTribeCreateAPIRequest) GetNotice() string { + return r._notice +} +// TribeType Setter +// 群类型有两种tribe_type = 0 普通群 普通群有管理员角色,对成员加入有权限控制tribe_type = 1 讨论组 讨论组没有管理员,不能解散 +func (r *TaobaoOpenimTribeCreateAPIRequest) SetTribeType(_tribeType int64) error { + r._tribeType = _tribeType + r.Set("tribe_type", _tribeType) + return nil +} + +// TribeType Getter +func (r TaobaoOpenimTribeCreateAPIRequest) GetTribeType() int64 { + return r._tribeType +} +// Members Setter +// 创建群时候拉入群的成员tribe_type = 1(即为讨论组类型)时 该参数为必选tribe_type = 0 (即为普通群类型)时,改参数无效,可不填 +func (r *TaobaoOpenimTribeCreateAPIRequest) SetMembers(_members []OpenImUser) error { + r._members = _members + r.Set("members", _members) + return nil +} + +// Members Getter +func (r TaobaoOpenimTribeCreateAPIRequest) GetMembers() []OpenImUser { + return r._members +} diff --git a/model/openim/TaobaoOpenimTribeCreateAPIResponse.go b/model/openim/TaobaoOpenimTribeCreateAPIResponse.go new file mode 100644 index 0000000000..59d128f475 --- /dev/null +++ b/model/openim/TaobaoOpenimTribeCreateAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建群 API返回值 +taobao.openim.tribe.create + +创建一个openim的群 +*/ +type TaobaoOpenimTribeCreateAPIResponse struct { + model.CommonResponse + TaobaoOpenimTribeCreateAPIResponseModel +} + +// 创建群 成功返回结果 +type TaobaoOpenimTribeCreateAPIResponseModel struct { + XMLName xml.Name `xml:"openim_tribe_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创建群的信息 + TribeInfo *TribeInfo `json:"tribe_info,omitempty" xml:"tribe_info,omitempty"` +} diff --git a/model/openim/TaobaoOpenimTribeCreateResponse.go b/model/openim/TaobaoOpenimTribeCreateResponse.go deleted file mode 100644 index 4a89c6d132..0000000000 --- a/model/openim/TaobaoOpenimTribeCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建群 API返回值 -taobao.openim.tribe.create - -创建一个openim的群 -*/ -type TaobaoOpenimTribeCreateAPIResponse struct { - model.CommonResponse - TaobaoOpenimTribeCreateResponse -} - -// 创建群 成功返回结果 -type TaobaoOpenimTribeCreateResponse struct { - XMLName xml.Name `xml:"openim_tribe_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创建群的信息 - TribeInfo *TribeInfo `json:"tribe_info,omitempty" xml:"tribe_info,omitempty"` -} diff --git a/model/openim/TaobaoOpenimTribeDismissAPIRequest.go b/model/openim/TaobaoOpenimTribeDismissAPIRequest.go new file mode 100644 index 0000000000..7764531d6b --- /dev/null +++ b/model/openim/TaobaoOpenimTribeDismissAPIRequest.go @@ -0,0 +1,66 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +OPENIM群解散 API请求 +taobao.openim.tribe.dismiss + +OPENIM群解散 +*/ +type TaobaoOpenimTribeDismissAPIRequest struct { + model.Params + // 用户信息 + _user *OpenImUser + // 群id + _tribeId int64 +} + +// 初始化TaobaoOpenimTribeDismissAPIRequest对象 +func NewTaobaoOpenimTribeDismissRequest() *TaobaoOpenimTribeDismissAPIRequest{ + return &TaobaoOpenimTribeDismissAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimTribeDismissAPIRequest) GetApiMethodName() string { + return "taobao.openim.tribe.dismiss" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimTribeDismissAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// User Setter +// 用户信息 +func (r *TaobaoOpenimTribeDismissAPIRequest) SetUser(_user *OpenImUser) error { + r._user = _user + r.Set("user", _user) + return nil +} + +// User Getter +func (r TaobaoOpenimTribeDismissAPIRequest) GetUser() *OpenImUser { + return r._user +} +// TribeId Setter +// 群id +func (r *TaobaoOpenimTribeDismissAPIRequest) SetTribeId(_tribeId int64) error { + r._tribeId = _tribeId + r.Set("tribe_id", _tribeId) + return nil +} + +// TribeId Getter +func (r TaobaoOpenimTribeDismissAPIRequest) GetTribeId() int64 { + return r._tribeId +} diff --git a/model/openim/TaobaoOpenimTribeDismissAPIResponse.go b/model/openim/TaobaoOpenimTribeDismissAPIResponse.go new file mode 100644 index 0000000000..b8ec8c8487 --- /dev/null +++ b/model/openim/TaobaoOpenimTribeDismissAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +OPENIM群解散 API返回值 +taobao.openim.tribe.dismiss + +OPENIM群解散 +*/ +type TaobaoOpenimTribeDismissAPIResponse struct { + model.CommonResponse + TaobaoOpenimTribeDismissAPIResponseModel +} + +// OPENIM群解散 成功返回结果 +type TaobaoOpenimTribeDismissAPIResponseModel struct { + XMLName xml.Name `xml:"openim_tribe_dismiss_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 群服务code + TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` +} diff --git a/model/openim/TaobaoOpenimTribeDismissResponse.go b/model/openim/TaobaoOpenimTribeDismissResponse.go deleted file mode 100644 index cf504eb942..0000000000 --- a/model/openim/TaobaoOpenimTribeDismissResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -OPENIM群解散 API返回值 -taobao.openim.tribe.dismiss - -OPENIM群解散 -*/ -type TaobaoOpenimTribeDismissAPIResponse struct { - model.CommonResponse - TaobaoOpenimTribeDismissResponse -} - -// OPENIM群解散 成功返回结果 -type TaobaoOpenimTribeDismissResponse struct { - XMLName xml.Name `xml:"openim_tribe_dismiss_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 群服务code - TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` -} diff --git a/model/openim/TaobaoOpenimTribeExpelAPIRequest.go b/model/openim/TaobaoOpenimTribeExpelAPIRequest.go new file mode 100644 index 0000000000..87c5c40dc2 --- /dev/null +++ b/model/openim/TaobaoOpenimTribeExpelAPIRequest.go @@ -0,0 +1,80 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +OPENIM群踢出成员 API请求 +taobao.openim.tribe.expel + +OPENIM群踢出成员 +*/ +type TaobaoOpenimTribeExpelAPIRequest struct { + model.Params + // 用户信息 + _user *OpenImUser + // 群id + _tribeId int64 + // 用户信息 + _member *OpenImUser +} + +// 初始化TaobaoOpenimTribeExpelAPIRequest对象 +func NewTaobaoOpenimTribeExpelRequest() *TaobaoOpenimTribeExpelAPIRequest{ + return &TaobaoOpenimTribeExpelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimTribeExpelAPIRequest) GetApiMethodName() string { + return "taobao.openim.tribe.expel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimTribeExpelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// User Setter +// 用户信息 +func (r *TaobaoOpenimTribeExpelAPIRequest) SetUser(_user *OpenImUser) error { + r._user = _user + r.Set("user", _user) + return nil +} + +// User Getter +func (r TaobaoOpenimTribeExpelAPIRequest) GetUser() *OpenImUser { + return r._user +} +// TribeId Setter +// 群id +func (r *TaobaoOpenimTribeExpelAPIRequest) SetTribeId(_tribeId int64) error { + r._tribeId = _tribeId + r.Set("tribe_id", _tribeId) + return nil +} + +// TribeId Getter +func (r TaobaoOpenimTribeExpelAPIRequest) GetTribeId() int64 { + return r._tribeId +} +// Member Setter +// 用户信息 +func (r *TaobaoOpenimTribeExpelAPIRequest) SetMember(_member *OpenImUser) error { + r._member = _member + r.Set("member", _member) + return nil +} + +// Member Getter +func (r TaobaoOpenimTribeExpelAPIRequest) GetMember() *OpenImUser { + return r._member +} diff --git a/model/openim/TaobaoOpenimTribeExpelAPIResponse.go b/model/openim/TaobaoOpenimTribeExpelAPIResponse.go new file mode 100644 index 0000000000..a6ff46534a --- /dev/null +++ b/model/openim/TaobaoOpenimTribeExpelAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +OPENIM群踢出成员 API返回值 +taobao.openim.tribe.expel + +OPENIM群踢出成员 +*/ +type TaobaoOpenimTribeExpelAPIResponse struct { + model.CommonResponse + TaobaoOpenimTribeExpelAPIResponseModel +} + +// OPENIM群踢出成员 成功返回结果 +type TaobaoOpenimTribeExpelAPIResponseModel struct { + XMLName xml.Name `xml:"openim_tribe_expel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 群服务code + TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` +} diff --git a/model/openim/TaobaoOpenimTribeExpelResponse.go b/model/openim/TaobaoOpenimTribeExpelResponse.go deleted file mode 100644 index 39bfdeae7d..0000000000 --- a/model/openim/TaobaoOpenimTribeExpelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -OPENIM群踢出成员 API返回值 -taobao.openim.tribe.expel - -OPENIM群踢出成员 -*/ -type TaobaoOpenimTribeExpelAPIResponse struct { - model.CommonResponse - TaobaoOpenimTribeExpelResponse -} - -// OPENIM群踢出成员 成功返回结果 -type TaobaoOpenimTribeExpelResponse struct { - XMLName xml.Name `xml:"openim_tribe_expel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 群服务code - TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` -} diff --git a/model/openim/TaobaoOpenimTribeGetalltribesAPIRequest.go b/model/openim/TaobaoOpenimTribeGetalltribesAPIRequest.go new file mode 100644 index 0000000000..7daffac4b5 --- /dev/null +++ b/model/openim/TaobaoOpenimTribeGetalltribesAPIRequest.go @@ -0,0 +1,66 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户群列表 API请求 +taobao.openim.tribe.getalltribes + +OPENIM群服务获取用户群列表 +*/ +type TaobaoOpenimTribeGetalltribesAPIRequest struct { + model.Params + // 用户信息 + _user *OpenImUser + // 群类型 + _tribeTypes []int64 +} + +// 初始化TaobaoOpenimTribeGetalltribesAPIRequest对象 +func NewTaobaoOpenimTribeGetalltribesRequest() *TaobaoOpenimTribeGetalltribesAPIRequest{ + return &TaobaoOpenimTribeGetalltribesAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimTribeGetalltribesAPIRequest) GetApiMethodName() string { + return "taobao.openim.tribe.getalltribes" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimTribeGetalltribesAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// User Setter +// 用户信息 +func (r *TaobaoOpenimTribeGetalltribesAPIRequest) SetUser(_user *OpenImUser) error { + r._user = _user + r.Set("user", _user) + return nil +} + +// User Getter +func (r TaobaoOpenimTribeGetalltribesAPIRequest) GetUser() *OpenImUser { + return r._user +} +// TribeTypes Setter +// 群类型 +func (r *TaobaoOpenimTribeGetalltribesAPIRequest) SetTribeTypes(_tribeTypes []int64) error { + r._tribeTypes = _tribeTypes + r.Set("tribe_types", _tribeTypes) + return nil +} + +// TribeTypes Getter +func (r TaobaoOpenimTribeGetalltribesAPIRequest) GetTribeTypes() []int64 { + return r._tribeTypes +} diff --git a/model/openim/TaobaoOpenimTribeGetalltribesAPIResponse.go b/model/openim/TaobaoOpenimTribeGetalltribesAPIResponse.go new file mode 100644 index 0000000000..03da7865a7 --- /dev/null +++ b/model/openim/TaobaoOpenimTribeGetalltribesAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户群列表 API返回值 +taobao.openim.tribe.getalltribes + +OPENIM群服务获取用户群列表 +*/ +type TaobaoOpenimTribeGetalltribesAPIResponse struct { + model.CommonResponse + TaobaoOpenimTribeGetalltribesAPIResponseModel +} + +// 获取用户群列表 成功返回结果 +type TaobaoOpenimTribeGetalltribesAPIResponseModel struct { + XMLName xml.Name `xml:"openim_tribe_getalltribes_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 群列表信息 + TribeInfoList []TribeInfo `json:"tribe_info_list,omitempty" xml:"tribe_info_list>tribe_info,omitempty"` +} diff --git a/model/openim/TaobaoOpenimTribeGetalltribesResponse.go b/model/openim/TaobaoOpenimTribeGetalltribesResponse.go deleted file mode 100644 index f3a8198f65..0000000000 --- a/model/openim/TaobaoOpenimTribeGetalltribesResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户群列表 API返回值 -taobao.openim.tribe.getalltribes - -OPENIM群服务获取用户群列表 -*/ -type TaobaoOpenimTribeGetalltribesAPIResponse struct { - model.CommonResponse - TaobaoOpenimTribeGetalltribesResponse -} - -// 获取用户群列表 成功返回结果 -type TaobaoOpenimTribeGetalltribesResponse struct { - XMLName xml.Name `xml:"openim_tribe_getalltribes_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 群列表信息 - TribeInfoList []TribeInfo `json:"tribe_info_list,omitempty" xml:"tribe_info_list>tribe_info,omitempty"` -} diff --git a/model/openim/TaobaoOpenimTribeGetmembersAPIRequest.go b/model/openim/TaobaoOpenimTribeGetmembersAPIRequest.go new file mode 100644 index 0000000000..079d3b6516 --- /dev/null +++ b/model/openim/TaobaoOpenimTribeGetmembersAPIRequest.go @@ -0,0 +1,66 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +OPENIM群成员获取 API请求 +taobao.openim.tribe.getmembers + +OPENIM群成员获取 +*/ +type TaobaoOpenimTribeGetmembersAPIRequest struct { + model.Params + // 用户信息 + _user *OpenImUser + // 群id + _tribeId int64 +} + +// 初始化TaobaoOpenimTribeGetmembersAPIRequest对象 +func NewTaobaoOpenimTribeGetmembersRequest() *TaobaoOpenimTribeGetmembersAPIRequest{ + return &TaobaoOpenimTribeGetmembersAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimTribeGetmembersAPIRequest) GetApiMethodName() string { + return "taobao.openim.tribe.getmembers" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimTribeGetmembersAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// User Setter +// 用户信息 +func (r *TaobaoOpenimTribeGetmembersAPIRequest) SetUser(_user *OpenImUser) error { + r._user = _user + r.Set("user", _user) + return nil +} + +// User Getter +func (r TaobaoOpenimTribeGetmembersAPIRequest) GetUser() *OpenImUser { + return r._user +} +// TribeId Setter +// 群id +func (r *TaobaoOpenimTribeGetmembersAPIRequest) SetTribeId(_tribeId int64) error { + r._tribeId = _tribeId + r.Set("tribe_id", _tribeId) + return nil +} + +// TribeId Getter +func (r TaobaoOpenimTribeGetmembersAPIRequest) GetTribeId() int64 { + return r._tribeId +} diff --git a/model/openim/TaobaoOpenimTribeGetmembersAPIResponse.go b/model/openim/TaobaoOpenimTribeGetmembersAPIResponse.go new file mode 100644 index 0000000000..827d5c925a --- /dev/null +++ b/model/openim/TaobaoOpenimTribeGetmembersAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +OPENIM群成员获取 API返回值 +taobao.openim.tribe.getmembers + +OPENIM群成员获取 +*/ +type TaobaoOpenimTribeGetmembersAPIResponse struct { + model.CommonResponse + TaobaoOpenimTribeGetmembersAPIResponseModel +} + +// OPENIM群成员获取 成功返回结果 +type TaobaoOpenimTribeGetmembersAPIResponseModel struct { + XMLName xml.Name `xml:"openim_tribe_getmembers_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // OPENIM群成员列表 + TribeUserList []TribeUser `json:"tribe_user_list,omitempty" xml:"tribe_user_list>tribe_user,omitempty"` +} diff --git a/model/openim/TaobaoOpenimTribeGetmembersResponse.go b/model/openim/TaobaoOpenimTribeGetmembersResponse.go deleted file mode 100644 index 50684c6d46..0000000000 --- a/model/openim/TaobaoOpenimTribeGetmembersResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -OPENIM群成员获取 API返回值 -taobao.openim.tribe.getmembers - -OPENIM群成员获取 -*/ -type TaobaoOpenimTribeGetmembersAPIResponse struct { - model.CommonResponse - TaobaoOpenimTribeGetmembersResponse -} - -// OPENIM群成员获取 成功返回结果 -type TaobaoOpenimTribeGetmembersResponse struct { - XMLName xml.Name `xml:"openim_tribe_getmembers_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // OPENIM群成员列表 - TribeUserList []TribeUser `json:"tribe_user_list,omitempty" xml:"tribe_user_list>tribe_user,omitempty"` -} diff --git a/model/openim/TaobaoOpenimTribeGettribeinfoAPIRequest.go b/model/openim/TaobaoOpenimTribeGettribeinfoAPIRequest.go new file mode 100644 index 0000000000..551dba4017 --- /dev/null +++ b/model/openim/TaobaoOpenimTribeGettribeinfoAPIRequest.go @@ -0,0 +1,66 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取群信息 API请求 +taobao.openim.tribe.gettribeinfo + +获取群信息 +*/ +type TaobaoOpenimTribeGettribeinfoAPIRequest struct { + model.Params + // 用户信息 + _user *OpenImUser + // 群ID + _tribeId int64 +} + +// 初始化TaobaoOpenimTribeGettribeinfoAPIRequest对象 +func NewTaobaoOpenimTribeGettribeinfoRequest() *TaobaoOpenimTribeGettribeinfoAPIRequest{ + return &TaobaoOpenimTribeGettribeinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimTribeGettribeinfoAPIRequest) GetApiMethodName() string { + return "taobao.openim.tribe.gettribeinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimTribeGettribeinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// User Setter +// 用户信息 +func (r *TaobaoOpenimTribeGettribeinfoAPIRequest) SetUser(_user *OpenImUser) error { + r._user = _user + r.Set("user", _user) + return nil +} + +// User Getter +func (r TaobaoOpenimTribeGettribeinfoAPIRequest) GetUser() *OpenImUser { + return r._user +} +// TribeId Setter +// 群ID +func (r *TaobaoOpenimTribeGettribeinfoAPIRequest) SetTribeId(_tribeId int64) error { + r._tribeId = _tribeId + r.Set("tribe_id", _tribeId) + return nil +} + +// TribeId Getter +func (r TaobaoOpenimTribeGettribeinfoAPIRequest) GetTribeId() int64 { + return r._tribeId +} diff --git a/model/openim/TaobaoOpenimTribeGettribeinfoAPIResponse.go b/model/openim/TaobaoOpenimTribeGettribeinfoAPIResponse.go new file mode 100644 index 0000000000..eed316921f --- /dev/null +++ b/model/openim/TaobaoOpenimTribeGettribeinfoAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取群信息 API返回值 +taobao.openim.tribe.gettribeinfo + +获取群信息 +*/ +type TaobaoOpenimTribeGettribeinfoAPIResponse struct { + model.CommonResponse + TaobaoOpenimTribeGettribeinfoAPIResponseModel +} + +// 获取群信息 成功返回结果 +type TaobaoOpenimTribeGettribeinfoAPIResponseModel struct { + XMLName xml.Name `xml:"openim_tribe_gettribeinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 群信息 + TribeInfo *TribeInfo `json:"tribe_info,omitempty" xml:"tribe_info,omitempty"` +} diff --git a/model/openim/TaobaoOpenimTribeGettribeinfoResponse.go b/model/openim/TaobaoOpenimTribeGettribeinfoResponse.go deleted file mode 100644 index 043f6cf535..0000000000 --- a/model/openim/TaobaoOpenimTribeGettribeinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取群信息 API返回值 -taobao.openim.tribe.gettribeinfo - -获取群信息 -*/ -type TaobaoOpenimTribeGettribeinfoAPIResponse struct { - model.CommonResponse - TaobaoOpenimTribeGettribeinfoResponse -} - -// 获取群信息 成功返回结果 -type TaobaoOpenimTribeGettribeinfoResponse struct { - XMLName xml.Name `xml:"openim_tribe_gettribeinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 群信息 - TribeInfo *TribeInfo `json:"tribe_info,omitempty" xml:"tribe_info,omitempty"` -} diff --git a/model/openim/TaobaoOpenimTribeInviteAPIRequest.go b/model/openim/TaobaoOpenimTribeInviteAPIRequest.go new file mode 100644 index 0000000000..69fc0bc53a --- /dev/null +++ b/model/openim/TaobaoOpenimTribeInviteAPIRequest.go @@ -0,0 +1,80 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +OPENIM群邀请加入 API请求 +taobao.openim.tribe.invite + +OPENIM群邀请加入接口 +*/ +type TaobaoOpenimTribeInviteAPIRequest struct { + model.Params + // 群id + _tribeId int64 + // 用户信息 + _members []OpenImUser + // 用户信息 + _user *OpenImUser +} + +// 初始化TaobaoOpenimTribeInviteAPIRequest对象 +func NewTaobaoOpenimTribeInviteRequest() *TaobaoOpenimTribeInviteAPIRequest{ + return &TaobaoOpenimTribeInviteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimTribeInviteAPIRequest) GetApiMethodName() string { + return "taobao.openim.tribe.invite" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimTribeInviteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TribeId Setter +// 群id +func (r *TaobaoOpenimTribeInviteAPIRequest) SetTribeId(_tribeId int64) error { + r._tribeId = _tribeId + r.Set("tribe_id", _tribeId) + return nil +} + +// TribeId Getter +func (r TaobaoOpenimTribeInviteAPIRequest) GetTribeId() int64 { + return r._tribeId +} +// Members Setter +// 用户信息 +func (r *TaobaoOpenimTribeInviteAPIRequest) SetMembers(_members []OpenImUser) error { + r._members = _members + r.Set("members", _members) + return nil +} + +// Members Getter +func (r TaobaoOpenimTribeInviteAPIRequest) GetMembers() []OpenImUser { + return r._members +} +// User Setter +// 用户信息 +func (r *TaobaoOpenimTribeInviteAPIRequest) SetUser(_user *OpenImUser) error { + r._user = _user + r.Set("user", _user) + return nil +} + +// User Getter +func (r TaobaoOpenimTribeInviteAPIRequest) GetUser() *OpenImUser { + return r._user +} diff --git a/model/openim/TaobaoOpenimTribeInviteAPIResponse.go b/model/openim/TaobaoOpenimTribeInviteAPIResponse.go new file mode 100644 index 0000000000..791fd9e308 --- /dev/null +++ b/model/openim/TaobaoOpenimTribeInviteAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +OPENIM群邀请加入 API返回值 +taobao.openim.tribe.invite + +OPENIM群邀请加入接口 +*/ +type TaobaoOpenimTribeInviteAPIResponse struct { + model.CommonResponse + TaobaoOpenimTribeInviteAPIResponseModel +} + +// OPENIM群邀请加入 成功返回结果 +type TaobaoOpenimTribeInviteAPIResponseModel struct { + XMLName xml.Name `xml:"openim_tribe_invite_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 群服务code + TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` +} diff --git a/model/openim/TaobaoOpenimTribeInviteResponse.go b/model/openim/TaobaoOpenimTribeInviteResponse.go deleted file mode 100644 index 989399748a..0000000000 --- a/model/openim/TaobaoOpenimTribeInviteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -OPENIM群邀请加入 API返回值 -taobao.openim.tribe.invite - -OPENIM群邀请加入接口 -*/ -type TaobaoOpenimTribeInviteAPIResponse struct { - model.CommonResponse - TaobaoOpenimTribeInviteResponse -} - -// OPENIM群邀请加入 成功返回结果 -type TaobaoOpenimTribeInviteResponse struct { - XMLName xml.Name `xml:"openim_tribe_invite_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 群服务code - TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` -} diff --git a/model/openim/TaobaoOpenimTribeJoinAPIRequest.go b/model/openim/TaobaoOpenimTribeJoinAPIRequest.go new file mode 100644 index 0000000000..0f66c1945d --- /dev/null +++ b/model/openim/TaobaoOpenimTribeJoinAPIRequest.go @@ -0,0 +1,66 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +OPENIM群主动加入 API请求 +taobao.openim.tribe.join + +OPENIM群主动加入 +*/ +type TaobaoOpenimTribeJoinAPIRequest struct { + model.Params + // 用户信息 + _user *OpenImUser + // 群id + _tribeId int64 +} + +// 初始化TaobaoOpenimTribeJoinAPIRequest对象 +func NewTaobaoOpenimTribeJoinRequest() *TaobaoOpenimTribeJoinAPIRequest{ + return &TaobaoOpenimTribeJoinAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimTribeJoinAPIRequest) GetApiMethodName() string { + return "taobao.openim.tribe.join" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimTribeJoinAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// User Setter +// 用户信息 +func (r *TaobaoOpenimTribeJoinAPIRequest) SetUser(_user *OpenImUser) error { + r._user = _user + r.Set("user", _user) + return nil +} + +// User Getter +func (r TaobaoOpenimTribeJoinAPIRequest) GetUser() *OpenImUser { + return r._user +} +// TribeId Setter +// 群id +func (r *TaobaoOpenimTribeJoinAPIRequest) SetTribeId(_tribeId int64) error { + r._tribeId = _tribeId + r.Set("tribe_id", _tribeId) + return nil +} + +// TribeId Getter +func (r TaobaoOpenimTribeJoinAPIRequest) GetTribeId() int64 { + return r._tribeId +} diff --git a/model/openim/TaobaoOpenimTribeJoinAPIResponse.go b/model/openim/TaobaoOpenimTribeJoinAPIResponse.go new file mode 100644 index 0000000000..3d7049adc0 --- /dev/null +++ b/model/openim/TaobaoOpenimTribeJoinAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +OPENIM群主动加入 API返回值 +taobao.openim.tribe.join + +OPENIM群主动加入 +*/ +type TaobaoOpenimTribeJoinAPIResponse struct { + model.CommonResponse + TaobaoOpenimTribeJoinAPIResponseModel +} + +// OPENIM群主动加入 成功返回结果 +type TaobaoOpenimTribeJoinAPIResponseModel struct { + XMLName xml.Name `xml:"openim_tribe_join_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 群服务code + TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` +} diff --git a/model/openim/TaobaoOpenimTribeJoinResponse.go b/model/openim/TaobaoOpenimTribeJoinResponse.go deleted file mode 100644 index a3b00b47e2..0000000000 --- a/model/openim/TaobaoOpenimTribeJoinResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -OPENIM群主动加入 API返回值 -taobao.openim.tribe.join - -OPENIM群主动加入 -*/ -type TaobaoOpenimTribeJoinAPIResponse struct { - model.CommonResponse - TaobaoOpenimTribeJoinResponse -} - -// OPENIM群主动加入 成功返回结果 -type TaobaoOpenimTribeJoinResponse struct { - XMLName xml.Name `xml:"openim_tribe_join_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 群服务code - TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` -} diff --git a/model/openim/TaobaoOpenimTribeModifytribeinfoAPIRequest.go b/model/openim/TaobaoOpenimTribeModifytribeinfoAPIRequest.go new file mode 100644 index 0000000000..d1e40dbd83 --- /dev/null +++ b/model/openim/TaobaoOpenimTribeModifytribeinfoAPIRequest.go @@ -0,0 +1,94 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +OPENIM群信息修改 API请求 +taobao.openim.tribe.modifytribeinfo + +OPENIM群信息修改 +*/ +type TaobaoOpenimTribeModifytribeinfoAPIRequest struct { + model.Params + // 用户信息 + _user *OpenImUser + // 群名称 + _tribeName string + // 群公告 + _notice string + // 群id + _tribeId int64 +} + +// 初始化TaobaoOpenimTribeModifytribeinfoAPIRequest对象 +func NewTaobaoOpenimTribeModifytribeinfoRequest() *TaobaoOpenimTribeModifytribeinfoAPIRequest{ + return &TaobaoOpenimTribeModifytribeinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimTribeModifytribeinfoAPIRequest) GetApiMethodName() string { + return "taobao.openim.tribe.modifytribeinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimTribeModifytribeinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// User Setter +// 用户信息 +func (r *TaobaoOpenimTribeModifytribeinfoAPIRequest) SetUser(_user *OpenImUser) error { + r._user = _user + r.Set("user", _user) + return nil +} + +// User Getter +func (r TaobaoOpenimTribeModifytribeinfoAPIRequest) GetUser() *OpenImUser { + return r._user +} +// TribeName Setter +// 群名称 +func (r *TaobaoOpenimTribeModifytribeinfoAPIRequest) SetTribeName(_tribeName string) error { + r._tribeName = _tribeName + r.Set("tribe_name", _tribeName) + return nil +} + +// TribeName Getter +func (r TaobaoOpenimTribeModifytribeinfoAPIRequest) GetTribeName() string { + return r._tribeName +} +// Notice Setter +// 群公告 +func (r *TaobaoOpenimTribeModifytribeinfoAPIRequest) SetNotice(_notice string) error { + r._notice = _notice + r.Set("notice", _notice) + return nil +} + +// Notice Getter +func (r TaobaoOpenimTribeModifytribeinfoAPIRequest) GetNotice() string { + return r._notice +} +// TribeId Setter +// 群id +func (r *TaobaoOpenimTribeModifytribeinfoAPIRequest) SetTribeId(_tribeId int64) error { + r._tribeId = _tribeId + r.Set("tribe_id", _tribeId) + return nil +} + +// TribeId Getter +func (r TaobaoOpenimTribeModifytribeinfoAPIRequest) GetTribeId() int64 { + return r._tribeId +} diff --git a/model/openim/TaobaoOpenimTribeModifytribeinfoAPIResponse.go b/model/openim/TaobaoOpenimTribeModifytribeinfoAPIResponse.go new file mode 100644 index 0000000000..d365d7759d --- /dev/null +++ b/model/openim/TaobaoOpenimTribeModifytribeinfoAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +OPENIM群信息修改 API返回值 +taobao.openim.tribe.modifytribeinfo + +OPENIM群信息修改 +*/ +type TaobaoOpenimTribeModifytribeinfoAPIResponse struct { + model.CommonResponse + TaobaoOpenimTribeModifytribeinfoAPIResponseModel +} + +// OPENIM群信息修改 成功返回结果 +type TaobaoOpenimTribeModifytribeinfoAPIResponseModel struct { + XMLName xml.Name `xml:"openim_tribe_modifytribeinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 群服务code + TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` +} diff --git a/model/openim/TaobaoOpenimTribeModifytribeinfoResponse.go b/model/openim/TaobaoOpenimTribeModifytribeinfoResponse.go deleted file mode 100644 index fd57e0a544..0000000000 --- a/model/openim/TaobaoOpenimTribeModifytribeinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -OPENIM群信息修改 API返回值 -taobao.openim.tribe.modifytribeinfo - -OPENIM群信息修改 -*/ -type TaobaoOpenimTribeModifytribeinfoAPIResponse struct { - model.CommonResponse - TaobaoOpenimTribeModifytribeinfoResponse -} - -// OPENIM群信息修改 成功返回结果 -type TaobaoOpenimTribeModifytribeinfoResponse struct { - XMLName xml.Name `xml:"openim_tribe_modifytribeinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 群服务code - TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` -} diff --git a/model/openim/TaobaoOpenimTribeQuitAPIRequest.go b/model/openim/TaobaoOpenimTribeQuitAPIRequest.go new file mode 100644 index 0000000000..5255cf6584 --- /dev/null +++ b/model/openim/TaobaoOpenimTribeQuitAPIRequest.go @@ -0,0 +1,66 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +OPENIM群成员退出 API请求 +taobao.openim.tribe.quit + +OPENIM群成员退出 +*/ +type TaobaoOpenimTribeQuitAPIRequest struct { + model.Params + // 用户信息 + _user *OpenImUser + // 群id + _tribeId int64 +} + +// 初始化TaobaoOpenimTribeQuitAPIRequest对象 +func NewTaobaoOpenimTribeQuitRequest() *TaobaoOpenimTribeQuitAPIRequest{ + return &TaobaoOpenimTribeQuitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimTribeQuitAPIRequest) GetApiMethodName() string { + return "taobao.openim.tribe.quit" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimTribeQuitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// User Setter +// 用户信息 +func (r *TaobaoOpenimTribeQuitAPIRequest) SetUser(_user *OpenImUser) error { + r._user = _user + r.Set("user", _user) + return nil +} + +// User Getter +func (r TaobaoOpenimTribeQuitAPIRequest) GetUser() *OpenImUser { + return r._user +} +// TribeId Setter +// 群id +func (r *TaobaoOpenimTribeQuitAPIRequest) SetTribeId(_tribeId int64) error { + r._tribeId = _tribeId + r.Set("tribe_id", _tribeId) + return nil +} + +// TribeId Getter +func (r TaobaoOpenimTribeQuitAPIRequest) GetTribeId() int64 { + return r._tribeId +} diff --git a/model/openim/TaobaoOpenimTribeQuitAPIResponse.go b/model/openim/TaobaoOpenimTribeQuitAPIResponse.go new file mode 100644 index 0000000000..b7208666de --- /dev/null +++ b/model/openim/TaobaoOpenimTribeQuitAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +OPENIM群成员退出 API返回值 +taobao.openim.tribe.quit + +OPENIM群成员退出 +*/ +type TaobaoOpenimTribeQuitAPIResponse struct { + model.CommonResponse + TaobaoOpenimTribeQuitAPIResponseModel +} + +// OPENIM群成员退出 成功返回结果 +type TaobaoOpenimTribeQuitAPIResponseModel struct { + XMLName xml.Name `xml:"openim_tribe_quit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 群服务code + TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` +} diff --git a/model/openim/TaobaoOpenimTribeQuitResponse.go b/model/openim/TaobaoOpenimTribeQuitResponse.go deleted file mode 100644 index 8d8898f1a3..0000000000 --- a/model/openim/TaobaoOpenimTribeQuitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -OPENIM群成员退出 API返回值 -taobao.openim.tribe.quit - -OPENIM群成员退出 -*/ -type TaobaoOpenimTribeQuitAPIResponse struct { - model.CommonResponse - TaobaoOpenimTribeQuitResponse -} - -// OPENIM群成员退出 成功返回结果 -type TaobaoOpenimTribeQuitResponse struct { - XMLName xml.Name `xml:"openim_tribe_quit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 群服务code - TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` -} diff --git a/model/openim/TaobaoOpenimTribeSendmsgAPIRequest.go b/model/openim/TaobaoOpenimTribeSendmsgAPIRequest.go new file mode 100644 index 0000000000..ab0b1a2752 --- /dev/null +++ b/model/openim/TaobaoOpenimTribeSendmsgAPIRequest.go @@ -0,0 +1,80 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发送群消息 API请求 +taobao.openim.tribe.sendmsg + +发送群消息,目前支持发送4种类型的群消息,普通文本,图片,语音,自定义消息 +*/ +type TaobaoOpenimTribeSendmsgAPIRequest struct { + model.Params + // 群消息发送者,只有该群的成员才可以发送群消息 + _user *User + // 群id + _tribeId int64 + // 发送群消息 + _msg *TribeMsg +} + +// 初始化TaobaoOpenimTribeSendmsgAPIRequest对象 +func NewTaobaoOpenimTribeSendmsgRequest() *TaobaoOpenimTribeSendmsgAPIRequest{ + return &TaobaoOpenimTribeSendmsgAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimTribeSendmsgAPIRequest) GetApiMethodName() string { + return "taobao.openim.tribe.sendmsg" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimTribeSendmsgAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// User Setter +// 群消息发送者,只有该群的成员才可以发送群消息 +func (r *TaobaoOpenimTribeSendmsgAPIRequest) SetUser(_user *User) error { + r._user = _user + r.Set("user", _user) + return nil +} + +// User Getter +func (r TaobaoOpenimTribeSendmsgAPIRequest) GetUser() *User { + return r._user +} +// TribeId Setter +// 群id +func (r *TaobaoOpenimTribeSendmsgAPIRequest) SetTribeId(_tribeId int64) error { + r._tribeId = _tribeId + r.Set("tribe_id", _tribeId) + return nil +} + +// TribeId Getter +func (r TaobaoOpenimTribeSendmsgAPIRequest) GetTribeId() int64 { + return r._tribeId +} +// Msg Setter +// 发送群消息 +func (r *TaobaoOpenimTribeSendmsgAPIRequest) SetMsg(_msg *TribeMsg) error { + r._msg = _msg + r.Set("msg", _msg) + return nil +} + +// Msg Getter +func (r TaobaoOpenimTribeSendmsgAPIRequest) GetMsg() *TribeMsg { + return r._msg +} diff --git a/model/openim/TaobaoOpenimTribeSendmsgAPIResponse.go b/model/openim/TaobaoOpenimTribeSendmsgAPIResponse.go new file mode 100644 index 0000000000..9945ce1cbb --- /dev/null +++ b/model/openim/TaobaoOpenimTribeSendmsgAPIResponse.go @@ -0,0 +1,29 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发送群消息 API返回值 +taobao.openim.tribe.sendmsg + +发送群消息,目前支持发送4种类型的群消息,普通文本,图片,语音,自定义消息 +*/ +type TaobaoOpenimTribeSendmsgAPIResponse struct { + model.CommonResponse + TaobaoOpenimTribeSendmsgAPIResponseModel +} + +// 发送群消息 成功返回结果 +type TaobaoOpenimTribeSendmsgAPIResponseModel struct { + XMLName xml.Name `xml:"openim_tribe_sendmsg_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/openim/TaobaoOpenimTribeSendmsgResponse.go b/model/openim/TaobaoOpenimTribeSendmsgResponse.go deleted file mode 100644 index 02b34f9f0d..0000000000 --- a/model/openim/TaobaoOpenimTribeSendmsgResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发送群消息 API返回值 -taobao.openim.tribe.sendmsg - -发送群消息,目前支持发送4种类型的群消息,普通文本,图片,语音,自定义消息 -*/ -type TaobaoOpenimTribeSendmsgAPIResponse struct { - model.CommonResponse - TaobaoOpenimTribeSendmsgResponse -} - -// 发送群消息 成功返回结果 -type TaobaoOpenimTribeSendmsgResponse struct { - XMLName xml.Name `xml:"openim_tribe_sendmsg_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/openim/TaobaoOpenimTribeSetmanagerAPIRequest.go b/model/openim/TaobaoOpenimTribeSetmanagerAPIRequest.go new file mode 100644 index 0000000000..408ae00f7b --- /dev/null +++ b/model/openim/TaobaoOpenimTribeSetmanagerAPIRequest.go @@ -0,0 +1,80 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +OPENIM群设置管理员 API请求 +taobao.openim.tribe.setmanager + +OPENIM群设置管理员 +*/ +type TaobaoOpenimTribeSetmanagerAPIRequest struct { + model.Params + // 用户信息 + _user *OpenImUser + // 群id + _tid int64 + // 用户信息 + _member *OpenImUser +} + +// 初始化TaobaoOpenimTribeSetmanagerAPIRequest对象 +func NewTaobaoOpenimTribeSetmanagerRequest() *TaobaoOpenimTribeSetmanagerAPIRequest{ + return &TaobaoOpenimTribeSetmanagerAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimTribeSetmanagerAPIRequest) GetApiMethodName() string { + return "taobao.openim.tribe.setmanager" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimTribeSetmanagerAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// User Setter +// 用户信息 +func (r *TaobaoOpenimTribeSetmanagerAPIRequest) SetUser(_user *OpenImUser) error { + r._user = _user + r.Set("user", _user) + return nil +} + +// User Getter +func (r TaobaoOpenimTribeSetmanagerAPIRequest) GetUser() *OpenImUser { + return r._user +} +// Tid Setter +// 群id +func (r *TaobaoOpenimTribeSetmanagerAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoOpenimTribeSetmanagerAPIRequest) GetTid() int64 { + return r._tid +} +// Member Setter +// 用户信息 +func (r *TaobaoOpenimTribeSetmanagerAPIRequest) SetMember(_member *OpenImUser) error { + r._member = _member + r.Set("member", _member) + return nil +} + +// Member Getter +func (r TaobaoOpenimTribeSetmanagerAPIRequest) GetMember() *OpenImUser { + return r._member +} diff --git a/model/openim/TaobaoOpenimTribeSetmanagerAPIResponse.go b/model/openim/TaobaoOpenimTribeSetmanagerAPIResponse.go new file mode 100644 index 0000000000..ca6bdf3db1 --- /dev/null +++ b/model/openim/TaobaoOpenimTribeSetmanagerAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +OPENIM群设置管理员 API返回值 +taobao.openim.tribe.setmanager + +OPENIM群设置管理员 +*/ +type TaobaoOpenimTribeSetmanagerAPIResponse struct { + model.CommonResponse + TaobaoOpenimTribeSetmanagerAPIResponseModel +} + +// OPENIM群设置管理员 成功返回结果 +type TaobaoOpenimTribeSetmanagerAPIResponseModel struct { + XMLName xml.Name `xml:"openim_tribe_setmanager_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 群服务code + TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` +} diff --git a/model/openim/TaobaoOpenimTribeSetmanagerResponse.go b/model/openim/TaobaoOpenimTribeSetmanagerResponse.go deleted file mode 100644 index d904f913f1..0000000000 --- a/model/openim/TaobaoOpenimTribeSetmanagerResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -OPENIM群设置管理员 API返回值 -taobao.openim.tribe.setmanager - -OPENIM群设置管理员 -*/ -type TaobaoOpenimTribeSetmanagerAPIResponse struct { - model.CommonResponse - TaobaoOpenimTribeSetmanagerResponse -} - -// OPENIM群设置管理员 成功返回结果 -type TaobaoOpenimTribeSetmanagerResponse struct { - XMLName xml.Name `xml:"openim_tribe_setmanager_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 群服务code - TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` -} diff --git a/model/openim/TaobaoOpenimTribeSetmembernickAPIRequest.go b/model/openim/TaobaoOpenimTribeSetmembernickAPIRequest.go new file mode 100644 index 0000000000..7b5ca218d1 --- /dev/null +++ b/model/openim/TaobaoOpenimTribeSetmembernickAPIRequest.go @@ -0,0 +1,96 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设置群成员昵称 API请求 +taobao.openim.tribe.setmembernick + +设置群成员昵称,存在如下两种场景 +1 群主或管理员设置群成员昵称,该操作有权限控制。只针对普通群的群主和管理员开发此功能;讨论组群主不支持此设置操作 +2 群成员设置自己的昵称,该功能对群所有成员开放 +*/ +type TaobaoOpenimTribeSetmembernickAPIRequest struct { + model.Params + // 发起设置昵称的操作者,如果是设置其他成员的昵称,只有普通组的群主和管理员有权限 + _user *User + // 群id + _tribeId int64 + // 被设置昵称的群成员 + _member *User + // 设置的昵称 + _nick string +} + +// 初始化TaobaoOpenimTribeSetmembernickAPIRequest对象 +func NewTaobaoOpenimTribeSetmembernickRequest() *TaobaoOpenimTribeSetmembernickAPIRequest{ + return &TaobaoOpenimTribeSetmembernickAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimTribeSetmembernickAPIRequest) GetApiMethodName() string { + return "taobao.openim.tribe.setmembernick" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimTribeSetmembernickAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// User Setter +// 发起设置昵称的操作者,如果是设置其他成员的昵称,只有普通组的群主和管理员有权限 +func (r *TaobaoOpenimTribeSetmembernickAPIRequest) SetUser(_user *User) error { + r._user = _user + r.Set("user", _user) + return nil +} + +// User Getter +func (r TaobaoOpenimTribeSetmembernickAPIRequest) GetUser() *User { + return r._user +} +// TribeId Setter +// 群id +func (r *TaobaoOpenimTribeSetmembernickAPIRequest) SetTribeId(_tribeId int64) error { + r._tribeId = _tribeId + r.Set("tribe_id", _tribeId) + return nil +} + +// TribeId Getter +func (r TaobaoOpenimTribeSetmembernickAPIRequest) GetTribeId() int64 { + return r._tribeId +} +// Member Setter +// 被设置昵称的群成员 +func (r *TaobaoOpenimTribeSetmembernickAPIRequest) SetMember(_member *User) error { + r._member = _member + r.Set("member", _member) + return nil +} + +// Member Getter +func (r TaobaoOpenimTribeSetmembernickAPIRequest) GetMember() *User { + return r._member +} +// Nick Setter +// 设置的昵称 +func (r *TaobaoOpenimTribeSetmembernickAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoOpenimTribeSetmembernickAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/openim/TaobaoOpenimTribeSetmembernickAPIResponse.go b/model/openim/TaobaoOpenimTribeSetmembernickAPIResponse.go new file mode 100644 index 0000000000..7379eed4fd --- /dev/null +++ b/model/openim/TaobaoOpenimTribeSetmembernickAPIResponse.go @@ -0,0 +1,29 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设置群成员昵称 API返回值 +taobao.openim.tribe.setmembernick + +设置群成员昵称,存在如下两种场景 +1 群主或管理员设置群成员昵称,该操作有权限控制。只针对普通群的群主和管理员开发此功能;讨论组群主不支持此设置操作 +2 群成员设置自己的昵称,该功能对群所有成员开放 +*/ +type TaobaoOpenimTribeSetmembernickAPIResponse struct { + model.CommonResponse + TaobaoOpenimTribeSetmembernickAPIResponseModel +} + +// 设置群成员昵称 成功返回结果 +type TaobaoOpenimTribeSetmembernickAPIResponseModel struct { + XMLName xml.Name `xml:"openim_tribe_setmembernick_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` +} diff --git a/model/openim/TaobaoOpenimTribeSetmembernickResponse.go b/model/openim/TaobaoOpenimTribeSetmembernickResponse.go deleted file mode 100644 index b333c182c2..0000000000 --- a/model/openim/TaobaoOpenimTribeSetmembernickResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设置群成员昵称 API返回值 -taobao.openim.tribe.setmembernick - -设置群成员昵称,存在如下两种场景 -1 群主或管理员设置群成员昵称,该操作有权限控制。只针对普通群的群主和管理员开发此功能;讨论组群主不支持此设置操作 -2 群成员设置自己的昵称,该功能对群所有成员开放 -*/ -type TaobaoOpenimTribeSetmembernickAPIResponse struct { - model.CommonResponse - TaobaoOpenimTribeSetmembernickResponse -} - -// 设置群成员昵称 成功返回结果 -type TaobaoOpenimTribeSetmembernickResponse struct { - XMLName xml.Name `xml:"openim_tribe_setmembernick_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` -} diff --git a/model/openim/TaobaoOpenimTribeUnsetmanagerAPIRequest.go b/model/openim/TaobaoOpenimTribeUnsetmanagerAPIRequest.go new file mode 100644 index 0000000000..a5048a0f3e --- /dev/null +++ b/model/openim/TaobaoOpenimTribeUnsetmanagerAPIRequest.go @@ -0,0 +1,80 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +OPENIM群取消管理员 API请求 +taobao.openim.tribe.unsetmanager + +OPENIM群取消管理员 +*/ +type TaobaoOpenimTribeUnsetmanagerAPIRequest struct { + model.Params + // 用户信息 + _user *OpenImUser + // 群id + _tid int64 + // 用户信息 + _member *OpenImUser +} + +// 初始化TaobaoOpenimTribeUnsetmanagerAPIRequest对象 +func NewTaobaoOpenimTribeUnsetmanagerRequest() *TaobaoOpenimTribeUnsetmanagerAPIRequest{ + return &TaobaoOpenimTribeUnsetmanagerAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimTribeUnsetmanagerAPIRequest) GetApiMethodName() string { + return "taobao.openim.tribe.unsetmanager" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimTribeUnsetmanagerAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// User Setter +// 用户信息 +func (r *TaobaoOpenimTribeUnsetmanagerAPIRequest) SetUser(_user *OpenImUser) error { + r._user = _user + r.Set("user", _user) + return nil +} + +// User Getter +func (r TaobaoOpenimTribeUnsetmanagerAPIRequest) GetUser() *OpenImUser { + return r._user +} +// Tid Setter +// 群id +func (r *TaobaoOpenimTribeUnsetmanagerAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoOpenimTribeUnsetmanagerAPIRequest) GetTid() int64 { + return r._tid +} +// Member Setter +// 用户信息 +func (r *TaobaoOpenimTribeUnsetmanagerAPIRequest) SetMember(_member *OpenImUser) error { + r._member = _member + r.Set("member", _member) + return nil +} + +// Member Getter +func (r TaobaoOpenimTribeUnsetmanagerAPIRequest) GetMember() *OpenImUser { + return r._member +} diff --git a/model/openim/TaobaoOpenimTribeUnsetmanagerAPIResponse.go b/model/openim/TaobaoOpenimTribeUnsetmanagerAPIResponse.go new file mode 100644 index 0000000000..4ed79cf61a --- /dev/null +++ b/model/openim/TaobaoOpenimTribeUnsetmanagerAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +OPENIM群取消管理员 API返回值 +taobao.openim.tribe.unsetmanager + +OPENIM群取消管理员 +*/ +type TaobaoOpenimTribeUnsetmanagerAPIResponse struct { + model.CommonResponse + TaobaoOpenimTribeUnsetmanagerAPIResponseModel +} + +// OPENIM群取消管理员 成功返回结果 +type TaobaoOpenimTribeUnsetmanagerAPIResponseModel struct { + XMLName xml.Name `xml:"openim_tribe_unsetmanager_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 群服务code + TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` +} diff --git a/model/openim/TaobaoOpenimTribeUnsetmanagerResponse.go b/model/openim/TaobaoOpenimTribeUnsetmanagerResponse.go deleted file mode 100644 index 50562080fe..0000000000 --- a/model/openim/TaobaoOpenimTribeUnsetmanagerResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -OPENIM群取消管理员 API返回值 -taobao.openim.tribe.unsetmanager - -OPENIM群取消管理员 -*/ -type TaobaoOpenimTribeUnsetmanagerAPIResponse struct { - model.CommonResponse - TaobaoOpenimTribeUnsetmanagerResponse -} - -// OPENIM群取消管理员 成功返回结果 -type TaobaoOpenimTribeUnsetmanagerResponse struct { - XMLName xml.Name `xml:"openim_tribe_unsetmanager_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 群服务code - TribeCode int64 `json:"tribe_code,omitempty" xml:"tribe_code,omitempty"` -} diff --git a/model/openim/TaobaoOpenimTribelogsGetAPIRequest.go b/model/openim/TaobaoOpenimTribelogsGetAPIRequest.go new file mode 100644 index 0000000000..2d0deb6ed2 --- /dev/null +++ b/model/openim/TaobaoOpenimTribelogsGetAPIRequest.go @@ -0,0 +1,108 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +openim 群聊天记录导出接口 API请求 +taobao.openim.tribelogs.get + +获取openim账号的群聊天记录 +*/ +type TaobaoOpenimTribelogsGetAPIRequest struct { + model.Params + // 群号 + _tribeId string + // 查询起始时间,UTC秒数。必须在一个月内。 + _begin int64 + // 查询结束时间,UTC秒数。必须大于起始时间并小于当前时间 + _end int64 + // 查询条数 + _count int64 + // 迭代key + _next string +} + +// 初始化TaobaoOpenimTribelogsGetAPIRequest对象 +func NewTaobaoOpenimTribelogsGetRequest() *TaobaoOpenimTribelogsGetAPIRequest{ + return &TaobaoOpenimTribelogsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimTribelogsGetAPIRequest) GetApiMethodName() string { + return "taobao.openim.tribelogs.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimTribelogsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TribeId Setter +// 群号 +func (r *TaobaoOpenimTribelogsGetAPIRequest) SetTribeId(_tribeId string) error { + r._tribeId = _tribeId + r.Set("tribe_id", _tribeId) + return nil +} + +// TribeId Getter +func (r TaobaoOpenimTribelogsGetAPIRequest) GetTribeId() string { + return r._tribeId +} +// Begin Setter +// 查询起始时间,UTC秒数。必须在一个月内。 +func (r *TaobaoOpenimTribelogsGetAPIRequest) SetBegin(_begin int64) error { + r._begin = _begin + r.Set("begin", _begin) + return nil +} + +// Begin Getter +func (r TaobaoOpenimTribelogsGetAPIRequest) GetBegin() int64 { + return r._begin +} +// End Setter +// 查询结束时间,UTC秒数。必须大于起始时间并小于当前时间 +func (r *TaobaoOpenimTribelogsGetAPIRequest) SetEnd(_end int64) error { + r._end = _end + r.Set("end", _end) + return nil +} + +// End Getter +func (r TaobaoOpenimTribelogsGetAPIRequest) GetEnd() int64 { + return r._end +} +// Count Setter +// 查询条数 +func (r *TaobaoOpenimTribelogsGetAPIRequest) SetCount(_count int64) error { + r._count = _count + r.Set("count", _count) + return nil +} + +// Count Getter +func (r TaobaoOpenimTribelogsGetAPIRequest) GetCount() int64 { + return r._count +} +// Next Setter +// 迭代key +func (r *TaobaoOpenimTribelogsGetAPIRequest) SetNext(_next string) error { + r._next = _next + r.Set("next", _next) + return nil +} + +// Next Getter +func (r TaobaoOpenimTribelogsGetAPIRequest) GetNext() string { + return r._next +} diff --git a/model/openim/TaobaoOpenimTribelogsGetAPIResponse.go b/model/openim/TaobaoOpenimTribelogsGetAPIResponse.go new file mode 100644 index 0000000000..a584bd6ea7 --- /dev/null +++ b/model/openim/TaobaoOpenimTribelogsGetAPIResponse.go @@ -0,0 +1,35 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +openim 群聊天记录导出接口 API返回值 +taobao.openim.tribelogs.get + +获取openim账号的群聊天记录 +*/ +type TaobaoOpenimTribelogsGetAPIResponse struct { + model.CommonResponse + TaobaoOpenimTribelogsGetAPIResponseModel +} + +// openim 群聊天记录导出接口 成功返回结果 +type TaobaoOpenimTribelogsGetAPIResponseModel struct { + XMLName xml.Name `xml:"openim_tribelogs_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + RetCode int64 `json:"retCode,omitempty" xml:"retCode,omitempty"` + // 返回结构 + Data *TribeMessageResult `json:"data,omitempty" xml:"data,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 错误原因 + Reason string `json:"reason,omitempty" xml:"reason,omitempty"` + // 是否成功 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` +} diff --git a/model/openim/TaobaoOpenimTribelogsGetResponse.go b/model/openim/TaobaoOpenimTribelogsGetResponse.go deleted file mode 100644 index 4de59fe3dc..0000000000 --- a/model/openim/TaobaoOpenimTribelogsGetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -openim 群聊天记录导出接口 API返回值 -taobao.openim.tribelogs.get - -获取openim账号的群聊天记录 -*/ -type TaobaoOpenimTribelogsGetAPIResponse struct { - model.CommonResponse - TaobaoOpenimTribelogsGetResponse -} - -// openim 群聊天记录导出接口 成功返回结果 -type TaobaoOpenimTribelogsGetResponse struct { - XMLName xml.Name `xml:"openim_tribelogs_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - RetCode int64 `json:"retCode,omitempty" xml:"retCode,omitempty"` - // 返回结构 - Data *TribeMessageResult `json:"data,omitempty" xml:"data,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 错误原因 - Reason string `json:"reason,omitempty" xml:"reason,omitempty"` - // 是否成功 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` -} diff --git a/model/openim/TaobaoOpenimTribelogsImportAPIRequest.go b/model/openim/TaobaoOpenimTribelogsImportAPIRequest.go new file mode 100644 index 0000000000..6643380c66 --- /dev/null +++ b/model/openim/TaobaoOpenimTribelogsImportAPIRequest.go @@ -0,0 +1,66 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +openim群聊天记录导入 API请求 +taobao.openim.tribelogs.import + +openim群聊天记录导入 +*/ +type TaobaoOpenimTribelogsImportAPIRequest struct { + model.Params + // 群号。必须为已存在的群,且群主属于本app + _tribeId int64 + // 消息列表 + _messages []TribeTextMessage +} + +// 初始化TaobaoOpenimTribelogsImportAPIRequest对象 +func NewTaobaoOpenimTribelogsImportRequest() *TaobaoOpenimTribelogsImportAPIRequest{ + return &TaobaoOpenimTribelogsImportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimTribelogsImportAPIRequest) GetApiMethodName() string { + return "taobao.openim.tribelogs.import" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimTribelogsImportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TribeId Setter +// 群号。必须为已存在的群,且群主属于本app +func (r *TaobaoOpenimTribelogsImportAPIRequest) SetTribeId(_tribeId int64) error { + r._tribeId = _tribeId + r.Set("tribe_id", _tribeId) + return nil +} + +// TribeId Getter +func (r TaobaoOpenimTribelogsImportAPIRequest) GetTribeId() int64 { + return r._tribeId +} +// Messages Setter +// 消息列表 +func (r *TaobaoOpenimTribelogsImportAPIRequest) SetMessages(_messages []TribeTextMessage) error { + r._messages = _messages + r.Set("messages", _messages) + return nil +} + +// Messages Getter +func (r TaobaoOpenimTribelogsImportAPIRequest) GetMessages() []TribeTextMessage { + return r._messages +} diff --git a/model/openim/TaobaoOpenimTribelogsImportAPIResponse.go b/model/openim/TaobaoOpenimTribelogsImportAPIResponse.go new file mode 100644 index 0000000000..a1c7bd8f09 --- /dev/null +++ b/model/openim/TaobaoOpenimTribelogsImportAPIResponse.go @@ -0,0 +1,31 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +openim群聊天记录导入 API返回值 +taobao.openim.tribelogs.import + +openim群聊天记录导入 +*/ +type TaobaoOpenimTribelogsImportAPIResponse struct { + model.CommonResponse + TaobaoOpenimTribelogsImportAPIResponseModel +} + +// openim群聊天记录导入 成功返回结果 +type TaobaoOpenimTribelogsImportAPIResponseModel struct { + XMLName xml.Name `xml:"openim_tribelogs_import_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + Ret int64 `json:"ret,omitempty" xml:"ret,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 是否成功 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` +} diff --git a/model/openim/TaobaoOpenimTribelogsImportResponse.go b/model/openim/TaobaoOpenimTribelogsImportResponse.go deleted file mode 100644 index 557fded810..0000000000 --- a/model/openim/TaobaoOpenimTribelogsImportResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -openim群聊天记录导入 API返回值 -taobao.openim.tribelogs.import - -openim群聊天记录导入 -*/ -type TaobaoOpenimTribelogsImportAPIResponse struct { - model.CommonResponse - TaobaoOpenimTribelogsImportResponse -} - -// openim群聊天记录导入 成功返回结果 -type TaobaoOpenimTribelogsImportResponse struct { - XMLName xml.Name `xml:"openim_tribelogs_import_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - Ret int64 `json:"ret,omitempty" xml:"ret,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 是否成功 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` -} diff --git a/model/openim/TaobaoOpenimUsersAddAPIRequest.go b/model/openim/TaobaoOpenimUsersAddAPIRequest.go new file mode 100644 index 0000000000..483f3212d6 --- /dev/null +++ b/model/openim/TaobaoOpenimUsersAddAPIRequest.go @@ -0,0 +1,52 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加用户 API请求 +taobao.openim.users.add + +导入用户 +*/ +type TaobaoOpenimUsersAddAPIRequest struct { + model.Params + // 用户信息列表 + _userinfos []Userinfos +} + +// 初始化TaobaoOpenimUsersAddAPIRequest对象 +func NewTaobaoOpenimUsersAddRequest() *TaobaoOpenimUsersAddAPIRequest{ + return &TaobaoOpenimUsersAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimUsersAddAPIRequest) GetApiMethodName() string { + return "taobao.openim.users.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimUsersAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Userinfos Setter +// 用户信息列表 +func (r *TaobaoOpenimUsersAddAPIRequest) SetUserinfos(_userinfos []Userinfos) error { + r._userinfos = _userinfos + r.Set("userinfos", _userinfos) + return nil +} + +// Userinfos Getter +func (r TaobaoOpenimUsersAddAPIRequest) GetUserinfos() []Userinfos { + return r._userinfos +} diff --git a/model/openim/TaobaoOpenimUsersAddAPIResponse.go b/model/openim/TaobaoOpenimUsersAddAPIResponse.go new file mode 100644 index 0000000000..284337aa5c --- /dev/null +++ b/model/openim/TaobaoOpenimUsersAddAPIResponse.go @@ -0,0 +1,31 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加用户 API返回值 +taobao.openim.users.add + +导入用户 +*/ +type TaobaoOpenimUsersAddAPIResponse struct { + model.CommonResponse + TaobaoOpenimUsersAddAPIResponseModel +} + +// 添加用户 成功返回结果 +type TaobaoOpenimUsersAddAPIResponseModel struct { + XMLName xml.Name `xml:"openim_users_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功用户列表 + UidSucc []string `json:"uid_succ,omitempty" xml:"uid_succ>string,omitempty"` + // 添加失败的用户id + UidFail []string `json:"uid_fail,omitempty" xml:"uid_fail>string,omitempty"` + // 添加帐号失败的具体信息 + FailMsg []string `json:"fail_msg,omitempty" xml:"fail_msg>string,omitempty"` +} diff --git a/model/openim/TaobaoOpenimUsersAddResponse.go b/model/openim/TaobaoOpenimUsersAddResponse.go deleted file mode 100644 index 29b1f32db3..0000000000 --- a/model/openim/TaobaoOpenimUsersAddResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加用户 API返回值 -taobao.openim.users.add - -导入用户 -*/ -type TaobaoOpenimUsersAddAPIResponse struct { - model.CommonResponse - TaobaoOpenimUsersAddResponse -} - -// 添加用户 成功返回结果 -type TaobaoOpenimUsersAddResponse struct { - XMLName xml.Name `xml:"openim_users_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功用户列表 - UidSucc []string `json:"uid_succ,omitempty" xml:"uid_succ>string,omitempty"` - // 添加失败的用户id - UidFail []string `json:"uid_fail,omitempty" xml:"uid_fail>string,omitempty"` - // 添加帐号失败的具体信息 - FailMsg []string `json:"fail_msg,omitempty" xml:"fail_msg>string,omitempty"` -} diff --git a/model/openim/TaobaoOpenimUsersDeleteAPIRequest.go b/model/openim/TaobaoOpenimUsersDeleteAPIRequest.go new file mode 100644 index 0000000000..debcac8ade --- /dev/null +++ b/model/openim/TaobaoOpenimUsersDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除用户 API请求 +taobao.openim.users.delete + +批量删除用户 +*/ +type TaobaoOpenimUsersDeleteAPIRequest struct { + model.Params + // 需要删除的用户列表,多个用户用半角逗号分隔,最多一次可以删除100个用户 + _userids []string +} + +// 初始化TaobaoOpenimUsersDeleteAPIRequest对象 +func NewTaobaoOpenimUsersDeleteRequest() *TaobaoOpenimUsersDeleteAPIRequest{ + return &TaobaoOpenimUsersDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimUsersDeleteAPIRequest) GetApiMethodName() string { + return "taobao.openim.users.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimUsersDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Userids Setter +// 需要删除的用户列表,多个用户用半角逗号分隔,最多一次可以删除100个用户 +func (r *TaobaoOpenimUsersDeleteAPIRequest) SetUserids(_userids []string) error { + r._userids = _userids + r.Set("userids", _userids) + return nil +} + +// Userids Getter +func (r TaobaoOpenimUsersDeleteAPIRequest) GetUserids() []string { + return r._userids +} diff --git a/model/openim/TaobaoOpenimUsersDeleteAPIResponse.go b/model/openim/TaobaoOpenimUsersDeleteAPIResponse.go new file mode 100644 index 0000000000..19240e18bb --- /dev/null +++ b/model/openim/TaobaoOpenimUsersDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除用户 API返回值 +taobao.openim.users.delete + +批量删除用户 +*/ +type TaobaoOpenimUsersDeleteAPIResponse struct { + model.CommonResponse + TaobaoOpenimUsersDeleteAPIResponseModel +} + +// 删除用户 成功返回结果 +type TaobaoOpenimUsersDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"openim_users_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作成功 + Result []string `json:"result,omitempty" xml:"result>string,omitempty"` +} diff --git a/model/openim/TaobaoOpenimUsersDeleteResponse.go b/model/openim/TaobaoOpenimUsersDeleteResponse.go deleted file mode 100644 index f68f80ac94..0000000000 --- a/model/openim/TaobaoOpenimUsersDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除用户 API返回值 -taobao.openim.users.delete - -批量删除用户 -*/ -type TaobaoOpenimUsersDeleteAPIResponse struct { - model.CommonResponse - TaobaoOpenimUsersDeleteResponse -} - -// 删除用户 成功返回结果 -type TaobaoOpenimUsersDeleteResponse struct { - XMLName xml.Name `xml:"openim_users_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作成功 - Result []string `json:"result,omitempty" xml:"result>string,omitempty"` -} diff --git a/model/openim/TaobaoOpenimUsersGetAPIRequest.go b/model/openim/TaobaoOpenimUsersGetAPIRequest.go new file mode 100644 index 0000000000..515f72f196 --- /dev/null +++ b/model/openim/TaobaoOpenimUsersGetAPIRequest.go @@ -0,0 +1,52 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取用户信息 API请求 +taobao.openim.users.get + +批量获取用户信息 +*/ +type TaobaoOpenimUsersGetAPIRequest struct { + model.Params + // 用户id序列 + _userids []string +} + +// 初始化TaobaoOpenimUsersGetAPIRequest对象 +func NewTaobaoOpenimUsersGetRequest() *TaobaoOpenimUsersGetAPIRequest{ + return &TaobaoOpenimUsersGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimUsersGetAPIRequest) GetApiMethodName() string { + return "taobao.openim.users.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimUsersGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Userids Setter +// 用户id序列 +func (r *TaobaoOpenimUsersGetAPIRequest) SetUserids(_userids []string) error { + r._userids = _userids + r.Set("userids", _userids) + return nil +} + +// Userids Getter +func (r TaobaoOpenimUsersGetAPIRequest) GetUserids() []string { + return r._userids +} diff --git a/model/openim/TaobaoOpenimUsersGetAPIResponse.go b/model/openim/TaobaoOpenimUsersGetAPIResponse.go new file mode 100644 index 0000000000..8924bcedc4 --- /dev/null +++ b/model/openim/TaobaoOpenimUsersGetAPIResponse.go @@ -0,0 +1,27 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取用户信息 API返回值 +taobao.openim.users.get + +批量获取用户信息 +*/ +type TaobaoOpenimUsersGetAPIResponse struct { + model.CommonResponse + TaobaoOpenimUsersGetAPIResponseModel +} + +// 批量获取用户信息 成功返回结果 +type TaobaoOpenimUsersGetAPIResponseModel struct { + XMLName xml.Name `xml:"openim_users_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 获取的用户信息列表 + Userinfos []Userinfos `json:"userinfos,omitempty" xml:"userinfos>userinfos,omitempty"` +} diff --git a/model/openim/TaobaoOpenimUsersGetResponse.go b/model/openim/TaobaoOpenimUsersGetResponse.go deleted file mode 100644 index c3d42764fe..0000000000 --- a/model/openim/TaobaoOpenimUsersGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量获取用户信息 API返回值 -taobao.openim.users.get - -批量获取用户信息 -*/ -type TaobaoOpenimUsersGetAPIResponse struct { - model.CommonResponse - TaobaoOpenimUsersGetResponse -} - -// 批量获取用户信息 成功返回结果 -type TaobaoOpenimUsersGetResponse struct { - XMLName xml.Name `xml:"openim_users_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 获取的用户信息列表 - Userinfos []Userinfos `json:"userinfos,omitempty" xml:"userinfos>userinfos,omitempty"` -} diff --git a/model/openim/TaobaoOpenimUsersUpdateAPIRequest.go b/model/openim/TaobaoOpenimUsersUpdateAPIRequest.go new file mode 100644 index 0000000000..1a26314336 --- /dev/null +++ b/model/openim/TaobaoOpenimUsersUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package openim + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量更新用户信息 API请求 +taobao.openim.users.update + +批量更新用户信息 +*/ +type TaobaoOpenimUsersUpdateAPIRequest struct { + model.Params + // 用户信息列表 + _userinfos []Userinfos +} + +// 初始化TaobaoOpenimUsersUpdateAPIRequest对象 +func NewTaobaoOpenimUsersUpdateRequest() *TaobaoOpenimUsersUpdateAPIRequest{ + return &TaobaoOpenimUsersUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenimUsersUpdateAPIRequest) GetApiMethodName() string { + return "taobao.openim.users.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenimUsersUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Userinfos Setter +// 用户信息列表 +func (r *TaobaoOpenimUsersUpdateAPIRequest) SetUserinfos(_userinfos []Userinfos) error { + r._userinfos = _userinfos + r.Set("userinfos", _userinfos) + return nil +} + +// Userinfos Getter +func (r TaobaoOpenimUsersUpdateAPIRequest) GetUserinfos() []Userinfos { + return r._userinfos +} diff --git a/model/openim/TaobaoOpenimUsersUpdateAPIResponse.go b/model/openim/TaobaoOpenimUsersUpdateAPIResponse.go new file mode 100644 index 0000000000..5c76c0b27b --- /dev/null +++ b/model/openim/TaobaoOpenimUsersUpdateAPIResponse.go @@ -0,0 +1,31 @@ +package openim + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量更新用户信息 API返回值 +taobao.openim.users.update + +批量更新用户信息 +*/ +type TaobaoOpenimUsersUpdateAPIResponse struct { + model.CommonResponse + TaobaoOpenimUsersUpdateAPIResponseModel +} + +// 批量更新用户信息 成功返回结果 +type TaobaoOpenimUsersUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"openim_users_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 对应每一个失败用户的具体错误信息 + FailMsg []string `json:"fail_msg,omitempty" xml:"fail_msg>string,omitempty"` + // 失败的uid列表 + UidFail []string `json:"uid_fail,omitempty" xml:"uid_fail>string,omitempty"` + // 成功的uid列表 + UidSucc []string `json:"uid_succ,omitempty" xml:"uid_succ>string,omitempty"` +} diff --git a/model/openim/TaobaoOpenimUsersUpdateResponse.go b/model/openim/TaobaoOpenimUsersUpdateResponse.go deleted file mode 100644 index c6637fffd0..0000000000 --- a/model/openim/TaobaoOpenimUsersUpdateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package openim - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量更新用户信息 API返回值 -taobao.openim.users.update - -批量更新用户信息 -*/ -type TaobaoOpenimUsersUpdateAPIResponse struct { - model.CommonResponse - TaobaoOpenimUsersUpdateResponse -} - -// 批量更新用户信息 成功返回结果 -type TaobaoOpenimUsersUpdateResponse struct { - XMLName xml.Name `xml:"openim_users_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 对应每一个失败用户的具体错误信息 - FailMsg []string `json:"fail_msg,omitempty" xml:"fail_msg>string,omitempty"` - // 失败的uid列表 - UidFail []string `json:"uid_fail,omitempty" xml:"uid_fail>string,omitempty"` - // 成功的uid列表 - UidSucc []string `json:"uid_succ,omitempty" xml:"uid_succ>string,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallItemGetAPIRequest.go b/model/openmall/TaobaoOpenmallItemGetAPIRequest.go new file mode 100644 index 0000000000..03ac41499b --- /dev/null +++ b/model/openmall/TaobaoOpenmallItemGetAPIRequest.go @@ -0,0 +1,52 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商品详情物料 API请求 +taobao.openmall.item.get + +获取联盟开放的openmall商品 +*/ +type TaobaoOpenmallItemGetAPIRequest struct { + model.Params + // 商品ID + _itemId int64 +} + +// 初始化TaobaoOpenmallItemGetAPIRequest对象 +func NewTaobaoOpenmallItemGetRequest() *TaobaoOpenmallItemGetAPIRequest{ + return &TaobaoOpenmallItemGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallItemGetAPIRequest) GetApiMethodName() string { + return "taobao.openmall.item.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallItemGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品ID +func (r *TaobaoOpenmallItemGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoOpenmallItemGetAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/openmall/TaobaoOpenmallItemGetAPIResponse.go b/model/openmall/TaobaoOpenmallItemGetAPIResponse.go new file mode 100644 index 0000000000..0f25b75461 --- /dev/null +++ b/model/openmall/TaobaoOpenmallItemGetAPIResponse.go @@ -0,0 +1,27 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商品详情物料 API返回值 +taobao.openmall.item.get + +获取联盟开放的openmall商品 +*/ +type TaobaoOpenmallItemGetAPIResponse struct { + model.CommonResponse + TaobaoOpenmallItemGetAPIResponseModel +} + +// 获取商品详情物料 成功返回结果 +type TaobaoOpenmallItemGetAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_item_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoOpenmallItemGetResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallItemGetResponse.go b/model/openmall/TaobaoOpenmallItemGetResponse.go deleted file mode 100644 index f880a94208..0000000000 --- a/model/openmall/TaobaoOpenmallItemGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取商品详情物料 API返回值 -taobao.openmall.item.get - -获取联盟开放的openmall商品 -*/ -type TaobaoOpenmallItemGetAPIResponse struct { - model.CommonResponse - TaobaoOpenmallItemGetResponse -} - -// 获取商品详情物料 成功返回结果 -type TaobaoOpenmallItemGetResponse struct { - XMLName xml.Name `xml:"openmall_item_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoOpenmallItemGetResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallItemGetResultDo.go b/model/openmall/TaobaoOpenmallItemGetResultDo.go new file mode 100644 index 0000000000..6461b6114a --- /dev/null +++ b/model/openmall/TaobaoOpenmallItemGetResultDo.go @@ -0,0 +1,13 @@ +package openmall + +// TaobaoOpenmallItemGetResultDo +type TaobaoOpenmallItemGetResultDo struct { + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 商品 + Item *TopItemVo `json:"item,omitempty" xml:"item,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallItemSaleareaGetAPIRequest.go b/model/openmall/TaobaoOpenmallItemSaleareaGetAPIRequest.go new file mode 100644 index 0000000000..a06134e332 --- /dev/null +++ b/model/openmall/TaobaoOpenmallItemSaleareaGetAPIRequest.go @@ -0,0 +1,66 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品可售区域 API请求 +taobao.openmall.item.salearea.get + +获取openmall商品的可售区域 +*/ +type TaobaoOpenmallItemSaleareaGetAPIRequest struct { + model.Params + // 商品SKU + _skuIds string + // 商品ID + _itemId int64 +} + +// 初始化TaobaoOpenmallItemSaleareaGetAPIRequest对象 +func NewTaobaoOpenmallItemSaleareaGetRequest() *TaobaoOpenmallItemSaleareaGetAPIRequest{ + return &TaobaoOpenmallItemSaleareaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallItemSaleareaGetAPIRequest) GetApiMethodName() string { + return "taobao.openmall.item.salearea.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallItemSaleareaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkuIds Setter +// 商品SKU +func (r *TaobaoOpenmallItemSaleareaGetAPIRequest) SetSkuIds(_skuIds string) error { + r._skuIds = _skuIds + r.Set("sku_ids", _skuIds) + return nil +} + +// SkuIds Getter +func (r TaobaoOpenmallItemSaleareaGetAPIRequest) GetSkuIds() string { + return r._skuIds +} +// ItemId Setter +// 商品ID +func (r *TaobaoOpenmallItemSaleareaGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoOpenmallItemSaleareaGetAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/openmall/TaobaoOpenmallItemSaleareaGetAPIResponse.go b/model/openmall/TaobaoOpenmallItemSaleareaGetAPIResponse.go new file mode 100644 index 0000000000..9cbd6c087a --- /dev/null +++ b/model/openmall/TaobaoOpenmallItemSaleareaGetAPIResponse.go @@ -0,0 +1,27 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品可售区域 API返回值 +taobao.openmall.item.salearea.get + +获取openmall商品的可售区域 +*/ +type TaobaoOpenmallItemSaleareaGetAPIResponse struct { + model.CommonResponse + TaobaoOpenmallItemSaleareaGetAPIResponseModel +} + +// 查询商品可售区域 成功返回结果 +type TaobaoOpenmallItemSaleareaGetAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_item_salearea_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoOpenmallItemSaleareaGetResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallItemSaleareaGetResponse.go b/model/openmall/TaobaoOpenmallItemSaleareaGetResponse.go deleted file mode 100644 index 5ec71bb564..0000000000 --- a/model/openmall/TaobaoOpenmallItemSaleareaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询商品可售区域 API返回值 -taobao.openmall.item.salearea.get - -获取openmall商品的可售区域 -*/ -type TaobaoOpenmallItemSaleareaGetAPIResponse struct { - model.CommonResponse - TaobaoOpenmallItemSaleareaGetResponse -} - -// 查询商品可售区域 成功返回结果 -type TaobaoOpenmallItemSaleareaGetResponse struct { - XMLName xml.Name `xml:"openmall_item_salearea_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoOpenmallItemSaleareaGetResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallItemSaleareaGetResultDo.go b/model/openmall/TaobaoOpenmallItemSaleareaGetResultDo.go new file mode 100644 index 0000000000..ad63c2a8b4 --- /dev/null +++ b/model/openmall/TaobaoOpenmallItemSaleareaGetResultDo.go @@ -0,0 +1,13 @@ +package openmall + +// TaobaoOpenmallItemSaleareaGetResultDo +type TaobaoOpenmallItemSaleareaGetResultDo struct { + // 可售区域结果 + SaleAreaList []TopSaleAreaVo `json:"sale_area_list,omitempty" xml:"sale_area_list>top_sale_area_vo,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallItemsQueryAPIRequest.go b/model/openmall/TaobaoOpenmallItemsQueryAPIRequest.go new file mode 100644 index 0000000000..eec02df980 --- /dev/null +++ b/model/openmall/TaobaoOpenmallItemsQueryAPIRequest.go @@ -0,0 +1,94 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取商品列表 API请求 +taobao.openmall.items.query + +批量获取对联盟开放的商品列表。 +*/ +type TaobaoOpenmallItemsQueryAPIRequest struct { + model.Params + // 已废弃,请勿使用 + _itemIds string + // 第几页,默认:1 + _pageNo int64 + // 页大小,默认20,1~100 + _pageSize int64 + // 当不输入渠道商时,展示全网公有商品池;当输入渠道商的淘宝Nick时,展示该渠道私有供给商品列表 + _distributor string +} + +// 初始化TaobaoOpenmallItemsQueryAPIRequest对象 +func NewTaobaoOpenmallItemsQueryRequest() *TaobaoOpenmallItemsQueryAPIRequest{ + return &TaobaoOpenmallItemsQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallItemsQueryAPIRequest) GetApiMethodName() string { + return "taobao.openmall.items.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallItemsQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemIds Setter +// 已废弃,请勿使用 +func (r *TaobaoOpenmallItemsQueryAPIRequest) SetItemIds(_itemIds string) error { + r._itemIds = _itemIds + r.Set("item_ids", _itemIds) + return nil +} + +// ItemIds Getter +func (r TaobaoOpenmallItemsQueryAPIRequest) GetItemIds() string { + return r._itemIds +} +// PageNo Setter +// 第几页,默认:1 +func (r *TaobaoOpenmallItemsQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoOpenmallItemsQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 页大小,默认20,1~100 +func (r *TaobaoOpenmallItemsQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoOpenmallItemsQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Distributor Setter +// 当不输入渠道商时,展示全网公有商品池;当输入渠道商的淘宝Nick时,展示该渠道私有供给商品列表 +func (r *TaobaoOpenmallItemsQueryAPIRequest) SetDistributor(_distributor string) error { + r._distributor = _distributor + r.Set("distributor", _distributor) + return nil +} + +// Distributor Getter +func (r TaobaoOpenmallItemsQueryAPIRequest) GetDistributor() string { + return r._distributor +} diff --git a/model/openmall/TaobaoOpenmallItemsQueryAPIResponse.go b/model/openmall/TaobaoOpenmallItemsQueryAPIResponse.go new file mode 100644 index 0000000000..285926407a --- /dev/null +++ b/model/openmall/TaobaoOpenmallItemsQueryAPIResponse.go @@ -0,0 +1,27 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取商品列表 API返回值 +taobao.openmall.items.query + +批量获取对联盟开放的商品列表。 +*/ +type TaobaoOpenmallItemsQueryAPIResponse struct { + model.CommonResponse + TaobaoOpenmallItemsQueryAPIResponseModel +} + +// 批量获取商品列表 成功返回结果 +type TaobaoOpenmallItemsQueryAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_items_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoOpenmallItemsQueryResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallItemsQueryResponse.go b/model/openmall/TaobaoOpenmallItemsQueryResponse.go deleted file mode 100644 index 2524e2c66c..0000000000 --- a/model/openmall/TaobaoOpenmallItemsQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量获取商品列表 API返回值 -taobao.openmall.items.query - -批量获取对联盟开放的商品列表。 -*/ -type TaobaoOpenmallItemsQueryAPIResponse struct { - model.CommonResponse - TaobaoOpenmallItemsQueryResponse -} - -// 批量获取商品列表 成功返回结果 -type TaobaoOpenmallItemsQueryResponse struct { - XMLName xml.Name `xml:"openmall_items_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoOpenmallItemsQueryResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallItemsQueryResultDo.go b/model/openmall/TaobaoOpenmallItemsQueryResultDo.go new file mode 100644 index 0000000000..eda21fcc3a --- /dev/null +++ b/model/openmall/TaobaoOpenmallItemsQueryResultDo.go @@ -0,0 +1,13 @@ +package openmall + +// TaobaoOpenmallItemsQueryResultDo +type TaobaoOpenmallItemsQueryResultDo struct { + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 商品列表 + ItemList []TopItemVo `json:"item_list,omitempty" xml:"item_list>top_item_vo,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallRefundBatchGetAPIRequest.go b/model/openmall/TaobaoOpenmallRefundBatchGetAPIRequest.go new file mode 100644 index 0000000000..ceeb041019 --- /dev/null +++ b/model/openmall/TaobaoOpenmallRefundBatchGetAPIRequest.go @@ -0,0 +1,109 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取openmall退款单 API请求 +taobao.openmall.refund.batch.get + +批量获取openmall退款单 +注意:该接口信息存在延迟,如需实时详情请访问taobao.openmall.refund.get +*/ +type TaobaoOpenmallRefundBatchGetAPIRequest struct { + model.Params + // 查询范围结束时间,闭区间 + _endCreated string + // 翻页页码,从1开始 + _pageIndex int64 + // 页面大小,不超过100 + _pageSize int64 + // 查询的渠道商Nick + _distributor string + // 查询范围开始时间,闭区间 + _startCreated string +} + +// 初始化TaobaoOpenmallRefundBatchGetAPIRequest对象 +func NewTaobaoOpenmallRefundBatchGetRequest() *TaobaoOpenmallRefundBatchGetAPIRequest{ + return &TaobaoOpenmallRefundBatchGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallRefundBatchGetAPIRequest) GetApiMethodName() string { + return "taobao.openmall.refund.batch.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallRefundBatchGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EndCreated Setter +// 查询范围结束时间,闭区间 +func (r *TaobaoOpenmallRefundBatchGetAPIRequest) SetEndCreated(_endCreated string) error { + r._endCreated = _endCreated + r.Set("end_created", _endCreated) + return nil +} + +// EndCreated Getter +func (r TaobaoOpenmallRefundBatchGetAPIRequest) GetEndCreated() string { + return r._endCreated +} +// PageIndex Setter +// 翻页页码,从1开始 +func (r *TaobaoOpenmallRefundBatchGetAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TaobaoOpenmallRefundBatchGetAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} +// PageSize Setter +// 页面大小,不超过100 +func (r *TaobaoOpenmallRefundBatchGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoOpenmallRefundBatchGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Distributor Setter +// 查询的渠道商Nick +func (r *TaobaoOpenmallRefundBatchGetAPIRequest) SetDistributor(_distributor string) error { + r._distributor = _distributor + r.Set("distributor", _distributor) + return nil +} + +// Distributor Getter +func (r TaobaoOpenmallRefundBatchGetAPIRequest) GetDistributor() string { + return r._distributor +} +// StartCreated Setter +// 查询范围开始时间,闭区间 +func (r *TaobaoOpenmallRefundBatchGetAPIRequest) SetStartCreated(_startCreated string) error { + r._startCreated = _startCreated + r.Set("start_created", _startCreated) + return nil +} + +// StartCreated Getter +func (r TaobaoOpenmallRefundBatchGetAPIRequest) GetStartCreated() string { + return r._startCreated +} diff --git a/model/openmall/TaobaoOpenmallRefundBatchGetAPIResponse.go b/model/openmall/TaobaoOpenmallRefundBatchGetAPIResponse.go new file mode 100644 index 0000000000..9c041708a0 --- /dev/null +++ b/model/openmall/TaobaoOpenmallRefundBatchGetAPIResponse.go @@ -0,0 +1,30 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取openmall退款单 API返回值 +taobao.openmall.refund.batch.get + +批量获取openmall退款单 +注意:该接口信息存在延迟,如需实时详情请访问taobao.openmall.refund.get +*/ +type TaobaoOpenmallRefundBatchGetAPIResponse struct { + model.CommonResponse + TaobaoOpenmallRefundBatchGetAPIResponseModel +} + +// 批量获取openmall退款单 成功返回结果 +type TaobaoOpenmallRefundBatchGetAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_refund_batch_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 退款列表 + Entities []TopRefundVo `json:"entities,omitempty" xml:"entities>top_refund_vo,omitempty"` + // 范围内总的退款单个数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallRefundBatchGetResponse.go b/model/openmall/TaobaoOpenmallRefundBatchGetResponse.go deleted file mode 100644 index 206de22ecf..0000000000 --- a/model/openmall/TaobaoOpenmallRefundBatchGetResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量获取openmall退款单 API返回值 -taobao.openmall.refund.batch.get - -批量获取openmall退款单 -注意:该接口信息存在延迟,如需实时详情请访问taobao.openmall.refund.get -*/ -type TaobaoOpenmallRefundBatchGetAPIResponse struct { - model.CommonResponse - TaobaoOpenmallRefundBatchGetResponse -} - -// 批量获取openmall退款单 成功返回结果 -type TaobaoOpenmallRefundBatchGetResponse struct { - XMLName xml.Name `xml:"openmall_refund_batch_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 退款列表 - Entities []TopRefundVo `json:"entities,omitempty" xml:"entities>top_refund_vo,omitempty"` - // 范围内总的退款单个数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallRefundCloseAPIRequest.go b/model/openmall/TaobaoOpenmallRefundCloseAPIRequest.go new file mode 100644 index 0000000000..a6ced37a9a --- /dev/null +++ b/model/openmall/TaobaoOpenmallRefundCloseAPIRequest.go @@ -0,0 +1,66 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +关闭OpenMall退款单 API请求 +taobao.openmall.refund.close + +关闭OpenMall退款单 +*/ +type TaobaoOpenmallRefundCloseAPIRequest struct { + model.Params + // 渠道 + _distributor string + // 退款ID + _refundId int64 +} + +// 初始化TaobaoOpenmallRefundCloseAPIRequest对象 +func NewTaobaoOpenmallRefundCloseRequest() *TaobaoOpenmallRefundCloseAPIRequest{ + return &TaobaoOpenmallRefundCloseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallRefundCloseAPIRequest) GetApiMethodName() string { + return "taobao.openmall.refund.close" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallRefundCloseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Distributor Setter +// 渠道 +func (r *TaobaoOpenmallRefundCloseAPIRequest) SetDistributor(_distributor string) error { + r._distributor = _distributor + r.Set("distributor", _distributor) + return nil +} + +// Distributor Getter +func (r TaobaoOpenmallRefundCloseAPIRequest) GetDistributor() string { + return r._distributor +} +// RefundId Setter +// 退款ID +func (r *TaobaoOpenmallRefundCloseAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoOpenmallRefundCloseAPIRequest) GetRefundId() int64 { + return r._refundId +} diff --git a/model/openmall/TaobaoOpenmallRefundCloseAPIResponse.go b/model/openmall/TaobaoOpenmallRefundCloseAPIResponse.go new file mode 100644 index 0000000000..9637dd0982 --- /dev/null +++ b/model/openmall/TaobaoOpenmallRefundCloseAPIResponse.go @@ -0,0 +1,27 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +关闭OpenMall退款单 API返回值 +taobao.openmall.refund.close + +关闭OpenMall退款单 +*/ +type TaobaoOpenmallRefundCloseAPIResponse struct { + model.CommonResponse + TaobaoOpenmallRefundCloseAPIResponseModel +} + +// 关闭OpenMall退款单 成功返回结果 +type TaobaoOpenmallRefundCloseAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_refund_close_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否关闭成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallRefundCloseResponse.go b/model/openmall/TaobaoOpenmallRefundCloseResponse.go deleted file mode 100644 index 15dfeacc8f..0000000000 --- a/model/openmall/TaobaoOpenmallRefundCloseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -关闭OpenMall退款单 API返回值 -taobao.openmall.refund.close - -关闭OpenMall退款单 -*/ -type TaobaoOpenmallRefundCloseAPIResponse struct { - model.CommonResponse - TaobaoOpenmallRefundCloseResponse -} - -// 关闭OpenMall退款单 成功返回结果 -type TaobaoOpenmallRefundCloseResponse struct { - XMLName xml.Name `xml:"openmall_refund_close_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否关闭成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallRefundCreateAPIRequest.go b/model/openmall/TaobaoOpenmallRefundCreateAPIRequest.go new file mode 100644 index 0000000000..8f212d0ca7 --- /dev/null +++ b/model/openmall/TaobaoOpenmallRefundCreateAPIRequest.go @@ -0,0 +1,137 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建OpenMall退款单 API请求 +taobao.openmall.refund.create + +创建OpenMall退款单 +如存在未完结的退款单,则返回该退款单ID +*/ +type TaobaoOpenmallRefundCreateAPIRequest struct { + model.Params + // 分销者联盟身份 + _distributor string + // 货品状态,可选值 BUYER_NOT_RECEIVED(买家未收到货)、BUYER_RECEIVED(买家已收到货)、UNSHIPPED(未发货) + _goodsStatus string + // 买家的退货描述 + _refundDesc string + // 退款金额,分 + _refundFee int64 + // 退款类别,可选值OTHER_REASON(其他)、SEVEN_DAYS_WITHOUT_REASON(7天无理由,不退邮费) + _refundReason string + // 退款类型,可选值refund(仅退款)、return_and_refund(退款退货) + _refundType string + // 订单号 + _tid int64 +} + +// 初始化TaobaoOpenmallRefundCreateAPIRequest对象 +func NewTaobaoOpenmallRefundCreateRequest() *TaobaoOpenmallRefundCreateAPIRequest{ + return &TaobaoOpenmallRefundCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallRefundCreateAPIRequest) GetApiMethodName() string { + return "taobao.openmall.refund.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallRefundCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Distributor Setter +// 分销者联盟身份 +func (r *TaobaoOpenmallRefundCreateAPIRequest) SetDistributor(_distributor string) error { + r._distributor = _distributor + r.Set("distributor", _distributor) + return nil +} + +// Distributor Getter +func (r TaobaoOpenmallRefundCreateAPIRequest) GetDistributor() string { + return r._distributor +} +// GoodsStatus Setter +// 货品状态,可选值 BUYER_NOT_RECEIVED(买家未收到货)、BUYER_RECEIVED(买家已收到货)、UNSHIPPED(未发货) +func (r *TaobaoOpenmallRefundCreateAPIRequest) SetGoodsStatus(_goodsStatus string) error { + r._goodsStatus = _goodsStatus + r.Set("goods_status", _goodsStatus) + return nil +} + +// GoodsStatus Getter +func (r TaobaoOpenmallRefundCreateAPIRequest) GetGoodsStatus() string { + return r._goodsStatus +} +// RefundDesc Setter +// 买家的退货描述 +func (r *TaobaoOpenmallRefundCreateAPIRequest) SetRefundDesc(_refundDesc string) error { + r._refundDesc = _refundDesc + r.Set("refund_desc", _refundDesc) + return nil +} + +// RefundDesc Getter +func (r TaobaoOpenmallRefundCreateAPIRequest) GetRefundDesc() string { + return r._refundDesc +} +// RefundFee Setter +// 退款金额,分 +func (r *TaobaoOpenmallRefundCreateAPIRequest) SetRefundFee(_refundFee int64) error { + r._refundFee = _refundFee + r.Set("refund_fee", _refundFee) + return nil +} + +// RefundFee Getter +func (r TaobaoOpenmallRefundCreateAPIRequest) GetRefundFee() int64 { + return r._refundFee +} +// RefundReason Setter +// 退款类别,可选值OTHER_REASON(其他)、SEVEN_DAYS_WITHOUT_REASON(7天无理由,不退邮费) +func (r *TaobaoOpenmallRefundCreateAPIRequest) SetRefundReason(_refundReason string) error { + r._refundReason = _refundReason + r.Set("refund_reason", _refundReason) + return nil +} + +// RefundReason Getter +func (r TaobaoOpenmallRefundCreateAPIRequest) GetRefundReason() string { + return r._refundReason +} +// RefundType Setter +// 退款类型,可选值refund(仅退款)、return_and_refund(退款退货) +func (r *TaobaoOpenmallRefundCreateAPIRequest) SetRefundType(_refundType string) error { + r._refundType = _refundType + r.Set("refund_type", _refundType) + return nil +} + +// RefundType Getter +func (r TaobaoOpenmallRefundCreateAPIRequest) GetRefundType() string { + return r._refundType +} +// Tid Setter +// 订单号 +func (r *TaobaoOpenmallRefundCreateAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoOpenmallRefundCreateAPIRequest) GetTid() int64 { + return r._tid +} diff --git a/model/openmall/TaobaoOpenmallRefundCreateAPIResponse.go b/model/openmall/TaobaoOpenmallRefundCreateAPIResponse.go new file mode 100644 index 0000000000..8abca61195 --- /dev/null +++ b/model/openmall/TaobaoOpenmallRefundCreateAPIResponse.go @@ -0,0 +1,30 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建OpenMall退款单 API返回值 +taobao.openmall.refund.create + +创建OpenMall退款单 +如存在未完结的退款单,则返回该退款单ID +*/ +type TaobaoOpenmallRefundCreateAPIResponse struct { + model.CommonResponse + TaobaoOpenmallRefundCreateAPIResponseModel +} + +// 创建OpenMall退款单 成功返回结果 +type TaobaoOpenmallRefundCreateAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_refund_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 退款ID + RefundId int64 `json:"refund_id,omitempty" xml:"refund_id,omitempty"` + // 退款单状态 + Status string `json:"status,omitempty" xml:"status,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallRefundCreateResponse.go b/model/openmall/TaobaoOpenmallRefundCreateResponse.go deleted file mode 100644 index 502b1fb98a..0000000000 --- a/model/openmall/TaobaoOpenmallRefundCreateResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建OpenMall退款单 API返回值 -taobao.openmall.refund.create - -创建OpenMall退款单 -如存在未完结的退款单,则返回该退款单ID -*/ -type TaobaoOpenmallRefundCreateAPIResponse struct { - model.CommonResponse - TaobaoOpenmallRefundCreateResponse -} - -// 创建OpenMall退款单 成功返回结果 -type TaobaoOpenmallRefundCreateResponse struct { - XMLName xml.Name `xml:"openmall_refund_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 退款ID - RefundId int64 `json:"refund_id,omitempty" xml:"refund_id,omitempty"` - // 退款单状态 - Status string `json:"status,omitempty" xml:"status,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallRefundGetAPIRequest.go b/model/openmall/TaobaoOpenmallRefundGetAPIRequest.go new file mode 100644 index 0000000000..1f982c47b8 --- /dev/null +++ b/model/openmall/TaobaoOpenmallRefundGetAPIRequest.go @@ -0,0 +1,66 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取OpenMall退款单详情 API请求 +taobao.openmall.refund.get + +获取OpenMall退款单详情 +*/ +type TaobaoOpenmallRefundGetAPIRequest struct { + model.Params + // 渠道商身份 + _distributor string + // 退款单ID + _refundId int64 +} + +// 初始化TaobaoOpenmallRefundGetAPIRequest对象 +func NewTaobaoOpenmallRefundGetRequest() *TaobaoOpenmallRefundGetAPIRequest{ + return &TaobaoOpenmallRefundGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallRefundGetAPIRequest) GetApiMethodName() string { + return "taobao.openmall.refund.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallRefundGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Distributor Setter +// 渠道商身份 +func (r *TaobaoOpenmallRefundGetAPIRequest) SetDistributor(_distributor string) error { + r._distributor = _distributor + r.Set("distributor", _distributor) + return nil +} + +// Distributor Getter +func (r TaobaoOpenmallRefundGetAPIRequest) GetDistributor() string { + return r._distributor +} +// RefundId Setter +// 退款单ID +func (r *TaobaoOpenmallRefundGetAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoOpenmallRefundGetAPIRequest) GetRefundId() int64 { + return r._refundId +} diff --git a/model/openmall/TaobaoOpenmallRefundGetAPIResponse.go b/model/openmall/TaobaoOpenmallRefundGetAPIResponse.go new file mode 100644 index 0000000000..981ea1f9fe --- /dev/null +++ b/model/openmall/TaobaoOpenmallRefundGetAPIResponse.go @@ -0,0 +1,27 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取OpenMall退款单详情 API返回值 +taobao.openmall.refund.get + +获取OpenMall退款单详情 +*/ +type TaobaoOpenmallRefundGetAPIResponse struct { + model.CommonResponse + TaobaoOpenmallRefundGetAPIResponseModel +} + +// 获取OpenMall退款单详情 成功返回结果 +type TaobaoOpenmallRefundGetAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_refund_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Refund *TopRefundVo `json:"refund,omitempty" xml:"refund,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallRefundGetResponse.go b/model/openmall/TaobaoOpenmallRefundGetResponse.go deleted file mode 100644 index 5297ca4d45..0000000000 --- a/model/openmall/TaobaoOpenmallRefundGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取OpenMall退款单详情 API返回值 -taobao.openmall.refund.get - -获取OpenMall退款单详情 -*/ -type TaobaoOpenmallRefundGetAPIResponse struct { - model.CommonResponse - TaobaoOpenmallRefundGetResponse -} - -// 获取OpenMall退款单详情 成功返回结果 -type TaobaoOpenmallRefundGetResponse struct { - XMLName xml.Name `xml:"openmall_refund_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Refund *TopRefundVo `json:"refund,omitempty" xml:"refund,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallRefundImageUploadAPIRequest.go b/model/openmall/TaobaoOpenmallRefundImageUploadAPIRequest.go new file mode 100644 index 0000000000..607d53a33c --- /dev/null +++ b/model/openmall/TaobaoOpenmallRefundImageUploadAPIRequest.go @@ -0,0 +1,80 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +OpenMall退款图片上传 API请求 +taobao.openmall.refund.image.upload + +OpenMall退款图片上传 +*/ +type TaobaoOpenmallRefundImageUploadAPIRequest struct { + model.Params + // 上传图片,必须为jpg或png格式,建议小于2M + _image *model.File + // 渠道商Nick + _distributor string + // 该图片归属的退款单ID + _refundId int64 +} + +// 初始化TaobaoOpenmallRefundImageUploadAPIRequest对象 +func NewTaobaoOpenmallRefundImageUploadRequest() *TaobaoOpenmallRefundImageUploadAPIRequest{ + return &TaobaoOpenmallRefundImageUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallRefundImageUploadAPIRequest) GetApiMethodName() string { + return "taobao.openmall.refund.image.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallRefundImageUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Image Setter +// 上传图片,必须为jpg或png格式,建议小于2M +func (r *TaobaoOpenmallRefundImageUploadAPIRequest) SetImage(_image *model.File) error { + r._image = _image + r.Set("image", _image) + return nil +} + +// Image Getter +func (r TaobaoOpenmallRefundImageUploadAPIRequest) GetImage() *model.File { + return r._image +} +// Distributor Setter +// 渠道商Nick +func (r *TaobaoOpenmallRefundImageUploadAPIRequest) SetDistributor(_distributor string) error { + r._distributor = _distributor + r.Set("distributor", _distributor) + return nil +} + +// Distributor Getter +func (r TaobaoOpenmallRefundImageUploadAPIRequest) GetDistributor() string { + return r._distributor +} +// RefundId Setter +// 该图片归属的退款单ID +func (r *TaobaoOpenmallRefundImageUploadAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoOpenmallRefundImageUploadAPIRequest) GetRefundId() int64 { + return r._refundId +} diff --git a/model/openmall/TaobaoOpenmallRefundImageUploadAPIResponse.go b/model/openmall/TaobaoOpenmallRefundImageUploadAPIResponse.go new file mode 100644 index 0000000000..a497adc3ca --- /dev/null +++ b/model/openmall/TaobaoOpenmallRefundImageUploadAPIResponse.go @@ -0,0 +1,27 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +OpenMall退款图片上传 API返回值 +taobao.openmall.refund.image.upload + +OpenMall退款图片上传 +*/ +type TaobaoOpenmallRefundImageUploadAPIResponse struct { + model.CommonResponse + TaobaoOpenmallRefundImageUploadAPIResponseModel +} + +// OpenMall退款图片上传 成功返回结果 +type TaobaoOpenmallRefundImageUploadAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_refund_image_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 图片上传对应Token,用于提交留言接口 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallRefundImageUploadResponse.go b/model/openmall/TaobaoOpenmallRefundImageUploadResponse.go deleted file mode 100644 index 6cec6ccfff..0000000000 --- a/model/openmall/TaobaoOpenmallRefundImageUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -OpenMall退款图片上传 API返回值 -taobao.openmall.refund.image.upload - -OpenMall退款图片上传 -*/ -type TaobaoOpenmallRefundImageUploadAPIResponse struct { - model.CommonResponse - TaobaoOpenmallRefundImageUploadResponse -} - -// OpenMall退款图片上传 成功返回结果 -type TaobaoOpenmallRefundImageUploadResponse struct { - XMLName xml.Name `xml:"openmall_refund_image_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 图片上传对应Token,用于提交留言接口 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallRefundMessageGetAPIRequest.go b/model/openmall/TaobaoOpenmallRefundMessageGetAPIRequest.go new file mode 100644 index 0000000000..5f9224c935 --- /dev/null +++ b/model/openmall/TaobaoOpenmallRefundMessageGetAPIRequest.go @@ -0,0 +1,94 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +openmall获取退款单留言 API请求 +taobao.openmall.refund.message.get + +openmall获取退款单留言 +*/ +type TaobaoOpenmallRefundMessageGetAPIRequest struct { + model.Params + // 分销者身份 + _distributor string + // 翻页页码 + _pageNo int64 + // 翻页大小 + _pageSize int64 + // 退款单号 + _refundId int64 +} + +// 初始化TaobaoOpenmallRefundMessageGetAPIRequest对象 +func NewTaobaoOpenmallRefundMessageGetRequest() *TaobaoOpenmallRefundMessageGetAPIRequest{ + return &TaobaoOpenmallRefundMessageGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallRefundMessageGetAPIRequest) GetApiMethodName() string { + return "taobao.openmall.refund.message.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallRefundMessageGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Distributor Setter +// 分销者身份 +func (r *TaobaoOpenmallRefundMessageGetAPIRequest) SetDistributor(_distributor string) error { + r._distributor = _distributor + r.Set("distributor", _distributor) + return nil +} + +// Distributor Getter +func (r TaobaoOpenmallRefundMessageGetAPIRequest) GetDistributor() string { + return r._distributor +} +// PageNo Setter +// 翻页页码 +func (r *TaobaoOpenmallRefundMessageGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoOpenmallRefundMessageGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 翻页大小 +func (r *TaobaoOpenmallRefundMessageGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoOpenmallRefundMessageGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// RefundId Setter +// 退款单号 +func (r *TaobaoOpenmallRefundMessageGetAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoOpenmallRefundMessageGetAPIRequest) GetRefundId() int64 { + return r._refundId +} diff --git a/model/openmall/TaobaoOpenmallRefundMessageGetAPIResponse.go b/model/openmall/TaobaoOpenmallRefundMessageGetAPIResponse.go new file mode 100644 index 0000000000..674c34b694 --- /dev/null +++ b/model/openmall/TaobaoOpenmallRefundMessageGetAPIResponse.go @@ -0,0 +1,27 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +openmall获取退款单留言 API返回值 +taobao.openmall.refund.message.get + +openmall获取退款单留言 +*/ +type TaobaoOpenmallRefundMessageGetAPIResponse struct { + model.CommonResponse + TaobaoOpenmallRefundMessageGetAPIResponseModel +} + +// openmall获取退款单留言 成功返回结果 +type TaobaoOpenmallRefundMessageGetAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_refund_message_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 留言列表 + ResultsList []RefundMessage `json:"results_list,omitempty" xml:"results_list>refund_message,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallRefundMessageGetResponse.go b/model/openmall/TaobaoOpenmallRefundMessageGetResponse.go deleted file mode 100644 index ed314be847..0000000000 --- a/model/openmall/TaobaoOpenmallRefundMessageGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -openmall获取退款单留言 API返回值 -taobao.openmall.refund.message.get - -openmall获取退款单留言 -*/ -type TaobaoOpenmallRefundMessageGetAPIResponse struct { - model.CommonResponse - TaobaoOpenmallRefundMessageGetResponse -} - -// openmall获取退款单留言 成功返回结果 -type TaobaoOpenmallRefundMessageGetResponse struct { - XMLName xml.Name `xml:"openmall_refund_message_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 留言列表 - ResultsList []RefundMessage `json:"results_list,omitempty" xml:"results_list>refund_message,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallRefundMessageSubmitAPIRequest.go b/model/openmall/TaobaoOpenmallRefundMessageSubmitAPIRequest.go new file mode 100644 index 0000000000..5c8583bdc3 --- /dev/null +++ b/model/openmall/TaobaoOpenmallRefundMessageSubmitAPIRequest.go @@ -0,0 +1,80 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交退款单留言 API请求 +taobao.openmall.refund.message.submit + +OpenMall业务提交退款单留言 +*/ +type TaobaoOpenmallRefundMessageSubmitAPIRequest struct { + model.Params + // 分销者身份 + _distributor string + // 退款单ID + _refundId int64 + // 提交留言结构 + _refundMessage *RefundMessage +} + +// 初始化TaobaoOpenmallRefundMessageSubmitAPIRequest对象 +func NewTaobaoOpenmallRefundMessageSubmitRequest() *TaobaoOpenmallRefundMessageSubmitAPIRequest{ + return &TaobaoOpenmallRefundMessageSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallRefundMessageSubmitAPIRequest) GetApiMethodName() string { + return "taobao.openmall.refund.message.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallRefundMessageSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Distributor Setter +// 分销者身份 +func (r *TaobaoOpenmallRefundMessageSubmitAPIRequest) SetDistributor(_distributor string) error { + r._distributor = _distributor + r.Set("distributor", _distributor) + return nil +} + +// Distributor Getter +func (r TaobaoOpenmallRefundMessageSubmitAPIRequest) GetDistributor() string { + return r._distributor +} +// RefundId Setter +// 退款单ID +func (r *TaobaoOpenmallRefundMessageSubmitAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoOpenmallRefundMessageSubmitAPIRequest) GetRefundId() int64 { + return r._refundId +} +// RefundMessage Setter +// 提交留言结构 +func (r *TaobaoOpenmallRefundMessageSubmitAPIRequest) SetRefundMessage(_refundMessage *RefundMessage) error { + r._refundMessage = _refundMessage + r.Set("refund_message", _refundMessage) + return nil +} + +// RefundMessage Getter +func (r TaobaoOpenmallRefundMessageSubmitAPIRequest) GetRefundMessage() *RefundMessage { + return r._refundMessage +} diff --git a/model/openmall/TaobaoOpenmallRefundMessageSubmitAPIResponse.go b/model/openmall/TaobaoOpenmallRefundMessageSubmitAPIResponse.go new file mode 100644 index 0000000000..eadbdbf004 --- /dev/null +++ b/model/openmall/TaobaoOpenmallRefundMessageSubmitAPIResponse.go @@ -0,0 +1,27 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交退款单留言 API返回值 +taobao.openmall.refund.message.submit + +OpenMall业务提交退款单留言 +*/ +type TaobaoOpenmallRefundMessageSubmitAPIResponse struct { + model.CommonResponse + TaobaoOpenmallRefundMessageSubmitAPIResponseModel +} + +// 提交退款单留言 成功返回结果 +type TaobaoOpenmallRefundMessageSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_refund_message_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 提交结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallRefundMessageSubmitResponse.go b/model/openmall/TaobaoOpenmallRefundMessageSubmitResponse.go deleted file mode 100644 index 43260e280a..0000000000 --- a/model/openmall/TaobaoOpenmallRefundMessageSubmitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交退款单留言 API返回值 -taobao.openmall.refund.message.submit - -OpenMall业务提交退款单留言 -*/ -type TaobaoOpenmallRefundMessageSubmitAPIResponse struct { - model.CommonResponse - TaobaoOpenmallRefundMessageSubmitResponse -} - -// 提交退款单留言 成功返回结果 -type TaobaoOpenmallRefundMessageSubmitResponse struct { - XMLName xml.Name `xml:"openmall_refund_message_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 提交结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallRefundModifyAPIRequest.go b/model/openmall/TaobaoOpenmallRefundModifyAPIRequest.go new file mode 100644 index 0000000000..5e2670074b --- /dev/null +++ b/model/openmall/TaobaoOpenmallRefundModifyAPIRequest.go @@ -0,0 +1,136 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改OpenMall退款申请 API请求 +taobao.openmall.refund.modify + +修改OpenMall退款申请 +*/ +type TaobaoOpenmallRefundModifyAPIRequest struct { + model.Params + // 退款类型,可选值refund(仅退款)、return_and_refund(退款退货) + _refundType string + // 退款金额,分 + _refundFee int64 + // 买家的退货描述 + _refundDesc string + // 货品状态,可选值 BUYER_NOT_RECEIVED(买家未收到货)、BUYER_RECEIVED(买家已收到货)、UNSHIPPED(未发货) + _goodsStatus string + // 退款类别,可选值OTHER_REASON(其他,默认)、SEVEN_DAYS_WITHOUT_REASON(7天无理由,不退邮费) + _refundReason string + // 分销者联盟身份 + _distributor string + // 退款单ID + _refundId int64 +} + +// 初始化TaobaoOpenmallRefundModifyAPIRequest对象 +func NewTaobaoOpenmallRefundModifyRequest() *TaobaoOpenmallRefundModifyAPIRequest{ + return &TaobaoOpenmallRefundModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallRefundModifyAPIRequest) GetApiMethodName() string { + return "taobao.openmall.refund.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallRefundModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundType Setter +// 退款类型,可选值refund(仅退款)、return_and_refund(退款退货) +func (r *TaobaoOpenmallRefundModifyAPIRequest) SetRefundType(_refundType string) error { + r._refundType = _refundType + r.Set("refund_type", _refundType) + return nil +} + +// RefundType Getter +func (r TaobaoOpenmallRefundModifyAPIRequest) GetRefundType() string { + return r._refundType +} +// RefundFee Setter +// 退款金额,分 +func (r *TaobaoOpenmallRefundModifyAPIRequest) SetRefundFee(_refundFee int64) error { + r._refundFee = _refundFee + r.Set("refund_fee", _refundFee) + return nil +} + +// RefundFee Getter +func (r TaobaoOpenmallRefundModifyAPIRequest) GetRefundFee() int64 { + return r._refundFee +} +// RefundDesc Setter +// 买家的退货描述 +func (r *TaobaoOpenmallRefundModifyAPIRequest) SetRefundDesc(_refundDesc string) error { + r._refundDesc = _refundDesc + r.Set("refund_desc", _refundDesc) + return nil +} + +// RefundDesc Getter +func (r TaobaoOpenmallRefundModifyAPIRequest) GetRefundDesc() string { + return r._refundDesc +} +// GoodsStatus Setter +// 货品状态,可选值 BUYER_NOT_RECEIVED(买家未收到货)、BUYER_RECEIVED(买家已收到货)、UNSHIPPED(未发货) +func (r *TaobaoOpenmallRefundModifyAPIRequest) SetGoodsStatus(_goodsStatus string) error { + r._goodsStatus = _goodsStatus + r.Set("goods_status", _goodsStatus) + return nil +} + +// GoodsStatus Getter +func (r TaobaoOpenmallRefundModifyAPIRequest) GetGoodsStatus() string { + return r._goodsStatus +} +// RefundReason Setter +// 退款类别,可选值OTHER_REASON(其他,默认)、SEVEN_DAYS_WITHOUT_REASON(7天无理由,不退邮费) +func (r *TaobaoOpenmallRefundModifyAPIRequest) SetRefundReason(_refundReason string) error { + r._refundReason = _refundReason + r.Set("refund_reason", _refundReason) + return nil +} + +// RefundReason Getter +func (r TaobaoOpenmallRefundModifyAPIRequest) GetRefundReason() string { + return r._refundReason +} +// Distributor Setter +// 分销者联盟身份 +func (r *TaobaoOpenmallRefundModifyAPIRequest) SetDistributor(_distributor string) error { + r._distributor = _distributor + r.Set("distributor", _distributor) + return nil +} + +// Distributor Getter +func (r TaobaoOpenmallRefundModifyAPIRequest) GetDistributor() string { + return r._distributor +} +// RefundId Setter +// 退款单ID +func (r *TaobaoOpenmallRefundModifyAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoOpenmallRefundModifyAPIRequest) GetRefundId() int64 { + return r._refundId +} diff --git a/model/openmall/TaobaoOpenmallRefundModifyAPIResponse.go b/model/openmall/TaobaoOpenmallRefundModifyAPIResponse.go new file mode 100644 index 0000000000..0145c5381d --- /dev/null +++ b/model/openmall/TaobaoOpenmallRefundModifyAPIResponse.go @@ -0,0 +1,27 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改OpenMall退款申请 API返回值 +taobao.openmall.refund.modify + +修改OpenMall退款申请 +*/ +type TaobaoOpenmallRefundModifyAPIResponse struct { + model.CommonResponse + TaobaoOpenmallRefundModifyAPIResponseModel +} + +// 修改OpenMall退款申请 成功返回结果 +type TaobaoOpenmallRefundModifyAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_refund_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallRefundModifyResponse.go b/model/openmall/TaobaoOpenmallRefundModifyResponse.go deleted file mode 100644 index 497e961611..0000000000 --- a/model/openmall/TaobaoOpenmallRefundModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改OpenMall退款申请 API返回值 -taobao.openmall.refund.modify - -修改OpenMall退款申请 -*/ -type TaobaoOpenmallRefundModifyAPIResponse struct { - model.CommonResponse - TaobaoOpenmallRefundModifyResponse -} - -// 修改OpenMall退款申请 成功返回结果 -type TaobaoOpenmallRefundModifyResponse struct { - XMLName xml.Name `xml:"openmall_refund_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallRefundSubmitAPIRequest.go b/model/openmall/TaobaoOpenmallRefundSubmitAPIRequest.go new file mode 100644 index 0000000000..3116fc5cf3 --- /dev/null +++ b/model/openmall/TaobaoOpenmallRefundSubmitAPIRequest.go @@ -0,0 +1,108 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交OpenMall退款单物流 API请求 +taobao.openmall.refund.submit + +提交OpenMall退款单物流 +*/ +type TaobaoOpenmallRefundSubmitAPIRequest struct { + model.Params + // 渠道 + _distributor string + // 物流公司编码 + _logisticsCompanyCode string + // 物流公司名称 + _logisticsCompanyName string + // 快递单号 + _logisticsNo string + // 退款单ID + _refundId int64 +} + +// 初始化TaobaoOpenmallRefundSubmitAPIRequest对象 +func NewTaobaoOpenmallRefundSubmitRequest() *TaobaoOpenmallRefundSubmitAPIRequest{ + return &TaobaoOpenmallRefundSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallRefundSubmitAPIRequest) GetApiMethodName() string { + return "taobao.openmall.refund.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallRefundSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Distributor Setter +// 渠道 +func (r *TaobaoOpenmallRefundSubmitAPIRequest) SetDistributor(_distributor string) error { + r._distributor = _distributor + r.Set("distributor", _distributor) + return nil +} + +// Distributor Getter +func (r TaobaoOpenmallRefundSubmitAPIRequest) GetDistributor() string { + return r._distributor +} +// LogisticsCompanyCode Setter +// 物流公司编码 +func (r *TaobaoOpenmallRefundSubmitAPIRequest) SetLogisticsCompanyCode(_logisticsCompanyCode string) error { + r._logisticsCompanyCode = _logisticsCompanyCode + r.Set("logistics_company_code", _logisticsCompanyCode) + return nil +} + +// LogisticsCompanyCode Getter +func (r TaobaoOpenmallRefundSubmitAPIRequest) GetLogisticsCompanyCode() string { + return r._logisticsCompanyCode +} +// LogisticsCompanyName Setter +// 物流公司名称 +func (r *TaobaoOpenmallRefundSubmitAPIRequest) SetLogisticsCompanyName(_logisticsCompanyName string) error { + r._logisticsCompanyName = _logisticsCompanyName + r.Set("logistics_company_name", _logisticsCompanyName) + return nil +} + +// LogisticsCompanyName Getter +func (r TaobaoOpenmallRefundSubmitAPIRequest) GetLogisticsCompanyName() string { + return r._logisticsCompanyName +} +// LogisticsNo Setter +// 快递单号 +func (r *TaobaoOpenmallRefundSubmitAPIRequest) SetLogisticsNo(_logisticsNo string) error { + r._logisticsNo = _logisticsNo + r.Set("logistics_no", _logisticsNo) + return nil +} + +// LogisticsNo Getter +func (r TaobaoOpenmallRefundSubmitAPIRequest) GetLogisticsNo() string { + return r._logisticsNo +} +// RefundId Setter +// 退款单ID +func (r *TaobaoOpenmallRefundSubmitAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoOpenmallRefundSubmitAPIRequest) GetRefundId() int64 { + return r._refundId +} diff --git a/model/openmall/TaobaoOpenmallRefundSubmitAPIResponse.go b/model/openmall/TaobaoOpenmallRefundSubmitAPIResponse.go new file mode 100644 index 0000000000..5e719ede2b --- /dev/null +++ b/model/openmall/TaobaoOpenmallRefundSubmitAPIResponse.go @@ -0,0 +1,27 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交OpenMall退款单物流 API返回值 +taobao.openmall.refund.submit + +提交OpenMall退款单物流 +*/ +type TaobaoOpenmallRefundSubmitAPIResponse struct { + model.CommonResponse + TaobaoOpenmallRefundSubmitAPIResponseModel +} + +// 提交OpenMall退款单物流 成功返回结果 +type TaobaoOpenmallRefundSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_refund_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 提交物流单成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallRefundSubmitResponse.go b/model/openmall/TaobaoOpenmallRefundSubmitResponse.go deleted file mode 100644 index 4a9e38d0f6..0000000000 --- a/model/openmall/TaobaoOpenmallRefundSubmitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交OpenMall退款单物流 API返回值 -taobao.openmall.refund.submit - -提交OpenMall退款单物流 -*/ -type TaobaoOpenmallRefundSubmitAPIResponse struct { - model.CommonResponse - TaobaoOpenmallRefundSubmitResponse -} - -// 提交OpenMall退款单物流 成功返回结果 -type TaobaoOpenmallRefundSubmitResponse struct { - XMLName xml.Name `xml:"openmall_refund_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 提交物流单成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallTraceSearchAPIRequest.go b/model/openmall/TaobaoOpenmallTraceSearchAPIRequest.go new file mode 100644 index 0000000000..a7eb947543 --- /dev/null +++ b/model/openmall/TaobaoOpenmallTraceSearchAPIRequest.go @@ -0,0 +1,66 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取Openmall订单物流流转信息 API请求 +taobao.openmall.trace.search + +获取Openmall订单物流流转信息 +*/ +type TaobaoOpenmallTraceSearchAPIRequest struct { + model.Params + // 签约支付宝代扣的账号 + _distributor string + // 淘宝订单编号 + _tid int64 +} + +// 初始化TaobaoOpenmallTraceSearchAPIRequest对象 +func NewTaobaoOpenmallTraceSearchRequest() *TaobaoOpenmallTraceSearchAPIRequest{ + return &TaobaoOpenmallTraceSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallTraceSearchAPIRequest) GetApiMethodName() string { + return "taobao.openmall.trace.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallTraceSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Distributor Setter +// 签约支付宝代扣的账号 +func (r *TaobaoOpenmallTraceSearchAPIRequest) SetDistributor(_distributor string) error { + r._distributor = _distributor + r.Set("distributor", _distributor) + return nil +} + +// Distributor Getter +func (r TaobaoOpenmallTraceSearchAPIRequest) GetDistributor() string { + return r._distributor +} +// Tid Setter +// 淘宝订单编号 +func (r *TaobaoOpenmallTraceSearchAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoOpenmallTraceSearchAPIRequest) GetTid() int64 { + return r._tid +} diff --git a/model/openmall/TaobaoOpenmallTraceSearchAPIResponse.go b/model/openmall/TaobaoOpenmallTraceSearchAPIResponse.go new file mode 100644 index 0000000000..94f3e17694 --- /dev/null +++ b/model/openmall/TaobaoOpenmallTraceSearchAPIResponse.go @@ -0,0 +1,27 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取Openmall订单物流流转信息 API返回值 +taobao.openmall.trace.search + +获取Openmall订单物流流转信息 +*/ +type TaobaoOpenmallTraceSearchAPIResponse struct { + model.CommonResponse + TaobaoOpenmallTraceSearchAPIResponseModel +} + +// 获取Openmall订单物流流转信息 成功返回结果 +type TaobaoOpenmallTraceSearchAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_trace_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TopLogisticsDetailTraceVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallTraceSearchResponse.go b/model/openmall/TaobaoOpenmallTraceSearchResponse.go deleted file mode 100644 index 205daa5511..0000000000 --- a/model/openmall/TaobaoOpenmallTraceSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取Openmall订单物流流转信息 API返回值 -taobao.openmall.trace.search - -获取Openmall订单物流流转信息 -*/ -type TaobaoOpenmallTraceSearchAPIResponse struct { - model.CommonResponse - TaobaoOpenmallTraceSearchResponse -} - -// 获取Openmall订单物流流转信息 成功返回结果 -type TaobaoOpenmallTraceSearchResponse struct { - XMLName xml.Name `xml:"openmall_trace_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TopLogisticsDetailTraceVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallTradeAddressParseAPIRequest.go b/model/openmall/TaobaoOpenmallTradeAddressParseAPIRequest.go new file mode 100644 index 0000000000..6519172ef8 --- /dev/null +++ b/model/openmall/TaobaoOpenmallTradeAddressParseAPIRequest.go @@ -0,0 +1,66 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +openmall服务地址区域码解析 API请求 +taobao.openmall.trade.address.parse + +openmall服务,解析地址区域码,获取创建订单等接口中的区域码信息 +*/ +type TaobaoOpenmallTradeAddressParseAPIRequest struct { + model.Params + // 需解析的地址信息,建议只传地址选择器中的省市区,街道门牌号等用户手动输入数据不传 + _rawAddress string + // 渠道商分销者淘宝账号 + _distributor string +} + +// 初始化TaobaoOpenmallTradeAddressParseAPIRequest对象 +func NewTaobaoOpenmallTradeAddressParseRequest() *TaobaoOpenmallTradeAddressParseAPIRequest{ + return &TaobaoOpenmallTradeAddressParseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallTradeAddressParseAPIRequest) GetApiMethodName() string { + return "taobao.openmall.trade.address.parse" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallTradeAddressParseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RawAddress Setter +// 需解析的地址信息,建议只传地址选择器中的省市区,街道门牌号等用户手动输入数据不传 +func (r *TaobaoOpenmallTradeAddressParseAPIRequest) SetRawAddress(_rawAddress string) error { + r._rawAddress = _rawAddress + r.Set("raw_address", _rawAddress) + return nil +} + +// RawAddress Getter +func (r TaobaoOpenmallTradeAddressParseAPIRequest) GetRawAddress() string { + return r._rawAddress +} +// Distributor Setter +// 渠道商分销者淘宝账号 +func (r *TaobaoOpenmallTradeAddressParseAPIRequest) SetDistributor(_distributor string) error { + r._distributor = _distributor + r.Set("distributor", _distributor) + return nil +} + +// Distributor Getter +func (r TaobaoOpenmallTradeAddressParseAPIRequest) GetDistributor() string { + return r._distributor +} diff --git a/model/openmall/TaobaoOpenmallTradeAddressParseAPIResponse.go b/model/openmall/TaobaoOpenmallTradeAddressParseAPIResponse.go new file mode 100644 index 0000000000..07813f6cf5 --- /dev/null +++ b/model/openmall/TaobaoOpenmallTradeAddressParseAPIResponse.go @@ -0,0 +1,27 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +openmall服务地址区域码解析 API返回值 +taobao.openmall.trade.address.parse + +openmall服务,解析地址区域码,获取创建订单等接口中的区域码信息 +*/ +type TaobaoOpenmallTradeAddressParseAPIResponse struct { + model.CommonResponse + TaobaoOpenmallTradeAddressParseAPIResponseModel +} + +// openmall服务地址区域码解析 成功返回结果 +type TaobaoOpenmallTradeAddressParseAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_trade_address_parse_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 一组地址解析结构,解析正确率与地址完整度相关 + Result *TopParseAddressVO `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallTradeAddressParseResponse.go b/model/openmall/TaobaoOpenmallTradeAddressParseResponse.go deleted file mode 100644 index becad96026..0000000000 --- a/model/openmall/TaobaoOpenmallTradeAddressParseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -openmall服务地址区域码解析 API返回值 -taobao.openmall.trade.address.parse - -openmall服务,解析地址区域码,获取创建订单等接口中的区域码信息 -*/ -type TaobaoOpenmallTradeAddressParseAPIResponse struct { - model.CommonResponse - TaobaoOpenmallTradeAddressParseResponse -} - -// openmall服务地址区域码解析 成功返回结果 -type TaobaoOpenmallTradeAddressParseResponse struct { - XMLName xml.Name `xml:"openmall_trade_address_parse_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 一组地址解析结构,解析正确率与地址完整度相关 - Result *TopParseAddressVO `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallTradeAgreepayAPIRequest.go b/model/openmall/TaobaoOpenmallTradeAgreepayAPIRequest.go new file mode 100644 index 0000000000..4669231d0f --- /dev/null +++ b/model/openmall/TaobaoOpenmallTradeAgreepayAPIRequest.go @@ -0,0 +1,66 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +openmall订单支付 API请求 +taobao.openmall.trade.agreepay + +openmall订单支付 +*/ +type TaobaoOpenmallTradeAgreepayAPIRequest struct { + model.Params + // 媒体渠道,代表分销者的身份,签约支付宝代扣的渠道商淘宝账号nick + _distributor string + // 淘宝交易单号 + _tid int64 +} + +// 初始化TaobaoOpenmallTradeAgreepayAPIRequest对象 +func NewTaobaoOpenmallTradeAgreepayRequest() *TaobaoOpenmallTradeAgreepayAPIRequest{ + return &TaobaoOpenmallTradeAgreepayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallTradeAgreepayAPIRequest) GetApiMethodName() string { + return "taobao.openmall.trade.agreepay" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallTradeAgreepayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Distributor Setter +// 媒体渠道,代表分销者的身份,签约支付宝代扣的渠道商淘宝账号nick +func (r *TaobaoOpenmallTradeAgreepayAPIRequest) SetDistributor(_distributor string) error { + r._distributor = _distributor + r.Set("distributor", _distributor) + return nil +} + +// Distributor Getter +func (r TaobaoOpenmallTradeAgreepayAPIRequest) GetDistributor() string { + return r._distributor +} +// Tid Setter +// 淘宝交易单号 +func (r *TaobaoOpenmallTradeAgreepayAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoOpenmallTradeAgreepayAPIRequest) GetTid() int64 { + return r._tid +} diff --git a/model/openmall/TaobaoOpenmallTradeAgreepayAPIResponse.go b/model/openmall/TaobaoOpenmallTradeAgreepayAPIResponse.go new file mode 100644 index 0000000000..f8f5b4fe31 --- /dev/null +++ b/model/openmall/TaobaoOpenmallTradeAgreepayAPIResponse.go @@ -0,0 +1,27 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +openmall订单支付 API返回值 +taobao.openmall.trade.agreepay + +openmall订单支付 +*/ +type TaobaoOpenmallTradeAgreepayAPIResponse struct { + model.CommonResponse + TaobaoOpenmallTradeAgreepayAPIResponseModel +} + +// openmall订单支付 成功返回结果 +type TaobaoOpenmallTradeAgreepayAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_trade_agreepay_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallTradeAgreepayResponse.go b/model/openmall/TaobaoOpenmallTradeAgreepayResponse.go deleted file mode 100644 index 42fcc6288c..0000000000 --- a/model/openmall/TaobaoOpenmallTradeAgreepayResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -openmall订单支付 API返回值 -taobao.openmall.trade.agreepay - -openmall订单支付 -*/ -type TaobaoOpenmallTradeAgreepayAPIResponse struct { - model.CommonResponse - TaobaoOpenmallTradeAgreepayResponse -} - -// openmall订单支付 成功返回结果 -type TaobaoOpenmallTradeAgreepayResponse struct { - XMLName xml.Name `xml:"openmall_trade_agreepay_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallTradeBatchGetAPIRequest.go b/model/openmall/TaobaoOpenmallTradeBatchGetAPIRequest.go new file mode 100644 index 0000000000..41cf2c84cc --- /dev/null +++ b/model/openmall/TaobaoOpenmallTradeBatchGetAPIRequest.go @@ -0,0 +1,109 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取openmall订单 API请求 +taobao.openmall.trade.batch.get + +批量获取openmall订单 +注意:该接口数据存在延迟,实时数据请通过taobao.openmall.trade.get获取 +*/ +type TaobaoOpenmallTradeBatchGetAPIRequest struct { + model.Params + // 查询范围结束时间,闭区间 + _endCreated string + // 查询页码,从1开始 + _pageIndex int64 + // 页面大小,不超过100 + _pageSize int64 + // 渠道商Nick + _distributor string + // 查询范围开始时间,闭区间 + _startCreated string +} + +// 初始化TaobaoOpenmallTradeBatchGetAPIRequest对象 +func NewTaobaoOpenmallTradeBatchGetRequest() *TaobaoOpenmallTradeBatchGetAPIRequest{ + return &TaobaoOpenmallTradeBatchGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallTradeBatchGetAPIRequest) GetApiMethodName() string { + return "taobao.openmall.trade.batch.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallTradeBatchGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EndCreated Setter +// 查询范围结束时间,闭区间 +func (r *TaobaoOpenmallTradeBatchGetAPIRequest) SetEndCreated(_endCreated string) error { + r._endCreated = _endCreated + r.Set("end_created", _endCreated) + return nil +} + +// EndCreated Getter +func (r TaobaoOpenmallTradeBatchGetAPIRequest) GetEndCreated() string { + return r._endCreated +} +// PageIndex Setter +// 查询页码,从1开始 +func (r *TaobaoOpenmallTradeBatchGetAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TaobaoOpenmallTradeBatchGetAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} +// PageSize Setter +// 页面大小,不超过100 +func (r *TaobaoOpenmallTradeBatchGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoOpenmallTradeBatchGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Distributor Setter +// 渠道商Nick +func (r *TaobaoOpenmallTradeBatchGetAPIRequest) SetDistributor(_distributor string) error { + r._distributor = _distributor + r.Set("distributor", _distributor) + return nil +} + +// Distributor Getter +func (r TaobaoOpenmallTradeBatchGetAPIRequest) GetDistributor() string { + return r._distributor +} +// StartCreated Setter +// 查询范围开始时间,闭区间 +func (r *TaobaoOpenmallTradeBatchGetAPIRequest) SetStartCreated(_startCreated string) error { + r._startCreated = _startCreated + r.Set("start_created", _startCreated) + return nil +} + +// StartCreated Getter +func (r TaobaoOpenmallTradeBatchGetAPIRequest) GetStartCreated() string { + return r._startCreated +} diff --git a/model/openmall/TaobaoOpenmallTradeBatchGetAPIResponse.go b/model/openmall/TaobaoOpenmallTradeBatchGetAPIResponse.go new file mode 100644 index 0000000000..b3d504641a --- /dev/null +++ b/model/openmall/TaobaoOpenmallTradeBatchGetAPIResponse.go @@ -0,0 +1,30 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取openmall订单 API返回值 +taobao.openmall.trade.batch.get + +批量获取openmall订单 +注意:该接口数据存在延迟,实时数据请通过taobao.openmall.trade.get获取 +*/ +type TaobaoOpenmallTradeBatchGetAPIResponse struct { + model.CommonResponse + TaobaoOpenmallTradeBatchGetAPIResponseModel +} + +// 批量获取openmall订单 成功返回结果 +type TaobaoOpenmallTradeBatchGetAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_trade_batch_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单列表 + Entities []TopTradeDetailVo `json:"entities,omitempty" xml:"entities>top_trade_detail_vo,omitempty"` + // 范围内总订单数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallTradeBatchGetResponse.go b/model/openmall/TaobaoOpenmallTradeBatchGetResponse.go deleted file mode 100644 index 10f6235b55..0000000000 --- a/model/openmall/TaobaoOpenmallTradeBatchGetResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量获取openmall订单 API返回值 -taobao.openmall.trade.batch.get - -批量获取openmall订单 -注意:该接口数据存在延迟,实时数据请通过taobao.openmall.trade.get获取 -*/ -type TaobaoOpenmallTradeBatchGetAPIResponse struct { - model.CommonResponse - TaobaoOpenmallTradeBatchGetResponse -} - -// 批量获取openmall订单 成功返回结果 -type TaobaoOpenmallTradeBatchGetResponse struct { - XMLName xml.Name `xml:"openmall_trade_batch_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单列表 - Entities []TopTradeDetailVo `json:"entities,omitempty" xml:"entities>top_trade_detail_vo,omitempty"` - // 范围内总订单数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallTradeCloseAPIRequest.go b/model/openmall/TaobaoOpenmallTradeCloseAPIRequest.go new file mode 100644 index 0000000000..5448f1e250 --- /dev/null +++ b/model/openmall/TaobaoOpenmallTradeCloseAPIRequest.go @@ -0,0 +1,80 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +关闭订单 API请求 +taobao.openmall.trade.close + +关闭订单 +*/ +type TaobaoOpenmallTradeCloseAPIRequest struct { + model.Params + // 分销者信息 + _distributor string + // 关单原因 + _reason string + // 淘宝订单号 + _tid int64 +} + +// 初始化TaobaoOpenmallTradeCloseAPIRequest对象 +func NewTaobaoOpenmallTradeCloseRequest() *TaobaoOpenmallTradeCloseAPIRequest{ + return &TaobaoOpenmallTradeCloseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallTradeCloseAPIRequest) GetApiMethodName() string { + return "taobao.openmall.trade.close" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallTradeCloseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Distributor Setter +// 分销者信息 +func (r *TaobaoOpenmallTradeCloseAPIRequest) SetDistributor(_distributor string) error { + r._distributor = _distributor + r.Set("distributor", _distributor) + return nil +} + +// Distributor Getter +func (r TaobaoOpenmallTradeCloseAPIRequest) GetDistributor() string { + return r._distributor +} +// Reason Setter +// 关单原因 +func (r *TaobaoOpenmallTradeCloseAPIRequest) SetReason(_reason string) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r TaobaoOpenmallTradeCloseAPIRequest) GetReason() string { + return r._reason +} +// Tid Setter +// 淘宝订单号 +func (r *TaobaoOpenmallTradeCloseAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoOpenmallTradeCloseAPIRequest) GetTid() int64 { + return r._tid +} diff --git a/model/openmall/TaobaoOpenmallTradeCloseAPIResponse.go b/model/openmall/TaobaoOpenmallTradeCloseAPIResponse.go new file mode 100644 index 0000000000..c4be523144 --- /dev/null +++ b/model/openmall/TaobaoOpenmallTradeCloseAPIResponse.go @@ -0,0 +1,27 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +关闭订单 API返回值 +taobao.openmall.trade.close + +关闭订单 +*/ +type TaobaoOpenmallTradeCloseAPIResponse struct { + model.CommonResponse + TaobaoOpenmallTradeCloseAPIResponseModel +} + +// 关闭订单 成功返回结果 +type TaobaoOpenmallTradeCloseAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_trade_close_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *TopTradeResultVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallTradeCloseResponse.go b/model/openmall/TaobaoOpenmallTradeCloseResponse.go deleted file mode 100644 index 2917dd6f00..0000000000 --- a/model/openmall/TaobaoOpenmallTradeCloseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -关闭订单 API返回值 -taobao.openmall.trade.close - -关闭订单 -*/ -type TaobaoOpenmallTradeCloseAPIResponse struct { - model.CommonResponse - TaobaoOpenmallTradeCloseResponse -} - -// 关闭订单 成功返回结果 -type TaobaoOpenmallTradeCloseResponse struct { - XMLName xml.Name `xml:"openmall_trade_close_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *TopTradeResultVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallTradeConfirmAPIRequest.go b/model/openmall/TaobaoOpenmallTradeConfirmAPIRequest.go new file mode 100644 index 0000000000..aea4c66e2f --- /dev/null +++ b/model/openmall/TaobaoOpenmallTradeConfirmAPIRequest.go @@ -0,0 +1,66 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +确认收货 API请求 +taobao.openmall.trade.confirm + +确认订单收货 +*/ +type TaobaoOpenmallTradeConfirmAPIRequest struct { + model.Params + // 分销者信息 + _distributor string + // 淘宝订单号 + _tid int64 +} + +// 初始化TaobaoOpenmallTradeConfirmAPIRequest对象 +func NewTaobaoOpenmallTradeConfirmRequest() *TaobaoOpenmallTradeConfirmAPIRequest{ + return &TaobaoOpenmallTradeConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallTradeConfirmAPIRequest) GetApiMethodName() string { + return "taobao.openmall.trade.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallTradeConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Distributor Setter +// 分销者信息 +func (r *TaobaoOpenmallTradeConfirmAPIRequest) SetDistributor(_distributor string) error { + r._distributor = _distributor + r.Set("distributor", _distributor) + return nil +} + +// Distributor Getter +func (r TaobaoOpenmallTradeConfirmAPIRequest) GetDistributor() string { + return r._distributor +} +// Tid Setter +// 淘宝订单号 +func (r *TaobaoOpenmallTradeConfirmAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoOpenmallTradeConfirmAPIRequest) GetTid() int64 { + return r._tid +} diff --git a/model/openmall/TaobaoOpenmallTradeConfirmAPIResponse.go b/model/openmall/TaobaoOpenmallTradeConfirmAPIResponse.go new file mode 100644 index 0000000000..54997a29f9 --- /dev/null +++ b/model/openmall/TaobaoOpenmallTradeConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +确认收货 API返回值 +taobao.openmall.trade.confirm + +确认订单收货 +*/ +type TaobaoOpenmallTradeConfirmAPIResponse struct { + model.CommonResponse + TaobaoOpenmallTradeConfirmAPIResponseModel +} + +// 确认收货 成功返回结果 +type TaobaoOpenmallTradeConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_trade_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TopTradeResultVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallTradeConfirmResponse.go b/model/openmall/TaobaoOpenmallTradeConfirmResponse.go deleted file mode 100644 index e024e74b71..0000000000 --- a/model/openmall/TaobaoOpenmallTradeConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -确认收货 API返回值 -taobao.openmall.trade.confirm - -确认订单收货 -*/ -type TaobaoOpenmallTradeConfirmAPIResponse struct { - model.CommonResponse - TaobaoOpenmallTradeConfirmResponse -} - -// 确认收货 成功返回结果 -type TaobaoOpenmallTradeConfirmResponse struct { - XMLName xml.Name `xml:"openmall_trade_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TopTradeResultVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallTradeCreateAPIRequest.go b/model/openmall/TaobaoOpenmallTradeCreateAPIRequest.go new file mode 100644 index 0000000000..1538b70da1 --- /dev/null +++ b/model/openmall/TaobaoOpenmallTradeCreateAPIRequest.go @@ -0,0 +1,52 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建订单 API请求 +taobao.openmall.trade.create + +创建Openmall订单 +*/ +type TaobaoOpenmallTradeCreateAPIRequest struct { + model.Params + // 请求入参 + _paramTopTradeCreateDO *TopTradeCreateDo +} + +// 初始化TaobaoOpenmallTradeCreateAPIRequest对象 +func NewTaobaoOpenmallTradeCreateRequest() *TaobaoOpenmallTradeCreateAPIRequest{ + return &TaobaoOpenmallTradeCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallTradeCreateAPIRequest) GetApiMethodName() string { + return "taobao.openmall.trade.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallTradeCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamTopTradeCreateDO Setter +// 请求入参 +func (r *TaobaoOpenmallTradeCreateAPIRequest) SetParamTopTradeCreateDO(_paramTopTradeCreateDO *TopTradeCreateDo) error { + r._paramTopTradeCreateDO = _paramTopTradeCreateDO + r.Set("param_top_trade_create_d_o", _paramTopTradeCreateDO) + return nil +} + +// ParamTopTradeCreateDO Getter +func (r TaobaoOpenmallTradeCreateAPIRequest) GetParamTopTradeCreateDO() *TopTradeCreateDo { + return r._paramTopTradeCreateDO +} diff --git a/model/openmall/TaobaoOpenmallTradeCreateAPIResponse.go b/model/openmall/TaobaoOpenmallTradeCreateAPIResponse.go new file mode 100644 index 0000000000..c5bf204dcb --- /dev/null +++ b/model/openmall/TaobaoOpenmallTradeCreateAPIResponse.go @@ -0,0 +1,27 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建订单 API返回值 +taobao.openmall.trade.create + +创建Openmall订单 +*/ +type TaobaoOpenmallTradeCreateAPIResponse struct { + model.CommonResponse + TaobaoOpenmallTradeCreateAPIResponseModel +} + +// 创建订单 成功返回结果 +type TaobaoOpenmallTradeCreateAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_trade_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TopTradeResultVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallTradeCreateResponse.go b/model/openmall/TaobaoOpenmallTradeCreateResponse.go deleted file mode 100644 index 349f6dbab1..0000000000 --- a/model/openmall/TaobaoOpenmallTradeCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建订单 API返回值 -taobao.openmall.trade.create - -创建Openmall订单 -*/ -type TaobaoOpenmallTradeCreateAPIResponse struct { - model.CommonResponse - TaobaoOpenmallTradeCreateResponse -} - -// 创建订单 成功返回结果 -type TaobaoOpenmallTradeCreateResponse struct { - XMLName xml.Name `xml:"openmall_trade_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TopTradeResultVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallTradeGetAPIRequest.go b/model/openmall/TaobaoOpenmallTradeGetAPIRequest.go new file mode 100644 index 0000000000..1aaf8f13a5 --- /dev/null +++ b/model/openmall/TaobaoOpenmallTradeGetAPIRequest.go @@ -0,0 +1,66 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询订单详情 API请求 +taobao.openmall.trade.get + +查询订单详情 +*/ +type TaobaoOpenmallTradeGetAPIRequest struct { + model.Params + // 分销者信息 + _distributor string + // 淘宝订单号 + _tid int64 +} + +// 初始化TaobaoOpenmallTradeGetAPIRequest对象 +func NewTaobaoOpenmallTradeGetRequest() *TaobaoOpenmallTradeGetAPIRequest{ + return &TaobaoOpenmallTradeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallTradeGetAPIRequest) GetApiMethodName() string { + return "taobao.openmall.trade.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallTradeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Distributor Setter +// 分销者信息 +func (r *TaobaoOpenmallTradeGetAPIRequest) SetDistributor(_distributor string) error { + r._distributor = _distributor + r.Set("distributor", _distributor) + return nil +} + +// Distributor Getter +func (r TaobaoOpenmallTradeGetAPIRequest) GetDistributor() string { + return r._distributor +} +// Tid Setter +// 淘宝订单号 +func (r *TaobaoOpenmallTradeGetAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoOpenmallTradeGetAPIRequest) GetTid() int64 { + return r._tid +} diff --git a/model/openmall/TaobaoOpenmallTradeGetAPIResponse.go b/model/openmall/TaobaoOpenmallTradeGetAPIResponse.go new file mode 100644 index 0000000000..d702f06ced --- /dev/null +++ b/model/openmall/TaobaoOpenmallTradeGetAPIResponse.go @@ -0,0 +1,27 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询订单详情 API返回值 +taobao.openmall.trade.get + +查询订单详情 +*/ +type TaobaoOpenmallTradeGetAPIResponse struct { + model.CommonResponse + TaobaoOpenmallTradeGetAPIResponseModel +} + +// 查询订单详情 成功返回结果 +type TaobaoOpenmallTradeGetAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_trade_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TopTradeDetailVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallTradeGetResponse.go b/model/openmall/TaobaoOpenmallTradeGetResponse.go deleted file mode 100644 index 760caf8f8f..0000000000 --- a/model/openmall/TaobaoOpenmallTradeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询订单详情 API返回值 -taobao.openmall.trade.get - -查询订单详情 -*/ -type TaobaoOpenmallTradeGetAPIResponse struct { - model.CommonResponse - TaobaoOpenmallTradeGetResponse -} - -// 查询订单详情 成功返回结果 -type TaobaoOpenmallTradeGetResponse struct { - XMLName xml.Name `xml:"openmall_trade_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TopTradeDetailVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallTradeRenderAPIRequest.go b/model/openmall/TaobaoOpenmallTradeRenderAPIRequest.go new file mode 100644 index 0000000000..9d74eaf3cf --- /dev/null +++ b/model/openmall/TaobaoOpenmallTradeRenderAPIRequest.go @@ -0,0 +1,52 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +渲染订单价格 API请求 +taobao.openmall.trade.render + +请求渲染订单价格 +*/ +type TaobaoOpenmallTradeRenderAPIRequest struct { + model.Params + // 请求入参 + _paramTopTradeCreateDO *TopTradeCreateDo +} + +// 初始化TaobaoOpenmallTradeRenderAPIRequest对象 +func NewTaobaoOpenmallTradeRenderRequest() *TaobaoOpenmallTradeRenderAPIRequest{ + return &TaobaoOpenmallTradeRenderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallTradeRenderAPIRequest) GetApiMethodName() string { + return "taobao.openmall.trade.render" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallTradeRenderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamTopTradeCreateDO Setter +// 请求入参 +func (r *TaobaoOpenmallTradeRenderAPIRequest) SetParamTopTradeCreateDO(_paramTopTradeCreateDO *TopTradeCreateDo) error { + r._paramTopTradeCreateDO = _paramTopTradeCreateDO + r.Set("param_top_trade_create_d_o", _paramTopTradeCreateDO) + return nil +} + +// ParamTopTradeCreateDO Getter +func (r TaobaoOpenmallTradeRenderAPIRequest) GetParamTopTradeCreateDO() *TopTradeCreateDo { + return r._paramTopTradeCreateDO +} diff --git a/model/openmall/TaobaoOpenmallTradeRenderAPIResponse.go b/model/openmall/TaobaoOpenmallTradeRenderAPIResponse.go new file mode 100644 index 0000000000..77591bfe20 --- /dev/null +++ b/model/openmall/TaobaoOpenmallTradeRenderAPIResponse.go @@ -0,0 +1,27 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +渲染订单价格 API返回值 +taobao.openmall.trade.render + +请求渲染订单价格 +*/ +type TaobaoOpenmallTradeRenderAPIResponse struct { + model.CommonResponse + TaobaoOpenmallTradeRenderAPIResponseModel +} + +// 渲染订单价格 成功返回结果 +type TaobaoOpenmallTradeRenderAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_trade_render_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TopTradeResultVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallTradeRenderResponse.go b/model/openmall/TaobaoOpenmallTradeRenderResponse.go deleted file mode 100644 index fc70491e25..0000000000 --- a/model/openmall/TaobaoOpenmallTradeRenderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -渲染订单价格 API返回值 -taobao.openmall.trade.render - -请求渲染订单价格 -*/ -type TaobaoOpenmallTradeRenderAPIResponse struct { - model.CommonResponse - TaobaoOpenmallTradeRenderResponse -} - -// 渲染订单价格 成功返回结果 -type TaobaoOpenmallTradeRenderResponse struct { - XMLName xml.Name `xml:"openmall_trade_render_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TopTradeResultVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/openmall/TaobaoOpenmallTradeShipaddressUpdateAPIRequest.go b/model/openmall/TaobaoOpenmallTradeShipaddressUpdateAPIRequest.go new file mode 100644 index 0000000000..31363ea17b --- /dev/null +++ b/model/openmall/TaobaoOpenmallTradeShipaddressUpdateAPIRequest.go @@ -0,0 +1,178 @@ +package openmall + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Openmall订单收货地址修改 API请求 +taobao.openmall.trade.shipaddress.update + +Openmall订单收货地址修改 +*/ +type TaobaoOpenmallTradeShipaddressUpdateAPIRequest struct { + model.Params + // 媒体渠道,代表分销者的身份,签约支付宝代扣的渠道商淘宝账号nick + _distributor string + // 收货地址。最大长度为228个字节。 + _receiverAddress string + // 城市。最大长度为32个字节。如:杭州 + _receiverCity string + // 区/县。最大长度为32个字节。如:西湖区 + _receiverDistrict string + // 移动电话。最大长度为11个字节。 + _receiverMobile string + // 收货人全名。最大长度为50个字节。 + _receiverName string + // 固定电话。最大长度为30个字节。 + _receiverPhone string + // 省份。最大长度为32个字节。如:浙江 + _receiverState string + // 6位数字的邮编 + _receiverZip string + // 淘宝订单号 + _tid int64 +} + +// 初始化TaobaoOpenmallTradeShipaddressUpdateAPIRequest对象 +func NewTaobaoOpenmallTradeShipaddressUpdateRequest() *TaobaoOpenmallTradeShipaddressUpdateAPIRequest{ + return &TaobaoOpenmallTradeShipaddressUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenmallTradeShipaddressUpdateAPIRequest) GetApiMethodName() string { + return "taobao.openmall.trade.shipaddress.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenmallTradeShipaddressUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Distributor Setter +// 媒体渠道,代表分销者的身份,签约支付宝代扣的渠道商淘宝账号nick +func (r *TaobaoOpenmallTradeShipaddressUpdateAPIRequest) SetDistributor(_distributor string) error { + r._distributor = _distributor + r.Set("distributor", _distributor) + return nil +} + +// Distributor Getter +func (r TaobaoOpenmallTradeShipaddressUpdateAPIRequest) GetDistributor() string { + return r._distributor +} +// ReceiverAddress Setter +// 收货地址。最大长度为228个字节。 +func (r *TaobaoOpenmallTradeShipaddressUpdateAPIRequest) SetReceiverAddress(_receiverAddress string) error { + r._receiverAddress = _receiverAddress + r.Set("receiver_address", _receiverAddress) + return nil +} + +// ReceiverAddress Getter +func (r TaobaoOpenmallTradeShipaddressUpdateAPIRequest) GetReceiverAddress() string { + return r._receiverAddress +} +// ReceiverCity Setter +// 城市。最大长度为32个字节。如:杭州 +func (r *TaobaoOpenmallTradeShipaddressUpdateAPIRequest) SetReceiverCity(_receiverCity string) error { + r._receiverCity = _receiverCity + r.Set("receiver_city", _receiverCity) + return nil +} + +// ReceiverCity Getter +func (r TaobaoOpenmallTradeShipaddressUpdateAPIRequest) GetReceiverCity() string { + return r._receiverCity +} +// ReceiverDistrict Setter +// 区/县。最大长度为32个字节。如:西湖区 +func (r *TaobaoOpenmallTradeShipaddressUpdateAPIRequest) SetReceiverDistrict(_receiverDistrict string) error { + r._receiverDistrict = _receiverDistrict + r.Set("receiver_district", _receiverDistrict) + return nil +} + +// ReceiverDistrict Getter +func (r TaobaoOpenmallTradeShipaddressUpdateAPIRequest) GetReceiverDistrict() string { + return r._receiverDistrict +} +// ReceiverMobile Setter +// 移动电话。最大长度为11个字节。 +func (r *TaobaoOpenmallTradeShipaddressUpdateAPIRequest) SetReceiverMobile(_receiverMobile string) error { + r._receiverMobile = _receiverMobile + r.Set("receiver_mobile", _receiverMobile) + return nil +} + +// ReceiverMobile Getter +func (r TaobaoOpenmallTradeShipaddressUpdateAPIRequest) GetReceiverMobile() string { + return r._receiverMobile +} +// ReceiverName Setter +// 收货人全名。最大长度为50个字节。 +func (r *TaobaoOpenmallTradeShipaddressUpdateAPIRequest) SetReceiverName(_receiverName string) error { + r._receiverName = _receiverName + r.Set("receiver_name", _receiverName) + return nil +} + +// ReceiverName Getter +func (r TaobaoOpenmallTradeShipaddressUpdateAPIRequest) GetReceiverName() string { + return r._receiverName +} +// ReceiverPhone Setter +// 固定电话。最大长度为30个字节。 +func (r *TaobaoOpenmallTradeShipaddressUpdateAPIRequest) SetReceiverPhone(_receiverPhone string) error { + r._receiverPhone = _receiverPhone + r.Set("receiver_phone", _receiverPhone) + return nil +} + +// ReceiverPhone Getter +func (r TaobaoOpenmallTradeShipaddressUpdateAPIRequest) GetReceiverPhone() string { + return r._receiverPhone +} +// ReceiverState Setter +// 省份。最大长度为32个字节。如:浙江 +func (r *TaobaoOpenmallTradeShipaddressUpdateAPIRequest) SetReceiverState(_receiverState string) error { + r._receiverState = _receiverState + r.Set("receiver_state", _receiverState) + return nil +} + +// ReceiverState Getter +func (r TaobaoOpenmallTradeShipaddressUpdateAPIRequest) GetReceiverState() string { + return r._receiverState +} +// ReceiverZip Setter +// 6位数字的邮编 +func (r *TaobaoOpenmallTradeShipaddressUpdateAPIRequest) SetReceiverZip(_receiverZip string) error { + r._receiverZip = _receiverZip + r.Set("receiver_zip", _receiverZip) + return nil +} + +// ReceiverZip Getter +func (r TaobaoOpenmallTradeShipaddressUpdateAPIRequest) GetReceiverZip() string { + return r._receiverZip +} +// Tid Setter +// 淘宝订单号 +func (r *TaobaoOpenmallTradeShipaddressUpdateAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoOpenmallTradeShipaddressUpdateAPIRequest) GetTid() int64 { + return r._tid +} diff --git a/model/openmall/TaobaoOpenmallTradeShipaddressUpdateAPIResponse.go b/model/openmall/TaobaoOpenmallTradeShipaddressUpdateAPIResponse.go new file mode 100644 index 0000000000..1cc9f3c0a5 --- /dev/null +++ b/model/openmall/TaobaoOpenmallTradeShipaddressUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package openmall + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Openmall订单收货地址修改 API返回值 +taobao.openmall.trade.shipaddress.update + +Openmall订单收货地址修改 +*/ +type TaobaoOpenmallTradeShipaddressUpdateAPIResponse struct { + model.CommonResponse + TaobaoOpenmallTradeShipaddressUpdateAPIResponseModel +} + +// Openmall订单收货地址修改 成功返回结果 +type TaobaoOpenmallTradeShipaddressUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"openmall_trade_shipaddress_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单号 + Tid string `json:"tid,omitempty" xml:"tid,omitempty"` +} diff --git a/model/openmall/TaobaoOpenmallTradeShipaddressUpdateResponse.go b/model/openmall/TaobaoOpenmallTradeShipaddressUpdateResponse.go deleted file mode 100644 index f9cf086601..0000000000 --- a/model/openmall/TaobaoOpenmallTradeShipaddressUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package openmall - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Openmall订单收货地址修改 API返回值 -taobao.openmall.trade.shipaddress.update - -Openmall订单收货地址修改 -*/ -type TaobaoOpenmallTradeShipaddressUpdateAPIResponse struct { - model.CommonResponse - TaobaoOpenmallTradeShipaddressUpdateResponse -} - -// Openmall订单收货地址修改 成功返回结果 -type TaobaoOpenmallTradeShipaddressUpdateResponse struct { - XMLName xml.Name `xml:"openmall_trade_shipaddress_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单号 - Tid string `json:"tid,omitempty" xml:"tid,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeActivityQueryAPIRequest.go b/model/opentrade/TaobaoOpentradeActivityQueryAPIRequest.go new file mode 100644 index 0000000000..620817113c --- /dev/null +++ b/model/opentrade/TaobaoOpentradeActivityQueryAPIRequest.go @@ -0,0 +1,94 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询尖货活动信息 API请求 +taobao.opentrade.activity.query + +尖货交易活动信息配置,查询尖货活动信息 +*/ +type TaobaoOpentradeActivityQueryAPIRequest struct { + model.Params + // 活动结束时间 + _endTime string + // 活动名称 + _activityName string + // 分页大小 + _pageSize int64 + // 分页序号 + _pageIndex int64 +} + +// 初始化TaobaoOpentradeActivityQueryAPIRequest对象 +func NewTaobaoOpentradeActivityQueryRequest() *TaobaoOpentradeActivityQueryAPIRequest{ + return &TaobaoOpentradeActivityQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeActivityQueryAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.activity.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeActivityQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EndTime Setter +// 活动结束时间 +func (r *TaobaoOpentradeActivityQueryAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoOpentradeActivityQueryAPIRequest) GetEndTime() string { + return r._endTime +} +// ActivityName Setter +// 活动名称 +func (r *TaobaoOpentradeActivityQueryAPIRequest) SetActivityName(_activityName string) error { + r._activityName = _activityName + r.Set("activity_name", _activityName) + return nil +} + +// ActivityName Getter +func (r TaobaoOpentradeActivityQueryAPIRequest) GetActivityName() string { + return r._activityName +} +// PageSize Setter +// 分页大小 +func (r *TaobaoOpentradeActivityQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoOpentradeActivityQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageIndex Setter +// 分页序号 +func (r *TaobaoOpentradeActivityQueryAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TaobaoOpentradeActivityQueryAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} diff --git a/model/opentrade/TaobaoOpentradeActivityQueryAPIResponse.go b/model/opentrade/TaobaoOpentradeActivityQueryAPIResponse.go new file mode 100644 index 0000000000..3bf85dc773 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeActivityQueryAPIResponse.go @@ -0,0 +1,29 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询尖货活动信息 API返回值 +taobao.opentrade.activity.query + +尖货交易活动信息配置,查询尖货活动信息 +*/ +type TaobaoOpentradeActivityQueryAPIResponse struct { + model.CommonResponse + TaobaoOpentradeActivityQueryAPIResponseModel +} + +// 查询尖货活动信息 成功返回结果 +type TaobaoOpentradeActivityQueryAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_activity_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 总条数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 活动信息记录 + Results []McSceneActivityDto `json:"results,omitempty" xml:"results>mc_scene_activity_dto,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeActivityQueryResponse.go b/model/opentrade/TaobaoOpentradeActivityQueryResponse.go deleted file mode 100644 index 038e85a91c..0000000000 --- a/model/opentrade/TaobaoOpentradeActivityQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询尖货活动信息 API返回值 -taobao.opentrade.activity.query - -尖货交易活动信息配置,查询尖货活动信息 -*/ -type TaobaoOpentradeActivityQueryAPIResponse struct { - model.CommonResponse - TaobaoOpentradeActivityQueryResponse -} - -// 查询尖货活动信息 成功返回结果 -type TaobaoOpentradeActivityQueryResponse struct { - XMLName xml.Name `xml:"opentrade_activity_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 总条数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 活动信息记录 - Results []McSceneActivityDto `json:"results,omitempty" xml:"results>mc_scene_activity_dto,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeActivitySyncAPIRequest.go b/model/opentrade/TaobaoOpentradeActivitySyncAPIRequest.go new file mode 100644 index 0000000000..aa8df5ece3 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeActivitySyncAPIRequest.go @@ -0,0 +1,111 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +尖货交易活动信息同步 API请求 +taobao.opentrade.activity.sync + +尖货交易活动信息配置,创建或更新活动信息 +在活动时间开始前,所有用户(包括标记可购买的用户),无法购买商品; +在活动时间内,标记可购买的用户可在小程序中跳转下单页,完成购买; +在活动结束后,对限购不再限制,平台开放购买,用户可在小程序内、商品详情、购物车下单购买; +*/ +type TaobaoOpentradeActivitySyncAPIRequest struct { + model.Params + // 排队活动ID,排队时如传入,这里需要填写;若未传,这里也可以不传 + _activityId string + // 活动开始时间 + _startTime string + // 活动结束时间(全流程结束时间,非排队结束时间) + _endTime string + // 活动名称 + _activityName string + // 活动关联的商品列表,使用逗号(,)分割 + _itemIdList []int64 +} + +// 初始化TaobaoOpentradeActivitySyncAPIRequest对象 +func NewTaobaoOpentradeActivitySyncRequest() *TaobaoOpentradeActivitySyncAPIRequest{ + return &TaobaoOpentradeActivitySyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeActivitySyncAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.activity.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeActivitySyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 排队活动ID,排队时如传入,这里需要填写;若未传,这里也可以不传 +func (r *TaobaoOpentradeActivitySyncAPIRequest) SetActivityId(_activityId string) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoOpentradeActivitySyncAPIRequest) GetActivityId() string { + return r._activityId +} +// StartTime Setter +// 活动开始时间 +func (r *TaobaoOpentradeActivitySyncAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoOpentradeActivitySyncAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 活动结束时间(全流程结束时间,非排队结束时间) +func (r *TaobaoOpentradeActivitySyncAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoOpentradeActivitySyncAPIRequest) GetEndTime() string { + return r._endTime +} +// ActivityName Setter +// 活动名称 +func (r *TaobaoOpentradeActivitySyncAPIRequest) SetActivityName(_activityName string) error { + r._activityName = _activityName + r.Set("activity_name", _activityName) + return nil +} + +// ActivityName Getter +func (r TaobaoOpentradeActivitySyncAPIRequest) GetActivityName() string { + return r._activityName +} +// ItemIdList Setter +// 活动关联的商品列表,使用逗号(,)分割 +func (r *TaobaoOpentradeActivitySyncAPIRequest) SetItemIdList(_itemIdList []int64) error { + r._itemIdList = _itemIdList + r.Set("item_id_list", _itemIdList) + return nil +} + +// ItemIdList Getter +func (r TaobaoOpentradeActivitySyncAPIRequest) GetItemIdList() []int64 { + return r._itemIdList +} diff --git a/model/opentrade/TaobaoOpentradeActivitySyncAPIResponse.go b/model/opentrade/TaobaoOpentradeActivitySyncAPIResponse.go new file mode 100644 index 0000000000..6d9b8b5cb4 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeActivitySyncAPIResponse.go @@ -0,0 +1,42 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +尖货交易活动信息同步 API返回值 +taobao.opentrade.activity.sync + +尖货交易活动信息配置,创建或更新活动信息 +在活动时间开始前,所有用户(包括标记可购买的用户),无法购买商品; +在活动时间内,标记可购买的用户可在小程序中跳转下单页,完成购买; +在活动结束后,对限购不再限制,平台开放购买,用户可在小程序内、商品详情、购物车下单购买; +*/ +type TaobaoOpentradeActivitySyncAPIResponse struct { + model.CommonResponse + TaobaoOpentradeActivitySyncAPIResponseModel +} + +// 尖货交易活动信息同步 成功返回结果 +type TaobaoOpentradeActivitySyncAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_activity_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 活动开始时间 + StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"` + // 活动关联的商品列表,使用逗号(,)分割 + ItemIds string `json:"item_ids,omitempty" xml:"item_ids,omitempty"` + // 活动名称 + ActivityName string `json:"activity_name,omitempty" xml:"activity_name,omitempty"` + // 创建活动的appkey + Appkey string `json:"appkey,omitempty" xml:"appkey,omitempty"` + // 排队活动ID + ActivityId string `json:"activity_id,omitempty" xml:"activity_id,omitempty"` + // 最近修改时间 + GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` + // 活动结束时间 + EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeActivitySyncResponse.go b/model/opentrade/TaobaoOpentradeActivitySyncResponse.go deleted file mode 100644 index 3749a43eaf..0000000000 --- a/model/opentrade/TaobaoOpentradeActivitySyncResponse.go +++ /dev/null @@ -1,42 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -尖货交易活动信息同步 API返回值 -taobao.opentrade.activity.sync - -尖货交易活动信息配置,创建或更新活动信息 -在活动时间开始前,所有用户(包括标记可购买的用户),无法购买商品; -在活动时间内,标记可购买的用户可在小程序中跳转下单页,完成购买; -在活动结束后,对限购不再限制,平台开放购买,用户可在小程序内、商品详情、购物车下单购买; -*/ -type TaobaoOpentradeActivitySyncAPIResponse struct { - model.CommonResponse - TaobaoOpentradeActivitySyncResponse -} - -// 尖货交易活动信息同步 成功返回结果 -type TaobaoOpentradeActivitySyncResponse struct { - XMLName xml.Name `xml:"opentrade_activity_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 活动开始时间 - StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"` - // 活动关联的商品列表,使用逗号(,)分割 - ItemIds string `json:"item_ids,omitempty" xml:"item_ids,omitempty"` - // 活动名称 - ActivityName string `json:"activity_name,omitempty" xml:"activity_name,omitempty"` - // 创建活动的appkey - Appkey string `json:"appkey,omitempty" xml:"appkey,omitempty"` - // 排队活动ID - ActivityId string `json:"activity_id,omitempty" xml:"activity_id,omitempty"` - // 最近修改时间 - GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` - // 活动结束时间 - EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeCreateOrderAPIRequest.go b/model/opentrade/TaobaoOpentradeCreateOrderAPIRequest.go new file mode 100644 index 0000000000..6c6c093194 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeCreateOrderAPIRequest.go @@ -0,0 +1,150 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单创建 API请求 +taobao.opentrade.create.order + +交易开放创建订单 +*/ +type TaobaoOpentradeCreateOrderAPIRequest struct { + model.Params + // 外部订单ID + _outId string + // 买家openID + _openUserId string + // 收货地址的收件人姓名 + _fullName string + // 收货地址的手机号码 + _mobile string + // 收货地址 + _address string + // 卖家备忘 + _sellerMemo string + // 卖家备忘 + _buyerMemo string + // 商品信息,一次不能超过10个 + _itemInfos []ItemInfo +} + +// 初始化TaobaoOpentradeCreateOrderAPIRequest对象 +func NewTaobaoOpentradeCreateOrderRequest() *TaobaoOpentradeCreateOrderAPIRequest{ + return &TaobaoOpentradeCreateOrderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeCreateOrderAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.create.order" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeCreateOrderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutId Setter +// 外部订单ID +func (r *TaobaoOpentradeCreateOrderAPIRequest) SetOutId(_outId string) error { + r._outId = _outId + r.Set("out_id", _outId) + return nil +} + +// OutId Getter +func (r TaobaoOpentradeCreateOrderAPIRequest) GetOutId() string { + return r._outId +} +// OpenUserId Setter +// 买家openID +func (r *TaobaoOpentradeCreateOrderAPIRequest) SetOpenUserId(_openUserId string) error { + r._openUserId = _openUserId + r.Set("open_user_id", _openUserId) + return nil +} + +// OpenUserId Getter +func (r TaobaoOpentradeCreateOrderAPIRequest) GetOpenUserId() string { + return r._openUserId +} +// FullName Setter +// 收货地址的收件人姓名 +func (r *TaobaoOpentradeCreateOrderAPIRequest) SetFullName(_fullName string) error { + r._fullName = _fullName + r.Set("full_name", _fullName) + return nil +} + +// FullName Getter +func (r TaobaoOpentradeCreateOrderAPIRequest) GetFullName() string { + return r._fullName +} +// Mobile Setter +// 收货地址的手机号码 +func (r *TaobaoOpentradeCreateOrderAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r TaobaoOpentradeCreateOrderAPIRequest) GetMobile() string { + return r._mobile +} +// Address Setter +// 收货地址 +func (r *TaobaoOpentradeCreateOrderAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r TaobaoOpentradeCreateOrderAPIRequest) GetAddress() string { + return r._address +} +// SellerMemo Setter +// 卖家备忘 +func (r *TaobaoOpentradeCreateOrderAPIRequest) SetSellerMemo(_sellerMemo string) error { + r._sellerMemo = _sellerMemo + r.Set("seller_memo", _sellerMemo) + return nil +} + +// SellerMemo Getter +func (r TaobaoOpentradeCreateOrderAPIRequest) GetSellerMemo() string { + return r._sellerMemo +} +// BuyerMemo Setter +// 卖家备忘 +func (r *TaobaoOpentradeCreateOrderAPIRequest) SetBuyerMemo(_buyerMemo string) error { + r._buyerMemo = _buyerMemo + r.Set("buyer_memo", _buyerMemo) + return nil +} + +// BuyerMemo Getter +func (r TaobaoOpentradeCreateOrderAPIRequest) GetBuyerMemo() string { + return r._buyerMemo +} +// ItemInfos Setter +// 商品信息,一次不能超过10个 +func (r *TaobaoOpentradeCreateOrderAPIRequest) SetItemInfos(_itemInfos []ItemInfo) error { + r._itemInfos = _itemInfos + r.Set("item_infos", _itemInfos) + return nil +} + +// ItemInfos Getter +func (r TaobaoOpentradeCreateOrderAPIRequest) GetItemInfos() []ItemInfo { + return r._itemInfos +} diff --git a/model/opentrade/TaobaoOpentradeCreateOrderAPIResponse.go b/model/opentrade/TaobaoOpentradeCreateOrderAPIResponse.go new file mode 100644 index 0000000000..29430e8aaf --- /dev/null +++ b/model/opentrade/TaobaoOpentradeCreateOrderAPIResponse.go @@ -0,0 +1,27 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单创建 API返回值 +taobao.opentrade.create.order + +交易开放创建订单 +*/ +type TaobaoOpentradeCreateOrderAPIResponse struct { + model.CommonResponse + TaobaoOpentradeCreateOrderAPIResponseModel +} + +// 订单创建 成功返回结果 +type TaobaoOpentradeCreateOrderAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_create_order_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单ID + OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeCreateOrderResponse.go b/model/opentrade/TaobaoOpentradeCreateOrderResponse.go deleted file mode 100644 index f7879f2ba5..0000000000 --- a/model/opentrade/TaobaoOpentradeCreateOrderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单创建 API返回值 -taobao.opentrade.create.order - -交易开放创建订单 -*/ -type TaobaoOpentradeCreateOrderAPIResponse struct { - model.CommonResponse - TaobaoOpentradeCreateOrderResponse -} - -// 订单创建 成功返回结果 -type TaobaoOpentradeCreateOrderResponse struct { - XMLName xml.Name `xml:"opentrade_create_order_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单ID - OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeGroupActivtiyQueryAPIRequest.go b/model/opentrade/TaobaoOpentradeGroupActivtiyQueryAPIRequest.go new file mode 100644 index 0000000000..0c93418eeb --- /dev/null +++ b/model/opentrade/TaobaoOpentradeGroupActivtiyQueryAPIRequest.go @@ -0,0 +1,94 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +组团活动信息查询 API请求 +taobao.opentrade.group.activtiy.query + +组团购场景下,团购活动信息查询 +*/ +type TaobaoOpentradeGroupActivtiyQueryAPIRequest struct { + model.Params + // 分页参数,每页大小 + _pageSize int64 + // 商品ID + _itemId int64 + // 分页参数,当前页,以0开始 + _pageIndex int64 + // 组团活动id + _groupActivityId int64 +} + +// 初始化TaobaoOpentradeGroupActivtiyQueryAPIRequest对象 +func NewTaobaoOpentradeGroupActivtiyQueryRequest() *TaobaoOpentradeGroupActivtiyQueryAPIRequest{ + return &TaobaoOpentradeGroupActivtiyQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeGroupActivtiyQueryAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.group.activtiy.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeGroupActivtiyQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageSize Setter +// 分页参数,每页大小 +func (r *TaobaoOpentradeGroupActivtiyQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoOpentradeGroupActivtiyQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// ItemId Setter +// 商品ID +func (r *TaobaoOpentradeGroupActivtiyQueryAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoOpentradeGroupActivtiyQueryAPIRequest) GetItemId() int64 { + return r._itemId +} +// PageIndex Setter +// 分页参数,当前页,以0开始 +func (r *TaobaoOpentradeGroupActivtiyQueryAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TaobaoOpentradeGroupActivtiyQueryAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} +// GroupActivityId Setter +// 组团活动id +func (r *TaobaoOpentradeGroupActivtiyQueryAPIRequest) SetGroupActivityId(_groupActivityId int64) error { + r._groupActivityId = _groupActivityId + r.Set("group_activity_id", _groupActivityId) + return nil +} + +// GroupActivityId Getter +func (r TaobaoOpentradeGroupActivtiyQueryAPIRequest) GetGroupActivityId() int64 { + return r._groupActivityId +} diff --git a/model/opentrade/TaobaoOpentradeGroupActivtiyQueryAPIResponse.go b/model/opentrade/TaobaoOpentradeGroupActivtiyQueryAPIResponse.go new file mode 100644 index 0000000000..6fd9e3ff41 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeGroupActivtiyQueryAPIResponse.go @@ -0,0 +1,29 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +组团活动信息查询 API返回值 +taobao.opentrade.group.activtiy.query + +组团购场景下,团购活动信息查询 +*/ +type TaobaoOpentradeGroupActivtiyQueryAPIResponse struct { + model.CommonResponse + TaobaoOpentradeGroupActivtiyQueryAPIResponseModel +} + +// 组团活动信息查询 成功返回结果 +type TaobaoOpentradeGroupActivtiyQueryAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_group_activtiy_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 总记录数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 组团活动信息 + Results []GroupActivityResponse `json:"results,omitempty" xml:"results>group_activity_response,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeGroupActivtiyQueryResponse.go b/model/opentrade/TaobaoOpentradeGroupActivtiyQueryResponse.go deleted file mode 100644 index a91bdcb0fa..0000000000 --- a/model/opentrade/TaobaoOpentradeGroupActivtiyQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -组团活动信息查询 API返回值 -taobao.opentrade.group.activtiy.query - -组团购场景下,团购活动信息查询 -*/ -type TaobaoOpentradeGroupActivtiyQueryAPIResponse struct { - model.CommonResponse - TaobaoOpentradeGroupActivtiyQueryResponse -} - -// 组团活动信息查询 成功返回结果 -type TaobaoOpentradeGroupActivtiyQueryResponse struct { - XMLName xml.Name `xml:"opentrade_group_activtiy_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 总记录数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 组团活动信息 - Results []GroupActivityResponse `json:"results,omitempty" xml:"results>group_activity_response,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeGroupDetailAPIRequest.go b/model/opentrade/TaobaoOpentradeGroupDetailAPIRequest.go new file mode 100644 index 0000000000..e10716c808 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeGroupDetailAPIRequest.go @@ -0,0 +1,52 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +组团购场景查询团详情 API请求 +taobao.opentrade.group.detail + +组团购场景下,查询团详情 +*/ +type TaobaoOpentradeGroupDetailAPIRequest struct { + model.Params + // 团id + _groupId int64 +} + +// 初始化TaobaoOpentradeGroupDetailAPIRequest对象 +func NewTaobaoOpentradeGroupDetailRequest() *TaobaoOpentradeGroupDetailAPIRequest{ + return &TaobaoOpentradeGroupDetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeGroupDetailAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.group.detail" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeGroupDetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupId Setter +// 团id +func (r *TaobaoOpentradeGroupDetailAPIRequest) SetGroupId(_groupId int64) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r TaobaoOpentradeGroupDetailAPIRequest) GetGroupId() int64 { + return r._groupId +} diff --git a/model/opentrade/TaobaoOpentradeGroupDetailAPIResponse.go b/model/opentrade/TaobaoOpentradeGroupDetailAPIResponse.go new file mode 100644 index 0000000000..048855d49a --- /dev/null +++ b/model/opentrade/TaobaoOpentradeGroupDetailAPIResponse.go @@ -0,0 +1,27 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +组团购场景查询团详情 API返回值 +taobao.opentrade.group.detail + +组团购场景下,查询团详情 +*/ +type TaobaoOpentradeGroupDetailAPIResponse struct { + model.CommonResponse + TaobaoOpentradeGroupDetailAPIResponseModel +} + +// 组团购场景查询团详情 成功返回结果 +type TaobaoOpentradeGroupDetailAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_group_detail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 团信息 + Result *GroupDetailResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeGroupDetailResponse.go b/model/opentrade/TaobaoOpentradeGroupDetailResponse.go deleted file mode 100644 index 79e8660d43..0000000000 --- a/model/opentrade/TaobaoOpentradeGroupDetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -组团购场景查询团详情 API返回值 -taobao.opentrade.group.detail - -组团购场景下,查询团详情 -*/ -type TaobaoOpentradeGroupDetailAPIResponse struct { - model.CommonResponse - TaobaoOpentradeGroupDetailResponse -} - -// 组团购场景查询团详情 成功返回结果 -type TaobaoOpentradeGroupDetailResponse struct { - XMLName xml.Name `xml:"opentrade_group_detail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 团信息 - Result *GroupDetailResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeGroupJoinAPIRequest.go b/model/opentrade/TaobaoOpentradeGroupJoinAPIRequest.go new file mode 100644 index 0000000000..bea7c93ca2 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeGroupJoinAPIRequest.go @@ -0,0 +1,80 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +组团购场景参团 API请求 +taobao.opentrade.group.join + +组团购场景下,用户参团 +*/ +type TaobaoOpentradeGroupJoinAPIRequest struct { + model.Params + // 商品id + _itemId int64 + // 团id + _groupId int64 + // 用户openId + _openUserId string +} + +// 初始化TaobaoOpentradeGroupJoinAPIRequest对象 +func NewTaobaoOpentradeGroupJoinRequest() *TaobaoOpentradeGroupJoinAPIRequest{ + return &TaobaoOpentradeGroupJoinAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeGroupJoinAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.group.join" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeGroupJoinAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TaobaoOpentradeGroupJoinAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoOpentradeGroupJoinAPIRequest) GetItemId() int64 { + return r._itemId +} +// GroupId Setter +// 团id +func (r *TaobaoOpentradeGroupJoinAPIRequest) SetGroupId(_groupId int64) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r TaobaoOpentradeGroupJoinAPIRequest) GetGroupId() int64 { + return r._groupId +} +// OpenUserId Setter +// 用户openId +func (r *TaobaoOpentradeGroupJoinAPIRequest) SetOpenUserId(_openUserId string) error { + r._openUserId = _openUserId + r.Set("open_user_id", _openUserId) + return nil +} + +// OpenUserId Getter +func (r TaobaoOpentradeGroupJoinAPIRequest) GetOpenUserId() string { + return r._openUserId +} diff --git a/model/opentrade/TaobaoOpentradeGroupJoinAPIResponse.go b/model/opentrade/TaobaoOpentradeGroupJoinAPIResponse.go new file mode 100644 index 0000000000..c2c12d16c1 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeGroupJoinAPIResponse.go @@ -0,0 +1,25 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +组团购场景参团 API返回值 +taobao.opentrade.group.join + +组团购场景下,用户参团 +*/ +type TaobaoOpentradeGroupJoinAPIResponse struct { + model.CommonResponse + TaobaoOpentradeGroupJoinAPIResponseModel +} + +// 组团购场景参团 成功返回结果 +type TaobaoOpentradeGroupJoinAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_group_join_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeGroupJoinResponse.go b/model/opentrade/TaobaoOpentradeGroupJoinResponse.go deleted file mode 100644 index e24d041a30..0000000000 --- a/model/opentrade/TaobaoOpentradeGroupJoinResponse.go +++ /dev/null @@ -1,25 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -组团购场景参团 API返回值 -taobao.opentrade.group.join - -组团购场景下,用户参团 -*/ -type TaobaoOpentradeGroupJoinAPIResponse struct { - model.CommonResponse - TaobaoOpentradeGroupJoinResponse -} - -// 组团购场景参团 成功返回结果 -type TaobaoOpentradeGroupJoinResponse struct { - XMLName xml.Name `xml:"opentrade_group_join_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeGroupMemberInfoAPIRequest.go b/model/opentrade/TaobaoOpentradeGroupMemberInfoAPIRequest.go new file mode 100644 index 0000000000..b7456ca1dd --- /dev/null +++ b/model/opentrade/TaobaoOpentradeGroupMemberInfoAPIRequest.go @@ -0,0 +1,66 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +组团购获取用户参团信息 API请求 +taobao.opentrade.group.member.info + +组团购场景下,获取用户参团信息 +*/ +type TaobaoOpentradeGroupMemberInfoAPIRequest struct { + model.Params + // 团id + _groupId int64 + // 用户openId + _openUserId string +} + +// 初始化TaobaoOpentradeGroupMemberInfoAPIRequest对象 +func NewTaobaoOpentradeGroupMemberInfoRequest() *TaobaoOpentradeGroupMemberInfoAPIRequest{ + return &TaobaoOpentradeGroupMemberInfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeGroupMemberInfoAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.group.member.info" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeGroupMemberInfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupId Setter +// 团id +func (r *TaobaoOpentradeGroupMemberInfoAPIRequest) SetGroupId(_groupId int64) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r TaobaoOpentradeGroupMemberInfoAPIRequest) GetGroupId() int64 { + return r._groupId +} +// OpenUserId Setter +// 用户openId +func (r *TaobaoOpentradeGroupMemberInfoAPIRequest) SetOpenUserId(_openUserId string) error { + r._openUserId = _openUserId + r.Set("open_user_id", _openUserId) + return nil +} + +// OpenUserId Getter +func (r TaobaoOpentradeGroupMemberInfoAPIRequest) GetOpenUserId() string { + return r._openUserId +} diff --git a/model/opentrade/TaobaoOpentradeGroupMemberInfoAPIResponse.go b/model/opentrade/TaobaoOpentradeGroupMemberInfoAPIResponse.go new file mode 100644 index 0000000000..204b397f89 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeGroupMemberInfoAPIResponse.go @@ -0,0 +1,27 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +组团购获取用户参团信息 API返回值 +taobao.opentrade.group.member.info + +组团购场景下,获取用户参团信息 +*/ +type TaobaoOpentradeGroupMemberInfoAPIResponse struct { + model.CommonResponse + TaobaoOpentradeGroupMemberInfoAPIResponseModel +} + +// 组团购获取用户参团信息 成功返回结果 +type TaobaoOpentradeGroupMemberInfoAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_group_member_info_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 参团信息 + Result *RopGroupMemberInfo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeGroupMemberInfoResponse.go b/model/opentrade/TaobaoOpentradeGroupMemberInfoResponse.go deleted file mode 100644 index c92d068fb0..0000000000 --- a/model/opentrade/TaobaoOpentradeGroupMemberInfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -组团购获取用户参团信息 API返回值 -taobao.opentrade.group.member.info - -组团购场景下,获取用户参团信息 -*/ -type TaobaoOpentradeGroupMemberInfoAPIResponse struct { - model.CommonResponse - TaobaoOpentradeGroupMemberInfoResponse -} - -// 组团购获取用户参团信息 成功返回结果 -type TaobaoOpentradeGroupMemberInfoResponse struct { - XMLName xml.Name `xml:"opentrade_group_member_info_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 参团信息 - Result *RopGroupMemberInfo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeGroupMemberInfosAPIRequest.go b/model/opentrade/TaobaoOpentradeGroupMemberInfosAPIRequest.go new file mode 100644 index 0000000000..30d6263d32 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeGroupMemberInfosAPIRequest.go @@ -0,0 +1,66 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +组团购批量获取用户参团信息 API请求 +taobao.opentrade.group.member.infos + +组团购场景下,获取用户参团信息 +*/ +type TaobaoOpentradeGroupMemberInfosAPIRequest struct { + model.Params + // 团id + _groupId int64 + // 用户openId列表 + _openUserIds []string +} + +// 初始化TaobaoOpentradeGroupMemberInfosAPIRequest对象 +func NewTaobaoOpentradeGroupMemberInfosRequest() *TaobaoOpentradeGroupMemberInfosAPIRequest{ + return &TaobaoOpentradeGroupMemberInfosAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeGroupMemberInfosAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.group.member.infos" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeGroupMemberInfosAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupId Setter +// 团id +func (r *TaobaoOpentradeGroupMemberInfosAPIRequest) SetGroupId(_groupId int64) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r TaobaoOpentradeGroupMemberInfosAPIRequest) GetGroupId() int64 { + return r._groupId +} +// OpenUserIds Setter +// 用户openId列表 +func (r *TaobaoOpentradeGroupMemberInfosAPIRequest) SetOpenUserIds(_openUserIds []string) error { + r._openUserIds = _openUserIds + r.Set("open_user_ids", _openUserIds) + return nil +} + +// OpenUserIds Getter +func (r TaobaoOpentradeGroupMemberInfosAPIRequest) GetOpenUserIds() []string { + return r._openUserIds +} diff --git a/model/opentrade/TaobaoOpentradeGroupMemberInfosAPIResponse.go b/model/opentrade/TaobaoOpentradeGroupMemberInfosAPIResponse.go new file mode 100644 index 0000000000..2002a7724a --- /dev/null +++ b/model/opentrade/TaobaoOpentradeGroupMemberInfosAPIResponse.go @@ -0,0 +1,27 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +组团购批量获取用户参团信息 API返回值 +taobao.opentrade.group.member.infos + +组团购场景下,获取用户参团信息 +*/ +type TaobaoOpentradeGroupMemberInfosAPIResponse struct { + model.CommonResponse + TaobaoOpentradeGroupMemberInfosAPIResponseModel +} + +// 组团购批量获取用户参团信息 成功返回结果 +type TaobaoOpentradeGroupMemberInfosAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_group_member_infos_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 参团信息 + Result []GroupMemberInfoResponse `json:"result,omitempty" xml:"result>group_member_info_response,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeGroupMemberInfosResponse.go b/model/opentrade/TaobaoOpentradeGroupMemberInfosResponse.go deleted file mode 100644 index c791be9b04..0000000000 --- a/model/opentrade/TaobaoOpentradeGroupMemberInfosResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -组团购批量获取用户参团信息 API返回值 -taobao.opentrade.group.member.infos - -组团购场景下,获取用户参团信息 -*/ -type TaobaoOpentradeGroupMemberInfosAPIResponse struct { - model.CommonResponse - TaobaoOpentradeGroupMemberInfosResponse -} - -// 组团购批量获取用户参团信息 成功返回结果 -type TaobaoOpentradeGroupMemberInfosResponse struct { - XMLName xml.Name `xml:"opentrade_group_member_infos_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 参团信息 - Result []GroupMemberInfoResponse `json:"result,omitempty" xml:"result>group_member_info_response,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeGroupOpenAPIRequest.go b/model/opentrade/TaobaoOpentradeGroupOpenAPIRequest.go new file mode 100644 index 0000000000..4b8767b725 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeGroupOpenAPIRequest.go @@ -0,0 +1,80 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +组团购场景开团 API请求 +taobao.opentrade.group.open + +组团购场景下,团长开团 +*/ +type TaobaoOpentradeGroupOpenAPIRequest struct { + model.Params + // 商品id + _itemId int64 + // 用户openId + _openUserId string + // 组团活动id + _groupActivityId int64 +} + +// 初始化TaobaoOpentradeGroupOpenAPIRequest对象 +func NewTaobaoOpentradeGroupOpenRequest() *TaobaoOpentradeGroupOpenAPIRequest{ + return &TaobaoOpentradeGroupOpenAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeGroupOpenAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.group.open" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeGroupOpenAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TaobaoOpentradeGroupOpenAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoOpentradeGroupOpenAPIRequest) GetItemId() int64 { + return r._itemId +} +// OpenUserId Setter +// 用户openId +func (r *TaobaoOpentradeGroupOpenAPIRequest) SetOpenUserId(_openUserId string) error { + r._openUserId = _openUserId + r.Set("open_user_id", _openUserId) + return nil +} + +// OpenUserId Getter +func (r TaobaoOpentradeGroupOpenAPIRequest) GetOpenUserId() string { + return r._openUserId +} +// GroupActivityId Setter +// 组团活动id +func (r *TaobaoOpentradeGroupOpenAPIRequest) SetGroupActivityId(_groupActivityId int64) error { + r._groupActivityId = _groupActivityId + r.Set("group_activity_id", _groupActivityId) + return nil +} + +// GroupActivityId Getter +func (r TaobaoOpentradeGroupOpenAPIRequest) GetGroupActivityId() int64 { + return r._groupActivityId +} diff --git a/model/opentrade/TaobaoOpentradeGroupOpenAPIResponse.go b/model/opentrade/TaobaoOpentradeGroupOpenAPIResponse.go new file mode 100644 index 0000000000..62d3232878 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeGroupOpenAPIResponse.go @@ -0,0 +1,27 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +组团购场景开团 API返回值 +taobao.opentrade.group.open + +组团购场景下,团长开团 +*/ +type TaobaoOpentradeGroupOpenAPIResponse struct { + model.CommonResponse + TaobaoOpentradeGroupOpenAPIResponseModel +} + +// 组团购场景开团 成功返回结果 +type TaobaoOpentradeGroupOpenAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_group_open_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 团信息 + Result *OpenGroupResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeGroupOpenResponse.go b/model/opentrade/TaobaoOpentradeGroupOpenResponse.go deleted file mode 100644 index e1a1dc7b3a..0000000000 --- a/model/opentrade/TaobaoOpentradeGroupOpenResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -组团购场景开团 API返回值 -taobao.opentrade.group.open - -组团购场景下,团长开团 -*/ -type TaobaoOpentradeGroupOpenAPIResponse struct { - model.CommonResponse - TaobaoOpentradeGroupOpenResponse -} - -// 组团购场景开团 成功返回结果 -type TaobaoOpentradeGroupOpenResponse struct { - XMLName xml.Name `xml:"opentrade_group_open_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 团信息 - Result *OpenGroupResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeGroupOrderAPIRequest.go b/model/opentrade/TaobaoOpentradeGroupOrderAPIRequest.go new file mode 100644 index 0000000000..5f0c42781e --- /dev/null +++ b/model/opentrade/TaobaoOpentradeGroupOrderAPIRequest.go @@ -0,0 +1,52 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +组团购获取订单列表 API请求 +taobao.opentrade.group.order + +组团购场景下,获取开团的订单列表 +*/ +type TaobaoOpentradeGroupOrderAPIRequest struct { + model.Params + // 团id + _groupId int64 +} + +// 初始化TaobaoOpentradeGroupOrderAPIRequest对象 +func NewTaobaoOpentradeGroupOrderRequest() *TaobaoOpentradeGroupOrderAPIRequest{ + return &TaobaoOpentradeGroupOrderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeGroupOrderAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.group.order" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeGroupOrderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupId Setter +// 团id +func (r *TaobaoOpentradeGroupOrderAPIRequest) SetGroupId(_groupId int64) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r TaobaoOpentradeGroupOrderAPIRequest) GetGroupId() int64 { + return r._groupId +} diff --git a/model/opentrade/TaobaoOpentradeGroupOrderAPIResponse.go b/model/opentrade/TaobaoOpentradeGroupOrderAPIResponse.go new file mode 100644 index 0000000000..bb7c920f0f --- /dev/null +++ b/model/opentrade/TaobaoOpentradeGroupOrderAPIResponse.go @@ -0,0 +1,27 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +组团购获取订单列表 API返回值 +taobao.opentrade.group.order + +组团购场景下,获取开团的订单列表 +*/ +type TaobaoOpentradeGroupOrderAPIResponse struct { + model.CommonResponse + TaobaoOpentradeGroupOrderAPIResponseModel +} + +// 组团购获取订单列表 成功返回结果 +type TaobaoOpentradeGroupOrderAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_group_order_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单id列表 + Result []string `json:"result,omitempty" xml:"result>string,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeGroupOrderResponse.go b/model/opentrade/TaobaoOpentradeGroupOrderResponse.go deleted file mode 100644 index b99d929aa4..0000000000 --- a/model/opentrade/TaobaoOpentradeGroupOrderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -组团购获取订单列表 API返回值 -taobao.opentrade.group.order - -组团购场景下,获取开团的订单列表 -*/ -type TaobaoOpentradeGroupOrderAPIResponse struct { - model.CommonResponse - TaobaoOpentradeGroupOrderResponse -} - -// 组团购获取订单列表 成功返回结果 -type TaobaoOpentradeGroupOrderResponse struct { - XMLName xml.Name `xml:"opentrade_group_order_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单id列表 - Result []string `json:"result,omitempty" xml:"result>string,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeGroupQueryAPIRequest.go b/model/opentrade/TaobaoOpentradeGroupQueryAPIRequest.go new file mode 100644 index 0000000000..75c7b2edf9 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeGroupQueryAPIRequest.go @@ -0,0 +1,136 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +组团购场景查询商品组团详情 API请求 +taobao.opentrade.group.query + +组团购场景下,查询商品开团详情 +*/ +type TaobaoOpentradeGroupQueryAPIRequest struct { + model.Params + // 商品id + _itemId int64 + // 用户openId + _openUserId string + // 0 返回未成团列表,1 返回已成团列表 + _orderBy int64 + // 页数 + _pageIndex int64 + // 每页展示条数,不能超过100 + _pageSize int64 + // 组团活动id + _groupActivityId int64 + // 是否返回已过期的团,true 返回,false 不返回 + _withExpire bool +} + +// 初始化TaobaoOpentradeGroupQueryAPIRequest对象 +func NewTaobaoOpentradeGroupQueryRequest() *TaobaoOpentradeGroupQueryAPIRequest{ + return &TaobaoOpentradeGroupQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeGroupQueryAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.group.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeGroupQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TaobaoOpentradeGroupQueryAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoOpentradeGroupQueryAPIRequest) GetItemId() int64 { + return r._itemId +} +// OpenUserId Setter +// 用户openId +func (r *TaobaoOpentradeGroupQueryAPIRequest) SetOpenUserId(_openUserId string) error { + r._openUserId = _openUserId + r.Set("open_user_id", _openUserId) + return nil +} + +// OpenUserId Getter +func (r TaobaoOpentradeGroupQueryAPIRequest) GetOpenUserId() string { + return r._openUserId +} +// OrderBy Setter +// 0 返回未成团列表,1 返回已成团列表 +func (r *TaobaoOpentradeGroupQueryAPIRequest) SetOrderBy(_orderBy int64) error { + r._orderBy = _orderBy + r.Set("order_by", _orderBy) + return nil +} + +// OrderBy Getter +func (r TaobaoOpentradeGroupQueryAPIRequest) GetOrderBy() int64 { + return r._orderBy +} +// PageIndex Setter +// 页数 +func (r *TaobaoOpentradeGroupQueryAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TaobaoOpentradeGroupQueryAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} +// PageSize Setter +// 每页展示条数,不能超过100 +func (r *TaobaoOpentradeGroupQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoOpentradeGroupQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// GroupActivityId Setter +// 组团活动id +func (r *TaobaoOpentradeGroupQueryAPIRequest) SetGroupActivityId(_groupActivityId int64) error { + r._groupActivityId = _groupActivityId + r.Set("group_activity_id", _groupActivityId) + return nil +} + +// GroupActivityId Getter +func (r TaobaoOpentradeGroupQueryAPIRequest) GetGroupActivityId() int64 { + return r._groupActivityId +} +// WithExpire Setter +// 是否返回已过期的团,true 返回,false 不返回 +func (r *TaobaoOpentradeGroupQueryAPIRequest) SetWithExpire(_withExpire bool) error { + r._withExpire = _withExpire + r.Set("with_expire", _withExpire) + return nil +} + +// WithExpire Getter +func (r TaobaoOpentradeGroupQueryAPIRequest) GetWithExpire() bool { + return r._withExpire +} diff --git a/model/opentrade/TaobaoOpentradeGroupQueryAPIResponse.go b/model/opentrade/TaobaoOpentradeGroupQueryAPIResponse.go new file mode 100644 index 0000000000..a2bde82c5b --- /dev/null +++ b/model/opentrade/TaobaoOpentradeGroupQueryAPIResponse.go @@ -0,0 +1,29 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +组团购场景查询商品组团详情 API返回值 +taobao.opentrade.group.query + +组团购场景下,查询商品开团详情 +*/ +type TaobaoOpentradeGroupQueryAPIResponse struct { + model.CommonResponse + TaobaoOpentradeGroupQueryAPIResponseModel +} + +// 组团购场景查询商品组团详情 成功返回结果 +type TaobaoOpentradeGroupQueryAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_group_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 总记录数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 团信息 + Results []GroupDetailResponse `json:"results,omitempty" xml:"results>group_detail_response,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeGroupQueryResponse.go b/model/opentrade/TaobaoOpentradeGroupQueryResponse.go deleted file mode 100644 index 6afa83fab9..0000000000 --- a/model/opentrade/TaobaoOpentradeGroupQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -组团购场景查询商品组团详情 API返回值 -taobao.opentrade.group.query - -组团购场景下,查询商品开团详情 -*/ -type TaobaoOpentradeGroupQueryAPIResponse struct { - model.CommonResponse - TaobaoOpentradeGroupQueryResponse -} - -// 组团购场景查询商品组团详情 成功返回结果 -type TaobaoOpentradeGroupQueryResponse struct { - XMLName xml.Name `xml:"opentrade_group_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 总记录数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 团信息 - Results []GroupDetailResponse `json:"results,omitempty" xml:"results>group_detail_response,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeGroupSyncAPIRequest.go b/model/opentrade/TaobaoOpentradeGroupSyncAPIRequest.go new file mode 100644 index 0000000000..f3e97d512d --- /dev/null +++ b/model/opentrade/TaobaoOpentradeGroupSyncAPIRequest.go @@ -0,0 +1,206 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +组团购场景创建或更新组团活动 API请求 +taobao.opentrade.group.sync + +组团购场景中创建团购活动 +*/ +type TaobaoOpentradeGroupSyncAPIRequest struct { + model.Params + // 组团活动开始时间 + _startTime string + // 组团活动结束时间 + _endTime string + // 成团有效期,单位为妙 + _expiration int64 + // 成团的目标人数 + _goal int64 + // 组团类型,0:拼团;1:团购 + _groupType int64 + // 是否任何账号可开团。whitelist:仅白名单账号可开团 all:任何账号可开团 + _allowType string + // 允许开团的淘宝账号列表 + _allowWhiteList []string + // 组团类型为团购,可限制团长针对一个商品的开团数量上限 + _openLimit int64 + // 未成团处理办法,close:系统关单;continue:订单继续下行 + _failProcess string + // 组团购买的折扣价,单位为分 + _discountPrice int64 + // 商品ID + _itemId int64 + // 组团活动id + _groupActivityId int64 +} + +// 初始化TaobaoOpentradeGroupSyncAPIRequest对象 +func NewTaobaoOpentradeGroupSyncRequest() *TaobaoOpentradeGroupSyncAPIRequest{ + return &TaobaoOpentradeGroupSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeGroupSyncAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.group.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeGroupSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartTime Setter +// 组团活动开始时间 +func (r *TaobaoOpentradeGroupSyncAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoOpentradeGroupSyncAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 组团活动结束时间 +func (r *TaobaoOpentradeGroupSyncAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoOpentradeGroupSyncAPIRequest) GetEndTime() string { + return r._endTime +} +// Expiration Setter +// 成团有效期,单位为妙 +func (r *TaobaoOpentradeGroupSyncAPIRequest) SetExpiration(_expiration int64) error { + r._expiration = _expiration + r.Set("expiration", _expiration) + return nil +} + +// Expiration Getter +func (r TaobaoOpentradeGroupSyncAPIRequest) GetExpiration() int64 { + return r._expiration +} +// Goal Setter +// 成团的目标人数 +func (r *TaobaoOpentradeGroupSyncAPIRequest) SetGoal(_goal int64) error { + r._goal = _goal + r.Set("goal", _goal) + return nil +} + +// Goal Getter +func (r TaobaoOpentradeGroupSyncAPIRequest) GetGoal() int64 { + return r._goal +} +// GroupType Setter +// 组团类型,0:拼团;1:团购 +func (r *TaobaoOpentradeGroupSyncAPIRequest) SetGroupType(_groupType int64) error { + r._groupType = _groupType + r.Set("group_type", _groupType) + return nil +} + +// GroupType Getter +func (r TaobaoOpentradeGroupSyncAPIRequest) GetGroupType() int64 { + return r._groupType +} +// AllowType Setter +// 是否任何账号可开团。whitelist:仅白名单账号可开团 all:任何账号可开团 +func (r *TaobaoOpentradeGroupSyncAPIRequest) SetAllowType(_allowType string) error { + r._allowType = _allowType + r.Set("allow_type", _allowType) + return nil +} + +// AllowType Getter +func (r TaobaoOpentradeGroupSyncAPIRequest) GetAllowType() string { + return r._allowType +} +// AllowWhiteList Setter +// 允许开团的淘宝账号列表 +func (r *TaobaoOpentradeGroupSyncAPIRequest) SetAllowWhiteList(_allowWhiteList []string) error { + r._allowWhiteList = _allowWhiteList + r.Set("allow_white_list", _allowWhiteList) + return nil +} + +// AllowWhiteList Getter +func (r TaobaoOpentradeGroupSyncAPIRequest) GetAllowWhiteList() []string { + return r._allowWhiteList +} +// OpenLimit Setter +// 组团类型为团购,可限制团长针对一个商品的开团数量上限 +func (r *TaobaoOpentradeGroupSyncAPIRequest) SetOpenLimit(_openLimit int64) error { + r._openLimit = _openLimit + r.Set("open_limit", _openLimit) + return nil +} + +// OpenLimit Getter +func (r TaobaoOpentradeGroupSyncAPIRequest) GetOpenLimit() int64 { + return r._openLimit +} +// FailProcess Setter +// 未成团处理办法,close:系统关单;continue:订单继续下行 +func (r *TaobaoOpentradeGroupSyncAPIRequest) SetFailProcess(_failProcess string) error { + r._failProcess = _failProcess + r.Set("fail_process", _failProcess) + return nil +} + +// FailProcess Getter +func (r TaobaoOpentradeGroupSyncAPIRequest) GetFailProcess() string { + return r._failProcess +} +// DiscountPrice Setter +// 组团购买的折扣价,单位为分 +func (r *TaobaoOpentradeGroupSyncAPIRequest) SetDiscountPrice(_discountPrice int64) error { + r._discountPrice = _discountPrice + r.Set("discount_price", _discountPrice) + return nil +} + +// DiscountPrice Getter +func (r TaobaoOpentradeGroupSyncAPIRequest) GetDiscountPrice() int64 { + return r._discountPrice +} +// ItemId Setter +// 商品ID +func (r *TaobaoOpentradeGroupSyncAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoOpentradeGroupSyncAPIRequest) GetItemId() int64 { + return r._itemId +} +// GroupActivityId Setter +// 组团活动id +func (r *TaobaoOpentradeGroupSyncAPIRequest) SetGroupActivityId(_groupActivityId int64) error { + r._groupActivityId = _groupActivityId + r.Set("group_activity_id", _groupActivityId) + return nil +} + +// GroupActivityId Getter +func (r TaobaoOpentradeGroupSyncAPIRequest) GetGroupActivityId() int64 { + return r._groupActivityId +} diff --git a/model/opentrade/TaobaoOpentradeGroupSyncAPIResponse.go b/model/opentrade/TaobaoOpentradeGroupSyncAPIResponse.go new file mode 100644 index 0000000000..7d68f1e333 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeGroupSyncAPIResponse.go @@ -0,0 +1,27 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +组团购场景创建或更新组团活动 API返回值 +taobao.opentrade.group.sync + +组团购场景中创建团购活动 +*/ +type TaobaoOpentradeGroupSyncAPIResponse struct { + model.CommonResponse + TaobaoOpentradeGroupSyncAPIResponseModel +} + +// 组团购场景创建或更新组团活动 成功返回结果 +type TaobaoOpentradeGroupSyncAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_group_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 团购活动信息 + Result *GroupActivityResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeGroupSyncResponse.go b/model/opentrade/TaobaoOpentradeGroupSyncResponse.go deleted file mode 100644 index 904e195a04..0000000000 --- a/model/opentrade/TaobaoOpentradeGroupSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -组团购场景创建或更新组团活动 API返回值 -taobao.opentrade.group.sync - -组团购场景中创建团购活动 -*/ -type TaobaoOpentradeGroupSyncAPIResponse struct { - model.CommonResponse - TaobaoOpentradeGroupSyncResponse -} - -// 组团购场景创建或更新组团活动 成功返回结果 -type TaobaoOpentradeGroupSyncResponse struct { - XMLName xml.Name `xml:"opentrade_group_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 团购活动信息 - Result *GroupActivityResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeQueueQueryAPIRequest.go b/model/opentrade/TaobaoOpentradeQueueQueryAPIRequest.go new file mode 100644 index 0000000000..29850270b9 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeQueueQueryAPIRequest.go @@ -0,0 +1,122 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +尖货交易排队信息查询 API请求 +taobao.opentrade.queue.query + +尖货交易排队信息查询 +*/ +type TaobaoOpentradeQueueQueryAPIRequest struct { + model.Params + // 排队用户状态,新用户为NEW + _status string + // 排队活动ID,排队时如传入,这里需要填写;若未传,这里也可以不传 + _activityId string + // 排队商品SKU ID,不存在传0 + _skuId int64 + // 排队商品ID + _itemId int64 + // 分页参数,每页大小 + _pageSize int64 + // 分页参数,当前页,以0开始 + _pageIndex int64 +} + +// 初始化TaobaoOpentradeQueueQueryAPIRequest对象 +func NewTaobaoOpentradeQueueQueryRequest() *TaobaoOpentradeQueueQueryAPIRequest{ + return &TaobaoOpentradeQueueQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeQueueQueryAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.queue.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeQueueQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Status Setter +// 排队用户状态,新用户为NEW +func (r *TaobaoOpentradeQueueQueryAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoOpentradeQueueQueryAPIRequest) GetStatus() string { + return r._status +} +// ActivityId Setter +// 排队活动ID,排队时如传入,这里需要填写;若未传,这里也可以不传 +func (r *TaobaoOpentradeQueueQueryAPIRequest) SetActivityId(_activityId string) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoOpentradeQueueQueryAPIRequest) GetActivityId() string { + return r._activityId +} +// SkuId Setter +// 排队商品SKU ID,不存在传0 +func (r *TaobaoOpentradeQueueQueryAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TaobaoOpentradeQueueQueryAPIRequest) GetSkuId() int64 { + return r._skuId +} +// ItemId Setter +// 排队商品ID +func (r *TaobaoOpentradeQueueQueryAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoOpentradeQueueQueryAPIRequest) GetItemId() int64 { + return r._itemId +} +// PageSize Setter +// 分页参数,每页大小 +func (r *TaobaoOpentradeQueueQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoOpentradeQueueQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageIndex Setter +// 分页参数,当前页,以0开始 +func (r *TaobaoOpentradeQueueQueryAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TaobaoOpentradeQueueQueryAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} diff --git a/model/opentrade/TaobaoOpentradeQueueQueryAPIResponse.go b/model/opentrade/TaobaoOpentradeQueueQueryAPIResponse.go new file mode 100644 index 0000000000..0bc9ebc0c8 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeQueueQueryAPIResponse.go @@ -0,0 +1,29 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +尖货交易排队信息查询 API返回值 +taobao.opentrade.queue.query + +尖货交易排队信息查询 +*/ +type TaobaoOpentradeQueueQueryAPIResponse struct { + model.CommonResponse + TaobaoOpentradeQueueQueryAPIResponseModel +} + +// 尖货交易排队信息查询 成功返回结果 +type TaobaoOpentradeQueueQueryAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_queue_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 总记录数 + TotalCount string `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 返回的排队用户数据 + Results []McUserDto `json:"results,omitempty" xml:"results>mc_user_dto,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeQueueQueryResponse.go b/model/opentrade/TaobaoOpentradeQueueQueryResponse.go deleted file mode 100644 index 9f8e11ac12..0000000000 --- a/model/opentrade/TaobaoOpentradeQueueQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -尖货交易排队信息查询 API返回值 -taobao.opentrade.queue.query - -尖货交易排队信息查询 -*/ -type TaobaoOpentradeQueueQueryAPIResponse struct { - model.CommonResponse - TaobaoOpentradeQueueQueryResponse -} - -// 尖货交易排队信息查询 成功返回结果 -type TaobaoOpentradeQueueQueryResponse struct { - XMLName xml.Name `xml:"opentrade_queue_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 总记录数 - TotalCount string `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 返回的排队用户数据 - Results []McUserDto `json:"results,omitempty" xml:"results>mc_user_dto,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeQueueUsersMarkAPIRequest.go b/model/opentrade/TaobaoOpentradeQueueUsersMarkAPIRequest.go new file mode 100644 index 0000000000..3c6e53ca89 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeQueueUsersMarkAPIRequest.go @@ -0,0 +1,122 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +尖货交易可购买用户标记 API请求 +taobao.opentrade.queue.users.mark + +尖货交易用户标记信息回传,根据openId标记用户可购买商品 +*/ +type TaobaoOpentradeQueueUsersMarkAPIRequest struct { + model.Params + // 用户状态,可任意传入,后续查询返回 + _status string + // 排队活动ID,排队时如传入,这里需要填写;若未传,这里也可以不传 + _activityId string + // 排队商品SKU ID,不存在传0 + _skuId int64 + // 排队商品ID + _itemId int64 + // 本次待标记的用户列表,多个以逗号(,)分割,最大20个 + _openUserIds []string + // 是否目标用户,传入true后,用户可购买商品 + _hit bool +} + +// 初始化TaobaoOpentradeQueueUsersMarkAPIRequest对象 +func NewTaobaoOpentradeQueueUsersMarkRequest() *TaobaoOpentradeQueueUsersMarkAPIRequest{ + return &TaobaoOpentradeQueueUsersMarkAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeQueueUsersMarkAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.queue.users.mark" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeQueueUsersMarkAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Status Setter +// 用户状态,可任意传入,后续查询返回 +func (r *TaobaoOpentradeQueueUsersMarkAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoOpentradeQueueUsersMarkAPIRequest) GetStatus() string { + return r._status +} +// ActivityId Setter +// 排队活动ID,排队时如传入,这里需要填写;若未传,这里也可以不传 +func (r *TaobaoOpentradeQueueUsersMarkAPIRequest) SetActivityId(_activityId string) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoOpentradeQueueUsersMarkAPIRequest) GetActivityId() string { + return r._activityId +} +// SkuId Setter +// 排队商品SKU ID,不存在传0 +func (r *TaobaoOpentradeQueueUsersMarkAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TaobaoOpentradeQueueUsersMarkAPIRequest) GetSkuId() int64 { + return r._skuId +} +// ItemId Setter +// 排队商品ID +func (r *TaobaoOpentradeQueueUsersMarkAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoOpentradeQueueUsersMarkAPIRequest) GetItemId() int64 { + return r._itemId +} +// OpenUserIds Setter +// 本次待标记的用户列表,多个以逗号(,)分割,最大20个 +func (r *TaobaoOpentradeQueueUsersMarkAPIRequest) SetOpenUserIds(_openUserIds []string) error { + r._openUserIds = _openUserIds + r.Set("open_user_ids", _openUserIds) + return nil +} + +// OpenUserIds Getter +func (r TaobaoOpentradeQueueUsersMarkAPIRequest) GetOpenUserIds() []string { + return r._openUserIds +} +// Hit Setter +// 是否目标用户,传入true后,用户可购买商品 +func (r *TaobaoOpentradeQueueUsersMarkAPIRequest) SetHit(_hit bool) error { + r._hit = _hit + r.Set("hit", _hit) + return nil +} + +// Hit Getter +func (r TaobaoOpentradeQueueUsersMarkAPIRequest) GetHit() bool { + return r._hit +} diff --git a/model/opentrade/TaobaoOpentradeQueueUsersMarkAPIResponse.go b/model/opentrade/TaobaoOpentradeQueueUsersMarkAPIResponse.go new file mode 100644 index 0000000000..59feab5f4f --- /dev/null +++ b/model/opentrade/TaobaoOpentradeQueueUsersMarkAPIResponse.go @@ -0,0 +1,27 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +尖货交易可购买用户标记 API返回值 +taobao.opentrade.queue.users.mark + +尖货交易用户标记信息回传,根据openId标记用户可购买商品 +*/ +type TaobaoOpentradeQueueUsersMarkAPIResponse struct { + model.CommonResponse + TaobaoOpentradeQueueUsersMarkAPIResponseModel +} + +// 尖货交易可购买用户标记 成功返回结果 +type TaobaoOpentradeQueueUsersMarkAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_queue_users_mark_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 标记成功的用户数 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeQueueUsersMarkResponse.go b/model/opentrade/TaobaoOpentradeQueueUsersMarkResponse.go deleted file mode 100644 index cdd8b0f6ee..0000000000 --- a/model/opentrade/TaobaoOpentradeQueueUsersMarkResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -尖货交易可购买用户标记 API返回值 -taobao.opentrade.queue.users.mark - -尖货交易用户标记信息回传,根据openId标记用户可购买商品 -*/ -type TaobaoOpentradeQueueUsersMarkAPIResponse struct { - model.CommonResponse - TaobaoOpentradeQueueUsersMarkResponse -} - -// 尖货交易可购买用户标记 成功返回结果 -type TaobaoOpentradeQueueUsersMarkResponse struct { - XMLName xml.Name `xml:"opentrade_queue_users_mark_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 标记成功的用户数 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeSpecialItemsBindAPIRequest.go b/model/opentrade/TaobaoOpentradeSpecialItemsBindAPIRequest.go new file mode 100644 index 0000000000..59e6426eb1 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeSpecialItemsBindAPIRequest.go @@ -0,0 +1,66 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +专属下单场景商品绑定 API请求 +taobao.opentrade.special.items.bind + +专属下单场景商品绑定 +*/ +type TaobaoOpentradeSpecialItemsBindAPIRequest struct { + model.Params + // 绑定专属下单场景的C端小程序ID + _miniappId int64 + // 本次待绑定的商品ID列表 + _itemIds []int64 +} + +// 初始化TaobaoOpentradeSpecialItemsBindAPIRequest对象 +func NewTaobaoOpentradeSpecialItemsBindRequest() *TaobaoOpentradeSpecialItemsBindAPIRequest{ + return &TaobaoOpentradeSpecialItemsBindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeSpecialItemsBindAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.special.items.bind" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeSpecialItemsBindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MiniappId Setter +// 绑定专属下单场景的C端小程序ID +func (r *TaobaoOpentradeSpecialItemsBindAPIRequest) SetMiniappId(_miniappId int64) error { + r._miniappId = _miniappId + r.Set("miniapp_id", _miniappId) + return nil +} + +// MiniappId Getter +func (r TaobaoOpentradeSpecialItemsBindAPIRequest) GetMiniappId() int64 { + return r._miniappId +} +// ItemIds Setter +// 本次待绑定的商品ID列表 +func (r *TaobaoOpentradeSpecialItemsBindAPIRequest) SetItemIds(_itemIds []int64) error { + r._itemIds = _itemIds + r.Set("item_ids", _itemIds) + return nil +} + +// ItemIds Getter +func (r TaobaoOpentradeSpecialItemsBindAPIRequest) GetItemIds() []int64 { + return r._itemIds +} diff --git a/model/opentrade/TaobaoOpentradeSpecialItemsBindAPIResponse.go b/model/opentrade/TaobaoOpentradeSpecialItemsBindAPIResponse.go new file mode 100644 index 0000000000..3037f51e75 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeSpecialItemsBindAPIResponse.go @@ -0,0 +1,27 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +专属下单场景商品绑定 API返回值 +taobao.opentrade.special.items.bind + +专属下单场景商品绑定 +*/ +type TaobaoOpentradeSpecialItemsBindAPIResponse struct { + model.CommonResponse + TaobaoOpentradeSpecialItemsBindAPIResponseModel +} + +// 专属下单场景商品绑定 成功返回结果 +type TaobaoOpentradeSpecialItemsBindAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_special_items_bind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 绑定返回结构 + Results []ItemBindResult `json:"results,omitempty" xml:"results>item_bind_result,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeSpecialItemsBindResponse.go b/model/opentrade/TaobaoOpentradeSpecialItemsBindResponse.go deleted file mode 100644 index d61dccd573..0000000000 --- a/model/opentrade/TaobaoOpentradeSpecialItemsBindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -专属下单场景商品绑定 API返回值 -taobao.opentrade.special.items.bind - -专属下单场景商品绑定 -*/ -type TaobaoOpentradeSpecialItemsBindAPIResponse struct { - model.CommonResponse - TaobaoOpentradeSpecialItemsBindResponse -} - -// 专属下单场景商品绑定 成功返回结果 -type TaobaoOpentradeSpecialItemsBindResponse struct { - XMLName xml.Name `xml:"opentrade_special_items_bind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 绑定返回结构 - Results []ItemBindResult `json:"results,omitempty" xml:"results>item_bind_result,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeSpecialItemsQueryAPIRequest.go b/model/opentrade/TaobaoOpentradeSpecialItemsQueryAPIRequest.go new file mode 100644 index 0000000000..febbffac63 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeSpecialItemsQueryAPIRequest.go @@ -0,0 +1,52 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +专属下单获取商品绑定信息 API请求 +taobao.opentrade.special.items.query + +专属下单获取商品绑定信息 +*/ +type TaobaoOpentradeSpecialItemsQueryAPIRequest struct { + model.Params + // 绑定专属下单场景的C端小程序ID + _miniappId int64 +} + +// 初始化TaobaoOpentradeSpecialItemsQueryAPIRequest对象 +func NewTaobaoOpentradeSpecialItemsQueryRequest() *TaobaoOpentradeSpecialItemsQueryAPIRequest{ + return &TaobaoOpentradeSpecialItemsQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeSpecialItemsQueryAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.special.items.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeSpecialItemsQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MiniappId Setter +// 绑定专属下单场景的C端小程序ID +func (r *TaobaoOpentradeSpecialItemsQueryAPIRequest) SetMiniappId(_miniappId int64) error { + r._miniappId = _miniappId + r.Set("miniapp_id", _miniappId) + return nil +} + +// MiniappId Getter +func (r TaobaoOpentradeSpecialItemsQueryAPIRequest) GetMiniappId() int64 { + return r._miniappId +} diff --git a/model/opentrade/TaobaoOpentradeSpecialItemsQueryAPIResponse.go b/model/opentrade/TaobaoOpentradeSpecialItemsQueryAPIResponse.go new file mode 100644 index 0000000000..ca0fe8b8ff --- /dev/null +++ b/model/opentrade/TaobaoOpentradeSpecialItemsQueryAPIResponse.go @@ -0,0 +1,27 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +专属下单获取商品绑定信息 API返回值 +taobao.opentrade.special.items.query + +专属下单获取商品绑定信息 +*/ +type TaobaoOpentradeSpecialItemsQueryAPIResponse struct { + model.CommonResponse + TaobaoOpentradeSpecialItemsQueryAPIResponseModel +} + +// 专属下单获取商品绑定信息 成功返回结果 +type TaobaoOpentradeSpecialItemsQueryAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_special_items_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 已绑定的商品ID列表 + Items []int64 `json:"items,omitempty" xml:"items>int64,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeSpecialItemsQueryResponse.go b/model/opentrade/TaobaoOpentradeSpecialItemsQueryResponse.go deleted file mode 100644 index 8a166329b4..0000000000 --- a/model/opentrade/TaobaoOpentradeSpecialItemsQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -专属下单获取商品绑定信息 API返回值 -taobao.opentrade.special.items.query - -专属下单获取商品绑定信息 -*/ -type TaobaoOpentradeSpecialItemsQueryAPIResponse struct { - model.CommonResponse - TaobaoOpentradeSpecialItemsQueryResponse -} - -// 专属下单获取商品绑定信息 成功返回结果 -type TaobaoOpentradeSpecialItemsQueryResponse struct { - XMLName xml.Name `xml:"opentrade_special_items_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 已绑定的商品ID列表 - Items []int64 `json:"items,omitempty" xml:"items>int64,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeSpecialItemsUnbindAPIRequest.go b/model/opentrade/TaobaoOpentradeSpecialItemsUnbindAPIRequest.go new file mode 100644 index 0000000000..f2e3a627bb --- /dev/null +++ b/model/opentrade/TaobaoOpentradeSpecialItemsUnbindAPIRequest.go @@ -0,0 +1,66 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +专属下单场景商品解绑 API请求 +taobao.opentrade.special.items.unbind + +专属下单场景商品解绑 +*/ +type TaobaoOpentradeSpecialItemsUnbindAPIRequest struct { + model.Params + // 绑定专属下单场景的C端小程序ID + _miniappId int64 + // 本次待解绑的商品ID列表 + _itemIds []int64 +} + +// 初始化TaobaoOpentradeSpecialItemsUnbindAPIRequest对象 +func NewTaobaoOpentradeSpecialItemsUnbindRequest() *TaobaoOpentradeSpecialItemsUnbindAPIRequest{ + return &TaobaoOpentradeSpecialItemsUnbindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeSpecialItemsUnbindAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.special.items.unbind" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeSpecialItemsUnbindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MiniappId Setter +// 绑定专属下单场景的C端小程序ID +func (r *TaobaoOpentradeSpecialItemsUnbindAPIRequest) SetMiniappId(_miniappId int64) error { + r._miniappId = _miniappId + r.Set("miniapp_id", _miniappId) + return nil +} + +// MiniappId Getter +func (r TaobaoOpentradeSpecialItemsUnbindAPIRequest) GetMiniappId() int64 { + return r._miniappId +} +// ItemIds Setter +// 本次待解绑的商品ID列表 +func (r *TaobaoOpentradeSpecialItemsUnbindAPIRequest) SetItemIds(_itemIds []int64) error { + r._itemIds = _itemIds + r.Set("item_ids", _itemIds) + return nil +} + +// ItemIds Getter +func (r TaobaoOpentradeSpecialItemsUnbindAPIRequest) GetItemIds() []int64 { + return r._itemIds +} diff --git a/model/opentrade/TaobaoOpentradeSpecialItemsUnbindAPIResponse.go b/model/opentrade/TaobaoOpentradeSpecialItemsUnbindAPIResponse.go new file mode 100644 index 0000000000..6f91b2b7c3 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeSpecialItemsUnbindAPIResponse.go @@ -0,0 +1,27 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +专属下单场景商品解绑 API返回值 +taobao.opentrade.special.items.unbind + +专属下单场景商品解绑 +*/ +type TaobaoOpentradeSpecialItemsUnbindAPIResponse struct { + model.CommonResponse + TaobaoOpentradeSpecialItemsUnbindAPIResponseModel +} + +// 专属下单场景商品解绑 成功返回结果 +type TaobaoOpentradeSpecialItemsUnbindAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_special_items_unbind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 解绑返回结构 + Results []ItemUnBindResult `json:"results,omitempty" xml:"results>item_un_bind_result,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeSpecialItemsUnbindResponse.go b/model/opentrade/TaobaoOpentradeSpecialItemsUnbindResponse.go deleted file mode 100644 index e029715d9d..0000000000 --- a/model/opentrade/TaobaoOpentradeSpecialItemsUnbindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -专属下单场景商品解绑 API返回值 -taobao.opentrade.special.items.unbind - -专属下单场景商品解绑 -*/ -type TaobaoOpentradeSpecialItemsUnbindAPIResponse struct { - model.CommonResponse - TaobaoOpentradeSpecialItemsUnbindResponse -} - -// 专属下单场景商品解绑 成功返回结果 -type TaobaoOpentradeSpecialItemsUnbindResponse struct { - XMLName xml.Name `xml:"opentrade_special_items_unbind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 解绑返回结构 - Results []ItemUnBindResult `json:"results,omitempty" xml:"results>item_un_bind_result,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeSpecialRuleUpdateAPIRequest.go b/model/opentrade/TaobaoOpentradeSpecialRuleUpdateAPIRequest.go new file mode 100644 index 0000000000..0380a6c75a --- /dev/null +++ b/model/opentrade/TaobaoOpentradeSpecialRuleUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +专属下单更新限购规则 API请求 +taobao.opentrade.special.rule.update + +对于专属下单的交易场景更新限购规则 +*/ +type TaobaoOpentradeSpecialRuleUpdateAPIRequest struct { + model.Params + // 最大限购数量 + _limitNum int64 + // 商品id列表 + _itemIds []int64 +} + +// 初始化TaobaoOpentradeSpecialRuleUpdateAPIRequest对象 +func NewTaobaoOpentradeSpecialRuleUpdateRequest() *TaobaoOpentradeSpecialRuleUpdateAPIRequest{ + return &TaobaoOpentradeSpecialRuleUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeSpecialRuleUpdateAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.special.rule.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeSpecialRuleUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LimitNum Setter +// 最大限购数量 +func (r *TaobaoOpentradeSpecialRuleUpdateAPIRequest) SetLimitNum(_limitNum int64) error { + r._limitNum = _limitNum + r.Set("limit_num", _limitNum) + return nil +} + +// LimitNum Getter +func (r TaobaoOpentradeSpecialRuleUpdateAPIRequest) GetLimitNum() int64 { + return r._limitNum +} +// ItemIds Setter +// 商品id列表 +func (r *TaobaoOpentradeSpecialRuleUpdateAPIRequest) SetItemIds(_itemIds []int64) error { + r._itemIds = _itemIds + r.Set("item_ids", _itemIds) + return nil +} + +// ItemIds Getter +func (r TaobaoOpentradeSpecialRuleUpdateAPIRequest) GetItemIds() []int64 { + return r._itemIds +} diff --git a/model/opentrade/TaobaoOpentradeSpecialRuleUpdateAPIResponse.go b/model/opentrade/TaobaoOpentradeSpecialRuleUpdateAPIResponse.go new file mode 100644 index 0000000000..8dbf69c9cd --- /dev/null +++ b/model/opentrade/TaobaoOpentradeSpecialRuleUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +专属下单更新限购规则 API返回值 +taobao.opentrade.special.rule.update + +对于专属下单的交易场景更新限购规则 +*/ +type TaobaoOpentradeSpecialRuleUpdateAPIResponse struct { + model.CommonResponse + TaobaoOpentradeSpecialRuleUpdateAPIResponseModel +} + +// 专属下单更新限购规则 成功返回结果 +type TaobaoOpentradeSpecialRuleUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_special_rule_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 更新失败的商品列表 + Result []ItemResultDto `json:"result,omitempty" xml:"result>item_result_dto,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeSpecialRuleUpdateResponse.go b/model/opentrade/TaobaoOpentradeSpecialRuleUpdateResponse.go deleted file mode 100644 index 99ec10f169..0000000000 --- a/model/opentrade/TaobaoOpentradeSpecialRuleUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -专属下单更新限购规则 API返回值 -taobao.opentrade.special.rule.update - -对于专属下单的交易场景更新限购规则 -*/ -type TaobaoOpentradeSpecialRuleUpdateAPIResponse struct { - model.CommonResponse - TaobaoOpentradeSpecialRuleUpdateResponse -} - -// 专属下单更新限购规则 成功返回结果 -type TaobaoOpentradeSpecialRuleUpdateResponse struct { - XMLName xml.Name `xml:"opentrade_special_rule_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 更新失败的商品列表 - Result []ItemResultDto `json:"result,omitempty" xml:"result>item_result_dto,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeSpecialUsersMarkAPIRequest.go b/model/opentrade/TaobaoOpentradeSpecialUsersMarkAPIRequest.go new file mode 100644 index 0000000000..c0859efac0 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeSpecialUsersMarkAPIRequest.go @@ -0,0 +1,122 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +专属下单可购买用户标记 API请求 +taobao.opentrade.special.users.mark + +对于专属下单的交易场景,根据openid标记用户可购买商品 +*/ +type TaobaoOpentradeSpecialUsersMarkAPIRequest struct { + model.Params + // 是否目标用户,传入true后,用户可购买商品 + _hit bool + // 本次待标记的用户列表,多个以逗号(,)分割,最大20个 + _openUserIds []string + // 商品ID + _itemId int64 + // 商品SKU ID,不存在传0 + _skuId int64 + // 用户状态,可任意传入,后续查询返回 + _status string + // 单次购买最大限购数量 + _limitNum int64 +} + +// 初始化TaobaoOpentradeSpecialUsersMarkAPIRequest对象 +func NewTaobaoOpentradeSpecialUsersMarkRequest() *TaobaoOpentradeSpecialUsersMarkAPIRequest{ + return &TaobaoOpentradeSpecialUsersMarkAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeSpecialUsersMarkAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.special.users.mark" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeSpecialUsersMarkAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Hit Setter +// 是否目标用户,传入true后,用户可购买商品 +func (r *TaobaoOpentradeSpecialUsersMarkAPIRequest) SetHit(_hit bool) error { + r._hit = _hit + r.Set("hit", _hit) + return nil +} + +// Hit Getter +func (r TaobaoOpentradeSpecialUsersMarkAPIRequest) GetHit() bool { + return r._hit +} +// OpenUserIds Setter +// 本次待标记的用户列表,多个以逗号(,)分割,最大20个 +func (r *TaobaoOpentradeSpecialUsersMarkAPIRequest) SetOpenUserIds(_openUserIds []string) error { + r._openUserIds = _openUserIds + r.Set("open_user_ids", _openUserIds) + return nil +} + +// OpenUserIds Getter +func (r TaobaoOpentradeSpecialUsersMarkAPIRequest) GetOpenUserIds() []string { + return r._openUserIds +} +// ItemId Setter +// 商品ID +func (r *TaobaoOpentradeSpecialUsersMarkAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoOpentradeSpecialUsersMarkAPIRequest) GetItemId() int64 { + return r._itemId +} +// SkuId Setter +// 商品SKU ID,不存在传0 +func (r *TaobaoOpentradeSpecialUsersMarkAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TaobaoOpentradeSpecialUsersMarkAPIRequest) GetSkuId() int64 { + return r._skuId +} +// Status Setter +// 用户状态,可任意传入,后续查询返回 +func (r *TaobaoOpentradeSpecialUsersMarkAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoOpentradeSpecialUsersMarkAPIRequest) GetStatus() string { + return r._status +} +// LimitNum Setter +// 单次购买最大限购数量 +func (r *TaobaoOpentradeSpecialUsersMarkAPIRequest) SetLimitNum(_limitNum int64) error { + r._limitNum = _limitNum + r.Set("limit_num", _limitNum) + return nil +} + +// LimitNum Getter +func (r TaobaoOpentradeSpecialUsersMarkAPIRequest) GetLimitNum() int64 { + return r._limitNum +} diff --git a/model/opentrade/TaobaoOpentradeSpecialUsersMarkAPIResponse.go b/model/opentrade/TaobaoOpentradeSpecialUsersMarkAPIResponse.go new file mode 100644 index 0000000000..b50677ae06 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeSpecialUsersMarkAPIResponse.go @@ -0,0 +1,27 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +专属下单可购买用户标记 API返回值 +taobao.opentrade.special.users.mark + +对于专属下单的交易场景,根据openid标记用户可购买商品 +*/ +type TaobaoOpentradeSpecialUsersMarkAPIResponse struct { + model.CommonResponse + TaobaoOpentradeSpecialUsersMarkAPIResponseModel +} + +// 专属下单可购买用户标记 成功返回结果 +type TaobaoOpentradeSpecialUsersMarkAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_special_users_mark_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 标记成功的用户数 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeSpecialUsersMarkResponse.go b/model/opentrade/TaobaoOpentradeSpecialUsersMarkResponse.go deleted file mode 100644 index 536662b320..0000000000 --- a/model/opentrade/TaobaoOpentradeSpecialUsersMarkResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -专属下单可购买用户标记 API返回值 -taobao.opentrade.special.users.mark - -对于专属下单的交易场景,根据openid标记用户可购买商品 -*/ -type TaobaoOpentradeSpecialUsersMarkAPIResponse struct { - model.CommonResponse - TaobaoOpentradeSpecialUsersMarkResponse -} - -// 专属下单可购买用户标记 成功返回结果 -type TaobaoOpentradeSpecialUsersMarkResponse struct { - XMLName xml.Name `xml:"opentrade_special_users_mark_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 标记成功的用户数 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeSpecialUsersQueryAPIRequest.go b/model/opentrade/TaobaoOpentradeSpecialUsersQueryAPIRequest.go new file mode 100644 index 0000000000..22e0abc269 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeSpecialUsersQueryAPIRequest.go @@ -0,0 +1,122 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +专属下单标记信息查询 API请求 +taobao.opentrade.special.users.query + +专属下单标记信息查询 +*/ +type TaobaoOpentradeSpecialUsersQueryAPIRequest struct { + model.Params + // 用户openId列表,多个以逗号(,)分割 + _openUserIds []string + // 分页参数,每页大小 + _pageSize int64 + // 商品ID + _itemId int64 + // 商品SKU ID,不存在传0 + _skuId int64 + // 用户状态 + _status string + // 分页参数,当前页,以0开始 + _pageIndex int64 +} + +// 初始化TaobaoOpentradeSpecialUsersQueryAPIRequest对象 +func NewTaobaoOpentradeSpecialUsersQueryRequest() *TaobaoOpentradeSpecialUsersQueryAPIRequest{ + return &TaobaoOpentradeSpecialUsersQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeSpecialUsersQueryAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.special.users.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeSpecialUsersQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenUserIds Setter +// 用户openId列表,多个以逗号(,)分割 +func (r *TaobaoOpentradeSpecialUsersQueryAPIRequest) SetOpenUserIds(_openUserIds []string) error { + r._openUserIds = _openUserIds + r.Set("open_user_ids", _openUserIds) + return nil +} + +// OpenUserIds Getter +func (r TaobaoOpentradeSpecialUsersQueryAPIRequest) GetOpenUserIds() []string { + return r._openUserIds +} +// PageSize Setter +// 分页参数,每页大小 +func (r *TaobaoOpentradeSpecialUsersQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoOpentradeSpecialUsersQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// ItemId Setter +// 商品ID +func (r *TaobaoOpentradeSpecialUsersQueryAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoOpentradeSpecialUsersQueryAPIRequest) GetItemId() int64 { + return r._itemId +} +// SkuId Setter +// 商品SKU ID,不存在传0 +func (r *TaobaoOpentradeSpecialUsersQueryAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TaobaoOpentradeSpecialUsersQueryAPIRequest) GetSkuId() int64 { + return r._skuId +} +// Status Setter +// 用户状态 +func (r *TaobaoOpentradeSpecialUsersQueryAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoOpentradeSpecialUsersQueryAPIRequest) GetStatus() string { + return r._status +} +// PageIndex Setter +// 分页参数,当前页,以0开始 +func (r *TaobaoOpentradeSpecialUsersQueryAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TaobaoOpentradeSpecialUsersQueryAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} diff --git a/model/opentrade/TaobaoOpentradeSpecialUsersQueryAPIResponse.go b/model/opentrade/TaobaoOpentradeSpecialUsersQueryAPIResponse.go new file mode 100644 index 0000000000..f8e65ea955 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeSpecialUsersQueryAPIResponse.go @@ -0,0 +1,29 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +专属下单标记信息查询 API返回值 +taobao.opentrade.special.users.query + +专属下单标记信息查询 +*/ +type TaobaoOpentradeSpecialUsersQueryAPIResponse struct { + model.CommonResponse + TaobaoOpentradeSpecialUsersQueryAPIResponseModel +} + +// 专属下单标记信息查询 成功返回结果 +type TaobaoOpentradeSpecialUsersQueryAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_special_users_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 总记录数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 标记用户数据 + Results []MarkUserInfo `json:"results,omitempty" xml:"results>mark_user_info,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeSpecialUsersQueryResponse.go b/model/opentrade/TaobaoOpentradeSpecialUsersQueryResponse.go deleted file mode 100644 index 7aa9ec288b..0000000000 --- a/model/opentrade/TaobaoOpentradeSpecialUsersQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -专属下单标记信息查询 API返回值 -taobao.opentrade.special.users.query - -专属下单标记信息查询 -*/ -type TaobaoOpentradeSpecialUsersQueryAPIResponse struct { - model.CommonResponse - TaobaoOpentradeSpecialUsersQueryResponse -} - -// 专属下单标记信息查询 成功返回结果 -type TaobaoOpentradeSpecialUsersQueryResponse struct { - XMLName xml.Name `xml:"opentrade_special_users_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 总记录数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 标记用户数据 - Results []MarkUserInfo `json:"results,omitempty" xml:"results>mark_user_info,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeToolsItemsBindAPIRequest.go b/model/opentrade/TaobaoOpentradeToolsItemsBindAPIRequest.go new file mode 100644 index 0000000000..6f41cf2925 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeToolsItemsBindAPIRequest.go @@ -0,0 +1,66 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +交易开放商品绑定 API请求 +taobao.opentrade.tools.items.bind + +交易开放商品绑定 +*/ +type TaobaoOpentradeToolsItemsBindAPIRequest struct { + model.Params + // 绑定交易开放场景的C端小程序ID + _miniappId int64 + // 待绑定商品id + _itemIds []int64 +} + +// 初始化TaobaoOpentradeToolsItemsBindAPIRequest对象 +func NewTaobaoOpentradeToolsItemsBindRequest() *TaobaoOpentradeToolsItemsBindAPIRequest{ + return &TaobaoOpentradeToolsItemsBindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeToolsItemsBindAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.tools.items.bind" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeToolsItemsBindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MiniappId Setter +// 绑定交易开放场景的C端小程序ID +func (r *TaobaoOpentradeToolsItemsBindAPIRequest) SetMiniappId(_miniappId int64) error { + r._miniappId = _miniappId + r.Set("miniapp_id", _miniappId) + return nil +} + +// MiniappId Getter +func (r TaobaoOpentradeToolsItemsBindAPIRequest) GetMiniappId() int64 { + return r._miniappId +} +// ItemIds Setter +// 待绑定商品id +func (r *TaobaoOpentradeToolsItemsBindAPIRequest) SetItemIds(_itemIds []int64) error { + r._itemIds = _itemIds + r.Set("item_ids", _itemIds) + return nil +} + +// ItemIds Getter +func (r TaobaoOpentradeToolsItemsBindAPIRequest) GetItemIds() []int64 { + return r._itemIds +} diff --git a/model/opentrade/TaobaoOpentradeToolsItemsBindAPIResponse.go b/model/opentrade/TaobaoOpentradeToolsItemsBindAPIResponse.go new file mode 100644 index 0000000000..568d4aba45 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeToolsItemsBindAPIResponse.go @@ -0,0 +1,27 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +交易开放商品绑定 API返回值 +taobao.opentrade.tools.items.bind + +交易开放商品绑定 +*/ +type TaobaoOpentradeToolsItemsBindAPIResponse struct { + model.CommonResponse + TaobaoOpentradeToolsItemsBindAPIResponseModel +} + +// 交易开放商品绑定 成功返回结果 +type TaobaoOpentradeToolsItemsBindAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_tools_items_bind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 绑定返回结构 + Results []ItemBindResult `json:"results,omitempty" xml:"results>item_bind_result,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeToolsItemsBindResponse.go b/model/opentrade/TaobaoOpentradeToolsItemsBindResponse.go deleted file mode 100644 index daa44dea13..0000000000 --- a/model/opentrade/TaobaoOpentradeToolsItemsBindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -交易开放商品绑定 API返回值 -taobao.opentrade.tools.items.bind - -交易开放商品绑定 -*/ -type TaobaoOpentradeToolsItemsBindAPIResponse struct { - model.CommonResponse - TaobaoOpentradeToolsItemsBindResponse -} - -// 交易开放商品绑定 成功返回结果 -type TaobaoOpentradeToolsItemsBindResponse struct { - XMLName xml.Name `xml:"opentrade_tools_items_bind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 绑定返回结构 - Results []ItemBindResult `json:"results,omitempty" xml:"results>item_bind_result,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeToolsItemsQueryAPIRequest.go b/model/opentrade/TaobaoOpentradeToolsItemsQueryAPIRequest.go new file mode 100644 index 0000000000..dfa8aef8b3 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeToolsItemsQueryAPIRequest.go @@ -0,0 +1,52 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +交易开放获取商品绑定信息 API请求 +taobao.opentrade.tools.items.query + +交易开放获取商品绑定信息 +*/ +type TaobaoOpentradeToolsItemsQueryAPIRequest struct { + model.Params + // 交易开放C端小程序ID + _miniappId int64 +} + +// 初始化TaobaoOpentradeToolsItemsQueryAPIRequest对象 +func NewTaobaoOpentradeToolsItemsQueryRequest() *TaobaoOpentradeToolsItemsQueryAPIRequest{ + return &TaobaoOpentradeToolsItemsQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeToolsItemsQueryAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.tools.items.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeToolsItemsQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MiniappId Setter +// 交易开放C端小程序ID +func (r *TaobaoOpentradeToolsItemsQueryAPIRequest) SetMiniappId(_miniappId int64) error { + r._miniappId = _miniappId + r.Set("miniapp_id", _miniappId) + return nil +} + +// MiniappId Getter +func (r TaobaoOpentradeToolsItemsQueryAPIRequest) GetMiniappId() int64 { + return r._miniappId +} diff --git a/model/opentrade/TaobaoOpentradeToolsItemsQueryAPIResponse.go b/model/opentrade/TaobaoOpentradeToolsItemsQueryAPIResponse.go new file mode 100644 index 0000000000..aaebcdf22d --- /dev/null +++ b/model/opentrade/TaobaoOpentradeToolsItemsQueryAPIResponse.go @@ -0,0 +1,27 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +交易开放获取商品绑定信息 API返回值 +taobao.opentrade.tools.items.query + +交易开放获取商品绑定信息 +*/ +type TaobaoOpentradeToolsItemsQueryAPIResponse struct { + model.CommonResponse + TaobaoOpentradeToolsItemsQueryAPIResponseModel +} + +// 交易开放获取商品绑定信息 成功返回结果 +type TaobaoOpentradeToolsItemsQueryAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_tools_items_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 已绑定的商品ID列表 + ItemIds []int64 `json:"item_ids,omitempty" xml:"item_ids>int64,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeToolsItemsQueryResponse.go b/model/opentrade/TaobaoOpentradeToolsItemsQueryResponse.go deleted file mode 100644 index ee19aa5e2a..0000000000 --- a/model/opentrade/TaobaoOpentradeToolsItemsQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -交易开放获取商品绑定信息 API返回值 -taobao.opentrade.tools.items.query - -交易开放获取商品绑定信息 -*/ -type TaobaoOpentradeToolsItemsQueryAPIResponse struct { - model.CommonResponse - TaobaoOpentradeToolsItemsQueryResponse -} - -// 交易开放获取商品绑定信息 成功返回结果 -type TaobaoOpentradeToolsItemsQueryResponse struct { - XMLName xml.Name `xml:"opentrade_tools_items_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 已绑定的商品ID列表 - ItemIds []int64 `json:"item_ids,omitempty" xml:"item_ids>int64,omitempty"` -} diff --git a/model/opentrade/TaobaoOpentradeToolsItemsUnbindAPIRequest.go b/model/opentrade/TaobaoOpentradeToolsItemsUnbindAPIRequest.go new file mode 100644 index 0000000000..83ed2ce295 --- /dev/null +++ b/model/opentrade/TaobaoOpentradeToolsItemsUnbindAPIRequest.go @@ -0,0 +1,66 @@ +package opentrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +交易开放商品解绑 API请求 +taobao.opentrade.tools.items.unbind + +交易开放商品解绑 +*/ +type TaobaoOpentradeToolsItemsUnbindAPIRequest struct { + model.Params + // 绑定交易开放场景的C端小程序ID + _miniappId int64 + // 商品id + _itemIds []int64 +} + +// 初始化TaobaoOpentradeToolsItemsUnbindAPIRequest对象 +func NewTaobaoOpentradeToolsItemsUnbindRequest() *TaobaoOpentradeToolsItemsUnbindAPIRequest{ + return &TaobaoOpentradeToolsItemsUnbindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeToolsItemsUnbindAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.tools.items.unbind" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeToolsItemsUnbindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MiniappId Setter +// 绑定交易开放场景的C端小程序ID +func (r *TaobaoOpentradeToolsItemsUnbindAPIRequest) SetMiniappId(_miniappId int64) error { + r._miniappId = _miniappId + r.Set("miniapp_id", _miniappId) + return nil +} + +// MiniappId Getter +func (r TaobaoOpentradeToolsItemsUnbindAPIRequest) GetMiniappId() int64 { + return r._miniappId +} +// ItemIds Setter +// 商品id +func (r *TaobaoOpentradeToolsItemsUnbindAPIRequest) SetItemIds(_itemIds []int64) error { + r._itemIds = _itemIds + r.Set("item_ids", _itemIds) + return nil +} + +// ItemIds Getter +func (r TaobaoOpentradeToolsItemsUnbindAPIRequest) GetItemIds() []int64 { + return r._itemIds +} diff --git a/model/opentrade/TaobaoOpentradeToolsItemsUnbindAPIResponse.go b/model/opentrade/TaobaoOpentradeToolsItemsUnbindAPIResponse.go new file mode 100644 index 0000000000..7b6994949f --- /dev/null +++ b/model/opentrade/TaobaoOpentradeToolsItemsUnbindAPIResponse.go @@ -0,0 +1,27 @@ +package opentrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +交易开放商品解绑 API返回值 +taobao.opentrade.tools.items.unbind + +交易开放商品解绑 +*/ +type TaobaoOpentradeToolsItemsUnbindAPIResponse struct { + model.CommonResponse + TaobaoOpentradeToolsItemsUnbindAPIResponseModel +} + +// 交易开放商品解绑 成功返回结果 +type TaobaoOpentradeToolsItemsUnbindAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_tools_items_unbind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 解绑返回结构 + Results []ItemUnBindResult `json:"results,omitempty" xml:"results>item_un_bind_result,omitempty"` +} diff --git a/model/opentrade/TaobaoOpentradeToolsItemsUnbindResponse.go b/model/opentrade/TaobaoOpentradeToolsItemsUnbindResponse.go deleted file mode 100644 index 587283cd0c..0000000000 --- a/model/opentrade/TaobaoOpentradeToolsItemsUnbindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package opentrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -交易开放商品解绑 API返回值 -taobao.opentrade.tools.items.unbind - -交易开放商品解绑 -*/ -type TaobaoOpentradeToolsItemsUnbindAPIResponse struct { - model.CommonResponse - TaobaoOpentradeToolsItemsUnbindResponse -} - -// 交易开放商品解绑 成功返回结果 -type TaobaoOpentradeToolsItemsUnbindResponse struct { - XMLName xml.Name `xml:"opentrade_tools_items_unbind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 解绑返回结构 - Results []ItemUnBindResult `json:"results,omitempty" xml:"results>item_un_bind_result,omitempty"` -} diff --git a/model/ott/YoukuOttAlicbFacadeserviceGetdataAPIRequest.go b/model/ott/YoukuOttAlicbFacadeserviceGetdataAPIRequest.go new file mode 100644 index 0000000000..dfaf14980c --- /dev/null +++ b/model/ott/YoukuOttAlicbFacadeserviceGetdataAPIRequest.go @@ -0,0 +1,94 @@ +package ott + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +影视SDK获取设备能力值 API请求 +youku.ott.alicb.facadeservice.getdata + +影视SDK获取设备能力值 +*/ +type YoukuOttAlicbFacadeserviceGetdataAPIRequest struct { + model.Params + // 能力维度 + _serviceList []string + // 设备唯一标识 + _uuid string + // 属性MAP JSON串 + _propertyMapJson string + // 扩展属性 + _extraInfoMap string +} + +// 初始化YoukuOttAlicbFacadeserviceGetdataAPIRequest对象 +func NewYoukuOttAlicbFacadeserviceGetdataRequest() *YoukuOttAlicbFacadeserviceGetdataAPIRequest{ + return &YoukuOttAlicbFacadeserviceGetdataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuOttAlicbFacadeserviceGetdataAPIRequest) GetApiMethodName() string { + return "youku.ott.alicb.facadeservice.getdata" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuOttAlicbFacadeserviceGetdataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceList Setter +// 能力维度 +func (r *YoukuOttAlicbFacadeserviceGetdataAPIRequest) SetServiceList(_serviceList []string) error { + r._serviceList = _serviceList + r.Set("service_list", _serviceList) + return nil +} + +// ServiceList Getter +func (r YoukuOttAlicbFacadeserviceGetdataAPIRequest) GetServiceList() []string { + return r._serviceList +} +// Uuid Setter +// 设备唯一标识 +func (r *YoukuOttAlicbFacadeserviceGetdataAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r YoukuOttAlicbFacadeserviceGetdataAPIRequest) GetUuid() string { + return r._uuid +} +// PropertyMapJson Setter +// 属性MAP JSON串 +func (r *YoukuOttAlicbFacadeserviceGetdataAPIRequest) SetPropertyMapJson(_propertyMapJson string) error { + r._propertyMapJson = _propertyMapJson + r.Set("property_map_json", _propertyMapJson) + return nil +} + +// PropertyMapJson Getter +func (r YoukuOttAlicbFacadeserviceGetdataAPIRequest) GetPropertyMapJson() string { + return r._propertyMapJson +} +// ExtraInfoMap Setter +// 扩展属性 +func (r *YoukuOttAlicbFacadeserviceGetdataAPIRequest) SetExtraInfoMap(_extraInfoMap string) error { + r._extraInfoMap = _extraInfoMap + r.Set("extra_info_map", _extraInfoMap) + return nil +} + +// ExtraInfoMap Getter +func (r YoukuOttAlicbFacadeserviceGetdataAPIRequest) GetExtraInfoMap() string { + return r._extraInfoMap +} diff --git a/model/ott/YoukuOttAlicbFacadeserviceGetdataAPIResponse.go b/model/ott/YoukuOttAlicbFacadeserviceGetdataAPIResponse.go new file mode 100644 index 0000000000..82313d735b --- /dev/null +++ b/model/ott/YoukuOttAlicbFacadeserviceGetdataAPIResponse.go @@ -0,0 +1,27 @@ +package ott + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +影视SDK获取设备能力值 API返回值 +youku.ott.alicb.facadeservice.getdata + +影视SDK获取设备能力值 +*/ +type YoukuOttAlicbFacadeserviceGetdataAPIResponse struct { + model.CommonResponse + YoukuOttAlicbFacadeserviceGetdataAPIResponseModel +} + +// 影视SDK获取设备能力值 成功返回结果 +type YoukuOttAlicbFacadeserviceGetdataAPIResponseModel struct { + XMLName xml.Name `xml:"youku_ott_alicb_facadeservice_getdata_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 设备能力JSON + Model string `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/ott/YoukuOttAlicbFacadeserviceGetdataResponse.go b/model/ott/YoukuOttAlicbFacadeserviceGetdataResponse.go deleted file mode 100644 index b076601893..0000000000 --- a/model/ott/YoukuOttAlicbFacadeserviceGetdataResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ott - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -影视SDK获取设备能力值 API返回值 -youku.ott.alicb.facadeservice.getdata - -影视SDK获取设备能力值 -*/ -type YoukuOttAlicbFacadeserviceGetdataAPIResponse struct { - model.CommonResponse - YoukuOttAlicbFacadeserviceGetdataResponse -} - -// 影视SDK获取设备能力值 成功返回结果 -type YoukuOttAlicbFacadeserviceGetdataResponse struct { - XMLName xml.Name `xml:"youku_ott_alicb_facadeservice_getdata_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 设备能力JSON - Model string `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/ott/YoukuOttPlayserviceGetplayurlAPIRequest.go b/model/ott/YoukuOttPlayserviceGetplayurlAPIRequest.go new file mode 100644 index 0000000000..0935c68def --- /dev/null +++ b/model/ott/YoukuOttPlayserviceGetplayurlAPIRequest.go @@ -0,0 +1,94 @@ +package ott + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取播放串地址 API请求 +youku.ott.playservice.getplayurl + +获取播放串地址服务 +*/ +type YoukuOttPlayserviceGetplayurlAPIRequest struct { + model.Params + // 优酷账号登录态 + _yktk string + // 账号登录态 + _havanaToken string + // 系统信息 + _systemInfo string + // 视频ID + _videoId int64 +} + +// 初始化YoukuOttPlayserviceGetplayurlAPIRequest对象 +func NewYoukuOttPlayserviceGetplayurlRequest() *YoukuOttPlayserviceGetplayurlAPIRequest{ + return &YoukuOttPlayserviceGetplayurlAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuOttPlayserviceGetplayurlAPIRequest) GetApiMethodName() string { + return "youku.ott.playservice.getplayurl" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuOttPlayserviceGetplayurlAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Yktk Setter +// 优酷账号登录态 +func (r *YoukuOttPlayserviceGetplayurlAPIRequest) SetYktk(_yktk string) error { + r._yktk = _yktk + r.Set("yktk", _yktk) + return nil +} + +// Yktk Getter +func (r YoukuOttPlayserviceGetplayurlAPIRequest) GetYktk() string { + return r._yktk +} +// HavanaToken Setter +// 账号登录态 +func (r *YoukuOttPlayserviceGetplayurlAPIRequest) SetHavanaToken(_havanaToken string) error { + r._havanaToken = _havanaToken + r.Set("havana_token", _havanaToken) + return nil +} + +// HavanaToken Getter +func (r YoukuOttPlayserviceGetplayurlAPIRequest) GetHavanaToken() string { + return r._havanaToken +} +// SystemInfo Setter +// 系统信息 +func (r *YoukuOttPlayserviceGetplayurlAPIRequest) SetSystemInfo(_systemInfo string) error { + r._systemInfo = _systemInfo + r.Set("system_info", _systemInfo) + return nil +} + +// SystemInfo Getter +func (r YoukuOttPlayserviceGetplayurlAPIRequest) GetSystemInfo() string { + return r._systemInfo +} +// VideoId Setter +// 视频ID +func (r *YoukuOttPlayserviceGetplayurlAPIRequest) SetVideoId(_videoId int64) error { + r._videoId = _videoId + r.Set("video_id", _videoId) + return nil +} + +// VideoId Getter +func (r YoukuOttPlayserviceGetplayurlAPIRequest) GetVideoId() int64 { + return r._videoId +} diff --git a/model/ott/YoukuOttPlayserviceGetplayurlAPIResponse.go b/model/ott/YoukuOttPlayserviceGetplayurlAPIResponse.go new file mode 100644 index 0000000000..35aaac8f3e --- /dev/null +++ b/model/ott/YoukuOttPlayserviceGetplayurlAPIResponse.go @@ -0,0 +1,27 @@ +package ott + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取播放串地址 API返回值 +youku.ott.playservice.getplayurl + +获取播放串地址服务 +*/ +type YoukuOttPlayserviceGetplayurlAPIResponse struct { + model.CommonResponse + YoukuOttPlayserviceGetplayurlAPIResponseModel +} + +// 获取播放串地址 成功返回结果 +type YoukuOttPlayserviceGetplayurlAPIResponseModel struct { + XMLName xml.Name `xml:"youku_ott_playservice_getplayurl_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PlayUrlV2Vo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ott/YoukuOttPlayserviceGetplayurlResponse.go b/model/ott/YoukuOttPlayserviceGetplayurlResponse.go deleted file mode 100644 index 25659b0236..0000000000 --- a/model/ott/YoukuOttPlayserviceGetplayurlResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ott - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取播放串地址 API返回值 -youku.ott.playservice.getplayurl - -获取播放串地址服务 -*/ -type YoukuOttPlayserviceGetplayurlAPIResponse struct { - model.CommonResponse - YoukuOttPlayserviceGetplayurlResponse -} - -// 获取播放串地址 成功返回结果 -type YoukuOttPlayserviceGetplayurlResponse struct { - XMLName xml.Name `xml:"youku_ott_playservice_getplayurl_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PlayUrlV2Vo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ott/YunosTvscreenLauncherGetAPIRequest.go b/model/ott/YunosTvscreenLauncherGetAPIRequest.go new file mode 100644 index 0000000000..9dd5358052 --- /dev/null +++ b/model/ott/YunosTvscreenLauncherGetAPIRequest.go @@ -0,0 +1,66 @@ +package ott + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +一体机桌面 API请求 +yunos.tvscreen.launcher.get + +LCTS一体机桌面后台,提供基于运营坑位适配的桌面服务 +*/ +type YunosTvscreenLauncherGetAPIRequest struct { + model.Params + // 设备属性 + _property string + // IP来源 + _ip string +} + +// 初始化YunosTvscreenLauncherGetAPIRequest对象 +func NewYunosTvscreenLauncherGetRequest() *YunosTvscreenLauncherGetAPIRequest{ + return &YunosTvscreenLauncherGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvscreenLauncherGetAPIRequest) GetApiMethodName() string { + return "yunos.tvscreen.launcher.get" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvscreenLauncherGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Property Setter +// 设备属性 +func (r *YunosTvscreenLauncherGetAPIRequest) SetProperty(_property string) error { + r._property = _property + r.Set("property", _property) + return nil +} + +// Property Getter +func (r YunosTvscreenLauncherGetAPIRequest) GetProperty() string { + return r._property +} +// Ip Setter +// IP来源 +func (r *YunosTvscreenLauncherGetAPIRequest) SetIp(_ip string) error { + r._ip = _ip + r.Set("ip", _ip) + return nil +} + +// Ip Getter +func (r YunosTvscreenLauncherGetAPIRequest) GetIp() string { + return r._ip +} diff --git a/model/ott/YunosTvscreenLauncherGetAPIResponse.go b/model/ott/YunosTvscreenLauncherGetAPIResponse.go new file mode 100644 index 0000000000..e182b47d14 --- /dev/null +++ b/model/ott/YunosTvscreenLauncherGetAPIResponse.go @@ -0,0 +1,33 @@ +package ott + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +一体机桌面 API返回值 +yunos.tvscreen.launcher.get + +LCTS一体机桌面后台,提供基于运营坑位适配的桌面服务 +*/ +type YunosTvscreenLauncherGetAPIResponse struct { + model.CommonResponse + YunosTvscreenLauncherGetAPIResponseModel +} + +// 一体机桌面 成功返回结果 +type YunosTvscreenLauncherGetAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvscreen_launcher_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // headers + Headers string `json:"headers,omitempty" xml:"headers,omitempty"` + // model + Model *LauncherDo `json:"model,omitempty" xml:"model,omitempty"` + // 状态码 + HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"` + // 业务扩展 + BizExtMap string `json:"biz_ext_map,omitempty" xml:"biz_ext_map,omitempty"` +} diff --git a/model/ott/YunosTvscreenLauncherGetResponse.go b/model/ott/YunosTvscreenLauncherGetResponse.go deleted file mode 100644 index 56625cb999..0000000000 --- a/model/ott/YunosTvscreenLauncherGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package ott - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -一体机桌面 API返回值 -yunos.tvscreen.launcher.get - -LCTS一体机桌面后台,提供基于运营坑位适配的桌面服务 -*/ -type YunosTvscreenLauncherGetAPIResponse struct { - model.CommonResponse - YunosTvscreenLauncherGetResponse -} - -// 一体机桌面 成功返回结果 -type YunosTvscreenLauncherGetResponse struct { - XMLName xml.Name `xml:"yunos_tvscreen_launcher_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // headers - Headers string `json:"headers,omitempty" xml:"headers,omitempty"` - // model - Model *LauncherDo `json:"model,omitempty" xml:"model,omitempty"` - // 状态码 - HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"` - // 业务扩展 - BizExtMap string `json:"biz_ext_map,omitempty" xml:"biz_ext_map,omitempty"` -} diff --git a/model/ottpay/YoukuOttIotDevicelistChangeAPIRequest.go b/model/ottpay/YoukuOttIotDevicelistChangeAPIRequest.go new file mode 100644 index 0000000000..2a099049f1 --- /dev/null +++ b/model/ottpay/YoukuOttIotDevicelistChangeAPIRequest.go @@ -0,0 +1,52 @@ +package ottpay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +iot设备列表变化接口 API请求 +youku.ott.iot.devicelist.change + +iot设备列表变化接口 +*/ +type YoukuOttIotDevicelistChangeAPIRequest struct { + model.Params + // 变更信息 + _changeInfo string +} + +// 初始化YoukuOttIotDevicelistChangeAPIRequest对象 +func NewYoukuOttIotDevicelistChangeRequest() *YoukuOttIotDevicelistChangeAPIRequest{ + return &YoukuOttIotDevicelistChangeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuOttIotDevicelistChangeAPIRequest) GetApiMethodName() string { + return "youku.ott.iot.devicelist.change" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuOttIotDevicelistChangeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChangeInfo Setter +// 变更信息 +func (r *YoukuOttIotDevicelistChangeAPIRequest) SetChangeInfo(_changeInfo string) error { + r._changeInfo = _changeInfo + r.Set("change_info", _changeInfo) + return nil +} + +// ChangeInfo Getter +func (r YoukuOttIotDevicelistChangeAPIRequest) GetChangeInfo() string { + return r._changeInfo +} diff --git a/model/ottpay/YoukuOttIotDevicelistChangeAPIResponse.go b/model/ottpay/YoukuOttIotDevicelistChangeAPIResponse.go new file mode 100644 index 0000000000..675ff616e2 --- /dev/null +++ b/model/ottpay/YoukuOttIotDevicelistChangeAPIResponse.go @@ -0,0 +1,29 @@ +package ottpay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +iot设备列表变化接口 API返回值 +youku.ott.iot.devicelist.change + +iot设备列表变化接口 +*/ +type YoukuOttIotDevicelistChangeAPIResponse struct { + model.CommonResponse + YoukuOttIotDevicelistChangeAPIResponseModel +} + +// iot设备列表变化接口 成功返回结果 +type YoukuOttIotDevicelistChangeAPIResponseModel struct { + XMLName xml.Name `xml:"youku_ott_iot_devicelist_change_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/ottpay/YoukuOttIotDevicelistChangeResponse.go b/model/ottpay/YoukuOttIotDevicelistChangeResponse.go deleted file mode 100644 index f9bd348ddb..0000000000 --- a/model/ottpay/YoukuOttIotDevicelistChangeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package ottpay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -iot设备列表变化接口 API返回值 -youku.ott.iot.devicelist.change - -iot设备列表变化接口 -*/ -type YoukuOttIotDevicelistChangeAPIResponse struct { - model.CommonResponse - YoukuOttIotDevicelistChangeResponse -} - -// iot设备列表变化接口 成功返回结果 -type YoukuOttIotDevicelistChangeResponse struct { - XMLName xml.Name `xml:"youku_ott_iot_devicelist_change_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/ottpay/YoukuOttIotStatusPushAPIRequest.go b/model/ottpay/YoukuOttIotStatusPushAPIRequest.go new file mode 100644 index 0000000000..6ccd9f7542 --- /dev/null +++ b/model/ottpay/YoukuOttIotStatusPushAPIRequest.go @@ -0,0 +1,52 @@ +package ottpay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +iot设备状态变化通知接口 API请求 +youku.ott.iot.status.push + +ott iot设备状态通知 +*/ +type YoukuOttIotStatusPushAPIRequest struct { + model.Params + // 变更信息 + _changeInfo string +} + +// 初始化YoukuOttIotStatusPushAPIRequest对象 +func NewYoukuOttIotStatusPushRequest() *YoukuOttIotStatusPushAPIRequest{ + return &YoukuOttIotStatusPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuOttIotStatusPushAPIRequest) GetApiMethodName() string { + return "youku.ott.iot.status.push" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuOttIotStatusPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChangeInfo Setter +// 变更信息 +func (r *YoukuOttIotStatusPushAPIRequest) SetChangeInfo(_changeInfo string) error { + r._changeInfo = _changeInfo + r.Set("change_info", _changeInfo) + return nil +} + +// ChangeInfo Getter +func (r YoukuOttIotStatusPushAPIRequest) GetChangeInfo() string { + return r._changeInfo +} diff --git a/model/ottpay/YoukuOttIotStatusPushAPIResponse.go b/model/ottpay/YoukuOttIotStatusPushAPIResponse.go new file mode 100644 index 0000000000..f3bd98701c --- /dev/null +++ b/model/ottpay/YoukuOttIotStatusPushAPIResponse.go @@ -0,0 +1,29 @@ +package ottpay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +iot设备状态变化通知接口 API返回值 +youku.ott.iot.status.push + +ott iot设备状态通知 +*/ +type YoukuOttIotStatusPushAPIResponse struct { + model.CommonResponse + YoukuOttIotStatusPushAPIResponseModel +} + +// iot设备状态变化通知接口 成功返回结果 +type YoukuOttIotStatusPushAPIResponseModel struct { + XMLName xml.Name `xml:"youku_ott_iot_status_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 成功标识 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/ottpay/YoukuOttIotStatusPushResponse.go b/model/ottpay/YoukuOttIotStatusPushResponse.go deleted file mode 100644 index 8bd52dc919..0000000000 --- a/model/ottpay/YoukuOttIotStatusPushResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package ottpay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -iot设备状态变化通知接口 API返回值 -youku.ott.iot.status.push - -ott iot设备状态通知 -*/ -type YoukuOttIotStatusPushAPIResponse struct { - model.CommonResponse - YoukuOttIotStatusPushResponse -} - -// iot设备状态变化通知接口 成功返回结果 -type YoukuOttIotStatusPushResponse struct { - XMLName xml.Name `xml:"youku_ott_iot_status_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 成功标识 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/ottpay/YoukuOttPayOrderAuthpayAPIRequest.go b/model/ottpay/YoukuOttPayOrderAuthpayAPIRequest.go new file mode 100644 index 0000000000..50dbc0d2b5 --- /dev/null +++ b/model/ottpay/YoukuOttPayOrderAuthpayAPIRequest.go @@ -0,0 +1,108 @@ +package ottpay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +委托代扣服务 API请求 +youku.ott.pay.order.authpay + +应用中心sdk连续包月委托代扣服务 +*/ +type YoukuOttPayOrderAuthpayAPIRequest struct { + model.Params + // cp用户名 + _buyer string + // 连续包月原始cp订单号 + _originalOrderNo string + // 委托扣款cp订单号 + _orderNo string + // 已配置开通连续包月的产品id + _productId string + // 回调 + _callbackUrl string +} + +// 初始化YoukuOttPayOrderAuthpayAPIRequest对象 +func NewYoukuOttPayOrderAuthpayRequest() *YoukuOttPayOrderAuthpayAPIRequest{ + return &YoukuOttPayOrderAuthpayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuOttPayOrderAuthpayAPIRequest) GetApiMethodName() string { + return "youku.ott.pay.order.authpay" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuOttPayOrderAuthpayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Buyer Setter +// cp用户名 +func (r *YoukuOttPayOrderAuthpayAPIRequest) SetBuyer(_buyer string) error { + r._buyer = _buyer + r.Set("buyer", _buyer) + return nil +} + +// Buyer Getter +func (r YoukuOttPayOrderAuthpayAPIRequest) GetBuyer() string { + return r._buyer +} +// OriginalOrderNo Setter +// 连续包月原始cp订单号 +func (r *YoukuOttPayOrderAuthpayAPIRequest) SetOriginalOrderNo(_originalOrderNo string) error { + r._originalOrderNo = _originalOrderNo + r.Set("original_order_no", _originalOrderNo) + return nil +} + +// OriginalOrderNo Getter +func (r YoukuOttPayOrderAuthpayAPIRequest) GetOriginalOrderNo() string { + return r._originalOrderNo +} +// OrderNo Setter +// 委托扣款cp订单号 +func (r *YoukuOttPayOrderAuthpayAPIRequest) SetOrderNo(_orderNo string) error { + r._orderNo = _orderNo + r.Set("order_no", _orderNo) + return nil +} + +// OrderNo Getter +func (r YoukuOttPayOrderAuthpayAPIRequest) GetOrderNo() string { + return r._orderNo +} +// ProductId Setter +// 已配置开通连续包月的产品id +func (r *YoukuOttPayOrderAuthpayAPIRequest) SetProductId(_productId string) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r YoukuOttPayOrderAuthpayAPIRequest) GetProductId() string { + return r._productId +} +// CallbackUrl Setter +// 回调 +func (r *YoukuOttPayOrderAuthpayAPIRequest) SetCallbackUrl(_callbackUrl string) error { + r._callbackUrl = _callbackUrl + r.Set("callback_url", _callbackUrl) + return nil +} + +// CallbackUrl Getter +func (r YoukuOttPayOrderAuthpayAPIRequest) GetCallbackUrl() string { + return r._callbackUrl +} diff --git a/model/ottpay/YoukuOttPayOrderAuthpayAPIResponse.go b/model/ottpay/YoukuOttPayOrderAuthpayAPIResponse.go new file mode 100644 index 0000000000..201b65b04a --- /dev/null +++ b/model/ottpay/YoukuOttPayOrderAuthpayAPIResponse.go @@ -0,0 +1,27 @@ +package ottpay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +委托代扣服务 API返回值 +youku.ott.pay.order.authpay + +应用中心sdk连续包月委托代扣服务 +*/ +type YoukuOttPayOrderAuthpayAPIResponse struct { + model.CommonResponse + YoukuOttPayOrderAuthpayAPIResponseModel +} + +// 委托代扣服务 成功返回结果 +type YoukuOttPayOrderAuthpayAPIResponseModel struct { + XMLName xml.Name `xml:"youku_ott_pay_order_authpay_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data *TvOrderResultDto `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/ottpay/YoukuOttPayOrderAuthpayResponse.go b/model/ottpay/YoukuOttPayOrderAuthpayResponse.go deleted file mode 100644 index 49849db700..0000000000 --- a/model/ottpay/YoukuOttPayOrderAuthpayResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ottpay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -委托代扣服务 API返回值 -youku.ott.pay.order.authpay - -应用中心sdk连续包月委托代扣服务 -*/ -type YoukuOttPayOrderAuthpayAPIResponse struct { - model.CommonResponse - YoukuOttPayOrderAuthpayResponse -} - -// 委托代扣服务 成功返回结果 -type YoukuOttPayOrderAuthpayResponse struct { - XMLName xml.Name `xml:"youku_ott_pay_order_authpay_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data *TvOrderResultDto `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/ottpay/YoukuOttPayOrderCreateorderAPIRequest.go b/model/ottpay/YoukuOttPayOrderCreateorderAPIRequest.go new file mode 100644 index 0000000000..062a2c1774 --- /dev/null +++ b/model/ottpay/YoukuOttPayOrderCreateorderAPIRequest.go @@ -0,0 +1,164 @@ +package ottpay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建订单 API请求 +youku.ott.pay.order.createorder + +ottpay创建订单 +*/ +type YoukuOttPayOrderCreateorderAPIRequest struct { + model.Params + // 下单账号, cp账号 + _buyer string + // 商品id + _productId string + // 商品名称 + _productName string + // cp订单号 + _orderNo string + // 价格, 单位:分 + _price string + // 回调接口 + _callbackUrl string + // 订单无关的其他参数,如埋点统计的utdid, mac地址等 + _extra string + // 订单类型,1为连续包月类型 + _orderType int64 + // 连续包月实际参数 + _realPrice string +} + +// 初始化YoukuOttPayOrderCreateorderAPIRequest对象 +func NewYoukuOttPayOrderCreateorderRequest() *YoukuOttPayOrderCreateorderAPIRequest{ + return &YoukuOttPayOrderCreateorderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuOttPayOrderCreateorderAPIRequest) GetApiMethodName() string { + return "youku.ott.pay.order.createorder" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuOttPayOrderCreateorderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Buyer Setter +// 下单账号, cp账号 +func (r *YoukuOttPayOrderCreateorderAPIRequest) SetBuyer(_buyer string) error { + r._buyer = _buyer + r.Set("buyer", _buyer) + return nil +} + +// Buyer Getter +func (r YoukuOttPayOrderCreateorderAPIRequest) GetBuyer() string { + return r._buyer +} +// ProductId Setter +// 商品id +func (r *YoukuOttPayOrderCreateorderAPIRequest) SetProductId(_productId string) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r YoukuOttPayOrderCreateorderAPIRequest) GetProductId() string { + return r._productId +} +// ProductName Setter +// 商品名称 +func (r *YoukuOttPayOrderCreateorderAPIRequest) SetProductName(_productName string) error { + r._productName = _productName + r.Set("product_name", _productName) + return nil +} + +// ProductName Getter +func (r YoukuOttPayOrderCreateorderAPIRequest) GetProductName() string { + return r._productName +} +// OrderNo Setter +// cp订单号 +func (r *YoukuOttPayOrderCreateorderAPIRequest) SetOrderNo(_orderNo string) error { + r._orderNo = _orderNo + r.Set("order_no", _orderNo) + return nil +} + +// OrderNo Getter +func (r YoukuOttPayOrderCreateorderAPIRequest) GetOrderNo() string { + return r._orderNo +} +// Price Setter +// 价格, 单位:分 +func (r *YoukuOttPayOrderCreateorderAPIRequest) SetPrice(_price string) error { + r._price = _price + r.Set("price", _price) + return nil +} + +// Price Getter +func (r YoukuOttPayOrderCreateorderAPIRequest) GetPrice() string { + return r._price +} +// CallbackUrl Setter +// 回调接口 +func (r *YoukuOttPayOrderCreateorderAPIRequest) SetCallbackUrl(_callbackUrl string) error { + r._callbackUrl = _callbackUrl + r.Set("callback_url", _callbackUrl) + return nil +} + +// CallbackUrl Getter +func (r YoukuOttPayOrderCreateorderAPIRequest) GetCallbackUrl() string { + return r._callbackUrl +} +// Extra Setter +// 订单无关的其他参数,如埋点统计的utdid, mac地址等 +func (r *YoukuOttPayOrderCreateorderAPIRequest) SetExtra(_extra string) error { + r._extra = _extra + r.Set("extra", _extra) + return nil +} + +// Extra Getter +func (r YoukuOttPayOrderCreateorderAPIRequest) GetExtra() string { + return r._extra +} +// OrderType Setter +// 订单类型,1为连续包月类型 +func (r *YoukuOttPayOrderCreateorderAPIRequest) SetOrderType(_orderType int64) error { + r._orderType = _orderType + r.Set("order_type", _orderType) + return nil +} + +// OrderType Getter +func (r YoukuOttPayOrderCreateorderAPIRequest) GetOrderType() int64 { + return r._orderType +} +// RealPrice Setter +// 连续包月实际参数 +func (r *YoukuOttPayOrderCreateorderAPIRequest) SetRealPrice(_realPrice string) error { + r._realPrice = _realPrice + r.Set("real_price", _realPrice) + return nil +} + +// RealPrice Getter +func (r YoukuOttPayOrderCreateorderAPIRequest) GetRealPrice() string { + return r._realPrice +} diff --git a/model/ottpay/YoukuOttPayOrderCreateorderAPIResponse.go b/model/ottpay/YoukuOttPayOrderCreateorderAPIResponse.go new file mode 100644 index 0000000000..fe8a99ebc8 --- /dev/null +++ b/model/ottpay/YoukuOttPayOrderCreateorderAPIResponse.go @@ -0,0 +1,27 @@ +package ottpay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建订单 API返回值 +youku.ott.pay.order.createorder + +ottpay创建订单 +*/ +type YoukuOttPayOrderCreateorderAPIResponse struct { + model.CommonResponse + YoukuOttPayOrderCreateorderAPIResponseModel +} + +// 创建订单 成功返回结果 +type YoukuOttPayOrderCreateorderAPIResponseModel struct { + XMLName xml.Name `xml:"youku_ott_pay_order_createorder_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data *TvOrderResultDto `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/ottpay/YoukuOttPayOrderCreateorderResponse.go b/model/ottpay/YoukuOttPayOrderCreateorderResponse.go deleted file mode 100644 index 98ac396e44..0000000000 --- a/model/ottpay/YoukuOttPayOrderCreateorderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ottpay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建订单 API返回值 -youku.ott.pay.order.createorder - -ottpay创建订单 -*/ -type YoukuOttPayOrderCreateorderAPIResponse struct { - model.CommonResponse - YoukuOttPayOrderCreateorderResponse -} - -// 创建订单 成功返回结果 -type YoukuOttPayOrderCreateorderResponse struct { - XMLName xml.Name `xml:"youku_ott_pay_order_createorder_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data *TvOrderResultDto `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/ottpay/YoukuOttPayOrderDeleteorderAPIRequest.go b/model/ottpay/YoukuOttPayOrderDeleteorderAPIRequest.go new file mode 100644 index 0000000000..c05b49fecc --- /dev/null +++ b/model/ottpay/YoukuOttPayOrderDeleteorderAPIRequest.go @@ -0,0 +1,150 @@ +package ottpay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +退订应用中心支付订单 API请求 +youku.ott.pay.order.deleteorder + +应用中心sdk连续包月退订接口 +*/ +type YoukuOttPayOrderDeleteorderAPIRequest struct { + model.Params + // 下单账号, cp账号 + _buyer string + // 商品id + _productId string + // 商品名称 + _productName string + // cp订单号 + _orderNo string + // 回调地址 + _callbackUrl string + // 订单无关的其他参数,如埋点统计的utdid, mac地址等 + _extra string + // 订单类型,1为连续包月类型,2为取消连续包月 + _orderType int64 + // 连续包月原始订单 + _originalOrderNo string +} + +// 初始化YoukuOttPayOrderDeleteorderAPIRequest对象 +func NewYoukuOttPayOrderDeleteorderRequest() *YoukuOttPayOrderDeleteorderAPIRequest{ + return &YoukuOttPayOrderDeleteorderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuOttPayOrderDeleteorderAPIRequest) GetApiMethodName() string { + return "youku.ott.pay.order.deleteorder" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuOttPayOrderDeleteorderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Buyer Setter +// 下单账号, cp账号 +func (r *YoukuOttPayOrderDeleteorderAPIRequest) SetBuyer(_buyer string) error { + r._buyer = _buyer + r.Set("buyer", _buyer) + return nil +} + +// Buyer Getter +func (r YoukuOttPayOrderDeleteorderAPIRequest) GetBuyer() string { + return r._buyer +} +// ProductId Setter +// 商品id +func (r *YoukuOttPayOrderDeleteorderAPIRequest) SetProductId(_productId string) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r YoukuOttPayOrderDeleteorderAPIRequest) GetProductId() string { + return r._productId +} +// ProductName Setter +// 商品名称 +func (r *YoukuOttPayOrderDeleteorderAPIRequest) SetProductName(_productName string) error { + r._productName = _productName + r.Set("product_name", _productName) + return nil +} + +// ProductName Getter +func (r YoukuOttPayOrderDeleteorderAPIRequest) GetProductName() string { + return r._productName +} +// OrderNo Setter +// cp订单号 +func (r *YoukuOttPayOrderDeleteorderAPIRequest) SetOrderNo(_orderNo string) error { + r._orderNo = _orderNo + r.Set("order_no", _orderNo) + return nil +} + +// OrderNo Getter +func (r YoukuOttPayOrderDeleteorderAPIRequest) GetOrderNo() string { + return r._orderNo +} +// CallbackUrl Setter +// 回调地址 +func (r *YoukuOttPayOrderDeleteorderAPIRequest) SetCallbackUrl(_callbackUrl string) error { + r._callbackUrl = _callbackUrl + r.Set("callback_url", _callbackUrl) + return nil +} + +// CallbackUrl Getter +func (r YoukuOttPayOrderDeleteorderAPIRequest) GetCallbackUrl() string { + return r._callbackUrl +} +// Extra Setter +// 订单无关的其他参数,如埋点统计的utdid, mac地址等 +func (r *YoukuOttPayOrderDeleteorderAPIRequest) SetExtra(_extra string) error { + r._extra = _extra + r.Set("extra", _extra) + return nil +} + +// Extra Getter +func (r YoukuOttPayOrderDeleteorderAPIRequest) GetExtra() string { + return r._extra +} +// OrderType Setter +// 订单类型,1为连续包月类型,2为取消连续包月 +func (r *YoukuOttPayOrderDeleteorderAPIRequest) SetOrderType(_orderType int64) error { + r._orderType = _orderType + r.Set("order_type", _orderType) + return nil +} + +// OrderType Getter +func (r YoukuOttPayOrderDeleteorderAPIRequest) GetOrderType() int64 { + return r._orderType +} +// OriginalOrderNo Setter +// 连续包月原始订单 +func (r *YoukuOttPayOrderDeleteorderAPIRequest) SetOriginalOrderNo(_originalOrderNo string) error { + r._originalOrderNo = _originalOrderNo + r.Set("original_order_no", _originalOrderNo) + return nil +} + +// OriginalOrderNo Getter +func (r YoukuOttPayOrderDeleteorderAPIRequest) GetOriginalOrderNo() string { + return r._originalOrderNo +} diff --git a/model/ottpay/YoukuOttPayOrderDeleteorderAPIResponse.go b/model/ottpay/YoukuOttPayOrderDeleteorderAPIResponse.go new file mode 100644 index 0000000000..834ecf578d --- /dev/null +++ b/model/ottpay/YoukuOttPayOrderDeleteorderAPIResponse.go @@ -0,0 +1,27 @@ +package ottpay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +退订应用中心支付订单 API返回值 +youku.ott.pay.order.deleteorder + +应用中心sdk连续包月退订接口 +*/ +type YoukuOttPayOrderDeleteorderAPIResponse struct { + model.CommonResponse + YoukuOttPayOrderDeleteorderAPIResponseModel +} + +// 退订应用中心支付订单 成功返回结果 +type YoukuOttPayOrderDeleteorderAPIResponseModel struct { + XMLName xml.Name `xml:"youku_ott_pay_order_deleteorder_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data *TvOrderResultDto `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/ottpay/YoukuOttPayOrderDeleteorderResponse.go b/model/ottpay/YoukuOttPayOrderDeleteorderResponse.go deleted file mode 100644 index 6c305f449f..0000000000 --- a/model/ottpay/YoukuOttPayOrderDeleteorderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ottpay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -退订应用中心支付订单 API返回值 -youku.ott.pay.order.deleteorder - -应用中心sdk连续包月退订接口 -*/ -type YoukuOttPayOrderDeleteorderAPIResponse struct { - model.CommonResponse - YoukuOttPayOrderDeleteorderResponse -} - -// 退订应用中心支付订单 成功返回结果 -type YoukuOttPayOrderDeleteorderResponse struct { - XMLName xml.Name `xml:"youku_ott_pay_order_deleteorder_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data *TvOrderResultDto `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/ottpay/YoukuOttPayOrderQueryauthstateAPIRequest.go b/model/ottpay/YoukuOttPayOrderQueryauthstateAPIRequest.go new file mode 100644 index 0000000000..4b11ee1a6f --- /dev/null +++ b/model/ottpay/YoukuOttPayOrderQueryauthstateAPIRequest.go @@ -0,0 +1,52 @@ +package ottpay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询连包签约状态 API请求 +youku.ott.pay.order.queryauthstate + +查询CP用户连包商品签约状态 +*/ +type YoukuOttPayOrderQueryauthstateAPIRequest struct { + model.Params + // 原始签约订单号 + _originalCpOrderNo string +} + +// 初始化YoukuOttPayOrderQueryauthstateAPIRequest对象 +func NewYoukuOttPayOrderQueryauthstateRequest() *YoukuOttPayOrderQueryauthstateAPIRequest{ + return &YoukuOttPayOrderQueryauthstateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuOttPayOrderQueryauthstateAPIRequest) GetApiMethodName() string { + return "youku.ott.pay.order.queryauthstate" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuOttPayOrderQueryauthstateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OriginalCpOrderNo Setter +// 原始签约订单号 +func (r *YoukuOttPayOrderQueryauthstateAPIRequest) SetOriginalCpOrderNo(_originalCpOrderNo string) error { + r._originalCpOrderNo = _originalCpOrderNo + r.Set("original_cp_order_no", _originalCpOrderNo) + return nil +} + +// OriginalCpOrderNo Getter +func (r YoukuOttPayOrderQueryauthstateAPIRequest) GetOriginalCpOrderNo() string { + return r._originalCpOrderNo +} diff --git a/model/ottpay/YoukuOttPayOrderQueryauthstateAPIResponse.go b/model/ottpay/YoukuOttPayOrderQueryauthstateAPIResponse.go new file mode 100644 index 0000000000..bca012b782 --- /dev/null +++ b/model/ottpay/YoukuOttPayOrderQueryauthstateAPIResponse.go @@ -0,0 +1,27 @@ +package ottpay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询连包签约状态 API返回值 +youku.ott.pay.order.queryauthstate + +查询CP用户连包商品签约状态 +*/ +type YoukuOttPayOrderQueryauthstateAPIResponse struct { + model.CommonResponse + YoukuOttPayOrderQueryauthstateAPIResponseModel +} + +// 查询连包签约状态 成功返回结果 +type YoukuOttPayOrderQueryauthstateAPIResponseModel struct { + XMLName xml.Name `xml:"youku_ott_pay_order_queryauthstate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ottpay/YoukuOttPayOrderQueryauthstateResponse.go b/model/ottpay/YoukuOttPayOrderQueryauthstateResponse.go deleted file mode 100644 index 3de582ceb2..0000000000 --- a/model/ottpay/YoukuOttPayOrderQueryauthstateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ottpay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询连包签约状态 API返回值 -youku.ott.pay.order.queryauthstate - -查询CP用户连包商品签约状态 -*/ -type YoukuOttPayOrderQueryauthstateAPIResponse struct { - model.CommonResponse - YoukuOttPayOrderQueryauthstateResponse -} - -// 查询连包签约状态 成功返回结果 -type YoukuOttPayOrderQueryauthstateResponse struct { - XMLName xml.Name `xml:"youku_ott_pay_order_queryauthstate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ottpay/YoukuOttPayOrderQuerycporderAPIRequest.go b/model/ottpay/YoukuOttPayOrderQuerycporderAPIRequest.go new file mode 100644 index 0000000000..bcf372e890 --- /dev/null +++ b/model/ottpay/YoukuOttPayOrderQuerycporderAPIRequest.go @@ -0,0 +1,52 @@ +package ottpay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询支付订单对应cp订单号 API请求 +youku.ott.pay.order.querycporder + +根据支付订单查询对应cp订单号 +*/ +type YoukuOttPayOrderQuerycporderAPIRequest struct { + model.Params + // 支付对应订单 + _gatewayOrder string +} + +// 初始化YoukuOttPayOrderQuerycporderAPIRequest对象 +func NewYoukuOttPayOrderQuerycporderRequest() *YoukuOttPayOrderQuerycporderAPIRequest{ + return &YoukuOttPayOrderQuerycporderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuOttPayOrderQuerycporderAPIRequest) GetApiMethodName() string { + return "youku.ott.pay.order.querycporder" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuOttPayOrderQuerycporderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GatewayOrder Setter +// 支付对应订单 +func (r *YoukuOttPayOrderQuerycporderAPIRequest) SetGatewayOrder(_gatewayOrder string) error { + r._gatewayOrder = _gatewayOrder + r.Set("gateway_order", _gatewayOrder) + return nil +} + +// GatewayOrder Getter +func (r YoukuOttPayOrderQuerycporderAPIRequest) GetGatewayOrder() string { + return r._gatewayOrder +} diff --git a/model/ottpay/YoukuOttPayOrderQuerycporderAPIResponse.go b/model/ottpay/YoukuOttPayOrderQuerycporderAPIResponse.go new file mode 100644 index 0000000000..d886706a77 --- /dev/null +++ b/model/ottpay/YoukuOttPayOrderQuerycporderAPIResponse.go @@ -0,0 +1,27 @@ +package ottpay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询支付订单对应cp订单号 API返回值 +youku.ott.pay.order.querycporder + +根据支付订单查询对应cp订单号 +*/ +type YoukuOttPayOrderQuerycporderAPIResponse struct { + model.CommonResponse + YoukuOttPayOrderQuerycporderAPIResponseModel +} + +// 查询支付订单对应cp订单号 成功返回结果 +type YoukuOttPayOrderQuerycporderAPIResponseModel struct { + XMLName xml.Name `xml:"youku_ott_pay_order_querycporder_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data *TvOrderResultDto `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/ottpay/YoukuOttPayOrderQuerycporderResponse.go b/model/ottpay/YoukuOttPayOrderQuerycporderResponse.go deleted file mode 100644 index 9a68690dcb..0000000000 --- a/model/ottpay/YoukuOttPayOrderQuerycporderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ottpay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询支付订单对应cp订单号 API返回值 -youku.ott.pay.order.querycporder - -根据支付订单查询对应cp订单号 -*/ -type YoukuOttPayOrderQuerycporderAPIResponse struct { - model.CommonResponse - YoukuOttPayOrderQuerycporderResponse -} - -// 查询支付订单对应cp订单号 成功返回结果 -type YoukuOttPayOrderQuerycporderResponse struct { - XMLName xml.Name `xml:"youku_ott_pay_order_querycporder_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data *TvOrderResultDto `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/ottpay/YoukuOttPayOrderQueryorderAPIRequest.go b/model/ottpay/YoukuOttPayOrderQueryorderAPIRequest.go new file mode 100644 index 0000000000..749ac6d7ef --- /dev/null +++ b/model/ottpay/YoukuOttPayOrderQueryorderAPIRequest.go @@ -0,0 +1,52 @@ +package ottpay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询订单 API请求 +youku.ott.pay.order.queryorder + +通过订单号查询订单信息 +*/ +type YoukuOttPayOrderQueryorderAPIRequest struct { + model.Params + // 订单号 + _orderNo string +} + +// 初始化YoukuOttPayOrderQueryorderAPIRequest对象 +func NewYoukuOttPayOrderQueryorderRequest() *YoukuOttPayOrderQueryorderAPIRequest{ + return &YoukuOttPayOrderQueryorderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuOttPayOrderQueryorderAPIRequest) GetApiMethodName() string { + return "youku.ott.pay.order.queryorder" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuOttPayOrderQueryorderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderNo Setter +// 订单号 +func (r *YoukuOttPayOrderQueryorderAPIRequest) SetOrderNo(_orderNo string) error { + r._orderNo = _orderNo + r.Set("order_no", _orderNo) + return nil +} + +// OrderNo Getter +func (r YoukuOttPayOrderQueryorderAPIRequest) GetOrderNo() string { + return r._orderNo +} diff --git a/model/ottpay/YoukuOttPayOrderQueryorderAPIResponse.go b/model/ottpay/YoukuOttPayOrderQueryorderAPIResponse.go new file mode 100644 index 0000000000..221d9cc23d --- /dev/null +++ b/model/ottpay/YoukuOttPayOrderQueryorderAPIResponse.go @@ -0,0 +1,27 @@ +package ottpay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询订单 API返回值 +youku.ott.pay.order.queryorder + +通过订单号查询订单信息 +*/ +type YoukuOttPayOrderQueryorderAPIResponse struct { + model.CommonResponse + YoukuOttPayOrderQueryorderAPIResponseModel +} + +// 查询订单 成功返回结果 +type YoukuOttPayOrderQueryorderAPIResponseModel struct { + XMLName xml.Name `xml:"youku_ott_pay_order_queryorder_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // status + Data *TvOrderQueryResultDto `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/ottpay/YoukuOttPayOrderQueryorderResponse.go b/model/ottpay/YoukuOttPayOrderQueryorderResponse.go deleted file mode 100644 index e3b8a0b40b..0000000000 --- a/model/ottpay/YoukuOttPayOrderQueryorderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ottpay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询订单 API返回值 -youku.ott.pay.order.queryorder - -通过订单号查询订单信息 -*/ -type YoukuOttPayOrderQueryorderAPIResponse struct { - model.CommonResponse - YoukuOttPayOrderQueryorderResponse -} - -// 查询订单 成功返回结果 -type YoukuOttPayOrderQueryorderResponse struct { - XMLName xml.Name `xml:"youku_ott_pay_order_queryorder_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // status - Data *TvOrderQueryResultDto `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/ottpay/YoukuOttPayOrderQueryorderbycpAPIRequest.go b/model/ottpay/YoukuOttPayOrderQueryorderbycpAPIRequest.go new file mode 100644 index 0000000000..404d4fc1b7 --- /dev/null +++ b/model/ottpay/YoukuOttPayOrderQueryorderbycpAPIRequest.go @@ -0,0 +1,52 @@ +package ottpay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单查询接口(cp订单号查询) API请求 +youku.ott.pay.order.queryorderbycp + +给商户服务端查询订单状态 +*/ +type YoukuOttPayOrderQueryorderbycpAPIRequest struct { + model.Params + // cp订单号 + _cpOrderNo string +} + +// 初始化YoukuOttPayOrderQueryorderbycpAPIRequest对象 +func NewYoukuOttPayOrderQueryorderbycpRequest() *YoukuOttPayOrderQueryorderbycpAPIRequest{ + return &YoukuOttPayOrderQueryorderbycpAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuOttPayOrderQueryorderbycpAPIRequest) GetApiMethodName() string { + return "youku.ott.pay.order.queryorderbycp" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuOttPayOrderQueryorderbycpAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CpOrderNo Setter +// cp订单号 +func (r *YoukuOttPayOrderQueryorderbycpAPIRequest) SetCpOrderNo(_cpOrderNo string) error { + r._cpOrderNo = _cpOrderNo + r.Set("cp_order_no", _cpOrderNo) + return nil +} + +// CpOrderNo Getter +func (r YoukuOttPayOrderQueryorderbycpAPIRequest) GetCpOrderNo() string { + return r._cpOrderNo +} diff --git a/model/ottpay/YoukuOttPayOrderQueryorderbycpAPIResponse.go b/model/ottpay/YoukuOttPayOrderQueryorderbycpAPIResponse.go new file mode 100644 index 0000000000..d15d4585f0 --- /dev/null +++ b/model/ottpay/YoukuOttPayOrderQueryorderbycpAPIResponse.go @@ -0,0 +1,27 @@ +package ottpay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单查询接口(cp订单号查询) API返回值 +youku.ott.pay.order.queryorderbycp + +给商户服务端查询订单状态 +*/ +type YoukuOttPayOrderQueryorderbycpAPIResponse struct { + model.CommonResponse + YoukuOttPayOrderQueryorderbycpAPIResponseModel +} + +// 订单查询接口(cp订单号查询) 成功返回结果 +type YoukuOttPayOrderQueryorderbycpAPIResponseModel struct { + XMLName xml.Name `xml:"youku_ott_pay_order_queryorderbycp_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data *TvOrderQueryResultDto `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/ottpay/YoukuOttPayOrderQueryorderbycpResponse.go b/model/ottpay/YoukuOttPayOrderQueryorderbycpResponse.go deleted file mode 100644 index 9904a316cf..0000000000 --- a/model/ottpay/YoukuOttPayOrderQueryorderbycpResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ottpay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单查询接口(cp订单号查询) API返回值 -youku.ott.pay.order.queryorderbycp - -给商户服务端查询订单状态 -*/ -type YoukuOttPayOrderQueryorderbycpAPIResponse struct { - model.CommonResponse - YoukuOttPayOrderQueryorderbycpResponse -} - -// 订单查询接口(cp订单号查询) 成功返回结果 -type YoukuOttPayOrderQueryorderbycpResponse struct { - XMLName xml.Name `xml:"youku_ott_pay_order_queryorderbycp_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data *TvOrderQueryResultDto `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/oversea/AlibabaOverseaExchagerateGetAPIRequest.go b/model/oversea/AlibabaOverseaExchagerateGetAPIRequest.go new file mode 100644 index 0000000000..0eab35b624 --- /dev/null +++ b/model/oversea/AlibabaOverseaExchagerateGetAPIRequest.go @@ -0,0 +1,80 @@ +package oversea + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +汇率信息获取 API请求 +alibaba.oversea.exchagerate.get + +提供外部汇率查询接口 +*/ +type AlibabaOverseaExchagerateGetAPIRequest struct { + model.Params + // 业务类型 + _bizCode string + // 原始币种 + _baseCode string + // 目标币种 + _targetCode string +} + +// 初始化AlibabaOverseaExchagerateGetAPIRequest对象 +func NewAlibabaOverseaExchagerateGetRequest() *AlibabaOverseaExchagerateGetAPIRequest{ + return &AlibabaOverseaExchagerateGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaOverseaExchagerateGetAPIRequest) GetApiMethodName() string { + return "alibaba.oversea.exchagerate.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaOverseaExchagerateGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizCode Setter +// 业务类型 +func (r *AlibabaOverseaExchagerateGetAPIRequest) SetBizCode(_bizCode string) error { + r._bizCode = _bizCode + r.Set("biz_code", _bizCode) + return nil +} + +// BizCode Getter +func (r AlibabaOverseaExchagerateGetAPIRequest) GetBizCode() string { + return r._bizCode +} +// BaseCode Setter +// 原始币种 +func (r *AlibabaOverseaExchagerateGetAPIRequest) SetBaseCode(_baseCode string) error { + r._baseCode = _baseCode + r.Set("base_code", _baseCode) + return nil +} + +// BaseCode Getter +func (r AlibabaOverseaExchagerateGetAPIRequest) GetBaseCode() string { + return r._baseCode +} +// TargetCode Setter +// 目标币种 +func (r *AlibabaOverseaExchagerateGetAPIRequest) SetTargetCode(_targetCode string) error { + r._targetCode = _targetCode + r.Set("target_code", _targetCode) + return nil +} + +// TargetCode Getter +func (r AlibabaOverseaExchagerateGetAPIRequest) GetTargetCode() string { + return r._targetCode +} diff --git a/model/oversea/AlibabaOverseaExchagerateGetAPIResponse.go b/model/oversea/AlibabaOverseaExchagerateGetAPIResponse.go new file mode 100644 index 0000000000..65a8ca0709 --- /dev/null +++ b/model/oversea/AlibabaOverseaExchagerateGetAPIResponse.go @@ -0,0 +1,27 @@ +package oversea + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +汇率信息获取 API返回值 +alibaba.oversea.exchagerate.get + +提供外部汇率查询接口 +*/ +type AlibabaOverseaExchagerateGetAPIResponse struct { + model.CommonResponse + AlibabaOverseaExchagerateGetAPIResponseModel +} + +// 汇率信息获取 成功返回结果 +type AlibabaOverseaExchagerateGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_oversea_exchagerate_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果描述 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/oversea/AlibabaOverseaExchagerateGetResponse.go b/model/oversea/AlibabaOverseaExchagerateGetResponse.go deleted file mode 100644 index 24f45f1525..0000000000 --- a/model/oversea/AlibabaOverseaExchagerateGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package oversea - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -汇率信息获取 API返回值 -alibaba.oversea.exchagerate.get - -提供外部汇率查询接口 -*/ -type AlibabaOverseaExchagerateGetAPIResponse struct { - model.CommonResponse - AlibabaOverseaExchagerateGetResponse -} - -// 汇率信息获取 成功返回结果 -type AlibabaOverseaExchagerateGetResponse struct { - XMLName xml.Name `xml:"alibaba_oversea_exchagerate_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果描述 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/oversea/AlibabaOverseaTranslateGetAPIRequest.go b/model/oversea/AlibabaOverseaTranslateGetAPIRequest.go new file mode 100644 index 0000000000..b0864f45c9 --- /dev/null +++ b/model/oversea/AlibabaOverseaTranslateGetAPIRequest.go @@ -0,0 +1,80 @@ +package oversea + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取文本翻译信息 API请求 +alibaba.oversea.translate.get + +根据传入的文本信息,获取其目标语言的翻译结果 +*/ +type AlibabaOverseaTranslateGetAPIRequest struct { + model.Params + // 待翻译文本 + _text string + // 源语种英文 + _sourceLang string + // 目标语种中文 + _targetLang string +} + +// 初始化AlibabaOverseaTranslateGetAPIRequest对象 +func NewAlibabaOverseaTranslateGetRequest() *AlibabaOverseaTranslateGetAPIRequest{ + return &AlibabaOverseaTranslateGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaOverseaTranslateGetAPIRequest) GetApiMethodName() string { + return "alibaba.oversea.translate.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaOverseaTranslateGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Text Setter +// 待翻译文本 +func (r *AlibabaOverseaTranslateGetAPIRequest) SetText(_text string) error { + r._text = _text + r.Set("text", _text) + return nil +} + +// Text Getter +func (r AlibabaOverseaTranslateGetAPIRequest) GetText() string { + return r._text +} +// SourceLang Setter +// 源语种英文 +func (r *AlibabaOverseaTranslateGetAPIRequest) SetSourceLang(_sourceLang string) error { + r._sourceLang = _sourceLang + r.Set("source_lang", _sourceLang) + return nil +} + +// SourceLang Getter +func (r AlibabaOverseaTranslateGetAPIRequest) GetSourceLang() string { + return r._sourceLang +} +// TargetLang Setter +// 目标语种中文 +func (r *AlibabaOverseaTranslateGetAPIRequest) SetTargetLang(_targetLang string) error { + r._targetLang = _targetLang + r.Set("target_lang", _targetLang) + return nil +} + +// TargetLang Getter +func (r AlibabaOverseaTranslateGetAPIRequest) GetTargetLang() string { + return r._targetLang +} diff --git a/model/oversea/AlibabaOverseaTranslateGetAPIResponse.go b/model/oversea/AlibabaOverseaTranslateGetAPIResponse.go new file mode 100644 index 0000000000..3335031f65 --- /dev/null +++ b/model/oversea/AlibabaOverseaTranslateGetAPIResponse.go @@ -0,0 +1,27 @@ +package oversea + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取文本翻译信息 API返回值 +alibaba.oversea.translate.get + +根据传入的文本信息,获取其目标语言的翻译结果 +*/ +type AlibabaOverseaTranslateGetAPIResponse struct { + model.CommonResponse + AlibabaOverseaTranslateGetAPIResponseModel +} + +// 获取文本翻译信息 成功返回结果 +type AlibabaOverseaTranslateGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_oversea_translate_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *SimpleTransResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/oversea/AlibabaOverseaTranslateGetResponse.go b/model/oversea/AlibabaOverseaTranslateGetResponse.go deleted file mode 100644 index f99e135664..0000000000 --- a/model/oversea/AlibabaOverseaTranslateGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package oversea - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取文本翻译信息 API返回值 -alibaba.oversea.translate.get - -根据传入的文本信息,获取其目标语言的翻译结果 -*/ -type AlibabaOverseaTranslateGetAPIResponse struct { - model.CommonResponse - AlibabaOverseaTranslateGetResponse -} - -// 获取文本翻译信息 成功返回结果 -type AlibabaOverseaTranslateGetResponse struct { - XMLName xml.Name `xml:"alibaba_oversea_translate_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *SimpleTransResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/paimai/TaobaoPaimaiItempropsGetAPIRequest.go b/model/paimai/TaobaoPaimaiItempropsGetAPIRequest.go new file mode 100644 index 0000000000..74b18a73e4 --- /dev/null +++ b/model/paimai/TaobaoPaimaiItempropsGetAPIRequest.go @@ -0,0 +1,234 @@ +package paimai + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +拍卖相关类目属性 API请求 +taobao.paimai.itemprops.get + +读取拍卖相关类目属性 +*/ +type TaobaoPaimaiItempropsGetAPIRequest struct { + model.Params + // 获取类目的类型:1代表集市、2代表天猫 + _type int64 + // 是否商品属性,这个属性只能放于发布商品时使用。可选值:true(是),false(否) + _isItemProp bool + // 在is_enum_prop是true的前提下,是否是卖家可以自行输入的属性(注:如果is_enum_prop返回false,该参数统一返回false)。可选值:true(是),false(否) (删除的属性不会匹配和返回这个条件) + _isInputProp bool + // 是否枚举属性。可选值:true(是),false(否) (删除的属性不会匹配和返回这个条件)。如果返回true,属性值是下拉框选择输入,如果返回false,属性值是用户自行手工输入。 + _isEnumProp bool + // 属性id (取类目属性时,传pid,不用同时传PID和parent_pid) + _pid int64 + // 叶子类目ID,如果只传cid,则只返回一级属性,通过taobao.itemcats.get获得叶子类目ID + _cid int64 + // 属性的Key,支持多条,以“,”分隔 + _attrKeys []string + // 类目子属性路径,由该子属性上层的类目属性和类目属性值组成,格式pid:vid;pid:vid.取类目子属性需要传child_path,cid + _childPath string + // 父属性ID + _parentPid int64 + // 是否销售属性。可选值:true(是),false(否) + _isSaleProp bool + // 增量时间戳。格式:yyyy-MM-dd HH:mm:ss假如传2005-01-01 00:00:00,则取所有的属性和子属性ID(如果传了pid会忽略datetime) + _datetime string + // 是否颜色属性。可选值:true(是),false(否) (删除的属性不会匹配和返回这个条件) + _isColorProp bool + // 是否关键属性。可选值:true(是),false(否) + _isKeyProp bool + // 需要返回的字段列表,见:ItemProp,默认返回:pid, name, must, multi, prop_values + _fields []string +} + +// 初始化TaobaoPaimaiItempropsGetAPIRequest对象 +func NewTaobaoPaimaiItempropsGetRequest() *TaobaoPaimaiItempropsGetAPIRequest{ + return &TaobaoPaimaiItempropsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPaimaiItempropsGetAPIRequest) GetApiMethodName() string { + return "taobao.paimai.itemprops.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPaimaiItempropsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// 获取类目的类型:1代表集市、2代表天猫 +func (r *TaobaoPaimaiItempropsGetAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoPaimaiItempropsGetAPIRequest) GetType() int64 { + return r._type +} +// IsItemProp Setter +// 是否商品属性,这个属性只能放于发布商品时使用。可选值:true(是),false(否) +func (r *TaobaoPaimaiItempropsGetAPIRequest) SetIsItemProp(_isItemProp bool) error { + r._isItemProp = _isItemProp + r.Set("is_item_prop", _isItemProp) + return nil +} + +// IsItemProp Getter +func (r TaobaoPaimaiItempropsGetAPIRequest) GetIsItemProp() bool { + return r._isItemProp +} +// IsInputProp Setter +// 在is_enum_prop是true的前提下,是否是卖家可以自行输入的属性(注:如果is_enum_prop返回false,该参数统一返回false)。可选值:true(是),false(否) (删除的属性不会匹配和返回这个条件) +func (r *TaobaoPaimaiItempropsGetAPIRequest) SetIsInputProp(_isInputProp bool) error { + r._isInputProp = _isInputProp + r.Set("is_input_prop", _isInputProp) + return nil +} + +// IsInputProp Getter +func (r TaobaoPaimaiItempropsGetAPIRequest) GetIsInputProp() bool { + return r._isInputProp +} +// IsEnumProp Setter +// 是否枚举属性。可选值:true(是),false(否) (删除的属性不会匹配和返回这个条件)。如果返回true,属性值是下拉框选择输入,如果返回false,属性值是用户自行手工输入。 +func (r *TaobaoPaimaiItempropsGetAPIRequest) SetIsEnumProp(_isEnumProp bool) error { + r._isEnumProp = _isEnumProp + r.Set("is_enum_prop", _isEnumProp) + return nil +} + +// IsEnumProp Getter +func (r TaobaoPaimaiItempropsGetAPIRequest) GetIsEnumProp() bool { + return r._isEnumProp +} +// Pid Setter +// 属性id (取类目属性时,传pid,不用同时传PID和parent_pid) +func (r *TaobaoPaimaiItempropsGetAPIRequest) SetPid(_pid int64) error { + r._pid = _pid + r.Set("pid", _pid) + return nil +} + +// Pid Getter +func (r TaobaoPaimaiItempropsGetAPIRequest) GetPid() int64 { + return r._pid +} +// Cid Setter +// 叶子类目ID,如果只传cid,则只返回一级属性,通过taobao.itemcats.get获得叶子类目ID +func (r *TaobaoPaimaiItempropsGetAPIRequest) SetCid(_cid int64) error { + r._cid = _cid + r.Set("cid", _cid) + return nil +} + +// Cid Getter +func (r TaobaoPaimaiItempropsGetAPIRequest) GetCid() int64 { + return r._cid +} +// AttrKeys Setter +// 属性的Key,支持多条,以“,”分隔 +func (r *TaobaoPaimaiItempropsGetAPIRequest) SetAttrKeys(_attrKeys []string) error { + r._attrKeys = _attrKeys + r.Set("attr_keys", _attrKeys) + return nil +} + +// AttrKeys Getter +func (r TaobaoPaimaiItempropsGetAPIRequest) GetAttrKeys() []string { + return r._attrKeys +} +// ChildPath Setter +// 类目子属性路径,由该子属性上层的类目属性和类目属性值组成,格式pid:vid;pid:vid.取类目子属性需要传child_path,cid +func (r *TaobaoPaimaiItempropsGetAPIRequest) SetChildPath(_childPath string) error { + r._childPath = _childPath + r.Set("child_path", _childPath) + return nil +} + +// ChildPath Getter +func (r TaobaoPaimaiItempropsGetAPIRequest) GetChildPath() string { + return r._childPath +} +// ParentPid Setter +// 父属性ID +func (r *TaobaoPaimaiItempropsGetAPIRequest) SetParentPid(_parentPid int64) error { + r._parentPid = _parentPid + r.Set("parent_pid", _parentPid) + return nil +} + +// ParentPid Getter +func (r TaobaoPaimaiItempropsGetAPIRequest) GetParentPid() int64 { + return r._parentPid +} +// IsSaleProp Setter +// 是否销售属性。可选值:true(是),false(否) +func (r *TaobaoPaimaiItempropsGetAPIRequest) SetIsSaleProp(_isSaleProp bool) error { + r._isSaleProp = _isSaleProp + r.Set("is_sale_prop", _isSaleProp) + return nil +} + +// IsSaleProp Getter +func (r TaobaoPaimaiItempropsGetAPIRequest) GetIsSaleProp() bool { + return r._isSaleProp +} +// Datetime Setter +// 增量时间戳。格式:yyyy-MM-dd HH:mm:ss假如传2005-01-01 00:00:00,则取所有的属性和子属性ID(如果传了pid会忽略datetime) +func (r *TaobaoPaimaiItempropsGetAPIRequest) SetDatetime(_datetime string) error { + r._datetime = _datetime + r.Set("datetime", _datetime) + return nil +} + +// Datetime Getter +func (r TaobaoPaimaiItempropsGetAPIRequest) GetDatetime() string { + return r._datetime +} +// IsColorProp Setter +// 是否颜色属性。可选值:true(是),false(否) (删除的属性不会匹配和返回这个条件) +func (r *TaobaoPaimaiItempropsGetAPIRequest) SetIsColorProp(_isColorProp bool) error { + r._isColorProp = _isColorProp + r.Set("is_color_prop", _isColorProp) + return nil +} + +// IsColorProp Getter +func (r TaobaoPaimaiItempropsGetAPIRequest) GetIsColorProp() bool { + return r._isColorProp +} +// IsKeyProp Setter +// 是否关键属性。可选值:true(是),false(否) +func (r *TaobaoPaimaiItempropsGetAPIRequest) SetIsKeyProp(_isKeyProp bool) error { + r._isKeyProp = _isKeyProp + r.Set("is_key_prop", _isKeyProp) + return nil +} + +// IsKeyProp Getter +func (r TaobaoPaimaiItempropsGetAPIRequest) GetIsKeyProp() bool { + return r._isKeyProp +} +// Fields Setter +// 需要返回的字段列表,见:ItemProp,默认返回:pid, name, must, multi, prop_values +func (r *TaobaoPaimaiItempropsGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoPaimaiItempropsGetAPIRequest) GetFields() []string { + return r._fields +} diff --git a/model/paimai/TaobaoPaimaiItempropsGetAPIResponse.go b/model/paimai/TaobaoPaimaiItempropsGetAPIResponse.go new file mode 100644 index 0000000000..9509ddc108 --- /dev/null +++ b/model/paimai/TaobaoPaimaiItempropsGetAPIResponse.go @@ -0,0 +1,29 @@ +package paimai + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +拍卖相关类目属性 API返回值 +taobao.paimai.itemprops.get + +读取拍卖相关类目属性 +*/ +type TaobaoPaimaiItempropsGetAPIResponse struct { + model.CommonResponse + TaobaoPaimaiItempropsGetAPIResponseModel +} + +// 拍卖相关类目属性 成功返回结果 +type TaobaoPaimaiItempropsGetAPIResponseModel struct { + XMLName xml.Name `xml:"paimai_itemprops_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 类目属性信息(如果是取全量或者增量,不包括属性值),根据fields传入的参数返回相应的结果 + ItemProps []ItemProp `json:"item_props,omitempty" xml:"item_props>item_prop,omitempty"` + // lastModified + LastModified string `json:"last_modified,omitempty" xml:"last_modified,omitempty"` +} diff --git a/model/paimai/TaobaoPaimaiItempropsGetResponse.go b/model/paimai/TaobaoPaimaiItempropsGetResponse.go deleted file mode 100644 index cf69bcc723..0000000000 --- a/model/paimai/TaobaoPaimaiItempropsGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package paimai - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -拍卖相关类目属性 API返回值 -taobao.paimai.itemprops.get - -读取拍卖相关类目属性 -*/ -type TaobaoPaimaiItempropsGetAPIResponse struct { - model.CommonResponse - TaobaoPaimaiItempropsGetResponse -} - -// 拍卖相关类目属性 成功返回结果 -type TaobaoPaimaiItempropsGetResponse struct { - XMLName xml.Name `xml:"paimai_itemprops_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 类目属性信息(如果是取全量或者增量,不包括属性值),根据fields传入的参数返回相应的结果 - ItemProps []ItemProp `json:"item_props,omitempty" xml:"item_props>item_prop,omitempty"` - // lastModified - LastModified string `json:"last_modified,omitempty" xml:"last_modified,omitempty"` -} diff --git a/model/pentraprism/TaobaoPentaprismTaskQueryitemAPIRequest.go b/model/pentraprism/TaobaoPentaprismTaskQueryitemAPIRequest.go new file mode 100644 index 0000000000..463aadd824 --- /dev/null +++ b/model/pentraprism/TaobaoPentaprismTaskQueryitemAPIRequest.go @@ -0,0 +1,52 @@ +package pentraprism + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询任务当前进度 API请求 +taobao.pentaprism.task.queryitem + +外网用户查询五棱镜任务系统当前进度 +*/ +type TaobaoPentaprismTaskQueryitemAPIRequest struct { + model.Params + // TOP接口标准入参 + _openPo *OpenTaskPo +} + +// 初始化TaobaoPentaprismTaskQueryitemAPIRequest对象 +func NewTaobaoPentaprismTaskQueryitemRequest() *TaobaoPentaprismTaskQueryitemAPIRequest{ + return &TaobaoPentaprismTaskQueryitemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPentaprismTaskQueryitemAPIRequest) GetApiMethodName() string { + return "taobao.pentaprism.task.queryitem" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPentaprismTaskQueryitemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenPo Setter +// TOP接口标准入参 +func (r *TaobaoPentaprismTaskQueryitemAPIRequest) SetOpenPo(_openPo *OpenTaskPo) error { + r._openPo = _openPo + r.Set("open_po", _openPo) + return nil +} + +// OpenPo Getter +func (r TaobaoPentaprismTaskQueryitemAPIRequest) GetOpenPo() *OpenTaskPo { + return r._openPo +} diff --git a/model/pentraprism/TaobaoPentaprismTaskQueryitemAPIResponse.go b/model/pentraprism/TaobaoPentaprismTaskQueryitemAPIResponse.go new file mode 100644 index 0000000000..06aadd5b0c --- /dev/null +++ b/model/pentraprism/TaobaoPentaprismTaskQueryitemAPIResponse.go @@ -0,0 +1,27 @@ +package pentraprism + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询任务当前进度 API返回值 +taobao.pentaprism.task.queryitem + +外网用户查询五棱镜任务系统当前进度 +*/ +type TaobaoPentaprismTaskQueryitemAPIResponse struct { + model.CommonResponse + TaobaoPentaprismTaskQueryitemAPIResponseModel +} + +// 查询任务当前进度 成功返回结果 +type TaobaoPentaprismTaskQueryitemAPIResponseModel struct { + XMLName xml.Name `xml:"pentaprism_task_queryitem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // TOP接口标准出参 + Result *TaskResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/pentraprism/TaobaoPentaprismTaskQueryitemResponse.go b/model/pentraprism/TaobaoPentaprismTaskQueryitemResponse.go deleted file mode 100644 index ca8b282907..0000000000 --- a/model/pentraprism/TaobaoPentaprismTaskQueryitemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package pentraprism - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询任务当前进度 API返回值 -taobao.pentaprism.task.queryitem - -外网用户查询五棱镜任务系统当前进度 -*/ -type TaobaoPentaprismTaskQueryitemAPIResponse struct { - model.CommonResponse - TaobaoPentaprismTaskQueryitemResponse -} - -// 查询任务当前进度 成功返回结果 -type TaobaoPentaprismTaskQueryitemResponse struct { - XMLName xml.Name `xml:"pentaprism_task_queryitem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // TOP接口标准出参 - Result *TaskResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/pentraprism/TaobaoPentaprismTaskTriggerAPIRequest.go b/model/pentraprism/TaobaoPentaprismTaskTriggerAPIRequest.go new file mode 100644 index 0000000000..4837e383e6 --- /dev/null +++ b/model/pentraprism/TaobaoPentaprismTaskTriggerAPIRequest.go @@ -0,0 +1,52 @@ +package pentraprism + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推进单条任务进度 API请求 +taobao.pentaprism.task.trigger + +外网用户推进单条五棱镜任务进度 +*/ +type TaobaoPentaprismTaskTriggerAPIRequest struct { + model.Params + // TOP接口标准入参 + _openPo *OpenTaskPo +} + +// 初始化TaobaoPentaprismTaskTriggerAPIRequest对象 +func NewTaobaoPentaprismTaskTriggerRequest() *TaobaoPentaprismTaskTriggerAPIRequest{ + return &TaobaoPentaprismTaskTriggerAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPentaprismTaskTriggerAPIRequest) GetApiMethodName() string { + return "taobao.pentaprism.task.trigger" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPentaprismTaskTriggerAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenPo Setter +// TOP接口标准入参 +func (r *TaobaoPentaprismTaskTriggerAPIRequest) SetOpenPo(_openPo *OpenTaskPo) error { + r._openPo = _openPo + r.Set("open_po", _openPo) + return nil +} + +// OpenPo Getter +func (r TaobaoPentaprismTaskTriggerAPIRequest) GetOpenPo() *OpenTaskPo { + return r._openPo +} diff --git a/model/pentraprism/TaobaoPentaprismTaskTriggerAPIResponse.go b/model/pentraprism/TaobaoPentaprismTaskTriggerAPIResponse.go new file mode 100644 index 0000000000..b74a57f4c2 --- /dev/null +++ b/model/pentraprism/TaobaoPentaprismTaskTriggerAPIResponse.go @@ -0,0 +1,27 @@ +package pentraprism + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推进单条任务进度 API返回值 +taobao.pentaprism.task.trigger + +外网用户推进单条五棱镜任务进度 +*/ +type TaobaoPentaprismTaskTriggerAPIResponse struct { + model.CommonResponse + TaobaoPentaprismTaskTriggerAPIResponseModel +} + +// 推进单条任务进度 成功返回结果 +type TaobaoPentaprismTaskTriggerAPIResponseModel struct { + XMLName xml.Name `xml:"pentaprism_task_trigger_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // TOP接口标准出参 + Result *TaskResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/pentraprism/TaobaoPentaprismTaskTriggerResponse.go b/model/pentraprism/TaobaoPentaprismTaskTriggerResponse.go deleted file mode 100644 index 1c7fc007ae..0000000000 --- a/model/pentraprism/TaobaoPentaprismTaskTriggerResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package pentraprism - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推进单条任务进度 API返回值 -taobao.pentaprism.task.trigger - -外网用户推进单条五棱镜任务进度 -*/ -type TaobaoPentaprismTaskTriggerAPIResponse struct { - model.CommonResponse - TaobaoPentaprismTaskTriggerResponse -} - -// 推进单条任务进度 成功返回结果 -type TaobaoPentaprismTaskTriggerResponse struct { - XMLName xml.Name `xml:"pentaprism_task_trigger_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // TOP接口标准出参 - Result *TaskResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/perfect/AlibabaPerfectPerformanceItemQueryAPIRequest.go b/model/perfect/AlibabaPerfectPerformanceItemQueryAPIRequest.go new file mode 100644 index 0000000000..f4a4b2cd9b --- /dev/null +++ b/model/perfect/AlibabaPerfectPerformanceItemQueryAPIRequest.go @@ -0,0 +1,52 @@ +package perfect + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品完美履约信息查询 API请求 +alibaba.perfect.performance.item.query + +同城零售商品完美履约信息查询 +*/ +type AlibabaPerfectPerformanceItemQueryAPIRequest struct { + model.Params + // 查询入参 + _itemPerfectPerformanceQueryReq *ItemPerfectPerformanceQueryReq +} + +// 初始化AlibabaPerfectPerformanceItemQueryAPIRequest对象 +func NewAlibabaPerfectPerformanceItemQueryRequest() *AlibabaPerfectPerformanceItemQueryAPIRequest{ + return &AlibabaPerfectPerformanceItemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPerfectPerformanceItemQueryAPIRequest) GetApiMethodName() string { + return "alibaba.perfect.performance.item.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPerfectPerformanceItemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemPerfectPerformanceQueryReq Setter +// 查询入参 +func (r *AlibabaPerfectPerformanceItemQueryAPIRequest) SetItemPerfectPerformanceQueryReq(_itemPerfectPerformanceQueryReq *ItemPerfectPerformanceQueryReq) error { + r._itemPerfectPerformanceQueryReq = _itemPerfectPerformanceQueryReq + r.Set("item_perfect_performance_query_req", _itemPerfectPerformanceQueryReq) + return nil +} + +// ItemPerfectPerformanceQueryReq Getter +func (r AlibabaPerfectPerformanceItemQueryAPIRequest) GetItemPerfectPerformanceQueryReq() *ItemPerfectPerformanceQueryReq { + return r._itemPerfectPerformanceQueryReq +} diff --git a/model/perfect/AlibabaPerfectPerformanceItemQueryAPIResponse.go b/model/perfect/AlibabaPerfectPerformanceItemQueryAPIResponse.go new file mode 100644 index 0000000000..e66472dc05 --- /dev/null +++ b/model/perfect/AlibabaPerfectPerformanceItemQueryAPIResponse.go @@ -0,0 +1,27 @@ +package perfect + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品完美履约信息查询 API返回值 +alibaba.perfect.performance.item.query + +同城零售商品完美履约信息查询 +*/ +type AlibabaPerfectPerformanceItemQueryAPIResponse struct { + model.CommonResponse + AlibabaPerfectPerformanceItemQueryAPIResponseModel +} + +// 商品完美履约信息查询 成功返回结果 +type AlibabaPerfectPerformanceItemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_perfect_performance_item_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的数据实体 + Data *ItemPerfectPerformanceQueryResp `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/perfect/AlibabaPerfectPerformanceItemQueryResponse.go b/model/perfect/AlibabaPerfectPerformanceItemQueryResponse.go deleted file mode 100644 index 84dcebb9b6..0000000000 --- a/model/perfect/AlibabaPerfectPerformanceItemQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package perfect - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品完美履约信息查询 API返回值 -alibaba.perfect.performance.item.query - -同城零售商品完美履约信息查询 -*/ -type AlibabaPerfectPerformanceItemQueryAPIResponse struct { - model.CommonResponse - AlibabaPerfectPerformanceItemQueryResponse -} - -// 商品完美履约信息查询 成功返回结果 -type AlibabaPerfectPerformanceItemQueryResponse struct { - XMLName xml.Name `xml:"alibaba_perfect_performance_item_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的数据实体 - Data *ItemPerfectPerformanceQueryResp `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/perfect/AlibabaPerfectPerformanceLocalitemEditAPIRequest.go b/model/perfect/AlibabaPerfectPerformanceLocalitemEditAPIRequest.go new file mode 100644 index 0000000000..bc4c761061 --- /dev/null +++ b/model/perfect/AlibabaPerfectPerformanceLocalitemEditAPIRequest.go @@ -0,0 +1,52 @@ +package perfect + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同城购定制发品编辑 API请求 +alibaba.perfect.performance.localitem.edit + +同城购业务定制化发品接口,同城购业务线专用 +*/ +type AlibabaPerfectPerformanceLocalitemEditAPIRequest struct { + model.Params + // 请求参数 + _paramPerfectPerformanceItemPublishReq *PerfectPerformanceItemPublishReq +} + +// 初始化AlibabaPerfectPerformanceLocalitemEditAPIRequest对象 +func NewAlibabaPerfectPerformanceLocalitemEditRequest() *AlibabaPerfectPerformanceLocalitemEditAPIRequest{ + return &AlibabaPerfectPerformanceLocalitemEditAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPerfectPerformanceLocalitemEditAPIRequest) GetApiMethodName() string { + return "alibaba.perfect.performance.localitem.edit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPerfectPerformanceLocalitemEditAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamPerfectPerformanceItemPublishReq Setter +// 请求参数 +func (r *AlibabaPerfectPerformanceLocalitemEditAPIRequest) SetParamPerfectPerformanceItemPublishReq(_paramPerfectPerformanceItemPublishReq *PerfectPerformanceItemPublishReq) error { + r._paramPerfectPerformanceItemPublishReq = _paramPerfectPerformanceItemPublishReq + r.Set("param_perfect_performance_item_publish_req", _paramPerfectPerformanceItemPublishReq) + return nil +} + +// ParamPerfectPerformanceItemPublishReq Getter +func (r AlibabaPerfectPerformanceLocalitemEditAPIRequest) GetParamPerfectPerformanceItemPublishReq() *PerfectPerformanceItemPublishReq { + return r._paramPerfectPerformanceItemPublishReq +} diff --git a/model/perfect/AlibabaPerfectPerformanceLocalitemEditAPIResponse.go b/model/perfect/AlibabaPerfectPerformanceLocalitemEditAPIResponse.go new file mode 100644 index 0000000000..4247435b02 --- /dev/null +++ b/model/perfect/AlibabaPerfectPerformanceLocalitemEditAPIResponse.go @@ -0,0 +1,27 @@ +package perfect + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同城购定制发品编辑 API返回值 +alibaba.perfect.performance.localitem.edit + +同城购业务定制化发品接口,同城购业务线专用 +*/ +type AlibabaPerfectPerformanceLocalitemEditAPIResponse struct { + model.CommonResponse + AlibabaPerfectPerformanceLocalitemEditAPIResponseModel +} + +// 同城购定制发品编辑 成功返回结果 +type AlibabaPerfectPerformanceLocalitemEditAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_perfect_performance_localitem_edit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回包装类 + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/perfect/AlibabaPerfectPerformanceLocalitemEditResponse.go b/model/perfect/AlibabaPerfectPerformanceLocalitemEditResponse.go deleted file mode 100644 index 458d4f0b95..0000000000 --- a/model/perfect/AlibabaPerfectPerformanceLocalitemEditResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package perfect - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同城购定制发品编辑 API返回值 -alibaba.perfect.performance.localitem.edit - -同城购业务定制化发品接口,同城购业务线专用 -*/ -type AlibabaPerfectPerformanceLocalitemEditAPIResponse struct { - model.CommonResponse - AlibabaPerfectPerformanceLocalitemEditResponse -} - -// 同城购定制发品编辑 成功返回结果 -type AlibabaPerfectPerformanceLocalitemEditResponse struct { - XMLName xml.Name `xml:"alibaba_perfect_performance_localitem_edit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回包装类 - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/perfect/AlibabaPerfectPerformanceLocalitemPublishAPIRequest.go b/model/perfect/AlibabaPerfectPerformanceLocalitemPublishAPIRequest.go new file mode 100644 index 0000000000..4f94aea2ba --- /dev/null +++ b/model/perfect/AlibabaPerfectPerformanceLocalitemPublishAPIRequest.go @@ -0,0 +1,52 @@ +package perfect + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同城购定制化发品 API请求 +alibaba.perfect.performance.localitem.publish + +同城购业务定制化发品接口,同城购业务线专用 +*/ +type AlibabaPerfectPerformanceLocalitemPublishAPIRequest struct { + model.Params + // 请求参数 + _paramPerfectPerformanceItemPublishReq *PerfectPerformanceItemPublishReq +} + +// 初始化AlibabaPerfectPerformanceLocalitemPublishAPIRequest对象 +func NewAlibabaPerfectPerformanceLocalitemPublishRequest() *AlibabaPerfectPerformanceLocalitemPublishAPIRequest{ + return &AlibabaPerfectPerformanceLocalitemPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPerfectPerformanceLocalitemPublishAPIRequest) GetApiMethodName() string { + return "alibaba.perfect.performance.localitem.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPerfectPerformanceLocalitemPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamPerfectPerformanceItemPublishReq Setter +// 请求参数 +func (r *AlibabaPerfectPerformanceLocalitemPublishAPIRequest) SetParamPerfectPerformanceItemPublishReq(_paramPerfectPerformanceItemPublishReq *PerfectPerformanceItemPublishReq) error { + r._paramPerfectPerformanceItemPublishReq = _paramPerfectPerformanceItemPublishReq + r.Set("param_perfect_performance_item_publish_req", _paramPerfectPerformanceItemPublishReq) + return nil +} + +// ParamPerfectPerformanceItemPublishReq Getter +func (r AlibabaPerfectPerformanceLocalitemPublishAPIRequest) GetParamPerfectPerformanceItemPublishReq() *PerfectPerformanceItemPublishReq { + return r._paramPerfectPerformanceItemPublishReq +} diff --git a/model/perfect/AlibabaPerfectPerformanceLocalitemPublishAPIResponse.go b/model/perfect/AlibabaPerfectPerformanceLocalitemPublishAPIResponse.go new file mode 100644 index 0000000000..639e7fe471 --- /dev/null +++ b/model/perfect/AlibabaPerfectPerformanceLocalitemPublishAPIResponse.go @@ -0,0 +1,27 @@ +package perfect + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同城购定制化发品 API返回值 +alibaba.perfect.performance.localitem.publish + +同城购业务定制化发品接口,同城购业务线专用 +*/ +type AlibabaPerfectPerformanceLocalitemPublishAPIResponse struct { + model.CommonResponse + AlibabaPerfectPerformanceLocalitemPublishAPIResponseModel +} + +// 同城购定制化发品 成功返回结果 +type AlibabaPerfectPerformanceLocalitemPublishAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_perfect_performance_localitem_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回包装类 + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/perfect/AlibabaPerfectPerformanceLocalitemPublishResponse.go b/model/perfect/AlibabaPerfectPerformanceLocalitemPublishResponse.go deleted file mode 100644 index 01a4919e2d..0000000000 --- a/model/perfect/AlibabaPerfectPerformanceLocalitemPublishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package perfect - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同城购定制化发品 API返回值 -alibaba.perfect.performance.localitem.publish - -同城购业务定制化发品接口,同城购业务线专用 -*/ -type AlibabaPerfectPerformanceLocalitemPublishAPIResponse struct { - model.CommonResponse - AlibabaPerfectPerformanceLocalitemPublishResponse -} - -// 同城购定制化发品 成功返回结果 -type AlibabaPerfectPerformanceLocalitemPublishResponse struct { - XMLName xml.Name `xml:"alibaba_perfect_performance_localitem_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回包装类 - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/product/AlibabaGpuAddSchemaGetAPIRequest.go b/model/product/AlibabaGpuAddSchemaGetAPIRequest.go new file mode 100644 index 0000000000..416076f07d --- /dev/null +++ b/model/product/AlibabaGpuAddSchemaGetAPIRequest.go @@ -0,0 +1,80 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取产品发布规则接口 API请求 +alibaba.gpu.add.schema.get + +获取产品发布规则接口 +*/ +type AlibabaGpuAddSchemaGetAPIRequest struct { + model.Params + // 叶子类目ID + _leafCatId int64 + // 品牌ID + _brandId int64 + // 当前用户所在渠道如0代表天猫,8代表淘宝 + _providerId int64 +} + +// 初始化AlibabaGpuAddSchemaGetAPIRequest对象 +func NewAlibabaGpuAddSchemaGetRequest() *AlibabaGpuAddSchemaGetAPIRequest{ + return &AlibabaGpuAddSchemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaGpuAddSchemaGetAPIRequest) GetApiMethodName() string { + return "alibaba.gpu.add.schema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaGpuAddSchemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LeafCatId Setter +// 叶子类目ID +func (r *AlibabaGpuAddSchemaGetAPIRequest) SetLeafCatId(_leafCatId int64) error { + r._leafCatId = _leafCatId + r.Set("leaf_cat_id", _leafCatId) + return nil +} + +// LeafCatId Getter +func (r AlibabaGpuAddSchemaGetAPIRequest) GetLeafCatId() int64 { + return r._leafCatId +} +// BrandId Setter +// 品牌ID +func (r *AlibabaGpuAddSchemaGetAPIRequest) SetBrandId(_brandId int64) error { + r._brandId = _brandId + r.Set("brand_id", _brandId) + return nil +} + +// BrandId Getter +func (r AlibabaGpuAddSchemaGetAPIRequest) GetBrandId() int64 { + return r._brandId +} +// ProviderId Setter +// 当前用户所在渠道如0代表天猫,8代表淘宝 +func (r *AlibabaGpuAddSchemaGetAPIRequest) SetProviderId(_providerId int64) error { + r._providerId = _providerId + r.Set("provider_id", _providerId) + return nil +} + +// ProviderId Getter +func (r AlibabaGpuAddSchemaGetAPIRequest) GetProviderId() int64 { + return r._providerId +} diff --git a/model/product/AlibabaGpuAddSchemaGetAPIResponse.go b/model/product/AlibabaGpuAddSchemaGetAPIResponse.go new file mode 100644 index 0000000000..36c6f8214a --- /dev/null +++ b/model/product/AlibabaGpuAddSchemaGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取产品发布规则接口 API返回值 +alibaba.gpu.add.schema.get + +获取产品发布规则接口 +*/ +type AlibabaGpuAddSchemaGetAPIResponse struct { + model.CommonResponse + AlibabaGpuAddSchemaGetAPIResponseModel +} + +// 获取产品发布规则接口 成功返回结果 +type AlibabaGpuAddSchemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_gpu_add_schema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回产品发布规则 + AddProductRule string `json:"add_product_rule,omitempty" xml:"add_product_rule,omitempty"` +} diff --git a/model/product/AlibabaGpuAddSchemaGetResponse.go b/model/product/AlibabaGpuAddSchemaGetResponse.go deleted file mode 100644 index 12378f543f..0000000000 --- a/model/product/AlibabaGpuAddSchemaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取产品发布规则接口 API返回值 -alibaba.gpu.add.schema.get - -获取产品发布规则接口 -*/ -type AlibabaGpuAddSchemaGetAPIResponse struct { - model.CommonResponse - AlibabaGpuAddSchemaGetResponse -} - -// 获取产品发布规则接口 成功返回结果 -type AlibabaGpuAddSchemaGetResponse struct { - XMLName xml.Name `xml:"alibaba_gpu_add_schema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回产品发布规则 - AddProductRule string `json:"add_product_rule,omitempty" xml:"add_product_rule,omitempty"` -} diff --git a/model/product/AlibabaGpuSchemaAddAPIRequest.go b/model/product/AlibabaGpuSchemaAddAPIRequest.go new file mode 100644 index 0000000000..6bda9684a1 --- /dev/null +++ b/model/product/AlibabaGpuSchemaAddAPIRequest.go @@ -0,0 +1,94 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +使用schema文件发布产品 API请求 +alibaba.gpu.schema.add + +使用Schema文件发布一个产品 +*/ +type AlibabaGpuSchemaAddAPIRequest struct { + model.Params + // 叶子类目ID + _leafCatId int64 + // 品牌ID + _brandId int64 + // 根据alibaba.gpu.add.schema.get获取的规则提交上来的schema + _schemaXmlFields string + // 当前用户所在渠道如0代表天猫,8代表淘宝 + _providerId int64 +} + +// 初始化AlibabaGpuSchemaAddAPIRequest对象 +func NewAlibabaGpuSchemaAddRequest() *AlibabaGpuSchemaAddAPIRequest{ + return &AlibabaGpuSchemaAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaGpuSchemaAddAPIRequest) GetApiMethodName() string { + return "alibaba.gpu.schema.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaGpuSchemaAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LeafCatId Setter +// 叶子类目ID +func (r *AlibabaGpuSchemaAddAPIRequest) SetLeafCatId(_leafCatId int64) error { + r._leafCatId = _leafCatId + r.Set("leaf_cat_id", _leafCatId) + return nil +} + +// LeafCatId Getter +func (r AlibabaGpuSchemaAddAPIRequest) GetLeafCatId() int64 { + return r._leafCatId +} +// BrandId Setter +// 品牌ID +func (r *AlibabaGpuSchemaAddAPIRequest) SetBrandId(_brandId int64) error { + r._brandId = _brandId + r.Set("brand_id", _brandId) + return nil +} + +// BrandId Getter +func (r AlibabaGpuSchemaAddAPIRequest) GetBrandId() int64 { + return r._brandId +} +// SchemaXmlFields Setter +// 根据alibaba.gpu.add.schema.get获取的规则提交上来的schema +func (r *AlibabaGpuSchemaAddAPIRequest) SetSchemaXmlFields(_schemaXmlFields string) error { + r._schemaXmlFields = _schemaXmlFields + r.Set("schema_xml_fields", _schemaXmlFields) + return nil +} + +// SchemaXmlFields Getter +func (r AlibabaGpuSchemaAddAPIRequest) GetSchemaXmlFields() string { + return r._schemaXmlFields +} +// ProviderId Setter +// 当前用户所在渠道如0代表天猫,8代表淘宝 +func (r *AlibabaGpuSchemaAddAPIRequest) SetProviderId(_providerId int64) error { + r._providerId = _providerId + r.Set("provider_id", _providerId) + return nil +} + +// ProviderId Getter +func (r AlibabaGpuSchemaAddAPIRequest) GetProviderId() int64 { + return r._providerId +} diff --git a/model/product/AlibabaGpuSchemaAddAPIResponse.go b/model/product/AlibabaGpuSchemaAddAPIResponse.go new file mode 100644 index 0000000000..4ae4f8c79d --- /dev/null +++ b/model/product/AlibabaGpuSchemaAddAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +使用schema文件发布产品 API返回值 +alibaba.gpu.schema.add + +使用Schema文件发布一个产品 +*/ +type AlibabaGpuSchemaAddAPIResponse struct { + model.CommonResponse + AlibabaGpuSchemaAddAPIResponseModel +} + +// 使用schema文件发布产品 成功返回结果 +type AlibabaGpuSchemaAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_gpu_schema_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 产品发布的结果 + AddProductResult string `json:"add_product_result,omitempty" xml:"add_product_result,omitempty"` +} diff --git a/model/product/AlibabaGpuSchemaAddResponse.go b/model/product/AlibabaGpuSchemaAddResponse.go deleted file mode 100644 index c14e57aacc..0000000000 --- a/model/product/AlibabaGpuSchemaAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -使用schema文件发布产品 API返回值 -alibaba.gpu.schema.add - -使用Schema文件发布一个产品 -*/ -type AlibabaGpuSchemaAddAPIResponse struct { - model.CommonResponse - AlibabaGpuSchemaAddResponse -} - -// 使用schema文件发布产品 成功返回结果 -type AlibabaGpuSchemaAddResponse struct { - XMLName xml.Name `xml:"alibaba_gpu_schema_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 产品发布的结果 - AddProductResult string `json:"add_product_result,omitempty" xml:"add_product_result,omitempty"` -} diff --git a/model/product/AlibabaGpuSchemaCatsearchAPIRequest.go b/model/product/AlibabaGpuSchemaCatsearchAPIRequest.go new file mode 100644 index 0000000000..6f75b71d56 --- /dev/null +++ b/model/product/AlibabaGpuSchemaCatsearchAPIRequest.go @@ -0,0 +1,94 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +按类目查询spu接口 API请求 +alibaba.gpu.schema.catsearch + +按类目查询spu的schema接口 +*/ +type AlibabaGpuSchemaCatsearchAPIRequest struct { + model.Params + // 叶子类目ID + _leafCatId int64 + // 当前页 + _currentPage int64 + // 每页大小 + _pageSize int64 + // 渠道Id,如0代表天猫,8代表淘宝 + _providerId int64 +} + +// 初始化AlibabaGpuSchemaCatsearchAPIRequest对象 +func NewAlibabaGpuSchemaCatsearchRequest() *AlibabaGpuSchemaCatsearchAPIRequest{ + return &AlibabaGpuSchemaCatsearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaGpuSchemaCatsearchAPIRequest) GetApiMethodName() string { + return "alibaba.gpu.schema.catsearch" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaGpuSchemaCatsearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LeafCatId Setter +// 叶子类目ID +func (r *AlibabaGpuSchemaCatsearchAPIRequest) SetLeafCatId(_leafCatId int64) error { + r._leafCatId = _leafCatId + r.Set("leaf_cat_id", _leafCatId) + return nil +} + +// LeafCatId Getter +func (r AlibabaGpuSchemaCatsearchAPIRequest) GetLeafCatId() int64 { + return r._leafCatId +} +// CurrentPage Setter +// 当前页 +func (r *AlibabaGpuSchemaCatsearchAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AlibabaGpuSchemaCatsearchAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// PageSize Setter +// 每页大小 +func (r *AlibabaGpuSchemaCatsearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaGpuSchemaCatsearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// ProviderId Setter +// 渠道Id,如0代表天猫,8代表淘宝 +func (r *AlibabaGpuSchemaCatsearchAPIRequest) SetProviderId(_providerId int64) error { + r._providerId = _providerId + r.Set("provider_id", _providerId) + return nil +} + +// ProviderId Getter +func (r AlibabaGpuSchemaCatsearchAPIRequest) GetProviderId() int64 { + return r._providerId +} diff --git a/model/product/AlibabaGpuSchemaCatsearchAPIResponse.go b/model/product/AlibabaGpuSchemaCatsearchAPIResponse.go new file mode 100644 index 0000000000..7b37c0e9d7 --- /dev/null +++ b/model/product/AlibabaGpuSchemaCatsearchAPIResponse.go @@ -0,0 +1,29 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +按类目查询spu接口 API返回值 +alibaba.gpu.schema.catsearch + +按类目查询spu的schema接口 +*/ +type AlibabaGpuSchemaCatsearchAPIResponse struct { + model.CommonResponse + AlibabaGpuSchemaCatsearchAPIResponseModel +} + +// 按类目查询spu接口 成功返回结果 +type AlibabaGpuSchemaCatsearchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_gpu_schema_catsearch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回按类目查询spu的schema + CatSearchResult string `json:"cat_search_result,omitempty" xml:"cat_search_result,omitempty"` + // 总记录数 + Total int64 `json:"total,omitempty" xml:"total,omitempty"` +} diff --git a/model/product/AlibabaGpuSchemaCatsearchResponse.go b/model/product/AlibabaGpuSchemaCatsearchResponse.go deleted file mode 100644 index 80b69963ba..0000000000 --- a/model/product/AlibabaGpuSchemaCatsearchResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -按类目查询spu接口 API返回值 -alibaba.gpu.schema.catsearch - -按类目查询spu的schema接口 -*/ -type AlibabaGpuSchemaCatsearchAPIResponse struct { - model.CommonResponse - AlibabaGpuSchemaCatsearchResponse -} - -// 按类目查询spu接口 成功返回结果 -type AlibabaGpuSchemaCatsearchResponse struct { - XMLName xml.Name `xml:"alibaba_gpu_schema_catsearch_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回按类目查询spu的schema - CatSearchResult string `json:"cat_search_result,omitempty" xml:"cat_search_result,omitempty"` - // 总记录数 - Total int64 `json:"total,omitempty" xml:"total,omitempty"` -} diff --git a/model/product/AlibabaGpuSchemaUpdateAPIRequest.go b/model/product/AlibabaGpuSchemaUpdateAPIRequest.go new file mode 100644 index 0000000000..a2a51fc40c --- /dev/null +++ b/model/product/AlibabaGpuSchemaUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +产品更新接口 API请求 +alibaba.gpu.schema.update + +产品更新接口 +*/ +type AlibabaGpuSchemaUpdateAPIRequest struct { + model.Params + // 产品ID + _productId int64 + // 更新产品提交的schema数据 + _schemaXmlFields string + // 当前用户所在渠道如0代表天猫,8代表淘宝 + _providerId int64 +} + +// 初始化AlibabaGpuSchemaUpdateAPIRequest对象 +func NewAlibabaGpuSchemaUpdateRequest() *AlibabaGpuSchemaUpdateAPIRequest{ + return &AlibabaGpuSchemaUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaGpuSchemaUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.gpu.schema.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaGpuSchemaUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品ID +func (r *AlibabaGpuSchemaUpdateAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r AlibabaGpuSchemaUpdateAPIRequest) GetProductId() int64 { + return r._productId +} +// SchemaXmlFields Setter +// 更新产品提交的schema数据 +func (r *AlibabaGpuSchemaUpdateAPIRequest) SetSchemaXmlFields(_schemaXmlFields string) error { + r._schemaXmlFields = _schemaXmlFields + r.Set("schema_xml_fields", _schemaXmlFields) + return nil +} + +// SchemaXmlFields Getter +func (r AlibabaGpuSchemaUpdateAPIRequest) GetSchemaXmlFields() string { + return r._schemaXmlFields +} +// ProviderId Setter +// 当前用户所在渠道如0代表天猫,8代表淘宝 +func (r *AlibabaGpuSchemaUpdateAPIRequest) SetProviderId(_providerId int64) error { + r._providerId = _providerId + r.Set("provider_id", _providerId) + return nil +} + +// ProviderId Getter +func (r AlibabaGpuSchemaUpdateAPIRequest) GetProviderId() int64 { + return r._providerId +} diff --git a/model/product/AlibabaGpuSchemaUpdateAPIResponse.go b/model/product/AlibabaGpuSchemaUpdateAPIResponse.go new file mode 100644 index 0000000000..35674f97e7 --- /dev/null +++ b/model/product/AlibabaGpuSchemaUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +产品更新接口 API返回值 +alibaba.gpu.schema.update + +产品更新接口 +*/ +type AlibabaGpuSchemaUpdateAPIResponse struct { + model.CommonResponse + AlibabaGpuSchemaUpdateAPIResponseModel +} + +// 产品更新接口 成功返回结果 +type AlibabaGpuSchemaUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_gpu_schema_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 更新产品的结果 + UpdateProductResult string `json:"update_product_result,omitempty" xml:"update_product_result,omitempty"` +} diff --git a/model/product/AlibabaGpuSchemaUpdateResponse.go b/model/product/AlibabaGpuSchemaUpdateResponse.go deleted file mode 100644 index 93f536f813..0000000000 --- a/model/product/AlibabaGpuSchemaUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -产品更新接口 API返回值 -alibaba.gpu.schema.update - -产品更新接口 -*/ -type AlibabaGpuSchemaUpdateAPIResponse struct { - model.CommonResponse - AlibabaGpuSchemaUpdateResponse -} - -// 产品更新接口 成功返回结果 -type AlibabaGpuSchemaUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_gpu_schema_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 更新产品的结果 - UpdateProductResult string `json:"update_product_result,omitempty" xml:"update_product_result,omitempty"` -} diff --git a/model/product/AlibabaGpuUpdateSchemaGetAPIRequest.go b/model/product/AlibabaGpuUpdateSchemaGetAPIRequest.go new file mode 100644 index 0000000000..fc0d28d169 --- /dev/null +++ b/model/product/AlibabaGpuUpdateSchemaGetAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取产品编辑schema规则的接口 API请求 +alibaba.gpu.update.schema.get + +获取产品编辑schema规则的接口 +*/ +type AlibabaGpuUpdateSchemaGetAPIRequest struct { + model.Params + // 产品ID + _productId int64 + // 当前用户所在渠道如0代表天猫,8代表淘宝 + _providerId int64 +} + +// 初始化AlibabaGpuUpdateSchemaGetAPIRequest对象 +func NewAlibabaGpuUpdateSchemaGetRequest() *AlibabaGpuUpdateSchemaGetAPIRequest{ + return &AlibabaGpuUpdateSchemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaGpuUpdateSchemaGetAPIRequest) GetApiMethodName() string { + return "alibaba.gpu.update.schema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaGpuUpdateSchemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品ID +func (r *AlibabaGpuUpdateSchemaGetAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r AlibabaGpuUpdateSchemaGetAPIRequest) GetProductId() int64 { + return r._productId +} +// ProviderId Setter +// 当前用户所在渠道如0代表天猫,8代表淘宝 +func (r *AlibabaGpuUpdateSchemaGetAPIRequest) SetProviderId(_providerId int64) error { + r._providerId = _providerId + r.Set("provider_id", _providerId) + return nil +} + +// ProviderId Getter +func (r AlibabaGpuUpdateSchemaGetAPIRequest) GetProviderId() int64 { + return r._providerId +} diff --git a/model/product/AlibabaGpuUpdateSchemaGetAPIResponse.go b/model/product/AlibabaGpuUpdateSchemaGetAPIResponse.go new file mode 100644 index 0000000000..8f93217603 --- /dev/null +++ b/model/product/AlibabaGpuUpdateSchemaGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取产品编辑schema规则的接口 API返回值 +alibaba.gpu.update.schema.get + +获取产品编辑schema规则的接口 +*/ +type AlibabaGpuUpdateSchemaGetAPIResponse struct { + model.CommonResponse + AlibabaGpuUpdateSchemaGetAPIResponseModel +} + +// 获取产品编辑schema规则的接口 成功返回结果 +type AlibabaGpuUpdateSchemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_gpu_update_schema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 参数产品ID对应的产品更新规则 + UpdateProductRule string `json:"update_product_rule,omitempty" xml:"update_product_rule,omitempty"` +} diff --git a/model/product/AlibabaGpuUpdateSchemaGetResponse.go b/model/product/AlibabaGpuUpdateSchemaGetResponse.go deleted file mode 100644 index f5ec54bd0d..0000000000 --- a/model/product/AlibabaGpuUpdateSchemaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取产品编辑schema规则的接口 API返回值 -alibaba.gpu.update.schema.get - -获取产品编辑schema规则的接口 -*/ -type AlibabaGpuUpdateSchemaGetAPIResponse struct { - model.CommonResponse - AlibabaGpuUpdateSchemaGetResponse -} - -// 获取产品编辑schema规则的接口 成功返回结果 -type AlibabaGpuUpdateSchemaGetResponse struct { - XMLName xml.Name `xml:"alibaba_gpu_update_schema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 参数产品ID对应的产品更新规则 - UpdateProductRule string `json:"update_product_rule,omitempty" xml:"update_product_rule,omitempty"` -} diff --git a/model/product/AlibabaGspSupplyImageUploadAPIRequest.go b/model/product/AlibabaGspSupplyImageUploadAPIRequest.go new file mode 100644 index 0000000000..339084566f --- /dev/null +++ b/model/product/AlibabaGspSupplyImageUploadAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +gsp图片上传 API请求 +alibaba.gsp.supply.image.upload + +上传图片至目标海外平台的素材空间 +*/ +type AlibabaGspSupplyImageUploadAPIRequest struct { + model.Params + // 图片名称 + _fileName string + // 图片文件流,像素宽度不小于500,不大于2000,像素长度不小于500,不大于2000 + _fileContent *model.File +} + +// 初始化AlibabaGspSupplyImageUploadAPIRequest对象 +func NewAlibabaGspSupplyImageUploadRequest() *AlibabaGspSupplyImageUploadAPIRequest{ + return &AlibabaGspSupplyImageUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaGspSupplyImageUploadAPIRequest) GetApiMethodName() string { + return "alibaba.gsp.supply.image.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaGspSupplyImageUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FileName Setter +// 图片名称 +func (r *AlibabaGspSupplyImageUploadAPIRequest) SetFileName(_fileName string) error { + r._fileName = _fileName + r.Set("file_name", _fileName) + return nil +} + +// FileName Getter +func (r AlibabaGspSupplyImageUploadAPIRequest) GetFileName() string { + return r._fileName +} +// FileContent Setter +// 图片文件流,像素宽度不小于500,不大于2000,像素长度不小于500,不大于2000 +func (r *AlibabaGspSupplyImageUploadAPIRequest) SetFileContent(_fileContent *model.File) error { + r._fileContent = _fileContent + r.Set("file_content", _fileContent) + return nil +} + +// FileContent Getter +func (r AlibabaGspSupplyImageUploadAPIRequest) GetFileContent() *model.File { + return r._fileContent +} diff --git a/model/product/AlibabaGspSupplyImageUploadAPIResponse.go b/model/product/AlibabaGspSupplyImageUploadAPIResponse.go new file mode 100644 index 0000000000..868d387e6f --- /dev/null +++ b/model/product/AlibabaGspSupplyImageUploadAPIResponse.go @@ -0,0 +1,35 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +gsp图片上传 API返回值 +alibaba.gsp.supply.image.upload + +上传图片至目标海外平台的素材空间 +*/ +type AlibabaGspSupplyImageUploadAPIResponse struct { + model.CommonResponse + AlibabaGspSupplyImageUploadAPIResponseModel +} + +// gsp图片上传 成功返回结果 +type AlibabaGspSupplyImageUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_gsp_supply_image_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 执行结果 + ServiceSuccess bool `json:"service_success,omitempty" xml:"service_success,omitempty"` + // 错误码 + ServiceErrorCode string `json:"service_error_code,omitempty" xml:"service_error_code,omitempty"` + // 是否重试 + NeedRetry bool `json:"need_retry,omitempty" xml:"need_retry,omitempty"` + // 数据 + Model *UploadImageResp `json:"model,omitempty" xml:"model,omitempty"` + // 错误信息 + ServiceErrorMsg string `json:"service_error_msg,omitempty" xml:"service_error_msg,omitempty"` +} diff --git a/model/product/AlibabaGspSupplyImageUploadResponse.go b/model/product/AlibabaGspSupplyImageUploadResponse.go deleted file mode 100644 index 2e1a476e5d..0000000000 --- a/model/product/AlibabaGspSupplyImageUploadResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -gsp图片上传 API返回值 -alibaba.gsp.supply.image.upload - -上传图片至目标海外平台的素材空间 -*/ -type AlibabaGspSupplyImageUploadAPIResponse struct { - model.CommonResponse - AlibabaGspSupplyImageUploadResponse -} - -// gsp图片上传 成功返回结果 -type AlibabaGspSupplyImageUploadResponse struct { - XMLName xml.Name `xml:"alibaba_gsp_supply_image_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 执行结果 - ServiceSuccess bool `json:"service_success,omitempty" xml:"service_success,omitempty"` - // 错误码 - ServiceErrorCode string `json:"service_error_code,omitempty" xml:"service_error_code,omitempty"` - // 是否重试 - NeedRetry bool `json:"need_retry,omitempty" xml:"need_retry,omitempty"` - // 数据 - Model *UploadImageResp `json:"model,omitempty" xml:"model,omitempty"` - // 错误信息 - ServiceErrorMsg string `json:"service_error_msg,omitempty" xml:"service_error_msg,omitempty"` -} diff --git a/model/product/AlibabaItemCategoryPredictAPIRequest.go b/model/product/AlibabaItemCategoryPredictAPIRequest.go new file mode 100644 index 0000000000..601e319cb0 --- /dev/null +++ b/model/product/AlibabaItemCategoryPredictAPIRequest.go @@ -0,0 +1,108 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品发布类目预测 API请求 +alibaba.item.category.predict + +商品发布类目预测接口,预测匹配的结果存在一定误差,需要商家二次确认,避免类目配置错误产生其他影响。 +*/ +type AlibabaItemCategoryPredictAPIRequest struct { + model.Params + // 商品主图链接,最多5张,传入完整URL + _images []string + // 商品发布的市场。taobao:淘宝,tmall:天猫,litetao:淘宝特价版 + _market string + // 商品条码 + _barcode string + // 商品条码图片 + _barcodeImage string + // 商品介绍 + _itemDesc string +} + +// 初始化AlibabaItemCategoryPredictAPIRequest对象 +func NewAlibabaItemCategoryPredictRequest() *AlibabaItemCategoryPredictAPIRequest{ + return &AlibabaItemCategoryPredictAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaItemCategoryPredictAPIRequest) GetApiMethodName() string { + return "alibaba.item.category.predict" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaItemCategoryPredictAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Images Setter +// 商品主图链接,最多5张,传入完整URL +func (r *AlibabaItemCategoryPredictAPIRequest) SetImages(_images []string) error { + r._images = _images + r.Set("images", _images) + return nil +} + +// Images Getter +func (r AlibabaItemCategoryPredictAPIRequest) GetImages() []string { + return r._images +} +// Market Setter +// 商品发布的市场。taobao:淘宝,tmall:天猫,litetao:淘宝特价版 +func (r *AlibabaItemCategoryPredictAPIRequest) SetMarket(_market string) error { + r._market = _market + r.Set("market", _market) + return nil +} + +// Market Getter +func (r AlibabaItemCategoryPredictAPIRequest) GetMarket() string { + return r._market +} +// Barcode Setter +// 商品条码 +func (r *AlibabaItemCategoryPredictAPIRequest) SetBarcode(_barcode string) error { + r._barcode = _barcode + r.Set("barcode", _barcode) + return nil +} + +// Barcode Getter +func (r AlibabaItemCategoryPredictAPIRequest) GetBarcode() string { + return r._barcode +} +// BarcodeImage Setter +// 商品条码图片 +func (r *AlibabaItemCategoryPredictAPIRequest) SetBarcodeImage(_barcodeImage string) error { + r._barcodeImage = _barcodeImage + r.Set("barcode_image", _barcodeImage) + return nil +} + +// BarcodeImage Getter +func (r AlibabaItemCategoryPredictAPIRequest) GetBarcodeImage() string { + return r._barcodeImage +} +// ItemDesc Setter +// 商品介绍 +func (r *AlibabaItemCategoryPredictAPIRequest) SetItemDesc(_itemDesc string) error { + r._itemDesc = _itemDesc + r.Set("item_desc", _itemDesc) + return nil +} + +// ItemDesc Getter +func (r AlibabaItemCategoryPredictAPIRequest) GetItemDesc() string { + return r._itemDesc +} diff --git a/model/product/AlibabaItemCategoryPredictAPIResponse.go b/model/product/AlibabaItemCategoryPredictAPIResponse.go new file mode 100644 index 0000000000..13a783197c --- /dev/null +++ b/model/product/AlibabaItemCategoryPredictAPIResponse.go @@ -0,0 +1,31 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品发布类目预测 API返回值 +alibaba.item.category.predict + +商品发布类目预测接口,预测匹配的结果存在一定误差,需要商家二次确认,避免类目配置错误产生其他影响。 +*/ +type AlibabaItemCategoryPredictAPIResponse struct { + model.CommonResponse + AlibabaItemCategoryPredictAPIResponseModel +} + +// 商品发布类目预测 成功返回结果 +type AlibabaItemCategoryPredictAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_item_category_predict_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 类目路径 + CatName string `json:"cat_name,omitempty" xml:"cat_name,omitempty"` + // 类目ID + CatId int64 `json:"cat_id,omitempty" xml:"cat_id,omitempty"` + // 类目名称 + CatPath string `json:"cat_path,omitempty" xml:"cat_path,omitempty"` +} diff --git a/model/product/AlibabaItemCategoryPredictResponse.go b/model/product/AlibabaItemCategoryPredictResponse.go deleted file mode 100644 index f1e8fe8a9d..0000000000 --- a/model/product/AlibabaItemCategoryPredictResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品发布类目预测 API返回值 -alibaba.item.category.predict - -商品发布类目预测接口,预测匹配的结果存在一定误差,需要商家二次确认,避免类目配置错误产生其他影响。 -*/ -type AlibabaItemCategoryPredictAPIResponse struct { - model.CommonResponse - AlibabaItemCategoryPredictResponse -} - -// 商品发布类目预测 成功返回结果 -type AlibabaItemCategoryPredictResponse struct { - XMLName xml.Name `xml:"alibaba_item_category_predict_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 类目路径 - CatName string `json:"cat_name,omitempty" xml:"cat_name,omitempty"` - // 类目ID - CatId int64 `json:"cat_id,omitempty" xml:"cat_id,omitempty"` - // 类目名称 - CatPath string `json:"cat_path,omitempty" xml:"cat_path,omitempty"` -} diff --git a/model/product/AlibabaItemEditFastupdateAPIRequest.go b/model/product/AlibabaItemEditFastupdateAPIRequest.go new file mode 100644 index 0000000000..30f85b7b8d --- /dev/null +++ b/model/product/AlibabaItemEditFastupdateAPIRequest.go @@ -0,0 +1,96 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品编辑增量更新 API请求 +alibaba.item.edit.fastupdate + +商品编辑增量更新; +
该接口编辑sku,只能更新价格、库存等信息,不能新增sku; +
新增sku用全量接口alibaba.item.edit.submit,先设置销售属性; +*/ +type AlibabaItemEditFastupdateAPIRequest struct { + model.Params + // 商品类目ID。若不需要修改商品类目,则不用填写 + _catId int64 + // 产品ID,若不需要修改关联的产品信息,则不需要填写 + _spuId int64 + // 商品ID + _itemId int64 + // 编辑后的schema信息(增量更新,只填写需要更新的字段) + _schema string +} + +// 初始化AlibabaItemEditFastupdateAPIRequest对象 +func NewAlibabaItemEditFastupdateRequest() *AlibabaItemEditFastupdateAPIRequest{ + return &AlibabaItemEditFastupdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaItemEditFastupdateAPIRequest) GetApiMethodName() string { + return "alibaba.item.edit.fastupdate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaItemEditFastupdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CatId Setter +// 商品类目ID。若不需要修改商品类目,则不用填写 +func (r *AlibabaItemEditFastupdateAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r AlibabaItemEditFastupdateAPIRequest) GetCatId() int64 { + return r._catId +} +// SpuId Setter +// 产品ID,若不需要修改关联的产品信息,则不需要填写 +func (r *AlibabaItemEditFastupdateAPIRequest) SetSpuId(_spuId int64) error { + r._spuId = _spuId + r.Set("spu_id", _spuId) + return nil +} + +// SpuId Getter +func (r AlibabaItemEditFastupdateAPIRequest) GetSpuId() int64 { + return r._spuId +} +// ItemId Setter +// 商品ID +func (r *AlibabaItemEditFastupdateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaItemEditFastupdateAPIRequest) GetItemId() int64 { + return r._itemId +} +// Schema Setter +// 编辑后的schema信息(增量更新,只填写需要更新的字段) +func (r *AlibabaItemEditFastupdateAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r AlibabaItemEditFastupdateAPIRequest) GetSchema() string { + return r._schema +} diff --git a/model/product/AlibabaItemEditFastupdateAPIResponse.go b/model/product/AlibabaItemEditFastupdateAPIResponse.go new file mode 100644 index 0000000000..8093692a2e --- /dev/null +++ b/model/product/AlibabaItemEditFastupdateAPIResponse.go @@ -0,0 +1,33 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品编辑增量更新 API返回值 +alibaba.item.edit.fastupdate + +商品编辑增量更新; +
该接口编辑sku,只能更新价格、库存等信息,不能新增sku; +
新增sku用全量接口alibaba.item.edit.submit,先设置销售属性; +*/ +type AlibabaItemEditFastupdateAPIResponse struct { + model.CommonResponse + AlibabaItemEditFastupdateAPIResponseModel +} + +// 商品编辑增量更新 成功返回结果 +type AlibabaItemEditFastupdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_item_edit_fastupdate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品更新时间 + UpdateTime string `json:"update_time,omitempty" xml:"update_time,omitempty"` + // 商品ID + ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` + // 商品所属市场 + Market string `json:"market,omitempty" xml:"market,omitempty"` +} diff --git a/model/product/AlibabaItemEditFastupdateResponse.go b/model/product/AlibabaItemEditFastupdateResponse.go deleted file mode 100644 index 1691a84551..0000000000 --- a/model/product/AlibabaItemEditFastupdateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品编辑增量更新 API返回值 -alibaba.item.edit.fastupdate - -商品编辑增量更新; -
该接口编辑sku,只能更新价格、库存等信息,不能新增sku; -
新增sku用全量接口alibaba.item.edit.submit,先设置销售属性; -*/ -type AlibabaItemEditFastupdateAPIResponse struct { - model.CommonResponse - AlibabaItemEditFastupdateResponse -} - -// 商品编辑增量更新 成功返回结果 -type AlibabaItemEditFastupdateResponse struct { - XMLName xml.Name `xml:"alibaba_item_edit_fastupdate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品更新时间 - UpdateTime string `json:"update_time,omitempty" xml:"update_time,omitempty"` - // 商品ID - ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` - // 商品所属市场 - Market string `json:"market,omitempty" xml:"market,omitempty"` -} diff --git a/model/product/AlibabaItemEditSchemaGetAPIRequest.go b/model/product/AlibabaItemEditSchemaGetAPIRequest.go new file mode 100644 index 0000000000..ef992ba097 --- /dev/null +++ b/model/product/AlibabaItemEditSchemaGetAPIRequest.go @@ -0,0 +1,80 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品编辑获取schema信息 API请求 +alibaba.item.edit.schema.get + +商品编辑时,获取商品规则信息 +*/ +type AlibabaItemEditSchemaGetAPIRequest struct { + model.Params + // 业务扩展参数,需与平台约定好 + _bizType string + // 商品ID + _itemId int64 + // 制定返回schema中field字段列表,可用于裁剪返回的schema信息。不填则为全部field + _fields []string +} + +// 初始化AlibabaItemEditSchemaGetAPIRequest对象 +func NewAlibabaItemEditSchemaGetRequest() *AlibabaItemEditSchemaGetAPIRequest{ + return &AlibabaItemEditSchemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaItemEditSchemaGetAPIRequest) GetApiMethodName() string { + return "alibaba.item.edit.schema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaItemEditSchemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizType Setter +// 业务扩展参数,需与平台约定好 +func (r *AlibabaItemEditSchemaGetAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r AlibabaItemEditSchemaGetAPIRequest) GetBizType() string { + return r._bizType +} +// ItemId Setter +// 商品ID +func (r *AlibabaItemEditSchemaGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaItemEditSchemaGetAPIRequest) GetItemId() int64 { + return r._itemId +} +// Fields Setter +// 制定返回schema中field字段列表,可用于裁剪返回的schema信息。不填则为全部field +func (r *AlibabaItemEditSchemaGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r AlibabaItemEditSchemaGetAPIRequest) GetFields() []string { + return r._fields +} diff --git a/model/product/AlibabaItemEditSchemaGetAPIResponse.go b/model/product/AlibabaItemEditSchemaGetAPIResponse.go new file mode 100644 index 0000000000..29e480455b --- /dev/null +++ b/model/product/AlibabaItemEditSchemaGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品编辑获取schema信息 API返回值 +alibaba.item.edit.schema.get + +商品编辑时,获取商品规则信息 +*/ +type AlibabaItemEditSchemaGetAPIResponse struct { + model.CommonResponse + AlibabaItemEditSchemaGetAPIResponseModel +} + +// 商品编辑获取schema信息 成功返回结果 +type AlibabaItemEditSchemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_item_edit_schema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品已有规则信息,XML格式. + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/product/AlibabaItemEditSchemaGetResponse.go b/model/product/AlibabaItemEditSchemaGetResponse.go deleted file mode 100644 index 0aa86fa654..0000000000 --- a/model/product/AlibabaItemEditSchemaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品编辑获取schema信息 API返回值 -alibaba.item.edit.schema.get - -商品编辑时,获取商品规则信息 -*/ -type AlibabaItemEditSchemaGetAPIResponse struct { - model.CommonResponse - AlibabaItemEditSchemaGetResponse -} - -// 商品编辑获取schema信息 成功返回结果 -type AlibabaItemEditSchemaGetResponse struct { - XMLName xml.Name `xml:"alibaba_item_edit_schema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品已有规则信息,XML格式. - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/product/AlibabaItemEditSubmitAPIRequest.go b/model/product/AlibabaItemEditSubmitAPIRequest.go new file mode 100644 index 0000000000..cdd08b18eb --- /dev/null +++ b/model/product/AlibabaItemEditSubmitAPIRequest.go @@ -0,0 +1,108 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品编辑提交schema信息 API请求 +alibaba.item.edit.submit + +商品编辑提交schema信息 +*/ +type AlibabaItemEditSubmitAPIRequest struct { + model.Params + // 业务扩展参数,需与平台约定好 + _bizType string + // 商品类目ID。若不需要修改商品类目,则不用填写 + _catId int64 + // 产品ID,若不需要修改关联的产品信息,则不需要填写 + _spuId int64 + // 商品ID + _itemId int64 + // 编辑后的schema信息,通过alibaba.item.edit.schema.get获取 + _schema string +} + +// 初始化AlibabaItemEditSubmitAPIRequest对象 +func NewAlibabaItemEditSubmitRequest() *AlibabaItemEditSubmitAPIRequest{ + return &AlibabaItemEditSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaItemEditSubmitAPIRequest) GetApiMethodName() string { + return "alibaba.item.edit.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaItemEditSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizType Setter +// 业务扩展参数,需与平台约定好 +func (r *AlibabaItemEditSubmitAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r AlibabaItemEditSubmitAPIRequest) GetBizType() string { + return r._bizType +} +// CatId Setter +// 商品类目ID。若不需要修改商品类目,则不用填写 +func (r *AlibabaItemEditSubmitAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r AlibabaItemEditSubmitAPIRequest) GetCatId() int64 { + return r._catId +} +// SpuId Setter +// 产品ID,若不需要修改关联的产品信息,则不需要填写 +func (r *AlibabaItemEditSubmitAPIRequest) SetSpuId(_spuId int64) error { + r._spuId = _spuId + r.Set("spu_id", _spuId) + return nil +} + +// SpuId Getter +func (r AlibabaItemEditSubmitAPIRequest) GetSpuId() int64 { + return r._spuId +} +// ItemId Setter +// 商品ID +func (r *AlibabaItemEditSubmitAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaItemEditSubmitAPIRequest) GetItemId() int64 { + return r._itemId +} +// Schema Setter +// 编辑后的schema信息,通过alibaba.item.edit.schema.get获取 +func (r *AlibabaItemEditSubmitAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r AlibabaItemEditSubmitAPIRequest) GetSchema() string { + return r._schema +} diff --git a/model/product/AlibabaItemEditSubmitAPIResponse.go b/model/product/AlibabaItemEditSubmitAPIResponse.go new file mode 100644 index 0000000000..20a5efc92b --- /dev/null +++ b/model/product/AlibabaItemEditSubmitAPIResponse.go @@ -0,0 +1,31 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品编辑提交schema信息 API返回值 +alibaba.item.edit.submit + +商品编辑提交schema信息 +*/ +type AlibabaItemEditSubmitAPIResponse struct { + model.CommonResponse + AlibabaItemEditSubmitAPIResponseModel +} + +// 商品编辑提交schema信息 成功返回结果 +type AlibabaItemEditSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_item_edit_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品更新时间 + UpdateTime string `json:"update_time,omitempty" xml:"update_time,omitempty"` + // 商品ID + ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` + // 商品所属市场 + Market string `json:"market,omitempty" xml:"market,omitempty"` +} diff --git a/model/product/AlibabaItemEditSubmitResponse.go b/model/product/AlibabaItemEditSubmitResponse.go deleted file mode 100644 index 4447947647..0000000000 --- a/model/product/AlibabaItemEditSubmitResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品编辑提交schema信息 API返回值 -alibaba.item.edit.submit - -商品编辑提交schema信息 -*/ -type AlibabaItemEditSubmitAPIResponse struct { - model.CommonResponse - AlibabaItemEditSubmitResponse -} - -// 商品编辑提交schema信息 成功返回结果 -type AlibabaItemEditSubmitResponse struct { - XMLName xml.Name `xml:"alibaba_item_edit_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品更新时间 - UpdateTime string `json:"update_time,omitempty" xml:"update_time,omitempty"` - // 商品ID - ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` - // 商品所属市场 - Market string `json:"market,omitempty" xml:"market,omitempty"` -} diff --git a/model/product/AlibabaItemOperateDeleteAPIRequest.go b/model/product/AlibabaItemOperateDeleteAPIRequest.go new file mode 100644 index 0000000000..319ecee6ef --- /dev/null +++ b/model/product/AlibabaItemOperateDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品删除 API请求 +alibaba.item.operate.delete + +商品删除 +*/ +type AlibabaItemOperateDeleteAPIRequest struct { + model.Params + // 商品ID + _itemId int64 +} + +// 初始化AlibabaItemOperateDeleteAPIRequest对象 +func NewAlibabaItemOperateDeleteRequest() *AlibabaItemOperateDeleteAPIRequest{ + return &AlibabaItemOperateDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaItemOperateDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.item.operate.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaItemOperateDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品ID +func (r *AlibabaItemOperateDeleteAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaItemOperateDeleteAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/product/AlibabaItemOperateDeleteAPIResponse.go b/model/product/AlibabaItemOperateDeleteAPIResponse.go new file mode 100644 index 0000000000..57ea5b80ed --- /dev/null +++ b/model/product/AlibabaItemOperateDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品删除 API返回值 +alibaba.item.operate.delete + +商品删除 +*/ +type AlibabaItemOperateDeleteAPIResponse struct { + model.CommonResponse + AlibabaItemOperateDeleteAPIResponseModel +} + +// 商品删除 成功返回结果 +type AlibabaItemOperateDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_item_operate_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品删除是否成功 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/product/AlibabaItemOperateDeleteResponse.go b/model/product/AlibabaItemOperateDeleteResponse.go deleted file mode 100644 index 4c0b96f90d..0000000000 --- a/model/product/AlibabaItemOperateDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品删除 API返回值 -alibaba.item.operate.delete - -商品删除 -*/ -type AlibabaItemOperateDeleteAPIResponse struct { - model.CommonResponse - AlibabaItemOperateDeleteResponse -} - -// 商品删除 成功返回结果 -type AlibabaItemOperateDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_item_operate_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品删除是否成功 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/product/AlibabaItemOperateDownshelfAPIRequest.go b/model/product/AlibabaItemOperateDownshelfAPIRequest.go new file mode 100644 index 0000000000..c9707fe09b --- /dev/null +++ b/model/product/AlibabaItemOperateDownshelfAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品下架 API请求 +alibaba.item.operate.downshelf + +商品下架 +*/ +type AlibabaItemOperateDownshelfAPIRequest struct { + model.Params + // 商品ID + _itemId int64 +} + +// 初始化AlibabaItemOperateDownshelfAPIRequest对象 +func NewAlibabaItemOperateDownshelfRequest() *AlibabaItemOperateDownshelfAPIRequest{ + return &AlibabaItemOperateDownshelfAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaItemOperateDownshelfAPIRequest) GetApiMethodName() string { + return "alibaba.item.operate.downshelf" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaItemOperateDownshelfAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品ID +func (r *AlibabaItemOperateDownshelfAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaItemOperateDownshelfAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/product/AlibabaItemOperateDownshelfAPIResponse.go b/model/product/AlibabaItemOperateDownshelfAPIResponse.go new file mode 100644 index 0000000000..bf63964e61 --- /dev/null +++ b/model/product/AlibabaItemOperateDownshelfAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品下架 API返回值 +alibaba.item.operate.downshelf + +商品下架 +*/ +type AlibabaItemOperateDownshelfAPIResponse struct { + model.CommonResponse + AlibabaItemOperateDownshelfAPIResponseModel +} + +// 商品下架 成功返回结果 +type AlibabaItemOperateDownshelfAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_item_operate_downshelf_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品下架是否成功 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/product/AlibabaItemOperateDownshelfResponse.go b/model/product/AlibabaItemOperateDownshelfResponse.go deleted file mode 100644 index 2e5f9ea442..0000000000 --- a/model/product/AlibabaItemOperateDownshelfResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品下架 API返回值 -alibaba.item.operate.downshelf - -商品下架 -*/ -type AlibabaItemOperateDownshelfAPIResponse struct { - model.CommonResponse - AlibabaItemOperateDownshelfResponse -} - -// 商品下架 成功返回结果 -type AlibabaItemOperateDownshelfResponse struct { - XMLName xml.Name `xml:"alibaba_item_operate_downshelf_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品下架是否成功 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/product/AlibabaItemOperateUpshelfAPIRequest.go b/model/product/AlibabaItemOperateUpshelfAPIRequest.go new file mode 100644 index 0000000000..0338ed2c7a --- /dev/null +++ b/model/product/AlibabaItemOperateUpshelfAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品上架 API请求 +alibaba.item.operate.upshelf + +商品上架 +*/ +type AlibabaItemOperateUpshelfAPIRequest struct { + model.Params + // 商品ID + _itemId int64 + // 商品库存 + _quantity int64 +} + +// 初始化AlibabaItemOperateUpshelfAPIRequest对象 +func NewAlibabaItemOperateUpshelfRequest() *AlibabaItemOperateUpshelfAPIRequest{ + return &AlibabaItemOperateUpshelfAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaItemOperateUpshelfAPIRequest) GetApiMethodName() string { + return "alibaba.item.operate.upshelf" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaItemOperateUpshelfAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品ID +func (r *AlibabaItemOperateUpshelfAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaItemOperateUpshelfAPIRequest) GetItemId() int64 { + return r._itemId +} +// Quantity Setter +// 商品库存 +func (r *AlibabaItemOperateUpshelfAPIRequest) SetQuantity(_quantity int64) error { + r._quantity = _quantity + r.Set("quantity", _quantity) + return nil +} + +// Quantity Getter +func (r AlibabaItemOperateUpshelfAPIRequest) GetQuantity() int64 { + return r._quantity +} diff --git a/model/product/AlibabaItemOperateUpshelfAPIResponse.go b/model/product/AlibabaItemOperateUpshelfAPIResponse.go new file mode 100644 index 0000000000..8b4d891812 --- /dev/null +++ b/model/product/AlibabaItemOperateUpshelfAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品上架 API返回值 +alibaba.item.operate.upshelf + +商品上架 +*/ +type AlibabaItemOperateUpshelfAPIResponse struct { + model.CommonResponse + AlibabaItemOperateUpshelfAPIResponseModel +} + +// 商品上架 成功返回结果 +type AlibabaItemOperateUpshelfAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_item_operate_upshelf_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品上架是否成功 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/product/AlibabaItemOperateUpshelfResponse.go b/model/product/AlibabaItemOperateUpshelfResponse.go deleted file mode 100644 index 35ed3b6be9..0000000000 --- a/model/product/AlibabaItemOperateUpshelfResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品上架 API返回值 -alibaba.item.operate.upshelf - -商品上架 -*/ -type AlibabaItemOperateUpshelfAPIResponse struct { - model.CommonResponse - AlibabaItemOperateUpshelfResponse -} - -// 商品上架 成功返回结果 -type AlibabaItemOperateUpshelfResponse struct { - XMLName xml.Name `xml:"alibaba_item_operate_upshelf_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品上架是否成功 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/product/AlibabaItemPublishMarketGetAPIRequest.go b/model/product/AlibabaItemPublishMarketGetAPIRequest.go new file mode 100644 index 0000000000..9f645a3fe5 --- /dev/null +++ b/model/product/AlibabaItemPublishMarketGetAPIRequest.go @@ -0,0 +1,38 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商家可发布商品的市场信息 API请求 +alibaba.item.publish.market.get + +获取商家可发布商品的市场信息 +*/ +type AlibabaItemPublishMarketGetAPIRequest struct { + model.Params +} + +// 初始化AlibabaItemPublishMarketGetAPIRequest对象 +func NewAlibabaItemPublishMarketGetRequest() *AlibabaItemPublishMarketGetAPIRequest{ + return &AlibabaItemPublishMarketGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaItemPublishMarketGetAPIRequest) GetApiMethodName() string { + return "alibaba.item.publish.market.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaItemPublishMarketGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/product/AlibabaItemPublishMarketGetAPIResponse.go b/model/product/AlibabaItemPublishMarketGetAPIResponse.go new file mode 100644 index 0000000000..5a3704467a --- /dev/null +++ b/model/product/AlibabaItemPublishMarketGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商家可发布商品的市场信息 API返回值 +alibaba.item.publish.market.get + +获取商家可发布商品的市场信息 +*/ +type AlibabaItemPublishMarketGetAPIResponse struct { + model.CommonResponse + AlibabaItemPublishMarketGetAPIResponseModel +} + +// 获取商家可发布商品的市场信息 成功返回结果 +type AlibabaItemPublishMarketGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_item_publish_market_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商家可发布的市场列表,多个以逗号(,)分隔 + Markets string `json:"markets,omitempty" xml:"markets,omitempty"` +} diff --git a/model/product/AlibabaItemPublishMarketGetResponse.go b/model/product/AlibabaItemPublishMarketGetResponse.go deleted file mode 100644 index 2f17334a2c..0000000000 --- a/model/product/AlibabaItemPublishMarketGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取商家可发布商品的市场信息 API返回值 -alibaba.item.publish.market.get - -获取商家可发布商品的市场信息 -*/ -type AlibabaItemPublishMarketGetAPIResponse struct { - model.CommonResponse - AlibabaItemPublishMarketGetResponse -} - -// 获取商家可发布商品的市场信息 成功返回结果 -type AlibabaItemPublishMarketGetResponse struct { - XMLName xml.Name `xml:"alibaba_item_publish_market_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商家可发布的市场列表,多个以逗号(,)分隔 - Markets string `json:"markets,omitempty" xml:"markets,omitempty"` -} diff --git a/model/product/AlibabaItemPublishPropsGetAPIRequest.go b/model/product/AlibabaItemPublishPropsGetAPIRequest.go new file mode 100644 index 0000000000..0bffd558e6 --- /dev/null +++ b/model/product/AlibabaItemPublishPropsGetAPIRequest.go @@ -0,0 +1,108 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品级联属性信息获取 API请求 +alibaba.item.publish.props.get + +新商品发布,商品级联属性信息获取 +*/ +type AlibabaItemPublishPropsGetAPIRequest struct { + model.Params + // 商品发布的市场。taobao:淘宝,tmall:天猫,litetao:淘宝特价版 + _market string + // 商品类目ID + _catId int64 + // 商品条码 + _barcode string + // 类目属性渲染schema + _schema string + // 属性ID + _propId int64 +} + +// 初始化AlibabaItemPublishPropsGetAPIRequest对象 +func NewAlibabaItemPublishPropsGetRequest() *AlibabaItemPublishPropsGetAPIRequest{ + return &AlibabaItemPublishPropsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaItemPublishPropsGetAPIRequest) GetApiMethodName() string { + return "alibaba.item.publish.props.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaItemPublishPropsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Market Setter +// 商品发布的市场。taobao:淘宝,tmall:天猫,litetao:淘宝特价版 +func (r *AlibabaItemPublishPropsGetAPIRequest) SetMarket(_market string) error { + r._market = _market + r.Set("market", _market) + return nil +} + +// Market Getter +func (r AlibabaItemPublishPropsGetAPIRequest) GetMarket() string { + return r._market +} +// CatId Setter +// 商品类目ID +func (r *AlibabaItemPublishPropsGetAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r AlibabaItemPublishPropsGetAPIRequest) GetCatId() int64 { + return r._catId +} +// Barcode Setter +// 商品条码 +func (r *AlibabaItemPublishPropsGetAPIRequest) SetBarcode(_barcode string) error { + r._barcode = _barcode + r.Set("barcode", _barcode) + return nil +} + +// Barcode Getter +func (r AlibabaItemPublishPropsGetAPIRequest) GetBarcode() string { + return r._barcode +} +// Schema Setter +// 类目属性渲染schema +func (r *AlibabaItemPublishPropsGetAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r AlibabaItemPublishPropsGetAPIRequest) GetSchema() string { + return r._schema +} +// PropId Setter +// 属性ID +func (r *AlibabaItemPublishPropsGetAPIRequest) SetPropId(_propId int64) error { + r._propId = _propId + r.Set("prop_id", _propId) + return nil +} + +// PropId Getter +func (r AlibabaItemPublishPropsGetAPIRequest) GetPropId() int64 { + return r._propId +} diff --git a/model/product/AlibabaItemPublishPropsGetAPIResponse.go b/model/product/AlibabaItemPublishPropsGetAPIResponse.go new file mode 100644 index 0000000000..732cb670db --- /dev/null +++ b/model/product/AlibabaItemPublishPropsGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品级联属性信息获取 API返回值 +alibaba.item.publish.props.get + +新商品发布,商品级联属性信息获取 +*/ +type AlibabaItemPublishPropsGetAPIResponse struct { + model.CommonResponse + AlibabaItemPublishPropsGetAPIResponseModel +} + +// 商品级联属性信息获取 成功返回结果 +type AlibabaItemPublishPropsGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_item_publish_props_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品发布规则信息,XML格式. + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/product/AlibabaItemPublishPropsGetResponse.go b/model/product/AlibabaItemPublishPropsGetResponse.go deleted file mode 100644 index a6c833754c..0000000000 --- a/model/product/AlibabaItemPublishPropsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品级联属性信息获取 API返回值 -alibaba.item.publish.props.get - -新商品发布,商品级联属性信息获取 -*/ -type AlibabaItemPublishPropsGetAPIResponse struct { - model.CommonResponse - AlibabaItemPublishPropsGetResponse -} - -// 商品级联属性信息获取 成功返回结果 -type AlibabaItemPublishPropsGetResponse struct { - XMLName xml.Name `xml:"alibaba_item_publish_props_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品发布规则信息,XML格式. - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/product/AlibabaItemPublishSchemaGetAPIRequest.go b/model/product/AlibabaItemPublishSchemaGetAPIRequest.go new file mode 100644 index 0000000000..a912620a25 --- /dev/null +++ b/model/product/AlibabaItemPublishSchemaGetAPIRequest.go @@ -0,0 +1,136 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商品发布规则信息 API请求 +alibaba.item.publish.schema.get + +新商品发布,获取商品发布规则信息 +*/ +type AlibabaItemPublishSchemaGetAPIRequest struct { + model.Params + // 业务扩展参数,需与平台约定好 + _bizType string + // 商品主图链接,最多5张,传入完整URL + _images []string + // 商品类型。b:一口价 a:拍卖 默认值b一口价 + _itemType string + // 商品发布的市场。taobao:淘宝,tmall:天猫,litetao:淘宝特价版 + _market string + // 商品类目ID + _catId int64 + // 产品ID,天猫市场(market=tmall)时必填 + _spuId int64 + // 商品条码 + _barcode string +} + +// 初始化AlibabaItemPublishSchemaGetAPIRequest对象 +func NewAlibabaItemPublishSchemaGetRequest() *AlibabaItemPublishSchemaGetAPIRequest{ + return &AlibabaItemPublishSchemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaItemPublishSchemaGetAPIRequest) GetApiMethodName() string { + return "alibaba.item.publish.schema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaItemPublishSchemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizType Setter +// 业务扩展参数,需与平台约定好 +func (r *AlibabaItemPublishSchemaGetAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r AlibabaItemPublishSchemaGetAPIRequest) GetBizType() string { + return r._bizType +} +// Images Setter +// 商品主图链接,最多5张,传入完整URL +func (r *AlibabaItemPublishSchemaGetAPIRequest) SetImages(_images []string) error { + r._images = _images + r.Set("images", _images) + return nil +} + +// Images Getter +func (r AlibabaItemPublishSchemaGetAPIRequest) GetImages() []string { + return r._images +} +// ItemType Setter +// 商品类型。b:一口价 a:拍卖 默认值b一口价 +func (r *AlibabaItemPublishSchemaGetAPIRequest) SetItemType(_itemType string) error { + r._itemType = _itemType + r.Set("item_type", _itemType) + return nil +} + +// ItemType Getter +func (r AlibabaItemPublishSchemaGetAPIRequest) GetItemType() string { + return r._itemType +} +// Market Setter +// 商品发布的市场。taobao:淘宝,tmall:天猫,litetao:淘宝特价版 +func (r *AlibabaItemPublishSchemaGetAPIRequest) SetMarket(_market string) error { + r._market = _market + r.Set("market", _market) + return nil +} + +// Market Getter +func (r AlibabaItemPublishSchemaGetAPIRequest) GetMarket() string { + return r._market +} +// CatId Setter +// 商品类目ID +func (r *AlibabaItemPublishSchemaGetAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r AlibabaItemPublishSchemaGetAPIRequest) GetCatId() int64 { + return r._catId +} +// SpuId Setter +// 产品ID,天猫市场(market=tmall)时必填 +func (r *AlibabaItemPublishSchemaGetAPIRequest) SetSpuId(_spuId int64) error { + r._spuId = _spuId + r.Set("spu_id", _spuId) + return nil +} + +// SpuId Getter +func (r AlibabaItemPublishSchemaGetAPIRequest) GetSpuId() int64 { + return r._spuId +} +// Barcode Setter +// 商品条码 +func (r *AlibabaItemPublishSchemaGetAPIRequest) SetBarcode(_barcode string) error { + r._barcode = _barcode + r.Set("barcode", _barcode) + return nil +} + +// Barcode Getter +func (r AlibabaItemPublishSchemaGetAPIRequest) GetBarcode() string { + return r._barcode +} diff --git a/model/product/AlibabaItemPublishSchemaGetAPIResponse.go b/model/product/AlibabaItemPublishSchemaGetAPIResponse.go new file mode 100644 index 0000000000..22162d5061 --- /dev/null +++ b/model/product/AlibabaItemPublishSchemaGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商品发布规则信息 API返回值 +alibaba.item.publish.schema.get + +新商品发布,获取商品发布规则信息 +*/ +type AlibabaItemPublishSchemaGetAPIResponse struct { + model.CommonResponse + AlibabaItemPublishSchemaGetAPIResponseModel +} + +// 获取商品发布规则信息 成功返回结果 +type AlibabaItemPublishSchemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_item_publish_schema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品发布规则信息,XML格式. + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/product/AlibabaItemPublishSchemaGetResponse.go b/model/product/AlibabaItemPublishSchemaGetResponse.go deleted file mode 100644 index 7db0507139..0000000000 --- a/model/product/AlibabaItemPublishSchemaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取商品发布规则信息 API返回值 -alibaba.item.publish.schema.get - -新商品发布,获取商品发布规则信息 -*/ -type AlibabaItemPublishSchemaGetAPIResponse struct { - model.CommonResponse - AlibabaItemPublishSchemaGetResponse -} - -// 获取商品发布规则信息 成功返回结果 -type AlibabaItemPublishSchemaGetResponse struct { - XMLName xml.Name `xml:"alibaba_item_publish_schema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品发布规则信息,XML格式. - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/product/AlibabaItemPublishSubmitAPIRequest.go b/model/product/AlibabaItemPublishSubmitAPIRequest.go new file mode 100644 index 0000000000..f6caba6f1e --- /dev/null +++ b/model/product/AlibabaItemPublishSubmitAPIRequest.go @@ -0,0 +1,122 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品发布 API请求 +alibaba.item.publish.submit + +新商品发布,提交商品发布信息 +*/ +type AlibabaItemPublishSubmitAPIRequest struct { + model.Params + // 业务扩展参数,需与平台约定好 + _bizType string + // 商品发布的市场。taobao:淘宝,tmall:天猫,litetao:淘宝特价版 + _market string + // 商品类目ID + _catId int64 + // 产品ID,天猫市场(market=tmall)时必填 + _spuId int64 + // 商品条码 + _barcode string + // 商品schema信息,通过alibaba.item.publish.props.get获取并补全后提交 + _schema string +} + +// 初始化AlibabaItemPublishSubmitAPIRequest对象 +func NewAlibabaItemPublishSubmitRequest() *AlibabaItemPublishSubmitAPIRequest{ + return &AlibabaItemPublishSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaItemPublishSubmitAPIRequest) GetApiMethodName() string { + return "alibaba.item.publish.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaItemPublishSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizType Setter +// 业务扩展参数,需与平台约定好 +func (r *AlibabaItemPublishSubmitAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r AlibabaItemPublishSubmitAPIRequest) GetBizType() string { + return r._bizType +} +// Market Setter +// 商品发布的市场。taobao:淘宝,tmall:天猫,litetao:淘宝特价版 +func (r *AlibabaItemPublishSubmitAPIRequest) SetMarket(_market string) error { + r._market = _market + r.Set("market", _market) + return nil +} + +// Market Getter +func (r AlibabaItemPublishSubmitAPIRequest) GetMarket() string { + return r._market +} +// CatId Setter +// 商品类目ID +func (r *AlibabaItemPublishSubmitAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r AlibabaItemPublishSubmitAPIRequest) GetCatId() int64 { + return r._catId +} +// SpuId Setter +// 产品ID,天猫市场(market=tmall)时必填 +func (r *AlibabaItemPublishSubmitAPIRequest) SetSpuId(_spuId int64) error { + r._spuId = _spuId + r.Set("spu_id", _spuId) + return nil +} + +// SpuId Getter +func (r AlibabaItemPublishSubmitAPIRequest) GetSpuId() int64 { + return r._spuId +} +// Barcode Setter +// 商品条码 +func (r *AlibabaItemPublishSubmitAPIRequest) SetBarcode(_barcode string) error { + r._barcode = _barcode + r.Set("barcode", _barcode) + return nil +} + +// Barcode Getter +func (r AlibabaItemPublishSubmitAPIRequest) GetBarcode() string { + return r._barcode +} +// Schema Setter +// 商品schema信息,通过alibaba.item.publish.props.get获取并补全后提交 +func (r *AlibabaItemPublishSubmitAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r AlibabaItemPublishSubmitAPIRequest) GetSchema() string { + return r._schema +} diff --git a/model/product/AlibabaItemPublishSubmitAPIResponse.go b/model/product/AlibabaItemPublishSubmitAPIResponse.go new file mode 100644 index 0000000000..4485464e20 --- /dev/null +++ b/model/product/AlibabaItemPublishSubmitAPIResponse.go @@ -0,0 +1,31 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品发布 API返回值 +alibaba.item.publish.submit + +新商品发布,提交商品发布信息 +*/ +type AlibabaItemPublishSubmitAPIResponse struct { + model.CommonResponse + AlibabaItemPublishSubmitAPIResponseModel +} + +// 商品发布 成功返回结果 +type AlibabaItemPublishSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_item_publish_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品创建时间 + CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"` + // 商品ID + ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` + // 商品所属市场 + Market string `json:"market,omitempty" xml:"market,omitempty"` +} diff --git a/model/product/AlibabaItemPublishSubmitResponse.go b/model/product/AlibabaItemPublishSubmitResponse.go deleted file mode 100644 index d70408a388..0000000000 --- a/model/product/AlibabaItemPublishSubmitResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品发布 API返回值 -alibaba.item.publish.submit - -新商品发布,提交商品发布信息 -*/ -type AlibabaItemPublishSubmitAPIResponse struct { - model.CommonResponse - AlibabaItemPublishSubmitResponse -} - -// 商品发布 成功返回结果 -type AlibabaItemPublishSubmitResponse struct { - XMLName xml.Name `xml:"alibaba_item_publish_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品创建时间 - CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"` - // 商品ID - ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` - // 商品所属市场 - Market string `json:"market,omitempty" xml:"market,omitempty"` -} diff --git a/model/product/AlibabaJymIndustryInformationCallbakAPIRequest.go b/model/product/AlibabaJymIndustryInformationCallbakAPIRequest.go new file mode 100644 index 0000000000..5c4915a41b --- /dev/null +++ b/model/product/AlibabaJymIndustryInformationCallbakAPIRequest.go @@ -0,0 +1,94 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +VMOS回调行业信息系统 API请求 +alibaba.jym.industry.information.callbak + +VMOS回调交易猫行业信息系统 +*/ +type AlibabaJymIndustryInformationCallbakAPIRequest struct { + model.Params + // 任务ID + _taskId string + // 幂等ID + _bizId string + // 状态 + _status int64 + // 内容 + _content string +} + +// 初始化AlibabaJymIndustryInformationCallbakAPIRequest对象 +func NewAlibabaJymIndustryInformationCallbakRequest() *AlibabaJymIndustryInformationCallbakAPIRequest{ + return &AlibabaJymIndustryInformationCallbakAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaJymIndustryInformationCallbakAPIRequest) GetApiMethodName() string { + return "alibaba.jym.industry.information.callbak" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaJymIndustryInformationCallbakAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TaskId Setter +// 任务ID +func (r *AlibabaJymIndustryInformationCallbakAPIRequest) SetTaskId(_taskId string) error { + r._taskId = _taskId + r.Set("task_id", _taskId) + return nil +} + +// TaskId Getter +func (r AlibabaJymIndustryInformationCallbakAPIRequest) GetTaskId() string { + return r._taskId +} +// BizId Setter +// 幂等ID +func (r *AlibabaJymIndustryInformationCallbakAPIRequest) SetBizId(_bizId string) error { + r._bizId = _bizId + r.Set("biz_id", _bizId) + return nil +} + +// BizId Getter +func (r AlibabaJymIndustryInformationCallbakAPIRequest) GetBizId() string { + return r._bizId +} +// Status Setter +// 状态 +func (r *AlibabaJymIndustryInformationCallbakAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaJymIndustryInformationCallbakAPIRequest) GetStatus() int64 { + return r._status +} +// Content Setter +// 内容 +func (r *AlibabaJymIndustryInformationCallbakAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r AlibabaJymIndustryInformationCallbakAPIRequest) GetContent() string { + return r._content +} diff --git a/model/product/AlibabaJymIndustryInformationCallbakAPIResponse.go b/model/product/AlibabaJymIndustryInformationCallbakAPIResponse.go new file mode 100644 index 0000000000..d3d6a8f41f --- /dev/null +++ b/model/product/AlibabaJymIndustryInformationCallbakAPIResponse.go @@ -0,0 +1,29 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +VMOS回调行业信息系统 API返回值 +alibaba.jym.industry.information.callbak + +VMOS回调交易猫行业信息系统 +*/ +type AlibabaJymIndustryInformationCallbakAPIResponse struct { + model.CommonResponse + AlibabaJymIndustryInformationCallbakAPIResponseModel +} + +// VMOS回调行业信息系统 成功返回结果 +type AlibabaJymIndustryInformationCallbakAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_jym_industry_information_callbak_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 状态码 + StateCode string `json:"state_code,omitempty" xml:"state_code,omitempty"` + // 扩展错误信息 + ExtraErrMsg string `json:"extra_err_msg,omitempty" xml:"extra_err_msg,omitempty"` +} diff --git a/model/product/AlibabaJymIndustryInformationCallbakResponse.go b/model/product/AlibabaJymIndustryInformationCallbakResponse.go deleted file mode 100644 index 484f292023..0000000000 --- a/model/product/AlibabaJymIndustryInformationCallbakResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -VMOS回调行业信息系统 API返回值 -alibaba.jym.industry.information.callbak - -VMOS回调交易猫行业信息系统 -*/ -type AlibabaJymIndustryInformationCallbakAPIResponse struct { - model.CommonResponse - AlibabaJymIndustryInformationCallbakResponse -} - -// VMOS回调行业信息系统 成功返回结果 -type AlibabaJymIndustryInformationCallbakResponse struct { - XMLName xml.Name `xml:"alibaba_jym_industry_information_callbak_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 状态码 - StateCode string `json:"state_code,omitempty" xml:"state_code,omitempty"` - // 扩展错误信息 - ExtraErrMsg string `json:"extra_err_msg,omitempty" xml:"extra_err_msg,omitempty"` -} diff --git a/model/product/AlibabaWholesaleGoodsGetAPIRequest.go b/model/product/AlibabaWholesaleGoodsGetAPIRequest.go new file mode 100644 index 0000000000..ee04616bdb --- /dev/null +++ b/model/product/AlibabaWholesaleGoodsGetAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询阿里巴巴批发市场商品详情 API请求 +alibaba.wholesale.goods.get + +查询阿里巴巴批发市场商品详情 +*/ +type AlibabaWholesaleGoodsGetAPIRequest struct { + model.Params + // country_code + _countryCode string + // id + _id string +} + +// 初始化AlibabaWholesaleGoodsGetAPIRequest对象 +func NewAlibabaWholesaleGoodsGetRequest() *AlibabaWholesaleGoodsGetAPIRequest{ + return &AlibabaWholesaleGoodsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWholesaleGoodsGetAPIRequest) GetApiMethodName() string { + return "alibaba.wholesale.goods.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWholesaleGoodsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CountryCode Setter +// country_code +func (r *AlibabaWholesaleGoodsGetAPIRequest) SetCountryCode(_countryCode string) error { + r._countryCode = _countryCode + r.Set("country_code", _countryCode) + return nil +} + +// CountryCode Getter +func (r AlibabaWholesaleGoodsGetAPIRequest) GetCountryCode() string { + return r._countryCode +} +// Id Setter +// id +func (r *AlibabaWholesaleGoodsGetAPIRequest) SetId(_id string) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaWholesaleGoodsGetAPIRequest) GetId() string { + return r._id +} diff --git a/model/product/AlibabaWholesaleGoodsGetAPIResponse.go b/model/product/AlibabaWholesaleGoodsGetAPIResponse.go new file mode 100644 index 0000000000..aed9c9d62f --- /dev/null +++ b/model/product/AlibabaWholesaleGoodsGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询阿里巴巴批发市场商品详情 API返回值 +alibaba.wholesale.goods.get + +查询阿里巴巴批发市场商品详情 +*/ +type AlibabaWholesaleGoodsGetAPIResponse struct { + model.CommonResponse + AlibabaWholesaleGoodsGetAPIResponseModel +} + +// 查询阿里巴巴批发市场商品详情 成功返回结果 +type AlibabaWholesaleGoodsGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wholesale_goods_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // wholesale goods detail result + WholesaleGoodsResult *WholesaleGoodsOpenResult `json:"wholesale_goods_result,omitempty" xml:"wholesale_goods_result,omitempty"` +} diff --git a/model/product/AlibabaWholesaleGoodsGetResponse.go b/model/product/AlibabaWholesaleGoodsGetResponse.go deleted file mode 100644 index db8f7edcb1..0000000000 --- a/model/product/AlibabaWholesaleGoodsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询阿里巴巴批发市场商品详情 API返回值 -alibaba.wholesale.goods.get - -查询阿里巴巴批发市场商品详情 -*/ -type AlibabaWholesaleGoodsGetAPIResponse struct { - model.CommonResponse - AlibabaWholesaleGoodsGetResponse -} - -// 查询阿里巴巴批发市场商品详情 成功返回结果 -type AlibabaWholesaleGoodsGetResponse struct { - XMLName xml.Name `xml:"alibaba_wholesale_goods_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // wholesale goods detail result - WholesaleGoodsResult *WholesaleGoodsOpenResult `json:"wholesale_goods_result,omitempty" xml:"wholesale_goods_result,omitempty"` -} diff --git a/model/product/AlibabaWholesaleGoodsSearchAPIRequest.go b/model/product/AlibabaWholesaleGoodsSearchAPIRequest.go new file mode 100644 index 0000000000..6b59eee8dc --- /dev/null +++ b/model/product/AlibabaWholesaleGoodsSearchAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批发市场产品搜索 API请求 +alibaba.wholesale.goods.search + +批发市场产品搜索 +*/ +type AlibabaWholesaleGoodsSearchAPIRequest struct { + model.Params + // SearchGoodsOption + _paramSearchGoodsOption *SearchGoodsOption +} + +// 初始化AlibabaWholesaleGoodsSearchAPIRequest对象 +func NewAlibabaWholesaleGoodsSearchRequest() *AlibabaWholesaleGoodsSearchAPIRequest{ + return &AlibabaWholesaleGoodsSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWholesaleGoodsSearchAPIRequest) GetApiMethodName() string { + return "alibaba.wholesale.goods.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWholesaleGoodsSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamSearchGoodsOption Setter +// SearchGoodsOption +func (r *AlibabaWholesaleGoodsSearchAPIRequest) SetParamSearchGoodsOption(_paramSearchGoodsOption *SearchGoodsOption) error { + r._paramSearchGoodsOption = _paramSearchGoodsOption + r.Set("param_search_goods_option", _paramSearchGoodsOption) + return nil +} + +// ParamSearchGoodsOption Getter +func (r AlibabaWholesaleGoodsSearchAPIRequest) GetParamSearchGoodsOption() *SearchGoodsOption { + return r._paramSearchGoodsOption +} diff --git a/model/product/AlibabaWholesaleGoodsSearchAPIResponse.go b/model/product/AlibabaWholesaleGoodsSearchAPIResponse.go new file mode 100644 index 0000000000..75177d91fe --- /dev/null +++ b/model/product/AlibabaWholesaleGoodsSearchAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批发市场产品搜索 API返回值 +alibaba.wholesale.goods.search + +批发市场产品搜索 +*/ +type AlibabaWholesaleGoodsSearchAPIResponse struct { + model.CommonResponse + AlibabaWholesaleGoodsSearchAPIResponseModel +} + +// 批发市场产品搜索 成功返回结果 +type AlibabaWholesaleGoodsSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wholesale_goods_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 在线批发商品搜索结果 + WholesaleGoodsSearchResult *WholesaleSearchOpenResult `json:"wholesale_goods_search_result,omitempty" xml:"wholesale_goods_search_result,omitempty"` +} diff --git a/model/product/AlibabaWholesaleGoodsSearchResponse.go b/model/product/AlibabaWholesaleGoodsSearchResponse.go deleted file mode 100644 index faa0695133..0000000000 --- a/model/product/AlibabaWholesaleGoodsSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批发市场产品搜索 API返回值 -alibaba.wholesale.goods.search - -批发市场产品搜索 -*/ -type AlibabaWholesaleGoodsSearchAPIResponse struct { - model.CommonResponse - AlibabaWholesaleGoodsSearchResponse -} - -// 批发市场产品搜索 成功返回结果 -type AlibabaWholesaleGoodsSearchResponse struct { - XMLName xml.Name `xml:"alibaba_wholesale_goods_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 在线批发商品搜索结果 - WholesaleGoodsSearchResult *WholesaleSearchOpenResult `json:"wholesale_goods_search_result,omitempty" xml:"wholesale_goods_search_result,omitempty"` -} diff --git a/model/product/AlibabaWholesaleShippinglineTemplateInitAPIRequest.go b/model/product/AlibabaWholesaleShippinglineTemplateInitAPIRequest.go new file mode 100644 index 0000000000..85b0680640 --- /dev/null +++ b/model/product/AlibabaWholesaleShippinglineTemplateInitAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建初始模板 API请求 +alibaba.wholesale.shippingline.template.init + +创建默认的几种运费模板 +*/ +type AlibabaWholesaleShippinglineTemplateInitAPIRequest struct { + model.Params + // 创建初始运费模板参数 + _initialTemplate []InitialTemplate +} + +// 初始化AlibabaWholesaleShippinglineTemplateInitAPIRequest对象 +func NewAlibabaWholesaleShippinglineTemplateInitRequest() *AlibabaWholesaleShippinglineTemplateInitAPIRequest{ + return &AlibabaWholesaleShippinglineTemplateInitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWholesaleShippinglineTemplateInitAPIRequest) GetApiMethodName() string { + return "alibaba.wholesale.shippingline.template.init" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWholesaleShippinglineTemplateInitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InitialTemplate Setter +// 创建初始运费模板参数 +func (r *AlibabaWholesaleShippinglineTemplateInitAPIRequest) SetInitialTemplate(_initialTemplate []InitialTemplate) error { + r._initialTemplate = _initialTemplate + r.Set("initial_template", _initialTemplate) + return nil +} + +// InitialTemplate Getter +func (r AlibabaWholesaleShippinglineTemplateInitAPIRequest) GetInitialTemplate() []InitialTemplate { + return r._initialTemplate +} diff --git a/model/product/AlibabaWholesaleShippinglineTemplateInitAPIResponse.go b/model/product/AlibabaWholesaleShippinglineTemplateInitAPIResponse.go new file mode 100644 index 0000000000..a7b8bb1384 --- /dev/null +++ b/model/product/AlibabaWholesaleShippinglineTemplateInitAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建初始模板 API返回值 +alibaba.wholesale.shippingline.template.init + +创建默认的几种运费模板 +*/ +type AlibabaWholesaleShippinglineTemplateInitAPIResponse struct { + model.CommonResponse + AlibabaWholesaleShippinglineTemplateInitAPIResponseModel +} + +// 创建初始模板 成功返回结果 +type AlibabaWholesaleShippinglineTemplateInitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wholesale_shippingline_template_init_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 模板是否创建成功 + InitTemplateResponse bool `json:"init_template_response,omitempty" xml:"init_template_response,omitempty"` +} diff --git a/model/product/AlibabaWholesaleShippinglineTemplateInitResponse.go b/model/product/AlibabaWholesaleShippinglineTemplateInitResponse.go deleted file mode 100644 index aae5dd8cb2..0000000000 --- a/model/product/AlibabaWholesaleShippinglineTemplateInitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建初始模板 API返回值 -alibaba.wholesale.shippingline.template.init - -创建默认的几种运费模板 -*/ -type AlibabaWholesaleShippinglineTemplateInitAPIResponse struct { - model.CommonResponse - AlibabaWholesaleShippinglineTemplateInitResponse -} - -// 创建初始模板 成功返回结果 -type AlibabaWholesaleShippinglineTemplateInitResponse struct { - XMLName xml.Name `xml:"alibaba_wholesale_shippingline_template_init_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 模板是否创建成功 - InitTemplateResponse bool `json:"init_template_response,omitempty" xml:"init_template_response,omitempty"` -} diff --git a/model/product/AliexpressSocialItemPromotionAPIRequest.go b/model/product/AliexpressSocialItemPromotionAPIRequest.go new file mode 100644 index 0000000000..af7351aadb --- /dev/null +++ b/model/product/AliexpressSocialItemPromotionAPIRequest.go @@ -0,0 +1,108 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取推广链接 API请求 +aliexpress.social.item.promotion + +获取商品社交推广链接 +*/ +type AliexpressSocialItemPromotionAPIRequest struct { + model.Params + // 推广的商品链接 + _targetUrl string + // 子渠道号 + _af string + // campaign Id + _cn string + // creative id + _cv string + // click id + _dp string +} + +// 初始化AliexpressSocialItemPromotionAPIRequest对象 +func NewAliexpressSocialItemPromotionRequest() *AliexpressSocialItemPromotionAPIRequest{ + return &AliexpressSocialItemPromotionAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSocialItemPromotionAPIRequest) GetApiMethodName() string { + return "aliexpress.social.item.promotion" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSocialItemPromotionAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TargetUrl Setter +// 推广的商品链接 +func (r *AliexpressSocialItemPromotionAPIRequest) SetTargetUrl(_targetUrl string) error { + r._targetUrl = _targetUrl + r.Set("target_url", _targetUrl) + return nil +} + +// TargetUrl Getter +func (r AliexpressSocialItemPromotionAPIRequest) GetTargetUrl() string { + return r._targetUrl +} +// Af Setter +// 子渠道号 +func (r *AliexpressSocialItemPromotionAPIRequest) SetAf(_af string) error { + r._af = _af + r.Set("af", _af) + return nil +} + +// Af Getter +func (r AliexpressSocialItemPromotionAPIRequest) GetAf() string { + return r._af +} +// Cn Setter +// campaign Id +func (r *AliexpressSocialItemPromotionAPIRequest) SetCn(_cn string) error { + r._cn = _cn + r.Set("cn", _cn) + return nil +} + +// Cn Getter +func (r AliexpressSocialItemPromotionAPIRequest) GetCn() string { + return r._cn +} +// Cv Setter +// creative id +func (r *AliexpressSocialItemPromotionAPIRequest) SetCv(_cv string) error { + r._cv = _cv + r.Set("cv", _cv) + return nil +} + +// Cv Getter +func (r AliexpressSocialItemPromotionAPIRequest) GetCv() string { + return r._cv +} +// Dp Setter +// click id +func (r *AliexpressSocialItemPromotionAPIRequest) SetDp(_dp string) error { + r._dp = _dp + r.Set("dp", _dp) + return nil +} + +// Dp Getter +func (r AliexpressSocialItemPromotionAPIRequest) GetDp() string { + return r._dp +} diff --git a/model/product/AliexpressSocialItemPromotionAPIResponse.go b/model/product/AliexpressSocialItemPromotionAPIResponse.go new file mode 100644 index 0000000000..a76641ea78 --- /dev/null +++ b/model/product/AliexpressSocialItemPromotionAPIResponse.go @@ -0,0 +1,33 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取推广链接 API返回值 +aliexpress.social.item.promotion + +获取商品社交推广链接 +*/ +type AliexpressSocialItemPromotionAPIResponse struct { + model.CommonResponse + AliexpressSocialItemPromotionAPIResponseModel +} + +// 获取推广链接 成功返回结果 +type AliexpressSocialItemPromotionAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_social_item_promotion_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推广链接 + PromotionUrl string `json:"promotion_url,omitempty" xml:"promotion_url,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/product/AliexpressSocialItemPromotionResponse.go b/model/product/AliexpressSocialItemPromotionResponse.go deleted file mode 100644 index f7a60692bf..0000000000 --- a/model/product/AliexpressSocialItemPromotionResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取推广链接 API返回值 -aliexpress.social.item.promotion - -获取商品社交推广链接 -*/ -type AliexpressSocialItemPromotionAPIResponse struct { - model.CommonResponse - AliexpressSocialItemPromotionResponse -} - -// 获取推广链接 成功返回结果 -type AliexpressSocialItemPromotionResponse struct { - XMLName xml.Name `xml:"aliexpress_social_item_promotion_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推广链接 - PromotionUrl string `json:"promotion_url,omitempty" xml:"promotion_url,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/product/AliexpressSocialItemRankingAPIRequest.go b/model/product/AliexpressSocialItemRankingAPIRequest.go new file mode 100644 index 0000000000..53fc5061b7 --- /dev/null +++ b/model/product/AliexpressSocialItemRankingAPIRequest.go @@ -0,0 +1,122 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +社交排行榜 API请求 +aliexpress.social.item.ranking + +社交商品成交排行榜 +*/ +type AliexpressSocialItemRankingAPIRequest struct { + model.Params + // 币种 + _currency string + // 国家列表 + _countryList []string + // locale,格式为language+"_"+country + _locale string + // 页码 + _pageNo int64 + // 类目ID + _cateId int64 + // 每页条数 + _pageSize int64 +} + +// 初始化AliexpressSocialItemRankingAPIRequest对象 +func NewAliexpressSocialItemRankingRequest() *AliexpressSocialItemRankingAPIRequest{ + return &AliexpressSocialItemRankingAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSocialItemRankingAPIRequest) GetApiMethodName() string { + return "aliexpress.social.item.ranking" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSocialItemRankingAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Currency Setter +// 币种 +func (r *AliexpressSocialItemRankingAPIRequest) SetCurrency(_currency string) error { + r._currency = _currency + r.Set("currency", _currency) + return nil +} + +// Currency Getter +func (r AliexpressSocialItemRankingAPIRequest) GetCurrency() string { + return r._currency +} +// CountryList Setter +// 国家列表 +func (r *AliexpressSocialItemRankingAPIRequest) SetCountryList(_countryList []string) error { + r._countryList = _countryList + r.Set("country_list", _countryList) + return nil +} + +// CountryList Getter +func (r AliexpressSocialItemRankingAPIRequest) GetCountryList() []string { + return r._countryList +} +// Locale Setter +// locale,格式为language+"_"+country +func (r *AliexpressSocialItemRankingAPIRequest) SetLocale(_locale string) error { + r._locale = _locale + r.Set("locale", _locale) + return nil +} + +// Locale Getter +func (r AliexpressSocialItemRankingAPIRequest) GetLocale() string { + return r._locale +} +// PageNo Setter +// 页码 +func (r *AliexpressSocialItemRankingAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r AliexpressSocialItemRankingAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// CateId Setter +// 类目ID +func (r *AliexpressSocialItemRankingAPIRequest) SetCateId(_cateId int64) error { + r._cateId = _cateId + r.Set("cate_id", _cateId) + return nil +} + +// CateId Getter +func (r AliexpressSocialItemRankingAPIRequest) GetCateId() int64 { + return r._cateId +} +// PageSize Setter +// 每页条数 +func (r *AliexpressSocialItemRankingAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AliexpressSocialItemRankingAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/product/AliexpressSocialItemRankingAPIResponse.go b/model/product/AliexpressSocialItemRankingAPIResponse.go new file mode 100644 index 0000000000..c1bc6d9023 --- /dev/null +++ b/model/product/AliexpressSocialItemRankingAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +社交排行榜 API返回值 +aliexpress.social.item.ranking + +社交商品成交排行榜 +*/ +type AliexpressSocialItemRankingAPIResponse struct { + model.CommonResponse + AliexpressSocialItemRankingAPIResponseModel +} + +// 社交排行榜 成功返回结果 +type AliexpressSocialItemRankingAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_social_item_ranking_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回包装类型 + Result *ItemPickPagingResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/product/AliexpressSocialItemRankingResponse.go b/model/product/AliexpressSocialItemRankingResponse.go deleted file mode 100644 index b4d90a5e8b..0000000000 --- a/model/product/AliexpressSocialItemRankingResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -社交排行榜 API返回值 -aliexpress.social.item.ranking - -社交商品成交排行榜 -*/ -type AliexpressSocialItemRankingAPIResponse struct { - model.CommonResponse - AliexpressSocialItemRankingResponse -} - -// 社交排行榜 成功返回结果 -type AliexpressSocialItemRankingResponse struct { - XMLName xml.Name `xml:"aliexpress_social_item_ranking_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回包装类型 - Result *ItemPickPagingResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/product/AliexpressSocialItemSearchAPIRequest.go b/model/product/AliexpressSocialItemSearchAPIRequest.go new file mode 100644 index 0000000000..e4a5d2684a --- /dev/null +++ b/model/product/AliexpressSocialItemSearchAPIRequest.go @@ -0,0 +1,290 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AE社交选品 API请求 +aliexpress.social.item.search + +AE社交选品,通过各种筛选条件对社交商品池进行筛选 +*/ +type AliexpressSocialItemSearchAPIRequest struct { + model.Params + // 是否有视频 + _hasVideo bool + // order by properties + _orderBy string + // 是否逆序 + _desc bool + // page size + _pageSize int64 + // 是否免邮 + _isShipFree bool + // 佣金最大值 + _commissionRateMax string + // 佣金最小值 + _commissionRateMin string + // 物流时效 + _logisticsTime int64 + // 是否联盟商品 + _allianceItem bool + // 类目ID + _cateId int64 + // 页码 + _pageNo int64 + // 最低价格 + _minPrice string + // 最高价格 + _maxPrice string + // 搜索关键字 + _keyword string + // shipTo国家 + _shipTo string + // 评价分数 + _commentScore string + // 币种 + _currency string + // locale,格式为language+"_"+country + _locale string +} + +// 初始化AliexpressSocialItemSearchAPIRequest对象 +func NewAliexpressSocialItemSearchRequest() *AliexpressSocialItemSearchAPIRequest{ + return &AliexpressSocialItemSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSocialItemSearchAPIRequest) GetApiMethodName() string { + return "aliexpress.social.item.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSocialItemSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// HasVideo Setter +// 是否有视频 +func (r *AliexpressSocialItemSearchAPIRequest) SetHasVideo(_hasVideo bool) error { + r._hasVideo = _hasVideo + r.Set("has_video", _hasVideo) + return nil +} + +// HasVideo Getter +func (r AliexpressSocialItemSearchAPIRequest) GetHasVideo() bool { + return r._hasVideo +} +// OrderBy Setter +// order by properties +func (r *AliexpressSocialItemSearchAPIRequest) SetOrderBy(_orderBy string) error { + r._orderBy = _orderBy + r.Set("order_by", _orderBy) + return nil +} + +// OrderBy Getter +func (r AliexpressSocialItemSearchAPIRequest) GetOrderBy() string { + return r._orderBy +} +// Desc Setter +// 是否逆序 +func (r *AliexpressSocialItemSearchAPIRequest) SetDesc(_desc bool) error { + r._desc = _desc + r.Set("desc", _desc) + return nil +} + +// Desc Getter +func (r AliexpressSocialItemSearchAPIRequest) GetDesc() bool { + return r._desc +} +// PageSize Setter +// page size +func (r *AliexpressSocialItemSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AliexpressSocialItemSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// IsShipFree Setter +// 是否免邮 +func (r *AliexpressSocialItemSearchAPIRequest) SetIsShipFree(_isShipFree bool) error { + r._isShipFree = _isShipFree + r.Set("is_ship_free", _isShipFree) + return nil +} + +// IsShipFree Getter +func (r AliexpressSocialItemSearchAPIRequest) GetIsShipFree() bool { + return r._isShipFree +} +// CommissionRateMax Setter +// 佣金最大值 +func (r *AliexpressSocialItemSearchAPIRequest) SetCommissionRateMax(_commissionRateMax string) error { + r._commissionRateMax = _commissionRateMax + r.Set("commission_rate_max", _commissionRateMax) + return nil +} + +// CommissionRateMax Getter +func (r AliexpressSocialItemSearchAPIRequest) GetCommissionRateMax() string { + return r._commissionRateMax +} +// CommissionRateMin Setter +// 佣金最小值 +func (r *AliexpressSocialItemSearchAPIRequest) SetCommissionRateMin(_commissionRateMin string) error { + r._commissionRateMin = _commissionRateMin + r.Set("commission_rate_min", _commissionRateMin) + return nil +} + +// CommissionRateMin Getter +func (r AliexpressSocialItemSearchAPIRequest) GetCommissionRateMin() string { + return r._commissionRateMin +} +// LogisticsTime Setter +// 物流时效 +func (r *AliexpressSocialItemSearchAPIRequest) SetLogisticsTime(_logisticsTime int64) error { + r._logisticsTime = _logisticsTime + r.Set("logistics_time", _logisticsTime) + return nil +} + +// LogisticsTime Getter +func (r AliexpressSocialItemSearchAPIRequest) GetLogisticsTime() int64 { + return r._logisticsTime +} +// AllianceItem Setter +// 是否联盟商品 +func (r *AliexpressSocialItemSearchAPIRequest) SetAllianceItem(_allianceItem bool) error { + r._allianceItem = _allianceItem + r.Set("alliance_item", _allianceItem) + return nil +} + +// AllianceItem Getter +func (r AliexpressSocialItemSearchAPIRequest) GetAllianceItem() bool { + return r._allianceItem +} +// CateId Setter +// 类目ID +func (r *AliexpressSocialItemSearchAPIRequest) SetCateId(_cateId int64) error { + r._cateId = _cateId + r.Set("cate_id", _cateId) + return nil +} + +// CateId Getter +func (r AliexpressSocialItemSearchAPIRequest) GetCateId() int64 { + return r._cateId +} +// PageNo Setter +// 页码 +func (r *AliexpressSocialItemSearchAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r AliexpressSocialItemSearchAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// MinPrice Setter +// 最低价格 +func (r *AliexpressSocialItemSearchAPIRequest) SetMinPrice(_minPrice string) error { + r._minPrice = _minPrice + r.Set("min_price", _minPrice) + return nil +} + +// MinPrice Getter +func (r AliexpressSocialItemSearchAPIRequest) GetMinPrice() string { + return r._minPrice +} +// MaxPrice Setter +// 最高价格 +func (r *AliexpressSocialItemSearchAPIRequest) SetMaxPrice(_maxPrice string) error { + r._maxPrice = _maxPrice + r.Set("max_price", _maxPrice) + return nil +} + +// MaxPrice Getter +func (r AliexpressSocialItemSearchAPIRequest) GetMaxPrice() string { + return r._maxPrice +} +// Keyword Setter +// 搜索关键字 +func (r *AliexpressSocialItemSearchAPIRequest) SetKeyword(_keyword string) error { + r._keyword = _keyword + r.Set("keyword", _keyword) + return nil +} + +// Keyword Getter +func (r AliexpressSocialItemSearchAPIRequest) GetKeyword() string { + return r._keyword +} +// ShipTo Setter +// shipTo国家 +func (r *AliexpressSocialItemSearchAPIRequest) SetShipTo(_shipTo string) error { + r._shipTo = _shipTo + r.Set("ship_to", _shipTo) + return nil +} + +// ShipTo Getter +func (r AliexpressSocialItemSearchAPIRequest) GetShipTo() string { + return r._shipTo +} +// CommentScore Setter +// 评价分数 +func (r *AliexpressSocialItemSearchAPIRequest) SetCommentScore(_commentScore string) error { + r._commentScore = _commentScore + r.Set("comment_score", _commentScore) + return nil +} + +// CommentScore Getter +func (r AliexpressSocialItemSearchAPIRequest) GetCommentScore() string { + return r._commentScore +} +// Currency Setter +// 币种 +func (r *AliexpressSocialItemSearchAPIRequest) SetCurrency(_currency string) error { + r._currency = _currency + r.Set("currency", _currency) + return nil +} + +// Currency Getter +func (r AliexpressSocialItemSearchAPIRequest) GetCurrency() string { + return r._currency +} +// Locale Setter +// locale,格式为language+"_"+country +func (r *AliexpressSocialItemSearchAPIRequest) SetLocale(_locale string) error { + r._locale = _locale + r.Set("locale", _locale) + return nil +} + +// Locale Getter +func (r AliexpressSocialItemSearchAPIRequest) GetLocale() string { + return r._locale +} diff --git a/model/product/AliexpressSocialItemSearchAPIResponse.go b/model/product/AliexpressSocialItemSearchAPIResponse.go new file mode 100644 index 0000000000..86ee5c13db --- /dev/null +++ b/model/product/AliexpressSocialItemSearchAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AE社交选品 API返回值 +aliexpress.social.item.search + +AE社交选品,通过各种筛选条件对社交商品池进行筛选 +*/ +type AliexpressSocialItemSearchAPIResponse struct { + model.CommonResponse + AliexpressSocialItemSearchAPIResponseModel +} + +// AE社交选品 成功返回结果 +type AliexpressSocialItemSearchAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_social_item_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 报类型 + Result *ItemPickPagingResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/product/AliexpressSocialItemSearchResponse.go b/model/product/AliexpressSocialItemSearchResponse.go deleted file mode 100644 index fe7aa51799..0000000000 --- a/model/product/AliexpressSocialItemSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AE社交选品 API返回值 -aliexpress.social.item.search - -AE社交选品,通过各种筛选条件对社交商品池进行筛选 -*/ -type AliexpressSocialItemSearchAPIResponse struct { - model.CommonResponse - AliexpressSocialItemSearchResponse -} - -// AE社交选品 成功返回结果 -type AliexpressSocialItemSearchResponse struct { - XMLName xml.Name `xml:"aliexpress_social_item_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 报类型 - Result *ItemPickPagingResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/product/AlitripTravelElementsSearchAPIRequest.go b/model/product/AlitripTravelElementsSearchAPIRequest.go new file mode 100644 index 0000000000..d20893aa41 --- /dev/null +++ b/model/product/AlitripTravelElementsSearchAPIRequest.go @@ -0,0 +1,94 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家元素搜索 API请求 +alitrip.travel.elements.search + +提供商家维护的景点、酒店、餐饮等元素搜索 +*/ +type AlitripTravelElementsSearchAPIRequest struct { + model.Params + // 商家id + _sellerId int64 + // 查询关键词 + _query string + // 查询数量,限制100 + _count int64 + // 资源类型 + _type int64 +} + +// 初始化AlitripTravelElementsSearchAPIRequest对象 +func NewAlitripTravelElementsSearchRequest() *AlitripTravelElementsSearchAPIRequest{ + return &AlitripTravelElementsSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelElementsSearchAPIRequest) GetApiMethodName() string { + return "alitrip.travel.elements.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelElementsSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SellerId Setter +// 商家id +func (r *AlitripTravelElementsSearchAPIRequest) SetSellerId(_sellerId int64) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r AlitripTravelElementsSearchAPIRequest) GetSellerId() int64 { + return r._sellerId +} +// Query Setter +// 查询关键词 +func (r *AlitripTravelElementsSearchAPIRequest) SetQuery(_query string) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlitripTravelElementsSearchAPIRequest) GetQuery() string { + return r._query +} +// Count Setter +// 查询数量,限制100 +func (r *AlitripTravelElementsSearchAPIRequest) SetCount(_count int64) error { + r._count = _count + r.Set("count", _count) + return nil +} + +// Count Getter +func (r AlitripTravelElementsSearchAPIRequest) GetCount() int64 { + return r._count +} +// Type Setter +// 资源类型 +func (r *AlitripTravelElementsSearchAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlitripTravelElementsSearchAPIRequest) GetType() int64 { + return r._type +} diff --git a/model/product/AlitripTravelElementsSearchAPIResponse.go b/model/product/AlitripTravelElementsSearchAPIResponse.go new file mode 100644 index 0000000000..ff90c8fe93 --- /dev/null +++ b/model/product/AlitripTravelElementsSearchAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家元素搜索 API返回值 +alitrip.travel.elements.search + +提供商家维护的景点、酒店、餐饮等元素搜索 +*/ +type AlitripTravelElementsSearchAPIResponse struct { + model.CommonResponse + AlitripTravelElementsSearchAPIResponseModel +} + +// 商家元素搜索 成功返回结果 +type AlitripTravelElementsSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_elements_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *ResourceData `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/product/AlitripTravelElementsSearchResponse.go b/model/product/AlitripTravelElementsSearchResponse.go deleted file mode 100644 index facb064762..0000000000 --- a/model/product/AlitripTravelElementsSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家元素搜索 API返回值 -alitrip.travel.elements.search - -提供商家维护的景点、酒店、餐饮等元素搜索 -*/ -type AlitripTravelElementsSearchAPIResponse struct { - model.CommonResponse - AlitripTravelElementsSearchResponse -} - -// 商家元素搜索 成功返回结果 -type AlitripTravelElementsSearchResponse struct { - XMLName xml.Name `xml:"alitrip_travel_elements_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *ResourceData `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/product/CainiaoCntecItemChangeMessageAPIRequest.go b/model/product/CainiaoCntecItemChangeMessageAPIRequest.go new file mode 100644 index 0000000000..7ca3191bfc --- /dev/null +++ b/model/product/CainiaoCntecItemChangeMessageAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品变更消息 API请求 +cainiao.cntec.item.change.message + +供货商商品信息变更消息 +*/ +type CainiaoCntecItemChangeMessageAPIRequest struct { + model.Params + // 供应商商品变更信息 + _itemChangeMessage *SupplyItemChangeMessage +} + +// 初始化CainiaoCntecItemChangeMessageAPIRequest对象 +func NewCainiaoCntecItemChangeMessageRequest() *CainiaoCntecItemChangeMessageAPIRequest{ + return &CainiaoCntecItemChangeMessageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCntecItemChangeMessageAPIRequest) GetApiMethodName() string { + return "cainiao.cntec.item.change.message" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCntecItemChangeMessageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemChangeMessage Setter +// 供应商商品变更信息 +func (r *CainiaoCntecItemChangeMessageAPIRequest) SetItemChangeMessage(_itemChangeMessage *SupplyItemChangeMessage) error { + r._itemChangeMessage = _itemChangeMessage + r.Set("item_change_message", _itemChangeMessage) + return nil +} + +// ItemChangeMessage Getter +func (r CainiaoCntecItemChangeMessageAPIRequest) GetItemChangeMessage() *SupplyItemChangeMessage { + return r._itemChangeMessage +} diff --git a/model/product/CainiaoCntecItemChangeMessageAPIResponse.go b/model/product/CainiaoCntecItemChangeMessageAPIResponse.go new file mode 100644 index 0000000000..239715c08c --- /dev/null +++ b/model/product/CainiaoCntecItemChangeMessageAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品变更消息 API返回值 +cainiao.cntec.item.change.message + +供货商商品信息变更消息 +*/ +type CainiaoCntecItemChangeMessageAPIResponse struct { + model.CommonResponse + CainiaoCntecItemChangeMessageAPIResponseModel +} + +// 商品变更消息 成功返回结果 +type CainiaoCntecItemChangeMessageAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cntec_item_change_message_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用返回的result结构体 + Result *CainiaoCntecItemChangeMessageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/product/CainiaoCntecItemChangeMessageResponse.go b/model/product/CainiaoCntecItemChangeMessageResponse.go deleted file mode 100644 index 82df542236..0000000000 --- a/model/product/CainiaoCntecItemChangeMessageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品变更消息 API返回值 -cainiao.cntec.item.change.message - -供货商商品信息变更消息 -*/ -type CainiaoCntecItemChangeMessageAPIResponse struct { - model.CommonResponse - CainiaoCntecItemChangeMessageResponse -} - -// 商品变更消息 成功返回结果 -type CainiaoCntecItemChangeMessageResponse struct { - XMLName xml.Name `xml:"cainiao_cntec_item_change_message_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用返回的result结构体 - Result *CainiaoCntecItemChangeMessageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/product/TaobaoAftersaleGetAPIRequest.go b/model/product/TaobaoAftersaleGetAPIRequest.go new file mode 100644 index 0000000000..4ba7f58bab --- /dev/null +++ b/model/product/TaobaoAftersaleGetAPIRequest.go @@ -0,0 +1,38 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询用户售后服务模板 API请求 +taobao.aftersale.get + +查询用户设置的售后服务模板,仅返回标题和id +*/ +type TaobaoAftersaleGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoAftersaleGetAPIRequest对象 +func NewTaobaoAftersaleGetRequest() *TaobaoAftersaleGetAPIRequest{ + return &TaobaoAftersaleGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAftersaleGetAPIRequest) GetApiMethodName() string { + return "taobao.aftersale.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAftersaleGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/product/TaobaoAftersaleGetAPIResponse.go b/model/product/TaobaoAftersaleGetAPIResponse.go new file mode 100644 index 0000000000..e10dfec381 --- /dev/null +++ b/model/product/TaobaoAftersaleGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询用户售后服务模板 API返回值 +taobao.aftersale.get + +查询用户设置的售后服务模板,仅返回标题和id +*/ +type TaobaoAftersaleGetAPIResponse struct { + model.CommonResponse + TaobaoAftersaleGetAPIResponseModel +} + +// 查询用户售后服务模板 成功返回结果 +type TaobaoAftersaleGetAPIResponseModel struct { + XMLName xml.Name `xml:"aftersale_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 售后服务返回对象 + AfterSales []AfterSale `json:"after_sales,omitempty" xml:"after_sales>after_sale,omitempty"` +} diff --git a/model/product/TaobaoAftersaleGetResponse.go b/model/product/TaobaoAftersaleGetResponse.go deleted file mode 100644 index 2947455c40..0000000000 --- a/model/product/TaobaoAftersaleGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询用户售后服务模板 API返回值 -taobao.aftersale.get - -查询用户设置的售后服务模板,仅返回标题和id -*/ -type TaobaoAftersaleGetAPIResponse struct { - model.CommonResponse - TaobaoAftersaleGetResponse -} - -// 查询用户售后服务模板 成功返回结果 -type TaobaoAftersaleGetResponse struct { - XMLName xml.Name `xml:"aftersale_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 售后服务返回对象 - AfterSales []AfterSale `json:"after_sales,omitempty" xml:"after_sales>after_sale,omitempty"` -} diff --git a/model/product/TaobaoBaikeImportZhubaoDataAPIRequest.go b/model/product/TaobaoBaikeImportZhubaoDataAPIRequest.go new file mode 100644 index 0000000000..5ba003afc8 --- /dev/null +++ b/model/product/TaobaoBaikeImportZhubaoDataAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +导入数据到商品百科服务 API请求 +taobao.baike.import.zhubao.data + +用于接入外部数据录入到商品百科中 +*/ +type TaobaoBaikeImportZhubaoDataAPIRequest struct { + model.Params + // 约定的Json数据 + _dataJsonStr string +} + +// 初始化TaobaoBaikeImportZhubaoDataAPIRequest对象 +func NewTaobaoBaikeImportZhubaoDataRequest() *TaobaoBaikeImportZhubaoDataAPIRequest{ + return &TaobaoBaikeImportZhubaoDataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaikeImportZhubaoDataAPIRequest) GetApiMethodName() string { + return "taobao.baike.import.zhubao.data" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaikeImportZhubaoDataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DataJsonStr Setter +// 约定的Json数据 +func (r *TaobaoBaikeImportZhubaoDataAPIRequest) SetDataJsonStr(_dataJsonStr string) error { + r._dataJsonStr = _dataJsonStr + r.Set("data_json_str", _dataJsonStr) + return nil +} + +// DataJsonStr Getter +func (r TaobaoBaikeImportZhubaoDataAPIRequest) GetDataJsonStr() string { + return r._dataJsonStr +} diff --git a/model/product/TaobaoBaikeImportZhubaoDataAPIResponse.go b/model/product/TaobaoBaikeImportZhubaoDataAPIResponse.go new file mode 100644 index 0000000000..24809ce554 --- /dev/null +++ b/model/product/TaobaoBaikeImportZhubaoDataAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +导入数据到商品百科服务 API返回值 +taobao.baike.import.zhubao.data + +用于接入外部数据录入到商品百科中 +*/ +type TaobaoBaikeImportZhubaoDataAPIResponse struct { + model.CommonResponse + TaobaoBaikeImportZhubaoDataAPIResponseModel +} + +// 导入数据到商品百科服务 成功返回结果 +type TaobaoBaikeImportZhubaoDataAPIResponseModel struct { + XMLName xml.Name `xml:"baike_import_zhubao_data_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoBaikeImportZhubaoDataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/product/TaobaoBaikeImportZhubaoDataResponse.go b/model/product/TaobaoBaikeImportZhubaoDataResponse.go deleted file mode 100644 index 912bbfa010..0000000000 --- a/model/product/TaobaoBaikeImportZhubaoDataResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -导入数据到商品百科服务 API返回值 -taobao.baike.import.zhubao.data - -用于接入外部数据录入到商品百科中 -*/ -type TaobaoBaikeImportZhubaoDataAPIResponse struct { - model.CommonResponse - TaobaoBaikeImportZhubaoDataResponse -} - -// 导入数据到商品百科服务 成功返回结果 -type TaobaoBaikeImportZhubaoDataResponse struct { - XMLName xml.Name `xml:"baike_import_zhubao_data_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoBaikeImportZhubaoDataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/product/TaobaoBaikeImportZhubaoPictureAPIRequest.go b/model/product/TaobaoBaikeImportZhubaoPictureAPIRequest.go new file mode 100644 index 0000000000..26de063bbd --- /dev/null +++ b/model/product/TaobaoBaikeImportZhubaoPictureAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +百科图片数据导入 API请求 +taobao.baike.import.zhubao.picture + +用于接入外部--图片--录入到商品百科中 +*/ +type TaobaoBaikeImportZhubaoPictureAPIRequest struct { + model.Params + // 图片二进制数据 + _picture *model.File +} + +// 初始化TaobaoBaikeImportZhubaoPictureAPIRequest对象 +func NewTaobaoBaikeImportZhubaoPictureRequest() *TaobaoBaikeImportZhubaoPictureAPIRequest{ + return &TaobaoBaikeImportZhubaoPictureAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBaikeImportZhubaoPictureAPIRequest) GetApiMethodName() string { + return "taobao.baike.import.zhubao.picture" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBaikeImportZhubaoPictureAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Picture Setter +// 图片二进制数据 +func (r *TaobaoBaikeImportZhubaoPictureAPIRequest) SetPicture(_picture *model.File) error { + r._picture = _picture + r.Set("picture", _picture) + return nil +} + +// Picture Getter +func (r TaobaoBaikeImportZhubaoPictureAPIRequest) GetPicture() *model.File { + return r._picture +} diff --git a/model/product/TaobaoBaikeImportZhubaoPictureAPIResponse.go b/model/product/TaobaoBaikeImportZhubaoPictureAPIResponse.go new file mode 100644 index 0000000000..6c342c1047 --- /dev/null +++ b/model/product/TaobaoBaikeImportZhubaoPictureAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +百科图片数据导入 API返回值 +taobao.baike.import.zhubao.picture + +用于接入外部--图片--录入到商品百科中 +*/ +type TaobaoBaikeImportZhubaoPictureAPIResponse struct { + model.CommonResponse + TaobaoBaikeImportZhubaoPictureAPIResponseModel +} + +// 百科图片数据导入 成功返回结果 +type TaobaoBaikeImportZhubaoPictureAPIResponseModel struct { + XMLName xml.Name `xml:"baike_import_zhubao_picture_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoBaikeImportZhubaoPictureResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/product/TaobaoBaikeImportZhubaoPictureResponse.go b/model/product/TaobaoBaikeImportZhubaoPictureResponse.go deleted file mode 100644 index 4571c1e3b7..0000000000 --- a/model/product/TaobaoBaikeImportZhubaoPictureResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -百科图片数据导入 API返回值 -taobao.baike.import.zhubao.picture - -用于接入外部--图片--录入到商品百科中 -*/ -type TaobaoBaikeImportZhubaoPictureAPIResponse struct { - model.CommonResponse - TaobaoBaikeImportZhubaoPictureResponse -} - -// 百科图片数据导入 成功返回结果 -type TaobaoBaikeImportZhubaoPictureResponse struct { - XMLName xml.Name `xml:"baike_import_zhubao_picture_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoBaikeImportZhubaoPictureResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/product/TaobaoBanamadpcItemAddAPIRequest.go b/model/product/TaobaoBanamadpcItemAddAPIRequest.go new file mode 100644 index 0000000000..8b97bdf9a3 --- /dev/null +++ b/model/product/TaobaoBanamadpcItemAddAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新发商品 API请求 +taobao.banamadpc.item.add + +巴拿马供应商通过此接口新发商品 +*/ +type TaobaoBanamadpcItemAddAPIRequest struct { + model.Params + // 类目id + _catId int64 + // 商品的schema xml + _xml string +} + +// 初始化TaobaoBanamadpcItemAddAPIRequest对象 +func NewTaobaoBanamadpcItemAddRequest() *TaobaoBanamadpcItemAddAPIRequest{ + return &TaobaoBanamadpcItemAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBanamadpcItemAddAPIRequest) GetApiMethodName() string { + return "taobao.banamadpc.item.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBanamadpcItemAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CatId Setter +// 类目id +func (r *TaobaoBanamadpcItemAddAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r TaobaoBanamadpcItemAddAPIRequest) GetCatId() int64 { + return r._catId +} +// Xml Setter +// 商品的schema xml +func (r *TaobaoBanamadpcItemAddAPIRequest) SetXml(_xml string) error { + r._xml = _xml + r.Set("xml", _xml) + return nil +} + +// Xml Getter +func (r TaobaoBanamadpcItemAddAPIRequest) GetXml() string { + return r._xml +} diff --git a/model/product/TaobaoBanamadpcItemAddAPIResponse.go b/model/product/TaobaoBanamadpcItemAddAPIResponse.go new file mode 100644 index 0000000000..b470a25018 --- /dev/null +++ b/model/product/TaobaoBanamadpcItemAddAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新发商品 API返回值 +taobao.banamadpc.item.add + +巴拿马供应商通过此接口新发商品 +*/ +type TaobaoBanamadpcItemAddAPIResponse struct { + model.CommonResponse + TaobaoBanamadpcItemAddAPIResponseModel +} + +// 新发商品 成功返回结果 +type TaobaoBanamadpcItemAddAPIResponseModel struct { + XMLName xml.Name `xml:"banamadpc_item_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 无 + ApiResult *TaobaoBanamadpcItemAddApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/product/TaobaoBanamadpcItemAddResponse.go b/model/product/TaobaoBanamadpcItemAddResponse.go deleted file mode 100644 index ed279b0fd1..0000000000 --- a/model/product/TaobaoBanamadpcItemAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新发商品 API返回值 -taobao.banamadpc.item.add - -巴拿马供应商通过此接口新发商品 -*/ -type TaobaoBanamadpcItemAddAPIResponse struct { - model.CommonResponse - TaobaoBanamadpcItemAddResponse -} - -// 新发商品 成功返回结果 -type TaobaoBanamadpcItemAddResponse struct { - XMLName xml.Name `xml:"banamadpc_item_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 无 - ApiResult *TaobaoBanamadpcItemAddApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/product/TaobaoBanamadpcItemEditRenderAPIRequest.go b/model/product/TaobaoBanamadpcItemEditRenderAPIRequest.go new file mode 100644 index 0000000000..1f11e6df3b --- /dev/null +++ b/model/product/TaobaoBanamadpcItemEditRenderAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +编辑商品发布页 API请求 +taobao.banamadpc.item.edit.render + +巴拿马供应商通过此接口获取编辑商品发布页 +*/ +type TaobaoBanamadpcItemEditRenderAPIRequest struct { + model.Params + // 商品id + _itemId int64 +} + +// 初始化TaobaoBanamadpcItemEditRenderAPIRequest对象 +func NewTaobaoBanamadpcItemEditRenderRequest() *TaobaoBanamadpcItemEditRenderAPIRequest{ + return &TaobaoBanamadpcItemEditRenderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBanamadpcItemEditRenderAPIRequest) GetApiMethodName() string { + return "taobao.banamadpc.item.edit.render" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBanamadpcItemEditRenderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TaobaoBanamadpcItemEditRenderAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoBanamadpcItemEditRenderAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/product/TaobaoBanamadpcItemEditRenderAPIResponse.go b/model/product/TaobaoBanamadpcItemEditRenderAPIResponse.go new file mode 100644 index 0000000000..c8776c8f73 --- /dev/null +++ b/model/product/TaobaoBanamadpcItemEditRenderAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +编辑商品发布页 API返回值 +taobao.banamadpc.item.edit.render + +巴拿马供应商通过此接口获取编辑商品发布页 +*/ +type TaobaoBanamadpcItemEditRenderAPIResponse struct { + model.CommonResponse + TaobaoBanamadpcItemEditRenderAPIResponseModel +} + +// 编辑商品发布页 成功返回结果 +type TaobaoBanamadpcItemEditRenderAPIResponseModel struct { + XMLName xml.Name `xml:"banamadpc_item_edit_render_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 无 + ApiResult *TaobaoBanamadpcItemEditRenderApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/product/TaobaoBanamadpcItemEditRenderResponse.go b/model/product/TaobaoBanamadpcItemEditRenderResponse.go deleted file mode 100644 index 08b402e954..0000000000 --- a/model/product/TaobaoBanamadpcItemEditRenderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -编辑商品发布页 API返回值 -taobao.banamadpc.item.edit.render - -巴拿马供应商通过此接口获取编辑商品发布页 -*/ -type TaobaoBanamadpcItemEditRenderAPIResponse struct { - model.CommonResponse - TaobaoBanamadpcItemEditRenderResponse -} - -// 编辑商品发布页 成功返回结果 -type TaobaoBanamadpcItemEditRenderResponse struct { - XMLName xml.Name `xml:"banamadpc_item_edit_render_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 无 - ApiResult *TaobaoBanamadpcItemEditRenderApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/product/TaobaoBanamadpcItemRenderAPIRequest.go b/model/product/TaobaoBanamadpcItemRenderAPIRequest.go new file mode 100644 index 0000000000..9f0abeae34 --- /dev/null +++ b/model/product/TaobaoBanamadpcItemRenderAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新发商品发布页 API请求 +taobao.banamadpc.item.render + +巴拿马供应商通过此接口新发商品发布页 +*/ +type TaobaoBanamadpcItemRenderAPIRequest struct { + model.Params + // 类目ID + _catId int64 +} + +// 初始化TaobaoBanamadpcItemRenderAPIRequest对象 +func NewTaobaoBanamadpcItemRenderRequest() *TaobaoBanamadpcItemRenderAPIRequest{ + return &TaobaoBanamadpcItemRenderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBanamadpcItemRenderAPIRequest) GetApiMethodName() string { + return "taobao.banamadpc.item.render" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBanamadpcItemRenderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CatId Setter +// 类目ID +func (r *TaobaoBanamadpcItemRenderAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r TaobaoBanamadpcItemRenderAPIRequest) GetCatId() int64 { + return r._catId +} diff --git a/model/product/TaobaoBanamadpcItemRenderAPIResponse.go b/model/product/TaobaoBanamadpcItemRenderAPIResponse.go new file mode 100644 index 0000000000..72480151fb --- /dev/null +++ b/model/product/TaobaoBanamadpcItemRenderAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新发商品发布页 API返回值 +taobao.banamadpc.item.render + +巴拿马供应商通过此接口新发商品发布页 +*/ +type TaobaoBanamadpcItemRenderAPIResponse struct { + model.CommonResponse + TaobaoBanamadpcItemRenderAPIResponseModel +} + +// 新发商品发布页 成功返回结果 +type TaobaoBanamadpcItemRenderAPIResponseModel struct { + XMLName xml.Name `xml:"banamadpc_item_render_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 根据站点名称查询产品 + ApiResult *TaobaoBanamadpcItemRenderApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/product/TaobaoBanamadpcItemRenderResponse.go b/model/product/TaobaoBanamadpcItemRenderResponse.go deleted file mode 100644 index 3126cef814..0000000000 --- a/model/product/TaobaoBanamadpcItemRenderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新发商品发布页 API返回值 -taobao.banamadpc.item.render - -巴拿马供应商通过此接口新发商品发布页 -*/ -type TaobaoBanamadpcItemRenderAPIResponse struct { - model.CommonResponse - TaobaoBanamadpcItemRenderResponse -} - -// 新发商品发布页 成功返回结果 -type TaobaoBanamadpcItemRenderResponse struct { - XMLName xml.Name `xml:"banamadpc_item_render_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 根据站点名称查询产品 - ApiResult *TaobaoBanamadpcItemRenderApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/product/TaobaoBanamadpcItemSelectPropAPIRequest.go b/model/product/TaobaoBanamadpcItemSelectPropAPIRequest.go new file mode 100644 index 0000000000..2403f1f734 --- /dev/null +++ b/model/product/TaobaoBanamadpcItemSelectPropAPIRequest.go @@ -0,0 +1,80 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取子属性 API请求 +taobao.banamadpc.item.select.prop + +巴拿马供应商通过此接口获取子属性 +*/ +type TaobaoBanamadpcItemSelectPropAPIRequest struct { + model.Params + // 子属性的schema xml + _xml string + // 属性id + _propId int64 + // 类目id + _catId int64 +} + +// 初始化TaobaoBanamadpcItemSelectPropAPIRequest对象 +func NewTaobaoBanamadpcItemSelectPropRequest() *TaobaoBanamadpcItemSelectPropAPIRequest{ + return &TaobaoBanamadpcItemSelectPropAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBanamadpcItemSelectPropAPIRequest) GetApiMethodName() string { + return "taobao.banamadpc.item.select.prop" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBanamadpcItemSelectPropAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Xml Setter +// 子属性的schema xml +func (r *TaobaoBanamadpcItemSelectPropAPIRequest) SetXml(_xml string) error { + r._xml = _xml + r.Set("xml", _xml) + return nil +} + +// Xml Getter +func (r TaobaoBanamadpcItemSelectPropAPIRequest) GetXml() string { + return r._xml +} +// PropId Setter +// 属性id +func (r *TaobaoBanamadpcItemSelectPropAPIRequest) SetPropId(_propId int64) error { + r._propId = _propId + r.Set("prop_id", _propId) + return nil +} + +// PropId Getter +func (r TaobaoBanamadpcItemSelectPropAPIRequest) GetPropId() int64 { + return r._propId +} +// CatId Setter +// 类目id +func (r *TaobaoBanamadpcItemSelectPropAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r TaobaoBanamadpcItemSelectPropAPIRequest) GetCatId() int64 { + return r._catId +} diff --git a/model/product/TaobaoBanamadpcItemSelectPropAPIResponse.go b/model/product/TaobaoBanamadpcItemSelectPropAPIResponse.go new file mode 100644 index 0000000000..4a17b9aa22 --- /dev/null +++ b/model/product/TaobaoBanamadpcItemSelectPropAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取子属性 API返回值 +taobao.banamadpc.item.select.prop + +巴拿马供应商通过此接口获取子属性 +*/ +type TaobaoBanamadpcItemSelectPropAPIResponse struct { + model.CommonResponse + TaobaoBanamadpcItemSelectPropAPIResponseModel +} + +// 获取子属性 成功返回结果 +type TaobaoBanamadpcItemSelectPropAPIResponseModel struct { + XMLName xml.Name `xml:"banamadpc_item_select_prop_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 无 + ApiResult *TaobaoBanamadpcItemSelectPropApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/product/TaobaoBanamadpcItemSelectPropResponse.go b/model/product/TaobaoBanamadpcItemSelectPropResponse.go deleted file mode 100644 index 9bcf812156..0000000000 --- a/model/product/TaobaoBanamadpcItemSelectPropResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取子属性 API返回值 -taobao.banamadpc.item.select.prop - -巴拿马供应商通过此接口获取子属性 -*/ -type TaobaoBanamadpcItemSelectPropAPIResponse struct { - model.CommonResponse - TaobaoBanamadpcItemSelectPropResponse -} - -// 获取子属性 成功返回结果 -type TaobaoBanamadpcItemSelectPropResponse struct { - XMLName xml.Name `xml:"banamadpc_item_select_prop_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 无 - ApiResult *TaobaoBanamadpcItemSelectPropApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/product/TaobaoBanamadpcItemUpdateAPIRequest.go b/model/product/TaobaoBanamadpcItemUpdateAPIRequest.go new file mode 100644 index 0000000000..240e890c48 --- /dev/null +++ b/model/product/TaobaoBanamadpcItemUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +编辑商品 API请求 +taobao.banamadpc.item.update + +巴拿马供应商通过此接口编辑商品 +*/ +type TaobaoBanamadpcItemUpdateAPIRequest struct { + model.Params + // 商品的schema xml + _xml string + // 商品id + _itemId int64 +} + +// 初始化TaobaoBanamadpcItemUpdateAPIRequest对象 +func NewTaobaoBanamadpcItemUpdateRequest() *TaobaoBanamadpcItemUpdateAPIRequest{ + return &TaobaoBanamadpcItemUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoBanamadpcItemUpdateAPIRequest) GetApiMethodName() string { + return "taobao.banamadpc.item.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoBanamadpcItemUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Xml Setter +// 商品的schema xml +func (r *TaobaoBanamadpcItemUpdateAPIRequest) SetXml(_xml string) error { + r._xml = _xml + r.Set("xml", _xml) + return nil +} + +// Xml Getter +func (r TaobaoBanamadpcItemUpdateAPIRequest) GetXml() string { + return r._xml +} +// ItemId Setter +// 商品id +func (r *TaobaoBanamadpcItemUpdateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoBanamadpcItemUpdateAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/product/TaobaoBanamadpcItemUpdateAPIResponse.go b/model/product/TaobaoBanamadpcItemUpdateAPIResponse.go new file mode 100644 index 0000000000..4b90d5c8fa --- /dev/null +++ b/model/product/TaobaoBanamadpcItemUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +编辑商品 API返回值 +taobao.banamadpc.item.update + +巴拿马供应商通过此接口编辑商品 +*/ +type TaobaoBanamadpcItemUpdateAPIResponse struct { + model.CommonResponse + TaobaoBanamadpcItemUpdateAPIResponseModel +} + +// 编辑商品 成功返回结果 +type TaobaoBanamadpcItemUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"banamadpc_item_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 无 + ApiResult *TaobaoBanamadpcItemUpdateApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/product/TaobaoBanamadpcItemUpdateResponse.go b/model/product/TaobaoBanamadpcItemUpdateResponse.go deleted file mode 100644 index d0cb8bf2d1..0000000000 --- a/model/product/TaobaoBanamadpcItemUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -编辑商品 API返回值 -taobao.banamadpc.item.update - -巴拿马供应商通过此接口编辑商品 -*/ -type TaobaoBanamadpcItemUpdateAPIResponse struct { - model.CommonResponse - TaobaoBanamadpcItemUpdateResponse -} - -// 编辑商品 成功返回结果 -type TaobaoBanamadpcItemUpdateResponse struct { - XMLName xml.Name `xml:"banamadpc_item_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 无 - ApiResult *TaobaoBanamadpcItemUpdateApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/product/TaobaoItemAddAPIRequest.go b/model/product/TaobaoItemAddAPIRequest.go new file mode 100644 index 0000000000..e13b0d1cae --- /dev/null +++ b/model/product/TaobaoItemAddAPIRequest.go @@ -0,0 +1,1765 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加一个商品 API请求 +taobao.item.add + +此接口用于新增一个淘宝商品 +商品的属性和sku的属性有包含的关系,商品的价格要位于sku的价格区间之中(例如,sku价格有5元、10元两种,那么商品的价格就需要大于等于5元,小于等于10元,否则新增商品会失败) +商品的类目和商品的价格、sku的价格都有一定的相关性(具体的关系要通过类目属性查询接口获得) +商品的运费承担方式和邮费设置有相关性,卖家承担运费不用设置邮费,买家承担运费需要设置邮费 +当关键属性值选择了“其他”的时候,需要输入input_pids和input_str商品才能添加成功。 +
点击查看更多商品API说明 +*/ +type TaobaoItemAddAPIRequest struct { + model.Params + // 此参数暂时不起作用 + _skuSpecIds string + // 此参数暂时不起作用 + _skuDeliveryTimes string + // 家装建材类目,商品SKU的长度,正整数,单位为cm,部分类目必选。 数据和SKU一一对应,用,分隔,如:20,30,30 + _skuHdLength string + // 家装建材类目,商品SKU的高度,单位为cm,部分类目必选。 天猫和淘宝格式不同。天猫:可选值为:"0-15", "15-25", "25-50", "50-60", "60-80", "80-120", "120-160", "160-200"。 数据和SKU一一对应,用,分隔,格式如:15-25,25-50,25-50。 淘宝:正整数,单位为cm,格式如:20,30,30 + _skuHdHeight string + // 家装建材类目,商品SKU的灯头数量,正整数,大于等于3,部分类目必选。天猫商家专用。 数据和SKU一一对应,用,分隔,如:3,5,7 + _skuHdLampQuantity string + // 用户自行输入的子属性名和属性值,结构:"父属性值;一级子属性名;一级子属性值;二级子属性名;自定义输入值,....",如:“耐克;耐克系列;科比系列;科比系列;2K5,Nike乔丹鞋;乔丹系列;乔丹鞋系列;乔丹鞋系列;json5”,多个自定义属性用','分割,input_str需要与input_pids一一对应,注:通常一个类目下用户可输入的关键属性不超过1个。所有属性别名加起来不能超过3999字节。此处不可以使用“其他”、“其它”和“其她”这三个词。 + _inputStr string + // 用户自行输入的类目属性ID串,结构:"pid1,pid2,pid3",如:"20000"(表示品牌) 注:通常一个类目下用户可输入的关键属性不超过1个。 + _inputPids string + // 更新的sku的属性串,调用taobao.itemprops.get获取。格式:pid1:vid;pid2:vid,多个sku属性之间用逗号分隔。该字段内的属性需要在props字段同时包含。如果新增商品包含了sku,则此字段一定要传入,字段长度要控制在512个字节以内。 + _skuProperties string + // Sku的数量串,结构如:num1,num2,num3 如:2,3 + _skuQuantities string + // Sku的价格串,结构如:10.00,5.00,… 精确到2位小数;单位:元。如:200.07,表示:200元7分 + _skuPrices string + // Sku的外部id串,结构如:1234,1342,… sku_properties, sku_quantities, sku_prices, sku_outer_ids在输入数据时要一一对应,如果没有sku_outer_ids也要写上这个参数,入参是","(这个是两个sku的示列,逗号数应该是sku个数减1);该参数最大长度是512个字节 + _skuOuterIds string + // sku层面的条形码,多个SKU情况,与SKU价格库存格式类似,用逗号分隔 + _skuBarcode string + // 设置是否使用发货时间,商品级别,sku级别 + _deliveryTimeNeedDeliveryTime string + // 发货时间类型:绝对发货时间或者相对发货时间 + _deliveryTimeDeliveryTimeType string + // 商品级别设置的发货时间。设置了商品级别的发货时间,相对发货时间,则填写相对发货时间的天数(大于3);绝对发货时间,则填写yyyy-mm-dd格式,如2013-11-11 + _deliveryTimeDeliveryTime string + // 参考价。该商品订单首次支付价格为 订金 价格,用户可根据 参考价 估算全款。详见说明:http://bangpai.taobao.com/group/thread/15031186-303287205.htm + _msPaymentReferencePrice string + // 尾款可抵扣金额。详见说明:http://bangpai.taobao.com/group/thread/15031186-303287205.htm + _msPaymentVoucherPrice string + // 订金。在“线上付订金线下付尾款”模式中,有订金、尾款可抵扣金额和参考价,三者需要同时填写。该商品订单首次支付价格为 订金 价格,用户可根据 参考价 估算全款。该模式有别于“一口价”付款方式,针对一个商品,只能选择两种付款方式中的一种,其适用于家装、二手车等场景。详见说明:http://bangpai.taobao.com/group/thread/15031186-303287205.htm + _msPaymentPrice string + // 预约门店是否支持门店自提,1:是 + _localityLifeObs string + // 新版电子凭证字段 + _localityLifeVersion string + // 新版电子凭证包 id + _localityLifePackageid string + // 生产许可证号 + _foodSecurityPrdLicenseNo string + // 产品标准号 + _foodSecurityDesignCode string + // 厂名 + _foodSecurityFactory string + // 厂址 + _foodSecurityFactorySite string + // 厂家联系方式 + _foodSecurityContact string + // 配料表 + _foodSecurityMix string + // 储藏方法 + _foodSecurityPlanStorage string + // 保质期,默认有单位,传入数字 + _foodSecurityPeriod string + // 食品添加剂 + _foodSecurityFoodAdditive string + // 供货商 + _foodSecuritySupplier string + // 生产开始日期,格式必须为yyyy-MM-dd + _foodSecurityProductDateStart string + // 生产结束日期,格式必须为yyyy-MM-dd + _foodSecurityProductDateEnd string + // 进货开始日期,要在生产日期之后,格式必须为yyyy-MM-dd + _foodSecurityStockDateStart string + // 进货结束日期,要在生产日期之后,格式必须为yyyy-MM-dd + _foodSecurityStockDateEnd string + // 健字号,保健品/膳食营养补充剂 这个类目下特有的信息,此类目下无需填写生产许可证编号(QS),如果填写了生产许可证编号(QS)将被忽略不保存;保存宝贝时,标题前会自动加上健字号产品名称一起作为宝贝标题; + _foodSecurityHealthProductNo string + // 所在地省份。如浙江 + _locationState string + // 所在地城市。如杭州 。 + _locationCity string + // 商品数量。取值范围:0-900000000的整数。且需要等于Sku所有数量的和。拍卖商品中增加拍只能为1,荷兰拍要在[2,500)范围内。 + _num int64 + // 商品价格。取值范围:0-100000000;精确到2位小数;单位:元。如:200.07,表示:200元7分。需要在正确的价格区间内。拍卖商品对应的起拍价。 + _price float64 + // 发布类型。可选值:fixed(一口价),auction(拍卖)。B商家不能发布拍卖商品,而且拍卖商品是没有SKU的。拍卖商品发布时需要附加拍卖商品信息:拍卖类型(paimai_info.mode,拍卖类型包括三种:增价拍[1],荷兰拍[2]以及降价拍[3]),商品数量(num),起拍价(price),价格幅度(increament),保证金(paimai_info.deposit)。另外拍卖商品支持自定义销售周期,通过paimai_info.valid_hour和paimai_info.valid_minute来指定。对于降价拍来说需要设置降价周期(paimai_info.interval)和拍卖保留价(paimai_info.reserve)。注意:通过taobao.item.get接口获取拍卖信息时,会返回除了valid_hour和valid_minute之外的所有拍卖信息。 + _type string + // 新旧程度。可选值:new(新),second(二手)。B商家不能发布二手商品。如果是二手商品,特定类目下属性里面必填新旧成色属性 + _stuffStatus string + // 宝贝标题。不能超过30字符,受违禁词控制。天猫图书管控类目最大允许120字符; + _title string + // 宝贝描述。字数要大于5个字符,小于25000个字符,受违禁词控制 + _desc string + // 商品上传后的状态。可选值:onsale(出售中),instock(仓库中);默认值:onsale + _approveStatus string + // 叶子类目id + _cid int64 + // 商品属性列表。格式:pid:vid;pid:vid。属性的pid调用taobao.itemprops.get取得,属性值的vid用taobao.itempropvalues.get取得vid。 如果该类目下面没有属性,可以不用填写。如果有属性,必选属性必填,其他非必选属性可以选择不填写.属性不能超过35对。所有属性加起来包括分割符不能超过549字节,单个属性没有限制。 如果有属性是可输入的话,则用字段input_str填入属性的值 + _props string + // 运费承担方式。可选值:seller(卖家承担),buyer(买家承担);默认值:seller。卖家承担不用设置邮费和postage_id.买家承担的时候,必填邮费和postage_id 如果用户设置了运费模板会优先使用运费模板,否则要同步设置邮费(post_fee,express_fee,ems_fee) + _freightPayer string + // 有效期。可选值:7,14;单位:天;默认值:14 + _validThru int64 + // 是否有发票。可选值:true,false (商城卖家此字段必须为true);默认值:false(无发票) + _hasInvoice bool + // 是否有保修。可选值:true,false;默认值:false(不保修) + _hasWarranty bool + // 橱窗推荐。可选值:true,false;默认值:false(不推荐) + _hasShowcase bool + // 商品所属的店铺类目列表。按逗号分隔。结构:",cid1,cid2,...,",如果店铺类目存在二级类目,必须传入子类目cids。 + _sellerCids string + // 支持会员打折。可选值:true,false;默认值:false(不打折) + _hasDiscount bool + // 平邮费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:5.07,表示:5元7分. 注:post_fee,express_fee,ems_fee需要一起填写 + _postFee float64 + // 快递费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:15.07,表示:15元7分 + _expressFee float64 + // ems费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:25.07,表示:25元7分 + _emsFee float64 + // 定时上架时间。(时间格式:yyyy-MM-dd HH:mm:ss) + _listTime string + // 加价(降价)幅度。如果为0,代表系统代理幅度。对于增价拍和荷兰拍来说是加价幅度,对于降价拍来说是降价幅度。 + _increment float64 + // 商品主图片。类型:JPG,GIF;最大长度:3M。(推荐使用pic_path字段,先把图片上传到卖家图片空间) + _image *model.File + // 宝贝所属的运费模板ID。取值范围:整数且必须是该卖家的运费模板的ID(可通过taobao.delivery.template.get获得当前会话用户的所有邮费模板) + _postageId int64 + // 商品的积分返点比例。如:5,表示:返点比例0.5%. 注意:返点比例必须是>0的整数,而且最大是90,即为9%.B商家在发布非虚拟商品时,返点必须是 5的倍数,即0.5%的倍数。其它是1的倍数,即0.1%的倍数。无名良品商家发布商品时,复用该字段记录积分宝返点比例,返点必须是对应类目的返点步长的整数倍,默认是5,即0.5%。注意此时该字段值依旧必须是>0的整数,最高值不超过500,即50% + _auctionPoint int64 + // 属性值别名。如pid:vid:别名;pid1:vid1:别名1 ,其中:pid是属性id vid是属性值id。总长度不超过800个字符,如"123:333:你好",引号内的是10个字符。 + _propertyAlias string + // 商品文字的字符集。繁体传入"zh_HK",简体传入"zh_CN",不传默认为简体 + _lang string + // 商品外部编码,该字段的最大长度是64个字节 + _outerId string + // 商品所属的产品ID(B商家发布商品需要用) + _productId int64 + // (推荐)商品主图需要关联的图片空间的相对url。这个url所对应的图片必须要属于当前用户。pic_path和image只需要传入一个,如果两个都传,默认选择pic_path + _picPath string + // 代充商品类型。在代充商品的类目下,不传表示不标记商品类型(交易搜索中就不能通过标记搜到相关的交易了)。可选类型: no_mark(不做类型标记) time_card(点卡软件代充) fee_card(话费软件代充) + _autoFill string + // 是否在淘宝上显示(如果传FALSE,则在淘宝主站无法显示该商品) + _isTaobao bool + // 是否在外店显示 + _isEx bool + // 是否是3D + _is3D bool + // 是否承诺退换货服务!虚拟商品无须设置此项! + _sellPromise bool + // 此为货到付款运费模板的ID,对应的JAVA类型是long,如果COD卖家应用了货到付款运费模板,此值要进行设置。该字段已经废弃 + _codPostageId int64 + // 实物闪电发货 + _isLightningConsignment bool + // 商品的重量(商超卖家专用字段) + _weight int64 + // 商品是否为新品。只有在当前类目开通新品,并且当前用户拥有该类目下发布新品权限时才能设置is_xinpin为true,否则设置true后会返回错误码:isv.invalid-permission:add-xinpin。同时只有一口价全新的宝贝才能设置为新品,否则会返回错误码:isv.invalid-parameter:xinpin。不设置该参数值或设置为false效果一致。 + _isXinpin bool + // 商品是否支持拍下减库存:1支持;2取消支持(付款减库存);0(默认)不更改集市卖家默认拍下减库存;商城卖家默认付款减库存 + _subStock int64 + // 景区门票类宝贝发布时候,当卖家签订了支付宝代扣协议时候,需要选择支付方式:全额支付和订金支付。当scenic_ticket_pay_way为1时表示全额支付,为2时表示订金支付 + _scenicTicketPayWay int64 + // 景区门票在选择订金支付时候,需要交的预订费。传入的值是1到20之间的数值,小数点后最多可以保留两位(多余的部分将做四舍五入的处理)。这个数值表示的是预订费的比例,最终的预订费为 scenic_ticket_book_cost乘一口价除以100 + _scenicTicketBookCost string + // 表示商品的体积,如果需要使用按体积计费的运费模板,一定要设置这个值。该值的单位为立方米(m3),如果是其他单位,请转换成成立方米。该值支持两种格式的设置:格式1:bulk:3,单位为立方米(m3),表示直接设置为商品的体积。格式2:length:10;breadth:10;height:10,单位为米(m)。体积和长宽高都支持小数类型。在传入体积或长宽高时候,不能带单位。体积的单位默认为立方米(m3),长宽高的单位默认为米(m)该值支持两种格式的设置:格式1:bulk:3,单位为立方米(m3),表示直接设置为商品的体积。格式2:length:10;breadth:10;height:10,单位为米(m) + _itemSize string + // 商品的重量,用于按重量计费的运费模板。注意:单位为kg。只能传入数值类型(包含小数),不能带单位,单位默认为kg。 + _itemWeight string + // 商品卖点信息,最长150个字符。天猫商家和集市卖家都可用。 + _sellPoint string + // 商品条形码 + _barcode string + // 该宝贝是否支持【7天无理由退货】,卖家选择的值只是一个因素,最终以类目和选择的属性条件来确定是否支持7天。填入字符0,表示不支持;未填写或填人字符1,表示支持7天无理由退货; + _newprepay string + // 商品资质信息 + _qualification string + // 汽车O2O绑定线下服务标记,如不为空,表示关联服务,否则,不关联服务。 + _o2oBindService bool + // 宝贝特征值,格式为:【key1:value1;key2:value2;key3:value3;】,key和value用【:】分隔,key&value之间用【;】分隔,只有在Top支持的特征值才能保存到宝贝上,目前支持的Key列表为:mysize_tp + _features string + // 忽略警告提示. + _ignorewarning string + // 售后说明模板id + _afterSaleId int64 + // 基础色数据,淘宝不使用 + _changeProp string + // 已废弃 + _descModules string + // 是否是线下商品。1:线上商品(默认值);2:线上或线下商品;3:线下商品。 + _isOffline string + // 无线的宝贝描述 + _wirelessDesc string + // 手机类目spu 优化,信息确认字段 + _spuConfirm bool + // 主图视频id + _videoId int64 + // 主图视频互动信息id,必须填写主图视频id才能有互动信息id + _interactiveId int64 + // 租赁扩展信息 + _leaseExtendsInfo string + // 仅淘小铺卖家需要。佣金比例(15.3对应的佣金比例为15.3%).只支持小数点后1位。多余的位数四舍五入(15.32会保存为15.3% + _brokerage string + // 业务身份编码。淘小铺编码为"taobao-taoxiaopu" + _bizCode string + // 此字段已经废弃,不再使用 + _imageUrls []string + // 发布电子凭证宝贝时候表示是否使用邮寄 0: 代表不使用邮寄; 1:代表使用邮寄;如果不设置这个值,代表不使用邮寄 + _localityLifeChooseLogis string + // 本地生活电子交易凭证业务,目前此字段只涉及到的信息为有效期;如果有效期为起止日期类型,此值为2012-08-06,2012-08-16如果有效期为【购买成功日 至】类型则格式为2012-08-16如果有效期为天数类型则格式为15 + _localityLifeExpirydate string + // 网点ID + _localityLifeNetworkId string + // 码商信息,格式为 码商id:nick + _localityLifeMerchant string + // 核销打款 1代表核销打款 0代表非核销打款 + _localityLifeVerification string + // 退款比例,百分比%前的数字,1-100的正整数值 + _localityLifeRefundRatio int64 + // 电子凭证售中自动退款比例,百分比%前的数字,介于1-100之间的整数 + _localityLifeOnsaleAutoRefundRatio int64 + // 退款码费承担方。发布电子凭证宝贝的时候会增加“退款码费承担方”配置项,可选填:(1)s(卖家承担) (2)b(买家承担) + _localityLifeRefundmafee string + // 电子凭证业务属性,数据字典是: 1、is_card:1 (暂时不用) 2、consume_way:4 (1 串码 ,4 身份证)3、consume_midmnick :(核销放行账号:用户id-用户名,支持多个,用逗号分隔,例如 1234-测试账号35,1345-测试账号56)4、market:eticket (电子凭证商品标记) 5、has_pos:1 (1 表示商品配置线下门店,在detail上进行展示 ,没有或者其他值只不展示)格式是: k1:v2;k2:v2;........ 如:has_pos:1;market:eticket;consume_midmnick:901409638-OPPO;consume_way:4 + _localityLifeEticket string + // 拍卖商品选择的拍卖类型,拍卖类型包括三种:增价拍(1),荷兰拍(2)和降价拍(3)。 + _paimaiInfoMode int64 + // 拍卖宝贝的保证金。对于增价拍和荷兰拍来说保证金有两种模式:淘宝默认模式(首次出价金额的10%),自定义固定保证金(固定冻结金额只能输入不超过30万的正整数),并且保证金只冻结1次。对于降价拍来说保证金只有淘宝默认的(竞拍价格的10% * 竞拍数量),并且每次出价都需要冻结保证金。对于拍卖宝贝来说,保证金是必须的,但是默认使用淘宝默认保证金模式,只有用户需要使用自定义固定保证金的时候才需要使用到这个参数,如果该参数不传或传入0则代表使用默认。 + _paimaiInfoDeposit int64 + // 降价拍宝贝的降价周期(分钟)。降价拍宝贝的价格每隔paimai_info.interval时间会下降一次increment。 + _paimaiInfoInterval int64 + // 降价拍宝贝的保留价。对于降价拍来说,paimai_info.reserve必须大于0,且小于price-increment,而且(price-paimai_info.reserve)/increment的计算结果必须为整数 + _paimaiInfoReserve float64 + // 自定义销售周期的小时数。拍卖宝贝可以自定义销售周期,这里指定销售周期的小时数。注意,该参数只作为输入参数,不能通过taobao.item.get接口获取。 + _paimaiInfoValidHour int64 + // 自定义销售周期的分钟数。拍卖宝贝可以自定义销售周期,这里是指定销售周期的分钟数。自定义销售周期的小时数。拍卖宝贝可以自定义销售周期,这里指定销售周期的小时数。注意,该参数只作为输入参数,不能通过taobao.item.get接口获取。 + _paimaiInfoValidMinute int64 + // 全球购商品采购地(库存类型),有两种库存类型:现货和代购参数值为1时代表现货,值为2时代表代购。注意:使用时请与 全球购商品采购地(地区/国家)配合使用 + _globalStockType string + // 全球购商品采购地(地区/国家),默认值只在全球购商品采购地(库存类型选择情况生效),地区国家值请填写法定的国家名称,类如(美国, 香港, 日本, 英国, 新西兰, 德国, 韩国, 荷兰, 法国, 意大利, 台湾, 澳门, 加拿大, 瑞士, 西班牙, 泰国, 新加坡, 马来西亚, 菲律宾),不要使用其他 + _globalStockCountry string + // 是否支持定制市场 true代表支持,false代表支持,如果为空代表与之前保持不变不会修改 + _supportCustomMade bool + // 定制工具Id如果支持定制市场,这个值不填写,就用之前的定制工具Id,之前的定制工具Id没有值就默认为-1 + _customMadeTypeId string + // 全球购商品发货地,发货地现在有两种类型:“国内”和“海外及港澳台”,参数值为1时代表“国内”,值为2时代表“海外及港澳台”,默认为国内。注意:卖家必须已经签署并启用“海外直邮”合约,才能选择发货地为“海外及港澳台” + _globalStockDeliveryPlace string + // 全球购商品卖家包税承诺,当值为true时,代表卖家承诺包税。注意:请与“全球购商品发货地”配合使用,包税承诺必须满足:1、发货地为海外及港澳台 2、卖家已经签署并启用“包税合约”合约 + _globalStockTaxFreePromise bool + // 针对当前商品的自定义属性值,目前是针对销售属性值自定义的,所以调用方需要把自定义属性值对应的虚拟属性值ID(负整数,例如例子中的 -1和-2)像标准属性值值的id一样设置到SKU上,如果自定义属性值有属性值图片,也要设置到属性图片上 + _inputCustomCpv string + // 针对当前商品的标准属性值的补充说明,让买家更加了解商品信息减少交易纠纷 + _cpvMemo string +} + +// 初始化TaobaoItemAddAPIRequest对象 +func NewTaobaoItemAddRequest() *TaobaoItemAddAPIRequest{ + return &TaobaoItemAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemAddAPIRequest) GetApiMethodName() string { + return "taobao.item.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkuSpecIds Setter +// 此参数暂时不起作用 +func (r *TaobaoItemAddAPIRequest) SetSkuSpecIds(_skuSpecIds string) error { + r._skuSpecIds = _skuSpecIds + r.Set("sku_spec_ids", _skuSpecIds) + return nil +} + +// SkuSpecIds Getter +func (r TaobaoItemAddAPIRequest) GetSkuSpecIds() string { + return r._skuSpecIds +} +// SkuDeliveryTimes Setter +// 此参数暂时不起作用 +func (r *TaobaoItemAddAPIRequest) SetSkuDeliveryTimes(_skuDeliveryTimes string) error { + r._skuDeliveryTimes = _skuDeliveryTimes + r.Set("sku_delivery_times", _skuDeliveryTimes) + return nil +} + +// SkuDeliveryTimes Getter +func (r TaobaoItemAddAPIRequest) GetSkuDeliveryTimes() string { + return r._skuDeliveryTimes +} +// SkuHdLength Setter +// 家装建材类目,商品SKU的长度,正整数,单位为cm,部分类目必选。 数据和SKU一一对应,用,分隔,如:20,30,30 +func (r *TaobaoItemAddAPIRequest) SetSkuHdLength(_skuHdLength string) error { + r._skuHdLength = _skuHdLength + r.Set("sku_hd_length", _skuHdLength) + return nil +} + +// SkuHdLength Getter +func (r TaobaoItemAddAPIRequest) GetSkuHdLength() string { + return r._skuHdLength +} +// SkuHdHeight Setter +// 家装建材类目,商品SKU的高度,单位为cm,部分类目必选。 天猫和淘宝格式不同。天猫:可选值为:"0-15", "15-25", "25-50", "50-60", "60-80", "80-120", "120-160", "160-200"。 数据和SKU一一对应,用,分隔,格式如:15-25,25-50,25-50。 淘宝:正整数,单位为cm,格式如:20,30,30 +func (r *TaobaoItemAddAPIRequest) SetSkuHdHeight(_skuHdHeight string) error { + r._skuHdHeight = _skuHdHeight + r.Set("sku_hd_height", _skuHdHeight) + return nil +} + +// SkuHdHeight Getter +func (r TaobaoItemAddAPIRequest) GetSkuHdHeight() string { + return r._skuHdHeight +} +// SkuHdLampQuantity Setter +// 家装建材类目,商品SKU的灯头数量,正整数,大于等于3,部分类目必选。天猫商家专用。 数据和SKU一一对应,用,分隔,如:3,5,7 +func (r *TaobaoItemAddAPIRequest) SetSkuHdLampQuantity(_skuHdLampQuantity string) error { + r._skuHdLampQuantity = _skuHdLampQuantity + r.Set("sku_hd_lamp_quantity", _skuHdLampQuantity) + return nil +} + +// SkuHdLampQuantity Getter +func (r TaobaoItemAddAPIRequest) GetSkuHdLampQuantity() string { + return r._skuHdLampQuantity +} +// InputStr Setter +// 用户自行输入的子属性名和属性值,结构:"父属性值;一级子属性名;一级子属性值;二级子属性名;自定义输入值,....",如:“耐克;耐克系列;科比系列;科比系列;2K5,Nike乔丹鞋;乔丹系列;乔丹鞋系列;乔丹鞋系列;json5”,多个自定义属性用','分割,input_str需要与input_pids一一对应,注:通常一个类目下用户可输入的关键属性不超过1个。所有属性别名加起来不能超过3999字节。此处不可以使用“其他”、“其它”和“其她”这三个词。 +func (r *TaobaoItemAddAPIRequest) SetInputStr(_inputStr string) error { + r._inputStr = _inputStr + r.Set("input_str", _inputStr) + return nil +} + +// InputStr Getter +func (r TaobaoItemAddAPIRequest) GetInputStr() string { + return r._inputStr +} +// InputPids Setter +// 用户自行输入的类目属性ID串,结构:"pid1,pid2,pid3",如:"20000"(表示品牌) 注:通常一个类目下用户可输入的关键属性不超过1个。 +func (r *TaobaoItemAddAPIRequest) SetInputPids(_inputPids string) error { + r._inputPids = _inputPids + r.Set("input_pids", _inputPids) + return nil +} + +// InputPids Getter +func (r TaobaoItemAddAPIRequest) GetInputPids() string { + return r._inputPids +} +// SkuProperties Setter +// 更新的sku的属性串,调用taobao.itemprops.get获取。格式:pid1:vid;pid2:vid,多个sku属性之间用逗号分隔。该字段内的属性需要在props字段同时包含。如果新增商品包含了sku,则此字段一定要传入,字段长度要控制在512个字节以内。 +func (r *TaobaoItemAddAPIRequest) SetSkuProperties(_skuProperties string) error { + r._skuProperties = _skuProperties + r.Set("sku_properties", _skuProperties) + return nil +} + +// SkuProperties Getter +func (r TaobaoItemAddAPIRequest) GetSkuProperties() string { + return r._skuProperties +} +// SkuQuantities Setter +// Sku的数量串,结构如:num1,num2,num3 如:2,3 +func (r *TaobaoItemAddAPIRequest) SetSkuQuantities(_skuQuantities string) error { + r._skuQuantities = _skuQuantities + r.Set("sku_quantities", _skuQuantities) + return nil +} + +// SkuQuantities Getter +func (r TaobaoItemAddAPIRequest) GetSkuQuantities() string { + return r._skuQuantities +} +// SkuPrices Setter +// Sku的价格串,结构如:10.00,5.00,… 精确到2位小数;单位:元。如:200.07,表示:200元7分 +func (r *TaobaoItemAddAPIRequest) SetSkuPrices(_skuPrices string) error { + r._skuPrices = _skuPrices + r.Set("sku_prices", _skuPrices) + return nil +} + +// SkuPrices Getter +func (r TaobaoItemAddAPIRequest) GetSkuPrices() string { + return r._skuPrices +} +// SkuOuterIds Setter +// Sku的外部id串,结构如:1234,1342,… sku_properties, sku_quantities, sku_prices, sku_outer_ids在输入数据时要一一对应,如果没有sku_outer_ids也要写上这个参数,入参是","(这个是两个sku的示列,逗号数应该是sku个数减1);该参数最大长度是512个字节 +func (r *TaobaoItemAddAPIRequest) SetSkuOuterIds(_skuOuterIds string) error { + r._skuOuterIds = _skuOuterIds + r.Set("sku_outer_ids", _skuOuterIds) + return nil +} + +// SkuOuterIds Getter +func (r TaobaoItemAddAPIRequest) GetSkuOuterIds() string { + return r._skuOuterIds +} +// SkuBarcode Setter +// sku层面的条形码,多个SKU情况,与SKU价格库存格式类似,用逗号分隔 +func (r *TaobaoItemAddAPIRequest) SetSkuBarcode(_skuBarcode string) error { + r._skuBarcode = _skuBarcode + r.Set("sku_barcode", _skuBarcode) + return nil +} + +// SkuBarcode Getter +func (r TaobaoItemAddAPIRequest) GetSkuBarcode() string { + return r._skuBarcode +} +// DeliveryTimeNeedDeliveryTime Setter +// 设置是否使用发货时间,商品级别,sku级别 +func (r *TaobaoItemAddAPIRequest) SetDeliveryTimeNeedDeliveryTime(_deliveryTimeNeedDeliveryTime string) error { + r._deliveryTimeNeedDeliveryTime = _deliveryTimeNeedDeliveryTime + r.Set("delivery_time.need_delivery_time", _deliveryTimeNeedDeliveryTime) + return nil +} + +// DeliveryTimeNeedDeliveryTime Getter +func (r TaobaoItemAddAPIRequest) GetDeliveryTimeNeedDeliveryTime() string { + return r._deliveryTimeNeedDeliveryTime +} +// DeliveryTimeDeliveryTimeType Setter +// 发货时间类型:绝对发货时间或者相对发货时间 +func (r *TaobaoItemAddAPIRequest) SetDeliveryTimeDeliveryTimeType(_deliveryTimeDeliveryTimeType string) error { + r._deliveryTimeDeliveryTimeType = _deliveryTimeDeliveryTimeType + r.Set("delivery_time.delivery_time_type", _deliveryTimeDeliveryTimeType) + return nil +} + +// DeliveryTimeDeliveryTimeType Getter +func (r TaobaoItemAddAPIRequest) GetDeliveryTimeDeliveryTimeType() string { + return r._deliveryTimeDeliveryTimeType +} +// DeliveryTimeDeliveryTime Setter +// 商品级别设置的发货时间。设置了商品级别的发货时间,相对发货时间,则填写相对发货时间的天数(大于3);绝对发货时间,则填写yyyy-mm-dd格式,如2013-11-11 +func (r *TaobaoItemAddAPIRequest) SetDeliveryTimeDeliveryTime(_deliveryTimeDeliveryTime string) error { + r._deliveryTimeDeliveryTime = _deliveryTimeDeliveryTime + r.Set("delivery_time.delivery_time", _deliveryTimeDeliveryTime) + return nil +} + +// DeliveryTimeDeliveryTime Getter +func (r TaobaoItemAddAPIRequest) GetDeliveryTimeDeliveryTime() string { + return r._deliveryTimeDeliveryTime +} +// MsPaymentReferencePrice Setter +// 参考价。该商品订单首次支付价格为 订金 价格,用户可根据 参考价 估算全款。详见说明:http://bangpai.taobao.com/group/thread/15031186-303287205.htm +func (r *TaobaoItemAddAPIRequest) SetMsPaymentReferencePrice(_msPaymentReferencePrice string) error { + r._msPaymentReferencePrice = _msPaymentReferencePrice + r.Set("ms_payment.reference_price", _msPaymentReferencePrice) + return nil +} + +// MsPaymentReferencePrice Getter +func (r TaobaoItemAddAPIRequest) GetMsPaymentReferencePrice() string { + return r._msPaymentReferencePrice +} +// MsPaymentVoucherPrice Setter +// 尾款可抵扣金额。详见说明:http://bangpai.taobao.com/group/thread/15031186-303287205.htm +func (r *TaobaoItemAddAPIRequest) SetMsPaymentVoucherPrice(_msPaymentVoucherPrice string) error { + r._msPaymentVoucherPrice = _msPaymentVoucherPrice + r.Set("ms_payment.voucher_price", _msPaymentVoucherPrice) + return nil +} + +// MsPaymentVoucherPrice Getter +func (r TaobaoItemAddAPIRequest) GetMsPaymentVoucherPrice() string { + return r._msPaymentVoucherPrice +} +// MsPaymentPrice Setter +// 订金。在“线上付订金线下付尾款”模式中,有订金、尾款可抵扣金额和参考价,三者需要同时填写。该商品订单首次支付价格为 订金 价格,用户可根据 参考价 估算全款。该模式有别于“一口价”付款方式,针对一个商品,只能选择两种付款方式中的一种,其适用于家装、二手车等场景。详见说明:http://bangpai.taobao.com/group/thread/15031186-303287205.htm +func (r *TaobaoItemAddAPIRequest) SetMsPaymentPrice(_msPaymentPrice string) error { + r._msPaymentPrice = _msPaymentPrice + r.Set("ms_payment.price", _msPaymentPrice) + return nil +} + +// MsPaymentPrice Getter +func (r TaobaoItemAddAPIRequest) GetMsPaymentPrice() string { + return r._msPaymentPrice +} +// LocalityLifeObs Setter +// 预约门店是否支持门店自提,1:是 +func (r *TaobaoItemAddAPIRequest) SetLocalityLifeObs(_localityLifeObs string) error { + r._localityLifeObs = _localityLifeObs + r.Set("locality_life.obs", _localityLifeObs) + return nil +} + +// LocalityLifeObs Getter +func (r TaobaoItemAddAPIRequest) GetLocalityLifeObs() string { + return r._localityLifeObs +} +// LocalityLifeVersion Setter +// 新版电子凭证字段 +func (r *TaobaoItemAddAPIRequest) SetLocalityLifeVersion(_localityLifeVersion string) error { + r._localityLifeVersion = _localityLifeVersion + r.Set("locality_life.version", _localityLifeVersion) + return nil +} + +// LocalityLifeVersion Getter +func (r TaobaoItemAddAPIRequest) GetLocalityLifeVersion() string { + return r._localityLifeVersion +} +// LocalityLifePackageid Setter +// 新版电子凭证包 id +func (r *TaobaoItemAddAPIRequest) SetLocalityLifePackageid(_localityLifePackageid string) error { + r._localityLifePackageid = _localityLifePackageid + r.Set("locality_life.packageid", _localityLifePackageid) + return nil +} + +// LocalityLifePackageid Getter +func (r TaobaoItemAddAPIRequest) GetLocalityLifePackageid() string { + return r._localityLifePackageid +} +// FoodSecurityPrdLicenseNo Setter +// 生产许可证号 +func (r *TaobaoItemAddAPIRequest) SetFoodSecurityPrdLicenseNo(_foodSecurityPrdLicenseNo string) error { + r._foodSecurityPrdLicenseNo = _foodSecurityPrdLicenseNo + r.Set("food_security.prd_license_no", _foodSecurityPrdLicenseNo) + return nil +} + +// FoodSecurityPrdLicenseNo Getter +func (r TaobaoItemAddAPIRequest) GetFoodSecurityPrdLicenseNo() string { + return r._foodSecurityPrdLicenseNo +} +// FoodSecurityDesignCode Setter +// 产品标准号 +func (r *TaobaoItemAddAPIRequest) SetFoodSecurityDesignCode(_foodSecurityDesignCode string) error { + r._foodSecurityDesignCode = _foodSecurityDesignCode + r.Set("food_security.design_code", _foodSecurityDesignCode) + return nil +} + +// FoodSecurityDesignCode Getter +func (r TaobaoItemAddAPIRequest) GetFoodSecurityDesignCode() string { + return r._foodSecurityDesignCode +} +// FoodSecurityFactory Setter +// 厂名 +func (r *TaobaoItemAddAPIRequest) SetFoodSecurityFactory(_foodSecurityFactory string) error { + r._foodSecurityFactory = _foodSecurityFactory + r.Set("food_security.factory", _foodSecurityFactory) + return nil +} + +// FoodSecurityFactory Getter +func (r TaobaoItemAddAPIRequest) GetFoodSecurityFactory() string { + return r._foodSecurityFactory +} +// FoodSecurityFactorySite Setter +// 厂址 +func (r *TaobaoItemAddAPIRequest) SetFoodSecurityFactorySite(_foodSecurityFactorySite string) error { + r._foodSecurityFactorySite = _foodSecurityFactorySite + r.Set("food_security.factory_site", _foodSecurityFactorySite) + return nil +} + +// FoodSecurityFactorySite Getter +func (r TaobaoItemAddAPIRequest) GetFoodSecurityFactorySite() string { + return r._foodSecurityFactorySite +} +// FoodSecurityContact Setter +// 厂家联系方式 +func (r *TaobaoItemAddAPIRequest) SetFoodSecurityContact(_foodSecurityContact string) error { + r._foodSecurityContact = _foodSecurityContact + r.Set("food_security.contact", _foodSecurityContact) + return nil +} + +// FoodSecurityContact Getter +func (r TaobaoItemAddAPIRequest) GetFoodSecurityContact() string { + return r._foodSecurityContact +} +// FoodSecurityMix Setter +// 配料表 +func (r *TaobaoItemAddAPIRequest) SetFoodSecurityMix(_foodSecurityMix string) error { + r._foodSecurityMix = _foodSecurityMix + r.Set("food_security.mix", _foodSecurityMix) + return nil +} + +// FoodSecurityMix Getter +func (r TaobaoItemAddAPIRequest) GetFoodSecurityMix() string { + return r._foodSecurityMix +} +// FoodSecurityPlanStorage Setter +// 储藏方法 +func (r *TaobaoItemAddAPIRequest) SetFoodSecurityPlanStorage(_foodSecurityPlanStorage string) error { + r._foodSecurityPlanStorage = _foodSecurityPlanStorage + r.Set("food_security.plan_storage", _foodSecurityPlanStorage) + return nil +} + +// FoodSecurityPlanStorage Getter +func (r TaobaoItemAddAPIRequest) GetFoodSecurityPlanStorage() string { + return r._foodSecurityPlanStorage +} +// FoodSecurityPeriod Setter +// 保质期,默认有单位,传入数字 +func (r *TaobaoItemAddAPIRequest) SetFoodSecurityPeriod(_foodSecurityPeriod string) error { + r._foodSecurityPeriod = _foodSecurityPeriod + r.Set("food_security.period", _foodSecurityPeriod) + return nil +} + +// FoodSecurityPeriod Getter +func (r TaobaoItemAddAPIRequest) GetFoodSecurityPeriod() string { + return r._foodSecurityPeriod +} +// FoodSecurityFoodAdditive Setter +// 食品添加剂 +func (r *TaobaoItemAddAPIRequest) SetFoodSecurityFoodAdditive(_foodSecurityFoodAdditive string) error { + r._foodSecurityFoodAdditive = _foodSecurityFoodAdditive + r.Set("food_security.food_additive", _foodSecurityFoodAdditive) + return nil +} + +// FoodSecurityFoodAdditive Getter +func (r TaobaoItemAddAPIRequest) GetFoodSecurityFoodAdditive() string { + return r._foodSecurityFoodAdditive +} +// FoodSecuritySupplier Setter +// 供货商 +func (r *TaobaoItemAddAPIRequest) SetFoodSecuritySupplier(_foodSecuritySupplier string) error { + r._foodSecuritySupplier = _foodSecuritySupplier + r.Set("food_security.supplier", _foodSecuritySupplier) + return nil +} + +// FoodSecuritySupplier Getter +func (r TaobaoItemAddAPIRequest) GetFoodSecuritySupplier() string { + return r._foodSecuritySupplier +} +// FoodSecurityProductDateStart Setter +// 生产开始日期,格式必须为yyyy-MM-dd +func (r *TaobaoItemAddAPIRequest) SetFoodSecurityProductDateStart(_foodSecurityProductDateStart string) error { + r._foodSecurityProductDateStart = _foodSecurityProductDateStart + r.Set("food_security.product_date_start", _foodSecurityProductDateStart) + return nil +} + +// FoodSecurityProductDateStart Getter +func (r TaobaoItemAddAPIRequest) GetFoodSecurityProductDateStart() string { + return r._foodSecurityProductDateStart +} +// FoodSecurityProductDateEnd Setter +// 生产结束日期,格式必须为yyyy-MM-dd +func (r *TaobaoItemAddAPIRequest) SetFoodSecurityProductDateEnd(_foodSecurityProductDateEnd string) error { + r._foodSecurityProductDateEnd = _foodSecurityProductDateEnd + r.Set("food_security.product_date_end", _foodSecurityProductDateEnd) + return nil +} + +// FoodSecurityProductDateEnd Getter +func (r TaobaoItemAddAPIRequest) GetFoodSecurityProductDateEnd() string { + return r._foodSecurityProductDateEnd +} +// FoodSecurityStockDateStart Setter +// 进货开始日期,要在生产日期之后,格式必须为yyyy-MM-dd +func (r *TaobaoItemAddAPIRequest) SetFoodSecurityStockDateStart(_foodSecurityStockDateStart string) error { + r._foodSecurityStockDateStart = _foodSecurityStockDateStart + r.Set("food_security.stock_date_start", _foodSecurityStockDateStart) + return nil +} + +// FoodSecurityStockDateStart Getter +func (r TaobaoItemAddAPIRequest) GetFoodSecurityStockDateStart() string { + return r._foodSecurityStockDateStart +} +// FoodSecurityStockDateEnd Setter +// 进货结束日期,要在生产日期之后,格式必须为yyyy-MM-dd +func (r *TaobaoItemAddAPIRequest) SetFoodSecurityStockDateEnd(_foodSecurityStockDateEnd string) error { + r._foodSecurityStockDateEnd = _foodSecurityStockDateEnd + r.Set("food_security.stock_date_end", _foodSecurityStockDateEnd) + return nil +} + +// FoodSecurityStockDateEnd Getter +func (r TaobaoItemAddAPIRequest) GetFoodSecurityStockDateEnd() string { + return r._foodSecurityStockDateEnd +} +// FoodSecurityHealthProductNo Setter +// 健字号,保健品/膳食营养补充剂 这个类目下特有的信息,此类目下无需填写生产许可证编号(QS),如果填写了生产许可证编号(QS)将被忽略不保存;保存宝贝时,标题前会自动加上健字号产品名称一起作为宝贝标题; +func (r *TaobaoItemAddAPIRequest) SetFoodSecurityHealthProductNo(_foodSecurityHealthProductNo string) error { + r._foodSecurityHealthProductNo = _foodSecurityHealthProductNo + r.Set("food_security.health_product_no", _foodSecurityHealthProductNo) + return nil +} + +// FoodSecurityHealthProductNo Getter +func (r TaobaoItemAddAPIRequest) GetFoodSecurityHealthProductNo() string { + return r._foodSecurityHealthProductNo +} +// LocationState Setter +// 所在地省份。如浙江 +func (r *TaobaoItemAddAPIRequest) SetLocationState(_locationState string) error { + r._locationState = _locationState + r.Set("location.state", _locationState) + return nil +} + +// LocationState Getter +func (r TaobaoItemAddAPIRequest) GetLocationState() string { + return r._locationState +} +// LocationCity Setter +// 所在地城市。如杭州 。 +func (r *TaobaoItemAddAPIRequest) SetLocationCity(_locationCity string) error { + r._locationCity = _locationCity + r.Set("location.city", _locationCity) + return nil +} + +// LocationCity Getter +func (r TaobaoItemAddAPIRequest) GetLocationCity() string { + return r._locationCity +} +// Num Setter +// 商品数量。取值范围:0-900000000的整数。且需要等于Sku所有数量的和。拍卖商品中增加拍只能为1,荷兰拍要在[2,500)范围内。 +func (r *TaobaoItemAddAPIRequest) SetNum(_num int64) error { + r._num = _num + r.Set("num", _num) + return nil +} + +// Num Getter +func (r TaobaoItemAddAPIRequest) GetNum() int64 { + return r._num +} +// Price Setter +// 商品价格。取值范围:0-100000000;精确到2位小数;单位:元。如:200.07,表示:200元7分。需要在正确的价格区间内。拍卖商品对应的起拍价。 +func (r *TaobaoItemAddAPIRequest) SetPrice(_price float64) error { + r._price = _price + r.Set("price", _price) + return nil +} + +// Price Getter +func (r TaobaoItemAddAPIRequest) GetPrice() float64 { + return r._price +} +// Type Setter +// 发布类型。可选值:fixed(一口价),auction(拍卖)。B商家不能发布拍卖商品,而且拍卖商品是没有SKU的。拍卖商品发布时需要附加拍卖商品信息:拍卖类型(paimai_info.mode,拍卖类型包括三种:增价拍[1],荷兰拍[2]以及降价拍[3]),商品数量(num),起拍价(price),价格幅度(increament),保证金(paimai_info.deposit)。另外拍卖商品支持自定义销售周期,通过paimai_info.valid_hour和paimai_info.valid_minute来指定。对于降价拍来说需要设置降价周期(paimai_info.interval)和拍卖保留价(paimai_info.reserve)。注意:通过taobao.item.get接口获取拍卖信息时,会返回除了valid_hour和valid_minute之外的所有拍卖信息。 +func (r *TaobaoItemAddAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoItemAddAPIRequest) GetType() string { + return r._type +} +// StuffStatus Setter +// 新旧程度。可选值:new(新),second(二手)。B商家不能发布二手商品。如果是二手商品,特定类目下属性里面必填新旧成色属性 +func (r *TaobaoItemAddAPIRequest) SetStuffStatus(_stuffStatus string) error { + r._stuffStatus = _stuffStatus + r.Set("stuff_status", _stuffStatus) + return nil +} + +// StuffStatus Getter +func (r TaobaoItemAddAPIRequest) GetStuffStatus() string { + return r._stuffStatus +} +// Title Setter +// 宝贝标题。不能超过30字符,受违禁词控制。天猫图书管控类目最大允许120字符; +func (r *TaobaoItemAddAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoItemAddAPIRequest) GetTitle() string { + return r._title +} +// Desc Setter +// 宝贝描述。字数要大于5个字符,小于25000个字符,受违禁词控制 +func (r *TaobaoItemAddAPIRequest) SetDesc(_desc string) error { + r._desc = _desc + r.Set("desc", _desc) + return nil +} + +// Desc Getter +func (r TaobaoItemAddAPIRequest) GetDesc() string { + return r._desc +} +// ApproveStatus Setter +// 商品上传后的状态。可选值:onsale(出售中),instock(仓库中);默认值:onsale +func (r *TaobaoItemAddAPIRequest) SetApproveStatus(_approveStatus string) error { + r._approveStatus = _approveStatus + r.Set("approve_status", _approveStatus) + return nil +} + +// ApproveStatus Getter +func (r TaobaoItemAddAPIRequest) GetApproveStatus() string { + return r._approveStatus +} +// Cid Setter +// 叶子类目id +func (r *TaobaoItemAddAPIRequest) SetCid(_cid int64) error { + r._cid = _cid + r.Set("cid", _cid) + return nil +} + +// Cid Getter +func (r TaobaoItemAddAPIRequest) GetCid() int64 { + return r._cid +} +// Props Setter +// 商品属性列表。格式:pid:vid;pid:vid。属性的pid调用taobao.itemprops.get取得,属性值的vid用taobao.itempropvalues.get取得vid。 如果该类目下面没有属性,可以不用填写。如果有属性,必选属性必填,其他非必选属性可以选择不填写.属性不能超过35对。所有属性加起来包括分割符不能超过549字节,单个属性没有限制。 如果有属性是可输入的话,则用字段input_str填入属性的值 +func (r *TaobaoItemAddAPIRequest) SetProps(_props string) error { + r._props = _props + r.Set("props", _props) + return nil +} + +// Props Getter +func (r TaobaoItemAddAPIRequest) GetProps() string { + return r._props +} +// FreightPayer Setter +// 运费承担方式。可选值:seller(卖家承担),buyer(买家承担);默认值:seller。卖家承担不用设置邮费和postage_id.买家承担的时候,必填邮费和postage_id 如果用户设置了运费模板会优先使用运费模板,否则要同步设置邮费(post_fee,express_fee,ems_fee) +func (r *TaobaoItemAddAPIRequest) SetFreightPayer(_freightPayer string) error { + r._freightPayer = _freightPayer + r.Set("freight_payer", _freightPayer) + return nil +} + +// FreightPayer Getter +func (r TaobaoItemAddAPIRequest) GetFreightPayer() string { + return r._freightPayer +} +// ValidThru Setter +// 有效期。可选值:7,14;单位:天;默认值:14 +func (r *TaobaoItemAddAPIRequest) SetValidThru(_validThru int64) error { + r._validThru = _validThru + r.Set("valid_thru", _validThru) + return nil +} + +// ValidThru Getter +func (r TaobaoItemAddAPIRequest) GetValidThru() int64 { + return r._validThru +} +// HasInvoice Setter +// 是否有发票。可选值:true,false (商城卖家此字段必须为true);默认值:false(无发票) +func (r *TaobaoItemAddAPIRequest) SetHasInvoice(_hasInvoice bool) error { + r._hasInvoice = _hasInvoice + r.Set("has_invoice", _hasInvoice) + return nil +} + +// HasInvoice Getter +func (r TaobaoItemAddAPIRequest) GetHasInvoice() bool { + return r._hasInvoice +} +// HasWarranty Setter +// 是否有保修。可选值:true,false;默认值:false(不保修) +func (r *TaobaoItemAddAPIRequest) SetHasWarranty(_hasWarranty bool) error { + r._hasWarranty = _hasWarranty + r.Set("has_warranty", _hasWarranty) + return nil +} + +// HasWarranty Getter +func (r TaobaoItemAddAPIRequest) GetHasWarranty() bool { + return r._hasWarranty +} +// HasShowcase Setter +// 橱窗推荐。可选值:true,false;默认值:false(不推荐) +func (r *TaobaoItemAddAPIRequest) SetHasShowcase(_hasShowcase bool) error { + r._hasShowcase = _hasShowcase + r.Set("has_showcase", _hasShowcase) + return nil +} + +// HasShowcase Getter +func (r TaobaoItemAddAPIRequest) GetHasShowcase() bool { + return r._hasShowcase +} +// SellerCids Setter +// 商品所属的店铺类目列表。按逗号分隔。结构:",cid1,cid2,...,",如果店铺类目存在二级类目,必须传入子类目cids。 +func (r *TaobaoItemAddAPIRequest) SetSellerCids(_sellerCids string) error { + r._sellerCids = _sellerCids + r.Set("seller_cids", _sellerCids) + return nil +} + +// SellerCids Getter +func (r TaobaoItemAddAPIRequest) GetSellerCids() string { + return r._sellerCids +} +// HasDiscount Setter +// 支持会员打折。可选值:true,false;默认值:false(不打折) +func (r *TaobaoItemAddAPIRequest) SetHasDiscount(_hasDiscount bool) error { + r._hasDiscount = _hasDiscount + r.Set("has_discount", _hasDiscount) + return nil +} + +// HasDiscount Getter +func (r TaobaoItemAddAPIRequest) GetHasDiscount() bool { + return r._hasDiscount +} +// PostFee Setter +// 平邮费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:5.07,表示:5元7分. 注:post_fee,express_fee,ems_fee需要一起填写 +func (r *TaobaoItemAddAPIRequest) SetPostFee(_postFee float64) error { + r._postFee = _postFee + r.Set("post_fee", _postFee) + return nil +} + +// PostFee Getter +func (r TaobaoItemAddAPIRequest) GetPostFee() float64 { + return r._postFee +} +// ExpressFee Setter +// 快递费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:15.07,表示:15元7分 +func (r *TaobaoItemAddAPIRequest) SetExpressFee(_expressFee float64) error { + r._expressFee = _expressFee + r.Set("express_fee", _expressFee) + return nil +} + +// ExpressFee Getter +func (r TaobaoItemAddAPIRequest) GetExpressFee() float64 { + return r._expressFee +} +// EmsFee Setter +// ems费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:25.07,表示:25元7分 +func (r *TaobaoItemAddAPIRequest) SetEmsFee(_emsFee float64) error { + r._emsFee = _emsFee + r.Set("ems_fee", _emsFee) + return nil +} + +// EmsFee Getter +func (r TaobaoItemAddAPIRequest) GetEmsFee() float64 { + return r._emsFee +} +// ListTime Setter +// 定时上架时间。(时间格式:yyyy-MM-dd HH:mm:ss) +func (r *TaobaoItemAddAPIRequest) SetListTime(_listTime string) error { + r._listTime = _listTime + r.Set("list_time", _listTime) + return nil +} + +// ListTime Getter +func (r TaobaoItemAddAPIRequest) GetListTime() string { + return r._listTime +} +// Increment Setter +// 加价(降价)幅度。如果为0,代表系统代理幅度。对于增价拍和荷兰拍来说是加价幅度,对于降价拍来说是降价幅度。 +func (r *TaobaoItemAddAPIRequest) SetIncrement(_increment float64) error { + r._increment = _increment + r.Set("increment", _increment) + return nil +} + +// Increment Getter +func (r TaobaoItemAddAPIRequest) GetIncrement() float64 { + return r._increment +} +// Image Setter +// 商品主图片。类型:JPG,GIF;最大长度:3M。(推荐使用pic_path字段,先把图片上传到卖家图片空间) +func (r *TaobaoItemAddAPIRequest) SetImage(_image *model.File) error { + r._image = _image + r.Set("image", _image) + return nil +} + +// Image Getter +func (r TaobaoItemAddAPIRequest) GetImage() *model.File { + return r._image +} +// PostageId Setter +// 宝贝所属的运费模板ID。取值范围:整数且必须是该卖家的运费模板的ID(可通过taobao.delivery.template.get获得当前会话用户的所有邮费模板) +func (r *TaobaoItemAddAPIRequest) SetPostageId(_postageId int64) error { + r._postageId = _postageId + r.Set("postage_id", _postageId) + return nil +} + +// PostageId Getter +func (r TaobaoItemAddAPIRequest) GetPostageId() int64 { + return r._postageId +} +// AuctionPoint Setter +// 商品的积分返点比例。如:5,表示:返点比例0.5%. 注意:返点比例必须是>0的整数,而且最大是90,即为9%.B商家在发布非虚拟商品时,返点必须是 5的倍数,即0.5%的倍数。其它是1的倍数,即0.1%的倍数。无名良品商家发布商品时,复用该字段记录积分宝返点比例,返点必须是对应类目的返点步长的整数倍,默认是5,即0.5%。注意此时该字段值依旧必须是>0的整数,最高值不超过500,即50% +func (r *TaobaoItemAddAPIRequest) SetAuctionPoint(_auctionPoint int64) error { + r._auctionPoint = _auctionPoint + r.Set("auction_point", _auctionPoint) + return nil +} + +// AuctionPoint Getter +func (r TaobaoItemAddAPIRequest) GetAuctionPoint() int64 { + return r._auctionPoint +} +// PropertyAlias Setter +// 属性值别名。如pid:vid:别名;pid1:vid1:别名1 ,其中:pid是属性id vid是属性值id。总长度不超过800个字符,如"123:333:你好",引号内的是10个字符。 +func (r *TaobaoItemAddAPIRequest) SetPropertyAlias(_propertyAlias string) error { + r._propertyAlias = _propertyAlias + r.Set("property_alias", _propertyAlias) + return nil +} + +// PropertyAlias Getter +func (r TaobaoItemAddAPIRequest) GetPropertyAlias() string { + return r._propertyAlias +} +// Lang Setter +// 商品文字的字符集。繁体传入"zh_HK",简体传入"zh_CN",不传默认为简体 +func (r *TaobaoItemAddAPIRequest) SetLang(_lang string) error { + r._lang = _lang + r.Set("lang", _lang) + return nil +} + +// Lang Getter +func (r TaobaoItemAddAPIRequest) GetLang() string { + return r._lang +} +// OuterId Setter +// 商品外部编码,该字段的最大长度是64个字节 +func (r *TaobaoItemAddAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoItemAddAPIRequest) GetOuterId() string { + return r._outerId +} +// ProductId Setter +// 商品所属的产品ID(B商家发布商品需要用) +func (r *TaobaoItemAddAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoItemAddAPIRequest) GetProductId() int64 { + return r._productId +} +// PicPath Setter +// (推荐)商品主图需要关联的图片空间的相对url。这个url所对应的图片必须要属于当前用户。pic_path和image只需要传入一个,如果两个都传,默认选择pic_path +func (r *TaobaoItemAddAPIRequest) SetPicPath(_picPath string) error { + r._picPath = _picPath + r.Set("pic_path", _picPath) + return nil +} + +// PicPath Getter +func (r TaobaoItemAddAPIRequest) GetPicPath() string { + return r._picPath +} +// AutoFill Setter +// 代充商品类型。在代充商品的类目下,不传表示不标记商品类型(交易搜索中就不能通过标记搜到相关的交易了)。可选类型: no_mark(不做类型标记) time_card(点卡软件代充) fee_card(话费软件代充) +func (r *TaobaoItemAddAPIRequest) SetAutoFill(_autoFill string) error { + r._autoFill = _autoFill + r.Set("auto_fill", _autoFill) + return nil +} + +// AutoFill Getter +func (r TaobaoItemAddAPIRequest) GetAutoFill() string { + return r._autoFill +} +// IsTaobao Setter +// 是否在淘宝上显示(如果传FALSE,则在淘宝主站无法显示该商品) +func (r *TaobaoItemAddAPIRequest) SetIsTaobao(_isTaobao bool) error { + r._isTaobao = _isTaobao + r.Set("is_taobao", _isTaobao) + return nil +} + +// IsTaobao Getter +func (r TaobaoItemAddAPIRequest) GetIsTaobao() bool { + return r._isTaobao +} +// IsEx Setter +// 是否在外店显示 +func (r *TaobaoItemAddAPIRequest) SetIsEx(_isEx bool) error { + r._isEx = _isEx + r.Set("is_ex", _isEx) + return nil +} + +// IsEx Getter +func (r TaobaoItemAddAPIRequest) GetIsEx() bool { + return r._isEx +} +// Is3D Setter +// 是否是3D +func (r *TaobaoItemAddAPIRequest) SetIs3D(_is3D bool) error { + r._is3D = _is3D + r.Set("is_3D", _is3D) + return nil +} + +// Is3D Getter +func (r TaobaoItemAddAPIRequest) GetIs3D() bool { + return r._is3D +} +// SellPromise Setter +// 是否承诺退换货服务!虚拟商品无须设置此项! +func (r *TaobaoItemAddAPIRequest) SetSellPromise(_sellPromise bool) error { + r._sellPromise = _sellPromise + r.Set("sell_promise", _sellPromise) + return nil +} + +// SellPromise Getter +func (r TaobaoItemAddAPIRequest) GetSellPromise() bool { + return r._sellPromise +} +// CodPostageId Setter +// 此为货到付款运费模板的ID,对应的JAVA类型是long,如果COD卖家应用了货到付款运费模板,此值要进行设置。该字段已经废弃 +func (r *TaobaoItemAddAPIRequest) SetCodPostageId(_codPostageId int64) error { + r._codPostageId = _codPostageId + r.Set("cod_postage_id", _codPostageId) + return nil +} + +// CodPostageId Getter +func (r TaobaoItemAddAPIRequest) GetCodPostageId() int64 { + return r._codPostageId +} +// IsLightningConsignment Setter +// 实物闪电发货 +func (r *TaobaoItemAddAPIRequest) SetIsLightningConsignment(_isLightningConsignment bool) error { + r._isLightningConsignment = _isLightningConsignment + r.Set("is_lightning_consignment", _isLightningConsignment) + return nil +} + +// IsLightningConsignment Getter +func (r TaobaoItemAddAPIRequest) GetIsLightningConsignment() bool { + return r._isLightningConsignment +} +// Weight Setter +// 商品的重量(商超卖家专用字段) +func (r *TaobaoItemAddAPIRequest) SetWeight(_weight int64) error { + r._weight = _weight + r.Set("weight", _weight) + return nil +} + +// Weight Getter +func (r TaobaoItemAddAPIRequest) GetWeight() int64 { + return r._weight +} +// IsXinpin Setter +// 商品是否为新品。只有在当前类目开通新品,并且当前用户拥有该类目下发布新品权限时才能设置is_xinpin为true,否则设置true后会返回错误码:isv.invalid-permission:add-xinpin。同时只有一口价全新的宝贝才能设置为新品,否则会返回错误码:isv.invalid-parameter:xinpin。不设置该参数值或设置为false效果一致。 +func (r *TaobaoItemAddAPIRequest) SetIsXinpin(_isXinpin bool) error { + r._isXinpin = _isXinpin + r.Set("is_xinpin", _isXinpin) + return nil +} + +// IsXinpin Getter +func (r TaobaoItemAddAPIRequest) GetIsXinpin() bool { + return r._isXinpin +} +// SubStock Setter +// 商品是否支持拍下减库存:1支持;2取消支持(付款减库存);0(默认)不更改集市卖家默认拍下减库存;商城卖家默认付款减库存 +func (r *TaobaoItemAddAPIRequest) SetSubStock(_subStock int64) error { + r._subStock = _subStock + r.Set("sub_stock", _subStock) + return nil +} + +// SubStock Getter +func (r TaobaoItemAddAPIRequest) GetSubStock() int64 { + return r._subStock +} +// ScenicTicketPayWay Setter +// 景区门票类宝贝发布时候,当卖家签订了支付宝代扣协议时候,需要选择支付方式:全额支付和订金支付。当scenic_ticket_pay_way为1时表示全额支付,为2时表示订金支付 +func (r *TaobaoItemAddAPIRequest) SetScenicTicketPayWay(_scenicTicketPayWay int64) error { + r._scenicTicketPayWay = _scenicTicketPayWay + r.Set("scenic_ticket_pay_way", _scenicTicketPayWay) + return nil +} + +// ScenicTicketPayWay Getter +func (r TaobaoItemAddAPIRequest) GetScenicTicketPayWay() int64 { + return r._scenicTicketPayWay +} +// ScenicTicketBookCost Setter +// 景区门票在选择订金支付时候,需要交的预订费。传入的值是1到20之间的数值,小数点后最多可以保留两位(多余的部分将做四舍五入的处理)。这个数值表示的是预订费的比例,最终的预订费为 scenic_ticket_book_cost乘一口价除以100 +func (r *TaobaoItemAddAPIRequest) SetScenicTicketBookCost(_scenicTicketBookCost string) error { + r._scenicTicketBookCost = _scenicTicketBookCost + r.Set("scenic_ticket_book_cost", _scenicTicketBookCost) + return nil +} + +// ScenicTicketBookCost Getter +func (r TaobaoItemAddAPIRequest) GetScenicTicketBookCost() string { + return r._scenicTicketBookCost +} +// ItemSize Setter +// 表示商品的体积,如果需要使用按体积计费的运费模板,一定要设置这个值。该值的单位为立方米(m3),如果是其他单位,请转换成成立方米。该值支持两种格式的设置:格式1:bulk:3,单位为立方米(m3),表示直接设置为商品的体积。格式2:length:10;breadth:10;height:10,单位为米(m)。体积和长宽高都支持小数类型。在传入体积或长宽高时候,不能带单位。体积的单位默认为立方米(m3),长宽高的单位默认为米(m)该值支持两种格式的设置:格式1:bulk:3,单位为立方米(m3),表示直接设置为商品的体积。格式2:length:10;breadth:10;height:10,单位为米(m) +func (r *TaobaoItemAddAPIRequest) SetItemSize(_itemSize string) error { + r._itemSize = _itemSize + r.Set("item_size", _itemSize) + return nil +} + +// ItemSize Getter +func (r TaobaoItemAddAPIRequest) GetItemSize() string { + return r._itemSize +} +// ItemWeight Setter +// 商品的重量,用于按重量计费的运费模板。注意:单位为kg。只能传入数值类型(包含小数),不能带单位,单位默认为kg。 +func (r *TaobaoItemAddAPIRequest) SetItemWeight(_itemWeight string) error { + r._itemWeight = _itemWeight + r.Set("item_weight", _itemWeight) + return nil +} + +// ItemWeight Getter +func (r TaobaoItemAddAPIRequest) GetItemWeight() string { + return r._itemWeight +} +// SellPoint Setter +// 商品卖点信息,最长150个字符。天猫商家和集市卖家都可用。 +func (r *TaobaoItemAddAPIRequest) SetSellPoint(_sellPoint string) error { + r._sellPoint = _sellPoint + r.Set("sell_point", _sellPoint) + return nil +} + +// SellPoint Getter +func (r TaobaoItemAddAPIRequest) GetSellPoint() string { + return r._sellPoint +} +// Barcode Setter +// 商品条形码 +func (r *TaobaoItemAddAPIRequest) SetBarcode(_barcode string) error { + r._barcode = _barcode + r.Set("barcode", _barcode) + return nil +} + +// Barcode Getter +func (r TaobaoItemAddAPIRequest) GetBarcode() string { + return r._barcode +} +// Newprepay Setter +// 该宝贝是否支持【7天无理由退货】,卖家选择的值只是一个因素,最终以类目和选择的属性条件来确定是否支持7天。填入字符0,表示不支持;未填写或填人字符1,表示支持7天无理由退货; +func (r *TaobaoItemAddAPIRequest) SetNewprepay(_newprepay string) error { + r._newprepay = _newprepay + r.Set("newprepay", _newprepay) + return nil +} + +// Newprepay Getter +func (r TaobaoItemAddAPIRequest) GetNewprepay() string { + return r._newprepay +} +// Qualification Setter +// 商品资质信息 +func (r *TaobaoItemAddAPIRequest) SetQualification(_qualification string) error { + r._qualification = _qualification + r.Set("qualification", _qualification) + return nil +} + +// Qualification Getter +func (r TaobaoItemAddAPIRequest) GetQualification() string { + return r._qualification +} +// O2oBindService Setter +// 汽车O2O绑定线下服务标记,如不为空,表示关联服务,否则,不关联服务。 +func (r *TaobaoItemAddAPIRequest) SetO2oBindService(_o2oBindService bool) error { + r._o2oBindService = _o2oBindService + r.Set("o2o_bind_service", _o2oBindService) + return nil +} + +// O2oBindService Getter +func (r TaobaoItemAddAPIRequest) GetO2oBindService() bool { + return r._o2oBindService +} +// Features Setter +// 宝贝特征值,格式为:【key1:value1;key2:value2;key3:value3;】,key和value用【:】分隔,key&value之间用【;】分隔,只有在Top支持的特征值才能保存到宝贝上,目前支持的Key列表为:mysize_tp +func (r *TaobaoItemAddAPIRequest) SetFeatures(_features string) error { + r._features = _features + r.Set("features", _features) + return nil +} + +// Features Getter +func (r TaobaoItemAddAPIRequest) GetFeatures() string { + return r._features +} +// Ignorewarning Setter +// 忽略警告提示. +func (r *TaobaoItemAddAPIRequest) SetIgnorewarning(_ignorewarning string) error { + r._ignorewarning = _ignorewarning + r.Set("ignorewarning", _ignorewarning) + return nil +} + +// Ignorewarning Getter +func (r TaobaoItemAddAPIRequest) GetIgnorewarning() string { + return r._ignorewarning +} +// AfterSaleId Setter +// 售后说明模板id +func (r *TaobaoItemAddAPIRequest) SetAfterSaleId(_afterSaleId int64) error { + r._afterSaleId = _afterSaleId + r.Set("after_sale_id", _afterSaleId) + return nil +} + +// AfterSaleId Getter +func (r TaobaoItemAddAPIRequest) GetAfterSaleId() int64 { + return r._afterSaleId +} +// ChangeProp Setter +// 基础色数据,淘宝不使用 +func (r *TaobaoItemAddAPIRequest) SetChangeProp(_changeProp string) error { + r._changeProp = _changeProp + r.Set("change_prop", _changeProp) + return nil +} + +// ChangeProp Getter +func (r TaobaoItemAddAPIRequest) GetChangeProp() string { + return r._changeProp +} +// DescModules Setter +// 已废弃 +func (r *TaobaoItemAddAPIRequest) SetDescModules(_descModules string) error { + r._descModules = _descModules + r.Set("desc_modules", _descModules) + return nil +} + +// DescModules Getter +func (r TaobaoItemAddAPIRequest) GetDescModules() string { + return r._descModules +} +// IsOffline Setter +// 是否是线下商品。1:线上商品(默认值);2:线上或线下商品;3:线下商品。 +func (r *TaobaoItemAddAPIRequest) SetIsOffline(_isOffline string) error { + r._isOffline = _isOffline + r.Set("is_offline", _isOffline) + return nil +} + +// IsOffline Getter +func (r TaobaoItemAddAPIRequest) GetIsOffline() string { + return r._isOffline +} +// WirelessDesc Setter +// 无线的宝贝描述 +func (r *TaobaoItemAddAPIRequest) SetWirelessDesc(_wirelessDesc string) error { + r._wirelessDesc = _wirelessDesc + r.Set("wireless_desc", _wirelessDesc) + return nil +} + +// WirelessDesc Getter +func (r TaobaoItemAddAPIRequest) GetWirelessDesc() string { + return r._wirelessDesc +} +// SpuConfirm Setter +// 手机类目spu 优化,信息确认字段 +func (r *TaobaoItemAddAPIRequest) SetSpuConfirm(_spuConfirm bool) error { + r._spuConfirm = _spuConfirm + r.Set("spu_confirm", _spuConfirm) + return nil +} + +// SpuConfirm Getter +func (r TaobaoItemAddAPIRequest) GetSpuConfirm() bool { + return r._spuConfirm +} +// VideoId Setter +// 主图视频id +func (r *TaobaoItemAddAPIRequest) SetVideoId(_videoId int64) error { + r._videoId = _videoId + r.Set("video_id", _videoId) + return nil +} + +// VideoId Getter +func (r TaobaoItemAddAPIRequest) GetVideoId() int64 { + return r._videoId +} +// InteractiveId Setter +// 主图视频互动信息id,必须填写主图视频id才能有互动信息id +func (r *TaobaoItemAddAPIRequest) SetInteractiveId(_interactiveId int64) error { + r._interactiveId = _interactiveId + r.Set("interactive_id", _interactiveId) + return nil +} + +// InteractiveId Getter +func (r TaobaoItemAddAPIRequest) GetInteractiveId() int64 { + return r._interactiveId +} +// LeaseExtendsInfo Setter +// 租赁扩展信息 +func (r *TaobaoItemAddAPIRequest) SetLeaseExtendsInfo(_leaseExtendsInfo string) error { + r._leaseExtendsInfo = _leaseExtendsInfo + r.Set("lease_extends_info", _leaseExtendsInfo) + return nil +} + +// LeaseExtendsInfo Getter +func (r TaobaoItemAddAPIRequest) GetLeaseExtendsInfo() string { + return r._leaseExtendsInfo +} +// Brokerage Setter +// 仅淘小铺卖家需要。佣金比例(15.3对应的佣金比例为15.3%).只支持小数点后1位。多余的位数四舍五入(15.32会保存为15.3% +func (r *TaobaoItemAddAPIRequest) SetBrokerage(_brokerage string) error { + r._brokerage = _brokerage + r.Set("brokerage", _brokerage) + return nil +} + +// Brokerage Getter +func (r TaobaoItemAddAPIRequest) GetBrokerage() string { + return r._brokerage +} +// BizCode Setter +// 业务身份编码。淘小铺编码为"taobao-taoxiaopu" +func (r *TaobaoItemAddAPIRequest) SetBizCode(_bizCode string) error { + r._bizCode = _bizCode + r.Set("biz_code", _bizCode) + return nil +} + +// BizCode Getter +func (r TaobaoItemAddAPIRequest) GetBizCode() string { + return r._bizCode +} +// ImageUrls Setter +// 此字段已经废弃,不再使用 +func (r *TaobaoItemAddAPIRequest) SetImageUrls(_imageUrls []string) error { + r._imageUrls = _imageUrls + r.Set("image_urls", _imageUrls) + return nil +} + +// ImageUrls Getter +func (r TaobaoItemAddAPIRequest) GetImageUrls() []string { + return r._imageUrls +} +// LocalityLifeChooseLogis Setter +// 发布电子凭证宝贝时候表示是否使用邮寄 0: 代表不使用邮寄; 1:代表使用邮寄;如果不设置这个值,代表不使用邮寄 +func (r *TaobaoItemAddAPIRequest) SetLocalityLifeChooseLogis(_localityLifeChooseLogis string) error { + r._localityLifeChooseLogis = _localityLifeChooseLogis + r.Set("locality_life.choose_logis", _localityLifeChooseLogis) + return nil +} + +// LocalityLifeChooseLogis Getter +func (r TaobaoItemAddAPIRequest) GetLocalityLifeChooseLogis() string { + return r._localityLifeChooseLogis +} +// LocalityLifeExpirydate Setter +// 本地生活电子交易凭证业务,目前此字段只涉及到的信息为有效期;如果有效期为起止日期类型,此值为2012-08-06,2012-08-16如果有效期为【购买成功日 至】类型则格式为2012-08-16如果有效期为天数类型则格式为15 +func (r *TaobaoItemAddAPIRequest) SetLocalityLifeExpirydate(_localityLifeExpirydate string) error { + r._localityLifeExpirydate = _localityLifeExpirydate + r.Set("locality_life.expirydate", _localityLifeExpirydate) + return nil +} + +// LocalityLifeExpirydate Getter +func (r TaobaoItemAddAPIRequest) GetLocalityLifeExpirydate() string { + return r._localityLifeExpirydate +} +// LocalityLifeNetworkId Setter +// 网点ID +func (r *TaobaoItemAddAPIRequest) SetLocalityLifeNetworkId(_localityLifeNetworkId string) error { + r._localityLifeNetworkId = _localityLifeNetworkId + r.Set("locality_life.network_id", _localityLifeNetworkId) + return nil +} + +// LocalityLifeNetworkId Getter +func (r TaobaoItemAddAPIRequest) GetLocalityLifeNetworkId() string { + return r._localityLifeNetworkId +} +// LocalityLifeMerchant Setter +// 码商信息,格式为 码商id:nick +func (r *TaobaoItemAddAPIRequest) SetLocalityLifeMerchant(_localityLifeMerchant string) error { + r._localityLifeMerchant = _localityLifeMerchant + r.Set("locality_life.merchant", _localityLifeMerchant) + return nil +} + +// LocalityLifeMerchant Getter +func (r TaobaoItemAddAPIRequest) GetLocalityLifeMerchant() string { + return r._localityLifeMerchant +} +// LocalityLifeVerification Setter +// 核销打款 1代表核销打款 0代表非核销打款 +func (r *TaobaoItemAddAPIRequest) SetLocalityLifeVerification(_localityLifeVerification string) error { + r._localityLifeVerification = _localityLifeVerification + r.Set("locality_life.verification", _localityLifeVerification) + return nil +} + +// LocalityLifeVerification Getter +func (r TaobaoItemAddAPIRequest) GetLocalityLifeVerification() string { + return r._localityLifeVerification +} +// LocalityLifeRefundRatio Setter +// 退款比例,百分比%前的数字,1-100的正整数值 +func (r *TaobaoItemAddAPIRequest) SetLocalityLifeRefundRatio(_localityLifeRefundRatio int64) error { + r._localityLifeRefundRatio = _localityLifeRefundRatio + r.Set("locality_life.refund_ratio", _localityLifeRefundRatio) + return nil +} + +// LocalityLifeRefundRatio Getter +func (r TaobaoItemAddAPIRequest) GetLocalityLifeRefundRatio() int64 { + return r._localityLifeRefundRatio +} +// LocalityLifeOnsaleAutoRefundRatio Setter +// 电子凭证售中自动退款比例,百分比%前的数字,介于1-100之间的整数 +func (r *TaobaoItemAddAPIRequest) SetLocalityLifeOnsaleAutoRefundRatio(_localityLifeOnsaleAutoRefundRatio int64) error { + r._localityLifeOnsaleAutoRefundRatio = _localityLifeOnsaleAutoRefundRatio + r.Set("locality_life.onsale_auto_refund_ratio", _localityLifeOnsaleAutoRefundRatio) + return nil +} + +// LocalityLifeOnsaleAutoRefundRatio Getter +func (r TaobaoItemAddAPIRequest) GetLocalityLifeOnsaleAutoRefundRatio() int64 { + return r._localityLifeOnsaleAutoRefundRatio +} +// LocalityLifeRefundmafee Setter +// 退款码费承担方。发布电子凭证宝贝的时候会增加“退款码费承担方”配置项,可选填:(1)s(卖家承担) (2)b(买家承担) +func (r *TaobaoItemAddAPIRequest) SetLocalityLifeRefundmafee(_localityLifeRefundmafee string) error { + r._localityLifeRefundmafee = _localityLifeRefundmafee + r.Set("locality_life.refundmafee", _localityLifeRefundmafee) + return nil +} + +// LocalityLifeRefundmafee Getter +func (r TaobaoItemAddAPIRequest) GetLocalityLifeRefundmafee() string { + return r._localityLifeRefundmafee +} +// LocalityLifeEticket Setter +// 电子凭证业务属性,数据字典是: 1、is_card:1 (暂时不用) 2、consume_way:4 (1 串码 ,4 身份证)3、consume_midmnick :(核销放行账号:用户id-用户名,支持多个,用逗号分隔,例如 1234-测试账号35,1345-测试账号56)4、market:eticket (电子凭证商品标记) 5、has_pos:1 (1 表示商品配置线下门店,在detail上进行展示 ,没有或者其他值只不展示)格式是: k1:v2;k2:v2;........ 如:has_pos:1;market:eticket;consume_midmnick:901409638-OPPO;consume_way:4 +func (r *TaobaoItemAddAPIRequest) SetLocalityLifeEticket(_localityLifeEticket string) error { + r._localityLifeEticket = _localityLifeEticket + r.Set("locality_life.eticket", _localityLifeEticket) + return nil +} + +// LocalityLifeEticket Getter +func (r TaobaoItemAddAPIRequest) GetLocalityLifeEticket() string { + return r._localityLifeEticket +} +// PaimaiInfoMode Setter +// 拍卖商品选择的拍卖类型,拍卖类型包括三种:增价拍(1),荷兰拍(2)和降价拍(3)。 +func (r *TaobaoItemAddAPIRequest) SetPaimaiInfoMode(_paimaiInfoMode int64) error { + r._paimaiInfoMode = _paimaiInfoMode + r.Set("paimai_info.mode", _paimaiInfoMode) + return nil +} + +// PaimaiInfoMode Getter +func (r TaobaoItemAddAPIRequest) GetPaimaiInfoMode() int64 { + return r._paimaiInfoMode +} +// PaimaiInfoDeposit Setter +// 拍卖宝贝的保证金。对于增价拍和荷兰拍来说保证金有两种模式:淘宝默认模式(首次出价金额的10%),自定义固定保证金(固定冻结金额只能输入不超过30万的正整数),并且保证金只冻结1次。对于降价拍来说保证金只有淘宝默认的(竞拍价格的10% * 竞拍数量),并且每次出价都需要冻结保证金。对于拍卖宝贝来说,保证金是必须的,但是默认使用淘宝默认保证金模式,只有用户需要使用自定义固定保证金的时候才需要使用到这个参数,如果该参数不传或传入0则代表使用默认。 +func (r *TaobaoItemAddAPIRequest) SetPaimaiInfoDeposit(_paimaiInfoDeposit int64) error { + r._paimaiInfoDeposit = _paimaiInfoDeposit + r.Set("paimai_info.deposit", _paimaiInfoDeposit) + return nil +} + +// PaimaiInfoDeposit Getter +func (r TaobaoItemAddAPIRequest) GetPaimaiInfoDeposit() int64 { + return r._paimaiInfoDeposit +} +// PaimaiInfoInterval Setter +// 降价拍宝贝的降价周期(分钟)。降价拍宝贝的价格每隔paimai_info.interval时间会下降一次increment。 +func (r *TaobaoItemAddAPIRequest) SetPaimaiInfoInterval(_paimaiInfoInterval int64) error { + r._paimaiInfoInterval = _paimaiInfoInterval + r.Set("paimai_info.interval", _paimaiInfoInterval) + return nil +} + +// PaimaiInfoInterval Getter +func (r TaobaoItemAddAPIRequest) GetPaimaiInfoInterval() int64 { + return r._paimaiInfoInterval +} +// PaimaiInfoReserve Setter +// 降价拍宝贝的保留价。对于降价拍来说,paimai_info.reserve必须大于0,且小于price-increment,而且(price-paimai_info.reserve)/increment的计算结果必须为整数 +func (r *TaobaoItemAddAPIRequest) SetPaimaiInfoReserve(_paimaiInfoReserve float64) error { + r._paimaiInfoReserve = _paimaiInfoReserve + r.Set("paimai_info.reserve", _paimaiInfoReserve) + return nil +} + +// PaimaiInfoReserve Getter +func (r TaobaoItemAddAPIRequest) GetPaimaiInfoReserve() float64 { + return r._paimaiInfoReserve +} +// PaimaiInfoValidHour Setter +// 自定义销售周期的小时数。拍卖宝贝可以自定义销售周期,这里指定销售周期的小时数。注意,该参数只作为输入参数,不能通过taobao.item.get接口获取。 +func (r *TaobaoItemAddAPIRequest) SetPaimaiInfoValidHour(_paimaiInfoValidHour int64) error { + r._paimaiInfoValidHour = _paimaiInfoValidHour + r.Set("paimai_info.valid_hour", _paimaiInfoValidHour) + return nil +} + +// PaimaiInfoValidHour Getter +func (r TaobaoItemAddAPIRequest) GetPaimaiInfoValidHour() int64 { + return r._paimaiInfoValidHour +} +// PaimaiInfoValidMinute Setter +// 自定义销售周期的分钟数。拍卖宝贝可以自定义销售周期,这里是指定销售周期的分钟数。自定义销售周期的小时数。拍卖宝贝可以自定义销售周期,这里指定销售周期的小时数。注意,该参数只作为输入参数,不能通过taobao.item.get接口获取。 +func (r *TaobaoItemAddAPIRequest) SetPaimaiInfoValidMinute(_paimaiInfoValidMinute int64) error { + r._paimaiInfoValidMinute = _paimaiInfoValidMinute + r.Set("paimai_info.valid_minute", _paimaiInfoValidMinute) + return nil +} + +// PaimaiInfoValidMinute Getter +func (r TaobaoItemAddAPIRequest) GetPaimaiInfoValidMinute() int64 { + return r._paimaiInfoValidMinute +} +// GlobalStockType Setter +// 全球购商品采购地(库存类型),有两种库存类型:现货和代购参数值为1时代表现货,值为2时代表代购。注意:使用时请与 全球购商品采购地(地区/国家)配合使用 +func (r *TaobaoItemAddAPIRequest) SetGlobalStockType(_globalStockType string) error { + r._globalStockType = _globalStockType + r.Set("global_stock_type", _globalStockType) + return nil +} + +// GlobalStockType Getter +func (r TaobaoItemAddAPIRequest) GetGlobalStockType() string { + return r._globalStockType +} +// GlobalStockCountry Setter +// 全球购商品采购地(地区/国家),默认值只在全球购商品采购地(库存类型选择情况生效),地区国家值请填写法定的国家名称,类如(美国, 香港, 日本, 英国, 新西兰, 德国, 韩国, 荷兰, 法国, 意大利, 台湾, 澳门, 加拿大, 瑞士, 西班牙, 泰国, 新加坡, 马来西亚, 菲律宾),不要使用其他 +func (r *TaobaoItemAddAPIRequest) SetGlobalStockCountry(_globalStockCountry string) error { + r._globalStockCountry = _globalStockCountry + r.Set("global_stock_country", _globalStockCountry) + return nil +} + +// GlobalStockCountry Getter +func (r TaobaoItemAddAPIRequest) GetGlobalStockCountry() string { + return r._globalStockCountry +} +// SupportCustomMade Setter +// 是否支持定制市场 true代表支持,false代表支持,如果为空代表与之前保持不变不会修改 +func (r *TaobaoItemAddAPIRequest) SetSupportCustomMade(_supportCustomMade bool) error { + r._supportCustomMade = _supportCustomMade + r.Set("support_custom_made", _supportCustomMade) + return nil +} + +// SupportCustomMade Getter +func (r TaobaoItemAddAPIRequest) GetSupportCustomMade() bool { + return r._supportCustomMade +} +// CustomMadeTypeId Setter +// 定制工具Id如果支持定制市场,这个值不填写,就用之前的定制工具Id,之前的定制工具Id没有值就默认为-1 +func (r *TaobaoItemAddAPIRequest) SetCustomMadeTypeId(_customMadeTypeId string) error { + r._customMadeTypeId = _customMadeTypeId + r.Set("custom_made_type_id", _customMadeTypeId) + return nil +} + +// CustomMadeTypeId Getter +func (r TaobaoItemAddAPIRequest) GetCustomMadeTypeId() string { + return r._customMadeTypeId +} +// GlobalStockDeliveryPlace Setter +// 全球购商品发货地,发货地现在有两种类型:“国内”和“海外及港澳台”,参数值为1时代表“国内”,值为2时代表“海外及港澳台”,默认为国内。注意:卖家必须已经签署并启用“海外直邮”合约,才能选择发货地为“海外及港澳台” +func (r *TaobaoItemAddAPIRequest) SetGlobalStockDeliveryPlace(_globalStockDeliveryPlace string) error { + r._globalStockDeliveryPlace = _globalStockDeliveryPlace + r.Set("global_stock_delivery_place", _globalStockDeliveryPlace) + return nil +} + +// GlobalStockDeliveryPlace Getter +func (r TaobaoItemAddAPIRequest) GetGlobalStockDeliveryPlace() string { + return r._globalStockDeliveryPlace +} +// GlobalStockTaxFreePromise Setter +// 全球购商品卖家包税承诺,当值为true时,代表卖家承诺包税。注意:请与“全球购商品发货地”配合使用,包税承诺必须满足:1、发货地为海外及港澳台 2、卖家已经签署并启用“包税合约”合约 +func (r *TaobaoItemAddAPIRequest) SetGlobalStockTaxFreePromise(_globalStockTaxFreePromise bool) error { + r._globalStockTaxFreePromise = _globalStockTaxFreePromise + r.Set("global_stock_tax_free_promise", _globalStockTaxFreePromise) + return nil +} + +// GlobalStockTaxFreePromise Getter +func (r TaobaoItemAddAPIRequest) GetGlobalStockTaxFreePromise() bool { + return r._globalStockTaxFreePromise +} +// InputCustomCpv Setter +// 针对当前商品的自定义属性值,目前是针对销售属性值自定义的,所以调用方需要把自定义属性值对应的虚拟属性值ID(负整数,例如例子中的 -1和-2)像标准属性值值的id一样设置到SKU上,如果自定义属性值有属性值图片,也要设置到属性图片上 +func (r *TaobaoItemAddAPIRequest) SetInputCustomCpv(_inputCustomCpv string) error { + r._inputCustomCpv = _inputCustomCpv + r.Set("input_custom_cpv", _inputCustomCpv) + return nil +} + +// InputCustomCpv Getter +func (r TaobaoItemAddAPIRequest) GetInputCustomCpv() string { + return r._inputCustomCpv +} +// CpvMemo Setter +// 针对当前商品的标准属性值的补充说明,让买家更加了解商品信息减少交易纠纷 +func (r *TaobaoItemAddAPIRequest) SetCpvMemo(_cpvMemo string) error { + r._cpvMemo = _cpvMemo + r.Set("cpv_memo", _cpvMemo) + return nil +} + +// CpvMemo Getter +func (r TaobaoItemAddAPIRequest) GetCpvMemo() string { + return r._cpvMemo +} diff --git a/model/product/TaobaoItemAddAPIResponse.go b/model/product/TaobaoItemAddAPIResponse.go new file mode 100644 index 0000000000..76f48ee6e2 --- /dev/null +++ b/model/product/TaobaoItemAddAPIResponse.go @@ -0,0 +1,32 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加一个商品 API返回值 +taobao.item.add + +此接口用于新增一个淘宝商品 +商品的属性和sku的属性有包含的关系,商品的价格要位于sku的价格区间之中(例如,sku价格有5元、10元两种,那么商品的价格就需要大于等于5元,小于等于10元,否则新增商品会失败) +商品的类目和商品的价格、sku的价格都有一定的相关性(具体的关系要通过类目属性查询接口获得) +商品的运费承担方式和邮费设置有相关性,卖家承担运费不用设置邮费,买家承担运费需要设置邮费 +当关键属性值选择了“其他”的时候,需要输入input_pids和input_str商品才能添加成功。 +
点击查看更多商品API说明 +*/ +type TaobaoItemAddAPIResponse struct { + model.CommonResponse + TaobaoItemAddAPIResponseModel +} + +// 添加一个商品 成功返回结果 +type TaobaoItemAddAPIResponseModel struct { + XMLName xml.Name `xml:"item_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品结构,仅有numIid和created返回 + Item *Item `json:"item,omitempty" xml:"item,omitempty"` +} diff --git a/model/product/TaobaoItemAddResponse.go b/model/product/TaobaoItemAddResponse.go deleted file mode 100644 index 850e3311d6..0000000000 --- a/model/product/TaobaoItemAddResponse.go +++ /dev/null @@ -1,32 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加一个商品 API返回值 -taobao.item.add - -此接口用于新增一个淘宝商品 -商品的属性和sku的属性有包含的关系,商品的价格要位于sku的价格区间之中(例如,sku价格有5元、10元两种,那么商品的价格就需要大于等于5元,小于等于10元,否则新增商品会失败) -商品的类目和商品的价格、sku的价格都有一定的相关性(具体的关系要通过类目属性查询接口获得) -商品的运费承担方式和邮费设置有相关性,卖家承担运费不用设置邮费,买家承担运费需要设置邮费 -当关键属性值选择了“其他”的时候,需要输入input_pids和input_str商品才能添加成功。 -
点击查看更多商品API说明 -*/ -type TaobaoItemAddAPIResponse struct { - model.CommonResponse - TaobaoItemAddResponse -} - -// 添加一个商品 成功返回结果 -type TaobaoItemAddResponse struct { - XMLName xml.Name `xml:"item_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品结构,仅有numIid和created返回 - Item *Item `json:"item,omitempty" xml:"item,omitempty"` -} diff --git a/model/product/TaobaoItemAnchorGetAPIRequest.go b/model/product/TaobaoItemAnchorGetAPIRequest.go new file mode 100644 index 0000000000..f8fc257405 --- /dev/null +++ b/model/product/TaobaoItemAnchorGetAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取可用宝贝描述规范化模块 API请求 +taobao.item.anchor.get + +根据类目id和宝贝描述规范化打标类型获取该类目可用的宝贝描述模块中的锚点 +*/ +type TaobaoItemAnchorGetAPIRequest struct { + model.Params + // 宝贝模板类型是人工打标还是自动打标:人工打标为1,自动打标为0.人工和自动打标为-1.(最小值:-1,最大值:1) + _type int64 + // 对应类目编号 + _catId int64 +} + +// 初始化TaobaoItemAnchorGetAPIRequest对象 +func NewTaobaoItemAnchorGetRequest() *TaobaoItemAnchorGetAPIRequest{ + return &TaobaoItemAnchorGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemAnchorGetAPIRequest) GetApiMethodName() string { + return "taobao.item.anchor.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemAnchorGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// 宝贝模板类型是人工打标还是自动打标:人工打标为1,自动打标为0.人工和自动打标为-1.(最小值:-1,最大值:1) +func (r *TaobaoItemAnchorGetAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoItemAnchorGetAPIRequest) GetType() int64 { + return r._type +} +// CatId Setter +// 对应类目编号 +func (r *TaobaoItemAnchorGetAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r TaobaoItemAnchorGetAPIRequest) GetCatId() int64 { + return r._catId +} diff --git a/model/product/TaobaoItemAnchorGetAPIResponse.go b/model/product/TaobaoItemAnchorGetAPIResponse.go new file mode 100644 index 0000000000..ca1c0deea0 --- /dev/null +++ b/model/product/TaobaoItemAnchorGetAPIResponse.go @@ -0,0 +1,29 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取可用宝贝描述规范化模块 API返回值 +taobao.item.anchor.get + +根据类目id和宝贝描述规范化打标类型获取该类目可用的宝贝描述模块中的锚点 +*/ +type TaobaoItemAnchorGetAPIResponse struct { + model.CommonResponse + TaobaoItemAnchorGetAPIResponseModel +} + +// 获取可用宝贝描述规范化模块 成功返回结果 +type TaobaoItemAnchorGetAPIResponseModel struct { + XMLName xml.Name `xml:"item_anchor_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的宝贝描述模板结果数目 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 宝贝描述规范化可使用打标模块的锚点信息 + AnchorModules []IdsModule `json:"anchor_modules,omitempty" xml:"anchor_modules>ids_module,omitempty"` +} diff --git a/model/product/TaobaoItemAnchorGetResponse.go b/model/product/TaobaoItemAnchorGetResponse.go deleted file mode 100644 index 83ca52ec27..0000000000 --- a/model/product/TaobaoItemAnchorGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取可用宝贝描述规范化模块 API返回值 -taobao.item.anchor.get - -根据类目id和宝贝描述规范化打标类型获取该类目可用的宝贝描述模块中的锚点 -*/ -type TaobaoItemAnchorGetAPIResponse struct { - model.CommonResponse - TaobaoItemAnchorGetResponse -} - -// 获取可用宝贝描述规范化模块 成功返回结果 -type TaobaoItemAnchorGetResponse struct { - XMLName xml.Name `xml:"item_anchor_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的宝贝描述模板结果数目 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 宝贝描述规范化可使用打标模块的锚点信息 - AnchorModules []IdsModule `json:"anchor_modules,omitempty" xml:"anchor_modules>ids_module,omitempty"` -} diff --git a/model/product/TaobaoItemBarcodeUpdateAPIRequest.go b/model/product/TaobaoItemBarcodeUpdateAPIRequest.go new file mode 100644 index 0000000000..476db7b6b2 --- /dev/null +++ b/model/product/TaobaoItemBarcodeUpdateAPIRequest.go @@ -0,0 +1,122 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新商品条形码信息 API请求 +taobao.item.barcode.update + +通过该接口,将商品以及SKU上得条形码信息补全 +*/ +type TaobaoItemBarcodeUpdateAPIRequest struct { + model.Params + // 被更新商品的ID + _itemId int64 + // 商品条形码,如果不用更新,可选择不填 + _itemBarcode string + // 被更新SKU的ID列表,中间以英文逗号进行分隔。如果没有SKU或者不需要更新SKU的条形码,不需要设置 + _skuIds string + // SKU维度的条形码,和sku_ids字段一一对应,中间以英文逗号分隔 + _skuBarcodes string + // 是否强制保存商品条码。true:强制保存false :需要执行条码库校验 + _isforce bool + // 访问来源,这字段提供给千牛扫码枪用,其他调用方,不需要填写 + _src string +} + +// 初始化TaobaoItemBarcodeUpdateAPIRequest对象 +func NewTaobaoItemBarcodeUpdateRequest() *TaobaoItemBarcodeUpdateAPIRequest{ + return &TaobaoItemBarcodeUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemBarcodeUpdateAPIRequest) GetApiMethodName() string { + return "taobao.item.barcode.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemBarcodeUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 被更新商品的ID +func (r *TaobaoItemBarcodeUpdateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoItemBarcodeUpdateAPIRequest) GetItemId() int64 { + return r._itemId +} +// ItemBarcode Setter +// 商品条形码,如果不用更新,可选择不填 +func (r *TaobaoItemBarcodeUpdateAPIRequest) SetItemBarcode(_itemBarcode string) error { + r._itemBarcode = _itemBarcode + r.Set("item_barcode", _itemBarcode) + return nil +} + +// ItemBarcode Getter +func (r TaobaoItemBarcodeUpdateAPIRequest) GetItemBarcode() string { + return r._itemBarcode +} +// SkuIds Setter +// 被更新SKU的ID列表,中间以英文逗号进行分隔。如果没有SKU或者不需要更新SKU的条形码,不需要设置 +func (r *TaobaoItemBarcodeUpdateAPIRequest) SetSkuIds(_skuIds string) error { + r._skuIds = _skuIds + r.Set("sku_ids", _skuIds) + return nil +} + +// SkuIds Getter +func (r TaobaoItemBarcodeUpdateAPIRequest) GetSkuIds() string { + return r._skuIds +} +// SkuBarcodes Setter +// SKU维度的条形码,和sku_ids字段一一对应,中间以英文逗号分隔 +func (r *TaobaoItemBarcodeUpdateAPIRequest) SetSkuBarcodes(_skuBarcodes string) error { + r._skuBarcodes = _skuBarcodes + r.Set("sku_barcodes", _skuBarcodes) + return nil +} + +// SkuBarcodes Getter +func (r TaobaoItemBarcodeUpdateAPIRequest) GetSkuBarcodes() string { + return r._skuBarcodes +} +// Isforce Setter +// 是否强制保存商品条码。true:强制保存false :需要执行条码库校验 +func (r *TaobaoItemBarcodeUpdateAPIRequest) SetIsforce(_isforce bool) error { + r._isforce = _isforce + r.Set("isforce", _isforce) + return nil +} + +// Isforce Getter +func (r TaobaoItemBarcodeUpdateAPIRequest) GetIsforce() bool { + return r._isforce +} +// Src Setter +// 访问来源,这字段提供给千牛扫码枪用,其他调用方,不需要填写 +func (r *TaobaoItemBarcodeUpdateAPIRequest) SetSrc(_src string) error { + r._src = _src + r.Set("src", _src) + return nil +} + +// Src Getter +func (r TaobaoItemBarcodeUpdateAPIRequest) GetSrc() string { + return r._src +} diff --git a/model/product/TaobaoItemBarcodeUpdateAPIResponse.go b/model/product/TaobaoItemBarcodeUpdateAPIResponse.go new file mode 100644 index 0000000000..6f4cd1efcf --- /dev/null +++ b/model/product/TaobaoItemBarcodeUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新商品条形码信息 API返回值 +taobao.item.barcode.update + +通过该接口,将商品以及SKU上得条形码信息补全 +*/ +type TaobaoItemBarcodeUpdateAPIResponse struct { + model.CommonResponse + TaobaoItemBarcodeUpdateAPIResponseModel +} + +// 更新商品条形码信息 成功返回结果 +type TaobaoItemBarcodeUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"item_barcode_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品结构里的num_iid,modified + Item *Item `json:"item,omitempty" xml:"item,omitempty"` +} diff --git a/model/product/TaobaoItemBarcodeUpdateResponse.go b/model/product/TaobaoItemBarcodeUpdateResponse.go deleted file mode 100644 index 79a3803ade..0000000000 --- a/model/product/TaobaoItemBarcodeUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新商品条形码信息 API返回值 -taobao.item.barcode.update - -通过该接口,将商品以及SKU上得条形码信息补全 -*/ -type TaobaoItemBarcodeUpdateAPIResponse struct { - model.CommonResponse - TaobaoItemBarcodeUpdateResponse -} - -// 更新商品条形码信息 成功返回结果 -type TaobaoItemBarcodeUpdateResponse struct { - XMLName xml.Name `xml:"item_barcode_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品结构里的num_iid,modified - Item *Item `json:"item,omitempty" xml:"item,omitempty"` -} diff --git a/model/product/TaobaoItemCarturlGetAPIRequest.go b/model/product/TaobaoItemCarturlGetAPIRequest.go new file mode 100644 index 0000000000..f40e021147 --- /dev/null +++ b/model/product/TaobaoItemCarturlGetAPIRequest.go @@ -0,0 +1,122 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +加购URL获取 API请求 +taobao.item.carturl.get + +获取加购URL,支持添加商品到购物车 +*/ +type TaobaoItemCarturlGetAPIRequest struct { + model.Params + // 商品信息,格式为 商品ID_SKU ID_数量,多条记录以逗号(,)分割 + _itemIds []string + // 回调地址,需要是EWS域名地址。可不填,默认到购物车页面 + _callbackUrl string + // 商家Nick,优先使用user_id + _userNick string + // 商家ID + _userId int64 + // 扩展属性,关注店铺的时候会传递下去,格式为K:V|K:V格式 + _extParams string + // 端类型,默认是tb,可选tb,hm + _type string +} + +// 初始化TaobaoItemCarturlGetAPIRequest对象 +func NewTaobaoItemCarturlGetRequest() *TaobaoItemCarturlGetAPIRequest{ + return &TaobaoItemCarturlGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemCarturlGetAPIRequest) GetApiMethodName() string { + return "taobao.item.carturl.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemCarturlGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemIds Setter +// 商品信息,格式为 商品ID_SKU ID_数量,多条记录以逗号(,)分割 +func (r *TaobaoItemCarturlGetAPIRequest) SetItemIds(_itemIds []string) error { + r._itemIds = _itemIds + r.Set("item_ids", _itemIds) + return nil +} + +// ItemIds Getter +func (r TaobaoItemCarturlGetAPIRequest) GetItemIds() []string { + return r._itemIds +} +// CallbackUrl Setter +// 回调地址,需要是EWS域名地址。可不填,默认到购物车页面 +func (r *TaobaoItemCarturlGetAPIRequest) SetCallbackUrl(_callbackUrl string) error { + r._callbackUrl = _callbackUrl + r.Set("callback_url", _callbackUrl) + return nil +} + +// CallbackUrl Getter +func (r TaobaoItemCarturlGetAPIRequest) GetCallbackUrl() string { + return r._callbackUrl +} +// UserNick Setter +// 商家Nick,优先使用user_id +func (r *TaobaoItemCarturlGetAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r TaobaoItemCarturlGetAPIRequest) GetUserNick() string { + return r._userNick +} +// UserId Setter +// 商家ID +func (r *TaobaoItemCarturlGetAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoItemCarturlGetAPIRequest) GetUserId() int64 { + return r._userId +} +// ExtParams Setter +// 扩展属性,关注店铺的时候会传递下去,格式为K:V|K:V格式 +func (r *TaobaoItemCarturlGetAPIRequest) SetExtParams(_extParams string) error { + r._extParams = _extParams + r.Set("ext_params", _extParams) + return nil +} + +// ExtParams Getter +func (r TaobaoItemCarturlGetAPIRequest) GetExtParams() string { + return r._extParams +} +// Type Setter +// 端类型,默认是tb,可选tb,hm +func (r *TaobaoItemCarturlGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoItemCarturlGetAPIRequest) GetType() string { + return r._type +} diff --git a/model/product/TaobaoItemCarturlGetAPIResponse.go b/model/product/TaobaoItemCarturlGetAPIResponse.go new file mode 100644 index 0000000000..06f786dd21 --- /dev/null +++ b/model/product/TaobaoItemCarturlGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +加购URL获取 API返回值 +taobao.item.carturl.get + +获取加购URL,支持添加商品到购物车 +*/ +type TaobaoItemCarturlGetAPIResponse struct { + model.CommonResponse + TaobaoItemCarturlGetAPIResponseModel +} + +// 加购URL获取 成功返回结果 +type TaobaoItemCarturlGetAPIResponseModel struct { + XMLName xml.Name `xml:"item_carturl_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 加购的URL地址 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/product/TaobaoItemCarturlGetResponse.go b/model/product/TaobaoItemCarturlGetResponse.go deleted file mode 100644 index e75023f012..0000000000 --- a/model/product/TaobaoItemCarturlGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -加购URL获取 API返回值 -taobao.item.carturl.get - -获取加购URL,支持添加商品到购物车 -*/ -type TaobaoItemCarturlGetAPIResponse struct { - model.CommonResponse - TaobaoItemCarturlGetResponse -} - -// 加购URL获取 成功返回结果 -type TaobaoItemCarturlGetResponse struct { - XMLName xml.Name `xml:"item_carturl_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 加购的URL地址 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/product/TaobaoItemDeleteAPIRequest.go b/model/product/TaobaoItemDeleteAPIRequest.go new file mode 100644 index 0000000000..cb24588792 --- /dev/null +++ b/model/product/TaobaoItemDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除单条商品 API请求 +taobao.item.delete + +删除单条商品 +*/ +type TaobaoItemDeleteAPIRequest struct { + model.Params + // 商品数字ID,该参数必须 + _numIid int64 +} + +// 初始化TaobaoItemDeleteAPIRequest对象 +func NewTaobaoItemDeleteRequest() *TaobaoItemDeleteAPIRequest{ + return &TaobaoItemDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemDeleteAPIRequest) GetApiMethodName() string { + return "taobao.item.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NumIid Setter +// 商品数字ID,该参数必须 +func (r *TaobaoItemDeleteAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemDeleteAPIRequest) GetNumIid() int64 { + return r._numIid +} diff --git a/model/product/TaobaoItemDeleteAPIResponse.go b/model/product/TaobaoItemDeleteAPIResponse.go new file mode 100644 index 0000000000..6b2588648e --- /dev/null +++ b/model/product/TaobaoItemDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除单条商品 API返回值 +taobao.item.delete + +删除单条商品 +*/ +type TaobaoItemDeleteAPIResponse struct { + model.CommonResponse + TaobaoItemDeleteAPIResponseModel +} + +// 删除单条商品 成功返回结果 +type TaobaoItemDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"item_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 被删除商品的相关信息 + Item *Item `json:"item,omitempty" xml:"item,omitempty"` +} diff --git a/model/product/TaobaoItemDeleteResponse.go b/model/product/TaobaoItemDeleteResponse.go deleted file mode 100644 index ef61484c27..0000000000 --- a/model/product/TaobaoItemDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除单条商品 API返回值 -taobao.item.delete - -删除单条商品 -*/ -type TaobaoItemDeleteAPIResponse struct { - model.CommonResponse - TaobaoItemDeleteResponse -} - -// 删除单条商品 成功返回结果 -type TaobaoItemDeleteResponse struct { - XMLName xml.Name `xml:"item_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 被删除商品的相关信息 - Item *Item `json:"item,omitempty" xml:"item,omitempty"` -} diff --git a/model/product/TaobaoItemImgDeleteAPIRequest.go b/model/product/TaobaoItemImgDeleteAPIRequest.go new file mode 100644 index 0000000000..c2310bf921 --- /dev/null +++ b/model/product/TaobaoItemImgDeleteAPIRequest.go @@ -0,0 +1,80 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除商品图片 API请求 +taobao.item.img.delete + +删除商品图片 +*/ +type TaobaoItemImgDeleteAPIRequest struct { + model.Params + // 商品数字ID + _numIid int64 + // 商品图片ID;如果是竖图,请将id的值设置为1 + _id int64 + // 标记是否要删除第6张图,因为第6张图与普通商品图片不是存储在同一个位置的无图片ID,所以要通过一个标记来判断是否为第6张图,目前第6张图业务主要用在女装业务下 + _isSixthPic bool +} + +// 初始化TaobaoItemImgDeleteAPIRequest对象 +func NewTaobaoItemImgDeleteRequest() *TaobaoItemImgDeleteAPIRequest{ + return &TaobaoItemImgDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemImgDeleteAPIRequest) GetApiMethodName() string { + return "taobao.item.img.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemImgDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NumIid Setter +// 商品数字ID +func (r *TaobaoItemImgDeleteAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemImgDeleteAPIRequest) GetNumIid() int64 { + return r._numIid +} +// Id Setter +// 商品图片ID;如果是竖图,请将id的值设置为1 +func (r *TaobaoItemImgDeleteAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TaobaoItemImgDeleteAPIRequest) GetId() int64 { + return r._id +} +// IsSixthPic Setter +// 标记是否要删除第6张图,因为第6张图与普通商品图片不是存储在同一个位置的无图片ID,所以要通过一个标记来判断是否为第6张图,目前第6张图业务主要用在女装业务下 +func (r *TaobaoItemImgDeleteAPIRequest) SetIsSixthPic(_isSixthPic bool) error { + r._isSixthPic = _isSixthPic + r.Set("is_sixth_pic", _isSixthPic) + return nil +} + +// IsSixthPic Getter +func (r TaobaoItemImgDeleteAPIRequest) GetIsSixthPic() bool { + return r._isSixthPic +} diff --git a/model/product/TaobaoItemImgDeleteAPIResponse.go b/model/product/TaobaoItemImgDeleteAPIResponse.go new file mode 100644 index 0000000000..ba71e65aa6 --- /dev/null +++ b/model/product/TaobaoItemImgDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除商品图片 API返回值 +taobao.item.img.delete + +删除商品图片 +*/ +type TaobaoItemImgDeleteAPIResponse struct { + model.CommonResponse + TaobaoItemImgDeleteAPIResponseModel +} + +// 删除商品图片 成功返回结果 +type TaobaoItemImgDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"item_img_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品图片结构 + ItemImg *ItemImg `json:"item_img,omitempty" xml:"item_img,omitempty"` +} diff --git a/model/product/TaobaoItemImgDeleteResponse.go b/model/product/TaobaoItemImgDeleteResponse.go deleted file mode 100644 index 8601baabde..0000000000 --- a/model/product/TaobaoItemImgDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除商品图片 API返回值 -taobao.item.img.delete - -删除商品图片 -*/ -type TaobaoItemImgDeleteAPIResponse struct { - model.CommonResponse - TaobaoItemImgDeleteResponse -} - -// 删除商品图片 成功返回结果 -type TaobaoItemImgDeleteResponse struct { - XMLName xml.Name `xml:"item_img_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品图片结构 - ItemImg *ItemImg `json:"item_img,omitempty" xml:"item_img,omitempty"` -} diff --git a/model/product/TaobaoItemImgUploadAPIRequest.go b/model/product/TaobaoItemImgUploadAPIRequest.go new file mode 100644 index 0000000000..17549473ff --- /dev/null +++ b/model/product/TaobaoItemImgUploadAPIRequest.go @@ -0,0 +1,126 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加商品图片 API请求 +taobao.item.img.upload + +添加一张商品图片到num_iid指定的商品中 +传入的num_iid所对应的商品必须属于当前会话的用户 +如果更新图片需要设置itemimg_id,且该itemimg_id的图片记录需要属于传入的num_iid对应的商品。如果新增图片则不用设置 。 +使用taobao.item.seller.get中返回的item_imgs字段获取图片id。 +商品图片有数量和大小上的限制,根据卖家享有的服务(如:卖家订购了多图服务等),商品图片数量限制不同。 +*/ +type TaobaoItemImgUploadAPIRequest struct { + model.Params + // 商品图片id(如果是更新图片,则需要传该参数) + _id int64 + // 商品数字ID,该参数必须 + _numIid int64 + // 图片序号 + _position int64 + // 商品图片内容类型:JPG;最大:3M 。支持的文件类型:jpg,jpeg,png + _image *model.File + // 是否将该图片设为主图,可选值:true,false;默认值:false(非主图) + _isMajor bool + // 是否3:4长方形图片,绑定3:4主图视频时用于上传3:4商品主图 + _isRectangle bool +} + +// 初始化TaobaoItemImgUploadAPIRequest对象 +func NewTaobaoItemImgUploadRequest() *TaobaoItemImgUploadAPIRequest{ + return &TaobaoItemImgUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemImgUploadAPIRequest) GetApiMethodName() string { + return "taobao.item.img.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemImgUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 商品图片id(如果是更新图片,则需要传该参数) +func (r *TaobaoItemImgUploadAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TaobaoItemImgUploadAPIRequest) GetId() int64 { + return r._id +} +// NumIid Setter +// 商品数字ID,该参数必须 +func (r *TaobaoItemImgUploadAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemImgUploadAPIRequest) GetNumIid() int64 { + return r._numIid +} +// Position Setter +// 图片序号 +func (r *TaobaoItemImgUploadAPIRequest) SetPosition(_position int64) error { + r._position = _position + r.Set("position", _position) + return nil +} + +// Position Getter +func (r TaobaoItemImgUploadAPIRequest) GetPosition() int64 { + return r._position +} +// Image Setter +// 商品图片内容类型:JPG;最大:3M 。支持的文件类型:jpg,jpeg,png +func (r *TaobaoItemImgUploadAPIRequest) SetImage(_image *model.File) error { + r._image = _image + r.Set("image", _image) + return nil +} + +// Image Getter +func (r TaobaoItemImgUploadAPIRequest) GetImage() *model.File { + return r._image +} +// IsMajor Setter +// 是否将该图片设为主图,可选值:true,false;默认值:false(非主图) +func (r *TaobaoItemImgUploadAPIRequest) SetIsMajor(_isMajor bool) error { + r._isMajor = _isMajor + r.Set("is_major", _isMajor) + return nil +} + +// IsMajor Getter +func (r TaobaoItemImgUploadAPIRequest) GetIsMajor() bool { + return r._isMajor +} +// IsRectangle Setter +// 是否3:4长方形图片,绑定3:4主图视频时用于上传3:4商品主图 +func (r *TaobaoItemImgUploadAPIRequest) SetIsRectangle(_isRectangle bool) error { + r._isRectangle = _isRectangle + r.Set("is_rectangle", _isRectangle) + return nil +} + +// IsRectangle Getter +func (r TaobaoItemImgUploadAPIRequest) GetIsRectangle() bool { + return r._isRectangle +} diff --git a/model/product/TaobaoItemImgUploadAPIResponse.go b/model/product/TaobaoItemImgUploadAPIResponse.go new file mode 100644 index 0000000000..513be29d4c --- /dev/null +++ b/model/product/TaobaoItemImgUploadAPIResponse.go @@ -0,0 +1,31 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加商品图片 API返回值 +taobao.item.img.upload + +添加一张商品图片到num_iid指定的商品中 +传入的num_iid所对应的商品必须属于当前会话的用户 +如果更新图片需要设置itemimg_id,且该itemimg_id的图片记录需要属于传入的num_iid对应的商品。如果新增图片则不用设置 。 +使用taobao.item.seller.get中返回的item_imgs字段获取图片id。 +商品图片有数量和大小上的限制,根据卖家享有的服务(如:卖家订购了多图服务等),商品图片数量限制不同。 +*/ +type TaobaoItemImgUploadAPIResponse struct { + model.CommonResponse + TaobaoItemImgUploadAPIResponseModel +} + +// 添加商品图片 成功返回结果 +type TaobaoItemImgUploadAPIResponseModel struct { + XMLName xml.Name `xml:"item_img_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品图片结构 + ItemImg *ItemImg `json:"item_img,omitempty" xml:"item_img,omitempty"` +} diff --git a/model/product/TaobaoItemImgUploadResponse.go b/model/product/TaobaoItemImgUploadResponse.go deleted file mode 100644 index 2402d9deaa..0000000000 --- a/model/product/TaobaoItemImgUploadResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加商品图片 API返回值 -taobao.item.img.upload - -添加一张商品图片到num_iid指定的商品中 -传入的num_iid所对应的商品必须属于当前会话的用户 -如果更新图片需要设置itemimg_id,且该itemimg_id的图片记录需要属于传入的num_iid对应的商品。如果新增图片则不用设置 。 -使用taobao.item.seller.get中返回的item_imgs字段获取图片id。 -商品图片有数量和大小上的限制,根据卖家享有的服务(如:卖家订购了多图服务等),商品图片数量限制不同。 -*/ -type TaobaoItemImgUploadAPIResponse struct { - model.CommonResponse - TaobaoItemImgUploadResponse -} - -// 添加商品图片 成功返回结果 -type TaobaoItemImgUploadResponse struct { - XMLName xml.Name `xml:"item_img_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品图片结构 - ItemImg *ItemImg `json:"item_img,omitempty" xml:"item_img,omitempty"` -} diff --git a/model/product/TaobaoItemJointImgAPIRequest.go b/model/product/TaobaoItemJointImgAPIRequest.go new file mode 100644 index 0000000000..7cb44dcd38 --- /dev/null +++ b/model/product/TaobaoItemJointImgAPIRequest.go @@ -0,0 +1,122 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品关联子图 API请求 +taobao.item.joint.img + +* 关联一张商品图片到num_iid指定的商品中
* 传入的num_iid所对应的商品必须属于当前会话的用户
* 商品图片关联在卖家身份和图片来源上的限制,卖家要是B卖家或订购了多图服务才能关联图片,并且图片要来自于卖家自己的图片空间才行
* 商品图片数量有限制。不管是上传的图片还是关联的图片,他们的总数不能超过一定限额 +*/ +type TaobaoItemJointImgAPIRequest struct { + model.Params + // 商品图片id(如果是更新图片,则需要传该参数) + _id int64 + // 商品数字ID,必选 + _numIid int64 + // 图片URL,图片空间图片的相对地址,支持的文件类型:jpg,jpeg,png + _picPath string + // 上传的图片是否关联为商品主图 + _isMajor bool + // 图片序号 + _position int64 + // 是否3:4长方形图片,绑定3:4主图视频时用于上传3:4商品主图 + _isRectangle bool +} + +// 初始化TaobaoItemJointImgAPIRequest对象 +func NewTaobaoItemJointImgRequest() *TaobaoItemJointImgAPIRequest{ + return &TaobaoItemJointImgAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemJointImgAPIRequest) GetApiMethodName() string { + return "taobao.item.joint.img" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemJointImgAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 商品图片id(如果是更新图片,则需要传该参数) +func (r *TaobaoItemJointImgAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TaobaoItemJointImgAPIRequest) GetId() int64 { + return r._id +} +// NumIid Setter +// 商品数字ID,必选 +func (r *TaobaoItemJointImgAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemJointImgAPIRequest) GetNumIid() int64 { + return r._numIid +} +// PicPath Setter +// 图片URL,图片空间图片的相对地址,支持的文件类型:jpg,jpeg,png +func (r *TaobaoItemJointImgAPIRequest) SetPicPath(_picPath string) error { + r._picPath = _picPath + r.Set("pic_path", _picPath) + return nil +} + +// PicPath Getter +func (r TaobaoItemJointImgAPIRequest) GetPicPath() string { + return r._picPath +} +// IsMajor Setter +// 上传的图片是否关联为商品主图 +func (r *TaobaoItemJointImgAPIRequest) SetIsMajor(_isMajor bool) error { + r._isMajor = _isMajor + r.Set("is_major", _isMajor) + return nil +} + +// IsMajor Getter +func (r TaobaoItemJointImgAPIRequest) GetIsMajor() bool { + return r._isMajor +} +// Position Setter +// 图片序号 +func (r *TaobaoItemJointImgAPIRequest) SetPosition(_position int64) error { + r._position = _position + r.Set("position", _position) + return nil +} + +// Position Getter +func (r TaobaoItemJointImgAPIRequest) GetPosition() int64 { + return r._position +} +// IsRectangle Setter +// 是否3:4长方形图片,绑定3:4主图视频时用于上传3:4商品主图 +func (r *TaobaoItemJointImgAPIRequest) SetIsRectangle(_isRectangle bool) error { + r._isRectangle = _isRectangle + r.Set("is_rectangle", _isRectangle) + return nil +} + +// IsRectangle Getter +func (r TaobaoItemJointImgAPIRequest) GetIsRectangle() bool { + return r._isRectangle +} diff --git a/model/product/TaobaoItemJointImgAPIResponse.go b/model/product/TaobaoItemJointImgAPIResponse.go new file mode 100644 index 0000000000..d0411a283b --- /dev/null +++ b/model/product/TaobaoItemJointImgAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品关联子图 API返回值 +taobao.item.joint.img + +* 关联一张商品图片到num_iid指定的商品中
* 传入的num_iid所对应的商品必须属于当前会话的用户
* 商品图片关联在卖家身份和图片来源上的限制,卖家要是B卖家或订购了多图服务才能关联图片,并且图片要来自于卖家自己的图片空间才行
* 商品图片数量有限制。不管是上传的图片还是关联的图片,他们的总数不能超过一定限额 +*/ +type TaobaoItemJointImgAPIResponse struct { + model.CommonResponse + TaobaoItemJointImgAPIResponseModel +} + +// 商品关联子图 成功返回结果 +type TaobaoItemJointImgAPIResponseModel struct { + XMLName xml.Name `xml:"item_joint_img_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品图片信息 + ItemImg *ItemImg `json:"item_img,omitempty" xml:"item_img,omitempty"` +} diff --git a/model/product/TaobaoItemJointImgResponse.go b/model/product/TaobaoItemJointImgResponse.go deleted file mode 100644 index d206cba49b..0000000000 --- a/model/product/TaobaoItemJointImgResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品关联子图 API返回值 -taobao.item.joint.img - -* 关联一张商品图片到num_iid指定的商品中
* 传入的num_iid所对应的商品必须属于当前会话的用户
* 商品图片关联在卖家身份和图片来源上的限制,卖家要是B卖家或订购了多图服务才能关联图片,并且图片要来自于卖家自己的图片空间才行
* 商品图片数量有限制。不管是上传的图片还是关联的图片,他们的总数不能超过一定限额 -*/ -type TaobaoItemJointImgAPIResponse struct { - model.CommonResponse - TaobaoItemJointImgResponse -} - -// 商品关联子图 成功返回结果 -type TaobaoItemJointImgResponse struct { - XMLName xml.Name `xml:"item_joint_img_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品图片信息 - ItemImg *ItemImg `json:"item_img,omitempty" xml:"item_img,omitempty"` -} diff --git a/model/product/TaobaoItemJointPropimgAPIRequest.go b/model/product/TaobaoItemJointPropimgAPIRequest.go new file mode 100644 index 0000000000..879f8e80fd --- /dev/null +++ b/model/product/TaobaoItemJointPropimgAPIRequest.go @@ -0,0 +1,108 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品关联属性图 API请求 +taobao.item.joint.propimg + +* 关联一张商品属性图片到num_iid指定的商品中
* 传入的num_iid所对应的商品必须属于当前会话的用户
* 图片的属性必须要是颜色的属性,这个在前台显示的时候需要和sku进行关联的
* 商品图片关联在卖家身份和图片来源上的限制,卖家要是B卖家或订购了多图服务才能关联图片,并且图片要来自于卖家自己的图片空间才行
* 商品图片数量有限制。不管是上传的图片还是关联的图片,他们的总数不能超过一定限额,最多不能超过24张(每个颜色属性都有一张) +*/ +type TaobaoItemJointPropimgAPIRequest struct { + model.Params + // 属性列表。调用taobao.itemprops.get获取,属性必须是颜色属性,格式:pid:vid。 + _properties string + // 属性图片ID。如果是新增不需要填写 + _id int64 + // 图片地址(传入图片相对地址即可,即不需包含 http://img02.taobao.net/bao/uploaded ) + _picPath string + // 商品数字ID,必选 + _numIid int64 + // 图片序号 + _position int64 +} + +// 初始化TaobaoItemJointPropimgAPIRequest对象 +func NewTaobaoItemJointPropimgRequest() *TaobaoItemJointPropimgAPIRequest{ + return &TaobaoItemJointPropimgAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemJointPropimgAPIRequest) GetApiMethodName() string { + return "taobao.item.joint.propimg" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemJointPropimgAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Properties Setter +// 属性列表。调用taobao.itemprops.get获取,属性必须是颜色属性,格式:pid:vid。 +func (r *TaobaoItemJointPropimgAPIRequest) SetProperties(_properties string) error { + r._properties = _properties + r.Set("properties", _properties) + return nil +} + +// Properties Getter +func (r TaobaoItemJointPropimgAPIRequest) GetProperties() string { + return r._properties +} +// Id Setter +// 属性图片ID。如果是新增不需要填写 +func (r *TaobaoItemJointPropimgAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TaobaoItemJointPropimgAPIRequest) GetId() int64 { + return r._id +} +// PicPath Setter +// 图片地址(传入图片相对地址即可,即不需包含 http://img02.taobao.net/bao/uploaded ) +func (r *TaobaoItemJointPropimgAPIRequest) SetPicPath(_picPath string) error { + r._picPath = _picPath + r.Set("pic_path", _picPath) + return nil +} + +// PicPath Getter +func (r TaobaoItemJointPropimgAPIRequest) GetPicPath() string { + return r._picPath +} +// NumIid Setter +// 商品数字ID,必选 +func (r *TaobaoItemJointPropimgAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemJointPropimgAPIRequest) GetNumIid() int64 { + return r._numIid +} +// Position Setter +// 图片序号 +func (r *TaobaoItemJointPropimgAPIRequest) SetPosition(_position int64) error { + r._position = _position + r.Set("position", _position) + return nil +} + +// Position Getter +func (r TaobaoItemJointPropimgAPIRequest) GetPosition() int64 { + return r._position +} diff --git a/model/product/TaobaoItemJointPropimgAPIResponse.go b/model/product/TaobaoItemJointPropimgAPIResponse.go new file mode 100644 index 0000000000..b40db62abf --- /dev/null +++ b/model/product/TaobaoItemJointPropimgAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品关联属性图 API返回值 +taobao.item.joint.propimg + +* 关联一张商品属性图片到num_iid指定的商品中
* 传入的num_iid所对应的商品必须属于当前会话的用户
* 图片的属性必须要是颜色的属性,这个在前台显示的时候需要和sku进行关联的
* 商品图片关联在卖家身份和图片来源上的限制,卖家要是B卖家或订购了多图服务才能关联图片,并且图片要来自于卖家自己的图片空间才行
* 商品图片数量有限制。不管是上传的图片还是关联的图片,他们的总数不能超过一定限额,最多不能超过24张(每个颜色属性都有一张) +*/ +type TaobaoItemJointPropimgAPIResponse struct { + model.CommonResponse + TaobaoItemJointPropimgAPIResponseModel +} + +// 商品关联属性图 成功返回结果 +type TaobaoItemJointPropimgAPIResponseModel struct { + XMLName xml.Name `xml:"item_joint_propimg_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 属性图片对象信息 + PropImg *PropImg `json:"prop_img,omitempty" xml:"prop_img,omitempty"` +} diff --git a/model/product/TaobaoItemJointPropimgResponse.go b/model/product/TaobaoItemJointPropimgResponse.go deleted file mode 100644 index 5f25785cfa..0000000000 --- a/model/product/TaobaoItemJointPropimgResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品关联属性图 API返回值 -taobao.item.joint.propimg - -* 关联一张商品属性图片到num_iid指定的商品中
* 传入的num_iid所对应的商品必须属于当前会话的用户
* 图片的属性必须要是颜色的属性,这个在前台显示的时候需要和sku进行关联的
* 商品图片关联在卖家身份和图片来源上的限制,卖家要是B卖家或订购了多图服务才能关联图片,并且图片要来自于卖家自己的图片空间才行
* 商品图片数量有限制。不管是上传的图片还是关联的图片,他们的总数不能超过一定限额,最多不能超过24张(每个颜色属性都有一张) -*/ -type TaobaoItemJointPropimgAPIResponse struct { - model.CommonResponse - TaobaoItemJointPropimgResponse -} - -// 商品关联属性图 成功返回结果 -type TaobaoItemJointPropimgResponse struct { - XMLName xml.Name `xml:"item_joint_propimg_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 属性图片对象信息 - PropImg *PropImg `json:"prop_img,omitempty" xml:"prop_img,omitempty"` -} diff --git a/model/product/TaobaoItemPermitCheckAPIRequest.go b/model/product/TaobaoItemPermitCheckAPIRequest.go new file mode 100644 index 0000000000..85aecd2ed9 --- /dev/null +++ b/model/product/TaobaoItemPermitCheckAPIRequest.go @@ -0,0 +1,80 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发品资质校验 API请求 +taobao.item.permit.check + +对淘宝商品发品、编辑前的预校验接口 +*/ +type TaobaoItemPermitCheckAPIRequest struct { + model.Params + // 商品id + _itemId int64 + // 类目id + _cid int64 + // 发布类型。可选值:fixed(一口价),auction(拍卖) + _type string +} + +// 初始化TaobaoItemPermitCheckAPIRequest对象 +func NewTaobaoItemPermitCheckRequest() *TaobaoItemPermitCheckAPIRequest{ + return &TaobaoItemPermitCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemPermitCheckAPIRequest) GetApiMethodName() string { + return "taobao.item.permit.check" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemPermitCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TaobaoItemPermitCheckAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoItemPermitCheckAPIRequest) GetItemId() int64 { + return r._itemId +} +// Cid Setter +// 类目id +func (r *TaobaoItemPermitCheckAPIRequest) SetCid(_cid int64) error { + r._cid = _cid + r.Set("cid", _cid) + return nil +} + +// Cid Getter +func (r TaobaoItemPermitCheckAPIRequest) GetCid() int64 { + return r._cid +} +// Type Setter +// 发布类型。可选值:fixed(一口价),auction(拍卖) +func (r *TaobaoItemPermitCheckAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoItemPermitCheckAPIRequest) GetType() string { + return r._type +} diff --git a/model/product/TaobaoItemPermitCheckAPIResponse.go b/model/product/TaobaoItemPermitCheckAPIResponse.go new file mode 100644 index 0000000000..8dc483ee4c --- /dev/null +++ b/model/product/TaobaoItemPermitCheckAPIResponse.go @@ -0,0 +1,31 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发品资质校验 API返回值 +taobao.item.permit.check + +对淘宝商品发品、编辑前的预校验接口 +*/ +type TaobaoItemPermitCheckAPIResponse struct { + model.CommonResponse + TaobaoItemPermitCheckAPIResponseModel +} + +// 发品资质校验 成功返回结果 +type TaobaoItemPermitCheckAPIResponseModel struct { + XMLName xml.Name `xml:"item_permit_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 是否成功 + Error bool `json:"error,omitempty" xml:"error,omitempty"` + // 错误码 + Errorcode string `json:"errorcode,omitempty" xml:"errorcode,omitempty"` +} diff --git a/model/product/TaobaoItemPermitCheckResponse.go b/model/product/TaobaoItemPermitCheckResponse.go deleted file mode 100644 index 9171118171..0000000000 --- a/model/product/TaobaoItemPermitCheckResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发品资质校验 API返回值 -taobao.item.permit.check - -对淘宝商品发品、编辑前的预校验接口 -*/ -type TaobaoItemPermitCheckAPIResponse struct { - model.CommonResponse - TaobaoItemPermitCheckResponse -} - -// 发品资质校验 成功返回结果 -type TaobaoItemPermitCheckResponse struct { - XMLName xml.Name `xml:"item_permit_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 是否成功 - Error bool `json:"error,omitempty" xml:"error,omitempty"` - // 错误码 - Errorcode string `json:"errorcode,omitempty" xml:"errorcode,omitempty"` -} diff --git a/model/product/TaobaoItemPriceUpdateAPIRequest.go b/model/product/TaobaoItemPriceUpdateAPIRequest.go new file mode 100644 index 0000000000..e732f10dc4 --- /dev/null +++ b/model/product/TaobaoItemPriceUpdateAPIRequest.go @@ -0,0 +1,724 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新商品价格 API请求 +taobao.item.price.update + +更新商品价格 +*/ +type TaobaoItemPriceUpdateAPIRequest struct { + model.Params + // 所在地省份。如浙江 具体可以下载http://dl.open.taobao.com/sdk/商品城市列表.rar 取到 + _locationState string + // 所在地城市。如杭州 具体可以下载http://dl.open.taobao.com/sdk/商品城市列表.rar 取到 + _locationCity string + // 商品数字ID,该参数必须 + _numIid int64 + // 叶子类目id + _cid int64 + // 商品属性列表。格式:pid:vid;pid:vid。属性的pid调用taobao.itemprops.get取得,属性值的vid用taobao.itempropvalues.get取得vid。 如果该类目下面没有属性,可以不用填写。如果有属性,必选属性必填,其他非必选属性可以选择不填写.属性不能超过35对。所有属性加起来包括分割符不能超过549字节,单个属性没有限制。 如果有属性是可输入的话,则用字段input_str填入属性的值。 + _props string + // 商品数量,取值范围:0-999999的整数。且需要等于Sku所有数量的和 + _num int64 + // 商品价格。取值范围:0-100000000;精确到2位小数;单位:元。如:200.07,表示:200元7分。需要在正确的价格区间内。 + _price float64 + // 宝贝标题. 不能超过60字符,受违禁词控制 + _title string + // 商品描述. 字数要大于5个字符,小于25000个字符 ,受违禁词控制 + _desc string + // 平邮费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:5.07,表示:5元7分, 注:post_fee,express_fee,ems_fee需一起填写 + _postFee float64 + // 快递费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:15.07,表示:15元7分 + _expressFee float64 + // ems费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:25.07,表示:25元7分 + _emsFee float64 + // 上架时间。不论是更新架下的商品还是出售中的商品,如果这个字段小于当前时间则直接上架商品,并且上架的时间为更新商品的时间,此时item.is_timing为false,如果大于当前时间则宝贝会下架进入定时上架的宝贝中。 + _listTime string + // 加价幅度 如果为0,代表系统代理幅度 + _increment float64 + // 商品图片。类型:JPG,GIF;最大长度:500k + _image *model.File + // 商品新旧程度。可选值:new(全新),unused(闲置),second(二手)。 + _stuffStatus string + // 商品的积分返点比例。如:5 表示返点比例0.5%. 注意:返点比例必须是>0的整数,而且最大是90,即为9%.B商家在发布非虚拟商品时,返点必须是 5的倍数,即0.5%的倍数。其它是1的倍数,即0.1%的倍数。无名良品商家发布商品时,复用该字段记录积分宝返点比例,返点必须是对应类目的返点步长的整数倍,默认是5,即0.5%。注意此时该字段值依旧必须是>0的整数,注意此时该字段值依旧必须是>0的整数,最高值不超过500,即50% + _auctionPoint int64 + // 属性值别名。如pid:vid:别名;pid1:vid1:别名1, pid:属性id vid:值id。总长度不超过512字节 + _propertyAlias string + // 重新关联商品与店铺类目,结构:",cid1,cid2,...,",如果店铺类目存在二级类目,必须传入子类目cids。 + _sellerCids string + // 宝贝所属的运费模板ID。取值范围:整数且必须是该卖家的运费模板的ID(可通过taobao.postages.get获得当前会话用户的所有邮费模板) + _postageId int64 + // 商家编码 + _outerId string + // 商品所属的产品ID(B商家发布商品需要用) + _productId int64 + // 商品主图需要关联的图片空间的相对url。这个url所对应的图片必须要属于当前用户。pic_path和image只需要传入一个,如果两个都传,默认选择pic_path + _picPath string + // 代充商品类型。只有少数类目下的商品可以标记上此字段,具体哪些类目可以上传可以通过taobao.itemcat.features.get获得。在代充商品的类目下,不传表示不标记商品类型(交易搜索中就不能通过标记搜到相关的交易了)。可选类型:
no_mark(不做类型标记)
time_card(点卡软件代充)
fee_card(话费软件代充) + _autoFill string + // 是否在淘宝上显示 + _isTaobao bool + // 是否在外店显示 + _isEx bool + // 是否是3D + _is3D bool + // 是否替换sku + _isReplaceSku bool + // 商品文字的版本,繁体传入”zh_HK”,简体传入”zh_CN” + _lang string + // 支持会员打折。可选值:true,false; + _hasDiscount bool + // 橱窗推荐。可选值:true,false; + _hasShowcase bool + // 商品上传后的状态。可选值:onsale(出售中),instock(库中),如果同时更新商品状态为出售中及list_time为将来的时间,则商品还是处于定时上架的状态, 此时item.is_timing为true + _approveStatus string + // 运费承担方式。运费承担方式。可选值:seller(卖家承担),buyer(买家承担); + _freightPayer string + // 有效期。可选值:7,14;单位:天; + _validThru int64 + // 是否有发票。可选值:true,false (商城卖家此字段必须为true) + _hasInvoice bool + // 是否有保修。可选值:true,false; + _hasWarranty bool + // 是否承诺退换货服务!虚拟商品无须设置此项! + _sellPromise bool + // 货到付款运费模板ID + _codPostageId int64 + // 实物闪电发货。注意:在售的闪电发货产品不允许取消闪电发货,需要先下架商品才能取消闪电发货标记 + _isLightningConsignment bool + // 商品的重量(商超卖家专用字段) + _weight int64 + // 商品是否为新品。只有在当前类目开通新品,并且当前用户拥有该类目下发布新品权限时才能设置is_xinpin为true,否则设置true后会返回错误码:isv.invalid-permission:xinpin。同时只有一口价全新的宝贝才能设置为新品,否则会返回错误码:isv.invalid-parameter:xinpin。不设置参数就保持原有值。 + _isXinpin bool + // 商品是否支持拍下减库存:1支持;2取消支持(付款减库存);0(默认)不更改 集市卖家默认拍下减库存; 商城卖家默认付款减库存 + _subStock int64 + // 忽略警告提示. + _ignorewarning string + // 用户自行输入的类目属性ID串,结构:"pid1,pid2,pid3",如:"20000"(表示品牌) 注:通常一个类目下用户可输入的关键属性不超过1个。 + _inputPids string + // 更新的Sku的数量串,结构如:num1,num2,num3 如:2,3,4 + _skuQuantities string + // 更新的Sku的价格串,结构如:10.00,5.00,… 精确到2位小数;单位:元。如:200.07,表示:200元7分 + _skuPrices string + // 更新的Sku的属性串,调用taobao.itemprops.get获取类目属性,如果属性是销售属性,再用taobao.itempropvalues.get取得vid。格式:pid:vid;pid:vid。该字段内的销售属性也需要在props字段填写 。如果更新时有对Sku进行操作,则Sku的properties一定要传入。 + _skuProperties string + // Sku的外部id串,结构如:1234,1342,… sku_properties, sku_quantities, sku_prices, sku_outer_ids在输入数据时要一一对应,如果没有sku_outer_ids也要写上这个参数,入参是","(这个是两个sku的示列,逗号数应该是sku个数减1);该参数最大长度是512个字节 + _skuOuterIds string + // 用户自行输入的子属性名和属性值,结构:"父属性值;一级子属性名;一级子属性值;二级子属性名;自定义输入值,....",如:“耐克;耐克系列;科比系列;科比系列;2K5,Nike乔丹鞋;乔丹系列;乔丹鞋系列;乔丹鞋系列;json5”,多个自定义属性用','分割,input_str需要与input_pids一一对应,注:通常一个类目下用户可输入的关键属性不超过1个。所有属性别名加起来不能超过3999字节。此处不可以使用“其他”、“其它”和“其她”这三个词。 + _inputStr string +} + +// 初始化TaobaoItemPriceUpdateAPIRequest对象 +func NewTaobaoItemPriceUpdateRequest() *TaobaoItemPriceUpdateAPIRequest{ + return &TaobaoItemPriceUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemPriceUpdateAPIRequest) GetApiMethodName() string { + return "taobao.item.price.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemPriceUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LocationState Setter +// 所在地省份。如浙江 具体可以下载http://dl.open.taobao.com/sdk/商品城市列表.rar 取到 +func (r *TaobaoItemPriceUpdateAPIRequest) SetLocationState(_locationState string) error { + r._locationState = _locationState + r.Set("location.state", _locationState) + return nil +} + +// LocationState Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetLocationState() string { + return r._locationState +} +// LocationCity Setter +// 所在地城市。如杭州 具体可以下载http://dl.open.taobao.com/sdk/商品城市列表.rar 取到 +func (r *TaobaoItemPriceUpdateAPIRequest) SetLocationCity(_locationCity string) error { + r._locationCity = _locationCity + r.Set("location.city", _locationCity) + return nil +} + +// LocationCity Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetLocationCity() string { + return r._locationCity +} +// NumIid Setter +// 商品数字ID,该参数必须 +func (r *TaobaoItemPriceUpdateAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetNumIid() int64 { + return r._numIid +} +// Cid Setter +// 叶子类目id +func (r *TaobaoItemPriceUpdateAPIRequest) SetCid(_cid int64) error { + r._cid = _cid + r.Set("cid", _cid) + return nil +} + +// Cid Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetCid() int64 { + return r._cid +} +// Props Setter +// 商品属性列表。格式:pid:vid;pid:vid。属性的pid调用taobao.itemprops.get取得,属性值的vid用taobao.itempropvalues.get取得vid。 如果该类目下面没有属性,可以不用填写。如果有属性,必选属性必填,其他非必选属性可以选择不填写.属性不能超过35对。所有属性加起来包括分割符不能超过549字节,单个属性没有限制。 如果有属性是可输入的话,则用字段input_str填入属性的值。 +func (r *TaobaoItemPriceUpdateAPIRequest) SetProps(_props string) error { + r._props = _props + r.Set("props", _props) + return nil +} + +// Props Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetProps() string { + return r._props +} +// Num Setter +// 商品数量,取值范围:0-999999的整数。且需要等于Sku所有数量的和 +func (r *TaobaoItemPriceUpdateAPIRequest) SetNum(_num int64) error { + r._num = _num + r.Set("num", _num) + return nil +} + +// Num Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetNum() int64 { + return r._num +} +// Price Setter +// 商品价格。取值范围:0-100000000;精确到2位小数;单位:元。如:200.07,表示:200元7分。需要在正确的价格区间内。 +func (r *TaobaoItemPriceUpdateAPIRequest) SetPrice(_price float64) error { + r._price = _price + r.Set("price", _price) + return nil +} + +// Price Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetPrice() float64 { + return r._price +} +// Title Setter +// 宝贝标题. 不能超过60字符,受违禁词控制 +func (r *TaobaoItemPriceUpdateAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetTitle() string { + return r._title +} +// Desc Setter +// 商品描述. 字数要大于5个字符,小于25000个字符 ,受违禁词控制 +func (r *TaobaoItemPriceUpdateAPIRequest) SetDesc(_desc string) error { + r._desc = _desc + r.Set("desc", _desc) + return nil +} + +// Desc Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetDesc() string { + return r._desc +} +// PostFee Setter +// 平邮费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:5.07,表示:5元7分, 注:post_fee,express_fee,ems_fee需一起填写 +func (r *TaobaoItemPriceUpdateAPIRequest) SetPostFee(_postFee float64) error { + r._postFee = _postFee + r.Set("post_fee", _postFee) + return nil +} + +// PostFee Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetPostFee() float64 { + return r._postFee +} +// ExpressFee Setter +// 快递费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:15.07,表示:15元7分 +func (r *TaobaoItemPriceUpdateAPIRequest) SetExpressFee(_expressFee float64) error { + r._expressFee = _expressFee + r.Set("express_fee", _expressFee) + return nil +} + +// ExpressFee Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetExpressFee() float64 { + return r._expressFee +} +// EmsFee Setter +// ems费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:25.07,表示:25元7分 +func (r *TaobaoItemPriceUpdateAPIRequest) SetEmsFee(_emsFee float64) error { + r._emsFee = _emsFee + r.Set("ems_fee", _emsFee) + return nil +} + +// EmsFee Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetEmsFee() float64 { + return r._emsFee +} +// ListTime Setter +// 上架时间。不论是更新架下的商品还是出售中的商品,如果这个字段小于当前时间则直接上架商品,并且上架的时间为更新商品的时间,此时item.is_timing为false,如果大于当前时间则宝贝会下架进入定时上架的宝贝中。 +func (r *TaobaoItemPriceUpdateAPIRequest) SetListTime(_listTime string) error { + r._listTime = _listTime + r.Set("list_time", _listTime) + return nil +} + +// ListTime Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetListTime() string { + return r._listTime +} +// Increment Setter +// 加价幅度 如果为0,代表系统代理幅度 +func (r *TaobaoItemPriceUpdateAPIRequest) SetIncrement(_increment float64) error { + r._increment = _increment + r.Set("increment", _increment) + return nil +} + +// Increment Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetIncrement() float64 { + return r._increment +} +// Image Setter +// 商品图片。类型:JPG,GIF;最大长度:500k +func (r *TaobaoItemPriceUpdateAPIRequest) SetImage(_image *model.File) error { + r._image = _image + r.Set("image", _image) + return nil +} + +// Image Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetImage() *model.File { + return r._image +} +// StuffStatus Setter +// 商品新旧程度。可选值:new(全新),unused(闲置),second(二手)。 +func (r *TaobaoItemPriceUpdateAPIRequest) SetStuffStatus(_stuffStatus string) error { + r._stuffStatus = _stuffStatus + r.Set("stuff_status", _stuffStatus) + return nil +} + +// StuffStatus Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetStuffStatus() string { + return r._stuffStatus +} +// AuctionPoint Setter +// 商品的积分返点比例。如:5 表示返点比例0.5%. 注意:返点比例必须是>0的整数,而且最大是90,即为9%.B商家在发布非虚拟商品时,返点必须是 5的倍数,即0.5%的倍数。其它是1的倍数,即0.1%的倍数。无名良品商家发布商品时,复用该字段记录积分宝返点比例,返点必须是对应类目的返点步长的整数倍,默认是5,即0.5%。注意此时该字段值依旧必须是>0的整数,注意此时该字段值依旧必须是>0的整数,最高值不超过500,即50% +func (r *TaobaoItemPriceUpdateAPIRequest) SetAuctionPoint(_auctionPoint int64) error { + r._auctionPoint = _auctionPoint + r.Set("auction_point", _auctionPoint) + return nil +} + +// AuctionPoint Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetAuctionPoint() int64 { + return r._auctionPoint +} +// PropertyAlias Setter +// 属性值别名。如pid:vid:别名;pid1:vid1:别名1, pid:属性id vid:值id。总长度不超过512字节 +func (r *TaobaoItemPriceUpdateAPIRequest) SetPropertyAlias(_propertyAlias string) error { + r._propertyAlias = _propertyAlias + r.Set("property_alias", _propertyAlias) + return nil +} + +// PropertyAlias Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetPropertyAlias() string { + return r._propertyAlias +} +// SellerCids Setter +// 重新关联商品与店铺类目,结构:",cid1,cid2,...,",如果店铺类目存在二级类目,必须传入子类目cids。 +func (r *TaobaoItemPriceUpdateAPIRequest) SetSellerCids(_sellerCids string) error { + r._sellerCids = _sellerCids + r.Set("seller_cids", _sellerCids) + return nil +} + +// SellerCids Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetSellerCids() string { + return r._sellerCids +} +// PostageId Setter +// 宝贝所属的运费模板ID。取值范围:整数且必须是该卖家的运费模板的ID(可通过taobao.postages.get获得当前会话用户的所有邮费模板) +func (r *TaobaoItemPriceUpdateAPIRequest) SetPostageId(_postageId int64) error { + r._postageId = _postageId + r.Set("postage_id", _postageId) + return nil +} + +// PostageId Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetPostageId() int64 { + return r._postageId +} +// OuterId Setter +// 商家编码 +func (r *TaobaoItemPriceUpdateAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetOuterId() string { + return r._outerId +} +// ProductId Setter +// 商品所属的产品ID(B商家发布商品需要用) +func (r *TaobaoItemPriceUpdateAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetProductId() int64 { + return r._productId +} +// PicPath Setter +// 商品主图需要关联的图片空间的相对url。这个url所对应的图片必须要属于当前用户。pic_path和image只需要传入一个,如果两个都传,默认选择pic_path +func (r *TaobaoItemPriceUpdateAPIRequest) SetPicPath(_picPath string) error { + r._picPath = _picPath + r.Set("pic_path", _picPath) + return nil +} + +// PicPath Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetPicPath() string { + return r._picPath +} +// AutoFill Setter +// 代充商品类型。只有少数类目下的商品可以标记上此字段,具体哪些类目可以上传可以通过taobao.itemcat.features.get获得。在代充商品的类目下,不传表示不标记商品类型(交易搜索中就不能通过标记搜到相关的交易了)。可选类型:
no_mark(不做类型标记)
time_card(点卡软件代充)
fee_card(话费软件代充) +func (r *TaobaoItemPriceUpdateAPIRequest) SetAutoFill(_autoFill string) error { + r._autoFill = _autoFill + r.Set("auto_fill", _autoFill) + return nil +} + +// AutoFill Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetAutoFill() string { + return r._autoFill +} +// IsTaobao Setter +// 是否在淘宝上显示 +func (r *TaobaoItemPriceUpdateAPIRequest) SetIsTaobao(_isTaobao bool) error { + r._isTaobao = _isTaobao + r.Set("is_taobao", _isTaobao) + return nil +} + +// IsTaobao Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetIsTaobao() bool { + return r._isTaobao +} +// IsEx Setter +// 是否在外店显示 +func (r *TaobaoItemPriceUpdateAPIRequest) SetIsEx(_isEx bool) error { + r._isEx = _isEx + r.Set("is_ex", _isEx) + return nil +} + +// IsEx Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetIsEx() bool { + return r._isEx +} +// Is3D Setter +// 是否是3D +func (r *TaobaoItemPriceUpdateAPIRequest) SetIs3D(_is3D bool) error { + r._is3D = _is3D + r.Set("is_3D", _is3D) + return nil +} + +// Is3D Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetIs3D() bool { + return r._is3D +} +// IsReplaceSku Setter +// 是否替换sku +func (r *TaobaoItemPriceUpdateAPIRequest) SetIsReplaceSku(_isReplaceSku bool) error { + r._isReplaceSku = _isReplaceSku + r.Set("is_replace_sku", _isReplaceSku) + return nil +} + +// IsReplaceSku Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetIsReplaceSku() bool { + return r._isReplaceSku +} +// Lang Setter +// 商品文字的版本,繁体传入”zh_HK”,简体传入”zh_CN” +func (r *TaobaoItemPriceUpdateAPIRequest) SetLang(_lang string) error { + r._lang = _lang + r.Set("lang", _lang) + return nil +} + +// Lang Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetLang() string { + return r._lang +} +// HasDiscount Setter +// 支持会员打折。可选值:true,false; +func (r *TaobaoItemPriceUpdateAPIRequest) SetHasDiscount(_hasDiscount bool) error { + r._hasDiscount = _hasDiscount + r.Set("has_discount", _hasDiscount) + return nil +} + +// HasDiscount Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetHasDiscount() bool { + return r._hasDiscount +} +// HasShowcase Setter +// 橱窗推荐。可选值:true,false; +func (r *TaobaoItemPriceUpdateAPIRequest) SetHasShowcase(_hasShowcase bool) error { + r._hasShowcase = _hasShowcase + r.Set("has_showcase", _hasShowcase) + return nil +} + +// HasShowcase Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetHasShowcase() bool { + return r._hasShowcase +} +// ApproveStatus Setter +// 商品上传后的状态。可选值:onsale(出售中),instock(库中),如果同时更新商品状态为出售中及list_time为将来的时间,则商品还是处于定时上架的状态, 此时item.is_timing为true +func (r *TaobaoItemPriceUpdateAPIRequest) SetApproveStatus(_approveStatus string) error { + r._approveStatus = _approveStatus + r.Set("approve_status", _approveStatus) + return nil +} + +// ApproveStatus Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetApproveStatus() string { + return r._approveStatus +} +// FreightPayer Setter +// 运费承担方式。运费承担方式。可选值:seller(卖家承担),buyer(买家承担); +func (r *TaobaoItemPriceUpdateAPIRequest) SetFreightPayer(_freightPayer string) error { + r._freightPayer = _freightPayer + r.Set("freight_payer", _freightPayer) + return nil +} + +// FreightPayer Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetFreightPayer() string { + return r._freightPayer +} +// ValidThru Setter +// 有效期。可选值:7,14;单位:天; +func (r *TaobaoItemPriceUpdateAPIRequest) SetValidThru(_validThru int64) error { + r._validThru = _validThru + r.Set("valid_thru", _validThru) + return nil +} + +// ValidThru Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetValidThru() int64 { + return r._validThru +} +// HasInvoice Setter +// 是否有发票。可选值:true,false (商城卖家此字段必须为true) +func (r *TaobaoItemPriceUpdateAPIRequest) SetHasInvoice(_hasInvoice bool) error { + r._hasInvoice = _hasInvoice + r.Set("has_invoice", _hasInvoice) + return nil +} + +// HasInvoice Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetHasInvoice() bool { + return r._hasInvoice +} +// HasWarranty Setter +// 是否有保修。可选值:true,false; +func (r *TaobaoItemPriceUpdateAPIRequest) SetHasWarranty(_hasWarranty bool) error { + r._hasWarranty = _hasWarranty + r.Set("has_warranty", _hasWarranty) + return nil +} + +// HasWarranty Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetHasWarranty() bool { + return r._hasWarranty +} +// SellPromise Setter +// 是否承诺退换货服务!虚拟商品无须设置此项! +func (r *TaobaoItemPriceUpdateAPIRequest) SetSellPromise(_sellPromise bool) error { + r._sellPromise = _sellPromise + r.Set("sell_promise", _sellPromise) + return nil +} + +// SellPromise Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetSellPromise() bool { + return r._sellPromise +} +// CodPostageId Setter +// 货到付款运费模板ID +func (r *TaobaoItemPriceUpdateAPIRequest) SetCodPostageId(_codPostageId int64) error { + r._codPostageId = _codPostageId + r.Set("cod_postage_id", _codPostageId) + return nil +} + +// CodPostageId Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetCodPostageId() int64 { + return r._codPostageId +} +// IsLightningConsignment Setter +// 实物闪电发货。注意:在售的闪电发货产品不允许取消闪电发货,需要先下架商品才能取消闪电发货标记 +func (r *TaobaoItemPriceUpdateAPIRequest) SetIsLightningConsignment(_isLightningConsignment bool) error { + r._isLightningConsignment = _isLightningConsignment + r.Set("is_lightning_consignment", _isLightningConsignment) + return nil +} + +// IsLightningConsignment Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetIsLightningConsignment() bool { + return r._isLightningConsignment +} +// Weight Setter +// 商品的重量(商超卖家专用字段) +func (r *TaobaoItemPriceUpdateAPIRequest) SetWeight(_weight int64) error { + r._weight = _weight + r.Set("weight", _weight) + return nil +} + +// Weight Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetWeight() int64 { + return r._weight +} +// IsXinpin Setter +// 商品是否为新品。只有在当前类目开通新品,并且当前用户拥有该类目下发布新品权限时才能设置is_xinpin为true,否则设置true后会返回错误码:isv.invalid-permission:xinpin。同时只有一口价全新的宝贝才能设置为新品,否则会返回错误码:isv.invalid-parameter:xinpin。不设置参数就保持原有值。 +func (r *TaobaoItemPriceUpdateAPIRequest) SetIsXinpin(_isXinpin bool) error { + r._isXinpin = _isXinpin + r.Set("is_xinpin", _isXinpin) + return nil +} + +// IsXinpin Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetIsXinpin() bool { + return r._isXinpin +} +// SubStock Setter +// 商品是否支持拍下减库存:1支持;2取消支持(付款减库存);0(默认)不更改 集市卖家默认拍下减库存; 商城卖家默认付款减库存 +func (r *TaobaoItemPriceUpdateAPIRequest) SetSubStock(_subStock int64) error { + r._subStock = _subStock + r.Set("sub_stock", _subStock) + return nil +} + +// SubStock Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetSubStock() int64 { + return r._subStock +} +// Ignorewarning Setter +// 忽略警告提示. +func (r *TaobaoItemPriceUpdateAPIRequest) SetIgnorewarning(_ignorewarning string) error { + r._ignorewarning = _ignorewarning + r.Set("ignorewarning", _ignorewarning) + return nil +} + +// Ignorewarning Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetIgnorewarning() string { + return r._ignorewarning +} +// InputPids Setter +// 用户自行输入的类目属性ID串,结构:"pid1,pid2,pid3",如:"20000"(表示品牌) 注:通常一个类目下用户可输入的关键属性不超过1个。 +func (r *TaobaoItemPriceUpdateAPIRequest) SetInputPids(_inputPids string) error { + r._inputPids = _inputPids + r.Set("input_pids", _inputPids) + return nil +} + +// InputPids Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetInputPids() string { + return r._inputPids +} +// SkuQuantities Setter +// 更新的Sku的数量串,结构如:num1,num2,num3 如:2,3,4 +func (r *TaobaoItemPriceUpdateAPIRequest) SetSkuQuantities(_skuQuantities string) error { + r._skuQuantities = _skuQuantities + r.Set("sku_quantities", _skuQuantities) + return nil +} + +// SkuQuantities Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetSkuQuantities() string { + return r._skuQuantities +} +// SkuPrices Setter +// 更新的Sku的价格串,结构如:10.00,5.00,… 精确到2位小数;单位:元。如:200.07,表示:200元7分 +func (r *TaobaoItemPriceUpdateAPIRequest) SetSkuPrices(_skuPrices string) error { + r._skuPrices = _skuPrices + r.Set("sku_prices", _skuPrices) + return nil +} + +// SkuPrices Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetSkuPrices() string { + return r._skuPrices +} +// SkuProperties Setter +// 更新的Sku的属性串,调用taobao.itemprops.get获取类目属性,如果属性是销售属性,再用taobao.itempropvalues.get取得vid。格式:pid:vid;pid:vid。该字段内的销售属性也需要在props字段填写 。如果更新时有对Sku进行操作,则Sku的properties一定要传入。 +func (r *TaobaoItemPriceUpdateAPIRequest) SetSkuProperties(_skuProperties string) error { + r._skuProperties = _skuProperties + r.Set("sku_properties", _skuProperties) + return nil +} + +// SkuProperties Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetSkuProperties() string { + return r._skuProperties +} +// SkuOuterIds Setter +// Sku的外部id串,结构如:1234,1342,… sku_properties, sku_quantities, sku_prices, sku_outer_ids在输入数据时要一一对应,如果没有sku_outer_ids也要写上这个参数,入参是","(这个是两个sku的示列,逗号数应该是sku个数减1);该参数最大长度是512个字节 +func (r *TaobaoItemPriceUpdateAPIRequest) SetSkuOuterIds(_skuOuterIds string) error { + r._skuOuterIds = _skuOuterIds + r.Set("sku_outer_ids", _skuOuterIds) + return nil +} + +// SkuOuterIds Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetSkuOuterIds() string { + return r._skuOuterIds +} +// InputStr Setter +// 用户自行输入的子属性名和属性值,结构:"父属性值;一级子属性名;一级子属性值;二级子属性名;自定义输入值,....",如:“耐克;耐克系列;科比系列;科比系列;2K5,Nike乔丹鞋;乔丹系列;乔丹鞋系列;乔丹鞋系列;json5”,多个自定义属性用','分割,input_str需要与input_pids一一对应,注:通常一个类目下用户可输入的关键属性不超过1个。所有属性别名加起来不能超过3999字节。此处不可以使用“其他”、“其它”和“其她”这三个词。 +func (r *TaobaoItemPriceUpdateAPIRequest) SetInputStr(_inputStr string) error { + r._inputStr = _inputStr + r.Set("input_str", _inputStr) + return nil +} + +// InputStr Getter +func (r TaobaoItemPriceUpdateAPIRequest) GetInputStr() string { + return r._inputStr +} diff --git a/model/product/TaobaoItemPriceUpdateAPIResponse.go b/model/product/TaobaoItemPriceUpdateAPIResponse.go new file mode 100644 index 0000000000..8d3d37f1b0 --- /dev/null +++ b/model/product/TaobaoItemPriceUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新商品价格 API返回值 +taobao.item.price.update + +更新商品价格 +*/ +type TaobaoItemPriceUpdateAPIResponse struct { + model.CommonResponse + TaobaoItemPriceUpdateAPIResponseModel +} + +// 更新商品价格 成功返回结果 +type TaobaoItemPriceUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"item_price_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品结构里的num_iid,modified + Item *Item `json:"item,omitempty" xml:"item,omitempty"` +} diff --git a/model/product/TaobaoItemPriceUpdateResponse.go b/model/product/TaobaoItemPriceUpdateResponse.go deleted file mode 100644 index fb3cf5f59e..0000000000 --- a/model/product/TaobaoItemPriceUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新商品价格 API返回值 -taobao.item.price.update - -更新商品价格 -*/ -type TaobaoItemPriceUpdateAPIResponse struct { - model.CommonResponse - TaobaoItemPriceUpdateResponse -} - -// 更新商品价格 成功返回结果 -type TaobaoItemPriceUpdateResponse struct { - XMLName xml.Name `xml:"item_price_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品结构里的num_iid,modified - Item *Item `json:"item,omitempty" xml:"item,omitempty"` -} diff --git a/model/product/TaobaoItemPromotionRuleGetAPIRequest.go b/model/product/TaobaoItemPromotionRuleGetAPIRequest.go new file mode 100644 index 0000000000..a4a79d4378 --- /dev/null +++ b/model/product/TaobaoItemPromotionRuleGetAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商品已生效营销活动更新规则 API请求 +taobao.item.promotion.rule.get + +获取商品已生效的更新规则信息,主要包含库存禁止修改,商品一口价禁止修改,库存减少锁定等规则生效信息 +*/ +type TaobaoItemPromotionRuleGetAPIRequest struct { + model.Params + // 商品ID + _itemId int64 +} + +// 初始化TaobaoItemPromotionRuleGetAPIRequest对象 +func NewTaobaoItemPromotionRuleGetRequest() *TaobaoItemPromotionRuleGetAPIRequest{ + return &TaobaoItemPromotionRuleGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemPromotionRuleGetAPIRequest) GetApiMethodName() string { + return "taobao.item.promotion.rule.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemPromotionRuleGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品ID +func (r *TaobaoItemPromotionRuleGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoItemPromotionRuleGetAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/product/TaobaoItemPromotionRuleGetAPIResponse.go b/model/product/TaobaoItemPromotionRuleGetAPIResponse.go new file mode 100644 index 0000000000..30533b1028 --- /dev/null +++ b/model/product/TaobaoItemPromotionRuleGetAPIResponse.go @@ -0,0 +1,29 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商品已生效营销活动更新规则 API返回值 +taobao.item.promotion.rule.get + +获取商品已生效的更新规则信息,主要包含库存禁止修改,商品一口价禁止修改,库存减少锁定等规则生效信息 +*/ +type TaobaoItemPromotionRuleGetAPIResponse struct { + model.CommonResponse + TaobaoItemPromotionRuleGetAPIResponseModel +} + +// 获取商品已生效营销活动更新规则 成功返回结果 +type TaobaoItemPromotionRuleGetAPIResponseModel struct { + XMLName xml.Name `xml:"item_promotion_rule_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品规则信息 + Rules []ItemPromotionRule `json:"rules,omitempty" xml:"rules>item_promotion_rule,omitempty"` + // 商品是否命中更新规则 + Effec bool `json:"effec,omitempty" xml:"effec,omitempty"` +} diff --git a/model/product/TaobaoItemPromotionRuleGetResponse.go b/model/product/TaobaoItemPromotionRuleGetResponse.go deleted file mode 100644 index 8f79987316..0000000000 --- a/model/product/TaobaoItemPromotionRuleGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取商品已生效营销活动更新规则 API返回值 -taobao.item.promotion.rule.get - -获取商品已生效的更新规则信息,主要包含库存禁止修改,商品一口价禁止修改,库存减少锁定等规则生效信息 -*/ -type TaobaoItemPromotionRuleGetAPIResponse struct { - model.CommonResponse - TaobaoItemPromotionRuleGetResponse -} - -// 获取商品已生效营销活动更新规则 成功返回结果 -type TaobaoItemPromotionRuleGetResponse struct { - XMLName xml.Name `xml:"item_promotion_rule_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品规则信息 - Rules []ItemPromotionRule `json:"rules,omitempty" xml:"rules>item_promotion_rule,omitempty"` - // 商品是否命中更新规则 - Effec bool `json:"effec,omitempty" xml:"effec,omitempty"` -} diff --git a/model/product/TaobaoItemPropimgDeleteAPIRequest.go b/model/product/TaobaoItemPropimgDeleteAPIRequest.go new file mode 100644 index 0000000000..6f167d38f4 --- /dev/null +++ b/model/product/TaobaoItemPropimgDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除属性图片 API请求 +taobao.item.propimg.delete + +删除propimg_id 所指定的商品属性图片
传入的num_iid所对应的商品必须属于当前会话的用户
propimg_id对应的属性图片需要属于num_iid对应的商品 +*/ +type TaobaoItemPropimgDeleteAPIRequest struct { + model.Params + // 商品属性图片ID + _id int64 + // 商品数字ID,必选 + _numIid int64 +} + +// 初始化TaobaoItemPropimgDeleteAPIRequest对象 +func NewTaobaoItemPropimgDeleteRequest() *TaobaoItemPropimgDeleteAPIRequest{ + return &TaobaoItemPropimgDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemPropimgDeleteAPIRequest) GetApiMethodName() string { + return "taobao.item.propimg.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemPropimgDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 商品属性图片ID +func (r *TaobaoItemPropimgDeleteAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TaobaoItemPropimgDeleteAPIRequest) GetId() int64 { + return r._id +} +// NumIid Setter +// 商品数字ID,必选 +func (r *TaobaoItemPropimgDeleteAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemPropimgDeleteAPIRequest) GetNumIid() int64 { + return r._numIid +} diff --git a/model/product/TaobaoItemPropimgDeleteAPIResponse.go b/model/product/TaobaoItemPropimgDeleteAPIResponse.go new file mode 100644 index 0000000000..27e8a930d4 --- /dev/null +++ b/model/product/TaobaoItemPropimgDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除属性图片 API返回值 +taobao.item.propimg.delete + +删除propimg_id 所指定的商品属性图片
传入的num_iid所对应的商品必须属于当前会话的用户
propimg_id对应的属性图片需要属于num_iid对应的商品 +*/ +type TaobaoItemPropimgDeleteAPIResponse struct { + model.CommonResponse + TaobaoItemPropimgDeleteAPIResponseModel +} + +// 删除属性图片 成功返回结果 +type TaobaoItemPropimgDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"item_propimg_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 属性图片结构 + PropImg *PropImg `json:"prop_img,omitempty" xml:"prop_img,omitempty"` +} diff --git a/model/product/TaobaoItemPropimgDeleteResponse.go b/model/product/TaobaoItemPropimgDeleteResponse.go deleted file mode 100644 index 4f7fee32f1..0000000000 --- a/model/product/TaobaoItemPropimgDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除属性图片 API返回值 -taobao.item.propimg.delete - -删除propimg_id 所指定的商品属性图片
传入的num_iid所对应的商品必须属于当前会话的用户
propimg_id对应的属性图片需要属于num_iid对应的商品 -*/ -type TaobaoItemPropimgDeleteAPIResponse struct { - model.CommonResponse - TaobaoItemPropimgDeleteResponse -} - -// 删除属性图片 成功返回结果 -type TaobaoItemPropimgDeleteResponse struct { - XMLName xml.Name `xml:"item_propimg_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 属性图片结构 - PropImg *PropImg `json:"prop_img,omitempty" xml:"prop_img,omitempty"` -} diff --git a/model/product/TaobaoItemPropimgUploadAPIRequest.go b/model/product/TaobaoItemPropimgUploadAPIRequest.go new file mode 100644 index 0000000000..5c5b119ae5 --- /dev/null +++ b/model/product/TaobaoItemPropimgUploadAPIRequest.go @@ -0,0 +1,108 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加或修改属性图片 API请求 +taobao.item.propimg.upload + +添加一张商品属性图片到num_iid指定的商品中
传入的num_iid所对应的商品必须属于当前会话的用户
图片的属性必须要是颜色的属性,这个在前台显示的时候需要和sku进行关联的
商品属性图片只有享有服务的卖家(如:淘宝大卖家、订购了淘宝多图服务的卖家)才能上传
商品属性图片有数量和大小上的限制,最多不能超过24张(每个颜色属性都有一张)。 +*/ +type TaobaoItemPropimgUploadAPIRequest struct { + model.Params + // 商品数字ID,必选 + _numIid int64 + // 属性列表。调用taobao.itemprops.get获取类目属性,属性必须是颜色属性,再用taobao.itempropvalues.get取得vid。格式:pid:vid。 + _properties string + // 属性图片内容。类型:JPG,GIF;图片大小不超过:3M + _image *model.File + // 属性图片ID。如果是新增不需要填写 + _id int64 + // 图片位置 + _position int64 +} + +// 初始化TaobaoItemPropimgUploadAPIRequest对象 +func NewTaobaoItemPropimgUploadRequest() *TaobaoItemPropimgUploadAPIRequest{ + return &TaobaoItemPropimgUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemPropimgUploadAPIRequest) GetApiMethodName() string { + return "taobao.item.propimg.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemPropimgUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NumIid Setter +// 商品数字ID,必选 +func (r *TaobaoItemPropimgUploadAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemPropimgUploadAPIRequest) GetNumIid() int64 { + return r._numIid +} +// Properties Setter +// 属性列表。调用taobao.itemprops.get获取类目属性,属性必须是颜色属性,再用taobao.itempropvalues.get取得vid。格式:pid:vid。 +func (r *TaobaoItemPropimgUploadAPIRequest) SetProperties(_properties string) error { + r._properties = _properties + r.Set("properties", _properties) + return nil +} + +// Properties Getter +func (r TaobaoItemPropimgUploadAPIRequest) GetProperties() string { + return r._properties +} +// Image Setter +// 属性图片内容。类型:JPG,GIF;图片大小不超过:3M +func (r *TaobaoItemPropimgUploadAPIRequest) SetImage(_image *model.File) error { + r._image = _image + r.Set("image", _image) + return nil +} + +// Image Getter +func (r TaobaoItemPropimgUploadAPIRequest) GetImage() *model.File { + return r._image +} +// Id Setter +// 属性图片ID。如果是新增不需要填写 +func (r *TaobaoItemPropimgUploadAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TaobaoItemPropimgUploadAPIRequest) GetId() int64 { + return r._id +} +// Position Setter +// 图片位置 +func (r *TaobaoItemPropimgUploadAPIRequest) SetPosition(_position int64) error { + r._position = _position + r.Set("position", _position) + return nil +} + +// Position Getter +func (r TaobaoItemPropimgUploadAPIRequest) GetPosition() int64 { + return r._position +} diff --git a/model/product/TaobaoItemPropimgUploadAPIResponse.go b/model/product/TaobaoItemPropimgUploadAPIResponse.go new file mode 100644 index 0000000000..93695593b5 --- /dev/null +++ b/model/product/TaobaoItemPropimgUploadAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加或修改属性图片 API返回值 +taobao.item.propimg.upload + +添加一张商品属性图片到num_iid指定的商品中
传入的num_iid所对应的商品必须属于当前会话的用户
图片的属性必须要是颜色的属性,这个在前台显示的时候需要和sku进行关联的
商品属性图片只有享有服务的卖家(如:淘宝大卖家、订购了淘宝多图服务的卖家)才能上传
商品属性图片有数量和大小上的限制,最多不能超过24张(每个颜色属性都有一张)。 +*/ +type TaobaoItemPropimgUploadAPIResponse struct { + model.CommonResponse + TaobaoItemPropimgUploadAPIResponseModel +} + +// 添加或修改属性图片 成功返回结果 +type TaobaoItemPropimgUploadAPIResponseModel struct { + XMLName xml.Name `xml:"item_propimg_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // PropImg属性图片结构 + PropImg *PropImg `json:"prop_img,omitempty" xml:"prop_img,omitempty"` +} diff --git a/model/product/TaobaoItemPropimgUploadResponse.go b/model/product/TaobaoItemPropimgUploadResponse.go deleted file mode 100644 index 9c63a7ca9a..0000000000 --- a/model/product/TaobaoItemPropimgUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加或修改属性图片 API返回值 -taobao.item.propimg.upload - -添加一张商品属性图片到num_iid指定的商品中
传入的num_iid所对应的商品必须属于当前会话的用户
图片的属性必须要是颜色的属性,这个在前台显示的时候需要和sku进行关联的
商品属性图片只有享有服务的卖家(如:淘宝大卖家、订购了淘宝多图服务的卖家)才能上传
商品属性图片有数量和大小上的限制,最多不能超过24张(每个颜色属性都有一张)。 -*/ -type TaobaoItemPropimgUploadAPIResponse struct { - model.CommonResponse - TaobaoItemPropimgUploadResponse -} - -// 添加或修改属性图片 成功返回结果 -type TaobaoItemPropimgUploadResponse struct { - XMLName xml.Name `xml:"item_propimg_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // PropImg属性图片结构 - PropImg *PropImg `json:"prop_img,omitempty" xml:"prop_img,omitempty"` -} diff --git a/model/product/TaobaoItemQualificationDisplayGetAPIRequest.go b/model/product/TaobaoItemQualificationDisplayGetAPIRequest.go new file mode 100644 index 0000000000..f620beca70 --- /dev/null +++ b/model/product/TaobaoItemQualificationDisplayGetAPIRequest.go @@ -0,0 +1,80 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +资质采集配置异步获取接口 API请求 +taobao.item.qualification.display.get + +根据类目,商品,属性等参与动态获得资质采集配置 +*/ +type TaobaoItemQualificationDisplayGetAPIRequest struct { + model.Params + // 参数列表,为key和value都是string的map的转化的json格式 + _param string + // 商品id + _itemId int64 + // 类目id + _categoryId int64 +} + +// 初始化TaobaoItemQualificationDisplayGetAPIRequest对象 +func NewTaobaoItemQualificationDisplayGetRequest() *TaobaoItemQualificationDisplayGetAPIRequest{ + return &TaobaoItemQualificationDisplayGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemQualificationDisplayGetAPIRequest) GetApiMethodName() string { + return "taobao.item.qualification.display.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemQualificationDisplayGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 参数列表,为key和value都是string的map的转化的json格式 +func (r *TaobaoItemQualificationDisplayGetAPIRequest) SetParam(_param string) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r TaobaoItemQualificationDisplayGetAPIRequest) GetParam() string { + return r._param +} +// ItemId Setter +// 商品id +func (r *TaobaoItemQualificationDisplayGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoItemQualificationDisplayGetAPIRequest) GetItemId() int64 { + return r._itemId +} +// CategoryId Setter +// 类目id +func (r *TaobaoItemQualificationDisplayGetAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r TaobaoItemQualificationDisplayGetAPIRequest) GetCategoryId() int64 { + return r._categoryId +} diff --git a/model/product/TaobaoItemQualificationDisplayGetAPIResponse.go b/model/product/TaobaoItemQualificationDisplayGetAPIResponse.go new file mode 100644 index 0000000000..718418c6d1 --- /dev/null +++ b/model/product/TaobaoItemQualificationDisplayGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +资质采集配置异步获取接口 API返回值 +taobao.item.qualification.display.get + +根据类目,商品,属性等参与动态获得资质采集配置 +*/ +type TaobaoItemQualificationDisplayGetAPIResponse struct { + model.CommonResponse + TaobaoItemQualificationDisplayGetAPIResponseModel +} + +// 资质采集配置异步获取接口 成功返回结果 +type TaobaoItemQualificationDisplayGetAPIResponseModel struct { + XMLName xml.Name `xml:"item_qualification_display_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回资质采集配置 + DisplayConf *DisplayQualifications `json:"display_conf,omitempty" xml:"display_conf,omitempty"` +} diff --git a/model/product/TaobaoItemQualificationDisplayGetResponse.go b/model/product/TaobaoItemQualificationDisplayGetResponse.go deleted file mode 100644 index c830646f06..0000000000 --- a/model/product/TaobaoItemQualificationDisplayGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -资质采集配置异步获取接口 API返回值 -taobao.item.qualification.display.get - -根据类目,商品,属性等参与动态获得资质采集配置 -*/ -type TaobaoItemQualificationDisplayGetAPIResponse struct { - model.CommonResponse - TaobaoItemQualificationDisplayGetResponse -} - -// 资质采集配置异步获取接口 成功返回结果 -type TaobaoItemQualificationDisplayGetResponse struct { - XMLName xml.Name `xml:"item_qualification_display_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回资质采集配置 - DisplayConf *DisplayQualifications `json:"display_conf,omitempty" xml:"display_conf,omitempty"` -} diff --git a/model/product/TaobaoItemQuantityUpdateAPIRequest.go b/model/product/TaobaoItemQuantityUpdateAPIRequest.go new file mode 100644 index 0000000000..3da6ea6dfa --- /dev/null +++ b/model/product/TaobaoItemQuantityUpdateAPIRequest.go @@ -0,0 +1,108 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +宝贝/SKU库存修改 API请求 +taobao.item.quantity.update + +提供按照全量或增量形式修改宝贝/SKU库存的功能 +*/ +type TaobaoItemQuantityUpdateAPIRequest struct { + model.Params + // 商品数字ID,必填参数 + _numIid int64 + // 要操作的SKU的数字ID,可选。如果不填默认修改宝贝的库存,如果填上则修改该SKU的库存 + _skuId int64 + // SKU的商家编码,可选参数。如果不填则默认修改宝贝的库存,如果填了则按照商家编码搜索出对应的SKU并修改库存。当sku_id和本字段都填写时以sku_id为准搜索对应SKU + _outerId string + // 库存修改值,必选。当全量更新库存时,quantity必须为大于等于0的正整数;当增量更新库存时,quantity为整数,可小于等于0。若增量更新时传入的库存为负数,则负数与实际库存之和不能小于0。比如当前实际库存为1,传入增量更新quantity=-1,库存改为0 + _quantity int64 + // 库存更新方式,可选。1为全量更新,2为增量更新。如果不填,默认为全量更新 + _type int64 +} + +// 初始化TaobaoItemQuantityUpdateAPIRequest对象 +func NewTaobaoItemQuantityUpdateRequest() *TaobaoItemQuantityUpdateAPIRequest{ + return &TaobaoItemQuantityUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemQuantityUpdateAPIRequest) GetApiMethodName() string { + return "taobao.item.quantity.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemQuantityUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NumIid Setter +// 商品数字ID,必填参数 +func (r *TaobaoItemQuantityUpdateAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemQuantityUpdateAPIRequest) GetNumIid() int64 { + return r._numIid +} +// SkuId Setter +// 要操作的SKU的数字ID,可选。如果不填默认修改宝贝的库存,如果填上则修改该SKU的库存 +func (r *TaobaoItemQuantityUpdateAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TaobaoItemQuantityUpdateAPIRequest) GetSkuId() int64 { + return r._skuId +} +// OuterId Setter +// SKU的商家编码,可选参数。如果不填则默认修改宝贝的库存,如果填了则按照商家编码搜索出对应的SKU并修改库存。当sku_id和本字段都填写时以sku_id为准搜索对应SKU +func (r *TaobaoItemQuantityUpdateAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoItemQuantityUpdateAPIRequest) GetOuterId() string { + return r._outerId +} +// Quantity Setter +// 库存修改值,必选。当全量更新库存时,quantity必须为大于等于0的正整数;当增量更新库存时,quantity为整数,可小于等于0。若增量更新时传入的库存为负数,则负数与实际库存之和不能小于0。比如当前实际库存为1,传入增量更新quantity=-1,库存改为0 +func (r *TaobaoItemQuantityUpdateAPIRequest) SetQuantity(_quantity int64) error { + r._quantity = _quantity + r.Set("quantity", _quantity) + return nil +} + +// Quantity Getter +func (r TaobaoItemQuantityUpdateAPIRequest) GetQuantity() int64 { + return r._quantity +} +// Type Setter +// 库存更新方式,可选。1为全量更新,2为增量更新。如果不填,默认为全量更新 +func (r *TaobaoItemQuantityUpdateAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoItemQuantityUpdateAPIRequest) GetType() int64 { + return r._type +} diff --git a/model/product/TaobaoItemQuantityUpdateAPIResponse.go b/model/product/TaobaoItemQuantityUpdateAPIResponse.go new file mode 100644 index 0000000000..68bff0b5d9 --- /dev/null +++ b/model/product/TaobaoItemQuantityUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +宝贝/SKU库存修改 API返回值 +taobao.item.quantity.update + +提供按照全量或增量形式修改宝贝/SKU库存的功能 +*/ +type TaobaoItemQuantityUpdateAPIResponse struct { + model.CommonResponse + TaobaoItemQuantityUpdateAPIResponseModel +} + +// 宝贝/SKU库存修改 成功返回结果 +type TaobaoItemQuantityUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"item_quantity_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // iid、numIid、num和modified,skus中每个sku的skuId、quantity和modified + Item *Item `json:"item,omitempty" xml:"item,omitempty"` +} diff --git a/model/product/TaobaoItemQuantityUpdateResponse.go b/model/product/TaobaoItemQuantityUpdateResponse.go deleted file mode 100644 index e3b56f659b..0000000000 --- a/model/product/TaobaoItemQuantityUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -宝贝/SKU库存修改 API返回值 -taobao.item.quantity.update - -提供按照全量或增量形式修改宝贝/SKU库存的功能 -*/ -type TaobaoItemQuantityUpdateAPIResponse struct { - model.CommonResponse - TaobaoItemQuantityUpdateResponse -} - -// 宝贝/SKU库存修改 成功返回结果 -type TaobaoItemQuantityUpdateResponse struct { - XMLName xml.Name `xml:"item_quantity_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // iid、numIid、num和modified,skus中每个sku的skuId、quantity和modified - Item *Item `json:"item,omitempty" xml:"item,omitempty"` -} diff --git a/model/product/TaobaoItemSellerGetAPIRequest.go b/model/product/TaobaoItemSellerGetAPIRequest.go new file mode 100644 index 0000000000..97f68f38eb --- /dev/null +++ b/model/product/TaobaoItemSellerGetAPIRequest.go @@ -0,0 +1,67 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单个商品详细信息 API请求 +taobao.item.seller.get + +获取单个商品的全部信息 +
点击查看更多商品API说明 +*/ +type TaobaoItemSellerGetAPIRequest struct { + model.Params + // 需要返回的商品字段列表。可选值:Item商品结构体中所有字段均可返回,多个字段用“,”分隔。 + _fields string + // 商品数字ID + _numIid int64 +} + +// 初始化TaobaoItemSellerGetAPIRequest对象 +func NewTaobaoItemSellerGetRequest() *TaobaoItemSellerGetAPIRequest{ + return &TaobaoItemSellerGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemSellerGetAPIRequest) GetApiMethodName() string { + return "taobao.item.seller.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemSellerGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的商品字段列表。可选值:Item商品结构体中所有字段均可返回,多个字段用“,”分隔。 +func (r *TaobaoItemSellerGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoItemSellerGetAPIRequest) GetFields() string { + return r._fields +} +// NumIid Setter +// 商品数字ID +func (r *TaobaoItemSellerGetAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemSellerGetAPIRequest) GetNumIid() int64 { + return r._numIid +} diff --git a/model/product/TaobaoItemSellerGetAPIResponse.go b/model/product/TaobaoItemSellerGetAPIResponse.go new file mode 100644 index 0000000000..c50dbebdbf --- /dev/null +++ b/model/product/TaobaoItemSellerGetAPIResponse.go @@ -0,0 +1,28 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单个商品详细信息 API返回值 +taobao.item.seller.get + +获取单个商品的全部信息 +
点击查看更多商品API说明 +*/ +type TaobaoItemSellerGetAPIResponse struct { + model.CommonResponse + TaobaoItemSellerGetAPIResponseModel +} + +// 获取单个商品详细信息 成功返回结果 +type TaobaoItemSellerGetAPIResponseModel struct { + XMLName xml.Name `xml:"item_seller_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品详细信息 + Item *Item `json:"item,omitempty" xml:"item,omitempty"` +} diff --git a/model/product/TaobaoItemSellerGetResponse.go b/model/product/TaobaoItemSellerGetResponse.go deleted file mode 100644 index 4c0616be9a..0000000000 --- a/model/product/TaobaoItemSellerGetResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取单个商品详细信息 API返回值 -taobao.item.seller.get - -获取单个商品的全部信息 -
点击查看更多商品API说明 -*/ -type TaobaoItemSellerGetAPIResponse struct { - model.CommonResponse - TaobaoItemSellerGetResponse -} - -// 获取单个商品详细信息 成功返回结果 -type TaobaoItemSellerGetResponse struct { - XMLName xml.Name `xml:"item_seller_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品详细信息 - Item *Item `json:"item,omitempty" xml:"item,omitempty"` -} diff --git a/model/product/TaobaoItemSkuAddAPIRequest.go b/model/product/TaobaoItemSkuAddAPIRequest.go new file mode 100644 index 0000000000..98faf03151 --- /dev/null +++ b/model/product/TaobaoItemSkuAddAPIRequest.go @@ -0,0 +1,150 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加SKU API请求 +taobao.item.sku.add + +新增一个sku到num_iid指定的商品中
传入的iid所对应的商品必须属于当前会话的用户 +*/ +type TaobaoItemSkuAddAPIRequest struct { + model.Params + // Sku所属商品数字id。必选 + _numIid int64 + // Sku属性串。格式:pid:vid;pid:vid,如:1627207:3232483;1630696:3284570,表示:机身颜色:军绿色;手机套餐:一电一充。 + _properties string + // Sku的库存数量。sku的总数量应该小于等于商品总数量(Item的NUM)。取值范围:大于零的整数 + _quantity int64 + // Sku的销售价格。商品的价格要在商品所有的sku的价格之间。精确到2位小数;单位:元。如:200.07,表示:200元7分 + _price float64 + // Sku的商家外部id + _outerId string + // sku所属商品的价格。当用户新增sku,使商品价格不属于sku价格之间的时候,用于修改商品的价格,使sku能够添加成功 + _itemPrice float64 + // Sku文字的版本。可选值:zh_HK(繁体),zh_CN(简体);默认值:zh_CN + _lang string + // 忽略警告提示. + _ignorewarning string +} + +// 初始化TaobaoItemSkuAddAPIRequest对象 +func NewTaobaoItemSkuAddRequest() *TaobaoItemSkuAddAPIRequest{ + return &TaobaoItemSkuAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemSkuAddAPIRequest) GetApiMethodName() string { + return "taobao.item.sku.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemSkuAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NumIid Setter +// Sku所属商品数字id。必选 +func (r *TaobaoItemSkuAddAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemSkuAddAPIRequest) GetNumIid() int64 { + return r._numIid +} +// Properties Setter +// Sku属性串。格式:pid:vid;pid:vid,如:1627207:3232483;1630696:3284570,表示:机身颜色:军绿色;手机套餐:一电一充。 +func (r *TaobaoItemSkuAddAPIRequest) SetProperties(_properties string) error { + r._properties = _properties + r.Set("properties", _properties) + return nil +} + +// Properties Getter +func (r TaobaoItemSkuAddAPIRequest) GetProperties() string { + return r._properties +} +// Quantity Setter +// Sku的库存数量。sku的总数量应该小于等于商品总数量(Item的NUM)。取值范围:大于零的整数 +func (r *TaobaoItemSkuAddAPIRequest) SetQuantity(_quantity int64) error { + r._quantity = _quantity + r.Set("quantity", _quantity) + return nil +} + +// Quantity Getter +func (r TaobaoItemSkuAddAPIRequest) GetQuantity() int64 { + return r._quantity +} +// Price Setter +// Sku的销售价格。商品的价格要在商品所有的sku的价格之间。精确到2位小数;单位:元。如:200.07,表示:200元7分 +func (r *TaobaoItemSkuAddAPIRequest) SetPrice(_price float64) error { + r._price = _price + r.Set("price", _price) + return nil +} + +// Price Getter +func (r TaobaoItemSkuAddAPIRequest) GetPrice() float64 { + return r._price +} +// OuterId Setter +// Sku的商家外部id +func (r *TaobaoItemSkuAddAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoItemSkuAddAPIRequest) GetOuterId() string { + return r._outerId +} +// ItemPrice Setter +// sku所属商品的价格。当用户新增sku,使商品价格不属于sku价格之间的时候,用于修改商品的价格,使sku能够添加成功 +func (r *TaobaoItemSkuAddAPIRequest) SetItemPrice(_itemPrice float64) error { + r._itemPrice = _itemPrice + r.Set("item_price", _itemPrice) + return nil +} + +// ItemPrice Getter +func (r TaobaoItemSkuAddAPIRequest) GetItemPrice() float64 { + return r._itemPrice +} +// Lang Setter +// Sku文字的版本。可选值:zh_HK(繁体),zh_CN(简体);默认值:zh_CN +func (r *TaobaoItemSkuAddAPIRequest) SetLang(_lang string) error { + r._lang = _lang + r.Set("lang", _lang) + return nil +} + +// Lang Getter +func (r TaobaoItemSkuAddAPIRequest) GetLang() string { + return r._lang +} +// Ignorewarning Setter +// 忽略警告提示. +func (r *TaobaoItemSkuAddAPIRequest) SetIgnorewarning(_ignorewarning string) error { + r._ignorewarning = _ignorewarning + r.Set("ignorewarning", _ignorewarning) + return nil +} + +// Ignorewarning Getter +func (r TaobaoItemSkuAddAPIRequest) GetIgnorewarning() string { + return r._ignorewarning +} diff --git a/model/product/TaobaoItemSkuAddAPIResponse.go b/model/product/TaobaoItemSkuAddAPIResponse.go new file mode 100644 index 0000000000..8ffa24334e --- /dev/null +++ b/model/product/TaobaoItemSkuAddAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加SKU API返回值 +taobao.item.sku.add + +新增一个sku到num_iid指定的商品中
传入的iid所对应的商品必须属于当前会话的用户 +*/ +type TaobaoItemSkuAddAPIResponse struct { + model.CommonResponse + TaobaoItemSkuAddAPIResponseModel +} + +// 添加SKU 成功返回结果 +type TaobaoItemSkuAddAPIResponseModel struct { + XMLName xml.Name `xml:"item_sku_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // sku + Sku *Sku `json:"sku,omitempty" xml:"sku,omitempty"` +} diff --git a/model/product/TaobaoItemSkuAddResponse.go b/model/product/TaobaoItemSkuAddResponse.go deleted file mode 100644 index 8602944dba..0000000000 --- a/model/product/TaobaoItemSkuAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加SKU API返回值 -taobao.item.sku.add - -新增一个sku到num_iid指定的商品中
传入的iid所对应的商品必须属于当前会话的用户 -*/ -type TaobaoItemSkuAddAPIResponse struct { - model.CommonResponse - TaobaoItemSkuAddResponse -} - -// 添加SKU 成功返回结果 -type TaobaoItemSkuAddResponse struct { - XMLName xml.Name `xml:"item_sku_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // sku - Sku *Sku `json:"sku,omitempty" xml:"sku,omitempty"` -} diff --git a/model/product/TaobaoItemSkuDeleteAPIRequest.go b/model/product/TaobaoItemSkuDeleteAPIRequest.go new file mode 100644 index 0000000000..9abe8ebf06 --- /dev/null +++ b/model/product/TaobaoItemSkuDeleteAPIRequest.go @@ -0,0 +1,122 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除SKU API请求 +taobao.item.sku.delete + +删除一个sku的数据
需要删除的sku通过属性properties进行匹配查找 +*/ +type TaobaoItemSkuDeleteAPIRequest struct { + model.Params + // Sku所属商品数字id,可通过 taobao.item.get 获取。必选 + _numIid int64 + // Sku属性串。格式:pid:vid;pid:vid,如: 1627207:3232483;1630696:3284570,表示机身颜色:军绿色;手机套餐:一电一充 + _properties string + // sku所属商品的价格。当用户删除sku,使商品价格不属于sku价格之间的时候,用于修改商品的价格,使sku能够删除成功 + _itemPrice float64 + // sku所属商品的数量,大于0的整数。当用户删除sku,使商品数量不等于sku数量之和时候,用于修改商品的数量,使sku能够删除成功。特别是删除最后一个sku的时候,一定要设置商品数量到正常的值,否则删除失败 + _itemNum int64 + // Sku文字的版本。可选值:zh_HK(繁体),zh_CN(简体);默认值:zh_CN + _lang string + // 忽略警告提示. + _ignorewarning string +} + +// 初始化TaobaoItemSkuDeleteAPIRequest对象 +func NewTaobaoItemSkuDeleteRequest() *TaobaoItemSkuDeleteAPIRequest{ + return &TaobaoItemSkuDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemSkuDeleteAPIRequest) GetApiMethodName() string { + return "taobao.item.sku.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemSkuDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NumIid Setter +// Sku所属商品数字id,可通过 taobao.item.get 获取。必选 +func (r *TaobaoItemSkuDeleteAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemSkuDeleteAPIRequest) GetNumIid() int64 { + return r._numIid +} +// Properties Setter +// Sku属性串。格式:pid:vid;pid:vid,如: 1627207:3232483;1630696:3284570,表示机身颜色:军绿色;手机套餐:一电一充 +func (r *TaobaoItemSkuDeleteAPIRequest) SetProperties(_properties string) error { + r._properties = _properties + r.Set("properties", _properties) + return nil +} + +// Properties Getter +func (r TaobaoItemSkuDeleteAPIRequest) GetProperties() string { + return r._properties +} +// ItemPrice Setter +// sku所属商品的价格。当用户删除sku,使商品价格不属于sku价格之间的时候,用于修改商品的价格,使sku能够删除成功 +func (r *TaobaoItemSkuDeleteAPIRequest) SetItemPrice(_itemPrice float64) error { + r._itemPrice = _itemPrice + r.Set("item_price", _itemPrice) + return nil +} + +// ItemPrice Getter +func (r TaobaoItemSkuDeleteAPIRequest) GetItemPrice() float64 { + return r._itemPrice +} +// ItemNum Setter +// sku所属商品的数量,大于0的整数。当用户删除sku,使商品数量不等于sku数量之和时候,用于修改商品的数量,使sku能够删除成功。特别是删除最后一个sku的时候,一定要设置商品数量到正常的值,否则删除失败 +func (r *TaobaoItemSkuDeleteAPIRequest) SetItemNum(_itemNum int64) error { + r._itemNum = _itemNum + r.Set("item_num", _itemNum) + return nil +} + +// ItemNum Getter +func (r TaobaoItemSkuDeleteAPIRequest) GetItemNum() int64 { + return r._itemNum +} +// Lang Setter +// Sku文字的版本。可选值:zh_HK(繁体),zh_CN(简体);默认值:zh_CN +func (r *TaobaoItemSkuDeleteAPIRequest) SetLang(_lang string) error { + r._lang = _lang + r.Set("lang", _lang) + return nil +} + +// Lang Getter +func (r TaobaoItemSkuDeleteAPIRequest) GetLang() string { + return r._lang +} +// Ignorewarning Setter +// 忽略警告提示. +func (r *TaobaoItemSkuDeleteAPIRequest) SetIgnorewarning(_ignorewarning string) error { + r._ignorewarning = _ignorewarning + r.Set("ignorewarning", _ignorewarning) + return nil +} + +// Ignorewarning Getter +func (r TaobaoItemSkuDeleteAPIRequest) GetIgnorewarning() string { + return r._ignorewarning +} diff --git a/model/product/TaobaoItemSkuDeleteAPIResponse.go b/model/product/TaobaoItemSkuDeleteAPIResponse.go new file mode 100644 index 0000000000..59043dc2a9 --- /dev/null +++ b/model/product/TaobaoItemSkuDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除SKU API返回值 +taobao.item.sku.delete + +删除一个sku的数据
需要删除的sku通过属性properties进行匹配查找 +*/ +type TaobaoItemSkuDeleteAPIResponse struct { + model.CommonResponse + TaobaoItemSkuDeleteAPIResponseModel +} + +// 删除SKU 成功返回结果 +type TaobaoItemSkuDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"item_sku_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Sku结构 + Sku *Sku `json:"sku,omitempty" xml:"sku,omitempty"` +} diff --git a/model/product/TaobaoItemSkuDeleteResponse.go b/model/product/TaobaoItemSkuDeleteResponse.go deleted file mode 100644 index 2c502a5a76..0000000000 --- a/model/product/TaobaoItemSkuDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除SKU API返回值 -taobao.item.sku.delete - -删除一个sku的数据
需要删除的sku通过属性properties进行匹配查找 -*/ -type TaobaoItemSkuDeleteAPIResponse struct { - model.CommonResponse - TaobaoItemSkuDeleteResponse -} - -// 删除SKU 成功返回结果 -type TaobaoItemSkuDeleteResponse struct { - XMLName xml.Name `xml:"item_sku_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Sku结构 - Sku *Sku `json:"sku,omitempty" xml:"sku,omitempty"` -} diff --git a/model/product/TaobaoItemSkuGetAPIRequest.go b/model/product/TaobaoItemSkuGetAPIRequest.go new file mode 100644 index 0000000000..ef52f6cdca --- /dev/null +++ b/model/product/TaobaoItemSkuGetAPIRequest.go @@ -0,0 +1,82 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取SKU API请求 +taobao.item.sku.get + +获取sku_id所对应的sku数据 +sku_id对应的sku要属于传入的nick对应的卖家 +
点击查看更多商品API说明 +*/ +type TaobaoItemSkuGetAPIRequest struct { + model.Params + // 需返回的字段列表。可选值:Sku结构体中的所有字段;字段之间用“,”分隔。 + _fields string + // Sku的id。可以通过taobao.item.seller.get得到 + _skuId int64 + // 商品的数字IID(num_iid和nick必传一个,推荐用num_iid),传商品的数字id返回的结果里包含cspu(SKu上的产品规格信息)。 + _numIid int64 +} + +// 初始化TaobaoItemSkuGetAPIRequest对象 +func NewTaobaoItemSkuGetRequest() *TaobaoItemSkuGetAPIRequest{ + return &TaobaoItemSkuGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemSkuGetAPIRequest) GetApiMethodName() string { + return "taobao.item.sku.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemSkuGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需返回的字段列表。可选值:Sku结构体中的所有字段;字段之间用“,”分隔。 +func (r *TaobaoItemSkuGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoItemSkuGetAPIRequest) GetFields() string { + return r._fields +} +// SkuId Setter +// Sku的id。可以通过taobao.item.seller.get得到 +func (r *TaobaoItemSkuGetAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TaobaoItemSkuGetAPIRequest) GetSkuId() int64 { + return r._skuId +} +// NumIid Setter +// 商品的数字IID(num_iid和nick必传一个,推荐用num_iid),传商品的数字id返回的结果里包含cspu(SKu上的产品规格信息)。 +func (r *TaobaoItemSkuGetAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemSkuGetAPIRequest) GetNumIid() int64 { + return r._numIid +} diff --git a/model/product/TaobaoItemSkuGetAPIResponse.go b/model/product/TaobaoItemSkuGetAPIResponse.go new file mode 100644 index 0000000000..11ca29c407 --- /dev/null +++ b/model/product/TaobaoItemSkuGetAPIResponse.go @@ -0,0 +1,29 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取SKU API返回值 +taobao.item.sku.get + +获取sku_id所对应的sku数据 +sku_id对应的sku要属于传入的nick对应的卖家 +
点击查看更多商品API说明 +*/ +type TaobaoItemSkuGetAPIResponse struct { + model.CommonResponse + TaobaoItemSkuGetAPIResponseModel +} + +// 获取SKU 成功返回结果 +type TaobaoItemSkuGetAPIResponseModel struct { + XMLName xml.Name `xml:"item_sku_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Sku + Sku *Sku `json:"sku,omitempty" xml:"sku,omitempty"` +} diff --git a/model/product/TaobaoItemSkuGetResponse.go b/model/product/TaobaoItemSkuGetResponse.go deleted file mode 100644 index ac4ea16795..0000000000 --- a/model/product/TaobaoItemSkuGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取SKU API返回值 -taobao.item.sku.get - -获取sku_id所对应的sku数据 -sku_id对应的sku要属于传入的nick对应的卖家 -
点击查看更多商品API说明 -*/ -type TaobaoItemSkuGetAPIResponse struct { - model.CommonResponse - TaobaoItemSkuGetResponse -} - -// 获取SKU 成功返回结果 -type TaobaoItemSkuGetResponse struct { - XMLName xml.Name `xml:"item_sku_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Sku - Sku *Sku `json:"sku,omitempty" xml:"sku,omitempty"` -} diff --git a/model/product/TaobaoItemSkuPriceUpdateAPIRequest.go b/model/product/TaobaoItemSkuPriceUpdateAPIRequest.go new file mode 100644 index 0000000000..19b6492162 --- /dev/null +++ b/model/product/TaobaoItemSkuPriceUpdateAPIRequest.go @@ -0,0 +1,150 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新商品SKU的价格 API请求 +taobao.item.sku.price.update + +更新商品SKU的价格 +*/ +type TaobaoItemSkuPriceUpdateAPIRequest struct { + model.Params + // Sku所属商品数字id,可通过 taobao.item.get 获取 + _numIid int64 + // Sku属性串。格式:pid:vid;pid:vid,如: 1627207:3232483;1630696:3284570,表示机身颜色:军绿色;手机套餐:一电一充 + _properties string + // Sku的库存数量。sku的总数量应该小于等于商品总数量(Item的NUM),sku数量变化后item的总数量也会随着变化。取值范围:大于等于零的整数 + _quantity int64 + // Sku的销售价格。精确到2位小数;单位:元。如:200.07,表示:200元7分。修改后的sku价格要保证商品的价格在所有sku价格所形成的价格区间内(例如:商品价格为6元,sku价格有5元、10元两种,如果要修改5元sku的价格,那么修改的范围只能是0-6元之间;如果要修改10元的sku,那么修改的范围只能是6到无穷大的区间中) + _price float64 + // Sku的商家外部id + _outerId string + // sku所属商品的价格。当用户更新sku,使商品价格不属于sku价格之间的时候,用于修改商品的价格,使sku能够更新成功 + _itemPrice float64 + // Sku文字的版本。可选值:zh_HK(繁体),zh_CN(简体);默认值:zh_CN + _lang string + // 忽略警告提示. + _ignorewarning string +} + +// 初始化TaobaoItemSkuPriceUpdateAPIRequest对象 +func NewTaobaoItemSkuPriceUpdateRequest() *TaobaoItemSkuPriceUpdateAPIRequest{ + return &TaobaoItemSkuPriceUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemSkuPriceUpdateAPIRequest) GetApiMethodName() string { + return "taobao.item.sku.price.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemSkuPriceUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NumIid Setter +// Sku所属商品数字id,可通过 taobao.item.get 获取 +func (r *TaobaoItemSkuPriceUpdateAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemSkuPriceUpdateAPIRequest) GetNumIid() int64 { + return r._numIid +} +// Properties Setter +// Sku属性串。格式:pid:vid;pid:vid,如: 1627207:3232483;1630696:3284570,表示机身颜色:军绿色;手机套餐:一电一充 +func (r *TaobaoItemSkuPriceUpdateAPIRequest) SetProperties(_properties string) error { + r._properties = _properties + r.Set("properties", _properties) + return nil +} + +// Properties Getter +func (r TaobaoItemSkuPriceUpdateAPIRequest) GetProperties() string { + return r._properties +} +// Quantity Setter +// Sku的库存数量。sku的总数量应该小于等于商品总数量(Item的NUM),sku数量变化后item的总数量也会随着变化。取值范围:大于等于零的整数 +func (r *TaobaoItemSkuPriceUpdateAPIRequest) SetQuantity(_quantity int64) error { + r._quantity = _quantity + r.Set("quantity", _quantity) + return nil +} + +// Quantity Getter +func (r TaobaoItemSkuPriceUpdateAPIRequest) GetQuantity() int64 { + return r._quantity +} +// Price Setter +// Sku的销售价格。精确到2位小数;单位:元。如:200.07,表示:200元7分。修改后的sku价格要保证商品的价格在所有sku价格所形成的价格区间内(例如:商品价格为6元,sku价格有5元、10元两种,如果要修改5元sku的价格,那么修改的范围只能是0-6元之间;如果要修改10元的sku,那么修改的范围只能是6到无穷大的区间中) +func (r *TaobaoItemSkuPriceUpdateAPIRequest) SetPrice(_price float64) error { + r._price = _price + r.Set("price", _price) + return nil +} + +// Price Getter +func (r TaobaoItemSkuPriceUpdateAPIRequest) GetPrice() float64 { + return r._price +} +// OuterId Setter +// Sku的商家外部id +func (r *TaobaoItemSkuPriceUpdateAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoItemSkuPriceUpdateAPIRequest) GetOuterId() string { + return r._outerId +} +// ItemPrice Setter +// sku所属商品的价格。当用户更新sku,使商品价格不属于sku价格之间的时候,用于修改商品的价格,使sku能够更新成功 +func (r *TaobaoItemSkuPriceUpdateAPIRequest) SetItemPrice(_itemPrice float64) error { + r._itemPrice = _itemPrice + r.Set("item_price", _itemPrice) + return nil +} + +// ItemPrice Getter +func (r TaobaoItemSkuPriceUpdateAPIRequest) GetItemPrice() float64 { + return r._itemPrice +} +// Lang Setter +// Sku文字的版本。可选值:zh_HK(繁体),zh_CN(简体);默认值:zh_CN +func (r *TaobaoItemSkuPriceUpdateAPIRequest) SetLang(_lang string) error { + r._lang = _lang + r.Set("lang", _lang) + return nil +} + +// Lang Getter +func (r TaobaoItemSkuPriceUpdateAPIRequest) GetLang() string { + return r._lang +} +// Ignorewarning Setter +// 忽略警告提示. +func (r *TaobaoItemSkuPriceUpdateAPIRequest) SetIgnorewarning(_ignorewarning string) error { + r._ignorewarning = _ignorewarning + r.Set("ignorewarning", _ignorewarning) + return nil +} + +// Ignorewarning Getter +func (r TaobaoItemSkuPriceUpdateAPIRequest) GetIgnorewarning() string { + return r._ignorewarning +} diff --git a/model/product/TaobaoItemSkuPriceUpdateAPIResponse.go b/model/product/TaobaoItemSkuPriceUpdateAPIResponse.go new file mode 100644 index 0000000000..c3ccc332f0 --- /dev/null +++ b/model/product/TaobaoItemSkuPriceUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新商品SKU的价格 API返回值 +taobao.item.sku.price.update + +更新商品SKU的价格 +*/ +type TaobaoItemSkuPriceUpdateAPIResponse struct { + model.CommonResponse + TaobaoItemSkuPriceUpdateAPIResponseModel +} + +// 更新商品SKU的价格 成功返回结果 +type TaobaoItemSkuPriceUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"item_sku_price_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品SKU信息(只包含num_iid和modified) + Sku *Sku `json:"sku,omitempty" xml:"sku,omitempty"` +} diff --git a/model/product/TaobaoItemSkuPriceUpdateResponse.go b/model/product/TaobaoItemSkuPriceUpdateResponse.go deleted file mode 100644 index 5313d73120..0000000000 --- a/model/product/TaobaoItemSkuPriceUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新商品SKU的价格 API返回值 -taobao.item.sku.price.update - -更新商品SKU的价格 -*/ -type TaobaoItemSkuPriceUpdateAPIResponse struct { - model.CommonResponse - TaobaoItemSkuPriceUpdateResponse -} - -// 更新商品SKU的价格 成功返回结果 -type TaobaoItemSkuPriceUpdateResponse struct { - XMLName xml.Name `xml:"item_sku_price_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品SKU信息(只包含num_iid和modified) - Sku *Sku `json:"sku,omitempty" xml:"sku,omitempty"` -} diff --git a/model/product/TaobaoItemSkuUpdateAPIRequest.go b/model/product/TaobaoItemSkuUpdateAPIRequest.go new file mode 100644 index 0000000000..9ac8dd5710 --- /dev/null +++ b/model/product/TaobaoItemSkuUpdateAPIRequest.go @@ -0,0 +1,150 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新SKU信息 API请求 +taobao.item.sku.update + +*更新一个sku的数据
*需要更新的sku通过属性properties进行匹配查找
*商品的数量和价格必须大于等于0
*sku记录会更新到指定的num_iid对应的商品中
*num_iid对应的商品必须属于当前的会话用户 +*/ +type TaobaoItemSkuUpdateAPIRequest struct { + model.Params + // Sku所属商品数字id,可通过 taobao.item.get 获取 + _numIid int64 + // Sku属性串。格式:pid:vid;pid:vid,如: 1627207:3232483;1630696:3284570,表示机身颜色:军绿色;手机套餐:一电一充。
如果包含自定义属性,则格式为pid:vid;pid2:vid2;$pText:vText , 其中$pText:vText为自定义属性。限制:其中$pText的’$’前缀不能少,且pText和vText文本中不可以存在 冒号:和分号;以及逗号, + _properties string + // Sku的库存数量。sku的总数量应该小于等于商品总数量(Item的NUM),sku数量变化后item的总数量也会随着变化。取值范围:大于等于零的整数 + _quantity int64 + // Sku的销售价格。精确到2位小数;单位:元。如:200.07,表示:200元7分。修改后的sku价格要保证商品的价格在所有sku价格所形成的价格区间内(例如:商品价格为6元,sku价格有5元、10元两种,如果要修改5元sku的价格,那么修改的范围只能是0-6元之间;如果要修改10元的sku,那么修改的范围只能是6到无穷大的区间中) + _price float64 + // Sku的商家外部id + _outerId string + // sku所属商品的价格。当用户更新sku,使商品价格不属于sku价格之间的时候,用于修改商品的价格,使sku能够更新成功 + _itemPrice float64 + // Sku文字的版本。可选值:zh_HK(繁体),zh_CN(简体);默认值:zh_CN + _lang string + // 忽略警告提示. + _ignorewarning string +} + +// 初始化TaobaoItemSkuUpdateAPIRequest对象 +func NewTaobaoItemSkuUpdateRequest() *TaobaoItemSkuUpdateAPIRequest{ + return &TaobaoItemSkuUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemSkuUpdateAPIRequest) GetApiMethodName() string { + return "taobao.item.sku.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemSkuUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NumIid Setter +// Sku所属商品数字id,可通过 taobao.item.get 获取 +func (r *TaobaoItemSkuUpdateAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemSkuUpdateAPIRequest) GetNumIid() int64 { + return r._numIid +} +// Properties Setter +// Sku属性串。格式:pid:vid;pid:vid,如: 1627207:3232483;1630696:3284570,表示机身颜色:军绿色;手机套餐:一电一充。
如果包含自定义属性,则格式为pid:vid;pid2:vid2;$pText:vText , 其中$pText:vText为自定义属性。限制:其中$pText的’$’前缀不能少,且pText和vText文本中不可以存在 冒号:和分号;以及逗号, +func (r *TaobaoItemSkuUpdateAPIRequest) SetProperties(_properties string) error { + r._properties = _properties + r.Set("properties", _properties) + return nil +} + +// Properties Getter +func (r TaobaoItemSkuUpdateAPIRequest) GetProperties() string { + return r._properties +} +// Quantity Setter +// Sku的库存数量。sku的总数量应该小于等于商品总数量(Item的NUM),sku数量变化后item的总数量也会随着变化。取值范围:大于等于零的整数 +func (r *TaobaoItemSkuUpdateAPIRequest) SetQuantity(_quantity int64) error { + r._quantity = _quantity + r.Set("quantity", _quantity) + return nil +} + +// Quantity Getter +func (r TaobaoItemSkuUpdateAPIRequest) GetQuantity() int64 { + return r._quantity +} +// Price Setter +// Sku的销售价格。精确到2位小数;单位:元。如:200.07,表示:200元7分。修改后的sku价格要保证商品的价格在所有sku价格所形成的价格区间内(例如:商品价格为6元,sku价格有5元、10元两种,如果要修改5元sku的价格,那么修改的范围只能是0-6元之间;如果要修改10元的sku,那么修改的范围只能是6到无穷大的区间中) +func (r *TaobaoItemSkuUpdateAPIRequest) SetPrice(_price float64) error { + r._price = _price + r.Set("price", _price) + return nil +} + +// Price Getter +func (r TaobaoItemSkuUpdateAPIRequest) GetPrice() float64 { + return r._price +} +// OuterId Setter +// Sku的商家外部id +func (r *TaobaoItemSkuUpdateAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoItemSkuUpdateAPIRequest) GetOuterId() string { + return r._outerId +} +// ItemPrice Setter +// sku所属商品的价格。当用户更新sku,使商品价格不属于sku价格之间的时候,用于修改商品的价格,使sku能够更新成功 +func (r *TaobaoItemSkuUpdateAPIRequest) SetItemPrice(_itemPrice float64) error { + r._itemPrice = _itemPrice + r.Set("item_price", _itemPrice) + return nil +} + +// ItemPrice Getter +func (r TaobaoItemSkuUpdateAPIRequest) GetItemPrice() float64 { + return r._itemPrice +} +// Lang Setter +// Sku文字的版本。可选值:zh_HK(繁体),zh_CN(简体);默认值:zh_CN +func (r *TaobaoItemSkuUpdateAPIRequest) SetLang(_lang string) error { + r._lang = _lang + r.Set("lang", _lang) + return nil +} + +// Lang Getter +func (r TaobaoItemSkuUpdateAPIRequest) GetLang() string { + return r._lang +} +// Ignorewarning Setter +// 忽略警告提示. +func (r *TaobaoItemSkuUpdateAPIRequest) SetIgnorewarning(_ignorewarning string) error { + r._ignorewarning = _ignorewarning + r.Set("ignorewarning", _ignorewarning) + return nil +} + +// Ignorewarning Getter +func (r TaobaoItemSkuUpdateAPIRequest) GetIgnorewarning() string { + return r._ignorewarning +} diff --git a/model/product/TaobaoItemSkuUpdateAPIResponse.go b/model/product/TaobaoItemSkuUpdateAPIResponse.go new file mode 100644 index 0000000000..86ab0d0174 --- /dev/null +++ b/model/product/TaobaoItemSkuUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新SKU信息 API返回值 +taobao.item.sku.update + +*更新一个sku的数据
*需要更新的sku通过属性properties进行匹配查找
*商品的数量和价格必须大于等于0
*sku记录会更新到指定的num_iid对应的商品中
*num_iid对应的商品必须属于当前的会话用户 +*/ +type TaobaoItemSkuUpdateAPIResponse struct { + model.CommonResponse + TaobaoItemSkuUpdateAPIResponseModel +} + +// 更新SKU信息 成功返回结果 +type TaobaoItemSkuUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"item_sku_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品Sku + Sku *Sku `json:"sku,omitempty" xml:"sku,omitempty"` +} diff --git a/model/product/TaobaoItemSkuUpdateResponse.go b/model/product/TaobaoItemSkuUpdateResponse.go deleted file mode 100644 index 2a6e202232..0000000000 --- a/model/product/TaobaoItemSkuUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新SKU信息 API返回值 -taobao.item.sku.update - -*更新一个sku的数据
*需要更新的sku通过属性properties进行匹配查找
*商品的数量和价格必须大于等于0
*sku记录会更新到指定的num_iid对应的商品中
*num_iid对应的商品必须属于当前的会话用户 -*/ -type TaobaoItemSkuUpdateAPIResponse struct { - model.CommonResponse - TaobaoItemSkuUpdateResponse -} - -// 更新SKU信息 成功返回结果 -type TaobaoItemSkuUpdateResponse struct { - XMLName xml.Name `xml:"item_sku_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品Sku - Sku *Sku `json:"sku,omitempty" xml:"sku,omitempty"` -} diff --git a/model/product/TaobaoItemSkusGetAPIRequest.go b/model/product/TaobaoItemSkusGetAPIRequest.go new file mode 100644 index 0000000000..5e742f4450 --- /dev/null +++ b/model/product/TaobaoItemSkusGetAPIRequest.go @@ -0,0 +1,67 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据商品ID列表获取SKU信息 API请求 +taobao.item.skus.get + +* 获取多个商品下的所有sku +
点击查看更多商品API说明 +*/ +type TaobaoItemSkusGetAPIRequest struct { + model.Params + // 需返回的字段列表。可选值:Sku结构体中的所有字段;字段之间用“,”分隔。 + _fields []string + // sku所属商品数字id,必选。num_iid个数不能超过40个 + _numIids string +} + +// 初始化TaobaoItemSkusGetAPIRequest对象 +func NewTaobaoItemSkusGetRequest() *TaobaoItemSkusGetAPIRequest{ + return &TaobaoItemSkusGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemSkusGetAPIRequest) GetApiMethodName() string { + return "taobao.item.skus.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemSkusGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需返回的字段列表。可选值:Sku结构体中的所有字段;字段之间用“,”分隔。 +func (r *TaobaoItemSkusGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoItemSkusGetAPIRequest) GetFields() []string { + return r._fields +} +// NumIids Setter +// sku所属商品数字id,必选。num_iid个数不能超过40个 +func (r *TaobaoItemSkusGetAPIRequest) SetNumIids(_numIids string) error { + r._numIids = _numIids + r.Set("num_iids", _numIids) + return nil +} + +// NumIids Getter +func (r TaobaoItemSkusGetAPIRequest) GetNumIids() string { + return r._numIids +} diff --git a/model/product/TaobaoItemSkusGetAPIResponse.go b/model/product/TaobaoItemSkusGetAPIResponse.go new file mode 100644 index 0000000000..c0ea5e9e5b --- /dev/null +++ b/model/product/TaobaoItemSkusGetAPIResponse.go @@ -0,0 +1,28 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据商品ID列表获取SKU信息 API返回值 +taobao.item.skus.get + +* 获取多个商品下的所有sku +
点击查看更多商品API说明 +*/ +type TaobaoItemSkusGetAPIResponse struct { + model.CommonResponse + TaobaoItemSkusGetAPIResponseModel +} + +// 根据商品ID列表获取SKU信息 成功返回结果 +type TaobaoItemSkusGetAPIResponseModel struct { + XMLName xml.Name `xml:"item_skus_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Sku列表 + Skus []Sku `json:"skus,omitempty" xml:"skus>sku,omitempty"` +} diff --git a/model/product/TaobaoItemSkusGetResponse.go b/model/product/TaobaoItemSkusGetResponse.go deleted file mode 100644 index 9b499455d9..0000000000 --- a/model/product/TaobaoItemSkusGetResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据商品ID列表获取SKU信息 API返回值 -taobao.item.skus.get - -* 获取多个商品下的所有sku -
点击查看更多商品API说明 -*/ -type TaobaoItemSkusGetAPIResponse struct { - model.CommonResponse - TaobaoItemSkusGetResponse -} - -// 根据商品ID列表获取SKU信息 成功返回结果 -type TaobaoItemSkusGetResponse struct { - XMLName xml.Name `xml:"item_skus_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Sku列表 - Skus []Sku `json:"skus,omitempty" xml:"skus>sku,omitempty"` -} diff --git a/model/product/TaobaoItemTemplatesGetAPIRequest.go b/model/product/TaobaoItemTemplatesGetAPIRequest.go new file mode 100644 index 0000000000..5d84f2bd81 --- /dev/null +++ b/model/product/TaobaoItemTemplatesGetAPIRequest.go @@ -0,0 +1,38 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户宝贝详情页模板名称 API请求 +taobao.item.templates.get + +查询当前登录用户的店铺的宝贝详情页的模板名称 +*/ +type TaobaoItemTemplatesGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoItemTemplatesGetAPIRequest对象 +func NewTaobaoItemTemplatesGetRequest() *TaobaoItemTemplatesGetAPIRequest{ + return &TaobaoItemTemplatesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemTemplatesGetAPIRequest) GetApiMethodName() string { + return "taobao.item.templates.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemTemplatesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/product/TaobaoItemTemplatesGetAPIResponse.go b/model/product/TaobaoItemTemplatesGetAPIResponse.go new file mode 100644 index 0000000000..90b0816ea2 --- /dev/null +++ b/model/product/TaobaoItemTemplatesGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户宝贝详情页模板名称 API返回值 +taobao.item.templates.get + +查询当前登录用户的店铺的宝贝详情页的模板名称 +*/ +type TaobaoItemTemplatesGetAPIResponse struct { + model.CommonResponse + TaobaoItemTemplatesGetAPIResponseModel +} + +// 获取用户宝贝详情页模板名称 成功返回结果 +type TaobaoItemTemplatesGetAPIResponseModel struct { + XMLName xml.Name `xml:"item_templates_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回宝贝模板对象。包含模板id,模板name,还有模板的类别(0表示外店,1表示内店) + ItemTemplateList []ItemTemplate `json:"item_template_list,omitempty" xml:"item_template_list>item_template,omitempty"` +} diff --git a/model/product/TaobaoItemTemplatesGetResponse.go b/model/product/TaobaoItemTemplatesGetResponse.go deleted file mode 100644 index 75bfc68ed4..0000000000 --- a/model/product/TaobaoItemTemplatesGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户宝贝详情页模板名称 API返回值 -taobao.item.templates.get - -查询当前登录用户的店铺的宝贝详情页的模板名称 -*/ -type TaobaoItemTemplatesGetAPIResponse struct { - model.CommonResponse - TaobaoItemTemplatesGetResponse -} - -// 获取用户宝贝详情页模板名称 成功返回结果 -type TaobaoItemTemplatesGetResponse struct { - XMLName xml.Name `xml:"item_templates_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回宝贝模板对象。包含模板id,模板name,还有模板的类别(0表示外店,1表示内店) - ItemTemplateList []ItemTemplate `json:"item_template_list,omitempty" xml:"item_template_list>item_template,omitempty"` -} diff --git a/model/product/TaobaoItemUpdateAPIRequest.go b/model/product/TaobaoItemUpdateAPIRequest.go new file mode 100644 index 0000000000..f4b9d4a59f --- /dev/null +++ b/model/product/TaobaoItemUpdateAPIRequest.go @@ -0,0 +1,1722 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新商品信息 API请求 +taobao.item.update + +根据传入的num_iid更新对应的商品的数据。 +传入的num_iid所对应的商品必须属于当前会话的用户 +商品的属性和sku的属性有包含的关系,商品的价格要位于sku的价格区间之中(例如,sku价格有5元、10元两种,那么商品的价格就需要大于等于5元,小于等于10元,否则更新商品会失败) +商品的类目和商品的价格、sku的价格都有一定的相关性(具体的关系要通过类目属性查询接口获得) +当关键属性值更新为“其他”的时候,需要输入input_pids和input_str商品才能更新成功。该接口不支持产品属性修改。 +*/ +type TaobaoItemUpdateAPIRequest struct { + model.Params + // 针对当前商品的自定义属性值 + _inputCustomCpv string + // 针对当前商品的标准属性值的补充说明,让买家更加了解商品信息减少交易纠纷 + _cpvMemo string + // 此参数暂时不起作用 + _skuSpecIds string + // 此参数暂时不起作用 + _skuDeliveryTimes string + // 家装建材类目,商品SKU的长度,正整数,单位为cm,部分类目必选。 数据和SKU一一对应,用,分隔,如:20,30,30 + _skuHdLength string + // 家装建材类目,商品SKU的高度,单位为cm,部分类目必选。 天猫和淘宝格式不同。天猫:可选值为:"0-15", "15-25", "25-50", "50-60", "60-80", "80-120", "120-160", "160-200"。 数据和SKU一一对应,用,分隔,格式如:15-25,25-50,25-50。 淘宝:正整数,单位为cm,格式如:20,30,30 + _skuHdHeight string + // 家装建材类目,商品SKU的灯头数量,正整数,大于等于3,部分类目必选。 数据和SKU一一对应,用,分隔,如:3,5,7 + _skuHdLampQuantity string + // 所在地省份。如浙江 + _locationState string + // 所在地城市。如杭州 + _locationCity string + // 生产许可证号 + _foodSecurityPrdLicenseNo string + // 产品标准号 + _foodSecurityDesignCode string + // 厂名 + _foodSecurityFactory string + // 厂址 + _foodSecurityFactorySite string + // 厂家联系方式 + _foodSecurityContact string + // 配料表 + _foodSecurityMix string + // 储藏方法 + _foodSecurityPlanStorage string + // 保质期,默认有单位,传入数字 + _foodSecurityPeriod string + // 食品添加剂 + _foodSecurityFoodAdditive string + // 供货商 + _foodSecuritySupplier string + // 生产开始日期,格式必须为yyyy-MM-dd + _foodSecurityProductDateStart string + // 生产结束日期,格式必须为yyyy-MM-dd + _foodSecurityProductDateEnd string + // 进货开始日期,要在生产日期之后,格式必须为yyyy-MM-dd + _foodSecurityStockDateStart string + // 进货结束日期,要在生产日期之后,格式必须为yyyy-MM-dd + _foodSecurityStockDateEnd string + // 健字号,保健品/膳食营养补充剂 这个类目下特有的信息,此类目下无需填写生产许可证编号(QS),如果填写了生产许可证编号(QS)将被忽略不保存;保存宝贝时,标题前会自动加上健字号产品名称一起作为宝贝标题; + _foodSecurityHealthProductNo string + // 预约门店是否支持门店自提,1:是 + _localityLifeObs string + // 电子凭证版本 新版电子凭证值:1 + _localityLifeVersion string + // 新版电子凭证包id + _localityLifePackageid string + // 订金 + _msPaymentPrice string + // 尾款可抵扣金额 + _msPaymentVoucherPrice string + // 参考价 + _msPaymentReferencePrice string + // 商品级别设置的发货时间。设置了商品级别的发货时间,相对发货时间,则填写相对发货时间的天数(大于3);绝对发货时间,则填写yyyy-mm-dd格式,如2013-11-11 + _deliveryTimeDeliveryTime string + // 发货时间类型:绝对发货时间或者相对发货时间 + _deliveryTimeDeliveryTimeType string + // 设置是否使用发货时间,商品级别,sku级别 + _deliveryTimeNeedDeliveryTime string + // 商品数字ID,该参数必须 + _numIid int64 + // 叶子类目id + _cid int64 + // 商品属性列表。格式:pid:vid;pid:vid。属性的pid调用taobao.itemprops.get取得,属性值的vid用taobao.itempropvalues.get取得vid。 如果该类目下面没有属性,可以不用填写。如果有属性,必选属性必填,其他非必选属性可以选择不填写.属性不能超过35对。所有属性加起来包括分割符不能超过549字节,单个属性没有限制。 如果有属性是可输入的话,则用字段input_str填入属性的值。 + _props string + // 商品数量,取值范围:0-900000000的整数。且需要等于Sku所有数量的和 拍卖商品中增加拍只能为1,荷兰拍要在[2,500)范围内。 + _num int64 + // 商品价格。取值范围:0-100000000;精确到2位小数;单位:元。如:200.07,表示:200元7分。需要在正确的价格区间内。 拍卖商品对应的起拍价。 + _price float64 + // 宝贝标题. 不能超过30字符,受违禁词控制 + _title string + // 商品描述. 字数要大于5个字符,小于25000个字符 ,受违禁词控制 + _desc string + // 平邮费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:5.07,表示:5元7分, 注:post_fee,express_fee,ems_fee需一起填写 + _postFee float64 + // 快递费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:15.07,表示:15元7分 + _expressFee float64 + // ems费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:25.07,表示:25元7分 + _emsFee float64 + // 上架时间。大于当前时间则宝贝会下架进入定时上架的宝贝中。 + _listTime string + // 加价(降价)幅度。如果为0,代表系统代理幅度。对于增价拍和荷兰拍来说是加价幅度,对于降价拍来说是降价幅度。 + _increment float64 + // 商品图片。类型:JPG,GIF;最大长度:3M + _image *model.File + // 商品新旧程度。可选值:new(全新),unused(闲置),second(二手)。 + _stuffStatus string + // 商品的积分返点比例。如:5 表示返点比例0.5%. 注意:返点比例必须是>0的整数,而且最大是90,即为9%.B商家在发布非虚拟商品时,返点必须是 5的倍数,即0.5%的倍数。其它是1的倍数,即0.1%的倍数。无名良品商家发布商品时,复用该字段记录积分宝返点比例,返点必须是对应类目的返点步长的整数倍,默认是5,即0.5%。注意此时该字段值依旧必须是>0的整数,注意此时该字段值依旧必须是>0的整数,最高值不超过500,即50% + _auctionPoint int64 + // 属性值别名。如pid:vid:别名;pid1:vid1:别名1, pid:属性id vid:值id。总长度不超过800个字符,如"123:333:你好",引号内的是10个字符。 + _propertyAlias string + // 重新关联商品与店铺类目,结构:",cid1,cid2,...,",如果店铺类目存在二级类目,必须传入子类目cids。 + _sellerCids string + // 宝贝所属的运费模板ID。取值范围:整数且必须是该卖家的运费模板的ID(可通过taobao.delivery.templates.get获得当前会话用户的所有邮费模板) + _postageId int64 + // 商家编码 + _outerId string + // 商品所属的产品ID(B商家发布商品需要用) + _productId int64 + // 商品主图需要关联的图片空间的相对url。这个url所对应的图片必须要属于当前用户。pic_path和image只需要传入一个,如果两个都传,默认选择pic_path + _picPath string + // 代充商品类型。只有少数类目下的商品可以标记上此字段,具体哪些类目可以上传可以通过taobao.itemcat.features.get获得。在代充商品的类目下,不传表示不标记商品类型(交易搜索中就不能通过标记搜到相关的交易了)。可选类型: no_mark(不做类型标记) time_card(点卡软件代充) fee_card(话费软件代充) + _autoFill string + // 是否在淘宝上显示(如果传FALSE,则在淘宝主站无法显示该商品) + _isTaobao bool + // 是否在外店显示 + _isEx bool + // 是否是3D + _is3D bool + // 是否替换sku + _isReplaceSku bool + // 商品文字的版本,繁体传入”zh_HK”,简体传入”zh_CN” + _lang string + // 支持会员打折。可选值:true,false; + _hasDiscount bool + // 橱窗推荐。可选值:true,false; + _hasShowcase bool + // 商品上传后的状态。可选值:onsale(出售中),instock(库中),如果同时更新商品状态为出售中及list_time为将来的时间,则商品还是处于定时上架的状态, 此时item.is_timing为true + _approveStatus string + // 运费承担方式。运费承担方式。可选值:seller(卖家承担),buyer(买家承担); + _freightPayer string + // 有效期。可选值:7,14;单位:天; + _validThru int64 + // 是否有发票。可选值:true,false (商城卖家此字段必须为true) + _hasInvoice bool + // 是否有保修。可选值:true,false; + _hasWarranty bool + // 是否承诺退换货服务!虚拟商品无须设置此项! + _sellPromise bool + // 货到付款运费模板ID该字段已经废弃,货到付款模板已经集成到运费模板中。 + _codPostageId int64 + // 实物闪电发货。注意:在售的闪电发货产品不允许取消闪电发货,需要先下架商品才能取消闪电发货标记 + _isLightningConsignment bool + // 商品的重量(商超卖家专用字段) + _weight int64 + // 商品是否为新品。只有在当前类目开通新品,并且当前用户拥有该类目下发布新品权限时才能设置is_xinpin为true,否则设置true后会返回错误码:isv.invalid-permission:xinpin。同时只有一口价全新的宝贝才能设置为新品,否则会返回错误码:isv.invalid-parameter:xinpin。不设置参数就保持原有值。 + _isXinpin bool + // 商品是否支持拍下减库存:1支持;2取消支持(付款减库存);0(默认)不更改 集市卖家默认拍下减库存; 商城卖家默认付款减库存 + _subStock int64 + // 表示商品的体积,如果需要使用按体积计费的运费模板,一定要设置这个值。该值的单位为立方米(m3),如果是其他单位,请转换成成立方米。该值支持两种格式的设置:格式1:bulk:3,单位为立方米(m3),表示直接设置为商品的体积。格式2:length:10;breadth:10;height:10,单位为米(m)。体积和长宽高都支持小数类型。在传入体积或长宽高时候,不能带单位。体积的单位默认为立方米(m3),长宽高的单位默认为米(m)在编辑的时候,如果需要删除体积属性,请设置该值为0,如bulk:0 + _itemSize string + // 商品的重量,用于按重量计费的运费模板。注意:单位为kg。 只能传入数值类型(包含小数),不能带单位,单位默认为kg。 在编辑时候,如果需要在商品里删除重量的信息,就需要将值设置为0 + _itemWeight string + // 商品卖点信息,最长150个字符。天猫和集市都可用 + _sellPoint string + // 商品条形码 + _barcode string + // 该宝贝是否支持【7天无理由退货】,卖家选择的值只是一个因素,最终以类目和选择的属性条件来确定是否支持7天。填入字符0,表示不支持;未填写或填人字符1,表示支持7天无理由退货;
注意:使用该API修改商品其它属性如标题title时,如需保持商品不支持7天无理由退货状态,该字段需传入0 。 + _newprepay string + // 商品资质信息 + _qualification string + // 汽车O2O绑定线下服务标记,如不为空,表示关联服务,否则,不关联服务。 + _o2oBindService bool + // 忽略警告提示. + _ignorewarning string + // 宝贝特征值,格式为:【key1:value1;key2:value2;key3:value3;】,key和value用【:】分隔,key&value之间用【;】分隔,只有在Top支持的特征值才能保存到宝贝上,目前支持的Key列表为:mysize_tp,是指尺码库对应的key + _features string + // 售后说明模板id + _afterSaleId int64 + // 基础色数据,淘宝不使用 + _changeProp string + // 已废弃 + _descModules string + // 是否是线下商品。1:线上商品(默认值);2:线上或线下商品;3:线下商品。 + _isOffline string + // 无线的宝贝描述 + _wirelessDesc string + // 手机类目spu 产品信息确认声明 + _spuConfirm bool + // 用户自行输入的类目属性ID串,结构:"pid1,pid2,pid3",如:"20000"(表示品牌) 注:通常一个类目下用户可输入的关键属性不超过1个。 + _inputPids string + // 更新的Sku的数量串,结构如:num1,num2,num3 如:2,3,4 + _skuQuantities string + // 更新的Sku的价格串,结构如:10.00,5.00,… 精确到2位小数;单位:元。如:200.07,表示:200元7分 + _skuPrices string + // 更新的sku的属性串,调用taobao.itemprops.get获取。格式:pid1:vid;pid2:vid,多个sku属性之间用逗号分隔。该字段内的属性需要在props字段同时包含。如果新增商品包含了sku,则此字段一定要传入,字段长度要控制在512个字节以内。 + _skuProperties string + // Sku的外部id串,结构如:1234,1342,… sku_properties, sku_quantities, sku_prices, sku_outer_ids在输入数据时要一一对应,如果没有sku_outer_ids也要写上这个参数,入参是","(这个是两个sku的示列,逗号数应该是sku个数减1);该参数最大长度是512个字节 + _skuOuterIds string + // 用户自行输入的子属性名和属性值,结构:"父属性值;一级子属性名;一级子属性值;二级子属性名;自定义输入值,....",如:“耐克;耐克系列;科比系列;科比系列;2K5,Nike乔丹鞋;乔丹系列;乔丹鞋系列;乔丹鞋系列;json5”,多个自定义属性用','分割,input_str需要与input_pids一一对应,注:通常一个类目下用户可输入的关键属性不超过1个。所有属性别名加起来不能超过3999字节。此处不可以使用“其他”、“其它”和“其她”这三个词。 + _inputStr string + // sku层面的条形码,多个SKU情况,与SKU价格库存格式类似,用逗号分隔 + _skuBarcode string + // 主图视频id + _videoId int64 + // 主图视频互动信息id,必须有主图视频id才能传互动信息id + _interactiveId int64 + // 淘宝租赁扩展信息 + _leaseExtendsInfo string + // 本地生活电子交易凭证业务,目前此字段只涉及到的信息为有效期;如果有效期为起止日期类型,此值为2012-08-06,2012-08-16如果有效期为【购买成功日 至】类型则格式为2012-08-16如果有效期为天数类型则格式为15 + _localityLifeExpirydate string + // 网点ID,在参数empty_fields里设置locality_life.network_id可删除网点ID + _localityLifeNetworkId string + // 码商信息,格式为 码商id:nick + _localityLifeMerchant string + // 核销打款,1代表核销打款 0代表非核销打款; 在参数empty_fields里设置locality_life.verification可删除核销打款 + _localityLifeVerification string + // 退款比例,百分比%前的数字,1-100的正整数值; 在参数empty_fields里设置locality_life.refund_ratio可删除退款比例 + _localityLifeRefundRatio int64 + // 编辑电子凭证宝贝时候表示是否使用邮寄0: 代表不使用邮寄;1:代表使用邮寄;如果不设置这个值,代表不使用邮寄 + _localityLifeChooseLogis string + // 电子凭证售中自动退款比例,百分比%前的数字,介于1-100之间的整数 + _localityLifeOnsaleAutoRefundRatio int64 + // 退款码费承担方。发布电子凭证宝贝的时候会增加“退款码费承担方”配置项,可选填:(1)s(卖家承担) (2)b(买家承担) + _localityLifeRefundmafee string + // 电子凭证业务属性,数据字典是: 1、is_card:1 (暂时不用) 2、consume_way:4 (1 串码 ,4 身份证)3、consume_midmnick :(核销放行账号:用户id-用户名,支持多个,用逗号分隔,例如 1234-测试账号35,1345-测试账号56)4、market:eticket (电子凭证商品标记) 5、has_pos:1 (1 表示商品配置线下门店,在detail上进行展示 ,没有或者其他值只不展示)格式是: k1:v2;k2:v2;........ 如:has_pos:1;market:eticket;consume_midmnick:901409638-OPPO;consume_way:4 + _localityLifeEticket string + // 支持宝贝信息的删除,如需删除对应的食品安全信息中的储藏方法、保质期, 则应该设置此参数的值为:food_security.plan_storage,food_security.period; 各个参数的名称之间用【,】分割, 如果对应的参数有设置过值,即使在这个列表中,也不会被删除; 目前支持此功能的宝贝信息如下:食品安全信息所有字段、电子交易凭证字段(locality_life,locality_life.verification,locality_life.refund_ratio,locality_life.network_id ,locality_life.onsale_auto_refund_ratio)。支持对全球购宝贝信息的清除(字符串中包含global_stock) + _emptyFields string + // 景区门票类宝贝编辑时候,当卖家签订了支付宝代扣协议时候,需要选择支付方式:全额支付和订金支付。当scenic_ticket_pay_way为1时表示全额支付,为2时表示订金支付 + _scenicTicketPayWay int64 + // 景区门票在选择订金支付时候,需要交的预订费。传入的值是1到20之间的数值,小数点后最多可以保留两位(多余的部分将做四舍五入的处理)。这个数值表示的是预订费的比例,最终的预订费为 scenic_ticket_book_cost乘一口价除以100 + _scenicTicketBookCost string + // 拍卖商品选择的拍卖类型,拍卖类型包括三种:增价拍(1),荷兰拍(2)和降价拍(3)。 + _paimaiInfoMode int64 + // 拍卖宝贝的保证金。对于增价拍和荷兰拍来说保证金有两种模式:淘宝默认模式(首次出价金额的10%),自定义固定保证金(固定冻结金额只能输入不超过30万的正整数),并且保证金只冻结1次。对于降价拍来说保证金只有淘宝默认的(竞拍价格的10% * 竞拍数量),并且每次出价都需要冻结保证金。对于拍卖宝贝来说,保证金是必须的,但是默认使用淘宝默认保证金模式,只有用户需要使用自定义固定保证金的时候才需要使用到这个参数。如果该参数不传或传入0则代表使用默认。 + _paimaiInfoDeposit int64 + // 降价拍宝贝的降价周期(分钟)。降价拍宝贝的价格每隔paimai_info.interval时间会下降一次increment。 + _paimaiInfoInterval int64 + // 降价拍宝贝的保留价。对于降价拍来说,paimai_info.reserve必须大于0,且小于price-increment,而且(price-paimai_info.reserve)/increment的计算结果必须为整数 + _paimaiInfoReserve float64 + // 自定义销售周期的小时数。拍卖宝贝可以自定义销售周期,这里指定销售周期的小时数。自定义销售周期的小时数。拍卖宝贝可以自定义销售周期,这里指定销售周期的小时数。注意,该参数只作为输入参数,不能通过taobao.item.get接口获取。 + _paimaiInfoValidHour int64 + // 自定义销售周期的分钟数。拍卖宝贝可以自定义销售周期,这里是指定销售周期的分钟数。自定义销售周期的小时数。拍卖宝贝可以自定义销售周期,这里指定销售周期的小时数。注意,该参数只作为输入参数,不能通过taobao.item.get接口获取。 + _paimaiInfoValidMinute int64 + // 全球购商品采购地(库存类型)全球购商品有两种库存类型:现货和代购 参数值为1时代表现货,值为2时代表代购。注意:使用时请与 全球购商品采购地(地区/国家)配合使用 + _globalStockType string + // 全球购商品采购地(地区/国家),默认值只在全球购商品采购地(库存类型选择情况生效),地区国家值为(美国, 香港, 日本, 英国, 新西兰, 德国, 韩国, 荷兰, 澳洲, 法国, 意大利, 台湾, 澳门, 加拿大, 瑞士, 西班牙, 泰国, 新加坡, 马来西亚, 菲律宾, 其他) + _globalStockCountry string + // 全球购商品发货地,发货地现在有两种类型:“国内”和“海外及港澳台”,参数值为1时代表“国内”,值为2时代表“海外及港澳台” + _globalStockDeliveryPlace string + // 全球购商品卖家包税承诺,当值为true时,代表卖家承诺包税。 + _globalStockTaxFreePromise bool +} + +// 初始化TaobaoItemUpdateAPIRequest对象 +func NewTaobaoItemUpdateRequest() *TaobaoItemUpdateAPIRequest{ + return &TaobaoItemUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemUpdateAPIRequest) GetApiMethodName() string { + return "taobao.item.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InputCustomCpv Setter +// 针对当前商品的自定义属性值 +func (r *TaobaoItemUpdateAPIRequest) SetInputCustomCpv(_inputCustomCpv string) error { + r._inputCustomCpv = _inputCustomCpv + r.Set("input_custom_cpv", _inputCustomCpv) + return nil +} + +// InputCustomCpv Getter +func (r TaobaoItemUpdateAPIRequest) GetInputCustomCpv() string { + return r._inputCustomCpv +} +// CpvMemo Setter +// 针对当前商品的标准属性值的补充说明,让买家更加了解商品信息减少交易纠纷 +func (r *TaobaoItemUpdateAPIRequest) SetCpvMemo(_cpvMemo string) error { + r._cpvMemo = _cpvMemo + r.Set("cpv_memo", _cpvMemo) + return nil +} + +// CpvMemo Getter +func (r TaobaoItemUpdateAPIRequest) GetCpvMemo() string { + return r._cpvMemo +} +// SkuSpecIds Setter +// 此参数暂时不起作用 +func (r *TaobaoItemUpdateAPIRequest) SetSkuSpecIds(_skuSpecIds string) error { + r._skuSpecIds = _skuSpecIds + r.Set("sku_spec_ids", _skuSpecIds) + return nil +} + +// SkuSpecIds Getter +func (r TaobaoItemUpdateAPIRequest) GetSkuSpecIds() string { + return r._skuSpecIds +} +// SkuDeliveryTimes Setter +// 此参数暂时不起作用 +func (r *TaobaoItemUpdateAPIRequest) SetSkuDeliveryTimes(_skuDeliveryTimes string) error { + r._skuDeliveryTimes = _skuDeliveryTimes + r.Set("sku_delivery_times", _skuDeliveryTimes) + return nil +} + +// SkuDeliveryTimes Getter +func (r TaobaoItemUpdateAPIRequest) GetSkuDeliveryTimes() string { + return r._skuDeliveryTimes +} +// SkuHdLength Setter +// 家装建材类目,商品SKU的长度,正整数,单位为cm,部分类目必选。 数据和SKU一一对应,用,分隔,如:20,30,30 +func (r *TaobaoItemUpdateAPIRequest) SetSkuHdLength(_skuHdLength string) error { + r._skuHdLength = _skuHdLength + r.Set("sku_hd_length", _skuHdLength) + return nil +} + +// SkuHdLength Getter +func (r TaobaoItemUpdateAPIRequest) GetSkuHdLength() string { + return r._skuHdLength +} +// SkuHdHeight Setter +// 家装建材类目,商品SKU的高度,单位为cm,部分类目必选。 天猫和淘宝格式不同。天猫:可选值为:"0-15", "15-25", "25-50", "50-60", "60-80", "80-120", "120-160", "160-200"。 数据和SKU一一对应,用,分隔,格式如:15-25,25-50,25-50。 淘宝:正整数,单位为cm,格式如:20,30,30 +func (r *TaobaoItemUpdateAPIRequest) SetSkuHdHeight(_skuHdHeight string) error { + r._skuHdHeight = _skuHdHeight + r.Set("sku_hd_height", _skuHdHeight) + return nil +} + +// SkuHdHeight Getter +func (r TaobaoItemUpdateAPIRequest) GetSkuHdHeight() string { + return r._skuHdHeight +} +// SkuHdLampQuantity Setter +// 家装建材类目,商品SKU的灯头数量,正整数,大于等于3,部分类目必选。 数据和SKU一一对应,用,分隔,如:3,5,7 +func (r *TaobaoItemUpdateAPIRequest) SetSkuHdLampQuantity(_skuHdLampQuantity string) error { + r._skuHdLampQuantity = _skuHdLampQuantity + r.Set("sku_hd_lamp_quantity", _skuHdLampQuantity) + return nil +} + +// SkuHdLampQuantity Getter +func (r TaobaoItemUpdateAPIRequest) GetSkuHdLampQuantity() string { + return r._skuHdLampQuantity +} +// LocationState Setter +// 所在地省份。如浙江 +func (r *TaobaoItemUpdateAPIRequest) SetLocationState(_locationState string) error { + r._locationState = _locationState + r.Set("location.state", _locationState) + return nil +} + +// LocationState Getter +func (r TaobaoItemUpdateAPIRequest) GetLocationState() string { + return r._locationState +} +// LocationCity Setter +// 所在地城市。如杭州 +func (r *TaobaoItemUpdateAPIRequest) SetLocationCity(_locationCity string) error { + r._locationCity = _locationCity + r.Set("location.city", _locationCity) + return nil +} + +// LocationCity Getter +func (r TaobaoItemUpdateAPIRequest) GetLocationCity() string { + return r._locationCity +} +// FoodSecurityPrdLicenseNo Setter +// 生产许可证号 +func (r *TaobaoItemUpdateAPIRequest) SetFoodSecurityPrdLicenseNo(_foodSecurityPrdLicenseNo string) error { + r._foodSecurityPrdLicenseNo = _foodSecurityPrdLicenseNo + r.Set("food_security.prd_license_no", _foodSecurityPrdLicenseNo) + return nil +} + +// FoodSecurityPrdLicenseNo Getter +func (r TaobaoItemUpdateAPIRequest) GetFoodSecurityPrdLicenseNo() string { + return r._foodSecurityPrdLicenseNo +} +// FoodSecurityDesignCode Setter +// 产品标准号 +func (r *TaobaoItemUpdateAPIRequest) SetFoodSecurityDesignCode(_foodSecurityDesignCode string) error { + r._foodSecurityDesignCode = _foodSecurityDesignCode + r.Set("food_security.design_code", _foodSecurityDesignCode) + return nil +} + +// FoodSecurityDesignCode Getter +func (r TaobaoItemUpdateAPIRequest) GetFoodSecurityDesignCode() string { + return r._foodSecurityDesignCode +} +// FoodSecurityFactory Setter +// 厂名 +func (r *TaobaoItemUpdateAPIRequest) SetFoodSecurityFactory(_foodSecurityFactory string) error { + r._foodSecurityFactory = _foodSecurityFactory + r.Set("food_security.factory", _foodSecurityFactory) + return nil +} + +// FoodSecurityFactory Getter +func (r TaobaoItemUpdateAPIRequest) GetFoodSecurityFactory() string { + return r._foodSecurityFactory +} +// FoodSecurityFactorySite Setter +// 厂址 +func (r *TaobaoItemUpdateAPIRequest) SetFoodSecurityFactorySite(_foodSecurityFactorySite string) error { + r._foodSecurityFactorySite = _foodSecurityFactorySite + r.Set("food_security.factory_site", _foodSecurityFactorySite) + return nil +} + +// FoodSecurityFactorySite Getter +func (r TaobaoItemUpdateAPIRequest) GetFoodSecurityFactorySite() string { + return r._foodSecurityFactorySite +} +// FoodSecurityContact Setter +// 厂家联系方式 +func (r *TaobaoItemUpdateAPIRequest) SetFoodSecurityContact(_foodSecurityContact string) error { + r._foodSecurityContact = _foodSecurityContact + r.Set("food_security.contact", _foodSecurityContact) + return nil +} + +// FoodSecurityContact Getter +func (r TaobaoItemUpdateAPIRequest) GetFoodSecurityContact() string { + return r._foodSecurityContact +} +// FoodSecurityMix Setter +// 配料表 +func (r *TaobaoItemUpdateAPIRequest) SetFoodSecurityMix(_foodSecurityMix string) error { + r._foodSecurityMix = _foodSecurityMix + r.Set("food_security.mix", _foodSecurityMix) + return nil +} + +// FoodSecurityMix Getter +func (r TaobaoItemUpdateAPIRequest) GetFoodSecurityMix() string { + return r._foodSecurityMix +} +// FoodSecurityPlanStorage Setter +// 储藏方法 +func (r *TaobaoItemUpdateAPIRequest) SetFoodSecurityPlanStorage(_foodSecurityPlanStorage string) error { + r._foodSecurityPlanStorage = _foodSecurityPlanStorage + r.Set("food_security.plan_storage", _foodSecurityPlanStorage) + return nil +} + +// FoodSecurityPlanStorage Getter +func (r TaobaoItemUpdateAPIRequest) GetFoodSecurityPlanStorage() string { + return r._foodSecurityPlanStorage +} +// FoodSecurityPeriod Setter +// 保质期,默认有单位,传入数字 +func (r *TaobaoItemUpdateAPIRequest) SetFoodSecurityPeriod(_foodSecurityPeriod string) error { + r._foodSecurityPeriod = _foodSecurityPeriod + r.Set("food_security.period", _foodSecurityPeriod) + return nil +} + +// FoodSecurityPeriod Getter +func (r TaobaoItemUpdateAPIRequest) GetFoodSecurityPeriod() string { + return r._foodSecurityPeriod +} +// FoodSecurityFoodAdditive Setter +// 食品添加剂 +func (r *TaobaoItemUpdateAPIRequest) SetFoodSecurityFoodAdditive(_foodSecurityFoodAdditive string) error { + r._foodSecurityFoodAdditive = _foodSecurityFoodAdditive + r.Set("food_security.food_additive", _foodSecurityFoodAdditive) + return nil +} + +// FoodSecurityFoodAdditive Getter +func (r TaobaoItemUpdateAPIRequest) GetFoodSecurityFoodAdditive() string { + return r._foodSecurityFoodAdditive +} +// FoodSecuritySupplier Setter +// 供货商 +func (r *TaobaoItemUpdateAPIRequest) SetFoodSecuritySupplier(_foodSecuritySupplier string) error { + r._foodSecuritySupplier = _foodSecuritySupplier + r.Set("food_security.supplier", _foodSecuritySupplier) + return nil +} + +// FoodSecuritySupplier Getter +func (r TaobaoItemUpdateAPIRequest) GetFoodSecuritySupplier() string { + return r._foodSecuritySupplier +} +// FoodSecurityProductDateStart Setter +// 生产开始日期,格式必须为yyyy-MM-dd +func (r *TaobaoItemUpdateAPIRequest) SetFoodSecurityProductDateStart(_foodSecurityProductDateStart string) error { + r._foodSecurityProductDateStart = _foodSecurityProductDateStart + r.Set("food_security.product_date_start", _foodSecurityProductDateStart) + return nil +} + +// FoodSecurityProductDateStart Getter +func (r TaobaoItemUpdateAPIRequest) GetFoodSecurityProductDateStart() string { + return r._foodSecurityProductDateStart +} +// FoodSecurityProductDateEnd Setter +// 生产结束日期,格式必须为yyyy-MM-dd +func (r *TaobaoItemUpdateAPIRequest) SetFoodSecurityProductDateEnd(_foodSecurityProductDateEnd string) error { + r._foodSecurityProductDateEnd = _foodSecurityProductDateEnd + r.Set("food_security.product_date_end", _foodSecurityProductDateEnd) + return nil +} + +// FoodSecurityProductDateEnd Getter +func (r TaobaoItemUpdateAPIRequest) GetFoodSecurityProductDateEnd() string { + return r._foodSecurityProductDateEnd +} +// FoodSecurityStockDateStart Setter +// 进货开始日期,要在生产日期之后,格式必须为yyyy-MM-dd +func (r *TaobaoItemUpdateAPIRequest) SetFoodSecurityStockDateStart(_foodSecurityStockDateStart string) error { + r._foodSecurityStockDateStart = _foodSecurityStockDateStart + r.Set("food_security.stock_date_start", _foodSecurityStockDateStart) + return nil +} + +// FoodSecurityStockDateStart Getter +func (r TaobaoItemUpdateAPIRequest) GetFoodSecurityStockDateStart() string { + return r._foodSecurityStockDateStart +} +// FoodSecurityStockDateEnd Setter +// 进货结束日期,要在生产日期之后,格式必须为yyyy-MM-dd +func (r *TaobaoItemUpdateAPIRequest) SetFoodSecurityStockDateEnd(_foodSecurityStockDateEnd string) error { + r._foodSecurityStockDateEnd = _foodSecurityStockDateEnd + r.Set("food_security.stock_date_end", _foodSecurityStockDateEnd) + return nil +} + +// FoodSecurityStockDateEnd Getter +func (r TaobaoItemUpdateAPIRequest) GetFoodSecurityStockDateEnd() string { + return r._foodSecurityStockDateEnd +} +// FoodSecurityHealthProductNo Setter +// 健字号,保健品/膳食营养补充剂 这个类目下特有的信息,此类目下无需填写生产许可证编号(QS),如果填写了生产许可证编号(QS)将被忽略不保存;保存宝贝时,标题前会自动加上健字号产品名称一起作为宝贝标题; +func (r *TaobaoItemUpdateAPIRequest) SetFoodSecurityHealthProductNo(_foodSecurityHealthProductNo string) error { + r._foodSecurityHealthProductNo = _foodSecurityHealthProductNo + r.Set("food_security.health_product_no", _foodSecurityHealthProductNo) + return nil +} + +// FoodSecurityHealthProductNo Getter +func (r TaobaoItemUpdateAPIRequest) GetFoodSecurityHealthProductNo() string { + return r._foodSecurityHealthProductNo +} +// LocalityLifeObs Setter +// 预约门店是否支持门店自提,1:是 +func (r *TaobaoItemUpdateAPIRequest) SetLocalityLifeObs(_localityLifeObs string) error { + r._localityLifeObs = _localityLifeObs + r.Set("locality_life.obs", _localityLifeObs) + return nil +} + +// LocalityLifeObs Getter +func (r TaobaoItemUpdateAPIRequest) GetLocalityLifeObs() string { + return r._localityLifeObs +} +// LocalityLifeVersion Setter +// 电子凭证版本 新版电子凭证值:1 +func (r *TaobaoItemUpdateAPIRequest) SetLocalityLifeVersion(_localityLifeVersion string) error { + r._localityLifeVersion = _localityLifeVersion + r.Set("locality_life.version", _localityLifeVersion) + return nil +} + +// LocalityLifeVersion Getter +func (r TaobaoItemUpdateAPIRequest) GetLocalityLifeVersion() string { + return r._localityLifeVersion +} +// LocalityLifePackageid Setter +// 新版电子凭证包id +func (r *TaobaoItemUpdateAPIRequest) SetLocalityLifePackageid(_localityLifePackageid string) error { + r._localityLifePackageid = _localityLifePackageid + r.Set("locality_life.packageid", _localityLifePackageid) + return nil +} + +// LocalityLifePackageid Getter +func (r TaobaoItemUpdateAPIRequest) GetLocalityLifePackageid() string { + return r._localityLifePackageid +} +// MsPaymentPrice Setter +// 订金 +func (r *TaobaoItemUpdateAPIRequest) SetMsPaymentPrice(_msPaymentPrice string) error { + r._msPaymentPrice = _msPaymentPrice + r.Set("ms_payment.price", _msPaymentPrice) + return nil +} + +// MsPaymentPrice Getter +func (r TaobaoItemUpdateAPIRequest) GetMsPaymentPrice() string { + return r._msPaymentPrice +} +// MsPaymentVoucherPrice Setter +// 尾款可抵扣金额 +func (r *TaobaoItemUpdateAPIRequest) SetMsPaymentVoucherPrice(_msPaymentVoucherPrice string) error { + r._msPaymentVoucherPrice = _msPaymentVoucherPrice + r.Set("ms_payment.voucher_price", _msPaymentVoucherPrice) + return nil +} + +// MsPaymentVoucherPrice Getter +func (r TaobaoItemUpdateAPIRequest) GetMsPaymentVoucherPrice() string { + return r._msPaymentVoucherPrice +} +// MsPaymentReferencePrice Setter +// 参考价 +func (r *TaobaoItemUpdateAPIRequest) SetMsPaymentReferencePrice(_msPaymentReferencePrice string) error { + r._msPaymentReferencePrice = _msPaymentReferencePrice + r.Set("ms_payment.reference_price", _msPaymentReferencePrice) + return nil +} + +// MsPaymentReferencePrice Getter +func (r TaobaoItemUpdateAPIRequest) GetMsPaymentReferencePrice() string { + return r._msPaymentReferencePrice +} +// DeliveryTimeDeliveryTime Setter +// 商品级别设置的发货时间。设置了商品级别的发货时间,相对发货时间,则填写相对发货时间的天数(大于3);绝对发货时间,则填写yyyy-mm-dd格式,如2013-11-11 +func (r *TaobaoItemUpdateAPIRequest) SetDeliveryTimeDeliveryTime(_deliveryTimeDeliveryTime string) error { + r._deliveryTimeDeliveryTime = _deliveryTimeDeliveryTime + r.Set("delivery_time.delivery_time", _deliveryTimeDeliveryTime) + return nil +} + +// DeliveryTimeDeliveryTime Getter +func (r TaobaoItemUpdateAPIRequest) GetDeliveryTimeDeliveryTime() string { + return r._deliveryTimeDeliveryTime +} +// DeliveryTimeDeliveryTimeType Setter +// 发货时间类型:绝对发货时间或者相对发货时间 +func (r *TaobaoItemUpdateAPIRequest) SetDeliveryTimeDeliveryTimeType(_deliveryTimeDeliveryTimeType string) error { + r._deliveryTimeDeliveryTimeType = _deliveryTimeDeliveryTimeType + r.Set("delivery_time.delivery_time_type", _deliveryTimeDeliveryTimeType) + return nil +} + +// DeliveryTimeDeliveryTimeType Getter +func (r TaobaoItemUpdateAPIRequest) GetDeliveryTimeDeliveryTimeType() string { + return r._deliveryTimeDeliveryTimeType +} +// DeliveryTimeNeedDeliveryTime Setter +// 设置是否使用发货时间,商品级别,sku级别 +func (r *TaobaoItemUpdateAPIRequest) SetDeliveryTimeNeedDeliveryTime(_deliveryTimeNeedDeliveryTime string) error { + r._deliveryTimeNeedDeliveryTime = _deliveryTimeNeedDeliveryTime + r.Set("delivery_time.need_delivery_time", _deliveryTimeNeedDeliveryTime) + return nil +} + +// DeliveryTimeNeedDeliveryTime Getter +func (r TaobaoItemUpdateAPIRequest) GetDeliveryTimeNeedDeliveryTime() string { + return r._deliveryTimeNeedDeliveryTime +} +// NumIid Setter +// 商品数字ID,该参数必须 +func (r *TaobaoItemUpdateAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemUpdateAPIRequest) GetNumIid() int64 { + return r._numIid +} +// Cid Setter +// 叶子类目id +func (r *TaobaoItemUpdateAPIRequest) SetCid(_cid int64) error { + r._cid = _cid + r.Set("cid", _cid) + return nil +} + +// Cid Getter +func (r TaobaoItemUpdateAPIRequest) GetCid() int64 { + return r._cid +} +// Props Setter +// 商品属性列表。格式:pid:vid;pid:vid。属性的pid调用taobao.itemprops.get取得,属性值的vid用taobao.itempropvalues.get取得vid。 如果该类目下面没有属性,可以不用填写。如果有属性,必选属性必填,其他非必选属性可以选择不填写.属性不能超过35对。所有属性加起来包括分割符不能超过549字节,单个属性没有限制。 如果有属性是可输入的话,则用字段input_str填入属性的值。 +func (r *TaobaoItemUpdateAPIRequest) SetProps(_props string) error { + r._props = _props + r.Set("props", _props) + return nil +} + +// Props Getter +func (r TaobaoItemUpdateAPIRequest) GetProps() string { + return r._props +} +// Num Setter +// 商品数量,取值范围:0-900000000的整数。且需要等于Sku所有数量的和 拍卖商品中增加拍只能为1,荷兰拍要在[2,500)范围内。 +func (r *TaobaoItemUpdateAPIRequest) SetNum(_num int64) error { + r._num = _num + r.Set("num", _num) + return nil +} + +// Num Getter +func (r TaobaoItemUpdateAPIRequest) GetNum() int64 { + return r._num +} +// Price Setter +// 商品价格。取值范围:0-100000000;精确到2位小数;单位:元。如:200.07,表示:200元7分。需要在正确的价格区间内。 拍卖商品对应的起拍价。 +func (r *TaobaoItemUpdateAPIRequest) SetPrice(_price float64) error { + r._price = _price + r.Set("price", _price) + return nil +} + +// Price Getter +func (r TaobaoItemUpdateAPIRequest) GetPrice() float64 { + return r._price +} +// Title Setter +// 宝贝标题. 不能超过30字符,受违禁词控制 +func (r *TaobaoItemUpdateAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoItemUpdateAPIRequest) GetTitle() string { + return r._title +} +// Desc Setter +// 商品描述. 字数要大于5个字符,小于25000个字符 ,受违禁词控制 +func (r *TaobaoItemUpdateAPIRequest) SetDesc(_desc string) error { + r._desc = _desc + r.Set("desc", _desc) + return nil +} + +// Desc Getter +func (r TaobaoItemUpdateAPIRequest) GetDesc() string { + return r._desc +} +// PostFee Setter +// 平邮费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:5.07,表示:5元7分, 注:post_fee,express_fee,ems_fee需一起填写 +func (r *TaobaoItemUpdateAPIRequest) SetPostFee(_postFee float64) error { + r._postFee = _postFee + r.Set("post_fee", _postFee) + return nil +} + +// PostFee Getter +func (r TaobaoItemUpdateAPIRequest) GetPostFee() float64 { + return r._postFee +} +// ExpressFee Setter +// 快递费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:15.07,表示:15元7分 +func (r *TaobaoItemUpdateAPIRequest) SetExpressFee(_expressFee float64) error { + r._expressFee = _expressFee + r.Set("express_fee", _expressFee) + return nil +} + +// ExpressFee Getter +func (r TaobaoItemUpdateAPIRequest) GetExpressFee() float64 { + return r._expressFee +} +// EmsFee Setter +// ems费用。取值范围:0.01-999.00;精确到2位小数;单位:元。如:25.07,表示:25元7分 +func (r *TaobaoItemUpdateAPIRequest) SetEmsFee(_emsFee float64) error { + r._emsFee = _emsFee + r.Set("ems_fee", _emsFee) + return nil +} + +// EmsFee Getter +func (r TaobaoItemUpdateAPIRequest) GetEmsFee() float64 { + return r._emsFee +} +// ListTime Setter +// 上架时间。大于当前时间则宝贝会下架进入定时上架的宝贝中。 +func (r *TaobaoItemUpdateAPIRequest) SetListTime(_listTime string) error { + r._listTime = _listTime + r.Set("list_time", _listTime) + return nil +} + +// ListTime Getter +func (r TaobaoItemUpdateAPIRequest) GetListTime() string { + return r._listTime +} +// Increment Setter +// 加价(降价)幅度。如果为0,代表系统代理幅度。对于增价拍和荷兰拍来说是加价幅度,对于降价拍来说是降价幅度。 +func (r *TaobaoItemUpdateAPIRequest) SetIncrement(_increment float64) error { + r._increment = _increment + r.Set("increment", _increment) + return nil +} + +// Increment Getter +func (r TaobaoItemUpdateAPIRequest) GetIncrement() float64 { + return r._increment +} +// Image Setter +// 商品图片。类型:JPG,GIF;最大长度:3M +func (r *TaobaoItemUpdateAPIRequest) SetImage(_image *model.File) error { + r._image = _image + r.Set("image", _image) + return nil +} + +// Image Getter +func (r TaobaoItemUpdateAPIRequest) GetImage() *model.File { + return r._image +} +// StuffStatus Setter +// 商品新旧程度。可选值:new(全新),unused(闲置),second(二手)。 +func (r *TaobaoItemUpdateAPIRequest) SetStuffStatus(_stuffStatus string) error { + r._stuffStatus = _stuffStatus + r.Set("stuff_status", _stuffStatus) + return nil +} + +// StuffStatus Getter +func (r TaobaoItemUpdateAPIRequest) GetStuffStatus() string { + return r._stuffStatus +} +// AuctionPoint Setter +// 商品的积分返点比例。如:5 表示返点比例0.5%. 注意:返点比例必须是>0的整数,而且最大是90,即为9%.B商家在发布非虚拟商品时,返点必须是 5的倍数,即0.5%的倍数。其它是1的倍数,即0.1%的倍数。无名良品商家发布商品时,复用该字段记录积分宝返点比例,返点必须是对应类目的返点步长的整数倍,默认是5,即0.5%。注意此时该字段值依旧必须是>0的整数,注意此时该字段值依旧必须是>0的整数,最高值不超过500,即50% +func (r *TaobaoItemUpdateAPIRequest) SetAuctionPoint(_auctionPoint int64) error { + r._auctionPoint = _auctionPoint + r.Set("auction_point", _auctionPoint) + return nil +} + +// AuctionPoint Getter +func (r TaobaoItemUpdateAPIRequest) GetAuctionPoint() int64 { + return r._auctionPoint +} +// PropertyAlias Setter +// 属性值别名。如pid:vid:别名;pid1:vid1:别名1, pid:属性id vid:值id。总长度不超过800个字符,如"123:333:你好",引号内的是10个字符。 +func (r *TaobaoItemUpdateAPIRequest) SetPropertyAlias(_propertyAlias string) error { + r._propertyAlias = _propertyAlias + r.Set("property_alias", _propertyAlias) + return nil +} + +// PropertyAlias Getter +func (r TaobaoItemUpdateAPIRequest) GetPropertyAlias() string { + return r._propertyAlias +} +// SellerCids Setter +// 重新关联商品与店铺类目,结构:",cid1,cid2,...,",如果店铺类目存在二级类目,必须传入子类目cids。 +func (r *TaobaoItemUpdateAPIRequest) SetSellerCids(_sellerCids string) error { + r._sellerCids = _sellerCids + r.Set("seller_cids", _sellerCids) + return nil +} + +// SellerCids Getter +func (r TaobaoItemUpdateAPIRequest) GetSellerCids() string { + return r._sellerCids +} +// PostageId Setter +// 宝贝所属的运费模板ID。取值范围:整数且必须是该卖家的运费模板的ID(可通过taobao.delivery.templates.get获得当前会话用户的所有邮费模板) +func (r *TaobaoItemUpdateAPIRequest) SetPostageId(_postageId int64) error { + r._postageId = _postageId + r.Set("postage_id", _postageId) + return nil +} + +// PostageId Getter +func (r TaobaoItemUpdateAPIRequest) GetPostageId() int64 { + return r._postageId +} +// OuterId Setter +// 商家编码 +func (r *TaobaoItemUpdateAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoItemUpdateAPIRequest) GetOuterId() string { + return r._outerId +} +// ProductId Setter +// 商品所属的产品ID(B商家发布商品需要用) +func (r *TaobaoItemUpdateAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoItemUpdateAPIRequest) GetProductId() int64 { + return r._productId +} +// PicPath Setter +// 商品主图需要关联的图片空间的相对url。这个url所对应的图片必须要属于当前用户。pic_path和image只需要传入一个,如果两个都传,默认选择pic_path +func (r *TaobaoItemUpdateAPIRequest) SetPicPath(_picPath string) error { + r._picPath = _picPath + r.Set("pic_path", _picPath) + return nil +} + +// PicPath Getter +func (r TaobaoItemUpdateAPIRequest) GetPicPath() string { + return r._picPath +} +// AutoFill Setter +// 代充商品类型。只有少数类目下的商品可以标记上此字段,具体哪些类目可以上传可以通过taobao.itemcat.features.get获得。在代充商品的类目下,不传表示不标记商品类型(交易搜索中就不能通过标记搜到相关的交易了)。可选类型: no_mark(不做类型标记) time_card(点卡软件代充) fee_card(话费软件代充) +func (r *TaobaoItemUpdateAPIRequest) SetAutoFill(_autoFill string) error { + r._autoFill = _autoFill + r.Set("auto_fill", _autoFill) + return nil +} + +// AutoFill Getter +func (r TaobaoItemUpdateAPIRequest) GetAutoFill() string { + return r._autoFill +} +// IsTaobao Setter +// 是否在淘宝上显示(如果传FALSE,则在淘宝主站无法显示该商品) +func (r *TaobaoItemUpdateAPIRequest) SetIsTaobao(_isTaobao bool) error { + r._isTaobao = _isTaobao + r.Set("is_taobao", _isTaobao) + return nil +} + +// IsTaobao Getter +func (r TaobaoItemUpdateAPIRequest) GetIsTaobao() bool { + return r._isTaobao +} +// IsEx Setter +// 是否在外店显示 +func (r *TaobaoItemUpdateAPIRequest) SetIsEx(_isEx bool) error { + r._isEx = _isEx + r.Set("is_ex", _isEx) + return nil +} + +// IsEx Getter +func (r TaobaoItemUpdateAPIRequest) GetIsEx() bool { + return r._isEx +} +// Is3D Setter +// 是否是3D +func (r *TaobaoItemUpdateAPIRequest) SetIs3D(_is3D bool) error { + r._is3D = _is3D + r.Set("is_3D", _is3D) + return nil +} + +// Is3D Getter +func (r TaobaoItemUpdateAPIRequest) GetIs3D() bool { + return r._is3D +} +// IsReplaceSku Setter +// 是否替换sku +func (r *TaobaoItemUpdateAPIRequest) SetIsReplaceSku(_isReplaceSku bool) error { + r._isReplaceSku = _isReplaceSku + r.Set("is_replace_sku", _isReplaceSku) + return nil +} + +// IsReplaceSku Getter +func (r TaobaoItemUpdateAPIRequest) GetIsReplaceSku() bool { + return r._isReplaceSku +} +// Lang Setter +// 商品文字的版本,繁体传入”zh_HK”,简体传入”zh_CN” +func (r *TaobaoItemUpdateAPIRequest) SetLang(_lang string) error { + r._lang = _lang + r.Set("lang", _lang) + return nil +} + +// Lang Getter +func (r TaobaoItemUpdateAPIRequest) GetLang() string { + return r._lang +} +// HasDiscount Setter +// 支持会员打折。可选值:true,false; +func (r *TaobaoItemUpdateAPIRequest) SetHasDiscount(_hasDiscount bool) error { + r._hasDiscount = _hasDiscount + r.Set("has_discount", _hasDiscount) + return nil +} + +// HasDiscount Getter +func (r TaobaoItemUpdateAPIRequest) GetHasDiscount() bool { + return r._hasDiscount +} +// HasShowcase Setter +// 橱窗推荐。可选值:true,false; +func (r *TaobaoItemUpdateAPIRequest) SetHasShowcase(_hasShowcase bool) error { + r._hasShowcase = _hasShowcase + r.Set("has_showcase", _hasShowcase) + return nil +} + +// HasShowcase Getter +func (r TaobaoItemUpdateAPIRequest) GetHasShowcase() bool { + return r._hasShowcase +} +// ApproveStatus Setter +// 商品上传后的状态。可选值:onsale(出售中),instock(库中),如果同时更新商品状态为出售中及list_time为将来的时间,则商品还是处于定时上架的状态, 此时item.is_timing为true +func (r *TaobaoItemUpdateAPIRequest) SetApproveStatus(_approveStatus string) error { + r._approveStatus = _approveStatus + r.Set("approve_status", _approveStatus) + return nil +} + +// ApproveStatus Getter +func (r TaobaoItemUpdateAPIRequest) GetApproveStatus() string { + return r._approveStatus +} +// FreightPayer Setter +// 运费承担方式。运费承担方式。可选值:seller(卖家承担),buyer(买家承担); +func (r *TaobaoItemUpdateAPIRequest) SetFreightPayer(_freightPayer string) error { + r._freightPayer = _freightPayer + r.Set("freight_payer", _freightPayer) + return nil +} + +// FreightPayer Getter +func (r TaobaoItemUpdateAPIRequest) GetFreightPayer() string { + return r._freightPayer +} +// ValidThru Setter +// 有效期。可选值:7,14;单位:天; +func (r *TaobaoItemUpdateAPIRequest) SetValidThru(_validThru int64) error { + r._validThru = _validThru + r.Set("valid_thru", _validThru) + return nil +} + +// ValidThru Getter +func (r TaobaoItemUpdateAPIRequest) GetValidThru() int64 { + return r._validThru +} +// HasInvoice Setter +// 是否有发票。可选值:true,false (商城卖家此字段必须为true) +func (r *TaobaoItemUpdateAPIRequest) SetHasInvoice(_hasInvoice bool) error { + r._hasInvoice = _hasInvoice + r.Set("has_invoice", _hasInvoice) + return nil +} + +// HasInvoice Getter +func (r TaobaoItemUpdateAPIRequest) GetHasInvoice() bool { + return r._hasInvoice +} +// HasWarranty Setter +// 是否有保修。可选值:true,false; +func (r *TaobaoItemUpdateAPIRequest) SetHasWarranty(_hasWarranty bool) error { + r._hasWarranty = _hasWarranty + r.Set("has_warranty", _hasWarranty) + return nil +} + +// HasWarranty Getter +func (r TaobaoItemUpdateAPIRequest) GetHasWarranty() bool { + return r._hasWarranty +} +// SellPromise Setter +// 是否承诺退换货服务!虚拟商品无须设置此项! +func (r *TaobaoItemUpdateAPIRequest) SetSellPromise(_sellPromise bool) error { + r._sellPromise = _sellPromise + r.Set("sell_promise", _sellPromise) + return nil +} + +// SellPromise Getter +func (r TaobaoItemUpdateAPIRequest) GetSellPromise() bool { + return r._sellPromise +} +// CodPostageId Setter +// 货到付款运费模板ID该字段已经废弃,货到付款模板已经集成到运费模板中。 +func (r *TaobaoItemUpdateAPIRequest) SetCodPostageId(_codPostageId int64) error { + r._codPostageId = _codPostageId + r.Set("cod_postage_id", _codPostageId) + return nil +} + +// CodPostageId Getter +func (r TaobaoItemUpdateAPIRequest) GetCodPostageId() int64 { + return r._codPostageId +} +// IsLightningConsignment Setter +// 实物闪电发货。注意:在售的闪电发货产品不允许取消闪电发货,需要先下架商品才能取消闪电发货标记 +func (r *TaobaoItemUpdateAPIRequest) SetIsLightningConsignment(_isLightningConsignment bool) error { + r._isLightningConsignment = _isLightningConsignment + r.Set("is_lightning_consignment", _isLightningConsignment) + return nil +} + +// IsLightningConsignment Getter +func (r TaobaoItemUpdateAPIRequest) GetIsLightningConsignment() bool { + return r._isLightningConsignment +} +// Weight Setter +// 商品的重量(商超卖家专用字段) +func (r *TaobaoItemUpdateAPIRequest) SetWeight(_weight int64) error { + r._weight = _weight + r.Set("weight", _weight) + return nil +} + +// Weight Getter +func (r TaobaoItemUpdateAPIRequest) GetWeight() int64 { + return r._weight +} +// IsXinpin Setter +// 商品是否为新品。只有在当前类目开通新品,并且当前用户拥有该类目下发布新品权限时才能设置is_xinpin为true,否则设置true后会返回错误码:isv.invalid-permission:xinpin。同时只有一口价全新的宝贝才能设置为新品,否则会返回错误码:isv.invalid-parameter:xinpin。不设置参数就保持原有值。 +func (r *TaobaoItemUpdateAPIRequest) SetIsXinpin(_isXinpin bool) error { + r._isXinpin = _isXinpin + r.Set("is_xinpin", _isXinpin) + return nil +} + +// IsXinpin Getter +func (r TaobaoItemUpdateAPIRequest) GetIsXinpin() bool { + return r._isXinpin +} +// SubStock Setter +// 商品是否支持拍下减库存:1支持;2取消支持(付款减库存);0(默认)不更改 集市卖家默认拍下减库存; 商城卖家默认付款减库存 +func (r *TaobaoItemUpdateAPIRequest) SetSubStock(_subStock int64) error { + r._subStock = _subStock + r.Set("sub_stock", _subStock) + return nil +} + +// SubStock Getter +func (r TaobaoItemUpdateAPIRequest) GetSubStock() int64 { + return r._subStock +} +// ItemSize Setter +// 表示商品的体积,如果需要使用按体积计费的运费模板,一定要设置这个值。该值的单位为立方米(m3),如果是其他单位,请转换成成立方米。该值支持两种格式的设置:格式1:bulk:3,单位为立方米(m3),表示直接设置为商品的体积。格式2:length:10;breadth:10;height:10,单位为米(m)。体积和长宽高都支持小数类型。在传入体积或长宽高时候,不能带单位。体积的单位默认为立方米(m3),长宽高的单位默认为米(m)在编辑的时候,如果需要删除体积属性,请设置该值为0,如bulk:0 +func (r *TaobaoItemUpdateAPIRequest) SetItemSize(_itemSize string) error { + r._itemSize = _itemSize + r.Set("item_size", _itemSize) + return nil +} + +// ItemSize Getter +func (r TaobaoItemUpdateAPIRequest) GetItemSize() string { + return r._itemSize +} +// ItemWeight Setter +// 商品的重量,用于按重量计费的运费模板。注意:单位为kg。 只能传入数值类型(包含小数),不能带单位,单位默认为kg。 在编辑时候,如果需要在商品里删除重量的信息,就需要将值设置为0 +func (r *TaobaoItemUpdateAPIRequest) SetItemWeight(_itemWeight string) error { + r._itemWeight = _itemWeight + r.Set("item_weight", _itemWeight) + return nil +} + +// ItemWeight Getter +func (r TaobaoItemUpdateAPIRequest) GetItemWeight() string { + return r._itemWeight +} +// SellPoint Setter +// 商品卖点信息,最长150个字符。天猫和集市都可用 +func (r *TaobaoItemUpdateAPIRequest) SetSellPoint(_sellPoint string) error { + r._sellPoint = _sellPoint + r.Set("sell_point", _sellPoint) + return nil +} + +// SellPoint Getter +func (r TaobaoItemUpdateAPIRequest) GetSellPoint() string { + return r._sellPoint +} +// Barcode Setter +// 商品条形码 +func (r *TaobaoItemUpdateAPIRequest) SetBarcode(_barcode string) error { + r._barcode = _barcode + r.Set("barcode", _barcode) + return nil +} + +// Barcode Getter +func (r TaobaoItemUpdateAPIRequest) GetBarcode() string { + return r._barcode +} +// Newprepay Setter +// 该宝贝是否支持【7天无理由退货】,卖家选择的值只是一个因素,最终以类目和选择的属性条件来确定是否支持7天。填入字符0,表示不支持;未填写或填人字符1,表示支持7天无理由退货;
注意:使用该API修改商品其它属性如标题title时,如需保持商品不支持7天无理由退货状态,该字段需传入0 。 +func (r *TaobaoItemUpdateAPIRequest) SetNewprepay(_newprepay string) error { + r._newprepay = _newprepay + r.Set("newprepay", _newprepay) + return nil +} + +// Newprepay Getter +func (r TaobaoItemUpdateAPIRequest) GetNewprepay() string { + return r._newprepay +} +// Qualification Setter +// 商品资质信息 +func (r *TaobaoItemUpdateAPIRequest) SetQualification(_qualification string) error { + r._qualification = _qualification + r.Set("qualification", _qualification) + return nil +} + +// Qualification Getter +func (r TaobaoItemUpdateAPIRequest) GetQualification() string { + return r._qualification +} +// O2oBindService Setter +// 汽车O2O绑定线下服务标记,如不为空,表示关联服务,否则,不关联服务。 +func (r *TaobaoItemUpdateAPIRequest) SetO2oBindService(_o2oBindService bool) error { + r._o2oBindService = _o2oBindService + r.Set("o2o_bind_service", _o2oBindService) + return nil +} + +// O2oBindService Getter +func (r TaobaoItemUpdateAPIRequest) GetO2oBindService() bool { + return r._o2oBindService +} +// Ignorewarning Setter +// 忽略警告提示. +func (r *TaobaoItemUpdateAPIRequest) SetIgnorewarning(_ignorewarning string) error { + r._ignorewarning = _ignorewarning + r.Set("ignorewarning", _ignorewarning) + return nil +} + +// Ignorewarning Getter +func (r TaobaoItemUpdateAPIRequest) GetIgnorewarning() string { + return r._ignorewarning +} +// Features Setter +// 宝贝特征值,格式为:【key1:value1;key2:value2;key3:value3;】,key和value用【:】分隔,key&value之间用【;】分隔,只有在Top支持的特征值才能保存到宝贝上,目前支持的Key列表为:mysize_tp,是指尺码库对应的key +func (r *TaobaoItemUpdateAPIRequest) SetFeatures(_features string) error { + r._features = _features + r.Set("features", _features) + return nil +} + +// Features Getter +func (r TaobaoItemUpdateAPIRequest) GetFeatures() string { + return r._features +} +// AfterSaleId Setter +// 售后说明模板id +func (r *TaobaoItemUpdateAPIRequest) SetAfterSaleId(_afterSaleId int64) error { + r._afterSaleId = _afterSaleId + r.Set("after_sale_id", _afterSaleId) + return nil +} + +// AfterSaleId Getter +func (r TaobaoItemUpdateAPIRequest) GetAfterSaleId() int64 { + return r._afterSaleId +} +// ChangeProp Setter +// 基础色数据,淘宝不使用 +func (r *TaobaoItemUpdateAPIRequest) SetChangeProp(_changeProp string) error { + r._changeProp = _changeProp + r.Set("change_prop", _changeProp) + return nil +} + +// ChangeProp Getter +func (r TaobaoItemUpdateAPIRequest) GetChangeProp() string { + return r._changeProp +} +// DescModules Setter +// 已废弃 +func (r *TaobaoItemUpdateAPIRequest) SetDescModules(_descModules string) error { + r._descModules = _descModules + r.Set("desc_modules", _descModules) + return nil +} + +// DescModules Getter +func (r TaobaoItemUpdateAPIRequest) GetDescModules() string { + return r._descModules +} +// IsOffline Setter +// 是否是线下商品。1:线上商品(默认值);2:线上或线下商品;3:线下商品。 +func (r *TaobaoItemUpdateAPIRequest) SetIsOffline(_isOffline string) error { + r._isOffline = _isOffline + r.Set("is_offline", _isOffline) + return nil +} + +// IsOffline Getter +func (r TaobaoItemUpdateAPIRequest) GetIsOffline() string { + return r._isOffline +} +// WirelessDesc Setter +// 无线的宝贝描述 +func (r *TaobaoItemUpdateAPIRequest) SetWirelessDesc(_wirelessDesc string) error { + r._wirelessDesc = _wirelessDesc + r.Set("wireless_desc", _wirelessDesc) + return nil +} + +// WirelessDesc Getter +func (r TaobaoItemUpdateAPIRequest) GetWirelessDesc() string { + return r._wirelessDesc +} +// SpuConfirm Setter +// 手机类目spu 产品信息确认声明 +func (r *TaobaoItemUpdateAPIRequest) SetSpuConfirm(_spuConfirm bool) error { + r._spuConfirm = _spuConfirm + r.Set("spu_confirm", _spuConfirm) + return nil +} + +// SpuConfirm Getter +func (r TaobaoItemUpdateAPIRequest) GetSpuConfirm() bool { + return r._spuConfirm +} +// InputPids Setter +// 用户自行输入的类目属性ID串,结构:"pid1,pid2,pid3",如:"20000"(表示品牌) 注:通常一个类目下用户可输入的关键属性不超过1个。 +func (r *TaobaoItemUpdateAPIRequest) SetInputPids(_inputPids string) error { + r._inputPids = _inputPids + r.Set("input_pids", _inputPids) + return nil +} + +// InputPids Getter +func (r TaobaoItemUpdateAPIRequest) GetInputPids() string { + return r._inputPids +} +// SkuQuantities Setter +// 更新的Sku的数量串,结构如:num1,num2,num3 如:2,3,4 +func (r *TaobaoItemUpdateAPIRequest) SetSkuQuantities(_skuQuantities string) error { + r._skuQuantities = _skuQuantities + r.Set("sku_quantities", _skuQuantities) + return nil +} + +// SkuQuantities Getter +func (r TaobaoItemUpdateAPIRequest) GetSkuQuantities() string { + return r._skuQuantities +} +// SkuPrices Setter +// 更新的Sku的价格串,结构如:10.00,5.00,… 精确到2位小数;单位:元。如:200.07,表示:200元7分 +func (r *TaobaoItemUpdateAPIRequest) SetSkuPrices(_skuPrices string) error { + r._skuPrices = _skuPrices + r.Set("sku_prices", _skuPrices) + return nil +} + +// SkuPrices Getter +func (r TaobaoItemUpdateAPIRequest) GetSkuPrices() string { + return r._skuPrices +} +// SkuProperties Setter +// 更新的sku的属性串,调用taobao.itemprops.get获取。格式:pid1:vid;pid2:vid,多个sku属性之间用逗号分隔。该字段内的属性需要在props字段同时包含。如果新增商品包含了sku,则此字段一定要传入,字段长度要控制在512个字节以内。 +func (r *TaobaoItemUpdateAPIRequest) SetSkuProperties(_skuProperties string) error { + r._skuProperties = _skuProperties + r.Set("sku_properties", _skuProperties) + return nil +} + +// SkuProperties Getter +func (r TaobaoItemUpdateAPIRequest) GetSkuProperties() string { + return r._skuProperties +} +// SkuOuterIds Setter +// Sku的外部id串,结构如:1234,1342,… sku_properties, sku_quantities, sku_prices, sku_outer_ids在输入数据时要一一对应,如果没有sku_outer_ids也要写上这个参数,入参是","(这个是两个sku的示列,逗号数应该是sku个数减1);该参数最大长度是512个字节 +func (r *TaobaoItemUpdateAPIRequest) SetSkuOuterIds(_skuOuterIds string) error { + r._skuOuterIds = _skuOuterIds + r.Set("sku_outer_ids", _skuOuterIds) + return nil +} + +// SkuOuterIds Getter +func (r TaobaoItemUpdateAPIRequest) GetSkuOuterIds() string { + return r._skuOuterIds +} +// InputStr Setter +// 用户自行输入的子属性名和属性值,结构:"父属性值;一级子属性名;一级子属性值;二级子属性名;自定义输入值,....",如:“耐克;耐克系列;科比系列;科比系列;2K5,Nike乔丹鞋;乔丹系列;乔丹鞋系列;乔丹鞋系列;json5”,多个自定义属性用','分割,input_str需要与input_pids一一对应,注:通常一个类目下用户可输入的关键属性不超过1个。所有属性别名加起来不能超过3999字节。此处不可以使用“其他”、“其它”和“其她”这三个词。 +func (r *TaobaoItemUpdateAPIRequest) SetInputStr(_inputStr string) error { + r._inputStr = _inputStr + r.Set("input_str", _inputStr) + return nil +} + +// InputStr Getter +func (r TaobaoItemUpdateAPIRequest) GetInputStr() string { + return r._inputStr +} +// SkuBarcode Setter +// sku层面的条形码,多个SKU情况,与SKU价格库存格式类似,用逗号分隔 +func (r *TaobaoItemUpdateAPIRequest) SetSkuBarcode(_skuBarcode string) error { + r._skuBarcode = _skuBarcode + r.Set("sku_barcode", _skuBarcode) + return nil +} + +// SkuBarcode Getter +func (r TaobaoItemUpdateAPIRequest) GetSkuBarcode() string { + return r._skuBarcode +} +// VideoId Setter +// 主图视频id +func (r *TaobaoItemUpdateAPIRequest) SetVideoId(_videoId int64) error { + r._videoId = _videoId + r.Set("video_id", _videoId) + return nil +} + +// VideoId Getter +func (r TaobaoItemUpdateAPIRequest) GetVideoId() int64 { + return r._videoId +} +// InteractiveId Setter +// 主图视频互动信息id,必须有主图视频id才能传互动信息id +func (r *TaobaoItemUpdateAPIRequest) SetInteractiveId(_interactiveId int64) error { + r._interactiveId = _interactiveId + r.Set("interactive_id", _interactiveId) + return nil +} + +// InteractiveId Getter +func (r TaobaoItemUpdateAPIRequest) GetInteractiveId() int64 { + return r._interactiveId +} +// LeaseExtendsInfo Setter +// 淘宝租赁扩展信息 +func (r *TaobaoItemUpdateAPIRequest) SetLeaseExtendsInfo(_leaseExtendsInfo string) error { + r._leaseExtendsInfo = _leaseExtendsInfo + r.Set("lease_extends_info", _leaseExtendsInfo) + return nil +} + +// LeaseExtendsInfo Getter +func (r TaobaoItemUpdateAPIRequest) GetLeaseExtendsInfo() string { + return r._leaseExtendsInfo +} +// LocalityLifeExpirydate Setter +// 本地生活电子交易凭证业务,目前此字段只涉及到的信息为有效期;如果有效期为起止日期类型,此值为2012-08-06,2012-08-16如果有效期为【购买成功日 至】类型则格式为2012-08-16如果有效期为天数类型则格式为15 +func (r *TaobaoItemUpdateAPIRequest) SetLocalityLifeExpirydate(_localityLifeExpirydate string) error { + r._localityLifeExpirydate = _localityLifeExpirydate + r.Set("locality_life.expirydate", _localityLifeExpirydate) + return nil +} + +// LocalityLifeExpirydate Getter +func (r TaobaoItemUpdateAPIRequest) GetLocalityLifeExpirydate() string { + return r._localityLifeExpirydate +} +// LocalityLifeNetworkId Setter +// 网点ID,在参数empty_fields里设置locality_life.network_id可删除网点ID +func (r *TaobaoItemUpdateAPIRequest) SetLocalityLifeNetworkId(_localityLifeNetworkId string) error { + r._localityLifeNetworkId = _localityLifeNetworkId + r.Set("locality_life.network_id", _localityLifeNetworkId) + return nil +} + +// LocalityLifeNetworkId Getter +func (r TaobaoItemUpdateAPIRequest) GetLocalityLifeNetworkId() string { + return r._localityLifeNetworkId +} +// LocalityLifeMerchant Setter +// 码商信息,格式为 码商id:nick +func (r *TaobaoItemUpdateAPIRequest) SetLocalityLifeMerchant(_localityLifeMerchant string) error { + r._localityLifeMerchant = _localityLifeMerchant + r.Set("locality_life.merchant", _localityLifeMerchant) + return nil +} + +// LocalityLifeMerchant Getter +func (r TaobaoItemUpdateAPIRequest) GetLocalityLifeMerchant() string { + return r._localityLifeMerchant +} +// LocalityLifeVerification Setter +// 核销打款,1代表核销打款 0代表非核销打款; 在参数empty_fields里设置locality_life.verification可删除核销打款 +func (r *TaobaoItemUpdateAPIRequest) SetLocalityLifeVerification(_localityLifeVerification string) error { + r._localityLifeVerification = _localityLifeVerification + r.Set("locality_life.verification", _localityLifeVerification) + return nil +} + +// LocalityLifeVerification Getter +func (r TaobaoItemUpdateAPIRequest) GetLocalityLifeVerification() string { + return r._localityLifeVerification +} +// LocalityLifeRefundRatio Setter +// 退款比例,百分比%前的数字,1-100的正整数值; 在参数empty_fields里设置locality_life.refund_ratio可删除退款比例 +func (r *TaobaoItemUpdateAPIRequest) SetLocalityLifeRefundRatio(_localityLifeRefundRatio int64) error { + r._localityLifeRefundRatio = _localityLifeRefundRatio + r.Set("locality_life.refund_ratio", _localityLifeRefundRatio) + return nil +} + +// LocalityLifeRefundRatio Getter +func (r TaobaoItemUpdateAPIRequest) GetLocalityLifeRefundRatio() int64 { + return r._localityLifeRefundRatio +} +// LocalityLifeChooseLogis Setter +// 编辑电子凭证宝贝时候表示是否使用邮寄0: 代表不使用邮寄;1:代表使用邮寄;如果不设置这个值,代表不使用邮寄 +func (r *TaobaoItemUpdateAPIRequest) SetLocalityLifeChooseLogis(_localityLifeChooseLogis string) error { + r._localityLifeChooseLogis = _localityLifeChooseLogis + r.Set("locality_life.choose_logis", _localityLifeChooseLogis) + return nil +} + +// LocalityLifeChooseLogis Getter +func (r TaobaoItemUpdateAPIRequest) GetLocalityLifeChooseLogis() string { + return r._localityLifeChooseLogis +} +// LocalityLifeOnsaleAutoRefundRatio Setter +// 电子凭证售中自动退款比例,百分比%前的数字,介于1-100之间的整数 +func (r *TaobaoItemUpdateAPIRequest) SetLocalityLifeOnsaleAutoRefundRatio(_localityLifeOnsaleAutoRefundRatio int64) error { + r._localityLifeOnsaleAutoRefundRatio = _localityLifeOnsaleAutoRefundRatio + r.Set("locality_life.onsale_auto_refund_ratio", _localityLifeOnsaleAutoRefundRatio) + return nil +} + +// LocalityLifeOnsaleAutoRefundRatio Getter +func (r TaobaoItemUpdateAPIRequest) GetLocalityLifeOnsaleAutoRefundRatio() int64 { + return r._localityLifeOnsaleAutoRefundRatio +} +// LocalityLifeRefundmafee Setter +// 退款码费承担方。发布电子凭证宝贝的时候会增加“退款码费承担方”配置项,可选填:(1)s(卖家承担) (2)b(买家承担) +func (r *TaobaoItemUpdateAPIRequest) SetLocalityLifeRefundmafee(_localityLifeRefundmafee string) error { + r._localityLifeRefundmafee = _localityLifeRefundmafee + r.Set("locality_life.refundmafee", _localityLifeRefundmafee) + return nil +} + +// LocalityLifeRefundmafee Getter +func (r TaobaoItemUpdateAPIRequest) GetLocalityLifeRefundmafee() string { + return r._localityLifeRefundmafee +} +// LocalityLifeEticket Setter +// 电子凭证业务属性,数据字典是: 1、is_card:1 (暂时不用) 2、consume_way:4 (1 串码 ,4 身份证)3、consume_midmnick :(核销放行账号:用户id-用户名,支持多个,用逗号分隔,例如 1234-测试账号35,1345-测试账号56)4、market:eticket (电子凭证商品标记) 5、has_pos:1 (1 表示商品配置线下门店,在detail上进行展示 ,没有或者其他值只不展示)格式是: k1:v2;k2:v2;........ 如:has_pos:1;market:eticket;consume_midmnick:901409638-OPPO;consume_way:4 +func (r *TaobaoItemUpdateAPIRequest) SetLocalityLifeEticket(_localityLifeEticket string) error { + r._localityLifeEticket = _localityLifeEticket + r.Set("locality_life.eticket", _localityLifeEticket) + return nil +} + +// LocalityLifeEticket Getter +func (r TaobaoItemUpdateAPIRequest) GetLocalityLifeEticket() string { + return r._localityLifeEticket +} +// EmptyFields Setter +// 支持宝贝信息的删除,如需删除对应的食品安全信息中的储藏方法、保质期, 则应该设置此参数的值为:food_security.plan_storage,food_security.period; 各个参数的名称之间用【,】分割, 如果对应的参数有设置过值,即使在这个列表中,也不会被删除; 目前支持此功能的宝贝信息如下:食品安全信息所有字段、电子交易凭证字段(locality_life,locality_life.verification,locality_life.refund_ratio,locality_life.network_id ,locality_life.onsale_auto_refund_ratio)。支持对全球购宝贝信息的清除(字符串中包含global_stock) +func (r *TaobaoItemUpdateAPIRequest) SetEmptyFields(_emptyFields string) error { + r._emptyFields = _emptyFields + r.Set("empty_fields", _emptyFields) + return nil +} + +// EmptyFields Getter +func (r TaobaoItemUpdateAPIRequest) GetEmptyFields() string { + return r._emptyFields +} +// ScenicTicketPayWay Setter +// 景区门票类宝贝编辑时候,当卖家签订了支付宝代扣协议时候,需要选择支付方式:全额支付和订金支付。当scenic_ticket_pay_way为1时表示全额支付,为2时表示订金支付 +func (r *TaobaoItemUpdateAPIRequest) SetScenicTicketPayWay(_scenicTicketPayWay int64) error { + r._scenicTicketPayWay = _scenicTicketPayWay + r.Set("scenic_ticket_pay_way", _scenicTicketPayWay) + return nil +} + +// ScenicTicketPayWay Getter +func (r TaobaoItemUpdateAPIRequest) GetScenicTicketPayWay() int64 { + return r._scenicTicketPayWay +} +// ScenicTicketBookCost Setter +// 景区门票在选择订金支付时候,需要交的预订费。传入的值是1到20之间的数值,小数点后最多可以保留两位(多余的部分将做四舍五入的处理)。这个数值表示的是预订费的比例,最终的预订费为 scenic_ticket_book_cost乘一口价除以100 +func (r *TaobaoItemUpdateAPIRequest) SetScenicTicketBookCost(_scenicTicketBookCost string) error { + r._scenicTicketBookCost = _scenicTicketBookCost + r.Set("scenic_ticket_book_cost", _scenicTicketBookCost) + return nil +} + +// ScenicTicketBookCost Getter +func (r TaobaoItemUpdateAPIRequest) GetScenicTicketBookCost() string { + return r._scenicTicketBookCost +} +// PaimaiInfoMode Setter +// 拍卖商品选择的拍卖类型,拍卖类型包括三种:增价拍(1),荷兰拍(2)和降价拍(3)。 +func (r *TaobaoItemUpdateAPIRequest) SetPaimaiInfoMode(_paimaiInfoMode int64) error { + r._paimaiInfoMode = _paimaiInfoMode + r.Set("paimai_info.mode", _paimaiInfoMode) + return nil +} + +// PaimaiInfoMode Getter +func (r TaobaoItemUpdateAPIRequest) GetPaimaiInfoMode() int64 { + return r._paimaiInfoMode +} +// PaimaiInfoDeposit Setter +// 拍卖宝贝的保证金。对于增价拍和荷兰拍来说保证金有两种模式:淘宝默认模式(首次出价金额的10%),自定义固定保证金(固定冻结金额只能输入不超过30万的正整数),并且保证金只冻结1次。对于降价拍来说保证金只有淘宝默认的(竞拍价格的10% * 竞拍数量),并且每次出价都需要冻结保证金。对于拍卖宝贝来说,保证金是必须的,但是默认使用淘宝默认保证金模式,只有用户需要使用自定义固定保证金的时候才需要使用到这个参数。如果该参数不传或传入0则代表使用默认。 +func (r *TaobaoItemUpdateAPIRequest) SetPaimaiInfoDeposit(_paimaiInfoDeposit int64) error { + r._paimaiInfoDeposit = _paimaiInfoDeposit + r.Set("paimai_info.deposit", _paimaiInfoDeposit) + return nil +} + +// PaimaiInfoDeposit Getter +func (r TaobaoItemUpdateAPIRequest) GetPaimaiInfoDeposit() int64 { + return r._paimaiInfoDeposit +} +// PaimaiInfoInterval Setter +// 降价拍宝贝的降价周期(分钟)。降价拍宝贝的价格每隔paimai_info.interval时间会下降一次increment。 +func (r *TaobaoItemUpdateAPIRequest) SetPaimaiInfoInterval(_paimaiInfoInterval int64) error { + r._paimaiInfoInterval = _paimaiInfoInterval + r.Set("paimai_info.interval", _paimaiInfoInterval) + return nil +} + +// PaimaiInfoInterval Getter +func (r TaobaoItemUpdateAPIRequest) GetPaimaiInfoInterval() int64 { + return r._paimaiInfoInterval +} +// PaimaiInfoReserve Setter +// 降价拍宝贝的保留价。对于降价拍来说,paimai_info.reserve必须大于0,且小于price-increment,而且(price-paimai_info.reserve)/increment的计算结果必须为整数 +func (r *TaobaoItemUpdateAPIRequest) SetPaimaiInfoReserve(_paimaiInfoReserve float64) error { + r._paimaiInfoReserve = _paimaiInfoReserve + r.Set("paimai_info.reserve", _paimaiInfoReserve) + return nil +} + +// PaimaiInfoReserve Getter +func (r TaobaoItemUpdateAPIRequest) GetPaimaiInfoReserve() float64 { + return r._paimaiInfoReserve +} +// PaimaiInfoValidHour Setter +// 自定义销售周期的小时数。拍卖宝贝可以自定义销售周期,这里指定销售周期的小时数。自定义销售周期的小时数。拍卖宝贝可以自定义销售周期,这里指定销售周期的小时数。注意,该参数只作为输入参数,不能通过taobao.item.get接口获取。 +func (r *TaobaoItemUpdateAPIRequest) SetPaimaiInfoValidHour(_paimaiInfoValidHour int64) error { + r._paimaiInfoValidHour = _paimaiInfoValidHour + r.Set("paimai_info.valid_hour", _paimaiInfoValidHour) + return nil +} + +// PaimaiInfoValidHour Getter +func (r TaobaoItemUpdateAPIRequest) GetPaimaiInfoValidHour() int64 { + return r._paimaiInfoValidHour +} +// PaimaiInfoValidMinute Setter +// 自定义销售周期的分钟数。拍卖宝贝可以自定义销售周期,这里是指定销售周期的分钟数。自定义销售周期的小时数。拍卖宝贝可以自定义销售周期,这里指定销售周期的小时数。注意,该参数只作为输入参数,不能通过taobao.item.get接口获取。 +func (r *TaobaoItemUpdateAPIRequest) SetPaimaiInfoValidMinute(_paimaiInfoValidMinute int64) error { + r._paimaiInfoValidMinute = _paimaiInfoValidMinute + r.Set("paimai_info.valid_minute", _paimaiInfoValidMinute) + return nil +} + +// PaimaiInfoValidMinute Getter +func (r TaobaoItemUpdateAPIRequest) GetPaimaiInfoValidMinute() int64 { + return r._paimaiInfoValidMinute +} +// GlobalStockType Setter +// 全球购商品采购地(库存类型)全球购商品有两种库存类型:现货和代购 参数值为1时代表现货,值为2时代表代购。注意:使用时请与 全球购商品采购地(地区/国家)配合使用 +func (r *TaobaoItemUpdateAPIRequest) SetGlobalStockType(_globalStockType string) error { + r._globalStockType = _globalStockType + r.Set("global_stock_type", _globalStockType) + return nil +} + +// GlobalStockType Getter +func (r TaobaoItemUpdateAPIRequest) GetGlobalStockType() string { + return r._globalStockType +} +// GlobalStockCountry Setter +// 全球购商品采购地(地区/国家),默认值只在全球购商品采购地(库存类型选择情况生效),地区国家值为(美国, 香港, 日本, 英国, 新西兰, 德国, 韩国, 荷兰, 澳洲, 法国, 意大利, 台湾, 澳门, 加拿大, 瑞士, 西班牙, 泰国, 新加坡, 马来西亚, 菲律宾, 其他) +func (r *TaobaoItemUpdateAPIRequest) SetGlobalStockCountry(_globalStockCountry string) error { + r._globalStockCountry = _globalStockCountry + r.Set("global_stock_country", _globalStockCountry) + return nil +} + +// GlobalStockCountry Getter +func (r TaobaoItemUpdateAPIRequest) GetGlobalStockCountry() string { + return r._globalStockCountry +} +// GlobalStockDeliveryPlace Setter +// 全球购商品发货地,发货地现在有两种类型:“国内”和“海外及港澳台”,参数值为1时代表“国内”,值为2时代表“海外及港澳台” +func (r *TaobaoItemUpdateAPIRequest) SetGlobalStockDeliveryPlace(_globalStockDeliveryPlace string) error { + r._globalStockDeliveryPlace = _globalStockDeliveryPlace + r.Set("global_stock_delivery_place", _globalStockDeliveryPlace) + return nil +} + +// GlobalStockDeliveryPlace Getter +func (r TaobaoItemUpdateAPIRequest) GetGlobalStockDeliveryPlace() string { + return r._globalStockDeliveryPlace +} +// GlobalStockTaxFreePromise Setter +// 全球购商品卖家包税承诺,当值为true时,代表卖家承诺包税。 +func (r *TaobaoItemUpdateAPIRequest) SetGlobalStockTaxFreePromise(_globalStockTaxFreePromise bool) error { + r._globalStockTaxFreePromise = _globalStockTaxFreePromise + r.Set("global_stock_tax_free_promise", _globalStockTaxFreePromise) + return nil +} + +// GlobalStockTaxFreePromise Getter +func (r TaobaoItemUpdateAPIRequest) GetGlobalStockTaxFreePromise() bool { + return r._globalStockTaxFreePromise +} diff --git a/model/product/TaobaoItemUpdateAPIResponse.go b/model/product/TaobaoItemUpdateAPIResponse.go new file mode 100644 index 0000000000..a74aa31277 --- /dev/null +++ b/model/product/TaobaoItemUpdateAPIResponse.go @@ -0,0 +1,31 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新商品信息 API返回值 +taobao.item.update + +根据传入的num_iid更新对应的商品的数据。 +传入的num_iid所对应的商品必须属于当前会话的用户 +商品的属性和sku的属性有包含的关系,商品的价格要位于sku的价格区间之中(例如,sku价格有5元、10元两种,那么商品的价格就需要大于等于5元,小于等于10元,否则更新商品会失败) +商品的类目和商品的价格、sku的价格都有一定的相关性(具体的关系要通过类目属性查询接口获得) +当关键属性值更新为“其他”的时候,需要输入input_pids和input_str商品才能更新成功。该接口不支持产品属性修改。 +*/ +type TaobaoItemUpdateAPIResponse struct { + model.CommonResponse + TaobaoItemUpdateAPIResponseModel +} + +// 更新商品信息 成功返回结果 +type TaobaoItemUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"item_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品结构 + Item *Item `json:"item,omitempty" xml:"item,omitempty"` +} diff --git a/model/product/TaobaoItemUpdateDelistingAPIRequest.go b/model/product/TaobaoItemUpdateDelistingAPIRequest.go new file mode 100644 index 0000000000..2529c333e3 --- /dev/null +++ b/model/product/TaobaoItemUpdateDelistingAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品下架 API请求 +taobao.item.update.delisting + +* 单个商品下架
* 输入的num_iid必须属于当前会话用户 +*/ +type TaobaoItemUpdateDelistingAPIRequest struct { + model.Params + // 商品数字ID,该参数必须 + _numIid int64 +} + +// 初始化TaobaoItemUpdateDelistingAPIRequest对象 +func NewTaobaoItemUpdateDelistingRequest() *TaobaoItemUpdateDelistingAPIRequest{ + return &TaobaoItemUpdateDelistingAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemUpdateDelistingAPIRequest) GetApiMethodName() string { + return "taobao.item.update.delisting" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemUpdateDelistingAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NumIid Setter +// 商品数字ID,该参数必须 +func (r *TaobaoItemUpdateDelistingAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemUpdateDelistingAPIRequest) GetNumIid() int64 { + return r._numIid +} diff --git a/model/product/TaobaoItemUpdateDelistingAPIResponse.go b/model/product/TaobaoItemUpdateDelistingAPIResponse.go new file mode 100644 index 0000000000..e5463ca2ab --- /dev/null +++ b/model/product/TaobaoItemUpdateDelistingAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品下架 API返回值 +taobao.item.update.delisting + +* 单个商品下架
* 输入的num_iid必须属于当前会话用户 +*/ +type TaobaoItemUpdateDelistingAPIResponse struct { + model.CommonResponse + TaobaoItemUpdateDelistingAPIResponseModel +} + +// 商品下架 成功返回结果 +type TaobaoItemUpdateDelistingAPIResponseModel struct { + XMLName xml.Name `xml:"item_update_delisting_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回商品更新信息:返回的结果是:num_iid和modified + Item *Item `json:"item,omitempty" xml:"item,omitempty"` +} diff --git a/model/product/TaobaoItemUpdateDelistingResponse.go b/model/product/TaobaoItemUpdateDelistingResponse.go deleted file mode 100644 index 6e3d64e752..0000000000 --- a/model/product/TaobaoItemUpdateDelistingResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品下架 API返回值 -taobao.item.update.delisting - -* 单个商品下架
* 输入的num_iid必须属于当前会话用户 -*/ -type TaobaoItemUpdateDelistingAPIResponse struct { - model.CommonResponse - TaobaoItemUpdateDelistingResponse -} - -// 商品下架 成功返回结果 -type TaobaoItemUpdateDelistingResponse struct { - XMLName xml.Name `xml:"item_update_delisting_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回商品更新信息:返回的结果是:num_iid和modified - Item *Item `json:"item,omitempty" xml:"item,omitempty"` -} diff --git a/model/product/TaobaoItemUpdateDelistingTmallAPIRequest.go b/model/product/TaobaoItemUpdateDelistingTmallAPIRequest.go new file mode 100644 index 0000000000..f7e67219f0 --- /dev/null +++ b/model/product/TaobaoItemUpdateDelistingTmallAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +taobao.item.update.delisting.tmall API请求 +taobao.item.update.delisting.tmall + +* 单个商品下架
* 输入的num_iid必须属于当前会话用户 +*/ +type TaobaoItemUpdateDelistingTmallAPIRequest struct { + model.Params + // 商品数字ID,该参数必须 + _numIid int64 +} + +// 初始化TaobaoItemUpdateDelistingTmallAPIRequest对象 +func NewTaobaoItemUpdateDelistingTmallRequest() *TaobaoItemUpdateDelistingTmallAPIRequest{ + return &TaobaoItemUpdateDelistingTmallAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemUpdateDelistingTmallAPIRequest) GetApiMethodName() string { + return "taobao.item.update.delisting.tmall" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemUpdateDelistingTmallAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NumIid Setter +// 商品数字ID,该参数必须 +func (r *TaobaoItemUpdateDelistingTmallAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemUpdateDelistingTmallAPIRequest) GetNumIid() int64 { + return r._numIid +} diff --git a/model/product/TaobaoItemUpdateDelistingTmallAPIResponse.go b/model/product/TaobaoItemUpdateDelistingTmallAPIResponse.go new file mode 100644 index 0000000000..14f2dc09eb --- /dev/null +++ b/model/product/TaobaoItemUpdateDelistingTmallAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +taobao.item.update.delisting.tmall API返回值 +taobao.item.update.delisting.tmall + +* 单个商品下架
* 输入的num_iid必须属于当前会话用户 +*/ +type TaobaoItemUpdateDelistingTmallAPIResponse struct { + model.CommonResponse + TaobaoItemUpdateDelistingTmallAPIResponseModel +} + +// taobao.item.update.delisting.tmall 成功返回结果 +type TaobaoItemUpdateDelistingTmallAPIResponseModel struct { + XMLName xml.Name `xml:"item_update_delisting_tmall_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回商品更新信息:返回的结果是:num_iid和modified + Item *Item `json:"item,omitempty" xml:"item,omitempty"` +} diff --git a/model/product/TaobaoItemUpdateDelistingTmallResponse.go b/model/product/TaobaoItemUpdateDelistingTmallResponse.go deleted file mode 100644 index 617140a931..0000000000 --- a/model/product/TaobaoItemUpdateDelistingTmallResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -taobao.item.update.delisting.tmall API返回值 -taobao.item.update.delisting.tmall - -* 单个商品下架
* 输入的num_iid必须属于当前会话用户 -*/ -type TaobaoItemUpdateDelistingTmallAPIResponse struct { - model.CommonResponse - TaobaoItemUpdateDelistingTmallResponse -} - -// taobao.item.update.delisting.tmall 成功返回结果 -type TaobaoItemUpdateDelistingTmallResponse struct { - XMLName xml.Name `xml:"item_update_delisting_tmall_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回商品更新信息:返回的结果是:num_iid和modified - Item *Item `json:"item,omitempty" xml:"item,omitempty"` -} diff --git a/model/product/TaobaoItemUpdateListingAPIRequest.go b/model/product/TaobaoItemUpdateListingAPIRequest.go new file mode 100644 index 0000000000..1bab2cac55 --- /dev/null +++ b/model/product/TaobaoItemUpdateListingAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +一口价商品上架 API请求 +taobao.item.update.listing + +* 单个商品上架
* 输入的num_iid必须属于当前会话用户 +*/ +type TaobaoItemUpdateListingAPIRequest struct { + model.Params + // 商品数字ID,该参数必须 + _numIid int64 + // 需要上架的商品的数量。取值范围:大于零的整数。如果商品有sku,则上架数量默认为所有sku数量总和,不可修改。否则商品数量根据设置数量调整为num + _num int64 +} + +// 初始化TaobaoItemUpdateListingAPIRequest对象 +func NewTaobaoItemUpdateListingRequest() *TaobaoItemUpdateListingAPIRequest{ + return &TaobaoItemUpdateListingAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemUpdateListingAPIRequest) GetApiMethodName() string { + return "taobao.item.update.listing" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemUpdateListingAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NumIid Setter +// 商品数字ID,该参数必须 +func (r *TaobaoItemUpdateListingAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemUpdateListingAPIRequest) GetNumIid() int64 { + return r._numIid +} +// Num Setter +// 需要上架的商品的数量。取值范围:大于零的整数。如果商品有sku,则上架数量默认为所有sku数量总和,不可修改。否则商品数量根据设置数量调整为num +func (r *TaobaoItemUpdateListingAPIRequest) SetNum(_num int64) error { + r._num = _num + r.Set("num", _num) + return nil +} + +// Num Getter +func (r TaobaoItemUpdateListingAPIRequest) GetNum() int64 { + return r._num +} diff --git a/model/product/TaobaoItemUpdateListingAPIResponse.go b/model/product/TaobaoItemUpdateListingAPIResponse.go new file mode 100644 index 0000000000..df50fe4e32 --- /dev/null +++ b/model/product/TaobaoItemUpdateListingAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +一口价商品上架 API返回值 +taobao.item.update.listing + +* 单个商品上架
* 输入的num_iid必须属于当前会话用户 +*/ +type TaobaoItemUpdateListingAPIResponse struct { + model.CommonResponse + TaobaoItemUpdateListingAPIResponseModel +} + +// 一口价商品上架 成功返回结果 +type TaobaoItemUpdateListingAPIResponseModel struct { + XMLName xml.Name `xml:"item_update_listing_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 上架后返回的商品信息:返回的结果就是:num_iid和modified + Item *Item `json:"item,omitempty" xml:"item,omitempty"` +} diff --git a/model/product/TaobaoItemUpdateListingResponse.go b/model/product/TaobaoItemUpdateListingResponse.go deleted file mode 100644 index 8b63d52056..0000000000 --- a/model/product/TaobaoItemUpdateListingResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -一口价商品上架 API返回值 -taobao.item.update.listing - -* 单个商品上架
* 输入的num_iid必须属于当前会话用户 -*/ -type TaobaoItemUpdateListingAPIResponse struct { - model.CommonResponse - TaobaoItemUpdateListingResponse -} - -// 一口价商品上架 成功返回结果 -type TaobaoItemUpdateListingResponse struct { - XMLName xml.Name `xml:"item_update_listing_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 上架后返回的商品信息:返回的结果就是:num_iid和modified - Item *Item `json:"item,omitempty" xml:"item,omitempty"` -} diff --git a/model/product/TaobaoItemUpdateListingTmallAPIRequest.go b/model/product/TaobaoItemUpdateListingTmallAPIRequest.go new file mode 100644 index 0000000000..f04bd13b21 --- /dev/null +++ b/model/product/TaobaoItemUpdateListingTmallAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +taobao.item.update.listing天猫分流 API请求 +taobao.item.update.listing.tmall + +* 单个商品上架
* 输入的num_iid必须属于当前会话用户 +*/ +type TaobaoItemUpdateListingTmallAPIRequest struct { + model.Params + // 商品数字ID,该参数必须 + _numIid int64 + // 需要上架的商品的数量。取值范围:大于零的整数。如果商品有sku,则上架数量默认为所有sku数量总和,不可修改。否则商品数量根据设置数量调整为num + _num int64 +} + +// 初始化TaobaoItemUpdateListingTmallAPIRequest对象 +func NewTaobaoItemUpdateListingTmallRequest() *TaobaoItemUpdateListingTmallAPIRequest{ + return &TaobaoItemUpdateListingTmallAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemUpdateListingTmallAPIRequest) GetApiMethodName() string { + return "taobao.item.update.listing.tmall" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemUpdateListingTmallAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NumIid Setter +// 商品数字ID,该参数必须 +func (r *TaobaoItemUpdateListingTmallAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoItemUpdateListingTmallAPIRequest) GetNumIid() int64 { + return r._numIid +} +// Num Setter +// 需要上架的商品的数量。取值范围:大于零的整数。如果商品有sku,则上架数量默认为所有sku数量总和,不可修改。否则商品数量根据设置数量调整为num +func (r *TaobaoItemUpdateListingTmallAPIRequest) SetNum(_num int64) error { + r._num = _num + r.Set("num", _num) + return nil +} + +// Num Getter +func (r TaobaoItemUpdateListingTmallAPIRequest) GetNum() int64 { + return r._num +} diff --git a/model/product/TaobaoItemUpdateListingTmallAPIResponse.go b/model/product/TaobaoItemUpdateListingTmallAPIResponse.go new file mode 100644 index 0000000000..2e5057b2c0 --- /dev/null +++ b/model/product/TaobaoItemUpdateListingTmallAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +taobao.item.update.listing天猫分流 API返回值 +taobao.item.update.listing.tmall + +* 单个商品上架
* 输入的num_iid必须属于当前会话用户 +*/ +type TaobaoItemUpdateListingTmallAPIResponse struct { + model.CommonResponse + TaobaoItemUpdateListingTmallAPIResponseModel +} + +// taobao.item.update.listing天猫分流 成功返回结果 +type TaobaoItemUpdateListingTmallAPIResponseModel struct { + XMLName xml.Name `xml:"item_update_listing_tmall_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 上架后返回的商品信息:返回的结果就是:num_iid和modified + Item *Item `json:"item,omitempty" xml:"item,omitempty"` +} diff --git a/model/product/TaobaoItemUpdateListingTmallResponse.go b/model/product/TaobaoItemUpdateListingTmallResponse.go deleted file mode 100644 index 9999828f46..0000000000 --- a/model/product/TaobaoItemUpdateListingTmallResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -taobao.item.update.listing天猫分流 API返回值 -taobao.item.update.listing.tmall - -* 单个商品上架
* 输入的num_iid必须属于当前会话用户 -*/ -type TaobaoItemUpdateListingTmallAPIResponse struct { - model.CommonResponse - TaobaoItemUpdateListingTmallResponse -} - -// taobao.item.update.listing天猫分流 成功返回结果 -type TaobaoItemUpdateListingTmallResponse struct { - XMLName xml.Name `xml:"item_update_listing_tmall_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 上架后返回的商品信息:返回的结果就是:num_iid和modified - Item *Item `json:"item,omitempty" xml:"item,omitempty"` -} diff --git a/model/product/TaobaoItemUpdateResponse.go b/model/product/TaobaoItemUpdateResponse.go deleted file mode 100644 index df7cc9c8ec..0000000000 --- a/model/product/TaobaoItemUpdateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新商品信息 API返回值 -taobao.item.update - -根据传入的num_iid更新对应的商品的数据。 -传入的num_iid所对应的商品必须属于当前会话的用户 -商品的属性和sku的属性有包含的关系,商品的价格要位于sku的价格区间之中(例如,sku价格有5元、10元两种,那么商品的价格就需要大于等于5元,小于等于10元,否则更新商品会失败) -商品的类目和商品的价格、sku的价格都有一定的相关性(具体的关系要通过类目属性查询接口获得) -当关键属性值更新为“其他”的时候,需要输入input_pids和input_str商品才能更新成功。该接口不支持产品属性修改。 -*/ -type TaobaoItemUpdateAPIResponse struct { - model.CommonResponse - TaobaoItemUpdateResponse -} - -// 更新商品信息 成功返回结果 -type TaobaoItemUpdateResponse struct { - XMLName xml.Name `xml:"item_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品结构 - Item *Item `json:"item,omitempty" xml:"item,omitempty"` -} diff --git a/model/product/TaobaoItemsCustomGetAPIRequest.go b/model/product/TaobaoItemsCustomGetAPIRequest.go new file mode 100644 index 0000000000..43d25f39cc --- /dev/null +++ b/model/product/TaobaoItemsCustomGetAPIRequest.go @@ -0,0 +1,67 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据外部ID取商品 API请求 +taobao.items.custom.get + +跟据卖家设定的商品外部id获取商品,只能获取授权卖家的商品 +
点击查看更多商品API说明 +*/ +type TaobaoItemsCustomGetAPIRequest struct { + model.Params + // 商品的外部商品ID,支持批量,最多不超过40个。 + _outerId string + // 需返回的字段列表,参考:Item商品结构体说明,其中barcode、sku.barcode等条形码字段暂不支持;多个字段之间用“,”分隔。 + _fields string +} + +// 初始化TaobaoItemsCustomGetAPIRequest对象 +func NewTaobaoItemsCustomGetRequest() *TaobaoItemsCustomGetAPIRequest{ + return &TaobaoItemsCustomGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemsCustomGetAPIRequest) GetApiMethodName() string { + return "taobao.items.custom.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemsCustomGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterId Setter +// 商品的外部商品ID,支持批量,最多不超过40个。 +func (r *TaobaoItemsCustomGetAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoItemsCustomGetAPIRequest) GetOuterId() string { + return r._outerId +} +// Fields Setter +// 需返回的字段列表,参考:Item商品结构体说明,其中barcode、sku.barcode等条形码字段暂不支持;多个字段之间用“,”分隔。 +func (r *TaobaoItemsCustomGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoItemsCustomGetAPIRequest) GetFields() string { + return r._fields +} diff --git a/model/product/TaobaoItemsCustomGetAPIResponse.go b/model/product/TaobaoItemsCustomGetAPIResponse.go new file mode 100644 index 0000000000..460a0cbc1e --- /dev/null +++ b/model/product/TaobaoItemsCustomGetAPIResponse.go @@ -0,0 +1,28 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据外部ID取商品 API返回值 +taobao.items.custom.get + +跟据卖家设定的商品外部id获取商品,只能获取授权卖家的商品 +
点击查看更多商品API说明 +*/ +type TaobaoItemsCustomGetAPIResponse struct { + model.CommonResponse + TaobaoItemsCustomGetAPIResponseModel +} + +// 根据外部ID取商品 成功返回结果 +type TaobaoItemsCustomGetAPIResponseModel struct { + XMLName xml.Name `xml:"items_custom_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品列表,具体返回字段以fields决定 + Items []Item `json:"items,omitempty" xml:"items>item,omitempty"` +} diff --git a/model/product/TaobaoItemsCustomGetResponse.go b/model/product/TaobaoItemsCustomGetResponse.go deleted file mode 100644 index dc5b565f73..0000000000 --- a/model/product/TaobaoItemsCustomGetResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据外部ID取商品 API返回值 -taobao.items.custom.get - -跟据卖家设定的商品外部id获取商品,只能获取授权卖家的商品 -
点击查看更多商品API说明 -*/ -type TaobaoItemsCustomGetAPIResponse struct { - model.CommonResponse - TaobaoItemsCustomGetResponse -} - -// 根据外部ID取商品 成功返回结果 -type TaobaoItemsCustomGetResponse struct { - XMLName xml.Name `xml:"items_custom_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品列表,具体返回字段以fields决定 - Items []Item `json:"items,omitempty" xml:"items>item,omitempty"` -} diff --git a/model/product/TaobaoItemsInventoryGetAPIRequest.go b/model/product/TaobaoItemsInventoryGetAPIRequest.go new file mode 100644 index 0000000000..0d1755b44c --- /dev/null +++ b/model/product/TaobaoItemsInventoryGetAPIRequest.go @@ -0,0 +1,236 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +得到当前会话用户库存中的商品列表 API请求 +taobao.items.inventory.get + +获取当前用户作为卖家的仓库中的商品列表,并能根据传入的搜索条件对仓库中的商品列表进行过滤 +只能获得商品的部分信息,商品的详细信息请通过taobao.item.seller.get获取
+点击查看更多商品API说明 +*/ +type TaobaoItemsInventoryGetAPIRequest struct { + model.Params + // 需返回的字段列表。可选值为 Item 商品结构体中的以下字段: approve_status,num_iid,title,nick,type,cid,pic_url,num,props,valid_thru, list_time,price,has_discount,has_invoice,has_warranty,has_showcase, modified,delist_time,postage_id,seller_cids,outer_id;字段之间用“,”分隔。
不支持其他字段,如果需要获取其他字段数据,调用taobao.item.seller.get。 + _fields string + // 搜索字段。搜索商品的title。 + _q string + // 分类字段。可选值:
regular_shelved(定时上架)
never_on_shelf(从未上架)
off_shelf(我下架的)
for_shelved(等待所有上架)
sold_out(全部卖完)
violation_off_shelf(违规下架的)
默认查询for_shelved(等待所有上架)这个状态的商品
注:for_shelved(等待所有上架)=regular_shelved(定时上架)+never_on_shelf(从未上架)+off_shelf(我下架的) + _banner string + // 商品类目ID。ItemCat中的cid字段。可以通过taobao.itemcats.get取到 + _cid int64 + // 卖家店铺内自定义类目ID。多个之间用“,”分隔。可以根据taobao.sellercats.list.get获得.(注:目前最多支持32个ID号传入) + _sellerCids string + // 页码。取值范围:大于零小于等于101的整数;默认值为1,即返回第一页数据。当页码超过101页时系统就会报错,故请大家在用此接口获取数据时尽可能的细化自己的搜索条件,例如根据修改时间分段获取商品。 + _pageNo int64 + // 每页条数。取值范围:大于零的整数;最大值:200;默认值:40。 + _pageSize int64 + // 是否参与会员折扣。可选值:true,false。默认不过滤该条件 + _hasDiscount bool + // 排序方式。格式为column:asc/desc ,column可选值:list_time(上架时间),delist_time(下架时间),num(商品数量),modified(最近修改时间);默认上架时间降序(即最新上架排在前面)。如按照上架时间降序排序方式为list_time:desc + _orderBy string + // 商品是否在淘宝显示 + _isTaobao bool + // 商品是否在外部网店显示 + _isEx bool + // 商品起始修改时间 + _startModified string + // 商品结束修改时间 + _endModified string + // 商品类型:a-拍卖,b-一口价 + _auctionType string +} + +// 初始化TaobaoItemsInventoryGetAPIRequest对象 +func NewTaobaoItemsInventoryGetRequest() *TaobaoItemsInventoryGetAPIRequest{ + return &TaobaoItemsInventoryGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemsInventoryGetAPIRequest) GetApiMethodName() string { + return "taobao.items.inventory.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemsInventoryGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需返回的字段列表。可选值为 Item 商品结构体中的以下字段: approve_status,num_iid,title,nick,type,cid,pic_url,num,props,valid_thru, list_time,price,has_discount,has_invoice,has_warranty,has_showcase, modified,delist_time,postage_id,seller_cids,outer_id;字段之间用“,”分隔。
不支持其他字段,如果需要获取其他字段数据,调用taobao.item.seller.get。 +func (r *TaobaoItemsInventoryGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoItemsInventoryGetAPIRequest) GetFields() string { + return r._fields +} +// Q Setter +// 搜索字段。搜索商品的title。 +func (r *TaobaoItemsInventoryGetAPIRequest) SetQ(_q string) error { + r._q = _q + r.Set("q", _q) + return nil +} + +// Q Getter +func (r TaobaoItemsInventoryGetAPIRequest) GetQ() string { + return r._q +} +// Banner Setter +// 分类字段。可选值:
regular_shelved(定时上架)
never_on_shelf(从未上架)
off_shelf(我下架的)
for_shelved(等待所有上架)
sold_out(全部卖完)
violation_off_shelf(违规下架的)
默认查询for_shelved(等待所有上架)这个状态的商品
注:for_shelved(等待所有上架)=regular_shelved(定时上架)+never_on_shelf(从未上架)+off_shelf(我下架的) +func (r *TaobaoItemsInventoryGetAPIRequest) SetBanner(_banner string) error { + r._banner = _banner + r.Set("banner", _banner) + return nil +} + +// Banner Getter +func (r TaobaoItemsInventoryGetAPIRequest) GetBanner() string { + return r._banner +} +// Cid Setter +// 商品类目ID。ItemCat中的cid字段。可以通过taobao.itemcats.get取到 +func (r *TaobaoItemsInventoryGetAPIRequest) SetCid(_cid int64) error { + r._cid = _cid + r.Set("cid", _cid) + return nil +} + +// Cid Getter +func (r TaobaoItemsInventoryGetAPIRequest) GetCid() int64 { + return r._cid +} +// SellerCids Setter +// 卖家店铺内自定义类目ID。多个之间用“,”分隔。可以根据taobao.sellercats.list.get获得.(注:目前最多支持32个ID号传入) +func (r *TaobaoItemsInventoryGetAPIRequest) SetSellerCids(_sellerCids string) error { + r._sellerCids = _sellerCids + r.Set("seller_cids", _sellerCids) + return nil +} + +// SellerCids Getter +func (r TaobaoItemsInventoryGetAPIRequest) GetSellerCids() string { + return r._sellerCids +} +// PageNo Setter +// 页码。取值范围:大于零小于等于101的整数;默认值为1,即返回第一页数据。当页码超过101页时系统就会报错,故请大家在用此接口获取数据时尽可能的细化自己的搜索条件,例如根据修改时间分段获取商品。 +func (r *TaobaoItemsInventoryGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoItemsInventoryGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数。取值范围:大于零的整数;最大值:200;默认值:40。 +func (r *TaobaoItemsInventoryGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoItemsInventoryGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// HasDiscount Setter +// 是否参与会员折扣。可选值:true,false。默认不过滤该条件 +func (r *TaobaoItemsInventoryGetAPIRequest) SetHasDiscount(_hasDiscount bool) error { + r._hasDiscount = _hasDiscount + r.Set("has_discount", _hasDiscount) + return nil +} + +// HasDiscount Getter +func (r TaobaoItemsInventoryGetAPIRequest) GetHasDiscount() bool { + return r._hasDiscount +} +// OrderBy Setter +// 排序方式。格式为column:asc/desc ,column可选值:list_time(上架时间),delist_time(下架时间),num(商品数量),modified(最近修改时间);默认上架时间降序(即最新上架排在前面)。如按照上架时间降序排序方式为list_time:desc +func (r *TaobaoItemsInventoryGetAPIRequest) SetOrderBy(_orderBy string) error { + r._orderBy = _orderBy + r.Set("order_by", _orderBy) + return nil +} + +// OrderBy Getter +func (r TaobaoItemsInventoryGetAPIRequest) GetOrderBy() string { + return r._orderBy +} +// IsTaobao Setter +// 商品是否在淘宝显示 +func (r *TaobaoItemsInventoryGetAPIRequest) SetIsTaobao(_isTaobao bool) error { + r._isTaobao = _isTaobao + r.Set("is_taobao", _isTaobao) + return nil +} + +// IsTaobao Getter +func (r TaobaoItemsInventoryGetAPIRequest) GetIsTaobao() bool { + return r._isTaobao +} +// IsEx Setter +// 商品是否在外部网店显示 +func (r *TaobaoItemsInventoryGetAPIRequest) SetIsEx(_isEx bool) error { + r._isEx = _isEx + r.Set("is_ex", _isEx) + return nil +} + +// IsEx Getter +func (r TaobaoItemsInventoryGetAPIRequest) GetIsEx() bool { + return r._isEx +} +// StartModified Setter +// 商品起始修改时间 +func (r *TaobaoItemsInventoryGetAPIRequest) SetStartModified(_startModified string) error { + r._startModified = _startModified + r.Set("start_modified", _startModified) + return nil +} + +// StartModified Getter +func (r TaobaoItemsInventoryGetAPIRequest) GetStartModified() string { + return r._startModified +} +// EndModified Setter +// 商品结束修改时间 +func (r *TaobaoItemsInventoryGetAPIRequest) SetEndModified(_endModified string) error { + r._endModified = _endModified + r.Set("end_modified", _endModified) + return nil +} + +// EndModified Getter +func (r TaobaoItemsInventoryGetAPIRequest) GetEndModified() string { + return r._endModified +} +// AuctionType Setter +// 商品类型:a-拍卖,b-一口价 +func (r *TaobaoItemsInventoryGetAPIRequest) SetAuctionType(_auctionType string) error { + r._auctionType = _auctionType + r.Set("auction_type", _auctionType) + return nil +} + +// AuctionType Getter +func (r TaobaoItemsInventoryGetAPIRequest) GetAuctionType() string { + return r._auctionType +} diff --git a/model/product/TaobaoItemsInventoryGetAPIResponse.go b/model/product/TaobaoItemsInventoryGetAPIResponse.go new file mode 100644 index 0000000000..990ea5c702 --- /dev/null +++ b/model/product/TaobaoItemsInventoryGetAPIResponse.go @@ -0,0 +1,31 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +得到当前会话用户库存中的商品列表 API返回值 +taobao.items.inventory.get + +获取当前用户作为卖家的仓库中的商品列表,并能根据传入的搜索条件对仓库中的商品列表进行过滤 +只能获得商品的部分信息,商品的详细信息请通过taobao.item.seller.get获取
+点击查看更多商品API说明 +*/ +type TaobaoItemsInventoryGetAPIResponse struct { + model.CommonResponse + TaobaoItemsInventoryGetAPIResponseModel +} + +// 得到当前会话用户库存中的商品列表 成功返回结果 +type TaobaoItemsInventoryGetAPIResponseModel struct { + XMLName xml.Name `xml:"items_inventory_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 搜索到底商品列表,具体字段根据设定的fields决定,不包括desc,stuff_status字段 + Items []Item `json:"items,omitempty" xml:"items>item,omitempty"` + // 搜索到符合条件的结果总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/product/TaobaoItemsInventoryGetResponse.go b/model/product/TaobaoItemsInventoryGetResponse.go deleted file mode 100644 index 55c98f72a3..0000000000 --- a/model/product/TaobaoItemsInventoryGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -得到当前会话用户库存中的商品列表 API返回值 -taobao.items.inventory.get - -获取当前用户作为卖家的仓库中的商品列表,并能根据传入的搜索条件对仓库中的商品列表进行过滤 -只能获得商品的部分信息,商品的详细信息请通过taobao.item.seller.get获取
-点击查看更多商品API说明 -*/ -type TaobaoItemsInventoryGetAPIResponse struct { - model.CommonResponse - TaobaoItemsInventoryGetResponse -} - -// 得到当前会话用户库存中的商品列表 成功返回结果 -type TaobaoItemsInventoryGetResponse struct { - XMLName xml.Name `xml:"items_inventory_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 搜索到底商品列表,具体字段根据设定的fields决定,不包括desc,stuff_status字段 - Items []Item `json:"items,omitempty" xml:"items>item,omitempty"` - // 搜索到符合条件的结果总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/product/TaobaoItemsOnsaleGetAPIRequest.go b/model/product/TaobaoItemsOnsaleGetAPIRequest.go new file mode 100644 index 0000000000..6ef93b9a20 --- /dev/null +++ b/model/product/TaobaoItemsOnsaleGetAPIRequest.go @@ -0,0 +1,264 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取当前会话用户出售中的商品列表 API请求 +taobao.items.onsale.get + +获取当前用户作为卖家的出售中的商品列表,并能根据传入的搜索条件对出售中的商品列表进行过滤 +只能获得商品的部分信息,商品的详细信息请通过taobao.item.seller.get 获取 +
点击查看更多商品API说明 +*/ +type TaobaoItemsOnsaleGetAPIRequest struct { + model.Params + // 需返回的字段列表。可选值:Item商品结构体中的以下字段: approve_status,num_iid,title,nick,type,cid,pic_url,num,props,valid_thru,list_time,price,has_discount,has_invoice,has_warranty,has_showcase,modified,delist_time,postage_id,seller_cids,outer_id,sold_quantity ;字段之间用“,”分隔。不支持其他字段,如果需要获取其他字段数据,调用taobao.item.seller.get 获取。 + _fields string + // 搜索字段。搜索商品的title。 + _q string + // 商品类目ID。ItemCat中的cid字段。可以通过taobao.itemcats.get取到 + _cid int64 + // 卖家店铺内自定义类目ID。多个之间用“,”分隔。可以根据taobao.sellercats.list.get获得.(注:目前最多支持32个ID号传入) + _sellerCids string + // 页码。取值范围:大于零的整数。默认值为1,即默认返回第一页数据。用此接口获取数据时,当翻页获取的条数(page_no*page_size)超过10万,为了保护后台搜索引擎,接口将报错。所以请大家尽可能的细化自己的搜索条件,例如根据修改时间分段获取商品 + _pageNo int64 + // 是否参与会员折扣。可选值:true,false。默认不过滤该条件 + _hasDiscount bool + // 是否橱窗推荐。 可选值:true,false。默认不过滤该条件 + _hasShowcase bool + // 排序方式。格式为column:asc/desc ,column可选值:list_time(上架时间),delist_time(下架时间),num(商品数量),modified(最近修改时间),sold_quantity(商品销量),;默认上架时间降序(即最新上架排在前面)。如按照上架时间降序排序方式为list_time:desc + _orderBy string + // 商品是否在淘宝显示 + _isTaobao bool + // 商品是否在外部网店显示 + _isEx bool + // 每页条数。取值范围:大于零的整数;最大值:200;默认值:40。用此接口获取数据时,当翻页获取的条数(page_no*page_size)超过2万,为了保护后台搜索引擎,接口将报错。所以请大家尽可能的细化自己的搜索条件,例如根据修改时间分段获取商品 + _pageSize int64 + // 起始的修改时间 + _startModified string + // 结束的修改时间 + _endModified string + // 是否挂接了达尔文标准产品体系 + _isCspu bool + // 组合商品 + _isCombine bool + // 商品类型:a-拍卖,b-一口价 + _auctionType string +} + +// 初始化TaobaoItemsOnsaleGetAPIRequest对象 +func NewTaobaoItemsOnsaleGetRequest() *TaobaoItemsOnsaleGetAPIRequest{ + return &TaobaoItemsOnsaleGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemsOnsaleGetAPIRequest) GetApiMethodName() string { + return "taobao.items.onsale.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemsOnsaleGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需返回的字段列表。可选值:Item商品结构体中的以下字段: approve_status,num_iid,title,nick,type,cid,pic_url,num,props,valid_thru,list_time,price,has_discount,has_invoice,has_warranty,has_showcase,modified,delist_time,postage_id,seller_cids,outer_id,sold_quantity ;字段之间用“,”分隔。不支持其他字段,如果需要获取其他字段数据,调用taobao.item.seller.get 获取。 +func (r *TaobaoItemsOnsaleGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoItemsOnsaleGetAPIRequest) GetFields() string { + return r._fields +} +// Q Setter +// 搜索字段。搜索商品的title。 +func (r *TaobaoItemsOnsaleGetAPIRequest) SetQ(_q string) error { + r._q = _q + r.Set("q", _q) + return nil +} + +// Q Getter +func (r TaobaoItemsOnsaleGetAPIRequest) GetQ() string { + return r._q +} +// Cid Setter +// 商品类目ID。ItemCat中的cid字段。可以通过taobao.itemcats.get取到 +func (r *TaobaoItemsOnsaleGetAPIRequest) SetCid(_cid int64) error { + r._cid = _cid + r.Set("cid", _cid) + return nil +} + +// Cid Getter +func (r TaobaoItemsOnsaleGetAPIRequest) GetCid() int64 { + return r._cid +} +// SellerCids Setter +// 卖家店铺内自定义类目ID。多个之间用“,”分隔。可以根据taobao.sellercats.list.get获得.(注:目前最多支持32个ID号传入) +func (r *TaobaoItemsOnsaleGetAPIRequest) SetSellerCids(_sellerCids string) error { + r._sellerCids = _sellerCids + r.Set("seller_cids", _sellerCids) + return nil +} + +// SellerCids Getter +func (r TaobaoItemsOnsaleGetAPIRequest) GetSellerCids() string { + return r._sellerCids +} +// PageNo Setter +// 页码。取值范围:大于零的整数。默认值为1,即默认返回第一页数据。用此接口获取数据时,当翻页获取的条数(page_no*page_size)超过10万,为了保护后台搜索引擎,接口将报错。所以请大家尽可能的细化自己的搜索条件,例如根据修改时间分段获取商品 +func (r *TaobaoItemsOnsaleGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoItemsOnsaleGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// HasDiscount Setter +// 是否参与会员折扣。可选值:true,false。默认不过滤该条件 +func (r *TaobaoItemsOnsaleGetAPIRequest) SetHasDiscount(_hasDiscount bool) error { + r._hasDiscount = _hasDiscount + r.Set("has_discount", _hasDiscount) + return nil +} + +// HasDiscount Getter +func (r TaobaoItemsOnsaleGetAPIRequest) GetHasDiscount() bool { + return r._hasDiscount +} +// HasShowcase Setter +// 是否橱窗推荐。 可选值:true,false。默认不过滤该条件 +func (r *TaobaoItemsOnsaleGetAPIRequest) SetHasShowcase(_hasShowcase bool) error { + r._hasShowcase = _hasShowcase + r.Set("has_showcase", _hasShowcase) + return nil +} + +// HasShowcase Getter +func (r TaobaoItemsOnsaleGetAPIRequest) GetHasShowcase() bool { + return r._hasShowcase +} +// OrderBy Setter +// 排序方式。格式为column:asc/desc ,column可选值:list_time(上架时间),delist_time(下架时间),num(商品数量),modified(最近修改时间),sold_quantity(商品销量),;默认上架时间降序(即最新上架排在前面)。如按照上架时间降序排序方式为list_time:desc +func (r *TaobaoItemsOnsaleGetAPIRequest) SetOrderBy(_orderBy string) error { + r._orderBy = _orderBy + r.Set("order_by", _orderBy) + return nil +} + +// OrderBy Getter +func (r TaobaoItemsOnsaleGetAPIRequest) GetOrderBy() string { + return r._orderBy +} +// IsTaobao Setter +// 商品是否在淘宝显示 +func (r *TaobaoItemsOnsaleGetAPIRequest) SetIsTaobao(_isTaobao bool) error { + r._isTaobao = _isTaobao + r.Set("is_taobao", _isTaobao) + return nil +} + +// IsTaobao Getter +func (r TaobaoItemsOnsaleGetAPIRequest) GetIsTaobao() bool { + return r._isTaobao +} +// IsEx Setter +// 商品是否在外部网店显示 +func (r *TaobaoItemsOnsaleGetAPIRequest) SetIsEx(_isEx bool) error { + r._isEx = _isEx + r.Set("is_ex", _isEx) + return nil +} + +// IsEx Getter +func (r TaobaoItemsOnsaleGetAPIRequest) GetIsEx() bool { + return r._isEx +} +// PageSize Setter +// 每页条数。取值范围:大于零的整数;最大值:200;默认值:40。用此接口获取数据时,当翻页获取的条数(page_no*page_size)超过2万,为了保护后台搜索引擎,接口将报错。所以请大家尽可能的细化自己的搜索条件,例如根据修改时间分段获取商品 +func (r *TaobaoItemsOnsaleGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoItemsOnsaleGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// StartModified Setter +// 起始的修改时间 +func (r *TaobaoItemsOnsaleGetAPIRequest) SetStartModified(_startModified string) error { + r._startModified = _startModified + r.Set("start_modified", _startModified) + return nil +} + +// StartModified Getter +func (r TaobaoItemsOnsaleGetAPIRequest) GetStartModified() string { + return r._startModified +} +// EndModified Setter +// 结束的修改时间 +func (r *TaobaoItemsOnsaleGetAPIRequest) SetEndModified(_endModified string) error { + r._endModified = _endModified + r.Set("end_modified", _endModified) + return nil +} + +// EndModified Getter +func (r TaobaoItemsOnsaleGetAPIRequest) GetEndModified() string { + return r._endModified +} +// IsCspu Setter +// 是否挂接了达尔文标准产品体系 +func (r *TaobaoItemsOnsaleGetAPIRequest) SetIsCspu(_isCspu bool) error { + r._isCspu = _isCspu + r.Set("is_cspu", _isCspu) + return nil +} + +// IsCspu Getter +func (r TaobaoItemsOnsaleGetAPIRequest) GetIsCspu() bool { + return r._isCspu +} +// IsCombine Setter +// 组合商品 +func (r *TaobaoItemsOnsaleGetAPIRequest) SetIsCombine(_isCombine bool) error { + r._isCombine = _isCombine + r.Set("is_combine", _isCombine) + return nil +} + +// IsCombine Getter +func (r TaobaoItemsOnsaleGetAPIRequest) GetIsCombine() bool { + return r._isCombine +} +// AuctionType Setter +// 商品类型:a-拍卖,b-一口价 +func (r *TaobaoItemsOnsaleGetAPIRequest) SetAuctionType(_auctionType string) error { + r._auctionType = _auctionType + r.Set("auction_type", _auctionType) + return nil +} + +// AuctionType Getter +func (r TaobaoItemsOnsaleGetAPIRequest) GetAuctionType() string { + return r._auctionType +} diff --git a/model/product/TaobaoItemsOnsaleGetAPIResponse.go b/model/product/TaobaoItemsOnsaleGetAPIResponse.go new file mode 100644 index 0000000000..7562d64450 --- /dev/null +++ b/model/product/TaobaoItemsOnsaleGetAPIResponse.go @@ -0,0 +1,31 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取当前会话用户出售中的商品列表 API返回值 +taobao.items.onsale.get + +获取当前用户作为卖家的出售中的商品列表,并能根据传入的搜索条件对出售中的商品列表进行过滤 +只能获得商品的部分信息,商品的详细信息请通过taobao.item.seller.get 获取 +
点击查看更多商品API说明 +*/ +type TaobaoItemsOnsaleGetAPIResponse struct { + model.CommonResponse + TaobaoItemsOnsaleGetAPIResponseModel +} + +// 获取当前会话用户出售中的商品列表 成功返回结果 +type TaobaoItemsOnsaleGetAPIResponseModel struct { + XMLName xml.Name `xml:"items_onsale_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 搜索到的商品列表,具体字段根据设定的fields决定,不包括desc字段 + Items []Item `json:"items,omitempty" xml:"items>item,omitempty"` + // 搜索到符合条件的结果总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/product/TaobaoItemsOnsaleGetResponse.go b/model/product/TaobaoItemsOnsaleGetResponse.go deleted file mode 100644 index 3a263f993a..0000000000 --- a/model/product/TaobaoItemsOnsaleGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取当前会话用户出售中的商品列表 API返回值 -taobao.items.onsale.get - -获取当前用户作为卖家的出售中的商品列表,并能根据传入的搜索条件对出售中的商品列表进行过滤 -只能获得商品的部分信息,商品的详细信息请通过taobao.item.seller.get 获取 -
点击查看更多商品API说明 -*/ -type TaobaoItemsOnsaleGetAPIResponse struct { - model.CommonResponse - TaobaoItemsOnsaleGetResponse -} - -// 获取当前会话用户出售中的商品列表 成功返回结果 -type TaobaoItemsOnsaleGetResponse struct { - XMLName xml.Name `xml:"items_onsale_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 搜索到的商品列表,具体字段根据设定的fields决定,不包括desc字段 - Items []Item `json:"items,omitempty" xml:"items>item,omitempty"` - // 搜索到符合条件的结果总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/product/TaobaoItemsSellerListGetAPIRequest.go b/model/product/TaobaoItemsSellerListGetAPIRequest.go new file mode 100644 index 0000000000..5cedf32f81 --- /dev/null +++ b/model/product/TaobaoItemsSellerListGetAPIRequest.go @@ -0,0 +1,67 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取商品详细信息 API请求 +taobao.items.seller.list.get + +批量获取商品详细信息 +
点击查看更多商品API说明 +*/ +type TaobaoItemsSellerListGetAPIRequest struct { + model.Params + // 需要返回的商品字段列表。可选值:点击返回结果中的Item结构体中能展示出来的所有字段,多个字段用“,”分隔。注:返回所有sku信息的字段名称是sku而不是skus。 + _fields string + // 商品ID列表,多个ID用半角逗号隔开,一次最多不超过20个。注:获取不存在的商品ID或获取别人的商品都不会报错,但没有商品数据返回。 + _numIids []string +} + +// 初始化TaobaoItemsSellerListGetAPIRequest对象 +func NewTaobaoItemsSellerListGetRequest() *TaobaoItemsSellerListGetAPIRequest{ + return &TaobaoItemsSellerListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoItemsSellerListGetAPIRequest) GetApiMethodName() string { + return "taobao.items.seller.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoItemsSellerListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的商品字段列表。可选值:点击返回结果中的Item结构体中能展示出来的所有字段,多个字段用“,”分隔。注:返回所有sku信息的字段名称是sku而不是skus。 +func (r *TaobaoItemsSellerListGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoItemsSellerListGetAPIRequest) GetFields() string { + return r._fields +} +// NumIids Setter +// 商品ID列表,多个ID用半角逗号隔开,一次最多不超过20个。注:获取不存在的商品ID或获取别人的商品都不会报错,但没有商品数据返回。 +func (r *TaobaoItemsSellerListGetAPIRequest) SetNumIids(_numIids []string) error { + r._numIids = _numIids + r.Set("num_iids", _numIids) + return nil +} + +// NumIids Getter +func (r TaobaoItemsSellerListGetAPIRequest) GetNumIids() []string { + return r._numIids +} diff --git a/model/product/TaobaoItemsSellerListGetAPIResponse.go b/model/product/TaobaoItemsSellerListGetAPIResponse.go new file mode 100644 index 0000000000..57fe09a19e --- /dev/null +++ b/model/product/TaobaoItemsSellerListGetAPIResponse.go @@ -0,0 +1,28 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取商品详细信息 API返回值 +taobao.items.seller.list.get + +批量获取商品详细信息 +
点击查看更多商品API说明 +*/ +type TaobaoItemsSellerListGetAPIResponse struct { + model.CommonResponse + TaobaoItemsSellerListGetAPIResponseModel +} + +// 批量获取商品详细信息 成功返回结果 +type TaobaoItemsSellerListGetAPIResponseModel struct { + XMLName xml.Name `xml:"items_seller_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品详细信息列表 + Items []Item `json:"items,omitempty" xml:"items>item,omitempty"` +} diff --git a/model/product/TaobaoItemsSellerListGetResponse.go b/model/product/TaobaoItemsSellerListGetResponse.go deleted file mode 100644 index 437c490374..0000000000 --- a/model/product/TaobaoItemsSellerListGetResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量获取商品详细信息 API返回值 -taobao.items.seller.list.get - -批量获取商品详细信息 -
点击查看更多商品API说明 -*/ -type TaobaoItemsSellerListGetAPIResponse struct { - model.CommonResponse - TaobaoItemsSellerListGetResponse -} - -// 批量获取商品详细信息 成功返回结果 -type TaobaoItemsSellerListGetResponse struct { - XMLName xml.Name `xml:"items_seller_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品详细信息列表 - Items []Item `json:"items,omitempty" xml:"items>item,omitempty"` -} diff --git a/model/product/TaobaoMiniappItemsGetAPIRequest.go b/model/product/TaobaoMiniappItemsGetAPIRequest.go new file mode 100644 index 0000000000..028b529a76 --- /dev/null +++ b/model/product/TaobaoMiniappItemsGetAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取商品信息 API请求 +taobao.miniapp.items.get + +获取商品公开属性,只允许在商家应用环境中使用 +*/ +type TaobaoMiniappItemsGetAPIRequest struct { + model.Params + // 商品数字id列表,多个num_iid用逗号隔开,一次不超过50个。 + _numIids []string + // 需要返回的商品对象字段。可选值:Item商品结构体中字段均可返回(其中item_weight,item_size,sold_quantity暂未返回);多个字段用“,”分隔。如果想返回整个子对象,fields设置相应字段,如itemimg;如果想返回子对象里面的某个字段,那字段设为某个值,如itemimg.url。 + _fields []string +} + +// 初始化TaobaoMiniappItemsGetAPIRequest对象 +func NewTaobaoMiniappItemsGetRequest() *TaobaoMiniappItemsGetAPIRequest{ + return &TaobaoMiniappItemsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappItemsGetAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.items.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappItemsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NumIids Setter +// 商品数字id列表,多个num_iid用逗号隔开,一次不超过50个。 +func (r *TaobaoMiniappItemsGetAPIRequest) SetNumIids(_numIids []string) error { + r._numIids = _numIids + r.Set("num_iids", _numIids) + return nil +} + +// NumIids Getter +func (r TaobaoMiniappItemsGetAPIRequest) GetNumIids() []string { + return r._numIids +} +// Fields Setter +// 需要返回的商品对象字段。可选值:Item商品结构体中字段均可返回(其中item_weight,item_size,sold_quantity暂未返回);多个字段用“,”分隔。如果想返回整个子对象,fields设置相应字段,如itemimg;如果想返回子对象里面的某个字段,那字段设为某个值,如itemimg.url。 +func (r *TaobaoMiniappItemsGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoMiniappItemsGetAPIRequest) GetFields() []string { + return r._fields +} diff --git a/model/product/TaobaoMiniappItemsGetAPIResponse.go b/model/product/TaobaoMiniappItemsGetAPIResponse.go new file mode 100644 index 0000000000..5a71ca0fa5 --- /dev/null +++ b/model/product/TaobaoMiniappItemsGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取商品信息 API返回值 +taobao.miniapp.items.get + +获取商品公开属性,只允许在商家应用环境中使用 +*/ +type TaobaoMiniappItemsGetAPIResponse struct { + model.CommonResponse + TaobaoMiniappItemsGetAPIResponseModel +} + +// 批量获取商品信息 成功返回结果 +type TaobaoMiniappItemsGetAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_items_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Item(商品)结构 + Items []Item `json:"items,omitempty" xml:"items>item,omitempty"` +} diff --git a/model/product/TaobaoMiniappItemsGetResponse.go b/model/product/TaobaoMiniappItemsGetResponse.go deleted file mode 100644 index 344ca90bc7..0000000000 --- a/model/product/TaobaoMiniappItemsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量获取商品信息 API返回值 -taobao.miniapp.items.get - -获取商品公开属性,只允许在商家应用环境中使用 -*/ -type TaobaoMiniappItemsGetAPIResponse struct { - model.CommonResponse - TaobaoMiniappItemsGetResponse -} - -// 批量获取商品信息 成功返回结果 -type TaobaoMiniappItemsGetResponse struct { - XMLName xml.Name `xml:"miniapp_items_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Item(商品)结构 - Items []Item `json:"items,omitempty" xml:"items>item,omitempty"` -} diff --git a/model/product/TaobaoProductAddAPIRequest.go b/model/product/TaobaoProductAddAPIRequest.go new file mode 100644 index 0000000000..e53e2c6f90 --- /dev/null +++ b/model/product/TaobaoProductAddAPIRequest.go @@ -0,0 +1,234 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传一个产品,不包括产品非主图和属性图片 API请求 +taobao.product.add + +获取类目ID,必需是叶子类目ID;调用taobao.itemcats.get.v2获取
传入关键属性,结构:pid:vid;pid:vid.调用taobao.itemprops.get.v2获取pid,
调用taobao.itempropvalues.get获取vid;如果碰到用户自定义属性,请用customer_props.
新增:套装产品发布,目前支持单件多个即 A*2 形式的套装 +*/ +type TaobaoProductAddAPIRequest struct { + model.Params + // native_unkeyprops + _nativeUnkeyprops string + // 商品类目ID.调用taobao.itemcats.get获取;注意:必须是叶子类目 id. + _cid int64 + // 外部产品ID + _outerId string + // 关键属性 结构:pid:vid;pid:vid.调用taobao.itemprops.get获取pid,调用taobao.itempropvalues.get获取vid;如果碰到用户自定义属性,请用customer_props. + _props string + // 非关键属性结构:pid:vid;pid:vid.
非关键属性不包含关键属性、销售属性、用户自定义属性、商品属性;
调用taobao.itemprops.get获取pid,调用taobao.itempropvalues.get获取vid.
注:支持最大长度为512字节 + _binds string + // 销售属性结构:pid:vid;pid:vid.调用taobao.itemprops.get获取is_sale_prop=true的pid,调用taobao.itempropvalues.get获取vid. + _saleProps string + // 用户自定义属性,结构:pid1:value1;pid2:value2,如果有型号,系列等子属性用: 隔开 例如:“20000:优衣库:型号:001;632501:1234”,表示“品牌:优衣库:型号:001;货号:1234”
注:包含所有自定义属性的传入 + _customerProps string + // 产品市场价.精确到2位小数;单位为元.如:200.07 + _price string + // 产品主图片.最大1M,目前仅支持GIF,JPG. + _image *model.File + // 产品名称,最大30个字符. + _name string + // 产品描述.最大不超过25000个字符 + _desc string + // 是不是主图 + _major bool + // 上市时间。目前只支持鞋城类目传入此参数 + _marketTime string + // 销售属性值别名。格式为pid1:vid1:alias1;pid1:vid2:alia2。只有少数销售属性值支持传入别名,比如颜色和尺寸 + _propertyAlias string +} + +// 初始化TaobaoProductAddAPIRequest对象 +func NewTaobaoProductAddRequest() *TaobaoProductAddAPIRequest{ + return &TaobaoProductAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoProductAddAPIRequest) GetApiMethodName() string { + return "taobao.product.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoProductAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NativeUnkeyprops Setter +// native_unkeyprops +func (r *TaobaoProductAddAPIRequest) SetNativeUnkeyprops(_nativeUnkeyprops string) error { + r._nativeUnkeyprops = _nativeUnkeyprops + r.Set("native_unkeyprops", _nativeUnkeyprops) + return nil +} + +// NativeUnkeyprops Getter +func (r TaobaoProductAddAPIRequest) GetNativeUnkeyprops() string { + return r._nativeUnkeyprops +} +// Cid Setter +// 商品类目ID.调用taobao.itemcats.get获取;注意:必须是叶子类目 id. +func (r *TaobaoProductAddAPIRequest) SetCid(_cid int64) error { + r._cid = _cid + r.Set("cid", _cid) + return nil +} + +// Cid Getter +func (r TaobaoProductAddAPIRequest) GetCid() int64 { + return r._cid +} +// OuterId Setter +// 外部产品ID +func (r *TaobaoProductAddAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoProductAddAPIRequest) GetOuterId() string { + return r._outerId +} +// Props Setter +// 关键属性 结构:pid:vid;pid:vid.调用taobao.itemprops.get获取pid,调用taobao.itempropvalues.get获取vid;如果碰到用户自定义属性,请用customer_props. +func (r *TaobaoProductAddAPIRequest) SetProps(_props string) error { + r._props = _props + r.Set("props", _props) + return nil +} + +// Props Getter +func (r TaobaoProductAddAPIRequest) GetProps() string { + return r._props +} +// Binds Setter +// 非关键属性结构:pid:vid;pid:vid.
非关键属性不包含关键属性、销售属性、用户自定义属性、商品属性;
调用taobao.itemprops.get获取pid,调用taobao.itempropvalues.get获取vid.
注:支持最大长度为512字节 +func (r *TaobaoProductAddAPIRequest) SetBinds(_binds string) error { + r._binds = _binds + r.Set("binds", _binds) + return nil +} + +// Binds Getter +func (r TaobaoProductAddAPIRequest) GetBinds() string { + return r._binds +} +// SaleProps Setter +// 销售属性结构:pid:vid;pid:vid.调用taobao.itemprops.get获取is_sale_prop=true的pid,调用taobao.itempropvalues.get获取vid. +func (r *TaobaoProductAddAPIRequest) SetSaleProps(_saleProps string) error { + r._saleProps = _saleProps + r.Set("sale_props", _saleProps) + return nil +} + +// SaleProps Getter +func (r TaobaoProductAddAPIRequest) GetSaleProps() string { + return r._saleProps +} +// CustomerProps Setter +// 用户自定义属性,结构:pid1:value1;pid2:value2,如果有型号,系列等子属性用: 隔开 例如:“20000:优衣库:型号:001;632501:1234”,表示“品牌:优衣库:型号:001;货号:1234”
注:包含所有自定义属性的传入 +func (r *TaobaoProductAddAPIRequest) SetCustomerProps(_customerProps string) error { + r._customerProps = _customerProps + r.Set("customer_props", _customerProps) + return nil +} + +// CustomerProps Getter +func (r TaobaoProductAddAPIRequest) GetCustomerProps() string { + return r._customerProps +} +// Price Setter +// 产品市场价.精确到2位小数;单位为元.如:200.07 +func (r *TaobaoProductAddAPIRequest) SetPrice(_price string) error { + r._price = _price + r.Set("price", _price) + return nil +} + +// Price Getter +func (r TaobaoProductAddAPIRequest) GetPrice() string { + return r._price +} +// Image Setter +// 产品主图片.最大1M,目前仅支持GIF,JPG. +func (r *TaobaoProductAddAPIRequest) SetImage(_image *model.File) error { + r._image = _image + r.Set("image", _image) + return nil +} + +// Image Getter +func (r TaobaoProductAddAPIRequest) GetImage() *model.File { + return r._image +} +// Name Setter +// 产品名称,最大30个字符. +func (r *TaobaoProductAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoProductAddAPIRequest) GetName() string { + return r._name +} +// Desc Setter +// 产品描述.最大不超过25000个字符 +func (r *TaobaoProductAddAPIRequest) SetDesc(_desc string) error { + r._desc = _desc + r.Set("desc", _desc) + return nil +} + +// Desc Getter +func (r TaobaoProductAddAPIRequest) GetDesc() string { + return r._desc +} +// Major Setter +// 是不是主图 +func (r *TaobaoProductAddAPIRequest) SetMajor(_major bool) error { + r._major = _major + r.Set("major", _major) + return nil +} + +// Major Getter +func (r TaobaoProductAddAPIRequest) GetMajor() bool { + return r._major +} +// MarketTime Setter +// 上市时间。目前只支持鞋城类目传入此参数 +func (r *TaobaoProductAddAPIRequest) SetMarketTime(_marketTime string) error { + r._marketTime = _marketTime + r.Set("market_time", _marketTime) + return nil +} + +// MarketTime Getter +func (r TaobaoProductAddAPIRequest) GetMarketTime() string { + return r._marketTime +} +// PropertyAlias Setter +// 销售属性值别名。格式为pid1:vid1:alias1;pid1:vid2:alia2。只有少数销售属性值支持传入别名,比如颜色和尺寸 +func (r *TaobaoProductAddAPIRequest) SetPropertyAlias(_propertyAlias string) error { + r._propertyAlias = _propertyAlias + r.Set("property_alias", _propertyAlias) + return nil +} + +// PropertyAlias Getter +func (r TaobaoProductAddAPIRequest) GetPropertyAlias() string { + return r._propertyAlias +} diff --git a/model/product/TaobaoProductAddAPIResponse.go b/model/product/TaobaoProductAddAPIResponse.go new file mode 100644 index 0000000000..eff93cb387 --- /dev/null +++ b/model/product/TaobaoProductAddAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传一个产品,不包括产品非主图和属性图片 API返回值 +taobao.product.add + +获取类目ID,必需是叶子类目ID;调用taobao.itemcats.get.v2获取
传入关键属性,结构:pid:vid;pid:vid.调用taobao.itemprops.get.v2获取pid,
调用taobao.itempropvalues.get获取vid;如果碰到用户自定义属性,请用customer_props.
新增:套装产品发布,目前支持单件多个即 A*2 形式的套装 +*/ +type TaobaoProductAddAPIResponse struct { + model.CommonResponse + TaobaoProductAddAPIResponseModel +} + +// 上传一个产品,不包括产品非主图和属性图片 成功返回结果 +type TaobaoProductAddAPIResponseModel struct { + XMLName xml.Name `xml:"product_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 产品结构 + Product *Product `json:"product,omitempty" xml:"product,omitempty"` +} diff --git a/model/product/TaobaoProductAddResponse.go b/model/product/TaobaoProductAddResponse.go deleted file mode 100644 index cfd9c4a2a7..0000000000 --- a/model/product/TaobaoProductAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传一个产品,不包括产品非主图和属性图片 API返回值 -taobao.product.add - -获取类目ID,必需是叶子类目ID;调用taobao.itemcats.get.v2获取
传入关键属性,结构:pid:vid;pid:vid.调用taobao.itemprops.get.v2获取pid,
调用taobao.itempropvalues.get获取vid;如果碰到用户自定义属性,请用customer_props.
新增:套装产品发布,目前支持单件多个即 A*2 形式的套装 -*/ -type TaobaoProductAddAPIResponse struct { - model.CommonResponse - TaobaoProductAddResponse -} - -// 上传一个产品,不包括产品非主图和属性图片 成功返回结果 -type TaobaoProductAddResponse struct { - XMLName xml.Name `xml:"product_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 产品结构 - Product *Product `json:"product,omitempty" xml:"product,omitempty"` -} diff --git a/model/product/TaobaoProductGetAPIRequest.go b/model/product/TaobaoProductGetAPIRequest.go new file mode 100644 index 0000000000..6767b8ca9b --- /dev/null +++ b/model/product/TaobaoProductGetAPIRequest.go @@ -0,0 +1,97 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取一个产品的信息 API请求 +taobao.product.get + +天猫商家发布商品时,查询关联产品信息时使用,非商品查询接口。商品查询接口:taobao.item.seller.get
+两种方式查看一个产品详细信息: +传入product_id来查询;传入cid和props来查询 +
点击查看更多商品API说明 +*/ +type TaobaoProductGetAPIRequest struct { + model.Params + // 需返回的字段列表.可选值:Product数据结构中的所有字段;多个字段之间用","分隔. + _fields string + // Product的id.两种方式来查看一个产品:1.传入product_id来查询 2.传入cid和props来查询 + _productId int64 + // 商品类目id.调用taobao.itemcats.get获取;必须是叶子类目id,如果没有传product_id,那么cid和props必须要传. + _cid int64 + // 比如:诺基亚N73这个产品的关键属性列表就是:品牌:诺基亚;型号:N73,对应的PV值就是10005:10027;10006:29729. + _props string +} + +// 初始化TaobaoProductGetAPIRequest对象 +func NewTaobaoProductGetRequest() *TaobaoProductGetAPIRequest{ + return &TaobaoProductGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoProductGetAPIRequest) GetApiMethodName() string { + return "taobao.product.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoProductGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需返回的字段列表.可选值:Product数据结构中的所有字段;多个字段之间用","分隔. +func (r *TaobaoProductGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoProductGetAPIRequest) GetFields() string { + return r._fields +} +// ProductId Setter +// Product的id.两种方式来查看一个产品:1.传入product_id来查询 2.传入cid和props来查询 +func (r *TaobaoProductGetAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoProductGetAPIRequest) GetProductId() int64 { + return r._productId +} +// Cid Setter +// 商品类目id.调用taobao.itemcats.get获取;必须是叶子类目id,如果没有传product_id,那么cid和props必须要传. +func (r *TaobaoProductGetAPIRequest) SetCid(_cid int64) error { + r._cid = _cid + r.Set("cid", _cid) + return nil +} + +// Cid Getter +func (r TaobaoProductGetAPIRequest) GetCid() int64 { + return r._cid +} +// Props Setter +// 比如:诺基亚N73这个产品的关键属性列表就是:品牌:诺基亚;型号:N73,对应的PV值就是10005:10027;10006:29729. +func (r *TaobaoProductGetAPIRequest) SetProps(_props string) error { + r._props = _props + r.Set("props", _props) + return nil +} + +// Props Getter +func (r TaobaoProductGetAPIRequest) GetProps() string { + return r._props +} diff --git a/model/product/TaobaoProductGetAPIResponse.go b/model/product/TaobaoProductGetAPIResponse.go new file mode 100644 index 0000000000..845d8f8213 --- /dev/null +++ b/model/product/TaobaoProductGetAPIResponse.go @@ -0,0 +1,30 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取一个产品的信息 API返回值 +taobao.product.get + +天猫商家发布商品时,查询关联产品信息时使用,非商品查询接口。商品查询接口:taobao.item.seller.get
+两种方式查看一个产品详细信息: +传入product_id来查询;传入cid和props来查询 +
点击查看更多商品API说明 +*/ +type TaobaoProductGetAPIResponse struct { + model.CommonResponse + TaobaoProductGetAPIResponseModel +} + +// 获取一个产品的信息 成功返回结果 +type TaobaoProductGetAPIResponseModel struct { + XMLName xml.Name `xml:"product_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回具体信息为入参fields请求的字段信息 + Product *Product `json:"product,omitempty" xml:"product,omitempty"` +} diff --git a/model/product/TaobaoProductGetResponse.go b/model/product/TaobaoProductGetResponse.go deleted file mode 100644 index dde821c1ff..0000000000 --- a/model/product/TaobaoProductGetResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取一个产品的信息 API返回值 -taobao.product.get - -天猫商家发布商品时,查询关联产品信息时使用,非商品查询接口。商品查询接口:taobao.item.seller.get
-两种方式查看一个产品详细信息: -传入product_id来查询;传入cid和props来查询 -
点击查看更多商品API说明 -*/ -type TaobaoProductGetAPIResponse struct { - model.CommonResponse - TaobaoProductGetResponse -} - -// 获取一个产品的信息 成功返回结果 -type TaobaoProductGetResponse struct { - XMLName xml.Name `xml:"product_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回具体信息为入参fields请求的字段信息 - Product *Product `json:"product,omitempty" xml:"product,omitempty"` -} diff --git a/model/product/TaobaoProductImgUploadAPIRequest.go b/model/product/TaobaoProductImgUploadAPIRequest.go new file mode 100644 index 0000000000..db2ea5424a --- /dev/null +++ b/model/product/TaobaoProductImgUploadAPIRequest.go @@ -0,0 +1,108 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传单张产品非主图,如果需要传多张,可调多次 API请求 +taobao.product.img.upload + +1.传入产品ID
2.传入图片内容
注意:图片最大为500K,只支持JPG,GIF格式,如果需要传多张,可调多次 +*/ +type TaobaoProductImgUploadAPIRequest struct { + model.Params + // 产品图片ID.修改图片时需要传入 + _id int64 + // 产品ID.Product的id + _productId int64 + // 图片内容.图片最大为500K,只支持JPG,GIF格式. + _image *model.File + // 图片序号 + _position int64 + // 是否将该图片设为主图.可选值:true,false;默认值:false. + _isMajor bool +} + +// 初始化TaobaoProductImgUploadAPIRequest对象 +func NewTaobaoProductImgUploadRequest() *TaobaoProductImgUploadAPIRequest{ + return &TaobaoProductImgUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoProductImgUploadAPIRequest) GetApiMethodName() string { + return "taobao.product.img.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoProductImgUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 产品图片ID.修改图片时需要传入 +func (r *TaobaoProductImgUploadAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TaobaoProductImgUploadAPIRequest) GetId() int64 { + return r._id +} +// ProductId Setter +// 产品ID.Product的id +func (r *TaobaoProductImgUploadAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoProductImgUploadAPIRequest) GetProductId() int64 { + return r._productId +} +// Image Setter +// 图片内容.图片最大为500K,只支持JPG,GIF格式. +func (r *TaobaoProductImgUploadAPIRequest) SetImage(_image *model.File) error { + r._image = _image + r.Set("image", _image) + return nil +} + +// Image Getter +func (r TaobaoProductImgUploadAPIRequest) GetImage() *model.File { + return r._image +} +// Position Setter +// 图片序号 +func (r *TaobaoProductImgUploadAPIRequest) SetPosition(_position int64) error { + r._position = _position + r.Set("position", _position) + return nil +} + +// Position Getter +func (r TaobaoProductImgUploadAPIRequest) GetPosition() int64 { + return r._position +} +// IsMajor Setter +// 是否将该图片设为主图.可选值:true,false;默认值:false. +func (r *TaobaoProductImgUploadAPIRequest) SetIsMajor(_isMajor bool) error { + r._isMajor = _isMajor + r.Set("is_major", _isMajor) + return nil +} + +// IsMajor Getter +func (r TaobaoProductImgUploadAPIRequest) GetIsMajor() bool { + return r._isMajor +} diff --git a/model/product/TaobaoProductImgUploadAPIResponse.go b/model/product/TaobaoProductImgUploadAPIResponse.go new file mode 100644 index 0000000000..46b1339580 --- /dev/null +++ b/model/product/TaobaoProductImgUploadAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传单张产品非主图,如果需要传多张,可调多次 API返回值 +taobao.product.img.upload + +1.传入产品ID
2.传入图片内容
注意:图片最大为500K,只支持JPG,GIF格式,如果需要传多张,可调多次 +*/ +type TaobaoProductImgUploadAPIResponse struct { + model.CommonResponse + TaobaoProductImgUploadAPIResponseModel +} + +// 上传单张产品非主图,如果需要传多张,可调多次 成功返回结果 +type TaobaoProductImgUploadAPIResponseModel struct { + XMLName xml.Name `xml:"product_img_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回产品图片结构中的:url,id,created,modified + ProductImg *ProductImg `json:"product_img,omitempty" xml:"product_img,omitempty"` +} diff --git a/model/product/TaobaoProductImgUploadResponse.go b/model/product/TaobaoProductImgUploadResponse.go deleted file mode 100644 index 0324d4ca9d..0000000000 --- a/model/product/TaobaoProductImgUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传单张产品非主图,如果需要传多张,可调多次 API返回值 -taobao.product.img.upload - -1.传入产品ID
2.传入图片内容
注意:图片最大为500K,只支持JPG,GIF格式,如果需要传多张,可调多次 -*/ -type TaobaoProductImgUploadAPIResponse struct { - model.CommonResponse - TaobaoProductImgUploadResponse -} - -// 上传单张产品非主图,如果需要传多张,可调多次 成功返回结果 -type TaobaoProductImgUploadResponse struct { - XMLName xml.Name `xml:"product_img_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回产品图片结构中的:url,id,created,modified - ProductImg *ProductImg `json:"product_img,omitempty" xml:"product_img,omitempty"` -} diff --git a/model/product/TaobaoProductPropimgUploadAPIRequest.go b/model/product/TaobaoProductPropimgUploadAPIRequest.go new file mode 100644 index 0000000000..5aa54c0397 --- /dev/null +++ b/model/product/TaobaoProductPropimgUploadAPIRequest.go @@ -0,0 +1,108 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传单张产品属性图片,如果需要传多张,可调多次 API请求 +taobao.product.propimg.upload + +传入产品ID
传入props,目前仅支持颜色属性.调用taobao.itemprops.get.v2取得颜色属性pid,
再用taobao.itempropvalues.get取得vid;格式:pid:vid,只能传入一个颜色pid:vid串;
传入图片内容
注意:图片最大为2M,只支持JPG,GIF,如果需要传多张,可调多次 +*/ +type TaobaoProductPropimgUploadAPIRequest struct { + model.Params + // 产品属性图片ID + _id int64 + // 产品ID.Product的id + _productId int64 + // 属性串.目前仅支持颜色属性.调用taobao.itemprops.get获取类目属性,取得颜色属性pid,再用taobao.itempropvalues.get取得vid;格式:pid:vid,只能传入一个颜色pid:vid串; + _props string + // 图片内容.图片最大为2M,只支持JPG,GIF. + _image *model.File + // 图片序号 + _position int64 +} + +// 初始化TaobaoProductPropimgUploadAPIRequest对象 +func NewTaobaoProductPropimgUploadRequest() *TaobaoProductPropimgUploadAPIRequest{ + return &TaobaoProductPropimgUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoProductPropimgUploadAPIRequest) GetApiMethodName() string { + return "taobao.product.propimg.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoProductPropimgUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 产品属性图片ID +func (r *TaobaoProductPropimgUploadAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TaobaoProductPropimgUploadAPIRequest) GetId() int64 { + return r._id +} +// ProductId Setter +// 产品ID.Product的id +func (r *TaobaoProductPropimgUploadAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoProductPropimgUploadAPIRequest) GetProductId() int64 { + return r._productId +} +// Props Setter +// 属性串.目前仅支持颜色属性.调用taobao.itemprops.get获取类目属性,取得颜色属性pid,再用taobao.itempropvalues.get取得vid;格式:pid:vid,只能传入一个颜色pid:vid串; +func (r *TaobaoProductPropimgUploadAPIRequest) SetProps(_props string) error { + r._props = _props + r.Set("props", _props) + return nil +} + +// Props Getter +func (r TaobaoProductPropimgUploadAPIRequest) GetProps() string { + return r._props +} +// Image Setter +// 图片内容.图片最大为2M,只支持JPG,GIF. +func (r *TaobaoProductPropimgUploadAPIRequest) SetImage(_image *model.File) error { + r._image = _image + r.Set("image", _image) + return nil +} + +// Image Getter +func (r TaobaoProductPropimgUploadAPIRequest) GetImage() *model.File { + return r._image +} +// Position Setter +// 图片序号 +func (r *TaobaoProductPropimgUploadAPIRequest) SetPosition(_position int64) error { + r._position = _position + r.Set("position", _position) + return nil +} + +// Position Getter +func (r TaobaoProductPropimgUploadAPIRequest) GetPosition() int64 { + return r._position +} diff --git a/model/product/TaobaoProductPropimgUploadAPIResponse.go b/model/product/TaobaoProductPropimgUploadAPIResponse.go new file mode 100644 index 0000000000..fc49e93afe --- /dev/null +++ b/model/product/TaobaoProductPropimgUploadAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传单张产品属性图片,如果需要传多张,可调多次 API返回值 +taobao.product.propimg.upload + +传入产品ID
传入props,目前仅支持颜色属性.调用taobao.itemprops.get.v2取得颜色属性pid,
再用taobao.itempropvalues.get取得vid;格式:pid:vid,只能传入一个颜色pid:vid串;
传入图片内容
注意:图片最大为2M,只支持JPG,GIF,如果需要传多张,可调多次 +*/ +type TaobaoProductPropimgUploadAPIResponse struct { + model.CommonResponse + TaobaoProductPropimgUploadAPIResponseModel +} + +// 上传单张产品属性图片,如果需要传多张,可调多次 成功返回结果 +type TaobaoProductPropimgUploadAPIResponseModel struct { + XMLName xml.Name `xml:"product_propimg_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 支持返回产品属性图片中的:url,id,created,modified + ProductPropImg *ProductPropImg `json:"product_prop_img,omitempty" xml:"product_prop_img,omitempty"` +} diff --git a/model/product/TaobaoProductPropimgUploadResponse.go b/model/product/TaobaoProductPropimgUploadResponse.go deleted file mode 100644 index 5a3b885c28..0000000000 --- a/model/product/TaobaoProductPropimgUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传单张产品属性图片,如果需要传多张,可调多次 API返回值 -taobao.product.propimg.upload - -传入产品ID
传入props,目前仅支持颜色属性.调用taobao.itemprops.get.v2取得颜色属性pid,
再用taobao.itempropvalues.get取得vid;格式:pid:vid,只能传入一个颜色pid:vid串;
传入图片内容
注意:图片最大为2M,只支持JPG,GIF,如果需要传多张,可调多次 -*/ -type TaobaoProductPropimgUploadAPIResponse struct { - model.CommonResponse - TaobaoProductPropimgUploadResponse -} - -// 上传单张产品属性图片,如果需要传多张,可调多次 成功返回结果 -type TaobaoProductPropimgUploadResponse struct { - XMLName xml.Name `xml:"product_propimg_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 支持返回产品属性图片中的:url,id,created,modified - ProductPropImg *ProductPropImg `json:"product_prop_img,omitempty" xml:"product_prop_img,omitempty"` -} diff --git a/model/product/TaobaoProductUpdateAPIRequest.go b/model/product/TaobaoProductUpdateAPIRequest.go new file mode 100644 index 0000000000..3c66b5cc4d --- /dev/null +++ b/model/product/TaobaoProductUpdateAPIRequest.go @@ -0,0 +1,178 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改一个产品,可以修改主图,不能修改子图片 API请求 +taobao.product.update + +传入产品ID
可修改字段:outer_id,binds,sale_props,name,price,desc,image
注意:1.可以修改主图,不能修改子图片,主图最大500K,目前仅支持GIF,JPG
2.商城卖家产品发布24小时后不能作删除或修改操作 +*/ +type TaobaoProductUpdateAPIRequest struct { + model.Params + // 产品ID + _productId int64 + // 外部产品ID + _outerId string + // 非关键属性.调用taobao.itemprops.get获取pid,调用taobao.itempropvalues.get获取vid;格式:pid:vid;pid:vid + _binds string + // 销售属性.调用taobao.itemprops.get获取pid,调用taobao.itempropvalues.get获取vid;格式:pid:vid;pid:vid + _saleProps string + // 产品市场价.精确到2位小数;单位为元.如:200.07 + _price string + // 产品描述.最大不超过25000个字符 + _desc string + // 产品主图.最大500K,目前仅支持GIF,JPG + _image *model.File + // 产品名称.最大不超过30个字符 + _name string + // 是否是主图 + _major bool + // 自定义非关键属性 + _nativeUnkeyprops string +} + +// 初始化TaobaoProductUpdateAPIRequest对象 +func NewTaobaoProductUpdateRequest() *TaobaoProductUpdateAPIRequest{ + return &TaobaoProductUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoProductUpdateAPIRequest) GetApiMethodName() string { + return "taobao.product.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoProductUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品ID +func (r *TaobaoProductUpdateAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoProductUpdateAPIRequest) GetProductId() int64 { + return r._productId +} +// OuterId Setter +// 外部产品ID +func (r *TaobaoProductUpdateAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoProductUpdateAPIRequest) GetOuterId() string { + return r._outerId +} +// Binds Setter +// 非关键属性.调用taobao.itemprops.get获取pid,调用taobao.itempropvalues.get获取vid;格式:pid:vid;pid:vid +func (r *TaobaoProductUpdateAPIRequest) SetBinds(_binds string) error { + r._binds = _binds + r.Set("binds", _binds) + return nil +} + +// Binds Getter +func (r TaobaoProductUpdateAPIRequest) GetBinds() string { + return r._binds +} +// SaleProps Setter +// 销售属性.调用taobao.itemprops.get获取pid,调用taobao.itempropvalues.get获取vid;格式:pid:vid;pid:vid +func (r *TaobaoProductUpdateAPIRequest) SetSaleProps(_saleProps string) error { + r._saleProps = _saleProps + r.Set("sale_props", _saleProps) + return nil +} + +// SaleProps Getter +func (r TaobaoProductUpdateAPIRequest) GetSaleProps() string { + return r._saleProps +} +// Price Setter +// 产品市场价.精确到2位小数;单位为元.如:200.07 +func (r *TaobaoProductUpdateAPIRequest) SetPrice(_price string) error { + r._price = _price + r.Set("price", _price) + return nil +} + +// Price Getter +func (r TaobaoProductUpdateAPIRequest) GetPrice() string { + return r._price +} +// Desc Setter +// 产品描述.最大不超过25000个字符 +func (r *TaobaoProductUpdateAPIRequest) SetDesc(_desc string) error { + r._desc = _desc + r.Set("desc", _desc) + return nil +} + +// Desc Getter +func (r TaobaoProductUpdateAPIRequest) GetDesc() string { + return r._desc +} +// Image Setter +// 产品主图.最大500K,目前仅支持GIF,JPG +func (r *TaobaoProductUpdateAPIRequest) SetImage(_image *model.File) error { + r._image = _image + r.Set("image", _image) + return nil +} + +// Image Getter +func (r TaobaoProductUpdateAPIRequest) GetImage() *model.File { + return r._image +} +// Name Setter +// 产品名称.最大不超过30个字符 +func (r *TaobaoProductUpdateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoProductUpdateAPIRequest) GetName() string { + return r._name +} +// Major Setter +// 是否是主图 +func (r *TaobaoProductUpdateAPIRequest) SetMajor(_major bool) error { + r._major = _major + r.Set("major", _major) + return nil +} + +// Major Getter +func (r TaobaoProductUpdateAPIRequest) GetMajor() bool { + return r._major +} +// NativeUnkeyprops Setter +// 自定义非关键属性 +func (r *TaobaoProductUpdateAPIRequest) SetNativeUnkeyprops(_nativeUnkeyprops string) error { + r._nativeUnkeyprops = _nativeUnkeyprops + r.Set("native_unkeyprops", _nativeUnkeyprops) + return nil +} + +// NativeUnkeyprops Getter +func (r TaobaoProductUpdateAPIRequest) GetNativeUnkeyprops() string { + return r._nativeUnkeyprops +} diff --git a/model/product/TaobaoProductUpdateAPIResponse.go b/model/product/TaobaoProductUpdateAPIResponse.go new file mode 100644 index 0000000000..d1ca4fb1c4 --- /dev/null +++ b/model/product/TaobaoProductUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改一个产品,可以修改主图,不能修改子图片 API返回值 +taobao.product.update + +传入产品ID
可修改字段:outer_id,binds,sale_props,name,price,desc,image
注意:1.可以修改主图,不能修改子图片,主图最大500K,目前仅支持GIF,JPG
2.商城卖家产品发布24小时后不能作删除或修改操作 +*/ +type TaobaoProductUpdateAPIResponse struct { + model.CommonResponse + TaobaoProductUpdateAPIResponseModel +} + +// 修改一个产品,可以修改主图,不能修改子图片 成功返回结果 +type TaobaoProductUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"product_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回product数据结构中的:product_id,modified + Product *Product `json:"product,omitempty" xml:"product,omitempty"` +} diff --git a/model/product/TaobaoProductUpdateResponse.go b/model/product/TaobaoProductUpdateResponse.go deleted file mode 100644 index 82ad21fb8a..0000000000 --- a/model/product/TaobaoProductUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改一个产品,可以修改主图,不能修改子图片 API返回值 -taobao.product.update - -传入产品ID
可修改字段:outer_id,binds,sale_props,name,price,desc,image
注意:1.可以修改主图,不能修改子图片,主图最大500K,目前仅支持GIF,JPG
2.商城卖家产品发布24小时后不能作删除或修改操作 -*/ -type TaobaoProductUpdateAPIResponse struct { - model.CommonResponse - TaobaoProductUpdateResponse -} - -// 修改一个产品,可以修改主图,不能修改子图片 成功返回结果 -type TaobaoProductUpdateResponse struct { - XMLName xml.Name `xml:"product_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回product数据结构中的:product_id,modified - Product *Product `json:"product,omitempty" xml:"product,omitempty"` -} diff --git a/model/product/TaobaoProductsGetAPIRequest.go b/model/product/TaobaoProductsGetAPIRequest.go new file mode 100644 index 0000000000..a74b69af9b --- /dev/null +++ b/model/product/TaobaoProductsGetAPIRequest.go @@ -0,0 +1,95 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取产品列表 API请求 +taobao.products.get + +根据淘宝会员帐号搜索所有产品信息,推荐使用taobao.products.search +注意:支持分页,每页最多返回100条,默认值为40,页码从1开始,默认为第一页 +*/ +type TaobaoProductsGetAPIRequest struct { + model.Params + // 需返回的字段列表.可选值:Product数据结构中的所有字段;多个字段之间用","分隔 + _fields []string + // 用户昵称 + _nick string + // 页码.传入值为1代表第一页,传入值为2代表第二页,依此类推.默认返回的数据是从第一页开始. + _pageNo int64 + // 每页条数.每页返回最多返回100条,默认值为40 + _pageSize int64 +} + +// 初始化TaobaoProductsGetAPIRequest对象 +func NewTaobaoProductsGetRequest() *TaobaoProductsGetAPIRequest{ + return &TaobaoProductsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoProductsGetAPIRequest) GetApiMethodName() string { + return "taobao.products.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoProductsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需返回的字段列表.可选值:Product数据结构中的所有字段;多个字段之间用","分隔 +func (r *TaobaoProductsGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoProductsGetAPIRequest) GetFields() []string { + return r._fields +} +// Nick Setter +// 用户昵称 +func (r *TaobaoProductsGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoProductsGetAPIRequest) GetNick() string { + return r._nick +} +// PageNo Setter +// 页码.传入值为1代表第一页,传入值为2代表第二页,依此类推.默认返回的数据是从第一页开始. +func (r *TaobaoProductsGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoProductsGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数.每页返回最多返回100条,默认值为40 +func (r *TaobaoProductsGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoProductsGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/product/TaobaoProductsGetAPIResponse.go b/model/product/TaobaoProductsGetAPIResponse.go new file mode 100644 index 0000000000..2228b0cbfa --- /dev/null +++ b/model/product/TaobaoProductsGetAPIResponse.go @@ -0,0 +1,28 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取产品列表 API返回值 +taobao.products.get + +根据淘宝会员帐号搜索所有产品信息,推荐使用taobao.products.search +注意:支持分页,每页最多返回100条,默认值为40,页码从1开始,默认为第一页 +*/ +type TaobaoProductsGetAPIResponse struct { + model.CommonResponse + TaobaoProductsGetAPIResponseModel +} + +// 获取产品列表 成功返回结果 +type TaobaoProductsGetAPIResponseModel struct { + XMLName xml.Name `xml:"products_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回具体信息为入参fields请求的字段信息 + Products []Product `json:"products,omitempty" xml:"products>product,omitempty"` +} diff --git a/model/product/TaobaoProductsGetResponse.go b/model/product/TaobaoProductsGetResponse.go deleted file mode 100644 index ca44175ce1..0000000000 --- a/model/product/TaobaoProductsGetResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取产品列表 API返回值 -taobao.products.get - -根据淘宝会员帐号搜索所有产品信息,推荐使用taobao.products.search -注意:支持分页,每页最多返回100条,默认值为40,页码从1开始,默认为第一页 -*/ -type TaobaoProductsGetAPIResponse struct { - model.CommonResponse - TaobaoProductsGetResponse -} - -// 获取产品列表 成功返回结果 -type TaobaoProductsGetResponse struct { - XMLName xml.Name `xml:"products_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回具体信息为入参fields请求的字段信息 - Products []Product `json:"products,omitempty" xml:"products>product,omitempty"` -} diff --git a/model/product/TaobaoProductsSearchAPIRequest.go b/model/product/TaobaoProductsSearchAPIRequest.go new file mode 100644 index 0000000000..1e5f07cbf1 --- /dev/null +++ b/model/product/TaobaoProductsSearchAPIRequest.go @@ -0,0 +1,213 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索产品信息 API请求 +taobao.products.search + +只有天猫商家发布商品时才需要用到,并非商品搜索api,当前暂不提供商品搜索api。
二种方式搜索所有产品信息(二种至少传一种):
+传入关键字q搜索
+传入cid和props搜索
+返回值支持:product_id,name,pic_path,cid,props,price,tsc
+当用户指定了cid并且cid为垂直市场(3C电器城、鞋城)的类目id时,默认只返回小二确认
的产品。如果用户没有指定cid,或cid为普通的类目,默认返回商家确认或小二确认的产
品。如果用户自定了status字段,以指定的status类型为准。 +
新增一: + 传入suite_items_str 按规格搜索套装产品。 + 返回字段增加suite_items_str,is_suite_effecitve支持。 +*/ +type TaobaoProductsSearchAPIRequest struct { + model.Params + // 需返回的字段列表.可选值:Product数据结构中的以下字段:product_id,name,pic_url,cid,props,price,tsc;多个字段之间用","分隔.新增字段status(product的当前状态) + _fields []string + // 搜索的关键词是用来搜索产品的title. 注:q,cid和props至少传入一个 + _q string + // 商品类目ID.调用taobao.itemcats.get获取. + _cid int64 + // 属性,属性值的组合.格式:pid:vid;pid:vid;调用taobao.itemprops.get获取类目属性pid
,再用taobao.itempropvalues.get取得vid. + _props string + // 想要获取的产品的状态列表,支持多个状态并列获取,多个状态之间用","分隔,最多同时指定5种状态。例如,只获取小二确认的spu传入"3",只要商家确认的传入"0",既要小二确认又要商家确认的传入"0,3"。目前只支持者两种类型的状态搜索,输入其他状态无效。 + _status string + // 页码.传入值为1代表第一页,传入值为2代表第二页,依此类推.默认返回的数据是从第一页开始. + _pageNo int64 + // 每页条数.每页返回最多返回100条,默认值为40. + _pageSize int64 + // 传入值为:3表示3C表示3C垂直市场产品,4表示鞋城垂直市场产品,8表示网游垂直市场产品。一次只能指定一种垂直市场类型 + _verticalMarket int64 + // 用户自定义关键属性,结构:pid1:value1;pid2:value2,如果有型号,系列等子属性用: 隔开 例如:“20000:优衣库:型号:001;632501:1234”,表示“品牌:优衣库:型号:001;货号:1234” + _customerProps string + // 按关联产品规格specs搜索套装产品 + _suiteItemsStr string + // 按条码搜索产品信息,多个逗号隔开,不支持条码为全零的方式 + _barcodeStr string + // 市场ID,1为取C2C市场的产品信息, 2为取B2C市场的产品信息。 不填写此值则默认取C2C的产品信息。 + _marketId string +} + +// 初始化TaobaoProductsSearchAPIRequest对象 +func NewTaobaoProductsSearchRequest() *TaobaoProductsSearchAPIRequest{ + return &TaobaoProductsSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoProductsSearchAPIRequest) GetApiMethodName() string { + return "taobao.products.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoProductsSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需返回的字段列表.可选值:Product数据结构中的以下字段:product_id,name,pic_url,cid,props,price,tsc;多个字段之间用","分隔.新增字段status(product的当前状态) +func (r *TaobaoProductsSearchAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoProductsSearchAPIRequest) GetFields() []string { + return r._fields +} +// Q Setter +// 搜索的关键词是用来搜索产品的title. 注:q,cid和props至少传入一个 +func (r *TaobaoProductsSearchAPIRequest) SetQ(_q string) error { + r._q = _q + r.Set("q", _q) + return nil +} + +// Q Getter +func (r TaobaoProductsSearchAPIRequest) GetQ() string { + return r._q +} +// Cid Setter +// 商品类目ID.调用taobao.itemcats.get获取. +func (r *TaobaoProductsSearchAPIRequest) SetCid(_cid int64) error { + r._cid = _cid + r.Set("cid", _cid) + return nil +} + +// Cid Getter +func (r TaobaoProductsSearchAPIRequest) GetCid() int64 { + return r._cid +} +// Props Setter +// 属性,属性值的组合.格式:pid:vid;pid:vid;调用taobao.itemprops.get获取类目属性pid
,再用taobao.itempropvalues.get取得vid. +func (r *TaobaoProductsSearchAPIRequest) SetProps(_props string) error { + r._props = _props + r.Set("props", _props) + return nil +} + +// Props Getter +func (r TaobaoProductsSearchAPIRequest) GetProps() string { + return r._props +} +// Status Setter +// 想要获取的产品的状态列表,支持多个状态并列获取,多个状态之间用","分隔,最多同时指定5种状态。例如,只获取小二确认的spu传入"3",只要商家确认的传入"0",既要小二确认又要商家确认的传入"0,3"。目前只支持者两种类型的状态搜索,输入其他状态无效。 +func (r *TaobaoProductsSearchAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoProductsSearchAPIRequest) GetStatus() string { + return r._status +} +// PageNo Setter +// 页码.传入值为1代表第一页,传入值为2代表第二页,依此类推.默认返回的数据是从第一页开始. +func (r *TaobaoProductsSearchAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoProductsSearchAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数.每页返回最多返回100条,默认值为40. +func (r *TaobaoProductsSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoProductsSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// VerticalMarket Setter +// 传入值为:3表示3C表示3C垂直市场产品,4表示鞋城垂直市场产品,8表示网游垂直市场产品。一次只能指定一种垂直市场类型 +func (r *TaobaoProductsSearchAPIRequest) SetVerticalMarket(_verticalMarket int64) error { + r._verticalMarket = _verticalMarket + r.Set("vertical_market", _verticalMarket) + return nil +} + +// VerticalMarket Getter +func (r TaobaoProductsSearchAPIRequest) GetVerticalMarket() int64 { + return r._verticalMarket +} +// CustomerProps Setter +// 用户自定义关键属性,结构:pid1:value1;pid2:value2,如果有型号,系列等子属性用: 隔开 例如:“20000:优衣库:型号:001;632501:1234”,表示“品牌:优衣库:型号:001;货号:1234” +func (r *TaobaoProductsSearchAPIRequest) SetCustomerProps(_customerProps string) error { + r._customerProps = _customerProps + r.Set("customer_props", _customerProps) + return nil +} + +// CustomerProps Getter +func (r TaobaoProductsSearchAPIRequest) GetCustomerProps() string { + return r._customerProps +} +// SuiteItemsStr Setter +// 按关联产品规格specs搜索套装产品 +func (r *TaobaoProductsSearchAPIRequest) SetSuiteItemsStr(_suiteItemsStr string) error { + r._suiteItemsStr = _suiteItemsStr + r.Set("suite_items_str", _suiteItemsStr) + return nil +} + +// SuiteItemsStr Getter +func (r TaobaoProductsSearchAPIRequest) GetSuiteItemsStr() string { + return r._suiteItemsStr +} +// BarcodeStr Setter +// 按条码搜索产品信息,多个逗号隔开,不支持条码为全零的方式 +func (r *TaobaoProductsSearchAPIRequest) SetBarcodeStr(_barcodeStr string) error { + r._barcodeStr = _barcodeStr + r.Set("barcode_str", _barcodeStr) + return nil +} + +// BarcodeStr Getter +func (r TaobaoProductsSearchAPIRequest) GetBarcodeStr() string { + return r._barcodeStr +} +// MarketId Setter +// 市场ID,1为取C2C市场的产品信息, 2为取B2C市场的产品信息。 不填写此值则默认取C2C的产品信息。 +func (r *TaobaoProductsSearchAPIRequest) SetMarketId(_marketId string) error { + r._marketId = _marketId + r.Set("market_id", _marketId) + return nil +} + +// MarketId Getter +func (r TaobaoProductsSearchAPIRequest) GetMarketId() string { + return r._marketId +} diff --git a/model/product/TaobaoProductsSearchAPIResponse.go b/model/product/TaobaoProductsSearchAPIResponse.go new file mode 100644 index 0000000000..2114e7d3d8 --- /dev/null +++ b/model/product/TaobaoProductsSearchAPIResponse.go @@ -0,0 +1,36 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索产品信息 API返回值 +taobao.products.search + +只有天猫商家发布商品时才需要用到,并非商品搜索api,当前暂不提供商品搜索api。
二种方式搜索所有产品信息(二种至少传一种):
+传入关键字q搜索
+传入cid和props搜索
+返回值支持:product_id,name,pic_path,cid,props,price,tsc
+当用户指定了cid并且cid为垂直市场(3C电器城、鞋城)的类目id时,默认只返回小二确认
的产品。如果用户没有指定cid,或cid为普通的类目,默认返回商家确认或小二确认的产
品。如果用户自定了status字段,以指定的status类型为准。 +
新增一: + 传入suite_items_str 按规格搜索套装产品。 + 返回字段增加suite_items_str,is_suite_effecitve支持。 +*/ +type TaobaoProductsSearchAPIResponse struct { + model.CommonResponse + TaobaoProductsSearchAPIResponseModel +} + +// 搜索产品信息 成功返回结果 +type TaobaoProductsSearchAPIResponseModel struct { + XMLName xml.Name `xml:"products_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回具体信息为入参fields请求的字段信息 + Products []Product `json:"products,omitempty" xml:"products>product,omitempty"` + // 结果总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/product/TaobaoProductsSearchResponse.go b/model/product/TaobaoProductsSearchResponse.go deleted file mode 100644 index 109dd5c233..0000000000 --- a/model/product/TaobaoProductsSearchResponse.go +++ /dev/null @@ -1,36 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -搜索产品信息 API返回值 -taobao.products.search - -只有天猫商家发布商品时才需要用到,并非商品搜索api,当前暂不提供商品搜索api。
二种方式搜索所有产品信息(二种至少传一种):
-传入关键字q搜索
-传入cid和props搜索
-返回值支持:product_id,name,pic_path,cid,props,price,tsc
-当用户指定了cid并且cid为垂直市场(3C电器城、鞋城)的类目id时,默认只返回小二确认
的产品。如果用户没有指定cid,或cid为普通的类目,默认返回商家确认或小二确认的产
品。如果用户自定了status字段,以指定的status类型为准。 -
新增一: - 传入suite_items_str 按规格搜索套装产品。 - 返回字段增加suite_items_str,is_suite_effecitve支持。 -*/ -type TaobaoProductsSearchAPIResponse struct { - model.CommonResponse - TaobaoProductsSearchResponse -} - -// 搜索产品信息 成功返回结果 -type TaobaoProductsSearchResponse struct { - XMLName xml.Name `xml:"products_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回具体信息为入参fields请求的字段信息 - Products []Product `json:"products,omitempty" xml:"products>product,omitempty"` - // 结果总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/product/TaobaoSkusCustomGetAPIRequest.go b/model/product/TaobaoSkusCustomGetAPIRequest.go new file mode 100644 index 0000000000..4b140ab3f9 --- /dev/null +++ b/model/product/TaobaoSkusCustomGetAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据外部ID取商品SKU API请求 +taobao.skus.custom.get + +跟据卖家设定的Sku的外部id获取商品,如果一个outer_id对应多个Sku会返回所有符合条件的sku
这个Sku所属卖家从传入的session中获取,需要session绑定(注:iid标签里是num_iid的值,可以用作num_iid使用) +*/ +type TaobaoSkusCustomGetAPIRequest struct { + model.Params + // Sku的外部商家ID + _outerId string + // 需返回的字段列表。可选值:Sku结构体中的所有字段;字段之间用“,”隔开 + _fields string +} + +// 初始化TaobaoSkusCustomGetAPIRequest对象 +func NewTaobaoSkusCustomGetRequest() *TaobaoSkusCustomGetAPIRequest{ + return &TaobaoSkusCustomGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSkusCustomGetAPIRequest) GetApiMethodName() string { + return "taobao.skus.custom.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSkusCustomGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterId Setter +// Sku的外部商家ID +func (r *TaobaoSkusCustomGetAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoSkusCustomGetAPIRequest) GetOuterId() string { + return r._outerId +} +// Fields Setter +// 需返回的字段列表。可选值:Sku结构体中的所有字段;字段之间用“,”隔开 +func (r *TaobaoSkusCustomGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoSkusCustomGetAPIRequest) GetFields() string { + return r._fields +} diff --git a/model/product/TaobaoSkusCustomGetAPIResponse.go b/model/product/TaobaoSkusCustomGetAPIResponse.go new file mode 100644 index 0000000000..12db6e6d39 --- /dev/null +++ b/model/product/TaobaoSkusCustomGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据外部ID取商品SKU API返回值 +taobao.skus.custom.get + +跟据卖家设定的Sku的外部id获取商品,如果一个outer_id对应多个Sku会返回所有符合条件的sku
这个Sku所属卖家从传入的session中获取,需要session绑定(注:iid标签里是num_iid的值,可以用作num_iid使用) +*/ +type TaobaoSkusCustomGetAPIResponse struct { + model.CommonResponse + TaobaoSkusCustomGetAPIResponseModel +} + +// 根据外部ID取商品SKU 成功返回结果 +type TaobaoSkusCustomGetAPIResponseModel struct { + XMLName xml.Name `xml:"skus_custom_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Sku对象,具体字段以fields决定 + Skus []Sku `json:"skus,omitempty" xml:"skus>sku,omitempty"` +} diff --git a/model/product/TaobaoSkusCustomGetResponse.go b/model/product/TaobaoSkusCustomGetResponse.go deleted file mode 100644 index 3e45164c1b..0000000000 --- a/model/product/TaobaoSkusCustomGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据外部ID取商品SKU API返回值 -taobao.skus.custom.get - -跟据卖家设定的Sku的外部id获取商品,如果一个outer_id对应多个Sku会返回所有符合条件的sku
这个Sku所属卖家从传入的session中获取,需要session绑定(注:iid标签里是num_iid的值,可以用作num_iid使用) -*/ -type TaobaoSkusCustomGetAPIResponse struct { - model.CommonResponse - TaobaoSkusCustomGetResponse -} - -// 根据外部ID取商品SKU 成功返回结果 -type TaobaoSkusCustomGetResponse struct { - XMLName xml.Name `xml:"skus_custom_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Sku对象,具体字段以fields决定 - Skus []Sku `json:"skus,omitempty" xml:"skus>sku,omitempty"` -} diff --git a/model/product/TaobaoSkusQuantityUpdateAPIRequest.go b/model/product/TaobaoSkusQuantityUpdateAPIRequest.go new file mode 100644 index 0000000000..8965118fa8 --- /dev/null +++ b/model/product/TaobaoSkusQuantityUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +SKU库存修改 API请求 +taobao.skus.quantity.update + +提供按照全量/增量的方式批量修改SKU库存的功能 +*/ +type TaobaoSkusQuantityUpdateAPIRequest struct { + model.Params + // 商品数字ID,必填参数 + _numIid int64 + // 库存更新方式,可选。1为全量更新,2为增量更新。如果不填,默认为全量更新。当选择全量更新时,如果库存更新值传入的是负数,会出错并返回错误码;当选择增量更新时,如果库存更新值为负数且绝对值大于当前库存,则sku库存会设置为0. + _type int64 + // sku库存批量修改入参,用于指定一批sku和每个sku的库存修改值,特殊可填。格式为skuId:库存修改值;skuId:库存修改值。最多支持20个SKU同时修改。 + _skuidQuantities string + // 特殊可选,skuIdQuantities为空的时候用该字段通过outerId来指定sku和其库存修改值。格式为outerId:库存修改值;outerId:库存修改值。当skuIdQuantities不为空的时候该字段失效。当一个outerId对应多个sku时,所有匹配到的sku都会被修改库存。最多支持20个SKU同时修改。 + _outeridQuantities string +} + +// 初始化TaobaoSkusQuantityUpdateAPIRequest对象 +func NewTaobaoSkusQuantityUpdateRequest() *TaobaoSkusQuantityUpdateAPIRequest{ + return &TaobaoSkusQuantityUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSkusQuantityUpdateAPIRequest) GetApiMethodName() string { + return "taobao.skus.quantity.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSkusQuantityUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NumIid Setter +// 商品数字ID,必填参数 +func (r *TaobaoSkusQuantityUpdateAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoSkusQuantityUpdateAPIRequest) GetNumIid() int64 { + return r._numIid +} +// Type Setter +// 库存更新方式,可选。1为全量更新,2为增量更新。如果不填,默认为全量更新。当选择全量更新时,如果库存更新值传入的是负数,会出错并返回错误码;当选择增量更新时,如果库存更新值为负数且绝对值大于当前库存,则sku库存会设置为0. +func (r *TaobaoSkusQuantityUpdateAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoSkusQuantityUpdateAPIRequest) GetType() int64 { + return r._type +} +// SkuidQuantities Setter +// sku库存批量修改入参,用于指定一批sku和每个sku的库存修改值,特殊可填。格式为skuId:库存修改值;skuId:库存修改值。最多支持20个SKU同时修改。 +func (r *TaobaoSkusQuantityUpdateAPIRequest) SetSkuidQuantities(_skuidQuantities string) error { + r._skuidQuantities = _skuidQuantities + r.Set("skuid_quantities", _skuidQuantities) + return nil +} + +// SkuidQuantities Getter +func (r TaobaoSkusQuantityUpdateAPIRequest) GetSkuidQuantities() string { + return r._skuidQuantities +} +// OuteridQuantities Setter +// 特殊可选,skuIdQuantities为空的时候用该字段通过outerId来指定sku和其库存修改值。格式为outerId:库存修改值;outerId:库存修改值。当skuIdQuantities不为空的时候该字段失效。当一个outerId对应多个sku时,所有匹配到的sku都会被修改库存。最多支持20个SKU同时修改。 +func (r *TaobaoSkusQuantityUpdateAPIRequest) SetOuteridQuantities(_outeridQuantities string) error { + r._outeridQuantities = _outeridQuantities + r.Set("outerid_quantities", _outeridQuantities) + return nil +} + +// OuteridQuantities Getter +func (r TaobaoSkusQuantityUpdateAPIRequest) GetOuteridQuantities() string { + return r._outeridQuantities +} diff --git a/model/product/TaobaoSkusQuantityUpdateAPIResponse.go b/model/product/TaobaoSkusQuantityUpdateAPIResponse.go new file mode 100644 index 0000000000..a736983e7e --- /dev/null +++ b/model/product/TaobaoSkusQuantityUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +SKU库存修改 API返回值 +taobao.skus.quantity.update + +提供按照全量/增量的方式批量修改SKU库存的功能 +*/ +type TaobaoSkusQuantityUpdateAPIResponse struct { + model.CommonResponse + TaobaoSkusQuantityUpdateAPIResponseModel +} + +// SKU库存修改 成功返回结果 +type TaobaoSkusQuantityUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"skus_quantity_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // iid、numIid、num和modified,skus中每个sku的skuId、quantity和modified + Item *Item `json:"item,omitempty" xml:"item,omitempty"` +} diff --git a/model/product/TaobaoSkusQuantityUpdateResponse.go b/model/product/TaobaoSkusQuantityUpdateResponse.go deleted file mode 100644 index 176fb9e6b6..0000000000 --- a/model/product/TaobaoSkusQuantityUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -SKU库存修改 API返回值 -taobao.skus.quantity.update - -提供按照全量/增量的方式批量修改SKU库存的功能 -*/ -type TaobaoSkusQuantityUpdateAPIResponse struct { - model.CommonResponse - TaobaoSkusQuantityUpdateResponse -} - -// SKU库存修改 成功返回结果 -type TaobaoSkusQuantityUpdateResponse struct { - XMLName xml.Name `xml:"skus_quantity_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // iid、numIid、num和modified,skus中每个sku的skuId、quantity和modified - Item *Item `json:"item,omitempty" xml:"item,omitempty"` -} diff --git a/model/product/TaobaoUmpPromotionGetAPIRequest.go b/model/product/TaobaoUmpPromotionGetAPIRequest.go new file mode 100644 index 0000000000..be8d4e90af --- /dev/null +++ b/model/product/TaobaoUmpPromotionGetAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品优惠详情查询 API请求 +taobao.ump.promotion.get + +商品优惠详情查询,可查询商品设置的详细优惠。包括限时折扣,满就送等官方优惠以及第三方优惠。 +*/ +type TaobaoUmpPromotionGetAPIRequest struct { + model.Params + // 商品id + _itemId int64 +} + +// 初始化TaobaoUmpPromotionGetAPIRequest对象 +func NewTaobaoUmpPromotionGetRequest() *TaobaoUmpPromotionGetAPIRequest{ + return &TaobaoUmpPromotionGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpPromotionGetAPIRequest) GetApiMethodName() string { + return "taobao.ump.promotion.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpPromotionGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TaobaoUmpPromotionGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoUmpPromotionGetAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/product/TaobaoUmpPromotionGetAPIResponse.go b/model/product/TaobaoUmpPromotionGetAPIResponse.go new file mode 100644 index 0000000000..2b9909b3eb --- /dev/null +++ b/model/product/TaobaoUmpPromotionGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品优惠详情查询 API返回值 +taobao.ump.promotion.get + +商品优惠详情查询,可查询商品设置的详细优惠。包括限时折扣,满就送等官方优惠以及第三方优惠。 +*/ +type TaobaoUmpPromotionGetAPIResponse struct { + model.CommonResponse + TaobaoUmpPromotionGetAPIResponseModel +} + +// 商品优惠详情查询 成功返回结果 +type TaobaoUmpPromotionGetAPIResponseModel struct { + XMLName xml.Name `xml:"ump_promotion_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 优惠详细信息 + Promotions *PromotionDisplayTop `json:"promotions,omitempty" xml:"promotions,omitempty"` +} diff --git a/model/product/TaobaoUmpPromotionGetResponse.go b/model/product/TaobaoUmpPromotionGetResponse.go deleted file mode 100644 index c6d07e56e8..0000000000 --- a/model/product/TaobaoUmpPromotionGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品优惠详情查询 API返回值 -taobao.ump.promotion.get - -商品优惠详情查询,可查询商品设置的详细优惠。包括限时折扣,满就送等官方优惠以及第三方优惠。 -*/ -type TaobaoUmpPromotionGetAPIResponse struct { - model.CommonResponse - TaobaoUmpPromotionGetResponse -} - -// 商品优惠详情查询 成功返回结果 -type TaobaoUmpPromotionGetResponse struct { - XMLName xml.Name `xml:"ump_promotion_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 优惠详细信息 - Promotions *PromotionDisplayTop `json:"promotions,omitempty" xml:"promotions,omitempty"` -} diff --git a/model/product/TaobaoXhotelIntlAriNotifyAPIRequest.go b/model/product/TaobaoXhotelIntlAriNotifyAPIRequest.go new file mode 100644 index 0000000000..310d923ba2 --- /dev/null +++ b/model/product/TaobaoXhotelIntlAriNotifyAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +国际酒店集团价库变更通知 API请求 +taobao.xhotel.intl.ari.notify + +国际酒店集团价库变更时通知变更内容,平台及时更新价库信息,保证价库新鲜度 +*/ +type TaobaoXhotelIntlAriNotifyAPIRequest struct { + model.Params + // 缓存变更 + _cacheChangeList []CacheChangeInfo +} + +// 初始化TaobaoXhotelIntlAriNotifyAPIRequest对象 +func NewTaobaoXhotelIntlAriNotifyRequest() *TaobaoXhotelIntlAriNotifyAPIRequest{ + return &TaobaoXhotelIntlAriNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelIntlAriNotifyAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.intl.ari.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelIntlAriNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CacheChangeList Setter +// 缓存变更 +func (r *TaobaoXhotelIntlAriNotifyAPIRequest) SetCacheChangeList(_cacheChangeList []CacheChangeInfo) error { + r._cacheChangeList = _cacheChangeList + r.Set("cache_change_list", _cacheChangeList) + return nil +} + +// CacheChangeList Getter +func (r TaobaoXhotelIntlAriNotifyAPIRequest) GetCacheChangeList() []CacheChangeInfo { + return r._cacheChangeList +} diff --git a/model/product/TaobaoXhotelIntlAriNotifyAPIResponse.go b/model/product/TaobaoXhotelIntlAriNotifyAPIResponse.go new file mode 100644 index 0000000000..e0f7b626c6 --- /dev/null +++ b/model/product/TaobaoXhotelIntlAriNotifyAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +国际酒店集团价库变更通知 API返回值 +taobao.xhotel.intl.ari.notify + +国际酒店集团价库变更时通知变更内容,平台及时更新价库信息,保证价库新鲜度 +*/ +type TaobaoXhotelIntlAriNotifyAPIResponse struct { + model.CommonResponse + TaobaoXhotelIntlAriNotifyAPIResponseModel +} + +// 国际酒店集团价库变更通知 成功返回结果 +type TaobaoXhotelIntlAriNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_intl_ari_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 通知结果 + Module *CacheChangeNotifyResult `json:"module,omitempty" xml:"module,omitempty"` +} diff --git a/model/product/TaobaoXhotelIntlAriNotifyResponse.go b/model/product/TaobaoXhotelIntlAriNotifyResponse.go deleted file mode 100644 index c4b8c33554..0000000000 --- a/model/product/TaobaoXhotelIntlAriNotifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -国际酒店集团价库变更通知 API返回值 -taobao.xhotel.intl.ari.notify - -国际酒店集团价库变更时通知变更内容,平台及时更新价库信息,保证价库新鲜度 -*/ -type TaobaoXhotelIntlAriNotifyAPIResponse struct { - model.CommonResponse - TaobaoXhotelIntlAriNotifyResponse -} - -// 国际酒店集团价库变更通知 成功返回结果 -type TaobaoXhotelIntlAriNotifyResponse struct { - XMLName xml.Name `xml:"xhotel_intl_ari_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 通知结果 - Module *CacheChangeNotifyResult `json:"module,omitempty" xml:"module,omitempty"` -} diff --git a/model/product/TmallItemAddSchemaGetAPIRequest.go b/model/product/TmallItemAddSchemaGetAPIRequest.go new file mode 100644 index 0000000000..8837614a19 --- /dev/null +++ b/model/product/TmallItemAddSchemaGetAPIRequest.go @@ -0,0 +1,94 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫发布商品规则获取 API请求 +tmall.item.add.schema.get + +通过类目以及productId获取商品发布规则; +*/ +type TmallItemAddSchemaGetAPIRequest struct { + model.Params + // 商品发布的目标类目,必须是叶子类目 + _categoryId int64 + // 商品发布的目标product_id + _productId int64 + // 发布商品类型,一口价填“b”,拍卖填"a" + _type string + // 正常接口调用时,请忽略这个参数或者填FALSE。这个参数提供给ISV对接Schema时,如果想先获取了解所有字段和规则,可以将此字段设置为true,product_id也就不需要提供了,设置为0即可 + _isvInit bool +} + +// 初始化TmallItemAddSchemaGetAPIRequest对象 +func NewTmallItemAddSchemaGetRequest() *TmallItemAddSchemaGetAPIRequest{ + return &TmallItemAddSchemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemAddSchemaGetAPIRequest) GetApiMethodName() string { + return "tmall.item.add.schema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemAddSchemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CategoryId Setter +// 商品发布的目标类目,必须是叶子类目 +func (r *TmallItemAddSchemaGetAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r TmallItemAddSchemaGetAPIRequest) GetCategoryId() int64 { + return r._categoryId +} +// ProductId Setter +// 商品发布的目标product_id +func (r *TmallItemAddSchemaGetAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TmallItemAddSchemaGetAPIRequest) GetProductId() int64 { + return r._productId +} +// Type Setter +// 发布商品类型,一口价填“b”,拍卖填"a" +func (r *TmallItemAddSchemaGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TmallItemAddSchemaGetAPIRequest) GetType() string { + return r._type +} +// IsvInit Setter +// 正常接口调用时,请忽略这个参数或者填FALSE。这个参数提供给ISV对接Schema时,如果想先获取了解所有字段和规则,可以将此字段设置为true,product_id也就不需要提供了,设置为0即可 +func (r *TmallItemAddSchemaGetAPIRequest) SetIsvInit(_isvInit bool) error { + r._isvInit = _isvInit + r.Set("isv_init", _isvInit) + return nil +} + +// IsvInit Getter +func (r TmallItemAddSchemaGetAPIRequest) GetIsvInit() bool { + return r._isvInit +} diff --git a/model/product/TmallItemAddSchemaGetAPIResponse.go b/model/product/TmallItemAddSchemaGetAPIResponse.go new file mode 100644 index 0000000000..a599c4d5db --- /dev/null +++ b/model/product/TmallItemAddSchemaGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫发布商品规则获取 API返回值 +tmall.item.add.schema.get + +通过类目以及productId获取商品发布规则; +*/ +type TmallItemAddSchemaGetAPIResponse struct { + model.CommonResponse + TmallItemAddSchemaGetAPIResponseModel +} + +// 天猫发布商品规则获取 成功返回结果 +type TmallItemAddSchemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_add_schema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回发布商品的规则文档 + AddItemResult string `json:"add_item_result,omitempty" xml:"add_item_result,omitempty"` +} diff --git a/model/product/TmallItemAddSchemaGetResponse.go b/model/product/TmallItemAddSchemaGetResponse.go deleted file mode 100644 index 8dce4386c0..0000000000 --- a/model/product/TmallItemAddSchemaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫发布商品规则获取 API返回值 -tmall.item.add.schema.get - -通过类目以及productId获取商品发布规则; -*/ -type TmallItemAddSchemaGetAPIResponse struct { - model.CommonResponse - TmallItemAddSchemaGetResponse -} - -// 天猫发布商品规则获取 成功返回结果 -type TmallItemAddSchemaGetResponse struct { - XMLName xml.Name `xml:"tmall_item_add_schema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回发布商品的规则文档 - AddItemResult string `json:"add_item_result,omitempty" xml:"add_item_result,omitempty"` -} diff --git a/model/product/TmallItemAddSimpleschemaGetAPIRequest.go b/model/product/TmallItemAddSimpleschemaGetAPIRequest.go new file mode 100644 index 0000000000..adb5c099db --- /dev/null +++ b/model/product/TmallItemAddSimpleschemaGetAPIRequest.go @@ -0,0 +1,38 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫发布商品规则获取 API请求 +tmall.item.add.simpleschema.get + +通过商家信息获取商品发布字段和规则。 +*/ +type TmallItemAddSimpleschemaGetAPIRequest struct { + model.Params +} + +// 初始化TmallItemAddSimpleschemaGetAPIRequest对象 +func NewTmallItemAddSimpleschemaGetRequest() *TmallItemAddSimpleschemaGetAPIRequest{ + return &TmallItemAddSimpleschemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemAddSimpleschemaGetAPIRequest) GetApiMethodName() string { + return "tmall.item.add.simpleschema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemAddSimpleschemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/product/TmallItemAddSimpleschemaGetAPIResponse.go b/model/product/TmallItemAddSimpleschemaGetAPIResponse.go new file mode 100644 index 0000000000..49e131396b --- /dev/null +++ b/model/product/TmallItemAddSimpleschemaGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫发布商品规则获取 API返回值 +tmall.item.add.simpleschema.get + +通过商家信息获取商品发布字段和规则。 +*/ +type TmallItemAddSimpleschemaGetAPIResponse struct { + model.CommonResponse + TmallItemAddSimpleschemaGetAPIResponseModel +} + +// 天猫发布商品规则获取 成功返回结果 +type TmallItemAddSimpleschemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_add_simpleschema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回发布商品的规则文档 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/product/TmallItemAddSimpleschemaGetResponse.go b/model/product/TmallItemAddSimpleschemaGetResponse.go deleted file mode 100644 index a73bb8fd2b..0000000000 --- a/model/product/TmallItemAddSimpleschemaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫发布商品规则获取 API返回值 -tmall.item.add.simpleschema.get - -通过商家信息获取商品发布字段和规则。 -*/ -type TmallItemAddSimpleschemaGetAPIResponse struct { - model.CommonResponse - TmallItemAddSimpleschemaGetResponse -} - -// 天猫发布商品规则获取 成功返回结果 -type TmallItemAddSimpleschemaGetResponse struct { - XMLName xml.Name `xml:"tmall_item_add_simpleschema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回发布商品的规则文档 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/product/TmallItemCalculateHscodeGetAPIRequest.go b/model/product/TmallItemCalculateHscodeGetAPIRequest.go new file mode 100644 index 0000000000..8c3b3d358d --- /dev/null +++ b/model/product/TmallItemCalculateHscodeGetAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +算法获取hscode API请求 +tmall.item.calculate.hscode.get + +算法获取hscode +*/ +type TmallItemCalculateHscodeGetAPIRequest struct { + model.Params + // 商品id + _itemId int64 +} + +// 初始化TmallItemCalculateHscodeGetAPIRequest对象 +func NewTmallItemCalculateHscodeGetRequest() *TmallItemCalculateHscodeGetAPIRequest{ + return &TmallItemCalculateHscodeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemCalculateHscodeGetAPIRequest) GetApiMethodName() string { + return "tmall.item.calculate.hscode.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemCalculateHscodeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TmallItemCalculateHscodeGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallItemCalculateHscodeGetAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/product/TmallItemCalculateHscodeGetAPIResponse.go b/model/product/TmallItemCalculateHscodeGetAPIResponse.go new file mode 100644 index 0000000000..eaa0f70176 --- /dev/null +++ b/model/product/TmallItemCalculateHscodeGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +算法获取hscode API返回值 +tmall.item.calculate.hscode.get + +算法获取hscode +*/ +type TmallItemCalculateHscodeGetAPIResponse struct { + model.CommonResponse + TmallItemCalculateHscodeGetAPIResponseModel +} + +// 算法获取hscode 成功返回结果 +type TmallItemCalculateHscodeGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_calculate_hscode_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 算法返回预测的hscode数据 + Results []string `json:"results,omitempty" xml:"results>string,omitempty"` +} diff --git a/model/product/TmallItemCalculateHscodeGetResponse.go b/model/product/TmallItemCalculateHscodeGetResponse.go deleted file mode 100644 index f74790d6a7..0000000000 --- a/model/product/TmallItemCalculateHscodeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -算法获取hscode API返回值 -tmall.item.calculate.hscode.get - -算法获取hscode -*/ -type TmallItemCalculateHscodeGetAPIResponse struct { - model.CommonResponse - TmallItemCalculateHscodeGetResponse -} - -// 算法获取hscode 成功返回结果 -type TmallItemCalculateHscodeGetResponse struct { - XMLName xml.Name `xml:"tmall_item_calculate_hscode_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 算法返回预测的hscode数据 - Results []string `json:"results,omitempty" xml:"results>string,omitempty"` -} diff --git a/model/product/TmallItemCombineGetAPIRequest.go b/model/product/TmallItemCombineGetAPIRequest.go new file mode 100644 index 0000000000..0b9ca40a92 --- /dev/null +++ b/model/product/TmallItemCombineGetAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +组合商品获取接口 API请求 +tmall.item.combine.get + +查询组合商品的SKU信息 +*/ +type TmallItemCombineGetAPIRequest struct { + model.Params + // 组合商品ID + _itemId int64 +} + +// 初始化TmallItemCombineGetAPIRequest对象 +func NewTmallItemCombineGetRequest() *TmallItemCombineGetAPIRequest{ + return &TmallItemCombineGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemCombineGetAPIRequest) GetApiMethodName() string { + return "tmall.item.combine.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemCombineGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 组合商品ID +func (r *TmallItemCombineGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallItemCombineGetAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/product/TmallItemCombineGetAPIResponse.go b/model/product/TmallItemCombineGetAPIResponse.go new file mode 100644 index 0000000000..f72cfba468 --- /dev/null +++ b/model/product/TmallItemCombineGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +组合商品获取接口 API返回值 +tmall.item.combine.get + +查询组合商品的SKU信息 +*/ +type TmallItemCombineGetAPIResponse struct { + model.CommonResponse + TmallItemCombineGetAPIResponseModel +} + +// 组合商品获取接口 成功返回结果 +type TmallItemCombineGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_combine_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // results + Results []string `json:"results,omitempty" xml:"results>string,omitempty"` +} diff --git a/model/product/TmallItemCombineGetResponse.go b/model/product/TmallItemCombineGetResponse.go deleted file mode 100644 index b3f91a5fd5..0000000000 --- a/model/product/TmallItemCombineGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -组合商品获取接口 API返回值 -tmall.item.combine.get - -查询组合商品的SKU信息 -*/ -type TmallItemCombineGetAPIResponse struct { - model.CommonResponse - TmallItemCombineGetResponse -} - -// 组合商品获取接口 成功返回结果 -type TmallItemCombineGetResponse struct { - XMLName xml.Name `xml:"tmall_item_combine_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // results - Results []string `json:"results,omitempty" xml:"results>string,omitempty"` -} diff --git a/model/product/TmallItemDapeiTemplateQueryAPIRequest.go b/model/product/TmallItemDapeiTemplateQueryAPIRequest.go new file mode 100644 index 0000000000..09c5ae69ae --- /dev/null +++ b/model/product/TmallItemDapeiTemplateQueryAPIRequest.go @@ -0,0 +1,80 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +搭配查询接口 API请求 +tmall.item.dapei.template.query + +根据条件获取搭配内容 +*/ +type TmallItemDapeiTemplateQueryAPIRequest struct { + model.Params + // 搭配标题 + _title string + // 页码 + _pageIndex int64 + // 分页大小 + _pageSize int64 +} + +// 初始化TmallItemDapeiTemplateQueryAPIRequest对象 +func NewTmallItemDapeiTemplateQueryRequest() *TmallItemDapeiTemplateQueryAPIRequest{ + return &TmallItemDapeiTemplateQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemDapeiTemplateQueryAPIRequest) GetApiMethodName() string { + return "tmall.item.dapei.template.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemDapeiTemplateQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Title Setter +// 搭配标题 +func (r *TmallItemDapeiTemplateQueryAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TmallItemDapeiTemplateQueryAPIRequest) GetTitle() string { + return r._title +} +// PageIndex Setter +// 页码 +func (r *TmallItemDapeiTemplateQueryAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TmallItemDapeiTemplateQueryAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} +// PageSize Setter +// 分页大小 +func (r *TmallItemDapeiTemplateQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TmallItemDapeiTemplateQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/product/TmallItemDapeiTemplateQueryAPIResponse.go b/model/product/TmallItemDapeiTemplateQueryAPIResponse.go new file mode 100644 index 0000000000..d8eb042d74 --- /dev/null +++ b/model/product/TmallItemDapeiTemplateQueryAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +搭配查询接口 API返回值 +tmall.item.dapei.template.query + +根据条件获取搭配内容 +*/ +type TmallItemDapeiTemplateQueryAPIResponse struct { + model.CommonResponse + TmallItemDapeiTemplateQueryAPIResponseModel +} + +// 搭配查询接口 成功返回结果 +type TmallItemDapeiTemplateQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_dapei_template_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallItemDapeiTemplateQueryResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/product/TmallItemDapeiTemplateQueryResponse.go b/model/product/TmallItemDapeiTemplateQueryResponse.go deleted file mode 100644 index b3728d2a74..0000000000 --- a/model/product/TmallItemDapeiTemplateQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -搭配查询接口 API返回值 -tmall.item.dapei.template.query - -根据条件获取搭配内容 -*/ -type TmallItemDapeiTemplateQueryAPIResponse struct { - model.CommonResponse - TmallItemDapeiTemplateQueryResponse -} - -// 搭配查询接口 成功返回结果 -type TmallItemDapeiTemplateQueryResponse struct { - XMLName xml.Name `xml:"tmall_item_dapei_template_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallItemDapeiTemplateQueryResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/product/TmallItemDescModulesGetAPIRequest.go b/model/product/TmallItemDescModulesGetAPIRequest.go new file mode 100644 index 0000000000..0e9b8002a9 --- /dev/null +++ b/model/product/TmallItemDescModulesGetAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品描述模块信息获取 API请求 +tmall.item.desc.modules.get + +商品描述模块信息获取,包括运营设定的类目级别的模块信息以及用户自定义模块数量约束。 +*/ +type TmallItemDescModulesGetAPIRequest struct { + model.Params + // 淘宝后台发布商品的叶子类目id,可通过taobao.itemcats.get查到。api 访问地址http://api.taobao.com/apidoc/api.htm?spm=0.0.0.0.CFhhk4&path=cid:3-apiId:122 + _catId int64 + // 商家主帐号id + _usrId string +} + +// 初始化TmallItemDescModulesGetAPIRequest对象 +func NewTmallItemDescModulesGetRequest() *TmallItemDescModulesGetAPIRequest{ + return &TmallItemDescModulesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemDescModulesGetAPIRequest) GetApiMethodName() string { + return "tmall.item.desc.modules.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemDescModulesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CatId Setter +// 淘宝后台发布商品的叶子类目id,可通过taobao.itemcats.get查到。api 访问地址http://api.taobao.com/apidoc/api.htm?spm=0.0.0.0.CFhhk4&path=cid:3-apiId:122 +func (r *TmallItemDescModulesGetAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r TmallItemDescModulesGetAPIRequest) GetCatId() int64 { + return r._catId +} +// UsrId Setter +// 商家主帐号id +func (r *TmallItemDescModulesGetAPIRequest) SetUsrId(_usrId string) error { + r._usrId = _usrId + r.Set("usr_id", _usrId) + return nil +} + +// UsrId Getter +func (r TmallItemDescModulesGetAPIRequest) GetUsrId() string { + return r._usrId +} diff --git a/model/product/TmallItemDescModulesGetAPIResponse.go b/model/product/TmallItemDescModulesGetAPIResponse.go new file mode 100644 index 0000000000..c8fbca5e9f --- /dev/null +++ b/model/product/TmallItemDescModulesGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品描述模块信息获取 API返回值 +tmall.item.desc.modules.get + +商品描述模块信息获取,包括运营设定的类目级别的模块信息以及用户自定义模块数量约束。 +*/ +type TmallItemDescModulesGetAPIResponse struct { + model.CommonResponse + TmallItemDescModulesGetAPIResponseModel +} + +// 商品描述模块信息获取 成功返回结果 +type TmallItemDescModulesGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_desc_modules_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回描述模块信息 + ModularDescInfo *ModularDescInfo `json:"modular_desc_info,omitempty" xml:"modular_desc_info,omitempty"` +} diff --git a/model/product/TmallItemDescModulesGetResponse.go b/model/product/TmallItemDescModulesGetResponse.go deleted file mode 100644 index d9bcd6a97d..0000000000 --- a/model/product/TmallItemDescModulesGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品描述模块信息获取 API返回值 -tmall.item.desc.modules.get - -商品描述模块信息获取,包括运营设定的类目级别的模块信息以及用户自定义模块数量约束。 -*/ -type TmallItemDescModulesGetAPIResponse struct { - model.CommonResponse - TmallItemDescModulesGetResponse -} - -// 商品描述模块信息获取 成功返回结果 -type TmallItemDescModulesGetResponse struct { - XMLName xml.Name `xml:"tmall_item_desc_modules_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回描述模块信息 - ModularDescInfo *ModularDescInfo `json:"modular_desc_info,omitempty" xml:"modular_desc_info,omitempty"` -} diff --git a/model/product/TmallItemHscodeAuditResultsQueryAPIRequest.go b/model/product/TmallItemHscodeAuditResultsQueryAPIRequest.go new file mode 100644 index 0000000000..d0885cc0fc --- /dev/null +++ b/model/product/TmallItemHscodeAuditResultsQueryAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品hscode信息审核状态查询接口 API请求 +tmall.item.hscode.audit.results.query + +通过此接口查询天猫跨境商品的hscode信息审核状态,卖家可以参考返回结果判断是否需要调整商品hscode相关信息。 +*/ +type TmallItemHscodeAuditResultsQueryAPIRequest struct { + model.Params + // 商品ID + _itemId int64 +} + +// 初始化TmallItemHscodeAuditResultsQueryAPIRequest对象 +func NewTmallItemHscodeAuditResultsQueryRequest() *TmallItemHscodeAuditResultsQueryAPIRequest{ + return &TmallItemHscodeAuditResultsQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemHscodeAuditResultsQueryAPIRequest) GetApiMethodName() string { + return "tmall.item.hscode.audit.results.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemHscodeAuditResultsQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品ID +func (r *TmallItemHscodeAuditResultsQueryAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallItemHscodeAuditResultsQueryAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/product/TmallItemHscodeAuditResultsQueryAPIResponse.go b/model/product/TmallItemHscodeAuditResultsQueryAPIResponse.go new file mode 100644 index 0000000000..0012d70133 --- /dev/null +++ b/model/product/TmallItemHscodeAuditResultsQueryAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品hscode信息审核状态查询接口 API返回值 +tmall.item.hscode.audit.results.query + +通过此接口查询天猫跨境商品的hscode信息审核状态,卖家可以参考返回结果判断是否需要调整商品hscode相关信息。 +*/ +type TmallItemHscodeAuditResultsQueryAPIResponse struct { + model.CommonResponse + TmallItemHscodeAuditResultsQueryAPIResponseModel +} + +// 商品hscode信息审核状态查询接口 成功返回结果 +type TmallItemHscodeAuditResultsQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_hscode_audit_results_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品或sku的hscode信息审核状态。 + ResultList []HscodeAuditInfo `json:"result_list,omitempty" xml:"result_list>hscode_audit_info,omitempty"` +} diff --git a/model/product/TmallItemHscodeAuditResultsQueryResponse.go b/model/product/TmallItemHscodeAuditResultsQueryResponse.go deleted file mode 100644 index c3e9410ca1..0000000000 --- a/model/product/TmallItemHscodeAuditResultsQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品hscode信息审核状态查询接口 API返回值 -tmall.item.hscode.audit.results.query - -通过此接口查询天猫跨境商品的hscode信息审核状态,卖家可以参考返回结果判断是否需要调整商品hscode相关信息。 -*/ -type TmallItemHscodeAuditResultsQueryAPIResponse struct { - model.CommonResponse - TmallItemHscodeAuditResultsQueryResponse -} - -// 商品hscode信息审核状态查询接口 成功返回结果 -type TmallItemHscodeAuditResultsQueryResponse struct { - XMLName xml.Name `xml:"tmall_item_hscode_audit_results_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品或sku的hscode信息审核状态。 - ResultList []HscodeAuditInfo `json:"result_list,omitempty" xml:"result_list>hscode_audit_info,omitempty"` -} diff --git a/model/product/TmallItemHscodeDetailGetAPIRequest.go b/model/product/TmallItemHscodeDetailGetAPIRequest.go new file mode 100644 index 0000000000..d379fd42c6 --- /dev/null +++ b/model/product/TmallItemHscodeDetailGetAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过hscode获取计量单位 API请求 +tmall.item.hscode.detail.get + +通过hscode获取计量单位和销售单位 +*/ +type TmallItemHscodeDetailGetAPIRequest struct { + model.Params + // hscode + _hscode string +} + +// 初始化TmallItemHscodeDetailGetAPIRequest对象 +func NewTmallItemHscodeDetailGetRequest() *TmallItemHscodeDetailGetAPIRequest{ + return &TmallItemHscodeDetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemHscodeDetailGetAPIRequest) GetApiMethodName() string { + return "tmall.item.hscode.detail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemHscodeDetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Hscode Setter +// hscode +func (r *TmallItemHscodeDetailGetAPIRequest) SetHscode(_hscode string) error { + r._hscode = _hscode + r.Set("hscode", _hscode) + return nil +} + +// Hscode Getter +func (r TmallItemHscodeDetailGetAPIRequest) GetHscode() string { + return r._hscode +} diff --git a/model/product/TmallItemHscodeDetailGetAPIResponse.go b/model/product/TmallItemHscodeDetailGetAPIResponse.go new file mode 100644 index 0000000000..866dc73d05 --- /dev/null +++ b/model/product/TmallItemHscodeDetailGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过hscode获取计量单位 API返回值 +tmall.item.hscode.detail.get + +通过hscode获取计量单位和销售单位 +*/ +type TmallItemHscodeDetailGetAPIResponse struct { + model.CommonResponse + TmallItemHscodeDetailGetAPIResponseModel +} + +// 通过hscode获取计量单位 成功返回结果 +type TmallItemHscodeDetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_hscode_detail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的计量单位和销售单位 + Results []string `json:"results,omitempty" xml:"results>string,omitempty"` +} diff --git a/model/product/TmallItemHscodeDetailGetResponse.go b/model/product/TmallItemHscodeDetailGetResponse.go deleted file mode 100644 index 12893e14b3..0000000000 --- a/model/product/TmallItemHscodeDetailGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过hscode获取计量单位 API返回值 -tmall.item.hscode.detail.get - -通过hscode获取计量单位和销售单位 -*/ -type TmallItemHscodeDetailGetAPIResponse struct { - model.CommonResponse - TmallItemHscodeDetailGetResponse -} - -// 通过hscode获取计量单位 成功返回结果 -type TmallItemHscodeDetailGetResponse struct { - XMLName xml.Name `xml:"tmall_item_hscode_detail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的计量单位和销售单位 - Results []string `json:"results,omitempty" xml:"results>string,omitempty"` -} diff --git a/model/product/TmallItemIncrementUpdateSchemaGetAPIRequest.go b/model/product/TmallItemIncrementUpdateSchemaGetAPIRequest.go new file mode 100644 index 0000000000..da0912dd21 --- /dev/null +++ b/model/product/TmallItemIncrementUpdateSchemaGetAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫增量更新商品规则获取 API请求 +tmall.item.increment.update.schema.get + +增量方式修改天猫商品的规则获取的API。
1.接口返回支持增量修改的字段以及相应字段的规则。
2.如果入参xml_data指定了更新的字段,则只返回指定字段的规则(ISV如果功能性很强,如明确更新Title,请拼装好次字段以提升API整体性能);
3.ISV初次接入,开发阶段,此字段不填可以看到所有支持增量的字段;但是如果上线功能明确,请尽量遵守第2条
4.如果ISV对字段规则非常清晰,可以直接组装入参数据提交到tmall.item.schema.increment.update进行数据更新。但是最好不要写死,比如每天还是有对此接口功能的一次比对。
---(感谢爱慕旗舰店提供API命名) +*/ +type TmallItemIncrementUpdateSchemaGetAPIRequest struct { + model.Params + // 需要编辑的商品ID + _itemId int64 + // 如果入参xml_data指定了更新的字段,则只返回指定字段的规则(ISV如果功能性很强,如明确更新Title,请拼装好此字段以提升API整体性能) + _xmlData string +} + +// 初始化TmallItemIncrementUpdateSchemaGetAPIRequest对象 +func NewTmallItemIncrementUpdateSchemaGetRequest() *TmallItemIncrementUpdateSchemaGetAPIRequest{ + return &TmallItemIncrementUpdateSchemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemIncrementUpdateSchemaGetAPIRequest) GetApiMethodName() string { + return "tmall.item.increment.update.schema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemIncrementUpdateSchemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 需要编辑的商品ID +func (r *TmallItemIncrementUpdateSchemaGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallItemIncrementUpdateSchemaGetAPIRequest) GetItemId() int64 { + return r._itemId +} +// XmlData Setter +// 如果入参xml_data指定了更新的字段,则只返回指定字段的规则(ISV如果功能性很强,如明确更新Title,请拼装好此字段以提升API整体性能) +func (r *TmallItemIncrementUpdateSchemaGetAPIRequest) SetXmlData(_xmlData string) error { + r._xmlData = _xmlData + r.Set("xml_data", _xmlData) + return nil +} + +// XmlData Getter +func (r TmallItemIncrementUpdateSchemaGetAPIRequest) GetXmlData() string { + return r._xmlData +} diff --git a/model/product/TmallItemIncrementUpdateSchemaGetAPIResponse.go b/model/product/TmallItemIncrementUpdateSchemaGetAPIResponse.go new file mode 100644 index 0000000000..9768033a7b --- /dev/null +++ b/model/product/TmallItemIncrementUpdateSchemaGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫增量更新商品规则获取 API返回值 +tmall.item.increment.update.schema.get + +增量方式修改天猫商品的规则获取的API。
1.接口返回支持增量修改的字段以及相应字段的规则。
2.如果入参xml_data指定了更新的字段,则只返回指定字段的规则(ISV如果功能性很强,如明确更新Title,请拼装好次字段以提升API整体性能);
3.ISV初次接入,开发阶段,此字段不填可以看到所有支持增量的字段;但是如果上线功能明确,请尽量遵守第2条
4.如果ISV对字段规则非常清晰,可以直接组装入参数据提交到tmall.item.schema.increment.update进行数据更新。但是最好不要写死,比如每天还是有对此接口功能的一次比对。
---(感谢爱慕旗舰店提供API命名) +*/ +type TmallItemIncrementUpdateSchemaGetAPIResponse struct { + model.CommonResponse + TmallItemIncrementUpdateSchemaGetAPIResponseModel +} + +// 天猫增量更新商品规则获取 成功返回结果 +type TmallItemIncrementUpdateSchemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_increment_update_schema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回增量更新商品的规则文档 + UpdateItemResult string `json:"update_item_result,omitempty" xml:"update_item_result,omitempty"` +} diff --git a/model/product/TmallItemIncrementUpdateSchemaGetResponse.go b/model/product/TmallItemIncrementUpdateSchemaGetResponse.go deleted file mode 100644 index f533ec31be..0000000000 --- a/model/product/TmallItemIncrementUpdateSchemaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫增量更新商品规则获取 API返回值 -tmall.item.increment.update.schema.get - -增量方式修改天猫商品的规则获取的API。
1.接口返回支持增量修改的字段以及相应字段的规则。
2.如果入参xml_data指定了更新的字段,则只返回指定字段的规则(ISV如果功能性很强,如明确更新Title,请拼装好次字段以提升API整体性能);
3.ISV初次接入,开发阶段,此字段不填可以看到所有支持增量的字段;但是如果上线功能明确,请尽量遵守第2条
4.如果ISV对字段规则非常清晰,可以直接组装入参数据提交到tmall.item.schema.increment.update进行数据更新。但是最好不要写死,比如每天还是有对此接口功能的一次比对。
---(感谢爱慕旗舰店提供API命名) -*/ -type TmallItemIncrementUpdateSchemaGetAPIResponse struct { - model.CommonResponse - TmallItemIncrementUpdateSchemaGetResponse -} - -// 天猫增量更新商品规则获取 成功返回结果 -type TmallItemIncrementUpdateSchemaGetResponse struct { - XMLName xml.Name `xml:"tmall_item_increment_update_schema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回增量更新商品的规则文档 - UpdateItemResult string `json:"update_item_result,omitempty" xml:"update_item_result,omitempty"` -} diff --git a/model/product/TmallItemOuteridUpdateAPIRequest.go b/model/product/TmallItemOuteridUpdateAPIRequest.go new file mode 100644 index 0000000000..a57d48532d --- /dev/null +++ b/model/product/TmallItemOuteridUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫商品/SKU商家编码更新接口 API请求 +tmall.item.outerid.update + +天猫商品/SKU商家编码更新接口;支持商品、SKU的商家编码同时更新;支持同一商品下的SKU批量更新。(感谢sample小雨提供接口命名) +*/ +type TmallItemOuteridUpdateAPIRequest struct { + model.Params + // 商品ID + _itemId int64 + // 商品维度商家编码,如果不修改可以不传;清空请设置空串 + _outerId string + // 商品SKU更新OuterId时候用的数据 + _skuOuters []UpdateSkuOuterId +} + +// 初始化TmallItemOuteridUpdateAPIRequest对象 +func NewTmallItemOuteridUpdateRequest() *TmallItemOuteridUpdateAPIRequest{ + return &TmallItemOuteridUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemOuteridUpdateAPIRequest) GetApiMethodName() string { + return "tmall.item.outerid.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemOuteridUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品ID +func (r *TmallItemOuteridUpdateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallItemOuteridUpdateAPIRequest) GetItemId() int64 { + return r._itemId +} +// OuterId Setter +// 商品维度商家编码,如果不修改可以不传;清空请设置空串 +func (r *TmallItemOuteridUpdateAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TmallItemOuteridUpdateAPIRequest) GetOuterId() string { + return r._outerId +} +// SkuOuters Setter +// 商品SKU更新OuterId时候用的数据 +func (r *TmallItemOuteridUpdateAPIRequest) SetSkuOuters(_skuOuters []UpdateSkuOuterId) error { + r._skuOuters = _skuOuters + r.Set("sku_outers", _skuOuters) + return nil +} + +// SkuOuters Getter +func (r TmallItemOuteridUpdateAPIRequest) GetSkuOuters() []UpdateSkuOuterId { + return r._skuOuters +} diff --git a/model/product/TmallItemOuteridUpdateAPIResponse.go b/model/product/TmallItemOuteridUpdateAPIResponse.go new file mode 100644 index 0000000000..72454eab1d --- /dev/null +++ b/model/product/TmallItemOuteridUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫商品/SKU商家编码更新接口 API返回值 +tmall.item.outerid.update + +天猫商品/SKU商家编码更新接口;支持商品、SKU的商家编码同时更新;支持同一商品下的SKU批量更新。(感谢sample小雨提供接口命名) +*/ +type TmallItemOuteridUpdateAPIResponse struct { + model.CommonResponse + TmallItemOuteridUpdateAPIResponseModel +} + +// 天猫商品/SKU商家编码更新接口 成功返回结果 +type TmallItemOuteridUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_outerid_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商家编码更新结果 + OuteridUpdateResult string `json:"outerid_update_result,omitempty" xml:"outerid_update_result,omitempty"` +} diff --git a/model/product/TmallItemOuteridUpdateResponse.go b/model/product/TmallItemOuteridUpdateResponse.go deleted file mode 100644 index de060c94a5..0000000000 --- a/model/product/TmallItemOuteridUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫商品/SKU商家编码更新接口 API返回值 -tmall.item.outerid.update - -天猫商品/SKU商家编码更新接口;支持商品、SKU的商家编码同时更新;支持同一商品下的SKU批量更新。(感谢sample小雨提供接口命名) -*/ -type TmallItemOuteridUpdateAPIResponse struct { - model.CommonResponse - TmallItemOuteridUpdateResponse -} - -// 天猫商品/SKU商家编码更新接口 成功返回结果 -type TmallItemOuteridUpdateResponse struct { - XMLName xml.Name `xml:"tmall_item_outerid_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商家编码更新结果 - OuteridUpdateResult string `json:"outerid_update_result,omitempty" xml:"outerid_update_result,omitempty"` -} diff --git a/model/product/TmallItemPriceUpdateAPIRequest.go b/model/product/TmallItemPriceUpdateAPIRequest.go new file mode 100644 index 0000000000..e31bbafc78 --- /dev/null +++ b/model/product/TmallItemPriceUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫商品/SKU价格更新接口 API请求 +tmall.item.price.update + +天猫商品/SKU价格更新接口,支持商品、SKU价格同时更新,支持同一商品下的SKU批量更新。 +*/ +type TmallItemPriceUpdateAPIRequest struct { + model.Params + // 商品ID + _itemId int64 + // 被更新商品价格 + _itemPrice float64 + // 更新SKU价格时候的SKU价格对象;如果没有SKU或者不更新SKU价格,可以不填;查找SKU目前支持ID,属性串和商家编码三种模式,建议选用一种最合适的,切勿滥用,一次调用中如果混合使用,更新结果不可预期! + _skuPrices []UpdateSkuPrice + // 商品价格更新时候的可选参数 + _options *UpdateItemPriceOption +} + +// 初始化TmallItemPriceUpdateAPIRequest对象 +func NewTmallItemPriceUpdateRequest() *TmallItemPriceUpdateAPIRequest{ + return &TmallItemPriceUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemPriceUpdateAPIRequest) GetApiMethodName() string { + return "tmall.item.price.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemPriceUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品ID +func (r *TmallItemPriceUpdateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallItemPriceUpdateAPIRequest) GetItemId() int64 { + return r._itemId +} +// ItemPrice Setter +// 被更新商品价格 +func (r *TmallItemPriceUpdateAPIRequest) SetItemPrice(_itemPrice float64) error { + r._itemPrice = _itemPrice + r.Set("item_price", _itemPrice) + return nil +} + +// ItemPrice Getter +func (r TmallItemPriceUpdateAPIRequest) GetItemPrice() float64 { + return r._itemPrice +} +// SkuPrices Setter +// 更新SKU价格时候的SKU价格对象;如果没有SKU或者不更新SKU价格,可以不填;查找SKU目前支持ID,属性串和商家编码三种模式,建议选用一种最合适的,切勿滥用,一次调用中如果混合使用,更新结果不可预期! +func (r *TmallItemPriceUpdateAPIRequest) SetSkuPrices(_skuPrices []UpdateSkuPrice) error { + r._skuPrices = _skuPrices + r.Set("sku_prices", _skuPrices) + return nil +} + +// SkuPrices Getter +func (r TmallItemPriceUpdateAPIRequest) GetSkuPrices() []UpdateSkuPrice { + return r._skuPrices +} +// Options Setter +// 商品价格更新时候的可选参数 +func (r *TmallItemPriceUpdateAPIRequest) SetOptions(_options *UpdateItemPriceOption) error { + r._options = _options + r.Set("options", _options) + return nil +} + +// Options Getter +func (r TmallItemPriceUpdateAPIRequest) GetOptions() *UpdateItemPriceOption { + return r._options +} diff --git a/model/product/TmallItemPriceUpdateAPIResponse.go b/model/product/TmallItemPriceUpdateAPIResponse.go new file mode 100644 index 0000000000..3bbc7099d9 --- /dev/null +++ b/model/product/TmallItemPriceUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫商品/SKU价格更新接口 API返回值 +tmall.item.price.update + +天猫商品/SKU价格更新接口,支持商品、SKU价格同时更新,支持同一商品下的SKU批量更新。 +*/ +type TmallItemPriceUpdateAPIResponse struct { + model.CommonResponse + TmallItemPriceUpdateAPIResponseModel +} + +// 天猫商品/SKU价格更新接口 成功返回结果 +type TmallItemPriceUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_price_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 价格更新结果 + PriceUpdateResult string `json:"price_update_result,omitempty" xml:"price_update_result,omitempty"` +} diff --git a/model/product/TmallItemPriceUpdateResponse.go b/model/product/TmallItemPriceUpdateResponse.go deleted file mode 100644 index 3c6367cb26..0000000000 --- a/model/product/TmallItemPriceUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫商品/SKU价格更新接口 API返回值 -tmall.item.price.update - -天猫商品/SKU价格更新接口,支持商品、SKU价格同时更新,支持同一商品下的SKU批量更新。 -*/ -type TmallItemPriceUpdateAPIResponse struct { - model.CommonResponse - TmallItemPriceUpdateResponse -} - -// 天猫商品/SKU价格更新接口 成功返回结果 -type TmallItemPriceUpdateResponse struct { - XMLName xml.Name `xml:"tmall_item_price_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 价格更新结果 - PriceUpdateResult string `json:"price_update_result,omitempty" xml:"price_update_result,omitempty"` -} diff --git a/model/product/TmallItemQuantityUpdateAPIRequest.go b/model/product/TmallItemQuantityUpdateAPIRequest.go new file mode 100644 index 0000000000..f9f8312e11 --- /dev/null +++ b/model/product/TmallItemQuantityUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫商品/SKU库存更新接口 API请求 +tmall.item.quantity.update + +天猫商品/SKU库存更新接口;支持商品库存更新;支持同一商品下的SKU批量更新。 +*/ +type TmallItemQuantityUpdateAPIRequest struct { + model.Params + // 商品id + _itemId int64 + // 更新SKU库存时候的SKU库存对象;如果没有SKU或者不更新SKU库存,可以不填;查找SKU目前支持ID,属性串和商家编码三种模式,建议选用一种最合适的,切勿滥用,一次调用中如果混合使用,更新结果不可预期! + _skuQuantities []UpdateSkuQuantity + // 商品库存更新时候的可选参数 + _options *UpdateItemQuantityOption + // 商品库存数;增量编辑方式支持正数、负数。(无SKU商品使用这个字段) + _itemQuantity int64 +} + +// 初始化TmallItemQuantityUpdateAPIRequest对象 +func NewTmallItemQuantityUpdateRequest() *TmallItemQuantityUpdateAPIRequest{ + return &TmallItemQuantityUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemQuantityUpdateAPIRequest) GetApiMethodName() string { + return "tmall.item.quantity.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemQuantityUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TmallItemQuantityUpdateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallItemQuantityUpdateAPIRequest) GetItemId() int64 { + return r._itemId +} +// SkuQuantities Setter +// 更新SKU库存时候的SKU库存对象;如果没有SKU或者不更新SKU库存,可以不填;查找SKU目前支持ID,属性串和商家编码三种模式,建议选用一种最合适的,切勿滥用,一次调用中如果混合使用,更新结果不可预期! +func (r *TmallItemQuantityUpdateAPIRequest) SetSkuQuantities(_skuQuantities []UpdateSkuQuantity) error { + r._skuQuantities = _skuQuantities + r.Set("sku_quantities", _skuQuantities) + return nil +} + +// SkuQuantities Getter +func (r TmallItemQuantityUpdateAPIRequest) GetSkuQuantities() []UpdateSkuQuantity { + return r._skuQuantities +} +// Options Setter +// 商品库存更新时候的可选参数 +func (r *TmallItemQuantityUpdateAPIRequest) SetOptions(_options *UpdateItemQuantityOption) error { + r._options = _options + r.Set("options", _options) + return nil +} + +// Options Getter +func (r TmallItemQuantityUpdateAPIRequest) GetOptions() *UpdateItemQuantityOption { + return r._options +} +// ItemQuantity Setter +// 商品库存数;增量编辑方式支持正数、负数。(无SKU商品使用这个字段) +func (r *TmallItemQuantityUpdateAPIRequest) SetItemQuantity(_itemQuantity int64) error { + r._itemQuantity = _itemQuantity + r.Set("item_quantity", _itemQuantity) + return nil +} + +// ItemQuantity Getter +func (r TmallItemQuantityUpdateAPIRequest) GetItemQuantity() int64 { + return r._itemQuantity +} diff --git a/model/product/TmallItemQuantityUpdateAPIResponse.go b/model/product/TmallItemQuantityUpdateAPIResponse.go new file mode 100644 index 0000000000..5821c8360f --- /dev/null +++ b/model/product/TmallItemQuantityUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫商品/SKU库存更新接口 API返回值 +tmall.item.quantity.update + +天猫商品/SKU库存更新接口;支持商品库存更新;支持同一商品下的SKU批量更新。 +*/ +type TmallItemQuantityUpdateAPIResponse struct { + model.CommonResponse + TmallItemQuantityUpdateAPIResponseModel +} + +// 天猫商品/SKU库存更新接口 成功返回结果 +type TmallItemQuantityUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_quantity_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 库存更新结果,商品id + QuantityUpdateResult string `json:"quantity_update_result,omitempty" xml:"quantity_update_result,omitempty"` +} diff --git a/model/product/TmallItemQuantityUpdateResponse.go b/model/product/TmallItemQuantityUpdateResponse.go deleted file mode 100644 index a5b1160234..0000000000 --- a/model/product/TmallItemQuantityUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫商品/SKU库存更新接口 API返回值 -tmall.item.quantity.update - -天猫商品/SKU库存更新接口;支持商品库存更新;支持同一商品下的SKU批量更新。 -*/ -type TmallItemQuantityUpdateAPIResponse struct { - model.CommonResponse - TmallItemQuantityUpdateResponse -} - -// 天猫商品/SKU库存更新接口 成功返回结果 -type TmallItemQuantityUpdateResponse struct { - XMLName xml.Name `xml:"tmall_item_quantity_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 库存更新结果,商品id - QuantityUpdateResult string `json:"quantity_update_result,omitempty" xml:"quantity_update_result,omitempty"` -} diff --git a/model/product/TmallItemSchemaAddAPIRequest.go b/model/product/TmallItemSchemaAddAPIRequest.go new file mode 100644 index 0000000000..3ab486d68d --- /dev/null +++ b/model/product/TmallItemSchemaAddAPIRequest.go @@ -0,0 +1,80 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫根据规则发布商品 API请求 +tmall.item.schema.add + +天猫TopSchema发布商品。 +*/ +type TmallItemSchemaAddAPIRequest struct { + model.Params + // 商品发布的目标类目,必须是叶子类目 + _categoryId int64 + // 发布商品的productId,如果tmall.product.match.schema.get获取到得字段为空,这个参数传入0,否则需要通过tmall.product.schema.match查询到得可用productId + _productId int64 + // 根据tmall.item.add.schema.get生成的商品发布规则入参数据 + _xmlData string +} + +// 初始化TmallItemSchemaAddAPIRequest对象 +func NewTmallItemSchemaAddRequest() *TmallItemSchemaAddAPIRequest{ + return &TmallItemSchemaAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemSchemaAddAPIRequest) GetApiMethodName() string { + return "tmall.item.schema.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemSchemaAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CategoryId Setter +// 商品发布的目标类目,必须是叶子类目 +func (r *TmallItemSchemaAddAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r TmallItemSchemaAddAPIRequest) GetCategoryId() int64 { + return r._categoryId +} +// ProductId Setter +// 发布商品的productId,如果tmall.product.match.schema.get获取到得字段为空,这个参数传入0,否则需要通过tmall.product.schema.match查询到得可用productId +func (r *TmallItemSchemaAddAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TmallItemSchemaAddAPIRequest) GetProductId() int64 { + return r._productId +} +// XmlData Setter +// 根据tmall.item.add.schema.get生成的商品发布规则入参数据 +func (r *TmallItemSchemaAddAPIRequest) SetXmlData(_xmlData string) error { + r._xmlData = _xmlData + r.Set("xml_data", _xmlData) + return nil +} + +// XmlData Getter +func (r TmallItemSchemaAddAPIRequest) GetXmlData() string { + return r._xmlData +} diff --git a/model/product/TmallItemSchemaAddAPIResponse.go b/model/product/TmallItemSchemaAddAPIResponse.go new file mode 100644 index 0000000000..e2cacd8faa --- /dev/null +++ b/model/product/TmallItemSchemaAddAPIResponse.go @@ -0,0 +1,29 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫根据规则发布商品 API返回值 +tmall.item.schema.add + +天猫TopSchema发布商品。 +*/ +type TmallItemSchemaAddAPIResponse struct { + model.CommonResponse + TmallItemSchemaAddAPIResponseModel +} + +// 天猫根据规则发布商品 成功返回结果 +type TmallItemSchemaAddAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_schema_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回商品发布结果 + AddItemResult string `json:"add_item_result,omitempty" xml:"add_item_result,omitempty"` + // 发布商品操作成功时间 + GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` +} diff --git a/model/product/TmallItemSchemaAddResponse.go b/model/product/TmallItemSchemaAddResponse.go deleted file mode 100644 index 3393006f36..0000000000 --- a/model/product/TmallItemSchemaAddResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫根据规则发布商品 API返回值 -tmall.item.schema.add - -天猫TopSchema发布商品。 -*/ -type TmallItemSchemaAddAPIResponse struct { - model.CommonResponse - TmallItemSchemaAddResponse -} - -// 天猫根据规则发布商品 成功返回结果 -type TmallItemSchemaAddResponse struct { - XMLName xml.Name `xml:"tmall_item_schema_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回商品发布结果 - AddItemResult string `json:"add_item_result,omitempty" xml:"add_item_result,omitempty"` - // 发布商品操作成功时间 - GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` -} diff --git a/model/product/TmallItemSchemaIncrementUpdateAPIRequest.go b/model/product/TmallItemSchemaIncrementUpdateAPIRequest.go new file mode 100644 index 0000000000..2aa42e9a61 --- /dev/null +++ b/model/product/TmallItemSchemaIncrementUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫根据规则增量更新商品 API请求 +tmall.item.schema.increment.update + +增量方式修改天猫商品的API。只要是此接口支持增量修改的字段,可以同时更新。(感谢爱慕旗舰店提供API命名) +*/ +type TmallItemSchemaIncrementUpdateAPIRequest struct { + model.Params + // 需要编辑的商品ID + _itemId int64 + // 根据tmall.item.increment.update.schema.get生成的商品增量编辑规则入参数据。需要更新的字段,一定要在入参的XML重点update_fields字段中明确指明 + _xmlData string +} + +// 初始化TmallItemSchemaIncrementUpdateAPIRequest对象 +func NewTmallItemSchemaIncrementUpdateRequest() *TmallItemSchemaIncrementUpdateAPIRequest{ + return &TmallItemSchemaIncrementUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemSchemaIncrementUpdateAPIRequest) GetApiMethodName() string { + return "tmall.item.schema.increment.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemSchemaIncrementUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 需要编辑的商品ID +func (r *TmallItemSchemaIncrementUpdateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallItemSchemaIncrementUpdateAPIRequest) GetItemId() int64 { + return r._itemId +} +// XmlData Setter +// 根据tmall.item.increment.update.schema.get生成的商品增量编辑规则入参数据。需要更新的字段,一定要在入参的XML重点update_fields字段中明确指明 +func (r *TmallItemSchemaIncrementUpdateAPIRequest) SetXmlData(_xmlData string) error { + r._xmlData = _xmlData + r.Set("xml_data", _xmlData) + return nil +} + +// XmlData Getter +func (r TmallItemSchemaIncrementUpdateAPIRequest) GetXmlData() string { + return r._xmlData +} diff --git a/model/product/TmallItemSchemaIncrementUpdateAPIResponse.go b/model/product/TmallItemSchemaIncrementUpdateAPIResponse.go new file mode 100644 index 0000000000..a1d8fb027f --- /dev/null +++ b/model/product/TmallItemSchemaIncrementUpdateAPIResponse.go @@ -0,0 +1,29 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫根据规则增量更新商品 API返回值 +tmall.item.schema.increment.update + +增量方式修改天猫商品的API。只要是此接口支持增量修改的字段,可以同时更新。(感谢爱慕旗舰店提供API命名) +*/ +type TmallItemSchemaIncrementUpdateAPIResponse struct { + model.CommonResponse + TmallItemSchemaIncrementUpdateAPIResponseModel +} + +// 天猫根据规则增量更新商品 成功返回结果 +type TmallItemSchemaIncrementUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_schema_increment_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回商品发布结果 + UpdateItemResult string `json:"update_item_result,omitempty" xml:"update_item_result,omitempty"` + // 商品更新操作成功时间 + GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` +} diff --git a/model/product/TmallItemSchemaIncrementUpdateResponse.go b/model/product/TmallItemSchemaIncrementUpdateResponse.go deleted file mode 100644 index 758d02a0b4..0000000000 --- a/model/product/TmallItemSchemaIncrementUpdateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫根据规则增量更新商品 API返回值 -tmall.item.schema.increment.update - -增量方式修改天猫商品的API。只要是此接口支持增量修改的字段,可以同时更新。(感谢爱慕旗舰店提供API命名) -*/ -type TmallItemSchemaIncrementUpdateAPIResponse struct { - model.CommonResponse - TmallItemSchemaIncrementUpdateResponse -} - -// 天猫根据规则增量更新商品 成功返回结果 -type TmallItemSchemaIncrementUpdateResponse struct { - XMLName xml.Name `xml:"tmall_item_schema_increment_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回商品发布结果 - UpdateItemResult string `json:"update_item_result,omitempty" xml:"update_item_result,omitempty"` - // 商品更新操作成功时间 - GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` -} diff --git a/model/product/TmallItemSchemaUpdateAPIRequest.go b/model/product/TmallItemSchemaUpdateAPIRequest.go new file mode 100644 index 0000000000..866e4c7c8c --- /dev/null +++ b/model/product/TmallItemSchemaUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫根据规则编辑商品 API请求 +tmall.item.schema.update + +天猫根据规则编辑商品 +*/ +type TmallItemSchemaUpdateAPIRequest struct { + model.Params + // 需要编辑的商品ID + _itemId int64 + // 商品发布的目标类目,必须是叶子类目。如果没有切换类目需求不需要填写 + _categoryId int64 + // 商品发布的目标product_id。如果没有切换类目或者切换产品的需求,参数不用填写 + _productId int64 + // 根据tmall.item.update.schema.get生成的商品编辑规则入参数据 + _xmlData string +} + +// 初始化TmallItemSchemaUpdateAPIRequest对象 +func NewTmallItemSchemaUpdateRequest() *TmallItemSchemaUpdateAPIRequest{ + return &TmallItemSchemaUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemSchemaUpdateAPIRequest) GetApiMethodName() string { + return "tmall.item.schema.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemSchemaUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 需要编辑的商品ID +func (r *TmallItemSchemaUpdateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallItemSchemaUpdateAPIRequest) GetItemId() int64 { + return r._itemId +} +// CategoryId Setter +// 商品发布的目标类目,必须是叶子类目。如果没有切换类目需求不需要填写 +func (r *TmallItemSchemaUpdateAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r TmallItemSchemaUpdateAPIRequest) GetCategoryId() int64 { + return r._categoryId +} +// ProductId Setter +// 商品发布的目标product_id。如果没有切换类目或者切换产品的需求,参数不用填写 +func (r *TmallItemSchemaUpdateAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TmallItemSchemaUpdateAPIRequest) GetProductId() int64 { + return r._productId +} +// XmlData Setter +// 根据tmall.item.update.schema.get生成的商品编辑规则入参数据 +func (r *TmallItemSchemaUpdateAPIRequest) SetXmlData(_xmlData string) error { + r._xmlData = _xmlData + r.Set("xml_data", _xmlData) + return nil +} + +// XmlData Getter +func (r TmallItemSchemaUpdateAPIRequest) GetXmlData() string { + return r._xmlData +} diff --git a/model/product/TmallItemSchemaUpdateAPIResponse.go b/model/product/TmallItemSchemaUpdateAPIResponse.go new file mode 100644 index 0000000000..de50ee78ba --- /dev/null +++ b/model/product/TmallItemSchemaUpdateAPIResponse.go @@ -0,0 +1,29 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫根据规则编辑商品 API返回值 +tmall.item.schema.update + +天猫根据规则编辑商品 +*/ +type TmallItemSchemaUpdateAPIResponse struct { + model.CommonResponse + TmallItemSchemaUpdateAPIResponseModel +} + +// 天猫根据规则编辑商品 成功返回结果 +type TmallItemSchemaUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_schema_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回商品发布结果 + UpdateItemResult string `json:"update_item_result,omitempty" xml:"update_item_result,omitempty"` + // 商品更新操作成功时间 + GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` +} diff --git a/model/product/TmallItemSchemaUpdateResponse.go b/model/product/TmallItemSchemaUpdateResponse.go deleted file mode 100644 index c478ae2edd..0000000000 --- a/model/product/TmallItemSchemaUpdateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫根据规则编辑商品 API返回值 -tmall.item.schema.update - -天猫根据规则编辑商品 -*/ -type TmallItemSchemaUpdateAPIResponse struct { - model.CommonResponse - TmallItemSchemaUpdateResponse -} - -// 天猫根据规则编辑商品 成功返回结果 -type TmallItemSchemaUpdateResponse struct { - XMLName xml.Name `xml:"tmall_item_schema_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回商品发布结果 - UpdateItemResult string `json:"update_item_result,omitempty" xml:"update_item_result,omitempty"` - // 商品更新操作成功时间 - GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` -} diff --git a/model/product/TmallItemShiptimeUpdateAPIRequest.go b/model/product/TmallItemShiptimeUpdateAPIRequest.go new file mode 100644 index 0000000000..b0b2f6ae25 --- /dev/null +++ b/model/product/TmallItemShiptimeUpdateAPIRequest.go @@ -0,0 +1,124 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新商品发货时间 API请求 +tmall.item.shiptime.update + +增加更新删除商品/SKU发货时间(支持同一商品下的SKU同时批量更新) +1. + { + "shipTimeType": 2, ----相对发货时间(值为1则为绝对发货时间) + "updateType": 0 ---更新SKU + }, + + 按照指定SKU更新指定SKU的发货时间,如果原本是商品级发货时间,商品级发货时间也清空 + +2. + { + "shipTimeType": 0, -- 删除发货时间 + "updateType": 0 --更新SKU + }, + 按照指定SKU删除指定SKU的发货时间 + +3. + + { + "shipTimeType": 2, ----相对发货时间(值为1则为绝对发货时间) + "updateType": 1 ---更新商品 + }, + + 更新商品级发货时间,如果原本是SKU级发货时间,清空所有SKU上的发货时间 + +4. + { + "shipTimeType": 0, -- 删除发货时间 + "updateType": 1 --更新商品 + }, + 删除商品级的发货时间 +*/ +type TmallItemShiptimeUpdateAPIRequest struct { + model.Params + // 商品ID + _itemId int64 + // 被更新发货时间(商品级);格式和具体设置的发货时间格式相关。绝对发货时间填写yyyy-MM-dd;相对发货时间填写数字。发货时间必须在当前时间后三天。如果设置的绝对时间小于当前时间的三天后,会清除该商品的发货时间设置。如果是相对时间小于3,则会提示出错。如果shiptimeType为0,要清除商品上的发货时间,该字段可以填任意字符,也可以不填。 + _shipTime string + // 被更新SKU的发货时间,后台会根据三个子属性去查找匹配的sku,如果找到就默认对sku进行更新,当无匹配sku且更新类型针对sku,会报错。 + _skuShipTimes []UpdateSkuShipTime + // 批量更新商品/SKU发货时间的备选项 + _option *UpdateItemShipTimeOption +} + +// 初始化TmallItemShiptimeUpdateAPIRequest对象 +func NewTmallItemShiptimeUpdateRequest() *TmallItemShiptimeUpdateAPIRequest{ + return &TmallItemShiptimeUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemShiptimeUpdateAPIRequest) GetApiMethodName() string { + return "tmall.item.shiptime.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemShiptimeUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品ID +func (r *TmallItemShiptimeUpdateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallItemShiptimeUpdateAPIRequest) GetItemId() int64 { + return r._itemId +} +// ShipTime Setter +// 被更新发货时间(商品级);格式和具体设置的发货时间格式相关。绝对发货时间填写yyyy-MM-dd;相对发货时间填写数字。发货时间必须在当前时间后三天。如果设置的绝对时间小于当前时间的三天后,会清除该商品的发货时间设置。如果是相对时间小于3,则会提示出错。如果shiptimeType为0,要清除商品上的发货时间,该字段可以填任意字符,也可以不填。 +func (r *TmallItemShiptimeUpdateAPIRequest) SetShipTime(_shipTime string) error { + r._shipTime = _shipTime + r.Set("ship_time", _shipTime) + return nil +} + +// ShipTime Getter +func (r TmallItemShiptimeUpdateAPIRequest) GetShipTime() string { + return r._shipTime +} +// SkuShipTimes Setter +// 被更新SKU的发货时间,后台会根据三个子属性去查找匹配的sku,如果找到就默认对sku进行更新,当无匹配sku且更新类型针对sku,会报错。 +func (r *TmallItemShiptimeUpdateAPIRequest) SetSkuShipTimes(_skuShipTimes []UpdateSkuShipTime) error { + r._skuShipTimes = _skuShipTimes + r.Set("sku_ship_times", _skuShipTimes) + return nil +} + +// SkuShipTimes Getter +func (r TmallItemShiptimeUpdateAPIRequest) GetSkuShipTimes() []UpdateSkuShipTime { + return r._skuShipTimes +} +// Option Setter +// 批量更新商品/SKU发货时间的备选项 +func (r *TmallItemShiptimeUpdateAPIRequest) SetOption(_option *UpdateItemShipTimeOption) error { + r._option = _option + r.Set("option", _option) + return nil +} + +// Option Getter +func (r TmallItemShiptimeUpdateAPIRequest) GetOption() *UpdateItemShipTimeOption { + return r._option +} diff --git a/model/product/TmallItemShiptimeUpdateAPIResponse.go b/model/product/TmallItemShiptimeUpdateAPIResponse.go new file mode 100644 index 0000000000..ffabf15136 --- /dev/null +++ b/model/product/TmallItemShiptimeUpdateAPIResponse.go @@ -0,0 +1,57 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新商品发货时间 API返回值 +tmall.item.shiptime.update + +增加更新删除商品/SKU发货时间(支持同一商品下的SKU同时批量更新) +1. + { + "shipTimeType": 2, ----相对发货时间(值为1则为绝对发货时间) + "updateType": 0 ---更新SKU + }, + + 按照指定SKU更新指定SKU的发货时间,如果原本是商品级发货时间,商品级发货时间也清空 + +2. + { + "shipTimeType": 0, -- 删除发货时间 + "updateType": 0 --更新SKU + }, + 按照指定SKU删除指定SKU的发货时间 + +3. + + { + "shipTimeType": 2, ----相对发货时间(值为1则为绝对发货时间) + "updateType": 1 ---更新商品 + }, + + 更新商品级发货时间,如果原本是SKU级发货时间,清空所有SKU上的发货时间 + +4. + { + "shipTimeType": 0, -- 删除发货时间 + "updateType": 1 --更新商品 + }, + 删除商品级的发货时间 +*/ +type TmallItemShiptimeUpdateAPIResponse struct { + model.CommonResponse + TmallItemShiptimeUpdateAPIResponseModel +} + +// 更新商品发货时间 成功返回结果 +type TmallItemShiptimeUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_shiptime_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 被修改的商品ID + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/product/TmallItemShiptimeUpdateResponse.go b/model/product/TmallItemShiptimeUpdateResponse.go deleted file mode 100644 index ffe0609a82..0000000000 --- a/model/product/TmallItemShiptimeUpdateResponse.go +++ /dev/null @@ -1,57 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新商品发货时间 API返回值 -tmall.item.shiptime.update - -增加更新删除商品/SKU发货时间(支持同一商品下的SKU同时批量更新) -1. - { - "shipTimeType": 2, ----相对发货时间(值为1则为绝对发货时间) - "updateType": 0 ---更新SKU - }, - - 按照指定SKU更新指定SKU的发货时间,如果原本是商品级发货时间,商品级发货时间也清空 - -2. - { - "shipTimeType": 0, -- 删除发货时间 - "updateType": 0 --更新SKU - }, - 按照指定SKU删除指定SKU的发货时间 - -3. - - { - "shipTimeType": 2, ----相对发货时间(值为1则为绝对发货时间) - "updateType": 1 ---更新商品 - }, - - 更新商品级发货时间,如果原本是SKU级发货时间,清空所有SKU上的发货时间 - -4. - { - "shipTimeType": 0, -- 删除发货时间 - "updateType": 1 --更新商品 - }, - 删除商品级的发货时间 -*/ -type TmallItemShiptimeUpdateAPIResponse struct { - model.CommonResponse - TmallItemShiptimeUpdateResponse -} - -// 更新商品发货时间 成功返回结果 -type TmallItemShiptimeUpdateResponse struct { - XMLName xml.Name `xml:"tmall_item_shiptime_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 被修改的商品ID - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/product/TmallItemSimpleschemaAddAPIRequest.go b/model/product/TmallItemSimpleschemaAddAPIRequest.go new file mode 100644 index 0000000000..a76f685edf --- /dev/null +++ b/model/product/TmallItemSimpleschemaAddAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫简化发布商品 API请求 +tmall.item.simpleschema.add + +天猫简化版schema发布商品。 +*/ +type TmallItemSimpleschemaAddAPIRequest struct { + model.Params + // 根据tmall.item.add.simpleschema.get生成的商品发布规则入参数据 + _schemaXmlFields string +} + +// 初始化TmallItemSimpleschemaAddAPIRequest对象 +func NewTmallItemSimpleschemaAddRequest() *TmallItemSimpleschemaAddAPIRequest{ + return &TmallItemSimpleschemaAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemSimpleschemaAddAPIRequest) GetApiMethodName() string { + return "tmall.item.simpleschema.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemSimpleschemaAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SchemaXmlFields Setter +// 根据tmall.item.add.simpleschema.get生成的商品发布规则入参数据 +func (r *TmallItemSimpleschemaAddAPIRequest) SetSchemaXmlFields(_schemaXmlFields string) error { + r._schemaXmlFields = _schemaXmlFields + r.Set("schema_xml_fields", _schemaXmlFields) + return nil +} + +// SchemaXmlFields Getter +func (r TmallItemSimpleschemaAddAPIRequest) GetSchemaXmlFields() string { + return r._schemaXmlFields +} diff --git a/model/product/TmallItemSimpleschemaAddAPIResponse.go b/model/product/TmallItemSimpleschemaAddAPIResponse.go new file mode 100644 index 0000000000..8cda14279a --- /dev/null +++ b/model/product/TmallItemSimpleschemaAddAPIResponse.go @@ -0,0 +1,29 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫简化发布商品 API返回值 +tmall.item.simpleschema.add + +天猫简化版schema发布商品。 +*/ +type TmallItemSimpleschemaAddAPIResponse struct { + model.CommonResponse + TmallItemSimpleschemaAddAPIResponseModel +} + +// 天猫简化发布商品 成功返回结果 +type TmallItemSimpleschemaAddAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_simpleschema_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 发布成功后返回商品ID + Result string `json:"result,omitempty" xml:"result,omitempty"` + // 商品最后发布时间。 + GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` +} diff --git a/model/product/TmallItemSimpleschemaAddResponse.go b/model/product/TmallItemSimpleschemaAddResponse.go deleted file mode 100644 index c2748bbae1..0000000000 --- a/model/product/TmallItemSimpleschemaAddResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫简化发布商品 API返回值 -tmall.item.simpleschema.add - -天猫简化版schema发布商品。 -*/ -type TmallItemSimpleschemaAddAPIResponse struct { - model.CommonResponse - TmallItemSimpleschemaAddResponse -} - -// 天猫简化发布商品 成功返回结果 -type TmallItemSimpleschemaAddResponse struct { - XMLName xml.Name `xml:"tmall_item_simpleschema_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 发布成功后返回商品ID - Result string `json:"result,omitempty" xml:"result,omitempty"` - // 商品最后发布时间。 - GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` -} diff --git a/model/product/TmallItemSimpleschemaUpdateAPIRequest.go b/model/product/TmallItemSimpleschemaUpdateAPIRequest.go new file mode 100644 index 0000000000..99a140b7e2 --- /dev/null +++ b/model/product/TmallItemSimpleschemaUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫简化编辑商品 API请求 +tmall.item.simpleschema.update + +国外大商家天猫简化编辑商品 +*/ +type TmallItemSimpleschemaUpdateAPIRequest struct { + model.Params + // 商品id + _itemId int64 + // 编辑商品时提交的xml信息 + _schemaXmlFields string +} + +// 初始化TmallItemSimpleschemaUpdateAPIRequest对象 +func NewTmallItemSimpleschemaUpdateRequest() *TmallItemSimpleschemaUpdateAPIRequest{ + return &TmallItemSimpleschemaUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemSimpleschemaUpdateAPIRequest) GetApiMethodName() string { + return "tmall.item.simpleschema.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemSimpleschemaUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TmallItemSimpleschemaUpdateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallItemSimpleschemaUpdateAPIRequest) GetItemId() int64 { + return r._itemId +} +// SchemaXmlFields Setter +// 编辑商品时提交的xml信息 +func (r *TmallItemSimpleschemaUpdateAPIRequest) SetSchemaXmlFields(_schemaXmlFields string) error { + r._schemaXmlFields = _schemaXmlFields + r.Set("schema_xml_fields", _schemaXmlFields) + return nil +} + +// SchemaXmlFields Getter +func (r TmallItemSimpleschemaUpdateAPIRequest) GetSchemaXmlFields() string { + return r._schemaXmlFields +} diff --git a/model/product/TmallItemSimpleschemaUpdateAPIResponse.go b/model/product/TmallItemSimpleschemaUpdateAPIResponse.go new file mode 100644 index 0000000000..810d4d9524 --- /dev/null +++ b/model/product/TmallItemSimpleschemaUpdateAPIResponse.go @@ -0,0 +1,31 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫简化编辑商品 API返回值 +tmall.item.simpleschema.update + +国外大商家天猫简化编辑商品 +*/ +type TmallItemSimpleschemaUpdateAPIResponse struct { + model.CommonResponse + TmallItemSimpleschemaUpdateAPIResponseModel +} + +// 天猫简化编辑商品 成功返回结果 +type TmallItemSimpleschemaUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_simpleschema_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // sku与outerId映射信息 + SkuMapJson string `json:"sku_map_json,omitempty" xml:"sku_map_json,omitempty"` + // 编辑商品的itemid + UpdateItemResult string `json:"update_item_result,omitempty" xml:"update_item_result,omitempty"` + // 编辑商品操作成功时间 + GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` +} diff --git a/model/product/TmallItemSimpleschemaUpdateResponse.go b/model/product/TmallItemSimpleschemaUpdateResponse.go deleted file mode 100644 index 5896be7de8..0000000000 --- a/model/product/TmallItemSimpleschemaUpdateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫简化编辑商品 API返回值 -tmall.item.simpleschema.update - -国外大商家天猫简化编辑商品 -*/ -type TmallItemSimpleschemaUpdateAPIResponse struct { - model.CommonResponse - TmallItemSimpleschemaUpdateResponse -} - -// 天猫简化编辑商品 成功返回结果 -type TmallItemSimpleschemaUpdateResponse struct { - XMLName xml.Name `xml:"tmall_item_simpleschema_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // sku与outerId映射信息 - SkuMapJson string `json:"sku_map_json,omitempty" xml:"sku_map_json,omitempty"` - // 编辑商品的itemid - UpdateItemResult string `json:"update_item_result,omitempty" xml:"update_item_result,omitempty"` - // 编辑商品操作成功时间 - GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` -} diff --git a/model/product/TmallItemSizemappingTemplateCreateAPIRequest.go b/model/product/TmallItemSizemappingTemplateCreateAPIRequest.go new file mode 100644 index 0000000000..a28fdf5ab6 --- /dev/null +++ b/model/product/TmallItemSizemappingTemplateCreateAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增天猫商品尺码表模板 API请求 +tmall.item.sizemapping.template.create + +新增天猫商品尺码表模板

男鞋、女鞋、运动鞋、户外鞋类目,尺码表维度为:
脚长(cm) 必选

内衣-文胸类目,尺码表维度为:
上胸围(cm) 必选
下胸围(cm) 必选
上下胸围差(cm) 必选
身高(cm)
体重(公斤)

内衣-内裤类目,尺码表维度为:
腰围(cm) 必选
臀围(cm) 必选
身高(cm)
体重(公斤)
裤长(cm)
裆部(cm)
脚口(cm)
腿围(cm)

内衣-睡衣上衣/保暖上衣/睡袍类目,尺码表维度为:
身高(cm) 必选
胸围(cm) 必选
体重(公斤)
腰围(cm)
肩宽(cm)
袖长(cm)
衣长(cm)
背宽(cm)
前长(cm)
下摆围(cm)
袖口(cm)
袖肥(cm)
领口(cm)

内衣-睡裤/保暖裤类目,尺码维度为:
身高(cm) 必选
腰围(cm) 必选
体重(公斤)
臀围(cm)
裆部(cm)
裤长(cm)
脚口(cm)
腿围(cm)
裤侧长(cm)

内衣-睡裙类目,尺码维度为:
身高(cm) 必选
胸围(cm) 必选
体重(公斤)
裙长(cm)
腰围(cm)
袖长(cm)
肩宽(cm)
背宽(cm)
腿围(cm)
臀围(cm)
底摆(cm)

男装、女装、运动服、户外服等上装类目,尺码维度为(至少两项必选):
身高(cm)
体重(公斤)
肩宽(cm)
胸围(cm)
腰围(cm)
袖长(cm)
衣长(cm)
背宽(cm)
前长(cm)
摆围(cm)
下摆围(cm)
袖口(cm)
袖肥(cm)
中腰(cm)
领深(cm)
领高(cm)
领宽(cm)
领围(cm)
圆摆后中长(cm)
平摆衣长(cm)
圆摆衣长(cm)

男装、女装、运动服、户外服等下装类目,尺码维度为(至少两项必选):
身高(cm)
体重(公斤)
腰围(cm)
臀围(cm)
裤长(cm)
裙长(cm)
裙摆长(cm)
腿围(cm)
膝围(cm)
小脚围(cm)
拉伸腰围(cm)
坐围(cm)
拉伸坐围(cm)
脚口(cm)
前浪(cm)
后浪(cm)
横档(cm)

如果上述维度满足,可以自定义最多5个维度。

模板格式为:
尺码值:维度名称:数值
如:M:身高(cm):160,L:身高(cm):170 +*/ +type TmallItemSizemappingTemplateCreateAPIRequest struct { + model.Params + // 尺码表模板名称 + _templateName string + // 尺码表模板内容,格式为"尺码值:维度名称:数值,尺码值:维度名称:数值"。其中,数值的单位,长度单位为厘米(cm),体重单位为公斤(kg)。尺码值,维度数据不能包含数字,特殊字符。数值为0-999.9的数字,且最多一位小数。 + _templateContent string +} + +// 初始化TmallItemSizemappingTemplateCreateAPIRequest对象 +func NewTmallItemSizemappingTemplateCreateRequest() *TmallItemSizemappingTemplateCreateAPIRequest{ + return &TmallItemSizemappingTemplateCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemSizemappingTemplateCreateAPIRequest) GetApiMethodName() string { + return "tmall.item.sizemapping.template.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemSizemappingTemplateCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TemplateName Setter +// 尺码表模板名称 +func (r *TmallItemSizemappingTemplateCreateAPIRequest) SetTemplateName(_templateName string) error { + r._templateName = _templateName + r.Set("template_name", _templateName) + return nil +} + +// TemplateName Getter +func (r TmallItemSizemappingTemplateCreateAPIRequest) GetTemplateName() string { + return r._templateName +} +// TemplateContent Setter +// 尺码表模板内容,格式为"尺码值:维度名称:数值,尺码值:维度名称:数值"。其中,数值的单位,长度单位为厘米(cm),体重单位为公斤(kg)。尺码值,维度数据不能包含数字,特殊字符。数值为0-999.9的数字,且最多一位小数。 +func (r *TmallItemSizemappingTemplateCreateAPIRequest) SetTemplateContent(_templateContent string) error { + r._templateContent = _templateContent + r.Set("template_content", _templateContent) + return nil +} + +// TemplateContent Getter +func (r TmallItemSizemappingTemplateCreateAPIRequest) GetTemplateContent() string { + return r._templateContent +} diff --git a/model/product/TmallItemSizemappingTemplateCreateAPIResponse.go b/model/product/TmallItemSizemappingTemplateCreateAPIResponse.go new file mode 100644 index 0000000000..7ba62827b0 --- /dev/null +++ b/model/product/TmallItemSizemappingTemplateCreateAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增天猫商品尺码表模板 API返回值 +tmall.item.sizemapping.template.create + +新增天猫商品尺码表模板

男鞋、女鞋、运动鞋、户外鞋类目,尺码表维度为:
脚长(cm) 必选

内衣-文胸类目,尺码表维度为:
上胸围(cm) 必选
下胸围(cm) 必选
上下胸围差(cm) 必选
身高(cm)
体重(公斤)

内衣-内裤类目,尺码表维度为:
腰围(cm) 必选
臀围(cm) 必选
身高(cm)
体重(公斤)
裤长(cm)
裆部(cm)
脚口(cm)
腿围(cm)

内衣-睡衣上衣/保暖上衣/睡袍类目,尺码表维度为:
身高(cm) 必选
胸围(cm) 必选
体重(公斤)
腰围(cm)
肩宽(cm)
袖长(cm)
衣长(cm)
背宽(cm)
前长(cm)
下摆围(cm)
袖口(cm)
袖肥(cm)
领口(cm)

内衣-睡裤/保暖裤类目,尺码维度为:
身高(cm) 必选
腰围(cm) 必选
体重(公斤)
臀围(cm)
裆部(cm)
裤长(cm)
脚口(cm)
腿围(cm)
裤侧长(cm)

内衣-睡裙类目,尺码维度为:
身高(cm) 必选
胸围(cm) 必选
体重(公斤)
裙长(cm)
腰围(cm)
袖长(cm)
肩宽(cm)
背宽(cm)
腿围(cm)
臀围(cm)
底摆(cm)

男装、女装、运动服、户外服等上装类目,尺码维度为(至少两项必选):
身高(cm)
体重(公斤)
肩宽(cm)
胸围(cm)
腰围(cm)
袖长(cm)
衣长(cm)
背宽(cm)
前长(cm)
摆围(cm)
下摆围(cm)
袖口(cm)
袖肥(cm)
中腰(cm)
领深(cm)
领高(cm)
领宽(cm)
领围(cm)
圆摆后中长(cm)
平摆衣长(cm)
圆摆衣长(cm)

男装、女装、运动服、户外服等下装类目,尺码维度为(至少两项必选):
身高(cm)
体重(公斤)
腰围(cm)
臀围(cm)
裤长(cm)
裙长(cm)
裙摆长(cm)
腿围(cm)
膝围(cm)
小脚围(cm)
拉伸腰围(cm)
坐围(cm)
拉伸坐围(cm)
脚口(cm)
前浪(cm)
后浪(cm)
横档(cm)

如果上述维度满足,可以自定义最多5个维度。

模板格式为:
尺码值:维度名称:数值
如:M:身高(cm):160,L:身高(cm):170 +*/ +type TmallItemSizemappingTemplateCreateAPIResponse struct { + model.CommonResponse + TmallItemSizemappingTemplateCreateAPIResponseModel +} + +// 新增天猫商品尺码表模板 成功返回结果 +type TmallItemSizemappingTemplateCreateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_sizemapping_template_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 尺码表模板 + SizeMappingTemplate *SizeMappingTemplateDo `json:"size_mapping_template,omitempty" xml:"size_mapping_template,omitempty"` +} diff --git a/model/product/TmallItemSizemappingTemplateCreateResponse.go b/model/product/TmallItemSizemappingTemplateCreateResponse.go deleted file mode 100644 index 661ea33e8b..0000000000 --- a/model/product/TmallItemSizemappingTemplateCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增天猫商品尺码表模板 API返回值 -tmall.item.sizemapping.template.create - -新增天猫商品尺码表模板

男鞋、女鞋、运动鞋、户外鞋类目,尺码表维度为:
脚长(cm) 必选

内衣-文胸类目,尺码表维度为:
上胸围(cm) 必选
下胸围(cm) 必选
上下胸围差(cm) 必选
身高(cm)
体重(公斤)

内衣-内裤类目,尺码表维度为:
腰围(cm) 必选
臀围(cm) 必选
身高(cm)
体重(公斤)
裤长(cm)
裆部(cm)
脚口(cm)
腿围(cm)

内衣-睡衣上衣/保暖上衣/睡袍类目,尺码表维度为:
身高(cm) 必选
胸围(cm) 必选
体重(公斤)
腰围(cm)
肩宽(cm)
袖长(cm)
衣长(cm)
背宽(cm)
前长(cm)
下摆围(cm)
袖口(cm)
袖肥(cm)
领口(cm)

内衣-睡裤/保暖裤类目,尺码维度为:
身高(cm) 必选
腰围(cm) 必选
体重(公斤)
臀围(cm)
裆部(cm)
裤长(cm)
脚口(cm)
腿围(cm)
裤侧长(cm)

内衣-睡裙类目,尺码维度为:
身高(cm) 必选
胸围(cm) 必选
体重(公斤)
裙长(cm)
腰围(cm)
袖长(cm)
肩宽(cm)
背宽(cm)
腿围(cm)
臀围(cm)
底摆(cm)

男装、女装、运动服、户外服等上装类目,尺码维度为(至少两项必选):
身高(cm)
体重(公斤)
肩宽(cm)
胸围(cm)
腰围(cm)
袖长(cm)
衣长(cm)
背宽(cm)
前长(cm)
摆围(cm)
下摆围(cm)
袖口(cm)
袖肥(cm)
中腰(cm)
领深(cm)
领高(cm)
领宽(cm)
领围(cm)
圆摆后中长(cm)
平摆衣长(cm)
圆摆衣长(cm)

男装、女装、运动服、户外服等下装类目,尺码维度为(至少两项必选):
身高(cm)
体重(公斤)
腰围(cm)
臀围(cm)
裤长(cm)
裙长(cm)
裙摆长(cm)
腿围(cm)
膝围(cm)
小脚围(cm)
拉伸腰围(cm)
坐围(cm)
拉伸坐围(cm)
脚口(cm)
前浪(cm)
后浪(cm)
横档(cm)

如果上述维度满足,可以自定义最多5个维度。

模板格式为:
尺码值:维度名称:数值
如:M:身高(cm):160,L:身高(cm):170 -*/ -type TmallItemSizemappingTemplateCreateAPIResponse struct { - model.CommonResponse - TmallItemSizemappingTemplateCreateResponse -} - -// 新增天猫商品尺码表模板 成功返回结果 -type TmallItemSizemappingTemplateCreateResponse struct { - XMLName xml.Name `xml:"tmall_item_sizemapping_template_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 尺码表模板 - SizeMappingTemplate *SizeMappingTemplateDo `json:"size_mapping_template,omitempty" xml:"size_mapping_template,omitempty"` -} diff --git a/model/product/TmallItemSizemappingTemplateDeleteAPIRequest.go b/model/product/TmallItemSizemappingTemplateDeleteAPIRequest.go new file mode 100644 index 0000000000..7014c0c992 --- /dev/null +++ b/model/product/TmallItemSizemappingTemplateDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除天猫商品尺码表模板 API请求 +tmall.item.sizemapping.template.delete + +删除天猫商品尺码表模板 +*/ +type TmallItemSizemappingTemplateDeleteAPIRequest struct { + model.Params + // 尺码表模板ID + _templateId int64 +} + +// 初始化TmallItemSizemappingTemplateDeleteAPIRequest对象 +func NewTmallItemSizemappingTemplateDeleteRequest() *TmallItemSizemappingTemplateDeleteAPIRequest{ + return &TmallItemSizemappingTemplateDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemSizemappingTemplateDeleteAPIRequest) GetApiMethodName() string { + return "tmall.item.sizemapping.template.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemSizemappingTemplateDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TemplateId Setter +// 尺码表模板ID +func (r *TmallItemSizemappingTemplateDeleteAPIRequest) SetTemplateId(_templateId int64) error { + r._templateId = _templateId + r.Set("template_id", _templateId) + return nil +} + +// TemplateId Getter +func (r TmallItemSizemappingTemplateDeleteAPIRequest) GetTemplateId() int64 { + return r._templateId +} diff --git a/model/product/TmallItemSizemappingTemplateDeleteAPIResponse.go b/model/product/TmallItemSizemappingTemplateDeleteAPIResponse.go new file mode 100644 index 0000000000..3226ffec58 --- /dev/null +++ b/model/product/TmallItemSizemappingTemplateDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除天猫商品尺码表模板 API返回值 +tmall.item.sizemapping.template.delete + +删除天猫商品尺码表模板 +*/ +type TmallItemSizemappingTemplateDeleteAPIResponse struct { + model.CommonResponse + TmallItemSizemappingTemplateDeleteAPIResponseModel +} + +// 删除天猫商品尺码表模板 成功返回结果 +type TmallItemSizemappingTemplateDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_sizemapping_template_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 尺码表模板ID + TemplateId int64 `json:"template_id,omitempty" xml:"template_id,omitempty"` +} diff --git a/model/product/TmallItemSizemappingTemplateDeleteResponse.go b/model/product/TmallItemSizemappingTemplateDeleteResponse.go deleted file mode 100644 index f3c011bdd3..0000000000 --- a/model/product/TmallItemSizemappingTemplateDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除天猫商品尺码表模板 API返回值 -tmall.item.sizemapping.template.delete - -删除天猫商品尺码表模板 -*/ -type TmallItemSizemappingTemplateDeleteAPIResponse struct { - model.CommonResponse - TmallItemSizemappingTemplateDeleteResponse -} - -// 删除天猫商品尺码表模板 成功返回结果 -type TmallItemSizemappingTemplateDeleteResponse struct { - XMLName xml.Name `xml:"tmall_item_sizemapping_template_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 尺码表模板ID - TemplateId int64 `json:"template_id,omitempty" xml:"template_id,omitempty"` -} diff --git a/model/product/TmallItemSizemappingTemplateGetAPIRequest.go b/model/product/TmallItemSizemappingTemplateGetAPIRequest.go new file mode 100644 index 0000000000..f316da836a --- /dev/null +++ b/model/product/TmallItemSizemappingTemplateGetAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取天猫商品尺码表模板 API请求 +tmall.item.sizemapping.template.get + +获取天猫商品尺码表模板 +*/ +type TmallItemSizemappingTemplateGetAPIRequest struct { + model.Params + // 尺码表模板ID + _templateId int64 +} + +// 初始化TmallItemSizemappingTemplateGetAPIRequest对象 +func NewTmallItemSizemappingTemplateGetRequest() *TmallItemSizemappingTemplateGetAPIRequest{ + return &TmallItemSizemappingTemplateGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemSizemappingTemplateGetAPIRequest) GetApiMethodName() string { + return "tmall.item.sizemapping.template.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemSizemappingTemplateGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TemplateId Setter +// 尺码表模板ID +func (r *TmallItemSizemappingTemplateGetAPIRequest) SetTemplateId(_templateId int64) error { + r._templateId = _templateId + r.Set("template_id", _templateId) + return nil +} + +// TemplateId Getter +func (r TmallItemSizemappingTemplateGetAPIRequest) GetTemplateId() int64 { + return r._templateId +} diff --git a/model/product/TmallItemSizemappingTemplateGetAPIResponse.go b/model/product/TmallItemSizemappingTemplateGetAPIResponse.go new file mode 100644 index 0000000000..567b36a072 --- /dev/null +++ b/model/product/TmallItemSizemappingTemplateGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取天猫商品尺码表模板 API返回值 +tmall.item.sizemapping.template.get + +获取天猫商品尺码表模板 +*/ +type TmallItemSizemappingTemplateGetAPIResponse struct { + model.CommonResponse + TmallItemSizemappingTemplateGetAPIResponseModel +} + +// 获取天猫商品尺码表模板 成功返回结果 +type TmallItemSizemappingTemplateGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_sizemapping_template_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 尺码表模板 + SizeMappingTemplate *TmallItemSizemappingTemplateGetModel `json:"size_mapping_template,omitempty" xml:"size_mapping_template,omitempty"` +} diff --git a/model/product/TmallItemSizemappingTemplateGetResponse.go b/model/product/TmallItemSizemappingTemplateGetResponse.go deleted file mode 100644 index f0bafc83bf..0000000000 --- a/model/product/TmallItemSizemappingTemplateGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取天猫商品尺码表模板 API返回值 -tmall.item.sizemapping.template.get - -获取天猫商品尺码表模板 -*/ -type TmallItemSizemappingTemplateGetAPIResponse struct { - model.CommonResponse - TmallItemSizemappingTemplateGetResponse -} - -// 获取天猫商品尺码表模板 成功返回结果 -type TmallItemSizemappingTemplateGetResponse struct { - XMLName xml.Name `xml:"tmall_item_sizemapping_template_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 尺码表模板 - SizeMappingTemplate *TmallItemSizemappingTemplateGetModel `json:"size_mapping_template,omitempty" xml:"size_mapping_template,omitempty"` -} diff --git a/model/product/TmallItemSizemappingTemplateUpdateAPIRequest.go b/model/product/TmallItemSizemappingTemplateUpdateAPIRequest.go new file mode 100644 index 0000000000..b49ed9be62 --- /dev/null +++ b/model/product/TmallItemSizemappingTemplateUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新天猫商品尺码表模板 API请求 +tmall.item.sizemapping.template.update + +更新天猫商品尺码表模板 +*/ +type TmallItemSizemappingTemplateUpdateAPIRequest struct { + model.Params + // 尺码表模板ID + _templateId int64 + // 尺码表模板名称 + _templateName string + // 尺码表模板内容,格式为"尺码值:维度名称:数值,尺码值:维度名称:数值"。其中,数值的单位,长度单位为厘米(cm),体重单位为公斤(kg)。尺码值,维度数据不能包含数字,特殊字符。数值为0-999.9的数字,且最多一位小数。 + _templateContent string +} + +// 初始化TmallItemSizemappingTemplateUpdateAPIRequest对象 +func NewTmallItemSizemappingTemplateUpdateRequest() *TmallItemSizemappingTemplateUpdateAPIRequest{ + return &TmallItemSizemappingTemplateUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemSizemappingTemplateUpdateAPIRequest) GetApiMethodName() string { + return "tmall.item.sizemapping.template.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemSizemappingTemplateUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TemplateId Setter +// 尺码表模板ID +func (r *TmallItemSizemappingTemplateUpdateAPIRequest) SetTemplateId(_templateId int64) error { + r._templateId = _templateId + r.Set("template_id", _templateId) + return nil +} + +// TemplateId Getter +func (r TmallItemSizemappingTemplateUpdateAPIRequest) GetTemplateId() int64 { + return r._templateId +} +// TemplateName Setter +// 尺码表模板名称 +func (r *TmallItemSizemappingTemplateUpdateAPIRequest) SetTemplateName(_templateName string) error { + r._templateName = _templateName + r.Set("template_name", _templateName) + return nil +} + +// TemplateName Getter +func (r TmallItemSizemappingTemplateUpdateAPIRequest) GetTemplateName() string { + return r._templateName +} +// TemplateContent Setter +// 尺码表模板内容,格式为"尺码值:维度名称:数值,尺码值:维度名称:数值"。其中,数值的单位,长度单位为厘米(cm),体重单位为公斤(kg)。尺码值,维度数据不能包含数字,特殊字符。数值为0-999.9的数字,且最多一位小数。 +func (r *TmallItemSizemappingTemplateUpdateAPIRequest) SetTemplateContent(_templateContent string) error { + r._templateContent = _templateContent + r.Set("template_content", _templateContent) + return nil +} + +// TemplateContent Getter +func (r TmallItemSizemappingTemplateUpdateAPIRequest) GetTemplateContent() string { + return r._templateContent +} diff --git a/model/product/TmallItemSizemappingTemplateUpdateAPIResponse.go b/model/product/TmallItemSizemappingTemplateUpdateAPIResponse.go new file mode 100644 index 0000000000..7c950015ef --- /dev/null +++ b/model/product/TmallItemSizemappingTemplateUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新天猫商品尺码表模板 API返回值 +tmall.item.sizemapping.template.update + +更新天猫商品尺码表模板 +*/ +type TmallItemSizemappingTemplateUpdateAPIResponse struct { + model.CommonResponse + TmallItemSizemappingTemplateUpdateAPIResponseModel +} + +// 更新天猫商品尺码表模板 成功返回结果 +type TmallItemSizemappingTemplateUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_sizemapping_template_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 尺码表模板 + SizeMappingTemplate *SizeMappingTemplateDo `json:"size_mapping_template,omitempty" xml:"size_mapping_template,omitempty"` +} diff --git a/model/product/TmallItemSizemappingTemplateUpdateResponse.go b/model/product/TmallItemSizemappingTemplateUpdateResponse.go deleted file mode 100644 index cee97a6c90..0000000000 --- a/model/product/TmallItemSizemappingTemplateUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新天猫商品尺码表模板 API返回值 -tmall.item.sizemapping.template.update - -更新天猫商品尺码表模板 -*/ -type TmallItemSizemappingTemplateUpdateAPIResponse struct { - model.CommonResponse - TmallItemSizemappingTemplateUpdateResponse -} - -// 更新天猫商品尺码表模板 成功返回结果 -type TmallItemSizemappingTemplateUpdateResponse struct { - XMLName xml.Name `xml:"tmall_item_sizemapping_template_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 尺码表模板 - SizeMappingTemplate *SizeMappingTemplateDo `json:"size_mapping_template,omitempty" xml:"size_mapping_template,omitempty"` -} diff --git a/model/product/TmallItemSizemappingTemplatesListAPIRequest.go b/model/product/TmallItemSizemappingTemplatesListAPIRequest.go new file mode 100644 index 0000000000..94549ff073 --- /dev/null +++ b/model/product/TmallItemSizemappingTemplatesListAPIRequest.go @@ -0,0 +1,38 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取天猫商品尺码表模板列表 API请求 +tmall.item.sizemapping.templates.list + +获取所有尺码表模板列表。 +*/ +type TmallItemSizemappingTemplatesListAPIRequest struct { + model.Params +} + +// 初始化TmallItemSizemappingTemplatesListAPIRequest对象 +func NewTmallItemSizemappingTemplatesListRequest() *TmallItemSizemappingTemplatesListAPIRequest{ + return &TmallItemSizemappingTemplatesListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemSizemappingTemplatesListAPIRequest) GetApiMethodName() string { + return "tmall.item.sizemapping.templates.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemSizemappingTemplatesListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/product/TmallItemSizemappingTemplatesListAPIResponse.go b/model/product/TmallItemSizemappingTemplatesListAPIResponse.go new file mode 100644 index 0000000000..2ecb94016d --- /dev/null +++ b/model/product/TmallItemSizemappingTemplatesListAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取天猫商品尺码表模板列表 API返回值 +tmall.item.sizemapping.templates.list + +获取所有尺码表模板列表。 +*/ +type TmallItemSizemappingTemplatesListAPIResponse struct { + model.CommonResponse + TmallItemSizemappingTemplatesListAPIResponseModel +} + +// 获取天猫商品尺码表模板列表 成功返回结果 +type TmallItemSizemappingTemplatesListAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_sizemapping_templates_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 尺码表模板列表 + SizeMappingTemplates []SizeMappingTemplate `json:"size_mapping_templates,omitempty" xml:"size_mapping_templates>size_mapping_template,omitempty"` +} diff --git a/model/product/TmallItemSizemappingTemplatesListResponse.go b/model/product/TmallItemSizemappingTemplatesListResponse.go deleted file mode 100644 index 23107646ec..0000000000 --- a/model/product/TmallItemSizemappingTemplatesListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取天猫商品尺码表模板列表 API返回值 -tmall.item.sizemapping.templates.list - -获取所有尺码表模板列表。 -*/ -type TmallItemSizemappingTemplatesListAPIResponse struct { - model.CommonResponse - TmallItemSizemappingTemplatesListResponse -} - -// 获取天猫商品尺码表模板列表 成功返回结果 -type TmallItemSizemappingTemplatesListResponse struct { - XMLName xml.Name `xml:"tmall_item_sizemapping_templates_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 尺码表模板列表 - SizeMappingTemplates []SizeMappingTemplate `json:"size_mapping_templates,omitempty" xml:"size_mapping_templates>size_mapping_template,omitempty"` -} diff --git a/model/product/TmallItemStoreSchemaUpdateAPIRequest.go b/model/product/TmallItemStoreSchemaUpdateAPIRequest.go new file mode 100644 index 0000000000..bcca6fe699 --- /dev/null +++ b/model/product/TmallItemStoreSchemaUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫门店商品编辑 API请求 +tmall.item.store.schema.update + +天猫门店商品编辑 +*/ +type TmallItemStoreSchemaUpdateAPIRequest struct { + model.Params + // 主商品ID + _mainItemId int64 + // 门店ID + _storeId int64 + // 商品的schema xml + _xml string +} + +// 初始化TmallItemStoreSchemaUpdateAPIRequest对象 +func NewTmallItemStoreSchemaUpdateRequest() *TmallItemStoreSchemaUpdateAPIRequest{ + return &TmallItemStoreSchemaUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemStoreSchemaUpdateAPIRequest) GetApiMethodName() string { + return "tmall.item.store.schema.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemStoreSchemaUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainItemId Setter +// 主商品ID +func (r *TmallItemStoreSchemaUpdateAPIRequest) SetMainItemId(_mainItemId int64) error { + r._mainItemId = _mainItemId + r.Set("main_item_id", _mainItemId) + return nil +} + +// MainItemId Getter +func (r TmallItemStoreSchemaUpdateAPIRequest) GetMainItemId() int64 { + return r._mainItemId +} +// StoreId Setter +// 门店ID +func (r *TmallItemStoreSchemaUpdateAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TmallItemStoreSchemaUpdateAPIRequest) GetStoreId() int64 { + return r._storeId +} +// Xml Setter +// 商品的schema xml +func (r *TmallItemStoreSchemaUpdateAPIRequest) SetXml(_xml string) error { + r._xml = _xml + r.Set("xml", _xml) + return nil +} + +// Xml Getter +func (r TmallItemStoreSchemaUpdateAPIRequest) GetXml() string { + return r._xml +} diff --git a/model/product/TmallItemStoreSchemaUpdateAPIResponse.go b/model/product/TmallItemStoreSchemaUpdateAPIResponse.go new file mode 100644 index 0000000000..95be45bb94 --- /dev/null +++ b/model/product/TmallItemStoreSchemaUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫门店商品编辑 API返回值 +tmall.item.store.schema.update + +天猫门店商品编辑 +*/ +type TmallItemStoreSchemaUpdateAPIResponse struct { + model.CommonResponse + TmallItemStoreSchemaUpdateAPIResponseModel +} + +// 天猫门店商品编辑 成功返回结果 +type TmallItemStoreSchemaUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_store_schema_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 无 + ApiResult *TmallItemStoreSchemaUpdateApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/product/TmallItemStoreSchemaUpdateResponse.go b/model/product/TmallItemStoreSchemaUpdateResponse.go deleted file mode 100644 index 0a8d28718b..0000000000 --- a/model/product/TmallItemStoreSchemaUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫门店商品编辑 API返回值 -tmall.item.store.schema.update - -天猫门店商品编辑 -*/ -type TmallItemStoreSchemaUpdateAPIResponse struct { - model.CommonResponse - TmallItemStoreSchemaUpdateResponse -} - -// 天猫门店商品编辑 成功返回结果 -type TmallItemStoreSchemaUpdateResponse struct { - XMLName xml.Name `xml:"tmall_item_store_schema_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 无 - ApiResult *TmallItemStoreSchemaUpdateApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/product/TmallItemStoreUpdateSchemaGetAPIRequest.go b/model/product/TmallItemStoreUpdateSchemaGetAPIRequest.go new file mode 100644 index 0000000000..4d45758318 --- /dev/null +++ b/model/product/TmallItemStoreUpdateSchemaGetAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫门店商品修改规则获取 API请求 +tmall.item.store.update.schema.get + +天猫门店商品修改规则获取 +*/ +type TmallItemStoreUpdateSchemaGetAPIRequest struct { + model.Params + // 主商品ID + _mainItemId int64 + // 门店ID + _storeId int64 +} + +// 初始化TmallItemStoreUpdateSchemaGetAPIRequest对象 +func NewTmallItemStoreUpdateSchemaGetRequest() *TmallItemStoreUpdateSchemaGetAPIRequest{ + return &TmallItemStoreUpdateSchemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemStoreUpdateSchemaGetAPIRequest) GetApiMethodName() string { + return "tmall.item.store.update.schema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemStoreUpdateSchemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainItemId Setter +// 主商品ID +func (r *TmallItemStoreUpdateSchemaGetAPIRequest) SetMainItemId(_mainItemId int64) error { + r._mainItemId = _mainItemId + r.Set("main_item_id", _mainItemId) + return nil +} + +// MainItemId Getter +func (r TmallItemStoreUpdateSchemaGetAPIRequest) GetMainItemId() int64 { + return r._mainItemId +} +// StoreId Setter +// 门店ID +func (r *TmallItemStoreUpdateSchemaGetAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TmallItemStoreUpdateSchemaGetAPIRequest) GetStoreId() int64 { + return r._storeId +} diff --git a/model/product/TmallItemStoreUpdateSchemaGetAPIResponse.go b/model/product/TmallItemStoreUpdateSchemaGetAPIResponse.go new file mode 100644 index 0000000000..fb74cf196a --- /dev/null +++ b/model/product/TmallItemStoreUpdateSchemaGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫门店商品修改规则获取 API返回值 +tmall.item.store.update.schema.get + +天猫门店商品修改规则获取 +*/ +type TmallItemStoreUpdateSchemaGetAPIResponse struct { + model.CommonResponse + TmallItemStoreUpdateSchemaGetAPIResponseModel +} + +// 天猫门店商品修改规则获取 成功返回结果 +type TmallItemStoreUpdateSchemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_store_update_schema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 无 + ApiResult *TmallItemStoreUpdateSchemaGetApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/product/TmallItemStoreUpdateSchemaGetResponse.go b/model/product/TmallItemStoreUpdateSchemaGetResponse.go deleted file mode 100644 index b529ed0f4b..0000000000 --- a/model/product/TmallItemStoreUpdateSchemaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫门店商品修改规则获取 API返回值 -tmall.item.store.update.schema.get - -天猫门店商品修改规则获取 -*/ -type TmallItemStoreUpdateSchemaGetAPIResponse struct { - model.CommonResponse - TmallItemStoreUpdateSchemaGetResponse -} - -// 天猫门店商品修改规则获取 成功返回结果 -type TmallItemStoreUpdateSchemaGetResponse struct { - XMLName xml.Name `xml:"tmall_item_store_update_schema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 无 - ApiResult *TmallItemStoreUpdateSchemaGetApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/product/TmallItemUpdateSchemaGetAPIRequest.go b/model/product/TmallItemUpdateSchemaGetAPIRequest.go new file mode 100644 index 0000000000..bc25f7ac8c --- /dev/null +++ b/model/product/TmallItemUpdateSchemaGetAPIRequest.go @@ -0,0 +1,80 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫编辑商品规则获取 API请求 +tmall.item.update.schema.get + +Schema方式编辑天猫商品时,编辑商品规则获取 +*/ +type TmallItemUpdateSchemaGetAPIRequest struct { + model.Params + // 需要编辑的商品ID + _itemId int64 + // 商品发布的目标类目,必须是叶子类目。如果没有切换类目需求,不需要填写。 + _categoryId int64 + // 商品发布的目标product_id。如果没有切换产品的需求,参数可以不填写。 + _productId int64 +} + +// 初始化TmallItemUpdateSchemaGetAPIRequest对象 +func NewTmallItemUpdateSchemaGetRequest() *TmallItemUpdateSchemaGetAPIRequest{ + return &TmallItemUpdateSchemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemUpdateSchemaGetAPIRequest) GetApiMethodName() string { + return "tmall.item.update.schema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemUpdateSchemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 需要编辑的商品ID +func (r *TmallItemUpdateSchemaGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallItemUpdateSchemaGetAPIRequest) GetItemId() int64 { + return r._itemId +} +// CategoryId Setter +// 商品发布的目标类目,必须是叶子类目。如果没有切换类目需求,不需要填写。 +func (r *TmallItemUpdateSchemaGetAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r TmallItemUpdateSchemaGetAPIRequest) GetCategoryId() int64 { + return r._categoryId +} +// ProductId Setter +// 商品发布的目标product_id。如果没有切换产品的需求,参数可以不填写。 +func (r *TmallItemUpdateSchemaGetAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TmallItemUpdateSchemaGetAPIRequest) GetProductId() int64 { + return r._productId +} diff --git a/model/product/TmallItemUpdateSchemaGetAPIResponse.go b/model/product/TmallItemUpdateSchemaGetAPIResponse.go new file mode 100644 index 0000000000..8a644d4062 --- /dev/null +++ b/model/product/TmallItemUpdateSchemaGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫编辑商品规则获取 API返回值 +tmall.item.update.schema.get + +Schema方式编辑天猫商品时,编辑商品规则获取 +*/ +type TmallItemUpdateSchemaGetAPIResponse struct { + model.CommonResponse + TmallItemUpdateSchemaGetAPIResponseModel +} + +// 天猫编辑商品规则获取 成功返回结果 +type TmallItemUpdateSchemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_update_schema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回发布商品的规则文档 + UpdateItemResult string `json:"update_item_result,omitempty" xml:"update_item_result,omitempty"` +} diff --git a/model/product/TmallItemUpdateSchemaGetResponse.go b/model/product/TmallItemUpdateSchemaGetResponse.go deleted file mode 100644 index 5fb35bdc0c..0000000000 --- a/model/product/TmallItemUpdateSchemaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫编辑商品规则获取 API返回值 -tmall.item.update.schema.get - -Schema方式编辑天猫商品时,编辑商品规则获取 -*/ -type TmallItemUpdateSchemaGetAPIResponse struct { - model.CommonResponse - TmallItemUpdateSchemaGetResponse -} - -// 天猫编辑商品规则获取 成功返回结果 -type TmallItemUpdateSchemaGetResponse struct { - XMLName xml.Name `xml:"tmall_item_update_schema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回发布商品的规则文档 - UpdateItemResult string `json:"update_item_result,omitempty" xml:"update_item_result,omitempty"` -} diff --git a/model/product/TmallItemUpdateSimpleschemaGetAPIRequest.go b/model/product/TmallItemUpdateSimpleschemaGetAPIRequest.go new file mode 100644 index 0000000000..a428086249 --- /dev/null +++ b/model/product/TmallItemUpdateSimpleschemaGetAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +官网同购编辑商品的get接口 API请求 +tmall.item.update.simpleschema.get + +官网同购编辑商品的get接口 +*/ +type TmallItemUpdateSimpleschemaGetAPIRequest struct { + model.Params + // 商品id + _itemId int64 +} + +// 初始化TmallItemUpdateSimpleschemaGetAPIRequest对象 +func NewTmallItemUpdateSimpleschemaGetRequest() *TmallItemUpdateSimpleschemaGetAPIRequest{ + return &TmallItemUpdateSimpleschemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemUpdateSimpleschemaGetAPIRequest) GetApiMethodName() string { + return "tmall.item.update.simpleschema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemUpdateSimpleschemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TmallItemUpdateSimpleschemaGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallItemUpdateSimpleschemaGetAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/product/TmallItemUpdateSimpleschemaGetAPIResponse.go b/model/product/TmallItemUpdateSimpleschemaGetAPIResponse.go new file mode 100644 index 0000000000..05e6c75aaf --- /dev/null +++ b/model/product/TmallItemUpdateSimpleschemaGetAPIResponse.go @@ -0,0 +1,31 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +官网同购编辑商品的get接口 API返回值 +tmall.item.update.simpleschema.get + +官网同购编辑商品的get接口 +*/ +type TmallItemUpdateSimpleschemaGetAPIResponse struct { + model.CommonResponse + TmallItemUpdateSimpleschemaGetAPIResponseModel +} + +// 官网同购编辑商品的get接口 成功返回结果 +type TmallItemUpdateSimpleschemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_update_simpleschema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Error bool `json:"error,omitempty" xml:"error,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 商品信息 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/product/TmallItemUpdateSimpleschemaGetResponse.go b/model/product/TmallItemUpdateSimpleschemaGetResponse.go deleted file mode 100644 index 7047fcc093..0000000000 --- a/model/product/TmallItemUpdateSimpleschemaGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -官网同购编辑商品的get接口 API返回值 -tmall.item.update.simpleschema.get - -官网同购编辑商品的get接口 -*/ -type TmallItemUpdateSimpleschemaGetAPIResponse struct { - model.CommonResponse - TmallItemUpdateSimpleschemaGetResponse -} - -// 官网同购编辑商品的get接口 成功返回结果 -type TmallItemUpdateSimpleschemaGetResponse struct { - XMLName xml.Name `xml:"tmall_item_update_simpleschema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Error bool `json:"error,omitempty" xml:"error,omitempty"` - // 错误信息 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 商品信息 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/product/TmallItemVipAddSchemaGetAPIRequest.go b/model/product/TmallItemVipAddSchemaGetAPIRequest.go new file mode 100644 index 0000000000..5d050ac3a2 --- /dev/null +++ b/model/product/TmallItemVipAddSchemaGetAPIRequest.go @@ -0,0 +1,38 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +vip商家发布商品的获取规则接口 API请求 +tmall.item.vip.add.schema.get + +获取vip商家发布商品的规则 +*/ +type TmallItemVipAddSchemaGetAPIRequest struct { + model.Params +} + +// 初始化TmallItemVipAddSchemaGetAPIRequest对象 +func NewTmallItemVipAddSchemaGetRequest() *TmallItemVipAddSchemaGetAPIRequest{ + return &TmallItemVipAddSchemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemVipAddSchemaGetAPIRequest) GetApiMethodName() string { + return "tmall.item.vip.add.schema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemVipAddSchemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/product/TmallItemVipAddSchemaGetAPIResponse.go b/model/product/TmallItemVipAddSchemaGetAPIResponse.go new file mode 100644 index 0000000000..0c32697026 --- /dev/null +++ b/model/product/TmallItemVipAddSchemaGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +vip商家发布商品的获取规则接口 API返回值 +tmall.item.vip.add.schema.get + +获取vip商家发布商品的规则 +*/ +type TmallItemVipAddSchemaGetAPIResponse struct { + model.CommonResponse + TmallItemVipAddSchemaGetAPIResponseModel +} + +// vip商家发布商品的获取规则接口 成功返回结果 +type TmallItemVipAddSchemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_vip_add_schema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值是发布商品时需要的字段及基本类型 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/product/TmallItemVipAddSchemaGetResponse.go b/model/product/TmallItemVipAddSchemaGetResponse.go deleted file mode 100644 index c2c09a8b84..0000000000 --- a/model/product/TmallItemVipAddSchemaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -vip商家发布商品的获取规则接口 API返回值 -tmall.item.vip.add.schema.get - -获取vip商家发布商品的规则 -*/ -type TmallItemVipAddSchemaGetAPIResponse struct { - model.CommonResponse - TmallItemVipAddSchemaGetResponse -} - -// vip商家发布商品的获取规则接口 成功返回结果 -type TmallItemVipAddSchemaGetResponse struct { - XMLName xml.Name `xml:"tmall_item_vip_add_schema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值是发布商品时需要的字段及基本类型 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/product/TmallItemVipSchemaAddAPIRequest.go b/model/product/TmallItemVipSchemaAddAPIRequest.go new file mode 100644 index 0000000000..d531b272f5 --- /dev/null +++ b/model/product/TmallItemVipSchemaAddAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大商家商品发布接口 API请求 +tmall.item.vip.schema.add + +大商家商品发布接口 +*/ +type TmallItemVipSchemaAddAPIRequest struct { + model.Params + // 商品发布schema参数 + _schemaXmlFields string +} + +// 初始化TmallItemVipSchemaAddAPIRequest对象 +func NewTmallItemVipSchemaAddRequest() *TmallItemVipSchemaAddAPIRequest{ + return &TmallItemVipSchemaAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemVipSchemaAddAPIRequest) GetApiMethodName() string { + return "tmall.item.vip.schema.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemVipSchemaAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SchemaXmlFields Setter +// 商品发布schema参数 +func (r *TmallItemVipSchemaAddAPIRequest) SetSchemaXmlFields(_schemaXmlFields string) error { + r._schemaXmlFields = _schemaXmlFields + r.Set("schema_xml_fields", _schemaXmlFields) + return nil +} + +// SchemaXmlFields Getter +func (r TmallItemVipSchemaAddAPIRequest) GetSchemaXmlFields() string { + return r._schemaXmlFields +} diff --git a/model/product/TmallItemVipSchemaAddAPIResponse.go b/model/product/TmallItemVipSchemaAddAPIResponse.go new file mode 100644 index 0000000000..f7c78e5a4e --- /dev/null +++ b/model/product/TmallItemVipSchemaAddAPIResponse.go @@ -0,0 +1,31 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大商家商品发布接口 API返回值 +tmall.item.vip.schema.add + +大商家商品发布接口 +*/ +type TmallItemVipSchemaAddAPIResponse struct { + model.CommonResponse + TmallItemVipSchemaAddAPIResponseModel +} + +// 大商家商品发布接口 成功返回结果 +type TmallItemVipSchemaAddAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_vip_schema_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品发布成功_商品id + AddItemResult string `json:"add_item_result,omitempty" xml:"add_item_result,omitempty"` + // sku与outerId映射信息 + SkuMapJson string `json:"sku_map_json,omitempty" xml:"sku_map_json,omitempty"` + // 发布商品操作成功时间 + GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` +} diff --git a/model/product/TmallItemVipSchemaAddResponse.go b/model/product/TmallItemVipSchemaAddResponse.go deleted file mode 100644 index 9126dbbf8f..0000000000 --- a/model/product/TmallItemVipSchemaAddResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大商家商品发布接口 API返回值 -tmall.item.vip.schema.add - -大商家商品发布接口 -*/ -type TmallItemVipSchemaAddAPIResponse struct { - model.CommonResponse - TmallItemVipSchemaAddResponse -} - -// 大商家商品发布接口 成功返回结果 -type TmallItemVipSchemaAddResponse struct { - XMLName xml.Name `xml:"tmall_item_vip_schema_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品发布成功_商品id - AddItemResult string `json:"add_item_result,omitempty" xml:"add_item_result,omitempty"` - // sku与outerId映射信息 - SkuMapJson string `json:"sku_map_json,omitempty" xml:"sku_map_json,omitempty"` - // 发布商品操作成功时间 - GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` -} diff --git a/model/product/TmallItemVipSchemaUpdateAPIRequest.go b/model/product/TmallItemVipSchemaUpdateAPIRequest.go new file mode 100644 index 0000000000..b81a6438f8 --- /dev/null +++ b/model/product/TmallItemVipSchemaUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大商家商品编辑接口 API请求 +tmall.item.vip.schema.update + +大商家编辑商品 +*/ +type TmallItemVipSchemaUpdateAPIRequest struct { + model.Params + // 商品编辑的schema参数 + _schemaXmlFields string + // 商品id + _itemId int64 +} + +// 初始化TmallItemVipSchemaUpdateAPIRequest对象 +func NewTmallItemVipSchemaUpdateRequest() *TmallItemVipSchemaUpdateAPIRequest{ + return &TmallItemVipSchemaUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemVipSchemaUpdateAPIRequest) GetApiMethodName() string { + return "tmall.item.vip.schema.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemVipSchemaUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SchemaXmlFields Setter +// 商品编辑的schema参数 +func (r *TmallItemVipSchemaUpdateAPIRequest) SetSchemaXmlFields(_schemaXmlFields string) error { + r._schemaXmlFields = _schemaXmlFields + r.Set("schema_xml_fields", _schemaXmlFields) + return nil +} + +// SchemaXmlFields Getter +func (r TmallItemVipSchemaUpdateAPIRequest) GetSchemaXmlFields() string { + return r._schemaXmlFields +} +// ItemId Setter +// 商品id +func (r *TmallItemVipSchemaUpdateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallItemVipSchemaUpdateAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/product/TmallItemVipSchemaUpdateAPIResponse.go b/model/product/TmallItemVipSchemaUpdateAPIResponse.go new file mode 100644 index 0000000000..530b25f2f6 --- /dev/null +++ b/model/product/TmallItemVipSchemaUpdateAPIResponse.go @@ -0,0 +1,31 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大商家商品编辑接口 API返回值 +tmall.item.vip.schema.update + +大商家编辑商品 +*/ +type TmallItemVipSchemaUpdateAPIResponse struct { + model.CommonResponse + TmallItemVipSchemaUpdateAPIResponseModel +} + +// 大商家商品编辑接口 成功返回结果 +type TmallItemVipSchemaUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_vip_schema_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 编辑商品的id + UpdateItemResult string `json:"update_item_result,omitempty" xml:"update_item_result,omitempty"` + // sku与outerId映射信息 + SkuMapJson string `json:"sku_map_json,omitempty" xml:"sku_map_json,omitempty"` + // 编辑商品操作成功时间 + GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` +} diff --git a/model/product/TmallItemVipSchemaUpdateResponse.go b/model/product/TmallItemVipSchemaUpdateResponse.go deleted file mode 100644 index 31be62f91a..0000000000 --- a/model/product/TmallItemVipSchemaUpdateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大商家商品编辑接口 API返回值 -tmall.item.vip.schema.update - -大商家编辑商品 -*/ -type TmallItemVipSchemaUpdateAPIResponse struct { - model.CommonResponse - TmallItemVipSchemaUpdateResponse -} - -// 大商家商品编辑接口 成功返回结果 -type TmallItemVipSchemaUpdateResponse struct { - XMLName xml.Name `xml:"tmall_item_vip_schema_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 编辑商品的id - UpdateItemResult string `json:"update_item_result,omitempty" xml:"update_item_result,omitempty"` - // sku与outerId映射信息 - SkuMapJson string `json:"sku_map_json,omitempty" xml:"sku_map_json,omitempty"` - // 编辑商品操作成功时间 - GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` -} diff --git a/model/product/TmallItemVipUpdateSchemaGetAPIRequest.go b/model/product/TmallItemVipUpdateSchemaGetAPIRequest.go new file mode 100644 index 0000000000..a5eaa7623e --- /dev/null +++ b/model/product/TmallItemVipUpdateSchemaGetAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +vip商家编辑商品的规则获取接口 API请求 +tmall.item.vip.update.schema.get + +获取vip商家编辑商品的规则 +*/ +type TmallItemVipUpdateSchemaGetAPIRequest struct { + model.Params + // 商品id + _itemId int64 +} + +// 初始化TmallItemVipUpdateSchemaGetAPIRequest对象 +func NewTmallItemVipUpdateSchemaGetRequest() *TmallItemVipUpdateSchemaGetAPIRequest{ + return &TmallItemVipUpdateSchemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemVipUpdateSchemaGetAPIRequest) GetApiMethodName() string { + return "tmall.item.vip.update.schema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemVipUpdateSchemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TmallItemVipUpdateSchemaGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallItemVipUpdateSchemaGetAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/product/TmallItemVipUpdateSchemaGetAPIResponse.go b/model/product/TmallItemVipUpdateSchemaGetAPIResponse.go new file mode 100644 index 0000000000..de2d06562f --- /dev/null +++ b/model/product/TmallItemVipUpdateSchemaGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +vip商家编辑商品的规则获取接口 API返回值 +tmall.item.vip.update.schema.get + +获取vip商家编辑商品的规则 +*/ +type TmallItemVipUpdateSchemaGetAPIResponse struct { + model.CommonResponse + TmallItemVipUpdateSchemaGetAPIResponseModel +} + +// vip商家编辑商品的规则获取接口 成功返回结果 +type TmallItemVipUpdateSchemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_item_vip_update_schema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 获取的编辑商品的规则 + UpdateGetResult string `json:"update_get_result,omitempty" xml:"update_get_result,omitempty"` +} diff --git a/model/product/TmallItemVipUpdateSchemaGetResponse.go b/model/product/TmallItemVipUpdateSchemaGetResponse.go deleted file mode 100644 index 8f38ff4891..0000000000 --- a/model/product/TmallItemVipUpdateSchemaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -vip商家编辑商品的规则获取接口 API返回值 -tmall.item.vip.update.schema.get - -获取vip商家编辑商品的规则 -*/ -type TmallItemVipUpdateSchemaGetAPIResponse struct { - model.CommonResponse - TmallItemVipUpdateSchemaGetResponse -} - -// vip商家编辑商品的规则获取接口 成功返回结果 -type TmallItemVipUpdateSchemaGetResponse struct { - XMLName xml.Name `xml:"tmall_item_vip_update_schema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 获取的编辑商品的规则 - UpdateGetResult string `json:"update_get_result,omitempty" xml:"update_get_result,omitempty"` -} diff --git a/model/product/TmallProductAddSchemaGetAPIRequest.go b/model/product/TmallProductAddSchemaGetAPIRequest.go new file mode 100644 index 0000000000..b1af05aa06 --- /dev/null +++ b/model/product/TmallProductAddSchemaGetAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +产品发布规则获取接口 API请求 +tmall.product.add.schema.get + +获取用户发布产品的规则 +*/ +type TmallProductAddSchemaGetAPIRequest struct { + model.Params + // 商品发布的目标类目,必须是叶子类目 + _categoryId int64 + // 品牌ID + _brandId int64 +} + +// 初始化TmallProductAddSchemaGetAPIRequest对象 +func NewTmallProductAddSchemaGetRequest() *TmallProductAddSchemaGetAPIRequest{ + return &TmallProductAddSchemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallProductAddSchemaGetAPIRequest) GetApiMethodName() string { + return "tmall.product.add.schema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallProductAddSchemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CategoryId Setter +// 商品发布的目标类目,必须是叶子类目 +func (r *TmallProductAddSchemaGetAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r TmallProductAddSchemaGetAPIRequest) GetCategoryId() int64 { + return r._categoryId +} +// BrandId Setter +// 品牌ID +func (r *TmallProductAddSchemaGetAPIRequest) SetBrandId(_brandId int64) error { + r._brandId = _brandId + r.Set("brand_id", _brandId) + return nil +} + +// BrandId Getter +func (r TmallProductAddSchemaGetAPIRequest) GetBrandId() int64 { + return r._brandId +} diff --git a/model/product/TmallProductAddSchemaGetAPIResponse.go b/model/product/TmallProductAddSchemaGetAPIResponse.go new file mode 100644 index 0000000000..55c1e5e32f --- /dev/null +++ b/model/product/TmallProductAddSchemaGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +产品发布规则获取接口 API返回值 +tmall.product.add.schema.get + +获取用户发布产品的规则 +*/ +type TmallProductAddSchemaGetAPIResponse struct { + model.CommonResponse + TmallProductAddSchemaGetAPIResponseModel +} + +// 产品发布规则获取接口 成功返回结果 +type TmallProductAddSchemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_product_add_schema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回发布产品的规则文档 + AddProductRule string `json:"add_product_rule,omitempty" xml:"add_product_rule,omitempty"` +} diff --git a/model/product/TmallProductAddSchemaGetResponse.go b/model/product/TmallProductAddSchemaGetResponse.go deleted file mode 100644 index 9f5ac8f28f..0000000000 --- a/model/product/TmallProductAddSchemaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -产品发布规则获取接口 API返回值 -tmall.product.add.schema.get - -获取用户发布产品的规则 -*/ -type TmallProductAddSchemaGetAPIResponse struct { - model.CommonResponse - TmallProductAddSchemaGetResponse -} - -// 产品发布规则获取接口 成功返回结果 -type TmallProductAddSchemaGetResponse struct { - XMLName xml.Name `xml:"tmall_product_add_schema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回发布产品的规则文档 - AddProductRule string `json:"add_product_rule,omitempty" xml:"add_product_rule,omitempty"` -} diff --git a/model/product/TmallProductMatchSchemaGetAPIRequest.go b/model/product/TmallProductMatchSchemaGetAPIRequest.go new file mode 100644 index 0000000000..d7ae7418dd --- /dev/null +++ b/model/product/TmallProductMatchSchemaGetAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取匹配产品规则 API请求 +tmall.product.match.schema.get + +ISV发布商品前,需要先查找到产品ID,这个接口返回查找产品规则入参规则 +*/ +type TmallProductMatchSchemaGetAPIRequest struct { + model.Params + // 商品发布的目标类目,必须是叶子类目 + _categoryId int64 +} + +// 初始化TmallProductMatchSchemaGetAPIRequest对象 +func NewTmallProductMatchSchemaGetRequest() *TmallProductMatchSchemaGetAPIRequest{ + return &TmallProductMatchSchemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallProductMatchSchemaGetAPIRequest) GetApiMethodName() string { + return "tmall.product.match.schema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallProductMatchSchemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CategoryId Setter +// 商品发布的目标类目,必须是叶子类目 +func (r *TmallProductMatchSchemaGetAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r TmallProductMatchSchemaGetAPIRequest) GetCategoryId() int64 { + return r._categoryId +} diff --git a/model/product/TmallProductMatchSchemaGetAPIResponse.go b/model/product/TmallProductMatchSchemaGetAPIResponse.go new file mode 100644 index 0000000000..73cc0d60bf --- /dev/null +++ b/model/product/TmallProductMatchSchemaGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取匹配产品规则 API返回值 +tmall.product.match.schema.get + +ISV发布商品前,需要先查找到产品ID,这个接口返回查找产品规则入参规则 +*/ +type TmallProductMatchSchemaGetAPIResponse struct { + model.CommonResponse + TmallProductMatchSchemaGetAPIResponseModel +} + +// 获取匹配产品规则 成功返回结果 +type TmallProductMatchSchemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_product_match_schema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回匹配product的规则文档 + MatchResult string `json:"match_result,omitempty" xml:"match_result,omitempty"` +} diff --git a/model/product/TmallProductMatchSchemaGetResponse.go b/model/product/TmallProductMatchSchemaGetResponse.go deleted file mode 100644 index 41cb549a58..0000000000 --- a/model/product/TmallProductMatchSchemaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取匹配产品规则 API返回值 -tmall.product.match.schema.get - -ISV发布商品前,需要先查找到产品ID,这个接口返回查找产品规则入参规则 -*/ -type TmallProductMatchSchemaGetAPIResponse struct { - model.CommonResponse - TmallProductMatchSchemaGetResponse -} - -// 获取匹配产品规则 成功返回结果 -type TmallProductMatchSchemaGetResponse struct { - XMLName xml.Name `xml:"tmall_product_match_schema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回匹配product的规则文档 - MatchResult string `json:"match_result,omitempty" xml:"match_result,omitempty"` -} diff --git a/model/product/TmallProductSchemaAddAPIRequest.go b/model/product/TmallProductSchemaAddAPIRequest.go new file mode 100644 index 0000000000..0e00126999 --- /dev/null +++ b/model/product/TmallProductSchemaAddAPIRequest.go @@ -0,0 +1,80 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +使用Schema文件发布一个产品 API请求 +tmall.product.schema.add + +Schema体系发布一个产品 +*/ +type TmallProductSchemaAddAPIRequest struct { + model.Params + // 商品发布的目标类目,必须是叶子类目 + _categoryId int64 + // 品牌ID + _brandId int64 + // 根据tmall.product.add.schema.get生成的产品发布规则入参数据 + _xmlData string +} + +// 初始化TmallProductSchemaAddAPIRequest对象 +func NewTmallProductSchemaAddRequest() *TmallProductSchemaAddAPIRequest{ + return &TmallProductSchemaAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallProductSchemaAddAPIRequest) GetApiMethodName() string { + return "tmall.product.schema.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallProductSchemaAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CategoryId Setter +// 商品发布的目标类目,必须是叶子类目 +func (r *TmallProductSchemaAddAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r TmallProductSchemaAddAPIRequest) GetCategoryId() int64 { + return r._categoryId +} +// BrandId Setter +// 品牌ID +func (r *TmallProductSchemaAddAPIRequest) SetBrandId(_brandId int64) error { + r._brandId = _brandId + r.Set("brand_id", _brandId) + return nil +} + +// BrandId Getter +func (r TmallProductSchemaAddAPIRequest) GetBrandId() int64 { + return r._brandId +} +// XmlData Setter +// 根据tmall.product.add.schema.get生成的产品发布规则入参数据 +func (r *TmallProductSchemaAddAPIRequest) SetXmlData(_xmlData string) error { + r._xmlData = _xmlData + r.Set("xml_data", _xmlData) + return nil +} + +// XmlData Getter +func (r TmallProductSchemaAddAPIRequest) GetXmlData() string { + return r._xmlData +} diff --git a/model/product/TmallProductSchemaAddAPIResponse.go b/model/product/TmallProductSchemaAddAPIResponse.go new file mode 100644 index 0000000000..752d464dbb --- /dev/null +++ b/model/product/TmallProductSchemaAddAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +使用Schema文件发布一个产品 API返回值 +tmall.product.schema.add + +Schema体系发布一个产品 +*/ +type TmallProductSchemaAddAPIResponse struct { + model.CommonResponse + TmallProductSchemaAddAPIResponseModel +} + +// 使用Schema文件发布一个产品 成功返回结果 +type TmallProductSchemaAddAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_product_schema_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 新发产品结果 + AddProductResult string `json:"add_product_result,omitempty" xml:"add_product_result,omitempty"` +} diff --git a/model/product/TmallProductSchemaAddResponse.go b/model/product/TmallProductSchemaAddResponse.go deleted file mode 100644 index 7036ef3c89..0000000000 --- a/model/product/TmallProductSchemaAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -使用Schema文件发布一个产品 API返回值 -tmall.product.schema.add - -Schema体系发布一个产品 -*/ -type TmallProductSchemaAddAPIResponse struct { - model.CommonResponse - TmallProductSchemaAddResponse -} - -// 使用Schema文件发布一个产品 成功返回结果 -type TmallProductSchemaAddResponse struct { - XMLName xml.Name `xml:"tmall_product_schema_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 新发产品结果 - AddProductResult string `json:"add_product_result,omitempty" xml:"add_product_result,omitempty"` -} diff --git a/model/product/TmallProductSchemaGetAPIRequest.go b/model/product/TmallProductSchemaGetAPIRequest.go new file mode 100644 index 0000000000..a56e1d4668 --- /dev/null +++ b/model/product/TmallProductSchemaGetAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +产品信息获取schema获取 API请求 +tmall.product.schema.get + +产品信息获取接口schema形式返回 +*/ +type TmallProductSchemaGetAPIRequest struct { + model.Params + // 产品编号 + _productId int64 +} + +// 初始化TmallProductSchemaGetAPIRequest对象 +func NewTmallProductSchemaGetRequest() *TmallProductSchemaGetAPIRequest{ + return &TmallProductSchemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallProductSchemaGetAPIRequest) GetApiMethodName() string { + return "tmall.product.schema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallProductSchemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品编号 +func (r *TmallProductSchemaGetAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TmallProductSchemaGetAPIRequest) GetProductId() int64 { + return r._productId +} diff --git a/model/product/TmallProductSchemaGetAPIResponse.go b/model/product/TmallProductSchemaGetAPIResponse.go new file mode 100644 index 0000000000..8094e5f1df --- /dev/null +++ b/model/product/TmallProductSchemaGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +产品信息获取schema获取 API返回值 +tmall.product.schema.get + +产品信息获取接口schema形式返回 +*/ +type TmallProductSchemaGetAPIResponse struct { + model.CommonResponse + TmallProductSchemaGetAPIResponseModel +} + +// 产品信息获取schema获取 成功返回结果 +type TmallProductSchemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_product_schema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 产品信息数据。schema形式 + GetProductResult string `json:"get_product_result,omitempty" xml:"get_product_result,omitempty"` +} diff --git a/model/product/TmallProductSchemaGetResponse.go b/model/product/TmallProductSchemaGetResponse.go deleted file mode 100644 index 0ee9cf8a6c..0000000000 --- a/model/product/TmallProductSchemaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -产品信息获取schema获取 API返回值 -tmall.product.schema.get - -产品信息获取接口schema形式返回 -*/ -type TmallProductSchemaGetAPIResponse struct { - model.CommonResponse - TmallProductSchemaGetResponse -} - -// 产品信息获取schema获取 成功返回结果 -type TmallProductSchemaGetResponse struct { - XMLName xml.Name `xml:"tmall_product_schema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 产品信息数据。schema形式 - GetProductResult string `json:"get_product_result,omitempty" xml:"get_product_result,omitempty"` -} diff --git a/model/product/TmallProductSchemaMatchAPIRequest.go b/model/product/TmallProductSchemaMatchAPIRequest.go new file mode 100644 index 0000000000..83f550aeeb --- /dev/null +++ b/model/product/TmallProductSchemaMatchAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +product匹配接口 API请求 +tmall.product.schema.match + +根据tmall.product.match.schema.get获取到的规则,填充相应地的字段值以及类目,匹配符合条件的产品,返回匹配product结果,注意,有可能返回多个产品ID,以逗号分隔(尤其是图书类目); +*/ +type TmallProductSchemaMatchAPIRequest struct { + model.Params + // 商品发布的目标类目,必须是叶子类目 + _categoryId int64 + // 根据tmall.product.match.schema.get获取到的模板,ISV将需要的字段填充好相应的值结果XML。 + _propvalues string +} + +// 初始化TmallProductSchemaMatchAPIRequest对象 +func NewTmallProductSchemaMatchRequest() *TmallProductSchemaMatchAPIRequest{ + return &TmallProductSchemaMatchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallProductSchemaMatchAPIRequest) GetApiMethodName() string { + return "tmall.product.schema.match" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallProductSchemaMatchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CategoryId Setter +// 商品发布的目标类目,必须是叶子类目 +func (r *TmallProductSchemaMatchAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r TmallProductSchemaMatchAPIRequest) GetCategoryId() int64 { + return r._categoryId +} +// Propvalues Setter +// 根据tmall.product.match.schema.get获取到的模板,ISV将需要的字段填充好相应的值结果XML。 +func (r *TmallProductSchemaMatchAPIRequest) SetPropvalues(_propvalues string) error { + r._propvalues = _propvalues + r.Set("propvalues", _propvalues) + return nil +} + +// Propvalues Getter +func (r TmallProductSchemaMatchAPIRequest) GetPropvalues() string { + return r._propvalues +} diff --git a/model/product/TmallProductSchemaMatchAPIResponse.go b/model/product/TmallProductSchemaMatchAPIResponse.go new file mode 100644 index 0000000000..ec63eb947d --- /dev/null +++ b/model/product/TmallProductSchemaMatchAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +product匹配接口 API返回值 +tmall.product.schema.match + +根据tmall.product.match.schema.get获取到的规则,填充相应地的字段值以及类目,匹配符合条件的产品,返回匹配product结果,注意,有可能返回多个产品ID,以逗号分隔(尤其是图书类目); +*/ +type TmallProductSchemaMatchAPIResponse struct { + model.CommonResponse + TmallProductSchemaMatchAPIResponseModel +} + +// product匹配接口 成功返回结果 +type TmallProductSchemaMatchAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_product_schema_match_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回匹配产品ID,部分类目可能返回多个产品ID,以逗号分隔。 + MatchResult string `json:"match_result,omitempty" xml:"match_result,omitempty"` +} diff --git a/model/product/TmallProductSchemaMatchResponse.go b/model/product/TmallProductSchemaMatchResponse.go deleted file mode 100644 index 7cd8214855..0000000000 --- a/model/product/TmallProductSchemaMatchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -product匹配接口 API返回值 -tmall.product.schema.match - -根据tmall.product.match.schema.get获取到的规则,填充相应地的字段值以及类目,匹配符合条件的产品,返回匹配product结果,注意,有可能返回多个产品ID,以逗号分隔(尤其是图书类目); -*/ -type TmallProductSchemaMatchAPIResponse struct { - model.CommonResponse - TmallProductSchemaMatchResponse -} - -// product匹配接口 成功返回结果 -type TmallProductSchemaMatchResponse struct { - XMLName xml.Name `xml:"tmall_product_schema_match_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回匹配产品ID,部分类目可能返回多个产品ID,以逗号分隔。 - MatchResult string `json:"match_result,omitempty" xml:"match_result,omitempty"` -} diff --git a/model/product/TmallProductSchemaUpdateAPIRequest.go b/model/product/TmallProductSchemaUpdateAPIRequest.go new file mode 100644 index 0000000000..c08322fe25 --- /dev/null +++ b/model/product/TmallProductSchemaUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +产品更新接口 API请求 +tmall.product.schema.update + +产品更新接口 +*/ +type TmallProductSchemaUpdateAPIRequest struct { + model.Params + // 根据tmall.product.update.schema.get生成的产品更新规则入参数据 + _xmlData string + // 产品编号 + _productId int64 +} + +// 初始化TmallProductSchemaUpdateAPIRequest对象 +func NewTmallProductSchemaUpdateRequest() *TmallProductSchemaUpdateAPIRequest{ + return &TmallProductSchemaUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallProductSchemaUpdateAPIRequest) GetApiMethodName() string { + return "tmall.product.schema.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallProductSchemaUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// XmlData Setter +// 根据tmall.product.update.schema.get生成的产品更新规则入参数据 +func (r *TmallProductSchemaUpdateAPIRequest) SetXmlData(_xmlData string) error { + r._xmlData = _xmlData + r.Set("xml_data", _xmlData) + return nil +} + +// XmlData Getter +func (r TmallProductSchemaUpdateAPIRequest) GetXmlData() string { + return r._xmlData +} +// ProductId Setter +// 产品编号 +func (r *TmallProductSchemaUpdateAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TmallProductSchemaUpdateAPIRequest) GetProductId() int64 { + return r._productId +} diff --git a/model/product/TmallProductSchemaUpdateAPIResponse.go b/model/product/TmallProductSchemaUpdateAPIResponse.go new file mode 100644 index 0000000000..960a545f42 --- /dev/null +++ b/model/product/TmallProductSchemaUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +产品更新接口 API返回值 +tmall.product.schema.update + +产品更新接口 +*/ +type TmallProductSchemaUpdateAPIResponse struct { + model.CommonResponse + TmallProductSchemaUpdateAPIResponseModel +} + +// 产品更新接口 成功返回结果 +type TmallProductSchemaUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_product_schema_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 产品数据,格式和入参xml_data一致,仅包含产品ID和更新时间 + UpdateProductResult string `json:"update_product_result,omitempty" xml:"update_product_result,omitempty"` +} diff --git a/model/product/TmallProductSchemaUpdateResponse.go b/model/product/TmallProductSchemaUpdateResponse.go deleted file mode 100644 index a4c1c4b19c..0000000000 --- a/model/product/TmallProductSchemaUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -产品更新接口 API返回值 -tmall.product.schema.update - -产品更新接口 -*/ -type TmallProductSchemaUpdateAPIResponse struct { - model.CommonResponse - TmallProductSchemaUpdateResponse -} - -// 产品更新接口 成功返回结果 -type TmallProductSchemaUpdateResponse struct { - XMLName xml.Name `xml:"tmall_product_schema_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 产品数据,格式和入参xml_data一致,仅包含产品ID和更新时间 - UpdateProductResult string `json:"update_product_result,omitempty" xml:"update_product_result,omitempty"` -} diff --git a/model/product/TmallProductSpecAddAPIRequest.go b/model/product/TmallProductSpecAddAPIRequest.go new file mode 100644 index 0000000000..052f6181bb --- /dev/null +++ b/model/product/TmallProductSpecAddAPIRequest.go @@ -0,0 +1,206 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加产品规格 API请求 +tmall.product.spec.add + +增加产品规格 +*/ +type TmallProductSpecAddAPIRequest struct { + model.Params + // 产品ID + _productId int64 + // 存放产品规格认证类型-认证图片url映射信息,格式为k:v;k:v;,其中key为认证类型数字id,value为调用tmall.product.spec.pic.upload返回的认证图片url文本 + _certifiedPicStr string + // 产品规格吊牌价,以分为单位,无默认值,上限999999999 + _labelPrice int64 + // 存放产品规格认证类型-认证文本映射信息,格式为k:v;k:v;,其中key为认证类型数字id,value为认证文本值 + _certifiedTxtStr string + // 产品的规格属性 + _specProps string + // 规格属性别名,只允许传颜色别名 + _specPropsAlias string + // 用户自定义销售属性,结构:pid1:value1;pid2:value2。在 + _customerSpecProps string + // 产品基础色,数据格式为:pid:vid:rvid1,rvid2,rvid3;pid:vid:rvid1 + _changeProp string + // 产品图片 + _image *model.File + // 产品二维码 + _barcode string + // 产品货号 + _productCode string + // 产品上市时间 + _marketTime string +} + +// 初始化TmallProductSpecAddAPIRequest对象 +func NewTmallProductSpecAddRequest() *TmallProductSpecAddAPIRequest{ + return &TmallProductSpecAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallProductSpecAddAPIRequest) GetApiMethodName() string { + return "tmall.product.spec.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallProductSpecAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品ID +func (r *TmallProductSpecAddAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TmallProductSpecAddAPIRequest) GetProductId() int64 { + return r._productId +} +// CertifiedPicStr Setter +// 存放产品规格认证类型-认证图片url映射信息,格式为k:v;k:v;,其中key为认证类型数字id,value为调用tmall.product.spec.pic.upload返回的认证图片url文本 +func (r *TmallProductSpecAddAPIRequest) SetCertifiedPicStr(_certifiedPicStr string) error { + r._certifiedPicStr = _certifiedPicStr + r.Set("certified_pic_str", _certifiedPicStr) + return nil +} + +// CertifiedPicStr Getter +func (r TmallProductSpecAddAPIRequest) GetCertifiedPicStr() string { + return r._certifiedPicStr +} +// LabelPrice Setter +// 产品规格吊牌价,以分为单位,无默认值,上限999999999 +func (r *TmallProductSpecAddAPIRequest) SetLabelPrice(_labelPrice int64) error { + r._labelPrice = _labelPrice + r.Set("label_price", _labelPrice) + return nil +} + +// LabelPrice Getter +func (r TmallProductSpecAddAPIRequest) GetLabelPrice() int64 { + return r._labelPrice +} +// CertifiedTxtStr Setter +// 存放产品规格认证类型-认证文本映射信息,格式为k:v;k:v;,其中key为认证类型数字id,value为认证文本值 +func (r *TmallProductSpecAddAPIRequest) SetCertifiedTxtStr(_certifiedTxtStr string) error { + r._certifiedTxtStr = _certifiedTxtStr + r.Set("certified_txt_str", _certifiedTxtStr) + return nil +} + +// CertifiedTxtStr Getter +func (r TmallProductSpecAddAPIRequest) GetCertifiedTxtStr() string { + return r._certifiedTxtStr +} +// SpecProps Setter +// 产品的规格属性 +func (r *TmallProductSpecAddAPIRequest) SetSpecProps(_specProps string) error { + r._specProps = _specProps + r.Set("spec_props", _specProps) + return nil +} + +// SpecProps Getter +func (r TmallProductSpecAddAPIRequest) GetSpecProps() string { + return r._specProps +} +// SpecPropsAlias Setter +// 规格属性别名,只允许传颜色别名 +func (r *TmallProductSpecAddAPIRequest) SetSpecPropsAlias(_specPropsAlias string) error { + r._specPropsAlias = _specPropsAlias + r.Set("spec_props_alias", _specPropsAlias) + return nil +} + +// SpecPropsAlias Getter +func (r TmallProductSpecAddAPIRequest) GetSpecPropsAlias() string { + return r._specPropsAlias +} +// CustomerSpecProps Setter +// 用户自定义销售属性,结构:pid1:value1;pid2:value2。在 +func (r *TmallProductSpecAddAPIRequest) SetCustomerSpecProps(_customerSpecProps string) error { + r._customerSpecProps = _customerSpecProps + r.Set("customer_spec_props", _customerSpecProps) + return nil +} + +// CustomerSpecProps Getter +func (r TmallProductSpecAddAPIRequest) GetCustomerSpecProps() string { + return r._customerSpecProps +} +// ChangeProp Setter +// 产品基础色,数据格式为:pid:vid:rvid1,rvid2,rvid3;pid:vid:rvid1 +func (r *TmallProductSpecAddAPIRequest) SetChangeProp(_changeProp string) error { + r._changeProp = _changeProp + r.Set("change_prop", _changeProp) + return nil +} + +// ChangeProp Getter +func (r TmallProductSpecAddAPIRequest) GetChangeProp() string { + return r._changeProp +} +// Image Setter +// 产品图片 +func (r *TmallProductSpecAddAPIRequest) SetImage(_image *model.File) error { + r._image = _image + r.Set("image", _image) + return nil +} + +// Image Getter +func (r TmallProductSpecAddAPIRequest) GetImage() *model.File { + return r._image +} +// Barcode Setter +// 产品二维码 +func (r *TmallProductSpecAddAPIRequest) SetBarcode(_barcode string) error { + r._barcode = _barcode + r.Set("barcode", _barcode) + return nil +} + +// Barcode Getter +func (r TmallProductSpecAddAPIRequest) GetBarcode() string { + return r._barcode +} +// ProductCode Setter +// 产品货号 +func (r *TmallProductSpecAddAPIRequest) SetProductCode(_productCode string) error { + r._productCode = _productCode + r.Set("product_code", _productCode) + return nil +} + +// ProductCode Getter +func (r TmallProductSpecAddAPIRequest) GetProductCode() string { + return r._productCode +} +// MarketTime Setter +// 产品上市时间 +func (r *TmallProductSpecAddAPIRequest) SetMarketTime(_marketTime string) error { + r._marketTime = _marketTime + r.Set("market_time", _marketTime) + return nil +} + +// MarketTime Getter +func (r TmallProductSpecAddAPIRequest) GetMarketTime() string { + return r._marketTime +} diff --git a/model/product/TmallProductSpecAddAPIResponse.go b/model/product/TmallProductSpecAddAPIResponse.go new file mode 100644 index 0000000000..4e453d1143 --- /dev/null +++ b/model/product/TmallProductSpecAddAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加产品规格 API返回值 +tmall.product.spec.add + +增加产品规格 +*/ +type TmallProductSpecAddAPIResponse struct { + model.CommonResponse + TmallProductSpecAddAPIResponseModel +} + +// 添加产品规格 成功返回结果 +type TmallProductSpecAddAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_product_spec_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 产品规格对象 + ProductSpec *ProductSpec `json:"product_spec,omitempty" xml:"product_spec,omitempty"` +} diff --git a/model/product/TmallProductSpecAddResponse.go b/model/product/TmallProductSpecAddResponse.go deleted file mode 100644 index a1f56badea..0000000000 --- a/model/product/TmallProductSpecAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加产品规格 API返回值 -tmall.product.spec.add - -增加产品规格 -*/ -type TmallProductSpecAddAPIResponse struct { - model.CommonResponse - TmallProductSpecAddResponse -} - -// 添加产品规格 成功返回结果 -type TmallProductSpecAddResponse struct { - XMLName xml.Name `xml:"tmall_product_spec_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 产品规格对象 - ProductSpec *ProductSpec `json:"product_spec,omitempty" xml:"product_spec,omitempty"` -} diff --git a/model/product/TmallProductSpecGetAPIRequest.go b/model/product/TmallProductSpecGetAPIRequest.go new file mode 100644 index 0000000000..77e8182751 --- /dev/null +++ b/model/product/TmallProductSpecGetAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据产品规格的Id号获取当个的规格信息 API请求 +tmall.product.spec.get + +通过当个的spec_id获取到这个产品规格的信息,主要是因为产品规格是要经过审核的,所以通过这个接口可以获取到是否通过审核
通过参看这个ProductSpec的status判断:
1:表示审核通过
3:表示等待审核。
如果你的id找不到数据,那么就是审核被拒绝。 +*/ +type TmallProductSpecGetAPIRequest struct { + model.Params + // 要获取信息的产品规格信息。 + _specId int64 +} + +// 初始化TmallProductSpecGetAPIRequest对象 +func NewTmallProductSpecGetRequest() *TmallProductSpecGetAPIRequest{ + return &TmallProductSpecGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallProductSpecGetAPIRequest) GetApiMethodName() string { + return "tmall.product.spec.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallProductSpecGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SpecId Setter +// 要获取信息的产品规格信息。 +func (r *TmallProductSpecGetAPIRequest) SetSpecId(_specId int64) error { + r._specId = _specId + r.Set("spec_id", _specId) + return nil +} + +// SpecId Getter +func (r TmallProductSpecGetAPIRequest) GetSpecId() int64 { + return r._specId +} diff --git a/model/product/TmallProductSpecGetAPIResponse.go b/model/product/TmallProductSpecGetAPIResponse.go new file mode 100644 index 0000000000..a4df299e43 --- /dev/null +++ b/model/product/TmallProductSpecGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据产品规格的Id号获取当个的规格信息 API返回值 +tmall.product.spec.get + +通过当个的spec_id获取到这个产品规格的信息,主要是因为产品规格是要经过审核的,所以通过这个接口可以获取到是否通过审核
通过参看这个ProductSpec的status判断:
1:表示审核通过
3:表示等待审核。
如果你的id找不到数据,那么就是审核被拒绝。 +*/ +type TmallProductSpecGetAPIResponse struct { + model.CommonResponse + TmallProductSpecGetAPIResponseModel +} + +// 根据产品规格的Id号获取当个的规格信息 成功返回结果 +type TmallProductSpecGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_product_spec_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的产品规格信息,注意,这个产品规格信息可能是等待审核的,不一定可用。根据状态判断1:表示审核通过
3:表示等待审核。 + ProductSpec *ProductSpec `json:"product_spec,omitempty" xml:"product_spec,omitempty"` +} diff --git a/model/product/TmallProductSpecGetResponse.go b/model/product/TmallProductSpecGetResponse.go deleted file mode 100644 index 7d94993155..0000000000 --- a/model/product/TmallProductSpecGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据产品规格的Id号获取当个的规格信息 API返回值 -tmall.product.spec.get - -通过当个的spec_id获取到这个产品规格的信息,主要是因为产品规格是要经过审核的,所以通过这个接口可以获取到是否通过审核
通过参看这个ProductSpec的status判断:
1:表示审核通过
3:表示等待审核。
如果你的id找不到数据,那么就是审核被拒绝。 -*/ -type TmallProductSpecGetAPIResponse struct { - model.CommonResponse - TmallProductSpecGetResponse -} - -// 根据产品规格的Id号获取当个的规格信息 成功返回结果 -type TmallProductSpecGetResponse struct { - XMLName xml.Name `xml:"tmall_product_spec_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的产品规格信息,注意,这个产品规格信息可能是等待审核的,不一定可用。根据状态判断1:表示审核通过
3:表示等待审核。 - ProductSpec *ProductSpec `json:"product_spec,omitempty" xml:"product_spec,omitempty"` -} diff --git a/model/product/TmallProductSpecPicUploadAPIRequest.go b/model/product/TmallProductSpecPicUploadAPIRequest.go new file mode 100644 index 0000000000..d95123fa70 --- /dev/null +++ b/model/product/TmallProductSpecPicUploadAPIRequest.go @@ -0,0 +1,66 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传产品规格认证图片 API请求 +tmall.product.spec.pic.upload + +上传指定类型的产品规格认证文件,并返回存有上传成功图片url的产品规格对象 +*/ +type TmallProductSpecPicUploadAPIRequest struct { + model.Params + // 上传的认证图片的认证类型
1:代表产品包装正面图
2:代表完整产品资质
3:代表产品包装反面图
4:代表产品包装侧面图
5:代表产品包装条形码特写
6:代表特殊用途化妆品批准文号
7:代表3C认证图标
+ _certifyType int64 + // 上传的认证图片文件 + _certifyPic *model.File +} + +// 初始化TmallProductSpecPicUploadAPIRequest对象 +func NewTmallProductSpecPicUploadRequest() *TmallProductSpecPicUploadAPIRequest{ + return &TmallProductSpecPicUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallProductSpecPicUploadAPIRequest) GetApiMethodName() string { + return "tmall.product.spec.pic.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallProductSpecPicUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CertifyType Setter +// 上传的认证图片的认证类型
1:代表产品包装正面图
2:代表完整产品资质
3:代表产品包装反面图
4:代表产品包装侧面图
5:代表产品包装条形码特写
6:代表特殊用途化妆品批准文号
7:代表3C认证图标
+func (r *TmallProductSpecPicUploadAPIRequest) SetCertifyType(_certifyType int64) error { + r._certifyType = _certifyType + r.Set("certify_type", _certifyType) + return nil +} + +// CertifyType Getter +func (r TmallProductSpecPicUploadAPIRequest) GetCertifyType() int64 { + return r._certifyType +} +// CertifyPic Setter +// 上传的认证图片文件 +func (r *TmallProductSpecPicUploadAPIRequest) SetCertifyPic(_certifyPic *model.File) error { + r._certifyPic = _certifyPic + r.Set("certify_pic", _certifyPic) + return nil +} + +// CertifyPic Getter +func (r TmallProductSpecPicUploadAPIRequest) GetCertifyPic() *model.File { + return r._certifyPic +} diff --git a/model/product/TmallProductSpecPicUploadAPIResponse.go b/model/product/TmallProductSpecPicUploadAPIResponse.go new file mode 100644 index 0000000000..294f249f51 --- /dev/null +++ b/model/product/TmallProductSpecPicUploadAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传产品规格认证图片 API返回值 +tmall.product.spec.pic.upload + +上传指定类型的产品规格认证文件,并返回存有上传成功图片url的产品规格对象 +*/ +type TmallProductSpecPicUploadAPIResponse struct { + model.CommonResponse + TmallProductSpecPicUploadAPIResponseModel +} + +// 上传产品规格认证图片 成功返回结果 +type TmallProductSpecPicUploadAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_product_spec_pic_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 上传成功的产品规格认证图片url + SpecPicUrl string `json:"spec_pic_url,omitempty" xml:"spec_pic_url,omitempty"` +} diff --git a/model/product/TmallProductSpecPicUploadResponse.go b/model/product/TmallProductSpecPicUploadResponse.go deleted file mode 100644 index 0dc9938204..0000000000 --- a/model/product/TmallProductSpecPicUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传产品规格认证图片 API返回值 -tmall.product.spec.pic.upload - -上传指定类型的产品规格认证文件,并返回存有上传成功图片url的产品规格对象 -*/ -type TmallProductSpecPicUploadAPIResponse struct { - model.CommonResponse - TmallProductSpecPicUploadResponse -} - -// 上传产品规格认证图片 成功返回结果 -type TmallProductSpecPicUploadResponse struct { - XMLName xml.Name `xml:"tmall_product_spec_pic_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 上传成功的产品规格认证图片url - SpecPicUrl string `json:"spec_pic_url,omitempty" xml:"spec_pic_url,omitempty"` -} diff --git a/model/product/TmallProductSpecsGetAPIRequest.go b/model/product/TmallProductSpecsGetAPIRequest.go new file mode 100644 index 0000000000..05195152ad --- /dev/null +++ b/model/product/TmallProductSpecsGetAPIRequest.go @@ -0,0 +1,80 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取产品的规格信息 API请求 +tmall.product.specs.get + +按product_id或品牌下载产品规格,返回一组的产品规格信息。 +*/ +type TmallProductSpecsGetAPIRequest struct { + model.Params + // 产品的ID。这个不能和properties和cat_id同时起效果
properties 和cat_id 均不传时,该参数必传。 + _productId int64 + // 关键属性的字符串,pid:vid;pid:vid该字段必须和cat_id同时传入才起效果。 而且只有当product_id不传入的时候才起效果。
product_id 不传时该参数必传 + _properties string + // 类目的ID号,该id必须和properties同时传入。而且只有当product_id不传入的时候才起效果。
product_id不传时,该参数必传 + _catId int64 +} + +// 初始化TmallProductSpecsGetAPIRequest对象 +func NewTmallProductSpecsGetRequest() *TmallProductSpecsGetAPIRequest{ + return &TmallProductSpecsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallProductSpecsGetAPIRequest) GetApiMethodName() string { + return "tmall.product.specs.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallProductSpecsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品的ID。这个不能和properties和cat_id同时起效果
properties 和cat_id 均不传时,该参数必传。 +func (r *TmallProductSpecsGetAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TmallProductSpecsGetAPIRequest) GetProductId() int64 { + return r._productId +} +// Properties Setter +// 关键属性的字符串,pid:vid;pid:vid该字段必须和cat_id同时传入才起效果。 而且只有当product_id不传入的时候才起效果。
product_id 不传时该参数必传 +func (r *TmallProductSpecsGetAPIRequest) SetProperties(_properties string) error { + r._properties = _properties + r.Set("properties", _properties) + return nil +} + +// Properties Getter +func (r TmallProductSpecsGetAPIRequest) GetProperties() string { + return r._properties +} +// CatId Setter +// 类目的ID号,该id必须和properties同时传入。而且只有当product_id不传入的时候才起效果。
product_id不传时,该参数必传 +func (r *TmallProductSpecsGetAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r TmallProductSpecsGetAPIRequest) GetCatId() int64 { + return r._catId +} diff --git a/model/product/TmallProductSpecsGetAPIResponse.go b/model/product/TmallProductSpecsGetAPIResponse.go new file mode 100644 index 0000000000..611bda3f61 --- /dev/null +++ b/model/product/TmallProductSpecsGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取产品的规格信息 API返回值 +tmall.product.specs.get + +按product_id或品牌下载产品规格,返回一组的产品规格信息。 +*/ +type TmallProductSpecsGetAPIResponse struct { + model.CommonResponse + TmallProductSpecsGetAPIResponseModel +} + +// 获取产品的规格信息 成功返回结果 +type TmallProductSpecsGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_product_specs_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回一组产品规格信息。 + ProductSpecs []ProductSpec `json:"product_specs,omitempty" xml:"product_specs>product_spec,omitempty"` +} diff --git a/model/product/TmallProductSpecsGetResponse.go b/model/product/TmallProductSpecsGetResponse.go deleted file mode 100644 index 486f4c194d..0000000000 --- a/model/product/TmallProductSpecsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取产品的规格信息 API返回值 -tmall.product.specs.get - -按product_id或品牌下载产品规格,返回一组的产品规格信息。 -*/ -type TmallProductSpecsGetAPIResponse struct { - model.CommonResponse - TmallProductSpecsGetResponse -} - -// 获取产品的规格信息 成功返回结果 -type TmallProductSpecsGetResponse struct { - XMLName xml.Name `xml:"tmall_product_specs_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回一组产品规格信息。 - ProductSpecs []ProductSpec `json:"product_specs,omitempty" xml:"product_specs>product_spec,omitempty"` -} diff --git a/model/product/TmallProductSpecsTicketGetAPIRequest.go b/model/product/TmallProductSpecsTicketGetAPIRequest.go new file mode 100644 index 0000000000..f54c209946 --- /dev/null +++ b/model/product/TmallProductSpecsTicketGetAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +产品规格审核信息获取接口 API请求 +tmall.product.specs.ticket.get + +批量根据specId查询产品规格审核信息包括产品规格状态,申请人,拒绝原因等 +*/ +type TmallProductSpecsTicketGetAPIRequest struct { + model.Params + // 产品规格ID,多个用逗号分隔 + _specIds string +} + +// 初始化TmallProductSpecsTicketGetAPIRequest对象 +func NewTmallProductSpecsTicketGetRequest() *TmallProductSpecsTicketGetAPIRequest{ + return &TmallProductSpecsTicketGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallProductSpecsTicketGetAPIRequest) GetApiMethodName() string { + return "tmall.product.specs.ticket.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallProductSpecsTicketGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SpecIds Setter +// 产品规格ID,多个用逗号分隔 +func (r *TmallProductSpecsTicketGetAPIRequest) SetSpecIds(_specIds string) error { + r._specIds = _specIds + r.Set("spec_ids", _specIds) + return nil +} + +// SpecIds Getter +func (r TmallProductSpecsTicketGetAPIRequest) GetSpecIds() string { + return r._specIds +} diff --git a/model/product/TmallProductSpecsTicketGetAPIResponse.go b/model/product/TmallProductSpecsTicketGetAPIResponse.go new file mode 100644 index 0000000000..099f2b13e4 --- /dev/null +++ b/model/product/TmallProductSpecsTicketGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +产品规格审核信息获取接口 API返回值 +tmall.product.specs.ticket.get + +批量根据specId查询产品规格审核信息包括产品规格状态,申请人,拒绝原因等 +*/ +type TmallProductSpecsTicketGetAPIResponse struct { + model.CommonResponse + TmallProductSpecsTicketGetAPIResponseModel +} + +// 产品规格审核信息获取接口 成功返回结果 +type TmallProductSpecsTicketGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_product_specs_ticket_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 产品规格审核单信息 + Tickets []Ticket `json:"tickets,omitempty" xml:"tickets>ticket,omitempty"` +} diff --git a/model/product/TmallProductSpecsTicketGetResponse.go b/model/product/TmallProductSpecsTicketGetResponse.go deleted file mode 100644 index bb89c8908e..0000000000 --- a/model/product/TmallProductSpecsTicketGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -产品规格审核信息获取接口 API返回值 -tmall.product.specs.ticket.get - -批量根据specId查询产品规格审核信息包括产品规格状态,申请人,拒绝原因等 -*/ -type TmallProductSpecsTicketGetAPIResponse struct { - model.CommonResponse - TmallProductSpecsTicketGetResponse -} - -// 产品规格审核信息获取接口 成功返回结果 -type TmallProductSpecsTicketGetResponse struct { - XMLName xml.Name `xml:"tmall_product_specs_ticket_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 产品规格审核单信息 - Tickets []Ticket `json:"tickets,omitempty" xml:"tickets>ticket,omitempty"` -} diff --git a/model/product/TmallProductTemplateGetAPIRequest.go b/model/product/TmallProductTemplateGetAPIRequest.go new file mode 100644 index 0000000000..984ee35a62 --- /dev/null +++ b/model/product/TmallProductTemplateGetAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +产品接口 API请求 +tmall.product.template.get + +产品模板获取接口,对于非关键属性的类目,发布达尔文(监管)产品时,必须先根据类目获取产品模板。

产品模板定义产品发布需要的类目属性,包括:

关键属性:关键属性可以在类目上不存在。不存在的PID,默认为输入,没有子属性。属性名称在prop_name_str中取
绑定属性:内容为属性ID(PID)的列表,绑定属性肯定在类目上有,对应属性的类目特征,子属性请根据PID到类目上去取

过滤属性:内容有属性ID(PID)列表,很重要的属性,filter_properties包含的属性,必须填写

如果获取不到模板,非关键属性类目是不能发布产品的
+*/ +type TmallProductTemplateGetAPIRequest struct { + model.Params + // 类目ID + _cid int64 +} + +// 初始化TmallProductTemplateGetAPIRequest对象 +func NewTmallProductTemplateGetRequest() *TmallProductTemplateGetAPIRequest{ + return &TmallProductTemplateGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallProductTemplateGetAPIRequest) GetApiMethodName() string { + return "tmall.product.template.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallProductTemplateGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Cid Setter +// 类目ID +func (r *TmallProductTemplateGetAPIRequest) SetCid(_cid int64) error { + r._cid = _cid + r.Set("cid", _cid) + return nil +} + +// Cid Getter +func (r TmallProductTemplateGetAPIRequest) GetCid() int64 { + return r._cid +} diff --git a/model/product/TmallProductTemplateGetAPIResponse.go b/model/product/TmallProductTemplateGetAPIResponse.go new file mode 100644 index 0000000000..198a0a55c6 --- /dev/null +++ b/model/product/TmallProductTemplateGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +产品接口 API返回值 +tmall.product.template.get + +产品模板获取接口,对于非关键属性的类目,发布达尔文(监管)产品时,必须先根据类目获取产品模板。

产品模板定义产品发布需要的类目属性,包括:

关键属性:关键属性可以在类目上不存在。不存在的PID,默认为输入,没有子属性。属性名称在prop_name_str中取
绑定属性:内容为属性ID(PID)的列表,绑定属性肯定在类目上有,对应属性的类目特征,子属性请根据PID到类目上去取

过滤属性:内容有属性ID(PID)列表,很重要的属性,filter_properties包含的属性,必须填写

如果获取不到模板,非关键属性类目是不能发布产品的
+*/ +type TmallProductTemplateGetAPIResponse struct { + model.CommonResponse + TmallProductTemplateGetAPIResponseModel +} + +// 产品接口 成功返回结果 +type TmallProductTemplateGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_product_template_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 见SpuTemplateDO说明 + Template *SpuTemplateDo `json:"template,omitempty" xml:"template,omitempty"` +} diff --git a/model/product/TmallProductTemplateGetResponse.go b/model/product/TmallProductTemplateGetResponse.go deleted file mode 100644 index c1232f3547..0000000000 --- a/model/product/TmallProductTemplateGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -产品接口 API返回值 -tmall.product.template.get - -产品模板获取接口,对于非关键属性的类目,发布达尔文(监管)产品时,必须先根据类目获取产品模板。

产品模板定义产品发布需要的类目属性,包括:

关键属性:关键属性可以在类目上不存在。不存在的PID,默认为输入,没有子属性。属性名称在prop_name_str中取
绑定属性:内容为属性ID(PID)的列表,绑定属性肯定在类目上有,对应属性的类目特征,子属性请根据PID到类目上去取

过滤属性:内容有属性ID(PID)列表,很重要的属性,filter_properties包含的属性,必须填写

如果获取不到模板,非关键属性类目是不能发布产品的
-*/ -type TmallProductTemplateGetAPIResponse struct { - model.CommonResponse - TmallProductTemplateGetResponse -} - -// 产品接口 成功返回结果 -type TmallProductTemplateGetResponse struct { - XMLName xml.Name `xml:"tmall_product_template_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 见SpuTemplateDO说明 - Template *SpuTemplateDo `json:"template,omitempty" xml:"template,omitempty"` -} diff --git a/model/product/TmallProductUpdateSchemaGetAPIRequest.go b/model/product/TmallProductUpdateSchemaGetAPIRequest.go new file mode 100644 index 0000000000..8f0ba84a32 --- /dev/null +++ b/model/product/TmallProductUpdateSchemaGetAPIRequest.go @@ -0,0 +1,52 @@ +package product + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +产品更新规则获取接口 API请求 +tmall.product.update.schema.get + +获取用户更新产品的规则 +*/ +type TmallProductUpdateSchemaGetAPIRequest struct { + model.Params + // 产品编号 + _productId int64 +} + +// 初始化TmallProductUpdateSchemaGetAPIRequest对象 +func NewTmallProductUpdateSchemaGetRequest() *TmallProductUpdateSchemaGetAPIRequest{ + return &TmallProductUpdateSchemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallProductUpdateSchemaGetAPIRequest) GetApiMethodName() string { + return "tmall.product.update.schema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallProductUpdateSchemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductId Setter +// 产品编号 +func (r *TmallProductUpdateSchemaGetAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TmallProductUpdateSchemaGetAPIRequest) GetProductId() int64 { + return r._productId +} diff --git a/model/product/TmallProductUpdateSchemaGetAPIResponse.go b/model/product/TmallProductUpdateSchemaGetAPIResponse.go new file mode 100644 index 0000000000..26857de6e4 --- /dev/null +++ b/model/product/TmallProductUpdateSchemaGetAPIResponse.go @@ -0,0 +1,27 @@ +package product + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +产品更新规则获取接口 API返回值 +tmall.product.update.schema.get + +获取用户更新产品的规则 +*/ +type TmallProductUpdateSchemaGetAPIResponse struct { + model.CommonResponse + TmallProductUpdateSchemaGetAPIResponseModel +} + +// 产品更新规则获取接口 成功返回结果 +type TmallProductUpdateSchemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_product_update_schema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 参数产品ID对产品的更新规则 + UpdateProductSchema string `json:"update_product_schema,omitempty" xml:"update_product_schema,omitempty"` +} diff --git a/model/product/TmallProductUpdateSchemaGetResponse.go b/model/product/TmallProductUpdateSchemaGetResponse.go deleted file mode 100644 index 5c02956c1a..0000000000 --- a/model/product/TmallProductUpdateSchemaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package product - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -产品更新规则获取接口 API返回值 -tmall.product.update.schema.get - -获取用户更新产品的规则 -*/ -type TmallProductUpdateSchemaGetAPIResponse struct { - model.CommonResponse - TmallProductUpdateSchemaGetResponse -} - -// 产品更新规则获取接口 成功返回结果 -type TmallProductUpdateSchemaGetResponse struct { - XMLName xml.Name `xml:"tmall_product_update_schema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 参数产品ID对产品的更新规则 - UpdateProductSchema string `json:"update_product_schema,omitempty" xml:"update_product_schema,omitempty"` -} diff --git a/model/promotion/AlibabaArgusUpdateredriskAPIRequest.go b/model/promotion/AlibabaArgusUpdateredriskAPIRequest.go new file mode 100644 index 0000000000..f665550b4d --- /dev/null +++ b/model/promotion/AlibabaArgusUpdateredriskAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新红线价格 API请求 +alibaba.argus.updateredrisk + +商品健康中心新增红线价格规则 +*/ +type AlibabaArgusUpdateredriskAPIRequest struct { + model.Params + // 红线价格参数 + _redRiskUpdateFactor *RedRiskUpdateFactor +} + +// 初始化AlibabaArgusUpdateredriskAPIRequest对象 +func NewAlibabaArgusUpdateredriskRequest() *AlibabaArgusUpdateredriskAPIRequest{ + return &AlibabaArgusUpdateredriskAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaArgusUpdateredriskAPIRequest) GetApiMethodName() string { + return "alibaba.argus.updateredrisk" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaArgusUpdateredriskAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RedRiskUpdateFactor Setter +// 红线价格参数 +func (r *AlibabaArgusUpdateredriskAPIRequest) SetRedRiskUpdateFactor(_redRiskUpdateFactor *RedRiskUpdateFactor) error { + r._redRiskUpdateFactor = _redRiskUpdateFactor + r.Set("red_risk_update_factor", _redRiskUpdateFactor) + return nil +} + +// RedRiskUpdateFactor Getter +func (r AlibabaArgusUpdateredriskAPIRequest) GetRedRiskUpdateFactor() *RedRiskUpdateFactor { + return r._redRiskUpdateFactor +} diff --git a/model/promotion/AlibabaArgusUpdateredriskAPIResponse.go b/model/promotion/AlibabaArgusUpdateredriskAPIResponse.go new file mode 100644 index 0000000000..1f8def88d1 --- /dev/null +++ b/model/promotion/AlibabaArgusUpdateredriskAPIResponse.go @@ -0,0 +1,33 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新红线价格 API返回值 +alibaba.argus.updateredrisk + +商品健康中心新增红线价格规则 +*/ +type AlibabaArgusUpdateredriskAPIResponse struct { + model.CommonResponse + AlibabaArgusUpdateredriskAPIResponseModel +} + +// 更新红线价格 成功返回结果 +type AlibabaArgusUpdateredriskAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_argus_updateredrisk_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误信息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"` + // 总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/promotion/AlibabaArgusUpdateredriskResponse.go b/model/promotion/AlibabaArgusUpdateredriskResponse.go deleted file mode 100644 index 7d263a7208..0000000000 --- a/model/promotion/AlibabaArgusUpdateredriskResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新红线价格 API返回值 -alibaba.argus.updateredrisk - -商品健康中心新增红线价格规则 -*/ -type AlibabaArgusUpdateredriskAPIResponse struct { - model.CommonResponse - AlibabaArgusUpdateredriskResponse -} - -// 更新红线价格 成功返回结果 -type AlibabaArgusUpdateredriskResponse struct { - XMLName xml.Name `xml:"alibaba_argus_updateredrisk_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误信息 - ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` - // 错误码 - ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"` - // 总数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/promotion/AlibabaAsrDataservicePromotionruleDeleteAPIRequest.go b/model/promotion/AlibabaAsrDataservicePromotionruleDeleteAPIRequest.go new file mode 100644 index 0000000000..c3e52c5c84 --- /dev/null +++ b/model/promotion/AlibabaAsrDataservicePromotionruleDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠规则删除 API请求 +alibaba.asr.dataservice.promotionrule.delete + +删除优惠规则,例如星巴克删除优惠规则 +*/ +type AlibabaAsrDataservicePromotionruleDeleteAPIRequest struct { + model.Params + // poskey + _posKey int64 +} + +// 初始化AlibabaAsrDataservicePromotionruleDeleteAPIRequest对象 +func NewAlibabaAsrDataservicePromotionruleDeleteRequest() *AlibabaAsrDataservicePromotionruleDeleteAPIRequest{ + return &AlibabaAsrDataservicePromotionruleDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAsrDataservicePromotionruleDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.asr.dataservice.promotionrule.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAsrDataservicePromotionruleDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PosKey Setter +// poskey +func (r *AlibabaAsrDataservicePromotionruleDeleteAPIRequest) SetPosKey(_posKey int64) error { + r._posKey = _posKey + r.Set("pos_key", _posKey) + return nil +} + +// PosKey Getter +func (r AlibabaAsrDataservicePromotionruleDeleteAPIRequest) GetPosKey() int64 { + return r._posKey +} diff --git a/model/promotion/AlibabaAsrDataservicePromotionruleDeleteAPIResponse.go b/model/promotion/AlibabaAsrDataservicePromotionruleDeleteAPIResponse.go new file mode 100644 index 0000000000..8bb8899a80 --- /dev/null +++ b/model/promotion/AlibabaAsrDataservicePromotionruleDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠规则删除 API返回值 +alibaba.asr.dataservice.promotionrule.delete + +删除优惠规则,例如星巴克删除优惠规则 +*/ +type AlibabaAsrDataservicePromotionruleDeleteAPIResponse struct { + model.CommonResponse + AlibabaAsrDataservicePromotionruleDeleteAPIResponseModel +} + +// 优惠规则删除 成功返回结果 +type AlibabaAsrDataservicePromotionruleDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_asr_dataservice_promotionrule_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *DataServiceResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/AlibabaAsrDataservicePromotionruleDeleteResponse.go b/model/promotion/AlibabaAsrDataservicePromotionruleDeleteResponse.go deleted file mode 100644 index be62bf7a39..0000000000 --- a/model/promotion/AlibabaAsrDataservicePromotionruleDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -优惠规则删除 API返回值 -alibaba.asr.dataservice.promotionrule.delete - -删除优惠规则,例如星巴克删除优惠规则 -*/ -type AlibabaAsrDataservicePromotionruleDeleteAPIResponse struct { - model.CommonResponse - AlibabaAsrDataservicePromotionruleDeleteResponse -} - -// 优惠规则删除 成功返回结果 -type AlibabaAsrDataservicePromotionruleDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_asr_dataservice_promotionrule_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *DataServiceResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/AlibabaAsrDataservicePromotionruleQueryAPIRequest.go b/model/promotion/AlibabaAsrDataservicePromotionruleQueryAPIRequest.go new file mode 100644 index 0000000000..6acb1c44de --- /dev/null +++ b/model/promotion/AlibabaAsrDataservicePromotionruleQueryAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +星巴克优惠规则查询 API请求 +alibaba.asr.dataservice.promotionrule.query + +查询优惠规则,例如星巴克查询优惠规则 +*/ +type AlibabaAsrDataservicePromotionruleQueryAPIRequest struct { + model.Params + // 当前页 + _pageNo int64 + // 每页数量 + _pageSize int64 +} + +// 初始化AlibabaAsrDataservicePromotionruleQueryAPIRequest对象 +func NewAlibabaAsrDataservicePromotionruleQueryRequest() *AlibabaAsrDataservicePromotionruleQueryAPIRequest{ + return &AlibabaAsrDataservicePromotionruleQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAsrDataservicePromotionruleQueryAPIRequest) GetApiMethodName() string { + return "alibaba.asr.dataservice.promotionrule.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAsrDataservicePromotionruleQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageNo Setter +// 当前页 +func (r *AlibabaAsrDataservicePromotionruleQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r AlibabaAsrDataservicePromotionruleQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页数量 +func (r *AlibabaAsrDataservicePromotionruleQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAsrDataservicePromotionruleQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/promotion/AlibabaAsrDataservicePromotionruleQueryAPIResponse.go b/model/promotion/AlibabaAsrDataservicePromotionruleQueryAPIResponse.go new file mode 100644 index 0000000000..c5d98d99ca --- /dev/null +++ b/model/promotion/AlibabaAsrDataservicePromotionruleQueryAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +星巴克优惠规则查询 API返回值 +alibaba.asr.dataservice.promotionrule.query + +查询优惠规则,例如星巴克查询优惠规则 +*/ +type AlibabaAsrDataservicePromotionruleQueryAPIResponse struct { + model.CommonResponse + AlibabaAsrDataservicePromotionruleQueryAPIResponseModel +} + +// 星巴克优惠规则查询 成功返回结果 +type AlibabaAsrDataservicePromotionruleQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_asr_dataservice_promotionrule_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *DataServiceResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/AlibabaAsrDataservicePromotionruleQueryResponse.go b/model/promotion/AlibabaAsrDataservicePromotionruleQueryResponse.go deleted file mode 100644 index b1d0e8663c..0000000000 --- a/model/promotion/AlibabaAsrDataservicePromotionruleQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -星巴克优惠规则查询 API返回值 -alibaba.asr.dataservice.promotionrule.query - -查询优惠规则,例如星巴克查询优惠规则 -*/ -type AlibabaAsrDataservicePromotionruleQueryAPIResponse struct { - model.CommonResponse - AlibabaAsrDataservicePromotionruleQueryResponse -} - -// 星巴克优惠规则查询 成功返回结果 -type AlibabaAsrDataservicePromotionruleQueryResponse struct { - XMLName xml.Name `xml:"alibaba_asr_dataservice_promotionrule_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *DataServiceResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/AlibabaAsrDataservicePromotionruleWriteAPIRequest.go b/model/promotion/AlibabaAsrDataservicePromotionruleWriteAPIRequest.go new file mode 100644 index 0000000000..c1248dfdf1 --- /dev/null +++ b/model/promotion/AlibabaAsrDataservicePromotionruleWriteAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +业务优惠规则写入 API请求 +alibaba.asr.dataservice.promotionrule.write + +星巴克优惠规则写入 +*/ +type AlibabaAsrDataservicePromotionruleWriteAPIRequest struct { + model.Params + // 入参对象 + _poskeyPromotionRuleDto *PosKeyPromotionRuleDto +} + +// 初始化AlibabaAsrDataservicePromotionruleWriteAPIRequest对象 +func NewAlibabaAsrDataservicePromotionruleWriteRequest() *AlibabaAsrDataservicePromotionruleWriteAPIRequest{ + return &AlibabaAsrDataservicePromotionruleWriteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAsrDataservicePromotionruleWriteAPIRequest) GetApiMethodName() string { + return "alibaba.asr.dataservice.promotionrule.write" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAsrDataservicePromotionruleWriteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PoskeyPromotionRuleDto Setter +// 入参对象 +func (r *AlibabaAsrDataservicePromotionruleWriteAPIRequest) SetPoskeyPromotionRuleDto(_poskeyPromotionRuleDto *PosKeyPromotionRuleDto) error { + r._poskeyPromotionRuleDto = _poskeyPromotionRuleDto + r.Set("poskey_promotion_rule_dto", _poskeyPromotionRuleDto) + return nil +} + +// PoskeyPromotionRuleDto Getter +func (r AlibabaAsrDataservicePromotionruleWriteAPIRequest) GetPoskeyPromotionRuleDto() *PosKeyPromotionRuleDto { + return r._poskeyPromotionRuleDto +} diff --git a/model/promotion/AlibabaAsrDataservicePromotionruleWriteAPIResponse.go b/model/promotion/AlibabaAsrDataservicePromotionruleWriteAPIResponse.go new file mode 100644 index 0000000000..fd61687465 --- /dev/null +++ b/model/promotion/AlibabaAsrDataservicePromotionruleWriteAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +业务优惠规则写入 API返回值 +alibaba.asr.dataservice.promotionrule.write + +星巴克优惠规则写入 +*/ +type AlibabaAsrDataservicePromotionruleWriteAPIResponse struct { + model.CommonResponse + AlibabaAsrDataservicePromotionruleWriteAPIResponseModel +} + +// 业务优惠规则写入 成功返回结果 +type AlibabaAsrDataservicePromotionruleWriteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_asr_dataservice_promotionrule_write_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *DataServiceResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/AlibabaAsrDataservicePromotionruleWriteResponse.go b/model/promotion/AlibabaAsrDataservicePromotionruleWriteResponse.go deleted file mode 100644 index 941cfe7f9d..0000000000 --- a/model/promotion/AlibabaAsrDataservicePromotionruleWriteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -业务优惠规则写入 API返回值 -alibaba.asr.dataservice.promotionrule.write - -星巴克优惠规则写入 -*/ -type AlibabaAsrDataservicePromotionruleWriteAPIResponse struct { - model.CommonResponse - AlibabaAsrDataservicePromotionruleWriteResponse -} - -// 业务优惠规则写入 成功返回结果 -type AlibabaAsrDataservicePromotionruleWriteResponse struct { - XMLName xml.Name `xml:"alibaba_asr_dataservice_promotionrule_write_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *DataServiceResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/AlibabaBenefitDrawAPIRequest.go b/model/promotion/AlibabaBenefitDrawAPIRequest.go new file mode 100644 index 0000000000..13d107c031 --- /dev/null +++ b/model/promotion/AlibabaBenefitDrawAPIRequest.go @@ -0,0 +1,86 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖接口 API请求 +alibaba.benefit.draw + +功能:抽奖功能,供小程序抽奖调用 +业务逻辑:程序中通过奖池编号ename,业务方身份appName来查询奖池,根据授权用户(买家)来确认抽奖用户。然后程序进行抽奖流程。 +小程。 +安全保障:为保证数据不会越权,需要买家授,并且验证系统参数appKey。只有通过授权的,并且 +appkey验证通过的,才会进入抽奖流程,否则直接失败。 +因为appkey是系统参数,并且程序内部可以验证appkey和业务身份appName的关系 +是否一致,所以可以保证参数appName的合法性,没有越权。 +*/ +type AlibabaBenefitDrawAPIRequest struct { + model.Params + // 奖池唯一标识,奖池创建时即生成 + _ename string + // 调用方AppName:规定为promotioncenter-${appId} + _appName string + // 调用方应用ip,非必填 + _ip string +} + +// 初始化AlibabaBenefitDrawAPIRequest对象 +func NewAlibabaBenefitDrawRequest() *AlibabaBenefitDrawAPIRequest{ + return &AlibabaBenefitDrawAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaBenefitDrawAPIRequest) GetApiMethodName() string { + return "alibaba.benefit.draw" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaBenefitDrawAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Ename Setter +// 奖池唯一标识,奖池创建时即生成 +func (r *AlibabaBenefitDrawAPIRequest) SetEname(_ename string) error { + r._ename = _ename + r.Set("ename", _ename) + return nil +} + +// Ename Getter +func (r AlibabaBenefitDrawAPIRequest) GetEname() string { + return r._ename +} +// AppName Setter +// 调用方AppName:规定为promotioncenter-${appId} +func (r *AlibabaBenefitDrawAPIRequest) SetAppName(_appName string) error { + r._appName = _appName + r.Set("app_name", _appName) + return nil +} + +// AppName Getter +func (r AlibabaBenefitDrawAPIRequest) GetAppName() string { + return r._appName +} +// Ip Setter +// 调用方应用ip,非必填 +func (r *AlibabaBenefitDrawAPIRequest) SetIp(_ip string) error { + r._ip = _ip + r.Set("ip", _ip) + return nil +} + +// Ip Getter +func (r AlibabaBenefitDrawAPIRequest) GetIp() string { + return r._ip +} diff --git a/model/promotion/AlibabaBenefitDrawAPIResponse.go b/model/promotion/AlibabaBenefitDrawAPIResponse.go new file mode 100644 index 0000000000..2244b50d6d --- /dev/null +++ b/model/promotion/AlibabaBenefitDrawAPIResponse.go @@ -0,0 +1,39 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖接口 API返回值 +alibaba.benefit.draw + +功能:抽奖功能,供小程序抽奖调用 +业务逻辑:程序中通过奖池编号ename,业务方身份appName来查询奖池,根据授权用户(买家)来确认抽奖用户。然后程序进行抽奖流程。 +小程。 +安全保障:为保证数据不会越权,需要买家授,并且验证系统参数appKey。只有通过授权的,并且 +appkey验证通过的,才会进入抽奖流程,否则直接失败。 +因为appkey是系统参数,并且程序内部可以验证appkey和业务身份appName的关系 +是否一致,所以可以保证参数appName的合法性,没有越权。 +*/ +type AlibabaBenefitDrawAPIResponse struct { + model.CommonResponse + AlibabaBenefitDrawAPIResponseModel +} + +// 抽奖接口 成功返回结果 +type AlibabaBenefitDrawAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_benefit_draw_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaBenefitDrawResult `json:"result,omitempty" xml:"result,omitempty"` + // 权益id + PrizeId string `json:"prize_id,omitempty" xml:"prize_id,omitempty"` + // 奖品id + RightId string `json:"right_id,omitempty" xml:"right_id,omitempty"` + // 扩展信息 + ExtAttribute string `json:"ext_attribute,omitempty" xml:"ext_attribute,omitempty"` +} diff --git a/model/promotion/AlibabaBenefitDrawResponse.go b/model/promotion/AlibabaBenefitDrawResponse.go deleted file mode 100644 index efbb90bc71..0000000000 --- a/model/promotion/AlibabaBenefitDrawResponse.go +++ /dev/null @@ -1,39 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -抽奖接口 API返回值 -alibaba.benefit.draw - -功能:抽奖功能,供小程序抽奖调用 -业务逻辑:程序中通过奖池编号ename,业务方身份appName来查询奖池,根据授权用户(买家)来确认抽奖用户。然后程序进行抽奖流程。 -小程。 -安全保障:为保证数据不会越权,需要买家授,并且验证系统参数appKey。只有通过授权的,并且 -appkey验证通过的,才会进入抽奖流程,否则直接失败。 -因为appkey是系统参数,并且程序内部可以验证appkey和业务身份appName的关系 -是否一致,所以可以保证参数appName的合法性,没有越权。 -*/ -type AlibabaBenefitDrawAPIResponse struct { - model.CommonResponse - AlibabaBenefitDrawResponse -} - -// 抽奖接口 成功返回结果 -type AlibabaBenefitDrawResponse struct { - XMLName xml.Name `xml:"alibaba_benefit_draw_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaBenefitDrawResult `json:"result,omitempty" xml:"result,omitempty"` - // 权益id - PrizeId string `json:"prize_id,omitempty" xml:"prize_id,omitempty"` - // 奖品id - RightId string `json:"right_id,omitempty" xml:"right_id,omitempty"` - // 扩展信息 - ExtAttribute string `json:"ext_attribute,omitempty" xml:"ext_attribute,omitempty"` -} diff --git a/model/promotion/AlibabaBenefitQueryAPIRequest.go b/model/promotion/AlibabaBenefitQueryAPIRequest.go new file mode 100644 index 0000000000..77c2ef75e3 --- /dev/null +++ b/model/promotion/AlibabaBenefitQueryAPIRequest.go @@ -0,0 +1,86 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +奖池奖品查询列表 API请求 +alibaba.benefit.query + +功能:奖池奖品查询列表 +业务逻辑:程序中通过奖池编号ename,业务方身份appName来查询奖池提供的奖品返回给 +小程。 +安全保障:为保证数据不会越权,需要卖家授,并且验证系统参数appKey。只有通过授权的,并且 +appkey验证通过的,才会查数据 并透出,否则直接失败。 +因为appkey是系统参数,并且程序内部可以验证appkey和业务身份appName的关系 +是否一致,所以可以保证参数appName的合法性,没有越权。 +*/ +type AlibabaBenefitQueryAPIRequest struct { + model.Params + // 奖池编号 + _ename string + // 商家来源身份标识("promotion-"+appId) + _appName string + // 表示奖池类型(发奖奖池传1,抽奖传0) + _awardType string +} + +// 初始化AlibabaBenefitQueryAPIRequest对象 +func NewAlibabaBenefitQueryRequest() *AlibabaBenefitQueryAPIRequest{ + return &AlibabaBenefitQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaBenefitQueryAPIRequest) GetApiMethodName() string { + return "alibaba.benefit.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaBenefitQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Ename Setter +// 奖池编号 +func (r *AlibabaBenefitQueryAPIRequest) SetEname(_ename string) error { + r._ename = _ename + r.Set("ename", _ename) + return nil +} + +// Ename Getter +func (r AlibabaBenefitQueryAPIRequest) GetEname() string { + return r._ename +} +// AppName Setter +// 商家来源身份标识("promotion-"+appId) +func (r *AlibabaBenefitQueryAPIRequest) SetAppName(_appName string) error { + r._appName = _appName + r.Set("app_name", _appName) + return nil +} + +// AppName Getter +func (r AlibabaBenefitQueryAPIRequest) GetAppName() string { + return r._appName +} +// AwardType Setter +// 表示奖池类型(发奖奖池传1,抽奖传0) +func (r *AlibabaBenefitQueryAPIRequest) SetAwardType(_awardType string) error { + r._awardType = _awardType + r.Set("award_type", _awardType) + return nil +} + +// AwardType Getter +func (r AlibabaBenefitQueryAPIRequest) GetAwardType() string { + return r._awardType +} diff --git a/model/promotion/AlibabaBenefitQueryAPIResponse.go b/model/promotion/AlibabaBenefitQueryAPIResponse.go new file mode 100644 index 0000000000..29177b1422 --- /dev/null +++ b/model/promotion/AlibabaBenefitQueryAPIResponse.go @@ -0,0 +1,33 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +奖池奖品查询列表 API返回值 +alibaba.benefit.query + +功能:奖池奖品查询列表 +业务逻辑:程序中通过奖池编号ename,业务方身份appName来查询奖池提供的奖品返回给 +小程。 +安全保障:为保证数据不会越权,需要卖家授,并且验证系统参数appKey。只有通过授权的,并且 +appkey验证通过的,才会查数据 并透出,否则直接失败。 +因为appkey是系统参数,并且程序内部可以验证appkey和业务身份appName的关系 +是否一致,所以可以保证参数appName的合法性,没有越权。 +*/ +type AlibabaBenefitQueryAPIResponse struct { + model.CommonResponse + AlibabaBenefitQueryAPIResponseModel +} + +// 奖池奖品查询列表 成功返回结果 +type AlibabaBenefitQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_benefit_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaBenefitQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/AlibabaBenefitQueryResponse.go b/model/promotion/AlibabaBenefitQueryResponse.go deleted file mode 100644 index 4b7bfafc64..0000000000 --- a/model/promotion/AlibabaBenefitQueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -奖池奖品查询列表 API返回值 -alibaba.benefit.query - -功能:奖池奖品查询列表 -业务逻辑:程序中通过奖池编号ename,业务方身份appName来查询奖池提供的奖品返回给 -小程。 -安全保障:为保证数据不会越权,需要卖家授,并且验证系统参数appKey。只有通过授权的,并且 -appkey验证通过的,才会查数据 并透出,否则直接失败。 -因为appkey是系统参数,并且程序内部可以验证appkey和业务身份appName的关系 -是否一致,所以可以保证参数appName的合法性,没有越权。 -*/ -type AlibabaBenefitQueryAPIResponse struct { - model.CommonResponse - AlibabaBenefitQueryResponse -} - -// 奖池奖品查询列表 成功返回结果 -type AlibabaBenefitQueryResponse struct { - XMLName xml.Name `xml:"alibaba_benefit_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaBenefitQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/AlibabaInteractLotterydrawDodrawAPIRequest.go b/model/promotion/AlibabaInteractLotterydrawDodrawAPIRequest.go new file mode 100644 index 0000000000..3781c30c55 --- /dev/null +++ b/model/promotion/AlibabaInteractLotterydrawDodrawAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +无线端抽奖接口 API请求 +alibaba.interact.lotterydraw.dodraw + +商家抽奖平台无线端抽奖接口开放 +*/ +type AlibabaInteractLotterydrawDodrawAPIRequest struct { + model.Params + // 抽奖请求对象 + _lotteryDrawQuery *LotteryDrawQueryDto +} + +// 初始化AlibabaInteractLotterydrawDodrawAPIRequest对象 +func NewAlibabaInteractLotterydrawDodrawRequest() *AlibabaInteractLotterydrawDodrawAPIRequest{ + return &AlibabaInteractLotterydrawDodrawAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractLotterydrawDodrawAPIRequest) GetApiMethodName() string { + return "alibaba.interact.lotterydraw.dodraw" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractLotterydrawDodrawAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LotteryDrawQuery Setter +// 抽奖请求对象 +func (r *AlibabaInteractLotterydrawDodrawAPIRequest) SetLotteryDrawQuery(_lotteryDrawQuery *LotteryDrawQueryDto) error { + r._lotteryDrawQuery = _lotteryDrawQuery + r.Set("lottery_draw_query", _lotteryDrawQuery) + return nil +} + +// LotteryDrawQuery Getter +func (r AlibabaInteractLotterydrawDodrawAPIRequest) GetLotteryDrawQuery() *LotteryDrawQueryDto { + return r._lotteryDrawQuery +} diff --git a/model/promotion/AlibabaInteractLotterydrawDodrawAPIResponse.go b/model/promotion/AlibabaInteractLotterydrawDodrawAPIResponse.go new file mode 100644 index 0000000000..1f1fd6ec2e --- /dev/null +++ b/model/promotion/AlibabaInteractLotterydrawDodrawAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +无线端抽奖接口 API返回值 +alibaba.interact.lotterydraw.dodraw + +商家抽奖平台无线端抽奖接口开放 +*/ +type AlibabaInteractLotterydrawDodrawAPIResponse struct { + model.CommonResponse + AlibabaInteractLotterydrawDodrawAPIResponseModel +} + +// 无线端抽奖接口 成功返回结果 +type AlibabaInteractLotterydrawDodrawAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_lotterydraw_dodraw_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaInteractLotterydrawDodrawResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/AlibabaInteractLotterydrawDodrawResponse.go b/model/promotion/AlibabaInteractLotterydrawDodrawResponse.go deleted file mode 100644 index 830eb33c44..0000000000 --- a/model/promotion/AlibabaInteractLotterydrawDodrawResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -无线端抽奖接口 API返回值 -alibaba.interact.lotterydraw.dodraw - -商家抽奖平台无线端抽奖接口开放 -*/ -type AlibabaInteractLotterydrawDodrawAPIResponse struct { - model.CommonResponse - AlibabaInteractLotterydrawDodrawResponse -} - -// 无线端抽奖接口 成功返回结果 -type AlibabaInteractLotterydrawDodrawResponse struct { - XMLName xml.Name `xml:"alibaba_interact_lotterydraw_dodraw_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaInteractLotterydrawDodrawResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/AlibabaInteractLotterydrawDodrawResultDto.go b/model/promotion/AlibabaInteractLotterydrawDodrawResultDto.go new file mode 100644 index 0000000000..6873d336c6 --- /dev/null +++ b/model/promotion/AlibabaInteractLotterydrawDodrawResultDto.go @@ -0,0 +1,13 @@ +package promotion + +// AlibabaInteractLotterydrawDodrawResultDto +type AlibabaInteractLotterydrawDodrawResultDto struct { + // result + LotteryDrawResult *LotteryDrawResultDto `json:"lottery_draw_result,omitempty" xml:"lottery_draw_result,omitempty"` + // code + Code int64 `json:"code,omitempty" xml:"code,omitempty"` + // success + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // msg + Msg string `json:"msg,omitempty" xml:"msg,omitempty"` +} diff --git a/model/promotion/AlibabaLatourStrategyIssueAPIRequest.go b/model/promotion/AlibabaLatourStrategyIssueAPIRequest.go new file mode 100644 index 0000000000..f8e2038c55 --- /dev/null +++ b/model/promotion/AlibabaLatourStrategyIssueAPIRequest.go @@ -0,0 +1,192 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里巴巴权益发放接口 API请求 +alibaba.latour.strategy.issue + +阿里巴巴权益平台权益发放接口 +*/ +type AlibabaLatourStrategyIssueAPIRequest struct { + model.Params + // 扩展参数 + _extraData string + // 算法容灾 + _failoverAlgorithmResult bool + // 幂等id + _idempotentId string + // 发放渠道 + _channel string + // 除非有特殊申请,默认不允许使用该参数,请通过用户授权token传递用户信息 + _userId string + // 转换用户类型 + _transformedUserType string + // 是否需要过安全 + _needIdentifyRisk bool + // 除非有特殊申请,默认不允许使用该参数,请通过用户授权token传递用户信息 + _userNick string + // 投放计划code + _strategyCode string + // 用户类型 + _userType string + // 指定发放权益code + _selectedBenefitCode string +} + +// 初始化AlibabaLatourStrategyIssueAPIRequest对象 +func NewAlibabaLatourStrategyIssueRequest() *AlibabaLatourStrategyIssueAPIRequest{ + return &AlibabaLatourStrategyIssueAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLatourStrategyIssueAPIRequest) GetApiMethodName() string { + return "alibaba.latour.strategy.issue" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLatourStrategyIssueAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExtraData Setter +// 扩展参数 +func (r *AlibabaLatourStrategyIssueAPIRequest) SetExtraData(_extraData string) error { + r._extraData = _extraData + r.Set("extra_data", _extraData) + return nil +} + +// ExtraData Getter +func (r AlibabaLatourStrategyIssueAPIRequest) GetExtraData() string { + return r._extraData +} +// FailoverAlgorithmResult Setter +// 算法容灾 +func (r *AlibabaLatourStrategyIssueAPIRequest) SetFailoverAlgorithmResult(_failoverAlgorithmResult bool) error { + r._failoverAlgorithmResult = _failoverAlgorithmResult + r.Set("failover_algorithm_result", _failoverAlgorithmResult) + return nil +} + +// FailoverAlgorithmResult Getter +func (r AlibabaLatourStrategyIssueAPIRequest) GetFailoverAlgorithmResult() bool { + return r._failoverAlgorithmResult +} +// IdempotentId Setter +// 幂等id +func (r *AlibabaLatourStrategyIssueAPIRequest) SetIdempotentId(_idempotentId string) error { + r._idempotentId = _idempotentId + r.Set("idempotent_id", _idempotentId) + return nil +} + +// IdempotentId Getter +func (r AlibabaLatourStrategyIssueAPIRequest) GetIdempotentId() string { + return r._idempotentId +} +// Channel Setter +// 发放渠道 +func (r *AlibabaLatourStrategyIssueAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r AlibabaLatourStrategyIssueAPIRequest) GetChannel() string { + return r._channel +} +// UserId Setter +// 除非有特殊申请,默认不允许使用该参数,请通过用户授权token传递用户信息 +func (r *AlibabaLatourStrategyIssueAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaLatourStrategyIssueAPIRequest) GetUserId() string { + return r._userId +} +// TransformedUserType Setter +// 转换用户类型 +func (r *AlibabaLatourStrategyIssueAPIRequest) SetTransformedUserType(_transformedUserType string) error { + r._transformedUserType = _transformedUserType + r.Set("transformed_user_type", _transformedUserType) + return nil +} + +// TransformedUserType Getter +func (r AlibabaLatourStrategyIssueAPIRequest) GetTransformedUserType() string { + return r._transformedUserType +} +// NeedIdentifyRisk Setter +// 是否需要过安全 +func (r *AlibabaLatourStrategyIssueAPIRequest) SetNeedIdentifyRisk(_needIdentifyRisk bool) error { + r._needIdentifyRisk = _needIdentifyRisk + r.Set("need_identify_risk", _needIdentifyRisk) + return nil +} + +// NeedIdentifyRisk Getter +func (r AlibabaLatourStrategyIssueAPIRequest) GetNeedIdentifyRisk() bool { + return r._needIdentifyRisk +} +// UserNick Setter +// 除非有特殊申请,默认不允许使用该参数,请通过用户授权token传递用户信息 +func (r *AlibabaLatourStrategyIssueAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r AlibabaLatourStrategyIssueAPIRequest) GetUserNick() string { + return r._userNick +} +// StrategyCode Setter +// 投放计划code +func (r *AlibabaLatourStrategyIssueAPIRequest) SetStrategyCode(_strategyCode string) error { + r._strategyCode = _strategyCode + r.Set("strategy_code", _strategyCode) + return nil +} + +// StrategyCode Getter +func (r AlibabaLatourStrategyIssueAPIRequest) GetStrategyCode() string { + return r._strategyCode +} +// UserType Setter +// 用户类型 +func (r *AlibabaLatourStrategyIssueAPIRequest) SetUserType(_userType string) error { + r._userType = _userType + r.Set("user_type", _userType) + return nil +} + +// UserType Getter +func (r AlibabaLatourStrategyIssueAPIRequest) GetUserType() string { + return r._userType +} +// SelectedBenefitCode Setter +// 指定发放权益code +func (r *AlibabaLatourStrategyIssueAPIRequest) SetSelectedBenefitCode(_selectedBenefitCode string) error { + r._selectedBenefitCode = _selectedBenefitCode + r.Set("selected_benefit_code", _selectedBenefitCode) + return nil +} + +// SelectedBenefitCode Getter +func (r AlibabaLatourStrategyIssueAPIRequest) GetSelectedBenefitCode() string { + return r._selectedBenefitCode +} diff --git a/model/promotion/AlibabaLatourStrategyIssueAPIResponse.go b/model/promotion/AlibabaLatourStrategyIssueAPIResponse.go new file mode 100644 index 0000000000..b771213f24 --- /dev/null +++ b/model/promotion/AlibabaLatourStrategyIssueAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里巴巴权益发放接口 API返回值 +alibaba.latour.strategy.issue + +阿里巴巴权益平台权益发放接口 +*/ +type AlibabaLatourStrategyIssueAPIResponse struct { + model.CommonResponse + AlibabaLatourStrategyIssueAPIResponseModel +} + +// 阿里巴巴权益发放接口 成功返回结果 +type AlibabaLatourStrategyIssueAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_latour_strategy_issue_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaLatourStrategyIssueResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/AlibabaLatourStrategyIssueResponse.go b/model/promotion/AlibabaLatourStrategyIssueResponse.go deleted file mode 100644 index 24861da2d1..0000000000 --- a/model/promotion/AlibabaLatourStrategyIssueResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里巴巴权益发放接口 API返回值 -alibaba.latour.strategy.issue - -阿里巴巴权益平台权益发放接口 -*/ -type AlibabaLatourStrategyIssueAPIResponse struct { - model.CommonResponse - AlibabaLatourStrategyIssueResponse -} - -// 阿里巴巴权益发放接口 成功返回结果 -type AlibabaLatourStrategyIssueResponse struct { - XMLName xml.Name `xml:"alibaba_latour_strategy_issue_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaLatourStrategyIssueResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/AlibabaLatourStrategyShowAPIRequest.go b/model/promotion/AlibabaLatourStrategyShowAPIRequest.go new file mode 100644 index 0000000000..14d207302a --- /dev/null +++ b/model/promotion/AlibabaLatourStrategyShowAPIRequest.go @@ -0,0 +1,220 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里巴巴权益投放接口 API请求 +alibaba.latour.strategy.show + +阿里巴巴权益平台权益投放接口 +*/ +type AlibabaLatourStrategyShowAPIRequest struct { + model.Params + // 带出测试权益 + _withTestBenefit bool + // 渠道 + _channel string + // 每页权益数 + _pageSize int64 + // 要转换的账户类型 + _transformedUserType string + // 是否需要调用安全校验服务 + _needIdentifyRisk bool + // 用户昵称,除非有特殊申请,默认不允许使用该参数,请通过用户授权token传递用户信息 + _userNick string + // 不带出hadWin状态 + _skipWithHadWin bool + // 过滤无库存权益 + _filterEmptyInventory bool + // 用户id,除非有特殊申请,默认不允许使用该参数,请通过用户授权token传递用户信息 + _userId string + // 投放计划code + _strategyCode string + // 当面账户类型 + _userType string + // 当面分页 + _currentPage int64 + // 过滤人群 + _filterCrowd bool +} + +// 初始化AlibabaLatourStrategyShowAPIRequest对象 +func NewAlibabaLatourStrategyShowRequest() *AlibabaLatourStrategyShowAPIRequest{ + return &AlibabaLatourStrategyShowAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLatourStrategyShowAPIRequest) GetApiMethodName() string { + return "alibaba.latour.strategy.show" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLatourStrategyShowAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WithTestBenefit Setter +// 带出测试权益 +func (r *AlibabaLatourStrategyShowAPIRequest) SetWithTestBenefit(_withTestBenefit bool) error { + r._withTestBenefit = _withTestBenefit + r.Set("with_test_benefit", _withTestBenefit) + return nil +} + +// WithTestBenefit Getter +func (r AlibabaLatourStrategyShowAPIRequest) GetWithTestBenefit() bool { + return r._withTestBenefit +} +// Channel Setter +// 渠道 +func (r *AlibabaLatourStrategyShowAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r AlibabaLatourStrategyShowAPIRequest) GetChannel() string { + return r._channel +} +// PageSize Setter +// 每页权益数 +func (r *AlibabaLatourStrategyShowAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaLatourStrategyShowAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// TransformedUserType Setter +// 要转换的账户类型 +func (r *AlibabaLatourStrategyShowAPIRequest) SetTransformedUserType(_transformedUserType string) error { + r._transformedUserType = _transformedUserType + r.Set("transformed_user_type", _transformedUserType) + return nil +} + +// TransformedUserType Getter +func (r AlibabaLatourStrategyShowAPIRequest) GetTransformedUserType() string { + return r._transformedUserType +} +// NeedIdentifyRisk Setter +// 是否需要调用安全校验服务 +func (r *AlibabaLatourStrategyShowAPIRequest) SetNeedIdentifyRisk(_needIdentifyRisk bool) error { + r._needIdentifyRisk = _needIdentifyRisk + r.Set("need_identify_risk", _needIdentifyRisk) + return nil +} + +// NeedIdentifyRisk Getter +func (r AlibabaLatourStrategyShowAPIRequest) GetNeedIdentifyRisk() bool { + return r._needIdentifyRisk +} +// UserNick Setter +// 用户昵称,除非有特殊申请,默认不允许使用该参数,请通过用户授权token传递用户信息 +func (r *AlibabaLatourStrategyShowAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r AlibabaLatourStrategyShowAPIRequest) GetUserNick() string { + return r._userNick +} +// SkipWithHadWin Setter +// 不带出hadWin状态 +func (r *AlibabaLatourStrategyShowAPIRequest) SetSkipWithHadWin(_skipWithHadWin bool) error { + r._skipWithHadWin = _skipWithHadWin + r.Set("skip_with_had_win", _skipWithHadWin) + return nil +} + +// SkipWithHadWin Getter +func (r AlibabaLatourStrategyShowAPIRequest) GetSkipWithHadWin() bool { + return r._skipWithHadWin +} +// FilterEmptyInventory Setter +// 过滤无库存权益 +func (r *AlibabaLatourStrategyShowAPIRequest) SetFilterEmptyInventory(_filterEmptyInventory bool) error { + r._filterEmptyInventory = _filterEmptyInventory + r.Set("filter_empty_inventory", _filterEmptyInventory) + return nil +} + +// FilterEmptyInventory Getter +func (r AlibabaLatourStrategyShowAPIRequest) GetFilterEmptyInventory() bool { + return r._filterEmptyInventory +} +// UserId Setter +// 用户id,除非有特殊申请,默认不允许使用该参数,请通过用户授权token传递用户信息 +func (r *AlibabaLatourStrategyShowAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaLatourStrategyShowAPIRequest) GetUserId() string { + return r._userId +} +// StrategyCode Setter +// 投放计划code +func (r *AlibabaLatourStrategyShowAPIRequest) SetStrategyCode(_strategyCode string) error { + r._strategyCode = _strategyCode + r.Set("strategy_code", _strategyCode) + return nil +} + +// StrategyCode Getter +func (r AlibabaLatourStrategyShowAPIRequest) GetStrategyCode() string { + return r._strategyCode +} +// UserType Setter +// 当面账户类型 +func (r *AlibabaLatourStrategyShowAPIRequest) SetUserType(_userType string) error { + r._userType = _userType + r.Set("user_type", _userType) + return nil +} + +// UserType Getter +func (r AlibabaLatourStrategyShowAPIRequest) GetUserType() string { + return r._userType +} +// CurrentPage Setter +// 当面分页 +func (r *AlibabaLatourStrategyShowAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AlibabaLatourStrategyShowAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// FilterCrowd Setter +// 过滤人群 +func (r *AlibabaLatourStrategyShowAPIRequest) SetFilterCrowd(_filterCrowd bool) error { + r._filterCrowd = _filterCrowd + r.Set("filter_crowd", _filterCrowd) + return nil +} + +// FilterCrowd Getter +func (r AlibabaLatourStrategyShowAPIRequest) GetFilterCrowd() bool { + return r._filterCrowd +} diff --git a/model/promotion/AlibabaLatourStrategyShowAPIResponse.go b/model/promotion/AlibabaLatourStrategyShowAPIResponse.go new file mode 100644 index 0000000000..cbd3e60f35 --- /dev/null +++ b/model/promotion/AlibabaLatourStrategyShowAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里巴巴权益投放接口 API返回值 +alibaba.latour.strategy.show + +阿里巴巴权益平台权益投放接口 +*/ +type AlibabaLatourStrategyShowAPIResponse struct { + model.CommonResponse + AlibabaLatourStrategyShowAPIResponseModel +} + +// 阿里巴巴权益投放接口 成功返回结果 +type AlibabaLatourStrategyShowAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_latour_strategy_show_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaLatourStrategyShowResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/AlibabaLatourStrategyShowResponse.go b/model/promotion/AlibabaLatourStrategyShowResponse.go deleted file mode 100644 index 665700dae6..0000000000 --- a/model/promotion/AlibabaLatourStrategyShowResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里巴巴权益投放接口 API返回值 -alibaba.latour.strategy.show - -阿里巴巴权益平台权益投放接口 -*/ -type AlibabaLatourStrategyShowAPIResponse struct { - model.CommonResponse - AlibabaLatourStrategyShowResponse -} - -// 阿里巴巴权益投放接口 成功返回结果 -type AlibabaLatourStrategyShowResponse struct { - XMLName xml.Name `xml:"alibaba_latour_strategy_show_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaLatourStrategyShowResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/AlibabaMarketingLotteryActivityBindAPIRequest.go b/model/promotion/AlibabaMarketingLotteryActivityBindAPIRequest.go new file mode 100644 index 0000000000..5d8e81b0a8 --- /dev/null +++ b/model/promotion/AlibabaMarketingLotteryActivityBindAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台奖池绑定接口 API请求 +alibaba.marketing.lottery.activity.bind + +抽奖平台奖池关联接口 +*/ +type AlibabaMarketingLotteryActivityBindAPIRequest struct { + model.Params + // 关联抽奖活动请求对象 + _lotteryActivityRel *LotteryActivityRelDto +} + +// 初始化AlibabaMarketingLotteryActivityBindAPIRequest对象 +func NewAlibabaMarketingLotteryActivityBindRequest() *AlibabaMarketingLotteryActivityBindAPIRequest{ + return &AlibabaMarketingLotteryActivityBindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMarketingLotteryActivityBindAPIRequest) GetApiMethodName() string { + return "alibaba.marketing.lottery.activity.bind" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMarketingLotteryActivityBindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LotteryActivityRel Setter +// 关联抽奖活动请求对象 +func (r *AlibabaMarketingLotteryActivityBindAPIRequest) SetLotteryActivityRel(_lotteryActivityRel *LotteryActivityRelDto) error { + r._lotteryActivityRel = _lotteryActivityRel + r.Set("lottery_activity_rel", _lotteryActivityRel) + return nil +} + +// LotteryActivityRel Getter +func (r AlibabaMarketingLotteryActivityBindAPIRequest) GetLotteryActivityRel() *LotteryActivityRelDto { + return r._lotteryActivityRel +} diff --git a/model/promotion/AlibabaMarketingLotteryActivityBindAPIResponse.go b/model/promotion/AlibabaMarketingLotteryActivityBindAPIResponse.go new file mode 100644 index 0000000000..7cb0755574 --- /dev/null +++ b/model/promotion/AlibabaMarketingLotteryActivityBindAPIResponse.go @@ -0,0 +1,33 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台奖池绑定接口 API返回值 +alibaba.marketing.lottery.activity.bind + +抽奖平台奖池关联接口 +*/ +type AlibabaMarketingLotteryActivityBindAPIResponse struct { + model.CommonResponse + AlibabaMarketingLotteryActivityBindAPIResponseModel +} + +// 抽奖平台奖池绑定接口 成功返回结果 +type AlibabaMarketingLotteryActivityBindAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_marketing_lottery_activity_bind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 关联成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 错误码 + MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 是否调用成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/promotion/AlibabaMarketingLotteryActivityBindResponse.go b/model/promotion/AlibabaMarketingLotteryActivityBindResponse.go deleted file mode 100644 index 7bff457a50..0000000000 --- a/model/promotion/AlibabaMarketingLotteryActivityBindResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -抽奖平台奖池绑定接口 API返回值 -alibaba.marketing.lottery.activity.bind - -抽奖平台奖池关联接口 -*/ -type AlibabaMarketingLotteryActivityBindAPIResponse struct { - model.CommonResponse - AlibabaMarketingLotteryActivityBindResponse -} - -// 抽奖平台奖池绑定接口 成功返回结果 -type AlibabaMarketingLotteryActivityBindResponse struct { - XMLName xml.Name `xml:"alibaba_marketing_lottery_activity_bind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 关联成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 错误码 - MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 是否调用成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/promotion/AlibabaMarketingLotteryActivityCreateAPIRequest.go b/model/promotion/AlibabaMarketingLotteryActivityCreateAPIRequest.go new file mode 100644 index 0000000000..f1e60c9d57 --- /dev/null +++ b/model/promotion/AlibabaMarketingLotteryActivityCreateAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台奖池创建接口 API请求 +alibaba.marketing.lottery.activity.create + +抽奖平台奖池创建接口 +*/ +type AlibabaMarketingLotteryActivityCreateAPIRequest struct { + model.Params + // 抽奖活动创建请求对象 + _lotteryActivityCreate *LotteryActivityCreateDto +} + +// 初始化AlibabaMarketingLotteryActivityCreateAPIRequest对象 +func NewAlibabaMarketingLotteryActivityCreateRequest() *AlibabaMarketingLotteryActivityCreateAPIRequest{ + return &AlibabaMarketingLotteryActivityCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMarketingLotteryActivityCreateAPIRequest) GetApiMethodName() string { + return "alibaba.marketing.lottery.activity.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMarketingLotteryActivityCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LotteryActivityCreate Setter +// 抽奖活动创建请求对象 +func (r *AlibabaMarketingLotteryActivityCreateAPIRequest) SetLotteryActivityCreate(_lotteryActivityCreate *LotteryActivityCreateDto) error { + r._lotteryActivityCreate = _lotteryActivityCreate + r.Set("lottery_activity_create", _lotteryActivityCreate) + return nil +} + +// LotteryActivityCreate Getter +func (r AlibabaMarketingLotteryActivityCreateAPIRequest) GetLotteryActivityCreate() *LotteryActivityCreateDto { + return r._lotteryActivityCreate +} diff --git a/model/promotion/AlibabaMarketingLotteryActivityCreateAPIResponse.go b/model/promotion/AlibabaMarketingLotteryActivityCreateAPIResponse.go new file mode 100644 index 0000000000..8a98e3e9ab --- /dev/null +++ b/model/promotion/AlibabaMarketingLotteryActivityCreateAPIResponse.go @@ -0,0 +1,33 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台奖池创建接口 API返回值 +alibaba.marketing.lottery.activity.create + +抽奖平台奖池创建接口 +*/ +type AlibabaMarketingLotteryActivityCreateAPIResponse struct { + model.CommonResponse + AlibabaMarketingLotteryActivityCreateAPIResponseModel +} + +// 抽奖平台奖池创建接口 成功返回结果 +type AlibabaMarketingLotteryActivityCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_marketing_lottery_activity_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 抽奖活动 + LotteryActivity *LotteryActivityExtendDto `json:"lottery_activity,omitempty" xml:"lottery_activity,omitempty"` +} diff --git a/model/promotion/AlibabaMarketingLotteryActivityCreateResponse.go b/model/promotion/AlibabaMarketingLotteryActivityCreateResponse.go deleted file mode 100644 index 351bd851c5..0000000000 --- a/model/promotion/AlibabaMarketingLotteryActivityCreateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -抽奖平台奖池创建接口 API返回值 -alibaba.marketing.lottery.activity.create - -抽奖平台奖池创建接口 -*/ -type AlibabaMarketingLotteryActivityCreateAPIResponse struct { - model.CommonResponse - AlibabaMarketingLotteryActivityCreateResponse -} - -// 抽奖平台奖池创建接口 成功返回结果 -type AlibabaMarketingLotteryActivityCreateResponse struct { - XMLName xml.Name `xml:"alibaba_marketing_lottery_activity_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 抽奖活动 - LotteryActivity *LotteryActivityExtendDto `json:"lottery_activity,omitempty" xml:"lottery_activity,omitempty"` -} diff --git a/model/promotion/AlibabaMarketingLotteryActivityDeleteAPIRequest.go b/model/promotion/AlibabaMarketingLotteryActivityDeleteAPIRequest.go new file mode 100644 index 0000000000..9eea1b1d98 --- /dev/null +++ b/model/promotion/AlibabaMarketingLotteryActivityDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台活动删除接口 API请求 +alibaba.marketing.lottery.activity.delete + +抽奖平台活动删除接口 +*/ +type AlibabaMarketingLotteryActivityDeleteAPIRequest struct { + model.Params + // 抽奖活动删除对象 + _lotteryActivityDelete *LotteryActivityDeleteDto +} + +// 初始化AlibabaMarketingLotteryActivityDeleteAPIRequest对象 +func NewAlibabaMarketingLotteryActivityDeleteRequest() *AlibabaMarketingLotteryActivityDeleteAPIRequest{ + return &AlibabaMarketingLotteryActivityDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMarketingLotteryActivityDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.marketing.lottery.activity.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMarketingLotteryActivityDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LotteryActivityDelete Setter +// 抽奖活动删除对象 +func (r *AlibabaMarketingLotteryActivityDeleteAPIRequest) SetLotteryActivityDelete(_lotteryActivityDelete *LotteryActivityDeleteDto) error { + r._lotteryActivityDelete = _lotteryActivityDelete + r.Set("lottery_activity_delete", _lotteryActivityDelete) + return nil +} + +// LotteryActivityDelete Getter +func (r AlibabaMarketingLotteryActivityDeleteAPIRequest) GetLotteryActivityDelete() *LotteryActivityDeleteDto { + return r._lotteryActivityDelete +} diff --git a/model/promotion/AlibabaMarketingLotteryActivityDeleteAPIResponse.go b/model/promotion/AlibabaMarketingLotteryActivityDeleteAPIResponse.go new file mode 100644 index 0000000000..7c0fe084db --- /dev/null +++ b/model/promotion/AlibabaMarketingLotteryActivityDeleteAPIResponse.go @@ -0,0 +1,33 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台活动删除接口 API返回值 +alibaba.marketing.lottery.activity.delete + +抽奖平台活动删除接口 +*/ +type AlibabaMarketingLotteryActivityDeleteAPIResponse struct { + model.CommonResponse + AlibabaMarketingLotteryActivityDeleteAPIResponseModel +} + +// 抽奖平台活动删除接口 成功返回结果 +type AlibabaMarketingLotteryActivityDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_marketing_lottery_activity_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // code + MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // msg + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/promotion/AlibabaMarketingLotteryActivityDeleteResponse.go b/model/promotion/AlibabaMarketingLotteryActivityDeleteResponse.go deleted file mode 100644 index 1e45f27f1e..0000000000 --- a/model/promotion/AlibabaMarketingLotteryActivityDeleteResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -抽奖平台活动删除接口 API返回值 -alibaba.marketing.lottery.activity.delete - -抽奖平台活动删除接口 -*/ -type AlibabaMarketingLotteryActivityDeleteAPIResponse struct { - model.CommonResponse - AlibabaMarketingLotteryActivityDeleteResponse -} - -// 抽奖平台活动删除接口 成功返回结果 -type AlibabaMarketingLotteryActivityDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_marketing_lottery_activity_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // code - MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // msg - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/promotion/AlibabaMarketingLotteryActivityQueryAPIRequest.go b/model/promotion/AlibabaMarketingLotteryActivityQueryAPIRequest.go new file mode 100644 index 0000000000..e1f8d28b56 --- /dev/null +++ b/model/promotion/AlibabaMarketingLotteryActivityQueryAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台奖池查询接口 API请求 +alibaba.marketing.lottery.activity.query + +抽奖平台奖池查询接口 +*/ +type AlibabaMarketingLotteryActivityQueryAPIRequest struct { + model.Params + // 查询抽奖活动请求对象 + _lotteryActivityQuery *LotteryActivityQueryDto +} + +// 初始化AlibabaMarketingLotteryActivityQueryAPIRequest对象 +func NewAlibabaMarketingLotteryActivityQueryRequest() *AlibabaMarketingLotteryActivityQueryAPIRequest{ + return &AlibabaMarketingLotteryActivityQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMarketingLotteryActivityQueryAPIRequest) GetApiMethodName() string { + return "alibaba.marketing.lottery.activity.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMarketingLotteryActivityQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LotteryActivityQuery Setter +// 查询抽奖活动请求对象 +func (r *AlibabaMarketingLotteryActivityQueryAPIRequest) SetLotteryActivityQuery(_lotteryActivityQuery *LotteryActivityQueryDto) error { + r._lotteryActivityQuery = _lotteryActivityQuery + r.Set("lottery_activity_query", _lotteryActivityQuery) + return nil +} + +// LotteryActivityQuery Getter +func (r AlibabaMarketingLotteryActivityQueryAPIRequest) GetLotteryActivityQuery() *LotteryActivityQueryDto { + return r._lotteryActivityQuery +} diff --git a/model/promotion/AlibabaMarketingLotteryActivityQueryAPIResponse.go b/model/promotion/AlibabaMarketingLotteryActivityQueryAPIResponse.go new file mode 100644 index 0000000000..cfff03dceb --- /dev/null +++ b/model/promotion/AlibabaMarketingLotteryActivityQueryAPIResponse.go @@ -0,0 +1,33 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台奖池查询接口 API返回值 +alibaba.marketing.lottery.activity.query + +抽奖平台奖池查询接口 +*/ +type AlibabaMarketingLotteryActivityQueryAPIResponse struct { + model.CommonResponse + AlibabaMarketingLotteryActivityQueryAPIResponseModel +} + +// 抽奖平台奖池查询接口 成功返回结果 +type AlibabaMarketingLotteryActivityQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_marketing_lottery_activity_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分页结果 + PagingDto *PagingDto `json:"paging_dto,omitempty" xml:"paging_dto,omitempty"` + // code + MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // msg + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/promotion/AlibabaMarketingLotteryActivityQueryResponse.go b/model/promotion/AlibabaMarketingLotteryActivityQueryResponse.go deleted file mode 100644 index 095a0e4dca..0000000000 --- a/model/promotion/AlibabaMarketingLotteryActivityQueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -抽奖平台奖池查询接口 API返回值 -alibaba.marketing.lottery.activity.query - -抽奖平台奖池查询接口 -*/ -type AlibabaMarketingLotteryActivityQueryAPIResponse struct { - model.CommonResponse - AlibabaMarketingLotteryActivityQueryResponse -} - -// 抽奖平台奖池查询接口 成功返回结果 -type AlibabaMarketingLotteryActivityQueryResponse struct { - XMLName xml.Name `xml:"alibaba_marketing_lottery_activity_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分页结果 - PagingDto *PagingDto `json:"paging_dto,omitempty" xml:"paging_dto,omitempty"` - // code - MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // msg - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/promotion/AlibabaMarketingLotteryActivityUnbindAPIRequest.go b/model/promotion/AlibabaMarketingLotteryActivityUnbindAPIRequest.go new file mode 100644 index 0000000000..b505d23f0e --- /dev/null +++ b/model/promotion/AlibabaMarketingLotteryActivityUnbindAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台奖池解绑接口 API请求 +alibaba.marketing.lottery.activity.unbind + +抽奖平台奖池解绑接口 +*/ +type AlibabaMarketingLotteryActivityUnbindAPIRequest struct { + model.Params + // 解绑抽奖活动请求对象 + _lotteryActivityRel *LotteryActivityRelDto +} + +// 初始化AlibabaMarketingLotteryActivityUnbindAPIRequest对象 +func NewAlibabaMarketingLotteryActivityUnbindRequest() *AlibabaMarketingLotteryActivityUnbindAPIRequest{ + return &AlibabaMarketingLotteryActivityUnbindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMarketingLotteryActivityUnbindAPIRequest) GetApiMethodName() string { + return "alibaba.marketing.lottery.activity.unbind" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMarketingLotteryActivityUnbindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LotteryActivityRel Setter +// 解绑抽奖活动请求对象 +func (r *AlibabaMarketingLotteryActivityUnbindAPIRequest) SetLotteryActivityRel(_lotteryActivityRel *LotteryActivityRelDto) error { + r._lotteryActivityRel = _lotteryActivityRel + r.Set("lottery_activity_rel", _lotteryActivityRel) + return nil +} + +// LotteryActivityRel Getter +func (r AlibabaMarketingLotteryActivityUnbindAPIRequest) GetLotteryActivityRel() *LotteryActivityRelDto { + return r._lotteryActivityRel +} diff --git a/model/promotion/AlibabaMarketingLotteryActivityUnbindAPIResponse.go b/model/promotion/AlibabaMarketingLotteryActivityUnbindAPIResponse.go new file mode 100644 index 0000000000..d09a210b4c --- /dev/null +++ b/model/promotion/AlibabaMarketingLotteryActivityUnbindAPIResponse.go @@ -0,0 +1,33 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台奖池解绑接口 API返回值 +alibaba.marketing.lottery.activity.unbind + +抽奖平台奖池解绑接口 +*/ +type AlibabaMarketingLotteryActivityUnbindAPIResponse struct { + model.CommonResponse + AlibabaMarketingLotteryActivityUnbindAPIResponseModel +} + +// 抽奖平台奖池解绑接口 成功返回结果 +type AlibabaMarketingLotteryActivityUnbindAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_marketing_lottery_activity_unbind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 解绑成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 错误码 + MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 调用成功与否 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/promotion/AlibabaMarketingLotteryActivityUnbindResponse.go b/model/promotion/AlibabaMarketingLotteryActivityUnbindResponse.go deleted file mode 100644 index 80649ee4b3..0000000000 --- a/model/promotion/AlibabaMarketingLotteryActivityUnbindResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -抽奖平台奖池解绑接口 API返回值 -alibaba.marketing.lottery.activity.unbind - -抽奖平台奖池解绑接口 -*/ -type AlibabaMarketingLotteryActivityUnbindAPIResponse struct { - model.CommonResponse - AlibabaMarketingLotteryActivityUnbindResponse -} - -// 抽奖平台奖池解绑接口 成功返回结果 -type AlibabaMarketingLotteryActivityUnbindResponse struct { - XMLName xml.Name `xml:"alibaba_marketing_lottery_activity_unbind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 解绑成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 错误码 - MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 调用成功与否 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/promotion/AlibabaMarketingLotteryAwardAppendAPIRequest.go b/model/promotion/AlibabaMarketingLotteryAwardAppendAPIRequest.go new file mode 100644 index 0000000000..1afb523447 --- /dev/null +++ b/model/promotion/AlibabaMarketingLotteryAwardAppendAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台奖品添加接口 API请求 +alibaba.marketing.lottery.award.append + +抽奖平台奖品添加接口,目前仅用于奖池众筹项目 +*/ +type AlibabaMarketingLotteryAwardAppendAPIRequest struct { + model.Params + // 奖品添加请求对象 + _lotteryAwardAppend *LotteryAwardAppendDto +} + +// 初始化AlibabaMarketingLotteryAwardAppendAPIRequest对象 +func NewAlibabaMarketingLotteryAwardAppendRequest() *AlibabaMarketingLotteryAwardAppendAPIRequest{ + return &AlibabaMarketingLotteryAwardAppendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMarketingLotteryAwardAppendAPIRequest) GetApiMethodName() string { + return "alibaba.marketing.lottery.award.append" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMarketingLotteryAwardAppendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LotteryAwardAppend Setter +// 奖品添加请求对象 +func (r *AlibabaMarketingLotteryAwardAppendAPIRequest) SetLotteryAwardAppend(_lotteryAwardAppend *LotteryAwardAppendDto) error { + r._lotteryAwardAppend = _lotteryAwardAppend + r.Set("lottery_award_append", _lotteryAwardAppend) + return nil +} + +// LotteryAwardAppend Getter +func (r AlibabaMarketingLotteryAwardAppendAPIRequest) GetLotteryAwardAppend() *LotteryAwardAppendDto { + return r._lotteryAwardAppend +} diff --git a/model/promotion/AlibabaMarketingLotteryAwardAppendAPIResponse.go b/model/promotion/AlibabaMarketingLotteryAwardAppendAPIResponse.go new file mode 100644 index 0000000000..2ce861dbb3 --- /dev/null +++ b/model/promotion/AlibabaMarketingLotteryAwardAppendAPIResponse.go @@ -0,0 +1,33 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台奖品添加接口 API返回值 +alibaba.marketing.lottery.award.append + +抽奖平台奖品添加接口,目前仅用于奖池众筹项目 +*/ +type AlibabaMarketingLotteryAwardAppendAPIResponse struct { + model.CommonResponse + AlibabaMarketingLotteryAwardAppendAPIResponseModel +} + +// 抽奖平台奖品添加接口 成功返回结果 +type AlibabaMarketingLotteryAwardAppendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_marketing_lottery_award_append_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 奖品添加成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // code + MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 接口调用成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // msg + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/promotion/AlibabaMarketingLotteryAwardAppendResponse.go b/model/promotion/AlibabaMarketingLotteryAwardAppendResponse.go deleted file mode 100644 index 0be5507c45..0000000000 --- a/model/promotion/AlibabaMarketingLotteryAwardAppendResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -抽奖平台奖品添加接口 API返回值 -alibaba.marketing.lottery.award.append - -抽奖平台奖品添加接口,目前仅用于奖池众筹项目 -*/ -type AlibabaMarketingLotteryAwardAppendAPIResponse struct { - model.CommonResponse - AlibabaMarketingLotteryAwardAppendResponse -} - -// 抽奖平台奖品添加接口 成功返回结果 -type AlibabaMarketingLotteryAwardAppendResponse struct { - XMLName xml.Name `xml:"alibaba_marketing_lottery_award_append_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 奖品添加成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // code - MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 接口调用成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // msg - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/promotion/AlibabaMarketingLotteryAwardQueryAPIRequest.go b/model/promotion/AlibabaMarketingLotteryAwardQueryAPIRequest.go new file mode 100644 index 0000000000..a76108f5ce --- /dev/null +++ b/model/promotion/AlibabaMarketingLotteryAwardQueryAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台查询可用奖品接口 API请求 +alibaba.marketing.lottery.award.query + +抽奖平台查询可用奖品接口 +*/ +type AlibabaMarketingLotteryAwardQueryAPIRequest struct { + model.Params + // 查询奖品请求对象 + _lotteryAwardInstQuery *LotteryAwardInstQueryDto +} + +// 初始化AlibabaMarketingLotteryAwardQueryAPIRequest对象 +func NewAlibabaMarketingLotteryAwardQueryRequest() *AlibabaMarketingLotteryAwardQueryAPIRequest{ + return &AlibabaMarketingLotteryAwardQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMarketingLotteryAwardQueryAPIRequest) GetApiMethodName() string { + return "alibaba.marketing.lottery.award.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMarketingLotteryAwardQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LotteryAwardInstQuery Setter +// 查询奖品请求对象 +func (r *AlibabaMarketingLotteryAwardQueryAPIRequest) SetLotteryAwardInstQuery(_lotteryAwardInstQuery *LotteryAwardInstQueryDto) error { + r._lotteryAwardInstQuery = _lotteryAwardInstQuery + r.Set("lottery_award_inst_query", _lotteryAwardInstQuery) + return nil +} + +// LotteryAwardInstQuery Getter +func (r AlibabaMarketingLotteryAwardQueryAPIRequest) GetLotteryAwardInstQuery() *LotteryAwardInstQueryDto { + return r._lotteryAwardInstQuery +} diff --git a/model/promotion/AlibabaMarketingLotteryAwardQueryAPIResponse.go b/model/promotion/AlibabaMarketingLotteryAwardQueryAPIResponse.go new file mode 100644 index 0000000000..9862184349 --- /dev/null +++ b/model/promotion/AlibabaMarketingLotteryAwardQueryAPIResponse.go @@ -0,0 +1,33 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台查询可用奖品接口 API返回值 +alibaba.marketing.lottery.award.query + +抽奖平台查询可用奖品接口 +*/ +type AlibabaMarketingLotteryAwardQueryAPIResponse struct { + model.CommonResponse + AlibabaMarketingLotteryAwardQueryAPIResponseModel +} + +// 抽奖平台查询可用奖品接口 成功返回结果 +type AlibabaMarketingLotteryAwardQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_marketing_lottery_award_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *LotteryAwardInstResultDto `json:"result,omitempty" xml:"result,omitempty"` + // code + MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // msg + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/promotion/AlibabaMarketingLotteryAwardQueryResponse.go b/model/promotion/AlibabaMarketingLotteryAwardQueryResponse.go deleted file mode 100644 index cf7bb162c2..0000000000 --- a/model/promotion/AlibabaMarketingLotteryAwardQueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -抽奖平台查询可用奖品接口 API返回值 -alibaba.marketing.lottery.award.query - -抽奖平台查询可用奖品接口 -*/ -type AlibabaMarketingLotteryAwardQueryAPIResponse struct { - model.CommonResponse - AlibabaMarketingLotteryAwardQueryResponse -} - -// 抽奖平台查询可用奖品接口 成功返回结果 -type AlibabaMarketingLotteryAwardQueryResponse struct { - XMLName xml.Name `xml:"alibaba_marketing_lottery_award_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *LotteryAwardInstResultDto `json:"result,omitempty" xml:"result,omitempty"` - // code - MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // msg - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/promotion/AlibabaMarketingLotteryDrawDodrawAPIRequest.go b/model/promotion/AlibabaMarketingLotteryDrawDodrawAPIRequest.go new file mode 100644 index 0000000000..81a2a5ce6a --- /dev/null +++ b/model/promotion/AlibabaMarketingLotteryDrawDodrawAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台抽奖接口 API请求 +alibaba.marketing.lottery.draw.dodraw + +抽奖平台PC端抽奖接口 +*/ +type AlibabaMarketingLotteryDrawDodrawAPIRequest struct { + model.Params + // 抽奖请求对象 + _lotteryDrawQuery *LotteryDrawQueryDto +} + +// 初始化AlibabaMarketingLotteryDrawDodrawAPIRequest对象 +func NewAlibabaMarketingLotteryDrawDodrawRequest() *AlibabaMarketingLotteryDrawDodrawAPIRequest{ + return &AlibabaMarketingLotteryDrawDodrawAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMarketingLotteryDrawDodrawAPIRequest) GetApiMethodName() string { + return "alibaba.marketing.lottery.draw.dodraw" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMarketingLotteryDrawDodrawAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LotteryDrawQuery Setter +// 抽奖请求对象 +func (r *AlibabaMarketingLotteryDrawDodrawAPIRequest) SetLotteryDrawQuery(_lotteryDrawQuery *LotteryDrawQueryDto) error { + r._lotteryDrawQuery = _lotteryDrawQuery + r.Set("lottery_draw_query", _lotteryDrawQuery) + return nil +} + +// LotteryDrawQuery Getter +func (r AlibabaMarketingLotteryDrawDodrawAPIRequest) GetLotteryDrawQuery() *LotteryDrawQueryDto { + return r._lotteryDrawQuery +} diff --git a/model/promotion/AlibabaMarketingLotteryDrawDodrawAPIResponse.go b/model/promotion/AlibabaMarketingLotteryDrawDodrawAPIResponse.go new file mode 100644 index 0000000000..14fa1f9785 --- /dev/null +++ b/model/promotion/AlibabaMarketingLotteryDrawDodrawAPIResponse.go @@ -0,0 +1,33 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台抽奖接口 API返回值 +alibaba.marketing.lottery.draw.dodraw + +抽奖平台PC端抽奖接口 +*/ +type AlibabaMarketingLotteryDrawDodrawAPIResponse struct { + model.CommonResponse + AlibabaMarketingLotteryDrawDodrawAPIResponseModel +} + +// 抽奖平台抽奖接口 成功返回结果 +type AlibabaMarketingLotteryDrawDodrawAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_marketing_lottery_draw_dodraw_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 抽奖结果 + LotteryDrawResult *LotteryDrawResultDto `json:"lottery_draw_result,omitempty" xml:"lottery_draw_result,omitempty"` + // code + MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // msg + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/promotion/AlibabaMarketingLotteryDrawDodrawResponse.go b/model/promotion/AlibabaMarketingLotteryDrawDodrawResponse.go deleted file mode 100644 index 364d59a92c..0000000000 --- a/model/promotion/AlibabaMarketingLotteryDrawDodrawResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -抽奖平台抽奖接口 API返回值 -alibaba.marketing.lottery.draw.dodraw - -抽奖平台PC端抽奖接口 -*/ -type AlibabaMarketingLotteryDrawDodrawAPIResponse struct { - model.CommonResponse - AlibabaMarketingLotteryDrawDodrawResponse -} - -// 抽奖平台抽奖接口 成功返回结果 -type AlibabaMarketingLotteryDrawDodrawResponse struct { - XMLName xml.Name `xml:"alibaba_marketing_lottery_draw_dodraw_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 抽奖结果 - LotteryDrawResult *LotteryDrawResultDto `json:"lottery_draw_result,omitempty" xml:"lottery_draw_result,omitempty"` - // code - MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // msg - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/promotion/AlibabaMarketingLotteryRuleSaveAPIRequest.go b/model/promotion/AlibabaMarketingLotteryRuleSaveAPIRequest.go new file mode 100644 index 0000000000..236407f6e8 --- /dev/null +++ b/model/promotion/AlibabaMarketingLotteryRuleSaveAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台抽奖规则保存接口 API请求 +alibaba.marketing.lottery.rule.save + +抽奖平台抽奖规则保存接口,对于同一主体,保存新规则会失效老的规则 +*/ +type AlibabaMarketingLotteryRuleSaveAPIRequest struct { + model.Params + // 抽奖规则保存请求对象 + _lotteryRuleCreate *LotteryRuleCreateDto +} + +// 初始化AlibabaMarketingLotteryRuleSaveAPIRequest对象 +func NewAlibabaMarketingLotteryRuleSaveRequest() *AlibabaMarketingLotteryRuleSaveAPIRequest{ + return &AlibabaMarketingLotteryRuleSaveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMarketingLotteryRuleSaveAPIRequest) GetApiMethodName() string { + return "alibaba.marketing.lottery.rule.save" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMarketingLotteryRuleSaveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LotteryRuleCreate Setter +// 抽奖规则保存请求对象 +func (r *AlibabaMarketingLotteryRuleSaveAPIRequest) SetLotteryRuleCreate(_lotteryRuleCreate *LotteryRuleCreateDto) error { + r._lotteryRuleCreate = _lotteryRuleCreate + r.Set("lottery_rule_create", _lotteryRuleCreate) + return nil +} + +// LotteryRuleCreate Getter +func (r AlibabaMarketingLotteryRuleSaveAPIRequest) GetLotteryRuleCreate() *LotteryRuleCreateDto { + return r._lotteryRuleCreate +} diff --git a/model/promotion/AlibabaMarketingLotteryRuleSaveAPIResponse.go b/model/promotion/AlibabaMarketingLotteryRuleSaveAPIResponse.go new file mode 100644 index 0000000000..1d06eed0db --- /dev/null +++ b/model/promotion/AlibabaMarketingLotteryRuleSaveAPIResponse.go @@ -0,0 +1,33 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台抽奖规则保存接口 API返回值 +alibaba.marketing.lottery.rule.save + +抽奖平台抽奖规则保存接口,对于同一主体,保存新规则会失效老的规则 +*/ +type AlibabaMarketingLotteryRuleSaveAPIResponse struct { + model.CommonResponse + AlibabaMarketingLotteryRuleSaveAPIResponseModel +} + +// 抽奖平台抽奖规则保存接口 成功返回结果 +type AlibabaMarketingLotteryRuleSaveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_marketing_lottery_rule_save_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 保存成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // code + MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 接口调用成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // msg + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/promotion/AlibabaMarketingLotteryRuleSaveResponse.go b/model/promotion/AlibabaMarketingLotteryRuleSaveResponse.go deleted file mode 100644 index 3c257e992b..0000000000 --- a/model/promotion/AlibabaMarketingLotteryRuleSaveResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -抽奖平台抽奖规则保存接口 API返回值 -alibaba.marketing.lottery.rule.save - -抽奖平台抽奖规则保存接口,对于同一主体,保存新规则会失效老的规则 -*/ -type AlibabaMarketingLotteryRuleSaveAPIResponse struct { - model.CommonResponse - AlibabaMarketingLotteryRuleSaveResponse -} - -// 抽奖平台抽奖规则保存接口 成功返回结果 -type AlibabaMarketingLotteryRuleSaveResponse struct { - XMLName xml.Name `xml:"alibaba_marketing_lottery_rule_save_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 保存成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // code - MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 接口调用成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // msg - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/promotion/AlibabaMarketingLotterySchemaCreateAPIRequest.go b/model/promotion/AlibabaMarketingLotterySchemaCreateAPIRequest.go new file mode 100644 index 0000000000..eaf1498dd3 --- /dev/null +++ b/model/promotion/AlibabaMarketingLotterySchemaCreateAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台抽奖方案创建接口 API请求 +alibaba.marketing.lottery.schema.create + +抽奖平台抽奖方案创建接口 +*/ +type AlibabaMarketingLotterySchemaCreateAPIRequest struct { + model.Params + // 创建抽奖方案请求对象 + _lotterySchemaCreate *LotterySchemaCreateDto +} + +// 初始化AlibabaMarketingLotterySchemaCreateAPIRequest对象 +func NewAlibabaMarketingLotterySchemaCreateRequest() *AlibabaMarketingLotterySchemaCreateAPIRequest{ + return &AlibabaMarketingLotterySchemaCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMarketingLotterySchemaCreateAPIRequest) GetApiMethodName() string { + return "alibaba.marketing.lottery.schema.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMarketingLotterySchemaCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LotterySchemaCreate Setter +// 创建抽奖方案请求对象 +func (r *AlibabaMarketingLotterySchemaCreateAPIRequest) SetLotterySchemaCreate(_lotterySchemaCreate *LotterySchemaCreateDto) error { + r._lotterySchemaCreate = _lotterySchemaCreate + r.Set("lottery_schema_create", _lotterySchemaCreate) + return nil +} + +// LotterySchemaCreate Getter +func (r AlibabaMarketingLotterySchemaCreateAPIRequest) GetLotterySchemaCreate() *LotterySchemaCreateDto { + return r._lotterySchemaCreate +} diff --git a/model/promotion/AlibabaMarketingLotterySchemaCreateAPIResponse.go b/model/promotion/AlibabaMarketingLotterySchemaCreateAPIResponse.go new file mode 100644 index 0000000000..2006a2ce12 --- /dev/null +++ b/model/promotion/AlibabaMarketingLotterySchemaCreateAPIResponse.go @@ -0,0 +1,33 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖平台抽奖方案创建接口 API返回值 +alibaba.marketing.lottery.schema.create + +抽奖平台抽奖方案创建接口 +*/ +type AlibabaMarketingLotterySchemaCreateAPIResponse struct { + model.CommonResponse + AlibabaMarketingLotterySchemaCreateAPIResponseModel +} + +// 抽奖平台抽奖方案创建接口 成功返回结果 +type AlibabaMarketingLotterySchemaCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_marketing_lottery_schema_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 抽奖方案对象 + LotterySchema *LotterySchemaDto `json:"lottery_schema,omitempty" xml:"lottery_schema,omitempty"` + // code + MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // msg + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/promotion/AlibabaMarketingLotterySchemaCreateResponse.go b/model/promotion/AlibabaMarketingLotterySchemaCreateResponse.go deleted file mode 100644 index 6b88650aa1..0000000000 --- a/model/promotion/AlibabaMarketingLotterySchemaCreateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -抽奖平台抽奖方案创建接口 API返回值 -alibaba.marketing.lottery.schema.create - -抽奖平台抽奖方案创建接口 -*/ -type AlibabaMarketingLotterySchemaCreateAPIResponse struct { - model.CommonResponse - AlibabaMarketingLotterySchemaCreateResponse -} - -// 抽奖平台抽奖方案创建接口 成功返回结果 -type AlibabaMarketingLotterySchemaCreateResponse struct { - XMLName xml.Name `xml:"alibaba_marketing_lottery_schema_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 抽奖方案对象 - LotterySchema *LotterySchemaDto `json:"lottery_schema,omitempty" xml:"lottery_schema,omitempty"` - // code - MsgCode int64 `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // msg - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/promotion/AlibabaMoutonActivityListAPIRequest.go b/model/promotion/AlibabaMoutonActivityListAPIRequest.go new file mode 100644 index 0000000000..5750d0e9f0 --- /dev/null +++ b/model/promotion/AlibabaMoutonActivityListAPIRequest.go @@ -0,0 +1,164 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家自运营活动列表 API请求 +alibaba.mouton.activity.list + +商家查询自己配置的活动列表 +*/ +type AlibabaMoutonActivityListAPIRequest struct { + model.Params + // 开始时间 + _startTimeEnd string + // 每页记录数 + _pageSize int64 + // 来源 + _source string + // 开始时间 + _startTimeBegin string + // 结束时间 + _endTimeBegin string + // 结束时间 + _endTimeEnd string + // 来源记录id + _sourceRecordId int64 + // 状态 + _statusList []string + // 当前页 + _currentPage int64 +} + +// 初始化AlibabaMoutonActivityListAPIRequest对象 +func NewAlibabaMoutonActivityListRequest() *AlibabaMoutonActivityListAPIRequest{ + return &AlibabaMoutonActivityListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMoutonActivityListAPIRequest) GetApiMethodName() string { + return "alibaba.mouton.activity.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMoutonActivityListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartTimeEnd Setter +// 开始时间 +func (r *AlibabaMoutonActivityListAPIRequest) SetStartTimeEnd(_startTimeEnd string) error { + r._startTimeEnd = _startTimeEnd + r.Set("start_time_end", _startTimeEnd) + return nil +} + +// StartTimeEnd Getter +func (r AlibabaMoutonActivityListAPIRequest) GetStartTimeEnd() string { + return r._startTimeEnd +} +// PageSize Setter +// 每页记录数 +func (r *AlibabaMoutonActivityListAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaMoutonActivityListAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Source Setter +// 来源 +func (r *AlibabaMoutonActivityListAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r AlibabaMoutonActivityListAPIRequest) GetSource() string { + return r._source +} +// StartTimeBegin Setter +// 开始时间 +func (r *AlibabaMoutonActivityListAPIRequest) SetStartTimeBegin(_startTimeBegin string) error { + r._startTimeBegin = _startTimeBegin + r.Set("start_time_begin", _startTimeBegin) + return nil +} + +// StartTimeBegin Getter +func (r AlibabaMoutonActivityListAPIRequest) GetStartTimeBegin() string { + return r._startTimeBegin +} +// EndTimeBegin Setter +// 结束时间 +func (r *AlibabaMoutonActivityListAPIRequest) SetEndTimeBegin(_endTimeBegin string) error { + r._endTimeBegin = _endTimeBegin + r.Set("end_time_begin", _endTimeBegin) + return nil +} + +// EndTimeBegin Getter +func (r AlibabaMoutonActivityListAPIRequest) GetEndTimeBegin() string { + return r._endTimeBegin +} +// EndTimeEnd Setter +// 结束时间 +func (r *AlibabaMoutonActivityListAPIRequest) SetEndTimeEnd(_endTimeEnd string) error { + r._endTimeEnd = _endTimeEnd + r.Set("end_time_end", _endTimeEnd) + return nil +} + +// EndTimeEnd Getter +func (r AlibabaMoutonActivityListAPIRequest) GetEndTimeEnd() string { + return r._endTimeEnd +} +// SourceRecordId Setter +// 来源记录id +func (r *AlibabaMoutonActivityListAPIRequest) SetSourceRecordId(_sourceRecordId int64) error { + r._sourceRecordId = _sourceRecordId + r.Set("source_record_id", _sourceRecordId) + return nil +} + +// SourceRecordId Getter +func (r AlibabaMoutonActivityListAPIRequest) GetSourceRecordId() int64 { + return r._sourceRecordId +} +// StatusList Setter +// 状态 +func (r *AlibabaMoutonActivityListAPIRequest) SetStatusList(_statusList []string) error { + r._statusList = _statusList + r.Set("status_list", _statusList) + return nil +} + +// StatusList Getter +func (r AlibabaMoutonActivityListAPIRequest) GetStatusList() []string { + return r._statusList +} +// CurrentPage Setter +// 当前页 +func (r *AlibabaMoutonActivityListAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AlibabaMoutonActivityListAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} diff --git a/model/promotion/AlibabaMoutonActivityListAPIResponse.go b/model/promotion/AlibabaMoutonActivityListAPIResponse.go new file mode 100644 index 0000000000..7ae3fae2b2 --- /dev/null +++ b/model/promotion/AlibabaMoutonActivityListAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家自运营活动列表 API返回值 +alibaba.mouton.activity.list + +商家查询自己配置的活动列表 +*/ +type AlibabaMoutonActivityListAPIResponse struct { + model.CommonResponse + AlibabaMoutonActivityListAPIResponseModel +} + +// 商家自运营活动列表 成功返回结果 +type AlibabaMoutonActivityListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mouton_activity_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *Page `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/AlibabaMoutonActivityListResponse.go b/model/promotion/AlibabaMoutonActivityListResponse.go deleted file mode 100644 index 6ff7e11b8c..0000000000 --- a/model/promotion/AlibabaMoutonActivityListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家自运营活动列表 API返回值 -alibaba.mouton.activity.list - -商家查询自己配置的活动列表 -*/ -type AlibabaMoutonActivityListAPIResponse struct { - model.CommonResponse - AlibabaMoutonActivityListResponse -} - -// 商家自运营活动列表 成功返回结果 -type AlibabaMoutonActivityListResponse struct { - XMLName xml.Name `xml:"alibaba_mouton_activity_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *Page `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/AlibabaWdkCouponAbandonAPIRequest.go b/model/promotion/AlibabaWdkCouponAbandonAPIRequest.go new file mode 100644 index 0000000000..b6a53fb2a5 --- /dev/null +++ b/model/promotion/AlibabaWdkCouponAbandonAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +废券 API请求 +alibaba.wdk.coupon.abandon + +优惠券废弃 +*/ +type AlibabaWdkCouponAbandonAPIRequest struct { + model.Params + // 废券参数 + _paramWdkCouponAbandonParam *WdkCouponAbandonParam +} + +// 初始化AlibabaWdkCouponAbandonAPIRequest对象 +func NewAlibabaWdkCouponAbandonRequest() *AlibabaWdkCouponAbandonAPIRequest{ + return &AlibabaWdkCouponAbandonAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkCouponAbandonAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.coupon.abandon" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkCouponAbandonAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamWdkCouponAbandonParam Setter +// 废券参数 +func (r *AlibabaWdkCouponAbandonAPIRequest) SetParamWdkCouponAbandonParam(_paramWdkCouponAbandonParam *WdkCouponAbandonParam) error { + r._paramWdkCouponAbandonParam = _paramWdkCouponAbandonParam + r.Set("param_wdk_coupon_abandon_param", _paramWdkCouponAbandonParam) + return nil +} + +// ParamWdkCouponAbandonParam Getter +func (r AlibabaWdkCouponAbandonAPIRequest) GetParamWdkCouponAbandonParam() *WdkCouponAbandonParam { + return r._paramWdkCouponAbandonParam +} diff --git a/model/promotion/AlibabaWdkCouponAbandonAPIResponse.go b/model/promotion/AlibabaWdkCouponAbandonAPIResponse.go new file mode 100644 index 0000000000..b870b3ec08 --- /dev/null +++ b/model/promotion/AlibabaWdkCouponAbandonAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +废券 API返回值 +alibaba.wdk.coupon.abandon + +优惠券废弃 +*/ +type AlibabaWdkCouponAbandonAPIResponse struct { + model.CommonResponse + AlibabaWdkCouponAbandonAPIResponseModel +} + +// 废券 成功返回结果 +type AlibabaWdkCouponAbandonAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_coupon_abandon_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *AlibabaWdkCouponAbandonApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/AlibabaWdkCouponAbandonResponse.go b/model/promotion/AlibabaWdkCouponAbandonResponse.go deleted file mode 100644 index 11add07bc9..0000000000 --- a/model/promotion/AlibabaWdkCouponAbandonResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -废券 API返回值 -alibaba.wdk.coupon.abandon - -优惠券废弃 -*/ -type AlibabaWdkCouponAbandonAPIResponse struct { - model.CommonResponse - AlibabaWdkCouponAbandonResponse -} - -// 废券 成功返回结果 -type AlibabaWdkCouponAbandonResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_coupon_abandon_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *AlibabaWdkCouponAbandonApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/AlibabaWdkCouponSkuAddAPIRequest.go b/model/promotion/AlibabaWdkCouponSkuAddAPIRequest.go new file mode 100644 index 0000000000..46d2314c65 --- /dev/null +++ b/model/promotion/AlibabaWdkCouponSkuAddAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券商品增加 API请求 +alibaba.wdk.coupon.sku.add + +优惠券商品增加 +*/ +type AlibabaWdkCouponSkuAddAPIRequest struct { + model.Params + // 请求 + _paramCouponTemplateItemRequest *CouponTemplateItemRequest +} + +// 初始化AlibabaWdkCouponSkuAddAPIRequest对象 +func NewAlibabaWdkCouponSkuAddRequest() *AlibabaWdkCouponSkuAddAPIRequest{ + return &AlibabaWdkCouponSkuAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkCouponSkuAddAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.coupon.sku.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkCouponSkuAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCouponTemplateItemRequest Setter +// 请求 +func (r *AlibabaWdkCouponSkuAddAPIRequest) SetParamCouponTemplateItemRequest(_paramCouponTemplateItemRequest *CouponTemplateItemRequest) error { + r._paramCouponTemplateItemRequest = _paramCouponTemplateItemRequest + r.Set("param_coupon_template_item_request", _paramCouponTemplateItemRequest) + return nil +} + +// ParamCouponTemplateItemRequest Getter +func (r AlibabaWdkCouponSkuAddAPIRequest) GetParamCouponTemplateItemRequest() *CouponTemplateItemRequest { + return r._paramCouponTemplateItemRequest +} diff --git a/model/promotion/AlibabaWdkCouponSkuAddAPIResponse.go b/model/promotion/AlibabaWdkCouponSkuAddAPIResponse.go new file mode 100644 index 0000000000..4b703e70dd --- /dev/null +++ b/model/promotion/AlibabaWdkCouponSkuAddAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券商品增加 API返回值 +alibaba.wdk.coupon.sku.add + +优惠券商品增加 +*/ +type AlibabaWdkCouponSkuAddAPIResponse struct { + model.CommonResponse + AlibabaWdkCouponSkuAddAPIResponseModel +} + +// 优惠券商品增加 成功返回结果 +type AlibabaWdkCouponSkuAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_coupon_sku_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *AlibabaWdkCouponSkuAddApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/AlibabaWdkCouponSkuAddResponse.go b/model/promotion/AlibabaWdkCouponSkuAddResponse.go deleted file mode 100644 index 5b78d5bbeb..0000000000 --- a/model/promotion/AlibabaWdkCouponSkuAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -优惠券商品增加 API返回值 -alibaba.wdk.coupon.sku.add - -优惠券商品增加 -*/ -type AlibabaWdkCouponSkuAddAPIResponse struct { - model.CommonResponse - AlibabaWdkCouponSkuAddResponse -} - -// 优惠券商品增加 成功返回结果 -type AlibabaWdkCouponSkuAddResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_coupon_sku_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *AlibabaWdkCouponSkuAddApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/AlibabaWdkCouponSkuQueryAPIRequest.go b/model/promotion/AlibabaWdkCouponSkuQueryAPIRequest.go new file mode 100644 index 0000000000..a8bac6f98b --- /dev/null +++ b/model/promotion/AlibabaWdkCouponSkuQueryAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券商品查询 API请求 +alibaba.wdk.coupon.sku.query + +优惠券商品查询 +*/ +type AlibabaWdkCouponSkuQueryAPIRequest struct { + model.Params + // 请求 + _paramCouponTemplateItemQueryRequest *CouponTemplateItemQueryRequest +} + +// 初始化AlibabaWdkCouponSkuQueryAPIRequest对象 +func NewAlibabaWdkCouponSkuQueryRequest() *AlibabaWdkCouponSkuQueryAPIRequest{ + return &AlibabaWdkCouponSkuQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkCouponSkuQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.coupon.sku.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkCouponSkuQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCouponTemplateItemQueryRequest Setter +// 请求 +func (r *AlibabaWdkCouponSkuQueryAPIRequest) SetParamCouponTemplateItemQueryRequest(_paramCouponTemplateItemQueryRequest *CouponTemplateItemQueryRequest) error { + r._paramCouponTemplateItemQueryRequest = _paramCouponTemplateItemQueryRequest + r.Set("param_coupon_template_item_query_request", _paramCouponTemplateItemQueryRequest) + return nil +} + +// ParamCouponTemplateItemQueryRequest Getter +func (r AlibabaWdkCouponSkuQueryAPIRequest) GetParamCouponTemplateItemQueryRequest() *CouponTemplateItemQueryRequest { + return r._paramCouponTemplateItemQueryRequest +} diff --git a/model/promotion/AlibabaWdkCouponSkuQueryAPIResponse.go b/model/promotion/AlibabaWdkCouponSkuQueryAPIResponse.go new file mode 100644 index 0000000000..d81e5f8f49 --- /dev/null +++ b/model/promotion/AlibabaWdkCouponSkuQueryAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券商品查询 API返回值 +alibaba.wdk.coupon.sku.query + +优惠券商品查询 +*/ +type AlibabaWdkCouponSkuQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkCouponSkuQueryAPIResponseModel +} + +// 优惠券商品查询 成功返回结果 +type AlibabaWdkCouponSkuQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_coupon_sku_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *AlibabaWdkCouponSkuQueryApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/AlibabaWdkCouponSkuQueryResponse.go b/model/promotion/AlibabaWdkCouponSkuQueryResponse.go deleted file mode 100644 index a3b1fe01ff..0000000000 --- a/model/promotion/AlibabaWdkCouponSkuQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -优惠券商品查询 API返回值 -alibaba.wdk.coupon.sku.query - -优惠券商品查询 -*/ -type AlibabaWdkCouponSkuQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkCouponSkuQueryResponse -} - -// 优惠券商品查询 成功返回结果 -type AlibabaWdkCouponSkuQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_coupon_sku_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *AlibabaWdkCouponSkuQueryApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/AlibabaWdkCouponSkuRemoveAPIRequest.go b/model/promotion/AlibabaWdkCouponSkuRemoveAPIRequest.go new file mode 100644 index 0000000000..e216448155 --- /dev/null +++ b/model/promotion/AlibabaWdkCouponSkuRemoveAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券商品删除 API请求 +alibaba.wdk.coupon.sku.remove + +优惠券商品删除 +*/ +type AlibabaWdkCouponSkuRemoveAPIRequest struct { + model.Params + // 请求 + _paramCouponTemplateItemRequest *CouponTemplateItemRequest +} + +// 初始化AlibabaWdkCouponSkuRemoveAPIRequest对象 +func NewAlibabaWdkCouponSkuRemoveRequest() *AlibabaWdkCouponSkuRemoveAPIRequest{ + return &AlibabaWdkCouponSkuRemoveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkCouponSkuRemoveAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.coupon.sku.remove" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkCouponSkuRemoveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCouponTemplateItemRequest Setter +// 请求 +func (r *AlibabaWdkCouponSkuRemoveAPIRequest) SetParamCouponTemplateItemRequest(_paramCouponTemplateItemRequest *CouponTemplateItemRequest) error { + r._paramCouponTemplateItemRequest = _paramCouponTemplateItemRequest + r.Set("param_coupon_template_item_request", _paramCouponTemplateItemRequest) + return nil +} + +// ParamCouponTemplateItemRequest Getter +func (r AlibabaWdkCouponSkuRemoveAPIRequest) GetParamCouponTemplateItemRequest() *CouponTemplateItemRequest { + return r._paramCouponTemplateItemRequest +} diff --git a/model/promotion/AlibabaWdkCouponSkuRemoveAPIResponse.go b/model/promotion/AlibabaWdkCouponSkuRemoveAPIResponse.go new file mode 100644 index 0000000000..c84a430331 --- /dev/null +++ b/model/promotion/AlibabaWdkCouponSkuRemoveAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券商品删除 API返回值 +alibaba.wdk.coupon.sku.remove + +优惠券商品删除 +*/ +type AlibabaWdkCouponSkuRemoveAPIResponse struct { + model.CommonResponse + AlibabaWdkCouponSkuRemoveAPIResponseModel +} + +// 优惠券商品删除 成功返回结果 +type AlibabaWdkCouponSkuRemoveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_coupon_sku_remove_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *AlibabaWdkCouponSkuRemoveApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/AlibabaWdkCouponSkuRemoveResponse.go b/model/promotion/AlibabaWdkCouponSkuRemoveResponse.go deleted file mode 100644 index 77f8bcffcd..0000000000 --- a/model/promotion/AlibabaWdkCouponSkuRemoveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -优惠券商品删除 API返回值 -alibaba.wdk.coupon.sku.remove - -优惠券商品删除 -*/ -type AlibabaWdkCouponSkuRemoveAPIResponse struct { - model.CommonResponse - AlibabaWdkCouponSkuRemoveResponse -} - -// 优惠券商品删除 成功返回结果 -type AlibabaWdkCouponSkuRemoveResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_coupon_sku_remove_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *AlibabaWdkCouponSkuRemoveApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/AlibabaWdkCouponSpreadApplyAPIRequest.go b/model/promotion/AlibabaWdkCouponSpreadApplyAPIRequest.go new file mode 100644 index 0000000000..f8eec30676 --- /dev/null +++ b/model/promotion/AlibabaWdkCouponSpreadApplyAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +普通发券 API请求 +alibaba.wdk.coupon.spread.apply + +优惠券发放 +*/ +type AlibabaWdkCouponSpreadApplyAPIRequest struct { + model.Params + // 参数对象 + _paramWdkCouponApplyParam *WdkCouponApplyParam +} + +// 初始化AlibabaWdkCouponSpreadApplyAPIRequest对象 +func NewAlibabaWdkCouponSpreadApplyRequest() *AlibabaWdkCouponSpreadApplyAPIRequest{ + return &AlibabaWdkCouponSpreadApplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkCouponSpreadApplyAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.coupon.spread.apply" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkCouponSpreadApplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamWdkCouponApplyParam Setter +// 参数对象 +func (r *AlibabaWdkCouponSpreadApplyAPIRequest) SetParamWdkCouponApplyParam(_paramWdkCouponApplyParam *WdkCouponApplyParam) error { + r._paramWdkCouponApplyParam = _paramWdkCouponApplyParam + r.Set("param_wdk_coupon_apply_param", _paramWdkCouponApplyParam) + return nil +} + +// ParamWdkCouponApplyParam Getter +func (r AlibabaWdkCouponSpreadApplyAPIRequest) GetParamWdkCouponApplyParam() *WdkCouponApplyParam { + return r._paramWdkCouponApplyParam +} diff --git a/model/promotion/AlibabaWdkCouponSpreadApplyAPIResponse.go b/model/promotion/AlibabaWdkCouponSpreadApplyAPIResponse.go new file mode 100644 index 0000000000..9dbbadc7f6 --- /dev/null +++ b/model/promotion/AlibabaWdkCouponSpreadApplyAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +普通发券 API返回值 +alibaba.wdk.coupon.spread.apply + +优惠券发放 +*/ +type AlibabaWdkCouponSpreadApplyAPIResponse struct { + model.CommonResponse + AlibabaWdkCouponSpreadApplyAPIResponseModel +} + +// 普通发券 成功返回结果 +type AlibabaWdkCouponSpreadApplyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_coupon_spread_apply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *AlibabaWdkCouponSpreadApplyApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/AlibabaWdkCouponSpreadApplyResponse.go b/model/promotion/AlibabaWdkCouponSpreadApplyResponse.go deleted file mode 100644 index be0c4acbe4..0000000000 --- a/model/promotion/AlibabaWdkCouponSpreadApplyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -普通发券 API返回值 -alibaba.wdk.coupon.spread.apply - -优惠券发放 -*/ -type AlibabaWdkCouponSpreadApplyAPIResponse struct { - model.CommonResponse - AlibabaWdkCouponSpreadApplyResponse -} - -// 普通发券 成功返回结果 -type AlibabaWdkCouponSpreadApplyResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_coupon_spread_apply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *AlibabaWdkCouponSpreadApplyApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/AlibabaWdkCouponTemplateCreateAPIRequest.go b/model/promotion/AlibabaWdkCouponTemplateCreateAPIRequest.go new file mode 100644 index 0000000000..83616b7abe --- /dev/null +++ b/model/promotion/AlibabaWdkCouponTemplateCreateAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券模版创建 API请求 +alibaba.wdk.coupon.template.create + +开放给外部商家创建优惠券模版 +*/ +type AlibabaWdkCouponTemplateCreateAPIRequest struct { + model.Params + // 请求 + _paramCouponTemplateOperateRequest *CouponTemplateOperateRequest +} + +// 初始化AlibabaWdkCouponTemplateCreateAPIRequest对象 +func NewAlibabaWdkCouponTemplateCreateRequest() *AlibabaWdkCouponTemplateCreateAPIRequest{ + return &AlibabaWdkCouponTemplateCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkCouponTemplateCreateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.coupon.template.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkCouponTemplateCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCouponTemplateOperateRequest Setter +// 请求 +func (r *AlibabaWdkCouponTemplateCreateAPIRequest) SetParamCouponTemplateOperateRequest(_paramCouponTemplateOperateRequest *CouponTemplateOperateRequest) error { + r._paramCouponTemplateOperateRequest = _paramCouponTemplateOperateRequest + r.Set("param_coupon_template_operate_request", _paramCouponTemplateOperateRequest) + return nil +} + +// ParamCouponTemplateOperateRequest Getter +func (r AlibabaWdkCouponTemplateCreateAPIRequest) GetParamCouponTemplateOperateRequest() *CouponTemplateOperateRequest { + return r._paramCouponTemplateOperateRequest +} diff --git a/model/promotion/AlibabaWdkCouponTemplateCreateAPIResponse.go b/model/promotion/AlibabaWdkCouponTemplateCreateAPIResponse.go new file mode 100644 index 0000000000..443db1d1ac --- /dev/null +++ b/model/promotion/AlibabaWdkCouponTemplateCreateAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券模版创建 API返回值 +alibaba.wdk.coupon.template.create + +开放给外部商家创建优惠券模版 +*/ +type AlibabaWdkCouponTemplateCreateAPIResponse struct { + model.CommonResponse + AlibabaWdkCouponTemplateCreateAPIResponseModel +} + +// 优惠券模版创建 成功返回结果 +type AlibabaWdkCouponTemplateCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_coupon_template_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *AlibabaWdkCouponTemplateCreateApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/AlibabaWdkCouponTemplateCreateResponse.go b/model/promotion/AlibabaWdkCouponTemplateCreateResponse.go deleted file mode 100644 index 2f1a3c289e..0000000000 --- a/model/promotion/AlibabaWdkCouponTemplateCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -优惠券模版创建 API返回值 -alibaba.wdk.coupon.template.create - -开放给外部商家创建优惠券模版 -*/ -type AlibabaWdkCouponTemplateCreateAPIResponse struct { - model.CommonResponse - AlibabaWdkCouponTemplateCreateResponse -} - -// 优惠券模版创建 成功返回结果 -type AlibabaWdkCouponTemplateCreateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_coupon_template_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *AlibabaWdkCouponTemplateCreateApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/AlibabaWdkCouponTemplateQueryAPIRequest.go b/model/promotion/AlibabaWdkCouponTemplateQueryAPIRequest.go new file mode 100644 index 0000000000..bbeb03f398 --- /dev/null +++ b/model/promotion/AlibabaWdkCouponTemplateQueryAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券模版查询 API请求 +alibaba.wdk.coupon.template.query + +优惠券模版查询 +*/ +type AlibabaWdkCouponTemplateQueryAPIRequest struct { + model.Params + // 系统自动生成 + _paramCouponTemplateQueryRequest *CouponTemplateQueryRequest +} + +// 初始化AlibabaWdkCouponTemplateQueryAPIRequest对象 +func NewAlibabaWdkCouponTemplateQueryRequest() *AlibabaWdkCouponTemplateQueryAPIRequest{ + return &AlibabaWdkCouponTemplateQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkCouponTemplateQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.coupon.template.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkCouponTemplateQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCouponTemplateQueryRequest Setter +// 系统自动生成 +func (r *AlibabaWdkCouponTemplateQueryAPIRequest) SetParamCouponTemplateQueryRequest(_paramCouponTemplateQueryRequest *CouponTemplateQueryRequest) error { + r._paramCouponTemplateQueryRequest = _paramCouponTemplateQueryRequest + r.Set("param_coupon_template_query_request", _paramCouponTemplateQueryRequest) + return nil +} + +// ParamCouponTemplateQueryRequest Getter +func (r AlibabaWdkCouponTemplateQueryAPIRequest) GetParamCouponTemplateQueryRequest() *CouponTemplateQueryRequest { + return r._paramCouponTemplateQueryRequest +} diff --git a/model/promotion/AlibabaWdkCouponTemplateQueryAPIResponse.go b/model/promotion/AlibabaWdkCouponTemplateQueryAPIResponse.go new file mode 100644 index 0000000000..87fec60df5 --- /dev/null +++ b/model/promotion/AlibabaWdkCouponTemplateQueryAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券模版查询 API返回值 +alibaba.wdk.coupon.template.query + +优惠券模版查询 +*/ +type AlibabaWdkCouponTemplateQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkCouponTemplateQueryAPIResponseModel +} + +// 优惠券模版查询 成功返回结果 +type AlibabaWdkCouponTemplateQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_coupon_template_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *AlibabaWdkCouponTemplateQueryApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/AlibabaWdkCouponTemplateQueryResponse.go b/model/promotion/AlibabaWdkCouponTemplateQueryResponse.go deleted file mode 100644 index 9cd308e806..0000000000 --- a/model/promotion/AlibabaWdkCouponTemplateQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -优惠券模版查询 API返回值 -alibaba.wdk.coupon.template.query - -优惠券模版查询 -*/ -type AlibabaWdkCouponTemplateQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkCouponTemplateQueryResponse -} - -// 优惠券模版查询 成功返回结果 -type AlibabaWdkCouponTemplateQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_coupon_template_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *AlibabaWdkCouponTemplateQueryApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/AlibabaWdkCouponTemplateTerminateAPIRequest.go b/model/promotion/AlibabaWdkCouponTemplateTerminateAPIRequest.go new file mode 100644 index 0000000000..634e4a7a0b --- /dev/null +++ b/model/promotion/AlibabaWdkCouponTemplateTerminateAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券模版终止 API请求 +alibaba.wdk.coupon.template.terminate + +优惠券模版终止 +*/ +type AlibabaWdkCouponTemplateTerminateAPIRequest struct { + model.Params + // 参数 + _paramCouponTemplateTerminateRequest *CouponTemplateTerminateRequest +} + +// 初始化AlibabaWdkCouponTemplateTerminateAPIRequest对象 +func NewAlibabaWdkCouponTemplateTerminateRequest() *AlibabaWdkCouponTemplateTerminateAPIRequest{ + return &AlibabaWdkCouponTemplateTerminateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkCouponTemplateTerminateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.coupon.template.terminate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkCouponTemplateTerminateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCouponTemplateTerminateRequest Setter +// 参数 +func (r *AlibabaWdkCouponTemplateTerminateAPIRequest) SetParamCouponTemplateTerminateRequest(_paramCouponTemplateTerminateRequest *CouponTemplateTerminateRequest) error { + r._paramCouponTemplateTerminateRequest = _paramCouponTemplateTerminateRequest + r.Set("param_coupon_template_terminate_request", _paramCouponTemplateTerminateRequest) + return nil +} + +// ParamCouponTemplateTerminateRequest Getter +func (r AlibabaWdkCouponTemplateTerminateAPIRequest) GetParamCouponTemplateTerminateRequest() *CouponTemplateTerminateRequest { + return r._paramCouponTemplateTerminateRequest +} diff --git a/model/promotion/AlibabaWdkCouponTemplateTerminateAPIResponse.go b/model/promotion/AlibabaWdkCouponTemplateTerminateAPIResponse.go new file mode 100644 index 0000000000..e6ccc479f9 --- /dev/null +++ b/model/promotion/AlibabaWdkCouponTemplateTerminateAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券模版终止 API返回值 +alibaba.wdk.coupon.template.terminate + +优惠券模版终止 +*/ +type AlibabaWdkCouponTemplateTerminateAPIResponse struct { + model.CommonResponse + AlibabaWdkCouponTemplateTerminateAPIResponseModel +} + +// 优惠券模版终止 成功返回结果 +type AlibabaWdkCouponTemplateTerminateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_coupon_template_terminate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *AlibabaWdkCouponTemplateTerminateApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/AlibabaWdkCouponTemplateTerminateResponse.go b/model/promotion/AlibabaWdkCouponTemplateTerminateResponse.go deleted file mode 100644 index b1a2010e92..0000000000 --- a/model/promotion/AlibabaWdkCouponTemplateTerminateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -优惠券模版终止 API返回值 -alibaba.wdk.coupon.template.terminate - -优惠券模版终止 -*/ -type AlibabaWdkCouponTemplateTerminateAPIResponse struct { - model.CommonResponse - AlibabaWdkCouponTemplateTerminateResponse -} - -// 优惠券模版终止 成功返回结果 -type AlibabaWdkCouponTemplateTerminateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_coupon_template_terminate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *AlibabaWdkCouponTemplateTerminateApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/AlibabaWdkCouponTemplateUpdateAPIRequest.go b/model/promotion/AlibabaWdkCouponTemplateUpdateAPIRequest.go new file mode 100644 index 0000000000..d391d4c8f6 --- /dev/null +++ b/model/promotion/AlibabaWdkCouponTemplateUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券模版修改 API请求 +alibaba.wdk.coupon.template.update + +优惠券模版修改 +*/ +type AlibabaWdkCouponTemplateUpdateAPIRequest struct { + model.Params + // 请求 + _paramCouponTemplateOperateRequest *CouponTemplateOperateRequest +} + +// 初始化AlibabaWdkCouponTemplateUpdateAPIRequest对象 +func NewAlibabaWdkCouponTemplateUpdateRequest() *AlibabaWdkCouponTemplateUpdateAPIRequest{ + return &AlibabaWdkCouponTemplateUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkCouponTemplateUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.coupon.template.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkCouponTemplateUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCouponTemplateOperateRequest Setter +// 请求 +func (r *AlibabaWdkCouponTemplateUpdateAPIRequest) SetParamCouponTemplateOperateRequest(_paramCouponTemplateOperateRequest *CouponTemplateOperateRequest) error { + r._paramCouponTemplateOperateRequest = _paramCouponTemplateOperateRequest + r.Set("param_coupon_template_operate_request", _paramCouponTemplateOperateRequest) + return nil +} + +// ParamCouponTemplateOperateRequest Getter +func (r AlibabaWdkCouponTemplateUpdateAPIRequest) GetParamCouponTemplateOperateRequest() *CouponTemplateOperateRequest { + return r._paramCouponTemplateOperateRequest +} diff --git a/model/promotion/AlibabaWdkCouponTemplateUpdateAPIResponse.go b/model/promotion/AlibabaWdkCouponTemplateUpdateAPIResponse.go new file mode 100644 index 0000000000..3410629280 --- /dev/null +++ b/model/promotion/AlibabaWdkCouponTemplateUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券模版修改 API返回值 +alibaba.wdk.coupon.template.update + +优惠券模版修改 +*/ +type AlibabaWdkCouponTemplateUpdateAPIResponse struct { + model.CommonResponse + AlibabaWdkCouponTemplateUpdateAPIResponseModel +} + +// 优惠券模版修改 成功返回结果 +type AlibabaWdkCouponTemplateUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_coupon_template_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *AlibabaWdkCouponTemplateUpdateApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/AlibabaWdkCouponTemplateUpdateResponse.go b/model/promotion/AlibabaWdkCouponTemplateUpdateResponse.go deleted file mode 100644 index 3acbff601e..0000000000 --- a/model/promotion/AlibabaWdkCouponTemplateUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -优惠券模版修改 API返回值 -alibaba.wdk.coupon.template.update - -优惠券模版修改 -*/ -type AlibabaWdkCouponTemplateUpdateAPIResponse struct { - model.CommonResponse - AlibabaWdkCouponTemplateUpdateResponse -} - -// 优惠券模版修改 成功返回结果 -type AlibabaWdkCouponTemplateUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_coupon_template_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *AlibabaWdkCouponTemplateUpdateApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/AlibabaWdkMarketingCouponSendmaAPIRequest.go b/model/promotion/AlibabaWdkMarketingCouponSendmaAPIRequest.go new file mode 100644 index 0000000000..6ea18323be --- /dev/null +++ b/model/promotion/AlibabaWdkMarketingCouponSendmaAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发放匿名码 API请求 +alibaba.wdk.marketing.coupon.sendma + +根据优惠券活动id打印单个匿名码 +*/ +type AlibabaWdkMarketingCouponSendmaAPIRequest struct { + model.Params + // 发放匿名码入参 + _param0 *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingCouponSendmaAPIRequest对象 +func NewAlibabaWdkMarketingCouponSendmaRequest() *AlibabaWdkMarketingCouponSendmaAPIRequest{ + return &AlibabaWdkMarketingCouponSendmaAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingCouponSendmaAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.coupon.sendma" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingCouponSendmaAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 发放匿名码入参 +func (r *AlibabaWdkMarketingCouponSendmaAPIRequest) SetParam0(_param0 *CommonActivityParam) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingCouponSendmaAPIRequest) GetParam0() *CommonActivityParam { + return r._param0 +} diff --git a/model/promotion/AlibabaWdkMarketingCouponSendmaAPIResponse.go b/model/promotion/AlibabaWdkMarketingCouponSendmaAPIResponse.go new file mode 100644 index 0000000000..910873899d --- /dev/null +++ b/model/promotion/AlibabaWdkMarketingCouponSendmaAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发放匿名码 API返回值 +alibaba.wdk.marketing.coupon.sendma + +根据优惠券活动id打印单个匿名码 +*/ +type AlibabaWdkMarketingCouponSendmaAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingCouponSendmaAPIResponseModel +} + +// 发放匿名码 成功返回结果 +type AlibabaWdkMarketingCouponSendmaAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_coupon_sendma_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 发放匿名码返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/AlibabaWdkMarketingCouponSendmaResponse.go b/model/promotion/AlibabaWdkMarketingCouponSendmaResponse.go deleted file mode 100644 index 5301d7e396..0000000000 --- a/model/promotion/AlibabaWdkMarketingCouponSendmaResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发放匿名码 API返回值 -alibaba.wdk.marketing.coupon.sendma - -根据优惠券活动id打印单个匿名码 -*/ -type AlibabaWdkMarketingCouponSendmaAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingCouponSendmaResponse -} - -// 发放匿名码 成功返回结果 -type AlibabaWdkMarketingCouponSendmaResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_coupon_sendma_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 发放匿名码返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/TaobaoCardExpandcardQueryAPIRequest.go b/model/promotion/TaobaoCardExpandcardQueryAPIRequest.go new file mode 100644 index 0000000000..ecbac2061e --- /dev/null +++ b/model/promotion/TaobaoCardExpandcardQueryAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +购物金卡查询 API请求 +taobao.card.expandcard.query + +购物金充值信息查询接口,会返回余额等信息。 +*/ +type TaobaoCardExpandcardQueryAPIRequest struct { + model.Params + // 卡使用范围,不传则会查询所有 + _usedScopeCode string + // 支付宝accountNo + _accountNo string +} + +// 初始化TaobaoCardExpandcardQueryAPIRequest对象 +func NewTaobaoCardExpandcardQueryRequest() *TaobaoCardExpandcardQueryAPIRequest{ + return &TaobaoCardExpandcardQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCardExpandcardQueryAPIRequest) GetApiMethodName() string { + return "taobao.card.expandcard.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCardExpandcardQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UsedScopeCode Setter +// 卡使用范围,不传则会查询所有 +func (r *TaobaoCardExpandcardQueryAPIRequest) SetUsedScopeCode(_usedScopeCode string) error { + r._usedScopeCode = _usedScopeCode + r.Set("used_scope_code", _usedScopeCode) + return nil +} + +// UsedScopeCode Getter +func (r TaobaoCardExpandcardQueryAPIRequest) GetUsedScopeCode() string { + return r._usedScopeCode +} +// AccountNo Setter +// 支付宝accountNo +func (r *TaobaoCardExpandcardQueryAPIRequest) SetAccountNo(_accountNo string) error { + r._accountNo = _accountNo + r.Set("account_no", _accountNo) + return nil +} + +// AccountNo Getter +func (r TaobaoCardExpandcardQueryAPIRequest) GetAccountNo() string { + return r._accountNo +} diff --git a/model/promotion/TaobaoCardExpandcardQueryAPIResponse.go b/model/promotion/TaobaoCardExpandcardQueryAPIResponse.go new file mode 100644 index 0000000000..f927a5ea77 --- /dev/null +++ b/model/promotion/TaobaoCardExpandcardQueryAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +购物金卡查询 API返回值 +taobao.card.expandcard.query + +购物金充值信息查询接口,会返回余额等信息。 +*/ +type TaobaoCardExpandcardQueryAPIResponse struct { + model.CommonResponse + TaobaoCardExpandcardQueryAPIResponseModel +} + +// 购物金卡查询 成功返回结果 +type TaobaoCardExpandcardQueryAPIResponseModel struct { + XMLName xml.Name `xml:"card_expandcard_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoCardExpandcardQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/TaobaoCardExpandcardQueryResponse.go b/model/promotion/TaobaoCardExpandcardQueryResponse.go deleted file mode 100644 index ddbe00fa1e..0000000000 --- a/model/promotion/TaobaoCardExpandcardQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -购物金卡查询 API返回值 -taobao.card.expandcard.query - -购物金充值信息查询接口,会返回余额等信息。 -*/ -type TaobaoCardExpandcardQueryAPIResponse struct { - model.CommonResponse - TaobaoCardExpandcardQueryResponse -} - -// 购物金卡查询 成功返回结果 -type TaobaoCardExpandcardQueryResponse struct { - XMLName xml.Name `xml:"card_expandcard_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoCardExpandcardQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/TaobaoMarketingPromotionKfcAPIRequest.go b/model/promotion/TaobaoMarketingPromotionKfcAPIRequest.go new file mode 100644 index 0000000000..b587373e94 --- /dev/null +++ b/model/promotion/TaobaoMarketingPromotionKfcAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定向优惠活动名称与描述违禁词检查 API请求 +taobao.marketing.promotion.kfc + +活动名称与描述违禁词检查 +*/ +type TaobaoMarketingPromotionKfcAPIRequest struct { + model.Params + // 活动名称 + _promotionTitle string + // 活动描述 + _promotionDesc string +} + +// 初始化TaobaoMarketingPromotionKfcAPIRequest对象 +func NewTaobaoMarketingPromotionKfcRequest() *TaobaoMarketingPromotionKfcAPIRequest{ + return &TaobaoMarketingPromotionKfcAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMarketingPromotionKfcAPIRequest) GetApiMethodName() string { + return "taobao.marketing.promotion.kfc" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMarketingPromotionKfcAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PromotionTitle Setter +// 活动名称 +func (r *TaobaoMarketingPromotionKfcAPIRequest) SetPromotionTitle(_promotionTitle string) error { + r._promotionTitle = _promotionTitle + r.Set("promotion_title", _promotionTitle) + return nil +} + +// PromotionTitle Getter +func (r TaobaoMarketingPromotionKfcAPIRequest) GetPromotionTitle() string { + return r._promotionTitle +} +// PromotionDesc Setter +// 活动描述 +func (r *TaobaoMarketingPromotionKfcAPIRequest) SetPromotionDesc(_promotionDesc string) error { + r._promotionDesc = _promotionDesc + r.Set("promotion_desc", _promotionDesc) + return nil +} + +// PromotionDesc Getter +func (r TaobaoMarketingPromotionKfcAPIRequest) GetPromotionDesc() string { + return r._promotionDesc +} diff --git a/model/promotion/TaobaoMarketingPromotionKfcAPIResponse.go b/model/promotion/TaobaoMarketingPromotionKfcAPIResponse.go new file mode 100644 index 0000000000..fe43e7c556 --- /dev/null +++ b/model/promotion/TaobaoMarketingPromotionKfcAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定向优惠活动名称与描述违禁词检查 API返回值 +taobao.marketing.promotion.kfc + +活动名称与描述违禁词检查 +*/ +type TaobaoMarketingPromotionKfcAPIResponse struct { + model.CommonResponse + TaobaoMarketingPromotionKfcAPIResponseModel +} + +// 定向优惠活动名称与描述违禁词检查 成功返回结果 +type TaobaoMarketingPromotionKfcAPIResponseModel struct { + XMLName xml.Name `xml:"marketing_promotion_kfc_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoMarketingPromotionKfcResponse.go b/model/promotion/TaobaoMarketingPromotionKfcResponse.go deleted file mode 100644 index 119639de90..0000000000 --- a/model/promotion/TaobaoMarketingPromotionKfcResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定向优惠活动名称与描述违禁词检查 API返回值 -taobao.marketing.promotion.kfc - -活动名称与描述违禁词检查 -*/ -type TaobaoMarketingPromotionKfcAPIResponse struct { - model.CommonResponse - TaobaoMarketingPromotionKfcResponse -} - -// 定向优惠活动名称与描述违禁词检查 成功返回结果 -type TaobaoMarketingPromotionKfcResponse struct { - XMLName xml.Name `xml:"marketing_promotion_kfc_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoMobilePromotionBenefitActivitySendAPIRequest.go b/model/promotion/TaobaoMobilePromotionBenefitActivitySendAPIRequest.go new file mode 100644 index 0000000000..6a4e42fe90 --- /dev/null +++ b/model/promotion/TaobaoMobilePromotionBenefitActivitySendAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +手淘专用单用户发放接口 API请求 +taobao.mobile.promotion.benefit.activity.send + +卖家活动中需要通过该API来发放对应的权益。手淘专用单用户发放接口。 +*/ +type TaobaoMobilePromotionBenefitActivitySendAPIRequest struct { + model.Params + // 单用户权益发放请求 + _singleBenefitRequest *SingleBenefitRequest +} + +// 初始化TaobaoMobilePromotionBenefitActivitySendAPIRequest对象 +func NewTaobaoMobilePromotionBenefitActivitySendRequest() *TaobaoMobilePromotionBenefitActivitySendAPIRequest{ + return &TaobaoMobilePromotionBenefitActivitySendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMobilePromotionBenefitActivitySendAPIRequest) GetApiMethodName() string { + return "taobao.mobile.promotion.benefit.activity.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMobilePromotionBenefitActivitySendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SingleBenefitRequest Setter +// 单用户权益发放请求 +func (r *TaobaoMobilePromotionBenefitActivitySendAPIRequest) SetSingleBenefitRequest(_singleBenefitRequest *SingleBenefitRequest) error { + r._singleBenefitRequest = _singleBenefitRequest + r.Set("single_benefit_request", _singleBenefitRequest) + return nil +} + +// SingleBenefitRequest Getter +func (r TaobaoMobilePromotionBenefitActivitySendAPIRequest) GetSingleBenefitRequest() *SingleBenefitRequest { + return r._singleBenefitRequest +} diff --git a/model/promotion/TaobaoMobilePromotionBenefitActivitySendAPIResponse.go b/model/promotion/TaobaoMobilePromotionBenefitActivitySendAPIResponse.go new file mode 100644 index 0000000000..e2dc3605fd --- /dev/null +++ b/model/promotion/TaobaoMobilePromotionBenefitActivitySendAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +手淘专用单用户发放接口 API返回值 +taobao.mobile.promotion.benefit.activity.send + +卖家活动中需要通过该API来发放对应的权益。手淘专用单用户发放接口。 +*/ +type TaobaoMobilePromotionBenefitActivitySendAPIResponse struct { + model.CommonResponse + TaobaoMobilePromotionBenefitActivitySendAPIResponseModel +} + +// 手淘专用单用户发放接口 成功返回结果 +type TaobaoMobilePromotionBenefitActivitySendAPIResponseModel struct { + XMLName xml.Name `xml:"mobile_promotion_benefit_activity_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 权益发放结果 + SendResult *SingleBenefitSendResult `json:"send_result,omitempty" xml:"send_result,omitempty"` +} diff --git a/model/promotion/TaobaoMobilePromotionBenefitActivitySendResponse.go b/model/promotion/TaobaoMobilePromotionBenefitActivitySendResponse.go deleted file mode 100644 index c79463be7e..0000000000 --- a/model/promotion/TaobaoMobilePromotionBenefitActivitySendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -手淘专用单用户发放接口 API返回值 -taobao.mobile.promotion.benefit.activity.send - -卖家活动中需要通过该API来发放对应的权益。手淘专用单用户发放接口。 -*/ -type TaobaoMobilePromotionBenefitActivitySendAPIResponse struct { - model.CommonResponse - TaobaoMobilePromotionBenefitActivitySendResponse -} - -// 手淘专用单用户发放接口 成功返回结果 -type TaobaoMobilePromotionBenefitActivitySendResponse struct { - XMLName xml.Name `xml:"mobile_promotion_benefit_activity_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 权益发放结果 - SendResult *SingleBenefitSendResult `json:"send_result,omitempty" xml:"send_result,omitempty"` -} diff --git a/model/promotion/TaobaoMobilePromotionBenefitActivitySendShareAPIRequest.go b/model/promotion/TaobaoMobilePromotionBenefitActivitySendShareAPIRequest.go new file mode 100644 index 0000000000..7f0c4c34f8 --- /dev/null +++ b/model/promotion/TaobaoMobilePromotionBenefitActivitySendShareAPIRequest.go @@ -0,0 +1,178 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +手淘专用单用户发放接口 API请求 +taobao.mobile.promotion.benefit.activity.send.share + +卖家活动中需要通过该API来发放对应的权益。手淘专用、验证分享链路。 +*/ +type TaobaoMobilePromotionBenefitActivitySendShareAPIRequest struct { + model.Params + // 权益类型 其中ALIPAY_COUPON 对应的type值是1 + _benefitType int64 + // 权益关联的活动ID + _bizId string + // 活动详情id + _detailId int64 + // 广播ID + _feedId int64 + // 关联活动id + _relationId int64 + // 权益发放数量 + _sendCount int64 + // 和bizId一起使用,标记分享链路的key。 + _shareKey string + // 分享链路上的用户及用户是否发奖,u1_true,u2_true + _shareUsers string + // 调试线索 + _traceId string + // 事务id + _uniqueId string +} + +// 初始化TaobaoMobilePromotionBenefitActivitySendShareAPIRequest对象 +func NewTaobaoMobilePromotionBenefitActivitySendShareRequest() *TaobaoMobilePromotionBenefitActivitySendShareAPIRequest{ + return &TaobaoMobilePromotionBenefitActivitySendShareAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetApiMethodName() string { + return "taobao.mobile.promotion.benefit.activity.send.share" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BenefitType Setter +// 权益类型 其中ALIPAY_COUPON 对应的type值是1 +func (r *TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetBenefitType(_benefitType int64) error { + r._benefitType = _benefitType + r.Set("benefit_type", _benefitType) + return nil +} + +// BenefitType Getter +func (r TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetBenefitType() int64 { + return r._benefitType +} +// BizId Setter +// 权益关联的活动ID +func (r *TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetBizId(_bizId string) error { + r._bizId = _bizId + r.Set("biz_id", _bizId) + return nil +} + +// BizId Getter +func (r TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetBizId() string { + return r._bizId +} +// DetailId Setter +// 活动详情id +func (r *TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetDetailId(_detailId int64) error { + r._detailId = _detailId + r.Set("detail_id", _detailId) + return nil +} + +// DetailId Getter +func (r TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetDetailId() int64 { + return r._detailId +} +// FeedId Setter +// 广播ID +func (r *TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetFeedId(_feedId int64) error { + r._feedId = _feedId + r.Set("feed_id", _feedId) + return nil +} + +// FeedId Getter +func (r TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetFeedId() int64 { + return r._feedId +} +// RelationId Setter +// 关联活动id +func (r *TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetRelationId(_relationId int64) error { + r._relationId = _relationId + r.Set("relation_id", _relationId) + return nil +} + +// RelationId Getter +func (r TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetRelationId() int64 { + return r._relationId +} +// SendCount Setter +// 权益发放数量 +func (r *TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetSendCount(_sendCount int64) error { + r._sendCount = _sendCount + r.Set("send_count", _sendCount) + return nil +} + +// SendCount Getter +func (r TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetSendCount() int64 { + return r._sendCount +} +// ShareKey Setter +// 和bizId一起使用,标记分享链路的key。 +func (r *TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetShareKey(_shareKey string) error { + r._shareKey = _shareKey + r.Set("share_key", _shareKey) + return nil +} + +// ShareKey Getter +func (r TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetShareKey() string { + return r._shareKey +} +// ShareUsers Setter +// 分享链路上的用户及用户是否发奖,u1_true,u2_true +func (r *TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetShareUsers(_shareUsers string) error { + r._shareUsers = _shareUsers + r.Set("share_users", _shareUsers) + return nil +} + +// ShareUsers Getter +func (r TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetShareUsers() string { + return r._shareUsers +} +// TraceId Setter +// 调试线索 +func (r *TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetTraceId(_traceId string) error { + r._traceId = _traceId + r.Set("trace_id", _traceId) + return nil +} + +// TraceId Getter +func (r TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetTraceId() string { + return r._traceId +} +// UniqueId Setter +// 事务id +func (r *TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetUniqueId(_uniqueId string) error { + r._uniqueId = _uniqueId + r.Set("unique_id", _uniqueId) + return nil +} + +// UniqueId Getter +func (r TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetUniqueId() string { + return r._uniqueId +} diff --git a/model/promotion/TaobaoMobilePromotionBenefitActivitySendShareAPIResponse.go b/model/promotion/TaobaoMobilePromotionBenefitActivitySendShareAPIResponse.go new file mode 100644 index 0000000000..849eda1f27 --- /dev/null +++ b/model/promotion/TaobaoMobilePromotionBenefitActivitySendShareAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +手淘专用单用户发放接口 API返回值 +taobao.mobile.promotion.benefit.activity.send.share + +卖家活动中需要通过该API来发放对应的权益。手淘专用、验证分享链路。 +*/ +type TaobaoMobilePromotionBenefitActivitySendShareAPIResponse struct { + model.CommonResponse + TaobaoMobilePromotionBenefitActivitySendShareAPIResponseModel +} + +// 手淘专用单用户发放接口 成功返回结果 +type TaobaoMobilePromotionBenefitActivitySendShareAPIResponseModel struct { + XMLName xml.Name `xml:"mobile_promotion_benefit_activity_send_share_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 权益发放结果 + SendResult *ShareBenefitSendResult `json:"send_result,omitempty" xml:"send_result,omitempty"` +} diff --git a/model/promotion/TaobaoMobilePromotionBenefitActivitySendShareResponse.go b/model/promotion/TaobaoMobilePromotionBenefitActivitySendShareResponse.go deleted file mode 100644 index 9bcb608ca5..0000000000 --- a/model/promotion/TaobaoMobilePromotionBenefitActivitySendShareResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -手淘专用单用户发放接口 API返回值 -taobao.mobile.promotion.benefit.activity.send.share - -卖家活动中需要通过该API来发放对应的权益。手淘专用、验证分享链路。 -*/ -type TaobaoMobilePromotionBenefitActivitySendShareAPIResponse struct { - model.CommonResponse - TaobaoMobilePromotionBenefitActivitySendShareResponse -} - -// 手淘专用单用户发放接口 成功返回结果 -type TaobaoMobilePromotionBenefitActivitySendShareResponse struct { - XMLName xml.Name `xml:"mobile_promotion_benefit_activity_send_share_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 权益发放结果 - SendResult *ShareBenefitSendResult `json:"send_result,omitempty" xml:"send_result,omitempty"` -} diff --git a/model/promotion/TaobaoMobilePromotionCouponApplyAPIRequest.go b/model/promotion/TaobaoMobilePromotionCouponApplyAPIRequest.go new file mode 100644 index 0000000000..be531eca41 --- /dev/null +++ b/model/promotion/TaobaoMobilePromotionCouponApplyAPIRequest.go @@ -0,0 +1,94 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券领取(手淘专用) API请求 +taobao.mobile.promotion.coupon.apply + +优惠券领取 +*/ +type TaobaoMobilePromotionCouponApplyAPIRequest struct { + model.Params + // 请求唯一id,问题排查 + _traceId string + // 传播id + _spreadId int64 + // 广播id + _feedId string + // 三方活动id + _bizId string +} + +// 初始化TaobaoMobilePromotionCouponApplyAPIRequest对象 +func NewTaobaoMobilePromotionCouponApplyRequest() *TaobaoMobilePromotionCouponApplyAPIRequest{ + return &TaobaoMobilePromotionCouponApplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMobilePromotionCouponApplyAPIRequest) GetApiMethodName() string { + return "taobao.mobile.promotion.coupon.apply" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMobilePromotionCouponApplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TraceId Setter +// 请求唯一id,问题排查 +func (r *TaobaoMobilePromotionCouponApplyAPIRequest) SetTraceId(_traceId string) error { + r._traceId = _traceId + r.Set("trace_id", _traceId) + return nil +} + +// TraceId Getter +func (r TaobaoMobilePromotionCouponApplyAPIRequest) GetTraceId() string { + return r._traceId +} +// SpreadId Setter +// 传播id +func (r *TaobaoMobilePromotionCouponApplyAPIRequest) SetSpreadId(_spreadId int64) error { + r._spreadId = _spreadId + r.Set("spread_id", _spreadId) + return nil +} + +// SpreadId Getter +func (r TaobaoMobilePromotionCouponApplyAPIRequest) GetSpreadId() int64 { + return r._spreadId +} +// FeedId Setter +// 广播id +func (r *TaobaoMobilePromotionCouponApplyAPIRequest) SetFeedId(_feedId string) error { + r._feedId = _feedId + r.Set("feed_id", _feedId) + return nil +} + +// FeedId Getter +func (r TaobaoMobilePromotionCouponApplyAPIRequest) GetFeedId() string { + return r._feedId +} +// BizId Setter +// 三方活动id +func (r *TaobaoMobilePromotionCouponApplyAPIRequest) SetBizId(_bizId string) error { + r._bizId = _bizId + r.Set("biz_id", _bizId) + return nil +} + +// BizId Getter +func (r TaobaoMobilePromotionCouponApplyAPIRequest) GetBizId() string { + return r._bizId +} diff --git a/model/promotion/TaobaoMobilePromotionCouponApplyAPIResponse.go b/model/promotion/TaobaoMobilePromotionCouponApplyAPIResponse.go new file mode 100644 index 0000000000..0dd427f55f --- /dev/null +++ b/model/promotion/TaobaoMobilePromotionCouponApplyAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券领取(手淘专用) API返回值 +taobao.mobile.promotion.coupon.apply + +优惠券领取 +*/ +type TaobaoMobilePromotionCouponApplyAPIResponse struct { + model.CommonResponse + TaobaoMobilePromotionCouponApplyAPIResponseModel +} + +// 优惠券领取(手淘专用) 成功返回结果 +type TaobaoMobilePromotionCouponApplyAPIResponseModel struct { + XMLName xml.Name `xml:"mobile_promotion_coupon_apply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 优惠券领取结果 + CouponApplyResult *CouponApplyResult `json:"coupon_apply_result,omitempty" xml:"coupon_apply_result,omitempty"` +} diff --git a/model/promotion/TaobaoMobilePromotionCouponApplyResponse.go b/model/promotion/TaobaoMobilePromotionCouponApplyResponse.go deleted file mode 100644 index 1385129ab4..0000000000 --- a/model/promotion/TaobaoMobilePromotionCouponApplyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -优惠券领取(手淘专用) API返回值 -taobao.mobile.promotion.coupon.apply - -优惠券领取 -*/ -type TaobaoMobilePromotionCouponApplyAPIResponse struct { - model.CommonResponse - TaobaoMobilePromotionCouponApplyResponse -} - -// 优惠券领取(手淘专用) 成功返回结果 -type TaobaoMobilePromotionCouponApplyResponse struct { - XMLName xml.Name `xml:"mobile_promotion_coupon_apply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 优惠券领取结果 - CouponApplyResult *CouponApplyResult `json:"coupon_apply_result,omitempty" xml:"coupon_apply_result,omitempty"` -} diff --git a/model/promotion/TaobaoMobilePromotionCouponSellerSearchAPIRequest.go b/model/promotion/TaobaoMobilePromotionCouponSellerSearchAPIRequest.go new file mode 100644 index 0000000000..39f13ab6dc --- /dev/null +++ b/model/promotion/TaobaoMobilePromotionCouponSellerSearchAPIRequest.go @@ -0,0 +1,94 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询绑定卖家优惠券相关信息(手淘专用) API请求 +taobao.mobile.promotion.coupon.seller.search + +查询绑定卖家相关优惠券信息 如isv 百川 等外部业务方 +*/ +type TaobaoMobilePromotionCouponSellerSearchAPIRequest struct { + model.Params + // 请求id 排查线索 需保证单次调用唯一 + _traceId string + // 券id集合 + _spreadIds string + // 每页数据 最大20左右 + _pageSize int64 + // 当前第几页 从第一页开始 + _currentPage int64 +} + +// 初始化TaobaoMobilePromotionCouponSellerSearchAPIRequest对象 +func NewTaobaoMobilePromotionCouponSellerSearchRequest() *TaobaoMobilePromotionCouponSellerSearchAPIRequest{ + return &TaobaoMobilePromotionCouponSellerSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMobilePromotionCouponSellerSearchAPIRequest) GetApiMethodName() string { + return "taobao.mobile.promotion.coupon.seller.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMobilePromotionCouponSellerSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TraceId Setter +// 请求id 排查线索 需保证单次调用唯一 +func (r *TaobaoMobilePromotionCouponSellerSearchAPIRequest) SetTraceId(_traceId string) error { + r._traceId = _traceId + r.Set("trace_id", _traceId) + return nil +} + +// TraceId Getter +func (r TaobaoMobilePromotionCouponSellerSearchAPIRequest) GetTraceId() string { + return r._traceId +} +// SpreadIds Setter +// 券id集合 +func (r *TaobaoMobilePromotionCouponSellerSearchAPIRequest) SetSpreadIds(_spreadIds string) error { + r._spreadIds = _spreadIds + r.Set("spread_ids", _spreadIds) + return nil +} + +// SpreadIds Getter +func (r TaobaoMobilePromotionCouponSellerSearchAPIRequest) GetSpreadIds() string { + return r._spreadIds +} +// PageSize Setter +// 每页数据 最大20左右 +func (r *TaobaoMobilePromotionCouponSellerSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoMobilePromotionCouponSellerSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// CurrentPage Setter +// 当前第几页 从第一页开始 +func (r *TaobaoMobilePromotionCouponSellerSearchAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TaobaoMobilePromotionCouponSellerSearchAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} diff --git a/model/promotion/TaobaoMobilePromotionCouponSellerSearchAPIResponse.go b/model/promotion/TaobaoMobilePromotionCouponSellerSearchAPIResponse.go new file mode 100644 index 0000000000..a57f38f1a7 --- /dev/null +++ b/model/promotion/TaobaoMobilePromotionCouponSellerSearchAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询绑定卖家优惠券相关信息(手淘专用) API返回值 +taobao.mobile.promotion.coupon.seller.search + +查询绑定卖家相关优惠券信息 如isv 百川 等外部业务方 +*/ +type TaobaoMobilePromotionCouponSellerSearchAPIResponse struct { + model.CommonResponse + TaobaoMobilePromotionCouponSellerSearchAPIResponseModel +} + +// 查询绑定卖家优惠券相关信息(手淘专用) 成功返回结果 +type TaobaoMobilePromotionCouponSellerSearchAPIResponseModel struct { + XMLName xml.Name `xml:"mobile_promotion_coupon_seller_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 优惠券查询结果 + CouponSearchResult *CouponSearchResult `json:"coupon_search_result,omitempty" xml:"coupon_search_result,omitempty"` +} diff --git a/model/promotion/TaobaoMobilePromotionCouponSellerSearchResponse.go b/model/promotion/TaobaoMobilePromotionCouponSellerSearchResponse.go deleted file mode 100644 index 77f2c8bf08..0000000000 --- a/model/promotion/TaobaoMobilePromotionCouponSellerSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询绑定卖家优惠券相关信息(手淘专用) API返回值 -taobao.mobile.promotion.coupon.seller.search - -查询绑定卖家相关优惠券信息 如isv 百川 等外部业务方 -*/ -type TaobaoMobilePromotionCouponSellerSearchAPIResponse struct { - model.CommonResponse - TaobaoMobilePromotionCouponSellerSearchResponse -} - -// 查询绑定卖家优惠券相关信息(手淘专用) 成功返回结果 -type TaobaoMobilePromotionCouponSellerSearchResponse struct { - XMLName xml.Name `xml:"mobile_promotion_coupon_seller_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 优惠券查询结果 - CouponSearchResult *CouponSearchResult `json:"coupon_search_result,omitempty" xml:"coupon_search_result,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionActivityGetAPIRequest.go b/model/promotion/TaobaoPromotionActivityGetAPIRequest.go new file mode 100644 index 0000000000..d920858043 --- /dev/null +++ b/model/promotion/TaobaoPromotionActivityGetAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询某个卖家的店铺优惠券领取活动 API请求 +taobao.promotion.activity.get + +查询某个卖家的店铺优惠券领取活动
返回,优惠券领取活动ID,优惠券ID,总领用量,每人限领量,已领取数量
领取活动状态,优惠券领取链接
最多50个优惠券 +*/ +type TaobaoPromotionActivityGetAPIRequest struct { + model.Params + // 活动的id + _activityId int64 +} + +// 初始化TaobaoPromotionActivityGetAPIRequest对象 +func NewTaobaoPromotionActivityGetRequest() *TaobaoPromotionActivityGetAPIRequest{ + return &TaobaoPromotionActivityGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionActivityGetAPIRequest) GetApiMethodName() string { + return "taobao.promotion.activity.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionActivityGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 活动的id +func (r *TaobaoPromotionActivityGetAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoPromotionActivityGetAPIRequest) GetActivityId() int64 { + return r._activityId +} diff --git a/model/promotion/TaobaoPromotionActivityGetAPIResponse.go b/model/promotion/TaobaoPromotionActivityGetAPIResponse.go new file mode 100644 index 0000000000..8427a225c9 --- /dev/null +++ b/model/promotion/TaobaoPromotionActivityGetAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询某个卖家的店铺优惠券领取活动 API返回值 +taobao.promotion.activity.get + +查询某个卖家的店铺优惠券领取活动
返回,优惠券领取活动ID,优惠券ID,总领用量,每人限领量,已领取数量
领取活动状态,优惠券领取链接
最多50个优惠券 +*/ +type TaobaoPromotionActivityGetAPIResponse struct { + model.CommonResponse + TaobaoPromotionActivityGetAPIResponseModel +} + +// 查询某个卖家的店铺优惠券领取活动 成功返回结果 +type TaobaoPromotionActivityGetAPIResponseModel struct { + XMLName xml.Name `xml:"promotion_activity_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 活动列表 + Activitys []Activity `json:"activitys,omitempty" xml:"activitys>activity,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionActivityGetResponse.go b/model/promotion/TaobaoPromotionActivityGetResponse.go deleted file mode 100644 index 1667d95185..0000000000 --- a/model/promotion/TaobaoPromotionActivityGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询某个卖家的店铺优惠券领取活动 API返回值 -taobao.promotion.activity.get - -查询某个卖家的店铺优惠券领取活动
返回,优惠券领取活动ID,优惠券ID,总领用量,每人限领量,已领取数量
领取活动状态,优惠券领取链接
最多50个优惠券 -*/ -type TaobaoPromotionActivityGetAPIResponse struct { - model.CommonResponse - TaobaoPromotionActivityGetResponse -} - -// 查询某个卖家的店铺优惠券领取活动 成功返回结果 -type TaobaoPromotionActivityGetResponse struct { - XMLName xml.Name `xml:"promotion_activity_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 活动列表 - Activitys []Activity `json:"activitys,omitempty" xml:"activitys>activity,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionBenefitActivityDeleteAPIRequest.go b/model/promotion/TaobaoPromotionBenefitActivityDeleteAPIRequest.go new file mode 100644 index 0000000000..a0c5ec3421 --- /dev/null +++ b/model/promotion/TaobaoPromotionBenefitActivityDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除关联的活动权益 API请求 +taobao.promotion.benefit.activity.delete + +删除关联的活动权益 +*/ +type TaobaoPromotionBenefitActivityDeleteAPIRequest struct { + model.Params + // ISV活动关联权益后获得的关联ID + _relationId int64 +} + +// 初始化TaobaoPromotionBenefitActivityDeleteAPIRequest对象 +func NewTaobaoPromotionBenefitActivityDeleteRequest() *TaobaoPromotionBenefitActivityDeleteAPIRequest{ + return &TaobaoPromotionBenefitActivityDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionBenefitActivityDeleteAPIRequest) GetApiMethodName() string { + return "taobao.promotion.benefit.activity.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionBenefitActivityDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RelationId Setter +// ISV活动关联权益后获得的关联ID +func (r *TaobaoPromotionBenefitActivityDeleteAPIRequest) SetRelationId(_relationId int64) error { + r._relationId = _relationId + r.Set("relation_id", _relationId) + return nil +} + +// RelationId Getter +func (r TaobaoPromotionBenefitActivityDeleteAPIRequest) GetRelationId() int64 { + return r._relationId +} diff --git a/model/promotion/TaobaoPromotionBenefitActivityDeleteAPIResponse.go b/model/promotion/TaobaoPromotionBenefitActivityDeleteAPIResponse.go new file mode 100644 index 0000000000..32451a4d4b --- /dev/null +++ b/model/promotion/TaobaoPromotionBenefitActivityDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除关联的活动权益 API返回值 +taobao.promotion.benefit.activity.delete + +删除关联的活动权益 +*/ +type TaobaoPromotionBenefitActivityDeleteAPIResponse struct { + model.CommonResponse + TaobaoPromotionBenefitActivityDeleteAPIResponseModel +} + +// 删除关联的活动权益 成功返回结果 +type TaobaoPromotionBenefitActivityDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"promotion_benefit_activity_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 删除是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionBenefitActivityDeleteResponse.go b/model/promotion/TaobaoPromotionBenefitActivityDeleteResponse.go deleted file mode 100644 index 42f0552c4c..0000000000 --- a/model/promotion/TaobaoPromotionBenefitActivityDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除关联的活动权益 API返回值 -taobao.promotion.benefit.activity.delete - -删除关联的活动权益 -*/ -type TaobaoPromotionBenefitActivityDeleteAPIResponse struct { - model.CommonResponse - TaobaoPromotionBenefitActivityDeleteResponse -} - -// 删除关联的活动权益 成功返回结果 -type TaobaoPromotionBenefitActivityDeleteResponse struct { - XMLName xml.Name `xml:"promotion_benefit_activity_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 删除是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionBenefitActivityDetailGetAPIRequest.go b/model/promotion/TaobaoPromotionBenefitActivityDetailGetAPIRequest.go new file mode 100644 index 0000000000..90b6b3f448 --- /dev/null +++ b/model/promotion/TaobaoPromotionBenefitActivityDetailGetAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +活动关联的权益详情获取 API请求 +taobao.promotion.benefit.activity.detail.get + +活动关联的权益详情获取 +*/ +type TaobaoPromotionBenefitActivityDetailGetAPIRequest struct { + model.Params + // 查询活动关联权益详情的请求 + _queryRequest *ActivityRelationDetailRequest +} + +// 初始化TaobaoPromotionBenefitActivityDetailGetAPIRequest对象 +func NewTaobaoPromotionBenefitActivityDetailGetRequest() *TaobaoPromotionBenefitActivityDetailGetAPIRequest{ + return &TaobaoPromotionBenefitActivityDetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionBenefitActivityDetailGetAPIRequest) GetApiMethodName() string { + return "taobao.promotion.benefit.activity.detail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionBenefitActivityDetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryRequest Setter +// 查询活动关联权益详情的请求 +func (r *TaobaoPromotionBenefitActivityDetailGetAPIRequest) SetQueryRequest(_queryRequest *ActivityRelationDetailRequest) error { + r._queryRequest = _queryRequest + r.Set("query_request", _queryRequest) + return nil +} + +// QueryRequest Getter +func (r TaobaoPromotionBenefitActivityDetailGetAPIRequest) GetQueryRequest() *ActivityRelationDetailRequest { + return r._queryRequest +} diff --git a/model/promotion/TaobaoPromotionBenefitActivityDetailGetAPIResponse.go b/model/promotion/TaobaoPromotionBenefitActivityDetailGetAPIResponse.go new file mode 100644 index 0000000000..60e0537161 --- /dev/null +++ b/model/promotion/TaobaoPromotionBenefitActivityDetailGetAPIResponse.go @@ -0,0 +1,29 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +活动关联的权益详情获取 API返回值 +taobao.promotion.benefit.activity.detail.get + +活动关联的权益详情获取 +*/ +type TaobaoPromotionBenefitActivityDetailGetAPIResponse struct { + model.CommonResponse + TaobaoPromotionBenefitActivityDetailGetAPIResponseModel +} + +// 活动关联的权益详情获取 成功返回结果 +type TaobaoPromotionBenefitActivityDetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"promotion_benefit_activity_detail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 活动关联的权益详情列表 + RelationBenefitDetails string `json:"relation_benefit_details,omitempty" xml:"relation_benefit_details,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionBenefitActivityDetailGetResponse.go b/model/promotion/TaobaoPromotionBenefitActivityDetailGetResponse.go deleted file mode 100644 index 4ec76e3e14..0000000000 --- a/model/promotion/TaobaoPromotionBenefitActivityDetailGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -活动关联的权益详情获取 API返回值 -taobao.promotion.benefit.activity.detail.get - -活动关联的权益详情获取 -*/ -type TaobaoPromotionBenefitActivityDetailGetAPIResponse struct { - model.CommonResponse - TaobaoPromotionBenefitActivityDetailGetResponse -} - -// 活动关联的权益详情获取 成功返回结果 -type TaobaoPromotionBenefitActivityDetailGetResponse struct { - XMLName xml.Name `xml:"promotion_benefit_activity_detail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 活动关联的权益详情列表 - RelationBenefitDetails string `json:"relation_benefit_details,omitempty" xml:"relation_benefit_details,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionBenefitActivityRelationAPIRequest.go b/model/promotion/TaobaoPromotionBenefitActivityRelationAPIRequest.go new file mode 100644 index 0000000000..373c248d4f --- /dev/null +++ b/model/promotion/TaobaoPromotionBenefitActivityRelationAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +关联活动权益 API请求 +taobao.promotion.benefit.activity.relation + +卖家活动中需要通过该API来关联的对应的权益。 +*/ +type TaobaoPromotionBenefitActivityRelationAPIRequest struct { + model.Params + // 活动关联权益请求参数 + _relationRequest *RelationActivityBenefitRequest +} + +// 初始化TaobaoPromotionBenefitActivityRelationAPIRequest对象 +func NewTaobaoPromotionBenefitActivityRelationRequest() *TaobaoPromotionBenefitActivityRelationAPIRequest{ + return &TaobaoPromotionBenefitActivityRelationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionBenefitActivityRelationAPIRequest) GetApiMethodName() string { + return "taobao.promotion.benefit.activity.relation" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionBenefitActivityRelationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RelationRequest Setter +// 活动关联权益请求参数 +func (r *TaobaoPromotionBenefitActivityRelationAPIRequest) SetRelationRequest(_relationRequest *RelationActivityBenefitRequest) error { + r._relationRequest = _relationRequest + r.Set("relation_request", _relationRequest) + return nil +} + +// RelationRequest Getter +func (r TaobaoPromotionBenefitActivityRelationAPIRequest) GetRelationRequest() *RelationActivityBenefitRequest { + return r._relationRequest +} diff --git a/model/promotion/TaobaoPromotionBenefitActivityRelationAPIResponse.go b/model/promotion/TaobaoPromotionBenefitActivityRelationAPIResponse.go new file mode 100644 index 0000000000..73e3b05a16 --- /dev/null +++ b/model/promotion/TaobaoPromotionBenefitActivityRelationAPIResponse.go @@ -0,0 +1,29 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +关联活动权益 API返回值 +taobao.promotion.benefit.activity.relation + +卖家活动中需要通过该API来关联的对应的权益。 +*/ +type TaobaoPromotionBenefitActivityRelationAPIResponse struct { + model.CommonResponse + TaobaoPromotionBenefitActivityRelationAPIResponseModel +} + +// 关联活动权益 成功返回结果 +type TaobaoPromotionBenefitActivityRelationAPIResponseModel struct { + XMLName xml.Name `xml:"promotion_benefit_activity_relation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 活动关联ID + RelationId int64 `json:"relation_id,omitempty" xml:"relation_id,omitempty"` + // 请求是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionBenefitActivityRelationResponse.go b/model/promotion/TaobaoPromotionBenefitActivityRelationResponse.go deleted file mode 100644 index 2508793386..0000000000 --- a/model/promotion/TaobaoPromotionBenefitActivityRelationResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -关联活动权益 API返回值 -taobao.promotion.benefit.activity.relation - -卖家活动中需要通过该API来关联的对应的权益。 -*/ -type TaobaoPromotionBenefitActivityRelationAPIResponse struct { - model.CommonResponse - TaobaoPromotionBenefitActivityRelationResponse -} - -// 关联活动权益 成功返回结果 -type TaobaoPromotionBenefitActivityRelationResponse struct { - XMLName xml.Name `xml:"promotion_benefit_activity_relation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 活动关联ID - RelationId int64 `json:"relation_id,omitempty" xml:"relation_id,omitempty"` - // 请求是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionBenefitActivitySendAPIRequest.go b/model/promotion/TaobaoPromotionBenefitActivitySendAPIRequest.go new file mode 100644 index 0000000000..c3b4fe916e --- /dev/null +++ b/model/promotion/TaobaoPromotionBenefitActivitySendAPIRequest.go @@ -0,0 +1,108 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +活动权益发放接口 API请求 +taobao.promotion.benefit.activity.send + +活动权益发放接口,用于卖家针对活动进行权益发放 +*/ +type TaobaoPromotionBenefitActivitySendAPIRequest struct { + model.Params + // 单个权益发放请求 + _sendRequest *BenefitSingleSendRequest + // 非混淆的接收者id + _receiverId int64 + // 混淆的接收者nick + _nick string + // 非混淆的接收者nick + _platNick string + // 混淆的接收者id + _mixReceiverId string +} + +// 初始化TaobaoPromotionBenefitActivitySendAPIRequest对象 +func NewTaobaoPromotionBenefitActivitySendRequest() *TaobaoPromotionBenefitActivitySendAPIRequest{ + return &TaobaoPromotionBenefitActivitySendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionBenefitActivitySendAPIRequest) GetApiMethodName() string { + return "taobao.promotion.benefit.activity.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionBenefitActivitySendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SendRequest Setter +// 单个权益发放请求 +func (r *TaobaoPromotionBenefitActivitySendAPIRequest) SetSendRequest(_sendRequest *BenefitSingleSendRequest) error { + r._sendRequest = _sendRequest + r.Set("send_request", _sendRequest) + return nil +} + +// SendRequest Getter +func (r TaobaoPromotionBenefitActivitySendAPIRequest) GetSendRequest() *BenefitSingleSendRequest { + return r._sendRequest +} +// ReceiverId Setter +// 非混淆的接收者id +func (r *TaobaoPromotionBenefitActivitySendAPIRequest) SetReceiverId(_receiverId int64) error { + r._receiverId = _receiverId + r.Set("receiver_id", _receiverId) + return nil +} + +// ReceiverId Getter +func (r TaobaoPromotionBenefitActivitySendAPIRequest) GetReceiverId() int64 { + return r._receiverId +} +// Nick Setter +// 混淆的接收者nick +func (r *TaobaoPromotionBenefitActivitySendAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoPromotionBenefitActivitySendAPIRequest) GetNick() string { + return r._nick +} +// PlatNick Setter +// 非混淆的接收者nick +func (r *TaobaoPromotionBenefitActivitySendAPIRequest) SetPlatNick(_platNick string) error { + r._platNick = _platNick + r.Set("plat_nick", _platNick) + return nil +} + +// PlatNick Getter +func (r TaobaoPromotionBenefitActivitySendAPIRequest) GetPlatNick() string { + return r._platNick +} +// MixReceiverId Setter +// 混淆的接收者id +func (r *TaobaoPromotionBenefitActivitySendAPIRequest) SetMixReceiverId(_mixReceiverId string) error { + r._mixReceiverId = _mixReceiverId + r.Set("mix_receiver_id", _mixReceiverId) + return nil +} + +// MixReceiverId Getter +func (r TaobaoPromotionBenefitActivitySendAPIRequest) GetMixReceiverId() string { + return r._mixReceiverId +} diff --git a/model/promotion/TaobaoPromotionBenefitActivitySendAPIResponse.go b/model/promotion/TaobaoPromotionBenefitActivitySendAPIResponse.go new file mode 100644 index 0000000000..8a337f48a3 --- /dev/null +++ b/model/promotion/TaobaoPromotionBenefitActivitySendAPIResponse.go @@ -0,0 +1,33 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +活动权益发放接口 API返回值 +taobao.promotion.benefit.activity.send + +活动权益发放接口,用于卖家针对活动进行权益发放 +*/ +type TaobaoPromotionBenefitActivitySendAPIResponse struct { + model.CommonResponse + TaobaoPromotionBenefitActivitySendAPIResponseModel +} + +// 活动权益发放接口 成功返回结果 +type TaobaoPromotionBenefitActivitySendAPIResponseModel struct { + XMLName xml.Name `xml:"promotion_benefit_activity_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 事务id;发放时,不传入事务id,发放返回结果中会包含事务id;若发放失败,使用返回的事务id进行调用,则可以重试失败的操作 + SessionId string `json:"session_id,omitempty" xml:"session_id,omitempty"` + // 返回活动详情级别的权益发放情况 + ResultList []BenefitSendResultExt `json:"result_list,omitempty" xml:"result_list>benefit_send_result_ext,omitempty"` + // uniqueId + UniqueId string `json:"unique_id,omitempty" xml:"unique_id,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionBenefitActivitySendResponse.go b/model/promotion/TaobaoPromotionBenefitActivitySendResponse.go deleted file mode 100644 index 9fed30f16f..0000000000 --- a/model/promotion/TaobaoPromotionBenefitActivitySendResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -活动权益发放接口 API返回值 -taobao.promotion.benefit.activity.send - -活动权益发放接口,用于卖家针对活动进行权益发放 -*/ -type TaobaoPromotionBenefitActivitySendAPIResponse struct { - model.CommonResponse - TaobaoPromotionBenefitActivitySendResponse -} - -// 活动权益发放接口 成功返回结果 -type TaobaoPromotionBenefitActivitySendResponse struct { - XMLName xml.Name `xml:"promotion_benefit_activity_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 事务id;发放时,不传入事务id,发放返回结果中会包含事务id;若发放失败,使用返回的事务id进行调用,则可以重试失败的操作 - SessionId string `json:"session_id,omitempty" xml:"session_id,omitempty"` - // 返回活动详情级别的权益发放情况 - ResultList []BenefitSendResultExt `json:"result_list,omitempty" xml:"result_list>benefit_send_result_ext,omitempty"` - // uniqueId - UniqueId string `json:"unique_id,omitempty" xml:"unique_id,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionBenefitActivityTimeUpdateAPIRequest.go b/model/promotion/TaobaoPromotionBenefitActivityTimeUpdateAPIRequest.go new file mode 100644 index 0000000000..c15619b730 --- /dev/null +++ b/model/promotion/TaobaoPromotionBenefitActivityTimeUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新关联活动有效时间 API请求 +taobao.promotion.benefit.activity.time.update + +更新关联权益的活动有效时间 +*/ +type TaobaoPromotionBenefitActivityTimeUpdateAPIRequest struct { + model.Params + // ISV活动关联权益后获得的关联ID + _relationId int64 + // 活动的开始时间 + _startTime string + // 活动的i结束时间 + _endTime string +} + +// 初始化TaobaoPromotionBenefitActivityTimeUpdateAPIRequest对象 +func NewTaobaoPromotionBenefitActivityTimeUpdateRequest() *TaobaoPromotionBenefitActivityTimeUpdateAPIRequest{ + return &TaobaoPromotionBenefitActivityTimeUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionBenefitActivityTimeUpdateAPIRequest) GetApiMethodName() string { + return "taobao.promotion.benefit.activity.time.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionBenefitActivityTimeUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RelationId Setter +// ISV活动关联权益后获得的关联ID +func (r *TaobaoPromotionBenefitActivityTimeUpdateAPIRequest) SetRelationId(_relationId int64) error { + r._relationId = _relationId + r.Set("relation_id", _relationId) + return nil +} + +// RelationId Getter +func (r TaobaoPromotionBenefitActivityTimeUpdateAPIRequest) GetRelationId() int64 { + return r._relationId +} +// StartTime Setter +// 活动的开始时间 +func (r *TaobaoPromotionBenefitActivityTimeUpdateAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoPromotionBenefitActivityTimeUpdateAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 活动的i结束时间 +func (r *TaobaoPromotionBenefitActivityTimeUpdateAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoPromotionBenefitActivityTimeUpdateAPIRequest) GetEndTime() string { + return r._endTime +} diff --git a/model/promotion/TaobaoPromotionBenefitActivityTimeUpdateAPIResponse.go b/model/promotion/TaobaoPromotionBenefitActivityTimeUpdateAPIResponse.go new file mode 100644 index 0000000000..41dfa31a7a --- /dev/null +++ b/model/promotion/TaobaoPromotionBenefitActivityTimeUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新关联活动有效时间 API返回值 +taobao.promotion.benefit.activity.time.update + +更新关联权益的活动有效时间 +*/ +type TaobaoPromotionBenefitActivityTimeUpdateAPIResponse struct { + model.CommonResponse + TaobaoPromotionBenefitActivityTimeUpdateAPIResponseModel +} + +// 更新关联活动有效时间 成功返回结果 +type TaobaoPromotionBenefitActivityTimeUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"promotion_benefit_activity_time_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionBenefitActivityTimeUpdateResponse.go b/model/promotion/TaobaoPromotionBenefitActivityTimeUpdateResponse.go deleted file mode 100644 index 9782d866e1..0000000000 --- a/model/promotion/TaobaoPromotionBenefitActivityTimeUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新关联活动有效时间 API返回值 -taobao.promotion.benefit.activity.time.update - -更新关联权益的活动有效时间 -*/ -type TaobaoPromotionBenefitActivityTimeUpdateAPIResponse struct { - model.CommonResponse - TaobaoPromotionBenefitActivityTimeUpdateResponse -} - -// 更新关联活动有效时间 成功返回结果 -type TaobaoPromotionBenefitActivityTimeUpdateResponse struct { - XMLName xml.Name `xml:"promotion_benefit_activity_time_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionBenefitActivityUpdateAPIRequest.go b/model/promotion/TaobaoPromotionBenefitActivityUpdateAPIRequest.go new file mode 100644 index 0000000000..dd938af92d --- /dev/null +++ b/model/promotion/TaobaoPromotionBenefitActivityUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改关联的活动权益 API请求 +taobao.promotion.benefit.activity.update + +修改卖家活动中关联的对应的权益。 +*/ +type TaobaoPromotionBenefitActivityUpdateAPIRequest struct { + model.Params + // 修改关联的权益的活动请求 + _updateRequest *UpdateBenefitActivityRequest +} + +// 初始化TaobaoPromotionBenefitActivityUpdateAPIRequest对象 +func NewTaobaoPromotionBenefitActivityUpdateRequest() *TaobaoPromotionBenefitActivityUpdateAPIRequest{ + return &TaobaoPromotionBenefitActivityUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionBenefitActivityUpdateAPIRequest) GetApiMethodName() string { + return "taobao.promotion.benefit.activity.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionBenefitActivityUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UpdateRequest Setter +// 修改关联的权益的活动请求 +func (r *TaobaoPromotionBenefitActivityUpdateAPIRequest) SetUpdateRequest(_updateRequest *UpdateBenefitActivityRequest) error { + r._updateRequest = _updateRequest + r.Set("update_request", _updateRequest) + return nil +} + +// UpdateRequest Getter +func (r TaobaoPromotionBenefitActivityUpdateAPIRequest) GetUpdateRequest() *UpdateBenefitActivityRequest { + return r._updateRequest +} diff --git a/model/promotion/TaobaoPromotionBenefitActivityUpdateAPIResponse.go b/model/promotion/TaobaoPromotionBenefitActivityUpdateAPIResponse.go new file mode 100644 index 0000000000..4093dd3f94 --- /dev/null +++ b/model/promotion/TaobaoPromotionBenefitActivityUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改关联的活动权益 API返回值 +taobao.promotion.benefit.activity.update + +修改卖家活动中关联的对应的权益。 +*/ +type TaobaoPromotionBenefitActivityUpdateAPIResponse struct { + model.CommonResponse + TaobaoPromotionBenefitActivityUpdateAPIResponseModel +} + +// 修改关联的活动权益 成功返回结果 +type TaobaoPromotionBenefitActivityUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"promotion_benefit_activity_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 更新是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionBenefitActivityUpdateResponse.go b/model/promotion/TaobaoPromotionBenefitActivityUpdateResponse.go deleted file mode 100644 index 1eb8364da9..0000000000 --- a/model/promotion/TaobaoPromotionBenefitActivityUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改关联的活动权益 API返回值 -taobao.promotion.benefit.activity.update - -修改卖家活动中关联的对应的权益。 -*/ -type TaobaoPromotionBenefitActivityUpdateAPIResponse struct { - model.CommonResponse - TaobaoPromotionBenefitActivityUpdateResponse -} - -// 修改关联的活动权益 成功返回结果 -type TaobaoPromotionBenefitActivityUpdateResponse struct { - XMLName xml.Name `xml:"promotion_benefit_activity_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 更新是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionBenefitSelectorAPIRequest.go b/model/promotion/TaobaoPromotionBenefitSelectorAPIRequest.go new file mode 100644 index 0000000000..679fac16fd --- /dev/null +++ b/model/promotion/TaobaoPromotionBenefitSelectorAPIRequest.go @@ -0,0 +1,57 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +权益选择器接口 API请求 +taobao.promotion.benefit.selector + +权益选择器,查询用户已有权益,提供用户进行已拥有权益的选择操作,权益发放的前置操作 +1、目前top的接口只开了1,4,13,14 四种权益, 支付宝红包--1;流量钱包--4;优酷会员--13;彩票-- 14
+2、目前只有"支付宝红包"有"benefit_type": "ALIPAY_COUPON",其它三个没有benefit_type
+3、接口文档中写的 优酷会员卡--2 写错了,正确的是13(已接口返回为准)
+4、step=2用config_id查,即1,4,13,14
+5、step=3权益id指具体采购的权益id,可以认为是采购的主键(权益id 可以通过step=2 获得 )
+*/ +type TaobaoPromotionBenefitSelectorAPIRequest struct { + model.Params + // 权益选择器请求 + _query *BenefitSelectorQuery +} + +// 初始化TaobaoPromotionBenefitSelectorAPIRequest对象 +func NewTaobaoPromotionBenefitSelectorRequest() *TaobaoPromotionBenefitSelectorAPIRequest{ + return &TaobaoPromotionBenefitSelectorAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionBenefitSelectorAPIRequest) GetApiMethodName() string { + return "taobao.promotion.benefit.selector" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionBenefitSelectorAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 权益选择器请求 +func (r *TaobaoPromotionBenefitSelectorAPIRequest) SetQuery(_query *BenefitSelectorQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r TaobaoPromotionBenefitSelectorAPIRequest) GetQuery() *BenefitSelectorQuery { + return r._query +} diff --git a/model/promotion/TaobaoPromotionBenefitSelectorAPIResponse.go b/model/promotion/TaobaoPromotionBenefitSelectorAPIResponse.go new file mode 100644 index 0000000000..2a1e276881 --- /dev/null +++ b/model/promotion/TaobaoPromotionBenefitSelectorAPIResponse.go @@ -0,0 +1,34 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +权益选择器接口 API返回值 +taobao.promotion.benefit.selector + +权益选择器,查询用户已有权益,提供用户进行已拥有权益的选择操作,权益发放的前置操作 +1、目前top的接口只开了1,4,13,14 四种权益, 支付宝红包--1;流量钱包--4;优酷会员--13;彩票-- 14
+2、目前只有"支付宝红包"有"benefit_type": "ALIPAY_COUPON",其它三个没有benefit_type
+3、接口文档中写的 优酷会员卡--2 写错了,正确的是13(已接口返回为准)
+4、step=2用config_id查,即1,4,13,14
+5、step=3权益id指具体采购的权益id,可以认为是采购的主键(权益id 可以通过step=2 获得 )
+*/ +type TaobaoPromotionBenefitSelectorAPIResponse struct { + model.CommonResponse + TaobaoPromotionBenefitSelectorAPIResponseModel +} + +// 权益选择器接口 成功返回结果 +type TaobaoPromotionBenefitSelectorAPIResponseModel struct { + XMLName xml.Name `xml:"promotion_benefit_selector_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 权益列表信息 + BenefitList []BenefitSelectorVo `json:"benefit_list,omitempty" xml:"benefit_list>benefit_selector_vo,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionBenefitSelectorResponse.go b/model/promotion/TaobaoPromotionBenefitSelectorResponse.go deleted file mode 100644 index f766655f8c..0000000000 --- a/model/promotion/TaobaoPromotionBenefitSelectorResponse.go +++ /dev/null @@ -1,34 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -权益选择器接口 API返回值 -taobao.promotion.benefit.selector - -权益选择器,查询用户已有权益,提供用户进行已拥有权益的选择操作,权益发放的前置操作 -1、目前top的接口只开了1,4,13,14 四种权益, 支付宝红包--1;流量钱包--4;优酷会员--13;彩票-- 14
-2、目前只有"支付宝红包"有"benefit_type": "ALIPAY_COUPON",其它三个没有benefit_type
-3、接口文档中写的 优酷会员卡--2 写错了,正确的是13(已接口返回为准)
-4、step=2用config_id查,即1,4,13,14
-5、step=3权益id指具体采购的权益id,可以认为是采购的主键(权益id 可以通过step=2 获得 )
-*/ -type TaobaoPromotionBenefitSelectorAPIResponse struct { - model.CommonResponse - TaobaoPromotionBenefitSelectorResponse -} - -// 权益选择器接口 成功返回结果 -type TaobaoPromotionBenefitSelectorResponse struct { - XMLName xml.Name `xml:"promotion_benefit_selector_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 权益列表信息 - BenefitList []BenefitSelectorVo `json:"benefit_list,omitempty" xml:"benefit_list>benefit_selector_vo,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionCouponAddAPIRequest.go b/model/promotion/TaobaoPromotionCouponAddAPIRequest.go new file mode 100644 index 0000000000..df88d82b3b --- /dev/null +++ b/model/promotion/TaobaoPromotionCouponAddAPIRequest.go @@ -0,0 +1,94 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建店铺优惠券接口 API请求 +taobao.promotion.coupon.add + +创建店铺优惠券。有效期内的店铺优惠券总数量不超过50张 +*/ +type TaobaoPromotionCouponAddAPIRequest struct { + model.Params + // 优惠券的面额,必须是3,5,10,20,50,100 + _denominations int64 + // 优惠券的截止日期 + _endTime string + // 订单满多少元才能用这个优惠券,500就是满500元才能使用 + _condition int64 + // 优惠券的生效时间 + _startTime string +} + +// 初始化TaobaoPromotionCouponAddAPIRequest对象 +func NewTaobaoPromotionCouponAddRequest() *TaobaoPromotionCouponAddAPIRequest{ + return &TaobaoPromotionCouponAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionCouponAddAPIRequest) GetApiMethodName() string { + return "taobao.promotion.coupon.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionCouponAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Denominations Setter +// 优惠券的面额,必须是3,5,10,20,50,100 +func (r *TaobaoPromotionCouponAddAPIRequest) SetDenominations(_denominations int64) error { + r._denominations = _denominations + r.Set("denominations", _denominations) + return nil +} + +// Denominations Getter +func (r TaobaoPromotionCouponAddAPIRequest) GetDenominations() int64 { + return r._denominations +} +// EndTime Setter +// 优惠券的截止日期 +func (r *TaobaoPromotionCouponAddAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoPromotionCouponAddAPIRequest) GetEndTime() string { + return r._endTime +} +// Condition Setter +// 订单满多少元才能用这个优惠券,500就是满500元才能使用 +func (r *TaobaoPromotionCouponAddAPIRequest) SetCondition(_condition int64) error { + r._condition = _condition + r.Set("condition", _condition) + return nil +} + +// Condition Getter +func (r TaobaoPromotionCouponAddAPIRequest) GetCondition() int64 { + return r._condition +} +// StartTime Setter +// 优惠券的生效时间 +func (r *TaobaoPromotionCouponAddAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoPromotionCouponAddAPIRequest) GetStartTime() string { + return r._startTime +} diff --git a/model/promotion/TaobaoPromotionCouponAddAPIResponse.go b/model/promotion/TaobaoPromotionCouponAddAPIResponse.go new file mode 100644 index 0000000000..4ca4830edd --- /dev/null +++ b/model/promotion/TaobaoPromotionCouponAddAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建店铺优惠券接口 API返回值 +taobao.promotion.coupon.add + +创建店铺优惠券。有效期内的店铺优惠券总数量不超过50张 +*/ +type TaobaoPromotionCouponAddAPIResponse struct { + model.CommonResponse + TaobaoPromotionCouponAddAPIResponseModel +} + +// 创建店铺优惠券接口 成功返回结果 +type TaobaoPromotionCouponAddAPIResponseModel struct { + XMLName xml.Name `xml:"promotion_coupon_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 优惠券的id + CouponId int64 `json:"coupon_id,omitempty" xml:"coupon_id,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionCouponAddResponse.go b/model/promotion/TaobaoPromotionCouponAddResponse.go deleted file mode 100644 index 9937285f0b..0000000000 --- a/model/promotion/TaobaoPromotionCouponAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建店铺优惠券接口 API返回值 -taobao.promotion.coupon.add - -创建店铺优惠券。有效期内的店铺优惠券总数量不超过50张 -*/ -type TaobaoPromotionCouponAddAPIResponse struct { - model.CommonResponse - TaobaoPromotionCouponAddResponse -} - -// 创建店铺优惠券接口 成功返回结果 -type TaobaoPromotionCouponAddResponse struct { - XMLName xml.Name `xml:"promotion_coupon_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 优惠券的id - CouponId int64 `json:"coupon_id,omitempty" xml:"coupon_id,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionCouponApplyAPIRequest.go b/model/promotion/TaobaoPromotionCouponApplyAPIRequest.go new file mode 100644 index 0000000000..0366cc205c --- /dev/null +++ b/model/promotion/TaobaoPromotionCouponApplyAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券领取 API请求 +taobao.promotion.coupon.apply + +优惠券领取 +*/ +type TaobaoPromotionCouponApplyAPIRequest struct { + model.Params + // 卖家id + _sellerId string + // 传播id + _spreadId string +} + +// 初始化TaobaoPromotionCouponApplyAPIRequest对象 +func NewTaobaoPromotionCouponApplyRequest() *TaobaoPromotionCouponApplyAPIRequest{ + return &TaobaoPromotionCouponApplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionCouponApplyAPIRequest) GetApiMethodName() string { + return "taobao.promotion.coupon.apply" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionCouponApplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SellerId Setter +// 卖家id +func (r *TaobaoPromotionCouponApplyAPIRequest) SetSellerId(_sellerId string) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r TaobaoPromotionCouponApplyAPIRequest) GetSellerId() string { + return r._sellerId +} +// SpreadId Setter +// 传播id +func (r *TaobaoPromotionCouponApplyAPIRequest) SetSpreadId(_spreadId string) error { + r._spreadId = _spreadId + r.Set("spread_id", _spreadId) + return nil +} + +// SpreadId Getter +func (r TaobaoPromotionCouponApplyAPIRequest) GetSpreadId() string { + return r._spreadId +} diff --git a/model/promotion/TaobaoPromotionCouponApplyAPIResponse.go b/model/promotion/TaobaoPromotionCouponApplyAPIResponse.go new file mode 100644 index 0000000000..b72e758fe8 --- /dev/null +++ b/model/promotion/TaobaoPromotionCouponApplyAPIResponse.go @@ -0,0 +1,33 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠券领取 API返回值 +taobao.promotion.coupon.apply + +优惠券领取 +*/ +type TaobaoPromotionCouponApplyAPIResponse struct { + model.CommonResponse + TaobaoPromotionCouponApplyAPIResponseModel +} + +// 优惠券领取 成功返回结果 +type TaobaoPromotionCouponApplyAPIResponseModel struct { + XMLName xml.Name `xml:"promotion_coupon_apply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 失败详细描述 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 领取结果,领取成功为true,否则为false + ApplyResult bool `json:"apply_result,omitempty" xml:"apply_result,omitempty"` + // 接口调用结果,调用成功为true,否则为false + InvokeResult bool `json:"invoke_result,omitempty" xml:"invoke_result,omitempty"` + // 调用错误码,只有调用失败的时候才会有 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionCouponApplyResponse.go b/model/promotion/TaobaoPromotionCouponApplyResponse.go deleted file mode 100644 index 9c882dbd2b..0000000000 --- a/model/promotion/TaobaoPromotionCouponApplyResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -优惠券领取 API返回值 -taobao.promotion.coupon.apply - -优惠券领取 -*/ -type TaobaoPromotionCouponApplyAPIResponse struct { - model.CommonResponse - TaobaoPromotionCouponApplyResponse -} - -// 优惠券领取 成功返回结果 -type TaobaoPromotionCouponApplyResponse struct { - XMLName xml.Name `xml:"promotion_coupon_apply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 失败详细描述 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 领取结果,领取成功为true,否则为false - ApplyResult bool `json:"apply_result,omitempty" xml:"apply_result,omitempty"` - // 接口调用结果,调用成功为true,否则为false - InvokeResult bool `json:"invoke_result,omitempty" xml:"invoke_result,omitempty"` - // 调用错误码,只有调用失败的时候才会有 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionCouponBuyerSearchAPIRequest.go b/model/promotion/TaobaoPromotionCouponBuyerSearchAPIRequest.go new file mode 100644 index 0000000000..29d76cc766 --- /dev/null +++ b/model/promotion/TaobaoPromotionCouponBuyerSearchAPIRequest.go @@ -0,0 +1,108 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询买家在相关app领取的优惠券信息 API请求 +taobao.promotion.coupon.buyer.search + +查询买家在相关app领取的优惠券信息 +*/ +type TaobaoPromotionCouponBuyerSearchAPIRequest struct { + model.Params + // 卖家昵称 + _sellerNick string + // 券状态 "正常",1 "已删除",-1 "已使用",-2 "冻结",0 + _status int64 + // 每页数据 建议20左右 + _pageSize int64 + // 当前第几页 从第一页开始 + _currentPage int64 + // 结束时间 + _endTime string +} + +// 初始化TaobaoPromotionCouponBuyerSearchAPIRequest对象 +func NewTaobaoPromotionCouponBuyerSearchRequest() *TaobaoPromotionCouponBuyerSearchAPIRequest{ + return &TaobaoPromotionCouponBuyerSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionCouponBuyerSearchAPIRequest) GetApiMethodName() string { + return "taobao.promotion.coupon.buyer.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionCouponBuyerSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SellerNick Setter +// 卖家昵称 +func (r *TaobaoPromotionCouponBuyerSearchAPIRequest) SetSellerNick(_sellerNick string) error { + r._sellerNick = _sellerNick + r.Set("seller_nick", _sellerNick) + return nil +} + +// SellerNick Getter +func (r TaobaoPromotionCouponBuyerSearchAPIRequest) GetSellerNick() string { + return r._sellerNick +} +// Status Setter +// 券状态 "正常",1 "已删除",-1 "已使用",-2 "冻结",0 +func (r *TaobaoPromotionCouponBuyerSearchAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoPromotionCouponBuyerSearchAPIRequest) GetStatus() int64 { + return r._status +} +// PageSize Setter +// 每页数据 建议20左右 +func (r *TaobaoPromotionCouponBuyerSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoPromotionCouponBuyerSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// CurrentPage Setter +// 当前第几页 从第一页开始 +func (r *TaobaoPromotionCouponBuyerSearchAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TaobaoPromotionCouponBuyerSearchAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// EndTime Setter +// 结束时间 +func (r *TaobaoPromotionCouponBuyerSearchAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoPromotionCouponBuyerSearchAPIRequest) GetEndTime() string { + return r._endTime +} diff --git a/model/promotion/TaobaoPromotionCouponBuyerSearchAPIResponse.go b/model/promotion/TaobaoPromotionCouponBuyerSearchAPIResponse.go new file mode 100644 index 0000000000..366c831fe9 --- /dev/null +++ b/model/promotion/TaobaoPromotionCouponBuyerSearchAPIResponse.go @@ -0,0 +1,35 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询买家在相关app领取的优惠券信息 API返回值 +taobao.promotion.coupon.buyer.search + +查询买家在相关app领取的优惠券信息 +*/ +type TaobaoPromotionCouponBuyerSearchAPIResponse struct { + model.CommonResponse + TaobaoPromotionCouponBuyerSearchAPIResponseModel +} + +// 查询买家在相关app领取的优惠券信息 成功返回结果 +type TaobaoPromotionCouponBuyerSearchAPIResponseModel struct { + XMLName xml.Name `xml:"promotion_coupon_buyer_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 调用是否成功 + InvokeResult bool `json:"invoke_result,omitempty" xml:"invoke_result,omitempty"` + // 结果集 + BuyerCouponInfos []BuyerCouponInfo `json:"buyer_coupon_infos,omitempty" xml:"buyer_coupon_infos>buyer_coupon_info,omitempty"` + // 符合条件的总数,用于分页判断 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionCouponBuyerSearchResponse.go b/model/promotion/TaobaoPromotionCouponBuyerSearchResponse.go deleted file mode 100644 index a6d8b54113..0000000000 --- a/model/promotion/TaobaoPromotionCouponBuyerSearchResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询买家在相关app领取的优惠券信息 API返回值 -taobao.promotion.coupon.buyer.search - -查询买家在相关app领取的优惠券信息 -*/ -type TaobaoPromotionCouponBuyerSearchAPIResponse struct { - model.CommonResponse - TaobaoPromotionCouponBuyerSearchResponse -} - -// 查询买家在相关app领取的优惠券信息 成功返回结果 -type TaobaoPromotionCouponBuyerSearchResponse struct { - XMLName xml.Name `xml:"promotion_coupon_buyer_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误信息 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 调用是否成功 - InvokeResult bool `json:"invoke_result,omitempty" xml:"invoke_result,omitempty"` - // 结果集 - BuyerCouponInfos []BuyerCouponInfo `json:"buyer_coupon_infos,omitempty" xml:"buyer_coupon_infos>buyer_coupon_info,omitempty"` - // 符合条件的总数,用于分页判断 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionCouponSellerSearchAPIRequest.go b/model/promotion/TaobaoPromotionCouponSellerSearchAPIRequest.go new file mode 100644 index 0000000000..59f09b2b9f --- /dev/null +++ b/model/promotion/TaobaoPromotionCouponSellerSearchAPIRequest.go @@ -0,0 +1,94 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询绑定卖家优惠券相关信息 API请求 +taobao.promotion.coupon.seller.search + +查询绑定卖家相关优惠券信息 如isv 百川 等外部业务方 +*/ +type TaobaoPromotionCouponSellerSearchAPIRequest struct { + model.Params + // 卖家昵称 + _sellerNick string + // 当前第几页 从第一页开始 + _currentPage int64 + // 每页数据 最大20左右 + _pageSize int64 + // 券id集合 + _spreadIds []string +} + +// 初始化TaobaoPromotionCouponSellerSearchAPIRequest对象 +func NewTaobaoPromotionCouponSellerSearchRequest() *TaobaoPromotionCouponSellerSearchAPIRequest{ + return &TaobaoPromotionCouponSellerSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionCouponSellerSearchAPIRequest) GetApiMethodName() string { + return "taobao.promotion.coupon.seller.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionCouponSellerSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SellerNick Setter +// 卖家昵称 +func (r *TaobaoPromotionCouponSellerSearchAPIRequest) SetSellerNick(_sellerNick string) error { + r._sellerNick = _sellerNick + r.Set("seller_nick", _sellerNick) + return nil +} + +// SellerNick Getter +func (r TaobaoPromotionCouponSellerSearchAPIRequest) GetSellerNick() string { + return r._sellerNick +} +// CurrentPage Setter +// 当前第几页 从第一页开始 +func (r *TaobaoPromotionCouponSellerSearchAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TaobaoPromotionCouponSellerSearchAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// PageSize Setter +// 每页数据 最大20左右 +func (r *TaobaoPromotionCouponSellerSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoPromotionCouponSellerSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// SpreadIds Setter +// 券id集合 +func (r *TaobaoPromotionCouponSellerSearchAPIRequest) SetSpreadIds(_spreadIds []string) error { + r._spreadIds = _spreadIds + r.Set("spread_ids", _spreadIds) + return nil +} + +// SpreadIds Getter +func (r TaobaoPromotionCouponSellerSearchAPIRequest) GetSpreadIds() []string { + return r._spreadIds +} diff --git a/model/promotion/TaobaoPromotionCouponSellerSearchAPIResponse.go b/model/promotion/TaobaoPromotionCouponSellerSearchAPIResponse.go new file mode 100644 index 0000000000..2e50218ca0 --- /dev/null +++ b/model/promotion/TaobaoPromotionCouponSellerSearchAPIResponse.go @@ -0,0 +1,35 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询绑定卖家优惠券相关信息 API返回值 +taobao.promotion.coupon.seller.search + +查询绑定卖家相关优惠券信息 如isv 百川 等外部业务方 +*/ +type TaobaoPromotionCouponSellerSearchAPIResponse struct { + model.CommonResponse + TaobaoPromotionCouponSellerSearchAPIResponseModel +} + +// 查询绑定卖家优惠券相关信息 成功返回结果 +type TaobaoPromotionCouponSellerSearchAPIResponseModel struct { + XMLName xml.Name `xml:"promotion_coupon_seller_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用错误码,只有调用失败的时候才会有 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 失败详细描述 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 接口调用结果,调用成功为true,否则为false + InvokeResult bool `json:"invoke_result,omitempty" xml:"invoke_result,omitempty"` + // 结果 + SellerCouponDetails []SellerCouponDetail `json:"seller_coupon_details,omitempty" xml:"seller_coupon_details>seller_coupon_detail,omitempty"` + // 符合条件总数量,用于分页等判断 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionCouponSellerSearchResponse.go b/model/promotion/TaobaoPromotionCouponSellerSearchResponse.go deleted file mode 100644 index 9b80d4178c..0000000000 --- a/model/promotion/TaobaoPromotionCouponSellerSearchResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询绑定卖家优惠券相关信息 API返回值 -taobao.promotion.coupon.seller.search - -查询绑定卖家相关优惠券信息 如isv 百川 等外部业务方 -*/ -type TaobaoPromotionCouponSellerSearchAPIResponse struct { - model.CommonResponse - TaobaoPromotionCouponSellerSearchResponse -} - -// 查询绑定卖家优惠券相关信息 成功返回结果 -type TaobaoPromotionCouponSellerSearchResponse struct { - XMLName xml.Name `xml:"promotion_coupon_seller_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用错误码,只有调用失败的时候才会有 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 失败详细描述 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 接口调用结果,调用成功为true,否则为false - InvokeResult bool `json:"invoke_result,omitempty" xml:"invoke_result,omitempty"` - // 结果 - SellerCouponDetails []SellerCouponDetail `json:"seller_coupon_details,omitempty" xml:"seller_coupon_details>seller_coupon_detail,omitempty"` - // 符合条件总数量,用于分页等判断 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionCouponSendAPIRequest.go b/model/promotion/TaobaoPromotionCouponSendAPIRequest.go new file mode 100644 index 0000000000..9477c9c849 --- /dev/null +++ b/model/promotion/TaobaoPromotionCouponSendAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +店铺优惠券发放接口 API请求 +taobao.promotion.coupon.send + +通过接口批量发放店铺优惠券(每次只能发送100张,只能发给当前授权卖家店铺的会员),发送成功则返回为空,发送失败则返回失败的买家列表和发送成功的买家和优惠券的number。注:如果所有买家都发放失败的话,is_success也为true,建议调用者根据返回的集合判断是否送入的买家都发放成功了 +*/ +type TaobaoPromotionCouponSendAPIRequest struct { + model.Params + // 优惠券的id + _couponId int64 + // 买家昵称用半角','号分割 + _buyerNick []string +} + +// 初始化TaobaoPromotionCouponSendAPIRequest对象 +func NewTaobaoPromotionCouponSendRequest() *TaobaoPromotionCouponSendAPIRequest{ + return &TaobaoPromotionCouponSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionCouponSendAPIRequest) GetApiMethodName() string { + return "taobao.promotion.coupon.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionCouponSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CouponId Setter +// 优惠券的id +func (r *TaobaoPromotionCouponSendAPIRequest) SetCouponId(_couponId int64) error { + r._couponId = _couponId + r.Set("coupon_id", _couponId) + return nil +} + +// CouponId Getter +func (r TaobaoPromotionCouponSendAPIRequest) GetCouponId() int64 { + return r._couponId +} +// BuyerNick Setter +// 买家昵称用半角','号分割 +func (r *TaobaoPromotionCouponSendAPIRequest) SetBuyerNick(_buyerNick []string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoPromotionCouponSendAPIRequest) GetBuyerNick() []string { + return r._buyerNick +} diff --git a/model/promotion/TaobaoPromotionCouponSendAPIResponse.go b/model/promotion/TaobaoPromotionCouponSendAPIResponse.go new file mode 100644 index 0000000000..ad3d49fdc2 --- /dev/null +++ b/model/promotion/TaobaoPromotionCouponSendAPIResponse.go @@ -0,0 +1,31 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +店铺优惠券发放接口 API返回值 +taobao.promotion.coupon.send + +通过接口批量发放店铺优惠券(每次只能发送100张,只能发给当前授权卖家店铺的会员),发送成功则返回为空,发送失败则返回失败的买家列表和发送成功的买家和优惠券的number。注:如果所有买家都发放失败的话,is_success也为true,建议调用者根据返回的集合判断是否送入的买家都发放成功了 +*/ +type TaobaoPromotionCouponSendAPIResponse struct { + model.CommonResponse + TaobaoPromotionCouponSendAPIResponseModel +} + +// 店铺优惠券发放接口 成功返回结果 +type TaobaoPromotionCouponSendAPIResponseModel struct { + XMLName xml.Name `xml:"promotion_coupon_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true 成功,false失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 没有发送成功的买家 + FailureBuyers []ErrorMessage `json:"failure_buyers,omitempty" xml:"failure_buyers>error_message,omitempty"` + // 发送成功的买家的昵称和优惠券的number + CouponResults []CouponResult `json:"coupon_results,omitempty" xml:"coupon_results>coupon_result,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionCouponSendResponse.go b/model/promotion/TaobaoPromotionCouponSendResponse.go deleted file mode 100644 index 74085733f7..0000000000 --- a/model/promotion/TaobaoPromotionCouponSendResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -店铺优惠券发放接口 API返回值 -taobao.promotion.coupon.send - -通过接口批量发放店铺优惠券(每次只能发送100张,只能发给当前授权卖家店铺的会员),发送成功则返回为空,发送失败则返回失败的买家列表和发送成功的买家和优惠券的number。注:如果所有买家都发放失败的话,is_success也为true,建议调用者根据返回的集合判断是否送入的买家都发放成功了 -*/ -type TaobaoPromotionCouponSendAPIResponse struct { - model.CommonResponse - TaobaoPromotionCouponSendResponse -} - -// 店铺优惠券发放接口 成功返回结果 -type TaobaoPromotionCouponSendResponse struct { - XMLName xml.Name `xml:"promotion_coupon_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true 成功,false失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 没有发送成功的买家 - FailureBuyers []ErrorMessage `json:"failure_buyers,omitempty" xml:"failure_buyers>error_message,omitempty"` - // 发送成功的买家的昵称和优惠券的number - CouponResults []CouponResult `json:"coupon_results,omitempty" xml:"coupon_results>coupon_result,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionCouponSnsSendAPIRequest.go b/model/promotion/TaobaoPromotionCouponSnsSendAPIRequest.go new file mode 100644 index 0000000000..f18ee073be --- /dev/null +++ b/model/promotion/TaobaoPromotionCouponSnsSendAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +微淘粉丝店铺优惠券发放接口 API请求 +taobao.promotion.coupon.sns.send + +通过接口批量发放店铺优惠券(每次只能发送100张,只能发给当前授权卖家店铺的微淘粉丝),发送成功则返回为空,发送失败则返回失败的买家列表和发送成功的买家和优惠券的number。注:如果所有买家都发放失败的话,is_success也为true,建议调用者根据返回的集合判断是否送入的买家都发放成功了 +*/ +type TaobaoPromotionCouponSnsSendAPIRequest struct { + model.Params + // 优惠券的id + _couponId int64 + // 买家昵称用半角','号分割 + _buyerNick []string +} + +// 初始化TaobaoPromotionCouponSnsSendAPIRequest对象 +func NewTaobaoPromotionCouponSnsSendRequest() *TaobaoPromotionCouponSnsSendAPIRequest{ + return &TaobaoPromotionCouponSnsSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionCouponSnsSendAPIRequest) GetApiMethodName() string { + return "taobao.promotion.coupon.sns.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionCouponSnsSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CouponId Setter +// 优惠券的id +func (r *TaobaoPromotionCouponSnsSendAPIRequest) SetCouponId(_couponId int64) error { + r._couponId = _couponId + r.Set("coupon_id", _couponId) + return nil +} + +// CouponId Getter +func (r TaobaoPromotionCouponSnsSendAPIRequest) GetCouponId() int64 { + return r._couponId +} +// BuyerNick Setter +// 买家昵称用半角','号分割 +func (r *TaobaoPromotionCouponSnsSendAPIRequest) SetBuyerNick(_buyerNick []string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoPromotionCouponSnsSendAPIRequest) GetBuyerNick() []string { + return r._buyerNick +} diff --git a/model/promotion/TaobaoPromotionCouponSnsSendAPIResponse.go b/model/promotion/TaobaoPromotionCouponSnsSendAPIResponse.go new file mode 100644 index 0000000000..8ea4dab6ec --- /dev/null +++ b/model/promotion/TaobaoPromotionCouponSnsSendAPIResponse.go @@ -0,0 +1,29 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +微淘粉丝店铺优惠券发放接口 API返回值 +taobao.promotion.coupon.sns.send + +通过接口批量发放店铺优惠券(每次只能发送100张,只能发给当前授权卖家店铺的微淘粉丝),发送成功则返回为空,发送失败则返回失败的买家列表和发送成功的买家和优惠券的number。注:如果所有买家都发放失败的话,is_success也为true,建议调用者根据返回的集合判断是否送入的买家都发放成功了 +*/ +type TaobaoPromotionCouponSnsSendAPIResponse struct { + model.CommonResponse + TaobaoPromotionCouponSnsSendAPIResponseModel +} + +// 微淘粉丝店铺优惠券发放接口 成功返回结果 +type TaobaoPromotionCouponSnsSendAPIResponseModel struct { + XMLName xml.Name `xml:"promotion_coupon_sns_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 没有发送成功的买家 + FailureBuyers []ErrorMessage `json:"failure_buyers,omitempty" xml:"failure_buyers>error_message,omitempty"` + // 发送成功的买家的昵称和优惠券的number + CouponResults []CouponResult `json:"coupon_results,omitempty" xml:"coupon_results>coupon_result,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionCouponSnsSendResponse.go b/model/promotion/TaobaoPromotionCouponSnsSendResponse.go deleted file mode 100644 index a7f2dc237a..0000000000 --- a/model/promotion/TaobaoPromotionCouponSnsSendResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -微淘粉丝店铺优惠券发放接口 API返回值 -taobao.promotion.coupon.sns.send - -通过接口批量发放店铺优惠券(每次只能发送100张,只能发给当前授权卖家店铺的微淘粉丝),发送成功则返回为空,发送失败则返回失败的买家列表和发送成功的买家和优惠券的number。注:如果所有买家都发放失败的话,is_success也为true,建议调用者根据返回的集合判断是否送入的买家都发放成功了 -*/ -type TaobaoPromotionCouponSnsSendAPIResponse struct { - model.CommonResponse - TaobaoPromotionCouponSnsSendResponse -} - -// 微淘粉丝店铺优惠券发放接口 成功返回结果 -type TaobaoPromotionCouponSnsSendResponse struct { - XMLName xml.Name `xml:"promotion_coupon_sns_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 没有发送成功的买家 - FailureBuyers []ErrorMessage `json:"failure_buyers,omitempty" xml:"failure_buyers>error_message,omitempty"` - // 发送成功的买家的昵称和优惠券的number - CouponResults []CouponResult `json:"coupon_results,omitempty" xml:"coupon_results>coupon_result,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionCouponsGetAPIRequest.go b/model/promotion/TaobaoPromotionCouponsGetAPIRequest.go new file mode 100644 index 0000000000..1c4e11c8e7 --- /dev/null +++ b/model/promotion/TaobaoPromotionCouponsGetAPIRequest.go @@ -0,0 +1,108 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家优惠券 API请求 +taobao.promotion.coupons.get + +查询卖家已经创建的优惠券,接口返回信息:优惠券ID,面值,创建时间,有效期,使用条件,使用渠道,创建渠道,优惠券总数量 +*/ +type TaobaoPromotionCouponsGetAPIRequest struct { + model.Params + // 优惠券的id,唯一标识这个优惠券 + _couponId int64 + // 优惠券的截止日期 + _endTime string + // 优惠券的面额,必须是3,5,10,20,50,100 + _denominations int64 + // 查询的页号,结果集是分页返回的,每页20条 + _pageNo int64 + // 每页条数 + _pageSize int64 +} + +// 初始化TaobaoPromotionCouponsGetAPIRequest对象 +func NewTaobaoPromotionCouponsGetRequest() *TaobaoPromotionCouponsGetAPIRequest{ + return &TaobaoPromotionCouponsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionCouponsGetAPIRequest) GetApiMethodName() string { + return "taobao.promotion.coupons.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionCouponsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CouponId Setter +// 优惠券的id,唯一标识这个优惠券 +func (r *TaobaoPromotionCouponsGetAPIRequest) SetCouponId(_couponId int64) error { + r._couponId = _couponId + r.Set("coupon_id", _couponId) + return nil +} + +// CouponId Getter +func (r TaobaoPromotionCouponsGetAPIRequest) GetCouponId() int64 { + return r._couponId +} +// EndTime Setter +// 优惠券的截止日期 +func (r *TaobaoPromotionCouponsGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoPromotionCouponsGetAPIRequest) GetEndTime() string { + return r._endTime +} +// Denominations Setter +// 优惠券的面额,必须是3,5,10,20,50,100 +func (r *TaobaoPromotionCouponsGetAPIRequest) SetDenominations(_denominations int64) error { + r._denominations = _denominations + r.Set("denominations", _denominations) + return nil +} + +// Denominations Getter +func (r TaobaoPromotionCouponsGetAPIRequest) GetDenominations() int64 { + return r._denominations +} +// PageNo Setter +// 查询的页号,结果集是分页返回的,每页20条 +func (r *TaobaoPromotionCouponsGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoPromotionCouponsGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数 +func (r *TaobaoPromotionCouponsGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoPromotionCouponsGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/promotion/TaobaoPromotionCouponsGetAPIResponse.go b/model/promotion/TaobaoPromotionCouponsGetAPIResponse.go new file mode 100644 index 0000000000..188f6aa809 --- /dev/null +++ b/model/promotion/TaobaoPromotionCouponsGetAPIResponse.go @@ -0,0 +1,29 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家优惠券 API返回值 +taobao.promotion.coupons.get + +查询卖家已经创建的优惠券,接口返回信息:优惠券ID,面值,创建时间,有效期,使用条件,使用渠道,创建渠道,优惠券总数量 +*/ +type TaobaoPromotionCouponsGetAPIResponse struct { + model.CommonResponse + TaobaoPromotionCouponsGetAPIResponseModel +} + +// 查询卖家优惠券 成功返回结果 +type TaobaoPromotionCouponsGetAPIResponseModel struct { + XMLName xml.Name `xml:"promotion_coupons_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询的总数量 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 优惠券列表 + Coupons []Coupon `json:"coupons,omitempty" xml:"coupons>coupon,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionCouponsGetResponse.go b/model/promotion/TaobaoPromotionCouponsGetResponse.go deleted file mode 100644 index 82ddd08638..0000000000 --- a/model/promotion/TaobaoPromotionCouponsGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询卖家优惠券 API返回值 -taobao.promotion.coupons.get - -查询卖家已经创建的优惠券,接口返回信息:优惠券ID,面值,创建时间,有效期,使用条件,使用渠道,创建渠道,优惠券总数量 -*/ -type TaobaoPromotionCouponsGetAPIResponse struct { - model.CommonResponse - TaobaoPromotionCouponsGetResponse -} - -// 查询卖家优惠券 成功返回结果 -type TaobaoPromotionCouponsGetResponse struct { - XMLName xml.Name `xml:"promotion_coupons_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询的总数量 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 优惠券列表 - Coupons []Coupon `json:"coupons,omitempty" xml:"coupons>coupon,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionLimitdiscountDetailGetAPIRequest.go b/model/promotion/TaobaoPromotionLimitdiscountDetailGetAPIRequest.go new file mode 100644 index 0000000000..5ca3fb0270 --- /dev/null +++ b/model/promotion/TaobaoPromotionLimitdiscountDetailGetAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +限时打折详情查询 API请求 +taobao.promotion.limitdiscount.detail.get + +限时打折详情查询。查询出指定限时打折的对应商品记录信息。 +*/ +type TaobaoPromotionLimitdiscountDetailGetAPIRequest struct { + model.Params + // 限时打折ID。这个针对查询唯一限时打折情况。 + _limitDiscountId int64 +} + +// 初始化TaobaoPromotionLimitdiscountDetailGetAPIRequest对象 +func NewTaobaoPromotionLimitdiscountDetailGetRequest() *TaobaoPromotionLimitdiscountDetailGetAPIRequest{ + return &TaobaoPromotionLimitdiscountDetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionLimitdiscountDetailGetAPIRequest) GetApiMethodName() string { + return "taobao.promotion.limitdiscount.detail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionLimitdiscountDetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LimitDiscountId Setter +// 限时打折ID。这个针对查询唯一限时打折情况。 +func (r *TaobaoPromotionLimitdiscountDetailGetAPIRequest) SetLimitDiscountId(_limitDiscountId int64) error { + r._limitDiscountId = _limitDiscountId + r.Set("limit_discount_id", _limitDiscountId) + return nil +} + +// LimitDiscountId Getter +func (r TaobaoPromotionLimitdiscountDetailGetAPIRequest) GetLimitDiscountId() int64 { + return r._limitDiscountId +} diff --git a/model/promotion/TaobaoPromotionLimitdiscountDetailGetAPIResponse.go b/model/promotion/TaobaoPromotionLimitdiscountDetailGetAPIResponse.go new file mode 100644 index 0000000000..eb873f7a5e --- /dev/null +++ b/model/promotion/TaobaoPromotionLimitdiscountDetailGetAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +限时打折详情查询 API返回值 +taobao.promotion.limitdiscount.detail.get + +限时打折详情查询。查询出指定限时打折的对应商品记录信息。 +*/ +type TaobaoPromotionLimitdiscountDetailGetAPIResponse struct { + model.CommonResponse + TaobaoPromotionLimitdiscountDetailGetAPIResponseModel +} + +// 限时打折详情查询 成功返回结果 +type TaobaoPromotionLimitdiscountDetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"promotion_limitdiscount_detail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 限时打折对应的商品详情列表。 + ItemDiscountDetailList []LimitDiscountDetail `json:"item_discount_detail_list,omitempty" xml:"item_discount_detail_list>limit_discount_detail,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionLimitdiscountDetailGetResponse.go b/model/promotion/TaobaoPromotionLimitdiscountDetailGetResponse.go deleted file mode 100644 index 8902fd693d..0000000000 --- a/model/promotion/TaobaoPromotionLimitdiscountDetailGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -限时打折详情查询 API返回值 -taobao.promotion.limitdiscount.detail.get - -限时打折详情查询。查询出指定限时打折的对应商品记录信息。 -*/ -type TaobaoPromotionLimitdiscountDetailGetAPIResponse struct { - model.CommonResponse - TaobaoPromotionLimitdiscountDetailGetResponse -} - -// 限时打折详情查询 成功返回结果 -type TaobaoPromotionLimitdiscountDetailGetResponse struct { - XMLName xml.Name `xml:"promotion_limitdiscount_detail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 限时打折对应的商品详情列表。 - ItemDiscountDetailList []LimitDiscountDetail `json:"item_discount_detail_list,omitempty" xml:"item_discount_detail_list>limit_discount_detail,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionLimitdiscountGetAPIRequest.go b/model/promotion/TaobaoPromotionLimitdiscountGetAPIRequest.go new file mode 100644 index 0000000000..c50984c3e2 --- /dev/null +++ b/model/promotion/TaobaoPromotionLimitdiscountGetAPIRequest.go @@ -0,0 +1,108 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +限时打折查询 API请求 +taobao.promotion.limitdiscount.get + +分页查询某个卖家的限时打折信息。每页20条数据,按照结束时间降序排列。也可指定某一个限时打折id查询唯一的限时打折信息。 +*/ +type TaobaoPromotionLimitdiscountGetAPIRequest struct { + model.Params + // 限时打折ID。这个针对查询唯一限时打折情况。若此字段不为空,则说明操作为单条限时打折记录查询,其他字段忽略。若想分页按条件查询,这个字段置为空。 + _limitDiscountId int64 + // 限时打折活动状态。ALL:全部状态;OVER:已结束;DOING:进行中;PROPARE:未开始(只支持大写)。当limit_discount_id为空时,为空时,默认为全部的状态。 + _status string + // 限时打折开始时间。输入的时间会被截取,年月日有效,时分秒忽略。 + _startTime string + // 限时打折结束时间。输入的时间会被截取,年月日有效,时分秒忽略。 + _endTime string + // 分页页号。默认1。当页数大于最大页数时,结果为最大页数的数据。 + _pageNumber int64 +} + +// 初始化TaobaoPromotionLimitdiscountGetAPIRequest对象 +func NewTaobaoPromotionLimitdiscountGetRequest() *TaobaoPromotionLimitdiscountGetAPIRequest{ + return &TaobaoPromotionLimitdiscountGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionLimitdiscountGetAPIRequest) GetApiMethodName() string { + return "taobao.promotion.limitdiscount.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionLimitdiscountGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LimitDiscountId Setter +// 限时打折ID。这个针对查询唯一限时打折情况。若此字段不为空,则说明操作为单条限时打折记录查询,其他字段忽略。若想分页按条件查询,这个字段置为空。 +func (r *TaobaoPromotionLimitdiscountGetAPIRequest) SetLimitDiscountId(_limitDiscountId int64) error { + r._limitDiscountId = _limitDiscountId + r.Set("limit_discount_id", _limitDiscountId) + return nil +} + +// LimitDiscountId Getter +func (r TaobaoPromotionLimitdiscountGetAPIRequest) GetLimitDiscountId() int64 { + return r._limitDiscountId +} +// Status Setter +// 限时打折活动状态。ALL:全部状态;OVER:已结束;DOING:进行中;PROPARE:未开始(只支持大写)。当limit_discount_id为空时,为空时,默认为全部的状态。 +func (r *TaobaoPromotionLimitdiscountGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoPromotionLimitdiscountGetAPIRequest) GetStatus() string { + return r._status +} +// StartTime Setter +// 限时打折开始时间。输入的时间会被截取,年月日有效,时分秒忽略。 +func (r *TaobaoPromotionLimitdiscountGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoPromotionLimitdiscountGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 限时打折结束时间。输入的时间会被截取,年月日有效,时分秒忽略。 +func (r *TaobaoPromotionLimitdiscountGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoPromotionLimitdiscountGetAPIRequest) GetEndTime() string { + return r._endTime +} +// PageNumber Setter +// 分页页号。默认1。当页数大于最大页数时,结果为最大页数的数据。 +func (r *TaobaoPromotionLimitdiscountGetAPIRequest) SetPageNumber(_pageNumber int64) error { + r._pageNumber = _pageNumber + r.Set("page_number", _pageNumber) + return nil +} + +// PageNumber Getter +func (r TaobaoPromotionLimitdiscountGetAPIRequest) GetPageNumber() int64 { + return r._pageNumber +} diff --git a/model/promotion/TaobaoPromotionLimitdiscountGetAPIResponse.go b/model/promotion/TaobaoPromotionLimitdiscountGetAPIResponse.go new file mode 100644 index 0000000000..accbf9f18d --- /dev/null +++ b/model/promotion/TaobaoPromotionLimitdiscountGetAPIResponse.go @@ -0,0 +1,29 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +限时打折查询 API返回值 +taobao.promotion.limitdiscount.get + +分页查询某个卖家的限时打折信息。每页20条数据,按照结束时间降序排列。也可指定某一个限时打折id查询唯一的限时打折信息。 +*/ +type TaobaoPromotionLimitdiscountGetAPIResponse struct { + model.CommonResponse + TaobaoPromotionLimitdiscountGetAPIResponseModel +} + +// 限时打折查询 成功返回结果 +type TaobaoPromotionLimitdiscountGetAPIResponseModel struct { + XMLName xml.Name `xml:"promotion_limitdiscount_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 满足该查询条件的限时打折总数量。 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 限时打折列表。 + LimitDiscountList []LimitDiscount `json:"limit_discount_list,omitempty" xml:"limit_discount_list>limit_discount,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionLimitdiscountGetResponse.go b/model/promotion/TaobaoPromotionLimitdiscountGetResponse.go deleted file mode 100644 index 3ba127670a..0000000000 --- a/model/promotion/TaobaoPromotionLimitdiscountGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -限时打折查询 API返回值 -taobao.promotion.limitdiscount.get - -分页查询某个卖家的限时打折信息。每页20条数据,按照结束时间降序排列。也可指定某一个限时打折id查询唯一的限时打折信息。 -*/ -type TaobaoPromotionLimitdiscountGetAPIResponse struct { - model.CommonResponse - TaobaoPromotionLimitdiscountGetResponse -} - -// 限时打折查询 成功返回结果 -type TaobaoPromotionLimitdiscountGetResponse struct { - XMLName xml.Name `xml:"promotion_limitdiscount_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 满足该查询条件的限时打折总数量。 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 限时打折列表。 - LimitDiscountList []LimitDiscount `json:"limit_discount_list,omitempty" xml:"limit_discount_list>limit_discount,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionMealGetAPIRequest.go b/model/promotion/TaobaoPromotionMealGetAPIRequest.go new file mode 100644 index 0000000000..5a0b0f1ff4 --- /dev/null +++ b/model/promotion/TaobaoPromotionMealGetAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +搭配套餐查询 API请求 +taobao.promotion.meal.get + +搭配套餐查询。每个卖家最多创建50个搭配套餐,所以查询不会分页,会将所有的满足状态的搭配套餐全部查出。该接口不会校验商品的下架或库存为0,查询结果的状态表明搭配套餐在数据库中的状态,商品的状态请isv自己验证。在卖家后台页面点击查看会触发数据库状态的修改。 +*/ +type TaobaoPromotionMealGetAPIRequest struct { + model.Params + // 搭配套餐id + _mealId int64 + // 套餐状态。有效:VALID;失效:INVALID(有效套餐为可使用的套餐,无效套餐为套餐中有商品下架或库存为0时)。默认时两种情况都会查询。 + _status string +} + +// 初始化TaobaoPromotionMealGetAPIRequest对象 +func NewTaobaoPromotionMealGetRequest() *TaobaoPromotionMealGetAPIRequest{ + return &TaobaoPromotionMealGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionMealGetAPIRequest) GetApiMethodName() string { + return "taobao.promotion.meal.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionMealGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MealId Setter +// 搭配套餐id +func (r *TaobaoPromotionMealGetAPIRequest) SetMealId(_mealId int64) error { + r._mealId = _mealId + r.Set("meal_id", _mealId) + return nil +} + +// MealId Getter +func (r TaobaoPromotionMealGetAPIRequest) GetMealId() int64 { + return r._mealId +} +// Status Setter +// 套餐状态。有效:VALID;失效:INVALID(有效套餐为可使用的套餐,无效套餐为套餐中有商品下架或库存为0时)。默认时两种情况都会查询。 +func (r *TaobaoPromotionMealGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoPromotionMealGetAPIRequest) GetStatus() string { + return r._status +} diff --git a/model/promotion/TaobaoPromotionMealGetAPIResponse.go b/model/promotion/TaobaoPromotionMealGetAPIResponse.go new file mode 100644 index 0000000000..872dd06d4a --- /dev/null +++ b/model/promotion/TaobaoPromotionMealGetAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +搭配套餐查询 API返回值 +taobao.promotion.meal.get + +搭配套餐查询。每个卖家最多创建50个搭配套餐,所以查询不会分页,会将所有的满足状态的搭配套餐全部查出。该接口不会校验商品的下架或库存为0,查询结果的状态表明搭配套餐在数据库中的状态,商品的状态请isv自己验证。在卖家后台页面点击查看会触发数据库状态的修改。 +*/ +type TaobaoPromotionMealGetAPIResponse struct { + model.CommonResponse + TaobaoPromotionMealGetAPIResponseModel +} + +// 搭配套餐查询 成功返回结果 +type TaobaoPromotionMealGetAPIResponseModel struct { + XMLName xml.Name `xml:"promotion_meal_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 搭配套餐列表。 + MealList []Meal `json:"meal_list,omitempty" xml:"meal_list>meal,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionMealGetResponse.go b/model/promotion/TaobaoPromotionMealGetResponse.go deleted file mode 100644 index 541186e017..0000000000 --- a/model/promotion/TaobaoPromotionMealGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -搭配套餐查询 API返回值 -taobao.promotion.meal.get - -搭配套餐查询。每个卖家最多创建50个搭配套餐,所以查询不会分页,会将所有的满足状态的搭配套餐全部查出。该接口不会校验商品的下架或库存为0,查询结果的状态表明搭配套餐在数据库中的状态,商品的状态请isv自己验证。在卖家后台页面点击查看会触发数据库状态的修改。 -*/ -type TaobaoPromotionMealGetAPIResponse struct { - model.CommonResponse - TaobaoPromotionMealGetResponse -} - -// 搭配套餐查询 成功返回结果 -type TaobaoPromotionMealGetResponse struct { - XMLName xml.Name `xml:"promotion_meal_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 搭配套餐列表。 - MealList []Meal `json:"meal_list,omitempty" xml:"meal_list>meal,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscActivityRangeAddAPIRequest.go b/model/promotion/TaobaoPromotionmiscActivityRangeAddAPIRequest.go new file mode 100644 index 0000000000..683925f0c4 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscActivityRangeAddAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +增加活动参与的商品 API请求 +taobao.promotionmisc.activity.range.add + +增加活动参与的商品,部分商品参与的活动,最大支持指定150个商品。 +*/ +type TaobaoPromotionmiscActivityRangeAddAPIRequest struct { + model.Params + // 活动id。 + _activityId int64 + // 商品id,多个id用逗号隔开,一次不超过50个。 + _ids string +} + +// 初始化TaobaoPromotionmiscActivityRangeAddAPIRequest对象 +func NewTaobaoPromotionmiscActivityRangeAddRequest() *TaobaoPromotionmiscActivityRangeAddAPIRequest{ + return &TaobaoPromotionmiscActivityRangeAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscActivityRangeAddAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.activity.range.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscActivityRangeAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 活动id。 +func (r *TaobaoPromotionmiscActivityRangeAddAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoPromotionmiscActivityRangeAddAPIRequest) GetActivityId() int64 { + return r._activityId +} +// Ids Setter +// 商品id,多个id用逗号隔开,一次不超过50个。 +func (r *TaobaoPromotionmiscActivityRangeAddAPIRequest) SetIds(_ids string) error { + r._ids = _ids + r.Set("ids", _ids) + return nil +} + +// Ids Getter +func (r TaobaoPromotionmiscActivityRangeAddAPIRequest) GetIds() string { + return r._ids +} diff --git a/model/promotion/TaobaoPromotionmiscActivityRangeAddAPIResponse.go b/model/promotion/TaobaoPromotionmiscActivityRangeAddAPIResponse.go new file mode 100644 index 0000000000..e065dea219 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscActivityRangeAddAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +增加活动参与的商品 API返回值 +taobao.promotionmisc.activity.range.add + +增加活动参与的商品,部分商品参与的活动,最大支持指定150个商品。 +*/ +type TaobaoPromotionmiscActivityRangeAddAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscActivityRangeAddAPIResponseModel +} + +// 增加活动参与的商品 成功返回结果 +type TaobaoPromotionmiscActivityRangeAddAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_activity_range_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 增加商品范围是否成功。 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscActivityRangeAddResponse.go b/model/promotion/TaobaoPromotionmiscActivityRangeAddResponse.go deleted file mode 100644 index 19ef43200e..0000000000 --- a/model/promotion/TaobaoPromotionmiscActivityRangeAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -增加活动参与的商品 API返回值 -taobao.promotionmisc.activity.range.add - -增加活动参与的商品,部分商品参与的活动,最大支持指定150个商品。 -*/ -type TaobaoPromotionmiscActivityRangeAddAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscActivityRangeAddResponse -} - -// 增加活动参与的商品 成功返回结果 -type TaobaoPromotionmiscActivityRangeAddResponse struct { - XMLName xml.Name `xml:"promotionmisc_activity_range_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 增加商品范围是否成功。 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest.go b/model/promotion/TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest.go new file mode 100644 index 0000000000..63a527f51a --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +清空活动参与的商品 API请求 +taobao.promotionmisc.activity.range.all.remove + +清空活动参与的商品 +*/ +type TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest struct { + model.Params + // 活动id。 + _activityId int64 +} + +// 初始化TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest对象 +func NewTaobaoPromotionmiscActivityRangeAllRemoveRequest() *TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest{ + return &TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.activity.range.all.remove" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 活动id。 +func (r *TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest) GetActivityId() int64 { + return r._activityId +} diff --git a/model/promotion/TaobaoPromotionmiscActivityRangeAllRemoveAPIResponse.go b/model/promotion/TaobaoPromotionmiscActivityRangeAllRemoveAPIResponse.go new file mode 100644 index 0000000000..b47cf770e1 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscActivityRangeAllRemoveAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +清空活动参与的商品 API返回值 +taobao.promotionmisc.activity.range.all.remove + +清空活动参与的商品 +*/ +type TaobaoPromotionmiscActivityRangeAllRemoveAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscActivityRangeAllRemoveAPIResponseModel +} + +// 清空活动参与的商品 成功返回结果 +type TaobaoPromotionmiscActivityRangeAllRemoveAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_activity_range_all_remove_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 清空活动参与商品是否成功。 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscActivityRangeAllRemoveResponse.go b/model/promotion/TaobaoPromotionmiscActivityRangeAllRemoveResponse.go deleted file mode 100644 index bbc27fb86c..0000000000 --- a/model/promotion/TaobaoPromotionmiscActivityRangeAllRemoveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -清空活动参与的商品 API返回值 -taobao.promotionmisc.activity.range.all.remove - -清空活动参与的商品 -*/ -type TaobaoPromotionmiscActivityRangeAllRemoveAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscActivityRangeAllRemoveResponse -} - -// 清空活动参与的商品 成功返回结果 -type TaobaoPromotionmiscActivityRangeAllRemoveResponse struct { - XMLName xml.Name `xml:"promotionmisc_activity_range_all_remove_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 清空活动参与商品是否成功。 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscActivityRangeListGetAPIRequest.go b/model/promotion/TaobaoPromotionmiscActivityRangeListGetAPIRequest.go new file mode 100644 index 0000000000..33a5ea08fc --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscActivityRangeListGetAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询活动参与的商品 API请求 +taobao.promotionmisc.activity.range.list.get + +查询活动参与的商品 +*/ +type TaobaoPromotionmiscActivityRangeListGetAPIRequest struct { + model.Params + // 活动id + _activityId int64 +} + +// 初始化TaobaoPromotionmiscActivityRangeListGetAPIRequest对象 +func NewTaobaoPromotionmiscActivityRangeListGetRequest() *TaobaoPromotionmiscActivityRangeListGetAPIRequest{ + return &TaobaoPromotionmiscActivityRangeListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscActivityRangeListGetAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.activity.range.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscActivityRangeListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 活动id +func (r *TaobaoPromotionmiscActivityRangeListGetAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoPromotionmiscActivityRangeListGetAPIRequest) GetActivityId() int64 { + return r._activityId +} diff --git a/model/promotion/TaobaoPromotionmiscActivityRangeListGetAPIResponse.go b/model/promotion/TaobaoPromotionmiscActivityRangeListGetAPIResponse.go new file mode 100644 index 0000000000..cf943274cd --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscActivityRangeListGetAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询活动参与的商品 API返回值 +taobao.promotionmisc.activity.range.list.get + +查询活动参与的商品 +*/ +type TaobaoPromotionmiscActivityRangeListGetAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscActivityRangeListGetAPIResponseModel +} + +// 查询活动参与的商品 成功返回结果 +type TaobaoPromotionmiscActivityRangeListGetAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_activity_range_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 活动参与的商品列表 + PromotionRangeList []PromotionRange `json:"promotion_range_list,omitempty" xml:"promotion_range_list>promotion_range,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscActivityRangeListGetResponse.go b/model/promotion/TaobaoPromotionmiscActivityRangeListGetResponse.go deleted file mode 100644 index decf04dbfe..0000000000 --- a/model/promotion/TaobaoPromotionmiscActivityRangeListGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询活动参与的商品 API返回值 -taobao.promotionmisc.activity.range.list.get - -查询活动参与的商品 -*/ -type TaobaoPromotionmiscActivityRangeListGetAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscActivityRangeListGetResponse -} - -// 查询活动参与的商品 成功返回结果 -type TaobaoPromotionmiscActivityRangeListGetResponse struct { - XMLName xml.Name `xml:"promotionmisc_activity_range_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 活动参与的商品列表 - PromotionRangeList []PromotionRange `json:"promotion_range_list,omitempty" xml:"promotion_range_list>promotion_range,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscActivityRangeRemoveAPIRequest.go b/model/promotion/TaobaoPromotionmiscActivityRangeRemoveAPIRequest.go new file mode 100644 index 0000000000..1dcf3d42df --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscActivityRangeRemoveAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +去除活动参与的商品 API请求 +taobao.promotionmisc.activity.range.remove + +去除活动参与的商品 +*/ +type TaobaoPromotionmiscActivityRangeRemoveAPIRequest struct { + model.Params + // 活动id。 + _activityId int64 + // 商品id,多个id用逗号隔开。 + _ids string +} + +// 初始化TaobaoPromotionmiscActivityRangeRemoveAPIRequest对象 +func NewTaobaoPromotionmiscActivityRangeRemoveRequest() *TaobaoPromotionmiscActivityRangeRemoveAPIRequest{ + return &TaobaoPromotionmiscActivityRangeRemoveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscActivityRangeRemoveAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.activity.range.remove" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscActivityRangeRemoveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 活动id。 +func (r *TaobaoPromotionmiscActivityRangeRemoveAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoPromotionmiscActivityRangeRemoveAPIRequest) GetActivityId() int64 { + return r._activityId +} +// Ids Setter +// 商品id,多个id用逗号隔开。 +func (r *TaobaoPromotionmiscActivityRangeRemoveAPIRequest) SetIds(_ids string) error { + r._ids = _ids + r.Set("ids", _ids) + return nil +} + +// Ids Getter +func (r TaobaoPromotionmiscActivityRangeRemoveAPIRequest) GetIds() string { + return r._ids +} diff --git a/model/promotion/TaobaoPromotionmiscActivityRangeRemoveAPIResponse.go b/model/promotion/TaobaoPromotionmiscActivityRangeRemoveAPIResponse.go new file mode 100644 index 0000000000..bdd8beb747 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscActivityRangeRemoveAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +去除活动参与的商品 API返回值 +taobao.promotionmisc.activity.range.remove + +去除活动参与的商品 +*/ +type TaobaoPromotionmiscActivityRangeRemoveAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscActivityRangeRemoveAPIResponseModel +} + +// 去除活动参与的商品 成功返回结果 +type TaobaoPromotionmiscActivityRangeRemoveAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_activity_range_remove_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 去除活动参与的商品是否成功。 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscActivityRangeRemoveResponse.go b/model/promotion/TaobaoPromotionmiscActivityRangeRemoveResponse.go deleted file mode 100644 index 4094690746..0000000000 --- a/model/promotion/TaobaoPromotionmiscActivityRangeRemoveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -去除活动参与的商品 API返回值 -taobao.promotionmisc.activity.range.remove - -去除活动参与的商品 -*/ -type TaobaoPromotionmiscActivityRangeRemoveAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscActivityRangeRemoveResponse -} - -// 去除活动参与的商品 成功返回结果 -type TaobaoPromotionmiscActivityRangeRemoveResponse struct { - XMLName xml.Name `xml:"promotionmisc_activity_range_remove_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 去除活动参与的商品是否成功。 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemActivityAddAPIRequest.go b/model/promotion/TaobaoPromotionmiscCommonItemActivityAddAPIRequest.go new file mode 100644 index 0000000000..1dd014326d --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscCommonItemActivityAddAPIRequest.go @@ -0,0 +1,124 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建通用单品优惠活动 API请求 +taobao.promotionmisc.common.item.activity.add + +创建通用单品优惠活动。 +1、该接口只创建活动的基本信息,如需要增加、删除参与该活动的商品及优惠,请调用taobao.promotionmisc.common.item.detail.add和taobao.promotionmisc.common.item.detail.delete接口 +2、同一卖家下的活动数量限制为30个,超过限制需先调用taobao.promotionmisc.common.item.activity.delete接口删除无用的活动后才可再创建新的活动 +*/ +type TaobaoPromotionmiscCommonItemActivityAddAPIRequest struct { + model.Params + // 活动名称,不能超过32字符 + _name string + // 活动描述,不能超过100字符 + _description string + // 活动开始时间 + _startTime string + // 活动结束时间 + _endTime string + // 是否指定人群标签 + _isUserTag bool + // 用户标签。当is_user_tag为true时,该值才有意义。 + _userTag string +} + +// 初始化TaobaoPromotionmiscCommonItemActivityAddAPIRequest对象 +func NewTaobaoPromotionmiscCommonItemActivityAddRequest() *TaobaoPromotionmiscCommonItemActivityAddAPIRequest{ + return &TaobaoPromotionmiscCommonItemActivityAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscCommonItemActivityAddAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.common.item.activity.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscCommonItemActivityAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// 活动名称,不能超过32字符 +func (r *TaobaoPromotionmiscCommonItemActivityAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoPromotionmiscCommonItemActivityAddAPIRequest) GetName() string { + return r._name +} +// Description Setter +// 活动描述,不能超过100字符 +func (r *TaobaoPromotionmiscCommonItemActivityAddAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r TaobaoPromotionmiscCommonItemActivityAddAPIRequest) GetDescription() string { + return r._description +} +// StartTime Setter +// 活动开始时间 +func (r *TaobaoPromotionmiscCommonItemActivityAddAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoPromotionmiscCommonItemActivityAddAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 活动结束时间 +func (r *TaobaoPromotionmiscCommonItemActivityAddAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoPromotionmiscCommonItemActivityAddAPIRequest) GetEndTime() string { + return r._endTime +} +// IsUserTag Setter +// 是否指定人群标签 +func (r *TaobaoPromotionmiscCommonItemActivityAddAPIRequest) SetIsUserTag(_isUserTag bool) error { + r._isUserTag = _isUserTag + r.Set("is_user_tag", _isUserTag) + return nil +} + +// IsUserTag Getter +func (r TaobaoPromotionmiscCommonItemActivityAddAPIRequest) GetIsUserTag() bool { + return r._isUserTag +} +// UserTag Setter +// 用户标签。当is_user_tag为true时,该值才有意义。 +func (r *TaobaoPromotionmiscCommonItemActivityAddAPIRequest) SetUserTag(_userTag string) error { + r._userTag = _userTag + r.Set("user_tag", _userTag) + return nil +} + +// UserTag Getter +func (r TaobaoPromotionmiscCommonItemActivityAddAPIRequest) GetUserTag() string { + return r._userTag +} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemActivityAddAPIResponse.go b/model/promotion/TaobaoPromotionmiscCommonItemActivityAddAPIResponse.go new file mode 100644 index 0000000000..91a53c964c --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscCommonItemActivityAddAPIResponse.go @@ -0,0 +1,31 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建通用单品优惠活动 API返回值 +taobao.promotionmisc.common.item.activity.add + +创建通用单品优惠活动。 +1、该接口只创建活动的基本信息,如需要增加、删除参与该活动的商品及优惠,请调用taobao.promotionmisc.common.item.detail.add和taobao.promotionmisc.common.item.detail.delete接口 +2、同一卖家下的活动数量限制为30个,超过限制需先调用taobao.promotionmisc.common.item.activity.delete接口删除无用的活动后才可再创建新的活动 +*/ +type TaobaoPromotionmiscCommonItemActivityAddAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscCommonItemActivityAddAPIResponseModel +} + +// 创建通用单品优惠活动 成功返回结果 +type TaobaoPromotionmiscCommonItemActivityAddAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_common_item_activity_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否创建成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 优惠活动ID + ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemActivityAddResponse.go b/model/promotion/TaobaoPromotionmiscCommonItemActivityAddResponse.go deleted file mode 100644 index 4e48c3629b..0000000000 --- a/model/promotion/TaobaoPromotionmiscCommonItemActivityAddResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建通用单品优惠活动 API返回值 -taobao.promotionmisc.common.item.activity.add - -创建通用单品优惠活动。 -1、该接口只创建活动的基本信息,如需要增加、删除参与该活动的商品及优惠,请调用taobao.promotionmisc.common.item.detail.add和taobao.promotionmisc.common.item.detail.delete接口 -2、同一卖家下的活动数量限制为30个,超过限制需先调用taobao.promotionmisc.common.item.activity.delete接口删除无用的活动后才可再创建新的活动 -*/ -type TaobaoPromotionmiscCommonItemActivityAddAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscCommonItemActivityAddResponse -} - -// 创建通用单品优惠活动 成功返回结果 -type TaobaoPromotionmiscCommonItemActivityAddResponse struct { - XMLName xml.Name `xml:"promotionmisc_common_item_activity_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否创建成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 优惠活动ID - ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest.go b/model/promotion/TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest.go new file mode 100644 index 0000000000..fcc0c37af9 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除通用单品优惠活动 API请求 +taobao.promotionmisc.common.item.activity.delete + +删除通用单品优惠活动。 +*/ +type TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest struct { + model.Params + // 优惠活动ID + _activityId int64 +} + +// 初始化TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest对象 +func NewTaobaoPromotionmiscCommonItemActivityDeleteRequest() *TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest{ + return &TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.common.item.activity.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 优惠活动ID +func (r *TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest) GetActivityId() int64 { + return r._activityId +} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemActivityDeleteAPIResponse.go b/model/promotion/TaobaoPromotionmiscCommonItemActivityDeleteAPIResponse.go new file mode 100644 index 0000000000..f708d7152a --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscCommonItemActivityDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除通用单品优惠活动 API返回值 +taobao.promotionmisc.common.item.activity.delete + +删除通用单品优惠活动。 +*/ +type TaobaoPromotionmiscCommonItemActivityDeleteAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscCommonItemActivityDeleteAPIResponseModel +} + +// 删除通用单品优惠活动 成功返回结果 +type TaobaoPromotionmiscCommonItemActivityDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_common_item_activity_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否删除成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemActivityDeleteResponse.go b/model/promotion/TaobaoPromotionmiscCommonItemActivityDeleteResponse.go deleted file mode 100644 index c7878c6c2a..0000000000 --- a/model/promotion/TaobaoPromotionmiscCommonItemActivityDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除通用单品优惠活动 API返回值 -taobao.promotionmisc.common.item.activity.delete - -删除通用单品优惠活动。 -*/ -type TaobaoPromotionmiscCommonItemActivityDeleteAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscCommonItemActivityDeleteResponse -} - -// 删除通用单品优惠活动 成功返回结果 -type TaobaoPromotionmiscCommonItemActivityDeleteResponse struct { - XMLName xml.Name `xml:"promotionmisc_common_item_activity_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否删除成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemActivityGetAPIRequest.go b/model/promotion/TaobaoPromotionmiscCommonItemActivityGetAPIRequest.go new file mode 100644 index 0000000000..f818c29908 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscCommonItemActivityGetAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询通用单品优惠活动 API请求 +taobao.promotionmisc.common.item.activity.get + +查询通用单品优惠活动。 +*/ +type TaobaoPromotionmiscCommonItemActivityGetAPIRequest struct { + model.Params + // 优惠活动ID + _activityId int64 +} + +// 初始化TaobaoPromotionmiscCommonItemActivityGetAPIRequest对象 +func NewTaobaoPromotionmiscCommonItemActivityGetRequest() *TaobaoPromotionmiscCommonItemActivityGetAPIRequest{ + return &TaobaoPromotionmiscCommonItemActivityGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscCommonItemActivityGetAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.common.item.activity.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscCommonItemActivityGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 优惠活动ID +func (r *TaobaoPromotionmiscCommonItemActivityGetAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoPromotionmiscCommonItemActivityGetAPIRequest) GetActivityId() int64 { + return r._activityId +} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemActivityGetAPIResponse.go b/model/promotion/TaobaoPromotionmiscCommonItemActivityGetAPIResponse.go new file mode 100644 index 0000000000..47584e82f3 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscCommonItemActivityGetAPIResponse.go @@ -0,0 +1,29 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询通用单品优惠活动 API返回值 +taobao.promotionmisc.common.item.activity.get + +查询通用单品优惠活动。 +*/ +type TaobaoPromotionmiscCommonItemActivityGetAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscCommonItemActivityGetAPIResponseModel +} + +// 查询通用单品优惠活动 成功返回结果 +type TaobaoPromotionmiscCommonItemActivityGetAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_common_item_activity_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否查询成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 优惠活动 + Activity *CommonItemActivity `json:"activity,omitempty" xml:"activity,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemActivityGetResponse.go b/model/promotion/TaobaoPromotionmiscCommonItemActivityGetResponse.go deleted file mode 100644 index a8f6f79127..0000000000 --- a/model/promotion/TaobaoPromotionmiscCommonItemActivityGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询通用单品优惠活动 API返回值 -taobao.promotionmisc.common.item.activity.get - -查询通用单品优惠活动。 -*/ -type TaobaoPromotionmiscCommonItemActivityGetAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscCommonItemActivityGetResponse -} - -// 查询通用单品优惠活动 成功返回结果 -type TaobaoPromotionmiscCommonItemActivityGetResponse struct { - XMLName xml.Name `xml:"promotionmisc_common_item_activity_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否查询成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 优惠活动 - Activity *CommonItemActivity `json:"activity,omitempty" xml:"activity,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemActivityListGetAPIRequest.go b/model/promotion/TaobaoPromotionmiscCommonItemActivityListGetAPIRequest.go new file mode 100644 index 0000000000..346d2612da --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscCommonItemActivityListGetAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询通用单品优惠活动列表 API请求 +taobao.promotionmisc.common.item.activity.list.get + +查询通用单品优惠活动列表。 +*/ +type TaobaoPromotionmiscCommonItemActivityListGetAPIRequest struct { + model.Params + // 分页页码,页码从1开始 + _pageNo int64 + // 分页大小,不能超过50 + _pageSize int64 +} + +// 初始化TaobaoPromotionmiscCommonItemActivityListGetAPIRequest对象 +func NewTaobaoPromotionmiscCommonItemActivityListGetRequest() *TaobaoPromotionmiscCommonItemActivityListGetAPIRequest{ + return &TaobaoPromotionmiscCommonItemActivityListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscCommonItemActivityListGetAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.common.item.activity.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscCommonItemActivityListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageNo Setter +// 分页页码,页码从1开始 +func (r *TaobaoPromotionmiscCommonItemActivityListGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoPromotionmiscCommonItemActivityListGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 分页大小,不能超过50 +func (r *TaobaoPromotionmiscCommonItemActivityListGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoPromotionmiscCommonItemActivityListGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemActivityListGetAPIResponse.go b/model/promotion/TaobaoPromotionmiscCommonItemActivityListGetAPIResponse.go new file mode 100644 index 0000000000..b255f523a6 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscCommonItemActivityListGetAPIResponse.go @@ -0,0 +1,31 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询通用单品优惠活动列表 API返回值 +taobao.promotionmisc.common.item.activity.list.get + +查询通用单品优惠活动列表。 +*/ +type TaobaoPromotionmiscCommonItemActivityListGetAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscCommonItemActivityListGetAPIResponseModel +} + +// 查询通用单品优惠活动列表 成功返回结果 +type TaobaoPromotionmiscCommonItemActivityListGetAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_common_item_activity_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否查询成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 数据总数量 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 营销活动列表 + ActivityList []CommonItemActivity `json:"activity_list,omitempty" xml:"activity_list>common_item_activity,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemActivityListGetResponse.go b/model/promotion/TaobaoPromotionmiscCommonItemActivityListGetResponse.go deleted file mode 100644 index c4f1be7b79..0000000000 --- a/model/promotion/TaobaoPromotionmiscCommonItemActivityListGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询通用单品优惠活动列表 API返回值 -taobao.promotionmisc.common.item.activity.list.get - -查询通用单品优惠活动列表。 -*/ -type TaobaoPromotionmiscCommonItemActivityListGetAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscCommonItemActivityListGetResponse -} - -// 查询通用单品优惠活动列表 成功返回结果 -type TaobaoPromotionmiscCommonItemActivityListGetResponse struct { - XMLName xml.Name `xml:"promotionmisc_common_item_activity_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否查询成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 数据总数量 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 营销活动列表 - ActivityList []CommonItemActivity `json:"activity_list,omitempty" xml:"activity_list>common_item_activity,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest.go b/model/promotion/TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest.go new file mode 100644 index 0000000000..919cf116c7 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest.go @@ -0,0 +1,138 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改通用单品优惠活动 API请求 +taobao.promotionmisc.common.item.activity.update + +修改通用单品优惠活动。 +1、该接口只修改活动基本信息,如需要增加、删除参与该活动的商品及优惠,请调用taobao.promotionmisc.common.item.detail.add和taobao.promotionmisc.common.item.detail.delete接口 +2、使用该接口时需要把未做修改的字段值也传入 +*/ +type TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest struct { + model.Params + // 优惠活动ID + _activityId int64 + // 活动名称,不能超过32字符 + _name string + // 活动描述,不能超过100字符 + _description string + // 活动开始时间 + _startTime string + // 活动结束时间 + _endTime string + // 是否指定人群标签 + _isUserTag bool + // 用户标签。当is_user_tag为true时,该值才有意义。 + _userTag string +} + +// 初始化TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest对象 +func NewTaobaoPromotionmiscCommonItemActivityUpdateRequest() *TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest{ + return &TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.common.item.activity.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 优惠活动ID +func (r *TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) GetActivityId() int64 { + return r._activityId +} +// Name Setter +// 活动名称,不能超过32字符 +func (r *TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) GetName() string { + return r._name +} +// Description Setter +// 活动描述,不能超过100字符 +func (r *TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) GetDescription() string { + return r._description +} +// StartTime Setter +// 活动开始时间 +func (r *TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 活动结束时间 +func (r *TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) GetEndTime() string { + return r._endTime +} +// IsUserTag Setter +// 是否指定人群标签 +func (r *TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) SetIsUserTag(_isUserTag bool) error { + r._isUserTag = _isUserTag + r.Set("is_user_tag", _isUserTag) + return nil +} + +// IsUserTag Getter +func (r TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) GetIsUserTag() bool { + return r._isUserTag +} +// UserTag Setter +// 用户标签。当is_user_tag为true时,该值才有意义。 +func (r *TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) SetUserTag(_userTag string) error { + r._userTag = _userTag + r.Set("user_tag", _userTag) + return nil +} + +// UserTag Getter +func (r TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) GetUserTag() string { + return r._userTag +} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemActivityUpdateAPIResponse.go b/model/promotion/TaobaoPromotionmiscCommonItemActivityUpdateAPIResponse.go new file mode 100644 index 0000000000..54de991a2b --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscCommonItemActivityUpdateAPIResponse.go @@ -0,0 +1,29 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改通用单品优惠活动 API返回值 +taobao.promotionmisc.common.item.activity.update + +修改通用单品优惠活动。 +1、该接口只修改活动基本信息,如需要增加、删除参与该活动的商品及优惠,请调用taobao.promotionmisc.common.item.detail.add和taobao.promotionmisc.common.item.detail.delete接口 +2、使用该接口时需要把未做修改的字段值也传入 +*/ +type TaobaoPromotionmiscCommonItemActivityUpdateAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscCommonItemActivityUpdateAPIResponseModel +} + +// 修改通用单品优惠活动 成功返回结果 +type TaobaoPromotionmiscCommonItemActivityUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_common_item_activity_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否修改成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemActivityUpdateResponse.go b/model/promotion/TaobaoPromotionmiscCommonItemActivityUpdateResponse.go deleted file mode 100644 index b7b3c49824..0000000000 --- a/model/promotion/TaobaoPromotionmiscCommonItemActivityUpdateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改通用单品优惠活动 API返回值 -taobao.promotionmisc.common.item.activity.update - -修改通用单品优惠活动。 -1、该接口只修改活动基本信息,如需要增加、删除参与该活动的商品及优惠,请调用taobao.promotionmisc.common.item.detail.add和taobao.promotionmisc.common.item.detail.delete接口 -2、使用该接口时需要把未做修改的字段值也传入 -*/ -type TaobaoPromotionmiscCommonItemActivityUpdateAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscCommonItemActivityUpdateResponse -} - -// 修改通用单品优惠活动 成功返回结果 -type TaobaoPromotionmiscCommonItemActivityUpdateResponse struct { - XMLName xml.Name `xml:"promotionmisc_common_item_activity_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否修改成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemDetailAddAPIRequest.go b/model/promotion/TaobaoPromotionmiscCommonItemDetailAddAPIRequest.go new file mode 100644 index 0000000000..6c6364faab --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscCommonItemDetailAddAPIRequest.go @@ -0,0 +1,97 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建通用单品优惠详情 API请求 +taobao.promotionmisc.common.item.detail.add + +创建通用单品优惠详情。 +1、使用此接口在指定的优惠活动下创建参与的商品的优惠信息,如还未创建活动,需要先使用接口taobao.promotionmisc.common.item.activity.add创建优惠活动; +2、同一卖家同一活动下的优惠详情数量限制为150个,超过限制需先调用taobao.promotionmisc.common.item.detail.delete接口删除无用的详情后才可再创建新的优惠详情; +3、此接口受卖家最低折扣限制,如果优惠力度大于卖家设置的最低折扣则不能创建 +*/ +type TaobaoPromotionmiscCommonItemDetailAddAPIRequest struct { + model.Params + // 优惠活动ID + _activityId int64 + // 商品ID + _itemId int64 + // 优惠类型,只有两种可选值:0-减钱;1-打折 + _promotionType int64 + // 优惠力度,其值的解释方式由promotion_type定义:当为减钱时解释成减钱数量,如:900表示减9元;当为打折时解释成打折折扣,如:900表示打9折 + _promotionValue int64 +} + +// 初始化TaobaoPromotionmiscCommonItemDetailAddAPIRequest对象 +func NewTaobaoPromotionmiscCommonItemDetailAddRequest() *TaobaoPromotionmiscCommonItemDetailAddAPIRequest{ + return &TaobaoPromotionmiscCommonItemDetailAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscCommonItemDetailAddAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.common.item.detail.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscCommonItemDetailAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 优惠活动ID +func (r *TaobaoPromotionmiscCommonItemDetailAddAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoPromotionmiscCommonItemDetailAddAPIRequest) GetActivityId() int64 { + return r._activityId +} +// ItemId Setter +// 商品ID +func (r *TaobaoPromotionmiscCommonItemDetailAddAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoPromotionmiscCommonItemDetailAddAPIRequest) GetItemId() int64 { + return r._itemId +} +// PromotionType Setter +// 优惠类型,只有两种可选值:0-减钱;1-打折 +func (r *TaobaoPromotionmiscCommonItemDetailAddAPIRequest) SetPromotionType(_promotionType int64) error { + r._promotionType = _promotionType + r.Set("promotion_type", _promotionType) + return nil +} + +// PromotionType Getter +func (r TaobaoPromotionmiscCommonItemDetailAddAPIRequest) GetPromotionType() int64 { + return r._promotionType +} +// PromotionValue Setter +// 优惠力度,其值的解释方式由promotion_type定义:当为减钱时解释成减钱数量,如:900表示减9元;当为打折时解释成打折折扣,如:900表示打9折 +func (r *TaobaoPromotionmiscCommonItemDetailAddAPIRequest) SetPromotionValue(_promotionValue int64) error { + r._promotionValue = _promotionValue + r.Set("promotion_value", _promotionValue) + return nil +} + +// PromotionValue Getter +func (r TaobaoPromotionmiscCommonItemDetailAddAPIRequest) GetPromotionValue() int64 { + return r._promotionValue +} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemDetailAddAPIResponse.go b/model/promotion/TaobaoPromotionmiscCommonItemDetailAddAPIResponse.go new file mode 100644 index 0000000000..e8f71e6275 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscCommonItemDetailAddAPIResponse.go @@ -0,0 +1,32 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建通用单品优惠详情 API返回值 +taobao.promotionmisc.common.item.detail.add + +创建通用单品优惠详情。 +1、使用此接口在指定的优惠活动下创建参与的商品的优惠信息,如还未创建活动,需要先使用接口taobao.promotionmisc.common.item.activity.add创建优惠活动; +2、同一卖家同一活动下的优惠详情数量限制为150个,超过限制需先调用taobao.promotionmisc.common.item.detail.delete接口删除无用的详情后才可再创建新的优惠详情; +3、此接口受卖家最低折扣限制,如果优惠力度大于卖家设置的最低折扣则不能创建 +*/ +type TaobaoPromotionmiscCommonItemDetailAddAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscCommonItemDetailAddAPIResponseModel +} + +// 创建通用单品优惠详情 成功返回结果 +type TaobaoPromotionmiscCommonItemDetailAddAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_common_item_detail_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否创建成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 优惠详情ID + DetailId int64 `json:"detail_id,omitempty" xml:"detail_id,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemDetailAddResponse.go b/model/promotion/TaobaoPromotionmiscCommonItemDetailAddResponse.go deleted file mode 100644 index bbb90dcf80..0000000000 --- a/model/promotion/TaobaoPromotionmiscCommonItemDetailAddResponse.go +++ /dev/null @@ -1,32 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建通用单品优惠详情 API返回值 -taobao.promotionmisc.common.item.detail.add - -创建通用单品优惠详情。 -1、使用此接口在指定的优惠活动下创建参与的商品的优惠信息,如还未创建活动,需要先使用接口taobao.promotionmisc.common.item.activity.add创建优惠活动; -2、同一卖家同一活动下的优惠详情数量限制为150个,超过限制需先调用taobao.promotionmisc.common.item.detail.delete接口删除无用的详情后才可再创建新的优惠详情; -3、此接口受卖家最低折扣限制,如果优惠力度大于卖家设置的最低折扣则不能创建 -*/ -type TaobaoPromotionmiscCommonItemDetailAddAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscCommonItemDetailAddResponse -} - -// 创建通用单品优惠详情 成功返回结果 -type TaobaoPromotionmiscCommonItemDetailAddResponse struct { - XMLName xml.Name `xml:"promotionmisc_common_item_detail_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否创建成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 优惠详情ID - DetailId int64 `json:"detail_id,omitempty" xml:"detail_id,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest.go b/model/promotion/TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest.go new file mode 100644 index 0000000000..4b9ad6c4f3 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除通用单品优惠详情 API请求 +taobao.promotionmisc.common.item.detail.delete + +删除通用单品优惠详情。 +*/ +type TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest struct { + model.Params + // 优惠活动ID + _activityId int64 + // 优惠详情ID + _detailId int64 +} + +// 初始化TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest对象 +func NewTaobaoPromotionmiscCommonItemDetailDeleteRequest() *TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest{ + return &TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.common.item.detail.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 优惠活动ID +func (r *TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest) GetActivityId() int64 { + return r._activityId +} +// DetailId Setter +// 优惠详情ID +func (r *TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest) SetDetailId(_detailId int64) error { + r._detailId = _detailId + r.Set("detail_id", _detailId) + return nil +} + +// DetailId Getter +func (r TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest) GetDetailId() int64 { + return r._detailId +} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemDetailDeleteAPIResponse.go b/model/promotion/TaobaoPromotionmiscCommonItemDetailDeleteAPIResponse.go new file mode 100644 index 0000000000..aa854ec0ff --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscCommonItemDetailDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除通用单品优惠详情 API返回值 +taobao.promotionmisc.common.item.detail.delete + +删除通用单品优惠详情。 +*/ +type TaobaoPromotionmiscCommonItemDetailDeleteAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscCommonItemDetailDeleteAPIResponseModel +} + +// 删除通用单品优惠详情 成功返回结果 +type TaobaoPromotionmiscCommonItemDetailDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_common_item_detail_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否删除成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemDetailDeleteResponse.go b/model/promotion/TaobaoPromotionmiscCommonItemDetailDeleteResponse.go deleted file mode 100644 index 9fd5d3e8ef..0000000000 --- a/model/promotion/TaobaoPromotionmiscCommonItemDetailDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除通用单品优惠详情 API返回值 -taobao.promotionmisc.common.item.detail.delete - -删除通用单品优惠详情。 -*/ -type TaobaoPromotionmiscCommonItemDetailDeleteAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscCommonItemDetailDeleteResponse -} - -// 删除通用单品优惠详情 成功返回结果 -type TaobaoPromotionmiscCommonItemDetailDeleteResponse struct { - XMLName xml.Name `xml:"promotionmisc_common_item_detail_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否删除成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemDetailListGetAPIRequest.go b/model/promotion/TaobaoPromotionmiscCommonItemDetailListGetAPIRequest.go new file mode 100644 index 0000000000..c3c0719b87 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscCommonItemDetailListGetAPIRequest.go @@ -0,0 +1,80 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询通用单品优惠详情列表 API请求 +taobao.promotionmisc.common.item.detail.list.get + +查询通用单品优惠详情列表。 +*/ +type TaobaoPromotionmiscCommonItemDetailListGetAPIRequest struct { + model.Params + // 优惠活动ID + _activityId int64 + // 分页页码,页码从1开始 + _pageNo int64 + // 分页大小,不能超过50 + _pageSize int64 +} + +// 初始化TaobaoPromotionmiscCommonItemDetailListGetAPIRequest对象 +func NewTaobaoPromotionmiscCommonItemDetailListGetRequest() *TaobaoPromotionmiscCommonItemDetailListGetAPIRequest{ + return &TaobaoPromotionmiscCommonItemDetailListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscCommonItemDetailListGetAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.common.item.detail.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscCommonItemDetailListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 优惠活动ID +func (r *TaobaoPromotionmiscCommonItemDetailListGetAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoPromotionmiscCommonItemDetailListGetAPIRequest) GetActivityId() int64 { + return r._activityId +} +// PageNo Setter +// 分页页码,页码从1开始 +func (r *TaobaoPromotionmiscCommonItemDetailListGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoPromotionmiscCommonItemDetailListGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 分页大小,不能超过50 +func (r *TaobaoPromotionmiscCommonItemDetailListGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoPromotionmiscCommonItemDetailListGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemDetailListGetAPIResponse.go b/model/promotion/TaobaoPromotionmiscCommonItemDetailListGetAPIResponse.go new file mode 100644 index 0000000000..ad5606ee3e --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscCommonItemDetailListGetAPIResponse.go @@ -0,0 +1,31 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询通用单品优惠详情列表 API返回值 +taobao.promotionmisc.common.item.detail.list.get + +查询通用单品优惠详情列表。 +*/ +type TaobaoPromotionmiscCommonItemDetailListGetAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscCommonItemDetailListGetAPIResponseModel +} + +// 查询通用单品优惠详情列表 成功返回结果 +type TaobaoPromotionmiscCommonItemDetailListGetAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_common_item_detail_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否查询成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 数据总数量 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 活动详情列表 + DetailList []CommonItemDetail `json:"detail_list,omitempty" xml:"detail_list>common_item_detail,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemDetailListGetResponse.go b/model/promotion/TaobaoPromotionmiscCommonItemDetailListGetResponse.go deleted file mode 100644 index c33a3643c7..0000000000 --- a/model/promotion/TaobaoPromotionmiscCommonItemDetailListGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询通用单品优惠详情列表 API返回值 -taobao.promotionmisc.common.item.detail.list.get - -查询通用单品优惠详情列表。 -*/ -type TaobaoPromotionmiscCommonItemDetailListGetAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscCommonItemDetailListGetResponse -} - -// 查询通用单品优惠详情列表 成功返回结果 -type TaobaoPromotionmiscCommonItemDetailListGetResponse struct { - XMLName xml.Name `xml:"promotionmisc_common_item_detail_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否查询成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 数据总数量 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 活动详情列表 - DetailList []CommonItemDetail `json:"detail_list,omitempty" xml:"detail_list>common_item_detail,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest.go b/model/promotion/TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest.go new file mode 100644 index 0000000000..341c99fba0 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest.go @@ -0,0 +1,111 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改通用单品优惠详情 API请求 +taobao.promotionmisc.common.item.detail.update + +修改通用单品优惠详情。 +1、该接口只修改活动下参与的商品的优惠信息,如需要增加、删除活动,请调用taobao.promotionmisc.common.item.activity.add和taobao.promotionmisc.common.item.activity.delete接口; +2、使用该接口时需要把未做修改的字段值也传入; +3、此接口受卖家最低折扣限制,如果优惠力度大于卖家设置的最低折扣则不能修改 +*/ +type TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest struct { + model.Params + // 优惠活动ID + _activityId int64 + // 优惠详情ID + _detailId int64 + // 商品ID + _itemId int64 + // 优惠类型,只有两种可选值:0-减钱;1-打折 + _promotionType int64 + // 优惠力度,其值的解释方式由promotion_type定义:当为减钱时解释成减钱数量,如:900表示减9元;当为打折时解释成打折折扣,如:900表示打9折 + _promotionValue int64 +} + +// 初始化TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest对象 +func NewTaobaoPromotionmiscCommonItemDetailUpdateRequest() *TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest{ + return &TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.common.item.detail.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 优惠活动ID +func (r *TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) GetActivityId() int64 { + return r._activityId +} +// DetailId Setter +// 优惠详情ID +func (r *TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) SetDetailId(_detailId int64) error { + r._detailId = _detailId + r.Set("detail_id", _detailId) + return nil +} + +// DetailId Getter +func (r TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) GetDetailId() int64 { + return r._detailId +} +// ItemId Setter +// 商品ID +func (r *TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) GetItemId() int64 { + return r._itemId +} +// PromotionType Setter +// 优惠类型,只有两种可选值:0-减钱;1-打折 +func (r *TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) SetPromotionType(_promotionType int64) error { + r._promotionType = _promotionType + r.Set("promotion_type", _promotionType) + return nil +} + +// PromotionType Getter +func (r TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) GetPromotionType() int64 { + return r._promotionType +} +// PromotionValue Setter +// 优惠力度,其值的解释方式由promotion_type定义:当为减钱时解释成减钱数量,如:900表示减9元;当为打折时解释成打折折扣,如:900表示打9折 +func (r *TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) SetPromotionValue(_promotionValue int64) error { + r._promotionValue = _promotionValue + r.Set("promotion_value", _promotionValue) + return nil +} + +// PromotionValue Getter +func (r TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) GetPromotionValue() int64 { + return r._promotionValue +} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemDetailUpdateAPIResponse.go b/model/promotion/TaobaoPromotionmiscCommonItemDetailUpdateAPIResponse.go new file mode 100644 index 0000000000..d1a94324d3 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscCommonItemDetailUpdateAPIResponse.go @@ -0,0 +1,30 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改通用单品优惠详情 API返回值 +taobao.promotionmisc.common.item.detail.update + +修改通用单品优惠详情。 +1、该接口只修改活动下参与的商品的优惠信息,如需要增加、删除活动,请调用taobao.promotionmisc.common.item.activity.add和taobao.promotionmisc.common.item.activity.delete接口; +2、使用该接口时需要把未做修改的字段值也传入; +3、此接口受卖家最低折扣限制,如果优惠力度大于卖家设置的最低折扣则不能修改 +*/ +type TaobaoPromotionmiscCommonItemDetailUpdateAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscCommonItemDetailUpdateAPIResponseModel +} + +// 修改通用单品优惠详情 成功返回结果 +type TaobaoPromotionmiscCommonItemDetailUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_common_item_detail_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否修改成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscCommonItemDetailUpdateResponse.go b/model/promotion/TaobaoPromotionmiscCommonItemDetailUpdateResponse.go deleted file mode 100644 index edb770a7ad..0000000000 --- a/model/promotion/TaobaoPromotionmiscCommonItemDetailUpdateResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改通用单品优惠详情 API返回值 -taobao.promotionmisc.common.item.detail.update - -修改通用单品优惠详情。 -1、该接口只修改活动下参与的商品的优惠信息,如需要增加、删除活动,请调用taobao.promotionmisc.common.item.activity.add和taobao.promotionmisc.common.item.activity.delete接口; -2、使用该接口时需要把未做修改的字段值也传入; -3、此接口受卖家最低折扣限制,如果优惠力度大于卖家设置的最低折扣则不能修改 -*/ -type TaobaoPromotionmiscCommonItemDetailUpdateAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscCommonItemDetailUpdateResponse -} - -// 修改通用单品优惠详情 成功返回结果 -type TaobaoPromotionmiscCommonItemDetailUpdateResponse struct { - XMLName xml.Name `xml:"promotionmisc_common_item_detail_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否修改成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscItemActivityAddAPIRequest.go b/model/promotion/TaobaoPromotionmiscItemActivityAddAPIRequest.go new file mode 100644 index 0000000000..2328d0b5a3 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscItemActivityAddAPIRequest.go @@ -0,0 +1,178 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建无条件单品优惠活动 API请求 +taobao.promotionmisc.item.activity.add + +创建无条件单品优惠活动。1、可以选择是全店参加或者部分商品参加:participate_range:0表示全部参与; 1表示部分商品参与。
2、如果是部分商品参加,则需要通过taobao.promotionmisc.activity.range.add接口来指定需要参加的商品。
3、该接口创建的优惠受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。 +*/ +type TaobaoPromotionmiscItemActivityAddAPIRequest struct { + model.Params + // 活动名称,超过5个汉字时,商品详情中显示的优惠名称为:卖家优惠。 + _name string + // 活动范围:0表示全部参与; 1表示部分商品参与。 + _participateRange int64 + // 活动开始时间。 + _startTime string + // 活动结束时间。 + _endTime string + // 是否指定用户标签。 + _isUserTag bool + // 用户标签。当is_user_tag为true时,该值才有意义。 + _userTag string + // 是否有减钱行为。 + _isDecreaseMoney bool + // 减多少钱。当is_decrease_money为true时,该值才有意义。注意:该值单位为分,即100表示1元。 + _decreaseAmount int64 + // 是否有打折行为。 + _isDiscount bool + // 折扣值。当is_discount为true时,该值才有意义。注意:800表示8折。 + _discountRate int64 +} + +// 初始化TaobaoPromotionmiscItemActivityAddAPIRequest对象 +func NewTaobaoPromotionmiscItemActivityAddRequest() *TaobaoPromotionmiscItemActivityAddAPIRequest{ + return &TaobaoPromotionmiscItemActivityAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscItemActivityAddAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.item.activity.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscItemActivityAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// 活动名称,超过5个汉字时,商品详情中显示的优惠名称为:卖家优惠。 +func (r *TaobaoPromotionmiscItemActivityAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoPromotionmiscItemActivityAddAPIRequest) GetName() string { + return r._name +} +// ParticipateRange Setter +// 活动范围:0表示全部参与; 1表示部分商品参与。 +func (r *TaobaoPromotionmiscItemActivityAddAPIRequest) SetParticipateRange(_participateRange int64) error { + r._participateRange = _participateRange + r.Set("participate_range", _participateRange) + return nil +} + +// ParticipateRange Getter +func (r TaobaoPromotionmiscItemActivityAddAPIRequest) GetParticipateRange() int64 { + return r._participateRange +} +// StartTime Setter +// 活动开始时间。 +func (r *TaobaoPromotionmiscItemActivityAddAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoPromotionmiscItemActivityAddAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 活动结束时间。 +func (r *TaobaoPromotionmiscItemActivityAddAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoPromotionmiscItemActivityAddAPIRequest) GetEndTime() string { + return r._endTime +} +// IsUserTag Setter +// 是否指定用户标签。 +func (r *TaobaoPromotionmiscItemActivityAddAPIRequest) SetIsUserTag(_isUserTag bool) error { + r._isUserTag = _isUserTag + r.Set("is_user_tag", _isUserTag) + return nil +} + +// IsUserTag Getter +func (r TaobaoPromotionmiscItemActivityAddAPIRequest) GetIsUserTag() bool { + return r._isUserTag +} +// UserTag Setter +// 用户标签。当is_user_tag为true时,该值才有意义。 +func (r *TaobaoPromotionmiscItemActivityAddAPIRequest) SetUserTag(_userTag string) error { + r._userTag = _userTag + r.Set("user_tag", _userTag) + return nil +} + +// UserTag Getter +func (r TaobaoPromotionmiscItemActivityAddAPIRequest) GetUserTag() string { + return r._userTag +} +// IsDecreaseMoney Setter +// 是否有减钱行为。 +func (r *TaobaoPromotionmiscItemActivityAddAPIRequest) SetIsDecreaseMoney(_isDecreaseMoney bool) error { + r._isDecreaseMoney = _isDecreaseMoney + r.Set("is_decrease_money", _isDecreaseMoney) + return nil +} + +// IsDecreaseMoney Getter +func (r TaobaoPromotionmiscItemActivityAddAPIRequest) GetIsDecreaseMoney() bool { + return r._isDecreaseMoney +} +// DecreaseAmount Setter +// 减多少钱。当is_decrease_money为true时,该值才有意义。注意:该值单位为分,即100表示1元。 +func (r *TaobaoPromotionmiscItemActivityAddAPIRequest) SetDecreaseAmount(_decreaseAmount int64) error { + r._decreaseAmount = _decreaseAmount + r.Set("decrease_amount", _decreaseAmount) + return nil +} + +// DecreaseAmount Getter +func (r TaobaoPromotionmiscItemActivityAddAPIRequest) GetDecreaseAmount() int64 { + return r._decreaseAmount +} +// IsDiscount Setter +// 是否有打折行为。 +func (r *TaobaoPromotionmiscItemActivityAddAPIRequest) SetIsDiscount(_isDiscount bool) error { + r._isDiscount = _isDiscount + r.Set("is_discount", _isDiscount) + return nil +} + +// IsDiscount Getter +func (r TaobaoPromotionmiscItemActivityAddAPIRequest) GetIsDiscount() bool { + return r._isDiscount +} +// DiscountRate Setter +// 折扣值。当is_discount为true时,该值才有意义。注意:800表示8折。 +func (r *TaobaoPromotionmiscItemActivityAddAPIRequest) SetDiscountRate(_discountRate int64) error { + r._discountRate = _discountRate + r.Set("discount_rate", _discountRate) + return nil +} + +// DiscountRate Getter +func (r TaobaoPromotionmiscItemActivityAddAPIRequest) GetDiscountRate() int64 { + return r._discountRate +} diff --git a/model/promotion/TaobaoPromotionmiscItemActivityAddAPIResponse.go b/model/promotion/TaobaoPromotionmiscItemActivityAddAPIResponse.go new file mode 100644 index 0000000000..ade18287a8 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscItemActivityAddAPIResponse.go @@ -0,0 +1,29 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建无条件单品优惠活动 API返回值 +taobao.promotionmisc.item.activity.add + +创建无条件单品优惠活动。1、可以选择是全店参加或者部分商品参加:participate_range:0表示全部参与; 1表示部分商品参与。
2、如果是部分商品参加,则需要通过taobao.promotionmisc.activity.range.add接口来指定需要参加的商品。
3、该接口创建的优惠受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。 +*/ +type TaobaoPromotionmiscItemActivityAddAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscItemActivityAddAPIResponseModel +} + +// 创建无条件单品优惠活动 成功返回结果 +type TaobaoPromotionmiscItemActivityAddAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_item_activity_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否保存成功。 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 活动id。 + ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscItemActivityAddResponse.go b/model/promotion/TaobaoPromotionmiscItemActivityAddResponse.go deleted file mode 100644 index 04382a4815..0000000000 --- a/model/promotion/TaobaoPromotionmiscItemActivityAddResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建无条件单品优惠活动 API返回值 -taobao.promotionmisc.item.activity.add - -创建无条件单品优惠活动。1、可以选择是全店参加或者部分商品参加:participate_range:0表示全部参与; 1表示部分商品参与。
2、如果是部分商品参加,则需要通过taobao.promotionmisc.activity.range.add接口来指定需要参加的商品。
3、该接口创建的优惠受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。 -*/ -type TaobaoPromotionmiscItemActivityAddAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscItemActivityAddResponse -} - -// 创建无条件单品优惠活动 成功返回结果 -type TaobaoPromotionmiscItemActivityAddResponse struct { - XMLName xml.Name `xml:"promotionmisc_item_activity_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否保存成功。 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 活动id。 - ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscItemActivityDeleteAPIRequest.go b/model/promotion/TaobaoPromotionmiscItemActivityDeleteAPIRequest.go new file mode 100644 index 0000000000..ded1cbec8a --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscItemActivityDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除无条件单品优惠活动 API请求 +taobao.promotionmisc.item.activity.delete + +删除无条件单品优惠活动 +*/ +type TaobaoPromotionmiscItemActivityDeleteAPIRequest struct { + model.Params + // 活动id。 + _activityId int64 +} + +// 初始化TaobaoPromotionmiscItemActivityDeleteAPIRequest对象 +func NewTaobaoPromotionmiscItemActivityDeleteRequest() *TaobaoPromotionmiscItemActivityDeleteAPIRequest{ + return &TaobaoPromotionmiscItemActivityDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscItemActivityDeleteAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.item.activity.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscItemActivityDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 活动id。 +func (r *TaobaoPromotionmiscItemActivityDeleteAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoPromotionmiscItemActivityDeleteAPIRequest) GetActivityId() int64 { + return r._activityId +} diff --git a/model/promotion/TaobaoPromotionmiscItemActivityDeleteAPIResponse.go b/model/promotion/TaobaoPromotionmiscItemActivityDeleteAPIResponse.go new file mode 100644 index 0000000000..9fcf2bcb9e --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscItemActivityDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除无条件单品优惠活动 API返回值 +taobao.promotionmisc.item.activity.delete + +删除无条件单品优惠活动 +*/ +type TaobaoPromotionmiscItemActivityDeleteAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscItemActivityDeleteAPIResponseModel +} + +// 删除无条件单品优惠活动 成功返回结果 +type TaobaoPromotionmiscItemActivityDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_item_activity_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功删除活动。 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscItemActivityDeleteResponse.go b/model/promotion/TaobaoPromotionmiscItemActivityDeleteResponse.go deleted file mode 100644 index 954be2abb9..0000000000 --- a/model/promotion/TaobaoPromotionmiscItemActivityDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除无条件单品优惠活动 API返回值 -taobao.promotionmisc.item.activity.delete - -删除无条件单品优惠活动 -*/ -type TaobaoPromotionmiscItemActivityDeleteAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscItemActivityDeleteResponse -} - -// 删除无条件单品优惠活动 成功返回结果 -type TaobaoPromotionmiscItemActivityDeleteResponse struct { - XMLName xml.Name `xml:"promotionmisc_item_activity_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功删除活动。 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscItemActivityGetAPIRequest.go b/model/promotion/TaobaoPromotionmiscItemActivityGetAPIRequest.go new file mode 100644 index 0000000000..b9d6dd761a --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscItemActivityGetAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询无条件单品优惠活动 API请求 +taobao.promotionmisc.item.activity.get + +查询无条件单品优惠活动 +*/ +type TaobaoPromotionmiscItemActivityGetAPIRequest struct { + model.Params + // 活动id。 + _activityId int64 +} + +// 初始化TaobaoPromotionmiscItemActivityGetAPIRequest对象 +func NewTaobaoPromotionmiscItemActivityGetRequest() *TaobaoPromotionmiscItemActivityGetAPIRequest{ + return &TaobaoPromotionmiscItemActivityGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscItemActivityGetAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.item.activity.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscItemActivityGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 活动id。 +func (r *TaobaoPromotionmiscItemActivityGetAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoPromotionmiscItemActivityGetAPIRequest) GetActivityId() int64 { + return r._activityId +} diff --git a/model/promotion/TaobaoPromotionmiscItemActivityGetAPIResponse.go b/model/promotion/TaobaoPromotionmiscItemActivityGetAPIResponse.go new file mode 100644 index 0000000000..59051d4c52 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscItemActivityGetAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询无条件单品优惠活动 API返回值 +taobao.promotionmisc.item.activity.get + +查询无条件单品优惠活动 +*/ +type TaobaoPromotionmiscItemActivityGetAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscItemActivityGetAPIResponseModel +} + +// 查询无条件单品优惠活动 成功返回结果 +type TaobaoPromotionmiscItemActivityGetAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_item_activity_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 单品优惠活动信息。 + ItemPromotion *ItemPromotion `json:"item_promotion,omitempty" xml:"item_promotion,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscItemActivityGetResponse.go b/model/promotion/TaobaoPromotionmiscItemActivityGetResponse.go deleted file mode 100644 index be15e17a51..0000000000 --- a/model/promotion/TaobaoPromotionmiscItemActivityGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询无条件单品优惠活动 API返回值 -taobao.promotionmisc.item.activity.get - -查询无条件单品优惠活动 -*/ -type TaobaoPromotionmiscItemActivityGetAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscItemActivityGetResponse -} - -// 查询无条件单品优惠活动 成功返回结果 -type TaobaoPromotionmiscItemActivityGetResponse struct { - XMLName xml.Name `xml:"promotionmisc_item_activity_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 单品优惠活动信息。 - ItemPromotion *ItemPromotion `json:"item_promotion,omitempty" xml:"item_promotion,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscItemActivityListGetAPIRequest.go b/model/promotion/TaobaoPromotionmiscItemActivityListGetAPIRequest.go new file mode 100644 index 0000000000..caf322243d --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscItemActivityListGetAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询无条件单品优惠活动列表 API请求 +taobao.promotionmisc.item.activity.list.get + +查询无条件单品优惠活动列表 +*/ +type TaobaoPromotionmiscItemActivityListGetAPIRequest struct { + model.Params + // 页码。 + _pageNo int64 + // 每页记录数,最大支持50 。 + _pageSize int64 +} + +// 初始化TaobaoPromotionmiscItemActivityListGetAPIRequest对象 +func NewTaobaoPromotionmiscItemActivityListGetRequest() *TaobaoPromotionmiscItemActivityListGetAPIRequest{ + return &TaobaoPromotionmiscItemActivityListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscItemActivityListGetAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.item.activity.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscItemActivityListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageNo Setter +// 页码。 +func (r *TaobaoPromotionmiscItemActivityListGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoPromotionmiscItemActivityListGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页记录数,最大支持50 。 +func (r *TaobaoPromotionmiscItemActivityListGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoPromotionmiscItemActivityListGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/promotion/TaobaoPromotionmiscItemActivityListGetAPIResponse.go b/model/promotion/TaobaoPromotionmiscItemActivityListGetAPIResponse.go new file mode 100644 index 0000000000..6d434e11c2 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscItemActivityListGetAPIResponse.go @@ -0,0 +1,29 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询无条件单品优惠活动列表 API返回值 +taobao.promotionmisc.item.activity.list.get + +查询无条件单品优惠活动列表 +*/ +type TaobaoPromotionmiscItemActivityListGetAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscItemActivityListGetAPIResponseModel +} + +// 查询无条件单品优惠活动列表 成功返回结果 +type TaobaoPromotionmiscItemActivityListGetAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_item_activity_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 只包含活动的主要信息,如activity_id,name,description,start_time,end_time,participate_range。优惠的其他详细信息,请通过taobao.promotionmisc.item.activity.get获取。 + ItemPromotionList []ItemPromotion `json:"item_promotion_list,omitempty" xml:"item_promotion_list>item_promotion,omitempty"` + // 记录总条数。 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscItemActivityListGetResponse.go b/model/promotion/TaobaoPromotionmiscItemActivityListGetResponse.go deleted file mode 100644 index d76efbcda8..0000000000 --- a/model/promotion/TaobaoPromotionmiscItemActivityListGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询无条件单品优惠活动列表 API返回值 -taobao.promotionmisc.item.activity.list.get - -查询无条件单品优惠活动列表 -*/ -type TaobaoPromotionmiscItemActivityListGetAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscItemActivityListGetResponse -} - -// 查询无条件单品优惠活动列表 成功返回结果 -type TaobaoPromotionmiscItemActivityListGetResponse struct { - XMLName xml.Name `xml:"promotionmisc_item_activity_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 只包含活动的主要信息,如activity_id,name,description,start_time,end_time,participate_range。优惠的其他详细信息,请通过taobao.promotionmisc.item.activity.get获取。 - ItemPromotionList []ItemPromotion `json:"item_promotion_list,omitempty" xml:"item_promotion_list>item_promotion,omitempty"` - // 记录总条数。 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscItemActivityUpdateAPIRequest.go b/model/promotion/TaobaoPromotionmiscItemActivityUpdateAPIRequest.go new file mode 100644 index 0000000000..a8c427d012 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscItemActivityUpdateAPIRequest.go @@ -0,0 +1,192 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改无条件单品优惠活动 API请求 +taobao.promotionmisc.item.activity.update + +修改无条件单品优惠活动。
1、该接口只修改活动基本信息和打折信息,如需要增加、删除参与该活动的商品,请调用taobao.promotionmisc.activity.range.add和taobao.promotionmisc.activity.range.remove接口。
2、使用该接口时需要同时把未做修改的字段值也传入。

3、该接口受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。 +*/ +type TaobaoPromotionmiscItemActivityUpdateAPIRequest struct { + model.Params + // 活动id。 + _activityId int64 + // 活动名称。 + _name string + // 活动范围:0表示全部参与; 1表示部分商品参与。 + _participateRange int64 + // 活动开始时间。 + _startTime string + // 活动结束时间。 + _endTime string + // 是否指定用户标签。 + _isUserTag bool + // 用户标签。当is_user_tag为true时,该值才有意义。 + _userTag string + // 是否有减钱行为。 + _isDecreaseMoney bool + // 减多少钱。当is_decrease_money为true时,该值才有意义。注意:该值单位为分,即100表示1元。 + _decreaseAmount int64 + // 是否有打折行为。 + _isDiscount bool + // 折扣值。当is_discount为true时,该值才有意义。注意:800表示8折。 + _discountRate int64 +} + +// 初始化TaobaoPromotionmiscItemActivityUpdateAPIRequest对象 +func NewTaobaoPromotionmiscItemActivityUpdateRequest() *TaobaoPromotionmiscItemActivityUpdateAPIRequest{ + return &TaobaoPromotionmiscItemActivityUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.item.activity.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 活动id。 +func (r *TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetActivityId() int64 { + return r._activityId +} +// Name Setter +// 活动名称。 +func (r *TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetName() string { + return r._name +} +// ParticipateRange Setter +// 活动范围:0表示全部参与; 1表示部分商品参与。 +func (r *TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetParticipateRange(_participateRange int64) error { + r._participateRange = _participateRange + r.Set("participate_range", _participateRange) + return nil +} + +// ParticipateRange Getter +func (r TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetParticipateRange() int64 { + return r._participateRange +} +// StartTime Setter +// 活动开始时间。 +func (r *TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 活动结束时间。 +func (r *TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetEndTime() string { + return r._endTime +} +// IsUserTag Setter +// 是否指定用户标签。 +func (r *TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetIsUserTag(_isUserTag bool) error { + r._isUserTag = _isUserTag + r.Set("is_user_tag", _isUserTag) + return nil +} + +// IsUserTag Getter +func (r TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetIsUserTag() bool { + return r._isUserTag +} +// UserTag Setter +// 用户标签。当is_user_tag为true时,该值才有意义。 +func (r *TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetUserTag(_userTag string) error { + r._userTag = _userTag + r.Set("user_tag", _userTag) + return nil +} + +// UserTag Getter +func (r TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetUserTag() string { + return r._userTag +} +// IsDecreaseMoney Setter +// 是否有减钱行为。 +func (r *TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetIsDecreaseMoney(_isDecreaseMoney bool) error { + r._isDecreaseMoney = _isDecreaseMoney + r.Set("is_decrease_money", _isDecreaseMoney) + return nil +} + +// IsDecreaseMoney Getter +func (r TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetIsDecreaseMoney() bool { + return r._isDecreaseMoney +} +// DecreaseAmount Setter +// 减多少钱。当is_decrease_money为true时,该值才有意义。注意:该值单位为分,即100表示1元。 +func (r *TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetDecreaseAmount(_decreaseAmount int64) error { + r._decreaseAmount = _decreaseAmount + r.Set("decrease_amount", _decreaseAmount) + return nil +} + +// DecreaseAmount Getter +func (r TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetDecreaseAmount() int64 { + return r._decreaseAmount +} +// IsDiscount Setter +// 是否有打折行为。 +func (r *TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetIsDiscount(_isDiscount bool) error { + r._isDiscount = _isDiscount + r.Set("is_discount", _isDiscount) + return nil +} + +// IsDiscount Getter +func (r TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetIsDiscount() bool { + return r._isDiscount +} +// DiscountRate Setter +// 折扣值。当is_discount为true时,该值才有意义。注意:800表示8折。 +func (r *TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetDiscountRate(_discountRate int64) error { + r._discountRate = _discountRate + r.Set("discount_rate", _discountRate) + return nil +} + +// DiscountRate Getter +func (r TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetDiscountRate() int64 { + return r._discountRate +} diff --git a/model/promotion/TaobaoPromotionmiscItemActivityUpdateAPIResponse.go b/model/promotion/TaobaoPromotionmiscItemActivityUpdateAPIResponse.go new file mode 100644 index 0000000000..76f5bd9e3e --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscItemActivityUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改无条件单品优惠活动 API返回值 +taobao.promotionmisc.item.activity.update + +修改无条件单品优惠活动。
1、该接口只修改活动基本信息和打折信息,如需要增加、删除参与该活动的商品,请调用taobao.promotionmisc.activity.range.add和taobao.promotionmisc.activity.range.remove接口。
2、使用该接口时需要同时把未做修改的字段值也传入。

3、该接口受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。 +*/ +type TaobaoPromotionmiscItemActivityUpdateAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscItemActivityUpdateAPIResponseModel +} + +// 修改无条件单品优惠活动 成功返回结果 +type TaobaoPromotionmiscItemActivityUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_item_activity_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改是否成功。 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscItemActivityUpdateResponse.go b/model/promotion/TaobaoPromotionmiscItemActivityUpdateResponse.go deleted file mode 100644 index 465ba65a42..0000000000 --- a/model/promotion/TaobaoPromotionmiscItemActivityUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改无条件单品优惠活动 API返回值 -taobao.promotionmisc.item.activity.update - -修改无条件单品优惠活动。
1、该接口只修改活动基本信息和打折信息,如需要增加、删除参与该活动的商品,请调用taobao.promotionmisc.activity.range.add和taobao.promotionmisc.activity.range.remove接口。
2、使用该接口时需要同时把未做修改的字段值也传入。

3、该接口受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。 -*/ -type TaobaoPromotionmiscItemActivityUpdateAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscItemActivityUpdateResponse -} - -// 修改无条件单品优惠活动 成功返回结果 -type TaobaoPromotionmiscItemActivityUpdateResponse struct { - XMLName xml.Name `xml:"promotionmisc_item_activity_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改是否成功。 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscMjsActivityAddAPIRequest.go b/model/promotion/TaobaoPromotionmiscMjsActivityAddAPIRequest.go new file mode 100644 index 0000000000..f4388f0623 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscMjsActivityAddAPIRequest.go @@ -0,0 +1,388 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建满就送活动 API请求 +taobao.promotionmisc.mjs.activity.add + +创建满就送活动。
1、可以选择是全店参加或者部分商品参加:participate_range:0表示全部参与; 1表示部分商品参与。 2、如果是部分商品参加,则需要通过taobao.promotionmisc.activity.range.add接口来指定需要参加的商品。 3、该接口创建的优惠受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。 +*/ +type TaobaoPromotionmiscMjsActivityAddAPIRequest struct { + model.Params + // 活动名称。 + _name string + // 活动类型: 1表示商品级别的活动;2表示店铺级别的活动 + _type int64 + // 活动范围:0表示全部参与; 1表示部分商品参与。 + _participateRange int64 + // 活动开始时间。 + _startTime string + // 活动结束时间。 + _endTime string + // 是否有满元条件。 + _isAmountOver bool + // 满多少元。当is_amount_over为true时,该才字段有意义。注意:单位是分,即10000表示100元。 + _totalPrice int64 + // 满元是否上不封顶。当is_amount_over为true时,该值才有意义。当该值为true时,表示满元上不封顶,例如满100元减10元,当满200时,则减20元。。。默认为false。 + _isAmountMultiple bool + // 是否有满件条件。 + _isItemCountOver bool + // 满多少件。当is_item_count_over为true时,该值才有意义。 + _itemCount int64 + // 满件是否上不封顶。当is_amount_multiple为true时,该值才有意义。当该值为true时,表示满件上不封顶,例如满10件减2元,当满20件时,则减4元。。。 默认为false。 + _isItemMultiple bool + // 是否有店铺会员等级条件。 + _isShopMember bool + // 店铺会员等级,当is_shop_member为true时,该值才有意义。0:店铺客户;1:普通客户;2:高级会员;3:VIP会员; 4:至尊VIP会员。 + _shopMemberLevel int64 + // 是否指定用户标签。 + _isUserTag bool + // 用户标签。当is_user_tag为true时,该值才有意义。 + _userTag string + // 是否有减钱行为。 + _isDecreaseMoney bool + // 减多少钱。当is_decrease_money为true时,该值才有意义。注意:该值单位为分,即100表示1元。 + _decreaseAmount int64 + // 是否有打折行为。 + _isDiscount bool + // 折扣值。当is_discount为true时,该值才有意义。注意:800表示8折。 + _discountRate int64 + // 是否有送礼品行为。 + _isSendGift bool + // 礼品名称。当is_send_gift为true时,该值才有意义。 + _giftName string + // 礼品id,当is_send_gift为true时,该值才有意义。 1)只有填写真实的淘宝商品id时,才能生成物流单,并且在确定订单的页面上可以点击该商品名称跳转到商品详情页面。2)当礼物为实物商品时(有宝贝id),礼物必须为上架商品,不能为虚拟商品,不能为拍卖商品,不能有sku,不符合条件的,不做为礼物。 + _giftId int64 + // 商品详情的url,当is_send_gift为true时,该值才有效。 + _giftUrl string + // 是否有免邮行为。 + _isFreePost bool + // 免邮的排除地区,即,除指定地区外,其他地区包邮。当is_free_post为true时,该值才有意义。代码使用*链接,代码为行政区划代码。 + _excludeArea string +} + +// 初始化TaobaoPromotionmiscMjsActivityAddAPIRequest对象 +func NewTaobaoPromotionmiscMjsActivityAddRequest() *TaobaoPromotionmiscMjsActivityAddAPIRequest{ + return &TaobaoPromotionmiscMjsActivityAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.mjs.activity.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// 活动名称。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetName() string { + return r._name +} +// Type Setter +// 活动类型: 1表示商品级别的活动;2表示店铺级别的活动 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetType() int64 { + return r._type +} +// ParticipateRange Setter +// 活动范围:0表示全部参与; 1表示部分商品参与。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetParticipateRange(_participateRange int64) error { + r._participateRange = _participateRange + r.Set("participate_range", _participateRange) + return nil +} + +// ParticipateRange Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetParticipateRange() int64 { + return r._participateRange +} +// StartTime Setter +// 活动开始时间。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 活动结束时间。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetEndTime() string { + return r._endTime +} +// IsAmountOver Setter +// 是否有满元条件。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsAmountOver(_isAmountOver bool) error { + r._isAmountOver = _isAmountOver + r.Set("is_amount_over", _isAmountOver) + return nil +} + +// IsAmountOver Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsAmountOver() bool { + return r._isAmountOver +} +// TotalPrice Setter +// 满多少元。当is_amount_over为true时,该才字段有意义。注意:单位是分,即10000表示100元。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetTotalPrice(_totalPrice int64) error { + r._totalPrice = _totalPrice + r.Set("total_price", _totalPrice) + return nil +} + +// TotalPrice Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetTotalPrice() int64 { + return r._totalPrice +} +// IsAmountMultiple Setter +// 满元是否上不封顶。当is_amount_over为true时,该值才有意义。当该值为true时,表示满元上不封顶,例如满100元减10元,当满200时,则减20元。。。默认为false。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsAmountMultiple(_isAmountMultiple bool) error { + r._isAmountMultiple = _isAmountMultiple + r.Set("is_amount_multiple", _isAmountMultiple) + return nil +} + +// IsAmountMultiple Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsAmountMultiple() bool { + return r._isAmountMultiple +} +// IsItemCountOver Setter +// 是否有满件条件。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsItemCountOver(_isItemCountOver bool) error { + r._isItemCountOver = _isItemCountOver + r.Set("is_item_count_over", _isItemCountOver) + return nil +} + +// IsItemCountOver Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsItemCountOver() bool { + return r._isItemCountOver +} +// ItemCount Setter +// 满多少件。当is_item_count_over为true时,该值才有意义。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetItemCount(_itemCount int64) error { + r._itemCount = _itemCount + r.Set("item_count", _itemCount) + return nil +} + +// ItemCount Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetItemCount() int64 { + return r._itemCount +} +// IsItemMultiple Setter +// 满件是否上不封顶。当is_amount_multiple为true时,该值才有意义。当该值为true时,表示满件上不封顶,例如满10件减2元,当满20件时,则减4元。。。 默认为false。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsItemMultiple(_isItemMultiple bool) error { + r._isItemMultiple = _isItemMultiple + r.Set("is_item_multiple", _isItemMultiple) + return nil +} + +// IsItemMultiple Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsItemMultiple() bool { + return r._isItemMultiple +} +// IsShopMember Setter +// 是否有店铺会员等级条件。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsShopMember(_isShopMember bool) error { + r._isShopMember = _isShopMember + r.Set("is_shop_member", _isShopMember) + return nil +} + +// IsShopMember Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsShopMember() bool { + return r._isShopMember +} +// ShopMemberLevel Setter +// 店铺会员等级,当is_shop_member为true时,该值才有意义。0:店铺客户;1:普通客户;2:高级会员;3:VIP会员; 4:至尊VIP会员。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetShopMemberLevel(_shopMemberLevel int64) error { + r._shopMemberLevel = _shopMemberLevel + r.Set("shop_member_level", _shopMemberLevel) + return nil +} + +// ShopMemberLevel Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetShopMemberLevel() int64 { + return r._shopMemberLevel +} +// IsUserTag Setter +// 是否指定用户标签。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsUserTag(_isUserTag bool) error { + r._isUserTag = _isUserTag + r.Set("is_user_tag", _isUserTag) + return nil +} + +// IsUserTag Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsUserTag() bool { + return r._isUserTag +} +// UserTag Setter +// 用户标签。当is_user_tag为true时,该值才有意义。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetUserTag(_userTag string) error { + r._userTag = _userTag + r.Set("user_tag", _userTag) + return nil +} + +// UserTag Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetUserTag() string { + return r._userTag +} +// IsDecreaseMoney Setter +// 是否有减钱行为。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsDecreaseMoney(_isDecreaseMoney bool) error { + r._isDecreaseMoney = _isDecreaseMoney + r.Set("is_decrease_money", _isDecreaseMoney) + return nil +} + +// IsDecreaseMoney Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsDecreaseMoney() bool { + return r._isDecreaseMoney +} +// DecreaseAmount Setter +// 减多少钱。当is_decrease_money为true时,该值才有意义。注意:该值单位为分,即100表示1元。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetDecreaseAmount(_decreaseAmount int64) error { + r._decreaseAmount = _decreaseAmount + r.Set("decrease_amount", _decreaseAmount) + return nil +} + +// DecreaseAmount Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetDecreaseAmount() int64 { + return r._decreaseAmount +} +// IsDiscount Setter +// 是否有打折行为。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsDiscount(_isDiscount bool) error { + r._isDiscount = _isDiscount + r.Set("is_discount", _isDiscount) + return nil +} + +// IsDiscount Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsDiscount() bool { + return r._isDiscount +} +// DiscountRate Setter +// 折扣值。当is_discount为true时,该值才有意义。注意:800表示8折。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetDiscountRate(_discountRate int64) error { + r._discountRate = _discountRate + r.Set("discount_rate", _discountRate) + return nil +} + +// DiscountRate Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetDiscountRate() int64 { + return r._discountRate +} +// IsSendGift Setter +// 是否有送礼品行为。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsSendGift(_isSendGift bool) error { + r._isSendGift = _isSendGift + r.Set("is_send_gift", _isSendGift) + return nil +} + +// IsSendGift Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsSendGift() bool { + return r._isSendGift +} +// GiftName Setter +// 礼品名称。当is_send_gift为true时,该值才有意义。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetGiftName(_giftName string) error { + r._giftName = _giftName + r.Set("gift_name", _giftName) + return nil +} + +// GiftName Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetGiftName() string { + return r._giftName +} +// GiftId Setter +// 礼品id,当is_send_gift为true时,该值才有意义。 1)只有填写真实的淘宝商品id时,才能生成物流单,并且在确定订单的页面上可以点击该商品名称跳转到商品详情页面。2)当礼物为实物商品时(有宝贝id),礼物必须为上架商品,不能为虚拟商品,不能为拍卖商品,不能有sku,不符合条件的,不做为礼物。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetGiftId(_giftId int64) error { + r._giftId = _giftId + r.Set("gift_id", _giftId) + return nil +} + +// GiftId Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetGiftId() int64 { + return r._giftId +} +// GiftUrl Setter +// 商品详情的url,当is_send_gift为true时,该值才有效。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetGiftUrl(_giftUrl string) error { + r._giftUrl = _giftUrl + r.Set("gift_url", _giftUrl) + return nil +} + +// GiftUrl Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetGiftUrl() string { + return r._giftUrl +} +// IsFreePost Setter +// 是否有免邮行为。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsFreePost(_isFreePost bool) error { + r._isFreePost = _isFreePost + r.Set("is_free_post", _isFreePost) + return nil +} + +// IsFreePost Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsFreePost() bool { + return r._isFreePost +} +// ExcludeArea Setter +// 免邮的排除地区,即,除指定地区外,其他地区包邮。当is_free_post为true时,该值才有意义。代码使用*链接,代码为行政区划代码。 +func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetExcludeArea(_excludeArea string) error { + r._excludeArea = _excludeArea + r.Set("exclude_area", _excludeArea) + return nil +} + +// ExcludeArea Getter +func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetExcludeArea() string { + return r._excludeArea +} diff --git a/model/promotion/TaobaoPromotionmiscMjsActivityAddAPIResponse.go b/model/promotion/TaobaoPromotionmiscMjsActivityAddAPIResponse.go new file mode 100644 index 0000000000..eaad6b7964 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscMjsActivityAddAPIResponse.go @@ -0,0 +1,29 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建满就送活动 API返回值 +taobao.promotionmisc.mjs.activity.add + +创建满就送活动。
1、可以选择是全店参加或者部分商品参加:participate_range:0表示全部参与; 1表示部分商品参与。 2、如果是部分商品参加,则需要通过taobao.promotionmisc.activity.range.add接口来指定需要参加的商品。 3、该接口创建的优惠受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。 +*/ +type TaobaoPromotionmiscMjsActivityAddAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscMjsActivityAddAPIResponseModel +} + +// 创建满就送活动 成功返回结果 +type TaobaoPromotionmiscMjsActivityAddAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_mjs_activity_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否保存成功。 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 活动id。 + ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscMjsActivityAddResponse.go b/model/promotion/TaobaoPromotionmiscMjsActivityAddResponse.go deleted file mode 100644 index dae65a2c2d..0000000000 --- a/model/promotion/TaobaoPromotionmiscMjsActivityAddResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建满就送活动 API返回值 -taobao.promotionmisc.mjs.activity.add - -创建满就送活动。
1、可以选择是全店参加或者部分商品参加:participate_range:0表示全部参与; 1表示部分商品参与。 2、如果是部分商品参加,则需要通过taobao.promotionmisc.activity.range.add接口来指定需要参加的商品。 3、该接口创建的优惠受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。 -*/ -type TaobaoPromotionmiscMjsActivityAddAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscMjsActivityAddResponse -} - -// 创建满就送活动 成功返回结果 -type TaobaoPromotionmiscMjsActivityAddResponse struct { - XMLName xml.Name `xml:"promotionmisc_mjs_activity_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否保存成功。 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 活动id。 - ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscMjsActivityDeleteAPIRequest.go b/model/promotion/TaobaoPromotionmiscMjsActivityDeleteAPIRequest.go new file mode 100644 index 0000000000..70b08fefb1 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscMjsActivityDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除满就送活动 API请求 +taobao.promotionmisc.mjs.activity.delete + +删除满就送活动 +*/ +type TaobaoPromotionmiscMjsActivityDeleteAPIRequest struct { + model.Params + // 活动id。 + _activityId int64 +} + +// 初始化TaobaoPromotionmiscMjsActivityDeleteAPIRequest对象 +func NewTaobaoPromotionmiscMjsActivityDeleteRequest() *TaobaoPromotionmiscMjsActivityDeleteAPIRequest{ + return &TaobaoPromotionmiscMjsActivityDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscMjsActivityDeleteAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.mjs.activity.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscMjsActivityDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 活动id。 +func (r *TaobaoPromotionmiscMjsActivityDeleteAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoPromotionmiscMjsActivityDeleteAPIRequest) GetActivityId() int64 { + return r._activityId +} diff --git a/model/promotion/TaobaoPromotionmiscMjsActivityDeleteAPIResponse.go b/model/promotion/TaobaoPromotionmiscMjsActivityDeleteAPIResponse.go new file mode 100644 index 0000000000..e4d8a658eb --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscMjsActivityDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除满就送活动 API返回值 +taobao.promotionmisc.mjs.activity.delete + +删除满就送活动 +*/ +type TaobaoPromotionmiscMjsActivityDeleteAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscMjsActivityDeleteAPIResponseModel +} + +// 删除满就送活动 成功返回结果 +type TaobaoPromotionmiscMjsActivityDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_mjs_activity_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功删除活动。 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscMjsActivityDeleteResponse.go b/model/promotion/TaobaoPromotionmiscMjsActivityDeleteResponse.go deleted file mode 100644 index ed62795b6e..0000000000 --- a/model/promotion/TaobaoPromotionmiscMjsActivityDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除满就送活动 API返回值 -taobao.promotionmisc.mjs.activity.delete - -删除满就送活动 -*/ -type TaobaoPromotionmiscMjsActivityDeleteAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscMjsActivityDeleteResponse -} - -// 删除满就送活动 成功返回结果 -type TaobaoPromotionmiscMjsActivityDeleteResponse struct { - XMLName xml.Name `xml:"promotionmisc_mjs_activity_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功删除活动。 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscMjsActivityGetAPIRequest.go b/model/promotion/TaobaoPromotionmiscMjsActivityGetAPIRequest.go new file mode 100644 index 0000000000..299c2fdb97 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscMjsActivityGetAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询满就送活动 API请求 +taobao.promotionmisc.mjs.activity.get + +查询满就送活动 +*/ +type TaobaoPromotionmiscMjsActivityGetAPIRequest struct { + model.Params + // 活动id。 + _activityId int64 +} + +// 初始化TaobaoPromotionmiscMjsActivityGetAPIRequest对象 +func NewTaobaoPromotionmiscMjsActivityGetRequest() *TaobaoPromotionmiscMjsActivityGetAPIRequest{ + return &TaobaoPromotionmiscMjsActivityGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscMjsActivityGetAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.mjs.activity.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscMjsActivityGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 活动id。 +func (r *TaobaoPromotionmiscMjsActivityGetAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoPromotionmiscMjsActivityGetAPIRequest) GetActivityId() int64 { + return r._activityId +} diff --git a/model/promotion/TaobaoPromotionmiscMjsActivityGetAPIResponse.go b/model/promotion/TaobaoPromotionmiscMjsActivityGetAPIResponse.go new file mode 100644 index 0000000000..beb966f24c --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscMjsActivityGetAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询满就送活动 API返回值 +taobao.promotionmisc.mjs.activity.get + +查询满就送活动 +*/ +type TaobaoPromotionmiscMjsActivityGetAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscMjsActivityGetAPIResponseModel +} + +// 查询满就送活动 成功返回结果 +type TaobaoPromotionmiscMjsActivityGetAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_mjs_activity_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 满就送活动信息。 + MjsPromotion *MjsPromotion `json:"mjs_promotion,omitempty" xml:"mjs_promotion,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscMjsActivityGetResponse.go b/model/promotion/TaobaoPromotionmiscMjsActivityGetResponse.go deleted file mode 100644 index 57e5e814fd..0000000000 --- a/model/promotion/TaobaoPromotionmiscMjsActivityGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询满就送活动 API返回值 -taobao.promotionmisc.mjs.activity.get - -查询满就送活动 -*/ -type TaobaoPromotionmiscMjsActivityGetAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscMjsActivityGetResponse -} - -// 查询满就送活动 成功返回结果 -type TaobaoPromotionmiscMjsActivityGetResponse struct { - XMLName xml.Name `xml:"promotionmisc_mjs_activity_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 满就送活动信息。 - MjsPromotion *MjsPromotion `json:"mjs_promotion,omitempty" xml:"mjs_promotion,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscMjsActivityListGetAPIRequest.go b/model/promotion/TaobaoPromotionmiscMjsActivityListGetAPIRequest.go new file mode 100644 index 0000000000..d9c905f93f --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscMjsActivityListGetAPIRequest.go @@ -0,0 +1,80 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询满就送活动列表 API请求 +taobao.promotionmisc.mjs.activity.list.get + +查询满就送活动列表。注意,该接口的返回值中,只包含活动的主要信息,如activity_id,name,description,start_time,end_time,type,participate_range。优惠的详细信息,请通过taobao.promotionmisc.mjs.activity.get获取。 +*/ +type TaobaoPromotionmiscMjsActivityListGetAPIRequest struct { + model.Params + // 活动类型: 1表示商品级别的活动;2表示店铺级别的活动。 + _activityType int64 + // 页码。 + _pageNo int64 + // 每页记录数,最大支持50 。 + _pageSize int64 +} + +// 初始化TaobaoPromotionmiscMjsActivityListGetAPIRequest对象 +func NewTaobaoPromotionmiscMjsActivityListGetRequest() *TaobaoPromotionmiscMjsActivityListGetAPIRequest{ + return &TaobaoPromotionmiscMjsActivityListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscMjsActivityListGetAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.mjs.activity.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscMjsActivityListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityType Setter +// 活动类型: 1表示商品级别的活动;2表示店铺级别的活动。 +func (r *TaobaoPromotionmiscMjsActivityListGetAPIRequest) SetActivityType(_activityType int64) error { + r._activityType = _activityType + r.Set("activity_type", _activityType) + return nil +} + +// ActivityType Getter +func (r TaobaoPromotionmiscMjsActivityListGetAPIRequest) GetActivityType() int64 { + return r._activityType +} +// PageNo Setter +// 页码。 +func (r *TaobaoPromotionmiscMjsActivityListGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoPromotionmiscMjsActivityListGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页记录数,最大支持50 。 +func (r *TaobaoPromotionmiscMjsActivityListGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoPromotionmiscMjsActivityListGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/promotion/TaobaoPromotionmiscMjsActivityListGetAPIResponse.go b/model/promotion/TaobaoPromotionmiscMjsActivityListGetAPIResponse.go new file mode 100644 index 0000000000..957a896a85 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscMjsActivityListGetAPIResponse.go @@ -0,0 +1,29 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询满就送活动列表 API返回值 +taobao.promotionmisc.mjs.activity.list.get + +查询满就送活动列表。注意,该接口的返回值中,只包含活动的主要信息,如activity_id,name,description,start_time,end_time,type,participate_range。优惠的详细信息,请通过taobao.promotionmisc.mjs.activity.get获取。 +*/ +type TaobaoPromotionmiscMjsActivityListGetAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscMjsActivityListGetAPIResponseModel +} + +// 查询满就送活动列表 成功返回结果 +type TaobaoPromotionmiscMjsActivityListGetAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_mjs_activity_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 只包含活动的主要信息,如activity_id,aame,description,start_time,end_time,type,participate_range。优惠的其他详细信息,请通过taobao.promotionmisc.mjs.activity.get获取。 + MjsPromotionList []MjsPromotion `json:"mjs_promotion_list,omitempty" xml:"mjs_promotion_list>mjs_promotion,omitempty"` + // 记录总条数。 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscMjsActivityListGetResponse.go b/model/promotion/TaobaoPromotionmiscMjsActivityListGetResponse.go deleted file mode 100644 index 5525ee62ab..0000000000 --- a/model/promotion/TaobaoPromotionmiscMjsActivityListGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询满就送活动列表 API返回值 -taobao.promotionmisc.mjs.activity.list.get - -查询满就送活动列表。注意,该接口的返回值中,只包含活动的主要信息,如activity_id,name,description,start_time,end_time,type,participate_range。优惠的详细信息,请通过taobao.promotionmisc.mjs.activity.get获取。 -*/ -type TaobaoPromotionmiscMjsActivityListGetAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscMjsActivityListGetResponse -} - -// 查询满就送活动列表 成功返回结果 -type TaobaoPromotionmiscMjsActivityListGetResponse struct { - XMLName xml.Name `xml:"promotionmisc_mjs_activity_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 只包含活动的主要信息,如activity_id,aame,description,start_time,end_time,type,participate_range。优惠的其他详细信息,请通过taobao.promotionmisc.mjs.activity.get获取。 - MjsPromotionList []MjsPromotion `json:"mjs_promotion_list,omitempty" xml:"mjs_promotion_list>mjs_promotion,omitempty"` - // 记录总条数。 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscMjsActivityUpdateAPIRequest.go b/model/promotion/TaobaoPromotionmiscMjsActivityUpdateAPIRequest.go new file mode 100644 index 0000000000..089ad79f35 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscMjsActivityUpdateAPIRequest.go @@ -0,0 +1,388 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改满就送活动 API请求 +taobao.promotionmisc.mjs.activity.update + +修改满就送活动。
1、该接口只修改活动基本信息和打折信息,如需要增加、删除参与该活动的商品,请调用taobao.promotionmisc.activity.range.add和taobao.promotionmisc.activity.range.remove接口。
2、使用该接口时需要同时把未做修改的字段值也传入。
3、该接口创建的优惠受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。 +*/ +type TaobaoPromotionmiscMjsActivityUpdateAPIRequest struct { + model.Params + // 活动id。 + _activityId int64 + // 活动名称。 + _name string + // 活动范围:0表示全部参与; 1表示部分商品参与。 + _participateRange int64 + // 活动开始时间。 + _startTime string + // 活动结束时间。 + _endTime string + // 是否有满元条件。 + _isAmountOver bool + // 满多少元。当is_amount_over为true时,该才字段有意义。注意:单位是分,即10000表示100元。 + _totalPrice int64 + // 满元是否上不封顶。当is_amount_over为true时,该值才有意义。当该值为true时,表示满元上不封顶,例如满100元减10元,当满200时,则减20元。。。默认为false。 + _isAmountMultiple bool + // 是否有满件条件。 + _isItemCountOver bool + // 满多少件。当is_item_count_over为true时,该值才有意义。 + _itemCount int64 + // 满件是否上不封顶。当is_amount_multiple为true时,该值才有意义。当该值为true时,表示满件上不封顶,例如满10件减2元,当满20件时,则减4元。。。 默认为false。 + _isItemMultiple bool + // 是否有店铺会员等级条件。 + _isShopMember bool + // 店铺会员等级,当is_shop_member为true时,该值才有意义。0:店铺客户;1:普通客户;2:高级会员;3:VIP会员; 4:至尊VIP会员。 + _shopMemberLevel int64 + // 是否指定用户标签。 + _isUserTag bool + // 用户标签。当is_user_tag为true时,该值才有意义。 + _userTag string + // 是否有减钱行为。 + _isDecreaseMoney bool + // 减多少钱。当is_decrease_money为true时,该值才有意义。注意:该值单位为分,即100表示1元。 + _decreaseAmount int64 + // 是否有打折行为。 + _isDiscount bool + // 折扣值。当is_discount为true时,该值才有意义。注意:800表示8折。 + _discountRate int64 + // 是否有送礼品行为。 + _isSendGift bool + // 礼品名称。当is_send_gift为true时,该值才有意义。 + _giftName string + // 礼品id,当is_send_gift为true时,该值才有意义。 1)只有填写真实的淘宝商品id时,才能生成物流单,并且在确定订单的页面上可以点击该商品名称跳转到商品详情页面。2)当礼物为实物商品时(有宝贝id),礼物必须为上架商品,不能为虚拟商品,不能为拍卖商品,不能有sku,不符合条件的,不做为礼物。 + _giftId int64 + // 商品详情的url,当is_send_gift为true时,该值才有效。 + _giftUrl string + // 是否有免邮行为。 + _isFreePost bool + // 免邮的排除地区,即,除指定地区外,其他地区包邮。当is_free_post为true时,该值才有意义。代码使用*链接,代码为行政区划代码。 + _excludeArea string +} + +// 初始化TaobaoPromotionmiscMjsActivityUpdateAPIRequest对象 +func NewTaobaoPromotionmiscMjsActivityUpdateRequest() *TaobaoPromotionmiscMjsActivityUpdateAPIRequest{ + return &TaobaoPromotionmiscMjsActivityUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.mjs.activity.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 活动id。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetActivityId() int64 { + return r._activityId +} +// Name Setter +// 活动名称。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetName() string { + return r._name +} +// ParticipateRange Setter +// 活动范围:0表示全部参与; 1表示部分商品参与。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetParticipateRange(_participateRange int64) error { + r._participateRange = _participateRange + r.Set("participate_range", _participateRange) + return nil +} + +// ParticipateRange Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetParticipateRange() int64 { + return r._participateRange +} +// StartTime Setter +// 活动开始时间。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 活动结束时间。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetEndTime() string { + return r._endTime +} +// IsAmountOver Setter +// 是否有满元条件。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsAmountOver(_isAmountOver bool) error { + r._isAmountOver = _isAmountOver + r.Set("is_amount_over", _isAmountOver) + return nil +} + +// IsAmountOver Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsAmountOver() bool { + return r._isAmountOver +} +// TotalPrice Setter +// 满多少元。当is_amount_over为true时,该才字段有意义。注意:单位是分,即10000表示100元。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetTotalPrice(_totalPrice int64) error { + r._totalPrice = _totalPrice + r.Set("total_price", _totalPrice) + return nil +} + +// TotalPrice Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetTotalPrice() int64 { + return r._totalPrice +} +// IsAmountMultiple Setter +// 满元是否上不封顶。当is_amount_over为true时,该值才有意义。当该值为true时,表示满元上不封顶,例如满100元减10元,当满200时,则减20元。。。默认为false。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsAmountMultiple(_isAmountMultiple bool) error { + r._isAmountMultiple = _isAmountMultiple + r.Set("is_amount_multiple", _isAmountMultiple) + return nil +} + +// IsAmountMultiple Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsAmountMultiple() bool { + return r._isAmountMultiple +} +// IsItemCountOver Setter +// 是否有满件条件。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsItemCountOver(_isItemCountOver bool) error { + r._isItemCountOver = _isItemCountOver + r.Set("is_item_count_over", _isItemCountOver) + return nil +} + +// IsItemCountOver Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsItemCountOver() bool { + return r._isItemCountOver +} +// ItemCount Setter +// 满多少件。当is_item_count_over为true时,该值才有意义。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetItemCount(_itemCount int64) error { + r._itemCount = _itemCount + r.Set("item_count", _itemCount) + return nil +} + +// ItemCount Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetItemCount() int64 { + return r._itemCount +} +// IsItemMultiple Setter +// 满件是否上不封顶。当is_amount_multiple为true时,该值才有意义。当该值为true时,表示满件上不封顶,例如满10件减2元,当满20件时,则减4元。。。 默认为false。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsItemMultiple(_isItemMultiple bool) error { + r._isItemMultiple = _isItemMultiple + r.Set("is_item_multiple", _isItemMultiple) + return nil +} + +// IsItemMultiple Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsItemMultiple() bool { + return r._isItemMultiple +} +// IsShopMember Setter +// 是否有店铺会员等级条件。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsShopMember(_isShopMember bool) error { + r._isShopMember = _isShopMember + r.Set("is_shop_member", _isShopMember) + return nil +} + +// IsShopMember Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsShopMember() bool { + return r._isShopMember +} +// ShopMemberLevel Setter +// 店铺会员等级,当is_shop_member为true时,该值才有意义。0:店铺客户;1:普通客户;2:高级会员;3:VIP会员; 4:至尊VIP会员。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetShopMemberLevel(_shopMemberLevel int64) error { + r._shopMemberLevel = _shopMemberLevel + r.Set("shop_member_level", _shopMemberLevel) + return nil +} + +// ShopMemberLevel Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetShopMemberLevel() int64 { + return r._shopMemberLevel +} +// IsUserTag Setter +// 是否指定用户标签。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsUserTag(_isUserTag bool) error { + r._isUserTag = _isUserTag + r.Set("is_user_tag", _isUserTag) + return nil +} + +// IsUserTag Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsUserTag() bool { + return r._isUserTag +} +// UserTag Setter +// 用户标签。当is_user_tag为true时,该值才有意义。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetUserTag(_userTag string) error { + r._userTag = _userTag + r.Set("user_tag", _userTag) + return nil +} + +// UserTag Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetUserTag() string { + return r._userTag +} +// IsDecreaseMoney Setter +// 是否有减钱行为。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsDecreaseMoney(_isDecreaseMoney bool) error { + r._isDecreaseMoney = _isDecreaseMoney + r.Set("is_decrease_money", _isDecreaseMoney) + return nil +} + +// IsDecreaseMoney Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsDecreaseMoney() bool { + return r._isDecreaseMoney +} +// DecreaseAmount Setter +// 减多少钱。当is_decrease_money为true时,该值才有意义。注意:该值单位为分,即100表示1元。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetDecreaseAmount(_decreaseAmount int64) error { + r._decreaseAmount = _decreaseAmount + r.Set("decrease_amount", _decreaseAmount) + return nil +} + +// DecreaseAmount Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetDecreaseAmount() int64 { + return r._decreaseAmount +} +// IsDiscount Setter +// 是否有打折行为。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsDiscount(_isDiscount bool) error { + r._isDiscount = _isDiscount + r.Set("is_discount", _isDiscount) + return nil +} + +// IsDiscount Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsDiscount() bool { + return r._isDiscount +} +// DiscountRate Setter +// 折扣值。当is_discount为true时,该值才有意义。注意:800表示8折。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetDiscountRate(_discountRate int64) error { + r._discountRate = _discountRate + r.Set("discount_rate", _discountRate) + return nil +} + +// DiscountRate Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetDiscountRate() int64 { + return r._discountRate +} +// IsSendGift Setter +// 是否有送礼品行为。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsSendGift(_isSendGift bool) error { + r._isSendGift = _isSendGift + r.Set("is_send_gift", _isSendGift) + return nil +} + +// IsSendGift Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsSendGift() bool { + return r._isSendGift +} +// GiftName Setter +// 礼品名称。当is_send_gift为true时,该值才有意义。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetGiftName(_giftName string) error { + r._giftName = _giftName + r.Set("gift_name", _giftName) + return nil +} + +// GiftName Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetGiftName() string { + return r._giftName +} +// GiftId Setter +// 礼品id,当is_send_gift为true时,该值才有意义。 1)只有填写真实的淘宝商品id时,才能生成物流单,并且在确定订单的页面上可以点击该商品名称跳转到商品详情页面。2)当礼物为实物商品时(有宝贝id),礼物必须为上架商品,不能为虚拟商品,不能为拍卖商品,不能有sku,不符合条件的,不做为礼物。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetGiftId(_giftId int64) error { + r._giftId = _giftId + r.Set("gift_id", _giftId) + return nil +} + +// GiftId Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetGiftId() int64 { + return r._giftId +} +// GiftUrl Setter +// 商品详情的url,当is_send_gift为true时,该值才有效。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetGiftUrl(_giftUrl string) error { + r._giftUrl = _giftUrl + r.Set("gift_url", _giftUrl) + return nil +} + +// GiftUrl Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetGiftUrl() string { + return r._giftUrl +} +// IsFreePost Setter +// 是否有免邮行为。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsFreePost(_isFreePost bool) error { + r._isFreePost = _isFreePost + r.Set("is_free_post", _isFreePost) + return nil +} + +// IsFreePost Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsFreePost() bool { + return r._isFreePost +} +// ExcludeArea Setter +// 免邮的排除地区,即,除指定地区外,其他地区包邮。当is_free_post为true时,该值才有意义。代码使用*链接,代码为行政区划代码。 +func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetExcludeArea(_excludeArea string) error { + r._excludeArea = _excludeArea + r.Set("exclude_area", _excludeArea) + return nil +} + +// ExcludeArea Getter +func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetExcludeArea() string { + return r._excludeArea +} diff --git a/model/promotion/TaobaoPromotionmiscMjsActivityUpdateAPIResponse.go b/model/promotion/TaobaoPromotionmiscMjsActivityUpdateAPIResponse.go new file mode 100644 index 0000000000..b5287455ed --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscMjsActivityUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改满就送活动 API返回值 +taobao.promotionmisc.mjs.activity.update + +修改满就送活动。
1、该接口只修改活动基本信息和打折信息,如需要增加、删除参与该活动的商品,请调用taobao.promotionmisc.activity.range.add和taobao.promotionmisc.activity.range.remove接口。
2、使用该接口时需要同时把未做修改的字段值也传入。
3、该接口创建的优惠受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。 +*/ +type TaobaoPromotionmiscMjsActivityUpdateAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscMjsActivityUpdateAPIResponseModel +} + +// 修改满就送活动 成功返回结果 +type TaobaoPromotionmiscMjsActivityUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_mjs_activity_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改是否成功。 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscMjsActivityUpdateResponse.go b/model/promotion/TaobaoPromotionmiscMjsActivityUpdateResponse.go deleted file mode 100644 index 78005e6b10..0000000000 --- a/model/promotion/TaobaoPromotionmiscMjsActivityUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改满就送活动 API返回值 -taobao.promotionmisc.mjs.activity.update - -修改满就送活动。
1、该接口只修改活动基本信息和打折信息,如需要增加、删除参与该活动的商品,请调用taobao.promotionmisc.activity.range.add和taobao.promotionmisc.activity.range.remove接口。
2、使用该接口时需要同时把未做修改的字段值也传入。
3、该接口创建的优惠受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。 -*/ -type TaobaoPromotionmiscMjsActivityUpdateAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscMjsActivityUpdateResponse -} - -// 修改满就送活动 成功返回结果 -type TaobaoPromotionmiscMjsActivityUpdateResponse struct { - XMLName xml.Name `xml:"promotionmisc_mjs_activity_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改是否成功。 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoPromotionmiscToolCheckAPIRequest.go b/model/promotion/TaobaoPromotionmiscToolCheckAPIRequest.go new file mode 100644 index 0000000000..d331e86021 --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscToolCheckAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +UMP工具检测 API请求 +taobao.promotionmisc.tool.check + +UMP工具检测。ISV通过该接口检测(通过taobao.ump.tool.add)创建的UMP工具(tool)是否符合规范,如果不符合,则返回错误信息和对应的解决方案的;工具检测通过后才可以提交工具审核邮件,提交工具审核时,需提供该接口的返回值。 +*/ +type TaobaoPromotionmiscToolCheckAPIRequest struct { + model.Params + // 工具ID, taobao.ump.tool.add成功后返回的id。 + _toolId int64 + // 可使用的元数据。PRD审核后,会告诉isv可使用的元数据。 + _metaAllow string +} + +// 初始化TaobaoPromotionmiscToolCheckAPIRequest对象 +func NewTaobaoPromotionmiscToolCheckRequest() *TaobaoPromotionmiscToolCheckAPIRequest{ + return &TaobaoPromotionmiscToolCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPromotionmiscToolCheckAPIRequest) GetApiMethodName() string { + return "taobao.promotionmisc.tool.check" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPromotionmiscToolCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ToolId Setter +// 工具ID, taobao.ump.tool.add成功后返回的id。 +func (r *TaobaoPromotionmiscToolCheckAPIRequest) SetToolId(_toolId int64) error { + r._toolId = _toolId + r.Set("tool_id", _toolId) + return nil +} + +// ToolId Getter +func (r TaobaoPromotionmiscToolCheckAPIRequest) GetToolId() int64 { + return r._toolId +} +// MetaAllow Setter +// 可使用的元数据。PRD审核后,会告诉isv可使用的元数据。 +func (r *TaobaoPromotionmiscToolCheckAPIRequest) SetMetaAllow(_metaAllow string) error { + r._metaAllow = _metaAllow + r.Set("meta_allow", _metaAllow) + return nil +} + +// MetaAllow Getter +func (r TaobaoPromotionmiscToolCheckAPIRequest) GetMetaAllow() string { + return r._metaAllow +} diff --git a/model/promotion/TaobaoPromotionmiscToolCheckAPIResponse.go b/model/promotion/TaobaoPromotionmiscToolCheckAPIResponse.go new file mode 100644 index 0000000000..14e0f89f2b --- /dev/null +++ b/model/promotion/TaobaoPromotionmiscToolCheckAPIResponse.go @@ -0,0 +1,31 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +UMP工具检测 API返回值 +taobao.promotionmisc.tool.check + +UMP工具检测。ISV通过该接口检测(通过taobao.ump.tool.add)创建的UMP工具(tool)是否符合规范,如果不符合,则返回错误信息和对应的解决方案的;工具检测通过后才可以提交工具审核邮件,提交工具审核时,需提供该接口的返回值。 +*/ +type TaobaoPromotionmiscToolCheckAPIResponse struct { + model.CommonResponse + TaobaoPromotionmiscToolCheckAPIResponseModel +} + +// UMP工具检测 成功返回结果 +type TaobaoPromotionmiscToolCheckAPIResponseModel struct { + XMLName xml.Name `xml:"promotionmisc_tool_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 工具审核结果。 + CheckToolModule *CheckToolModule `json:"check_tool_module,omitempty" xml:"check_tool_module,omitempty"` + // 工具检测动作是否成功。检测是否通过请查看返回值default_model里的is_pass。 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 接口调用错误信息描述。 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` +} diff --git a/model/promotion/TaobaoPromotionmiscToolCheckResponse.go b/model/promotion/TaobaoPromotionmiscToolCheckResponse.go deleted file mode 100644 index fc07dd622a..0000000000 --- a/model/promotion/TaobaoPromotionmiscToolCheckResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -UMP工具检测 API返回值 -taobao.promotionmisc.tool.check - -UMP工具检测。ISV通过该接口检测(通过taobao.ump.tool.add)创建的UMP工具(tool)是否符合规范,如果不符合,则返回错误信息和对应的解决方案的;工具检测通过后才可以提交工具审核邮件,提交工具审核时,需提供该接口的返回值。 -*/ -type TaobaoPromotionmiscToolCheckAPIResponse struct { - model.CommonResponse - TaobaoPromotionmiscToolCheckResponse -} - -// UMP工具检测 成功返回结果 -type TaobaoPromotionmiscToolCheckResponse struct { - XMLName xml.Name `xml:"promotionmisc_tool_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 工具审核结果。 - CheckToolModule *CheckToolModule `json:"check_tool_module,omitempty" xml:"check_tool_module,omitempty"` - // 工具检测动作是否成功。检测是否通过请查看返回值default_model里的is_pass。 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 接口调用错误信息描述。 - ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` -} diff --git a/model/promotion/TaobaoTradeOrdersortGetAPIRequest.go b/model/promotion/TaobaoTradeOrdersortGetAPIRequest.go new file mode 100644 index 0000000000..39c7f9d48a --- /dev/null +++ b/model/promotion/TaobaoTradeOrdersortGetAPIRequest.go @@ -0,0 +1,80 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取前N有礼活动的开奖订单列表 API请求 +taobao.trade.ordersort.get + +获取前N有礼活动的开奖订单列表 +*/ +type TaobaoTradeOrdersortGetAPIRequest struct { + model.Params + // 活动ID + _activityId int64 + // 页码 + _pageNo int64 + // 一页记录数, 必须写死500 + _pageSize int64 +} + +// 初始化TaobaoTradeOrdersortGetAPIRequest对象 +func NewTaobaoTradeOrdersortGetRequest() *TaobaoTradeOrdersortGetAPIRequest{ + return &TaobaoTradeOrdersortGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradeOrdersortGetAPIRequest) GetApiMethodName() string { + return "taobao.trade.ordersort.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradeOrdersortGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 活动ID +func (r *TaobaoTradeOrdersortGetAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoTradeOrdersortGetAPIRequest) GetActivityId() int64 { + return r._activityId +} +// PageNo Setter +// 页码 +func (r *TaobaoTradeOrdersortGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoTradeOrdersortGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 一页记录数, 必须写死500 +func (r *TaobaoTradeOrdersortGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTradeOrdersortGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/promotion/TaobaoTradeOrdersortGetAPIResponse.go b/model/promotion/TaobaoTradeOrdersortGetAPIResponse.go new file mode 100644 index 0000000000..b65678008d --- /dev/null +++ b/model/promotion/TaobaoTradeOrdersortGetAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取前N有礼活动的开奖订单列表 API返回值 +taobao.trade.ordersort.get + +获取前N有礼活动的开奖订单列表 +*/ +type TaobaoTradeOrdersortGetAPIResponse struct { + model.CommonResponse + TaobaoTradeOrdersortGetAPIResponseModel +} + +// 获取前N有礼活动的开奖订单列表 成功返回结果 +type TaobaoTradeOrdersortGetAPIResponseModel struct { + XMLName xml.Name `xml:"trade_ordersort_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoTradeOrdersortGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/TaobaoTradeOrdersortGetResponse.go b/model/promotion/TaobaoTradeOrdersortGetResponse.go deleted file mode 100644 index 6709630a4a..0000000000 --- a/model/promotion/TaobaoTradeOrdersortGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取前N有礼活动的开奖订单列表 API返回值 -taobao.trade.ordersort.get - -获取前N有礼活动的开奖订单列表 -*/ -type TaobaoTradeOrdersortGetAPIResponse struct { - model.CommonResponse - TaobaoTradeOrdersortGetResponse -} - -// 获取前N有礼活动的开奖订单列表 成功返回结果 -type TaobaoTradeOrdersortGetResponse struct { - XMLName xml.Name `xml:"trade_ordersort_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoTradeOrdersortGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/TaobaoUmpActivitiesGetAPIRequest.go b/model/promotion/TaobaoUmpActivitiesGetAPIRequest.go new file mode 100644 index 0000000000..e8f0d1bbb0 --- /dev/null +++ b/model/promotion/TaobaoUmpActivitiesGetAPIRequest.go @@ -0,0 +1,80 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询活动列表 API请求 +taobao.ump.activities.get + +查询活动列表 +*/ +type TaobaoUmpActivitiesGetAPIRequest struct { + model.Params + // 工具id + _toolId int64 + // 分页的页码 + _pageNo int64 + // 每页的最大条数 + _pageSize int64 +} + +// 初始化TaobaoUmpActivitiesGetAPIRequest对象 +func NewTaobaoUmpActivitiesGetRequest() *TaobaoUmpActivitiesGetAPIRequest{ + return &TaobaoUmpActivitiesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpActivitiesGetAPIRequest) GetApiMethodName() string { + return "taobao.ump.activities.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpActivitiesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ToolId Setter +// 工具id +func (r *TaobaoUmpActivitiesGetAPIRequest) SetToolId(_toolId int64) error { + r._toolId = _toolId + r.Set("tool_id", _toolId) + return nil +} + +// ToolId Getter +func (r TaobaoUmpActivitiesGetAPIRequest) GetToolId() int64 { + return r._toolId +} +// PageNo Setter +// 分页的页码 +func (r *TaobaoUmpActivitiesGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoUmpActivitiesGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页的最大条数 +func (r *TaobaoUmpActivitiesGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoUmpActivitiesGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/promotion/TaobaoUmpActivitiesGetAPIResponse.go b/model/promotion/TaobaoUmpActivitiesGetAPIResponse.go new file mode 100644 index 0000000000..ce33ac68f3 --- /dev/null +++ b/model/promotion/TaobaoUmpActivitiesGetAPIResponse.go @@ -0,0 +1,29 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询活动列表 API返回值 +taobao.ump.activities.get + +查询活动列表 +*/ +type TaobaoUmpActivitiesGetAPIResponse struct { + model.CommonResponse + TaobaoUmpActivitiesGetAPIResponseModel +} + +// 查询活动列表 成功返回结果 +type TaobaoUmpActivitiesGetAPIResponseModel struct { + XMLName xml.Name `xml:"ump_activities_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 营销活动内容,可以通过ump sdk来进行处理 + Contents []string `json:"contents,omitempty" xml:"contents>string,omitempty"` + // 记录总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/promotion/TaobaoUmpActivitiesGetResponse.go b/model/promotion/TaobaoUmpActivitiesGetResponse.go deleted file mode 100644 index fd1f7173ca..0000000000 --- a/model/promotion/TaobaoUmpActivitiesGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询活动列表 API返回值 -taobao.ump.activities.get - -查询活动列表 -*/ -type TaobaoUmpActivitiesGetAPIResponse struct { - model.CommonResponse - TaobaoUmpActivitiesGetResponse -} - -// 查询活动列表 成功返回结果 -type TaobaoUmpActivitiesGetResponse struct { - XMLName xml.Name `xml:"ump_activities_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 营销活动内容,可以通过ump sdk来进行处理 - Contents []string `json:"contents,omitempty" xml:"contents>string,omitempty"` - // 记录总数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/promotion/TaobaoUmpActivitiesListGetAPIRequest.go b/model/promotion/TaobaoUmpActivitiesListGetAPIRequest.go new file mode 100644 index 0000000000..713ae3ca55 --- /dev/null +++ b/model/promotion/TaobaoUmpActivitiesListGetAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +营销活动列表查询 API请求 +taobao.ump.activities.list.get + +按照营销活动id的列表ids,查询对应的营销活动列表。 +*/ +type TaobaoUmpActivitiesListGetAPIRequest struct { + model.Params + // 营销活动id列表。 + _ids []int64 +} + +// 初始化TaobaoUmpActivitiesListGetAPIRequest对象 +func NewTaobaoUmpActivitiesListGetRequest() *TaobaoUmpActivitiesListGetAPIRequest{ + return &TaobaoUmpActivitiesListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpActivitiesListGetAPIRequest) GetApiMethodName() string { + return "taobao.ump.activities.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpActivitiesListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Ids Setter +// 营销活动id列表。 +func (r *TaobaoUmpActivitiesListGetAPIRequest) SetIds(_ids []int64) error { + r._ids = _ids + r.Set("ids", _ids) + return nil +} + +// Ids Getter +func (r TaobaoUmpActivitiesListGetAPIRequest) GetIds() []int64 { + return r._ids +} diff --git a/model/promotion/TaobaoUmpActivitiesListGetAPIResponse.go b/model/promotion/TaobaoUmpActivitiesListGetAPIResponse.go new file mode 100644 index 0000000000..c02b118d83 --- /dev/null +++ b/model/promotion/TaobaoUmpActivitiesListGetAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +营销活动列表查询 API返回值 +taobao.ump.activities.list.get + +按照营销活动id的列表ids,查询对应的营销活动列表。 +*/ +type TaobaoUmpActivitiesListGetAPIResponse struct { + model.CommonResponse + TaobaoUmpActivitiesListGetAPIResponseModel +} + +// 营销活动列表查询 成功返回结果 +type TaobaoUmpActivitiesListGetAPIResponseModel struct { + XMLName xml.Name `xml:"ump_activities_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 营销活动列表! + Activities []string `json:"activities,omitempty" xml:"activities>string,omitempty"` +} diff --git a/model/promotion/TaobaoUmpActivitiesListGetResponse.go b/model/promotion/TaobaoUmpActivitiesListGetResponse.go deleted file mode 100644 index b68403e214..0000000000 --- a/model/promotion/TaobaoUmpActivitiesListGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -营销活动列表查询 API返回值 -taobao.ump.activities.list.get - -按照营销活动id的列表ids,查询对应的营销活动列表。 -*/ -type TaobaoUmpActivitiesListGetAPIResponse struct { - model.CommonResponse - TaobaoUmpActivitiesListGetResponse -} - -// 营销活动列表查询 成功返回结果 -type TaobaoUmpActivitiesListGetResponse struct { - XMLName xml.Name `xml:"ump_activities_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 营销活动列表! - Activities []string `json:"activities,omitempty" xml:"activities>string,omitempty"` -} diff --git a/model/promotion/TaobaoUmpActivityAddAPIRequest.go b/model/promotion/TaobaoUmpActivityAddAPIRequest.go new file mode 100644 index 0000000000..8ca3e835b5 --- /dev/null +++ b/model/promotion/TaobaoUmpActivityAddAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增优惠活动 API请求 +taobao.ump.activity.add + +新增优惠活动。设置优惠活动的基本信息,比如活动时间,活动针对的对象(可以是满足某些条件的买家) +*/ +type TaobaoUmpActivityAddAPIRequest struct { + model.Params + // 工具id + _toolId int64 + // 活动内容,通过ump sdk里面的MarkeitngTool来生成,name必须属于“营销标签词库”——https://huodong.m.taobao.com/api/data/v2/5fe5e737d3314fa2973297f86f7bff3a.js?file=5fe5e737d3314fa2973297f86f7bff3a.js中的word值中的一种。 + _content string +} + +// 初始化TaobaoUmpActivityAddAPIRequest对象 +func NewTaobaoUmpActivityAddRequest() *TaobaoUmpActivityAddAPIRequest{ + return &TaobaoUmpActivityAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpActivityAddAPIRequest) GetApiMethodName() string { + return "taobao.ump.activity.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpActivityAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ToolId Setter +// 工具id +func (r *TaobaoUmpActivityAddAPIRequest) SetToolId(_toolId int64) error { + r._toolId = _toolId + r.Set("tool_id", _toolId) + return nil +} + +// ToolId Getter +func (r TaobaoUmpActivityAddAPIRequest) GetToolId() int64 { + return r._toolId +} +// Content Setter +// 活动内容,通过ump sdk里面的MarkeitngTool来生成,name必须属于“营销标签词库”——https://huodong.m.taobao.com/api/data/v2/5fe5e737d3314fa2973297f86f7bff3a.js?file=5fe5e737d3314fa2973297f86f7bff3a.js中的word值中的一种。 +func (r *TaobaoUmpActivityAddAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r TaobaoUmpActivityAddAPIRequest) GetContent() string { + return r._content +} diff --git a/model/promotion/TaobaoUmpActivityAddAPIResponse.go b/model/promotion/TaobaoUmpActivityAddAPIResponse.go new file mode 100644 index 0000000000..c608c0703a --- /dev/null +++ b/model/promotion/TaobaoUmpActivityAddAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增优惠活动 API返回值 +taobao.ump.activity.add + +新增优惠活动。设置优惠活动的基本信息,比如活动时间,活动针对的对象(可以是满足某些条件的买家) +*/ +type TaobaoUmpActivityAddAPIResponse struct { + model.CommonResponse + TaobaoUmpActivityAddAPIResponseModel +} + +// 新增优惠活动 成功返回结果 +type TaobaoUmpActivityAddAPIResponseModel struct { + XMLName xml.Name `xml:"ump_activity_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 活动id + ActId int64 `json:"act_id,omitempty" xml:"act_id,omitempty"` +} diff --git a/model/promotion/TaobaoUmpActivityAddResponse.go b/model/promotion/TaobaoUmpActivityAddResponse.go deleted file mode 100644 index 4a80f512fd..0000000000 --- a/model/promotion/TaobaoUmpActivityAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增优惠活动 API返回值 -taobao.ump.activity.add - -新增优惠活动。设置优惠活动的基本信息,比如活动时间,活动针对的对象(可以是满足某些条件的买家) -*/ -type TaobaoUmpActivityAddAPIResponse struct { - model.CommonResponse - TaobaoUmpActivityAddResponse -} - -// 新增优惠活动 成功返回结果 -type TaobaoUmpActivityAddResponse struct { - XMLName xml.Name `xml:"ump_activity_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 活动id - ActId int64 `json:"act_id,omitempty" xml:"act_id,omitempty"` -} diff --git a/model/promotion/TaobaoUmpActivityDeleteAPIRequest.go b/model/promotion/TaobaoUmpActivityDeleteAPIRequest.go new file mode 100644 index 0000000000..6b34980b70 --- /dev/null +++ b/model/promotion/TaobaoUmpActivityDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除营销活动 API请求 +taobao.ump.activity.delete + +删除营销活动。对应的活动详情等将会被全部删除。 +*/ +type TaobaoUmpActivityDeleteAPIRequest struct { + model.Params + // 活动id + _actId int64 +} + +// 初始化TaobaoUmpActivityDeleteAPIRequest对象 +func NewTaobaoUmpActivityDeleteRequest() *TaobaoUmpActivityDeleteAPIRequest{ + return &TaobaoUmpActivityDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpActivityDeleteAPIRequest) GetApiMethodName() string { + return "taobao.ump.activity.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpActivityDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActId Setter +// 活动id +func (r *TaobaoUmpActivityDeleteAPIRequest) SetActId(_actId int64) error { + r._actId = _actId + r.Set("act_id", _actId) + return nil +} + +// ActId Getter +func (r TaobaoUmpActivityDeleteAPIRequest) GetActId() int64 { + return r._actId +} diff --git a/model/promotion/TaobaoUmpActivityDeleteAPIResponse.go b/model/promotion/TaobaoUmpActivityDeleteAPIResponse.go new file mode 100644 index 0000000000..e0e05b08c5 --- /dev/null +++ b/model/promotion/TaobaoUmpActivityDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除营销活动 API返回值 +taobao.ump.activity.delete + +删除营销活动。对应的活动详情等将会被全部删除。 +*/ +type TaobaoUmpActivityDeleteAPIResponse struct { + model.CommonResponse + TaobaoUmpActivityDeleteAPIResponseModel +} + +// 删除营销活动 成功返回结果 +type TaobaoUmpActivityDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"ump_activity_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoUmpActivityDeleteResponse.go b/model/promotion/TaobaoUmpActivityDeleteResponse.go deleted file mode 100644 index 1ea4d0d357..0000000000 --- a/model/promotion/TaobaoUmpActivityDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除营销活动 API返回值 -taobao.ump.activity.delete - -删除营销活动。对应的活动详情等将会被全部删除。 -*/ -type TaobaoUmpActivityDeleteAPIResponse struct { - model.CommonResponse - TaobaoUmpActivityDeleteResponse -} - -// 删除营销活动 成功返回结果 -type TaobaoUmpActivityDeleteResponse struct { - XMLName xml.Name `xml:"ump_activity_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoUmpActivityGetAPIRequest.go b/model/promotion/TaobaoUmpActivityGetAPIRequest.go new file mode 100644 index 0000000000..917d448795 --- /dev/null +++ b/model/promotion/TaobaoUmpActivityGetAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询营销活动 API请求 +taobao.ump.activity.get + +查询营销活动 +*/ +type TaobaoUmpActivityGetAPIRequest struct { + model.Params + // 活动id + _actId int64 +} + +// 初始化TaobaoUmpActivityGetAPIRequest对象 +func NewTaobaoUmpActivityGetRequest() *TaobaoUmpActivityGetAPIRequest{ + return &TaobaoUmpActivityGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpActivityGetAPIRequest) GetApiMethodName() string { + return "taobao.ump.activity.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpActivityGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActId Setter +// 活动id +func (r *TaobaoUmpActivityGetAPIRequest) SetActId(_actId int64) error { + r._actId = _actId + r.Set("act_id", _actId) + return nil +} + +// ActId Getter +func (r TaobaoUmpActivityGetAPIRequest) GetActId() int64 { + return r._actId +} diff --git a/model/promotion/TaobaoUmpActivityGetAPIResponse.go b/model/promotion/TaobaoUmpActivityGetAPIResponse.go new file mode 100644 index 0000000000..4a967fd921 --- /dev/null +++ b/model/promotion/TaobaoUmpActivityGetAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询营销活动 API返回值 +taobao.ump.activity.get + +查询营销活动 +*/ +type TaobaoUmpActivityGetAPIResponse struct { + model.CommonResponse + TaobaoUmpActivityGetAPIResponseModel +} + +// 查询营销活动 成功返回结果 +type TaobaoUmpActivityGetAPIResponseModel struct { + XMLName xml.Name `xml:"ump_activity_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 营销活动的内容,可以通过ump sdk中的marketingTool来完成对该内容的处理 + Content string `json:"content,omitempty" xml:"content,omitempty"` +} diff --git a/model/promotion/TaobaoUmpActivityGetResponse.go b/model/promotion/TaobaoUmpActivityGetResponse.go deleted file mode 100644 index ef2d244373..0000000000 --- a/model/promotion/TaobaoUmpActivityGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询营销活动 API返回值 -taobao.ump.activity.get - -查询营销活动 -*/ -type TaobaoUmpActivityGetAPIResponse struct { - model.CommonResponse - TaobaoUmpActivityGetResponse -} - -// 查询营销活动 成功返回结果 -type TaobaoUmpActivityGetResponse struct { - XMLName xml.Name `xml:"ump_activity_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 营销活动的内容,可以通过ump sdk中的marketingTool来完成对该内容的处理 - Content string `json:"content,omitempty" xml:"content,omitempty"` -} diff --git a/model/promotion/TaobaoUmpActivityUpdateAPIRequest.go b/model/promotion/TaobaoUmpActivityUpdateAPIRequest.go new file mode 100644 index 0000000000..c322c542d1 --- /dev/null +++ b/model/promotion/TaobaoUmpActivityUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改活动信息 API请求 +taobao.ump.activity.update + +修改营销活动 +*/ +type TaobaoUmpActivityUpdateAPIRequest struct { + model.Params + // 活动id + _actId int64 + // 营销活动内容,json格式,通过ump sdk 的marketingTool来生成 + _content string +} + +// 初始化TaobaoUmpActivityUpdateAPIRequest对象 +func NewTaobaoUmpActivityUpdateRequest() *TaobaoUmpActivityUpdateAPIRequest{ + return &TaobaoUmpActivityUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpActivityUpdateAPIRequest) GetApiMethodName() string { + return "taobao.ump.activity.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpActivityUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActId Setter +// 活动id +func (r *TaobaoUmpActivityUpdateAPIRequest) SetActId(_actId int64) error { + r._actId = _actId + r.Set("act_id", _actId) + return nil +} + +// ActId Getter +func (r TaobaoUmpActivityUpdateAPIRequest) GetActId() int64 { + return r._actId +} +// Content Setter +// 营销活动内容,json格式,通过ump sdk 的marketingTool来生成 +func (r *TaobaoUmpActivityUpdateAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r TaobaoUmpActivityUpdateAPIRequest) GetContent() string { + return r._content +} diff --git a/model/promotion/TaobaoUmpActivityUpdateAPIResponse.go b/model/promotion/TaobaoUmpActivityUpdateAPIResponse.go new file mode 100644 index 0000000000..ac2becbab5 --- /dev/null +++ b/model/promotion/TaobaoUmpActivityUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改活动信息 API返回值 +taobao.ump.activity.update + +修改营销活动 +*/ +type TaobaoUmpActivityUpdateAPIResponse struct { + model.CommonResponse + TaobaoUmpActivityUpdateAPIResponseModel +} + +// 修改活动信息 成功返回结果 +type TaobaoUmpActivityUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"ump_activity_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoUmpActivityUpdateResponse.go b/model/promotion/TaobaoUmpActivityUpdateResponse.go deleted file mode 100644 index 012866009c..0000000000 --- a/model/promotion/TaobaoUmpActivityUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改活动信息 API返回值 -taobao.ump.activity.update - -修改营销活动 -*/ -type TaobaoUmpActivityUpdateAPIResponse struct { - model.CommonResponse - TaobaoUmpActivityUpdateResponse -} - -// 修改活动信息 成功返回结果 -type TaobaoUmpActivityUpdateResponse struct { - XMLName xml.Name `xml:"ump_activity_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoUmpDetailAddAPIRequest.go b/model/promotion/TaobaoUmpDetailAddAPIRequest.go new file mode 100644 index 0000000000..062be6e8ce --- /dev/null +++ b/model/promotion/TaobaoUmpDetailAddAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增活动详情 API请求 +taobao.ump.detail.add + +增加活动详情。活动详情里面包括活动的范围(店铺,商品),活动的参数(比如具体的折扣),参与类型(全部,部分,部分不参加)等信息。当参与类型为部分或部分不参加的时候需要和taobao.ump.range.add来配合使用。 +*/ +type TaobaoUmpDetailAddAPIRequest struct { + model.Params + // 增加工具详情 + _actId int64 + // 活动详情内容,json格式,可以通过ump sdk中的MarketingTool来进行处理 + _content string +} + +// 初始化TaobaoUmpDetailAddAPIRequest对象 +func NewTaobaoUmpDetailAddRequest() *TaobaoUmpDetailAddAPIRequest{ + return &TaobaoUmpDetailAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpDetailAddAPIRequest) GetApiMethodName() string { + return "taobao.ump.detail.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpDetailAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActId Setter +// 增加工具详情 +func (r *TaobaoUmpDetailAddAPIRequest) SetActId(_actId int64) error { + r._actId = _actId + r.Set("act_id", _actId) + return nil +} + +// ActId Getter +func (r TaobaoUmpDetailAddAPIRequest) GetActId() int64 { + return r._actId +} +// Content Setter +// 活动详情内容,json格式,可以通过ump sdk中的MarketingTool来进行处理 +func (r *TaobaoUmpDetailAddAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r TaobaoUmpDetailAddAPIRequest) GetContent() string { + return r._content +} diff --git a/model/promotion/TaobaoUmpDetailAddAPIResponse.go b/model/promotion/TaobaoUmpDetailAddAPIResponse.go new file mode 100644 index 0000000000..59e2a75b24 --- /dev/null +++ b/model/promotion/TaobaoUmpDetailAddAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增活动详情 API返回值 +taobao.ump.detail.add + +增加活动详情。活动详情里面包括活动的范围(店铺,商品),活动的参数(比如具体的折扣),参与类型(全部,部分,部分不参加)等信息。当参与类型为部分或部分不参加的时候需要和taobao.ump.range.add来配合使用。 +*/ +type TaobaoUmpDetailAddAPIResponse struct { + model.CommonResponse + TaobaoUmpDetailAddAPIResponseModel +} + +// 新增活动详情 成功返回结果 +type TaobaoUmpDetailAddAPIResponseModel struct { + XMLName xml.Name `xml:"ump_detail_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 活动详情的id + DetailId int64 `json:"detail_id,omitempty" xml:"detail_id,omitempty"` +} diff --git a/model/promotion/TaobaoUmpDetailAddResponse.go b/model/promotion/TaobaoUmpDetailAddResponse.go deleted file mode 100644 index 1fcab0e730..0000000000 --- a/model/promotion/TaobaoUmpDetailAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增活动详情 API返回值 -taobao.ump.detail.add - -增加活动详情。活动详情里面包括活动的范围(店铺,商品),活动的参数(比如具体的折扣),参与类型(全部,部分,部分不参加)等信息。当参与类型为部分或部分不参加的时候需要和taobao.ump.range.add来配合使用。 -*/ -type TaobaoUmpDetailAddAPIResponse struct { - model.CommonResponse - TaobaoUmpDetailAddResponse -} - -// 新增活动详情 成功返回结果 -type TaobaoUmpDetailAddResponse struct { - XMLName xml.Name `xml:"ump_detail_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 活动详情的id - DetailId int64 `json:"detail_id,omitempty" xml:"detail_id,omitempty"` -} diff --git a/model/promotion/TaobaoUmpDetailDeleteAPIRequest.go b/model/promotion/TaobaoUmpDetailDeleteAPIRequest.go new file mode 100644 index 0000000000..2eb2c9f30d --- /dev/null +++ b/model/promotion/TaobaoUmpDetailDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除活动详情 API请求 +taobao.ump.detail.delete + +删除活动详情 +*/ +type TaobaoUmpDetailDeleteAPIRequest struct { + model.Params + // 活动详情id + _detailId int64 +} + +// 初始化TaobaoUmpDetailDeleteAPIRequest对象 +func NewTaobaoUmpDetailDeleteRequest() *TaobaoUmpDetailDeleteAPIRequest{ + return &TaobaoUmpDetailDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpDetailDeleteAPIRequest) GetApiMethodName() string { + return "taobao.ump.detail.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpDetailDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DetailId Setter +// 活动详情id +func (r *TaobaoUmpDetailDeleteAPIRequest) SetDetailId(_detailId int64) error { + r._detailId = _detailId + r.Set("detail_id", _detailId) + return nil +} + +// DetailId Getter +func (r TaobaoUmpDetailDeleteAPIRequest) GetDetailId() int64 { + return r._detailId +} diff --git a/model/promotion/TaobaoUmpDetailDeleteAPIResponse.go b/model/promotion/TaobaoUmpDetailDeleteAPIResponse.go new file mode 100644 index 0000000000..8cc27dd43e --- /dev/null +++ b/model/promotion/TaobaoUmpDetailDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除活动详情 API返回值 +taobao.ump.detail.delete + +删除活动详情 +*/ +type TaobaoUmpDetailDeleteAPIResponse struct { + model.CommonResponse + TaobaoUmpDetailDeleteAPIResponseModel +} + +// 删除活动详情 成功返回结果 +type TaobaoUmpDetailDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"ump_detail_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoUmpDetailDeleteResponse.go b/model/promotion/TaobaoUmpDetailDeleteResponse.go deleted file mode 100644 index 722b4fbdf7..0000000000 --- a/model/promotion/TaobaoUmpDetailDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除活动详情 API返回值 -taobao.ump.detail.delete - -删除活动详情 -*/ -type TaobaoUmpDetailDeleteAPIResponse struct { - model.CommonResponse - TaobaoUmpDetailDeleteResponse -} - -// 删除活动详情 成功返回结果 -type TaobaoUmpDetailDeleteResponse struct { - XMLName xml.Name `xml:"ump_detail_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoUmpDetailGetAPIRequest.go b/model/promotion/TaobaoUmpDetailGetAPIRequest.go new file mode 100644 index 0000000000..e8a9d05474 --- /dev/null +++ b/model/promotion/TaobaoUmpDetailGetAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询活动详情 API请求 +taobao.ump.detail.get + +查询活动详情 +*/ +type TaobaoUmpDetailGetAPIRequest struct { + model.Params + // 活动详情的id + _detailId int64 +} + +// 初始化TaobaoUmpDetailGetAPIRequest对象 +func NewTaobaoUmpDetailGetRequest() *TaobaoUmpDetailGetAPIRequest{ + return &TaobaoUmpDetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpDetailGetAPIRequest) GetApiMethodName() string { + return "taobao.ump.detail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpDetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DetailId Setter +// 活动详情的id +func (r *TaobaoUmpDetailGetAPIRequest) SetDetailId(_detailId int64) error { + r._detailId = _detailId + r.Set("detail_id", _detailId) + return nil +} + +// DetailId Getter +func (r TaobaoUmpDetailGetAPIRequest) GetDetailId() int64 { + return r._detailId +} diff --git a/model/promotion/TaobaoUmpDetailGetAPIResponse.go b/model/promotion/TaobaoUmpDetailGetAPIResponse.go new file mode 100644 index 0000000000..2bba707bbc --- /dev/null +++ b/model/promotion/TaobaoUmpDetailGetAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询活动详情 API返回值 +taobao.ump.detail.get + +查询活动详情 +*/ +type TaobaoUmpDetailGetAPIResponse struct { + model.CommonResponse + TaobaoUmpDetailGetAPIResponseModel +} + +// 查询活动详情 成功返回结果 +type TaobaoUmpDetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"ump_detail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 活动详情信息,可以通过ump sdk中的MarketingTool来进行处理 + Content string `json:"content,omitempty" xml:"content,omitempty"` +} diff --git a/model/promotion/TaobaoUmpDetailGetResponse.go b/model/promotion/TaobaoUmpDetailGetResponse.go deleted file mode 100644 index 03f9883794..0000000000 --- a/model/promotion/TaobaoUmpDetailGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询活动详情 API返回值 -taobao.ump.detail.get - -查询活动详情 -*/ -type TaobaoUmpDetailGetAPIResponse struct { - model.CommonResponse - TaobaoUmpDetailGetResponse -} - -// 查询活动详情 成功返回结果 -type TaobaoUmpDetailGetResponse struct { - XMLName xml.Name `xml:"ump_detail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 活动详情信息,可以通过ump sdk中的MarketingTool来进行处理 - Content string `json:"content,omitempty" xml:"content,omitempty"` -} diff --git a/model/promotion/TaobaoUmpDetailListAddAPIRequest.go b/model/promotion/TaobaoUmpDetailListAddAPIRequest.go new file mode 100644 index 0000000000..61669da806 --- /dev/null +++ b/model/promotion/TaobaoUmpDetailListAddAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +营销详情添加 API请求 +taobao.ump.detail.list.add + +批量添加营销活动。替代单条添加营销详情的的API。此接口适用针对某个营销活动的多档设置,会按顺序插入detail。若在整个事务过程中出现断点,会将已插入完成的detail_id返回,注意记录这些id,并将其删除,会对交易过程中的优惠产生影响。 +*/ +type TaobaoUmpDetailListAddAPIRequest struct { + model.Params + // 营销活动id。 + _actId int64 + // 营销详情的列表。此列表由detail的json字符串组成。最多插入为10个。 + _details string +} + +// 初始化TaobaoUmpDetailListAddAPIRequest对象 +func NewTaobaoUmpDetailListAddRequest() *TaobaoUmpDetailListAddAPIRequest{ + return &TaobaoUmpDetailListAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpDetailListAddAPIRequest) GetApiMethodName() string { + return "taobao.ump.detail.list.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpDetailListAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActId Setter +// 营销活动id。 +func (r *TaobaoUmpDetailListAddAPIRequest) SetActId(_actId int64) error { + r._actId = _actId + r.Set("act_id", _actId) + return nil +} + +// ActId Getter +func (r TaobaoUmpDetailListAddAPIRequest) GetActId() int64 { + return r._actId +} +// Details Setter +// 营销详情的列表。此列表由detail的json字符串组成。最多插入为10个。 +func (r *TaobaoUmpDetailListAddAPIRequest) SetDetails(_details string) error { + r._details = _details + r.Set("details", _details) + return nil +} + +// Details Getter +func (r TaobaoUmpDetailListAddAPIRequest) GetDetails() string { + return r._details +} diff --git a/model/promotion/TaobaoUmpDetailListAddAPIResponse.go b/model/promotion/TaobaoUmpDetailListAddAPIResponse.go new file mode 100644 index 0000000000..bf832c07d6 --- /dev/null +++ b/model/promotion/TaobaoUmpDetailListAddAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +营销详情添加 API返回值 +taobao.ump.detail.list.add + +批量添加营销活动。替代单条添加营销详情的的API。此接口适用针对某个营销活动的多档设置,会按顺序插入detail。若在整个事务过程中出现断点,会将已插入完成的detail_id返回,注意记录这些id,并将其删除,会对交易过程中的优惠产生影响。 +*/ +type TaobaoUmpDetailListAddAPIResponse struct { + model.CommonResponse + TaobaoUmpDetailListAddAPIResponseModel +} + +// 营销详情添加 成功返回结果 +type TaobaoUmpDetailListAddAPIResponseModel struct { + XMLName xml.Name `xml:"ump_detail_list_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对应的营销详情的id列表!若有某一条插入失败,会将插入成功的detail_id放到errorMessage里面返回,此时errorMessage里面会包含格式为(id1,id2,id3)的插入成功id列表。这些ids会对交易产生影响,通过截取此信息,将对应detail删除! + DetailIdList []int64 `json:"detail_id_list,omitempty" xml:"detail_id_list>int64,omitempty"` +} diff --git a/model/promotion/TaobaoUmpDetailListAddResponse.go b/model/promotion/TaobaoUmpDetailListAddResponse.go deleted file mode 100644 index b5e6faf7e6..0000000000 --- a/model/promotion/TaobaoUmpDetailListAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -营销详情添加 API返回值 -taobao.ump.detail.list.add - -批量添加营销活动。替代单条添加营销详情的的API。此接口适用针对某个营销活动的多档设置,会按顺序插入detail。若在整个事务过程中出现断点,会将已插入完成的detail_id返回,注意记录这些id,并将其删除,会对交易过程中的优惠产生影响。 -*/ -type TaobaoUmpDetailListAddAPIResponse struct { - model.CommonResponse - TaobaoUmpDetailListAddResponse -} - -// 营销详情添加 成功返回结果 -type TaobaoUmpDetailListAddResponse struct { - XMLName xml.Name `xml:"ump_detail_list_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对应的营销详情的id列表!若有某一条插入失败,会将插入成功的detail_id放到errorMessage里面返回,此时errorMessage里面会包含格式为(id1,id2,id3)的插入成功id列表。这些ids会对交易产生影响,通过截取此信息,将对应detail删除! - DetailIdList []int64 `json:"detail_id_list,omitempty" xml:"detail_id_list>int64,omitempty"` -} diff --git a/model/promotion/TaobaoUmpDetailUpdateAPIRequest.go b/model/promotion/TaobaoUmpDetailUpdateAPIRequest.go new file mode 100644 index 0000000000..3021ffe965 --- /dev/null +++ b/model/promotion/TaobaoUmpDetailUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改活动详情 API请求 +taobao.ump.detail.update + +更新活动详情 +*/ +type TaobaoUmpDetailUpdateAPIRequest struct { + model.Params + // 活动详情id + _detailId int64 + // 活动详情内容,可以通过ump sdk中的MarketingTool来生成这个内容 + _content string +} + +// 初始化TaobaoUmpDetailUpdateAPIRequest对象 +func NewTaobaoUmpDetailUpdateRequest() *TaobaoUmpDetailUpdateAPIRequest{ + return &TaobaoUmpDetailUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpDetailUpdateAPIRequest) GetApiMethodName() string { + return "taobao.ump.detail.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpDetailUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DetailId Setter +// 活动详情id +func (r *TaobaoUmpDetailUpdateAPIRequest) SetDetailId(_detailId int64) error { + r._detailId = _detailId + r.Set("detail_id", _detailId) + return nil +} + +// DetailId Getter +func (r TaobaoUmpDetailUpdateAPIRequest) GetDetailId() int64 { + return r._detailId +} +// Content Setter +// 活动详情内容,可以通过ump sdk中的MarketingTool来生成这个内容 +func (r *TaobaoUmpDetailUpdateAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r TaobaoUmpDetailUpdateAPIRequest) GetContent() string { + return r._content +} diff --git a/model/promotion/TaobaoUmpDetailUpdateAPIResponse.go b/model/promotion/TaobaoUmpDetailUpdateAPIResponse.go new file mode 100644 index 0000000000..9ebee13cd0 --- /dev/null +++ b/model/promotion/TaobaoUmpDetailUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改活动详情 API返回值 +taobao.ump.detail.update + +更新活动详情 +*/ +type TaobaoUmpDetailUpdateAPIResponse struct { + model.CommonResponse + TaobaoUmpDetailUpdateAPIResponseModel +} + +// 修改活动详情 成功返回结果 +type TaobaoUmpDetailUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"ump_detail_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoUmpDetailUpdateResponse.go b/model/promotion/TaobaoUmpDetailUpdateResponse.go deleted file mode 100644 index 5e006dc60f..0000000000 --- a/model/promotion/TaobaoUmpDetailUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改活动详情 API返回值 -taobao.ump.detail.update - -更新活动详情 -*/ -type TaobaoUmpDetailUpdateAPIResponse struct { - model.CommonResponse - TaobaoUmpDetailUpdateResponse -} - -// 修改活动详情 成功返回结果 -type TaobaoUmpDetailUpdateResponse struct { - XMLName xml.Name `xml:"ump_detail_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoUmpDetailsGetAPIRequest.go b/model/promotion/TaobaoUmpDetailsGetAPIRequest.go new file mode 100644 index 0000000000..38720c7756 --- /dev/null +++ b/model/promotion/TaobaoUmpDetailsGetAPIRequest.go @@ -0,0 +1,80 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询活动详情列表 API请求 +taobao.ump.details.get + +分页查询优惠详情列表 +*/ +type TaobaoUmpDetailsGetAPIRequest struct { + model.Params + // 营销活动id + _actId int64 + // 分页的页码 + _pageNo int64 + // 每页的最大条数 + _pageSize int64 +} + +// 初始化TaobaoUmpDetailsGetAPIRequest对象 +func NewTaobaoUmpDetailsGetRequest() *TaobaoUmpDetailsGetAPIRequest{ + return &TaobaoUmpDetailsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpDetailsGetAPIRequest) GetApiMethodName() string { + return "taobao.ump.details.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpDetailsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActId Setter +// 营销活动id +func (r *TaobaoUmpDetailsGetAPIRequest) SetActId(_actId int64) error { + r._actId = _actId + r.Set("act_id", _actId) + return nil +} + +// ActId Getter +func (r TaobaoUmpDetailsGetAPIRequest) GetActId() int64 { + return r._actId +} +// PageNo Setter +// 分页的页码 +func (r *TaobaoUmpDetailsGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoUmpDetailsGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页的最大条数 +func (r *TaobaoUmpDetailsGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoUmpDetailsGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/promotion/TaobaoUmpDetailsGetAPIResponse.go b/model/promotion/TaobaoUmpDetailsGetAPIResponse.go new file mode 100644 index 0000000000..d5a169b57a --- /dev/null +++ b/model/promotion/TaobaoUmpDetailsGetAPIResponse.go @@ -0,0 +1,29 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询活动详情列表 API返回值 +taobao.ump.details.get + +分页查询优惠详情列表 +*/ +type TaobaoUmpDetailsGetAPIResponse struct { + model.CommonResponse + TaobaoUmpDetailsGetAPIResponseModel +} + +// 查询活动详情列表 成功返回结果 +type TaobaoUmpDetailsGetAPIResponseModel struct { + XMLName xml.Name `xml:"ump_details_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 活动详情的信息 + Contents []string `json:"contents,omitempty" xml:"contents>string,omitempty"` + // 记录总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/promotion/TaobaoUmpDetailsGetResponse.go b/model/promotion/TaobaoUmpDetailsGetResponse.go deleted file mode 100644 index 07f7e6739f..0000000000 --- a/model/promotion/TaobaoUmpDetailsGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询活动详情列表 API返回值 -taobao.ump.details.get - -分页查询优惠详情列表 -*/ -type TaobaoUmpDetailsGetAPIResponse struct { - model.CommonResponse - TaobaoUmpDetailsGetResponse -} - -// 查询活动详情列表 成功返回结果 -type TaobaoUmpDetailsGetResponse struct { - XMLName xml.Name `xml:"ump_details_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 活动详情的信息 - Contents []string `json:"contents,omitempty" xml:"contents>string,omitempty"` - // 记录总数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/promotion/TaobaoUmpMbbGetbycodeAPIRequest.go b/model/promotion/TaobaoUmpMbbGetbycodeAPIRequest.go new file mode 100644 index 0000000000..cdaaa53c46 --- /dev/null +++ b/model/promotion/TaobaoUmpMbbGetbycodeAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据营销积木块代码获取积木块 API请求 +taobao.ump.mbb.getbycode + +根据营销积木块代码获取积木块。接口返回该代码最新版本的积木块。如果要查询某个非最新版本的积木块,可以使用积木块id查询接口。 +*/ +type TaobaoUmpMbbGetbycodeAPIRequest struct { + model.Params + // 营销积木块code + _code string +} + +// 初始化TaobaoUmpMbbGetbycodeAPIRequest对象 +func NewTaobaoUmpMbbGetbycodeRequest() *TaobaoUmpMbbGetbycodeAPIRequest{ + return &TaobaoUmpMbbGetbycodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpMbbGetbycodeAPIRequest) GetApiMethodName() string { + return "taobao.ump.mbb.getbycode" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpMbbGetbycodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 营销积木块code +func (r *TaobaoUmpMbbGetbycodeAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r TaobaoUmpMbbGetbycodeAPIRequest) GetCode() string { + return r._code +} diff --git a/model/promotion/TaobaoUmpMbbGetbycodeAPIResponse.go b/model/promotion/TaobaoUmpMbbGetbycodeAPIResponse.go new file mode 100644 index 0000000000..7d72e9e383 --- /dev/null +++ b/model/promotion/TaobaoUmpMbbGetbycodeAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据营销积木块代码获取积木块 API返回值 +taobao.ump.mbb.getbycode + +根据营销积木块代码获取积木块。接口返回该代码最新版本的积木块。如果要查询某个非最新版本的积木块,可以使用积木块id查询接口。 +*/ +type TaobaoUmpMbbGetbycodeAPIResponse struct { + model.CommonResponse + TaobaoUmpMbbGetbycodeAPIResponseModel +} + +// 根据营销积木块代码获取积木块 成功返回结果 +type TaobaoUmpMbbGetbycodeAPIResponseModel struct { + XMLName xml.Name `xml:"ump_mbb_getbycode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 营销积木块的内容,通过ump sdk来进行处理 + Mbb string `json:"mbb,omitempty" xml:"mbb,omitempty"` +} diff --git a/model/promotion/TaobaoUmpMbbGetbycodeResponse.go b/model/promotion/TaobaoUmpMbbGetbycodeResponse.go deleted file mode 100644 index 08d23e005e..0000000000 --- a/model/promotion/TaobaoUmpMbbGetbycodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据营销积木块代码获取积木块 API返回值 -taobao.ump.mbb.getbycode - -根据营销积木块代码获取积木块。接口返回该代码最新版本的积木块。如果要查询某个非最新版本的积木块,可以使用积木块id查询接口。 -*/ -type TaobaoUmpMbbGetbycodeAPIResponse struct { - model.CommonResponse - TaobaoUmpMbbGetbycodeResponse -} - -// 根据营销积木块代码获取积木块 成功返回结果 -type TaobaoUmpMbbGetbycodeResponse struct { - XMLName xml.Name `xml:"ump_mbb_getbycode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 营销积木块的内容,通过ump sdk来进行处理 - Mbb string `json:"mbb,omitempty" xml:"mbb,omitempty"` -} diff --git a/model/promotion/TaobaoUmpMbbGetbyidAPIRequest.go b/model/promotion/TaobaoUmpMbbGetbyidAPIRequest.go new file mode 100644 index 0000000000..6d3e076709 --- /dev/null +++ b/model/promotion/TaobaoUmpMbbGetbyidAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取营销积木块 API请求 +taobao.ump.mbb.getbyid + +根据积木块id获取营销积木块。 +*/ +type TaobaoUmpMbbGetbyidAPIRequest struct { + model.Params + // 积木块的id + _id int64 +} + +// 初始化TaobaoUmpMbbGetbyidAPIRequest对象 +func NewTaobaoUmpMbbGetbyidRequest() *TaobaoUmpMbbGetbyidAPIRequest{ + return &TaobaoUmpMbbGetbyidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpMbbGetbyidAPIRequest) GetApiMethodName() string { + return "taobao.ump.mbb.getbyid" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpMbbGetbyidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 积木块的id +func (r *TaobaoUmpMbbGetbyidAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TaobaoUmpMbbGetbyidAPIRequest) GetId() int64 { + return r._id +} diff --git a/model/promotion/TaobaoUmpMbbGetbyidAPIResponse.go b/model/promotion/TaobaoUmpMbbGetbyidAPIResponse.go new file mode 100644 index 0000000000..76c2b6615d --- /dev/null +++ b/model/promotion/TaobaoUmpMbbGetbyidAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取营销积木块 API返回值 +taobao.ump.mbb.getbyid + +根据积木块id获取营销积木块。 +*/ +type TaobaoUmpMbbGetbyidAPIResponse struct { + model.CommonResponse + TaobaoUmpMbbGetbyidAPIResponseModel +} + +// 获取营销积木块 成功返回结果 +type TaobaoUmpMbbGetbyidAPIResponseModel struct { + XMLName xml.Name `xml:"ump_mbb_getbyid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 营销积木块定义信息,可以通过ump sdk里面的MBB.fromJson来处理 + Mbb string `json:"mbb,omitempty" xml:"mbb,omitempty"` +} diff --git a/model/promotion/TaobaoUmpMbbGetbyidResponse.go b/model/promotion/TaobaoUmpMbbGetbyidResponse.go deleted file mode 100644 index 09d2d3f4e5..0000000000 --- a/model/promotion/TaobaoUmpMbbGetbyidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取营销积木块 API返回值 -taobao.ump.mbb.getbyid - -根据积木块id获取营销积木块。 -*/ -type TaobaoUmpMbbGetbyidAPIResponse struct { - model.CommonResponse - TaobaoUmpMbbGetbyidResponse -} - -// 获取营销积木块 成功返回结果 -type TaobaoUmpMbbGetbyidResponse struct { - XMLName xml.Name `xml:"ump_mbb_getbyid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 营销积木块定义信息,可以通过ump sdk里面的MBB.fromJson来处理 - Mbb string `json:"mbb,omitempty" xml:"mbb,omitempty"` -} diff --git a/model/promotion/TaobaoUmpMbbsGetAPIRequest.go b/model/promotion/TaobaoUmpMbbsGetAPIRequest.go new file mode 100644 index 0000000000..8787f83bc1 --- /dev/null +++ b/model/promotion/TaobaoUmpMbbsGetAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取营销积木块列表 API请求 +taobao.ump.mbbs.get + +获取营销积木块列表,可以根据类型获取,也可以将该字段设为空,获取所有的 +*/ +type TaobaoUmpMbbsGetAPIRequest struct { + model.Params + // 积木块类型。如果该字段为空表示查出所有类型的
现在有且仅有如下几种:resource,condition,action,target + _type string +} + +// 初始化TaobaoUmpMbbsGetAPIRequest对象 +func NewTaobaoUmpMbbsGetRequest() *TaobaoUmpMbbsGetAPIRequest{ + return &TaobaoUmpMbbsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpMbbsGetAPIRequest) GetApiMethodName() string { + return "taobao.ump.mbbs.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpMbbsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// 积木块类型。如果该字段为空表示查出所有类型的
现在有且仅有如下几种:resource,condition,action,target +func (r *TaobaoUmpMbbsGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoUmpMbbsGetAPIRequest) GetType() string { + return r._type +} diff --git a/model/promotion/TaobaoUmpMbbsGetAPIResponse.go b/model/promotion/TaobaoUmpMbbsGetAPIResponse.go new file mode 100644 index 0000000000..a06aef4b38 --- /dev/null +++ b/model/promotion/TaobaoUmpMbbsGetAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取营销积木块列表 API返回值 +taobao.ump.mbbs.get + +获取营销积木块列表,可以根据类型获取,也可以将该字段设为空,获取所有的 +*/ +type TaobaoUmpMbbsGetAPIResponse struct { + model.CommonResponse + TaobaoUmpMbbsGetAPIResponseModel +} + +// 获取营销积木块列表 成功返回结果 +type TaobaoUmpMbbsGetAPIResponseModel struct { + XMLName xml.Name `xml:"ump_mbbs_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 营销积木块内容列表,内容为json格式的,可以通过ump sdk里面的MBB.fromJson来处理 + Mbbs []string `json:"mbbs,omitempty" xml:"mbbs>string,omitempty"` +} diff --git a/model/promotion/TaobaoUmpMbbsGetResponse.go b/model/promotion/TaobaoUmpMbbsGetResponse.go deleted file mode 100644 index 75c797959f..0000000000 --- a/model/promotion/TaobaoUmpMbbsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取营销积木块列表 API返回值 -taobao.ump.mbbs.get - -获取营销积木块列表,可以根据类型获取,也可以将该字段设为空,获取所有的 -*/ -type TaobaoUmpMbbsGetAPIResponse struct { - model.CommonResponse - TaobaoUmpMbbsGetResponse -} - -// 获取营销积木块列表 成功返回结果 -type TaobaoUmpMbbsGetResponse struct { - XMLName xml.Name `xml:"ump_mbbs_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 营销积木块内容列表,内容为json格式的,可以通过ump sdk里面的MBB.fromJson来处理 - Mbbs []string `json:"mbbs,omitempty" xml:"mbbs>string,omitempty"` -} diff --git a/model/promotion/TaobaoUmpMbbsListGetAPIRequest.go b/model/promotion/TaobaoUmpMbbsListGetAPIRequest.go new file mode 100644 index 0000000000..fdc3cb312a --- /dev/null +++ b/model/promotion/TaobaoUmpMbbsListGetAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过ids列表获取营销积木块列表 API请求 +taobao.ump.mbbs.list.get + +通过营销积木id列表来获取营销积木块列表。 +*/ +type TaobaoUmpMbbsListGetAPIRequest struct { + model.Params + // 营销积木块id组成的字符串。 + _ids []int64 +} + +// 初始化TaobaoUmpMbbsListGetAPIRequest对象 +func NewTaobaoUmpMbbsListGetRequest() *TaobaoUmpMbbsListGetAPIRequest{ + return &TaobaoUmpMbbsListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpMbbsListGetAPIRequest) GetApiMethodName() string { + return "taobao.ump.mbbs.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpMbbsListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Ids Setter +// 营销积木块id组成的字符串。 +func (r *TaobaoUmpMbbsListGetAPIRequest) SetIds(_ids []int64) error { + r._ids = _ids + r.Set("ids", _ids) + return nil +} + +// Ids Getter +func (r TaobaoUmpMbbsListGetAPIRequest) GetIds() []int64 { + return r._ids +} diff --git a/model/promotion/TaobaoUmpMbbsListGetAPIResponse.go b/model/promotion/TaobaoUmpMbbsListGetAPIResponse.go new file mode 100644 index 0000000000..711a0a5618 --- /dev/null +++ b/model/promotion/TaobaoUmpMbbsListGetAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过ids列表获取营销积木块列表 API返回值 +taobao.ump.mbbs.list.get + +通过营销积木id列表来获取营销积木块列表。 +*/ +type TaobaoUmpMbbsListGetAPIResponse struct { + model.CommonResponse + TaobaoUmpMbbsListGetAPIResponseModel +} + +// 通过ids列表获取营销积木块列表 成功返回结果 +type TaobaoUmpMbbsListGetAPIResponseModel struct { + XMLName xml.Name `xml:"ump_mbbs_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 营销积木块内容列表,内容为json格式的,可以通过ump sdk里面的MBB.fromJson来处理 + Mbbs []string `json:"mbbs,omitempty" xml:"mbbs>string,omitempty"` +} diff --git a/model/promotion/TaobaoUmpMbbsListGetResponse.go b/model/promotion/TaobaoUmpMbbsListGetResponse.go deleted file mode 100644 index caae6c587f..0000000000 --- a/model/promotion/TaobaoUmpMbbsListGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过ids列表获取营销积木块列表 API返回值 -taobao.ump.mbbs.list.get - -通过营销积木id列表来获取营销积木块列表。 -*/ -type TaobaoUmpMbbsListGetAPIResponse struct { - model.CommonResponse - TaobaoUmpMbbsListGetResponse -} - -// 通过ids列表获取营销积木块列表 成功返回结果 -type TaobaoUmpMbbsListGetResponse struct { - XMLName xml.Name `xml:"ump_mbbs_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 营销积木块内容列表,内容为json格式的,可以通过ump sdk里面的MBB.fromJson来处理 - Mbbs []string `json:"mbbs,omitempty" xml:"mbbs>string,omitempty"` -} diff --git a/model/promotion/TaobaoUmpPromotionGlobalDiscountGetAPIRequest.go b/model/promotion/TaobaoUmpPromotionGlobalDiscountGetAPIRequest.go new file mode 100644 index 0000000000..82c8c5697a --- /dev/null +++ b/model/promotion/TaobaoUmpPromotionGlobalDiscountGetAPIRequest.go @@ -0,0 +1,38 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取卖家最低折扣 API请求 +taobao.ump.promotion.global.discount.get + +提供卖家最低折扣查询功能 +*/ +type TaobaoUmpPromotionGlobalDiscountGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoUmpPromotionGlobalDiscountGetAPIRequest对象 +func NewTaobaoUmpPromotionGlobalDiscountGetRequest() *TaobaoUmpPromotionGlobalDiscountGetAPIRequest{ + return &TaobaoUmpPromotionGlobalDiscountGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpPromotionGlobalDiscountGetAPIRequest) GetApiMethodName() string { + return "taobao.ump.promotion.global.discount.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpPromotionGlobalDiscountGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/promotion/TaobaoUmpPromotionGlobalDiscountGetAPIResponse.go b/model/promotion/TaobaoUmpPromotionGlobalDiscountGetAPIResponse.go new file mode 100644 index 0000000000..3e6455b9bb --- /dev/null +++ b/model/promotion/TaobaoUmpPromotionGlobalDiscountGetAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取卖家最低折扣 API返回值 +taobao.ump.promotion.global.discount.get + +提供卖家最低折扣查询功能 +*/ +type TaobaoUmpPromotionGlobalDiscountGetAPIResponse struct { + model.CommonResponse + TaobaoUmpPromotionGlobalDiscountGetAPIResponseModel +} + +// 获取卖家最低折扣 成功返回结果 +type TaobaoUmpPromotionGlobalDiscountGetAPIResponseModel struct { + XMLName xml.Name `xml:"ump_promotion_global_discount_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *TaobaoUmpPromotionGlobalDiscountGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/TaobaoUmpPromotionGlobalDiscountGetResponse.go b/model/promotion/TaobaoUmpPromotionGlobalDiscountGetResponse.go deleted file mode 100644 index 3e9014f3f8..0000000000 --- a/model/promotion/TaobaoUmpPromotionGlobalDiscountGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取卖家最低折扣 API返回值 -taobao.ump.promotion.global.discount.get - -提供卖家最低折扣查询功能 -*/ -type TaobaoUmpPromotionGlobalDiscountGetAPIResponse struct { - model.CommonResponse - TaobaoUmpPromotionGlobalDiscountGetResponse -} - -// 获取卖家最低折扣 成功返回结果 -type TaobaoUmpPromotionGlobalDiscountGetResponse struct { - XMLName xml.Name `xml:"ump_promotion_global_discount_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *TaobaoUmpPromotionGlobalDiscountGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/TaobaoUmpRangeAddAPIRequest.go b/model/promotion/TaobaoUmpRangeAddAPIRequest.go new file mode 100644 index 0000000000..6d67567c15 --- /dev/null +++ b/model/promotion/TaobaoUmpRangeAddAPIRequest.go @@ -0,0 +1,80 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加活动范围 API请求 +taobao.ump.range.add + +指定某项活动中,某个商家的某些类型物品(指定商品或者别的)参加或者不参加活动。当活动详情的参与类型为部分或者部分不参加的时候,需要指定具体哪部分参加或者不参加,使用本接口完成操作。比如部分商品满就送,这里的range用来指定具体哪些商品参加满就送活动。 +*/ +type TaobaoUmpRangeAddAPIRequest struct { + model.Params + // 活动id + _actId int64 + // 范围的类型,比如是全店,商品,见:MarketingConstants.PARTICIPATE_TYPE_* + _type int64 + // id列表,当范围类型为商品时,该id为商品id.多个id用逗号隔开,一次不超过50个 + _ids string +} + +// 初始化TaobaoUmpRangeAddAPIRequest对象 +func NewTaobaoUmpRangeAddRequest() *TaobaoUmpRangeAddAPIRequest{ + return &TaobaoUmpRangeAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpRangeAddAPIRequest) GetApiMethodName() string { + return "taobao.ump.range.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpRangeAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActId Setter +// 活动id +func (r *TaobaoUmpRangeAddAPIRequest) SetActId(_actId int64) error { + r._actId = _actId + r.Set("act_id", _actId) + return nil +} + +// ActId Getter +func (r TaobaoUmpRangeAddAPIRequest) GetActId() int64 { + return r._actId +} +// Type Setter +// 范围的类型,比如是全店,商品,见:MarketingConstants.PARTICIPATE_TYPE_* +func (r *TaobaoUmpRangeAddAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoUmpRangeAddAPIRequest) GetType() int64 { + return r._type +} +// Ids Setter +// id列表,当范围类型为商品时,该id为商品id.多个id用逗号隔开,一次不超过50个 +func (r *TaobaoUmpRangeAddAPIRequest) SetIds(_ids string) error { + r._ids = _ids + r.Set("ids", _ids) + return nil +} + +// Ids Getter +func (r TaobaoUmpRangeAddAPIRequest) GetIds() string { + return r._ids +} diff --git a/model/promotion/TaobaoUmpRangeAddAPIResponse.go b/model/promotion/TaobaoUmpRangeAddAPIResponse.go new file mode 100644 index 0000000000..d25bf6e782 --- /dev/null +++ b/model/promotion/TaobaoUmpRangeAddAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加活动范围 API返回值 +taobao.ump.range.add + +指定某项活动中,某个商家的某些类型物品(指定商品或者别的)参加或者不参加活动。当活动详情的参与类型为部分或者部分不参加的时候,需要指定具体哪部分参加或者不参加,使用本接口完成操作。比如部分商品满就送,这里的range用来指定具体哪些商品参加满就送活动。 +*/ +type TaobaoUmpRangeAddAPIResponse struct { + model.CommonResponse + TaobaoUmpRangeAddAPIResponseModel +} + +// 添加活动范围 成功返回结果 +type TaobaoUmpRangeAddAPIResponseModel struct { + XMLName xml.Name `xml:"ump_range_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoUmpRangeAddResponse.go b/model/promotion/TaobaoUmpRangeAddResponse.go deleted file mode 100644 index 7fe9e6b693..0000000000 --- a/model/promotion/TaobaoUmpRangeAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加活动范围 API返回值 -taobao.ump.range.add - -指定某项活动中,某个商家的某些类型物品(指定商品或者别的)参加或者不参加活动。当活动详情的参与类型为部分或者部分不参加的时候,需要指定具体哪部分参加或者不参加,使用本接口完成操作。比如部分商品满就送,这里的range用来指定具体哪些商品参加满就送活动。 -*/ -type TaobaoUmpRangeAddAPIResponse struct { - model.CommonResponse - TaobaoUmpRangeAddResponse -} - -// 添加活动范围 成功返回结果 -type TaobaoUmpRangeAddResponse struct { - XMLName xml.Name `xml:"ump_range_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoUmpRangeDeleteAPIRequest.go b/model/promotion/TaobaoUmpRangeDeleteAPIRequest.go new file mode 100644 index 0000000000..173d765f08 --- /dev/null +++ b/model/promotion/TaobaoUmpRangeDeleteAPIRequest.go @@ -0,0 +1,80 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除活动范围 API请求 +taobao.ump.range.delete + +去指先前指定在某项活动中,某些类型的物品参加或者不参加活动的设置 +*/ +type TaobaoUmpRangeDeleteAPIRequest struct { + model.Params + // 活动id + _actId int64 + // 范围的类型,比如是全店,商品,类目见:MarketingConstants.PARTICIPATE_TYPE_* + _type int64 + // id列表,当范围类型为商品时,该id为商品id;当范围类型为类目时,该id为类目id + _ids string +} + +// 初始化TaobaoUmpRangeDeleteAPIRequest对象 +func NewTaobaoUmpRangeDeleteRequest() *TaobaoUmpRangeDeleteAPIRequest{ + return &TaobaoUmpRangeDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpRangeDeleteAPIRequest) GetApiMethodName() string { + return "taobao.ump.range.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpRangeDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActId Setter +// 活动id +func (r *TaobaoUmpRangeDeleteAPIRequest) SetActId(_actId int64) error { + r._actId = _actId + r.Set("act_id", _actId) + return nil +} + +// ActId Getter +func (r TaobaoUmpRangeDeleteAPIRequest) GetActId() int64 { + return r._actId +} +// Type Setter +// 范围的类型,比如是全店,商品,类目见:MarketingConstants.PARTICIPATE_TYPE_* +func (r *TaobaoUmpRangeDeleteAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoUmpRangeDeleteAPIRequest) GetType() int64 { + return r._type +} +// Ids Setter +// id列表,当范围类型为商品时,该id为商品id;当范围类型为类目时,该id为类目id +func (r *TaobaoUmpRangeDeleteAPIRequest) SetIds(_ids string) error { + r._ids = _ids + r.Set("ids", _ids) + return nil +} + +// Ids Getter +func (r TaobaoUmpRangeDeleteAPIRequest) GetIds() string { + return r._ids +} diff --git a/model/promotion/TaobaoUmpRangeDeleteAPIResponse.go b/model/promotion/TaobaoUmpRangeDeleteAPIResponse.go new file mode 100644 index 0000000000..dd77c7409a --- /dev/null +++ b/model/promotion/TaobaoUmpRangeDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除活动范围 API返回值 +taobao.ump.range.delete + +去指先前指定在某项活动中,某些类型的物品参加或者不参加活动的设置 +*/ +type TaobaoUmpRangeDeleteAPIResponse struct { + model.CommonResponse + TaobaoUmpRangeDeleteAPIResponseModel +} + +// 删除活动范围 成功返回结果 +type TaobaoUmpRangeDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"ump_range_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TaobaoUmpRangeDeleteResponse.go b/model/promotion/TaobaoUmpRangeDeleteResponse.go deleted file mode 100644 index 9041fdcf30..0000000000 --- a/model/promotion/TaobaoUmpRangeDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除活动范围 API返回值 -taobao.ump.range.delete - -去指先前指定在某项活动中,某些类型的物品参加或者不参加活动的设置 -*/ -type TaobaoUmpRangeDeleteAPIResponse struct { - model.CommonResponse - TaobaoUmpRangeDeleteResponse -} - -// 删除活动范围 成功返回结果 -type TaobaoUmpRangeDeleteResponse struct { - XMLName xml.Name `xml:"ump_range_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TaobaoUmpRangeGetAPIRequest.go b/model/promotion/TaobaoUmpRangeGetAPIRequest.go new file mode 100644 index 0000000000..2181c0f62b --- /dev/null +++ b/model/promotion/TaobaoUmpRangeGetAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询活动范围 API请求 +taobao.ump.range.get + +查询某个卖家所有参加或者不参加某项活动的物品 +*/ +type TaobaoUmpRangeGetAPIRequest struct { + model.Params + // 活动id + _actId int64 +} + +// 初始化TaobaoUmpRangeGetAPIRequest对象 +func NewTaobaoUmpRangeGetRequest() *TaobaoUmpRangeGetAPIRequest{ + return &TaobaoUmpRangeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpRangeGetAPIRequest) GetApiMethodName() string { + return "taobao.ump.range.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpRangeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActId Setter +// 活动id +func (r *TaobaoUmpRangeGetAPIRequest) SetActId(_actId int64) error { + r._actId = _actId + r.Set("act_id", _actId) + return nil +} + +// ActId Getter +func (r TaobaoUmpRangeGetAPIRequest) GetActId() int64 { + return r._actId +} diff --git a/model/promotion/TaobaoUmpRangeGetAPIResponse.go b/model/promotion/TaobaoUmpRangeGetAPIResponse.go new file mode 100644 index 0000000000..9ae25e2876 --- /dev/null +++ b/model/promotion/TaobaoUmpRangeGetAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询活动范围 API返回值 +taobao.ump.range.get + +查询某个卖家所有参加或者不参加某项活动的物品 +*/ +type TaobaoUmpRangeGetAPIResponse struct { + model.CommonResponse + TaobaoUmpRangeGetAPIResponseModel +} + +// 查询活动范围 成功返回结果 +type TaobaoUmpRangeGetAPIResponseModel struct { + XMLName xml.Name `xml:"ump_range_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 营销范围类列表! + Ranges []Range `json:"ranges,omitempty" xml:"ranges>range,omitempty"` +} diff --git a/model/promotion/TaobaoUmpRangeGetResponse.go b/model/promotion/TaobaoUmpRangeGetResponse.go deleted file mode 100644 index 3363197cf8..0000000000 --- a/model/promotion/TaobaoUmpRangeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询活动范围 API返回值 -taobao.ump.range.get - -查询某个卖家所有参加或者不参加某项活动的物品 -*/ -type TaobaoUmpRangeGetAPIResponse struct { - model.CommonResponse - TaobaoUmpRangeGetResponse -} - -// 查询活动范围 成功返回结果 -type TaobaoUmpRangeGetResponse struct { - XMLName xml.Name `xml:"ump_range_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 营销范围类列表! - Ranges []Range `json:"ranges,omitempty" xml:"ranges>range,omitempty"` -} diff --git a/model/promotion/TaobaoUmpShoutaotagAddAPIRequest.go b/model/promotion/TaobaoUmpShoutaotagAddAPIRequest.go new file mode 100644 index 0000000000..a2a4b5a739 --- /dev/null +++ b/model/promotion/TaobaoUmpShoutaotagAddAPIRequest.go @@ -0,0 +1,81 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +手淘定向优惠打标接口 API请求 +taobao.ump.shoutaotag.add + +手淘定向优惠的优惠标签打标接口 +给特定的手淘买家打上优惠标记,标记承载在自己的业务标签库中,标签有效期为7天。 +*/ +type TaobaoUmpShoutaotagAddAPIRequest struct { + model.Params + // 商品ID + _itemId int64 + // 买家ID + _buyerId int64 + // 渠道KEY + _channelKey string +} + +// 初始化TaobaoUmpShoutaotagAddAPIRequest对象 +func NewTaobaoUmpShoutaotagAddRequest() *TaobaoUmpShoutaotagAddAPIRequest{ + return &TaobaoUmpShoutaotagAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpShoutaotagAddAPIRequest) GetApiMethodName() string { + return "taobao.ump.shoutaotag.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpShoutaotagAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品ID +func (r *TaobaoUmpShoutaotagAddAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoUmpShoutaotagAddAPIRequest) GetItemId() int64 { + return r._itemId +} +// BuyerId Setter +// 买家ID +func (r *TaobaoUmpShoutaotagAddAPIRequest) SetBuyerId(_buyerId int64) error { + r._buyerId = _buyerId + r.Set("buyer_id", _buyerId) + return nil +} + +// BuyerId Getter +func (r TaobaoUmpShoutaotagAddAPIRequest) GetBuyerId() int64 { + return r._buyerId +} +// ChannelKey Setter +// 渠道KEY +func (r *TaobaoUmpShoutaotagAddAPIRequest) SetChannelKey(_channelKey string) error { + r._channelKey = _channelKey + r.Set("channel_key", _channelKey) + return nil +} + +// ChannelKey Getter +func (r TaobaoUmpShoutaotagAddAPIRequest) GetChannelKey() string { + return r._channelKey +} diff --git a/model/promotion/TaobaoUmpShoutaotagAddAPIResponse.go b/model/promotion/TaobaoUmpShoutaotagAddAPIResponse.go new file mode 100644 index 0000000000..7c13b4f40c --- /dev/null +++ b/model/promotion/TaobaoUmpShoutaotagAddAPIResponse.go @@ -0,0 +1,28 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +手淘定向优惠打标接口 API返回值 +taobao.ump.shoutaotag.add + +手淘定向优惠的优惠标签打标接口 +给特定的手淘买家打上优惠标记,标记承载在自己的业务标签库中,标签有效期为7天。 +*/ +type TaobaoUmpShoutaotagAddAPIResponse struct { + model.CommonResponse + TaobaoUmpShoutaotagAddAPIResponseModel +} + +// 手淘定向优惠打标接口 成功返回结果 +type TaobaoUmpShoutaotagAddAPIResponseModel struct { + XMLName xml.Name `xml:"ump_shoutaotag_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否打标成功 + AddResult bool `json:"add_result,omitempty" xml:"add_result,omitempty"` +} diff --git a/model/promotion/TaobaoUmpShoutaotagAddResponse.go b/model/promotion/TaobaoUmpShoutaotagAddResponse.go deleted file mode 100644 index e920991a00..0000000000 --- a/model/promotion/TaobaoUmpShoutaotagAddResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -手淘定向优惠打标接口 API返回值 -taobao.ump.shoutaotag.add - -手淘定向优惠的优惠标签打标接口 -给特定的手淘买家打上优惠标记,标记承载在自己的业务标签库中,标签有效期为7天。 -*/ -type TaobaoUmpShoutaotagAddAPIResponse struct { - model.CommonResponse - TaobaoUmpShoutaotagAddResponse -} - -// 手淘定向优惠打标接口 成功返回结果 -type TaobaoUmpShoutaotagAddResponse struct { - XMLName xml.Name `xml:"ump_shoutaotag_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否打标成功 - AddResult bool `json:"add_result,omitempty" xml:"add_result,omitempty"` -} diff --git a/model/promotion/TaobaoUmpToolGetAPIRequest.go b/model/promotion/TaobaoUmpToolGetAPIRequest.go new file mode 100644 index 0000000000..18246295c2 --- /dev/null +++ b/model/promotion/TaobaoUmpToolGetAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询工具 API请求 +taobao.ump.tool.get + +根据工具id获取一个工具对象 +*/ +type TaobaoUmpToolGetAPIRequest struct { + model.Params + // 工具的id + _toolId int64 +} + +// 初始化TaobaoUmpToolGetAPIRequest对象 +func NewTaobaoUmpToolGetRequest() *TaobaoUmpToolGetAPIRequest{ + return &TaobaoUmpToolGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpToolGetAPIRequest) GetApiMethodName() string { + return "taobao.ump.tool.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpToolGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ToolId Setter +// 工具的id +func (r *TaobaoUmpToolGetAPIRequest) SetToolId(_toolId int64) error { + r._toolId = _toolId + r.Set("tool_id", _toolId) + return nil +} + +// ToolId Getter +func (r TaobaoUmpToolGetAPIRequest) GetToolId() int64 { + return r._toolId +} diff --git a/model/promotion/TaobaoUmpToolGetAPIResponse.go b/model/promotion/TaobaoUmpToolGetAPIResponse.go new file mode 100644 index 0000000000..e4998e1095 --- /dev/null +++ b/model/promotion/TaobaoUmpToolGetAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询工具 API返回值 +taobao.ump.tool.get + +根据工具id获取一个工具对象 +*/ +type TaobaoUmpToolGetAPIResponse struct { + model.CommonResponse + TaobaoUmpToolGetAPIResponseModel +} + +// 查询工具 成功返回结果 +type TaobaoUmpToolGetAPIResponseModel struct { + XMLName xml.Name `xml:"ump_tool_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 工具信息内容,格式为json,可以通过提供给的sdk里面的MarketingBuilder来处理这个内容 + Content string `json:"content,omitempty" xml:"content,omitempty"` +} diff --git a/model/promotion/TaobaoUmpToolGetResponse.go b/model/promotion/TaobaoUmpToolGetResponse.go deleted file mode 100644 index 9c9ffd4959..0000000000 --- a/model/promotion/TaobaoUmpToolGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询工具 API返回值 -taobao.ump.tool.get - -根据工具id获取一个工具对象 -*/ -type TaobaoUmpToolGetAPIResponse struct { - model.CommonResponse - TaobaoUmpToolGetResponse -} - -// 查询工具 成功返回结果 -type TaobaoUmpToolGetResponse struct { - XMLName xml.Name `xml:"ump_tool_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 工具信息内容,格式为json,可以通过提供给的sdk里面的MarketingBuilder来处理这个内容 - Content string `json:"content,omitempty" xml:"content,omitempty"` -} diff --git a/model/promotion/TaobaoUmpToolsGetAPIRequest.go b/model/promotion/TaobaoUmpToolsGetAPIRequest.go new file mode 100644 index 0000000000..9d4b560da9 --- /dev/null +++ b/model/promotion/TaobaoUmpToolsGetAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询工具列表 API请求 +taobao.ump.tools.get + +查询工具列表 +*/ +type TaobaoUmpToolsGetAPIRequest struct { + model.Params + // 工具编码 + _toolCode string +} + +// 初始化TaobaoUmpToolsGetAPIRequest对象 +func NewTaobaoUmpToolsGetRequest() *TaobaoUmpToolsGetAPIRequest{ + return &TaobaoUmpToolsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUmpToolsGetAPIRequest) GetApiMethodName() string { + return "taobao.ump.tools.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUmpToolsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ToolCode Setter +// 工具编码 +func (r *TaobaoUmpToolsGetAPIRequest) SetToolCode(_toolCode string) error { + r._toolCode = _toolCode + r.Set("tool_code", _toolCode) + return nil +} + +// ToolCode Getter +func (r TaobaoUmpToolsGetAPIRequest) GetToolCode() string { + return r._toolCode +} diff --git a/model/promotion/TaobaoUmpToolsGetAPIResponse.go b/model/promotion/TaobaoUmpToolsGetAPIResponse.go new file mode 100644 index 0000000000..0d14f640c6 --- /dev/null +++ b/model/promotion/TaobaoUmpToolsGetAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询工具列表 API返回值 +taobao.ump.tools.get + +查询工具列表 +*/ +type TaobaoUmpToolsGetAPIResponse struct { + model.CommonResponse + TaobaoUmpToolsGetAPIResponseModel +} + +// 查询工具列表 成功返回结果 +type TaobaoUmpToolsGetAPIResponseModel struct { + XMLName xml.Name `xml:"ump_tools_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 工具列表,单个内容为json格式,需要通过ump的sdk提供的MarketingBuilder来进行处理 + Tools []string `json:"tools,omitempty" xml:"tools>string,omitempty"` +} diff --git a/model/promotion/TaobaoUmpToolsGetResponse.go b/model/promotion/TaobaoUmpToolsGetResponse.go deleted file mode 100644 index 2ce6b03c4d..0000000000 --- a/model/promotion/TaobaoUmpToolsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询工具列表 API返回值 -taobao.ump.tools.get - -查询工具列表 -*/ -type TaobaoUmpToolsGetAPIResponse struct { - model.CommonResponse - TaobaoUmpToolsGetResponse -} - -// 查询工具列表 成功返回结果 -type TaobaoUmpToolsGetResponse struct { - XMLName xml.Name `xml:"ump_tools_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 工具列表,单个内容为json格式,需要通过ump的sdk提供的MarketingBuilder来进行处理 - Tools []string `json:"tools,omitempty" xml:"tools>string,omitempty"` -} diff --git a/model/promotion/TmallCcfCrowdActivityuserUploadAPIRequest.go b/model/promotion/TmallCcfCrowdActivityuserUploadAPIRequest.go new file mode 100644 index 0000000000..2b7e8cac0c --- /dev/null +++ b/model/promotion/TmallCcfCrowdActivityuserUploadAPIRequest.go @@ -0,0 +1,94 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌营销活动用户上传 API请求 +tmall.ccf.crowd.activityuser.upload + +搜集ISV的活动用户信息,将其沉淀为活动人群数据 +*/ +type TmallCcfCrowdActivityuserUploadAPIRequest struct { + model.Params + // 活动id + _activityId int64 + // 人群类型 + _crowdTypes []string + // 淘宝小程序的openid + _taobaoOpenId string + // 小程序对应的appKey + _taobaoAppKey string +} + +// 初始化TmallCcfCrowdActivityuserUploadAPIRequest对象 +func NewTmallCcfCrowdActivityuserUploadRequest() *TmallCcfCrowdActivityuserUploadAPIRequest{ + return &TmallCcfCrowdActivityuserUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCcfCrowdActivityuserUploadAPIRequest) GetApiMethodName() string { + return "tmall.ccf.crowd.activityuser.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCcfCrowdActivityuserUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 活动id +func (r *TmallCcfCrowdActivityuserUploadAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TmallCcfCrowdActivityuserUploadAPIRequest) GetActivityId() int64 { + return r._activityId +} +// CrowdTypes Setter +// 人群类型 +func (r *TmallCcfCrowdActivityuserUploadAPIRequest) SetCrowdTypes(_crowdTypes []string) error { + r._crowdTypes = _crowdTypes + r.Set("crowd_types", _crowdTypes) + return nil +} + +// CrowdTypes Getter +func (r TmallCcfCrowdActivityuserUploadAPIRequest) GetCrowdTypes() []string { + return r._crowdTypes +} +// TaobaoOpenId Setter +// 淘宝小程序的openid +func (r *TmallCcfCrowdActivityuserUploadAPIRequest) SetTaobaoOpenId(_taobaoOpenId string) error { + r._taobaoOpenId = _taobaoOpenId + r.Set("taobao_open_id", _taobaoOpenId) + return nil +} + +// TaobaoOpenId Getter +func (r TmallCcfCrowdActivityuserUploadAPIRequest) GetTaobaoOpenId() string { + return r._taobaoOpenId +} +// TaobaoAppKey Setter +// 小程序对应的appKey +func (r *TmallCcfCrowdActivityuserUploadAPIRequest) SetTaobaoAppKey(_taobaoAppKey string) error { + r._taobaoAppKey = _taobaoAppKey + r.Set("taobao_app_key", _taobaoAppKey) + return nil +} + +// TaobaoAppKey Getter +func (r TmallCcfCrowdActivityuserUploadAPIRequest) GetTaobaoAppKey() string { + return r._taobaoAppKey +} diff --git a/model/promotion/TmallCcfCrowdActivityuserUploadAPIResponse.go b/model/promotion/TmallCcfCrowdActivityuserUploadAPIResponse.go new file mode 100644 index 0000000000..c7c7a2ff0e --- /dev/null +++ b/model/promotion/TmallCcfCrowdActivityuserUploadAPIResponse.go @@ -0,0 +1,35 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌营销活动用户上传 API返回值 +tmall.ccf.crowd.activityuser.upload + +搜集ISV的活动用户信息,将其沉淀为活动人群数据 +*/ +type TmallCcfCrowdActivityuserUploadAPIResponse struct { + model.CommonResponse + TmallCcfCrowdActivityuserUploadAPIResponseModel +} + +// 品牌营销活动用户上传 成功返回结果 +type TmallCcfCrowdActivityuserUploadAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_ccf_crowd_activityuser_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Data bool `json:"data,omitempty" xml:"data,omitempty"` + // 错误码 + ECode string `json:"e_code,omitempty" xml:"e_code,omitempty"` + // 错误信息 + EMsg string `json:"e_msg,omitempty" xml:"e_msg,omitempty"` + // 是否失败 + Failed bool `json:"failed,omitempty" xml:"failed,omitempty"` + // 是否成功 + Suc bool `json:"suc,omitempty" xml:"suc,omitempty"` +} diff --git a/model/promotion/TmallCcfCrowdActivityuserUploadResponse.go b/model/promotion/TmallCcfCrowdActivityuserUploadResponse.go deleted file mode 100644 index 73191178c7..0000000000 --- a/model/promotion/TmallCcfCrowdActivityuserUploadResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -品牌营销活动用户上传 API返回值 -tmall.ccf.crowd.activityuser.upload - -搜集ISV的活动用户信息,将其沉淀为活动人群数据 -*/ -type TmallCcfCrowdActivityuserUploadAPIResponse struct { - model.CommonResponse - TmallCcfCrowdActivityuserUploadResponse -} - -// 品牌营销活动用户上传 成功返回结果 -type TmallCcfCrowdActivityuserUploadResponse struct { - XMLName xml.Name `xml:"tmall_ccf_crowd_activityuser_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Data bool `json:"data,omitempty" xml:"data,omitempty"` - // 错误码 - ECode string `json:"e_code,omitempty" xml:"e_code,omitempty"` - // 错误信息 - EMsg string `json:"e_msg,omitempty" xml:"e_msg,omitempty"` - // 是否失败 - Failed bool `json:"failed,omitempty" xml:"failed,omitempty"` - // 是否成功 - Suc bool `json:"suc,omitempty" xml:"suc,omitempty"` -} diff --git a/model/promotion/TmallPromotagTagApplyAPIRequest.go b/model/promotion/TmallPromotagTagApplyAPIRequest.go new file mode 100644 index 0000000000..7545f5aba8 --- /dev/null +++ b/model/promotion/TmallPromotagTagApplyAPIRequest.go @@ -0,0 +1,94 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠标签申请 API请求 +tmall.promotag.tag.apply + +创建优惠标签 +*/ +type TmallPromotagTagApplyAPIRequest struct { + model.Params + // 标签名称。注意在UMP中使用新人群标签top变成大写的“NEW_” 如:老标签是top1234,新标签是NEW_1234 。 + _tagName string + // 标签用途描述 + _tagDesc string + // 标签开始时间 + _startTime string + // 标签结束时间 + _endTime string +} + +// 初始化TmallPromotagTagApplyAPIRequest对象 +func NewTmallPromotagTagApplyRequest() *TmallPromotagTagApplyAPIRequest{ + return &TmallPromotagTagApplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallPromotagTagApplyAPIRequest) GetApiMethodName() string { + return "tmall.promotag.tag.apply" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallPromotagTagApplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TagName Setter +// 标签名称。注意在UMP中使用新人群标签top变成大写的“NEW_” 如:老标签是top1234,新标签是NEW_1234 。 +func (r *TmallPromotagTagApplyAPIRequest) SetTagName(_tagName string) error { + r._tagName = _tagName + r.Set("tag_name", _tagName) + return nil +} + +// TagName Getter +func (r TmallPromotagTagApplyAPIRequest) GetTagName() string { + return r._tagName +} +// TagDesc Setter +// 标签用途描述 +func (r *TmallPromotagTagApplyAPIRequest) SetTagDesc(_tagDesc string) error { + r._tagDesc = _tagDesc + r.Set("tag_desc", _tagDesc) + return nil +} + +// TagDesc Getter +func (r TmallPromotagTagApplyAPIRequest) GetTagDesc() string { + return r._tagDesc +} +// StartTime Setter +// 标签开始时间 +func (r *TmallPromotagTagApplyAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TmallPromotagTagApplyAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 标签结束时间 +func (r *TmallPromotagTagApplyAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TmallPromotagTagApplyAPIRequest) GetEndTime() string { + return r._endTime +} diff --git a/model/promotion/TmallPromotagTagApplyAPIResponse.go b/model/promotion/TmallPromotagTagApplyAPIResponse.go new file mode 100644 index 0000000000..c028be5203 --- /dev/null +++ b/model/promotion/TmallPromotagTagApplyAPIResponse.go @@ -0,0 +1,29 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +优惠标签申请 API返回值 +tmall.promotag.tag.apply + +创建优惠标签 +*/ +type TmallPromotagTagApplyAPIResponse struct { + model.CommonResponse + TmallPromotagTagApplyAPIResponseModel +} + +// 优惠标签申请 成功返回结果 +type TmallPromotagTagApplyAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_promotag_tag_apply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否设置成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 优惠标签ID + TagId int64 `json:"tag_id,omitempty" xml:"tag_id,omitempty"` +} diff --git a/model/promotion/TmallPromotagTagApplyResponse.go b/model/promotion/TmallPromotagTagApplyResponse.go deleted file mode 100644 index 67b2a437b4..0000000000 --- a/model/promotion/TmallPromotagTagApplyResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -优惠标签申请 API返回值 -tmall.promotag.tag.apply - -创建优惠标签 -*/ -type TmallPromotagTagApplyAPIResponse struct { - model.CommonResponse - TmallPromotagTagApplyResponse -} - -// 优惠标签申请 成功返回结果 -type TmallPromotagTagApplyResponse struct { - XMLName xml.Name `xml:"tmall_promotag_tag_apply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否设置成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 优惠标签ID - TagId int64 `json:"tag_id,omitempty" xml:"tag_id,omitempty"` -} diff --git a/model/promotion/TmallPromotagTagFindAPIRequest.go b/model/promotion/TmallPromotagTagFindAPIRequest.go new file mode 100644 index 0000000000..94ffe3a450 --- /dev/null +++ b/model/promotion/TmallPromotagTagFindAPIRequest.go @@ -0,0 +1,94 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询标签接口 API请求 +tmall.promotag.tag.find + +查询用户创建的所有标签 +*/ +type TmallPromotagTagFindAPIRequest struct { + model.Params + // 当前页码 + _pageNo int64 + // 每页显示个数 + _pageSize int64 + // 标签名称,查询时可选项 + _tagName string + // 标签ID + _tagId int64 +} + +// 初始化TmallPromotagTagFindAPIRequest对象 +func NewTmallPromotagTagFindRequest() *TmallPromotagTagFindAPIRequest{ + return &TmallPromotagTagFindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallPromotagTagFindAPIRequest) GetApiMethodName() string { + return "tmall.promotag.tag.find" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallPromotagTagFindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageNo Setter +// 当前页码 +func (r *TmallPromotagTagFindAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TmallPromotagTagFindAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页显示个数 +func (r *TmallPromotagTagFindAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TmallPromotagTagFindAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// TagName Setter +// 标签名称,查询时可选项 +func (r *TmallPromotagTagFindAPIRequest) SetTagName(_tagName string) error { + r._tagName = _tagName + r.Set("tag_name", _tagName) + return nil +} + +// TagName Getter +func (r TmallPromotagTagFindAPIRequest) GetTagName() string { + return r._tagName +} +// TagId Setter +// 标签ID +func (r *TmallPromotagTagFindAPIRequest) SetTagId(_tagId int64) error { + r._tagId = _tagId + r.Set("tag_id", _tagId) + return nil +} + +// TagId Getter +func (r TmallPromotagTagFindAPIRequest) GetTagId() int64 { + return r._tagId +} diff --git a/model/promotion/TmallPromotagTagFindAPIResponse.go b/model/promotion/TmallPromotagTagFindAPIResponse.go new file mode 100644 index 0000000000..412ca49549 --- /dev/null +++ b/model/promotion/TmallPromotagTagFindAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询标签接口 API返回值 +tmall.promotag.tag.find + +查询用户创建的所有标签 +*/ +type TmallPromotagTagFindAPIResponse struct { + model.CommonResponse + TmallPromotagTagFindAPIResponseModel +} + +// 查询标签接口 成功返回结果 +type TmallPromotagTagFindAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_promotag_tag_find_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果类型 + QueryResult *PromotionTagQuery `json:"query_result,omitempty" xml:"query_result,omitempty"` +} diff --git a/model/promotion/TmallPromotagTagFindResponse.go b/model/promotion/TmallPromotagTagFindResponse.go deleted file mode 100644 index 9b93e3b96a..0000000000 --- a/model/promotion/TmallPromotagTagFindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询标签接口 API返回值 -tmall.promotag.tag.find - -查询用户创建的所有标签 -*/ -type TmallPromotagTagFindAPIResponse struct { - model.CommonResponse - TmallPromotagTagFindResponse -} - -// 查询标签接口 成功返回结果 -type TmallPromotagTagFindResponse struct { - XMLName xml.Name `xml:"tmall_promotag_tag_find_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果类型 - QueryResult *PromotionTagQuery `json:"query_result,omitempty" xml:"query_result,omitempty"` -} diff --git a/model/promotion/TmallPromotagTagRemovetagAPIRequest.go b/model/promotion/TmallPromotagTagRemovetagAPIRequest.go new file mode 100644 index 0000000000..45d7e75a72 --- /dev/null +++ b/model/promotion/TmallPromotagTagRemovetagAPIRequest.go @@ -0,0 +1,52 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除标签定义 API请求 +tmall.promotag.tag.removetag + +用于删除标签定义,但是要确保目前该标签没有人群在使用。 +*/ +type TmallPromotagTagRemovetagAPIRequest struct { + model.Params + // 需要删除的标签id + _tagId int64 +} + +// 初始化TmallPromotagTagRemovetagAPIRequest对象 +func NewTmallPromotagTagRemovetagRequest() *TmallPromotagTagRemovetagAPIRequest{ + return &TmallPromotagTagRemovetagAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallPromotagTagRemovetagAPIRequest) GetApiMethodName() string { + return "tmall.promotag.tag.removetag" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallPromotagTagRemovetagAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TagId Setter +// 需要删除的标签id +func (r *TmallPromotagTagRemovetagAPIRequest) SetTagId(_tagId int64) error { + r._tagId = _tagId + r.Set("tag_id", _tagId) + return nil +} + +// TagId Getter +func (r TmallPromotagTagRemovetagAPIRequest) GetTagId() int64 { + return r._tagId +} diff --git a/model/promotion/TmallPromotagTagRemovetagAPIResponse.go b/model/promotion/TmallPromotagTagRemovetagAPIResponse.go new file mode 100644 index 0000000000..aa2ca2baf9 --- /dev/null +++ b/model/promotion/TmallPromotagTagRemovetagAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除标签定义 API返回值 +tmall.promotag.tag.removetag + +用于删除标签定义,但是要确保目前该标签没有人群在使用。 +*/ +type TmallPromotagTagRemovetagAPIResponse struct { + model.CommonResponse + TmallPromotagTagRemovetagAPIResponseModel +} + +// 删除标签定义 成功返回结果 +type TmallPromotagTagRemovetagAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_promotag_tag_removetag_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 删除操作是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TmallPromotagTagRemovetagResponse.go b/model/promotion/TmallPromotagTagRemovetagResponse.go deleted file mode 100644 index c77eea1479..0000000000 --- a/model/promotion/TmallPromotagTagRemovetagResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除标签定义 API返回值 -tmall.promotag.tag.removetag - -用于删除标签定义,但是要确保目前该标签没有人群在使用。 -*/ -type TmallPromotagTagRemovetagAPIResponse struct { - model.CommonResponse - TmallPromotagTagRemovetagResponse -} - -// 删除标签定义 成功返回结果 -type TmallPromotagTagRemovetagResponse struct { - XMLName xml.Name `xml:"tmall_promotag_tag_removetag_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 删除操作是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TmallPromotagTaguserJudgeAPIRequest.go b/model/promotion/TmallPromotagTaguserJudgeAPIRequest.go new file mode 100644 index 0000000000..b696ec58a0 --- /dev/null +++ b/model/promotion/TmallPromotagTaguserJudgeAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户标签判断接口 API请求 +tmall.promotag.taguser.judge + +查询用户是否有标签 +*/ +type TmallPromotagTaguserJudgeAPIRequest struct { + model.Params + // 标签ID + _tagId int64 + // 买家昵称 + _nick string +} + +// 初始化TmallPromotagTaguserJudgeAPIRequest对象 +func NewTmallPromotagTaguserJudgeRequest() *TmallPromotagTaguserJudgeAPIRequest{ + return &TmallPromotagTaguserJudgeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallPromotagTaguserJudgeAPIRequest) GetApiMethodName() string { + return "tmall.promotag.taguser.judge" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallPromotagTaguserJudgeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TagId Setter +// 标签ID +func (r *TmallPromotagTaguserJudgeAPIRequest) SetTagId(_tagId int64) error { + r._tagId = _tagId + r.Set("tag_id", _tagId) + return nil +} + +// TagId Getter +func (r TmallPromotagTaguserJudgeAPIRequest) GetTagId() int64 { + return r._tagId +} +// Nick Setter +// 买家昵称 +func (r *TmallPromotagTaguserJudgeAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TmallPromotagTaguserJudgeAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/promotion/TmallPromotagTaguserJudgeAPIResponse.go b/model/promotion/TmallPromotagTaguserJudgeAPIResponse.go new file mode 100644 index 0000000000..7f4dd43375 --- /dev/null +++ b/model/promotion/TmallPromotagTaguserJudgeAPIResponse.go @@ -0,0 +1,29 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户标签判断接口 API返回值 +tmall.promotag.taguser.judge + +查询用户是否有标签 +*/ +type TmallPromotagTaguserJudgeAPIResponse struct { + model.CommonResponse + TmallPromotagTaguserJudgeAPIResponseModel +} + +// 用户标签判断接口 成功返回结果 +type TmallPromotagTaguserJudgeAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_promotag_taguser_judge_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 用户是否有标签 + HasTag bool `json:"has_tag,omitempty" xml:"has_tag,omitempty"` +} diff --git a/model/promotion/TmallPromotagTaguserJudgeResponse.go b/model/promotion/TmallPromotagTaguserJudgeResponse.go deleted file mode 100644 index 5ff0139ff6..0000000000 --- a/model/promotion/TmallPromotagTaguserJudgeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户标签判断接口 API返回值 -tmall.promotag.taguser.judge - -查询用户是否有标签 -*/ -type TmallPromotagTaguserJudgeAPIResponse struct { - model.CommonResponse - TmallPromotagTaguserJudgeResponse -} - -// 用户标签判断接口 成功返回结果 -type TmallPromotagTaguserJudgeResponse struct { - XMLName xml.Name `xml:"tmall_promotag_taguser_judge_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 用户是否有标签 - HasTag bool `json:"has_tag,omitempty" xml:"has_tag,omitempty"` -} diff --git a/model/promotion/TmallPromotagTaguserRemoveAPIRequest.go b/model/promotion/TmallPromotagTaguserRemoveAPIRequest.go new file mode 100644 index 0000000000..a221b07971 --- /dev/null +++ b/model/promotion/TmallPromotagTaguserRemoveAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +给用户移除优惠标签 API请求 +tmall.promotag.taguser.remove + +给用户载体去标 +*/ +type TmallPromotagTaguserRemoveAPIRequest struct { + model.Params + // 标签ID + _tagId int64 + // 买家昵称 + _nick string +} + +// 初始化TmallPromotagTaguserRemoveAPIRequest对象 +func NewTmallPromotagTaguserRemoveRequest() *TmallPromotagTaguserRemoveAPIRequest{ + return &TmallPromotagTaguserRemoveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallPromotagTaguserRemoveAPIRequest) GetApiMethodName() string { + return "tmall.promotag.taguser.remove" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallPromotagTaguserRemoveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TagId Setter +// 标签ID +func (r *TmallPromotagTaguserRemoveAPIRequest) SetTagId(_tagId int64) error { + r._tagId = _tagId + r.Set("tag_id", _tagId) + return nil +} + +// TagId Getter +func (r TmallPromotagTaguserRemoveAPIRequest) GetTagId() int64 { + return r._tagId +} +// Nick Setter +// 买家昵称 +func (r *TmallPromotagTaguserRemoveAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TmallPromotagTaguserRemoveAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/promotion/TmallPromotagTaguserRemoveAPIResponse.go b/model/promotion/TmallPromotagTaguserRemoveAPIResponse.go new file mode 100644 index 0000000000..b13641f256 --- /dev/null +++ b/model/promotion/TmallPromotagTaguserRemoveAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +给用户移除优惠标签 API返回值 +tmall.promotag.taguser.remove + +给用户载体去标 +*/ +type TmallPromotagTaguserRemoveAPIResponse struct { + model.CommonResponse + TmallPromotagTaguserRemoveAPIResponseModel +} + +// 给用户移除优惠标签 成功返回结果 +type TmallPromotagTaguserRemoveAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_promotag_taguser_remove_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 打标结果是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TmallPromotagTaguserRemoveResponse.go b/model/promotion/TmallPromotagTaguserRemoveResponse.go deleted file mode 100644 index 67d57bf880..0000000000 --- a/model/promotion/TmallPromotagTaguserRemoveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -给用户移除优惠标签 API返回值 -tmall.promotag.taguser.remove - -给用户载体去标 -*/ -type TmallPromotagTaguserRemoveAPIResponse struct { - model.CommonResponse - TmallPromotagTaguserRemoveResponse -} - -// 给用户移除优惠标签 成功返回结果 -type TmallPromotagTaguserRemoveResponse struct { - XMLName xml.Name `xml:"tmall_promotag_taguser_remove_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 打标结果是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TmallPromotagTaguserSaveAPIRequest.go b/model/promotion/TmallPromotagTaguserSaveAPIRequest.go new file mode 100644 index 0000000000..25ef6a20b1 --- /dev/null +++ b/model/promotion/TmallPromotagTaguserSaveAPIRequest.go @@ -0,0 +1,66 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +给用户打上优惠标签 API请求 +tmall.promotag.taguser.save + +给用户载体打标 +*/ +type TmallPromotagTaguserSaveAPIRequest struct { + model.Params + // 标签ID + _tagId int64 + // 买家昵称 + _nick string +} + +// 初始化TmallPromotagTaguserSaveAPIRequest对象 +func NewTmallPromotagTaguserSaveRequest() *TmallPromotagTaguserSaveAPIRequest{ + return &TmallPromotagTaguserSaveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallPromotagTaguserSaveAPIRequest) GetApiMethodName() string { + return "tmall.promotag.taguser.save" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallPromotagTaguserSaveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TagId Setter +// 标签ID +func (r *TmallPromotagTaguserSaveAPIRequest) SetTagId(_tagId int64) error { + r._tagId = _tagId + r.Set("tag_id", _tagId) + return nil +} + +// TagId Getter +func (r TmallPromotagTaguserSaveAPIRequest) GetTagId() int64 { + return r._tagId +} +// Nick Setter +// 买家昵称 +func (r *TmallPromotagTaguserSaveAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TmallPromotagTaguserSaveAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/promotion/TmallPromotagTaguserSaveAPIResponse.go b/model/promotion/TmallPromotagTaguserSaveAPIResponse.go new file mode 100644 index 0000000000..aa35c8ec93 --- /dev/null +++ b/model/promotion/TmallPromotagTaguserSaveAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +给用户打上优惠标签 API返回值 +tmall.promotag.taguser.save + +给用户载体打标 +*/ +type TmallPromotagTaguserSaveAPIResponse struct { + model.CommonResponse + TmallPromotagTaguserSaveAPIResponseModel +} + +// 给用户打上优惠标签 成功返回结果 +type TmallPromotagTaguserSaveAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_promotag_taguser_save_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 打标结果是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/promotion/TmallPromotagTaguserSaveResponse.go b/model/promotion/TmallPromotagTaguserSaveResponse.go deleted file mode 100644 index b2dee953c7..0000000000 --- a/model/promotion/TmallPromotagTaguserSaveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -给用户打上优惠标签 API返回值 -tmall.promotag.taguser.save - -给用户载体打标 -*/ -type TmallPromotagTaguserSaveAPIResponse struct { - model.CommonResponse - TmallPromotagTaguserSaveResponse -} - -// 给用户打上优惠标签 成功返回结果 -type TmallPromotagTaguserSaveResponse struct { - XMLName xml.Name `xml:"tmall_promotag_taguser_save_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 打标结果是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/promotion/TmallPromotionCouponQueryAPIRequest.go b/model/promotion/TmallPromotionCouponQueryAPIRequest.go new file mode 100644 index 0000000000..709db9d1e0 --- /dev/null +++ b/model/promotion/TmallPromotionCouponQueryAPIRequest.go @@ -0,0 +1,80 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询可用优惠券列表 API请求 +tmall.promotion.coupon.query + +查询用户的可用优惠券列表,仅包含优惠券基本信息和用户nick +*/ +type TmallPromotionCouponQueryAPIRequest struct { + model.Params + // 业务类型 + _bizType string + // buyer_id、buyer_nick至少填一个, 都填写以id为准 + _buyerId string + // buyer_id、buyer_nick至少填一个, 都填写以id为准 + _buyerNick string +} + +// 初始化TmallPromotionCouponQueryAPIRequest对象 +func NewTmallPromotionCouponQueryRequest() *TmallPromotionCouponQueryAPIRequest{ + return &TmallPromotionCouponQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallPromotionCouponQueryAPIRequest) GetApiMethodName() string { + return "tmall.promotion.coupon.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallPromotionCouponQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizType Setter +// 业务类型 +func (r *TmallPromotionCouponQueryAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TmallPromotionCouponQueryAPIRequest) GetBizType() string { + return r._bizType +} +// BuyerId Setter +// buyer_id、buyer_nick至少填一个, 都填写以id为准 +func (r *TmallPromotionCouponQueryAPIRequest) SetBuyerId(_buyerId string) error { + r._buyerId = _buyerId + r.Set("buyer_id", _buyerId) + return nil +} + +// BuyerId Getter +func (r TmallPromotionCouponQueryAPIRequest) GetBuyerId() string { + return r._buyerId +} +// BuyerNick Setter +// buyer_id、buyer_nick至少填一个, 都填写以id为准 +func (r *TmallPromotionCouponQueryAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TmallPromotionCouponQueryAPIRequest) GetBuyerNick() string { + return r._buyerNick +} diff --git a/model/promotion/TmallPromotionCouponQueryAPIResponse.go b/model/promotion/TmallPromotionCouponQueryAPIResponse.go new file mode 100644 index 0000000000..50a5d288c7 --- /dev/null +++ b/model/promotion/TmallPromotionCouponQueryAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询可用优惠券列表 API返回值 +tmall.promotion.coupon.query + +查询用户的可用优惠券列表,仅包含优惠券基本信息和用户nick +*/ +type TmallPromotionCouponQueryAPIResponse struct { + model.CommonResponse + TmallPromotionCouponQueryAPIResponseModel +} + +// 查询可用优惠券列表 成功返回结果 +type TmallPromotionCouponQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_promotion_coupon_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallPromotionCouponQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/TmallPromotionCouponQueryResponse.go b/model/promotion/TmallPromotionCouponQueryResponse.go deleted file mode 100644 index ff3aed0d6a..0000000000 --- a/model/promotion/TmallPromotionCouponQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询可用优惠券列表 API返回值 -tmall.promotion.coupon.query - -查询用户的可用优惠券列表,仅包含优惠券基本信息和用户nick -*/ -type TmallPromotionCouponQueryAPIResponse struct { - model.CommonResponse - TmallPromotionCouponQueryResponse -} - -// 查询可用优惠券列表 成功返回结果 -type TmallPromotionCouponQueryResponse struct { - XMLName xml.Name `xml:"tmall_promotion_coupon_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallPromotionCouponQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/promotion/TmallPromotionCouponUseAPIRequest.go b/model/promotion/TmallPromotionCouponUseAPIRequest.go new file mode 100644 index 0000000000..f8a8f4c8c6 --- /dev/null +++ b/model/promotion/TmallPromotionCouponUseAPIRequest.go @@ -0,0 +1,122 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +券核销接口 API请求 +tmall.promotion.coupon.use + +核销用户的一张优惠券,返回核销结果 +*/ +type TmallPromotionCouponUseAPIRequest struct { + model.Params + // 扩展字段 + _extra string + // 业务类型 + _bizType string + // buyer_id、buyer_nick至少填一个, 都填写以id为准 + _buyerId string + // buyer_id、buyer_nick至少填一个, 都填写以id为准 + _buyerNick string + // 商家id + _sellerId string + // 优惠券id + _couponId string +} + +// 初始化TmallPromotionCouponUseAPIRequest对象 +func NewTmallPromotionCouponUseRequest() *TmallPromotionCouponUseAPIRequest{ + return &TmallPromotionCouponUseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallPromotionCouponUseAPIRequest) GetApiMethodName() string { + return "tmall.promotion.coupon.use" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallPromotionCouponUseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Extra Setter +// 扩展字段 +func (r *TmallPromotionCouponUseAPIRequest) SetExtra(_extra string) error { + r._extra = _extra + r.Set("extra", _extra) + return nil +} + +// Extra Getter +func (r TmallPromotionCouponUseAPIRequest) GetExtra() string { + return r._extra +} +// BizType Setter +// 业务类型 +func (r *TmallPromotionCouponUseAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TmallPromotionCouponUseAPIRequest) GetBizType() string { + return r._bizType +} +// BuyerId Setter +// buyer_id、buyer_nick至少填一个, 都填写以id为准 +func (r *TmallPromotionCouponUseAPIRequest) SetBuyerId(_buyerId string) error { + r._buyerId = _buyerId + r.Set("buyer_id", _buyerId) + return nil +} + +// BuyerId Getter +func (r TmallPromotionCouponUseAPIRequest) GetBuyerId() string { + return r._buyerId +} +// BuyerNick Setter +// buyer_id、buyer_nick至少填一个, 都填写以id为准 +func (r *TmallPromotionCouponUseAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TmallPromotionCouponUseAPIRequest) GetBuyerNick() string { + return r._buyerNick +} +// SellerId Setter +// 商家id +func (r *TmallPromotionCouponUseAPIRequest) SetSellerId(_sellerId string) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r TmallPromotionCouponUseAPIRequest) GetSellerId() string { + return r._sellerId +} +// CouponId Setter +// 优惠券id +func (r *TmallPromotionCouponUseAPIRequest) SetCouponId(_couponId string) error { + r._couponId = _couponId + r.Set("coupon_id", _couponId) + return nil +} + +// CouponId Getter +func (r TmallPromotionCouponUseAPIRequest) GetCouponId() string { + return r._couponId +} diff --git a/model/promotion/TmallPromotionCouponUseAPIResponse.go b/model/promotion/TmallPromotionCouponUseAPIResponse.go new file mode 100644 index 0000000000..e0bbbf977b --- /dev/null +++ b/model/promotion/TmallPromotionCouponUseAPIResponse.go @@ -0,0 +1,31 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +券核销接口 API返回值 +tmall.promotion.coupon.use + +核销用户的一张优惠券,返回核销结果 +*/ +type TmallPromotionCouponUseAPIResponse struct { + model.CommonResponse + TmallPromotionCouponUseAPIResponseModel +} + +// 券核销接口 成功返回结果 +type TmallPromotionCouponUseAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_promotion_coupon_use_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data *UseResultDo `json:"data,omitempty" xml:"data,omitempty"` + // resultCode + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // errorMsg + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/promotion/TmallPromotionCouponUseResponse.go b/model/promotion/TmallPromotionCouponUseResponse.go deleted file mode 100644 index 1af7e8d03e..0000000000 --- a/model/promotion/TmallPromotionCouponUseResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -券核销接口 API返回值 -tmall.promotion.coupon.use - -核销用户的一张优惠券,返回核销结果 -*/ -type TmallPromotionCouponUseAPIResponse struct { - model.CommonResponse - TmallPromotionCouponUseResponse -} - -// 券核销接口 成功返回结果 -type TmallPromotionCouponUseResponse struct { - XMLName xml.Name `xml:"tmall_promotion_coupon_use_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data *UseResultDo `json:"data,omitempty" xml:"data,omitempty"` - // resultCode - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // errorMsg - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/promotion/TmallPromotionCouponUserAPIRequest.go b/model/promotion/TmallPromotionCouponUserAPIRequest.go new file mode 100644 index 0000000000..8bbd00a944 --- /dev/null +++ b/model/promotion/TmallPromotionCouponUserAPIRequest.go @@ -0,0 +1,80 @@ +package promotion + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户信息查询接口 API请求 +tmall.promotion.coupon.user + +开发给外部合作商(例如:苏宁),通过会员付款码获得会员nick +*/ +type TmallPromotionCouponUserAPIRequest struct { + model.Params + // 例如:suning + _bizType string + // 会员付款码 + _payCode string + // 扩展字段 + _extra string +} + +// 初始化TmallPromotionCouponUserAPIRequest对象 +func NewTmallPromotionCouponUserRequest() *TmallPromotionCouponUserAPIRequest{ + return &TmallPromotionCouponUserAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallPromotionCouponUserAPIRequest) GetApiMethodName() string { + return "tmall.promotion.coupon.user" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallPromotionCouponUserAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizType Setter +// 例如:suning +func (r *TmallPromotionCouponUserAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TmallPromotionCouponUserAPIRequest) GetBizType() string { + return r._bizType +} +// PayCode Setter +// 会员付款码 +func (r *TmallPromotionCouponUserAPIRequest) SetPayCode(_payCode string) error { + r._payCode = _payCode + r.Set("pay_code", _payCode) + return nil +} + +// PayCode Getter +func (r TmallPromotionCouponUserAPIRequest) GetPayCode() string { + return r._payCode +} +// Extra Setter +// 扩展字段 +func (r *TmallPromotionCouponUserAPIRequest) SetExtra(_extra string) error { + r._extra = _extra + r.Set("extra", _extra) + return nil +} + +// Extra Getter +func (r TmallPromotionCouponUserAPIRequest) GetExtra() string { + return r._extra +} diff --git a/model/promotion/TmallPromotionCouponUserAPIResponse.go b/model/promotion/TmallPromotionCouponUserAPIResponse.go new file mode 100644 index 0000000000..582f6e4511 --- /dev/null +++ b/model/promotion/TmallPromotionCouponUserAPIResponse.go @@ -0,0 +1,27 @@ +package promotion + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户信息查询接口 API返回值 +tmall.promotion.coupon.user + +开发给外部合作商(例如:苏宁),通过会员付款码获得会员nick +*/ +type TmallPromotionCouponUserAPIResponse struct { + model.CommonResponse + TmallPromotionCouponUserAPIResponseModel +} + +// 用户信息查询接口 成功返回结果 +type TmallPromotionCouponUserAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_promotion_coupon_user_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallPromotionCouponUserResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/promotion/TmallPromotionCouponUserResponse.go b/model/promotion/TmallPromotionCouponUserResponse.go deleted file mode 100644 index 36f719cdce..0000000000 --- a/model/promotion/TmallPromotionCouponUserResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package promotion - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户信息查询接口 API返回值 -tmall.promotion.coupon.user - -开发给外部合作商(例如:苏宁),通过会员付款码获得会员nick -*/ -type TmallPromotionCouponUserAPIResponse struct { - model.CommonResponse - TmallPromotionCouponUserResponse -} - -// 用户信息查询接口 成功返回结果 -type TmallPromotionCouponUserResponse struct { - XMLName xml.Name `xml:"tmall_promotion_coupon_user_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallPromotionCouponUserResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/pur/AlibabaCeresSupplierPoQueryAPIRequest.go b/model/pur/AlibabaCeresSupplierPoQueryAPIRequest.go new file mode 100644 index 0000000000..9d95a35c66 --- /dev/null +++ b/model/pur/AlibabaCeresSupplierPoQueryAPIRequest.go @@ -0,0 +1,80 @@ +package pur + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +采购供应商订单查询接口 API请求 +alibaba.ceres.supplier.po.query + +采购供应商订单查询接口 +*/ +type AlibabaCeresSupplierPoQueryAPIRequest struct { + model.Params + // 订单创建日期开始时间 + _startDate string + // 订单创建日期结束时间 + _endDate string + // 订单状态 + _status string +} + +// 初始化AlibabaCeresSupplierPoQueryAPIRequest对象 +func NewAlibabaCeresSupplierPoQueryRequest() *AlibabaCeresSupplierPoQueryAPIRequest{ + return &AlibabaCeresSupplierPoQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCeresSupplierPoQueryAPIRequest) GetApiMethodName() string { + return "alibaba.ceres.supplier.po.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCeresSupplierPoQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartDate Setter +// 订单创建日期开始时间 +func (r *AlibabaCeresSupplierPoQueryAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r AlibabaCeresSupplierPoQueryAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 订单创建日期结束时间 +func (r *AlibabaCeresSupplierPoQueryAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaCeresSupplierPoQueryAPIRequest) GetEndDate() string { + return r._endDate +} +// Status Setter +// 订单状态 +func (r *AlibabaCeresSupplierPoQueryAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaCeresSupplierPoQueryAPIRequest) GetStatus() string { + return r._status +} diff --git a/model/pur/AlibabaCeresSupplierPoQueryAPIResponse.go b/model/pur/AlibabaCeresSupplierPoQueryAPIResponse.go new file mode 100644 index 0000000000..c4c6fc42f9 --- /dev/null +++ b/model/pur/AlibabaCeresSupplierPoQueryAPIResponse.go @@ -0,0 +1,27 @@ +package pur + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +采购供应商订单查询接口 API返回值 +alibaba.ceres.supplier.po.query + +采购供应商订单查询接口 +*/ +type AlibabaCeresSupplierPoQueryAPIResponse struct { + model.CommonResponse + AlibabaCeresSupplierPoQueryAPIResponseModel +} + +// 采购供应商订单查询接口 成功返回结果 +type AlibabaCeresSupplierPoQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ceres_supplier_po_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回消息体 + Result *AlibabaCeresSupplierPoQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/pur/AlibabaCeresSupplierPoQueryResponse.go b/model/pur/AlibabaCeresSupplierPoQueryResponse.go deleted file mode 100644 index bc3dde8338..0000000000 --- a/model/pur/AlibabaCeresSupplierPoQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package pur - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -采购供应商订单查询接口 API返回值 -alibaba.ceres.supplier.po.query - -采购供应商订单查询接口 -*/ -type AlibabaCeresSupplierPoQueryAPIResponse struct { - model.CommonResponse - AlibabaCeresSupplierPoQueryResponse -} - -// 采购供应商订单查询接口 成功返回结果 -type AlibabaCeresSupplierPoQueryResponse struct { - XMLName xml.Name `xml:"alibaba_ceres_supplier_po_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回消息体 - Result *AlibabaCeresSupplierPoQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/pur/AlibabaCeresSupplierPoQuerydetailAPIRequest.go b/model/pur/AlibabaCeresSupplierPoQuerydetailAPIRequest.go new file mode 100644 index 0000000000..d2453f1789 --- /dev/null +++ b/model/pur/AlibabaCeresSupplierPoQuerydetailAPIRequest.go @@ -0,0 +1,52 @@ +package pur + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +采购供应商订单明细查询接口 API请求 +alibaba.ceres.supplier.po.querydetail + +采购供应商订单明细查询接口 +*/ +type AlibabaCeresSupplierPoQuerydetailAPIRequest struct { + model.Params + // 订单编号 + _poNo string +} + +// 初始化AlibabaCeresSupplierPoQuerydetailAPIRequest对象 +func NewAlibabaCeresSupplierPoQuerydetailRequest() *AlibabaCeresSupplierPoQuerydetailAPIRequest{ + return &AlibabaCeresSupplierPoQuerydetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCeresSupplierPoQuerydetailAPIRequest) GetApiMethodName() string { + return "alibaba.ceres.supplier.po.querydetail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCeresSupplierPoQuerydetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PoNo Setter +// 订单编号 +func (r *AlibabaCeresSupplierPoQuerydetailAPIRequest) SetPoNo(_poNo string) error { + r._poNo = _poNo + r.Set("po_no", _poNo) + return nil +} + +// PoNo Getter +func (r AlibabaCeresSupplierPoQuerydetailAPIRequest) GetPoNo() string { + return r._poNo +} diff --git a/model/pur/AlibabaCeresSupplierPoQuerydetailAPIResponse.go b/model/pur/AlibabaCeresSupplierPoQuerydetailAPIResponse.go new file mode 100644 index 0000000000..1670f86f93 --- /dev/null +++ b/model/pur/AlibabaCeresSupplierPoQuerydetailAPIResponse.go @@ -0,0 +1,27 @@ +package pur + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +采购供应商订单明细查询接口 API返回值 +alibaba.ceres.supplier.po.querydetail + +采购供应商订单明细查询接口 +*/ +type AlibabaCeresSupplierPoQuerydetailAPIResponse struct { + model.CommonResponse + AlibabaCeresSupplierPoQuerydetailAPIResponseModel +} + +// 采购供应商订单明细查询接口 成功返回结果 +type AlibabaCeresSupplierPoQuerydetailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ceres_supplier_po_querydetail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回消息体 + Result *SupplierPoDetailDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/pur/AlibabaCeresSupplierPoQuerydetailResponse.go b/model/pur/AlibabaCeresSupplierPoQuerydetailResponse.go deleted file mode 100644 index 4002a8dcc1..0000000000 --- a/model/pur/AlibabaCeresSupplierPoQuerydetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package pur - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -采购供应商订单明细查询接口 API返回值 -alibaba.ceres.supplier.po.querydetail - -采购供应商订单明细查询接口 -*/ -type AlibabaCeresSupplierPoQuerydetailAPIResponse struct { - model.CommonResponse - AlibabaCeresSupplierPoQuerydetailResponse -} - -// 采购供应商订单明细查询接口 成功返回结果 -type AlibabaCeresSupplierPoQuerydetailResponse struct { - XMLName xml.Name `xml:"alibaba_ceres_supplier_po_querydetail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回消息体 - Result *SupplierPoDetailDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/pur/AlibabaPurBasketMergeAPIRequest.go b/model/pur/AlibabaPurBasketMergeAPIRequest.go new file mode 100644 index 0000000000..dd5199b5e4 --- /dev/null +++ b/model/pur/AlibabaPurBasketMergeAPIRequest.go @@ -0,0 +1,52 @@ +package pur + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +合并购物车 API请求 +alibaba.pur.basket.merge + +采购商城接入第三方商家合并购物车接口服务 +*/ +type AlibabaPurBasketMergeAPIRequest struct { + model.Params + // 合并购物车入参 + _paramMallMergeCartRequestDTO *MallMergeCartRequestDto +} + +// 初始化AlibabaPurBasketMergeAPIRequest对象 +func NewAlibabaPurBasketMergeRequest() *AlibabaPurBasketMergeAPIRequest{ + return &AlibabaPurBasketMergeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPurBasketMergeAPIRequest) GetApiMethodName() string { + return "alibaba.pur.basket.merge" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPurBasketMergeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamMallMergeCartRequestDTO Setter +// 合并购物车入参 +func (r *AlibabaPurBasketMergeAPIRequest) SetParamMallMergeCartRequestDTO(_paramMallMergeCartRequestDTO *MallMergeCartRequestDto) error { + r._paramMallMergeCartRequestDTO = _paramMallMergeCartRequestDTO + r.Set("param_mall_merge_cart_request_d_t_o", _paramMallMergeCartRequestDTO) + return nil +} + +// ParamMallMergeCartRequestDTO Getter +func (r AlibabaPurBasketMergeAPIRequest) GetParamMallMergeCartRequestDTO() *MallMergeCartRequestDto { + return r._paramMallMergeCartRequestDTO +} diff --git a/model/pur/AlibabaPurBasketMergeAPIResponse.go b/model/pur/AlibabaPurBasketMergeAPIResponse.go new file mode 100644 index 0000000000..442a82e66b --- /dev/null +++ b/model/pur/AlibabaPurBasketMergeAPIResponse.go @@ -0,0 +1,27 @@ +package pur + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +合并购物车 API返回值 +alibaba.pur.basket.merge + +采购商城接入第三方商家合并购物车接口服务 +*/ +type AlibabaPurBasketMergeAPIResponse struct { + model.CommonResponse + AlibabaPurBasketMergeAPIResponseModel +} + +// 合并购物车 成功返回结果 +type AlibabaPurBasketMergeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_pur_basket_merge_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 获取url的出参 + Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/pur/AlibabaPurBasketMergeResponse.go b/model/pur/AlibabaPurBasketMergeResponse.go deleted file mode 100644 index 3978903dd5..0000000000 --- a/model/pur/AlibabaPurBasketMergeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package pur - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -合并购物车 API返回值 -alibaba.pur.basket.merge - -采购商城接入第三方商家合并购物车接口服务 -*/ -type AlibabaPurBasketMergeAPIResponse struct { - model.CommonResponse - AlibabaPurBasketMergeResponse -} - -// 合并购物车 成功返回结果 -type AlibabaPurBasketMergeResponse struct { - XMLName xml.Name `xml:"alibaba_pur_basket_merge_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 获取url的出参 - Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/pur/AlibabaPurMediaStatisticsAPIRequest.go b/model/pur/AlibabaPurMediaStatisticsAPIRequest.go new file mode 100644 index 0000000000..a1deb9228d --- /dev/null +++ b/model/pur/AlibabaPurMediaStatisticsAPIRequest.go @@ -0,0 +1,52 @@ +package pur + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新媒体统计信息 API请求 +alibaba.pur.media.statistics + +清博同步新媒体的统计信息给到采购平台 +*/ +type AlibabaPurMediaStatisticsAPIRequest struct { + model.Params + // 新媒体统计对象 + _mediaStatisticsDTO []MediaStatisticsDto +} + +// 初始化AlibabaPurMediaStatisticsAPIRequest对象 +func NewAlibabaPurMediaStatisticsRequest() *AlibabaPurMediaStatisticsAPIRequest{ + return &AlibabaPurMediaStatisticsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPurMediaStatisticsAPIRequest) GetApiMethodName() string { + return "alibaba.pur.media.statistics" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPurMediaStatisticsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MediaStatisticsDTO Setter +// 新媒体统计对象 +func (r *AlibabaPurMediaStatisticsAPIRequest) SetMediaStatisticsDTO(_mediaStatisticsDTO []MediaStatisticsDto) error { + r._mediaStatisticsDTO = _mediaStatisticsDTO + r.Set("media_statistics_d_t_o", _mediaStatisticsDTO) + return nil +} + +// MediaStatisticsDTO Getter +func (r AlibabaPurMediaStatisticsAPIRequest) GetMediaStatisticsDTO() []MediaStatisticsDto { + return r._mediaStatisticsDTO +} diff --git a/model/pur/AlibabaPurMediaStatisticsAPIResponse.go b/model/pur/AlibabaPurMediaStatisticsAPIResponse.go new file mode 100644 index 0000000000..fc77606068 --- /dev/null +++ b/model/pur/AlibabaPurMediaStatisticsAPIResponse.go @@ -0,0 +1,27 @@ +package pur + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新媒体统计信息 API返回值 +alibaba.pur.media.statistics + +清博同步新媒体的统计信息给到采购平台 +*/ +type AlibabaPurMediaStatisticsAPIResponse struct { + model.CommonResponse + AlibabaPurMediaStatisticsAPIResponseModel +} + +// 新媒体统计信息 成功返回结果 +type AlibabaPurMediaStatisticsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_pur_media_statistics_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 获取url的出参 + Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/pur/AlibabaPurMediaStatisticsResponse.go b/model/pur/AlibabaPurMediaStatisticsResponse.go deleted file mode 100644 index 162a148801..0000000000 --- a/model/pur/AlibabaPurMediaStatisticsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package pur - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新媒体统计信息 API返回值 -alibaba.pur.media.statistics - -清博同步新媒体的统计信息给到采购平台 -*/ -type AlibabaPurMediaStatisticsAPIResponse struct { - model.CommonResponse - AlibabaPurMediaStatisticsResponse -} - -// 新媒体统计信息 成功返回结果 -type AlibabaPurMediaStatisticsResponse struct { - XMLName xml.Name `xml:"alibaba_pur_media_statistics_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 获取url的出参 - Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/pur/AlibabaPurPrCreateAPIRequest.go b/model/pur/AlibabaPurPrCreateAPIRequest.go new file mode 100644 index 0000000000..c61f78e07a --- /dev/null +++ b/model/pur/AlibabaPurPrCreateAPIRequest.go @@ -0,0 +1,52 @@ +package pur + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +下pr单 API请求 +alibaba.pur.pr.create + +下pr单 +*/ +type AlibabaPurPrCreateAPIRequest struct { + model.Params + // 订单信息 + _purReq *MallReceivePrRequest +} + +// 初始化AlibabaPurPrCreateAPIRequest对象 +func NewAlibabaPurPrCreateRequest() *AlibabaPurPrCreateAPIRequest{ + return &AlibabaPurPrCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPurPrCreateAPIRequest) GetApiMethodName() string { + return "alibaba.pur.pr.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPurPrCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PurReq Setter +// 订单信息 +func (r *AlibabaPurPrCreateAPIRequest) SetPurReq(_purReq *MallReceivePrRequest) error { + r._purReq = _purReq + r.Set("pur_req", _purReq) + return nil +} + +// PurReq Getter +func (r AlibabaPurPrCreateAPIRequest) GetPurReq() *MallReceivePrRequest { + return r._purReq +} diff --git a/model/pur/AlibabaPurPrCreateAPIResponse.go b/model/pur/AlibabaPurPrCreateAPIResponse.go new file mode 100644 index 0000000000..52b2aecd1b --- /dev/null +++ b/model/pur/AlibabaPurPrCreateAPIResponse.go @@ -0,0 +1,27 @@ +package pur + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +下pr单 API返回值 +alibaba.pur.pr.create + +下pr单 +*/ +type AlibabaPurPrCreateAPIResponse struct { + model.CommonResponse + AlibabaPurPrCreateAPIResponseModel +} + +// 下pr单 成功返回结果 +type AlibabaPurPrCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_pur_pr_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回对象 + Result *MallReceivePrResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/pur/AlibabaPurPrCreateResponse.go b/model/pur/AlibabaPurPrCreateResponse.go deleted file mode 100644 index 01b8ca1db9..0000000000 --- a/model/pur/AlibabaPurPrCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package pur - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -下pr单 API返回值 -alibaba.pur.pr.create - -下pr单 -*/ -type AlibabaPurPrCreateAPIResponse struct { - model.CommonResponse - AlibabaPurPrCreateResponse -} - -// 下pr单 成功返回结果 -type AlibabaPurPrCreateResponse struct { - XMLName xml.Name `xml:"alibaba_pur_pr_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回对象 - Result *MallReceivePrResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/pur/AlibabaPurProductSyncAPIRequest.go b/model/pur/AlibabaPurProductSyncAPIRequest.go new file mode 100644 index 0000000000..3168485aa1 --- /dev/null +++ b/model/pur/AlibabaPurProductSyncAPIRequest.go @@ -0,0 +1,52 @@ +package pur + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同步产品 API请求 +alibaba.pur.product.sync + +同步产品 +*/ +type AlibabaPurProductSyncAPIRequest struct { + model.Params + // 产品对象 + _accessProductDtos []AccessProductDto +} + +// 初始化AlibabaPurProductSyncAPIRequest对象 +func NewAlibabaPurProductSyncRequest() *AlibabaPurProductSyncAPIRequest{ + return &AlibabaPurProductSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPurProductSyncAPIRequest) GetApiMethodName() string { + return "alibaba.pur.product.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPurProductSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccessProductDtos Setter +// 产品对象 +func (r *AlibabaPurProductSyncAPIRequest) SetAccessProductDtos(_accessProductDtos []AccessProductDto) error { + r._accessProductDtos = _accessProductDtos + r.Set("access_product_dtos", _accessProductDtos) + return nil +} + +// AccessProductDtos Getter +func (r AlibabaPurProductSyncAPIRequest) GetAccessProductDtos() []AccessProductDto { + return r._accessProductDtos +} diff --git a/model/pur/AlibabaPurProductSyncAPIResponse.go b/model/pur/AlibabaPurProductSyncAPIResponse.go new file mode 100644 index 0000000000..78f748a046 --- /dev/null +++ b/model/pur/AlibabaPurProductSyncAPIResponse.go @@ -0,0 +1,27 @@ +package pur + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同步产品 API返回值 +alibaba.pur.product.sync + +同步产品 +*/ +type AlibabaPurProductSyncAPIResponse struct { + model.CommonResponse + AlibabaPurProductSyncAPIResponseModel +} + +// 同步产品 成功返回结果 +type AlibabaPurProductSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_pur_product_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 获取url的出参 + Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/pur/AlibabaPurProductSyncResponse.go b/model/pur/AlibabaPurProductSyncResponse.go deleted file mode 100644 index e8a1883050..0000000000 --- a/model/pur/AlibabaPurProductSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package pur - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同步产品 API返回值 -alibaba.pur.product.sync - -同步产品 -*/ -type AlibabaPurProductSyncAPIResponse struct { - model.CommonResponse - AlibabaPurProductSyncResponse -} - -// 同步产品 成功返回结果 -type AlibabaPurProductSyncResponse struct { - XMLName xml.Name `xml:"alibaba_pur_product_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 获取url的出参 - Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/pur/AlibabaPurSupplierAsncreateAPIRequest.go b/model/pur/AlibabaPurSupplierAsncreateAPIRequest.go new file mode 100644 index 0000000000..a56f15760a --- /dev/null +++ b/model/pur/AlibabaPurSupplierAsncreateAPIRequest.go @@ -0,0 +1,52 @@ +package pur + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +asn创建 API请求 +alibaba.pur.supplier.asncreate + +asn创建 +*/ +type AlibabaPurSupplierAsncreateAPIRequest struct { + model.Params + // asn头信息 + _asn *SupplierAsnInfoVO +} + +// 初始化AlibabaPurSupplierAsncreateAPIRequest对象 +func NewAlibabaPurSupplierAsncreateRequest() *AlibabaPurSupplierAsncreateAPIRequest{ + return &AlibabaPurSupplierAsncreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPurSupplierAsncreateAPIRequest) GetApiMethodName() string { + return "alibaba.pur.supplier.asncreate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPurSupplierAsncreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Asn Setter +// asn头信息 +func (r *AlibabaPurSupplierAsncreateAPIRequest) SetAsn(_asn *SupplierAsnInfoVO) error { + r._asn = _asn + r.Set("asn", _asn) + return nil +} + +// Asn Getter +func (r AlibabaPurSupplierAsncreateAPIRequest) GetAsn() *SupplierAsnInfoVO { + return r._asn +} diff --git a/model/pur/AlibabaPurSupplierAsncreateAPIResponse.go b/model/pur/AlibabaPurSupplierAsncreateAPIResponse.go new file mode 100644 index 0000000000..b621819360 --- /dev/null +++ b/model/pur/AlibabaPurSupplierAsncreateAPIResponse.go @@ -0,0 +1,27 @@ +package pur + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +asn创建 API返回值 +alibaba.pur.supplier.asncreate + +asn创建 +*/ +type AlibabaPurSupplierAsncreateAPIResponse struct { + model.CommonResponse + AlibabaPurSupplierAsncreateAPIResponseModel +} + +// asn创建 成功返回结果 +type AlibabaPurSupplierAsncreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_pur_supplier_asncreate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 获取url的出参 + Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/pur/AlibabaPurSupplierAsncreateResponse.go b/model/pur/AlibabaPurSupplierAsncreateResponse.go deleted file mode 100644 index 3e4c9cc30a..0000000000 --- a/model/pur/AlibabaPurSupplierAsncreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package pur - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -asn创建 API返回值 -alibaba.pur.supplier.asncreate - -asn创建 -*/ -type AlibabaPurSupplierAsncreateAPIResponse struct { - model.CommonResponse - AlibabaPurSupplierAsncreateResponse -} - -// asn创建 成功返回结果 -type AlibabaPurSupplierAsncreateResponse struct { - XMLName xml.Name `xml:"alibaba_pur_supplier_asncreate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 获取url的出参 - Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/pur/AlibabaPurSupplierInvoicecreateAPIRequest.go b/model/pur/AlibabaPurSupplierInvoicecreateAPIRequest.go new file mode 100644 index 0000000000..677f9f7166 --- /dev/null +++ b/model/pur/AlibabaPurSupplierInvoicecreateAPIRequest.go @@ -0,0 +1,52 @@ +package pur + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +preInvoice创建 API请求 +alibaba.pur.supplier.invoicecreate + +preInvoice创建 +*/ +type AlibabaPurSupplierInvoicecreateAPIRequest struct { + model.Params + // 预发票头信息 + _invoice *SupplierPreInvoiceInfoVO +} + +// 初始化AlibabaPurSupplierInvoicecreateAPIRequest对象 +func NewAlibabaPurSupplierInvoicecreateRequest() *AlibabaPurSupplierInvoicecreateAPIRequest{ + return &AlibabaPurSupplierInvoicecreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPurSupplierInvoicecreateAPIRequest) GetApiMethodName() string { + return "alibaba.pur.supplier.invoicecreate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPurSupplierInvoicecreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Invoice Setter +// 预发票头信息 +func (r *AlibabaPurSupplierInvoicecreateAPIRequest) SetInvoice(_invoice *SupplierPreInvoiceInfoVO) error { + r._invoice = _invoice + r.Set("invoice", _invoice) + return nil +} + +// Invoice Getter +func (r AlibabaPurSupplierInvoicecreateAPIRequest) GetInvoice() *SupplierPreInvoiceInfoVO { + return r._invoice +} diff --git a/model/pur/AlibabaPurSupplierInvoicecreateAPIResponse.go b/model/pur/AlibabaPurSupplierInvoicecreateAPIResponse.go new file mode 100644 index 0000000000..6b01797375 --- /dev/null +++ b/model/pur/AlibabaPurSupplierInvoicecreateAPIResponse.go @@ -0,0 +1,27 @@ +package pur + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +preInvoice创建 API返回值 +alibaba.pur.supplier.invoicecreate + +preInvoice创建 +*/ +type AlibabaPurSupplierInvoicecreateAPIResponse struct { + model.CommonResponse + AlibabaPurSupplierInvoicecreateAPIResponseModel +} + +// preInvoice创建 成功返回结果 +type AlibabaPurSupplierInvoicecreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_pur_supplier_invoicecreate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 获取url的出参 + Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/pur/AlibabaPurSupplierInvoicecreateResponse.go b/model/pur/AlibabaPurSupplierInvoicecreateResponse.go deleted file mode 100644 index 2b1da699c6..0000000000 --- a/model/pur/AlibabaPurSupplierInvoicecreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package pur - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -preInvoice创建 API返回值 -alibaba.pur.supplier.invoicecreate - -preInvoice创建 -*/ -type AlibabaPurSupplierInvoicecreateAPIResponse struct { - model.CommonResponse - AlibabaPurSupplierInvoicecreateResponse -} - -// preInvoice创建 成功返回结果 -type AlibabaPurSupplierInvoicecreateResponse struct { - XMLName xml.Name `xml:"alibaba_pur_supplier_invoicecreate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 获取url的出参 - Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/pur/AlibabaPurSupplierPorespcreateAPIRequest.go b/model/pur/AlibabaPurSupplierPorespcreateAPIRequest.go new file mode 100644 index 0000000000..4167713db3 --- /dev/null +++ b/model/pur/AlibabaPurSupplierPorespcreateAPIRequest.go @@ -0,0 +1,52 @@ +package pur + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +po反馈创建 API请求 +alibaba.pur.supplier.porespcreate + +PO反馈接口 +*/ +type AlibabaPurSupplierPorespcreateAPIRequest struct { + model.Params + // PO反馈信息 + _poResponse []SupplierPoResponseDo +} + +// 初始化AlibabaPurSupplierPorespcreateAPIRequest对象 +func NewAlibabaPurSupplierPorespcreateRequest() *AlibabaPurSupplierPorespcreateAPIRequest{ + return &AlibabaPurSupplierPorespcreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPurSupplierPorespcreateAPIRequest) GetApiMethodName() string { + return "alibaba.pur.supplier.porespcreate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPurSupplierPorespcreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PoResponse Setter +// PO反馈信息 +func (r *AlibabaPurSupplierPorespcreateAPIRequest) SetPoResponse(_poResponse []SupplierPoResponseDo) error { + r._poResponse = _poResponse + r.Set("po_response", _poResponse) + return nil +} + +// PoResponse Getter +func (r AlibabaPurSupplierPorespcreateAPIRequest) GetPoResponse() []SupplierPoResponseDo { + return r._poResponse +} diff --git a/model/pur/AlibabaPurSupplierPorespcreateAPIResponse.go b/model/pur/AlibabaPurSupplierPorespcreateAPIResponse.go new file mode 100644 index 0000000000..b1c7743498 --- /dev/null +++ b/model/pur/AlibabaPurSupplierPorespcreateAPIResponse.go @@ -0,0 +1,27 @@ +package pur + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +po反馈创建 API返回值 +alibaba.pur.supplier.porespcreate + +PO反馈接口 +*/ +type AlibabaPurSupplierPorespcreateAPIResponse struct { + model.CommonResponse + AlibabaPurSupplierPorespcreateAPIResponseModel +} + +// po反馈创建 成功返回结果 +type AlibabaPurSupplierPorespcreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_pur_supplier_porespcreate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 获取url的出参 + Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/pur/AlibabaPurSupplierPorespcreateResponse.go b/model/pur/AlibabaPurSupplierPorespcreateResponse.go deleted file mode 100644 index 6c253dc48a..0000000000 --- a/model/pur/AlibabaPurSupplierPorespcreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package pur - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -po反馈创建 API返回值 -alibaba.pur.supplier.porespcreate - -PO反馈接口 -*/ -type AlibabaPurSupplierPorespcreateAPIResponse struct { - model.CommonResponse - AlibabaPurSupplierPorespcreateResponse -} - -// po反馈创建 成功返回结果 -type AlibabaPurSupplierPorespcreateResponse struct { - XMLName xml.Name `xml:"alibaba_pur_supplier_porespcreate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 获取url的出参 - Result *ActionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/qianniu/TaobaoDaogoubaoOrderStatisticsTotalAPIRequest.go b/model/qianniu/TaobaoDaogoubaoOrderStatisticsTotalAPIRequest.go new file mode 100644 index 0000000000..5ed820fb39 --- /dev/null +++ b/model/qianniu/TaobaoDaogoubaoOrderStatisticsTotalAPIRequest.go @@ -0,0 +1,66 @@ +package qianniu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销售订单总额统计 API请求 +taobao.daogoubao.order.statistics.total + +对接千牛端数字中心 +*/ +type TaobaoDaogoubaoOrderStatisticsTotalAPIRequest struct { + model.Params + // 调试时用的传入id + _debugId string + // 需要的字段名 + _field string +} + +// 初始化TaobaoDaogoubaoOrderStatisticsTotalAPIRequest对象 +func NewTaobaoDaogoubaoOrderStatisticsTotalRequest() *TaobaoDaogoubaoOrderStatisticsTotalAPIRequest{ + return &TaobaoDaogoubaoOrderStatisticsTotalAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoDaogoubaoOrderStatisticsTotalAPIRequest) GetApiMethodName() string { + return "taobao.daogoubao.order.statistics.total" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoDaogoubaoOrderStatisticsTotalAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DebugId Setter +// 调试时用的传入id +func (r *TaobaoDaogoubaoOrderStatisticsTotalAPIRequest) SetDebugId(_debugId string) error { + r._debugId = _debugId + r.Set("debug_id", _debugId) + return nil +} + +// DebugId Getter +func (r TaobaoDaogoubaoOrderStatisticsTotalAPIRequest) GetDebugId() string { + return r._debugId +} +// Field Setter +// 需要的字段名 +func (r *TaobaoDaogoubaoOrderStatisticsTotalAPIRequest) SetField(_field string) error { + r._field = _field + r.Set("field", _field) + return nil +} + +// Field Getter +func (r TaobaoDaogoubaoOrderStatisticsTotalAPIRequest) GetField() string { + return r._field +} diff --git a/model/qianniu/TaobaoDaogoubaoOrderStatisticsTotalAPIResponse.go b/model/qianniu/TaobaoDaogoubaoOrderStatisticsTotalAPIResponse.go new file mode 100644 index 0000000000..f56450dce6 --- /dev/null +++ b/model/qianniu/TaobaoDaogoubaoOrderStatisticsTotalAPIResponse.go @@ -0,0 +1,27 @@ +package qianniu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销售订单总额统计 API返回值 +taobao.daogoubao.order.statistics.total + +对接千牛端数字中心 +*/ +type TaobaoDaogoubaoOrderStatisticsTotalAPIResponse struct { + model.CommonResponse + TaobaoDaogoubaoOrderStatisticsTotalAPIResponseModel +} + +// 销售订单总额统计 成功返回结果 +type TaobaoDaogoubaoOrderStatisticsTotalAPIResponseModel struct { + XMLName xml.Name `xml:"daogoubao_order_statistics_total_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *OrderStatisticsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/qianniu/TaobaoDaogoubaoOrderStatisticsTotalResponse.go b/model/qianniu/TaobaoDaogoubaoOrderStatisticsTotalResponse.go deleted file mode 100644 index 6b3d643a20..0000000000 --- a/model/qianniu/TaobaoDaogoubaoOrderStatisticsTotalResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qianniu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销售订单总额统计 API返回值 -taobao.daogoubao.order.statistics.total - -对接千牛端数字中心 -*/ -type TaobaoDaogoubaoOrderStatisticsTotalAPIResponse struct { - model.CommonResponse - TaobaoDaogoubaoOrderStatisticsTotalResponse -} - -// 销售订单总额统计 成功返回结果 -type TaobaoDaogoubaoOrderStatisticsTotalResponse struct { - XMLName xml.Name `xml:"daogoubao_order_statistics_total_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *OrderStatisticsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/qianniu/TaobaoQianniuBuyerTagGetAPIRequest.go b/model/qianniu/TaobaoQianniuBuyerTagGetAPIRequest.go new file mode 100644 index 0000000000..5c0134edf6 --- /dev/null +++ b/model/qianniu/TaobaoQianniuBuyerTagGetAPIRequest.go @@ -0,0 +1,66 @@ +package qianniu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +判断买家是否有某些标 API请求 +taobao.qianniu.buyer.tag.get + +判断某个买家是否有某些标 +*/ +type TaobaoQianniuBuyerTagGetAPIRequest struct { + model.Params + // 买家nick + _buyerNick string + // 支持的表,多个tag用英文逗号切割 + _tagList string +} + +// 初始化TaobaoQianniuBuyerTagGetAPIRequest对象 +func NewTaobaoQianniuBuyerTagGetRequest() *TaobaoQianniuBuyerTagGetAPIRequest{ + return &TaobaoQianniuBuyerTagGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQianniuBuyerTagGetAPIRequest) GetApiMethodName() string { + return "taobao.qianniu.buyer.tag.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQianniuBuyerTagGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BuyerNick Setter +// 买家nick +func (r *TaobaoQianniuBuyerTagGetAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoQianniuBuyerTagGetAPIRequest) GetBuyerNick() string { + return r._buyerNick +} +// TagList Setter +// 支持的表,多个tag用英文逗号切割 +func (r *TaobaoQianniuBuyerTagGetAPIRequest) SetTagList(_tagList string) error { + r._tagList = _tagList + r.Set("tag_list", _tagList) + return nil +} + +// TagList Getter +func (r TaobaoQianniuBuyerTagGetAPIRequest) GetTagList() string { + return r._tagList +} diff --git a/model/qianniu/TaobaoQianniuBuyerTagGetAPIResponse.go b/model/qianniu/TaobaoQianniuBuyerTagGetAPIResponse.go new file mode 100644 index 0000000000..487a19c995 --- /dev/null +++ b/model/qianniu/TaobaoQianniuBuyerTagGetAPIResponse.go @@ -0,0 +1,27 @@ +package qianniu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +判断买家是否有某些标 API返回值 +taobao.qianniu.buyer.tag.get + +判断某个买家是否有某些标 +*/ +type TaobaoQianniuBuyerTagGetAPIResponse struct { + model.CommonResponse + TaobaoQianniuBuyerTagGetAPIResponseModel +} + +// 判断买家是否有某些标 成功返回结果 +type TaobaoQianniuBuyerTagGetAPIResponseModel struct { + XMLName xml.Name `xml:"qianniu_buyer_tag_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 用户tag信息 + UserTagInfo *UserTagQueryResult `json:"user_tag_info,omitempty" xml:"user_tag_info,omitempty"` +} diff --git a/model/qianniu/TaobaoQianniuBuyerTagGetResponse.go b/model/qianniu/TaobaoQianniuBuyerTagGetResponse.go deleted file mode 100644 index cc83b7993d..0000000000 --- a/model/qianniu/TaobaoQianniuBuyerTagGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qianniu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -判断买家是否有某些标 API返回值 -taobao.qianniu.buyer.tag.get - -判断某个买家是否有某些标 -*/ -type TaobaoQianniuBuyerTagGetAPIResponse struct { - model.CommonResponse - TaobaoQianniuBuyerTagGetResponse -} - -// 判断买家是否有某些标 成功返回结果 -type TaobaoQianniuBuyerTagGetResponse struct { - XMLName xml.Name `xml:"qianniu_buyer_tag_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 用户tag信息 - UserTagInfo *UserTagQueryResult `json:"user_tag_info,omitempty" xml:"user_tag_info,omitempty"` -} diff --git a/model/qianniu/TaobaoQianniuCloudkefuOnlinestatuslogGetAPIRequest.go b/model/qianniu/TaobaoQianniuCloudkefuOnlinestatuslogGetAPIRequest.go new file mode 100644 index 0000000000..0a567d9ede --- /dev/null +++ b/model/qianniu/TaobaoQianniuCloudkefuOnlinestatuslogGetAPIRequest.go @@ -0,0 +1,81 @@ +package qianniu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询客服在线状态 API请求 +taobao.qianniu.cloudkefu.onlinestatuslog.get + +按天查询客服账号的在线状态记录。如:登录,下线,挂起等 +有别于taobao.qianniu.cloudkefu.statuslog.get接口,这个接口可以查询30天内的流水,不需要分页查询 +*/ +type TaobaoQianniuCloudkefuOnlinestatuslogGetAPIRequest struct { + model.Params + // 子帐号列表,最多10个 + _accountIds []int64 + // 查询开始日期,只有日期有效,时间忽略 + _startDate string + // 查询结束日期,只有日期有效,时间忽略 + _endDate string +} + +// 初始化TaobaoQianniuCloudkefuOnlinestatuslogGetAPIRequest对象 +func NewTaobaoQianniuCloudkefuOnlinestatuslogGetRequest() *TaobaoQianniuCloudkefuOnlinestatuslogGetAPIRequest{ + return &TaobaoQianniuCloudkefuOnlinestatuslogGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQianniuCloudkefuOnlinestatuslogGetAPIRequest) GetApiMethodName() string { + return "taobao.qianniu.cloudkefu.onlinestatuslog.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQianniuCloudkefuOnlinestatuslogGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccountIds Setter +// 子帐号列表,最多10个 +func (r *TaobaoQianniuCloudkefuOnlinestatuslogGetAPIRequest) SetAccountIds(_accountIds []int64) error { + r._accountIds = _accountIds + r.Set("account_ids", _accountIds) + return nil +} + +// AccountIds Getter +func (r TaobaoQianniuCloudkefuOnlinestatuslogGetAPIRequest) GetAccountIds() []int64 { + return r._accountIds +} +// StartDate Setter +// 查询开始日期,只有日期有效,时间忽略 +func (r *TaobaoQianniuCloudkefuOnlinestatuslogGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoQianniuCloudkefuOnlinestatuslogGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 查询结束日期,只有日期有效,时间忽略 +func (r *TaobaoQianniuCloudkefuOnlinestatuslogGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoQianniuCloudkefuOnlinestatuslogGetAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/qianniu/TaobaoQianniuCloudkefuOnlinestatuslogGetAPIResponse.go b/model/qianniu/TaobaoQianniuCloudkefuOnlinestatuslogGetAPIResponse.go new file mode 100644 index 0000000000..8dc98c7624 --- /dev/null +++ b/model/qianniu/TaobaoQianniuCloudkefuOnlinestatuslogGetAPIResponse.go @@ -0,0 +1,38 @@ +package qianniu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询客服在线状态 API返回值 +taobao.qianniu.cloudkefu.onlinestatuslog.get + +按天查询客服账号的在线状态记录。如:登录,下线,挂起等 +有别于taobao.qianniu.cloudkefu.statuslog.get接口,这个接口可以查询30天内的流水,不需要分页查询 +*/ +type TaobaoQianniuCloudkefuOnlinestatuslogGetAPIResponse struct { + model.CommonResponse + TaobaoQianniuCloudkefuOnlinestatuslogGetAPIResponseModel +} + +// 查询客服在线状态 成功返回结果 +type TaobaoQianniuCloudkefuOnlinestatuslogGetAPIResponseModel struct { + XMLName xml.Name `xml:"qianniu_cloudkefu_onlinestatuslog_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // module + RecordList []RecordList `json:"record_list,omitempty" xml:"record_list>record_list,omitempty"` + // cause + Cause string `json:"cause,omitempty" xml:"cause,omitempty"` + // errorMap + ErrorMap string `json:"error_map,omitempty" xml:"error_map,omitempty"` + // attachment + Attachment string `json:"attachment,omitempty" xml:"attachment,omitempty"` + // solution + Solution string `json:"solution,omitempty" xml:"solution,omitempty"` + // version + Version int64 `json:"version,omitempty" xml:"version,omitempty"` +} diff --git a/model/qianniu/TaobaoQianniuCloudkefuOnlinestatuslogGetResponse.go b/model/qianniu/TaobaoQianniuCloudkefuOnlinestatuslogGetResponse.go deleted file mode 100644 index a877b9fadc..0000000000 --- a/model/qianniu/TaobaoQianniuCloudkefuOnlinestatuslogGetResponse.go +++ /dev/null @@ -1,38 +0,0 @@ -package qianniu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询客服在线状态 API返回值 -taobao.qianniu.cloudkefu.onlinestatuslog.get - -按天查询客服账号的在线状态记录。如:登录,下线,挂起等 -有别于taobao.qianniu.cloudkefu.statuslog.get接口,这个接口可以查询30天内的流水,不需要分页查询 -*/ -type TaobaoQianniuCloudkefuOnlinestatuslogGetAPIResponse struct { - model.CommonResponse - TaobaoQianniuCloudkefuOnlinestatuslogGetResponse -} - -// 查询客服在线状态 成功返回结果 -type TaobaoQianniuCloudkefuOnlinestatuslogGetResponse struct { - XMLName xml.Name `xml:"qianniu_cloudkefu_onlinestatuslog_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // module - RecordList []RecordList `json:"record_list,omitempty" xml:"record_list>record_list,omitempty"` - // cause - Cause string `json:"cause,omitempty" xml:"cause,omitempty"` - // errorMap - ErrorMap string `json:"error_map,omitempty" xml:"error_map,omitempty"` - // attachment - Attachment string `json:"attachment,omitempty" xml:"attachment,omitempty"` - // solution - Solution string `json:"solution,omitempty" xml:"solution,omitempty"` - // version - Version int64 `json:"version,omitempty" xml:"version,omitempty"` -} diff --git a/model/qianniu/TaobaoQianniuNumberPutAPIRequest.go b/model/qianniu/TaobaoQianniuNumberPutAPIRequest.go new file mode 100644 index 0000000000..21df736b0a --- /dev/null +++ b/model/qianniu/TaobaoQianniuNumberPutAPIRequest.go @@ -0,0 +1,52 @@ +package qianniu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV上传数据接口 API请求 +taobao.qianniu.number.put + +ISV提供给卖家使用的业务数据,需要通过这个接口上传到千牛数据中心。 +*/ +type TaobaoQianniuNumberPutAPIRequest struct { + model.Params + // 考虑到稳定性,建议一次卖家最多为200个。标准json格式的数组构成的字符串。每个元素为{user_id:****,field:"****",value:"****"}分别是用户的userid,数据的名称,以及数据的值。 + _data string +} + +// 初始化TaobaoQianniuNumberPutAPIRequest对象 +func NewTaobaoQianniuNumberPutRequest() *TaobaoQianniuNumberPutAPIRequest{ + return &TaobaoQianniuNumberPutAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQianniuNumberPutAPIRequest) GetApiMethodName() string { + return "taobao.qianniu.number.put" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQianniuNumberPutAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Data Setter +// 考虑到稳定性,建议一次卖家最多为200个。标准json格式的数组构成的字符串。每个元素为{user_id:****,field:"****",value:"****"}分别是用户的userid,数据的名称,以及数据的值。 +func (r *TaobaoQianniuNumberPutAPIRequest) SetData(_data string) error { + r._data = _data + r.Set("data", _data) + return nil +} + +// Data Getter +func (r TaobaoQianniuNumberPutAPIRequest) GetData() string { + return r._data +} diff --git a/model/qianniu/TaobaoQianniuNumberPutAPIResponse.go b/model/qianniu/TaobaoQianniuNumberPutAPIResponse.go new file mode 100644 index 0000000000..22578c6027 --- /dev/null +++ b/model/qianniu/TaobaoQianniuNumberPutAPIResponse.go @@ -0,0 +1,27 @@ +package qianniu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV上传数据接口 API返回值 +taobao.qianniu.number.put + +ISV提供给卖家使用的业务数据,需要通过这个接口上传到千牛数据中心。 +*/ +type TaobaoQianniuNumberPutAPIResponse struct { + model.CommonResponse + TaobaoQianniuNumberPutAPIResponseModel +} + +// ISV上传数据接口 成功返回结果 +type TaobaoQianniuNumberPutAPIResponseModel struct { + XMLName xml.Name `xml:"qianniu_number_put_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否上传成功。返回的是个json串,分别表示每条记录是否成功。 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/qianniu/TaobaoQianniuNumberPutResponse.go b/model/qianniu/TaobaoQianniuNumberPutResponse.go deleted file mode 100644 index 0d5ab2ba95..0000000000 --- a/model/qianniu/TaobaoQianniuNumberPutResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qianniu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV上传数据接口 API返回值 -taobao.qianniu.number.put - -ISV提供给卖家使用的业务数据,需要通过这个接口上传到千牛数据中心。 -*/ -type TaobaoQianniuNumberPutAPIResponse struct { - model.CommonResponse - TaobaoQianniuNumberPutResponse -} - -// ISV上传数据接口 成功返回结果 -type TaobaoQianniuNumberPutResponse struct { - XMLName xml.Name `xml:"qianniu_number_put_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否上传成功。返回的是个json串,分别表示每条记录是否成功。 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/qianniu/TaobaoQianniuTaskCancelAPIRequest.go b/model/qianniu/TaobaoQianniuTaskCancelAPIRequest.go new file mode 100644 index 0000000000..567cca72b9 --- /dev/null +++ b/model/qianniu/TaobaoQianniuTaskCancelAPIRequest.go @@ -0,0 +1,66 @@ +package qianniu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消轻任务 API请求 +taobao.qianniu.task.cancel + +由任务发起者调用 +*/ +type TaobaoQianniuTaskCancelAPIRequest struct { + model.Params + // 任务元数据ID + _metaId int64 + // 任务备注 + _memo string +} + +// 初始化TaobaoQianniuTaskCancelAPIRequest对象 +func NewTaobaoQianniuTaskCancelRequest() *TaobaoQianniuTaskCancelAPIRequest{ + return &TaobaoQianniuTaskCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQianniuTaskCancelAPIRequest) GetApiMethodName() string { + return "taobao.qianniu.task.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQianniuTaskCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MetaId Setter +// 任务元数据ID +func (r *TaobaoQianniuTaskCancelAPIRequest) SetMetaId(_metaId int64) error { + r._metaId = _metaId + r.Set("meta_id", _metaId) + return nil +} + +// MetaId Getter +func (r TaobaoQianniuTaskCancelAPIRequest) GetMetaId() int64 { + return r._metaId +} +// Memo Setter +// 任务备注 +func (r *TaobaoQianniuTaskCancelAPIRequest) SetMemo(_memo string) error { + r._memo = _memo + r.Set("memo", _memo) + return nil +} + +// Memo Getter +func (r TaobaoQianniuTaskCancelAPIRequest) GetMemo() string { + return r._memo +} diff --git a/model/qianniu/TaobaoQianniuTaskCancelAPIResponse.go b/model/qianniu/TaobaoQianniuTaskCancelAPIResponse.go new file mode 100644 index 0000000000..913dc750cf --- /dev/null +++ b/model/qianniu/TaobaoQianniuTaskCancelAPIResponse.go @@ -0,0 +1,27 @@ +package qianniu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消轻任务 API返回值 +taobao.qianniu.task.cancel + +由任务发起者调用 +*/ +type TaobaoQianniuTaskCancelAPIResponse struct { + model.CommonResponse + TaobaoQianniuTaskCancelAPIResponseModel +} + +// 取消轻任务 成功返回结果 +type TaobaoQianniuTaskCancelAPIResponseModel struct { + XMLName xml.Name `xml:"qianniu_task_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/qianniu/TaobaoQianniuTaskCancelResponse.go b/model/qianniu/TaobaoQianniuTaskCancelResponse.go deleted file mode 100644 index dfd82b0832..0000000000 --- a/model/qianniu/TaobaoQianniuTaskCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qianniu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消轻任务 API返回值 -taobao.qianniu.task.cancel - -由任务发起者调用 -*/ -type TaobaoQianniuTaskCancelAPIResponse struct { - model.CommonResponse - TaobaoQianniuTaskCancelResponse -} - -// 取消轻任务 成功返回结果 -type TaobaoQianniuTaskCancelResponse struct { - XMLName xml.Name `xml:"qianniu_task_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/qianniu/TaobaoQianniuTaskCreateAPIRequest.go b/model/qianniu/TaobaoQianniuTaskCreateAPIRequest.go new file mode 100644 index 0000000000..e55f1277f3 --- /dev/null +++ b/model/qianniu/TaobaoQianniuTaskCreateAPIRequest.go @@ -0,0 +1,66 @@ +package qianniu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建轻任务 API请求 +taobao.qianniu.task.create + +发起一个轻任务,分配给多个执行者,并发送消息提醒,由任务发起者调用 +*/ +type TaobaoQianniuTaskCreateAPIRequest struct { + model.Params + // 任务元数据,JSON格式,例如:
meta = {
title : "可自定义",
content : “任务正文”,
sender_uid : user_id,
sender_nick : user_nick,
reminder_flag : 1,
finish_strategy : 0,
biz_type : "memo",
priority : 0
};
说明:reminder_flag:1表示需要发送任务提醒消息,0表示不需要消息提醒。建议写1;
finish_strategy : 0表示只要一个人完成任务就可以,1表示所有人都需要完成任务。根据场景设置,建议选0;
biz_type : 任务类型,请咨询千牛官方获取正确的任务类型;
priority : 1表示高优先级,0表示普通;
这里的举例为必填字段,一些选填字段没有列出,如有其它需求请联系千牛官方。 + _meta string + // 任务列表,JSON格式的数组,即支持多个接收人,例如:
task = [{
receiver_uid : user_id,
receiver_nick : user_nick,
biz_type : "memo",
sub_biz_type : "memo",
biz_id : user_nick,
biz_nick : user_nick
}];
上述为必填字段,其它字段请咨询千牛官方。 + _tasks string +} + +// 初始化TaobaoQianniuTaskCreateAPIRequest对象 +func NewTaobaoQianniuTaskCreateRequest() *TaobaoQianniuTaskCreateAPIRequest{ + return &TaobaoQianniuTaskCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQianniuTaskCreateAPIRequest) GetApiMethodName() string { + return "taobao.qianniu.task.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQianniuTaskCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Meta Setter +// 任务元数据,JSON格式,例如:
meta = {
title : "可自定义",
content : “任务正文”,
sender_uid : user_id,
sender_nick : user_nick,
reminder_flag : 1,
finish_strategy : 0,
biz_type : "memo",
priority : 0
};
说明:reminder_flag:1表示需要发送任务提醒消息,0表示不需要消息提醒。建议写1;
finish_strategy : 0表示只要一个人完成任务就可以,1表示所有人都需要完成任务。根据场景设置,建议选0;
biz_type : 任务类型,请咨询千牛官方获取正确的任务类型;
priority : 1表示高优先级,0表示普通;
这里的举例为必填字段,一些选填字段没有列出,如有其它需求请联系千牛官方。 +func (r *TaobaoQianniuTaskCreateAPIRequest) SetMeta(_meta string) error { + r._meta = _meta + r.Set("meta", _meta) + return nil +} + +// Meta Getter +func (r TaobaoQianniuTaskCreateAPIRequest) GetMeta() string { + return r._meta +} +// Tasks Setter +// 任务列表,JSON格式的数组,即支持多个接收人,例如:
task = [{
receiver_uid : user_id,
receiver_nick : user_nick,
biz_type : "memo",
sub_biz_type : "memo",
biz_id : user_nick,
biz_nick : user_nick
}];
上述为必填字段,其它字段请咨询千牛官方。 +func (r *TaobaoQianniuTaskCreateAPIRequest) SetTasks(_tasks string) error { + r._tasks = _tasks + r.Set("tasks", _tasks) + return nil +} + +// Tasks Getter +func (r TaobaoQianniuTaskCreateAPIRequest) GetTasks() string { + return r._tasks +} diff --git a/model/qianniu/TaobaoQianniuTaskCreateAPIResponse.go b/model/qianniu/TaobaoQianniuTaskCreateAPIResponse.go new file mode 100644 index 0000000000..da8f2afd76 --- /dev/null +++ b/model/qianniu/TaobaoQianniuTaskCreateAPIResponse.go @@ -0,0 +1,27 @@ +package qianniu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建轻任务 API返回值 +taobao.qianniu.task.create + +发起一个轻任务,分配给多个执行者,并发送消息提醒,由任务发起者调用 +*/ +type TaobaoQianniuTaskCreateAPIResponse struct { + model.CommonResponse + TaobaoQianniuTaskCreateAPIResponseModel +} + +// 创建轻任务 成功返回结果 +type TaobaoQianniuTaskCreateAPIResponseModel struct { + XMLName xml.Name `xml:"qianniu_task_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创建的任务元数据 + Result *QTaskMetadata `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/qianniu/TaobaoQianniuTaskCreateResponse.go b/model/qianniu/TaobaoQianniuTaskCreateResponse.go deleted file mode 100644 index a0f4e9e68e..0000000000 --- a/model/qianniu/TaobaoQianniuTaskCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qianniu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建轻任务 API返回值 -taobao.qianniu.task.create - -发起一个轻任务,分配给多个执行者,并发送消息提醒,由任务发起者调用 -*/ -type TaobaoQianniuTaskCreateAPIResponse struct { - model.CommonResponse - TaobaoQianniuTaskCreateResponse -} - -// 创建轻任务 成功返回结果 -type TaobaoQianniuTaskCreateResponse struct { - XMLName xml.Name `xml:"qianniu_task_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创建的任务元数据 - Result *QTaskMetadata `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/qianniu/TaobaoQianniuTaskFinishAPIRequest.go b/model/qianniu/TaobaoQianniuTaskFinishAPIRequest.go new file mode 100644 index 0000000000..a21f8f0602 --- /dev/null +++ b/model/qianniu/TaobaoQianniuTaskFinishAPIRequest.go @@ -0,0 +1,66 @@ +package qianniu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +完成轻任务 API请求 +taobao.qianniu.task.finish + +由任务执行者调用 +*/ +type TaobaoQianniuTaskFinishAPIRequest struct { + model.Params + // 任务ID + _taskId int64 + // 任务备注 + _memo string +} + +// 初始化TaobaoQianniuTaskFinishAPIRequest对象 +func NewTaobaoQianniuTaskFinishRequest() *TaobaoQianniuTaskFinishAPIRequest{ + return &TaobaoQianniuTaskFinishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQianniuTaskFinishAPIRequest) GetApiMethodName() string { + return "taobao.qianniu.task.finish" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQianniuTaskFinishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TaskId Setter +// 任务ID +func (r *TaobaoQianniuTaskFinishAPIRequest) SetTaskId(_taskId int64) error { + r._taskId = _taskId + r.Set("task_id", _taskId) + return nil +} + +// TaskId Getter +func (r TaobaoQianniuTaskFinishAPIRequest) GetTaskId() int64 { + return r._taskId +} +// Memo Setter +// 任务备注 +func (r *TaobaoQianniuTaskFinishAPIRequest) SetMemo(_memo string) error { + r._memo = _memo + r.Set("memo", _memo) + return nil +} + +// Memo Getter +func (r TaobaoQianniuTaskFinishAPIRequest) GetMemo() string { + return r._memo +} diff --git a/model/qianniu/TaobaoQianniuTaskFinishAPIResponse.go b/model/qianniu/TaobaoQianniuTaskFinishAPIResponse.go new file mode 100644 index 0000000000..a33a4ca2d8 --- /dev/null +++ b/model/qianniu/TaobaoQianniuTaskFinishAPIResponse.go @@ -0,0 +1,27 @@ +package qianniu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +完成轻任务 API返回值 +taobao.qianniu.task.finish + +由任务执行者调用 +*/ +type TaobaoQianniuTaskFinishAPIResponse struct { + model.CommonResponse + TaobaoQianniuTaskFinishAPIResponseModel +} + +// 完成轻任务 成功返回结果 +type TaobaoQianniuTaskFinishAPIResponseModel struct { + XMLName xml.Name `xml:"qianniu_task_finish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/qianniu/TaobaoQianniuTaskFinishResponse.go b/model/qianniu/TaobaoQianniuTaskFinishResponse.go deleted file mode 100644 index fcd4c89004..0000000000 --- a/model/qianniu/TaobaoQianniuTaskFinishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qianniu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -完成轻任务 API返回值 -taobao.qianniu.task.finish - -由任务执行者调用 -*/ -type TaobaoQianniuTaskFinishAPIResponse struct { - model.CommonResponse - TaobaoQianniuTaskFinishResponse -} - -// 完成轻任务 成功返回结果 -type TaobaoQianniuTaskFinishResponse struct { - XMLName xml.Name `xml:"qianniu_task_finish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/qianniu/TaobaoQianniuTaskIncreaseAPIRequest.go b/model/qianniu/TaobaoQianniuTaskIncreaseAPIRequest.go new file mode 100644 index 0000000000..3809b40451 --- /dev/null +++ b/model/qianniu/TaobaoQianniuTaskIncreaseAPIRequest.go @@ -0,0 +1,66 @@ +package qianniu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +增加任务接收人接口 API请求 +taobao.qianniu.task.increase + +根据任务元id增加任务接收人 +*/ +type TaobaoQianniuTaskIncreaseAPIRequest struct { + model.Params + // 任务元id + _metadataId int64 + // 任务列表,JSON格式,例如: tasks =[{ "receiver_uid" : 123, "receiver_nick" : "nick"}, { "receiver_uid" : 456, "receiver_nick" : "nick2"} ] + _tasks string +} + +// 初始化TaobaoQianniuTaskIncreaseAPIRequest对象 +func NewTaobaoQianniuTaskIncreaseRequest() *TaobaoQianniuTaskIncreaseAPIRequest{ + return &TaobaoQianniuTaskIncreaseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQianniuTaskIncreaseAPIRequest) GetApiMethodName() string { + return "taobao.qianniu.task.increase" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQianniuTaskIncreaseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MetadataId Setter +// 任务元id +func (r *TaobaoQianniuTaskIncreaseAPIRequest) SetMetadataId(_metadataId int64) error { + r._metadataId = _metadataId + r.Set("metadata_id", _metadataId) + return nil +} + +// MetadataId Getter +func (r TaobaoQianniuTaskIncreaseAPIRequest) GetMetadataId() int64 { + return r._metadataId +} +// Tasks Setter +// 任务列表,JSON格式,例如: tasks =[{ "receiver_uid" : 123, "receiver_nick" : "nick"}, { "receiver_uid" : 456, "receiver_nick" : "nick2"} ] +func (r *TaobaoQianniuTaskIncreaseAPIRequest) SetTasks(_tasks string) error { + r._tasks = _tasks + r.Set("tasks", _tasks) + return nil +} + +// Tasks Getter +func (r TaobaoQianniuTaskIncreaseAPIRequest) GetTasks() string { + return r._tasks +} diff --git a/model/qianniu/TaobaoQianniuTaskIncreaseAPIResponse.go b/model/qianniu/TaobaoQianniuTaskIncreaseAPIResponse.go new file mode 100644 index 0000000000..2a316ceb2e --- /dev/null +++ b/model/qianniu/TaobaoQianniuTaskIncreaseAPIResponse.go @@ -0,0 +1,27 @@ +package qianniu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +增加任务接收人接口 API返回值 +taobao.qianniu.task.increase + +根据任务元id增加任务接收人 +*/ +type TaobaoQianniuTaskIncreaseAPIResponse struct { + model.CommonResponse + TaobaoQianniuTaskIncreaseAPIResponseModel +} + +// 增加任务接收人接口 成功返回结果 +type TaobaoQianniuTaskIncreaseAPIResponseModel struct { + XMLName xml.Name `xml:"qianniu_task_increase_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否添加成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/qianniu/TaobaoQianniuTaskIncreaseResponse.go b/model/qianniu/TaobaoQianniuTaskIncreaseResponse.go deleted file mode 100644 index 50895731bc..0000000000 --- a/model/qianniu/TaobaoQianniuTaskIncreaseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qianniu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -增加任务接收人接口 API返回值 -taobao.qianniu.task.increase - -根据任务元id增加任务接收人 -*/ -type TaobaoQianniuTaskIncreaseAPIResponse struct { - model.CommonResponse - TaobaoQianniuTaskIncreaseResponse -} - -// 增加任务接收人接口 成功返回结果 -type TaobaoQianniuTaskIncreaseResponse struct { - XMLName xml.Name `xml:"qianniu_task_increase_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否添加成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/qianniu/TaobaoQianniuTaskMessageSendAPIRequest.go b/model/qianniu/TaobaoQianniuTaskMessageSendAPIRequest.go new file mode 100644 index 0000000000..d732df7230 --- /dev/null +++ b/model/qianniu/TaobaoQianniuTaskMessageSendAPIRequest.go @@ -0,0 +1,66 @@ +package qianniu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发送任务提醒消息 API请求 +taobao.qianniu.task.message.send + +如果taskid不为空,则只发给task对应的单个接收人。如果taskid为空,则发给metadata_id对应的所有接收人。消息会以任务消息的形式发给客户端。 +*/ +type TaobaoQianniuTaskMessageSendAPIRequest struct { + model.Params + // 任务ID。如果taskid不为空,则只发给task对应的单个接收人。如果taskid为空,则发给metadata_id对应的所有接收人。 + _taskId int64 + // 任务元id,如果taskid不为空,则只发给task对应的单个接收人。如果taskid为空,则发给metadata_id对应的所有接收人。 + _metadataId int64 +} + +// 初始化TaobaoQianniuTaskMessageSendAPIRequest对象 +func NewTaobaoQianniuTaskMessageSendRequest() *TaobaoQianniuTaskMessageSendAPIRequest{ + return &TaobaoQianniuTaskMessageSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQianniuTaskMessageSendAPIRequest) GetApiMethodName() string { + return "taobao.qianniu.task.message.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQianniuTaskMessageSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TaskId Setter +// 任务ID。如果taskid不为空,则只发给task对应的单个接收人。如果taskid为空,则发给metadata_id对应的所有接收人。 +func (r *TaobaoQianniuTaskMessageSendAPIRequest) SetTaskId(_taskId int64) error { + r._taskId = _taskId + r.Set("task_id", _taskId) + return nil +} + +// TaskId Getter +func (r TaobaoQianniuTaskMessageSendAPIRequest) GetTaskId() int64 { + return r._taskId +} +// MetadataId Setter +// 任务元id,如果taskid不为空,则只发给task对应的单个接收人。如果taskid为空,则发给metadata_id对应的所有接收人。 +func (r *TaobaoQianniuTaskMessageSendAPIRequest) SetMetadataId(_metadataId int64) error { + r._metadataId = _metadataId + r.Set("metadata_id", _metadataId) + return nil +} + +// MetadataId Getter +func (r TaobaoQianniuTaskMessageSendAPIRequest) GetMetadataId() int64 { + return r._metadataId +} diff --git a/model/qianniu/TaobaoQianniuTaskMessageSendAPIResponse.go b/model/qianniu/TaobaoQianniuTaskMessageSendAPIResponse.go new file mode 100644 index 0000000000..3844a85493 --- /dev/null +++ b/model/qianniu/TaobaoQianniuTaskMessageSendAPIResponse.go @@ -0,0 +1,27 @@ +package qianniu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发送任务提醒消息 API返回值 +taobao.qianniu.task.message.send + +如果taskid不为空,则只发给task对应的单个接收人。如果taskid为空,则发给metadata_id对应的所有接收人。消息会以任务消息的形式发给客户端。 +*/ +type TaobaoQianniuTaskMessageSendAPIResponse struct { + model.CommonResponse + TaobaoQianniuTaskMessageSendAPIResponseModel +} + +// 发送任务提醒消息 成功返回结果 +type TaobaoQianniuTaskMessageSendAPIResponseModel struct { + XMLName xml.Name `xml:"qianniu_task_message_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/qianniu/TaobaoQianniuTaskMessageSendResponse.go b/model/qianniu/TaobaoQianniuTaskMessageSendResponse.go deleted file mode 100644 index 7d620d97e7..0000000000 --- a/model/qianniu/TaobaoQianniuTaskMessageSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qianniu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发送任务提醒消息 API返回值 -taobao.qianniu.task.message.send - -如果taskid不为空,则只发给task对应的单个接收人。如果taskid为空,则发给metadata_id对应的所有接收人。消息会以任务消息的形式发给客户端。 -*/ -type TaobaoQianniuTaskMessageSendAPIResponse struct { - model.CommonResponse - TaobaoQianniuTaskMessageSendResponse -} - -// 发送任务提醒消息 成功返回结果 -type TaobaoQianniuTaskMessageSendResponse struct { - XMLName xml.Name `xml:"qianniu_task_message_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/qianniu/TaobaoQianniuTaskRemoveAPIRequest.go b/model/qianniu/TaobaoQianniuTaskRemoveAPIRequest.go new file mode 100644 index 0000000000..03adc068c1 --- /dev/null +++ b/model/qianniu/TaobaoQianniuTaskRemoveAPIRequest.go @@ -0,0 +1,52 @@ +package qianniu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +轻任务删除接口 API请求 +taobao.qianniu.task.remove + +轻任务删除接口。 +*/ +type TaobaoQianniuTaskRemoveAPIRequest struct { + model.Params + // 对于发起人删除一个任务,请使用这个字段,同时清除所有处理人。 + _metadataId int64 +} + +// 初始化TaobaoQianniuTaskRemoveAPIRequest对象 +func NewTaobaoQianniuTaskRemoveRequest() *TaobaoQianniuTaskRemoveAPIRequest{ + return &TaobaoQianniuTaskRemoveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQianniuTaskRemoveAPIRequest) GetApiMethodName() string { + return "taobao.qianniu.task.remove" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQianniuTaskRemoveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MetadataId Setter +// 对于发起人删除一个任务,请使用这个字段,同时清除所有处理人。 +func (r *TaobaoQianniuTaskRemoveAPIRequest) SetMetadataId(_metadataId int64) error { + r._metadataId = _metadataId + r.Set("metadata_id", _metadataId) + return nil +} + +// MetadataId Getter +func (r TaobaoQianniuTaskRemoveAPIRequest) GetMetadataId() int64 { + return r._metadataId +} diff --git a/model/qianniu/TaobaoQianniuTaskRemoveAPIResponse.go b/model/qianniu/TaobaoQianniuTaskRemoveAPIResponse.go new file mode 100644 index 0000000000..d8398e104c --- /dev/null +++ b/model/qianniu/TaobaoQianniuTaskRemoveAPIResponse.go @@ -0,0 +1,27 @@ +package qianniu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +轻任务删除接口 API返回值 +taobao.qianniu.task.remove + +轻任务删除接口。 +*/ +type TaobaoQianniuTaskRemoveAPIResponse struct { + model.CommonResponse + TaobaoQianniuTaskRemoveAPIResponseModel +} + +// 轻任务删除接口 成功返回结果 +type TaobaoQianniuTaskRemoveAPIResponseModel struct { + XMLName xml.Name `xml:"qianniu_task_remove_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/qianniu/TaobaoQianniuTaskRemoveResponse.go b/model/qianniu/TaobaoQianniuTaskRemoveResponse.go deleted file mode 100644 index 87f6de334f..0000000000 --- a/model/qianniu/TaobaoQianniuTaskRemoveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qianniu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -轻任务删除接口 API返回值 -taobao.qianniu.task.remove - -轻任务删除接口。 -*/ -type TaobaoQianniuTaskRemoveAPIResponse struct { - model.CommonResponse - TaobaoQianniuTaskRemoveResponse -} - -// 轻任务删除接口 成功返回结果 -type TaobaoQianniuTaskRemoveResponse struct { - XMLName xml.Name `xml:"qianniu_task_remove_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/qianniu/TaobaoQianniuTaskUpdateAPIRequest.go b/model/qianniu/TaobaoQianniuTaskUpdateAPIRequest.go new file mode 100644 index 0000000000..83330e7a4a --- /dev/null +++ b/model/qianniu/TaobaoQianniuTaskUpdateAPIRequest.go @@ -0,0 +1,192 @@ +package qianniu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新轻任务 API请求 +taobao.qianniu.task.update + +由任务执行者调用,sub_status,tag和memo至少提供一个 +*/ +type TaobaoQianniuTaskUpdateAPIRequest struct { + model.Params + // 任务ID + _taskId int64 + // 子任务状态,由业务方自定义 + _subStatus string + // 任务标签 + _tag string + // 任务备注。当memo_mode为1时,memo将采用追加方式。 + _memo string + // 状态值,多个以逗号分隔 + _status string + // 提醒时间,时间的毫秒数 + _remindTime int64 + // 应用自定义参数 + _bizParam string + // 0为不提醒,1为全部提醒,2为PC提醒,3为移动提醒,4为已提醒,5为已忽略。 + _remindFlag int64 + // 表示memo字段的更新策略。如需采用追加方式的,请将此字段设置为1。 + _memoMode int64 + // 默认填0,数字越大优化级越高。当前常用0和1. + _priority int64 + // 0表示没有删除,1表示删除 + _isDeleted int64 +} + +// 初始化TaobaoQianniuTaskUpdateAPIRequest对象 +func NewTaobaoQianniuTaskUpdateRequest() *TaobaoQianniuTaskUpdateAPIRequest{ + return &TaobaoQianniuTaskUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQianniuTaskUpdateAPIRequest) GetApiMethodName() string { + return "taobao.qianniu.task.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQianniuTaskUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TaskId Setter +// 任务ID +func (r *TaobaoQianniuTaskUpdateAPIRequest) SetTaskId(_taskId int64) error { + r._taskId = _taskId + r.Set("task_id", _taskId) + return nil +} + +// TaskId Getter +func (r TaobaoQianniuTaskUpdateAPIRequest) GetTaskId() int64 { + return r._taskId +} +// SubStatus Setter +// 子任务状态,由业务方自定义 +func (r *TaobaoQianniuTaskUpdateAPIRequest) SetSubStatus(_subStatus string) error { + r._subStatus = _subStatus + r.Set("sub_status", _subStatus) + return nil +} + +// SubStatus Getter +func (r TaobaoQianniuTaskUpdateAPIRequest) GetSubStatus() string { + return r._subStatus +} +// Tag Setter +// 任务标签 +func (r *TaobaoQianniuTaskUpdateAPIRequest) SetTag(_tag string) error { + r._tag = _tag + r.Set("tag", _tag) + return nil +} + +// Tag Getter +func (r TaobaoQianniuTaskUpdateAPIRequest) GetTag() string { + return r._tag +} +// Memo Setter +// 任务备注。当memo_mode为1时,memo将采用追加方式。 +func (r *TaobaoQianniuTaskUpdateAPIRequest) SetMemo(_memo string) error { + r._memo = _memo + r.Set("memo", _memo) + return nil +} + +// Memo Getter +func (r TaobaoQianniuTaskUpdateAPIRequest) GetMemo() string { + return r._memo +} +// Status Setter +// 状态值,多个以逗号分隔 +func (r *TaobaoQianniuTaskUpdateAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoQianniuTaskUpdateAPIRequest) GetStatus() string { + return r._status +} +// RemindTime Setter +// 提醒时间,时间的毫秒数 +func (r *TaobaoQianniuTaskUpdateAPIRequest) SetRemindTime(_remindTime int64) error { + r._remindTime = _remindTime + r.Set("remind_time", _remindTime) + return nil +} + +// RemindTime Getter +func (r TaobaoQianniuTaskUpdateAPIRequest) GetRemindTime() int64 { + return r._remindTime +} +// BizParam Setter +// 应用自定义参数 +func (r *TaobaoQianniuTaskUpdateAPIRequest) SetBizParam(_bizParam string) error { + r._bizParam = _bizParam + r.Set("biz_param", _bizParam) + return nil +} + +// BizParam Getter +func (r TaobaoQianniuTaskUpdateAPIRequest) GetBizParam() string { + return r._bizParam +} +// RemindFlag Setter +// 0为不提醒,1为全部提醒,2为PC提醒,3为移动提醒,4为已提醒,5为已忽略。 +func (r *TaobaoQianniuTaskUpdateAPIRequest) SetRemindFlag(_remindFlag int64) error { + r._remindFlag = _remindFlag + r.Set("remind_flag", _remindFlag) + return nil +} + +// RemindFlag Getter +func (r TaobaoQianniuTaskUpdateAPIRequest) GetRemindFlag() int64 { + return r._remindFlag +} +// MemoMode Setter +// 表示memo字段的更新策略。如需采用追加方式的,请将此字段设置为1。 +func (r *TaobaoQianniuTaskUpdateAPIRequest) SetMemoMode(_memoMode int64) error { + r._memoMode = _memoMode + r.Set("memo_mode", _memoMode) + return nil +} + +// MemoMode Getter +func (r TaobaoQianniuTaskUpdateAPIRequest) GetMemoMode() int64 { + return r._memoMode +} +// Priority Setter +// 默认填0,数字越大优化级越高。当前常用0和1. +func (r *TaobaoQianniuTaskUpdateAPIRequest) SetPriority(_priority int64) error { + r._priority = _priority + r.Set("priority", _priority) + return nil +} + +// Priority Getter +func (r TaobaoQianniuTaskUpdateAPIRequest) GetPriority() int64 { + return r._priority +} +// IsDeleted Setter +// 0表示没有删除,1表示删除 +func (r *TaobaoQianniuTaskUpdateAPIRequest) SetIsDeleted(_isDeleted int64) error { + r._isDeleted = _isDeleted + r.Set("is_deleted", _isDeleted) + return nil +} + +// IsDeleted Getter +func (r TaobaoQianniuTaskUpdateAPIRequest) GetIsDeleted() int64 { + return r._isDeleted +} diff --git a/model/qianniu/TaobaoQianniuTaskUpdateAPIResponse.go b/model/qianniu/TaobaoQianniuTaskUpdateAPIResponse.go new file mode 100644 index 0000000000..4c837caca8 --- /dev/null +++ b/model/qianniu/TaobaoQianniuTaskUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package qianniu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新轻任务 API返回值 +taobao.qianniu.task.update + +由任务执行者调用,sub_status,tag和memo至少提供一个 +*/ +type TaobaoQianniuTaskUpdateAPIResponse struct { + model.CommonResponse + TaobaoQianniuTaskUpdateAPIResponseModel +} + +// 更新轻任务 成功返回结果 +type TaobaoQianniuTaskUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"qianniu_task_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/qianniu/TaobaoQianniuTaskUpdateResponse.go b/model/qianniu/TaobaoQianniuTaskUpdateResponse.go deleted file mode 100644 index c9f58ba324..0000000000 --- a/model/qianniu/TaobaoQianniuTaskUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qianniu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新轻任务 API返回值 -taobao.qianniu.task.update - -由任务执行者调用,sub_status,tag和memo至少提供一个 -*/ -type TaobaoQianniuTaskUpdateAPIResponse struct { - model.CommonResponse - TaobaoQianniuTaskUpdateResponse -} - -// 更新轻任务 成功返回结果 -type TaobaoQianniuTaskUpdateResponse struct { - XMLName xml.Name `xml:"qianniu_task_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/qianniu/TaobaoQianniuTaskmetaUpdateAPIRequest.go b/model/qianniu/TaobaoQianniuTaskmetaUpdateAPIRequest.go new file mode 100644 index 0000000000..b797f6e500 --- /dev/null +++ b/model/qianniu/TaobaoQianniuTaskmetaUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package qianniu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新任务元数据 API请求 +taobao.qianniu.taskmeta.update + +由任务发起者调用 +*/ +type TaobaoQianniuTaskmetaUpdateAPIRequest struct { + model.Params + // 要更新的任务元数据,JSON格式,例如:
meta= {
"id" : 1,
"title" : "xxx",
"content" : "yyyy",
"biz_sys_Id" : 12232,
"biz_sys_task_type" : 1212,
"start_time" : 1380173565480,
"end_time" : 1380173565480,
"sender_uid" : 213123213,
"sender_nick" : "tbtest1063",
"reminder_flag" : 1,
"finish_strategy" : 1
} + _meta string +} + +// 初始化TaobaoQianniuTaskmetaUpdateAPIRequest对象 +func NewTaobaoQianniuTaskmetaUpdateRequest() *TaobaoQianniuTaskmetaUpdateAPIRequest{ + return &TaobaoQianniuTaskmetaUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQianniuTaskmetaUpdateAPIRequest) GetApiMethodName() string { + return "taobao.qianniu.taskmeta.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQianniuTaskmetaUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Meta Setter +// 要更新的任务元数据,JSON格式,例如:
meta= {
"id" : 1,
"title" : "xxx",
"content" : "yyyy",
"biz_sys_Id" : 12232,
"biz_sys_task_type" : 1212,
"start_time" : 1380173565480,
"end_time" : 1380173565480,
"sender_uid" : 213123213,
"sender_nick" : "tbtest1063",
"reminder_flag" : 1,
"finish_strategy" : 1
} +func (r *TaobaoQianniuTaskmetaUpdateAPIRequest) SetMeta(_meta string) error { + r._meta = _meta + r.Set("meta", _meta) + return nil +} + +// Meta Getter +func (r TaobaoQianniuTaskmetaUpdateAPIRequest) GetMeta() string { + return r._meta +} diff --git a/model/qianniu/TaobaoQianniuTaskmetaUpdateAPIResponse.go b/model/qianniu/TaobaoQianniuTaskmetaUpdateAPIResponse.go new file mode 100644 index 0000000000..c77ce39f8a --- /dev/null +++ b/model/qianniu/TaobaoQianniuTaskmetaUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package qianniu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新任务元数据 API返回值 +taobao.qianniu.taskmeta.update + +由任务发起者调用 +*/ +type TaobaoQianniuTaskmetaUpdateAPIResponse struct { + model.CommonResponse + TaobaoQianniuTaskmetaUpdateAPIResponseModel +} + +// 更新任务元数据 成功返回结果 +type TaobaoQianniuTaskmetaUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"qianniu_taskmeta_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/qianniu/TaobaoQianniuTaskmetaUpdateResponse.go b/model/qianniu/TaobaoQianniuTaskmetaUpdateResponse.go deleted file mode 100644 index dc0780923f..0000000000 --- a/model/qianniu/TaobaoQianniuTaskmetaUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qianniu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新任务元数据 API返回值 -taobao.qianniu.taskmeta.update - -由任务发起者调用 -*/ -type TaobaoQianniuTaskmetaUpdateAPIResponse struct { - model.CommonResponse - TaobaoQianniuTaskmetaUpdateResponse -} - -// 更新任务元数据 成功返回结果 -type TaobaoQianniuTaskmetaUpdateResponse struct { - XMLName xml.Name `xml:"qianniu_taskmeta_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/qianniu/TaobaoQianniuTaskmetasGetAPIRequest.go b/model/qianniu/TaobaoQianniuTaskmetasGetAPIRequest.go new file mode 100644 index 0000000000..1b40d5f0b4 --- /dev/null +++ b/model/qianniu/TaobaoQianniuTaskmetasGetAPIRequest.go @@ -0,0 +1,206 @@ +package qianniu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +任务元查询接口 API请求 +taobao.qianniu.taskmetas.get + +任务元查询接口 +*/ +type TaobaoQianniuTaskmetasGetAPIRequest struct { + model.Params + // 发起任务人的uid + _senderUid int64 + // 逗号分隔的字段列表.如id,title,content,sender_uid,sender_nick,finish_strategy,biz_sys_Id,biz_sys_task_type,start_time,end_time,reminder_flag,priority + _fields string + // 分页数,最大100 + _pageSize int64 + // 当前页码 + _currentPage int64 + // 排序字段。gmt_create,priority等 + _orderBy string + // 升降序。asc为升,desc为降 + _orderType string + // 0为未完成。2为完成。4为取消。不填为所有 + _status int64 + // 任务类型 + _bizType string + // 按关键字搜索 + _keyWord string + // 客户端的版本信息 + _clientInfo string + // 接收人uid + _receiverUid int64 + // 任务元ID,多个以逗号分离 + _metaIds string +} + +// 初始化TaobaoQianniuTaskmetasGetAPIRequest对象 +func NewTaobaoQianniuTaskmetasGetRequest() *TaobaoQianniuTaskmetasGetAPIRequest{ + return &TaobaoQianniuTaskmetasGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQianniuTaskmetasGetAPIRequest) GetApiMethodName() string { + return "taobao.qianniu.taskmetas.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQianniuTaskmetasGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SenderUid Setter +// 发起任务人的uid +func (r *TaobaoQianniuTaskmetasGetAPIRequest) SetSenderUid(_senderUid int64) error { + r._senderUid = _senderUid + r.Set("sender_uid", _senderUid) + return nil +} + +// SenderUid Getter +func (r TaobaoQianniuTaskmetasGetAPIRequest) GetSenderUid() int64 { + return r._senderUid +} +// Fields Setter +// 逗号分隔的字段列表.如id,title,content,sender_uid,sender_nick,finish_strategy,biz_sys_Id,biz_sys_task_type,start_time,end_time,reminder_flag,priority +func (r *TaobaoQianniuTaskmetasGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoQianniuTaskmetasGetAPIRequest) GetFields() string { + return r._fields +} +// PageSize Setter +// 分页数,最大100 +func (r *TaobaoQianniuTaskmetasGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoQianniuTaskmetasGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// CurrentPage Setter +// 当前页码 +func (r *TaobaoQianniuTaskmetasGetAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TaobaoQianniuTaskmetasGetAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// OrderBy Setter +// 排序字段。gmt_create,priority等 +func (r *TaobaoQianniuTaskmetasGetAPIRequest) SetOrderBy(_orderBy string) error { + r._orderBy = _orderBy + r.Set("order_by", _orderBy) + return nil +} + +// OrderBy Getter +func (r TaobaoQianniuTaskmetasGetAPIRequest) GetOrderBy() string { + return r._orderBy +} +// OrderType Setter +// 升降序。asc为升,desc为降 +func (r *TaobaoQianniuTaskmetasGetAPIRequest) SetOrderType(_orderType string) error { + r._orderType = _orderType + r.Set("order_type", _orderType) + return nil +} + +// OrderType Getter +func (r TaobaoQianniuTaskmetasGetAPIRequest) GetOrderType() string { + return r._orderType +} +// Status Setter +// 0为未完成。2为完成。4为取消。不填为所有 +func (r *TaobaoQianniuTaskmetasGetAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoQianniuTaskmetasGetAPIRequest) GetStatus() int64 { + return r._status +} +// BizType Setter +// 任务类型 +func (r *TaobaoQianniuTaskmetasGetAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TaobaoQianniuTaskmetasGetAPIRequest) GetBizType() string { + return r._bizType +} +// KeyWord Setter +// 按关键字搜索 +func (r *TaobaoQianniuTaskmetasGetAPIRequest) SetKeyWord(_keyWord string) error { + r._keyWord = _keyWord + r.Set("key_word", _keyWord) + return nil +} + +// KeyWord Getter +func (r TaobaoQianniuTaskmetasGetAPIRequest) GetKeyWord() string { + return r._keyWord +} +// ClientInfo Setter +// 客户端的版本信息 +func (r *TaobaoQianniuTaskmetasGetAPIRequest) SetClientInfo(_clientInfo string) error { + r._clientInfo = _clientInfo + r.Set("client_info", _clientInfo) + return nil +} + +// ClientInfo Getter +func (r TaobaoQianniuTaskmetasGetAPIRequest) GetClientInfo() string { + return r._clientInfo +} +// ReceiverUid Setter +// 接收人uid +func (r *TaobaoQianniuTaskmetasGetAPIRequest) SetReceiverUid(_receiverUid int64) error { + r._receiverUid = _receiverUid + r.Set("receiver_uid", _receiverUid) + return nil +} + +// ReceiverUid Getter +func (r TaobaoQianniuTaskmetasGetAPIRequest) GetReceiverUid() int64 { + return r._receiverUid +} +// MetaIds Setter +// 任务元ID,多个以逗号分离 +func (r *TaobaoQianniuTaskmetasGetAPIRequest) SetMetaIds(_metaIds string) error { + r._metaIds = _metaIds + r.Set("meta_ids", _metaIds) + return nil +} + +// MetaIds Getter +func (r TaobaoQianniuTaskmetasGetAPIRequest) GetMetaIds() string { + return r._metaIds +} diff --git a/model/qianniu/TaobaoQianniuTaskmetasGetAPIResponse.go b/model/qianniu/TaobaoQianniuTaskmetasGetAPIResponse.go new file mode 100644 index 0000000000..5ffbe97804 --- /dev/null +++ b/model/qianniu/TaobaoQianniuTaskmetasGetAPIResponse.go @@ -0,0 +1,27 @@ +package qianniu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +任务元查询接口 API返回值 +taobao.qianniu.taskmetas.get + +任务元查询接口 +*/ +type TaobaoQianniuTaskmetasGetAPIResponse struct { + model.CommonResponse + TaobaoQianniuTaskmetasGetAPIResponseModel +} + +// 任务元查询接口 成功返回结果 +type TaobaoQianniuTaskmetasGetAPIResponseModel struct { + XMLName xml.Name `xml:"qianniu_taskmetas_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // taskmetas + Taskmetas []QTaskMetadata `json:"taskmetas,omitempty" xml:"taskmetas>q_task_metadata,omitempty"` +} diff --git a/model/qianniu/TaobaoQianniuTaskmetasGetResponse.go b/model/qianniu/TaobaoQianniuTaskmetasGetResponse.go deleted file mode 100644 index f255a2d131..0000000000 --- a/model/qianniu/TaobaoQianniuTaskmetasGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qianniu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -任务元查询接口 API返回值 -taobao.qianniu.taskmetas.get - -任务元查询接口 -*/ -type TaobaoQianniuTaskmetasGetAPIResponse struct { - model.CommonResponse - TaobaoQianniuTaskmetasGetResponse -} - -// 任务元查询接口 成功返回结果 -type TaobaoQianniuTaskmetasGetResponse struct { - XMLName xml.Name `xml:"qianniu_taskmetas_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // taskmetas - Taskmetas []QTaskMetadata `json:"taskmetas,omitempty" xml:"taskmetas>q_task_metadata,omitempty"` -} diff --git a/model/qianniu/TaobaoQianniuTasksCountAPIRequest.go b/model/qianniu/TaobaoQianniuTasksCountAPIRequest.go new file mode 100644 index 0000000000..f268eac57e --- /dev/null +++ b/model/qianniu/TaobaoQianniuTasksCountAPIRequest.go @@ -0,0 +1,262 @@ +package qianniu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +任务查询条数接口 API请求 +taobao.qianniu.tasks.count + +任务查询条数接口 +*/ +type TaobaoQianniuTasksCountAPIRequest struct { + model.Params + // 业务类型 + _bizType string + // 子任务类型 + _subBizType string + // 业务ID列表,逗号分隔 + _bizIds string + // 任务的ID列表,用逗号分隔 + _taskIds string + // 任务发起者用户数字ID + _senderUid int64 + // 任务执行者用户数字ID + _receiverUid int64 + // 逗号分隔的任务状态:0-未执行,1-执行中,2-执行完成,3-超时,4-取消,5-忽略 + _status string + // 逗号分隔的子任务状态,由业务方自定义 + _subStatus string + // 0-不需要提醒,未设提醒时间 1-设置过提醒时间,需要提醒 + _remindFlag int64 + // 任务元id,多个以逗号分隔 + _metadataIds string + // 与业务相关的买家nick + _bizNick string + // 按时间段搜索时的开始日期,格式如2014-01-01,不填则不限 + _startDate string + // 按时间段搜索的结束日期。不填则不限。格式为2014-01-01 + _endDate string + // 优先级 + _priority int64 + // 需要排除的任务类型 + _excludeBizType string + // 关键词搜索。只对任务内容进行模糊匹配,以及bizid和biznick进行精准匹配 + _keyWord string +} + +// 初始化TaobaoQianniuTasksCountAPIRequest对象 +func NewTaobaoQianniuTasksCountRequest() *TaobaoQianniuTasksCountAPIRequest{ + return &TaobaoQianniuTasksCountAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQianniuTasksCountAPIRequest) GetApiMethodName() string { + return "taobao.qianniu.tasks.count" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQianniuTasksCountAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizType Setter +// 业务类型 +func (r *TaobaoQianniuTasksCountAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TaobaoQianniuTasksCountAPIRequest) GetBizType() string { + return r._bizType +} +// SubBizType Setter +// 子任务类型 +func (r *TaobaoQianniuTasksCountAPIRequest) SetSubBizType(_subBizType string) error { + r._subBizType = _subBizType + r.Set("sub_biz_type", _subBizType) + return nil +} + +// SubBizType Getter +func (r TaobaoQianniuTasksCountAPIRequest) GetSubBizType() string { + return r._subBizType +} +// BizIds Setter +// 业务ID列表,逗号分隔 +func (r *TaobaoQianniuTasksCountAPIRequest) SetBizIds(_bizIds string) error { + r._bizIds = _bizIds + r.Set("biz_ids", _bizIds) + return nil +} + +// BizIds Getter +func (r TaobaoQianniuTasksCountAPIRequest) GetBizIds() string { + return r._bizIds +} +// TaskIds Setter +// 任务的ID列表,用逗号分隔 +func (r *TaobaoQianniuTasksCountAPIRequest) SetTaskIds(_taskIds string) error { + r._taskIds = _taskIds + r.Set("task_ids", _taskIds) + return nil +} + +// TaskIds Getter +func (r TaobaoQianniuTasksCountAPIRequest) GetTaskIds() string { + return r._taskIds +} +// SenderUid Setter +// 任务发起者用户数字ID +func (r *TaobaoQianniuTasksCountAPIRequest) SetSenderUid(_senderUid int64) error { + r._senderUid = _senderUid + r.Set("sender_uid", _senderUid) + return nil +} + +// SenderUid Getter +func (r TaobaoQianniuTasksCountAPIRequest) GetSenderUid() int64 { + return r._senderUid +} +// ReceiverUid Setter +// 任务执行者用户数字ID +func (r *TaobaoQianniuTasksCountAPIRequest) SetReceiverUid(_receiverUid int64) error { + r._receiverUid = _receiverUid + r.Set("receiver_uid", _receiverUid) + return nil +} + +// ReceiverUid Getter +func (r TaobaoQianniuTasksCountAPIRequest) GetReceiverUid() int64 { + return r._receiverUid +} +// Status Setter +// 逗号分隔的任务状态:0-未执行,1-执行中,2-执行完成,3-超时,4-取消,5-忽略 +func (r *TaobaoQianniuTasksCountAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoQianniuTasksCountAPIRequest) GetStatus() string { + return r._status +} +// SubStatus Setter +// 逗号分隔的子任务状态,由业务方自定义 +func (r *TaobaoQianniuTasksCountAPIRequest) SetSubStatus(_subStatus string) error { + r._subStatus = _subStatus + r.Set("sub_status", _subStatus) + return nil +} + +// SubStatus Getter +func (r TaobaoQianniuTasksCountAPIRequest) GetSubStatus() string { + return r._subStatus +} +// RemindFlag Setter +// 0-不需要提醒,未设提醒时间 1-设置过提醒时间,需要提醒 +func (r *TaobaoQianniuTasksCountAPIRequest) SetRemindFlag(_remindFlag int64) error { + r._remindFlag = _remindFlag + r.Set("remind_flag", _remindFlag) + return nil +} + +// RemindFlag Getter +func (r TaobaoQianniuTasksCountAPIRequest) GetRemindFlag() int64 { + return r._remindFlag +} +// MetadataIds Setter +// 任务元id,多个以逗号分隔 +func (r *TaobaoQianniuTasksCountAPIRequest) SetMetadataIds(_metadataIds string) error { + r._metadataIds = _metadataIds + r.Set("metadata_ids", _metadataIds) + return nil +} + +// MetadataIds Getter +func (r TaobaoQianniuTasksCountAPIRequest) GetMetadataIds() string { + return r._metadataIds +} +// BizNick Setter +// 与业务相关的买家nick +func (r *TaobaoQianniuTasksCountAPIRequest) SetBizNick(_bizNick string) error { + r._bizNick = _bizNick + r.Set("biz_nick", _bizNick) + return nil +} + +// BizNick Getter +func (r TaobaoQianniuTasksCountAPIRequest) GetBizNick() string { + return r._bizNick +} +// StartDate Setter +// 按时间段搜索时的开始日期,格式如2014-01-01,不填则不限 +func (r *TaobaoQianniuTasksCountAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoQianniuTasksCountAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 按时间段搜索的结束日期。不填则不限。格式为2014-01-01 +func (r *TaobaoQianniuTasksCountAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoQianniuTasksCountAPIRequest) GetEndDate() string { + return r._endDate +} +// Priority Setter +// 优先级 +func (r *TaobaoQianniuTasksCountAPIRequest) SetPriority(_priority int64) error { + r._priority = _priority + r.Set("priority", _priority) + return nil +} + +// Priority Getter +func (r TaobaoQianniuTasksCountAPIRequest) GetPriority() int64 { + return r._priority +} +// ExcludeBizType Setter +// 需要排除的任务类型 +func (r *TaobaoQianniuTasksCountAPIRequest) SetExcludeBizType(_excludeBizType string) error { + r._excludeBizType = _excludeBizType + r.Set("exclude_biz_type", _excludeBizType) + return nil +} + +// ExcludeBizType Getter +func (r TaobaoQianniuTasksCountAPIRequest) GetExcludeBizType() string { + return r._excludeBizType +} +// KeyWord Setter +// 关键词搜索。只对任务内容进行模糊匹配,以及bizid和biznick进行精准匹配 +func (r *TaobaoQianniuTasksCountAPIRequest) SetKeyWord(_keyWord string) error { + r._keyWord = _keyWord + r.Set("key_word", _keyWord) + return nil +} + +// KeyWord Getter +func (r TaobaoQianniuTasksCountAPIRequest) GetKeyWord() string { + return r._keyWord +} diff --git a/model/qianniu/TaobaoQianniuTasksCountAPIResponse.go b/model/qianniu/TaobaoQianniuTasksCountAPIResponse.go new file mode 100644 index 0000000000..bb9e79e958 --- /dev/null +++ b/model/qianniu/TaobaoQianniuTasksCountAPIResponse.go @@ -0,0 +1,27 @@ +package qianniu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +任务查询条数接口 API返回值 +taobao.qianniu.tasks.count + +任务查询条数接口 +*/ +type TaobaoQianniuTasksCountAPIResponse struct { + model.CommonResponse + TaobaoQianniuTasksCountAPIResponseModel +} + +// 任务查询条数接口 成功返回结果 +type TaobaoQianniuTasksCountAPIResponseModel struct { + XMLName xml.Name `xml:"qianniu_tasks_count_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 符合查询条件的总条数 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/qianniu/TaobaoQianniuTasksCountResponse.go b/model/qianniu/TaobaoQianniuTasksCountResponse.go deleted file mode 100644 index c9d4520555..0000000000 --- a/model/qianniu/TaobaoQianniuTasksCountResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qianniu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -任务查询条数接口 API返回值 -taobao.qianniu.tasks.count - -任务查询条数接口 -*/ -type TaobaoQianniuTasksCountAPIResponse struct { - model.CommonResponse - TaobaoQianniuTasksCountResponse -} - -// 任务查询条数接口 成功返回结果 -type TaobaoQianniuTasksCountResponse struct { - XMLName xml.Name `xml:"qianniu_tasks_count_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 符合查询条件的总条数 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/qianniu/TaobaoQianniuTasksGetAPIRequest.go b/model/qianniu/TaobaoQianniuTasksGetAPIRequest.go new file mode 100644 index 0000000000..f84637f495 --- /dev/null +++ b/model/qianniu/TaobaoQianniuTasksGetAPIRequest.go @@ -0,0 +1,402 @@ +package qianniu + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定的任务 API请求 +taobao.qianniu.tasks.get + +获取指定的任务,可用的参数组合:
task_ids + need_meta + fields:精确查找
biz_type + sub_biz_type + biz_ids + need_meta + fields:按照业务ID查找
biz_type + sub_biz_type + sender_uid + need_meta + fields:按照发起者查找
biz_type + sub_biz_type + receiver_uid + need_meta + fields:按照执行者查找
biz_type+modify_start_time+modify_end_time+fields:能支持指定修改时间的查询,用于增量查询等 +*/ +type TaobaoQianniuTasksGetAPIRequest struct { + model.Params + // 排序字段,可以为id,gmt_create,gmt_finished,metadata_id等 + _orderBy string + // asc为升,desc为降 + _orderType string + // 0-不需要提醒,未设提醒时间 1-设置过提醒时间,需要提醒 + _remindFlag int64 + // 业务相关的对象,当前主要表示买家nick + _bizNick string + // 根据任务创建时间搜索的开始日期(含),不填则不限。例如只查询2014-01-01当天的任务,则将start_date和end_date都设置成2014-01-01 + _startDate string + // 根据任务创建时间搜索的结束日期(含),不填则不限。例如只查询2014-01-01当天的任务,则将start_date和end_date都设置成2014-01-01 + _endDate string + // 根据任务修改时间搜索的开始时间(含),不填则不限。例如查询“2014-01-01 00:00:10”之后有修改的任务,则将modify_start_time_str设置成“2014-01-01 00:00:10” + _modifyStartTimeStr string + // 根据任务修改时间搜索的结束时间(含),不填则不限。例如查询“2014-01-01 00:00:10”之前有修改的任务,则将modify_end_time_str设置成“2014-01-01 00:00:10” + _modifyEndTimeStr string + // 优先级。即创建时的metadata中的优先级。0为低,1为中,2为高。 + _priority int64 + // 需要排除的任务类型 + _excludeBizType string + // 关键词搜索。只对任务内容进行模糊匹配,以及bizid和biznick进行精准匹配 + _keyWord string + // 当前页数,从1开始 + _currentPage int64 + // 每页条数 + _pageSize int64 + // 业务类型 + _bizType string + // 子任务类型 + _subBizType string + // 任务的ID列表,用逗号分隔 + _taskIds string + // 业务ID列表,逗号分隔 + _bizIds string + // 任务执行者用户数字ID + _receiverUid int64 + // 任务发起者用户数字ID + _senderUid int64 + // 逗号分隔的任务状态:0-未执行,1-执行中,2-执行完成,3-超时,4-取消,5-忽略 + _status string + // 逗号分隔的子任务状态,由业务方自定义 + _subStatus string + // 任务元id,多个以逗号分隔 + _metadataIds string + // 是否需要meta信息,默认值为false + _needMeta bool + // 逗号分隔的字段列表,各个字段含义: id:任务ID receiver_uid:执行者用户数字ID receiver_nick:执行者用户昵称 status:任务状态:0-未执行,1-执行中,2-执行完成,3-超时,4-取消,5-忽略 sub_status:子任务状态,由业务方自定义 finish_strategy:任务完成策略:1-一个人完成,2-所有人完成 gmt_finished:任务完成时间,格式:时间毫秒数 biz_type:业务类型 sub_biz_type:子业务类型 biz_id:业务ID biz_param:业务参数 biz_entry:业务入口 tag:任务标签 memo:任务备注 + _fields string + // 客户端的版本信息 + _clientInfo string + // 是否需要删除的任务,默认为false + _needDeleted bool +} + +// 初始化TaobaoQianniuTasksGetAPIRequest对象 +func NewTaobaoQianniuTasksGetRequest() *TaobaoQianniuTasksGetAPIRequest{ + return &TaobaoQianniuTasksGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQianniuTasksGetAPIRequest) GetApiMethodName() string { + return "taobao.qianniu.tasks.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQianniuTasksGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderBy Setter +// 排序字段,可以为id,gmt_create,gmt_finished,metadata_id等 +func (r *TaobaoQianniuTasksGetAPIRequest) SetOrderBy(_orderBy string) error { + r._orderBy = _orderBy + r.Set("order_by", _orderBy) + return nil +} + +// OrderBy Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetOrderBy() string { + return r._orderBy +} +// OrderType Setter +// asc为升,desc为降 +func (r *TaobaoQianniuTasksGetAPIRequest) SetOrderType(_orderType string) error { + r._orderType = _orderType + r.Set("order_type", _orderType) + return nil +} + +// OrderType Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetOrderType() string { + return r._orderType +} +// RemindFlag Setter +// 0-不需要提醒,未设提醒时间 1-设置过提醒时间,需要提醒 +func (r *TaobaoQianniuTasksGetAPIRequest) SetRemindFlag(_remindFlag int64) error { + r._remindFlag = _remindFlag + r.Set("remind_flag", _remindFlag) + return nil +} + +// RemindFlag Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetRemindFlag() int64 { + return r._remindFlag +} +// BizNick Setter +// 业务相关的对象,当前主要表示买家nick +func (r *TaobaoQianniuTasksGetAPIRequest) SetBizNick(_bizNick string) error { + r._bizNick = _bizNick + r.Set("biz_nick", _bizNick) + return nil +} + +// BizNick Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetBizNick() string { + return r._bizNick +} +// StartDate Setter +// 根据任务创建时间搜索的开始日期(含),不填则不限。例如只查询2014-01-01当天的任务,则将start_date和end_date都设置成2014-01-01 +func (r *TaobaoQianniuTasksGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 根据任务创建时间搜索的结束日期(含),不填则不限。例如只查询2014-01-01当天的任务,则将start_date和end_date都设置成2014-01-01 +func (r *TaobaoQianniuTasksGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetEndDate() string { + return r._endDate +} +// ModifyStartTimeStr Setter +// 根据任务修改时间搜索的开始时间(含),不填则不限。例如查询“2014-01-01 00:00:10”之后有修改的任务,则将modify_start_time_str设置成“2014-01-01 00:00:10” +func (r *TaobaoQianniuTasksGetAPIRequest) SetModifyStartTimeStr(_modifyStartTimeStr string) error { + r._modifyStartTimeStr = _modifyStartTimeStr + r.Set("modify_start_time_str", _modifyStartTimeStr) + return nil +} + +// ModifyStartTimeStr Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetModifyStartTimeStr() string { + return r._modifyStartTimeStr +} +// ModifyEndTimeStr Setter +// 根据任务修改时间搜索的结束时间(含),不填则不限。例如查询“2014-01-01 00:00:10”之前有修改的任务,则将modify_end_time_str设置成“2014-01-01 00:00:10” +func (r *TaobaoQianniuTasksGetAPIRequest) SetModifyEndTimeStr(_modifyEndTimeStr string) error { + r._modifyEndTimeStr = _modifyEndTimeStr + r.Set("modify_end_time_str", _modifyEndTimeStr) + return nil +} + +// ModifyEndTimeStr Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetModifyEndTimeStr() string { + return r._modifyEndTimeStr +} +// Priority Setter +// 优先级。即创建时的metadata中的优先级。0为低,1为中,2为高。 +func (r *TaobaoQianniuTasksGetAPIRequest) SetPriority(_priority int64) error { + r._priority = _priority + r.Set("priority", _priority) + return nil +} + +// Priority Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetPriority() int64 { + return r._priority +} +// ExcludeBizType Setter +// 需要排除的任务类型 +func (r *TaobaoQianniuTasksGetAPIRequest) SetExcludeBizType(_excludeBizType string) error { + r._excludeBizType = _excludeBizType + r.Set("exclude_biz_type", _excludeBizType) + return nil +} + +// ExcludeBizType Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetExcludeBizType() string { + return r._excludeBizType +} +// KeyWord Setter +// 关键词搜索。只对任务内容进行模糊匹配,以及bizid和biznick进行精准匹配 +func (r *TaobaoQianniuTasksGetAPIRequest) SetKeyWord(_keyWord string) error { + r._keyWord = _keyWord + r.Set("key_word", _keyWord) + return nil +} + +// KeyWord Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetKeyWord() string { + return r._keyWord +} +// CurrentPage Setter +// 当前页数,从1开始 +func (r *TaobaoQianniuTasksGetAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// PageSize Setter +// 每页条数 +func (r *TaobaoQianniuTasksGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// BizType Setter +// 业务类型 +func (r *TaobaoQianniuTasksGetAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetBizType() string { + return r._bizType +} +// SubBizType Setter +// 子任务类型 +func (r *TaobaoQianniuTasksGetAPIRequest) SetSubBizType(_subBizType string) error { + r._subBizType = _subBizType + r.Set("sub_biz_type", _subBizType) + return nil +} + +// SubBizType Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetSubBizType() string { + return r._subBizType +} +// TaskIds Setter +// 任务的ID列表,用逗号分隔 +func (r *TaobaoQianniuTasksGetAPIRequest) SetTaskIds(_taskIds string) error { + r._taskIds = _taskIds + r.Set("task_ids", _taskIds) + return nil +} + +// TaskIds Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetTaskIds() string { + return r._taskIds +} +// BizIds Setter +// 业务ID列表,逗号分隔 +func (r *TaobaoQianniuTasksGetAPIRequest) SetBizIds(_bizIds string) error { + r._bizIds = _bizIds + r.Set("biz_ids", _bizIds) + return nil +} + +// BizIds Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetBizIds() string { + return r._bizIds +} +// ReceiverUid Setter +// 任务执行者用户数字ID +func (r *TaobaoQianniuTasksGetAPIRequest) SetReceiverUid(_receiverUid int64) error { + r._receiverUid = _receiverUid + r.Set("receiver_uid", _receiverUid) + return nil +} + +// ReceiverUid Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetReceiverUid() int64 { + return r._receiverUid +} +// SenderUid Setter +// 任务发起者用户数字ID +func (r *TaobaoQianniuTasksGetAPIRequest) SetSenderUid(_senderUid int64) error { + r._senderUid = _senderUid + r.Set("sender_uid", _senderUid) + return nil +} + +// SenderUid Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetSenderUid() int64 { + return r._senderUid +} +// Status Setter +// 逗号分隔的任务状态:0-未执行,1-执行中,2-执行完成,3-超时,4-取消,5-忽略 +func (r *TaobaoQianniuTasksGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetStatus() string { + return r._status +} +// SubStatus Setter +// 逗号分隔的子任务状态,由业务方自定义 +func (r *TaobaoQianniuTasksGetAPIRequest) SetSubStatus(_subStatus string) error { + r._subStatus = _subStatus + r.Set("sub_status", _subStatus) + return nil +} + +// SubStatus Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetSubStatus() string { + return r._subStatus +} +// MetadataIds Setter +// 任务元id,多个以逗号分隔 +func (r *TaobaoQianniuTasksGetAPIRequest) SetMetadataIds(_metadataIds string) error { + r._metadataIds = _metadataIds + r.Set("metadata_ids", _metadataIds) + return nil +} + +// MetadataIds Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetMetadataIds() string { + return r._metadataIds +} +// NeedMeta Setter +// 是否需要meta信息,默认值为false +func (r *TaobaoQianniuTasksGetAPIRequest) SetNeedMeta(_needMeta bool) error { + r._needMeta = _needMeta + r.Set("need_meta", _needMeta) + return nil +} + +// NeedMeta Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetNeedMeta() bool { + return r._needMeta +} +// Fields Setter +// 逗号分隔的字段列表,各个字段含义: id:任务ID receiver_uid:执行者用户数字ID receiver_nick:执行者用户昵称 status:任务状态:0-未执行,1-执行中,2-执行完成,3-超时,4-取消,5-忽略 sub_status:子任务状态,由业务方自定义 finish_strategy:任务完成策略:1-一个人完成,2-所有人完成 gmt_finished:任务完成时间,格式:时间毫秒数 biz_type:业务类型 sub_biz_type:子业务类型 biz_id:业务ID biz_param:业务参数 biz_entry:业务入口 tag:任务标签 memo:任务备注 +func (r *TaobaoQianniuTasksGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetFields() string { + return r._fields +} +// ClientInfo Setter +// 客户端的版本信息 +func (r *TaobaoQianniuTasksGetAPIRequest) SetClientInfo(_clientInfo string) error { + r._clientInfo = _clientInfo + r.Set("client_info", _clientInfo) + return nil +} + +// ClientInfo Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetClientInfo() string { + return r._clientInfo +} +// NeedDeleted Setter +// 是否需要删除的任务,默认为false +func (r *TaobaoQianniuTasksGetAPIRequest) SetNeedDeleted(_needDeleted bool) error { + r._needDeleted = _needDeleted + r.Set("need_deleted", _needDeleted) + return nil +} + +// NeedDeleted Getter +func (r TaobaoQianniuTasksGetAPIRequest) GetNeedDeleted() bool { + return r._needDeleted +} diff --git a/model/qianniu/TaobaoQianniuTasksGetAPIResponse.go b/model/qianniu/TaobaoQianniuTasksGetAPIResponse.go new file mode 100644 index 0000000000..4bc878e2aa --- /dev/null +++ b/model/qianniu/TaobaoQianniuTasksGetAPIResponse.go @@ -0,0 +1,27 @@ +package qianniu + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定的任务 API返回值 +taobao.qianniu.tasks.get + +获取指定的任务,可用的参数组合:
task_ids + need_meta + fields:精确查找
biz_type + sub_biz_type + biz_ids + need_meta + fields:按照业务ID查找
biz_type + sub_biz_type + sender_uid + need_meta + fields:按照发起者查找
biz_type + sub_biz_type + receiver_uid + need_meta + fields:按照执行者查找
biz_type+modify_start_time+modify_end_time+fields:能支持指定修改时间的查询,用于增量查询等 +*/ +type TaobaoQianniuTasksGetAPIResponse struct { + model.CommonResponse + TaobaoQianniuTasksGetAPIResponseModel +} + +// 获取指定的任务 成功返回结果 +type TaobaoQianniuTasksGetAPIResponseModel struct { + XMLName xml.Name `xml:"qianniu_tasks_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的任务列表 + Tasks []QTask `json:"tasks,omitempty" xml:"tasks>q_task,omitempty"` +} diff --git a/model/qianniu/TaobaoQianniuTasksGetResponse.go b/model/qianniu/TaobaoQianniuTasksGetResponse.go deleted file mode 100644 index 72ed0445be..0000000000 --- a/model/qianniu/TaobaoQianniuTasksGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qianniu - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取指定的任务 API返回值 -taobao.qianniu.tasks.get - -获取指定的任务,可用的参数组合:
task_ids + need_meta + fields:精确查找
biz_type + sub_biz_type + biz_ids + need_meta + fields:按照业务ID查找
biz_type + sub_biz_type + sender_uid + need_meta + fields:按照发起者查找
biz_type + sub_biz_type + receiver_uid + need_meta + fields:按照执行者查找
biz_type+modify_start_time+modify_end_time+fields:能支持指定修改时间的查询,用于增量查询等 -*/ -type TaobaoQianniuTasksGetAPIResponse struct { - model.CommonResponse - TaobaoQianniuTasksGetResponse -} - -// 获取指定的任务 成功返回结果 -type TaobaoQianniuTasksGetResponse struct { - XMLName xml.Name `xml:"qianniu_tasks_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的任务列表 - Tasks []QTask `json:"tasks,omitempty" xml:"tasks>q_task,omitempty"` -} diff --git a/model/qimen/RequestDo.go b/model/qimen/RequestDo.go new file mode 100644 index 0000000000..9df229b39d --- /dev/null +++ b/model/qimen/RequestDo.go @@ -0,0 +1,29 @@ +package qimen + +// RequestDo +type RequestDo struct { + // 奇门仓储字段,C123,string(50),, + OwnerCode string `json:"ownerCode,omitempty" xml:"ownerCode,omitempty"` + // 奇门仓储字段 + WarehouseCodes []string `json:"warehouseCodes,omitempty" xml:"warehouseCodes>string,omitempty"` + // 奇门仓储字段 + ItemCodes []string `json:"itemCodes,omitempty" xml:"itemCodes>string,omitempty"` + // 奇门仓储字段 + ChannelCodes []string `json:"channelCodes,omitempty" xml:"channelCodes>string,omitempty"` + // 奇门仓储字段,C123,string(50),, + ItemId string `json:"itemId,omitempty" xml:"itemId,omitempty"` + // inventoryRules + InventoryRules []InventoryRule `json:"inventoryRules,omitempty" xml:"inventoryRules>inventory_rule,omitempty"` + // 奇门仓储字段,C123,string(50),必填, + ActionType string `json:"actionType,omitempty" xml:"actionType,omitempty"` + // 奇门仓储字段,C123,string(50),必填, + ShopNick string `json:"shopNick,omitempty" xml:"shopNick,omitempty"` + // 奇门仓储字段,C123,string(50),必填, + ItemSource string `json:"itemSource,omitempty" xml:"itemSource,omitempty"` + // 奇门仓储字段,C123,string(50),必填, + ShopItemId string `json:"shopItemId,omitempty" xml:"shopItemId,omitempty"` + // 奇门仓储字段,C123,string(50),必填, + SkuId string `json:"skuId,omitempty" xml:"skuId,omitempty"` + // 商品编码,S1234,string(50),必填, + ItemCode string `json:"itemCode,omitempty" xml:"itemCode,omitempty"` +} diff --git a/model/qimen/TaobaoQimenChannelinventoryQueryAPIRequest.go b/model/qimen/TaobaoQimenChannelinventoryQueryAPIRequest.go new file mode 100644 index 0000000000..d2c22d4d52 --- /dev/null +++ b/model/qimen/TaobaoQimenChannelinventoryQueryAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道库存查询接口 API请求 +taobao.qimen.channelinventory.query + +渠道库存查询 +*/ +type TaobaoQimenChannelinventoryQueryAPIRequest struct { + model.Params + // + _request *RequestDo +} + +// 初始化TaobaoQimenChannelinventoryQueryAPIRequest对象 +func NewTaobaoQimenChannelinventoryQueryRequest() *TaobaoQimenChannelinventoryQueryAPIRequest{ + return &TaobaoQimenChannelinventoryQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenChannelinventoryQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.channelinventory.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenChannelinventoryQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenChannelinventoryQueryAPIRequest) SetRequest(_request *RequestDo) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenChannelinventoryQueryAPIRequest) GetRequest() *RequestDo { + return r._request +} diff --git a/model/qimen/TaobaoQimenChannelinventoryQueryAPIResponse.go b/model/qimen/TaobaoQimenChannelinventoryQueryAPIResponse.go new file mode 100644 index 0000000000..13ff16728b --- /dev/null +++ b/model/qimen/TaobaoQimenChannelinventoryQueryAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道库存查询接口 API返回值 +taobao.qimen.channelinventory.query + +渠道库存查询 +*/ +type TaobaoQimenChannelinventoryQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenChannelinventoryQueryAPIResponseModel +} + +// 渠道库存查询接口 成功返回结果 +type TaobaoQimenChannelinventoryQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_channelinventory_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *ResponseDo `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenChannelinventoryQueryResponse.go b/model/qimen/TaobaoQimenChannelinventoryQueryResponse.go deleted file mode 100644 index 94cfd83df6..0000000000 --- a/model/qimen/TaobaoQimenChannelinventoryQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -渠道库存查询接口 API返回值 -taobao.qimen.channelinventory.query - -渠道库存查询 -*/ -type TaobaoQimenChannelinventoryQueryAPIResponse struct { - model.CommonResponse - TaobaoQimenChannelinventoryQueryResponse -} - -// 渠道库存查询接口 成功返回结果 -type TaobaoQimenChannelinventoryQueryResponse struct { - XMLName xml.Name `xml:"qimen_channelinventory_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *ResponseDo `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenCombineitemDeleteAPIRequest.go b/model/qimen/TaobaoQimenCombineitemDeleteAPIRequest.go new file mode 100644 index 0000000000..b209fc34f9 --- /dev/null +++ b/model/qimen/TaobaoQimenCombineitemDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +组合货品删除接口 API请求 +taobao.qimen.combineitem.delete + +组合货品删除 +*/ +type TaobaoQimenCombineitemDeleteAPIRequest struct { + model.Params + // + _request *RequestDo +} + +// 初始化TaobaoQimenCombineitemDeleteAPIRequest对象 +func NewTaobaoQimenCombineitemDeleteRequest() *TaobaoQimenCombineitemDeleteAPIRequest{ + return &TaobaoQimenCombineitemDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenCombineitemDeleteAPIRequest) GetApiMethodName() string { + return "taobao.qimen.combineitem.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenCombineitemDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenCombineitemDeleteAPIRequest) SetRequest(_request *RequestDo) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenCombineitemDeleteAPIRequest) GetRequest() *RequestDo { + return r._request +} diff --git a/model/qimen/TaobaoQimenCombineitemDeleteAPIResponse.go b/model/qimen/TaobaoQimenCombineitemDeleteAPIResponse.go new file mode 100644 index 0000000000..257aa5c33e --- /dev/null +++ b/model/qimen/TaobaoQimenCombineitemDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +组合货品删除接口 API返回值 +taobao.qimen.combineitem.delete + +组合货品删除 +*/ +type TaobaoQimenCombineitemDeleteAPIResponse struct { + model.CommonResponse + TaobaoQimenCombineitemDeleteAPIResponseModel +} + +// 组合货品删除接口 成功返回结果 +type TaobaoQimenCombineitemDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_combineitem_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *ResponseDo `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenCombineitemDeleteResponse.go b/model/qimen/TaobaoQimenCombineitemDeleteResponse.go deleted file mode 100644 index 7d0ad82555..0000000000 --- a/model/qimen/TaobaoQimenCombineitemDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -组合货品删除接口 API返回值 -taobao.qimen.combineitem.delete - -组合货品删除 -*/ -type TaobaoQimenCombineitemDeleteAPIResponse struct { - model.CommonResponse - TaobaoQimenCombineitemDeleteResponse -} - -// 组合货品删除接口 成功返回结果 -type TaobaoQimenCombineitemDeleteResponse struct { - XMLName xml.Name `xml:"qimen_combineitem_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *ResponseDo `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenCombineitemQueryAPIRequest.go b/model/qimen/TaobaoQimenCombineitemQueryAPIRequest.go new file mode 100644 index 0000000000..4a93abe919 --- /dev/null +++ b/model/qimen/TaobaoQimenCombineitemQueryAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +组合货品关系查询接口 API请求 +taobao.qimen.combineitem.query + +组合货品关系查询 +*/ +type TaobaoQimenCombineitemQueryAPIRequest struct { + model.Params + // + _request *TaobaoQimenCombineitemQueryRequest +} + +// 初始化TaobaoQimenCombineitemQueryAPIRequest对象 +func NewTaobaoQimenCombineitemQueryRequest() *TaobaoQimenCombineitemQueryAPIRequest{ + return &TaobaoQimenCombineitemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenCombineitemQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.combineitem.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenCombineitemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenCombineitemQueryAPIRequest) SetRequest(_request *TaobaoQimenCombineitemQueryRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenCombineitemQueryAPIRequest) GetRequest() *TaobaoQimenCombineitemQueryRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenCombineitemQueryAPIResponse.go b/model/qimen/TaobaoQimenCombineitemQueryAPIResponse.go new file mode 100644 index 0000000000..15261f46ac --- /dev/null +++ b/model/qimen/TaobaoQimenCombineitemQueryAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +组合货品关系查询接口 API返回值 +taobao.qimen.combineitem.query + +组合货品关系查询 +*/ +type TaobaoQimenCombineitemQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenCombineitemQueryAPIResponseModel +} + +// 组合货品关系查询接口 成功返回结果 +type TaobaoQimenCombineitemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_combineitem_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenCombineitemQueryResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenCombineitemSynchronizeAPIRequest.go b/model/qimen/TaobaoQimenCombineitemSynchronizeAPIRequest.go new file mode 100644 index 0000000000..504211b297 --- /dev/null +++ b/model/qimen/TaobaoQimenCombineitemSynchronizeAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +组合商品接口 API请求 +taobao.qimen.combineitem.synchronize + +ERP调用奇门的接口,将商品信息同步给WMS +*/ +type TaobaoQimenCombineitemSynchronizeAPIRequest struct { + model.Params + // + _request *CombineItemSyncRequest +} + +// 初始化TaobaoQimenCombineitemSynchronizeAPIRequest对象 +func NewTaobaoQimenCombineitemSynchronizeRequest() *TaobaoQimenCombineitemSynchronizeAPIRequest{ + return &TaobaoQimenCombineitemSynchronizeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenCombineitemSynchronizeAPIRequest) GetApiMethodName() string { + return "taobao.qimen.combineitem.synchronize" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenCombineitemSynchronizeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenCombineitemSynchronizeAPIRequest) SetRequest(_request *CombineItemSyncRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenCombineitemSynchronizeAPIRequest) GetRequest() *CombineItemSyncRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenCombineitemSynchronizeAPIResponse.go b/model/qimen/TaobaoQimenCombineitemSynchronizeAPIResponse.go new file mode 100644 index 0000000000..0aa8a70f14 --- /dev/null +++ b/model/qimen/TaobaoQimenCombineitemSynchronizeAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +组合商品接口 API返回值 +taobao.qimen.combineitem.synchronize + +ERP调用奇门的接口,将商品信息同步给WMS +*/ +type TaobaoQimenCombineitemSynchronizeAPIResponse struct { + model.CommonResponse + TaobaoQimenCombineitemSynchronizeAPIResponseModel +} + +// 组合商品接口 成功返回结果 +type TaobaoQimenCombineitemSynchronizeAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_combineitem_synchronize_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenCombineitemSynchronizeResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenCombineitemSynchronizeBatch.go b/model/qimen/TaobaoQimenCombineitemSynchronizeBatch.go new file mode 100644 index 0000000000..c0c5d6a190 --- /dev/null +++ b/model/qimen/TaobaoQimenCombineitemSynchronizeBatch.go @@ -0,0 +1,19 @@ +package qimen + +// TaobaoQimenCombineitemSynchronizeBatch +type TaobaoQimenCombineitemSynchronizeBatch struct { + // test + BatchCode string `json:"batchCode,omitempty" xml:"batchCode,omitempty"` + // test + ProductDate string `json:"productDate,omitempty" xml:"productDate,omitempty"` + // test + ExpireDate string `json:"expireDate,omitempty" xml:"expireDate,omitempty"` + // test + ProduceCode string `json:"produceCode,omitempty" xml:"produceCode,omitempty"` + // test + InventoryType string `json:"inventoryType,omitempty" xml:"inventoryType,omitempty"` + // test + ActualQty string `json:"actualQty,omitempty" xml:"actualQty,omitempty"` + // test + Quantity string `json:"quantity,omitempty" xml:"quantity,omitempty"` +} diff --git a/model/qimen/TaobaoQimenDeliveryorderBatchconfirmAPIRequest.go b/model/qimen/TaobaoQimenDeliveryorderBatchconfirmAPIRequest.go new file mode 100644 index 0000000000..3a689e845a --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderBatchconfirmAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发货单确认接口 API请求 +taobao.qimen.deliveryorder.batchconfirm + +taobao.qimen.deliveryorder.batchconfirm +*/ +type TaobaoQimenDeliveryorderBatchconfirmAPIRequest struct { + model.Params + // + _request *DeliveryOrderBatchConfirmRequest +} + +// 初始化TaobaoQimenDeliveryorderBatchconfirmAPIRequest对象 +func NewTaobaoQimenDeliveryorderBatchconfirmRequest() *TaobaoQimenDeliveryorderBatchconfirmAPIRequest{ + return &TaobaoQimenDeliveryorderBatchconfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenDeliveryorderBatchconfirmAPIRequest) GetApiMethodName() string { + return "taobao.qimen.deliveryorder.batchconfirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenDeliveryorderBatchconfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenDeliveryorderBatchconfirmAPIRequest) SetRequest(_request *DeliveryOrderBatchConfirmRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenDeliveryorderBatchconfirmAPIRequest) GetRequest() *DeliveryOrderBatchConfirmRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenDeliveryorderBatchconfirmAPIResponse.go b/model/qimen/TaobaoQimenDeliveryorderBatchconfirmAPIResponse.go new file mode 100644 index 0000000000..f6e1079bd0 --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderBatchconfirmAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发货单确认接口 API返回值 +taobao.qimen.deliveryorder.batchconfirm + +taobao.qimen.deliveryorder.batchconfirm +*/ +type TaobaoQimenDeliveryorderBatchconfirmAPIResponse struct { + model.CommonResponse + TaobaoQimenDeliveryorderBatchconfirmAPIResponseModel +} + +// 发货单确认接口 成功返回结果 +type TaobaoQimenDeliveryorderBatchconfirmAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_deliveryorder_batchconfirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenDeliveryorderBatchconfirmResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenDeliveryorderBatchconfirmBatch.go b/model/qimen/TaobaoQimenDeliveryorderBatchconfirmBatch.go new file mode 100644 index 0000000000..59c2faba76 --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderBatchconfirmBatch.go @@ -0,0 +1,17 @@ +package qimen + +// TaobaoQimenDeliveryorderBatchconfirmBatch +type TaobaoQimenDeliveryorderBatchconfirmBatch struct { + // 批次编号 + BatchCode string `json:"batchCode,omitempty" xml:"batchCode,omitempty"` + // 生产日期(YYYY-MM-DD) + ProductDate string `json:"productDate,omitempty" xml:"productDate,omitempty"` + // 过期日期(YYYY-MM-DD) + ExpireDate string `json:"expireDate,omitempty" xml:"expireDate,omitempty"` + // 生产批号 + ProduceCode string `json:"produceCode,omitempty" xml:"produceCode,omitempty"` + // 库存类型(ZP=正品;CC=残次;JS=机损;XS=箱损;ZT=在途库存;默认为查所有类型的库存) + InventoryType string `json:"inventoryType,omitempty" xml:"inventoryType,omitempty"` + // 实发数量(要求batchs节点下所有的实发数量之和等于orderline中的实发数量) + ActualQty int64 `json:"actualQty,omitempty" xml:"actualQty,omitempty"` +} diff --git a/model/qimen/TaobaoQimenDeliveryorderBatchconfirmDetail.go b/model/qimen/TaobaoQimenDeliveryorderBatchconfirmDetail.go new file mode 100644 index 0000000000..b4997ea3a3 --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderBatchconfirmDetail.go @@ -0,0 +1,7 @@ +package qimen + +// TaobaoQimenDeliveryorderBatchconfirmDetail +type TaobaoQimenDeliveryorderBatchconfirmDetail struct { + // 订单商品列表 + Items []Item `json:"items,omitempty" xml:"items>item,omitempty"` +} diff --git a/model/qimen/TaobaoQimenDeliveryorderBatchcreateAPIRequest.go b/model/qimen/TaobaoQimenDeliveryorderBatchcreateAPIRequest.go new file mode 100644 index 0000000000..66c51db703 --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderBatchcreateAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发货单创建批量接口 API请求 +taobao.qimen.deliveryorder.batchcreate + +ERP调用接口,将发货信息批量推送给WMS +*/ +type TaobaoQimenDeliveryorderBatchcreateAPIRequest struct { + model.Params + // + _request *DeliveryOrderBatchCreateRequest +} + +// 初始化TaobaoQimenDeliveryorderBatchcreateAPIRequest对象 +func NewTaobaoQimenDeliveryorderBatchcreateRequest() *TaobaoQimenDeliveryorderBatchcreateAPIRequest{ + return &TaobaoQimenDeliveryorderBatchcreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenDeliveryorderBatchcreateAPIRequest) GetApiMethodName() string { + return "taobao.qimen.deliveryorder.batchcreate" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenDeliveryorderBatchcreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenDeliveryorderBatchcreateAPIRequest) SetRequest(_request *DeliveryOrderBatchCreateRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenDeliveryorderBatchcreateAPIRequest) GetRequest() *DeliveryOrderBatchCreateRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenDeliveryorderBatchcreateAPIResponse.go b/model/qimen/TaobaoQimenDeliveryorderBatchcreateAPIResponse.go new file mode 100644 index 0000000000..5ab60bab53 --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderBatchcreateAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发货单创建批量接口 API返回值 +taobao.qimen.deliveryorder.batchcreate + +ERP调用接口,将发货信息批量推送给WMS +*/ +type TaobaoQimenDeliveryorderBatchcreateAPIResponse struct { + model.CommonResponse + TaobaoQimenDeliveryorderBatchcreateAPIResponseModel +} + +// 发货单创建批量接口 成功返回结果 +type TaobaoQimenDeliveryorderBatchcreateAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_deliveryorder_batchcreate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *DeliveryOrderBatchCreateResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenDeliveryorderBatchcreateAnswerAPIRequest.go b/model/qimen/TaobaoQimenDeliveryorderBatchcreateAnswerAPIRequest.go new file mode 100644 index 0000000000..ebccdfc163 --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderBatchcreateAnswerAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发货单创建结果通知接口(批量) API请求 +taobao.qimen.deliveryorder.batchcreate.answer + +WMS调用接口,用于异步化的批量发货单创建结果通知。(如菜鸟发货单批量创建结果的返回) +*/ +type TaobaoQimenDeliveryorderBatchcreateAnswerAPIRequest struct { + model.Params + // + _request *DeliveryOrderBatchCreateAnswerRequest +} + +// 初始化TaobaoQimenDeliveryorderBatchcreateAnswerAPIRequest对象 +func NewTaobaoQimenDeliveryorderBatchcreateAnswerRequest() *TaobaoQimenDeliveryorderBatchcreateAnswerAPIRequest{ + return &TaobaoQimenDeliveryorderBatchcreateAnswerAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenDeliveryorderBatchcreateAnswerAPIRequest) GetApiMethodName() string { + return "taobao.qimen.deliveryorder.batchcreate.answer" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenDeliveryorderBatchcreateAnswerAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenDeliveryorderBatchcreateAnswerAPIRequest) SetRequest(_request *DeliveryOrderBatchCreateAnswerRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenDeliveryorderBatchcreateAnswerAPIRequest) GetRequest() *DeliveryOrderBatchCreateAnswerRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenDeliveryorderBatchcreateAnswerAPIResponse.go b/model/qimen/TaobaoQimenDeliveryorderBatchcreateAnswerAPIResponse.go new file mode 100644 index 0000000000..a588f332fe --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderBatchcreateAnswerAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发货单创建结果通知接口(批量) API返回值 +taobao.qimen.deliveryorder.batchcreate.answer + +WMS调用接口,用于异步化的批量发货单创建结果通知。(如菜鸟发货单批量创建结果的返回) +*/ +type TaobaoQimenDeliveryorderBatchcreateAnswerAPIResponse struct { + model.CommonResponse + TaobaoQimenDeliveryorderBatchcreateAnswerAPIResponseModel +} + +// 发货单创建结果通知接口(批量) 成功返回结果 +type TaobaoQimenDeliveryorderBatchcreateAnswerAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_deliveryorder_batchcreate_answer_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenDeliveryorderBatchcreateAnswerResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenDeliveryorderBatchcreateDetail.go b/model/qimen/TaobaoQimenDeliveryorderBatchcreateDetail.go new file mode 100644 index 0000000000..0c6bc1d0ae --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderBatchcreateDetail.go @@ -0,0 +1,7 @@ +package qimen + +// TaobaoQimenDeliveryorderBatchcreateDetail +type TaobaoQimenDeliveryorderBatchcreateDetail struct { + // 商品列表 + Items []Item `json:"items,omitempty" xml:"items>item,omitempty"` +} diff --git a/model/qimen/TaobaoQimenDeliveryorderBatchcreateResponse.go b/model/qimen/TaobaoQimenDeliveryorderBatchcreateResponse.go deleted file mode 100644 index 6f760491f5..0000000000 --- a/model/qimen/TaobaoQimenDeliveryorderBatchcreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发货单创建批量接口 API返回值 -taobao.qimen.deliveryorder.batchcreate - -ERP调用接口,将发货信息批量推送给WMS -*/ -type TaobaoQimenDeliveryorderBatchcreateAPIResponse struct { - model.CommonResponse - TaobaoQimenDeliveryorderBatchcreateResponse -} - -// 发货单创建批量接口 成功返回结果 -type TaobaoQimenDeliveryorderBatchcreateResponse struct { - XMLName xml.Name `xml:"qimen_deliveryorder_batchcreate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *DeliveryOrderBatchCreateResponse `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenDeliveryorderConfirmAPIRequest.go b/model/qimen/TaobaoQimenDeliveryorderConfirmAPIRequest.go new file mode 100644 index 0000000000..8a2c5dbd21 --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发货单确认接口 API请求 +taobao.qimen.deliveryorder.confirm + +taobao.qimen.deliveryorder.confirm +*/ +type TaobaoQimenDeliveryorderConfirmAPIRequest struct { + model.Params + // + _request *DeliveryOrderConfirmRequest +} + +// 初始化TaobaoQimenDeliveryorderConfirmAPIRequest对象 +func NewTaobaoQimenDeliveryorderConfirmRequest() *TaobaoQimenDeliveryorderConfirmAPIRequest{ + return &TaobaoQimenDeliveryorderConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenDeliveryorderConfirmAPIRequest) GetApiMethodName() string { + return "taobao.qimen.deliveryorder.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenDeliveryorderConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenDeliveryorderConfirmAPIRequest) SetRequest(_request *DeliveryOrderConfirmRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenDeliveryorderConfirmAPIRequest) GetRequest() *DeliveryOrderConfirmRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenDeliveryorderConfirmAPIResponse.go b/model/qimen/TaobaoQimenDeliveryorderConfirmAPIResponse.go new file mode 100644 index 0000000000..12cd78f2ea --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发货单确认接口 API返回值 +taobao.qimen.deliveryorder.confirm + +taobao.qimen.deliveryorder.confirm +*/ +type TaobaoQimenDeliveryorderConfirmAPIResponse struct { + model.CommonResponse + TaobaoQimenDeliveryorderConfirmAPIResponseModel +} + +// 发货单确认接口 成功返回结果 +type TaobaoQimenDeliveryorderConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_deliveryorder_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenDeliveryorderConfirmResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenDeliveryorderConfirmBatch.go b/model/qimen/TaobaoQimenDeliveryorderConfirmBatch.go new file mode 100644 index 0000000000..730aa8a575 --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderConfirmBatch.go @@ -0,0 +1,19 @@ +package qimen + +// TaobaoQimenDeliveryorderConfirmBatch +type TaobaoQimenDeliveryorderConfirmBatch struct { + // 批次编号 + BatchCode string `json:"batchCode,omitempty" xml:"batchCode,omitempty"` + // 生产日期(YYYY-MM-DD) + ProductDate string `json:"productDate,omitempty" xml:"productDate,omitempty"` + // 过期日期(YYYY-MM-DD) + ExpireDate string `json:"expireDate,omitempty" xml:"expireDate,omitempty"` + // 生产批号 + ProduceCode string `json:"produceCode,omitempty" xml:"produceCode,omitempty"` + // 库存类型(ZP=正品;CC=残次;JS=机损;XS=箱损;ZT=在途库存;默认为查所有类型的库存) + InventoryType string `json:"inventoryType,omitempty" xml:"inventoryType,omitempty"` + // 实发数量(要求batchs节点下所有的实发数量之和等于orderline中的实发数量) + ActualQty int64 `json:"actualQty,omitempty" xml:"actualQty,omitempty"` + // 货品sn编码 + SnCode string `json:"snCode,omitempty" xml:"snCode,omitempty"` +} diff --git a/model/qimen/TaobaoQimenDeliveryorderConfirmDetail.go b/model/qimen/TaobaoQimenDeliveryorderConfirmDetail.go new file mode 100644 index 0000000000..105cf95933 --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderConfirmDetail.go @@ -0,0 +1,7 @@ +package qimen + +// TaobaoQimenDeliveryorderConfirmDetail +type TaobaoQimenDeliveryorderConfirmDetail struct { + // 商品列表 + Items []Item `json:"items,omitempty" xml:"items>item,omitempty"` +} diff --git a/model/qimen/TaobaoQimenDeliveryorderCreateAPIRequest.go b/model/qimen/TaobaoQimenDeliveryorderCreateAPIRequest.go new file mode 100644 index 0000000000..64272c12cd --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发货单创建接口 API请求 +taobao.qimen.deliveryorder.create + +taobao.qimen.deliveryorder.create +*/ +type TaobaoQimenDeliveryorderCreateAPIRequest struct { + model.Params + // + _request *DeliveryOrderCreateRequest +} + +// 初始化TaobaoQimenDeliveryorderCreateAPIRequest对象 +func NewTaobaoQimenDeliveryorderCreateRequest() *TaobaoQimenDeliveryorderCreateAPIRequest{ + return &TaobaoQimenDeliveryorderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenDeliveryorderCreateAPIRequest) GetApiMethodName() string { + return "taobao.qimen.deliveryorder.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenDeliveryorderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenDeliveryorderCreateAPIRequest) SetRequest(_request *DeliveryOrderCreateRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenDeliveryorderCreateAPIRequest) GetRequest() *DeliveryOrderCreateRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenDeliveryorderCreateAPIResponse.go b/model/qimen/TaobaoQimenDeliveryorderCreateAPIResponse.go new file mode 100644 index 0000000000..aaad1d802f --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发货单创建接口 API返回值 +taobao.qimen.deliveryorder.create + +taobao.qimen.deliveryorder.create +*/ +type TaobaoQimenDeliveryorderCreateAPIResponse struct { + model.CommonResponse + TaobaoQimenDeliveryorderCreateAPIResponseModel +} + +// 发货单创建接口 成功返回结果 +type TaobaoQimenDeliveryorderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_deliveryorder_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *DeliveryOrderCreateResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenDeliveryorderCreateDetail.go b/model/qimen/TaobaoQimenDeliveryorderCreateDetail.go new file mode 100644 index 0000000000..7a125b958a --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderCreateDetail.go @@ -0,0 +1,7 @@ +package qimen + +// TaobaoQimenDeliveryorderCreateDetail +type TaobaoQimenDeliveryorderCreateDetail struct { + // 商品列表 + Items []Item `json:"items,omitempty" xml:"items>item,omitempty"` +} diff --git a/model/qimen/TaobaoQimenDeliveryorderCreateResponse.go b/model/qimen/TaobaoQimenDeliveryorderCreateResponse.go deleted file mode 100644 index 84da405852..0000000000 --- a/model/qimen/TaobaoQimenDeliveryorderCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发货单创建接口 API返回值 -taobao.qimen.deliveryorder.create - -taobao.qimen.deliveryorder.create -*/ -type TaobaoQimenDeliveryorderCreateAPIResponse struct { - model.CommonResponse - TaobaoQimenDeliveryorderCreateResponse -} - -// 发货单创建接口 成功返回结果 -type TaobaoQimenDeliveryorderCreateResponse struct { - XMLName xml.Name `xml:"qimen_deliveryorder_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *DeliveryOrderCreateResponse `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenDeliveryorderQueryAPIRequest.go b/model/qimen/TaobaoQimenDeliveryorderQueryAPIRequest.go new file mode 100644 index 0000000000..70fb4de950 --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发货单查询接口 API请求 +taobao.qimen.deliveryorder.query + +ERP调用奇门的发货单查询接口,查询发货单详情 +*/ +type TaobaoQimenDeliveryorderQueryAPIRequest struct { + model.Params + // + _request *DeliveryOrderQueryRequest +} + +// 初始化TaobaoQimenDeliveryorderQueryAPIRequest对象 +func NewTaobaoQimenDeliveryorderQueryRequest() *TaobaoQimenDeliveryorderQueryAPIRequest{ + return &TaobaoQimenDeliveryorderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenDeliveryorderQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.deliveryorder.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenDeliveryorderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenDeliveryorderQueryAPIRequest) SetRequest(_request *DeliveryOrderQueryRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenDeliveryorderQueryAPIRequest) GetRequest() *DeliveryOrderQueryRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenDeliveryorderQueryAPIResponse.go b/model/qimen/TaobaoQimenDeliveryorderQueryAPIResponse.go new file mode 100644 index 0000000000..0cd87e653c --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发货单查询接口 API返回值 +taobao.qimen.deliveryorder.query + +ERP调用奇门的发货单查询接口,查询发货单详情 +*/ +type TaobaoQimenDeliveryorderQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenDeliveryorderQueryAPIResponseModel +} + +// 发货单查询接口 成功返回结果 +type TaobaoQimenDeliveryorderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_deliveryorder_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *DeliveryOrderQueryResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenDeliveryorderQueryBatch.go b/model/qimen/TaobaoQimenDeliveryorderQueryBatch.go new file mode 100644 index 0000000000..7829f831e3 --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderQueryBatch.go @@ -0,0 +1,17 @@ +package qimen + +// TaobaoQimenDeliveryorderQueryBatch +type TaobaoQimenDeliveryorderQueryBatch struct { + // 批次编号 + BatchCode string `json:"batchCode,omitempty" xml:"batchCode,omitempty"` + // 生产日期(YYYY-MM-DD) + ProductDate string `json:"productDate,omitempty" xml:"productDate,omitempty"` + // 过期日期(YYYY-MM-DD) + ExpireDate string `json:"expireDate,omitempty" xml:"expireDate,omitempty"` + // 生产批号 + ProduceCode string `json:"produceCode,omitempty" xml:"produceCode,omitempty"` + // 库存类型(ZP=正品;CC=残次;JS=机损;XS=箱损;ZT=在途库存;默认为查所有类型的库存) + InventoryType string `json:"inventoryType,omitempty" xml:"inventoryType,omitempty"` + // 实发数量(要求batchs节点下所有的实发数量之和等于orderline中的实发数量) + ActualQty int64 `json:"actualQty,omitempty" xml:"actualQty,omitempty"` +} diff --git a/model/qimen/TaobaoQimenDeliveryorderQueryDetail.go b/model/qimen/TaobaoQimenDeliveryorderQueryDetail.go new file mode 100644 index 0000000000..12e045423d --- /dev/null +++ b/model/qimen/TaobaoQimenDeliveryorderQueryDetail.go @@ -0,0 +1,7 @@ +package qimen + +// TaobaoQimenDeliveryorderQueryDetail +type TaobaoQimenDeliveryorderQueryDetail struct { + // 商品列表 + Items []Item `json:"items,omitempty" xml:"items>item,omitempty"` +} diff --git a/model/qimen/TaobaoQimenDeliveryorderQueryResponse.go b/model/qimen/TaobaoQimenDeliveryorderQueryResponse.go deleted file mode 100644 index 4289aac34f..0000000000 --- a/model/qimen/TaobaoQimenDeliveryorderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发货单查询接口 API返回值 -taobao.qimen.deliveryorder.query - -ERP调用奇门的发货单查询接口,查询发货单详情 -*/ -type TaobaoQimenDeliveryorderQueryAPIResponse struct { - model.CommonResponse - TaobaoQimenDeliveryorderQueryResponse -} - -// 发货单查询接口 成功返回结果 -type TaobaoQimenDeliveryorderQueryResponse struct { - XMLName xml.Name `xml:"qimen_deliveryorder_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *DeliveryOrderQueryResponse `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenEntryorderConfirmAPIRequest.go b/model/qimen/TaobaoQimenEntryorderConfirmAPIRequest.go new file mode 100644 index 0000000000..9efb356196 --- /dev/null +++ b/model/qimen/TaobaoQimenEntryorderConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +入库单确认接口 API请求 +taobao.qimen.entryorder.confirm + +WMS调用接口,回传入库单信息; +*/ +type TaobaoQimenEntryorderConfirmAPIRequest struct { + model.Params + // + _request *EntryOrderConfirmRequest +} + +// 初始化TaobaoQimenEntryorderConfirmAPIRequest对象 +func NewTaobaoQimenEntryorderConfirmRequest() *TaobaoQimenEntryorderConfirmAPIRequest{ + return &TaobaoQimenEntryorderConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenEntryorderConfirmAPIRequest) GetApiMethodName() string { + return "taobao.qimen.entryorder.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenEntryorderConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenEntryorderConfirmAPIRequest) SetRequest(_request *EntryOrderConfirmRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenEntryorderConfirmAPIRequest) GetRequest() *EntryOrderConfirmRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenEntryorderConfirmAPIResponse.go b/model/qimen/TaobaoQimenEntryorderConfirmAPIResponse.go new file mode 100644 index 0000000000..5b7835bbbe --- /dev/null +++ b/model/qimen/TaobaoQimenEntryorderConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +入库单确认接口 API返回值 +taobao.qimen.entryorder.confirm + +WMS调用接口,回传入库单信息; +*/ +type TaobaoQimenEntryorderConfirmAPIResponse struct { + model.CommonResponse + TaobaoQimenEntryorderConfirmAPIResponseModel +} + +// 入库单确认接口 成功返回结果 +type TaobaoQimenEntryorderConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_entryorder_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenEntryorderConfirmResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenEntryorderConfirmBatch.go b/model/qimen/TaobaoQimenEntryorderConfirmBatch.go new file mode 100644 index 0000000000..b2cc1b6c41 --- /dev/null +++ b/model/qimen/TaobaoQimenEntryorderConfirmBatch.go @@ -0,0 +1,17 @@ +package qimen + +// TaobaoQimenEntryorderConfirmBatch +type TaobaoQimenEntryorderConfirmBatch struct { + // 批次编号 + BatchCode string `json:"batchCode,omitempty" xml:"batchCode,omitempty"` + // 生产日期(YYYY-MM-DD) + ProductDate string `json:"productDate,omitempty" xml:"productDate,omitempty"` + // 过期日期(YYYY-MM-DD) + ExpireDate string `json:"expireDate,omitempty" xml:"expireDate,omitempty"` + // 生产批号 + ProduceCode string `json:"produceCode,omitempty" xml:"produceCode,omitempty"` + // 库存类型(ZP=正品;CC=残次;JS=机损;XS= 箱损;默认为ZP;) + InventoryType string `json:"inventoryType,omitempty" xml:"inventoryType,omitempty"` + // 实收数量(要求batchs节点下所有的实收数量之和等于orderline中的实收数量) + ActualQty int64 `json:"actualQty,omitempty" xml:"actualQty,omitempty"` +} diff --git a/model/qimen/TaobaoQimenEntryorderCreateAPIRequest.go b/model/qimen/TaobaoQimenEntryorderCreateAPIRequest.go new file mode 100644 index 0000000000..2d70ab7844 --- /dev/null +++ b/model/qimen/TaobaoQimenEntryorderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +入库单创建接口 API请求 +taobao.qimen.entryorder.create + +ERP调用接口,创建入库单; +*/ +type TaobaoQimenEntryorderCreateAPIRequest struct { + model.Params + // + _request *EntryOrderCreateRequest +} + +// 初始化TaobaoQimenEntryorderCreateAPIRequest对象 +func NewTaobaoQimenEntryorderCreateRequest() *TaobaoQimenEntryorderCreateAPIRequest{ + return &TaobaoQimenEntryorderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenEntryorderCreateAPIRequest) GetApiMethodName() string { + return "taobao.qimen.entryorder.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenEntryorderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenEntryorderCreateAPIRequest) SetRequest(_request *EntryOrderCreateRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenEntryorderCreateAPIRequest) GetRequest() *EntryOrderCreateRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenEntryorderCreateAPIResponse.go b/model/qimen/TaobaoQimenEntryorderCreateAPIResponse.go new file mode 100644 index 0000000000..a76d0a7c66 --- /dev/null +++ b/model/qimen/TaobaoQimenEntryorderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +入库单创建接口 API返回值 +taobao.qimen.entryorder.create + +ERP调用接口,创建入库单; +*/ +type TaobaoQimenEntryorderCreateAPIResponse struct { + model.CommonResponse + TaobaoQimenEntryorderCreateAPIResponseModel +} + +// 入库单创建接口 成功返回结果 +type TaobaoQimenEntryorderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_entryorder_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenEntryorderCreateResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenEntryorderQueryAPIRequest.go b/model/qimen/TaobaoQimenEntryorderQueryAPIRequest.go new file mode 100644 index 0000000000..788d49d5c7 --- /dev/null +++ b/model/qimen/TaobaoQimenEntryorderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +入库单查询接口 API请求 +taobao.qimen.entryorder.query + +ERP调用接口,查询入库单信息; +*/ +type TaobaoQimenEntryorderQueryAPIRequest struct { + model.Params + // + _request *EntryOrderQueryRequest +} + +// 初始化TaobaoQimenEntryorderQueryAPIRequest对象 +func NewTaobaoQimenEntryorderQueryRequest() *TaobaoQimenEntryorderQueryAPIRequest{ + return &TaobaoQimenEntryorderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenEntryorderQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.entryorder.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenEntryorderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenEntryorderQueryAPIRequest) SetRequest(_request *EntryOrderQueryRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenEntryorderQueryAPIRequest) GetRequest() *EntryOrderQueryRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenEntryorderQueryAPIResponse.go b/model/qimen/TaobaoQimenEntryorderQueryAPIResponse.go new file mode 100644 index 0000000000..5d77db6e6c --- /dev/null +++ b/model/qimen/TaobaoQimenEntryorderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +入库单查询接口 API返回值 +taobao.qimen.entryorder.query + +ERP调用接口,查询入库单信息; +*/ +type TaobaoQimenEntryorderQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenEntryorderQueryAPIResponseModel +} + +// 入库单查询接口 成功返回结果 +type TaobaoQimenEntryorderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_entryorder_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *EntryOrderQueryResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenEntryorderQueryResponse.go b/model/qimen/TaobaoQimenEntryorderQueryResponse.go deleted file mode 100644 index e0bb919850..0000000000 --- a/model/qimen/TaobaoQimenEntryorderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -入库单查询接口 API返回值 -taobao.qimen.entryorder.query - -ERP调用接口,查询入库单信息; -*/ -type TaobaoQimenEntryorderQueryAPIResponse struct { - model.CommonResponse - TaobaoQimenEntryorderQueryResponse -} - -// 入库单查询接口 成功返回结果 -type TaobaoQimenEntryorderQueryResponse struct { - XMLName xml.Name `xml:"qimen_entryorder_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *EntryOrderQueryResponse `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenExpressinfoQueryAPIRequest.go b/model/qimen/TaobaoQimenExpressinfoQueryAPIRequest.go new file mode 100644 index 0000000000..ecbc7f8025 --- /dev/null +++ b/model/qimen/TaobaoQimenExpressinfoQueryAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +配送公司信息查询接口 API请求 +taobao.qimen.expressinfo.query + +配送公司信息查询 +*/ +type TaobaoQimenExpressinfoQueryAPIRequest struct { + model.Params + // + _request *TaobaoQimenExpressinfoQueryRequest +} + +// 初始化TaobaoQimenExpressinfoQueryAPIRequest对象 +func NewTaobaoQimenExpressinfoQueryRequest() *TaobaoQimenExpressinfoQueryAPIRequest{ + return &TaobaoQimenExpressinfoQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenExpressinfoQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.expressinfo.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenExpressinfoQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenExpressinfoQueryAPIRequest) SetRequest(_request *TaobaoQimenExpressinfoQueryRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenExpressinfoQueryAPIRequest) GetRequest() *TaobaoQimenExpressinfoQueryRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenExpressinfoQueryAPIResponse.go b/model/qimen/TaobaoQimenExpressinfoQueryAPIResponse.go new file mode 100644 index 0000000000..c7e0cd4a9f --- /dev/null +++ b/model/qimen/TaobaoQimenExpressinfoQueryAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +配送公司信息查询接口 API返回值 +taobao.qimen.expressinfo.query + +配送公司信息查询 +*/ +type TaobaoQimenExpressinfoQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenExpressinfoQueryAPIResponseModel +} + +// 配送公司信息查询接口 成功返回结果 +type TaobaoQimenExpressinfoQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_expressinfo_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenExpressinfoQueryResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenInventoryQueryAPIRequest.go b/model/qimen/TaobaoQimenInventoryQueryAPIRequest.go new file mode 100644 index 0000000000..5d271c1e3e --- /dev/null +++ b/model/qimen/TaobaoQimenInventoryQueryAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +库存查询接口(多商品) API请求 +taobao.qimen.inventory.query + +ERP调用奇门的接口,查询商品的库存量 +*/ +type TaobaoQimenInventoryQueryAPIRequest struct { + model.Params + // + _request *InventoryQueryRequest +} + +// 初始化TaobaoQimenInventoryQueryAPIRequest对象 +func NewTaobaoQimenInventoryQueryRequest() *TaobaoQimenInventoryQueryAPIRequest{ + return &TaobaoQimenInventoryQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenInventoryQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.inventory.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenInventoryQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenInventoryQueryAPIRequest) SetRequest(_request *InventoryQueryRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenInventoryQueryAPIRequest) GetRequest() *InventoryQueryRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenInventoryQueryAPIResponse.go b/model/qimen/TaobaoQimenInventoryQueryAPIResponse.go new file mode 100644 index 0000000000..e9985fa5ef --- /dev/null +++ b/model/qimen/TaobaoQimenInventoryQueryAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +库存查询接口(多商品) API返回值 +taobao.qimen.inventory.query + +ERP调用奇门的接口,查询商品的库存量 +*/ +type TaobaoQimenInventoryQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenInventoryQueryAPIResponseModel +} + +// 库存查询接口(多商品) 成功返回结果 +type TaobaoQimenInventoryQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_inventory_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *InventoryQueryResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenInventoryQueryResponse.go b/model/qimen/TaobaoQimenInventoryQueryResponse.go deleted file mode 100644 index e266a1a09d..0000000000 --- a/model/qimen/TaobaoQimenInventoryQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -库存查询接口(多商品) API返回值 -taobao.qimen.inventory.query - -ERP调用奇门的接口,查询商品的库存量 -*/ -type TaobaoQimenInventoryQueryAPIResponse struct { - model.CommonResponse - TaobaoQimenInventoryQueryResponse -} - -// 库存查询接口(多商品) 成功返回结果 -type TaobaoQimenInventoryQueryResponse struct { - XMLName xml.Name `xml:"qimen_inventory_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *InventoryQueryResponse `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenInventoryReportAPIRequest.go b/model/qimen/TaobaoQimenInventoryReportAPIRequest.go new file mode 100644 index 0000000000..f25c23a11f --- /dev/null +++ b/model/qimen/TaobaoQimenInventoryReportAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +库存盘点通知接口 API请求 +taobao.qimen.inventory.report + +WMS调用奇门的接口,将库存盘点情况回传ERP +*/ +type TaobaoQimenInventoryReportAPIRequest struct { + model.Params + // + _request *InventoryReportRequest +} + +// 初始化TaobaoQimenInventoryReportAPIRequest对象 +func NewTaobaoQimenInventoryReportRequest() *TaobaoQimenInventoryReportAPIRequest{ + return &TaobaoQimenInventoryReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenInventoryReportAPIRequest) GetApiMethodName() string { + return "taobao.qimen.inventory.report" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenInventoryReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenInventoryReportAPIRequest) SetRequest(_request *InventoryReportRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenInventoryReportAPIRequest) GetRequest() *InventoryReportRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenInventoryReportAPIResponse.go b/model/qimen/TaobaoQimenInventoryReportAPIResponse.go new file mode 100644 index 0000000000..3499cba070 --- /dev/null +++ b/model/qimen/TaobaoQimenInventoryReportAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +库存盘点通知接口 API返回值 +taobao.qimen.inventory.report + +WMS调用奇门的接口,将库存盘点情况回传ERP +*/ +type TaobaoQimenInventoryReportAPIResponse struct { + model.CommonResponse + TaobaoQimenInventoryReportAPIResponseModel +} + +// 库存盘点通知接口 成功返回结果 +type TaobaoQimenInventoryReportAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_inventory_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenInventoryReportResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenInventorybatchQueryAPIRequest.go b/model/qimen/TaobaoQimenInventorybatchQueryAPIRequest.go new file mode 100644 index 0000000000..94760678ee --- /dev/null +++ b/model/qimen/TaobaoQimenInventorybatchQueryAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品单仓批次库存查询接口 API请求 +taobao.qimen.inventorybatch.query + +ERP 通过该接口查询指定商品的单仓批次库存 +*/ +type TaobaoQimenInventorybatchQueryAPIRequest struct { + model.Params + // request + _request *TaobaoQimenInventorybatchQueryRequest +} + +// 初始化TaobaoQimenInventorybatchQueryAPIRequest对象 +func NewTaobaoQimenInventorybatchQueryRequest() *TaobaoQimenInventorybatchQueryAPIRequest{ + return &TaobaoQimenInventorybatchQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenInventorybatchQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.inventorybatch.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenInventorybatchQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// request +func (r *TaobaoQimenInventorybatchQueryAPIRequest) SetRequest(_request *TaobaoQimenInventorybatchQueryRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenInventorybatchQueryAPIRequest) GetRequest() *TaobaoQimenInventorybatchQueryRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenInventorybatchQueryAPIResponse.go b/model/qimen/TaobaoQimenInventorybatchQueryAPIResponse.go new file mode 100644 index 0000000000..0db2e0e268 --- /dev/null +++ b/model/qimen/TaobaoQimenInventorybatchQueryAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品单仓批次库存查询接口 API返回值 +taobao.qimen.inventorybatch.query + +ERP 通过该接口查询指定商品的单仓批次库存 +*/ +type TaobaoQimenInventorybatchQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenInventorybatchQueryAPIResponseModel +} + +// 商品单仓批次库存查询接口 成功返回结果 +type TaobaoQimenInventorybatchQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_inventorybatch_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应 + Response *TaobaoQimenInventorybatchQueryResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenInventoryreserveCancelAPIRequest.go b/model/qimen/TaobaoQimenInventoryreserveCancelAPIRequest.go new file mode 100644 index 0000000000..cf34ddc239 --- /dev/null +++ b/model/qimen/TaobaoQimenInventoryreserveCancelAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +库存预占取消接口 API请求 +taobao.qimen.inventoryreserve.cancel + +库存预占取消 +*/ +type TaobaoQimenInventoryreserveCancelAPIRequest struct { + model.Params + // + _request *TaobaoQimenInventoryreserveCancelRequest +} + +// 初始化TaobaoQimenInventoryreserveCancelAPIRequest对象 +func NewTaobaoQimenInventoryreserveCancelRequest() *TaobaoQimenInventoryreserveCancelAPIRequest{ + return &TaobaoQimenInventoryreserveCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenInventoryreserveCancelAPIRequest) GetApiMethodName() string { + return "taobao.qimen.inventoryreserve.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenInventoryreserveCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenInventoryreserveCancelAPIRequest) SetRequest(_request *TaobaoQimenInventoryreserveCancelRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenInventoryreserveCancelAPIRequest) GetRequest() *TaobaoQimenInventoryreserveCancelRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenInventoryreserveCancelAPIResponse.go b/model/qimen/TaobaoQimenInventoryreserveCancelAPIResponse.go new file mode 100644 index 0000000000..20e0685809 --- /dev/null +++ b/model/qimen/TaobaoQimenInventoryreserveCancelAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +库存预占取消接口 API返回值 +taobao.qimen.inventoryreserve.cancel + +库存预占取消 +*/ +type TaobaoQimenInventoryreserveCancelAPIResponse struct { + model.CommonResponse + TaobaoQimenInventoryreserveCancelAPIResponseModel +} + +// 库存预占取消接口 成功返回结果 +type TaobaoQimenInventoryreserveCancelAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_inventoryreserve_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenInventoryreserveCancelResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenInventoryruleCreateAPIRequest.go b/model/qimen/TaobaoQimenInventoryruleCreateAPIRequest.go new file mode 100644 index 0000000000..da9e37f3ed --- /dev/null +++ b/model/qimen/TaobaoQimenInventoryruleCreateAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道间库存规则设置接口 API请求 +taobao.qimen.inventoryrule.create + +渠道间库存规则设置 +*/ +type TaobaoQimenInventoryruleCreateAPIRequest struct { + model.Params + // + _request *RequestDo +} + +// 初始化TaobaoQimenInventoryruleCreateAPIRequest对象 +func NewTaobaoQimenInventoryruleCreateRequest() *TaobaoQimenInventoryruleCreateAPIRequest{ + return &TaobaoQimenInventoryruleCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenInventoryruleCreateAPIRequest) GetApiMethodName() string { + return "taobao.qimen.inventoryrule.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenInventoryruleCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenInventoryruleCreateAPIRequest) SetRequest(_request *RequestDo) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenInventoryruleCreateAPIRequest) GetRequest() *RequestDo { + return r._request +} diff --git a/model/qimen/TaobaoQimenInventoryruleCreateAPIResponse.go b/model/qimen/TaobaoQimenInventoryruleCreateAPIResponse.go new file mode 100644 index 0000000000..636f353408 --- /dev/null +++ b/model/qimen/TaobaoQimenInventoryruleCreateAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道间库存规则设置接口 API返回值 +taobao.qimen.inventoryrule.create + +渠道间库存规则设置 +*/ +type TaobaoQimenInventoryruleCreateAPIResponse struct { + model.CommonResponse + TaobaoQimenInventoryruleCreateAPIResponseModel +} + +// 渠道间库存规则设置接口 成功返回结果 +type TaobaoQimenInventoryruleCreateAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_inventoryrule_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *ResponseDo `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenInventoryruleCreateResponse.go b/model/qimen/TaobaoQimenInventoryruleCreateResponse.go deleted file mode 100644 index 0ea7ca2429..0000000000 --- a/model/qimen/TaobaoQimenInventoryruleCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -渠道间库存规则设置接口 API返回值 -taobao.qimen.inventoryrule.create - -渠道间库存规则设置 -*/ -type TaobaoQimenInventoryruleCreateAPIResponse struct { - model.CommonResponse - TaobaoQimenInventoryruleCreateResponse -} - -// 渠道间库存规则设置接口 成功返回结果 -type TaobaoQimenInventoryruleCreateResponse struct { - XMLName xml.Name `xml:"qimen_inventoryrule_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *ResponseDo `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenItemlackReportAPIRequest.go b/model/qimen/TaobaoQimenItemlackReportAPIRequest.go new file mode 100644 index 0000000000..86a61dbfc0 --- /dev/null +++ b/model/qimen/TaobaoQimenItemlackReportAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发货单缺货通知接口 API请求 +taobao.qimen.itemlack.report + +WMS调用奇门的接口,将商家在库某商品缺货的信息回传给ERP +*/ +type TaobaoQimenItemlackReportAPIRequest struct { + model.Params + // + _request *ItemLackReportRequest +} + +// 初始化TaobaoQimenItemlackReportAPIRequest对象 +func NewTaobaoQimenItemlackReportRequest() *TaobaoQimenItemlackReportAPIRequest{ + return &TaobaoQimenItemlackReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenItemlackReportAPIRequest) GetApiMethodName() string { + return "taobao.qimen.itemlack.report" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenItemlackReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenItemlackReportAPIRequest) SetRequest(_request *ItemLackReportRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenItemlackReportAPIRequest) GetRequest() *ItemLackReportRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenItemlackReportAPIResponse.go b/model/qimen/TaobaoQimenItemlackReportAPIResponse.go new file mode 100644 index 0000000000..0b93d87b4b --- /dev/null +++ b/model/qimen/TaobaoQimenItemlackReportAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发货单缺货通知接口 API返回值 +taobao.qimen.itemlack.report + +WMS调用奇门的接口,将商家在库某商品缺货的信息回传给ERP +*/ +type TaobaoQimenItemlackReportAPIResponse struct { + model.CommonResponse + TaobaoQimenItemlackReportAPIResponseModel +} + +// 发货单缺货通知接口 成功返回结果 +type TaobaoQimenItemlackReportAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_itemlack_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenItemlackReportResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenItemmappingCreateAPIRequest.go b/model/qimen/TaobaoQimenItemmappingCreateAPIRequest.go new file mode 100644 index 0000000000..f39aa4e75e --- /dev/null +++ b/model/qimen/TaobaoQimenItemmappingCreateAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +前后端商品映射接口 API请求 +taobao.qimen.itemmapping.create + +前后端商品映射 +*/ +type TaobaoQimenItemmappingCreateAPIRequest struct { + model.Params + // + _request *RequestDo +} + +// 初始化TaobaoQimenItemmappingCreateAPIRequest对象 +func NewTaobaoQimenItemmappingCreateRequest() *TaobaoQimenItemmappingCreateAPIRequest{ + return &TaobaoQimenItemmappingCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenItemmappingCreateAPIRequest) GetApiMethodName() string { + return "taobao.qimen.itemmapping.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenItemmappingCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenItemmappingCreateAPIRequest) SetRequest(_request *RequestDo) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenItemmappingCreateAPIRequest) GetRequest() *RequestDo { + return r._request +} diff --git a/model/qimen/TaobaoQimenItemmappingCreateAPIResponse.go b/model/qimen/TaobaoQimenItemmappingCreateAPIResponse.go new file mode 100644 index 0000000000..06599ce1fa --- /dev/null +++ b/model/qimen/TaobaoQimenItemmappingCreateAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +前后端商品映射接口 API返回值 +taobao.qimen.itemmapping.create + +前后端商品映射 +*/ +type TaobaoQimenItemmappingCreateAPIResponse struct { + model.CommonResponse + TaobaoQimenItemmappingCreateAPIResponseModel +} + +// 前后端商品映射接口 成功返回结果 +type TaobaoQimenItemmappingCreateAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_itemmapping_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *ResponseDo `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenItemmappingCreateResponse.go b/model/qimen/TaobaoQimenItemmappingCreateResponse.go deleted file mode 100644 index 1ad7240c1e..0000000000 --- a/model/qimen/TaobaoQimenItemmappingCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -前后端商品映射接口 API返回值 -taobao.qimen.itemmapping.create - -前后端商品映射 -*/ -type TaobaoQimenItemmappingCreateAPIResponse struct { - model.CommonResponse - TaobaoQimenItemmappingCreateResponse -} - -// 前后端商品映射接口 成功返回结果 -type TaobaoQimenItemmappingCreateResponse struct { - XMLName xml.Name `xml:"qimen_itemmapping_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *ResponseDo `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenItemmappingQueryAPIRequest.go b/model/qimen/TaobaoQimenItemmappingQueryAPIRequest.go new file mode 100644 index 0000000000..1f10a805d9 --- /dev/null +++ b/model/qimen/TaobaoQimenItemmappingQueryAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +前后端商品映射查询接口 API请求 +taobao.qimen.itemmapping.query + +前后端商品映射查询接口 +*/ +type TaobaoQimenItemmappingQueryAPIRequest struct { + model.Params + // + _request *TaobaoQimenItemmappingQueryRequest +} + +// 初始化TaobaoQimenItemmappingQueryAPIRequest对象 +func NewTaobaoQimenItemmappingQueryRequest() *TaobaoQimenItemmappingQueryAPIRequest{ + return &TaobaoQimenItemmappingQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenItemmappingQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.itemmapping.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenItemmappingQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenItemmappingQueryAPIRequest) SetRequest(_request *TaobaoQimenItemmappingQueryRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenItemmappingQueryAPIRequest) GetRequest() *TaobaoQimenItemmappingQueryRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenItemmappingQueryAPIResponse.go b/model/qimen/TaobaoQimenItemmappingQueryAPIResponse.go new file mode 100644 index 0000000000..43c33d3a39 --- /dev/null +++ b/model/qimen/TaobaoQimenItemmappingQueryAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +前后端商品映射查询接口 API返回值 +taobao.qimen.itemmapping.query + +前后端商品映射查询接口 +*/ +type TaobaoQimenItemmappingQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenItemmappingQueryAPIResponseModel +} + +// 前后端商品映射查询接口 成功返回结果 +type TaobaoQimenItemmappingQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_itemmapping_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenItemmappingQueryResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenItemsSynchronizeAPIRequest.go b/model/qimen/TaobaoQimenItemsSynchronizeAPIRequest.go new file mode 100644 index 0000000000..1fca6e5862 --- /dev/null +++ b/model/qimen/TaobaoQimenItemsSynchronizeAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品同步接口 (批量) API请求 +taobao.qimen.items.synchronize + +ERP调用奇门的接口,批量同步商品信息给WMS +*/ +type TaobaoQimenItemsSynchronizeAPIRequest struct { + model.Params + // + _request *ItemsSynchronizeRequest +} + +// 初始化TaobaoQimenItemsSynchronizeAPIRequest对象 +func NewTaobaoQimenItemsSynchronizeRequest() *TaobaoQimenItemsSynchronizeAPIRequest{ + return &TaobaoQimenItemsSynchronizeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenItemsSynchronizeAPIRequest) GetApiMethodName() string { + return "taobao.qimen.items.synchronize" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenItemsSynchronizeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenItemsSynchronizeAPIRequest) SetRequest(_request *ItemsSynchronizeRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenItemsSynchronizeAPIRequest) GetRequest() *ItemsSynchronizeRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenItemsSynchronizeAPIResponse.go b/model/qimen/TaobaoQimenItemsSynchronizeAPIResponse.go new file mode 100644 index 0000000000..f09508e15e --- /dev/null +++ b/model/qimen/TaobaoQimenItemsSynchronizeAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品同步接口 (批量) API返回值 +taobao.qimen.items.synchronize + +ERP调用奇门的接口,批量同步商品信息给WMS +*/ +type TaobaoQimenItemsSynchronizeAPIResponse struct { + model.CommonResponse + TaobaoQimenItemsSynchronizeAPIResponseModel +} + +// 商品同步接口 (批量) 成功返回结果 +type TaobaoQimenItemsSynchronizeAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_items_synchronize_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *ItemsSynchronizeResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenItemsSynchronizeResponse.go b/model/qimen/TaobaoQimenItemsSynchronizeResponse.go deleted file mode 100644 index d0a7da3d2f..0000000000 --- a/model/qimen/TaobaoQimenItemsSynchronizeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品同步接口 (批量) API返回值 -taobao.qimen.items.synchronize - -ERP调用奇门的接口,批量同步商品信息给WMS -*/ -type TaobaoQimenItemsSynchronizeAPIResponse struct { - model.CommonResponse - TaobaoQimenItemsSynchronizeResponse -} - -// 商品同步接口 (批量) 成功返回结果 -type TaobaoQimenItemsSynchronizeResponse struct { - XMLName xml.Name `xml:"qimen_items_synchronize_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *ItemsSynchronizeResponse `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenItemstoreBandingAPIRequest.go b/model/qimen/TaobaoQimenItemstoreBandingAPIRequest.go new file mode 100644 index 0000000000..38448e5fb6 --- /dev/null +++ b/model/qimen/TaobaoQimenItemstoreBandingAPIRequest.go @@ -0,0 +1,94 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品关联绑定接口 API请求 +taobao.qimen.itemstore.banding + +商家在ERP等系统中调用该接口,将线上商品和线下门店“新建/删除”关联。这里的线上。每次只能单个商品关联多个门店,门店上限200 +*/ +type TaobaoQimenItemstoreBandingAPIRequest struct { + model.Params + // 门店列表 + _storeIds []int64 + // 备注信息 + _remark string + // 操作类型 + _actionType string + // 线上商品ID + _itemId int64 +} + +// 初始化TaobaoQimenItemstoreBandingAPIRequest对象 +func NewTaobaoQimenItemstoreBandingRequest() *TaobaoQimenItemstoreBandingAPIRequest{ + return &TaobaoQimenItemstoreBandingAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenItemstoreBandingAPIRequest) GetApiMethodName() string { + return "taobao.qimen.itemstore.banding" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenItemstoreBandingAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreIds Setter +// 门店列表 +func (r *TaobaoQimenItemstoreBandingAPIRequest) SetStoreIds(_storeIds []int64) error { + r._storeIds = _storeIds + r.Set("store_ids", _storeIds) + return nil +} + +// StoreIds Getter +func (r TaobaoQimenItemstoreBandingAPIRequest) GetStoreIds() []int64 { + return r._storeIds +} +// Remark Setter +// 备注信息 +func (r *TaobaoQimenItemstoreBandingAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r TaobaoQimenItemstoreBandingAPIRequest) GetRemark() string { + return r._remark +} +// ActionType Setter +// 操作类型 +func (r *TaobaoQimenItemstoreBandingAPIRequest) SetActionType(_actionType string) error { + r._actionType = _actionType + r.Set("action_type", _actionType) + return nil +} + +// ActionType Getter +func (r TaobaoQimenItemstoreBandingAPIRequest) GetActionType() string { + return r._actionType +} +// ItemId Setter +// 线上商品ID +func (r *TaobaoQimenItemstoreBandingAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoQimenItemstoreBandingAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/qimen/TaobaoQimenItemstoreBandingAPIResponse.go b/model/qimen/TaobaoQimenItemstoreBandingAPIResponse.go new file mode 100644 index 0000000000..29b3390acc --- /dev/null +++ b/model/qimen/TaobaoQimenItemstoreBandingAPIResponse.go @@ -0,0 +1,31 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品关联绑定接口 API返回值 +taobao.qimen.itemstore.banding + +商家在ERP等系统中调用该接口,将线上商品和线下门店“新建/删除”关联。这里的线上。每次只能单个商品关联多个门店,门店上限200 +*/ +type TaobaoQimenItemstoreBandingAPIResponse struct { + model.CommonResponse + TaobaoQimenItemstoreBandingAPIResponseModel +} + +// 商品关联绑定接口 成功返回结果 +type TaobaoQimenItemstoreBandingAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_itemstore_banding_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 响应描述 + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // 响应编码 + QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` +} diff --git a/model/qimen/TaobaoQimenItemstoreBandingResponse.go b/model/qimen/TaobaoQimenItemstoreBandingResponse.go deleted file mode 100644 index 44f179a36f..0000000000 --- a/model/qimen/TaobaoQimenItemstoreBandingResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品关联绑定接口 API返回值 -taobao.qimen.itemstore.banding - -商家在ERP等系统中调用该接口,将线上商品和线下门店“新建/删除”关联。这里的线上。每次只能单个商品关联多个门店,门店上限200 -*/ -type TaobaoQimenItemstoreBandingAPIResponse struct { - model.CommonResponse - TaobaoQimenItemstoreBandingResponse -} - -// 商品关联绑定接口 成功返回结果 -type TaobaoQimenItemstoreBandingResponse struct { - XMLName xml.Name `xml:"qimen_itemstore_banding_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 响应描述 - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // 响应编码 - QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` -} diff --git a/model/qimen/TaobaoQimenItemstoreQueryAPIRequest.go b/model/qimen/TaobaoQimenItemstoreQueryAPIRequest.go new file mode 100644 index 0000000000..8141398ece --- /dev/null +++ b/model/qimen/TaobaoQimenItemstoreQueryAPIRequest.go @@ -0,0 +1,66 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品关联门店查询接口 API请求 +taobao.qimen.itemstore.query + +商家在ERP等系统中调用该接口,查询线上商品所关联的门店列表 +*/ +type TaobaoQimenItemstoreQueryAPIRequest struct { + model.Params + // 当前查询的页面编码 + _page int64 + // 线上商品ID + _itemId int64 +} + +// 初始化TaobaoQimenItemstoreQueryAPIRequest对象 +func NewTaobaoQimenItemstoreQueryRequest() *TaobaoQimenItemstoreQueryAPIRequest{ + return &TaobaoQimenItemstoreQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenItemstoreQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.itemstore.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenItemstoreQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Page Setter +// 当前查询的页面编码 +func (r *TaobaoQimenItemstoreQueryAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r TaobaoQimenItemstoreQueryAPIRequest) GetPage() int64 { + return r._page +} +// ItemId Setter +// 线上商品ID +func (r *TaobaoQimenItemstoreQueryAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoQimenItemstoreQueryAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/qimen/TaobaoQimenItemstoreQueryAPIResponse.go b/model/qimen/TaobaoQimenItemstoreQueryAPIResponse.go new file mode 100644 index 0000000000..6b44864235 --- /dev/null +++ b/model/qimen/TaobaoQimenItemstoreQueryAPIResponse.go @@ -0,0 +1,35 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品关联门店查询接口 API返回值 +taobao.qimen.itemstore.query + +商家在ERP等系统中调用该接口,查询线上商品所关联的门店列表 +*/ +type TaobaoQimenItemstoreQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenItemstoreQueryAPIResponseModel +} + +// 商品关联门店查询接口 成功返回结果 +type TaobaoQimenItemstoreQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_itemstore_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 门店列表 + StoreIds []int64 `json:"store_ids,omitempty" xml:"store_ids>int64,omitempty"` + // 响应的标签 + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // 总的门店数 + TotalLines int64 `json:"total_lines,omitempty" xml:"total_lines,omitempty"` + // 响应的code + QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` +} diff --git a/model/qimen/TaobaoQimenItemstoreQueryResponse.go b/model/qimen/TaobaoQimenItemstoreQueryResponse.go deleted file mode 100644 index 895f3d3e20..0000000000 --- a/model/qimen/TaobaoQimenItemstoreQueryResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品关联门店查询接口 API返回值 -taobao.qimen.itemstore.query - -商家在ERP等系统中调用该接口,查询线上商品所关联的门店列表 -*/ -type TaobaoQimenItemstoreQueryAPIResponse struct { - model.CommonResponse - TaobaoQimenItemstoreQueryResponse -} - -// 商品关联门店查询接口 成功返回结果 -type TaobaoQimenItemstoreQueryResponse struct { - XMLName xml.Name `xml:"qimen_itemstore_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 门店列表 - StoreIds []int64 `json:"store_ids,omitempty" xml:"store_ids>int64,omitempty"` - // 响应的标签 - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // 总的门店数 - TotalLines int64 `json:"total_lines,omitempty" xml:"total_lines,omitempty"` - // 响应的code - QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` -} diff --git a/model/qimen/TaobaoQimenOrderCallbackAPIRequest.go b/model/qimen/TaobaoQimenOrderCallbackAPIRequest.go new file mode 100644 index 0000000000..1c0a2af001 --- /dev/null +++ b/model/qimen/TaobaoQimenOrderCallbackAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +配送拦截接口 API请求 +taobao.qimen.order.callback + +配送拦截 +*/ +type TaobaoQimenOrderCallbackAPIRequest struct { + model.Params + // + _request *OrderCallbackRequestDo +} + +// 初始化TaobaoQimenOrderCallbackAPIRequest对象 +func NewTaobaoQimenOrderCallbackRequest() *TaobaoQimenOrderCallbackAPIRequest{ + return &TaobaoQimenOrderCallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenOrderCallbackAPIRequest) GetApiMethodName() string { + return "taobao.qimen.order.callback" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenOrderCallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenOrderCallbackAPIRequest) SetRequest(_request *OrderCallbackRequestDo) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenOrderCallbackAPIRequest) GetRequest() *OrderCallbackRequestDo { + return r._request +} diff --git a/model/qimen/TaobaoQimenOrderCallbackAPIResponse.go b/model/qimen/TaobaoQimenOrderCallbackAPIResponse.go new file mode 100644 index 0000000000..92d39d8d2c --- /dev/null +++ b/model/qimen/TaobaoQimenOrderCallbackAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +配送拦截接口 API返回值 +taobao.qimen.order.callback + +配送拦截 +*/ +type TaobaoQimenOrderCallbackAPIResponse struct { + model.CommonResponse + TaobaoQimenOrderCallbackAPIResponseModel +} + +// 配送拦截接口 成功返回结果 +type TaobaoQimenOrderCallbackAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_order_callback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *OrderCallbackResponseDo `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenOrderCallbackResponse.go b/model/qimen/TaobaoQimenOrderCallbackResponse.go deleted file mode 100644 index 81fc56b8ed..0000000000 --- a/model/qimen/TaobaoQimenOrderCallbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -配送拦截接口 API返回值 -taobao.qimen.order.callback - -配送拦截 -*/ -type TaobaoQimenOrderCallbackAPIResponse struct { - model.CommonResponse - TaobaoQimenOrderCallbackResponse -} - -// 配送拦截接口 成功返回结果 -type TaobaoQimenOrderCallbackResponse struct { - XMLName xml.Name `xml:"qimen_order_callback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *OrderCallbackResponseDo `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenOrderCancelAPIRequest.go b/model/qimen/TaobaoQimenOrderCancelAPIRequest.go new file mode 100644 index 0000000000..89438f0127 --- /dev/null +++ b/model/qimen/TaobaoQimenOrderCancelAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单据取消接口 API请求 +taobao.qimen.order.cancel + +ERP调用奇门的接口,取消创建单据操作。场景介绍:ERP主动发起取消某些创建的单据。如入库单、出库单、退货单等;所有的场景 +*/ +type TaobaoQimenOrderCancelAPIRequest struct { + model.Params + // + _request *OrderCancelRequest +} + +// 初始化TaobaoQimenOrderCancelAPIRequest对象 +func NewTaobaoQimenOrderCancelRequest() *TaobaoQimenOrderCancelAPIRequest{ + return &TaobaoQimenOrderCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenOrderCancelAPIRequest) GetApiMethodName() string { + return "taobao.qimen.order.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenOrderCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenOrderCancelAPIRequest) SetRequest(_request *OrderCancelRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenOrderCancelAPIRequest) GetRequest() *OrderCancelRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenOrderCancelAPIResponse.go b/model/qimen/TaobaoQimenOrderCancelAPIResponse.go new file mode 100644 index 0000000000..55cc501508 --- /dev/null +++ b/model/qimen/TaobaoQimenOrderCancelAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单据取消接口 API返回值 +taobao.qimen.order.cancel + +ERP调用奇门的接口,取消创建单据操作。场景介绍:ERP主动发起取消某些创建的单据。如入库单、出库单、退货单等;所有的场景 +*/ +type TaobaoQimenOrderCancelAPIResponse struct { + model.CommonResponse + TaobaoQimenOrderCancelAPIResponseModel +} + +// 单据取消接口 成功返回结果 +type TaobaoQimenOrderCancelAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_order_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *OrderCancelResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenOrderCancelResponse.go b/model/qimen/TaobaoQimenOrderCancelResponse.go deleted file mode 100644 index d4bda9725d..0000000000 --- a/model/qimen/TaobaoQimenOrderCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单据取消接口 API返回值 -taobao.qimen.order.cancel - -ERP调用奇门的接口,取消创建单据操作。场景介绍:ERP主动发起取消某些创建的单据。如入库单、出库单、退货单等;所有的场景 -*/ -type TaobaoQimenOrderCancelAPIResponse struct { - model.CommonResponse - TaobaoQimenOrderCancelResponse -} - -// 单据取消接口 成功返回结果 -type TaobaoQimenOrderCancelResponse struct { - XMLName xml.Name `xml:"qimen_order_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *OrderCancelResponse `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenOrderPendingAPIRequest.go b/model/qimen/TaobaoQimenOrderPendingAPIRequest.go new file mode 100644 index 0000000000..eb16540374 --- /dev/null +++ b/model/qimen/TaobaoQimenOrderPendingAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单据挂起(恢复)接口 API请求 +taobao.qimen.order.pending + +ERP调用奇门的接口,挂起某些创建的单据;场景介绍:ERP主动发起挂起(恢复)某些创建的单据,如入库单、出库单、退货单等 +*/ +type TaobaoQimenOrderPendingAPIRequest struct { + model.Params + // + _request *OrderPendingRequest +} + +// 初始化TaobaoQimenOrderPendingAPIRequest对象 +func NewTaobaoQimenOrderPendingRequest() *TaobaoQimenOrderPendingAPIRequest{ + return &TaobaoQimenOrderPendingAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenOrderPendingAPIRequest) GetApiMethodName() string { + return "taobao.qimen.order.pending" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenOrderPendingAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenOrderPendingAPIRequest) SetRequest(_request *OrderPendingRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenOrderPendingAPIRequest) GetRequest() *OrderPendingRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenOrderPendingAPIResponse.go b/model/qimen/TaobaoQimenOrderPendingAPIResponse.go new file mode 100644 index 0000000000..d0fc218ec5 --- /dev/null +++ b/model/qimen/TaobaoQimenOrderPendingAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单据挂起(恢复)接口 API返回值 +taobao.qimen.order.pending + +ERP调用奇门的接口,挂起某些创建的单据;场景介绍:ERP主动发起挂起(恢复)某些创建的单据,如入库单、出库单、退货单等 +*/ +type TaobaoQimenOrderPendingAPIResponse struct { + model.CommonResponse + TaobaoQimenOrderPendingAPIResponseModel +} + +// 单据挂起(恢复)接口 成功返回结果 +type TaobaoQimenOrderPendingAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_order_pending_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *OrderPendingResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenOrderPendingResponse.go b/model/qimen/TaobaoQimenOrderPendingResponse.go deleted file mode 100644 index b6cf2868c5..0000000000 --- a/model/qimen/TaobaoQimenOrderPendingResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单据挂起(恢复)接口 API返回值 -taobao.qimen.order.pending - -ERP调用奇门的接口,挂起某些创建的单据;场景介绍:ERP主动发起挂起(恢复)某些创建的单据,如入库单、出库单、退货单等 -*/ -type TaobaoQimenOrderPendingAPIResponse struct { - model.CommonResponse - TaobaoQimenOrderPendingResponse -} - -// 单据挂起(恢复)接口 成功返回结果 -type TaobaoQimenOrderPendingResponse struct { - XMLName xml.Name `xml:"qimen_order_pending_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *OrderPendingResponse `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenOrderQueryAPIRequest.go b/model/qimen/TaobaoQimenOrderQueryAPIRequest.go new file mode 100644 index 0000000000..1ddebde699 --- /dev/null +++ b/model/qimen/TaobaoQimenOrderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据收件人信息查询交易单号接口 API请求 +taobao.qimen.order.query + +WMS 调用该接口,根据收件人信息查询平台交易订单号。 +*/ +type TaobaoQimenOrderQueryAPIRequest struct { + model.Params + // request + _request *TaobaoQimenOrderQueryRequest +} + +// 初始化TaobaoQimenOrderQueryAPIRequest对象 +func NewTaobaoQimenOrderQueryRequest() *TaobaoQimenOrderQueryAPIRequest{ + return &TaobaoQimenOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenOrderQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// request +func (r *TaobaoQimenOrderQueryAPIRequest) SetRequest(_request *TaobaoQimenOrderQueryRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenOrderQueryAPIRequest) GetRequest() *TaobaoQimenOrderQueryRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenOrderQueryAPIResponse.go b/model/qimen/TaobaoQimenOrderQueryAPIResponse.go new file mode 100644 index 0000000000..8bc073ff1a --- /dev/null +++ b/model/qimen/TaobaoQimenOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据收件人信息查询交易单号接口 API返回值 +taobao.qimen.order.query + +WMS 调用该接口,根据收件人信息查询平台交易订单号。 +*/ +type TaobaoQimenOrderQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenOrderQueryAPIResponseModel +} + +// 根据收件人信息查询交易单号接口 成功返回结果 +type TaobaoQimenOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应 + Response *TaobaoQimenOrderQueryResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenOrderSnReportAPIRequest.go b/model/qimen/TaobaoQimenOrderSnReportAPIRequest.go new file mode 100644 index 0000000000..8b3bf857ee --- /dev/null +++ b/model/qimen/TaobaoQimenOrderSnReportAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单SN通知接口 API请求 +taobao.qimen.order.sn.report + +WMS调用奇门的接口,在出库、发货、入库等场景下,ERP和WMS之间同步操作的SN列表 +*/ +type TaobaoQimenOrderSnReportAPIRequest struct { + model.Params + // + _request *TaobaoQimenOrderSnReportRequest +} + +// 初始化TaobaoQimenOrderSnReportAPIRequest对象 +func NewTaobaoQimenOrderSnReportRequest() *TaobaoQimenOrderSnReportAPIRequest{ + return &TaobaoQimenOrderSnReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenOrderSnReportAPIRequest) GetApiMethodName() string { + return "taobao.qimen.order.sn.report" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenOrderSnReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenOrderSnReportAPIRequest) SetRequest(_request *TaobaoQimenOrderSnReportRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenOrderSnReportAPIRequest) GetRequest() *TaobaoQimenOrderSnReportRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenOrderSnReportAPIResponse.go b/model/qimen/TaobaoQimenOrderSnReportAPIResponse.go new file mode 100644 index 0000000000..cbafc939ce --- /dev/null +++ b/model/qimen/TaobaoQimenOrderSnReportAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单SN通知接口 API返回值 +taobao.qimen.order.sn.report + +WMS调用奇门的接口,在出库、发货、入库等场景下,ERP和WMS之间同步操作的SN列表 +*/ +type TaobaoQimenOrderSnReportAPIResponse struct { + model.CommonResponse + TaobaoQimenOrderSnReportAPIResponseModel +} + +// 订单SN通知接口 成功返回结果 +type TaobaoQimenOrderSnReportAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_order_sn_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenOrderSnReportResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenOrderexceptionReportAPIRequest.go b/model/qimen/TaobaoQimenOrderexceptionReportAPIRequest.go new file mode 100644 index 0000000000..0b57dc19f0 --- /dev/null +++ b/model/qimen/TaobaoQimenOrderexceptionReportAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单异常通知接口 API请求 +taobao.qimen.orderexception.report + +WMS调用奇门的接口,当WMS接收到ERP的发货指令时,由于种种原因(5.1.5说明了各种异常场景)可能无法完成发货。WMS通过调用此接口,通知ERP具体异常情况 +*/ +type TaobaoQimenOrderexceptionReportAPIRequest struct { + model.Params + // + _request *TaobaoQimenOrderexceptionReportRequest +} + +// 初始化TaobaoQimenOrderexceptionReportAPIRequest对象 +func NewTaobaoQimenOrderexceptionReportRequest() *TaobaoQimenOrderexceptionReportAPIRequest{ + return &TaobaoQimenOrderexceptionReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenOrderexceptionReportAPIRequest) GetApiMethodName() string { + return "taobao.qimen.orderexception.report" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenOrderexceptionReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenOrderexceptionReportAPIRequest) SetRequest(_request *TaobaoQimenOrderexceptionReportRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenOrderexceptionReportAPIRequest) GetRequest() *TaobaoQimenOrderexceptionReportRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenOrderexceptionReportAPIResponse.go b/model/qimen/TaobaoQimenOrderexceptionReportAPIResponse.go new file mode 100644 index 0000000000..06a6e85d9f --- /dev/null +++ b/model/qimen/TaobaoQimenOrderexceptionReportAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单异常通知接口 API返回值 +taobao.qimen.orderexception.report + +WMS调用奇门的接口,当WMS接收到ERP的发货指令时,由于种种原因(5.1.5说明了各种异常场景)可能无法完成发货。WMS通过调用此接口,通知ERP具体异常情况 +*/ +type TaobaoQimenOrderexceptionReportAPIResponse struct { + model.CommonResponse + TaobaoQimenOrderexceptionReportAPIResponseModel +} + +// 订单异常通知接口 成功返回结果 +type TaobaoQimenOrderexceptionReportAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_orderexception_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenOrderexceptionReportResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenOrderexceptionReportBatch.go b/model/qimen/TaobaoQimenOrderexceptionReportBatch.go new file mode 100644 index 0000000000..d04a91821c --- /dev/null +++ b/model/qimen/TaobaoQimenOrderexceptionReportBatch.go @@ -0,0 +1,19 @@ +package qimen + +// TaobaoQimenOrderexceptionReportBatch +type TaobaoQimenOrderexceptionReportBatch struct { + // 奇门仓储字段 + BatchCode string `json:"batchCode,omitempty" xml:"batchCode,omitempty"` + // 奇门仓储字段 + ProductDate string `json:"productDate,omitempty" xml:"productDate,omitempty"` + // 奇门仓储字段 + ExpireDate string `json:"expireDate,omitempty" xml:"expireDate,omitempty"` + // 奇门仓储字段 + ProduceCode string `json:"produceCode,omitempty" xml:"produceCode,omitempty"` + // 奇门仓储字段 + InventoryType string `json:"inventoryType,omitempty" xml:"inventoryType,omitempty"` + // 奇门仓储字段 + ActualQty string `json:"actualQty,omitempty" xml:"actualQty,omitempty"` + // 奇门仓储字段 + Quantity string `json:"quantity,omitempty" xml:"quantity,omitempty"` +} diff --git a/model/qimen/TaobaoQimenOrderprocessQueryAPIRequest.go b/model/qimen/TaobaoQimenOrderprocessQueryAPIRequest.go new file mode 100644 index 0000000000..c8a12a1dad --- /dev/null +++ b/model/qimen/TaobaoQimenOrderprocessQueryAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单流水查询接口 API请求 +taobao.qimen.orderprocess.query + +ERP调用订单流水查询接口 +*/ +type TaobaoQimenOrderprocessQueryAPIRequest struct { + model.Params + // + _request *OrderProcessQueryRequest +} + +// 初始化TaobaoQimenOrderprocessQueryAPIRequest对象 +func NewTaobaoQimenOrderprocessQueryRequest() *TaobaoQimenOrderprocessQueryAPIRequest{ + return &TaobaoQimenOrderprocessQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenOrderprocessQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.orderprocess.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenOrderprocessQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenOrderprocessQueryAPIRequest) SetRequest(_request *OrderProcessQueryRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenOrderprocessQueryAPIRequest) GetRequest() *OrderProcessQueryRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenOrderprocessQueryAPIResponse.go b/model/qimen/TaobaoQimenOrderprocessQueryAPIResponse.go new file mode 100644 index 0000000000..e0acf46a1e --- /dev/null +++ b/model/qimen/TaobaoQimenOrderprocessQueryAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单流水查询接口 API返回值 +taobao.qimen.orderprocess.query + +ERP调用订单流水查询接口 +*/ +type TaobaoQimenOrderprocessQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenOrderprocessQueryAPIResponseModel +} + +// 订单流水查询接口 成功返回结果 +type TaobaoQimenOrderprocessQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_orderprocess_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *OrderProcessQueryResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenOrderprocessQueryResponse.go b/model/qimen/TaobaoQimenOrderprocessQueryResponse.go deleted file mode 100644 index d6e6d16f9a..0000000000 --- a/model/qimen/TaobaoQimenOrderprocessQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单流水查询接口 API返回值 -taobao.qimen.orderprocess.query - -ERP调用订单流水查询接口 -*/ -type TaobaoQimenOrderprocessQueryAPIResponse struct { - model.CommonResponse - TaobaoQimenOrderprocessQueryResponse -} - -// 订单流水查询接口 成功返回结果 -type TaobaoQimenOrderprocessQueryResponse struct { - XMLName xml.Name `xml:"qimen_orderprocess_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *OrderProcessQueryResponse `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenOrderprocessReportAPIRequest.go b/model/qimen/TaobaoQimenOrderprocessReportAPIRequest.go new file mode 100644 index 0000000000..613eb1dfcd --- /dev/null +++ b/model/qimen/TaobaoQimenOrderprocessReportAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单流水通知接口 API请求 +taobao.qimen.orderprocess.report + +WMS调用奇门的接口,将订单在仓库的状态回传给ERP;场景说明:仓库仓内操作状态回传给ERP, 比如打包操作完成时, 回传一个打 包完成的状态给到ERP, ERP自行决定如何处理。 +*/ +type TaobaoQimenOrderprocessReportAPIRequest struct { + model.Params + // + _request *OrderProcessReportRequest +} + +// 初始化TaobaoQimenOrderprocessReportAPIRequest对象 +func NewTaobaoQimenOrderprocessReportRequest() *TaobaoQimenOrderprocessReportAPIRequest{ + return &TaobaoQimenOrderprocessReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenOrderprocessReportAPIRequest) GetApiMethodName() string { + return "taobao.qimen.orderprocess.report" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenOrderprocessReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenOrderprocessReportAPIRequest) SetRequest(_request *OrderProcessReportRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenOrderprocessReportAPIRequest) GetRequest() *OrderProcessReportRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenOrderprocessReportAPIResponse.go b/model/qimen/TaobaoQimenOrderprocessReportAPIResponse.go new file mode 100644 index 0000000000..f2c6258eec --- /dev/null +++ b/model/qimen/TaobaoQimenOrderprocessReportAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单流水通知接口 API返回值 +taobao.qimen.orderprocess.report + +WMS调用奇门的接口,将订单在仓库的状态回传给ERP;场景说明:仓库仓内操作状态回传给ERP, 比如打包操作完成时, 回传一个打 包完成的状态给到ERP, ERP自行决定如何处理。 +*/ +type TaobaoQimenOrderprocessReportAPIResponse struct { + model.CommonResponse + TaobaoQimenOrderprocessReportAPIResponseModel +} + +// 订单流水通知接口 成功返回结果 +type TaobaoQimenOrderprocessReportAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_orderprocess_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenOrderprocessReportResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenReceiverinfoQueryAPIRequest.go b/model/qimen/TaobaoQimenReceiverinfoQueryAPIRequest.go new file mode 100644 index 0000000000..11a7e3eb37 --- /dev/null +++ b/model/qimen/TaobaoQimenReceiverinfoQueryAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +OAID 收件人信息解密接口 API请求 +taobao.qimen.receiverinfo.query + +WMS 调用该接口,通过 OAID 查询解密后的收件人信息 +*/ +type TaobaoQimenReceiverinfoQueryAPIRequest struct { + model.Params + // + _request *TaobaoQimenReceiverinfoQueryRequest +} + +// 初始化TaobaoQimenReceiverinfoQueryAPIRequest对象 +func NewTaobaoQimenReceiverinfoQueryRequest() *TaobaoQimenReceiverinfoQueryAPIRequest{ + return &TaobaoQimenReceiverinfoQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenReceiverinfoQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.receiverinfo.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenReceiverinfoQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenReceiverinfoQueryAPIRequest) SetRequest(_request *TaobaoQimenReceiverinfoQueryRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenReceiverinfoQueryAPIRequest) GetRequest() *TaobaoQimenReceiverinfoQueryRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenReceiverinfoQueryAPIResponse.go b/model/qimen/TaobaoQimenReceiverinfoQueryAPIResponse.go new file mode 100644 index 0000000000..20f15290b0 --- /dev/null +++ b/model/qimen/TaobaoQimenReceiverinfoQueryAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +OAID 收件人信息解密接口 API返回值 +taobao.qimen.receiverinfo.query + +WMS 调用该接口,通过 OAID 查询解密后的收件人信息 +*/ +type TaobaoQimenReceiverinfoQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenReceiverinfoQueryAPIResponseModel +} + +// OAID 收件人信息解密接口 成功返回结果 +type TaobaoQimenReceiverinfoQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_receiverinfo_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenReceiverinfoQueryResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenReturnorderConfirmAPIRequest.go b/model/qimen/TaobaoQimenReturnorderConfirmAPIRequest.go new file mode 100644 index 0000000000..f9d3775e5f --- /dev/null +++ b/model/qimen/TaobaoQimenReturnorderConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +退货入库单确认接口 API请求 +taobao.qimen.returnorder.confirm + +taobao.qimen.returnorder.confirm +*/ +type TaobaoQimenReturnorderConfirmAPIRequest struct { + model.Params + // + _request *ReturnOrderConfirmRequest +} + +// 初始化TaobaoQimenReturnorderConfirmAPIRequest对象 +func NewTaobaoQimenReturnorderConfirmRequest() *TaobaoQimenReturnorderConfirmAPIRequest{ + return &TaobaoQimenReturnorderConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenReturnorderConfirmAPIRequest) GetApiMethodName() string { + return "taobao.qimen.returnorder.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenReturnorderConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenReturnorderConfirmAPIRequest) SetRequest(_request *ReturnOrderConfirmRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenReturnorderConfirmAPIRequest) GetRequest() *ReturnOrderConfirmRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenReturnorderConfirmAPIResponse.go b/model/qimen/TaobaoQimenReturnorderConfirmAPIResponse.go new file mode 100644 index 0000000000..8fdcf2ac58 --- /dev/null +++ b/model/qimen/TaobaoQimenReturnorderConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +退货入库单确认接口 API返回值 +taobao.qimen.returnorder.confirm + +taobao.qimen.returnorder.confirm +*/ +type TaobaoQimenReturnorderConfirmAPIResponse struct { + model.CommonResponse + TaobaoQimenReturnorderConfirmAPIResponseModel +} + +// 退货入库单确认接口 成功返回结果 +type TaobaoQimenReturnorderConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_returnorder_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenReturnorderConfirmResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenReturnorderConfirmBatch.go b/model/qimen/TaobaoQimenReturnorderConfirmBatch.go new file mode 100644 index 0000000000..e41a04c3b7 --- /dev/null +++ b/model/qimen/TaobaoQimenReturnorderConfirmBatch.go @@ -0,0 +1,19 @@ +package qimen + +// TaobaoQimenReturnorderConfirmBatch +type TaobaoQimenReturnorderConfirmBatch struct { + // 备注 + Remark string `json:"remark,omitempty" xml:"remark,omitempty"` + // 批次编号 + BatchCode string `json:"batchCode,omitempty" xml:"batchCode,omitempty"` + // 生产日期(YYYY-MM-DD) + ProductDate string `json:"productDate,omitempty" xml:"productDate,omitempty"` + // 过期日期(YYYY-MM-DD) + ExpireDate string `json:"expireDate,omitempty" xml:"expireDate,omitempty"` + // 生产批号 + ProduceCode string `json:"produceCode,omitempty" xml:"produceCode,omitempty"` + // 库存类型(ZP=正品;CC=残次;JS=机损;XS=箱损;默认为ZP) + InventoryType string `json:"inventoryType,omitempty" xml:"inventoryType,omitempty"` + // 实收数量(要求batchs节点下所有的实收数量之和等于orderline中的实收数量) + ActualQty int64 `json:"actualQty,omitempty" xml:"actualQty,omitempty"` +} diff --git a/model/qimen/TaobaoQimenReturnorderCreateAPIRequest.go b/model/qimen/TaobaoQimenReturnorderCreateAPIRequest.go new file mode 100644 index 0000000000..9695037872 --- /dev/null +++ b/model/qimen/TaobaoQimenReturnorderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +退货入库单创建接口 API请求 +taobao.qimen.returnorder.create + +ERP调用奇门的接口,创建退货单信息;该接口和入库单的区别就是该接口是从入库单接口中单独剥离出来的,专门处理退货引起的入 库操作 +*/ +type TaobaoQimenReturnorderCreateAPIRequest struct { + model.Params + // + _request *ReturnOrderCreateRequest +} + +// 初始化TaobaoQimenReturnorderCreateAPIRequest对象 +func NewTaobaoQimenReturnorderCreateRequest() *TaobaoQimenReturnorderCreateAPIRequest{ + return &TaobaoQimenReturnorderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenReturnorderCreateAPIRequest) GetApiMethodName() string { + return "taobao.qimen.returnorder.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenReturnorderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenReturnorderCreateAPIRequest) SetRequest(_request *ReturnOrderCreateRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenReturnorderCreateAPIRequest) GetRequest() *ReturnOrderCreateRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenReturnorderCreateAPIResponse.go b/model/qimen/TaobaoQimenReturnorderCreateAPIResponse.go new file mode 100644 index 0000000000..6b8745a6d4 --- /dev/null +++ b/model/qimen/TaobaoQimenReturnorderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +退货入库单创建接口 API返回值 +taobao.qimen.returnorder.create + +ERP调用奇门的接口,创建退货单信息;该接口和入库单的区别就是该接口是从入库单接口中单独剥离出来的,专门处理退货引起的入 库操作 +*/ +type TaobaoQimenReturnorderCreateAPIResponse struct { + model.CommonResponse + TaobaoQimenReturnorderCreateAPIResponseModel +} + +// 退货入库单创建接口 成功返回结果 +type TaobaoQimenReturnorderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_returnorder_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenReturnorderCreateResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenReturnpackageReportAPIRequest.go b/model/qimen/TaobaoQimenReturnpackageReportAPIRequest.go new file mode 100644 index 0000000000..8d05d62d6b --- /dev/null +++ b/model/qimen/TaobaoQimenReturnpackageReportAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +退货包裹状态通知接口 API请求 +taobao.qimen.returnpackage.report + +退货包裹状态通知接口 +*/ +type TaobaoQimenReturnpackageReportAPIRequest struct { + model.Params + // + _request *TaobaoQimenReturnpackageReportRequest +} + +// 初始化TaobaoQimenReturnpackageReportAPIRequest对象 +func NewTaobaoQimenReturnpackageReportRequest() *TaobaoQimenReturnpackageReportAPIRequest{ + return &TaobaoQimenReturnpackageReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenReturnpackageReportAPIRequest) GetApiMethodName() string { + return "taobao.qimen.returnpackage.report" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenReturnpackageReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenReturnpackageReportAPIRequest) SetRequest(_request *TaobaoQimenReturnpackageReportRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenReturnpackageReportAPIRequest) GetRequest() *TaobaoQimenReturnpackageReportRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenReturnpackageReportAPIResponse.go b/model/qimen/TaobaoQimenReturnpackageReportAPIResponse.go new file mode 100644 index 0000000000..1d394e1073 --- /dev/null +++ b/model/qimen/TaobaoQimenReturnpackageReportAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +退货包裹状态通知接口 API返回值 +taobao.qimen.returnpackage.report + +退货包裹状态通知接口 +*/ +type TaobaoQimenReturnpackageReportAPIResponse struct { + model.CommonResponse + TaobaoQimenReturnpackageReportAPIResponseModel +} + +// 退货包裹状态通知接口 成功返回结果 +type TaobaoQimenReturnpackageReportAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_returnpackage_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenReturnpackageReportResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenShopSynchronizeAPIRequest.go b/model/qimen/TaobaoQimenShopSynchronizeAPIRequest.go new file mode 100644 index 0000000000..1f2dc0e54d --- /dev/null +++ b/model/qimen/TaobaoQimenShopSynchronizeAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +店铺同步接口 API请求 +taobao.qimen.shop.synchronize + +店铺同步接口描述 +*/ +type TaobaoQimenShopSynchronizeAPIRequest struct { + model.Params + // 请求 + _request *TaobaoQimenShopSynchronizeRequest +} + +// 初始化TaobaoQimenShopSynchronizeAPIRequest对象 +func NewTaobaoQimenShopSynchronizeRequest() *TaobaoQimenShopSynchronizeAPIRequest{ + return &TaobaoQimenShopSynchronizeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenShopSynchronizeAPIRequest) GetApiMethodName() string { + return "taobao.qimen.shop.synchronize" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenShopSynchronizeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// 请求 +func (r *TaobaoQimenShopSynchronizeAPIRequest) SetRequest(_request *TaobaoQimenShopSynchronizeRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenShopSynchronizeAPIRequest) GetRequest() *TaobaoQimenShopSynchronizeRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenShopSynchronizeAPIResponse.go b/model/qimen/TaobaoQimenShopSynchronizeAPIResponse.go new file mode 100644 index 0000000000..dce33f6015 --- /dev/null +++ b/model/qimen/TaobaoQimenShopSynchronizeAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +店铺同步接口 API返回值 +taobao.qimen.shop.synchronize + +店铺同步接口描述 +*/ +type TaobaoQimenShopSynchronizeAPIResponse struct { + model.CommonResponse + TaobaoQimenShopSynchronizeAPIResponseModel +} + +// 店铺同步接口 成功返回结果 +type TaobaoQimenShopSynchronizeAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_shop_synchronize_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Response + Response *TaobaoQimenShopSynchronizeResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenSingleitemQueryAPIRequest.go b/model/qimen/TaobaoQimenSingleitemQueryAPIRequest.go new file mode 100644 index 0000000000..b5c92567c3 --- /dev/null +++ b/model/qimen/TaobaoQimenSingleitemQueryAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品查询接口 API请求 +taobao.qimen.singleitem.query + +商品查询接口 +*/ +type TaobaoQimenSingleitemQueryAPIRequest struct { + model.Params + // + _request *RequestDo +} + +// 初始化TaobaoQimenSingleitemQueryAPIRequest对象 +func NewTaobaoQimenSingleitemQueryRequest() *TaobaoQimenSingleitemQueryAPIRequest{ + return &TaobaoQimenSingleitemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenSingleitemQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.singleitem.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenSingleitemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenSingleitemQueryAPIRequest) SetRequest(_request *RequestDo) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenSingleitemQueryAPIRequest) GetRequest() *RequestDo { + return r._request +} diff --git a/model/qimen/TaobaoQimenSingleitemQueryAPIResponse.go b/model/qimen/TaobaoQimenSingleitemQueryAPIResponse.go new file mode 100644 index 0000000000..b4a28a6840 --- /dev/null +++ b/model/qimen/TaobaoQimenSingleitemQueryAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品查询接口 API返回值 +taobao.qimen.singleitem.query + +商品查询接口 +*/ +type TaobaoQimenSingleitemQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenSingleitemQueryAPIResponseModel +} + +// 商品查询接口 成功返回结果 +type TaobaoQimenSingleitemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_singleitem_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *ResponseDo `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenSingleitemQueryResponse.go b/model/qimen/TaobaoQimenSingleitemQueryResponse.go deleted file mode 100644 index b5a0d31c74..0000000000 --- a/model/qimen/TaobaoQimenSingleitemQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品查询接口 API返回值 -taobao.qimen.singleitem.query - -商品查询接口 -*/ -type TaobaoQimenSingleitemQueryAPIResponse struct { - model.CommonResponse - TaobaoQimenSingleitemQueryResponse -} - -// 商品查询接口 成功返回结果 -type TaobaoQimenSingleitemQueryResponse struct { - XMLName xml.Name `xml:"qimen_singleitem_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *ResponseDo `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenSingleitemSynchronizeAPIRequest.go b/model/qimen/TaobaoQimenSingleitemSynchronizeAPIRequest.go new file mode 100644 index 0000000000..ce96c25be7 --- /dev/null +++ b/model/qimen/TaobaoQimenSingleitemSynchronizeAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品同步接口 API请求 +taobao.qimen.singleitem.synchronize + +ERP调用奇门的接口,同步商品信息给WMS +*/ +type TaobaoQimenSingleitemSynchronizeAPIRequest struct { + model.Params + // + _request *ItemSynRequest +} + +// 初始化TaobaoQimenSingleitemSynchronizeAPIRequest对象 +func NewTaobaoQimenSingleitemSynchronizeRequest() *TaobaoQimenSingleitemSynchronizeAPIRequest{ + return &TaobaoQimenSingleitemSynchronizeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenSingleitemSynchronizeAPIRequest) GetApiMethodName() string { + return "taobao.qimen.singleitem.synchronize" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenSingleitemSynchronizeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenSingleitemSynchronizeAPIRequest) SetRequest(_request *ItemSynRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenSingleitemSynchronizeAPIRequest) GetRequest() *ItemSynRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenSingleitemSynchronizeAPIResponse.go b/model/qimen/TaobaoQimenSingleitemSynchronizeAPIResponse.go new file mode 100644 index 0000000000..67d4ed8107 --- /dev/null +++ b/model/qimen/TaobaoQimenSingleitemSynchronizeAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品同步接口 API返回值 +taobao.qimen.singleitem.synchronize + +ERP调用奇门的接口,同步商品信息给WMS +*/ +type TaobaoQimenSingleitemSynchronizeAPIResponse struct { + model.CommonResponse + TaobaoQimenSingleitemSynchronizeAPIResponseModel +} + +// 商品同步接口 成功返回结果 +type TaobaoQimenSingleitemSynchronizeAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_singleitem_synchronize_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenSingleitemSynchronizeResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenSnReportAPIRequest.go b/model/qimen/TaobaoQimenSnReportAPIRequest.go new file mode 100644 index 0000000000..d51cf5ac98 --- /dev/null +++ b/model/qimen/TaobaoQimenSnReportAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发货单SN通知接口 API请求 +taobao.qimen.sn.report + +WMS调用奇门的接口,在仓库出库单后, 把SN信息回传给ERP +*/ +type TaobaoQimenSnReportAPIRequest struct { + model.Params + // + _request *SnReportRequest +} + +// 初始化TaobaoQimenSnReportAPIRequest对象 +func NewTaobaoQimenSnReportRequest() *TaobaoQimenSnReportAPIRequest{ + return &TaobaoQimenSnReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenSnReportAPIRequest) GetApiMethodName() string { + return "taobao.qimen.sn.report" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenSnReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenSnReportAPIRequest) SetRequest(_request *SnReportRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenSnReportAPIRequest) GetRequest() *SnReportRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenSnReportAPIResponse.go b/model/qimen/TaobaoQimenSnReportAPIResponse.go new file mode 100644 index 0000000000..3ca3a0a7c6 --- /dev/null +++ b/model/qimen/TaobaoQimenSnReportAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发货单SN通知接口 API返回值 +taobao.qimen.sn.report + +WMS调用奇门的接口,在仓库出库单后, 把SN信息回传给ERP +*/ +type TaobaoQimenSnReportAPIResponse struct { + model.CommonResponse + TaobaoQimenSnReportAPIResponseModel +} + +// 发货单SN通知接口 成功返回结果 +type TaobaoQimenSnReportAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_sn_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenSnReportResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenStockQueryAPIRequest.go b/model/qimen/TaobaoQimenStockQueryAPIRequest.go new file mode 100644 index 0000000000..7f1909e6cc --- /dev/null +++ b/model/qimen/TaobaoQimenStockQueryAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +库存查询接口(多条件) API请求 +taobao.qimen.stock.query + +ERP调用奇门的接口,查询商品的库存量 +*/ +type TaobaoQimenStockQueryAPIRequest struct { + model.Params + // + _request *StockQueryRequest +} + +// 初始化TaobaoQimenStockQueryAPIRequest对象 +func NewTaobaoQimenStockQueryRequest() *TaobaoQimenStockQueryAPIRequest{ + return &TaobaoQimenStockQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenStockQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.stock.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenStockQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenStockQueryAPIRequest) SetRequest(_request *StockQueryRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenStockQueryAPIRequest) GetRequest() *StockQueryRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenStockQueryAPIResponse.go b/model/qimen/TaobaoQimenStockQueryAPIResponse.go new file mode 100644 index 0000000000..e2b5b9300e --- /dev/null +++ b/model/qimen/TaobaoQimenStockQueryAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +库存查询接口(多条件) API返回值 +taobao.qimen.stock.query + +ERP调用奇门的接口,查询商品的库存量 +*/ +type TaobaoQimenStockQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenStockQueryAPIResponseModel +} + +// 库存查询接口(多条件) 成功返回结果 +type TaobaoQimenStockQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_stock_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *StockQueryResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenStockQueryResponse.go b/model/qimen/TaobaoQimenStockQueryResponse.go deleted file mode 100644 index 9cf08d874c..0000000000 --- a/model/qimen/TaobaoQimenStockQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -库存查询接口(多条件) API返回值 -taobao.qimen.stock.query - -ERP调用奇门的接口,查询商品的库存量 -*/ -type TaobaoQimenStockQueryAPIResponse struct { - model.CommonResponse - TaobaoQimenStockQueryResponse -} - -// 库存查询接口(多条件) 成功返回结果 -type TaobaoQimenStockQueryResponse struct { - XMLName xml.Name `xml:"qimen_stock_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *StockQueryResponse `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenStockchangeReportAPIRequest.go b/model/qimen/TaobaoQimenStockchangeReportAPIRequest.go new file mode 100644 index 0000000000..78d64621ea --- /dev/null +++ b/model/qimen/TaobaoQimenStockchangeReportAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +库存异动通知接口 API请求 +taobao.qimen.stockchange.report + +WMS调用奇门的接口,将库存异动信息信息回传给ERP +*/ +type TaobaoQimenStockchangeReportAPIRequest struct { + model.Params + // + _request *StockChangeReportRequest +} + +// 初始化TaobaoQimenStockchangeReportAPIRequest对象 +func NewTaobaoQimenStockchangeReportRequest() *TaobaoQimenStockchangeReportAPIRequest{ + return &TaobaoQimenStockchangeReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenStockchangeReportAPIRequest) GetApiMethodName() string { + return "taobao.qimen.stockchange.report" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenStockchangeReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenStockchangeReportAPIRequest) SetRequest(_request *StockChangeReportRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenStockchangeReportAPIRequest) GetRequest() *StockChangeReportRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenStockchangeReportAPIResponse.go b/model/qimen/TaobaoQimenStockchangeReportAPIResponse.go new file mode 100644 index 0000000000..4a36d03bdb --- /dev/null +++ b/model/qimen/TaobaoQimenStockchangeReportAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +库存异动通知接口 API返回值 +taobao.qimen.stockchange.report + +WMS调用奇门的接口,将库存异动信息信息回传给ERP +*/ +type TaobaoQimenStockchangeReportAPIResponse struct { + model.CommonResponse + TaobaoQimenStockchangeReportAPIResponseModel +} + +// 库存异动通知接口 成功返回结果 +type TaobaoQimenStockchangeReportAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_stockchange_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenStockchangeReportResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenStockchangeReportBatch.go b/model/qimen/TaobaoQimenStockchangeReportBatch.go new file mode 100644 index 0000000000..98b2558d70 --- /dev/null +++ b/model/qimen/TaobaoQimenStockchangeReportBatch.go @@ -0,0 +1,17 @@ +package qimen + +// TaobaoQimenStockchangeReportBatch +type TaobaoQimenStockchangeReportBatch struct { + // 批次编号 + BatchCode string `json:"batchCode,omitempty" xml:"batchCode,omitempty"` + // 生产日期(YYYY-MM-DD) + ProductDate string `json:"productDate,omitempty" xml:"productDate,omitempty"` + // 过期日期(YYYY-MM-DD) + ExpireDate string `json:"expireDate,omitempty" xml:"expireDate,omitempty"` + // 生产批号 + ProduceCode string `json:"produceCode,omitempty" xml:"produceCode,omitempty"` + // 库存类型(ZP=正品;CC=残次;JS=机损 XS= 箱损;ZT=在途库存) + InventoryType string `json:"inventoryType,omitempty" xml:"inventoryType,omitempty"` + // 异动数量(要求batchs节点下所有的异动数量之和等于orderline中的异动数量) + Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"` +} diff --git a/model/qimen/TaobaoQimenStockoutConfirmAPIRequest.go b/model/qimen/TaobaoQimenStockoutConfirmAPIRequest.go new file mode 100644 index 0000000000..51657e347b --- /dev/null +++ b/model/qimen/TaobaoQimenStockoutConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +出库单确认接口 API请求 +taobao.qimen.stockout.confirm + +货品出库后,WMS将状态回传给ERP +*/ +type TaobaoQimenStockoutConfirmAPIRequest struct { + model.Params + // + _request *TaobaoQimenStockoutConfirmStruct +} + +// 初始化TaobaoQimenStockoutConfirmAPIRequest对象 +func NewTaobaoQimenStockoutConfirmRequest() *TaobaoQimenStockoutConfirmAPIRequest{ + return &TaobaoQimenStockoutConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenStockoutConfirmAPIRequest) GetApiMethodName() string { + return "taobao.qimen.stockout.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenStockoutConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenStockoutConfirmAPIRequest) SetRequest(_request *TaobaoQimenStockoutConfirmStruct) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenStockoutConfirmAPIRequest) GetRequest() *TaobaoQimenStockoutConfirmStruct { + return r._request +} diff --git a/model/qimen/TaobaoQimenStockoutConfirmAPIResponse.go b/model/qimen/TaobaoQimenStockoutConfirmAPIResponse.go new file mode 100644 index 0000000000..0793caa34b --- /dev/null +++ b/model/qimen/TaobaoQimenStockoutConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +出库单确认接口 API返回值 +taobao.qimen.stockout.confirm + +货品出库后,WMS将状态回传给ERP +*/ +type TaobaoQimenStockoutConfirmAPIResponse struct { + model.CommonResponse + TaobaoQimenStockoutConfirmAPIResponseModel +} + +// 出库单确认接口 成功返回结果 +type TaobaoQimenStockoutConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_stockout_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenStockoutConfirmStruct `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenStockoutConfirmBatch.go b/model/qimen/TaobaoQimenStockoutConfirmBatch.go new file mode 100644 index 0000000000..f553ca07f9 --- /dev/null +++ b/model/qimen/TaobaoQimenStockoutConfirmBatch.go @@ -0,0 +1,17 @@ +package qimen + +// TaobaoQimenStockoutConfirmBatch +type TaobaoQimenStockoutConfirmBatch struct { + // 批次编号 + BatchCode string `json:"batchCode,omitempty" xml:"batchCode,omitempty"` + // 生产日期 + ProductDate string `json:"productDate,omitempty" xml:"productDate,omitempty"` + // 过期日期 + ExpireDate string `json:"expireDate,omitempty" xml:"expireDate,omitempty"` + // 生产批号 + ProduceCode string `json:"produceCode,omitempty" xml:"produceCode,omitempty"` + // 库存类型 + InventoryType string `json:"inventoryType,omitempty" xml:"inventoryType,omitempty"` + // 实发数量 + ActualQty int64 `json:"actualQty,omitempty" xml:"actualQty,omitempty"` +} diff --git a/model/qimen/TaobaoQimenStockoutConfirmResponse.go b/model/qimen/TaobaoQimenStockoutConfirmResponse.go deleted file mode 100644 index c7909c33e5..0000000000 --- a/model/qimen/TaobaoQimenStockoutConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -出库单确认接口 API返回值 -taobao.qimen.stockout.confirm - -货品出库后,WMS将状态回传给ERP -*/ -type TaobaoQimenStockoutConfirmAPIResponse struct { - model.CommonResponse - TaobaoQimenStockoutConfirmResponse -} - -// 出库单确认接口 成功返回结果 -type TaobaoQimenStockoutConfirmResponse struct { - XMLName xml.Name `xml:"qimen_stockout_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *TaobaoQimenStockoutConfirmStruct `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenStockoutCreateAPIRequest.go b/model/qimen/TaobaoQimenStockoutCreateAPIRequest.go new file mode 100644 index 0000000000..8528295fa1 --- /dev/null +++ b/model/qimen/TaobaoQimenStockoutCreateAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +出库单创建接口 API请求 +taobao.qimen.stockout.create + +ERP调用奇门接口,创建出库单信息 +*/ +type TaobaoQimenStockoutCreateAPIRequest struct { + model.Params + // + _request *StockOutCreateRequest +} + +// 初始化TaobaoQimenStockoutCreateAPIRequest对象 +func NewTaobaoQimenStockoutCreateRequest() *TaobaoQimenStockoutCreateAPIRequest{ + return &TaobaoQimenStockoutCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenStockoutCreateAPIRequest) GetApiMethodName() string { + return "taobao.qimen.stockout.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenStockoutCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenStockoutCreateAPIRequest) SetRequest(_request *StockOutCreateRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenStockoutCreateAPIRequest) GetRequest() *StockOutCreateRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenStockoutCreateAPIResponse.go b/model/qimen/TaobaoQimenStockoutCreateAPIResponse.go new file mode 100644 index 0000000000..2590bb239b --- /dev/null +++ b/model/qimen/TaobaoQimenStockoutCreateAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +出库单创建接口 API返回值 +taobao.qimen.stockout.create + +ERP调用奇门接口,创建出库单信息 +*/ +type TaobaoQimenStockoutCreateAPIResponse struct { + model.CommonResponse + TaobaoQimenStockoutCreateAPIResponseModel +} + +// 出库单创建接口 成功返回结果 +type TaobaoQimenStockoutCreateAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_stockout_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenStockoutCreateResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenStoreCreateAPIRequest.go b/model/qimen/TaobaoQimenStoreCreateAPIRequest.go new file mode 100644 index 0000000000..79a66cdf56 --- /dev/null +++ b/model/qimen/TaobaoQimenStoreCreateAPIRequest.go @@ -0,0 +1,220 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店新增接口 API请求 +taobao.qimen.store.create + +isv调用接口来讲线下门店同步到线上 +*/ +type TaobaoQimenStoreCreateAPIRequest struct { + model.Params + // 门店名称 + _storeName string + // 门店主营类目 + _mainCategory int64 + // 商户名称 + _companyName string + // 关闭营业时间(只填时,分;只支持半点和整点) + _endTime string + // 开始营业时间(只填时,分;只支持半点和整点) + _startTime string + // 门店状态 + _storeStatus string + // 商户介绍 + _storeDescription string + // 地址信息 + _address *Address + // 需要关联的线上店铺ID + _shopId int64 + // 门店所有者信息 + _storeKeeper *StoreKeeper + // 门店的类型 + _storeType string + // ERP系统中门店的编码 + _storeCode string + // 备注 + _remark string +} + +// 初始化TaobaoQimenStoreCreateAPIRequest对象 +func NewTaobaoQimenStoreCreateRequest() *TaobaoQimenStoreCreateAPIRequest{ + return &TaobaoQimenStoreCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenStoreCreateAPIRequest) GetApiMethodName() string { + return "taobao.qimen.store.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenStoreCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreName Setter +// 门店名称 +func (r *TaobaoQimenStoreCreateAPIRequest) SetStoreName(_storeName string) error { + r._storeName = _storeName + r.Set("store_name", _storeName) + return nil +} + +// StoreName Getter +func (r TaobaoQimenStoreCreateAPIRequest) GetStoreName() string { + return r._storeName +} +// MainCategory Setter +// 门店主营类目 +func (r *TaobaoQimenStoreCreateAPIRequest) SetMainCategory(_mainCategory int64) error { + r._mainCategory = _mainCategory + r.Set("main_category", _mainCategory) + return nil +} + +// MainCategory Getter +func (r TaobaoQimenStoreCreateAPIRequest) GetMainCategory() int64 { + return r._mainCategory +} +// CompanyName Setter +// 商户名称 +func (r *TaobaoQimenStoreCreateAPIRequest) SetCompanyName(_companyName string) error { + r._companyName = _companyName + r.Set("company_name", _companyName) + return nil +} + +// CompanyName Getter +func (r TaobaoQimenStoreCreateAPIRequest) GetCompanyName() string { + return r._companyName +} +// EndTime Setter +// 关闭营业时间(只填时,分;只支持半点和整点) +func (r *TaobaoQimenStoreCreateAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoQimenStoreCreateAPIRequest) GetEndTime() string { + return r._endTime +} +// StartTime Setter +// 开始营业时间(只填时,分;只支持半点和整点) +func (r *TaobaoQimenStoreCreateAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoQimenStoreCreateAPIRequest) GetStartTime() string { + return r._startTime +} +// StoreStatus Setter +// 门店状态 +func (r *TaobaoQimenStoreCreateAPIRequest) SetStoreStatus(_storeStatus string) error { + r._storeStatus = _storeStatus + r.Set("store_status", _storeStatus) + return nil +} + +// StoreStatus Getter +func (r TaobaoQimenStoreCreateAPIRequest) GetStoreStatus() string { + return r._storeStatus +} +// StoreDescription Setter +// 商户介绍 +func (r *TaobaoQimenStoreCreateAPIRequest) SetStoreDescription(_storeDescription string) error { + r._storeDescription = _storeDescription + r.Set("store_description", _storeDescription) + return nil +} + +// StoreDescription Getter +func (r TaobaoQimenStoreCreateAPIRequest) GetStoreDescription() string { + return r._storeDescription +} +// Address Setter +// 地址信息 +func (r *TaobaoQimenStoreCreateAPIRequest) SetAddress(_address *Address) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r TaobaoQimenStoreCreateAPIRequest) GetAddress() *Address { + return r._address +} +// ShopId Setter +// 需要关联的线上店铺ID +func (r *TaobaoQimenStoreCreateAPIRequest) SetShopId(_shopId int64) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r TaobaoQimenStoreCreateAPIRequest) GetShopId() int64 { + return r._shopId +} +// StoreKeeper Setter +// 门店所有者信息 +func (r *TaobaoQimenStoreCreateAPIRequest) SetStoreKeeper(_storeKeeper *StoreKeeper) error { + r._storeKeeper = _storeKeeper + r.Set("store_keeper", _storeKeeper) + return nil +} + +// StoreKeeper Getter +func (r TaobaoQimenStoreCreateAPIRequest) GetStoreKeeper() *StoreKeeper { + return r._storeKeeper +} +// StoreType Setter +// 门店的类型 +func (r *TaobaoQimenStoreCreateAPIRequest) SetStoreType(_storeType string) error { + r._storeType = _storeType + r.Set("store_type", _storeType) + return nil +} + +// StoreType Getter +func (r TaobaoQimenStoreCreateAPIRequest) GetStoreType() string { + return r._storeType +} +// StoreCode Setter +// ERP系统中门店的编码 +func (r *TaobaoQimenStoreCreateAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoQimenStoreCreateAPIRequest) GetStoreCode() string { + return r._storeCode +} +// Remark Setter +// 备注 +func (r *TaobaoQimenStoreCreateAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r TaobaoQimenStoreCreateAPIRequest) GetRemark() string { + return r._remark +} diff --git a/model/qimen/TaobaoQimenStoreCreateAPIResponse.go b/model/qimen/TaobaoQimenStoreCreateAPIResponse.go new file mode 100644 index 0000000000..ec3a6f95cf --- /dev/null +++ b/model/qimen/TaobaoQimenStoreCreateAPIResponse.go @@ -0,0 +1,33 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店新增接口 API返回值 +taobao.qimen.store.create + +isv调用接口来讲线下门店同步到线上 +*/ +type TaobaoQimenStoreCreateAPIResponse struct { + model.CommonResponse + TaobaoQimenStoreCreateAPIResponseModel +} + +// 门店新增接口 成功返回结果 +type TaobaoQimenStoreCreateAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_store_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 响应标示 + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // 响应code + QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` + // 返回的门店id + StoreId int64 `json:"store_id,omitempty" xml:"store_id,omitempty"` +} diff --git a/model/qimen/TaobaoQimenStoreCreateResponse.go b/model/qimen/TaobaoQimenStoreCreateResponse.go deleted file mode 100644 index 322650600e..0000000000 --- a/model/qimen/TaobaoQimenStoreCreateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店新增接口 API返回值 -taobao.qimen.store.create - -isv调用接口来讲线下门店同步到线上 -*/ -type TaobaoQimenStoreCreateAPIResponse struct { - model.CommonResponse - TaobaoQimenStoreCreateResponse -} - -// 门店新增接口 成功返回结果 -type TaobaoQimenStoreCreateResponse struct { - XMLName xml.Name `xml:"qimen_store_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 响应标示 - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // 响应code - QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` - // 返回的门店id - StoreId int64 `json:"store_id,omitempty" xml:"store_id,omitempty"` -} diff --git a/model/qimen/TaobaoQimenStoreDeleteAPIRequest.go b/model/qimen/TaobaoQimenStoreDeleteAPIRequest.go new file mode 100644 index 0000000000..d690e51f90 --- /dev/null +++ b/model/qimen/TaobaoQimenStoreDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店删除接口 API请求 +taobao.qimen.store.delete + +商家在ERP等系统中调用该接口,删除线下门店 +*/ +type TaobaoQimenStoreDeleteAPIRequest struct { + model.Params + // 要删除的门店id + _storeId int64 +} + +// 初始化TaobaoQimenStoreDeleteAPIRequest对象 +func NewTaobaoQimenStoreDeleteRequest() *TaobaoQimenStoreDeleteAPIRequest{ + return &TaobaoQimenStoreDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenStoreDeleteAPIRequest) GetApiMethodName() string { + return "taobao.qimen.store.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenStoreDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 要删除的门店id +func (r *TaobaoQimenStoreDeleteAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoQimenStoreDeleteAPIRequest) GetStoreId() int64 { + return r._storeId +} diff --git a/model/qimen/TaobaoQimenStoreDeleteAPIResponse.go b/model/qimen/TaobaoQimenStoreDeleteAPIResponse.go new file mode 100644 index 0000000000..cb5423d773 --- /dev/null +++ b/model/qimen/TaobaoQimenStoreDeleteAPIResponse.go @@ -0,0 +1,31 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店删除接口 API返回值 +taobao.qimen.store.delete + +商家在ERP等系统中调用该接口,删除线下门店 +*/ +type TaobaoQimenStoreDeleteAPIResponse struct { + model.CommonResponse + TaobaoQimenStoreDeleteAPIResponseModel +} + +// 门店删除接口 成功返回结果 +type TaobaoQimenStoreDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_store_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 响应标示 + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // 响应code + QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` +} diff --git a/model/qimen/TaobaoQimenStoreDeleteResponse.go b/model/qimen/TaobaoQimenStoreDeleteResponse.go deleted file mode 100644 index 162a468633..0000000000 --- a/model/qimen/TaobaoQimenStoreDeleteResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店删除接口 API返回值 -taobao.qimen.store.delete - -商家在ERP等系统中调用该接口,删除线下门店 -*/ -type TaobaoQimenStoreDeleteAPIResponse struct { - model.CommonResponse - TaobaoQimenStoreDeleteResponse -} - -// 门店删除接口 成功返回结果 -type TaobaoQimenStoreDeleteResponse struct { - XMLName xml.Name `xml:"qimen_store_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 响应标示 - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // 响应code - QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` -} diff --git a/model/qimen/TaobaoQimenStoreQueryAPIRequest.go b/model/qimen/TaobaoQimenStoreQueryAPIRequest.go new file mode 100644 index 0000000000..e24862bd34 --- /dev/null +++ b/model/qimen/TaobaoQimenStoreQueryAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店信息查询接口 API请求 +taobao.qimen.store.query + +商家在ERP等系统中调用该接口,查询门店相关信息 +*/ +type TaobaoQimenStoreQueryAPIRequest struct { + model.Params + // 已分配的线上门店ID + _storeId int64 +} + +// 初始化TaobaoQimenStoreQueryAPIRequest对象 +func NewTaobaoQimenStoreQueryRequest() *TaobaoQimenStoreQueryAPIRequest{ + return &TaobaoQimenStoreQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenStoreQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.store.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenStoreQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 已分配的线上门店ID +func (r *TaobaoQimenStoreQueryAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoQimenStoreQueryAPIRequest) GetStoreId() int64 { + return r._storeId +} diff --git a/model/qimen/TaobaoQimenStoreQueryAPIResponse.go b/model/qimen/TaobaoQimenStoreQueryAPIResponse.go new file mode 100644 index 0000000000..31c8e6af6b --- /dev/null +++ b/model/qimen/TaobaoQimenStoreQueryAPIResponse.go @@ -0,0 +1,57 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店信息查询接口 API返回值 +taobao.qimen.store.query + +商家在ERP等系统中调用该接口,查询门店相关信息 +*/ +type TaobaoQimenStoreQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenStoreQueryAPIResponseModel +} + +// 门店信息查询接口 成功返回结果 +type TaobaoQimenStoreQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_store_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 门店名称 + StoreName string `json:"store_name,omitempty" xml:"store_name,omitempty"` + // 备注 + Remark string `json:"remark,omitempty" xml:"remark,omitempty"` + // 门店主营类目 + MainCategory int64 `json:"main_category,omitempty" xml:"main_category,omitempty"` + // 响应code + QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` + // 关闭营业时间 + EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"` + // 商户名称 + CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"` + // 开始营业时间 + StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"` + // 响应消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 门店状态 + StoreStatus string `json:"store_status,omitempty" xml:"store_status,omitempty"` + // 响应标示 + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // 商户介绍 + StoreDescription string `json:"store_description,omitempty" xml:"store_description,omitempty"` + // 地址信息 + Address *Address `json:"address,omitempty" xml:"address,omitempty"` + // 需要关联的线上店铺ID + ShopId string `json:"shop_id,omitempty" xml:"shop_id,omitempty"` + // 所有者信息 + StoreKeeper *StoreKeeper `json:"store_keeper,omitempty" xml:"store_keeper,omitempty"` + // 类型 + StoreType string `json:"store_type,omitempty" xml:"store_type,omitempty"` + // ERP系统中 门店编码 + StoreCode string `json:"store_code,omitempty" xml:"store_code,omitempty"` +} diff --git a/model/qimen/TaobaoQimenStoreQueryResponse.go b/model/qimen/TaobaoQimenStoreQueryResponse.go deleted file mode 100644 index 78c40ccd55..0000000000 --- a/model/qimen/TaobaoQimenStoreQueryResponse.go +++ /dev/null @@ -1,57 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店信息查询接口 API返回值 -taobao.qimen.store.query - -商家在ERP等系统中调用该接口,查询门店相关信息 -*/ -type TaobaoQimenStoreQueryAPIResponse struct { - model.CommonResponse - TaobaoQimenStoreQueryResponse -} - -// 门店信息查询接口 成功返回结果 -type TaobaoQimenStoreQueryResponse struct { - XMLName xml.Name `xml:"qimen_store_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 门店名称 - StoreName string `json:"store_name,omitempty" xml:"store_name,omitempty"` - // 备注 - Remark string `json:"remark,omitempty" xml:"remark,omitempty"` - // 门店主营类目 - MainCategory int64 `json:"main_category,omitempty" xml:"main_category,omitempty"` - // 响应code - QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` - // 关闭营业时间 - EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"` - // 商户名称 - CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"` - // 开始营业时间 - StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"` - // 响应消息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 门店状态 - StoreStatus string `json:"store_status,omitempty" xml:"store_status,omitempty"` - // 响应标示 - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // 商户介绍 - StoreDescription string `json:"store_description,omitempty" xml:"store_description,omitempty"` - // 地址信息 - Address *Address `json:"address,omitempty" xml:"address,omitempty"` - // 需要关联的线上店铺ID - ShopId string `json:"shop_id,omitempty" xml:"shop_id,omitempty"` - // 所有者信息 - StoreKeeper *StoreKeeper `json:"store_keeper,omitempty" xml:"store_keeper,omitempty"` - // 类型 - StoreType string `json:"store_type,omitempty" xml:"store_type,omitempty"` - // ERP系统中 门店编码 - StoreCode string `json:"store_code,omitempty" xml:"store_code,omitempty"` -} diff --git a/model/qimen/TaobaoQimenStoreUpdateAPIRequest.go b/model/qimen/TaobaoQimenStoreUpdateAPIRequest.go new file mode 100644 index 0000000000..c464652302 --- /dev/null +++ b/model/qimen/TaobaoQimenStoreUpdateAPIRequest.go @@ -0,0 +1,234 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店更新接口 API请求 +taobao.qimen.store.update + +商家在ERP等系统中调用该接口,更新门店信息 +*/ +type TaobaoQimenStoreUpdateAPIRequest struct { + model.Params + // 门店名称 + _storeName string + // 备注 + _remark string + // 门店主营类目 + _mainCategory int64 + // 停止营业时间(只填时,分;只支持半点和整点) + _endTime string + // 商户名称 + _companyName string + // 开始营业时间(只填时,分;只支持半点和整点) + _startTime string + // 门店状态 + _storeStatus string + // 商户介绍 + _storeDescription string + // 门店地址信息 + _address *Address + // 需要关联的线上店铺ID + _shopId int64 + // 门店所有者信息 + _storeKeeper *StoreKeeper + // 门店类型 + _storeType string + // 线上门店id + _storeId int64 + // ERP系统中 门店编码 + _storeCode string +} + +// 初始化TaobaoQimenStoreUpdateAPIRequest对象 +func NewTaobaoQimenStoreUpdateRequest() *TaobaoQimenStoreUpdateAPIRequest{ + return &TaobaoQimenStoreUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenStoreUpdateAPIRequest) GetApiMethodName() string { + return "taobao.qimen.store.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenStoreUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreName Setter +// 门店名称 +func (r *TaobaoQimenStoreUpdateAPIRequest) SetStoreName(_storeName string) error { + r._storeName = _storeName + r.Set("store_name", _storeName) + return nil +} + +// StoreName Getter +func (r TaobaoQimenStoreUpdateAPIRequest) GetStoreName() string { + return r._storeName +} +// Remark Setter +// 备注 +func (r *TaobaoQimenStoreUpdateAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r TaobaoQimenStoreUpdateAPIRequest) GetRemark() string { + return r._remark +} +// MainCategory Setter +// 门店主营类目 +func (r *TaobaoQimenStoreUpdateAPIRequest) SetMainCategory(_mainCategory int64) error { + r._mainCategory = _mainCategory + r.Set("main_category", _mainCategory) + return nil +} + +// MainCategory Getter +func (r TaobaoQimenStoreUpdateAPIRequest) GetMainCategory() int64 { + return r._mainCategory +} +// EndTime Setter +// 停止营业时间(只填时,分;只支持半点和整点) +func (r *TaobaoQimenStoreUpdateAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoQimenStoreUpdateAPIRequest) GetEndTime() string { + return r._endTime +} +// CompanyName Setter +// 商户名称 +func (r *TaobaoQimenStoreUpdateAPIRequest) SetCompanyName(_companyName string) error { + r._companyName = _companyName + r.Set("company_name", _companyName) + return nil +} + +// CompanyName Getter +func (r TaobaoQimenStoreUpdateAPIRequest) GetCompanyName() string { + return r._companyName +} +// StartTime Setter +// 开始营业时间(只填时,分;只支持半点和整点) +func (r *TaobaoQimenStoreUpdateAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoQimenStoreUpdateAPIRequest) GetStartTime() string { + return r._startTime +} +// StoreStatus Setter +// 门店状态 +func (r *TaobaoQimenStoreUpdateAPIRequest) SetStoreStatus(_storeStatus string) error { + r._storeStatus = _storeStatus + r.Set("store_status", _storeStatus) + return nil +} + +// StoreStatus Getter +func (r TaobaoQimenStoreUpdateAPIRequest) GetStoreStatus() string { + return r._storeStatus +} +// StoreDescription Setter +// 商户介绍 +func (r *TaobaoQimenStoreUpdateAPIRequest) SetStoreDescription(_storeDescription string) error { + r._storeDescription = _storeDescription + r.Set("store_description", _storeDescription) + return nil +} + +// StoreDescription Getter +func (r TaobaoQimenStoreUpdateAPIRequest) GetStoreDescription() string { + return r._storeDescription +} +// Address Setter +// 门店地址信息 +func (r *TaobaoQimenStoreUpdateAPIRequest) SetAddress(_address *Address) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r TaobaoQimenStoreUpdateAPIRequest) GetAddress() *Address { + return r._address +} +// ShopId Setter +// 需要关联的线上店铺ID +func (r *TaobaoQimenStoreUpdateAPIRequest) SetShopId(_shopId int64) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r TaobaoQimenStoreUpdateAPIRequest) GetShopId() int64 { + return r._shopId +} +// StoreKeeper Setter +// 门店所有者信息 +func (r *TaobaoQimenStoreUpdateAPIRequest) SetStoreKeeper(_storeKeeper *StoreKeeper) error { + r._storeKeeper = _storeKeeper + r.Set("store_keeper", _storeKeeper) + return nil +} + +// StoreKeeper Getter +func (r TaobaoQimenStoreUpdateAPIRequest) GetStoreKeeper() *StoreKeeper { + return r._storeKeeper +} +// StoreType Setter +// 门店类型 +func (r *TaobaoQimenStoreUpdateAPIRequest) SetStoreType(_storeType string) error { + r._storeType = _storeType + r.Set("store_type", _storeType) + return nil +} + +// StoreType Getter +func (r TaobaoQimenStoreUpdateAPIRequest) GetStoreType() string { + return r._storeType +} +// StoreId Setter +// 线上门店id +func (r *TaobaoQimenStoreUpdateAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoQimenStoreUpdateAPIRequest) GetStoreId() int64 { + return r._storeId +} +// StoreCode Setter +// ERP系统中 门店编码 +func (r *TaobaoQimenStoreUpdateAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoQimenStoreUpdateAPIRequest) GetStoreCode() string { + return r._storeCode +} diff --git a/model/qimen/TaobaoQimenStoreUpdateAPIResponse.go b/model/qimen/TaobaoQimenStoreUpdateAPIResponse.go new file mode 100644 index 0000000000..c76eb9095c --- /dev/null +++ b/model/qimen/TaobaoQimenStoreUpdateAPIResponse.go @@ -0,0 +1,31 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店更新接口 API返回值 +taobao.qimen.store.update + +商家在ERP等系统中调用该接口,更新门店信息 +*/ +type TaobaoQimenStoreUpdateAPIResponse struct { + model.CommonResponse + TaobaoQimenStoreUpdateAPIResponseModel +} + +// 门店更新接口 成功返回结果 +type TaobaoQimenStoreUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_store_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 响应标示 + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // 响应编码 + QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` +} diff --git a/model/qimen/TaobaoQimenStoreUpdateResponse.go b/model/qimen/TaobaoQimenStoreUpdateResponse.go deleted file mode 100644 index 28c84d4873..0000000000 --- a/model/qimen/TaobaoQimenStoreUpdateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店更新接口 API返回值 -taobao.qimen.store.update - -商家在ERP等系统中调用该接口,更新门店信息 -*/ -type TaobaoQimenStoreUpdateAPIResponse struct { - model.CommonResponse - TaobaoQimenStoreUpdateResponse -} - -// 门店更新接口 成功返回结果 -type TaobaoQimenStoreUpdateResponse struct { - XMLName xml.Name `xml:"qimen_store_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 响应标示 - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // 响应编码 - QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` -} diff --git a/model/qimen/TaobaoQimenStorecategoryGetAPIRequest.go b/model/qimen/TaobaoQimenStorecategoryGetAPIRequest.go new file mode 100644 index 0000000000..901757d611 --- /dev/null +++ b/model/qimen/TaobaoQimenStorecategoryGetAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店类目获取接口 API请求 +taobao.qimen.storecategory.get + +商家在ERP中调用该接口,获取门店类目 +*/ +type TaobaoQimenStorecategoryGetAPIRequest struct { + model.Params + // 备注 + _remark string +} + +// 初始化TaobaoQimenStorecategoryGetAPIRequest对象 +func NewTaobaoQimenStorecategoryGetRequest() *TaobaoQimenStorecategoryGetAPIRequest{ + return &TaobaoQimenStorecategoryGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenStorecategoryGetAPIRequest) GetApiMethodName() string { + return "taobao.qimen.storecategory.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenStorecategoryGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Remark Setter +// 备注 +func (r *TaobaoQimenStorecategoryGetAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r TaobaoQimenStorecategoryGetAPIRequest) GetRemark() string { + return r._remark +} diff --git a/model/qimen/TaobaoQimenStorecategoryGetAPIResponse.go b/model/qimen/TaobaoQimenStorecategoryGetAPIResponse.go new file mode 100644 index 0000000000..4033b143e6 --- /dev/null +++ b/model/qimen/TaobaoQimenStorecategoryGetAPIResponse.go @@ -0,0 +1,33 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店类目获取接口 API返回值 +taobao.qimen.storecategory.get + +商家在ERP中调用该接口,获取门店类目 +*/ +type TaobaoQimenStorecategoryGetAPIResponse struct { + model.CommonResponse + TaobaoQimenStorecategoryGetAPIResponseModel +} + +// 门店类目获取接口 成功返回结果 +type TaobaoQimenStorecategoryGetAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_storecategory_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 响应标示 + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // 响应code + QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` + // 类目json字符串 + StoreCategory string `json:"store_category,omitempty" xml:"store_category,omitempty"` +} diff --git a/model/qimen/TaobaoQimenStorecategoryGetResponse.go b/model/qimen/TaobaoQimenStorecategoryGetResponse.go deleted file mode 100644 index 9d16322a42..0000000000 --- a/model/qimen/TaobaoQimenStorecategoryGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店类目获取接口 API返回值 -taobao.qimen.storecategory.get - -商家在ERP中调用该接口,获取门店类目 -*/ -type TaobaoQimenStorecategoryGetAPIResponse struct { - model.CommonResponse - TaobaoQimenStorecategoryGetResponse -} - -// 门店类目获取接口 成功返回结果 -type TaobaoQimenStorecategoryGetResponse struct { - XMLName xml.Name `xml:"qimen_storecategory_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 响应标示 - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // 响应code - QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` - // 类目json字符串 - StoreCategory string `json:"store_category,omitempty" xml:"store_category,omitempty"` -} diff --git a/model/qimen/TaobaoQimenStoreitemQueryAPIRequest.go b/model/qimen/TaobaoQimenStoreitemQueryAPIRequest.go new file mode 100644 index 0000000000..930550efbe --- /dev/null +++ b/model/qimen/TaobaoQimenStoreitemQueryAPIRequest.go @@ -0,0 +1,66 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店关联商品查询接口 API请求 +taobao.qimen.storeitem.query + +商家在ERP等系统中调用该接口,查询某门店所关联的线上商品列表 +*/ +type TaobaoQimenStoreitemQueryAPIRequest struct { + model.Params + // 当前页面 + _page int64 + // 线上门店id + _storeId int64 +} + +// 初始化TaobaoQimenStoreitemQueryAPIRequest对象 +func NewTaobaoQimenStoreitemQueryRequest() *TaobaoQimenStoreitemQueryAPIRequest{ + return &TaobaoQimenStoreitemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenStoreitemQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.storeitem.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenStoreitemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Page Setter +// 当前页面 +func (r *TaobaoQimenStoreitemQueryAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r TaobaoQimenStoreitemQueryAPIRequest) GetPage() int64 { + return r._page +} +// StoreId Setter +// 线上门店id +func (r *TaobaoQimenStoreitemQueryAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoQimenStoreitemQueryAPIRequest) GetStoreId() int64 { + return r._storeId +} diff --git a/model/qimen/TaobaoQimenStoreitemQueryAPIResponse.go b/model/qimen/TaobaoQimenStoreitemQueryAPIResponse.go new file mode 100644 index 0000000000..ae4323b5e4 --- /dev/null +++ b/model/qimen/TaobaoQimenStoreitemQueryAPIResponse.go @@ -0,0 +1,35 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店关联商品查询接口 API返回值 +taobao.qimen.storeitem.query + +商家在ERP等系统中调用该接口,查询某门店所关联的线上商品列表 +*/ +type TaobaoQimenStoreitemQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenStoreitemQueryAPIResponseModel +} + +// 门店关联商品查询接口 成功返回结果 +type TaobaoQimenStoreitemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_storeitem_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 商品列表 + ItemIds []string `json:"item_ids,omitempty" xml:"item_ids>string,omitempty"` + // 响应标签 + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // 商品总数 + TotalLines int64 `json:"total_lines,omitempty" xml:"total_lines,omitempty"` + // 响应code + QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` +} diff --git a/model/qimen/TaobaoQimenStoreitemQueryResponse.go b/model/qimen/TaobaoQimenStoreitemQueryResponse.go deleted file mode 100644 index 258f68fa42..0000000000 --- a/model/qimen/TaobaoQimenStoreitemQueryResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店关联商品查询接口 API返回值 -taobao.qimen.storeitem.query - -商家在ERP等系统中调用该接口,查询某门店所关联的线上商品列表 -*/ -type TaobaoQimenStoreitemQueryAPIResponse struct { - model.CommonResponse - TaobaoQimenStoreitemQueryResponse -} - -// 门店关联商品查询接口 成功返回结果 -type TaobaoQimenStoreitemQueryResponse struct { - XMLName xml.Name `xml:"qimen_storeitem_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应消息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 商品列表 - ItemIds []string `json:"item_ids,omitempty" xml:"item_ids>string,omitempty"` - // 响应标签 - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // 商品总数 - TotalLines int64 `json:"total_lines,omitempty" xml:"total_lines,omitempty"` - // 响应code - QimenCode string `json:"qimen_code,omitempty" xml:"qimen_code,omitempty"` -} diff --git a/model/qimen/TaobaoQimenStoreprocessConfirmAPIRequest.go b/model/qimen/TaobaoQimenStoreprocessConfirmAPIRequest.go new file mode 100644 index 0000000000..b9869760d0 --- /dev/null +++ b/model/qimen/TaobaoQimenStoreprocessConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +仓内加工单确认接口 API请求 +taobao.qimen.storeprocess.confirm + +WMS调用奇门的接口,回传仓内加工单创建情况 +*/ +type TaobaoQimenStoreprocessConfirmAPIRequest struct { + model.Params + // + _request *StoreProcessConfirmRequest +} + +// 初始化TaobaoQimenStoreprocessConfirmAPIRequest对象 +func NewTaobaoQimenStoreprocessConfirmRequest() *TaobaoQimenStoreprocessConfirmAPIRequest{ + return &TaobaoQimenStoreprocessConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenStoreprocessConfirmAPIRequest) GetApiMethodName() string { + return "taobao.qimen.storeprocess.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenStoreprocessConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenStoreprocessConfirmAPIRequest) SetRequest(_request *StoreProcessConfirmRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenStoreprocessConfirmAPIRequest) GetRequest() *StoreProcessConfirmRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenStoreprocessConfirmAPIResponse.go b/model/qimen/TaobaoQimenStoreprocessConfirmAPIResponse.go new file mode 100644 index 0000000000..01d91cb29d --- /dev/null +++ b/model/qimen/TaobaoQimenStoreprocessConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +仓内加工单确认接口 API返回值 +taobao.qimen.storeprocess.confirm + +WMS调用奇门的接口,回传仓内加工单创建情况 +*/ +type TaobaoQimenStoreprocessConfirmAPIResponse struct { + model.CommonResponse + TaobaoQimenStoreprocessConfirmAPIResponseModel +} + +// 仓内加工单确认接口 成功返回结果 +type TaobaoQimenStoreprocessConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_storeprocess_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenStoreprocessConfirmResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenStoreprocessCreateAPIRequest.go b/model/qimen/TaobaoQimenStoreprocessCreateAPIRequest.go new file mode 100644 index 0000000000..39f29de580 --- /dev/null +++ b/model/qimen/TaobaoQimenStoreprocessCreateAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +仓内加工单创建接口 API请求 +taobao.qimen.storeprocess.create + +ERP调用奇门的接口,创建仓内加工单 +*/ +type TaobaoQimenStoreprocessCreateAPIRequest struct { + model.Params + // + _request *StoreProcessCreateRequest +} + +// 初始化TaobaoQimenStoreprocessCreateAPIRequest对象 +func NewTaobaoQimenStoreprocessCreateRequest() *TaobaoQimenStoreprocessCreateAPIRequest{ + return &TaobaoQimenStoreprocessCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenStoreprocessCreateAPIRequest) GetApiMethodName() string { + return "taobao.qimen.storeprocess.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenStoreprocessCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenStoreprocessCreateAPIRequest) SetRequest(_request *StoreProcessCreateRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenStoreprocessCreateAPIRequest) GetRequest() *StoreProcessCreateRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenStoreprocessCreateAPIResponse.go b/model/qimen/TaobaoQimenStoreprocessCreateAPIResponse.go new file mode 100644 index 0000000000..abbd6af6e0 --- /dev/null +++ b/model/qimen/TaobaoQimenStoreprocessCreateAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +仓内加工单创建接口 API返回值 +taobao.qimen.storeprocess.create + +ERP调用奇门的接口,创建仓内加工单 +*/ +type TaobaoQimenStoreprocessCreateAPIResponse struct { + model.CommonResponse + TaobaoQimenStoreprocessCreateAPIResponseModel +} + +// 仓内加工单创建接口 成功返回结果 +type TaobaoQimenStoreprocessCreateAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_storeprocess_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *StoreProcessCreateResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenStoreprocessCreateResponse.go b/model/qimen/TaobaoQimenStoreprocessCreateResponse.go deleted file mode 100644 index f4800306c2..0000000000 --- a/model/qimen/TaobaoQimenStoreprocessCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -仓内加工单创建接口 API返回值 -taobao.qimen.storeprocess.create - -ERP调用奇门的接口,创建仓内加工单 -*/ -type TaobaoQimenStoreprocessCreateAPIResponse struct { - model.CommonResponse - TaobaoQimenStoreprocessCreateResponse -} - -// 仓内加工单创建接口 成功返回结果 -type TaobaoQimenStoreprocessCreateResponse struct { - XMLName xml.Name `xml:"qimen_storeprocess_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *StoreProcessCreateResponse `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenSupplierSynchronizeAPIRequest.go b/model/qimen/TaobaoQimenSupplierSynchronizeAPIRequest.go new file mode 100644 index 0000000000..18aa5067a1 --- /dev/null +++ b/model/qimen/TaobaoQimenSupplierSynchronizeAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商同步接口 API请求 +taobao.qimen.supplier.synchronize + +这个接口用来同步供应商信息 +*/ +type TaobaoQimenSupplierSynchronizeAPIRequest struct { + model.Params + // + _request *TaobaoQimenSupplierSynchronizeRequest +} + +// 初始化TaobaoQimenSupplierSynchronizeAPIRequest对象 +func NewTaobaoQimenSupplierSynchronizeRequest() *TaobaoQimenSupplierSynchronizeAPIRequest{ + return &TaobaoQimenSupplierSynchronizeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenSupplierSynchronizeAPIRequest) GetApiMethodName() string { + return "taobao.qimen.supplier.synchronize" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenSupplierSynchronizeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenSupplierSynchronizeAPIRequest) SetRequest(_request *TaobaoQimenSupplierSynchronizeRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenSupplierSynchronizeAPIRequest) GetRequest() *TaobaoQimenSupplierSynchronizeRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenSupplierSynchronizeAPIResponse.go b/model/qimen/TaobaoQimenSupplierSynchronizeAPIResponse.go new file mode 100644 index 0000000000..8873ed0d0a --- /dev/null +++ b/model/qimen/TaobaoQimenSupplierSynchronizeAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商同步接口 API返回值 +taobao.qimen.supplier.synchronize + +这个接口用来同步供应商信息 +*/ +type TaobaoQimenSupplierSynchronizeAPIResponse struct { + model.CommonResponse + TaobaoQimenSupplierSynchronizeAPIResponseModel +} + +// 供应商同步接口 成功返回结果 +type TaobaoQimenSupplierSynchronizeAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_supplier_synchronize_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenSupplierSynchronizeResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenTransferorderCreateAPIRequest.go b/model/qimen/TaobaoQimenTransferorderCreateAPIRequest.go new file mode 100644 index 0000000000..4b7cac9bc7 --- /dev/null +++ b/model/qimen/TaobaoQimenTransferorderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +调拨单创建 API请求 +taobao.qimen.transferorder.create + +调拨单创建 +*/ +type TaobaoQimenTransferorderCreateAPIRequest struct { + model.Params + // + _request *TaobaoQimenTransferorderCreateStruct +} + +// 初始化TaobaoQimenTransferorderCreateAPIRequest对象 +func NewTaobaoQimenTransferorderCreateRequest() *TaobaoQimenTransferorderCreateAPIRequest{ + return &TaobaoQimenTransferorderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenTransferorderCreateAPIRequest) GetApiMethodName() string { + return "taobao.qimen.transferorder.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenTransferorderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenTransferorderCreateAPIRequest) SetRequest(_request *TaobaoQimenTransferorderCreateStruct) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenTransferorderCreateAPIRequest) GetRequest() *TaobaoQimenTransferorderCreateStruct { + return r._request +} diff --git a/model/qimen/TaobaoQimenTransferorderCreateAPIResponse.go b/model/qimen/TaobaoQimenTransferorderCreateAPIResponse.go new file mode 100644 index 0000000000..7169d2fd1b --- /dev/null +++ b/model/qimen/TaobaoQimenTransferorderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +调拨单创建 API返回值 +taobao.qimen.transferorder.create + +调拨单创建 +*/ +type TaobaoQimenTransferorderCreateAPIResponse struct { + model.CommonResponse + TaobaoQimenTransferorderCreateAPIResponseModel +} + +// 调拨单创建 成功返回结果 +type TaobaoQimenTransferorderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_transferorder_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenTransferorderCreateStruct `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenTransferorderCreateResponse.go b/model/qimen/TaobaoQimenTransferorderCreateResponse.go deleted file mode 100644 index 02e687ea62..0000000000 --- a/model/qimen/TaobaoQimenTransferorderCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -调拨单创建 API返回值 -taobao.qimen.transferorder.create - -调拨单创建 -*/ -type TaobaoQimenTransferorderCreateAPIResponse struct { - model.CommonResponse - TaobaoQimenTransferorderCreateResponse -} - -// 调拨单创建 成功返回结果 -type TaobaoQimenTransferorderCreateResponse struct { - XMLName xml.Name `xml:"qimen_transferorder_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *TaobaoQimenTransferorderCreateStruct `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenTransferorderQueryAPIRequest.go b/model/qimen/TaobaoQimenTransferorderQueryAPIRequest.go new file mode 100644 index 0000000000..6501dcb770 --- /dev/null +++ b/model/qimen/TaobaoQimenTransferorderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +调拨单查询 API请求 +taobao.qimen.transferorder.query + +调拨单查询 +*/ +type TaobaoQimenTransferorderQueryAPIRequest struct { + model.Params + // + _request *TaobaoQimenTransferorderQueryStruct +} + +// 初始化TaobaoQimenTransferorderQueryAPIRequest对象 +func NewTaobaoQimenTransferorderQueryRequest() *TaobaoQimenTransferorderQueryAPIRequest{ + return &TaobaoQimenTransferorderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenTransferorderQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.transferorder.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenTransferorderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenTransferorderQueryAPIRequest) SetRequest(_request *TaobaoQimenTransferorderQueryStruct) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenTransferorderQueryAPIRequest) GetRequest() *TaobaoQimenTransferorderQueryStruct { + return r._request +} diff --git a/model/qimen/TaobaoQimenTransferorderQueryAPIResponse.go b/model/qimen/TaobaoQimenTransferorderQueryAPIResponse.go new file mode 100644 index 0000000000..b5dde033ac --- /dev/null +++ b/model/qimen/TaobaoQimenTransferorderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +调拨单查询 API返回值 +taobao.qimen.transferorder.query + +调拨单查询 +*/ +type TaobaoQimenTransferorderQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenTransferorderQueryAPIResponseModel +} + +// 调拨单查询 成功返回结果 +type TaobaoQimenTransferorderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_transferorder_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenTransferorderQueryStruct `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenTransferorderQueryResponse.go b/model/qimen/TaobaoQimenTransferorderQueryResponse.go deleted file mode 100644 index 6ae3a6456f..0000000000 --- a/model/qimen/TaobaoQimenTransferorderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -调拨单查询 API返回值 -taobao.qimen.transferorder.query - -调拨单查询 -*/ -type TaobaoQimenTransferorderQueryAPIResponse struct { - model.CommonResponse - TaobaoQimenTransferorderQueryResponse -} - -// 调拨单查询 成功返回结果 -type TaobaoQimenTransferorderQueryResponse struct { - XMLName xml.Name `xml:"qimen_transferorder_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *TaobaoQimenTransferorderQueryStruct `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenTransferorderReportAPIRequest.go b/model/qimen/TaobaoQimenTransferorderReportAPIRequest.go new file mode 100644 index 0000000000..b4d9a6a161 --- /dev/null +++ b/model/qimen/TaobaoQimenTransferorderReportAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +调拨单通知 API请求 +taobao.qimen.transferorder.report + +调拨单通知 +*/ +type TaobaoQimenTransferorderReportAPIRequest struct { + model.Params + // + _request *TaobaoQimenTransferorderReportStruct +} + +// 初始化TaobaoQimenTransferorderReportAPIRequest对象 +func NewTaobaoQimenTransferorderReportRequest() *TaobaoQimenTransferorderReportAPIRequest{ + return &TaobaoQimenTransferorderReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenTransferorderReportAPIRequest) GetApiMethodName() string { + return "taobao.qimen.transferorder.report" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenTransferorderReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenTransferorderReportAPIRequest) SetRequest(_request *TaobaoQimenTransferorderReportStruct) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenTransferorderReportAPIRequest) GetRequest() *TaobaoQimenTransferorderReportStruct { + return r._request +} diff --git a/model/qimen/TaobaoQimenTransferorderReportAPIResponse.go b/model/qimen/TaobaoQimenTransferorderReportAPIResponse.go new file mode 100644 index 0000000000..32a6673394 --- /dev/null +++ b/model/qimen/TaobaoQimenTransferorderReportAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +调拨单通知 API返回值 +taobao.qimen.transferorder.report + +调拨单通知 +*/ +type TaobaoQimenTransferorderReportAPIResponse struct { + model.CommonResponse + TaobaoQimenTransferorderReportAPIResponseModel +} + +// 调拨单通知 成功返回结果 +type TaobaoQimenTransferorderReportAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_transferorder_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenTransferorderReportStruct `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenTransferorderReportResponse.go b/model/qimen/TaobaoQimenTransferorderReportResponse.go deleted file mode 100644 index 922df7d81b..0000000000 --- a/model/qimen/TaobaoQimenTransferorderReportResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qimen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -调拨单通知 API返回值 -taobao.qimen.transferorder.report - -调拨单通知 -*/ -type TaobaoQimenTransferorderReportAPIResponse struct { - model.CommonResponse - TaobaoQimenTransferorderReportResponse -} - -// 调拨单通知 成功返回结果 -type TaobaoQimenTransferorderReportResponse struct { - XMLName xml.Name `xml:"qimen_transferorder_report_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - Response *TaobaoQimenTransferorderReportStruct `json:"response,omitempty" xml:"response,omitempty"` -} diff --git a/model/qimen/TaobaoQimenWarehouseinfoQueryAPIRequest.go b/model/qimen/TaobaoQimenWarehouseinfoQueryAPIRequest.go new file mode 100644 index 0000000000..9af963db67 --- /dev/null +++ b/model/qimen/TaobaoQimenWarehouseinfoQueryAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +货主仓库资源查询接口 API请求 +taobao.qimen.warehouseinfo.query + +货主仓库资源查询 +*/ +type TaobaoQimenWarehouseinfoQueryAPIRequest struct { + model.Params + // + _request *TaobaoQimenWarehouseinfoQueryRequest +} + +// 初始化TaobaoQimenWarehouseinfoQueryAPIRequest对象 +func NewTaobaoQimenWarehouseinfoQueryRequest() *TaobaoQimenWarehouseinfoQueryAPIRequest{ + return &TaobaoQimenWarehouseinfoQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenWarehouseinfoQueryAPIRequest) GetApiMethodName() string { + return "taobao.qimen.warehouseinfo.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenWarehouseinfoQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenWarehouseinfoQueryAPIRequest) SetRequest(_request *TaobaoQimenWarehouseinfoQueryRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenWarehouseinfoQueryAPIRequest) GetRequest() *TaobaoQimenWarehouseinfoQueryRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenWarehouseinfoQueryAPIResponse.go b/model/qimen/TaobaoQimenWarehouseinfoQueryAPIResponse.go new file mode 100644 index 0000000000..aeec5dd3f5 --- /dev/null +++ b/model/qimen/TaobaoQimenWarehouseinfoQueryAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +货主仓库资源查询接口 API返回值 +taobao.qimen.warehouseinfo.query + +货主仓库资源查询 +*/ +type TaobaoQimenWarehouseinfoQueryAPIResponse struct { + model.CommonResponse + TaobaoQimenWarehouseinfoQueryAPIResponseModel +} + +// 货主仓库资源查询接口 成功返回结果 +type TaobaoQimenWarehouseinfoQueryAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_warehouseinfo_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenWarehouseinfoQueryResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenWarehouseinfoSynchronizeAPIRequest.go b/model/qimen/TaobaoQimenWarehouseinfoSynchronizeAPIRequest.go new file mode 100644 index 0000000000..e179df3152 --- /dev/null +++ b/model/qimen/TaobaoQimenWarehouseinfoSynchronizeAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +仓库同步接口 API请求 +taobao.qimen.warehouseinfo.synchronize + +仓库同步接口 +*/ +type TaobaoQimenWarehouseinfoSynchronizeAPIRequest struct { + model.Params + // 请求报文 + _request *TaobaoQimenWarehouseinfoSynchronizeRequest +} + +// 初始化TaobaoQimenWarehouseinfoSynchronizeAPIRequest对象 +func NewTaobaoQimenWarehouseinfoSynchronizeRequest() *TaobaoQimenWarehouseinfoSynchronizeAPIRequest{ + return &TaobaoQimenWarehouseinfoSynchronizeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenWarehouseinfoSynchronizeAPIRequest) GetApiMethodName() string { + return "taobao.qimen.warehouseinfo.synchronize" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenWarehouseinfoSynchronizeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// 请求报文 +func (r *TaobaoQimenWarehouseinfoSynchronizeAPIRequest) SetRequest(_request *TaobaoQimenWarehouseinfoSynchronizeRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenWarehouseinfoSynchronizeAPIRequest) GetRequest() *TaobaoQimenWarehouseinfoSynchronizeRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenWarehouseinfoSynchronizeAPIResponse.go b/model/qimen/TaobaoQimenWarehouseinfoSynchronizeAPIResponse.go new file mode 100644 index 0000000000..22f2ad32a2 --- /dev/null +++ b/model/qimen/TaobaoQimenWarehouseinfoSynchronizeAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +仓库同步接口 API返回值 +taobao.qimen.warehouseinfo.synchronize + +仓库同步接口 +*/ +type TaobaoQimenWarehouseinfoSynchronizeAPIResponse struct { + model.CommonResponse + TaobaoQimenWarehouseinfoSynchronizeAPIResponseModel +} + +// 仓库同步接口 成功返回结果 +type TaobaoQimenWarehouseinfoSynchronizeAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_warehouseinfo_synchronize_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应报文 + Response *TaobaoQimenWarehouseinfoSynchronizeResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qimen/TaobaoQimenWavenumReportAPIRequest.go b/model/qimen/TaobaoQimenWavenumReportAPIRequest.go new file mode 100644 index 0000000000..5059f4add8 --- /dev/null +++ b/model/qimen/TaobaoQimenWavenumReportAPIRequest.go @@ -0,0 +1,52 @@ +package qimen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发货单波次通知接口 API请求 +taobao.qimen.wavenum.report + +WMS调用奇门的接口,该接口用来给ERP或者OMS回传波次号及对应的发货单号,以支持商家货票同行、波次内包裹的处理等需求 +*/ +type TaobaoQimenWavenumReportAPIRequest struct { + model.Params + // + _request *WaveNumReportRequest +} + +// 初始化TaobaoQimenWavenumReportAPIRequest对象 +func NewTaobaoQimenWavenumReportRequest() *TaobaoQimenWavenumReportAPIRequest{ + return &TaobaoQimenWavenumReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenWavenumReportAPIRequest) GetApiMethodName() string { + return "taobao.qimen.wavenum.report" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenWavenumReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Request Setter +// +func (r *TaobaoQimenWavenumReportAPIRequest) SetRequest(_request *WaveNumReportRequest) error { + r._request = _request + r.Set("request", _request) + return nil +} + +// Request Getter +func (r TaobaoQimenWavenumReportAPIRequest) GetRequest() *WaveNumReportRequest { + return r._request +} diff --git a/model/qimen/TaobaoQimenWavenumReportAPIResponse.go b/model/qimen/TaobaoQimenWavenumReportAPIResponse.go new file mode 100644 index 0000000000..8948fd429c --- /dev/null +++ b/model/qimen/TaobaoQimenWavenumReportAPIResponse.go @@ -0,0 +1,27 @@ +package qimen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发货单波次通知接口 API返回值 +taobao.qimen.wavenum.report + +WMS调用奇门的接口,该接口用来给ERP或者OMS回传波次号及对应的发货单号,以支持商家货票同行、波次内包裹的处理等需求 +*/ +type TaobaoQimenWavenumReportAPIResponse struct { + model.CommonResponse + TaobaoQimenWavenumReportAPIResponseModel +} + +// 发货单波次通知接口 成功返回结果 +type TaobaoQimenWavenumReportAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_wavenum_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // + Response *TaobaoQimenWavenumReportResponse `json:"response,omitempty" xml:"response,omitempty"` +} diff --git a/model/qt/TaobaoQtReportAddAPIRequest.go b/model/qt/TaobaoQtReportAddAPIRequest.go new file mode 100644 index 0000000000..05525fc27e --- /dev/null +++ b/model/qt/TaobaoQtReportAddAPIRequest.go @@ -0,0 +1,290 @@ +package qt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传质检报告 API请求 +taobao.qt.report.add + +上传质检报告 +*/ +type TaobaoQtReportAddAPIRequest struct { + model.Params + // 收费项code + _servcieItemCode string + // 质检服务商名称 + _spName string + // 送检者昵称 + _nick string + // 一个质检服务唯一标识质量检验单的编号 + _qtCode string + // 质检名称 + _qtName string + // 样品链接.
QT_TYPE=9的时候,请填写N\A + _itemUrl string + // 样品信息描述 + _itemDesc string + // (1L, "聚划算"),
(2L, "消保"),
(3L, "分销"),
(4L, "抽检"),
(5L, "良无限线下数据"),
(6L, "入驻/续签商城"),
(7L, "买家质检维权"),
(8L, "实地验证"),
(9L, "淘宝买家订单商品鉴定"),
(10L,"假一赔三"); + _qtType int64 + // 质检标准
status=3 时 必须非空 + _qtStandard string + // 质检报告源文件url
status状态为3时必须非空 + _reportUrl string + // 0:已提交申请
1:已收到样品
2:已出检测结果
3.已出具报告 + _status int64 + // 只有status=3时赋值,
true 质检结果合格,false质检结果不合格.
留空表示成分鉴定,不做判定 + _isPassed bool + // 检测结果消息描述 + _message string + // 自定义属性字段;分号分隔 + _extAttr string + // 送检日期 + _gmtSubmit string + // 提交报告结果时间 + _gmtReport string + // 质检有效到期时间,一般为一年有效期
status状态为3时必须非空 + _gmtExpiry string + // 当前接口只有淘宝订单真假鉴定(QT_TYPE=9)的报告在该字段传入订单号,其他类型报告都不需要传输该值 + _numIid int64 +} + +// 初始化TaobaoQtReportAddAPIRequest对象 +func NewTaobaoQtReportAddRequest() *TaobaoQtReportAddAPIRequest{ + return &TaobaoQtReportAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQtReportAddAPIRequest) GetApiMethodName() string { + return "taobao.qt.report.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQtReportAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServcieItemCode Setter +// 收费项code +func (r *TaobaoQtReportAddAPIRequest) SetServcieItemCode(_servcieItemCode string) error { + r._servcieItemCode = _servcieItemCode + r.Set("servcie_item_code", _servcieItemCode) + return nil +} + +// ServcieItemCode Getter +func (r TaobaoQtReportAddAPIRequest) GetServcieItemCode() string { + return r._servcieItemCode +} +// SpName Setter +// 质检服务商名称 +func (r *TaobaoQtReportAddAPIRequest) SetSpName(_spName string) error { + r._spName = _spName + r.Set("sp_name", _spName) + return nil +} + +// SpName Getter +func (r TaobaoQtReportAddAPIRequest) GetSpName() string { + return r._spName +} +// Nick Setter +// 送检者昵称 +func (r *TaobaoQtReportAddAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoQtReportAddAPIRequest) GetNick() string { + return r._nick +} +// QtCode Setter +// 一个质检服务唯一标识质量检验单的编号 +func (r *TaobaoQtReportAddAPIRequest) SetQtCode(_qtCode string) error { + r._qtCode = _qtCode + r.Set("qt_code", _qtCode) + return nil +} + +// QtCode Getter +func (r TaobaoQtReportAddAPIRequest) GetQtCode() string { + return r._qtCode +} +// QtName Setter +// 质检名称 +func (r *TaobaoQtReportAddAPIRequest) SetQtName(_qtName string) error { + r._qtName = _qtName + r.Set("qt_name", _qtName) + return nil +} + +// QtName Getter +func (r TaobaoQtReportAddAPIRequest) GetQtName() string { + return r._qtName +} +// ItemUrl Setter +// 样品链接.
QT_TYPE=9的时候,请填写N\A +func (r *TaobaoQtReportAddAPIRequest) SetItemUrl(_itemUrl string) error { + r._itemUrl = _itemUrl + r.Set("item_url", _itemUrl) + return nil +} + +// ItemUrl Getter +func (r TaobaoQtReportAddAPIRequest) GetItemUrl() string { + return r._itemUrl +} +// ItemDesc Setter +// 样品信息描述 +func (r *TaobaoQtReportAddAPIRequest) SetItemDesc(_itemDesc string) error { + r._itemDesc = _itemDesc + r.Set("item_desc", _itemDesc) + return nil +} + +// ItemDesc Getter +func (r TaobaoQtReportAddAPIRequest) GetItemDesc() string { + return r._itemDesc +} +// QtType Setter +// (1L, "聚划算"),
(2L, "消保"),
(3L, "分销"),
(4L, "抽检"),
(5L, "良无限线下数据"),
(6L, "入驻/续签商城"),
(7L, "买家质检维权"),
(8L, "实地验证"),
(9L, "淘宝买家订单商品鉴定"),
(10L,"假一赔三"); +func (r *TaobaoQtReportAddAPIRequest) SetQtType(_qtType int64) error { + r._qtType = _qtType + r.Set("qt_type", _qtType) + return nil +} + +// QtType Getter +func (r TaobaoQtReportAddAPIRequest) GetQtType() int64 { + return r._qtType +} +// QtStandard Setter +// 质检标准
status=3 时 必须非空 +func (r *TaobaoQtReportAddAPIRequest) SetQtStandard(_qtStandard string) error { + r._qtStandard = _qtStandard + r.Set("qt_standard", _qtStandard) + return nil +} + +// QtStandard Getter +func (r TaobaoQtReportAddAPIRequest) GetQtStandard() string { + return r._qtStandard +} +// ReportUrl Setter +// 质检报告源文件url
status状态为3时必须非空 +func (r *TaobaoQtReportAddAPIRequest) SetReportUrl(_reportUrl string) error { + r._reportUrl = _reportUrl + r.Set("report_url", _reportUrl) + return nil +} + +// ReportUrl Getter +func (r TaobaoQtReportAddAPIRequest) GetReportUrl() string { + return r._reportUrl +} +// Status Setter +// 0:已提交申请
1:已收到样品
2:已出检测结果
3.已出具报告 +func (r *TaobaoQtReportAddAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoQtReportAddAPIRequest) GetStatus() int64 { + return r._status +} +// IsPassed Setter +// 只有status=3时赋值,
true 质检结果合格,false质检结果不合格.
留空表示成分鉴定,不做判定 +func (r *TaobaoQtReportAddAPIRequest) SetIsPassed(_isPassed bool) error { + r._isPassed = _isPassed + r.Set("is_passed", _isPassed) + return nil +} + +// IsPassed Getter +func (r TaobaoQtReportAddAPIRequest) GetIsPassed() bool { + return r._isPassed +} +// Message Setter +// 检测结果消息描述 +func (r *TaobaoQtReportAddAPIRequest) SetMessage(_message string) error { + r._message = _message + r.Set("message", _message) + return nil +} + +// Message Getter +func (r TaobaoQtReportAddAPIRequest) GetMessage() string { + return r._message +} +// ExtAttr Setter +// 自定义属性字段;分号分隔 +func (r *TaobaoQtReportAddAPIRequest) SetExtAttr(_extAttr string) error { + r._extAttr = _extAttr + r.Set("ext_attr", _extAttr) + return nil +} + +// ExtAttr Getter +func (r TaobaoQtReportAddAPIRequest) GetExtAttr() string { + return r._extAttr +} +// GmtSubmit Setter +// 送检日期 +func (r *TaobaoQtReportAddAPIRequest) SetGmtSubmit(_gmtSubmit string) error { + r._gmtSubmit = _gmtSubmit + r.Set("gmt_submit", _gmtSubmit) + return nil +} + +// GmtSubmit Getter +func (r TaobaoQtReportAddAPIRequest) GetGmtSubmit() string { + return r._gmtSubmit +} +// GmtReport Setter +// 提交报告结果时间 +func (r *TaobaoQtReportAddAPIRequest) SetGmtReport(_gmtReport string) error { + r._gmtReport = _gmtReport + r.Set("gmt_report", _gmtReport) + return nil +} + +// GmtReport Getter +func (r TaobaoQtReportAddAPIRequest) GetGmtReport() string { + return r._gmtReport +} +// GmtExpiry Setter +// 质检有效到期时间,一般为一年有效期
status状态为3时必须非空 +func (r *TaobaoQtReportAddAPIRequest) SetGmtExpiry(_gmtExpiry string) error { + r._gmtExpiry = _gmtExpiry + r.Set("gmt_expiry", _gmtExpiry) + return nil +} + +// GmtExpiry Getter +func (r TaobaoQtReportAddAPIRequest) GetGmtExpiry() string { + return r._gmtExpiry +} +// NumIid Setter +// 当前接口只有淘宝订单真假鉴定(QT_TYPE=9)的报告在该字段传入订单号,其他类型报告都不需要传输该值 +func (r *TaobaoQtReportAddAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoQtReportAddAPIRequest) GetNumIid() int64 { + return r._numIid +} diff --git a/model/qt/TaobaoQtReportAddAPIResponse.go b/model/qt/TaobaoQtReportAddAPIResponse.go new file mode 100644 index 0000000000..8d32cd58ef --- /dev/null +++ b/model/qt/TaobaoQtReportAddAPIResponse.go @@ -0,0 +1,27 @@ +package qt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传质检报告 API返回值 +taobao.qt.report.add + +上传质检报告 +*/ +type TaobaoQtReportAddAPIResponse struct { + model.CommonResponse + TaobaoQtReportAddAPIResponseModel +} + +// 上传质检报告 成功返回结果 +type TaobaoQtReportAddAPIResponseModel struct { + XMLName xml.Name `xml:"qt_report_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/qt/TaobaoQtReportAddResponse.go b/model/qt/TaobaoQtReportAddResponse.go deleted file mode 100644 index 3eefd443b5..0000000000 --- a/model/qt/TaobaoQtReportAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传质检报告 API返回值 -taobao.qt.report.add - -上传质检报告 -*/ -type TaobaoQtReportAddAPIResponse struct { - model.CommonResponse - TaobaoQtReportAddResponse -} - -// 上传质检报告 成功返回结果 -type TaobaoQtReportAddResponse struct { - XMLName xml.Name `xml:"qt_report_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/qt/TaobaoQtReportDeleteAPIRequest.go b/model/qt/TaobaoQtReportDeleteAPIRequest.go new file mode 100644 index 0000000000..f3fed2d045 --- /dev/null +++ b/model/qt/TaobaoQtReportDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package qt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +质检报告删除接口 API请求 +taobao.qt.report.delete + +删除质检报告 +*/ +type TaobaoQtReportDeleteAPIRequest struct { + model.Params + // 一个质检服务唯一标识质量检验单的编号 + _qtCode string +} + +// 初始化TaobaoQtReportDeleteAPIRequest对象 +func NewTaobaoQtReportDeleteRequest() *TaobaoQtReportDeleteAPIRequest{ + return &TaobaoQtReportDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQtReportDeleteAPIRequest) GetApiMethodName() string { + return "taobao.qt.report.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQtReportDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QtCode Setter +// 一个质检服务唯一标识质量检验单的编号 +func (r *TaobaoQtReportDeleteAPIRequest) SetQtCode(_qtCode string) error { + r._qtCode = _qtCode + r.Set("qt_code", _qtCode) + return nil +} + +// QtCode Getter +func (r TaobaoQtReportDeleteAPIRequest) GetQtCode() string { + return r._qtCode +} diff --git a/model/qt/TaobaoQtReportDeleteAPIResponse.go b/model/qt/TaobaoQtReportDeleteAPIResponse.go new file mode 100644 index 0000000000..88d2344540 --- /dev/null +++ b/model/qt/TaobaoQtReportDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package qt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +质检报告删除接口 API返回值 +taobao.qt.report.delete + +删除质检报告 +*/ +type TaobaoQtReportDeleteAPIResponse struct { + model.CommonResponse + TaobaoQtReportDeleteAPIResponseModel +} + +// 质检报告删除接口 成功返回结果 +type TaobaoQtReportDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"qt_report_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/qt/TaobaoQtReportDeleteResponse.go b/model/qt/TaobaoQtReportDeleteResponse.go deleted file mode 100644 index df07ab3f8a..0000000000 --- a/model/qt/TaobaoQtReportDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -质检报告删除接口 API返回值 -taobao.qt.report.delete - -删除质检报告 -*/ -type TaobaoQtReportDeleteAPIResponse struct { - model.CommonResponse - TaobaoQtReportDeleteResponse -} - -// 质检报告删除接口 成功返回结果 -type TaobaoQtReportDeleteResponse struct { - XMLName xml.Name `xml:"qt_report_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/qt/TaobaoQtReportGetAPIRequest.go b/model/qt/TaobaoQtReportGetAPIRequest.go new file mode 100644 index 0000000000..8041aa4303 --- /dev/null +++ b/model/qt/TaobaoQtReportGetAPIRequest.go @@ -0,0 +1,52 @@ +package qt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询质检报告 API请求 +taobao.qt.report.get + +质检报告查询 +*/ +type TaobaoQtReportGetAPIRequest struct { + model.Params + // 质检编号 + _qtCode string +} + +// 初始化TaobaoQtReportGetAPIRequest对象 +func NewTaobaoQtReportGetRequest() *TaobaoQtReportGetAPIRequest{ + return &TaobaoQtReportGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQtReportGetAPIRequest) GetApiMethodName() string { + return "taobao.qt.report.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQtReportGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QtCode Setter +// 质检编号 +func (r *TaobaoQtReportGetAPIRequest) SetQtCode(_qtCode string) error { + r._qtCode = _qtCode + r.Set("qt_code", _qtCode) + return nil +} + +// QtCode Getter +func (r TaobaoQtReportGetAPIRequest) GetQtCode() string { + return r._qtCode +} diff --git a/model/qt/TaobaoQtReportGetAPIResponse.go b/model/qt/TaobaoQtReportGetAPIResponse.go new file mode 100644 index 0000000000..022c123b73 --- /dev/null +++ b/model/qt/TaobaoQtReportGetAPIResponse.go @@ -0,0 +1,27 @@ +package qt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询质检报告 API返回值 +taobao.qt.report.get + +质检报告查询 +*/ +type TaobaoQtReportGetAPIResponse struct { + model.CommonResponse + TaobaoQtReportGetAPIResponseModel +} + +// 查询质检报告 成功返回结果 +type TaobaoQtReportGetAPIResponseModel struct { + XMLName xml.Name `xml:"qt_report_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 质检报告对象 + QtReport *QtReport `json:"qt_report,omitempty" xml:"qt_report,omitempty"` +} diff --git a/model/qt/TaobaoQtReportGetResponse.go b/model/qt/TaobaoQtReportGetResponse.go deleted file mode 100644 index 08b54ec760..0000000000 --- a/model/qt/TaobaoQtReportGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询质检报告 API返回值 -taobao.qt.report.get - -质检报告查询 -*/ -type TaobaoQtReportGetAPIResponse struct { - model.CommonResponse - TaobaoQtReportGetResponse -} - -// 查询质检报告 成功返回结果 -type TaobaoQtReportGetResponse struct { - XMLName xml.Name `xml:"qt_report_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 质检报告对象 - QtReport *QtReport `json:"qt_report,omitempty" xml:"qt_report,omitempty"` -} diff --git a/model/qt/TaobaoQtReportUpdateAPIRequest.go b/model/qt/TaobaoQtReportUpdateAPIRequest.go new file mode 100644 index 0000000000..c5cbbe5fce --- /dev/null +++ b/model/qt/TaobaoQtReportUpdateAPIRequest.go @@ -0,0 +1,290 @@ +package qt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新质检报告 API请求 +taobao.qt.report.update + +更新质检报告 +*/ +type TaobaoQtReportUpdateAPIRequest struct { + model.Params + // 收费项code + _servcieItemCode string + // 质检服务商名称 + _spName string + // 送检者昵称 + _nick string + // 一个质检服务唯一标识质量检验单的编号 + _qtCode string + // 质检名称 + _qtName string + // 宝贝样品url + _itemUrl string + // 样品宝贝描述 + _itemDesc string + // (1L, "聚划算"),
(2L, "消保"),
(3L, "分销"),
(4L, "抽检"),
(5L, "良无限线下数据"),
(6L, "入驻/续签商城"),
(7L, "买家质检维权"),
(8L, "实地验证"),
(9L, "淘宝买家订单商品鉴定"),
(10L,"假一赔三"); + _qtType int64 + // 质检标准
status=3 时必须非空 + _qtStandard string + // 质检报告源文件url
status状态为3时必须非空 + _reportUrl string + // 0:已提交申请
1:已收到样品
2:已出检测结果
3.已出具报告 + _status int64 + // 只有status=3时赋值,
0:未通过1:通过 空代表未判定 + _isPassed bool + // 检测结果消息描述 + _message string + // 自定义属性字段;分号分隔 + _extAttr string + // 送检日期 + _gmtSubmit string + // 提交报告结果时间 + _gmtReport string + // 质检有效到期时间,一般为一年有效期
status状态为3时必须非空 + _gmtExpiry string + // 外部ID,和QT_TYPE 一起表示某种平台的实体ID。QT_TYPE=9的时候,num_iid为淘宝订单号 + _numIid int64 +} + +// 初始化TaobaoQtReportUpdateAPIRequest对象 +func NewTaobaoQtReportUpdateRequest() *TaobaoQtReportUpdateAPIRequest{ + return &TaobaoQtReportUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQtReportUpdateAPIRequest) GetApiMethodName() string { + return "taobao.qt.report.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQtReportUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServcieItemCode Setter +// 收费项code +func (r *TaobaoQtReportUpdateAPIRequest) SetServcieItemCode(_servcieItemCode string) error { + r._servcieItemCode = _servcieItemCode + r.Set("servcie_item_code", _servcieItemCode) + return nil +} + +// ServcieItemCode Getter +func (r TaobaoQtReportUpdateAPIRequest) GetServcieItemCode() string { + return r._servcieItemCode +} +// SpName Setter +// 质检服务商名称 +func (r *TaobaoQtReportUpdateAPIRequest) SetSpName(_spName string) error { + r._spName = _spName + r.Set("sp_name", _spName) + return nil +} + +// SpName Getter +func (r TaobaoQtReportUpdateAPIRequest) GetSpName() string { + return r._spName +} +// Nick Setter +// 送检者昵称 +func (r *TaobaoQtReportUpdateAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoQtReportUpdateAPIRequest) GetNick() string { + return r._nick +} +// QtCode Setter +// 一个质检服务唯一标识质量检验单的编号 +func (r *TaobaoQtReportUpdateAPIRequest) SetQtCode(_qtCode string) error { + r._qtCode = _qtCode + r.Set("qt_code", _qtCode) + return nil +} + +// QtCode Getter +func (r TaobaoQtReportUpdateAPIRequest) GetQtCode() string { + return r._qtCode +} +// QtName Setter +// 质检名称 +func (r *TaobaoQtReportUpdateAPIRequest) SetQtName(_qtName string) error { + r._qtName = _qtName + r.Set("qt_name", _qtName) + return nil +} + +// QtName Getter +func (r TaobaoQtReportUpdateAPIRequest) GetQtName() string { + return r._qtName +} +// ItemUrl Setter +// 宝贝样品url +func (r *TaobaoQtReportUpdateAPIRequest) SetItemUrl(_itemUrl string) error { + r._itemUrl = _itemUrl + r.Set("item_url", _itemUrl) + return nil +} + +// ItemUrl Getter +func (r TaobaoQtReportUpdateAPIRequest) GetItemUrl() string { + return r._itemUrl +} +// ItemDesc Setter +// 样品宝贝描述 +func (r *TaobaoQtReportUpdateAPIRequest) SetItemDesc(_itemDesc string) error { + r._itemDesc = _itemDesc + r.Set("item_desc", _itemDesc) + return nil +} + +// ItemDesc Getter +func (r TaobaoQtReportUpdateAPIRequest) GetItemDesc() string { + return r._itemDesc +} +// QtType Setter +// (1L, "聚划算"),
(2L, "消保"),
(3L, "分销"),
(4L, "抽检"),
(5L, "良无限线下数据"),
(6L, "入驻/续签商城"),
(7L, "买家质检维权"),
(8L, "实地验证"),
(9L, "淘宝买家订单商品鉴定"),
(10L,"假一赔三"); +func (r *TaobaoQtReportUpdateAPIRequest) SetQtType(_qtType int64) error { + r._qtType = _qtType + r.Set("qt_type", _qtType) + return nil +} + +// QtType Getter +func (r TaobaoQtReportUpdateAPIRequest) GetQtType() int64 { + return r._qtType +} +// QtStandard Setter +// 质检标准
status=3 时必须非空 +func (r *TaobaoQtReportUpdateAPIRequest) SetQtStandard(_qtStandard string) error { + r._qtStandard = _qtStandard + r.Set("qt_standard", _qtStandard) + return nil +} + +// QtStandard Getter +func (r TaobaoQtReportUpdateAPIRequest) GetQtStandard() string { + return r._qtStandard +} +// ReportUrl Setter +// 质检报告源文件url
status状态为3时必须非空 +func (r *TaobaoQtReportUpdateAPIRequest) SetReportUrl(_reportUrl string) error { + r._reportUrl = _reportUrl + r.Set("report_url", _reportUrl) + return nil +} + +// ReportUrl Getter +func (r TaobaoQtReportUpdateAPIRequest) GetReportUrl() string { + return r._reportUrl +} +// Status Setter +// 0:已提交申请
1:已收到样品
2:已出检测结果
3.已出具报告 +func (r *TaobaoQtReportUpdateAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoQtReportUpdateAPIRequest) GetStatus() int64 { + return r._status +} +// IsPassed Setter +// 只有status=3时赋值,
0:未通过1:通过 空代表未判定 +func (r *TaobaoQtReportUpdateAPIRequest) SetIsPassed(_isPassed bool) error { + r._isPassed = _isPassed + r.Set("is_passed", _isPassed) + return nil +} + +// IsPassed Getter +func (r TaobaoQtReportUpdateAPIRequest) GetIsPassed() bool { + return r._isPassed +} +// Message Setter +// 检测结果消息描述 +func (r *TaobaoQtReportUpdateAPIRequest) SetMessage(_message string) error { + r._message = _message + r.Set("message", _message) + return nil +} + +// Message Getter +func (r TaobaoQtReportUpdateAPIRequest) GetMessage() string { + return r._message +} +// ExtAttr Setter +// 自定义属性字段;分号分隔 +func (r *TaobaoQtReportUpdateAPIRequest) SetExtAttr(_extAttr string) error { + r._extAttr = _extAttr + r.Set("ext_attr", _extAttr) + return nil +} + +// ExtAttr Getter +func (r TaobaoQtReportUpdateAPIRequest) GetExtAttr() string { + return r._extAttr +} +// GmtSubmit Setter +// 送检日期 +func (r *TaobaoQtReportUpdateAPIRequest) SetGmtSubmit(_gmtSubmit string) error { + r._gmtSubmit = _gmtSubmit + r.Set("gmt_submit", _gmtSubmit) + return nil +} + +// GmtSubmit Getter +func (r TaobaoQtReportUpdateAPIRequest) GetGmtSubmit() string { + return r._gmtSubmit +} +// GmtReport Setter +// 提交报告结果时间 +func (r *TaobaoQtReportUpdateAPIRequest) SetGmtReport(_gmtReport string) error { + r._gmtReport = _gmtReport + r.Set("gmt_report", _gmtReport) + return nil +} + +// GmtReport Getter +func (r TaobaoQtReportUpdateAPIRequest) GetGmtReport() string { + return r._gmtReport +} +// GmtExpiry Setter +// 质检有效到期时间,一般为一年有效期
status状态为3时必须非空 +func (r *TaobaoQtReportUpdateAPIRequest) SetGmtExpiry(_gmtExpiry string) error { + r._gmtExpiry = _gmtExpiry + r.Set("gmt_expiry", _gmtExpiry) + return nil +} + +// GmtExpiry Getter +func (r TaobaoQtReportUpdateAPIRequest) GetGmtExpiry() string { + return r._gmtExpiry +} +// NumIid Setter +// 外部ID,和QT_TYPE 一起表示某种平台的实体ID。QT_TYPE=9的时候,num_iid为淘宝订单号 +func (r *TaobaoQtReportUpdateAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoQtReportUpdateAPIRequest) GetNumIid() int64 { + return r._numIid +} diff --git a/model/qt/TaobaoQtReportUpdateAPIResponse.go b/model/qt/TaobaoQtReportUpdateAPIResponse.go new file mode 100644 index 0000000000..c0b5c4c5f3 --- /dev/null +++ b/model/qt/TaobaoQtReportUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package qt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新质检报告 API返回值 +taobao.qt.report.update + +更新质检报告 +*/ +type TaobaoQtReportUpdateAPIResponse struct { + model.CommonResponse + TaobaoQtReportUpdateAPIResponseModel +} + +// 更新质检报告 成功返回结果 +type TaobaoQtReportUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"qt_report_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/qt/TaobaoQtReportUpdateResponse.go b/model/qt/TaobaoQtReportUpdateResponse.go deleted file mode 100644 index b80681e6e1..0000000000 --- a/model/qt/TaobaoQtReportUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新质检报告 API返回值 -taobao.qt.report.update - -更新质检报告 -*/ -type TaobaoQtReportUpdateAPIResponse struct { - model.CommonResponse - TaobaoQtReportUpdateResponse -} - -// 更新质检报告 成功返回结果 -type TaobaoQtReportUpdateResponse struct { - XMLName xml.Name `xml:"qt_report_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/qt/TaobaoQtReportsGetAPIRequest.go b/model/qt/TaobaoQtReportsGetAPIRequest.go new file mode 100644 index 0000000000..5a11b42b6f --- /dev/null +++ b/model/qt/TaobaoQtReportsGetAPIRequest.go @@ -0,0 +1,122 @@ +package qt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询质检报告 API请求 +taobao.qt.reports.get + +批量查询质检报告,目前只支持查询qtType=11(天猫真假鉴定)类型的报告 +*/ +type TaobaoQtReportsGetAPIRequest struct { + model.Params + // 质检服务商名 + _spName string + // 质检类型,目前只支持查询qt_type=11的类型 + _qtType int64 + // 收费项code + _servcieItemCode string + // 送检者昵称 + _nick string + // 查询时间段的开始时间 + _startTime string + // 查询时间段的结束时间 + _endTime string +} + +// 初始化TaobaoQtReportsGetAPIRequest对象 +func NewTaobaoQtReportsGetRequest() *TaobaoQtReportsGetAPIRequest{ + return &TaobaoQtReportsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQtReportsGetAPIRequest) GetApiMethodName() string { + return "taobao.qt.reports.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQtReportsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SpName Setter +// 质检服务商名 +func (r *TaobaoQtReportsGetAPIRequest) SetSpName(_spName string) error { + r._spName = _spName + r.Set("sp_name", _spName) + return nil +} + +// SpName Getter +func (r TaobaoQtReportsGetAPIRequest) GetSpName() string { + return r._spName +} +// QtType Setter +// 质检类型,目前只支持查询qt_type=11的类型 +func (r *TaobaoQtReportsGetAPIRequest) SetQtType(_qtType int64) error { + r._qtType = _qtType + r.Set("qt_type", _qtType) + return nil +} + +// QtType Getter +func (r TaobaoQtReportsGetAPIRequest) GetQtType() int64 { + return r._qtType +} +// ServcieItemCode Setter +// 收费项code +func (r *TaobaoQtReportsGetAPIRequest) SetServcieItemCode(_servcieItemCode string) error { + r._servcieItemCode = _servcieItemCode + r.Set("servcie_item_code", _servcieItemCode) + return nil +} + +// ServcieItemCode Getter +func (r TaobaoQtReportsGetAPIRequest) GetServcieItemCode() string { + return r._servcieItemCode +} +// Nick Setter +// 送检者昵称 +func (r *TaobaoQtReportsGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoQtReportsGetAPIRequest) GetNick() string { + return r._nick +} +// StartTime Setter +// 查询时间段的开始时间 +func (r *TaobaoQtReportsGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoQtReportsGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 查询时间段的结束时间 +func (r *TaobaoQtReportsGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoQtReportsGetAPIRequest) GetEndTime() string { + return r._endTime +} diff --git a/model/qt/TaobaoQtReportsGetAPIResponse.go b/model/qt/TaobaoQtReportsGetAPIResponse.go new file mode 100644 index 0000000000..77960d9e65 --- /dev/null +++ b/model/qt/TaobaoQtReportsGetAPIResponse.go @@ -0,0 +1,27 @@ +package qt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询质检报告 API返回值 +taobao.qt.reports.get + +批量查询质检报告,目前只支持查询qtType=11(天猫真假鉴定)类型的报告 +*/ +type TaobaoQtReportsGetAPIResponse struct { + model.CommonResponse + TaobaoQtReportsGetAPIResponseModel +} + +// 批量查询质检报告 成功返回结果 +type TaobaoQtReportsGetAPIResponseModel struct { + XMLName xml.Name `xml:"qt_reports_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 质检报告列表 + Reports []QtReport `json:"reports,omitempty" xml:"reports>qt_report,omitempty"` +} diff --git a/model/qt/TaobaoQtReportsGetResponse.go b/model/qt/TaobaoQtReportsGetResponse.go deleted file mode 100644 index 3ab77bd8b3..0000000000 --- a/model/qt/TaobaoQtReportsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量查询质检报告 API返回值 -taobao.qt.reports.get - -批量查询质检报告,目前只支持查询qtType=11(天猫真假鉴定)类型的报告 -*/ -type TaobaoQtReportsGetAPIResponse struct { - model.CommonResponse - TaobaoQtReportsGetResponse -} - -// 批量查询质检报告 成功返回结果 -type TaobaoQtReportsGetResponse struct { - XMLName xml.Name `xml:"qt_reports_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 质检报告列表 - Reports []QtReport `json:"reports,omitempty" xml:"reports>qt_report,omitempty"` -} diff --git a/model/qt/TaobaoTsPropertyGetAPIRequest.go b/model/qt/TaobaoTsPropertyGetAPIRequest.go new file mode 100644 index 0000000000..440320064e --- /dev/null +++ b/model/qt/TaobaoTsPropertyGetAPIRequest.go @@ -0,0 +1,52 @@ +package qt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝服务属性查询 API请求 +taobao.ts.property.get + +淘宝服务属性查询 +*/ +type TaobaoTsPropertyGetAPIRequest struct { + model.Params + // 服务收费项code + _serviceItemCode string +} + +// 初始化TaobaoTsPropertyGetAPIRequest对象 +func NewTaobaoTsPropertyGetRequest() *TaobaoTsPropertyGetAPIRequest{ + return &TaobaoTsPropertyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTsPropertyGetAPIRequest) GetApiMethodName() string { + return "taobao.ts.property.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTsPropertyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceItemCode Setter +// 服务收费项code +func (r *TaobaoTsPropertyGetAPIRequest) SetServiceItemCode(_serviceItemCode string) error { + r._serviceItemCode = _serviceItemCode + r.Set("service_item_code", _serviceItemCode) + return nil +} + +// ServiceItemCode Getter +func (r TaobaoTsPropertyGetAPIRequest) GetServiceItemCode() string { + return r._serviceItemCode +} diff --git a/model/qt/TaobaoTsPropertyGetAPIResponse.go b/model/qt/TaobaoTsPropertyGetAPIResponse.go new file mode 100644 index 0000000000..98305c53a9 --- /dev/null +++ b/model/qt/TaobaoTsPropertyGetAPIResponse.go @@ -0,0 +1,27 @@ +package qt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝服务属性查询 API返回值 +taobao.ts.property.get + +淘宝服务属性查询 +*/ +type TaobaoTsPropertyGetAPIResponse struct { + model.CommonResponse + TaobaoTsPropertyGetAPIResponseModel +} + +// 淘宝服务属性查询 成功返回结果 +type TaobaoTsPropertyGetAPIResponseModel struct { + XMLName xml.Name `xml:"ts_property_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务收费项相关属性对象 + ServiceItemProperty *ServiceItemProperty `json:"service_item_property,omitempty" xml:"service_item_property,omitempty"` +} diff --git a/model/qt/TaobaoTsPropertyGetResponse.go b/model/qt/TaobaoTsPropertyGetResponse.go deleted file mode 100644 index 1f2823121c..0000000000 --- a/model/qt/TaobaoTsPropertyGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝服务属性查询 API返回值 -taobao.ts.property.get - -淘宝服务属性查询 -*/ -type TaobaoTsPropertyGetAPIResponse struct { - model.CommonResponse - TaobaoTsPropertyGetResponse -} - -// 淘宝服务属性查询 成功返回结果 -type TaobaoTsPropertyGetResponse struct { - XMLName xml.Name `xml:"ts_property_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务收费项相关属性对象 - ServiceItemProperty *ServiceItemProperty `json:"service_item_property,omitempty" xml:"service_item_property,omitempty"` -} diff --git a/model/qt/TaobaoTsSubscribeGetAPIRequest.go b/model/qt/TaobaoTsSubscribeGetAPIRequest.go new file mode 100644 index 0000000000..2105b2135e --- /dev/null +++ b/model/qt/TaobaoTsSubscribeGetAPIRequest.go @@ -0,0 +1,66 @@ +package qt + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝服务订购关系查询 API请求 +taobao.ts.subscribe.get + +ts订购关系状态查询. 暂只支持1口价服务. +*/ +type TaobaoTsSubscribeGetAPIRequest struct { + model.Params + // 服务收费项code + _servcieItemCode string + // 订购用户昵称 + _nick string +} + +// 初始化TaobaoTsSubscribeGetAPIRequest对象 +func NewTaobaoTsSubscribeGetRequest() *TaobaoTsSubscribeGetAPIRequest{ + return &TaobaoTsSubscribeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTsSubscribeGetAPIRequest) GetApiMethodName() string { + return "taobao.ts.subscribe.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTsSubscribeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServcieItemCode Setter +// 服务收费项code +func (r *TaobaoTsSubscribeGetAPIRequest) SetServcieItemCode(_servcieItemCode string) error { + r._servcieItemCode = _servcieItemCode + r.Set("servcie_item_code", _servcieItemCode) + return nil +} + +// ServcieItemCode Getter +func (r TaobaoTsSubscribeGetAPIRequest) GetServcieItemCode() string { + return r._servcieItemCode +} +// Nick Setter +// 订购用户昵称 +func (r *TaobaoTsSubscribeGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoTsSubscribeGetAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/qt/TaobaoTsSubscribeGetAPIResponse.go b/model/qt/TaobaoTsSubscribeGetAPIResponse.go new file mode 100644 index 0000000000..a0b6cd6fb9 --- /dev/null +++ b/model/qt/TaobaoTsSubscribeGetAPIResponse.go @@ -0,0 +1,27 @@ +package qt + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝服务订购关系查询 API返回值 +taobao.ts.subscribe.get + +ts订购关系状态查询. 暂只支持1口价服务. +*/ +type TaobaoTsSubscribeGetAPIResponse struct { + model.CommonResponse + TaobaoTsSubscribeGetAPIResponseModel +} + +// 淘宝服务订购关系查询 成功返回结果 +type TaobaoTsSubscribeGetAPIResponseModel struct { + XMLName xml.Name `xml:"ts_subscribe_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订购关系对象 + ServiceSubscribe *ServiceSubscribe `json:"service_subscribe,omitempty" xml:"service_subscribe,omitempty"` +} diff --git a/model/qt/TaobaoTsSubscribeGetResponse.go b/model/qt/TaobaoTsSubscribeGetResponse.go deleted file mode 100644 index dc4aa14929..0000000000 --- a/model/qt/TaobaoTsSubscribeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package qt - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝服务订购关系查询 API返回值 -taobao.ts.subscribe.get - -ts订购关系状态查询. 暂只支持1口价服务. -*/ -type TaobaoTsSubscribeGetAPIResponse struct { - model.CommonResponse - TaobaoTsSubscribeGetResponse -} - -// 淘宝服务订购关系查询 成功返回结果 -type TaobaoTsSubscribeGetResponse struct { - XMLName xml.Name `xml:"ts_subscribe_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订购关系对象 - ServiceSubscribe *ServiceSubscribe `json:"service_subscribe,omitempty" xml:"service_subscribe,omitempty"` -} diff --git a/model/rail/AlitripRailIrCarrierGetAPIRequest.go b/model/rail/AlitripRailIrCarrierGetAPIRequest.go new file mode 100644 index 0000000000..6914965ce7 --- /dev/null +++ b/model/rail/AlitripRailIrCarrierGetAPIRequest.go @@ -0,0 +1,52 @@ +package rail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +国际火车票铁路承运公司查询 API请求 +alitrip.rail.ir.carrier.get + +国际火车票提供给代理商用于查询标准铁路承运公司carrier信息,用于代理商自己的carrier与飞猪平台的carrier做映射 +*/ +type AlitripRailIrCarrierGetAPIRequest struct { + model.Params + // 商家id + _agentId int64 +} + +// 初始化AlitripRailIrCarrierGetAPIRequest对象 +func NewAlitripRailIrCarrierGetRequest() *AlitripRailIrCarrierGetAPIRequest{ + return &AlitripRailIrCarrierGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripRailIrCarrierGetAPIRequest) GetApiMethodName() string { + return "alitrip.rail.ir.carrier.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripRailIrCarrierGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentId Setter +// 商家id +func (r *AlitripRailIrCarrierGetAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r AlitripRailIrCarrierGetAPIRequest) GetAgentId() int64 { + return r._agentId +} diff --git a/model/rail/AlitripRailIrCarrierGetAPIResponse.go b/model/rail/AlitripRailIrCarrierGetAPIResponse.go new file mode 100644 index 0000000000..b082d3a20a --- /dev/null +++ b/model/rail/AlitripRailIrCarrierGetAPIResponse.go @@ -0,0 +1,27 @@ +package rail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +国际火车票铁路承运公司查询 API返回值 +alitrip.rail.ir.carrier.get + +国际火车票提供给代理商用于查询标准铁路承运公司carrier信息,用于代理商自己的carrier与飞猪平台的carrier做映射 +*/ +type AlitripRailIrCarrierGetAPIResponse struct { + model.CommonResponse + AlitripRailIrCarrierGetAPIResponseModel +} + +// 国际火车票铁路承运公司查询 成功返回结果 +type AlitripRailIrCarrierGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_rail_ir_carrier_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *RailCarrierRs `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/rail/AlitripRailIrCarrierGetResponse.go b/model/rail/AlitripRailIrCarrierGetResponse.go deleted file mode 100644 index a99f0f92b7..0000000000 --- a/model/rail/AlitripRailIrCarrierGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package rail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -国际火车票铁路承运公司查询 API返回值 -alitrip.rail.ir.carrier.get - -国际火车票提供给代理商用于查询标准铁路承运公司carrier信息,用于代理商自己的carrier与飞猪平台的carrier做映射 -*/ -type AlitripRailIrCarrierGetAPIResponse struct { - model.CommonResponse - AlitripRailIrCarrierGetResponse -} - -// 国际火车票铁路承运公司查询 成功返回结果 -type AlitripRailIrCarrierGetResponse struct { - XMLName xml.Name `xml:"alitrip_rail_ir_carrier_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *RailCarrierRs `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/rail/AlitripRailIrDivisionGetAPIRequest.go b/model/rail/AlitripRailIrDivisionGetAPIRequest.go new file mode 100644 index 0000000000..2a12b334a4 --- /dev/null +++ b/model/rail/AlitripRailIrDivisionGetAPIRequest.go @@ -0,0 +1,95 @@ +package rail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +国际火车票标准城市查询 API请求 +alitrip.rail.ir.division.get + +国际火车票提供给代理商用于查询标准城市信息,全部城市数据量209530条,含除中国大陆以外的全部海外区域。 +代理商通过分页查询的方式,拉取飞猪平台方全部境外标准城市,用于自身城市与飞猪平台城市的映射。 +*/ +type AlitripRailIrDivisionGetAPIRequest struct { + model.Params + // 代理商id + _agentId int64 + // 层级,1洲,2是国家,3是省,4是市,5是区,6是街道/镇,7是村,8是逻辑行政区,境外火车票业务只需要市级别,传4就可以 + _level int64 + // 每页条数 + _pageSize int64 + // 页数,从1开始 + _pageIndex int64 +} + +// 初始化AlitripRailIrDivisionGetAPIRequest对象 +func NewAlitripRailIrDivisionGetRequest() *AlitripRailIrDivisionGetAPIRequest{ + return &AlitripRailIrDivisionGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripRailIrDivisionGetAPIRequest) GetApiMethodName() string { + return "alitrip.rail.ir.division.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripRailIrDivisionGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentId Setter +// 代理商id +func (r *AlitripRailIrDivisionGetAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r AlitripRailIrDivisionGetAPIRequest) GetAgentId() int64 { + return r._agentId +} +// Level Setter +// 层级,1洲,2是国家,3是省,4是市,5是区,6是街道/镇,7是村,8是逻辑行政区,境外火车票业务只需要市级别,传4就可以 +func (r *AlitripRailIrDivisionGetAPIRequest) SetLevel(_level int64) error { + r._level = _level + r.Set("level", _level) + return nil +} + +// Level Getter +func (r AlitripRailIrDivisionGetAPIRequest) GetLevel() int64 { + return r._level +} +// PageSize Setter +// 每页条数 +func (r *AlitripRailIrDivisionGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlitripRailIrDivisionGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageIndex Setter +// 页数,从1开始 +func (r *AlitripRailIrDivisionGetAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r AlitripRailIrDivisionGetAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} diff --git a/model/rail/AlitripRailIrDivisionGetAPIResponse.go b/model/rail/AlitripRailIrDivisionGetAPIResponse.go new file mode 100644 index 0000000000..062f485d87 --- /dev/null +++ b/model/rail/AlitripRailIrDivisionGetAPIResponse.go @@ -0,0 +1,28 @@ +package rail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +国际火车票标准城市查询 API返回值 +alitrip.rail.ir.division.get + +国际火车票提供给代理商用于查询标准城市信息,全部城市数据量209530条,含除中国大陆以外的全部海外区域。 +代理商通过分页查询的方式,拉取飞猪平台方全部境外标准城市,用于自身城市与飞猪平台城市的映射。 +*/ +type AlitripRailIrDivisionGetAPIResponse struct { + model.CommonResponse + AlitripRailIrDivisionGetAPIResponseModel +} + +// 国际火车票标准城市查询 成功返回结果 +type AlitripRailIrDivisionGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_rail_ir_division_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *RailResultList `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/rail/AlitripRailIrDivisionGetResponse.go b/model/rail/AlitripRailIrDivisionGetResponse.go deleted file mode 100644 index e68b0bb827..0000000000 --- a/model/rail/AlitripRailIrDivisionGetResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package rail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -国际火车票标准城市查询 API返回值 -alitrip.rail.ir.division.get - -国际火车票提供给代理商用于查询标准城市信息,全部城市数据量209530条,含除中国大陆以外的全部海外区域。 -代理商通过分页查询的方式,拉取飞猪平台方全部境外标准城市,用于自身城市与飞猪平台城市的映射。 -*/ -type AlitripRailIrDivisionGetAPIResponse struct { - model.CommonResponse - AlitripRailIrDivisionGetResponse -} - -// 国际火车票标准城市查询 成功返回结果 -type AlitripRailIrDivisionGetResponse struct { - XMLName xml.Name `xml:"alitrip_rail_ir_division_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *RailResultList `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/rail/AlitripRailIrServiceGetAPIRequest.go b/model/rail/AlitripRailIrServiceGetAPIRequest.go new file mode 100644 index 0000000000..bc157ef32d --- /dev/null +++ b/model/rail/AlitripRailIrServiceGetAPIRequest.go @@ -0,0 +1,66 @@ +package rail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +国际火车票仓位坐席查询 API请求 +alitrip.rail.ir.service.get + +国际火车票标准仓位坐席查询 +*/ +type AlitripRailIrServiceGetAPIRequest struct { + model.Params + // 6代表境外火车票 + _bizType int64 + // 代理商id + _agentId int64 +} + +// 初始化AlitripRailIrServiceGetAPIRequest对象 +func NewAlitripRailIrServiceGetRequest() *AlitripRailIrServiceGetAPIRequest{ + return &AlitripRailIrServiceGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripRailIrServiceGetAPIRequest) GetApiMethodName() string { + return "alitrip.rail.ir.service.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripRailIrServiceGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizType Setter +// 6代表境外火车票 +func (r *AlitripRailIrServiceGetAPIRequest) SetBizType(_bizType int64) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r AlitripRailIrServiceGetAPIRequest) GetBizType() int64 { + return r._bizType +} +// AgentId Setter +// 代理商id +func (r *AlitripRailIrServiceGetAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r AlitripRailIrServiceGetAPIRequest) GetAgentId() int64 { + return r._agentId +} diff --git a/model/rail/AlitripRailIrServiceGetAPIResponse.go b/model/rail/AlitripRailIrServiceGetAPIResponse.go new file mode 100644 index 0000000000..7d7cca8bf2 --- /dev/null +++ b/model/rail/AlitripRailIrServiceGetAPIResponse.go @@ -0,0 +1,27 @@ +package rail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +国际火车票仓位坐席查询 API返回值 +alitrip.rail.ir.service.get + +国际火车票标准仓位坐席查询 +*/ +type AlitripRailIrServiceGetAPIResponse struct { + model.CommonResponse + AlitripRailIrServiceGetAPIResponseModel +} + +// 国际火车票仓位坐席查询 成功返回结果 +type AlitripRailIrServiceGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_rail_ir_service_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlitripRailIrServiceGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/rail/AlitripRailIrServiceGetResponse.go b/model/rail/AlitripRailIrServiceGetResponse.go deleted file mode 100644 index 351659863b..0000000000 --- a/model/rail/AlitripRailIrServiceGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package rail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -国际火车票仓位坐席查询 API返回值 -alitrip.rail.ir.service.get - -国际火车票标准仓位坐席查询 -*/ -type AlitripRailIrServiceGetAPIResponse struct { - model.CommonResponse - AlitripRailIrServiceGetResponse -} - -// 国际火车票仓位坐席查询 成功返回结果 -type AlitripRailIrServiceGetResponse struct { - XMLName xml.Name `xml:"alitrip_rail_ir_service_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlitripRailIrServiceGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/rail/AlitripRailIrStationGetAPIRequest.go b/model/rail/AlitripRailIrStationGetAPIRequest.go new file mode 100644 index 0000000000..e2da375fd9 --- /dev/null +++ b/model/rail/AlitripRailIrStationGetAPIRequest.go @@ -0,0 +1,80 @@ +package rail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +国际火车票标准车站查询 API请求 +alitrip.rail.ir.station.get + +国际火车票提供给代理商用于查询标准车站信息,用于代理商对自己的车站与飞猪平台的车站做映射 +*/ +type AlitripRailIrStationGetAPIRequest struct { + model.Params + // 商家id + _agentId int64 + // 页数 从1开始 + _pageIndex int64 + // 每页条数 + _pageSize int64 +} + +// 初始化AlitripRailIrStationGetAPIRequest对象 +func NewAlitripRailIrStationGetRequest() *AlitripRailIrStationGetAPIRequest{ + return &AlitripRailIrStationGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripRailIrStationGetAPIRequest) GetApiMethodName() string { + return "alitrip.rail.ir.station.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripRailIrStationGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentId Setter +// 商家id +func (r *AlitripRailIrStationGetAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r AlitripRailIrStationGetAPIRequest) GetAgentId() int64 { + return r._agentId +} +// PageIndex Setter +// 页数 从1开始 +func (r *AlitripRailIrStationGetAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r AlitripRailIrStationGetAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} +// PageSize Setter +// 每页条数 +func (r *AlitripRailIrStationGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlitripRailIrStationGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/rail/AlitripRailIrStationGetAPIResponse.go b/model/rail/AlitripRailIrStationGetAPIResponse.go new file mode 100644 index 0000000000..27dd323202 --- /dev/null +++ b/model/rail/AlitripRailIrStationGetAPIResponse.go @@ -0,0 +1,27 @@ +package rail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +国际火车票标准车站查询 API返回值 +alitrip.rail.ir.station.get + +国际火车票提供给代理商用于查询标准车站信息,用于代理商对自己的车站与飞猪平台的车站做映射 +*/ +type AlitripRailIrStationGetAPIResponse struct { + model.CommonResponse + AlitripRailIrStationGetAPIResponseModel +} + +// 国际火车票标准车站查询 成功返回结果 +type AlitripRailIrStationGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_rail_ir_station_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *RailResultList `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/rail/AlitripRailIrStationGetResponse.go b/model/rail/AlitripRailIrStationGetResponse.go deleted file mode 100644 index db1527b58a..0000000000 --- a/model/rail/AlitripRailIrStationGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package rail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -国际火车票标准车站查询 API返回值 -alitrip.rail.ir.station.get - -国际火车票提供给代理商用于查询标准车站信息,用于代理商对自己的车站与飞猪平台的车站做映射 -*/ -type AlitripRailIrStationGetAPIResponse struct { - model.CommonResponse - AlitripRailIrStationGetResponse -} - -// 国际火车票标准车站查询 成功返回结果 -type AlitripRailIrStationGetResponse struct { - XMLName xml.Name `xml:"alitrip_rail_ir_station_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *RailResultList `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/rail/AlitripRailTradeCloseticketAPIRequest.go b/model/rail/AlitripRailTradeCloseticketAPIRequest.go new file mode 100644 index 0000000000..a7c2777afb --- /dev/null +++ b/model/rail/AlitripRailTradeCloseticketAPIRequest.go @@ -0,0 +1,94 @@ +package rail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +出票失败关单接口 API请求 +alitrip.rail.trade.closeticket + +出票成功回调接口 +*/ +type AlitripRailTradeCloseticketAPIRequest struct { + model.Params + // 平台订单号 + _tpOrderId int64 + // 代理商订单号 + _agentId int64 + // 出票失败原因 + _errorMsg string + // 出票失败码 + _errorCode string +} + +// 初始化AlitripRailTradeCloseticketAPIRequest对象 +func NewAlitripRailTradeCloseticketRequest() *AlitripRailTradeCloseticketAPIRequest{ + return &AlitripRailTradeCloseticketAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripRailTradeCloseticketAPIRequest) GetApiMethodName() string { + return "alitrip.rail.trade.closeticket" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripRailTradeCloseticketAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TpOrderId Setter +// 平台订单号 +func (r *AlitripRailTradeCloseticketAPIRequest) SetTpOrderId(_tpOrderId int64) error { + r._tpOrderId = _tpOrderId + r.Set("tp_order_id", _tpOrderId) + return nil +} + +// TpOrderId Getter +func (r AlitripRailTradeCloseticketAPIRequest) GetTpOrderId() int64 { + return r._tpOrderId +} +// AgentId Setter +// 代理商订单号 +func (r *AlitripRailTradeCloseticketAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r AlitripRailTradeCloseticketAPIRequest) GetAgentId() int64 { + return r._agentId +} +// ErrorMsg Setter +// 出票失败原因 +func (r *AlitripRailTradeCloseticketAPIRequest) SetErrorMsg(_errorMsg string) error { + r._errorMsg = _errorMsg + r.Set("error_msg", _errorMsg) + return nil +} + +// ErrorMsg Getter +func (r AlitripRailTradeCloseticketAPIRequest) GetErrorMsg() string { + return r._errorMsg +} +// ErrorCode Setter +// 出票失败码 +func (r *AlitripRailTradeCloseticketAPIRequest) SetErrorCode(_errorCode string) error { + r._errorCode = _errorCode + r.Set("error_code", _errorCode) + return nil +} + +// ErrorCode Getter +func (r AlitripRailTradeCloseticketAPIRequest) GetErrorCode() string { + return r._errorCode +} diff --git a/model/rail/AlitripRailTradeCloseticketAPIResponse.go b/model/rail/AlitripRailTradeCloseticketAPIResponse.go new file mode 100644 index 0000000000..3056264cd9 --- /dev/null +++ b/model/rail/AlitripRailTradeCloseticketAPIResponse.go @@ -0,0 +1,27 @@ +package rail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +出票失败关单接口 API返回值 +alitrip.rail.trade.closeticket + +出票成功回调接口 +*/ +type AlitripRailTradeCloseticketAPIResponse struct { + model.CommonResponse + AlitripRailTradeCloseticketAPIResponseModel +} + +// 出票失败关单接口 成功返回结果 +type AlitripRailTradeCloseticketAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_rail_trade_closeticket_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果集 + Result *AlitripRailTradeCloseticketResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/rail/AlitripRailTradeCloseticketResponse.go b/model/rail/AlitripRailTradeCloseticketResponse.go deleted file mode 100644 index 23feede2cb..0000000000 --- a/model/rail/AlitripRailTradeCloseticketResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package rail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -出票失败关单接口 API返回值 -alitrip.rail.trade.closeticket - -出票成功回调接口 -*/ -type AlitripRailTradeCloseticketAPIResponse struct { - model.CommonResponse - AlitripRailTradeCloseticketResponse -} - -// 出票失败关单接口 成功返回结果 -type AlitripRailTradeCloseticketResponse struct { - XMLName xml.Name `xml:"alitrip_rail_trade_closeticket_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果集 - Result *AlitripRailTradeCloseticketResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/rail/AlitripRailTradeIssueticketAPIRequest.go b/model/rail/AlitripRailTradeIssueticketAPIRequest.go new file mode 100644 index 0000000000..fbc5161d44 --- /dev/null +++ b/model/rail/AlitripRailTradeIssueticketAPIRequest.go @@ -0,0 +1,94 @@ +package rail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +德铁出票成功接口 API请求 +alitrip.rail.trade.issueticket + +出票成功回调接口 +*/ +type AlitripRailTradeIssueticketAPIRequest struct { + model.Params + // 代理商订单号 + _agentOrderId string + // 平台订单号 + _tpOrderId int64 + // 代理商id + _agentId int64 + // pnr票号有则填,无则空 + _ticketNo string +} + +// 初始化AlitripRailTradeIssueticketAPIRequest对象 +func NewAlitripRailTradeIssueticketRequest() *AlitripRailTradeIssueticketAPIRequest{ + return &AlitripRailTradeIssueticketAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripRailTradeIssueticketAPIRequest) GetApiMethodName() string { + return "alitrip.rail.trade.issueticket" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripRailTradeIssueticketAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentOrderId Setter +// 代理商订单号 +func (r *AlitripRailTradeIssueticketAPIRequest) SetAgentOrderId(_agentOrderId string) error { + r._agentOrderId = _agentOrderId + r.Set("agent_order_id", _agentOrderId) + return nil +} + +// AgentOrderId Getter +func (r AlitripRailTradeIssueticketAPIRequest) GetAgentOrderId() string { + return r._agentOrderId +} +// TpOrderId Setter +// 平台订单号 +func (r *AlitripRailTradeIssueticketAPIRequest) SetTpOrderId(_tpOrderId int64) error { + r._tpOrderId = _tpOrderId + r.Set("tp_order_id", _tpOrderId) + return nil +} + +// TpOrderId Getter +func (r AlitripRailTradeIssueticketAPIRequest) GetTpOrderId() int64 { + return r._tpOrderId +} +// AgentId Setter +// 代理商id +func (r *AlitripRailTradeIssueticketAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r AlitripRailTradeIssueticketAPIRequest) GetAgentId() int64 { + return r._agentId +} +// TicketNo Setter +// pnr票号有则填,无则空 +func (r *AlitripRailTradeIssueticketAPIRequest) SetTicketNo(_ticketNo string) error { + r._ticketNo = _ticketNo + r.Set("ticket_no", _ticketNo) + return nil +} + +// TicketNo Getter +func (r AlitripRailTradeIssueticketAPIRequest) GetTicketNo() string { + return r._ticketNo +} diff --git a/model/rail/AlitripRailTradeIssueticketAPIResponse.go b/model/rail/AlitripRailTradeIssueticketAPIResponse.go new file mode 100644 index 0000000000..98dfff3939 --- /dev/null +++ b/model/rail/AlitripRailTradeIssueticketAPIResponse.go @@ -0,0 +1,27 @@ +package rail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +德铁出票成功接口 API返回值 +alitrip.rail.trade.issueticket + +出票成功回调接口 +*/ +type AlitripRailTradeIssueticketAPIResponse struct { + model.CommonResponse + AlitripRailTradeIssueticketAPIResponseModel +} + +// 德铁出票成功接口 成功返回结果 +type AlitripRailTradeIssueticketAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_rail_trade_issueticket_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果集 + Result *AlitripRailTradeIssueticketResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/rail/AlitripRailTradeIssueticketResponse.go b/model/rail/AlitripRailTradeIssueticketResponse.go deleted file mode 100644 index 1e42098ed1..0000000000 --- a/model/rail/AlitripRailTradeIssueticketResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package rail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -德铁出票成功接口 API返回值 -alitrip.rail.trade.issueticket - -出票成功回调接口 -*/ -type AlitripRailTradeIssueticketAPIResponse struct { - model.CommonResponse - AlitripRailTradeIssueticketResponse -} - -// 德铁出票成功接口 成功返回结果 -type AlitripRailTradeIssueticketResponse struct { - XMLName xml.Name `xml:"alitrip_rail_trade_issueticket_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果集 - Result *AlitripRailTradeIssueticketResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/refund/TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIRequest.go b/model/refund/TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIRequest.go new file mode 100644 index 0000000000..d1b2972424 --- /dev/null +++ b/model/refund/TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package refund + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +鉴定工单结果同步 API请求 +taobao.rdc.aligenius.identification.case.result.update + +同步鉴定工单结果信息 +*/ +type TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIRequest struct { + model.Params + // 请求参数 + _param *SyncIdentifyRefundCaseResultDto +} + +// 初始化TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIRequest对象 +func NewTaobaoRdcAligeniusIdentificationCaseResultUpdateRequest() *TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIRequest{ + return &TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIRequest) GetApiMethodName() string { + return "taobao.rdc.aligenius.identification.case.result.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 请求参数 +func (r *TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIRequest) SetParam(_param *SyncIdentifyRefundCaseResultDto) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIRequest) GetParam() *SyncIdentifyRefundCaseResultDto { + return r._param +} diff --git a/model/refund/TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIResponse.go b/model/refund/TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIResponse.go new file mode 100644 index 0000000000..e28356e3ae --- /dev/null +++ b/model/refund/TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package refund + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +鉴定工单结果同步 API返回值 +taobao.rdc.aligenius.identification.case.result.update + +同步鉴定工单结果信息 +*/ +type TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIResponse struct { + model.CommonResponse + TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIResponseModel +} + +// 鉴定工单结果同步 成功返回结果 +type TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"rdc_aligenius_identification_case_result_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoRdcAligeniusIdentificationCaseResultUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/refund/TaobaoRdcAligeniusIdentificationCaseResultUpdateResponse.go b/model/refund/TaobaoRdcAligeniusIdentificationCaseResultUpdateResponse.go deleted file mode 100644 index dafccbba8f..0000000000 --- a/model/refund/TaobaoRdcAligeniusIdentificationCaseResultUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package refund - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -鉴定工单结果同步 API返回值 -taobao.rdc.aligenius.identification.case.result.update - -同步鉴定工单结果信息 -*/ -type TaobaoRdcAligeniusIdentificationCaseResultUpdateAPIResponse struct { - model.CommonResponse - TaobaoRdcAligeniusIdentificationCaseResultUpdateResponse -} - -// 鉴定工单结果同步 成功返回结果 -type TaobaoRdcAligeniusIdentificationCaseResultUpdateResponse struct { - XMLName xml.Name `xml:"rdc_aligenius_identification_case_result_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoRdcAligeniusIdentificationCaseResultUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/refund/TaobaoRdcAligeniusIdentificationCaseUpdateAPIRequest.go b/model/refund/TaobaoRdcAligeniusIdentificationCaseUpdateAPIRequest.go new file mode 100644 index 0000000000..4855f217fe --- /dev/null +++ b/model/refund/TaobaoRdcAligeniusIdentificationCaseUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package refund + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +鉴定工单信息同步 API请求 +taobao.rdc.aligenius.identification.case.update + +同步商家鉴定工单信息 +*/ +type TaobaoRdcAligeniusIdentificationCaseUpdateAPIRequest struct { + model.Params + // 请求参数 + _param *SyncIdentifyRefundCaseDto +} + +// 初始化TaobaoRdcAligeniusIdentificationCaseUpdateAPIRequest对象 +func NewTaobaoRdcAligeniusIdentificationCaseUpdateRequest() *TaobaoRdcAligeniusIdentificationCaseUpdateAPIRequest{ + return &TaobaoRdcAligeniusIdentificationCaseUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRdcAligeniusIdentificationCaseUpdateAPIRequest) GetApiMethodName() string { + return "taobao.rdc.aligenius.identification.case.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRdcAligeniusIdentificationCaseUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 请求参数 +func (r *TaobaoRdcAligeniusIdentificationCaseUpdateAPIRequest) SetParam(_param *SyncIdentifyRefundCaseDto) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r TaobaoRdcAligeniusIdentificationCaseUpdateAPIRequest) GetParam() *SyncIdentifyRefundCaseDto { + return r._param +} diff --git a/model/refund/TaobaoRdcAligeniusIdentificationCaseUpdateAPIResponse.go b/model/refund/TaobaoRdcAligeniusIdentificationCaseUpdateAPIResponse.go new file mode 100644 index 0000000000..5c554fc3a5 --- /dev/null +++ b/model/refund/TaobaoRdcAligeniusIdentificationCaseUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package refund + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +鉴定工单信息同步 API返回值 +taobao.rdc.aligenius.identification.case.update + +同步商家鉴定工单信息 +*/ +type TaobaoRdcAligeniusIdentificationCaseUpdateAPIResponse struct { + model.CommonResponse + TaobaoRdcAligeniusIdentificationCaseUpdateAPIResponseModel +} + +// 鉴定工单信息同步 成功返回结果 +type TaobaoRdcAligeniusIdentificationCaseUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"rdc_aligenius_identification_case_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoRdcAligeniusIdentificationCaseUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/refund/TaobaoRdcAligeniusIdentificationCaseUpdateResponse.go b/model/refund/TaobaoRdcAligeniusIdentificationCaseUpdateResponse.go deleted file mode 100644 index 014398ce99..0000000000 --- a/model/refund/TaobaoRdcAligeniusIdentificationCaseUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package refund - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -鉴定工单信息同步 API返回值 -taobao.rdc.aligenius.identification.case.update - -同步商家鉴定工单信息 -*/ -type TaobaoRdcAligeniusIdentificationCaseUpdateAPIResponse struct { - model.CommonResponse - TaobaoRdcAligeniusIdentificationCaseUpdateResponse -} - -// 鉴定工单信息同步 成功返回结果 -type TaobaoRdcAligeniusIdentificationCaseUpdateResponse struct { - XMLName xml.Name `xml:"rdc_aligenius_identification_case_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoRdcAligeniusIdentificationCaseUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/refund/TaobaoRdcAligeniusSendgoodsCancelAPIRequest.go b/model/refund/TaobaoRdcAligeniusSendgoodsCancelAPIRequest.go new file mode 100644 index 0000000000..04e15ecb7b --- /dev/null +++ b/model/refund/TaobaoRdcAligeniusSendgoodsCancelAPIRequest.go @@ -0,0 +1,52 @@ +package refund + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消发货 API请求 +taobao.rdc.aligenius.sendgoods.cancel + +提供商家在仅退款中发送取消发货状态 +*/ +type TaobaoRdcAligeniusSendgoodsCancelAPIRequest struct { + model.Params + // 请求参数 + _param *CancelGoodsDto +} + +// 初始化TaobaoRdcAligeniusSendgoodsCancelAPIRequest对象 +func NewTaobaoRdcAligeniusSendgoodsCancelRequest() *TaobaoRdcAligeniusSendgoodsCancelAPIRequest{ + return &TaobaoRdcAligeniusSendgoodsCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRdcAligeniusSendgoodsCancelAPIRequest) GetApiMethodName() string { + return "taobao.rdc.aligenius.sendgoods.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRdcAligeniusSendgoodsCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 请求参数 +func (r *TaobaoRdcAligeniusSendgoodsCancelAPIRequest) SetParam(_param *CancelGoodsDto) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r TaobaoRdcAligeniusSendgoodsCancelAPIRequest) GetParam() *CancelGoodsDto { + return r._param +} diff --git a/model/refund/TaobaoRdcAligeniusSendgoodsCancelAPIResponse.go b/model/refund/TaobaoRdcAligeniusSendgoodsCancelAPIResponse.go new file mode 100644 index 0000000000..01c9b932cf --- /dev/null +++ b/model/refund/TaobaoRdcAligeniusSendgoodsCancelAPIResponse.go @@ -0,0 +1,27 @@ +package refund + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消发货 API返回值 +taobao.rdc.aligenius.sendgoods.cancel + +提供商家在仅退款中发送取消发货状态 +*/ +type TaobaoRdcAligeniusSendgoodsCancelAPIResponse struct { + model.CommonResponse + TaobaoRdcAligeniusSendgoodsCancelAPIResponseModel +} + +// 取消发货 成功返回结果 +type TaobaoRdcAligeniusSendgoodsCancelAPIResponseModel struct { + XMLName xml.Name `xml:"rdc_aligenius_sendgoods_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoRdcAligeniusSendgoodsCancelResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/refund/TaobaoRdcAligeniusSendgoodsCancelResponse.go b/model/refund/TaobaoRdcAligeniusSendgoodsCancelResponse.go deleted file mode 100644 index ab9f93bea1..0000000000 --- a/model/refund/TaobaoRdcAligeniusSendgoodsCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package refund - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消发货 API返回值 -taobao.rdc.aligenius.sendgoods.cancel - -提供商家在仅退款中发送取消发货状态 -*/ -type TaobaoRdcAligeniusSendgoodsCancelAPIResponse struct { - model.CommonResponse - TaobaoRdcAligeniusSendgoodsCancelResponse -} - -// 取消发货 成功返回结果 -type TaobaoRdcAligeniusSendgoodsCancelResponse struct { - XMLName xml.Name `xml:"rdc_aligenius_sendgoods_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoRdcAligeniusSendgoodsCancelResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/refund/TaobaoRefundGetAPIRequest.go b/model/refund/TaobaoRefundGetAPIRequest.go new file mode 100644 index 0000000000..21ee248117 --- /dev/null +++ b/model/refund/TaobaoRefundGetAPIRequest.go @@ -0,0 +1,66 @@ +package refund + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单笔退款详情 API请求 +taobao.refund.get + +获取单笔退款详情 +*/ +type TaobaoRefundGetAPIRequest struct { + model.Params + // 需要返回的字段。目前支持有:refund_id, alipay_no, tid, oid, buyer_nick, seller_nick, total_fee, status, created, refund_fee, good_status, has_good_return, payment, reason, desc, num_iid, title, price, num, good_return_time, company_name, sid, address, shipping_type, refund_remind_timeout, refund_phase, refund_version, operation_contraint, attribute, outer_id, sku + _fields []string + // 退款单号 + _refundId int64 +} + +// 初始化TaobaoRefundGetAPIRequest对象 +func NewTaobaoRefundGetRequest() *TaobaoRefundGetAPIRequest{ + return &TaobaoRefundGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRefundGetAPIRequest) GetApiMethodName() string { + return "taobao.refund.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRefundGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的字段。目前支持有:refund_id, alipay_no, tid, oid, buyer_nick, seller_nick, total_fee, status, created, refund_fee, good_status, has_good_return, payment, reason, desc, num_iid, title, price, num, good_return_time, company_name, sid, address, shipping_type, refund_remind_timeout, refund_phase, refund_version, operation_contraint, attribute, outer_id, sku +func (r *TaobaoRefundGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoRefundGetAPIRequest) GetFields() []string { + return r._fields +} +// RefundId Setter +// 退款单号 +func (r *TaobaoRefundGetAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoRefundGetAPIRequest) GetRefundId() int64 { + return r._refundId +} diff --git a/model/refund/TaobaoRefundGetAPIResponse.go b/model/refund/TaobaoRefundGetAPIResponse.go new file mode 100644 index 0000000000..40481ac955 --- /dev/null +++ b/model/refund/TaobaoRefundGetAPIResponse.go @@ -0,0 +1,27 @@ +package refund + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单笔退款详情 API返回值 +taobao.refund.get + +获取单笔退款详情 +*/ +type TaobaoRefundGetAPIResponse struct { + model.CommonResponse + TaobaoRefundGetAPIResponseModel +} + +// 获取单笔退款详情 成功返回结果 +type TaobaoRefundGetAPIResponseModel struct { + XMLName xml.Name `xml:"refund_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 退款详情 + Refund *Refund `json:"refund,omitempty" xml:"refund,omitempty"` +} diff --git a/model/refund/TaobaoRefundGetResponse.go b/model/refund/TaobaoRefundGetResponse.go deleted file mode 100644 index 2bad1392e1..0000000000 --- a/model/refund/TaobaoRefundGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package refund - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取单笔退款详情 API返回值 -taobao.refund.get - -获取单笔退款详情 -*/ -type TaobaoRefundGetAPIResponse struct { - model.CommonResponse - TaobaoRefundGetResponse -} - -// 获取单笔退款详情 成功返回结果 -type TaobaoRefundGetResponse struct { - XMLName xml.Name `xml:"refund_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 退款详情 - Refund *Refund `json:"refund,omitempty" xml:"refund,omitempty"` -} diff --git a/model/refund/TaobaoRefundMessageAddAPIRequest.go b/model/refund/TaobaoRefundMessageAddAPIRequest.go new file mode 100644 index 0000000000..c76ab35e56 --- /dev/null +++ b/model/refund/TaobaoRefundMessageAddAPIRequest.go @@ -0,0 +1,80 @@ +package refund + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建退款留言/凭证 API请求 +taobao.refund.message.add + +创建退款留言/凭证 +*/ +type TaobaoRefundMessageAddAPIRequest struct { + model.Params + // 退款编号。 + _refundId int64 + // 留言内容。最大长度: 400个字节 + _content string + // 图片(凭证)。类型: JPG,GIF,PNG;最大为: 500K + _image *model.File +} + +// 初始化TaobaoRefundMessageAddAPIRequest对象 +func NewTaobaoRefundMessageAddRequest() *TaobaoRefundMessageAddAPIRequest{ + return &TaobaoRefundMessageAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRefundMessageAddAPIRequest) GetApiMethodName() string { + return "taobao.refund.message.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRefundMessageAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundId Setter +// 退款编号。 +func (r *TaobaoRefundMessageAddAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoRefundMessageAddAPIRequest) GetRefundId() int64 { + return r._refundId +} +// Content Setter +// 留言内容。最大长度: 400个字节 +func (r *TaobaoRefundMessageAddAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r TaobaoRefundMessageAddAPIRequest) GetContent() string { + return r._content +} +// Image Setter +// 图片(凭证)。类型: JPG,GIF,PNG;最大为: 500K +func (r *TaobaoRefundMessageAddAPIRequest) SetImage(_image *model.File) error { + r._image = _image + r.Set("image", _image) + return nil +} + +// Image Getter +func (r TaobaoRefundMessageAddAPIRequest) GetImage() *model.File { + return r._image +} diff --git a/model/refund/TaobaoRefundMessageAddAPIResponse.go b/model/refund/TaobaoRefundMessageAddAPIResponse.go new file mode 100644 index 0000000000..c9f46598f2 --- /dev/null +++ b/model/refund/TaobaoRefundMessageAddAPIResponse.go @@ -0,0 +1,27 @@ +package refund + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建退款留言/凭证 API返回值 +taobao.refund.message.add + +创建退款留言/凭证 +*/ +type TaobaoRefundMessageAddAPIResponse struct { + model.CommonResponse + TaobaoRefundMessageAddAPIResponseModel +} + +// 创建退款留言/凭证 成功返回结果 +type TaobaoRefundMessageAddAPIResponseModel struct { + XMLName xml.Name `xml:"refund_message_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 退款信息。包含id和created + RefundMessage *RefundMessage `json:"refund_message,omitempty" xml:"refund_message,omitempty"` +} diff --git a/model/refund/TaobaoRefundMessageAddResponse.go b/model/refund/TaobaoRefundMessageAddResponse.go deleted file mode 100644 index e07a3d92dd..0000000000 --- a/model/refund/TaobaoRefundMessageAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package refund - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建退款留言/凭证 API返回值 -taobao.refund.message.add - -创建退款留言/凭证 -*/ -type TaobaoRefundMessageAddAPIResponse struct { - model.CommonResponse - TaobaoRefundMessageAddResponse -} - -// 创建退款留言/凭证 成功返回结果 -type TaobaoRefundMessageAddResponse struct { - XMLName xml.Name `xml:"refund_message_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 退款信息。包含id和created - RefundMessage *RefundMessage `json:"refund_message,omitempty" xml:"refund_message,omitempty"` -} diff --git a/model/refund/TaobaoRefundMessagesGetAPIRequest.go b/model/refund/TaobaoRefundMessagesGetAPIRequest.go new file mode 100644 index 0000000000..828523030e --- /dev/null +++ b/model/refund/TaobaoRefundMessagesGetAPIRequest.go @@ -0,0 +1,108 @@ +package refund + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询退款留言/凭证列表 API请求 +taobao.refund.messages.get + +查询退款留言/凭证列表 +*/ +type TaobaoRefundMessagesGetAPIRequest struct { + model.Params + // 需返回的字段列表。可选值:RefundMessage结构体中的所有字段,以半角逗号(,)分隔。 + _fields []string + // 退款单号 + _refundId int64 + // 页码 + _pageNo int64 + // 每页条数 + _pageSize int64 + // 退款阶段,可选值:onsale(售中),aftersale(售后),天猫退款为必传。 + _refundPhase string +} + +// 初始化TaobaoRefundMessagesGetAPIRequest对象 +func NewTaobaoRefundMessagesGetRequest() *TaobaoRefundMessagesGetAPIRequest{ + return &TaobaoRefundMessagesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRefundMessagesGetAPIRequest) GetApiMethodName() string { + return "taobao.refund.messages.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRefundMessagesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需返回的字段列表。可选值:RefundMessage结构体中的所有字段,以半角逗号(,)分隔。 +func (r *TaobaoRefundMessagesGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoRefundMessagesGetAPIRequest) GetFields() []string { + return r._fields +} +// RefundId Setter +// 退款单号 +func (r *TaobaoRefundMessagesGetAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoRefundMessagesGetAPIRequest) GetRefundId() int64 { + return r._refundId +} +// PageNo Setter +// 页码 +func (r *TaobaoRefundMessagesGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoRefundMessagesGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数 +func (r *TaobaoRefundMessagesGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoRefundMessagesGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// RefundPhase Setter +// 退款阶段,可选值:onsale(售中),aftersale(售后),天猫退款为必传。 +func (r *TaobaoRefundMessagesGetAPIRequest) SetRefundPhase(_refundPhase string) error { + r._refundPhase = _refundPhase + r.Set("refund_phase", _refundPhase) + return nil +} + +// RefundPhase Getter +func (r TaobaoRefundMessagesGetAPIRequest) GetRefundPhase() string { + return r._refundPhase +} diff --git a/model/refund/TaobaoRefundMessagesGetAPIResponse.go b/model/refund/TaobaoRefundMessagesGetAPIResponse.go new file mode 100644 index 0000000000..fdca7994c4 --- /dev/null +++ b/model/refund/TaobaoRefundMessagesGetAPIResponse.go @@ -0,0 +1,29 @@ +package refund + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询退款留言/凭证列表 API返回值 +taobao.refund.messages.get + +查询退款留言/凭证列表 +*/ +type TaobaoRefundMessagesGetAPIResponse struct { + model.CommonResponse + TaobaoRefundMessagesGetAPIResponseModel +} + +// 查询退款留言/凭证列表 成功返回结果 +type TaobaoRefundMessagesGetAPIResponseModel struct { + XMLName xml.Name `xml:"refund_messages_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询到的退款留言/凭证总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 查询到的退款留言/凭证列表 + RefundMessages []RefundMessage `json:"refund_messages,omitempty" xml:"refund_messages>refund_message,omitempty"` +} diff --git a/model/refund/TaobaoRefundMessagesGetResponse.go b/model/refund/TaobaoRefundMessagesGetResponse.go deleted file mode 100644 index ebe477bcfe..0000000000 --- a/model/refund/TaobaoRefundMessagesGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package refund - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询退款留言/凭证列表 API返回值 -taobao.refund.messages.get - -查询退款留言/凭证列表 -*/ -type TaobaoRefundMessagesGetAPIResponse struct { - model.CommonResponse - TaobaoRefundMessagesGetResponse -} - -// 查询退款留言/凭证列表 成功返回结果 -type TaobaoRefundMessagesGetResponse struct { - XMLName xml.Name `xml:"refund_messages_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询到的退款留言/凭证总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 查询到的退款留言/凭证列表 - RefundMessages []RefundMessage `json:"refund_messages,omitempty" xml:"refund_messages>refund_message,omitempty"` -} diff --git a/model/refund/TaobaoRefundRefuseAPIRequest.go b/model/refund/TaobaoRefundRefuseAPIRequest.go new file mode 100644 index 0000000000..d8d2fc7aa0 --- /dev/null +++ b/model/refund/TaobaoRefundRefuseAPIRequest.go @@ -0,0 +1,122 @@ +package refund + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家拒绝退款 API请求 +taobao.refund.refuse + +卖家拒绝单笔退款(包含退款和退款退货)交易,要求如下:
1. 传入的refund_id和相应的tid, oid必须匹配
2. 如果一笔订单只有一笔子订单,则tid必须与oid相同
3. 只有卖家才能执行拒绝退款操作
4. 以下三种情况不能退款:卖家未发货;7天无理由退换货;网游订单 +*/ +type TaobaoRefundRefuseAPIRequest struct { + model.Params + // 退款单号 + _refundId int64 + // 拒绝退款时的说明信息,长度2-200 + _refuseMessage string + // 拒绝退款时的退款凭证,一般是卖家拒绝退款时使用的发货凭证,最大长度130000字节,支持的图片格式:GIF, JPG, PNG。天猫退款为必填项。 + _refuseProof *model.File + // 可选值为:售中:onsale,售后:aftersale,天猫退款为必填项。 + _refundPhase string + // 退款版本号,天猫退款为必填项。 + _refundVersion int64 + // 拒绝原因编号,会提供用户拒绝原因列表供选择 + _refuseReasonId int64 +} + +// 初始化TaobaoRefundRefuseAPIRequest对象 +func NewTaobaoRefundRefuseRequest() *TaobaoRefundRefuseAPIRequest{ + return &TaobaoRefundRefuseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRefundRefuseAPIRequest) GetApiMethodName() string { + return "taobao.refund.refuse" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRefundRefuseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundId Setter +// 退款单号 +func (r *TaobaoRefundRefuseAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoRefundRefuseAPIRequest) GetRefundId() int64 { + return r._refundId +} +// RefuseMessage Setter +// 拒绝退款时的说明信息,长度2-200 +func (r *TaobaoRefundRefuseAPIRequest) SetRefuseMessage(_refuseMessage string) error { + r._refuseMessage = _refuseMessage + r.Set("refuse_message", _refuseMessage) + return nil +} + +// RefuseMessage Getter +func (r TaobaoRefundRefuseAPIRequest) GetRefuseMessage() string { + return r._refuseMessage +} +// RefuseProof Setter +// 拒绝退款时的退款凭证,一般是卖家拒绝退款时使用的发货凭证,最大长度130000字节,支持的图片格式:GIF, JPG, PNG。天猫退款为必填项。 +func (r *TaobaoRefundRefuseAPIRequest) SetRefuseProof(_refuseProof *model.File) error { + r._refuseProof = _refuseProof + r.Set("refuse_proof", _refuseProof) + return nil +} + +// RefuseProof Getter +func (r TaobaoRefundRefuseAPIRequest) GetRefuseProof() *model.File { + return r._refuseProof +} +// RefundPhase Setter +// 可选值为:售中:onsale,售后:aftersale,天猫退款为必填项。 +func (r *TaobaoRefundRefuseAPIRequest) SetRefundPhase(_refundPhase string) error { + r._refundPhase = _refundPhase + r.Set("refund_phase", _refundPhase) + return nil +} + +// RefundPhase Getter +func (r TaobaoRefundRefuseAPIRequest) GetRefundPhase() string { + return r._refundPhase +} +// RefundVersion Setter +// 退款版本号,天猫退款为必填项。 +func (r *TaobaoRefundRefuseAPIRequest) SetRefundVersion(_refundVersion int64) error { + r._refundVersion = _refundVersion + r.Set("refund_version", _refundVersion) + return nil +} + +// RefundVersion Getter +func (r TaobaoRefundRefuseAPIRequest) GetRefundVersion() int64 { + return r._refundVersion +} +// RefuseReasonId Setter +// 拒绝原因编号,会提供用户拒绝原因列表供选择 +func (r *TaobaoRefundRefuseAPIRequest) SetRefuseReasonId(_refuseReasonId int64) error { + r._refuseReasonId = _refuseReasonId + r.Set("refuse_reason_id", _refuseReasonId) + return nil +} + +// RefuseReasonId Getter +func (r TaobaoRefundRefuseAPIRequest) GetRefuseReasonId() int64 { + return r._refuseReasonId +} diff --git a/model/refund/TaobaoRefundRefuseAPIResponse.go b/model/refund/TaobaoRefundRefuseAPIResponse.go new file mode 100644 index 0000000000..884a5ae8d2 --- /dev/null +++ b/model/refund/TaobaoRefundRefuseAPIResponse.go @@ -0,0 +1,29 @@ +package refund + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家拒绝退款 API返回值 +taobao.refund.refuse + +卖家拒绝单笔退款(包含退款和退款退货)交易,要求如下:
1. 传入的refund_id和相应的tid, oid必须匹配
2. 如果一笔订单只有一笔子订单,则tid必须与oid相同
3. 只有卖家才能执行拒绝退款操作
4. 以下三种情况不能退款:卖家未发货;7天无理由退换货;网游订单 +*/ +type TaobaoRefundRefuseAPIResponse struct { + model.CommonResponse + TaobaoRefundRefuseAPIResponseModel +} + +// 卖家拒绝退款 成功返回结果 +type TaobaoRefundRefuseAPIResponseModel struct { + XMLName xml.Name `xml:"refund_refuse_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 拒绝退款成功后,会返回Refund数据结构中的refund_id, status, modified字段 + Refund *Refund `json:"refund,omitempty" xml:"refund,omitempty"` + // 拒绝退款操作是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/refund/TaobaoRefundRefuseResponse.go b/model/refund/TaobaoRefundRefuseResponse.go deleted file mode 100644 index b16f07c002..0000000000 --- a/model/refund/TaobaoRefundRefuseResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package refund - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家拒绝退款 API返回值 -taobao.refund.refuse - -卖家拒绝单笔退款(包含退款和退款退货)交易,要求如下:
1. 传入的refund_id和相应的tid, oid必须匹配
2. 如果一笔订单只有一笔子订单,则tid必须与oid相同
3. 只有卖家才能执行拒绝退款操作
4. 以下三种情况不能退款:卖家未发货;7天无理由退换货;网游订单 -*/ -type TaobaoRefundRefuseAPIResponse struct { - model.CommonResponse - TaobaoRefundRefuseResponse -} - -// 卖家拒绝退款 成功返回结果 -type TaobaoRefundRefuseResponse struct { - XMLName xml.Name `xml:"refund_refuse_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 拒绝退款成功后,会返回Refund数据结构中的refund_id, status, modified字段 - Refund *Refund `json:"refund,omitempty" xml:"refund,omitempty"` - // 拒绝退款操作是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/refund/TaobaoRefundRefusereasonGetAPIRequest.go b/model/refund/TaobaoRefundRefusereasonGetAPIRequest.go new file mode 100644 index 0000000000..9bdff6a093 --- /dev/null +++ b/model/refund/TaobaoRefundRefusereasonGetAPIRequest.go @@ -0,0 +1,80 @@ +package refund + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取拒绝原因列表 API请求 +taobao.refund.refusereason.get + +获取商家拒绝原因列表 +*/ +type TaobaoRefundRefusereasonGetAPIRequest struct { + model.Params + // 退款编号 + _refundId int64 + // 返回参数 + _fields string + // 售中或售后 + _refundPhase string +} + +// 初始化TaobaoRefundRefusereasonGetAPIRequest对象 +func NewTaobaoRefundRefusereasonGetRequest() *TaobaoRefundRefusereasonGetAPIRequest{ + return &TaobaoRefundRefusereasonGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRefundRefusereasonGetAPIRequest) GetApiMethodName() string { + return "taobao.refund.refusereason.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRefundRefusereasonGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundId Setter +// 退款编号 +func (r *TaobaoRefundRefusereasonGetAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoRefundRefusereasonGetAPIRequest) GetRefundId() int64 { + return r._refundId +} +// Fields Setter +// 返回参数 +func (r *TaobaoRefundRefusereasonGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoRefundRefusereasonGetAPIRequest) GetFields() string { + return r._fields +} +// RefundPhase Setter +// 售中或售后 +func (r *TaobaoRefundRefusereasonGetAPIRequest) SetRefundPhase(_refundPhase string) error { + r._refundPhase = _refundPhase + r.Set("refund_phase", _refundPhase) + return nil +} + +// RefundPhase Getter +func (r TaobaoRefundRefusereasonGetAPIRequest) GetRefundPhase() string { + return r._refundPhase +} diff --git a/model/refund/TaobaoRefundRefusereasonGetAPIResponse.go b/model/refund/TaobaoRefundRefusereasonGetAPIResponse.go new file mode 100644 index 0000000000..b1d622f3ae --- /dev/null +++ b/model/refund/TaobaoRefundRefusereasonGetAPIResponse.go @@ -0,0 +1,31 @@ +package refund + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取拒绝原因列表 API返回值 +taobao.refund.refusereason.get + +获取商家拒绝原因列表 +*/ +type TaobaoRefundRefusereasonGetAPIResponse struct { + model.CommonResponse + TaobaoRefundRefusereasonGetAPIResponseModel +} + +// 获取拒绝原因列表 成功返回结果 +type TaobaoRefundRefusereasonGetAPIResponseModel struct { + XMLName xml.Name `xml:"refund_refusereason_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 卖家拒绝原因对象 + Reasons []Reason `json:"reasons,omitempty" xml:"reasons>reason,omitempty"` + // 原因个数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 是否存在下一页 + HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` +} diff --git a/model/refund/TaobaoRefundRefusereasonGetResponse.go b/model/refund/TaobaoRefundRefusereasonGetResponse.go deleted file mode 100644 index ac8c21692e..0000000000 --- a/model/refund/TaobaoRefundRefusereasonGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package refund - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取拒绝原因列表 API返回值 -taobao.refund.refusereason.get - -获取商家拒绝原因列表 -*/ -type TaobaoRefundRefusereasonGetAPIResponse struct { - model.CommonResponse - TaobaoRefundRefusereasonGetResponse -} - -// 获取拒绝原因列表 成功返回结果 -type TaobaoRefundRefusereasonGetResponse struct { - XMLName xml.Name `xml:"refund_refusereason_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 卖家拒绝原因对象 - Reasons []Reason `json:"reasons,omitempty" xml:"reasons>reason,omitempty"` - // 原因个数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 是否存在下一页 - HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` -} diff --git a/model/refund/TaobaoRefundsApplyGetAPIRequest.go b/model/refund/TaobaoRefundsApplyGetAPIRequest.go new file mode 100644 index 0000000000..2ecfced387 --- /dev/null +++ b/model/refund/TaobaoRefundsApplyGetAPIRequest.go @@ -0,0 +1,122 @@ +package refund + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询买家申请的退款列表 API请求 +taobao.refunds.apply.get + +查询买家申请的退款列表,且查询外店的退款列表时需要指定交易类型 +*/ +type TaobaoRefundsApplyGetAPIRequest struct { + model.Params + // 需要返回的字段。目前支持有:refund_id, tid, title, buyer_nick, seller_nick, total_fee, status, created, refund_fee + _fields []string + // 退款状态,默认查询所有退款状态的数据,除了默认值外每次只能查询一种状态。
WAIT_SELLER_AGREE(买家已经申请退款,等待卖家同意)
WAIT_BUYER_RETURN_GOODS(卖家已经同意退款,等待买家退货)
WAIT_SELLER_CONFIRM_GOODS(买家已经退货,等待卖家确认收货)
SELLER_REFUSE_BUYER(卖家拒绝退款)
CLOSED(退款关闭)
SUCCESS(退款成功) + _status string + // 卖家昵称 + _sellerNick string + // 交易类型列表,一次查询多种类型可用半角逗号分隔,默认同时查询guarantee_trade, auto_delivery的2种类型的数据。
fixed(一口价)
auction(拍卖)
guarantee_trade(一口价、拍卖)
independent_simple_trade(旺店入门版交易)
independent_shop_trade(旺店标准版交易)
auto_delivery(自动发货)
ec(直冲)
cod(货到付款)
fenxiao(分销)
game_equipment(游戏装备)
shopex_trade(ShopEX交易)
netcn_trade(万网交易)
external_trade(统一外部交易) + _type string + // 页码。传入值为 1 代表第一页,传入值为 2 代表第二页,依此类推。默认返回的数据是从第一页开始 + _pageNo int64 + // 每页条数。取值范围:大于零的整数; 默认值:40;最大值:100 + _pageSize int64 +} + +// 初始化TaobaoRefundsApplyGetAPIRequest对象 +func NewTaobaoRefundsApplyGetRequest() *TaobaoRefundsApplyGetAPIRequest{ + return &TaobaoRefundsApplyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRefundsApplyGetAPIRequest) GetApiMethodName() string { + return "taobao.refunds.apply.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRefundsApplyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的字段。目前支持有:refund_id, tid, title, buyer_nick, seller_nick, total_fee, status, created, refund_fee +func (r *TaobaoRefundsApplyGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoRefundsApplyGetAPIRequest) GetFields() []string { + return r._fields +} +// Status Setter +// 退款状态,默认查询所有退款状态的数据,除了默认值外每次只能查询一种状态。
WAIT_SELLER_AGREE(买家已经申请退款,等待卖家同意)
WAIT_BUYER_RETURN_GOODS(卖家已经同意退款,等待买家退货)
WAIT_SELLER_CONFIRM_GOODS(买家已经退货,等待卖家确认收货)
SELLER_REFUSE_BUYER(卖家拒绝退款)
CLOSED(退款关闭)
SUCCESS(退款成功) +func (r *TaobaoRefundsApplyGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoRefundsApplyGetAPIRequest) GetStatus() string { + return r._status +} +// SellerNick Setter +// 卖家昵称 +func (r *TaobaoRefundsApplyGetAPIRequest) SetSellerNick(_sellerNick string) error { + r._sellerNick = _sellerNick + r.Set("seller_nick", _sellerNick) + return nil +} + +// SellerNick Getter +func (r TaobaoRefundsApplyGetAPIRequest) GetSellerNick() string { + return r._sellerNick +} +// Type Setter +// 交易类型列表,一次查询多种类型可用半角逗号分隔,默认同时查询guarantee_trade, auto_delivery的2种类型的数据。
fixed(一口价)
auction(拍卖)
guarantee_trade(一口价、拍卖)
independent_simple_trade(旺店入门版交易)
independent_shop_trade(旺店标准版交易)
auto_delivery(自动发货)
ec(直冲)
cod(货到付款)
fenxiao(分销)
game_equipment(游戏装备)
shopex_trade(ShopEX交易)
netcn_trade(万网交易)
external_trade(统一外部交易) +func (r *TaobaoRefundsApplyGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoRefundsApplyGetAPIRequest) GetType() string { + return r._type +} +// PageNo Setter +// 页码。传入值为 1 代表第一页,传入值为 2 代表第二页,依此类推。默认返回的数据是从第一页开始 +func (r *TaobaoRefundsApplyGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoRefundsApplyGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数。取值范围:大于零的整数; 默认值:40;最大值:100 +func (r *TaobaoRefundsApplyGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoRefundsApplyGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/refund/TaobaoRefundsApplyGetAPIResponse.go b/model/refund/TaobaoRefundsApplyGetAPIResponse.go new file mode 100644 index 0000000000..2771a3ad65 --- /dev/null +++ b/model/refund/TaobaoRefundsApplyGetAPIResponse.go @@ -0,0 +1,29 @@ +package refund + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询买家申请的退款列表 API返回值 +taobao.refunds.apply.get + +查询买家申请的退款列表,且查询外店的退款列表时需要指定交易类型 +*/ +type TaobaoRefundsApplyGetAPIResponse struct { + model.CommonResponse + TaobaoRefundsApplyGetAPIResponseModel +} + +// 查询买家申请的退款列表 成功返回结果 +type TaobaoRefundsApplyGetAPIResponseModel struct { + XMLName xml.Name `xml:"refunds_apply_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 搜索到的退款信息列表 + Refunds []Refund `json:"refunds,omitempty" xml:"refunds>refund,omitempty"` + // 搜索到的交易信息总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/refund/TaobaoRefundsApplyGetResponse.go b/model/refund/TaobaoRefundsApplyGetResponse.go deleted file mode 100644 index 7c8f822b0f..0000000000 --- a/model/refund/TaobaoRefundsApplyGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package refund - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询买家申请的退款列表 API返回值 -taobao.refunds.apply.get - -查询买家申请的退款列表,且查询外店的退款列表时需要指定交易类型 -*/ -type TaobaoRefundsApplyGetAPIResponse struct { - model.CommonResponse - TaobaoRefundsApplyGetResponse -} - -// 查询买家申请的退款列表 成功返回结果 -type TaobaoRefundsApplyGetResponse struct { - XMLName xml.Name `xml:"refunds_apply_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 搜索到的退款信息列表 - Refunds []Refund `json:"refunds,omitempty" xml:"refunds>refund,omitempty"` - // 搜索到的交易信息总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/refund/TaobaoRpRefundReviewAPIRequest.go b/model/refund/TaobaoRpRefundReviewAPIRequest.go new file mode 100644 index 0000000000..b590600c07 --- /dev/null +++ b/model/refund/TaobaoRpRefundReviewAPIRequest.go @@ -0,0 +1,122 @@ +package refund + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +审核退款单 API请求 +taobao.rp.refund.review + +审核退款单,标志是否可用于批量退款,目前仅支持天猫订单。 +*/ +type TaobaoRpRefundReviewAPIRequest struct { + model.Params + // 退款单编号 + _refundId int64 + // 审核人姓名 + _operator string + // 退款阶段,可选值:售中:onsale,售后:aftersale + _refundPhase string + // 退款最后更新时间,以时间戳的方式表示 + _refundVersion int64 + // 审核是否可用于批量退款,可选值:true(审核通过),false(审核不通过或反审核) + _result bool + // 审核留言 + _message string +} + +// 初始化TaobaoRpRefundReviewAPIRequest对象 +func NewTaobaoRpRefundReviewRequest() *TaobaoRpRefundReviewAPIRequest{ + return &TaobaoRpRefundReviewAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRpRefundReviewAPIRequest) GetApiMethodName() string { + return "taobao.rp.refund.review" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRpRefundReviewAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundId Setter +// 退款单编号 +func (r *TaobaoRpRefundReviewAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoRpRefundReviewAPIRequest) GetRefundId() int64 { + return r._refundId +} +// Operator Setter +// 审核人姓名 +func (r *TaobaoRpRefundReviewAPIRequest) SetOperator(_operator string) error { + r._operator = _operator + r.Set("operator", _operator) + return nil +} + +// Operator Getter +func (r TaobaoRpRefundReviewAPIRequest) GetOperator() string { + return r._operator +} +// RefundPhase Setter +// 退款阶段,可选值:售中:onsale,售后:aftersale +func (r *TaobaoRpRefundReviewAPIRequest) SetRefundPhase(_refundPhase string) error { + r._refundPhase = _refundPhase + r.Set("refund_phase", _refundPhase) + return nil +} + +// RefundPhase Getter +func (r TaobaoRpRefundReviewAPIRequest) GetRefundPhase() string { + return r._refundPhase +} +// RefundVersion Setter +// 退款最后更新时间,以时间戳的方式表示 +func (r *TaobaoRpRefundReviewAPIRequest) SetRefundVersion(_refundVersion int64) error { + r._refundVersion = _refundVersion + r.Set("refund_version", _refundVersion) + return nil +} + +// RefundVersion Getter +func (r TaobaoRpRefundReviewAPIRequest) GetRefundVersion() int64 { + return r._refundVersion +} +// Result Setter +// 审核是否可用于批量退款,可选值:true(审核通过),false(审核不通过或反审核) +func (r *TaobaoRpRefundReviewAPIRequest) SetResult(_result bool) error { + r._result = _result + r.Set("result", _result) + return nil +} + +// Result Getter +func (r TaobaoRpRefundReviewAPIRequest) GetResult() bool { + return r._result +} +// Message Setter +// 审核留言 +func (r *TaobaoRpRefundReviewAPIRequest) SetMessage(_message string) error { + r._message = _message + r.Set("message", _message) + return nil +} + +// Message Getter +func (r TaobaoRpRefundReviewAPIRequest) GetMessage() string { + return r._message +} diff --git a/model/refund/TaobaoRpRefundReviewAPIResponse.go b/model/refund/TaobaoRpRefundReviewAPIResponse.go new file mode 100644 index 0000000000..5177063224 --- /dev/null +++ b/model/refund/TaobaoRpRefundReviewAPIResponse.go @@ -0,0 +1,27 @@ +package refund + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +审核退款单 API返回值 +taobao.rp.refund.review + +审核退款单,标志是否可用于批量退款,目前仅支持天猫订单。 +*/ +type TaobaoRpRefundReviewAPIResponse struct { + model.CommonResponse + TaobaoRpRefundReviewAPIResponseModel +} + +// 审核退款单 成功返回结果 +type TaobaoRpRefundReviewAPIResponseModel struct { + XMLName xml.Name `xml:"rp_refund_review_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/refund/TaobaoRpRefundReviewResponse.go b/model/refund/TaobaoRpRefundReviewResponse.go deleted file mode 100644 index 700130e750..0000000000 --- a/model/refund/TaobaoRpRefundReviewResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package refund - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -审核退款单 API返回值 -taobao.rp.refund.review - -审核退款单,标志是否可用于批量退款,目前仅支持天猫订单。 -*/ -type TaobaoRpRefundReviewAPIResponse struct { - model.CommonResponse - TaobaoRpRefundReviewResponse -} - -// 审核退款单 成功返回结果 -type TaobaoRpRefundReviewResponse struct { - XMLName xml.Name `xml:"rp_refund_review_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/refund/TaobaoRpRefundsAgreeAPIRequest.go b/model/refund/TaobaoRpRefundsAgreeAPIRequest.go new file mode 100644 index 0000000000..1a5347400a --- /dev/null +++ b/model/refund/TaobaoRpRefundsAgreeAPIRequest.go @@ -0,0 +1,66 @@ +package refund + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同意退款 API请求 +taobao.rp.refunds.agree + +卖家同意退款,支持批量退款,只允许子账号操作。淘宝退款一次最多能退20笔,总金额不超过6000元;天猫退款一次最多能退30笔,总金额不超过10000元。 +*/ +type TaobaoRpRefundsAgreeAPIRequest struct { + model.Params + // 短信验证码,如果退款金额达到一定的数量,后端会返回调用失败,并同时往卖家的手机发送一条短信验证码。接下来用收到的短信验证码再次发起API调用即可完成退款操作。 + _code string + // 退款信息,格式:refund_id|amount|version|phase,其中refund_id为退款编号,amount为退款金额(以分为单位),version为退款最后更新时间(时间戳格式),phase为退款阶段(可选值为:onsale, aftersale,天猫退款必值,淘宝退款不需要传),多个退款以半角逗号分隔。 + _refundInfos string +} + +// 初始化TaobaoRpRefundsAgreeAPIRequest对象 +func NewTaobaoRpRefundsAgreeRequest() *TaobaoRpRefundsAgreeAPIRequest{ + return &TaobaoRpRefundsAgreeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRpRefundsAgreeAPIRequest) GetApiMethodName() string { + return "taobao.rp.refunds.agree" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRpRefundsAgreeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 短信验证码,如果退款金额达到一定的数量,后端会返回调用失败,并同时往卖家的手机发送一条短信验证码。接下来用收到的短信验证码再次发起API调用即可完成退款操作。 +func (r *TaobaoRpRefundsAgreeAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r TaobaoRpRefundsAgreeAPIRequest) GetCode() string { + return r._code +} +// RefundInfos Setter +// 退款信息,格式:refund_id|amount|version|phase,其中refund_id为退款编号,amount为退款金额(以分为单位),version为退款最后更新时间(时间戳格式),phase为退款阶段(可选值为:onsale, aftersale,天猫退款必值,淘宝退款不需要传),多个退款以半角逗号分隔。 +func (r *TaobaoRpRefundsAgreeAPIRequest) SetRefundInfos(_refundInfos string) error { + r._refundInfos = _refundInfos + r.Set("refund_infos", _refundInfos) + return nil +} + +// RefundInfos Getter +func (r TaobaoRpRefundsAgreeAPIRequest) GetRefundInfos() string { + return r._refundInfos +} diff --git a/model/refund/TaobaoRpRefundsAgreeAPIResponse.go b/model/refund/TaobaoRpRefundsAgreeAPIResponse.go new file mode 100644 index 0000000000..6bd480481b --- /dev/null +++ b/model/refund/TaobaoRpRefundsAgreeAPIResponse.go @@ -0,0 +1,33 @@ +package refund + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同意退款 API返回值 +taobao.rp.refunds.agree + +卖家同意退款,支持批量退款,只允许子账号操作。淘宝退款一次最多能退20笔,总金额不超过6000元;天猫退款一次最多能退30笔,总金额不超过10000元。 +*/ +type TaobaoRpRefundsAgreeAPIResponse struct { + model.CommonResponse + TaobaoRpRefundsAgreeAPIResponseModel +} + +// 同意退款 成功返回结果 +type TaobaoRpRefundsAgreeAPIResponseModel struct { + XMLName xml.Name `xml:"rp_refunds_agree_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 退款操作结果列表 + Results []RefundMappingResult `json:"results,omitempty" xml:"results>refund_mapping_result,omitempty"` + // 批量退款操作情况,可选值:OP_SUCC(全部成功),SOME_OP_SUCC(部分成功),OP_FAILURE_UE(全部失败) + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 操作成功 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/refund/TaobaoRpRefundsAgreeResponse.go b/model/refund/TaobaoRpRefundsAgreeResponse.go deleted file mode 100644 index 56d1e4b75a..0000000000 --- a/model/refund/TaobaoRpRefundsAgreeResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package refund - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同意退款 API返回值 -taobao.rp.refunds.agree - -卖家同意退款,支持批量退款,只允许子账号操作。淘宝退款一次最多能退20笔,总金额不超过6000元;天猫退款一次最多能退30笔,总金额不超过10000元。 -*/ -type TaobaoRpRefundsAgreeAPIResponse struct { - model.CommonResponse - TaobaoRpRefundsAgreeResponse -} - -// 同意退款 成功返回结果 -type TaobaoRpRefundsAgreeResponse struct { - XMLName xml.Name `xml:"rp_refunds_agree_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 退款操作结果列表 - Results []RefundMappingResult `json:"results,omitempty" xml:"results>refund_mapping_result,omitempty"` - // 批量退款操作情况,可选值:OP_SUCC(全部成功),SOME_OP_SUCC(部分成功),OP_FAILURE_UE(全部失败) - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 操作成功 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` - // 信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/refund/TaobaoRpReturngoodsAgreeAPIRequest.go b/model/refund/TaobaoRpReturngoodsAgreeAPIRequest.go new file mode 100644 index 0000000000..3bbef2cf14 --- /dev/null +++ b/model/refund/TaobaoRpReturngoodsAgreeAPIRequest.go @@ -0,0 +1,206 @@ +package refund + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家同意退货 API请求 +taobao.rp.returngoods.agree + +卖家同意退货,支持淘宝和天猫的订单。 +*/ +type TaobaoRpReturngoodsAgreeAPIRequest struct { + model.Params + // 退款编号 + _refundId int64 + // 卖家姓名,淘宝退款为必填项。 + _name string + // 卖家提供的退货地址,淘宝退款为必填项。 + _address string + // 卖家提供的退货地址的邮编,淘宝退款为必填项。 + _post string + // 卖家座机,淘宝退款为必填项。 + _tel string + // 卖家手机,淘宝退款为必填项。 + _mobile string + // 卖家退货留言,天猫退款为必填项。 + _remark string + // 售中:onsale,售后:aftersale,天猫退款为必填项。 + _refundPhase string + // 退款版本号,天猫退款为必填项。 + _refundVersion int64 + // 卖家收货地址编号,天猫淘宝退款都为必填项。 + _sellerAddressId int64 + // 邮费承担方,买家承担值为1,卖家承担值为0 + _postFeeBearRole int64 + // 是否虚拟退货,可选项 + _virtualReturnGoods bool +} + +// 初始化TaobaoRpReturngoodsAgreeAPIRequest对象 +func NewTaobaoRpReturngoodsAgreeRequest() *TaobaoRpReturngoodsAgreeAPIRequest{ + return &TaobaoRpReturngoodsAgreeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRpReturngoodsAgreeAPIRequest) GetApiMethodName() string { + return "taobao.rp.returngoods.agree" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRpReturngoodsAgreeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundId Setter +// 退款编号 +func (r *TaobaoRpReturngoodsAgreeAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoRpReturngoodsAgreeAPIRequest) GetRefundId() int64 { + return r._refundId +} +// Name Setter +// 卖家姓名,淘宝退款为必填项。 +func (r *TaobaoRpReturngoodsAgreeAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoRpReturngoodsAgreeAPIRequest) GetName() string { + return r._name +} +// Address Setter +// 卖家提供的退货地址,淘宝退款为必填项。 +func (r *TaobaoRpReturngoodsAgreeAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r TaobaoRpReturngoodsAgreeAPIRequest) GetAddress() string { + return r._address +} +// Post Setter +// 卖家提供的退货地址的邮编,淘宝退款为必填项。 +func (r *TaobaoRpReturngoodsAgreeAPIRequest) SetPost(_post string) error { + r._post = _post + r.Set("post", _post) + return nil +} + +// Post Getter +func (r TaobaoRpReturngoodsAgreeAPIRequest) GetPost() string { + return r._post +} +// Tel Setter +// 卖家座机,淘宝退款为必填项。 +func (r *TaobaoRpReturngoodsAgreeAPIRequest) SetTel(_tel string) error { + r._tel = _tel + r.Set("tel", _tel) + return nil +} + +// Tel Getter +func (r TaobaoRpReturngoodsAgreeAPIRequest) GetTel() string { + return r._tel +} +// Mobile Setter +// 卖家手机,淘宝退款为必填项。 +func (r *TaobaoRpReturngoodsAgreeAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r TaobaoRpReturngoodsAgreeAPIRequest) GetMobile() string { + return r._mobile +} +// Remark Setter +// 卖家退货留言,天猫退款为必填项。 +func (r *TaobaoRpReturngoodsAgreeAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r TaobaoRpReturngoodsAgreeAPIRequest) GetRemark() string { + return r._remark +} +// RefundPhase Setter +// 售中:onsale,售后:aftersale,天猫退款为必填项。 +func (r *TaobaoRpReturngoodsAgreeAPIRequest) SetRefundPhase(_refundPhase string) error { + r._refundPhase = _refundPhase + r.Set("refund_phase", _refundPhase) + return nil +} + +// RefundPhase Getter +func (r TaobaoRpReturngoodsAgreeAPIRequest) GetRefundPhase() string { + return r._refundPhase +} +// RefundVersion Setter +// 退款版本号,天猫退款为必填项。 +func (r *TaobaoRpReturngoodsAgreeAPIRequest) SetRefundVersion(_refundVersion int64) error { + r._refundVersion = _refundVersion + r.Set("refund_version", _refundVersion) + return nil +} + +// RefundVersion Getter +func (r TaobaoRpReturngoodsAgreeAPIRequest) GetRefundVersion() int64 { + return r._refundVersion +} +// SellerAddressId Setter +// 卖家收货地址编号,天猫淘宝退款都为必填项。 +func (r *TaobaoRpReturngoodsAgreeAPIRequest) SetSellerAddressId(_sellerAddressId int64) error { + r._sellerAddressId = _sellerAddressId + r.Set("seller_address_id", _sellerAddressId) + return nil +} + +// SellerAddressId Getter +func (r TaobaoRpReturngoodsAgreeAPIRequest) GetSellerAddressId() int64 { + return r._sellerAddressId +} +// PostFeeBearRole Setter +// 邮费承担方,买家承担值为1,卖家承担值为0 +func (r *TaobaoRpReturngoodsAgreeAPIRequest) SetPostFeeBearRole(_postFeeBearRole int64) error { + r._postFeeBearRole = _postFeeBearRole + r.Set("post_fee_bear_role", _postFeeBearRole) + return nil +} + +// PostFeeBearRole Getter +func (r TaobaoRpReturngoodsAgreeAPIRequest) GetPostFeeBearRole() int64 { + return r._postFeeBearRole +} +// VirtualReturnGoods Setter +// 是否虚拟退货,可选项 +func (r *TaobaoRpReturngoodsAgreeAPIRequest) SetVirtualReturnGoods(_virtualReturnGoods bool) error { + r._virtualReturnGoods = _virtualReturnGoods + r.Set("virtual_return_goods", _virtualReturnGoods) + return nil +} + +// VirtualReturnGoods Getter +func (r TaobaoRpReturngoodsAgreeAPIRequest) GetVirtualReturnGoods() bool { + return r._virtualReturnGoods +} diff --git a/model/refund/TaobaoRpReturngoodsAgreeAPIResponse.go b/model/refund/TaobaoRpReturngoodsAgreeAPIResponse.go new file mode 100644 index 0000000000..6ae880a240 --- /dev/null +++ b/model/refund/TaobaoRpReturngoodsAgreeAPIResponse.go @@ -0,0 +1,27 @@ +package refund + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家同意退货 API返回值 +taobao.rp.returngoods.agree + +卖家同意退货,支持淘宝和天猫的订单。 +*/ +type TaobaoRpReturngoodsAgreeAPIResponse struct { + model.CommonResponse + TaobaoRpReturngoodsAgreeAPIResponseModel +} + +// 卖家同意退货 成功返回结果 +type TaobaoRpReturngoodsAgreeAPIResponseModel struct { + XMLName xml.Name `xml:"rp_returngoods_agree_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/refund/TaobaoRpReturngoodsAgreeResponse.go b/model/refund/TaobaoRpReturngoodsAgreeResponse.go deleted file mode 100644 index 5141dd17cd..0000000000 --- a/model/refund/TaobaoRpReturngoodsAgreeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package refund - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家同意退货 API返回值 -taobao.rp.returngoods.agree - -卖家同意退货,支持淘宝和天猫的订单。 -*/ -type TaobaoRpReturngoodsAgreeAPIResponse struct { - model.CommonResponse - TaobaoRpReturngoodsAgreeResponse -} - -// 卖家同意退货 成功返回结果 -type TaobaoRpReturngoodsAgreeResponse struct { - XMLName xml.Name `xml:"rp_returngoods_agree_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/refund/TaobaoRpReturngoodsRefillAPIRequest.go b/model/refund/TaobaoRpReturngoodsRefillAPIRequest.go new file mode 100644 index 0000000000..17784bdafe --- /dev/null +++ b/model/refund/TaobaoRpReturngoodsRefillAPIRequest.go @@ -0,0 +1,94 @@ +package refund + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家回填物流信息 API请求 +taobao.rp.returngoods.refill + +卖家收到货物回填物流信息,如果买家已经回填物流信息,则接口报错,目前仅支持天猫订单。 +*/ +type TaobaoRpReturngoodsRefillAPIRequest struct { + model.Params + // 退款单编号 + _refundId int64 + // 退款阶段,可选值:售中:onsale,售后:aftersale + _refundPhase string + // 物流公司运单号 + _logisticsWaybillNo string + // 物流公司编号 + _logisticsCompanyCode string +} + +// 初始化TaobaoRpReturngoodsRefillAPIRequest对象 +func NewTaobaoRpReturngoodsRefillRequest() *TaobaoRpReturngoodsRefillAPIRequest{ + return &TaobaoRpReturngoodsRefillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRpReturngoodsRefillAPIRequest) GetApiMethodName() string { + return "taobao.rp.returngoods.refill" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRpReturngoodsRefillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundId Setter +// 退款单编号 +func (r *TaobaoRpReturngoodsRefillAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoRpReturngoodsRefillAPIRequest) GetRefundId() int64 { + return r._refundId +} +// RefundPhase Setter +// 退款阶段,可选值:售中:onsale,售后:aftersale +func (r *TaobaoRpReturngoodsRefillAPIRequest) SetRefundPhase(_refundPhase string) error { + r._refundPhase = _refundPhase + r.Set("refund_phase", _refundPhase) + return nil +} + +// RefundPhase Getter +func (r TaobaoRpReturngoodsRefillAPIRequest) GetRefundPhase() string { + return r._refundPhase +} +// LogisticsWaybillNo Setter +// 物流公司运单号 +func (r *TaobaoRpReturngoodsRefillAPIRequest) SetLogisticsWaybillNo(_logisticsWaybillNo string) error { + r._logisticsWaybillNo = _logisticsWaybillNo + r.Set("logistics_waybill_no", _logisticsWaybillNo) + return nil +} + +// LogisticsWaybillNo Getter +func (r TaobaoRpReturngoodsRefillAPIRequest) GetLogisticsWaybillNo() string { + return r._logisticsWaybillNo +} +// LogisticsCompanyCode Setter +// 物流公司编号 +func (r *TaobaoRpReturngoodsRefillAPIRequest) SetLogisticsCompanyCode(_logisticsCompanyCode string) error { + r._logisticsCompanyCode = _logisticsCompanyCode + r.Set("logistics_company_code", _logisticsCompanyCode) + return nil +} + +// LogisticsCompanyCode Getter +func (r TaobaoRpReturngoodsRefillAPIRequest) GetLogisticsCompanyCode() string { + return r._logisticsCompanyCode +} diff --git a/model/refund/TaobaoRpReturngoodsRefillAPIResponse.go b/model/refund/TaobaoRpReturngoodsRefillAPIResponse.go new file mode 100644 index 0000000000..a566e7178b --- /dev/null +++ b/model/refund/TaobaoRpReturngoodsRefillAPIResponse.go @@ -0,0 +1,27 @@ +package refund + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家回填物流信息 API返回值 +taobao.rp.returngoods.refill + +卖家收到货物回填物流信息,如果买家已经回填物流信息,则接口报错,目前仅支持天猫订单。 +*/ +type TaobaoRpReturngoodsRefillAPIResponse struct { + model.CommonResponse + TaobaoRpReturngoodsRefillAPIResponseModel +} + +// 卖家回填物流信息 成功返回结果 +type TaobaoRpReturngoodsRefillAPIResponseModel struct { + XMLName xml.Name `xml:"rp_returngoods_refill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 验货操作是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/refund/TaobaoRpReturngoodsRefillResponse.go b/model/refund/TaobaoRpReturngoodsRefillResponse.go deleted file mode 100644 index 08c11e166c..0000000000 --- a/model/refund/TaobaoRpReturngoodsRefillResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package refund - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家回填物流信息 API返回值 -taobao.rp.returngoods.refill - -卖家收到货物回填物流信息,如果买家已经回填物流信息,则接口报错,目前仅支持天猫订单。 -*/ -type TaobaoRpReturngoodsRefillAPIResponse struct { - model.CommonResponse - TaobaoRpReturngoodsRefillResponse -} - -// 卖家回填物流信息 成功返回结果 -type TaobaoRpReturngoodsRefillResponse struct { - XMLName xml.Name `xml:"rp_returngoods_refill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 验货操作是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/refund/TaobaoRpReturngoodsRefuseAPIRequest.go b/model/refund/TaobaoRpReturngoodsRefuseAPIRequest.go new file mode 100644 index 0000000000..b24d1aa96c --- /dev/null +++ b/model/refund/TaobaoRpReturngoodsRefuseAPIRequest.go @@ -0,0 +1,108 @@ +package refund + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家拒绝退货 API请求 +taobao.rp.returngoods.refuse + +卖家拒绝退货,目前仅支持天猫退货。 +*/ +type TaobaoRpReturngoodsRefuseAPIRequest struct { + model.Params + // 退款编号 + _refundId int64 + // 退款服务状态,售后或者售中 + _refundPhase string + // 退款版本号 + _refundVersion int64 + // 拒绝退货凭证图片,必须图片格式,大小不能超过5M + _refuseProof *model.File + // 拒绝原因编号,会提供拒绝原因列表供选择 + _refuseReasonId int64 +} + +// 初始化TaobaoRpReturngoodsRefuseAPIRequest对象 +func NewTaobaoRpReturngoodsRefuseRequest() *TaobaoRpReturngoodsRefuseAPIRequest{ + return &TaobaoRpReturngoodsRefuseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRpReturngoodsRefuseAPIRequest) GetApiMethodName() string { + return "taobao.rp.returngoods.refuse" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRpReturngoodsRefuseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundId Setter +// 退款编号 +func (r *TaobaoRpReturngoodsRefuseAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoRpReturngoodsRefuseAPIRequest) GetRefundId() int64 { + return r._refundId +} +// RefundPhase Setter +// 退款服务状态,售后或者售中 +func (r *TaobaoRpReturngoodsRefuseAPIRequest) SetRefundPhase(_refundPhase string) error { + r._refundPhase = _refundPhase + r.Set("refund_phase", _refundPhase) + return nil +} + +// RefundPhase Getter +func (r TaobaoRpReturngoodsRefuseAPIRequest) GetRefundPhase() string { + return r._refundPhase +} +// RefundVersion Setter +// 退款版本号 +func (r *TaobaoRpReturngoodsRefuseAPIRequest) SetRefundVersion(_refundVersion int64) error { + r._refundVersion = _refundVersion + r.Set("refund_version", _refundVersion) + return nil +} + +// RefundVersion Getter +func (r TaobaoRpReturngoodsRefuseAPIRequest) GetRefundVersion() int64 { + return r._refundVersion +} +// RefuseProof Setter +// 拒绝退货凭证图片,必须图片格式,大小不能超过5M +func (r *TaobaoRpReturngoodsRefuseAPIRequest) SetRefuseProof(_refuseProof *model.File) error { + r._refuseProof = _refuseProof + r.Set("refuse_proof", _refuseProof) + return nil +} + +// RefuseProof Getter +func (r TaobaoRpReturngoodsRefuseAPIRequest) GetRefuseProof() *model.File { + return r._refuseProof +} +// RefuseReasonId Setter +// 拒绝原因编号,会提供拒绝原因列表供选择 +func (r *TaobaoRpReturngoodsRefuseAPIRequest) SetRefuseReasonId(_refuseReasonId int64) error { + r._refuseReasonId = _refuseReasonId + r.Set("refuse_reason_id", _refuseReasonId) + return nil +} + +// RefuseReasonId Getter +func (r TaobaoRpReturngoodsRefuseAPIRequest) GetRefuseReasonId() int64 { + return r._refuseReasonId +} diff --git a/model/refund/TaobaoRpReturngoodsRefuseAPIResponse.go b/model/refund/TaobaoRpReturngoodsRefuseAPIResponse.go new file mode 100644 index 0000000000..93d10cc7aa --- /dev/null +++ b/model/refund/TaobaoRpReturngoodsRefuseAPIResponse.go @@ -0,0 +1,27 @@ +package refund + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家拒绝退货 API返回值 +taobao.rp.returngoods.refuse + +卖家拒绝退货,目前仅支持天猫退货。 +*/ +type TaobaoRpReturngoodsRefuseAPIResponse struct { + model.CommonResponse + TaobaoRpReturngoodsRefuseAPIResponseModel +} + +// 卖家拒绝退货 成功返回结果 +type TaobaoRpReturngoodsRefuseAPIResponseModel struct { + XMLName xml.Name `xml:"rp_returngoods_refuse_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // asdf + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/refund/TaobaoRpReturngoodsRefuseResponse.go b/model/refund/TaobaoRpReturngoodsRefuseResponse.go deleted file mode 100644 index 8820cf8541..0000000000 --- a/model/refund/TaobaoRpReturngoodsRefuseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package refund - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家拒绝退货 API返回值 -taobao.rp.returngoods.refuse - -卖家拒绝退货,目前仅支持天猫退货。 -*/ -type TaobaoRpReturngoodsRefuseAPIResponse struct { - model.CommonResponse - TaobaoRpReturngoodsRefuseResponse -} - -// 卖家拒绝退货 成功返回结果 -type TaobaoRpReturngoodsRefuseResponse struct { - XMLName xml.Name `xml:"rp_returngoods_refuse_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // asdf - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/refund/TaobaoSpecialRefundGetAPIRequest.go b/model/refund/TaobaoSpecialRefundGetAPIRequest.go new file mode 100644 index 0000000000..9ff5396aa8 --- /dev/null +++ b/model/refund/TaobaoSpecialRefundGetAPIRequest.go @@ -0,0 +1,66 @@ +package refund + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +特殊部分退纠纷单查询 API请求 +taobao.special.refund.get + +获取单笔特殊部分退的纠纷单查询 +*/ +type TaobaoSpecialRefundGetAPIRequest struct { + model.Params + // 需要返回的字段。目前支持有:refund_id, alipay_no, tid, oid, buyer_nick, seller_nick, total_fee, status, created, refund_fee, good_status, has_good_return, payment, reason, desc, num_iid, title, price, num, good_return_time, company_name, sid, address, shipping_type, refund_remind_timeout, refund_phase, refund_version, operation_contraint, attribute, outer_id, sku + _fields []string + // 退款单号 + _refundId int64 +} + +// 初始化TaobaoSpecialRefundGetAPIRequest对象 +func NewTaobaoSpecialRefundGetRequest() *TaobaoSpecialRefundGetAPIRequest{ + return &TaobaoSpecialRefundGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSpecialRefundGetAPIRequest) GetApiMethodName() string { + return "taobao.special.refund.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSpecialRefundGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的字段。目前支持有:refund_id, alipay_no, tid, oid, buyer_nick, seller_nick, total_fee, status, created, refund_fee, good_status, has_good_return, payment, reason, desc, num_iid, title, price, num, good_return_time, company_name, sid, address, shipping_type, refund_remind_timeout, refund_phase, refund_version, operation_contraint, attribute, outer_id, sku +func (r *TaobaoSpecialRefundGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoSpecialRefundGetAPIRequest) GetFields() []string { + return r._fields +} +// RefundId Setter +// 退款单号 +func (r *TaobaoSpecialRefundGetAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TaobaoSpecialRefundGetAPIRequest) GetRefundId() int64 { + return r._refundId +} diff --git a/model/refund/TaobaoSpecialRefundGetAPIResponse.go b/model/refund/TaobaoSpecialRefundGetAPIResponse.go new file mode 100644 index 0000000000..e4fb5a3e1c --- /dev/null +++ b/model/refund/TaobaoSpecialRefundGetAPIResponse.go @@ -0,0 +1,27 @@ +package refund + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +特殊部分退纠纷单查询 API返回值 +taobao.special.refund.get + +获取单笔特殊部分退的纠纷单查询 +*/ +type TaobaoSpecialRefundGetAPIResponse struct { + model.CommonResponse + TaobaoSpecialRefundGetAPIResponseModel +} + +// 特殊部分退纠纷单查询 成功返回结果 +type TaobaoSpecialRefundGetAPIResponseModel struct { + XMLName xml.Name `xml:"special_refund_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 退款详情 + Refund *Refund `json:"refund,omitempty" xml:"refund,omitempty"` +} diff --git a/model/refund/TaobaoSpecialRefundGetResponse.go b/model/refund/TaobaoSpecialRefundGetResponse.go deleted file mode 100644 index 1a7a81600c..0000000000 --- a/model/refund/TaobaoSpecialRefundGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package refund - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -特殊部分退纠纷单查询 API返回值 -taobao.special.refund.get - -获取单笔特殊部分退的纠纷单查询 -*/ -type TaobaoSpecialRefundGetAPIResponse struct { - model.CommonResponse - TaobaoSpecialRefundGetResponse -} - -// 特殊部分退纠纷单查询 成功返回结果 -type TaobaoSpecialRefundGetResponse struct { - XMLName xml.Name `xml:"special_refund_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 退款详情 - Refund *Refund `json:"refund,omitempty" xml:"refund,omitempty"` -} diff --git a/model/refund/TaobaoSpecialRefundsReceiveGetAPIRequest.go b/model/refund/TaobaoSpecialRefundsReceiveGetAPIRequest.go new file mode 100644 index 0000000000..d354aae12b --- /dev/null +++ b/model/refund/TaobaoSpecialRefundsReceiveGetAPIRequest.go @@ -0,0 +1,164 @@ +package refund + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +特殊退款类型的纠纷单列表查询 API请求 +taobao.special.refunds.receive.get + +特殊退款类型的纠纷单列表查询 +*/ +type TaobaoSpecialRefundsReceiveGetAPIRequest struct { + model.Params + // 需要返回的字段。目前支持有:refund_id, tid, title, buyer_nick, seller_nick, total_fee, status, created, refund_fee, oid, good_status, company_name, sid, payment, reason, desc, has_good_return, modified, order_status,refund_phase + _fields []string + // 退款状态,默认查询所有退款状态的数据,除了默认值外每次只能查询一种状态。WAIT_SELLER_AGREE(买家已经申请退款,等待卖家同意) WAIT_BUYER_RETURN_GOODS(卖家已经同意退款,等待买家退货) WAIT_SELLER_CONFIRM_GOODS(买家已经退货,等待卖家确认收货) SELLER_REFUSE_BUYER(卖家拒绝退款) CLOSED(退款关闭) SUCCESS(退款成功) + _status string + // 买家昵称 + _buyerNick string + // 交易类型列表,一次查询多种类型可用半角逗号分隔,默认同时查询guarantee_trade, auto_delivery这两种类型的数据,查看可选值 + _type string + // 查询修改时间开始。格式: yyyy-MM-dd HH:mm:ss + _startModified string + // 查询修改时间结束。格式: yyyy-MM-dd HH:mm:ss + _endModified string + // 页码。取值范围:大于零的整数; 默认值:1 + _pageNo int64 + // 每页条数。取值范围:大于零的整数; 默认值:40;最大值:100 + _pageSize int64 + // 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取增量退款,接口调用成功率在原有的基础上有所提升。 + _useHasNext bool +} + +// 初始化TaobaoSpecialRefundsReceiveGetAPIRequest对象 +func NewTaobaoSpecialRefundsReceiveGetRequest() *TaobaoSpecialRefundsReceiveGetAPIRequest{ + return &TaobaoSpecialRefundsReceiveGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSpecialRefundsReceiveGetAPIRequest) GetApiMethodName() string { + return "taobao.special.refunds.receive.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSpecialRefundsReceiveGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的字段。目前支持有:refund_id, tid, title, buyer_nick, seller_nick, total_fee, status, created, refund_fee, oid, good_status, company_name, sid, payment, reason, desc, has_good_return, modified, order_status,refund_phase +func (r *TaobaoSpecialRefundsReceiveGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoSpecialRefundsReceiveGetAPIRequest) GetFields() []string { + return r._fields +} +// Status Setter +// 退款状态,默认查询所有退款状态的数据,除了默认值外每次只能查询一种状态。WAIT_SELLER_AGREE(买家已经申请退款,等待卖家同意) WAIT_BUYER_RETURN_GOODS(卖家已经同意退款,等待买家退货) WAIT_SELLER_CONFIRM_GOODS(买家已经退货,等待卖家确认收货) SELLER_REFUSE_BUYER(卖家拒绝退款) CLOSED(退款关闭) SUCCESS(退款成功) +func (r *TaobaoSpecialRefundsReceiveGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoSpecialRefundsReceiveGetAPIRequest) GetStatus() string { + return r._status +} +// BuyerNick Setter +// 买家昵称 +func (r *TaobaoSpecialRefundsReceiveGetAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoSpecialRefundsReceiveGetAPIRequest) GetBuyerNick() string { + return r._buyerNick +} +// Type Setter +// 交易类型列表,一次查询多种类型可用半角逗号分隔,默认同时查询guarantee_trade, auto_delivery这两种类型的数据,查看可选值 +func (r *TaobaoSpecialRefundsReceiveGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoSpecialRefundsReceiveGetAPIRequest) GetType() string { + return r._type +} +// StartModified Setter +// 查询修改时间开始。格式: yyyy-MM-dd HH:mm:ss +func (r *TaobaoSpecialRefundsReceiveGetAPIRequest) SetStartModified(_startModified string) error { + r._startModified = _startModified + r.Set("start_modified", _startModified) + return nil +} + +// StartModified Getter +func (r TaobaoSpecialRefundsReceiveGetAPIRequest) GetStartModified() string { + return r._startModified +} +// EndModified Setter +// 查询修改时间结束。格式: yyyy-MM-dd HH:mm:ss +func (r *TaobaoSpecialRefundsReceiveGetAPIRequest) SetEndModified(_endModified string) error { + r._endModified = _endModified + r.Set("end_modified", _endModified) + return nil +} + +// EndModified Getter +func (r TaobaoSpecialRefundsReceiveGetAPIRequest) GetEndModified() string { + return r._endModified +} +// PageNo Setter +// 页码。取值范围:大于零的整数; 默认值:1 +func (r *TaobaoSpecialRefundsReceiveGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSpecialRefundsReceiveGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数。取值范围:大于零的整数; 默认值:40;最大值:100 +func (r *TaobaoSpecialRefundsReceiveGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSpecialRefundsReceiveGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// UseHasNext Setter +// 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取增量退款,接口调用成功率在原有的基础上有所提升。 +func (r *TaobaoSpecialRefundsReceiveGetAPIRequest) SetUseHasNext(_useHasNext bool) error { + r._useHasNext = _useHasNext + r.Set("use_has_next", _useHasNext) + return nil +} + +// UseHasNext Getter +func (r TaobaoSpecialRefundsReceiveGetAPIRequest) GetUseHasNext() bool { + return r._useHasNext +} diff --git a/model/refund/TaobaoSpecialRefundsReceiveGetAPIResponse.go b/model/refund/TaobaoSpecialRefundsReceiveGetAPIResponse.go new file mode 100644 index 0000000000..57cda96f0b --- /dev/null +++ b/model/refund/TaobaoSpecialRefundsReceiveGetAPIResponse.go @@ -0,0 +1,31 @@ +package refund + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +特殊退款类型的纠纷单列表查询 API返回值 +taobao.special.refunds.receive.get + +特殊退款类型的纠纷单列表查询 +*/ +type TaobaoSpecialRefundsReceiveGetAPIResponse struct { + model.CommonResponse + TaobaoSpecialRefundsReceiveGetAPIResponseModel +} + +// 特殊退款类型的纠纷单列表查询 成功返回结果 +type TaobaoSpecialRefundsReceiveGetAPIResponseModel struct { + XMLName xml.Name `xml:"special_refunds_receive_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 搜索到的退款信息总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 是否存在下一页 + HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` + // 搜索到的退款信息列表 + Refunds []Refund `json:"refunds,omitempty" xml:"refunds>refund,omitempty"` +} diff --git a/model/refund/TaobaoSpecialRefundsReceiveGetResponse.go b/model/refund/TaobaoSpecialRefundsReceiveGetResponse.go deleted file mode 100644 index 9fe0a53820..0000000000 --- a/model/refund/TaobaoSpecialRefundsReceiveGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package refund - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -特殊退款类型的纠纷单列表查询 API返回值 -taobao.special.refunds.receive.get - -特殊退款类型的纠纷单列表查询 -*/ -type TaobaoSpecialRefundsReceiveGetAPIResponse struct { - model.CommonResponse - TaobaoSpecialRefundsReceiveGetResponse -} - -// 特殊退款类型的纠纷单列表查询 成功返回结果 -type TaobaoSpecialRefundsReceiveGetResponse struct { - XMLName xml.Name `xml:"special_refunds_receive_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 搜索到的退款信息总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 是否存在下一页 - HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` - // 搜索到的退款信息列表 - Refunds []Refund `json:"refunds,omitempty" xml:"refunds>refund,omitempty"` -} diff --git a/model/refund/TmallDisputeReceiveGetAPIRequest.go b/model/refund/TmallDisputeReceiveGetAPIRequest.go new file mode 100644 index 0000000000..b466298df5 --- /dev/null +++ b/model/refund/TmallDisputeReceiveGetAPIRequest.go @@ -0,0 +1,178 @@ +package refund + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫逆向纠纷查询 API请求 +tmall.dispute.receive.get + +展示商家所有退款信息 +*/ +type TmallDisputeReceiveGetAPIRequest struct { + model.Params + // 退款状态,默认查询所有退款状态的数据,除了默认值外每次只能查询一种状态。WAIT_SELLER_AGREE(买家已经申请退款,等待卖家同意);WAIT_BUYER_RETURN_GOODS(卖家已经同意退款,等待买家退货);WAIT_SELLER_CONFIRM_GOODS(买家已经退货,等待卖家确认收货);CLOSED(退款关闭); SUCCESS(退款成功);SELLER_REFUSE_BUYER(卖家拒绝退款);WAIT_BUYER_CONFIRM_REDO_SEND_GOODS(等待买家确认重新邮寄的货物);WAIT_SELLER_CONFIRM_RETURN_ADDRESS(等待卖家确认退货地址);WAIT_SELLER_CONSIGN_GOOGDS(卖家确认收货,等待卖家发货);EXCHANGE_TRANSFORM_TO_REFUND(换货关闭,转退货退款);EXCHANGE_WAIT_BUYER_CONFIRM_GOODS(卖家已发货,等待买家确认收货);POST_FEE_DISPUTE_WAIT_ACTIVATE(邮费单已创建,待激活) + _status string + // 每页条数。取值范围:大于零的整数; 默认值:20;最大值:100 + _pageSize int64 + // 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取增量退款,接口调用成功率在原有的基础上有所提升。 + _useHasNext bool + // 交易类型列表,一次查询多种类型可用半角逗号分隔,默认同时查询guarantee_trade, auto_delivery这两种类型的数据,查看可选值 + _type string + // 逆向纠纷单号id + _refundId int64 + // 页码。取值范围:大于零的整数; 默认值:1 + _pageNo int64 + // 买家昵称 + _buyerNick string + // 查询修改时间开始。格式: yyyy-MM-dd HH:mm:ss + _startModified string + // 查询修改时间结束。格式: yyyy-MM-dd HH:mm:ss + _endModified string + // 需要返回的字段。目前支持有:refund_id, alipay_no, tid, buyer_nick, seller_nick, status, created, modified, order_status, refund_fee, good_status, show_return_logistic(展现买家退货的物流信息), show_exchange_logistic(展现换货的物流信息), time_out, oid, refund_version, title, num, dispute_request, reason, desc + _fields []string +} + +// 初始化TmallDisputeReceiveGetAPIRequest对象 +func NewTmallDisputeReceiveGetRequest() *TmallDisputeReceiveGetAPIRequest{ + return &TmallDisputeReceiveGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallDisputeReceiveGetAPIRequest) GetApiMethodName() string { + return "tmall.dispute.receive.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallDisputeReceiveGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Status Setter +// 退款状态,默认查询所有退款状态的数据,除了默认值外每次只能查询一种状态。WAIT_SELLER_AGREE(买家已经申请退款,等待卖家同意);WAIT_BUYER_RETURN_GOODS(卖家已经同意退款,等待买家退货);WAIT_SELLER_CONFIRM_GOODS(买家已经退货,等待卖家确认收货);CLOSED(退款关闭); SUCCESS(退款成功);SELLER_REFUSE_BUYER(卖家拒绝退款);WAIT_BUYER_CONFIRM_REDO_SEND_GOODS(等待买家确认重新邮寄的货物);WAIT_SELLER_CONFIRM_RETURN_ADDRESS(等待卖家确认退货地址);WAIT_SELLER_CONSIGN_GOOGDS(卖家确认收货,等待卖家发货);EXCHANGE_TRANSFORM_TO_REFUND(换货关闭,转退货退款);EXCHANGE_WAIT_BUYER_CONFIRM_GOODS(卖家已发货,等待买家确认收货);POST_FEE_DISPUTE_WAIT_ACTIVATE(邮费单已创建,待激活) +func (r *TmallDisputeReceiveGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TmallDisputeReceiveGetAPIRequest) GetStatus() string { + return r._status +} +// PageSize Setter +// 每页条数。取值范围:大于零的整数; 默认值:20;最大值:100 +func (r *TmallDisputeReceiveGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TmallDisputeReceiveGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// UseHasNext Setter +// 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取增量退款,接口调用成功率在原有的基础上有所提升。 +func (r *TmallDisputeReceiveGetAPIRequest) SetUseHasNext(_useHasNext bool) error { + r._useHasNext = _useHasNext + r.Set("use_has_next", _useHasNext) + return nil +} + +// UseHasNext Getter +func (r TmallDisputeReceiveGetAPIRequest) GetUseHasNext() bool { + return r._useHasNext +} +// Type Setter +// 交易类型列表,一次查询多种类型可用半角逗号分隔,默认同时查询guarantee_trade, auto_delivery这两种类型的数据,查看可选值 +func (r *TmallDisputeReceiveGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TmallDisputeReceiveGetAPIRequest) GetType() string { + return r._type +} +// RefundId Setter +// 逆向纠纷单号id +func (r *TmallDisputeReceiveGetAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TmallDisputeReceiveGetAPIRequest) GetRefundId() int64 { + return r._refundId +} +// PageNo Setter +// 页码。取值范围:大于零的整数; 默认值:1 +func (r *TmallDisputeReceiveGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TmallDisputeReceiveGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// BuyerNick Setter +// 买家昵称 +func (r *TmallDisputeReceiveGetAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TmallDisputeReceiveGetAPIRequest) GetBuyerNick() string { + return r._buyerNick +} +// StartModified Setter +// 查询修改时间开始。格式: yyyy-MM-dd HH:mm:ss +func (r *TmallDisputeReceiveGetAPIRequest) SetStartModified(_startModified string) error { + r._startModified = _startModified + r.Set("start_modified", _startModified) + return nil +} + +// StartModified Getter +func (r TmallDisputeReceiveGetAPIRequest) GetStartModified() string { + return r._startModified +} +// EndModified Setter +// 查询修改时间结束。格式: yyyy-MM-dd HH:mm:ss +func (r *TmallDisputeReceiveGetAPIRequest) SetEndModified(_endModified string) error { + r._endModified = _endModified + r.Set("end_modified", _endModified) + return nil +} + +// EndModified Getter +func (r TmallDisputeReceiveGetAPIRequest) GetEndModified() string { + return r._endModified +} +// Fields Setter +// 需要返回的字段。目前支持有:refund_id, alipay_no, tid, buyer_nick, seller_nick, status, created, modified, order_status, refund_fee, good_status, show_return_logistic(展现买家退货的物流信息), show_exchange_logistic(展现换货的物流信息), time_out, oid, refund_version, title, num, dispute_request, reason, desc +func (r *TmallDisputeReceiveGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TmallDisputeReceiveGetAPIRequest) GetFields() []string { + return r._fields +} diff --git a/model/refund/TmallDisputeReceiveGetAPIResponse.go b/model/refund/TmallDisputeReceiveGetAPIResponse.go new file mode 100644 index 0000000000..b2ec7ae9ae --- /dev/null +++ b/model/refund/TmallDisputeReceiveGetAPIResponse.go @@ -0,0 +1,27 @@ +package refund + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫逆向纠纷查询 API返回值 +tmall.dispute.receive.get + +展示商家所有退款信息 +*/ +type TmallDisputeReceiveGetAPIResponse struct { + model.CommonResponse + TmallDisputeReceiveGetAPIResponseModel +} + +// 天猫逆向纠纷查询 成功返回结果 +type TmallDisputeReceiveGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_dispute_receive_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallDisputeReceiveGetResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/refund/TmallDisputeReceiveGetResponse.go b/model/refund/TmallDisputeReceiveGetResponse.go deleted file mode 100644 index 4a8a93b5df..0000000000 --- a/model/refund/TmallDisputeReceiveGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package refund - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫逆向纠纷查询 API返回值 -tmall.dispute.receive.get - -展示商家所有退款信息 -*/ -type TmallDisputeReceiveGetAPIResponse struct { - model.CommonResponse - TmallDisputeReceiveGetResponse -} - -// 天猫逆向纠纷查询 成功返回结果 -type TmallDisputeReceiveGetResponse struct { - XMLName xml.Name `xml:"tmall_dispute_receive_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallDisputeReceiveGetResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/retail/AlibabaInteractRetailQueryshelflocationAPIRequest.go b/model/retail/AlibabaInteractRetailQueryshelflocationAPIRequest.go new file mode 100644 index 0000000000..5a8d8b5b67 --- /dev/null +++ b/model/retail/AlibabaInteractRetailQueryshelflocationAPIRequest.go @@ -0,0 +1,52 @@ +package retail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询货架和位置数据 API请求 +alibaba.interact.retail.queryshelflocation + +查询货架和位置数据 +*/ +type AlibabaInteractRetailQueryshelflocationAPIRequest struct { + model.Params + // 门店code + _param0 string +} + +// 初始化AlibabaInteractRetailQueryshelflocationAPIRequest对象 +func NewAlibabaInteractRetailQueryshelflocationRequest() *AlibabaInteractRetailQueryshelflocationAPIRequest{ + return &AlibabaInteractRetailQueryshelflocationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractRetailQueryshelflocationAPIRequest) GetApiMethodName() string { + return "alibaba.interact.retail.queryshelflocation" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractRetailQueryshelflocationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 门店code +func (r *AlibabaInteractRetailQueryshelflocationAPIRequest) SetParam0(_param0 string) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaInteractRetailQueryshelflocationAPIRequest) GetParam0() string { + return r._param0 +} diff --git a/model/retail/AlibabaInteractRetailQueryshelflocationAPIResponse.go b/model/retail/AlibabaInteractRetailQueryshelflocationAPIResponse.go new file mode 100644 index 0000000000..259ba93261 --- /dev/null +++ b/model/retail/AlibabaInteractRetailQueryshelflocationAPIResponse.go @@ -0,0 +1,27 @@ +package retail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询货架和位置数据 API返回值 +alibaba.interact.retail.queryshelflocation + +查询货架和位置数据 +*/ +type AlibabaInteractRetailQueryshelflocationAPIResponse struct { + model.CommonResponse + AlibabaInteractRetailQueryshelflocationAPIResponseModel +} + +// 查询货架和位置数据 成功返回结果 +type AlibabaInteractRetailQueryshelflocationAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_retail_queryshelflocation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaInteractRetailQueryshelflocationResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/retail/AlibabaInteractRetailQueryshelflocationResponse.go b/model/retail/AlibabaInteractRetailQueryshelflocationResponse.go deleted file mode 100644 index 0a8ff67f2b..0000000000 --- a/model/retail/AlibabaInteractRetailQueryshelflocationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package retail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询货架和位置数据 API返回值 -alibaba.interact.retail.queryshelflocation - -查询货架和位置数据 -*/ -type AlibabaInteractRetailQueryshelflocationAPIResponse struct { - model.CommonResponse - AlibabaInteractRetailQueryshelflocationResponse -} - -// 查询货架和位置数据 成功返回结果 -type AlibabaInteractRetailQueryshelflocationResponse struct { - XMLName xml.Name `xml:"alibaba_interact_retail_queryshelflocation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaInteractRetailQueryshelflocationResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/retail/AlibabaInteractRetailSaveshelflocationAPIRequest.go b/model/retail/AlibabaInteractRetailSaveshelflocationAPIRequest.go new file mode 100644 index 0000000000..66a4d93339 --- /dev/null +++ b/model/retail/AlibabaInteractRetailSaveshelflocationAPIRequest.go @@ -0,0 +1,122 @@ +package retail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +保存地理位置和货架关系 API请求 +alibaba.interact.retail.saveshelflocation + +保存地理位置和货架关系 +*/ +type AlibabaInteractRetailSaveshelflocationAPIRequest struct { + model.Params + // 门店code + _storeCode string + // 货架编号 + _shelfNo string + // 经度 + _lng string + // 纬度 + _lat string + // POI + _poiId string + // 地址 + _address string +} + +// 初始化AlibabaInteractRetailSaveshelflocationAPIRequest对象 +func NewAlibabaInteractRetailSaveshelflocationRequest() *AlibabaInteractRetailSaveshelflocationAPIRequest{ + return &AlibabaInteractRetailSaveshelflocationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractRetailSaveshelflocationAPIRequest) GetApiMethodName() string { + return "alibaba.interact.retail.saveshelflocation" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractRetailSaveshelflocationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreCode Setter +// 门店code +func (r *AlibabaInteractRetailSaveshelflocationAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r AlibabaInteractRetailSaveshelflocationAPIRequest) GetStoreCode() string { + return r._storeCode +} +// ShelfNo Setter +// 货架编号 +func (r *AlibabaInteractRetailSaveshelflocationAPIRequest) SetShelfNo(_shelfNo string) error { + r._shelfNo = _shelfNo + r.Set("shelf_no", _shelfNo) + return nil +} + +// ShelfNo Getter +func (r AlibabaInteractRetailSaveshelflocationAPIRequest) GetShelfNo() string { + return r._shelfNo +} +// Lng Setter +// 经度 +func (r *AlibabaInteractRetailSaveshelflocationAPIRequest) SetLng(_lng string) error { + r._lng = _lng + r.Set("lng", _lng) + return nil +} + +// Lng Getter +func (r AlibabaInteractRetailSaveshelflocationAPIRequest) GetLng() string { + return r._lng +} +// Lat Setter +// 纬度 +func (r *AlibabaInteractRetailSaveshelflocationAPIRequest) SetLat(_lat string) error { + r._lat = _lat + r.Set("lat", _lat) + return nil +} + +// Lat Getter +func (r AlibabaInteractRetailSaveshelflocationAPIRequest) GetLat() string { + return r._lat +} +// PoiId Setter +// POI +func (r *AlibabaInteractRetailSaveshelflocationAPIRequest) SetPoiId(_poiId string) error { + r._poiId = _poiId + r.Set("poi_id", _poiId) + return nil +} + +// PoiId Getter +func (r AlibabaInteractRetailSaveshelflocationAPIRequest) GetPoiId() string { + return r._poiId +} +// Address Setter +// 地址 +func (r *AlibabaInteractRetailSaveshelflocationAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r AlibabaInteractRetailSaveshelflocationAPIRequest) GetAddress() string { + return r._address +} diff --git a/model/retail/AlibabaInteractRetailSaveshelflocationAPIResponse.go b/model/retail/AlibabaInteractRetailSaveshelflocationAPIResponse.go new file mode 100644 index 0000000000..9fac0ee8fc --- /dev/null +++ b/model/retail/AlibabaInteractRetailSaveshelflocationAPIResponse.go @@ -0,0 +1,27 @@ +package retail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +保存地理位置和货架关系 API返回值 +alibaba.interact.retail.saveshelflocation + +保存地理位置和货架关系 +*/ +type AlibabaInteractRetailSaveshelflocationAPIResponse struct { + model.CommonResponse + AlibabaInteractRetailSaveshelflocationAPIResponseModel +} + +// 保存地理位置和货架关系 成功返回结果 +type AlibabaInteractRetailSaveshelflocationAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_retail_saveshelflocation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 保存结果 + Result *AlibabaInteractRetailSaveshelflocationResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/retail/AlibabaInteractRetailSaveshelflocationResponse.go b/model/retail/AlibabaInteractRetailSaveshelflocationResponse.go deleted file mode 100644 index 43aa41d092..0000000000 --- a/model/retail/AlibabaInteractRetailSaveshelflocationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package retail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -保存地理位置和货架关系 API返回值 -alibaba.interact.retail.saveshelflocation - -保存地理位置和货架关系 -*/ -type AlibabaInteractRetailSaveshelflocationAPIResponse struct { - model.CommonResponse - AlibabaInteractRetailSaveshelflocationResponse -} - -// 保存地理位置和货架关系 成功返回结果 -type AlibabaInteractRetailSaveshelflocationResponse struct { - XMLName xml.Name `xml:"alibaba_interact_retail_saveshelflocation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 保存结果 - Result *AlibabaInteractRetailSaveshelflocationResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/retail/AlibabaRetailDeviceInfoGetAPIRequest.go b/model/retail/AlibabaRetailDeviceInfoGetAPIRequest.go new file mode 100644 index 0000000000..0e0d56111e --- /dev/null +++ b/model/retail/AlibabaRetailDeviceInfoGetAPIRequest.go @@ -0,0 +1,80 @@ +package retail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机设备信息获取 API请求 +alibaba.retail.device.info.get + +贩卖机设备信息获取 +*/ +type AlibabaRetailDeviceInfoGetAPIRequest struct { + model.Params + // 外部设备ID + _deviceUuid string + // 阿里设备编码 + _deviceCode string + // 阿里设备物理ID(32位) + _deviceSn string +} + +// 初始化AlibabaRetailDeviceInfoGetAPIRequest对象 +func NewAlibabaRetailDeviceInfoGetRequest() *AlibabaRetailDeviceInfoGetAPIRequest{ + return &AlibabaRetailDeviceInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailDeviceInfoGetAPIRequest) GetApiMethodName() string { + return "alibaba.retail.device.info.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailDeviceInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceUuid Setter +// 外部设备ID +func (r *AlibabaRetailDeviceInfoGetAPIRequest) SetDeviceUuid(_deviceUuid string) error { + r._deviceUuid = _deviceUuid + r.Set("device_uuid", _deviceUuid) + return nil +} + +// DeviceUuid Getter +func (r AlibabaRetailDeviceInfoGetAPIRequest) GetDeviceUuid() string { + return r._deviceUuid +} +// DeviceCode Setter +// 阿里设备编码 +func (r *AlibabaRetailDeviceInfoGetAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r AlibabaRetailDeviceInfoGetAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// DeviceSn Setter +// 阿里设备物理ID(32位) +func (r *AlibabaRetailDeviceInfoGetAPIRequest) SetDeviceSn(_deviceSn string) error { + r._deviceSn = _deviceSn + r.Set("device_sn", _deviceSn) + return nil +} + +// DeviceSn Getter +func (r AlibabaRetailDeviceInfoGetAPIRequest) GetDeviceSn() string { + return r._deviceSn +} diff --git a/model/retail/AlibabaRetailDeviceInfoGetAPIResponse.go b/model/retail/AlibabaRetailDeviceInfoGetAPIResponse.go new file mode 100644 index 0000000000..9a7f8e754f --- /dev/null +++ b/model/retail/AlibabaRetailDeviceInfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package retail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机设备信息获取 API返回值 +alibaba.retail.device.info.get + +贩卖机设备信息获取 +*/ +type AlibabaRetailDeviceInfoGetAPIResponse struct { + model.CommonResponse + AlibabaRetailDeviceInfoGetAPIResponseModel +} + +// 贩卖机设备信息获取 成功返回结果 +type AlibabaRetailDeviceInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_device_info_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Data string `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/retail/AlibabaRetailDeviceInfoGetResponse.go b/model/retail/AlibabaRetailDeviceInfoGetResponse.go deleted file mode 100644 index 9816171370..0000000000 --- a/model/retail/AlibabaRetailDeviceInfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package retail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -贩卖机设备信息获取 API返回值 -alibaba.retail.device.info.get - -贩卖机设备信息获取 -*/ -type AlibabaRetailDeviceInfoGetAPIResponse struct { - model.CommonResponse - AlibabaRetailDeviceInfoGetResponse -} - -// 贩卖机设备信息获取 成功返回结果 -type AlibabaRetailDeviceInfoGetResponse struct { - XMLName xml.Name `xml:"alibaba_retail_device_info_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Data string `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/retail/AlibabaRetailDeviceOrderQueryAPIRequest.go b/model/retail/AlibabaRetailDeviceOrderQueryAPIRequest.go new file mode 100644 index 0000000000..f267a67968 --- /dev/null +++ b/model/retail/AlibabaRetailDeviceOrderQueryAPIRequest.go @@ -0,0 +1,164 @@ +package retail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机订单查询 API请求 +alibaba.retail.device.order.query + +贩卖机订单查询 +*/ +type AlibabaRetailDeviceOrderQueryAPIRequest struct { + model.Params + // 阿里设备物理ID + _deviceSnList []string + // 外部设备编码 + _deviceUuid string + // 阿里设备编码 + _deviceCode string + // -20 已退款,-10 交易关闭 ,10 创单 20 已支付 30 已出货 40 交易完成 + _status int64 + // CASH 现金,ALIPAY_FACE_PAY_QR 支付宝,VENDING_PRIZE 抽奖,FACE_PAY 人脸 + _payType string + // 分页大小 + _pageSize int64 + // 页码 + _pageNum int64 + // 查询订单开始时间 + _starts string + // 查询订单结束时间 + _ends string +} + +// 初始化AlibabaRetailDeviceOrderQueryAPIRequest对象 +func NewAlibabaRetailDeviceOrderQueryRequest() *AlibabaRetailDeviceOrderQueryAPIRequest{ + return &AlibabaRetailDeviceOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailDeviceOrderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.retail.device.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailDeviceOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceSnList Setter +// 阿里设备物理ID +func (r *AlibabaRetailDeviceOrderQueryAPIRequest) SetDeviceSnList(_deviceSnList []string) error { + r._deviceSnList = _deviceSnList + r.Set("device_sn_list", _deviceSnList) + return nil +} + +// DeviceSnList Getter +func (r AlibabaRetailDeviceOrderQueryAPIRequest) GetDeviceSnList() []string { + return r._deviceSnList +} +// DeviceUuid Setter +// 外部设备编码 +func (r *AlibabaRetailDeviceOrderQueryAPIRequest) SetDeviceUuid(_deviceUuid string) error { + r._deviceUuid = _deviceUuid + r.Set("device_uuid", _deviceUuid) + return nil +} + +// DeviceUuid Getter +func (r AlibabaRetailDeviceOrderQueryAPIRequest) GetDeviceUuid() string { + return r._deviceUuid +} +// DeviceCode Setter +// 阿里设备编码 +func (r *AlibabaRetailDeviceOrderQueryAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r AlibabaRetailDeviceOrderQueryAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// Status Setter +// -20 已退款,-10 交易关闭 ,10 创单 20 已支付 30 已出货 40 交易完成 +func (r *AlibabaRetailDeviceOrderQueryAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaRetailDeviceOrderQueryAPIRequest) GetStatus() int64 { + return r._status +} +// PayType Setter +// CASH 现金,ALIPAY_FACE_PAY_QR 支付宝,VENDING_PRIZE 抽奖,FACE_PAY 人脸 +func (r *AlibabaRetailDeviceOrderQueryAPIRequest) SetPayType(_payType string) error { + r._payType = _payType + r.Set("pay_type", _payType) + return nil +} + +// PayType Getter +func (r AlibabaRetailDeviceOrderQueryAPIRequest) GetPayType() string { + return r._payType +} +// PageSize Setter +// 分页大小 +func (r *AlibabaRetailDeviceOrderQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaRetailDeviceOrderQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNum Setter +// 页码 +func (r *AlibabaRetailDeviceOrderQueryAPIRequest) SetPageNum(_pageNum int64) error { + r._pageNum = _pageNum + r.Set("page_num", _pageNum) + return nil +} + +// PageNum Getter +func (r AlibabaRetailDeviceOrderQueryAPIRequest) GetPageNum() int64 { + return r._pageNum +} +// Starts Setter +// 查询订单开始时间 +func (r *AlibabaRetailDeviceOrderQueryAPIRequest) SetStarts(_starts string) error { + r._starts = _starts + r.Set("starts", _starts) + return nil +} + +// Starts Getter +func (r AlibabaRetailDeviceOrderQueryAPIRequest) GetStarts() string { + return r._starts +} +// Ends Setter +// 查询订单结束时间 +func (r *AlibabaRetailDeviceOrderQueryAPIRequest) SetEnds(_ends string) error { + r._ends = _ends + r.Set("ends", _ends) + return nil +} + +// Ends Getter +func (r AlibabaRetailDeviceOrderQueryAPIRequest) GetEnds() string { + return r._ends +} diff --git a/model/retail/AlibabaRetailDeviceOrderQueryAPIResponse.go b/model/retail/AlibabaRetailDeviceOrderQueryAPIResponse.go new file mode 100644 index 0000000000..fe77696182 --- /dev/null +++ b/model/retail/AlibabaRetailDeviceOrderQueryAPIResponse.go @@ -0,0 +1,31 @@ +package retail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机订单查询 API返回值 +alibaba.retail.device.order.query + +贩卖机订单查询 +*/ +type AlibabaRetailDeviceOrderQueryAPIResponse struct { + model.CommonResponse + AlibabaRetailDeviceOrderQueryAPIResponseModel +} + +// 贩卖机订单查询 成功返回结果 +type AlibabaRetailDeviceOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_device_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + Errcode string `json:"errcode,omitempty" xml:"errcode,omitempty"` + // 系统自动生成 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` + // 是否成功 + Data *PaginationDo `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/retail/AlibabaRetailDeviceOrderQueryResponse.go b/model/retail/AlibabaRetailDeviceOrderQueryResponse.go deleted file mode 100644 index 0c394d3afe..0000000000 --- a/model/retail/AlibabaRetailDeviceOrderQueryResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package retail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -贩卖机订单查询 API返回值 -alibaba.retail.device.order.query - -贩卖机订单查询 -*/ -type AlibabaRetailDeviceOrderQueryAPIResponse struct { - model.CommonResponse - AlibabaRetailDeviceOrderQueryResponse -} - -// 贩卖机订单查询 成功返回结果 -type AlibabaRetailDeviceOrderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_retail_device_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - Errcode string `json:"errcode,omitempty" xml:"errcode,omitempty"` - // 系统自动生成 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` - // 是否成功 - Data *PaginationDo `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/retail/AlibabaRetailDeviceRoadStatusResetAPIRequest.go b/model/retail/AlibabaRetailDeviceRoadStatusResetAPIRequest.go new file mode 100644 index 0000000000..e7d3dad1c6 --- /dev/null +++ b/model/retail/AlibabaRetailDeviceRoadStatusResetAPIRequest.go @@ -0,0 +1,94 @@ +package retail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机货道解锁 API请求 +alibaba.retail.device.road.status.reset + +贩卖机货道解锁 +*/ +type AlibabaRetailDeviceRoadStatusResetAPIRequest struct { + model.Params + // 设备外部编码 + _deviceUuid string + // 阿里设备编码 + _deviceCode string + // 阿里设备物理编码 + _deviceSn string + // 货道编码 + _roadNoList []string +} + +// 初始化AlibabaRetailDeviceRoadStatusResetAPIRequest对象 +func NewAlibabaRetailDeviceRoadStatusResetRequest() *AlibabaRetailDeviceRoadStatusResetAPIRequest{ + return &AlibabaRetailDeviceRoadStatusResetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailDeviceRoadStatusResetAPIRequest) GetApiMethodName() string { + return "alibaba.retail.device.road.status.reset" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailDeviceRoadStatusResetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceUuid Setter +// 设备外部编码 +func (r *AlibabaRetailDeviceRoadStatusResetAPIRequest) SetDeviceUuid(_deviceUuid string) error { + r._deviceUuid = _deviceUuid + r.Set("device_uuid", _deviceUuid) + return nil +} + +// DeviceUuid Getter +func (r AlibabaRetailDeviceRoadStatusResetAPIRequest) GetDeviceUuid() string { + return r._deviceUuid +} +// DeviceCode Setter +// 阿里设备编码 +func (r *AlibabaRetailDeviceRoadStatusResetAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r AlibabaRetailDeviceRoadStatusResetAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// DeviceSn Setter +// 阿里设备物理编码 +func (r *AlibabaRetailDeviceRoadStatusResetAPIRequest) SetDeviceSn(_deviceSn string) error { + r._deviceSn = _deviceSn + r.Set("device_sn", _deviceSn) + return nil +} + +// DeviceSn Getter +func (r AlibabaRetailDeviceRoadStatusResetAPIRequest) GetDeviceSn() string { + return r._deviceSn +} +// RoadNoList Setter +// 货道编码 +func (r *AlibabaRetailDeviceRoadStatusResetAPIRequest) SetRoadNoList(_roadNoList []string) error { + r._roadNoList = _roadNoList + r.Set("road_no_list", _roadNoList) + return nil +} + +// RoadNoList Getter +func (r AlibabaRetailDeviceRoadStatusResetAPIRequest) GetRoadNoList() []string { + return r._roadNoList +} diff --git a/model/retail/AlibabaRetailDeviceRoadStatusResetAPIResponse.go b/model/retail/AlibabaRetailDeviceRoadStatusResetAPIResponse.go new file mode 100644 index 0000000000..874e4acde6 --- /dev/null +++ b/model/retail/AlibabaRetailDeviceRoadStatusResetAPIResponse.go @@ -0,0 +1,27 @@ +package retail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机货道解锁 API返回值 +alibaba.retail.device.road.status.reset + +贩卖机货道解锁 +*/ +type AlibabaRetailDeviceRoadStatusResetAPIResponse struct { + model.CommonResponse + AlibabaRetailDeviceRoadStatusResetAPIResponseModel +} + +// 贩卖机货道解锁 成功返回结果 +type AlibabaRetailDeviceRoadStatusResetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_device_road_status_reset_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Data bool `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/retail/AlibabaRetailDeviceRoadStatusResetResponse.go b/model/retail/AlibabaRetailDeviceRoadStatusResetResponse.go deleted file mode 100644 index 1614dd101f..0000000000 --- a/model/retail/AlibabaRetailDeviceRoadStatusResetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package retail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -贩卖机货道解锁 API返回值 -alibaba.retail.device.road.status.reset - -贩卖机货道解锁 -*/ -type AlibabaRetailDeviceRoadStatusResetAPIResponse struct { - model.CommonResponse - AlibabaRetailDeviceRoadStatusResetResponse -} - -// 贩卖机货道解锁 成功返回结果 -type AlibabaRetailDeviceRoadStatusResetResponse struct { - XMLName xml.Name `xml:"alibaba_retail_device_road_status_reset_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Data bool `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/retail/AlibabaRetailElectronicCertificateConfirmAPIRequest.go b/model/retail/AlibabaRetailElectronicCertificateConfirmAPIRequest.go new file mode 100644 index 0000000000..d84322dfef --- /dev/null +++ b/model/retail/AlibabaRetailElectronicCertificateConfirmAPIRequest.go @@ -0,0 +1,80 @@ +package retail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +确认核销接口 API请求 +alibaba.retail.electronic.certificate.confirm + +确认核销接口 +*/ +type AlibabaRetailElectronicCertificateConfirmAPIRequest struct { + model.Params + // 核销码 + _code int64 + // 商品ID + _itemId int64 + // 设备ID + _deviceId string +} + +// 初始化AlibabaRetailElectronicCertificateConfirmAPIRequest对象 +func NewAlibabaRetailElectronicCertificateConfirmRequest() *AlibabaRetailElectronicCertificateConfirmAPIRequest{ + return &AlibabaRetailElectronicCertificateConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailElectronicCertificateConfirmAPIRequest) GetApiMethodName() string { + return "alibaba.retail.electronic.certificate.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailElectronicCertificateConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 核销码 +func (r *AlibabaRetailElectronicCertificateConfirmAPIRequest) SetCode(_code int64) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaRetailElectronicCertificateConfirmAPIRequest) GetCode() int64 { + return r._code +} +// ItemId Setter +// 商品ID +func (r *AlibabaRetailElectronicCertificateConfirmAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaRetailElectronicCertificateConfirmAPIRequest) GetItemId() int64 { + return r._itemId +} +// DeviceId Setter +// 设备ID +func (r *AlibabaRetailElectronicCertificateConfirmAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r AlibabaRetailElectronicCertificateConfirmAPIRequest) GetDeviceId() string { + return r._deviceId +} diff --git a/model/retail/AlibabaRetailElectronicCertificateConfirmAPIResponse.go b/model/retail/AlibabaRetailElectronicCertificateConfirmAPIResponse.go new file mode 100644 index 0000000000..81fbfe012d --- /dev/null +++ b/model/retail/AlibabaRetailElectronicCertificateConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package retail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +确认核销接口 API返回值 +alibaba.retail.electronic.certificate.confirm + +确认核销接口 +*/ +type AlibabaRetailElectronicCertificateConfirmAPIResponse struct { + model.CommonResponse + AlibabaRetailElectronicCertificateConfirmAPIResponseModel +} + +// 确认核销接口 成功返回结果 +type AlibabaRetailElectronicCertificateConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_electronic_certificate_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaRetailElectronicCertificateConfirmResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/retail/AlibabaRetailElectronicCertificateConfirmResponse.go b/model/retail/AlibabaRetailElectronicCertificateConfirmResponse.go deleted file mode 100644 index dc73943ab4..0000000000 --- a/model/retail/AlibabaRetailElectronicCertificateConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package retail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -确认核销接口 API返回值 -alibaba.retail.electronic.certificate.confirm - -确认核销接口 -*/ -type AlibabaRetailElectronicCertificateConfirmAPIResponse struct { - model.CommonResponse - AlibabaRetailElectronicCertificateConfirmResponse -} - -// 确认核销接口 成功返回结果 -type AlibabaRetailElectronicCertificateConfirmResponse struct { - XMLName xml.Name `xml:"alibaba_retail_electronic_certificate_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaRetailElectronicCertificateConfirmResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/retail/AlibabaRetailElectronicCertificatePreConfirmAPIRequest.go b/model/retail/AlibabaRetailElectronicCertificatePreConfirmAPIRequest.go new file mode 100644 index 0000000000..731fc5f42f --- /dev/null +++ b/model/retail/AlibabaRetailElectronicCertificatePreConfirmAPIRequest.go @@ -0,0 +1,66 @@ +package retail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机开始核销接口 API请求 +alibaba.retail.electronic.certificate.pre.confirm + +零售终端贩卖机开始核销接口,返回待领的商品ID +*/ +type AlibabaRetailElectronicCertificatePreConfirmAPIRequest struct { + model.Params + // 设备ID + _deviceId string + // 核销码 + _code int64 +} + +// 初始化AlibabaRetailElectronicCertificatePreConfirmAPIRequest对象 +func NewAlibabaRetailElectronicCertificatePreConfirmRequest() *AlibabaRetailElectronicCertificatePreConfirmAPIRequest{ + return &AlibabaRetailElectronicCertificatePreConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailElectronicCertificatePreConfirmAPIRequest) GetApiMethodName() string { + return "alibaba.retail.electronic.certificate.pre.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailElectronicCertificatePreConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceId Setter +// 设备ID +func (r *AlibabaRetailElectronicCertificatePreConfirmAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r AlibabaRetailElectronicCertificatePreConfirmAPIRequest) GetDeviceId() string { + return r._deviceId +} +// Code Setter +// 核销码 +func (r *AlibabaRetailElectronicCertificatePreConfirmAPIRequest) SetCode(_code int64) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaRetailElectronicCertificatePreConfirmAPIRequest) GetCode() int64 { + return r._code +} diff --git a/model/retail/AlibabaRetailElectronicCertificatePreConfirmAPIResponse.go b/model/retail/AlibabaRetailElectronicCertificatePreConfirmAPIResponse.go new file mode 100644 index 0000000000..89801b838e --- /dev/null +++ b/model/retail/AlibabaRetailElectronicCertificatePreConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package retail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机开始核销接口 API返回值 +alibaba.retail.electronic.certificate.pre.confirm + +零售终端贩卖机开始核销接口,返回待领的商品ID +*/ +type AlibabaRetailElectronicCertificatePreConfirmAPIResponse struct { + model.CommonResponse + AlibabaRetailElectronicCertificatePreConfirmAPIResponseModel +} + +// 贩卖机开始核销接口 成功返回结果 +type AlibabaRetailElectronicCertificatePreConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_electronic_certificate_pre_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaRetailElectronicCertificatePreConfirmResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/retail/AlibabaRetailElectronicCertificatePreConfirmResponse.go b/model/retail/AlibabaRetailElectronicCertificatePreConfirmResponse.go deleted file mode 100644 index c94c7225d5..0000000000 --- a/model/retail/AlibabaRetailElectronicCertificatePreConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package retail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -贩卖机开始核销接口 API返回值 -alibaba.retail.electronic.certificate.pre.confirm - -零售终端贩卖机开始核销接口,返回待领的商品ID -*/ -type AlibabaRetailElectronicCertificatePreConfirmAPIResponse struct { - model.CommonResponse - AlibabaRetailElectronicCertificatePreConfirmResponse -} - -// 贩卖机开始核销接口 成功返回结果 -type AlibabaRetailElectronicCertificatePreConfirmResponse struct { - XMLName xml.Name `xml:"alibaba_retail_electronic_certificate_pre_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaRetailElectronicCertificatePreConfirmResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/retail/AlibabaRetailVendingPriceWhitelistAddAPIRequest.go b/model/retail/AlibabaRetailVendingPriceWhitelistAddAPIRequest.go new file mode 100644 index 0000000000..bafc7a911d --- /dev/null +++ b/model/retail/AlibabaRetailVendingPriceWhitelistAddAPIRequest.go @@ -0,0 +1,164 @@ +package retail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机价格修改白名单 API请求 +alibaba.retail.vending.price.whitelist.add + +贩卖机价格修改白名单 +*/ +type AlibabaRetailVendingPriceWhitelistAddAPIRequest struct { + model.Params + // 生效时间 + _validStarts string + // 淘宝用户ID + _sellerId int64 + // 设备编码 device_code_list, device_uuid_list 二选一必填 + _deviceCodeList []string + // 外部设备编码 device_code_list, device_uuid_list 二选一必填 + _deviceUuidList []string + // 生效结束时间 + _validEnds string + // 条码 + _barcode string + // 商品ID + _itemId int64 + // 允许修改的最低价 + _minPrice string + // 是否生效到所有设备 + _allDevice bool +} + +// 初始化AlibabaRetailVendingPriceWhitelistAddAPIRequest对象 +func NewAlibabaRetailVendingPriceWhitelistAddRequest() *AlibabaRetailVendingPriceWhitelistAddAPIRequest{ + return &AlibabaRetailVendingPriceWhitelistAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailVendingPriceWhitelistAddAPIRequest) GetApiMethodName() string { + return "alibaba.retail.vending.price.whitelist.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailVendingPriceWhitelistAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ValidStarts Setter +// 生效时间 +func (r *AlibabaRetailVendingPriceWhitelistAddAPIRequest) SetValidStarts(_validStarts string) error { + r._validStarts = _validStarts + r.Set("valid_starts", _validStarts) + return nil +} + +// ValidStarts Getter +func (r AlibabaRetailVendingPriceWhitelistAddAPIRequest) GetValidStarts() string { + return r._validStarts +} +// SellerId Setter +// 淘宝用户ID +func (r *AlibabaRetailVendingPriceWhitelistAddAPIRequest) SetSellerId(_sellerId int64) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r AlibabaRetailVendingPriceWhitelistAddAPIRequest) GetSellerId() int64 { + return r._sellerId +} +// DeviceCodeList Setter +// 设备编码 device_code_list, device_uuid_list 二选一必填 +func (r *AlibabaRetailVendingPriceWhitelistAddAPIRequest) SetDeviceCodeList(_deviceCodeList []string) error { + r._deviceCodeList = _deviceCodeList + r.Set("device_code_list", _deviceCodeList) + return nil +} + +// DeviceCodeList Getter +func (r AlibabaRetailVendingPriceWhitelistAddAPIRequest) GetDeviceCodeList() []string { + return r._deviceCodeList +} +// DeviceUuidList Setter +// 外部设备编码 device_code_list, device_uuid_list 二选一必填 +func (r *AlibabaRetailVendingPriceWhitelistAddAPIRequest) SetDeviceUuidList(_deviceUuidList []string) error { + r._deviceUuidList = _deviceUuidList + r.Set("device_uuid_list", _deviceUuidList) + return nil +} + +// DeviceUuidList Getter +func (r AlibabaRetailVendingPriceWhitelistAddAPIRequest) GetDeviceUuidList() []string { + return r._deviceUuidList +} +// ValidEnds Setter +// 生效结束时间 +func (r *AlibabaRetailVendingPriceWhitelistAddAPIRequest) SetValidEnds(_validEnds string) error { + r._validEnds = _validEnds + r.Set("valid_ends", _validEnds) + return nil +} + +// ValidEnds Getter +func (r AlibabaRetailVendingPriceWhitelistAddAPIRequest) GetValidEnds() string { + return r._validEnds +} +// Barcode Setter +// 条码 +func (r *AlibabaRetailVendingPriceWhitelistAddAPIRequest) SetBarcode(_barcode string) error { + r._barcode = _barcode + r.Set("barcode", _barcode) + return nil +} + +// Barcode Getter +func (r AlibabaRetailVendingPriceWhitelistAddAPIRequest) GetBarcode() string { + return r._barcode +} +// ItemId Setter +// 商品ID +func (r *AlibabaRetailVendingPriceWhitelistAddAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaRetailVendingPriceWhitelistAddAPIRequest) GetItemId() int64 { + return r._itemId +} +// MinPrice Setter +// 允许修改的最低价 +func (r *AlibabaRetailVendingPriceWhitelistAddAPIRequest) SetMinPrice(_minPrice string) error { + r._minPrice = _minPrice + r.Set("min_price", _minPrice) + return nil +} + +// MinPrice Getter +func (r AlibabaRetailVendingPriceWhitelistAddAPIRequest) GetMinPrice() string { + return r._minPrice +} +// AllDevice Setter +// 是否生效到所有设备 +func (r *AlibabaRetailVendingPriceWhitelistAddAPIRequest) SetAllDevice(_allDevice bool) error { + r._allDevice = _allDevice + r.Set("all_device", _allDevice) + return nil +} + +// AllDevice Getter +func (r AlibabaRetailVendingPriceWhitelistAddAPIRequest) GetAllDevice() bool { + return r._allDevice +} diff --git a/model/retail/AlibabaRetailVendingPriceWhitelistAddAPIResponse.go b/model/retail/AlibabaRetailVendingPriceWhitelistAddAPIResponse.go new file mode 100644 index 0000000000..e9a4493cff --- /dev/null +++ b/model/retail/AlibabaRetailVendingPriceWhitelistAddAPIResponse.go @@ -0,0 +1,27 @@ +package retail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机价格修改白名单 API返回值 +alibaba.retail.vending.price.whitelist.add + +贩卖机价格修改白名单 +*/ +type AlibabaRetailVendingPriceWhitelistAddAPIResponse struct { + model.CommonResponse + AlibabaRetailVendingPriceWhitelistAddAPIResponseModel +} + +// 贩卖机价格修改白名单 成功返回结果 +type AlibabaRetailVendingPriceWhitelistAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_vending_price_whitelist_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaRetailVendingPriceWhitelistAddResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/retail/AlibabaRetailVendingPriceWhitelistAddResponse.go b/model/retail/AlibabaRetailVendingPriceWhitelistAddResponse.go deleted file mode 100644 index 275647ff50..0000000000 --- a/model/retail/AlibabaRetailVendingPriceWhitelistAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package retail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -贩卖机价格修改白名单 API返回值 -alibaba.retail.vending.price.whitelist.add - -贩卖机价格修改白名单 -*/ -type AlibabaRetailVendingPriceWhitelistAddAPIResponse struct { - model.CommonResponse - AlibabaRetailVendingPriceWhitelistAddResponse -} - -// 贩卖机价格修改白名单 成功返回结果 -type AlibabaRetailVendingPriceWhitelistAddResponse struct { - XMLName xml.Name `xml:"alibaba_retail_vending_price_whitelist_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaRetailVendingPriceWhitelistAddResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/retail/AlibabaRetailVendingPriceWhitelistAddResultDo.go b/model/retail/AlibabaRetailVendingPriceWhitelistAddResultDo.go new file mode 100644 index 0000000000..fbdae2356a --- /dev/null +++ b/model/retail/AlibabaRetailVendingPriceWhitelistAddResultDo.go @@ -0,0 +1,11 @@ +package retail + +// AlibabaRetailVendingPriceWhitelistAddResultDo +type AlibabaRetailVendingPriceWhitelistAddResultDo struct { + // 成功标识 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 错误码 + Code string `json:"code,omitempty" xml:"code,omitempty"` + // 错误消息 + Msg string `json:"msg,omitempty" xml:"msg,omitempty"` +} diff --git a/model/retail/AlibabaRetailVendingPriceWhitelistRemoveAPIRequest.go b/model/retail/AlibabaRetailVendingPriceWhitelistRemoveAPIRequest.go new file mode 100644 index 0000000000..1d8dd20efe --- /dev/null +++ b/model/retail/AlibabaRetailVendingPriceWhitelistRemoveAPIRequest.go @@ -0,0 +1,122 @@ +package retail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +价格管控白名单去除 API请求 +alibaba.retail.vending.price.whitelist.remove + +商家价格管控白名单去除 +*/ +type AlibabaRetailVendingPriceWhitelistRemoveAPIRequest struct { + model.Params + // 淘宝用户ID + _sellerId int64 + // 设备编码 device_code_list, device_uuid_list 二选一必填 + _deviceCodeList []string + // 外部设备编码 device_code_list, device_uuid_list 二选一必填 + _deviceUuidList []string + // 条码 + _barcode string + // 如果该参数传入,条码以商品条码为准 + _itemId int64 + // 是否生效到所有设备 + _allDevice bool +} + +// 初始化AlibabaRetailVendingPriceWhitelistRemoveAPIRequest对象 +func NewAlibabaRetailVendingPriceWhitelistRemoveRequest() *AlibabaRetailVendingPriceWhitelistRemoveAPIRequest{ + return &AlibabaRetailVendingPriceWhitelistRemoveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailVendingPriceWhitelistRemoveAPIRequest) GetApiMethodName() string { + return "alibaba.retail.vending.price.whitelist.remove" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailVendingPriceWhitelistRemoveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SellerId Setter +// 淘宝用户ID +func (r *AlibabaRetailVendingPriceWhitelistRemoveAPIRequest) SetSellerId(_sellerId int64) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r AlibabaRetailVendingPriceWhitelistRemoveAPIRequest) GetSellerId() int64 { + return r._sellerId +} +// DeviceCodeList Setter +// 设备编码 device_code_list, device_uuid_list 二选一必填 +func (r *AlibabaRetailVendingPriceWhitelistRemoveAPIRequest) SetDeviceCodeList(_deviceCodeList []string) error { + r._deviceCodeList = _deviceCodeList + r.Set("device_code_list", _deviceCodeList) + return nil +} + +// DeviceCodeList Getter +func (r AlibabaRetailVendingPriceWhitelistRemoveAPIRequest) GetDeviceCodeList() []string { + return r._deviceCodeList +} +// DeviceUuidList Setter +// 外部设备编码 device_code_list, device_uuid_list 二选一必填 +func (r *AlibabaRetailVendingPriceWhitelistRemoveAPIRequest) SetDeviceUuidList(_deviceUuidList []string) error { + r._deviceUuidList = _deviceUuidList + r.Set("device_uuid_list", _deviceUuidList) + return nil +} + +// DeviceUuidList Getter +func (r AlibabaRetailVendingPriceWhitelistRemoveAPIRequest) GetDeviceUuidList() []string { + return r._deviceUuidList +} +// Barcode Setter +// 条码 +func (r *AlibabaRetailVendingPriceWhitelistRemoveAPIRequest) SetBarcode(_barcode string) error { + r._barcode = _barcode + r.Set("barcode", _barcode) + return nil +} + +// Barcode Getter +func (r AlibabaRetailVendingPriceWhitelistRemoveAPIRequest) GetBarcode() string { + return r._barcode +} +// ItemId Setter +// 如果该参数传入,条码以商品条码为准 +func (r *AlibabaRetailVendingPriceWhitelistRemoveAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaRetailVendingPriceWhitelistRemoveAPIRequest) GetItemId() int64 { + return r._itemId +} +// AllDevice Setter +// 是否生效到所有设备 +func (r *AlibabaRetailVendingPriceWhitelistRemoveAPIRequest) SetAllDevice(_allDevice bool) error { + r._allDevice = _allDevice + r.Set("all_device", _allDevice) + return nil +} + +// AllDevice Getter +func (r AlibabaRetailVendingPriceWhitelistRemoveAPIRequest) GetAllDevice() bool { + return r._allDevice +} diff --git a/model/retail/AlibabaRetailVendingPriceWhitelistRemoveAPIResponse.go b/model/retail/AlibabaRetailVendingPriceWhitelistRemoveAPIResponse.go new file mode 100644 index 0000000000..4f69731115 --- /dev/null +++ b/model/retail/AlibabaRetailVendingPriceWhitelistRemoveAPIResponse.go @@ -0,0 +1,27 @@ +package retail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +价格管控白名单去除 API返回值 +alibaba.retail.vending.price.whitelist.remove + +商家价格管控白名单去除 +*/ +type AlibabaRetailVendingPriceWhitelistRemoveAPIResponse struct { + model.CommonResponse + AlibabaRetailVendingPriceWhitelistRemoveAPIResponseModel +} + +// 价格管控白名单去除 成功返回结果 +type AlibabaRetailVendingPriceWhitelistRemoveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_vending_price_whitelist_remove_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaRetailVendingPriceWhitelistRemoveResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/retail/AlibabaRetailVendingPriceWhitelistRemoveResponse.go b/model/retail/AlibabaRetailVendingPriceWhitelistRemoveResponse.go deleted file mode 100644 index d27076790c..0000000000 --- a/model/retail/AlibabaRetailVendingPriceWhitelistRemoveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package retail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -价格管控白名单去除 API返回值 -alibaba.retail.vending.price.whitelist.remove - -商家价格管控白名单去除 -*/ -type AlibabaRetailVendingPriceWhitelistRemoveAPIResponse struct { - model.CommonResponse - AlibabaRetailVendingPriceWhitelistRemoveResponse -} - -// 价格管控白名单去除 成功返回结果 -type AlibabaRetailVendingPriceWhitelistRemoveResponse struct { - XMLName xml.Name `xml:"alibaba_retail_vending_price_whitelist_remove_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaRetailVendingPriceWhitelistRemoveResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/retail/AlibabaRetailVendingPriceWhitelistRemoveResultDo.go b/model/retail/AlibabaRetailVendingPriceWhitelistRemoveResultDo.go new file mode 100644 index 0000000000..acdd19fc06 --- /dev/null +++ b/model/retail/AlibabaRetailVendingPriceWhitelistRemoveResultDo.go @@ -0,0 +1,11 @@ +package retail + +// AlibabaRetailVendingPriceWhitelistRemoveResultDo +type AlibabaRetailVendingPriceWhitelistRemoveResultDo struct { + // 成功标识 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 错误码 + Code string `json:"code,omitempty" xml:"code,omitempty"` + // 错误消息 + Msg string `json:"msg,omitempty" xml:"msg,omitempty"` +} diff --git a/model/retail/TmallStoreOrderCreateAPIRequest.go b/model/retail/TmallStoreOrderCreateAPIRequest.go new file mode 100644 index 0000000000..6b28492b7a --- /dev/null +++ b/model/retail/TmallStoreOrderCreateAPIRequest.go @@ -0,0 +1,66 @@ +package retail + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店订单创建api API请求 +tmall.store.order.create + +门店订单创建api +*/ +type TmallStoreOrderCreateAPIRequest struct { + model.Params + // 系统自动生成 + _appInfo *AppInfo + // 创建订单请求 + _createOrderRequest *CreateOrderRequest +} + +// 初始化TmallStoreOrderCreateAPIRequest对象 +func NewTmallStoreOrderCreateRequest() *TmallStoreOrderCreateAPIRequest{ + return &TmallStoreOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallStoreOrderCreateAPIRequest) GetApiMethodName() string { + return "tmall.store.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallStoreOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppInfo Setter +// 系统自动生成 +func (r *TmallStoreOrderCreateAPIRequest) SetAppInfo(_appInfo *AppInfo) error { + r._appInfo = _appInfo + r.Set("app_info", _appInfo) + return nil +} + +// AppInfo Getter +func (r TmallStoreOrderCreateAPIRequest) GetAppInfo() *AppInfo { + return r._appInfo +} +// CreateOrderRequest Setter +// 创建订单请求 +func (r *TmallStoreOrderCreateAPIRequest) SetCreateOrderRequest(_createOrderRequest *CreateOrderRequest) error { + r._createOrderRequest = _createOrderRequest + r.Set("create_order_request", _createOrderRequest) + return nil +} + +// CreateOrderRequest Getter +func (r TmallStoreOrderCreateAPIRequest) GetCreateOrderRequest() *CreateOrderRequest { + return r._createOrderRequest +} diff --git a/model/retail/TmallStoreOrderCreateAPIResponse.go b/model/retail/TmallStoreOrderCreateAPIResponse.go new file mode 100644 index 0000000000..cd4f95e71f --- /dev/null +++ b/model/retail/TmallStoreOrderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package retail + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店订单创建api API返回值 +tmall.store.order.create + +门店订单创建api +*/ +type TmallStoreOrderCreateAPIResponse struct { + model.CommonResponse + TmallStoreOrderCreateAPIResponseModel +} + +// 门店订单创建api 成功返回结果 +type TmallStoreOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_store_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // detailResults + DetailResults []Detailresults `json:"detail_results,omitempty" xml:"detail_results>detailresults,omitempty"` +} diff --git a/model/retail/TmallStoreOrderCreateResponse.go b/model/retail/TmallStoreOrderCreateResponse.go deleted file mode 100644 index ab48185220..0000000000 --- a/model/retail/TmallStoreOrderCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package retail - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店订单创建api API返回值 -tmall.store.order.create - -门店订单创建api -*/ -type TmallStoreOrderCreateAPIResponse struct { - model.CommonResponse - TmallStoreOrderCreateResponse -} - -// 门店订单创建api 成功返回结果 -type TmallStoreOrderCreateResponse struct { - XMLName xml.Name `xml:"tmall_store_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // detailResults - DetailResults []Detailresults `json:"detail_results,omitempty" xml:"detail_results>detailresults,omitempty"` -} diff --git a/model/rhino/TaobaoRhinoSupplychainClothingAdjustAPIRequest.go b/model/rhino/TaobaoRhinoSupplychainClothingAdjustAPIRequest.go new file mode 100644 index 0000000000..2c5de12bd7 --- /dev/null +++ b/model/rhino/TaobaoRhinoSupplychainClothingAdjustAPIRequest.go @@ -0,0 +1,52 @@ +package rhino + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同步成衣仓盘点数据 API请求 +taobao.rhino.supplychain.clothing.adjust + +同步成衣仓盘点数据 +*/ +type TaobaoRhinoSupplychainClothingAdjustAPIRequest struct { + model.Params + // 库存盘点对象 + _param0 *MaterialInventoryAdjustDto +} + +// 初始化TaobaoRhinoSupplychainClothingAdjustAPIRequest对象 +func NewTaobaoRhinoSupplychainClothingAdjustRequest() *TaobaoRhinoSupplychainClothingAdjustAPIRequest{ + return &TaobaoRhinoSupplychainClothingAdjustAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRhinoSupplychainClothingAdjustAPIRequest) GetApiMethodName() string { + return "taobao.rhino.supplychain.clothing.adjust" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRhinoSupplychainClothingAdjustAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 库存盘点对象 +func (r *TaobaoRhinoSupplychainClothingAdjustAPIRequest) SetParam0(_param0 *MaterialInventoryAdjustDto) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoRhinoSupplychainClothingAdjustAPIRequest) GetParam0() *MaterialInventoryAdjustDto { + return r._param0 +} diff --git a/model/rhino/TaobaoRhinoSupplychainClothingAdjustAPIResponse.go b/model/rhino/TaobaoRhinoSupplychainClothingAdjustAPIResponse.go new file mode 100644 index 0000000000..a13a63f8fa --- /dev/null +++ b/model/rhino/TaobaoRhinoSupplychainClothingAdjustAPIResponse.go @@ -0,0 +1,31 @@ +package rhino + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同步成衣仓盘点数据 API返回值 +taobao.rhino.supplychain.clothing.adjust + +同步成衣仓盘点数据 +*/ +type TaobaoRhinoSupplychainClothingAdjustAPIResponse struct { + model.CommonResponse + TaobaoRhinoSupplychainClothingAdjustAPIResponseModel +} + +// 同步成衣仓盘点数据 成功返回结果 +type TaobaoRhinoSupplychainClothingAdjustAPIResponseModel struct { + XMLName xml.Name `xml:"rhino_supplychain_clothing_adjust_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // code + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/rhino/TaobaoRhinoSupplychainClothingAdjustResponse.go b/model/rhino/TaobaoRhinoSupplychainClothingAdjustResponse.go deleted file mode 100644 index 4197e6c66c..0000000000 --- a/model/rhino/TaobaoRhinoSupplychainClothingAdjustResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package rhino - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同步成衣仓盘点数据 API返回值 -taobao.rhino.supplychain.clothing.adjust - -同步成衣仓盘点数据 -*/ -type TaobaoRhinoSupplychainClothingAdjustAPIResponse struct { - model.CommonResponse - TaobaoRhinoSupplychainClothingAdjustResponse -} - -// 同步成衣仓盘点数据 成功返回结果 -type TaobaoRhinoSupplychainClothingAdjustResponse struct { - XMLName xml.Name `xml:"rhino_supplychain_clothing_adjust_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // code - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/rhino/TaobaoRhinoSupplychainInboundConfirmAPIRequest.go b/model/rhino/TaobaoRhinoSupplychainInboundConfirmAPIRequest.go new file mode 100644 index 0000000000..fc60c0f8af --- /dev/null +++ b/model/rhino/TaobaoRhinoSupplychainInboundConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package rhino + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +WMS003成衣入库确认 API请求 +taobao.rhino.supplychain.inbound.confirm + +【WMS003】【同步成衣入库完成信息】 +*/ +type TaobaoRhinoSupplychainInboundConfirmAPIRequest struct { + model.Params + // 入库单确认对象 + _clothingInboundConfirm *ClothingInboundConfirmDto +} + +// 初始化TaobaoRhinoSupplychainInboundConfirmAPIRequest对象 +func NewTaobaoRhinoSupplychainInboundConfirmRequest() *TaobaoRhinoSupplychainInboundConfirmAPIRequest{ + return &TaobaoRhinoSupplychainInboundConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRhinoSupplychainInboundConfirmAPIRequest) GetApiMethodName() string { + return "taobao.rhino.supplychain.inbound.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRhinoSupplychainInboundConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ClothingInboundConfirm Setter +// 入库单确认对象 +func (r *TaobaoRhinoSupplychainInboundConfirmAPIRequest) SetClothingInboundConfirm(_clothingInboundConfirm *ClothingInboundConfirmDto) error { + r._clothingInboundConfirm = _clothingInboundConfirm + r.Set("clothing_inbound_confirm", _clothingInboundConfirm) + return nil +} + +// ClothingInboundConfirm Getter +func (r TaobaoRhinoSupplychainInboundConfirmAPIRequest) GetClothingInboundConfirm() *ClothingInboundConfirmDto { + return r._clothingInboundConfirm +} diff --git a/model/rhino/TaobaoRhinoSupplychainInboundConfirmAPIResponse.go b/model/rhino/TaobaoRhinoSupplychainInboundConfirmAPIResponse.go new file mode 100644 index 0000000000..3d1ba2876e --- /dev/null +++ b/model/rhino/TaobaoRhinoSupplychainInboundConfirmAPIResponse.go @@ -0,0 +1,31 @@ +package rhino + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +WMS003成衣入库确认 API返回值 +taobao.rhino.supplychain.inbound.confirm + +【WMS003】【同步成衣入库完成信息】 +*/ +type TaobaoRhinoSupplychainInboundConfirmAPIResponse struct { + model.CommonResponse + TaobaoRhinoSupplychainInboundConfirmAPIResponseModel +} + +// WMS003成衣入库确认 成功返回结果 +type TaobaoRhinoSupplychainInboundConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"rhino_supplychain_inbound_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // code + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/rhino/TaobaoRhinoSupplychainInboundConfirmResponse.go b/model/rhino/TaobaoRhinoSupplychainInboundConfirmResponse.go deleted file mode 100644 index 5389714d1f..0000000000 --- a/model/rhino/TaobaoRhinoSupplychainInboundConfirmResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package rhino - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -WMS003成衣入库确认 API返回值 -taobao.rhino.supplychain.inbound.confirm - -【WMS003】【同步成衣入库完成信息】 -*/ -type TaobaoRhinoSupplychainInboundConfirmAPIResponse struct { - model.CommonResponse - TaobaoRhinoSupplychainInboundConfirmResponse -} - -// WMS003成衣入库确认 成功返回结果 -type TaobaoRhinoSupplychainInboundConfirmResponse struct { - XMLName xml.Name `xml:"rhino_supplychain_inbound_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // code - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/rhino/TaobaoRhinoSupplychainOutboundPickingcompleteAPIRequest.go b/model/rhino/TaobaoRhinoSupplychainOutboundPickingcompleteAPIRequest.go new file mode 100644 index 0000000000..402d6b7921 --- /dev/null +++ b/model/rhino/TaobaoRhinoSupplychainOutboundPickingcompleteAPIRequest.go @@ -0,0 +1,52 @@ +package rhino + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【WMS005】接收成衣捡配完成通知 API请求 +taobao.rhino.supplychain.outbound.pickingcomplete + +接收成衣捡配完成通知,WMS005 +*/ +type TaobaoRhinoSupplychainOutboundPickingcompleteAPIRequest struct { + model.Params + // 捡配完成消息 + _param0 *PickingCompleteMsg +} + +// 初始化TaobaoRhinoSupplychainOutboundPickingcompleteAPIRequest对象 +func NewTaobaoRhinoSupplychainOutboundPickingcompleteRequest() *TaobaoRhinoSupplychainOutboundPickingcompleteAPIRequest{ + return &TaobaoRhinoSupplychainOutboundPickingcompleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRhinoSupplychainOutboundPickingcompleteAPIRequest) GetApiMethodName() string { + return "taobao.rhino.supplychain.outbound.pickingcomplete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRhinoSupplychainOutboundPickingcompleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 捡配完成消息 +func (r *TaobaoRhinoSupplychainOutboundPickingcompleteAPIRequest) SetParam0(_param0 *PickingCompleteMsg) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoRhinoSupplychainOutboundPickingcompleteAPIRequest) GetParam0() *PickingCompleteMsg { + return r._param0 +} diff --git a/model/rhino/TaobaoRhinoSupplychainOutboundPickingcompleteAPIResponse.go b/model/rhino/TaobaoRhinoSupplychainOutboundPickingcompleteAPIResponse.go new file mode 100644 index 0000000000..326009143f --- /dev/null +++ b/model/rhino/TaobaoRhinoSupplychainOutboundPickingcompleteAPIResponse.go @@ -0,0 +1,31 @@ +package rhino + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【WMS005】接收成衣捡配完成通知 API返回值 +taobao.rhino.supplychain.outbound.pickingcomplete + +接收成衣捡配完成通知,WMS005 +*/ +type TaobaoRhinoSupplychainOutboundPickingcompleteAPIResponse struct { + model.CommonResponse + TaobaoRhinoSupplychainOutboundPickingcompleteAPIResponseModel +} + +// 【WMS005】接收成衣捡配完成通知 成功返回结果 +type TaobaoRhinoSupplychainOutboundPickingcompleteAPIResponseModel struct { + XMLName xml.Name `xml:"rhino_supplychain_outbound_pickingcomplete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // code + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/rhino/TaobaoRhinoSupplychainOutboundPickingcompleteResponse.go b/model/rhino/TaobaoRhinoSupplychainOutboundPickingcompleteResponse.go deleted file mode 100644 index a279284254..0000000000 --- a/model/rhino/TaobaoRhinoSupplychainOutboundPickingcompleteResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package rhino - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【WMS005】接收成衣捡配完成通知 API返回值 -taobao.rhino.supplychain.outbound.pickingcomplete - -接收成衣捡配完成通知,WMS005 -*/ -type TaobaoRhinoSupplychainOutboundPickingcompleteAPIResponse struct { - model.CommonResponse - TaobaoRhinoSupplychainOutboundPickingcompleteResponse -} - -// 【WMS005】接收成衣捡配完成通知 成功返回结果 -type TaobaoRhinoSupplychainOutboundPickingcompleteResponse struct { - XMLName xml.Name `xml:"rhino_supplychain_outbound_pickingcomplete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // code - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAccountBudgetGetAPIRequest.go b/model/scbp/AlibabaScbpAccountBudgetGetAPIRequest.go new file mode 100644 index 0000000000..fae50c9128 --- /dev/null +++ b/model/scbp/AlibabaScbpAccountBudgetGetAPIRequest.go @@ -0,0 +1,38 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询日消耗预算 API请求 +alibaba.scbp.account.budget.get + +查询日消耗预算 +*/ +type AlibabaScbpAccountBudgetGetAPIRequest struct { + model.Params +} + +// 初始化AlibabaScbpAccountBudgetGetAPIRequest对象 +func NewAlibabaScbpAccountBudgetGetRequest() *AlibabaScbpAccountBudgetGetAPIRequest{ + return &AlibabaScbpAccountBudgetGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAccountBudgetGetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.account.budget.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAccountBudgetGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/scbp/AlibabaScbpAccountBudgetGetAPIResponse.go b/model/scbp/AlibabaScbpAccountBudgetGetAPIResponse.go new file mode 100644 index 0000000000..b09d9efef9 --- /dev/null +++ b/model/scbp/AlibabaScbpAccountBudgetGetAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询日消耗预算 API返回值 +alibaba.scbp.account.budget.get + +查询日消耗预算 +*/ +type AlibabaScbpAccountBudgetGetAPIResponse struct { + model.CommonResponse + AlibabaScbpAccountBudgetGetAPIResponseModel +} + +// 查询日消耗预算 成功返回结果 +type AlibabaScbpAccountBudgetGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_account_budget_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回今日预算 + Budget string `json:"budget,omitempty" xml:"budget,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAccountBudgetGetResponse.go b/model/scbp/AlibabaScbpAccountBudgetGetResponse.go deleted file mode 100644 index c84eadcfa8..0000000000 --- a/model/scbp/AlibabaScbpAccountBudgetGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询日消耗预算 API返回值 -alibaba.scbp.account.budget.get - -查询日消耗预算 -*/ -type AlibabaScbpAccountBudgetGetAPIResponse struct { - model.CommonResponse - AlibabaScbpAccountBudgetGetResponse -} - -// 查询日消耗预算 成功返回结果 -type AlibabaScbpAccountBudgetGetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_account_budget_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回今日预算 - Budget string `json:"budget,omitempty" xml:"budget,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAccountDaycostGetAPIRequest.go b/model/scbp/AlibabaScbpAccountDaycostGetAPIRequest.go new file mode 100644 index 0000000000..407c0daf76 --- /dev/null +++ b/model/scbp/AlibabaScbpAccountDaycostGetAPIRequest.go @@ -0,0 +1,38 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询今日消耗 API请求 +alibaba.scbp.account.daycost.get + +查询今日消耗 +*/ +type AlibabaScbpAccountDaycostGetAPIRequest struct { + model.Params +} + +// 初始化AlibabaScbpAccountDaycostGetAPIRequest对象 +func NewAlibabaScbpAccountDaycostGetRequest() *AlibabaScbpAccountDaycostGetAPIRequest{ + return &AlibabaScbpAccountDaycostGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAccountDaycostGetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.account.daycost.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAccountDaycostGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/scbp/AlibabaScbpAccountDaycostGetAPIResponse.go b/model/scbp/AlibabaScbpAccountDaycostGetAPIResponse.go new file mode 100644 index 0000000000..ada2d34ed8 --- /dev/null +++ b/model/scbp/AlibabaScbpAccountDaycostGetAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询今日消耗 API返回值 +alibaba.scbp.account.daycost.get + +查询今日消耗 +*/ +type AlibabaScbpAccountDaycostGetAPIResponse struct { + model.CommonResponse + AlibabaScbpAccountDaycostGetAPIResponseModel +} + +// 查询今日消耗 成功返回结果 +type AlibabaScbpAccountDaycostGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_account_daycost_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回今日消耗,单位元,两位小数 + DayCost string `json:"day_cost,omitempty" xml:"day_cost,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAccountDaycostGetResponse.go b/model/scbp/AlibabaScbpAccountDaycostGetResponse.go deleted file mode 100644 index 0c74f034e6..0000000000 --- a/model/scbp/AlibabaScbpAccountDaycostGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询今日消耗 API返回值 -alibaba.scbp.account.daycost.get - -查询今日消耗 -*/ -type AlibabaScbpAccountDaycostGetAPIResponse struct { - model.CommonResponse - AlibabaScbpAccountDaycostGetResponse -} - -// 查询今日消耗 成功返回结果 -type AlibabaScbpAccountDaycostGetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_account_daycost_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回今日消耗,单位元,两位小数 - DayCost string `json:"day_cost,omitempty" xml:"day_cost,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAccountIsarrearsGetAPIRequest.go b/model/scbp/AlibabaScbpAccountIsarrearsGetAPIRequest.go new file mode 100644 index 0000000000..451e446de9 --- /dev/null +++ b/model/scbp/AlibabaScbpAccountIsarrearsGetAPIRequest.go @@ -0,0 +1,38 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询关键词推广账户是否欠款 API请求 +alibaba.scbp.account.isarrears.get + +查询关键词推广账户是否欠款 +*/ +type AlibabaScbpAccountIsarrearsGetAPIRequest struct { + model.Params +} + +// 初始化AlibabaScbpAccountIsarrearsGetAPIRequest对象 +func NewAlibabaScbpAccountIsarrearsGetRequest() *AlibabaScbpAccountIsarrearsGetAPIRequest{ + return &AlibabaScbpAccountIsarrearsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAccountIsarrearsGetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.account.isarrears.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAccountIsarrearsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/scbp/AlibabaScbpAccountIsarrearsGetAPIResponse.go b/model/scbp/AlibabaScbpAccountIsarrearsGetAPIResponse.go new file mode 100644 index 0000000000..0ab6e59eb1 --- /dev/null +++ b/model/scbp/AlibabaScbpAccountIsarrearsGetAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询关键词推广账户是否欠款 API返回值 +alibaba.scbp.account.isarrears.get + +查询关键词推广账户是否欠款 +*/ +type AlibabaScbpAccountIsarrearsGetAPIResponse struct { + model.CommonResponse + AlibabaScbpAccountIsarrearsGetAPIResponseModel +} + +// 查询关键词推广账户是否欠款 成功返回结果 +type AlibabaScbpAccountIsarrearsGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_account_isarrears_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 客户的关键词推广账户是否欠款 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAccountIsarrearsGetResponse.go b/model/scbp/AlibabaScbpAccountIsarrearsGetResponse.go deleted file mode 100644 index 4aba655f64..0000000000 --- a/model/scbp/AlibabaScbpAccountIsarrearsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询关键词推广账户是否欠款 API返回值 -alibaba.scbp.account.isarrears.get - -查询关键词推广账户是否欠款 -*/ -type AlibabaScbpAccountIsarrearsGetAPIResponse struct { - model.CommonResponse - AlibabaScbpAccountIsarrearsGetResponse -} - -// 查询关键词推广账户是否欠款 成功返回结果 -type AlibabaScbpAccountIsarrearsGetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_account_isarrears_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 客户的关键词推广账户是否欠款 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAccountStatusGetAPIRequest.go b/model/scbp/AlibabaScbpAccountStatusGetAPIRequest.go new file mode 100644 index 0000000000..6070395a0d --- /dev/null +++ b/model/scbp/AlibabaScbpAccountStatusGetAPIRequest.go @@ -0,0 +1,38 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询账户级别关键词推广状态 API请求 +alibaba.scbp.account.status.get + +查询账户级别关键词推广状态 +*/ +type AlibabaScbpAccountStatusGetAPIRequest struct { + model.Params +} + +// 初始化AlibabaScbpAccountStatusGetAPIRequest对象 +func NewAlibabaScbpAccountStatusGetRequest() *AlibabaScbpAccountStatusGetAPIRequest{ + return &AlibabaScbpAccountStatusGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAccountStatusGetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.account.status.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAccountStatusGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/scbp/AlibabaScbpAccountStatusGetAPIResponse.go b/model/scbp/AlibabaScbpAccountStatusGetAPIResponse.go new file mode 100644 index 0000000000..5680fc3833 --- /dev/null +++ b/model/scbp/AlibabaScbpAccountStatusGetAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询账户级别关键词推广状态 API返回值 +alibaba.scbp.account.status.get + +查询账户级别关键词推广状态 +*/ +type AlibabaScbpAccountStatusGetAPIResponse struct { + model.CommonResponse + AlibabaScbpAccountStatusGetAPIResponseModel +} + +// 查询账户级别关键词推广状态 成功返回结果 +type AlibabaScbpAccountStatusGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_account_status_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true:推广中,false:暂停 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAccountStatusGetResponse.go b/model/scbp/AlibabaScbpAccountStatusGetResponse.go deleted file mode 100644 index 726d45808b..0000000000 --- a/model/scbp/AlibabaScbpAccountStatusGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询账户级别关键词推广状态 API返回值 -alibaba.scbp.account.status.get - -查询账户级别关键词推广状态 -*/ -type AlibabaScbpAccountStatusGetAPIResponse struct { - model.CommonResponse - AlibabaScbpAccountStatusGetResponse -} - -// 查询账户级别关键词推广状态 成功返回结果 -type AlibabaScbpAccountStatusGetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_account_status_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true:推广中,false:暂停 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAccountStatusUpdateAPIRequest.go b/model/scbp/AlibabaScbpAccountStatusUpdateAPIRequest.go new file mode 100644 index 0000000000..9bdd1c8d36 --- /dev/null +++ b/model/scbp/AlibabaScbpAccountStatusUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改账户级别关键词推广状态 API请求 +alibaba.scbp.account.status.update + +修改账户级别关键词推广状态 +*/ +type AlibabaScbpAccountStatusUpdateAPIRequest struct { + model.Params + // on:开启,off:暂停 + _status string +} + +// 初始化AlibabaScbpAccountStatusUpdateAPIRequest对象 +func NewAlibabaScbpAccountStatusUpdateRequest() *AlibabaScbpAccountStatusUpdateAPIRequest{ + return &AlibabaScbpAccountStatusUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAccountStatusUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.account.status.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAccountStatusUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Status Setter +// on:开启,off:暂停 +func (r *AlibabaScbpAccountStatusUpdateAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaScbpAccountStatusUpdateAPIRequest) GetStatus() string { + return r._status +} diff --git a/model/scbp/AlibabaScbpAccountStatusUpdateAPIResponse.go b/model/scbp/AlibabaScbpAccountStatusUpdateAPIResponse.go new file mode 100644 index 0000000000..77ac5b966f --- /dev/null +++ b/model/scbp/AlibabaScbpAccountStatusUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改账户级别关键词推广状态 API返回值 +alibaba.scbp.account.status.update + +修改账户级别关键词推广状态 +*/ +type AlibabaScbpAccountStatusUpdateAPIResponse struct { + model.CommonResponse + AlibabaScbpAccountStatusUpdateAPIResponseModel +} + +// 修改账户级别关键词推广状态 成功返回结果 +type AlibabaScbpAccountStatusUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_account_status_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAccountStatusUpdateResponse.go b/model/scbp/AlibabaScbpAccountStatusUpdateResponse.go deleted file mode 100644 index f808329bf4..0000000000 --- a/model/scbp/AlibabaScbpAccountStatusUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改账户级别关键词推广状态 API返回值 -alibaba.scbp.account.status.update - -修改账户级别关键词推广状态 -*/ -type AlibabaScbpAccountStatusUpdateAPIResponse struct { - model.CommonResponse - AlibabaScbpAccountStatusUpdateResponse -} - -// 修改账户级别关键词推广状态 成功返回结果 -type AlibabaScbpAccountStatusUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_account_status_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdAccountBalanceGetAPIRequest.go b/model/scbp/AlibabaScbpAdAccountBalanceGetAPIRequest.go new file mode 100644 index 0000000000..885604b620 --- /dev/null +++ b/model/scbp/AlibabaScbpAdAccountBalanceGetAPIRequest.go @@ -0,0 +1,38 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询账户余额 API请求 +alibaba.scbp.ad.account.balance.get + +查询推广账户余额 +*/ +type AlibabaScbpAdAccountBalanceGetAPIRequest struct { + model.Params +} + +// 初始化AlibabaScbpAdAccountBalanceGetAPIRequest对象 +func NewAlibabaScbpAdAccountBalanceGetRequest() *AlibabaScbpAdAccountBalanceGetAPIRequest{ + return &AlibabaScbpAdAccountBalanceGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdAccountBalanceGetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.account.balance.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdAccountBalanceGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/scbp/AlibabaScbpAdAccountBalanceGetAPIResponse.go b/model/scbp/AlibabaScbpAdAccountBalanceGetAPIResponse.go new file mode 100644 index 0000000000..c8d6e3d8dd --- /dev/null +++ b/model/scbp/AlibabaScbpAdAccountBalanceGetAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询账户余额 API返回值 +alibaba.scbp.ad.account.balance.get + +查询推广账户余额 +*/ +type AlibabaScbpAdAccountBalanceGetAPIResponse struct { + model.CommonResponse + AlibabaScbpAdAccountBalanceGetAPIResponseModel +} + +// 查询账户余额 成功返回结果 +type AlibabaScbpAdAccountBalanceGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_account_balance_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Balance string `json:"balance,omitempty" xml:"balance,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdAccountBalanceGetResponse.go b/model/scbp/AlibabaScbpAdAccountBalanceGetResponse.go deleted file mode 100644 index 476fab5f21..0000000000 --- a/model/scbp/AlibabaScbpAdAccountBalanceGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询账户余额 API返回值 -alibaba.scbp.ad.account.balance.get - -查询推广账户余额 -*/ -type AlibabaScbpAdAccountBalanceGetAPIResponse struct { - model.CommonResponse - AlibabaScbpAdAccountBalanceGetResponse -} - -// 查询账户余额 成功返回结果 -type AlibabaScbpAdAccountBalanceGetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_account_balance_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Balance string `json:"balance,omitempty" xml:"balance,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdAccountLevelGetAPIRequest.go b/model/scbp/AlibabaScbpAdAccountLevelGetAPIRequest.go new file mode 100644 index 0000000000..4dd0135522 --- /dev/null +++ b/model/scbp/AlibabaScbpAdAccountLevelGetAPIRequest.go @@ -0,0 +1,38 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询推广账户等级 API请求 +alibaba.scbp.ad.account.level.get + +查询推广账户等级 +*/ +type AlibabaScbpAdAccountLevelGetAPIRequest struct { + model.Params +} + +// 初始化AlibabaScbpAdAccountLevelGetAPIRequest对象 +func NewAlibabaScbpAdAccountLevelGetRequest() *AlibabaScbpAdAccountLevelGetAPIRequest{ + return &AlibabaScbpAdAccountLevelGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdAccountLevelGetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.account.level.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdAccountLevelGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/scbp/AlibabaScbpAdAccountLevelGetAPIResponse.go b/model/scbp/AlibabaScbpAdAccountLevelGetAPIResponse.go new file mode 100644 index 0000000000..df6656090b --- /dev/null +++ b/model/scbp/AlibabaScbpAdAccountLevelGetAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询推广账户等级 API返回值 +alibaba.scbp.ad.account.level.get + +查询推广账户等级 +*/ +type AlibabaScbpAdAccountLevelGetAPIResponse struct { + model.CommonResponse + AlibabaScbpAdAccountLevelGetAPIResponseModel +} + +// 查询推广账户等级 成功返回结果 +type AlibabaScbpAdAccountLevelGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_account_level_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推广账户等级 + CustLevelDto *TopCustLevelDto `json:"cust_level_dto,omitempty" xml:"cust_level_dto,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdAccountLevelGetResponse.go b/model/scbp/AlibabaScbpAdAccountLevelGetResponse.go deleted file mode 100644 index 44ddd5a170..0000000000 --- a/model/scbp/AlibabaScbpAdAccountLevelGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询推广账户等级 API返回值 -alibaba.scbp.ad.account.level.get - -查询推广账户等级 -*/ -type AlibabaScbpAdAccountLevelGetAPIResponse struct { - model.CommonResponse - AlibabaScbpAdAccountLevelGetResponse -} - -// 查询推广账户等级 成功返回结果 -type AlibabaScbpAdAccountLevelGetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_account_level_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推广账户等级 - CustLevelDto *TopCustLevelDto `json:"cust_level_dto,omitempty" xml:"cust_level_dto,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdCampaignCreateAPIRequest.go b/model/scbp/AlibabaScbpAdCampaignCreateAPIRequest.go new file mode 100644 index 0000000000..c04b6f5359 --- /dev/null +++ b/model/scbp/AlibabaScbpAdCampaignCreateAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建计划 API请求 +alibaba.scbp.ad.campaign.create + +创建计划 +*/ +type AlibabaScbpAdCampaignCreateAPIRequest struct { + model.Params + // 返回数据 + _campaignOperation *CampaignOperationDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdCampaignCreateAPIRequest对象 +func NewAlibabaScbpAdCampaignCreateRequest() *AlibabaScbpAdCampaignCreateAPIRequest{ + return &AlibabaScbpAdCampaignCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdCampaignCreateAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.campaign.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdCampaignCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignOperation Setter +// 返回数据 +func (r *AlibabaScbpAdCampaignCreateAPIRequest) SetCampaignOperation(_campaignOperation *CampaignOperationDto) error { + r._campaignOperation = _campaignOperation + r.Set("campaign_operation", _campaignOperation) + return nil +} + +// CampaignOperation Getter +func (r AlibabaScbpAdCampaignCreateAPIRequest) GetCampaignOperation() *CampaignOperationDto { + return r._campaignOperation +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdCampaignCreateAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdCampaignCreateAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdCampaignCreateAPIResponse.go b/model/scbp/AlibabaScbpAdCampaignCreateAPIResponse.go new file mode 100644 index 0000000000..12f349a27c --- /dev/null +++ b/model/scbp/AlibabaScbpAdCampaignCreateAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建计划 API返回值 +alibaba.scbp.ad.campaign.create + +创建计划 +*/ +type AlibabaScbpAdCampaignCreateAPIResponse struct { + model.CommonResponse + AlibabaScbpAdCampaignCreateAPIResponseModel +} + +// 创建计划 成功返回结果 +type AlibabaScbpAdCampaignCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_campaign_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 计划id + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdCampaignCreateForbiddenKeywordAPIRequest.go b/model/scbp/AlibabaScbpAdCampaignCreateForbiddenKeywordAPIRequest.go new file mode 100644 index 0000000000..e1e765b49c --- /dev/null +++ b/model/scbp/AlibabaScbpAdCampaignCreateForbiddenKeywordAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建屏蔽词 API请求 +alibaba.scbp.ad.campaign.create.forbidden.keyword + +创建屏蔽词 +*/ +type AlibabaScbpAdCampaignCreateForbiddenKeywordAPIRequest struct { + model.Params + // 请求参数 + _forbiddenKeywordBatchOperation *ForbiddenKeywordBatchOperationDto + // 计划id + _campaignId int64 + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdCampaignCreateForbiddenKeywordAPIRequest对象 +func NewAlibabaScbpAdCampaignCreateForbiddenKeywordRequest() *AlibabaScbpAdCampaignCreateForbiddenKeywordAPIRequest{ + return &AlibabaScbpAdCampaignCreateForbiddenKeywordAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdCampaignCreateForbiddenKeywordAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.campaign.create.forbidden.keyword" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdCampaignCreateForbiddenKeywordAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ForbiddenKeywordBatchOperation Setter +// 请求参数 +func (r *AlibabaScbpAdCampaignCreateForbiddenKeywordAPIRequest) SetForbiddenKeywordBatchOperation(_forbiddenKeywordBatchOperation *ForbiddenKeywordBatchOperationDto) error { + r._forbiddenKeywordBatchOperation = _forbiddenKeywordBatchOperation + r.Set("forbidden_keyword_batch_operation", _forbiddenKeywordBatchOperation) + return nil +} + +// ForbiddenKeywordBatchOperation Getter +func (r AlibabaScbpAdCampaignCreateForbiddenKeywordAPIRequest) GetForbiddenKeywordBatchOperation() *ForbiddenKeywordBatchOperationDto { + return r._forbiddenKeywordBatchOperation +} +// CampaignId Setter +// 计划id +func (r *AlibabaScbpAdCampaignCreateForbiddenKeywordAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpAdCampaignCreateForbiddenKeywordAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdCampaignCreateForbiddenKeywordAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdCampaignCreateForbiddenKeywordAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdCampaignCreateForbiddenKeywordAPIResponse.go b/model/scbp/AlibabaScbpAdCampaignCreateForbiddenKeywordAPIResponse.go new file mode 100644 index 0000000000..30c3bc7d38 --- /dev/null +++ b/model/scbp/AlibabaScbpAdCampaignCreateForbiddenKeywordAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建屏蔽词 API返回值 +alibaba.scbp.ad.campaign.create.forbidden.keyword + +创建屏蔽词 +*/ +type AlibabaScbpAdCampaignCreateForbiddenKeywordAPIResponse struct { + model.CommonResponse + AlibabaScbpAdCampaignCreateForbiddenKeywordAPIResponseModel +} + +// 创建屏蔽词 成功返回结果 +type AlibabaScbpAdCampaignCreateForbiddenKeywordAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_campaign_create_forbidden_keyword_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdCampaignCreateForbiddenKeywordResponse.go b/model/scbp/AlibabaScbpAdCampaignCreateForbiddenKeywordResponse.go deleted file mode 100644 index 00520fbca3..0000000000 --- a/model/scbp/AlibabaScbpAdCampaignCreateForbiddenKeywordResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建屏蔽词 API返回值 -alibaba.scbp.ad.campaign.create.forbidden.keyword - -创建屏蔽词 -*/ -type AlibabaScbpAdCampaignCreateForbiddenKeywordAPIResponse struct { - model.CommonResponse - AlibabaScbpAdCampaignCreateForbiddenKeywordResponse -} - -// 创建屏蔽词 成功返回结果 -type AlibabaScbpAdCampaignCreateForbiddenKeywordResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_campaign_create_forbidden_keyword_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdCampaignCreateResponse.go b/model/scbp/AlibabaScbpAdCampaignCreateResponse.go deleted file mode 100644 index 1e9f3c12db..0000000000 --- a/model/scbp/AlibabaScbpAdCampaignCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建计划 API返回值 -alibaba.scbp.ad.campaign.create - -创建计划 -*/ -type AlibabaScbpAdCampaignCreateAPIResponse struct { - model.CommonResponse - AlibabaScbpAdCampaignCreateResponse -} - -// 创建计划 成功返回结果 -type AlibabaScbpAdCampaignCreateResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_campaign_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 计划id - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdCampaignDeleteAPIRequest.go b/model/scbp/AlibabaScbpAdCampaignDeleteAPIRequest.go new file mode 100644 index 0000000000..3d9209bff2 --- /dev/null +++ b/model/scbp/AlibabaScbpAdCampaignDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除计划 API请求 +alibaba.scbp.ad.campaign.delete + +删除计划 +*/ +type AlibabaScbpAdCampaignDeleteAPIRequest struct { + model.Params + // 操作对象 + _batchOperation *CampaignBatchOperationDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdCampaignDeleteAPIRequest对象 +func NewAlibabaScbpAdCampaignDeleteRequest() *AlibabaScbpAdCampaignDeleteAPIRequest{ + return &AlibabaScbpAdCampaignDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdCampaignDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.campaign.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdCampaignDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BatchOperation Setter +// 操作对象 +func (r *AlibabaScbpAdCampaignDeleteAPIRequest) SetBatchOperation(_batchOperation *CampaignBatchOperationDto) error { + r._batchOperation = _batchOperation + r.Set("batch_operation", _batchOperation) + return nil +} + +// BatchOperation Getter +func (r AlibabaScbpAdCampaignDeleteAPIRequest) GetBatchOperation() *CampaignBatchOperationDto { + return r._batchOperation +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdCampaignDeleteAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdCampaignDeleteAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdCampaignDeleteAPIResponse.go b/model/scbp/AlibabaScbpAdCampaignDeleteAPIResponse.go new file mode 100644 index 0000000000..cb6d460a39 --- /dev/null +++ b/model/scbp/AlibabaScbpAdCampaignDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除计划 API返回值 +alibaba.scbp.ad.campaign.delete + +删除计划 +*/ +type AlibabaScbpAdCampaignDeleteAPIResponse struct { + model.CommonResponse + AlibabaScbpAdCampaignDeleteAPIResponseModel +} + +// 删除计划 成功返回结果 +type AlibabaScbpAdCampaignDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_campaign_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 删除成功条数 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIRequest.go b/model/scbp/AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIRequest.go new file mode 100644 index 0000000000..dddbd40ecc --- /dev/null +++ b/model/scbp/AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除屏蔽词 API请求 +alibaba.scbp.ad.campaign.delete.forbidden.keyword + +删除屏蔽词 +*/ +type AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIRequest struct { + model.Params + // 计划id + _campaignId int64 + // 请求参数 + _forbiddenKeywordBatchOperation *ForbiddenKeywordBatchOperationDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIRequest对象 +func NewAlibabaScbpAdCampaignDeleteForbiddenKeywordRequest() *AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIRequest{ + return &AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.campaign.delete.forbidden.keyword" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// ForbiddenKeywordBatchOperation Setter +// 请求参数 +func (r *AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIRequest) SetForbiddenKeywordBatchOperation(_forbiddenKeywordBatchOperation *ForbiddenKeywordBatchOperationDto) error { + r._forbiddenKeywordBatchOperation = _forbiddenKeywordBatchOperation + r.Set("forbidden_keyword_batch_operation", _forbiddenKeywordBatchOperation) + return nil +} + +// ForbiddenKeywordBatchOperation Getter +func (r AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIRequest) GetForbiddenKeywordBatchOperation() *ForbiddenKeywordBatchOperationDto { + return r._forbiddenKeywordBatchOperation +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIResponse.go b/model/scbp/AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIResponse.go new file mode 100644 index 0000000000..d02a4c1b32 --- /dev/null +++ b/model/scbp/AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除屏蔽词 API返回值 +alibaba.scbp.ad.campaign.delete.forbidden.keyword + +删除屏蔽词 +*/ +type AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIResponse struct { + model.CommonResponse + AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIResponseModel +} + +// 删除屏蔽词 成功返回结果 +type AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_campaign_delete_forbidden_keyword_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdCampaignDeleteForbiddenKeywordResponse.go b/model/scbp/AlibabaScbpAdCampaignDeleteForbiddenKeywordResponse.go deleted file mode 100644 index 6038524918..0000000000 --- a/model/scbp/AlibabaScbpAdCampaignDeleteForbiddenKeywordResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除屏蔽词 API返回值 -alibaba.scbp.ad.campaign.delete.forbidden.keyword - -删除屏蔽词 -*/ -type AlibabaScbpAdCampaignDeleteForbiddenKeywordAPIResponse struct { - model.CommonResponse - AlibabaScbpAdCampaignDeleteForbiddenKeywordResponse -} - -// 删除屏蔽词 成功返回结果 -type AlibabaScbpAdCampaignDeleteForbiddenKeywordResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_campaign_delete_forbidden_keyword_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdCampaignDeleteResponse.go b/model/scbp/AlibabaScbpAdCampaignDeleteResponse.go deleted file mode 100644 index 9e742ab550..0000000000 --- a/model/scbp/AlibabaScbpAdCampaignDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除计划 API返回值 -alibaba.scbp.ad.campaign.delete - -删除计划 -*/ -type AlibabaScbpAdCampaignDeleteAPIResponse struct { - model.CommonResponse - AlibabaScbpAdCampaignDeleteResponse -} - -// 删除计划 成功返回结果 -type AlibabaScbpAdCampaignDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_campaign_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 删除成功条数 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdCampaignFindCampaignEffectAPIRequest.go b/model/scbp/AlibabaScbpAdCampaignFindCampaignEffectAPIRequest.go new file mode 100644 index 0000000000..31f81d5520 --- /dev/null +++ b/model/scbp/AlibabaScbpAdCampaignFindCampaignEffectAPIRequest.go @@ -0,0 +1,94 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询计划效果数据 API请求 +alibaba.scbp.ad.campaign.find.campaign.effect + +批量查询计划效果数据 +*/ +type AlibabaScbpAdCampaignFindCampaignEffectAPIRequest struct { + model.Params + // 计划id集合 + _campaignIdList []int64 + // 开始时间 + _beginDate string + // 结束时间 + _endDate string + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdCampaignFindCampaignEffectAPIRequest对象 +func NewAlibabaScbpAdCampaignFindCampaignEffectRequest() *AlibabaScbpAdCampaignFindCampaignEffectAPIRequest{ + return &AlibabaScbpAdCampaignFindCampaignEffectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdCampaignFindCampaignEffectAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.campaign.find.campaign.effect" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdCampaignFindCampaignEffectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignIdList Setter +// 计划id集合 +func (r *AlibabaScbpAdCampaignFindCampaignEffectAPIRequest) SetCampaignIdList(_campaignIdList []int64) error { + r._campaignIdList = _campaignIdList + r.Set("campaign_id_list", _campaignIdList) + return nil +} + +// CampaignIdList Getter +func (r AlibabaScbpAdCampaignFindCampaignEffectAPIRequest) GetCampaignIdList() []int64 { + return r._campaignIdList +} +// BeginDate Setter +// 开始时间 +func (r *AlibabaScbpAdCampaignFindCampaignEffectAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaScbpAdCampaignFindCampaignEffectAPIRequest) GetBeginDate() string { + return r._beginDate +} +// EndDate Setter +// 结束时间 +func (r *AlibabaScbpAdCampaignFindCampaignEffectAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaScbpAdCampaignFindCampaignEffectAPIRequest) GetEndDate() string { + return r._endDate +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdCampaignFindCampaignEffectAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdCampaignFindCampaignEffectAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdCampaignFindCampaignEffectAPIResponse.go b/model/scbp/AlibabaScbpAdCampaignFindCampaignEffectAPIResponse.go new file mode 100644 index 0000000000..ce8a445b3d --- /dev/null +++ b/model/scbp/AlibabaScbpAdCampaignFindCampaignEffectAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询计划效果数据 API返回值 +alibaba.scbp.ad.campaign.find.campaign.effect + +批量查询计划效果数据 +*/ +type AlibabaScbpAdCampaignFindCampaignEffectAPIResponse struct { + model.CommonResponse + AlibabaScbpAdCampaignFindCampaignEffectAPIResponseModel +} + +// 批量查询计划效果数据 成功返回结果 +type AlibabaScbpAdCampaignFindCampaignEffectAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_campaign_find_campaign_effect_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // json数据,key是计划id(campaignId), value包含开始时间(statDate),曝光(impr),点击(click),消耗(cost),推广时长(onlineMin) + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdCampaignFindCampaignEffectResponse.go b/model/scbp/AlibabaScbpAdCampaignFindCampaignEffectResponse.go deleted file mode 100644 index 152eb5b6fd..0000000000 --- a/model/scbp/AlibabaScbpAdCampaignFindCampaignEffectResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量查询计划效果数据 API返回值 -alibaba.scbp.ad.campaign.find.campaign.effect - -批量查询计划效果数据 -*/ -type AlibabaScbpAdCampaignFindCampaignEffectAPIResponse struct { - model.CommonResponse - AlibabaScbpAdCampaignFindCampaignEffectResponse -} - -// 批量查询计划效果数据 成功返回结果 -type AlibabaScbpAdCampaignFindCampaignEffectResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_campaign_find_campaign_effect_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // json数据,key是计划id(campaignId), value包含开始时间(statDate),曝光(impr),点击(click),消耗(cost),推广时长(onlineMin) - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdCampaignFindCampaignPageAPIRequest.go b/model/scbp/AlibabaScbpAdCampaignFindCampaignPageAPIRequest.go new file mode 100644 index 0000000000..00e2e6ef81 --- /dev/null +++ b/model/scbp/AlibabaScbpAdCampaignFindCampaignPageAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询计划 API请求 +alibaba.scbp.ad.campaign.find.campaign.page + +分页查询计划 +*/ +type AlibabaScbpAdCampaignFindCampaignPageAPIRequest struct { + model.Params + // 请求实体类 + _campaignQuery *CampaignQueryDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdCampaignFindCampaignPageAPIRequest对象 +func NewAlibabaScbpAdCampaignFindCampaignPageRequest() *AlibabaScbpAdCampaignFindCampaignPageAPIRequest{ + return &AlibabaScbpAdCampaignFindCampaignPageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdCampaignFindCampaignPageAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.campaign.find.campaign.page" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdCampaignFindCampaignPageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignQuery Setter +// 请求实体类 +func (r *AlibabaScbpAdCampaignFindCampaignPageAPIRequest) SetCampaignQuery(_campaignQuery *CampaignQueryDto) error { + r._campaignQuery = _campaignQuery + r.Set("campaign_query", _campaignQuery) + return nil +} + +// CampaignQuery Getter +func (r AlibabaScbpAdCampaignFindCampaignPageAPIRequest) GetCampaignQuery() *CampaignQueryDto { + return r._campaignQuery +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdCampaignFindCampaignPageAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdCampaignFindCampaignPageAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdCampaignFindCampaignPageAPIResponse.go b/model/scbp/AlibabaScbpAdCampaignFindCampaignPageAPIResponse.go new file mode 100644 index 0000000000..5b3285ae2d --- /dev/null +++ b/model/scbp/AlibabaScbpAdCampaignFindCampaignPageAPIResponse.go @@ -0,0 +1,29 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询计划 API返回值 +alibaba.scbp.ad.campaign.find.campaign.page + +分页查询计划 +*/ +type AlibabaScbpAdCampaignFindCampaignPageAPIResponse struct { + model.CommonResponse + AlibabaScbpAdCampaignFindCampaignPageAPIResponseModel +} + +// 分页查询计划 成功返回结果 +type AlibabaScbpAdCampaignFindCampaignPageAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_campaign_find_campaign_page_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 总数量 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 返回数据 + ResultList []CampaignDto `json:"result_list,omitempty" xml:"result_list>campaign_dto,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdCampaignFindCampaignPageResponse.go b/model/scbp/AlibabaScbpAdCampaignFindCampaignPageResponse.go deleted file mode 100644 index ea97358e33..0000000000 --- a/model/scbp/AlibabaScbpAdCampaignFindCampaignPageResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页查询计划 API返回值 -alibaba.scbp.ad.campaign.find.campaign.page - -分页查询计划 -*/ -type AlibabaScbpAdCampaignFindCampaignPageAPIResponse struct { - model.CommonResponse - AlibabaScbpAdCampaignFindCampaignPageResponse -} - -// 分页查询计划 成功返回结果 -type AlibabaScbpAdCampaignFindCampaignPageResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_campaign_find_campaign_page_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 总数量 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 返回数据 - ResultList []CampaignDto `json:"result_list,omitempty" xml:"result_list>campaign_dto,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdCampaignFindForbiddenKeywordAPIRequest.go b/model/scbp/AlibabaScbpAdCampaignFindForbiddenKeywordAPIRequest.go new file mode 100644 index 0000000000..81849e5131 --- /dev/null +++ b/model/scbp/AlibabaScbpAdCampaignFindForbiddenKeywordAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询屏蔽词 API请求 +alibaba.scbp.ad.campaign.find.forbidden.keyword + +查询屏蔽词 +*/ +type AlibabaScbpAdCampaignFindForbiddenKeywordAPIRequest struct { + model.Params + // 计划id + _campaignId int64 + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdCampaignFindForbiddenKeywordAPIRequest对象 +func NewAlibabaScbpAdCampaignFindForbiddenKeywordRequest() *AlibabaScbpAdCampaignFindForbiddenKeywordAPIRequest{ + return &AlibabaScbpAdCampaignFindForbiddenKeywordAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdCampaignFindForbiddenKeywordAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.campaign.find.forbidden.keyword" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdCampaignFindForbiddenKeywordAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *AlibabaScbpAdCampaignFindForbiddenKeywordAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpAdCampaignFindForbiddenKeywordAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdCampaignFindForbiddenKeywordAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdCampaignFindForbiddenKeywordAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdCampaignFindForbiddenKeywordAPIResponse.go b/model/scbp/AlibabaScbpAdCampaignFindForbiddenKeywordAPIResponse.go new file mode 100644 index 0000000000..ba876684a4 --- /dev/null +++ b/model/scbp/AlibabaScbpAdCampaignFindForbiddenKeywordAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询屏蔽词 API返回值 +alibaba.scbp.ad.campaign.find.forbidden.keyword + +查询屏蔽词 +*/ +type AlibabaScbpAdCampaignFindForbiddenKeywordAPIResponse struct { + model.CommonResponse + AlibabaScbpAdCampaignFindForbiddenKeywordAPIResponseModel +} + +// 查询屏蔽词 成功返回结果 +type AlibabaScbpAdCampaignFindForbiddenKeywordAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_campaign_find_forbidden_keyword_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据 + Result *AlibabaScbpAdCampaignFindForbiddenKeywordResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdCampaignFindForbiddenKeywordResponse.go b/model/scbp/AlibabaScbpAdCampaignFindForbiddenKeywordResponse.go deleted file mode 100644 index 6161c8709d..0000000000 --- a/model/scbp/AlibabaScbpAdCampaignFindForbiddenKeywordResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询屏蔽词 API返回值 -alibaba.scbp.ad.campaign.find.forbidden.keyword - -查询屏蔽词 -*/ -type AlibabaScbpAdCampaignFindForbiddenKeywordAPIResponse struct { - model.CommonResponse - AlibabaScbpAdCampaignFindForbiddenKeywordResponse -} - -// 查询屏蔽词 成功返回结果 -type AlibabaScbpAdCampaignFindForbiddenKeywordResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_campaign_find_forbidden_keyword_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据 - Result *AlibabaScbpAdCampaignFindForbiddenKeywordResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdCampaignFindForbiddenKeywordResultDto.go b/model/scbp/AlibabaScbpAdCampaignFindForbiddenKeywordResultDto.go new file mode 100644 index 0000000000..334c7c6d16 --- /dev/null +++ b/model/scbp/AlibabaScbpAdCampaignFindForbiddenKeywordResultDto.go @@ -0,0 +1,13 @@ +package scbp + +// AlibabaScbpAdCampaignFindForbiddenKeywordResultDto +type AlibabaScbpAdCampaignFindForbiddenKeywordResultDto struct { + // 信息 + Msg string `json:"msg,omitempty" xml:"msg,omitempty"` + // 返回code + Code string `json:"code,omitempty" xml:"code,omitempty"` + // 执行结果 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 服务出参 + ResultList []AlibabaScbpAdCampaignFindForbiddenKeywordResult `json:"result_list,omitempty" xml:"result_list>alibaba_scbp_ad_campaign_find_forbidden_keyword_result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdCampaignFindRealCostAPIRequest.go b/model/scbp/AlibabaScbpAdCampaignFindRealCostAPIRequest.go new file mode 100644 index 0000000000..0304b80de7 --- /dev/null +++ b/model/scbp/AlibabaScbpAdCampaignFindRealCostAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询计划消耗数据 API请求 +alibaba.scbp.ad.campaign.find.real.cost + +批量查询计划消耗数据 +*/ +type AlibabaScbpAdCampaignFindRealCostAPIRequest struct { + model.Params + // 系统自动生成 + _campaignQuery *CampaignQueryDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdCampaignFindRealCostAPIRequest对象 +func NewAlibabaScbpAdCampaignFindRealCostRequest() *AlibabaScbpAdCampaignFindRealCostAPIRequest{ + return &AlibabaScbpAdCampaignFindRealCostAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdCampaignFindRealCostAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.campaign.find.real.cost" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdCampaignFindRealCostAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignQuery Setter +// 系统自动生成 +func (r *AlibabaScbpAdCampaignFindRealCostAPIRequest) SetCampaignQuery(_campaignQuery *CampaignQueryDto) error { + r._campaignQuery = _campaignQuery + r.Set("campaign_query", _campaignQuery) + return nil +} + +// CampaignQuery Getter +func (r AlibabaScbpAdCampaignFindRealCostAPIRequest) GetCampaignQuery() *CampaignQueryDto { + return r._campaignQuery +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdCampaignFindRealCostAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdCampaignFindRealCostAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdCampaignFindRealCostAPIResponse.go b/model/scbp/AlibabaScbpAdCampaignFindRealCostAPIResponse.go new file mode 100644 index 0000000000..5ab4bef633 --- /dev/null +++ b/model/scbp/AlibabaScbpAdCampaignFindRealCostAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量查询计划消耗数据 API返回值 +alibaba.scbp.ad.campaign.find.real.cost + +批量查询计划消耗数据 +*/ +type AlibabaScbpAdCampaignFindRealCostAPIResponse struct { + model.CommonResponse + AlibabaScbpAdCampaignFindRealCostAPIResponseModel +} + +// 批量查询计划消耗数据 成功返回结果 +type AlibabaScbpAdCampaignFindRealCostAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_campaign_find_real_cost_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据结果,json数据,key是campaignId,value是消耗数据信息 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdCampaignFindRealCostResponse.go b/model/scbp/AlibabaScbpAdCampaignFindRealCostResponse.go deleted file mode 100644 index d1c2dbbee4..0000000000 --- a/model/scbp/AlibabaScbpAdCampaignFindRealCostResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量查询计划消耗数据 API返回值 -alibaba.scbp.ad.campaign.find.real.cost - -批量查询计划消耗数据 -*/ -type AlibabaScbpAdCampaignFindRealCostAPIResponse struct { - model.CommonResponse - AlibabaScbpAdCampaignFindRealCostResponse -} - -// 批量查询计划消耗数据 成功返回结果 -type AlibabaScbpAdCampaignFindRealCostResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_campaign_find_real_cost_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据结果,json数据,key是campaignId,value是消耗数据信息 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdCampaignUpdateAPIRequest.go b/model/scbp/AlibabaScbpAdCampaignUpdateAPIRequest.go new file mode 100644 index 0000000000..c616db0942 --- /dev/null +++ b/model/scbp/AlibabaScbpAdCampaignUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改计划 API请求 +alibaba.scbp.ad.campaign.update + +修改计划 +*/ +type AlibabaScbpAdCampaignUpdateAPIRequest struct { + model.Params + // 修改数据 + _campaignOperation *CampaignOperationDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdCampaignUpdateAPIRequest对象 +func NewAlibabaScbpAdCampaignUpdateRequest() *AlibabaScbpAdCampaignUpdateAPIRequest{ + return &AlibabaScbpAdCampaignUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdCampaignUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.campaign.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdCampaignUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignOperation Setter +// 修改数据 +func (r *AlibabaScbpAdCampaignUpdateAPIRequest) SetCampaignOperation(_campaignOperation *CampaignOperationDto) error { + r._campaignOperation = _campaignOperation + r.Set("campaign_operation", _campaignOperation) + return nil +} + +// CampaignOperation Getter +func (r AlibabaScbpAdCampaignUpdateAPIRequest) GetCampaignOperation() *CampaignOperationDto { + return r._campaignOperation +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdCampaignUpdateAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdCampaignUpdateAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdCampaignUpdateAPIResponse.go b/model/scbp/AlibabaScbpAdCampaignUpdateAPIResponse.go new file mode 100644 index 0000000000..3cf5e4357e --- /dev/null +++ b/model/scbp/AlibabaScbpAdCampaignUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改计划 API返回值 +alibaba.scbp.ad.campaign.update + +修改计划 +*/ +type AlibabaScbpAdCampaignUpdateAPIResponse struct { + model.CommonResponse + AlibabaScbpAdCampaignUpdateAPIResponseModel +} + +// 修改计划 成功返回结果 +type AlibabaScbpAdCampaignUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_campaign_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改成功数 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdCampaignUpdateResponse.go b/model/scbp/AlibabaScbpAdCampaignUpdateResponse.go deleted file mode 100644 index a68c86353a..0000000000 --- a/model/scbp/AlibabaScbpAdCampaignUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改计划 API返回值 -alibaba.scbp.ad.campaign.update - -修改计划 -*/ -type AlibabaScbpAdCampaignUpdateAPIResponse struct { - model.CommonResponse - AlibabaScbpAdCampaignUpdateResponse -} - -// 修改计划 成功返回结果 -type AlibabaScbpAdCampaignUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_campaign_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改成功数 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdGroupCountAdGroupAPIRequest.go b/model/scbp/AlibabaScbpAdGroupCountAdGroupAPIRequest.go new file mode 100644 index 0000000000..09689302ba --- /dev/null +++ b/model/scbp/AlibabaScbpAdGroupCountAdGroupAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +统计adgroup数量 API请求 +alibaba.scbp.ad.group.count.ad.group + +统计adgroup数量 +*/ +type AlibabaScbpAdGroupCountAdGroupAPIRequest struct { + model.Params + // 计划id + _campaignId int64 + // 查询条件 + _adGroupQuery *AdGroupQueryDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdGroupCountAdGroupAPIRequest对象 +func NewAlibabaScbpAdGroupCountAdGroupRequest() *AlibabaScbpAdGroupCountAdGroupAPIRequest{ + return &AlibabaScbpAdGroupCountAdGroupAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdGroupCountAdGroupAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.group.count.ad.group" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdGroupCountAdGroupAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *AlibabaScbpAdGroupCountAdGroupAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpAdGroupCountAdGroupAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// AdGroupQuery Setter +// 查询条件 +func (r *AlibabaScbpAdGroupCountAdGroupAPIRequest) SetAdGroupQuery(_adGroupQuery *AdGroupQueryDto) error { + r._adGroupQuery = _adGroupQuery + r.Set("ad_group_query", _adGroupQuery) + return nil +} + +// AdGroupQuery Getter +func (r AlibabaScbpAdGroupCountAdGroupAPIRequest) GetAdGroupQuery() *AdGroupQueryDto { + return r._adGroupQuery +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdGroupCountAdGroupAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdGroupCountAdGroupAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdGroupCountAdGroupAPIResponse.go b/model/scbp/AlibabaScbpAdGroupCountAdGroupAPIResponse.go new file mode 100644 index 0000000000..05abf84543 --- /dev/null +++ b/model/scbp/AlibabaScbpAdGroupCountAdGroupAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +统计adgroup数量 API返回值 +alibaba.scbp.ad.group.count.ad.group + +统计adgroup数量 +*/ +type AlibabaScbpAdGroupCountAdGroupAPIResponse struct { + model.CommonResponse + AlibabaScbpAdGroupCountAdGroupAPIResponseModel +} + +// 统计adgroup数量 成功返回结果 +type AlibabaScbpAdGroupCountAdGroupAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_group_count_ad_group_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdGroupCountAdGroupResponse.go b/model/scbp/AlibabaScbpAdGroupCountAdGroupResponse.go deleted file mode 100644 index a31481b0d9..0000000000 --- a/model/scbp/AlibabaScbpAdGroupCountAdGroupResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -统计adgroup数量 API返回值 -alibaba.scbp.ad.group.count.ad.group - -统计adgroup数量 -*/ -type AlibabaScbpAdGroupCountAdGroupAPIResponse struct { - model.CommonResponse - AlibabaScbpAdGroupCountAdGroupResponse -} - -// 统计adgroup数量 成功返回结果 -type AlibabaScbpAdGroupCountAdGroupResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_group_count_ad_group_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdGroupCreateAdGroupBatchAPIRequest.go b/model/scbp/AlibabaScbpAdGroupCreateAdGroupBatchAPIRequest.go new file mode 100644 index 0000000000..c089aa137f --- /dev/null +++ b/model/scbp/AlibabaScbpAdGroupCreateAdGroupBatchAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建推广单元 API请求 +alibaba.scbp.ad.group.create.ad.group.batch + +创建推广单元 +*/ +type AlibabaScbpAdGroupCreateAdGroupBatchAPIRequest struct { + model.Params + // 计划id + _campaignId int64 + // 入参 + _adGroupBatchOperation *AdGroupBatchOperationDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdGroupCreateAdGroupBatchAPIRequest对象 +func NewAlibabaScbpAdGroupCreateAdGroupBatchRequest() *AlibabaScbpAdGroupCreateAdGroupBatchAPIRequest{ + return &AlibabaScbpAdGroupCreateAdGroupBatchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdGroupCreateAdGroupBatchAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.group.create.ad.group.batch" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdGroupCreateAdGroupBatchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *AlibabaScbpAdGroupCreateAdGroupBatchAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpAdGroupCreateAdGroupBatchAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// AdGroupBatchOperation Setter +// 入参 +func (r *AlibabaScbpAdGroupCreateAdGroupBatchAPIRequest) SetAdGroupBatchOperation(_adGroupBatchOperation *AdGroupBatchOperationDto) error { + r._adGroupBatchOperation = _adGroupBatchOperation + r.Set("ad_group_batch_operation", _adGroupBatchOperation) + return nil +} + +// AdGroupBatchOperation Getter +func (r AlibabaScbpAdGroupCreateAdGroupBatchAPIRequest) GetAdGroupBatchOperation() *AdGroupBatchOperationDto { + return r._adGroupBatchOperation +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdGroupCreateAdGroupBatchAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdGroupCreateAdGroupBatchAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdGroupCreateAdGroupBatchAPIResponse.go b/model/scbp/AlibabaScbpAdGroupCreateAdGroupBatchAPIResponse.go new file mode 100644 index 0000000000..0f78764d2b --- /dev/null +++ b/model/scbp/AlibabaScbpAdGroupCreateAdGroupBatchAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建推广单元 API返回值 +alibaba.scbp.ad.group.create.ad.group.batch + +创建推广单元 +*/ +type AlibabaScbpAdGroupCreateAdGroupBatchAPIResponse struct { + model.CommonResponse + AlibabaScbpAdGroupCreateAdGroupBatchAPIResponseModel +} + +// 创建推广单元 成功返回结果 +type AlibabaScbpAdGroupCreateAdGroupBatchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_group_create_ad_group_batch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdGroupCreateAdGroupBatchResponse.go b/model/scbp/AlibabaScbpAdGroupCreateAdGroupBatchResponse.go deleted file mode 100644 index c61f553678..0000000000 --- a/model/scbp/AlibabaScbpAdGroupCreateAdGroupBatchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建推广单元 API返回值 -alibaba.scbp.ad.group.create.ad.group.batch - -创建推广单元 -*/ -type AlibabaScbpAdGroupCreateAdGroupBatchAPIResponse struct { - model.CommonResponse - AlibabaScbpAdGroupCreateAdGroupBatchResponse -} - -// 创建推广单元 成功返回结果 -type AlibabaScbpAdGroupCreateAdGroupBatchResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_group_create_ad_group_batch_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdGroupCreateForbiddenProductAPIRequest.go b/model/scbp/AlibabaScbpAdGroupCreateForbiddenProductAPIRequest.go new file mode 100644 index 0000000000..f9e128200b --- /dev/null +++ b/model/scbp/AlibabaScbpAdGroupCreateForbiddenProductAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建屏蔽品 API请求 +alibaba.scbp.ad.group.create.forbidden.product + +创建屏蔽品 +*/ +type AlibabaScbpAdGroupCreateForbiddenProductAPIRequest struct { + model.Params + // 计划id + _campaignId int64 + // 查询条件 + _forbiddenProductBatchOperation *ForbiddenProductBatchOperationDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdGroupCreateForbiddenProductAPIRequest对象 +func NewAlibabaScbpAdGroupCreateForbiddenProductRequest() *AlibabaScbpAdGroupCreateForbiddenProductAPIRequest{ + return &AlibabaScbpAdGroupCreateForbiddenProductAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdGroupCreateForbiddenProductAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.group.create.forbidden.product" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdGroupCreateForbiddenProductAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *AlibabaScbpAdGroupCreateForbiddenProductAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpAdGroupCreateForbiddenProductAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// ForbiddenProductBatchOperation Setter +// 查询条件 +func (r *AlibabaScbpAdGroupCreateForbiddenProductAPIRequest) SetForbiddenProductBatchOperation(_forbiddenProductBatchOperation *ForbiddenProductBatchOperationDto) error { + r._forbiddenProductBatchOperation = _forbiddenProductBatchOperation + r.Set("forbidden_product_batch_operation", _forbiddenProductBatchOperation) + return nil +} + +// ForbiddenProductBatchOperation Getter +func (r AlibabaScbpAdGroupCreateForbiddenProductAPIRequest) GetForbiddenProductBatchOperation() *ForbiddenProductBatchOperationDto { + return r._forbiddenProductBatchOperation +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdGroupCreateForbiddenProductAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdGroupCreateForbiddenProductAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdGroupCreateForbiddenProductAPIResponse.go b/model/scbp/AlibabaScbpAdGroupCreateForbiddenProductAPIResponse.go new file mode 100644 index 0000000000..f2af0d9b39 --- /dev/null +++ b/model/scbp/AlibabaScbpAdGroupCreateForbiddenProductAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建屏蔽品 API返回值 +alibaba.scbp.ad.group.create.forbidden.product + +创建屏蔽品 +*/ +type AlibabaScbpAdGroupCreateForbiddenProductAPIResponse struct { + model.CommonResponse + AlibabaScbpAdGroupCreateForbiddenProductAPIResponseModel +} + +// 创建屏蔽品 成功返回结果 +type AlibabaScbpAdGroupCreateForbiddenProductAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_group_create_forbidden_product_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdGroupCreateForbiddenProductResponse.go b/model/scbp/AlibabaScbpAdGroupCreateForbiddenProductResponse.go deleted file mode 100644 index bfd2a3cb1d..0000000000 --- a/model/scbp/AlibabaScbpAdGroupCreateForbiddenProductResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建屏蔽品 API返回值 -alibaba.scbp.ad.group.create.forbidden.product - -创建屏蔽品 -*/ -type AlibabaScbpAdGroupCreateForbiddenProductAPIResponse struct { - model.CommonResponse - AlibabaScbpAdGroupCreateForbiddenProductResponse -} - -// 创建屏蔽品 成功返回结果 -type AlibabaScbpAdGroupCreateForbiddenProductResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_group_create_forbidden_product_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdGroupDeleteAdGroupBatchAPIRequest.go b/model/scbp/AlibabaScbpAdGroupDeleteAdGroupBatchAPIRequest.go new file mode 100644 index 0000000000..24835b808c --- /dev/null +++ b/model/scbp/AlibabaScbpAdGroupDeleteAdGroupBatchAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除推广单元 API请求 +alibaba.scbp.ad.group.delete.ad.group.batch + +删除推广单元 +*/ +type AlibabaScbpAdGroupDeleteAdGroupBatchAPIRequest struct { + model.Params + // 计划id + _campaignId int64 + // 请求参数 + _adGroupBatchOperation *AdGroupBatchOperationDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdGroupDeleteAdGroupBatchAPIRequest对象 +func NewAlibabaScbpAdGroupDeleteAdGroupBatchRequest() *AlibabaScbpAdGroupDeleteAdGroupBatchAPIRequest{ + return &AlibabaScbpAdGroupDeleteAdGroupBatchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdGroupDeleteAdGroupBatchAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.group.delete.ad.group.batch" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdGroupDeleteAdGroupBatchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *AlibabaScbpAdGroupDeleteAdGroupBatchAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpAdGroupDeleteAdGroupBatchAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// AdGroupBatchOperation Setter +// 请求参数 +func (r *AlibabaScbpAdGroupDeleteAdGroupBatchAPIRequest) SetAdGroupBatchOperation(_adGroupBatchOperation *AdGroupBatchOperationDto) error { + r._adGroupBatchOperation = _adGroupBatchOperation + r.Set("ad_group_batch_operation", _adGroupBatchOperation) + return nil +} + +// AdGroupBatchOperation Getter +func (r AlibabaScbpAdGroupDeleteAdGroupBatchAPIRequest) GetAdGroupBatchOperation() *AdGroupBatchOperationDto { + return r._adGroupBatchOperation +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdGroupDeleteAdGroupBatchAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdGroupDeleteAdGroupBatchAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdGroupDeleteAdGroupBatchAPIResponse.go b/model/scbp/AlibabaScbpAdGroupDeleteAdGroupBatchAPIResponse.go new file mode 100644 index 0000000000..b6821f27d6 --- /dev/null +++ b/model/scbp/AlibabaScbpAdGroupDeleteAdGroupBatchAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除推广单元 API返回值 +alibaba.scbp.ad.group.delete.ad.group.batch + +删除推广单元 +*/ +type AlibabaScbpAdGroupDeleteAdGroupBatchAPIResponse struct { + model.CommonResponse + AlibabaScbpAdGroupDeleteAdGroupBatchAPIResponseModel +} + +// 删除推广单元 成功返回结果 +type AlibabaScbpAdGroupDeleteAdGroupBatchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_group_delete_ad_group_batch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdGroupDeleteAdGroupBatchResponse.go b/model/scbp/AlibabaScbpAdGroupDeleteAdGroupBatchResponse.go deleted file mode 100644 index 3562ae32a3..0000000000 --- a/model/scbp/AlibabaScbpAdGroupDeleteAdGroupBatchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除推广单元 API返回值 -alibaba.scbp.ad.group.delete.ad.group.batch - -删除推广单元 -*/ -type AlibabaScbpAdGroupDeleteAdGroupBatchAPIResponse struct { - model.CommonResponse - AlibabaScbpAdGroupDeleteAdGroupBatchResponse -} - -// 删除推广单元 成功返回结果 -type AlibabaScbpAdGroupDeleteAdGroupBatchResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_group_delete_ad_group_batch_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdGroupDeleteForbiddenProductAPIRequest.go b/model/scbp/AlibabaScbpAdGroupDeleteForbiddenProductAPIRequest.go new file mode 100644 index 0000000000..9ba014f59d --- /dev/null +++ b/model/scbp/AlibabaScbpAdGroupDeleteForbiddenProductAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除屏蔽品 API请求 +alibaba.scbp.ad.group.delete.forbidden.product + +删除屏蔽品 +*/ +type AlibabaScbpAdGroupDeleteForbiddenProductAPIRequest struct { + model.Params + // 计划id + _campaignId int64 + // 请求参数 + _forbiddenProductBatchOperation *ForbiddenProductBatchOperationDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdGroupDeleteForbiddenProductAPIRequest对象 +func NewAlibabaScbpAdGroupDeleteForbiddenProductRequest() *AlibabaScbpAdGroupDeleteForbiddenProductAPIRequest{ + return &AlibabaScbpAdGroupDeleteForbiddenProductAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdGroupDeleteForbiddenProductAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.group.delete.forbidden.product" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdGroupDeleteForbiddenProductAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *AlibabaScbpAdGroupDeleteForbiddenProductAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpAdGroupDeleteForbiddenProductAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// ForbiddenProductBatchOperation Setter +// 请求参数 +func (r *AlibabaScbpAdGroupDeleteForbiddenProductAPIRequest) SetForbiddenProductBatchOperation(_forbiddenProductBatchOperation *ForbiddenProductBatchOperationDto) error { + r._forbiddenProductBatchOperation = _forbiddenProductBatchOperation + r.Set("forbidden_product_batch_operation", _forbiddenProductBatchOperation) + return nil +} + +// ForbiddenProductBatchOperation Getter +func (r AlibabaScbpAdGroupDeleteForbiddenProductAPIRequest) GetForbiddenProductBatchOperation() *ForbiddenProductBatchOperationDto { + return r._forbiddenProductBatchOperation +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdGroupDeleteForbiddenProductAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdGroupDeleteForbiddenProductAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdGroupDeleteForbiddenProductAPIResponse.go b/model/scbp/AlibabaScbpAdGroupDeleteForbiddenProductAPIResponse.go new file mode 100644 index 0000000000..26ccd88d46 --- /dev/null +++ b/model/scbp/AlibabaScbpAdGroupDeleteForbiddenProductAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除屏蔽品 API返回值 +alibaba.scbp.ad.group.delete.forbidden.product + +删除屏蔽品 +*/ +type AlibabaScbpAdGroupDeleteForbiddenProductAPIResponse struct { + model.CommonResponse + AlibabaScbpAdGroupDeleteForbiddenProductAPIResponseModel +} + +// 删除屏蔽品 成功返回结果 +type AlibabaScbpAdGroupDeleteForbiddenProductAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_group_delete_forbidden_product_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdGroupDeleteForbiddenProductResponse.go b/model/scbp/AlibabaScbpAdGroupDeleteForbiddenProductResponse.go deleted file mode 100644 index 7aead229e7..0000000000 --- a/model/scbp/AlibabaScbpAdGroupDeleteForbiddenProductResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除屏蔽品 API返回值 -alibaba.scbp.ad.group.delete.forbidden.product - -删除屏蔽品 -*/ -type AlibabaScbpAdGroupDeleteForbiddenProductAPIResponse struct { - model.CommonResponse - AlibabaScbpAdGroupDeleteForbiddenProductResponse -} - -// 删除屏蔽品 成功返回结果 -type AlibabaScbpAdGroupDeleteForbiddenProductResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_group_delete_forbidden_product_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdGroupFindAdGroupAPIRequest.go b/model/scbp/AlibabaScbpAdGroupFindAdGroupAPIRequest.go new file mode 100644 index 0000000000..49132f5202 --- /dev/null +++ b/model/scbp/AlibabaScbpAdGroupFindAdGroupAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询推广组 API请求 +alibaba.scbp.ad.group.find.ad.group + +查询推广组 +*/ +type AlibabaScbpAdGroupFindAdGroupAPIRequest struct { + model.Params + // 计划id + _campaignId int64 + // 入参 + _adGroupQuery *AdGroupQueryDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdGroupFindAdGroupAPIRequest对象 +func NewAlibabaScbpAdGroupFindAdGroupRequest() *AlibabaScbpAdGroupFindAdGroupAPIRequest{ + return &AlibabaScbpAdGroupFindAdGroupAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdGroupFindAdGroupAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.group.find.ad.group" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdGroupFindAdGroupAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *AlibabaScbpAdGroupFindAdGroupAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpAdGroupFindAdGroupAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// AdGroupQuery Setter +// 入参 +func (r *AlibabaScbpAdGroupFindAdGroupAPIRequest) SetAdGroupQuery(_adGroupQuery *AdGroupQueryDto) error { + r._adGroupQuery = _adGroupQuery + r.Set("ad_group_query", _adGroupQuery) + return nil +} + +// AdGroupQuery Getter +func (r AlibabaScbpAdGroupFindAdGroupAPIRequest) GetAdGroupQuery() *AdGroupQueryDto { + return r._adGroupQuery +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdGroupFindAdGroupAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdGroupFindAdGroupAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdGroupFindAdGroupAPIResponse.go b/model/scbp/AlibabaScbpAdGroupFindAdGroupAPIResponse.go new file mode 100644 index 0000000000..32032dbba4 --- /dev/null +++ b/model/scbp/AlibabaScbpAdGroupFindAdGroupAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询推广组 API返回值 +alibaba.scbp.ad.group.find.ad.group + +查询推广组 +*/ +type AlibabaScbpAdGroupFindAdGroupAPIResponse struct { + model.CommonResponse + AlibabaScbpAdGroupFindAdGroupAPIResponseModel +} + +// 查询推广组 成功返回结果 +type AlibabaScbpAdGroupFindAdGroupAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_group_find_ad_group_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据 + ResultList []AdProductDto `json:"result_list,omitempty" xml:"result_list>ad_product_dto,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdGroupFindAdGroupResponse.go b/model/scbp/AlibabaScbpAdGroupFindAdGroupResponse.go deleted file mode 100644 index 45e04236b4..0000000000 --- a/model/scbp/AlibabaScbpAdGroupFindAdGroupResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询推广组 API返回值 -alibaba.scbp.ad.group.find.ad.group - -查询推广组 -*/ -type AlibabaScbpAdGroupFindAdGroupAPIResponse struct { - model.CommonResponse - AlibabaScbpAdGroupFindAdGroupResponse -} - -// 查询推广组 成功返回结果 -type AlibabaScbpAdGroupFindAdGroupResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_group_find_ad_group_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据 - ResultList []AdProductDto `json:"result_list,omitempty" xml:"result_list>ad_product_dto,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdGroupFindForbiddenProductAPIRequest.go b/model/scbp/AlibabaScbpAdGroupFindForbiddenProductAPIRequest.go new file mode 100644 index 0000000000..bd193ba873 --- /dev/null +++ b/model/scbp/AlibabaScbpAdGroupFindForbiddenProductAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询屏蔽品 API请求 +alibaba.scbp.ad.group.find.forbidden.product + +查询屏蔽品 +*/ +type AlibabaScbpAdGroupFindForbiddenProductAPIRequest struct { + model.Params + // 计划id + _campaignId int64 + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdGroupFindForbiddenProductAPIRequest对象 +func NewAlibabaScbpAdGroupFindForbiddenProductRequest() *AlibabaScbpAdGroupFindForbiddenProductAPIRequest{ + return &AlibabaScbpAdGroupFindForbiddenProductAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdGroupFindForbiddenProductAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.group.find.forbidden.product" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdGroupFindForbiddenProductAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *AlibabaScbpAdGroupFindForbiddenProductAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpAdGroupFindForbiddenProductAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdGroupFindForbiddenProductAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdGroupFindForbiddenProductAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdGroupFindForbiddenProductAPIResponse.go b/model/scbp/AlibabaScbpAdGroupFindForbiddenProductAPIResponse.go new file mode 100644 index 0000000000..65e510c0ca --- /dev/null +++ b/model/scbp/AlibabaScbpAdGroupFindForbiddenProductAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询屏蔽品 API返回值 +alibaba.scbp.ad.group.find.forbidden.product + +查询屏蔽品 +*/ +type AlibabaScbpAdGroupFindForbiddenProductAPIResponse struct { + model.CommonResponse + AlibabaScbpAdGroupFindForbiddenProductAPIResponseModel +} + +// 查询屏蔽品 成功返回结果 +type AlibabaScbpAdGroupFindForbiddenProductAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_group_find_forbidden_product_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回列表 + ResultList []ForbiddenProductDto `json:"result_list,omitempty" xml:"result_list>forbidden_product_dto,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdGroupFindForbiddenProductResponse.go b/model/scbp/AlibabaScbpAdGroupFindForbiddenProductResponse.go deleted file mode 100644 index 0ddc658740..0000000000 --- a/model/scbp/AlibabaScbpAdGroupFindForbiddenProductResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询屏蔽品 API返回值 -alibaba.scbp.ad.group.find.forbidden.product - -查询屏蔽品 -*/ -type AlibabaScbpAdGroupFindForbiddenProductAPIResponse struct { - model.CommonResponse - AlibabaScbpAdGroupFindForbiddenProductResponse -} - -// 查询屏蔽品 成功返回结果 -type AlibabaScbpAdGroupFindForbiddenProductResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_group_find_forbidden_product_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回列表 - ResultList []ForbiddenProductDto `json:"result_list,omitempty" xml:"result_list>forbidden_product_dto,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdGroupUpdateAdGroupBatchAPIRequest.go b/model/scbp/AlibabaScbpAdGroupUpdateAdGroupBatchAPIRequest.go new file mode 100644 index 0000000000..8dc0e66653 --- /dev/null +++ b/model/scbp/AlibabaScbpAdGroupUpdateAdGroupBatchAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改推广单元 API请求 +alibaba.scbp.ad.group.update.ad.group.batch + +修改推广单元 +*/ +type AlibabaScbpAdGroupUpdateAdGroupBatchAPIRequest struct { + model.Params + // 计划id + _campaignId int64 + // 入参 + _adGroupBatchOperation *AdGroupBatchOperationDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdGroupUpdateAdGroupBatchAPIRequest对象 +func NewAlibabaScbpAdGroupUpdateAdGroupBatchRequest() *AlibabaScbpAdGroupUpdateAdGroupBatchAPIRequest{ + return &AlibabaScbpAdGroupUpdateAdGroupBatchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdGroupUpdateAdGroupBatchAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.group.update.ad.group.batch" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdGroupUpdateAdGroupBatchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *AlibabaScbpAdGroupUpdateAdGroupBatchAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpAdGroupUpdateAdGroupBatchAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// AdGroupBatchOperation Setter +// 入参 +func (r *AlibabaScbpAdGroupUpdateAdGroupBatchAPIRequest) SetAdGroupBatchOperation(_adGroupBatchOperation *AdGroupBatchOperationDto) error { + r._adGroupBatchOperation = _adGroupBatchOperation + r.Set("ad_group_batch_operation", _adGroupBatchOperation) + return nil +} + +// AdGroupBatchOperation Getter +func (r AlibabaScbpAdGroupUpdateAdGroupBatchAPIRequest) GetAdGroupBatchOperation() *AdGroupBatchOperationDto { + return r._adGroupBatchOperation +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdGroupUpdateAdGroupBatchAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdGroupUpdateAdGroupBatchAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdGroupUpdateAdGroupBatchAPIResponse.go b/model/scbp/AlibabaScbpAdGroupUpdateAdGroupBatchAPIResponse.go new file mode 100644 index 0000000000..a38fcb6900 --- /dev/null +++ b/model/scbp/AlibabaScbpAdGroupUpdateAdGroupBatchAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改推广单元 API返回值 +alibaba.scbp.ad.group.update.ad.group.batch + +修改推广单元 +*/ +type AlibabaScbpAdGroupUpdateAdGroupBatchAPIResponse struct { + model.CommonResponse + AlibabaScbpAdGroupUpdateAdGroupBatchAPIResponseModel +} + +// 修改推广单元 成功返回结果 +type AlibabaScbpAdGroupUpdateAdGroupBatchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_group_update_ad_group_batch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdGroupUpdateAdGroupBatchResponse.go b/model/scbp/AlibabaScbpAdGroupUpdateAdGroupBatchResponse.go deleted file mode 100644 index dc57455afe..0000000000 --- a/model/scbp/AlibabaScbpAdGroupUpdateAdGroupBatchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改推广单元 API返回值 -alibaba.scbp.ad.group.update.ad.group.batch - -修改推广单元 -*/ -type AlibabaScbpAdGroupUpdateAdGroupBatchAPIResponse struct { - model.CommonResponse - AlibabaScbpAdGroupUpdateAdGroupBatchResponse -} - -// 修改推广单元 成功返回结果 -type AlibabaScbpAdGroupUpdateAdGroupBatchResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_group_update_ad_group_batch_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdKeywordAddAPIRequest.go b/model/scbp/AlibabaScbpAdKeywordAddAPIRequest.go new file mode 100644 index 0000000000..f5371054cf --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordAddAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +外贸直通车加词 API请求 +alibaba.scbp.ad.keyword.add + +外贸直通车加词服务 +*/ +type AlibabaScbpAdKeywordAddAPIRequest struct { + model.Params + // 加入的词 + _adKeyword string + // 词的出价 + _priceStr string + // 分组名 + _tagName string +} + +// 初始化AlibabaScbpAdKeywordAddAPIRequest对象 +func NewAlibabaScbpAdKeywordAddRequest() *AlibabaScbpAdKeywordAddAPIRequest{ + return &AlibabaScbpAdKeywordAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdKeywordAddAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.keyword.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdKeywordAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AdKeyword Setter +// 加入的词 +func (r *AlibabaScbpAdKeywordAddAPIRequest) SetAdKeyword(_adKeyword string) error { + r._adKeyword = _adKeyword + r.Set("ad_keyword", _adKeyword) + return nil +} + +// AdKeyword Getter +func (r AlibabaScbpAdKeywordAddAPIRequest) GetAdKeyword() string { + return r._adKeyword +} +// PriceStr Setter +// 词的出价 +func (r *AlibabaScbpAdKeywordAddAPIRequest) SetPriceStr(_priceStr string) error { + r._priceStr = _priceStr + r.Set("price_str", _priceStr) + return nil +} + +// PriceStr Getter +func (r AlibabaScbpAdKeywordAddAPIRequest) GetPriceStr() string { + return r._priceStr +} +// TagName Setter +// 分组名 +func (r *AlibabaScbpAdKeywordAddAPIRequest) SetTagName(_tagName string) error { + r._tagName = _tagName + r.Set("tag_name", _tagName) + return nil +} + +// TagName Getter +func (r AlibabaScbpAdKeywordAddAPIRequest) GetTagName() string { + return r._tagName +} diff --git a/model/scbp/AlibabaScbpAdKeywordAddAPIResponse.go b/model/scbp/AlibabaScbpAdKeywordAddAPIResponse.go new file mode 100644 index 0000000000..370cf6a99b --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordAddAPIResponse.go @@ -0,0 +1,33 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +外贸直通车加词 API返回值 +alibaba.scbp.ad.keyword.add + +外贸直通车加词服务 +*/ +type AlibabaScbpAdKeywordAddAPIResponse struct { + model.CommonResponse + AlibabaScbpAdKeywordAddAPIResponseModel +} + +// 外贸直通车加词 成功返回结果 +type AlibabaScbpAdKeywordAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求加入的词 + Keyword string `json:"keyword,omitempty" xml:"keyword,omitempty"` + // 该词是否加入成功 + IsAdded bool `json:"is_added,omitempty" xml:"is_added,omitempty"` + // 加词失败的原因 + InvalidType string `json:"invalid_type,omitempty" xml:"invalid_type,omitempty"` + // 系统中存在归一化重复的词 + RepeatKeyword string `json:"repeat_keyword,omitempty" xml:"repeat_keyword,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdKeywordAddResponse.go b/model/scbp/AlibabaScbpAdKeywordAddResponse.go deleted file mode 100644 index 5f192ccd1c..0000000000 --- a/model/scbp/AlibabaScbpAdKeywordAddResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -外贸直通车加词 API返回值 -alibaba.scbp.ad.keyword.add - -外贸直通车加词服务 -*/ -type AlibabaScbpAdKeywordAddAPIResponse struct { - model.CommonResponse - AlibabaScbpAdKeywordAddResponse -} - -// 外贸直通车加词 成功返回结果 -type AlibabaScbpAdKeywordAddResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求加入的词 - Keyword string `json:"keyword,omitempty" xml:"keyword,omitempty"` - // 该词是否加入成功 - IsAdded bool `json:"is_added,omitempty" xml:"is_added,omitempty"` - // 加词失败的原因 - InvalidType string `json:"invalid_type,omitempty" xml:"invalid_type,omitempty"` - // 系统中存在归一化重复的词 - RepeatKeyword string `json:"repeat_keyword,omitempty" xml:"repeat_keyword,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdKeywordBatchdeleteAPIRequest.go b/model/scbp/AlibabaScbpAdKeywordBatchdeleteAPIRequest.go new file mode 100644 index 0000000000..02b5fc7526 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordBatchdeleteAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +外贸直通车批量删除关键词 API请求 +alibaba.scbp.ad.keyword.batchdelete + +外贸直通车批量删除关键词 +*/ +type AlibabaScbpAdKeywordBatchdeleteAPIRequest struct { + model.Params + // 关键词Id列表 + _keywordIdList []int64 +} + +// 初始化AlibabaScbpAdKeywordBatchdeleteAPIRequest对象 +func NewAlibabaScbpAdKeywordBatchdeleteRequest() *AlibabaScbpAdKeywordBatchdeleteAPIRequest{ + return &AlibabaScbpAdKeywordBatchdeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdKeywordBatchdeleteAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.keyword.batchdelete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdKeywordBatchdeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// KeywordIdList Setter +// 关键词Id列表 +func (r *AlibabaScbpAdKeywordBatchdeleteAPIRequest) SetKeywordIdList(_keywordIdList []int64) error { + r._keywordIdList = _keywordIdList + r.Set("keyword_id_list", _keywordIdList) + return nil +} + +// KeywordIdList Getter +func (r AlibabaScbpAdKeywordBatchdeleteAPIRequest) GetKeywordIdList() []int64 { + return r._keywordIdList +} diff --git a/model/scbp/AlibabaScbpAdKeywordBatchdeleteAPIResponse.go b/model/scbp/AlibabaScbpAdKeywordBatchdeleteAPIResponse.go new file mode 100644 index 0000000000..593f8a1860 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordBatchdeleteAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +外贸直通车批量删除关键词 API返回值 +alibaba.scbp.ad.keyword.batchdelete + +外贸直通车批量删除关键词 +*/ +type AlibabaScbpAdKeywordBatchdeleteAPIResponse struct { + model.CommonResponse + AlibabaScbpAdKeywordBatchdeleteAPIResponseModel +} + +// 外贸直通车批量删除关键词 成功返回结果 +type AlibabaScbpAdKeywordBatchdeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_batchdelete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 删除关键词是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdKeywordBatchdeleteResponse.go b/model/scbp/AlibabaScbpAdKeywordBatchdeleteResponse.go deleted file mode 100644 index 8bb733efdc..0000000000 --- a/model/scbp/AlibabaScbpAdKeywordBatchdeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -外贸直通车批量删除关键词 API返回值 -alibaba.scbp.ad.keyword.batchdelete - -外贸直通车批量删除关键词 -*/ -type AlibabaScbpAdKeywordBatchdeleteAPIResponse struct { - model.CommonResponse - AlibabaScbpAdKeywordBatchdeleteResponse -} - -// 外贸直通车批量删除关键词 成功返回结果 -type AlibabaScbpAdKeywordBatchdeleteResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_batchdelete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 删除关键词是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdKeywordCreateKeywordBatchAPIRequest.go b/model/scbp/AlibabaScbpAdKeywordCreateKeywordBatchAPIRequest.go new file mode 100644 index 0000000000..5afc245d86 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordCreateKeywordBatchAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词添加 API请求 +alibaba.scbp.ad.keyword.create.keyword.batch + +关键词添加 +*/ +type AlibabaScbpAdKeywordCreateKeywordBatchAPIRequest struct { + model.Params + // 计划id + _campaignId int64 + // 请求参数 + _keywordQuery *KeywordQuery + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdKeywordCreateKeywordBatchAPIRequest对象 +func NewAlibabaScbpAdKeywordCreateKeywordBatchRequest() *AlibabaScbpAdKeywordCreateKeywordBatchAPIRequest{ + return &AlibabaScbpAdKeywordCreateKeywordBatchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdKeywordCreateKeywordBatchAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.keyword.create.keyword.batch" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdKeywordCreateKeywordBatchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *AlibabaScbpAdKeywordCreateKeywordBatchAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpAdKeywordCreateKeywordBatchAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// KeywordQuery Setter +// 请求参数 +func (r *AlibabaScbpAdKeywordCreateKeywordBatchAPIRequest) SetKeywordQuery(_keywordQuery *KeywordQuery) error { + r._keywordQuery = _keywordQuery + r.Set("keyword_query", _keywordQuery) + return nil +} + +// KeywordQuery Getter +func (r AlibabaScbpAdKeywordCreateKeywordBatchAPIRequest) GetKeywordQuery() *KeywordQuery { + return r._keywordQuery +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdKeywordCreateKeywordBatchAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdKeywordCreateKeywordBatchAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdKeywordCreateKeywordBatchAPIResponse.go b/model/scbp/AlibabaScbpAdKeywordCreateKeywordBatchAPIResponse.go new file mode 100644 index 0000000000..ceeec4dc07 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordCreateKeywordBatchAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词添加 API返回值 +alibaba.scbp.ad.keyword.create.keyword.batch + +关键词添加 +*/ +type AlibabaScbpAdKeywordCreateKeywordBatchAPIResponse struct { + model.CommonResponse + AlibabaScbpAdKeywordCreateKeywordBatchAPIResponseModel +} + +// 关键词添加 成功返回结果 +type AlibabaScbpAdKeywordCreateKeywordBatchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_create_keyword_batch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回错误集合 + ResultList []ErrorKeyword `json:"result_list,omitempty" xml:"result_list>error_keyword,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdKeywordCreateKeywordBatchResponse.go b/model/scbp/AlibabaScbpAdKeywordCreateKeywordBatchResponse.go deleted file mode 100644 index 2fad3c0e72..0000000000 --- a/model/scbp/AlibabaScbpAdKeywordCreateKeywordBatchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -关键词添加 API返回值 -alibaba.scbp.ad.keyword.create.keyword.batch - -关键词添加 -*/ -type AlibabaScbpAdKeywordCreateKeywordBatchAPIResponse struct { - model.CommonResponse - AlibabaScbpAdKeywordCreateKeywordBatchResponse -} - -// 关键词添加 成功返回结果 -type AlibabaScbpAdKeywordCreateKeywordBatchResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_create_keyword_batch_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回错误集合 - ResultList []ErrorKeyword `json:"result_list,omitempty" xml:"result_list>error_keyword,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdKeywordDeleteAPIRequest.go b/model/scbp/AlibabaScbpAdKeywordDeleteAPIRequest.go new file mode 100644 index 0000000000..98378542a2 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +外贸直通车删除关键词 API请求 +alibaba.scbp.ad.keyword.delete + +外贸直通车删除关键词 +*/ +type AlibabaScbpAdKeywordDeleteAPIRequest struct { + model.Params + // 要删除的关键词 + _adKeyword string +} + +// 初始化AlibabaScbpAdKeywordDeleteAPIRequest对象 +func NewAlibabaScbpAdKeywordDeleteRequest() *AlibabaScbpAdKeywordDeleteAPIRequest{ + return &AlibabaScbpAdKeywordDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdKeywordDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.keyword.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdKeywordDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AdKeyword Setter +// 要删除的关键词 +func (r *AlibabaScbpAdKeywordDeleteAPIRequest) SetAdKeyword(_adKeyword string) error { + r._adKeyword = _adKeyword + r.Set("ad_keyword", _adKeyword) + return nil +} + +// AdKeyword Getter +func (r AlibabaScbpAdKeywordDeleteAPIRequest) GetAdKeyword() string { + return r._adKeyword +} diff --git a/model/scbp/AlibabaScbpAdKeywordDeleteAPIResponse.go b/model/scbp/AlibabaScbpAdKeywordDeleteAPIResponse.go new file mode 100644 index 0000000000..35f517bf79 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +外贸直通车删除关键词 API返回值 +alibaba.scbp.ad.keyword.delete + +外贸直通车删除关键词 +*/ +type AlibabaScbpAdKeywordDeleteAPIResponse struct { + model.CommonResponse + AlibabaScbpAdKeywordDeleteAPIResponseModel +} + +// 外贸直通车删除关键词 成功返回结果 +type AlibabaScbpAdKeywordDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 删除关键词是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdKeywordDeleteKeywordBatchAPIRequest.go b/model/scbp/AlibabaScbpAdKeywordDeleteKeywordBatchAPIRequest.go new file mode 100644 index 0000000000..170752bcb9 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordDeleteKeywordBatchAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除关键词 API请求 +alibaba.scbp.ad.keyword.delete.keyword.batch + +删除关键词 +*/ +type AlibabaScbpAdKeywordDeleteKeywordBatchAPIRequest struct { + model.Params + // 计划id + _campaignId int64 + // 请求参数 + _keywordQuery *KeywordQuery + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdKeywordDeleteKeywordBatchAPIRequest对象 +func NewAlibabaScbpAdKeywordDeleteKeywordBatchRequest() *AlibabaScbpAdKeywordDeleteKeywordBatchAPIRequest{ + return &AlibabaScbpAdKeywordDeleteKeywordBatchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdKeywordDeleteKeywordBatchAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.keyword.delete.keyword.batch" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdKeywordDeleteKeywordBatchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *AlibabaScbpAdKeywordDeleteKeywordBatchAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpAdKeywordDeleteKeywordBatchAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// KeywordQuery Setter +// 请求参数 +func (r *AlibabaScbpAdKeywordDeleteKeywordBatchAPIRequest) SetKeywordQuery(_keywordQuery *KeywordQuery) error { + r._keywordQuery = _keywordQuery + r.Set("keyword_query", _keywordQuery) + return nil +} + +// KeywordQuery Getter +func (r AlibabaScbpAdKeywordDeleteKeywordBatchAPIRequest) GetKeywordQuery() *KeywordQuery { + return r._keywordQuery +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdKeywordDeleteKeywordBatchAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdKeywordDeleteKeywordBatchAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdKeywordDeleteKeywordBatchAPIResponse.go b/model/scbp/AlibabaScbpAdKeywordDeleteKeywordBatchAPIResponse.go new file mode 100644 index 0000000000..14a7184565 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordDeleteKeywordBatchAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除关键词 API返回值 +alibaba.scbp.ad.keyword.delete.keyword.batch + +删除关键词 +*/ +type AlibabaScbpAdKeywordDeleteKeywordBatchAPIResponse struct { + model.CommonResponse + AlibabaScbpAdKeywordDeleteKeywordBatchAPIResponseModel +} + +// 删除关键词 成功返回结果 +type AlibabaScbpAdKeywordDeleteKeywordBatchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_delete_keyword_batch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdKeywordDeleteKeywordBatchResponse.go b/model/scbp/AlibabaScbpAdKeywordDeleteKeywordBatchResponse.go deleted file mode 100644 index d18390c2b7..0000000000 --- a/model/scbp/AlibabaScbpAdKeywordDeleteKeywordBatchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除关键词 API返回值 -alibaba.scbp.ad.keyword.delete.keyword.batch - -删除关键词 -*/ -type AlibabaScbpAdKeywordDeleteKeywordBatchAPIResponse struct { - model.CommonResponse - AlibabaScbpAdKeywordDeleteKeywordBatchResponse -} - -// 删除关键词 成功返回结果 -type AlibabaScbpAdKeywordDeleteKeywordBatchResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_delete_keyword_batch_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdKeywordDeleteResponse.go b/model/scbp/AlibabaScbpAdKeywordDeleteResponse.go deleted file mode 100644 index 83c549c98e..0000000000 --- a/model/scbp/AlibabaScbpAdKeywordDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -外贸直通车删除关键词 API返回值 -alibaba.scbp.ad.keyword.delete - -外贸直通车删除关键词 -*/ -type AlibabaScbpAdKeywordDeleteAPIResponse struct { - model.CommonResponse - AlibabaScbpAdKeywordDeleteResponse -} - -// 外贸直通车删除关键词 成功返回结果 -type AlibabaScbpAdKeywordDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 删除关键词是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdKeywordGetAPIRequest.go b/model/scbp/AlibabaScbpAdKeywordGetAPIRequest.go new file mode 100644 index 0000000000..218c00e5e2 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordGetAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +外贸直通车查询关键词 API请求 +alibaba.scbp.ad.keyword.get + +外贸直通车查询关键词 +*/ +type AlibabaScbpAdKeywordGetAPIRequest struct { + model.Params + // KeywordQuery + _queryDto *KeywordQuery +} + +// 初始化AlibabaScbpAdKeywordGetAPIRequest对象 +func NewAlibabaScbpAdKeywordGetRequest() *AlibabaScbpAdKeywordGetAPIRequest{ + return &AlibabaScbpAdKeywordGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdKeywordGetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.keyword.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdKeywordGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryDto Setter +// KeywordQuery +func (r *AlibabaScbpAdKeywordGetAPIRequest) SetQueryDto(_queryDto *KeywordQuery) error { + r._queryDto = _queryDto + r.Set("query_dto", _queryDto) + return nil +} + +// QueryDto Getter +func (r AlibabaScbpAdKeywordGetAPIRequest) GetQueryDto() *KeywordQuery { + return r._queryDto +} diff --git a/model/scbp/AlibabaScbpAdKeywordGetAPIResponse.go b/model/scbp/AlibabaScbpAdKeywordGetAPIResponse.go new file mode 100644 index 0000000000..32d1396df0 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordGetAPIResponse.go @@ -0,0 +1,31 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +外贸直通车查询关键词 API返回值 +alibaba.scbp.ad.keyword.get + +外贸直通车查询关键词 +*/ +type AlibabaScbpAdKeywordGetAPIResponse struct { + model.CommonResponse + AlibabaScbpAdKeywordGetAPIResponseModel +} + +// 外贸直通车查询关键词 成功返回结果 +type AlibabaScbpAdKeywordGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 总个数 + TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` + // 总页数 + TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` + // 查询关键词列表 + KeywordList []KeywordResultDto `json:"keyword_list,omitempty" xml:"keyword_list>keyword_result_dto,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdKeywordGetKeywordCountByQueryAPIRequest.go b/model/scbp/AlibabaScbpAdKeywordGetKeywordCountByQueryAPIRequest.go new file mode 100644 index 0000000000..10d3289c5d --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordGetKeywordCountByQueryAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +计划关键词数目 API请求 +alibaba.scbp.ad.keyword.get.keyword.count.by.query + +计划关键词数目 +*/ +type AlibabaScbpAdKeywordGetKeywordCountByQueryAPIRequest struct { + model.Params + // 用户信息 + _topContext *TopContextDto + // 请求参数 + _campaignKeywordQuery *CampaignKeywordQuery +} + +// 初始化AlibabaScbpAdKeywordGetKeywordCountByQueryAPIRequest对象 +func NewAlibabaScbpAdKeywordGetKeywordCountByQueryRequest() *AlibabaScbpAdKeywordGetKeywordCountByQueryAPIRequest{ + return &AlibabaScbpAdKeywordGetKeywordCountByQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdKeywordGetKeywordCountByQueryAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.keyword.get.keyword.count.by.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdKeywordGetKeywordCountByQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdKeywordGetKeywordCountByQueryAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdKeywordGetKeywordCountByQueryAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} +// CampaignKeywordQuery Setter +// 请求参数 +func (r *AlibabaScbpAdKeywordGetKeywordCountByQueryAPIRequest) SetCampaignKeywordQuery(_campaignKeywordQuery *CampaignKeywordQuery) error { + r._campaignKeywordQuery = _campaignKeywordQuery + r.Set("campaign_keyword_query", _campaignKeywordQuery) + return nil +} + +// CampaignKeywordQuery Getter +func (r AlibabaScbpAdKeywordGetKeywordCountByQueryAPIRequest) GetCampaignKeywordQuery() *CampaignKeywordQuery { + return r._campaignKeywordQuery +} diff --git a/model/scbp/AlibabaScbpAdKeywordGetKeywordCountByQueryAPIResponse.go b/model/scbp/AlibabaScbpAdKeywordGetKeywordCountByQueryAPIResponse.go new file mode 100644 index 0000000000..597386616b --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordGetKeywordCountByQueryAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +计划关键词数目 API返回值 +alibaba.scbp.ad.keyword.get.keyword.count.by.query + +计划关键词数目 +*/ +type AlibabaScbpAdKeywordGetKeywordCountByQueryAPIResponse struct { + model.CommonResponse + AlibabaScbpAdKeywordGetKeywordCountByQueryAPIResponseModel +} + +// 计划关键词数目 成功返回结果 +type AlibabaScbpAdKeywordGetKeywordCountByQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_get_keyword_count_by_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdKeywordGetKeywordCountByQueryResponse.go b/model/scbp/AlibabaScbpAdKeywordGetKeywordCountByQueryResponse.go deleted file mode 100644 index cf3f6d6016..0000000000 --- a/model/scbp/AlibabaScbpAdKeywordGetKeywordCountByQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -计划关键词数目 API返回值 -alibaba.scbp.ad.keyword.get.keyword.count.by.query - -计划关键词数目 -*/ -type AlibabaScbpAdKeywordGetKeywordCountByQueryAPIResponse struct { - model.CommonResponse - AlibabaScbpAdKeywordGetKeywordCountByQueryResponse -} - -// 计划关键词数目 成功返回结果 -type AlibabaScbpAdKeywordGetKeywordCountByQueryResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_get_keyword_count_by_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdKeywordGetResponse.go b/model/scbp/AlibabaScbpAdKeywordGetResponse.go deleted file mode 100644 index b382c4a61b..0000000000 --- a/model/scbp/AlibabaScbpAdKeywordGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -外贸直通车查询关键词 API返回值 -alibaba.scbp.ad.keyword.get - -外贸直通车查询关键词 -*/ -type AlibabaScbpAdKeywordGetAPIResponse struct { - model.CommonResponse - AlibabaScbpAdKeywordGetResponse -} - -// 外贸直通车查询关键词 成功返回结果 -type AlibabaScbpAdKeywordGetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 总个数 - TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` - // 总页数 - TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` - // 查询关键词列表 - KeywordList []KeywordResultDto `json:"keyword_list,omitempty" xml:"keyword_list>keyword_result_dto,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdKeywordListCampaignKeywordsAPIRequest.go b/model/scbp/AlibabaScbpAdKeywordListCampaignKeywordsAPIRequest.go new file mode 100644 index 0000000000..eb98997499 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordListCampaignKeywordsAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取计划关键词 API请求 +alibaba.scbp.ad.keyword.list.campaign.keywords + +获取计划关键词 +*/ +type AlibabaScbpAdKeywordListCampaignKeywordsAPIRequest struct { + model.Params + // 计划id + _campaignId int64 + // 搜索条件 + _campaignKeywordQuery *CampaignKeywordQuery + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdKeywordListCampaignKeywordsAPIRequest对象 +func NewAlibabaScbpAdKeywordListCampaignKeywordsRequest() *AlibabaScbpAdKeywordListCampaignKeywordsAPIRequest{ + return &AlibabaScbpAdKeywordListCampaignKeywordsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdKeywordListCampaignKeywordsAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.keyword.list.campaign.keywords" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdKeywordListCampaignKeywordsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *AlibabaScbpAdKeywordListCampaignKeywordsAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpAdKeywordListCampaignKeywordsAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// CampaignKeywordQuery Setter +// 搜索条件 +func (r *AlibabaScbpAdKeywordListCampaignKeywordsAPIRequest) SetCampaignKeywordQuery(_campaignKeywordQuery *CampaignKeywordQuery) error { + r._campaignKeywordQuery = _campaignKeywordQuery + r.Set("campaign_keyword_query", _campaignKeywordQuery) + return nil +} + +// CampaignKeywordQuery Getter +func (r AlibabaScbpAdKeywordListCampaignKeywordsAPIRequest) GetCampaignKeywordQuery() *CampaignKeywordQuery { + return r._campaignKeywordQuery +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdKeywordListCampaignKeywordsAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdKeywordListCampaignKeywordsAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdKeywordListCampaignKeywordsAPIResponse.go b/model/scbp/AlibabaScbpAdKeywordListCampaignKeywordsAPIResponse.go new file mode 100644 index 0000000000..bd4d461a44 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordListCampaignKeywordsAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取计划关键词 API返回值 +alibaba.scbp.ad.keyword.list.campaign.keywords + +获取计划关键词 +*/ +type AlibabaScbpAdKeywordListCampaignKeywordsAPIResponse struct { + model.CommonResponse + AlibabaScbpAdKeywordListCampaignKeywordsAPIResponseModel +} + +// 获取计划关键词 成功返回结果 +type AlibabaScbpAdKeywordListCampaignKeywordsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_list_campaign_keywords_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据集合 + ResultList []KeywordDto `json:"result_list,omitempty" xml:"result_list>keyword_dto,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdKeywordListCampaignKeywordsResponse.go b/model/scbp/AlibabaScbpAdKeywordListCampaignKeywordsResponse.go deleted file mode 100644 index 5e4edff5bb..0000000000 --- a/model/scbp/AlibabaScbpAdKeywordListCampaignKeywordsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取计划关键词 API返回值 -alibaba.scbp.ad.keyword.list.campaign.keywords - -获取计划关键词 -*/ -type AlibabaScbpAdKeywordListCampaignKeywordsAPIResponse struct { - model.CommonResponse - AlibabaScbpAdKeywordListCampaignKeywordsResponse -} - -// 获取计划关键词 成功返回结果 -type AlibabaScbpAdKeywordListCampaignKeywordsResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_list_campaign_keywords_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据集合 - ResultList []KeywordDto `json:"result_list,omitempty" xml:"result_list>keyword_dto,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdKeywordPriceBatchupdateAPIRequest.go b/model/scbp/AlibabaScbpAdKeywordPriceBatchupdateAPIRequest.go new file mode 100644 index 0000000000..f0411002e0 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordPriceBatchupdateAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词批量改价 API请求 +alibaba.scbp.ad.keyword.price.batchupdate + +关键词批量改价 +*/ +type AlibabaScbpAdKeywordPriceBatchupdateAPIRequest struct { + model.Params + // 系统自动生成 + _keywordUpdateDtoList []KeywordUpdateDto +} + +// 初始化AlibabaScbpAdKeywordPriceBatchupdateAPIRequest对象 +func NewAlibabaScbpAdKeywordPriceBatchupdateRequest() *AlibabaScbpAdKeywordPriceBatchupdateAPIRequest{ + return &AlibabaScbpAdKeywordPriceBatchupdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdKeywordPriceBatchupdateAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.keyword.price.batchupdate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdKeywordPriceBatchupdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// KeywordUpdateDtoList Setter +// 系统自动生成 +func (r *AlibabaScbpAdKeywordPriceBatchupdateAPIRequest) SetKeywordUpdateDtoList(_keywordUpdateDtoList []KeywordUpdateDto) error { + r._keywordUpdateDtoList = _keywordUpdateDtoList + r.Set("keyword_update_dto_list", _keywordUpdateDtoList) + return nil +} + +// KeywordUpdateDtoList Getter +func (r AlibabaScbpAdKeywordPriceBatchupdateAPIRequest) GetKeywordUpdateDtoList() []KeywordUpdateDto { + return r._keywordUpdateDtoList +} diff --git a/model/scbp/AlibabaScbpAdKeywordPriceBatchupdateAPIResponse.go b/model/scbp/AlibabaScbpAdKeywordPriceBatchupdateAPIResponse.go new file mode 100644 index 0000000000..c97ec7ab6e --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordPriceBatchupdateAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词批量改价 API返回值 +alibaba.scbp.ad.keyword.price.batchupdate + +关键词批量改价 +*/ +type AlibabaScbpAdKeywordPriceBatchupdateAPIResponse struct { + model.CommonResponse + AlibabaScbpAdKeywordPriceBatchupdateAPIResponseModel +} + +// 关键词批量改价 成功返回结果 +type AlibabaScbpAdKeywordPriceBatchupdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_price_batchupdate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改失败关键词列表 + KeywordErrorResultList []KeywordErrorResultDto `json:"keyword_error_result_list,omitempty" xml:"keyword_error_result_list>keyword_error_result_dto,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdKeywordPriceBatchupdateResponse.go b/model/scbp/AlibabaScbpAdKeywordPriceBatchupdateResponse.go deleted file mode 100644 index 1444361a70..0000000000 --- a/model/scbp/AlibabaScbpAdKeywordPriceBatchupdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -关键词批量改价 API返回值 -alibaba.scbp.ad.keyword.price.batchupdate - -关键词批量改价 -*/ -type AlibabaScbpAdKeywordPriceBatchupdateAPIResponse struct { - model.CommonResponse - AlibabaScbpAdKeywordPriceBatchupdateResponse -} - -// 关键词批量改价 成功返回结果 -type AlibabaScbpAdKeywordPriceBatchupdateResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_price_batchupdate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改失败关键词列表 - KeywordErrorResultList []KeywordErrorResultDto `json:"keyword_error_result_list,omitempty" xml:"keyword_error_result_list>keyword_error_result_dto,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdKeywordPriceUpdateAPIRequest.go b/model/scbp/AlibabaScbpAdKeywordPriceUpdateAPIRequest.go new file mode 100644 index 0000000000..de3b745b89 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordPriceUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词改价 API请求 +alibaba.scbp.ad.keyword.price.update + +关键词改价 +*/ +type AlibabaScbpAdKeywordPriceUpdateAPIRequest struct { + model.Params + // 只能取ascci字符 + _adKeyword string + // 关键词价格单位元,一位小数 + _priceStr string +} + +// 初始化AlibabaScbpAdKeywordPriceUpdateAPIRequest对象 +func NewAlibabaScbpAdKeywordPriceUpdateRequest() *AlibabaScbpAdKeywordPriceUpdateAPIRequest{ + return &AlibabaScbpAdKeywordPriceUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdKeywordPriceUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.keyword.price.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdKeywordPriceUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AdKeyword Setter +// 只能取ascci字符 +func (r *AlibabaScbpAdKeywordPriceUpdateAPIRequest) SetAdKeyword(_adKeyword string) error { + r._adKeyword = _adKeyword + r.Set("ad_keyword", _adKeyword) + return nil +} + +// AdKeyword Getter +func (r AlibabaScbpAdKeywordPriceUpdateAPIRequest) GetAdKeyword() string { + return r._adKeyword +} +// PriceStr Setter +// 关键词价格单位元,一位小数 +func (r *AlibabaScbpAdKeywordPriceUpdateAPIRequest) SetPriceStr(_priceStr string) error { + r._priceStr = _priceStr + r.Set("price_str", _priceStr) + return nil +} + +// PriceStr Getter +func (r AlibabaScbpAdKeywordPriceUpdateAPIRequest) GetPriceStr() string { + return r._priceStr +} diff --git a/model/scbp/AlibabaScbpAdKeywordPriceUpdateAPIResponse.go b/model/scbp/AlibabaScbpAdKeywordPriceUpdateAPIResponse.go new file mode 100644 index 0000000000..8a88bc91b9 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordPriceUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词改价 API返回值 +alibaba.scbp.ad.keyword.price.update + +关键词改价 +*/ +type AlibabaScbpAdKeywordPriceUpdateAPIResponse struct { + model.CommonResponse + AlibabaScbpAdKeywordPriceUpdateAPIResponseModel +} + +// 关键词改价 成功返回结果 +type AlibabaScbpAdKeywordPriceUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_price_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改关键词价格是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdKeywordPriceUpdateResponse.go b/model/scbp/AlibabaScbpAdKeywordPriceUpdateResponse.go deleted file mode 100644 index b0c8981153..0000000000 --- a/model/scbp/AlibabaScbpAdKeywordPriceUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -关键词改价 API返回值 -alibaba.scbp.ad.keyword.price.update - -关键词改价 -*/ -type AlibabaScbpAdKeywordPriceUpdateAPIResponse struct { - model.CommonResponse - AlibabaScbpAdKeywordPriceUpdateResponse -} - -// 关键词改价 成功返回结果 -type AlibabaScbpAdKeywordPriceUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_price_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改关键词价格是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdKeywordQueryKeywordRankPriceAPIRequest.go b/model/scbp/AlibabaScbpAdKeywordQueryKeywordRankPriceAPIRequest.go new file mode 100644 index 0000000000..87d3e35928 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordQueryKeywordRankPriceAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询关键词前五名排价 API请求 +alibaba.scbp.ad.keyword.query.keyword.rank.price + +查询关键词前五名排价 +*/ +type AlibabaScbpAdKeywordQueryKeywordRankPriceAPIRequest struct { + model.Params + // 计划id + _campaignId int64 + // 请求参数 + _keywordQuery *KeywordQuery + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdKeywordQueryKeywordRankPriceAPIRequest对象 +func NewAlibabaScbpAdKeywordQueryKeywordRankPriceRequest() *AlibabaScbpAdKeywordQueryKeywordRankPriceAPIRequest{ + return &AlibabaScbpAdKeywordQueryKeywordRankPriceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdKeywordQueryKeywordRankPriceAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.keyword.query.keyword.rank.price" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdKeywordQueryKeywordRankPriceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *AlibabaScbpAdKeywordQueryKeywordRankPriceAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpAdKeywordQueryKeywordRankPriceAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// KeywordQuery Setter +// 请求参数 +func (r *AlibabaScbpAdKeywordQueryKeywordRankPriceAPIRequest) SetKeywordQuery(_keywordQuery *KeywordQuery) error { + r._keywordQuery = _keywordQuery + r.Set("keyword_query", _keywordQuery) + return nil +} + +// KeywordQuery Getter +func (r AlibabaScbpAdKeywordQueryKeywordRankPriceAPIRequest) GetKeywordQuery() *KeywordQuery { + return r._keywordQuery +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdKeywordQueryKeywordRankPriceAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdKeywordQueryKeywordRankPriceAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdKeywordQueryKeywordRankPriceAPIResponse.go b/model/scbp/AlibabaScbpAdKeywordQueryKeywordRankPriceAPIResponse.go new file mode 100644 index 0000000000..f9a4fe374a --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordQueryKeywordRankPriceAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询关键词前五名排价 API返回值 +alibaba.scbp.ad.keyword.query.keyword.rank.price + +查询关键词前五名排价 +*/ +type AlibabaScbpAdKeywordQueryKeywordRankPriceAPIResponse struct { + model.CommonResponse + AlibabaScbpAdKeywordQueryKeywordRankPriceAPIResponseModel +} + +// 查询关键词前五名排价 成功返回结果 +type AlibabaScbpAdKeywordQueryKeywordRankPriceAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_query_keyword_rank_price_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回参数 + Result *KeywordRankPriceDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdKeywordQueryKeywordRankPriceResponse.go b/model/scbp/AlibabaScbpAdKeywordQueryKeywordRankPriceResponse.go deleted file mode 100644 index 36097f9076..0000000000 --- a/model/scbp/AlibabaScbpAdKeywordQueryKeywordRankPriceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询关键词前五名排价 API返回值 -alibaba.scbp.ad.keyword.query.keyword.rank.price - -查询关键词前五名排价 -*/ -type AlibabaScbpAdKeywordQueryKeywordRankPriceAPIResponse struct { - model.CommonResponse - AlibabaScbpAdKeywordQueryKeywordRankPriceResponse -} - -// 查询关键词前五名排价 成功返回结果 -type AlibabaScbpAdKeywordQueryKeywordRankPriceResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_query_keyword_rank_price_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回参数 - Result *KeywordRankPriceDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdKeywordRankGetAPIRequest.go b/model/scbp/AlibabaScbpAdKeywordRankGetAPIRequest.go new file mode 100644 index 0000000000..ae024763fe --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordRankGetAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取外贸直通车关键词预估排名 API请求 +alibaba.scbp.ad.keyword.rank.get + +获取外贸直通车关键词预估排名 +*/ +type AlibabaScbpAdKeywordRankGetAPIRequest struct { + model.Params + // 查询预估排名的关键词 + _keyword string +} + +// 初始化AlibabaScbpAdKeywordRankGetAPIRequest对象 +func NewAlibabaScbpAdKeywordRankGetRequest() *AlibabaScbpAdKeywordRankGetAPIRequest{ + return &AlibabaScbpAdKeywordRankGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdKeywordRankGetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.keyword.rank.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdKeywordRankGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Keyword Setter +// 查询预估排名的关键词 +func (r *AlibabaScbpAdKeywordRankGetAPIRequest) SetKeyword(_keyword string) error { + r._keyword = _keyword + r.Set("keyword", _keyword) + return nil +} + +// Keyword Getter +func (r AlibabaScbpAdKeywordRankGetAPIRequest) GetKeyword() string { + return r._keyword +} diff --git a/model/scbp/AlibabaScbpAdKeywordRankGetAPIResponse.go b/model/scbp/AlibabaScbpAdKeywordRankGetAPIResponse.go new file mode 100644 index 0000000000..0a4ddc654b --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordRankGetAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取外贸直通车关键词预估排名 API返回值 +alibaba.scbp.ad.keyword.rank.get + +获取外贸直通车关键词预估排名 +*/ +type AlibabaScbpAdKeywordRankGetAPIResponse struct { + model.CommonResponse + AlibabaScbpAdKeywordRankGetAPIResponseModel +} + +// 获取外贸直通车关键词预估排名 成功返回结果 +type AlibabaScbpAdKeywordRankGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_rank_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 关键词的预估排名 + RankLocation int64 `json:"rank_location,omitempty" xml:"rank_location,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdKeywordRankGetResponse.go b/model/scbp/AlibabaScbpAdKeywordRankGetResponse.go deleted file mode 100644 index 0fb5527d70..0000000000 --- a/model/scbp/AlibabaScbpAdKeywordRankGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取外贸直通车关键词预估排名 API返回值 -alibaba.scbp.ad.keyword.rank.get - -获取外贸直通车关键词预估排名 -*/ -type AlibabaScbpAdKeywordRankGetAPIResponse struct { - model.CommonResponse - AlibabaScbpAdKeywordRankGetResponse -} - -// 获取外贸直通车关键词预估排名 成功返回结果 -type AlibabaScbpAdKeywordRankGetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_rank_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 关键词的预估排名 - RankLocation int64 `json:"rank_location,omitempty" xml:"rank_location,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdKeywordRankPriceBatchgetAPIRequest.go b/model/scbp/AlibabaScbpAdKeywordRankPriceBatchgetAPIRequest.go new file mode 100644 index 0000000000..c372cfa341 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordRankPriceBatchgetAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +外贸直通车关键词前五名批量排价 API请求 +alibaba.scbp.ad.keyword.rank.price.batchget + +外贸直通车关键词前五名批量排价 +*/ +type AlibabaScbpAdKeywordRankPriceBatchgetAPIRequest struct { + model.Params + // 上下文 + _context *ContextDto + // keyword_request + _keywordRequest *TopKeywordListDto +} + +// 初始化AlibabaScbpAdKeywordRankPriceBatchgetAPIRequest对象 +func NewAlibabaScbpAdKeywordRankPriceBatchgetRequest() *AlibabaScbpAdKeywordRankPriceBatchgetAPIRequest{ + return &AlibabaScbpAdKeywordRankPriceBatchgetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdKeywordRankPriceBatchgetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.keyword.rank.price.batchget" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdKeywordRankPriceBatchgetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Context Setter +// 上下文 +func (r *AlibabaScbpAdKeywordRankPriceBatchgetAPIRequest) SetContext(_context *ContextDto) error { + r._context = _context + r.Set("context", _context) + return nil +} + +// Context Getter +func (r AlibabaScbpAdKeywordRankPriceBatchgetAPIRequest) GetContext() *ContextDto { + return r._context +} +// KeywordRequest Setter +// keyword_request +func (r *AlibabaScbpAdKeywordRankPriceBatchgetAPIRequest) SetKeywordRequest(_keywordRequest *TopKeywordListDto) error { + r._keywordRequest = _keywordRequest + r.Set("keyword_request", _keywordRequest) + return nil +} + +// KeywordRequest Getter +func (r AlibabaScbpAdKeywordRankPriceBatchgetAPIRequest) GetKeywordRequest() *TopKeywordListDto { + return r._keywordRequest +} diff --git a/model/scbp/AlibabaScbpAdKeywordRankPriceBatchgetAPIResponse.go b/model/scbp/AlibabaScbpAdKeywordRankPriceBatchgetAPIResponse.go new file mode 100644 index 0000000000..f8f3db0a69 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordRankPriceBatchgetAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +外贸直通车关键词前五名批量排价 API返回值 +alibaba.scbp.ad.keyword.rank.price.batchget + +外贸直通车关键词前五名批量排价 +*/ +type AlibabaScbpAdKeywordRankPriceBatchgetAPIResponse struct { + model.CommonResponse + AlibabaScbpAdKeywordRankPriceBatchgetAPIResponseModel +} + +// 外贸直通车关键词前五名批量排价 成功返回结果 +type AlibabaScbpAdKeywordRankPriceBatchgetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_rank_price_batchget_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + ResultList []KeywordRankPriceDto `json:"result_list,omitempty" xml:"result_list>keyword_rank_price_dto,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdKeywordRankPriceBatchgetResponse.go b/model/scbp/AlibabaScbpAdKeywordRankPriceBatchgetResponse.go deleted file mode 100644 index 712ea187cf..0000000000 --- a/model/scbp/AlibabaScbpAdKeywordRankPriceBatchgetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -外贸直通车关键词前五名批量排价 API返回值 -alibaba.scbp.ad.keyword.rank.price.batchget - -外贸直通车关键词前五名批量排价 -*/ -type AlibabaScbpAdKeywordRankPriceBatchgetAPIResponse struct { - model.CommonResponse - AlibabaScbpAdKeywordRankPriceBatchgetResponse -} - -// 外贸直通车关键词前五名批量排价 成功返回结果 -type AlibabaScbpAdKeywordRankPriceBatchgetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_rank_price_batchget_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - ResultList []KeywordRankPriceDto `json:"result_list,omitempty" xml:"result_list>keyword_rank_price_dto,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdKeywordRankPriceGetAPIRequest.go b/model/scbp/AlibabaScbpAdKeywordRankPriceGetAPIRequest.go new file mode 100644 index 0000000000..b6c757acd9 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordRankPriceGetAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +外贸直通车关键词前五名排价 API请求 +alibaba.scbp.ad.keyword.rank.price.get + +外贸直通车关键词前五名排价 +*/ +type AlibabaScbpAdKeywordRankPriceGetAPIRequest struct { + model.Params + // 关键词 + _keyword string +} + +// 初始化AlibabaScbpAdKeywordRankPriceGetAPIRequest对象 +func NewAlibabaScbpAdKeywordRankPriceGetRequest() *AlibabaScbpAdKeywordRankPriceGetAPIRequest{ + return &AlibabaScbpAdKeywordRankPriceGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdKeywordRankPriceGetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.keyword.rank.price.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdKeywordRankPriceGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Keyword Setter +// 关键词 +func (r *AlibabaScbpAdKeywordRankPriceGetAPIRequest) SetKeyword(_keyword string) error { + r._keyword = _keyword + r.Set("keyword", _keyword) + return nil +} + +// Keyword Getter +func (r AlibabaScbpAdKeywordRankPriceGetAPIRequest) GetKeyword() string { + return r._keyword +} diff --git a/model/scbp/AlibabaScbpAdKeywordRankPriceGetAPIResponse.go b/model/scbp/AlibabaScbpAdKeywordRankPriceGetAPIResponse.go new file mode 100644 index 0000000000..877f4f66ee --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordRankPriceGetAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +外贸直通车关键词前五名排价 API返回值 +alibaba.scbp.ad.keyword.rank.price.get + +外贸直通车关键词前五名排价 +*/ +type AlibabaScbpAdKeywordRankPriceGetAPIResponse struct { + model.CommonResponse + AlibabaScbpAdKeywordRankPriceGetAPIResponseModel +} + +// 外贸直通车关键词前五名排价 成功返回结果 +type AlibabaScbpAdKeywordRankPriceGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_rank_price_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 关键词前五名排价 + RankPriceList []string `json:"rank_price_list,omitempty" xml:"rank_price_list>string,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdKeywordRankPriceGetResponse.go b/model/scbp/AlibabaScbpAdKeywordRankPriceGetResponse.go deleted file mode 100644 index e53f499cbe..0000000000 --- a/model/scbp/AlibabaScbpAdKeywordRankPriceGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -外贸直通车关键词前五名排价 API返回值 -alibaba.scbp.ad.keyword.rank.price.get - -外贸直通车关键词前五名排价 -*/ -type AlibabaScbpAdKeywordRankPriceGetAPIResponse struct { - model.CommonResponse - AlibabaScbpAdKeywordRankPriceGetResponse -} - -// 外贸直通车关键词前五名排价 成功返回结果 -type AlibabaScbpAdKeywordRankPriceGetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_rank_price_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 关键词前五名排价 - RankPriceList []string `json:"rank_price_list,omitempty" xml:"rank_price_list>string,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdKeywordStatusBatchupdateAPIRequest.go b/model/scbp/AlibabaScbpAdKeywordStatusBatchupdateAPIRequest.go new file mode 100644 index 0000000000..553c04abce --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordStatusBatchupdateAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量启动暂停推广词状态 API请求 +alibaba.scbp.ad.keyword.status.batchupdate + +批量启动暂停关键词推广状态 +*/ +type AlibabaScbpAdKeywordStatusBatchupdateAPIRequest struct { + model.Params + // 系统自动生成 + _keywordUpdateDtoList []KeywordUpdateDto +} + +// 初始化AlibabaScbpAdKeywordStatusBatchupdateAPIRequest对象 +func NewAlibabaScbpAdKeywordStatusBatchupdateRequest() *AlibabaScbpAdKeywordStatusBatchupdateAPIRequest{ + return &AlibabaScbpAdKeywordStatusBatchupdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdKeywordStatusBatchupdateAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.keyword.status.batchupdate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdKeywordStatusBatchupdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// KeywordUpdateDtoList Setter +// 系统自动生成 +func (r *AlibabaScbpAdKeywordStatusBatchupdateAPIRequest) SetKeywordUpdateDtoList(_keywordUpdateDtoList []KeywordUpdateDto) error { + r._keywordUpdateDtoList = _keywordUpdateDtoList + r.Set("keyword_update_dto_list", _keywordUpdateDtoList) + return nil +} + +// KeywordUpdateDtoList Getter +func (r AlibabaScbpAdKeywordStatusBatchupdateAPIRequest) GetKeywordUpdateDtoList() []KeywordUpdateDto { + return r._keywordUpdateDtoList +} diff --git a/model/scbp/AlibabaScbpAdKeywordStatusBatchupdateAPIResponse.go b/model/scbp/AlibabaScbpAdKeywordStatusBatchupdateAPIResponse.go new file mode 100644 index 0000000000..da3ae2d7eb --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordStatusBatchupdateAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量启动暂停推广词状态 API返回值 +alibaba.scbp.ad.keyword.status.batchupdate + +批量启动暂停关键词推广状态 +*/ +type AlibabaScbpAdKeywordStatusBatchupdateAPIResponse struct { + model.CommonResponse + AlibabaScbpAdKeywordStatusBatchupdateAPIResponseModel +} + +// 批量启动暂停推广词状态 成功返回结果 +type AlibabaScbpAdKeywordStatusBatchupdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_status_batchupdate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改失败关键词列表 + KeywordErrorResultList []KeywordErrorResultDto `json:"keyword_error_result_list,omitempty" xml:"keyword_error_result_list>keyword_error_result_dto,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdKeywordStatusBatchupdateResponse.go b/model/scbp/AlibabaScbpAdKeywordStatusBatchupdateResponse.go deleted file mode 100644 index 575f8ee5f5..0000000000 --- a/model/scbp/AlibabaScbpAdKeywordStatusBatchupdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量启动暂停推广词状态 API返回值 -alibaba.scbp.ad.keyword.status.batchupdate - -批量启动暂停关键词推广状态 -*/ -type AlibabaScbpAdKeywordStatusBatchupdateAPIResponse struct { - model.CommonResponse - AlibabaScbpAdKeywordStatusBatchupdateResponse -} - -// 批量启动暂停推广词状态 成功返回结果 -type AlibabaScbpAdKeywordStatusBatchupdateResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_status_batchupdate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改失败关键词列表 - KeywordErrorResultList []KeywordErrorResultDto `json:"keyword_error_result_list,omitempty" xml:"keyword_error_result_list>keyword_error_result_dto,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdKeywordStatusUpdateAPIRequest.go b/model/scbp/AlibabaScbpAdKeywordStatusUpdateAPIRequest.go new file mode 100644 index 0000000000..572030ca0f --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordStatusUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词启动暂停推广 API请求 +alibaba.scbp.ad.keyword.status.update + +关键词启动暂停推广 +*/ +type AlibabaScbpAdKeywordStatusUpdateAPIRequest struct { + model.Params + // 只能取ascci字符 + _adKeyword string + // 只能去in_promotion或者stopped + _status string +} + +// 初始化AlibabaScbpAdKeywordStatusUpdateAPIRequest对象 +func NewAlibabaScbpAdKeywordStatusUpdateRequest() *AlibabaScbpAdKeywordStatusUpdateAPIRequest{ + return &AlibabaScbpAdKeywordStatusUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdKeywordStatusUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.keyword.status.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdKeywordStatusUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AdKeyword Setter +// 只能取ascci字符 +func (r *AlibabaScbpAdKeywordStatusUpdateAPIRequest) SetAdKeyword(_adKeyword string) error { + r._adKeyword = _adKeyword + r.Set("ad_keyword", _adKeyword) + return nil +} + +// AdKeyword Getter +func (r AlibabaScbpAdKeywordStatusUpdateAPIRequest) GetAdKeyword() string { + return r._adKeyword +} +// Status Setter +// 只能去in_promotion或者stopped +func (r *AlibabaScbpAdKeywordStatusUpdateAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaScbpAdKeywordStatusUpdateAPIRequest) GetStatus() string { + return r._status +} diff --git a/model/scbp/AlibabaScbpAdKeywordStatusUpdateAPIResponse.go b/model/scbp/AlibabaScbpAdKeywordStatusUpdateAPIResponse.go new file mode 100644 index 0000000000..3c48733ff4 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordStatusUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词启动暂停推广 API返回值 +alibaba.scbp.ad.keyword.status.update + +关键词启动暂停推广 +*/ +type AlibabaScbpAdKeywordStatusUpdateAPIResponse struct { + model.CommonResponse + AlibabaScbpAdKeywordStatusUpdateAPIResponseModel +} + +// 关键词启动暂停推广 成功返回结果 +type AlibabaScbpAdKeywordStatusUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_status_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 更新关键词推广状态是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdKeywordStatusUpdateResponse.go b/model/scbp/AlibabaScbpAdKeywordStatusUpdateResponse.go deleted file mode 100644 index 1208e90f33..0000000000 --- a/model/scbp/AlibabaScbpAdKeywordStatusUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -关键词启动暂停推广 API返回值 -alibaba.scbp.ad.keyword.status.update - -关键词启动暂停推广 -*/ -type AlibabaScbpAdKeywordStatusUpdateAPIResponse struct { - model.CommonResponse - AlibabaScbpAdKeywordStatusUpdateResponse -} - -// 关键词启动暂停推广 成功返回结果 -type AlibabaScbpAdKeywordStatusUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_status_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 更新关键词推广状态是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdKeywordTagUpdateAPIRequest.go b/model/scbp/AlibabaScbpAdKeywordTagUpdateAPIRequest.go new file mode 100644 index 0000000000..1e858d7449 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordTagUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改关键词所属分组 API请求 +alibaba.scbp.ad.keyword.tag.update + +修改关键词所属分组 +*/ +type AlibabaScbpAdKeywordTagUpdateAPIRequest struct { + model.Params + // 关键词ID列表 + _keywordIdList []int64 + // 关键词分组ID,不传表示取消关键词的分组 + _tagIdList []int64 +} + +// 初始化AlibabaScbpAdKeywordTagUpdateAPIRequest对象 +func NewAlibabaScbpAdKeywordTagUpdateRequest() *AlibabaScbpAdKeywordTagUpdateAPIRequest{ + return &AlibabaScbpAdKeywordTagUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdKeywordTagUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.keyword.tag.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdKeywordTagUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// KeywordIdList Setter +// 关键词ID列表 +func (r *AlibabaScbpAdKeywordTagUpdateAPIRequest) SetKeywordIdList(_keywordIdList []int64) error { + r._keywordIdList = _keywordIdList + r.Set("keyword_id_list", _keywordIdList) + return nil +} + +// KeywordIdList Getter +func (r AlibabaScbpAdKeywordTagUpdateAPIRequest) GetKeywordIdList() []int64 { + return r._keywordIdList +} +// TagIdList Setter +// 关键词分组ID,不传表示取消关键词的分组 +func (r *AlibabaScbpAdKeywordTagUpdateAPIRequest) SetTagIdList(_tagIdList []int64) error { + r._tagIdList = _tagIdList + r.Set("tag_id_list", _tagIdList) + return nil +} + +// TagIdList Getter +func (r AlibabaScbpAdKeywordTagUpdateAPIRequest) GetTagIdList() []int64 { + return r._tagIdList +} diff --git a/model/scbp/AlibabaScbpAdKeywordTagUpdateAPIResponse.go b/model/scbp/AlibabaScbpAdKeywordTagUpdateAPIResponse.go new file mode 100644 index 0000000000..e93b8c5d94 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordTagUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改关键词所属分组 API返回值 +alibaba.scbp.ad.keyword.tag.update + +修改关键词所属分组 +*/ +type AlibabaScbpAdKeywordTagUpdateAPIResponse struct { + model.CommonResponse + AlibabaScbpAdKeywordTagUpdateAPIResponseModel +} + +// 修改关键词所属分组 成功返回结果 +type AlibabaScbpAdKeywordTagUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_tag_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 实际修改的关键词数 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdKeywordTagUpdateResponse.go b/model/scbp/AlibabaScbpAdKeywordTagUpdateResponse.go deleted file mode 100644 index 380a599464..0000000000 --- a/model/scbp/AlibabaScbpAdKeywordTagUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改关键词所属分组 API返回值 -alibaba.scbp.ad.keyword.tag.update - -修改关键词所属分组 -*/ -type AlibabaScbpAdKeywordTagUpdateAPIResponse struct { - model.CommonResponse - AlibabaScbpAdKeywordTagUpdateResponse -} - -// 修改关键词所属分组 成功返回结果 -type AlibabaScbpAdKeywordTagUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_tag_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 实际修改的关键词数 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIRequest.go b/model/scbp/AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIRequest.go new file mode 100644 index 0000000000..351b9dc647 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改关键词价格 API请求 +alibaba.scbp.ad.keyword.update.keyword.price.batch + +修改关键词价格 +*/ +type AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIRequest struct { + model.Params + // 计划id + _campaignId int64 + // 请求参数 + _keywordUpdateQuery *KeywordUpdateQuery + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIRequest对象 +func NewAlibabaScbpAdKeywordUpdateKeywordPriceBatchRequest() *AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIRequest{ + return &AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.keyword.update.keyword.price.batch" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// KeywordUpdateQuery Setter +// 请求参数 +func (r *AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIRequest) SetKeywordUpdateQuery(_keywordUpdateQuery *KeywordUpdateQuery) error { + r._keywordUpdateQuery = _keywordUpdateQuery + r.Set("keyword_update_query", _keywordUpdateQuery) + return nil +} + +// KeywordUpdateQuery Getter +func (r AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIRequest) GetKeywordUpdateQuery() *KeywordUpdateQuery { + return r._keywordUpdateQuery +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIResponse.go b/model/scbp/AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIResponse.go new file mode 100644 index 0000000000..db5fdf5e2a --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改关键词价格 API返回值 +alibaba.scbp.ad.keyword.update.keyword.price.batch + +修改关键词价格 +*/ +type AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIResponse struct { + model.CommonResponse + AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIResponseModel +} + +// 修改关键词价格 成功返回结果 +type AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_update_keyword_price_batch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息集合 + ResultList []ErrorKeyword `json:"result_list,omitempty" xml:"result_list>error_keyword,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdKeywordUpdateKeywordPriceBatchResponse.go b/model/scbp/AlibabaScbpAdKeywordUpdateKeywordPriceBatchResponse.go deleted file mode 100644 index fc5f8e21d5..0000000000 --- a/model/scbp/AlibabaScbpAdKeywordUpdateKeywordPriceBatchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改关键词价格 API返回值 -alibaba.scbp.ad.keyword.update.keyword.price.batch - -修改关键词价格 -*/ -type AlibabaScbpAdKeywordUpdateKeywordPriceBatchAPIResponse struct { - model.CommonResponse - AlibabaScbpAdKeywordUpdateKeywordPriceBatchResponse -} - -// 修改关键词价格 成功返回结果 -type AlibabaScbpAdKeywordUpdateKeywordPriceBatchResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_update_keyword_price_batch_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息集合 - ResultList []ErrorKeyword `json:"result_list,omitempty" xml:"result_list>error_keyword,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIRequest.go b/model/scbp/AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIRequest.go new file mode 100644 index 0000000000..662a5716f6 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改关键词状态 API请求 +alibaba.scbp.ad.keyword.update.keyword.status.batch + +修改关键词状态 +*/ +type AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIRequest struct { + model.Params + // 计划id + _campaignId int64 + // 更新数据 + _keywordUpdateQuery *KeywordUpdateQuery + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIRequest对象 +func NewAlibabaScbpAdKeywordUpdateKeywordStatusBatchRequest() *AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIRequest{ + return &AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.keyword.update.keyword.status.batch" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// KeywordUpdateQuery Setter +// 更新数据 +func (r *AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIRequest) SetKeywordUpdateQuery(_keywordUpdateQuery *KeywordUpdateQuery) error { + r._keywordUpdateQuery = _keywordUpdateQuery + r.Set("keyword_update_query", _keywordUpdateQuery) + return nil +} + +// KeywordUpdateQuery Getter +func (r AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIRequest) GetKeywordUpdateQuery() *KeywordUpdateQuery { + return r._keywordUpdateQuery +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIResponse.go b/model/scbp/AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIResponse.go new file mode 100644 index 0000000000..5bca16f152 --- /dev/null +++ b/model/scbp/AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改关键词状态 API返回值 +alibaba.scbp.ad.keyword.update.keyword.status.batch + +修改关键词状态 +*/ +type AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIResponse struct { + model.CommonResponse + AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIResponseModel +} + +// 修改关键词状态 成功返回结果 +type AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_update_keyword_status_batch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回错误集合 + ResultList []ErrorKeyword `json:"result_list,omitempty" xml:"result_list>error_keyword,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdKeywordUpdateKeywordStatusBatchResponse.go b/model/scbp/AlibabaScbpAdKeywordUpdateKeywordStatusBatchResponse.go deleted file mode 100644 index 58371c68fb..0000000000 --- a/model/scbp/AlibabaScbpAdKeywordUpdateKeywordStatusBatchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改关键词状态 API返回值 -alibaba.scbp.ad.keyword.update.keyword.status.batch - -修改关键词状态 -*/ -type AlibabaScbpAdKeywordUpdateKeywordStatusBatchAPIResponse struct { - model.CommonResponse - AlibabaScbpAdKeywordUpdateKeywordStatusBatchResponse -} - -// 修改关键词状态 成功返回结果 -type AlibabaScbpAdKeywordUpdateKeywordStatusBatchResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_keyword_update_keyword_status_batch_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回错误集合 - ResultList []ErrorKeyword `json:"result_list,omitempty" xml:"result_list>error_keyword,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdReportGetAccountReportAPIRequest.go b/model/scbp/AlibabaScbpAdReportGetAccountReportAPIRequest.go new file mode 100644 index 0000000000..7164a2cfc9 --- /dev/null +++ b/model/scbp/AlibabaScbpAdReportGetAccountReportAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +账户报告 API请求 +alibaba.scbp.ad.report.get.account.report + +账户报告 +*/ +type AlibabaScbpAdReportGetAccountReportAPIRequest struct { + model.Params + // 请求参数 + _accountReportOperation *AccountReportOperationDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdReportGetAccountReportAPIRequest对象 +func NewAlibabaScbpAdReportGetAccountReportRequest() *AlibabaScbpAdReportGetAccountReportAPIRequest{ + return &AlibabaScbpAdReportGetAccountReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdReportGetAccountReportAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.report.get.account.report" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdReportGetAccountReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccountReportOperation Setter +// 请求参数 +func (r *AlibabaScbpAdReportGetAccountReportAPIRequest) SetAccountReportOperation(_accountReportOperation *AccountReportOperationDto) error { + r._accountReportOperation = _accountReportOperation + r.Set("account_report_operation", _accountReportOperation) + return nil +} + +// AccountReportOperation Getter +func (r AlibabaScbpAdReportGetAccountReportAPIRequest) GetAccountReportOperation() *AccountReportOperationDto { + return r._accountReportOperation +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdReportGetAccountReportAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdReportGetAccountReportAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdReportGetAccountReportAPIResponse.go b/model/scbp/AlibabaScbpAdReportGetAccountReportAPIResponse.go new file mode 100644 index 0000000000..b453825893 --- /dev/null +++ b/model/scbp/AlibabaScbpAdReportGetAccountReportAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +账户报告 API返回值 +alibaba.scbp.ad.report.get.account.report + +账户报告 +*/ +type AlibabaScbpAdReportGetAccountReportAPIResponse struct { + model.CommonResponse + AlibabaScbpAdReportGetAccountReportAPIResponseModel +} + +// 账户报告 成功返回结果 +type AlibabaScbpAdReportGetAccountReportAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_report_get_account_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回参数 + Result *AccountReportDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdReportGetAccountReportResponse.go b/model/scbp/AlibabaScbpAdReportGetAccountReportResponse.go deleted file mode 100644 index 91d4b36eff..0000000000 --- a/model/scbp/AlibabaScbpAdReportGetAccountReportResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -账户报告 API返回值 -alibaba.scbp.ad.report.get.account.report - -账户报告 -*/ -type AlibabaScbpAdReportGetAccountReportAPIResponse struct { - model.CommonResponse - AlibabaScbpAdReportGetAccountReportResponse -} - -// 账户报告 成功返回结果 -type AlibabaScbpAdReportGetAccountReportResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_report_get_account_report_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回参数 - Result *AccountReportDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdReportGetProductReportAPIRequest.go b/model/scbp/AlibabaScbpAdReportGetProductReportAPIRequest.go new file mode 100644 index 0000000000..97a4aea416 --- /dev/null +++ b/model/scbp/AlibabaScbpAdReportGetProductReportAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +产品报告 API请求 +alibaba.scbp.ad.report.get.product.report + +产品报告 +*/ +type AlibabaScbpAdReportGetProductReportAPIRequest struct { + model.Params + // 请求参数 + _productReportOperation *ProductReportOperationDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdReportGetProductReportAPIRequest对象 +func NewAlibabaScbpAdReportGetProductReportRequest() *AlibabaScbpAdReportGetProductReportAPIRequest{ + return &AlibabaScbpAdReportGetProductReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdReportGetProductReportAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.report.get.product.report" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdReportGetProductReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductReportOperation Setter +// 请求参数 +func (r *AlibabaScbpAdReportGetProductReportAPIRequest) SetProductReportOperation(_productReportOperation *ProductReportOperationDto) error { + r._productReportOperation = _productReportOperation + r.Set("product_report_operation", _productReportOperation) + return nil +} + +// ProductReportOperation Getter +func (r AlibabaScbpAdReportGetProductReportAPIRequest) GetProductReportOperation() *ProductReportOperationDto { + return r._productReportOperation +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdReportGetProductReportAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdReportGetProductReportAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdReportGetProductReportAPIResponse.go b/model/scbp/AlibabaScbpAdReportGetProductReportAPIResponse.go new file mode 100644 index 0000000000..30c0d18aa3 --- /dev/null +++ b/model/scbp/AlibabaScbpAdReportGetProductReportAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +产品报告 API返回值 +alibaba.scbp.ad.report.get.product.report + +产品报告 +*/ +type AlibabaScbpAdReportGetProductReportAPIResponse struct { + model.CommonResponse + AlibabaScbpAdReportGetProductReportAPIResponseModel +} + +// 产品报告 成功返回结果 +type AlibabaScbpAdReportGetProductReportAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_report_get_product_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据 + Result *ProductReportDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdReportGetProductReportResponse.go b/model/scbp/AlibabaScbpAdReportGetProductReportResponse.go deleted file mode 100644 index 3979311632..0000000000 --- a/model/scbp/AlibabaScbpAdReportGetProductReportResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -产品报告 API返回值 -alibaba.scbp.ad.report.get.product.report - -产品报告 -*/ -type AlibabaScbpAdReportGetProductReportAPIResponse struct { - model.CommonResponse - AlibabaScbpAdReportGetProductReportResponse -} - -// 产品报告 成功返回结果 -type AlibabaScbpAdReportGetProductReportResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_report_get_product_report_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据 - Result *ProductReportDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdReportGetTargetReportAPIRequest.go b/model/scbp/AlibabaScbpAdReportGetTargetReportAPIRequest.go new file mode 100644 index 0000000000..eabd38eab8 --- /dev/null +++ b/model/scbp/AlibabaScbpAdReportGetTargetReportAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定向报告 API请求 +alibaba.scbp.ad.report.get.target.report + +定向报告 +*/ +type AlibabaScbpAdReportGetTargetReportAPIRequest struct { + model.Params + // 请求参数 + _targetReportOperation *TargetReportOperationDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdReportGetTargetReportAPIRequest对象 +func NewAlibabaScbpAdReportGetTargetReportRequest() *AlibabaScbpAdReportGetTargetReportAPIRequest{ + return &AlibabaScbpAdReportGetTargetReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdReportGetTargetReportAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.report.get.target.report" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdReportGetTargetReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TargetReportOperation Setter +// 请求参数 +func (r *AlibabaScbpAdReportGetTargetReportAPIRequest) SetTargetReportOperation(_targetReportOperation *TargetReportOperationDto) error { + r._targetReportOperation = _targetReportOperation + r.Set("target_report_operation", _targetReportOperation) + return nil +} + +// TargetReportOperation Getter +func (r AlibabaScbpAdReportGetTargetReportAPIRequest) GetTargetReportOperation() *TargetReportOperationDto { + return r._targetReportOperation +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdReportGetTargetReportAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdReportGetTargetReportAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdReportGetTargetReportAPIResponse.go b/model/scbp/AlibabaScbpAdReportGetTargetReportAPIResponse.go new file mode 100644 index 0000000000..7dad479945 --- /dev/null +++ b/model/scbp/AlibabaScbpAdReportGetTargetReportAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定向报告 API返回值 +alibaba.scbp.ad.report.get.target.report + +定向报告 +*/ +type AlibabaScbpAdReportGetTargetReportAPIResponse struct { + model.CommonResponse + AlibabaScbpAdReportGetTargetReportAPIResponseModel +} + +// 定向报告 成功返回结果 +type AlibabaScbpAdReportGetTargetReportAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_report_get_target_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据 + Result *TargetReportDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdReportGetTargetReportResponse.go b/model/scbp/AlibabaScbpAdReportGetTargetReportResponse.go deleted file mode 100644 index 09949dd7f8..0000000000 --- a/model/scbp/AlibabaScbpAdReportGetTargetReportResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定向报告 API返回值 -alibaba.scbp.ad.report.get.target.report - -定向报告 -*/ -type AlibabaScbpAdReportGetTargetReportAPIResponse struct { - model.CommonResponse - AlibabaScbpAdReportGetTargetReportResponse -} - -// 定向报告 成功返回结果 -type AlibabaScbpAdReportGetTargetReportResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_report_get_target_report_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据 - Result *TargetReportDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdReportQueryKeywordEffectAPIRequest.go b/model/scbp/AlibabaScbpAdReportQueryKeywordEffectAPIRequest.go new file mode 100644 index 0000000000..2a76b47cdd --- /dev/null +++ b/model/scbp/AlibabaScbpAdReportQueryKeywordEffectAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词报告 API请求 +alibaba.scbp.ad.report.query.keyword.effect + +关键词报告 +*/ +type AlibabaScbpAdReportQueryKeywordEffectAPIRequest struct { + model.Params + // 请求参数 + _keywordReportOperation *KeywordReportOperationDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdReportQueryKeywordEffectAPIRequest对象 +func NewAlibabaScbpAdReportQueryKeywordEffectRequest() *AlibabaScbpAdReportQueryKeywordEffectAPIRequest{ + return &AlibabaScbpAdReportQueryKeywordEffectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdReportQueryKeywordEffectAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.report.query.keyword.effect" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdReportQueryKeywordEffectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// KeywordReportOperation Setter +// 请求参数 +func (r *AlibabaScbpAdReportQueryKeywordEffectAPIRequest) SetKeywordReportOperation(_keywordReportOperation *KeywordReportOperationDto) error { + r._keywordReportOperation = _keywordReportOperation + r.Set("keyword_report_operation", _keywordReportOperation) + return nil +} + +// KeywordReportOperation Getter +func (r AlibabaScbpAdReportQueryKeywordEffectAPIRequest) GetKeywordReportOperation() *KeywordReportOperationDto { + return r._keywordReportOperation +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdReportQueryKeywordEffectAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdReportQueryKeywordEffectAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdReportQueryKeywordEffectAPIResponse.go b/model/scbp/AlibabaScbpAdReportQueryKeywordEffectAPIResponse.go new file mode 100644 index 0000000000..55032fdf63 --- /dev/null +++ b/model/scbp/AlibabaScbpAdReportQueryKeywordEffectAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词报告 API返回值 +alibaba.scbp.ad.report.query.keyword.effect + +关键词报告 +*/ +type AlibabaScbpAdReportQueryKeywordEffectAPIResponse struct { + model.CommonResponse + AlibabaScbpAdReportQueryKeywordEffectAPIResponseModel +} + +// 关键词报告 成功返回结果 +type AlibabaScbpAdReportQueryKeywordEffectAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_report_query_keyword_effect_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据 + Result *KeywordReportDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdReportQueryKeywordEffectResponse.go b/model/scbp/AlibabaScbpAdReportQueryKeywordEffectResponse.go deleted file mode 100644 index 7f1b9d52af..0000000000 --- a/model/scbp/AlibabaScbpAdReportQueryKeywordEffectResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -关键词报告 API返回值 -alibaba.scbp.ad.report.query.keyword.effect - -关键词报告 -*/ -type AlibabaScbpAdReportQueryKeywordEffectAPIResponse struct { - model.CommonResponse - AlibabaScbpAdReportQueryKeywordEffectResponse -} - -// 关键词报告 成功返回结果 -type AlibabaScbpAdReportQueryKeywordEffectResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_report_query_keyword_effect_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据 - Result *KeywordReportDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdReportQuerySingleKeywordEffectAPIRequest.go b/model/scbp/AlibabaScbpAdReportQuerySingleKeywordEffectAPIRequest.go new file mode 100644 index 0000000000..51fbbd074a --- /dev/null +++ b/model/scbp/AlibabaScbpAdReportQuerySingleKeywordEffectAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单个关键词报告 API请求 +alibaba.scbp.ad.report.query.single.keyword.effect + +单个关键词报告 +*/ +type AlibabaScbpAdReportQuerySingleKeywordEffectAPIRequest struct { + model.Params + // 返回详情 + _keywordReportOperation *KeywordReportOperationDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdReportQuerySingleKeywordEffectAPIRequest对象 +func NewAlibabaScbpAdReportQuerySingleKeywordEffectRequest() *AlibabaScbpAdReportQuerySingleKeywordEffectAPIRequest{ + return &AlibabaScbpAdReportQuerySingleKeywordEffectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdReportQuerySingleKeywordEffectAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.report.query.single.keyword.effect" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdReportQuerySingleKeywordEffectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// KeywordReportOperation Setter +// 返回详情 +func (r *AlibabaScbpAdReportQuerySingleKeywordEffectAPIRequest) SetKeywordReportOperation(_keywordReportOperation *KeywordReportOperationDto) error { + r._keywordReportOperation = _keywordReportOperation + r.Set("keyword_report_operation", _keywordReportOperation) + return nil +} + +// KeywordReportOperation Getter +func (r AlibabaScbpAdReportQuerySingleKeywordEffectAPIRequest) GetKeywordReportOperation() *KeywordReportOperationDto { + return r._keywordReportOperation +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdReportQuerySingleKeywordEffectAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdReportQuerySingleKeywordEffectAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdReportQuerySingleKeywordEffectAPIResponse.go b/model/scbp/AlibabaScbpAdReportQuerySingleKeywordEffectAPIResponse.go new file mode 100644 index 0000000000..e1b268380a --- /dev/null +++ b/model/scbp/AlibabaScbpAdReportQuerySingleKeywordEffectAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单个关键词报告 API返回值 +alibaba.scbp.ad.report.query.single.keyword.effect + +单个关键词报告 +*/ +type AlibabaScbpAdReportQuerySingleKeywordEffectAPIResponse struct { + model.CommonResponse + AlibabaScbpAdReportQuerySingleKeywordEffectAPIResponseModel +} + +// 单个关键词报告 成功返回结果 +type AlibabaScbpAdReportQuerySingleKeywordEffectAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_report_query_single_keyword_effect_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回参数 + Result *KeywordReportDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdReportQuerySingleKeywordEffectResponse.go b/model/scbp/AlibabaScbpAdReportQuerySingleKeywordEffectResponse.go deleted file mode 100644 index 70d22f8730..0000000000 --- a/model/scbp/AlibabaScbpAdReportQuerySingleKeywordEffectResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单个关键词报告 API返回值 -alibaba.scbp.ad.report.query.single.keyword.effect - -单个关键词报告 -*/ -type AlibabaScbpAdReportQuerySingleKeywordEffectAPIResponse struct { - model.CommonResponse - AlibabaScbpAdReportQuerySingleKeywordEffectResponse -} - -// 单个关键词报告 成功返回结果 -type AlibabaScbpAdReportQuerySingleKeywordEffectResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_report_query_single_keyword_effect_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回参数 - Result *KeywordReportDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdTargetTagEstimateUvAPIRequest.go b/model/scbp/AlibabaScbpAdTargetTagEstimateUvAPIRequest.go new file mode 100644 index 0000000000..4380db5aab --- /dev/null +++ b/model/scbp/AlibabaScbpAdTargetTagEstimateUvAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +标签人群预估 API请求 +alibaba.scbp.ad.target.tag.estimate.uv + +标签人群预估 +*/ +type AlibabaScbpAdTargetTagEstimateUvAPIRequest struct { + model.Params + // 请求参数 + _tagEstimateOperation *TagEstimateOperationDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdTargetTagEstimateUvAPIRequest对象 +func NewAlibabaScbpAdTargetTagEstimateUvRequest() *AlibabaScbpAdTargetTagEstimateUvAPIRequest{ + return &AlibabaScbpAdTargetTagEstimateUvAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdTargetTagEstimateUvAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.target.tag.estimate.uv" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdTargetTagEstimateUvAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TagEstimateOperation Setter +// 请求参数 +func (r *AlibabaScbpAdTargetTagEstimateUvAPIRequest) SetTagEstimateOperation(_tagEstimateOperation *TagEstimateOperationDto) error { + r._tagEstimateOperation = _tagEstimateOperation + r.Set("tag_estimate_operation", _tagEstimateOperation) + return nil +} + +// TagEstimateOperation Getter +func (r AlibabaScbpAdTargetTagEstimateUvAPIRequest) GetTagEstimateOperation() *TagEstimateOperationDto { + return r._tagEstimateOperation +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdTargetTagEstimateUvAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdTargetTagEstimateUvAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdTargetTagEstimateUvAPIResponse.go b/model/scbp/AlibabaScbpAdTargetTagEstimateUvAPIResponse.go new file mode 100644 index 0000000000..761c303962 --- /dev/null +++ b/model/scbp/AlibabaScbpAdTargetTagEstimateUvAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +标签人群预估 API返回值 +alibaba.scbp.ad.target.tag.estimate.uv + +标签人群预估 +*/ +type AlibabaScbpAdTargetTagEstimateUvAPIResponse struct { + model.CommonResponse + AlibabaScbpAdTargetTagEstimateUvAPIResponseModel +} + +// 标签人群预估 成功返回结果 +type AlibabaScbpAdTargetTagEstimateUvAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_target_tag_estimate_uv_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据:key:optionValue, value: 人群id + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdTargetTagEstimateUvResponse.go b/model/scbp/AlibabaScbpAdTargetTagEstimateUvResponse.go deleted file mode 100644 index a03020663f..0000000000 --- a/model/scbp/AlibabaScbpAdTargetTagEstimateUvResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -标签人群预估 API返回值 -alibaba.scbp.ad.target.tag.estimate.uv - -标签人群预估 -*/ -type AlibabaScbpAdTargetTagEstimateUvAPIResponse struct { - model.CommonResponse - AlibabaScbpAdTargetTagEstimateUvResponse -} - -// 标签人群预估 成功返回结果 -type AlibabaScbpAdTargetTagEstimateUvResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_target_tag_estimate_uv_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据:key:optionValue, value: 人群id - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdTargetTagFindCampaignTargetTagAPIRequest.go b/model/scbp/AlibabaScbpAdTargetTagFindCampaignTargetTagAPIRequest.go new file mode 100644 index 0000000000..3ea0d8535c --- /dev/null +++ b/model/scbp/AlibabaScbpAdTargetTagFindCampaignTargetTagAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询标签数据 API请求 +alibaba.scbp.ad.target.tag.find.campaign.target.tag + +查询标签数据 +*/ +type AlibabaScbpAdTargetTagFindCampaignTargetTagAPIRequest struct { + model.Params + // 计划id + _campaignId int64 + // 请求参数 + _targetTagOperation *TargetTagOperationDto + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdTargetTagFindCampaignTargetTagAPIRequest对象 +func NewAlibabaScbpAdTargetTagFindCampaignTargetTagRequest() *AlibabaScbpAdTargetTagFindCampaignTargetTagAPIRequest{ + return &AlibabaScbpAdTargetTagFindCampaignTargetTagAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdTargetTagFindCampaignTargetTagAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.target.tag.find.campaign.target.tag" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdTargetTagFindCampaignTargetTagAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *AlibabaScbpAdTargetTagFindCampaignTargetTagAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpAdTargetTagFindCampaignTargetTagAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// TargetTagOperation Setter +// 请求参数 +func (r *AlibabaScbpAdTargetTagFindCampaignTargetTagAPIRequest) SetTargetTagOperation(_targetTagOperation *TargetTagOperationDto) error { + r._targetTagOperation = _targetTagOperation + r.Set("target_tag_operation", _targetTagOperation) + return nil +} + +// TargetTagOperation Getter +func (r AlibabaScbpAdTargetTagFindCampaignTargetTagAPIRequest) GetTargetTagOperation() *TargetTagOperationDto { + return r._targetTagOperation +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdTargetTagFindCampaignTargetTagAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdTargetTagFindCampaignTargetTagAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdTargetTagFindCampaignTargetTagAPIResponse.go b/model/scbp/AlibabaScbpAdTargetTagFindCampaignTargetTagAPIResponse.go new file mode 100644 index 0000000000..93955b2cff --- /dev/null +++ b/model/scbp/AlibabaScbpAdTargetTagFindCampaignTargetTagAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询标签数据 API返回值 +alibaba.scbp.ad.target.tag.find.campaign.target.tag + +查询标签数据 +*/ +type AlibabaScbpAdTargetTagFindCampaignTargetTagAPIResponse struct { + model.CommonResponse + AlibabaScbpAdTargetTagFindCampaignTargetTagAPIResponseModel +} + +// 查询标签数据 成功返回结果 +type AlibabaScbpAdTargetTagFindCampaignTargetTagAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_target_tag_find_campaign_target_tag_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回实体 + ResultList []AdsTargetingTagDto `json:"result_list,omitempty" xml:"result_list>ads_targeting_tag_dto,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdTargetTagFindCampaignTargetTagResponse.go b/model/scbp/AlibabaScbpAdTargetTagFindCampaignTargetTagResponse.go deleted file mode 100644 index 95fb7f640b..0000000000 --- a/model/scbp/AlibabaScbpAdTargetTagFindCampaignTargetTagResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询标签数据 API返回值 -alibaba.scbp.ad.target.tag.find.campaign.target.tag - -查询标签数据 -*/ -type AlibabaScbpAdTargetTagFindCampaignTargetTagAPIResponse struct { - model.CommonResponse - AlibabaScbpAdTargetTagFindCampaignTargetTagResponse -} - -// 查询标签数据 成功返回结果 -type AlibabaScbpAdTargetTagFindCampaignTargetTagResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_target_tag_find_campaign_target_tag_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回实体 - ResultList []AdsTargetingTagDto `json:"result_list,omitempty" xml:"result_list>ads_targeting_tag_dto,omitempty"` -} diff --git a/model/scbp/AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIRequest.go b/model/scbp/AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIRequest.go new file mode 100644 index 0000000000..79bfe59148 --- /dev/null +++ b/model/scbp/AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +标签增删改 API请求 +alibaba.scbp.ad.target.tag.merge.campaign.target.tag + +标签增删改 +*/ +type AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIRequest struct { + model.Params + // 计划id + _campaignId int64 + // 标签数据,json格式。 最外层key:人群标签crowd/地域标签region、priceMode,第二层key: 增add、删del、改mod,第三层key:optionValue、bidRate、tagId eg: 删除:{"crowd":{"del":[{"tagId":3595769030}]}} 修改:{"crowd":{"mod":[{"optionValue":"high_potential_order_user","bidRate":"151"}]}} 增加:{"crowd":{"add":[{"optionValue":"user_area_CA","bidRate":"133"}]}} + _data string + // 用户信息 + _topContext *TopContextDto +} + +// 初始化AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIRequest对象 +func NewAlibabaScbpAdTargetTagMergeCampaignTargetTagRequest() *AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIRequest{ + return &AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.ad.target.tag.merge.campaign.target.tag" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 计划id +func (r *AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// Data Setter +// 标签数据,json格式。 最外层key:人群标签crowd/地域标签region、priceMode,第二层key: 增add、删del、改mod,第三层key:optionValue、bidRate、tagId eg: 删除:{"crowd":{"del":[{"tagId":3595769030}]}} 修改:{"crowd":{"mod":[{"optionValue":"high_potential_order_user","bidRate":"151"}]}} 增加:{"crowd":{"add":[{"optionValue":"user_area_CA","bidRate":"133"}]}} +func (r *AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIRequest) SetData(_data string) error { + r._data = _data + r.Set("data", _data) + return nil +} + +// Data Getter +func (r AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIRequest) GetData() string { + return r._data +} +// TopContext Setter +// 用户信息 +func (r *AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIRequest) SetTopContext(_topContext *TopContextDto) error { + r._topContext = _topContext + r.Set("top_context", _topContext) + return nil +} + +// TopContext Getter +func (r AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIRequest) GetTopContext() *TopContextDto { + return r._topContext +} diff --git a/model/scbp/AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIResponse.go b/model/scbp/AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIResponse.go new file mode 100644 index 0000000000..36783d1ead --- /dev/null +++ b/model/scbp/AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +标签增删改 API返回值 +alibaba.scbp.ad.target.tag.merge.campaign.target.tag + +标签增删改 +*/ +type AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIResponse struct { + model.CommonResponse + AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIResponseModel +} + +// 标签增删改 成功返回结果 +type AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_ad_target_tag_merge_campaign_target_tag_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpAdTargetTagMergeCampaignTargetTagResponse.go b/model/scbp/AlibabaScbpAdTargetTagMergeCampaignTargetTagResponse.go deleted file mode 100644 index b4085487e5..0000000000 --- a/model/scbp/AlibabaScbpAdTargetTagMergeCampaignTargetTagResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -标签增删改 API返回值 -alibaba.scbp.ad.target.tag.merge.campaign.target.tag - -标签增删改 -*/ -type AlibabaScbpAdTargetTagMergeCampaignTargetTagAPIResponse struct { - model.CommonResponse - AlibabaScbpAdTargetTagMergeCampaignTargetTagResponse -} - -// 标签增删改 成功返回结果 -type AlibabaScbpAdTargetTagMergeCampaignTargetTagResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_ad_target_tag_merge_campaign_target_tag_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpEffectAccountDateGetAPIRequest.go b/model/scbp/AlibabaScbpEffectAccountDateGetAPIRequest.go new file mode 100644 index 0000000000..1c047acaec --- /dev/null +++ b/model/scbp/AlibabaScbpEffectAccountDateGetAPIRequest.go @@ -0,0 +1,38 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取最近报表生成时间 API请求 +alibaba.scbp.effect.account.date.get + +获取最近报表生成时间,格式为yyyy-MM-dd +*/ +type AlibabaScbpEffectAccountDateGetAPIRequest struct { + model.Params +} + +// 初始化AlibabaScbpEffectAccountDateGetAPIRequest对象 +func NewAlibabaScbpEffectAccountDateGetRequest() *AlibabaScbpEffectAccountDateGetAPIRequest{ + return &AlibabaScbpEffectAccountDateGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpEffectAccountDateGetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.effect.account.date.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpEffectAccountDateGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/scbp/AlibabaScbpEffectAccountDateGetAPIResponse.go b/model/scbp/AlibabaScbpEffectAccountDateGetAPIResponse.go new file mode 100644 index 0000000000..ea8955534f --- /dev/null +++ b/model/scbp/AlibabaScbpEffectAccountDateGetAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取最近报表生成时间 API返回值 +alibaba.scbp.effect.account.date.get + +获取最近报表生成时间,格式为yyyy-MM-dd +*/ +type AlibabaScbpEffectAccountDateGetAPIResponse struct { + model.CommonResponse + AlibabaScbpEffectAccountDateGetAPIResponseModel +} + +// 获取最近报表生成时间 成功返回结果 +type AlibabaScbpEffectAccountDateGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_effect_account_date_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最近生成报表的时间(US) + ReportDate string `json:"report_date,omitempty" xml:"report_date,omitempty"` +} diff --git a/model/scbp/AlibabaScbpEffectAccountDateGetResponse.go b/model/scbp/AlibabaScbpEffectAccountDateGetResponse.go deleted file mode 100644 index 0c9da2658a..0000000000 --- a/model/scbp/AlibabaScbpEffectAccountDateGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取最近报表生成时间 API返回值 -alibaba.scbp.effect.account.date.get - -获取最近报表生成时间,格式为yyyy-MM-dd -*/ -type AlibabaScbpEffectAccountDateGetAPIResponse struct { - model.CommonResponse - AlibabaScbpEffectAccountDateGetResponse -} - -// 获取最近报表生成时间 成功返回结果 -type AlibabaScbpEffectAccountDateGetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_effect_account_date_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最近生成报表的时间(US) - ReportDate string `json:"report_date,omitempty" xml:"report_date,omitempty"` -} diff --git a/model/scbp/AlibabaScbpEffectAccountListAPIRequest.go b/model/scbp/AlibabaScbpEffectAccountListAPIRequest.go new file mode 100644 index 0000000000..64e71d012f --- /dev/null +++ b/model/scbp/AlibabaScbpEffectAccountListAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +账户-报表 API请求 +alibaba.scbp.effect.account.list + +账户-报表,支持最近7天,最近30天,以及180天内时间区间。 +*/ +type AlibabaScbpEffectAccountListAPIRequest struct { + model.Params + // AccountQuery + _p4pAccountReportQuery *AccountQuery +} + +// 初始化AlibabaScbpEffectAccountListAPIRequest对象 +func NewAlibabaScbpEffectAccountListRequest() *AlibabaScbpEffectAccountListAPIRequest{ + return &AlibabaScbpEffectAccountListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpEffectAccountListAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.effect.account.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpEffectAccountListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// P4pAccountReportQuery Setter +// AccountQuery +func (r *AlibabaScbpEffectAccountListAPIRequest) SetP4pAccountReportQuery(_p4pAccountReportQuery *AccountQuery) error { + r._p4pAccountReportQuery = _p4pAccountReportQuery + r.Set("p4p_account_report_query", _p4pAccountReportQuery) + return nil +} + +// P4pAccountReportQuery Getter +func (r AlibabaScbpEffectAccountListAPIRequest) GetP4pAccountReportQuery() *AccountQuery { + return r._p4pAccountReportQuery +} diff --git a/model/scbp/AlibabaScbpEffectAccountListAPIResponse.go b/model/scbp/AlibabaScbpEffectAccountListAPIResponse.go new file mode 100644 index 0000000000..12f6352aeb --- /dev/null +++ b/model/scbp/AlibabaScbpEffectAccountListAPIResponse.go @@ -0,0 +1,31 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +账户-报表 API返回值 +alibaba.scbp.effect.account.list + +账户-报表,支持最近7天,最近30天,以及180天内时间区间。 +*/ +type AlibabaScbpEffectAccountListAPIResponse struct { + model.CommonResponse + AlibabaScbpEffectAccountListAPIResponseModel +} + +// 账户-报表 成功返回结果 +type AlibabaScbpEffectAccountListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_effect_account_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 账户效果数据列表 + AccountReportList []AccountEffectDto `json:"account_report_list,omitempty" xml:"account_report_list>account_effect_dto,omitempty"` + // 总个数 + TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` + // 总页数 + TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` +} diff --git a/model/scbp/AlibabaScbpEffectAccountListResponse.go b/model/scbp/AlibabaScbpEffectAccountListResponse.go deleted file mode 100644 index 7d6fd7a15c..0000000000 --- a/model/scbp/AlibabaScbpEffectAccountListResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -账户-报表 API返回值 -alibaba.scbp.effect.account.list - -账户-报表,支持最近7天,最近30天,以及180天内时间区间。 -*/ -type AlibabaScbpEffectAccountListAPIResponse struct { - model.CommonResponse - AlibabaScbpEffectAccountListResponse -} - -// 账户-报表 成功返回结果 -type AlibabaScbpEffectAccountListResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_effect_account_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 账户效果数据列表 - AccountReportList []AccountEffectDto `json:"account_report_list,omitempty" xml:"account_report_list>account_effect_dto,omitempty"` - // 总个数 - TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` - // 总页数 - TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` -} diff --git a/model/scbp/AlibabaScbpEffectKeywordListAPIRequest.go b/model/scbp/AlibabaScbpEffectKeywordListAPIRequest.go new file mode 100644 index 0000000000..27ee43b7c8 --- /dev/null +++ b/model/scbp/AlibabaScbpEffectKeywordListAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词报表 API请求 +alibaba.scbp.effect.keyword.list + +关键词报表 +*/ +type AlibabaScbpEffectKeywordListAPIRequest struct { + model.Params + // IKeywordQuery + _p4pKeywordReportQuery *IKeywordQuery +} + +// 初始化AlibabaScbpEffectKeywordListAPIRequest对象 +func NewAlibabaScbpEffectKeywordListRequest() *AlibabaScbpEffectKeywordListAPIRequest{ + return &AlibabaScbpEffectKeywordListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpEffectKeywordListAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.effect.keyword.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpEffectKeywordListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// P4pKeywordReportQuery Setter +// IKeywordQuery +func (r *AlibabaScbpEffectKeywordListAPIRequest) SetP4pKeywordReportQuery(_p4pKeywordReportQuery *IKeywordQuery) error { + r._p4pKeywordReportQuery = _p4pKeywordReportQuery + r.Set("p4p_keyword_report_query", _p4pKeywordReportQuery) + return nil +} + +// P4pKeywordReportQuery Getter +func (r AlibabaScbpEffectKeywordListAPIRequest) GetP4pKeywordReportQuery() *IKeywordQuery { + return r._p4pKeywordReportQuery +} diff --git a/model/scbp/AlibabaScbpEffectKeywordListAPIResponse.go b/model/scbp/AlibabaScbpEffectKeywordListAPIResponse.go new file mode 100644 index 0000000000..c4420c6ae8 --- /dev/null +++ b/model/scbp/AlibabaScbpEffectKeywordListAPIResponse.go @@ -0,0 +1,31 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词报表 API返回值 +alibaba.scbp.effect.keyword.list + +关键词报表 +*/ +type AlibabaScbpEffectKeywordListAPIResponse struct { + model.CommonResponse + AlibabaScbpEffectKeywordListAPIResponseModel +} + +// 关键词报表 成功返回结果 +type AlibabaScbpEffectKeywordListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_effect_keyword_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 关键词效果数据列表 + KeywordReportList []AdKeywordEffectDto `json:"keyword_report_list,omitempty" xml:"keyword_report_list>ad_keyword_effect_dto,omitempty"` + // 总个数 + TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` + // 总页数 + TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` +} diff --git a/model/scbp/AlibabaScbpEffectKeywordListResponse.go b/model/scbp/AlibabaScbpEffectKeywordListResponse.go deleted file mode 100644 index 103f083d54..0000000000 --- a/model/scbp/AlibabaScbpEffectKeywordListResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -关键词报表 API返回值 -alibaba.scbp.effect.keyword.list - -关键词报表 -*/ -type AlibabaScbpEffectKeywordListAPIResponse struct { - model.CommonResponse - AlibabaScbpEffectKeywordListResponse -} - -// 关键词报表 成功返回结果 -type AlibabaScbpEffectKeywordListResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_effect_keyword_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 关键词效果数据列表 - KeywordReportList []AdKeywordEffectDto `json:"keyword_report_list,omitempty" xml:"keyword_report_list>ad_keyword_effect_dto,omitempty"` - // 总个数 - TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` - // 总页数 - TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` -} diff --git a/model/scbp/AlibabaScbpEffectKeywordSingleGetAPIRequest.go b/model/scbp/AlibabaScbpEffectKeywordSingleGetAPIRequest.go new file mode 100644 index 0000000000..e55a7ba83a --- /dev/null +++ b/model/scbp/AlibabaScbpEffectKeywordSingleGetAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单个关键词效果报表 API请求 +alibaba.scbp.effect.keyword.single.get + +单个关键词效果报表 +*/ +type AlibabaScbpEffectKeywordSingleGetAPIRequest struct { + model.Params + // IKeywordQuery + _p4pKeywordReportQuery *IKeywordQuery +} + +// 初始化AlibabaScbpEffectKeywordSingleGetAPIRequest对象 +func NewAlibabaScbpEffectKeywordSingleGetRequest() *AlibabaScbpEffectKeywordSingleGetAPIRequest{ + return &AlibabaScbpEffectKeywordSingleGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpEffectKeywordSingleGetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.effect.keyword.single.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpEffectKeywordSingleGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// P4pKeywordReportQuery Setter +// IKeywordQuery +func (r *AlibabaScbpEffectKeywordSingleGetAPIRequest) SetP4pKeywordReportQuery(_p4pKeywordReportQuery *IKeywordQuery) error { + r._p4pKeywordReportQuery = _p4pKeywordReportQuery + r.Set("p4p_keyword_report_query", _p4pKeywordReportQuery) + return nil +} + +// P4pKeywordReportQuery Getter +func (r AlibabaScbpEffectKeywordSingleGetAPIRequest) GetP4pKeywordReportQuery() *IKeywordQuery { + return r._p4pKeywordReportQuery +} diff --git a/model/scbp/AlibabaScbpEffectKeywordSingleGetAPIResponse.go b/model/scbp/AlibabaScbpEffectKeywordSingleGetAPIResponse.go new file mode 100644 index 0000000000..ff1e854e61 --- /dev/null +++ b/model/scbp/AlibabaScbpEffectKeywordSingleGetAPIResponse.go @@ -0,0 +1,31 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单个关键词效果报表 API返回值 +alibaba.scbp.effect.keyword.single.get + +单个关键词效果报表 +*/ +type AlibabaScbpEffectKeywordSingleGetAPIResponse struct { + model.CommonResponse + AlibabaScbpEffectKeywordSingleGetAPIResponseModel +} + +// 单个关键词效果报表 成功返回结果 +type AlibabaScbpEffectKeywordSingleGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_effect_keyword_single_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 单个关键词报表 + KeywordEffectList []SingleAdKeywordEffectDto `json:"keyword_effect_list,omitempty" xml:"keyword_effect_list>single_ad_keyword_effect_dto,omitempty"` + // 总个数 + TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` + // 总页数 + TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` +} diff --git a/model/scbp/AlibabaScbpEffectKeywordSingleGetResponse.go b/model/scbp/AlibabaScbpEffectKeywordSingleGetResponse.go deleted file mode 100644 index 62eef360e1..0000000000 --- a/model/scbp/AlibabaScbpEffectKeywordSingleGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单个关键词效果报表 API返回值 -alibaba.scbp.effect.keyword.single.get - -单个关键词效果报表 -*/ -type AlibabaScbpEffectKeywordSingleGetAPIResponse struct { - model.CommonResponse - AlibabaScbpEffectKeywordSingleGetResponse -} - -// 单个关键词效果报表 成功返回结果 -type AlibabaScbpEffectKeywordSingleGetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_effect_keyword_single_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 单个关键词报表 - KeywordEffectList []SingleAdKeywordEffectDto `json:"keyword_effect_list,omitempty" xml:"keyword_effect_list>single_ad_keyword_effect_dto,omitempty"` - // 总个数 - TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` - // 总页数 - TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` -} diff --git a/model/scbp/AlibabaScbpEffectProductReportAPIRequest.go b/model/scbp/AlibabaScbpEffectProductReportAPIRequest.go new file mode 100644 index 0000000000..cadf0bf376 --- /dev/null +++ b/model/scbp/AlibabaScbpEffectProductReportAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +所有产品报表 API请求 +alibaba.scbp.effect.product.report + +所有产品报表 +*/ +type AlibabaScbpEffectProductReportAPIRequest struct { + model.Params + // ProductQuery + _p4pProductReportQuery *ProductQuery +} + +// 初始化AlibabaScbpEffectProductReportAPIRequest对象 +func NewAlibabaScbpEffectProductReportRequest() *AlibabaScbpEffectProductReportAPIRequest{ + return &AlibabaScbpEffectProductReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpEffectProductReportAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.effect.product.report" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpEffectProductReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// P4pProductReportQuery Setter +// ProductQuery +func (r *AlibabaScbpEffectProductReportAPIRequest) SetP4pProductReportQuery(_p4pProductReportQuery *ProductQuery) error { + r._p4pProductReportQuery = _p4pProductReportQuery + r.Set("p4p_product_report_query", _p4pProductReportQuery) + return nil +} + +// P4pProductReportQuery Getter +func (r AlibabaScbpEffectProductReportAPIRequest) GetP4pProductReportQuery() *ProductQuery { + return r._p4pProductReportQuery +} diff --git a/model/scbp/AlibabaScbpEffectProductReportAPIResponse.go b/model/scbp/AlibabaScbpEffectProductReportAPIResponse.go new file mode 100644 index 0000000000..33deb70729 --- /dev/null +++ b/model/scbp/AlibabaScbpEffectProductReportAPIResponse.go @@ -0,0 +1,31 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +所有产品报表 API返回值 +alibaba.scbp.effect.product.report + +所有产品报表 +*/ +type AlibabaScbpEffectProductReportAPIResponse struct { + model.CommonResponse + AlibabaScbpEffectProductReportAPIResponseModel +} + +// 所有产品报表 成功返回结果 +type AlibabaScbpEffectProductReportAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_effect_product_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 总个数 + TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` + // 总页数 + TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` + // 产品效果数据列表 + ProductEffectList []ProductEffectDto `json:"product_effect_list,omitempty" xml:"product_effect_list>product_effect_dto,omitempty"` +} diff --git a/model/scbp/AlibabaScbpEffectProductReportResponse.go b/model/scbp/AlibabaScbpEffectProductReportResponse.go deleted file mode 100644 index bd2a84680f..0000000000 --- a/model/scbp/AlibabaScbpEffectProductReportResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -所有产品报表 API返回值 -alibaba.scbp.effect.product.report - -所有产品报表 -*/ -type AlibabaScbpEffectProductReportAPIResponse struct { - model.CommonResponse - AlibabaScbpEffectProductReportResponse -} - -// 所有产品报表 成功返回结果 -type AlibabaScbpEffectProductReportResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_effect_product_report_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 总个数 - TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` - // 总页数 - TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` - // 产品效果数据列表 - ProductEffectList []ProductEffectDto `json:"product_effect_list,omitempty" xml:"product_effect_list>product_effect_dto,omitempty"` -} diff --git a/model/scbp/AlibabaScbpEffectProductSingleGetAPIRequest.go b/model/scbp/AlibabaScbpEffectProductSingleGetAPIRequest.go new file mode 100644 index 0000000000..49b05c25be --- /dev/null +++ b/model/scbp/AlibabaScbpEffectProductSingleGetAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单个产品的报表 API请求 +alibaba.scbp.effect.product.single.get + +单个产品的报表 +*/ +type AlibabaScbpEffectProductSingleGetAPIRequest struct { + model.Params + // ProductQuery + _p4pProductReportQuery *ProductQuery +} + +// 初始化AlibabaScbpEffectProductSingleGetAPIRequest对象 +func NewAlibabaScbpEffectProductSingleGetRequest() *AlibabaScbpEffectProductSingleGetAPIRequest{ + return &AlibabaScbpEffectProductSingleGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpEffectProductSingleGetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.effect.product.single.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpEffectProductSingleGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// P4pProductReportQuery Setter +// ProductQuery +func (r *AlibabaScbpEffectProductSingleGetAPIRequest) SetP4pProductReportQuery(_p4pProductReportQuery *ProductQuery) error { + r._p4pProductReportQuery = _p4pProductReportQuery + r.Set("p4p_product_report_query", _p4pProductReportQuery) + return nil +} + +// P4pProductReportQuery Getter +func (r AlibabaScbpEffectProductSingleGetAPIRequest) GetP4pProductReportQuery() *ProductQuery { + return r._p4pProductReportQuery +} diff --git a/model/scbp/AlibabaScbpEffectProductSingleGetAPIResponse.go b/model/scbp/AlibabaScbpEffectProductSingleGetAPIResponse.go new file mode 100644 index 0000000000..372121c52b --- /dev/null +++ b/model/scbp/AlibabaScbpEffectProductSingleGetAPIResponse.go @@ -0,0 +1,31 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单个产品的报表 API返回值 +alibaba.scbp.effect.product.single.get + +单个产品的报表 +*/ +type AlibabaScbpEffectProductSingleGetAPIResponse struct { + model.CommonResponse + AlibabaScbpEffectProductSingleGetAPIResponseModel +} + +// 单个产品的报表 成功返回结果 +type AlibabaScbpEffectProductSingleGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_effect_product_single_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 单个产品的效果数据列表 + SProductEffectList []SingleProductEffectDto `json:"s_product_effect_list,omitempty" xml:"s_product_effect_list>single_product_effect_dto,omitempty"` + // 总个数 + TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` + // 总页数 + TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` +} diff --git a/model/scbp/AlibabaScbpEffectProductSingleGetResponse.go b/model/scbp/AlibabaScbpEffectProductSingleGetResponse.go deleted file mode 100644 index e188dee14e..0000000000 --- a/model/scbp/AlibabaScbpEffectProductSingleGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单个产品的报表 API返回值 -alibaba.scbp.effect.product.single.get - -单个产品的报表 -*/ -type AlibabaScbpEffectProductSingleGetAPIResponse struct { - model.CommonResponse - AlibabaScbpEffectProductSingleGetResponse -} - -// 单个产品的报表 成功返回结果 -type AlibabaScbpEffectProductSingleGetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_effect_product_single_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 单个产品的效果数据列表 - SProductEffectList []SingleProductEffectDto `json:"s_product_effect_list,omitempty" xml:"s_product_effect_list>single_product_effect_dto,omitempty"` - // 总个数 - TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` - // 总页数 - TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` -} diff --git a/model/scbp/AlibabaScbpKeywordMatchedProductsGetAPIRequest.go b/model/scbp/AlibabaScbpKeywordMatchedProductsGetAPIRequest.go new file mode 100644 index 0000000000..cfc32ba6de --- /dev/null +++ b/model/scbp/AlibabaScbpKeywordMatchedProductsGetAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询和词匹配的推广产品 API请求 +alibaba.scbp.keyword.matched.products.get + +查询和词匹配的推广产品 +*/ +type AlibabaScbpKeywordMatchedProductsGetAPIRequest struct { + model.Params + // 已购买的关键词 + _adKeyword string +} + +// 初始化AlibabaScbpKeywordMatchedProductsGetAPIRequest对象 +func NewAlibabaScbpKeywordMatchedProductsGetRequest() *AlibabaScbpKeywordMatchedProductsGetAPIRequest{ + return &AlibabaScbpKeywordMatchedProductsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpKeywordMatchedProductsGetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.keyword.matched.products.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpKeywordMatchedProductsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AdKeyword Setter +// 已购买的关键词 +func (r *AlibabaScbpKeywordMatchedProductsGetAPIRequest) SetAdKeyword(_adKeyword string) error { + r._adKeyword = _adKeyword + r.Set("ad_keyword", _adKeyword) + return nil +} + +// AdKeyword Getter +func (r AlibabaScbpKeywordMatchedProductsGetAPIRequest) GetAdKeyword() string { + return r._adKeyword +} diff --git a/model/scbp/AlibabaScbpKeywordMatchedProductsGetAPIResponse.go b/model/scbp/AlibabaScbpKeywordMatchedProductsGetAPIResponse.go new file mode 100644 index 0000000000..00abb8a158 --- /dev/null +++ b/model/scbp/AlibabaScbpKeywordMatchedProductsGetAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询和词匹配的推广产品 API返回值 +alibaba.scbp.keyword.matched.products.get + +查询和词匹配的推广产品 +*/ +type AlibabaScbpKeywordMatchedProductsGetAPIResponse struct { + model.CommonResponse + AlibabaScbpKeywordMatchedProductsGetAPIResponseModel +} + +// 查询和词匹配的推广产品 成功返回结果 +type AlibabaScbpKeywordMatchedProductsGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_keyword_matched_products_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 匹配的产品列表 + MachedProductList []TopMatchedProductDto `json:"mached_product_list,omitempty" xml:"mached_product_list>top_matched_product_dto,omitempty"` +} diff --git a/model/scbp/AlibabaScbpKeywordMatchedProductsGetResponse.go b/model/scbp/AlibabaScbpKeywordMatchedProductsGetResponse.go deleted file mode 100644 index 4a63117fb6..0000000000 --- a/model/scbp/AlibabaScbpKeywordMatchedProductsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询和词匹配的推广产品 API返回值 -alibaba.scbp.keyword.matched.products.get - -查询和词匹配的推广产品 -*/ -type AlibabaScbpKeywordMatchedProductsGetAPIResponse struct { - model.CommonResponse - AlibabaScbpKeywordMatchedProductsGetResponse -} - -// 查询和词匹配的推广产品 成功返回结果 -type AlibabaScbpKeywordMatchedProductsGetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_keyword_matched_products_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 匹配的产品列表 - MachedProductList []TopMatchedProductDto `json:"mached_product_list,omitempty" xml:"mached_product_list>top_matched_product_dto,omitempty"` -} diff --git a/model/scbp/AlibabaScbpProductGroupGetAPIRequest.go b/model/scbp/AlibabaScbpProductGroupGetAPIRequest.go new file mode 100644 index 0000000000..1d8cd7ce23 --- /dev/null +++ b/model/scbp/AlibabaScbpProductGroupGetAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询指定产品分组的下一层子分组 API请求 +alibaba.scbp.product.group.get + +查询指定产品分组的下一层子分组 +*/ +type AlibabaScbpProductGroupGetAPIRequest struct { + model.Params + // 产品分组标识,null表示查询第一层分组 + _groupId string +} + +// 初始化AlibabaScbpProductGroupGetAPIRequest对象 +func NewAlibabaScbpProductGroupGetRequest() *AlibabaScbpProductGroupGetAPIRequest{ + return &AlibabaScbpProductGroupGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpProductGroupGetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.product.group.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpProductGroupGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupId Setter +// 产品分组标识,null表示查询第一层分组 +func (r *AlibabaScbpProductGroupGetAPIRequest) SetGroupId(_groupId string) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r AlibabaScbpProductGroupGetAPIRequest) GetGroupId() string { + return r._groupId +} diff --git a/model/scbp/AlibabaScbpProductGroupGetAPIResponse.go b/model/scbp/AlibabaScbpProductGroupGetAPIResponse.go new file mode 100644 index 0000000000..7c974b199c --- /dev/null +++ b/model/scbp/AlibabaScbpProductGroupGetAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询指定产品分组的下一层子分组 API返回值 +alibaba.scbp.product.group.get + +查询指定产品分组的下一层子分组 +*/ +type AlibabaScbpProductGroupGetAPIResponse struct { + model.CommonResponse + AlibabaScbpProductGroupGetAPIResponseModel +} + +// 查询指定产品分组的下一层子分组 成功返回结果 +type AlibabaScbpProductGroupGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_product_group_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 下一层分组列表 + RoductGroupList []TopProductGroupDto `json:"roduct_group_list,omitempty" xml:"roduct_group_list>top_product_group_dto,omitempty"` +} diff --git a/model/scbp/AlibabaScbpProductGroupGetResponse.go b/model/scbp/AlibabaScbpProductGroupGetResponse.go deleted file mode 100644 index bfd2b468b9..0000000000 --- a/model/scbp/AlibabaScbpProductGroupGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询指定产品分组的下一层子分组 API返回值 -alibaba.scbp.product.group.get - -查询指定产品分组的下一层子分组 -*/ -type AlibabaScbpProductGroupGetAPIResponse struct { - model.CommonResponse - AlibabaScbpProductGroupGetResponse -} - -// 查询指定产品分组的下一层子分组 成功返回结果 -type AlibabaScbpProductGroupGetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_product_group_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 下一层分组列表 - RoductGroupList []TopProductGroupDto `json:"roduct_group_list,omitempty" xml:"roduct_group_list>top_product_group_dto,omitempty"` -} diff --git a/model/scbp/AlibabaScbpProductListAPIRequest.go b/model/scbp/AlibabaScbpProductListAPIRequest.go new file mode 100644 index 0000000000..06b3a82b6a --- /dev/null +++ b/model/scbp/AlibabaScbpProductListAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询P4P产品 API请求 +alibaba.scbp.product.list + +查询P4P产品 +*/ +type AlibabaScbpProductListAPIRequest struct { + model.Params + // 产品分组标识 + _groupId string + // 产品分页查询,每页个数,最大值20 + _perPageSize int64 + // 第几页 + _toPage int64 +} + +// 初始化AlibabaScbpProductListAPIRequest对象 +func NewAlibabaScbpProductListRequest() *AlibabaScbpProductListAPIRequest{ + return &AlibabaScbpProductListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpProductListAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.product.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpProductListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupId Setter +// 产品分组标识 +func (r *AlibabaScbpProductListAPIRequest) SetGroupId(_groupId string) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r AlibabaScbpProductListAPIRequest) GetGroupId() string { + return r._groupId +} +// PerPageSize Setter +// 产品分页查询,每页个数,最大值20 +func (r *AlibabaScbpProductListAPIRequest) SetPerPageSize(_perPageSize int64) error { + r._perPageSize = _perPageSize + r.Set("per_page_size", _perPageSize) + return nil +} + +// PerPageSize Getter +func (r AlibabaScbpProductListAPIRequest) GetPerPageSize() int64 { + return r._perPageSize +} +// ToPage Setter +// 第几页 +func (r *AlibabaScbpProductListAPIRequest) SetToPage(_toPage int64) error { + r._toPage = _toPage + r.Set("to_page", _toPage) + return nil +} + +// ToPage Getter +func (r AlibabaScbpProductListAPIRequest) GetToPage() int64 { + return r._toPage +} diff --git a/model/scbp/AlibabaScbpProductListAPIResponse.go b/model/scbp/AlibabaScbpProductListAPIResponse.go new file mode 100644 index 0000000000..222f67658e --- /dev/null +++ b/model/scbp/AlibabaScbpProductListAPIResponse.go @@ -0,0 +1,31 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询P4P产品 API返回值 +alibaba.scbp.product.list + +查询P4P产品 +*/ +type AlibabaScbpProductListAPIResponse struct { + model.CommonResponse + AlibabaScbpProductListAPIResponseModel +} + +// 查询P4P产品 成功返回结果 +type AlibabaScbpProductListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_product_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 产品列表 + ProductList []TopProductDto `json:"product_list,omitempty" xml:"product_list>top_product_dto,omitempty"` + // 总数 + TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` + // 总页数 + TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` +} diff --git a/model/scbp/AlibabaScbpProductListResponse.go b/model/scbp/AlibabaScbpProductListResponse.go deleted file mode 100644 index fed91d62e6..0000000000 --- a/model/scbp/AlibabaScbpProductListResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询P4P产品 API返回值 -alibaba.scbp.product.list - -查询P4P产品 -*/ -type AlibabaScbpProductListAPIResponse struct { - model.CommonResponse - AlibabaScbpProductListResponse -} - -// 查询P4P产品 成功返回结果 -type AlibabaScbpProductListResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_product_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 产品列表 - ProductList []TopProductDto `json:"product_list,omitempty" xml:"product_list>top_product_dto,omitempty"` - // 总数 - TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` - // 总页数 - TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` -} diff --git a/model/scbp/AlibabaScbpProductPreferentialUpdateAPIRequest.go b/model/scbp/AlibabaScbpProductPreferentialUpdateAPIRequest.go new file mode 100644 index 0000000000..310a52e449 --- /dev/null +++ b/model/scbp/AlibabaScbpProductPreferentialUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设置P4P产品优先推广状态 API请求 +alibaba.scbp.product.preferential.update + +设置P4P产品优先推广状态 +*/ +type AlibabaScbpProductPreferentialUpdateAPIRequest struct { + model.Params + // 关键词ID + _keywordId int64 + // 产品ID + _productId int64 + // Y:设置优推,N:取消优推 + _status string +} + +// 初始化AlibabaScbpProductPreferentialUpdateAPIRequest对象 +func NewAlibabaScbpProductPreferentialUpdateRequest() *AlibabaScbpProductPreferentialUpdateAPIRequest{ + return &AlibabaScbpProductPreferentialUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpProductPreferentialUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.product.preferential.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpProductPreferentialUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// KeywordId Setter +// 关键词ID +func (r *AlibabaScbpProductPreferentialUpdateAPIRequest) SetKeywordId(_keywordId int64) error { + r._keywordId = _keywordId + r.Set("keyword_id", _keywordId) + return nil +} + +// KeywordId Getter +func (r AlibabaScbpProductPreferentialUpdateAPIRequest) GetKeywordId() int64 { + return r._keywordId +} +// ProductId Setter +// 产品ID +func (r *AlibabaScbpProductPreferentialUpdateAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r AlibabaScbpProductPreferentialUpdateAPIRequest) GetProductId() int64 { + return r._productId +} +// Status Setter +// Y:设置优推,N:取消优推 +func (r *AlibabaScbpProductPreferentialUpdateAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaScbpProductPreferentialUpdateAPIRequest) GetStatus() string { + return r._status +} diff --git a/model/scbp/AlibabaScbpProductPreferentialUpdateAPIResponse.go b/model/scbp/AlibabaScbpProductPreferentialUpdateAPIResponse.go new file mode 100644 index 0000000000..3fc42dd34c --- /dev/null +++ b/model/scbp/AlibabaScbpProductPreferentialUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设置P4P产品优先推广状态 API返回值 +alibaba.scbp.product.preferential.update + +设置P4P产品优先推广状态 +*/ +type AlibabaScbpProductPreferentialUpdateAPIResponse struct { + model.CommonResponse + AlibabaScbpProductPreferentialUpdateAPIResponseModel +} + +// 设置P4P产品优先推广状态 成功返回结果 +type AlibabaScbpProductPreferentialUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_product_preferential_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 设置成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpProductPreferentialUpdateResponse.go b/model/scbp/AlibabaScbpProductPreferentialUpdateResponse.go deleted file mode 100644 index 3c39084cdb..0000000000 --- a/model/scbp/AlibabaScbpProductPreferentialUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设置P4P产品优先推广状态 API返回值 -alibaba.scbp.product.preferential.update - -设置P4P产品优先推广状态 -*/ -type AlibabaScbpProductPreferentialUpdateAPIResponse struct { - model.CommonResponse - AlibabaScbpProductPreferentialUpdateResponse -} - -// 设置P4P产品优先推广状态 成功返回结果 -type AlibabaScbpProductPreferentialUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_product_preferential_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 设置成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpProductStatusUpdateAPIRequest.go b/model/scbp/AlibabaScbpProductStatusUpdateAPIRequest.go new file mode 100644 index 0000000000..087d57e3d5 --- /dev/null +++ b/model/scbp/AlibabaScbpProductStatusUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改P4P产品推广状态 API请求 +alibaba.scbp.product.status.update + +修改P4P产品推广状态 +*/ +type AlibabaScbpProductStatusUpdateAPIRequest struct { + model.Params + // 产品ID列表 + _productIdList []int64 + // enabled:开启,disabled:暂停 + _status string +} + +// 初始化AlibabaScbpProductStatusUpdateAPIRequest对象 +func NewAlibabaScbpProductStatusUpdateRequest() *AlibabaScbpProductStatusUpdateAPIRequest{ + return &AlibabaScbpProductStatusUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpProductStatusUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.product.status.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpProductStatusUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductIdList Setter +// 产品ID列表 +func (r *AlibabaScbpProductStatusUpdateAPIRequest) SetProductIdList(_productIdList []int64) error { + r._productIdList = _productIdList + r.Set("product_id_list", _productIdList) + return nil +} + +// ProductIdList Getter +func (r AlibabaScbpProductStatusUpdateAPIRequest) GetProductIdList() []int64 { + return r._productIdList +} +// Status Setter +// enabled:开启,disabled:暂停 +func (r *AlibabaScbpProductStatusUpdateAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaScbpProductStatusUpdateAPIRequest) GetStatus() string { + return r._status +} diff --git a/model/scbp/AlibabaScbpProductStatusUpdateAPIResponse.go b/model/scbp/AlibabaScbpProductStatusUpdateAPIResponse.go new file mode 100644 index 0000000000..3e7ba84100 --- /dev/null +++ b/model/scbp/AlibabaScbpProductStatusUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改P4P产品推广状态 API返回值 +alibaba.scbp.product.status.update + +修改P4P产品推广状态 +*/ +type AlibabaScbpProductStatusUpdateAPIResponse struct { + model.CommonResponse + AlibabaScbpProductStatusUpdateAPIResponseModel +} + +// 修改P4P产品推广状态 成功返回结果 +type AlibabaScbpProductStatusUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_product_status_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 实际修改的产品数 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpProductStatusUpdateResponse.go b/model/scbp/AlibabaScbpProductStatusUpdateResponse.go deleted file mode 100644 index 488ac82b7e..0000000000 --- a/model/scbp/AlibabaScbpProductStatusUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改P4P产品推广状态 API返回值 -alibaba.scbp.product.status.update - -修改P4P产品推广状态 -*/ -type AlibabaScbpProductStatusUpdateAPIResponse struct { - model.CommonResponse - AlibabaScbpProductStatusUpdateResponse -} - -// 修改P4P产品推广状态 成功返回结果 -type AlibabaScbpProductStatusUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_product_status_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 实际修改的产品数 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpReckeywordSearchAPIRequest.go b/model/scbp/AlibabaScbpReckeywordSearchAPIRequest.go new file mode 100644 index 0000000000..4494e88e46 --- /dev/null +++ b/model/scbp/AlibabaScbpReckeywordSearchAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推荐词-词推词 API请求 +alibaba.scbp.reckeyword.search + +推荐词-词推词 +*/ +type AlibabaScbpReckeywordSearchAPIRequest struct { + model.Params + // RecKeywordQuery + _queryDto *RecKeywordQuery +} + +// 初始化AlibabaScbpReckeywordSearchAPIRequest对象 +func NewAlibabaScbpReckeywordSearchRequest() *AlibabaScbpReckeywordSearchAPIRequest{ + return &AlibabaScbpReckeywordSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpReckeywordSearchAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.reckeyword.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpReckeywordSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryDto Setter +// RecKeywordQuery +func (r *AlibabaScbpReckeywordSearchAPIRequest) SetQueryDto(_queryDto *RecKeywordQuery) error { + r._queryDto = _queryDto + r.Set("query_dto", _queryDto) + return nil +} + +// QueryDto Getter +func (r AlibabaScbpReckeywordSearchAPIRequest) GetQueryDto() *RecKeywordQuery { + return r._queryDto +} diff --git a/model/scbp/AlibabaScbpReckeywordSearchAPIResponse.go b/model/scbp/AlibabaScbpReckeywordSearchAPIResponse.go new file mode 100644 index 0000000000..a34a96c7a5 --- /dev/null +++ b/model/scbp/AlibabaScbpReckeywordSearchAPIResponse.go @@ -0,0 +1,31 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推荐词-词推词 API返回值 +alibaba.scbp.reckeyword.search + +推荐词-词推词 +*/ +type AlibabaScbpReckeywordSearchAPIResponse struct { + model.CommonResponse + AlibabaScbpReckeywordSearchAPIResponseModel +} + +// 推荐词-词推词 成功返回结果 +type AlibabaScbpReckeywordSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_reckeyword_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 词推词结果列表 + ResultList []RecKeywordDto `json:"result_list,omitempty" xml:"result_list>rec_keyword_dto,omitempty"` + // 总个数 + TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` + // 总页数 + TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` +} diff --git a/model/scbp/AlibabaScbpReckeywordSearchResponse.go b/model/scbp/AlibabaScbpReckeywordSearchResponse.go deleted file mode 100644 index 9b4dfe1a81..0000000000 --- a/model/scbp/AlibabaScbpReckeywordSearchResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推荐词-词推词 API返回值 -alibaba.scbp.reckeyword.search - -推荐词-词推词 -*/ -type AlibabaScbpReckeywordSearchAPIResponse struct { - model.CommonResponse - AlibabaScbpReckeywordSearchResponse -} - -// 推荐词-词推词 成功返回结果 -type AlibabaScbpReckeywordSearchResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_reckeyword_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 词推词结果列表 - ResultList []RecKeywordDto `json:"result_list,omitempty" xml:"result_list>rec_keyword_dto,omitempty"` - // 总个数 - TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` - // 总页数 - TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` -} diff --git a/model/scbp/AlibabaScbpReckeywordSysGetAPIRequest.go b/model/scbp/AlibabaScbpReckeywordSysGetAPIRequest.go new file mode 100644 index 0000000000..02acedbf75 --- /dev/null +++ b/model/scbp/AlibabaScbpReckeywordSysGetAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +系统推荐 API请求 +alibaba.scbp.reckeyword.sys.get + +查询系统推荐词 +*/ +type AlibabaScbpReckeywordSysGetAPIRequest struct { + model.Params + // RecKeywordQuery + _queryDto *RecKeywordQuery +} + +// 初始化AlibabaScbpReckeywordSysGetAPIRequest对象 +func NewAlibabaScbpReckeywordSysGetRequest() *AlibabaScbpReckeywordSysGetAPIRequest{ + return &AlibabaScbpReckeywordSysGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpReckeywordSysGetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.reckeyword.sys.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpReckeywordSysGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryDto Setter +// RecKeywordQuery +func (r *AlibabaScbpReckeywordSysGetAPIRequest) SetQueryDto(_queryDto *RecKeywordQuery) error { + r._queryDto = _queryDto + r.Set("query_dto", _queryDto) + return nil +} + +// QueryDto Getter +func (r AlibabaScbpReckeywordSysGetAPIRequest) GetQueryDto() *RecKeywordQuery { + return r._queryDto +} diff --git a/model/scbp/AlibabaScbpReckeywordSysGetAPIResponse.go b/model/scbp/AlibabaScbpReckeywordSysGetAPIResponse.go new file mode 100644 index 0000000000..4d8fc3082d --- /dev/null +++ b/model/scbp/AlibabaScbpReckeywordSysGetAPIResponse.go @@ -0,0 +1,31 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +系统推荐 API返回值 +alibaba.scbp.reckeyword.sys.get + +查询系统推荐词 +*/ +type AlibabaScbpReckeywordSysGetAPIResponse struct { + model.CommonResponse + AlibabaScbpReckeywordSysGetAPIResponseModel +} + +// 系统推荐 成功返回结果 +type AlibabaScbpReckeywordSysGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_reckeyword_sys_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 总个数 + TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` + // 总页数 + TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` + // 系统推荐词结果列表 + ResultList []RecKeywordDto `json:"result_list,omitempty" xml:"result_list>rec_keyword_dto,omitempty"` +} diff --git a/model/scbp/AlibabaScbpReckeywordSysGetResponse.go b/model/scbp/AlibabaScbpReckeywordSysGetResponse.go deleted file mode 100644 index 818c6a1b6c..0000000000 --- a/model/scbp/AlibabaScbpReckeywordSysGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -系统推荐 API返回值 -alibaba.scbp.reckeyword.sys.get - -查询系统推荐词 -*/ -type AlibabaScbpReckeywordSysGetAPIResponse struct { - model.CommonResponse - AlibabaScbpReckeywordSysGetResponse -} - -// 系统推荐 成功返回结果 -type AlibabaScbpReckeywordSysGetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_reckeyword_sys_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 总个数 - TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` - // 总页数 - TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` - // 系统推荐词结果列表 - ResultList []RecKeywordDto `json:"result_list,omitempty" xml:"result_list>rec_keyword_dto,omitempty"` -} diff --git a/model/scbp/AlibabaScbpTagAddAPIRequest.go b/model/scbp/AlibabaScbpTagAddAPIRequest.go new file mode 100644 index 0000000000..ab7de6c2f6 --- /dev/null +++ b/model/scbp/AlibabaScbpTagAddAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建关键词分组 API请求 +alibaba.scbp.tag.add + +创建关键词分组 +*/ +type AlibabaScbpTagAddAPIRequest struct { + model.Params + // 分组名称,最多允许创建100个 + _tagName string +} + +// 初始化AlibabaScbpTagAddAPIRequest对象 +func NewAlibabaScbpTagAddRequest() *AlibabaScbpTagAddAPIRequest{ + return &AlibabaScbpTagAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpTagAddAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.tag.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpTagAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TagName Setter +// 分组名称,最多允许创建100个 +func (r *AlibabaScbpTagAddAPIRequest) SetTagName(_tagName string) error { + r._tagName = _tagName + r.Set("tag_name", _tagName) + return nil +} + +// TagName Getter +func (r AlibabaScbpTagAddAPIRequest) GetTagName() string { + return r._tagName +} diff --git a/model/scbp/AlibabaScbpTagAddAPIResponse.go b/model/scbp/AlibabaScbpTagAddAPIResponse.go new file mode 100644 index 0000000000..098421d936 --- /dev/null +++ b/model/scbp/AlibabaScbpTagAddAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建关键词分组 API返回值 +alibaba.scbp.tag.add + +创建关键词分组 +*/ +type AlibabaScbpTagAddAPIResponse struct { + model.CommonResponse + AlibabaScbpTagAddAPIResponseModel +} + +// 创建关键词分组 成功返回结果 +type AlibabaScbpTagAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_tag_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分组名称 + TagName string `json:"tag_name,omitempty" xml:"tag_name,omitempty"` +} diff --git a/model/scbp/AlibabaScbpTagAddResponse.go b/model/scbp/AlibabaScbpTagAddResponse.go deleted file mode 100644 index b69fd2040f..0000000000 --- a/model/scbp/AlibabaScbpTagAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建关键词分组 API返回值 -alibaba.scbp.tag.add - -创建关键词分组 -*/ -type AlibabaScbpTagAddAPIResponse struct { - model.CommonResponse - AlibabaScbpTagAddResponse -} - -// 创建关键词分组 成功返回结果 -type AlibabaScbpTagAddResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_tag_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分组名称 - TagName string `json:"tag_name,omitempty" xml:"tag_name,omitempty"` -} diff --git a/model/scbp/AlibabaScbpTagDeleteAPIRequest.go b/model/scbp/AlibabaScbpTagDeleteAPIRequest.go new file mode 100644 index 0000000000..dea879cc19 --- /dev/null +++ b/model/scbp/AlibabaScbpTagDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除关键词分组 API请求 +alibaba.scbp.tag.delete + +删除关键词分组 +*/ +type AlibabaScbpTagDeleteAPIRequest struct { + model.Params + // 关键词分组名 + _tagName string +} + +// 初始化AlibabaScbpTagDeleteAPIRequest对象 +func NewAlibabaScbpTagDeleteRequest() *AlibabaScbpTagDeleteAPIRequest{ + return &AlibabaScbpTagDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpTagDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.tag.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpTagDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TagName Setter +// 关键词分组名 +func (r *AlibabaScbpTagDeleteAPIRequest) SetTagName(_tagName string) error { + r._tagName = _tagName + r.Set("tag_name", _tagName) + return nil +} + +// TagName Getter +func (r AlibabaScbpTagDeleteAPIRequest) GetTagName() string { + return r._tagName +} diff --git a/model/scbp/AlibabaScbpTagDeleteAPIResponse.go b/model/scbp/AlibabaScbpTagDeleteAPIResponse.go new file mode 100644 index 0000000000..c2ae9ab7ad --- /dev/null +++ b/model/scbp/AlibabaScbpTagDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除关键词分组 API返回值 +alibaba.scbp.tag.delete + +删除关键词分组 +*/ +type AlibabaScbpTagDeleteAPIResponse struct { + model.CommonResponse + AlibabaScbpTagDeleteAPIResponseModel +} + +// 删除关键词分组 成功返回结果 +type AlibabaScbpTagDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_tag_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 删除关键词分组成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpTagDeleteResponse.go b/model/scbp/AlibabaScbpTagDeleteResponse.go deleted file mode 100644 index f8cb678e16..0000000000 --- a/model/scbp/AlibabaScbpTagDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除关键词分组 API返回值 -alibaba.scbp.tag.delete - -删除关键词分组 -*/ -type AlibabaScbpTagDeleteAPIResponse struct { - model.CommonResponse - AlibabaScbpTagDeleteResponse -} - -// 删除关键词分组 成功返回结果 -type AlibabaScbpTagDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_tag_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 删除关键词分组成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpTagListAPIRequest.go b/model/scbp/AlibabaScbpTagListAPIRequest.go new file mode 100644 index 0000000000..4779fef715 --- /dev/null +++ b/model/scbp/AlibabaScbpTagListAPIRequest.go @@ -0,0 +1,38 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询所有分组 API请求 +alibaba.scbp.tag.list + +查询所有分组 +*/ +type AlibabaScbpTagListAPIRequest struct { + model.Params +} + +// 初始化AlibabaScbpTagListAPIRequest对象 +func NewAlibabaScbpTagListRequest() *AlibabaScbpTagListAPIRequest{ + return &AlibabaScbpTagListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpTagListAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.tag.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpTagListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/scbp/AlibabaScbpTagListAPIResponse.go b/model/scbp/AlibabaScbpTagListAPIResponse.go new file mode 100644 index 0000000000..a963b6bca9 --- /dev/null +++ b/model/scbp/AlibabaScbpTagListAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询所有分组 API返回值 +alibaba.scbp.tag.list + +查询所有分组 +*/ +type AlibabaScbpTagListAPIResponse struct { + model.CommonResponse + AlibabaScbpTagListAPIResponseModel +} + +// 查询所有分组 成功返回结果 +type AlibabaScbpTagListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_tag_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 所有分组 + TagList []TagGroup `json:"tag_list,omitempty" xml:"tag_list>tag_group,omitempty"` +} diff --git a/model/scbp/AlibabaScbpTagListResponse.go b/model/scbp/AlibabaScbpTagListResponse.go deleted file mode 100644 index a6fd51313f..0000000000 --- a/model/scbp/AlibabaScbpTagListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询所有分组 API返回值 -alibaba.scbp.tag.list - -查询所有分组 -*/ -type AlibabaScbpTagListAPIResponse struct { - model.CommonResponse - AlibabaScbpTagListResponse -} - -// 查询所有分组 成功返回结果 -type AlibabaScbpTagListResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_tag_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 所有分组 - TagList []TagGroup `json:"tag_list,omitempty" xml:"tag_list>tag_group,omitempty"` -} diff --git a/model/scbp/AlibabaScbpTagRenameAPIRequest.go b/model/scbp/AlibabaScbpTagRenameAPIRequest.go new file mode 100644 index 0000000000..ef036ec153 --- /dev/null +++ b/model/scbp/AlibabaScbpTagRenameAPIRequest.go @@ -0,0 +1,66 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +重命名关键词分组 API请求 +alibaba.scbp.tag.rename + +重命名关键词分组 +*/ +type AlibabaScbpTagRenameAPIRequest struct { + model.Params + // 需要重命名的关键词分组名 + _tagName string + // 新分组名 + _newTagName string +} + +// 初始化AlibabaScbpTagRenameAPIRequest对象 +func NewAlibabaScbpTagRenameRequest() *AlibabaScbpTagRenameAPIRequest{ + return &AlibabaScbpTagRenameAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpTagRenameAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.tag.rename" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpTagRenameAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TagName Setter +// 需要重命名的关键词分组名 +func (r *AlibabaScbpTagRenameAPIRequest) SetTagName(_tagName string) error { + r._tagName = _tagName + r.Set("tag_name", _tagName) + return nil +} + +// TagName Getter +func (r AlibabaScbpTagRenameAPIRequest) GetTagName() string { + return r._tagName +} +// NewTagName Setter +// 新分组名 +func (r *AlibabaScbpTagRenameAPIRequest) SetNewTagName(_newTagName string) error { + r._newTagName = _newTagName + r.Set("new_tag_name", _newTagName) + return nil +} + +// NewTagName Getter +func (r AlibabaScbpTagRenameAPIRequest) GetNewTagName() string { + return r._newTagName +} diff --git a/model/scbp/AlibabaScbpTagRenameAPIResponse.go b/model/scbp/AlibabaScbpTagRenameAPIResponse.go new file mode 100644 index 0000000000..824d6295da --- /dev/null +++ b/model/scbp/AlibabaScbpTagRenameAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +重命名关键词分组 API返回值 +alibaba.scbp.tag.rename + +重命名关键词分组 +*/ +type AlibabaScbpTagRenameAPIResponse struct { + model.CommonResponse + AlibabaScbpTagRenameAPIResponseModel +} + +// 重命名关键词分组 成功返回结果 +type AlibabaScbpTagRenameAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_tag_rename_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 重命名分组成功或者失败 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpTagRenameResponse.go b/model/scbp/AlibabaScbpTagRenameResponse.go deleted file mode 100644 index 610165e2b8..0000000000 --- a/model/scbp/AlibabaScbpTagRenameResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -重命名关键词分组 API返回值 -alibaba.scbp.tag.rename - -重命名关键词分组 -*/ -type AlibabaScbpTagRenameAPIResponse struct { - model.CommonResponse - AlibabaScbpTagRenameResponse -} - -// 重命名关键词分组 成功返回结果 -type AlibabaScbpTagRenameResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_tag_rename_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 重命名分组成功或者失败 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpTargetAdCampaignEffectAPIRequest.go b/model/scbp/AlibabaScbpTargetAdCampaignEffectAPIRequest.go new file mode 100644 index 0000000000..8fa4974628 --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdCampaignEffectAPIRequest.go @@ -0,0 +1,94 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-获取计划维度推广效果 API请求 +alibaba.scbp.target.ad.campaign.effect + +定向推广-获取计划维度推广效果 +*/ +type AlibabaScbpTargetAdCampaignEffectAPIRequest struct { + model.Params + // 统计区间 只能为1 7 30 + _interval int64 + // 结束时间 当inteval=7或30的时候 不需要填写,当inteval=1时需要填写(开始结束时间区间不允许大于180天) + _endDate string + // 开始时间 当inteval=7或30的时候 不需要填写,当inteval=1时需要填写(开始结束时间区间不允许大于180天) + _beginDate string + // 当填写时,展示指定id的数据,不填写,则展示全部计划总数据 + _campaignId int64 +} + +// 初始化AlibabaScbpTargetAdCampaignEffectAPIRequest对象 +func NewAlibabaScbpTargetAdCampaignEffectRequest() *AlibabaScbpTargetAdCampaignEffectAPIRequest{ + return &AlibabaScbpTargetAdCampaignEffectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpTargetAdCampaignEffectAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.target.ad.campaign.effect" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpTargetAdCampaignEffectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Interval Setter +// 统计区间 只能为1 7 30 +func (r *AlibabaScbpTargetAdCampaignEffectAPIRequest) SetInterval(_interval int64) error { + r._interval = _interval + r.Set("interval", _interval) + return nil +} + +// Interval Getter +func (r AlibabaScbpTargetAdCampaignEffectAPIRequest) GetInterval() int64 { + return r._interval +} +// EndDate Setter +// 结束时间 当inteval=7或30的时候 不需要填写,当inteval=1时需要填写(开始结束时间区间不允许大于180天) +func (r *AlibabaScbpTargetAdCampaignEffectAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r AlibabaScbpTargetAdCampaignEffectAPIRequest) GetEndDate() string { + return r._endDate +} +// BeginDate Setter +// 开始时间 当inteval=7或30的时候 不需要填写,当inteval=1时需要填写(开始结束时间区间不允许大于180天) +func (r *AlibabaScbpTargetAdCampaignEffectAPIRequest) SetBeginDate(_beginDate string) error { + r._beginDate = _beginDate + r.Set("begin_date", _beginDate) + return nil +} + +// BeginDate Getter +func (r AlibabaScbpTargetAdCampaignEffectAPIRequest) GetBeginDate() string { + return r._beginDate +} +// CampaignId Setter +// 当填写时,展示指定id的数据,不填写,则展示全部计划总数据 +func (r *AlibabaScbpTargetAdCampaignEffectAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpTargetAdCampaignEffectAPIRequest) GetCampaignId() int64 { + return r._campaignId +} diff --git a/model/scbp/AlibabaScbpTargetAdCampaignEffectAPIResponse.go b/model/scbp/AlibabaScbpTargetAdCampaignEffectAPIResponse.go new file mode 100644 index 0000000000..ed82fbd7ef --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdCampaignEffectAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-获取计划维度推广效果 API返回值 +alibaba.scbp.target.ad.campaign.effect + +定向推广-获取计划维度推广效果 +*/ +type AlibabaScbpTargetAdCampaignEffectAPIResponse struct { + model.CommonResponse + AlibabaScbpTargetAdCampaignEffectAPIResponseModel +} + +// 定向推广-获取计划维度推广效果 成功返回结果 +type AlibabaScbpTargetAdCampaignEffectAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_target_ad_campaign_effect_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 数据列表 + EffectList []TopP4pQuickCampaignEffectView `json:"effect_list,omitempty" xml:"effect_list>top_p4p_quick_campaign_effect_view,omitempty"` +} diff --git a/model/scbp/AlibabaScbpTargetAdCampaignEffectResponse.go b/model/scbp/AlibabaScbpTargetAdCampaignEffectResponse.go deleted file mode 100644 index e7ad8d4133..0000000000 --- a/model/scbp/AlibabaScbpTargetAdCampaignEffectResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定向推广-获取计划维度推广效果 API返回值 -alibaba.scbp.target.ad.campaign.effect - -定向推广-获取计划维度推广效果 -*/ -type AlibabaScbpTargetAdCampaignEffectAPIResponse struct { - model.CommonResponse - AlibabaScbpTargetAdCampaignEffectResponse -} - -// 定向推广-获取计划维度推广效果 成功返回结果 -type AlibabaScbpTargetAdCampaignEffectResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_target_ad_campaign_effect_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 数据列表 - EffectList []TopP4pQuickCampaignEffectView `json:"effect_list,omitempty" xml:"effect_list>top_p4p_quick_campaign_effect_view,omitempty"` -} diff --git a/model/scbp/AlibabaScbpTargetAdCampaignProductEffectAPIRequest.go b/model/scbp/AlibabaScbpTargetAdCampaignProductEffectAPIRequest.go new file mode 100644 index 0000000000..ec572b7ece --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdCampaignProductEffectAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-获取计划中产品推广效果 API请求 +alibaba.scbp.target.ad.campaign.product.effect + +定向推广-获取计划中产品推广效果 +*/ +type AlibabaScbpTargetAdCampaignProductEffectAPIRequest struct { + model.Params + // TopP4pQuickEffectQuery + _topP4pQuickEffectQuery *TopP4pQuickEffectQuery +} + +// 初始化AlibabaScbpTargetAdCampaignProductEffectAPIRequest对象 +func NewAlibabaScbpTargetAdCampaignProductEffectRequest() *AlibabaScbpTargetAdCampaignProductEffectAPIRequest{ + return &AlibabaScbpTargetAdCampaignProductEffectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpTargetAdCampaignProductEffectAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.target.ad.campaign.product.effect" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpTargetAdCampaignProductEffectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TopP4pQuickEffectQuery Setter +// TopP4pQuickEffectQuery +func (r *AlibabaScbpTargetAdCampaignProductEffectAPIRequest) SetTopP4pQuickEffectQuery(_topP4pQuickEffectQuery *TopP4pQuickEffectQuery) error { + r._topP4pQuickEffectQuery = _topP4pQuickEffectQuery + r.Set("top_p4p_quick_effect_query", _topP4pQuickEffectQuery) + return nil +} + +// TopP4pQuickEffectQuery Getter +func (r AlibabaScbpTargetAdCampaignProductEffectAPIRequest) GetTopP4pQuickEffectQuery() *TopP4pQuickEffectQuery { + return r._topP4pQuickEffectQuery +} diff --git a/model/scbp/AlibabaScbpTargetAdCampaignProductEffectAPIResponse.go b/model/scbp/AlibabaScbpTargetAdCampaignProductEffectAPIResponse.go new file mode 100644 index 0000000000..ab4bdd38ef --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdCampaignProductEffectAPIResponse.go @@ -0,0 +1,31 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-获取计划中产品推广效果 API返回值 +alibaba.scbp.target.ad.campaign.product.effect + +定向推广-获取计划中产品推广效果 +*/ +type AlibabaScbpTargetAdCampaignProductEffectAPIResponse struct { + model.CommonResponse + AlibabaScbpTargetAdCampaignProductEffectAPIResponseModel +} + +// 定向推广-获取计划中产品推广效果 成功返回结果 +type AlibabaScbpTargetAdCampaignProductEffectAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_target_ad_campaign_product_effect_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 产品数据 + ProductList []TopP4pQuickProductEffectView `json:"product_list,omitempty" xml:"product_list>top_p4p_quick_product_effect_view,omitempty"` + // 总页数 + TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` + // 总个数 + TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` +} diff --git a/model/scbp/AlibabaScbpTargetAdCampaignProductEffectResponse.go b/model/scbp/AlibabaScbpTargetAdCampaignProductEffectResponse.go deleted file mode 100644 index 19293dcab6..0000000000 --- a/model/scbp/AlibabaScbpTargetAdCampaignProductEffectResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定向推广-获取计划中产品推广效果 API返回值 -alibaba.scbp.target.ad.campaign.product.effect - -定向推广-获取计划中产品推广效果 -*/ -type AlibabaScbpTargetAdCampaignProductEffectAPIResponse struct { - model.CommonResponse - AlibabaScbpTargetAdCampaignProductEffectResponse -} - -// 定向推广-获取计划中产品推广效果 成功返回结果 -type AlibabaScbpTargetAdCampaignProductEffectResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_target_ad_campaign_product_effect_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 产品数据 - ProductList []TopP4pQuickProductEffectView `json:"product_list,omitempty" xml:"product_list>top_p4p_quick_product_effect_view,omitempty"` - // 总页数 - TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` - // 总个数 - TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` -} diff --git a/model/scbp/AlibabaScbpTargetAdCampaignTagEffectAPIRequest.go b/model/scbp/AlibabaScbpTargetAdCampaignTagEffectAPIRequest.go new file mode 100644 index 0000000000..9db3f91b0e --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdCampaignTagEffectAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-获取推广计划定向效果数据 API请求 +alibaba.scbp.target.ad.campaign.tag.effect + +定向推广-获取推广计划定向效果数据 +*/ +type AlibabaScbpTargetAdCampaignTagEffectAPIRequest struct { + model.Params + // 效果数据 + _topP4pQuickEffectQuery *TopP4pQuickEffectQuery +} + +// 初始化AlibabaScbpTargetAdCampaignTagEffectAPIRequest对象 +func NewAlibabaScbpTargetAdCampaignTagEffectRequest() *AlibabaScbpTargetAdCampaignTagEffectAPIRequest{ + return &AlibabaScbpTargetAdCampaignTagEffectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpTargetAdCampaignTagEffectAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.target.ad.campaign.tag.effect" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpTargetAdCampaignTagEffectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TopP4pQuickEffectQuery Setter +// 效果数据 +func (r *AlibabaScbpTargetAdCampaignTagEffectAPIRequest) SetTopP4pQuickEffectQuery(_topP4pQuickEffectQuery *TopP4pQuickEffectQuery) error { + r._topP4pQuickEffectQuery = _topP4pQuickEffectQuery + r.Set("top_p4p_quick_effect_query", _topP4pQuickEffectQuery) + return nil +} + +// TopP4pQuickEffectQuery Getter +func (r AlibabaScbpTargetAdCampaignTagEffectAPIRequest) GetTopP4pQuickEffectQuery() *TopP4pQuickEffectQuery { + return r._topP4pQuickEffectQuery +} diff --git a/model/scbp/AlibabaScbpTargetAdCampaignTagEffectAPIResponse.go b/model/scbp/AlibabaScbpTargetAdCampaignTagEffectAPIResponse.go new file mode 100644 index 0000000000..b0f18e632d --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdCampaignTagEffectAPIResponse.go @@ -0,0 +1,29 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-获取推广计划定向效果数据 API返回值 +alibaba.scbp.target.ad.campaign.tag.effect + +定向推广-获取推广计划定向效果数据 +*/ +type AlibabaScbpTargetAdCampaignTagEffectAPIResponse struct { + model.CommonResponse + AlibabaScbpTargetAdCampaignTagEffectAPIResponseModel +} + +// 定向推广-获取推广计划定向效果数据 成功返回结果 +type AlibabaScbpTargetAdCampaignTagEffectAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_target_ad_campaign_tag_effect_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 定向标签数据 + EffectList []TopP4pQuickTagEffectView `json:"effect_list,omitempty" xml:"effect_list>top_p4p_quick_tag_effect_view,omitempty"` + // 总条数 + TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` +} diff --git a/model/scbp/AlibabaScbpTargetAdCampaignTagEffectResponse.go b/model/scbp/AlibabaScbpTargetAdCampaignTagEffectResponse.go deleted file mode 100644 index 7778cb0df7..0000000000 --- a/model/scbp/AlibabaScbpTargetAdCampaignTagEffectResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定向推广-获取推广计划定向效果数据 API返回值 -alibaba.scbp.target.ad.campaign.tag.effect - -定向推广-获取推广计划定向效果数据 -*/ -type AlibabaScbpTargetAdCampaignTagEffectAPIResponse struct { - model.CommonResponse - AlibabaScbpTargetAdCampaignTagEffectResponse -} - -// 定向推广-获取推广计划定向效果数据 成功返回结果 -type AlibabaScbpTargetAdCampaignTagEffectResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_target_ad_campaign_tag_effect_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 定向标签数据 - EffectList []TopP4pQuickTagEffectView `json:"effect_list,omitempty" xml:"effect_list>top_p4p_quick_tag_effect_view,omitempty"` - // 总条数 - TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` -} diff --git a/model/scbp/AlibabaScbpTargetAdPlanAddAPIRequest.go b/model/scbp/AlibabaScbpTargetAdPlanAddAPIRequest.go new file mode 100644 index 0000000000..c1c14a4ca6 --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanAddAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-新建计划 API请求 +alibaba.scbp.target.ad.plan.add + +定向推广-新建单条计划 +*/ +type AlibabaScbpTargetAdPlanAddAPIRequest struct { + model.Params + // 定向推广基础信息 + _topP4pBasicQuickCampaign *BasicQuickCampaign +} + +// 初始化AlibabaScbpTargetAdPlanAddAPIRequest对象 +func NewAlibabaScbpTargetAdPlanAddRequest() *AlibabaScbpTargetAdPlanAddAPIRequest{ + return &AlibabaScbpTargetAdPlanAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpTargetAdPlanAddAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.target.ad.plan.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpTargetAdPlanAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TopP4pBasicQuickCampaign Setter +// 定向推广基础信息 +func (r *AlibabaScbpTargetAdPlanAddAPIRequest) SetTopP4pBasicQuickCampaign(_topP4pBasicQuickCampaign *BasicQuickCampaign) error { + r._topP4pBasicQuickCampaign = _topP4pBasicQuickCampaign + r.Set("top_p4p_basic_quick_campaign", _topP4pBasicQuickCampaign) + return nil +} + +// TopP4pBasicQuickCampaign Getter +func (r AlibabaScbpTargetAdPlanAddAPIRequest) GetTopP4pBasicQuickCampaign() *BasicQuickCampaign { + return r._topP4pBasicQuickCampaign +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanAddAPIResponse.go b/model/scbp/AlibabaScbpTargetAdPlanAddAPIResponse.go new file mode 100644 index 0000000000..6f5ad980eb --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanAddAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-新建计划 API返回值 +alibaba.scbp.target.ad.plan.add + +定向推广-新建单条计划 +*/ +type AlibabaScbpTargetAdPlanAddAPIResponse struct { + model.CommonResponse + AlibabaScbpTargetAdPlanAddAPIResponseModel +} + +// 定向推广-新建计划 成功返回结果 +type AlibabaScbpTargetAdPlanAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 计划ID + CampaignId int64 `json:"campaign_id,omitempty" xml:"campaign_id,omitempty"` +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanAddResponse.go b/model/scbp/AlibabaScbpTargetAdPlanAddResponse.go deleted file mode 100644 index f99065830d..0000000000 --- a/model/scbp/AlibabaScbpTargetAdPlanAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定向推广-新建计划 API返回值 -alibaba.scbp.target.ad.plan.add - -定向推广-新建单条计划 -*/ -type AlibabaScbpTargetAdPlanAddAPIResponse struct { - model.CommonResponse - AlibabaScbpTargetAdPlanAddResponse -} - -// 定向推广-新建计划 成功返回结果 -type AlibabaScbpTargetAdPlanAddResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 计划ID - CampaignId int64 `json:"campaign_id,omitempty" xml:"campaign_id,omitempty"` -} diff --git a/model/scbp/AlibabaScbpTargetAdPlanCountryIdGetAPIRequest.go b/model/scbp/AlibabaScbpTargetAdPlanCountryIdGetAPIRequest.go new file mode 100644 index 0000000000..291437ccbf --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanCountryIdGetAPIRequest.go @@ -0,0 +1,38 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-国家标签ID获取 API请求 +alibaba.scbp.target.ad.plan.country.id.get + +定向推广-国家标签ID获取 +*/ +type AlibabaScbpTargetAdPlanCountryIdGetAPIRequest struct { + model.Params +} + +// 初始化AlibabaScbpTargetAdPlanCountryIdGetAPIRequest对象 +func NewAlibabaScbpTargetAdPlanCountryIdGetRequest() *AlibabaScbpTargetAdPlanCountryIdGetAPIRequest{ + return &AlibabaScbpTargetAdPlanCountryIdGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpTargetAdPlanCountryIdGetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.target.ad.plan.country.id.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpTargetAdPlanCountryIdGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanCountryIdGetAPIResponse.go b/model/scbp/AlibabaScbpTargetAdPlanCountryIdGetAPIResponse.go new file mode 100644 index 0000000000..1d77edc0e8 --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanCountryIdGetAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-国家标签ID获取 API返回值 +alibaba.scbp.target.ad.plan.country.id.get + +定向推广-国家标签ID获取 +*/ +type AlibabaScbpTargetAdPlanCountryIdGetAPIResponse struct { + model.CommonResponse + AlibabaScbpTargetAdPlanCountryIdGetAPIResponseModel +} + +// 定向推广-国家标签ID获取 成功返回结果 +type AlibabaScbpTargetAdPlanCountryIdGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_country_id_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 地区列表 + RegionList []RegionView `json:"region_list,omitempty" xml:"region_list>region_view,omitempty"` +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanCountryIdGetResponse.go b/model/scbp/AlibabaScbpTargetAdPlanCountryIdGetResponse.go deleted file mode 100644 index fa0427010b..0000000000 --- a/model/scbp/AlibabaScbpTargetAdPlanCountryIdGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定向推广-国家标签ID获取 API返回值 -alibaba.scbp.target.ad.plan.country.id.get - -定向推广-国家标签ID获取 -*/ -type AlibabaScbpTargetAdPlanCountryIdGetAPIResponse struct { - model.CommonResponse - AlibabaScbpTargetAdPlanCountryIdGetResponse -} - -// 定向推广-国家标签ID获取 成功返回结果 -type AlibabaScbpTargetAdPlanCountryIdGetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_country_id_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 地区列表 - RegionList []RegionView `json:"region_list,omitempty" xml:"region_list>region_view,omitempty"` -} diff --git a/model/scbp/AlibabaScbpTargetAdPlanCrowdIdGetAPIRequest.go b/model/scbp/AlibabaScbpTargetAdPlanCrowdIdGetAPIRequest.go new file mode 100644 index 0000000000..fa1f1b6f2e --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanCrowdIdGetAPIRequest.go @@ -0,0 +1,38 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-人群标签ID获取(店铺老客、优选人群) API请求 +alibaba.scbp.target.ad.plan.crowd.id.get + +定向推广-人群标签ID获取(店铺老客、优选人群) +*/ +type AlibabaScbpTargetAdPlanCrowdIdGetAPIRequest struct { + model.Params +} + +// 初始化AlibabaScbpTargetAdPlanCrowdIdGetAPIRequest对象 +func NewAlibabaScbpTargetAdPlanCrowdIdGetRequest() *AlibabaScbpTargetAdPlanCrowdIdGetAPIRequest{ + return &AlibabaScbpTargetAdPlanCrowdIdGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpTargetAdPlanCrowdIdGetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.target.ad.plan.crowd.id.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpTargetAdPlanCrowdIdGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanCrowdIdGetAPIResponse.go b/model/scbp/AlibabaScbpTargetAdPlanCrowdIdGetAPIResponse.go new file mode 100644 index 0000000000..59a8ea2921 --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanCrowdIdGetAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-人群标签ID获取(店铺老客、优选人群) API返回值 +alibaba.scbp.target.ad.plan.crowd.id.get + +定向推广-人群标签ID获取(店铺老客、优选人群) +*/ +type AlibabaScbpTargetAdPlanCrowdIdGetAPIResponse struct { + model.CommonResponse + AlibabaScbpTargetAdPlanCrowdIdGetAPIResponseModel +} + +// 定向推广-人群标签ID获取(店铺老客、优选人群) 成功返回结果 +type AlibabaScbpTargetAdPlanCrowdIdGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_crowd_id_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果list + ResultList []CrowdView `json:"result_list,omitempty" xml:"result_list>crowd_view,omitempty"` +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanCrowdIdGetResponse.go b/model/scbp/AlibabaScbpTargetAdPlanCrowdIdGetResponse.go deleted file mode 100644 index 966fe30fe9..0000000000 --- a/model/scbp/AlibabaScbpTargetAdPlanCrowdIdGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定向推广-人群标签ID获取(店铺老客、优选人群) API返回值 -alibaba.scbp.target.ad.plan.crowd.id.get - -定向推广-人群标签ID获取(店铺老客、优选人群) -*/ -type AlibabaScbpTargetAdPlanCrowdIdGetAPIResponse struct { - model.CommonResponse - AlibabaScbpTargetAdPlanCrowdIdGetResponse -} - -// 定向推广-人群标签ID获取(店铺老客、优选人群) 成功返回结果 -type AlibabaScbpTargetAdPlanCrowdIdGetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_crowd_id_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果list - ResultList []CrowdView `json:"result_list,omitempty" xml:"result_list>crowd_view,omitempty"` -} diff --git a/model/scbp/AlibabaScbpTargetAdPlanForbiddenWordModifyAPIRequest.go b/model/scbp/AlibabaScbpTargetAdPlanForbiddenWordModifyAPIRequest.go new file mode 100644 index 0000000000..7dde8fff87 --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanForbiddenWordModifyAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-新增或删除屏蔽词 API请求 +alibaba.scbp.target.ad.plan.forbidden.word.modify + +定向推广-新增或删除屏蔽词 +*/ +type AlibabaScbpTargetAdPlanForbiddenWordModifyAPIRequest struct { + model.Params + // TopP4pQuickForbiddenWord + _topP4pQuickForbiddenWord *TopP4pQuickForbiddenWordDto +} + +// 初始化AlibabaScbpTargetAdPlanForbiddenWordModifyAPIRequest对象 +func NewAlibabaScbpTargetAdPlanForbiddenWordModifyRequest() *AlibabaScbpTargetAdPlanForbiddenWordModifyAPIRequest{ + return &AlibabaScbpTargetAdPlanForbiddenWordModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpTargetAdPlanForbiddenWordModifyAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.target.ad.plan.forbidden.word.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpTargetAdPlanForbiddenWordModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TopP4pQuickForbiddenWord Setter +// TopP4pQuickForbiddenWord +func (r *AlibabaScbpTargetAdPlanForbiddenWordModifyAPIRequest) SetTopP4pQuickForbiddenWord(_topP4pQuickForbiddenWord *TopP4pQuickForbiddenWordDto) error { + r._topP4pQuickForbiddenWord = _topP4pQuickForbiddenWord + r.Set("top_p4p_quick_forbidden_word", _topP4pQuickForbiddenWord) + return nil +} + +// TopP4pQuickForbiddenWord Getter +func (r AlibabaScbpTargetAdPlanForbiddenWordModifyAPIRequest) GetTopP4pQuickForbiddenWord() *TopP4pQuickForbiddenWordDto { + return r._topP4pQuickForbiddenWord +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanForbiddenWordModifyAPIResponse.go b/model/scbp/AlibabaScbpTargetAdPlanForbiddenWordModifyAPIResponse.go new file mode 100644 index 0000000000..2f7ca6a5e5 --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanForbiddenWordModifyAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-新增或删除屏蔽词 API返回值 +alibaba.scbp.target.ad.plan.forbidden.word.modify + +定向推广-新增或删除屏蔽词 +*/ +type AlibabaScbpTargetAdPlanForbiddenWordModifyAPIResponse struct { + model.CommonResponse + AlibabaScbpTargetAdPlanForbiddenWordModifyAPIResponseModel +} + +// 定向推广-新增或删除屏蔽词 成功返回结果 +type AlibabaScbpTargetAdPlanForbiddenWordModifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_forbidden_word_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true修改成功,fasle修改失败 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanForbiddenWordModifyResponse.go b/model/scbp/AlibabaScbpTargetAdPlanForbiddenWordModifyResponse.go deleted file mode 100644 index 5fbcc4be27..0000000000 --- a/model/scbp/AlibabaScbpTargetAdPlanForbiddenWordModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定向推广-新增或删除屏蔽词 API返回值 -alibaba.scbp.target.ad.plan.forbidden.word.modify - -定向推广-新增或删除屏蔽词 -*/ -type AlibabaScbpTargetAdPlanForbiddenWordModifyAPIResponse struct { - model.CommonResponse - AlibabaScbpTargetAdPlanForbiddenWordModifyResponse -} - -// 定向推广-新增或删除屏蔽词 成功返回结果 -type AlibabaScbpTargetAdPlanForbiddenWordModifyResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_forbidden_word_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true修改成功,fasle修改失败 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpTargetAdPlanListAPIRequest.go b/model/scbp/AlibabaScbpTargetAdPlanListAPIRequest.go new file mode 100644 index 0000000000..25a0e661bd --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanListAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-查询定向推广计划列表并返回计划基础信息 API请求 +alibaba.scbp.target.ad.plan.list + +定向推广-查询定向推广计划列表并返回计划基础信息 +*/ +type AlibabaScbpTargetAdPlanListAPIRequest struct { + model.Params + // TopP4pQuickCampaignQuery + _topP4pQuickCampaignQuery *TopP4pQuickCampaignQueryDto +} + +// 初始化AlibabaScbpTargetAdPlanListAPIRequest对象 +func NewAlibabaScbpTargetAdPlanListRequest() *AlibabaScbpTargetAdPlanListAPIRequest{ + return &AlibabaScbpTargetAdPlanListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpTargetAdPlanListAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.target.ad.plan.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpTargetAdPlanListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TopP4pQuickCampaignQuery Setter +// TopP4pQuickCampaignQuery +func (r *AlibabaScbpTargetAdPlanListAPIRequest) SetTopP4pQuickCampaignQuery(_topP4pQuickCampaignQuery *TopP4pQuickCampaignQueryDto) error { + r._topP4pQuickCampaignQuery = _topP4pQuickCampaignQuery + r.Set("top_p4p_quick_campaign_query", _topP4pQuickCampaignQuery) + return nil +} + +// TopP4pQuickCampaignQuery Getter +func (r AlibabaScbpTargetAdPlanListAPIRequest) GetTopP4pQuickCampaignQuery() *TopP4pQuickCampaignQueryDto { + return r._topP4pQuickCampaignQuery +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanListAPIResponse.go b/model/scbp/AlibabaScbpTargetAdPlanListAPIResponse.go new file mode 100644 index 0000000000..08986ef30c --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanListAPIResponse.go @@ -0,0 +1,31 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-查询定向推广计划列表并返回计划基础信息 API返回值 +alibaba.scbp.target.ad.plan.list + +定向推广-查询定向推广计划列表并返回计划基础信息 +*/ +type AlibabaScbpTargetAdPlanListAPIResponse struct { + model.CommonResponse + AlibabaScbpTargetAdPlanListAPIResponseModel +} + +// 定向推广-查询定向推广计划列表并返回计划基础信息 成功返回结果 +type AlibabaScbpTargetAdPlanListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 定向推广计划列表 + QuickCampaignList []TopP4pBasicQuickCampaignView `json:"quick_campaign_list,omitempty" xml:"quick_campaign_list>top_p4p_basic_quick_campaign_view,omitempty"` + // 总页数 + TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` + // 总个数 + TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanListResponse.go b/model/scbp/AlibabaScbpTargetAdPlanListResponse.go deleted file mode 100644 index fac1a19edc..0000000000 --- a/model/scbp/AlibabaScbpTargetAdPlanListResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定向推广-查询定向推广计划列表并返回计划基础信息 API返回值 -alibaba.scbp.target.ad.plan.list - -定向推广-查询定向推广计划列表并返回计划基础信息 -*/ -type AlibabaScbpTargetAdPlanListAPIResponse struct { - model.CommonResponse - AlibabaScbpTargetAdPlanListResponse -} - -// 定向推广-查询定向推广计划列表并返回计划基础信息 成功返回结果 -type AlibabaScbpTargetAdPlanListResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 定向推广计划列表 - QuickCampaignList []TopP4pBasicQuickCampaignView `json:"quick_campaign_list,omitempty" xml:"quick_campaign_list>top_p4p_basic_quick_campaign_view,omitempty"` - // 总页数 - TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` - // 总个数 - TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` -} diff --git a/model/scbp/AlibabaScbpTargetAdPlanOperationAPIRequest.go b/model/scbp/AlibabaScbpTargetAdPlanOperationAPIRequest.go new file mode 100644 index 0000000000..bb7a2270b0 --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanOperationAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-计划开启/暂停/删除 API请求 +alibaba.scbp.target.ad.plan.operation + +定向推广-计划开启/暂停/删除 +*/ +type AlibabaScbpTargetAdPlanOperationAPIRequest struct { + model.Params + // TopP4pModifyQuickCampaignDTO + _topP4pModifyQuickCampaignDTO *TopP4pModifyQuickCampaignDto +} + +// 初始化AlibabaScbpTargetAdPlanOperationAPIRequest对象 +func NewAlibabaScbpTargetAdPlanOperationRequest() *AlibabaScbpTargetAdPlanOperationAPIRequest{ + return &AlibabaScbpTargetAdPlanOperationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpTargetAdPlanOperationAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.target.ad.plan.operation" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpTargetAdPlanOperationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TopP4pModifyQuickCampaignDTO Setter +// TopP4pModifyQuickCampaignDTO +func (r *AlibabaScbpTargetAdPlanOperationAPIRequest) SetTopP4pModifyQuickCampaignDTO(_topP4pModifyQuickCampaignDTO *TopP4pModifyQuickCampaignDto) error { + r._topP4pModifyQuickCampaignDTO = _topP4pModifyQuickCampaignDTO + r.Set("top_p4p_modify_quick_campaign_d_t_o", _topP4pModifyQuickCampaignDTO) + return nil +} + +// TopP4pModifyQuickCampaignDTO Getter +func (r AlibabaScbpTargetAdPlanOperationAPIRequest) GetTopP4pModifyQuickCampaignDTO() *TopP4pModifyQuickCampaignDto { + return r._topP4pModifyQuickCampaignDTO +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanOperationAPIResponse.go b/model/scbp/AlibabaScbpTargetAdPlanOperationAPIResponse.go new file mode 100644 index 0000000000..d8e7828258 --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanOperationAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-计划开启/暂停/删除 API返回值 +alibaba.scbp.target.ad.plan.operation + +定向推广-计划开启/暂停/删除 +*/ +type AlibabaScbpTargetAdPlanOperationAPIResponse struct { + model.CommonResponse + AlibabaScbpTargetAdPlanOperationAPIResponseModel +} + +// 定向推广-计划开启/暂停/删除 成功返回结果 +type AlibabaScbpTargetAdPlanOperationAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_operation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改成功记录数 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanOperationResponse.go b/model/scbp/AlibabaScbpTargetAdPlanOperationResponse.go deleted file mode 100644 index 622c08ab67..0000000000 --- a/model/scbp/AlibabaScbpTargetAdPlanOperationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定向推广-计划开启/暂停/删除 API返回值 -alibaba.scbp.target.ad.plan.operation - -定向推广-计划开启/暂停/删除 -*/ -type AlibabaScbpTargetAdPlanOperationAPIResponse struct { - model.CommonResponse - AlibabaScbpTargetAdPlanOperationResponse -} - -// 定向推广-计划开启/暂停/删除 成功返回结果 -type AlibabaScbpTargetAdPlanOperationResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_operation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改成功记录数 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpTargetAdPlanProductListGetAPIRequest.go b/model/scbp/AlibabaScbpTargetAdPlanProductListGetAPIRequest.go new file mode 100644 index 0000000000..5d259a925b --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanProductListGetAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-获取推广计划产品列表 API请求 +alibaba.scbp.target.ad.plan.product.list.get + +定向推广-获取推广计划产品列表 +*/ +type AlibabaScbpTargetAdPlanProductListGetAPIRequest struct { + model.Params + // TopP4pQuickProductQuery + _topP4pQuickProductQuery *TopP4pQuickProductQuery +} + +// 初始化AlibabaScbpTargetAdPlanProductListGetAPIRequest对象 +func NewAlibabaScbpTargetAdPlanProductListGetRequest() *AlibabaScbpTargetAdPlanProductListGetAPIRequest{ + return &AlibabaScbpTargetAdPlanProductListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpTargetAdPlanProductListGetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.target.ad.plan.product.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpTargetAdPlanProductListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TopP4pQuickProductQuery Setter +// TopP4pQuickProductQuery +func (r *AlibabaScbpTargetAdPlanProductListGetAPIRequest) SetTopP4pQuickProductQuery(_topP4pQuickProductQuery *TopP4pQuickProductQuery) error { + r._topP4pQuickProductQuery = _topP4pQuickProductQuery + r.Set("top_p4p_quick_product_query", _topP4pQuickProductQuery) + return nil +} + +// TopP4pQuickProductQuery Getter +func (r AlibabaScbpTargetAdPlanProductListGetAPIRequest) GetTopP4pQuickProductQuery() *TopP4pQuickProductQuery { + return r._topP4pQuickProductQuery +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanProductListGetAPIResponse.go b/model/scbp/AlibabaScbpTargetAdPlanProductListGetAPIResponse.go new file mode 100644 index 0000000000..88e889b13a --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanProductListGetAPIResponse.go @@ -0,0 +1,31 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-获取推广计划产品列表 API返回值 +alibaba.scbp.target.ad.plan.product.list.get + +定向推广-获取推广计划产品列表 +*/ +type AlibabaScbpTargetAdPlanProductListGetAPIResponse struct { + model.CommonResponse + AlibabaScbpTargetAdPlanProductListGetAPIResponseModel +} + +// 定向推广-获取推广计划产品列表 成功返回结果 +type AlibabaScbpTargetAdPlanProductListGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_product_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // TopP4pQuickCampaignProductView + ProductList []TopP4pQuickCampaignProductView `json:"product_list,omitempty" xml:"product_list>top_p4p_quick_campaign_product_view,omitempty"` + // 总页数 + TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` + // 总个数 + TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanProductListGetResponse.go b/model/scbp/AlibabaScbpTargetAdPlanProductListGetResponse.go deleted file mode 100644 index a779326a41..0000000000 --- a/model/scbp/AlibabaScbpTargetAdPlanProductListGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定向推广-获取推广计划产品列表 API返回值 -alibaba.scbp.target.ad.plan.product.list.get - -定向推广-获取推广计划产品列表 -*/ -type AlibabaScbpTargetAdPlanProductListGetAPIResponse struct { - model.CommonResponse - AlibabaScbpTargetAdPlanProductListGetResponse -} - -// 定向推广-获取推广计划产品列表 成功返回结果 -type AlibabaScbpTargetAdPlanProductListGetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_product_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // TopP4pQuickCampaignProductView - ProductList []TopP4pQuickCampaignProductView `json:"product_list,omitempty" xml:"product_list>top_p4p_quick_campaign_product_view,omitempty"` - // 总页数 - TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` - // 总个数 - TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` -} diff --git a/model/scbp/AlibabaScbpTargetAdPlanTagGetAPIRequest.go b/model/scbp/AlibabaScbpTargetAdPlanTagGetAPIRequest.go new file mode 100644 index 0000000000..d7a7fb6bbf --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanTagGetAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-获取计划的定向溢价数据 API请求 +alibaba.scbp.target.ad.plan.tag.get + +定向推广-获取计划的定向溢价数据 +*/ +type AlibabaScbpTargetAdPlanTagGetAPIRequest struct { + model.Params + // 推广计划Id + _campaignId int64 +} + +// 初始化AlibabaScbpTargetAdPlanTagGetAPIRequest对象 +func NewAlibabaScbpTargetAdPlanTagGetRequest() *AlibabaScbpTargetAdPlanTagGetAPIRequest{ + return &AlibabaScbpTargetAdPlanTagGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpTargetAdPlanTagGetAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.target.ad.plan.tag.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpTargetAdPlanTagGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 推广计划Id +func (r *AlibabaScbpTargetAdPlanTagGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r AlibabaScbpTargetAdPlanTagGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanTagGetAPIResponse.go b/model/scbp/AlibabaScbpTargetAdPlanTagGetAPIResponse.go new file mode 100644 index 0000000000..f89f9042fc --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanTagGetAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-获取计划的定向溢价数据 API返回值 +alibaba.scbp.target.ad.plan.tag.get + +定向推广-获取计划的定向溢价数据 +*/ +type AlibabaScbpTargetAdPlanTagGetAPIResponse struct { + model.CommonResponse + AlibabaScbpTargetAdPlanTagGetAPIResponseModel +} + +// 定向推广-获取计划的定向溢价数据 成功返回结果 +type AlibabaScbpTargetAdPlanTagGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_tag_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // TopP4pCampaignTargetingTagView + Result *TopP4pCampaignTargetingTagView `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanTagGetResponse.go b/model/scbp/AlibabaScbpTargetAdPlanTagGetResponse.go deleted file mode 100644 index b55d454f9e..0000000000 --- a/model/scbp/AlibabaScbpTargetAdPlanTagGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定向推广-获取计划的定向溢价数据 API返回值 -alibaba.scbp.target.ad.plan.tag.get - -定向推广-获取计划的定向溢价数据 -*/ -type AlibabaScbpTargetAdPlanTagGetAPIResponse struct { - model.CommonResponse - AlibabaScbpTargetAdPlanTagGetResponse -} - -// 定向推广-获取计划的定向溢价数据 成功返回结果 -type AlibabaScbpTargetAdPlanTagGetResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_tag_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // TopP4pCampaignTargetingTagView - Result *TopP4pCampaignTargetingTagView `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpTargetAdPlanUpdateAPIRequest.go b/model/scbp/AlibabaScbpTargetAdPlanUpdateAPIRequest.go new file mode 100644 index 0000000000..98ef76aaf7 --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-更新推广计划的基础信息 API请求 +alibaba.scbp.target.ad.plan.update + +定向推广-更新推广计划的基础信息 +*/ +type AlibabaScbpTargetAdPlanUpdateAPIRequest struct { + model.Params + // TopP4pBasicQuickCampaign + _topP4pBasicQuickCampaign *TopP4pBasicQuickCampaign +} + +// 初始化AlibabaScbpTargetAdPlanUpdateAPIRequest对象 +func NewAlibabaScbpTargetAdPlanUpdateRequest() *AlibabaScbpTargetAdPlanUpdateAPIRequest{ + return &AlibabaScbpTargetAdPlanUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpTargetAdPlanUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.target.ad.plan.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpTargetAdPlanUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TopP4pBasicQuickCampaign Setter +// TopP4pBasicQuickCampaign +func (r *AlibabaScbpTargetAdPlanUpdateAPIRequest) SetTopP4pBasicQuickCampaign(_topP4pBasicQuickCampaign *TopP4pBasicQuickCampaign) error { + r._topP4pBasicQuickCampaign = _topP4pBasicQuickCampaign + r.Set("top_p4p_basic_quick_campaign", _topP4pBasicQuickCampaign) + return nil +} + +// TopP4pBasicQuickCampaign Getter +func (r AlibabaScbpTargetAdPlanUpdateAPIRequest) GetTopP4pBasicQuickCampaign() *TopP4pBasicQuickCampaign { + return r._topP4pBasicQuickCampaign +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanUpdateAPIResponse.go b/model/scbp/AlibabaScbpTargetAdPlanUpdateAPIResponse.go new file mode 100644 index 0000000000..334d0ba4e0 --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广-更新推广计划的基础信息 API返回值 +alibaba.scbp.target.ad.plan.update + +定向推广-更新推广计划的基础信息 +*/ +type AlibabaScbpTargetAdPlanUpdateAPIResponse struct { + model.CommonResponse + AlibabaScbpTargetAdPlanUpdateAPIResponseModel +} + +// 定向推广-更新推广计划的基础信息 成功返回结果 +type AlibabaScbpTargetAdPlanUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true修改成功,false修改失败 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanUpdateProductsAPIRequest.go b/model/scbp/AlibabaScbpTargetAdPlanUpdateProductsAPIRequest.go new file mode 100644 index 0000000000..ef80c7df39 --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanUpdateProductsAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广 按照id操作推广计划的产品,包括新增,删除和更新 API请求 +alibaba.scbp.target.ad.plan.update.products + +定向推广 按照id操作推广计划的产品,包括新增,删除和更新 +*/ +type AlibabaScbpTargetAdPlanUpdateProductsAPIRequest struct { + model.Params + // 系统生成 + _paramTopP4pModifyQuickCampaignProductDTO *TopP4pModifyQuickCampaignProductDto +} + +// 初始化AlibabaScbpTargetAdPlanUpdateProductsAPIRequest对象 +func NewAlibabaScbpTargetAdPlanUpdateProductsRequest() *AlibabaScbpTargetAdPlanUpdateProductsAPIRequest{ + return &AlibabaScbpTargetAdPlanUpdateProductsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpTargetAdPlanUpdateProductsAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.target.ad.plan.update.products" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpTargetAdPlanUpdateProductsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamTopP4pModifyQuickCampaignProductDTO Setter +// 系统生成 +func (r *AlibabaScbpTargetAdPlanUpdateProductsAPIRequest) SetParamTopP4pModifyQuickCampaignProductDTO(_paramTopP4pModifyQuickCampaignProductDTO *TopP4pModifyQuickCampaignProductDto) error { + r._paramTopP4pModifyQuickCampaignProductDTO = _paramTopP4pModifyQuickCampaignProductDTO + r.Set("param_top_p4p_modify_quick_campaign_product_d_t_o", _paramTopP4pModifyQuickCampaignProductDTO) + return nil +} + +// ParamTopP4pModifyQuickCampaignProductDTO Getter +func (r AlibabaScbpTargetAdPlanUpdateProductsAPIRequest) GetParamTopP4pModifyQuickCampaignProductDTO() *TopP4pModifyQuickCampaignProductDto { + return r._paramTopP4pModifyQuickCampaignProductDTO +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanUpdateProductsAPIResponse.go b/model/scbp/AlibabaScbpTargetAdPlanUpdateProductsAPIResponse.go new file mode 100644 index 0000000000..bedb776e72 --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanUpdateProductsAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广 按照id操作推广计划的产品,包括新增,删除和更新 API返回值 +alibaba.scbp.target.ad.plan.update.products + +定向推广 按照id操作推广计划的产品,包括新增,删除和更新 +*/ +type AlibabaScbpTargetAdPlanUpdateProductsAPIResponse struct { + model.CommonResponse + AlibabaScbpTargetAdPlanUpdateProductsAPIResponseModel +} + +// 定向推广 按照id操作推广计划的产品,包括新增,删除和更新 成功返回结果 +type AlibabaScbpTargetAdPlanUpdateProductsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_update_products_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作成功的商品ID列表 + ProductIdList []int64 `json:"product_id_list,omitempty" xml:"product_id_list>int64,omitempty"` +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanUpdateProductsResponse.go b/model/scbp/AlibabaScbpTargetAdPlanUpdateProductsResponse.go deleted file mode 100644 index 4123170582..0000000000 --- a/model/scbp/AlibabaScbpTargetAdPlanUpdateProductsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定向推广 按照id操作推广计划的产品,包括新增,删除和更新 API返回值 -alibaba.scbp.target.ad.plan.update.products - -定向推广 按照id操作推广计划的产品,包括新增,删除和更新 -*/ -type AlibabaScbpTargetAdPlanUpdateProductsAPIResponse struct { - model.CommonResponse - AlibabaScbpTargetAdPlanUpdateProductsResponse -} - -// 定向推广 按照id操作推广计划的产品,包括新增,删除和更新 成功返回结果 -type AlibabaScbpTargetAdPlanUpdateProductsResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_update_products_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作成功的商品ID列表 - ProductIdList []int64 `json:"product_id_list,omitempty" xml:"product_id_list>int64,omitempty"` -} diff --git a/model/scbp/AlibabaScbpTargetAdPlanUpdateResponse.go b/model/scbp/AlibabaScbpTargetAdPlanUpdateResponse.go deleted file mode 100644 index 91156719a0..0000000000 --- a/model/scbp/AlibabaScbpTargetAdPlanUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定向推广-更新推广计划的基础信息 API返回值 -alibaba.scbp.target.ad.plan.update - -定向推广-更新推广计划的基础信息 -*/ -type AlibabaScbpTargetAdPlanUpdateAPIResponse struct { - model.CommonResponse - AlibabaScbpTargetAdPlanUpdateResponse -} - -// 定向推广-更新推广计划的基础信息 成功返回结果 -type AlibabaScbpTargetAdPlanUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true修改成功,false修改失败 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scbp/AlibabaScbpTargetAdPlanUpdateTagsAPIRequest.go b/model/scbp/AlibabaScbpTargetAdPlanUpdateTagsAPIRequest.go new file mode 100644 index 0000000000..f87c4acedd --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanUpdateTagsAPIRequest.go @@ -0,0 +1,52 @@ +package scbp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广 按照id操作推广计划的定向溢价标签,包括新增,删除和更新 API请求 +alibaba.scbp.target.ad.plan.update.tags + +定向推广 按照id操作推广计划的定向溢价标签,包括新增,删除和更新 +*/ +type AlibabaScbpTargetAdPlanUpdateTagsAPIRequest struct { + model.Params + // 系统生成 + _paramTopP4pModifyQuickCampaignTagDTO *TopP4pModifyQuickCampaignTagDto +} + +// 初始化AlibabaScbpTargetAdPlanUpdateTagsAPIRequest对象 +func NewAlibabaScbpTargetAdPlanUpdateTagsRequest() *AlibabaScbpTargetAdPlanUpdateTagsAPIRequest{ + return &AlibabaScbpTargetAdPlanUpdateTagsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScbpTargetAdPlanUpdateTagsAPIRequest) GetApiMethodName() string { + return "alibaba.scbp.target.ad.plan.update.tags" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScbpTargetAdPlanUpdateTagsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamTopP4pModifyQuickCampaignTagDTO Setter +// 系统生成 +func (r *AlibabaScbpTargetAdPlanUpdateTagsAPIRequest) SetParamTopP4pModifyQuickCampaignTagDTO(_paramTopP4pModifyQuickCampaignTagDTO *TopP4pModifyQuickCampaignTagDto) error { + r._paramTopP4pModifyQuickCampaignTagDTO = _paramTopP4pModifyQuickCampaignTagDTO + r.Set("param_top_p4p_modify_quick_campaign_tag_d_t_o", _paramTopP4pModifyQuickCampaignTagDTO) + return nil +} + +// ParamTopP4pModifyQuickCampaignTagDTO Getter +func (r AlibabaScbpTargetAdPlanUpdateTagsAPIRequest) GetParamTopP4pModifyQuickCampaignTagDTO() *TopP4pModifyQuickCampaignTagDto { + return r._paramTopP4pModifyQuickCampaignTagDTO +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanUpdateTagsAPIResponse.go b/model/scbp/AlibabaScbpTargetAdPlanUpdateTagsAPIResponse.go new file mode 100644 index 0000000000..674610e0b5 --- /dev/null +++ b/model/scbp/AlibabaScbpTargetAdPlanUpdateTagsAPIResponse.go @@ -0,0 +1,27 @@ +package scbp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定向推广 按照id操作推广计划的定向溢价标签,包括新增,删除和更新 API返回值 +alibaba.scbp.target.ad.plan.update.tags + +定向推广 按照id操作推广计划的定向溢价标签,包括新增,删除和更新 +*/ +type AlibabaScbpTargetAdPlanUpdateTagsAPIResponse struct { + model.CommonResponse + AlibabaScbpTargetAdPlanUpdateTagsAPIResponseModel +} + +// 定向推广 按照id操作推广计划的定向溢价标签,包括新增,删除和更新 成功返回结果 +type AlibabaScbpTargetAdPlanUpdateTagsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_update_tags_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改记录数量 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/scbp/AlibabaScbpTargetAdPlanUpdateTagsResponse.go b/model/scbp/AlibabaScbpTargetAdPlanUpdateTagsResponse.go deleted file mode 100644 index d108d41a00..0000000000 --- a/model/scbp/AlibabaScbpTargetAdPlanUpdateTagsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package scbp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定向推广 按照id操作推广计划的定向溢价标签,包括新增,删除和更新 API返回值 -alibaba.scbp.target.ad.plan.update.tags - -定向推广 按照id操作推广计划的定向溢价标签,包括新增,删除和更新 -*/ -type AlibabaScbpTargetAdPlanUpdateTagsAPIResponse struct { - model.CommonResponse - AlibabaScbpTargetAdPlanUpdateTagsResponse -} - -// 定向推广 按照id操作推广计划的定向溢价标签,包括新增,删除和更新 成功返回结果 -type AlibabaScbpTargetAdPlanUpdateTagsResponse struct { - XMLName xml.Name `xml:"alibaba_scbp_target_ad_plan_update_tags_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改记录数量 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/scs/AlibabaScsImageMatteAPIRequest.go b/model/scs/AlibabaScsImageMatteAPIRequest.go new file mode 100644 index 0000000000..293c71955e --- /dev/null +++ b/model/scs/AlibabaScsImageMatteAPIRequest.go @@ -0,0 +1,122 @@ +package scs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里妈妈智能创意平台在线抠图 API请求 +alibaba.scs.image.matte + +该API对外输出一个在线抠图(Deep Image Matting)接口,合作方可以通过该接口利用深度学习抠图算法从图片中抠出目标对象(比如商品或者人物轮廓) +*/ +type AlibabaScsImageMatteAPIRequest struct { + model.Params + // 资源位ID,接入前由智能创意平台分配 + _pid string + // 服务名称,可选值: scs + _name string + // 场景名称,可选值: image_cutout + _scenes string + // 抠图上下文信息,json字符串格式,json中matting_type字段可选值: external_matting,url: 需要抠图的目标图片url + _obExt string + // 32位uuid + _sessionid string + // 当前秒级时间戳 + _ts string +} + +// 初始化AlibabaScsImageMatteAPIRequest对象 +func NewAlibabaScsImageMatteRequest() *AlibabaScsImageMatteAPIRequest{ + return &AlibabaScsImageMatteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaScsImageMatteAPIRequest) GetApiMethodName() string { + return "alibaba.scs.image.matte" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaScsImageMatteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Pid Setter +// 资源位ID,接入前由智能创意平台分配 +func (r *AlibabaScsImageMatteAPIRequest) SetPid(_pid string) error { + r._pid = _pid + r.Set("pid", _pid) + return nil +} + +// Pid Getter +func (r AlibabaScsImageMatteAPIRequest) GetPid() string { + return r._pid +} +// Name Setter +// 服务名称,可选值: scs +func (r *AlibabaScsImageMatteAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r AlibabaScsImageMatteAPIRequest) GetName() string { + return r._name +} +// Scenes Setter +// 场景名称,可选值: image_cutout +func (r *AlibabaScsImageMatteAPIRequest) SetScenes(_scenes string) error { + r._scenes = _scenes + r.Set("scenes", _scenes) + return nil +} + +// Scenes Getter +func (r AlibabaScsImageMatteAPIRequest) GetScenes() string { + return r._scenes +} +// ObExt Setter +// 抠图上下文信息,json字符串格式,json中matting_type字段可选值: external_matting,url: 需要抠图的目标图片url +func (r *AlibabaScsImageMatteAPIRequest) SetObExt(_obExt string) error { + r._obExt = _obExt + r.Set("ob_ext", _obExt) + return nil +} + +// ObExt Getter +func (r AlibabaScsImageMatteAPIRequest) GetObExt() string { + return r._obExt +} +// Sessionid Setter +// 32位uuid +func (r *AlibabaScsImageMatteAPIRequest) SetSessionid(_sessionid string) error { + r._sessionid = _sessionid + r.Set("sessionid", _sessionid) + return nil +} + +// Sessionid Getter +func (r AlibabaScsImageMatteAPIRequest) GetSessionid() string { + return r._sessionid +} +// Ts Setter +// 当前秒级时间戳 +func (r *AlibabaScsImageMatteAPIRequest) SetTs(_ts string) error { + r._ts = _ts + r.Set("ts", _ts) + return nil +} + +// Ts Getter +func (r AlibabaScsImageMatteAPIRequest) GetTs() string { + return r._ts +} diff --git a/model/scs/AlibabaScsImageMatteAPIResponse.go b/model/scs/AlibabaScsImageMatteAPIResponse.go new file mode 100644 index 0000000000..a33ff3090a --- /dev/null +++ b/model/scs/AlibabaScsImageMatteAPIResponse.go @@ -0,0 +1,35 @@ +package scs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里妈妈智能创意平台在线抠图 API返回值 +alibaba.scs.image.matte + +该API对外输出一个在线抠图(Deep Image Matting)接口,合作方可以通过该接口利用深度学习抠图算法从图片中抠出目标对象(比如商品或者人物轮廓) +*/ +type AlibabaScsImageMatteAPIResponse struct { + model.CommonResponse + AlibabaScsImageMatteAPIResponseModel +} + +// 阿里妈妈智能创意平台在线抠图 成功返回结果 +type AlibabaScsImageMatteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_scs_image_matte_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + Errno string `json:"errno,omitempty" xml:"errno,omitempty"` + // 分组数据 + DataList []Array `json:"data_list,omitempty" xml:"data_list>array,omitempty"` + // 错误提示信息 + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` + // 会话ID + SessionId string `json:"session_id,omitempty" xml:"session_id,omitempty"` + // 桶号ID (调用方暂不用关心) + Bucketid string `json:"bucketid,omitempty" xml:"bucketid,omitempty"` +} diff --git a/model/scs/AlibabaScsImageMatteResponse.go b/model/scs/AlibabaScsImageMatteResponse.go deleted file mode 100644 index d87f9040eb..0000000000 --- a/model/scs/AlibabaScsImageMatteResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package scs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里妈妈智能创意平台在线抠图 API返回值 -alibaba.scs.image.matte - -该API对外输出一个在线抠图(Deep Image Matting)接口,合作方可以通过该接口利用深度学习抠图算法从图片中抠出目标对象(比如商品或者人物轮廓) -*/ -type AlibabaScsImageMatteAPIResponse struct { - model.CommonResponse - AlibabaScsImageMatteResponse -} - -// 阿里妈妈智能创意平台在线抠图 成功返回结果 -type AlibabaScsImageMatteResponse struct { - XMLName xml.Name `xml:"alibaba_scs_image_matte_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - Errno string `json:"errno,omitempty" xml:"errno,omitempty"` - // 分组数据 - DataList []Array `json:"data_list,omitempty" xml:"data_list>array,omitempty"` - // 错误提示信息 - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` - // 会话ID - SessionId string `json:"session_id,omitempty" xml:"session_id,omitempty"` - // 桶号ID (调用方暂不用关心) - Bucketid string `json:"bucketid,omitempty" xml:"bucketid,omitempty"` -} diff --git a/model/seaking/AlibabaAlifanyiMarketAuthenticateAPIRequest.go b/model/seaking/AlibabaAlifanyiMarketAuthenticateAPIRequest.go new file mode 100644 index 0000000000..1a23841b79 --- /dev/null +++ b/model/seaking/AlibabaAlifanyiMarketAuthenticateAPIRequest.go @@ -0,0 +1,52 @@ +package seaking + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +第三方授权 API请求 +alibaba.alifanyi.market.authenticate + +第三方授权,获取授权码 +*/ +type AlibabaAlifanyiMarketAuthenticateAPIRequest struct { + model.Params + // 有效时长 + _expireTime int64 +} + +// 初始化AlibabaAlifanyiMarketAuthenticateAPIRequest对象 +func NewAlibabaAlifanyiMarketAuthenticateRequest() *AlibabaAlifanyiMarketAuthenticateAPIRequest{ + return &AlibabaAlifanyiMarketAuthenticateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlifanyiMarketAuthenticateAPIRequest) GetApiMethodName() string { + return "alibaba.alifanyi.market.authenticate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlifanyiMarketAuthenticateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExpireTime Setter +// 有效时长 +func (r *AlibabaAlifanyiMarketAuthenticateAPIRequest) SetExpireTime(_expireTime int64) error { + r._expireTime = _expireTime + r.Set("expire_time", _expireTime) + return nil +} + +// ExpireTime Getter +func (r AlibabaAlifanyiMarketAuthenticateAPIRequest) GetExpireTime() int64 { + return r._expireTime +} diff --git a/model/seaking/AlibabaAlifanyiMarketAuthenticateAPIResponse.go b/model/seaking/AlibabaAlifanyiMarketAuthenticateAPIResponse.go new file mode 100644 index 0000000000..54db16ab27 --- /dev/null +++ b/model/seaking/AlibabaAlifanyiMarketAuthenticateAPIResponse.go @@ -0,0 +1,33 @@ +package seaking + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +第三方授权 API返回值 +alibaba.alifanyi.market.authenticate + +第三方授权,获取授权码 +*/ +type AlibabaAlifanyiMarketAuthenticateAPIResponse struct { + model.CommonResponse + AlibabaAlifanyiMarketAuthenticateAPIResponseModel +} + +// 第三方授权 成功返回结果 +type AlibabaAlifanyiMarketAuthenticateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alifanyi_market_authenticate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 授权码 + Data string `json:"data,omitempty" xml:"data,omitempty"` + // 错误描述 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + BizErrorCode int64 `json:"biz_error_code,omitempty" xml:"biz_error_code,omitempty"` + // 接口是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/seaking/AlibabaAlifanyiMarketAuthenticateResponse.go b/model/seaking/AlibabaAlifanyiMarketAuthenticateResponse.go deleted file mode 100644 index 3fd9f14cd2..0000000000 --- a/model/seaking/AlibabaAlifanyiMarketAuthenticateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package seaking - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -第三方授权 API返回值 -alibaba.alifanyi.market.authenticate - -第三方授权,获取授权码 -*/ -type AlibabaAlifanyiMarketAuthenticateAPIResponse struct { - model.CommonResponse - AlibabaAlifanyiMarketAuthenticateResponse -} - -// 第三方授权 成功返回结果 -type AlibabaAlifanyiMarketAuthenticateResponse struct { - XMLName xml.Name `xml:"alibaba_alifanyi_market_authenticate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 授权码 - Data string `json:"data,omitempty" xml:"data,omitempty"` - // 错误描述 - ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` - // 错误码 - BizErrorCode int64 `json:"biz_error_code,omitempty" xml:"biz_error_code,omitempty"` - // 接口是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/seaking/AlibabaAlifanyiMarketExamAPIRequest.go b/model/seaking/AlibabaAlifanyiMarketExamAPIRequest.go new file mode 100644 index 0000000000..d221b2ca15 --- /dev/null +++ b/model/seaking/AlibabaAlifanyiMarketExamAPIRequest.go @@ -0,0 +1,52 @@ +package seaking + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过考试用户 API请求 +alibaba.alifanyi.market.exam + +企业或组织购买软件服务后可参与阿里翻译在线系统的考试认证,接口返回该企业或组织认证通过的用户 +*/ +type AlibabaAlifanyiMarketExamAPIRequest struct { + model.Params + // 请求参数 + _reportQueryApiDTO *ReportQueryApiDto +} + +// 初始化AlibabaAlifanyiMarketExamAPIRequest对象 +func NewAlibabaAlifanyiMarketExamRequest() *AlibabaAlifanyiMarketExamAPIRequest{ + return &AlibabaAlifanyiMarketExamAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlifanyiMarketExamAPIRequest) GetApiMethodName() string { + return "alibaba.alifanyi.market.exam" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlifanyiMarketExamAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReportQueryApiDTO Setter +// 请求参数 +func (r *AlibabaAlifanyiMarketExamAPIRequest) SetReportQueryApiDTO(_reportQueryApiDTO *ReportQueryApiDto) error { + r._reportQueryApiDTO = _reportQueryApiDTO + r.Set("report_query_api_d_t_o", _reportQueryApiDTO) + return nil +} + +// ReportQueryApiDTO Getter +func (r AlibabaAlifanyiMarketExamAPIRequest) GetReportQueryApiDTO() *ReportQueryApiDto { + return r._reportQueryApiDTO +} diff --git a/model/seaking/AlibabaAlifanyiMarketExamAPIResponse.go b/model/seaking/AlibabaAlifanyiMarketExamAPIResponse.go new file mode 100644 index 0000000000..621d5bb25f --- /dev/null +++ b/model/seaking/AlibabaAlifanyiMarketExamAPIResponse.go @@ -0,0 +1,27 @@ +package seaking + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过考试用户 API返回值 +alibaba.alifanyi.market.exam + +企业或组织购买软件服务后可参与阿里翻译在线系统的考试认证,接口返回该企业或组织认证通过的用户 +*/ +type AlibabaAlifanyiMarketExamAPIResponse struct { + model.CommonResponse + AlibabaAlifanyiMarketExamAPIResponseModel +} + +// 通过考试用户 成功返回结果 +type AlibabaAlifanyiMarketExamAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alifanyi_market_exam_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *ResMsgClientDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/seaking/AlibabaAlifanyiMarketExamResponse.go b/model/seaking/AlibabaAlifanyiMarketExamResponse.go deleted file mode 100644 index 1f5e2031a7..0000000000 --- a/model/seaking/AlibabaAlifanyiMarketExamResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package seaking - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过考试用户 API返回值 -alibaba.alifanyi.market.exam - -企业或组织购买软件服务后可参与阿里翻译在线系统的考试认证,接口返回该企业或组织认证通过的用户 -*/ -type AlibabaAlifanyiMarketExamAPIResponse struct { - model.CommonResponse - AlibabaAlifanyiMarketExamResponse -} - -// 通过考试用户 成功返回结果 -type AlibabaAlifanyiMarketExamResponse struct { - XMLName xml.Name `xml:"alibaba_alifanyi_market_exam_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *ResMsgClientDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/seaking/AlibabaAlifanyiMarketLoginAPIRequest.go b/model/seaking/AlibabaAlifanyiMarketLoginAPIRequest.go new file mode 100644 index 0000000000..0afd1ca10b --- /dev/null +++ b/model/seaking/AlibabaAlifanyiMarketLoginAPIRequest.go @@ -0,0 +1,52 @@ +package seaking + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +登陆用户 API请求 +alibaba.alifanyi.market.login + +企业或组织购买软件服务后可登陆阿里翻译众包系统,接口返回该企业的用户。 +*/ +type AlibabaAlifanyiMarketLoginAPIRequest struct { + model.Params + // 请求参数 + _reportQueryApiDTO *ReportQueryApiDto +} + +// 初始化AlibabaAlifanyiMarketLoginAPIRequest对象 +func NewAlibabaAlifanyiMarketLoginRequest() *AlibabaAlifanyiMarketLoginAPIRequest{ + return &AlibabaAlifanyiMarketLoginAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlifanyiMarketLoginAPIRequest) GetApiMethodName() string { + return "alibaba.alifanyi.market.login" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlifanyiMarketLoginAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReportQueryApiDTO Setter +// 请求参数 +func (r *AlibabaAlifanyiMarketLoginAPIRequest) SetReportQueryApiDTO(_reportQueryApiDTO *ReportQueryApiDto) error { + r._reportQueryApiDTO = _reportQueryApiDTO + r.Set("report_query_api_d_t_o", _reportQueryApiDTO) + return nil +} + +// ReportQueryApiDTO Getter +func (r AlibabaAlifanyiMarketLoginAPIRequest) GetReportQueryApiDTO() *ReportQueryApiDto { + return r._reportQueryApiDTO +} diff --git a/model/seaking/AlibabaAlifanyiMarketLoginAPIResponse.go b/model/seaking/AlibabaAlifanyiMarketLoginAPIResponse.go new file mode 100644 index 0000000000..7066f802f3 --- /dev/null +++ b/model/seaking/AlibabaAlifanyiMarketLoginAPIResponse.go @@ -0,0 +1,27 @@ +package seaking + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +登陆用户 API返回值 +alibaba.alifanyi.market.login + +企业或组织购买软件服务后可登陆阿里翻译众包系统,接口返回该企业的用户。 +*/ +type AlibabaAlifanyiMarketLoginAPIResponse struct { + model.CommonResponse + AlibabaAlifanyiMarketLoginAPIResponseModel +} + +// 登陆用户 成功返回结果 +type AlibabaAlifanyiMarketLoginAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alifanyi_market_login_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *ResMsgClientDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/seaking/AlibabaAlifanyiMarketLoginResponse.go b/model/seaking/AlibabaAlifanyiMarketLoginResponse.go deleted file mode 100644 index 3649c1d4c2..0000000000 --- a/model/seaking/AlibabaAlifanyiMarketLoginResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package seaking - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -登陆用户 API返回值 -alibaba.alifanyi.market.login - -企业或组织购买软件服务后可登陆阿里翻译众包系统,接口返回该企业的用户。 -*/ -type AlibabaAlifanyiMarketLoginAPIResponse struct { - model.CommonResponse - AlibabaAlifanyiMarketLoginResponse -} - -// 登陆用户 成功返回结果 -type AlibabaAlifanyiMarketLoginResponse struct { - XMLName xml.Name `xml:"alibaba_alifanyi_market_login_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *ResMsgClientDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/seaking/AlibabaSeakingAititlegenerateAPIRequest.go b/model/seaking/AlibabaSeakingAititlegenerateAPIRequest.go new file mode 100644 index 0000000000..32997758be --- /dev/null +++ b/model/seaking/AlibabaSeakingAititlegenerateAPIRequest.go @@ -0,0 +1,150 @@ +package seaking + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +标题智能优化 API请求 +alibaba.seaking.aititlegenerate + +标题智能优化 +*/ +type AlibabaSeakingAititlegenerateAPIRequest struct { + model.Params + // erp用户id + _identifier string + // 扩展信息 + _extra *Extra + // 语种 + _language string + // 商品属性 + _attributes string + // 调用来源(erp名称) + _identifierType string + // 标题 + _title string + // 商品所在平台(ae/icbu) + _platform string + // 类目id,没有的时候传-1 + _categoryId int64 +} + +// 初始化AlibabaSeakingAititlegenerateAPIRequest对象 +func NewAlibabaSeakingAititlegenerateRequest() *AlibabaSeakingAititlegenerateAPIRequest{ + return &AlibabaSeakingAititlegenerateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSeakingAititlegenerateAPIRequest) GetApiMethodName() string { + return "alibaba.seaking.aititlegenerate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSeakingAititlegenerateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Identifier Setter +// erp用户id +func (r *AlibabaSeakingAititlegenerateAPIRequest) SetIdentifier(_identifier string) error { + r._identifier = _identifier + r.Set("identifier", _identifier) + return nil +} + +// Identifier Getter +func (r AlibabaSeakingAititlegenerateAPIRequest) GetIdentifier() string { + return r._identifier +} +// Extra Setter +// 扩展信息 +func (r *AlibabaSeakingAititlegenerateAPIRequest) SetExtra(_extra *Extra) error { + r._extra = _extra + r.Set("extra", _extra) + return nil +} + +// Extra Getter +func (r AlibabaSeakingAititlegenerateAPIRequest) GetExtra() *Extra { + return r._extra +} +// Language Setter +// 语种 +func (r *AlibabaSeakingAititlegenerateAPIRequest) SetLanguage(_language string) error { + r._language = _language + r.Set("language", _language) + return nil +} + +// Language Getter +func (r AlibabaSeakingAititlegenerateAPIRequest) GetLanguage() string { + return r._language +} +// Attributes Setter +// 商品属性 +func (r *AlibabaSeakingAititlegenerateAPIRequest) SetAttributes(_attributes string) error { + r._attributes = _attributes + r.Set("attributes", _attributes) + return nil +} + +// Attributes Getter +func (r AlibabaSeakingAititlegenerateAPIRequest) GetAttributes() string { + return r._attributes +} +// IdentifierType Setter +// 调用来源(erp名称) +func (r *AlibabaSeakingAititlegenerateAPIRequest) SetIdentifierType(_identifierType string) error { + r._identifierType = _identifierType + r.Set("identifier_type", _identifierType) + return nil +} + +// IdentifierType Getter +func (r AlibabaSeakingAititlegenerateAPIRequest) GetIdentifierType() string { + return r._identifierType +} +// Title Setter +// 标题 +func (r *AlibabaSeakingAititlegenerateAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r AlibabaSeakingAititlegenerateAPIRequest) GetTitle() string { + return r._title +} +// Platform Setter +// 商品所在平台(ae/icbu) +func (r *AlibabaSeakingAititlegenerateAPIRequest) SetPlatform(_platform string) error { + r._platform = _platform + r.Set("platform", _platform) + return nil +} + +// Platform Getter +func (r AlibabaSeakingAititlegenerateAPIRequest) GetPlatform() string { + return r._platform +} +// CategoryId Setter +// 类目id,没有的时候传-1 +func (r *AlibabaSeakingAititlegenerateAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r AlibabaSeakingAititlegenerateAPIRequest) GetCategoryId() int64 { + return r._categoryId +} diff --git a/model/seaking/AlibabaSeakingAititlegenerateAPIResponse.go b/model/seaking/AlibabaSeakingAititlegenerateAPIResponse.go new file mode 100644 index 0000000000..b7cc4ce210 --- /dev/null +++ b/model/seaking/AlibabaSeakingAititlegenerateAPIResponse.go @@ -0,0 +1,27 @@ +package seaking + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +标题智能优化 API返回值 +alibaba.seaking.aititlegenerate + +标题智能优化 +*/ +type AlibabaSeakingAititlegenerateAPIResponse struct { + model.CommonResponse + AlibabaSeakingAititlegenerateAPIResponseModel +} + +// 标题智能优化 成功返回结果 +type AlibabaSeakingAititlegenerateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_seaking_aititlegenerate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 智能生成的标题列表 + ResultList []string `json:"result_list,omitempty" xml:"result_list>string,omitempty"` +} diff --git a/model/seaking/AlibabaSeakingAititlegenerateResponse.go b/model/seaking/AlibabaSeakingAititlegenerateResponse.go deleted file mode 100644 index fd17bf3ae1..0000000000 --- a/model/seaking/AlibabaSeakingAititlegenerateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package seaking - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -标题智能优化 API返回值 -alibaba.seaking.aititlegenerate - -标题智能优化 -*/ -type AlibabaSeakingAititlegenerateAPIResponse struct { - model.CommonResponse - AlibabaSeakingAititlegenerateResponse -} - -// 标题智能优化 成功返回结果 -type AlibabaSeakingAititlegenerateResponse struct { - XMLName xml.Name `xml:"alibaba_seaking_aititlegenerate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 智能生成的标题列表 - ResultList []string `json:"result_list,omitempty" xml:"result_list>string,omitempty"` -} diff --git a/model/seaking/AlibabaSeakingAuthmachineapiAPIRequest.go b/model/seaking/AlibabaSeakingAuthmachineapiAPIRequest.go new file mode 100644 index 0000000000..e8b1b72607 --- /dev/null +++ b/model/seaking/AlibabaSeakingAuthmachineapiAPIRequest.go @@ -0,0 +1,94 @@ +package seaking + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +机翻Api授权 API请求 +alibaba.seaking.authmachineapi + +机翻Api授权 +*/ +type AlibabaSeakingAuthmachineapiAPIRequest struct { + model.Params + // erp名称 + _identifyType string + // erp用户id + _identifier string + // 店铺所在平台 + _subIdentifyType string + // 店铺id(ae为cn开头的店铺id, lazada为邮箱) + _subIdentifier string +} + +// 初始化AlibabaSeakingAuthmachineapiAPIRequest对象 +func NewAlibabaSeakingAuthmachineapiRequest() *AlibabaSeakingAuthmachineapiAPIRequest{ + return &AlibabaSeakingAuthmachineapiAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSeakingAuthmachineapiAPIRequest) GetApiMethodName() string { + return "alibaba.seaking.authmachineapi" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSeakingAuthmachineapiAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IdentifyType Setter +// erp名称 +func (r *AlibabaSeakingAuthmachineapiAPIRequest) SetIdentifyType(_identifyType string) error { + r._identifyType = _identifyType + r.Set("identify_type", _identifyType) + return nil +} + +// IdentifyType Getter +func (r AlibabaSeakingAuthmachineapiAPIRequest) GetIdentifyType() string { + return r._identifyType +} +// Identifier Setter +// erp用户id +func (r *AlibabaSeakingAuthmachineapiAPIRequest) SetIdentifier(_identifier string) error { + r._identifier = _identifier + r.Set("identifier", _identifier) + return nil +} + +// Identifier Getter +func (r AlibabaSeakingAuthmachineapiAPIRequest) GetIdentifier() string { + return r._identifier +} +// SubIdentifyType Setter +// 店铺所在平台 +func (r *AlibabaSeakingAuthmachineapiAPIRequest) SetSubIdentifyType(_subIdentifyType string) error { + r._subIdentifyType = _subIdentifyType + r.Set("sub_identify_type", _subIdentifyType) + return nil +} + +// SubIdentifyType Getter +func (r AlibabaSeakingAuthmachineapiAPIRequest) GetSubIdentifyType() string { + return r._subIdentifyType +} +// SubIdentifier Setter +// 店铺id(ae为cn开头的店铺id, lazada为邮箱) +func (r *AlibabaSeakingAuthmachineapiAPIRequest) SetSubIdentifier(_subIdentifier string) error { + r._subIdentifier = _subIdentifier + r.Set("sub_identifier", _subIdentifier) + return nil +} + +// SubIdentifier Getter +func (r AlibabaSeakingAuthmachineapiAPIRequest) GetSubIdentifier() string { + return r._subIdentifier +} diff --git a/model/seaking/AlibabaSeakingAuthmachineapiAPIResponse.go b/model/seaking/AlibabaSeakingAuthmachineapiAPIResponse.go new file mode 100644 index 0000000000..62930ba4ba --- /dev/null +++ b/model/seaking/AlibabaSeakingAuthmachineapiAPIResponse.go @@ -0,0 +1,27 @@ +package seaking + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +机翻Api授权 API返回值 +alibaba.seaking.authmachineapi + +机翻Api授权 +*/ +type AlibabaSeakingAuthmachineapiAPIResponse struct { + model.CommonResponse + AlibabaSeakingAuthmachineapiAPIResponseModel +} + +// 机翻Api授权 成功返回结果 +type AlibabaSeakingAuthmachineapiAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_seaking_authmachineapi_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/seaking/AlibabaSeakingAuthmachineapiResponse.go b/model/seaking/AlibabaSeakingAuthmachineapiResponse.go deleted file mode 100644 index ac7ceb2a32..0000000000 --- a/model/seaking/AlibabaSeakingAuthmachineapiResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package seaking - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -机翻Api授权 API返回值 -alibaba.seaking.authmachineapi - -机翻Api授权 -*/ -type AlibabaSeakingAuthmachineapiAPIResponse struct { - model.CommonResponse - AlibabaSeakingAuthmachineapiResponse -} - -// 机翻Api授权 成功返回结果 -type AlibabaSeakingAuthmachineapiResponse struct { - XMLName xml.Name `xml:"alibaba_seaking_authmachineapi_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/seaking/AlibabaSeakingDiagnosistitleAPIRequest.go b/model/seaking/AlibabaSeakingDiagnosistitleAPIRequest.go new file mode 100644 index 0000000000..35cfaea8fb --- /dev/null +++ b/model/seaking/AlibabaSeakingDiagnosistitleAPIRequest.go @@ -0,0 +1,136 @@ +package seaking + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +标题诊断 API请求 +alibaba.seaking.diagnosistitle + +标题诊断 +*/ +type AlibabaSeakingDiagnosistitleAPIRequest struct { + model.Params + // 类目id,没有的时候传-1 + _categoryId int64 + // 扩展信息 + _extra *Extra + // erp用户id + _identifier string + // 调用来源(erp名称) + _identifierType string + // 语种 + _language string + // 商品所在平台(ae/icbu) + _platform string + // 标题 + _title string +} + +// 初始化AlibabaSeakingDiagnosistitleAPIRequest对象 +func NewAlibabaSeakingDiagnosistitleRequest() *AlibabaSeakingDiagnosistitleAPIRequest{ + return &AlibabaSeakingDiagnosistitleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSeakingDiagnosistitleAPIRequest) GetApiMethodName() string { + return "alibaba.seaking.diagnosistitle" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSeakingDiagnosistitleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CategoryId Setter +// 类目id,没有的时候传-1 +func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetCategoryId(_categoryId int64) error { + r._categoryId = _categoryId + r.Set("category_id", _categoryId) + return nil +} + +// CategoryId Getter +func (r AlibabaSeakingDiagnosistitleAPIRequest) GetCategoryId() int64 { + return r._categoryId +} +// Extra Setter +// 扩展信息 +func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetExtra(_extra *Extra) error { + r._extra = _extra + r.Set("extra", _extra) + return nil +} + +// Extra Getter +func (r AlibabaSeakingDiagnosistitleAPIRequest) GetExtra() *Extra { + return r._extra +} +// Identifier Setter +// erp用户id +func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetIdentifier(_identifier string) error { + r._identifier = _identifier + r.Set("identifier", _identifier) + return nil +} + +// Identifier Getter +func (r AlibabaSeakingDiagnosistitleAPIRequest) GetIdentifier() string { + return r._identifier +} +// IdentifierType Setter +// 调用来源(erp名称) +func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetIdentifierType(_identifierType string) error { + r._identifierType = _identifierType + r.Set("identifier_type", _identifierType) + return nil +} + +// IdentifierType Getter +func (r AlibabaSeakingDiagnosistitleAPIRequest) GetIdentifierType() string { + return r._identifierType +} +// Language Setter +// 语种 +func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetLanguage(_language string) error { + r._language = _language + r.Set("language", _language) + return nil +} + +// Language Getter +func (r AlibabaSeakingDiagnosistitleAPIRequest) GetLanguage() string { + return r._language +} +// Platform Setter +// 商品所在平台(ae/icbu) +func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetPlatform(_platform string) error { + r._platform = _platform + r.Set("platform", _platform) + return nil +} + +// Platform Getter +func (r AlibabaSeakingDiagnosistitleAPIRequest) GetPlatform() string { + return r._platform +} +// Title Setter +// 标题 +func (r *AlibabaSeakingDiagnosistitleAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r AlibabaSeakingDiagnosistitleAPIRequest) GetTitle() string { + return r._title +} diff --git a/model/seaking/AlibabaSeakingDiagnosistitleAPIResponse.go b/model/seaking/AlibabaSeakingDiagnosistitleAPIResponse.go new file mode 100644 index 0000000000..3bca7972e6 --- /dev/null +++ b/model/seaking/AlibabaSeakingDiagnosistitleAPIResponse.go @@ -0,0 +1,43 @@ +package seaking + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +标题诊断 API返回值 +alibaba.seaking.diagnosistitle + +标题诊断 +*/ +type AlibabaSeakingDiagnosistitleAPIResponse struct { + model.CommonResponse + AlibabaSeakingDiagnosistitleAPIResponseModel +} + +// 标题诊断 成功返回结果 +type AlibabaSeakingDiagnosistitleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_seaking_diagnosistitle_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 全大写的单词 + AllUppercaseWords []string `json:"all_uppercase_words,omitempty" xml:"all_uppercase_words>string,omitempty"` + // 是否包含类目主词 + ContainCoreClasses bool `json:"contain_core_classes,omitempty" xml:"contain_core_classes,omitempty"` + // 违禁词 + DisableWordList []string `json:"disable_word_list,omitempty" xml:"disable_word_list>string,omitempty"` + // 重复的词 + DuplicateWordList []string `json:"duplicate_word_list,omitempty" xml:"duplicate_word_list>string,omitempty"` + // 语言质量分(0-5) + LanguageQualityScore string `json:"language_quality_score,omitempty" xml:"language_quality_score,omitempty"` + // 首字母未大写单词 + NoFirstUppercaseWordList []string `json:"no_first_uppercase_word_list,omitempty" xml:"no_first_uppercase_word_list>string,omitempty"` + // 标题是否超过长度限制 + OverLengthLimit bool `json:"over_length_limit,omitempty" xml:"over_length_limit,omitempty"` + // 总分(0-100) + TotalScore int64 `json:"total_score,omitempty" xml:"total_score,omitempty"` + // 拼写错误的单词 + SpellErrorWordList []string `json:"spell_error_word_list,omitempty" xml:"spell_error_word_list>string,omitempty"` +} diff --git a/model/seaking/AlibabaSeakingDiagnosistitleResponse.go b/model/seaking/AlibabaSeakingDiagnosistitleResponse.go deleted file mode 100644 index e68245a349..0000000000 --- a/model/seaking/AlibabaSeakingDiagnosistitleResponse.go +++ /dev/null @@ -1,43 +0,0 @@ -package seaking - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -标题诊断 API返回值 -alibaba.seaking.diagnosistitle - -标题诊断 -*/ -type AlibabaSeakingDiagnosistitleAPIResponse struct { - model.CommonResponse - AlibabaSeakingDiagnosistitleResponse -} - -// 标题诊断 成功返回结果 -type AlibabaSeakingDiagnosistitleResponse struct { - XMLName xml.Name `xml:"alibaba_seaking_diagnosistitle_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 全大写的单词 - AllUppercaseWords []string `json:"all_uppercase_words,omitempty" xml:"all_uppercase_words>string,omitempty"` - // 是否包含类目主词 - ContainCoreClasses bool `json:"contain_core_classes,omitempty" xml:"contain_core_classes,omitempty"` - // 违禁词 - DisableWordList []string `json:"disable_word_list,omitempty" xml:"disable_word_list>string,omitempty"` - // 重复的词 - DuplicateWordList []string `json:"duplicate_word_list,omitempty" xml:"duplicate_word_list>string,omitempty"` - // 语言质量分(0-5) - LanguageQualityScore string `json:"language_quality_score,omitempty" xml:"language_quality_score,omitempty"` - // 首字母未大写单词 - NoFirstUppercaseWordList []string `json:"no_first_uppercase_word_list,omitempty" xml:"no_first_uppercase_word_list>string,omitempty"` - // 标题是否超过长度限制 - OverLengthLimit bool `json:"over_length_limit,omitempty" xml:"over_length_limit,omitempty"` - // 总分(0-100) - TotalScore int64 `json:"total_score,omitempty" xml:"total_score,omitempty"` - // 拼写错误的单词 - SpellErrorWordList []string `json:"spell_error_word_list,omitempty" xml:"spell_error_word_list>string,omitempty"` -} diff --git a/model/seaking/AlibabaSeakingFeedbackAPIRequest.go b/model/seaking/AlibabaSeakingFeedbackAPIRequest.go new file mode 100644 index 0000000000..8959fd820a --- /dev/null +++ b/model/seaking/AlibabaSeakingFeedbackAPIRequest.go @@ -0,0 +1,136 @@ +package seaking + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +API服务发布成功商品ID回传 API请求 +alibaba.seaking.feedback + +API服务发布成功商品ID回传,用于跟进商品id后续的使用情况 +*/ +type AlibabaSeakingFeedbackAPIRequest struct { + model.Params + // api 接口名字 + _invokeApiName string + // 商品投放平台 + _platform string + // 商品id + _productId string + // 店铺id(ae为cn开头的店铺id, lazada为邮箱) + _subIdentifier string + // 店铺所在平台 + _subIdentifierType string + // erp名称 + _identifier string + // erp用户id + _identifierType string +} + +// 初始化AlibabaSeakingFeedbackAPIRequest对象 +func NewAlibabaSeakingFeedbackRequest() *AlibabaSeakingFeedbackAPIRequest{ + return &AlibabaSeakingFeedbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSeakingFeedbackAPIRequest) GetApiMethodName() string { + return "alibaba.seaking.feedback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSeakingFeedbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InvokeApiName Setter +// api 接口名字 +func (r *AlibabaSeakingFeedbackAPIRequest) SetInvokeApiName(_invokeApiName string) error { + r._invokeApiName = _invokeApiName + r.Set("invoke_api_name", _invokeApiName) + return nil +} + +// InvokeApiName Getter +func (r AlibabaSeakingFeedbackAPIRequest) GetInvokeApiName() string { + return r._invokeApiName +} +// Platform Setter +// 商品投放平台 +func (r *AlibabaSeakingFeedbackAPIRequest) SetPlatform(_platform string) error { + r._platform = _platform + r.Set("platform", _platform) + return nil +} + +// Platform Getter +func (r AlibabaSeakingFeedbackAPIRequest) GetPlatform() string { + return r._platform +} +// ProductId Setter +// 商品id +func (r *AlibabaSeakingFeedbackAPIRequest) SetProductId(_productId string) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r AlibabaSeakingFeedbackAPIRequest) GetProductId() string { + return r._productId +} +// SubIdentifier Setter +// 店铺id(ae为cn开头的店铺id, lazada为邮箱) +func (r *AlibabaSeakingFeedbackAPIRequest) SetSubIdentifier(_subIdentifier string) error { + r._subIdentifier = _subIdentifier + r.Set("sub_identifier", _subIdentifier) + return nil +} + +// SubIdentifier Getter +func (r AlibabaSeakingFeedbackAPIRequest) GetSubIdentifier() string { + return r._subIdentifier +} +// SubIdentifierType Setter +// 店铺所在平台 +func (r *AlibabaSeakingFeedbackAPIRequest) SetSubIdentifierType(_subIdentifierType string) error { + r._subIdentifierType = _subIdentifierType + r.Set("sub_identifier_type", _subIdentifierType) + return nil +} + +// SubIdentifierType Getter +func (r AlibabaSeakingFeedbackAPIRequest) GetSubIdentifierType() string { + return r._subIdentifierType +} +// Identifier Setter +// erp名称 +func (r *AlibabaSeakingFeedbackAPIRequest) SetIdentifier(_identifier string) error { + r._identifier = _identifier + r.Set("identifier", _identifier) + return nil +} + +// Identifier Getter +func (r AlibabaSeakingFeedbackAPIRequest) GetIdentifier() string { + return r._identifier +} +// IdentifierType Setter +// erp用户id +func (r *AlibabaSeakingFeedbackAPIRequest) SetIdentifierType(_identifierType string) error { + r._identifierType = _identifierType + r.Set("identifier_type", _identifierType) + return nil +} + +// IdentifierType Getter +func (r AlibabaSeakingFeedbackAPIRequest) GetIdentifierType() string { + return r._identifierType +} diff --git a/model/seaking/AlibabaSeakingFeedbackAPIResponse.go b/model/seaking/AlibabaSeakingFeedbackAPIResponse.go new file mode 100644 index 0000000000..f8b949c964 --- /dev/null +++ b/model/seaking/AlibabaSeakingFeedbackAPIResponse.go @@ -0,0 +1,27 @@ +package seaking + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +API服务发布成功商品ID回传 API返回值 +alibaba.seaking.feedback + +API服务发布成功商品ID回传,用于跟进商品id后续的使用情况 +*/ +type AlibabaSeakingFeedbackAPIResponse struct { + model.CommonResponse + AlibabaSeakingFeedbackAPIResponseModel +} + +// API服务发布成功商品ID回传 成功返回结果 +type AlibabaSeakingFeedbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_seaking_feedback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/seaking/AlibabaSeakingFeedbackResponse.go b/model/seaking/AlibabaSeakingFeedbackResponse.go deleted file mode 100644 index 4e00b160a6..0000000000 --- a/model/seaking/AlibabaSeakingFeedbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package seaking - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -API服务发布成功商品ID回传 API返回值 -alibaba.seaking.feedback - -API服务发布成功商品ID回传,用于跟进商品id后续的使用情况 -*/ -type AlibabaSeakingFeedbackAPIResponse struct { - model.CommonResponse - AlibabaSeakingFeedbackResponse -} - -// API服务发布成功商品ID回传 成功返回结果 -type AlibabaSeakingFeedbackResponse struct { - XMLName xml.Name `xml:"alibaba_seaking_feedback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/seaking/AlibabaSeakingImageTranslateAPIRequest.go b/model/seaking/AlibabaSeakingImageTranslateAPIRequest.go new file mode 100644 index 0000000000..75dc2f6c57 --- /dev/null +++ b/model/seaking/AlibabaSeakingImageTranslateAPIRequest.go @@ -0,0 +1,122 @@ +package seaking + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +图片机器翻译 API请求 +alibaba.seaking.imagetranslate + +图片机器翻译 +*/ +type AlibabaSeakingImagetranslateAPIRequest struct { + model.Params + // erp用户id + _identifier string + // 目标语种 + _targetLang string + // 源语种 + _sourceLang string + // 调用来源(erp名称) + _identifierType string + // 原图url + _url string + // 扩展信息 + _extra *Extra +} + +// 初始化AlibabaSeakingImagetranslateAPIRequest对象 +func NewAlibabaSeakingImagetranslateRequest() *AlibabaSeakingImagetranslateAPIRequest{ + return &AlibabaSeakingImagetranslateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSeakingImagetranslateAPIRequest) GetApiMethodName() string { + return "alibaba.seaking.imagetranslate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSeakingImagetranslateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Identifier Setter +// erp用户id +func (r *AlibabaSeakingImagetranslateAPIRequest) SetIdentifier(_identifier string) error { + r._identifier = _identifier + r.Set("identifier", _identifier) + return nil +} + +// Identifier Getter +func (r AlibabaSeakingImagetranslateAPIRequest) GetIdentifier() string { + return r._identifier +} +// TargetLang Setter +// 目标语种 +func (r *AlibabaSeakingImagetranslateAPIRequest) SetTargetLang(_targetLang string) error { + r._targetLang = _targetLang + r.Set("target_lang", _targetLang) + return nil +} + +// TargetLang Getter +func (r AlibabaSeakingImagetranslateAPIRequest) GetTargetLang() string { + return r._targetLang +} +// SourceLang Setter +// 源语种 +func (r *AlibabaSeakingImagetranslateAPIRequest) SetSourceLang(_sourceLang string) error { + r._sourceLang = _sourceLang + r.Set("source_lang", _sourceLang) + return nil +} + +// SourceLang Getter +func (r AlibabaSeakingImagetranslateAPIRequest) GetSourceLang() string { + return r._sourceLang +} +// IdentifierType Setter +// 调用来源(erp名称) +func (r *AlibabaSeakingImagetranslateAPIRequest) SetIdentifierType(_identifierType string) error { + r._identifierType = _identifierType + r.Set("identifier_type", _identifierType) + return nil +} + +// IdentifierType Getter +func (r AlibabaSeakingImagetranslateAPIRequest) GetIdentifierType() string { + return r._identifierType +} +// Url Setter +// 原图url +func (r *AlibabaSeakingImagetranslateAPIRequest) SetUrl(_url string) error { + r._url = _url + r.Set("url", _url) + return nil +} + +// Url Getter +func (r AlibabaSeakingImagetranslateAPIRequest) GetUrl() string { + return r._url +} +// Extra Setter +// 扩展信息 +func (r *AlibabaSeakingImagetranslateAPIRequest) SetExtra(_extra *Extra) error { + r._extra = _extra + r.Set("extra", _extra) + return nil +} + +// Extra Getter +func (r AlibabaSeakingImagetranslateAPIRequest) GetExtra() *Extra { + return r._extra +} diff --git a/model/seaking/AlibabaSeakingImageTranslateAPIResponse.go b/model/seaking/AlibabaSeakingImageTranslateAPIResponse.go new file mode 100644 index 0000000000..1a5eefde99 --- /dev/null +++ b/model/seaking/AlibabaSeakingImageTranslateAPIResponse.go @@ -0,0 +1,27 @@ +package seaking + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +图片机器翻译 API返回值 +alibaba.seaking.imagetranslate + +图片机器翻译 +*/ +type AlibabaSeakingImagetranslateAPIResponse struct { + model.CommonResponse + AlibabaSeakingImagetranslateAPIResponseModel +} + +// 图片机器翻译 成功返回结果 +type AlibabaSeakingImagetranslateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_seaking_imagetranslate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 译图url + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/seaking/AlibabaSeakingImageTranslateResponse.go b/model/seaking/AlibabaSeakingImageTranslateResponse.go deleted file mode 100644 index 41fb85ef2f..0000000000 --- a/model/seaking/AlibabaSeakingImageTranslateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package seaking - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -图片机器翻译 API返回值 -alibaba.seaking.imagetranslate - -图片机器翻译 -*/ -type AlibabaSeakingImagetranslateAPIResponse struct { - model.CommonResponse - AlibabaSeakingImagetranslateResponse -} - -// 图片机器翻译 成功返回结果 -type AlibabaSeakingImagetranslateResponse struct { - XMLName xml.Name `xml:"alibaba_seaking_imagetranslate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 译图url - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/seaking/AlibabaSeakingImagerecognizeAPIRequest.go b/model/seaking/AlibabaSeakingImagerecognizeAPIRequest.go new file mode 100644 index 0000000000..1e279ff12c --- /dev/null +++ b/model/seaking/AlibabaSeakingImagerecognizeAPIRequest.go @@ -0,0 +1,94 @@ +package seaking + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +图片语种识别 API请求 +alibaba.seaking.imagerecognize + +图片语种识别 +*/ +type AlibabaSeakingImagerecognizeAPIRequest struct { + model.Params + // 扩展信息 + _extra *Extra + // erp用户id + _identifier string + // 调用来源(erp名称) + _identifierType string + // 图片url + _url string +} + +// 初始化AlibabaSeakingImagerecognizeAPIRequest对象 +func NewAlibabaSeakingImagerecognizeRequest() *AlibabaSeakingImagerecognizeAPIRequest{ + return &AlibabaSeakingImagerecognizeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSeakingImagerecognizeAPIRequest) GetApiMethodName() string { + return "alibaba.seaking.imagerecognize" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSeakingImagerecognizeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Extra Setter +// 扩展信息 +func (r *AlibabaSeakingImagerecognizeAPIRequest) SetExtra(_extra *Extra) error { + r._extra = _extra + r.Set("extra", _extra) + return nil +} + +// Extra Getter +func (r AlibabaSeakingImagerecognizeAPIRequest) GetExtra() *Extra { + return r._extra +} +// Identifier Setter +// erp用户id +func (r *AlibabaSeakingImagerecognizeAPIRequest) SetIdentifier(_identifier string) error { + r._identifier = _identifier + r.Set("identifier", _identifier) + return nil +} + +// Identifier Getter +func (r AlibabaSeakingImagerecognizeAPIRequest) GetIdentifier() string { + return r._identifier +} +// IdentifierType Setter +// 调用来源(erp名称) +func (r *AlibabaSeakingImagerecognizeAPIRequest) SetIdentifierType(_identifierType string) error { + r._identifierType = _identifierType + r.Set("identifier_type", _identifierType) + return nil +} + +// IdentifierType Getter +func (r AlibabaSeakingImagerecognizeAPIRequest) GetIdentifierType() string { + return r._identifierType +} +// Url Setter +// 图片url +func (r *AlibabaSeakingImagerecognizeAPIRequest) SetUrl(_url string) error { + r._url = _url + r.Set("url", _url) + return nil +} + +// Url Getter +func (r AlibabaSeakingImagerecognizeAPIRequest) GetUrl() string { + return r._url +} diff --git a/model/seaking/AlibabaSeakingImagerecognizeAPIResponse.go b/model/seaking/AlibabaSeakingImagerecognizeAPIResponse.go new file mode 100644 index 0000000000..b7f2230f78 --- /dev/null +++ b/model/seaking/AlibabaSeakingImagerecognizeAPIResponse.go @@ -0,0 +1,27 @@ +package seaking + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +图片语种识别 API返回值 +alibaba.seaking.imagerecognize + +图片语种识别 +*/ +type AlibabaSeakingImagerecognizeAPIResponse struct { + model.CommonResponse + AlibabaSeakingImagerecognizeAPIResponseModel +} + +// 图片语种识别 成功返回结果 +type AlibabaSeakingImagerecognizeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_seaking_imagerecognize_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 识别出的图片语种 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/seaking/AlibabaSeakingImagerecognizeResponse.go b/model/seaking/AlibabaSeakingImagerecognizeResponse.go deleted file mode 100644 index 3a64f6bad4..0000000000 --- a/model/seaking/AlibabaSeakingImagerecognizeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package seaking - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -图片语种识别 API返回值 -alibaba.seaking.imagerecognize - -图片语种识别 -*/ -type AlibabaSeakingImagerecognizeAPIResponse struct { - model.CommonResponse - AlibabaSeakingImagerecognizeResponse -} - -// 图片语种识别 成功返回结果 -type AlibabaSeakingImagerecognizeResponse struct { - XMLName xml.Name `xml:"alibaba_seaking_imagerecognize_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 识别出的图片语种 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/seaking/AlibabaSeakingImagetranslateResultAPIRequest.go b/model/seaking/AlibabaSeakingImagetranslateResultAPIRequest.go new file mode 100644 index 0000000000..5557e9d86f --- /dev/null +++ b/model/seaking/AlibabaSeakingImagetranslateResultAPIRequest.go @@ -0,0 +1,80 @@ +package seaking + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取图片翻译任务结果 API请求 +alibaba.seaking.imagetranslate.result + +获取图片翻译任务结果 +*/ +type AlibabaSeakingImagetranslateResultAPIRequest struct { + model.Params + // token来源站点 + _tokenFrom string + // 任务id + _taskId int64 + // 用户token + _token string +} + +// 初始化AlibabaSeakingImagetranslateResultAPIRequest对象 +func NewAlibabaSeakingImagetranslateResultRequest() *AlibabaSeakingImagetranslateResultAPIRequest{ + return &AlibabaSeakingImagetranslateResultAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSeakingImagetranslateResultAPIRequest) GetApiMethodName() string { + return "alibaba.seaking.imagetranslate.result" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSeakingImagetranslateResultAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TokenFrom Setter +// token来源站点 +func (r *AlibabaSeakingImagetranslateResultAPIRequest) SetTokenFrom(_tokenFrom string) error { + r._tokenFrom = _tokenFrom + r.Set("token_from", _tokenFrom) + return nil +} + +// TokenFrom Getter +func (r AlibabaSeakingImagetranslateResultAPIRequest) GetTokenFrom() string { + return r._tokenFrom +} +// TaskId Setter +// 任务id +func (r *AlibabaSeakingImagetranslateResultAPIRequest) SetTaskId(_taskId int64) error { + r._taskId = _taskId + r.Set("task_id", _taskId) + return nil +} + +// TaskId Getter +func (r AlibabaSeakingImagetranslateResultAPIRequest) GetTaskId() int64 { + return r._taskId +} +// Token Setter +// 用户token +func (r *AlibabaSeakingImagetranslateResultAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaSeakingImagetranslateResultAPIRequest) GetToken() string { + return r._token +} diff --git a/model/seaking/AlibabaSeakingImagetranslateResultAPIResponse.go b/model/seaking/AlibabaSeakingImagetranslateResultAPIResponse.go new file mode 100644 index 0000000000..013f30fe05 --- /dev/null +++ b/model/seaking/AlibabaSeakingImagetranslateResultAPIResponse.go @@ -0,0 +1,27 @@ +package seaking + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取图片翻译任务结果 API返回值 +alibaba.seaking.imagetranslate.result + +获取图片翻译任务结果 +*/ +type AlibabaSeakingImagetranslateResultAPIResponse struct { + model.CommonResponse + AlibabaSeakingImagetranslateResultAPIResponseModel +} + +// 获取图片翻译任务结果 成功返回结果 +type AlibabaSeakingImagetranslateResultAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_seaking_imagetranslate_result_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaskResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/seaking/AlibabaSeakingImagetranslateResultResponse.go b/model/seaking/AlibabaSeakingImagetranslateResultResponse.go deleted file mode 100644 index 01c44ca560..0000000000 --- a/model/seaking/AlibabaSeakingImagetranslateResultResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package seaking - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取图片翻译任务结果 API返回值 -alibaba.seaking.imagetranslate.result - -获取图片翻译任务结果 -*/ -type AlibabaSeakingImagetranslateResultAPIResponse struct { - model.CommonResponse - AlibabaSeakingImagetranslateResultResponse -} - -// 获取图片翻译任务结果 成功返回结果 -type AlibabaSeakingImagetranslateResultResponse struct { - XMLName xml.Name `xml:"alibaba_seaking_imagetranslate_result_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaskResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/seaking/AlibabaSeakingImagetranslateSubmitAPIRequest.go b/model/seaking/AlibabaSeakingImagetranslateSubmitAPIRequest.go new file mode 100644 index 0000000000..3956b906d7 --- /dev/null +++ b/model/seaking/AlibabaSeakingImagetranslateSubmitAPIRequest.go @@ -0,0 +1,80 @@ +package seaking + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交图片翻译任务 API请求 +alibaba.seaking.imagetranslate.submit + +提交图片翻译任务 +*/ +type AlibabaSeakingImagetranslateSubmitAPIRequest struct { + model.Params + // token来源站点 + _tokenFrom string + // 子任务列表 + _imageTranslateDetailList []ImageTranslateDetailDto + // 用户token + _token string +} + +// 初始化AlibabaSeakingImagetranslateSubmitAPIRequest对象 +func NewAlibabaSeakingImagetranslateSubmitRequest() *AlibabaSeakingImagetranslateSubmitAPIRequest{ + return &AlibabaSeakingImagetranslateSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSeakingImagetranslateSubmitAPIRequest) GetApiMethodName() string { + return "alibaba.seaking.imagetranslate.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSeakingImagetranslateSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TokenFrom Setter +// token来源站点 +func (r *AlibabaSeakingImagetranslateSubmitAPIRequest) SetTokenFrom(_tokenFrom string) error { + r._tokenFrom = _tokenFrom + r.Set("token_from", _tokenFrom) + return nil +} + +// TokenFrom Getter +func (r AlibabaSeakingImagetranslateSubmitAPIRequest) GetTokenFrom() string { + return r._tokenFrom +} +// ImageTranslateDetailList Setter +// 子任务列表 +func (r *AlibabaSeakingImagetranslateSubmitAPIRequest) SetImageTranslateDetailList(_imageTranslateDetailList []ImageTranslateDetailDto) error { + r._imageTranslateDetailList = _imageTranslateDetailList + r.Set("image_translate_detail_list", _imageTranslateDetailList) + return nil +} + +// ImageTranslateDetailList Getter +func (r AlibabaSeakingImagetranslateSubmitAPIRequest) GetImageTranslateDetailList() []ImageTranslateDetailDto { + return r._imageTranslateDetailList +} +// Token Setter +// 用户token +func (r *AlibabaSeakingImagetranslateSubmitAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaSeakingImagetranslateSubmitAPIRequest) GetToken() string { + return r._token +} diff --git a/model/seaking/AlibabaSeakingImagetranslateSubmitAPIResponse.go b/model/seaking/AlibabaSeakingImagetranslateSubmitAPIResponse.go new file mode 100644 index 0000000000..a57c1f1aca --- /dev/null +++ b/model/seaking/AlibabaSeakingImagetranslateSubmitAPIResponse.go @@ -0,0 +1,27 @@ +package seaking + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交图片翻译任务 API返回值 +alibaba.seaking.imagetranslate.submit + +提交图片翻译任务 +*/ +type AlibabaSeakingImagetranslateSubmitAPIResponse struct { + model.CommonResponse + AlibabaSeakingImagetranslateSubmitAPIResponseModel +} + +// 提交图片翻译任务 成功返回结果 +type AlibabaSeakingImagetranslateSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_seaking_imagetranslate_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 任务id + TaskId int64 `json:"task_id,omitempty" xml:"task_id,omitempty"` +} diff --git a/model/seaking/AlibabaSeakingImagetranslateSubmitResponse.go b/model/seaking/AlibabaSeakingImagetranslateSubmitResponse.go deleted file mode 100644 index 6d56f7719d..0000000000 --- a/model/seaking/AlibabaSeakingImagetranslateSubmitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package seaking - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交图片翻译任务 API返回值 -alibaba.seaking.imagetranslate.submit - -提交图片翻译任务 -*/ -type AlibabaSeakingImagetranslateSubmitAPIResponse struct { - model.CommonResponse - AlibabaSeakingImagetranslateSubmitResponse -} - -// 提交图片翻译任务 成功返回结果 -type AlibabaSeakingImagetranslateSubmitResponse struct { - XMLName xml.Name `xml:"alibaba_seaking_imagetranslate_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 任务id - TaskId int64 `json:"task_id,omitempty" xml:"task_id,omitempty"` -} diff --git a/model/seaking/AlibabaSeakingServicepackAPIRequest.go b/model/seaking/AlibabaSeakingServicepackAPIRequest.go new file mode 100644 index 0000000000..25c33a40af --- /dev/null +++ b/model/seaking/AlibabaSeakingServicepackAPIRequest.go @@ -0,0 +1,66 @@ +package seaking + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取海王用户权限包 API请求 +alibaba.seaking.servicepack + +获取海王用户权限包 +*/ +type AlibabaSeakingServicepackAPIRequest struct { + model.Params + // 验证类型 + _identifyType string + // 验证类型下的唯一id + _identifier string +} + +// 初始化AlibabaSeakingServicepackAPIRequest对象 +func NewAlibabaSeakingServicepackRequest() *AlibabaSeakingServicepackAPIRequest{ + return &AlibabaSeakingServicepackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSeakingServicepackAPIRequest) GetApiMethodName() string { + return "alibaba.seaking.servicepack" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSeakingServicepackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IdentifyType Setter +// 验证类型 +func (r *AlibabaSeakingServicepackAPIRequest) SetIdentifyType(_identifyType string) error { + r._identifyType = _identifyType + r.Set("identify_type", _identifyType) + return nil +} + +// IdentifyType Getter +func (r AlibabaSeakingServicepackAPIRequest) GetIdentifyType() string { + return r._identifyType +} +// Identifier Setter +// 验证类型下的唯一id +func (r *AlibabaSeakingServicepackAPIRequest) SetIdentifier(_identifier string) error { + r._identifier = _identifier + r.Set("identifier", _identifier) + return nil +} + +// Identifier Getter +func (r AlibabaSeakingServicepackAPIRequest) GetIdentifier() string { + return r._identifier +} diff --git a/model/seaking/AlibabaSeakingServicepackAPIResponse.go b/model/seaking/AlibabaSeakingServicepackAPIResponse.go new file mode 100644 index 0000000000..45b48e5d35 --- /dev/null +++ b/model/seaking/AlibabaSeakingServicepackAPIResponse.go @@ -0,0 +1,27 @@ +package seaking + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取海王用户权限包 API返回值 +alibaba.seaking.servicepack + +获取海王用户权限包 +*/ +type AlibabaSeakingServicepackAPIResponse struct { + model.CommonResponse + AlibabaSeakingServicepackAPIResponseModel +} + +// 获取海王用户权限包 成功返回结果 +type AlibabaSeakingServicepackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_seaking_servicepack_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 权限包列表 + ServicePackList []AlibabaSeakingServicepackResult `json:"service_pack_list,omitempty" xml:"service_pack_list>alibaba_seaking_servicepack_result,omitempty"` +} diff --git a/model/seaking/AlibabaSeakingServicepackResponse.go b/model/seaking/AlibabaSeakingServicepackResponse.go deleted file mode 100644 index 7acf152f15..0000000000 --- a/model/seaking/AlibabaSeakingServicepackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package seaking - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取海王用户权限包 API返回值 -alibaba.seaking.servicepack - -获取海王用户权限包 -*/ -type AlibabaSeakingServicepackAPIResponse struct { - model.CommonResponse - AlibabaSeakingServicepackResponse -} - -// 获取海王用户权限包 成功返回结果 -type AlibabaSeakingServicepackResponse struct { - XMLName xml.Name `xml:"alibaba_seaking_servicepack_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 权限包列表 - ServicePackList []AlibabaSeakingServicepackResult `json:"service_pack_list,omitempty" xml:"service_pack_list>alibaba_seaking_servicepack_result,omitempty"` -} diff --git a/model/seaking/AlibabaSeakingTaskReportAPIRequest.go b/model/seaking/AlibabaSeakingTaskReportAPIRequest.go new file mode 100644 index 0000000000..6aa5101028 --- /dev/null +++ b/model/seaking/AlibabaSeakingTaskReportAPIRequest.go @@ -0,0 +1,94 @@ +package seaking + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +跳转任务发布成功商品ID回传 API请求 +alibaba.seaking.task.report + +跳转任务发布成功商品ID回传 +*/ +type AlibabaSeakingTaskReportAPIRequest struct { + model.Params + // 上报数据详情 + _reportDetail []TaskDetailReportDto + // 任务类型(title/image) + _taskType string + // 用户token + _token string + // token来源站点 + _tokenFrom string +} + +// 初始化AlibabaSeakingTaskReportAPIRequest对象 +func NewAlibabaSeakingTaskReportRequest() *AlibabaSeakingTaskReportAPIRequest{ + return &AlibabaSeakingTaskReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSeakingTaskReportAPIRequest) GetApiMethodName() string { + return "alibaba.seaking.task.report" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSeakingTaskReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReportDetail Setter +// 上报数据详情 +func (r *AlibabaSeakingTaskReportAPIRequest) SetReportDetail(_reportDetail []TaskDetailReportDto) error { + r._reportDetail = _reportDetail + r.Set("report_detail", _reportDetail) + return nil +} + +// ReportDetail Getter +func (r AlibabaSeakingTaskReportAPIRequest) GetReportDetail() []TaskDetailReportDto { + return r._reportDetail +} +// TaskType Setter +// 任务类型(title/image) +func (r *AlibabaSeakingTaskReportAPIRequest) SetTaskType(_taskType string) error { + r._taskType = _taskType + r.Set("task_type", _taskType) + return nil +} + +// TaskType Getter +func (r AlibabaSeakingTaskReportAPIRequest) GetTaskType() string { + return r._taskType +} +// Token Setter +// 用户token +func (r *AlibabaSeakingTaskReportAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaSeakingTaskReportAPIRequest) GetToken() string { + return r._token +} +// TokenFrom Setter +// token来源站点 +func (r *AlibabaSeakingTaskReportAPIRequest) SetTokenFrom(_tokenFrom string) error { + r._tokenFrom = _tokenFrom + r.Set("token_from", _tokenFrom) + return nil +} + +// TokenFrom Getter +func (r AlibabaSeakingTaskReportAPIRequest) GetTokenFrom() string { + return r._tokenFrom +} diff --git a/model/seaking/AlibabaSeakingTaskReportAPIResponse.go b/model/seaking/AlibabaSeakingTaskReportAPIResponse.go new file mode 100644 index 0000000000..8f6dd61903 --- /dev/null +++ b/model/seaking/AlibabaSeakingTaskReportAPIResponse.go @@ -0,0 +1,27 @@ +package seaking + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +跳转任务发布成功商品ID回传 API返回值 +alibaba.seaking.task.report + +跳转任务发布成功商品ID回传 +*/ +type AlibabaSeakingTaskReportAPIResponse struct { + model.CommonResponse + AlibabaSeakingTaskReportAPIResponseModel +} + +// 跳转任务发布成功商品ID回传 成功返回结果 +type AlibabaSeakingTaskReportAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_seaking_task_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/seaking/AlibabaSeakingTaskReportResponse.go b/model/seaking/AlibabaSeakingTaskReportResponse.go deleted file mode 100644 index bc875998a4..0000000000 --- a/model/seaking/AlibabaSeakingTaskReportResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package seaking - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -跳转任务发布成功商品ID回传 API返回值 -alibaba.seaking.task.report - -跳转任务发布成功商品ID回传 -*/ -type AlibabaSeakingTaskReportAPIResponse struct { - model.CommonResponse - AlibabaSeakingTaskReportResponse -} - -// 跳转任务发布成功商品ID回传 成功返回结果 -type AlibabaSeakingTaskReportResponse struct { - XMLName xml.Name `xml:"alibaba_seaking_task_report_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/seaking/AlibabaSeakingTitlerewriteResultAPIRequest.go b/model/seaking/AlibabaSeakingTitlerewriteResultAPIRequest.go new file mode 100644 index 0000000000..de1762e676 --- /dev/null +++ b/model/seaking/AlibabaSeakingTitlerewriteResultAPIRequest.go @@ -0,0 +1,80 @@ +package seaking + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取标题改写任务结果 API请求 +alibaba.seaking.titlerewrite.result + +获取标题改写任务结果 +*/ +type AlibabaSeakingTitlerewriteResultAPIRequest struct { + model.Params + // token来源站点 + _tokenFrom string + // 任务id + _taskId int64 + // 用户token + _token string +} + +// 初始化AlibabaSeakingTitlerewriteResultAPIRequest对象 +func NewAlibabaSeakingTitlerewriteResultRequest() *AlibabaSeakingTitlerewriteResultAPIRequest{ + return &AlibabaSeakingTitlerewriteResultAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSeakingTitlerewriteResultAPIRequest) GetApiMethodName() string { + return "alibaba.seaking.titlerewrite.result" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSeakingTitlerewriteResultAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TokenFrom Setter +// token来源站点 +func (r *AlibabaSeakingTitlerewriteResultAPIRequest) SetTokenFrom(_tokenFrom string) error { + r._tokenFrom = _tokenFrom + r.Set("token_from", _tokenFrom) + return nil +} + +// TokenFrom Getter +func (r AlibabaSeakingTitlerewriteResultAPIRequest) GetTokenFrom() string { + return r._tokenFrom +} +// TaskId Setter +// 任务id +func (r *AlibabaSeakingTitlerewriteResultAPIRequest) SetTaskId(_taskId int64) error { + r._taskId = _taskId + r.Set("task_id", _taskId) + return nil +} + +// TaskId Getter +func (r AlibabaSeakingTitlerewriteResultAPIRequest) GetTaskId() int64 { + return r._taskId +} +// Token Setter +// 用户token +func (r *AlibabaSeakingTitlerewriteResultAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaSeakingTitlerewriteResultAPIRequest) GetToken() string { + return r._token +} diff --git a/model/seaking/AlibabaSeakingTitlerewriteResultAPIResponse.go b/model/seaking/AlibabaSeakingTitlerewriteResultAPIResponse.go new file mode 100644 index 0000000000..4c017472ba --- /dev/null +++ b/model/seaking/AlibabaSeakingTitlerewriteResultAPIResponse.go @@ -0,0 +1,27 @@ +package seaking + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取标题改写任务结果 API返回值 +alibaba.seaking.titlerewrite.result + +获取标题改写任务结果 +*/ +type AlibabaSeakingTitlerewriteResultAPIResponse struct { + model.CommonResponse + AlibabaSeakingTitlerewriteResultAPIResponseModel +} + +// 获取标题改写任务结果 成功返回结果 +type AlibabaSeakingTitlerewriteResultAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_seaking_titlerewrite_result_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaskResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/seaking/AlibabaSeakingTitlerewriteResultResponse.go b/model/seaking/AlibabaSeakingTitlerewriteResultResponse.go deleted file mode 100644 index 5587cdec2d..0000000000 --- a/model/seaking/AlibabaSeakingTitlerewriteResultResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package seaking - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取标题改写任务结果 API返回值 -alibaba.seaking.titlerewrite.result - -获取标题改写任务结果 -*/ -type AlibabaSeakingTitlerewriteResultAPIResponse struct { - model.CommonResponse - AlibabaSeakingTitlerewriteResultResponse -} - -// 获取标题改写任务结果 成功返回结果 -type AlibabaSeakingTitlerewriteResultResponse struct { - XMLName xml.Name `xml:"alibaba_seaking_titlerewrite_result_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaskResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/seaking/AlibabaSeakingTitlerewriteSubmitAPIRequest.go b/model/seaking/AlibabaSeakingTitlerewriteSubmitAPIRequest.go new file mode 100644 index 0000000000..f0e32699e0 --- /dev/null +++ b/model/seaking/AlibabaSeakingTitlerewriteSubmitAPIRequest.go @@ -0,0 +1,80 @@ +package seaking + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交标题改写任务 API请求 +alibaba.seaking.titlerewrite.submit + +提交标题改写任务 +*/ +type AlibabaSeakingTitlerewriteSubmitAPIRequest struct { + model.Params + // 任务详情列表 + _titleRewriteDetailList []TitleRewriteDetailDto + // token来源站点 + _tokenFrom string + // 用户token + _token string +} + +// 初始化AlibabaSeakingTitlerewriteSubmitAPIRequest对象 +func NewAlibabaSeakingTitlerewriteSubmitRequest() *AlibabaSeakingTitlerewriteSubmitAPIRequest{ + return &AlibabaSeakingTitlerewriteSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSeakingTitlerewriteSubmitAPIRequest) GetApiMethodName() string { + return "alibaba.seaking.titlerewrite.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSeakingTitlerewriteSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TitleRewriteDetailList Setter +// 任务详情列表 +func (r *AlibabaSeakingTitlerewriteSubmitAPIRequest) SetTitleRewriteDetailList(_titleRewriteDetailList []TitleRewriteDetailDto) error { + r._titleRewriteDetailList = _titleRewriteDetailList + r.Set("title_rewrite_detail_list", _titleRewriteDetailList) + return nil +} + +// TitleRewriteDetailList Getter +func (r AlibabaSeakingTitlerewriteSubmitAPIRequest) GetTitleRewriteDetailList() []TitleRewriteDetailDto { + return r._titleRewriteDetailList +} +// TokenFrom Setter +// token来源站点 +func (r *AlibabaSeakingTitlerewriteSubmitAPIRequest) SetTokenFrom(_tokenFrom string) error { + r._tokenFrom = _tokenFrom + r.Set("token_from", _tokenFrom) + return nil +} + +// TokenFrom Getter +func (r AlibabaSeakingTitlerewriteSubmitAPIRequest) GetTokenFrom() string { + return r._tokenFrom +} +// Token Setter +// 用户token +func (r *AlibabaSeakingTitlerewriteSubmitAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaSeakingTitlerewriteSubmitAPIRequest) GetToken() string { + return r._token +} diff --git a/model/seaking/AlibabaSeakingTitlerewriteSubmitAPIResponse.go b/model/seaking/AlibabaSeakingTitlerewriteSubmitAPIResponse.go new file mode 100644 index 0000000000..3ec433e6cd --- /dev/null +++ b/model/seaking/AlibabaSeakingTitlerewriteSubmitAPIResponse.go @@ -0,0 +1,27 @@ +package seaking + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交标题改写任务 API返回值 +alibaba.seaking.titlerewrite.submit + +提交标题改写任务 +*/ +type AlibabaSeakingTitlerewriteSubmitAPIResponse struct { + model.CommonResponse + AlibabaSeakingTitlerewriteSubmitAPIResponseModel +} + +// 提交标题改写任务 成功返回结果 +type AlibabaSeakingTitlerewriteSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_seaking_titlerewrite_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 任务id + TaskId int64 `json:"task_id,omitempty" xml:"task_id,omitempty"` +} diff --git a/model/seaking/AlibabaSeakingTitlerewriteSubmitResponse.go b/model/seaking/AlibabaSeakingTitlerewriteSubmitResponse.go deleted file mode 100644 index 2d3fee039c..0000000000 --- a/model/seaking/AlibabaSeakingTitlerewriteSubmitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package seaking - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交标题改写任务 API返回值 -alibaba.seaking.titlerewrite.submit - -提交标题改写任务 -*/ -type AlibabaSeakingTitlerewriteSubmitAPIResponse struct { - model.CommonResponse - AlibabaSeakingTitlerewriteSubmitResponse -} - -// 提交标题改写任务 成功返回结果 -type AlibabaSeakingTitlerewriteSubmitResponse struct { - XMLName xml.Name `xml:"alibaba_seaking_titlerewrite_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 任务id - TaskId int64 `json:"task_id,omitempty" xml:"task_id,omitempty"` -} diff --git a/model/seaking/AlibabaSeakingTranslateAPIRequest.go b/model/seaking/AlibabaSeakingTranslateAPIRequest.go new file mode 100644 index 0000000000..9d2e905d60 --- /dev/null +++ b/model/seaking/AlibabaSeakingTranslateAPIRequest.go @@ -0,0 +1,150 @@ +package seaking + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +MT定制接口 API请求 +alibaba.seaking.translate + +MT定制接口 +*/ +type AlibabaSeakingTranslateAPIRequest struct { + model.Params + // 定制用户id + _identifier string + // 目标语种 + _targetLang string + // 源语种 + _sourceLang string + // 原文 + _sourceText string + // 原文格式(text/html) + _sourceFormat string + // 定制用户类型 + _identifierType string + // 原文类型(title: 标题/offer: 详描/message: 消息) + _fieldType string + // 扩展信息 + _extra *Extra +} + +// 初始化AlibabaSeakingTranslateAPIRequest对象 +func NewAlibabaSeakingTranslateRequest() *AlibabaSeakingTranslateAPIRequest{ + return &AlibabaSeakingTranslateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSeakingTranslateAPIRequest) GetApiMethodName() string { + return "alibaba.seaking.translate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSeakingTranslateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Identifier Setter +// 定制用户id +func (r *AlibabaSeakingTranslateAPIRequest) SetIdentifier(_identifier string) error { + r._identifier = _identifier + r.Set("identifier", _identifier) + return nil +} + +// Identifier Getter +func (r AlibabaSeakingTranslateAPIRequest) GetIdentifier() string { + return r._identifier +} +// TargetLang Setter +// 目标语种 +func (r *AlibabaSeakingTranslateAPIRequest) SetTargetLang(_targetLang string) error { + r._targetLang = _targetLang + r.Set("target_lang", _targetLang) + return nil +} + +// TargetLang Getter +func (r AlibabaSeakingTranslateAPIRequest) GetTargetLang() string { + return r._targetLang +} +// SourceLang Setter +// 源语种 +func (r *AlibabaSeakingTranslateAPIRequest) SetSourceLang(_sourceLang string) error { + r._sourceLang = _sourceLang + r.Set("source_lang", _sourceLang) + return nil +} + +// SourceLang Getter +func (r AlibabaSeakingTranslateAPIRequest) GetSourceLang() string { + return r._sourceLang +} +// SourceText Setter +// 原文 +func (r *AlibabaSeakingTranslateAPIRequest) SetSourceText(_sourceText string) error { + r._sourceText = _sourceText + r.Set("source_text", _sourceText) + return nil +} + +// SourceText Getter +func (r AlibabaSeakingTranslateAPIRequest) GetSourceText() string { + return r._sourceText +} +// SourceFormat Setter +// 原文格式(text/html) +func (r *AlibabaSeakingTranslateAPIRequest) SetSourceFormat(_sourceFormat string) error { + r._sourceFormat = _sourceFormat + r.Set("source_format", _sourceFormat) + return nil +} + +// SourceFormat Getter +func (r AlibabaSeakingTranslateAPIRequest) GetSourceFormat() string { + return r._sourceFormat +} +// IdentifierType Setter +// 定制用户类型 +func (r *AlibabaSeakingTranslateAPIRequest) SetIdentifierType(_identifierType string) error { + r._identifierType = _identifierType + r.Set("identifier_type", _identifierType) + return nil +} + +// IdentifierType Getter +func (r AlibabaSeakingTranslateAPIRequest) GetIdentifierType() string { + return r._identifierType +} +// FieldType Setter +// 原文类型(title: 标题/offer: 详描/message: 消息) +func (r *AlibabaSeakingTranslateAPIRequest) SetFieldType(_fieldType string) error { + r._fieldType = _fieldType + r.Set("field_type", _fieldType) + return nil +} + +// FieldType Getter +func (r AlibabaSeakingTranslateAPIRequest) GetFieldType() string { + return r._fieldType +} +// Extra Setter +// 扩展信息 +func (r *AlibabaSeakingTranslateAPIRequest) SetExtra(_extra *Extra) error { + r._extra = _extra + r.Set("extra", _extra) + return nil +} + +// Extra Getter +func (r AlibabaSeakingTranslateAPIRequest) GetExtra() *Extra { + return r._extra +} diff --git a/model/seaking/AlibabaSeakingTranslateAPIResponse.go b/model/seaking/AlibabaSeakingTranslateAPIResponse.go new file mode 100644 index 0000000000..d531f9a7bc --- /dev/null +++ b/model/seaking/AlibabaSeakingTranslateAPIResponse.go @@ -0,0 +1,27 @@ +package seaking + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +MT定制接口 API返回值 +alibaba.seaking.translate + +MT定制接口 +*/ +type AlibabaSeakingTranslateAPIResponse struct { + model.CommonResponse + AlibabaSeakingTranslateAPIResponseModel +} + +// MT定制接口 成功返回结果 +type AlibabaSeakingTranslateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_seaking_translate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 译文 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/seaking/AlibabaSeakingTranslateResponse.go b/model/seaking/AlibabaSeakingTranslateResponse.go deleted file mode 100644 index 974c93ca0e..0000000000 --- a/model/seaking/AlibabaSeakingTranslateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package seaking - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -MT定制接口 API返回值 -alibaba.seaking.translate - -MT定制接口 -*/ -type AlibabaSeakingTranslateAPIResponse struct { - model.CommonResponse - AlibabaSeakingTranslateResponse -} - -// MT定制接口 成功返回结果 -type AlibabaSeakingTranslateResponse struct { - XMLName xml.Name `xml:"alibaba_seaking_translate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 译文 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqAfsCheckAPIRequest.go b/model/security/AlibabaSecurityJaqAfsCheckAPIRequest.go new file mode 100644 index 0000000000..5bbfdc64c1 --- /dev/null +++ b/model/security/AlibabaSecurityJaqAfsCheckAPIRequest.go @@ -0,0 +1,108 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +反欺诈二次验证接口 API请求 +alibaba.security.jaq.afs.check + +反欺诈二次验证接口 +*/ +type AlibabaSecurityJaqAfsCheckAPIRequest struct { + model.Params + // 上报平台枚举值 1标识Android端 2标识iOS端 3标识PC端及其他 + _platform int64 + // token,来自客户端上报 + _token string + // 会话ID,来自客户端上报 + _sessionId string + // 签名串,来自客户端上报 + _sig string + // 用户接入的时候获取的风控key + _afsKey string +} + +// 初始化AlibabaSecurityJaqAfsCheckAPIRequest对象 +func NewAlibabaSecurityJaqAfsCheckRequest() *AlibabaSecurityJaqAfsCheckAPIRequest{ + return &AlibabaSecurityJaqAfsCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqAfsCheckAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.afs.check" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqAfsCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Platform Setter +// 上报平台枚举值 1标识Android端 2标识iOS端 3标识PC端及其他 +func (r *AlibabaSecurityJaqAfsCheckAPIRequest) SetPlatform(_platform int64) error { + r._platform = _platform + r.Set("platform", _platform) + return nil +} + +// Platform Getter +func (r AlibabaSecurityJaqAfsCheckAPIRequest) GetPlatform() int64 { + return r._platform +} +// Token Setter +// token,来自客户端上报 +func (r *AlibabaSecurityJaqAfsCheckAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r AlibabaSecurityJaqAfsCheckAPIRequest) GetToken() string { + return r._token +} +// SessionId Setter +// 会话ID,来自客户端上报 +func (r *AlibabaSecurityJaqAfsCheckAPIRequest) SetSessionId(_sessionId string) error { + r._sessionId = _sessionId + r.Set("session_id", _sessionId) + return nil +} + +// SessionId Getter +func (r AlibabaSecurityJaqAfsCheckAPIRequest) GetSessionId() string { + return r._sessionId +} +// Sig Setter +// 签名串,来自客户端上报 +func (r *AlibabaSecurityJaqAfsCheckAPIRequest) SetSig(_sig string) error { + r._sig = _sig + r.Set("sig", _sig) + return nil +} + +// Sig Getter +func (r AlibabaSecurityJaqAfsCheckAPIRequest) GetSig() string { + return r._sig +} +// AfsKey Setter +// 用户接入的时候获取的风控key +func (r *AlibabaSecurityJaqAfsCheckAPIRequest) SetAfsKey(_afsKey string) error { + r._afsKey = _afsKey + r.Set("afs_key", _afsKey) + return nil +} + +// AfsKey Getter +func (r AlibabaSecurityJaqAfsCheckAPIRequest) GetAfsKey() string { + return r._afsKey +} diff --git a/model/security/AlibabaSecurityJaqAfsCheckAPIResponse.go b/model/security/AlibabaSecurityJaqAfsCheckAPIResponse.go new file mode 100644 index 0000000000..36534da9c4 --- /dev/null +++ b/model/security/AlibabaSecurityJaqAfsCheckAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +反欺诈二次验证接口 API返回值 +alibaba.security.jaq.afs.check + +反欺诈二次验证接口 +*/ +type AlibabaSecurityJaqAfsCheckAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqAfsCheckAPIResponseModel +} + +// 反欺诈二次验证接口 成功返回结果 +type AlibabaSecurityJaqAfsCheckAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_afs_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 验证结果 + Data bool `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqAfsCheckResponse.go b/model/security/AlibabaSecurityJaqAfsCheckResponse.go deleted file mode 100644 index 1b901a0078..0000000000 --- a/model/security/AlibabaSecurityJaqAfsCheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -反欺诈二次验证接口 API返回值 -alibaba.security.jaq.afs.check - -反欺诈二次验证接口 -*/ -type AlibabaSecurityJaqAfsCheckAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqAfsCheckResponse -} - -// 反欺诈二次验证接口 成功返回结果 -type AlibabaSecurityJaqAfsCheckResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_afs_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 验证结果 - Data bool `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqAppOfficialApplyAPIRequest.go b/model/security/AlibabaSecurityJaqAppOfficialApplyAPIRequest.go new file mode 100644 index 0000000000..e45563fcd7 --- /dev/null +++ b/model/security/AlibabaSecurityJaqAppOfficialApplyAPIRequest.go @@ -0,0 +1,52 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全官方应用申请 API请求 +alibaba.security.jaq.app.official.apply + +官方应用申请接口 +*/ +type AlibabaSecurityJaqAppOfficialApplyAPIRequest struct { + model.Params + // 官方应用申请入参 + _officialAppApplyRequest *OfficialAppApplyRequest +} + +// 初始化AlibabaSecurityJaqAppOfficialApplyAPIRequest对象 +func NewAlibabaSecurityJaqAppOfficialApplyRequest() *AlibabaSecurityJaqAppOfficialApplyAPIRequest{ + return &AlibabaSecurityJaqAppOfficialApplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqAppOfficialApplyAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.app.official.apply" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqAppOfficialApplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OfficialAppApplyRequest Setter +// 官方应用申请入参 +func (r *AlibabaSecurityJaqAppOfficialApplyAPIRequest) SetOfficialAppApplyRequest(_officialAppApplyRequest *OfficialAppApplyRequest) error { + r._officialAppApplyRequest = _officialAppApplyRequest + r.Set("official_app_apply_request", _officialAppApplyRequest) + return nil +} + +// OfficialAppApplyRequest Getter +func (r AlibabaSecurityJaqAppOfficialApplyAPIRequest) GetOfficialAppApplyRequest() *OfficialAppApplyRequest { + return r._officialAppApplyRequest +} diff --git a/model/security/AlibabaSecurityJaqAppOfficialApplyAPIResponse.go b/model/security/AlibabaSecurityJaqAppOfficialApplyAPIResponse.go new file mode 100644 index 0000000000..6407f7378e --- /dev/null +++ b/model/security/AlibabaSecurityJaqAppOfficialApplyAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全官方应用申请 API返回值 +alibaba.security.jaq.app.official.apply + +官方应用申请接口 +*/ +type AlibabaSecurityJaqAppOfficialApplyAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqAppOfficialApplyAPIResponseModel +} + +// 聚安全官方应用申请 成功返回结果 +type AlibabaSecurityJaqAppOfficialApplyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_app_official_apply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 申请结果 + Result *OfficialAppApplyResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqAppOfficialApplyResponse.go b/model/security/AlibabaSecurityJaqAppOfficialApplyResponse.go deleted file mode 100644 index 0eaea34fb8..0000000000 --- a/model/security/AlibabaSecurityJaqAppOfficialApplyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚安全官方应用申请 API返回值 -alibaba.security.jaq.app.official.apply - -官方应用申请接口 -*/ -type AlibabaSecurityJaqAppOfficialApplyAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqAppOfficialApplyResponse -} - -// 聚安全官方应用申请 成功返回结果 -type AlibabaSecurityJaqAppOfficialApplyResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_app_official_apply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 申请结果 - Result *OfficialAppApplyResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqAppOfficialVerifyAPIRequest.go b/model/security/AlibabaSecurityJaqAppOfficialVerifyAPIRequest.go new file mode 100644 index 0000000000..24da1ad18f --- /dev/null +++ b/model/security/AlibabaSecurityJaqAppOfficialVerifyAPIRequest.go @@ -0,0 +1,52 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全验证官方应用接口 API请求 +alibaba.security.jaq.app.official.verify + +接入用户来查询应用是否为官方应用 +*/ +type AlibabaSecurityJaqAppOfficialVerifyAPIRequest struct { + model.Params + // 验证参数 + _officialAppVerifyRequest *OfficialAppVerifyRequest +} + +// 初始化AlibabaSecurityJaqAppOfficialVerifyAPIRequest对象 +func NewAlibabaSecurityJaqAppOfficialVerifyRequest() *AlibabaSecurityJaqAppOfficialVerifyAPIRequest{ + return &AlibabaSecurityJaqAppOfficialVerifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqAppOfficialVerifyAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.app.official.verify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqAppOfficialVerifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OfficialAppVerifyRequest Setter +// 验证参数 +func (r *AlibabaSecurityJaqAppOfficialVerifyAPIRequest) SetOfficialAppVerifyRequest(_officialAppVerifyRequest *OfficialAppVerifyRequest) error { + r._officialAppVerifyRequest = _officialAppVerifyRequest + r.Set("official_app_verify_request", _officialAppVerifyRequest) + return nil +} + +// OfficialAppVerifyRequest Getter +func (r AlibabaSecurityJaqAppOfficialVerifyAPIRequest) GetOfficialAppVerifyRequest() *OfficialAppVerifyRequest { + return r._officialAppVerifyRequest +} diff --git a/model/security/AlibabaSecurityJaqAppOfficialVerifyAPIResponse.go b/model/security/AlibabaSecurityJaqAppOfficialVerifyAPIResponse.go new file mode 100644 index 0000000000..80758cdf11 --- /dev/null +++ b/model/security/AlibabaSecurityJaqAppOfficialVerifyAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全验证官方应用接口 API返回值 +alibaba.security.jaq.app.official.verify + +接入用户来查询应用是否为官方应用 +*/ +type AlibabaSecurityJaqAppOfficialVerifyAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqAppOfficialVerifyAPIResponseModel +} + +// 聚安全验证官方应用接口 成功返回结果 +type AlibabaSecurityJaqAppOfficialVerifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_app_official_verify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *OfficialAppVerifyResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqAppOfficialVerifyResponse.go b/model/security/AlibabaSecurityJaqAppOfficialVerifyResponse.go deleted file mode 100644 index 84917e5b76..0000000000 --- a/model/security/AlibabaSecurityJaqAppOfficialVerifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚安全验证官方应用接口 API返回值 -alibaba.security.jaq.app.official.verify - -接入用户来查询应用是否为官方应用 -*/ -type AlibabaSecurityJaqAppOfficialVerifyAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqAppOfficialVerifyResponse -} - -// 聚安全验证官方应用接口 成功返回结果 -type AlibabaSecurityJaqAppOfficialVerifyResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_app_official_verify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *OfficialAppVerifyResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqAppRiskScanAPIRequest.go b/model/security/AlibabaSecurityJaqAppRiskScanAPIRequest.go new file mode 100644 index 0000000000..8005edbb33 --- /dev/null +++ b/model/security/AlibabaSecurityJaqAppRiskScanAPIRequest.go @@ -0,0 +1,80 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +应用风险扫描提交接口 API请求 +alibaba.security.jaq.app.risk.scan + +提交应用进行风险扫描(含漏洞扫描、恶意代码检测、仿冒监测),扫描完成后可通过对应的查询接口查询扫描结果 +*/ +type AlibabaSecurityJaqAppRiskScanAPIRequest struct { + model.Params + // 应用信息 + _appInfo *ScanAppInfo + // 扫描类型:vuln-漏洞扫描 malware-恶意代码检测 fake-仿冒监测 plugin-插件扫描 注: dataType为2时 不支持 仿冒监测 + _scanTypes []string + // 额外的信息,根据具体业务定 + _extParam string +} + +// 初始化AlibabaSecurityJaqAppRiskScanAPIRequest对象 +func NewAlibabaSecurityJaqAppRiskScanRequest() *AlibabaSecurityJaqAppRiskScanAPIRequest{ + return &AlibabaSecurityJaqAppRiskScanAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqAppRiskScanAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.app.risk.scan" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqAppRiskScanAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppInfo Setter +// 应用信息 +func (r *AlibabaSecurityJaqAppRiskScanAPIRequest) SetAppInfo(_appInfo *ScanAppInfo) error { + r._appInfo = _appInfo + r.Set("app_info", _appInfo) + return nil +} + +// AppInfo Getter +func (r AlibabaSecurityJaqAppRiskScanAPIRequest) GetAppInfo() *ScanAppInfo { + return r._appInfo +} +// ScanTypes Setter +// 扫描类型:vuln-漏洞扫描 malware-恶意代码检测 fake-仿冒监测 plugin-插件扫描 注: dataType为2时 不支持 仿冒监测 +func (r *AlibabaSecurityJaqAppRiskScanAPIRequest) SetScanTypes(_scanTypes []string) error { + r._scanTypes = _scanTypes + r.Set("scan_types", _scanTypes) + return nil +} + +// ScanTypes Getter +func (r AlibabaSecurityJaqAppRiskScanAPIRequest) GetScanTypes() []string { + return r._scanTypes +} +// ExtParam Setter +// 额外的信息,根据具体业务定 +func (r *AlibabaSecurityJaqAppRiskScanAPIRequest) SetExtParam(_extParam string) error { + r._extParam = _extParam + r.Set("ext_param", _extParam) + return nil +} + +// ExtParam Getter +func (r AlibabaSecurityJaqAppRiskScanAPIRequest) GetExtParam() string { + return r._extParam +} diff --git a/model/security/AlibabaSecurityJaqAppRiskScanAPIResponse.go b/model/security/AlibabaSecurityJaqAppRiskScanAPIResponse.go new file mode 100644 index 0000000000..7e3d42c6be --- /dev/null +++ b/model/security/AlibabaSecurityJaqAppRiskScanAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +应用风险扫描提交接口 API返回值 +alibaba.security.jaq.app.risk.scan + +提交应用进行风险扫描(含漏洞扫描、恶意代码检测、仿冒监测),扫描完成后可通过对应的查询接口查询扫描结果 +*/ +type AlibabaSecurityJaqAppRiskScanAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqAppRiskScanAPIResponseModel +} + +// 应用风险扫描提交接口 成功返回结果 +type AlibabaSecurityJaqAppRiskScanAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_app_risk_scan_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 扫描任务信息 + Result *ScanTaskInfo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqAppRiskScanResponse.go b/model/security/AlibabaSecurityJaqAppRiskScanResponse.go deleted file mode 100644 index 77c97f6b80..0000000000 --- a/model/security/AlibabaSecurityJaqAppRiskScanResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -应用风险扫描提交接口 API返回值 -alibaba.security.jaq.app.risk.scan - -提交应用进行风险扫描(含漏洞扫描、恶意代码检测、仿冒监测),扫描完成后可通过对应的查询接口查询扫描结果 -*/ -type AlibabaSecurityJaqAppRiskScanAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqAppRiskScanResponse -} - -// 应用风险扫描提交接口 成功返回结果 -type AlibabaSecurityJaqAppRiskScanResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_app_risk_scan_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 扫描任务信息 - Result *ScanTaskInfo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqAppRiskScanbatchAPIRequest.go b/model/security/AlibabaSecurityJaqAppRiskScanbatchAPIRequest.go new file mode 100644 index 0000000000..182dff4e48 --- /dev/null +++ b/model/security/AlibabaSecurityJaqAppRiskScanbatchAPIRequest.go @@ -0,0 +1,66 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +应用风险扫描批量提交接口 API请求 +alibaba.security.jaq.app.risk.scanbatch + +批量提交应用进行风险扫描(含漏洞扫描、恶意代码检测),扫描完成后可通过对应的查询接口查询扫描结果 +*/ +type AlibabaSecurityJaqAppRiskScanbatchAPIRequest struct { + model.Params + // APP信息 + _appInfo *AppInfoBatch + // 扫描类型 + _scanTypes []string +} + +// 初始化AlibabaSecurityJaqAppRiskScanbatchAPIRequest对象 +func NewAlibabaSecurityJaqAppRiskScanbatchRequest() *AlibabaSecurityJaqAppRiskScanbatchAPIRequest{ + return &AlibabaSecurityJaqAppRiskScanbatchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqAppRiskScanbatchAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.app.risk.scanbatch" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqAppRiskScanbatchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppInfo Setter +// APP信息 +func (r *AlibabaSecurityJaqAppRiskScanbatchAPIRequest) SetAppInfo(_appInfo *AppInfoBatch) error { + r._appInfo = _appInfo + r.Set("app_info", _appInfo) + return nil +} + +// AppInfo Getter +func (r AlibabaSecurityJaqAppRiskScanbatchAPIRequest) GetAppInfo() *AppInfoBatch { + return r._appInfo +} +// ScanTypes Setter +// 扫描类型 +func (r *AlibabaSecurityJaqAppRiskScanbatchAPIRequest) SetScanTypes(_scanTypes []string) error { + r._scanTypes = _scanTypes + r.Set("scan_types", _scanTypes) + return nil +} + +// ScanTypes Getter +func (r AlibabaSecurityJaqAppRiskScanbatchAPIRequest) GetScanTypes() []string { + return r._scanTypes +} diff --git a/model/security/AlibabaSecurityJaqAppRiskScanbatchAPIResponse.go b/model/security/AlibabaSecurityJaqAppRiskScanbatchAPIResponse.go new file mode 100644 index 0000000000..665a0fe098 --- /dev/null +++ b/model/security/AlibabaSecurityJaqAppRiskScanbatchAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +应用风险扫描批量提交接口 API返回值 +alibaba.security.jaq.app.risk.scanbatch + +批量提交应用进行风险扫描(含漏洞扫描、恶意代码检测),扫描完成后可通过对应的查询接口查询扫描结果 +*/ +type AlibabaSecurityJaqAppRiskScanbatchAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqAppRiskScanbatchAPIResponseModel +} + +// 应用风险扫描批量提交接口 成功返回结果 +type AlibabaSecurityJaqAppRiskScanbatchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_app_risk_scanbatch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 扫描任务信息 + Result *TaskInfo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqAppRiskScanbatchResponse.go b/model/security/AlibabaSecurityJaqAppRiskScanbatchResponse.go deleted file mode 100644 index cc92478165..0000000000 --- a/model/security/AlibabaSecurityJaqAppRiskScanbatchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -应用风险扫描批量提交接口 API返回值 -alibaba.security.jaq.app.risk.scanbatch - -批量提交应用进行风险扫描(含漏洞扫描、恶意代码检测),扫描完成后可通过对应的查询接口查询扫描结果 -*/ -type AlibabaSecurityJaqAppRiskScanbatchAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqAppRiskScanbatchResponse -} - -// 应用风险扫描批量提交接口 成功返回结果 -type AlibabaSecurityJaqAppRiskScanbatchResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_app_risk_scanbatch_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 扫描任务信息 - Result *TaskInfo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqAppRiskdetailGetAPIRequest.go b/model/security/AlibabaSecurityJaqAppRiskdetailGetAPIRequest.go new file mode 100644 index 0000000000..8c0ddf0fab --- /dev/null +++ b/model/security/AlibabaSecurityJaqAppRiskdetailGetAPIRequest.go @@ -0,0 +1,66 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +应用风险详细信息查询接口 API请求 +alibaba.security.jaq.app.riskdetail.get + +用户通过alibaba.security.jaq.app.risk.scan接口提交应用进行风险扫描后,用此接口获取风险详细信息,包含漏洞列表、恶意代码列表、仿冒应用列表等信息 +*/ +type AlibabaSecurityJaqAppRiskdetailGetAPIRequest struct { + model.Params + // 任务唯一标识 + _itemId string + // 本地化语言信息 + _locale *Locale +} + +// 初始化AlibabaSecurityJaqAppRiskdetailGetAPIRequest对象 +func NewAlibabaSecurityJaqAppRiskdetailGetRequest() *AlibabaSecurityJaqAppRiskdetailGetAPIRequest{ + return &AlibabaSecurityJaqAppRiskdetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqAppRiskdetailGetAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.app.riskdetail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqAppRiskdetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 任务唯一标识 +func (r *AlibabaSecurityJaqAppRiskdetailGetAPIRequest) SetItemId(_itemId string) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaSecurityJaqAppRiskdetailGetAPIRequest) GetItemId() string { + return r._itemId +} +// Locale Setter +// 本地化语言信息 +func (r *AlibabaSecurityJaqAppRiskdetailGetAPIRequest) SetLocale(_locale *Locale) error { + r._locale = _locale + r.Set("locale", _locale) + return nil +} + +// Locale Getter +func (r AlibabaSecurityJaqAppRiskdetailGetAPIRequest) GetLocale() *Locale { + return r._locale +} diff --git a/model/security/AlibabaSecurityJaqAppRiskdetailGetAPIResponse.go b/model/security/AlibabaSecurityJaqAppRiskdetailGetAPIResponse.go new file mode 100644 index 0000000000..e1f0595604 --- /dev/null +++ b/model/security/AlibabaSecurityJaqAppRiskdetailGetAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +应用风险详细信息查询接口 API返回值 +alibaba.security.jaq.app.riskdetail.get + +用户通过alibaba.security.jaq.app.risk.scan接口提交应用进行风险扫描后,用此接口获取风险详细信息,包含漏洞列表、恶意代码列表、仿冒应用列表等信息 +*/ +type AlibabaSecurityJaqAppRiskdetailGetAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqAppRiskdetailGetAPIResponseModel +} + +// 应用风险详细信息查询接口 成功返回结果 +type AlibabaSecurityJaqAppRiskdetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_app_riskdetail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 风险详情 + Result *RiskDetail `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqAppRiskdetailGetResponse.go b/model/security/AlibabaSecurityJaqAppRiskdetailGetResponse.go deleted file mode 100644 index f402af3ccd..0000000000 --- a/model/security/AlibabaSecurityJaqAppRiskdetailGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -应用风险详细信息查询接口 API返回值 -alibaba.security.jaq.app.riskdetail.get - -用户通过alibaba.security.jaq.app.risk.scan接口提交应用进行风险扫描后,用此接口获取风险详细信息,包含漏洞列表、恶意代码列表、仿冒应用列表等信息 -*/ -type AlibabaSecurityJaqAppRiskdetailGetAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqAppRiskdetailGetResponse -} - -// 应用风险详细信息查询接口 成功返回结果 -type AlibabaSecurityJaqAppRiskdetailGetResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_app_riskdetail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 风险详情 - Result *RiskDetail `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqAppRiskdetailbatchGetAPIRequest.go b/model/security/AlibabaSecurityJaqAppRiskdetailbatchGetAPIRequest.go new file mode 100644 index 0000000000..70a315f280 --- /dev/null +++ b/model/security/AlibabaSecurityJaqAppRiskdetailbatchGetAPIRequest.go @@ -0,0 +1,66 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +应用风险详细信息批量查询接口 API请求 +alibaba.security.jaq.app.riskdetailbatch.get + +用户通过alibaba.security.jaq.app.risk.scanbatch接口提交应用进行风险批量扫描后,用此接口批量获取风险详细信息,包含漏洞列表、恶意代码列表、仿冒应用列表等信息 +*/ +type AlibabaSecurityJaqAppRiskdetailbatchGetAPIRequest struct { + model.Params + // 任务唯一标识 + _itemId string + // 本地化语言信息,用于指定返回结果内容所使用的语言(默认为zh_CN,目前仅支持zh_CN) + _locale *Locale +} + +// 初始化AlibabaSecurityJaqAppRiskdetailbatchGetAPIRequest对象 +func NewAlibabaSecurityJaqAppRiskdetailbatchGetRequest() *AlibabaSecurityJaqAppRiskdetailbatchGetAPIRequest{ + return &AlibabaSecurityJaqAppRiskdetailbatchGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqAppRiskdetailbatchGetAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.app.riskdetailbatch.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqAppRiskdetailbatchGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 任务唯一标识 +func (r *AlibabaSecurityJaqAppRiskdetailbatchGetAPIRequest) SetItemId(_itemId string) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaSecurityJaqAppRiskdetailbatchGetAPIRequest) GetItemId() string { + return r._itemId +} +// Locale Setter +// 本地化语言信息,用于指定返回结果内容所使用的语言(默认为zh_CN,目前仅支持zh_CN) +func (r *AlibabaSecurityJaqAppRiskdetailbatchGetAPIRequest) SetLocale(_locale *Locale) error { + r._locale = _locale + r.Set("locale", _locale) + return nil +} + +// Locale Getter +func (r AlibabaSecurityJaqAppRiskdetailbatchGetAPIRequest) GetLocale() *Locale { + return r._locale +} diff --git a/model/security/AlibabaSecurityJaqAppRiskdetailbatchGetAPIResponse.go b/model/security/AlibabaSecurityJaqAppRiskdetailbatchGetAPIResponse.go new file mode 100644 index 0000000000..2a6c4d0e10 --- /dev/null +++ b/model/security/AlibabaSecurityJaqAppRiskdetailbatchGetAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +应用风险详细信息批量查询接口 API返回值 +alibaba.security.jaq.app.riskdetailbatch.get + +用户通过alibaba.security.jaq.app.risk.scanbatch接口提交应用进行风险批量扫描后,用此接口批量获取风险详细信息,包含漏洞列表、恶意代码列表、仿冒应用列表等信息 +*/ +type AlibabaSecurityJaqAppRiskdetailbatchGetAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqAppRiskdetailbatchGetAPIResponseModel +} + +// 应用风险详细信息批量查询接口 成功返回结果 +type AlibabaSecurityJaqAppRiskdetailbatchGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_app_riskdetailbatch_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 批量扫描风险详情 + Result *RiskDetailBatch `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqAppRiskdetailbatchGetResponse.go b/model/security/AlibabaSecurityJaqAppRiskdetailbatchGetResponse.go deleted file mode 100644 index 0b7bc8d7b6..0000000000 --- a/model/security/AlibabaSecurityJaqAppRiskdetailbatchGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -应用风险详细信息批量查询接口 API返回值 -alibaba.security.jaq.app.riskdetailbatch.get - -用户通过alibaba.security.jaq.app.risk.scanbatch接口提交应用进行风险批量扫描后,用此接口批量获取风险详细信息,包含漏洞列表、恶意代码列表、仿冒应用列表等信息 -*/ -type AlibabaSecurityJaqAppRiskdetailbatchGetAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqAppRiskdetailbatchGetResponse -} - -// 应用风险详细信息批量查询接口 成功返回结果 -type AlibabaSecurityJaqAppRiskdetailbatchGetResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_app_riskdetailbatch_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 批量扫描风险详情 - Result *RiskDetailBatch `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqAppRisksummaryGetAPIRequest.go b/model/security/AlibabaSecurityJaqAppRisksummaryGetAPIRequest.go new file mode 100644 index 0000000000..de94aac577 --- /dev/null +++ b/model/security/AlibabaSecurityJaqAppRisksummaryGetAPIRequest.go @@ -0,0 +1,52 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +应用风险概要信息查询接口 API请求 +alibaba.security.jaq.app.risksummary.get + +用户通过alibaba.security.jaq.app.risk.scan接口提交应用进行风险扫描后,用此接口获取风险概要信息,本接口不返回风险详细信息 +*/ +type AlibabaSecurityJaqAppRisksummaryGetAPIRequest struct { + model.Params + // 任务唯一标识 + _itemId string +} + +// 初始化AlibabaSecurityJaqAppRisksummaryGetAPIRequest对象 +func NewAlibabaSecurityJaqAppRisksummaryGetRequest() *AlibabaSecurityJaqAppRisksummaryGetAPIRequest{ + return &AlibabaSecurityJaqAppRisksummaryGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqAppRisksummaryGetAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.app.risksummary.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqAppRisksummaryGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 任务唯一标识 +func (r *AlibabaSecurityJaqAppRisksummaryGetAPIRequest) SetItemId(_itemId string) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaSecurityJaqAppRisksummaryGetAPIRequest) GetItemId() string { + return r._itemId +} diff --git a/model/security/AlibabaSecurityJaqAppRisksummaryGetAPIResponse.go b/model/security/AlibabaSecurityJaqAppRisksummaryGetAPIResponse.go new file mode 100644 index 0000000000..6df97fb0cb --- /dev/null +++ b/model/security/AlibabaSecurityJaqAppRisksummaryGetAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +应用风险概要信息查询接口 API返回值 +alibaba.security.jaq.app.risksummary.get + +用户通过alibaba.security.jaq.app.risk.scan接口提交应用进行风险扫描后,用此接口获取风险概要信息,本接口不返回风险详细信息 +*/ +type AlibabaSecurityJaqAppRisksummaryGetAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqAppRisksummaryGetAPIResponseModel +} + +// 应用风险概要信息查询接口 成功返回结果 +type AlibabaSecurityJaqAppRisksummaryGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_app_risksummary_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 应用扫描概要信息 + Result *RiskSummary `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqAppRisksummaryGetResponse.go b/model/security/AlibabaSecurityJaqAppRisksummaryGetResponse.go deleted file mode 100644 index a3ebd9433e..0000000000 --- a/model/security/AlibabaSecurityJaqAppRisksummaryGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -应用风险概要信息查询接口 API返回值 -alibaba.security.jaq.app.risksummary.get - -用户通过alibaba.security.jaq.app.risk.scan接口提交应用进行风险扫描后,用此接口获取风险概要信息,本接口不返回风险详细信息 -*/ -type AlibabaSecurityJaqAppRisksummaryGetAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqAppRisksummaryGetResponse -} - -// 应用风险概要信息查询接口 成功返回结果 -type AlibabaSecurityJaqAppRisksummaryGetResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_app_risksummary_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 应用扫描概要信息 - Result *RiskSummary `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqAppShieldAPIRequest.go b/model/security/AlibabaSecurityJaqAppShieldAPIRequest.go new file mode 100644 index 0000000000..a1c90584d9 --- /dev/null +++ b/model/security/AlibabaSecurityJaqAppShieldAPIRequest.go @@ -0,0 +1,66 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +应用加固接口 API请求 +alibaba.security.jaq.app.shield + +提交应用进行应用加固,加固后需通过alibaba.security.jaq.app.shieldresult.get接口查询加固结果 +*/ +type AlibabaSecurityJaqAppShieldAPIRequest struct { + model.Params + // 待加固的应用信息 + _appInfo *ScanAppInfo + // 渠道列表,多渠道加固时填写 + _channel *ShieldChannel +} + +// 初始化AlibabaSecurityJaqAppShieldAPIRequest对象 +func NewAlibabaSecurityJaqAppShieldRequest() *AlibabaSecurityJaqAppShieldAPIRequest{ + return &AlibabaSecurityJaqAppShieldAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqAppShieldAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.app.shield" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqAppShieldAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppInfo Setter +// 待加固的应用信息 +func (r *AlibabaSecurityJaqAppShieldAPIRequest) SetAppInfo(_appInfo *ScanAppInfo) error { + r._appInfo = _appInfo + r.Set("app_info", _appInfo) + return nil +} + +// AppInfo Getter +func (r AlibabaSecurityJaqAppShieldAPIRequest) GetAppInfo() *ScanAppInfo { + return r._appInfo +} +// Channel Setter +// 渠道列表,多渠道加固时填写 +func (r *AlibabaSecurityJaqAppShieldAPIRequest) SetChannel(_channel *ShieldChannel) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r AlibabaSecurityJaqAppShieldAPIRequest) GetChannel() *ShieldChannel { + return r._channel +} diff --git a/model/security/AlibabaSecurityJaqAppShieldAPIResponse.go b/model/security/AlibabaSecurityJaqAppShieldAPIResponse.go new file mode 100644 index 0000000000..dc8b83374e --- /dev/null +++ b/model/security/AlibabaSecurityJaqAppShieldAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +应用加固接口 API返回值 +alibaba.security.jaq.app.shield + +提交应用进行应用加固,加固后需通过alibaba.security.jaq.app.shieldresult.get接口查询加固结果 +*/ +type AlibabaSecurityJaqAppShieldAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqAppShieldAPIResponseModel +} + +// 应用加固接口 成功返回结果 +type AlibabaSecurityJaqAppShieldAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_app_shield_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 加固任务信息 + Result *ScanTaskInfo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqAppShieldResponse.go b/model/security/AlibabaSecurityJaqAppShieldResponse.go deleted file mode 100644 index 7dd29715cf..0000000000 --- a/model/security/AlibabaSecurityJaqAppShieldResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -应用加固接口 API返回值 -alibaba.security.jaq.app.shield - -提交应用进行应用加固,加固后需通过alibaba.security.jaq.app.shieldresult.get接口查询加固结果 -*/ -type AlibabaSecurityJaqAppShieldAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqAppShieldResponse -} - -// 应用加固接口 成功返回结果 -type AlibabaSecurityJaqAppShieldResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_app_shield_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 加固任务信息 - Result *ScanTaskInfo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqAppShieldresultGetAPIRequest.go b/model/security/AlibabaSecurityJaqAppShieldresultGetAPIRequest.go new file mode 100644 index 0000000000..cf7682180d --- /dev/null +++ b/model/security/AlibabaSecurityJaqAppShieldresultGetAPIRequest.go @@ -0,0 +1,52 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户查询加固结果 API请求 +alibaba.security.jaq.app.shieldresult.get + +用户通过alibaba.security.jaq.app.shield接口提交应用加固后,通过该接口查询加固结果,下载加固包 +*/ +type AlibabaSecurityJaqAppShieldresultGetAPIRequest struct { + model.Params + // 任务唯一标识 + _itemId string +} + +// 初始化AlibabaSecurityJaqAppShieldresultGetAPIRequest对象 +func NewAlibabaSecurityJaqAppShieldresultGetRequest() *AlibabaSecurityJaqAppShieldresultGetAPIRequest{ + return &AlibabaSecurityJaqAppShieldresultGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqAppShieldresultGetAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.app.shieldresult.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqAppShieldresultGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 任务唯一标识 +func (r *AlibabaSecurityJaqAppShieldresultGetAPIRequest) SetItemId(_itemId string) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaSecurityJaqAppShieldresultGetAPIRequest) GetItemId() string { + return r._itemId +} diff --git a/model/security/AlibabaSecurityJaqAppShieldresultGetAPIResponse.go b/model/security/AlibabaSecurityJaqAppShieldresultGetAPIResponse.go new file mode 100644 index 0000000000..ee70426786 --- /dev/null +++ b/model/security/AlibabaSecurityJaqAppShieldresultGetAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户查询加固结果 API返回值 +alibaba.security.jaq.app.shieldresult.get + +用户通过alibaba.security.jaq.app.shield接口提交应用加固后,通过该接口查询加固结果,下载加固包 +*/ +type AlibabaSecurityJaqAppShieldresultGetAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqAppShieldresultGetAPIResponseModel +} + +// 用户查询加固结果 成功返回结果 +type AlibabaSecurityJaqAppShieldresultGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_app_shieldresult_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 应用加固结果 + Result *ShieldResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqAppShieldresultGetResponse.go b/model/security/AlibabaSecurityJaqAppShieldresultGetResponse.go deleted file mode 100644 index 85b89fde64..0000000000 --- a/model/security/AlibabaSecurityJaqAppShieldresultGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户查询加固结果 API返回值 -alibaba.security.jaq.app.shieldresult.get - -用户通过alibaba.security.jaq.app.shield接口提交应用加固后,通过该接口查询加固结果,下载加固包 -*/ -type AlibabaSecurityJaqAppShieldresultGetAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqAppShieldresultGetResponse -} - -// 用户查询加固结果 成功返回结果 -type AlibabaSecurityJaqAppShieldresultGetResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_app_shieldresult_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 应用加固结果 - Result *ShieldResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest.go b/model/security/AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest.go new file mode 100644 index 0000000000..21c7891b72 --- /dev/null +++ b/model/security/AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest.go @@ -0,0 +1,416 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取活动保护结果 API请求 +alibaba.security.jaq.campaignprevention.result.fetch + +获取活动保护结果 +*/ +type AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest struct { + model.Params + // 电话号码。手机号码的格式为国家码-手机号的格式,如中国手机号86-13088889999或美国手机号001-9096185426,如果不加国家码都视为中国手机号码【phone_number ,email, (user_id,id_type)三种必选其一】 + _phoneNumber string + // 邮箱地址。【phone_number ,email, (user_id,id_type)三种必选其一】 + _email string + // 账号的全局唯一标识。【phone_number ,email, (user_id,id_type)三种必选其一】 + _userId string + // 有user_id时候必填。1:阿里HID;2:用户自有ID;3:openId; 4:其它。【phone_number ,email, (user_id,id_type)三种必选其一】 + _idType int64 + // 登录时候的IP地址 + _ip string + // 登录来源。1:PC网页;2:移动网页;3:APP;4:其它 + _source int64 + // 当前操作的页面URL。Source为1,2时,该参数必选 + _currentUrl string + // 发送HTTP请求的代理 + _agent string + // Cookie + _cookie string + // Session id + _sessionId string + // 硬件信息 + _macAddress string + // 上一跳信息 + _referer string + // 账号绑定的呢称 + _userName string + // 账号绑定的公司名字 + _companyName string + // 账号绑定的注册的地址 + _address string + // 账号绑定的身份证号 + _idNumber string + // 账号绑定的银行卡号 + _bankCardNumber string + // 接入JS后获取的token + _jsToken string + // 接入无线保镖安全组件后从服务端获取的token + _sdkToken string + // 协议版本号。现在的值是1.0 + _protocolVersion string + // 扩展字段。json格式的字符串,根据具体情况而定 。 + _extendData string + // 活动描述,场景为活动时提供,活动基本规则描述,以评估活动流程的风险 + _activityDescription string + // 活动编号 + _activityId string + // 活动奖品面值,场景为活动时提供,活动抽中的价值 + _prize string + // 活动奖品类型。1:事物;2:红包;3:优惠券;4:购物券;5:积分;6:代币;0:其它 + _prizeType int64 + // 注册的时间(秒) + _registerDate int64 + // 注册时候的ip + _registerIp string +} + +// 初始化AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest对象 +func NewAlibabaSecurityJaqCampaignpreventionResultFetchRequest() *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest{ + return &AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.campaignprevention.result.fetch" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PhoneNumber Setter +// 电话号码。手机号码的格式为国家码-手机号的格式,如中国手机号86-13088889999或美国手机号001-9096185426,如果不加国家码都视为中国手机号码【phone_number ,email, (user_id,id_type)三种必选其一】 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetPhoneNumber(_phoneNumber string) error { + r._phoneNumber = _phoneNumber + r.Set("phone_number", _phoneNumber) + return nil +} + +// PhoneNumber Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetPhoneNumber() string { + return r._phoneNumber +} +// Email Setter +// 邮箱地址。【phone_number ,email, (user_id,id_type)三种必选其一】 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetEmail(_email string) error { + r._email = _email + r.Set("email", _email) + return nil +} + +// Email Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetEmail() string { + return r._email +} +// UserId Setter +// 账号的全局唯一标识。【phone_number ,email, (user_id,id_type)三种必选其一】 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetUserId() string { + return r._userId +} +// IdType Setter +// 有user_id时候必填。1:阿里HID;2:用户自有ID;3:openId; 4:其它。【phone_number ,email, (user_id,id_type)三种必选其一】 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetIdType(_idType int64) error { + r._idType = _idType + r.Set("id_type", _idType) + return nil +} + +// IdType Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetIdType() int64 { + return r._idType +} +// Ip Setter +// 登录时候的IP地址 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetIp(_ip string) error { + r._ip = _ip + r.Set("ip", _ip) + return nil +} + +// Ip Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetIp() string { + return r._ip +} +// Source Setter +// 登录来源。1:PC网页;2:移动网页;3:APP;4:其它 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetSource(_source int64) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetSource() int64 { + return r._source +} +// CurrentUrl Setter +// 当前操作的页面URL。Source为1,2时,该参数必选 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetCurrentUrl(_currentUrl string) error { + r._currentUrl = _currentUrl + r.Set("current_url", _currentUrl) + return nil +} + +// CurrentUrl Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetCurrentUrl() string { + return r._currentUrl +} +// Agent Setter +// 发送HTTP请求的代理 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetAgent(_agent string) error { + r._agent = _agent + r.Set("agent", _agent) + return nil +} + +// Agent Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetAgent() string { + return r._agent +} +// Cookie Setter +// Cookie +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetCookie(_cookie string) error { + r._cookie = _cookie + r.Set("cookie", _cookie) + return nil +} + +// Cookie Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetCookie() string { + return r._cookie +} +// SessionId Setter +// Session id +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetSessionId(_sessionId string) error { + r._sessionId = _sessionId + r.Set("session_id", _sessionId) + return nil +} + +// SessionId Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetSessionId() string { + return r._sessionId +} +// MacAddress Setter +// 硬件信息 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetMacAddress(_macAddress string) error { + r._macAddress = _macAddress + r.Set("mac_address", _macAddress) + return nil +} + +// MacAddress Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetMacAddress() string { + return r._macAddress +} +// Referer Setter +// 上一跳信息 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetReferer(_referer string) error { + r._referer = _referer + r.Set("referer", _referer) + return nil +} + +// Referer Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetReferer() string { + return r._referer +} +// UserName Setter +// 账号绑定的呢称 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetUserName(_userName string) error { + r._userName = _userName + r.Set("user_name", _userName) + return nil +} + +// UserName Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetUserName() string { + return r._userName +} +// CompanyName Setter +// 账号绑定的公司名字 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetCompanyName(_companyName string) error { + r._companyName = _companyName + r.Set("company_name", _companyName) + return nil +} + +// CompanyName Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetCompanyName() string { + return r._companyName +} +// Address Setter +// 账号绑定的注册的地址 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetAddress() string { + return r._address +} +// IdNumber Setter +// 账号绑定的身份证号 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetIdNumber(_idNumber string) error { + r._idNumber = _idNumber + r.Set("id_number", _idNumber) + return nil +} + +// IdNumber Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetIdNumber() string { + return r._idNumber +} +// BankCardNumber Setter +// 账号绑定的银行卡号 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetBankCardNumber(_bankCardNumber string) error { + r._bankCardNumber = _bankCardNumber + r.Set("bank_card_number", _bankCardNumber) + return nil +} + +// BankCardNumber Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetBankCardNumber() string { + return r._bankCardNumber +} +// JsToken Setter +// 接入JS后获取的token +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetJsToken(_jsToken string) error { + r._jsToken = _jsToken + r.Set("js_token", _jsToken) + return nil +} + +// JsToken Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetJsToken() string { + return r._jsToken +} +// SdkToken Setter +// 接入无线保镖安全组件后从服务端获取的token +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetSdkToken(_sdkToken string) error { + r._sdkToken = _sdkToken + r.Set("sdk_token", _sdkToken) + return nil +} + +// SdkToken Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetSdkToken() string { + return r._sdkToken +} +// ProtocolVersion Setter +// 协议版本号。现在的值是1.0 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetProtocolVersion(_protocolVersion string) error { + r._protocolVersion = _protocolVersion + r.Set("protocol_version", _protocolVersion) + return nil +} + +// ProtocolVersion Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetProtocolVersion() string { + return r._protocolVersion +} +// ExtendData Setter +// 扩展字段。json格式的字符串,根据具体情况而定 。 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetExtendData(_extendData string) error { + r._extendData = _extendData + r.Set("extend_data", _extendData) + return nil +} + +// ExtendData Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetExtendData() string { + return r._extendData +} +// ActivityDescription Setter +// 活动描述,场景为活动时提供,活动基本规则描述,以评估活动流程的风险 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetActivityDescription(_activityDescription string) error { + r._activityDescription = _activityDescription + r.Set("activity_description", _activityDescription) + return nil +} + +// ActivityDescription Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetActivityDescription() string { + return r._activityDescription +} +// ActivityId Setter +// 活动编号 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetActivityId(_activityId string) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetActivityId() string { + return r._activityId +} +// Prize Setter +// 活动奖品面值,场景为活动时提供,活动抽中的价值 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetPrize(_prize string) error { + r._prize = _prize + r.Set("prize", _prize) + return nil +} + +// Prize Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetPrize() string { + return r._prize +} +// PrizeType Setter +// 活动奖品类型。1:事物;2:红包;3:优惠券;4:购物券;5:积分;6:代币;0:其它 +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetPrizeType(_prizeType int64) error { + r._prizeType = _prizeType + r.Set("prize_type", _prizeType) + return nil +} + +// PrizeType Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetPrizeType() int64 { + return r._prizeType +} +// RegisterDate Setter +// 注册的时间(秒) +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetRegisterDate(_registerDate int64) error { + r._registerDate = _registerDate + r.Set("register_date", _registerDate) + return nil +} + +// RegisterDate Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetRegisterDate() int64 { + return r._registerDate +} +// RegisterIp Setter +// 注册时候的ip +func (r *AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) SetRegisterIp(_registerIp string) error { + r._registerIp = _registerIp + r.Set("register_ip", _registerIp) + return nil +} + +// RegisterIp Getter +func (r AlibabaSecurityJaqCampaignpreventionResultFetchAPIRequest) GetRegisterIp() string { + return r._registerIp +} diff --git a/model/security/AlibabaSecurityJaqCampaignpreventionResultFetchAPIResponse.go b/model/security/AlibabaSecurityJaqCampaignpreventionResultFetchAPIResponse.go new file mode 100644 index 0000000000..c48e7fd16a --- /dev/null +++ b/model/security/AlibabaSecurityJaqCampaignpreventionResultFetchAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取活动保护结果 API返回值 +alibaba.security.jaq.campaignprevention.result.fetch + +获取活动保护结果 +*/ +type AlibabaSecurityJaqCampaignpreventionResultFetchAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqCampaignpreventionResultFetchAPIResponseModel +} + +// 获取活动保护结果 成功返回结果 +type AlibabaSecurityJaqCampaignpreventionResultFetchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_campaignprevention_result_fetch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 账号风控返回结果 + JaqAccountRiskResult *JaqAccountRiskResult `json:"jaq_account_risk_result,omitempty" xml:"jaq_account_risk_result,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqCampaignpreventionResultFetchResponse.go b/model/security/AlibabaSecurityJaqCampaignpreventionResultFetchResponse.go deleted file mode 100644 index 4a57384dc7..0000000000 --- a/model/security/AlibabaSecurityJaqCampaignpreventionResultFetchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取活动保护结果 API返回值 -alibaba.security.jaq.campaignprevention.result.fetch - -获取活动保护结果 -*/ -type AlibabaSecurityJaqCampaignpreventionResultFetchAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqCampaignpreventionResultFetchResponse -} - -// 获取活动保护结果 成功返回结果 -type AlibabaSecurityJaqCampaignpreventionResultFetchResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_campaignprevention_result_fetch_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 账号风控返回结果 - JaqAccountRiskResult *JaqAccountRiskResult `json:"jaq_account_risk_result,omitempty" xml:"jaq_account_risk_result,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqCaptchaSendAPIRequest.go b/model/security/AlibabaSecurityJaqCaptchaSendAPIRequest.go new file mode 100644 index 0000000000..34aa928414 --- /dev/null +++ b/model/security/AlibabaSecurityJaqCaptchaSendAPIRequest.go @@ -0,0 +1,136 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全安全验证发起接口 API请求 +alibaba.security.jaq.captcha.send + +聚安全安全验证发起 +*/ +type AlibabaSecurityJaqCaptchaSendAPIRequest struct { + model.Params + // 验证码发送渠道类型 1-短信 3-邮件 + _captchaType int64 + // 扩展字段,格式为JSON字符串,用于传递“滚小球”等验证方式所需的额外入参,例如屏幕尺寸等,请参考示例 + _extendData string + // 协议版本号 + _protocolVersion string + // 软token签名 + _rsign string + // 软token索引 + _rtkenIndex string + // UMID token + _utoken string + // 风险识别接口返回的信息口令 + _infoToken string +} + +// 初始化AlibabaSecurityJaqCaptchaSendAPIRequest对象 +func NewAlibabaSecurityJaqCaptchaSendRequest() *AlibabaSecurityJaqCaptchaSendAPIRequest{ + return &AlibabaSecurityJaqCaptchaSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqCaptchaSendAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.captcha.send" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqCaptchaSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CaptchaType Setter +// 验证码发送渠道类型 1-短信 3-邮件 +func (r *AlibabaSecurityJaqCaptchaSendAPIRequest) SetCaptchaType(_captchaType int64) error { + r._captchaType = _captchaType + r.Set("captcha_type", _captchaType) + return nil +} + +// CaptchaType Getter +func (r AlibabaSecurityJaqCaptchaSendAPIRequest) GetCaptchaType() int64 { + return r._captchaType +} +// ExtendData Setter +// 扩展字段,格式为JSON字符串,用于传递“滚小球”等验证方式所需的额外入参,例如屏幕尺寸等,请参考示例 +func (r *AlibabaSecurityJaqCaptchaSendAPIRequest) SetExtendData(_extendData string) error { + r._extendData = _extendData + r.Set("extend_data", _extendData) + return nil +} + +// ExtendData Getter +func (r AlibabaSecurityJaqCaptchaSendAPIRequest) GetExtendData() string { + return r._extendData +} +// ProtocolVersion Setter +// 协议版本号 +func (r *AlibabaSecurityJaqCaptchaSendAPIRequest) SetProtocolVersion(_protocolVersion string) error { + r._protocolVersion = _protocolVersion + r.Set("protocol_version", _protocolVersion) + return nil +} + +// ProtocolVersion Getter +func (r AlibabaSecurityJaqCaptchaSendAPIRequest) GetProtocolVersion() string { + return r._protocolVersion +} +// Rsign Setter +// 软token签名 +func (r *AlibabaSecurityJaqCaptchaSendAPIRequest) SetRsign(_rsign string) error { + r._rsign = _rsign + r.Set("rsign", _rsign) + return nil +} + +// Rsign Getter +func (r AlibabaSecurityJaqCaptchaSendAPIRequest) GetRsign() string { + return r._rsign +} +// RtkenIndex Setter +// 软token索引 +func (r *AlibabaSecurityJaqCaptchaSendAPIRequest) SetRtkenIndex(_rtkenIndex string) error { + r._rtkenIndex = _rtkenIndex + r.Set("rtken_index", _rtkenIndex) + return nil +} + +// RtkenIndex Getter +func (r AlibabaSecurityJaqCaptchaSendAPIRequest) GetRtkenIndex() string { + return r._rtkenIndex +} +// Utoken Setter +// UMID token +func (r *AlibabaSecurityJaqCaptchaSendAPIRequest) SetUtoken(_utoken string) error { + r._utoken = _utoken + r.Set("utoken", _utoken) + return nil +} + +// Utoken Getter +func (r AlibabaSecurityJaqCaptchaSendAPIRequest) GetUtoken() string { + return r._utoken +} +// InfoToken Setter +// 风险识别接口返回的信息口令 +func (r *AlibabaSecurityJaqCaptchaSendAPIRequest) SetInfoToken(_infoToken string) error { + r._infoToken = _infoToken + r.Set("info_token", _infoToken) + return nil +} + +// InfoToken Getter +func (r AlibabaSecurityJaqCaptchaSendAPIRequest) GetInfoToken() string { + return r._infoToken +} diff --git a/model/security/AlibabaSecurityJaqCaptchaSendAPIResponse.go b/model/security/AlibabaSecurityJaqCaptchaSendAPIResponse.go new file mode 100644 index 0000000000..9aae28cf3d --- /dev/null +++ b/model/security/AlibabaSecurityJaqCaptchaSendAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全安全验证发起接口 API返回值 +alibaba.security.jaq.captcha.send + +聚安全安全验证发起 +*/ +type AlibabaSecurityJaqCaptchaSendAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqCaptchaSendAPIResponseModel +} + +// 聚安全安全验证发起接口 成功返回结果 +type AlibabaSecurityJaqCaptchaSendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_captcha_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参结构体 + Data *JaqSendCaptchaResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqCaptchaSendResponse.go b/model/security/AlibabaSecurityJaqCaptchaSendResponse.go deleted file mode 100644 index 0d731f0c49..0000000000 --- a/model/security/AlibabaSecurityJaqCaptchaSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚安全安全验证发起接口 API返回值 -alibaba.security.jaq.captcha.send - -聚安全安全验证发起 -*/ -type AlibabaSecurityJaqCaptchaSendAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqCaptchaSendResponse -} - -// 聚安全安全验证发起接口 成功返回结果 -type AlibabaSecurityJaqCaptchaSendResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_captcha_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参结构体 - Data *JaqSendCaptchaResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqCaptchaVerifyAPIRequest.go b/model/security/AlibabaSecurityJaqCaptchaVerifyAPIRequest.go new file mode 100644 index 0000000000..87de8c336c --- /dev/null +++ b/model/security/AlibabaSecurityJaqCaptchaVerifyAPIRequest.go @@ -0,0 +1,150 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全安全验证检查接口 API请求 +alibaba.security.jaq.captcha.verify + +聚安全安全验证检查 +*/ +type AlibabaSecurityJaqCaptchaVerifyAPIRequest struct { + model.Params + // 验证码发送渠道类型 1-短信 2-语音 3-邮件 + _captchaType int64 + // 扩展字段,格式为JSON字符串,用于传递“短信验证”等验证方式所需的额外入参,例如用户输入的验证码等,格式及JSON字段key定义请参考示例 + _extendData string + // 协议版本号 + _protocolVersion string + // 软token签名 + _rsign string + // 软token索引 + _rtkenIndex string + // 验证码会话ID + _sessionId string + // UMID token + _utoken string + // 风险识别接口返回的信息口令 + _infoToken string +} + +// 初始化AlibabaSecurityJaqCaptchaVerifyAPIRequest对象 +func NewAlibabaSecurityJaqCaptchaVerifyRequest() *AlibabaSecurityJaqCaptchaVerifyAPIRequest{ + return &AlibabaSecurityJaqCaptchaVerifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqCaptchaVerifyAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.captcha.verify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqCaptchaVerifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CaptchaType Setter +// 验证码发送渠道类型 1-短信 2-语音 3-邮件 +func (r *AlibabaSecurityJaqCaptchaVerifyAPIRequest) SetCaptchaType(_captchaType int64) error { + r._captchaType = _captchaType + r.Set("captcha_type", _captchaType) + return nil +} + +// CaptchaType Getter +func (r AlibabaSecurityJaqCaptchaVerifyAPIRequest) GetCaptchaType() int64 { + return r._captchaType +} +// ExtendData Setter +// 扩展字段,格式为JSON字符串,用于传递“短信验证”等验证方式所需的额外入参,例如用户输入的验证码等,格式及JSON字段key定义请参考示例 +func (r *AlibabaSecurityJaqCaptchaVerifyAPIRequest) SetExtendData(_extendData string) error { + r._extendData = _extendData + r.Set("extend_data", _extendData) + return nil +} + +// ExtendData Getter +func (r AlibabaSecurityJaqCaptchaVerifyAPIRequest) GetExtendData() string { + return r._extendData +} +// ProtocolVersion Setter +// 协议版本号 +func (r *AlibabaSecurityJaqCaptchaVerifyAPIRequest) SetProtocolVersion(_protocolVersion string) error { + r._protocolVersion = _protocolVersion + r.Set("protocol_version", _protocolVersion) + return nil +} + +// ProtocolVersion Getter +func (r AlibabaSecurityJaqCaptchaVerifyAPIRequest) GetProtocolVersion() string { + return r._protocolVersion +} +// Rsign Setter +// 软token签名 +func (r *AlibabaSecurityJaqCaptchaVerifyAPIRequest) SetRsign(_rsign string) error { + r._rsign = _rsign + r.Set("rsign", _rsign) + return nil +} + +// Rsign Getter +func (r AlibabaSecurityJaqCaptchaVerifyAPIRequest) GetRsign() string { + return r._rsign +} +// RtkenIndex Setter +// 软token索引 +func (r *AlibabaSecurityJaqCaptchaVerifyAPIRequest) SetRtkenIndex(_rtkenIndex string) error { + r._rtkenIndex = _rtkenIndex + r.Set("rtken_index", _rtkenIndex) + return nil +} + +// RtkenIndex Getter +func (r AlibabaSecurityJaqCaptchaVerifyAPIRequest) GetRtkenIndex() string { + return r._rtkenIndex +} +// SessionId Setter +// 验证码会话ID +func (r *AlibabaSecurityJaqCaptchaVerifyAPIRequest) SetSessionId(_sessionId string) error { + r._sessionId = _sessionId + r.Set("session_id", _sessionId) + return nil +} + +// SessionId Getter +func (r AlibabaSecurityJaqCaptchaVerifyAPIRequest) GetSessionId() string { + return r._sessionId +} +// Utoken Setter +// UMID token +func (r *AlibabaSecurityJaqCaptchaVerifyAPIRequest) SetUtoken(_utoken string) error { + r._utoken = _utoken + r.Set("utoken", _utoken) + return nil +} + +// Utoken Getter +func (r AlibabaSecurityJaqCaptchaVerifyAPIRequest) GetUtoken() string { + return r._utoken +} +// InfoToken Setter +// 风险识别接口返回的信息口令 +func (r *AlibabaSecurityJaqCaptchaVerifyAPIRequest) SetInfoToken(_infoToken string) error { + r._infoToken = _infoToken + r.Set("info_token", _infoToken) + return nil +} + +// InfoToken Getter +func (r AlibabaSecurityJaqCaptchaVerifyAPIRequest) GetInfoToken() string { + return r._infoToken +} diff --git a/model/security/AlibabaSecurityJaqCaptchaVerifyAPIResponse.go b/model/security/AlibabaSecurityJaqCaptchaVerifyAPIResponse.go new file mode 100644 index 0000000000..e72303302d --- /dev/null +++ b/model/security/AlibabaSecurityJaqCaptchaVerifyAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全安全验证检查接口 API返回值 +alibaba.security.jaq.captcha.verify + +聚安全安全验证检查 +*/ +type AlibabaSecurityJaqCaptchaVerifyAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqCaptchaVerifyAPIResponseModel +} + +// 聚安全安全验证检查接口 成功返回结果 +type AlibabaSecurityJaqCaptchaVerifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_captcha_verify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参结构体 + Data *JaqVerifyCaptchaResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqCaptchaVerifyResponse.go b/model/security/AlibabaSecurityJaqCaptchaVerifyResponse.go deleted file mode 100644 index e408df9000..0000000000 --- a/model/security/AlibabaSecurityJaqCaptchaVerifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚安全安全验证检查接口 API返回值 -alibaba.security.jaq.captcha.verify - -聚安全安全验证检查 -*/ -type AlibabaSecurityJaqCaptchaVerifyAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqCaptchaVerifyResponse -} - -// 聚安全安全验证检查接口 成功返回结果 -type AlibabaSecurityJaqCaptchaVerifyResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_captcha_verify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参结构体 - Data *JaqVerifyCaptchaResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqCaptchaVerifyResultFetchAPIRequest.go b/model/security/AlibabaSecurityJaqCaptchaVerifyResultFetchAPIRequest.go new file mode 100644 index 0000000000..988c4f4302 --- /dev/null +++ b/model/security/AlibabaSecurityJaqCaptchaVerifyResultFetchAPIRequest.go @@ -0,0 +1,52 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全安全验证检查结果获取接口 API请求 +alibaba.security.jaq.captcha.verify.result.fetch + +获取二次验证的结果 +*/ +type AlibabaSecurityJaqCaptchaVerifyResultFetchAPIRequest struct { + model.Params + // 二次验证获取验证检查结果所需的seesionId + _sessionId string +} + +// 初始化AlibabaSecurityJaqCaptchaVerifyResultFetchAPIRequest对象 +func NewAlibabaSecurityJaqCaptchaVerifyResultFetchRequest() *AlibabaSecurityJaqCaptchaVerifyResultFetchAPIRequest{ + return &AlibabaSecurityJaqCaptchaVerifyResultFetchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqCaptchaVerifyResultFetchAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.captcha.verify.result.fetch" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqCaptchaVerifyResultFetchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SessionId Setter +// 二次验证获取验证检查结果所需的seesionId +func (r *AlibabaSecurityJaqCaptchaVerifyResultFetchAPIRequest) SetSessionId(_sessionId string) error { + r._sessionId = _sessionId + r.Set("session_id", _sessionId) + return nil +} + +// SessionId Getter +func (r AlibabaSecurityJaqCaptchaVerifyResultFetchAPIRequest) GetSessionId() string { + return r._sessionId +} diff --git a/model/security/AlibabaSecurityJaqCaptchaVerifyResultFetchAPIResponse.go b/model/security/AlibabaSecurityJaqCaptchaVerifyResultFetchAPIResponse.go new file mode 100644 index 0000000000..0573958d66 --- /dev/null +++ b/model/security/AlibabaSecurityJaqCaptchaVerifyResultFetchAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全安全验证检查结果获取接口 API返回值 +alibaba.security.jaq.captcha.verify.result.fetch + +获取二次验证的结果 +*/ +type AlibabaSecurityJaqCaptchaVerifyResultFetchAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqCaptchaVerifyResultFetchAPIResponseModel +} + +// 聚安全安全验证检查结果获取接口 成功返回结果 +type AlibabaSecurityJaqCaptchaVerifyResultFetchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_captcha_verify_result_fetch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 验证检查结果结构体 + Data *JaqSecondCheckResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqCaptchaVerifyResultFetchResponse.go b/model/security/AlibabaSecurityJaqCaptchaVerifyResultFetchResponse.go deleted file mode 100644 index 0aab853b42..0000000000 --- a/model/security/AlibabaSecurityJaqCaptchaVerifyResultFetchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚安全安全验证检查结果获取接口 API返回值 -alibaba.security.jaq.captcha.verify.result.fetch - -获取二次验证的结果 -*/ -type AlibabaSecurityJaqCaptchaVerifyResultFetchAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqCaptchaVerifyResultFetchResponse -} - -// 聚安全安全验证检查结果获取接口 成功返回结果 -type AlibabaSecurityJaqCaptchaVerifyResultFetchResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_captcha_verify_result_fetch_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 验证检查结果结构体 - Data *JaqSecondCheckResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest.go b/model/security/AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest.go new file mode 100644 index 0000000000..a9a0d2bbee --- /dev/null +++ b/model/security/AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest.go @@ -0,0 +1,416 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取登录保护结果 API请求 +alibaba.security.jaq.loginprevention.result.fetch + +获取登录保护结果 +*/ +type AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest struct { + model.Params + // 关联账号的手机号。手机号码的格式为国家码-手机号的格式,如中国手机号86-13088889999或美国手机号001-9096185426,如果不加国家码都视为中国手机号码【phone_number ,email, (user_id,id_type)三种必选其一】 + _phoneNumber string + // 关联账号的email。【phone_number ,email, (user_id,id_type)三种必选其一】 + _email string + // 账号的全局唯一标识,为了提高准确率,建议带上该字段。【phone_number ,email, (user_id,id_type)三种必选其一】 + _userId string + // 账号的全局唯一标识,为了提高准确率,建议带上该字段。【phone_number ,email, (user_id,id_type)三种必选其一】 + _idType int64 + // 登录时候的IP地址 + _ip string + // 登录来源。1:PC网页;2:移动网页;3:APP;4:其它 + _source int64 + // 当前操作的页面URL。Source为1,2时,该参数必选 + _currentUrl string + // 发送HTTP请求的代理 + _agent string + // Cookie + _cookie string + // Session id + _sessionId string + // 硬件信息 + _macAddress string + // 上一跳信息 + _referer string + // 账号绑定的呢称 + _userName string + // 账号绑定的公司名字 + _companyName string + // 账号绑定的注册的地址 + _address string + // 账号绑定的身份证号 + _idNumber string + // 账号绑定的银行卡号 + _bankCardNumber string + // 接入JS后获取的token + _jsToken string + // 接入无线保镖安全组件后从服务端获取的token + _sdkToken string + // 协议版本号。现在的值是1.0 + _protocolVersion string + // 扩展字段。json格式的字符串,根据具体情况而定 。 + _extendData string + // 账号在系统里面是否存在。0:不存在;1:存在 + _accountExist int64 + // 登录场景。1:账密登陆;2:扫码登录;3:短信验证码登录;0:其它 + _loginType int64 + // 密码是否正确。0:不正确;1:正确 + _passwordCorrect int64 + // 将密码加盐hash后传递,用于弱密码检测 + _passwordHash string + // 注册的时间(秒) + _registerDate int64 + // 注册时候的ip + _registerIp string +} + +// 初始化AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest对象 +func NewAlibabaSecurityJaqLoginpreventionResultFetchRequest() *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest{ + return &AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.loginprevention.result.fetch" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PhoneNumber Setter +// 关联账号的手机号。手机号码的格式为国家码-手机号的格式,如中国手机号86-13088889999或美国手机号001-9096185426,如果不加国家码都视为中国手机号码【phone_number ,email, (user_id,id_type)三种必选其一】 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetPhoneNumber(_phoneNumber string) error { + r._phoneNumber = _phoneNumber + r.Set("phone_number", _phoneNumber) + return nil +} + +// PhoneNumber Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetPhoneNumber() string { + return r._phoneNumber +} +// Email Setter +// 关联账号的email。【phone_number ,email, (user_id,id_type)三种必选其一】 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetEmail(_email string) error { + r._email = _email + r.Set("email", _email) + return nil +} + +// Email Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetEmail() string { + return r._email +} +// UserId Setter +// 账号的全局唯一标识,为了提高准确率,建议带上该字段。【phone_number ,email, (user_id,id_type)三种必选其一】 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetUserId() string { + return r._userId +} +// IdType Setter +// 账号的全局唯一标识,为了提高准确率,建议带上该字段。【phone_number ,email, (user_id,id_type)三种必选其一】 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetIdType(_idType int64) error { + r._idType = _idType + r.Set("id_type", _idType) + return nil +} + +// IdType Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetIdType() int64 { + return r._idType +} +// Ip Setter +// 登录时候的IP地址 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetIp(_ip string) error { + r._ip = _ip + r.Set("ip", _ip) + return nil +} + +// Ip Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetIp() string { + return r._ip +} +// Source Setter +// 登录来源。1:PC网页;2:移动网页;3:APP;4:其它 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetSource(_source int64) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetSource() int64 { + return r._source +} +// CurrentUrl Setter +// 当前操作的页面URL。Source为1,2时,该参数必选 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetCurrentUrl(_currentUrl string) error { + r._currentUrl = _currentUrl + r.Set("current_url", _currentUrl) + return nil +} + +// CurrentUrl Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetCurrentUrl() string { + return r._currentUrl +} +// Agent Setter +// 发送HTTP请求的代理 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetAgent(_agent string) error { + r._agent = _agent + r.Set("agent", _agent) + return nil +} + +// Agent Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetAgent() string { + return r._agent +} +// Cookie Setter +// Cookie +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetCookie(_cookie string) error { + r._cookie = _cookie + r.Set("cookie", _cookie) + return nil +} + +// Cookie Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetCookie() string { + return r._cookie +} +// SessionId Setter +// Session id +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetSessionId(_sessionId string) error { + r._sessionId = _sessionId + r.Set("session_id", _sessionId) + return nil +} + +// SessionId Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetSessionId() string { + return r._sessionId +} +// MacAddress Setter +// 硬件信息 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetMacAddress(_macAddress string) error { + r._macAddress = _macAddress + r.Set("mac_address", _macAddress) + return nil +} + +// MacAddress Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetMacAddress() string { + return r._macAddress +} +// Referer Setter +// 上一跳信息 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetReferer(_referer string) error { + r._referer = _referer + r.Set("referer", _referer) + return nil +} + +// Referer Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetReferer() string { + return r._referer +} +// UserName Setter +// 账号绑定的呢称 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetUserName(_userName string) error { + r._userName = _userName + r.Set("user_name", _userName) + return nil +} + +// UserName Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetUserName() string { + return r._userName +} +// CompanyName Setter +// 账号绑定的公司名字 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetCompanyName(_companyName string) error { + r._companyName = _companyName + r.Set("company_name", _companyName) + return nil +} + +// CompanyName Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetCompanyName() string { + return r._companyName +} +// Address Setter +// 账号绑定的注册的地址 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetAddress() string { + return r._address +} +// IdNumber Setter +// 账号绑定的身份证号 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetIdNumber(_idNumber string) error { + r._idNumber = _idNumber + r.Set("id_number", _idNumber) + return nil +} + +// IdNumber Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetIdNumber() string { + return r._idNumber +} +// BankCardNumber Setter +// 账号绑定的银行卡号 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetBankCardNumber(_bankCardNumber string) error { + r._bankCardNumber = _bankCardNumber + r.Set("bank_card_number", _bankCardNumber) + return nil +} + +// BankCardNumber Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetBankCardNumber() string { + return r._bankCardNumber +} +// JsToken Setter +// 接入JS后获取的token +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetJsToken(_jsToken string) error { + r._jsToken = _jsToken + r.Set("js_token", _jsToken) + return nil +} + +// JsToken Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetJsToken() string { + return r._jsToken +} +// SdkToken Setter +// 接入无线保镖安全组件后从服务端获取的token +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetSdkToken(_sdkToken string) error { + r._sdkToken = _sdkToken + r.Set("sdk_token", _sdkToken) + return nil +} + +// SdkToken Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetSdkToken() string { + return r._sdkToken +} +// ProtocolVersion Setter +// 协议版本号。现在的值是1.0 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetProtocolVersion(_protocolVersion string) error { + r._protocolVersion = _protocolVersion + r.Set("protocol_version", _protocolVersion) + return nil +} + +// ProtocolVersion Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetProtocolVersion() string { + return r._protocolVersion +} +// ExtendData Setter +// 扩展字段。json格式的字符串,根据具体情况而定 。 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetExtendData(_extendData string) error { + r._extendData = _extendData + r.Set("extend_data", _extendData) + return nil +} + +// ExtendData Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetExtendData() string { + return r._extendData +} +// AccountExist Setter +// 账号在系统里面是否存在。0:不存在;1:存在 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetAccountExist(_accountExist int64) error { + r._accountExist = _accountExist + r.Set("account_exist", _accountExist) + return nil +} + +// AccountExist Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetAccountExist() int64 { + return r._accountExist +} +// LoginType Setter +// 登录场景。1:账密登陆;2:扫码登录;3:短信验证码登录;0:其它 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetLoginType(_loginType int64) error { + r._loginType = _loginType + r.Set("login_type", _loginType) + return nil +} + +// LoginType Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetLoginType() int64 { + return r._loginType +} +// PasswordCorrect Setter +// 密码是否正确。0:不正确;1:正确 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetPasswordCorrect(_passwordCorrect int64) error { + r._passwordCorrect = _passwordCorrect + r.Set("password_correct", _passwordCorrect) + return nil +} + +// PasswordCorrect Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetPasswordCorrect() int64 { + return r._passwordCorrect +} +// PasswordHash Setter +// 将密码加盐hash后传递,用于弱密码检测 +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetPasswordHash(_passwordHash string) error { + r._passwordHash = _passwordHash + r.Set("password_hash", _passwordHash) + return nil +} + +// PasswordHash Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetPasswordHash() string { + return r._passwordHash +} +// RegisterDate Setter +// 注册的时间(秒) +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetRegisterDate(_registerDate int64) error { + r._registerDate = _registerDate + r.Set("register_date", _registerDate) + return nil +} + +// RegisterDate Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetRegisterDate() int64 { + return r._registerDate +} +// RegisterIp Setter +// 注册时候的ip +func (r *AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) SetRegisterIp(_registerIp string) error { + r._registerIp = _registerIp + r.Set("register_ip", _registerIp) + return nil +} + +// RegisterIp Getter +func (r AlibabaSecurityJaqLoginpreventionResultFetchAPIRequest) GetRegisterIp() string { + return r._registerIp +} diff --git a/model/security/AlibabaSecurityJaqLoginpreventionResultFetchAPIResponse.go b/model/security/AlibabaSecurityJaqLoginpreventionResultFetchAPIResponse.go new file mode 100644 index 0000000000..960ee11c3c --- /dev/null +++ b/model/security/AlibabaSecurityJaqLoginpreventionResultFetchAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取登录保护结果 API返回值 +alibaba.security.jaq.loginprevention.result.fetch + +获取登录保护结果 +*/ +type AlibabaSecurityJaqLoginpreventionResultFetchAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqLoginpreventionResultFetchAPIResponseModel +} + +// 获取登录保护结果 成功返回结果 +type AlibabaSecurityJaqLoginpreventionResultFetchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_loginprevention_result_fetch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 账号风控返回结果 + JaqAccountRiskResult *JaqAccountRiskResult `json:"jaq_account_risk_result,omitempty" xml:"jaq_account_risk_result,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqLoginpreventionResultFetchResponse.go b/model/security/AlibabaSecurityJaqLoginpreventionResultFetchResponse.go deleted file mode 100644 index e1c69bc010..0000000000 --- a/model/security/AlibabaSecurityJaqLoginpreventionResultFetchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取登录保护结果 API返回值 -alibaba.security.jaq.loginprevention.result.fetch - -获取登录保护结果 -*/ -type AlibabaSecurityJaqLoginpreventionResultFetchAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqLoginpreventionResultFetchResponse -} - -// 获取登录保护结果 成功返回结果 -type AlibabaSecurityJaqLoginpreventionResultFetchResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_loginprevention_result_fetch_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 账号风控返回结果 - JaqAccountRiskResult *JaqAccountRiskResult `json:"jaq_account_risk_result,omitempty" xml:"jaq_account_risk_result,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIRequest.go b/model/security/AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIRequest.go new file mode 100644 index 0000000000..503a236a09 --- /dev/null +++ b/model/security/AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIRequest.go @@ -0,0 +1,52 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全获取异步图文识别结果接口 API请求 +alibaba.security.jaq.ocr.image.async.detect.results.fetch + +获取异步图像字符识别结果接口根据图像检测接口返回taskid来获取对应图像的检测结果 +*/ +type AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIRequest struct { + model.Params + // 值为图像检测接口异步调用时返回的图片task_id + _taskIds []string +} + +// 初始化AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIRequest对象 +func NewAlibabaSecurityJaqOcrImageAsyncDetectResultsFetchRequest() *AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIRequest{ + return &AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.ocr.image.async.detect.results.fetch" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TaskIds Setter +// 值为图像检测接口异步调用时返回的图片task_id +func (r *AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIRequest) SetTaskIds(_taskIds []string) error { + r._taskIds = _taskIds + r.Set("task_ids", _taskIds) + return nil +} + +// TaskIds Getter +func (r AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIRequest) GetTaskIds() []string { + return r._taskIds +} diff --git a/model/security/AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIResponse.go b/model/security/AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIResponse.go new file mode 100644 index 0000000000..bf5d9dd82d --- /dev/null +++ b/model/security/AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全获取异步图文识别结果接口 API返回值 +alibaba.security.jaq.ocr.image.async.detect.results.fetch + +获取异步图像字符识别结果接口根据图像检测接口返回taskid来获取对应图像的检测结果 +*/ +type AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIResponseModel +} + +// 聚安全获取异步图文识别结果接口 成功返回结果 +type AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_ocr_image_async_detect_results_fetch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参结构体 + Data *JaqImageDetectResultCollection `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchResponse.go b/model/security/AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchResponse.go deleted file mode 100644 index 57441443f5..0000000000 --- a/model/security/AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚安全获取异步图文识别结果接口 API返回值 -alibaba.security.jaq.ocr.image.async.detect.results.fetch - -获取异步图像字符识别结果接口根据图像检测接口返回taskid来获取对应图像的检测结果 -*/ -type AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchResponse -} - -// 聚安全获取异步图文识别结果接口 成功返回结果 -type AlibabaSecurityJaqOcrImageAsyncDetectResultsFetchResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_ocr_image_async_detect_results_fetch_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参结构体 - Data *JaqImageDetectResultCollection `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqOcrImageSyncDetectAPIRequest.go b/model/security/AlibabaSecurityJaqOcrImageSyncDetectAPIRequest.go new file mode 100644 index 0000000000..ef52ece9d1 --- /dev/null +++ b/model/security/AlibabaSecurityJaqOcrImageSyncDetectAPIRequest.go @@ -0,0 +1,52 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全图文识别同步检测接口 API请求 +alibaba.security.jaq.ocr.image.sync.detect + +图像字符识别同步检测接口 +*/ +type AlibabaSecurityJaqOcrImageSyncDetectAPIRequest struct { + model.Params + // 待检测图像链接 + _imageUrl string +} + +// 初始化AlibabaSecurityJaqOcrImageSyncDetectAPIRequest对象 +func NewAlibabaSecurityJaqOcrImageSyncDetectRequest() *AlibabaSecurityJaqOcrImageSyncDetectAPIRequest{ + return &AlibabaSecurityJaqOcrImageSyncDetectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqOcrImageSyncDetectAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.ocr.image.sync.detect" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqOcrImageSyncDetectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImageUrl Setter +// 待检测图像链接 +func (r *AlibabaSecurityJaqOcrImageSyncDetectAPIRequest) SetImageUrl(_imageUrl string) error { + r._imageUrl = _imageUrl + r.Set("image_url", _imageUrl) + return nil +} + +// ImageUrl Getter +func (r AlibabaSecurityJaqOcrImageSyncDetectAPIRequest) GetImageUrl() string { + return r._imageUrl +} diff --git a/model/security/AlibabaSecurityJaqOcrImageSyncDetectAPIResponse.go b/model/security/AlibabaSecurityJaqOcrImageSyncDetectAPIResponse.go new file mode 100644 index 0000000000..d7eba279c9 --- /dev/null +++ b/model/security/AlibabaSecurityJaqOcrImageSyncDetectAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全图文识别同步检测接口 API返回值 +alibaba.security.jaq.ocr.image.sync.detect + +图像字符识别同步检测接口 +*/ +type AlibabaSecurityJaqOcrImageSyncDetectAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqOcrImageSyncDetectAPIResponseModel +} + +// 聚安全图文识别同步检测接口 成功返回结果 +type AlibabaSecurityJaqOcrImageSyncDetectAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_ocr_image_sync_detect_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参结构体 + Data *JaqOcrImageDetectResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqOcrImageSyncDetectResponse.go b/model/security/AlibabaSecurityJaqOcrImageSyncDetectResponse.go deleted file mode 100644 index e1e3c46568..0000000000 --- a/model/security/AlibabaSecurityJaqOcrImageSyncDetectResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚安全图文识别同步检测接口 API返回值 -alibaba.security.jaq.ocr.image.sync.detect - -图像字符识别同步检测接口 -*/ -type AlibabaSecurityJaqOcrImageSyncDetectAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqOcrImageSyncDetectResponse -} - -// 聚安全图文识别同步检测接口 成功返回结果 -type AlibabaSecurityJaqOcrImageSyncDetectResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_ocr_image_sync_detect_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参结构体 - Data *JaqOcrImageDetectResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqPornImageSyncDetectAPIRequest.go b/model/security/AlibabaSecurityJaqPornImageSyncDetectAPIRequest.go new file mode 100644 index 0000000000..8aeb098577 --- /dev/null +++ b/model/security/AlibabaSecurityJaqPornImageSyncDetectAPIRequest.go @@ -0,0 +1,52 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全智能鉴黄同步检测接口 API请求 +alibaba.security.jaq.porn.image.sync.detect + +同步黄图图像检测接口 +*/ +type AlibabaSecurityJaqPornImageSyncDetectAPIRequest struct { + model.Params + // 待检测图片链接 + _imageUrl string +} + +// 初始化AlibabaSecurityJaqPornImageSyncDetectAPIRequest对象 +func NewAlibabaSecurityJaqPornImageSyncDetectRequest() *AlibabaSecurityJaqPornImageSyncDetectAPIRequest{ + return &AlibabaSecurityJaqPornImageSyncDetectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqPornImageSyncDetectAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.porn.image.sync.detect" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqPornImageSyncDetectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImageUrl Setter +// 待检测图片链接 +func (r *AlibabaSecurityJaqPornImageSyncDetectAPIRequest) SetImageUrl(_imageUrl string) error { + r._imageUrl = _imageUrl + r.Set("image_url", _imageUrl) + return nil +} + +// ImageUrl Getter +func (r AlibabaSecurityJaqPornImageSyncDetectAPIRequest) GetImageUrl() string { + return r._imageUrl +} diff --git a/model/security/AlibabaSecurityJaqPornImageSyncDetectAPIResponse.go b/model/security/AlibabaSecurityJaqPornImageSyncDetectAPIResponse.go new file mode 100644 index 0000000000..2d4f105bd0 --- /dev/null +++ b/model/security/AlibabaSecurityJaqPornImageSyncDetectAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全智能鉴黄同步检测接口 API返回值 +alibaba.security.jaq.porn.image.sync.detect + +同步黄图图像检测接口 +*/ +type AlibabaSecurityJaqPornImageSyncDetectAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqPornImageSyncDetectAPIResponseModel +} + +// 聚安全智能鉴黄同步检测接口 成功返回结果 +type AlibabaSecurityJaqPornImageSyncDetectAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_porn_image_sync_detect_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参结构体 + Data *JaqPornImageDetectResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqPornImageSyncDetectResponse.go b/model/security/AlibabaSecurityJaqPornImageSyncDetectResponse.go deleted file mode 100644 index 7b871d19f2..0000000000 --- a/model/security/AlibabaSecurityJaqPornImageSyncDetectResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚安全智能鉴黄同步检测接口 API返回值 -alibaba.security.jaq.porn.image.sync.detect - -同步黄图图像检测接口 -*/ -type AlibabaSecurityJaqPornImageSyncDetectAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqPornImageSyncDetectResponse -} - -// 聚安全智能鉴黄同步检测接口 成功返回结果 -type AlibabaSecurityJaqPornImageSyncDetectResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_porn_image_sync_detect_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参结构体 - Data *JaqPornImageDetectResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqResourceFetchAPIRequest.go b/model/security/AlibabaSecurityJaqResourceFetchAPIRequest.go new file mode 100644 index 0000000000..fe8e086b24 --- /dev/null +++ b/model/security/AlibabaSecurityJaqResourceFetchAPIRequest.go @@ -0,0 +1,80 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取资源文件 API请求 +alibaba.security.jaq.resource.fetch + +在前向化验证流程中提供资源文件服务 +*/ +type AlibabaSecurityJaqResourceFetchAPIRequest struct { + model.Params + // 设备类型可能值有:android ios wp + _deviceType string + // 分辨率 + _dpi string + // 语言类型 zh_CN en_US + _lang string +} + +// 初始化AlibabaSecurityJaqResourceFetchAPIRequest对象 +func NewAlibabaSecurityJaqResourceFetchRequest() *AlibabaSecurityJaqResourceFetchAPIRequest{ + return &AlibabaSecurityJaqResourceFetchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqResourceFetchAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.resource.fetch" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqResourceFetchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceType Setter +// 设备类型可能值有:android ios wp +func (r *AlibabaSecurityJaqResourceFetchAPIRequest) SetDeviceType(_deviceType string) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r AlibabaSecurityJaqResourceFetchAPIRequest) GetDeviceType() string { + return r._deviceType +} +// Dpi Setter +// 分辨率 +func (r *AlibabaSecurityJaqResourceFetchAPIRequest) SetDpi(_dpi string) error { + r._dpi = _dpi + r.Set("dpi", _dpi) + return nil +} + +// Dpi Getter +func (r AlibabaSecurityJaqResourceFetchAPIRequest) GetDpi() string { + return r._dpi +} +// Lang Setter +// 语言类型 zh_CN en_US +func (r *AlibabaSecurityJaqResourceFetchAPIRequest) SetLang(_lang string) error { + r._lang = _lang + r.Set("lang", _lang) + return nil +} + +// Lang Getter +func (r AlibabaSecurityJaqResourceFetchAPIRequest) GetLang() string { + return r._lang +} diff --git a/model/security/AlibabaSecurityJaqResourceFetchAPIResponse.go b/model/security/AlibabaSecurityJaqResourceFetchAPIResponse.go new file mode 100644 index 0000000000..e5ac2c02e8 --- /dev/null +++ b/model/security/AlibabaSecurityJaqResourceFetchAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取资源文件 API返回值 +alibaba.security.jaq.resource.fetch + +在前向化验证流程中提供资源文件服务 +*/ +type AlibabaSecurityJaqResourceFetchAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqResourceFetchAPIResponseModel +} + +// 获取资源文件 成功返回结果 +type AlibabaSecurityJaqResourceFetchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_resource_fetch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 获取资源结果 + Data *JaqResourceResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqResourceFetchResponse.go b/model/security/AlibabaSecurityJaqResourceFetchResponse.go deleted file mode 100644 index b91fd5cdf2..0000000000 --- a/model/security/AlibabaSecurityJaqResourceFetchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取资源文件 API返回值 -alibaba.security.jaq.resource.fetch - -在前向化验证流程中提供资源文件服务 -*/ -type AlibabaSecurityJaqResourceFetchAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqResourceFetchResponse -} - -// 获取资源文件 成功返回结果 -type AlibabaSecurityJaqResourceFetchResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_resource_fetch_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 获取资源结果 - Data *JaqResourceResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqRpCloudEventAPIRequest.go b/model/security/AlibabaSecurityJaqRpCloudEventAPIRequest.go new file mode 100644 index 0000000000..cde9e31b51 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpCloudEventAPIRequest.go @@ -0,0 +1,80 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +事件上报 API请求 +alibaba.security.jaq.rp.cloud.event + +事件上报接口 +*/ +type AlibabaSecurityJaqRpCloudEventAPIRequest struct { + model.Params + // 认证token + _verifyToken string + // 事件编码 + _eventCode string + // 事件信息 + _eventData string +} + +// 初始化AlibabaSecurityJaqRpCloudEventAPIRequest对象 +func NewAlibabaSecurityJaqRpCloudEventRequest() *AlibabaSecurityJaqRpCloudEventAPIRequest{ + return &AlibabaSecurityJaqRpCloudEventAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqRpCloudEventAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.rp.cloud.event" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqRpCloudEventAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VerifyToken Setter +// 认证token +func (r *AlibabaSecurityJaqRpCloudEventAPIRequest) SetVerifyToken(_verifyToken string) error { + r._verifyToken = _verifyToken + r.Set("verify_token", _verifyToken) + return nil +} + +// VerifyToken Getter +func (r AlibabaSecurityJaqRpCloudEventAPIRequest) GetVerifyToken() string { + return r._verifyToken +} +// EventCode Setter +// 事件编码 +func (r *AlibabaSecurityJaqRpCloudEventAPIRequest) SetEventCode(_eventCode string) error { + r._eventCode = _eventCode + r.Set("event_code", _eventCode) + return nil +} + +// EventCode Getter +func (r AlibabaSecurityJaqRpCloudEventAPIRequest) GetEventCode() string { + return r._eventCode +} +// EventData Setter +// 事件信息 +func (r *AlibabaSecurityJaqRpCloudEventAPIRequest) SetEventData(_eventData string) error { + r._eventData = _eventData + r.Set("event_data", _eventData) + return nil +} + +// EventData Getter +func (r AlibabaSecurityJaqRpCloudEventAPIRequest) GetEventData() string { + return r._eventData +} diff --git a/model/security/AlibabaSecurityJaqRpCloudEventAPIResponse.go b/model/security/AlibabaSecurityJaqRpCloudEventAPIResponse.go new file mode 100644 index 0000000000..96e2eecefc --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpCloudEventAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +事件上报 API返回值 +alibaba.security.jaq.rp.cloud.event + +事件上报接口 +*/ +type AlibabaSecurityJaqRpCloudEventAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqRpCloudEventAPIResponseModel +} + +// 事件上报 成功返回结果 +type AlibabaSecurityJaqRpCloudEventAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_rp_cloud_event_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *RpEventResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqRpCloudEventResponse.go b/model/security/AlibabaSecurityJaqRpCloudEventResponse.go deleted file mode 100644 index bbff2af643..0000000000 --- a/model/security/AlibabaSecurityJaqRpCloudEventResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -事件上报 API返回值 -alibaba.security.jaq.rp.cloud.event - -事件上报接口 -*/ -type AlibabaSecurityJaqRpCloudEventAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqRpCloudEventResponse -} - -// 事件上报 成功返回结果 -type AlibabaSecurityJaqRpCloudEventResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_rp_cloud_event_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *RpEventResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqRpCloudOcrCheckAPIRequest.go b/model/security/AlibabaSecurityJaqRpCloudOcrCheckAPIRequest.go new file mode 100644 index 0000000000..5a394853eb --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpCloudOcrCheckAPIRequest.go @@ -0,0 +1,66 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ocr同时实名校验 API请求 +alibaba.security.jaq.rp.cloud.ocr.check + +聚安全实人认证证件OCR识别功能接口 +*/ +type AlibabaSecurityJaqRpCloudOcrCheckAPIRequest struct { + model.Params + // token + _verifyToken string + // 要识别的信息 + _imageUrls string +} + +// 初始化AlibabaSecurityJaqRpCloudOcrCheckAPIRequest对象 +func NewAlibabaSecurityJaqRpCloudOcrCheckRequest() *AlibabaSecurityJaqRpCloudOcrCheckAPIRequest{ + return &AlibabaSecurityJaqRpCloudOcrCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqRpCloudOcrCheckAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.rp.cloud.ocr.check" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqRpCloudOcrCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VerifyToken Setter +// token +func (r *AlibabaSecurityJaqRpCloudOcrCheckAPIRequest) SetVerifyToken(_verifyToken string) error { + r._verifyToken = _verifyToken + r.Set("verify_token", _verifyToken) + return nil +} + +// VerifyToken Getter +func (r AlibabaSecurityJaqRpCloudOcrCheckAPIRequest) GetVerifyToken() string { + return r._verifyToken +} +// ImageUrls Setter +// 要识别的信息 +func (r *AlibabaSecurityJaqRpCloudOcrCheckAPIRequest) SetImageUrls(_imageUrls string) error { + r._imageUrls = _imageUrls + r.Set("image_urls", _imageUrls) + return nil +} + +// ImageUrls Getter +func (r AlibabaSecurityJaqRpCloudOcrCheckAPIRequest) GetImageUrls() string { + return r._imageUrls +} diff --git a/model/security/AlibabaSecurityJaqRpCloudOcrCheckAPIResponse.go b/model/security/AlibabaSecurityJaqRpCloudOcrCheckAPIResponse.go new file mode 100644 index 0000000000..49faa63b42 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpCloudOcrCheckAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ocr同时实名校验 API返回值 +alibaba.security.jaq.rp.cloud.ocr.check + +聚安全实人认证证件OCR识别功能接口 +*/ +type AlibabaSecurityJaqRpCloudOcrCheckAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqRpCloudOcrCheckAPIResponseModel +} + +// ocr同时实名校验 成功返回结果 +type AlibabaSecurityJaqRpCloudOcrCheckAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_rp_cloud_ocr_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Data *RpidCard `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqRpCloudOcrCheckResponse.go b/model/security/AlibabaSecurityJaqRpCloudOcrCheckResponse.go deleted file mode 100644 index 2d4bf7746e..0000000000 --- a/model/security/AlibabaSecurityJaqRpCloudOcrCheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ocr同时实名校验 API返回值 -alibaba.security.jaq.rp.cloud.ocr.check - -聚安全实人认证证件OCR识别功能接口 -*/ -type AlibabaSecurityJaqRpCloudOcrCheckAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqRpCloudOcrCheckResponse -} - -// ocr同时实名校验 成功返回结果 -type AlibabaSecurityJaqRpCloudOcrCheckResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_rp_cloud_ocr_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Data *RpidCard `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqRpCloudRealnameCheckAPIRequest.go b/model/security/AlibabaSecurityJaqRpCloudRealnameCheckAPIRequest.go new file mode 100644 index 0000000000..af28aa983a --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpCloudRealnameCheckAPIRequest.go @@ -0,0 +1,94 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +验证姓名和证件号 API请求 +alibaba.security.jaq.rp.cloud.realname.check + +验证姓名和证件号 +*/ +type AlibabaSecurityJaqRpCloudRealnameCheckAPIRequest struct { + model.Params + // token + _verifyToken string + // 要识别的信息 + _imageUrls string + // 姓名 + _name string + // 证件号 + _identityCode string +} + +// 初始化AlibabaSecurityJaqRpCloudRealnameCheckAPIRequest对象 +func NewAlibabaSecurityJaqRpCloudRealnameCheckRequest() *AlibabaSecurityJaqRpCloudRealnameCheckAPIRequest{ + return &AlibabaSecurityJaqRpCloudRealnameCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqRpCloudRealnameCheckAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.rp.cloud.realname.check" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqRpCloudRealnameCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VerifyToken Setter +// token +func (r *AlibabaSecurityJaqRpCloudRealnameCheckAPIRequest) SetVerifyToken(_verifyToken string) error { + r._verifyToken = _verifyToken + r.Set("verify_token", _verifyToken) + return nil +} + +// VerifyToken Getter +func (r AlibabaSecurityJaqRpCloudRealnameCheckAPIRequest) GetVerifyToken() string { + return r._verifyToken +} +// ImageUrls Setter +// 要识别的信息 +func (r *AlibabaSecurityJaqRpCloudRealnameCheckAPIRequest) SetImageUrls(_imageUrls string) error { + r._imageUrls = _imageUrls + r.Set("image_urls", _imageUrls) + return nil +} + +// ImageUrls Getter +func (r AlibabaSecurityJaqRpCloudRealnameCheckAPIRequest) GetImageUrls() string { + return r._imageUrls +} +// Name Setter +// 姓名 +func (r *AlibabaSecurityJaqRpCloudRealnameCheckAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r AlibabaSecurityJaqRpCloudRealnameCheckAPIRequest) GetName() string { + return r._name +} +// IdentityCode Setter +// 证件号 +func (r *AlibabaSecurityJaqRpCloudRealnameCheckAPIRequest) SetIdentityCode(_identityCode string) error { + r._identityCode = _identityCode + r.Set("identity_code", _identityCode) + return nil +} + +// IdentityCode Getter +func (r AlibabaSecurityJaqRpCloudRealnameCheckAPIRequest) GetIdentityCode() string { + return r._identityCode +} diff --git a/model/security/AlibabaSecurityJaqRpCloudRealnameCheckAPIResponse.go b/model/security/AlibabaSecurityJaqRpCloudRealnameCheckAPIResponse.go new file mode 100644 index 0000000000..ea73c3e2b4 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpCloudRealnameCheckAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +验证姓名和证件号 API返回值 +alibaba.security.jaq.rp.cloud.realname.check + +验证姓名和证件号 +*/ +type AlibabaSecurityJaqRpCloudRealnameCheckAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqRpCloudRealnameCheckAPIResponseModel +} + +// 验证姓名和证件号 成功返回结果 +type AlibabaSecurityJaqRpCloudRealnameCheckAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_rp_cloud_realname_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Data *RealNameResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqRpCloudRealnameCheckResponse.go b/model/security/AlibabaSecurityJaqRpCloudRealnameCheckResponse.go deleted file mode 100644 index 39fda02e19..0000000000 --- a/model/security/AlibabaSecurityJaqRpCloudRealnameCheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -验证姓名和证件号 API返回值 -alibaba.security.jaq.rp.cloud.realname.check - -验证姓名和证件号 -*/ -type AlibabaSecurityJaqRpCloudRealnameCheckAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqRpCloudRealnameCheckResponse -} - -// 验证姓名和证件号 成功返回结果 -type AlibabaSecurityJaqRpCloudRealnameCheckResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_rp_cloud_realname_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Data *RealNameResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqRpCloudRphitAPIRequest.go b/model/security/AlibabaSecurityJaqRpCloudRphitAPIRequest.go new file mode 100644 index 0000000000..5f1a21ae1e --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpCloudRphitAPIRequest.go @@ -0,0 +1,52 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +实人认证云服务日志打点 API请求 +alibaba.security.jaq.rp.cloud.rphit + +聚安全实人认证日志打点接口 +*/ +type AlibabaSecurityJaqRpCloudRphitAPIRequest struct { + model.Params + // xxx + _content string +} + +// 初始化AlibabaSecurityJaqRpCloudRphitAPIRequest对象 +func NewAlibabaSecurityJaqRpCloudRphitRequest() *AlibabaSecurityJaqRpCloudRphitAPIRequest{ + return &AlibabaSecurityJaqRpCloudRphitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqRpCloudRphitAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.rp.cloud.rphit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqRpCloudRphitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Content Setter +// xxx +func (r *AlibabaSecurityJaqRpCloudRphitAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r AlibabaSecurityJaqRpCloudRphitAPIRequest) GetContent() string { + return r._content +} diff --git a/model/security/AlibabaSecurityJaqRpCloudRphitAPIResponse.go b/model/security/AlibabaSecurityJaqRpCloudRphitAPIResponse.go new file mode 100644 index 0000000000..41b33162b3 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpCloudRphitAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +实人认证云服务日志打点 API返回值 +alibaba.security.jaq.rp.cloud.rphit + +聚安全实人认证日志打点接口 +*/ +type AlibabaSecurityJaqRpCloudRphitAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqRpCloudRphitAPIResponseModel +} + +// 实人认证云服务日志打点 成功返回结果 +type AlibabaSecurityJaqRpCloudRphitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_rp_cloud_rphit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Data string `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqRpCloudRphitResponse.go b/model/security/AlibabaSecurityJaqRpCloudRphitResponse.go deleted file mode 100644 index fcffe6b2b6..0000000000 --- a/model/security/AlibabaSecurityJaqRpCloudRphitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -实人认证云服务日志打点 API返回值 -alibaba.security.jaq.rp.cloud.rphit - -聚安全实人认证日志打点接口 -*/ -type AlibabaSecurityJaqRpCloudRphitAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqRpCloudRphitResponse -} - -// 实人认证云服务日志打点 成功返回结果 -type AlibabaSecurityJaqRpCloudRphitResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_rp_cloud_rphit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Data string `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqRpCloudStartAPIRequest.go b/model/security/AlibabaSecurityJaqRpCloudStartAPIRequest.go new file mode 100644 index 0000000000..d58b03ae4a --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpCloudStartAPIRequest.go @@ -0,0 +1,80 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +实人认证云开始认证 API请求 +alibaba.security.jaq.rp.cloud.start + +聚安全实人认证开始 +*/ +type AlibabaSecurityJaqRpCloudStartAPIRequest struct { + model.Params + // token + _verifyToken string + // 客户端信息,如果是服务端接入,里面的参数可为空 + _clientInfo *RpClientInfo + // 扩展信息 + _extraData string +} + +// 初始化AlibabaSecurityJaqRpCloudStartAPIRequest对象 +func NewAlibabaSecurityJaqRpCloudStartRequest() *AlibabaSecurityJaqRpCloudStartAPIRequest{ + return &AlibabaSecurityJaqRpCloudStartAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqRpCloudStartAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.rp.cloud.start" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqRpCloudStartAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VerifyToken Setter +// token +func (r *AlibabaSecurityJaqRpCloudStartAPIRequest) SetVerifyToken(_verifyToken string) error { + r._verifyToken = _verifyToken + r.Set("verify_token", _verifyToken) + return nil +} + +// VerifyToken Getter +func (r AlibabaSecurityJaqRpCloudStartAPIRequest) GetVerifyToken() string { + return r._verifyToken +} +// ClientInfo Setter +// 客户端信息,如果是服务端接入,里面的参数可为空 +func (r *AlibabaSecurityJaqRpCloudStartAPIRequest) SetClientInfo(_clientInfo *RpClientInfo) error { + r._clientInfo = _clientInfo + r.Set("client_info", _clientInfo) + return nil +} + +// ClientInfo Getter +func (r AlibabaSecurityJaqRpCloudStartAPIRequest) GetClientInfo() *RpClientInfo { + return r._clientInfo +} +// ExtraData Setter +// 扩展信息 +func (r *AlibabaSecurityJaqRpCloudStartAPIRequest) SetExtraData(_extraData string) error { + r._extraData = _extraData + r.Set("extra_data", _extraData) + return nil +} + +// ExtraData Getter +func (r AlibabaSecurityJaqRpCloudStartAPIRequest) GetExtraData() string { + return r._extraData +} diff --git a/model/security/AlibabaSecurityJaqRpCloudStartAPIResponse.go b/model/security/AlibabaSecurityJaqRpCloudStartAPIResponse.go new file mode 100644 index 0000000000..8d046e4a2e --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpCloudStartAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +实人认证云开始认证 API返回值 +alibaba.security.jaq.rp.cloud.start + +聚安全实人认证开始 +*/ +type AlibabaSecurityJaqRpCloudStartAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqRpCloudStartAPIResponseModel +} + +// 实人认证云开始认证 成功返回结果 +type AlibabaSecurityJaqRpCloudStartAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_rp_cloud_start_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Data *RpStartResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqRpCloudStartResponse.go b/model/security/AlibabaSecurityJaqRpCloudStartResponse.go deleted file mode 100644 index e183b6dc4d..0000000000 --- a/model/security/AlibabaSecurityJaqRpCloudStartResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -实人认证云开始认证 API返回值 -alibaba.security.jaq.rp.cloud.start - -聚安全实人认证开始 -*/ -type AlibabaSecurityJaqRpCloudStartAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqRpCloudStartResponse -} - -// 实人认证云开始认证 成功返回结果 -type AlibabaSecurityJaqRpCloudStartResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_rp_cloud_start_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Data *RpStartResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqRpCloudSubmitAPIRequest.go b/model/security/AlibabaSecurityJaqRpCloudSubmitAPIRequest.go new file mode 100644 index 0000000000..06017f961a --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpCloudSubmitAPIRequest.go @@ -0,0 +1,52 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +实人认证云服务提交接口 API请求 +alibaba.security.jaq.rp.cloud.submit + +聚安全实人认证提交认证接口 +*/ +type AlibabaSecurityJaqRpCloudSubmitAPIRequest struct { + model.Params + // 认证token + _verifyToken string +} + +// 初始化AlibabaSecurityJaqRpCloudSubmitAPIRequest对象 +func NewAlibabaSecurityJaqRpCloudSubmitRequest() *AlibabaSecurityJaqRpCloudSubmitAPIRequest{ + return &AlibabaSecurityJaqRpCloudSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqRpCloudSubmitAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.rp.cloud.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqRpCloudSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VerifyToken Setter +// 认证token +func (r *AlibabaSecurityJaqRpCloudSubmitAPIRequest) SetVerifyToken(_verifyToken string) error { + r._verifyToken = _verifyToken + r.Set("verify_token", _verifyToken) + return nil +} + +// VerifyToken Getter +func (r AlibabaSecurityJaqRpCloudSubmitAPIRequest) GetVerifyToken() string { + return r._verifyToken +} diff --git a/model/security/AlibabaSecurityJaqRpCloudSubmitAPIResponse.go b/model/security/AlibabaSecurityJaqRpCloudSubmitAPIResponse.go new file mode 100644 index 0000000000..3bf240b94a --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpCloudSubmitAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +实人认证云服务提交接口 API返回值 +alibaba.security.jaq.rp.cloud.submit + +聚安全实人认证提交认证接口 +*/ +type AlibabaSecurityJaqRpCloudSubmitAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqRpCloudSubmitAPIResponseModel +} + +// 实人认证云服务提交接口 成功返回结果 +type AlibabaSecurityJaqRpCloudSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_rp_cloud_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Data *RpSubmitResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqRpCloudSubmitResponse.go b/model/security/AlibabaSecurityJaqRpCloudSubmitResponse.go deleted file mode 100644 index 489992295c..0000000000 --- a/model/security/AlibabaSecurityJaqRpCloudSubmitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -实人认证云服务提交接口 API返回值 -alibaba.security.jaq.rp.cloud.submit - -聚安全实人认证提交认证接口 -*/ -type AlibabaSecurityJaqRpCloudSubmitAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqRpCloudSubmitResponse -} - -// 实人认证云服务提交接口 成功返回结果 -type AlibabaSecurityJaqRpCloudSubmitResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_rp_cloud_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Data *RpSubmitResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqRpCloudUploadAPIRequest.go b/model/security/AlibabaSecurityJaqRpCloudUploadAPIRequest.go new file mode 100644 index 0000000000..9e278ab9e2 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpCloudUploadAPIRequest.go @@ -0,0 +1,66 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +实人认证云上传接口 API请求 +alibaba.security.jaq.rp.cloud.upload + +聚安全实人认证上传认证信息 +*/ +type AlibabaSecurityJaqRpCloudUploadAPIRequest struct { + model.Params + // 认证token + _verifyToken string + // [] + _elements []Elements +} + +// 初始化AlibabaSecurityJaqRpCloudUploadAPIRequest对象 +func NewAlibabaSecurityJaqRpCloudUploadRequest() *AlibabaSecurityJaqRpCloudUploadAPIRequest{ + return &AlibabaSecurityJaqRpCloudUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqRpCloudUploadAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.rp.cloud.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqRpCloudUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VerifyToken Setter +// 认证token +func (r *AlibabaSecurityJaqRpCloudUploadAPIRequest) SetVerifyToken(_verifyToken string) error { + r._verifyToken = _verifyToken + r.Set("verify_token", _verifyToken) + return nil +} + +// VerifyToken Getter +func (r AlibabaSecurityJaqRpCloudUploadAPIRequest) GetVerifyToken() string { + return r._verifyToken +} +// Elements Setter +// [] +func (r *AlibabaSecurityJaqRpCloudUploadAPIRequest) SetElements(_elements []Elements) error { + r._elements = _elements + r.Set("elements", _elements) + return nil +} + +// Elements Getter +func (r AlibabaSecurityJaqRpCloudUploadAPIRequest) GetElements() []Elements { + return r._elements +} diff --git a/model/security/AlibabaSecurityJaqRpCloudUploadAPIResponse.go b/model/security/AlibabaSecurityJaqRpCloudUploadAPIResponse.go new file mode 100644 index 0000000000..286aa6d849 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpCloudUploadAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +实人认证云上传接口 API返回值 +alibaba.security.jaq.rp.cloud.upload + +聚安全实人认证上传认证信息 +*/ +type AlibabaSecurityJaqRpCloudUploadAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqRpCloudUploadAPIResponseModel +} + +// 实人认证云上传接口 成功返回结果 +type AlibabaSecurityJaqRpCloudUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_rp_cloud_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Data *RpUploadResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqRpCloudUploadResponse.go b/model/security/AlibabaSecurityJaqRpCloudUploadResponse.go deleted file mode 100644 index 27c066cd42..0000000000 --- a/model/security/AlibabaSecurityJaqRpCloudUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -实人认证云上传接口 API返回值 -alibaba.security.jaq.rp.cloud.upload - -聚安全实人认证上传认证信息 -*/ -type AlibabaSecurityJaqRpCloudUploadAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqRpCloudUploadResponse -} - -// 实人认证云上传接口 成功返回结果 -type AlibabaSecurityJaqRpCloudUploadResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_rp_cloud_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Data *RpUploadResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqRpFetchmaterialAPIRequest.go b/model/security/AlibabaSecurityJaqRpFetchmaterialAPIRequest.go new file mode 100644 index 0000000000..ae564a8709 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpFetchmaterialAPIRequest.go @@ -0,0 +1,52 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全实人认证获取结果接口 API请求 +alibaba.security.jaq.rp.fetchmaterial + +聚安全实人认证获取结果接口 +*/ +type AlibabaSecurityJaqRpFetchmaterialAPIRequest struct { + model.Params + // 消息服务推送的key + _securityKey string +} + +// 初始化AlibabaSecurityJaqRpFetchmaterialAPIRequest对象 +func NewAlibabaSecurityJaqRpFetchmaterialRequest() *AlibabaSecurityJaqRpFetchmaterialAPIRequest{ + return &AlibabaSecurityJaqRpFetchmaterialAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqRpFetchmaterialAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.rp.fetchmaterial" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqRpFetchmaterialAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SecurityKey Setter +// 消息服务推送的key +func (r *AlibabaSecurityJaqRpFetchmaterialAPIRequest) SetSecurityKey(_securityKey string) error { + r._securityKey = _securityKey + r.Set("security_key", _securityKey) + return nil +} + +// SecurityKey Getter +func (r AlibabaSecurityJaqRpFetchmaterialAPIRequest) GetSecurityKey() string { + return r._securityKey +} diff --git a/model/security/AlibabaSecurityJaqRpFetchmaterialAPIResponse.go b/model/security/AlibabaSecurityJaqRpFetchmaterialAPIResponse.go new file mode 100644 index 0000000000..db28ab740c --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpFetchmaterialAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全实人认证获取结果接口 API返回值 +alibaba.security.jaq.rp.fetchmaterial + +聚安全实人认证获取结果接口 +*/ +type AlibabaSecurityJaqRpFetchmaterialAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqRpFetchmaterialAPIResponseModel +} + +// 聚安全实人认证获取结果接口 成功返回结果 +type AlibabaSecurityJaqRpFetchmaterialAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_rp_fetchmaterial_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果信息 + Data string `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqRpFetchmaterialResponse.go b/model/security/AlibabaSecurityJaqRpFetchmaterialResponse.go deleted file mode 100644 index 6095a5d994..0000000000 --- a/model/security/AlibabaSecurityJaqRpFetchmaterialResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚安全实人认证获取结果接口 API返回值 -alibaba.security.jaq.rp.fetchmaterial - -聚安全实人认证获取结果接口 -*/ -type AlibabaSecurityJaqRpFetchmaterialAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqRpFetchmaterialResponse -} - -// 聚安全实人认证获取结果接口 成功返回结果 -type AlibabaSecurityJaqRpFetchmaterialResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_rp_fetchmaterial_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果信息 - Data string `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqRpGetverifytokenAPIRequest.go b/model/security/AlibabaSecurityJaqRpGetverifytokenAPIRequest.go new file mode 100644 index 0000000000..6f45565d28 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpGetverifytokenAPIRequest.go @@ -0,0 +1,108 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全实人认证获取认证会话token API请求 +alibaba.security.jaq.rp.getverifytoken + +聚安全实人认证获取认证会话token +*/ +type AlibabaSecurityJaqRpGetverifytokenAPIRequest struct { + model.Params + // 账号,强烈建议填写,区别用户的唯一标识 + _accountId string + // 选填,作为一次验证的唯一标识,每次验证需更换。如果不是验证类型可不填 + _ticketId string + // 客户端来源 + _source string + // 业务点 + _biz string + // 额外信息 + _extraData string +} + +// 初始化AlibabaSecurityJaqRpGetverifytokenAPIRequest对象 +func NewAlibabaSecurityJaqRpGetverifytokenRequest() *AlibabaSecurityJaqRpGetverifytokenAPIRequest{ + return &AlibabaSecurityJaqRpGetverifytokenAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqRpGetverifytokenAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.rp.getverifytoken" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqRpGetverifytokenAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccountId Setter +// 账号,强烈建议填写,区别用户的唯一标识 +func (r *AlibabaSecurityJaqRpGetverifytokenAPIRequest) SetAccountId(_accountId string) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r AlibabaSecurityJaqRpGetverifytokenAPIRequest) GetAccountId() string { + return r._accountId +} +// TicketId Setter +// 选填,作为一次验证的唯一标识,每次验证需更换。如果不是验证类型可不填 +func (r *AlibabaSecurityJaqRpGetverifytokenAPIRequest) SetTicketId(_ticketId string) error { + r._ticketId = _ticketId + r.Set("ticket_id", _ticketId) + return nil +} + +// TicketId Getter +func (r AlibabaSecurityJaqRpGetverifytokenAPIRequest) GetTicketId() string { + return r._ticketId +} +// Source Setter +// 客户端来源 +func (r *AlibabaSecurityJaqRpGetverifytokenAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r AlibabaSecurityJaqRpGetverifytokenAPIRequest) GetSource() string { + return r._source +} +// Biz Setter +// 业务点 +func (r *AlibabaSecurityJaqRpGetverifytokenAPIRequest) SetBiz(_biz string) error { + r._biz = _biz + r.Set("biz", _biz) + return nil +} + +// Biz Getter +func (r AlibabaSecurityJaqRpGetverifytokenAPIRequest) GetBiz() string { + return r._biz +} +// ExtraData Setter +// 额外信息 +func (r *AlibabaSecurityJaqRpGetverifytokenAPIRequest) SetExtraData(_extraData string) error { + r._extraData = _extraData + r.Set("extra_data", _extraData) + return nil +} + +// ExtraData Getter +func (r AlibabaSecurityJaqRpGetverifytokenAPIRequest) GetExtraData() string { + return r._extraData +} diff --git a/model/security/AlibabaSecurityJaqRpGetverifytokenAPIResponse.go b/model/security/AlibabaSecurityJaqRpGetverifytokenAPIResponse.go new file mode 100644 index 0000000000..46e7966211 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpGetverifytokenAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全实人认证获取认证会话token API返回值 +alibaba.security.jaq.rp.getverifytoken + +聚安全实人认证获取认证会话token +*/ +type AlibabaSecurityJaqRpGetverifytokenAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqRpGetverifytokenAPIResponseModel +} + +// 聚安全实人认证获取认证会话token 成功返回结果 +type AlibabaSecurityJaqRpGetverifytokenAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_rp_getverifytoken_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // token信息 + Data *RpInitResultBo `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqRpGetverifytokenResponse.go b/model/security/AlibabaSecurityJaqRpGetverifytokenResponse.go deleted file mode 100644 index 3307efeded..0000000000 --- a/model/security/AlibabaSecurityJaqRpGetverifytokenResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚安全实人认证获取认证会话token API返回值 -alibaba.security.jaq.rp.getverifytoken - -聚安全实人认证获取认证会话token -*/ -type AlibabaSecurityJaqRpGetverifytokenAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqRpGetverifytokenResponse -} - -// 聚安全实人认证获取认证会话token 成功返回结果 -type AlibabaSecurityJaqRpGetverifytokenResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_rp_getverifytoken_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // token信息 - Data *RpInitResultBo `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqRpOcrAPIRequest.go b/model/security/AlibabaSecurityJaqRpOcrAPIRequest.go new file mode 100644 index 0000000000..e9633824e1 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpOcrAPIRequest.go @@ -0,0 +1,66 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全实人认证证件OCR识别功能接口 API请求 +alibaba.security.jaq.rp.ocr + +聚安全实人认证证件OCR识别功能接口 +*/ +type AlibabaSecurityJaqRpOcrAPIRequest struct { + model.Params + // token + _verifyToken string + // 要识别的信息 + _imageUrls string +} + +// 初始化AlibabaSecurityJaqRpOcrAPIRequest对象 +func NewAlibabaSecurityJaqRpOcrRequest() *AlibabaSecurityJaqRpOcrAPIRequest{ + return &AlibabaSecurityJaqRpOcrAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqRpOcrAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.rp.ocr" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqRpOcrAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VerifyToken Setter +// token +func (r *AlibabaSecurityJaqRpOcrAPIRequest) SetVerifyToken(_verifyToken string) error { + r._verifyToken = _verifyToken + r.Set("verify_token", _verifyToken) + return nil +} + +// VerifyToken Getter +func (r AlibabaSecurityJaqRpOcrAPIRequest) GetVerifyToken() string { + return r._verifyToken +} +// ImageUrls Setter +// 要识别的信息 +func (r *AlibabaSecurityJaqRpOcrAPIRequest) SetImageUrls(_imageUrls string) error { + r._imageUrls = _imageUrls + r.Set("image_urls", _imageUrls) + return nil +} + +// ImageUrls Getter +func (r AlibabaSecurityJaqRpOcrAPIRequest) GetImageUrls() string { + return r._imageUrls +} diff --git a/model/security/AlibabaSecurityJaqRpOcrAPIResponse.go b/model/security/AlibabaSecurityJaqRpOcrAPIResponse.go new file mode 100644 index 0000000000..0793d4e397 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpOcrAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全实人认证证件OCR识别功能接口 API返回值 +alibaba.security.jaq.rp.ocr + +聚安全实人认证证件OCR识别功能接口 +*/ +type AlibabaSecurityJaqRpOcrAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqRpOcrAPIResponseModel +} + +// 聚安全实人认证证件OCR识别功能接口 成功返回结果 +type AlibabaSecurityJaqRpOcrAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_rp_ocr_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果信息 + Data *RpidCardBo `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqRpOcrCheckAPIRequest.go b/model/security/AlibabaSecurityJaqRpOcrCheckAPIRequest.go new file mode 100644 index 0000000000..481a89ff29 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpOcrCheckAPIRequest.go @@ -0,0 +1,66 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ocr同时实名校验 API请求 +alibaba.security.jaq.rp.ocr.check + +聚安全实人认证证件OCR识别功能接口 +*/ +type AlibabaSecurityJaqRpOcrCheckAPIRequest struct { + model.Params + // token + _verifyToken string + // 要识别的信息 + _imageUrls string +} + +// 初始化AlibabaSecurityJaqRpOcrCheckAPIRequest对象 +func NewAlibabaSecurityJaqRpOcrCheckRequest() *AlibabaSecurityJaqRpOcrCheckAPIRequest{ + return &AlibabaSecurityJaqRpOcrCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqRpOcrCheckAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.rp.ocr.check" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqRpOcrCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VerifyToken Setter +// token +func (r *AlibabaSecurityJaqRpOcrCheckAPIRequest) SetVerifyToken(_verifyToken string) error { + r._verifyToken = _verifyToken + r.Set("verify_token", _verifyToken) + return nil +} + +// VerifyToken Getter +func (r AlibabaSecurityJaqRpOcrCheckAPIRequest) GetVerifyToken() string { + return r._verifyToken +} +// ImageUrls Setter +// 要识别的信息 +func (r *AlibabaSecurityJaqRpOcrCheckAPIRequest) SetImageUrls(_imageUrls string) error { + r._imageUrls = _imageUrls + r.Set("image_urls", _imageUrls) + return nil +} + +// ImageUrls Getter +func (r AlibabaSecurityJaqRpOcrCheckAPIRequest) GetImageUrls() string { + return r._imageUrls +} diff --git a/model/security/AlibabaSecurityJaqRpOcrCheckAPIResponse.go b/model/security/AlibabaSecurityJaqRpOcrCheckAPIResponse.go new file mode 100644 index 0000000000..e1e62e0673 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpOcrCheckAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ocr同时实名校验 API返回值 +alibaba.security.jaq.rp.ocr.check + +聚安全实人认证证件OCR识别功能接口 +*/ +type AlibabaSecurityJaqRpOcrCheckAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqRpOcrCheckAPIResponseModel +} + +// ocr同时实名校验 成功返回结果 +type AlibabaSecurityJaqRpOcrCheckAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_rp_ocr_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Data *RpidCard `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqRpOcrCheckResponse.go b/model/security/AlibabaSecurityJaqRpOcrCheckResponse.go deleted file mode 100644 index 630e06fb54..0000000000 --- a/model/security/AlibabaSecurityJaqRpOcrCheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ocr同时实名校验 API返回值 -alibaba.security.jaq.rp.ocr.check - -聚安全实人认证证件OCR识别功能接口 -*/ -type AlibabaSecurityJaqRpOcrCheckAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqRpOcrCheckResponse -} - -// ocr同时实名校验 成功返回结果 -type AlibabaSecurityJaqRpOcrCheckResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_rp_ocr_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Data *RpidCard `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqRpOcrResponse.go b/model/security/AlibabaSecurityJaqRpOcrResponse.go deleted file mode 100644 index 534e2bc043..0000000000 --- a/model/security/AlibabaSecurityJaqRpOcrResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚安全实人认证证件OCR识别功能接口 API返回值 -alibaba.security.jaq.rp.ocr - -聚安全实人认证证件OCR识别功能接口 -*/ -type AlibabaSecurityJaqRpOcrAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqRpOcrResponse -} - -// 聚安全实人认证证件OCR识别功能接口 成功返回结果 -type AlibabaSecurityJaqRpOcrResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_rp_ocr_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果信息 - Data *RpidCardBo `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqRpQueryAPIRequest.go b/model/security/AlibabaSecurityJaqRpQueryAPIRequest.go new file mode 100644 index 0000000000..09631c8973 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpQueryAPIRequest.go @@ -0,0 +1,52 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全实人认证查询认证结果 API请求 +alibaba.security.jaq.rp.query + +聚安全实人认证查询认证结果 +*/ +type AlibabaSecurityJaqRpQueryAPIRequest struct { + model.Params + // token + _verifyToken string +} + +// 初始化AlibabaSecurityJaqRpQueryAPIRequest对象 +func NewAlibabaSecurityJaqRpQueryRequest() *AlibabaSecurityJaqRpQueryAPIRequest{ + return &AlibabaSecurityJaqRpQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqRpQueryAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.rp.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqRpQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VerifyToken Setter +// token +func (r *AlibabaSecurityJaqRpQueryAPIRequest) SetVerifyToken(_verifyToken string) error { + r._verifyToken = _verifyToken + r.Set("verify_token", _verifyToken) + return nil +} + +// VerifyToken Getter +func (r AlibabaSecurityJaqRpQueryAPIRequest) GetVerifyToken() string { + return r._verifyToken +} diff --git a/model/security/AlibabaSecurityJaqRpQueryAPIResponse.go b/model/security/AlibabaSecurityJaqRpQueryAPIResponse.go new file mode 100644 index 0000000000..bc8c6324c5 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpQueryAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全实人认证查询认证结果 API返回值 +alibaba.security.jaq.rp.query + +聚安全实人认证查询认证结果 +*/ +type AlibabaSecurityJaqRpQueryAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqRpQueryAPIResponseModel +} + +// 聚安全实人认证查询认证结果 成功返回结果 +type AlibabaSecurityJaqRpQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_rp_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果信息 + Data *RpAuditResultBo `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqRpQueryResponse.go b/model/security/AlibabaSecurityJaqRpQueryResponse.go deleted file mode 100644 index d7f50901db..0000000000 --- a/model/security/AlibabaSecurityJaqRpQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚安全实人认证查询认证结果 API返回值 -alibaba.security.jaq.rp.query - -聚安全实人认证查询认证结果 -*/ -type AlibabaSecurityJaqRpQueryAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqRpQueryResponse -} - -// 聚安全实人认证查询认证结果 成功返回结果 -type AlibabaSecurityJaqRpQueryResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_rp_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果信息 - Data *RpAuditResultBo `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqRpRphitAPIRequest.go b/model/security/AlibabaSecurityJaqRpRphitAPIRequest.go new file mode 100644 index 0000000000..68180f724b --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpRphitAPIRequest.go @@ -0,0 +1,52 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全-实人认证日志打点接口 API请求 +alibaba.security.jaq.rp.rphit + +聚安全实人认证日志打点接口 +*/ +type AlibabaSecurityJaqRpRphitAPIRequest struct { + model.Params + // xxx + _content string +} + +// 初始化AlibabaSecurityJaqRpRphitAPIRequest对象 +func NewAlibabaSecurityJaqRpRphitRequest() *AlibabaSecurityJaqRpRphitAPIRequest{ + return &AlibabaSecurityJaqRpRphitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqRpRphitAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.rp.rphit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqRpRphitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Content Setter +// xxx +func (r *AlibabaSecurityJaqRpRphitAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r AlibabaSecurityJaqRpRphitAPIRequest) GetContent() string { + return r._content +} diff --git a/model/security/AlibabaSecurityJaqRpRphitAPIResponse.go b/model/security/AlibabaSecurityJaqRpRphitAPIResponse.go new file mode 100644 index 0000000000..8f2612da28 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpRphitAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全-实人认证日志打点接口 API返回值 +alibaba.security.jaq.rp.rphit + +聚安全实人认证日志打点接口 +*/ +type AlibabaSecurityJaqRpRphitAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqRpRphitAPIResponseModel +} + +// 聚安全-实人认证日志打点接口 成功返回结果 +type AlibabaSecurityJaqRpRphitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_rp_rphit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data string `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqRpRphitResponse.go b/model/security/AlibabaSecurityJaqRpRphitResponse.go deleted file mode 100644 index 3607023dd7..0000000000 --- a/model/security/AlibabaSecurityJaqRpRphitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚安全-实人认证日志打点接口 API返回值 -alibaba.security.jaq.rp.rphit - -聚安全实人认证日志打点接口 -*/ -type AlibabaSecurityJaqRpRphitAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqRpRphitResponse -} - -// 聚安全-实人认证日志打点接口 成功返回结果 -type AlibabaSecurityJaqRpRphitResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_rp_rphit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data string `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqRpStartAPIRequest.go b/model/security/AlibabaSecurityJaqRpStartAPIRequest.go new file mode 100644 index 0000000000..ffb3d94443 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpStartAPIRequest.go @@ -0,0 +1,80 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全实人认证开始 API请求 +alibaba.security.jaq.rp.start + +聚安全实人认证开始 +*/ +type AlibabaSecurityJaqRpStartAPIRequest struct { + model.Params + // token + _verifyToken string + // 客户端信息,如果是服务端接入,里面的参数可为空 + _clientInfo *RpClientInfo + // 扩展信息 + _extraData string +} + +// 初始化AlibabaSecurityJaqRpStartAPIRequest对象 +func NewAlibabaSecurityJaqRpStartRequest() *AlibabaSecurityJaqRpStartAPIRequest{ + return &AlibabaSecurityJaqRpStartAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqRpStartAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.rp.start" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqRpStartAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VerifyToken Setter +// token +func (r *AlibabaSecurityJaqRpStartAPIRequest) SetVerifyToken(_verifyToken string) error { + r._verifyToken = _verifyToken + r.Set("verify_token", _verifyToken) + return nil +} + +// VerifyToken Getter +func (r AlibabaSecurityJaqRpStartAPIRequest) GetVerifyToken() string { + return r._verifyToken +} +// ClientInfo Setter +// 客户端信息,如果是服务端接入,里面的参数可为空 +func (r *AlibabaSecurityJaqRpStartAPIRequest) SetClientInfo(_clientInfo *RpClientInfo) error { + r._clientInfo = _clientInfo + r.Set("client_info", _clientInfo) + return nil +} + +// ClientInfo Getter +func (r AlibabaSecurityJaqRpStartAPIRequest) GetClientInfo() *RpClientInfo { + return r._clientInfo +} +// ExtraData Setter +// 扩展信息 +func (r *AlibabaSecurityJaqRpStartAPIRequest) SetExtraData(_extraData string) error { + r._extraData = _extraData + r.Set("extra_data", _extraData) + return nil +} + +// ExtraData Getter +func (r AlibabaSecurityJaqRpStartAPIRequest) GetExtraData() string { + return r._extraData +} diff --git a/model/security/AlibabaSecurityJaqRpStartAPIResponse.go b/model/security/AlibabaSecurityJaqRpStartAPIResponse.go new file mode 100644 index 0000000000..7455025d72 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpStartAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全实人认证开始 API返回值 +alibaba.security.jaq.rp.start + +聚安全实人认证开始 +*/ +type AlibabaSecurityJaqRpStartAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqRpStartAPIResponseModel +} + +// 聚安全实人认证开始 成功返回结果 +type AlibabaSecurityJaqRpStartAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_rp_start_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果信息 + Data *RpStartResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqRpStartResponse.go b/model/security/AlibabaSecurityJaqRpStartResponse.go deleted file mode 100644 index 62d7689c93..0000000000 --- a/model/security/AlibabaSecurityJaqRpStartResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚安全实人认证开始 API返回值 -alibaba.security.jaq.rp.start - -聚安全实人认证开始 -*/ -type AlibabaSecurityJaqRpStartAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqRpStartResponse -} - -// 聚安全实人认证开始 成功返回结果 -type AlibabaSecurityJaqRpStartResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_rp_start_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果信息 - Data *RpStartResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqRpStatusAPIRequest.go b/model/security/AlibabaSecurityJaqRpStatusAPIRequest.go new file mode 100644 index 0000000000..d241cf899f --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpStatusAPIRequest.go @@ -0,0 +1,94 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全实人认证查询状态接口 API请求 +alibaba.security.jaq.rp.status + +聚安全实人认证查询状态接口 +*/ +type AlibabaSecurityJaqRpStatusAPIRequest struct { + model.Params + // 账号id + _accountId string + // 凭据id + _ticketId string + // 客户端来源 + _source string + // 业务来源 + _biz string +} + +// 初始化AlibabaSecurityJaqRpStatusAPIRequest对象 +func NewAlibabaSecurityJaqRpStatusRequest() *AlibabaSecurityJaqRpStatusAPIRequest{ + return &AlibabaSecurityJaqRpStatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqRpStatusAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.rp.status" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqRpStatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccountId Setter +// 账号id +func (r *AlibabaSecurityJaqRpStatusAPIRequest) SetAccountId(_accountId string) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r AlibabaSecurityJaqRpStatusAPIRequest) GetAccountId() string { + return r._accountId +} +// TicketId Setter +// 凭据id +func (r *AlibabaSecurityJaqRpStatusAPIRequest) SetTicketId(_ticketId string) error { + r._ticketId = _ticketId + r.Set("ticket_id", _ticketId) + return nil +} + +// TicketId Getter +func (r AlibabaSecurityJaqRpStatusAPIRequest) GetTicketId() string { + return r._ticketId +} +// Source Setter +// 客户端来源 +func (r *AlibabaSecurityJaqRpStatusAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r AlibabaSecurityJaqRpStatusAPIRequest) GetSource() string { + return r._source +} +// Biz Setter +// 业务来源 +func (r *AlibabaSecurityJaqRpStatusAPIRequest) SetBiz(_biz string) error { + r._biz = _biz + r.Set("biz", _biz) + return nil +} + +// Biz Getter +func (r AlibabaSecurityJaqRpStatusAPIRequest) GetBiz() string { + return r._biz +} diff --git a/model/security/AlibabaSecurityJaqRpStatusAPIResponse.go b/model/security/AlibabaSecurityJaqRpStatusAPIResponse.go new file mode 100644 index 0000000000..7b798b04c8 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpStatusAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全实人认证查询状态接口 API返回值 +alibaba.security.jaq.rp.status + +聚安全实人认证查询状态接口 +*/ +type AlibabaSecurityJaqRpStatusAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqRpStatusAPIResponseModel +} + +// 聚安全实人认证查询状态接口 成功返回结果 +type AlibabaSecurityJaqRpStatusAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_rp_status_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 状态信息 + Data *RpStatusResultBo `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqRpStatusResponse.go b/model/security/AlibabaSecurityJaqRpStatusResponse.go deleted file mode 100644 index 2aa4be97af..0000000000 --- a/model/security/AlibabaSecurityJaqRpStatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚安全实人认证查询状态接口 API返回值 -alibaba.security.jaq.rp.status - -聚安全实人认证查询状态接口 -*/ -type AlibabaSecurityJaqRpStatusAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqRpStatusResponse -} - -// 聚安全实人认证查询状态接口 成功返回结果 -type AlibabaSecurityJaqRpStatusResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_rp_status_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 状态信息 - Data *RpStatusResultBo `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqRpSubmitAPIRequest.go b/model/security/AlibabaSecurityJaqRpSubmitAPIRequest.go new file mode 100644 index 0000000000..7895876f4b --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpSubmitAPIRequest.go @@ -0,0 +1,52 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全实人认证提交认证接口 API请求 +alibaba.security.jaq.rp.submit + +聚安全实人认证提交认证接口 +*/ +type AlibabaSecurityJaqRpSubmitAPIRequest struct { + model.Params + // 认证token + _verifyToken string +} + +// 初始化AlibabaSecurityJaqRpSubmitAPIRequest对象 +func NewAlibabaSecurityJaqRpSubmitRequest() *AlibabaSecurityJaqRpSubmitAPIRequest{ + return &AlibabaSecurityJaqRpSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqRpSubmitAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.rp.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqRpSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VerifyToken Setter +// 认证token +func (r *AlibabaSecurityJaqRpSubmitAPIRequest) SetVerifyToken(_verifyToken string) error { + r._verifyToken = _verifyToken + r.Set("verify_token", _verifyToken) + return nil +} + +// VerifyToken Getter +func (r AlibabaSecurityJaqRpSubmitAPIRequest) GetVerifyToken() string { + return r._verifyToken +} diff --git a/model/security/AlibabaSecurityJaqRpSubmitAPIResponse.go b/model/security/AlibabaSecurityJaqRpSubmitAPIResponse.go new file mode 100644 index 0000000000..739ad740e6 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpSubmitAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全实人认证提交认证接口 API返回值 +alibaba.security.jaq.rp.submit + +聚安全实人认证提交认证接口 +*/ +type AlibabaSecurityJaqRpSubmitAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqRpSubmitAPIResponseModel +} + +// 聚安全实人认证提交认证接口 成功返回结果 +type AlibabaSecurityJaqRpSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_rp_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果信息 + Data *RpSubmitResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqRpSubmitResponse.go b/model/security/AlibabaSecurityJaqRpSubmitResponse.go deleted file mode 100644 index 04044a2a9c..0000000000 --- a/model/security/AlibabaSecurityJaqRpSubmitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚安全实人认证提交认证接口 API返回值 -alibaba.security.jaq.rp.submit - -聚安全实人认证提交认证接口 -*/ -type AlibabaSecurityJaqRpSubmitAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqRpSubmitResponse -} - -// 聚安全实人认证提交认证接口 成功返回结果 -type AlibabaSecurityJaqRpSubmitResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_rp_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果信息 - Data *RpSubmitResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqRpUploadAPIRequest.go b/model/security/AlibabaSecurityJaqRpUploadAPIRequest.go new file mode 100644 index 0000000000..ebd4a24688 --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpUploadAPIRequest.go @@ -0,0 +1,66 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全实人认证上传认证信息 API请求 +alibaba.security.jaq.rp.upload + +聚安全实人认证上传认证信息 +*/ +type AlibabaSecurityJaqRpUploadAPIRequest struct { + model.Params + // 认证会话token + _verifyToken string + // 此次需要上传的认证信息的列表 + _elements []Element +} + +// 初始化AlibabaSecurityJaqRpUploadAPIRequest对象 +func NewAlibabaSecurityJaqRpUploadRequest() *AlibabaSecurityJaqRpUploadAPIRequest{ + return &AlibabaSecurityJaqRpUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqRpUploadAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.rp.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqRpUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VerifyToken Setter +// 认证会话token +func (r *AlibabaSecurityJaqRpUploadAPIRequest) SetVerifyToken(_verifyToken string) error { + r._verifyToken = _verifyToken + r.Set("verify_token", _verifyToken) + return nil +} + +// VerifyToken Getter +func (r AlibabaSecurityJaqRpUploadAPIRequest) GetVerifyToken() string { + return r._verifyToken +} +// Elements Setter +// 此次需要上传的认证信息的列表 +func (r *AlibabaSecurityJaqRpUploadAPIRequest) SetElements(_elements []Element) error { + r._elements = _elements + r.Set("elements", _elements) + return nil +} + +// Elements Getter +func (r AlibabaSecurityJaqRpUploadAPIRequest) GetElements() []Element { + return r._elements +} diff --git a/model/security/AlibabaSecurityJaqRpUploadAPIResponse.go b/model/security/AlibabaSecurityJaqRpUploadAPIResponse.go new file mode 100644 index 0000000000..010fd5fd9f --- /dev/null +++ b/model/security/AlibabaSecurityJaqRpUploadAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聚安全实人认证上传认证信息 API返回值 +alibaba.security.jaq.rp.upload + +聚安全实人认证上传认证信息 +*/ +type AlibabaSecurityJaqRpUploadAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqRpUploadAPIResponseModel +} + +// 聚安全实人认证上传认证信息 成功返回结果 +type AlibabaSecurityJaqRpUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_rp_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回信息 + Data *RpUploadResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqRpUploadResponse.go b/model/security/AlibabaSecurityJaqRpUploadResponse.go deleted file mode 100644 index ecbc4d838f..0000000000 --- a/model/security/AlibabaSecurityJaqRpUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聚安全实人认证上传认证信息 API返回值 -alibaba.security.jaq.rp.upload - -聚安全实人认证上传认证信息 -*/ -type AlibabaSecurityJaqRpUploadAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqRpUploadResponse -} - -// 聚安全实人认证上传认证信息 成功返回结果 -type AlibabaSecurityJaqRpUploadResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_rp_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回信息 - Data *RpUploadResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest.go b/model/security/AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest.go new file mode 100644 index 0000000000..8bb9f9be97 --- /dev/null +++ b/model/security/AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest.go @@ -0,0 +1,108 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +保护结果反馈 API请求 +alibaba.security.jaq.spamregisterprevention.feedback + +用户通过这个接口对垃圾注册防控结果进行反馈 +*/ +type AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest struct { + model.Params + // 查询接口返回的id + _itemId string + // 聚安全返回的决定信息。当feedBack为0时可以不添 + _jaqDecision int64 + // 用户自己的决定信息。当feedBack为0时可以不添。 + _customerDecision int64 + // 用户不认同聚安全返回结果的原因类型。0:同意判定;1:和三方结果不符;2:用户投诉;3:经过人工review判断;9: 其他。 + _feedBack int64 + // 用户不认同聚安全返回结果的原因描述 + _denyReason string +} + +// 初始化AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest对象 +func NewAlibabaSecurityJaqSpamregisterpreventionFeedbackRequest() *AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest{ + return &AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.spamregisterprevention.feedback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 查询接口返回的id +func (r *AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest) SetItemId(_itemId string) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest) GetItemId() string { + return r._itemId +} +// JaqDecision Setter +// 聚安全返回的决定信息。当feedBack为0时可以不添 +func (r *AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest) SetJaqDecision(_jaqDecision int64) error { + r._jaqDecision = _jaqDecision + r.Set("jaq_decision", _jaqDecision) + return nil +} + +// JaqDecision Getter +func (r AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest) GetJaqDecision() int64 { + return r._jaqDecision +} +// CustomerDecision Setter +// 用户自己的决定信息。当feedBack为0时可以不添。 +func (r *AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest) SetCustomerDecision(_customerDecision int64) error { + r._customerDecision = _customerDecision + r.Set("customer_decision", _customerDecision) + return nil +} + +// CustomerDecision Getter +func (r AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest) GetCustomerDecision() int64 { + return r._customerDecision +} +// FeedBack Setter +// 用户不认同聚安全返回结果的原因类型。0:同意判定;1:和三方结果不符;2:用户投诉;3:经过人工review判断;9: 其他。 +func (r *AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest) SetFeedBack(_feedBack int64) error { + r._feedBack = _feedBack + r.Set("feed_back", _feedBack) + return nil +} + +// FeedBack Getter +func (r AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest) GetFeedBack() int64 { + return r._feedBack +} +// DenyReason Setter +// 用户不认同聚安全返回结果的原因描述 +func (r *AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest) SetDenyReason(_denyReason string) error { + r._denyReason = _denyReason + r.Set("deny_reason", _denyReason) + return nil +} + +// DenyReason Getter +func (r AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIRequest) GetDenyReason() string { + return r._denyReason +} diff --git a/model/security/AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIResponse.go b/model/security/AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIResponse.go new file mode 100644 index 0000000000..f8c944f93b --- /dev/null +++ b/model/security/AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +保护结果反馈 API返回值 +alibaba.security.jaq.spamregisterprevention.feedback + +用户通过这个接口对垃圾注册防控结果进行反馈 +*/ +type AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIResponseModel +} + +// 保护结果反馈 成功返回结果 +type AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_spamregisterprevention_feedback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // feedBack返回结果 + FeedBackResult *JaqFeedBackResult `json:"feed_back_result,omitempty" xml:"feed_back_result,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqSpamregisterpreventionFeedbackResponse.go b/model/security/AlibabaSecurityJaqSpamregisterpreventionFeedbackResponse.go deleted file mode 100644 index 79785578cb..0000000000 --- a/model/security/AlibabaSecurityJaqSpamregisterpreventionFeedbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -保护结果反馈 API返回值 -alibaba.security.jaq.spamregisterprevention.feedback - -用户通过这个接口对垃圾注册防控结果进行反馈 -*/ -type AlibabaSecurityJaqSpamregisterpreventionFeedbackAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqSpamregisterpreventionFeedbackResponse -} - -// 保护结果反馈 成功返回结果 -type AlibabaSecurityJaqSpamregisterpreventionFeedbackResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_spamregisterprevention_feedback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // feedBack返回结果 - FeedBackResult *JaqFeedBackResult `json:"feed_back_result,omitempty" xml:"feed_back_result,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest.go b/model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest.go new file mode 100644 index 0000000000..25791baa51 --- /dev/null +++ b/model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest.go @@ -0,0 +1,304 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取垃圾注册防控结果 API请求 +alibaba.security.jaq.spamregisterprevention.result.fetch + +获取垃圾注册防控结果 +*/ +type AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest struct { + model.Params + // 账号绑定的手机号码 + _phoneNumber string + // 账号绑定的IP地址 + _ip string + // 场景描述,String必须在下面可以使用的场景中选择。可以使用的场景为:Login:登录事件;Register:注册事件;Trade:交易事件;Payment:支付事件;Refund:退款事件 ;Loan:借款事件;Transfer:转账事件;Withdraw :提现事件;Modify:修改事件;Click:点击事件;Activate:激活事件; Other:其他事件。 + _context string + // 登录来源。可以输入的参数如下:1:PC网页;2:移动网页;3:APP;4:其他 + _source int64 + // 账号绑定的email地址 + _email string + // 账号的全局唯一标识 + _userId string + // 当前注册的页面URL,Source为1,2时,该参数必选 + _registerUrl string + // agent,发送HTTP请求的代理 + _agent string + // Cookie + _cookie string + // Session id + _sessionId string + // 硬件信息 + _macAddress string + // 上一跳信息 + _referer string + // 账号绑定的呢称 + _nickName string + // 账号绑定的公司名字 + _companyName string + // 账号绑定的注册的地址 + _address string + // 账号绑定的身份证号 + _idNumber string + // 账号绑定的银行卡号 + _bankCardNumber string + // 接入JS后从服务端获取的token + _jsToken string + // 接入SDK后从服务端获取的token + _sdkToken string +} + +// 初始化AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest对象 +func NewAlibabaSecurityJaqSpamregisterpreventionResultFetchRequest() *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest{ + return &AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.spamregisterprevention.result.fetch" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PhoneNumber Setter +// 账号绑定的手机号码 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) SetPhoneNumber(_phoneNumber string) error { + r._phoneNumber = _phoneNumber + r.Set("phone_number", _phoneNumber) + return nil +} + +// PhoneNumber Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetPhoneNumber() string { + return r._phoneNumber +} +// Ip Setter +// 账号绑定的IP地址 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) SetIp(_ip string) error { + r._ip = _ip + r.Set("ip", _ip) + return nil +} + +// Ip Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetIp() string { + return r._ip +} +// Context Setter +// 场景描述,String必须在下面可以使用的场景中选择。可以使用的场景为:Login:登录事件;Register:注册事件;Trade:交易事件;Payment:支付事件;Refund:退款事件 ;Loan:借款事件;Transfer:转账事件;Withdraw :提现事件;Modify:修改事件;Click:点击事件;Activate:激活事件; Other:其他事件。 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) SetContext(_context string) error { + r._context = _context + r.Set("context", _context) + return nil +} + +// Context Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetContext() string { + return r._context +} +// Source Setter +// 登录来源。可以输入的参数如下:1:PC网页;2:移动网页;3:APP;4:其他 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) SetSource(_source int64) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetSource() int64 { + return r._source +} +// Email Setter +// 账号绑定的email地址 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) SetEmail(_email string) error { + r._email = _email + r.Set("email", _email) + return nil +} + +// Email Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetEmail() string { + return r._email +} +// UserId Setter +// 账号的全局唯一标识 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetUserId() string { + return r._userId +} +// RegisterUrl Setter +// 当前注册的页面URL,Source为1,2时,该参数必选 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) SetRegisterUrl(_registerUrl string) error { + r._registerUrl = _registerUrl + r.Set("register_url", _registerUrl) + return nil +} + +// RegisterUrl Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetRegisterUrl() string { + return r._registerUrl +} +// Agent Setter +// agent,发送HTTP请求的代理 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) SetAgent(_agent string) error { + r._agent = _agent + r.Set("agent", _agent) + return nil +} + +// Agent Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetAgent() string { + return r._agent +} +// Cookie Setter +// Cookie +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) SetCookie(_cookie string) error { + r._cookie = _cookie + r.Set("cookie", _cookie) + return nil +} + +// Cookie Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetCookie() string { + return r._cookie +} +// SessionId Setter +// Session id +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) SetSessionId(_sessionId string) error { + r._sessionId = _sessionId + r.Set("session_id", _sessionId) + return nil +} + +// SessionId Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetSessionId() string { + return r._sessionId +} +// MacAddress Setter +// 硬件信息 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) SetMacAddress(_macAddress string) error { + r._macAddress = _macAddress + r.Set("mac_address", _macAddress) + return nil +} + +// MacAddress Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetMacAddress() string { + return r._macAddress +} +// Referer Setter +// 上一跳信息 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) SetReferer(_referer string) error { + r._referer = _referer + r.Set("referer", _referer) + return nil +} + +// Referer Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetReferer() string { + return r._referer +} +// NickName Setter +// 账号绑定的呢称 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) SetNickName(_nickName string) error { + r._nickName = _nickName + r.Set("nick_name", _nickName) + return nil +} + +// NickName Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetNickName() string { + return r._nickName +} +// CompanyName Setter +// 账号绑定的公司名字 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) SetCompanyName(_companyName string) error { + r._companyName = _companyName + r.Set("company_name", _companyName) + return nil +} + +// CompanyName Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetCompanyName() string { + return r._companyName +} +// Address Setter +// 账号绑定的注册的地址 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetAddress() string { + return r._address +} +// IdNumber Setter +// 账号绑定的身份证号 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) SetIdNumber(_idNumber string) error { + r._idNumber = _idNumber + r.Set("id_number", _idNumber) + return nil +} + +// IdNumber Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetIdNumber() string { + return r._idNumber +} +// BankCardNumber Setter +// 账号绑定的银行卡号 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) SetBankCardNumber(_bankCardNumber string) error { + r._bankCardNumber = _bankCardNumber + r.Set("bank_card_number", _bankCardNumber) + return nil +} + +// BankCardNumber Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetBankCardNumber() string { + return r._bankCardNumber +} +// JsToken Setter +// 接入JS后从服务端获取的token +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) SetJsToken(_jsToken string) error { + r._jsToken = _jsToken + r.Set("js_token", _jsToken) + return nil +} + +// JsToken Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetJsToken() string { + return r._jsToken +} +// SdkToken Setter +// 接入SDK后从服务端获取的token +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) SetSdkToken(_sdkToken string) error { + r._sdkToken = _sdkToken + r.Set("sdk_token", _sdkToken) + return nil +} + +// SdkToken Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIRequest) GetSdkToken() string { + return r._sdkToken +} diff --git a/model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIResponse.go b/model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIResponse.go new file mode 100644 index 0000000000..1abfb5670e --- /dev/null +++ b/model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取垃圾注册防控结果 API返回值 +alibaba.security.jaq.spamregisterprevention.result.fetch + +获取垃圾注册防控结果 +*/ +type AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIResponseModel +} + +// 获取垃圾注册防控结果 成功返回结果 +type AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_spamregisterprevention_result_fetch_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 账号风控返回结果 + JaqAccountRiskResult *JaqAccountRiskResult `json:"jaq_account_risk_result,omitempty" xml:"jaq_account_risk_result,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest.go b/model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest.go new file mode 100644 index 0000000000..86cb8b3116 --- /dev/null +++ b/model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest.go @@ -0,0 +1,332 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取虚假注册保护结果 API请求 +alibaba.security.jaq.spamregisterprevention.result.fetch.new + +获取虚假注册保护结果 +*/ +type AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest struct { + model.Params + // 关联账号的手机号。手机号码的格式为国家码-手机号的格式,如中国手机号86-13088889999或美国手机号001-9096185426,如果不加国家码都视为中国手机号码【phone_number ,email, (user_id,id_type)三种必选其一】 + _phoneNumber string + // 关联账号的email。 【phone_number ,email, (user_id,id_type)三种必选其一】 + _email string + // 账号的全局唯一标识,为了提高准确率,建议带上该字段。【phone_number ,email, (user_id,id_type)三种必选其一】 + _userId string + // 有user_id时候必填。1:阿里HID;2:用户自有ID;3:openId; 4:其它。【phone_number ,email, (user_id,id_type)三种必选其一】 + _idType int64 + // 登录时候的IP地址 + _ip string + // 登录来源。1:PC网页;2:移动网页;3:APP;4:其它 + _source int64 + // 当前操作的页面URL。Source为1,2时,该参数必选 + _registerUrl string + // 发送HTTP请求的代理 + _agent string + // Cookie + _cookie string + // Session id + _sessionId string + // 硬件信息 + _macAddress string + // 上一跳信息 + _referer string + // 账号绑定的呢称 + _nickName string + // 账号绑定的公司名字 + _companyName string + // 账号绑定的注册的地址 + _address string + // 账号绑定的身份证号 + _idNumber string + // 账号绑定的银行卡号 + _bankCardNumber string + // 接入JS后获取的token + _jsToken string + // 接入无线保镖安全组件后从服务端获取的token + _sdkToken string + // 协议版本号。现在的值是1.0 + _protocolVersion string + // 扩展字段。json格式的字符串,根据具体情况而定 + _extendData string +} + +// 初始化AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest对象 +func NewAlibabaSecurityJaqSpamregisterpreventionResultFetchNewRequest() *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest{ + return &AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.spamregisterprevention.result.fetch.new" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PhoneNumber Setter +// 关联账号的手机号。手机号码的格式为国家码-手机号的格式,如中国手机号86-13088889999或美国手机号001-9096185426,如果不加国家码都视为中国手机号码【phone_number ,email, (user_id,id_type)三种必选其一】 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetPhoneNumber(_phoneNumber string) error { + r._phoneNumber = _phoneNumber + r.Set("phone_number", _phoneNumber) + return nil +} + +// PhoneNumber Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetPhoneNumber() string { + return r._phoneNumber +} +// Email Setter +// 关联账号的email。 【phone_number ,email, (user_id,id_type)三种必选其一】 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetEmail(_email string) error { + r._email = _email + r.Set("email", _email) + return nil +} + +// Email Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetEmail() string { + return r._email +} +// UserId Setter +// 账号的全局唯一标识,为了提高准确率,建议带上该字段。【phone_number ,email, (user_id,id_type)三种必选其一】 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetUserId() string { + return r._userId +} +// IdType Setter +// 有user_id时候必填。1:阿里HID;2:用户自有ID;3:openId; 4:其它。【phone_number ,email, (user_id,id_type)三种必选其一】 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetIdType(_idType int64) error { + r._idType = _idType + r.Set("id_type", _idType) + return nil +} + +// IdType Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetIdType() int64 { + return r._idType +} +// Ip Setter +// 登录时候的IP地址 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetIp(_ip string) error { + r._ip = _ip + r.Set("ip", _ip) + return nil +} + +// Ip Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetIp() string { + return r._ip +} +// Source Setter +// 登录来源。1:PC网页;2:移动网页;3:APP;4:其它 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetSource(_source int64) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetSource() int64 { + return r._source +} +// RegisterUrl Setter +// 当前操作的页面URL。Source为1,2时,该参数必选 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetRegisterUrl(_registerUrl string) error { + r._registerUrl = _registerUrl + r.Set("register_url", _registerUrl) + return nil +} + +// RegisterUrl Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetRegisterUrl() string { + return r._registerUrl +} +// Agent Setter +// 发送HTTP请求的代理 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetAgent(_agent string) error { + r._agent = _agent + r.Set("agent", _agent) + return nil +} + +// Agent Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetAgent() string { + return r._agent +} +// Cookie Setter +// Cookie +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetCookie(_cookie string) error { + r._cookie = _cookie + r.Set("cookie", _cookie) + return nil +} + +// Cookie Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetCookie() string { + return r._cookie +} +// SessionId Setter +// Session id +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetSessionId(_sessionId string) error { + r._sessionId = _sessionId + r.Set("session_id", _sessionId) + return nil +} + +// SessionId Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetSessionId() string { + return r._sessionId +} +// MacAddress Setter +// 硬件信息 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetMacAddress(_macAddress string) error { + r._macAddress = _macAddress + r.Set("mac_address", _macAddress) + return nil +} + +// MacAddress Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetMacAddress() string { + return r._macAddress +} +// Referer Setter +// 上一跳信息 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetReferer(_referer string) error { + r._referer = _referer + r.Set("referer", _referer) + return nil +} + +// Referer Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetReferer() string { + return r._referer +} +// NickName Setter +// 账号绑定的呢称 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetNickName(_nickName string) error { + r._nickName = _nickName + r.Set("nick_name", _nickName) + return nil +} + +// NickName Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetNickName() string { + return r._nickName +} +// CompanyName Setter +// 账号绑定的公司名字 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetCompanyName(_companyName string) error { + r._companyName = _companyName + r.Set("company_name", _companyName) + return nil +} + +// CompanyName Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetCompanyName() string { + return r._companyName +} +// Address Setter +// 账号绑定的注册的地址 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetAddress() string { + return r._address +} +// IdNumber Setter +// 账号绑定的身份证号 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetIdNumber(_idNumber string) error { + r._idNumber = _idNumber + r.Set("id_number", _idNumber) + return nil +} + +// IdNumber Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetIdNumber() string { + return r._idNumber +} +// BankCardNumber Setter +// 账号绑定的银行卡号 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetBankCardNumber(_bankCardNumber string) error { + r._bankCardNumber = _bankCardNumber + r.Set("bank_card_number", _bankCardNumber) + return nil +} + +// BankCardNumber Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetBankCardNumber() string { + return r._bankCardNumber +} +// JsToken Setter +// 接入JS后获取的token +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetJsToken(_jsToken string) error { + r._jsToken = _jsToken + r.Set("js_token", _jsToken) + return nil +} + +// JsToken Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetJsToken() string { + return r._jsToken +} +// SdkToken Setter +// 接入无线保镖安全组件后从服务端获取的token +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetSdkToken(_sdkToken string) error { + r._sdkToken = _sdkToken + r.Set("sdk_token", _sdkToken) + return nil +} + +// SdkToken Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetSdkToken() string { + return r._sdkToken +} +// ProtocolVersion Setter +// 协议版本号。现在的值是1.0 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetProtocolVersion(_protocolVersion string) error { + r._protocolVersion = _protocolVersion + r.Set("protocol_version", _protocolVersion) + return nil +} + +// ProtocolVersion Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetProtocolVersion() string { + return r._protocolVersion +} +// ExtendData Setter +// 扩展字段。json格式的字符串,根据具体情况而定 +func (r *AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) SetExtendData(_extendData string) error { + r._extendData = _extendData + r.Set("extend_data", _extendData) + return nil +} + +// ExtendData Getter +func (r AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIRequest) GetExtendData() string { + return r._extendData +} diff --git a/model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIResponse.go b/model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIResponse.go new file mode 100644 index 0000000000..a0f7bc2af7 --- /dev/null +++ b/model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取虚假注册保护结果 API返回值 +alibaba.security.jaq.spamregisterprevention.result.fetch.new + +获取虚假注册保护结果 +*/ +type AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIResponseModel +} + +// 获取虚假注册保护结果 成功返回结果 +type AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_spamregisterprevention_result_fetch_new_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 账号风控返回结果 + JaqAccountRiskResult *JaqAccountRiskResult `json:"jaq_account_risk_result,omitempty" xml:"jaq_account_risk_result,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchNewResponse.go b/model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchNewResponse.go deleted file mode 100644 index 1cf87dcb00..0000000000 --- a/model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchNewResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取虚假注册保护结果 API返回值 -alibaba.security.jaq.spamregisterprevention.result.fetch.new - -获取虚假注册保护结果 -*/ -type AlibabaSecurityJaqSpamregisterpreventionResultFetchNewAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqSpamregisterpreventionResultFetchNewResponse -} - -// 获取虚假注册保护结果 成功返回结果 -type AlibabaSecurityJaqSpamregisterpreventionResultFetchNewResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_spamregisterprevention_result_fetch_new_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 账号风控返回结果 - JaqAccountRiskResult *JaqAccountRiskResult `json:"jaq_account_risk_result,omitempty" xml:"jaq_account_risk_result,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchResponse.go b/model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchResponse.go deleted file mode 100644 index 4489cca05b..0000000000 --- a/model/security/AlibabaSecurityJaqSpamregisterpreventionResultFetchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取垃圾注册防控结果 API返回值 -alibaba.security.jaq.spamregisterprevention.result.fetch - -获取垃圾注册防控结果 -*/ -type AlibabaSecurityJaqSpamregisterpreventionResultFetchAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqSpamregisterpreventionResultFetchResponse -} - -// 获取垃圾注册防控结果 成功返回结果 -type AlibabaSecurityJaqSpamregisterpreventionResultFetchResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_spamregisterprevention_result_fetch_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 账号风控返回结果 - JaqAccountRiskResult *JaqAccountRiskResult `json:"jaq_account_risk_result,omitempty" xml:"jaq_account_risk_result,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqUrlScanAPIRequest.go b/model/security/AlibabaSecurityJaqUrlScanAPIRequest.go new file mode 100644 index 0000000000..f7aa466226 --- /dev/null +++ b/model/security/AlibabaSecurityJaqUrlScanAPIRequest.go @@ -0,0 +1,52 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +恶意网址检测接口 API请求 +alibaba.security.jaq.url.scan + +url扫描接口 +*/ +type AlibabaSecurityJaqUrlScanAPIRequest struct { + model.Params + // 扫描参数 + _paramUrlScanParamList *UrlScanParamList +} + +// 初始化AlibabaSecurityJaqUrlScanAPIRequest对象 +func NewAlibabaSecurityJaqUrlScanRequest() *AlibabaSecurityJaqUrlScanAPIRequest{ + return &AlibabaSecurityJaqUrlScanAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqUrlScanAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.url.scan" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqUrlScanAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamUrlScanParamList Setter +// 扫描参数 +func (r *AlibabaSecurityJaqUrlScanAPIRequest) SetParamUrlScanParamList(_paramUrlScanParamList *UrlScanParamList) error { + r._paramUrlScanParamList = _paramUrlScanParamList + r.Set("param_url_scan_param_list", _paramUrlScanParamList) + return nil +} + +// ParamUrlScanParamList Getter +func (r AlibabaSecurityJaqUrlScanAPIRequest) GetParamUrlScanParamList() *UrlScanParamList { + return r._paramUrlScanParamList +} diff --git a/model/security/AlibabaSecurityJaqUrlScanAPIResponse.go b/model/security/AlibabaSecurityJaqUrlScanAPIResponse.go new file mode 100644 index 0000000000..f2a1daf7e6 --- /dev/null +++ b/model/security/AlibabaSecurityJaqUrlScanAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +恶意网址检测接口 API返回值 +alibaba.security.jaq.url.scan + +url扫描接口 +*/ +type AlibabaSecurityJaqUrlScanAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqUrlScanAPIResponseModel +} + +// 恶意网址检测接口 成功返回结果 +type AlibabaSecurityJaqUrlScanAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_url_scan_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 扫描结果 + Data *UrlScanResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqUrlScanResponse.go b/model/security/AlibabaSecurityJaqUrlScanResponse.go deleted file mode 100644 index 9296363827..0000000000 --- a/model/security/AlibabaSecurityJaqUrlScanResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -恶意网址检测接口 API返回值 -alibaba.security.jaq.url.scan - -url扫描接口 -*/ -type AlibabaSecurityJaqUrlScanAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqUrlScanResponse -} - -// 恶意网址检测接口 成功返回结果 -type AlibabaSecurityJaqUrlScanResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_url_scan_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 扫描结果 - Data *UrlScanResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/security/AlibabaSecurityJaqWsgriskdataReportAPIRequest.go b/model/security/AlibabaSecurityJaqWsgriskdataReportAPIRequest.go new file mode 100644 index 0000000000..a14a47ad93 --- /dev/null +++ b/model/security/AlibabaSecurityJaqWsgriskdataReportAPIRequest.go @@ -0,0 +1,66 @@ +package security + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +无线保镖SDK风控数据上报 API请求 +alibaba.security.jaq.wsgriskdata.report + +无线保镖sdk根据用户的需要,上报数据到聚安全云端 +*/ +type AlibabaSecurityJaqWsgriskdataReportAPIRequest struct { + model.Params + // wua串 + _wua string + // mtopappkey是mtop的appkey + _extParam string +} + +// 初始化AlibabaSecurityJaqWsgriskdataReportAPIRequest对象 +func NewAlibabaSecurityJaqWsgriskdataReportRequest() *AlibabaSecurityJaqWsgriskdataReportAPIRequest{ + return &AlibabaSecurityJaqWsgriskdataReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSecurityJaqWsgriskdataReportAPIRequest) GetApiMethodName() string { + return "alibaba.security.jaq.wsgriskdata.report" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSecurityJaqWsgriskdataReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Wua Setter +// wua串 +func (r *AlibabaSecurityJaqWsgriskdataReportAPIRequest) SetWua(_wua string) error { + r._wua = _wua + r.Set("wua", _wua) + return nil +} + +// Wua Getter +func (r AlibabaSecurityJaqWsgriskdataReportAPIRequest) GetWua() string { + return r._wua +} +// ExtParam Setter +// mtopappkey是mtop的appkey +func (r *AlibabaSecurityJaqWsgriskdataReportAPIRequest) SetExtParam(_extParam string) error { + r._extParam = _extParam + r.Set("ext_param", _extParam) + return nil +} + +// ExtParam Getter +func (r AlibabaSecurityJaqWsgriskdataReportAPIRequest) GetExtParam() string { + return r._extParam +} diff --git a/model/security/AlibabaSecurityJaqWsgriskdataReportAPIResponse.go b/model/security/AlibabaSecurityJaqWsgriskdataReportAPIResponse.go new file mode 100644 index 0000000000..ce0b4d6f83 --- /dev/null +++ b/model/security/AlibabaSecurityJaqWsgriskdataReportAPIResponse.go @@ -0,0 +1,27 @@ +package security + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +无线保镖SDK风控数据上报 API返回值 +alibaba.security.jaq.wsgriskdata.report + +无线保镖sdk根据用户的需要,上报数据到聚安全云端 +*/ +type AlibabaSecurityJaqWsgriskdataReportAPIResponse struct { + model.CommonResponse + AlibabaSecurityJaqWsgriskdataReportAPIResponseModel +} + +// 无线保镖SDK风控数据上报 成功返回结果 +type AlibabaSecurityJaqWsgriskdataReportAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_security_jaq_wsgriskdata_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 无线保镖sdk上报数据的返回结果 + JaqWsgRiskReportResult *JaqWsgReportResult `json:"jaq_wsg_risk_report_result,omitempty" xml:"jaq_wsg_risk_report_result,omitempty"` +} diff --git a/model/security/AlibabaSecurityJaqWsgriskdataReportResponse.go b/model/security/AlibabaSecurityJaqWsgriskdataReportResponse.go deleted file mode 100644 index 29968dae60..0000000000 --- a/model/security/AlibabaSecurityJaqWsgriskdataReportResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package security - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -无线保镖SDK风控数据上报 API返回值 -alibaba.security.jaq.wsgriskdata.report - -无线保镖sdk根据用户的需要,上报数据到聚安全云端 -*/ -type AlibabaSecurityJaqWsgriskdataReportAPIResponse struct { - model.CommonResponse - AlibabaSecurityJaqWsgriskdataReportResponse -} - -// 无线保镖SDK风控数据上报 成功返回结果 -type AlibabaSecurityJaqWsgriskdataReportResponse struct { - XMLName xml.Name `xml:"alibaba_security_jaq_wsgriskdata_report_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 无线保镖sdk上报数据的返回结果 - JaqWsgRiskReportResult *JaqWsgReportResult `json:"jaq_wsg_risk_report_result,omitempty" xml:"jaq_wsg_risk_report_result,omitempty"` -} diff --git a/model/servicecenter/TaobaoFuwuPurchaseOrderConfirmAPIRequest.go b/model/servicecenter/TaobaoFuwuPurchaseOrderConfirmAPIRequest.go new file mode 100644 index 0000000000..b3f4b01528 --- /dev/null +++ b/model/servicecenter/TaobaoFuwuPurchaseOrderConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务市场内购服务下单接口 API请求 +taobao.fuwu.purchase.order.confirm + +通过传入服务市场商品的itemcode等信息,返回给服务商内购服务的下单链接 +*/ +type TaobaoFuwuPurchaseOrderConfirmAPIRequest struct { + model.Params + // 内购服务下单接口参数 + _paramOrderConfirmQueryDTO *OrderConfirmQueryDto +} + +// 初始化TaobaoFuwuPurchaseOrderConfirmAPIRequest对象 +func NewTaobaoFuwuPurchaseOrderConfirmRequest() *TaobaoFuwuPurchaseOrderConfirmAPIRequest{ + return &TaobaoFuwuPurchaseOrderConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFuwuPurchaseOrderConfirmAPIRequest) GetApiMethodName() string { + return "taobao.fuwu.purchase.order.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFuwuPurchaseOrderConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamOrderConfirmQueryDTO Setter +// 内购服务下单接口参数 +func (r *TaobaoFuwuPurchaseOrderConfirmAPIRequest) SetParamOrderConfirmQueryDTO(_paramOrderConfirmQueryDTO *OrderConfirmQueryDto) error { + r._paramOrderConfirmQueryDTO = _paramOrderConfirmQueryDTO + r.Set("param_order_confirm_query_d_t_o", _paramOrderConfirmQueryDTO) + return nil +} + +// ParamOrderConfirmQueryDTO Getter +func (r TaobaoFuwuPurchaseOrderConfirmAPIRequest) GetParamOrderConfirmQueryDTO() *OrderConfirmQueryDto { + return r._paramOrderConfirmQueryDTO +} diff --git a/model/servicecenter/TaobaoFuwuPurchaseOrderConfirmAPIResponse.go b/model/servicecenter/TaobaoFuwuPurchaseOrderConfirmAPIResponse.go new file mode 100644 index 0000000000..915858c088 --- /dev/null +++ b/model/servicecenter/TaobaoFuwuPurchaseOrderConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务市场内购服务下单接口 API返回值 +taobao.fuwu.purchase.order.confirm + +通过传入服务市场商品的itemcode等信息,返回给服务商内购服务的下单链接 +*/ +type TaobaoFuwuPurchaseOrderConfirmAPIResponse struct { + model.CommonResponse + TaobaoFuwuPurchaseOrderConfirmAPIResponseModel +} + +// 服务市场内购服务下单接口 成功返回结果 +type TaobaoFuwuPurchaseOrderConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"fuwu_purchase_order_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 下单页面url + Url string `json:"url,omitempty" xml:"url,omitempty"` +} diff --git a/model/servicecenter/TaobaoFuwuPurchaseOrderConfirmResponse.go b/model/servicecenter/TaobaoFuwuPurchaseOrderConfirmResponse.go deleted file mode 100644 index eb0e825ecd..0000000000 --- a/model/servicecenter/TaobaoFuwuPurchaseOrderConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务市场内购服务下单接口 API返回值 -taobao.fuwu.purchase.order.confirm - -通过传入服务市场商品的itemcode等信息,返回给服务商内购服务的下单链接 -*/ -type TaobaoFuwuPurchaseOrderConfirmAPIResponse struct { - model.CommonResponse - TaobaoFuwuPurchaseOrderConfirmResponse -} - -// 服务市场内购服务下单接口 成功返回结果 -type TaobaoFuwuPurchaseOrderConfirmResponse struct { - XMLName xml.Name `xml:"fuwu_purchase_order_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 下单页面url - Url string `json:"url,omitempty" xml:"url,omitempty"` -} diff --git a/model/servicecenter/TaobaoFuwuPurchaseOrderPayAPIRequest.go b/model/servicecenter/TaobaoFuwuPurchaseOrderPayAPIRequest.go new file mode 100644 index 0000000000..fffab316de --- /dev/null +++ b/model/servicecenter/TaobaoFuwuPurchaseOrderPayAPIRequest.go @@ -0,0 +1,94 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +内购服务订单付款页获取接口 API请求 +taobao.fuwu.purchase.order.pay + +通过接口获取某一订单的付款页面链接 +*/ +type TaobaoFuwuPurchaseOrderPayAPIRequest struct { + model.Params + // APPKEY,必填 + _appkey string + // 订单号,与外部订单号二选一 + _orderId int64 + // 外部订单号,使用该参数完成查询订单等操作,与外部订单号二选一 + _outOrderId string + // 设备类型,目前只支持PC,可选 + _deviceType string +} + +// 初始化TaobaoFuwuPurchaseOrderPayAPIRequest对象 +func NewTaobaoFuwuPurchaseOrderPayRequest() *TaobaoFuwuPurchaseOrderPayAPIRequest{ + return &TaobaoFuwuPurchaseOrderPayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFuwuPurchaseOrderPayAPIRequest) GetApiMethodName() string { + return "taobao.fuwu.purchase.order.pay" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFuwuPurchaseOrderPayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Appkey Setter +// APPKEY,必填 +func (r *TaobaoFuwuPurchaseOrderPayAPIRequest) SetAppkey(_appkey string) error { + r._appkey = _appkey + r.Set("appkey", _appkey) + return nil +} + +// Appkey Getter +func (r TaobaoFuwuPurchaseOrderPayAPIRequest) GetAppkey() string { + return r._appkey +} +// OrderId Setter +// 订单号,与外部订单号二选一 +func (r *TaobaoFuwuPurchaseOrderPayAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoFuwuPurchaseOrderPayAPIRequest) GetOrderId() int64 { + return r._orderId +} +// OutOrderId Setter +// 外部订单号,使用该参数完成查询订单等操作,与外部订单号二选一 +func (r *TaobaoFuwuPurchaseOrderPayAPIRequest) SetOutOrderId(_outOrderId string) error { + r._outOrderId = _outOrderId + r.Set("out_order_id", _outOrderId) + return nil +} + +// OutOrderId Getter +func (r TaobaoFuwuPurchaseOrderPayAPIRequest) GetOutOrderId() string { + return r._outOrderId +} +// DeviceType Setter +// 设备类型,目前只支持PC,可选 +func (r *TaobaoFuwuPurchaseOrderPayAPIRequest) SetDeviceType(_deviceType string) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r TaobaoFuwuPurchaseOrderPayAPIRequest) GetDeviceType() string { + return r._deviceType +} diff --git a/model/servicecenter/TaobaoFuwuPurchaseOrderPayAPIResponse.go b/model/servicecenter/TaobaoFuwuPurchaseOrderPayAPIResponse.go new file mode 100644 index 0000000000..de7939cb78 --- /dev/null +++ b/model/servicecenter/TaobaoFuwuPurchaseOrderPayAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +内购服务订单付款页获取接口 API返回值 +taobao.fuwu.purchase.order.pay + +通过接口获取某一订单的付款页面链接 +*/ +type TaobaoFuwuPurchaseOrderPayAPIResponse struct { + model.CommonResponse + TaobaoFuwuPurchaseOrderPayAPIResponseModel +} + +// 内购服务订单付款页获取接口 成功返回结果 +type TaobaoFuwuPurchaseOrderPayAPIResponseModel struct { + XMLName xml.Name `xml:"fuwu_purchase_order_pay_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 该url用于订单付款 + Url string `json:"url,omitempty" xml:"url,omitempty"` +} diff --git a/model/servicecenter/TaobaoFuwuPurchaseOrderPayResponse.go b/model/servicecenter/TaobaoFuwuPurchaseOrderPayResponse.go deleted file mode 100644 index e5d4df70f5..0000000000 --- a/model/servicecenter/TaobaoFuwuPurchaseOrderPayResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -内购服务订单付款页获取接口 API返回值 -taobao.fuwu.purchase.order.pay - -通过接口获取某一订单的付款页面链接 -*/ -type TaobaoFuwuPurchaseOrderPayAPIResponse struct { - model.CommonResponse - TaobaoFuwuPurchaseOrderPayResponse -} - -// 内购服务订单付款页获取接口 成功返回结果 -type TaobaoFuwuPurchaseOrderPayResponse struct { - XMLName xml.Name `xml:"fuwu_purchase_order_pay_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 该url用于订单付款 - Url string `json:"url,omitempty" xml:"url,omitempty"` -} diff --git a/model/servicecenter/TaobaoFuwuSaleLinkGenAPIRequest.go b/model/servicecenter/TaobaoFuwuSaleLinkGenAPIRequest.go new file mode 100644 index 0000000000..f6f1d054a1 --- /dev/null +++ b/model/servicecenter/TaobaoFuwuSaleLinkGenAPIRequest.go @@ -0,0 +1,66 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务平台营销链接生成接口 API请求 +taobao.fuwu.sale.link.gen + +服务商通过使用该接口来产生营销链接,通过把这种链接发送给商家来做自定义人群的服务营销

注:session是param_str这个参数串创建者生成的session,这个创建者与入参中的nick是不一致的。例如:A开发者创建了一个param_str的字符串,要为B商家生成一个营销链接,session必须是A开发者创建的session。 +*/ +type TaobaoFuwuSaleLinkGenAPIRequest struct { + model.Params + // 用户需要营销的目标人群中的用户nick + _nick string + // 从服务商后台,营销链接功能中生成的参数串直接复制使用。不要修改,否则抛错。 + _paramStr string +} + +// 初始化TaobaoFuwuSaleLinkGenAPIRequest对象 +func NewTaobaoFuwuSaleLinkGenRequest() *TaobaoFuwuSaleLinkGenAPIRequest{ + return &TaobaoFuwuSaleLinkGenAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFuwuSaleLinkGenAPIRequest) GetApiMethodName() string { + return "taobao.fuwu.sale.link.gen" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFuwuSaleLinkGenAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 用户需要营销的目标人群中的用户nick +func (r *TaobaoFuwuSaleLinkGenAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoFuwuSaleLinkGenAPIRequest) GetNick() string { + return r._nick +} +// ParamStr Setter +// 从服务商后台,营销链接功能中生成的参数串直接复制使用。不要修改,否则抛错。 +func (r *TaobaoFuwuSaleLinkGenAPIRequest) SetParamStr(_paramStr string) error { + r._paramStr = _paramStr + r.Set("param_str", _paramStr) + return nil +} + +// ParamStr Getter +func (r TaobaoFuwuSaleLinkGenAPIRequest) GetParamStr() string { + return r._paramStr +} diff --git a/model/servicecenter/TaobaoFuwuSaleLinkGenAPIResponse.go b/model/servicecenter/TaobaoFuwuSaleLinkGenAPIResponse.go new file mode 100644 index 0000000000..6053f2f1d6 --- /dev/null +++ b/model/servicecenter/TaobaoFuwuSaleLinkGenAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务平台营销链接生成接口 API返回值 +taobao.fuwu.sale.link.gen + +服务商通过使用该接口来产生营销链接,通过把这种链接发送给商家来做自定义人群的服务营销

注:session是param_str这个参数串创建者生成的session,这个创建者与入参中的nick是不一致的。例如:A开发者创建了一个param_str的字符串,要为B商家生成一个营销链接,session必须是A开发者创建的session。 +*/ +type TaobaoFuwuSaleLinkGenAPIResponse struct { + model.CommonResponse + TaobaoFuwuSaleLinkGenAPIResponseModel +} + +// 服务平台营销链接生成接口 成功返回结果 +type TaobaoFuwuSaleLinkGenAPIResponseModel struct { + XMLName xml.Name `xml:"fuwu_sale_link_gen_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 通过营销链接接口生成的营销链接短地址 + Url string `json:"url,omitempty" xml:"url,omitempty"` +} diff --git a/model/servicecenter/TaobaoFuwuSaleLinkGenResponse.go b/model/servicecenter/TaobaoFuwuSaleLinkGenResponse.go deleted file mode 100644 index 1040228f58..0000000000 --- a/model/servicecenter/TaobaoFuwuSaleLinkGenResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务平台营销链接生成接口 API返回值 -taobao.fuwu.sale.link.gen - -服务商通过使用该接口来产生营销链接,通过把这种链接发送给商家来做自定义人群的服务营销

注:session是param_str这个参数串创建者生成的session,这个创建者与入参中的nick是不一致的。例如:A开发者创建了一个param_str的字符串,要为B商家生成一个营销链接,session必须是A开发者创建的session。 -*/ -type TaobaoFuwuSaleLinkGenAPIResponse struct { - model.CommonResponse - TaobaoFuwuSaleLinkGenResponse -} - -// 服务平台营销链接生成接口 成功返回结果 -type TaobaoFuwuSaleLinkGenResponse struct { - XMLName xml.Name `xml:"fuwu_sale_link_gen_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 通过营销链接接口生成的营销链接短地址 - Url string `json:"url,omitempty" xml:"url,omitempty"` -} diff --git a/model/servicecenter/TaobaoFuwuScoresGetAPIRequest.go b/model/servicecenter/TaobaoFuwuScoresGetAPIRequest.go new file mode 100644 index 0000000000..cb7a0f8269 --- /dev/null +++ b/model/servicecenter/TaobaoFuwuScoresGetAPIRequest.go @@ -0,0 +1,80 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务平台评价查询接口 API请求 +taobao.fuwu.scores.get + +根据日期、查询appkey对应服务评价,每次调用只能查询某一天服务评价信息,可设置分页查询,页大小最大为100,非实时接口,延迟时间为30分钟 +*/ +type TaobaoFuwuScoresGetAPIRequest struct { + model.Params + // 当前页 + _currentPage int64 + // 每页获取条数。默认值40,最小值1,最大值100。 + _pageSize int64 + // 评价日期,查询某一天的评价 + _date string +} + +// 初始化TaobaoFuwuScoresGetAPIRequest对象 +func NewTaobaoFuwuScoresGetRequest() *TaobaoFuwuScoresGetAPIRequest{ + return &TaobaoFuwuScoresGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFuwuScoresGetAPIRequest) GetApiMethodName() string { + return "taobao.fuwu.scores.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFuwuScoresGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CurrentPage Setter +// 当前页 +func (r *TaobaoFuwuScoresGetAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TaobaoFuwuScoresGetAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// PageSize Setter +// 每页获取条数。默认值40,最小值1,最大值100。 +func (r *TaobaoFuwuScoresGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoFuwuScoresGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Date Setter +// 评价日期,查询某一天的评价 +func (r *TaobaoFuwuScoresGetAPIRequest) SetDate(_date string) error { + r._date = _date + r.Set("date", _date) + return nil +} + +// Date Getter +func (r TaobaoFuwuScoresGetAPIRequest) GetDate() string { + return r._date +} diff --git a/model/servicecenter/TaobaoFuwuScoresGetAPIResponse.go b/model/servicecenter/TaobaoFuwuScoresGetAPIResponse.go new file mode 100644 index 0000000000..e157e8ddeb --- /dev/null +++ b/model/servicecenter/TaobaoFuwuScoresGetAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务平台评价查询接口 API返回值 +taobao.fuwu.scores.get + +根据日期、查询appkey对应服务评价,每次调用只能查询某一天服务评价信息,可设置分页查询,页大小最大为100,非实时接口,延迟时间为30分钟 +*/ +type TaobaoFuwuScoresGetAPIResponse struct { + model.CommonResponse + TaobaoFuwuScoresGetAPIResponseModel +} + +// 服务平台评价查询接口 成功返回结果 +type TaobaoFuwuScoresGetAPIResponseModel struct { + XMLName xml.Name `xml:"fuwu_scores_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 评价流水记录 + ScoreResult []ScoreResult `json:"score_result,omitempty" xml:"score_result>score_result,omitempty"` +} diff --git a/model/servicecenter/TaobaoFuwuScoresGetResponse.go b/model/servicecenter/TaobaoFuwuScoresGetResponse.go deleted file mode 100644 index 10e262a402..0000000000 --- a/model/servicecenter/TaobaoFuwuScoresGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务平台评价查询接口 API返回值 -taobao.fuwu.scores.get - -根据日期、查询appkey对应服务评价,每次调用只能查询某一天服务评价信息,可设置分页查询,页大小最大为100,非实时接口,延迟时间为30分钟 -*/ -type TaobaoFuwuScoresGetAPIResponse struct { - model.CommonResponse - TaobaoFuwuScoresGetResponse -} - -// 服务平台评价查询接口 成功返回结果 -type TaobaoFuwuScoresGetResponse struct { - XMLName xml.Name `xml:"fuwu_scores_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 评价流水记录 - ScoreResult []ScoreResult `json:"score_result,omitempty" xml:"score_result>score_result,omitempty"` -} diff --git a/model/servicecenter/TaobaoFuwuSkuGetAPIRequest.go b/model/servicecenter/TaobaoFuwuSkuGetAPIRequest.go new file mode 100644 index 0000000000..491c728e38 --- /dev/null +++ b/model/servicecenter/TaobaoFuwuSkuGetAPIRequest.go @@ -0,0 +1,66 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取内购服务及SKU详情 API请求 +taobao.fuwu.sku.get + +通过服务code和用户nick,获取该服务对应的收费项目的sku信息,包括价格、可购买周期、用户能否购买等信息 +*/ +type TaobaoFuwuSkuGetAPIRequest struct { + model.Params + // 服务code + _articleCode string + // 用户的淘宝nick + _nick string +} + +// 初始化TaobaoFuwuSkuGetAPIRequest对象 +func NewTaobaoFuwuSkuGetRequest() *TaobaoFuwuSkuGetAPIRequest{ + return &TaobaoFuwuSkuGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFuwuSkuGetAPIRequest) GetApiMethodName() string { + return "taobao.fuwu.sku.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFuwuSkuGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ArticleCode Setter +// 服务code +func (r *TaobaoFuwuSkuGetAPIRequest) SetArticleCode(_articleCode string) error { + r._articleCode = _articleCode + r.Set("article_code", _articleCode) + return nil +} + +// ArticleCode Getter +func (r TaobaoFuwuSkuGetAPIRequest) GetArticleCode() string { + return r._articleCode +} +// Nick Setter +// 用户的淘宝nick +func (r *TaobaoFuwuSkuGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoFuwuSkuGetAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/servicecenter/TaobaoFuwuSkuGetAPIResponse.go b/model/servicecenter/TaobaoFuwuSkuGetAPIResponse.go new file mode 100644 index 0000000000..081dae654b --- /dev/null +++ b/model/servicecenter/TaobaoFuwuSkuGetAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取内购服务及SKU详情 API返回值 +taobao.fuwu.sku.get + +通过服务code和用户nick,获取该服务对应的收费项目的sku信息,包括价格、可购买周期、用户能否购买等信息 +*/ +type TaobaoFuwuSkuGetAPIResponse struct { + model.CommonResponse + TaobaoFuwuSkuGetAPIResponseModel +} + +// 获取内购服务及SKU详情 成功返回结果 +type TaobaoFuwuSkuGetAPIResponseModel struct { + XMLName xml.Name `xml:"fuwu_sku_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 内购服务及SKU详情 + Result *ArticleViewResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TaobaoFuwuSkuGetResponse.go b/model/servicecenter/TaobaoFuwuSkuGetResponse.go deleted file mode 100644 index 8f57cf3d7c..0000000000 --- a/model/servicecenter/TaobaoFuwuSkuGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取内购服务及SKU详情 API返回值 -taobao.fuwu.sku.get - -通过服务code和用户nick,获取该服务对应的收费项目的sku信息,包括价格、可购买周期、用户能否购买等信息 -*/ -type TaobaoFuwuSkuGetAPIResponse struct { - model.CommonResponse - TaobaoFuwuSkuGetResponse -} - -// 获取内购服务及SKU详情 成功返回结果 -type TaobaoFuwuSkuGetResponse struct { - XMLName xml.Name `xml:"fuwu_sku_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 内购服务及SKU详情 - Result *ArticleViewResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TaobaoFuwuSpBillreordAddAPIRequest.go b/model/servicecenter/TaobaoFuwuSpBillreordAddAPIRequest.go new file mode 100644 index 0000000000..2185ae51c2 --- /dev/null +++ b/model/servicecenter/TaobaoFuwuSpBillreordAddAPIRequest.go @@ -0,0 +1,52 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +内购服务确认单明细上传接口 API请求 +taobao.fuwu.sp.billreord.add + +isv能通过该接口上传确认单明细数据 +*/ +type TaobaoFuwuSpBillreordAddAPIRequest struct { + model.Params + // 确认单的账单明细 + _paramBillRecordDTO *BillRecordDto +} + +// 初始化TaobaoFuwuSpBillreordAddAPIRequest对象 +func NewTaobaoFuwuSpBillreordAddRequest() *TaobaoFuwuSpBillreordAddAPIRequest{ + return &TaobaoFuwuSpBillreordAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFuwuSpBillreordAddAPIRequest) GetApiMethodName() string { + return "taobao.fuwu.sp.billreord.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFuwuSpBillreordAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamBillRecordDTO Setter +// 确认单的账单明细 +func (r *TaobaoFuwuSpBillreordAddAPIRequest) SetParamBillRecordDTO(_paramBillRecordDTO *BillRecordDto) error { + r._paramBillRecordDTO = _paramBillRecordDTO + r.Set("param_bill_record_d_t_o", _paramBillRecordDTO) + return nil +} + +// ParamBillRecordDTO Getter +func (r TaobaoFuwuSpBillreordAddAPIRequest) GetParamBillRecordDTO() *BillRecordDto { + return r._paramBillRecordDTO +} diff --git a/model/servicecenter/TaobaoFuwuSpBillreordAddAPIResponse.go b/model/servicecenter/TaobaoFuwuSpBillreordAddAPIResponse.go new file mode 100644 index 0000000000..5c0597ed30 --- /dev/null +++ b/model/servicecenter/TaobaoFuwuSpBillreordAddAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +内购服务确认单明细上传接口 API返回值 +taobao.fuwu.sp.billreord.add + +isv能通过该接口上传确认单明细数据 +*/ +type TaobaoFuwuSpBillreordAddAPIResponse struct { + model.CommonResponse + TaobaoFuwuSpBillreordAddAPIResponseModel +} + +// 内购服务确认单明细上传接口 成功返回结果 +type TaobaoFuwuSpBillreordAddAPIResponseModel struct { + XMLName xml.Name `xml:"fuwu_sp_billreord_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回调用结果 + AddResult bool `json:"add_result,omitempty" xml:"add_result,omitempty"` +} diff --git a/model/servicecenter/TaobaoFuwuSpBillreordAddResponse.go b/model/servicecenter/TaobaoFuwuSpBillreordAddResponse.go deleted file mode 100644 index 590e595cf0..0000000000 --- a/model/servicecenter/TaobaoFuwuSpBillreordAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -内购服务确认单明细上传接口 API返回值 -taobao.fuwu.sp.billreord.add - -isv能通过该接口上传确认单明细数据 -*/ -type TaobaoFuwuSpBillreordAddAPIResponse struct { - model.CommonResponse - TaobaoFuwuSpBillreordAddResponse -} - -// 内购服务确认单明细上传接口 成功返回结果 -type TaobaoFuwuSpBillreordAddResponse struct { - XMLName xml.Name `xml:"fuwu_sp_billreord_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回调用结果 - AddResult bool `json:"add_result,omitempty" xml:"add_result,omitempty"` -} diff --git a/model/servicecenter/TaobaoFuwuSpConfirmApplyAPIRequest.go b/model/servicecenter/TaobaoFuwuSpConfirmApplyAPIRequest.go new file mode 100644 index 0000000000..489a7b3980 --- /dev/null +++ b/model/servicecenter/TaobaoFuwuSpConfirmApplyAPIRequest.go @@ -0,0 +1,52 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +内购服务确认单申请接口 API请求 +taobao.fuwu.sp.confirm.apply + +isv能通过该接口发起确认申请单 +*/ +type TaobaoFuwuSpConfirmApplyAPIRequest struct { + model.Params + // 确认单申请 + _paramIncomeConfirmDTO *IncomeConfirmDto +} + +// 初始化TaobaoFuwuSpConfirmApplyAPIRequest对象 +func NewTaobaoFuwuSpConfirmApplyRequest() *TaobaoFuwuSpConfirmApplyAPIRequest{ + return &TaobaoFuwuSpConfirmApplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFuwuSpConfirmApplyAPIRequest) GetApiMethodName() string { + return "taobao.fuwu.sp.confirm.apply" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFuwuSpConfirmApplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamIncomeConfirmDTO Setter +// 确认单申请 +func (r *TaobaoFuwuSpConfirmApplyAPIRequest) SetParamIncomeConfirmDTO(_paramIncomeConfirmDTO *IncomeConfirmDto) error { + r._paramIncomeConfirmDTO = _paramIncomeConfirmDTO + r.Set("param_income_confirm_d_t_o", _paramIncomeConfirmDTO) + return nil +} + +// ParamIncomeConfirmDTO Getter +func (r TaobaoFuwuSpConfirmApplyAPIRequest) GetParamIncomeConfirmDTO() *IncomeConfirmDto { + return r._paramIncomeConfirmDTO +} diff --git a/model/servicecenter/TaobaoFuwuSpConfirmApplyAPIResponse.go b/model/servicecenter/TaobaoFuwuSpConfirmApplyAPIResponse.go new file mode 100644 index 0000000000..740bbbd639 --- /dev/null +++ b/model/servicecenter/TaobaoFuwuSpConfirmApplyAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +内购服务确认单申请接口 API返回值 +taobao.fuwu.sp.confirm.apply + +isv能通过该接口发起确认申请单 +*/ +type TaobaoFuwuSpConfirmApplyAPIResponse struct { + model.CommonResponse + TaobaoFuwuSpConfirmApplyAPIResponseModel +} + +// 内购服务确认单申请接口 成功返回结果 +type TaobaoFuwuSpConfirmApplyAPIResponseModel struct { + XMLName xml.Name `xml:"fuwu_sp_confirm_apply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的是服务市场的确认单ID + ApplyResult int64 `json:"apply_result,omitempty" xml:"apply_result,omitempty"` +} diff --git a/model/servicecenter/TaobaoFuwuSpConfirmApplyResponse.go b/model/servicecenter/TaobaoFuwuSpConfirmApplyResponse.go deleted file mode 100644 index 486e5b749e..0000000000 --- a/model/servicecenter/TaobaoFuwuSpConfirmApplyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -内购服务确认单申请接口 API返回值 -taobao.fuwu.sp.confirm.apply - -isv能通过该接口发起确认申请单 -*/ -type TaobaoFuwuSpConfirmApplyAPIResponse struct { - model.CommonResponse - TaobaoFuwuSpConfirmApplyResponse -} - -// 内购服务确认单申请接口 成功返回结果 -type TaobaoFuwuSpConfirmApplyResponse struct { - XMLName xml.Name `xml:"fuwu_sp_confirm_apply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的是服务市场的确认单ID - ApplyResult int64 `json:"apply_result,omitempty" xml:"apply_result,omitempty"` -} diff --git a/model/servicecenter/TaobaoRecycleOfnpreredpacketGetAPIRequest.go b/model/servicecenter/TaobaoRecycleOfnpreredpacketGetAPIRequest.go new file mode 100644 index 0000000000..b0e8f4fc69 --- /dev/null +++ b/model/servicecenter/TaobaoRecycleOfnpreredpacketGetAPIRequest.go @@ -0,0 +1,52 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商查询前置补贴红包的最新数据 API请求 +taobao.recycle.ofnpreredpacket.get + +服务商查询前置补贴红包的最新数据 +*/ +type TaobaoRecycleOfnpreredpacketGetAPIRequest struct { + model.Params + // 旧机单id + _oldOrderId int64 +} + +// 初始化TaobaoRecycleOfnpreredpacketGetAPIRequest对象 +func NewTaobaoRecycleOfnpreredpacketGetRequest() *TaobaoRecycleOfnpreredpacketGetAPIRequest{ + return &TaobaoRecycleOfnpreredpacketGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRecycleOfnpreredpacketGetAPIRequest) GetApiMethodName() string { + return "taobao.recycle.ofnpreredpacket.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRecycleOfnpreredpacketGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OldOrderId Setter +// 旧机单id +func (r *TaobaoRecycleOfnpreredpacketGetAPIRequest) SetOldOrderId(_oldOrderId int64) error { + r._oldOrderId = _oldOrderId + r.Set("old_order_id", _oldOrderId) + return nil +} + +// OldOrderId Getter +func (r TaobaoRecycleOfnpreredpacketGetAPIRequest) GetOldOrderId() int64 { + return r._oldOrderId +} diff --git a/model/servicecenter/TaobaoRecycleOfnpreredpacketGetAPIResponse.go b/model/servicecenter/TaobaoRecycleOfnpreredpacketGetAPIResponse.go new file mode 100644 index 0000000000..40829de5c8 --- /dev/null +++ b/model/servicecenter/TaobaoRecycleOfnpreredpacketGetAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商查询前置补贴红包的最新数据 API返回值 +taobao.recycle.ofnpreredpacket.get + +服务商查询前置补贴红包的最新数据 +*/ +type TaobaoRecycleOfnpreredpacketGetAPIResponse struct { + model.CommonResponse + TaobaoRecycleOfnpreredpacketGetAPIResponseModel +} + +// 服务商查询前置补贴红包的最新数据 成功返回结果 +type TaobaoRecycleOfnpreredpacketGetAPIResponseModel struct { + XMLName xml.Name `xml:"recycle_ofnpreredpacket_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 前置补贴红包 + Data *OfnPreRedPacketDto `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/servicecenter/TaobaoRecycleOfnpreredpacketGetResponse.go b/model/servicecenter/TaobaoRecycleOfnpreredpacketGetResponse.go deleted file mode 100644 index b345ba1693..0000000000 --- a/model/servicecenter/TaobaoRecycleOfnpreredpacketGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商查询前置补贴红包的最新数据 API返回值 -taobao.recycle.ofnpreredpacket.get - -服务商查询前置补贴红包的最新数据 -*/ -type TaobaoRecycleOfnpreredpacketGetAPIResponse struct { - model.CommonResponse - TaobaoRecycleOfnpreredpacketGetResponse -} - -// 服务商查询前置补贴红包的最新数据 成功返回结果 -type TaobaoRecycleOfnpreredpacketGetResponse struct { - XMLName xml.Name `xml:"recycle_ofnpreredpacket_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 前置补贴红包 - Data *OfnPreRedPacketDto `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/servicecenter/TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIRequest.go b/model/servicecenter/TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIRequest.go new file mode 100644 index 0000000000..c0f4e9db71 --- /dev/null +++ b/model/servicecenter/TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIRequest.go @@ -0,0 +1,66 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +回收商同步前置补贴红包的代扣成功事件 API请求 +taobao.recycle.ofnpreredpacket.tpdeductsuccess + +回收商->天猫后端,同步前置补贴红包的代扣成功事件 +*/ +type TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIRequest struct { + model.Params + // 变化的金额 + _deductAmount int64 + // 旧机单id + _oldOrderId int64 +} + +// 初始化TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIRequest对象 +func NewTaobaoRecycleOfnpreredpacketTpdeductsuccessRequest() *TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIRequest{ + return &TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIRequest) GetApiMethodName() string { + return "taobao.recycle.ofnpreredpacket.tpdeductsuccess" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeductAmount Setter +// 变化的金额 +func (r *TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIRequest) SetDeductAmount(_deductAmount int64) error { + r._deductAmount = _deductAmount + r.Set("deduct_amount", _deductAmount) + return nil +} + +// DeductAmount Getter +func (r TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIRequest) GetDeductAmount() int64 { + return r._deductAmount +} +// OldOrderId Setter +// 旧机单id +func (r *TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIRequest) SetOldOrderId(_oldOrderId int64) error { + r._oldOrderId = _oldOrderId + r.Set("old_order_id", _oldOrderId) + return nil +} + +// OldOrderId Getter +func (r TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIRequest) GetOldOrderId() int64 { + return r._oldOrderId +} diff --git a/model/servicecenter/TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIResponse.go b/model/servicecenter/TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIResponse.go new file mode 100644 index 0000000000..a09587a61e --- /dev/null +++ b/model/servicecenter/TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +回收商同步前置补贴红包的代扣成功事件 API返回值 +taobao.recycle.ofnpreredpacket.tpdeductsuccess + +回收商->天猫后端,同步前置补贴红包的代扣成功事件 +*/ +type TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIResponse struct { + model.CommonResponse + TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIResponseModel +} + +// 回收商同步前置补贴红包的代扣成功事件 成功返回结果 +type TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIResponseModel struct { + XMLName xml.Name `xml:"recycle_ofnpreredpacket_tpdeductsuccess_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作 + Data *OfnPreRedPacketActionDto `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/servicecenter/TaobaoRecycleOfnpreredpacketTpdeductsuccessResponse.go b/model/servicecenter/TaobaoRecycleOfnpreredpacketTpdeductsuccessResponse.go deleted file mode 100644 index e7f04ab413..0000000000 --- a/model/servicecenter/TaobaoRecycleOfnpreredpacketTpdeductsuccessResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -回收商同步前置补贴红包的代扣成功事件 API返回值 -taobao.recycle.ofnpreredpacket.tpdeductsuccess - -回收商->天猫后端,同步前置补贴红包的代扣成功事件 -*/ -type TaobaoRecycleOfnpreredpacketTpdeductsuccessAPIResponse struct { - model.CommonResponse - TaobaoRecycleOfnpreredpacketTpdeductsuccessResponse -} - -// 回收商同步前置补贴红包的代扣成功事件 成功返回结果 -type TaobaoRecycleOfnpreredpacketTpdeductsuccessResponse struct { - XMLName xml.Name `xml:"recycle_ofnpreredpacket_tpdeductsuccess_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作 - Data *OfnPreRedPacketActionDto `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/servicecenter/TaobaoVasOrderSearchAPIRequest.go b/model/servicecenter/TaobaoVasOrderSearchAPIRequest.go new file mode 100644 index 0000000000..e34217da93 --- /dev/null +++ b/model/servicecenter/TaobaoVasOrderSearchAPIRequest.go @@ -0,0 +1,178 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单记录导出 API请求 +taobao.vas.order.search + +用于ISV查询自己名下的应用及收费项目的订单记录(已付款订单)。
建议用于查询前一日的历史记录,不适合用作实时数据查询。
现在只能查询90天以内的数据
该接口限制每分钟所有appkey调用总和只能有800次。 +*/ +type TaobaoVasOrderSearchAPIRequest struct { + model.Params + // 应用收费代码,从合作伙伴后台(my.open.taobao.com)-收费管理-收费项目列表 能够获得该应用的收费代码 + _articleCode string + // 收费项目代码,从合作伙伴后台(my.open.taobao.com)-收费管理-收费项目列表 能够获得收费项目代码 + _itemCode string + // 淘宝会员名 + _nick string + // 订单创建时间(订购时间)起始值(当start_created和end_created都不填写时,默认返回最近90天的数据) + _startCreated string + // 订单创建时间(订购时间)结束值 + _endCreated string + // 订单类型,1=新订 2=续订 3=升级 4=后台赠送 5=后台自动续订 6=订单审核后生成订购关系(暂时用不到) 空=全部 + _bizType int64 + // 订单号 + _bizOrderId int64 + // 子订单号 + _orderId int64 + // 一页包含的记录数 + _pageSize int64 + // 页码 + _pageNo int64 +} + +// 初始化TaobaoVasOrderSearchAPIRequest对象 +func NewTaobaoVasOrderSearchRequest() *TaobaoVasOrderSearchAPIRequest{ + return &TaobaoVasOrderSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVasOrderSearchAPIRequest) GetApiMethodName() string { + return "taobao.vas.order.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVasOrderSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ArticleCode Setter +// 应用收费代码,从合作伙伴后台(my.open.taobao.com)-收费管理-收费项目列表 能够获得该应用的收费代码 +func (r *TaobaoVasOrderSearchAPIRequest) SetArticleCode(_articleCode string) error { + r._articleCode = _articleCode + r.Set("article_code", _articleCode) + return nil +} + +// ArticleCode Getter +func (r TaobaoVasOrderSearchAPIRequest) GetArticleCode() string { + return r._articleCode +} +// ItemCode Setter +// 收费项目代码,从合作伙伴后台(my.open.taobao.com)-收费管理-收费项目列表 能够获得收费项目代码 +func (r *TaobaoVasOrderSearchAPIRequest) SetItemCode(_itemCode string) error { + r._itemCode = _itemCode + r.Set("item_code", _itemCode) + return nil +} + +// ItemCode Getter +func (r TaobaoVasOrderSearchAPIRequest) GetItemCode() string { + return r._itemCode +} +// Nick Setter +// 淘宝会员名 +func (r *TaobaoVasOrderSearchAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoVasOrderSearchAPIRequest) GetNick() string { + return r._nick +} +// StartCreated Setter +// 订单创建时间(订购时间)起始值(当start_created和end_created都不填写时,默认返回最近90天的数据) +func (r *TaobaoVasOrderSearchAPIRequest) SetStartCreated(_startCreated string) error { + r._startCreated = _startCreated + r.Set("start_created", _startCreated) + return nil +} + +// StartCreated Getter +func (r TaobaoVasOrderSearchAPIRequest) GetStartCreated() string { + return r._startCreated +} +// EndCreated Setter +// 订单创建时间(订购时间)结束值 +func (r *TaobaoVasOrderSearchAPIRequest) SetEndCreated(_endCreated string) error { + r._endCreated = _endCreated + r.Set("end_created", _endCreated) + return nil +} + +// EndCreated Getter +func (r TaobaoVasOrderSearchAPIRequest) GetEndCreated() string { + return r._endCreated +} +// BizType Setter +// 订单类型,1=新订 2=续订 3=升级 4=后台赠送 5=后台自动续订 6=订单审核后生成订购关系(暂时用不到) 空=全部 +func (r *TaobaoVasOrderSearchAPIRequest) SetBizType(_bizType int64) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TaobaoVasOrderSearchAPIRequest) GetBizType() int64 { + return r._bizType +} +// BizOrderId Setter +// 订单号 +func (r *TaobaoVasOrderSearchAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r TaobaoVasOrderSearchAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} +// OrderId Setter +// 子订单号 +func (r *TaobaoVasOrderSearchAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoVasOrderSearchAPIRequest) GetOrderId() int64 { + return r._orderId +} +// PageSize Setter +// 一页包含的记录数 +func (r *TaobaoVasOrderSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoVasOrderSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 页码 +func (r *TaobaoVasOrderSearchAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoVasOrderSearchAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/servicecenter/TaobaoVasOrderSearchAPIResponse.go b/model/servicecenter/TaobaoVasOrderSearchAPIResponse.go new file mode 100644 index 0000000000..890bfb977f --- /dev/null +++ b/model/servicecenter/TaobaoVasOrderSearchAPIResponse.go @@ -0,0 +1,29 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单记录导出 API返回值 +taobao.vas.order.search + +用于ISV查询自己名下的应用及收费项目的订单记录(已付款订单)。
建议用于查询前一日的历史记录,不适合用作实时数据查询。
现在只能查询90天以内的数据
该接口限制每分钟所有appkey调用总和只能有800次。 +*/ +type TaobaoVasOrderSearchAPIResponse struct { + model.CommonResponse + TaobaoVasOrderSearchAPIResponseModel +} + +// 订单记录导出 成功返回结果 +type TaobaoVasOrderSearchAPIResponseModel struct { + XMLName xml.Name `xml:"vas_order_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品订单对象 + ArticleBizOrders []ArticleBizOrder `json:"article_biz_orders,omitempty" xml:"article_biz_orders>article_biz_order,omitempty"` + // 总记录数 + TotalItem int64 `json:"total_item,omitempty" xml:"total_item,omitempty"` +} diff --git a/model/servicecenter/TaobaoVasOrderSearchResponse.go b/model/servicecenter/TaobaoVasOrderSearchResponse.go deleted file mode 100644 index 20f7129212..0000000000 --- a/model/servicecenter/TaobaoVasOrderSearchResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单记录导出 API返回值 -taobao.vas.order.search - -用于ISV查询自己名下的应用及收费项目的订单记录(已付款订单)。
建议用于查询前一日的历史记录,不适合用作实时数据查询。
现在只能查询90天以内的数据
该接口限制每分钟所有appkey调用总和只能有800次。 -*/ -type TaobaoVasOrderSearchAPIResponse struct { - model.CommonResponse - TaobaoVasOrderSearchResponse -} - -// 订单记录导出 成功返回结果 -type TaobaoVasOrderSearchResponse struct { - XMLName xml.Name `xml:"vas_order_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品订单对象 - ArticleBizOrders []ArticleBizOrder `json:"article_biz_orders,omitempty" xml:"article_biz_orders>article_biz_order,omitempty"` - // 总记录数 - TotalItem int64 `json:"total_item,omitempty" xml:"total_item,omitempty"` -} diff --git a/model/servicecenter/TaobaoVasServiceValidateAPIRequest.go b/model/servicecenter/TaobaoVasServiceValidateAPIRequest.go new file mode 100644 index 0000000000..11850e1e7e --- /dev/null +++ b/model/servicecenter/TaobaoVasServiceValidateAPIRequest.go @@ -0,0 +1,66 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +增值服务订购服务验证 API请求 +taobao.vas.service.validate + +增值服务订购服务验证 +*/ +type TaobaoVasServiceValidateAPIRequest struct { + model.Params + // 服务编码 + _servCode string + // 用户昵称 + _nick string +} + +// 初始化TaobaoVasServiceValidateAPIRequest对象 +func NewTaobaoVasServiceValidateRequest() *TaobaoVasServiceValidateAPIRequest{ + return &TaobaoVasServiceValidateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVasServiceValidateAPIRequest) GetApiMethodName() string { + return "taobao.vas.service.validate" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVasServiceValidateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServCode Setter +// 服务编码 +func (r *TaobaoVasServiceValidateAPIRequest) SetServCode(_servCode string) error { + r._servCode = _servCode + r.Set("serv_code", _servCode) + return nil +} + +// ServCode Getter +func (r TaobaoVasServiceValidateAPIRequest) GetServCode() string { + return r._servCode +} +// Nick Setter +// 用户昵称 +func (r *TaobaoVasServiceValidateAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoVasServiceValidateAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/servicecenter/TaobaoVasServiceValidateAPIResponse.go b/model/servicecenter/TaobaoVasServiceValidateAPIResponse.go new file mode 100644 index 0000000000..c792c145a3 --- /dev/null +++ b/model/servicecenter/TaobaoVasServiceValidateAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +增值服务订购服务验证 API返回值 +taobao.vas.service.validate + +增值服务订购服务验证 +*/ +type TaobaoVasServiceValidateAPIResponse struct { + model.CommonResponse + TaobaoVasServiceValidateAPIResponseModel +} + +// 增值服务订购服务验证 成功返回结果 +type TaobaoVasServiceValidateAPIResponseModel struct { + XMLName xml.Name `xml:"vas_service_validate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // none 没有订购,open 已经开通服务,freeze 服务已经冻结,close 服务已经关闭,error 系统错误 + Status string `json:"status,omitempty" xml:"status,omitempty"` +} diff --git a/model/servicecenter/TaobaoVasServiceValidateResponse.go b/model/servicecenter/TaobaoVasServiceValidateResponse.go deleted file mode 100644 index 8bc2e985a6..0000000000 --- a/model/servicecenter/TaobaoVasServiceValidateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -增值服务订购服务验证 API返回值 -taobao.vas.service.validate - -增值服务订购服务验证 -*/ -type TaobaoVasServiceValidateAPIResponse struct { - model.CommonResponse - TaobaoVasServiceValidateResponse -} - -// 增值服务订购服务验证 成功返回结果 -type TaobaoVasServiceValidateResponse struct { - XMLName xml.Name `xml:"vas_service_validate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // none 没有订购,open 已经开通服务,freeze 服务已经冻结,close 服务已经关闭,error 系统错误 - Status string `json:"status,omitempty" xml:"status,omitempty"` -} diff --git a/model/servicecenter/TaobaoVasSubscSearchAPIRequest.go b/model/servicecenter/TaobaoVasSubscSearchAPIRequest.go new file mode 100644 index 0000000000..c94f1eb94f --- /dev/null +++ b/model/servicecenter/TaobaoVasSubscSearchAPIRequest.go @@ -0,0 +1,178 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订购记录导出 API请求 +taobao.vas.subsc.search + +用于ISV查询自己名下的应用及收费项目的订购记录 +*/ +type TaobaoVasSubscSearchAPIRequest struct { + model.Params + // 一页包含的记录数 + _pageSize int64 + // 页码 + _pageNo int64 + // 应用收费代码,从合作伙伴后台(my.open.taobao.com)-收费管理-收费项目列表 能够获得该应用的收费代码 + _articleCode string + // 收费项目代码,从合作伙伴后台(my.open.taobao.com)-收费管理-收费项目列表 能够获得收费项目代码 + _itemCode string + // 到期时间起始值(当start_deadline和end_deadline都不填写时,默认返回最近90天的数据) + _startDeadline string + // 到期时间结束值 + _endDeadline string + // 订购记录状态,1=有效 2=过期 空=全部 + _status int64 + // 是否自动续费,true=自动续费 false=非自动续费 空=全部 + _autosub bool + // 是否到期提醒,true=到期提醒 false=非到期提醒 空=全部 + _expireNotice bool + // 淘宝会员名 + _nick string +} + +// 初始化TaobaoVasSubscSearchAPIRequest对象 +func NewTaobaoVasSubscSearchRequest() *TaobaoVasSubscSearchAPIRequest{ + return &TaobaoVasSubscSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVasSubscSearchAPIRequest) GetApiMethodName() string { + return "taobao.vas.subsc.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVasSubscSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageSize Setter +// 一页包含的记录数 +func (r *TaobaoVasSubscSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoVasSubscSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 页码 +func (r *TaobaoVasSubscSearchAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoVasSubscSearchAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// ArticleCode Setter +// 应用收费代码,从合作伙伴后台(my.open.taobao.com)-收费管理-收费项目列表 能够获得该应用的收费代码 +func (r *TaobaoVasSubscSearchAPIRequest) SetArticleCode(_articleCode string) error { + r._articleCode = _articleCode + r.Set("article_code", _articleCode) + return nil +} + +// ArticleCode Getter +func (r TaobaoVasSubscSearchAPIRequest) GetArticleCode() string { + return r._articleCode +} +// ItemCode Setter +// 收费项目代码,从合作伙伴后台(my.open.taobao.com)-收费管理-收费项目列表 能够获得收费项目代码 +func (r *TaobaoVasSubscSearchAPIRequest) SetItemCode(_itemCode string) error { + r._itemCode = _itemCode + r.Set("item_code", _itemCode) + return nil +} + +// ItemCode Getter +func (r TaobaoVasSubscSearchAPIRequest) GetItemCode() string { + return r._itemCode +} +// StartDeadline Setter +// 到期时间起始值(当start_deadline和end_deadline都不填写时,默认返回最近90天的数据) +func (r *TaobaoVasSubscSearchAPIRequest) SetStartDeadline(_startDeadline string) error { + r._startDeadline = _startDeadline + r.Set("start_deadline", _startDeadline) + return nil +} + +// StartDeadline Getter +func (r TaobaoVasSubscSearchAPIRequest) GetStartDeadline() string { + return r._startDeadline +} +// EndDeadline Setter +// 到期时间结束值 +func (r *TaobaoVasSubscSearchAPIRequest) SetEndDeadline(_endDeadline string) error { + r._endDeadline = _endDeadline + r.Set("end_deadline", _endDeadline) + return nil +} + +// EndDeadline Getter +func (r TaobaoVasSubscSearchAPIRequest) GetEndDeadline() string { + return r._endDeadline +} +// Status Setter +// 订购记录状态,1=有效 2=过期 空=全部 +func (r *TaobaoVasSubscSearchAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoVasSubscSearchAPIRequest) GetStatus() int64 { + return r._status +} +// Autosub Setter +// 是否自动续费,true=自动续费 false=非自动续费 空=全部 +func (r *TaobaoVasSubscSearchAPIRequest) SetAutosub(_autosub bool) error { + r._autosub = _autosub + r.Set("autosub", _autosub) + return nil +} + +// Autosub Getter +func (r TaobaoVasSubscSearchAPIRequest) GetAutosub() bool { + return r._autosub +} +// ExpireNotice Setter +// 是否到期提醒,true=到期提醒 false=非到期提醒 空=全部 +func (r *TaobaoVasSubscSearchAPIRequest) SetExpireNotice(_expireNotice bool) error { + r._expireNotice = _expireNotice + r.Set("expire_notice", _expireNotice) + return nil +} + +// ExpireNotice Getter +func (r TaobaoVasSubscSearchAPIRequest) GetExpireNotice() bool { + return r._expireNotice +} +// Nick Setter +// 淘宝会员名 +func (r *TaobaoVasSubscSearchAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoVasSubscSearchAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/servicecenter/TaobaoVasSubscSearchAPIResponse.go b/model/servicecenter/TaobaoVasSubscSearchAPIResponse.go new file mode 100644 index 0000000000..10fca219bd --- /dev/null +++ b/model/servicecenter/TaobaoVasSubscSearchAPIResponse.go @@ -0,0 +1,29 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订购记录导出 API返回值 +taobao.vas.subsc.search + +用于ISV查询自己名下的应用及收费项目的订购记录 +*/ +type TaobaoVasSubscSearchAPIResponse struct { + model.CommonResponse + TaobaoVasSubscSearchAPIResponseModel +} + +// 订购记录导出 成功返回结果 +type TaobaoVasSubscSearchAPIResponseModel struct { + XMLName xml.Name `xml:"vas_subsc_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订购关系对象 + ArticleSubs []ArticleSub `json:"article_subs,omitempty" xml:"article_subs>article_sub,omitempty"` + // 总记录数 + TotalItem int64 `json:"total_item,omitempty" xml:"total_item,omitempty"` +} diff --git a/model/servicecenter/TaobaoVasSubscSearchResponse.go b/model/servicecenter/TaobaoVasSubscSearchResponse.go deleted file mode 100644 index ddb800ef55..0000000000 --- a/model/servicecenter/TaobaoVasSubscSearchResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订购记录导出 API返回值 -taobao.vas.subsc.search - -用于ISV查询自己名下的应用及收费项目的订购记录 -*/ -type TaobaoVasSubscSearchAPIResponse struct { - model.CommonResponse - TaobaoVasSubscSearchResponse -} - -// 订购记录导出 成功返回结果 -type TaobaoVasSubscSearchResponse struct { - XMLName xml.Name `xml:"vas_subsc_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订购关系对象 - ArticleSubs []ArticleSub `json:"article_subs,omitempty" xml:"article_subs>article_sub,omitempty"` - // 总记录数 - TotalItem int64 `json:"total_item,omitempty" xml:"total_item,omitempty"` -} diff --git a/model/servicecenter/TaobaoVasSubscribeGetAPIRequest.go b/model/servicecenter/TaobaoVasSubscribeGetAPIRequest.go new file mode 100644 index 0000000000..60ea625c03 --- /dev/null +++ b/model/servicecenter/TaobaoVasSubscribeGetAPIRequest.go @@ -0,0 +1,66 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订购关系查询 API请求 +taobao.vas.subscribe.get + +用于ISV根据登录进来的淘宝会员名查询该为该会员开通哪些收费项目,ISV只能查询自己名下的应用及收费项目的订购情况 +*/ +type TaobaoVasSubscribeGetAPIRequest struct { + model.Params + // 商品编码,从合作伙伴后台(my.open.taobao.com)-收费管理-收费项目列表 能够获得该应用的商品代码 + _articleCode string + // 淘宝会员名 + _nick string +} + +// 初始化TaobaoVasSubscribeGetAPIRequest对象 +func NewTaobaoVasSubscribeGetRequest() *TaobaoVasSubscribeGetAPIRequest{ + return &TaobaoVasSubscribeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoVasSubscribeGetAPIRequest) GetApiMethodName() string { + return "taobao.vas.subscribe.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoVasSubscribeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ArticleCode Setter +// 商品编码,从合作伙伴后台(my.open.taobao.com)-收费管理-收费项目列表 能够获得该应用的商品代码 +func (r *TaobaoVasSubscribeGetAPIRequest) SetArticleCode(_articleCode string) error { + r._articleCode = _articleCode + r.Set("article_code", _articleCode) + return nil +} + +// ArticleCode Getter +func (r TaobaoVasSubscribeGetAPIRequest) GetArticleCode() string { + return r._articleCode +} +// Nick Setter +// 淘宝会员名 +func (r *TaobaoVasSubscribeGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoVasSubscribeGetAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/servicecenter/TaobaoVasSubscribeGetAPIResponse.go b/model/servicecenter/TaobaoVasSubscribeGetAPIResponse.go new file mode 100644 index 0000000000..8e008dd521 --- /dev/null +++ b/model/servicecenter/TaobaoVasSubscribeGetAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订购关系查询 API返回值 +taobao.vas.subscribe.get + +用于ISV根据登录进来的淘宝会员名查询该为该会员开通哪些收费项目,ISV只能查询自己名下的应用及收费项目的订购情况 +*/ +type TaobaoVasSubscribeGetAPIResponse struct { + model.CommonResponse + TaobaoVasSubscribeGetAPIResponseModel +} + +// 订购关系查询 成功返回结果 +type TaobaoVasSubscribeGetAPIResponseModel struct { + XMLName xml.Name `xml:"vas_subscribe_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 用户订购信息 + ArticleUserSubscribes []ArticleUserSubscribe `json:"article_user_subscribes,omitempty" xml:"article_user_subscribes>article_user_subscribe,omitempty"` +} diff --git a/model/servicecenter/TaobaoVasSubscribeGetResponse.go b/model/servicecenter/TaobaoVasSubscribeGetResponse.go deleted file mode 100644 index 2d62f53152..0000000000 --- a/model/servicecenter/TaobaoVasSubscribeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订购关系查询 API返回值 -taobao.vas.subscribe.get - -用于ISV根据登录进来的淘宝会员名查询该为该会员开通哪些收费项目,ISV只能查询自己名下的应用及收费项目的订购情况 -*/ -type TaobaoVasSubscribeGetAPIResponse struct { - model.CommonResponse - TaobaoVasSubscribeGetResponse -} - -// 订购关系查询 成功返回结果 -type TaobaoVasSubscribeGetResponse struct { - XMLName xml.Name `xml:"vas_subscribe_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 用户订购信息 - ArticleUserSubscribes []ArticleUserSubscribe `json:"article_user_subscribes,omitempty" xml:"article_user_subscribes>article_user_subscribe,omitempty"` -} diff --git a/model/servicecenter/TaobaoWeikeEserviceOrderGetAPIRequest.go b/model/servicecenter/TaobaoWeikeEserviceOrderGetAPIRequest.go new file mode 100644 index 0000000000..de6f1aeb17 --- /dev/null +++ b/model/servicecenter/TaobaoWeikeEserviceOrderGetAPIRequest.go @@ -0,0 +1,136 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +客服外包订单查询 API请求 +taobao.weike.eservice.order.get + +用于客服外包中服务商查询订单列表 +*/ +type TaobaoWeikeEserviceOrderGetAPIRequest struct { + model.Params + // 订单服务开始日期 + _startDate string + // 订单是否可以排班 + _schedulingState bool + // 商家昵称 + _sellerNick string + // 每页记录数(默认20,最大不超过20) + _pageSize int64 + // 订单服务结束日期 + _endDate string + // 订单ID列表,最大不超过20个(这个参数指定后,其它过滤条件失效) + _orderIdList []int64 + // 页码(默认为1) + _pageNum int64 +} + +// 初始化TaobaoWeikeEserviceOrderGetAPIRequest对象 +func NewTaobaoWeikeEserviceOrderGetRequest() *TaobaoWeikeEserviceOrderGetAPIRequest{ + return &TaobaoWeikeEserviceOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWeikeEserviceOrderGetAPIRequest) GetApiMethodName() string { + return "taobao.weike.eservice.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWeikeEserviceOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartDate Setter +// 订单服务开始日期 +func (r *TaobaoWeikeEserviceOrderGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoWeikeEserviceOrderGetAPIRequest) GetStartDate() string { + return r._startDate +} +// SchedulingState Setter +// 订单是否可以排班 +func (r *TaobaoWeikeEserviceOrderGetAPIRequest) SetSchedulingState(_schedulingState bool) error { + r._schedulingState = _schedulingState + r.Set("scheduling_state", _schedulingState) + return nil +} + +// SchedulingState Getter +func (r TaobaoWeikeEserviceOrderGetAPIRequest) GetSchedulingState() bool { + return r._schedulingState +} +// SellerNick Setter +// 商家昵称 +func (r *TaobaoWeikeEserviceOrderGetAPIRequest) SetSellerNick(_sellerNick string) error { + r._sellerNick = _sellerNick + r.Set("seller_nick", _sellerNick) + return nil +} + +// SellerNick Getter +func (r TaobaoWeikeEserviceOrderGetAPIRequest) GetSellerNick() string { + return r._sellerNick +} +// PageSize Setter +// 每页记录数(默认20,最大不超过20) +func (r *TaobaoWeikeEserviceOrderGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoWeikeEserviceOrderGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// EndDate Setter +// 订单服务结束日期 +func (r *TaobaoWeikeEserviceOrderGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoWeikeEserviceOrderGetAPIRequest) GetEndDate() string { + return r._endDate +} +// OrderIdList Setter +// 订单ID列表,最大不超过20个(这个参数指定后,其它过滤条件失效) +func (r *TaobaoWeikeEserviceOrderGetAPIRequest) SetOrderIdList(_orderIdList []int64) error { + r._orderIdList = _orderIdList + r.Set("order_id_list", _orderIdList) + return nil +} + +// OrderIdList Getter +func (r TaobaoWeikeEserviceOrderGetAPIRequest) GetOrderIdList() []int64 { + return r._orderIdList +} +// PageNum Setter +// 页码(默认为1) +func (r *TaobaoWeikeEserviceOrderGetAPIRequest) SetPageNum(_pageNum int64) error { + r._pageNum = _pageNum + r.Set("page_num", _pageNum) + return nil +} + +// PageNum Getter +func (r TaobaoWeikeEserviceOrderGetAPIRequest) GetPageNum() int64 { + return r._pageNum +} diff --git a/model/servicecenter/TaobaoWeikeEserviceOrderGetAPIResponse.go b/model/servicecenter/TaobaoWeikeEserviceOrderGetAPIResponse.go new file mode 100644 index 0000000000..0860bff179 --- /dev/null +++ b/model/servicecenter/TaobaoWeikeEserviceOrderGetAPIResponse.go @@ -0,0 +1,29 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +客服外包订单查询 API返回值 +taobao.weike.eservice.order.get + +用于客服外包中服务商查询订单列表 +*/ +type TaobaoWeikeEserviceOrderGetAPIResponse struct { + model.CommonResponse + TaobaoWeikeEserviceOrderGetAPIResponseModel +} + +// 客服外包订单查询 成功返回结果 +type TaobaoWeikeEserviceOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"weike_eservice_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 记录总记录数 + TotalSize int64 `json:"total_size,omitempty" xml:"total_size,omitempty"` + // 订单列表 + OrderList []Order `json:"order_list,omitempty" xml:"order_list>order,omitempty"` +} diff --git a/model/servicecenter/TaobaoWeikeEserviceOrderGetResponse.go b/model/servicecenter/TaobaoWeikeEserviceOrderGetResponse.go deleted file mode 100644 index c8cb10d966..0000000000 --- a/model/servicecenter/TaobaoWeikeEserviceOrderGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -客服外包订单查询 API返回值 -taobao.weike.eservice.order.get - -用于客服外包中服务商查询订单列表 -*/ -type TaobaoWeikeEserviceOrderGetAPIResponse struct { - model.CommonResponse - TaobaoWeikeEserviceOrderGetResponse -} - -// 客服外包订单查询 成功返回结果 -type TaobaoWeikeEserviceOrderGetResponse struct { - XMLName xml.Name `xml:"weike_eservice_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 记录总记录数 - TotalSize int64 `json:"total_size,omitempty" xml:"total_size,omitempty"` - // 订单列表 - OrderList []Order `json:"order_list,omitempty" xml:"order_list>order,omitempty"` -} diff --git a/model/servicecenter/TaobaoWeikeEserviceScheduleGetAPIRequest.go b/model/servicecenter/TaobaoWeikeEserviceScheduleGetAPIRequest.go new file mode 100644 index 0000000000..fe4b30a372 --- /dev/null +++ b/model/servicecenter/TaobaoWeikeEserviceScheduleGetAPIRequest.go @@ -0,0 +1,108 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +客服排班信息查询接口 API请求 +taobao.weike.eservice.schedule.get + +客服排班信息查询接口 +*/ +type TaobaoWeikeEserviceScheduleGetAPIRequest struct { + model.Params + // 订单ID,orderId、sellerNick、spNick三者不能同时为Null + _orderId int64 + // 商家子账号昵称,orderId、sellerNick、spNick三者不能同时为Null + _sellerNick string + // 服务商子账号昵称,orderId、sellerNick、spNick三者不能同时为Null + _spNick string + // 起始日期,起始日期和结束日期跨度不能超过31天 + _startDate string + // 结束日期,起始日期和结束日期跨度不能超过31天 + _endDate string +} + +// 初始化TaobaoWeikeEserviceScheduleGetAPIRequest对象 +func NewTaobaoWeikeEserviceScheduleGetRequest() *TaobaoWeikeEserviceScheduleGetAPIRequest{ + return &TaobaoWeikeEserviceScheduleGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWeikeEserviceScheduleGetAPIRequest) GetApiMethodName() string { + return "taobao.weike.eservice.schedule.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWeikeEserviceScheduleGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单ID,orderId、sellerNick、spNick三者不能同时为Null +func (r *TaobaoWeikeEserviceScheduleGetAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoWeikeEserviceScheduleGetAPIRequest) GetOrderId() int64 { + return r._orderId +} +// SellerNick Setter +// 商家子账号昵称,orderId、sellerNick、spNick三者不能同时为Null +func (r *TaobaoWeikeEserviceScheduleGetAPIRequest) SetSellerNick(_sellerNick string) error { + r._sellerNick = _sellerNick + r.Set("seller_nick", _sellerNick) + return nil +} + +// SellerNick Getter +func (r TaobaoWeikeEserviceScheduleGetAPIRequest) GetSellerNick() string { + return r._sellerNick +} +// SpNick Setter +// 服务商子账号昵称,orderId、sellerNick、spNick三者不能同时为Null +func (r *TaobaoWeikeEserviceScheduleGetAPIRequest) SetSpNick(_spNick string) error { + r._spNick = _spNick + r.Set("sp_nick", _spNick) + return nil +} + +// SpNick Getter +func (r TaobaoWeikeEserviceScheduleGetAPIRequest) GetSpNick() string { + return r._spNick +} +// StartDate Setter +// 起始日期,起始日期和结束日期跨度不能超过31天 +func (r *TaobaoWeikeEserviceScheduleGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoWeikeEserviceScheduleGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 结束日期,起始日期和结束日期跨度不能超过31天 +func (r *TaobaoWeikeEserviceScheduleGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoWeikeEserviceScheduleGetAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/servicecenter/TaobaoWeikeEserviceScheduleGetAPIResponse.go b/model/servicecenter/TaobaoWeikeEserviceScheduleGetAPIResponse.go new file mode 100644 index 0000000000..b2daed5c20 --- /dev/null +++ b/model/servicecenter/TaobaoWeikeEserviceScheduleGetAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +客服排班信息查询接口 API返回值 +taobao.weike.eservice.schedule.get + +客服排班信息查询接口 +*/ +type TaobaoWeikeEserviceScheduleGetAPIResponse struct { + model.CommonResponse + TaobaoWeikeEserviceScheduleGetAPIResponseModel +} + +// 客服排班信息查询接口 成功返回结果 +type TaobaoWeikeEserviceScheduleGetAPIResponseModel struct { + XMLName xml.Name `xml:"weike_eservice_schedule_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 排班信息查询结果 + Result *CsSchedulingWrapper `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TaobaoWeikeEserviceScheduleGetResponse.go b/model/servicecenter/TaobaoWeikeEserviceScheduleGetResponse.go deleted file mode 100644 index d3c3a4fe47..0000000000 --- a/model/servicecenter/TaobaoWeikeEserviceScheduleGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -客服排班信息查询接口 API返回值 -taobao.weike.eservice.schedule.get - -客服排班信息查询接口 -*/ -type TaobaoWeikeEserviceScheduleGetAPIResponse struct { - model.CommonResponse - TaobaoWeikeEserviceScheduleGetResponse -} - -// 客服排班信息查询接口 成功返回结果 -type TaobaoWeikeEserviceScheduleGetResponse struct { - XMLName xml.Name `xml:"weike_eservice_schedule_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 排班信息查询结果 - Result *CsSchedulingWrapper `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TaobaoWeikeEserviceSchedulePutAPIRequest.go b/model/servicecenter/TaobaoWeikeEserviceSchedulePutAPIRequest.go new file mode 100644 index 0000000000..05dca9b6ea --- /dev/null +++ b/model/servicecenter/TaobaoWeikeEserviceSchedulePutAPIRequest.go @@ -0,0 +1,66 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交客服排班信息 API请求 +taobao.weike.eservice.schedule.put + +添加、更新、删除排班信息 +*/ +type TaobaoWeikeEserviceSchedulePutAPIRequest struct { + model.Params + // 订单ID + _orderId int64 + // 按天排班信息 + _csSchedulings []CsSchedulingOneDayDto +} + +// 初始化TaobaoWeikeEserviceSchedulePutAPIRequest对象 +func NewTaobaoWeikeEserviceSchedulePutRequest() *TaobaoWeikeEserviceSchedulePutAPIRequest{ + return &TaobaoWeikeEserviceSchedulePutAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWeikeEserviceSchedulePutAPIRequest) GetApiMethodName() string { + return "taobao.weike.eservice.schedule.put" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWeikeEserviceSchedulePutAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单ID +func (r *TaobaoWeikeEserviceSchedulePutAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoWeikeEserviceSchedulePutAPIRequest) GetOrderId() int64 { + return r._orderId +} +// CsSchedulings Setter +// 按天排班信息 +func (r *TaobaoWeikeEserviceSchedulePutAPIRequest) SetCsSchedulings(_csSchedulings []CsSchedulingOneDayDto) error { + r._csSchedulings = _csSchedulings + r.Set("cs_schedulings", _csSchedulings) + return nil +} + +// CsSchedulings Getter +func (r TaobaoWeikeEserviceSchedulePutAPIRequest) GetCsSchedulings() []CsSchedulingOneDayDto { + return r._csSchedulings +} diff --git a/model/servicecenter/TaobaoWeikeEserviceSchedulePutAPIResponse.go b/model/servicecenter/TaobaoWeikeEserviceSchedulePutAPIResponse.go new file mode 100644 index 0000000000..0ff1577147 --- /dev/null +++ b/model/servicecenter/TaobaoWeikeEserviceSchedulePutAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交客服排班信息 API返回值 +taobao.weike.eservice.schedule.put + +添加、更新、删除排班信息 +*/ +type TaobaoWeikeEserviceSchedulePutAPIResponse struct { + model.CommonResponse + TaobaoWeikeEserviceSchedulePutAPIResponseModel +} + +// 提交客服排班信息 成功返回结果 +type TaobaoWeikeEserviceSchedulePutAPIResponseModel struct { + XMLName xml.Name `xml:"weike_eservice_schedule_put_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否执行成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TaobaoWeikeEserviceSchedulePutResponse.go b/model/servicecenter/TaobaoWeikeEserviceSchedulePutResponse.go deleted file mode 100644 index 25b61b2cd2..0000000000 --- a/model/servicecenter/TaobaoWeikeEserviceSchedulePutResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交客服排班信息 API返回值 -taobao.weike.eservice.schedule.put - -添加、更新、删除排班信息 -*/ -type TaobaoWeikeEserviceSchedulePutAPIResponse struct { - model.CommonResponse - TaobaoWeikeEserviceSchedulePutResponse -} - -// 提交客服排班信息 成功返回结果 -type TaobaoWeikeEserviceSchedulePutResponse struct { - XMLName xml.Name `xml:"weike_eservice_schedule_put_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否执行成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TaobaoWeikeEserviceSubusersGetAPIRequest.go b/model/servicecenter/TaobaoWeikeEserviceSubusersGetAPIRequest.go new file mode 100644 index 0000000000..acd746d499 --- /dev/null +++ b/model/servicecenter/TaobaoWeikeEserviceSubusersGetAPIRequest.go @@ -0,0 +1,52 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +客服外包订单分配的商家子账号列表 API请求 +taobao.weike.eservice.subusers.get + +获取客服外包订单分配的商家子账号列表,以及授权状态 +*/ +type TaobaoWeikeEserviceSubusersGetAPIRequest struct { + model.Params + // 订单ID + _orderId int64 +} + +// 初始化TaobaoWeikeEserviceSubusersGetAPIRequest对象 +func NewTaobaoWeikeEserviceSubusersGetRequest() *TaobaoWeikeEserviceSubusersGetAPIRequest{ + return &TaobaoWeikeEserviceSubusersGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWeikeEserviceSubusersGetAPIRequest) GetApiMethodName() string { + return "taobao.weike.eservice.subusers.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWeikeEserviceSubusersGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单ID +func (r *TaobaoWeikeEserviceSubusersGetAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoWeikeEserviceSubusersGetAPIRequest) GetOrderId() int64 { + return r._orderId +} diff --git a/model/servicecenter/TaobaoWeikeEserviceSubusersGetAPIResponse.go b/model/servicecenter/TaobaoWeikeEserviceSubusersGetAPIResponse.go new file mode 100644 index 0000000000..ee84b1c81d --- /dev/null +++ b/model/servicecenter/TaobaoWeikeEserviceSubusersGetAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +客服外包订单分配的商家子账号列表 API返回值 +taobao.weike.eservice.subusers.get + +获取客服外包订单分配的商家子账号列表,以及授权状态 +*/ +type TaobaoWeikeEserviceSubusersGetAPIResponse struct { + model.CommonResponse + TaobaoWeikeEserviceSubusersGetAPIResponseModel +} + +// 客服外包订单分配的商家子账号列表 成功返回结果 +type TaobaoWeikeEserviceSubusersGetAPIResponseModel struct { + XMLName xml.Name `xml:"weike_eservice_subusers_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商家子账号查询结果 + Result *AuthorizedAccountWrapper `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TaobaoWeikeEserviceSubusersGetResponse.go b/model/servicecenter/TaobaoWeikeEserviceSubusersGetResponse.go deleted file mode 100644 index 1944b9db8c..0000000000 --- a/model/servicecenter/TaobaoWeikeEserviceSubusersGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -客服外包订单分配的商家子账号列表 API返回值 -taobao.weike.eservice.subusers.get - -获取客服外包订单分配的商家子账号列表,以及授权状态 -*/ -type TaobaoWeikeEserviceSubusersGetAPIResponse struct { - model.CommonResponse - TaobaoWeikeEserviceSubusersGetResponse -} - -// 客服外包订单分配的商家子账号列表 成功返回结果 -type TaobaoWeikeEserviceSubusersGetResponse struct { - XMLName xml.Name `xml:"weike_eservice_subusers_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商家子账号查询结果 - Result *AuthorizedAccountWrapper `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TaobaoWeikePerformancePutAPIRequest.go b/model/servicecenter/TaobaoWeikePerformancePutAPIRequest.go new file mode 100644 index 0000000000..ca9dbae56e --- /dev/null +++ b/model/servicecenter/TaobaoWeikePerformancePutAPIRequest.go @@ -0,0 +1,66 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交客服绩效接口 API请求 +taobao.weike.performance.put + +提交客服绩效接口 +*/ +type TaobaoWeikePerformancePutAPIRequest struct { + model.Params + // 订单id + _id int64 + // 绩效数据封装类 + _perInfoWrapper *PerformanceInfoWrapper +} + +// 初始化TaobaoWeikePerformancePutAPIRequest对象 +func NewTaobaoWeikePerformancePutRequest() *TaobaoWeikePerformancePutAPIRequest{ + return &TaobaoWeikePerformancePutAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWeikePerformancePutAPIRequest) GetApiMethodName() string { + return "taobao.weike.performance.put" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWeikePerformancePutAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 订单id +func (r *TaobaoWeikePerformancePutAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TaobaoWeikePerformancePutAPIRequest) GetId() int64 { + return r._id +} +// PerInfoWrapper Setter +// 绩效数据封装类 +func (r *TaobaoWeikePerformancePutAPIRequest) SetPerInfoWrapper(_perInfoWrapper *PerformanceInfoWrapper) error { + r._perInfoWrapper = _perInfoWrapper + r.Set("per_info_wrapper", _perInfoWrapper) + return nil +} + +// PerInfoWrapper Getter +func (r TaobaoWeikePerformancePutAPIRequest) GetPerInfoWrapper() *PerformanceInfoWrapper { + return r._perInfoWrapper +} diff --git a/model/servicecenter/TaobaoWeikePerformancePutAPIResponse.go b/model/servicecenter/TaobaoWeikePerformancePutAPIResponse.go new file mode 100644 index 0000000000..fec015708b --- /dev/null +++ b/model/servicecenter/TaobaoWeikePerformancePutAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交客服绩效接口 API返回值 +taobao.weike.performance.put + +提交客服绩效接口 +*/ +type TaobaoWeikePerformancePutAPIResponse struct { + model.CommonResponse + TaobaoWeikePerformancePutAPIResponseModel +} + +// 提交客服绩效接口 成功返回结果 +type TaobaoWeikePerformancePutAPIResponseModel struct { + XMLName xml.Name `xml:"weike_performance_put_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TaobaoWeikePerformancePutResponse.go b/model/servicecenter/TaobaoWeikePerformancePutResponse.go deleted file mode 100644 index 465d21c9a4..0000000000 --- a/model/servicecenter/TaobaoWeikePerformancePutResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交客服绩效接口 API返回值 -taobao.weike.performance.put - -提交客服绩效接口 -*/ -type TaobaoWeikePerformancePutAPIResponse struct { - model.CommonResponse - TaobaoWeikePerformancePutResponse -} - -// 提交客服绩效接口 成功返回结果 -type TaobaoWeikePerformancePutResponse struct { - XMLName xml.Name `xml:"weike_performance_put_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TaobaoWeikeSubscinfoGetAPIRequest.go b/model/servicecenter/TaobaoWeikeSubscinfoGetAPIRequest.go new file mode 100644 index 0000000000..74d6961e29 --- /dev/null +++ b/model/servicecenter/TaobaoWeikeSubscinfoGetAPIRequest.go @@ -0,0 +1,94 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +需求订单查询接口 API请求 +taobao.weike.subscinfo.get + +需求订单查询接口 +*/ +type TaobaoWeikeSubscinfoGetAPIRequest struct { + model.Params + // 商家旺旺名称 + _sellerName string + // 时间范围开始时间 + _startTime string + // 时间范围结束时间 + _endTime string + // 页码 + _pageNum int64 +} + +// 初始化TaobaoWeikeSubscinfoGetAPIRequest对象 +func NewTaobaoWeikeSubscinfoGetRequest() *TaobaoWeikeSubscinfoGetAPIRequest{ + return &TaobaoWeikeSubscinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWeikeSubscinfoGetAPIRequest) GetApiMethodName() string { + return "taobao.weike.subscinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWeikeSubscinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SellerName Setter +// 商家旺旺名称 +func (r *TaobaoWeikeSubscinfoGetAPIRequest) SetSellerName(_sellerName string) error { + r._sellerName = _sellerName + r.Set("seller_name", _sellerName) + return nil +} + +// SellerName Getter +func (r TaobaoWeikeSubscinfoGetAPIRequest) GetSellerName() string { + return r._sellerName +} +// StartTime Setter +// 时间范围开始时间 +func (r *TaobaoWeikeSubscinfoGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoWeikeSubscinfoGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 时间范围结束时间 +func (r *TaobaoWeikeSubscinfoGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoWeikeSubscinfoGetAPIRequest) GetEndTime() string { + return r._endTime +} +// PageNum Setter +// 页码 +func (r *TaobaoWeikeSubscinfoGetAPIRequest) SetPageNum(_pageNum int64) error { + r._pageNum = _pageNum + r.Set("page_num", _pageNum) + return nil +} + +// PageNum Getter +func (r TaobaoWeikeSubscinfoGetAPIRequest) GetPageNum() int64 { + return r._pageNum +} diff --git a/model/servicecenter/TaobaoWeikeSubscinfoGetAPIResponse.go b/model/servicecenter/TaobaoWeikeSubscinfoGetAPIResponse.go new file mode 100644 index 0000000000..7d7150826c --- /dev/null +++ b/model/servicecenter/TaobaoWeikeSubscinfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +需求订单查询接口 API返回值 +taobao.weike.subscinfo.get + +需求订单查询接口 +*/ +type TaobaoWeikeSubscinfoGetAPIResponse struct { + model.CommonResponse + TaobaoWeikeSubscinfoGetAPIResponseModel +} + +// 需求订单查询接口 成功返回结果 +type TaobaoWeikeSubscinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"weike_subscinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *SubscInfoWrapper `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TaobaoWeikeSubscinfoGetResponse.go b/model/servicecenter/TaobaoWeikeSubscinfoGetResponse.go deleted file mode 100644 index b756d4affb..0000000000 --- a/model/servicecenter/TaobaoWeikeSubscinfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -需求订单查询接口 API返回值 -taobao.weike.subscinfo.get - -需求订单查询接口 -*/ -type TaobaoWeikeSubscinfoGetAPIResponse struct { - model.CommonResponse - TaobaoWeikeSubscinfoGetResponse -} - -// 需求订单查询接口 成功返回结果 -type TaobaoWeikeSubscinfoGetResponse struct { - XMLName xml.Name `xml:"weike_subscinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *SubscInfoWrapper `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TmallCarContractDownloadAPIRequest.go b/model/servicecenter/TmallCarContractDownloadAPIRequest.go new file mode 100644 index 0000000000..416998a941 --- /dev/null +++ b/model/servicecenter/TmallCarContractDownloadAPIRequest.go @@ -0,0 +1,67 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +合同下载 API请求 +tmall.car.contract.download + +目前天猫开新车会在线上签署一份合同,协议,需要一个个在已卖出打开,另存为pdf,人工一个个下载比较麻烦,期望通过接口直接读取pdf; +因为比较耗时,建议一个个下载,假设并发下载,很可能限流,每天的调用量有限; +*/ +type TmallCarContractDownloadAPIRequest struct { + model.Params + // 天猫订单号 + _orderId int64 + // 是否下载html,true是html,false是pdf, html速度会快一点 + _html bool +} + +// 初始化TmallCarContractDownloadAPIRequest对象 +func NewTmallCarContractDownloadRequest() *TmallCarContractDownloadAPIRequest{ + return &TmallCarContractDownloadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarContractDownloadAPIRequest) GetApiMethodName() string { + return "tmall.car.contract.download" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarContractDownloadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 天猫订单号 +func (r *TmallCarContractDownloadAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TmallCarContractDownloadAPIRequest) GetOrderId() int64 { + return r._orderId +} +// Html Setter +// 是否下载html,true是html,false是pdf, html速度会快一点 +func (r *TmallCarContractDownloadAPIRequest) SetHtml(_html bool) error { + r._html = _html + r.Set("html", _html) + return nil +} + +// Html Getter +func (r TmallCarContractDownloadAPIRequest) GetHtml() bool { + return r._html +} diff --git a/model/servicecenter/TmallCarContractDownloadAPIResponse.go b/model/servicecenter/TmallCarContractDownloadAPIResponse.go new file mode 100644 index 0000000000..8c2dae0c6f --- /dev/null +++ b/model/servicecenter/TmallCarContractDownloadAPIResponse.go @@ -0,0 +1,28 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +合同下载 API返回值 +tmall.car.contract.download + +目前天猫开新车会在线上签署一份合同,协议,需要一个个在已卖出打开,另存为pdf,人工一个个下载比较麻烦,期望通过接口直接读取pdf; +因为比较耗时,建议一个个下载,假设并发下载,很可能限流,每天的调用量有限; +*/ +type TmallCarContractDownloadAPIResponse struct { + model.CommonResponse + TmallCarContractDownloadAPIResponseModel +} + +// 合同下载 成功返回结果 +type TmallCarContractDownloadAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_contract_download_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TmallCarContractDownloadResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TmallCarContractDownloadResponse.go b/model/servicecenter/TmallCarContractDownloadResponse.go deleted file mode 100644 index 1d762d9486..0000000000 --- a/model/servicecenter/TmallCarContractDownloadResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -合同下载 API返回值 -tmall.car.contract.download - -目前天猫开新车会在线上签署一份合同,协议,需要一个个在已卖出打开,另存为pdf,人工一个个下载比较麻烦,期望通过接口直接读取pdf; -因为比较耗时,建议一个个下载,假设并发下载,很可能限流,每天的调用量有限; -*/ -type TmallCarContractDownloadAPIResponse struct { - model.CommonResponse - TmallCarContractDownloadResponse -} - -// 合同下载 成功返回结果 -type TmallCarContractDownloadResponse struct { - XMLName xml.Name `xml:"tmall_car_contract_download_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TmallCarContractDownloadResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TmallCarFpcarGetcarNotifyAPIRequest.go b/model/servicecenter/TmallCarFpcarGetcarNotifyAPIRequest.go new file mode 100644 index 0000000000..24509d2b35 --- /dev/null +++ b/model/servicecenter/TmallCarFpcarGetcarNotifyAPIRequest.go @@ -0,0 +1,80 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店通知用户提车 API请求 +tmall.car.fpcar.getcar.notify + +提供给外部(大搜或其它合作方)的接口-门店通知用户提车 +*/ +type TmallCarFpcarGetcarNotifyAPIRequest struct { + model.Params + // 商品宝贝id + _itemId int64 + // 订单id + _orderId int64 + // 卖家id + _sellerId int64 +} + +// 初始化TmallCarFpcarGetcarNotifyAPIRequest对象 +func NewTmallCarFpcarGetcarNotifyRequest() *TmallCarFpcarGetcarNotifyAPIRequest{ + return &TmallCarFpcarGetcarNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarFpcarGetcarNotifyAPIRequest) GetApiMethodName() string { + return "tmall.car.fpcar.getcar.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarFpcarGetcarNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品宝贝id +func (r *TmallCarFpcarGetcarNotifyAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallCarFpcarGetcarNotifyAPIRequest) GetItemId() int64 { + return r._itemId +} +// OrderId Setter +// 订单id +func (r *TmallCarFpcarGetcarNotifyAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TmallCarFpcarGetcarNotifyAPIRequest) GetOrderId() int64 { + return r._orderId +} +// SellerId Setter +// 卖家id +func (r *TmallCarFpcarGetcarNotifyAPIRequest) SetSellerId(_sellerId int64) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r TmallCarFpcarGetcarNotifyAPIRequest) GetSellerId() int64 { + return r._sellerId +} diff --git a/model/servicecenter/TmallCarFpcarGetcarNotifyAPIResponse.go b/model/servicecenter/TmallCarFpcarGetcarNotifyAPIResponse.go new file mode 100644 index 0000000000..7d8c61b069 --- /dev/null +++ b/model/servicecenter/TmallCarFpcarGetcarNotifyAPIResponse.go @@ -0,0 +1,33 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店通知用户提车 API返回值 +tmall.car.fpcar.getcar.notify + +提供给外部(大搜或其它合作方)的接口-门店通知用户提车 +*/ +type TmallCarFpcarGetcarNotifyAPIResponse struct { + model.CommonResponse + TmallCarFpcarGetcarNotifyAPIResponseModel +} + +// 门店通知用户提车 成功返回结果 +type TmallCarFpcarGetcarNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_fpcar_getcar_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的数据结果 + Object string `json:"object,omitempty" xml:"object,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 是否成功 + Succes bool `json:"succes,omitempty" xml:"succes,omitempty"` +} diff --git a/model/servicecenter/TmallCarFpcarGetcarNotifyResponse.go b/model/servicecenter/TmallCarFpcarGetcarNotifyResponse.go deleted file mode 100644 index 9b5e7a5313..0000000000 --- a/model/servicecenter/TmallCarFpcarGetcarNotifyResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店通知用户提车 API返回值 -tmall.car.fpcar.getcar.notify - -提供给外部(大搜或其它合作方)的接口-门店通知用户提车 -*/ -type TmallCarFpcarGetcarNotifyAPIResponse struct { - model.CommonResponse - TmallCarFpcarGetcarNotifyResponse -} - -// 门店通知用户提车 成功返回结果 -type TmallCarFpcarGetcarNotifyResponse struct { - XMLName xml.Name `xml:"tmall_car_fpcar_getcar_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的数据结果 - Object string `json:"object,omitempty" xml:"object,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 是否成功 - Succes bool `json:"succes,omitempty" xml:"succes,omitempty"` -} diff --git a/model/servicecenter/TmallCarFpcarRestpayReceiveAPIRequest.go b/model/servicecenter/TmallCarFpcarRestpayReceiveAPIRequest.go new file mode 100644 index 0000000000..d12938862a --- /dev/null +++ b/model/servicecenter/TmallCarFpcarRestpayReceiveAPIRequest.go @@ -0,0 +1,80 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店线下已收尾款 API请求 +tmall.car.fpcar.restpay.receive + +提供给外部(大搜或其它合作方)的接口-门店线下已收尾款(不执行分佣) +*/ +type TmallCarFpcarRestpayReceiveAPIRequest struct { + model.Params + // 卖家id + _sellerId int64 + // 订单id + _orderId int64 + // 商品宝贝id + _itemId int64 +} + +// 初始化TmallCarFpcarRestpayReceiveAPIRequest对象 +func NewTmallCarFpcarRestpayReceiveRequest() *TmallCarFpcarRestpayReceiveAPIRequest{ + return &TmallCarFpcarRestpayReceiveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarFpcarRestpayReceiveAPIRequest) GetApiMethodName() string { + return "tmall.car.fpcar.restpay.receive" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarFpcarRestpayReceiveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SellerId Setter +// 卖家id +func (r *TmallCarFpcarRestpayReceiveAPIRequest) SetSellerId(_sellerId int64) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r TmallCarFpcarRestpayReceiveAPIRequest) GetSellerId() int64 { + return r._sellerId +} +// OrderId Setter +// 订单id +func (r *TmallCarFpcarRestpayReceiveAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TmallCarFpcarRestpayReceiveAPIRequest) GetOrderId() int64 { + return r._orderId +} +// ItemId Setter +// 商品宝贝id +func (r *TmallCarFpcarRestpayReceiveAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallCarFpcarRestpayReceiveAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/servicecenter/TmallCarFpcarRestpayReceiveAPIResponse.go b/model/servicecenter/TmallCarFpcarRestpayReceiveAPIResponse.go new file mode 100644 index 0000000000..8eabe92792 --- /dev/null +++ b/model/servicecenter/TmallCarFpcarRestpayReceiveAPIResponse.go @@ -0,0 +1,33 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店线下已收尾款 API返回值 +tmall.car.fpcar.restpay.receive + +提供给外部(大搜或其它合作方)的接口-门店线下已收尾款(不执行分佣) +*/ +type TmallCarFpcarRestpayReceiveAPIResponse struct { + model.CommonResponse + TmallCarFpcarRestpayReceiveAPIResponseModel +} + +// 门店线下已收尾款 成功返回结果 +type TmallCarFpcarRestpayReceiveAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_fpcar_restpay_receive_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Succes bool `json:"succes,omitempty" xml:"succes,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // msgInfo + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 业务结果信息详细描述 + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/servicecenter/TmallCarFpcarRestpayReceiveResponse.go b/model/servicecenter/TmallCarFpcarRestpayReceiveResponse.go deleted file mode 100644 index 9273db37e0..0000000000 --- a/model/servicecenter/TmallCarFpcarRestpayReceiveResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店线下已收尾款 API返回值 -tmall.car.fpcar.restpay.receive - -提供给外部(大搜或其它合作方)的接口-门店线下已收尾款(不执行分佣) -*/ -type TmallCarFpcarRestpayReceiveAPIResponse struct { - model.CommonResponse - TmallCarFpcarRestpayReceiveResponse -} - -// 门店线下已收尾款 成功返回结果 -type TmallCarFpcarRestpayReceiveResponse struct { - XMLName xml.Name `xml:"tmall_car_fpcar_restpay_receive_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Succes bool `json:"succes,omitempty" xml:"succes,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // msgInfo - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 业务结果信息详细描述 - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/servicecenter/TmallCarLeaseConsumeAPIRequest.go b/model/servicecenter/TmallCarLeaseConsumeAPIRequest.go new file mode 100644 index 0000000000..244192d435 --- /dev/null +++ b/model/servicecenter/TmallCarLeaseConsumeAPIRequest.go @@ -0,0 +1,52 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车租赁核销 API请求 +tmall.car.lease.consume + +租赁公司回传信息,核销 +*/ +type TmallCarLeaseConsumeAPIRequest struct { + model.Params + // 核销请求 + _cosumeCodeReqDTO *CosumeCodeReqDto +} + +// 初始化TmallCarLeaseConsumeAPIRequest对象 +func NewTmallCarLeaseConsumeRequest() *TmallCarLeaseConsumeAPIRequest{ + return &TmallCarLeaseConsumeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarLeaseConsumeAPIRequest) GetApiMethodName() string { + return "tmall.car.lease.consume" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarLeaseConsumeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CosumeCodeReqDTO Setter +// 核销请求 +func (r *TmallCarLeaseConsumeAPIRequest) SetCosumeCodeReqDTO(_cosumeCodeReqDTO *CosumeCodeReqDto) error { + r._cosumeCodeReqDTO = _cosumeCodeReqDTO + r.Set("cosume_code_req_d_t_o", _cosumeCodeReqDTO) + return nil +} + +// CosumeCodeReqDTO Getter +func (r TmallCarLeaseConsumeAPIRequest) GetCosumeCodeReqDTO() *CosumeCodeReqDto { + return r._cosumeCodeReqDTO +} diff --git a/model/servicecenter/TmallCarLeaseConsumeAPIResponse.go b/model/servicecenter/TmallCarLeaseConsumeAPIResponse.go new file mode 100644 index 0000000000..4f73c98ccd --- /dev/null +++ b/model/servicecenter/TmallCarLeaseConsumeAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车租赁核销 API返回值 +tmall.car.lease.consume + +租赁公司回传信息,核销 +*/ +type TmallCarLeaseConsumeAPIResponse struct { + model.CommonResponse + TmallCarLeaseConsumeAPIResponseModel +} + +// 汽车租赁核销 成功返回结果 +type TmallCarLeaseConsumeAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_lease_consume_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果集合 + Result *TmallCarLeaseConsumeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TmallCarLeaseConsumeResponse.go b/model/servicecenter/TmallCarLeaseConsumeResponse.go deleted file mode 100644 index a66a601b10..0000000000 --- a/model/servicecenter/TmallCarLeaseConsumeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -汽车租赁核销 API返回值 -tmall.car.lease.consume - -租赁公司回传信息,核销 -*/ -type TmallCarLeaseConsumeAPIResponse struct { - model.CommonResponse - TmallCarLeaseConsumeResponse -} - -// 汽车租赁核销 成功返回结果 -type TmallCarLeaseConsumeResponse struct { - XMLName xml.Name `xml:"tmall_car_lease_consume_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果集合 - Result *TmallCarLeaseConsumeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TmallCarLeaseFreedownpaymentPutAPIRequest.go b/model/servicecenter/TmallCarLeaseFreedownpaymentPutAPIRequest.go new file mode 100644 index 0000000000..5bfd62f3b5 --- /dev/null +++ b/model/servicecenter/TmallCarLeaseFreedownpaymentPutAPIRequest.go @@ -0,0 +1,108 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同步直租车免首付商品活动信息 API请求 +tmall.car.lease.freedownpayment.put + +汽车行业直租车免首付需求中,用与对商品打标,活动范围设置,在消费者端商品详情页、订单等环节透出,表示该商品为直租免首付商品。 +*/ +type TmallCarLeaseFreedownpaymentPutAPIRequest struct { + model.Params + // 活动预热结束时间:格式:yyyy.MM.dd HH:mm:ss + _preEndTime string + // 活动预热开始时间:格式:yyyy.MM.dd HH:mm:ss + _preStartTime string + // 商品ID + _itemId int64 + // 活动时间范围节点(json格式字符串):
开始时间(startTime),格式:yyyy.MM.dd HH:mm:ss
结束时间(endTime),格式:yyyy.MM.dd HH:mm:ss
名额(amount) + _timeRangeList string + // 外部活动ID + _refActivityId string +} + +// 初始化TmallCarLeaseFreedownpaymentPutAPIRequest对象 +func NewTmallCarLeaseFreedownpaymentPutRequest() *TmallCarLeaseFreedownpaymentPutAPIRequest{ + return &TmallCarLeaseFreedownpaymentPutAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarLeaseFreedownpaymentPutAPIRequest) GetApiMethodName() string { + return "tmall.car.lease.freedownpayment.put" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarLeaseFreedownpaymentPutAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PreEndTime Setter +// 活动预热结束时间:格式:yyyy.MM.dd HH:mm:ss +func (r *TmallCarLeaseFreedownpaymentPutAPIRequest) SetPreEndTime(_preEndTime string) error { + r._preEndTime = _preEndTime + r.Set("pre_end_time", _preEndTime) + return nil +} + +// PreEndTime Getter +func (r TmallCarLeaseFreedownpaymentPutAPIRequest) GetPreEndTime() string { + return r._preEndTime +} +// PreStartTime Setter +// 活动预热开始时间:格式:yyyy.MM.dd HH:mm:ss +func (r *TmallCarLeaseFreedownpaymentPutAPIRequest) SetPreStartTime(_preStartTime string) error { + r._preStartTime = _preStartTime + r.Set("pre_start_time", _preStartTime) + return nil +} + +// PreStartTime Getter +func (r TmallCarLeaseFreedownpaymentPutAPIRequest) GetPreStartTime() string { + return r._preStartTime +} +// ItemId Setter +// 商品ID +func (r *TmallCarLeaseFreedownpaymentPutAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallCarLeaseFreedownpaymentPutAPIRequest) GetItemId() int64 { + return r._itemId +} +// TimeRangeList Setter +// 活动时间范围节点(json格式字符串):
开始时间(startTime),格式:yyyy.MM.dd HH:mm:ss
结束时间(endTime),格式:yyyy.MM.dd HH:mm:ss
名额(amount) +func (r *TmallCarLeaseFreedownpaymentPutAPIRequest) SetTimeRangeList(_timeRangeList string) error { + r._timeRangeList = _timeRangeList + r.Set("time_range_list", _timeRangeList) + return nil +} + +// TimeRangeList Getter +func (r TmallCarLeaseFreedownpaymentPutAPIRequest) GetTimeRangeList() string { + return r._timeRangeList +} +// RefActivityId Setter +// 外部活动ID +func (r *TmallCarLeaseFreedownpaymentPutAPIRequest) SetRefActivityId(_refActivityId string) error { + r._refActivityId = _refActivityId + r.Set("ref_activity_id", _refActivityId) + return nil +} + +// RefActivityId Getter +func (r TmallCarLeaseFreedownpaymentPutAPIRequest) GetRefActivityId() string { + return r._refActivityId +} diff --git a/model/servicecenter/TmallCarLeaseFreedownpaymentPutAPIResponse.go b/model/servicecenter/TmallCarLeaseFreedownpaymentPutAPIResponse.go new file mode 100644 index 0000000000..cc96b11bc9 --- /dev/null +++ b/model/servicecenter/TmallCarLeaseFreedownpaymentPutAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同步直租车免首付商品活动信息 API返回值 +tmall.car.lease.freedownpayment.put + +汽车行业直租车免首付需求中,用与对商品打标,活动范围设置,在消费者端商品详情页、订单等环节透出,表示该商品为直租免首付商品。 +*/ +type TmallCarLeaseFreedownpaymentPutAPIResponse struct { + model.CommonResponse + TmallCarLeaseFreedownpaymentPutAPIResponseModel +} + +// 同步直租车免首付商品活动信息 成功返回结果 +type TmallCarLeaseFreedownpaymentPutAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_lease_freedownpayment_put_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TmallCarLeaseFreedownpaymentPutResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TmallCarLeaseFreedownpaymentPutResponse.go b/model/servicecenter/TmallCarLeaseFreedownpaymentPutResponse.go deleted file mode 100644 index 8dcf6cbfcf..0000000000 --- a/model/servicecenter/TmallCarLeaseFreedownpaymentPutResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同步直租车免首付商品活动信息 API返回值 -tmall.car.lease.freedownpayment.put - -汽车行业直租车免首付需求中,用与对商品打标,活动范围设置,在消费者端商品详情页、订单等环节透出,表示该商品为直租免首付商品。 -*/ -type TmallCarLeaseFreedownpaymentPutAPIResponse struct { - model.CommonResponse - TmallCarLeaseFreedownpaymentPutResponse -} - -// 同步直租车免首付商品活动信息 成功返回结果 -type TmallCarLeaseFreedownpaymentPutResponse struct { - XMLName xml.Name `xml:"tmall_car_lease_freedownpayment_put_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TmallCarLeaseFreedownpaymentPutResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TmallCarLeaseItemActivityGetAPIRequest.go b/model/servicecenter/TmallCarLeaseItemActivityGetAPIRequest.go new file mode 100644 index 0000000000..40a90675d9 --- /dev/null +++ b/model/servicecenter/TmallCarLeaseItemActivityGetAPIRequest.go @@ -0,0 +1,38 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询汽车租赁活动信息 API请求 +tmall.car.lease.item.activity.get + +查询汽车租赁活动信息 +*/ +type TmallCarLeaseItemActivityGetAPIRequest struct { + model.Params +} + +// 初始化TmallCarLeaseItemActivityGetAPIRequest对象 +func NewTmallCarLeaseItemActivityGetRequest() *TmallCarLeaseItemActivityGetAPIRequest{ + return &TmallCarLeaseItemActivityGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarLeaseItemActivityGetAPIRequest) GetApiMethodName() string { + return "tmall.car.lease.item.activity.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarLeaseItemActivityGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/servicecenter/TmallCarLeaseItemActivityGetAPIResponse.go b/model/servicecenter/TmallCarLeaseItemActivityGetAPIResponse.go new file mode 100644 index 0000000000..894890da93 --- /dev/null +++ b/model/servicecenter/TmallCarLeaseItemActivityGetAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询汽车租赁活动信息 API返回值 +tmall.car.lease.item.activity.get + +查询汽车租赁活动信息 +*/ +type TmallCarLeaseItemActivityGetAPIResponse struct { + model.CommonResponse + TmallCarLeaseItemActivityGetAPIResponseModel +} + +// 查询汽车租赁活动信息 成功返回结果 +type TmallCarLeaseItemActivityGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_lease_item_activity_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + Result *TmallCarLeaseItemActivityGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TmallCarLeaseItemActivityGetResponse.go b/model/servicecenter/TmallCarLeaseItemActivityGetResponse.go deleted file mode 100644 index d7114809ce..0000000000 --- a/model/servicecenter/TmallCarLeaseItemActivityGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询汽车租赁活动信息 API返回值 -tmall.car.lease.item.activity.get - -查询汽车租赁活动信息 -*/ -type TmallCarLeaseItemActivityGetAPIResponse struct { - model.CommonResponse - TmallCarLeaseItemActivityGetResponse -} - -// 查询汽车租赁活动信息 成功返回结果 -type TmallCarLeaseItemActivityGetResponse struct { - XMLName xml.Name `xml:"tmall_car_lease_item_activity_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - Result *TmallCarLeaseItemActivityGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TmallCarLeaseItemcarinfoAPIRequest.go b/model/servicecenter/TmallCarLeaseItemcarinfoAPIRequest.go new file mode 100644 index 0000000000..e95fc3f8e3 --- /dev/null +++ b/model/servicecenter/TmallCarLeaseItemcarinfoAPIRequest.go @@ -0,0 +1,52 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +整车租赁商品四级车型信息 API请求 +tmall.car.lease.itemcarinfo + +整车租赁项目发布宝贝需要4级车型库,4级车型库信息需要回传 +*/ +type TmallCarLeaseItemcarinfoAPIRequest struct { + model.Params + // 商品id + _itemId int64 +} + +// 初始化TmallCarLeaseItemcarinfoAPIRequest对象 +func NewTmallCarLeaseItemcarinfoRequest() *TmallCarLeaseItemcarinfoAPIRequest{ + return &TmallCarLeaseItemcarinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarLeaseItemcarinfoAPIRequest) GetApiMethodName() string { + return "tmall.car.lease.itemcarinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarLeaseItemcarinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TmallCarLeaseItemcarinfoAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallCarLeaseItemcarinfoAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/servicecenter/TmallCarLeaseItemcarinfoAPIResponse.go b/model/servicecenter/TmallCarLeaseItemcarinfoAPIResponse.go new file mode 100644 index 0000000000..cab7e74b77 --- /dev/null +++ b/model/servicecenter/TmallCarLeaseItemcarinfoAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +整车租赁商品四级车型信息 API返回值 +tmall.car.lease.itemcarinfo + +整车租赁项目发布宝贝需要4级车型库,4级车型库信息需要回传 +*/ +type TmallCarLeaseItemcarinfoAPIResponse struct { + model.CommonResponse + TmallCarLeaseItemcarinfoAPIResponseModel +} + +// 整车租赁商品四级车型信息 成功返回结果 +type TmallCarLeaseItemcarinfoAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_lease_itemcarinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallCarLeaseItemcarinfoResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TmallCarLeaseItemcarinfoResponse.go b/model/servicecenter/TmallCarLeaseItemcarinfoResponse.go deleted file mode 100644 index bd843bee5e..0000000000 --- a/model/servicecenter/TmallCarLeaseItemcarinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -整车租赁商品四级车型信息 API返回值 -tmall.car.lease.itemcarinfo - -整车租赁项目发布宝贝需要4级车型库,4级车型库信息需要回传 -*/ -type TmallCarLeaseItemcarinfoAPIResponse struct { - model.CommonResponse - TmallCarLeaseItemcarinfoResponse -} - -// 整车租赁商品四级车型信息 成功返回结果 -type TmallCarLeaseItemcarinfoResponse struct { - XMLName xml.Name `xml:"tmall_car_lease_itemcarinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallCarLeaseItemcarinfoResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TmallCarLeaseReserveAPIRequest.go b/model/servicecenter/TmallCarLeaseReserveAPIRequest.go new file mode 100644 index 0000000000..f61abaf473 --- /dev/null +++ b/model/servicecenter/TmallCarLeaseReserveAPIRequest.go @@ -0,0 +1,122 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +整车租车回传预约信息 API请求 +tmall.car.lease.reserve + +租赁公司回传预约到店信息 +*/ +type TmallCarLeaseReserveAPIRequest struct { + model.Params + // 买家id + _buyerId int64 + // 订单id + _orderId int64 + // 文案 + _text string + // 车架号 + _vin string + // 1 代表 车辆到店,已预约用户到店提车 ; 2 车辆到店,未能联系到用户 + _flag int64 + // 买家昵称 + _buyerNick string +} + +// 初始化TmallCarLeaseReserveAPIRequest对象 +func NewTmallCarLeaseReserveRequest() *TmallCarLeaseReserveAPIRequest{ + return &TmallCarLeaseReserveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarLeaseReserveAPIRequest) GetApiMethodName() string { + return "tmall.car.lease.reserve" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarLeaseReserveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BuyerId Setter +// 买家id +func (r *TmallCarLeaseReserveAPIRequest) SetBuyerId(_buyerId int64) error { + r._buyerId = _buyerId + r.Set("buyer_id", _buyerId) + return nil +} + +// BuyerId Getter +func (r TmallCarLeaseReserveAPIRequest) GetBuyerId() int64 { + return r._buyerId +} +// OrderId Setter +// 订单id +func (r *TmallCarLeaseReserveAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TmallCarLeaseReserveAPIRequest) GetOrderId() int64 { + return r._orderId +} +// Text Setter +// 文案 +func (r *TmallCarLeaseReserveAPIRequest) SetText(_text string) error { + r._text = _text + r.Set("text", _text) + return nil +} + +// Text Getter +func (r TmallCarLeaseReserveAPIRequest) GetText() string { + return r._text +} +// Vin Setter +// 车架号 +func (r *TmallCarLeaseReserveAPIRequest) SetVin(_vin string) error { + r._vin = _vin + r.Set("vin", _vin) + return nil +} + +// Vin Getter +func (r TmallCarLeaseReserveAPIRequest) GetVin() string { + return r._vin +} +// Flag Setter +// 1 代表 车辆到店,已预约用户到店提车 ; 2 车辆到店,未能联系到用户 +func (r *TmallCarLeaseReserveAPIRequest) SetFlag(_flag int64) error { + r._flag = _flag + r.Set("flag", _flag) + return nil +} + +// Flag Getter +func (r TmallCarLeaseReserveAPIRequest) GetFlag() int64 { + return r._flag +} +// BuyerNick Setter +// 买家昵称 +func (r *TmallCarLeaseReserveAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TmallCarLeaseReserveAPIRequest) GetBuyerNick() string { + return r._buyerNick +} diff --git a/model/servicecenter/TmallCarLeaseReserveAPIResponse.go b/model/servicecenter/TmallCarLeaseReserveAPIResponse.go new file mode 100644 index 0000000000..69e43f9b1b --- /dev/null +++ b/model/servicecenter/TmallCarLeaseReserveAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +整车租车回传预约信息 API返回值 +tmall.car.lease.reserve + +租赁公司回传预约到店信息 +*/ +type TmallCarLeaseReserveAPIResponse struct { + model.CommonResponse + TmallCarLeaseReserveAPIResponseModel +} + +// 整车租车回传预约信息 成功返回结果 +type TmallCarLeaseReserveAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_lease_reserve_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TmallCarLeaseReserveResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TmallCarLeaseReserveResponse.go b/model/servicecenter/TmallCarLeaseReserveResponse.go deleted file mode 100644 index c9a7a415c6..0000000000 --- a/model/servicecenter/TmallCarLeaseReserveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -整车租车回传预约信息 API返回值 -tmall.car.lease.reserve - -租赁公司回传预约到店信息 -*/ -type TmallCarLeaseReserveAPIResponse struct { - model.CommonResponse - TmallCarLeaseReserveResponse -} - -// 整车租车回传预约信息 成功返回结果 -type TmallCarLeaseReserveResponse struct { - XMLName xml.Name `xml:"tmall_car_lease_reserve_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TmallCarLeaseReserveResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TmallCarLeaseRiskcallbackAPIRequest.go b/model/servicecenter/TmallCarLeaseRiskcallbackAPIRequest.go new file mode 100644 index 0000000000..8430e50383 --- /dev/null +++ b/model/servicecenter/TmallCarLeaseRiskcallbackAPIRequest.go @@ -0,0 +1,52 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +整车租赁风控模型回调 API请求 +tmall.car.lease.riskcallback + +租赁公司回调风控结果 +*/ +type TmallCarLeaseRiskcallbackAPIRequest struct { + model.Params + // 授信结果 + _creditInfo *CreditInfoTopDto +} + +// 初始化TmallCarLeaseRiskcallbackAPIRequest对象 +func NewTmallCarLeaseRiskcallbackRequest() *TmallCarLeaseRiskcallbackAPIRequest{ + return &TmallCarLeaseRiskcallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarLeaseRiskcallbackAPIRequest) GetApiMethodName() string { + return "tmall.car.lease.riskcallback" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarLeaseRiskcallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CreditInfo Setter +// 授信结果 +func (r *TmallCarLeaseRiskcallbackAPIRequest) SetCreditInfo(_creditInfo *CreditInfoTopDto) error { + r._creditInfo = _creditInfo + r.Set("credit_info", _creditInfo) + return nil +} + +// CreditInfo Getter +func (r TmallCarLeaseRiskcallbackAPIRequest) GetCreditInfo() *CreditInfoTopDto { + return r._creditInfo +} diff --git a/model/servicecenter/TmallCarLeaseRiskcallbackAPIResponse.go b/model/servicecenter/TmallCarLeaseRiskcallbackAPIResponse.go new file mode 100644 index 0000000000..f95d30751f --- /dev/null +++ b/model/servicecenter/TmallCarLeaseRiskcallbackAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +整车租赁风控模型回调 API返回值 +tmall.car.lease.riskcallback + +租赁公司回调风控结果 +*/ +type TmallCarLeaseRiskcallbackAPIResponse struct { + model.CommonResponse + TmallCarLeaseRiskcallbackAPIResponseModel +} + +// 整车租赁风控模型回调 成功返回结果 +type TmallCarLeaseRiskcallbackAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_lease_riskcallback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果集合 + Result *TmallCarLeaseRiskcallbackResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TmallCarLeaseRiskcallbackResponse.go b/model/servicecenter/TmallCarLeaseRiskcallbackResponse.go deleted file mode 100644 index a7f35bdba3..0000000000 --- a/model/servicecenter/TmallCarLeaseRiskcallbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -整车租赁风控模型回调 API返回值 -tmall.car.lease.riskcallback - -租赁公司回调风控结果 -*/ -type TmallCarLeaseRiskcallbackAPIResponse struct { - model.CommonResponse - TmallCarLeaseRiskcallbackResponse -} - -// 整车租赁风控模型回调 成功返回结果 -type TmallCarLeaseRiskcallbackResponse struct { - XMLName xml.Name `xml:"tmall_car_lease_riskcallback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果集合 - Result *TmallCarLeaseRiskcallbackResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TmallCarLeaseSynchronizeplansAPIRequest.go b/model/servicecenter/TmallCarLeaseSynchronizeplansAPIRequest.go new file mode 100644 index 0000000000..a14bf5f620 --- /dev/null +++ b/model/servicecenter/TmallCarLeaseSynchronizeplansAPIRequest.go @@ -0,0 +1,66 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同步租赁方案 API请求 +tmall.car.lease.synchronizeplans + +租赁公司同步还款计划 +*/ +type TmallCarLeaseSynchronizeplansAPIRequest struct { + model.Params + // 商品id + _itemId int64 + // 租赁计划 + _plans []CarLeasePlanDo +} + +// 初始化TmallCarLeaseSynchronizeplansAPIRequest对象 +func NewTmallCarLeaseSynchronizeplansRequest() *TmallCarLeaseSynchronizeplansAPIRequest{ + return &TmallCarLeaseSynchronizeplansAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarLeaseSynchronizeplansAPIRequest) GetApiMethodName() string { + return "tmall.car.lease.synchronizeplans" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarLeaseSynchronizeplansAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TmallCarLeaseSynchronizeplansAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallCarLeaseSynchronizeplansAPIRequest) GetItemId() int64 { + return r._itemId +} +// Plans Setter +// 租赁计划 +func (r *TmallCarLeaseSynchronizeplansAPIRequest) SetPlans(_plans []CarLeasePlanDo) error { + r._plans = _plans + r.Set("plans", _plans) + return nil +} + +// Plans Getter +func (r TmallCarLeaseSynchronizeplansAPIRequest) GetPlans() []CarLeasePlanDo { + return r._plans +} diff --git a/model/servicecenter/TmallCarLeaseSynchronizeplansAPIResponse.go b/model/servicecenter/TmallCarLeaseSynchronizeplansAPIResponse.go new file mode 100644 index 0000000000..c29464abf1 --- /dev/null +++ b/model/servicecenter/TmallCarLeaseSynchronizeplansAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同步租赁方案 API返回值 +tmall.car.lease.synchronizeplans + +租赁公司同步还款计划 +*/ +type TmallCarLeaseSynchronizeplansAPIResponse struct { + model.CommonResponse + TmallCarLeaseSynchronizeplansAPIResponseModel +} + +// 同步租赁方案 成功返回结果 +type TmallCarLeaseSynchronizeplansAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_lease_synchronizeplans_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 如果success为true,表示成功,如果success为false,需要获取msg_code,msg_info,具体的错误码文档提供 + Result *TmallCarLeaseSynchronizeplansResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TmallCarLeaseSynchronizeplansResponse.go b/model/servicecenter/TmallCarLeaseSynchronizeplansResponse.go deleted file mode 100644 index 2708e0dbaf..0000000000 --- a/model/servicecenter/TmallCarLeaseSynchronizeplansResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同步租赁方案 API返回值 -tmall.car.lease.synchronizeplans - -租赁公司同步还款计划 -*/ -type TmallCarLeaseSynchronizeplansAPIResponse struct { - model.CommonResponse - TmallCarLeaseSynchronizeplansResponse -} - -// 同步租赁方案 成功返回结果 -type TmallCarLeaseSynchronizeplansResponse struct { - XMLName xml.Name `xml:"tmall_car_lease_synchronizeplans_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 如果success为true,表示成功,如果success为false,需要获取msg_code,msg_info,具体的错误码文档提供 - Result *TmallCarLeaseSynchronizeplansResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TmallCarLeaseTailpaymentbackAPIRequest.go b/model/servicecenter/TmallCarLeaseTailpaymentbackAPIRequest.go new file mode 100644 index 0000000000..0b1f6604b9 --- /dev/null +++ b/model/servicecenter/TmallCarLeaseTailpaymentbackAPIRequest.go @@ -0,0 +1,52 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +尾款处置方案回传 API请求 +tmall.car.lease.tailpaymentback + +尾款处置方案回传 +*/ +type TmallCarLeaseTailpaymentbackAPIRequest struct { + model.Params + // 尾款方案 + _tailPaymentDTO *TailPaymentDto +} + +// 初始化TmallCarLeaseTailpaymentbackAPIRequest对象 +func NewTmallCarLeaseTailpaymentbackRequest() *TmallCarLeaseTailpaymentbackAPIRequest{ + return &TmallCarLeaseTailpaymentbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarLeaseTailpaymentbackAPIRequest) GetApiMethodName() string { + return "tmall.car.lease.tailpaymentback" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarLeaseTailpaymentbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TailPaymentDTO Setter +// 尾款方案 +func (r *TmallCarLeaseTailpaymentbackAPIRequest) SetTailPaymentDTO(_tailPaymentDTO *TailPaymentDto) error { + r._tailPaymentDTO = _tailPaymentDTO + r.Set("tail_payment_d_t_o", _tailPaymentDTO) + return nil +} + +// TailPaymentDTO Getter +func (r TmallCarLeaseTailpaymentbackAPIRequest) GetTailPaymentDTO() *TailPaymentDto { + return r._tailPaymentDTO +} diff --git a/model/servicecenter/TmallCarLeaseTailpaymentbackAPIResponse.go b/model/servicecenter/TmallCarLeaseTailpaymentbackAPIResponse.go new file mode 100644 index 0000000000..765585a819 --- /dev/null +++ b/model/servicecenter/TmallCarLeaseTailpaymentbackAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +尾款处置方案回传 API返回值 +tmall.car.lease.tailpaymentback + +尾款处置方案回传 +*/ +type TmallCarLeaseTailpaymentbackAPIResponse struct { + model.CommonResponse + TmallCarLeaseTailpaymentbackAPIResponseModel +} + +// 尾款处置方案回传 成功返回结果 +type TmallCarLeaseTailpaymentbackAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_lease_tailpaymentback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallCarLeaseTailpaymentbackResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TmallCarLeaseTailpaymentbackResponse.go b/model/servicecenter/TmallCarLeaseTailpaymentbackResponse.go deleted file mode 100644 index 6a8ca98ba9..0000000000 --- a/model/servicecenter/TmallCarLeaseTailpaymentbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -尾款处置方案回传 API返回值 -tmall.car.lease.tailpaymentback - -尾款处置方案回传 -*/ -type TmallCarLeaseTailpaymentbackAPIResponse struct { - model.CommonResponse - TmallCarLeaseTailpaymentbackResponse -} - -// 尾款处置方案回传 成功返回结果 -type TmallCarLeaseTailpaymentbackResponse struct { - XMLName xml.Name `xml:"tmall_car_lease_tailpaymentback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallCarLeaseTailpaymentbackResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TmallCarLeaseorderGetAPIRequest.go b/model/servicecenter/TmallCarLeaseorderGetAPIRequest.go new file mode 100644 index 0000000000..ee4849a143 --- /dev/null +++ b/model/servicecenter/TmallCarLeaseorderGetAPIRequest.go @@ -0,0 +1,52 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取租赁订单信息 API请求 +tmall.car.leaseorder.get + +卖家通过供销平台获取代销商的订单信息,但是部分情况下网商银行订单号获取不到,需要提供接口或者工具给卖家 +*/ +type TmallCarLeaseorderGetAPIRequest struct { + model.Params + // 订单号 + _orderId int64 +} + +// 初始化TmallCarLeaseorderGetAPIRequest对象 +func NewTmallCarLeaseorderGetRequest() *TmallCarLeaseorderGetAPIRequest{ + return &TmallCarLeaseorderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarLeaseorderGetAPIRequest) GetApiMethodName() string { + return "tmall.car.leaseorder.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarLeaseorderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单号 +func (r *TmallCarLeaseorderGetAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TmallCarLeaseorderGetAPIRequest) GetOrderId() int64 { + return r._orderId +} diff --git a/model/servicecenter/TmallCarLeaseorderGetAPIResponse.go b/model/servicecenter/TmallCarLeaseorderGetAPIResponse.go new file mode 100644 index 0000000000..dee7582d82 --- /dev/null +++ b/model/servicecenter/TmallCarLeaseorderGetAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取租赁订单信息 API返回值 +tmall.car.leaseorder.get + +卖家通过供销平台获取代销商的订单信息,但是部分情况下网商银行订单号获取不到,需要提供接口或者工具给卖家 +*/ +type TmallCarLeaseorderGetAPIResponse struct { + model.CommonResponse + TmallCarLeaseorderGetAPIResponseModel +} + +// 获取租赁订单信息 成功返回结果 +type TmallCarLeaseorderGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_leaseorder_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TmallCarLeaseorderGetResponse.go b/model/servicecenter/TmallCarLeaseorderGetResponse.go deleted file mode 100644 index 0950aa8bb2..0000000000 --- a/model/servicecenter/TmallCarLeaseorderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取租赁订单信息 API返回值 -tmall.car.leaseorder.get - -卖家通过供销平台获取代销商的订单信息,但是部分情况下网商银行订单号获取不到,需要提供接口或者工具给卖家 -*/ -type TmallCarLeaseorderGetAPIResponse struct { - model.CommonResponse - TmallCarLeaseorderGetResponse -} - -// 获取租赁订单信息 成功返回结果 -type TmallCarLeaseorderGetResponse struct { - XMLName xml.Name `xml:"tmall_car_leaseorder_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TmallMsfReceiveAPIRequest.go b/model/servicecenter/TmallMsfReceiveAPIRequest.go new file mode 100644 index 0000000000..df0f95e34c --- /dev/null +++ b/model/servicecenter/TmallMsfReceiveAPIRequest.go @@ -0,0 +1,80 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +签收接口 API请求 +tmall.msf.receive + +签收接口 +*/ +type TmallMsfReceiveAPIRequest struct { + model.Params + // 1 + _shopId string + // 1 + _bizType string + // 1 + _code string +} + +// 初始化TmallMsfReceiveAPIRequest对象 +func NewTmallMsfReceiveRequest() *TmallMsfReceiveAPIRequest{ + return &TmallMsfReceiveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallMsfReceiveAPIRequest) GetApiMethodName() string { + return "tmall.msf.receive" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallMsfReceiveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShopId Setter +// 1 +func (r *TmallMsfReceiveAPIRequest) SetShopId(_shopId string) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r TmallMsfReceiveAPIRequest) GetShopId() string { + return r._shopId +} +// BizType Setter +// 1 +func (r *TmallMsfReceiveAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TmallMsfReceiveAPIRequest) GetBizType() string { + return r._bizType +} +// Code Setter +// 1 +func (r *TmallMsfReceiveAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r TmallMsfReceiveAPIRequest) GetCode() string { + return r._code +} diff --git a/model/servicecenter/TmallMsfReceiveAPIResponse.go b/model/servicecenter/TmallMsfReceiveAPIResponse.go new file mode 100644 index 0000000000..992e3eda4c --- /dev/null +++ b/model/servicecenter/TmallMsfReceiveAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +签收接口 API返回值 +tmall.msf.receive + +签收接口 +*/ +type TmallMsfReceiveAPIResponse struct { + model.CommonResponse + TmallMsfReceiveAPIResponseModel +} + +// 签收接口 成功返回结果 +type TmallMsfReceiveAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_msf_receive_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TmallMsfReceiveResponse.go b/model/servicecenter/TmallMsfReceiveResponse.go deleted file mode 100644 index 344022892e..0000000000 --- a/model/servicecenter/TmallMsfReceiveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -签收接口 API返回值 -tmall.msf.receive - -签收接口 -*/ -type TmallMsfReceiveAPIResponse struct { - model.CommonResponse - TmallMsfReceiveResponse -} - -// 签收接口 成功返回结果 -type TmallMsfReceiveResponse struct { - XMLName xml.Name `xml:"tmall_msf_receive_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TmallMsfVerifyAPIRequest.go b/model/servicecenter/TmallMsfVerifyAPIRequest.go new file mode 100644 index 0000000000..0bbe3bf891 --- /dev/null +++ b/model/servicecenter/TmallMsfVerifyAPIRequest.go @@ -0,0 +1,80 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +喵师傅核销接口 API请求 +tmall.msf.verify + +msf服务核销的top接口 +*/ +type TmallMsfVerifyAPIRequest struct { + model.Params + // 111 + _shopId string + // 111 + _bizType string + // 111 + _code string +} + +// 初始化TmallMsfVerifyAPIRequest对象 +func NewTmallMsfVerifyRequest() *TmallMsfVerifyAPIRequest{ + return &TmallMsfVerifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallMsfVerifyAPIRequest) GetApiMethodName() string { + return "tmall.msf.verify" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallMsfVerifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShopId Setter +// 111 +func (r *TmallMsfVerifyAPIRequest) SetShopId(_shopId string) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r TmallMsfVerifyAPIRequest) GetShopId() string { + return r._shopId +} +// BizType Setter +// 111 +func (r *TmallMsfVerifyAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TmallMsfVerifyAPIRequest) GetBizType() string { + return r._bizType +} +// Code Setter +// 111 +func (r *TmallMsfVerifyAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r TmallMsfVerifyAPIRequest) GetCode() string { + return r._code +} diff --git a/model/servicecenter/TmallMsfVerifyAPIResponse.go b/model/servicecenter/TmallMsfVerifyAPIResponse.go new file mode 100644 index 0000000000..929777797f --- /dev/null +++ b/model/servicecenter/TmallMsfVerifyAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +喵师傅核销接口 API返回值 +tmall.msf.verify + +msf服务核销的top接口 +*/ +type TmallMsfVerifyAPIResponse struct { + model.CommonResponse + TmallMsfVerifyAPIResponseModel +} + +// 喵师傅核销接口 成功返回结果 +type TmallMsfVerifyAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_msf_verify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TmallMsfVerifyResponse.go b/model/servicecenter/TmallMsfVerifyResponse.go deleted file mode 100644 index c42af70e09..0000000000 --- a/model/servicecenter/TmallMsfVerifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -喵师傅核销接口 API返回值 -tmall.msf.verify - -msf服务核销的top接口 -*/ -type TmallMsfVerifyAPIResponse struct { - model.CommonResponse - TmallMsfVerifyResponse -} - -// 喵师傅核销接口 成功返回结果 -type TmallMsfVerifyResponse struct { - XMLName xml.Name `xml:"tmall_msf_verify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TmallServiceSettleadjustmentSearchAPIRequest.go b/model/servicecenter/TmallServiceSettleadjustmentSearchAPIRequest.go new file mode 100644 index 0000000000..f9fdeed62f --- /dev/null +++ b/model/servicecenter/TmallServiceSettleadjustmentSearchAPIRequest.go @@ -0,0 +1,66 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商15分钟获取数据 API请求 +tmall.service.settleadjustment.search + +天猫服务平台,按修改时间,时间间隔在15中内(包含15分钟),获取调整单数据 +*/ +type TmallServiceSettleadjustmentSearchAPIRequest struct { + model.Params + // 结束时间 + _endTime string + // 开始时间 + _startTime string +} + +// 初始化TmallServiceSettleadjustmentSearchAPIRequest对象 +func NewTmallServiceSettleadjustmentSearchRequest() *TmallServiceSettleadjustmentSearchAPIRequest{ + return &TmallServiceSettleadjustmentSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServiceSettleadjustmentSearchAPIRequest) GetApiMethodName() string { + return "tmall.service.settleadjustment.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServiceSettleadjustmentSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EndTime Setter +// 结束时间 +func (r *TmallServiceSettleadjustmentSearchAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TmallServiceSettleadjustmentSearchAPIRequest) GetEndTime() string { + return r._endTime +} +// StartTime Setter +// 开始时间 +func (r *TmallServiceSettleadjustmentSearchAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TmallServiceSettleadjustmentSearchAPIRequest) GetStartTime() string { + return r._startTime +} diff --git a/model/servicecenter/TmallServiceSettleadjustmentSearchAPIResponse.go b/model/servicecenter/TmallServiceSettleadjustmentSearchAPIResponse.go new file mode 100644 index 0000000000..ed25275eae --- /dev/null +++ b/model/servicecenter/TmallServiceSettleadjustmentSearchAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商15分钟获取数据 API返回值 +tmall.service.settleadjustment.search + +天猫服务平台,按修改时间,时间间隔在15中内(包含15分钟),获取调整单数据 +*/ +type TmallServiceSettleadjustmentSearchAPIResponse struct { + model.CommonResponse + TmallServiceSettleadjustmentSearchAPIResponseModel +} + +// 服务商15分钟获取数据 成功返回结果 +type TmallServiceSettleadjustmentSearchAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_service_settleadjustment_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallServiceSettleadjustmentSearchResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TmallServiceSettleadjustmentSearchResponse.go b/model/servicecenter/TmallServiceSettleadjustmentSearchResponse.go deleted file mode 100644 index 5bd2b2ac82..0000000000 --- a/model/servicecenter/TmallServiceSettleadjustmentSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商15分钟获取数据 API返回值 -tmall.service.settleadjustment.search - -天猫服务平台,按修改时间,时间间隔在15中内(包含15分钟),获取调整单数据 -*/ -type TmallServiceSettleadjustmentSearchAPIResponse struct { - model.CommonResponse - TmallServiceSettleadjustmentSearchResponse -} - -// 服务商15分钟获取数据 成功返回结果 -type TmallServiceSettleadjustmentSearchResponse struct { - XMLName xml.Name `xml:"tmall_service_settleadjustment_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallServiceSettleadjustmentSearchResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TmallServicecenterTpFundsRecoverQueryAPIRequest.go b/model/servicecenter/TmallServicecenterTpFundsRecoverQueryAPIRequest.go new file mode 100644 index 0000000000..1d60ca7739 --- /dev/null +++ b/model/servicecenter/TmallServicecenterTpFundsRecoverQueryAPIRequest.go @@ -0,0 +1,52 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商资金权益逆向扣回的查询接口 API请求 +tmall.servicecenter.tp.funds.recover.query + +服务商资金权益逆向扣回的查询接口 +*/ +type TmallServicecenterTpFundsRecoverQueryAPIRequest struct { + model.Params + // query入参 + _query *TpFundsRecoverQuery +} + +// 初始化TmallServicecenterTpFundsRecoverQueryAPIRequest对象 +func NewTmallServicecenterTpFundsRecoverQueryRequest() *TmallServicecenterTpFundsRecoverQueryAPIRequest{ + return &TmallServicecenterTpFundsRecoverQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterTpFundsRecoverQueryAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.tp.funds.recover.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterTpFundsRecoverQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// query入参 +func (r *TmallServicecenterTpFundsRecoverQueryAPIRequest) SetQuery(_query *TpFundsRecoverQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r TmallServicecenterTpFundsRecoverQueryAPIRequest) GetQuery() *TpFundsRecoverQuery { + return r._query +} diff --git a/model/servicecenter/TmallServicecenterTpFundsRecoverQueryAPIResponse.go b/model/servicecenter/TmallServicecenterTpFundsRecoverQueryAPIResponse.go new file mode 100644 index 0000000000..f7e3e57927 --- /dev/null +++ b/model/servicecenter/TmallServicecenterTpFundsRecoverQueryAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商资金权益逆向扣回的查询接口 API返回值 +tmall.servicecenter.tp.funds.recover.query + +服务商资金权益逆向扣回的查询接口 +*/ +type TmallServicecenterTpFundsRecoverQueryAPIResponse struct { + model.CommonResponse + TmallServicecenterTpFundsRecoverQueryAPIResponseModel +} + +// 服务商资金权益逆向扣回的查询接口 成功返回结果 +type TmallServicecenterTpFundsRecoverQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_tp_funds_recover_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TmallServicecenterTpFundsRecoverQueryResponse.go b/model/servicecenter/TmallServicecenterTpFundsRecoverQueryResponse.go deleted file mode 100644 index a249025c98..0000000000 --- a/model/servicecenter/TmallServicecenterTpFundsRecoverQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商资金权益逆向扣回的查询接口 API返回值 -tmall.servicecenter.tp.funds.recover.query - -服务商资金权益逆向扣回的查询接口 -*/ -type TmallServicecenterTpFundsRecoverQueryAPIResponse struct { - model.CommonResponse - TmallServicecenterTpFundsRecoverQueryResponse -} - -// 服务商资金权益逆向扣回的查询接口 成功返回结果 -type TmallServicecenterTpFundsRecoverQueryResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_tp_funds_recover_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/servicecenter/TmallServicecenterTpFundsSendQueryAPIRequest.go b/model/servicecenter/TmallServicecenterTpFundsSendQueryAPIRequest.go new file mode 100644 index 0000000000..6fbbe96077 --- /dev/null +++ b/model/servicecenter/TmallServicecenterTpFundsSendQueryAPIRequest.go @@ -0,0 +1,52 @@ +package servicecenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商资金权益发放的查询接口 API请求 +tmall.servicecenter.tp.funds.send.query + +服务商资金权益发放结果的查询接口 +*/ +type TmallServicecenterTpFundsSendQueryAPIRequest struct { + model.Params + // 入参对象 + _query *TpFundsSendQuery +} + +// 初始化TmallServicecenterTpFundsSendQueryAPIRequest对象 +func NewTmallServicecenterTpFundsSendQueryRequest() *TmallServicecenterTpFundsSendQueryAPIRequest{ + return &TmallServicecenterTpFundsSendQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterTpFundsSendQueryAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.tp.funds.send.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterTpFundsSendQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 入参对象 +func (r *TmallServicecenterTpFundsSendQueryAPIRequest) SetQuery(_query *TpFundsSendQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r TmallServicecenterTpFundsSendQueryAPIRequest) GetQuery() *TpFundsSendQuery { + return r._query +} diff --git a/model/servicecenter/TmallServicecenterTpFundsSendQueryAPIResponse.go b/model/servicecenter/TmallServicecenterTpFundsSendQueryAPIResponse.go new file mode 100644 index 0000000000..629a47efb6 --- /dev/null +++ b/model/servicecenter/TmallServicecenterTpFundsSendQueryAPIResponse.go @@ -0,0 +1,27 @@ +package servicecenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商资金权益发放的查询接口 API返回值 +tmall.servicecenter.tp.funds.send.query + +服务商资金权益发放结果的查询接口 +*/ +type TmallServicecenterTpFundsSendQueryAPIResponse struct { + model.CommonResponse + TmallServicecenterTpFundsSendQueryAPIResponseModel +} + +// 服务商资金权益发放的查询接口 成功返回结果 +type TmallServicecenterTpFundsSendQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_tp_funds_send_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/servicecenter/TmallServicecenterTpFundsSendQueryResponse.go b/model/servicecenter/TmallServicecenterTpFundsSendQueryResponse.go deleted file mode 100644 index d2dd23861b..0000000000 --- a/model/servicecenter/TmallServicecenterTpFundsSendQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package servicecenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商资金权益发放的查询接口 API返回值 -tmall.servicecenter.tp.funds.send.query - -服务商资金权益发放结果的查询接口 -*/ -type TmallServicecenterTpFundsSendQueryAPIResponse struct { - model.CommonResponse - TmallServicecenterTpFundsSendQueryResponse -} - -// 服务商资金权益发放的查询接口 成功返回结果 -type TmallServicecenterTpFundsSendQueryResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_tp_funds_send_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/shenjing/AlibabaIbCampusTmiQueryAPIRequest.go b/model/shenjing/AlibabaIbCampusTmiQueryAPIRequest.go new file mode 100644 index 0000000000..a8bb3d93a4 --- /dev/null +++ b/model/shenjing/AlibabaIbCampusTmiQueryAPIRequest.go @@ -0,0 +1,52 @@ +package shenjing + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +IB智慧园区-查询TMI流水 API请求 +alibaba.ib.campus.tmi.query + +获取特定银行账户的银行流水 +*/ +type AlibabaIbCampusTmiQueryAPIRequest struct { + model.Params + // 查询参数 + _accountQueryReqDto *AccountQueryReqDto +} + +// 初始化AlibabaIbCampusTmiQueryAPIRequest对象 +func NewAlibabaIbCampusTmiQueryRequest() *AlibabaIbCampusTmiQueryAPIRequest{ + return &AlibabaIbCampusTmiQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIbCampusTmiQueryAPIRequest) GetApiMethodName() string { + return "alibaba.ib.campus.tmi.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIbCampusTmiQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccountQueryReqDto Setter +// 查询参数 +func (r *AlibabaIbCampusTmiQueryAPIRequest) SetAccountQueryReqDto(_accountQueryReqDto *AccountQueryReqDto) error { + r._accountQueryReqDto = _accountQueryReqDto + r.Set("account_query_req_dto", _accountQueryReqDto) + return nil +} + +// AccountQueryReqDto Getter +func (r AlibabaIbCampusTmiQueryAPIRequest) GetAccountQueryReqDto() *AccountQueryReqDto { + return r._accountQueryReqDto +} diff --git a/model/shenjing/AlibabaIbCampusTmiQueryAPIResponse.go b/model/shenjing/AlibabaIbCampusTmiQueryAPIResponse.go new file mode 100644 index 0000000000..6b612a93d0 --- /dev/null +++ b/model/shenjing/AlibabaIbCampusTmiQueryAPIResponse.go @@ -0,0 +1,27 @@ +package shenjing + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +IB智慧园区-查询TMI流水 API返回值 +alibaba.ib.campus.tmi.query + +获取特定银行账户的银行流水 +*/ +type AlibabaIbCampusTmiQueryAPIResponse struct { + model.CommonResponse + AlibabaIbCampusTmiQueryAPIResponseModel +} + +// IB智慧园区-查询TMI流水 成功返回结果 +type AlibabaIbCampusTmiQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ib_campus_tmi_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // TMI流水 + Results []TradeRecordDto `json:"results,omitempty" xml:"results>trade_record_dto,omitempty"` +} diff --git a/model/shenjing/AlibabaIbCampusTmiQueryResponse.go b/model/shenjing/AlibabaIbCampusTmiQueryResponse.go deleted file mode 100644 index 5bf48639de..0000000000 --- a/model/shenjing/AlibabaIbCampusTmiQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package shenjing - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -IB智慧园区-查询TMI流水 API返回值 -alibaba.ib.campus.tmi.query - -获取特定银行账户的银行流水 -*/ -type AlibabaIbCampusTmiQueryAPIResponse struct { - model.CommonResponse - AlibabaIbCampusTmiQueryResponse -} - -// IB智慧园区-查询TMI流水 成功返回结果 -type AlibabaIbCampusTmiQueryResponse struct { - XMLName xml.Name `xml:"alibaba_ib_campus_tmi_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // TMI流水 - Results []TradeRecordDto `json:"results,omitempty" xml:"results>trade_record_dto,omitempty"` -} diff --git a/model/shenjing/AlibabaIbShenjingVisitorPadFetchcodeverifyAPIRequest.go b/model/shenjing/AlibabaIbShenjingVisitorPadFetchcodeverifyAPIRequest.go new file mode 100644 index 0000000000..3aca94f979 --- /dev/null +++ b/model/shenjing/AlibabaIbShenjingVisitorPadFetchcodeverifyAPIRequest.go @@ -0,0 +1,66 @@ +package shenjing + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +访客通过PAD提交访客码 API请求 +alibaba.ib.shenjing.visitor.pad.fetchcodeverify + +访客通过PAD提交访客码,录脸进入园区。 +*/ +type AlibabaIbShenjingVisitorPadFetchcodeverifyAPIRequest struct { + model.Params + // 访客码 + _visitorCode int64 + // 终端ID + _termId string +} + +// 初始化AlibabaIbShenjingVisitorPadFetchcodeverifyAPIRequest对象 +func NewAlibabaIbShenjingVisitorPadFetchcodeverifyRequest() *AlibabaIbShenjingVisitorPadFetchcodeverifyAPIRequest{ + return &AlibabaIbShenjingVisitorPadFetchcodeverifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIbShenjingVisitorPadFetchcodeverifyAPIRequest) GetApiMethodName() string { + return "alibaba.ib.shenjing.visitor.pad.fetchcodeverify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIbShenjingVisitorPadFetchcodeverifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VisitorCode Setter +// 访客码 +func (r *AlibabaIbShenjingVisitorPadFetchcodeverifyAPIRequest) SetVisitorCode(_visitorCode int64) error { + r._visitorCode = _visitorCode + r.Set("visitor_code", _visitorCode) + return nil +} + +// VisitorCode Getter +func (r AlibabaIbShenjingVisitorPadFetchcodeverifyAPIRequest) GetVisitorCode() int64 { + return r._visitorCode +} +// TermId Setter +// 终端ID +func (r *AlibabaIbShenjingVisitorPadFetchcodeverifyAPIRequest) SetTermId(_termId string) error { + r._termId = _termId + r.Set("term_id", _termId) + return nil +} + +// TermId Getter +func (r AlibabaIbShenjingVisitorPadFetchcodeverifyAPIRequest) GetTermId() string { + return r._termId +} diff --git a/model/shenjing/AlibabaIbShenjingVisitorPadFetchcodeverifyAPIResponse.go b/model/shenjing/AlibabaIbShenjingVisitorPadFetchcodeverifyAPIResponse.go new file mode 100644 index 0000000000..b652d6bed0 --- /dev/null +++ b/model/shenjing/AlibabaIbShenjingVisitorPadFetchcodeverifyAPIResponse.go @@ -0,0 +1,33 @@ +package shenjing + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +访客通过PAD提交访客码 API返回值 +alibaba.ib.shenjing.visitor.pad.fetchcodeverify + +访客通过PAD提交访客码,录脸进入园区。 +*/ +type AlibabaIbShenjingVisitorPadFetchcodeverifyAPIResponse struct { + model.CommonResponse + AlibabaIbShenjingVisitorPadFetchcodeverifyAPIResponseModel +} + +// 访客通过PAD提交访客码 成功返回结果 +type AlibabaIbShenjingVisitorPadFetchcodeverifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ib_shenjing_visitor_pad_fetchcodeverify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 内容 + Content *Content `json:"content,omitempty" xml:"content,omitempty"` + // request_id + ResultRequestId string `json:"result_request_id,omitempty" xml:"result_request_id,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/shenjing/AlibabaIbShenjingVisitorPadFetchcodeverifyResponse.go b/model/shenjing/AlibabaIbShenjingVisitorPadFetchcodeverifyResponse.go deleted file mode 100644 index ff089fe0d5..0000000000 --- a/model/shenjing/AlibabaIbShenjingVisitorPadFetchcodeverifyResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package shenjing - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -访客通过PAD提交访客码 API返回值 -alibaba.ib.shenjing.visitor.pad.fetchcodeverify - -访客通过PAD提交访客码,录脸进入园区。 -*/ -type AlibabaIbShenjingVisitorPadFetchcodeverifyAPIResponse struct { - model.CommonResponse - AlibabaIbShenjingVisitorPadFetchcodeverifyResponse -} - -// 访客通过PAD提交访客码 成功返回结果 -type AlibabaIbShenjingVisitorPadFetchcodeverifyResponse struct { - XMLName xml.Name `xml:"alibaba_ib_shenjing_visitor_pad_fetchcodeverify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 内容 - Content *Content `json:"content,omitempty" xml:"content,omitempty"` - // request_id - ResultRequestId string `json:"result_request_id,omitempty" xml:"result_request_id,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/shenjing/AlibabaIbShenjingVisitorPadGetinfoAPIRequest.go b/model/shenjing/AlibabaIbShenjingVisitorPadGetinfoAPIRequest.go new file mode 100644 index 0000000000..9e6bbc872f --- /dev/null +++ b/model/shenjing/AlibabaIbShenjingVisitorPadGetinfoAPIRequest.go @@ -0,0 +1,38 @@ +package shenjing + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取OSS上传参数 API请求 +alibaba.ib.shenjing.visitor.pad.getinfo + +PAD 端获取OSS上传参数,向OSS服务器上传图片。 +*/ +type AlibabaIbShenjingVisitorPadGetinfoAPIRequest struct { + model.Params +} + +// 初始化AlibabaIbShenjingVisitorPadGetinfoAPIRequest对象 +func NewAlibabaIbShenjingVisitorPadGetinfoRequest() *AlibabaIbShenjingVisitorPadGetinfoAPIRequest{ + return &AlibabaIbShenjingVisitorPadGetinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIbShenjingVisitorPadGetinfoAPIRequest) GetApiMethodName() string { + return "alibaba.ib.shenjing.visitor.pad.getinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIbShenjingVisitorPadGetinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/shenjing/AlibabaIbShenjingVisitorPadGetinfoAPIResponse.go b/model/shenjing/AlibabaIbShenjingVisitorPadGetinfoAPIResponse.go new file mode 100644 index 0000000000..be719b1700 --- /dev/null +++ b/model/shenjing/AlibabaIbShenjingVisitorPadGetinfoAPIResponse.go @@ -0,0 +1,35 @@ +package shenjing + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取OSS上传参数 API返回值 +alibaba.ib.shenjing.visitor.pad.getinfo + +PAD 端获取OSS上传参数,向OSS服务器上传图片。 +*/ +type AlibabaIbShenjingVisitorPadGetinfoAPIResponse struct { + model.CommonResponse + AlibabaIbShenjingVisitorPadGetinfoAPIResponseModel +} + +// 获取OSS上传参数 成功返回结果 +type AlibabaIbShenjingVisitorPadGetinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ib_shenjing_visitor_pad_getinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应对象 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 返回状态码 + Content *PostObjectPolicyVo `json:"content,omitempty" xml:"content,omitempty"` + // 放回中文提示 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // request_id + ResultRequestId string `json:"result_request_id,omitempty" xml:"result_request_id,omitempty"` + // 是否成功 + ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` +} diff --git a/model/shenjing/AlibabaIbShenjingVisitorPadGetinfoResponse.go b/model/shenjing/AlibabaIbShenjingVisitorPadGetinfoResponse.go deleted file mode 100644 index 6c0c40ba18..0000000000 --- a/model/shenjing/AlibabaIbShenjingVisitorPadGetinfoResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package shenjing - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取OSS上传参数 API返回值 -alibaba.ib.shenjing.visitor.pad.getinfo - -PAD 端获取OSS上传参数,向OSS服务器上传图片。 -*/ -type AlibabaIbShenjingVisitorPadGetinfoAPIResponse struct { - model.CommonResponse - AlibabaIbShenjingVisitorPadGetinfoResponse -} - -// 获取OSS上传参数 成功返回结果 -type AlibabaIbShenjingVisitorPadGetinfoResponse struct { - XMLName xml.Name `xml:"alibaba_ib_shenjing_visitor_pad_getinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应对象 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 返回状态码 - Content *PostObjectPolicyVo `json:"content,omitempty" xml:"content,omitempty"` - // 放回中文提示 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // request_id - ResultRequestId string `json:"result_request_id,omitempty" xml:"result_request_id,omitempty"` - // 是否成功 - ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` -} diff --git a/model/shenjing/AlibabaIbShenjingVisitorPadGetqrcodelinkAPIRequest.go b/model/shenjing/AlibabaIbShenjingVisitorPadGetqrcodelinkAPIRequest.go new file mode 100644 index 0000000000..fc49929b2e --- /dev/null +++ b/model/shenjing/AlibabaIbShenjingVisitorPadGetqrcodelinkAPIRequest.go @@ -0,0 +1,52 @@ +package shenjing + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +pad获取二维码 API请求 +alibaba.ib.shenjing.visitor.pad.getqrcodelink + +pad获取二维码链接。扫码录入人脸。 +*/ +type AlibabaIbShenjingVisitorPadGetqrcodelinkAPIRequest struct { + model.Params + // 终端id + _termId string +} + +// 初始化AlibabaIbShenjingVisitorPadGetqrcodelinkAPIRequest对象 +func NewAlibabaIbShenjingVisitorPadGetqrcodelinkRequest() *AlibabaIbShenjingVisitorPadGetqrcodelinkAPIRequest{ + return &AlibabaIbShenjingVisitorPadGetqrcodelinkAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIbShenjingVisitorPadGetqrcodelinkAPIRequest) GetApiMethodName() string { + return "alibaba.ib.shenjing.visitor.pad.getqrcodelink" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIbShenjingVisitorPadGetqrcodelinkAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TermId Setter +// 终端id +func (r *AlibabaIbShenjingVisitorPadGetqrcodelinkAPIRequest) SetTermId(_termId string) error { + r._termId = _termId + r.Set("term_id", _termId) + return nil +} + +// TermId Getter +func (r AlibabaIbShenjingVisitorPadGetqrcodelinkAPIRequest) GetTermId() string { + return r._termId +} diff --git a/model/shenjing/AlibabaIbShenjingVisitorPadGetqrcodelinkAPIResponse.go b/model/shenjing/AlibabaIbShenjingVisitorPadGetqrcodelinkAPIResponse.go new file mode 100644 index 0000000000..3fded9d85f --- /dev/null +++ b/model/shenjing/AlibabaIbShenjingVisitorPadGetqrcodelinkAPIResponse.go @@ -0,0 +1,37 @@ +package shenjing + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +pad获取二维码 API返回值 +alibaba.ib.shenjing.visitor.pad.getqrcodelink + +pad获取二维码链接。扫码录入人脸。 +*/ +type AlibabaIbShenjingVisitorPadGetqrcodelinkAPIResponse struct { + model.CommonResponse + AlibabaIbShenjingVisitorPadGetqrcodelinkAPIResponseModel +} + +// pad获取二维码 成功返回结果 +type AlibabaIbShenjingVisitorPadGetqrcodelinkAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ib_shenjing_visitor_pad_getqrcodelink_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 内容 + Content string `json:"content,omitempty" xml:"content,omitempty"` + // 是否成功 + ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 等级 + ResultLevel string `json:"result_level,omitempty" xml:"result_level,omitempty"` + // request_id + ResultRequestId string `json:"result_request_id,omitempty" xml:"result_request_id,omitempty"` +} diff --git a/model/shenjing/AlibabaIbShenjingVisitorPadGetqrcodelinkResponse.go b/model/shenjing/AlibabaIbShenjingVisitorPadGetqrcodelinkResponse.go deleted file mode 100644 index c8d99c0ca2..0000000000 --- a/model/shenjing/AlibabaIbShenjingVisitorPadGetqrcodelinkResponse.go +++ /dev/null @@ -1,37 +0,0 @@ -package shenjing - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -pad获取二维码 API返回值 -alibaba.ib.shenjing.visitor.pad.getqrcodelink - -pad获取二维码链接。扫码录入人脸。 -*/ -type AlibabaIbShenjingVisitorPadGetqrcodelinkAPIResponse struct { - model.CommonResponse - AlibabaIbShenjingVisitorPadGetqrcodelinkResponse -} - -// pad获取二维码 成功返回结果 -type AlibabaIbShenjingVisitorPadGetqrcodelinkResponse struct { - XMLName xml.Name `xml:"alibaba_ib_shenjing_visitor_pad_getqrcodelink_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 内容 - Content string `json:"content,omitempty" xml:"content,omitempty"` - // 是否成功 - ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 等级 - ResultLevel string `json:"result_level,omitempty" xml:"result_level,omitempty"` - // request_id - ResultRequestId string `json:"result_request_id,omitempty" xml:"result_request_id,omitempty"` -} diff --git a/model/shenjing/AlibabaIbShenjingVisitorPadOpendoorAPIRequest.go b/model/shenjing/AlibabaIbShenjingVisitorPadOpendoorAPIRequest.go new file mode 100644 index 0000000000..69fd93e291 --- /dev/null +++ b/model/shenjing/AlibabaIbShenjingVisitorPadOpendoorAPIRequest.go @@ -0,0 +1,66 @@ +package shenjing + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +访客发起开门 API请求 +alibaba.ib.shenjing.visitor.pad.opendoor + +访客PAD端录入完人脸后,可以点击开门按钮开门。 +*/ +type AlibabaIbShenjingVisitorPadOpendoorAPIRequest struct { + model.Params + // 访客标识 + _id string + // padid + _padId string +} + +// 初始化AlibabaIbShenjingVisitorPadOpendoorAPIRequest对象 +func NewAlibabaIbShenjingVisitorPadOpendoorRequest() *AlibabaIbShenjingVisitorPadOpendoorAPIRequest{ + return &AlibabaIbShenjingVisitorPadOpendoorAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIbShenjingVisitorPadOpendoorAPIRequest) GetApiMethodName() string { + return "alibaba.ib.shenjing.visitor.pad.opendoor" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIbShenjingVisitorPadOpendoorAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 访客标识 +func (r *AlibabaIbShenjingVisitorPadOpendoorAPIRequest) SetId(_id string) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaIbShenjingVisitorPadOpendoorAPIRequest) GetId() string { + return r._id +} +// PadId Setter +// padid +func (r *AlibabaIbShenjingVisitorPadOpendoorAPIRequest) SetPadId(_padId string) error { + r._padId = _padId + r.Set("pad_id", _padId) + return nil +} + +// PadId Getter +func (r AlibabaIbShenjingVisitorPadOpendoorAPIRequest) GetPadId() string { + return r._padId +} diff --git a/model/shenjing/AlibabaIbShenjingVisitorPadOpendoorAPIResponse.go b/model/shenjing/AlibabaIbShenjingVisitorPadOpendoorAPIResponse.go new file mode 100644 index 0000000000..02e4cce6a0 --- /dev/null +++ b/model/shenjing/AlibabaIbShenjingVisitorPadOpendoorAPIResponse.go @@ -0,0 +1,35 @@ +package shenjing + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +访客发起开门 API返回值 +alibaba.ib.shenjing.visitor.pad.opendoor + +访客PAD端录入完人脸后,可以点击开门按钮开门。 +*/ +type AlibabaIbShenjingVisitorPadOpendoorAPIResponse struct { + model.CommonResponse + AlibabaIbShenjingVisitorPadOpendoorAPIResponseModel +} + +// 访客发起开门 成功返回结果 +type AlibabaIbShenjingVisitorPadOpendoorAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ib_shenjing_visitor_pad_opendoor_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 业务处理结果 + Content bool `json:"content,omitempty" xml:"content,omitempty"` + // 请求request_id + ResultRequestId string `json:"result_request_id,omitempty" xml:"result_request_id,omitempty"` + // 是否成功 + ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` + // 状态码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 状态描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/shenjing/AlibabaIbShenjingVisitorPadOpendoorResponse.go b/model/shenjing/AlibabaIbShenjingVisitorPadOpendoorResponse.go deleted file mode 100644 index 26cbd0d3a1..0000000000 --- a/model/shenjing/AlibabaIbShenjingVisitorPadOpendoorResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package shenjing - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -访客发起开门 API返回值 -alibaba.ib.shenjing.visitor.pad.opendoor - -访客PAD端录入完人脸后,可以点击开门按钮开门。 -*/ -type AlibabaIbShenjingVisitorPadOpendoorAPIResponse struct { - model.CommonResponse - AlibabaIbShenjingVisitorPadOpendoorResponse -} - -// 访客发起开门 成功返回结果 -type AlibabaIbShenjingVisitorPadOpendoorResponse struct { - XMLName xml.Name `xml:"alibaba_ib_shenjing_visitor_pad_opendoor_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 业务处理结果 - Content bool `json:"content,omitempty" xml:"content,omitempty"` - // 请求request_id - ResultRequestId string `json:"result_request_id,omitempty" xml:"result_request_id,omitempty"` - // 是否成功 - ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` - // 状态码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 状态描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/shenjing/AlibabaIbShenjingVisitorPadUploadfaceAPIRequest.go b/model/shenjing/AlibabaIbShenjingVisitorPadUploadfaceAPIRequest.go new file mode 100644 index 0000000000..ef3b09af6d --- /dev/null +++ b/model/shenjing/AlibabaIbShenjingVisitorPadUploadfaceAPIRequest.go @@ -0,0 +1,66 @@ +package shenjing + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +访客PAD上传人脸 API请求 +alibaba.ib.shenjing.visitor.pad.uploadface + +访客PAD端上传人脸。 +*/ +type AlibabaIbShenjingVisitorPadUploadfaceAPIRequest struct { + model.Params + // 访客ID + _id string + // 图片URL + _image string +} + +// 初始化AlibabaIbShenjingVisitorPadUploadfaceAPIRequest对象 +func NewAlibabaIbShenjingVisitorPadUploadfaceRequest() *AlibabaIbShenjingVisitorPadUploadfaceAPIRequest{ + return &AlibabaIbShenjingVisitorPadUploadfaceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIbShenjingVisitorPadUploadfaceAPIRequest) GetApiMethodName() string { + return "alibaba.ib.shenjing.visitor.pad.uploadface" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIbShenjingVisitorPadUploadfaceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 访客ID +func (r *AlibabaIbShenjingVisitorPadUploadfaceAPIRequest) SetId(_id string) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaIbShenjingVisitorPadUploadfaceAPIRequest) GetId() string { + return r._id +} +// Image Setter +// 图片URL +func (r *AlibabaIbShenjingVisitorPadUploadfaceAPIRequest) SetImage(_image string) error { + r._image = _image + r.Set("image", _image) + return nil +} + +// Image Getter +func (r AlibabaIbShenjingVisitorPadUploadfaceAPIRequest) GetImage() string { + return r._image +} diff --git a/model/shenjing/AlibabaIbShenjingVisitorPadUploadfaceAPIResponse.go b/model/shenjing/AlibabaIbShenjingVisitorPadUploadfaceAPIResponse.go new file mode 100644 index 0000000000..ff8f6d6322 --- /dev/null +++ b/model/shenjing/AlibabaIbShenjingVisitorPadUploadfaceAPIResponse.go @@ -0,0 +1,33 @@ +package shenjing + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +访客PAD上传人脸 API返回值 +alibaba.ib.shenjing.visitor.pad.uploadface + +访客PAD端上传人脸。 +*/ +type AlibabaIbShenjingVisitorPadUploadfaceAPIResponse struct { + model.CommonResponse + AlibabaIbShenjingVisitorPadUploadfaceAPIResponseModel +} + +// 访客PAD上传人脸 成功返回结果 +type AlibabaIbShenjingVisitorPadUploadfaceAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ib_shenjing_visitor_pad_uploadface_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 内容 + Content *UploadFaceDo `json:"content,omitempty" xml:"content,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // request_id + ResultRequestId string `json:"result_request_id,omitempty" xml:"result_request_id,omitempty"` +} diff --git a/model/shenjing/AlibabaIbShenjingVisitorPadUploadfaceResponse.go b/model/shenjing/AlibabaIbShenjingVisitorPadUploadfaceResponse.go deleted file mode 100644 index 6ed7c2e9c4..0000000000 --- a/model/shenjing/AlibabaIbShenjingVisitorPadUploadfaceResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package shenjing - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -访客PAD上传人脸 API返回值 -alibaba.ib.shenjing.visitor.pad.uploadface - -访客PAD端上传人脸。 -*/ -type AlibabaIbShenjingVisitorPadUploadfaceAPIResponse struct { - model.CommonResponse - AlibabaIbShenjingVisitorPadUploadfaceResponse -} - -// 访客PAD上传人脸 成功返回结果 -type AlibabaIbShenjingVisitorPadUploadfaceResponse struct { - XMLName xml.Name `xml:"alibaba_ib_shenjing_visitor_pad_uploadface_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 内容 - Content *UploadFaceDo `json:"content,omitempty" xml:"content,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // request_id - ResultRequestId string `json:"result_request_id,omitempty" xml:"result_request_id,omitempty"` -} diff --git a/model/shenjing/AlibabaShenjingCoreActivityGetappshowlistAPIRequest.go b/model/shenjing/AlibabaShenjingCoreActivityGetappshowlistAPIRequest.go new file mode 100644 index 0000000000..9c5ba34d1f --- /dev/null +++ b/model/shenjing/AlibabaShenjingCoreActivityGetappshowlistAPIRequest.go @@ -0,0 +1,94 @@ +package shenjing + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取神鲸活动列表 API请求 +alibaba.shenjing.core.activity.getappshowlist + +获取神鲸活动列表 +*/ +type AlibabaShenjingCoreActivityGetappshowlistAPIRequest struct { + model.Params + // 验权对象 + _workBenchContext *WorkBenchContext + // 时间戳 + _timestamp1 int64 + // 页码 + _page int64 + // 一页行数 + _size int64 +} + +// 初始化AlibabaShenjingCoreActivityGetappshowlistAPIRequest对象 +func NewAlibabaShenjingCoreActivityGetappshowlistRequest() *AlibabaShenjingCoreActivityGetappshowlistAPIRequest{ + return &AlibabaShenjingCoreActivityGetappshowlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaShenjingCoreActivityGetappshowlistAPIRequest) GetApiMethodName() string { + return "alibaba.shenjing.core.activity.getappshowlist" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaShenjingCoreActivityGetappshowlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkBenchContext Setter +// 验权对象 +func (r *AlibabaShenjingCoreActivityGetappshowlistAPIRequest) SetWorkBenchContext(_workBenchContext *WorkBenchContext) error { + r._workBenchContext = _workBenchContext + r.Set("work_bench_context", _workBenchContext) + return nil +} + +// WorkBenchContext Getter +func (r AlibabaShenjingCoreActivityGetappshowlistAPIRequest) GetWorkBenchContext() *WorkBenchContext { + return r._workBenchContext +} +// Timestamp1 Setter +// 时间戳 +func (r *AlibabaShenjingCoreActivityGetappshowlistAPIRequest) SetTimestamp1(_timestamp1 int64) error { + r._timestamp1 = _timestamp1 + r.Set("timestamp1", _timestamp1) + return nil +} + +// Timestamp1 Getter +func (r AlibabaShenjingCoreActivityGetappshowlistAPIRequest) GetTimestamp1() int64 { + return r._timestamp1 +} +// Page Setter +// 页码 +func (r *AlibabaShenjingCoreActivityGetappshowlistAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaShenjingCoreActivityGetappshowlistAPIRequest) GetPage() int64 { + return r._page +} +// Size Setter +// 一页行数 +func (r *AlibabaShenjingCoreActivityGetappshowlistAPIRequest) SetSize(_size int64) error { + r._size = _size + r.Set("size", _size) + return nil +} + +// Size Getter +func (r AlibabaShenjingCoreActivityGetappshowlistAPIRequest) GetSize() int64 { + return r._size +} diff --git a/model/shenjing/AlibabaShenjingCoreActivityGetappshowlistAPIResponse.go b/model/shenjing/AlibabaShenjingCoreActivityGetappshowlistAPIResponse.go new file mode 100644 index 0000000000..e7a6061fb4 --- /dev/null +++ b/model/shenjing/AlibabaShenjingCoreActivityGetappshowlistAPIResponse.go @@ -0,0 +1,27 @@ +package shenjing + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取神鲸活动列表 API返回值 +alibaba.shenjing.core.activity.getappshowlist + +获取神鲸活动列表 +*/ +type AlibabaShenjingCoreActivityGetappshowlistAPIResponse struct { + model.CommonResponse + AlibabaShenjingCoreActivityGetappshowlistAPIResponseModel +} + +// 获取神鲸活动列表 成功返回结果 +type AlibabaShenjingCoreActivityGetappshowlistAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_shenjing_core_activity_getappshowlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的结果对象 + Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/shenjing/AlibabaShenjingCoreActivityGetappshowlistResponse.go b/model/shenjing/AlibabaShenjingCoreActivityGetappshowlistResponse.go deleted file mode 100644 index 031cf0c603..0000000000 --- a/model/shenjing/AlibabaShenjingCoreActivityGetappshowlistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package shenjing - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取神鲸活动列表 API返回值 -alibaba.shenjing.core.activity.getappshowlist - -获取神鲸活动列表 -*/ -type AlibabaShenjingCoreActivityGetappshowlistAPIResponse struct { - model.CommonResponse - AlibabaShenjingCoreActivityGetappshowlistResponse -} - -// 获取神鲸活动列表 成功返回结果 -type AlibabaShenjingCoreActivityGetappshowlistResponse struct { - XMLName xml.Name `xml:"alibaba_shenjing_core_activity_getappshowlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的结果对象 - Result *PageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ship/AlitripShipOrderNotifyAPIRequest.go b/model/ship/AlitripShipOrderNotifyAPIRequest.go new file mode 100644 index 0000000000..33c2a65414 --- /dev/null +++ b/model/ship/AlitripShipOrderNotifyAPIRequest.go @@ -0,0 +1,52 @@ +package ship + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单信息回填(出票回调) API请求 +alitrip.ship.order.notify + +此接口为接入商调用飞猪旅行接口回填票号、密码(验证码)等订单信息。接口根据alitripOrderId幂等。若第一次调用失败,后续调用仍然可以回填票号、密码(验证码)成功。第一次调用成功后,后续调用会直接返回第一次的调用结果,不会再产生更新操作。多张票同时出票回填时,保证原子性,只允许全部成功或者全部失败,不能存在部分成功或者失败 +*/ +type AlitripShipOrderNotifyAPIRequest struct { + model.Params + // 出票入参 + _confirmBookRQ *ShipAgentConfirmBookRq +} + +// 初始化AlitripShipOrderNotifyAPIRequest对象 +func NewAlitripShipOrderNotifyRequest() *AlitripShipOrderNotifyAPIRequest{ + return &AlitripShipOrderNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripShipOrderNotifyAPIRequest) GetApiMethodName() string { + return "alitrip.ship.order.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripShipOrderNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ConfirmBookRQ Setter +// 出票入参 +func (r *AlitripShipOrderNotifyAPIRequest) SetConfirmBookRQ(_confirmBookRQ *ShipAgentConfirmBookRq) error { + r._confirmBookRQ = _confirmBookRQ + r.Set("confirm_book_r_q", _confirmBookRQ) + return nil +} + +// ConfirmBookRQ Getter +func (r AlitripShipOrderNotifyAPIRequest) GetConfirmBookRQ() *ShipAgentConfirmBookRq { + return r._confirmBookRQ +} diff --git a/model/ship/AlitripShipOrderNotifyAPIResponse.go b/model/ship/AlitripShipOrderNotifyAPIResponse.go new file mode 100644 index 0000000000..b1e289566f --- /dev/null +++ b/model/ship/AlitripShipOrderNotifyAPIResponse.go @@ -0,0 +1,31 @@ +package ship + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单信息回填(出票回调) API返回值 +alitrip.ship.order.notify + +此接口为接入商调用飞猪旅行接口回填票号、密码(验证码)等订单信息。接口根据alitripOrderId幂等。若第一次调用失败,后续调用仍然可以回填票号、密码(验证码)成功。第一次调用成功后,后续调用会直接返回第一次的调用结果,不会再产生更新操作。多张票同时出票回填时,保证原子性,只允许全部成功或者全部失败,不能存在部分成功或者失败 +*/ +type AlitripShipOrderNotifyAPIResponse struct { + model.CommonResponse + AlitripShipOrderNotifyAPIResponseModel +} + +// 订单信息回填(出票回调) 成功返回结果 +type AlitripShipOrderNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ship_order_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 错误描述 + RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` + // 是否成功 + RetSuccess bool `json:"ret_success,omitempty" xml:"ret_success,omitempty"` +} diff --git a/model/ship/AlitripShipOrderNotifyResponse.go b/model/ship/AlitripShipOrderNotifyResponse.go deleted file mode 100644 index b91a57194b..0000000000 --- a/model/ship/AlitripShipOrderNotifyResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package ship - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单信息回填(出票回调) API返回值 -alitrip.ship.order.notify - -此接口为接入商调用飞猪旅行接口回填票号、密码(验证码)等订单信息。接口根据alitripOrderId幂等。若第一次调用失败,后续调用仍然可以回填票号、密码(验证码)成功。第一次调用成功后,后续调用会直接返回第一次的调用结果,不会再产生更新操作。多张票同时出票回填时,保证原子性,只允许全部成功或者全部失败,不能存在部分成功或者失败 -*/ -type AlitripShipOrderNotifyAPIResponse struct { - model.CommonResponse - AlitripShipOrderNotifyResponse -} - -// 订单信息回填(出票回调) 成功返回结果 -type AlitripShipOrderNotifyResponse struct { - XMLName xml.Name `xml:"alitrip_ship_order_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 错误描述 - RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` - // 是否成功 - RetSuccess bool `json:"ret_success,omitempty" xml:"ret_success,omitempty"` -} diff --git a/model/ship/AlitripShipProductSyncbaseAPIRequest.go b/model/ship/AlitripShipProductSyncbaseAPIRequest.go new file mode 100644 index 0000000000..1842fc6332 --- /dev/null +++ b/model/ship/AlitripShipProductSyncbaseAPIRequest.go @@ -0,0 +1,38 @@ +package ship + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +基础信息修改回调 API请求 +alitrip.ship.product.syncbase + +基础信息修改回调 +*/ +type AlitripShipProductSyncbaseAPIRequest struct { + model.Params +} + +// 初始化AlitripShipProductSyncbaseAPIRequest对象 +func NewAlitripShipProductSyncbaseRequest() *AlitripShipProductSyncbaseAPIRequest{ + return &AlitripShipProductSyncbaseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripShipProductSyncbaseAPIRequest) GetApiMethodName() string { + return "alitrip.ship.product.syncbase" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripShipProductSyncbaseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/ship/AlitripShipProductSyncbaseAPIResponse.go b/model/ship/AlitripShipProductSyncbaseAPIResponse.go new file mode 100644 index 0000000000..9e9ebc8fa9 --- /dev/null +++ b/model/ship/AlitripShipProductSyncbaseAPIResponse.go @@ -0,0 +1,31 @@ +package ship + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +基础信息修改回调 API返回值 +alitrip.ship.product.syncbase + +基础信息修改回调 +*/ +type AlitripShipProductSyncbaseAPIResponse struct { + model.CommonResponse + AlitripShipProductSyncbaseAPIResponseModel +} + +// 基础信息修改回调 成功返回结果 +type AlitripShipProductSyncbaseAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ship_product_syncbase_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/ship/AlitripShipProductSyncbaseResponse.go b/model/ship/AlitripShipProductSyncbaseResponse.go deleted file mode 100644 index a04b0ab183..0000000000 --- a/model/ship/AlitripShipProductSyncbaseResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package ship - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -基础信息修改回调 API返回值 -alitrip.ship.product.syncbase - -基础信息修改回调 -*/ -type AlitripShipProductSyncbaseAPIResponse struct { - model.CommonResponse - AlitripShipProductSyncbaseResponse -} - -// 基础信息修改回调 成功返回结果 -type AlitripShipProductSyncbaseResponse struct { - XMLName xml.Name `xml:"alitrip_ship_product_syncbase_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/ship/AlitripShipProductSynccallAPIRequest.go b/model/ship/AlitripShipProductSynccallAPIRequest.go new file mode 100644 index 0000000000..39ae8f84b0 --- /dev/null +++ b/model/ship/AlitripShipProductSynccallAPIRequest.go @@ -0,0 +1,38 @@ +package ship + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +全量同步回调 API请求 +alitrip.ship.product.synccall + +全量同步接口 +*/ +type AlitripShipProductSynccallAPIRequest struct { + model.Params +} + +// 初始化AlitripShipProductSynccallAPIRequest对象 +func NewAlitripShipProductSynccallRequest() *AlitripShipProductSynccallAPIRequest{ + return &AlitripShipProductSynccallAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripShipProductSynccallAPIRequest) GetApiMethodName() string { + return "alitrip.ship.product.synccall" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripShipProductSynccallAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/ship/AlitripShipProductSynccallAPIResponse.go b/model/ship/AlitripShipProductSynccallAPIResponse.go new file mode 100644 index 0000000000..7fe1bbd84c --- /dev/null +++ b/model/ship/AlitripShipProductSynccallAPIResponse.go @@ -0,0 +1,31 @@ +package ship + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +全量同步回调 API返回值 +alitrip.ship.product.synccall + +全量同步接口 +*/ +type AlitripShipProductSynccallAPIResponse struct { + model.CommonResponse + AlitripShipProductSynccallAPIResponseModel +} + +// 全量同步回调 成功返回结果 +type AlitripShipProductSynccallAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ship_product_synccall_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/ship/AlitripShipProductSynccallResponse.go b/model/ship/AlitripShipProductSynccallResponse.go deleted file mode 100644 index 3f40954995..0000000000 --- a/model/ship/AlitripShipProductSynccallResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package ship - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -全量同步回调 API返回值 -alitrip.ship.product.synccall - -全量同步接口 -*/ -type AlitripShipProductSynccallAPIResponse struct { - model.CommonResponse - AlitripShipProductSynccallResponse -} - -// 全量同步回调 成功返回结果 -type AlitripShipProductSynccallResponse struct { - XMLName xml.Name `xml:"alitrip_ship_product_synccall_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/ship/AlitripShipProductSyncnunberAPIRequest.go b/model/ship/AlitripShipProductSyncnunberAPIRequest.go new file mode 100644 index 0000000000..30c69fb485 --- /dev/null +++ b/model/ship/AlitripShipProductSyncnunberAPIRequest.go @@ -0,0 +1,94 @@ +package ship + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +船票班次变更回调 API请求 +alitrip.ship.product.syncnunber + +船票班次变更回调 +*/ +type AlitripShipProductSyncnunberAPIRequest struct { + model.Params + // 出发城市 + _cityName string + // 出发城市code + _cityCode string + // 出发港口 + _fromStationName string + // 出发港口编号 + _fromStationCode string +} + +// 初始化AlitripShipProductSyncnunberAPIRequest对象 +func NewAlitripShipProductSyncnunberRequest() *AlitripShipProductSyncnunberAPIRequest{ + return &AlitripShipProductSyncnunberAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripShipProductSyncnunberAPIRequest) GetApiMethodName() string { + return "alitrip.ship.product.syncnunber" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripShipProductSyncnunberAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CityName Setter +// 出发城市 +func (r *AlitripShipProductSyncnunberAPIRequest) SetCityName(_cityName string) error { + r._cityName = _cityName + r.Set("city_name", _cityName) + return nil +} + +// CityName Getter +func (r AlitripShipProductSyncnunberAPIRequest) GetCityName() string { + return r._cityName +} +// CityCode Setter +// 出发城市code +func (r *AlitripShipProductSyncnunberAPIRequest) SetCityCode(_cityCode string) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r AlitripShipProductSyncnunberAPIRequest) GetCityCode() string { + return r._cityCode +} +// FromStationName Setter +// 出发港口 +func (r *AlitripShipProductSyncnunberAPIRequest) SetFromStationName(_fromStationName string) error { + r._fromStationName = _fromStationName + r.Set("from_station_name", _fromStationName) + return nil +} + +// FromStationName Getter +func (r AlitripShipProductSyncnunberAPIRequest) GetFromStationName() string { + return r._fromStationName +} +// FromStationCode Setter +// 出发港口编号 +func (r *AlitripShipProductSyncnunberAPIRequest) SetFromStationCode(_fromStationCode string) error { + r._fromStationCode = _fromStationCode + r.Set("from_station_code", _fromStationCode) + return nil +} + +// FromStationCode Getter +func (r AlitripShipProductSyncnunberAPIRequest) GetFromStationCode() string { + return r._fromStationCode +} diff --git a/model/ship/AlitripShipProductSyncnunberAPIResponse.go b/model/ship/AlitripShipProductSyncnunberAPIResponse.go new file mode 100644 index 0000000000..b12639ccbc --- /dev/null +++ b/model/ship/AlitripShipProductSyncnunberAPIResponse.go @@ -0,0 +1,31 @@ +package ship + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +船票班次变更回调 API返回值 +alitrip.ship.product.syncnunber + +船票班次变更回调 +*/ +type AlitripShipProductSyncnunberAPIResponse struct { + model.CommonResponse + AlitripShipProductSyncnunberAPIResponseModel +} + +// 船票班次变更回调 成功返回结果 +type AlitripShipProductSyncnunberAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ship_product_syncnunber_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 成功状态 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/ship/AlitripShipProductSyncnunberResponse.go b/model/ship/AlitripShipProductSyncnunberResponse.go deleted file mode 100644 index 2252ee6cc2..0000000000 --- a/model/ship/AlitripShipProductSyncnunberResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package ship - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -船票班次变更回调 API返回值 -alitrip.ship.product.syncnunber - -船票班次变更回调 -*/ -type AlitripShipProductSyncnunberAPIResponse struct { - model.CommonResponse - AlitripShipProductSyncnunberResponse -} - -// 船票班次变更回调 成功返回结果 -type AlitripShipProductSyncnunberResponse struct { - XMLName xml.Name `xml:"alitrip_ship_product_syncnunber_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 成功状态 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/ship/AlitripShipReturnNotifyAPIRequest.go b/model/ship/AlitripShipReturnNotifyAPIRequest.go new file mode 100644 index 0000000000..da2a7a4de6 --- /dev/null +++ b/model/ship/AlitripShipReturnNotifyAPIRequest.go @@ -0,0 +1,52 @@ +package ship + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +船票退票退款回填接口 API请求 +alitrip.ship.return.notify + +此接口为接入商调用飞猪接口回填退票状态,飞猪平台给用户进行退票退款。飞猪平台保证数据幂等。 +*/ +type AlitripShipReturnNotifyAPIRequest struct { + model.Params + // 退票请求入参 + _confirmRefundRQ *ShipAgentConfirmRefundRq +} + +// 初始化AlitripShipReturnNotifyAPIRequest对象 +func NewAlitripShipReturnNotifyRequest() *AlitripShipReturnNotifyAPIRequest{ + return &AlitripShipReturnNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripShipReturnNotifyAPIRequest) GetApiMethodName() string { + return "alitrip.ship.return.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripShipReturnNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ConfirmRefundRQ Setter +// 退票请求入参 +func (r *AlitripShipReturnNotifyAPIRequest) SetConfirmRefundRQ(_confirmRefundRQ *ShipAgentConfirmRefundRq) error { + r._confirmRefundRQ = _confirmRefundRQ + r.Set("confirm_refund_r_q", _confirmRefundRQ) + return nil +} + +// ConfirmRefundRQ Getter +func (r AlitripShipReturnNotifyAPIRequest) GetConfirmRefundRQ() *ShipAgentConfirmRefundRq { + return r._confirmRefundRQ +} diff --git a/model/ship/AlitripShipReturnNotifyAPIResponse.go b/model/ship/AlitripShipReturnNotifyAPIResponse.go new file mode 100644 index 0000000000..8d568a915f --- /dev/null +++ b/model/ship/AlitripShipReturnNotifyAPIResponse.go @@ -0,0 +1,31 @@ +package ship + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +船票退票退款回填接口 API返回值 +alitrip.ship.return.notify + +此接口为接入商调用飞猪接口回填退票状态,飞猪平台给用户进行退票退款。飞猪平台保证数据幂等。 +*/ +type AlitripShipReturnNotifyAPIResponse struct { + model.CommonResponse + AlitripShipReturnNotifyAPIResponseModel +} + +// 船票退票退款回填接口 成功返回结果 +type AlitripShipReturnNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ship_return_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 错误描述 + RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` + // 结果 + RetSuccess bool `json:"ret_success,omitempty" xml:"ret_success,omitempty"` +} diff --git a/model/ship/AlitripShipReturnNotifyResponse.go b/model/ship/AlitripShipReturnNotifyResponse.go deleted file mode 100644 index 91e35bf2a5..0000000000 --- a/model/ship/AlitripShipReturnNotifyResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package ship - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -船票退票退款回填接口 API返回值 -alitrip.ship.return.notify - -此接口为接入商调用飞猪接口回填退票状态,飞猪平台给用户进行退票退款。飞猪平台保证数据幂等。 -*/ -type AlitripShipReturnNotifyAPIResponse struct { - model.CommonResponse - AlitripShipReturnNotifyResponse -} - -// 船票退票退款回填接口 成功返回结果 -type AlitripShipReturnNotifyResponse struct { - XMLName xml.Name `xml:"alitrip_ship_return_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 错误描述 - RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` - // 结果 - RetSuccess bool `json:"ret_success,omitempty" xml:"ret_success,omitempty"` -} diff --git a/model/shop/AlibabaDataCouponGetAPIRequest.go b/model/shop/AlibabaDataCouponGetAPIRequest.go new file mode 100644 index 0000000000..9cc8cd74f7 --- /dev/null +++ b/model/shop/AlibabaDataCouponGetAPIRequest.go @@ -0,0 +1,52 @@ +package shop + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取优惠券信息 API请求 +alibaba.data.coupon.get + +获取优惠券信息,仅作客户端鉴权虚拟api使用 +*/ +type AlibabaDataCouponGetAPIRequest struct { + model.Params + // 客户端鉴权虚拟api使用 + _unNamed string +} + +// 初始化AlibabaDataCouponGetAPIRequest对象 +func NewAlibabaDataCouponGetRequest() *AlibabaDataCouponGetAPIRequest{ + return &AlibabaDataCouponGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDataCouponGetAPIRequest) GetApiMethodName() string { + return "alibaba.data.coupon.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDataCouponGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UnNamed Setter +// 客户端鉴权虚拟api使用 +func (r *AlibabaDataCouponGetAPIRequest) SetUnNamed(_unNamed string) error { + r._unNamed = _unNamed + r.Set("un_named", _unNamed) + return nil +} + +// UnNamed Getter +func (r AlibabaDataCouponGetAPIRequest) GetUnNamed() string { + return r._unNamed +} diff --git a/model/shop/AlibabaDataCouponGetAPIResponse.go b/model/shop/AlibabaDataCouponGetAPIResponse.go new file mode 100644 index 0000000000..905ef928ae --- /dev/null +++ b/model/shop/AlibabaDataCouponGetAPIResponse.go @@ -0,0 +1,27 @@ +package shop + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取优惠券信息 API返回值 +alibaba.data.coupon.get + +获取优惠券信息,仅作客户端鉴权虚拟api使用 +*/ +type AlibabaDataCouponGetAPIResponse struct { + model.CommonResponse + AlibabaDataCouponGetAPIResponseModel +} + +// 获取优惠券信息 成功返回结果 +type AlibabaDataCouponGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_data_coupon_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // unnamed + Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"` +} diff --git a/model/shop/AlibabaDataCouponGetResponse.go b/model/shop/AlibabaDataCouponGetResponse.go deleted file mode 100644 index d51d0f567c..0000000000 --- a/model/shop/AlibabaDataCouponGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package shop - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取优惠券信息 API返回值 -alibaba.data.coupon.get - -获取优惠券信息,仅作客户端鉴权虚拟api使用 -*/ -type AlibabaDataCouponGetAPIResponse struct { - model.CommonResponse - AlibabaDataCouponGetResponse -} - -// 获取优惠券信息 成功返回结果 -type AlibabaDataCouponGetResponse struct { - XMLName xml.Name `xml:"alibaba_data_coupon_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // unnamed - Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"` -} diff --git a/model/shop/AlibabaDataItemGetAPIRequest.go b/model/shop/AlibabaDataItemGetAPIRequest.go new file mode 100644 index 0000000000..4b5fb87830 --- /dev/null +++ b/model/shop/AlibabaDataItemGetAPIRequest.go @@ -0,0 +1,52 @@ +package shop + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商品 API请求 +alibaba.data.item.get + +获取商品信息,作为客户端Weex鉴权的虚拟api +*/ +type AlibabaDataItemGetAPIRequest struct { + model.Params + // 获取商品信息,作为客户端Weex鉴权的虚拟api + _unNamed string +} + +// 初始化AlibabaDataItemGetAPIRequest对象 +func NewAlibabaDataItemGetRequest() *AlibabaDataItemGetAPIRequest{ + return &AlibabaDataItemGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDataItemGetAPIRequest) GetApiMethodName() string { + return "alibaba.data.item.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDataItemGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UnNamed Setter +// 获取商品信息,作为客户端Weex鉴权的虚拟api +func (r *AlibabaDataItemGetAPIRequest) SetUnNamed(_unNamed string) error { + r._unNamed = _unNamed + r.Set("un_named", _unNamed) + return nil +} + +// UnNamed Getter +func (r AlibabaDataItemGetAPIRequest) GetUnNamed() string { + return r._unNamed +} diff --git a/model/shop/AlibabaDataItemGetAPIResponse.go b/model/shop/AlibabaDataItemGetAPIResponse.go new file mode 100644 index 0000000000..00d93dc51d --- /dev/null +++ b/model/shop/AlibabaDataItemGetAPIResponse.go @@ -0,0 +1,27 @@ +package shop + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商品 API返回值 +alibaba.data.item.get + +获取商品信息,作为客户端Weex鉴权的虚拟api +*/ +type AlibabaDataItemGetAPIResponse struct { + model.CommonResponse + AlibabaDataItemGetAPIResponseModel +} + +// 获取商品 成功返回结果 +type AlibabaDataItemGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_data_item_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 获取商品信息,作为客户端Weex鉴权的虚拟api + Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"` +} diff --git a/model/shop/AlibabaDataItemGetResponse.go b/model/shop/AlibabaDataItemGetResponse.go deleted file mode 100644 index 2239639eef..0000000000 --- a/model/shop/AlibabaDataItemGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package shop - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取商品 API返回值 -alibaba.data.item.get - -获取商品信息,作为客户端Weex鉴权的虚拟api -*/ -type AlibabaDataItemGetAPIResponse struct { - model.CommonResponse - AlibabaDataItemGetResponse -} - -// 获取商品 成功返回结果 -type AlibabaDataItemGetResponse struct { - XMLName xml.Name `xml:"alibaba_data_item_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 获取商品信息,作为客户端Weex鉴权的虚拟api - Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"` -} diff --git a/model/shop/AlibabaDataRecommondGetAPIRequest.go b/model/shop/AlibabaDataRecommondGetAPIRequest.go new file mode 100644 index 0000000000..c34b157dfa --- /dev/null +++ b/model/shop/AlibabaDataRecommondGetAPIRequest.go @@ -0,0 +1,52 @@ +package shop + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取推荐信息 API请求 +alibaba.data.recommond.get + +获取优惠券信息,仅作客户端鉴权虚拟api使用 +*/ +type AlibabaDataRecommondGetAPIRequest struct { + model.Params + // 客户端鉴权虚拟api使用 + _unNamed string +} + +// 初始化AlibabaDataRecommondGetAPIRequest对象 +func NewAlibabaDataRecommondGetRequest() *AlibabaDataRecommondGetAPIRequest{ + return &AlibabaDataRecommondGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDataRecommondGetAPIRequest) GetApiMethodName() string { + return "alibaba.data.recommond.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDataRecommondGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UnNamed Setter +// 客户端鉴权虚拟api使用 +func (r *AlibabaDataRecommondGetAPIRequest) SetUnNamed(_unNamed string) error { + r._unNamed = _unNamed + r.Set("un_named", _unNamed) + return nil +} + +// UnNamed Getter +func (r AlibabaDataRecommondGetAPIRequest) GetUnNamed() string { + return r._unNamed +} diff --git a/model/shop/AlibabaDataRecommondGetAPIResponse.go b/model/shop/AlibabaDataRecommondGetAPIResponse.go new file mode 100644 index 0000000000..564f0a29f6 --- /dev/null +++ b/model/shop/AlibabaDataRecommondGetAPIResponse.go @@ -0,0 +1,27 @@ +package shop + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取推荐信息 API返回值 +alibaba.data.recommond.get + +获取优惠券信息,仅作客户端鉴权虚拟api使用 +*/ +type AlibabaDataRecommondGetAPIResponse struct { + model.CommonResponse + AlibabaDataRecommondGetAPIResponseModel +} + +// 获取推荐信息 成功返回结果 +type AlibabaDataRecommondGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_data_recommond_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 客户端鉴权虚拟api使用 + Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"` +} diff --git a/model/shop/AlibabaDataRecommondGetResponse.go b/model/shop/AlibabaDataRecommondGetResponse.go deleted file mode 100644 index 849572fbed..0000000000 --- a/model/shop/AlibabaDataRecommondGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package shop - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取推荐信息 API返回值 -alibaba.data.recommond.get - -获取优惠券信息,仅作客户端鉴权虚拟api使用 -*/ -type AlibabaDataRecommondGetAPIResponse struct { - model.CommonResponse - AlibabaDataRecommondGetResponse -} - -// 获取推荐信息 成功返回结果 -type AlibabaDataRecommondGetResponse struct { - XMLName xml.Name `xml:"alibaba_data_recommond_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 客户端鉴权虚拟api使用 - Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"` -} diff --git a/model/shop/AlibabaInteractSensorClipbroadAPIRequest.go b/model/shop/AlibabaInteractSensorClipbroadAPIRequest.go new file mode 100644 index 0000000000..f4a39925bc --- /dev/null +++ b/model/shop/AlibabaInteractSensorClipbroadAPIRequest.go @@ -0,0 +1,52 @@ +package shop + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Weex页面设置或读取剪切板 API请求 +alibaba.interact.sensor.clipbroad + +Weex页面设置或读取剪切板 +*/ +type AlibabaInteractSensorClipbroadAPIRequest struct { + model.Params + // 客户端鉴权使用,实际不会发送或接收数据 + _unNamed string +} + +// 初始化AlibabaInteractSensorClipbroadAPIRequest对象 +func NewAlibabaInteractSensorClipbroadRequest() *AlibabaInteractSensorClipbroadAPIRequest{ + return &AlibabaInteractSensorClipbroadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorClipbroadAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.clipbroad" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorClipbroadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UnNamed Setter +// 客户端鉴权使用,实际不会发送或接收数据 +func (r *AlibabaInteractSensorClipbroadAPIRequest) SetUnNamed(_unNamed string) error { + r._unNamed = _unNamed + r.Set("un_named", _unNamed) + return nil +} + +// UnNamed Getter +func (r AlibabaInteractSensorClipbroadAPIRequest) GetUnNamed() string { + return r._unNamed +} diff --git a/model/shop/AlibabaInteractSensorClipbroadAPIResponse.go b/model/shop/AlibabaInteractSensorClipbroadAPIResponse.go new file mode 100644 index 0000000000..3d1811aa21 --- /dev/null +++ b/model/shop/AlibabaInteractSensorClipbroadAPIResponse.go @@ -0,0 +1,27 @@ +package shop + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Weex页面设置或读取剪切板 API返回值 +alibaba.interact.sensor.clipbroad + +Weex页面设置或读取剪切板 +*/ +type AlibabaInteractSensorClipbroadAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorClipbroadAPIResponseModel +} + +// Weex页面设置或读取剪切板 成功返回结果 +type AlibabaInteractSensorClipbroadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_clipbroad_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 客户端鉴权使用,实际不会发送或接收数据 + Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"` +} diff --git a/model/shop/AlibabaInteractSensorClipbroadResponse.go b/model/shop/AlibabaInteractSensorClipbroadResponse.go deleted file mode 100644 index 133c18e839..0000000000 --- a/model/shop/AlibabaInteractSensorClipbroadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package shop - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Weex页面设置或读取剪切板 API返回值 -alibaba.interact.sensor.clipbroad - -Weex页面设置或读取剪切板 -*/ -type AlibabaInteractSensorClipbroadAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorClipbroadResponse -} - -// Weex页面设置或读取剪切板 成功返回结果 -type AlibabaInteractSensorClipbroadResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_clipbroad_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 客户端鉴权使用,实际不会发送或接收数据 - Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"` -} diff --git a/model/shop/AlibabaInteractWindvaneCallAPIRequest.go b/model/shop/AlibabaInteractWindvaneCallAPIRequest.go new file mode 100644 index 0000000000..234a142004 --- /dev/null +++ b/model/shop/AlibabaInteractWindvaneCallAPIRequest.go @@ -0,0 +1,52 @@ +package shop + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Weex页面调用windvane API请求 +alibaba.interact.windvane.call + +客户端鉴权使用,实际不会发送或接收数据 +*/ +type AlibabaInteractWindvaneCallAPIRequest struct { + model.Params + // 客户端鉴权使用,实际不会发送或接收数据 + _unNamed string +} + +// 初始化AlibabaInteractWindvaneCallAPIRequest对象 +func NewAlibabaInteractWindvaneCallRequest() *AlibabaInteractWindvaneCallAPIRequest{ + return &AlibabaInteractWindvaneCallAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractWindvaneCallAPIRequest) GetApiMethodName() string { + return "alibaba.interact.windvane.call" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractWindvaneCallAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UnNamed Setter +// 客户端鉴权使用,实际不会发送或接收数据 +func (r *AlibabaInteractWindvaneCallAPIRequest) SetUnNamed(_unNamed string) error { + r._unNamed = _unNamed + r.Set("un_named", _unNamed) + return nil +} + +// UnNamed Getter +func (r AlibabaInteractWindvaneCallAPIRequest) GetUnNamed() string { + return r._unNamed +} diff --git a/model/shop/AlibabaInteractWindvaneCallAPIResponse.go b/model/shop/AlibabaInteractWindvaneCallAPIResponse.go new file mode 100644 index 0000000000..9baf97fe39 --- /dev/null +++ b/model/shop/AlibabaInteractWindvaneCallAPIResponse.go @@ -0,0 +1,27 @@ +package shop + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Weex页面调用windvane API返回值 +alibaba.interact.windvane.call + +客户端鉴权使用,实际不会发送或接收数据 +*/ +type AlibabaInteractWindvaneCallAPIResponse struct { + model.CommonResponse + AlibabaInteractWindvaneCallAPIResponseModel +} + +// Weex页面调用windvane 成功返回结果 +type AlibabaInteractWindvaneCallAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_windvane_call_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 客户端鉴权使用,实际不会发送或接收数据 + Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"` +} diff --git a/model/shop/AlibabaInteractWindvaneCallResponse.go b/model/shop/AlibabaInteractWindvaneCallResponse.go deleted file mode 100644 index 54baf2d71b..0000000000 --- a/model/shop/AlibabaInteractWindvaneCallResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package shop - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Weex页面调用windvane API返回值 -alibaba.interact.windvane.call - -客户端鉴权使用,实际不会发送或接收数据 -*/ -type AlibabaInteractWindvaneCallAPIResponse struct { - model.CommonResponse - AlibabaInteractWindvaneCallResponse -} - -// Weex页面调用windvane 成功返回结果 -type AlibabaInteractWindvaneCallResponse struct { - XMLName xml.Name `xml:"alibaba_interact_windvane_call_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 客户端鉴权使用,实际不会发送或接收数据 - Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"` -} diff --git a/model/shop/AlibabaKoubeishopsPropertyGetAPIRequest.go b/model/shop/AlibabaKoubeishopsPropertyGetAPIRequest.go new file mode 100644 index 0000000000..46c5e2e16a --- /dev/null +++ b/model/shop/AlibabaKoubeishopsPropertyGetAPIRequest.go @@ -0,0 +1,52 @@ +package shop + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +口碑店铺列表推荐 API请求 +alibaba.koubeishops.property.get + +推荐用户附近的美食门店 +*/ +type AlibabaKoubeishopsPropertyGetAPIRequest struct { + model.Params + // 入参 + _paramOpenApiSearchRequest *OpenApiSearchRequest +} + +// 初始化AlibabaKoubeishopsPropertyGetAPIRequest对象 +func NewAlibabaKoubeishopsPropertyGetRequest() *AlibabaKoubeishopsPropertyGetAPIRequest{ + return &AlibabaKoubeishopsPropertyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaKoubeishopsPropertyGetAPIRequest) GetApiMethodName() string { + return "alibaba.koubeishops.property.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaKoubeishopsPropertyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamOpenApiSearchRequest Setter +// 入参 +func (r *AlibabaKoubeishopsPropertyGetAPIRequest) SetParamOpenApiSearchRequest(_paramOpenApiSearchRequest *OpenApiSearchRequest) error { + r._paramOpenApiSearchRequest = _paramOpenApiSearchRequest + r.Set("param_open_api_search_request", _paramOpenApiSearchRequest) + return nil +} + +// ParamOpenApiSearchRequest Getter +func (r AlibabaKoubeishopsPropertyGetAPIRequest) GetParamOpenApiSearchRequest() *OpenApiSearchRequest { + return r._paramOpenApiSearchRequest +} diff --git a/model/shop/AlibabaKoubeishopsPropertyGetAPIResponse.go b/model/shop/AlibabaKoubeishopsPropertyGetAPIResponse.go new file mode 100644 index 0000000000..a0f642784d --- /dev/null +++ b/model/shop/AlibabaKoubeishopsPropertyGetAPIResponse.go @@ -0,0 +1,27 @@ +package shop + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +口碑店铺列表推荐 API返回值 +alibaba.koubeishops.property.get + +推荐用户附近的美食门店 +*/ +type AlibabaKoubeishopsPropertyGetAPIResponse struct { + model.CommonResponse + AlibabaKoubeishopsPropertyGetAPIResponseModel +} + +// 口碑店铺列表推荐 成功返回结果 +type AlibabaKoubeishopsPropertyGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_koubeishops_property_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *OpenApiSearchResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/shop/AlibabaKoubeishopsPropertyGetResponse.go b/model/shop/AlibabaKoubeishopsPropertyGetResponse.go deleted file mode 100644 index fad428c960..0000000000 --- a/model/shop/AlibabaKoubeishopsPropertyGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package shop - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -口碑店铺列表推荐 API返回值 -alibaba.koubeishops.property.get - -推荐用户附近的美食门店 -*/ -type AlibabaKoubeishopsPropertyGetAPIResponse struct { - model.CommonResponse - AlibabaKoubeishopsPropertyGetResponse -} - -// 口碑店铺列表推荐 成功返回结果 -type AlibabaKoubeishopsPropertyGetResponse struct { - XMLName xml.Name `xml:"alibaba_koubeishops_property_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *OpenApiSearchResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/shop/AlibabaTaobaoShopCatNeoGetAPIRequest.go b/model/shop/AlibabaTaobaoShopCatNeoGetAPIRequest.go new file mode 100644 index 0000000000..891c6db5cf --- /dev/null +++ b/model/shop/AlibabaTaobaoShopCatNeoGetAPIRequest.go @@ -0,0 +1,52 @@ +package shop + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +店铺mtop接口鉴权虚拟api API请求 +alibaba.taobao.shop.cat.neo.get + +获取优惠券信息,仅作客户端鉴权虚拟api使用 +*/ +type AlibabaTaobaoShopCatNeoGetAPIRequest struct { + model.Params + // 客户端鉴权虚拟api + _unNamed string +} + +// 初始化AlibabaTaobaoShopCatNeoGetAPIRequest对象 +func NewAlibabaTaobaoShopCatNeoGetRequest() *AlibabaTaobaoShopCatNeoGetAPIRequest{ + return &AlibabaTaobaoShopCatNeoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTaobaoShopCatNeoGetAPIRequest) GetApiMethodName() string { + return "alibaba.taobao.shop.cat.neo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTaobaoShopCatNeoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UnNamed Setter +// 客户端鉴权虚拟api +func (r *AlibabaTaobaoShopCatNeoGetAPIRequest) SetUnNamed(_unNamed string) error { + r._unNamed = _unNamed + r.Set("un_named", _unNamed) + return nil +} + +// UnNamed Getter +func (r AlibabaTaobaoShopCatNeoGetAPIRequest) GetUnNamed() string { + return r._unNamed +} diff --git a/model/shop/AlibabaTaobaoShopCatNeoGetAPIResponse.go b/model/shop/AlibabaTaobaoShopCatNeoGetAPIResponse.go new file mode 100644 index 0000000000..c31598beaf --- /dev/null +++ b/model/shop/AlibabaTaobaoShopCatNeoGetAPIResponse.go @@ -0,0 +1,27 @@ +package shop + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +店铺mtop接口鉴权虚拟api API返回值 +alibaba.taobao.shop.cat.neo.get + +获取优惠券信息,仅作客户端鉴权虚拟api使用 +*/ +type AlibabaTaobaoShopCatNeoGetAPIResponse struct { + model.CommonResponse + AlibabaTaobaoShopCatNeoGetAPIResponseModel +} + +// 店铺mtop接口鉴权虚拟api 成功返回结果 +type AlibabaTaobaoShopCatNeoGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_taobao_shop_cat_neo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 客户端鉴权虚拟api + Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"` +} diff --git a/model/shop/AlibabaTaobaoShopCatNeoGetResponse.go b/model/shop/AlibabaTaobaoShopCatNeoGetResponse.go deleted file mode 100644 index bb54b9a471..0000000000 --- a/model/shop/AlibabaTaobaoShopCatNeoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package shop - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -店铺mtop接口鉴权虚拟api API返回值 -alibaba.taobao.shop.cat.neo.get - -获取优惠券信息,仅作客户端鉴权虚拟api使用 -*/ -type AlibabaTaobaoShopCatNeoGetAPIResponse struct { - model.CommonResponse - AlibabaTaobaoShopCatNeoGetResponse -} - -// 店铺mtop接口鉴权虚拟api 成功返回结果 -type AlibabaTaobaoShopCatNeoGetResponse struct { - XMLName xml.Name `xml:"alibaba_taobao_shop_cat_neo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 客户端鉴权虚拟api - Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"` -} diff --git a/model/shop/TaobaoSellercatsListAddAPIRequest.go b/model/shop/TaobaoSellercatsListAddAPIRequest.go new file mode 100644 index 0000000000..51c863abbe --- /dev/null +++ b/model/shop/TaobaoSellercatsListAddAPIRequest.go @@ -0,0 +1,94 @@ +package shop + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加卖家自定义类目 API请求 +taobao.sellercats.list.add + +此API添加卖家店铺内自定义类目
父类目parent_cid值等于0:表示此类目为店铺下的一级类目,值不等于0:表示此类目有父类目
注:因为缓存的关系,添加的新类目需8个小时后才可以在淘宝页面上正常显示,但是不影响在该类目下商品发布 +*/ +type TaobaoSellercatsListAddAPIRequest struct { + model.Params + // 卖家自定义类目名称。不超过20个字符 + _name string + // 链接图片URL地址。(绝对地址,格式:http://host/image_path) + _pictUrl string + // 父类目编号,如果类目为店铺下的一级类目:值等于0,如果类目为子类目,调用获取taobao.sellercats.list.get父类目编号 + _parentCid int64 + // 该类目在页面上的排序位置,取值范围:大于零的整数 + _sortOrder int64 +} + +// 初始化TaobaoSellercatsListAddAPIRequest对象 +func NewTaobaoSellercatsListAddRequest() *TaobaoSellercatsListAddAPIRequest{ + return &TaobaoSellercatsListAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSellercatsListAddAPIRequest) GetApiMethodName() string { + return "taobao.sellercats.list.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSellercatsListAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// 卖家自定义类目名称。不超过20个字符 +func (r *TaobaoSellercatsListAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoSellercatsListAddAPIRequest) GetName() string { + return r._name +} +// PictUrl Setter +// 链接图片URL地址。(绝对地址,格式:http://host/image_path) +func (r *TaobaoSellercatsListAddAPIRequest) SetPictUrl(_pictUrl string) error { + r._pictUrl = _pictUrl + r.Set("pict_url", _pictUrl) + return nil +} + +// PictUrl Getter +func (r TaobaoSellercatsListAddAPIRequest) GetPictUrl() string { + return r._pictUrl +} +// ParentCid Setter +// 父类目编号,如果类目为店铺下的一级类目:值等于0,如果类目为子类目,调用获取taobao.sellercats.list.get父类目编号 +func (r *TaobaoSellercatsListAddAPIRequest) SetParentCid(_parentCid int64) error { + r._parentCid = _parentCid + r.Set("parent_cid", _parentCid) + return nil +} + +// ParentCid Getter +func (r TaobaoSellercatsListAddAPIRequest) GetParentCid() int64 { + return r._parentCid +} +// SortOrder Setter +// 该类目在页面上的排序位置,取值范围:大于零的整数 +func (r *TaobaoSellercatsListAddAPIRequest) SetSortOrder(_sortOrder int64) error { + r._sortOrder = _sortOrder + r.Set("sort_order", _sortOrder) + return nil +} + +// SortOrder Getter +func (r TaobaoSellercatsListAddAPIRequest) GetSortOrder() int64 { + return r._sortOrder +} diff --git a/model/shop/TaobaoSellercatsListAddAPIResponse.go b/model/shop/TaobaoSellercatsListAddAPIResponse.go new file mode 100644 index 0000000000..8e261b26c3 --- /dev/null +++ b/model/shop/TaobaoSellercatsListAddAPIResponse.go @@ -0,0 +1,27 @@ +package shop + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加卖家自定义类目 API返回值 +taobao.sellercats.list.add + +此API添加卖家店铺内自定义类目
父类目parent_cid值等于0:表示此类目为店铺下的一级类目,值不等于0:表示此类目有父类目
注:因为缓存的关系,添加的新类目需8个小时后才可以在淘宝页面上正常显示,但是不影响在该类目下商品发布 +*/ +type TaobaoSellercatsListAddAPIResponse struct { + model.CommonResponse + TaobaoSellercatsListAddAPIResponseModel +} + +// 添加卖家自定义类目 成功返回结果 +type TaobaoSellercatsListAddAPIResponseModel struct { + XMLName xml.Name `xml:"sellercats_list_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回seller_cat数据结构中的:cid,created + SellerCat *SellerCat `json:"seller_cat,omitempty" xml:"seller_cat,omitempty"` +} diff --git a/model/shop/TaobaoSellercatsListAddResponse.go b/model/shop/TaobaoSellercatsListAddResponse.go deleted file mode 100644 index fddf73090a..0000000000 --- a/model/shop/TaobaoSellercatsListAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package shop - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加卖家自定义类目 API返回值 -taobao.sellercats.list.add - -此API添加卖家店铺内自定义类目
父类目parent_cid值等于0:表示此类目为店铺下的一级类目,值不等于0:表示此类目有父类目
注:因为缓存的关系,添加的新类目需8个小时后才可以在淘宝页面上正常显示,但是不影响在该类目下商品发布 -*/ -type TaobaoSellercatsListAddAPIResponse struct { - model.CommonResponse - TaobaoSellercatsListAddResponse -} - -// 添加卖家自定义类目 成功返回结果 -type TaobaoSellercatsListAddResponse struct { - XMLName xml.Name `xml:"sellercats_list_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回seller_cat数据结构中的:cid,created - SellerCat *SellerCat `json:"seller_cat,omitempty" xml:"seller_cat,omitempty"` -} diff --git a/model/shop/TaobaoSellercatsListGetAPIRequest.go b/model/shop/TaobaoSellercatsListGetAPIRequest.go new file mode 100644 index 0000000000..c4dfe3a1f6 --- /dev/null +++ b/model/shop/TaobaoSellercatsListGetAPIRequest.go @@ -0,0 +1,38 @@ +package shop + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取前台展示的店铺内卖家自定义商品类目 API请求 +taobao.sellercats.list.get + +此API获取当前卖家店铺在淘宝前端被展示的浏览导航类目(面向买家) +*/ +type TaobaoSellercatsListGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoSellercatsListGetAPIRequest对象 +func NewTaobaoSellercatsListGetRequest() *TaobaoSellercatsListGetAPIRequest{ + return &TaobaoSellercatsListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSellercatsListGetAPIRequest) GetApiMethodName() string { + return "taobao.sellercats.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSellercatsListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/shop/TaobaoSellercatsListGetAPIResponse.go b/model/shop/TaobaoSellercatsListGetAPIResponse.go new file mode 100644 index 0000000000..e7540b29bc --- /dev/null +++ b/model/shop/TaobaoSellercatsListGetAPIResponse.go @@ -0,0 +1,27 @@ +package shop + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取前台展示的店铺内卖家自定义商品类目 API返回值 +taobao.sellercats.list.get + +此API获取当前卖家店铺在淘宝前端被展示的浏览导航类目(面向买家) +*/ +type TaobaoSellercatsListGetAPIResponse struct { + model.CommonResponse + TaobaoSellercatsListGetAPIResponseModel +} + +// 获取前台展示的店铺内卖家自定义商品类目 成功返回结果 +type TaobaoSellercatsListGetAPIResponseModel struct { + XMLName xml.Name `xml:"sellercats_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 卖家自定义类目 + SellerCats []SellerCat `json:"seller_cats,omitempty" xml:"seller_cats>seller_cat,omitempty"` +} diff --git a/model/shop/TaobaoSellercatsListGetResponse.go b/model/shop/TaobaoSellercatsListGetResponse.go deleted file mode 100644 index 29f0e2aff1..0000000000 --- a/model/shop/TaobaoSellercatsListGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package shop - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取前台展示的店铺内卖家自定义商品类目 API返回值 -taobao.sellercats.list.get - -此API获取当前卖家店铺在淘宝前端被展示的浏览导航类目(面向买家) -*/ -type TaobaoSellercatsListGetAPIResponse struct { - model.CommonResponse - TaobaoSellercatsListGetResponse -} - -// 获取前台展示的店铺内卖家自定义商品类目 成功返回结果 -type TaobaoSellercatsListGetResponse struct { - XMLName xml.Name `xml:"sellercats_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 卖家自定义类目 - SellerCats []SellerCat `json:"seller_cats,omitempty" xml:"seller_cats>seller_cat,omitempty"` -} diff --git a/model/shop/TaobaoSellercatsListUpdateAPIRequest.go b/model/shop/TaobaoSellercatsListUpdateAPIRequest.go new file mode 100644 index 0000000000..03ba4e8a42 --- /dev/null +++ b/model/shop/TaobaoSellercatsListUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package shop + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新卖家自定义类目 API请求 +taobao.sellercats.list.update + +此API更新卖家店铺内自定义类目
注:因为缓存的关系,添加的新类目需8个小时后才可以在淘宝页面上正常显示,但是不影响在该类目下商品发布 +*/ +type TaobaoSellercatsListUpdateAPIRequest struct { + model.Params + // 卖家自定义类目编号 + _cid int64 + // 卖家自定义类目名称。不超过20个字符 + _name string + // 链接图片URL地址 + _pictUrl string + // 该类目在页面上的排序位置,取值范围:大于零的整数 + _sortOrder int64 +} + +// 初始化TaobaoSellercatsListUpdateAPIRequest对象 +func NewTaobaoSellercatsListUpdateRequest() *TaobaoSellercatsListUpdateAPIRequest{ + return &TaobaoSellercatsListUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSellercatsListUpdateAPIRequest) GetApiMethodName() string { + return "taobao.sellercats.list.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSellercatsListUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Cid Setter +// 卖家自定义类目编号 +func (r *TaobaoSellercatsListUpdateAPIRequest) SetCid(_cid int64) error { + r._cid = _cid + r.Set("cid", _cid) + return nil +} + +// Cid Getter +func (r TaobaoSellercatsListUpdateAPIRequest) GetCid() int64 { + return r._cid +} +// Name Setter +// 卖家自定义类目名称。不超过20个字符 +func (r *TaobaoSellercatsListUpdateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoSellercatsListUpdateAPIRequest) GetName() string { + return r._name +} +// PictUrl Setter +// 链接图片URL地址 +func (r *TaobaoSellercatsListUpdateAPIRequest) SetPictUrl(_pictUrl string) error { + r._pictUrl = _pictUrl + r.Set("pict_url", _pictUrl) + return nil +} + +// PictUrl Getter +func (r TaobaoSellercatsListUpdateAPIRequest) GetPictUrl() string { + return r._pictUrl +} +// SortOrder Setter +// 该类目在页面上的排序位置,取值范围:大于零的整数 +func (r *TaobaoSellercatsListUpdateAPIRequest) SetSortOrder(_sortOrder int64) error { + r._sortOrder = _sortOrder + r.Set("sort_order", _sortOrder) + return nil +} + +// SortOrder Getter +func (r TaobaoSellercatsListUpdateAPIRequest) GetSortOrder() int64 { + return r._sortOrder +} diff --git a/model/shop/TaobaoSellercatsListUpdateAPIResponse.go b/model/shop/TaobaoSellercatsListUpdateAPIResponse.go new file mode 100644 index 0000000000..69895b9a16 --- /dev/null +++ b/model/shop/TaobaoSellercatsListUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package shop + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新卖家自定义类目 API返回值 +taobao.sellercats.list.update + +此API更新卖家店铺内自定义类目
注:因为缓存的关系,添加的新类目需8个小时后才可以在淘宝页面上正常显示,但是不影响在该类目下商品发布 +*/ +type TaobaoSellercatsListUpdateAPIResponse struct { + model.CommonResponse + TaobaoSellercatsListUpdateAPIResponseModel +} + +// 更新卖家自定义类目 成功返回结果 +type TaobaoSellercatsListUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"sellercats_list_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回sellercat数据结构中的:cid,modified + SellerCat *SellerCat `json:"seller_cat,omitempty" xml:"seller_cat,omitempty"` +} diff --git a/model/shop/TaobaoSellercatsListUpdateResponse.go b/model/shop/TaobaoSellercatsListUpdateResponse.go deleted file mode 100644 index a172ed0582..0000000000 --- a/model/shop/TaobaoSellercatsListUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package shop - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新卖家自定义类目 API返回值 -taobao.sellercats.list.update - -此API更新卖家店铺内自定义类目
注:因为缓存的关系,添加的新类目需8个小时后才可以在淘宝页面上正常显示,但是不影响在该类目下商品发布 -*/ -type TaobaoSellercatsListUpdateAPIResponse struct { - model.CommonResponse - TaobaoSellercatsListUpdateResponse -} - -// 更新卖家自定义类目 成功返回结果 -type TaobaoSellercatsListUpdateResponse struct { - XMLName xml.Name `xml:"sellercats_list_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回sellercat数据结构中的:cid,modified - SellerCat *SellerCat `json:"seller_cat,omitempty" xml:"seller_cat,omitempty"` -} diff --git a/model/shop/TaobaoShopSellerGetAPIRequest.go b/model/shop/TaobaoShopSellerGetAPIRequest.go new file mode 100644 index 0000000000..6c6e512fcb --- /dev/null +++ b/model/shop/TaobaoShopSellerGetAPIRequest.go @@ -0,0 +1,52 @@ +package shop + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家店铺基础信息查询 API请求 +taobao.shop.seller.get + +获取卖家店铺的基本信息 +*/ +type TaobaoShopSellerGetAPIRequest struct { + model.Params + // 需返回的字段列表。可选值:Shop 结构中的所有字段;多个字段之间用逗号(,)分隔 + _fields string +} + +// 初始化TaobaoShopSellerGetAPIRequest对象 +func NewTaobaoShopSellerGetRequest() *TaobaoShopSellerGetAPIRequest{ + return &TaobaoShopSellerGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoShopSellerGetAPIRequest) GetApiMethodName() string { + return "taobao.shop.seller.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoShopSellerGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需返回的字段列表。可选值:Shop 结构中的所有字段;多个字段之间用逗号(,)分隔 +func (r *TaobaoShopSellerGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoShopSellerGetAPIRequest) GetFields() string { + return r._fields +} diff --git a/model/shop/TaobaoShopSellerGetAPIResponse.go b/model/shop/TaobaoShopSellerGetAPIResponse.go new file mode 100644 index 0000000000..6227fa8b21 --- /dev/null +++ b/model/shop/TaobaoShopSellerGetAPIResponse.go @@ -0,0 +1,27 @@ +package shop + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家店铺基础信息查询 API返回值 +taobao.shop.seller.get + +获取卖家店铺的基本信息 +*/ +type TaobaoShopSellerGetAPIResponse struct { + model.CommonResponse + TaobaoShopSellerGetAPIResponseModel +} + +// 卖家店铺基础信息查询 成功返回结果 +type TaobaoShopSellerGetAPIResponseModel struct { + XMLName xml.Name `xml:"shop_seller_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 店铺信息 + Shop *Shop `json:"shop,omitempty" xml:"shop,omitempty"` +} diff --git a/model/shop/TaobaoShopSellerGetResponse.go b/model/shop/TaobaoShopSellerGetResponse.go deleted file mode 100644 index 9b7319774e..0000000000 --- a/model/shop/TaobaoShopSellerGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package shop - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家店铺基础信息查询 API返回值 -taobao.shop.seller.get - -获取卖家店铺的基本信息 -*/ -type TaobaoShopSellerGetAPIResponse struct { - model.CommonResponse - TaobaoShopSellerGetResponse -} - -// 卖家店铺基础信息查询 成功返回结果 -type TaobaoShopSellerGetResponse struct { - XMLName xml.Name `xml:"shop_seller_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 店铺信息 - Shop *Shop `json:"shop,omitempty" xml:"shop,omitempty"` -} diff --git a/model/shop/TaobaoShopUpdateAPIRequest.go b/model/shop/TaobaoShopUpdateAPIRequest.go new file mode 100644 index 0000000000..b0eb62fb11 --- /dev/null +++ b/model/shop/TaobaoShopUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package shop + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新店铺基本信息 API请求 +taobao.shop.update + +目前只支持标题、公告和描述的更新 +*/ +type TaobaoShopUpdateAPIRequest struct { + model.Params + // 店铺标题。不超过30个字符;过滤敏感词,如淘咖啡、阿里巴巴等。title, bulletin和desc至少必须传一个 + _title string + // 店铺公告。不超过1024个字符 + _bulletin string + // 店铺描述。10~2000个字符以内 + _desc string +} + +// 初始化TaobaoShopUpdateAPIRequest对象 +func NewTaobaoShopUpdateRequest() *TaobaoShopUpdateAPIRequest{ + return &TaobaoShopUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoShopUpdateAPIRequest) GetApiMethodName() string { + return "taobao.shop.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoShopUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Title Setter +// 店铺标题。不超过30个字符;过滤敏感词,如淘咖啡、阿里巴巴等。title, bulletin和desc至少必须传一个 +func (r *TaobaoShopUpdateAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoShopUpdateAPIRequest) GetTitle() string { + return r._title +} +// Bulletin Setter +// 店铺公告。不超过1024个字符 +func (r *TaobaoShopUpdateAPIRequest) SetBulletin(_bulletin string) error { + r._bulletin = _bulletin + r.Set("bulletin", _bulletin) + return nil +} + +// Bulletin Getter +func (r TaobaoShopUpdateAPIRequest) GetBulletin() string { + return r._bulletin +} +// Desc Setter +// 店铺描述。10~2000个字符以内 +func (r *TaobaoShopUpdateAPIRequest) SetDesc(_desc string) error { + r._desc = _desc + r.Set("desc", _desc) + return nil +} + +// Desc Getter +func (r TaobaoShopUpdateAPIRequest) GetDesc() string { + return r._desc +} diff --git a/model/shop/TaobaoShopUpdateAPIResponse.go b/model/shop/TaobaoShopUpdateAPIResponse.go new file mode 100644 index 0000000000..fa95385144 --- /dev/null +++ b/model/shop/TaobaoShopUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package shop + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新店铺基本信息 API返回值 +taobao.shop.update + +目前只支持标题、公告和描述的更新 +*/ +type TaobaoShopUpdateAPIResponse struct { + model.CommonResponse + TaobaoShopUpdateAPIResponseModel +} + +// 更新店铺基本信息 成功返回结果 +type TaobaoShopUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"shop_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 店铺信息 + Shop *Shop `json:"shop,omitempty" xml:"shop,omitempty"` +} diff --git a/model/shop/TaobaoShopUpdateResponse.go b/model/shop/TaobaoShopUpdateResponse.go deleted file mode 100644 index 1d13e73467..0000000000 --- a/model/shop/TaobaoShopUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package shop - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新店铺基本信息 API返回值 -taobao.shop.update - -目前只支持标题、公告和描述的更新 -*/ -type TaobaoShopUpdateAPIResponse struct { - model.CommonResponse - TaobaoShopUpdateResponse -} - -// 更新店铺基本信息 成功返回结果 -type TaobaoShopUpdateResponse struct { - XMLName xml.Name `xml:"shop_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 店铺信息 - Shop *Shop `json:"shop,omitempty" xml:"shop,omitempty"` -} diff --git a/model/shop/TaobaoShopcatsListGetAPIRequest.go b/model/shop/TaobaoShopcatsListGetAPIRequest.go new file mode 100644 index 0000000000..da0bd5e42e --- /dev/null +++ b/model/shop/TaobaoShopcatsListGetAPIRequest.go @@ -0,0 +1,52 @@ +package shop + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取前台展示的店铺类目 API请求 +taobao.shopcats.list.get + +获取淘宝面向买家的浏览导航类目(跟后台卖家商品管理的类目有差异) +*/ +type TaobaoShopcatsListGetAPIRequest struct { + model.Params + // 需要返回的字段列表,见ShopCat,默认返回:cid,parent_cid,name,is_parent + _fields []string +} + +// 初始化TaobaoShopcatsListGetAPIRequest对象 +func NewTaobaoShopcatsListGetRequest() *TaobaoShopcatsListGetAPIRequest{ + return &TaobaoShopcatsListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoShopcatsListGetAPIRequest) GetApiMethodName() string { + return "taobao.shopcats.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoShopcatsListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的字段列表,见ShopCat,默认返回:cid,parent_cid,name,is_parent +func (r *TaobaoShopcatsListGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoShopcatsListGetAPIRequest) GetFields() []string { + return r._fields +} diff --git a/model/shop/TaobaoShopcatsListGetAPIResponse.go b/model/shop/TaobaoShopcatsListGetAPIResponse.go new file mode 100644 index 0000000000..9b17aadc93 --- /dev/null +++ b/model/shop/TaobaoShopcatsListGetAPIResponse.go @@ -0,0 +1,27 @@ +package shop + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取前台展示的店铺类目 API返回值 +taobao.shopcats.list.get + +获取淘宝面向买家的浏览导航类目(跟后台卖家商品管理的类目有差异) +*/ +type TaobaoShopcatsListGetAPIResponse struct { + model.CommonResponse + TaobaoShopcatsListGetAPIResponseModel +} + +// 获取前台展示的店铺类目 成功返回结果 +type TaobaoShopcatsListGetAPIResponseModel struct { + XMLName xml.Name `xml:"shopcats_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 店铺类目列表信息 + ShopCats []ShopCat `json:"shop_cats,omitempty" xml:"shop_cats>shop_cat,omitempty"` +} diff --git a/model/shop/TaobaoShopcatsListGetResponse.go b/model/shop/TaobaoShopcatsListGetResponse.go deleted file mode 100644 index 0c49f92496..0000000000 --- a/model/shop/TaobaoShopcatsListGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package shop - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取前台展示的店铺类目 API返回值 -taobao.shopcats.list.get - -获取淘宝面向买家的浏览导航类目(跟后台卖家商品管理的类目有差异) -*/ -type TaobaoShopcatsListGetAPIResponse struct { - model.CommonResponse - TaobaoShopcatsListGetResponse -} - -// 获取前台展示的店铺类目 成功返回结果 -type TaobaoShopcatsListGetResponse struct { - XMLName xml.Name `xml:"shopcats_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 店铺类目列表信息 - ShopCats []ShopCat `json:"shop_cats,omitempty" xml:"shop_cats>shop_cat,omitempty"` -} diff --git a/model/shop/TaobaoStoreFollowurlGetAPIRequest.go b/model/shop/TaobaoStoreFollowurlGetAPIRequest.go new file mode 100644 index 0000000000..6c19aa2fe7 --- /dev/null +++ b/model/shop/TaobaoStoreFollowurlGetAPIRequest.go @@ -0,0 +1,80 @@ +package shop + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取店铺关注URL API请求 +taobao.store.followurl.get + +获取关注店铺的URL +*/ +type TaobaoStoreFollowurlGetAPIRequest struct { + model.Params + // 关注完成后的回调地址,需要是EWS地址。如果不设置,会跳转到店铺首页 + _callbackUrl string + // 商家nick + _userNick string + // 商家ID + _userId int64 +} + +// 初始化TaobaoStoreFollowurlGetAPIRequest对象 +func NewTaobaoStoreFollowurlGetRequest() *TaobaoStoreFollowurlGetAPIRequest{ + return &TaobaoStoreFollowurlGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoStoreFollowurlGetAPIRequest) GetApiMethodName() string { + return "taobao.store.followurl.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoStoreFollowurlGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CallbackUrl Setter +// 关注完成后的回调地址,需要是EWS地址。如果不设置,会跳转到店铺首页 +func (r *TaobaoStoreFollowurlGetAPIRequest) SetCallbackUrl(_callbackUrl string) error { + r._callbackUrl = _callbackUrl + r.Set("callback_url", _callbackUrl) + return nil +} + +// CallbackUrl Getter +func (r TaobaoStoreFollowurlGetAPIRequest) GetCallbackUrl() string { + return r._callbackUrl +} +// UserNick Setter +// 商家nick +func (r *TaobaoStoreFollowurlGetAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r TaobaoStoreFollowurlGetAPIRequest) GetUserNick() string { + return r._userNick +} +// UserId Setter +// 商家ID +func (r *TaobaoStoreFollowurlGetAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoStoreFollowurlGetAPIRequest) GetUserId() int64 { + return r._userId +} diff --git a/model/shop/TaobaoStoreFollowurlGetAPIResponse.go b/model/shop/TaobaoStoreFollowurlGetAPIResponse.go new file mode 100644 index 0000000000..203d51c96a --- /dev/null +++ b/model/shop/TaobaoStoreFollowurlGetAPIResponse.go @@ -0,0 +1,27 @@ +package shop + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取店铺关注URL API返回值 +taobao.store.followurl.get + +获取关注店铺的URL +*/ +type TaobaoStoreFollowurlGetAPIResponse struct { + model.CommonResponse + TaobaoStoreFollowurlGetAPIResponseModel +} + +// 获取店铺关注URL 成功返回结果 +type TaobaoStoreFollowurlGetAPIResponseModel struct { + XMLName xml.Name `xml:"store_followurl_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 店铺关注URL + Url string `json:"url,omitempty" xml:"url,omitempty"` +} diff --git a/model/shop/TaobaoStoreFollowurlGetResponse.go b/model/shop/TaobaoStoreFollowurlGetResponse.go deleted file mode 100644 index 11f92a36f4..0000000000 --- a/model/shop/TaobaoStoreFollowurlGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package shop - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取店铺关注URL API返回值 -taobao.store.followurl.get - -获取关注店铺的URL -*/ -type TaobaoStoreFollowurlGetAPIResponse struct { - model.CommonResponse - TaobaoStoreFollowurlGetResponse -} - -// 获取店铺关注URL 成功返回结果 -type TaobaoStoreFollowurlGetResponse struct { - XMLName xml.Name `xml:"store_followurl_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 店铺关注URL - Url string `json:"url,omitempty" xml:"url,omitempty"` -} diff --git a/model/simba/TaobaoSimbaAccountBalanceGetAPIRequest.go b/model/simba/TaobaoSimbaAccountBalanceGetAPIRequest.go new file mode 100644 index 0000000000..2a6dd18899 --- /dev/null +++ b/model/simba/TaobaoSimbaAccountBalanceGetAPIRequest.go @@ -0,0 +1,52 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取实时余额,”元”为单位 API请求 +taobao.simba.account.balance.get + +获取实时余额,”元”为单位 +*/ +type TaobaoSimbaAccountBalanceGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string +} + +// 初始化TaobaoSimbaAccountBalanceGetAPIRequest对象 +func NewTaobaoSimbaAccountBalanceGetRequest() *TaobaoSimbaAccountBalanceGetAPIRequest{ + return &TaobaoSimbaAccountBalanceGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaAccountBalanceGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.account.balance.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaAccountBalanceGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaAccountBalanceGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaAccountBalanceGetAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/simba/TaobaoSimbaAccountBalanceGetAPIResponse.go b/model/simba/TaobaoSimbaAccountBalanceGetAPIResponse.go new file mode 100644 index 0000000000..b19d56b62d --- /dev/null +++ b/model/simba/TaobaoSimbaAccountBalanceGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取实时余额,”元”为单位 API返回值 +taobao.simba.account.balance.get + +获取实时余额,”元”为单位 +*/ +type TaobaoSimbaAccountBalanceGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaAccountBalanceGetAPIResponseModel +} + +// 获取实时余额,”元”为单位 成功返回结果 +type TaobaoSimbaAccountBalanceGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_account_balance_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 实时余额,”元”为单位 + Balance string `json:"balance,omitempty" xml:"balance,omitempty"` +} diff --git a/model/simba/TaobaoSimbaAccountBalanceGetResponse.go b/model/simba/TaobaoSimbaAccountBalanceGetResponse.go deleted file mode 100644 index 946da742ef..0000000000 --- a/model/simba/TaobaoSimbaAccountBalanceGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取实时余额,”元”为单位 API返回值 -taobao.simba.account.balance.get - -获取实时余额,”元”为单位 -*/ -type TaobaoSimbaAccountBalanceGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaAccountBalanceGetResponse -} - -// 获取实时余额,”元”为单位 成功返回结果 -type TaobaoSimbaAccountBalanceGetResponse struct { - XMLName xml.Name `xml:"simba_account_balance_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 实时余额,”元”为单位 - Balance string `json:"balance,omitempty" xml:"balance,omitempty"` -} diff --git a/model/simba/TaobaoSimbaAdgroupAddAPIRequest.go b/model/simba/TaobaoSimbaAdgroupAddAPIRequest.go new file mode 100644 index 0000000000..82c1abbc41 --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupAddAPIRequest.go @@ -0,0 +1,122 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建一个推广组 API请求 +taobao.simba.adgroup.add + +创建一个推广组 +*/ +type TaobaoSimbaAdgroupAddAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广计划Id + _campaignId int64 + // 商品Id + _itemId int64 + // 推广组默认出价,单位为分,不能小于5 不能大于日最高限额 + _defaultPrice int64 + // 创意标题,最多20个汉字 + _title string + // 创意图片地址,必须是商品的图片之一 + _imgUrl string +} + +// 初始化TaobaoSimbaAdgroupAddAPIRequest对象 +func NewTaobaoSimbaAdgroupAddRequest() *TaobaoSimbaAdgroupAddAPIRequest{ + return &TaobaoSimbaAdgroupAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaAdgroupAddAPIRequest) GetApiMethodName() string { + return "taobao.simba.adgroup.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaAdgroupAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaAdgroupAddAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaAdgroupAddAPIRequest) GetNick() string { + return r._nick +} +// CampaignId Setter +// 推广计划Id +func (r *TaobaoSimbaAdgroupAddAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaAdgroupAddAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// ItemId Setter +// 商品Id +func (r *TaobaoSimbaAdgroupAddAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoSimbaAdgroupAddAPIRequest) GetItemId() int64 { + return r._itemId +} +// DefaultPrice Setter +// 推广组默认出价,单位为分,不能小于5 不能大于日最高限额 +func (r *TaobaoSimbaAdgroupAddAPIRequest) SetDefaultPrice(_defaultPrice int64) error { + r._defaultPrice = _defaultPrice + r.Set("default_price", _defaultPrice) + return nil +} + +// DefaultPrice Getter +func (r TaobaoSimbaAdgroupAddAPIRequest) GetDefaultPrice() int64 { + return r._defaultPrice +} +// Title Setter +// 创意标题,最多20个汉字 +func (r *TaobaoSimbaAdgroupAddAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoSimbaAdgroupAddAPIRequest) GetTitle() string { + return r._title +} +// ImgUrl Setter +// 创意图片地址,必须是商品的图片之一 +func (r *TaobaoSimbaAdgroupAddAPIRequest) SetImgUrl(_imgUrl string) error { + r._imgUrl = _imgUrl + r.Set("img_url", _imgUrl) + return nil +} + +// ImgUrl Getter +func (r TaobaoSimbaAdgroupAddAPIRequest) GetImgUrl() string { + return r._imgUrl +} diff --git a/model/simba/TaobaoSimbaAdgroupAddAPIResponse.go b/model/simba/TaobaoSimbaAdgroupAddAPIResponse.go new file mode 100644 index 0000000000..eb2e02b334 --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupAddAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建一个推广组 API返回值 +taobao.simba.adgroup.add + +创建一个推广组 +*/ +type TaobaoSimbaAdgroupAddAPIResponse struct { + model.CommonResponse + TaobaoSimbaAdgroupAddAPIResponseModel +} + +// 创建一个推广组 成功返回结果 +type TaobaoSimbaAdgroupAddAPIResponseModel struct { + XMLName xml.Name `xml:"simba_adgroup_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 新增加的推广组 + Adgroup *ADGroup `json:"adgroup,omitempty" xml:"adgroup,omitempty"` +} diff --git a/model/simba/TaobaoSimbaAdgroupAddResponse.go b/model/simba/TaobaoSimbaAdgroupAddResponse.go deleted file mode 100644 index 2b97c45408..0000000000 --- a/model/simba/TaobaoSimbaAdgroupAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建一个推广组 API返回值 -taobao.simba.adgroup.add - -创建一个推广组 -*/ -type TaobaoSimbaAdgroupAddAPIResponse struct { - model.CommonResponse - TaobaoSimbaAdgroupAddResponse -} - -// 创建一个推广组 成功返回结果 -type TaobaoSimbaAdgroupAddResponse struct { - XMLName xml.Name `xml:"simba_adgroup_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 新增加的推广组 - Adgroup *ADGroup `json:"adgroup,omitempty" xml:"adgroup,omitempty"` -} diff --git a/model/simba/TaobaoSimbaAdgroupDeleteAPIRequest.go b/model/simba/TaobaoSimbaAdgroupDeleteAPIRequest.go new file mode 100644 index 0000000000..b60af3c077 --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除一个推广组 API请求 +taobao.simba.adgroup.delete + +删除一个推广组 +*/ +type TaobaoSimbaAdgroupDeleteAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广组Id + _adgroupId int64 +} + +// 初始化TaobaoSimbaAdgroupDeleteAPIRequest对象 +func NewTaobaoSimbaAdgroupDeleteRequest() *TaobaoSimbaAdgroupDeleteAPIRequest{ + return &TaobaoSimbaAdgroupDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaAdgroupDeleteAPIRequest) GetApiMethodName() string { + return "taobao.simba.adgroup.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaAdgroupDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaAdgroupDeleteAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaAdgroupDeleteAPIRequest) GetNick() string { + return r._nick +} +// AdgroupId Setter +// 推广组Id +func (r *TaobaoSimbaAdgroupDeleteAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaAdgroupDeleteAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/simba/TaobaoSimbaAdgroupDeleteAPIResponse.go b/model/simba/TaobaoSimbaAdgroupDeleteAPIResponse.go new file mode 100644 index 0000000000..a573180360 --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除一个推广组 API返回值 +taobao.simba.adgroup.delete + +删除一个推广组 +*/ +type TaobaoSimbaAdgroupDeleteAPIResponse struct { + model.CommonResponse + TaobaoSimbaAdgroupDeleteAPIResponseModel +} + +// 删除一个推广组 成功返回结果 +type TaobaoSimbaAdgroupDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"simba_adgroup_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 被删除的推广组 + Adgroup *ADGroup `json:"adgroup,omitempty" xml:"adgroup,omitempty"` +} diff --git a/model/simba/TaobaoSimbaAdgroupDeleteResponse.go b/model/simba/TaobaoSimbaAdgroupDeleteResponse.go deleted file mode 100644 index 2b52cf4c71..0000000000 --- a/model/simba/TaobaoSimbaAdgroupDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除一个推广组 API返回值 -taobao.simba.adgroup.delete - -删除一个推广组 -*/ -type TaobaoSimbaAdgroupDeleteAPIResponse struct { - model.CommonResponse - TaobaoSimbaAdgroupDeleteResponse -} - -// 删除一个推广组 成功返回结果 -type TaobaoSimbaAdgroupDeleteResponse struct { - XMLName xml.Name `xml:"simba_adgroup_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 被删除的推广组 - Adgroup *ADGroup `json:"adgroup,omitempty" xml:"adgroup,omitempty"` -} diff --git a/model/simba/TaobaoSimbaAdgroupMobilediscountDeleteAPIRequest.go b/model/simba/TaobaoSimbaAdgroupMobilediscountDeleteAPIRequest.go new file mode 100644 index 0000000000..33f2911344 --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupMobilediscountDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量删除adgroup的移动溢价 API请求 +taobao.simba.adgroup.mobilediscount.delete + +批量删除adgroup的移动溢价 +*/ +type TaobaoSimbaAdgroupMobilediscountDeleteAPIRequest struct { + model.Params + // 昵称 + _nick string + // adgroup主键数组(批量最多支持200个) + _adgroupIds []int64 +} + +// 初始化TaobaoSimbaAdgroupMobilediscountDeleteAPIRequest对象 +func NewTaobaoSimbaAdgroupMobilediscountDeleteRequest() *TaobaoSimbaAdgroupMobilediscountDeleteAPIRequest{ + return &TaobaoSimbaAdgroupMobilediscountDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaAdgroupMobilediscountDeleteAPIRequest) GetApiMethodName() string { + return "taobao.simba.adgroup.mobilediscount.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaAdgroupMobilediscountDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 昵称 +func (r *TaobaoSimbaAdgroupMobilediscountDeleteAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaAdgroupMobilediscountDeleteAPIRequest) GetNick() string { + return r._nick +} +// AdgroupIds Setter +// adgroup主键数组(批量最多支持200个) +func (r *TaobaoSimbaAdgroupMobilediscountDeleteAPIRequest) SetAdgroupIds(_adgroupIds []int64) error { + r._adgroupIds = _adgroupIds + r.Set("adgroup_ids", _adgroupIds) + return nil +} + +// AdgroupIds Getter +func (r TaobaoSimbaAdgroupMobilediscountDeleteAPIRequest) GetAdgroupIds() []int64 { + return r._adgroupIds +} diff --git a/model/simba/TaobaoSimbaAdgroupMobilediscountDeleteAPIResponse.go b/model/simba/TaobaoSimbaAdgroupMobilediscountDeleteAPIResponse.go new file mode 100644 index 0000000000..0ad17c04eb --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupMobilediscountDeleteAPIResponse.go @@ -0,0 +1,31 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量删除adgroup的移动溢价 API返回值 +taobao.simba.adgroup.mobilediscount.delete + +批量删除adgroup的移动溢价 +*/ +type TaobaoSimbaAdgroupMobilediscountDeleteAPIResponse struct { + model.CommonResponse + TaobaoSimbaAdgroupMobilediscountDeleteAPIResponseModel +} + +// 批量删除adgroup的移动溢价 成功返回结果 +type TaobaoSimbaAdgroupMobilediscountDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"simba_adgroup_mobilediscount_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回成功个数 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` + // 返回信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回码 + Key string `json:"key,omitempty" xml:"key,omitempty"` +} diff --git a/model/simba/TaobaoSimbaAdgroupMobilediscountDeleteResponse.go b/model/simba/TaobaoSimbaAdgroupMobilediscountDeleteResponse.go deleted file mode 100644 index 7266e0f00f..0000000000 --- a/model/simba/TaobaoSimbaAdgroupMobilediscountDeleteResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量删除adgroup的移动溢价 API返回值 -taobao.simba.adgroup.mobilediscount.delete - -批量删除adgroup的移动溢价 -*/ -type TaobaoSimbaAdgroupMobilediscountDeleteAPIResponse struct { - model.CommonResponse - TaobaoSimbaAdgroupMobilediscountDeleteResponse -} - -// 批量删除adgroup的移动溢价 成功返回结果 -type TaobaoSimbaAdgroupMobilediscountDeleteResponse struct { - XMLName xml.Name `xml:"simba_adgroup_mobilediscount_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回成功个数 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` - // 返回信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 返回码 - Key string `json:"key,omitempty" xml:"key,omitempty"` -} diff --git a/model/simba/TaobaoSimbaAdgroupMobilediscountUpdateAPIRequest.go b/model/simba/TaobaoSimbaAdgroupMobilediscountUpdateAPIRequest.go new file mode 100644 index 0000000000..e7890926e4 --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupMobilediscountUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +对推广组进行单独移动溢价 API请求 +taobao.simba.adgroup.mobilediscount.update + +对推广组进行单独移动溢价 +*/ +type TaobaoSimbaAdgroupMobilediscountUpdateAPIRequest struct { + model.Params + // 推广组id数组(推广组id集合元素个数在1-200个之间,推广组id需要在同一个推广计划中) + _adgroupIds []int64 + // 折扣(折扣值在1-400之间) + _mobileDiscount int64 + // 昵称 + _nick string +} + +// 初始化TaobaoSimbaAdgroupMobilediscountUpdateAPIRequest对象 +func NewTaobaoSimbaAdgroupMobilediscountUpdateRequest() *TaobaoSimbaAdgroupMobilediscountUpdateAPIRequest{ + return &TaobaoSimbaAdgroupMobilediscountUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaAdgroupMobilediscountUpdateAPIRequest) GetApiMethodName() string { + return "taobao.simba.adgroup.mobilediscount.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaAdgroupMobilediscountUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AdgroupIds Setter +// 推广组id数组(推广组id集合元素个数在1-200个之间,推广组id需要在同一个推广计划中) +func (r *TaobaoSimbaAdgroupMobilediscountUpdateAPIRequest) SetAdgroupIds(_adgroupIds []int64) error { + r._adgroupIds = _adgroupIds + r.Set("adgroup_ids", _adgroupIds) + return nil +} + +// AdgroupIds Getter +func (r TaobaoSimbaAdgroupMobilediscountUpdateAPIRequest) GetAdgroupIds() []int64 { + return r._adgroupIds +} +// MobileDiscount Setter +// 折扣(折扣值在1-400之间) +func (r *TaobaoSimbaAdgroupMobilediscountUpdateAPIRequest) SetMobileDiscount(_mobileDiscount int64) error { + r._mobileDiscount = _mobileDiscount + r.Set("mobile_discount", _mobileDiscount) + return nil +} + +// MobileDiscount Getter +func (r TaobaoSimbaAdgroupMobilediscountUpdateAPIRequest) GetMobileDiscount() int64 { + return r._mobileDiscount +} +// Nick Setter +// 昵称 +func (r *TaobaoSimbaAdgroupMobilediscountUpdateAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaAdgroupMobilediscountUpdateAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/simba/TaobaoSimbaAdgroupMobilediscountUpdateAPIResponse.go b/model/simba/TaobaoSimbaAdgroupMobilediscountUpdateAPIResponse.go new file mode 100644 index 0000000000..f2dccb3961 --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupMobilediscountUpdateAPIResponse.go @@ -0,0 +1,31 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +对推广组进行单独移动溢价 API返回值 +taobao.simba.adgroup.mobilediscount.update + +对推广组进行单独移动溢价 +*/ +type TaobaoSimbaAdgroupMobilediscountUpdateAPIResponse struct { + model.CommonResponse + TaobaoSimbaAdgroupMobilediscountUpdateAPIResponseModel +} + +// 对推广组进行单独移动溢价 成功返回结果 +type TaobaoSimbaAdgroupMobilediscountUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"simba_adgroup_mobilediscount_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 更新成功的个数 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` + // 返回信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 错误码 + Key string `json:"key,omitempty" xml:"key,omitempty"` +} diff --git a/model/simba/TaobaoSimbaAdgroupMobilediscountUpdateResponse.go b/model/simba/TaobaoSimbaAdgroupMobilediscountUpdateResponse.go deleted file mode 100644 index d8dc4283cc..0000000000 --- a/model/simba/TaobaoSimbaAdgroupMobilediscountUpdateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -对推广组进行单独移动溢价 API返回值 -taobao.simba.adgroup.mobilediscount.update - -对推广组进行单独移动溢价 -*/ -type TaobaoSimbaAdgroupMobilediscountUpdateAPIResponse struct { - model.CommonResponse - TaobaoSimbaAdgroupMobilediscountUpdateResponse -} - -// 对推广组进行单独移动溢价 成功返回结果 -type TaobaoSimbaAdgroupMobilediscountUpdateResponse struct { - XMLName xml.Name `xml:"simba_adgroup_mobilediscount_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 更新成功的个数 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` - // 返回信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 错误码 - Key string `json:"key,omitempty" xml:"key,omitempty"` -} diff --git a/model/simba/TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest.go b/model/simba/TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest.go new file mode 100644 index 0000000000..bb0f9d3ff1 --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest.go @@ -0,0 +1,122 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户上架在线销售的全部宝贝 API请求 +taobao.simba.adgroup.onlineitemsvon.get + +获取用户上架在线销售的全部宝贝 +*/ +type TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 排序字段,starts:按开始时间排序bidCount:按销量排序 + _orderField string + // 排序,true:降序, false:升序 + _orderBy bool + // 页尺寸,最大200 + _pageSize int64 + // 页码,从1开始,最大50。最大只能获取1W个宝贝 + _pageNo int64 + // 推广单元类型 101001005代表标准推广,101001014代表销量明星推广 + _productId int64 +} + +// 初始化TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest对象 +func NewTaobaoSimbaAdgroupOnlineitemsvonGetRequest() *TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest{ + return &TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.adgroup.onlineitemsvon.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest) GetNick() string { + return r._nick +} +// OrderField Setter +// 排序字段,starts:按开始时间排序bidCount:按销量排序 +func (r *TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest) SetOrderField(_orderField string) error { + r._orderField = _orderField + r.Set("order_field", _orderField) + return nil +} + +// OrderField Getter +func (r TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest) GetOrderField() string { + return r._orderField +} +// OrderBy Setter +// 排序,true:降序, false:升序 +func (r *TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest) SetOrderBy(_orderBy bool) error { + r._orderBy = _orderBy + r.Set("order_by", _orderBy) + return nil +} + +// OrderBy Getter +func (r TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest) GetOrderBy() bool { + return r._orderBy +} +// PageSize Setter +// 页尺寸,最大200 +func (r *TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 页码,从1开始,最大50。最大只能获取1W个宝贝 +func (r *TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// ProductId Setter +// 推广单元类型 101001005代表标准推广,101001014代表销量明星推广 +func (r *TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoSimbaAdgroupOnlineitemsvonGetAPIRequest) GetProductId() int64 { + return r._productId +} diff --git a/model/simba/TaobaoSimbaAdgroupOnlineitemsvonGetAPIResponse.go b/model/simba/TaobaoSimbaAdgroupOnlineitemsvonGetAPIResponse.go new file mode 100644 index 0000000000..3ed52e04d7 --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupOnlineitemsvonGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户上架在线销售的全部宝贝 API返回值 +taobao.simba.adgroup.onlineitemsvon.get + +获取用户上架在线销售的全部宝贝 +*/ +type TaobaoSimbaAdgroupOnlineitemsvonGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaAdgroupOnlineitemsvonGetAPIResponseModel +} + +// 获取用户上架在线销售的全部宝贝 成功返回结果 +type TaobaoSimbaAdgroupOnlineitemsvonGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_adgroup_onlineitemsvon_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 带分页的淘宝商品 + PageItem *SubwayItemPartition `json:"page_item,omitempty" xml:"page_item,omitempty"` +} diff --git a/model/simba/TaobaoSimbaAdgroupOnlineitemsvonGetResponse.go b/model/simba/TaobaoSimbaAdgroupOnlineitemsvonGetResponse.go deleted file mode 100644 index 4a951f4fcf..0000000000 --- a/model/simba/TaobaoSimbaAdgroupOnlineitemsvonGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户上架在线销售的全部宝贝 API返回值 -taobao.simba.adgroup.onlineitemsvon.get - -获取用户上架在线销售的全部宝贝 -*/ -type TaobaoSimbaAdgroupOnlineitemsvonGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaAdgroupOnlineitemsvonGetResponse -} - -// 获取用户上架在线销售的全部宝贝 成功返回结果 -type TaobaoSimbaAdgroupOnlineitemsvonGetResponse struct { - XMLName xml.Name `xml:"simba_adgroup_onlineitemsvon_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 带分页的淘宝商品 - PageItem *SubwayItemPartition `json:"page_item,omitempty" xml:"page_item,omitempty"` -} diff --git a/model/simba/TaobaoSimbaAdgroupUpdateAPIRequest.go b/model/simba/TaobaoSimbaAdgroupUpdateAPIRequest.go new file mode 100644 index 0000000000..f1c8e93522 --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupUpdateAPIRequest.go @@ -0,0 +1,122 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新一个推广组的信息 API请求 +taobao.simba.adgroup.update + +更新一个推广组的信息,可以设置默认出价、是否上线、非搜索出价、非搜索是否使用默认出价 +*/ +type TaobaoSimbaAdgroupUpdateAPIRequest struct { + model.Params + // 非搜索是否使用默认出价,false-不用;true-使用;默认为true; + _useNonsearchDefaultPrice string + // 用户设置的上下线状态 offline-下线(暂停竞价); online-上线;默认为online + _onlineStatus string + // 推广组Id + _adgroupId int64 + // 默认出价,单位是分,不能小于5 + _defaultPrice int64 + // 非搜索出价,单位是分,不能小于5,如果use_nonseatch_default_price为使用默认出价,则此nonsearch_max_price字段传入的数据不起作用,商品将使用默认非搜索出价 + _nonsearchMaxPrice int64 + // 主人昵称 + _nick string +} + +// 初始化TaobaoSimbaAdgroupUpdateAPIRequest对象 +func NewTaobaoSimbaAdgroupUpdateRequest() *TaobaoSimbaAdgroupUpdateAPIRequest{ + return &TaobaoSimbaAdgroupUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaAdgroupUpdateAPIRequest) GetApiMethodName() string { + return "taobao.simba.adgroup.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaAdgroupUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UseNonsearchDefaultPrice Setter +// 非搜索是否使用默认出价,false-不用;true-使用;默认为true; +func (r *TaobaoSimbaAdgroupUpdateAPIRequest) SetUseNonsearchDefaultPrice(_useNonsearchDefaultPrice string) error { + r._useNonsearchDefaultPrice = _useNonsearchDefaultPrice + r.Set("use_nonsearch_default_price", _useNonsearchDefaultPrice) + return nil +} + +// UseNonsearchDefaultPrice Getter +func (r TaobaoSimbaAdgroupUpdateAPIRequest) GetUseNonsearchDefaultPrice() string { + return r._useNonsearchDefaultPrice +} +// OnlineStatus Setter +// 用户设置的上下线状态 offline-下线(暂停竞价); online-上线;默认为online +func (r *TaobaoSimbaAdgroupUpdateAPIRequest) SetOnlineStatus(_onlineStatus string) error { + r._onlineStatus = _onlineStatus + r.Set("online_status", _onlineStatus) + return nil +} + +// OnlineStatus Getter +func (r TaobaoSimbaAdgroupUpdateAPIRequest) GetOnlineStatus() string { + return r._onlineStatus +} +// AdgroupId Setter +// 推广组Id +func (r *TaobaoSimbaAdgroupUpdateAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaAdgroupUpdateAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// DefaultPrice Setter +// 默认出价,单位是分,不能小于5 +func (r *TaobaoSimbaAdgroupUpdateAPIRequest) SetDefaultPrice(_defaultPrice int64) error { + r._defaultPrice = _defaultPrice + r.Set("default_price", _defaultPrice) + return nil +} + +// DefaultPrice Getter +func (r TaobaoSimbaAdgroupUpdateAPIRequest) GetDefaultPrice() int64 { + return r._defaultPrice +} +// NonsearchMaxPrice Setter +// 非搜索出价,单位是分,不能小于5,如果use_nonseatch_default_price为使用默认出价,则此nonsearch_max_price字段传入的数据不起作用,商品将使用默认非搜索出价 +func (r *TaobaoSimbaAdgroupUpdateAPIRequest) SetNonsearchMaxPrice(_nonsearchMaxPrice int64) error { + r._nonsearchMaxPrice = _nonsearchMaxPrice + r.Set("nonsearch_max_price", _nonsearchMaxPrice) + return nil +} + +// NonsearchMaxPrice Getter +func (r TaobaoSimbaAdgroupUpdateAPIRequest) GetNonsearchMaxPrice() int64 { + return r._nonsearchMaxPrice +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaAdgroupUpdateAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaAdgroupUpdateAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/simba/TaobaoSimbaAdgroupUpdateAPIResponse.go b/model/simba/TaobaoSimbaAdgroupUpdateAPIResponse.go new file mode 100644 index 0000000000..26a382704f --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新一个推广组的信息 API返回值 +taobao.simba.adgroup.update + +更新一个推广组的信息,可以设置默认出价、是否上线、非搜索出价、非搜索是否使用默认出价 +*/ +type TaobaoSimbaAdgroupUpdateAPIResponse struct { + model.CommonResponse + TaobaoSimbaAdgroupUpdateAPIResponseModel +} + +// 更新一个推广组的信息 成功返回结果 +type TaobaoSimbaAdgroupUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"simba_adgroup_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 被修改的推广组 + Adgroup *ADGroup `json:"adgroup,omitempty" xml:"adgroup,omitempty"` +} diff --git a/model/simba/TaobaoSimbaAdgroupUpdateResponse.go b/model/simba/TaobaoSimbaAdgroupUpdateResponse.go deleted file mode 100644 index 5a760fd702..0000000000 --- a/model/simba/TaobaoSimbaAdgroupUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新一个推广组的信息 API返回值 -taobao.simba.adgroup.update - -更新一个推广组的信息,可以设置默认出价、是否上线、非搜索出价、非搜索是否使用默认出价 -*/ -type TaobaoSimbaAdgroupUpdateAPIResponse struct { - model.CommonResponse - TaobaoSimbaAdgroupUpdateResponse -} - -// 更新一个推广组的信息 成功返回结果 -type TaobaoSimbaAdgroupUpdateResponse struct { - XMLName xml.Name `xml:"simba_adgroup_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 被修改的推广组 - Adgroup *ADGroup `json:"adgroup,omitempty" xml:"adgroup,omitempty"` -} diff --git a/model/simba/TaobaoSimbaAdgroupidsChangedGetAPIRequest.go b/model/simba/TaobaoSimbaAdgroupidsChangedGetAPIRequest.go new file mode 100644 index 0000000000..fd59485933 --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupidsChangedGetAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取修改的推广组ID API请求 +taobao.simba.adgroupids.changed.get + +获取修改的推广组ID +*/ +type TaobaoSimbaAdgroupidsChangedGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 得到此时间点之后的数据,不能大于一个月 + _startTime string + // 返回的每页数据量大小,默认200最大1000 + _pageSize int64 + // 返回的第几页数据,默认为1 + _pageNo int64 +} + +// 初始化TaobaoSimbaAdgroupidsChangedGetAPIRequest对象 +func NewTaobaoSimbaAdgroupidsChangedGetRequest() *TaobaoSimbaAdgroupidsChangedGetAPIRequest{ + return &TaobaoSimbaAdgroupidsChangedGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaAdgroupidsChangedGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.adgroupids.changed.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaAdgroupidsChangedGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaAdgroupidsChangedGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaAdgroupidsChangedGetAPIRequest) GetNick() string { + return r._nick +} +// StartTime Setter +// 得到此时间点之后的数据,不能大于一个月 +func (r *TaobaoSimbaAdgroupidsChangedGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaAdgroupidsChangedGetAPIRequest) GetStartTime() string { + return r._startTime +} +// PageSize Setter +// 返回的每页数据量大小,默认200最大1000 +func (r *TaobaoSimbaAdgroupidsChangedGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaAdgroupidsChangedGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 返回的第几页数据,默认为1 +func (r *TaobaoSimbaAdgroupidsChangedGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaAdgroupidsChangedGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/simba/TaobaoSimbaAdgroupidsChangedGetAPIResponse.go b/model/simba/TaobaoSimbaAdgroupidsChangedGetAPIResponse.go new file mode 100644 index 0000000000..f889573e9e --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupidsChangedGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取修改的推广组ID API返回值 +taobao.simba.adgroupids.changed.get + +获取修改的推广组ID +*/ +type TaobaoSimbaAdgroupidsChangedGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaAdgroupidsChangedGetAPIResponseModel +} + +// 获取修改的推广组ID 成功返回结果 +type TaobaoSimbaAdgroupidsChangedGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_adgroupids_changed_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推广组ID列表 + ChangedAdgroupids []int64 `json:"changed_adgroupids,omitempty" xml:"changed_adgroupids>int64,omitempty"` +} diff --git a/model/simba/TaobaoSimbaAdgroupidsChangedGetResponse.go b/model/simba/TaobaoSimbaAdgroupidsChangedGetResponse.go deleted file mode 100644 index 5fe96e2282..0000000000 --- a/model/simba/TaobaoSimbaAdgroupidsChangedGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取修改的推广组ID API返回值 -taobao.simba.adgroupids.changed.get - -获取修改的推广组ID -*/ -type TaobaoSimbaAdgroupidsChangedGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaAdgroupidsChangedGetResponse -} - -// 获取修改的推广组ID 成功返回结果 -type TaobaoSimbaAdgroupidsChangedGetResponse struct { - XMLName xml.Name `xml:"simba_adgroupids_changed_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推广组ID列表 - ChangedAdgroupids []int64 `json:"changed_adgroupids,omitempty" xml:"changed_adgroupids>int64,omitempty"` -} diff --git a/model/simba/TaobaoSimbaAdgroupidsDeletedGetAPIRequest.go b/model/simba/TaobaoSimbaAdgroupidsDeletedGetAPIRequest.go new file mode 100644 index 0000000000..fadfb27ed5 --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupidsDeletedGetAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取删除的推广组ID API请求 +taobao.simba.adgroupids.deleted.get + +获取删除的推广组ID +*/ +type TaobaoSimbaAdgroupidsDeletedGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 得到此时间点之后的数据,不能大于一个月 + _startTime string + // 返回的每页数据量大小,默认200最大1000 + _pageSize int64 + // 返回的第几页数据,默认为1 + _pageNo int64 +} + +// 初始化TaobaoSimbaAdgroupidsDeletedGetAPIRequest对象 +func NewTaobaoSimbaAdgroupidsDeletedGetRequest() *TaobaoSimbaAdgroupidsDeletedGetAPIRequest{ + return &TaobaoSimbaAdgroupidsDeletedGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaAdgroupidsDeletedGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.adgroupids.deleted.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaAdgroupidsDeletedGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaAdgroupidsDeletedGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaAdgroupidsDeletedGetAPIRequest) GetNick() string { + return r._nick +} +// StartTime Setter +// 得到此时间点之后的数据,不能大于一个月 +func (r *TaobaoSimbaAdgroupidsDeletedGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaAdgroupidsDeletedGetAPIRequest) GetStartTime() string { + return r._startTime +} +// PageSize Setter +// 返回的每页数据量大小,默认200最大1000 +func (r *TaobaoSimbaAdgroupidsDeletedGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaAdgroupidsDeletedGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 返回的第几页数据,默认为1 +func (r *TaobaoSimbaAdgroupidsDeletedGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaAdgroupidsDeletedGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/simba/TaobaoSimbaAdgroupidsDeletedGetAPIResponse.go b/model/simba/TaobaoSimbaAdgroupidsDeletedGetAPIResponse.go new file mode 100644 index 0000000000..02b94154d6 --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupidsDeletedGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取删除的推广组ID API返回值 +taobao.simba.adgroupids.deleted.get + +获取删除的推广组ID +*/ +type TaobaoSimbaAdgroupidsDeletedGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaAdgroupidsDeletedGetAPIResponseModel +} + +// 获取删除的推广组ID 成功返回结果 +type TaobaoSimbaAdgroupidsDeletedGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_adgroupids_deleted_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推广组ID列表 + DeletedAdgroupIds []int64 `json:"deleted_adgroup_ids,omitempty" xml:"deleted_adgroup_ids>int64,omitempty"` +} diff --git a/model/simba/TaobaoSimbaAdgroupidsDeletedGetResponse.go b/model/simba/TaobaoSimbaAdgroupidsDeletedGetResponse.go deleted file mode 100644 index 02a15d36cd..0000000000 --- a/model/simba/TaobaoSimbaAdgroupidsDeletedGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取删除的推广组ID API返回值 -taobao.simba.adgroupids.deleted.get - -获取删除的推广组ID -*/ -type TaobaoSimbaAdgroupidsDeletedGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaAdgroupidsDeletedGetResponse -} - -// 获取删除的推广组ID 成功返回结果 -type TaobaoSimbaAdgroupidsDeletedGetResponse struct { - XMLName xml.Name `xml:"simba_adgroupids_deleted_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推广组ID列表 - DeletedAdgroupIds []int64 `json:"deleted_adgroup_ids,omitempty" xml:"deleted_adgroup_ids>int64,omitempty"` -} diff --git a/model/simba/TaobaoSimbaAdgroupsChangedGetAPIRequest.go b/model/simba/TaobaoSimbaAdgroupsChangedGetAPIRequest.go new file mode 100644 index 0000000000..735e79f41b --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupsChangedGetAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页获取修改的推广组ID和修改时间 API请求 +taobao.simba.adgroups.changed.get + +分页获取修改的推广组ID和修改时间 +*/ +type TaobaoSimbaAdgroupsChangedGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 得到此时间点之后的数据,不能大于一个月 + _startTime string + // 返回的每页数据量大小,默认200最大1000 + _pageSize int64 + // 返回的第几页数据,默认为1 + _pageNo int64 +} + +// 初始化TaobaoSimbaAdgroupsChangedGetAPIRequest对象 +func NewTaobaoSimbaAdgroupsChangedGetRequest() *TaobaoSimbaAdgroupsChangedGetAPIRequest{ + return &TaobaoSimbaAdgroupsChangedGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaAdgroupsChangedGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.adgroups.changed.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaAdgroupsChangedGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaAdgroupsChangedGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaAdgroupsChangedGetAPIRequest) GetNick() string { + return r._nick +} +// StartTime Setter +// 得到此时间点之后的数据,不能大于一个月 +func (r *TaobaoSimbaAdgroupsChangedGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaAdgroupsChangedGetAPIRequest) GetStartTime() string { + return r._startTime +} +// PageSize Setter +// 返回的每页数据量大小,默认200最大1000 +func (r *TaobaoSimbaAdgroupsChangedGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaAdgroupsChangedGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 返回的第几页数据,默认为1 +func (r *TaobaoSimbaAdgroupsChangedGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaAdgroupsChangedGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/simba/TaobaoSimbaAdgroupsChangedGetAPIResponse.go b/model/simba/TaobaoSimbaAdgroupsChangedGetAPIResponse.go new file mode 100644 index 0000000000..c040fb9c04 --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupsChangedGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页获取修改的推广组ID和修改时间 API返回值 +taobao.simba.adgroups.changed.get + +分页获取修改的推广组ID和修改时间 +*/ +type TaobaoSimbaAdgroupsChangedGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaAdgroupsChangedGetAPIResponseModel +} + +// 分页获取修改的推广组ID和修改时间 成功返回结果 +type TaobaoSimbaAdgroupsChangedGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_adgroups_changed_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推广组分页对象 + Adgroups *ADGroupPage `json:"adgroups,omitempty" xml:"adgroups,omitempty"` +} diff --git a/model/simba/TaobaoSimbaAdgroupsChangedGetResponse.go b/model/simba/TaobaoSimbaAdgroupsChangedGetResponse.go deleted file mode 100644 index 6b4c24dde5..0000000000 --- a/model/simba/TaobaoSimbaAdgroupsChangedGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页获取修改的推广组ID和修改时间 API返回值 -taobao.simba.adgroups.changed.get - -分页获取修改的推广组ID和修改时间 -*/ -type TaobaoSimbaAdgroupsChangedGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaAdgroupsChangedGetResponse -} - -// 分页获取修改的推广组ID和修改时间 成功返回结果 -type TaobaoSimbaAdgroupsChangedGetResponse struct { - XMLName xml.Name `xml:"simba_adgroups_changed_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推广组分页对象 - Adgroups *ADGroupPage `json:"adgroups,omitempty" xml:"adgroups,omitempty"` -} diff --git a/model/simba/TaobaoSimbaAdgroupsItemExistAPIRequest.go b/model/simba/TaobaoSimbaAdgroupsItemExistAPIRequest.go new file mode 100644 index 0000000000..43d7f4dde2 --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupsItemExistAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品是否推广 API请求 +taobao.simba.adgroups.item.exist + +判断在一个推广计划中是否已经推广了一个商品 +*/ +type TaobaoSimbaAdgroupsItemExistAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广计划Id + _campaignId int64 + // 商品Id + _itemId int64 + // 产品类型 101001005 代表普通推广,101001014代表销量明星 + _productId int64 +} + +// 初始化TaobaoSimbaAdgroupsItemExistAPIRequest对象 +func NewTaobaoSimbaAdgroupsItemExistRequest() *TaobaoSimbaAdgroupsItemExistAPIRequest{ + return &TaobaoSimbaAdgroupsItemExistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaAdgroupsItemExistAPIRequest) GetApiMethodName() string { + return "taobao.simba.adgroups.item.exist" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaAdgroupsItemExistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaAdgroupsItemExistAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaAdgroupsItemExistAPIRequest) GetNick() string { + return r._nick +} +// CampaignId Setter +// 推广计划Id +func (r *TaobaoSimbaAdgroupsItemExistAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaAdgroupsItemExistAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// ItemId Setter +// 商品Id +func (r *TaobaoSimbaAdgroupsItemExistAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoSimbaAdgroupsItemExistAPIRequest) GetItemId() int64 { + return r._itemId +} +// ProductId Setter +// 产品类型 101001005 代表普通推广,101001014代表销量明星 +func (r *TaobaoSimbaAdgroupsItemExistAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoSimbaAdgroupsItemExistAPIRequest) GetProductId() int64 { + return r._productId +} diff --git a/model/simba/TaobaoSimbaAdgroupsItemExistAPIResponse.go b/model/simba/TaobaoSimbaAdgroupsItemExistAPIResponse.go new file mode 100644 index 0000000000..f1c552bc9a --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupsItemExistAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品是否推广 API返回值 +taobao.simba.adgroups.item.exist + +判断在一个推广计划中是否已经推广了一个商品 +*/ +type TaobaoSimbaAdgroupsItemExistAPIResponse struct { + model.CommonResponse + TaobaoSimbaAdgroupsItemExistAPIResponseModel +} + +// 商品是否推广 成功返回结果 +type TaobaoSimbaAdgroupsItemExistAPIResponseModel struct { + XMLName xml.Name `xml:"simba_adgroups_item_exist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true表示已经被推广,false表示没有被推广 + Exist bool `json:"exist,omitempty" xml:"exist,omitempty"` +} diff --git a/model/simba/TaobaoSimbaAdgroupsItemExistResponse.go b/model/simba/TaobaoSimbaAdgroupsItemExistResponse.go deleted file mode 100644 index 3e9a13b61a..0000000000 --- a/model/simba/TaobaoSimbaAdgroupsItemExistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品是否推广 API返回值 -taobao.simba.adgroups.item.exist - -判断在一个推广计划中是否已经推广了一个商品 -*/ -type TaobaoSimbaAdgroupsItemExistAPIResponse struct { - model.CommonResponse - TaobaoSimbaAdgroupsItemExistResponse -} - -// 商品是否推广 成功返回结果 -type TaobaoSimbaAdgroupsItemExistResponse struct { - XMLName xml.Name `xml:"simba_adgroups_item_exist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true表示已经被推广,false表示没有被推广 - Exist bool `json:"exist,omitempty" xml:"exist,omitempty"` -} diff --git a/model/simba/TaobaoSimbaAdgroupsbyadgroupidsGetAPIRequest.go b/model/simba/TaobaoSimbaAdgroupsbyadgroupidsGetAPIRequest.go new file mode 100644 index 0000000000..b30820a920 --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupsbyadgroupidsGetAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量得到推广组 API请求 +taobao.simba.adgroupsbyadgroupids.get + +批量得到推广组 +*/ +type TaobaoSimbaAdgroupsbyadgroupidsGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广组Id列表 + _adgroupIds []int64 + // 页尺寸,最大200,如果入参adgroup_ids有传入值,则page_size和page_no值不起作用。如果adgrpup_ids为空而campaign_id有值,此时page_size和page_no值才是返回的页数据大小和页码 + _pageSize int64 + // 页码,从1开始 + _pageNo int64 +} + +// 初始化TaobaoSimbaAdgroupsbyadgroupidsGetAPIRequest对象 +func NewTaobaoSimbaAdgroupsbyadgroupidsGetRequest() *TaobaoSimbaAdgroupsbyadgroupidsGetAPIRequest{ + return &TaobaoSimbaAdgroupsbyadgroupidsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaAdgroupsbyadgroupidsGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.adgroupsbyadgroupids.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaAdgroupsbyadgroupidsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaAdgroupsbyadgroupidsGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaAdgroupsbyadgroupidsGetAPIRequest) GetNick() string { + return r._nick +} +// AdgroupIds Setter +// 推广组Id列表 +func (r *TaobaoSimbaAdgroupsbyadgroupidsGetAPIRequest) SetAdgroupIds(_adgroupIds []int64) error { + r._adgroupIds = _adgroupIds + r.Set("adgroup_ids", _adgroupIds) + return nil +} + +// AdgroupIds Getter +func (r TaobaoSimbaAdgroupsbyadgroupidsGetAPIRequest) GetAdgroupIds() []int64 { + return r._adgroupIds +} +// PageSize Setter +// 页尺寸,最大200,如果入参adgroup_ids有传入值,则page_size和page_no值不起作用。如果adgrpup_ids为空而campaign_id有值,此时page_size和page_no值才是返回的页数据大小和页码 +func (r *TaobaoSimbaAdgroupsbyadgroupidsGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaAdgroupsbyadgroupidsGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 页码,从1开始 +func (r *TaobaoSimbaAdgroupsbyadgroupidsGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaAdgroupsbyadgroupidsGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/simba/TaobaoSimbaAdgroupsbyadgroupidsGetAPIResponse.go b/model/simba/TaobaoSimbaAdgroupsbyadgroupidsGetAPIResponse.go new file mode 100644 index 0000000000..2f9a806312 --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupsbyadgroupidsGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量得到推广组 API返回值 +taobao.simba.adgroupsbyadgroupids.get + +批量得到推广组 +*/ +type TaobaoSimbaAdgroupsbyadgroupidsGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaAdgroupsbyadgroupidsGetAPIResponseModel +} + +// 批量得到推广组 成功返回结果 +type TaobaoSimbaAdgroupsbyadgroupidsGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_adgroupsbyadgroupids_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的推广组分页对象 + Adgroups *ADGroupPage `json:"adgroups,omitempty" xml:"adgroups,omitempty"` +} diff --git a/model/simba/TaobaoSimbaAdgroupsbyadgroupidsGetResponse.go b/model/simba/TaobaoSimbaAdgroupsbyadgroupidsGetResponse.go deleted file mode 100644 index 88b0be1897..0000000000 --- a/model/simba/TaobaoSimbaAdgroupsbyadgroupidsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量得到推广组 API返回值 -taobao.simba.adgroupsbyadgroupids.get - -批量得到推广组 -*/ -type TaobaoSimbaAdgroupsbyadgroupidsGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaAdgroupsbyadgroupidsGetResponse -} - -// 批量得到推广组 成功返回结果 -type TaobaoSimbaAdgroupsbyadgroupidsGetResponse struct { - XMLName xml.Name `xml:"simba_adgroupsbyadgroupids_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的推广组分页对象 - Adgroups *ADGroupPage `json:"adgroups,omitempty" xml:"adgroups,omitempty"` -} diff --git a/model/simba/TaobaoSimbaAdgroupsbycampaignidGetAPIRequest.go b/model/simba/TaobaoSimbaAdgroupsbycampaignidGetAPIRequest.go new file mode 100644 index 0000000000..9dbe49ae02 --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupsbycampaignidGetAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量得到推广计划下的推广单元 API请求 +taobao.simba.adgroupsbycampaignid.get + +根据推广计划ID分页获取推广计划下的推广单元信息 +*/ +type TaobaoSimbaAdgroupsbycampaignidGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广计划Id + _campaignId int64 + // 页尺寸,最大200,如果入参adgroup_ids有传入值,则page_size和page_no值不起作用。如果adgrpup_ids为空而campaign_id有值,此时page_size和page_no值才是返回的页数据大小和页码 + _pageSize int64 + // 页码,从1开始 + _pageNo int64 +} + +// 初始化TaobaoSimbaAdgroupsbycampaignidGetAPIRequest对象 +func NewTaobaoSimbaAdgroupsbycampaignidGetRequest() *TaobaoSimbaAdgroupsbycampaignidGetAPIRequest{ + return &TaobaoSimbaAdgroupsbycampaignidGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaAdgroupsbycampaignidGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.adgroupsbycampaignid.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaAdgroupsbycampaignidGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaAdgroupsbycampaignidGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaAdgroupsbycampaignidGetAPIRequest) GetNick() string { + return r._nick +} +// CampaignId Setter +// 推广计划Id +func (r *TaobaoSimbaAdgroupsbycampaignidGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaAdgroupsbycampaignidGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// PageSize Setter +// 页尺寸,最大200,如果入参adgroup_ids有传入值,则page_size和page_no值不起作用。如果adgrpup_ids为空而campaign_id有值,此时page_size和page_no值才是返回的页数据大小和页码 +func (r *TaobaoSimbaAdgroupsbycampaignidGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaAdgroupsbycampaignidGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 页码,从1开始 +func (r *TaobaoSimbaAdgroupsbycampaignidGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaAdgroupsbycampaignidGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/simba/TaobaoSimbaAdgroupsbycampaignidGetAPIResponse.go b/model/simba/TaobaoSimbaAdgroupsbycampaignidGetAPIResponse.go new file mode 100644 index 0000000000..e44a91e790 --- /dev/null +++ b/model/simba/TaobaoSimbaAdgroupsbycampaignidGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量得到推广计划下的推广单元 API返回值 +taobao.simba.adgroupsbycampaignid.get + +根据推广计划ID分页获取推广计划下的推广单元信息 +*/ +type TaobaoSimbaAdgroupsbycampaignidGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaAdgroupsbycampaignidGetAPIResponseModel +} + +// 批量得到推广计划下的推广单元 成功返回结果 +type TaobaoSimbaAdgroupsbycampaignidGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_adgroupsbycampaignid_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的推广组分页对象 + Adgroups *ADGroupPage `json:"adgroups,omitempty" xml:"adgroups,omitempty"` +} diff --git a/model/simba/TaobaoSimbaAdgroupsbycampaignidGetResponse.go b/model/simba/TaobaoSimbaAdgroupsbycampaignidGetResponse.go deleted file mode 100644 index ced94c426d..0000000000 --- a/model/simba/TaobaoSimbaAdgroupsbycampaignidGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量得到推广计划下的推广单元 API返回值 -taobao.simba.adgroupsbycampaignid.get - -根据推广计划ID分页获取推广计划下的推广单元信息 -*/ -type TaobaoSimbaAdgroupsbycampaignidGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaAdgroupsbycampaignidGetResponse -} - -// 批量得到推广计划下的推广单元 成功返回结果 -type TaobaoSimbaAdgroupsbycampaignidGetResponse struct { - XMLName xml.Name `xml:"simba_adgroupsbycampaignid_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的推广组分页对象 - Adgroups *ADGroupPage `json:"adgroups,omitempty" xml:"adgroups,omitempty"` -} diff --git a/model/simba/TaobaoSimbaBidwordPricetoolsAPIRequest.go b/model/simba/TaobaoSimbaBidwordPricetoolsAPIRequest.go new file mode 100644 index 0000000000..9e24adbc8f --- /dev/null +++ b/model/simba/TaobaoSimbaBidwordPricetoolsAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词出价指导工具(新) API请求 +taobao.simba.bidword.pricetools + +关键词出价指导工具(新) +*/ +type TaobaoSimbaBidwordPricetoolsAPIRequest struct { + model.Params + // 关键词id + _bidwordId int64 + // 出价目标 ,1:争取排名;2:提升展现;3:提示点击;4:提升转化 + _type int64 + // 区分渠道 ,计算机:PC,无线 :WL + _trafficType string + // 推广单元id + _adgroupId int64 +} + +// 初始化TaobaoSimbaBidwordPricetoolsAPIRequest对象 +func NewTaobaoSimbaBidwordPricetoolsRequest() *TaobaoSimbaBidwordPricetoolsAPIRequest{ + return &TaobaoSimbaBidwordPricetoolsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaBidwordPricetoolsAPIRequest) GetApiMethodName() string { + return "taobao.simba.bidword.pricetools" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaBidwordPricetoolsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BidwordId Setter +// 关键词id +func (r *TaobaoSimbaBidwordPricetoolsAPIRequest) SetBidwordId(_bidwordId int64) error { + r._bidwordId = _bidwordId + r.Set("bidword_id", _bidwordId) + return nil +} + +// BidwordId Getter +func (r TaobaoSimbaBidwordPricetoolsAPIRequest) GetBidwordId() int64 { + return r._bidwordId +} +// Type Setter +// 出价目标 ,1:争取排名;2:提升展现;3:提示点击;4:提升转化 +func (r *TaobaoSimbaBidwordPricetoolsAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoSimbaBidwordPricetoolsAPIRequest) GetType() int64 { + return r._type +} +// TrafficType Setter +// 区分渠道 ,计算机:PC,无线 :WL +func (r *TaobaoSimbaBidwordPricetoolsAPIRequest) SetTrafficType(_trafficType string) error { + r._trafficType = _trafficType + r.Set("traffic_type", _trafficType) + return nil +} + +// TrafficType Getter +func (r TaobaoSimbaBidwordPricetoolsAPIRequest) GetTrafficType() string { + return r._trafficType +} +// AdgroupId Setter +// 推广单元id +func (r *TaobaoSimbaBidwordPricetoolsAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaBidwordPricetoolsAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/simba/TaobaoSimbaBidwordPricetoolsAPIResponse.go b/model/simba/TaobaoSimbaBidwordPricetoolsAPIResponse.go new file mode 100644 index 0000000000..cb6a34cacd --- /dev/null +++ b/model/simba/TaobaoSimbaBidwordPricetoolsAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词出价指导工具(新) API返回值 +taobao.simba.bidword.pricetools + +关键词出价指导工具(新) +*/ +type TaobaoSimbaBidwordPricetoolsAPIResponse struct { + model.CommonResponse + TaobaoSimbaBidwordPricetoolsAPIResponseModel +} + +// 关键词出价指导工具(新) 成功返回结果 +type TaobaoSimbaBidwordPricetoolsAPIResponseModel struct { + XMLName xml.Name `xml:"simba_bidword_pricetools_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true 表示符合准入,false不符合 + ResultList *PriceSuggestionDto `json:"result_list,omitempty" xml:"result_list,omitempty"` +} diff --git a/model/simba/TaobaoSimbaBidwordPricetoolsResponse.go b/model/simba/TaobaoSimbaBidwordPricetoolsResponse.go deleted file mode 100644 index 6241e4bd2b..0000000000 --- a/model/simba/TaobaoSimbaBidwordPricetoolsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -关键词出价指导工具(新) API返回值 -taobao.simba.bidword.pricetools - -关键词出价指导工具(新) -*/ -type TaobaoSimbaBidwordPricetoolsAPIResponse struct { - model.CommonResponse - TaobaoSimbaBidwordPricetoolsResponse -} - -// 关键词出价指导工具(新) 成功返回结果 -type TaobaoSimbaBidwordPricetoolsResponse struct { - XMLName xml.Name `xml:"simba_bidword_pricetools_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true 表示符合准入,false不符合 - ResultList *PriceSuggestionDto `json:"result_list,omitempty" xml:"result_list,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCampaignAddAPIRequest.go b/model/simba/TaobaoSimbaCampaignAddAPIRequest.go new file mode 100644 index 0000000000..739dce121b --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignAddAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建一个推广计划 API请求 +taobao.simba.campaign.add + +创建一个推广计划 +*/ +type TaobaoSimbaCampaignAddAPIRequest struct { + model.Params + // 推广计划名称,不能多余20个汉字,不能和客户其他推广计划同名。 + _title string + // 主人昵称 + _nick string + // 计划类型,当前仅支持两种标准推广0,销量明星16,默认为0 + _type int64 +} + +// 初始化TaobaoSimbaCampaignAddAPIRequest对象 +func NewTaobaoSimbaCampaignAddRequest() *TaobaoSimbaCampaignAddAPIRequest{ + return &TaobaoSimbaCampaignAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCampaignAddAPIRequest) GetApiMethodName() string { + return "taobao.simba.campaign.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCampaignAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Title Setter +// 推广计划名称,不能多余20个汉字,不能和客户其他推广计划同名。 +func (r *TaobaoSimbaCampaignAddAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoSimbaCampaignAddAPIRequest) GetTitle() string { + return r._title +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaCampaignAddAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaCampaignAddAPIRequest) GetNick() string { + return r._nick +} +// Type Setter +// 计划类型,当前仅支持两种标准推广0,销量明星16,默认为0 +func (r *TaobaoSimbaCampaignAddAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoSimbaCampaignAddAPIRequest) GetType() int64 { + return r._type +} diff --git a/model/simba/TaobaoSimbaCampaignAddAPIResponse.go b/model/simba/TaobaoSimbaCampaignAddAPIResponse.go new file mode 100644 index 0000000000..f50087d5ee --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignAddAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建一个推广计划 API返回值 +taobao.simba.campaign.add + +创建一个推广计划 +*/ +type TaobaoSimbaCampaignAddAPIResponse struct { + model.CommonResponse + TaobaoSimbaCampaignAddAPIResponseModel +} + +// 创建一个推广计划 成功返回结果 +type TaobaoSimbaCampaignAddAPIResponseModel struct { + XMLName xml.Name `xml:"simba_campaign_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创建的推广计划 + Campaign *Campaign `json:"campaign,omitempty" xml:"campaign,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCampaignAddResponse.go b/model/simba/TaobaoSimbaCampaignAddResponse.go deleted file mode 100644 index e2fdba3551..0000000000 --- a/model/simba/TaobaoSimbaCampaignAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建一个推广计划 API返回值 -taobao.simba.campaign.add - -创建一个推广计划 -*/ -type TaobaoSimbaCampaignAddAPIResponse struct { - model.CommonResponse - TaobaoSimbaCampaignAddResponse -} - -// 创建一个推广计划 成功返回结果 -type TaobaoSimbaCampaignAddResponse struct { - XMLName xml.Name `xml:"simba_campaign_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创建的推广计划 - Campaign *Campaign `json:"campaign,omitempty" xml:"campaign,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCampaignAreaGetAPIRequest.go b/model/simba/TaobaoSimbaCampaignAreaGetAPIRequest.go new file mode 100644 index 0000000000..10535af34b --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignAreaGetAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一个推广计划的投放地域设置 API请求 +taobao.simba.campaign.area.get + +取得一个推广计划的投放地域设置 +*/ +type TaobaoSimbaCampaignAreaGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广计划Id + _campaignId int64 +} + +// 初始化TaobaoSimbaCampaignAreaGetAPIRequest对象 +func NewTaobaoSimbaCampaignAreaGetRequest() *TaobaoSimbaCampaignAreaGetAPIRequest{ + return &TaobaoSimbaCampaignAreaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCampaignAreaGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.campaign.area.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCampaignAreaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaCampaignAreaGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaCampaignAreaGetAPIRequest) GetNick() string { + return r._nick +} +// CampaignId Setter +// 推广计划Id +func (r *TaobaoSimbaCampaignAreaGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaCampaignAreaGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} diff --git a/model/simba/TaobaoSimbaCampaignAreaGetAPIResponse.go b/model/simba/TaobaoSimbaCampaignAreaGetAPIResponse.go new file mode 100644 index 0000000000..b0c27caaa5 --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignAreaGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一个推广计划的投放地域设置 API返回值 +taobao.simba.campaign.area.get + +取得一个推广计划的投放地域设置 +*/ +type TaobaoSimbaCampaignAreaGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaCampaignAreaGetAPIResponseModel +} + +// 取得一个推广计划的投放地域设置 成功返回结果 +type TaobaoSimbaCampaignAreaGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_campaign_area_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推广计划的投放地域配置 + CampaignArea *CampaignArea `json:"campaign_area,omitempty" xml:"campaign_area,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCampaignAreaGetResponse.go b/model/simba/TaobaoSimbaCampaignAreaGetResponse.go deleted file mode 100644 index 846706abba..0000000000 --- a/model/simba/TaobaoSimbaCampaignAreaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取得一个推广计划的投放地域设置 API返回值 -taobao.simba.campaign.area.get - -取得一个推广计划的投放地域设置 -*/ -type TaobaoSimbaCampaignAreaGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaCampaignAreaGetResponse -} - -// 取得一个推广计划的投放地域设置 成功返回结果 -type TaobaoSimbaCampaignAreaGetResponse struct { - XMLName xml.Name `xml:"simba_campaign_area_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推广计划的投放地域配置 - CampaignArea *CampaignArea `json:"campaign_area,omitempty" xml:"campaign_area,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCampaignAreaUpdateAPIRequest.go b/model/simba/TaobaoSimbaCampaignAreaUpdateAPIRequest.go new file mode 100644 index 0000000000..7f02572a9d --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignAreaUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新一个推广计划的投放地域 API请求 +taobao.simba.campaign.area.update + +更新一个推广计划的投放地域 +*/ +type TaobaoSimbaCampaignAreaUpdateAPIRequest struct { + model.Params + // 推广计划Id + _campaignId int64 + // 值为:“all”;或者用“,”分割的数字,数字必须是直通车全国省市列表的AreaID; + _area string + // 主人昵称 + _nick string +} + +// 初始化TaobaoSimbaCampaignAreaUpdateAPIRequest对象 +func NewTaobaoSimbaCampaignAreaUpdateRequest() *TaobaoSimbaCampaignAreaUpdateAPIRequest{ + return &TaobaoSimbaCampaignAreaUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCampaignAreaUpdateAPIRequest) GetApiMethodName() string { + return "taobao.simba.campaign.area.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCampaignAreaUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 推广计划Id +func (r *TaobaoSimbaCampaignAreaUpdateAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaCampaignAreaUpdateAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// Area Setter +// 值为:“all”;或者用“,”分割的数字,数字必须是直通车全国省市列表的AreaID; +func (r *TaobaoSimbaCampaignAreaUpdateAPIRequest) SetArea(_area string) error { + r._area = _area + r.Set("area", _area) + return nil +} + +// Area Getter +func (r TaobaoSimbaCampaignAreaUpdateAPIRequest) GetArea() string { + return r._area +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaCampaignAreaUpdateAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaCampaignAreaUpdateAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/simba/TaobaoSimbaCampaignAreaUpdateAPIResponse.go b/model/simba/TaobaoSimbaCampaignAreaUpdateAPIResponse.go new file mode 100644 index 0000000000..99f9d777c8 --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignAreaUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新一个推广计划的投放地域 API返回值 +taobao.simba.campaign.area.update + +更新一个推广计划的投放地域 +*/ +type TaobaoSimbaCampaignAreaUpdateAPIResponse struct { + model.CommonResponse + TaobaoSimbaCampaignAreaUpdateAPIResponseModel +} + +// 更新一个推广计划的投放地域 成功返回结果 +type TaobaoSimbaCampaignAreaUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"simba_campaign_area_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改后的推广计划投放地域 + CampaignArea *CampaignArea `json:"campaign_area,omitempty" xml:"campaign_area,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCampaignAreaUpdateResponse.go b/model/simba/TaobaoSimbaCampaignAreaUpdateResponse.go deleted file mode 100644 index 02f2364e6d..0000000000 --- a/model/simba/TaobaoSimbaCampaignAreaUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新一个推广计划的投放地域 API返回值 -taobao.simba.campaign.area.update - -更新一个推广计划的投放地域 -*/ -type TaobaoSimbaCampaignAreaUpdateAPIResponse struct { - model.CommonResponse - TaobaoSimbaCampaignAreaUpdateResponse -} - -// 更新一个推广计划的投放地域 成功返回结果 -type TaobaoSimbaCampaignAreaUpdateResponse struct { - XMLName xml.Name `xml:"simba_campaign_area_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改后的推广计划投放地域 - CampaignArea *CampaignArea `json:"campaign_area,omitempty" xml:"campaign_area,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCampaignAreaoptionsGetAPIRequest.go b/model/simba/TaobaoSimbaCampaignAreaoptionsGetAPIRequest.go new file mode 100644 index 0000000000..a249c4f259 --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignAreaoptionsGetAPIRequest.go @@ -0,0 +1,38 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取得推广计划的可设置投放地域列表 API请求 +taobao.simba.campaign.areaoptions.get + +取得推广计划的可设置投放地域列表 +*/ +type TaobaoSimbaCampaignAreaoptionsGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoSimbaCampaignAreaoptionsGetAPIRequest对象 +func NewTaobaoSimbaCampaignAreaoptionsGetRequest() *TaobaoSimbaCampaignAreaoptionsGetAPIRequest{ + return &TaobaoSimbaCampaignAreaoptionsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCampaignAreaoptionsGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.campaign.areaoptions.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCampaignAreaoptionsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/simba/TaobaoSimbaCampaignAreaoptionsGetAPIResponse.go b/model/simba/TaobaoSimbaCampaignAreaoptionsGetAPIResponse.go new file mode 100644 index 0000000000..a47893e01a --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignAreaoptionsGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取得推广计划的可设置投放地域列表 API返回值 +taobao.simba.campaign.areaoptions.get + +取得推广计划的可设置投放地域列表 +*/ +type TaobaoSimbaCampaignAreaoptionsGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaCampaignAreaoptionsGetAPIResponseModel +} + +// 取得推广计划的可设置投放地域列表 成功返回结果 +type TaobaoSimbaCampaignAreaoptionsGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_campaign_areaoptions_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推广计划所有可设置的投放地域 + AreaOptions []AreaOption `json:"area_options,omitempty" xml:"area_options>area_option,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCampaignAreaoptionsGetResponse.go b/model/simba/TaobaoSimbaCampaignAreaoptionsGetResponse.go deleted file mode 100644 index 512f558365..0000000000 --- a/model/simba/TaobaoSimbaCampaignAreaoptionsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取得推广计划的可设置投放地域列表 API返回值 -taobao.simba.campaign.areaoptions.get - -取得推广计划的可设置投放地域列表 -*/ -type TaobaoSimbaCampaignAreaoptionsGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaCampaignAreaoptionsGetResponse -} - -// 取得推广计划的可设置投放地域列表 成功返回结果 -type TaobaoSimbaCampaignAreaoptionsGetResponse struct { - XMLName xml.Name `xml:"simba_campaign_areaoptions_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推广计划所有可设置的投放地域 - AreaOptions []AreaOption `json:"area_options,omitempty" xml:"area_options>area_option,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCampaignBudgetGetAPIRequest.go b/model/simba/TaobaoSimbaCampaignBudgetGetAPIRequest.go new file mode 100644 index 0000000000..97a1c61878 --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignBudgetGetAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一个推广计划的日限额 API请求 +taobao.simba.campaign.budget.get + +取得一个推广计划的日限额 +*/ +type TaobaoSimbaCampaignBudgetGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广计划Id + _campaignId int64 +} + +// 初始化TaobaoSimbaCampaignBudgetGetAPIRequest对象 +func NewTaobaoSimbaCampaignBudgetGetRequest() *TaobaoSimbaCampaignBudgetGetAPIRequest{ + return &TaobaoSimbaCampaignBudgetGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCampaignBudgetGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.campaign.budget.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCampaignBudgetGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaCampaignBudgetGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaCampaignBudgetGetAPIRequest) GetNick() string { + return r._nick +} +// CampaignId Setter +// 推广计划Id +func (r *TaobaoSimbaCampaignBudgetGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaCampaignBudgetGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} diff --git a/model/simba/TaobaoSimbaCampaignBudgetGetAPIResponse.go b/model/simba/TaobaoSimbaCampaignBudgetGetAPIResponse.go new file mode 100644 index 0000000000..cbfbe1fd5f --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignBudgetGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一个推广计划的日限额 API返回值 +taobao.simba.campaign.budget.get + +取得一个推广计划的日限额 +*/ +type TaobaoSimbaCampaignBudgetGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaCampaignBudgetGetAPIResponseModel +} + +// 取得一个推广计划的日限额 成功返回结果 +type TaobaoSimbaCampaignBudgetGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_campaign_budget_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推广计划日限额 + CampaignBudget *CampaignBudget `json:"campaign_budget,omitempty" xml:"campaign_budget,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCampaignBudgetGetResponse.go b/model/simba/TaobaoSimbaCampaignBudgetGetResponse.go deleted file mode 100644 index 61f5ca812b..0000000000 --- a/model/simba/TaobaoSimbaCampaignBudgetGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取得一个推广计划的日限额 API返回值 -taobao.simba.campaign.budget.get - -取得一个推广计划的日限额 -*/ -type TaobaoSimbaCampaignBudgetGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaCampaignBudgetGetResponse -} - -// 取得一个推广计划的日限额 成功返回结果 -type TaobaoSimbaCampaignBudgetGetResponse struct { - XMLName xml.Name `xml:"simba_campaign_budget_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推广计划日限额 - CampaignBudget *CampaignBudget `json:"campaign_budget,omitempty" xml:"campaign_budget,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCampaignBudgetUpdateAPIRequest.go b/model/simba/TaobaoSimbaCampaignBudgetUpdateAPIRequest.go new file mode 100644 index 0000000000..4bdbaaa42d --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignBudgetUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新一个推广计划的日限额 API请求 +taobao.simba.campaign.budget.update + +更新一个推广计划的日限额 +*/ +type TaobaoSimbaCampaignBudgetUpdateAPIRequest struct { + model.Params + // 是否平滑消耗:false-否,true-是 + _useSmooth bool + // 推广计划Id + _campaignId int64 + // 如果为空则取消限额;否则必须为整数,单位是元,不得小于30; + _budget int64 + // 主人昵称 + _nick string +} + +// 初始化TaobaoSimbaCampaignBudgetUpdateAPIRequest对象 +func NewTaobaoSimbaCampaignBudgetUpdateRequest() *TaobaoSimbaCampaignBudgetUpdateAPIRequest{ + return &TaobaoSimbaCampaignBudgetUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCampaignBudgetUpdateAPIRequest) GetApiMethodName() string { + return "taobao.simba.campaign.budget.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCampaignBudgetUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UseSmooth Setter +// 是否平滑消耗:false-否,true-是 +func (r *TaobaoSimbaCampaignBudgetUpdateAPIRequest) SetUseSmooth(_useSmooth bool) error { + r._useSmooth = _useSmooth + r.Set("use_smooth", _useSmooth) + return nil +} + +// UseSmooth Getter +func (r TaobaoSimbaCampaignBudgetUpdateAPIRequest) GetUseSmooth() bool { + return r._useSmooth +} +// CampaignId Setter +// 推广计划Id +func (r *TaobaoSimbaCampaignBudgetUpdateAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaCampaignBudgetUpdateAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// Budget Setter +// 如果为空则取消限额;否则必须为整数,单位是元,不得小于30; +func (r *TaobaoSimbaCampaignBudgetUpdateAPIRequest) SetBudget(_budget int64) error { + r._budget = _budget + r.Set("budget", _budget) + return nil +} + +// Budget Getter +func (r TaobaoSimbaCampaignBudgetUpdateAPIRequest) GetBudget() int64 { + return r._budget +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaCampaignBudgetUpdateAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaCampaignBudgetUpdateAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/simba/TaobaoSimbaCampaignBudgetUpdateAPIResponse.go b/model/simba/TaobaoSimbaCampaignBudgetUpdateAPIResponse.go new file mode 100644 index 0000000000..8b2f2ec1e8 --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignBudgetUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新一个推广计划的日限额 API返回值 +taobao.simba.campaign.budget.update + +更新一个推广计划的日限额 +*/ +type TaobaoSimbaCampaignBudgetUpdateAPIResponse struct { + model.CommonResponse + TaobaoSimbaCampaignBudgetUpdateAPIResponseModel +} + +// 更新一个推广计划的日限额 成功返回结果 +type TaobaoSimbaCampaignBudgetUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"simba_campaign_budget_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改后的推广计划日限额 + CampaignBudget *CampaignBudget `json:"campaign_budget,omitempty" xml:"campaign_budget,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCampaignBudgetUpdateResponse.go b/model/simba/TaobaoSimbaCampaignBudgetUpdateResponse.go deleted file mode 100644 index 96baa92992..0000000000 --- a/model/simba/TaobaoSimbaCampaignBudgetUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新一个推广计划的日限额 API返回值 -taobao.simba.campaign.budget.update - -更新一个推广计划的日限额 -*/ -type TaobaoSimbaCampaignBudgetUpdateAPIResponse struct { - model.CommonResponse - TaobaoSimbaCampaignBudgetUpdateResponse -} - -// 更新一个推广计划的日限额 成功返回结果 -type TaobaoSimbaCampaignBudgetUpdateResponse struct { - XMLName xml.Name `xml:"simba_campaign_budget_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改后的推广计划日限额 - CampaignBudget *CampaignBudget `json:"campaign_budget,omitempty" xml:"campaign_budget,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCampaignPlatformGetAPIRequest.go b/model/simba/TaobaoSimbaCampaignPlatformGetAPIRequest.go new file mode 100644 index 0000000000..7a5b93d532 --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignPlatformGetAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一个推广计划的投放平台设置 API请求 +taobao.simba.campaign.platform.get + +获得一个推广计划的投放平台设置 +*/ +type TaobaoSimbaCampaignPlatformGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广计划Id + _campaignId int64 +} + +// 初始化TaobaoSimbaCampaignPlatformGetAPIRequest对象 +func NewTaobaoSimbaCampaignPlatformGetRequest() *TaobaoSimbaCampaignPlatformGetAPIRequest{ + return &TaobaoSimbaCampaignPlatformGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCampaignPlatformGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.campaign.platform.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCampaignPlatformGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaCampaignPlatformGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaCampaignPlatformGetAPIRequest) GetNick() string { + return r._nick +} +// CampaignId Setter +// 推广计划Id +func (r *TaobaoSimbaCampaignPlatformGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaCampaignPlatformGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} diff --git a/model/simba/TaobaoSimbaCampaignPlatformGetAPIResponse.go b/model/simba/TaobaoSimbaCampaignPlatformGetAPIResponse.go new file mode 100644 index 0000000000..25f7233990 --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignPlatformGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一个推广计划的投放平台设置 API返回值 +taobao.simba.campaign.platform.get + +获得一个推广计划的投放平台设置 +*/ +type TaobaoSimbaCampaignPlatformGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaCampaignPlatformGetAPIResponseModel +} + +// 取得一个推广计划的投放平台设置 成功返回结果 +type TaobaoSimbaCampaignPlatformGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_campaign_platform_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 取得的推广计划的投放平台设置 + CampaignPlatform *CampaignPlatform `json:"campaign_platform,omitempty" xml:"campaign_platform,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCampaignPlatformGetResponse.go b/model/simba/TaobaoSimbaCampaignPlatformGetResponse.go deleted file mode 100644 index 1bdce800e8..0000000000 --- a/model/simba/TaobaoSimbaCampaignPlatformGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取得一个推广计划的投放平台设置 API返回值 -taobao.simba.campaign.platform.get - -获得一个推广计划的投放平台设置 -*/ -type TaobaoSimbaCampaignPlatformGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaCampaignPlatformGetResponse -} - -// 取得一个推广计划的投放平台设置 成功返回结果 -type TaobaoSimbaCampaignPlatformGetResponse struct { - XMLName xml.Name `xml:"simba_campaign_platform_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 取得的推广计划的投放平台设置 - CampaignPlatform *CampaignPlatform `json:"campaign_platform,omitempty" xml:"campaign_platform,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCampaignPlatformUpdateAPIRequest.go b/model/simba/TaobaoSimbaCampaignPlatformUpdateAPIRequest.go new file mode 100644 index 0000000000..3d94c6c061 --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignPlatformUpdateAPIRequest.go @@ -0,0 +1,122 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新一个推广计划的平台设置 API请求 +taobao.simba.campaign.platform.update + +更新一个推广计划的平台设置 +*/ +type TaobaoSimbaCampaignPlatformUpdateAPIRequest struct { + model.Params + // 推广计划Id + _campaignId int64 + // 搜索投放频道代码数组,频道代码必须是直通车搜索类频道列表中的值。1:淘宝站内搜索,8、无线站内搜索;16:无线站外搜索 + _searchChannels []int64 + // 非搜索投放频道代码数组,频道代码必须是直通车非搜索类频道列表中的值。1、淘宝站内定向;2、站外定向;8、无线站内定向;16、无线站外定向 + _nonsearchChannels []int64 + // 已经废弃 + _outsideDiscount int64 + // 已经废弃 + _mobileDiscount int64 + // 主人昵称 + _nick string +} + +// 初始化TaobaoSimbaCampaignPlatformUpdateAPIRequest对象 +func NewTaobaoSimbaCampaignPlatformUpdateRequest() *TaobaoSimbaCampaignPlatformUpdateAPIRequest{ + return &TaobaoSimbaCampaignPlatformUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCampaignPlatformUpdateAPIRequest) GetApiMethodName() string { + return "taobao.simba.campaign.platform.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCampaignPlatformUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 推广计划Id +func (r *TaobaoSimbaCampaignPlatformUpdateAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaCampaignPlatformUpdateAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// SearchChannels Setter +// 搜索投放频道代码数组,频道代码必须是直通车搜索类频道列表中的值。1:淘宝站内搜索,8、无线站内搜索;16:无线站外搜索 +func (r *TaobaoSimbaCampaignPlatformUpdateAPIRequest) SetSearchChannels(_searchChannels []int64) error { + r._searchChannels = _searchChannels + r.Set("search_channels", _searchChannels) + return nil +} + +// SearchChannels Getter +func (r TaobaoSimbaCampaignPlatformUpdateAPIRequest) GetSearchChannels() []int64 { + return r._searchChannels +} +// NonsearchChannels Setter +// 非搜索投放频道代码数组,频道代码必须是直通车非搜索类频道列表中的值。1、淘宝站内定向;2、站外定向;8、无线站内定向;16、无线站外定向 +func (r *TaobaoSimbaCampaignPlatformUpdateAPIRequest) SetNonsearchChannels(_nonsearchChannels []int64) error { + r._nonsearchChannels = _nonsearchChannels + r.Set("nonsearch_channels", _nonsearchChannels) + return nil +} + +// NonsearchChannels Getter +func (r TaobaoSimbaCampaignPlatformUpdateAPIRequest) GetNonsearchChannels() []int64 { + return r._nonsearchChannels +} +// OutsideDiscount Setter +// 已经废弃 +func (r *TaobaoSimbaCampaignPlatformUpdateAPIRequest) SetOutsideDiscount(_outsideDiscount int64) error { + r._outsideDiscount = _outsideDiscount + r.Set("outside_discount", _outsideDiscount) + return nil +} + +// OutsideDiscount Getter +func (r TaobaoSimbaCampaignPlatformUpdateAPIRequest) GetOutsideDiscount() int64 { + return r._outsideDiscount +} +// MobileDiscount Setter +// 已经废弃 +func (r *TaobaoSimbaCampaignPlatformUpdateAPIRequest) SetMobileDiscount(_mobileDiscount int64) error { + r._mobileDiscount = _mobileDiscount + r.Set("mobile_discount", _mobileDiscount) + return nil +} + +// MobileDiscount Getter +func (r TaobaoSimbaCampaignPlatformUpdateAPIRequest) GetMobileDiscount() int64 { + return r._mobileDiscount +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaCampaignPlatformUpdateAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaCampaignPlatformUpdateAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/simba/TaobaoSimbaCampaignPlatformUpdateAPIResponse.go b/model/simba/TaobaoSimbaCampaignPlatformUpdateAPIResponse.go new file mode 100644 index 0000000000..a6dd9d4a88 --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignPlatformUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新一个推广计划的平台设置 API返回值 +taobao.simba.campaign.platform.update + +更新一个推广计划的平台设置 +*/ +type TaobaoSimbaCampaignPlatformUpdateAPIResponse struct { + model.CommonResponse + TaobaoSimbaCampaignPlatformUpdateAPIResponseModel +} + +// 更新一个推广计划的平台设置 成功返回结果 +type TaobaoSimbaCampaignPlatformUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"simba_campaign_platform_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改后的推广计划投放平台设置 + CampaignPlatform *CampaignPlatform `json:"campaign_platform,omitempty" xml:"campaign_platform,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCampaignPlatformUpdateResponse.go b/model/simba/TaobaoSimbaCampaignPlatformUpdateResponse.go deleted file mode 100644 index d5b6047da0..0000000000 --- a/model/simba/TaobaoSimbaCampaignPlatformUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新一个推广计划的平台设置 API返回值 -taobao.simba.campaign.platform.update - -更新一个推广计划的平台设置 -*/ -type TaobaoSimbaCampaignPlatformUpdateAPIResponse struct { - model.CommonResponse - TaobaoSimbaCampaignPlatformUpdateResponse -} - -// 更新一个推广计划的平台设置 成功返回结果 -type TaobaoSimbaCampaignPlatformUpdateResponse struct { - XMLName xml.Name `xml:"simba_campaign_platform_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改后的推广计划投放平台设置 - CampaignPlatform *CampaignPlatform `json:"campaign_platform,omitempty" xml:"campaign_platform,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCampaignScheduleGetAPIRequest.go b/model/simba/TaobaoSimbaCampaignScheduleGetAPIRequest.go new file mode 100644 index 0000000000..3c4a887ad0 --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignScheduleGetAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一个推广计划的分时折扣设置 API请求 +taobao.simba.campaign.schedule.get + +取得一个推广计划的分时折扣设置 +*/ +type TaobaoSimbaCampaignScheduleGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广计划Id + _campaignId int64 +} + +// 初始化TaobaoSimbaCampaignScheduleGetAPIRequest对象 +func NewTaobaoSimbaCampaignScheduleGetRequest() *TaobaoSimbaCampaignScheduleGetAPIRequest{ + return &TaobaoSimbaCampaignScheduleGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCampaignScheduleGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.campaign.schedule.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCampaignScheduleGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaCampaignScheduleGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaCampaignScheduleGetAPIRequest) GetNick() string { + return r._nick +} +// CampaignId Setter +// 推广计划Id +func (r *TaobaoSimbaCampaignScheduleGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaCampaignScheduleGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} diff --git a/model/simba/TaobaoSimbaCampaignScheduleGetAPIResponse.go b/model/simba/TaobaoSimbaCampaignScheduleGetAPIResponse.go new file mode 100644 index 0000000000..cf6385b47d --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignScheduleGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一个推广计划的分时折扣设置 API返回值 +taobao.simba.campaign.schedule.get + +取得一个推广计划的分时折扣设置 +*/ +type TaobaoSimbaCampaignScheduleGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaCampaignScheduleGetAPIResponseModel +} + +// 取得一个推广计划的分时折扣设置 成功返回结果 +type TaobaoSimbaCampaignScheduleGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_campaign_schedule_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改后的推广计划分时折扣 + CampaignSchedule *CampaignSchedule `json:"campaign_schedule,omitempty" xml:"campaign_schedule,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCampaignScheduleGetResponse.go b/model/simba/TaobaoSimbaCampaignScheduleGetResponse.go deleted file mode 100644 index 3f755114c4..0000000000 --- a/model/simba/TaobaoSimbaCampaignScheduleGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取得一个推广计划的分时折扣设置 API返回值 -taobao.simba.campaign.schedule.get - -取得一个推广计划的分时折扣设置 -*/ -type TaobaoSimbaCampaignScheduleGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaCampaignScheduleGetResponse -} - -// 取得一个推广计划的分时折扣设置 成功返回结果 -type TaobaoSimbaCampaignScheduleGetResponse struct { - XMLName xml.Name `xml:"simba_campaign_schedule_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改后的推广计划分时折扣 - CampaignSchedule *CampaignSchedule `json:"campaign_schedule,omitempty" xml:"campaign_schedule,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCampaignScheduleUpdateAPIRequest.go b/model/simba/TaobaoSimbaCampaignScheduleUpdateAPIRequest.go new file mode 100644 index 0000000000..f2aa76023c --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignScheduleUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新一个推广计划的分时折扣设置 API请求 +taobao.simba.campaign.schedule.update + +更新一个推广计划的分时折扣设置 +*/ +type TaobaoSimbaCampaignScheduleUpdateAPIRequest struct { + model.Params + // 推广计划Id + _campaignId int64 + // 值为:“all”;或者用“;”分割的每天的设置字符串,该字符串为用“,”分割的时段折扣字符串,格式为:起始时间-结束时间:折扣,其中时间是24小时格式记录,折扣是1-150整数,表示折扣百分比; + _schedule string + // 主人昵称 + _nick string +} + +// 初始化TaobaoSimbaCampaignScheduleUpdateAPIRequest对象 +func NewTaobaoSimbaCampaignScheduleUpdateRequest() *TaobaoSimbaCampaignScheduleUpdateAPIRequest{ + return &TaobaoSimbaCampaignScheduleUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCampaignScheduleUpdateAPIRequest) GetApiMethodName() string { + return "taobao.simba.campaign.schedule.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCampaignScheduleUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 推广计划Id +func (r *TaobaoSimbaCampaignScheduleUpdateAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaCampaignScheduleUpdateAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// Schedule Setter +// 值为:“all”;或者用“;”分割的每天的设置字符串,该字符串为用“,”分割的时段折扣字符串,格式为:起始时间-结束时间:折扣,其中时间是24小时格式记录,折扣是1-150整数,表示折扣百分比; +func (r *TaobaoSimbaCampaignScheduleUpdateAPIRequest) SetSchedule(_schedule string) error { + r._schedule = _schedule + r.Set("schedule", _schedule) + return nil +} + +// Schedule Getter +func (r TaobaoSimbaCampaignScheduleUpdateAPIRequest) GetSchedule() string { + return r._schedule +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaCampaignScheduleUpdateAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaCampaignScheduleUpdateAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/simba/TaobaoSimbaCampaignScheduleUpdateAPIResponse.go b/model/simba/TaobaoSimbaCampaignScheduleUpdateAPIResponse.go new file mode 100644 index 0000000000..fca7242adc --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignScheduleUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新一个推广计划的分时折扣设置 API返回值 +taobao.simba.campaign.schedule.update + +更新一个推广计划的分时折扣设置 +*/ +type TaobaoSimbaCampaignScheduleUpdateAPIResponse struct { + model.CommonResponse + TaobaoSimbaCampaignScheduleUpdateAPIResponseModel +} + +// 更新一个推广计划的分时折扣设置 成功返回结果 +type TaobaoSimbaCampaignScheduleUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"simba_campaign_schedule_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改后的推广计划分时折扣 + CampaignSchedule *CampaignSchedule `json:"campaign_schedule,omitempty" xml:"campaign_schedule,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCampaignScheduleUpdateResponse.go b/model/simba/TaobaoSimbaCampaignScheduleUpdateResponse.go deleted file mode 100644 index de9de62578..0000000000 --- a/model/simba/TaobaoSimbaCampaignScheduleUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新一个推广计划的分时折扣设置 API返回值 -taobao.simba.campaign.schedule.update - -更新一个推广计划的分时折扣设置 -*/ -type TaobaoSimbaCampaignScheduleUpdateAPIResponse struct { - model.CommonResponse - TaobaoSimbaCampaignScheduleUpdateResponse -} - -// 更新一个推广计划的分时折扣设置 成功返回结果 -type TaobaoSimbaCampaignScheduleUpdateResponse struct { - XMLName xml.Name `xml:"simba_campaign_schedule_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改后的推广计划分时折扣 - CampaignSchedule *CampaignSchedule `json:"campaign_schedule,omitempty" xml:"campaign_schedule,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCampaignTimetemplateFindAPIRequest.go b/model/simba/TaobaoSimbaCampaignTimetemplateFindAPIRequest.go new file mode 100644 index 0000000000..16fe433a16 --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignTimetemplateFindAPIRequest.go @@ -0,0 +1,38 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取分时折扣模板 API请求 +taobao.simba.campaign.timetemplate.find + +批量得到智能推广推广计划下的推广组 +*/ +type TaobaoSimbaCampaignTimetemplateFindAPIRequest struct { + model.Params +} + +// 初始化TaobaoSimbaCampaignTimetemplateFindAPIRequest对象 +func NewTaobaoSimbaCampaignTimetemplateFindRequest() *TaobaoSimbaCampaignTimetemplateFindAPIRequest{ + return &TaobaoSimbaCampaignTimetemplateFindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCampaignTimetemplateFindAPIRequest) GetApiMethodName() string { + return "taobao.simba.campaign.timetemplate.find" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCampaignTimetemplateFindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/simba/TaobaoSimbaCampaignTimetemplateFindAPIResponse.go b/model/simba/TaobaoSimbaCampaignTimetemplateFindAPIResponse.go new file mode 100644 index 0000000000..84b967bcb9 --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignTimetemplateFindAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取分时折扣模板 API返回值 +taobao.simba.campaign.timetemplate.find + +批量得到智能推广推广计划下的推广组 +*/ +type TaobaoSimbaCampaignTimetemplateFindAPIResponse struct { + model.CommonResponse + TaobaoSimbaCampaignTimetemplateFindAPIResponseModel +} + +// 获取分时折扣模板 成功返回结果 +type TaobaoSimbaCampaignTimetemplateFindAPIResponseModel struct { + XMLName xml.Name `xml:"simba_campaign_timetemplate_find_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的推广组分页对象 + Templates []ADGroupPage `json:"templates,omitempty" xml:"templates>ad_group_page,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCampaignTimetemplateFindResponse.go b/model/simba/TaobaoSimbaCampaignTimetemplateFindResponse.go deleted file mode 100644 index afcc1ef0cb..0000000000 --- a/model/simba/TaobaoSimbaCampaignTimetemplateFindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取分时折扣模板 API返回值 -taobao.simba.campaign.timetemplate.find - -批量得到智能推广推广计划下的推广组 -*/ -type TaobaoSimbaCampaignTimetemplateFindAPIResponse struct { - model.CommonResponse - TaobaoSimbaCampaignTimetemplateFindResponse -} - -// 获取分时折扣模板 成功返回结果 -type TaobaoSimbaCampaignTimetemplateFindResponse struct { - XMLName xml.Name `xml:"simba_campaign_timetemplate_find_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的推广组分页对象 - Templates []ADGroupPage `json:"templates,omitempty" xml:"templates>ad_group_page,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCampaignUpdateAPIRequest.go b/model/simba/TaobaoSimbaCampaignUpdateAPIRequest.go new file mode 100644 index 0000000000..754f0c6072 --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新一个推广计划 API请求 +taobao.simba.campaign.update + +更新一个推广计划,可以设置推广计划名字,修改推广计划上下线状态。 +*/ +type TaobaoSimbaCampaignUpdateAPIRequest struct { + model.Params + // 用户设置的上下限状态;offline-下线;online-上线; + _onlineStatus string + // 推广计划Id + _campaignId int64 + // 推广计划名称,不能多余40个字符,不能和客户其他推广计划同名。 + _title string + // 主人昵称 + _nick string +} + +// 初始化TaobaoSimbaCampaignUpdateAPIRequest对象 +func NewTaobaoSimbaCampaignUpdateRequest() *TaobaoSimbaCampaignUpdateAPIRequest{ + return &TaobaoSimbaCampaignUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCampaignUpdateAPIRequest) GetApiMethodName() string { + return "taobao.simba.campaign.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCampaignUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OnlineStatus Setter +// 用户设置的上下限状态;offline-下线;online-上线; +func (r *TaobaoSimbaCampaignUpdateAPIRequest) SetOnlineStatus(_onlineStatus string) error { + r._onlineStatus = _onlineStatus + r.Set("online_status", _onlineStatus) + return nil +} + +// OnlineStatus Getter +func (r TaobaoSimbaCampaignUpdateAPIRequest) GetOnlineStatus() string { + return r._onlineStatus +} +// CampaignId Setter +// 推广计划Id +func (r *TaobaoSimbaCampaignUpdateAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaCampaignUpdateAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// Title Setter +// 推广计划名称,不能多余40个字符,不能和客户其他推广计划同名。 +func (r *TaobaoSimbaCampaignUpdateAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoSimbaCampaignUpdateAPIRequest) GetTitle() string { + return r._title +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaCampaignUpdateAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaCampaignUpdateAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/simba/TaobaoSimbaCampaignUpdateAPIResponse.go b/model/simba/TaobaoSimbaCampaignUpdateAPIResponse.go new file mode 100644 index 0000000000..2632accf4f --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新一个推广计划 API返回值 +taobao.simba.campaign.update + +更新一个推广计划,可以设置推广计划名字,修改推广计划上下线状态。 +*/ +type TaobaoSimbaCampaignUpdateAPIResponse struct { + model.CommonResponse + TaobaoSimbaCampaignUpdateAPIResponseModel +} + +// 更新一个推广计划 成功返回结果 +type TaobaoSimbaCampaignUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"simba_campaign_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改后的推广计划 + Campaign *Campaign `json:"campaign,omitempty" xml:"campaign,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCampaignUpdateResponse.go b/model/simba/TaobaoSimbaCampaignUpdateResponse.go deleted file mode 100644 index 5e36466c05..0000000000 --- a/model/simba/TaobaoSimbaCampaignUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新一个推广计划 API返回值 -taobao.simba.campaign.update - -更新一个推广计划,可以设置推广计划名字,修改推广计划上下线状态。 -*/ -type TaobaoSimbaCampaignUpdateAPIResponse struct { - model.CommonResponse - TaobaoSimbaCampaignUpdateResponse -} - -// 更新一个推广计划 成功返回结果 -type TaobaoSimbaCampaignUpdateResponse struct { - XMLName xml.Name `xml:"simba_campaign_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改后的推广计划 - Campaign *Campaign `json:"campaign,omitempty" xml:"campaign,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCampaignsGetAPIRequest.go b/model/simba/TaobaoSimbaCampaignsGetAPIRequest.go new file mode 100644 index 0000000000..185ed0d900 --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignsGetAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一组推广计划 API请求 +taobao.simba.campaigns.get + +取得一个客户的推广计划; +*/ +type TaobaoSimbaCampaignsGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 计划类型0位标准计划,16位销量明星计划 + _type int64 +} + +// 初始化TaobaoSimbaCampaignsGetAPIRequest对象 +func NewTaobaoSimbaCampaignsGetRequest() *TaobaoSimbaCampaignsGetAPIRequest{ + return &TaobaoSimbaCampaignsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCampaignsGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.campaigns.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCampaignsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaCampaignsGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaCampaignsGetAPIRequest) GetNick() string { + return r._nick +} +// Type Setter +// 计划类型0位标准计划,16位销量明星计划 +func (r *TaobaoSimbaCampaignsGetAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoSimbaCampaignsGetAPIRequest) GetType() int64 { + return r._type +} diff --git a/model/simba/TaobaoSimbaCampaignsGetAPIResponse.go b/model/simba/TaobaoSimbaCampaignsGetAPIResponse.go new file mode 100644 index 0000000000..008a73e5ab --- /dev/null +++ b/model/simba/TaobaoSimbaCampaignsGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一组推广计划 API返回值 +taobao.simba.campaigns.get + +取得一个客户的推广计划; +*/ +type TaobaoSimbaCampaignsGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaCampaignsGetAPIResponseModel +} + +// 取得一组推广计划 成功返回结果 +type TaobaoSimbaCampaignsGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_campaigns_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推广计划列表 + Campaigns []Campaign `json:"campaigns,omitempty" xml:"campaigns>campaign,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCampaignsGetResponse.go b/model/simba/TaobaoSimbaCampaignsGetResponse.go deleted file mode 100644 index cedcaa29df..0000000000 --- a/model/simba/TaobaoSimbaCampaignsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取得一组推广计划 API返回值 -taobao.simba.campaigns.get - -取得一个客户的推广计划; -*/ -type TaobaoSimbaCampaignsGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaCampaignsGetResponse -} - -// 取得一组推广计划 成功返回结果 -type TaobaoSimbaCampaignsGetResponse struct { - XMLName xml.Name `xml:"simba_campaigns_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推广计划列表 - Campaigns []Campaign `json:"campaigns,omitempty" xml:"campaigns>campaign,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCreativeAddAPIRequest.go b/model/simba/TaobaoSimbaCreativeAddAPIRequest.go new file mode 100644 index 0000000000..21768ea1e9 --- /dev/null +++ b/model/simba/TaobaoSimbaCreativeAddAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +增加创意 API请求 +taobao.simba.creative.add + +创建一个创意 +*/ +type TaobaoSimbaCreativeAddAPIRequest struct { + model.Params + // 推广组Id + _adgroupId int64 + // 创意标题,最多20个汉字 + _title string + // 创意图片地址,必须是推广组对应商品的图片之一 + _imgUrl string + // 主人昵称 + _nick string +} + +// 初始化TaobaoSimbaCreativeAddAPIRequest对象 +func NewTaobaoSimbaCreativeAddRequest() *TaobaoSimbaCreativeAddAPIRequest{ + return &TaobaoSimbaCreativeAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCreativeAddAPIRequest) GetApiMethodName() string { + return "taobao.simba.creative.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCreativeAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AdgroupId Setter +// 推广组Id +func (r *TaobaoSimbaCreativeAddAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaCreativeAddAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// Title Setter +// 创意标题,最多20个汉字 +func (r *TaobaoSimbaCreativeAddAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoSimbaCreativeAddAPIRequest) GetTitle() string { + return r._title +} +// ImgUrl Setter +// 创意图片地址,必须是推广组对应商品的图片之一 +func (r *TaobaoSimbaCreativeAddAPIRequest) SetImgUrl(_imgUrl string) error { + r._imgUrl = _imgUrl + r.Set("img_url", _imgUrl) + return nil +} + +// ImgUrl Getter +func (r TaobaoSimbaCreativeAddAPIRequest) GetImgUrl() string { + return r._imgUrl +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaCreativeAddAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaCreativeAddAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/simba/TaobaoSimbaCreativeAddAPIResponse.go b/model/simba/TaobaoSimbaCreativeAddAPIResponse.go new file mode 100644 index 0000000000..750e40369d --- /dev/null +++ b/model/simba/TaobaoSimbaCreativeAddAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +增加创意 API返回值 +taobao.simba.creative.add + +创建一个创意 +*/ +type TaobaoSimbaCreativeAddAPIResponse struct { + model.CommonResponse + TaobaoSimbaCreativeAddAPIResponseModel +} + +// 增加创意 成功返回结果 +type TaobaoSimbaCreativeAddAPIResponseModel struct { + XMLName xml.Name `xml:"simba_creative_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 新增加的创意对象 + Creative *Creative `json:"creative,omitempty" xml:"creative,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCreativeAddResponse.go b/model/simba/TaobaoSimbaCreativeAddResponse.go deleted file mode 100644 index bb58ea74ef..0000000000 --- a/model/simba/TaobaoSimbaCreativeAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -增加创意 API返回值 -taobao.simba.creative.add - -创建一个创意 -*/ -type TaobaoSimbaCreativeAddAPIResponse struct { - model.CommonResponse - TaobaoSimbaCreativeAddResponse -} - -// 增加创意 成功返回结果 -type TaobaoSimbaCreativeAddResponse struct { - XMLName xml.Name `xml:"simba_creative_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 新增加的创意对象 - Creative *Creative `json:"creative,omitempty" xml:"creative,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCreativeDeleteAPIRequest.go b/model/simba/TaobaoSimbaCreativeDeleteAPIRequest.go new file mode 100644 index 0000000000..6dd757c587 --- /dev/null +++ b/model/simba/TaobaoSimbaCreativeDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除创意 API请求 +taobao.simba.creative.delete + +删除一个创意 +*/ +type TaobaoSimbaCreativeDeleteAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 创意Id + _creativeId int64 +} + +// 初始化TaobaoSimbaCreativeDeleteAPIRequest对象 +func NewTaobaoSimbaCreativeDeleteRequest() *TaobaoSimbaCreativeDeleteAPIRequest{ + return &TaobaoSimbaCreativeDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCreativeDeleteAPIRequest) GetApiMethodName() string { + return "taobao.simba.creative.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCreativeDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaCreativeDeleteAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaCreativeDeleteAPIRequest) GetNick() string { + return r._nick +} +// CreativeId Setter +// 创意Id +func (r *TaobaoSimbaCreativeDeleteAPIRequest) SetCreativeId(_creativeId int64) error { + r._creativeId = _creativeId + r.Set("creative_id", _creativeId) + return nil +} + +// CreativeId Getter +func (r TaobaoSimbaCreativeDeleteAPIRequest) GetCreativeId() int64 { + return r._creativeId +} diff --git a/model/simba/TaobaoSimbaCreativeDeleteAPIResponse.go b/model/simba/TaobaoSimbaCreativeDeleteAPIResponse.go new file mode 100644 index 0000000000..c5c97729ef --- /dev/null +++ b/model/simba/TaobaoSimbaCreativeDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除创意 API返回值 +taobao.simba.creative.delete + +删除一个创意 +*/ +type TaobaoSimbaCreativeDeleteAPIResponse struct { + model.CommonResponse + TaobaoSimbaCreativeDeleteAPIResponseModel +} + +// 删除创意 成功返回结果 +type TaobaoSimbaCreativeDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"simba_creative_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 被删除的创意对象 + Creative *Creative `json:"creative,omitempty" xml:"creative,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCreativeDeleteResponse.go b/model/simba/TaobaoSimbaCreativeDeleteResponse.go deleted file mode 100644 index 2ba3b5a56b..0000000000 --- a/model/simba/TaobaoSimbaCreativeDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除创意 API返回值 -taobao.simba.creative.delete - -删除一个创意 -*/ -type TaobaoSimbaCreativeDeleteAPIResponse struct { - model.CommonResponse - TaobaoSimbaCreativeDeleteResponse -} - -// 删除创意 成功返回结果 -type TaobaoSimbaCreativeDeleteResponse struct { - XMLName xml.Name `xml:"simba_creative_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 被删除的创意对象 - Creative *Creative `json:"creative,omitempty" xml:"creative,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCreativeUpdateAPIRequest.go b/model/simba/TaobaoSimbaCreativeUpdateAPIRequest.go new file mode 100644 index 0000000000..1cb1640622 --- /dev/null +++ b/model/simba/TaobaoSimbaCreativeUpdateAPIRequest.go @@ -0,0 +1,122 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改创意与 API请求 +taobao.simba.creative.update + +更新一个创意的信息,可以设置创意标题、创意图片 +*/ +type TaobaoSimbaCreativeUpdateAPIRequest struct { + model.Params + // 推广组Id + _adgroupId int64 + // 创意Id + _creativeId int64 + // 创意标题,最多20个汉字 + _title string + // 创意图片地址,必须是推广组对应商品的图片之一 + _imgUrl string + // 主人昵称 + _nick string + // 如果用户开通了创意本地上传图片功能的,可以使用该用户图片空间的图片来修改创意,pictureId为图片空间中图片的pictureId,img_url为图片空间中图片链接地址,如果是使用的主图或副图修改创意,则pictureId必须为空 + _pictureId int64 +} + +// 初始化TaobaoSimbaCreativeUpdateAPIRequest对象 +func NewTaobaoSimbaCreativeUpdateRequest() *TaobaoSimbaCreativeUpdateAPIRequest{ + return &TaobaoSimbaCreativeUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCreativeUpdateAPIRequest) GetApiMethodName() string { + return "taobao.simba.creative.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCreativeUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AdgroupId Setter +// 推广组Id +func (r *TaobaoSimbaCreativeUpdateAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaCreativeUpdateAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// CreativeId Setter +// 创意Id +func (r *TaobaoSimbaCreativeUpdateAPIRequest) SetCreativeId(_creativeId int64) error { + r._creativeId = _creativeId + r.Set("creative_id", _creativeId) + return nil +} + +// CreativeId Getter +func (r TaobaoSimbaCreativeUpdateAPIRequest) GetCreativeId() int64 { + return r._creativeId +} +// Title Setter +// 创意标题,最多20个汉字 +func (r *TaobaoSimbaCreativeUpdateAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoSimbaCreativeUpdateAPIRequest) GetTitle() string { + return r._title +} +// ImgUrl Setter +// 创意图片地址,必须是推广组对应商品的图片之一 +func (r *TaobaoSimbaCreativeUpdateAPIRequest) SetImgUrl(_imgUrl string) error { + r._imgUrl = _imgUrl + r.Set("img_url", _imgUrl) + return nil +} + +// ImgUrl Getter +func (r TaobaoSimbaCreativeUpdateAPIRequest) GetImgUrl() string { + return r._imgUrl +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaCreativeUpdateAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaCreativeUpdateAPIRequest) GetNick() string { + return r._nick +} +// PictureId Setter +// 如果用户开通了创意本地上传图片功能的,可以使用该用户图片空间的图片来修改创意,pictureId为图片空间中图片的pictureId,img_url为图片空间中图片链接地址,如果是使用的主图或副图修改创意,则pictureId必须为空 +func (r *TaobaoSimbaCreativeUpdateAPIRequest) SetPictureId(_pictureId int64) error { + r._pictureId = _pictureId + r.Set("picture_id", _pictureId) + return nil +} + +// PictureId Getter +func (r TaobaoSimbaCreativeUpdateAPIRequest) GetPictureId() int64 { + return r._pictureId +} diff --git a/model/simba/TaobaoSimbaCreativeUpdateAPIResponse.go b/model/simba/TaobaoSimbaCreativeUpdateAPIResponse.go new file mode 100644 index 0000000000..0246438f36 --- /dev/null +++ b/model/simba/TaobaoSimbaCreativeUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改创意与 API返回值 +taobao.simba.creative.update + +更新一个创意的信息,可以设置创意标题、创意图片 +*/ +type TaobaoSimbaCreativeUpdateAPIResponse struct { + model.CommonResponse + TaobaoSimbaCreativeUpdateAPIResponseModel +} + +// 修改创意与 成功返回结果 +type TaobaoSimbaCreativeUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"simba_creative_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创意修改记录对象 + Creativerecord *CreativeRecord `json:"creativerecord,omitempty" xml:"creativerecord,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCreativeUpdateResponse.go b/model/simba/TaobaoSimbaCreativeUpdateResponse.go deleted file mode 100644 index 830a665200..0000000000 --- a/model/simba/TaobaoSimbaCreativeUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改创意与 API返回值 -taobao.simba.creative.update - -更新一个创意的信息,可以设置创意标题、创意图片 -*/ -type TaobaoSimbaCreativeUpdateAPIResponse struct { - model.CommonResponse - TaobaoSimbaCreativeUpdateResponse -} - -// 修改创意与 成功返回结果 -type TaobaoSimbaCreativeUpdateResponse struct { - XMLName xml.Name `xml:"simba_creative_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创意修改记录对象 - Creativerecord *CreativeRecord `json:"creativerecord,omitempty" xml:"creativerecord,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCreativeidsDeletedGetAPIRequest.go b/model/simba/TaobaoSimbaCreativeidsDeletedGetAPIRequest.go new file mode 100644 index 0000000000..8e1c305578 --- /dev/null +++ b/model/simba/TaobaoSimbaCreativeidsDeletedGetAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取删除的创意ID API请求 +taobao.simba.creativeids.deleted.get + +获取删除的创意ID +*/ +type TaobaoSimbaCreativeidsDeletedGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 得到这个时间点之后的数据,不能大于一个月 + _startTime string + // 返回的每页数据量大小,默认200最大1000 + _pageSize int64 + // 返回的第几页数据,默认为1 + _pageNo int64 +} + +// 初始化TaobaoSimbaCreativeidsDeletedGetAPIRequest对象 +func NewTaobaoSimbaCreativeidsDeletedGetRequest() *TaobaoSimbaCreativeidsDeletedGetAPIRequest{ + return &TaobaoSimbaCreativeidsDeletedGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCreativeidsDeletedGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.creativeids.deleted.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCreativeidsDeletedGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaCreativeidsDeletedGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaCreativeidsDeletedGetAPIRequest) GetNick() string { + return r._nick +} +// StartTime Setter +// 得到这个时间点之后的数据,不能大于一个月 +func (r *TaobaoSimbaCreativeidsDeletedGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaCreativeidsDeletedGetAPIRequest) GetStartTime() string { + return r._startTime +} +// PageSize Setter +// 返回的每页数据量大小,默认200最大1000 +func (r *TaobaoSimbaCreativeidsDeletedGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaCreativeidsDeletedGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 返回的第几页数据,默认为1 +func (r *TaobaoSimbaCreativeidsDeletedGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaCreativeidsDeletedGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/simba/TaobaoSimbaCreativeidsDeletedGetAPIResponse.go b/model/simba/TaobaoSimbaCreativeidsDeletedGetAPIResponse.go new file mode 100644 index 0000000000..f89ddbf554 --- /dev/null +++ b/model/simba/TaobaoSimbaCreativeidsDeletedGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取删除的创意ID API返回值 +taobao.simba.creativeids.deleted.get + +获取删除的创意ID +*/ +type TaobaoSimbaCreativeidsDeletedGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaCreativeidsDeletedGetAPIResponseModel +} + +// 获取删除的创意ID 成功返回结果 +type TaobaoSimbaCreativeidsDeletedGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_creativeids_deleted_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创意ID列表 + DeletedCreativeIds []int64 `json:"deleted_creative_ids,omitempty" xml:"deleted_creative_ids>int64,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCreativeidsDeletedGetResponse.go b/model/simba/TaobaoSimbaCreativeidsDeletedGetResponse.go deleted file mode 100644 index 118a94dd38..0000000000 --- a/model/simba/TaobaoSimbaCreativeidsDeletedGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取删除的创意ID API返回值 -taobao.simba.creativeids.deleted.get - -获取删除的创意ID -*/ -type TaobaoSimbaCreativeidsDeletedGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaCreativeidsDeletedGetResponse -} - -// 获取删除的创意ID 成功返回结果 -type TaobaoSimbaCreativeidsDeletedGetResponse struct { - XMLName xml.Name `xml:"simba_creativeids_deleted_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创意ID列表 - DeletedCreativeIds []int64 `json:"deleted_creative_ids,omitempty" xml:"deleted_creative_ids>int64,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCreativesChangedGetAPIRequest.go b/model/simba/TaobaoSimbaCreativesChangedGetAPIRequest.go new file mode 100644 index 0000000000..c07e6838d6 --- /dev/null +++ b/model/simba/TaobaoSimbaCreativesChangedGetAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页获取修改过的广告创意ID和修改时间 API请求 +taobao.simba.creatives.changed.get + +分页获取修改过的广告创意ID和修改时间 +*/ +type TaobaoSimbaCreativesChangedGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 返回的每页数据量大小,默认200最大1000 + _pageSize int64 + // 返回的第几页数据,默认为1 + _pageNo int64 + // 得到此时间点之后的数据,不能大于一个月 + _startTime string +} + +// 初始化TaobaoSimbaCreativesChangedGetAPIRequest对象 +func NewTaobaoSimbaCreativesChangedGetRequest() *TaobaoSimbaCreativesChangedGetAPIRequest{ + return &TaobaoSimbaCreativesChangedGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCreativesChangedGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.creatives.changed.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCreativesChangedGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaCreativesChangedGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaCreativesChangedGetAPIRequest) GetNick() string { + return r._nick +} +// PageSize Setter +// 返回的每页数据量大小,默认200最大1000 +func (r *TaobaoSimbaCreativesChangedGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaCreativesChangedGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 返回的第几页数据,默认为1 +func (r *TaobaoSimbaCreativesChangedGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaCreativesChangedGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// StartTime Setter +// 得到此时间点之后的数据,不能大于一个月 +func (r *TaobaoSimbaCreativesChangedGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaCreativesChangedGetAPIRequest) GetStartTime() string { + return r._startTime +} diff --git a/model/simba/TaobaoSimbaCreativesChangedGetAPIResponse.go b/model/simba/TaobaoSimbaCreativesChangedGetAPIResponse.go new file mode 100644 index 0000000000..4c197c0b12 --- /dev/null +++ b/model/simba/TaobaoSimbaCreativesChangedGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页获取修改过的广告创意ID和修改时间 API返回值 +taobao.simba.creatives.changed.get + +分页获取修改过的广告创意ID和修改时间 +*/ +type TaobaoSimbaCreativesChangedGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaCreativesChangedGetAPIResponseModel +} + +// 分页获取修改过的广告创意ID和修改时间 成功返回结果 +type TaobaoSimbaCreativesChangedGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_creatives_changed_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 广告创意分页对象 + Creatives *CreativePage `json:"creatives,omitempty" xml:"creatives,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCreativesChangedGetResponse.go b/model/simba/TaobaoSimbaCreativesChangedGetResponse.go deleted file mode 100644 index 07d000d497..0000000000 --- a/model/simba/TaobaoSimbaCreativesChangedGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页获取修改过的广告创意ID和修改时间 API返回值 -taobao.simba.creatives.changed.get - -分页获取修改过的广告创意ID和修改时间 -*/ -type TaobaoSimbaCreativesChangedGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaCreativesChangedGetResponse -} - -// 分页获取修改过的广告创意ID和修改时间 成功返回结果 -type TaobaoSimbaCreativesChangedGetResponse struct { - XMLName xml.Name `xml:"simba_creatives_changed_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 广告创意分页对象 - Creatives *CreativePage `json:"creatives,omitempty" xml:"creatives,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCreativesGetAPIRequest.go b/model/simba/TaobaoSimbaCreativesGetAPIRequest.go new file mode 100644 index 0000000000..db1b4f67fd --- /dev/null +++ b/model/simba/TaobaoSimbaCreativesGetAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获得创意 API请求 +taobao.simba.creatives.get + +取得一个推广组的所有创意或者根据一个创意Id列表取得一组创意;
如果同时提供了推广组Id和创意id列表,则优先使用推广组Id; +*/ +type TaobaoSimbaCreativesGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 创意Id数组,最多200个 + _creativeIds []int64 + // 推广组Id + _adgroupId int64 +} + +// 初始化TaobaoSimbaCreativesGetAPIRequest对象 +func NewTaobaoSimbaCreativesGetRequest() *TaobaoSimbaCreativesGetAPIRequest{ + return &TaobaoSimbaCreativesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCreativesGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.creatives.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCreativesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaCreativesGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaCreativesGetAPIRequest) GetNick() string { + return r._nick +} +// CreativeIds Setter +// 创意Id数组,最多200个 +func (r *TaobaoSimbaCreativesGetAPIRequest) SetCreativeIds(_creativeIds []int64) error { + r._creativeIds = _creativeIds + r.Set("creative_ids", _creativeIds) + return nil +} + +// CreativeIds Getter +func (r TaobaoSimbaCreativesGetAPIRequest) GetCreativeIds() []int64 { + return r._creativeIds +} +// AdgroupId Setter +// 推广组Id +func (r *TaobaoSimbaCreativesGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaCreativesGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/simba/TaobaoSimbaCreativesGetAPIResponse.go b/model/simba/TaobaoSimbaCreativesGetAPIResponse.go new file mode 100644 index 0000000000..cbf1da9476 --- /dev/null +++ b/model/simba/TaobaoSimbaCreativesGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获得创意 API返回值 +taobao.simba.creatives.get + +取得一个推广组的所有创意或者根据一个创意Id列表取得一组创意;
如果同时提供了推广组Id和创意id列表,则优先使用推广组Id; +*/ +type TaobaoSimbaCreativesGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaCreativesGetAPIResponseModel +} + +// 批量获得创意 成功返回结果 +type TaobaoSimbaCreativesGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_creatives_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创意对象列表 + Creatives []Creative `json:"creatives,omitempty" xml:"creatives>creative,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCreativesGetResponse.go b/model/simba/TaobaoSimbaCreativesGetResponse.go deleted file mode 100644 index 58c24c16f4..0000000000 --- a/model/simba/TaobaoSimbaCreativesGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量获得创意 API返回值 -taobao.simba.creatives.get - -取得一个推广组的所有创意或者根据一个创意Id列表取得一组创意;
如果同时提供了推广组Id和创意id列表,则优先使用推广组Id; -*/ -type TaobaoSimbaCreativesGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaCreativesGetResponse -} - -// 批量获得创意 成功返回结果 -type TaobaoSimbaCreativesGetResponse struct { - XMLName xml.Name `xml:"simba_creatives_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创意对象列表 - Creatives []Creative `json:"creatives,omitempty" xml:"creatives>creative,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCustomersAuthorizedGetAPIRequest.go b/model/simba/TaobaoSimbaCustomersAuthorizedGetAPIRequest.go new file mode 100644 index 0000000000..2fb76d4b72 --- /dev/null +++ b/model/simba/TaobaoSimbaCustomersAuthorizedGetAPIRequest.go @@ -0,0 +1,38 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取得当前登录用户的授权账户列表 API请求 +taobao.simba.customers.authorized.get + +取得当前登录用户的授权账户列表 +*/ +type TaobaoSimbaCustomersAuthorizedGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoSimbaCustomersAuthorizedGetAPIRequest对象 +func NewTaobaoSimbaCustomersAuthorizedGetRequest() *TaobaoSimbaCustomersAuthorizedGetAPIRequest{ + return &TaobaoSimbaCustomersAuthorizedGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCustomersAuthorizedGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.customers.authorized.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCustomersAuthorizedGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/simba/TaobaoSimbaCustomersAuthorizedGetAPIResponse.go b/model/simba/TaobaoSimbaCustomersAuthorizedGetAPIResponse.go new file mode 100644 index 0000000000..cdcbe221c2 --- /dev/null +++ b/model/simba/TaobaoSimbaCustomersAuthorizedGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取得当前登录用户的授权账户列表 API返回值 +taobao.simba.customers.authorized.get + +取得当前登录用户的授权账户列表 +*/ +type TaobaoSimbaCustomersAuthorizedGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaCustomersAuthorizedGetAPIResponseModel +} + +// 取得当前登录用户的授权账户列表 成功返回结果 +type TaobaoSimbaCustomersAuthorizedGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_customers_authorized_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 授权当前登录账户为代理账户的昵称列表 + Nicks []string `json:"nicks,omitempty" xml:"nicks>string,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCustomersAuthorizedGetResponse.go b/model/simba/TaobaoSimbaCustomersAuthorizedGetResponse.go deleted file mode 100644 index 93ba89195b..0000000000 --- a/model/simba/TaobaoSimbaCustomersAuthorizedGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取得当前登录用户的授权账户列表 API返回值 -taobao.simba.customers.authorized.get - -取得当前登录用户的授权账户列表 -*/ -type TaobaoSimbaCustomersAuthorizedGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaCustomersAuthorizedGetResponse -} - -// 取得当前登录用户的授权账户列表 成功返回结果 -type TaobaoSimbaCustomersAuthorizedGetResponse struct { - XMLName xml.Name `xml:"simba_customers_authorized_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 授权当前登录账户为代理账户的昵称列表 - Nicks []string `json:"nicks,omitempty" xml:"nicks>string,omitempty"` -} diff --git a/model/simba/TaobaoSimbaCustomersSidGetAPIRequest.go b/model/simba/TaobaoSimbaCustomersSidGetAPIRequest.go new file mode 100644 index 0000000000..65d74d337f --- /dev/null +++ b/model/simba/TaobaoSimbaCustomersSidGetAPIRequest.go @@ -0,0 +1,38 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查看功能权限 API请求 +taobao.simba.customers.sid.get + +查询用户是否拥有某个功能权限 +*/ +type TaobaoSimbaCustomersSidGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoSimbaCustomersSidGetAPIRequest对象 +func NewTaobaoSimbaCustomersSidGetRequest() *TaobaoSimbaCustomersSidGetAPIRequest{ + return &TaobaoSimbaCustomersSidGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaCustomersSidGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.customers.sid.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaCustomersSidGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/simba/TaobaoSimbaCustomersSidGetAPIResponse.go b/model/simba/TaobaoSimbaCustomersSidGetAPIResponse.go new file mode 100644 index 0000000000..4679cdd2fd --- /dev/null +++ b/model/simba/TaobaoSimbaCustomersSidGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查看功能权限 API返回值 +taobao.simba.customers.sid.get + +查询用户是否拥有某个功能权限 +*/ +type TaobaoSimbaCustomersSidGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaCustomersSidGetAPIResponseModel +} + +// 查看功能权限 成功返回结果 +type TaobaoSimbaCustomersSidGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_customers_sid_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 权限列表及是否有权限 + Result *SidVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/simba/TaobaoSimbaCustomersSidGetResponse.go b/model/simba/TaobaoSimbaCustomersSidGetResponse.go deleted file mode 100644 index 4a65cfb9a3..0000000000 --- a/model/simba/TaobaoSimbaCustomersSidGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查看功能权限 API返回值 -taobao.simba.customers.sid.get - -查询用户是否拥有某个功能权限 -*/ -type TaobaoSimbaCustomersSidGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaCustomersSidGetResponse -} - -// 查看功能权限 成功返回结果 -type TaobaoSimbaCustomersSidGetResponse struct { - XMLName xml.Name `xml:"simba_customers_sid_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 权限列表及是否有权限 - Result *SidVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/simba/TaobaoSimbaHourReportAccountGetAPIRequest.go b/model/simba/TaobaoSimbaHourReportAccountGetAPIRequest.go new file mode 100644 index 0000000000..de822cc911 --- /dev/null +++ b/model/simba/TaobaoSimbaHourReportAccountGetAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +账户级别小时报表获取 API请求 +taobao.simba.hour.report.account.get + +获取账户小时实时报表数据 +*/ +type TaobaoSimbaHourReportAccountGetAPIRequest struct { + model.Params + // 昵称 + _nick string + // 时间 + _theDate string + // 当前小时 + _hour string +} + +// 初始化TaobaoSimbaHourReportAccountGetAPIRequest对象 +func NewTaobaoSimbaHourReportAccountGetRequest() *TaobaoSimbaHourReportAccountGetAPIRequest{ + return &TaobaoSimbaHourReportAccountGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaHourReportAccountGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.hour.report.account.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaHourReportAccountGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 昵称 +func (r *TaobaoSimbaHourReportAccountGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaHourReportAccountGetAPIRequest) GetNick() string { + return r._nick +} +// TheDate Setter +// 时间 +func (r *TaobaoSimbaHourReportAccountGetAPIRequest) SetTheDate(_theDate string) error { + r._theDate = _theDate + r.Set("the_date", _theDate) + return nil +} + +// TheDate Getter +func (r TaobaoSimbaHourReportAccountGetAPIRequest) GetTheDate() string { + return r._theDate +} +// Hour Setter +// 当前小时 +func (r *TaobaoSimbaHourReportAccountGetAPIRequest) SetHour(_hour string) error { + r._hour = _hour + r.Set("hour", _hour) + return nil +} + +// Hour Getter +func (r TaobaoSimbaHourReportAccountGetAPIRequest) GetHour() string { + return r._hour +} diff --git a/model/simba/TaobaoSimbaHourReportAccountGetAPIResponse.go b/model/simba/TaobaoSimbaHourReportAccountGetAPIResponse.go new file mode 100644 index 0000000000..9662aefe07 --- /dev/null +++ b/model/simba/TaobaoSimbaHourReportAccountGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +账户级别小时报表获取 API返回值 +taobao.simba.hour.report.account.get + +获取账户小时实时报表数据 +*/ +type TaobaoSimbaHourReportAccountGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaHourReportAccountGetAPIResponseModel +} + +// 账户级别小时报表获取 成功返回结果 +type TaobaoSimbaHourReportAccountGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_hour_report_account_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 11 + Results []RtRptResultEntityDto `json:"results,omitempty" xml:"results>rt_rpt_result_entity_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaHourReportAccountGetResponse.go b/model/simba/TaobaoSimbaHourReportAccountGetResponse.go deleted file mode 100644 index 397074d97f..0000000000 --- a/model/simba/TaobaoSimbaHourReportAccountGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -账户级别小时报表获取 API返回值 -taobao.simba.hour.report.account.get - -获取账户小时实时报表数据 -*/ -type TaobaoSimbaHourReportAccountGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaHourReportAccountGetResponse -} - -// 账户级别小时报表获取 成功返回结果 -type TaobaoSimbaHourReportAccountGetResponse struct { - XMLName xml.Name `xml:"simba_hour_report_account_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 11 - Results []RtRptResultEntityDto `json:"results,omitempty" xml:"results>rt_rpt_result_entity_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaHourReportAdgroupGetAPIRequest.go b/model/simba/TaobaoSimbaHourReportAdgroupGetAPIRequest.go new file mode 100644 index 0000000000..b4aa05c14d --- /dev/null +++ b/model/simba/TaobaoSimbaHourReportAdgroupGetAPIRequest.go @@ -0,0 +1,108 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推广单元小时级别实时报表查询 API请求 +taobao.simba.hour.report.adgroup.get + +推广单元小时级别实时报表查询 +*/ +type TaobaoSimbaHourReportAdgroupGetAPIRequest struct { + model.Params + // 昵称 + _nick string + // 时间 + _theDate string + // 当前小时 + _hour string + // 计划id + _campaignId string + // 推广单元id + _adgroupId string +} + +// 初始化TaobaoSimbaHourReportAdgroupGetAPIRequest对象 +func NewTaobaoSimbaHourReportAdgroupGetRequest() *TaobaoSimbaHourReportAdgroupGetAPIRequest{ + return &TaobaoSimbaHourReportAdgroupGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaHourReportAdgroupGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.hour.report.adgroup.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaHourReportAdgroupGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 昵称 +func (r *TaobaoSimbaHourReportAdgroupGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaHourReportAdgroupGetAPIRequest) GetNick() string { + return r._nick +} +// TheDate Setter +// 时间 +func (r *TaobaoSimbaHourReportAdgroupGetAPIRequest) SetTheDate(_theDate string) error { + r._theDate = _theDate + r.Set("the_date", _theDate) + return nil +} + +// TheDate Getter +func (r TaobaoSimbaHourReportAdgroupGetAPIRequest) GetTheDate() string { + return r._theDate +} +// Hour Setter +// 当前小时 +func (r *TaobaoSimbaHourReportAdgroupGetAPIRequest) SetHour(_hour string) error { + r._hour = _hour + r.Set("hour", _hour) + return nil +} + +// Hour Getter +func (r TaobaoSimbaHourReportAdgroupGetAPIRequest) GetHour() string { + return r._hour +} +// CampaignId Setter +// 计划id +func (r *TaobaoSimbaHourReportAdgroupGetAPIRequest) SetCampaignId(_campaignId string) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaHourReportAdgroupGetAPIRequest) GetCampaignId() string { + return r._campaignId +} +// AdgroupId Setter +// 推广单元id +func (r *TaobaoSimbaHourReportAdgroupGetAPIRequest) SetAdgroupId(_adgroupId string) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaHourReportAdgroupGetAPIRequest) GetAdgroupId() string { + return r._adgroupId +} diff --git a/model/simba/TaobaoSimbaHourReportAdgroupGetAPIResponse.go b/model/simba/TaobaoSimbaHourReportAdgroupGetAPIResponse.go new file mode 100644 index 0000000000..18b5ef23ff --- /dev/null +++ b/model/simba/TaobaoSimbaHourReportAdgroupGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推广单元小时级别实时报表查询 API返回值 +taobao.simba.hour.report.adgroup.get + +推广单元小时级别实时报表查询 +*/ +type TaobaoSimbaHourReportAdgroupGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaHourReportAdgroupGetAPIResponseModel +} + +// 推广单元小时级别实时报表查询 成功返回结果 +type TaobaoSimbaHourReportAdgroupGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_hour_report_adgroup_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 11 + Results *RtRptResultEntityDto `json:"results,omitempty" xml:"results,omitempty"` +} diff --git a/model/simba/TaobaoSimbaHourReportAdgroupGetResponse.go b/model/simba/TaobaoSimbaHourReportAdgroupGetResponse.go deleted file mode 100644 index ae082af24b..0000000000 --- a/model/simba/TaobaoSimbaHourReportAdgroupGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推广单元小时级别实时报表查询 API返回值 -taobao.simba.hour.report.adgroup.get - -推广单元小时级别实时报表查询 -*/ -type TaobaoSimbaHourReportAdgroupGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaHourReportAdgroupGetResponse -} - -// 推广单元小时级别实时报表查询 成功返回结果 -type TaobaoSimbaHourReportAdgroupGetResponse struct { - XMLName xml.Name `xml:"simba_hour_report_adgroup_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 11 - Results *RtRptResultEntityDto `json:"results,omitempty" xml:"results,omitempty"` -} diff --git a/model/simba/TaobaoSimbaHourReportCampaignGetAPIRequest.go b/model/simba/TaobaoSimbaHourReportCampaignGetAPIRequest.go new file mode 100644 index 0000000000..933c6970d9 --- /dev/null +++ b/model/simba/TaobaoSimbaHourReportCampaignGetAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +计划维度小时报表获取 API请求 +taobao.simba.hour.report.campaign.get + +计划维度小时报表获取 +*/ +type TaobaoSimbaHourReportCampaignGetAPIRequest struct { + model.Params + // 昵称 + _nick string + // 时间 + _theDate string + // 当前小时 + _hour string + // 计划id + _campaignId string +} + +// 初始化TaobaoSimbaHourReportCampaignGetAPIRequest对象 +func NewTaobaoSimbaHourReportCampaignGetRequest() *TaobaoSimbaHourReportCampaignGetAPIRequest{ + return &TaobaoSimbaHourReportCampaignGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaHourReportCampaignGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.hour.report.campaign.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaHourReportCampaignGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 昵称 +func (r *TaobaoSimbaHourReportCampaignGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaHourReportCampaignGetAPIRequest) GetNick() string { + return r._nick +} +// TheDate Setter +// 时间 +func (r *TaobaoSimbaHourReportCampaignGetAPIRequest) SetTheDate(_theDate string) error { + r._theDate = _theDate + r.Set("the_date", _theDate) + return nil +} + +// TheDate Getter +func (r TaobaoSimbaHourReportCampaignGetAPIRequest) GetTheDate() string { + return r._theDate +} +// Hour Setter +// 当前小时 +func (r *TaobaoSimbaHourReportCampaignGetAPIRequest) SetHour(_hour string) error { + r._hour = _hour + r.Set("hour", _hour) + return nil +} + +// Hour Getter +func (r TaobaoSimbaHourReportCampaignGetAPIRequest) GetHour() string { + return r._hour +} +// CampaignId Setter +// 计划id +func (r *TaobaoSimbaHourReportCampaignGetAPIRequest) SetCampaignId(_campaignId string) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaHourReportCampaignGetAPIRequest) GetCampaignId() string { + return r._campaignId +} diff --git a/model/simba/TaobaoSimbaHourReportCampaignGetAPIResponse.go b/model/simba/TaobaoSimbaHourReportCampaignGetAPIResponse.go new file mode 100644 index 0000000000..defe291648 --- /dev/null +++ b/model/simba/TaobaoSimbaHourReportCampaignGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +计划维度小时报表获取 API返回值 +taobao.simba.hour.report.campaign.get + +计划维度小时报表获取 +*/ +type TaobaoSimbaHourReportCampaignGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaHourReportCampaignGetAPIResponseModel +} + +// 计划维度小时报表获取 成功返回结果 +type TaobaoSimbaHourReportCampaignGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_hour_report_campaign_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 11 + Results *RtRptResultEntityDto `json:"results,omitempty" xml:"results,omitempty"` +} diff --git a/model/simba/TaobaoSimbaHourReportCampaignGetResponse.go b/model/simba/TaobaoSimbaHourReportCampaignGetResponse.go deleted file mode 100644 index e7a65f5173..0000000000 --- a/model/simba/TaobaoSimbaHourReportCampaignGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -计划维度小时报表获取 API返回值 -taobao.simba.hour.report.campaign.get - -计划维度小时报表获取 -*/ -type TaobaoSimbaHourReportCampaignGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaHourReportCampaignGetResponse -} - -// 计划维度小时报表获取 成功返回结果 -type TaobaoSimbaHourReportCampaignGetResponse struct { - XMLName xml.Name `xml:"simba_hour_report_campaign_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 11 - Results *RtRptResultEntityDto `json:"results,omitempty" xml:"results,omitempty"` -} diff --git a/model/simba/TaobaoSimbaInsightCatsdataGetAPIRequest.go b/model/simba/TaobaoSimbaInsightCatsdataGetAPIRequest.go new file mode 100644 index 0000000000..0043072d11 --- /dev/null +++ b/model/simba/TaobaoSimbaInsightCatsdataGetAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取类目的大盘数据 API请求 +taobao.simba.insight.catsdata.get + +根据类目id获取类目的大盘数据,包括展现指数,点击指数,点击率,本次提供的insight相关的其它接口的都是这种情况。 +*/ +type TaobaoSimbaInsightCatsdataGetAPIRequest struct { + model.Params + // 表示要查询的类目id + _categoryIdList []string + // 开始时间,格式:yyyy-MM-dd + _startDate string + // 查询截止时间,格式:yyyy-MM-dd + _endDate string +} + +// 初始化TaobaoSimbaInsightCatsdataGetAPIRequest对象 +func NewTaobaoSimbaInsightCatsdataGetRequest() *TaobaoSimbaInsightCatsdataGetAPIRequest{ + return &TaobaoSimbaInsightCatsdataGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaInsightCatsdataGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.insight.catsdata.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaInsightCatsdataGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CategoryIdList Setter +// 表示要查询的类目id +func (r *TaobaoSimbaInsightCatsdataGetAPIRequest) SetCategoryIdList(_categoryIdList []string) error { + r._categoryIdList = _categoryIdList + r.Set("category_id_list", _categoryIdList) + return nil +} + +// CategoryIdList Getter +func (r TaobaoSimbaInsightCatsdataGetAPIRequest) GetCategoryIdList() []string { + return r._categoryIdList +} +// StartDate Setter +// 开始时间,格式:yyyy-MM-dd +func (r *TaobaoSimbaInsightCatsdataGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoSimbaInsightCatsdataGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 查询截止时间,格式:yyyy-MM-dd +func (r *TaobaoSimbaInsightCatsdataGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoSimbaInsightCatsdataGetAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/simba/TaobaoSimbaInsightCatsdataGetAPIResponse.go b/model/simba/TaobaoSimbaInsightCatsdataGetAPIResponse.go new file mode 100644 index 0000000000..ee28191ad9 --- /dev/null +++ b/model/simba/TaobaoSimbaInsightCatsdataGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取类目的大盘数据 API返回值 +taobao.simba.insight.catsdata.get + +根据类目id获取类目的大盘数据,包括展现指数,点击指数,点击率,本次提供的insight相关的其它接口的都是这种情况。 +*/ +type TaobaoSimbaInsightCatsdataGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaInsightCatsdataGetAPIResponseModel +} + +// 获取类目的大盘数据 成功返回结果 +type TaobaoSimbaInsightCatsdataGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_insight_catsdata_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 类目详细数据列表 + CatDataList []InsightCategoryDataDto `json:"cat_data_list,omitempty" xml:"cat_data_list>insight_category_data_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaInsightCatsdataGetResponse.go b/model/simba/TaobaoSimbaInsightCatsdataGetResponse.go deleted file mode 100644 index a644e6ddeb..0000000000 --- a/model/simba/TaobaoSimbaInsightCatsdataGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取类目的大盘数据 API返回值 -taobao.simba.insight.catsdata.get - -根据类目id获取类目的大盘数据,包括展现指数,点击指数,点击率,本次提供的insight相关的其它接口的都是这种情况。 -*/ -type TaobaoSimbaInsightCatsdataGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaInsightCatsdataGetResponse -} - -// 获取类目的大盘数据 成功返回结果 -type TaobaoSimbaInsightCatsdataGetResponse struct { - XMLName xml.Name `xml:"simba_insight_catsdata_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 类目详细数据列表 - CatDataList []InsightCategoryDataDto `json:"cat_data_list,omitempty" xml:"cat_data_list>insight_category_data_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaInsightCatsforecastnewGetAPIRequest.go b/model/simba/TaobaoSimbaInsightCatsforecastnewGetAPIRequest.go new file mode 100644 index 0000000000..31e137cb47 --- /dev/null +++ b/model/simba/TaobaoSimbaInsightCatsforecastnewGetAPIRequest.go @@ -0,0 +1,52 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取词的相关类目预测数据 API请求 +taobao.simba.insight.catsforecastnew.get + +根据给定的词,预测这些词的相关类目 +*/ +type TaobaoSimbaInsightCatsforecastnewGetAPIRequest struct { + model.Params + // 需要查询的词列表 + _bidwordList []string +} + +// 初始化TaobaoSimbaInsightCatsforecastnewGetAPIRequest对象 +func NewTaobaoSimbaInsightCatsforecastnewGetRequest() *TaobaoSimbaInsightCatsforecastnewGetAPIRequest{ + return &TaobaoSimbaInsightCatsforecastnewGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaInsightCatsforecastnewGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.insight.catsforecastnew.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaInsightCatsforecastnewGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BidwordList Setter +// 需要查询的词列表 +func (r *TaobaoSimbaInsightCatsforecastnewGetAPIRequest) SetBidwordList(_bidwordList []string) error { + r._bidwordList = _bidwordList + r.Set("bidword_list", _bidwordList) + return nil +} + +// BidwordList Getter +func (r TaobaoSimbaInsightCatsforecastnewGetAPIRequest) GetBidwordList() []string { + return r._bidwordList +} diff --git a/model/simba/TaobaoSimbaInsightCatsforecastnewGetAPIResponse.go b/model/simba/TaobaoSimbaInsightCatsforecastnewGetAPIResponse.go new file mode 100644 index 0000000000..597ec9fd59 --- /dev/null +++ b/model/simba/TaobaoSimbaInsightCatsforecastnewGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取词的相关类目预测数据 API返回值 +taobao.simba.insight.catsforecastnew.get + +根据给定的词,预测这些词的相关类目 +*/ +type TaobaoSimbaInsightCatsforecastnewGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaInsightCatsforecastnewGetAPIResponseModel +} + +// 获取词的相关类目预测数据 成功返回结果 +type TaobaoSimbaInsightCatsforecastnewGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_insight_catsforecastnew_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 词的相关类目列表 + CategoryForecastList []InsightCategoryForcastDto `json:"category_forecast_list,omitempty" xml:"category_forecast_list>insight_category_forcast_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaInsightCatsforecastnewGetResponse.go b/model/simba/TaobaoSimbaInsightCatsforecastnewGetResponse.go deleted file mode 100644 index 56bced58f0..0000000000 --- a/model/simba/TaobaoSimbaInsightCatsforecastnewGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取词的相关类目预测数据 API返回值 -taobao.simba.insight.catsforecastnew.get - -根据给定的词,预测这些词的相关类目 -*/ -type TaobaoSimbaInsightCatsforecastnewGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaInsightCatsforecastnewGetResponse -} - -// 获取词的相关类目预测数据 成功返回结果 -type TaobaoSimbaInsightCatsforecastnewGetResponse struct { - XMLName xml.Name `xml:"simba_insight_catsforecastnew_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 词的相关类目列表 - CategoryForecastList []InsightCategoryForcastDto `json:"category_forecast_list,omitempty" xml:"category_forecast_list>insight_category_forcast_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaInsightCatsinfoGetAPIRequest.go b/model/simba/TaobaoSimbaInsightCatsinfoGetAPIRequest.go new file mode 100644 index 0000000000..64f2da8c7d --- /dev/null +++ b/model/simba/TaobaoSimbaInsightCatsinfoGetAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +类目信息获取 API请求 +taobao.simba.insight.catsinfo.get + +获取类目信息,此接口既提供所有顶级类目的查询,又提供给定类目id自身信息和子类目信息的查询,所以可以根据此接口逐层获取所有的类目信息 +*/ +type TaobaoSimbaInsightCatsinfoGetAPIRequest struct { + model.Params + // 表示请求的类型:0表示请求所有顶级类目的信息,这时可以忽略第二个参数,1表示获取给定的类目id的详细信息,2表示获取给定类目id的所有子类目的详细信息 + _type int64 + // 需要查询的类目id + _categoryIdList []string +} + +// 初始化TaobaoSimbaInsightCatsinfoGetAPIRequest对象 +func NewTaobaoSimbaInsightCatsinfoGetRequest() *TaobaoSimbaInsightCatsinfoGetAPIRequest{ + return &TaobaoSimbaInsightCatsinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaInsightCatsinfoGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.insight.catsinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaInsightCatsinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// 表示请求的类型:0表示请求所有顶级类目的信息,这时可以忽略第二个参数,1表示获取给定的类目id的详细信息,2表示获取给定类目id的所有子类目的详细信息 +func (r *TaobaoSimbaInsightCatsinfoGetAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoSimbaInsightCatsinfoGetAPIRequest) GetType() int64 { + return r._type +} +// CategoryIdList Setter +// 需要查询的类目id +func (r *TaobaoSimbaInsightCatsinfoGetAPIRequest) SetCategoryIdList(_categoryIdList []string) error { + r._categoryIdList = _categoryIdList + r.Set("category_id_list", _categoryIdList) + return nil +} + +// CategoryIdList Getter +func (r TaobaoSimbaInsightCatsinfoGetAPIRequest) GetCategoryIdList() []string { + return r._categoryIdList +} diff --git a/model/simba/TaobaoSimbaInsightCatsinfoGetAPIResponse.go b/model/simba/TaobaoSimbaInsightCatsinfoGetAPIResponse.go new file mode 100644 index 0000000000..9dc14c3943 --- /dev/null +++ b/model/simba/TaobaoSimbaInsightCatsinfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +类目信息获取 API返回值 +taobao.simba.insight.catsinfo.get + +获取类目信息,此接口既提供所有顶级类目的查询,又提供给定类目id自身信息和子类目信息的查询,所以可以根据此接口逐层获取所有的类目信息 +*/ +type TaobaoSimbaInsightCatsinfoGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaInsightCatsinfoGetAPIResponseModel +} + +// 类目信息获取 成功返回结果 +type TaobaoSimbaInsightCatsinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_insight_catsinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 类目详细信息 + CategoryInfoList []InsightCategoryInfoDto `json:"category_info_list,omitempty" xml:"category_info_list>insight_category_info_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaInsightCatsinfoGetResponse.go b/model/simba/TaobaoSimbaInsightCatsinfoGetResponse.go deleted file mode 100644 index 6df1b49462..0000000000 --- a/model/simba/TaobaoSimbaInsightCatsinfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -类目信息获取 API返回值 -taobao.simba.insight.catsinfo.get - -获取类目信息,此接口既提供所有顶级类目的查询,又提供给定类目id自身信息和子类目信息的查询,所以可以根据此接口逐层获取所有的类目信息 -*/ -type TaobaoSimbaInsightCatsinfoGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaInsightCatsinfoGetResponse -} - -// 类目信息获取 成功返回结果 -type TaobaoSimbaInsightCatsinfoGetResponse struct { - XMLName xml.Name `xml:"simba_insight_catsinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 类目详细信息 - CategoryInfoList []InsightCategoryInfoDto `json:"category_info_list,omitempty" xml:"category_info_list>insight_category_info_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaInsightCatstopwordnewGetAPIRequest.go b/model/simba/TaobaoSimbaInsightCatstopwordnewGetAPIRequest.go new file mode 100644 index 0000000000..f64f865cb7 --- /dev/null +++ b/model/simba/TaobaoSimbaInsightCatstopwordnewGetAPIRequest.go @@ -0,0 +1,108 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取类目下最热门的词 API请求 +taobao.simba.insight.catstopwordnew.get + +按照某个维度,查询某个类目下最热门的词,维度有点击,展现,花费,点击率等,具体可以按哪些字段进行排序,参考参数说明,比如选择了impression,则返回该类目下展现量最高那几个词。 +*/ +type TaobaoSimbaInsightCatstopwordnewGetAPIRequest struct { + model.Params + // 类目id + _catId string + // 查询开始时间,格式必须为:yyyy-MM-dd + _startDate string + // 查询截止时间,格式只能是:yyyy-MM-dd + _endDate string + // 表示查询的维度,比如选择click,则查询该类目下点击量最大的词,可供选择的值有:impression, click, cost, ctr, cpc, coverage, transactiontotal, transactionshippingtotal, favtotal, roi + _dimension string + // 返回前多少条数据 + _pageSize int64 +} + +// 初始化TaobaoSimbaInsightCatstopwordnewGetAPIRequest对象 +func NewTaobaoSimbaInsightCatstopwordnewGetRequest() *TaobaoSimbaInsightCatstopwordnewGetAPIRequest{ + return &TaobaoSimbaInsightCatstopwordnewGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaInsightCatstopwordnewGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.insight.catstopwordnew.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaInsightCatstopwordnewGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CatId Setter +// 类目id +func (r *TaobaoSimbaInsightCatstopwordnewGetAPIRequest) SetCatId(_catId string) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r TaobaoSimbaInsightCatstopwordnewGetAPIRequest) GetCatId() string { + return r._catId +} +// StartDate Setter +// 查询开始时间,格式必须为:yyyy-MM-dd +func (r *TaobaoSimbaInsightCatstopwordnewGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoSimbaInsightCatstopwordnewGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 查询截止时间,格式只能是:yyyy-MM-dd +func (r *TaobaoSimbaInsightCatstopwordnewGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoSimbaInsightCatstopwordnewGetAPIRequest) GetEndDate() string { + return r._endDate +} +// Dimension Setter +// 表示查询的维度,比如选择click,则查询该类目下点击量最大的词,可供选择的值有:impression, click, cost, ctr, cpc, coverage, transactiontotal, transactionshippingtotal, favtotal, roi +func (r *TaobaoSimbaInsightCatstopwordnewGetAPIRequest) SetDimension(_dimension string) error { + r._dimension = _dimension + r.Set("dimension", _dimension) + return nil +} + +// Dimension Getter +func (r TaobaoSimbaInsightCatstopwordnewGetAPIRequest) GetDimension() string { + return r._dimension +} +// PageSize Setter +// 返回前多少条数据 +func (r *TaobaoSimbaInsightCatstopwordnewGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaInsightCatstopwordnewGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/simba/TaobaoSimbaInsightCatstopwordnewGetAPIResponse.go b/model/simba/TaobaoSimbaInsightCatstopwordnewGetAPIResponse.go new file mode 100644 index 0000000000..b65923be0b --- /dev/null +++ b/model/simba/TaobaoSimbaInsightCatstopwordnewGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取类目下最热门的词 API返回值 +taobao.simba.insight.catstopwordnew.get + +按照某个维度,查询某个类目下最热门的词,维度有点击,展现,花费,点击率等,具体可以按哪些字段进行排序,参考参数说明,比如选择了impression,则返回该类目下展现量最高那几个词。 +*/ +type TaobaoSimbaInsightCatstopwordnewGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaInsightCatstopwordnewGetAPIResponseModel +} + +// 获取类目下最热门的词 成功返回结果 +type TaobaoSimbaInsightCatstopwordnewGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_insight_catstopwordnew_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 类目下热门词详细数据 + TopwordDataList []InsightWordDataUnderCatDto `json:"topword_data_list,omitempty" xml:"topword_data_list>insight_word_data_under_cat_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaInsightCatstopwordnewGetResponse.go b/model/simba/TaobaoSimbaInsightCatstopwordnewGetResponse.go deleted file mode 100644 index 14ca4e3fa7..0000000000 --- a/model/simba/TaobaoSimbaInsightCatstopwordnewGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取类目下最热门的词 API返回值 -taobao.simba.insight.catstopwordnew.get - -按照某个维度,查询某个类目下最热门的词,维度有点击,展现,花费,点击率等,具体可以按哪些字段进行排序,参考参数说明,比如选择了impression,则返回该类目下展现量最高那几个词。 -*/ -type TaobaoSimbaInsightCatstopwordnewGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaInsightCatstopwordnewGetResponse -} - -// 获取类目下最热门的词 成功返回结果 -type TaobaoSimbaInsightCatstopwordnewGetResponse struct { - XMLName xml.Name `xml:"simba_insight_catstopwordnew_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 类目下热门词详细数据 - TopwordDataList []InsightWordDataUnderCatDto `json:"topword_data_list,omitempty" xml:"topword_data_list>insight_word_data_under_cat_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaInsightCatsworddataGetAPIRequest.go b/model/simba/TaobaoSimbaInsightCatsworddataGetAPIRequest.go new file mode 100644 index 0000000000..96a54ee3e0 --- /dev/null +++ b/model/simba/TaobaoSimbaInsightCatsworddataGetAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取类目下关键词的数据 API请求 +taobao.simba.insight.catsworddata.get + +获取给定词在给定类目下的详细数据 +*/ +type TaobaoSimbaInsightCatsworddataGetAPIRequest struct { + model.Params + // 类目id + _catId string + // 需要查询的关键词列表,最大长度100。 + _bidwordList []string + // 开始时间,格式只能为:yyyy-MM-dd + _startDate string + // 结束时间,格式只能为:yyyy-MM-dd + _endDate string +} + +// 初始化TaobaoSimbaInsightCatsworddataGetAPIRequest对象 +func NewTaobaoSimbaInsightCatsworddataGetRequest() *TaobaoSimbaInsightCatsworddataGetAPIRequest{ + return &TaobaoSimbaInsightCatsworddataGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaInsightCatsworddataGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.insight.catsworddata.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaInsightCatsworddataGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CatId Setter +// 类目id +func (r *TaobaoSimbaInsightCatsworddataGetAPIRequest) SetCatId(_catId string) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r TaobaoSimbaInsightCatsworddataGetAPIRequest) GetCatId() string { + return r._catId +} +// BidwordList Setter +// 需要查询的关键词列表,最大长度100。 +func (r *TaobaoSimbaInsightCatsworddataGetAPIRequest) SetBidwordList(_bidwordList []string) error { + r._bidwordList = _bidwordList + r.Set("bidword_list", _bidwordList) + return nil +} + +// BidwordList Getter +func (r TaobaoSimbaInsightCatsworddataGetAPIRequest) GetBidwordList() []string { + return r._bidwordList +} +// StartDate Setter +// 开始时间,格式只能为:yyyy-MM-dd +func (r *TaobaoSimbaInsightCatsworddataGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoSimbaInsightCatsworddataGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 结束时间,格式只能为:yyyy-MM-dd +func (r *TaobaoSimbaInsightCatsworddataGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoSimbaInsightCatsworddataGetAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/simba/TaobaoSimbaInsightCatsworddataGetAPIResponse.go b/model/simba/TaobaoSimbaInsightCatsworddataGetAPIResponse.go new file mode 100644 index 0000000000..bf72d03ff9 --- /dev/null +++ b/model/simba/TaobaoSimbaInsightCatsworddataGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取类目下关键词的数据 API返回值 +taobao.simba.insight.catsworddata.get + +获取给定词在给定类目下的详细数据 +*/ +type TaobaoSimbaInsightCatsworddataGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaInsightCatsworddataGetAPIResponseModel +} + +// 获取类目下关键词的数据 成功返回结果 +type TaobaoSimbaInsightCatsworddataGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_insight_catsworddata_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 关键词在类目下的数据 + CatwordDataList []InsightWordDataUnderCatDto `json:"catword_data_list,omitempty" xml:"catword_data_list>insight_word_data_under_cat_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaInsightCatsworddataGetResponse.go b/model/simba/TaobaoSimbaInsightCatsworddataGetResponse.go deleted file mode 100644 index a1c89a45bb..0000000000 --- a/model/simba/TaobaoSimbaInsightCatsworddataGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取类目下关键词的数据 API返回值 -taobao.simba.insight.catsworddata.get - -获取给定词在给定类目下的详细数据 -*/ -type TaobaoSimbaInsightCatsworddataGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaInsightCatsworddataGetResponse -} - -// 获取类目下关键词的数据 成功返回结果 -type TaobaoSimbaInsightCatsworddataGetResponse struct { - XMLName xml.Name `xml:"simba_insight_catsworddata_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 关键词在类目下的数据 - CatwordDataList []InsightWordDataUnderCatDto `json:"catword_data_list,omitempty" xml:"catword_data_list>insight_word_data_under_cat_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaInsightRelatedwordsGetAPIRequest.go b/model/simba/TaobaoSimbaInsightRelatedwordsGetAPIRequest.go new file mode 100644 index 0000000000..7f19a2a818 --- /dev/null +++ b/model/simba/TaobaoSimbaInsightRelatedwordsGetAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取词的相关词 API请求 +taobao.simba.insight.relatedwords.get + +获取给定词的若干相关词,返回结果中越相关的权重越大,排在越前面,根据number参数对返回结果进行截断。 +*/ +type TaobaoSimbaInsightRelatedwordsGetAPIRequest struct { + model.Params + // 要查询的词列表 + _bidwordList []string + // 表示返回数据的条数 + _number int64 +} + +// 初始化TaobaoSimbaInsightRelatedwordsGetAPIRequest对象 +func NewTaobaoSimbaInsightRelatedwordsGetRequest() *TaobaoSimbaInsightRelatedwordsGetAPIRequest{ + return &TaobaoSimbaInsightRelatedwordsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaInsightRelatedwordsGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.insight.relatedwords.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaInsightRelatedwordsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BidwordList Setter +// 要查询的词列表 +func (r *TaobaoSimbaInsightRelatedwordsGetAPIRequest) SetBidwordList(_bidwordList []string) error { + r._bidwordList = _bidwordList + r.Set("bidword_list", _bidwordList) + return nil +} + +// BidwordList Getter +func (r TaobaoSimbaInsightRelatedwordsGetAPIRequest) GetBidwordList() []string { + return r._bidwordList +} +// Number Setter +// 表示返回数据的条数 +func (r *TaobaoSimbaInsightRelatedwordsGetAPIRequest) SetNumber(_number int64) error { + r._number = _number + r.Set("number", _number) + return nil +} + +// Number Getter +func (r TaobaoSimbaInsightRelatedwordsGetAPIRequest) GetNumber() int64 { + return r._number +} diff --git a/model/simba/TaobaoSimbaInsightRelatedwordsGetAPIResponse.go b/model/simba/TaobaoSimbaInsightRelatedwordsGetAPIResponse.go new file mode 100644 index 0000000000..bc729fcadc --- /dev/null +++ b/model/simba/TaobaoSimbaInsightRelatedwordsGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取词的相关词 API返回值 +taobao.simba.insight.relatedwords.get + +获取给定词的若干相关词,返回结果中越相关的权重越大,排在越前面,根据number参数对返回结果进行截断。 +*/ +type TaobaoSimbaInsightRelatedwordsGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaInsightRelatedwordsGetAPIResponseModel +} + +// 获取词的相关词 成功返回结果 +type TaobaoSimbaInsightRelatedwordsGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_insight_relatedwords_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 相关词列表,最多可传100个。 + RelatedWordsResultList []InsightRelatedWords `json:"related_words_result_list,omitempty" xml:"related_words_result_list>insight_related_words,omitempty"` +} diff --git a/model/simba/TaobaoSimbaInsightRelatedwordsGetResponse.go b/model/simba/TaobaoSimbaInsightRelatedwordsGetResponse.go deleted file mode 100644 index 0b149d5d4c..0000000000 --- a/model/simba/TaobaoSimbaInsightRelatedwordsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取词的相关词 API返回值 -taobao.simba.insight.relatedwords.get - -获取给定词的若干相关词,返回结果中越相关的权重越大,排在越前面,根据number参数对返回结果进行截断。 -*/ -type TaobaoSimbaInsightRelatedwordsGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaInsightRelatedwordsGetResponse -} - -// 获取词的相关词 成功返回结果 -type TaobaoSimbaInsightRelatedwordsGetResponse struct { - XMLName xml.Name `xml:"simba_insight_relatedwords_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 相关词列表,最多可传100个。 - RelatedWordsResultList []InsightRelatedWords `json:"related_words_result_list,omitempty" xml:"related_words_result_list>insight_related_words,omitempty"` -} diff --git a/model/simba/TaobaoSimbaInsightWordsareadataGetAPIRequest.go b/model/simba/TaobaoSimbaInsightWordsareadataGetAPIRequest.go new file mode 100644 index 0000000000..14219d4589 --- /dev/null +++ b/model/simba/TaobaoSimbaInsightWordsareadataGetAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取关键词按地域进行细分的数据 API请求 +taobao.simba.insight.wordsareadata.get + +获取关键词按地域细分的详细数据,目前地域只能细化到省级别,返回的结果中包括市,是为了方便以后扩展,目前结果中市的值等于省。 +*/ +type TaobaoSimbaInsightWordsareadataGetAPIRequest struct { + model.Params + // 关键词 + _bidword string + // 开始时间,格式:yyyy-MM-dd + _startDate string + // 结束时间,格式:yyyy-MM-dd + _endDate string +} + +// 初始化TaobaoSimbaInsightWordsareadataGetAPIRequest对象 +func NewTaobaoSimbaInsightWordsareadataGetRequest() *TaobaoSimbaInsightWordsareadataGetAPIRequest{ + return &TaobaoSimbaInsightWordsareadataGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaInsightWordsareadataGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.insight.wordsareadata.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaInsightWordsareadataGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Bidword Setter +// 关键词 +func (r *TaobaoSimbaInsightWordsareadataGetAPIRequest) SetBidword(_bidword string) error { + r._bidword = _bidword + r.Set("bidword", _bidword) + return nil +} + +// Bidword Getter +func (r TaobaoSimbaInsightWordsareadataGetAPIRequest) GetBidword() string { + return r._bidword +} +// StartDate Setter +// 开始时间,格式:yyyy-MM-dd +func (r *TaobaoSimbaInsightWordsareadataGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoSimbaInsightWordsareadataGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 结束时间,格式:yyyy-MM-dd +func (r *TaobaoSimbaInsightWordsareadataGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoSimbaInsightWordsareadataGetAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/simba/TaobaoSimbaInsightWordsareadataGetAPIResponse.go b/model/simba/TaobaoSimbaInsightWordsareadataGetAPIResponse.go new file mode 100644 index 0000000000..0e8a8d45a6 --- /dev/null +++ b/model/simba/TaobaoSimbaInsightWordsareadataGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取关键词按地域进行细分的数据 API返回值 +taobao.simba.insight.wordsareadata.get + +获取关键词按地域细分的详细数据,目前地域只能细化到省级别,返回的结果中包括市,是为了方便以后扩展,目前结果中市的值等于省。 +*/ +type TaobaoSimbaInsightWordsareadataGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaInsightWordsareadataGetAPIResponseModel +} + +// 获取关键词按地域进行细分的数据 成功返回结果 +type TaobaoSimbaInsightWordsareadataGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_insight_wordsareadata_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 地域细分数据 + WordAreadataList []InsightWordsAreaDistributeDataDto `json:"word_areadata_list,omitempty" xml:"word_areadata_list>insight_words_area_distribute_data_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaInsightWordsareadataGetResponse.go b/model/simba/TaobaoSimbaInsightWordsareadataGetResponse.go deleted file mode 100644 index 170a09fd67..0000000000 --- a/model/simba/TaobaoSimbaInsightWordsareadataGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取关键词按地域进行细分的数据 API返回值 -taobao.simba.insight.wordsareadata.get - -获取关键词按地域细分的详细数据,目前地域只能细化到省级别,返回的结果中包括市,是为了方便以后扩展,目前结果中市的值等于省。 -*/ -type TaobaoSimbaInsightWordsareadataGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaInsightWordsareadataGetResponse -} - -// 获取关键词按地域进行细分的数据 成功返回结果 -type TaobaoSimbaInsightWordsareadataGetResponse struct { - XMLName xml.Name `xml:"simba_insight_wordsareadata_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 地域细分数据 - WordAreadataList []InsightWordsAreaDistributeDataDto `json:"word_areadata_list,omitempty" xml:"word_areadata_list>insight_words_area_distribute_data_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaInsightWordsdataGetAPIRequest.go b/model/simba/TaobaoSimbaInsightWordsdataGetAPIRequest.go new file mode 100644 index 0000000000..df2850db09 --- /dev/null +++ b/model/simba/TaobaoSimbaInsightWordsdataGetAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取关键词的大盘数据 API请求 +taobao.simba.insight.wordsdata.get + +获取关键词的详细数据 +*/ +type TaobaoSimbaInsightWordsdataGetAPIRequest struct { + model.Params + // 关键词列表,最多可传100个。 + _bidwordList []string + // 开始时间 + _startDate string + // 结束时间 + _endDate string +} + +// 初始化TaobaoSimbaInsightWordsdataGetAPIRequest对象 +func NewTaobaoSimbaInsightWordsdataGetRequest() *TaobaoSimbaInsightWordsdataGetAPIRequest{ + return &TaobaoSimbaInsightWordsdataGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaInsightWordsdataGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.insight.wordsdata.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaInsightWordsdataGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BidwordList Setter +// 关键词列表,最多可传100个。 +func (r *TaobaoSimbaInsightWordsdataGetAPIRequest) SetBidwordList(_bidwordList []string) error { + r._bidwordList = _bidwordList + r.Set("bidword_list", _bidwordList) + return nil +} + +// BidwordList Getter +func (r TaobaoSimbaInsightWordsdataGetAPIRequest) GetBidwordList() []string { + return r._bidwordList +} +// StartDate Setter +// 开始时间 +func (r *TaobaoSimbaInsightWordsdataGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoSimbaInsightWordsdataGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 结束时间 +func (r *TaobaoSimbaInsightWordsdataGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoSimbaInsightWordsdataGetAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/simba/TaobaoSimbaInsightWordsdataGetAPIResponse.go b/model/simba/TaobaoSimbaInsightWordsdataGetAPIResponse.go new file mode 100644 index 0000000000..787fbd26be --- /dev/null +++ b/model/simba/TaobaoSimbaInsightWordsdataGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取关键词的大盘数据 API返回值 +taobao.simba.insight.wordsdata.get + +获取关键词的详细数据 +*/ +type TaobaoSimbaInsightWordsdataGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaInsightWordsdataGetAPIResponseModel +} + +// 获取关键词的大盘数据 成功返回结果 +type TaobaoSimbaInsightWordsdataGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_insight_wordsdata_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 关键词大盘数据列表 + WordDataList []InsightWordDataDto `json:"word_data_list,omitempty" xml:"word_data_list>insight_word_data_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaInsightWordsdataGetResponse.go b/model/simba/TaobaoSimbaInsightWordsdataGetResponse.go deleted file mode 100644 index 5b96080149..0000000000 --- a/model/simba/TaobaoSimbaInsightWordsdataGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取关键词的大盘数据 API返回值 -taobao.simba.insight.wordsdata.get - -获取关键词的详细数据 -*/ -type TaobaoSimbaInsightWordsdataGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaInsightWordsdataGetResponse -} - -// 获取关键词的大盘数据 成功返回结果 -type TaobaoSimbaInsightWordsdataGetResponse struct { - XMLName xml.Name `xml:"simba_insight_wordsdata_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 关键词大盘数据列表 - WordDataList []InsightWordDataDto `json:"word_data_list,omitempty" xml:"word_data_list>insight_word_data_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaInsightWordspricedataGetAPIRequest.go b/model/simba/TaobaoSimbaInsightWordspricedataGetAPIRequest.go new file mode 100644 index 0000000000..cd6aa4a0c0 --- /dev/null +++ b/model/simba/TaobaoSimbaInsightWordspricedataGetAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词按竞价区间的分布数据 API请求 +taobao.simba.insight.wordspricedata.get + +获取关键词按竞价区间进行细分的数据 +*/ +type TaobaoSimbaInsightWordspricedataGetAPIRequest struct { + model.Params + // 关键词 + _bidword string + // 开始时间,格式:yyyy-MM-dd + _startDate string + // 结束时间,格式:yyyy-MM-dd + _endDate string +} + +// 初始化TaobaoSimbaInsightWordspricedataGetAPIRequest对象 +func NewTaobaoSimbaInsightWordspricedataGetRequest() *TaobaoSimbaInsightWordspricedataGetAPIRequest{ + return &TaobaoSimbaInsightWordspricedataGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaInsightWordspricedataGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.insight.wordspricedata.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaInsightWordspricedataGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Bidword Setter +// 关键词 +func (r *TaobaoSimbaInsightWordspricedataGetAPIRequest) SetBidword(_bidword string) error { + r._bidword = _bidword + r.Set("bidword", _bidword) + return nil +} + +// Bidword Getter +func (r TaobaoSimbaInsightWordspricedataGetAPIRequest) GetBidword() string { + return r._bidword +} +// StartDate Setter +// 开始时间,格式:yyyy-MM-dd +func (r *TaobaoSimbaInsightWordspricedataGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoSimbaInsightWordspricedataGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 结束时间,格式:yyyy-MM-dd +func (r *TaobaoSimbaInsightWordspricedataGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoSimbaInsightWordspricedataGetAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/simba/TaobaoSimbaInsightWordspricedataGetAPIResponse.go b/model/simba/TaobaoSimbaInsightWordspricedataGetAPIResponse.go new file mode 100644 index 0000000000..125d014b7c --- /dev/null +++ b/model/simba/TaobaoSimbaInsightWordspricedataGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词按竞价区间的分布数据 API返回值 +taobao.simba.insight.wordspricedata.get + +获取关键词按竞价区间进行细分的数据 +*/ +type TaobaoSimbaInsightWordspricedataGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaInsightWordspricedataGetAPIResponseModel +} + +// 关键词按竞价区间的分布数据 成功返回结果 +type TaobaoSimbaInsightWordspricedataGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_insight_wordspricedata_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 竞价区间分布数据 + WordPricedataList []InsightWordPriceDistributeDataDto `json:"word_pricedata_list,omitempty" xml:"word_pricedata_list>insight_word_price_distribute_data_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaInsightWordspricedataGetResponse.go b/model/simba/TaobaoSimbaInsightWordspricedataGetResponse.go deleted file mode 100644 index ae2a5db8eb..0000000000 --- a/model/simba/TaobaoSimbaInsightWordspricedataGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -关键词按竞价区间的分布数据 API返回值 -taobao.simba.insight.wordspricedata.get - -获取关键词按竞价区间进行细分的数据 -*/ -type TaobaoSimbaInsightWordspricedataGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaInsightWordspricedataGetResponse -} - -// 关键词按竞价区间的分布数据 成功返回结果 -type TaobaoSimbaInsightWordspricedataGetResponse struct { - XMLName xml.Name `xml:"simba_insight_wordspricedata_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 竞价区间分布数据 - WordPricedataList []InsightWordPriceDistributeDataDto `json:"word_pricedata_list,omitempty" xml:"word_pricedata_list>insight_word_price_distribute_data_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaInsightWordssubdataGetAPIRequest.go b/model/simba/TaobaoSimbaInsightWordssubdataGetAPIRequest.go new file mode 100644 index 0000000000..737c846853 --- /dev/null +++ b/model/simba/TaobaoSimbaInsightWordssubdataGetAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取关键词按流量细分的数据 API请求 +taobao.simba.insight.wordssubdata.get + +获取关键词按流量进行细分的数据,返回结果中network表示流量的来源,意义如下:1->PC站内,2->PC站外,4->无线站内 5->无线站外 +*/ +type TaobaoSimbaInsightWordssubdataGetAPIRequest struct { + model.Params + // 关键词列表 + _bidwordList []string + // 开始时间 + _startDate string + // 结束时间 + _endDate string +} + +// 初始化TaobaoSimbaInsightWordssubdataGetAPIRequest对象 +func NewTaobaoSimbaInsightWordssubdataGetRequest() *TaobaoSimbaInsightWordssubdataGetAPIRequest{ + return &TaobaoSimbaInsightWordssubdataGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaInsightWordssubdataGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.insight.wordssubdata.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaInsightWordssubdataGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BidwordList Setter +// 关键词列表 +func (r *TaobaoSimbaInsightWordssubdataGetAPIRequest) SetBidwordList(_bidwordList []string) error { + r._bidwordList = _bidwordList + r.Set("bidword_list", _bidwordList) + return nil +} + +// BidwordList Getter +func (r TaobaoSimbaInsightWordssubdataGetAPIRequest) GetBidwordList() []string { + return r._bidwordList +} +// StartDate Setter +// 开始时间 +func (r *TaobaoSimbaInsightWordssubdataGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoSimbaInsightWordssubdataGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 结束时间 +func (r *TaobaoSimbaInsightWordssubdataGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoSimbaInsightWordssubdataGetAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/simba/TaobaoSimbaInsightWordssubdataGetAPIResponse.go b/model/simba/TaobaoSimbaInsightWordssubdataGetAPIResponse.go new file mode 100644 index 0000000000..3105c9943f --- /dev/null +++ b/model/simba/TaobaoSimbaInsightWordssubdataGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取关键词按流量细分的数据 API返回值 +taobao.simba.insight.wordssubdata.get + +获取关键词按流量进行细分的数据,返回结果中network表示流量的来源,意义如下:1->PC站内,2->PC站外,4->无线站内 5->无线站外 +*/ +type TaobaoSimbaInsightWordssubdataGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaInsightWordssubdataGetAPIResponseModel +} + +// 获取关键词按流量细分的数据 成功返回结果 +type TaobaoSimbaInsightWordssubdataGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_insight_wordssubdata_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 关键词按流量细分的数据 + WordSubdataList []InsightWordSubDataDto `json:"word_subdata_list,omitempty" xml:"word_subdata_list>insight_word_sub_data_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaInsightWordssubdataGetResponse.go b/model/simba/TaobaoSimbaInsightWordssubdataGetResponse.go deleted file mode 100644 index 6cf11ed8a6..0000000000 --- a/model/simba/TaobaoSimbaInsightWordssubdataGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取关键词按流量细分的数据 API返回值 -taobao.simba.insight.wordssubdata.get - -获取关键词按流量进行细分的数据,返回结果中network表示流量的来源,意义如下:1->PC站内,2->PC站外,4->无线站内 5->无线站外 -*/ -type TaobaoSimbaInsightWordssubdataGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaInsightWordssubdataGetResponse -} - -// 获取关键词按流量细分的数据 成功返回结果 -type TaobaoSimbaInsightWordssubdataGetResponse struct { - XMLName xml.Name `xml:"simba_insight_wordssubdata_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 关键词按流量细分的数据 - WordSubdataList []InsightWordSubDataDto `json:"word_subdata_list,omitempty" xml:"word_subdata_list>insight_word_sub_data_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaKeywordAddAPIRequest.go b/model/simba/TaobaoSimbaKeywordAddAPIRequest.go new file mode 100644 index 0000000000..0ba4260fcd --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordAddAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)关键词新增接口 API请求 +taobao.simba.keyword.add + +(新)关键词更新相关接口 +*/ +type TaobaoSimbaKeywordAddAPIRequest struct { + model.Params + // 关键词相关信息 + _bidwords []SiriusBidwordDto + // 推广单元id + _adgroupId int64 +} + +// 初始化TaobaoSimbaKeywordAddAPIRequest对象 +func NewTaobaoSimbaKeywordAddRequest() *TaobaoSimbaKeywordAddAPIRequest{ + return &TaobaoSimbaKeywordAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaKeywordAddAPIRequest) GetApiMethodName() string { + return "taobao.simba.keyword.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaKeywordAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Bidwords Setter +// 关键词相关信息 +func (r *TaobaoSimbaKeywordAddAPIRequest) SetBidwords(_bidwords []SiriusBidwordDto) error { + r._bidwords = _bidwords + r.Set("bidwords", _bidwords) + return nil +} + +// Bidwords Getter +func (r TaobaoSimbaKeywordAddAPIRequest) GetBidwords() []SiriusBidwordDto { + return r._bidwords +} +// AdgroupId Setter +// 推广单元id +func (r *TaobaoSimbaKeywordAddAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaKeywordAddAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/simba/TaobaoSimbaKeywordAddAPIResponse.go b/model/simba/TaobaoSimbaKeywordAddAPIResponse.go new file mode 100644 index 0000000000..79f4c8e5ed --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordAddAPIResponse.go @@ -0,0 +1,29 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)关键词新增接口 API返回值 +taobao.simba.keyword.add + +(新)关键词更新相关接口 +*/ +type TaobaoSimbaKeywordAddAPIResponse struct { + model.CommonResponse + TaobaoSimbaKeywordAddAPIResponseModel +} + +// (新)关键词新增接口 成功返回结果 +type TaobaoSimbaKeywordAddAPIResponseModel struct { + XMLName xml.Name `xml:"simba_keyword_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 整体的返回值 + Results []SiriusBidwordDto `json:"results,omitempty" xml:"results>sirius_bidword_dto,omitempty"` + // 错误原因 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/simba/TaobaoSimbaKeywordAddResponse.go b/model/simba/TaobaoSimbaKeywordAddResponse.go deleted file mode 100644 index b3cf356d20..0000000000 --- a/model/simba/TaobaoSimbaKeywordAddResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(新)关键词新增接口 API返回值 -taobao.simba.keyword.add - -(新)关键词更新相关接口 -*/ -type TaobaoSimbaKeywordAddAPIResponse struct { - model.CommonResponse - TaobaoSimbaKeywordAddResponse -} - -// (新)关键词新增接口 成功返回结果 -type TaobaoSimbaKeywordAddResponse struct { - XMLName xml.Name `xml:"simba_keyword_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 整体的返回值 - Results []SiriusBidwordDto `json:"results,omitempty" xml:"results>sirius_bidword_dto,omitempty"` - // 错误原因 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/simba/TaobaoSimbaKeywordFindbyadgroupidAPIRequest.go b/model/simba/TaobaoSimbaKeywordFindbyadgroupidAPIRequest.go new file mode 100644 index 0000000000..6379a29e24 --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordFindbyadgroupidAPIRequest.go @@ -0,0 +1,52 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据推广单元id获取关键词 API请求 +taobao.simba.keyword.findbyadgroupid + +根据一个关键词Id列表取得一组关键词 +*/ +type TaobaoSimbaKeywordFindbyadgroupidAPIRequest struct { + model.Params + // 推广单元id + _adgroupId int64 +} + +// 初始化TaobaoSimbaKeywordFindbyadgroupidAPIRequest对象 +func NewTaobaoSimbaKeywordFindbyadgroupidRequest() *TaobaoSimbaKeywordFindbyadgroupidAPIRequest{ + return &TaobaoSimbaKeywordFindbyadgroupidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaKeywordFindbyadgroupidAPIRequest) GetApiMethodName() string { + return "taobao.simba.keyword.findbyadgroupid" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaKeywordFindbyadgroupidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AdgroupId Setter +// 推广单元id +func (r *TaobaoSimbaKeywordFindbyadgroupidAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaKeywordFindbyadgroupidAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/simba/TaobaoSimbaKeywordFindbyadgroupidAPIResponse.go b/model/simba/TaobaoSimbaKeywordFindbyadgroupidAPIResponse.go new file mode 100644 index 0000000000..e74782a50f --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordFindbyadgroupidAPIResponse.go @@ -0,0 +1,29 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据推广单元id获取关键词 API返回值 +taobao.simba.keyword.findbyadgroupid + +根据一个关键词Id列表取得一组关键词 +*/ +type TaobaoSimbaKeywordFindbyadgroupidAPIResponse struct { + model.CommonResponse + TaobaoSimbaKeywordFindbyadgroupidAPIResponseModel +} + +// 根据推广单元id获取关键词 成功返回结果 +type TaobaoSimbaKeywordFindbyadgroupidAPIResponseModel struct { + XMLName xml.Name `xml:"simba_keyword_findbyadgroupid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 整体的返回值 + Results []SiriusBidwordDto `json:"results,omitempty" xml:"results>sirius_bidword_dto,omitempty"` + // 错误原因 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/simba/TaobaoSimbaKeywordFindbyadgroupidResponse.go b/model/simba/TaobaoSimbaKeywordFindbyadgroupidResponse.go deleted file mode 100644 index b2d7df1647..0000000000 --- a/model/simba/TaobaoSimbaKeywordFindbyadgroupidResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据推广单元id获取关键词 API返回值 -taobao.simba.keyword.findbyadgroupid - -根据一个关键词Id列表取得一组关键词 -*/ -type TaobaoSimbaKeywordFindbyadgroupidAPIResponse struct { - model.CommonResponse - TaobaoSimbaKeywordFindbyadgroupidResponse -} - -// 根据推广单元id获取关键词 成功返回结果 -type TaobaoSimbaKeywordFindbyadgroupidResponse struct { - XMLName xml.Name `xml:"simba_keyword_findbyadgroupid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 整体的返回值 - Results []SiriusBidwordDto `json:"results,omitempty" xml:"results>sirius_bidword_dto,omitempty"` - // 错误原因 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/simba/TaobaoSimbaKeywordFindbyidsAPIRequest.go b/model/simba/TaobaoSimbaKeywordFindbyidsAPIRequest.go new file mode 100644 index 0000000000..9739558948 --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordFindbyidsAPIRequest.go @@ -0,0 +1,52 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)根据一堆关键词ids获取关键词 API请求 +taobao.simba.keyword.findbyids + +根据一个关键词Id列表取得一组关键词 +*/ +type TaobaoSimbaKeywordFindbyidsAPIRequest struct { + model.Params + // 关键词ids + _bidwordIds []int64 +} + +// 初始化TaobaoSimbaKeywordFindbyidsAPIRequest对象 +func NewTaobaoSimbaKeywordFindbyidsRequest() *TaobaoSimbaKeywordFindbyidsAPIRequest{ + return &TaobaoSimbaKeywordFindbyidsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaKeywordFindbyidsAPIRequest) GetApiMethodName() string { + return "taobao.simba.keyword.findbyids" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaKeywordFindbyidsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BidwordIds Setter +// 关键词ids +func (r *TaobaoSimbaKeywordFindbyidsAPIRequest) SetBidwordIds(_bidwordIds []int64) error { + r._bidwordIds = _bidwordIds + r.Set("bidword_ids", _bidwordIds) + return nil +} + +// BidwordIds Getter +func (r TaobaoSimbaKeywordFindbyidsAPIRequest) GetBidwordIds() []int64 { + return r._bidwordIds +} diff --git a/model/simba/TaobaoSimbaKeywordFindbyidsAPIResponse.go b/model/simba/TaobaoSimbaKeywordFindbyidsAPIResponse.go new file mode 100644 index 0000000000..9fa16cf817 --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordFindbyidsAPIResponse.go @@ -0,0 +1,29 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)根据一堆关键词ids获取关键词 API返回值 +taobao.simba.keyword.findbyids + +根据一个关键词Id列表取得一组关键词 +*/ +type TaobaoSimbaKeywordFindbyidsAPIResponse struct { + model.CommonResponse + TaobaoSimbaKeywordFindbyidsAPIResponseModel +} + +// (新)根据一堆关键词ids获取关键词 成功返回结果 +type TaobaoSimbaKeywordFindbyidsAPIResponseModel struct { + XMLName xml.Name `xml:"simba_keyword_findbyids_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 整体的返回值 + Results []SiriusBidwordDto `json:"results,omitempty" xml:"results>sirius_bidword_dto,omitempty"` + // 错误原因 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/simba/TaobaoSimbaKeywordFindbyidsResponse.go b/model/simba/TaobaoSimbaKeywordFindbyidsResponse.go deleted file mode 100644 index b7e48b4eab..0000000000 --- a/model/simba/TaobaoSimbaKeywordFindbyidsResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(新)根据一堆关键词ids获取关键词 API返回值 -taobao.simba.keyword.findbyids - -根据一个关键词Id列表取得一组关键词 -*/ -type TaobaoSimbaKeywordFindbyidsAPIResponse struct { - model.CommonResponse - TaobaoSimbaKeywordFindbyidsResponse -} - -// (新)根据一堆关键词ids获取关键词 成功返回结果 -type TaobaoSimbaKeywordFindbyidsResponse struct { - XMLName xml.Name `xml:"simba_keyword_findbyids_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 整体的返回值 - Results []SiriusBidwordDto `json:"results,omitempty" xml:"results>sirius_bidword_dto,omitempty"` - // 错误原因 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/simba/TaobaoSimbaKeywordUpdateAPIRequest.go b/model/simba/TaobaoSimbaKeywordUpdateAPIRequest.go new file mode 100644 index 0000000000..46699c5d73 --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)关键词更新相关接口 API请求 +taobao.simba.keyword.update + +(新)关键词更新相关接口 +*/ +type TaobaoSimbaKeywordUpdateAPIRequest struct { + model.Params + // 关键词相关信息 + _bidwords []SiriusBidwordDto +} + +// 初始化TaobaoSimbaKeywordUpdateAPIRequest对象 +func NewTaobaoSimbaKeywordUpdateRequest() *TaobaoSimbaKeywordUpdateAPIRequest{ + return &TaobaoSimbaKeywordUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaKeywordUpdateAPIRequest) GetApiMethodName() string { + return "taobao.simba.keyword.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaKeywordUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Bidwords Setter +// 关键词相关信息 +func (r *TaobaoSimbaKeywordUpdateAPIRequest) SetBidwords(_bidwords []SiriusBidwordDto) error { + r._bidwords = _bidwords + r.Set("bidwords", _bidwords) + return nil +} + +// Bidwords Getter +func (r TaobaoSimbaKeywordUpdateAPIRequest) GetBidwords() []SiriusBidwordDto { + return r._bidwords +} diff --git a/model/simba/TaobaoSimbaKeywordUpdateAPIResponse.go b/model/simba/TaobaoSimbaKeywordUpdateAPIResponse.go new file mode 100644 index 0000000000..0e7529d78b --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordUpdateAPIResponse.go @@ -0,0 +1,29 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)关键词更新相关接口 API返回值 +taobao.simba.keyword.update + +(新)关键词更新相关接口 +*/ +type TaobaoSimbaKeywordUpdateAPIResponse struct { + model.CommonResponse + TaobaoSimbaKeywordUpdateAPIResponseModel +} + +// (新)关键词更新相关接口 成功返回结果 +type TaobaoSimbaKeywordUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"simba_keyword_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 整体的返回值 + Results []SiriusBidwordDto `json:"results,omitempty" xml:"results>sirius_bidword_dto,omitempty"` + // 错误原因 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/simba/TaobaoSimbaKeywordUpdateResponse.go b/model/simba/TaobaoSimbaKeywordUpdateResponse.go deleted file mode 100644 index f2fea02ef4..0000000000 --- a/model/simba/TaobaoSimbaKeywordUpdateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(新)关键词更新相关接口 API返回值 -taobao.simba.keyword.update - -(新)关键词更新相关接口 -*/ -type TaobaoSimbaKeywordUpdateAPIResponse struct { - model.CommonResponse - TaobaoSimbaKeywordUpdateResponse -} - -// (新)关键词更新相关接口 成功返回结果 -type TaobaoSimbaKeywordUpdateResponse struct { - XMLName xml.Name `xml:"simba_keyword_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 整体的返回值 - Results []SiriusBidwordDto `json:"results,omitempty" xml:"results>sirius_bidword_dto,omitempty"` - // 错误原因 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/simba/TaobaoSimbaKeywordidsChangedGetAPIRequest.go b/model/simba/TaobaoSimbaKeywordidsChangedGetAPIRequest.go new file mode 100644 index 0000000000..2565d5f7cc --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordidsChangedGetAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取修改的词ID API请求 +taobao.simba.keywordids.changed.get + +获取修改的词ID +*/ +type TaobaoSimbaKeywordidsChangedGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 得到此时间点之后的数据,不能大于一个月 + _startTime string + // 返回的每页数据量大小,默认200最大1000 + _pageSize int64 + // 返回的第几页数据,默认为1 + _pageNo int64 +} + +// 初始化TaobaoSimbaKeywordidsChangedGetAPIRequest对象 +func NewTaobaoSimbaKeywordidsChangedGetRequest() *TaobaoSimbaKeywordidsChangedGetAPIRequest{ + return &TaobaoSimbaKeywordidsChangedGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaKeywordidsChangedGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.keywordids.changed.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaKeywordidsChangedGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaKeywordidsChangedGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaKeywordidsChangedGetAPIRequest) GetNick() string { + return r._nick +} +// StartTime Setter +// 得到此时间点之后的数据,不能大于一个月 +func (r *TaobaoSimbaKeywordidsChangedGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaKeywordidsChangedGetAPIRequest) GetStartTime() string { + return r._startTime +} +// PageSize Setter +// 返回的每页数据量大小,默认200最大1000 +func (r *TaobaoSimbaKeywordidsChangedGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaKeywordidsChangedGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 返回的第几页数据,默认为1 +func (r *TaobaoSimbaKeywordidsChangedGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaKeywordidsChangedGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/simba/TaobaoSimbaKeywordidsChangedGetAPIResponse.go b/model/simba/TaobaoSimbaKeywordidsChangedGetAPIResponse.go new file mode 100644 index 0000000000..599242e530 --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordidsChangedGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取修改的词ID API返回值 +taobao.simba.keywordids.changed.get + +获取修改的词ID +*/ +type TaobaoSimbaKeywordidsChangedGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaKeywordidsChangedGetAPIResponseModel +} + +// 获取修改的词ID 成功返回结果 +type TaobaoSimbaKeywordidsChangedGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_keywordids_changed_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 词的ID列表 + ChangedKeywordIds []int64 `json:"changed_keyword_ids,omitempty" xml:"changed_keyword_ids>int64,omitempty"` +} diff --git a/model/simba/TaobaoSimbaKeywordidsChangedGetResponse.go b/model/simba/TaobaoSimbaKeywordidsChangedGetResponse.go deleted file mode 100644 index bd8897c90b..0000000000 --- a/model/simba/TaobaoSimbaKeywordidsChangedGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取修改的词ID API返回值 -taobao.simba.keywordids.changed.get - -获取修改的词ID -*/ -type TaobaoSimbaKeywordidsChangedGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaKeywordidsChangedGetResponse -} - -// 获取修改的词ID 成功返回结果 -type TaobaoSimbaKeywordidsChangedGetResponse struct { - XMLName xml.Name `xml:"simba_keywordids_changed_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 词的ID列表 - ChangedKeywordIds []int64 `json:"changed_keyword_ids,omitempty" xml:"changed_keyword_ids>int64,omitempty"` -} diff --git a/model/simba/TaobaoSimbaKeywordidsDeletedGetAPIRequest.go b/model/simba/TaobaoSimbaKeywordidsDeletedGetAPIRequest.go new file mode 100644 index 0000000000..6aeb63104f --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordidsDeletedGetAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取删除的词ID API请求 +taobao.simba.keywordids.deleted.get + +获取删除的词ID +*/ +type TaobaoSimbaKeywordidsDeletedGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 得到此时间点之后的数据,不能大于一个月 + _startTime string + // 返回的每页数据量大小,默认200最大1000 + _pageSize int64 + // 返回的第几页数据,默认为1 + _pageNo int64 +} + +// 初始化TaobaoSimbaKeywordidsDeletedGetAPIRequest对象 +func NewTaobaoSimbaKeywordidsDeletedGetRequest() *TaobaoSimbaKeywordidsDeletedGetAPIRequest{ + return &TaobaoSimbaKeywordidsDeletedGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaKeywordidsDeletedGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.keywordids.deleted.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaKeywordidsDeletedGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaKeywordidsDeletedGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaKeywordidsDeletedGetAPIRequest) GetNick() string { + return r._nick +} +// StartTime Setter +// 得到此时间点之后的数据,不能大于一个月 +func (r *TaobaoSimbaKeywordidsDeletedGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaKeywordidsDeletedGetAPIRequest) GetStartTime() string { + return r._startTime +} +// PageSize Setter +// 返回的每页数据量大小,默认200最大1000 +func (r *TaobaoSimbaKeywordidsDeletedGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaKeywordidsDeletedGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 返回的第几页数据,默认为1 +func (r *TaobaoSimbaKeywordidsDeletedGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaKeywordidsDeletedGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/simba/TaobaoSimbaKeywordidsDeletedGetAPIResponse.go b/model/simba/TaobaoSimbaKeywordidsDeletedGetAPIResponse.go new file mode 100644 index 0000000000..de90ca206c --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordidsDeletedGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取删除的词ID API返回值 +taobao.simba.keywordids.deleted.get + +获取删除的词ID +*/ +type TaobaoSimbaKeywordidsDeletedGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaKeywordidsDeletedGetAPIResponseModel +} + +// 获取删除的词ID 成功返回结果 +type TaobaoSimbaKeywordidsDeletedGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_keywordids_deleted_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 词ID列表 + DeletedKeywordIds []int64 `json:"deleted_keyword_ids,omitempty" xml:"deleted_keyword_ids>int64,omitempty"` +} diff --git a/model/simba/TaobaoSimbaKeywordidsDeletedGetResponse.go b/model/simba/TaobaoSimbaKeywordidsDeletedGetResponse.go deleted file mode 100644 index 39b86e0551..0000000000 --- a/model/simba/TaobaoSimbaKeywordidsDeletedGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取删除的词ID API返回值 -taobao.simba.keywordids.deleted.get - -获取删除的词ID -*/ -type TaobaoSimbaKeywordidsDeletedGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaKeywordidsDeletedGetResponse -} - -// 获取删除的词ID 成功返回结果 -type TaobaoSimbaKeywordidsDeletedGetResponse struct { - XMLName xml.Name `xml:"simba_keywordids_deleted_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 词ID列表 - DeletedKeywordIds []int64 `json:"deleted_keyword_ids,omitempty" xml:"deleted_keyword_ids>int64,omitempty"` -} diff --git a/model/simba/TaobaoSimbaKeywordsChangedGetAPIRequest.go b/model/simba/TaobaoSimbaKeywordsChangedGetAPIRequest.go new file mode 100644 index 0000000000..9e2a776023 --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsChangedGetAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页获取修改过的关键词ID、宝贝id、修改时间 API请求 +taobao.simba.keywords.changed.get + +分页获取修改过的关键词ID、宝贝id、修改时间 +*/ +type TaobaoSimbaKeywordsChangedGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 得到此时间点之后的数据,不能大于一个月 + _startTime string + // 返回的每页数据量大小,默认200最大1000 + _pageSize int64 + // 返回的第几页数据,默认为1 + _pageNo int64 +} + +// 初始化TaobaoSimbaKeywordsChangedGetAPIRequest对象 +func NewTaobaoSimbaKeywordsChangedGetRequest() *TaobaoSimbaKeywordsChangedGetAPIRequest{ + return &TaobaoSimbaKeywordsChangedGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaKeywordsChangedGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.keywords.changed.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaKeywordsChangedGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaKeywordsChangedGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaKeywordsChangedGetAPIRequest) GetNick() string { + return r._nick +} +// StartTime Setter +// 得到此时间点之后的数据,不能大于一个月 +func (r *TaobaoSimbaKeywordsChangedGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaKeywordsChangedGetAPIRequest) GetStartTime() string { + return r._startTime +} +// PageSize Setter +// 返回的每页数据量大小,默认200最大1000 +func (r *TaobaoSimbaKeywordsChangedGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaKeywordsChangedGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 返回的第几页数据,默认为1 +func (r *TaobaoSimbaKeywordsChangedGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaKeywordsChangedGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/simba/TaobaoSimbaKeywordsChangedGetAPIResponse.go b/model/simba/TaobaoSimbaKeywordsChangedGetAPIResponse.go new file mode 100644 index 0000000000..0e9c48a30f --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsChangedGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页获取修改过的关键词ID、宝贝id、修改时间 API返回值 +taobao.simba.keywords.changed.get + +分页获取修改过的关键词ID、宝贝id、修改时间 +*/ +type TaobaoSimbaKeywordsChangedGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaKeywordsChangedGetAPIResponseModel +} + +// 分页获取修改过的关键词ID、宝贝id、修改时间 成功返回结果 +type TaobaoSimbaKeywordsChangedGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_keywords_changed_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 关键词分页对象 + Keywords *KeywordPage `json:"keywords,omitempty" xml:"keywords,omitempty"` +} diff --git a/model/simba/TaobaoSimbaKeywordsChangedGetResponse.go b/model/simba/TaobaoSimbaKeywordsChangedGetResponse.go deleted file mode 100644 index 67b095b633..0000000000 --- a/model/simba/TaobaoSimbaKeywordsChangedGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页获取修改过的关键词ID、宝贝id、修改时间 API返回值 -taobao.simba.keywords.changed.get - -分页获取修改过的关键词ID、宝贝id、修改时间 -*/ -type TaobaoSimbaKeywordsChangedGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaKeywordsChangedGetResponse -} - -// 分页获取修改过的关键词ID、宝贝id、修改时间 成功返回结果 -type TaobaoSimbaKeywordsChangedGetResponse struct { - XMLName xml.Name `xml:"simba_keywords_changed_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 关键词分页对象 - Keywords *KeywordPage `json:"keywords,omitempty" xml:"keywords,omitempty"` -} diff --git a/model/simba/TaobaoSimbaKeywordsDeleteAPIRequest.go b/model/simba/TaobaoSimbaKeywordsDeleteAPIRequest.go new file mode 100644 index 0000000000..3adef1f64c --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsDeleteAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除一批关键词 API请求 +taobao.simba.keywords.delete + +删除一批关键词 +*/ +type TaobaoSimbaKeywordsDeleteAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广计划Id + _campaignId int64 + // 关键词Id数组,最多100个 + _keywordIds []int64 +} + +// 初始化TaobaoSimbaKeywordsDeleteAPIRequest对象 +func NewTaobaoSimbaKeywordsDeleteRequest() *TaobaoSimbaKeywordsDeleteAPIRequest{ + return &TaobaoSimbaKeywordsDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaKeywordsDeleteAPIRequest) GetApiMethodName() string { + return "taobao.simba.keywords.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaKeywordsDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaKeywordsDeleteAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaKeywordsDeleteAPIRequest) GetNick() string { + return r._nick +} +// CampaignId Setter +// 推广计划Id +func (r *TaobaoSimbaKeywordsDeleteAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaKeywordsDeleteAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// KeywordIds Setter +// 关键词Id数组,最多100个 +func (r *TaobaoSimbaKeywordsDeleteAPIRequest) SetKeywordIds(_keywordIds []int64) error { + r._keywordIds = _keywordIds + r.Set("keyword_ids", _keywordIds) + return nil +} + +// KeywordIds Getter +func (r TaobaoSimbaKeywordsDeleteAPIRequest) GetKeywordIds() []int64 { + return r._keywordIds +} diff --git a/model/simba/TaobaoSimbaKeywordsDeleteAPIResponse.go b/model/simba/TaobaoSimbaKeywordsDeleteAPIResponse.go new file mode 100644 index 0000000000..1206b0c28d --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除一批关键词 API返回值 +taobao.simba.keywords.delete + +删除一批关键词 +*/ +type TaobaoSimbaKeywordsDeleteAPIResponse struct { + model.CommonResponse + TaobaoSimbaKeywordsDeleteAPIResponseModel +} + +// 删除一批关键词 成功返回结果 +type TaobaoSimbaKeywordsDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"simba_keywords_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功删除的关键词列表 + Keywords []Keyword `json:"keywords,omitempty" xml:"keywords>keyword,omitempty"` +} diff --git a/model/simba/TaobaoSimbaKeywordsDeleteResponse.go b/model/simba/TaobaoSimbaKeywordsDeleteResponse.go deleted file mode 100644 index f74e63b981..0000000000 --- a/model/simba/TaobaoSimbaKeywordsDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除一批关键词 API返回值 -taobao.simba.keywords.delete - -删除一批关键词 -*/ -type TaobaoSimbaKeywordsDeleteAPIResponse struct { - model.CommonResponse - TaobaoSimbaKeywordsDeleteResponse -} - -// 删除一批关键词 成功返回结果 -type TaobaoSimbaKeywordsDeleteResponse struct { - XMLName xml.Name `xml:"simba_keywords_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功删除的关键词列表 - Keywords []Keyword `json:"keywords,omitempty" xml:"keywords>keyword,omitempty"` -} diff --git a/model/simba/TaobaoSimbaKeywordsPricevonSetAPIRequest.go b/model/simba/TaobaoSimbaKeywordsPricevonSetAPIRequest.go new file mode 100644 index 0000000000..101f75ee98 --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsPricevonSetAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设置一批关键词的信息 API请求 +taobao.simba.keywords.pricevon.set + +设置一批关键词的信息,包含无线出价、计算机出价和关键词匹配方式 +*/ +type TaobaoSimbaKeywordsPricevonSetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 关键词ID,出价和匹配方式json字符串,keywordId:词ID,整数。maxPrice:价格,是整数,以“分”为单位,不能小于5,不能大于日限额,也不能大于99.99元,当使用默认出价时必须将这个值设置为0。; isDefaultPrice:是否使用默认出价,只能是0。matchscope只能是1,4(1代表精确匹配,4代表广泛匹配),maxMobilePrice:代表无线出价(如果是0,则代表无线出价=PC*无线溢价),mobileIsDefaultPrice代表无线出价是否采用pc*无线溢价,只能传0 + _keywordidPrices string +} + +// 初始化TaobaoSimbaKeywordsPricevonSetAPIRequest对象 +func NewTaobaoSimbaKeywordsPricevonSetRequest() *TaobaoSimbaKeywordsPricevonSetAPIRequest{ + return &TaobaoSimbaKeywordsPricevonSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaKeywordsPricevonSetAPIRequest) GetApiMethodName() string { + return "taobao.simba.keywords.pricevon.set" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaKeywordsPricevonSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaKeywordsPricevonSetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaKeywordsPricevonSetAPIRequest) GetNick() string { + return r._nick +} +// KeywordidPrices Setter +// 关键词ID,出价和匹配方式json字符串,keywordId:词ID,整数。maxPrice:价格,是整数,以“分”为单位,不能小于5,不能大于日限额,也不能大于99.99元,当使用默认出价时必须将这个值设置为0。; isDefaultPrice:是否使用默认出价,只能是0。matchscope只能是1,4(1代表精确匹配,4代表广泛匹配),maxMobilePrice:代表无线出价(如果是0,则代表无线出价=PC*无线溢价),mobileIsDefaultPrice代表无线出价是否采用pc*无线溢价,只能传0 +func (r *TaobaoSimbaKeywordsPricevonSetAPIRequest) SetKeywordidPrices(_keywordidPrices string) error { + r._keywordidPrices = _keywordidPrices + r.Set("keywordid_prices", _keywordidPrices) + return nil +} + +// KeywordidPrices Getter +func (r TaobaoSimbaKeywordsPricevonSetAPIRequest) GetKeywordidPrices() string { + return r._keywordidPrices +} diff --git a/model/simba/TaobaoSimbaKeywordsPricevonSetAPIResponse.go b/model/simba/TaobaoSimbaKeywordsPricevonSetAPIResponse.go new file mode 100644 index 0000000000..cde5b6552e --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsPricevonSetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设置一批关键词的信息 API返回值 +taobao.simba.keywords.pricevon.set + +设置一批关键词的信息,包含无线出价、计算机出价和关键词匹配方式 +*/ +type TaobaoSimbaKeywordsPricevonSetAPIResponse struct { + model.CommonResponse + TaobaoSimbaKeywordsPricevonSetAPIResponseModel +} + +// 设置一批关键词的信息 成功返回结果 +type TaobaoSimbaKeywordsPricevonSetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_keywords_pricevon_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功设置关键词价格的关键词列表 + Keywords []Keyword `json:"keywords,omitempty" xml:"keywords>keyword,omitempty"` +} diff --git a/model/simba/TaobaoSimbaKeywordsPricevonSetResponse.go b/model/simba/TaobaoSimbaKeywordsPricevonSetResponse.go deleted file mode 100644 index 45d8f4e18d..0000000000 --- a/model/simba/TaobaoSimbaKeywordsPricevonSetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设置一批关键词的信息 API返回值 -taobao.simba.keywords.pricevon.set - -设置一批关键词的信息,包含无线出价、计算机出价和关键词匹配方式 -*/ -type TaobaoSimbaKeywordsPricevonSetAPIResponse struct { - model.CommonResponse - TaobaoSimbaKeywordsPricevonSetResponse -} - -// 设置一批关键词的信息 成功返回结果 -type TaobaoSimbaKeywordsPricevonSetResponse struct { - XMLName xml.Name `xml:"simba_keywords_pricevon_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功设置关键词价格的关键词列表 - Keywords []Keyword `json:"keywords,omitempty" xml:"keywords>keyword,omitempty"` -} diff --git a/model/simba/TaobaoSimbaKeywordsQscoreGetAPIRequest.go b/model/simba/TaobaoSimbaKeywordsQscoreGetAPIRequest.go new file mode 100644 index 0000000000..f762ade473 --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsQscoreGetAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一个推广组的所有关键词的质量得分或者根据关键词Id列表取得一组关键词的质量得分 API请求 +taobao.simba.keywords.qscore.get + +取得一个推广组的所有关键词的质量得分列表 +*/ +type TaobaoSimbaKeywordsQscoreGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广组Id + _adgroupId int64 +} + +// 初始化TaobaoSimbaKeywordsQscoreGetAPIRequest对象 +func NewTaobaoSimbaKeywordsQscoreGetRequest() *TaobaoSimbaKeywordsQscoreGetAPIRequest{ + return &TaobaoSimbaKeywordsQscoreGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaKeywordsQscoreGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.keywords.qscore.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaKeywordsQscoreGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaKeywordsQscoreGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaKeywordsQscoreGetAPIRequest) GetNick() string { + return r._nick +} +// AdgroupId Setter +// 推广组Id +func (r *TaobaoSimbaKeywordsQscoreGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaKeywordsQscoreGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/simba/TaobaoSimbaKeywordsQscoreGetAPIResponse.go b/model/simba/TaobaoSimbaKeywordsQscoreGetAPIResponse.go new file mode 100644 index 0000000000..6173e8067d --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsQscoreGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一个推广组的所有关键词的质量得分或者根据关键词Id列表取得一组关键词的质量得分 API返回值 +taobao.simba.keywords.qscore.get + +取得一个推广组的所有关键词的质量得分列表 +*/ +type TaobaoSimbaKeywordsQscoreGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaKeywordsQscoreGetAPIResponseModel +} + +// 取得一个推广组的所有关键词的质量得分或者根据关键词Id列表取得一组关键词的质量得分 成功返回结果 +type TaobaoSimbaKeywordsQscoreGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_keywords_qscore_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 取得的关键词质量得分列表 + KeywordQscoreList []KeywordQscore `json:"keyword_qscore_list,omitempty" xml:"keyword_qscore_list>keyword_qscore,omitempty"` +} diff --git a/model/simba/TaobaoSimbaKeywordsQscoreGetResponse.go b/model/simba/TaobaoSimbaKeywordsQscoreGetResponse.go deleted file mode 100644 index 6293fb6516..0000000000 --- a/model/simba/TaobaoSimbaKeywordsQscoreGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取得一个推广组的所有关键词的质量得分或者根据关键词Id列表取得一组关键词的质量得分 API返回值 -taobao.simba.keywords.qscore.get - -取得一个推广组的所有关键词的质量得分列表 -*/ -type TaobaoSimbaKeywordsQscoreGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaKeywordsQscoreGetResponse -} - -// 取得一个推广组的所有关键词的质量得分或者根据关键词Id列表取得一组关键词的质量得分 成功返回结果 -type TaobaoSimbaKeywordsQscoreGetResponse struct { - XMLName xml.Name `xml:"simba_keywords_qscore_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 取得的关键词质量得分列表 - KeywordQscoreList []KeywordQscore `json:"keyword_qscore_list,omitempty" xml:"keyword_qscore_list>keyword_qscore,omitempty"` -} diff --git a/model/simba/TaobaoSimbaKeywordsQscoreSplitGetAPIRequest.go b/model/simba/TaobaoSimbaKeywordsQscoreSplitGetAPIRequest.go new file mode 100644 index 0000000000..37f2dc1070 --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsQscoreSplitGetAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新质量分服务 API请求 +taobao.simba.keywords.qscore.split.get + +获取关键词新的质量分 +*/ +type TaobaoSimbaKeywordsQscoreSplitGetAPIRequest struct { + model.Params + // 账号昵称 + _nick string + // 推广组id + _adGroupId int64 + // 词id数组(最多批量获取20个) + _bidwordIds []int64 +} + +// 初始化TaobaoSimbaKeywordsQscoreSplitGetAPIRequest对象 +func NewTaobaoSimbaKeywordsQscoreSplitGetRequest() *TaobaoSimbaKeywordsQscoreSplitGetAPIRequest{ + return &TaobaoSimbaKeywordsQscoreSplitGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaKeywordsQscoreSplitGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.keywords.qscore.split.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaKeywordsQscoreSplitGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 账号昵称 +func (r *TaobaoSimbaKeywordsQscoreSplitGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaKeywordsQscoreSplitGetAPIRequest) GetNick() string { + return r._nick +} +// AdGroupId Setter +// 推广组id +func (r *TaobaoSimbaKeywordsQscoreSplitGetAPIRequest) SetAdGroupId(_adGroupId int64) error { + r._adGroupId = _adGroupId + r.Set("ad_group_id", _adGroupId) + return nil +} + +// AdGroupId Getter +func (r TaobaoSimbaKeywordsQscoreSplitGetAPIRequest) GetAdGroupId() int64 { + return r._adGroupId +} +// BidwordIds Setter +// 词id数组(最多批量获取20个) +func (r *TaobaoSimbaKeywordsQscoreSplitGetAPIRequest) SetBidwordIds(_bidwordIds []int64) error { + r._bidwordIds = _bidwordIds + r.Set("bidword_ids", _bidwordIds) + return nil +} + +// BidwordIds Getter +func (r TaobaoSimbaKeywordsQscoreSplitGetAPIRequest) GetBidwordIds() []int64 { + return r._bidwordIds +} diff --git a/model/simba/TaobaoSimbaKeywordsQscoreSplitGetAPIResponse.go b/model/simba/TaobaoSimbaKeywordsQscoreSplitGetAPIResponse.go new file mode 100644 index 0000000000..fbbc77d8c1 --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsQscoreSplitGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新质量分服务 API返回值 +taobao.simba.keywords.qscore.split.get + +获取关键词新的质量分 +*/ +type TaobaoSimbaKeywordsQscoreSplitGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaKeywordsQscoreSplitGetAPIResponseModel +} + +// 新质量分服务 成功返回结果 +type TaobaoSimbaKeywordsQscoreSplitGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_keywords_qscore_split_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoSimbaKeywordsQscoreSplitGetResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/simba/TaobaoSimbaKeywordsQscoreSplitGetResponse.go b/model/simba/TaobaoSimbaKeywordsQscoreSplitGetResponse.go deleted file mode 100644 index f591d108b0..0000000000 --- a/model/simba/TaobaoSimbaKeywordsQscoreSplitGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新质量分服务 API返回值 -taobao.simba.keywords.qscore.split.get - -获取关键词新的质量分 -*/ -type TaobaoSimbaKeywordsQscoreSplitGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaKeywordsQscoreSplitGetResponse -} - -// 新质量分服务 成功返回结果 -type TaobaoSimbaKeywordsQscoreSplitGetResponse struct { - XMLName xml.Name `xml:"simba_keywords_qscore_split_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoSimbaKeywordsQscoreSplitGetResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/simba/TaobaoSimbaKeywordsQscoreSplitGetResultDto.go b/model/simba/TaobaoSimbaKeywordsQscoreSplitGetResultDto.go new file mode 100644 index 0000000000..e31ba70d82 --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsQscoreSplitGetResultDto.go @@ -0,0 +1,11 @@ +package simba + +// TaobaoSimbaKeywordsQscoreSplitGetResultDto +type TaobaoSimbaKeywordsQscoreSplitGetResultDto struct { + // 返回新质量分实体信息 + Result *QScoreSplitDto `json:"result,omitempty" xml:"result,omitempty"` + // 返回成功/错误码 + Key string `json:"key,omitempty" xml:"key,omitempty"` + // 返回信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/simba/TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIRequest.go b/model/simba/TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIRequest.go new file mode 100644 index 0000000000..be6c1fa16b --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取关键词的新版实时排名 API请求 +taobao.simba.keywords.realtime.ranking.batch.get + +根据关键词ID获取关键词的新版实时排名 +*/ +type TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIRequest struct { + model.Params + // 旺旺名称 + _nick string + // adgroupId + _adGroupId int64 + // 关键词列表集合,id用半角逗号分割,一次最多20个 + _bidwordIds []int64 +} + +// 初始化TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIRequest对象 +func NewTaobaoSimbaKeywordsRealtimeRankingBatchGetRequest() *TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIRequest{ + return &TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.keywords.realtime.ranking.batch.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 旺旺名称 +func (r *TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIRequest) GetNick() string { + return r._nick +} +// AdGroupId Setter +// adgroupId +func (r *TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIRequest) SetAdGroupId(_adGroupId int64) error { + r._adGroupId = _adGroupId + r.Set("ad_group_id", _adGroupId) + return nil +} + +// AdGroupId Getter +func (r TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIRequest) GetAdGroupId() int64 { + return r._adGroupId +} +// BidwordIds Setter +// 关键词列表集合,id用半角逗号分割,一次最多20个 +func (r *TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIRequest) SetBidwordIds(_bidwordIds []int64) error { + r._bidwordIds = _bidwordIds + r.Set("bidword_ids", _bidwordIds) + return nil +} + +// BidwordIds Getter +func (r TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIRequest) GetBidwordIds() []int64 { + return r._bidwordIds +} diff --git a/model/simba/TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIResponse.go b/model/simba/TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIResponse.go new file mode 100644 index 0000000000..2559760f7b --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取关键词的新版实时排名 API返回值 +taobao.simba.keywords.realtime.ranking.batch.get + +根据关键词ID获取关键词的新版实时排名 +*/ +type TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIResponseModel +} + +// 获取关键词的新版实时排名 成功返回结果 +type TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_keywords_realtime_ranking_batch_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *TaobaoSimbaKeywordsRealtimeRankingBatchGetResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/simba/TaobaoSimbaKeywordsRealtimeRankingBatchGetResponse.go b/model/simba/TaobaoSimbaKeywordsRealtimeRankingBatchGetResponse.go deleted file mode 100644 index b61127dc96..0000000000 --- a/model/simba/TaobaoSimbaKeywordsRealtimeRankingBatchGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取关键词的新版实时排名 API返回值 -taobao.simba.keywords.realtime.ranking.batch.get - -根据关键词ID获取关键词的新版实时排名 -*/ -type TaobaoSimbaKeywordsRealtimeRankingBatchGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaKeywordsRealtimeRankingBatchGetResponse -} - -// 获取关键词的新版实时排名 成功返回结果 -type TaobaoSimbaKeywordsRealtimeRankingBatchGetResponse struct { - XMLName xml.Name `xml:"simba_keywords_realtime_ranking_batch_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *TaobaoSimbaKeywordsRealtimeRankingBatchGetResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/simba/TaobaoSimbaKeywordsRealtimeRankingBatchGetResultDto.go b/model/simba/TaobaoSimbaKeywordsRealtimeRankingBatchGetResultDto.go new file mode 100644 index 0000000000..3935f59aaa --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsRealtimeRankingBatchGetResultDto.go @@ -0,0 +1,15 @@ +package simba + +// TaobaoSimbaKeywordsRealtimeRankingBatchGetResultDto +type TaobaoSimbaKeywordsRealtimeRankingBatchGetResultDto struct { + // 返回结果,结果是json结构,说明: pc_rank=-2:创意未投放,-1:计划未投放,0:首页左侧位置,1:首页右侧第1,2:首页右侧第2,3:首页右侧第3,4:首页(非前三),5:第2页,6:第3页,7:第4页,8:第5页,9:5页以后 mobile_rank=-2:创意未投放,-1:计划未投放,0:移动首条,1:移动前三,3:移动4~6条,6:移动7~10条,10:移动11~15条,11=移动16~20条,12=20条以后 + RealtimeRankList []TaobaoSimbaKeywordsRealtimeRankingBatchGetResult `json:"realtime_rank_list,omitempty" xml:"realtime_rank_list>taobao_simba_keywords_realtime_ranking_batch_get_result,omitempty"` + // 错误码 + Code string `json:"code,omitempty" xml:"code,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误消息 + Msg string `json:"msg,omitempty" xml:"msg,omitempty"` + // 错误对应的消息Key + Key string `json:"key,omitempty" xml:"key,omitempty"` +} diff --git a/model/simba/TaobaoSimbaKeywordsRecommendGetAPIRequest.go b/model/simba/TaobaoSimbaKeywordsRecommendGetAPIRequest.go new file mode 100644 index 0000000000..ebb48c112c --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsRecommendGetAPIRequest.go @@ -0,0 +1,136 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一个推广组的推荐关键词列表 API请求 +taobao.simba.keywords.recommend.get + +取得一个推广组的推荐关键词列表 +*/ +type TaobaoSimbaKeywordsRecommendGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广组ID + _adgroupId int64 + // 搜索量,设置此值后返回的就是大于此搜索量的词列表 + _search int64 + // 相关度 + _pertinence string + // 返回的每页数据量大小,最大200 + _pageSize int64 + // 返回的第几页数据,默认为1 + _pageNo int64 + // 排序方式: 搜索量 search_volume 市场平均价格 average_price 相关度 relevance 不排序 non 默认为 non + _orderBy string +} + +// 初始化TaobaoSimbaKeywordsRecommendGetAPIRequest对象 +func NewTaobaoSimbaKeywordsRecommendGetRequest() *TaobaoSimbaKeywordsRecommendGetAPIRequest{ + return &TaobaoSimbaKeywordsRecommendGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaKeywordsRecommendGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.keywords.recommend.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaKeywordsRecommendGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaKeywordsRecommendGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaKeywordsRecommendGetAPIRequest) GetNick() string { + return r._nick +} +// AdgroupId Setter +// 推广组ID +func (r *TaobaoSimbaKeywordsRecommendGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaKeywordsRecommendGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// Search Setter +// 搜索量,设置此值后返回的就是大于此搜索量的词列表 +func (r *TaobaoSimbaKeywordsRecommendGetAPIRequest) SetSearch(_search int64) error { + r._search = _search + r.Set("search", _search) + return nil +} + +// Search Getter +func (r TaobaoSimbaKeywordsRecommendGetAPIRequest) GetSearch() int64 { + return r._search +} +// Pertinence Setter +// 相关度 +func (r *TaobaoSimbaKeywordsRecommendGetAPIRequest) SetPertinence(_pertinence string) error { + r._pertinence = _pertinence + r.Set("pertinence", _pertinence) + return nil +} + +// Pertinence Getter +func (r TaobaoSimbaKeywordsRecommendGetAPIRequest) GetPertinence() string { + return r._pertinence +} +// PageSize Setter +// 返回的每页数据量大小,最大200 +func (r *TaobaoSimbaKeywordsRecommendGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaKeywordsRecommendGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 返回的第几页数据,默认为1 +func (r *TaobaoSimbaKeywordsRecommendGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaKeywordsRecommendGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// OrderBy Setter +// 排序方式: 搜索量 search_volume 市场平均价格 average_price 相关度 relevance 不排序 non 默认为 non +func (r *TaobaoSimbaKeywordsRecommendGetAPIRequest) SetOrderBy(_orderBy string) error { + r._orderBy = _orderBy + r.Set("order_by", _orderBy) + return nil +} + +// OrderBy Getter +func (r TaobaoSimbaKeywordsRecommendGetAPIRequest) GetOrderBy() string { + return r._orderBy +} diff --git a/model/simba/TaobaoSimbaKeywordsRecommendGetAPIResponse.go b/model/simba/TaobaoSimbaKeywordsRecommendGetAPIResponse.go new file mode 100644 index 0000000000..de097de8c6 --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsRecommendGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一个推广组的推荐关键词列表 API返回值 +taobao.simba.keywords.recommend.get + +取得一个推广组的推荐关键词列表 +*/ +type TaobaoSimbaKeywordsRecommendGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaKeywordsRecommendGetAPIResponseModel +} + +// 取得一个推广组的推荐关键词列表 成功返回结果 +type TaobaoSimbaKeywordsRecommendGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_keywords_recommend_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推荐词分页对象,当输入的页码大于最大数值时,将返回最大的page_no值,并且结果中的数据列表为空值 + RecommendWords *RecommendWordPage `json:"recommend_words,omitempty" xml:"recommend_words,omitempty"` +} diff --git a/model/simba/TaobaoSimbaKeywordsRecommendGetResponse.go b/model/simba/TaobaoSimbaKeywordsRecommendGetResponse.go deleted file mode 100644 index af66ad19fd..0000000000 --- a/model/simba/TaobaoSimbaKeywordsRecommendGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取得一个推广组的推荐关键词列表 API返回值 -taobao.simba.keywords.recommend.get - -取得一个推广组的推荐关键词列表 -*/ -type TaobaoSimbaKeywordsRecommendGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaKeywordsRecommendGetResponse -} - -// 取得一个推广组的推荐关键词列表 成功返回结果 -type TaobaoSimbaKeywordsRecommendGetResponse struct { - XMLName xml.Name `xml:"simba_keywords_recommend_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推荐词分页对象,当输入的页码大于最大数值时,将返回最大的page_no值,并且结果中的数据列表为空值 - RecommendWords *RecommendWordPage `json:"recommend_words,omitempty" xml:"recommend_words,omitempty"` -} diff --git a/model/simba/TaobaoSimbaKeywordsbyadgroupidGetAPIRequest.go b/model/simba/TaobaoSimbaKeywordsbyadgroupidGetAPIRequest.go new file mode 100644 index 0000000000..0cff7604de --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsbyadgroupidGetAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一个推广组的所有关键词 API请求 +taobao.simba.keywordsbyadgroupid.get + +取得一个推广组的所有关键词 +*/ +type TaobaoSimbaKeywordsbyadgroupidGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广组Id + _adgroupId int64 +} + +// 初始化TaobaoSimbaKeywordsbyadgroupidGetAPIRequest对象 +func NewTaobaoSimbaKeywordsbyadgroupidGetRequest() *TaobaoSimbaKeywordsbyadgroupidGetAPIRequest{ + return &TaobaoSimbaKeywordsbyadgroupidGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaKeywordsbyadgroupidGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.keywordsbyadgroupid.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaKeywordsbyadgroupidGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaKeywordsbyadgroupidGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaKeywordsbyadgroupidGetAPIRequest) GetNick() string { + return r._nick +} +// AdgroupId Setter +// 推广组Id +func (r *TaobaoSimbaKeywordsbyadgroupidGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaKeywordsbyadgroupidGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/simba/TaobaoSimbaKeywordsbyadgroupidGetAPIResponse.go b/model/simba/TaobaoSimbaKeywordsbyadgroupidGetAPIResponse.go new file mode 100644 index 0000000000..d5dfc23733 --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsbyadgroupidGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一个推广组的所有关键词 API返回值 +taobao.simba.keywordsbyadgroupid.get + +取得一个推广组的所有关键词 +*/ +type TaobaoSimbaKeywordsbyadgroupidGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaKeywordsbyadgroupidGetAPIResponseModel +} + +// 取得一个推广组的所有关键词 成功返回结果 +type TaobaoSimbaKeywordsbyadgroupidGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_keywordsbyadgroupid_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 取得的关键词列表 + Keywords []Keyword `json:"keywords,omitempty" xml:"keywords>keyword,omitempty"` +} diff --git a/model/simba/TaobaoSimbaKeywordsbyadgroupidGetResponse.go b/model/simba/TaobaoSimbaKeywordsbyadgroupidGetResponse.go deleted file mode 100644 index 688839c096..0000000000 --- a/model/simba/TaobaoSimbaKeywordsbyadgroupidGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取得一个推广组的所有关键词 API返回值 -taobao.simba.keywordsbyadgroupid.get - -取得一个推广组的所有关键词 -*/ -type TaobaoSimbaKeywordsbyadgroupidGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaKeywordsbyadgroupidGetResponse -} - -// 取得一个推广组的所有关键词 成功返回结果 -type TaobaoSimbaKeywordsbyadgroupidGetResponse struct { - XMLName xml.Name `xml:"simba_keywordsbyadgroupid_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 取得的关键词列表 - Keywords []Keyword `json:"keywords,omitempty" xml:"keywords>keyword,omitempty"` -} diff --git a/model/simba/TaobaoSimbaKeywordsbykeywordidsGetAPIRequest.go b/model/simba/TaobaoSimbaKeywordsbykeywordidsGetAPIRequest.go new file mode 100644 index 0000000000..a297d12c0c --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsbykeywordidsGetAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据一个关键词Id列表取得一组关键词 API请求 +taobao.simba.keywordsbykeywordids.get + +根据一个关键词Id列表取得一组关键词 +*/ +type TaobaoSimbaKeywordsbykeywordidsGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 关键词Id数组,最多200个; + _keywordIds []int64 +} + +// 初始化TaobaoSimbaKeywordsbykeywordidsGetAPIRequest对象 +func NewTaobaoSimbaKeywordsbykeywordidsGetRequest() *TaobaoSimbaKeywordsbykeywordidsGetAPIRequest{ + return &TaobaoSimbaKeywordsbykeywordidsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaKeywordsbykeywordidsGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.keywordsbykeywordids.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaKeywordsbykeywordidsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaKeywordsbykeywordidsGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaKeywordsbykeywordidsGetAPIRequest) GetNick() string { + return r._nick +} +// KeywordIds Setter +// 关键词Id数组,最多200个; +func (r *TaobaoSimbaKeywordsbykeywordidsGetAPIRequest) SetKeywordIds(_keywordIds []int64) error { + r._keywordIds = _keywordIds + r.Set("keyword_ids", _keywordIds) + return nil +} + +// KeywordIds Getter +func (r TaobaoSimbaKeywordsbykeywordidsGetAPIRequest) GetKeywordIds() []int64 { + return r._keywordIds +} diff --git a/model/simba/TaobaoSimbaKeywordsbykeywordidsGetAPIResponse.go b/model/simba/TaobaoSimbaKeywordsbykeywordidsGetAPIResponse.go new file mode 100644 index 0000000000..cd642033be --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsbykeywordidsGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据一个关键词Id列表取得一组关键词 API返回值 +taobao.simba.keywordsbykeywordids.get + +根据一个关键词Id列表取得一组关键词 +*/ +type TaobaoSimbaKeywordsbykeywordidsGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaKeywordsbykeywordidsGetAPIResponseModel +} + +// 根据一个关键词Id列表取得一组关键词 成功返回结果 +type TaobaoSimbaKeywordsbykeywordidsGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_keywordsbykeywordids_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 取得的关键词列表 + Keywords []Keyword `json:"keywords,omitempty" xml:"keywords>keyword,omitempty"` +} diff --git a/model/simba/TaobaoSimbaKeywordsbykeywordidsGetResponse.go b/model/simba/TaobaoSimbaKeywordsbykeywordidsGetResponse.go deleted file mode 100644 index cb8d1c9559..0000000000 --- a/model/simba/TaobaoSimbaKeywordsbykeywordidsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据一个关键词Id列表取得一组关键词 API返回值 -taobao.simba.keywordsbykeywordids.get - -根据一个关键词Id列表取得一组关键词 -*/ -type TaobaoSimbaKeywordsbykeywordidsGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaKeywordsbykeywordidsGetResponse -} - -// 根据一个关键词Id列表取得一组关键词 成功返回结果 -type TaobaoSimbaKeywordsbykeywordidsGetResponse struct { - XMLName xml.Name `xml:"simba_keywordsbykeywordids_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 取得的关键词列表 - Keywords []Keyword `json:"keywords,omitempty" xml:"keywords>keyword,omitempty"` -} diff --git a/model/simba/TaobaoSimbaKeywordscatQscoreGetAPIRequest.go b/model/simba/TaobaoSimbaKeywordscatQscoreGetAPIRequest.go new file mode 100644 index 0000000000..ed52f4bfe5 --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordscatQscoreGetAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一个推广组的所有关键词和类目出价的质量得分 API请求 +taobao.simba.keywordscat.qscore.get + +取得一个推广组的所有关键词和类目出价的质量得分列表 +*/ +type TaobaoSimbaKeywordscatQscoreGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广组Id + _adgroupId int64 +} + +// 初始化TaobaoSimbaKeywordscatQscoreGetAPIRequest对象 +func NewTaobaoSimbaKeywordscatQscoreGetRequest() *TaobaoSimbaKeywordscatQscoreGetAPIRequest{ + return &TaobaoSimbaKeywordscatQscoreGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaKeywordscatQscoreGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.keywordscat.qscore.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaKeywordscatQscoreGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaKeywordscatQscoreGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaKeywordscatQscoreGetAPIRequest) GetNick() string { + return r._nick +} +// AdgroupId Setter +// 推广组Id +func (r *TaobaoSimbaKeywordscatQscoreGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaKeywordscatQscoreGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/simba/TaobaoSimbaKeywordscatQscoreGetAPIResponse.go b/model/simba/TaobaoSimbaKeywordscatQscoreGetAPIResponse.go new file mode 100644 index 0000000000..79331b5b69 --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordscatQscoreGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一个推广组的所有关键词和类目出价的质量得分 API返回值 +taobao.simba.keywordscat.qscore.get + +取得一个推广组的所有关键词和类目出价的质量得分列表 +*/ +type TaobaoSimbaKeywordscatQscoreGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaKeywordscatQscoreGetAPIResponseModel +} + +// 取得一个推广组的所有关键词和类目出价的质量得分 成功返回结果 +type TaobaoSimbaKeywordscatQscoreGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_keywordscat_qscore_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 类目出价和词的质量得分对象 + Qscore *Qscore `json:"qscore,omitempty" xml:"qscore,omitempty"` +} diff --git a/model/simba/TaobaoSimbaKeywordscatQscoreGetResponse.go b/model/simba/TaobaoSimbaKeywordscatQscoreGetResponse.go deleted file mode 100644 index 7afa41a1c0..0000000000 --- a/model/simba/TaobaoSimbaKeywordscatQscoreGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取得一个推广组的所有关键词和类目出价的质量得分 API返回值 -taobao.simba.keywordscat.qscore.get - -取得一个推广组的所有关键词和类目出价的质量得分列表 -*/ -type TaobaoSimbaKeywordscatQscoreGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaKeywordscatQscoreGetResponse -} - -// 取得一个推广组的所有关键词和类目出价的质量得分 成功返回结果 -type TaobaoSimbaKeywordscatQscoreGetResponse struct { - XMLName xml.Name `xml:"simba_keywordscat_qscore_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 类目出价和词的质量得分对象 - Qscore *Qscore `json:"qscore,omitempty" xml:"qscore,omitempty"` -} diff --git a/model/simba/TaobaoSimbaKeywordsvonAddAPIRequest.go b/model/simba/TaobaoSimbaKeywordsvonAddAPIRequest.go new file mode 100644 index 0000000000..c64d36f2c0 --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsvonAddAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建一批关键词 API请求 +taobao.simba.keywordsvon.add + +创建一批关键词 +*/ +type TaobaoSimbaKeywordsvonAddAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广组id + _adgroupId int64 + // 关键词、计算机出价、无线出价和匹配方式json字符串,word:词,不能有一些特殊字符。maxPrice:计算机出价,是整数,以“分”为单位,不能小于5,不能大于日限额, maxMobilePrice:代表无线出价,规则同maxPice 当matchscope只能是1,4(1代表精确匹配,4代表广泛匹配)。 + _keywordPrices string +} + +// 初始化TaobaoSimbaKeywordsvonAddAPIRequest对象 +func NewTaobaoSimbaKeywordsvonAddRequest() *TaobaoSimbaKeywordsvonAddAPIRequest{ + return &TaobaoSimbaKeywordsvonAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaKeywordsvonAddAPIRequest) GetApiMethodName() string { + return "taobao.simba.keywordsvon.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaKeywordsvonAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaKeywordsvonAddAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaKeywordsvonAddAPIRequest) GetNick() string { + return r._nick +} +// AdgroupId Setter +// 推广组id +func (r *TaobaoSimbaKeywordsvonAddAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaKeywordsvonAddAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// KeywordPrices Setter +// 关键词、计算机出价、无线出价和匹配方式json字符串,word:词,不能有一些特殊字符。maxPrice:计算机出价,是整数,以“分”为单位,不能小于5,不能大于日限额, maxMobilePrice:代表无线出价,规则同maxPice 当matchscope只能是1,4(1代表精确匹配,4代表广泛匹配)。 +func (r *TaobaoSimbaKeywordsvonAddAPIRequest) SetKeywordPrices(_keywordPrices string) error { + r._keywordPrices = _keywordPrices + r.Set("keyword_prices", _keywordPrices) + return nil +} + +// KeywordPrices Getter +func (r TaobaoSimbaKeywordsvonAddAPIRequest) GetKeywordPrices() string { + return r._keywordPrices +} diff --git a/model/simba/TaobaoSimbaKeywordsvonAddAPIResponse.go b/model/simba/TaobaoSimbaKeywordsvonAddAPIResponse.go new file mode 100644 index 0000000000..af0dc36b5c --- /dev/null +++ b/model/simba/TaobaoSimbaKeywordsvonAddAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建一批关键词 API返回值 +taobao.simba.keywordsvon.add + +创建一批关键词 +*/ +type TaobaoSimbaKeywordsvonAddAPIResponse struct { + model.CommonResponse + TaobaoSimbaKeywordsvonAddAPIResponseModel +} + +// 创建一批关键词 成功返回结果 +type TaobaoSimbaKeywordsvonAddAPIResponseModel struct { + XMLName xml.Name `xml:"simba_keywordsvon_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 关键词列表 + Keywords []Keyword `json:"keywords,omitempty" xml:"keywords>keyword,omitempty"` +} diff --git a/model/simba/TaobaoSimbaKeywordsvonAddResponse.go b/model/simba/TaobaoSimbaKeywordsvonAddResponse.go deleted file mode 100644 index ae93784e01..0000000000 --- a/model/simba/TaobaoSimbaKeywordsvonAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建一批关键词 API返回值 -taobao.simba.keywordsvon.add - -创建一批关键词 -*/ -type TaobaoSimbaKeywordsvonAddAPIResponse struct { - model.CommonResponse - TaobaoSimbaKeywordsvonAddResponse -} - -// 创建一批关键词 成功返回结果 -type TaobaoSimbaKeywordsvonAddResponse struct { - XMLName xml.Name `xml:"simba_keywordsvon_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 关键词列表 - Keywords []Keyword `json:"keywords,omitempty" xml:"keywords>keyword,omitempty"` -} diff --git a/model/simba/TaobaoSimbaLoginAuthsignGetAPIRequest.go b/model/simba/TaobaoSimbaLoginAuthsignGetAPIRequest.go new file mode 100644 index 0000000000..5703a3f417 --- /dev/null +++ b/model/simba/TaobaoSimbaLoginAuthsignGetAPIRequest.go @@ -0,0 +1,52 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取登陆权限签名 API请求 +taobao.simba.login.authsign.get + +获取登陆权限签名 +*/ +type TaobaoSimbaLoginAuthsignGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string +} + +// 初始化TaobaoSimbaLoginAuthsignGetAPIRequest对象 +func NewTaobaoSimbaLoginAuthsignGetRequest() *TaobaoSimbaLoginAuthsignGetAPIRequest{ + return &TaobaoSimbaLoginAuthsignGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaLoginAuthsignGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.login.authsign.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaLoginAuthsignGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaLoginAuthsignGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaLoginAuthsignGetAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/simba/TaobaoSimbaLoginAuthsignGetAPIResponse.go b/model/simba/TaobaoSimbaLoginAuthsignGetAPIResponse.go new file mode 100644 index 0000000000..39abe93efe --- /dev/null +++ b/model/simba/TaobaoSimbaLoginAuthsignGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取登陆权限签名 API返回值 +taobao.simba.login.authsign.get + +获取登陆权限签名 +*/ +type TaobaoSimbaLoginAuthsignGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaLoginAuthsignGetAPIResponseModel +} + +// 获取登陆权限签名 成功返回结果 +type TaobaoSimbaLoginAuthsignGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_login_authsign_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 登陆签名 + SubwayToken string `json:"subway_token,omitempty" xml:"subway_token,omitempty"` +} diff --git a/model/simba/TaobaoSimbaLoginAuthsignGetResponse.go b/model/simba/TaobaoSimbaLoginAuthsignGetResponse.go deleted file mode 100644 index a5ea375ec1..0000000000 --- a/model/simba/TaobaoSimbaLoginAuthsignGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取登陆权限签名 API返回值 -taobao.simba.login.authsign.get - -获取登陆权限签名 -*/ -type TaobaoSimbaLoginAuthsignGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaLoginAuthsignGetResponse -} - -// 获取登陆权限签名 成功返回结果 -type TaobaoSimbaLoginAuthsignGetResponse struct { - XMLName xml.Name `xml:"simba_login_authsign_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 登陆签名 - SubwayToken string `json:"subway_token,omitempty" xml:"subway_token,omitempty"` -} diff --git a/model/simba/TaobaoSimbaReportCityGetAPIRequest.go b/model/simba/TaobaoSimbaReportCityGetAPIRequest.go new file mode 100644 index 0000000000..bacaddc3f2 --- /dev/null +++ b/model/simba/TaobaoSimbaReportCityGetAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取城市维度报表 API请求 +taobao.simba.report.city.get + +获取城市维度报表 +*/ +type TaobaoSimbaReportCityGetAPIRequest struct { + model.Params + // 昵称 + _nick string + // 时间 + _theDate string + // 当前小时 + _hour string + // 计划id + _campaignId string +} + +// 初始化TaobaoSimbaReportCityGetAPIRequest对象 +func NewTaobaoSimbaReportCityGetRequest() *TaobaoSimbaReportCityGetAPIRequest{ + return &TaobaoSimbaReportCityGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaReportCityGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.report.city.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaReportCityGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 昵称 +func (r *TaobaoSimbaReportCityGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaReportCityGetAPIRequest) GetNick() string { + return r._nick +} +// TheDate Setter +// 时间 +func (r *TaobaoSimbaReportCityGetAPIRequest) SetTheDate(_theDate string) error { + r._theDate = _theDate + r.Set("the_date", _theDate) + return nil +} + +// TheDate Getter +func (r TaobaoSimbaReportCityGetAPIRequest) GetTheDate() string { + return r._theDate +} +// Hour Setter +// 当前小时 +func (r *TaobaoSimbaReportCityGetAPIRequest) SetHour(_hour string) error { + r._hour = _hour + r.Set("hour", _hour) + return nil +} + +// Hour Getter +func (r TaobaoSimbaReportCityGetAPIRequest) GetHour() string { + return r._hour +} +// CampaignId Setter +// 计划id +func (r *TaobaoSimbaReportCityGetAPIRequest) SetCampaignId(_campaignId string) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaReportCityGetAPIRequest) GetCampaignId() string { + return r._campaignId +} diff --git a/model/simba/TaobaoSimbaReportCityGetAPIResponse.go b/model/simba/TaobaoSimbaReportCityGetAPIResponse.go new file mode 100644 index 0000000000..14503ed113 --- /dev/null +++ b/model/simba/TaobaoSimbaReportCityGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取城市维度报表 API返回值 +taobao.simba.report.city.get + +获取城市维度报表 +*/ +type TaobaoSimbaReportCityGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaReportCityGetAPIResponseModel +} + +// 获取城市维度报表 成功返回结果 +type TaobaoSimbaReportCityGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_report_city_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 11 + Results *RtRptResultEntityDto `json:"results,omitempty" xml:"results,omitempty"` +} diff --git a/model/simba/TaobaoSimbaReportCityGetResponse.go b/model/simba/TaobaoSimbaReportCityGetResponse.go deleted file mode 100644 index 853e54a09f..0000000000 --- a/model/simba/TaobaoSimbaReportCityGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取城市维度报表 API返回值 -taobao.simba.report.city.get - -获取城市维度报表 -*/ -type TaobaoSimbaReportCityGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaReportCityGetResponse -} - -// 获取城市维度报表 成功返回结果 -type TaobaoSimbaReportCityGetResponse struct { - XMLName xml.Name `xml:"simba_report_city_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 11 - Results *RtRptResultEntityDto `json:"results,omitempty" xml:"results,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRptAdgroupbaseGetAPIRequest.go b/model/simba/TaobaoSimbaRptAdgroupbaseGetAPIRequest.go new file mode 100644 index 0000000000..b906f220e6 --- /dev/null +++ b/model/simba/TaobaoSimbaRptAdgroupbaseGetAPIRequest.go @@ -0,0 +1,178 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推广组基础报表数据对象 API请求 +taobao.simba.rpt.adgroupbase.get + +推广组基础报表数据对象 +*/ +type TaobaoSimbaRptAdgroupbaseGetAPIRequest struct { + model.Params + // 权限校验参数 + _subwayToken string + // 昵称 + _nick string + // 推广计划id + _campaignId int64 + // 推广组id + _adgroupId int64 + // 开始时间,格式yyyy-mm-dd + _startTime string + // 结束时间,格式yyyy-mm-dd + _endTime string + // 报表类型(搜索:SEARCH,类目出价:CAT,
定向投放:NOSEARCH)可以一次取多个例如:SEARCH,CAT + _searchType string + // 页码 + _pageNo int64 + // 每页大小 + _pageSize int64 + // 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5)可多选,以逗号分隔 + _source string +} + +// 初始化TaobaoSimbaRptAdgroupbaseGetAPIRequest对象 +func NewTaobaoSimbaRptAdgroupbaseGetRequest() *TaobaoSimbaRptAdgroupbaseGetAPIRequest{ + return &TaobaoSimbaRptAdgroupbaseGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRptAdgroupbaseGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rpt.adgroupbase.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRptAdgroupbaseGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubwayToken Setter +// 权限校验参数 +func (r *TaobaoSimbaRptAdgroupbaseGetAPIRequest) SetSubwayToken(_subwayToken string) error { + r._subwayToken = _subwayToken + r.Set("subway_token", _subwayToken) + return nil +} + +// SubwayToken Getter +func (r TaobaoSimbaRptAdgroupbaseGetAPIRequest) GetSubwayToken() string { + return r._subwayToken +} +// Nick Setter +// 昵称 +func (r *TaobaoSimbaRptAdgroupbaseGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRptAdgroupbaseGetAPIRequest) GetNick() string { + return r._nick +} +// CampaignId Setter +// 推广计划id +func (r *TaobaoSimbaRptAdgroupbaseGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaRptAdgroupbaseGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// AdgroupId Setter +// 推广组id +func (r *TaobaoSimbaRptAdgroupbaseGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaRptAdgroupbaseGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// StartTime Setter +// 开始时间,格式yyyy-mm-dd +func (r *TaobaoSimbaRptAdgroupbaseGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaRptAdgroupbaseGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束时间,格式yyyy-mm-dd +func (r *TaobaoSimbaRptAdgroupbaseGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSimbaRptAdgroupbaseGetAPIRequest) GetEndTime() string { + return r._endTime +} +// SearchType Setter +// 报表类型(搜索:SEARCH,类目出价:CAT,
定向投放:NOSEARCH)可以一次取多个例如:SEARCH,CAT +func (r *TaobaoSimbaRptAdgroupbaseGetAPIRequest) SetSearchType(_searchType string) error { + r._searchType = _searchType + r.Set("search_type", _searchType) + return nil +} + +// SearchType Getter +func (r TaobaoSimbaRptAdgroupbaseGetAPIRequest) GetSearchType() string { + return r._searchType +} +// PageNo Setter +// 页码 +func (r *TaobaoSimbaRptAdgroupbaseGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaRptAdgroupbaseGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页大小 +func (r *TaobaoSimbaRptAdgroupbaseGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaRptAdgroupbaseGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Source Setter +// 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5)可多选,以逗号分隔 +func (r *TaobaoSimbaRptAdgroupbaseGetAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoSimbaRptAdgroupbaseGetAPIRequest) GetSource() string { + return r._source +} diff --git a/model/simba/TaobaoSimbaRptAdgroupbaseGetAPIResponse.go b/model/simba/TaobaoSimbaRptAdgroupbaseGetAPIResponse.go new file mode 100644 index 0000000000..17bc6c704a --- /dev/null +++ b/model/simba/TaobaoSimbaRptAdgroupbaseGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推广组基础报表数据对象 API返回值 +taobao.simba.rpt.adgroupbase.get + +推广组基础报表数据对象 +*/ +type TaobaoSimbaRptAdgroupbaseGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRptAdgroupbaseGetAPIResponseModel +} + +// 推广组基础报表数据对象 成功返回结果 +type TaobaoSimbaRptAdgroupbaseGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rpt_adgroupbase_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 广告组基础数据对象 + RptAdgroupBaseList string `json:"rpt_adgroup_base_list,omitempty" xml:"rpt_adgroup_base_list,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRptAdgroupbaseGetResponse.go b/model/simba/TaobaoSimbaRptAdgroupbaseGetResponse.go deleted file mode 100644 index a97d7cf376..0000000000 --- a/model/simba/TaobaoSimbaRptAdgroupbaseGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推广组基础报表数据对象 API返回值 -taobao.simba.rpt.adgroupbase.get - -推广组基础报表数据对象 -*/ -type TaobaoSimbaRptAdgroupbaseGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRptAdgroupbaseGetResponse -} - -// 推广组基础报表数据对象 成功返回结果 -type TaobaoSimbaRptAdgroupbaseGetResponse struct { - XMLName xml.Name `xml:"simba_rpt_adgroupbase_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 广告组基础数据对象 - RptAdgroupBaseList string `json:"rpt_adgroup_base_list,omitempty" xml:"rpt_adgroup_base_list,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest.go b/model/simba/TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest.go new file mode 100644 index 0000000000..bde9c7edc1 --- /dev/null +++ b/model/simba/TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest.go @@ -0,0 +1,178 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推广组下创意报表基础数据查询(汇总数据,不分类型) API请求 +taobao.simba.rpt.adgroupcreativebase.get + +推广组下创意报表基础数据查询(汇总数据,不分类型) +*/ +type TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest struct { + model.Params + // 权限验证信息 + _subwayToken string + // 昵称 + _nick string + // 开始日期,格式yyyy-mm-dd + _startTime string + // 结束日期,格式yyyy-mm-dd + _endTime string + // 查询推广计划id + _campaignId int64 + // 推广组id + _adgroupId int64 + // 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5,汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2 + _source string + // 页码 + _pageNo int64 + // 每页大小 + _pageSize int64 + // 报表类型(搜索:SEARCH,类目出价:CAT, 定向投放:NOSEARCH汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如:SEARCH,CAT + _searchType string +} + +// 初始化TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest对象 +func NewTaobaoSimbaRptAdgroupcreativebaseGetRequest() *TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest{ + return &TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rpt.adgroupcreativebase.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubwayToken Setter +// 权限验证信息 +func (r *TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) SetSubwayToken(_subwayToken string) error { + r._subwayToken = _subwayToken + r.Set("subway_token", _subwayToken) + return nil +} + +// SubwayToken Getter +func (r TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) GetSubwayToken() string { + return r._subwayToken +} +// Nick Setter +// 昵称 +func (r *TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) GetNick() string { + return r._nick +} +// StartTime Setter +// 开始日期,格式yyyy-mm-dd +func (r *TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束日期,格式yyyy-mm-dd +func (r *TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) GetEndTime() string { + return r._endTime +} +// CampaignId Setter +// 查询推广计划id +func (r *TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// AdgroupId Setter +// 推广组id +func (r *TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// Source Setter +// 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5,汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2 +func (r *TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) GetSource() string { + return r._source +} +// PageNo Setter +// 页码 +func (r *TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页大小 +func (r *TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// SearchType Setter +// 报表类型(搜索:SEARCH,类目出价:CAT, 定向投放:NOSEARCH汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如:SEARCH,CAT +func (r *TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) SetSearchType(_searchType string) error { + r._searchType = _searchType + r.Set("search_type", _searchType) + return nil +} + +// SearchType Getter +func (r TaobaoSimbaRptAdgroupcreativebaseGetAPIRequest) GetSearchType() string { + return r._searchType +} diff --git a/model/simba/TaobaoSimbaRptAdgroupcreativebaseGetAPIResponse.go b/model/simba/TaobaoSimbaRptAdgroupcreativebaseGetAPIResponse.go new file mode 100644 index 0000000000..d9d1e8414c --- /dev/null +++ b/model/simba/TaobaoSimbaRptAdgroupcreativebaseGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推广组下创意报表基础数据查询(汇总数据,不分类型) API返回值 +taobao.simba.rpt.adgroupcreativebase.get + +推广组下创意报表基础数据查询(汇总数据,不分类型) +*/ +type TaobaoSimbaRptAdgroupcreativebaseGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRptAdgroupcreativebaseGetAPIResponseModel +} + +// 推广组下创意报表基础数据查询(汇总数据,不分类型) 成功返回结果 +type TaobaoSimbaRptAdgroupcreativebaseGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rpt_adgroupcreativebase_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推广组下的创意基础数据列表 + RptAdgroupcreativeBaseList string `json:"rpt_adgroupcreative_base_list,omitempty" xml:"rpt_adgroupcreative_base_list,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRptAdgroupcreativebaseGetResponse.go b/model/simba/TaobaoSimbaRptAdgroupcreativebaseGetResponse.go deleted file mode 100644 index 8b3085e94b..0000000000 --- a/model/simba/TaobaoSimbaRptAdgroupcreativebaseGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推广组下创意报表基础数据查询(汇总数据,不分类型) API返回值 -taobao.simba.rpt.adgroupcreativebase.get - -推广组下创意报表基础数据查询(汇总数据,不分类型) -*/ -type TaobaoSimbaRptAdgroupcreativebaseGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRptAdgroupcreativebaseGetResponse -} - -// 推广组下创意报表基础数据查询(汇总数据,不分类型) 成功返回结果 -type TaobaoSimbaRptAdgroupcreativebaseGetResponse struct { - XMLName xml.Name `xml:"simba_rpt_adgroupcreativebase_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推广组下的创意基础数据列表 - RptAdgroupcreativeBaseList string `json:"rpt_adgroupcreative_base_list,omitempty" xml:"rpt_adgroupcreative_base_list,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest.go b/model/simba/TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest.go new file mode 100644 index 0000000000..ab5647387d --- /dev/null +++ b/model/simba/TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest.go @@ -0,0 +1,178 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推广组下的创意报表效果数据查询(汇总数据,不分类型) API请求 +taobao.simba.rpt.adgroupcreativeeffect.get + +推广组下的创意报表效果数据查询(汇总数据,不分类型) +*/ +type TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest struct { + model.Params + // 权限验证信息 + _subwayToken string + // 昵称 + _nick string + // 开始日期,格式yyyy-mm-dd + _startTime string + // 结束日期,格式yyyy-mm-dd + _endTime string + // 查询推广计划id + _campaignId int64 + // 推广组id + _adgroupId int64 + // 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5,汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2 + _source string + // 页码 + _pageNo int64 + // 每页大小 + _pageSize int64 + // 报表类型(搜索:SEARCH,类目出价:CAT, 定向投放:NOSEARCH汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如:SEARCH,CAT + _searchType string +} + +// 初始化TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest对象 +func NewTaobaoSimbaRptAdgroupcreativeeffectGetRequest() *TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest{ + return &TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rpt.adgroupcreativeeffect.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubwayToken Setter +// 权限验证信息 +func (r *TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) SetSubwayToken(_subwayToken string) error { + r._subwayToken = _subwayToken + r.Set("subway_token", _subwayToken) + return nil +} + +// SubwayToken Getter +func (r TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) GetSubwayToken() string { + return r._subwayToken +} +// Nick Setter +// 昵称 +func (r *TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) GetNick() string { + return r._nick +} +// StartTime Setter +// 开始日期,格式yyyy-mm-dd +func (r *TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束日期,格式yyyy-mm-dd +func (r *TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) GetEndTime() string { + return r._endTime +} +// CampaignId Setter +// 查询推广计划id +func (r *TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// AdgroupId Setter +// 推广组id +func (r *TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// Source Setter +// 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5,汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2 +func (r *TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) GetSource() string { + return r._source +} +// PageNo Setter +// 页码 +func (r *TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页大小 +func (r *TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// SearchType Setter +// 报表类型(搜索:SEARCH,类目出价:CAT, 定向投放:NOSEARCH汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如:SEARCH,CAT +func (r *TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) SetSearchType(_searchType string) error { + r._searchType = _searchType + r.Set("search_type", _searchType) + return nil +} + +// SearchType Getter +func (r TaobaoSimbaRptAdgroupcreativeeffectGetAPIRequest) GetSearchType() string { + return r._searchType +} diff --git a/model/simba/TaobaoSimbaRptAdgroupcreativeeffectGetAPIResponse.go b/model/simba/TaobaoSimbaRptAdgroupcreativeeffectGetAPIResponse.go new file mode 100644 index 0000000000..fa1b0f4b50 --- /dev/null +++ b/model/simba/TaobaoSimbaRptAdgroupcreativeeffectGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推广组下的创意报表效果数据查询(汇总数据,不分类型) API返回值 +taobao.simba.rpt.adgroupcreativeeffect.get + +推广组下的创意报表效果数据查询(汇总数据,不分类型) +*/ +type TaobaoSimbaRptAdgroupcreativeeffectGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRptAdgroupcreativeeffectGetAPIResponseModel +} + +// 推广组下的创意报表效果数据查询(汇总数据,不分类型) 成功返回结果 +type TaobaoSimbaRptAdgroupcreativeeffectGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rpt_adgroupcreativeeffect_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推广组下的创意效果数据列表 + RptAdgroupcreativeEffectList string `json:"rpt_adgroupcreative_effect_list,omitempty" xml:"rpt_adgroupcreative_effect_list,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRptAdgroupcreativeeffectGetResponse.go b/model/simba/TaobaoSimbaRptAdgroupcreativeeffectGetResponse.go deleted file mode 100644 index 3a1e585e1a..0000000000 --- a/model/simba/TaobaoSimbaRptAdgroupcreativeeffectGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推广组下的创意报表效果数据查询(汇总数据,不分类型) API返回值 -taobao.simba.rpt.adgroupcreativeeffect.get - -推广组下的创意报表效果数据查询(汇总数据,不分类型) -*/ -type TaobaoSimbaRptAdgroupcreativeeffectGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRptAdgroupcreativeeffectGetResponse -} - -// 推广组下的创意报表效果数据查询(汇总数据,不分类型) 成功返回结果 -type TaobaoSimbaRptAdgroupcreativeeffectGetResponse struct { - XMLName xml.Name `xml:"simba_rpt_adgroupcreativeeffect_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推广组下的创意效果数据列表 - RptAdgroupcreativeEffectList string `json:"rpt_adgroupcreative_effect_list,omitempty" xml:"rpt_adgroupcreative_effect_list,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRptAdgroupeffectGetAPIRequest.go b/model/simba/TaobaoSimbaRptAdgroupeffectGetAPIRequest.go new file mode 100644 index 0000000000..a7d88ba648 --- /dev/null +++ b/model/simba/TaobaoSimbaRptAdgroupeffectGetAPIRequest.go @@ -0,0 +1,178 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推广组效果报表数据对象 API请求 +taobao.simba.rpt.adgroupeffect.get + +推广组效果报表数据对象 +*/ +type TaobaoSimbaRptAdgroupeffectGetAPIRequest struct { + model.Params + // 权限校验参数 + _subwayToken string + // 昵称 + _nick string + // 推广计划id + _campaignId int64 + // 推广组id + _adgroupId int64 + // 开始时间,格式yyyy-mm-dd + _startTime string + // 结束时间,格式yyyy-mm-dd + _endTime string + // 报表类型(搜索:SEARCH,类目出价:CAT,
定向投放:NOSEARCH )可以一次取多个例如:SEARCH,CAT + _searchType string + // 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5)可多选,以逗号分隔 + _source string + // 页码 + _pageNo int64 + // 每页大小 + _pageSize int64 +} + +// 初始化TaobaoSimbaRptAdgroupeffectGetAPIRequest对象 +func NewTaobaoSimbaRptAdgroupeffectGetRequest() *TaobaoSimbaRptAdgroupeffectGetAPIRequest{ + return &TaobaoSimbaRptAdgroupeffectGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRptAdgroupeffectGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rpt.adgroupeffect.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRptAdgroupeffectGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubwayToken Setter +// 权限校验参数 +func (r *TaobaoSimbaRptAdgroupeffectGetAPIRequest) SetSubwayToken(_subwayToken string) error { + r._subwayToken = _subwayToken + r.Set("subway_token", _subwayToken) + return nil +} + +// SubwayToken Getter +func (r TaobaoSimbaRptAdgroupeffectGetAPIRequest) GetSubwayToken() string { + return r._subwayToken +} +// Nick Setter +// 昵称 +func (r *TaobaoSimbaRptAdgroupeffectGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRptAdgroupeffectGetAPIRequest) GetNick() string { + return r._nick +} +// CampaignId Setter +// 推广计划id +func (r *TaobaoSimbaRptAdgroupeffectGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaRptAdgroupeffectGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// AdgroupId Setter +// 推广组id +func (r *TaobaoSimbaRptAdgroupeffectGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaRptAdgroupeffectGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// StartTime Setter +// 开始时间,格式yyyy-mm-dd +func (r *TaobaoSimbaRptAdgroupeffectGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaRptAdgroupeffectGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束时间,格式yyyy-mm-dd +func (r *TaobaoSimbaRptAdgroupeffectGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSimbaRptAdgroupeffectGetAPIRequest) GetEndTime() string { + return r._endTime +} +// SearchType Setter +// 报表类型(搜索:SEARCH,类目出价:CAT,
定向投放:NOSEARCH )可以一次取多个例如:SEARCH,CAT +func (r *TaobaoSimbaRptAdgroupeffectGetAPIRequest) SetSearchType(_searchType string) error { + r._searchType = _searchType + r.Set("search_type", _searchType) + return nil +} + +// SearchType Getter +func (r TaobaoSimbaRptAdgroupeffectGetAPIRequest) GetSearchType() string { + return r._searchType +} +// Source Setter +// 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5)可多选,以逗号分隔 +func (r *TaobaoSimbaRptAdgroupeffectGetAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoSimbaRptAdgroupeffectGetAPIRequest) GetSource() string { + return r._source +} +// PageNo Setter +// 页码 +func (r *TaobaoSimbaRptAdgroupeffectGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaRptAdgroupeffectGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页大小 +func (r *TaobaoSimbaRptAdgroupeffectGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaRptAdgroupeffectGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/simba/TaobaoSimbaRptAdgroupeffectGetAPIResponse.go b/model/simba/TaobaoSimbaRptAdgroupeffectGetAPIResponse.go new file mode 100644 index 0000000000..bb31c4fef7 --- /dev/null +++ b/model/simba/TaobaoSimbaRptAdgroupeffectGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推广组效果报表数据对象 API返回值 +taobao.simba.rpt.adgroupeffect.get + +推广组效果报表数据对象 +*/ +type TaobaoSimbaRptAdgroupeffectGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRptAdgroupeffectGetAPIResponseModel +} + +// 推广组效果报表数据对象 成功返回结果 +type TaobaoSimbaRptAdgroupeffectGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rpt_adgroupeffect_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推广组效果报表数据对象 + RptAdgroupEffectList string `json:"rpt_adgroup_effect_list,omitempty" xml:"rpt_adgroup_effect_list,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRptAdgroupeffectGetResponse.go b/model/simba/TaobaoSimbaRptAdgroupeffectGetResponse.go deleted file mode 100644 index 3b131f9806..0000000000 --- a/model/simba/TaobaoSimbaRptAdgroupeffectGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推广组效果报表数据对象 API返回值 -taobao.simba.rpt.adgroupeffect.get - -推广组效果报表数据对象 -*/ -type TaobaoSimbaRptAdgroupeffectGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRptAdgroupeffectGetResponse -} - -// 推广组效果报表数据对象 成功返回结果 -type TaobaoSimbaRptAdgroupeffectGetResponse struct { - XMLName xml.Name `xml:"simba_rpt_adgroupeffect_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推广组效果报表数据对象 - RptAdgroupEffectList string `json:"rpt_adgroup_effect_list,omitempty" xml:"rpt_adgroup_effect_list,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest.go b/model/simba/TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest.go new file mode 100644 index 0000000000..cfa9b41d43 --- /dev/null +++ b/model/simba/TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest.go @@ -0,0 +1,178 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推广组下的词基础报表数据查询(明细数据不分类型查询) API请求 +taobao.simba.rpt.adgroupkeywordbase.get + +推广组下的词基础报表数据查询(明细数据不分类型查询) +*/ +type TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广计划ID + _campaignId int64 + // 推广组ID + _adgroupId int64 + // 开始时间,格式yyyy-mm-dd + _startTime string + // 结束时间,格式yyyy-mm-dd + _endTime string + // 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5,汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2 + _source string + // 权限校验参数 + _subwayToken string + // 页码 + _pageNo int64 + // 每页大小 + _pageSize int64 + // 报表类型(搜索:SEARCH,类目出价:CAT, 定向投放:NOSEARCH)可多选例如:SEARCH,CAT + _searchType string +} + +// 初始化TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest对象 +func NewTaobaoSimbaRptAdgroupkeywordbaseGetRequest() *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest{ + return &TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rpt.adgroupkeywordbase.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetNick() string { + return r._nick +} +// CampaignId Setter +// 推广计划ID +func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// AdgroupId Setter +// 推广组ID +func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// StartTime Setter +// 开始时间,格式yyyy-mm-dd +func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束时间,格式yyyy-mm-dd +func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetEndTime() string { + return r._endTime +} +// Source Setter +// 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5,汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2 +func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetSource() string { + return r._source +} +// SubwayToken Setter +// 权限校验参数 +func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetSubwayToken(_subwayToken string) error { + r._subwayToken = _subwayToken + r.Set("subway_token", _subwayToken) + return nil +} + +// SubwayToken Getter +func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetSubwayToken() string { + return r._subwayToken +} +// PageNo Setter +// 页码 +func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页大小 +func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// SearchType Setter +// 报表类型(搜索:SEARCH,类目出价:CAT, 定向投放:NOSEARCH)可多选例如:SEARCH,CAT +func (r *TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) SetSearchType(_searchType string) error { + r._searchType = _searchType + r.Set("search_type", _searchType) + return nil +} + +// SearchType Getter +func (r TaobaoSimbaRptAdgroupkeywordbaseGetAPIRequest) GetSearchType() string { + return r._searchType +} diff --git a/model/simba/TaobaoSimbaRptAdgroupkeywordbaseGetAPIResponse.go b/model/simba/TaobaoSimbaRptAdgroupkeywordbaseGetAPIResponse.go new file mode 100644 index 0000000000..892024735b --- /dev/null +++ b/model/simba/TaobaoSimbaRptAdgroupkeywordbaseGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推广组下的词基础报表数据查询(明细数据不分类型查询) API返回值 +taobao.simba.rpt.adgroupkeywordbase.get + +推广组下的词基础报表数据查询(明细数据不分类型查询) +*/ +type TaobaoSimbaRptAdgroupkeywordbaseGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRptAdgroupkeywordbaseGetAPIResponseModel +} + +// 推广组下的词基础报表数据查询(明细数据不分类型查询) 成功返回结果 +type TaobaoSimbaRptAdgroupkeywordbaseGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rpt_adgroupkeywordbase_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 词基础数据返回结果 + RptAdgroupkeywordBaseList string `json:"rpt_adgroupkeyword_base_list,omitempty" xml:"rpt_adgroupkeyword_base_list,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRptAdgroupkeywordbaseGetResponse.go b/model/simba/TaobaoSimbaRptAdgroupkeywordbaseGetResponse.go deleted file mode 100644 index 39e799fe19..0000000000 --- a/model/simba/TaobaoSimbaRptAdgroupkeywordbaseGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推广组下的词基础报表数据查询(明细数据不分类型查询) API返回值 -taobao.simba.rpt.adgroupkeywordbase.get - -推广组下的词基础报表数据查询(明细数据不分类型查询) -*/ -type TaobaoSimbaRptAdgroupkeywordbaseGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRptAdgroupkeywordbaseGetResponse -} - -// 推广组下的词基础报表数据查询(明细数据不分类型查询) 成功返回结果 -type TaobaoSimbaRptAdgroupkeywordbaseGetResponse struct { - XMLName xml.Name `xml:"simba_rpt_adgroupkeywordbase_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 词基础数据返回结果 - RptAdgroupkeywordBaseList string `json:"rpt_adgroupkeyword_base_list,omitempty" xml:"rpt_adgroupkeyword_base_list,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest.go b/model/simba/TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest.go new file mode 100644 index 0000000000..52206cf6bd --- /dev/null +++ b/model/simba/TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest.go @@ -0,0 +1,178 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推广组下的词效果报表数据查询(明细数据不分类型查询) API请求 +taobao.simba.rpt.adgroupkeywordeffect.get + +推广组下的词效果报表数据查询(明细数据不分类型查询) +*/ +type TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广计划ID + _campaignId int64 + // 推广组ID + _adgroupId int64 + // 开始时间,格式yyyy-mm-dd + _startTime string + // 结束时间,格式yyyy-mm-dd + _endTime string + // 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5,汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2 + _source string + // 权限校验参数 + _subwayToken string + // 页码 + _pageNo int64 + // 每页大小 + _pageSize int64 + // 报表类型(搜索:SEARCH,类目出价:CAT, 定向投放:NOSEARCH)可多选例如:SEARCH,CAT + _searchType string +} + +// 初始化TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest对象 +func NewTaobaoSimbaRptAdgroupkeywordeffectGetRequest() *TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest{ + return &TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rpt.adgroupkeywordeffect.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) GetNick() string { + return r._nick +} +// CampaignId Setter +// 推广计划ID +func (r *TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// AdgroupId Setter +// 推广组ID +func (r *TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// StartTime Setter +// 开始时间,格式yyyy-mm-dd +func (r *TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束时间,格式yyyy-mm-dd +func (r *TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) GetEndTime() string { + return r._endTime +} +// Source Setter +// 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5,汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2 +func (r *TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) GetSource() string { + return r._source +} +// SubwayToken Setter +// 权限校验参数 +func (r *TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) SetSubwayToken(_subwayToken string) error { + r._subwayToken = _subwayToken + r.Set("subway_token", _subwayToken) + return nil +} + +// SubwayToken Getter +func (r TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) GetSubwayToken() string { + return r._subwayToken +} +// PageNo Setter +// 页码 +func (r *TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页大小 +func (r *TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// SearchType Setter +// 报表类型(搜索:SEARCH,类目出价:CAT, 定向投放:NOSEARCH)可多选例如:SEARCH,CAT +func (r *TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) SetSearchType(_searchType string) error { + r._searchType = _searchType + r.Set("search_type", _searchType) + return nil +} + +// SearchType Getter +func (r TaobaoSimbaRptAdgroupkeywordeffectGetAPIRequest) GetSearchType() string { + return r._searchType +} diff --git a/model/simba/TaobaoSimbaRptAdgroupkeywordeffectGetAPIResponse.go b/model/simba/TaobaoSimbaRptAdgroupkeywordeffectGetAPIResponse.go new file mode 100644 index 0000000000..970987940a --- /dev/null +++ b/model/simba/TaobaoSimbaRptAdgroupkeywordeffectGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推广组下的词效果报表数据查询(明细数据不分类型查询) API返回值 +taobao.simba.rpt.adgroupkeywordeffect.get + +推广组下的词效果报表数据查询(明细数据不分类型查询) +*/ +type TaobaoSimbaRptAdgroupkeywordeffectGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRptAdgroupkeywordeffectGetAPIResponseModel +} + +// 推广组下的词效果报表数据查询(明细数据不分类型查询) 成功返回结果 +type TaobaoSimbaRptAdgroupkeywordeffectGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rpt_adgroupkeywordeffect_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 词效果数据返回结果 + RptAdgroupkeywordEffectList string `json:"rpt_adgroupkeyword_effect_list,omitempty" xml:"rpt_adgroupkeyword_effect_list,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRptAdgroupkeywordeffectGetResponse.go b/model/simba/TaobaoSimbaRptAdgroupkeywordeffectGetResponse.go deleted file mode 100644 index 0da5410f4e..0000000000 --- a/model/simba/TaobaoSimbaRptAdgroupkeywordeffectGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推广组下的词效果报表数据查询(明细数据不分类型查询) API返回值 -taobao.simba.rpt.adgroupkeywordeffect.get - -推广组下的词效果报表数据查询(明细数据不分类型查询) -*/ -type TaobaoSimbaRptAdgroupkeywordeffectGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRptAdgroupkeywordeffectGetResponse -} - -// 推广组下的词效果报表数据查询(明细数据不分类型查询) 成功返回结果 -type TaobaoSimbaRptAdgroupkeywordeffectGetResponse struct { - XMLName xml.Name `xml:"simba_rpt_adgroupkeywordeffect_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 词效果数据返回结果 - RptAdgroupkeywordEffectList string `json:"rpt_adgroupkeyword_effect_list,omitempty" xml:"rpt_adgroupkeyword_effect_list,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRptCampadgroupbaseGetAPIRequest.go b/model/simba/TaobaoSimbaRptCampadgroupbaseGetAPIRequest.go new file mode 100644 index 0000000000..90ca9902ff --- /dev/null +++ b/model/simba/TaobaoSimbaRptCampadgroupbaseGetAPIRequest.go @@ -0,0 +1,164 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推广计划下的推广组报表基础数据查询(只有汇总数据,无分类类型) API请求 +taobao.simba.rpt.campadgroupbase.get + +推广计划下的推广组报表基础数据查询(只有汇总数据,无分类类型) +*/ +type TaobaoSimbaRptCampadgroupbaseGetAPIRequest struct { + model.Params + // 权限验证信息 + _subwayToken string + // 昵称 + _nick string + // 开始日期,格式yyyy-mm-dd + _startTime string + // 结束日期,格式yyyy-mm-dd + _endTime string + // 查询推广计划id + _campaignId int64 + // 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5, 汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2 + _source string + // 页码 + _pageNo int64 + // 每页大小 + _pageSize int64 + // 报表类型(搜索:SEARCH,类目出价:CAT, 定向投放:NOSEARCH汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如:SEARCH,CAT + _searchType string +} + +// 初始化TaobaoSimbaRptCampadgroupbaseGetAPIRequest对象 +func NewTaobaoSimbaRptCampadgroupbaseGetRequest() *TaobaoSimbaRptCampadgroupbaseGetAPIRequest{ + return &TaobaoSimbaRptCampadgroupbaseGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rpt.campadgroupbase.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubwayToken Setter +// 权限验证信息 +func (r *TaobaoSimbaRptCampadgroupbaseGetAPIRequest) SetSubwayToken(_subwayToken string) error { + r._subwayToken = _subwayToken + r.Set("subway_token", _subwayToken) + return nil +} + +// SubwayToken Getter +func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetSubwayToken() string { + return r._subwayToken +} +// Nick Setter +// 昵称 +func (r *TaobaoSimbaRptCampadgroupbaseGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetNick() string { + return r._nick +} +// StartTime Setter +// 开始日期,格式yyyy-mm-dd +func (r *TaobaoSimbaRptCampadgroupbaseGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束日期,格式yyyy-mm-dd +func (r *TaobaoSimbaRptCampadgroupbaseGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetEndTime() string { + return r._endTime +} +// CampaignId Setter +// 查询推广计划id +func (r *TaobaoSimbaRptCampadgroupbaseGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// Source Setter +// 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5, 汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2 +func (r *TaobaoSimbaRptCampadgroupbaseGetAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetSource() string { + return r._source +} +// PageNo Setter +// 页码 +func (r *TaobaoSimbaRptCampadgroupbaseGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页大小 +func (r *TaobaoSimbaRptCampadgroupbaseGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// SearchType Setter +// 报表类型(搜索:SEARCH,类目出价:CAT, 定向投放:NOSEARCH汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如:SEARCH,CAT +func (r *TaobaoSimbaRptCampadgroupbaseGetAPIRequest) SetSearchType(_searchType string) error { + r._searchType = _searchType + r.Set("search_type", _searchType) + return nil +} + +// SearchType Getter +func (r TaobaoSimbaRptCampadgroupbaseGetAPIRequest) GetSearchType() string { + return r._searchType +} diff --git a/model/simba/TaobaoSimbaRptCampadgroupbaseGetAPIResponse.go b/model/simba/TaobaoSimbaRptCampadgroupbaseGetAPIResponse.go new file mode 100644 index 0000000000..27b1df9d76 --- /dev/null +++ b/model/simba/TaobaoSimbaRptCampadgroupbaseGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推广计划下的推广组报表基础数据查询(只有汇总数据,无分类类型) API返回值 +taobao.simba.rpt.campadgroupbase.get + +推广计划下的推广组报表基础数据查询(只有汇总数据,无分类类型) +*/ +type TaobaoSimbaRptCampadgroupbaseGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRptCampadgroupbaseGetAPIResponseModel +} + +// 推广计划下的推广组报表基础数据查询(只有汇总数据,无分类类型) 成功返回结果 +type TaobaoSimbaRptCampadgroupbaseGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rpt_campadgroupbase_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推广计划下推广组的基础数据列表 + RptCampadgroupBaseList string `json:"rpt_campadgroup_base_list,omitempty" xml:"rpt_campadgroup_base_list,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRptCampadgroupbaseGetResponse.go b/model/simba/TaobaoSimbaRptCampadgroupbaseGetResponse.go deleted file mode 100644 index 6bea08a6dc..0000000000 --- a/model/simba/TaobaoSimbaRptCampadgroupbaseGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推广计划下的推广组报表基础数据查询(只有汇总数据,无分类类型) API返回值 -taobao.simba.rpt.campadgroupbase.get - -推广计划下的推广组报表基础数据查询(只有汇总数据,无分类类型) -*/ -type TaobaoSimbaRptCampadgroupbaseGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRptCampadgroupbaseGetResponse -} - -// 推广计划下的推广组报表基础数据查询(只有汇总数据,无分类类型) 成功返回结果 -type TaobaoSimbaRptCampadgroupbaseGetResponse struct { - XMLName xml.Name `xml:"simba_rpt_campadgroupbase_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推广计划下推广组的基础数据列表 - RptCampadgroupBaseList string `json:"rpt_campadgroup_base_list,omitempty" xml:"rpt_campadgroup_base_list,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRptCampadgroupeffectGetAPIRequest.go b/model/simba/TaobaoSimbaRptCampadgroupeffectGetAPIRequest.go new file mode 100644 index 0000000000..13dade871f --- /dev/null +++ b/model/simba/TaobaoSimbaRptCampadgroupeffectGetAPIRequest.go @@ -0,0 +1,164 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推广计划下的推广组报表效果数据查询(只有汇总数据,无分类类型) API请求 +taobao.simba.rpt.campadgroupeffect.get + +推广计划下的推广组报表效果数据查询(只有汇总数据,无分类类型) +*/ +type TaobaoSimbaRptCampadgroupeffectGetAPIRequest struct { + model.Params + // 权限验证信息 + _subwayToken string + // 昵称 + _nick string + // 开始日期,格式yyyy-mm-dd + _startTime string + // 结束日期,格式yyyy-mm-dd + _endTime string + // 查询推广计划id + _campaignId int64 + // 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5,汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2 + _source string + // 页码 + _pageNo int64 + // 每页大小 + _pageSize int64 + // 报表类型(搜索:SEARCH,类目出价:CAT, 定向投放:NOSEARCH汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如:SEARCH,CAT + _searchType string +} + +// 初始化TaobaoSimbaRptCampadgroupeffectGetAPIRequest对象 +func NewTaobaoSimbaRptCampadgroupeffectGetRequest() *TaobaoSimbaRptCampadgroupeffectGetAPIRequest{ + return &TaobaoSimbaRptCampadgroupeffectGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRptCampadgroupeffectGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rpt.campadgroupeffect.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRptCampadgroupeffectGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubwayToken Setter +// 权限验证信息 +func (r *TaobaoSimbaRptCampadgroupeffectGetAPIRequest) SetSubwayToken(_subwayToken string) error { + r._subwayToken = _subwayToken + r.Set("subway_token", _subwayToken) + return nil +} + +// SubwayToken Getter +func (r TaobaoSimbaRptCampadgroupeffectGetAPIRequest) GetSubwayToken() string { + return r._subwayToken +} +// Nick Setter +// 昵称 +func (r *TaobaoSimbaRptCampadgroupeffectGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRptCampadgroupeffectGetAPIRequest) GetNick() string { + return r._nick +} +// StartTime Setter +// 开始日期,格式yyyy-mm-dd +func (r *TaobaoSimbaRptCampadgroupeffectGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaRptCampadgroupeffectGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束日期,格式yyyy-mm-dd +func (r *TaobaoSimbaRptCampadgroupeffectGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSimbaRptCampadgroupeffectGetAPIRequest) GetEndTime() string { + return r._endTime +} +// CampaignId Setter +// 查询推广计划id +func (r *TaobaoSimbaRptCampadgroupeffectGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaRptCampadgroupeffectGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// Source Setter +// 数据来源(PC站内:1,PC站外:2,无线站内:4,无线站外 : 5,汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2 +func (r *TaobaoSimbaRptCampadgroupeffectGetAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoSimbaRptCampadgroupeffectGetAPIRequest) GetSource() string { + return r._source +} +// PageNo Setter +// 页码 +func (r *TaobaoSimbaRptCampadgroupeffectGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaRptCampadgroupeffectGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页大小 +func (r *TaobaoSimbaRptCampadgroupeffectGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaRptCampadgroupeffectGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// SearchType Setter +// 报表类型(搜索:SEARCH,类目出价:CAT, 定向投放:NOSEARCH汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如:SEARCH,CAT +func (r *TaobaoSimbaRptCampadgroupeffectGetAPIRequest) SetSearchType(_searchType string) error { + r._searchType = _searchType + r.Set("search_type", _searchType) + return nil +} + +// SearchType Getter +func (r TaobaoSimbaRptCampadgroupeffectGetAPIRequest) GetSearchType() string { + return r._searchType +} diff --git a/model/simba/TaobaoSimbaRptCampadgroupeffectGetAPIResponse.go b/model/simba/TaobaoSimbaRptCampadgroupeffectGetAPIResponse.go new file mode 100644 index 0000000000..e3117c7e1d --- /dev/null +++ b/model/simba/TaobaoSimbaRptCampadgroupeffectGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推广计划下的推广组报表效果数据查询(只有汇总数据,无分类类型) API返回值 +taobao.simba.rpt.campadgroupeffect.get + +推广计划下的推广组报表效果数据查询(只有汇总数据,无分类类型) +*/ +type TaobaoSimbaRptCampadgroupeffectGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRptCampadgroupeffectGetAPIResponseModel +} + +// 推广计划下的推广组报表效果数据查询(只有汇总数据,无分类类型) 成功返回结果 +type TaobaoSimbaRptCampadgroupeffectGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rpt_campadgroupeffect_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推广计划下推广组的效果数据列表 + RptCampadgroupEffectList string `json:"rpt_campadgroup_effect_list,omitempty" xml:"rpt_campadgroup_effect_list,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRptCampadgroupeffectGetResponse.go b/model/simba/TaobaoSimbaRptCampadgroupeffectGetResponse.go deleted file mode 100644 index 09f8b12b4c..0000000000 --- a/model/simba/TaobaoSimbaRptCampadgroupeffectGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推广计划下的推广组报表效果数据查询(只有汇总数据,无分类类型) API返回值 -taobao.simba.rpt.campadgroupeffect.get - -推广计划下的推广组报表效果数据查询(只有汇总数据,无分类类型) -*/ -type TaobaoSimbaRptCampadgroupeffectGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRptCampadgroupeffectGetResponse -} - -// 推广计划下的推广组报表效果数据查询(只有汇总数据,无分类类型) 成功返回结果 -type TaobaoSimbaRptCampadgroupeffectGetResponse struct { - XMLName xml.Name `xml:"simba_rpt_campadgroupeffect_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推广计划下推广组的效果数据列表 - RptCampadgroupEffectList string `json:"rpt_campadgroup_effect_list,omitempty" xml:"rpt_campadgroup_effect_list,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRptCampaignbaseGetAPIRequest.go b/model/simba/TaobaoSimbaRptCampaignbaseGetAPIRequest.go new file mode 100644 index 0000000000..fd2a79655c --- /dev/null +++ b/model/simba/TaobaoSimbaRptCampaignbaseGetAPIRequest.go @@ -0,0 +1,164 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推广计划报表基础数据对象 API请求 +taobao.simba.rpt.campaignbase.get + +推广计划报表基础数据对象 +*/ +type TaobaoSimbaRptCampaignbaseGetAPIRequest struct { + model.Params + // 权限校验参数 + _subwayToken string + // 昵称 + _nick string + // 开始时间,格式yyyy-mm-dd + _startTime string + // 结束时间,格式yyyy-mm-dd + _endTime string + // 报表类型(搜索:SEARCH,类目出价:CAT, 定向投放:NOSEARCH 全部:ALL)可以一次取多个例如:SEARCH,CAT + _searchType string + // 数据来源(站内:1,站外:2)可多选以逗号分隔,默认值为:1,2 + _source string + // 页码 + _pageNo int64 + // 每页大小 + _pageSize int64 + // 推广计划id + _campaignId int64 +} + +// 初始化TaobaoSimbaRptCampaignbaseGetAPIRequest对象 +func NewTaobaoSimbaRptCampaignbaseGetRequest() *TaobaoSimbaRptCampaignbaseGetAPIRequest{ + return &TaobaoSimbaRptCampaignbaseGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRptCampaignbaseGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rpt.campaignbase.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRptCampaignbaseGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubwayToken Setter +// 权限校验参数 +func (r *TaobaoSimbaRptCampaignbaseGetAPIRequest) SetSubwayToken(_subwayToken string) error { + r._subwayToken = _subwayToken + r.Set("subway_token", _subwayToken) + return nil +} + +// SubwayToken Getter +func (r TaobaoSimbaRptCampaignbaseGetAPIRequest) GetSubwayToken() string { + return r._subwayToken +} +// Nick Setter +// 昵称 +func (r *TaobaoSimbaRptCampaignbaseGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRptCampaignbaseGetAPIRequest) GetNick() string { + return r._nick +} +// StartTime Setter +// 开始时间,格式yyyy-mm-dd +func (r *TaobaoSimbaRptCampaignbaseGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaRptCampaignbaseGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束时间,格式yyyy-mm-dd +func (r *TaobaoSimbaRptCampaignbaseGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSimbaRptCampaignbaseGetAPIRequest) GetEndTime() string { + return r._endTime +} +// SearchType Setter +// 报表类型(搜索:SEARCH,类目出价:CAT, 定向投放:NOSEARCH 全部:ALL)可以一次取多个例如:SEARCH,CAT +func (r *TaobaoSimbaRptCampaignbaseGetAPIRequest) SetSearchType(_searchType string) error { + r._searchType = _searchType + r.Set("search_type", _searchType) + return nil +} + +// SearchType Getter +func (r TaobaoSimbaRptCampaignbaseGetAPIRequest) GetSearchType() string { + return r._searchType +} +// Source Setter +// 数据来源(站内:1,站外:2)可多选以逗号分隔,默认值为:1,2 +func (r *TaobaoSimbaRptCampaignbaseGetAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoSimbaRptCampaignbaseGetAPIRequest) GetSource() string { + return r._source +} +// PageNo Setter +// 页码 +func (r *TaobaoSimbaRptCampaignbaseGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaRptCampaignbaseGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页大小 +func (r *TaobaoSimbaRptCampaignbaseGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaRptCampaignbaseGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// CampaignId Setter +// 推广计划id +func (r *TaobaoSimbaRptCampaignbaseGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaRptCampaignbaseGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} diff --git a/model/simba/TaobaoSimbaRptCampaignbaseGetAPIResponse.go b/model/simba/TaobaoSimbaRptCampaignbaseGetAPIResponse.go new file mode 100644 index 0000000000..b11bd2ba42 --- /dev/null +++ b/model/simba/TaobaoSimbaRptCampaignbaseGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推广计划报表基础数据对象 API返回值 +taobao.simba.rpt.campaignbase.get + +推广计划报表基础数据对象 +*/ +type TaobaoSimbaRptCampaignbaseGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRptCampaignbaseGetAPIResponseModel +} + +// 推广计划报表基础数据对象 成功返回结果 +type TaobaoSimbaRptCampaignbaseGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rpt_campaignbase_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推广计划查询结果 + RptCampaignBaseList string `json:"rpt_campaign_base_list,omitempty" xml:"rpt_campaign_base_list,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRptCampaignbaseGetResponse.go b/model/simba/TaobaoSimbaRptCampaignbaseGetResponse.go deleted file mode 100644 index d53ded8d67..0000000000 --- a/model/simba/TaobaoSimbaRptCampaignbaseGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推广计划报表基础数据对象 API返回值 -taobao.simba.rpt.campaignbase.get - -推广计划报表基础数据对象 -*/ -type TaobaoSimbaRptCampaignbaseGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRptCampaignbaseGetResponse -} - -// 推广计划报表基础数据对象 成功返回结果 -type TaobaoSimbaRptCampaignbaseGetResponse struct { - XMLName xml.Name `xml:"simba_rpt_campaignbase_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推广计划查询结果 - RptCampaignBaseList string `json:"rpt_campaign_base_list,omitempty" xml:"rpt_campaign_base_list,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRptCampaigneffectGetAPIRequest.go b/model/simba/TaobaoSimbaRptCampaigneffectGetAPIRequest.go new file mode 100644 index 0000000000..cff32bc702 --- /dev/null +++ b/model/simba/TaobaoSimbaRptCampaigneffectGetAPIRequest.go @@ -0,0 +1,164 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推广计划效果报表数据对象 API请求 +taobao.simba.rpt.campaigneffect.get + +推广计划效果报表数据对象 +*/ +type TaobaoSimbaRptCampaigneffectGetAPIRequest struct { + model.Params + // 权限校验参数 + _subwayToken string + // 昵称 + _nick string + // 开始时间,格式yyyy-mm-dd + _startTime string + // 结束时间,格式yyyy-mm-dd + _endTime string + // 推广计划id + _campaignId int64 + // 报表类型(搜索:SEARCH,类目出价:CAT,定向投放:NOSEARCH 全部:ALL) + _searchType string + // 数据来源(站内:1,站外:2)可多选以逗号分隔,默认值为:1,2 + _source string + // 页码 + _pageNo int64 + // 每页大小 + _pageSize int64 +} + +// 初始化TaobaoSimbaRptCampaigneffectGetAPIRequest对象 +func NewTaobaoSimbaRptCampaigneffectGetRequest() *TaobaoSimbaRptCampaigneffectGetAPIRequest{ + return &TaobaoSimbaRptCampaigneffectGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRptCampaigneffectGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rpt.campaigneffect.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRptCampaigneffectGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubwayToken Setter +// 权限校验参数 +func (r *TaobaoSimbaRptCampaigneffectGetAPIRequest) SetSubwayToken(_subwayToken string) error { + r._subwayToken = _subwayToken + r.Set("subway_token", _subwayToken) + return nil +} + +// SubwayToken Getter +func (r TaobaoSimbaRptCampaigneffectGetAPIRequest) GetSubwayToken() string { + return r._subwayToken +} +// Nick Setter +// 昵称 +func (r *TaobaoSimbaRptCampaigneffectGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRptCampaigneffectGetAPIRequest) GetNick() string { + return r._nick +} +// StartTime Setter +// 开始时间,格式yyyy-mm-dd +func (r *TaobaoSimbaRptCampaigneffectGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaRptCampaigneffectGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束时间,格式yyyy-mm-dd +func (r *TaobaoSimbaRptCampaigneffectGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSimbaRptCampaigneffectGetAPIRequest) GetEndTime() string { + return r._endTime +} +// CampaignId Setter +// 推广计划id +func (r *TaobaoSimbaRptCampaigneffectGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaRptCampaigneffectGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// SearchType Setter +// 报表类型(搜索:SEARCH,类目出价:CAT,定向投放:NOSEARCH 全部:ALL) +func (r *TaobaoSimbaRptCampaigneffectGetAPIRequest) SetSearchType(_searchType string) error { + r._searchType = _searchType + r.Set("search_type", _searchType) + return nil +} + +// SearchType Getter +func (r TaobaoSimbaRptCampaigneffectGetAPIRequest) GetSearchType() string { + return r._searchType +} +// Source Setter +// 数据来源(站内:1,站外:2)可多选以逗号分隔,默认值为:1,2 +func (r *TaobaoSimbaRptCampaigneffectGetAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoSimbaRptCampaigneffectGetAPIRequest) GetSource() string { + return r._source +} +// PageNo Setter +// 页码 +func (r *TaobaoSimbaRptCampaigneffectGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaRptCampaigneffectGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页大小 +func (r *TaobaoSimbaRptCampaigneffectGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaRptCampaigneffectGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/simba/TaobaoSimbaRptCampaigneffectGetAPIResponse.go b/model/simba/TaobaoSimbaRptCampaigneffectGetAPIResponse.go new file mode 100644 index 0000000000..d7b9a52627 --- /dev/null +++ b/model/simba/TaobaoSimbaRptCampaigneffectGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推广计划效果报表数据对象 API返回值 +taobao.simba.rpt.campaigneffect.get + +推广计划效果报表数据对象 +*/ +type TaobaoSimbaRptCampaigneffectGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRptCampaigneffectGetAPIResponseModel +} + +// 推广计划效果报表数据对象 成功返回结果 +type TaobaoSimbaRptCampaigneffectGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rpt_campaigneffect_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推广计划效果报表数据对象 + RptCampaignEffectList string `json:"rpt_campaign_effect_list,omitempty" xml:"rpt_campaign_effect_list,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRptCampaigneffectGetResponse.go b/model/simba/TaobaoSimbaRptCampaigneffectGetResponse.go deleted file mode 100644 index 569bc827a5..0000000000 --- a/model/simba/TaobaoSimbaRptCampaigneffectGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推广计划效果报表数据对象 API返回值 -taobao.simba.rpt.campaigneffect.get - -推广计划效果报表数据对象 -*/ -type TaobaoSimbaRptCampaigneffectGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRptCampaigneffectGetResponse -} - -// 推广计划效果报表数据对象 成功返回结果 -type TaobaoSimbaRptCampaigneffectGetResponse struct { - XMLName xml.Name `xml:"simba_rpt_campaigneffect_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推广计划效果报表数据对象 - RptCampaignEffectList string `json:"rpt_campaign_effect_list,omitempty" xml:"rpt_campaign_effect_list,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRptCustbaseGetAPIRequest.go b/model/simba/TaobaoSimbaRptCustbaseGetAPIRequest.go new file mode 100644 index 0000000000..ac45b35347 --- /dev/null +++ b/model/simba/TaobaoSimbaRptCustbaseGetAPIRequest.go @@ -0,0 +1,136 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +客户账户报表基础数据对象 API请求 +taobao.simba.rpt.custbase.get + +客户账户报表基础数据对象 +*/ +type TaobaoSimbaRptCustbaseGetAPIRequest struct { + model.Params + // 权限验证信息 + _subwayToken string + // 昵称 + _nick string + // 开始日期,格式yyyy-mm-dd + _startTime string + // 结束日期,格式yyyy-mm-dd + _endTime string + // 页码 + _pageNo int64 + // 每页大小 + _pageSize int64 + // 数据来源(站内:1,站外:2 ,汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2 + _source string +} + +// 初始化TaobaoSimbaRptCustbaseGetAPIRequest对象 +func NewTaobaoSimbaRptCustbaseGetRequest() *TaobaoSimbaRptCustbaseGetAPIRequest{ + return &TaobaoSimbaRptCustbaseGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRptCustbaseGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rpt.custbase.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRptCustbaseGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubwayToken Setter +// 权限验证信息 +func (r *TaobaoSimbaRptCustbaseGetAPIRequest) SetSubwayToken(_subwayToken string) error { + r._subwayToken = _subwayToken + r.Set("subway_token", _subwayToken) + return nil +} + +// SubwayToken Getter +func (r TaobaoSimbaRptCustbaseGetAPIRequest) GetSubwayToken() string { + return r._subwayToken +} +// Nick Setter +// 昵称 +func (r *TaobaoSimbaRptCustbaseGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRptCustbaseGetAPIRequest) GetNick() string { + return r._nick +} +// StartTime Setter +// 开始日期,格式yyyy-mm-dd +func (r *TaobaoSimbaRptCustbaseGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaRptCustbaseGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束日期,格式yyyy-mm-dd +func (r *TaobaoSimbaRptCustbaseGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSimbaRptCustbaseGetAPIRequest) GetEndTime() string { + return r._endTime +} +// PageNo Setter +// 页码 +func (r *TaobaoSimbaRptCustbaseGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaRptCustbaseGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页大小 +func (r *TaobaoSimbaRptCustbaseGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaRptCustbaseGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Source Setter +// 数据来源(站内:1,站外:2 ,汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2 +func (r *TaobaoSimbaRptCustbaseGetAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoSimbaRptCustbaseGetAPIRequest) GetSource() string { + return r._source +} diff --git a/model/simba/TaobaoSimbaRptCustbaseGetAPIResponse.go b/model/simba/TaobaoSimbaRptCustbaseGetAPIResponse.go new file mode 100644 index 0000000000..39b3fa0b36 --- /dev/null +++ b/model/simba/TaobaoSimbaRptCustbaseGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +客户账户报表基础数据对象 API返回值 +taobao.simba.rpt.custbase.get + +客户账户报表基础数据对象 +*/ +type TaobaoSimbaRptCustbaseGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRptCustbaseGetAPIResponseModel +} + +// 客户账户报表基础数据对象 成功返回结果 +type TaobaoSimbaRptCustbaseGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rpt_custbase_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 用户帐户结果 + RptCustBaseList string `json:"rpt_cust_base_list,omitempty" xml:"rpt_cust_base_list,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRptCustbaseGetResponse.go b/model/simba/TaobaoSimbaRptCustbaseGetResponse.go deleted file mode 100644 index 09f5b8855e..0000000000 --- a/model/simba/TaobaoSimbaRptCustbaseGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -客户账户报表基础数据对象 API返回值 -taobao.simba.rpt.custbase.get - -客户账户报表基础数据对象 -*/ -type TaobaoSimbaRptCustbaseGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRptCustbaseGetResponse -} - -// 客户账户报表基础数据对象 成功返回结果 -type TaobaoSimbaRptCustbaseGetResponse struct { - XMLName xml.Name `xml:"simba_rpt_custbase_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 用户帐户结果 - RptCustBaseList string `json:"rpt_cust_base_list,omitempty" xml:"rpt_cust_base_list,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRptCusteffectGetAPIRequest.go b/model/simba/TaobaoSimbaRptCusteffectGetAPIRequest.go new file mode 100644 index 0000000000..6b519dfe27 --- /dev/null +++ b/model/simba/TaobaoSimbaRptCusteffectGetAPIRequest.go @@ -0,0 +1,136 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户账户报表效果数据查询(只有汇总数据,无分类数据) API请求 +taobao.simba.rpt.custeffect.get + +用户账户报表效果数据查询(只有汇总数据,无分类数据) +*/ +type TaobaoSimbaRptCusteffectGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 开始时间,格式yyyy-mm-dd + _startTime string + // 结束时间,格式yyyy-mm-dd + _endTime string + // 权限校验参数 + _subwayToken string + // 页码 + _pageNo int64 + // 每页大小 + _pageSize int64 + // 数据来源(站内:1,站外:2 ,汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2 + _source string +} + +// 初始化TaobaoSimbaRptCusteffectGetAPIRequest对象 +func NewTaobaoSimbaRptCusteffectGetRequest() *TaobaoSimbaRptCusteffectGetAPIRequest{ + return &TaobaoSimbaRptCusteffectGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRptCusteffectGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rpt.custeffect.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRptCusteffectGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaRptCusteffectGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRptCusteffectGetAPIRequest) GetNick() string { + return r._nick +} +// StartTime Setter +// 开始时间,格式yyyy-mm-dd +func (r *TaobaoSimbaRptCusteffectGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaRptCusteffectGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束时间,格式yyyy-mm-dd +func (r *TaobaoSimbaRptCusteffectGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSimbaRptCusteffectGetAPIRequest) GetEndTime() string { + return r._endTime +} +// SubwayToken Setter +// 权限校验参数 +func (r *TaobaoSimbaRptCusteffectGetAPIRequest) SetSubwayToken(_subwayToken string) error { + r._subwayToken = _subwayToken + r.Set("subway_token", _subwayToken) + return nil +} + +// SubwayToken Getter +func (r TaobaoSimbaRptCusteffectGetAPIRequest) GetSubwayToken() string { + return r._subwayToken +} +// PageNo Setter +// 页码 +func (r *TaobaoSimbaRptCusteffectGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaRptCusteffectGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页大小 +func (r *TaobaoSimbaRptCusteffectGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaRptCusteffectGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Source Setter +// 数据来源(站内:1,站外:2 ,汇总:SUMMARY)SUMMARY必须单选,其他值可多选例如1,2 +func (r *TaobaoSimbaRptCusteffectGetAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoSimbaRptCusteffectGetAPIRequest) GetSource() string { + return r._source +} diff --git a/model/simba/TaobaoSimbaRptCusteffectGetAPIResponse.go b/model/simba/TaobaoSimbaRptCusteffectGetAPIResponse.go new file mode 100644 index 0000000000..dd013b2722 --- /dev/null +++ b/model/simba/TaobaoSimbaRptCusteffectGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户账户报表效果数据查询(只有汇总数据,无分类数据) API返回值 +taobao.simba.rpt.custeffect.get + +用户账户报表效果数据查询(只有汇总数据,无分类数据) +*/ +type TaobaoSimbaRptCusteffectGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRptCusteffectGetAPIResponseModel +} + +// 用户账户报表效果数据查询(只有汇总数据,无分类数据) 成功返回结果 +type TaobaoSimbaRptCusteffectGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rpt_custeffect_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 账户效果数据返回结果 + RptCustEffectList string `json:"rpt_cust_effect_list,omitempty" xml:"rpt_cust_effect_list,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRptCusteffectGetResponse.go b/model/simba/TaobaoSimbaRptCusteffectGetResponse.go deleted file mode 100644 index ae2943d59f..0000000000 --- a/model/simba/TaobaoSimbaRptCusteffectGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户账户报表效果数据查询(只有汇总数据,无分类数据) API返回值 -taobao.simba.rpt.custeffect.get - -用户账户报表效果数据查询(只有汇总数据,无分类数据) -*/ -type TaobaoSimbaRptCusteffectGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRptCusteffectGetResponse -} - -// 用户账户报表效果数据查询(只有汇总数据,无分类数据) 成功返回结果 -type TaobaoSimbaRptCusteffectGetResponse struct { - XMLName xml.Name `xml:"simba_rpt_custeffect_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 账户效果数据返回结果 - RptCustEffectList string `json:"rpt_cust_effect_list,omitempty" xml:"rpt_cust_effect_list,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRptTargetingtagGetAPIRequest.go b/model/simba/TaobaoSimbaRptTargetingtagGetAPIRequest.go new file mode 100644 index 0000000000..858ec0c588 --- /dev/null +++ b/model/simba/TaobaoSimbaRptTargetingtagGetAPIRequest.go @@ -0,0 +1,122 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索人群离线报表 API请求 +taobao.simba.rpt.targetingtag.get + +获取搜搜人群实时报表 +*/ +type TaobaoSimbaRptTargetingtagGetAPIRequest struct { + model.Params + // 用户旺旺名称 + _nick string + // 推广计划id + _campaignId int64 + // 推广单元id + _adgroupId int64 + // 开始时间 + _startTime string + // 结束时间 + _endTime string + // 流量类型 1: PC站内, 2: PC站外 , 4: 无线站内, 5: 无线站外,支持多种一起查询,如1,2,4,5 + _trafficType string +} + +// 初始化TaobaoSimbaRptTargetingtagGetAPIRequest对象 +func NewTaobaoSimbaRptTargetingtagGetRequest() *TaobaoSimbaRptTargetingtagGetAPIRequest{ + return &TaobaoSimbaRptTargetingtagGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRptTargetingtagGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rpt.targetingtag.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRptTargetingtagGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 用户旺旺名称 +func (r *TaobaoSimbaRptTargetingtagGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRptTargetingtagGetAPIRequest) GetNick() string { + return r._nick +} +// CampaignId Setter +// 推广计划id +func (r *TaobaoSimbaRptTargetingtagGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaRptTargetingtagGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// AdgroupId Setter +// 推广单元id +func (r *TaobaoSimbaRptTargetingtagGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaRptTargetingtagGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// StartTime Setter +// 开始时间 +func (r *TaobaoSimbaRptTargetingtagGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaRptTargetingtagGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束时间 +func (r *TaobaoSimbaRptTargetingtagGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSimbaRptTargetingtagGetAPIRequest) GetEndTime() string { + return r._endTime +} +// TrafficType Setter +// 流量类型 1: PC站内, 2: PC站外 , 4: 无线站内, 5: 无线站外,支持多种一起查询,如1,2,4,5 +func (r *TaobaoSimbaRptTargetingtagGetAPIRequest) SetTrafficType(_trafficType string) error { + r._trafficType = _trafficType + r.Set("traffic_type", _trafficType) + return nil +} + +// TrafficType Getter +func (r TaobaoSimbaRptTargetingtagGetAPIRequest) GetTrafficType() string { + return r._trafficType +} diff --git a/model/simba/TaobaoSimbaRptTargetingtagGetAPIResponse.go b/model/simba/TaobaoSimbaRptTargetingtagGetAPIResponse.go new file mode 100644 index 0000000000..eac5d148d7 --- /dev/null +++ b/model/simba/TaobaoSimbaRptTargetingtagGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索人群离线报表 API返回值 +taobao.simba.rpt.targetingtag.get + +获取搜搜人群实时报表 +*/ +type TaobaoSimbaRptTargetingtagGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRptTargetingtagGetAPIResponseModel +} + +// 搜索人群离线报表 成功返回结果 +type TaobaoSimbaRptTargetingtagGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rpt_targetingtag_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 111 + Results []RtRptResultEntityDto `json:"results,omitempty" xml:"results>rt_rpt_result_entity_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRptTargetingtagGetResponse.go b/model/simba/TaobaoSimbaRptTargetingtagGetResponse.go deleted file mode 100644 index dbd7175565..0000000000 --- a/model/simba/TaobaoSimbaRptTargetingtagGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -搜索人群离线报表 API返回值 -taobao.simba.rpt.targetingtag.get - -获取搜搜人群实时报表 -*/ -type TaobaoSimbaRptTargetingtagGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRptTargetingtagGetResponse -} - -// 搜索人群离线报表 成功返回结果 -type TaobaoSimbaRptTargetingtagGetResponse struct { - XMLName xml.Name `xml:"simba_rpt_targetingtag_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 111 - Results []RtRptResultEntityDto `json:"results,omitempty" xml:"results>rt_rpt_result_entity_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRptTargetingtagbaseGetAPIRequest.go b/model/simba/TaobaoSimbaRptTargetingtagbaseGetAPIRequest.go new file mode 100644 index 0000000000..65ff6a97ea --- /dev/null +++ b/model/simba/TaobaoSimbaRptTargetingtagbaseGetAPIRequest.go @@ -0,0 +1,136 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定向基础报表 API请求 +taobao.simba.rpt.targetingtagbase.get + +获取定向基础报表 +*/ +type TaobaoSimbaRptTargetingtagbaseGetAPIRequest struct { + model.Params + // 被操作者昵称 + _nick string + // 计划id + _campaignId int64 + // 推广组id + _adgroupId int64 + // 起始时间 + _startTime string + // 结束时间 + _endTime string + // 分页大小 + _pageSize int64 + // 页码 + _pageNumber int64 +} + +// 初始化TaobaoSimbaRptTargetingtagbaseGetAPIRequest对象 +func NewTaobaoSimbaRptTargetingtagbaseGetRequest() *TaobaoSimbaRptTargetingtagbaseGetAPIRequest{ + return &TaobaoSimbaRptTargetingtagbaseGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRptTargetingtagbaseGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rpt.targetingtagbase.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRptTargetingtagbaseGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 被操作者昵称 +func (r *TaobaoSimbaRptTargetingtagbaseGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRptTargetingtagbaseGetAPIRequest) GetNick() string { + return r._nick +} +// CampaignId Setter +// 计划id +func (r *TaobaoSimbaRptTargetingtagbaseGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaRptTargetingtagbaseGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// AdgroupId Setter +// 推广组id +func (r *TaobaoSimbaRptTargetingtagbaseGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaRptTargetingtagbaseGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// StartTime Setter +// 起始时间 +func (r *TaobaoSimbaRptTargetingtagbaseGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaRptTargetingtagbaseGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束时间 +func (r *TaobaoSimbaRptTargetingtagbaseGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSimbaRptTargetingtagbaseGetAPIRequest) GetEndTime() string { + return r._endTime +} +// PageSize Setter +// 分页大小 +func (r *TaobaoSimbaRptTargetingtagbaseGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaRptTargetingtagbaseGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNumber Setter +// 页码 +func (r *TaobaoSimbaRptTargetingtagbaseGetAPIRequest) SetPageNumber(_pageNumber int64) error { + r._pageNumber = _pageNumber + r.Set("page_number", _pageNumber) + return nil +} + +// PageNumber Getter +func (r TaobaoSimbaRptTargetingtagbaseGetAPIRequest) GetPageNumber() int64 { + return r._pageNumber +} diff --git a/model/simba/TaobaoSimbaRptTargetingtagbaseGetAPIResponse.go b/model/simba/TaobaoSimbaRptTargetingtagbaseGetAPIResponse.go new file mode 100644 index 0000000000..f068fdd06c --- /dev/null +++ b/model/simba/TaobaoSimbaRptTargetingtagbaseGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定向基础报表 API返回值 +taobao.simba.rpt.targetingtagbase.get + +获取定向基础报表 +*/ +type TaobaoSimbaRptTargetingtagbaseGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRptTargetingtagbaseGetAPIResponseModel +} + +// 定向基础报表 成功返回结果 +type TaobaoSimbaRptTargetingtagbaseGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rpt_targetingtagbase_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Results []RptBaseEntityDto `json:"results,omitempty" xml:"results>rpt_base_entity_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRptTargetingtagbaseGetResponse.go b/model/simba/TaobaoSimbaRptTargetingtagbaseGetResponse.go deleted file mode 100644 index 94e99cf4a4..0000000000 --- a/model/simba/TaobaoSimbaRptTargetingtagbaseGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定向基础报表 API返回值 -taobao.simba.rpt.targetingtagbase.get - -获取定向基础报表 -*/ -type TaobaoSimbaRptTargetingtagbaseGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRptTargetingtagbaseGetResponse -} - -// 定向基础报表 成功返回结果 -type TaobaoSimbaRptTargetingtagbaseGetResponse struct { - XMLName xml.Name `xml:"simba_rpt_targetingtagbase_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Results []RptBaseEntityDto `json:"results,omitempty" xml:"results>rpt_base_entity_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRptTargetingtageffectGetAPIRequest.go b/model/simba/TaobaoSimbaRptTargetingtageffectGetAPIRequest.go new file mode 100644 index 0000000000..7a4852bd6d --- /dev/null +++ b/model/simba/TaobaoSimbaRptTargetingtageffectGetAPIRequest.go @@ -0,0 +1,136 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取定向效果报表数据 API请求 +taobao.simba.rpt.targetingtageffect.get + +获取定向效果报表数据 +*/ +type TaobaoSimbaRptTargetingtageffectGetAPIRequest struct { + model.Params + // 被操作者昵称 + _nick string + // 计划id + _campaignId int64 + // 推广组id + _adgroupId int64 + // 起始时间 + _startTime string + // 终止时间 ,必须小于今天 + _endTime string + // 页面大小 + _pageSize int64 + // 页码 + _pageNumber int64 +} + +// 初始化TaobaoSimbaRptTargetingtageffectGetAPIRequest对象 +func NewTaobaoSimbaRptTargetingtageffectGetRequest() *TaobaoSimbaRptTargetingtageffectGetAPIRequest{ + return &TaobaoSimbaRptTargetingtageffectGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRptTargetingtageffectGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rpt.targetingtageffect.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRptTargetingtageffectGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 被操作者昵称 +func (r *TaobaoSimbaRptTargetingtageffectGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRptTargetingtageffectGetAPIRequest) GetNick() string { + return r._nick +} +// CampaignId Setter +// 计划id +func (r *TaobaoSimbaRptTargetingtageffectGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaRptTargetingtageffectGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// AdgroupId Setter +// 推广组id +func (r *TaobaoSimbaRptTargetingtageffectGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaRptTargetingtageffectGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// StartTime Setter +// 起始时间 +func (r *TaobaoSimbaRptTargetingtageffectGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSimbaRptTargetingtageffectGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 终止时间 ,必须小于今天 +func (r *TaobaoSimbaRptTargetingtageffectGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSimbaRptTargetingtageffectGetAPIRequest) GetEndTime() string { + return r._endTime +} +// PageSize Setter +// 页面大小 +func (r *TaobaoSimbaRptTargetingtageffectGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaRptTargetingtageffectGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNumber Setter +// 页码 +func (r *TaobaoSimbaRptTargetingtageffectGetAPIRequest) SetPageNumber(_pageNumber int64) error { + r._pageNumber = _pageNumber + r.Set("page_number", _pageNumber) + return nil +} + +// PageNumber Getter +func (r TaobaoSimbaRptTargetingtageffectGetAPIRequest) GetPageNumber() int64 { + return r._pageNumber +} diff --git a/model/simba/TaobaoSimbaRptTargetingtageffectGetAPIResponse.go b/model/simba/TaobaoSimbaRptTargetingtageffectGetAPIResponse.go new file mode 100644 index 0000000000..0231ddcea5 --- /dev/null +++ b/model/simba/TaobaoSimbaRptTargetingtageffectGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取定向效果报表数据 API返回值 +taobao.simba.rpt.targetingtageffect.get + +获取定向效果报表数据 +*/ +type TaobaoSimbaRptTargetingtageffectGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRptTargetingtageffectGetAPIResponseModel +} + +// 获取定向效果报表数据 成功返回结果 +type TaobaoSimbaRptTargetingtageffectGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rpt_targetingtageffect_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 效果数据 + Results []RptEffectEntityDto `json:"results,omitempty" xml:"results>rpt_effect_entity_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRptTargetingtageffectGetResponse.go b/model/simba/TaobaoSimbaRptTargetingtageffectGetResponse.go deleted file mode 100644 index 2d8d178cfa..0000000000 --- a/model/simba/TaobaoSimbaRptTargetingtageffectGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取定向效果报表数据 API返回值 -taobao.simba.rpt.targetingtageffect.get - -获取定向效果报表数据 -*/ -type TaobaoSimbaRptTargetingtageffectGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRptTargetingtageffectGetResponse -} - -// 获取定向效果报表数据 成功返回结果 -type TaobaoSimbaRptTargetingtageffectGetResponse struct { - XMLName xml.Name `xml:"simba_rpt_targetingtageffect_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 效果数据 - Results []RptEffectEntityDto `json:"results,omitempty" xml:"results>rpt_effect_entity_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRtrptAdgroupGetAPIRequest.go b/model/simba/TaobaoSimbaRtrptAdgroupGetAPIRequest.go new file mode 100644 index 0000000000..a95ecc2c0b --- /dev/null +++ b/model/simba/TaobaoSimbaRtrptAdgroupGetAPIRequest.go @@ -0,0 +1,108 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取推广组实时报表数据 API请求 +taobao.simba.rtrpt.adgroup.get + +获取推广组实时报表数据 +*/ +type TaobaoSimbaRtrptAdgroupGetAPIRequest struct { + model.Params + // 用户名 + _nick string + // 推广计划id + _campaignId int64 + // 日期,格式yyyy-mm-dd + _theDate string + // 每页大小 + _pageSize int64 + // 页码 + _pageNumber int64 +} + +// 初始化TaobaoSimbaRtrptAdgroupGetAPIRequest对象 +func NewTaobaoSimbaRtrptAdgroupGetRequest() *TaobaoSimbaRtrptAdgroupGetAPIRequest{ + return &TaobaoSimbaRtrptAdgroupGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRtrptAdgroupGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rtrpt.adgroup.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRtrptAdgroupGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 用户名 +func (r *TaobaoSimbaRtrptAdgroupGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRtrptAdgroupGetAPIRequest) GetNick() string { + return r._nick +} +// CampaignId Setter +// 推广计划id +func (r *TaobaoSimbaRtrptAdgroupGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaRtrptAdgroupGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// TheDate Setter +// 日期,格式yyyy-mm-dd +func (r *TaobaoSimbaRtrptAdgroupGetAPIRequest) SetTheDate(_theDate string) error { + r._theDate = _theDate + r.Set("the_date", _theDate) + return nil +} + +// TheDate Getter +func (r TaobaoSimbaRtrptAdgroupGetAPIRequest) GetTheDate() string { + return r._theDate +} +// PageSize Setter +// 每页大小 +func (r *TaobaoSimbaRtrptAdgroupGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaRtrptAdgroupGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNumber Setter +// 页码 +func (r *TaobaoSimbaRtrptAdgroupGetAPIRequest) SetPageNumber(_pageNumber int64) error { + r._pageNumber = _pageNumber + r.Set("page_number", _pageNumber) + return nil +} + +// PageNumber Getter +func (r TaobaoSimbaRtrptAdgroupGetAPIRequest) GetPageNumber() int64 { + return r._pageNumber +} diff --git a/model/simba/TaobaoSimbaRtrptAdgroupGetAPIResponse.go b/model/simba/TaobaoSimbaRtrptAdgroupGetAPIResponse.go new file mode 100644 index 0000000000..6a1073977b --- /dev/null +++ b/model/simba/TaobaoSimbaRtrptAdgroupGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取推广组实时报表数据 API返回值 +taobao.simba.rtrpt.adgroup.get + +获取推广组实时报表数据 +*/ +type TaobaoSimbaRtrptAdgroupGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRtrptAdgroupGetAPIResponseModel +} + +// 获取推广组实时报表数据 成功返回结果 +type TaobaoSimbaRtrptAdgroupGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rtrpt_adgroup_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 1111 + Results []RtRptResultEntityDto `json:"results,omitempty" xml:"results>rt_rpt_result_entity_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRtrptAdgroupGetResponse.go b/model/simba/TaobaoSimbaRtrptAdgroupGetResponse.go deleted file mode 100644 index d061f05b27..0000000000 --- a/model/simba/TaobaoSimbaRtrptAdgroupGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取推广组实时报表数据 API返回值 -taobao.simba.rtrpt.adgroup.get - -获取推广组实时报表数据 -*/ -type TaobaoSimbaRtrptAdgroupGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRtrptAdgroupGetResponse -} - -// 获取推广组实时报表数据 成功返回结果 -type TaobaoSimbaRtrptAdgroupGetResponse struct { - XMLName xml.Name `xml:"simba_rtrpt_adgroup_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 1111 - Results []RtRptResultEntityDto `json:"results,omitempty" xml:"results>rt_rpt_result_entity_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRtrptBidwordGetAPIRequest.go b/model/simba/TaobaoSimbaRtrptBidwordGetAPIRequest.go new file mode 100644 index 0000000000..08c1ea810b --- /dev/null +++ b/model/simba/TaobaoSimbaRtrptBidwordGetAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取推广词实时报表数据 API请求 +taobao.simba.rtrpt.bidword.get + +获取推广词报表数据 +*/ +type TaobaoSimbaRtrptBidwordGetAPIRequest struct { + model.Params + // 用户名 + _nick string + // 推广计划id + _campaignId int64 + // 推广组id + _adgroupId int64 + // 日期,格式yyyy-mm-dd + _theDate string +} + +// 初始化TaobaoSimbaRtrptBidwordGetAPIRequest对象 +func NewTaobaoSimbaRtrptBidwordGetRequest() *TaobaoSimbaRtrptBidwordGetAPIRequest{ + return &TaobaoSimbaRtrptBidwordGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRtrptBidwordGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rtrpt.bidword.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRtrptBidwordGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 用户名 +func (r *TaobaoSimbaRtrptBidwordGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRtrptBidwordGetAPIRequest) GetNick() string { + return r._nick +} +// CampaignId Setter +// 推广计划id +func (r *TaobaoSimbaRtrptBidwordGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaRtrptBidwordGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// AdgroupId Setter +// 推广组id +func (r *TaobaoSimbaRtrptBidwordGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaRtrptBidwordGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// TheDate Setter +// 日期,格式yyyy-mm-dd +func (r *TaobaoSimbaRtrptBidwordGetAPIRequest) SetTheDate(_theDate string) error { + r._theDate = _theDate + r.Set("the_date", _theDate) + return nil +} + +// TheDate Getter +func (r TaobaoSimbaRtrptBidwordGetAPIRequest) GetTheDate() string { + return r._theDate +} diff --git a/model/simba/TaobaoSimbaRtrptBidwordGetAPIResponse.go b/model/simba/TaobaoSimbaRtrptBidwordGetAPIResponse.go new file mode 100644 index 0000000000..12fdd8899b --- /dev/null +++ b/model/simba/TaobaoSimbaRtrptBidwordGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取推广词实时报表数据 API返回值 +taobao.simba.rtrpt.bidword.get + +获取推广词报表数据 +*/ +type TaobaoSimbaRtrptBidwordGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRtrptBidwordGetAPIResponseModel +} + +// 获取推广词实时报表数据 成功返回结果 +type TaobaoSimbaRtrptBidwordGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rtrpt_bidword_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // bidword result + Results []RtRptResultEntityDto `json:"results,omitempty" xml:"results>rt_rpt_result_entity_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRtrptBidwordGetResponse.go b/model/simba/TaobaoSimbaRtrptBidwordGetResponse.go deleted file mode 100644 index e99b292673..0000000000 --- a/model/simba/TaobaoSimbaRtrptBidwordGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取推广词实时报表数据 API返回值 -taobao.simba.rtrpt.bidword.get - -获取推广词报表数据 -*/ -type TaobaoSimbaRtrptBidwordGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRtrptBidwordGetResponse -} - -// 获取推广词实时报表数据 成功返回结果 -type TaobaoSimbaRtrptBidwordGetResponse struct { - XMLName xml.Name `xml:"simba_rtrpt_bidword_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // bidword result - Results []RtRptResultEntityDto `json:"results,omitempty" xml:"results>rt_rpt_result_entity_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRtrptCampaignGetAPIRequest.go b/model/simba/TaobaoSimbaRtrptCampaignGetAPIRequest.go new file mode 100644 index 0000000000..3fd4151889 --- /dev/null +++ b/model/simba/TaobaoSimbaRtrptCampaignGetAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取推广计划实时报表数据 API请求 +taobao.simba.rtrpt.campaign.get + +获取推广计划实时报表数据 +*/ +type TaobaoSimbaRtrptCampaignGetAPIRequest struct { + model.Params + // 用户名 + _nick string + // 日期,格式yyyy-mm-dd + _theDate string +} + +// 初始化TaobaoSimbaRtrptCampaignGetAPIRequest对象 +func NewTaobaoSimbaRtrptCampaignGetRequest() *TaobaoSimbaRtrptCampaignGetAPIRequest{ + return &TaobaoSimbaRtrptCampaignGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRtrptCampaignGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rtrpt.campaign.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRtrptCampaignGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 用户名 +func (r *TaobaoSimbaRtrptCampaignGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRtrptCampaignGetAPIRequest) GetNick() string { + return r._nick +} +// TheDate Setter +// 日期,格式yyyy-mm-dd +func (r *TaobaoSimbaRtrptCampaignGetAPIRequest) SetTheDate(_theDate string) error { + r._theDate = _theDate + r.Set("the_date", _theDate) + return nil +} + +// TheDate Getter +func (r TaobaoSimbaRtrptCampaignGetAPIRequest) GetTheDate() string { + return r._theDate +} diff --git a/model/simba/TaobaoSimbaRtrptCampaignGetAPIResponse.go b/model/simba/TaobaoSimbaRtrptCampaignGetAPIResponse.go new file mode 100644 index 0000000000..6ae759772b --- /dev/null +++ b/model/simba/TaobaoSimbaRtrptCampaignGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取推广计划实时报表数据 API返回值 +taobao.simba.rtrpt.campaign.get + +获取推广计划实时报表数据 +*/ +type TaobaoSimbaRtrptCampaignGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRtrptCampaignGetAPIResponseModel +} + +// 获取推广计划实时报表数据 成功返回结果 +type TaobaoSimbaRtrptCampaignGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rtrpt_campaign_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 111 + Resultss []RtRptResultEntityDto `json:"resultss,omitempty" xml:"resultss>rt_rpt_result_entity_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRtrptCampaignGetResponse.go b/model/simba/TaobaoSimbaRtrptCampaignGetResponse.go deleted file mode 100644 index da05e827ec..0000000000 --- a/model/simba/TaobaoSimbaRtrptCampaignGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取推广计划实时报表数据 API返回值 -taobao.simba.rtrpt.campaign.get - -获取推广计划实时报表数据 -*/ -type TaobaoSimbaRtrptCampaignGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRtrptCampaignGetResponse -} - -// 获取推广计划实时报表数据 成功返回结果 -type TaobaoSimbaRtrptCampaignGetResponse struct { - XMLName xml.Name `xml:"simba_rtrpt_campaign_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 111 - Resultss []RtRptResultEntityDto `json:"resultss,omitempty" xml:"resultss>rt_rpt_result_entity_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRtrptCreativeGetAPIRequest.go b/model/simba/TaobaoSimbaRtrptCreativeGetAPIRequest.go new file mode 100644 index 0000000000..8a19896899 --- /dev/null +++ b/model/simba/TaobaoSimbaRtrptCreativeGetAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取创意实时报表数据 API请求 +taobao.simba.rtrpt.creative.get + +获取创意实时报表数据 +*/ +type TaobaoSimbaRtrptCreativeGetAPIRequest struct { + model.Params + // 用户名 + _nick string + // 推广计划id + _campaignId int64 + // 推广组id + _adgroupId int64 + // 日期,格式yyyy-mm-dd + _theDate string +} + +// 初始化TaobaoSimbaRtrptCreativeGetAPIRequest对象 +func NewTaobaoSimbaRtrptCreativeGetRequest() *TaobaoSimbaRtrptCreativeGetAPIRequest{ + return &TaobaoSimbaRtrptCreativeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRtrptCreativeGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rtrpt.creative.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRtrptCreativeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 用户名 +func (r *TaobaoSimbaRtrptCreativeGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRtrptCreativeGetAPIRequest) GetNick() string { + return r._nick +} +// CampaignId Setter +// 推广计划id +func (r *TaobaoSimbaRtrptCreativeGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaRtrptCreativeGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// AdgroupId Setter +// 推广组id +func (r *TaobaoSimbaRtrptCreativeGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaRtrptCreativeGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// TheDate Setter +// 日期,格式yyyy-mm-dd +func (r *TaobaoSimbaRtrptCreativeGetAPIRequest) SetTheDate(_theDate string) error { + r._theDate = _theDate + r.Set("the_date", _theDate) + return nil +} + +// TheDate Getter +func (r TaobaoSimbaRtrptCreativeGetAPIRequest) GetTheDate() string { + return r._theDate +} diff --git a/model/simba/TaobaoSimbaRtrptCreativeGetAPIResponse.go b/model/simba/TaobaoSimbaRtrptCreativeGetAPIResponse.go new file mode 100644 index 0000000000..2ede594817 --- /dev/null +++ b/model/simba/TaobaoSimbaRtrptCreativeGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取创意实时报表数据 API返回值 +taobao.simba.rtrpt.creative.get + +获取创意实时报表数据 +*/ +type TaobaoSimbaRtrptCreativeGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRtrptCreativeGetAPIResponseModel +} + +// 获取创意实时报表数据 成功返回结果 +type TaobaoSimbaRtrptCreativeGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rtrpt_creative_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 111 + Results []RtRptResultEntityDto `json:"results,omitempty" xml:"results>rt_rpt_result_entity_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRtrptCreativeGetResponse.go b/model/simba/TaobaoSimbaRtrptCreativeGetResponse.go deleted file mode 100644 index 9e5f31da6e..0000000000 --- a/model/simba/TaobaoSimbaRtrptCreativeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取创意实时报表数据 API返回值 -taobao.simba.rtrpt.creative.get - -获取创意实时报表数据 -*/ -type TaobaoSimbaRtrptCreativeGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRtrptCreativeGetResponse -} - -// 获取创意实时报表数据 成功返回结果 -type TaobaoSimbaRtrptCreativeGetResponse struct { - XMLName xml.Name `xml:"simba_rtrpt_creative_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 111 - Results []RtRptResultEntityDto `json:"results,omitempty" xml:"results>rt_rpt_result_entity_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRtrptCustGetAPIRequest.go b/model/simba/TaobaoSimbaRtrptCustGetAPIRequest.go new file mode 100644 index 0000000000..5bd940e204 --- /dev/null +++ b/model/simba/TaobaoSimbaRtrptCustGetAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取账户实时报表数据 API请求 +taobao.simba.rtrpt.cust.get + +获取账户实时报表数据 +*/ +type TaobaoSimbaRtrptCustGetAPIRequest struct { + model.Params + // 昵称 + _nick string + // 日期,格式yyyy-mm-dd + _theDate string +} + +// 初始化TaobaoSimbaRtrptCustGetAPIRequest对象 +func NewTaobaoSimbaRtrptCustGetRequest() *TaobaoSimbaRtrptCustGetAPIRequest{ + return &TaobaoSimbaRtrptCustGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRtrptCustGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rtrpt.cust.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRtrptCustGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 昵称 +func (r *TaobaoSimbaRtrptCustGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRtrptCustGetAPIRequest) GetNick() string { + return r._nick +} +// TheDate Setter +// 日期,格式yyyy-mm-dd +func (r *TaobaoSimbaRtrptCustGetAPIRequest) SetTheDate(_theDate string) error { + r._theDate = _theDate + r.Set("the_date", _theDate) + return nil +} + +// TheDate Getter +func (r TaobaoSimbaRtrptCustGetAPIRequest) GetTheDate() string { + return r._theDate +} diff --git a/model/simba/TaobaoSimbaRtrptCustGetAPIResponse.go b/model/simba/TaobaoSimbaRtrptCustGetAPIResponse.go new file mode 100644 index 0000000000..58620e0935 --- /dev/null +++ b/model/simba/TaobaoSimbaRtrptCustGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取账户实时报表数据 API返回值 +taobao.simba.rtrpt.cust.get + +获取账户实时报表数据 +*/ +type TaobaoSimbaRtrptCustGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRtrptCustGetAPIResponseModel +} + +// 获取账户实时报表数据 成功返回结果 +type TaobaoSimbaRtrptCustGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rtrpt_cust_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 11 + Results []RtRptResultEntityDto `json:"results,omitempty" xml:"results>rt_rpt_result_entity_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRtrptCustGetResponse.go b/model/simba/TaobaoSimbaRtrptCustGetResponse.go deleted file mode 100644 index e91db8f1a7..0000000000 --- a/model/simba/TaobaoSimbaRtrptCustGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取账户实时报表数据 API返回值 -taobao.simba.rtrpt.cust.get - -获取账户实时报表数据 -*/ -type TaobaoSimbaRtrptCustGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRtrptCustGetResponse -} - -// 获取账户实时报表数据 成功返回结果 -type TaobaoSimbaRtrptCustGetResponse struct { - XMLName xml.Name `xml:"simba_rtrpt_cust_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 11 - Results []RtRptResultEntityDto `json:"results,omitempty" xml:"results>rt_rpt_result_entity_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaRtrptTargetingtagGetAPIRequest.go b/model/simba/TaobaoSimbaRtrptTargetingtagGetAPIRequest.go new file mode 100644 index 0000000000..70f031a0f0 --- /dev/null +++ b/model/simba/TaobaoSimbaRtrptTargetingtagGetAPIRequest.go @@ -0,0 +1,108 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索人群实时报表 API请求 +taobao.simba.rtrpt.targetingtag.get + +获取搜搜人群实时报表 +*/ +type TaobaoSimbaRtrptTargetingtagGetAPIRequest struct { + model.Params + // 旺旺名称 + _nick string + // 推广计划id + _campaignId int64 + // 推广单元id + _adgroupId int64 + // 日期,格式yyyy-mm-dd + _theDate string + // 流量类型 1: PC站内, 2: PC站外 , 4: 无线站内, 5: 无线站外,支持多种一起查询,如1,2,4,5 + _trafficType string +} + +// 初始化TaobaoSimbaRtrptTargetingtagGetAPIRequest对象 +func NewTaobaoSimbaRtrptTargetingtagGetRequest() *TaobaoSimbaRtrptTargetingtagGetAPIRequest{ + return &TaobaoSimbaRtrptTargetingtagGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaRtrptTargetingtagGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.rtrpt.targetingtag.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaRtrptTargetingtagGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 旺旺名称 +func (r *TaobaoSimbaRtrptTargetingtagGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaRtrptTargetingtagGetAPIRequest) GetNick() string { + return r._nick +} +// CampaignId Setter +// 推广计划id +func (r *TaobaoSimbaRtrptTargetingtagGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaRtrptTargetingtagGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// AdgroupId Setter +// 推广单元id +func (r *TaobaoSimbaRtrptTargetingtagGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaRtrptTargetingtagGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// TheDate Setter +// 日期,格式yyyy-mm-dd +func (r *TaobaoSimbaRtrptTargetingtagGetAPIRequest) SetTheDate(_theDate string) error { + r._theDate = _theDate + r.Set("the_date", _theDate) + return nil +} + +// TheDate Getter +func (r TaobaoSimbaRtrptTargetingtagGetAPIRequest) GetTheDate() string { + return r._theDate +} +// TrafficType Setter +// 流量类型 1: PC站内, 2: PC站外 , 4: 无线站内, 5: 无线站外,支持多种一起查询,如1,2,4,5 +func (r *TaobaoSimbaRtrptTargetingtagGetAPIRequest) SetTrafficType(_trafficType string) error { + r._trafficType = _trafficType + r.Set("traffic_type", _trafficType) + return nil +} + +// TrafficType Getter +func (r TaobaoSimbaRtrptTargetingtagGetAPIRequest) GetTrafficType() string { + return r._trafficType +} diff --git a/model/simba/TaobaoSimbaRtrptTargetingtagGetAPIResponse.go b/model/simba/TaobaoSimbaRtrptTargetingtagGetAPIResponse.go new file mode 100644 index 0000000000..c365f76873 --- /dev/null +++ b/model/simba/TaobaoSimbaRtrptTargetingtagGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索人群实时报表 API返回值 +taobao.simba.rtrpt.targetingtag.get + +获取搜搜人群实时报表 +*/ +type TaobaoSimbaRtrptTargetingtagGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaRtrptTargetingtagGetAPIResponseModel +} + +// 搜索人群实时报表 成功返回结果 +type TaobaoSimbaRtrptTargetingtagGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_rtrpt_targetingtag_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 111 + Results []RtRptResultEntityDto `json:"results,omitempty" xml:"results>rt_rpt_result_entity_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaRtrptTargetingtagGetResponse.go b/model/simba/TaobaoSimbaRtrptTargetingtagGetResponse.go deleted file mode 100644 index e541db18ee..0000000000 --- a/model/simba/TaobaoSimbaRtrptTargetingtagGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -搜索人群实时报表 API返回值 -taobao.simba.rtrpt.targetingtag.get - -获取搜搜人群实时报表 -*/ -type TaobaoSimbaRtrptTargetingtagGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaRtrptTargetingtagGetResponse -} - -// 搜索人群实时报表 成功返回结果 -type TaobaoSimbaRtrptTargetingtagGetResponse struct { - XMLName xml.Name `xml:"simba_rtrpt_targetingtag_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 111 - Results []RtRptResultEntityDto `json:"results,omitempty" xml:"results>rt_rpt_result_entity_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaSalestarAdgroupAddAPIRequest.go b/model/simba/TaobaoSimbaSalestarAdgroupAddAPIRequest.go new file mode 100644 index 0000000000..1d65c09d05 --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarAdgroupAddAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)创建一个推广组 API请求 +taobao.simba.salestar.adgroup.add + +创建一个推广组 +*/ +type TaobaoSimbaSalestarAdgroupAddAPIRequest struct { + model.Params + // 推广计划Id + _campaignId int64 + // 商品Id + _itemId int64 + // 创意标题,最多20个汉字 + _title string + // 创意图片地址,必须是商品的图片之一 + _imgUrl string +} + +// 初始化TaobaoSimbaSalestarAdgroupAddAPIRequest对象 +func NewTaobaoSimbaSalestarAdgroupAddRequest() *TaobaoSimbaSalestarAdgroupAddAPIRequest{ + return &TaobaoSimbaSalestarAdgroupAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaSalestarAdgroupAddAPIRequest) GetApiMethodName() string { + return "taobao.simba.salestar.adgroup.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaSalestarAdgroupAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 推广计划Id +func (r *TaobaoSimbaSalestarAdgroupAddAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaSalestarAdgroupAddAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// ItemId Setter +// 商品Id +func (r *TaobaoSimbaSalestarAdgroupAddAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoSimbaSalestarAdgroupAddAPIRequest) GetItemId() int64 { + return r._itemId +} +// Title Setter +// 创意标题,最多20个汉字 +func (r *TaobaoSimbaSalestarAdgroupAddAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoSimbaSalestarAdgroupAddAPIRequest) GetTitle() string { + return r._title +} +// ImgUrl Setter +// 创意图片地址,必须是商品的图片之一 +func (r *TaobaoSimbaSalestarAdgroupAddAPIRequest) SetImgUrl(_imgUrl string) error { + r._imgUrl = _imgUrl + r.Set("img_url", _imgUrl) + return nil +} + +// ImgUrl Getter +func (r TaobaoSimbaSalestarAdgroupAddAPIRequest) GetImgUrl() string { + return r._imgUrl +} diff --git a/model/simba/TaobaoSimbaSalestarAdgroupAddAPIResponse.go b/model/simba/TaobaoSimbaSalestarAdgroupAddAPIResponse.go new file mode 100644 index 0000000000..6d8240638e --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarAdgroupAddAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)创建一个推广组 API返回值 +taobao.simba.salestar.adgroup.add + +创建一个推广组 +*/ +type TaobaoSimbaSalestarAdgroupAddAPIResponse struct { + model.CommonResponse + TaobaoSimbaSalestarAdgroupAddAPIResponseModel +} + +// (新)创建一个推广组 成功返回结果 +type TaobaoSimbaSalestarAdgroupAddAPIResponseModel struct { + XMLName xml.Name `xml:"simba_salestar_adgroup_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 新增加的推广组 + Adgroup *ADGroup `json:"adgroup,omitempty" xml:"adgroup,omitempty"` +} diff --git a/model/simba/TaobaoSimbaSalestarAdgroupAddResponse.go b/model/simba/TaobaoSimbaSalestarAdgroupAddResponse.go deleted file mode 100644 index 7d1a08e4b5..0000000000 --- a/model/simba/TaobaoSimbaSalestarAdgroupAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(新)创建一个推广组 API返回值 -taobao.simba.salestar.adgroup.add - -创建一个推广组 -*/ -type TaobaoSimbaSalestarAdgroupAddAPIResponse struct { - model.CommonResponse - TaobaoSimbaSalestarAdgroupAddResponse -} - -// (新)创建一个推广组 成功返回结果 -type TaobaoSimbaSalestarAdgroupAddResponse struct { - XMLName xml.Name `xml:"simba_salestar_adgroup_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 新增加的推广组 - Adgroup *ADGroup `json:"adgroup,omitempty" xml:"adgroup,omitempty"` -} diff --git a/model/simba/TaobaoSimbaSalestarAdgroupDeleteAPIRequest.go b/model/simba/TaobaoSimbaSalestarAdgroupDeleteAPIRequest.go new file mode 100644 index 0000000000..a022f50832 --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarAdgroupDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)销量明星删除推广单元接口 API请求 +taobao.simba.salestar.adgroup.delete + +删除一个推广组 +*/ +type TaobaoSimbaSalestarAdgroupDeleteAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广组Id + _adgroupId int64 +} + +// 初始化TaobaoSimbaSalestarAdgroupDeleteAPIRequest对象 +func NewTaobaoSimbaSalestarAdgroupDeleteRequest() *TaobaoSimbaSalestarAdgroupDeleteAPIRequest{ + return &TaobaoSimbaSalestarAdgroupDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaSalestarAdgroupDeleteAPIRequest) GetApiMethodName() string { + return "taobao.simba.salestar.adgroup.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaSalestarAdgroupDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaSalestarAdgroupDeleteAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaSalestarAdgroupDeleteAPIRequest) GetNick() string { + return r._nick +} +// AdgroupId Setter +// 推广组Id +func (r *TaobaoSimbaSalestarAdgroupDeleteAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaSalestarAdgroupDeleteAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/simba/TaobaoSimbaSalestarAdgroupDeleteAPIResponse.go b/model/simba/TaobaoSimbaSalestarAdgroupDeleteAPIResponse.go new file mode 100644 index 0000000000..696c4f1925 --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarAdgroupDeleteAPIResponse.go @@ -0,0 +1,29 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)销量明星删除推广单元接口 API返回值 +taobao.simba.salestar.adgroup.delete + +删除一个推广组 +*/ +type TaobaoSimbaSalestarAdgroupDeleteAPIResponse struct { + model.CommonResponse + TaobaoSimbaSalestarAdgroupDeleteAPIResponseModel +} + +// (新)销量明星删除推广单元接口 成功返回结果 +type TaobaoSimbaSalestarAdgroupDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"simba_salestar_adgroup_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 删除失败时透出的原因,仅当success为false是有效 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 表示接口调用成功,当推广单元不存在等情况下也会返回true + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/simba/TaobaoSimbaSalestarAdgroupDeleteResponse.go b/model/simba/TaobaoSimbaSalestarAdgroupDeleteResponse.go deleted file mode 100644 index 046bfbd6e8..0000000000 --- a/model/simba/TaobaoSimbaSalestarAdgroupDeleteResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(新)销量明星删除推广单元接口 API返回值 -taobao.simba.salestar.adgroup.delete - -删除一个推广组 -*/ -type TaobaoSimbaSalestarAdgroupDeleteAPIResponse struct { - model.CommonResponse - TaobaoSimbaSalestarAdgroupDeleteResponse -} - -// (新)销量明星删除推广单元接口 成功返回结果 -type TaobaoSimbaSalestarAdgroupDeleteResponse struct { - XMLName xml.Name `xml:"simba_salestar_adgroup_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 删除失败时透出的原因,仅当success为false是有效 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 表示接口调用成功,当推广单元不存在等情况下也会返回true - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/simba/TaobaoSimbaSalestarAdgroupFindbycampidAPIRequest.go b/model/simba/TaobaoSimbaSalestarAdgroupFindbycampidAPIRequest.go new file mode 100644 index 0000000000..b53bb85e05 --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarAdgroupFindbycampidAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(销量明星)批量获取推广计划下的推广组信息 API请求 +taobao.simba.salestar.adgroup.findbycampid + +批量得到推广计划下的推广组 +*/ +type TaobaoSimbaSalestarAdgroupFindbycampidAPIRequest struct { + model.Params + // 推广计划Id + _campaignId int64 + // 页尺寸,最大200,如果入参adgroup_ids有传入值,则page_size和page_no值不起作用。如果adgrpup_ids为空而campaign_id有值,此时page_size和page_no值才是返回的页数据大小和页码 + _pageSize int64 + // 页码,从1开始 + _pageNo int64 +} + +// 初始化TaobaoSimbaSalestarAdgroupFindbycampidAPIRequest对象 +func NewTaobaoSimbaSalestarAdgroupFindbycampidRequest() *TaobaoSimbaSalestarAdgroupFindbycampidAPIRequest{ + return &TaobaoSimbaSalestarAdgroupFindbycampidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaSalestarAdgroupFindbycampidAPIRequest) GetApiMethodName() string { + return "taobao.simba.salestar.adgroup.findbycampid" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaSalestarAdgroupFindbycampidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 推广计划Id +func (r *TaobaoSimbaSalestarAdgroupFindbycampidAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaSalestarAdgroupFindbycampidAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// PageSize Setter +// 页尺寸,最大200,如果入参adgroup_ids有传入值,则page_size和page_no值不起作用。如果adgrpup_ids为空而campaign_id有值,此时page_size和page_no值才是返回的页数据大小和页码 +func (r *TaobaoSimbaSalestarAdgroupFindbycampidAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSimbaSalestarAdgroupFindbycampidAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 页码,从1开始 +func (r *TaobaoSimbaSalestarAdgroupFindbycampidAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoSimbaSalestarAdgroupFindbycampidAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/simba/TaobaoSimbaSalestarAdgroupFindbycampidAPIResponse.go b/model/simba/TaobaoSimbaSalestarAdgroupFindbycampidAPIResponse.go new file mode 100644 index 0000000000..ba24179be3 --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarAdgroupFindbycampidAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(销量明星)批量获取推广计划下的推广组信息 API返回值 +taobao.simba.salestar.adgroup.findbycampid + +批量得到推广计划下的推广组 +*/ +type TaobaoSimbaSalestarAdgroupFindbycampidAPIResponse struct { + model.CommonResponse + TaobaoSimbaSalestarAdgroupFindbycampidAPIResponseModel +} + +// (销量明星)批量获取推广计划下的推广组信息 成功返回结果 +type TaobaoSimbaSalestarAdgroupFindbycampidAPIResponseModel struct { + XMLName xml.Name `xml:"simba_salestar_adgroup_findbycampid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的推广组分页对象 + Adgroups *ADGroupPage `json:"adgroups,omitempty" xml:"adgroups,omitempty"` +} diff --git a/model/simba/TaobaoSimbaSalestarAdgroupFindbycampidResponse.go b/model/simba/TaobaoSimbaSalestarAdgroupFindbycampidResponse.go deleted file mode 100644 index 80d5a1ca46..0000000000 --- a/model/simba/TaobaoSimbaSalestarAdgroupFindbycampidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(销量明星)批量获取推广计划下的推广组信息 API返回值 -taobao.simba.salestar.adgroup.findbycampid - -批量得到推广计划下的推广组 -*/ -type TaobaoSimbaSalestarAdgroupFindbycampidAPIResponse struct { - model.CommonResponse - TaobaoSimbaSalestarAdgroupFindbycampidResponse -} - -// (销量明星)批量获取推广计划下的推广组信息 成功返回结果 -type TaobaoSimbaSalestarAdgroupFindbycampidResponse struct { - XMLName xml.Name `xml:"simba_salestar_adgroup_findbycampid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的推广组分页对象 - Adgroups *ADGroupPage `json:"adgroups,omitempty" xml:"adgroups,omitempty"` -} diff --git a/model/simba/TaobaoSimbaSalestarAdgroupUpdateAPIRequest.go b/model/simba/TaobaoSimbaSalestarAdgroupUpdateAPIRequest.go new file mode 100644 index 0000000000..620e306b5d --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarAdgroupUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销量明星更新一个推广组的信息 API请求 +taobao.simba.salestar.adgroup.update + +更新一个推广组的信息,可以设置 是否上线 +*/ +type TaobaoSimbaSalestarAdgroupUpdateAPIRequest struct { + model.Params + // 用户设置的上下线状态 offline-下线(暂停竞价); online-上线;默认为online + _onlineStatus string + // 推广组Id + _adgroupId int64 +} + +// 初始化TaobaoSimbaSalestarAdgroupUpdateAPIRequest对象 +func NewTaobaoSimbaSalestarAdgroupUpdateRequest() *TaobaoSimbaSalestarAdgroupUpdateAPIRequest{ + return &TaobaoSimbaSalestarAdgroupUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaSalestarAdgroupUpdateAPIRequest) GetApiMethodName() string { + return "taobao.simba.salestar.adgroup.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaSalestarAdgroupUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OnlineStatus Setter +// 用户设置的上下线状态 offline-下线(暂停竞价); online-上线;默认为online +func (r *TaobaoSimbaSalestarAdgroupUpdateAPIRequest) SetOnlineStatus(_onlineStatus string) error { + r._onlineStatus = _onlineStatus + r.Set("online_status", _onlineStatus) + return nil +} + +// OnlineStatus Getter +func (r TaobaoSimbaSalestarAdgroupUpdateAPIRequest) GetOnlineStatus() string { + return r._onlineStatus +} +// AdgroupId Setter +// 推广组Id +func (r *TaobaoSimbaSalestarAdgroupUpdateAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaSalestarAdgroupUpdateAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/simba/TaobaoSimbaSalestarAdgroupUpdateAPIResponse.go b/model/simba/TaobaoSimbaSalestarAdgroupUpdateAPIResponse.go new file mode 100644 index 0000000000..331e09ae0f --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarAdgroupUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销量明星更新一个推广组的信息 API返回值 +taobao.simba.salestar.adgroup.update + +更新一个推广组的信息,可以设置 是否上线 +*/ +type TaobaoSimbaSalestarAdgroupUpdateAPIResponse struct { + model.CommonResponse + TaobaoSimbaSalestarAdgroupUpdateAPIResponseModel +} + +// 销量明星更新一个推广组的信息 成功返回结果 +type TaobaoSimbaSalestarAdgroupUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"simba_salestar_adgroup_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 被修改的推广组 + Adgroup *ADGroup `json:"adgroup,omitempty" xml:"adgroup,omitempty"` +} diff --git a/model/simba/TaobaoSimbaSalestarAdgroupUpdateResponse.go b/model/simba/TaobaoSimbaSalestarAdgroupUpdateResponse.go deleted file mode 100644 index 83971fa08b..0000000000 --- a/model/simba/TaobaoSimbaSalestarAdgroupUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销量明星更新一个推广组的信息 API返回值 -taobao.simba.salestar.adgroup.update - -更新一个推广组的信息,可以设置 是否上线 -*/ -type TaobaoSimbaSalestarAdgroupUpdateAPIResponse struct { - model.CommonResponse - TaobaoSimbaSalestarAdgroupUpdateResponse -} - -// 销量明星更新一个推广组的信息 成功返回结果 -type TaobaoSimbaSalestarAdgroupUpdateResponse struct { - XMLName xml.Name `xml:"simba_salestar_adgroup_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 被修改的推广组 - Adgroup *ADGroup `json:"adgroup,omitempty" xml:"adgroup,omitempty"` -} diff --git a/model/simba/TaobaoSimbaSalestarCampaignBudgetUpdateAPIRequest.go b/model/simba/TaobaoSimbaSalestarCampaignBudgetUpdateAPIRequest.go new file mode 100644 index 0000000000..85b77f88ce --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarCampaignBudgetUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销量明星跟新预算相关接口 API请求 +taobao.simba.salestar.campaign.budget.update + +更新一个推广计划的日限额 +*/ +type TaobaoSimbaSalestarCampaignBudgetUpdateAPIRequest struct { + model.Params + // 推广计划Id + _campaignId int64 + // 如果为空则取消限额;否则必须为整数,单位是元,不得小于30; + _budget int64 +} + +// 初始化TaobaoSimbaSalestarCampaignBudgetUpdateAPIRequest对象 +func NewTaobaoSimbaSalestarCampaignBudgetUpdateRequest() *TaobaoSimbaSalestarCampaignBudgetUpdateAPIRequest{ + return &TaobaoSimbaSalestarCampaignBudgetUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaSalestarCampaignBudgetUpdateAPIRequest) GetApiMethodName() string { + return "taobao.simba.salestar.campaign.budget.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaSalestarCampaignBudgetUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignId Setter +// 推广计划Id +func (r *TaobaoSimbaSalestarCampaignBudgetUpdateAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSimbaSalestarCampaignBudgetUpdateAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// Budget Setter +// 如果为空则取消限额;否则必须为整数,单位是元,不得小于30; +func (r *TaobaoSimbaSalestarCampaignBudgetUpdateAPIRequest) SetBudget(_budget int64) error { + r._budget = _budget + r.Set("budget", _budget) + return nil +} + +// Budget Getter +func (r TaobaoSimbaSalestarCampaignBudgetUpdateAPIRequest) GetBudget() int64 { + return r._budget +} diff --git a/model/simba/TaobaoSimbaSalestarCampaignBudgetUpdateAPIResponse.go b/model/simba/TaobaoSimbaSalestarCampaignBudgetUpdateAPIResponse.go new file mode 100644 index 0000000000..aebcd6d618 --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarCampaignBudgetUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销量明星跟新预算相关接口 API返回值 +taobao.simba.salestar.campaign.budget.update + +更新一个推广计划的日限额 +*/ +type TaobaoSimbaSalestarCampaignBudgetUpdateAPIResponse struct { + model.CommonResponse + TaobaoSimbaSalestarCampaignBudgetUpdateAPIResponseModel +} + +// 销量明星跟新预算相关接口 成功返回结果 +type TaobaoSimbaSalestarCampaignBudgetUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"simba_salestar_campaign_budget_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改后的推广计划日限额 + CampaignBudget *CampaignBudget `json:"campaign_budget,omitempty" xml:"campaign_budget,omitempty"` +} diff --git a/model/simba/TaobaoSimbaSalestarCampaignBudgetUpdateResponse.go b/model/simba/TaobaoSimbaSalestarCampaignBudgetUpdateResponse.go deleted file mode 100644 index d3ae0708eb..0000000000 --- a/model/simba/TaobaoSimbaSalestarCampaignBudgetUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销量明星跟新预算相关接口 API返回值 -taobao.simba.salestar.campaign.budget.update - -更新一个推广计划的日限额 -*/ -type TaobaoSimbaSalestarCampaignBudgetUpdateAPIResponse struct { - model.CommonResponse - TaobaoSimbaSalestarCampaignBudgetUpdateResponse -} - -// 销量明星跟新预算相关接口 成功返回结果 -type TaobaoSimbaSalestarCampaignBudgetUpdateResponse struct { - XMLName xml.Name `xml:"simba_salestar_campaign_budget_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改后的推广计划日限额 - CampaignBudget *CampaignBudget `json:"campaign_budget,omitempty" xml:"campaign_budget,omitempty"` -} diff --git a/model/simba/TaobaoSimbaSalestarCreativeAddAPIRequest.go b/model/simba/TaobaoSimbaSalestarCreativeAddAPIRequest.go new file mode 100644 index 0000000000..23173b1a6f --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarCreativeAddAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)新建创意 API请求 +taobao.simba.salestar.creative.add + +创建一个创意 +*/ +type TaobaoSimbaSalestarCreativeAddAPIRequest struct { + model.Params + // 推广组Id + _adgroupId int64 + // 创意标题,最多20个汉字 + _title string + // 创意图片地址,必须是推广组对应商品的图片之一 + _imgUrl string + // 主人昵称 + _nick string +} + +// 初始化TaobaoSimbaSalestarCreativeAddAPIRequest对象 +func NewTaobaoSimbaSalestarCreativeAddRequest() *TaobaoSimbaSalestarCreativeAddAPIRequest{ + return &TaobaoSimbaSalestarCreativeAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaSalestarCreativeAddAPIRequest) GetApiMethodName() string { + return "taobao.simba.salestar.creative.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaSalestarCreativeAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AdgroupId Setter +// 推广组Id +func (r *TaobaoSimbaSalestarCreativeAddAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaSalestarCreativeAddAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// Title Setter +// 创意标题,最多20个汉字 +func (r *TaobaoSimbaSalestarCreativeAddAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoSimbaSalestarCreativeAddAPIRequest) GetTitle() string { + return r._title +} +// ImgUrl Setter +// 创意图片地址,必须是推广组对应商品的图片之一 +func (r *TaobaoSimbaSalestarCreativeAddAPIRequest) SetImgUrl(_imgUrl string) error { + r._imgUrl = _imgUrl + r.Set("img_url", _imgUrl) + return nil +} + +// ImgUrl Getter +func (r TaobaoSimbaSalestarCreativeAddAPIRequest) GetImgUrl() string { + return r._imgUrl +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaSalestarCreativeAddAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaSalestarCreativeAddAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/simba/TaobaoSimbaSalestarCreativeAddAPIResponse.go b/model/simba/TaobaoSimbaSalestarCreativeAddAPIResponse.go new file mode 100644 index 0000000000..dfece9fbb8 --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarCreativeAddAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)新建创意 API返回值 +taobao.simba.salestar.creative.add + +创建一个创意 +*/ +type TaobaoSimbaSalestarCreativeAddAPIResponse struct { + model.CommonResponse + TaobaoSimbaSalestarCreativeAddAPIResponseModel +} + +// (新)新建创意 成功返回结果 +type TaobaoSimbaSalestarCreativeAddAPIResponseModel struct { + XMLName xml.Name `xml:"simba_salestar_creative_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 新增加的创意对象 + Creative *Creative `json:"creative,omitempty" xml:"creative,omitempty"` +} diff --git a/model/simba/TaobaoSimbaSalestarCreativeAddResponse.go b/model/simba/TaobaoSimbaSalestarCreativeAddResponse.go deleted file mode 100644 index 396b101654..0000000000 --- a/model/simba/TaobaoSimbaSalestarCreativeAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(新)新建创意 API返回值 -taobao.simba.salestar.creative.add - -创建一个创意 -*/ -type TaobaoSimbaSalestarCreativeAddAPIResponse struct { - model.CommonResponse - TaobaoSimbaSalestarCreativeAddResponse -} - -// (新)新建创意 成功返回结果 -type TaobaoSimbaSalestarCreativeAddResponse struct { - XMLName xml.Name `xml:"simba_salestar_creative_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 新增加的创意对象 - Creative *Creative `json:"creative,omitempty" xml:"creative,omitempty"` -} diff --git a/model/simba/TaobaoSimbaSalestarCreativeDeleteAPIRequest.go b/model/simba/TaobaoSimbaSalestarCreativeDeleteAPIRequest.go new file mode 100644 index 0000000000..b5e668c2b0 --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarCreativeDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)销量明星删除创意相关接口 API请求 +taobao.simba.salestar.creative.delete + +删除一个创意 +*/ +type TaobaoSimbaSalestarCreativeDeleteAPIRequest struct { + model.Params + // 创意Id + _creativeId int64 +} + +// 初始化TaobaoSimbaSalestarCreativeDeleteAPIRequest对象 +func NewTaobaoSimbaSalestarCreativeDeleteRequest() *TaobaoSimbaSalestarCreativeDeleteAPIRequest{ + return &TaobaoSimbaSalestarCreativeDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaSalestarCreativeDeleteAPIRequest) GetApiMethodName() string { + return "taobao.simba.salestar.creative.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaSalestarCreativeDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CreativeId Setter +// 创意Id +func (r *TaobaoSimbaSalestarCreativeDeleteAPIRequest) SetCreativeId(_creativeId int64) error { + r._creativeId = _creativeId + r.Set("creative_id", _creativeId) + return nil +} + +// CreativeId Getter +func (r TaobaoSimbaSalestarCreativeDeleteAPIRequest) GetCreativeId() int64 { + return r._creativeId +} diff --git a/model/simba/TaobaoSimbaSalestarCreativeDeleteAPIResponse.go b/model/simba/TaobaoSimbaSalestarCreativeDeleteAPIResponse.go new file mode 100644 index 0000000000..a561d3af7e --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarCreativeDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)销量明星删除创意相关接口 API返回值 +taobao.simba.salestar.creative.delete + +删除一个创意 +*/ +type TaobaoSimbaSalestarCreativeDeleteAPIResponse struct { + model.CommonResponse + TaobaoSimbaSalestarCreativeDeleteAPIResponseModel +} + +// (新)销量明星删除创意相关接口 成功返回结果 +type TaobaoSimbaSalestarCreativeDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"simba_salestar_creative_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 被删除的创意对象 + Creative *Creative `json:"creative,omitempty" xml:"creative,omitempty"` +} diff --git a/model/simba/TaobaoSimbaSalestarCreativeDeleteResponse.go b/model/simba/TaobaoSimbaSalestarCreativeDeleteResponse.go deleted file mode 100644 index 51fc1f9bf3..0000000000 --- a/model/simba/TaobaoSimbaSalestarCreativeDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(新)销量明星删除创意相关接口 API返回值 -taobao.simba.salestar.creative.delete - -删除一个创意 -*/ -type TaobaoSimbaSalestarCreativeDeleteAPIResponse struct { - model.CommonResponse - TaobaoSimbaSalestarCreativeDeleteResponse -} - -// (新)销量明星删除创意相关接口 成功返回结果 -type TaobaoSimbaSalestarCreativeDeleteResponse struct { - XMLName xml.Name `xml:"simba_salestar_creative_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 被删除的创意对象 - Creative *Creative `json:"creative,omitempty" xml:"creative,omitempty"` -} diff --git a/model/simba/TaobaoSimbaSalestarCreativeUpdateAPIRequest.go b/model/simba/TaobaoSimbaSalestarCreativeUpdateAPIRequest.go new file mode 100644 index 0000000000..f6935a7fe5 --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarCreativeUpdateAPIRequest.go @@ -0,0 +1,108 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销量明星更新创意相关接口 API请求 +taobao.simba.salestar.creative.update + +更新一个创意的信息,可以设置创意标题、创意图片 +*/ +type TaobaoSimbaSalestarCreativeUpdateAPIRequest struct { + model.Params + // 推广组Id + _adgroupId int64 + // 创意Id + _creativeId int64 + // 创意标题,最多20个汉字 + _title string + // 创意图片地址,必须是推广组对应商品的图片之一 + _imgUrl string + // 如果用户开通了创意本地上传图片功能的,可以使用该用户图片空间的图片来修改创意,pictureId为图片空间中图片的pictureId,img_url为图片空间中图片链接地址,如果是使用的主图或副图修改创意,则pictureId必须为空 + _pictureId int64 +} + +// 初始化TaobaoSimbaSalestarCreativeUpdateAPIRequest对象 +func NewTaobaoSimbaSalestarCreativeUpdateRequest() *TaobaoSimbaSalestarCreativeUpdateAPIRequest{ + return &TaobaoSimbaSalestarCreativeUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaSalestarCreativeUpdateAPIRequest) GetApiMethodName() string { + return "taobao.simba.salestar.creative.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaSalestarCreativeUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AdgroupId Setter +// 推广组Id +func (r *TaobaoSimbaSalestarCreativeUpdateAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaSalestarCreativeUpdateAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// CreativeId Setter +// 创意Id +func (r *TaobaoSimbaSalestarCreativeUpdateAPIRequest) SetCreativeId(_creativeId int64) error { + r._creativeId = _creativeId + r.Set("creative_id", _creativeId) + return nil +} + +// CreativeId Getter +func (r TaobaoSimbaSalestarCreativeUpdateAPIRequest) GetCreativeId() int64 { + return r._creativeId +} +// Title Setter +// 创意标题,最多20个汉字 +func (r *TaobaoSimbaSalestarCreativeUpdateAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoSimbaSalestarCreativeUpdateAPIRequest) GetTitle() string { + return r._title +} +// ImgUrl Setter +// 创意图片地址,必须是推广组对应商品的图片之一 +func (r *TaobaoSimbaSalestarCreativeUpdateAPIRequest) SetImgUrl(_imgUrl string) error { + r._imgUrl = _imgUrl + r.Set("img_url", _imgUrl) + return nil +} + +// ImgUrl Getter +func (r TaobaoSimbaSalestarCreativeUpdateAPIRequest) GetImgUrl() string { + return r._imgUrl +} +// PictureId Setter +// 如果用户开通了创意本地上传图片功能的,可以使用该用户图片空间的图片来修改创意,pictureId为图片空间中图片的pictureId,img_url为图片空间中图片链接地址,如果是使用的主图或副图修改创意,则pictureId必须为空 +func (r *TaobaoSimbaSalestarCreativeUpdateAPIRequest) SetPictureId(_pictureId int64) error { + r._pictureId = _pictureId + r.Set("picture_id", _pictureId) + return nil +} + +// PictureId Getter +func (r TaobaoSimbaSalestarCreativeUpdateAPIRequest) GetPictureId() int64 { + return r._pictureId +} diff --git a/model/simba/TaobaoSimbaSalestarCreativeUpdateAPIResponse.go b/model/simba/TaobaoSimbaSalestarCreativeUpdateAPIResponse.go new file mode 100644 index 0000000000..5e39f24e8a --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarCreativeUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销量明星更新创意相关接口 API返回值 +taobao.simba.salestar.creative.update + +更新一个创意的信息,可以设置创意标题、创意图片 +*/ +type TaobaoSimbaSalestarCreativeUpdateAPIResponse struct { + model.CommonResponse + TaobaoSimbaSalestarCreativeUpdateAPIResponseModel +} + +// 销量明星更新创意相关接口 成功返回结果 +type TaobaoSimbaSalestarCreativeUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"simba_salestar_creative_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创意修改记录对象 + Creativerecord *CreativeRecord `json:"creativerecord,omitempty" xml:"creativerecord,omitempty"` +} diff --git a/model/simba/TaobaoSimbaSalestarCreativeUpdateResponse.go b/model/simba/TaobaoSimbaSalestarCreativeUpdateResponse.go deleted file mode 100644 index de5878a387..0000000000 --- a/model/simba/TaobaoSimbaSalestarCreativeUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销量明星更新创意相关接口 API返回值 -taobao.simba.salestar.creative.update - -更新一个创意的信息,可以设置创意标题、创意图片 -*/ -type TaobaoSimbaSalestarCreativeUpdateAPIResponse struct { - model.CommonResponse - TaobaoSimbaSalestarCreativeUpdateResponse -} - -// 销量明星更新创意相关接口 成功返回结果 -type TaobaoSimbaSalestarCreativeUpdateResponse struct { - XMLName xml.Name `xml:"simba_salestar_creative_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创意修改记录对象 - Creativerecord *CreativeRecord `json:"creativerecord,omitempty" xml:"creativerecord,omitempty"` -} diff --git a/model/simba/TaobaoSimbaSalestarCreativesGetAPIRequest.go b/model/simba/TaobaoSimbaSalestarCreativesGetAPIRequest.go new file mode 100644 index 0000000000..81405e5ba4 --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarCreativesGetAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)批量获取创意 API请求 +taobao.simba.salestar.creatives.get + +取得一个推广组的所有创意或者根据一个创意Id列表取得一组创意;
如果同时提供了推广组Id和创意id列表,则优先使用推广组Id; +*/ +type TaobaoSimbaSalestarCreativesGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 创意Id数组,最多200个 + _creativeIds []int64 + // 推广组Id + _adgroupId int64 +} + +// 初始化TaobaoSimbaSalestarCreativesGetAPIRequest对象 +func NewTaobaoSimbaSalestarCreativesGetRequest() *TaobaoSimbaSalestarCreativesGetAPIRequest{ + return &TaobaoSimbaSalestarCreativesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaSalestarCreativesGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.salestar.creatives.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaSalestarCreativesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaSalestarCreativesGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaSalestarCreativesGetAPIRequest) GetNick() string { + return r._nick +} +// CreativeIds Setter +// 创意Id数组,最多200个 +func (r *TaobaoSimbaSalestarCreativesGetAPIRequest) SetCreativeIds(_creativeIds []int64) error { + r._creativeIds = _creativeIds + r.Set("creative_ids", _creativeIds) + return nil +} + +// CreativeIds Getter +func (r TaobaoSimbaSalestarCreativesGetAPIRequest) GetCreativeIds() []int64 { + return r._creativeIds +} +// AdgroupId Setter +// 推广组Id +func (r *TaobaoSimbaSalestarCreativesGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaSalestarCreativesGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/simba/TaobaoSimbaSalestarCreativesGetAPIResponse.go b/model/simba/TaobaoSimbaSalestarCreativesGetAPIResponse.go new file mode 100644 index 0000000000..1a46fee04d --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarCreativesGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)批量获取创意 API返回值 +taobao.simba.salestar.creatives.get + +取得一个推广组的所有创意或者根据一个创意Id列表取得一组创意;
如果同时提供了推广组Id和创意id列表,则优先使用推广组Id; +*/ +type TaobaoSimbaSalestarCreativesGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaSalestarCreativesGetAPIResponseModel +} + +// (新)批量获取创意 成功返回结果 +type TaobaoSimbaSalestarCreativesGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_salestar_creatives_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创意对象列表 + Creatives []Creative `json:"creatives,omitempty" xml:"creatives>creative,omitempty"` +} diff --git a/model/simba/TaobaoSimbaSalestarCreativesGetResponse.go b/model/simba/TaobaoSimbaSalestarCreativesGetResponse.go deleted file mode 100644 index 97dc8e3169..0000000000 --- a/model/simba/TaobaoSimbaSalestarCreativesGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(新)批量获取创意 API返回值 -taobao.simba.salestar.creatives.get - -取得一个推广组的所有创意或者根据一个创意Id列表取得一组创意;
如果同时提供了推广组Id和创意id列表,则优先使用推广组Id; -*/ -type TaobaoSimbaSalestarCreativesGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaSalestarCreativesGetResponse -} - -// (新)批量获取创意 成功返回结果 -type TaobaoSimbaSalestarCreativesGetResponse struct { - XMLName xml.Name `xml:"simba_salestar_creatives_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创意对象列表 - Creatives []Creative `json:"creatives,omitempty" xml:"creatives>creative,omitempty"` -} diff --git a/model/simba/TaobaoSimbaSalestarKeywordsDeleteAPIRequest.go b/model/simba/TaobaoSimbaSalestarKeywordsDeleteAPIRequest.go new file mode 100644 index 0000000000..dfc68ac9b1 --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarKeywordsDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销量明星关键词删除 API请求 +taobao.simba.salestar.keywords.delete + +(新)关键词删除相关接口 +*/ +type TaobaoSimbaSalestarKeywordsDeleteAPIRequest struct { + model.Params + // 关键词ids + _bidwordIds []int64 +} + +// 初始化TaobaoSimbaSalestarKeywordsDeleteAPIRequest对象 +func NewTaobaoSimbaSalestarKeywordsDeleteRequest() *TaobaoSimbaSalestarKeywordsDeleteAPIRequest{ + return &TaobaoSimbaSalestarKeywordsDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaSalestarKeywordsDeleteAPIRequest) GetApiMethodName() string { + return "taobao.simba.salestar.keywords.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaSalestarKeywordsDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BidwordIds Setter +// 关键词ids +func (r *TaobaoSimbaSalestarKeywordsDeleteAPIRequest) SetBidwordIds(_bidwordIds []int64) error { + r._bidwordIds = _bidwordIds + r.Set("bidword_ids", _bidwordIds) + return nil +} + +// BidwordIds Getter +func (r TaobaoSimbaSalestarKeywordsDeleteAPIRequest) GetBidwordIds() []int64 { + return r._bidwordIds +} diff --git a/model/simba/TaobaoSimbaSalestarKeywordsDeleteAPIResponse.go b/model/simba/TaobaoSimbaSalestarKeywordsDeleteAPIResponse.go new file mode 100644 index 0000000000..1f235f2fd4 --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarKeywordsDeleteAPIResponse.go @@ -0,0 +1,29 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销量明星关键词删除 API返回值 +taobao.simba.salestar.keywords.delete + +(新)关键词删除相关接口 +*/ +type TaobaoSimbaSalestarKeywordsDeleteAPIResponse struct { + model.CommonResponse + TaobaoSimbaSalestarKeywordsDeleteAPIResponseModel +} + +// 销量明星关键词删除 成功返回结果 +type TaobaoSimbaSalestarKeywordsDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"simba_salestar_keywords_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 删除成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 成功删除条数 + Results int64 `json:"results,omitempty" xml:"results,omitempty"` +} diff --git a/model/simba/TaobaoSimbaSalestarKeywordsDeleteResponse.go b/model/simba/TaobaoSimbaSalestarKeywordsDeleteResponse.go deleted file mode 100644 index 61f95b3a93..0000000000 --- a/model/simba/TaobaoSimbaSalestarKeywordsDeleteResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销量明星关键词删除 API返回值 -taobao.simba.salestar.keywords.delete - -(新)关键词删除相关接口 -*/ -type TaobaoSimbaSalestarKeywordsDeleteAPIResponse struct { - model.CommonResponse - TaobaoSimbaSalestarKeywordsDeleteResponse -} - -// 销量明星关键词删除 成功返回结果 -type TaobaoSimbaSalestarKeywordsDeleteResponse struct { - XMLName xml.Name `xml:"simba_salestar_keywords_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 删除成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 成功删除条数 - Results int64 `json:"results,omitempty" xml:"results,omitempty"` -} diff --git a/model/simba/TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIRequest.go b/model/simba/TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIRequest.go new file mode 100644 index 0000000000..5da096e821 --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)销量明星质量分相关接口 API请求 +taobao.simba.salestar.keywords.qscore.split.get + +获取关键词新的质量分 +*/ +type TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIRequest struct { + model.Params + // 账号昵称 + _nick string + // 推广组id + _adGroupId int64 + // 词id数组(最多批量获取20个) + _bidwordIds []int64 +} + +// 初始化TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIRequest对象 +func NewTaobaoSimbaSalestarKeywordsQscoreSplitGetRequest() *TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIRequest{ + return &TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.salestar.keywords.qscore.split.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 账号昵称 +func (r *TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIRequest) GetNick() string { + return r._nick +} +// AdGroupId Setter +// 推广组id +func (r *TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIRequest) SetAdGroupId(_adGroupId int64) error { + r._adGroupId = _adGroupId + r.Set("ad_group_id", _adGroupId) + return nil +} + +// AdGroupId Getter +func (r TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIRequest) GetAdGroupId() int64 { + return r._adGroupId +} +// BidwordIds Setter +// 词id数组(最多批量获取20个) +func (r *TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIRequest) SetBidwordIds(_bidwordIds []int64) error { + r._bidwordIds = _bidwordIds + r.Set("bidword_ids", _bidwordIds) + return nil +} + +// BidwordIds Getter +func (r TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIRequest) GetBidwordIds() []int64 { + return r._bidwordIds +} diff --git a/model/simba/TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIResponse.go b/model/simba/TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIResponse.go new file mode 100644 index 0000000000..6d40dfc2c8 --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(新)销量明星质量分相关接口 API返回值 +taobao.simba.salestar.keywords.qscore.split.get + +获取关键词新的质量分 +*/ +type TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIResponseModel +} + +// (新)销量明星质量分相关接口 成功返回结果 +type TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_salestar_keywords_qscore_split_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoSimbaSalestarKeywordsQscoreSplitGetResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/simba/TaobaoSimbaSalestarKeywordsQscoreSplitGetResponse.go b/model/simba/TaobaoSimbaSalestarKeywordsQscoreSplitGetResponse.go deleted file mode 100644 index 45bd6f22cd..0000000000 --- a/model/simba/TaobaoSimbaSalestarKeywordsQscoreSplitGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(新)销量明星质量分相关接口 API返回值 -taobao.simba.salestar.keywords.qscore.split.get - -获取关键词新的质量分 -*/ -type TaobaoSimbaSalestarKeywordsQscoreSplitGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaSalestarKeywordsQscoreSplitGetResponse -} - -// (新)销量明星质量分相关接口 成功返回结果 -type TaobaoSimbaSalestarKeywordsQscoreSplitGetResponse struct { - XMLName xml.Name `xml:"simba_salestar_keywords_qscore_split_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoSimbaSalestarKeywordsQscoreSplitGetResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/simba/TaobaoSimbaSalestarKeywordsQscoreSplitGetResultDto.go b/model/simba/TaobaoSimbaSalestarKeywordsQscoreSplitGetResultDto.go new file mode 100644 index 0000000000..153bc89d7e --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarKeywordsQscoreSplitGetResultDto.go @@ -0,0 +1,11 @@ +package simba + +// TaobaoSimbaSalestarKeywordsQscoreSplitGetResultDto +type TaobaoSimbaSalestarKeywordsQscoreSplitGetResultDto struct { + // 返回新质量分实体信息 + Result *QScoreSplitDto `json:"result,omitempty" xml:"result,omitempty"` + // 返回成功/错误码 + Key string `json:"key,omitempty" xml:"key,omitempty"` + // 返回信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/simba/TaobaoSimbaSalestarKeywordsRecommendGetAPIRequest.go b/model/simba/TaobaoSimbaSalestarKeywordsRecommendGetAPIRequest.go new file mode 100644 index 0000000000..f2c807c2fc --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarKeywordsRecommendGetAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销量明星api相关接口 API请求 +taobao.simba.salestar.keywords.recommend.get + +取得一个推广组的推荐关键词列表 +*/ +type TaobaoSimbaSalestarKeywordsRecommendGetAPIRequest struct { + model.Params + // 推广组ID + _adgroupId int64 + // 产品类型101001005代表标准推广,101001014代表销量明星 + _productId int64 +} + +// 初始化TaobaoSimbaSalestarKeywordsRecommendGetAPIRequest对象 +func NewTaobaoSimbaSalestarKeywordsRecommendGetRequest() *TaobaoSimbaSalestarKeywordsRecommendGetAPIRequest{ + return &TaobaoSimbaSalestarKeywordsRecommendGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaSalestarKeywordsRecommendGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.salestar.keywords.recommend.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaSalestarKeywordsRecommendGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AdgroupId Setter +// 推广组ID +func (r *TaobaoSimbaSalestarKeywordsRecommendGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaSalestarKeywordsRecommendGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// ProductId Setter +// 产品类型101001005代表标准推广,101001014代表销量明星 +func (r *TaobaoSimbaSalestarKeywordsRecommendGetAPIRequest) SetProductId(_productId int64) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r TaobaoSimbaSalestarKeywordsRecommendGetAPIRequest) GetProductId() int64 { + return r._productId +} diff --git a/model/simba/TaobaoSimbaSalestarKeywordsRecommendGetAPIResponse.go b/model/simba/TaobaoSimbaSalestarKeywordsRecommendGetAPIResponse.go new file mode 100644 index 0000000000..099de7c414 --- /dev/null +++ b/model/simba/TaobaoSimbaSalestarKeywordsRecommendGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销量明星api相关接口 API返回值 +taobao.simba.salestar.keywords.recommend.get + +取得一个推广组的推荐关键词列表 +*/ +type TaobaoSimbaSalestarKeywordsRecommendGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaSalestarKeywordsRecommendGetAPIResponseModel +} + +// 销量明星api相关接口 成功返回结果 +type TaobaoSimbaSalestarKeywordsRecommendGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_salestar_keywords_recommend_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推荐词分页对象,当输入的页码大于最大数值时,将返回最大的page_no值,并且结果中的数据列表为空值 + RecommendWords *RecommendWordPage `json:"recommend_words,omitempty" xml:"recommend_words,omitempty"` +} diff --git a/model/simba/TaobaoSimbaSalestarKeywordsRecommendGetResponse.go b/model/simba/TaobaoSimbaSalestarKeywordsRecommendGetResponse.go deleted file mode 100644 index 5361a96c39..0000000000 --- a/model/simba/TaobaoSimbaSalestarKeywordsRecommendGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销量明星api相关接口 API返回值 -taobao.simba.salestar.keywords.recommend.get - -取得一个推广组的推荐关键词列表 -*/ -type TaobaoSimbaSalestarKeywordsRecommendGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaSalestarKeywordsRecommendGetResponse -} - -// 销量明星api相关接口 成功返回结果 -type TaobaoSimbaSalestarKeywordsRecommendGetResponse struct { - XMLName xml.Name `xml:"simba_salestar_keywords_recommend_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推荐词分页对象,当输入的页码大于最大数值时,将返回最大的page_no值,并且结果中的数据列表为空值 - RecommendWords *RecommendWordPage `json:"recommend_words,omitempty" xml:"recommend_words,omitempty"` -} diff --git a/model/simba/TaobaoSimbaSearchcrowdBatchAddAPIRequest.go b/model/simba/TaobaoSimbaSearchcrowdBatchAddAPIRequest.go new file mode 100644 index 0000000000..6208fb2074 --- /dev/null +++ b/model/simba/TaobaoSimbaSearchcrowdBatchAddAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推广单元增加搜索人群 API请求 +taobao.simba.searchcrowd.batch.add + +推广单元新增搜索人群 +*/ +type TaobaoSimbaSearchcrowdBatchAddAPIRequest struct { + model.Params + // 被操作者的淘宝昵称 + _nick string + // 推广单元id + _adgroupId int64 + // 新增人群信息,批量接口,入参为list,溢价(discount)范围为[105,400] + _adgroupTargetingTags string +} + +// 初始化TaobaoSimbaSearchcrowdBatchAddAPIRequest对象 +func NewTaobaoSimbaSearchcrowdBatchAddRequest() *TaobaoSimbaSearchcrowdBatchAddAPIRequest{ + return &TaobaoSimbaSearchcrowdBatchAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaSearchcrowdBatchAddAPIRequest) GetApiMethodName() string { + return "taobao.simba.searchcrowd.batch.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaSearchcrowdBatchAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 被操作者的淘宝昵称 +func (r *TaobaoSimbaSearchcrowdBatchAddAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaSearchcrowdBatchAddAPIRequest) GetNick() string { + return r._nick +} +// AdgroupId Setter +// 推广单元id +func (r *TaobaoSimbaSearchcrowdBatchAddAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaSearchcrowdBatchAddAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// AdgroupTargetingTags Setter +// 新增人群信息,批量接口,入参为list,溢价(discount)范围为[105,400] +func (r *TaobaoSimbaSearchcrowdBatchAddAPIRequest) SetAdgroupTargetingTags(_adgroupTargetingTags string) error { + r._adgroupTargetingTags = _adgroupTargetingTags + r.Set("adgroup_targeting_tags", _adgroupTargetingTags) + return nil +} + +// AdgroupTargetingTags Getter +func (r TaobaoSimbaSearchcrowdBatchAddAPIRequest) GetAdgroupTargetingTags() string { + return r._adgroupTargetingTags +} diff --git a/model/simba/TaobaoSimbaSearchcrowdBatchAddAPIResponse.go b/model/simba/TaobaoSimbaSearchcrowdBatchAddAPIResponse.go new file mode 100644 index 0000000000..209809beb9 --- /dev/null +++ b/model/simba/TaobaoSimbaSearchcrowdBatchAddAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推广单元增加搜索人群 API返回值 +taobao.simba.searchcrowd.batch.add + +推广单元新增搜索人群 +*/ +type TaobaoSimbaSearchcrowdBatchAddAPIResponse struct { + model.CommonResponse + TaobaoSimbaSearchcrowdBatchAddAPIResponseModel +} + +// 推广单元增加搜索人群 成功返回结果 +type TaobaoSimbaSearchcrowdBatchAddAPIResponseModel struct { + XMLName xml.Name `xml:"simba_searchcrowd_batch_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 定向信息 + Adgrouptargetingtags []AdgroupTargetingTagDto `json:"adgrouptargetingtags,omitempty" xml:"adgrouptargetingtags>adgroup_targeting_tag_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaSearchcrowdBatchAddResponse.go b/model/simba/TaobaoSimbaSearchcrowdBatchAddResponse.go deleted file mode 100644 index e8325cf92f..0000000000 --- a/model/simba/TaobaoSimbaSearchcrowdBatchAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推广单元增加搜索人群 API返回值 -taobao.simba.searchcrowd.batch.add - -推广单元新增搜索人群 -*/ -type TaobaoSimbaSearchcrowdBatchAddAPIResponse struct { - model.CommonResponse - TaobaoSimbaSearchcrowdBatchAddResponse -} - -// 推广单元增加搜索人群 成功返回结果 -type TaobaoSimbaSearchcrowdBatchAddResponse struct { - XMLName xml.Name `xml:"simba_searchcrowd_batch_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 定向信息 - Adgrouptargetingtags []AdgroupTargetingTagDto `json:"adgrouptargetingtags,omitempty" xml:"adgrouptargetingtags>adgroup_targeting_tag_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaSearchtagtemplateGetAPIRequest.go b/model/simba/TaobaoSimbaSearchtagtemplateGetAPIRequest.go new file mode 100644 index 0000000000..a3ebd72ce4 --- /dev/null +++ b/model/simba/TaobaoSimbaSearchtagtemplateGetAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取搜索人群TOP用户可添加人群信息 API请求 +taobao.simba.searchtagtemplate.get + +获取搜索人群用户可添加人群信息 +*/ +type TaobaoSimbaSearchtagtemplateGetAPIRequest struct { + model.Params + // 被操作者的淘宝昵称 + _nick string + // 子帐号nick + _subNick string +} + +// 初始化TaobaoSimbaSearchtagtemplateGetAPIRequest对象 +func NewTaobaoSimbaSearchtagtemplateGetRequest() *TaobaoSimbaSearchtagtemplateGetAPIRequest{ + return &TaobaoSimbaSearchtagtemplateGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaSearchtagtemplateGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.searchtagtemplate.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaSearchtagtemplateGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 被操作者的淘宝昵称 +func (r *TaobaoSimbaSearchtagtemplateGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaSearchtagtemplateGetAPIRequest) GetNick() string { + return r._nick +} +// SubNick Setter +// 子帐号nick +func (r *TaobaoSimbaSearchtagtemplateGetAPIRequest) SetSubNick(_subNick string) error { + r._subNick = _subNick + r.Set("sub_nick", _subNick) + return nil +} + +// SubNick Getter +func (r TaobaoSimbaSearchtagtemplateGetAPIRequest) GetSubNick() string { + return r._subNick +} diff --git a/model/simba/TaobaoSimbaSearchtagtemplateGetAPIResponse.go b/model/simba/TaobaoSimbaSearchtagtemplateGetAPIResponse.go new file mode 100644 index 0000000000..2a808b9c7c --- /dev/null +++ b/model/simba/TaobaoSimbaSearchtagtemplateGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取搜索人群TOP用户可添加人群信息 API返回值 +taobao.simba.searchtagtemplate.get + +获取搜索人群用户可添加人群信息 +*/ +type TaobaoSimbaSearchtagtemplateGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaSearchtagtemplateGetAPIResponseModel +} + +// 获取搜索人群TOP用户可添加人群信息 成功返回结果 +type TaobaoSimbaSearchtagtemplateGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_searchtagtemplate_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + TemplateList []TaobaoSimbaSearchtagtemplateGetResult `json:"template_list,omitempty" xml:"template_list>taobao_simba_searchtagtemplate_get_result,omitempty"` +} diff --git a/model/simba/TaobaoSimbaSearchtagtemplateGetResponse.go b/model/simba/TaobaoSimbaSearchtagtemplateGetResponse.go deleted file mode 100644 index 8ded946e96..0000000000 --- a/model/simba/TaobaoSimbaSearchtagtemplateGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取搜索人群TOP用户可添加人群信息 API返回值 -taobao.simba.searchtagtemplate.get - -获取搜索人群用户可添加人群信息 -*/ -type TaobaoSimbaSearchtagtemplateGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaSearchtagtemplateGetResponse -} - -// 获取搜索人群TOP用户可添加人群信息 成功返回结果 -type TaobaoSimbaSearchtagtemplateGetResponse struct { - XMLName xml.Name `xml:"simba_searchtagtemplate_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - TemplateList []TaobaoSimbaSearchtagtemplateGetResult `json:"template_list,omitempty" xml:"template_list>taobao_simba_searchtagtemplate_get_result,omitempty"` -} diff --git a/model/simba/TaobaoSimbaSerchcrowdBatchDeleteAPIRequest.go b/model/simba/TaobaoSimbaSerchcrowdBatchDeleteAPIRequest.go new file mode 100644 index 0000000000..4d4531a104 --- /dev/null +++ b/model/simba/TaobaoSimbaSerchcrowdBatchDeleteAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单品搜索人群批量取消溢价 API请求 +taobao.simba.serchcrowd.batch.delete + +删除单品搜索人群溢价功能 +*/ +type TaobaoSimbaSerchcrowdBatchDeleteAPIRequest struct { + model.Params + // 被操作者的淘宝昵称 + _nick string + // 子帐号nick + _subNick string + // 需要删除的人群id + _adgroupCrowdIds []int64 +} + +// 初始化TaobaoSimbaSerchcrowdBatchDeleteAPIRequest对象 +func NewTaobaoSimbaSerchcrowdBatchDeleteRequest() *TaobaoSimbaSerchcrowdBatchDeleteAPIRequest{ + return &TaobaoSimbaSerchcrowdBatchDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaSerchcrowdBatchDeleteAPIRequest) GetApiMethodName() string { + return "taobao.simba.serchcrowd.batch.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaSerchcrowdBatchDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 被操作者的淘宝昵称 +func (r *TaobaoSimbaSerchcrowdBatchDeleteAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaSerchcrowdBatchDeleteAPIRequest) GetNick() string { + return r._nick +} +// SubNick Setter +// 子帐号nick +func (r *TaobaoSimbaSerchcrowdBatchDeleteAPIRequest) SetSubNick(_subNick string) error { + r._subNick = _subNick + r.Set("sub_nick", _subNick) + return nil +} + +// SubNick Getter +func (r TaobaoSimbaSerchcrowdBatchDeleteAPIRequest) GetSubNick() string { + return r._subNick +} +// AdgroupCrowdIds Setter +// 需要删除的人群id +func (r *TaobaoSimbaSerchcrowdBatchDeleteAPIRequest) SetAdgroupCrowdIds(_adgroupCrowdIds []int64) error { + r._adgroupCrowdIds = _adgroupCrowdIds + r.Set("adgroup_crowd_ids", _adgroupCrowdIds) + return nil +} + +// AdgroupCrowdIds Getter +func (r TaobaoSimbaSerchcrowdBatchDeleteAPIRequest) GetAdgroupCrowdIds() []int64 { + return r._adgroupCrowdIds +} diff --git a/model/simba/TaobaoSimbaSerchcrowdBatchDeleteAPIResponse.go b/model/simba/TaobaoSimbaSerchcrowdBatchDeleteAPIResponse.go new file mode 100644 index 0000000000..4ec576d666 --- /dev/null +++ b/model/simba/TaobaoSimbaSerchcrowdBatchDeleteAPIResponse.go @@ -0,0 +1,31 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单品搜索人群批量取消溢价 API返回值 +taobao.simba.serchcrowd.batch.delete + +删除单品搜索人群溢价功能 +*/ +type TaobaoSimbaSerchcrowdBatchDeleteAPIResponse struct { + model.CommonResponse + TaobaoSimbaSerchcrowdBatchDeleteAPIResponseModel +} + +// 单品搜索人群批量取消溢价 成功返回结果 +type TaobaoSimbaSerchcrowdBatchDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"simba_serchcrowd_batch_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + DeleteList []string `json:"delete_list,omitempty" xml:"delete_list>string,omitempty"` + // errorDTOList + ErrorDTOList []string `json:"error_d_t_o_list,omitempty" xml:"error_d_t_o_list>string,omitempty"` + // key + Key string `json:"key,omitempty" xml:"key,omitempty"` +} diff --git a/model/simba/TaobaoSimbaSerchcrowdBatchDeleteResponse.go b/model/simba/TaobaoSimbaSerchcrowdBatchDeleteResponse.go deleted file mode 100644 index 63e2d764ae..0000000000 --- a/model/simba/TaobaoSimbaSerchcrowdBatchDeleteResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单品搜索人群批量取消溢价 API返回值 -taobao.simba.serchcrowd.batch.delete - -删除单品搜索人群溢价功能 -*/ -type TaobaoSimbaSerchcrowdBatchDeleteAPIResponse struct { - model.CommonResponse - TaobaoSimbaSerchcrowdBatchDeleteResponse -} - -// 单品搜索人群批量取消溢价 成功返回结果 -type TaobaoSimbaSerchcrowdBatchDeleteResponse struct { - XMLName xml.Name `xml:"simba_serchcrowd_batch_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - DeleteList []string `json:"delete_list,omitempty" xml:"delete_list>string,omitempty"` - // errorDTOList - ErrorDTOList []string `json:"error_d_t_o_list,omitempty" xml:"error_d_t_o_list>string,omitempty"` - // key - Key string `json:"key,omitempty" xml:"key,omitempty"` -} diff --git a/model/simba/TaobaoSimbaSerchcrowdGetAPIRequest.go b/model/simba/TaobaoSimbaSerchcrowdGetAPIRequest.go new file mode 100644 index 0000000000..ad3cb725bc --- /dev/null +++ b/model/simba/TaobaoSimbaSerchcrowdGetAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据推广单元id获取搜索溢价人群 API请求 +taobao.simba.serchcrowd.get + +根据推广单元id获取搜索溢价人群 +*/ +type TaobaoSimbaSerchcrowdGetAPIRequest struct { + model.Params + // 被操作者的淘宝昵称 + _nick string + // 推广单元id + _adgroupId int64 +} + +// 初始化TaobaoSimbaSerchcrowdGetAPIRequest对象 +func NewTaobaoSimbaSerchcrowdGetRequest() *TaobaoSimbaSerchcrowdGetAPIRequest{ + return &TaobaoSimbaSerchcrowdGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaSerchcrowdGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.serchcrowd.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaSerchcrowdGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 被操作者的淘宝昵称 +func (r *TaobaoSimbaSerchcrowdGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaSerchcrowdGetAPIRequest) GetNick() string { + return r._nick +} +// AdgroupId Setter +// 推广单元id +func (r *TaobaoSimbaSerchcrowdGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaSerchcrowdGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/simba/TaobaoSimbaSerchcrowdGetAPIResponse.go b/model/simba/TaobaoSimbaSerchcrowdGetAPIResponse.go new file mode 100644 index 0000000000..e6546500e7 --- /dev/null +++ b/model/simba/TaobaoSimbaSerchcrowdGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据推广单元id获取搜索溢价人群 API返回值 +taobao.simba.serchcrowd.get + +根据推广单元id获取搜索溢价人群 +*/ +type TaobaoSimbaSerchcrowdGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaSerchcrowdGetAPIResponseModel +} + +// 根据推广单元id获取搜索溢价人群 成功返回结果 +type TaobaoSimbaSerchcrowdGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_serchcrowd_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Adgrouptargetingtags []TaobaoSimbaSerchcrowdGetResult `json:"adgrouptargetingtags,omitempty" xml:"adgrouptargetingtags>taobao_simba_serchcrowd_get_result,omitempty"` +} diff --git a/model/simba/TaobaoSimbaSerchcrowdGetResponse.go b/model/simba/TaobaoSimbaSerchcrowdGetResponse.go deleted file mode 100644 index ba0efcfd25..0000000000 --- a/model/simba/TaobaoSimbaSerchcrowdGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据推广单元id获取搜索溢价人群 API返回值 -taobao.simba.serchcrowd.get - -根据推广单元id获取搜索溢价人群 -*/ -type TaobaoSimbaSerchcrowdGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaSerchcrowdGetResponse -} - -// 根据推广单元id获取搜索溢价人群 成功返回结果 -type TaobaoSimbaSerchcrowdGetResponse struct { - XMLName xml.Name `xml:"simba_serchcrowd_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Adgrouptargetingtags []TaobaoSimbaSerchcrowdGetResult `json:"adgrouptargetingtags,omitempty" xml:"adgrouptargetingtags>taobao_simba_serchcrowd_get_result,omitempty"` -} diff --git a/model/simba/TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest.go b/model/simba/TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest.go new file mode 100644 index 0000000000..ea8e050a27 --- /dev/null +++ b/model/simba/TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest.go @@ -0,0 +1,108 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单品推广搜索人群修改溢价 API请求 +taobao.simba.serchcrowd.price.batch.update + +单品推广搜索人群修改溢价, 不支持跨推广单元修改 +*/ +type TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest struct { + model.Params + // 被操作者的淘宝昵称 + _nick string + // 子帐号nick + _subNick string + // 需要修改出价的人群包id,批量传入的时候用,分割 + _adgroupCrowdIds []int64 + // 推广单元id + _adgroupId int64 + // 人群溢价比例,溢价范围[5,300] + _discount int64 +} + +// 初始化TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest对象 +func NewTaobaoSimbaSerchcrowdPriceBatchUpdateRequest() *TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest{ + return &TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest) GetApiMethodName() string { + return "taobao.simba.serchcrowd.price.batch.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 被操作者的淘宝昵称 +func (r *TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest) GetNick() string { + return r._nick +} +// SubNick Setter +// 子帐号nick +func (r *TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest) SetSubNick(_subNick string) error { + r._subNick = _subNick + r.Set("sub_nick", _subNick) + return nil +} + +// SubNick Getter +func (r TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest) GetSubNick() string { + return r._subNick +} +// AdgroupCrowdIds Setter +// 需要修改出价的人群包id,批量传入的时候用,分割 +func (r *TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest) SetAdgroupCrowdIds(_adgroupCrowdIds []int64) error { + r._adgroupCrowdIds = _adgroupCrowdIds + r.Set("adgroup_crowd_ids", _adgroupCrowdIds) + return nil +} + +// AdgroupCrowdIds Getter +func (r TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest) GetAdgroupCrowdIds() []int64 { + return r._adgroupCrowdIds +} +// AdgroupId Setter +// 推广单元id +func (r *TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// Discount Setter +// 人群溢价比例,溢价范围[5,300] +func (r *TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest) SetDiscount(_discount int64) error { + r._discount = _discount + r.Set("discount", _discount) + return nil +} + +// Discount Getter +func (r TaobaoSimbaSerchcrowdPriceBatchUpdateAPIRequest) GetDiscount() int64 { + return r._discount +} diff --git a/model/simba/TaobaoSimbaSerchcrowdPriceBatchUpdateAPIResponse.go b/model/simba/TaobaoSimbaSerchcrowdPriceBatchUpdateAPIResponse.go new file mode 100644 index 0000000000..f384ed58e1 --- /dev/null +++ b/model/simba/TaobaoSimbaSerchcrowdPriceBatchUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单品推广搜索人群修改溢价 API返回值 +taobao.simba.serchcrowd.price.batch.update + +单品推广搜索人群修改溢价, 不支持跨推广单元修改 +*/ +type TaobaoSimbaSerchcrowdPriceBatchUpdateAPIResponse struct { + model.CommonResponse + TaobaoSimbaSerchcrowdPriceBatchUpdateAPIResponseModel +} + +// 单品推广搜索人群修改溢价 成功返回结果 +type TaobaoSimbaSerchcrowdPriceBatchUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"simba_serchcrowd_price_batch_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Adgrouptargetingtags []AdgroupTargetingTagDto `json:"adgrouptargetingtags,omitempty" xml:"adgrouptargetingtags>adgroup_targeting_tag_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaSerchcrowdPriceBatchUpdateResponse.go b/model/simba/TaobaoSimbaSerchcrowdPriceBatchUpdateResponse.go deleted file mode 100644 index c86c1f05f9..0000000000 --- a/model/simba/TaobaoSimbaSerchcrowdPriceBatchUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单品推广搜索人群修改溢价 API返回值 -taobao.simba.serchcrowd.price.batch.update - -单品推广搜索人群修改溢价, 不支持跨推广单元修改 -*/ -type TaobaoSimbaSerchcrowdPriceBatchUpdateAPIResponse struct { - model.CommonResponse - TaobaoSimbaSerchcrowdPriceBatchUpdateResponse -} - -// 单品推广搜索人群修改溢价 成功返回结果 -type TaobaoSimbaSerchcrowdPriceBatchUpdateResponse struct { - XMLName xml.Name `xml:"simba_serchcrowd_price_batch_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Adgrouptargetingtags []AdgroupTargetingTagDto `json:"adgrouptargetingtags,omitempty" xml:"adgrouptargetingtags>adgroup_targeting_tag_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaSerchcrowdStateBatchUpdateAPIRequest.go b/model/simba/TaobaoSimbaSerchcrowdStateBatchUpdateAPIRequest.go new file mode 100644 index 0000000000..594430c0eb --- /dev/null +++ b/model/simba/TaobaoSimbaSerchcrowdStateBatchUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单品搜索人群修改状态 API请求 +taobao.simba.serchcrowd.state.batch.update + +暂停或启用单品推广搜索人群溢价 +*/ +type TaobaoSimbaSerchcrowdStateBatchUpdateAPIRequest struct { + model.Params + // 被操作者的淘宝昵称 + _nick string + // 需要修改出价的人群包id,批量传入时用,分割 + _adgroupCrowdIds []int64 + // 推广单元id + _adgroupId int64 + // 人群状态,0:暂停;1:启用 + _state int64 +} + +// 初始化TaobaoSimbaSerchcrowdStateBatchUpdateAPIRequest对象 +func NewTaobaoSimbaSerchcrowdStateBatchUpdateRequest() *TaobaoSimbaSerchcrowdStateBatchUpdateAPIRequest{ + return &TaobaoSimbaSerchcrowdStateBatchUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaSerchcrowdStateBatchUpdateAPIRequest) GetApiMethodName() string { + return "taobao.simba.serchcrowd.state.batch.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaSerchcrowdStateBatchUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 被操作者的淘宝昵称 +func (r *TaobaoSimbaSerchcrowdStateBatchUpdateAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaSerchcrowdStateBatchUpdateAPIRequest) GetNick() string { + return r._nick +} +// AdgroupCrowdIds Setter +// 需要修改出价的人群包id,批量传入时用,分割 +func (r *TaobaoSimbaSerchcrowdStateBatchUpdateAPIRequest) SetAdgroupCrowdIds(_adgroupCrowdIds []int64) error { + r._adgroupCrowdIds = _adgroupCrowdIds + r.Set("adgroup_crowd_ids", _adgroupCrowdIds) + return nil +} + +// AdgroupCrowdIds Getter +func (r TaobaoSimbaSerchcrowdStateBatchUpdateAPIRequest) GetAdgroupCrowdIds() []int64 { + return r._adgroupCrowdIds +} +// AdgroupId Setter +// 推广单元id +func (r *TaobaoSimbaSerchcrowdStateBatchUpdateAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSimbaSerchcrowdStateBatchUpdateAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// State Setter +// 人群状态,0:暂停;1:启用 +func (r *TaobaoSimbaSerchcrowdStateBatchUpdateAPIRequest) SetState(_state int64) error { + r._state = _state + r.Set("state", _state) + return nil +} + +// State Getter +func (r TaobaoSimbaSerchcrowdStateBatchUpdateAPIRequest) GetState() int64 { + return r._state +} diff --git a/model/simba/TaobaoSimbaSerchcrowdStateBatchUpdateAPIResponse.go b/model/simba/TaobaoSimbaSerchcrowdStateBatchUpdateAPIResponse.go new file mode 100644 index 0000000000..93890e40b2 --- /dev/null +++ b/model/simba/TaobaoSimbaSerchcrowdStateBatchUpdateAPIResponse.go @@ -0,0 +1,29 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单品搜索人群修改状态 API返回值 +taobao.simba.serchcrowd.state.batch.update + +暂停或启用单品推广搜索人群溢价 +*/ +type TaobaoSimbaSerchcrowdStateBatchUpdateAPIResponse struct { + model.CommonResponse + TaobaoSimbaSerchcrowdStateBatchUpdateAPIResponseModel +} + +// 单品搜索人群修改状态 成功返回结果 +type TaobaoSimbaSerchcrowdStateBatchUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"simba_serchcrowd_state_batch_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 部分失败时返回错误List + ErrorList []string `json:"error_list,omitempty" xml:"error_list>string,omitempty"` + // result + Adgrouptargetingtags []AdgroupTargetingTagDto `json:"adgrouptargetingtags,omitempty" xml:"adgrouptargetingtags>adgroup_targeting_tag_dto,omitempty"` +} diff --git a/model/simba/TaobaoSimbaSerchcrowdStateBatchUpdateResponse.go b/model/simba/TaobaoSimbaSerchcrowdStateBatchUpdateResponse.go deleted file mode 100644 index 8e1eaf1d94..0000000000 --- a/model/simba/TaobaoSimbaSerchcrowdStateBatchUpdateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单品搜索人群修改状态 API返回值 -taobao.simba.serchcrowd.state.batch.update - -暂停或启用单品推广搜索人群溢价 -*/ -type TaobaoSimbaSerchcrowdStateBatchUpdateAPIResponse struct { - model.CommonResponse - TaobaoSimbaSerchcrowdStateBatchUpdateResponse -} - -// 单品搜索人群修改状态 成功返回结果 -type TaobaoSimbaSerchcrowdStateBatchUpdateResponse struct { - XMLName xml.Name `xml:"simba_serchcrowd_state_batch_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 部分失败时返回错误List - ErrorList []string `json:"error_list,omitempty" xml:"error_list>string,omitempty"` - // result - Adgrouptargetingtags []AdgroupTargetingTagDto `json:"adgrouptargetingtags,omitempty" xml:"adgrouptargetingtags>adgroup_targeting_tag_dto,omitempty"` -} diff --git a/model/simba/TaobaoSimbaToolsItemsTopGetAPIRequest.go b/model/simba/TaobaoSimbaToolsItemsTopGetAPIRequest.go new file mode 100644 index 0000000000..835fbbff5a --- /dev/null +++ b/model/simba/TaobaoSimbaToolsItemsTopGetAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一个关键词的推广组排名列表 API请求 +taobao.simba.tools.items.top.get + +取得一个关键词的推广组排名列表 +*/ +type TaobaoSimbaToolsItemsTopGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 关键词 + _keyword string + // 输入的必须是一个符合ipv4或者ipv6格式的IP地址 + _ip string +} + +// 初始化TaobaoSimbaToolsItemsTopGetAPIRequest对象 +func NewTaobaoSimbaToolsItemsTopGetRequest() *TaobaoSimbaToolsItemsTopGetAPIRequest{ + return &TaobaoSimbaToolsItemsTopGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSimbaToolsItemsTopGetAPIRequest) GetApiMethodName() string { + return "taobao.simba.tools.items.top.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSimbaToolsItemsTopGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSimbaToolsItemsTopGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSimbaToolsItemsTopGetAPIRequest) GetNick() string { + return r._nick +} +// Keyword Setter +// 关键词 +func (r *TaobaoSimbaToolsItemsTopGetAPIRequest) SetKeyword(_keyword string) error { + r._keyword = _keyword + r.Set("keyword", _keyword) + return nil +} + +// Keyword Getter +func (r TaobaoSimbaToolsItemsTopGetAPIRequest) GetKeyword() string { + return r._keyword +} +// Ip Setter +// 输入的必须是一个符合ipv4或者ipv6格式的IP地址 +func (r *TaobaoSimbaToolsItemsTopGetAPIRequest) SetIp(_ip string) error { + r._ip = _ip + r.Set("ip", _ip) + return nil +} + +// Ip Getter +func (r TaobaoSimbaToolsItemsTopGetAPIRequest) GetIp() string { + return r._ip +} diff --git a/model/simba/TaobaoSimbaToolsItemsTopGetAPIResponse.go b/model/simba/TaobaoSimbaToolsItemsTopGetAPIResponse.go new file mode 100644 index 0000000000..efa414a2be --- /dev/null +++ b/model/simba/TaobaoSimbaToolsItemsTopGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取得一个关键词的推广组排名列表 API返回值 +taobao.simba.tools.items.top.get + +取得一个关键词的推广组排名列表 +*/ +type TaobaoSimbaToolsItemsTopGetAPIResponse struct { + model.CommonResponse + TaobaoSimbaToolsItemsTopGetAPIResponseModel +} + +// 取得一个关键词的推广组排名列表 成功返回结果 +type TaobaoSimbaToolsItemsTopGetAPIResponseModel struct { + XMLName xml.Name `xml:"simba_tools_items_top_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推广组信息列表 + Rankeditems []RankedItem `json:"rankeditems,omitempty" xml:"rankeditems>ranked_item,omitempty"` +} diff --git a/model/simba/TaobaoSimbaToolsItemsTopGetResponse.go b/model/simba/TaobaoSimbaToolsItemsTopGetResponse.go deleted file mode 100644 index aff537d80b..0000000000 --- a/model/simba/TaobaoSimbaToolsItemsTopGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取得一个关键词的推广组排名列表 API返回值 -taobao.simba.tools.items.top.get - -取得一个关键词的推广组排名列表 -*/ -type TaobaoSimbaToolsItemsTopGetAPIResponse struct { - model.CommonResponse - TaobaoSimbaToolsItemsTopGetResponse -} - -// 取得一个关键词的推广组排名列表 成功返回结果 -type TaobaoSimbaToolsItemsTopGetResponse struct { - XMLName xml.Name `xml:"simba_tools_items_top_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推广组信息列表 - Rankeditems []RankedItem `json:"rankeditems,omitempty" xml:"rankeditems>ranked_item,omitempty"` -} diff --git a/model/simba/TaobaoSubwayAutomatchRptGetAPIRequest.go b/model/simba/TaobaoSubwayAutomatchRptGetAPIRequest.go new file mode 100644 index 0000000000..abb8b08094 --- /dev/null +++ b/model/simba/TaobaoSubwayAutomatchRptGetAPIRequest.go @@ -0,0 +1,108 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询流量智选天级报告 API请求 +taobao.subway.automatch.rpt.get + +查询流量智选天级报告 +*/ +type TaobaoSubwayAutomatchRptGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 起始日期 + _startDate string + // 终止日期 + _endDate string + // 计划id + _campaignId int64 + // 推广组id + _adgroupId int64 +} + +// 初始化TaobaoSubwayAutomatchRptGetAPIRequest对象 +func NewTaobaoSubwayAutomatchRptGetRequest() *TaobaoSubwayAutomatchRptGetAPIRequest{ + return &TaobaoSubwayAutomatchRptGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSubwayAutomatchRptGetAPIRequest) GetApiMethodName() string { + return "taobao.subway.automatch.rpt.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSubwayAutomatchRptGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSubwayAutomatchRptGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSubwayAutomatchRptGetAPIRequest) GetNick() string { + return r._nick +} +// StartDate Setter +// 起始日期 +func (r *TaobaoSubwayAutomatchRptGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoSubwayAutomatchRptGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 终止日期 +func (r *TaobaoSubwayAutomatchRptGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoSubwayAutomatchRptGetAPIRequest) GetEndDate() string { + return r._endDate +} +// CampaignId Setter +// 计划id +func (r *TaobaoSubwayAutomatchRptGetAPIRequest) SetCampaignId(_campaignId int64) error { + r._campaignId = _campaignId + r.Set("campaign_id", _campaignId) + return nil +} + +// CampaignId Getter +func (r TaobaoSubwayAutomatchRptGetAPIRequest) GetCampaignId() int64 { + return r._campaignId +} +// AdgroupId Setter +// 推广组id +func (r *TaobaoSubwayAutomatchRptGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSubwayAutomatchRptGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/simba/TaobaoSubwayAutomatchRptGetAPIResponse.go b/model/simba/TaobaoSubwayAutomatchRptGetAPIResponse.go new file mode 100644 index 0000000000..5c44a33b98 --- /dev/null +++ b/model/simba/TaobaoSubwayAutomatchRptGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询流量智选天级报告 API返回值 +taobao.subway.automatch.rpt.get + +查询流量智选天级报告 +*/ +type TaobaoSubwayAutomatchRptGetAPIResponse struct { + model.CommonResponse + TaobaoSubwayAutomatchRptGetAPIResponseModel +} + +// 查询流量智选天级报告 成功返回结果 +type TaobaoSubwayAutomatchRptGetAPIResponseModel struct { + XMLName xml.Name `xml:"subway_automatch_rpt_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 流量智选天级别报表数据 + ResultList []ResultMap `json:"result_list,omitempty" xml:"result_list>result_map,omitempty"` +} diff --git a/model/simba/TaobaoSubwayAutomatchRptGetResponse.go b/model/simba/TaobaoSubwayAutomatchRptGetResponse.go deleted file mode 100644 index 1b99387276..0000000000 --- a/model/simba/TaobaoSubwayAutomatchRptGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询流量智选天级报告 API返回值 -taobao.subway.automatch.rpt.get - -查询流量智选天级报告 -*/ -type TaobaoSubwayAutomatchRptGetAPIResponse struct { - model.CommonResponse - TaobaoSubwayAutomatchRptGetResponse -} - -// 查询流量智选天级报告 成功返回结果 -type TaobaoSubwayAutomatchRptGetResponse struct { - XMLName xml.Name `xml:"subway_automatch_rpt_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 流量智选天级别报表数据 - ResultList []ResultMap `json:"result_list,omitempty" xml:"result_list>result_map,omitempty"` -} diff --git a/model/simba/TaobaoSubwayCiaGetAPIRequest.go b/model/simba/TaobaoSubwayCiaGetAPIRequest.go new file mode 100644 index 0000000000..2d716936c8 --- /dev/null +++ b/model/simba/TaobaoSubwayCiaGetAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询单元智能出价信息 API请求 +taobao.subway.cia.get + +查询单元智能出价信息 +*/ +type TaobaoSubwayCiaGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广组Id + _adgroupId int64 +} + +// 初始化TaobaoSubwayCiaGetAPIRequest对象 +func NewTaobaoSubwayCiaGetRequest() *TaobaoSubwayCiaGetAPIRequest{ + return &TaobaoSubwayCiaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSubwayCiaGetAPIRequest) GetApiMethodName() string { + return "taobao.subway.cia.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSubwayCiaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSubwayCiaGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSubwayCiaGetAPIRequest) GetNick() string { + return r._nick +} +// AdgroupId Setter +// 推广组Id +func (r *TaobaoSubwayCiaGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSubwayCiaGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/simba/TaobaoSubwayCiaGetAPIResponse.go b/model/simba/TaobaoSubwayCiaGetAPIResponse.go new file mode 100644 index 0000000000..56dbc2bcf6 --- /dev/null +++ b/model/simba/TaobaoSubwayCiaGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询单元智能出价信息 API返回值 +taobao.subway.cia.get + +查询单元智能出价信息 +*/ +type TaobaoSubwayCiaGetAPIResponse struct { + model.CommonResponse + TaobaoSubwayCiaGetAPIResponseModel +} + +// 查询单元智能出价信息 成功返回结果 +type TaobaoSubwayCiaGetAPIResponseModel struct { + XMLName xml.Name `xml:"subway_cia_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 单元智能出价信息 + Result *CiaConfig `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/simba/TaobaoSubwayCiaGetResponse.go b/model/simba/TaobaoSubwayCiaGetResponse.go deleted file mode 100644 index 862bffd8c2..0000000000 --- a/model/simba/TaobaoSubwayCiaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询单元智能出价信息 API返回值 -taobao.subway.cia.get - -查询单元智能出价信息 -*/ -type TaobaoSubwayCiaGetAPIResponse struct { - model.CommonResponse - TaobaoSubwayCiaGetResponse -} - -// 查询单元智能出价信息 成功返回结果 -type TaobaoSubwayCiaGetResponse struct { - XMLName xml.Name `xml:"subway_cia_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 单元智能出价信息 - Result *CiaConfig `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/simba/TaobaoSubwayCiaUpdateAPIRequest.go b/model/simba/TaobaoSubwayCiaUpdateAPIRequest.go new file mode 100644 index 0000000000..1c51d29448 --- /dev/null +++ b/model/simba/TaobaoSubwayCiaUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量修改单元智能出价 API请求 +taobao.subway.cia.update + +批量修改直通车推广单元的智能出价配置 +*/ +type TaobaoSubwayCiaUpdateAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 系统自动生成 + _ciaConfigs []CiaUpdateDto +} + +// 初始化TaobaoSubwayCiaUpdateAPIRequest对象 +func NewTaobaoSubwayCiaUpdateRequest() *TaobaoSubwayCiaUpdateAPIRequest{ + return &TaobaoSubwayCiaUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSubwayCiaUpdateAPIRequest) GetApiMethodName() string { + return "taobao.subway.cia.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSubwayCiaUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSubwayCiaUpdateAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSubwayCiaUpdateAPIRequest) GetNick() string { + return r._nick +} +// CiaConfigs Setter +// 系统自动生成 +func (r *TaobaoSubwayCiaUpdateAPIRequest) SetCiaConfigs(_ciaConfigs []CiaUpdateDto) error { + r._ciaConfigs = _ciaConfigs + r.Set("cia_configs", _ciaConfigs) + return nil +} + +// CiaConfigs Getter +func (r TaobaoSubwayCiaUpdateAPIRequest) GetCiaConfigs() []CiaUpdateDto { + return r._ciaConfigs +} diff --git a/model/simba/TaobaoSubwayCiaUpdateAPIResponse.go b/model/simba/TaobaoSubwayCiaUpdateAPIResponse.go new file mode 100644 index 0000000000..1beb872291 --- /dev/null +++ b/model/simba/TaobaoSubwayCiaUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量修改单元智能出价 API返回值 +taobao.subway.cia.update + +批量修改直通车推广单元的智能出价配置 +*/ +type TaobaoSubwayCiaUpdateAPIResponse struct { + model.CommonResponse + TaobaoSubwayCiaUpdateAPIResponseModel +} + +// 批量修改单元智能出价 成功返回结果 +type TaobaoSubwayCiaUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"subway_cia_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 推广组Id列表 + AdgroupList []int64 `json:"adgroup_list,omitempty" xml:"adgroup_list>int64,omitempty"` +} diff --git a/model/simba/TaobaoSubwayCiaUpdateResponse.go b/model/simba/TaobaoSubwayCiaUpdateResponse.go deleted file mode 100644 index 1c4898cbdb..0000000000 --- a/model/simba/TaobaoSubwayCiaUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量修改单元智能出价 API返回值 -taobao.subway.cia.update - -批量修改直通车推广单元的智能出价配置 -*/ -type TaobaoSubwayCiaUpdateAPIResponse struct { - model.CommonResponse - TaobaoSubwayCiaUpdateResponse -} - -// 批量修改单元智能出价 成功返回结果 -type TaobaoSubwayCiaUpdateResponse struct { - XMLName xml.Name `xml:"subway_cia_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 推广组Id列表 - AdgroupList []int64 `json:"adgroup_list,omitempty" xml:"adgroup_list>int64,omitempty"` -} diff --git a/model/simba/TaobaoSubwayMarshLandRptGetAPIRequest.go b/model/simba/TaobaoSubwayMarshLandRptGetAPIRequest.go new file mode 100644 index 0000000000..e0f27c669d --- /dev/null +++ b/model/simba/TaobaoSubwayMarshLandRptGetAPIRequest.go @@ -0,0 +1,122 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取捡漏词包分时报表数据 API请求 +taobao.subway.marsh.land.rpt.get + +获取捡漏词包分时报表数据 +*/ +type TaobaoSubwayMarshLandRptGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 2021-05-11 + _endDate string + // 推广组id + _adgroupIdEqual string + // 词包类型(捡漏词包填19) + _isAutoMatchEqual string + // 计划id + _campaignIdEqual string + // 2021-05-05 + _startDate string +} + +// 初始化TaobaoSubwayMarshLandRptGetAPIRequest对象 +func NewTaobaoSubwayMarshLandRptGetRequest() *TaobaoSubwayMarshLandRptGetAPIRequest{ + return &TaobaoSubwayMarshLandRptGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSubwayMarshLandRptGetAPIRequest) GetApiMethodName() string { + return "taobao.subway.marsh.land.rpt.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSubwayMarshLandRptGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSubwayMarshLandRptGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSubwayMarshLandRptGetAPIRequest) GetNick() string { + return r._nick +} +// EndDate Setter +// 2021-05-11 +func (r *TaobaoSubwayMarshLandRptGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoSubwayMarshLandRptGetAPIRequest) GetEndDate() string { + return r._endDate +} +// AdgroupIdEqual Setter +// 推广组id +func (r *TaobaoSubwayMarshLandRptGetAPIRequest) SetAdgroupIdEqual(_adgroupIdEqual string) error { + r._adgroupIdEqual = _adgroupIdEqual + r.Set("adgroup_id_equal", _adgroupIdEqual) + return nil +} + +// AdgroupIdEqual Getter +func (r TaobaoSubwayMarshLandRptGetAPIRequest) GetAdgroupIdEqual() string { + return r._adgroupIdEqual +} +// IsAutoMatchEqual Setter +// 词包类型(捡漏词包填19) +func (r *TaobaoSubwayMarshLandRptGetAPIRequest) SetIsAutoMatchEqual(_isAutoMatchEqual string) error { + r._isAutoMatchEqual = _isAutoMatchEqual + r.Set("is_auto_match_equal", _isAutoMatchEqual) + return nil +} + +// IsAutoMatchEqual Getter +func (r TaobaoSubwayMarshLandRptGetAPIRequest) GetIsAutoMatchEqual() string { + return r._isAutoMatchEqual +} +// CampaignIdEqual Setter +// 计划id +func (r *TaobaoSubwayMarshLandRptGetAPIRequest) SetCampaignIdEqual(_campaignIdEqual string) error { + r._campaignIdEqual = _campaignIdEqual + r.Set("campaign_id_equal", _campaignIdEqual) + return nil +} + +// CampaignIdEqual Getter +func (r TaobaoSubwayMarshLandRptGetAPIRequest) GetCampaignIdEqual() string { + return r._campaignIdEqual +} +// StartDate Setter +// 2021-05-05 +func (r *TaobaoSubwayMarshLandRptGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoSubwayMarshLandRptGetAPIRequest) GetStartDate() string { + return r._startDate +} diff --git a/model/simba/TaobaoSubwayMarshLandRptGetAPIResponse.go b/model/simba/TaobaoSubwayMarshLandRptGetAPIResponse.go new file mode 100644 index 0000000000..d40c4a344f --- /dev/null +++ b/model/simba/TaobaoSubwayMarshLandRptGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取捡漏词包分时报表数据 API返回值 +taobao.subway.marsh.land.rpt.get + +获取捡漏词包分时报表数据 +*/ +type TaobaoSubwayMarshLandRptGetAPIResponse struct { + model.CommonResponse + TaobaoSubwayMarshLandRptGetAPIResponseModel +} + +// 获取捡漏词包分时报表数据 成功返回结果 +type TaobaoSubwayMarshLandRptGetAPIResponseModel struct { + XMLName xml.Name `xml:"subway_marsh_land_rpt_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 捡漏词包分时报表数据列表 + ResultList []RptResult `json:"result_list,omitempty" xml:"result_list>rpt_result,omitempty"` +} diff --git a/model/simba/TaobaoSubwayMarshLandRptGetResponse.go b/model/simba/TaobaoSubwayMarshLandRptGetResponse.go deleted file mode 100644 index 1c51820176..0000000000 --- a/model/simba/TaobaoSubwayMarshLandRptGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取捡漏词包分时报表数据 API返回值 -taobao.subway.marsh.land.rpt.get - -获取捡漏词包分时报表数据 -*/ -type TaobaoSubwayMarshLandRptGetAPIResponse struct { - model.CommonResponse - TaobaoSubwayMarshLandRptGetResponse -} - -// 获取捡漏词包分时报表数据 成功返回结果 -type TaobaoSubwayMarshLandRptGetResponse struct { - XMLName xml.Name `xml:"subway_marsh_land_rpt_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 捡漏词包分时报表数据列表 - ResultList []RptResult `json:"result_list,omitempty" xml:"result_list>rpt_result,omitempty"` -} diff --git a/model/simba/TaobaoSubwayWordpackageGetAPIRequest.go b/model/simba/TaobaoSubwayWordpackageGetAPIRequest.go new file mode 100644 index 0000000000..0b17443e7f --- /dev/null +++ b/model/simba/TaobaoSubwayWordpackageGetAPIRequest.go @@ -0,0 +1,66 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取词包列表 API请求 +taobao.subway.wordpackage.get + +获取流量智选、捡漏词包等词包列表 +*/ +type TaobaoSubwayWordpackageGetAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广组id + _adgroupId int64 +} + +// 初始化TaobaoSubwayWordpackageGetAPIRequest对象 +func NewTaobaoSubwayWordpackageGetRequest() *TaobaoSubwayWordpackageGetAPIRequest{ + return &TaobaoSubwayWordpackageGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSubwayWordpackageGetAPIRequest) GetApiMethodName() string { + return "taobao.subway.wordpackage.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSubwayWordpackageGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSubwayWordpackageGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSubwayWordpackageGetAPIRequest) GetNick() string { + return r._nick +} +// AdgroupId Setter +// 推广组id +func (r *TaobaoSubwayWordpackageGetAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSubwayWordpackageGetAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} diff --git a/model/simba/TaobaoSubwayWordpackageGetAPIResponse.go b/model/simba/TaobaoSubwayWordpackageGetAPIResponse.go new file mode 100644 index 0000000000..877fc3b370 --- /dev/null +++ b/model/simba/TaobaoSubwayWordpackageGetAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取词包列表 API返回值 +taobao.subway.wordpackage.get + +获取流量智选、捡漏词包等词包列表 +*/ +type TaobaoSubwayWordpackageGetAPIResponse struct { + model.CommonResponse + TaobaoSubwayWordpackageGetAPIResponseModel +} + +// 获取词包列表 成功返回结果 +type TaobaoSubwayWordpackageGetAPIResponseModel struct { + XMLName xml.Name `xml:"subway_wordpackage_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 词包结果列表 + ResultList []SiriusItemWordPackageDto `json:"result_list,omitempty" xml:"result_list>sirius_item_word_package_dto,omitempty"` +} diff --git a/model/simba/TaobaoSubwayWordpackageGetResponse.go b/model/simba/TaobaoSubwayWordpackageGetResponse.go deleted file mode 100644 index 7da5a7f898..0000000000 --- a/model/simba/TaobaoSubwayWordpackageGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取词包列表 API返回值 -taobao.subway.wordpackage.get - -获取流量智选、捡漏词包等词包列表 -*/ -type TaobaoSubwayWordpackageGetAPIResponse struct { - model.CommonResponse - TaobaoSubwayWordpackageGetResponse -} - -// 获取词包列表 成功返回结果 -type TaobaoSubwayWordpackageGetResponse struct { - XMLName xml.Name `xml:"subway_wordpackage_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 词包结果列表 - ResultList []SiriusItemWordPackageDto `json:"result_list,omitempty" xml:"result_list>sirius_item_word_package_dto,omitempty"` -} diff --git a/model/simba/TaobaoSubwayWordpackageUpdateAPIRequest.go b/model/simba/TaobaoSubwayWordpackageUpdateAPIRequest.go new file mode 100644 index 0000000000..e99c0282f4 --- /dev/null +++ b/model/simba/TaobaoSubwayWordpackageUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package simba + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量更新词包 API请求 +taobao.subway.wordpackage.update + +批量更新词包 +*/ +type TaobaoSubwayWordpackageUpdateAPIRequest struct { + model.Params + // 主人昵称 + _nick string + // 推广组Id + _adgroupId int64 + // 词包列表 + _wordPackageDTOS []ItemWordPackageDto +} + +// 初始化TaobaoSubwayWordpackageUpdateAPIRequest对象 +func NewTaobaoSubwayWordpackageUpdateRequest() *TaobaoSubwayWordpackageUpdateAPIRequest{ + return &TaobaoSubwayWordpackageUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSubwayWordpackageUpdateAPIRequest) GetApiMethodName() string { + return "taobao.subway.wordpackage.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSubwayWordpackageUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 主人昵称 +func (r *TaobaoSubwayWordpackageUpdateAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSubwayWordpackageUpdateAPIRequest) GetNick() string { + return r._nick +} +// AdgroupId Setter +// 推广组Id +func (r *TaobaoSubwayWordpackageUpdateAPIRequest) SetAdgroupId(_adgroupId int64) error { + r._adgroupId = _adgroupId + r.Set("adgroup_id", _adgroupId) + return nil +} + +// AdgroupId Getter +func (r TaobaoSubwayWordpackageUpdateAPIRequest) GetAdgroupId() int64 { + return r._adgroupId +} +// WordPackageDTOS Setter +// 词包列表 +func (r *TaobaoSubwayWordpackageUpdateAPIRequest) SetWordPackageDTOS(_wordPackageDTOS []ItemWordPackageDto) error { + r._wordPackageDTOS = _wordPackageDTOS + r.Set("word_package_d_t_o_s", _wordPackageDTOS) + return nil +} + +// WordPackageDTOS Getter +func (r TaobaoSubwayWordpackageUpdateAPIRequest) GetWordPackageDTOS() []ItemWordPackageDto { + return r._wordPackageDTOS +} diff --git a/model/simba/TaobaoSubwayWordpackageUpdateAPIResponse.go b/model/simba/TaobaoSubwayWordpackageUpdateAPIResponse.go new file mode 100644 index 0000000000..130269674b --- /dev/null +++ b/model/simba/TaobaoSubwayWordpackageUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package simba + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量更新词包 API返回值 +taobao.subway.wordpackage.update + +批量更新词包 +*/ +type TaobaoSubwayWordpackageUpdateAPIResponse struct { + model.CommonResponse + TaobaoSubwayWordpackageUpdateAPIResponseModel +} + +// 批量更新词包 成功返回结果 +type TaobaoSubwayWordpackageUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"subway_wordpackage_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoSubwayWordpackageUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/simba/TaobaoSubwayWordpackageUpdateResponse.go b/model/simba/TaobaoSubwayWordpackageUpdateResponse.go deleted file mode 100644 index 976f094852..0000000000 --- a/model/simba/TaobaoSubwayWordpackageUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package simba - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量更新词包 API返回值 -taobao.subway.wordpackage.update - -批量更新词包 -*/ -type TaobaoSubwayWordpackageUpdateAPIResponse struct { - model.CommonResponse - TaobaoSubwayWordpackageUpdateResponse -} - -// 批量更新词包 成功返回结果 -type TaobaoSubwayWordpackageUpdateResponse struct { - XMLName xml.Name `xml:"subway_wordpackage_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoSubwayWordpackageUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/singletreasure/TaobaoSingletreasureActivityCreateAPIRequest.go b/model/singletreasure/TaobaoSingletreasureActivityCreateAPIRequest.go new file mode 100644 index 0000000000..d3d4660c6a --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityCreateAPIRequest.go @@ -0,0 +1,52 @@ +package singletreasure + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +活动创建接口 API请求 +taobao.singletreasure.activity.create + +创建优惠活动 +*/ +type TaobaoSingletreasureActivityCreateAPIRequest struct { + model.Params + // 系统入参 + _activityInfo *ActivityInfoCreateDto +} + +// 初始化TaobaoSingletreasureActivityCreateAPIRequest对象 +func NewTaobaoSingletreasureActivityCreateRequest() *TaobaoSingletreasureActivityCreateAPIRequest{ + return &TaobaoSingletreasureActivityCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSingletreasureActivityCreateAPIRequest) GetApiMethodName() string { + return "taobao.singletreasure.activity.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSingletreasureActivityCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityInfo Setter +// 系统入参 +func (r *TaobaoSingletreasureActivityCreateAPIRequest) SetActivityInfo(_activityInfo *ActivityInfoCreateDto) error { + r._activityInfo = _activityInfo + r.Set("activity_info", _activityInfo) + return nil +} + +// ActivityInfo Getter +func (r TaobaoSingletreasureActivityCreateAPIRequest) GetActivityInfo() *ActivityInfoCreateDto { + return r._activityInfo +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityCreateAPIResponse.go b/model/singletreasure/TaobaoSingletreasureActivityCreateAPIResponse.go new file mode 100644 index 0000000000..490c14b687 --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityCreateAPIResponse.go @@ -0,0 +1,27 @@ +package singletreasure + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +活动创建接口 API返回值 +taobao.singletreasure.activity.create + +创建优惠活动 +*/ +type TaobaoSingletreasureActivityCreateAPIResponse struct { + model.CommonResponse + TaobaoSingletreasureActivityCreateAPIResponseModel +} + +// 活动创建接口 成功返回结果 +type TaobaoSingletreasureActivityCreateAPIResponseModel struct { + XMLName xml.Name `xml:"singletreasure_activity_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoSingletreasureActivityCreateResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityCreateResponse.go b/model/singletreasure/TaobaoSingletreasureActivityCreateResponse.go deleted file mode 100644 index a074a81a03..0000000000 --- a/model/singletreasure/TaobaoSingletreasureActivityCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package singletreasure - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -活动创建接口 API返回值 -taobao.singletreasure.activity.create - -创建优惠活动 -*/ -type TaobaoSingletreasureActivityCreateAPIResponse struct { - model.CommonResponse - TaobaoSingletreasureActivityCreateResponse -} - -// 活动创建接口 成功返回结果 -type TaobaoSingletreasureActivityCreateResponse struct { - XMLName xml.Name `xml:"singletreasure_activity_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoSingletreasureActivityCreateResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/singletreasure/TaobaoSingletreasureActivityCreateResultDto.go b/model/singletreasure/TaobaoSingletreasureActivityCreateResultDto.go new file mode 100644 index 0000000000..6218652922 --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityCreateResultDto.go @@ -0,0 +1,13 @@ +package singletreasure + +// TaobaoSingletreasureActivityCreateResultDto +type TaobaoSingletreasureActivityCreateResultDto struct { + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 新建套餐 id + Data int64 `json:"data,omitempty" xml:"data,omitempty"` + // 错误编码 + Code int64 `json:"code,omitempty" xml:"code,omitempty"` + // 系统执行成功与否 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityDeleteAPIRequest.go b/model/singletreasure/TaobaoSingletreasureActivityDeleteAPIRequest.go new file mode 100644 index 0000000000..c89c2093a2 --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package singletreasure + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除活动接口 API请求 +taobao.singletreasure.activity.delete + +删除优惠活动 +*/ +type TaobaoSingletreasureActivityDeleteAPIRequest struct { + model.Params + // 活动Id + _activityId int64 +} + +// 初始化TaobaoSingletreasureActivityDeleteAPIRequest对象 +func NewTaobaoSingletreasureActivityDeleteRequest() *TaobaoSingletreasureActivityDeleteAPIRequest{ + return &TaobaoSingletreasureActivityDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSingletreasureActivityDeleteAPIRequest) GetApiMethodName() string { + return "taobao.singletreasure.activity.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSingletreasureActivityDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 活动Id +func (r *TaobaoSingletreasureActivityDeleteAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoSingletreasureActivityDeleteAPIRequest) GetActivityId() int64 { + return r._activityId +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityDeleteAPIResponse.go b/model/singletreasure/TaobaoSingletreasureActivityDeleteAPIResponse.go new file mode 100644 index 0000000000..329abd518b --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityDeleteAPIResponse.go @@ -0,0 +1,33 @@ +package singletreasure + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除活动接口 API返回值 +taobao.singletreasure.activity.delete + +删除优惠活动 +*/ +type TaobaoSingletreasureActivityDeleteAPIResponse struct { + model.CommonResponse + TaobaoSingletreasureActivityDeleteAPIResponseModel +} + +// 删除活动接口 成功返回结果 +type TaobaoSingletreasureActivityDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"singletreasure_activity_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 删除是否成功 boolean值 + Data bool `json:"data,omitempty" xml:"data,omitempty"` + // 错误码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 系统执行是否成功 + ResultStatus bool `json:"result_status,omitempty" xml:"result_status,omitempty"` +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityDeleteResponse.go b/model/singletreasure/TaobaoSingletreasureActivityDeleteResponse.go deleted file mode 100644 index f17ba82036..0000000000 --- a/model/singletreasure/TaobaoSingletreasureActivityDeleteResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package singletreasure - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除活动接口 API返回值 -taobao.singletreasure.activity.delete - -删除优惠活动 -*/ -type TaobaoSingletreasureActivityDeleteAPIResponse struct { - model.CommonResponse - TaobaoSingletreasureActivityDeleteResponse -} - -// 删除活动接口 成功返回结果 -type TaobaoSingletreasureActivityDeleteResponse struct { - XMLName xml.Name `xml:"singletreasure_activity_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 删除是否成功 boolean值 - Data bool `json:"data,omitempty" xml:"data,omitempty"` - // 错误码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 系统执行是否成功 - ResultStatus bool `json:"result_status,omitempty" xml:"result_status,omitempty"` -} diff --git a/model/singletreasure/TaobaoSingletreasureActivityItemBatchaddAPIRequest.go b/model/singletreasure/TaobaoSingletreasureActivityItemBatchaddAPIRequest.go new file mode 100644 index 0000000000..ea6f93a673 --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityItemBatchaddAPIRequest.go @@ -0,0 +1,52 @@ +package singletreasure + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量添加商品接口 API请求 +taobao.singletreasure.activity.item.batchadd + +向活动中批量添加商品优惠 +*/ +type TaobaoSingletreasureActivityItemBatchaddAPIRequest struct { + model.Params + // 系统入参 + _itemDetailInfo *ItemDetailInfoBatchCreateDto +} + +// 初始化TaobaoSingletreasureActivityItemBatchaddAPIRequest对象 +func NewTaobaoSingletreasureActivityItemBatchaddRequest() *TaobaoSingletreasureActivityItemBatchaddAPIRequest{ + return &TaobaoSingletreasureActivityItemBatchaddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSingletreasureActivityItemBatchaddAPIRequest) GetApiMethodName() string { + return "taobao.singletreasure.activity.item.batchadd" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSingletreasureActivityItemBatchaddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemDetailInfo Setter +// 系统入参 +func (r *TaobaoSingletreasureActivityItemBatchaddAPIRequest) SetItemDetailInfo(_itemDetailInfo *ItemDetailInfoBatchCreateDto) error { + r._itemDetailInfo = _itemDetailInfo + r.Set("item_detail_info", _itemDetailInfo) + return nil +} + +// ItemDetailInfo Getter +func (r TaobaoSingletreasureActivityItemBatchaddAPIRequest) GetItemDetailInfo() *ItemDetailInfoBatchCreateDto { + return r._itemDetailInfo +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityItemBatchaddAPIResponse.go b/model/singletreasure/TaobaoSingletreasureActivityItemBatchaddAPIResponse.go new file mode 100644 index 0000000000..0d7dea7039 --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityItemBatchaddAPIResponse.go @@ -0,0 +1,27 @@ +package singletreasure + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量添加商品接口 API返回值 +taobao.singletreasure.activity.item.batchadd + +向活动中批量添加商品优惠 +*/ +type TaobaoSingletreasureActivityItemBatchaddAPIResponse struct { + model.CommonResponse + TaobaoSingletreasureActivityItemBatchaddAPIResponseModel +} + +// 批量添加商品接口 成功返回结果 +type TaobaoSingletreasureActivityItemBatchaddAPIResponseModel struct { + XMLName xml.Name `xml:"singletreasure_activity_item_batchadd_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoSingletreasureActivityItemBatchaddResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityItemBatchaddResponse.go b/model/singletreasure/TaobaoSingletreasureActivityItemBatchaddResponse.go deleted file mode 100644 index 0f6d8954fe..0000000000 --- a/model/singletreasure/TaobaoSingletreasureActivityItemBatchaddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package singletreasure - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量添加商品接口 API返回值 -taobao.singletreasure.activity.item.batchadd - -向活动中批量添加商品优惠 -*/ -type TaobaoSingletreasureActivityItemBatchaddAPIResponse struct { - model.CommonResponse - TaobaoSingletreasureActivityItemBatchaddResponse -} - -// 批量添加商品接口 成功返回结果 -type TaobaoSingletreasureActivityItemBatchaddResponse struct { - XMLName xml.Name `xml:"singletreasure_activity_item_batchadd_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoSingletreasureActivityItemBatchaddResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/singletreasure/TaobaoSingletreasureActivityItemBatchaddResultDto.go b/model/singletreasure/TaobaoSingletreasureActivityItemBatchaddResultDto.go new file mode 100644 index 0000000000..c5da7c101a --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityItemBatchaddResultDto.go @@ -0,0 +1,13 @@ +package singletreasure + +// TaobaoSingletreasureActivityItemBatchaddResultDto +type TaobaoSingletreasureActivityItemBatchaddResultDto struct { + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // data + Data *ItemProcessErrorResultDto `json:"data,omitempty" xml:"data,omitempty"` + // code + Code int64 `json:"code,omitempty" xml:"code,omitempty"` + // success + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityItemBatchupdateAPIRequest.go b/model/singletreasure/TaobaoSingletreasureActivityItemBatchupdateAPIRequest.go new file mode 100644 index 0000000000..9eac6e93d7 --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityItemBatchupdateAPIRequest.go @@ -0,0 +1,52 @@ +package singletreasure + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量修改商品接口 API请求 +taobao.singletreasure.activity.item.batchupdate + +批量修改商品优惠接口 +*/ +type TaobaoSingletreasureActivityItemBatchupdateAPIRequest struct { + model.Params + // 系统入参 + _itemDetailInfo *ItemDetailInfoBatchCreateDto +} + +// 初始化TaobaoSingletreasureActivityItemBatchupdateAPIRequest对象 +func NewTaobaoSingletreasureActivityItemBatchupdateRequest() *TaobaoSingletreasureActivityItemBatchupdateAPIRequest{ + return &TaobaoSingletreasureActivityItemBatchupdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSingletreasureActivityItemBatchupdateAPIRequest) GetApiMethodName() string { + return "taobao.singletreasure.activity.item.batchupdate" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSingletreasureActivityItemBatchupdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemDetailInfo Setter +// 系统入参 +func (r *TaobaoSingletreasureActivityItemBatchupdateAPIRequest) SetItemDetailInfo(_itemDetailInfo *ItemDetailInfoBatchCreateDto) error { + r._itemDetailInfo = _itemDetailInfo + r.Set("item_detail_info", _itemDetailInfo) + return nil +} + +// ItemDetailInfo Getter +func (r TaobaoSingletreasureActivityItemBatchupdateAPIRequest) GetItemDetailInfo() *ItemDetailInfoBatchCreateDto { + return r._itemDetailInfo +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityItemBatchupdateAPIResponse.go b/model/singletreasure/TaobaoSingletreasureActivityItemBatchupdateAPIResponse.go new file mode 100644 index 0000000000..83828d9d04 --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityItemBatchupdateAPIResponse.go @@ -0,0 +1,27 @@ +package singletreasure + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量修改商品接口 API返回值 +taobao.singletreasure.activity.item.batchupdate + +批量修改商品优惠接口 +*/ +type TaobaoSingletreasureActivityItemBatchupdateAPIResponse struct { + model.CommonResponse + TaobaoSingletreasureActivityItemBatchupdateAPIResponseModel +} + +// 批量修改商品接口 成功返回结果 +type TaobaoSingletreasureActivityItemBatchupdateAPIResponseModel struct { + XMLName xml.Name `xml:"singletreasure_activity_item_batchupdate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoSingletreasureActivityItemBatchupdateResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityItemBatchupdateResponse.go b/model/singletreasure/TaobaoSingletreasureActivityItemBatchupdateResponse.go deleted file mode 100644 index 3970a54e8a..0000000000 --- a/model/singletreasure/TaobaoSingletreasureActivityItemBatchupdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package singletreasure - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量修改商品接口 API返回值 -taobao.singletreasure.activity.item.batchupdate - -批量修改商品优惠接口 -*/ -type TaobaoSingletreasureActivityItemBatchupdateAPIResponse struct { - model.CommonResponse - TaobaoSingletreasureActivityItemBatchupdateResponse -} - -// 批量修改商品接口 成功返回结果 -type TaobaoSingletreasureActivityItemBatchupdateResponse struct { - XMLName xml.Name `xml:"singletreasure_activity_item_batchupdate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoSingletreasureActivityItemBatchupdateResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/singletreasure/TaobaoSingletreasureActivityItemBatchupdateResultDto.go b/model/singletreasure/TaobaoSingletreasureActivityItemBatchupdateResultDto.go new file mode 100644 index 0000000000..f3472a93bc --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityItemBatchupdateResultDto.go @@ -0,0 +1,13 @@ +package singletreasure + +// TaobaoSingletreasureActivityItemBatchupdateResultDto +type TaobaoSingletreasureActivityItemBatchupdateResultDto struct { + // 返回的描述信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回所有的处理错误的信息 + Data *ItemProcessErrorResultDto `json:"data,omitempty" xml:"data,omitempty"` + // 处理结果 + Code int64 `json:"code,omitempty" xml:"code,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityItemDeleteAPIRequest.go b/model/singletreasure/TaobaoSingletreasureActivityItemDeleteAPIRequest.go new file mode 100644 index 0000000000..d5be7200d5 --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityItemDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package singletreasure + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除单品优惠接口 API请求 +taobao.singletreasure.activity.item.delete + +删除单品优惠接口 +*/ +type TaobaoSingletreasureActivityItemDeleteAPIRequest struct { + model.Params + // 活动id + _activityId int64 + // 商品Id + _itemId int64 +} + +// 初始化TaobaoSingletreasureActivityItemDeleteAPIRequest对象 +func NewTaobaoSingletreasureActivityItemDeleteRequest() *TaobaoSingletreasureActivityItemDeleteAPIRequest{ + return &TaobaoSingletreasureActivityItemDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSingletreasureActivityItemDeleteAPIRequest) GetApiMethodName() string { + return "taobao.singletreasure.activity.item.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSingletreasureActivityItemDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 活动id +func (r *TaobaoSingletreasureActivityItemDeleteAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoSingletreasureActivityItemDeleteAPIRequest) GetActivityId() int64 { + return r._activityId +} +// ItemId Setter +// 商品Id +func (r *TaobaoSingletreasureActivityItemDeleteAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoSingletreasureActivityItemDeleteAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityItemDeleteAPIResponse.go b/model/singletreasure/TaobaoSingletreasureActivityItemDeleteAPIResponse.go new file mode 100644 index 0000000000..84d4da374f --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityItemDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package singletreasure + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除单品优惠接口 API返回值 +taobao.singletreasure.activity.item.delete + +删除单品优惠接口 +*/ +type TaobaoSingletreasureActivityItemDeleteAPIResponse struct { + model.CommonResponse + TaobaoSingletreasureActivityItemDeleteAPIResponseModel +} + +// 删除单品优惠接口 成功返回结果 +type TaobaoSingletreasureActivityItemDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"singletreasure_activity_item_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoSingletreasureActivityItemDeleteResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityItemDeleteResponse.go b/model/singletreasure/TaobaoSingletreasureActivityItemDeleteResponse.go deleted file mode 100644 index 96b741c03e..0000000000 --- a/model/singletreasure/TaobaoSingletreasureActivityItemDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package singletreasure - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除单品优惠接口 API返回值 -taobao.singletreasure.activity.item.delete - -删除单品优惠接口 -*/ -type TaobaoSingletreasureActivityItemDeleteAPIResponse struct { - model.CommonResponse - TaobaoSingletreasureActivityItemDeleteResponse -} - -// 删除单品优惠接口 成功返回结果 -type TaobaoSingletreasureActivityItemDeleteResponse struct { - XMLName xml.Name `xml:"singletreasure_activity_item_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoSingletreasureActivityItemDeleteResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/singletreasure/TaobaoSingletreasureActivityItemDeleteResultDto.go b/model/singletreasure/TaobaoSingletreasureActivityItemDeleteResultDto.go new file mode 100644 index 0000000000..3cccbb99ef --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityItemDeleteResultDto.go @@ -0,0 +1,13 @@ +package singletreasure + +// TaobaoSingletreasureActivityItemDeleteResultDto +type TaobaoSingletreasureActivityItemDeleteResultDto struct { + // 请求返回信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回所有的处理错误的信息 + Data *ItemProcessErrorResultDto `json:"data,omitempty" xml:"data,omitempty"` + // 请求返回码 + Code int64 `json:"code,omitempty" xml:"code,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityItemQueryAPIRequest.go b/model/singletreasure/TaobaoSingletreasureActivityItemQueryAPIRequest.go new file mode 100644 index 0000000000..34bdb5aceb --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityItemQueryAPIRequest.go @@ -0,0 +1,80 @@ +package singletreasure + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询活动下的优惠信息 API请求 +taobao.singletreasure.activity.item.query + +分页查询活动下的商品优惠信息 +*/ +type TaobaoSingletreasureActivityItemQueryAPIRequest struct { + model.Params + // 活动Id + _activityId int64 + // 页大小 + _pageSize int64 + // 页码 + _pageNumber int64 +} + +// 初始化TaobaoSingletreasureActivityItemQueryAPIRequest对象 +func NewTaobaoSingletreasureActivityItemQueryRequest() *TaobaoSingletreasureActivityItemQueryAPIRequest{ + return &TaobaoSingletreasureActivityItemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSingletreasureActivityItemQueryAPIRequest) GetApiMethodName() string { + return "taobao.singletreasure.activity.item.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSingletreasureActivityItemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 活动Id +func (r *TaobaoSingletreasureActivityItemQueryAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoSingletreasureActivityItemQueryAPIRequest) GetActivityId() int64 { + return r._activityId +} +// PageSize Setter +// 页大小 +func (r *TaobaoSingletreasureActivityItemQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoSingletreasureActivityItemQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNumber Setter +// 页码 +func (r *TaobaoSingletreasureActivityItemQueryAPIRequest) SetPageNumber(_pageNumber int64) error { + r._pageNumber = _pageNumber + r.Set("page_number", _pageNumber) + return nil +} + +// PageNumber Getter +func (r TaobaoSingletreasureActivityItemQueryAPIRequest) GetPageNumber() int64 { + return r._pageNumber +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityItemQueryAPIResponse.go b/model/singletreasure/TaobaoSingletreasureActivityItemQueryAPIResponse.go new file mode 100644 index 0000000000..e0eeccb26f --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityItemQueryAPIResponse.go @@ -0,0 +1,27 @@ +package singletreasure + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询活动下的优惠信息 API返回值 +taobao.singletreasure.activity.item.query + +分页查询活动下的商品优惠信息 +*/ +type TaobaoSingletreasureActivityItemQueryAPIResponse struct { + model.CommonResponse + TaobaoSingletreasureActivityItemQueryAPIResponseModel +} + +// 查询活动下的优惠信息 成功返回结果 +type TaobaoSingletreasureActivityItemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"singletreasure_activity_item_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *PageResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityItemQueryResponse.go b/model/singletreasure/TaobaoSingletreasureActivityItemQueryResponse.go deleted file mode 100644 index c28bc6633d..0000000000 --- a/model/singletreasure/TaobaoSingletreasureActivityItemQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package singletreasure - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询活动下的优惠信息 API返回值 -taobao.singletreasure.activity.item.query - -分页查询活动下的商品优惠信息 -*/ -type TaobaoSingletreasureActivityItemQueryAPIResponse struct { - model.CommonResponse - TaobaoSingletreasureActivityItemQueryResponse -} - -// 查询活动下的优惠信息 成功返回结果 -type TaobaoSingletreasureActivityItemQueryResponse struct { - XMLName xml.Name `xml:"singletreasure_activity_item_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *PageResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/singletreasure/TaobaoSingletreasureActivityItemUpdateAPIRequest.go b/model/singletreasure/TaobaoSingletreasureActivityItemUpdateAPIRequest.go new file mode 100644 index 0000000000..aef922efd9 --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityItemUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package singletreasure + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新单品优惠接口 API请求 +taobao.singletreasure.activity.item.update + +更新单品优惠接口 +*/ +type TaobaoSingletreasureActivityItemUpdateAPIRequest struct { + model.Params + // 修改接口的入参对象 + _itemDetailInfo *ItemDetailInfoCreateDto +} + +// 初始化TaobaoSingletreasureActivityItemUpdateAPIRequest对象 +func NewTaobaoSingletreasureActivityItemUpdateRequest() *TaobaoSingletreasureActivityItemUpdateAPIRequest{ + return &TaobaoSingletreasureActivityItemUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSingletreasureActivityItemUpdateAPIRequest) GetApiMethodName() string { + return "taobao.singletreasure.activity.item.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSingletreasureActivityItemUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemDetailInfo Setter +// 修改接口的入参对象 +func (r *TaobaoSingletreasureActivityItemUpdateAPIRequest) SetItemDetailInfo(_itemDetailInfo *ItemDetailInfoCreateDto) error { + r._itemDetailInfo = _itemDetailInfo + r.Set("item_detail_info", _itemDetailInfo) + return nil +} + +// ItemDetailInfo Getter +func (r TaobaoSingletreasureActivityItemUpdateAPIRequest) GetItemDetailInfo() *ItemDetailInfoCreateDto { + return r._itemDetailInfo +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityItemUpdateAPIResponse.go b/model/singletreasure/TaobaoSingletreasureActivityItemUpdateAPIResponse.go new file mode 100644 index 0000000000..692ceb62c2 --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityItemUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package singletreasure + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新单品优惠接口 API返回值 +taobao.singletreasure.activity.item.update + +更新单品优惠接口 +*/ +type TaobaoSingletreasureActivityItemUpdateAPIResponse struct { + model.CommonResponse + TaobaoSingletreasureActivityItemUpdateAPIResponseModel +} + +// 更新单品优惠接口 成功返回结果 +type TaobaoSingletreasureActivityItemUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"singletreasure_activity_item_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoSingletreasureActivityItemUpdateResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityItemUpdateResponse.go b/model/singletreasure/TaobaoSingletreasureActivityItemUpdateResponse.go deleted file mode 100644 index 5e514979e2..0000000000 --- a/model/singletreasure/TaobaoSingletreasureActivityItemUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package singletreasure - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新单品优惠接口 API返回值 -taobao.singletreasure.activity.item.update - -更新单品优惠接口 -*/ -type TaobaoSingletreasureActivityItemUpdateAPIResponse struct { - model.CommonResponse - TaobaoSingletreasureActivityItemUpdateResponse -} - -// 更新单品优惠接口 成功返回结果 -type TaobaoSingletreasureActivityItemUpdateResponse struct { - XMLName xml.Name `xml:"singletreasure_activity_item_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoSingletreasureActivityItemUpdateResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/singletreasure/TaobaoSingletreasureActivityItemUpdateResultDto.go b/model/singletreasure/TaobaoSingletreasureActivityItemUpdateResultDto.go new file mode 100644 index 0000000000..b1e9871e34 --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityItemUpdateResultDto.go @@ -0,0 +1,13 @@ +package singletreasure + +// TaobaoSingletreasureActivityItemUpdateResultDto +type TaobaoSingletreasureActivityItemUpdateResultDto struct { + // 请求返回信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回所有的处理错误的信息 + Data *ItemProcessErrorResultDto `json:"data,omitempty" xml:"data,omitempty"` + // 请求返回码 + Code int64 `json:"code,omitempty" xml:"code,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityNameQueryAPIRequest.go b/model/singletreasure/TaobaoSingletreasureActivityNameQueryAPIRequest.go new file mode 100644 index 0000000000..024af4bd6a --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityNameQueryAPIRequest.go @@ -0,0 +1,38 @@ +package singletreasure + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询官方的活动名称接口 API请求 +taobao.singletreasure.activity.name.query + +查询官方的活动名称列表接口 +*/ +type TaobaoSingletreasureActivityNameQueryAPIRequest struct { + model.Params +} + +// 初始化TaobaoSingletreasureActivityNameQueryAPIRequest对象 +func NewTaobaoSingletreasureActivityNameQueryRequest() *TaobaoSingletreasureActivityNameQueryAPIRequest{ + return &TaobaoSingletreasureActivityNameQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSingletreasureActivityNameQueryAPIRequest) GetApiMethodName() string { + return "taobao.singletreasure.activity.name.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSingletreasureActivityNameQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityNameQueryAPIResponse.go b/model/singletreasure/TaobaoSingletreasureActivityNameQueryAPIResponse.go new file mode 100644 index 0000000000..e777598501 --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityNameQueryAPIResponse.go @@ -0,0 +1,27 @@ +package singletreasure + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询官方的活动名称接口 API返回值 +taobao.singletreasure.activity.name.query + +查询官方的活动名称列表接口 +*/ +type TaobaoSingletreasureActivityNameQueryAPIResponse struct { + model.CommonResponse + TaobaoSingletreasureActivityNameQueryAPIResponseModel +} + +// 查询官方的活动名称接口 成功返回结果 +type TaobaoSingletreasureActivityNameQueryAPIResponseModel struct { + XMLName xml.Name `xml:"singletreasure_activity_name_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoSingletreasureActivityNameQueryResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityNameQueryResponse.go b/model/singletreasure/TaobaoSingletreasureActivityNameQueryResponse.go deleted file mode 100644 index f107eefc69..0000000000 --- a/model/singletreasure/TaobaoSingletreasureActivityNameQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package singletreasure - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询官方的活动名称接口 API返回值 -taobao.singletreasure.activity.name.query - -查询官方的活动名称列表接口 -*/ -type TaobaoSingletreasureActivityNameQueryAPIResponse struct { - model.CommonResponse - TaobaoSingletreasureActivityNameQueryResponse -} - -// 查询官方的活动名称接口 成功返回结果 -type TaobaoSingletreasureActivityNameQueryResponse struct { - XMLName xml.Name `xml:"singletreasure_activity_name_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoSingletreasureActivityNameQueryResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/singletreasure/TaobaoSingletreasureActivityNameQueryResultDto.go b/model/singletreasure/TaobaoSingletreasureActivityNameQueryResultDto.go new file mode 100644 index 0000000000..6841871f53 --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityNameQueryResultDto.go @@ -0,0 +1,13 @@ +package singletreasure + +// TaobaoSingletreasureActivityNameQueryResultDto +type TaobaoSingletreasureActivityNameQueryResultDto struct { + // 请求返回描述信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // data结果 + DataList []ActivityNameCategoryDto `json:"data_list,omitempty" xml:"data_list>activity_name_category_dto,omitempty"` + // 请求返回码 + Code int64 `json:"code,omitempty" xml:"code,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityQueryAPIRequest.go b/model/singletreasure/TaobaoSingletreasureActivityQueryAPIRequest.go new file mode 100644 index 0000000000..fd518d2c83 --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityQueryAPIRequest.go @@ -0,0 +1,52 @@ +package singletreasure + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询活动列表接口 API请求 +taobao.singletreasure.activity.query + +查询活动列表接口 +*/ +type TaobaoSingletreasureActivityQueryAPIRequest struct { + model.Params + // 查询对象 + _query *PageQueryDto +} + +// 初始化TaobaoSingletreasureActivityQueryAPIRequest对象 +func NewTaobaoSingletreasureActivityQueryRequest() *TaobaoSingletreasureActivityQueryAPIRequest{ + return &TaobaoSingletreasureActivityQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSingletreasureActivityQueryAPIRequest) GetApiMethodName() string { + return "taobao.singletreasure.activity.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSingletreasureActivityQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 查询对象 +func (r *TaobaoSingletreasureActivityQueryAPIRequest) SetQuery(_query *PageQueryDto) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r TaobaoSingletreasureActivityQueryAPIRequest) GetQuery() *PageQueryDto { + return r._query +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityQueryAPIResponse.go b/model/singletreasure/TaobaoSingletreasureActivityQueryAPIResponse.go new file mode 100644 index 0000000000..65501d8ac4 --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityQueryAPIResponse.go @@ -0,0 +1,27 @@ +package singletreasure + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询活动列表接口 API返回值 +taobao.singletreasure.activity.query + +查询活动列表接口 +*/ +type TaobaoSingletreasureActivityQueryAPIResponse struct { + model.CommonResponse + TaobaoSingletreasureActivityQueryAPIResponseModel +} + +// 查询活动列表接口 成功返回结果 +type TaobaoSingletreasureActivityQueryAPIResponseModel struct { + XMLName xml.Name `xml:"singletreasure_activity_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoSingletreasureActivityQueryResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityQueryResponse.go b/model/singletreasure/TaobaoSingletreasureActivityQueryResponse.go deleted file mode 100644 index 909c027266..0000000000 --- a/model/singletreasure/TaobaoSingletreasureActivityQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package singletreasure - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询活动列表接口 API返回值 -taobao.singletreasure.activity.query - -查询活动列表接口 -*/ -type TaobaoSingletreasureActivityQueryAPIResponse struct { - model.CommonResponse - TaobaoSingletreasureActivityQueryResponse -} - -// 查询活动列表接口 成功返回结果 -type TaobaoSingletreasureActivityQueryResponse struct { - XMLName xml.Name `xml:"singletreasure_activity_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoSingletreasureActivityQueryResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/singletreasure/TaobaoSingletreasureActivityQueryResultDto.go b/model/singletreasure/TaobaoSingletreasureActivityQueryResultDto.go new file mode 100644 index 0000000000..00e4476cee --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityQueryResultDto.go @@ -0,0 +1,19 @@ +package singletreasure + +// TaobaoSingletreasureActivityQueryResultDto +type TaobaoSingletreasureActivityQueryResultDto struct { + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 查询结果 + DataList []ActivityInfo `json:"data_list,omitempty" xml:"data_list>activity_info,omitempty"` + // 错误编码 + Code int64 `json:"code,omitempty" xml:"code,omitempty"` + // 系统执行是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 页码 + PageNumber int64 `json:"page_number,omitempty" xml:"page_number,omitempty"` + // 总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 返回结果个数 + Size int64 `json:"size,omitempty" xml:"size,omitempty"` +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityUpdateAPIRequest.go b/model/singletreasure/TaobaoSingletreasureActivityUpdateAPIRequest.go new file mode 100644 index 0000000000..1653eb03dd --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package singletreasure + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改活动接口 API请求 +taobao.singletreasure.activity.update + +修改活动接口 +*/ +type TaobaoSingletreasureActivityUpdateAPIRequest struct { + model.Params + // 系统入参 + _activityInfo *ActivityInfoCreateDto +} + +// 初始化TaobaoSingletreasureActivityUpdateAPIRequest对象 +func NewTaobaoSingletreasureActivityUpdateRequest() *TaobaoSingletreasureActivityUpdateAPIRequest{ + return &TaobaoSingletreasureActivityUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSingletreasureActivityUpdateAPIRequest) GetApiMethodName() string { + return "taobao.singletreasure.activity.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSingletreasureActivityUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityInfo Setter +// 系统入参 +func (r *TaobaoSingletreasureActivityUpdateAPIRequest) SetActivityInfo(_activityInfo *ActivityInfoCreateDto) error { + r._activityInfo = _activityInfo + r.Set("activity_info", _activityInfo) + return nil +} + +// ActivityInfo Getter +func (r TaobaoSingletreasureActivityUpdateAPIRequest) GetActivityInfo() *ActivityInfoCreateDto { + return r._activityInfo +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityUpdateAPIResponse.go b/model/singletreasure/TaobaoSingletreasureActivityUpdateAPIResponse.go new file mode 100644 index 0000000000..18bc46e336 --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package singletreasure + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改活动接口 API返回值 +taobao.singletreasure.activity.update + +修改活动接口 +*/ +type TaobaoSingletreasureActivityUpdateAPIResponse struct { + model.CommonResponse + TaobaoSingletreasureActivityUpdateAPIResponseModel +} + +// 修改活动接口 成功返回结果 +type TaobaoSingletreasureActivityUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"singletreasure_activity_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoSingletreasureActivityUpdateResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/singletreasure/TaobaoSingletreasureActivityUpdateResponse.go b/model/singletreasure/TaobaoSingletreasureActivityUpdateResponse.go deleted file mode 100644 index 307b30d632..0000000000 --- a/model/singletreasure/TaobaoSingletreasureActivityUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package singletreasure - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改活动接口 API返回值 -taobao.singletreasure.activity.update - -修改活动接口 -*/ -type TaobaoSingletreasureActivityUpdateAPIResponse struct { - model.CommonResponse - TaobaoSingletreasureActivityUpdateResponse -} - -// 修改活动接口 成功返回结果 -type TaobaoSingletreasureActivityUpdateResponse struct { - XMLName xml.Name `xml:"singletreasure_activity_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoSingletreasureActivityUpdateResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/singletreasure/TaobaoSingletreasureActivityUpdateResultDto.go b/model/singletreasure/TaobaoSingletreasureActivityUpdateResultDto.go new file mode 100644 index 0000000000..bd62b4be18 --- /dev/null +++ b/model/singletreasure/TaobaoSingletreasureActivityUpdateResultDto.go @@ -0,0 +1,13 @@ +package singletreasure + +// TaobaoSingletreasureActivityUpdateResultDto +type TaobaoSingletreasureActivityUpdateResultDto struct { + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 套餐编辑是否成功 + Data bool `json:"data,omitempty" xml:"data,omitempty"` + // 错误编码 + Code int64 `json:"code,omitempty" xml:"code,omitempty"` + // 系统是否执行成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/smartstore/TaobaoIstoreAreasGetAPIRequest.go b/model/smartstore/TaobaoIstoreAreasGetAPIRequest.go new file mode 100644 index 0000000000..92ba9e59cd --- /dev/null +++ b/model/smartstore/TaobaoIstoreAreasGetAPIRequest.go @@ -0,0 +1,53 @@ +package smartstore + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +智慧门店区域编码查询 API请求 +taobao.istore.areas.get + +查询标准地址区域代码信息。可以直接参考最新的行政区域代码: +http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2016/index.html +*/ +type TaobaoIstoreAreasGetAPIRequest struct { + model.Params + // 需返回的字段列表.可选值:Area 结构中的所有字段;多个字段之间用","分隔.如:id,type,name,parent_id,zip. + _fields string +} + +// 初始化TaobaoIstoreAreasGetAPIRequest对象 +func NewTaobaoIstoreAreasGetRequest() *TaobaoIstoreAreasGetAPIRequest{ + return &TaobaoIstoreAreasGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoIstoreAreasGetAPIRequest) GetApiMethodName() string { + return "taobao.istore.areas.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoIstoreAreasGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需返回的字段列表.可选值:Area 结构中的所有字段;多个字段之间用","分隔.如:id,type,name,parent_id,zip. +func (r *TaobaoIstoreAreasGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoIstoreAreasGetAPIRequest) GetFields() string { + return r._fields +} diff --git a/model/smartstore/TaobaoIstoreAreasGetAPIResponse.go b/model/smartstore/TaobaoIstoreAreasGetAPIResponse.go new file mode 100644 index 0000000000..48b502698c --- /dev/null +++ b/model/smartstore/TaobaoIstoreAreasGetAPIResponse.go @@ -0,0 +1,28 @@ +package smartstore + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +智慧门店区域编码查询 API返回值 +taobao.istore.areas.get + +查询标准地址区域代码信息。可以直接参考最新的行政区域代码: +http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2016/index.html +*/ +type TaobaoIstoreAreasGetAPIResponse struct { + model.CommonResponse + TaobaoIstoreAreasGetAPIResponseModel +} + +// 智慧门店区域编码查询 成功返回结果 +type TaobaoIstoreAreasGetAPIResponseModel struct { + XMLName xml.Name `xml:"istore_areas_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 地址区域信息列表.返回的Area包含的具体信息为入参fields请求的字段信息 。 + Areas []Area `json:"areas,omitempty" xml:"areas>area,omitempty"` +} diff --git a/model/smartstore/TaobaoIstoreAreasGetResponse.go b/model/smartstore/TaobaoIstoreAreasGetResponse.go deleted file mode 100644 index 01a075457b..0000000000 --- a/model/smartstore/TaobaoIstoreAreasGetResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package smartstore - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -智慧门店区域编码查询 API返回值 -taobao.istore.areas.get - -查询标准地址区域代码信息。可以直接参考最新的行政区域代码: -http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2016/index.html -*/ -type TaobaoIstoreAreasGetAPIResponse struct { - model.CommonResponse - TaobaoIstoreAreasGetResponse -} - -// 智慧门店区域编码查询 成功返回结果 -type TaobaoIstoreAreasGetResponse struct { - XMLName xml.Name `xml:"istore_areas_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 地址区域信息列表.返回的Area包含的具体信息为入参fields请求的字段信息 。 - Areas []Area `json:"areas,omitempty" xml:"areas>area,omitempty"` -} diff --git a/model/smartstore/TaobaoNrrsAcceptanceTaskUpdateResultAPIRequest.go b/model/smartstore/TaobaoNrrsAcceptanceTaskUpdateResultAPIRequest.go new file mode 100644 index 0000000000..10cc298a37 --- /dev/null +++ b/model/smartstore/TaobaoNrrsAcceptanceTaskUpdateResultAPIRequest.go @@ -0,0 +1,66 @@ +package smartstore + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新验收任务支付宝结果 API请求 +taobao.nrrs.acceptance.task.updateResult + +智慧门店商家验收任务检查相关接口-更新支付宝的验收结果。 +*/ +type TaobaoNrrsAcceptanceTaskUpdateResultAPIRequest struct { + model.Params + // 任务ID + _taskId string + // 系统自动生成 + _alipayResultList []AlipayCheckResult +} + +// 初始化TaobaoNrrsAcceptanceTaskUpdateResultAPIRequest对象 +func NewTaobaoNrrsAcceptanceTaskUpdateResultRequest() *TaobaoNrrsAcceptanceTaskUpdateResultAPIRequest{ + return &TaobaoNrrsAcceptanceTaskUpdateResultAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoNrrsAcceptanceTaskUpdateResultAPIRequest) GetApiMethodName() string { + return "taobao.nrrs.acceptance.task.updateResult" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoNrrsAcceptanceTaskUpdateResultAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TaskId Setter +// 任务ID +func (r *TaobaoNrrsAcceptanceTaskUpdateResultAPIRequest) SetTaskId(_taskId string) error { + r._taskId = _taskId + r.Set("task_id", _taskId) + return nil +} + +// TaskId Getter +func (r TaobaoNrrsAcceptanceTaskUpdateResultAPIRequest) GetTaskId() string { + return r._taskId +} +// AlipayResultList Setter +// 系统自动生成 +func (r *TaobaoNrrsAcceptanceTaskUpdateResultAPIRequest) SetAlipayResultList(_alipayResultList []AlipayCheckResult) error { + r._alipayResultList = _alipayResultList + r.Set("alipay_result_list", _alipayResultList) + return nil +} + +// AlipayResultList Getter +func (r TaobaoNrrsAcceptanceTaskUpdateResultAPIRequest) GetAlipayResultList() []AlipayCheckResult { + return r._alipayResultList +} diff --git a/model/smartstore/TaobaoNrrsAcceptanceTaskUpdateResultAPIResponse.go b/model/smartstore/TaobaoNrrsAcceptanceTaskUpdateResultAPIResponse.go new file mode 100644 index 0000000000..6f17ac8a12 --- /dev/null +++ b/model/smartstore/TaobaoNrrsAcceptanceTaskUpdateResultAPIResponse.go @@ -0,0 +1,27 @@ +package smartstore + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新验收任务支付宝结果 API返回值 +taobao.nrrs.acceptance.task.updateResult + +智慧门店商家验收任务检查相关接口-更新支付宝的验收结果。 +*/ +type TaobaoNrrsAcceptanceTaskUpdateResultAPIResponse struct { + model.CommonResponse + TaobaoNrrsAcceptanceTaskUpdateResultAPIResponseModel +} + +// 更新验收任务支付宝结果 成功返回结果 +type TaobaoNrrsAcceptanceTaskUpdateResultAPIResponseModel struct { + XMLName xml.Name `xml:"nrrs_acceptance_task_updateResult_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/smartstore/TaobaoNrrsAcceptanceTaskUpdateResultResponse.go b/model/smartstore/TaobaoNrrsAcceptanceTaskUpdateResultResponse.go deleted file mode 100644 index 77b50d66da..0000000000 --- a/model/smartstore/TaobaoNrrsAcceptanceTaskUpdateResultResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package smartstore - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新验收任务支付宝结果 API返回值 -taobao.nrrs.acceptance.task.updateResult - -智慧门店商家验收任务检查相关接口-更新支付宝的验收结果。 -*/ -type TaobaoNrrsAcceptanceTaskUpdateResultAPIResponse struct { - model.CommonResponse - TaobaoNrrsAcceptanceTaskUpdateResultResponse -} - -// 更新验收任务支付宝结果 成功返回结果 -type TaobaoNrrsAcceptanceTaskUpdateResultResponse struct { - XMLName xml.Name `xml:"nrrs_acceptance_task_updateResult_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/smartstore/TaobaoSmartstoreDeviceAddAPIRequest.go b/model/smartstore/TaobaoSmartstoreDeviceAddAPIRequest.go new file mode 100644 index 0000000000..2b9d877eae --- /dev/null +++ b/model/smartstore/TaobaoSmartstoreDeviceAddAPIRequest.go @@ -0,0 +1,136 @@ +package smartstore + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +智慧门店设备创建 API请求 +taobao.smartstore.device.add + +智慧门店设备创建 +*/ +type TaobaoSmartstoreDeviceAddAPIRequest struct { + model.Params + // mac地址 + _mac string + // 设备在店内的位置,以文字描述 + _indoorPosition string + // 设备名称 + _deviceName string + // 门店ID + _storeId int64 + // 操作系统类型:WINDOWS("WINDOWS", "WINDOWS"), ANDROID("ANDROID", "ANDROID"), IOS("IOS", "IOS"), LINUX("LINUX", "LINUX"), OTHER("OTHER", "OTHER"); + _osType string + // 设备类型: CAMERA("CAMERA", "客流摄像头"), SHELF("SHELF", "云货架"), MAKEUP_MIRROR("MAKEUP_MIRROR", "试妆镜"), FITTING_MIRROR("FITTING_MIRROR", "试衣镜"), VENDOR("VENDOR", "售货机"), SAMPLE_MACHINE("SAMPLE_MACHINE","派样机"), DOLL_MACHINE("DOLL_MACHINE", "娃娃机"), INTERACTIVE_PHOTO("INTERACTIVE_PHOTO", "互动拍照"), INTERACTIVE_GAME("INTERACTIVE_GAME", "互动游戏"), USHER_SCREEN("USHER_SCREEN", "智慧迎宾屏"), DRESSING("DRESSING", "闪电换装"), MAGIC_MIRROR("MAGIC_MIRROR", "百搭魔镜"), SHOES_FITTING_MIRROR("SHOES_FITTING_MIRROR", "试鞋镜"), SKIN_DETECTION("SKIN_DETECTION", "肌肤测试仪"), FOOT_DETECTION("FOOT_DETECTION", "测脚仪"), RFID_SENSOR("RFID_SENSOR", "RFID"),touch_machine("touch_machine","导购一体屏") + _deviceType string + // 商家自定义设备编码 + _outerCode string +} + +// 初始化TaobaoSmartstoreDeviceAddAPIRequest对象 +func NewTaobaoSmartstoreDeviceAddRequest() *TaobaoSmartstoreDeviceAddAPIRequest{ + return &TaobaoSmartstoreDeviceAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSmartstoreDeviceAddAPIRequest) GetApiMethodName() string { + return "taobao.smartstore.device.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSmartstoreDeviceAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Mac Setter +// mac地址 +func (r *TaobaoSmartstoreDeviceAddAPIRequest) SetMac(_mac string) error { + r._mac = _mac + r.Set("mac", _mac) + return nil +} + +// Mac Getter +func (r TaobaoSmartstoreDeviceAddAPIRequest) GetMac() string { + return r._mac +} +// IndoorPosition Setter +// 设备在店内的位置,以文字描述 +func (r *TaobaoSmartstoreDeviceAddAPIRequest) SetIndoorPosition(_indoorPosition string) error { + r._indoorPosition = _indoorPosition + r.Set("indoor_position", _indoorPosition) + return nil +} + +// IndoorPosition Getter +func (r TaobaoSmartstoreDeviceAddAPIRequest) GetIndoorPosition() string { + return r._indoorPosition +} +// DeviceName Setter +// 设备名称 +func (r *TaobaoSmartstoreDeviceAddAPIRequest) SetDeviceName(_deviceName string) error { + r._deviceName = _deviceName + r.Set("device_name", _deviceName) + return nil +} + +// DeviceName Getter +func (r TaobaoSmartstoreDeviceAddAPIRequest) GetDeviceName() string { + return r._deviceName +} +// StoreId Setter +// 门店ID +func (r *TaobaoSmartstoreDeviceAddAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoSmartstoreDeviceAddAPIRequest) GetStoreId() int64 { + return r._storeId +} +// OsType Setter +// 操作系统类型:WINDOWS("WINDOWS", "WINDOWS"), ANDROID("ANDROID", "ANDROID"), IOS("IOS", "IOS"), LINUX("LINUX", "LINUX"), OTHER("OTHER", "OTHER"); +func (r *TaobaoSmartstoreDeviceAddAPIRequest) SetOsType(_osType string) error { + r._osType = _osType + r.Set("os_type", _osType) + return nil +} + +// OsType Getter +func (r TaobaoSmartstoreDeviceAddAPIRequest) GetOsType() string { + return r._osType +} +// DeviceType Setter +// 设备类型: CAMERA("CAMERA", "客流摄像头"), SHELF("SHELF", "云货架"), MAKEUP_MIRROR("MAKEUP_MIRROR", "试妆镜"), FITTING_MIRROR("FITTING_MIRROR", "试衣镜"), VENDOR("VENDOR", "售货机"), SAMPLE_MACHINE("SAMPLE_MACHINE","派样机"), DOLL_MACHINE("DOLL_MACHINE", "娃娃机"), INTERACTIVE_PHOTO("INTERACTIVE_PHOTO", "互动拍照"), INTERACTIVE_GAME("INTERACTIVE_GAME", "互动游戏"), USHER_SCREEN("USHER_SCREEN", "智慧迎宾屏"), DRESSING("DRESSING", "闪电换装"), MAGIC_MIRROR("MAGIC_MIRROR", "百搭魔镜"), SHOES_FITTING_MIRROR("SHOES_FITTING_MIRROR", "试鞋镜"), SKIN_DETECTION("SKIN_DETECTION", "肌肤测试仪"), FOOT_DETECTION("FOOT_DETECTION", "测脚仪"), RFID_SENSOR("RFID_SENSOR", "RFID"),touch_machine("touch_machine","导购一体屏") +func (r *TaobaoSmartstoreDeviceAddAPIRequest) SetDeviceType(_deviceType string) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r TaobaoSmartstoreDeviceAddAPIRequest) GetDeviceType() string { + return r._deviceType +} +// OuterCode Setter +// 商家自定义设备编码 +func (r *TaobaoSmartstoreDeviceAddAPIRequest) SetOuterCode(_outerCode string) error { + r._outerCode = _outerCode + r.Set("outer_code", _outerCode) + return nil +} + +// OuterCode Getter +func (r TaobaoSmartstoreDeviceAddAPIRequest) GetOuterCode() string { + return r._outerCode +} diff --git a/model/smartstore/TaobaoSmartstoreDeviceAddAPIResponse.go b/model/smartstore/TaobaoSmartstoreDeviceAddAPIResponse.go new file mode 100644 index 0000000000..1f6630c08f --- /dev/null +++ b/model/smartstore/TaobaoSmartstoreDeviceAddAPIResponse.go @@ -0,0 +1,27 @@ +package smartstore + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +智慧门店设备创建 API返回值 +taobao.smartstore.device.add + +智慧门店设备创建 +*/ +type TaobaoSmartstoreDeviceAddAPIResponse struct { + model.CommonResponse + TaobaoSmartstoreDeviceAddAPIResponseModel +} + +// 智慧门店设备创建 成功返回结果 +type TaobaoSmartstoreDeviceAddAPIResponseModel struct { + XMLName xml.Name `xml:"smartstore_device_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 设备号 + DeviceCode string `json:"device_code,omitempty" xml:"device_code,omitempty"` +} diff --git a/model/smartstore/TaobaoSmartstoreDeviceAddResponse.go b/model/smartstore/TaobaoSmartstoreDeviceAddResponse.go deleted file mode 100644 index 495924eabb..0000000000 --- a/model/smartstore/TaobaoSmartstoreDeviceAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package smartstore - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -智慧门店设备创建 API返回值 -taobao.smartstore.device.add - -智慧门店设备创建 -*/ -type TaobaoSmartstoreDeviceAddAPIResponse struct { - model.CommonResponse - TaobaoSmartstoreDeviceAddResponse -} - -// 智慧门店设备创建 成功返回结果 -type TaobaoSmartstoreDeviceAddResponse struct { - XMLName xml.Name `xml:"smartstore_device_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 设备号 - DeviceCode string `json:"device_code,omitempty" xml:"device_code,omitempty"` -} diff --git a/model/smartstore/TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIRequest.go b/model/smartstore/TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIRequest.go new file mode 100644 index 0000000000..6a08bea43f --- /dev/null +++ b/model/smartstore/TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIRequest.go @@ -0,0 +1,70 @@ +package smartstore + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +智能硬件互动云货架批量数据回流 API请求 +taobao.smartstore.device.iashelf.batch.feedback + +智慧门店互动云货架设备批量回流, +只能回流单个设备的批量业务数据 +规则: +1. 回流的设备属于当前授权的用户 +2. 回流的设备属于当前应用添加 +*/ +type TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIRequest struct { + model.Params + // 硬件CODE + _deviceCode string + // 回流数据数组,一次最多100条 + _datas []DeviceBizDataDo +} + +// 初始化TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIRequest对象 +func NewTaobaoSmartstoreDeviceIashelfBatchFeedbackRequest() *TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIRequest{ + return &TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIRequest) GetApiMethodName() string { + return "taobao.smartstore.device.iashelf.batch.feedback" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceCode Setter +// 硬件CODE +func (r *TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// Datas Setter +// 回流数据数组,一次最多100条 +func (r *TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIRequest) SetDatas(_datas []DeviceBizDataDo) error { + r._datas = _datas + r.Set("datas", _datas) + return nil +} + +// Datas Getter +func (r TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIRequest) GetDatas() []DeviceBizDataDo { + return r._datas +} diff --git a/model/smartstore/TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIResponse.go b/model/smartstore/TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIResponse.go new file mode 100644 index 0000000000..d39702222b --- /dev/null +++ b/model/smartstore/TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIResponse.go @@ -0,0 +1,31 @@ +package smartstore + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +智能硬件互动云货架批量数据回流 API返回值 +taobao.smartstore.device.iashelf.batch.feedback + +智慧门店互动云货架设备批量回流, +只能回流单个设备的批量业务数据 +规则: +1. 回流的设备属于当前授权的用户 +2. 回流的设备属于当前应用添加 +*/ +type TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIResponse struct { + model.CommonResponse + TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIResponseModel +} + +// 智能硬件互动云货架批量数据回流 成功返回结果 +type TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIResponseModel struct { + XMLName xml.Name `xml:"smartstore_device_iashelf_batch_feedback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 回流结果 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/smartstore/TaobaoSmartstoreDeviceIashelfBatchFeedbackResponse.go b/model/smartstore/TaobaoSmartstoreDeviceIashelfBatchFeedbackResponse.go deleted file mode 100644 index 59a687379e..0000000000 --- a/model/smartstore/TaobaoSmartstoreDeviceIashelfBatchFeedbackResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package smartstore - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -智能硬件互动云货架批量数据回流 API返回值 -taobao.smartstore.device.iashelf.batch.feedback - -智慧门店互动云货架设备批量回流, -只能回流单个设备的批量业务数据 -规则: -1. 回流的设备属于当前授权的用户 -2. 回流的设备属于当前应用添加 -*/ -type TaobaoSmartstoreDeviceIashelfBatchFeedbackAPIResponse struct { - model.CommonResponse - TaobaoSmartstoreDeviceIashelfBatchFeedbackResponse -} - -// 智能硬件互动云货架批量数据回流 成功返回结果 -type TaobaoSmartstoreDeviceIashelfBatchFeedbackResponse struct { - XMLName xml.Name `xml:"smartstore_device_iashelf_batch_feedback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 回流结果 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/smartstore/TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest.go b/model/smartstore/TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest.go new file mode 100644 index 0000000000..a600962cb8 --- /dev/null +++ b/model/smartstore/TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest.go @@ -0,0 +1,184 @@ +package smartstore + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +智能硬件云货架数据回流 API请求 +taobao.smartstore.device.iashelf.feedback + +智慧门店云货架设备回流规则:(互动云货架、VR云货架通用)
+1.回流的数据属于当前授权的用户,回流的设备device_code由当前应用添加
+2.对于快闪店的智能硬件不需要授权
+3.每一个action都必须传入用户操作时间op_time(start/end_time后续废弃)
+4.action为ITEM_CLICK、ITEM_SENSOR、BUY_CLICK时,item_id必须传入,且必须是淘宝商品的数字id
+5.outer_biz_id 用于硬件设备大量数据回流场景,服务商本地日志统计系统对一条日志记录生成唯一标识。 平台后端会对传入的outer_biz_id 做去重处理
+6.outer_user 用于标识不能获取淘宝账号的游客
+*/ +type TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest struct { + model.Params + // 硬件CODE + _deviceCode string + // 字段废弃 + _endTime string + // 字段废弃,考虑兼容,等同于op_time,两个必须传一个 + _startTime string + // ACTION枚举值: BODY_SENSOR(通过人体感应、人脸识别成功识别到人) ITEM_SENSOR(通过RFID、蓝牙等感应设备识别商品,必须设置ITEM_ID) ITEM_CLICK(商品点击时必须设置ITEM_ID) RECEIVE_COUPONS(扫码领取优惠券时必须设置COUPON_ID) BUY_CLICK(点击购买,必须设置ITEM_ID) SHARE_CLICK(点击分享) + _action string + // 商品ID,item_id 在action为ITEM_CLICK、ITEM_SENSOR、BUY_CLICK必须传入; 必须使用淘宝商品id,否则失败。 + _itemId string + // "例如官方领取优惠券链接里的activityId: https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=2649119619&activityId=9d390579777e41a981b54aa4d6154f5e" + _couponId string + // 数据外部编码,保证数据唯一性 + _outerBizId string + // 操作时间,后续统一使用该字段,考虑兼容,start_time跟该字段含义一致 + _opTime string + // 用户昵称(混淆) + _userNick string + // 硬件识别的用户标识 + _outerUser string +} + +// 初始化TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest对象 +func NewTaobaoSmartstoreDeviceIashelfFeedbackRequest() *TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest{ + return &TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) GetApiMethodName() string { + return "taobao.smartstore.device.iashelf.feedback" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceCode Setter +// 硬件CODE +func (r *TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// EndTime Setter +// 字段废弃 +func (r *TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) GetEndTime() string { + return r._endTime +} +// StartTime Setter +// 字段废弃,考虑兼容,等同于op_time,两个必须传一个 +func (r *TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) GetStartTime() string { + return r._startTime +} +// Action Setter +// ACTION枚举值: BODY_SENSOR(通过人体感应、人脸识别成功识别到人) ITEM_SENSOR(通过RFID、蓝牙等感应设备识别商品,必须设置ITEM_ID) ITEM_CLICK(商品点击时必须设置ITEM_ID) RECEIVE_COUPONS(扫码领取优惠券时必须设置COUPON_ID) BUY_CLICK(点击购买,必须设置ITEM_ID) SHARE_CLICK(点击分享) +func (r *TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) SetAction(_action string) error { + r._action = _action + r.Set("action", _action) + return nil +} + +// Action Getter +func (r TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) GetAction() string { + return r._action +} +// ItemId Setter +// 商品ID,item_id 在action为ITEM_CLICK、ITEM_SENSOR、BUY_CLICK必须传入; 必须使用淘宝商品id,否则失败。 +func (r *TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) SetItemId(_itemId string) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) GetItemId() string { + return r._itemId +} +// CouponId Setter +// "例如官方领取优惠券链接里的activityId: https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=2649119619&activityId=9d390579777e41a981b54aa4d6154f5e" +func (r *TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) SetCouponId(_couponId string) error { + r._couponId = _couponId + r.Set("coupon_id", _couponId) + return nil +} + +// CouponId Getter +func (r TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) GetCouponId() string { + return r._couponId +} +// OuterBizId Setter +// 数据外部编码,保证数据唯一性 +func (r *TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) SetOuterBizId(_outerBizId string) error { + r._outerBizId = _outerBizId + r.Set("outer_biz_id", _outerBizId) + return nil +} + +// OuterBizId Getter +func (r TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) GetOuterBizId() string { + return r._outerBizId +} +// OpTime Setter +// 操作时间,后续统一使用该字段,考虑兼容,start_time跟该字段含义一致 +func (r *TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) SetOpTime(_opTime string) error { + r._opTime = _opTime + r.Set("op_time", _opTime) + return nil +} + +// OpTime Getter +func (r TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) GetOpTime() string { + return r._opTime +} +// UserNick Setter +// 用户昵称(混淆) +func (r *TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) GetUserNick() string { + return r._userNick +} +// OuterUser Setter +// 硬件识别的用户标识 +func (r *TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) SetOuterUser(_outerUser string) error { + r._outerUser = _outerUser + r.Set("outer_user", _outerUser) + return nil +} + +// OuterUser Getter +func (r TaobaoSmartstoreDeviceIashelfFeedbackAPIRequest) GetOuterUser() string { + return r._outerUser +} diff --git a/model/smartstore/TaobaoSmartstoreDeviceIashelfFeedbackAPIResponse.go b/model/smartstore/TaobaoSmartstoreDeviceIashelfFeedbackAPIResponse.go new file mode 100644 index 0000000000..a0d608352b --- /dev/null +++ b/model/smartstore/TaobaoSmartstoreDeviceIashelfFeedbackAPIResponse.go @@ -0,0 +1,33 @@ +package smartstore + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +智能硬件云货架数据回流 API返回值 +taobao.smartstore.device.iashelf.feedback + +智慧门店云货架设备回流规则:(互动云货架、VR云货架通用)
+1.回流的数据属于当前授权的用户,回流的设备device_code由当前应用添加
+2.对于快闪店的智能硬件不需要授权
+3.每一个action都必须传入用户操作时间op_time(start/end_time后续废弃)
+4.action为ITEM_CLICK、ITEM_SENSOR、BUY_CLICK时,item_id必须传入,且必须是淘宝商品的数字id
+5.outer_biz_id 用于硬件设备大量数据回流场景,服务商本地日志统计系统对一条日志记录生成唯一标识。 平台后端会对传入的outer_biz_id 做去重处理
+6.outer_user 用于标识不能获取淘宝账号的游客
+*/ +type TaobaoSmartstoreDeviceIashelfFeedbackAPIResponse struct { + model.CommonResponse + TaobaoSmartstoreDeviceIashelfFeedbackAPIResponseModel +} + +// 智能硬件云货架数据回流 成功返回结果 +type TaobaoSmartstoreDeviceIashelfFeedbackAPIResponseModel struct { + XMLName xml.Name `xml:"smartstore_device_iashelf_feedback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 回流结果 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/smartstore/TaobaoSmartstoreDeviceIashelfFeedbackResponse.go b/model/smartstore/TaobaoSmartstoreDeviceIashelfFeedbackResponse.go deleted file mode 100644 index 97e9adfc21..0000000000 --- a/model/smartstore/TaobaoSmartstoreDeviceIashelfFeedbackResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package smartstore - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -智能硬件云货架数据回流 API返回值 -taobao.smartstore.device.iashelf.feedback - -智慧门店云货架设备回流规则:(互动云货架、VR云货架通用)
-1.回流的数据属于当前授权的用户,回流的设备device_code由当前应用添加
-2.对于快闪店的智能硬件不需要授权
-3.每一个action都必须传入用户操作时间op_time(start/end_time后续废弃)
-4.action为ITEM_CLICK、ITEM_SENSOR、BUY_CLICK时,item_id必须传入,且必须是淘宝商品的数字id
-5.outer_biz_id 用于硬件设备大量数据回流场景,服务商本地日志统计系统对一条日志记录生成唯一标识。 平台后端会对传入的outer_biz_id 做去重处理
-6.outer_user 用于标识不能获取淘宝账号的游客
-*/ -type TaobaoSmartstoreDeviceIashelfFeedbackAPIResponse struct { - model.CommonResponse - TaobaoSmartstoreDeviceIashelfFeedbackResponse -} - -// 智能硬件云货架数据回流 成功返回结果 -type TaobaoSmartstoreDeviceIashelfFeedbackResponse struct { - XMLName xml.Name `xml:"smartstore_device_iashelf_feedback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 回流结果 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/smartstore/TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest.go b/model/smartstore/TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest.go new file mode 100644 index 0000000000..1e38a7f3d0 --- /dev/null +++ b/model/smartstore/TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest.go @@ -0,0 +1,227 @@ +package smartstore + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +智能硬件试妆镜数据回流 API请求 +taobao.smartstore.device.makeupmirror.feedback + +智慧门店试妆镜设备回流规则(适用于试妆镜等)
+1.回流的数据属于当前授权的用户,回流的设备device_code由当前应用添加
+2.对于快闪店的智能硬件不需要授权
+3.action为SKU_CLICK时,sku_id必须传入
+4.action为ITEM_CLICK、SAMPLE_CLICK、BUY_CLICK、ITEM_FAVOR时,item_id必须传入,且必须是淘宝商品的数字id
+5.skin_detection 和scalp_detection 涉及相关检测功能的硬件设备回传
+6.每一个acion都必须传入用户操作时间op_time
+7.outer_biz_id 用于硬件设备大量数据回流场景,服务商本地日志统计系统对一条日志记录生成唯一标识。 平台后端会对传入的outer_biz_id 做去重处理
+*/ +type TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest struct { + model.Params + // 肌肤检测结果,"1. Moisture 水份/ 2. Sebum (U/T Zone) 油份(U/T区)/ 3. Pore 毛孔 4. Melanin 色斑 5. Acne (UV) 暗疮(紫外线) 6. Wrinkle 皱纹 7. Sensitivity 敏感度 数字指标: 行业平均值 industry_average 当前顾客数值 current_customer 检测结果 detection_result 检测描述 detection_description 数字指标可以为空,但是单个key请务必完整。如 ""detection_result"":"""" { ""moisture"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""湿度高"", ""detection_description"":""完美的肌肤特质"" }, ""sebum"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""混合型"", ""detection_description"":""该顾客混合了过多的油脂"" }, ""pore"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""良好"", ""detection_description"":""毛孔比较细小"" }, ""melanin"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""特别护理"", ""detection_description"":""有较大的色斑区域"" }, ""wrinkle"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""特别护理"", ""detection_description"":""有很多黑色粉刺的大毛孔"" }, ""acne"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""良好"", ""detection_description"":""没有皱纹,皮肤良好"" }, ""sensitivity"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""良好"", ""detection_description"":""有部分角质可以进行护理"" } }" + _skinDetection string + // 头皮检查结果,"1. Alopecia 脱发状态 2. Scalp state 头皮状态 3. Hair density 头发密度 4. Scalp of scalp 头皮角质 5. Nudity of scalp blood vessels 头皮血管裸露 6. Hair thickness 头发厚度 7. Hair follicle state 毛囊状态 数字指标: 行业平均值 industry_average 当前顾客数值 current_customer 检测结果 detection_result 检测描述 detection_description 数字指标可以为空,但是单个key请务必完整。如 ""detection_result"":"""" { ""alopecia"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""湿度高"", ""detection_description"":""完美的肌肤特质"" }, ""state"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""混合型"", ""detection_description"":""该顾客混合了过多的油脂"" }, ""hair_density"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""良好"", ""detection_description"":""毛孔比较细小"" }, ""scalp"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""特别护理"", ""detection_description"":""有较大的色斑区域"" }, ""nudity_blood"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""特别护理"", ""detection_description"":""有很多黑色粉刺的大毛孔"" }, ""hair_thickness"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""良好"", ""detection_description"":""没有皱纹,皮肤良好"" }, ""hair_follicle_state"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""良好"", ""detection_description"":""有部分角质可以进行护理"" } }" + _scalpDetection string + // 硬件CODE + _deviceCode string + // 字段废弃 + _endTime string + // 字段废弃,考虑兼容,等同于op_time,两个必须传一个 + _startTime string + // ACTION枚举值: ITEM_CLICK(商品点击时,必须设置ITEM_ID) SKU_CLICK(SKU点击时,必须设置SKU_ID) THEME_MAKEUP_CLICK(点击推荐主题妆) SAMPLE_CLICK(点击领取小样,必须设置ITEM_ID) RECEIVE_COUPONS(领取优惠券时,必须设置COUPON_ID) BUY_CLICK(点击购买,购买PV,必须设置ITEM_ID) ITEM_FAVOR(商品收藏时,必须设置item_id) PHOTO_CLICK(拍摄照片) GET_PHOTO(获取照片,必须设置user_nick) SHARE_CLICK(点击分享) + _action string + // 商品ID,item_id 在action为ITEM_CLICK、SAMPLE_CLICK、BUY_CLICK、ITEM_FAVOR必须传入, 必须使用淘宝商品id,否则失败 + _itemId string + // "例如官方领取优惠券链接里的activityId: https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=2649119619&activityId=9d390579777e41a981b54aa4d6154f5e" + _couponId string + // 数据外部编码,保证数据唯一性 + _outerBizId string + // 操作时间,后续统一使用该字段,考虑兼容,start_time跟该字段含义一致 + _opTime string + // 硬件识别的用户标识 + _outerUser string + // 库存ID,sku_id 在action为sku_click时必须传入; 必须使用淘宝商品id,否则失败。 + _skuId string + // 用户混淆nick + _userNick string +} + +// 初始化TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest对象 +func NewTaobaoSmartstoreDeviceMakeupmirrorFeedbackRequest() *TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest{ + return &TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) GetApiMethodName() string { + return "taobao.smartstore.device.makeupmirror.feedback" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkinDetection Setter +// 肌肤检测结果,"1. Moisture 水份/ 2. Sebum (U/T Zone) 油份(U/T区)/ 3. Pore 毛孔 4. Melanin 色斑 5. Acne (UV) 暗疮(紫外线) 6. Wrinkle 皱纹 7. Sensitivity 敏感度 数字指标: 行业平均值 industry_average 当前顾客数值 current_customer 检测结果 detection_result 检测描述 detection_description 数字指标可以为空,但是单个key请务必完整。如 ""detection_result"":"""" { ""moisture"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""湿度高"", ""detection_description"":""完美的肌肤特质"" }, ""sebum"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""混合型"", ""detection_description"":""该顾客混合了过多的油脂"" }, ""pore"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""良好"", ""detection_description"":""毛孔比较细小"" }, ""melanin"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""特别护理"", ""detection_description"":""有较大的色斑区域"" }, ""wrinkle"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""特别护理"", ""detection_description"":""有很多黑色粉刺的大毛孔"" }, ""acne"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""良好"", ""detection_description"":""没有皱纹,皮肤良好"" }, ""sensitivity"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""良好"", ""detection_description"":""有部分角质可以进行护理"" } }" +func (r *TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) SetSkinDetection(_skinDetection string) error { + r._skinDetection = _skinDetection + r.Set("skin_detection", _skinDetection) + return nil +} + +// SkinDetection Getter +func (r TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) GetSkinDetection() string { + return r._skinDetection +} +// ScalpDetection Setter +// 头皮检查结果,"1. Alopecia 脱发状态 2. Scalp state 头皮状态 3. Hair density 头发密度 4. Scalp of scalp 头皮角质 5. Nudity of scalp blood vessels 头皮血管裸露 6. Hair thickness 头发厚度 7. Hair follicle state 毛囊状态 数字指标: 行业平均值 industry_average 当前顾客数值 current_customer 检测结果 detection_result 检测描述 detection_description 数字指标可以为空,但是单个key请务必完整。如 ""detection_result"":"""" { ""alopecia"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""湿度高"", ""detection_description"":""完美的肌肤特质"" }, ""state"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""混合型"", ""detection_description"":""该顾客混合了过多的油脂"" }, ""hair_density"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""良好"", ""detection_description"":""毛孔比较细小"" }, ""scalp"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""特别护理"", ""detection_description"":""有较大的色斑区域"" }, ""nudity_blood"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""特别护理"", ""detection_description"":""有很多黑色粉刺的大毛孔"" }, ""hair_thickness"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""良好"", ""detection_description"":""没有皱纹,皮肤良好"" }, ""hair_follicle_state"": { ""industry_average"": ""26"", ""current_customer"": ""39"", ""detection_result"":""良好"", ""detection_description"":""有部分角质可以进行护理"" } }" +func (r *TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) SetScalpDetection(_scalpDetection string) error { + r._scalpDetection = _scalpDetection + r.Set("scalp_detection", _scalpDetection) + return nil +} + +// ScalpDetection Getter +func (r TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) GetScalpDetection() string { + return r._scalpDetection +} +// DeviceCode Setter +// 硬件CODE +func (r *TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// EndTime Setter +// 字段废弃 +func (r *TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) GetEndTime() string { + return r._endTime +} +// StartTime Setter +// 字段废弃,考虑兼容,等同于op_time,两个必须传一个 +func (r *TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) GetStartTime() string { + return r._startTime +} +// Action Setter +// ACTION枚举值: ITEM_CLICK(商品点击时,必须设置ITEM_ID) SKU_CLICK(SKU点击时,必须设置SKU_ID) THEME_MAKEUP_CLICK(点击推荐主题妆) SAMPLE_CLICK(点击领取小样,必须设置ITEM_ID) RECEIVE_COUPONS(领取优惠券时,必须设置COUPON_ID) BUY_CLICK(点击购买,购买PV,必须设置ITEM_ID) ITEM_FAVOR(商品收藏时,必须设置item_id) PHOTO_CLICK(拍摄照片) GET_PHOTO(获取照片,必须设置user_nick) SHARE_CLICK(点击分享) +func (r *TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) SetAction(_action string) error { + r._action = _action + r.Set("action", _action) + return nil +} + +// Action Getter +func (r TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) GetAction() string { + return r._action +} +// ItemId Setter +// 商品ID,item_id 在action为ITEM_CLICK、SAMPLE_CLICK、BUY_CLICK、ITEM_FAVOR必须传入, 必须使用淘宝商品id,否则失败 +func (r *TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) SetItemId(_itemId string) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) GetItemId() string { + return r._itemId +} +// CouponId Setter +// "例如官方领取优惠券链接里的activityId: https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=2649119619&activityId=9d390579777e41a981b54aa4d6154f5e" +func (r *TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) SetCouponId(_couponId string) error { + r._couponId = _couponId + r.Set("coupon_id", _couponId) + return nil +} + +// CouponId Getter +func (r TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) GetCouponId() string { + return r._couponId +} +// OuterBizId Setter +// 数据外部编码,保证数据唯一性 +func (r *TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) SetOuterBizId(_outerBizId string) error { + r._outerBizId = _outerBizId + r.Set("outer_biz_id", _outerBizId) + return nil +} + +// OuterBizId Getter +func (r TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) GetOuterBizId() string { + return r._outerBizId +} +// OpTime Setter +// 操作时间,后续统一使用该字段,考虑兼容,start_time跟该字段含义一致 +func (r *TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) SetOpTime(_opTime string) error { + r._opTime = _opTime + r.Set("op_time", _opTime) + return nil +} + +// OpTime Getter +func (r TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) GetOpTime() string { + return r._opTime +} +// OuterUser Setter +// 硬件识别的用户标识 +func (r *TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) SetOuterUser(_outerUser string) error { + r._outerUser = _outerUser + r.Set("outer_user", _outerUser) + return nil +} + +// OuterUser Getter +func (r TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) GetOuterUser() string { + return r._outerUser +} +// SkuId Setter +// 库存ID,sku_id 在action为sku_click时必须传入; 必须使用淘宝商品id,否则失败。 +func (r *TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) SetSkuId(_skuId string) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) GetSkuId() string { + return r._skuId +} +// UserNick Setter +// 用户混淆nick +func (r *TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIRequest) GetUserNick() string { + return r._userNick +} diff --git a/model/smartstore/TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIResponse.go b/model/smartstore/TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIResponse.go new file mode 100644 index 0000000000..7b1fdd4452 --- /dev/null +++ b/model/smartstore/TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIResponse.go @@ -0,0 +1,34 @@ +package smartstore + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +智能硬件试妆镜数据回流 API返回值 +taobao.smartstore.device.makeupmirror.feedback + +智慧门店试妆镜设备回流规则(适用于试妆镜等)
+1.回流的数据属于当前授权的用户,回流的设备device_code由当前应用添加
+2.对于快闪店的智能硬件不需要授权
+3.action为SKU_CLICK时,sku_id必须传入
+4.action为ITEM_CLICK、SAMPLE_CLICK、BUY_CLICK、ITEM_FAVOR时,item_id必须传入,且必须是淘宝商品的数字id
+5.skin_detection 和scalp_detection 涉及相关检测功能的硬件设备回传
+6.每一个acion都必须传入用户操作时间op_time
+7.outer_biz_id 用于硬件设备大量数据回流场景,服务商本地日志统计系统对一条日志记录生成唯一标识。 平台后端会对传入的outer_biz_id 做去重处理
+*/ +type TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIResponse struct { + model.CommonResponse + TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIResponseModel +} + +// 智能硬件试妆镜数据回流 成功返回结果 +type TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIResponseModel struct { + XMLName xml.Name `xml:"smartstore_device_makeupmirror_feedback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 回流结果 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/smartstore/TaobaoSmartstoreDeviceMakeupmirrorFeedbackResponse.go b/model/smartstore/TaobaoSmartstoreDeviceMakeupmirrorFeedbackResponse.go deleted file mode 100644 index 4dfd9c9e62..0000000000 --- a/model/smartstore/TaobaoSmartstoreDeviceMakeupmirrorFeedbackResponse.go +++ /dev/null @@ -1,34 +0,0 @@ -package smartstore - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -智能硬件试妆镜数据回流 API返回值 -taobao.smartstore.device.makeupmirror.feedback - -智慧门店试妆镜设备回流规则(适用于试妆镜等)
-1.回流的数据属于当前授权的用户,回流的设备device_code由当前应用添加
-2.对于快闪店的智能硬件不需要授权
-3.action为SKU_CLICK时,sku_id必须传入
-4.action为ITEM_CLICK、SAMPLE_CLICK、BUY_CLICK、ITEM_FAVOR时,item_id必须传入,且必须是淘宝商品的数字id
-5.skin_detection 和scalp_detection 涉及相关检测功能的硬件设备回传
-6.每一个acion都必须传入用户操作时间op_time
-7.outer_biz_id 用于硬件设备大量数据回流场景,服务商本地日志统计系统对一条日志记录生成唯一标识。 平台后端会对传入的outer_biz_id 做去重处理
-*/ -type TaobaoSmartstoreDeviceMakeupmirrorFeedbackAPIResponse struct { - model.CommonResponse - TaobaoSmartstoreDeviceMakeupmirrorFeedbackResponse -} - -// 智能硬件试妆镜数据回流 成功返回结果 -type TaobaoSmartstoreDeviceMakeupmirrorFeedbackResponse struct { - XMLName xml.Name `xml:"smartstore_device_makeupmirror_feedback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 回流结果 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/smartstore/TaobaoSmartstoreDeviceShelfFeedbackAPIRequest.go b/model/smartstore/TaobaoSmartstoreDeviceShelfFeedbackAPIRequest.go new file mode 100644 index 0000000000..516e9cb823 --- /dev/null +++ b/model/smartstore/TaobaoSmartstoreDeviceShelfFeedbackAPIRequest.go @@ -0,0 +1,139 @@ +package smartstore + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +智能硬件云货架数据回流 API请求 +taobao.smartstore.device.shelf.feedback + +智慧门店云货架设备回流 +规则: +1. 回流的设备属于当前授权的用户 +2. 回流的设备属于当前应用添加 +*/ +type TaobaoSmartstoreDeviceShelfFeedbackAPIRequest struct { + model.Params + // 硬件CODE + _deviceCode string + // 本次操作结束时间 + _endTime string + // 本次操作开始时间 + _startTime string + // 操作,枚举值:ACTION枚举值: ITEM_CLICK(商品点击时必须设置ITEM_ID) RECEIVE_COUPONS(领取优惠券时必须设置COUPON_ID) BUY_CLICK(点击购买) SHARE_CLICK(点击分享) + _action string + // 商品ID,action为item_click必填 + _itemId string + // "例如官方领取优惠券链接里的activityId: https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=2649119619&activityId=9d390579777e41a981b54aa4d6154f5e" + _couponId string + // 硬件识别的用户标识 + _outerUser string +} + +// 初始化TaobaoSmartstoreDeviceShelfFeedbackAPIRequest对象 +func NewTaobaoSmartstoreDeviceShelfFeedbackRequest() *TaobaoSmartstoreDeviceShelfFeedbackAPIRequest{ + return &TaobaoSmartstoreDeviceShelfFeedbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSmartstoreDeviceShelfFeedbackAPIRequest) GetApiMethodName() string { + return "taobao.smartstore.device.shelf.feedback" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSmartstoreDeviceShelfFeedbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceCode Setter +// 硬件CODE +func (r *TaobaoSmartstoreDeviceShelfFeedbackAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r TaobaoSmartstoreDeviceShelfFeedbackAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// EndTime Setter +// 本次操作结束时间 +func (r *TaobaoSmartstoreDeviceShelfFeedbackAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSmartstoreDeviceShelfFeedbackAPIRequest) GetEndTime() string { + return r._endTime +} +// StartTime Setter +// 本次操作开始时间 +func (r *TaobaoSmartstoreDeviceShelfFeedbackAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSmartstoreDeviceShelfFeedbackAPIRequest) GetStartTime() string { + return r._startTime +} +// Action Setter +// 操作,枚举值:ACTION枚举值: ITEM_CLICK(商品点击时必须设置ITEM_ID) RECEIVE_COUPONS(领取优惠券时必须设置COUPON_ID) BUY_CLICK(点击购买) SHARE_CLICK(点击分享) +func (r *TaobaoSmartstoreDeviceShelfFeedbackAPIRequest) SetAction(_action string) error { + r._action = _action + r.Set("action", _action) + return nil +} + +// Action Getter +func (r TaobaoSmartstoreDeviceShelfFeedbackAPIRequest) GetAction() string { + return r._action +} +// ItemId Setter +// 商品ID,action为item_click必填 +func (r *TaobaoSmartstoreDeviceShelfFeedbackAPIRequest) SetItemId(_itemId string) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoSmartstoreDeviceShelfFeedbackAPIRequest) GetItemId() string { + return r._itemId +} +// CouponId Setter +// "例如官方领取优惠券链接里的activityId: https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=2649119619&activityId=9d390579777e41a981b54aa4d6154f5e" +func (r *TaobaoSmartstoreDeviceShelfFeedbackAPIRequest) SetCouponId(_couponId string) error { + r._couponId = _couponId + r.Set("coupon_id", _couponId) + return nil +} + +// CouponId Getter +func (r TaobaoSmartstoreDeviceShelfFeedbackAPIRequest) GetCouponId() string { + return r._couponId +} +// OuterUser Setter +// 硬件识别的用户标识 +func (r *TaobaoSmartstoreDeviceShelfFeedbackAPIRequest) SetOuterUser(_outerUser string) error { + r._outerUser = _outerUser + r.Set("outer_user", _outerUser) + return nil +} + +// OuterUser Getter +func (r TaobaoSmartstoreDeviceShelfFeedbackAPIRequest) GetOuterUser() string { + return r._outerUser +} diff --git a/model/smartstore/TaobaoSmartstoreDeviceShelfFeedbackAPIResponse.go b/model/smartstore/TaobaoSmartstoreDeviceShelfFeedbackAPIResponse.go new file mode 100644 index 0000000000..90bec92441 --- /dev/null +++ b/model/smartstore/TaobaoSmartstoreDeviceShelfFeedbackAPIResponse.go @@ -0,0 +1,30 @@ +package smartstore + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +智能硬件云货架数据回流 API返回值 +taobao.smartstore.device.shelf.feedback + +智慧门店云货架设备回流 +规则: +1. 回流的设备属于当前授权的用户 +2. 回流的设备属于当前应用添加 +*/ +type TaobaoSmartstoreDeviceShelfFeedbackAPIResponse struct { + model.CommonResponse + TaobaoSmartstoreDeviceShelfFeedbackAPIResponseModel +} + +// 智能硬件云货架数据回流 成功返回结果 +type TaobaoSmartstoreDeviceShelfFeedbackAPIResponseModel struct { + XMLName xml.Name `xml:"smartstore_device_shelf_feedback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 回流结果 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/smartstore/TaobaoSmartstoreDeviceShelfFeedbackResponse.go b/model/smartstore/TaobaoSmartstoreDeviceShelfFeedbackResponse.go deleted file mode 100644 index 8fa8deb910..0000000000 --- a/model/smartstore/TaobaoSmartstoreDeviceShelfFeedbackResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package smartstore - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -智能硬件云货架数据回流 API返回值 -taobao.smartstore.device.shelf.feedback - -智慧门店云货架设备回流 -规则: -1. 回流的设备属于当前授权的用户 -2. 回流的设备属于当前应用添加 -*/ -type TaobaoSmartstoreDeviceShelfFeedbackAPIResponse struct { - model.CommonResponse - TaobaoSmartstoreDeviceShelfFeedbackResponse -} - -// 智能硬件云货架数据回流 成功返回结果 -type TaobaoSmartstoreDeviceShelfFeedbackResponse struct { - XMLName xml.Name `xml:"smartstore_device_shelf_feedback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 回流结果 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/smartstore/TaobaoSmartstoreDeviceStatusFeedbackAPIRequest.go b/model/smartstore/TaobaoSmartstoreDeviceStatusFeedbackAPIRequest.go new file mode 100644 index 0000000000..b84f5311ed --- /dev/null +++ b/model/smartstore/TaobaoSmartstoreDeviceStatusFeedbackAPIRequest.go @@ -0,0 +1,80 @@ +package smartstore + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +设备在线状态回流 API请求 +taobao.smartstore.device.status.feedback + +智能硬件设备状态回流 +*/ +type TaobaoSmartstoreDeviceStatusFeedbackAPIRequest struct { + model.Params + // ONLINE_WITH_CONTENT("ONLINE_WITH_CONTENT", "设备在线"), OFFLINE("OFFLINE", "设备断线"); + _status string + // 设备编码 + _deviceCode string + // 当前状态的时间 + _statusTime string +} + +// 初始化TaobaoSmartstoreDeviceStatusFeedbackAPIRequest对象 +func NewTaobaoSmartstoreDeviceStatusFeedbackRequest() *TaobaoSmartstoreDeviceStatusFeedbackAPIRequest{ + return &TaobaoSmartstoreDeviceStatusFeedbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSmartstoreDeviceStatusFeedbackAPIRequest) GetApiMethodName() string { + return "taobao.smartstore.device.status.feedback" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSmartstoreDeviceStatusFeedbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Status Setter +// ONLINE_WITH_CONTENT("ONLINE_WITH_CONTENT", "设备在线"), OFFLINE("OFFLINE", "设备断线"); +func (r *TaobaoSmartstoreDeviceStatusFeedbackAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoSmartstoreDeviceStatusFeedbackAPIRequest) GetStatus() string { + return r._status +} +// DeviceCode Setter +// 设备编码 +func (r *TaobaoSmartstoreDeviceStatusFeedbackAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r TaobaoSmartstoreDeviceStatusFeedbackAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// StatusTime Setter +// 当前状态的时间 +func (r *TaobaoSmartstoreDeviceStatusFeedbackAPIRequest) SetStatusTime(_statusTime string) error { + r._statusTime = _statusTime + r.Set("status_time", _statusTime) + return nil +} + +// StatusTime Getter +func (r TaobaoSmartstoreDeviceStatusFeedbackAPIRequest) GetStatusTime() string { + return r._statusTime +} diff --git a/model/smartstore/TaobaoSmartstoreDeviceStatusFeedbackAPIResponse.go b/model/smartstore/TaobaoSmartstoreDeviceStatusFeedbackAPIResponse.go new file mode 100644 index 0000000000..d66e35e220 --- /dev/null +++ b/model/smartstore/TaobaoSmartstoreDeviceStatusFeedbackAPIResponse.go @@ -0,0 +1,27 @@ +package smartstore + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +设备在线状态回流 API返回值 +taobao.smartstore.device.status.feedback + +智能硬件设备状态回流 +*/ +type TaobaoSmartstoreDeviceStatusFeedbackAPIResponse struct { + model.CommonResponse + TaobaoSmartstoreDeviceStatusFeedbackAPIResponseModel +} + +// 设备在线状态回流 成功返回结果 +type TaobaoSmartstoreDeviceStatusFeedbackAPIResponseModel struct { + XMLName xml.Name `xml:"smartstore_device_status_feedback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/smartstore/TaobaoSmartstoreDeviceStatusFeedbackResponse.go b/model/smartstore/TaobaoSmartstoreDeviceStatusFeedbackResponse.go deleted file mode 100644 index 53581cc49f..0000000000 --- a/model/smartstore/TaobaoSmartstoreDeviceStatusFeedbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package smartstore - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -设备在线状态回流 API返回值 -taobao.smartstore.device.status.feedback - -智能硬件设备状态回流 -*/ -type TaobaoSmartstoreDeviceStatusFeedbackAPIResponse struct { - model.CommonResponse - TaobaoSmartstoreDeviceStatusFeedbackResponse -} - -// 设备在线状态回流 成功返回结果 -type TaobaoSmartstoreDeviceStatusFeedbackResponse struct { - XMLName xml.Name `xml:"smartstore_device_status_feedback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/smartstore/TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest.go b/model/smartstore/TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest.go new file mode 100644 index 0000000000..50d166e655 --- /dev/null +++ b/model/smartstore/TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest.go @@ -0,0 +1,212 @@ +package smartstore + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +智能硬件互动大屏数据回流 API请求 +taobao.smartstore.device.storegame.feedback + +智慧门店互动引流屏设备回流规则:(适用于智慧迎宾屏、互动游戏、互动拍照、娃娃机等)
+1.回流的数据属于当前授权的用户,回流的设备device_code由当前应用添加
+2.对于快闪店的智能硬件不需要授权
+3.每一个action都必须传入用户操作时间op_time;(start/end_time后续废弃)
+4.action为WINNING_PRIZE时,需传入draw_result,只能传入0或者1
+5.outer_biz_id 用于硬件设备大量数据回流场景,服务商本地日志统计系统对一条日志记录生成唯一标识。 平台后端会对传入的outer_biz_id 做去重处理
+6.outer_user 用于标识不能获取淘宝账号的游客
+*/ +type TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest struct { + model.Params + // 商品ID,item_id 在action为ITEM_CLICK时必须传入。 必须使用淘宝商品id,否则失败。 + _itemId string + // 游戏名称 + _gameName string + // 硬件CODE + _deviceCode string + // 字段废弃 + _endTime string + // 字段废弃,考虑兼容,等同于op_time,两个必须传一个 + _startTime string + // ACTION枚举值: BODY_SENSOR(通过人体感应、人脸识别成功识别到人) PHOTO_CLICK(用户在屏幕拍摄照片) GET_PHOTO(用户扫码获取照片,必须设置user_nick) ITEM_CLICK(商品点击时必须设置ITEM_ID) GAME_START(开始游戏,可以 设置 user) GAME_OVER_WITHOUT_PROMOTION(游戏结束) WINNING_PRIZE(中奖,必须设置DRAW_RESULT) SHARE_CLICK(点击分享) RECEIVE_COUPONS (扫码领取优惠券时必须设置COUPON_ID) + _action string + // 有则传入,没有可以不传。"例如官方领取优惠券链接里的activityId: https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=2649119619&activityId=9d390579777e41a981b54aa4d6154f5e" + _couponId string + // 用户昵称,混淆的淘宝NIck + _userNick string + // 抽奖结果 ,如果传入,0:表示没中奖,1:表示中奖。该值必须是0或者1,传入其他失败。 + _drawResult string + // 数据外部编码,保证数据唯一性 + _outerBizId string + // 操作时间,后续统一使用该字段,考虑兼容,start_time跟该字段含义一致 + _opTime string + // 硬件识别的用户标识 + _outerUser string +} + +// 初始化TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest对象 +func NewTaobaoSmartstoreDeviceStoregameFeedbackRequest() *TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest{ + return &TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) GetApiMethodName() string { + return "taobao.smartstore.device.storegame.feedback" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品ID,item_id 在action为ITEM_CLICK时必须传入。 必须使用淘宝商品id,否则失败。 +func (r *TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) SetItemId(_itemId string) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) GetItemId() string { + return r._itemId +} +// GameName Setter +// 游戏名称 +func (r *TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) SetGameName(_gameName string) error { + r._gameName = _gameName + r.Set("game_name", _gameName) + return nil +} + +// GameName Getter +func (r TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) GetGameName() string { + return r._gameName +} +// DeviceCode Setter +// 硬件CODE +func (r *TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) SetDeviceCode(_deviceCode string) error { + r._deviceCode = _deviceCode + r.Set("device_code", _deviceCode) + return nil +} + +// DeviceCode Getter +func (r TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) GetDeviceCode() string { + return r._deviceCode +} +// EndTime Setter +// 字段废弃 +func (r *TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) GetEndTime() string { + return r._endTime +} +// StartTime Setter +// 字段废弃,考虑兼容,等同于op_time,两个必须传一个 +func (r *TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) GetStartTime() string { + return r._startTime +} +// Action Setter +// ACTION枚举值: BODY_SENSOR(通过人体感应、人脸识别成功识别到人) PHOTO_CLICK(用户在屏幕拍摄照片) GET_PHOTO(用户扫码获取照片,必须设置user_nick) ITEM_CLICK(商品点击时必须设置ITEM_ID) GAME_START(开始游戏,可以 设置 user) GAME_OVER_WITHOUT_PROMOTION(游戏结束) WINNING_PRIZE(中奖,必须设置DRAW_RESULT) SHARE_CLICK(点击分享) RECEIVE_COUPONS (扫码领取优惠券时必须设置COUPON_ID) +func (r *TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) SetAction(_action string) error { + r._action = _action + r.Set("action", _action) + return nil +} + +// Action Getter +func (r TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) GetAction() string { + return r._action +} +// CouponId Setter +// 有则传入,没有可以不传。"例如官方领取优惠券链接里的activityId: https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=2649119619&activityId=9d390579777e41a981b54aa4d6154f5e" +func (r *TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) SetCouponId(_couponId string) error { + r._couponId = _couponId + r.Set("coupon_id", _couponId) + return nil +} + +// CouponId Getter +func (r TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) GetCouponId() string { + return r._couponId +} +// UserNick Setter +// 用户昵称,混淆的淘宝NIck +func (r *TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) GetUserNick() string { + return r._userNick +} +// DrawResult Setter +// 抽奖结果 ,如果传入,0:表示没中奖,1:表示中奖。该值必须是0或者1,传入其他失败。 +func (r *TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) SetDrawResult(_drawResult string) error { + r._drawResult = _drawResult + r.Set("draw_result", _drawResult) + return nil +} + +// DrawResult Getter +func (r TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) GetDrawResult() string { + return r._drawResult +} +// OuterBizId Setter +// 数据外部编码,保证数据唯一性 +func (r *TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) SetOuterBizId(_outerBizId string) error { + r._outerBizId = _outerBizId + r.Set("outer_biz_id", _outerBizId) + return nil +} + +// OuterBizId Getter +func (r TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) GetOuterBizId() string { + return r._outerBizId +} +// OpTime Setter +// 操作时间,后续统一使用该字段,考虑兼容,start_time跟该字段含义一致 +func (r *TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) SetOpTime(_opTime string) error { + r._opTime = _opTime + r.Set("op_time", _opTime) + return nil +} + +// OpTime Getter +func (r TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) GetOpTime() string { + return r._opTime +} +// OuterUser Setter +// 硬件识别的用户标识 +func (r *TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) SetOuterUser(_outerUser string) error { + r._outerUser = _outerUser + r.Set("outer_user", _outerUser) + return nil +} + +// OuterUser Getter +func (r TaobaoSmartstoreDeviceStoregameFeedbackAPIRequest) GetOuterUser() string { + return r._outerUser +} diff --git a/model/smartstore/TaobaoSmartstoreDeviceStoregameFeedbackAPIResponse.go b/model/smartstore/TaobaoSmartstoreDeviceStoregameFeedbackAPIResponse.go new file mode 100644 index 0000000000..c9f20eeac8 --- /dev/null +++ b/model/smartstore/TaobaoSmartstoreDeviceStoregameFeedbackAPIResponse.go @@ -0,0 +1,33 @@ +package smartstore + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +智能硬件互动大屏数据回流 API返回值 +taobao.smartstore.device.storegame.feedback + +智慧门店互动引流屏设备回流规则:(适用于智慧迎宾屏、互动游戏、互动拍照、娃娃机等)
+1.回流的数据属于当前授权的用户,回流的设备device_code由当前应用添加
+2.对于快闪店的智能硬件不需要授权
+3.每一个action都必须传入用户操作时间op_time;(start/end_time后续废弃)
+4.action为WINNING_PRIZE时,需传入draw_result,只能传入0或者1
+5.outer_biz_id 用于硬件设备大量数据回流场景,服务商本地日志统计系统对一条日志记录生成唯一标识。 平台后端会对传入的outer_biz_id 做去重处理
+6.outer_user 用于标识不能获取淘宝账号的游客
+*/ +type TaobaoSmartstoreDeviceStoregameFeedbackAPIResponse struct { + model.CommonResponse + TaobaoSmartstoreDeviceStoregameFeedbackAPIResponseModel +} + +// 智能硬件互动大屏数据回流 成功返回结果 +type TaobaoSmartstoreDeviceStoregameFeedbackAPIResponseModel struct { + XMLName xml.Name `xml:"smartstore_device_storegame_feedback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 回流结果 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/smartstore/TaobaoSmartstoreDeviceStoregameFeedbackResponse.go b/model/smartstore/TaobaoSmartstoreDeviceStoregameFeedbackResponse.go deleted file mode 100644 index 9b61aaf707..0000000000 --- a/model/smartstore/TaobaoSmartstoreDeviceStoregameFeedbackResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package smartstore - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -智能硬件互动大屏数据回流 API返回值 -taobao.smartstore.device.storegame.feedback - -智慧门店互动引流屏设备回流规则:(适用于智慧迎宾屏、互动游戏、互动拍照、娃娃机等)
-1.回流的数据属于当前授权的用户,回流的设备device_code由当前应用添加
-2.对于快闪店的智能硬件不需要授权
-3.每一个action都必须传入用户操作时间op_time;(start/end_time后续废弃)
-4.action为WINNING_PRIZE时,需传入draw_result,只能传入0或者1
-5.outer_biz_id 用于硬件设备大量数据回流场景,服务商本地日志统计系统对一条日志记录生成唯一标识。 平台后端会对传入的outer_biz_id 做去重处理
-6.outer_user 用于标识不能获取淘宝账号的游客
-*/ -type TaobaoSmartstoreDeviceStoregameFeedbackAPIResponse struct { - model.CommonResponse - TaobaoSmartstoreDeviceStoregameFeedbackResponse -} - -// 智能硬件互动大屏数据回流 成功返回结果 -type TaobaoSmartstoreDeviceStoregameFeedbackResponse struct { - XMLName xml.Name `xml:"smartstore_device_storegame_feedback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 回流结果 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/smartstore/TmallPopupstoreActivityDeviceQueryAPIRequest.go b/model/smartstore/TmallPopupstoreActivityDeviceQueryAPIRequest.go new file mode 100644 index 0000000000..cdc3438b26 --- /dev/null +++ b/model/smartstore/TmallPopupstoreActivityDeviceQueryAPIRequest.go @@ -0,0 +1,52 @@ +package smartstore + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据活动id查询活动相关快闪店及设备信息 API请求 +tmall.popupstore.activity.device.query + +查询某一活动的deviceCode的部署情况 +*/ +type TmallPopupstoreActivityDeviceQueryAPIRequest struct { + model.Params + // ISV的活动ID + _activityId int64 +} + +// 初始化TmallPopupstoreActivityDeviceQueryAPIRequest对象 +func NewTmallPopupstoreActivityDeviceQueryRequest() *TmallPopupstoreActivityDeviceQueryAPIRequest{ + return &TmallPopupstoreActivityDeviceQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallPopupstoreActivityDeviceQueryAPIRequest) GetApiMethodName() string { + return "tmall.popupstore.activity.device.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallPopupstoreActivityDeviceQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// ISV的活动ID +func (r *TmallPopupstoreActivityDeviceQueryAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TmallPopupstoreActivityDeviceQueryAPIRequest) GetActivityId() int64 { + return r._activityId +} diff --git a/model/smartstore/TmallPopupstoreActivityDeviceQueryAPIResponse.go b/model/smartstore/TmallPopupstoreActivityDeviceQueryAPIResponse.go new file mode 100644 index 0000000000..b891d7d831 --- /dev/null +++ b/model/smartstore/TmallPopupstoreActivityDeviceQueryAPIResponse.go @@ -0,0 +1,27 @@ +package smartstore + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据活动id查询活动相关快闪店及设备信息 API返回值 +tmall.popupstore.activity.device.query + +查询某一活动的deviceCode的部署情况 +*/ +type TmallPopupstoreActivityDeviceQueryAPIResponse struct { + model.CommonResponse + TmallPopupstoreActivityDeviceQueryAPIResponseModel +} + +// 根据活动id查询活动相关快闪店及设备信息 成功返回结果 +type TmallPopupstoreActivityDeviceQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_popupstore_activity_device_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参对象 + ResultDto *TmallPopupstoreActivityDeviceQueryResultDto `json:"result_dto,omitempty" xml:"result_dto,omitempty"` +} diff --git a/model/smartstore/TmallPopupstoreActivityDeviceQueryResponse.go b/model/smartstore/TmallPopupstoreActivityDeviceQueryResponse.go deleted file mode 100644 index d195c52caa..0000000000 --- a/model/smartstore/TmallPopupstoreActivityDeviceQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package smartstore - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据活动id查询活动相关快闪店及设备信息 API返回值 -tmall.popupstore.activity.device.query - -查询某一活动的deviceCode的部署情况 -*/ -type TmallPopupstoreActivityDeviceQueryAPIResponse struct { - model.CommonResponse - TmallPopupstoreActivityDeviceQueryResponse -} - -// 根据活动id查询活动相关快闪店及设备信息 成功返回结果 -type TmallPopupstoreActivityDeviceQueryResponse struct { - XMLName xml.Name `xml:"tmall_popupstore_activity_device_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参对象 - ResultDto *TmallPopupstoreActivityDeviceQueryResultDto `json:"result_dto,omitempty" xml:"result_dto,omitempty"` -} diff --git a/model/smartstore/TmallPopupstoreActivityDeviceQueryResultDto.go b/model/smartstore/TmallPopupstoreActivityDeviceQueryResultDto.go new file mode 100644 index 0000000000..ffcd3a2197 --- /dev/null +++ b/model/smartstore/TmallPopupstoreActivityDeviceQueryResultDto.go @@ -0,0 +1,13 @@ +package smartstore + +// TmallPopupstoreActivityDeviceQueryResultDto +type TmallPopupstoreActivityDeviceQueryResultDto struct { + // 结果数据条数 + Total int64 `json:"total,omitempty" xml:"total,omitempty"` + // 返回结果 + Result *TmallPopupstoreActivityDeviceQueryResult `json:"result,omitempty" xml:"result,omitempty"` + // 结果code + Code string `json:"code,omitempty" xml:"code,omitempty"` + // 错误msg + Msg string `json:"msg,omitempty" xml:"msg,omitempty"` +} diff --git a/model/smartstore/TmallPopupstoreActivityQueryAPIRequest.go b/model/smartstore/TmallPopupstoreActivityQueryAPIRequest.go new file mode 100644 index 0000000000..6f7d3e4947 --- /dev/null +++ b/model/smartstore/TmallPopupstoreActivityQueryAPIRequest.go @@ -0,0 +1,66 @@ +package smartstore + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询某段时间内的快闪活动列表 API请求 +tmall.popupstore.activity.query + +提供给ISV查询某一时间段内包含指定appKey的活动列表 +*/ +type TmallPopupstoreActivityQueryAPIRequest struct { + model.Params + // 查询开始时间,yyyy-MM-dd + _startDate string + // 查询结束时间,yyyy-MM-dd + _endDate string +} + +// 初始化TmallPopupstoreActivityQueryAPIRequest对象 +func NewTmallPopupstoreActivityQueryRequest() *TmallPopupstoreActivityQueryAPIRequest{ + return &TmallPopupstoreActivityQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallPopupstoreActivityQueryAPIRequest) GetApiMethodName() string { + return "tmall.popupstore.activity.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallPopupstoreActivityQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartDate Setter +// 查询开始时间,yyyy-MM-dd +func (r *TmallPopupstoreActivityQueryAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TmallPopupstoreActivityQueryAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 查询结束时间,yyyy-MM-dd +func (r *TmallPopupstoreActivityQueryAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TmallPopupstoreActivityQueryAPIRequest) GetEndDate() string { + return r._endDate +} diff --git a/model/smartstore/TmallPopupstoreActivityQueryAPIResponse.go b/model/smartstore/TmallPopupstoreActivityQueryAPIResponse.go new file mode 100644 index 0000000000..ffd83db54a --- /dev/null +++ b/model/smartstore/TmallPopupstoreActivityQueryAPIResponse.go @@ -0,0 +1,27 @@ +package smartstore + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询某段时间内的快闪活动列表 API返回值 +tmall.popupstore.activity.query + +提供给ISV查询某一时间段内包含指定appKey的活动列表 +*/ +type TmallPopupstoreActivityQueryAPIResponse struct { + model.CommonResponse + TmallPopupstoreActivityQueryAPIResponseModel +} + +// 查询某段时间内的快闪活动列表 成功返回结果 +type TmallPopupstoreActivityQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_popupstore_activity_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参对象 + ResultDto *TmallPopupstoreActivityQueryResultDto `json:"result_dto,omitempty" xml:"result_dto,omitempty"` +} diff --git a/model/smartstore/TmallPopupstoreActivityQueryResponse.go b/model/smartstore/TmallPopupstoreActivityQueryResponse.go deleted file mode 100644 index eb5f1024e9..0000000000 --- a/model/smartstore/TmallPopupstoreActivityQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package smartstore - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询某段时间内的快闪活动列表 API返回值 -tmall.popupstore.activity.query - -提供给ISV查询某一时间段内包含指定appKey的活动列表 -*/ -type TmallPopupstoreActivityQueryAPIResponse struct { - model.CommonResponse - TmallPopupstoreActivityQueryResponse -} - -// 查询某段时间内的快闪活动列表 成功返回结果 -type TmallPopupstoreActivityQueryResponse struct { - XMLName xml.Name `xml:"tmall_popupstore_activity_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参对象 - ResultDto *TmallPopupstoreActivityQueryResultDto `json:"result_dto,omitempty" xml:"result_dto,omitempty"` -} diff --git a/model/smartstore/TmallPopupstoreActivityQueryResultDto.go b/model/smartstore/TmallPopupstoreActivityQueryResultDto.go new file mode 100644 index 0000000000..49ee624945 --- /dev/null +++ b/model/smartstore/TmallPopupstoreActivityQueryResultDto.go @@ -0,0 +1,13 @@ +package smartstore + +// TmallPopupstoreActivityQueryResultDto +type TmallPopupstoreActivityQueryResultDto struct { + // 返回数据条数 + Total int64 `json:"total,omitempty" xml:"total,omitempty"` + // 返回code + Code string `json:"code,omitempty" xml:"code,omitempty"` + // 错误msg + Msg string `json:"msg,omitempty" xml:"msg,omitempty"` + // 返回结果 + ResultList []TmallPopupstoreActivityQueryResult `json:"result_list,omitempty" xml:"result_list>tmall_popupstore_activity_query_result,omitempty"` +} diff --git a/model/smartstore/TmallPopupstoreItemDiscountPriceAPIRequest.go b/model/smartstore/TmallPopupstoreItemDiscountPriceAPIRequest.go new file mode 100644 index 0000000000..ab6d9fb3bb --- /dev/null +++ b/model/smartstore/TmallPopupstoreItemDiscountPriceAPIRequest.go @@ -0,0 +1,52 @@ +package smartstore + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品优惠价格查询 API请求 +tmall.popupstore.item.discount.price + +商品优惠价格查询 +*/ +type TmallPopupstoreItemDiscountPriceAPIRequest struct { + model.Params + // 商品id列表 + _itemIds []int64 +} + +// 初始化TmallPopupstoreItemDiscountPriceAPIRequest对象 +func NewTmallPopupstoreItemDiscountPriceRequest() *TmallPopupstoreItemDiscountPriceAPIRequest{ + return &TmallPopupstoreItemDiscountPriceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallPopupstoreItemDiscountPriceAPIRequest) GetApiMethodName() string { + return "tmall.popupstore.item.discount.price" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallPopupstoreItemDiscountPriceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemIds Setter +// 商品id列表 +func (r *TmallPopupstoreItemDiscountPriceAPIRequest) SetItemIds(_itemIds []int64) error { + r._itemIds = _itemIds + r.Set("item_ids", _itemIds) + return nil +} + +// ItemIds Getter +func (r TmallPopupstoreItemDiscountPriceAPIRequest) GetItemIds() []int64 { + return r._itemIds +} diff --git a/model/smartstore/TmallPopupstoreItemDiscountPriceAPIResponse.go b/model/smartstore/TmallPopupstoreItemDiscountPriceAPIResponse.go new file mode 100644 index 0000000000..852c871c05 --- /dev/null +++ b/model/smartstore/TmallPopupstoreItemDiscountPriceAPIResponse.go @@ -0,0 +1,27 @@ +package smartstore + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品优惠价格查询 API返回值 +tmall.popupstore.item.discount.price + +商品优惠价格查询 +*/ +type TmallPopupstoreItemDiscountPriceAPIResponse struct { + model.CommonResponse + TmallPopupstoreItemDiscountPriceAPIResponseModel +} + +// 商品优惠价格查询 成功返回结果 +type TmallPopupstoreItemDiscountPriceAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_popupstore_item_discount_price_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参对象 + ResultDto *TmallPopupstoreItemDiscountPriceResultDto `json:"result_dto,omitempty" xml:"result_dto,omitempty"` +} diff --git a/model/smartstore/TmallPopupstoreItemDiscountPriceResponse.go b/model/smartstore/TmallPopupstoreItemDiscountPriceResponse.go deleted file mode 100644 index ef010610eb..0000000000 --- a/model/smartstore/TmallPopupstoreItemDiscountPriceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package smartstore - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品优惠价格查询 API返回值 -tmall.popupstore.item.discount.price - -商品优惠价格查询 -*/ -type TmallPopupstoreItemDiscountPriceAPIResponse struct { - model.CommonResponse - TmallPopupstoreItemDiscountPriceResponse -} - -// 商品优惠价格查询 成功返回结果 -type TmallPopupstoreItemDiscountPriceResponse struct { - XMLName xml.Name `xml:"tmall_popupstore_item_discount_price_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参对象 - ResultDto *TmallPopupstoreItemDiscountPriceResultDto `json:"result_dto,omitempty" xml:"result_dto,omitempty"` -} diff --git a/model/smartstore/TmallPopupstoreItemDiscountPriceResultDto.go b/model/smartstore/TmallPopupstoreItemDiscountPriceResultDto.go new file mode 100644 index 0000000000..0678a98320 --- /dev/null +++ b/model/smartstore/TmallPopupstoreItemDiscountPriceResultDto.go @@ -0,0 +1,13 @@ +package smartstore + +// TmallPopupstoreItemDiscountPriceResultDto +type TmallPopupstoreItemDiscountPriceResultDto struct { + // 数据条数 + Total int64 `json:"total,omitempty" xml:"total,omitempty"` + // 错误码code + Code string `json:"code,omitempty" xml:"code,omitempty"` + // 错误msg + Msg string `json:"msg,omitempty" xml:"msg,omitempty"` + // 实际结果 + ResultList string `json:"result_list,omitempty" xml:"result_list,omitempty"` +} diff --git a/model/store/TaobaoPlaceStoreExtendUpdateAPIRequest.go b/model/store/TaobaoPlaceStoreExtendUpdateAPIRequest.go new file mode 100644 index 0000000000..3b836bc7ac --- /dev/null +++ b/model/store/TaobaoPlaceStoreExtendUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package store + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商户门店拓展信息更新接口 API请求 +taobao.place.store.extend.update + +更新商户门店拓展信息(tags、attribute、bizAtrribute)更新接口 +*/ +type TaobaoPlaceStoreExtendUpdateAPIRequest struct { + model.Params + // 更新数据 + _paramUpdateStoreExtendDTO *UpdateStoreExtendDto +} + +// 初始化TaobaoPlaceStoreExtendUpdateAPIRequest对象 +func NewTaobaoPlaceStoreExtendUpdateRequest() *TaobaoPlaceStoreExtendUpdateAPIRequest{ + return &TaobaoPlaceStoreExtendUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPlaceStoreExtendUpdateAPIRequest) GetApiMethodName() string { + return "taobao.place.store.extend.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPlaceStoreExtendUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamUpdateStoreExtendDTO Setter +// 更新数据 +func (r *TaobaoPlaceStoreExtendUpdateAPIRequest) SetParamUpdateStoreExtendDTO(_paramUpdateStoreExtendDTO *UpdateStoreExtendDto) error { + r._paramUpdateStoreExtendDTO = _paramUpdateStoreExtendDTO + r.Set("param_update_store_extend_d_t_o", _paramUpdateStoreExtendDTO) + return nil +} + +// ParamUpdateStoreExtendDTO Getter +func (r TaobaoPlaceStoreExtendUpdateAPIRequest) GetParamUpdateStoreExtendDTO() *UpdateStoreExtendDto { + return r._paramUpdateStoreExtendDTO +} diff --git a/model/store/TaobaoPlaceStoreExtendUpdateAPIResponse.go b/model/store/TaobaoPlaceStoreExtendUpdateAPIResponse.go new file mode 100644 index 0000000000..04b79ca571 --- /dev/null +++ b/model/store/TaobaoPlaceStoreExtendUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package store + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商户门店拓展信息更新接口 API返回值 +taobao.place.store.extend.update + +更新商户门店拓展信息(tags、attribute、bizAtrribute)更新接口 +*/ +type TaobaoPlaceStoreExtendUpdateAPIResponse struct { + model.CommonResponse + TaobaoPlaceStoreExtendUpdateAPIResponseModel +} + +// 商户门店拓展信息更新接口 成功返回结果 +type TaobaoPlaceStoreExtendUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"place_store_extend_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TaobaoPlaceStoreExtendUpdateResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/store/TaobaoPlaceStoreExtendUpdateResponse.go b/model/store/TaobaoPlaceStoreExtendUpdateResponse.go deleted file mode 100644 index b31a9f029e..0000000000 --- a/model/store/TaobaoPlaceStoreExtendUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package store - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商户门店拓展信息更新接口 API返回值 -taobao.place.store.extend.update - -更新商户门店拓展信息(tags、attribute、bizAtrribute)更新接口 -*/ -type TaobaoPlaceStoreExtendUpdateAPIResponse struct { - model.CommonResponse - TaobaoPlaceStoreExtendUpdateResponse -} - -// 商户门店拓展信息更新接口 成功返回结果 -type TaobaoPlaceStoreExtendUpdateResponse struct { - XMLName xml.Name `xml:"place_store_extend_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TaobaoPlaceStoreExtendUpdateResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/store/TaobaoPlaceStoreExtendUpdateResultDo.go b/model/store/TaobaoPlaceStoreExtendUpdateResultDo.go new file mode 100644 index 0000000000..67dc27fc2f --- /dev/null +++ b/model/store/TaobaoPlaceStoreExtendUpdateResultDo.go @@ -0,0 +1,23 @@ +package store + +// TaobaoPlaceStoreExtendUpdateResultDo +type TaobaoPlaceStoreExtendUpdateResultDo struct { + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 是否失败 + Failured bool `json:"failured,omitempty" xml:"failured,omitempty"` + // 完整错误信息 + FullErrorMsg string `json:"full_error_msg,omitempty" xml:"full_error_msg,omitempty"` + // 模型 + Models *Models `json:"models,omitempty" xml:"models,omitempty"` + // 关键主键 + PriKey string `json:"pri_key,omitempty" xml:"pri_key,omitempty"` + // 结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 总数量 + TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` +} diff --git a/model/store/TaobaoPlaceStoreItemstoreBandAPIRequest.go b/model/store/TaobaoPlaceStoreItemstoreBandAPIRequest.go new file mode 100644 index 0000000000..820b661b2c --- /dev/null +++ b/model/store/TaobaoPlaceStoreItemstoreBandAPIRequest.go @@ -0,0 +1,80 @@ +package store + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店商品关联绑定接口 API请求 +taobao.place.store.itemstore.band + +商品和多个门店关系绑定接口 +*/ +type TaobaoPlaceStoreItemstoreBandAPIRequest struct { + model.Params + // 商品id + _itemId int64 + // 门店id + _storeIds []int64 + // 操作类型 + _actionType string +} + +// 初始化TaobaoPlaceStoreItemstoreBandAPIRequest对象 +func NewTaobaoPlaceStoreItemstoreBandRequest() *TaobaoPlaceStoreItemstoreBandAPIRequest{ + return &TaobaoPlaceStoreItemstoreBandAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPlaceStoreItemstoreBandAPIRequest) GetApiMethodName() string { + return "taobao.place.store.itemstore.band" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPlaceStoreItemstoreBandAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *TaobaoPlaceStoreItemstoreBandAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoPlaceStoreItemstoreBandAPIRequest) GetItemId() int64 { + return r._itemId +} +// StoreIds Setter +// 门店id +func (r *TaobaoPlaceStoreItemstoreBandAPIRequest) SetStoreIds(_storeIds []int64) error { + r._storeIds = _storeIds + r.Set("store_ids", _storeIds) + return nil +} + +// StoreIds Getter +func (r TaobaoPlaceStoreItemstoreBandAPIRequest) GetStoreIds() []int64 { + return r._storeIds +} +// ActionType Setter +// 操作类型 +func (r *TaobaoPlaceStoreItemstoreBandAPIRequest) SetActionType(_actionType string) error { + r._actionType = _actionType + r.Set("action_type", _actionType) + return nil +} + +// ActionType Getter +func (r TaobaoPlaceStoreItemstoreBandAPIRequest) GetActionType() string { + return r._actionType +} diff --git a/model/store/TaobaoPlaceStoreItemstoreBandAPIResponse.go b/model/store/TaobaoPlaceStoreItemstoreBandAPIResponse.go new file mode 100644 index 0000000000..7ece86243a --- /dev/null +++ b/model/store/TaobaoPlaceStoreItemstoreBandAPIResponse.go @@ -0,0 +1,27 @@ +package store + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店商品关联绑定接口 API返回值 +taobao.place.store.itemstore.band + +商品和多个门店关系绑定接口 +*/ +type TaobaoPlaceStoreItemstoreBandAPIResponse struct { + model.CommonResponse + TaobaoPlaceStoreItemstoreBandAPIResponseModel +} + +// 门店商品关联绑定接口 成功返回结果 +type TaobaoPlaceStoreItemstoreBandAPIResponseModel struct { + XMLName xml.Name `xml:"place_store_itemstore_band_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TopBatchResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/store/TaobaoPlaceStoreItemstoreBandResponse.go b/model/store/TaobaoPlaceStoreItemstoreBandResponse.go deleted file mode 100644 index dd4e005be2..0000000000 --- a/model/store/TaobaoPlaceStoreItemstoreBandResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package store - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店商品关联绑定接口 API返回值 -taobao.place.store.itemstore.band - -商品和多个门店关系绑定接口 -*/ -type TaobaoPlaceStoreItemstoreBandAPIResponse struct { - model.CommonResponse - TaobaoPlaceStoreItemstoreBandResponse -} - -// 门店商品关联绑定接口 成功返回结果 -type TaobaoPlaceStoreItemstoreBandResponse struct { - XMLName xml.Name `xml:"place_store_itemstore_band_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TopBatchResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/store/TaobaoPlaceStoreQueryAPIRequest.go b/model/store/TaobaoPlaceStoreQueryAPIRequest.go new file mode 100644 index 0000000000..808433c985 --- /dev/null +++ b/model/store/TaobaoPlaceStoreQueryAPIRequest.go @@ -0,0 +1,80 @@ +package store + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店信息查询接口 API请求 +taobao.place.store.query + +根据用户授权信息,获取用户的门店公开信息 +*/ +type TaobaoPlaceStoreQueryAPIRequest struct { + model.Params + // 业务code,用于区分业务 + _bizCode string + // 业务外部id + _outerId string + // 门店id + _storeId int64 +} + +// 初始化TaobaoPlaceStoreQueryAPIRequest对象 +func NewTaobaoPlaceStoreQueryRequest() *TaobaoPlaceStoreQueryAPIRequest{ + return &TaobaoPlaceStoreQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPlaceStoreQueryAPIRequest) GetApiMethodName() string { + return "taobao.place.store.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPlaceStoreQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizCode Setter +// 业务code,用于区分业务 +func (r *TaobaoPlaceStoreQueryAPIRequest) SetBizCode(_bizCode string) error { + r._bizCode = _bizCode + r.Set("biz_code", _bizCode) + return nil +} + +// BizCode Getter +func (r TaobaoPlaceStoreQueryAPIRequest) GetBizCode() string { + return r._bizCode +} +// OuterId Setter +// 业务外部id +func (r *TaobaoPlaceStoreQueryAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoPlaceStoreQueryAPIRequest) GetOuterId() string { + return r._outerId +} +// StoreId Setter +// 门店id +func (r *TaobaoPlaceStoreQueryAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoPlaceStoreQueryAPIRequest) GetStoreId() int64 { + return r._storeId +} diff --git a/model/store/TaobaoPlaceStoreQueryAPIResponse.go b/model/store/TaobaoPlaceStoreQueryAPIResponse.go new file mode 100644 index 0000000000..8512b0f61e --- /dev/null +++ b/model/store/TaobaoPlaceStoreQueryAPIResponse.go @@ -0,0 +1,27 @@ +package store + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店信息查询接口 API返回值 +taobao.place.store.query + +根据用户授权信息,获取用户的门店公开信息 +*/ +type TaobaoPlaceStoreQueryAPIResponse struct { + model.CommonResponse + TaobaoPlaceStoreQueryAPIResponseModel +} + +// 门店信息查询接口 成功返回结果 +type TaobaoPlaceStoreQueryAPIResponseModel struct { + XMLName xml.Name `xml:"place_store_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Top返回对象 + Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/store/TaobaoPlaceStoreQueryResponse.go b/model/store/TaobaoPlaceStoreQueryResponse.go deleted file mode 100644 index 03aa2b3738..0000000000 --- a/model/store/TaobaoPlaceStoreQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package store - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店信息查询接口 API返回值 -taobao.place.store.query - -根据用户授权信息,获取用户的门店公开信息 -*/ -type TaobaoPlaceStoreQueryAPIResponse struct { - model.CommonResponse - TaobaoPlaceStoreQueryResponse -} - -// 门店信息查询接口 成功返回结果 -type TaobaoPlaceStoreQueryResponse struct { - XMLName xml.Name `xml:"place_store_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Top返回对象 - Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/store/TaobaoPlaceStoreRelationQueryAPIRequest.go b/model/store/TaobaoPlaceStoreRelationQueryAPIRequest.go new file mode 100644 index 0000000000..f3cc2e29c9 --- /dev/null +++ b/model/store/TaobaoPlaceStoreRelationQueryAPIRequest.go @@ -0,0 +1,52 @@ +package store + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店关系查询 API请求 +taobao.place.store.relation.query + +查询门店关系 +*/ +type TaobaoPlaceStoreRelationQueryAPIRequest struct { + model.Params + // 系统自动生成 + _paramStoreRelationSimpleQuery *StoreRelationSimpleQuery +} + +// 初始化TaobaoPlaceStoreRelationQueryAPIRequest对象 +func NewTaobaoPlaceStoreRelationQueryRequest() *TaobaoPlaceStoreRelationQueryAPIRequest{ + return &TaobaoPlaceStoreRelationQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPlaceStoreRelationQueryAPIRequest) GetApiMethodName() string { + return "taobao.place.store.relation.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPlaceStoreRelationQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamStoreRelationSimpleQuery Setter +// 系统自动生成 +func (r *TaobaoPlaceStoreRelationQueryAPIRequest) SetParamStoreRelationSimpleQuery(_paramStoreRelationSimpleQuery *StoreRelationSimpleQuery) error { + r._paramStoreRelationSimpleQuery = _paramStoreRelationSimpleQuery + r.Set("param_store_relation_simple_query", _paramStoreRelationSimpleQuery) + return nil +} + +// ParamStoreRelationSimpleQuery Getter +func (r TaobaoPlaceStoreRelationQueryAPIRequest) GetParamStoreRelationSimpleQuery() *StoreRelationSimpleQuery { + return r._paramStoreRelationSimpleQuery +} diff --git a/model/store/TaobaoPlaceStoreRelationQueryAPIResponse.go b/model/store/TaobaoPlaceStoreRelationQueryAPIResponse.go new file mode 100644 index 0000000000..e7783d5f35 --- /dev/null +++ b/model/store/TaobaoPlaceStoreRelationQueryAPIResponse.go @@ -0,0 +1,27 @@ +package store + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店关系查询 API返回值 +taobao.place.store.relation.query + +查询门店关系 +*/ +type TaobaoPlaceStoreRelationQueryAPIResponse struct { + model.CommonResponse + TaobaoPlaceStoreRelationQueryAPIResponseModel +} + +// 门店关系查询 成功返回结果 +type TaobaoPlaceStoreRelationQueryAPIResponseModel struct { + XMLName xml.Name `xml:"place_store_relation_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TopBatchResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/store/TaobaoPlaceStoreRelationQueryResponse.go b/model/store/TaobaoPlaceStoreRelationQueryResponse.go deleted file mode 100644 index 6d85e5dc8b..0000000000 --- a/model/store/TaobaoPlaceStoreRelationQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package store - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店关系查询 API返回值 -taobao.place.store.relation.query - -查询门店关系 -*/ -type TaobaoPlaceStoreRelationQueryAPIResponse struct { - model.CommonResponse - TaobaoPlaceStoreRelationQueryResponse -} - -// 门店关系查询 成功返回结果 -type TaobaoPlaceStoreRelationQueryResponse struct { - XMLName xml.Name `xml:"place_store_relation_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TopBatchResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/store/TaobaoPlaceStoreUpdateLabelAPIRequest.go b/model/store/TaobaoPlaceStoreUpdateLabelAPIRequest.go new file mode 100644 index 0000000000..40e28102b1 --- /dev/null +++ b/model/store/TaobaoPlaceStoreUpdateLabelAPIRequest.go @@ -0,0 +1,94 @@ +package store + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商户门店标签更新接口 API请求 +taobao.place.store.update.label + +更新商户门店标签(服务、权益、标签)接口 +*/ +type TaobaoPlaceStoreUpdateLabelAPIRequest struct { + model.Params + // 门店id + _storeId int64 + // 标签id + _labelIdList []int64 + // 行业code + _businessCode string + // 标签类型 + _labelType string +} + +// 初始化TaobaoPlaceStoreUpdateLabelAPIRequest对象 +func NewTaobaoPlaceStoreUpdateLabelRequest() *TaobaoPlaceStoreUpdateLabelAPIRequest{ + return &TaobaoPlaceStoreUpdateLabelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPlaceStoreUpdateLabelAPIRequest) GetApiMethodName() string { + return "taobao.place.store.update.label" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPlaceStoreUpdateLabelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店id +func (r *TaobaoPlaceStoreUpdateLabelAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoPlaceStoreUpdateLabelAPIRequest) GetStoreId() int64 { + return r._storeId +} +// LabelIdList Setter +// 标签id +func (r *TaobaoPlaceStoreUpdateLabelAPIRequest) SetLabelIdList(_labelIdList []int64) error { + r._labelIdList = _labelIdList + r.Set("label_id_list", _labelIdList) + return nil +} + +// LabelIdList Getter +func (r TaobaoPlaceStoreUpdateLabelAPIRequest) GetLabelIdList() []int64 { + return r._labelIdList +} +// BusinessCode Setter +// 行业code +func (r *TaobaoPlaceStoreUpdateLabelAPIRequest) SetBusinessCode(_businessCode string) error { + r._businessCode = _businessCode + r.Set("business_code", _businessCode) + return nil +} + +// BusinessCode Getter +func (r TaobaoPlaceStoreUpdateLabelAPIRequest) GetBusinessCode() string { + return r._businessCode +} +// LabelType Setter +// 标签类型 +func (r *TaobaoPlaceStoreUpdateLabelAPIRequest) SetLabelType(_labelType string) error { + r._labelType = _labelType + r.Set("label_type", _labelType) + return nil +} + +// LabelType Getter +func (r TaobaoPlaceStoreUpdateLabelAPIRequest) GetLabelType() string { + return r._labelType +} diff --git a/model/store/TaobaoPlaceStoreUpdateLabelAPIResponse.go b/model/store/TaobaoPlaceStoreUpdateLabelAPIResponse.go new file mode 100644 index 0000000000..51484d55f4 --- /dev/null +++ b/model/store/TaobaoPlaceStoreUpdateLabelAPIResponse.go @@ -0,0 +1,27 @@ +package store + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商户门店标签更新接口 API返回值 +taobao.place.store.update.label + +更新商户门店标签(服务、权益、标签)接口 +*/ +type TaobaoPlaceStoreUpdateLabelAPIResponse struct { + model.CommonResponse + TaobaoPlaceStoreUpdateLabelAPIResponseModel +} + +// 商户门店标签更新接口 成功返回结果 +type TaobaoPlaceStoreUpdateLabelAPIResponseModel struct { + XMLName xml.Name `xml:"place_store_update_label_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *UpdateResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/store/TaobaoPlaceStoreUpdateLabelResponse.go b/model/store/TaobaoPlaceStoreUpdateLabelResponse.go deleted file mode 100644 index 6d56f79388..0000000000 --- a/model/store/TaobaoPlaceStoreUpdateLabelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package store - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商户门店标签更新接口 API返回值 -taobao.place.store.update.label - -更新商户门店标签(服务、权益、标签)接口 -*/ -type TaobaoPlaceStoreUpdateLabelAPIResponse struct { - model.CommonResponse - TaobaoPlaceStoreUpdateLabelResponse -} - -// 商户门店标签更新接口 成功返回结果 -type TaobaoPlaceStoreUpdateLabelResponse struct { - XMLName xml.Name `xml:"place_store_update_label_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *UpdateResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/store/TaobaoPlaceStoregroupCreateAPIRequest.go b/model/store/TaobaoPlaceStoregroupCreateAPIRequest.go new file mode 100644 index 0000000000..7d449539f6 --- /dev/null +++ b/model/store/TaobaoPlaceStoregroupCreateAPIRequest.go @@ -0,0 +1,66 @@ +package store + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商户门店库创建接口 API请求 +taobao.place.storegroup.create + +用于商家创建线下门店库 +*/ +type TaobaoPlaceStoregroupCreateAPIRequest struct { + model.Params + // 库名 + _name string + // 备注 + _desc string +} + +// 初始化TaobaoPlaceStoregroupCreateAPIRequest对象 +func NewTaobaoPlaceStoregroupCreateRequest() *TaobaoPlaceStoregroupCreateAPIRequest{ + return &TaobaoPlaceStoregroupCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPlaceStoregroupCreateAPIRequest) GetApiMethodName() string { + return "taobao.place.storegroup.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPlaceStoregroupCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// 库名 +func (r *TaobaoPlaceStoregroupCreateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoPlaceStoregroupCreateAPIRequest) GetName() string { + return r._name +} +// Desc Setter +// 备注 +func (r *TaobaoPlaceStoregroupCreateAPIRequest) SetDesc(_desc string) error { + r._desc = _desc + r.Set("desc", _desc) + return nil +} + +// Desc Getter +func (r TaobaoPlaceStoregroupCreateAPIRequest) GetDesc() string { + return r._desc +} diff --git a/model/store/TaobaoPlaceStoregroupCreateAPIResponse.go b/model/store/TaobaoPlaceStoregroupCreateAPIResponse.go new file mode 100644 index 0000000000..7330b237dc --- /dev/null +++ b/model/store/TaobaoPlaceStoregroupCreateAPIResponse.go @@ -0,0 +1,27 @@ +package store + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商户门店库创建接口 API返回值 +taobao.place.storegroup.create + +用于商家创建线下门店库 +*/ +type TaobaoPlaceStoregroupCreateAPIResponse struct { + model.CommonResponse + TaobaoPlaceStoregroupCreateAPIResponseModel +} + +// 商户门店库创建接口 成功返回结果 +type TaobaoPlaceStoregroupCreateAPIResponseModel struct { + XMLName xml.Name `xml:"place_storegroup_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TopBatchResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/store/TaobaoPlaceStoregroupCreateResponse.go b/model/store/TaobaoPlaceStoregroupCreateResponse.go deleted file mode 100644 index 30868272fd..0000000000 --- a/model/store/TaobaoPlaceStoregroupCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package store - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商户门店库创建接口 API返回值 -taobao.place.storegroup.create - -用于商家创建线下门店库 -*/ -type TaobaoPlaceStoregroupCreateAPIResponse struct { - model.CommonResponse - TaobaoPlaceStoregroupCreateResponse -} - -// 商户门店库创建接口 成功返回结果 -type TaobaoPlaceStoregroupCreateResponse struct { - XMLName xml.Name `xml:"place_storegroup_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TopBatchResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/store/TaobaoPlaceStoregroupDeleteAPIRequest.go b/model/store/TaobaoPlaceStoregroupDeleteAPIRequest.go new file mode 100644 index 0000000000..a6ef3409f4 --- /dev/null +++ b/model/store/TaobaoPlaceStoregroupDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package store + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除门店库 API请求 +taobao.place.storegroup.delete + +删除门店库 +*/ +type TaobaoPlaceStoregroupDeleteAPIRequest struct { + model.Params + // 库Id + _id int64 +} + +// 初始化TaobaoPlaceStoregroupDeleteAPIRequest对象 +func NewTaobaoPlaceStoregroupDeleteRequest() *TaobaoPlaceStoregroupDeleteAPIRequest{ + return &TaobaoPlaceStoregroupDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPlaceStoregroupDeleteAPIRequest) GetApiMethodName() string { + return "taobao.place.storegroup.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPlaceStoregroupDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 库Id +func (r *TaobaoPlaceStoregroupDeleteAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TaobaoPlaceStoregroupDeleteAPIRequest) GetId() int64 { + return r._id +} diff --git a/model/store/TaobaoPlaceStoregroupDeleteAPIResponse.go b/model/store/TaobaoPlaceStoregroupDeleteAPIResponse.go new file mode 100644 index 0000000000..64bbdee0d6 --- /dev/null +++ b/model/store/TaobaoPlaceStoregroupDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package store + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除门店库 API返回值 +taobao.place.storegroup.delete + +删除门店库 +*/ +type TaobaoPlaceStoregroupDeleteAPIResponse struct { + model.CommonResponse + TaobaoPlaceStoregroupDeleteAPIResponseModel +} + +// 删除门店库 成功返回结果 +type TaobaoPlaceStoregroupDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"place_storegroup_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TopBatchResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/store/TaobaoPlaceStoregroupDeleteResponse.go b/model/store/TaobaoPlaceStoregroupDeleteResponse.go deleted file mode 100644 index a3c7ef62e7..0000000000 --- a/model/store/TaobaoPlaceStoregroupDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package store - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除门店库 API返回值 -taobao.place.storegroup.delete - -删除门店库 -*/ -type TaobaoPlaceStoregroupDeleteAPIResponse struct { - model.CommonResponse - TaobaoPlaceStoregroupDeleteResponse -} - -// 删除门店库 成功返回结果 -type TaobaoPlaceStoregroupDeleteResponse struct { - XMLName xml.Name `xml:"place_storegroup_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TopBatchResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/store/TaobaoPlaceStoregroupUpdateAPIRequest.go b/model/store/TaobaoPlaceStoregroupUpdateAPIRequest.go new file mode 100644 index 0000000000..5221d42fed --- /dev/null +++ b/model/store/TaobaoPlaceStoregroupUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package store + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店库修改基本信息 API请求 +taobao.place.storegroup.update + +门店库修改基本信息 +*/ +type TaobaoPlaceStoregroupUpdateAPIRequest struct { + model.Params + // 库id + _id int64 + // 库名称 + _name string + // 库备注 + _desc string +} + +// 初始化TaobaoPlaceStoregroupUpdateAPIRequest对象 +func NewTaobaoPlaceStoregroupUpdateRequest() *TaobaoPlaceStoregroupUpdateAPIRequest{ + return &TaobaoPlaceStoregroupUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPlaceStoregroupUpdateAPIRequest) GetApiMethodName() string { + return "taobao.place.storegroup.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPlaceStoregroupUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 库id +func (r *TaobaoPlaceStoregroupUpdateAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TaobaoPlaceStoregroupUpdateAPIRequest) GetId() int64 { + return r._id +} +// Name Setter +// 库名称 +func (r *TaobaoPlaceStoregroupUpdateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoPlaceStoregroupUpdateAPIRequest) GetName() string { + return r._name +} +// Desc Setter +// 库备注 +func (r *TaobaoPlaceStoregroupUpdateAPIRequest) SetDesc(_desc string) error { + r._desc = _desc + r.Set("desc", _desc) + return nil +} + +// Desc Getter +func (r TaobaoPlaceStoregroupUpdateAPIRequest) GetDesc() string { + return r._desc +} diff --git a/model/store/TaobaoPlaceStoregroupUpdateAPIResponse.go b/model/store/TaobaoPlaceStoregroupUpdateAPIResponse.go new file mode 100644 index 0000000000..cbe5170552 --- /dev/null +++ b/model/store/TaobaoPlaceStoregroupUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package store + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店库修改基本信息 API返回值 +taobao.place.storegroup.update + +门店库修改基本信息 +*/ +type TaobaoPlaceStoregroupUpdateAPIResponse struct { + model.CommonResponse + TaobaoPlaceStoregroupUpdateAPIResponseModel +} + +// 门店库修改基本信息 成功返回结果 +type TaobaoPlaceStoregroupUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"place_storegroup_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TopBatchResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/store/TaobaoPlaceStoregroupUpdateResponse.go b/model/store/TaobaoPlaceStoregroupUpdateResponse.go deleted file mode 100644 index 5ac0278851..0000000000 --- a/model/store/TaobaoPlaceStoregroupUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package store - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店库修改基本信息 API返回值 -taobao.place.storegroup.update - -门店库修改基本信息 -*/ -type TaobaoPlaceStoregroupUpdateAPIResponse struct { - model.CommonResponse - TaobaoPlaceStoregroupUpdateResponse -} - -// 门店库修改基本信息 成功返回结果 -type TaobaoPlaceStoregroupUpdateResponse struct { - XMLName xml.Name `xml:"place_storegroup_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TopBatchResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/store/TaobaoPlaceStorerelatesubAddAPIRequest.go b/model/store/TaobaoPlaceStorerelatesubAddAPIRequest.go new file mode 100644 index 0000000000..169b70a2b1 --- /dev/null +++ b/model/store/TaobaoPlaceStorerelatesubAddAPIRequest.go @@ -0,0 +1,66 @@ +package store + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店和子门店关系新增 API请求 +taobao.place.storerelatesub.add + +门店和子门店关系新增 +*/ +type TaobaoPlaceStorerelatesubAddAPIRequest struct { + model.Params + // 门店Id + _storeId int64 + // 子门店Id + _subStoreIds []int64 +} + +// 初始化TaobaoPlaceStorerelatesubAddAPIRequest对象 +func NewTaobaoPlaceStorerelatesubAddRequest() *TaobaoPlaceStorerelatesubAddAPIRequest{ + return &TaobaoPlaceStorerelatesubAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPlaceStorerelatesubAddAPIRequest) GetApiMethodName() string { + return "taobao.place.storerelatesub.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPlaceStorerelatesubAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店Id +func (r *TaobaoPlaceStorerelatesubAddAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoPlaceStorerelatesubAddAPIRequest) GetStoreId() int64 { + return r._storeId +} +// SubStoreIds Setter +// 子门店Id +func (r *TaobaoPlaceStorerelatesubAddAPIRequest) SetSubStoreIds(_subStoreIds []int64) error { + r._subStoreIds = _subStoreIds + r.Set("sub_store_ids", _subStoreIds) + return nil +} + +// SubStoreIds Getter +func (r TaobaoPlaceStorerelatesubAddAPIRequest) GetSubStoreIds() []int64 { + return r._subStoreIds +} diff --git a/model/store/TaobaoPlaceStorerelatesubAddAPIResponse.go b/model/store/TaobaoPlaceStorerelatesubAddAPIResponse.go new file mode 100644 index 0000000000..7f8d4d3e8f --- /dev/null +++ b/model/store/TaobaoPlaceStorerelatesubAddAPIResponse.go @@ -0,0 +1,27 @@ +package store + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店和子门店关系新增 API返回值 +taobao.place.storerelatesub.add + +门店和子门店关系新增 +*/ +type TaobaoPlaceStorerelatesubAddAPIResponse struct { + model.CommonResponse + TaobaoPlaceStorerelatesubAddAPIResponseModel +} + +// 门店和子门店关系新增 成功返回结果 +type TaobaoPlaceStorerelatesubAddAPIResponseModel struct { + XMLName xml.Name `xml:"place_storerelatesub_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TopBatchResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/store/TaobaoPlaceStorerelatesubAddResponse.go b/model/store/TaobaoPlaceStorerelatesubAddResponse.go deleted file mode 100644 index 0c7dae2e09..0000000000 --- a/model/store/TaobaoPlaceStorerelatesubAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package store - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店和子门店关系新增 API返回值 -taobao.place.storerelatesub.add - -门店和子门店关系新增 -*/ -type TaobaoPlaceStorerelatesubAddAPIResponse struct { - model.CommonResponse - TaobaoPlaceStorerelatesubAddResponse -} - -// 门店和子门店关系新增 成功返回结果 -type TaobaoPlaceStorerelatesubAddResponse struct { - XMLName xml.Name `xml:"place_storerelatesub_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TopBatchResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/store/TaobaoPlaceStorerelatesubDeleteAPIRequest.go b/model/store/TaobaoPlaceStorerelatesubDeleteAPIRequest.go new file mode 100644 index 0000000000..b2f382f6c6 --- /dev/null +++ b/model/store/TaobaoPlaceStorerelatesubDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package store + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店和子门店关系删除 API请求 +taobao.place.storerelatesub.delete + +门店和子门店关系删除 +*/ +type TaobaoPlaceStorerelatesubDeleteAPIRequest struct { + model.Params + // 门店Id + _storeId int64 + // 子门店id + _subStoreIds []int64 +} + +// 初始化TaobaoPlaceStorerelatesubDeleteAPIRequest对象 +func NewTaobaoPlaceStorerelatesubDeleteRequest() *TaobaoPlaceStorerelatesubDeleteAPIRequest{ + return &TaobaoPlaceStorerelatesubDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPlaceStorerelatesubDeleteAPIRequest) GetApiMethodName() string { + return "taobao.place.storerelatesub.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPlaceStorerelatesubDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店Id +func (r *TaobaoPlaceStorerelatesubDeleteAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoPlaceStorerelatesubDeleteAPIRequest) GetStoreId() int64 { + return r._storeId +} +// SubStoreIds Setter +// 子门店id +func (r *TaobaoPlaceStorerelatesubDeleteAPIRequest) SetSubStoreIds(_subStoreIds []int64) error { + r._subStoreIds = _subStoreIds + r.Set("sub_store_ids", _subStoreIds) + return nil +} + +// SubStoreIds Getter +func (r TaobaoPlaceStorerelatesubDeleteAPIRequest) GetSubStoreIds() []int64 { + return r._subStoreIds +} diff --git a/model/store/TaobaoPlaceStorerelatesubDeleteAPIResponse.go b/model/store/TaobaoPlaceStorerelatesubDeleteAPIResponse.go new file mode 100644 index 0000000000..352e888ad1 --- /dev/null +++ b/model/store/TaobaoPlaceStorerelatesubDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package store + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店和子门店关系删除 API返回值 +taobao.place.storerelatesub.delete + +门店和子门店关系删除 +*/ +type TaobaoPlaceStorerelatesubDeleteAPIResponse struct { + model.CommonResponse + TaobaoPlaceStorerelatesubDeleteAPIResponseModel +} + +// 门店和子门店关系删除 成功返回结果 +type TaobaoPlaceStorerelatesubDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"place_storerelatesub_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TopBatchResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/store/TaobaoPlaceStorerelatesubDeleteResponse.go b/model/store/TaobaoPlaceStorerelatesubDeleteResponse.go deleted file mode 100644 index 301537df3b..0000000000 --- a/model/store/TaobaoPlaceStorerelatesubDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package store - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店和子门店关系删除 API返回值 -taobao.place.storerelatesub.delete - -门店和子门店关系删除 -*/ -type TaobaoPlaceStorerelatesubDeleteAPIResponse struct { - model.CommonResponse - TaobaoPlaceStorerelatesubDeleteResponse -} - -// 门店和子门店关系删除 成功返回结果 -type TaobaoPlaceStorerelatesubDeleteResponse struct { - XMLName xml.Name `xml:"place_storerelatesub_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TopBatchResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/store/TaobaoPlaceStorerelatesubGetAPIRequest.go b/model/store/TaobaoPlaceStorerelatesubGetAPIRequest.go new file mode 100644 index 0000000000..de8fc43147 --- /dev/null +++ b/model/store/TaobaoPlaceStorerelatesubGetAPIRequest.go @@ -0,0 +1,94 @@ +package store + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店和子门店关系查找 API请求 +taobao.place.storerelatesub.get + +门店和子门店关系查找 +*/ +type TaobaoPlaceStorerelatesubGetAPIRequest struct { + model.Params + // 门店Id + _storeId int64 + // 查询语句 + _query string + // 第几页 + _pageNo int64 + // 页大小 + _pageSize int64 +} + +// 初始化TaobaoPlaceStorerelatesubGetAPIRequest对象 +func NewTaobaoPlaceStorerelatesubGetRequest() *TaobaoPlaceStorerelatesubGetAPIRequest{ + return &TaobaoPlaceStorerelatesubGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoPlaceStorerelatesubGetAPIRequest) GetApiMethodName() string { + return "taobao.place.storerelatesub.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoPlaceStorerelatesubGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店Id +func (r *TaobaoPlaceStorerelatesubGetAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoPlaceStorerelatesubGetAPIRequest) GetStoreId() int64 { + return r._storeId +} +// Query Setter +// 查询语句 +func (r *TaobaoPlaceStorerelatesubGetAPIRequest) SetQuery(_query string) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r TaobaoPlaceStorerelatesubGetAPIRequest) GetQuery() string { + return r._query +} +// PageNo Setter +// 第几页 +func (r *TaobaoPlaceStorerelatesubGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoPlaceStorerelatesubGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 页大小 +func (r *TaobaoPlaceStorerelatesubGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoPlaceStorerelatesubGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/store/TaobaoPlaceStorerelatesubGetAPIResponse.go b/model/store/TaobaoPlaceStorerelatesubGetAPIResponse.go new file mode 100644 index 0000000000..e038f6e22e --- /dev/null +++ b/model/store/TaobaoPlaceStorerelatesubGetAPIResponse.go @@ -0,0 +1,27 @@ +package store + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店和子门店关系查找 API返回值 +taobao.place.storerelatesub.get + +门店和子门店关系查找 +*/ +type TaobaoPlaceStorerelatesubGetAPIResponse struct { + model.CommonResponse + TaobaoPlaceStorerelatesubGetAPIResponseModel +} + +// 门店和子门店关系查找 成功返回结果 +type TaobaoPlaceStorerelatesubGetAPIResponseModel struct { + XMLName xml.Name `xml:"place_storerelatesub_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TopBatchResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/store/TaobaoPlaceStorerelatesubGetResponse.go b/model/store/TaobaoPlaceStorerelatesubGetResponse.go deleted file mode 100644 index 98a9178334..0000000000 --- a/model/store/TaobaoPlaceStorerelatesubGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package store - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店和子门店关系查找 API返回值 -taobao.place.storerelatesub.get - -门店和子门店关系查找 -*/ -type TaobaoPlaceStorerelatesubGetAPIResponse struct { - model.CommonResponse - TaobaoPlaceStorerelatesubGetResponse -} - -// 门店和子门店关系查找 成功返回结果 -type TaobaoPlaceStorerelatesubGetResponse struct { - XMLName xml.Name `xml:"place_storerelatesub_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TopBatchResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/subuser/TaobaoSellercenterRoleAddAPIRequest.go b/model/subuser/TaobaoSellercenterRoleAddAPIRequest.go new file mode 100644 index 0000000000..bb66842592 --- /dev/null +++ b/model/subuser/TaobaoSellercenterRoleAddAPIRequest.go @@ -0,0 +1,94 @@ +package subuser + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +子账号角色的新增(指定卖家) API请求 +taobao.sellercenter.role.add + +给指定的卖家创建新的子账号角色

如果需要授权的权限点有下级权限点或上级权限点,把该权限点的父权限点和该权限点的所有子权限都一并做赋权操作,并递归处理
例如:权限点列表如下

code=sell 宝贝管理

---------|code=sm 店铺管理

---------|---------|code=sm-design 如店铺装修

---------|---------|---------|code=sm-tbd-visit内店装修入口

---------|---------|---------|code=sm-tbd-publish内店装修发布

---------|---------|code=phone 手机淘宝店铺

调用改接口给code=sm-design店铺装修赋权时,同时会将下列权限点都赋予默认角色

code=sell 宝贝管理

---------|code=sm 店铺管理

---------|---------|code=sm-design 如店铺装修

---------|---------|---------|code=sm-tbd-visit内店装修入口

---------|---------|---------|code=sm-tbd-publish内店装修发布
+*/ +type TaobaoSellercenterRoleAddAPIRequest struct { + model.Params + // 角色名 + _name string + // 角色描述 + _description string + // 需要授权的权限点permission_code列表,以","分割.其code值可以通过调用taobao.sellercenter.user.permissions.get返回,其中permission.is_authorize=1的权限点可以通过本接口授权给对应角色。 + _permissionCodes []string + // 表示卖家昵称 + _nick string +} + +// 初始化TaobaoSellercenterRoleAddAPIRequest对象 +func NewTaobaoSellercenterRoleAddRequest() *TaobaoSellercenterRoleAddAPIRequest{ + return &TaobaoSellercenterRoleAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSellercenterRoleAddAPIRequest) GetApiMethodName() string { + return "taobao.sellercenter.role.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSellercenterRoleAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// 角色名 +func (r *TaobaoSellercenterRoleAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoSellercenterRoleAddAPIRequest) GetName() string { + return r._name +} +// Description Setter +// 角色描述 +func (r *TaobaoSellercenterRoleAddAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r TaobaoSellercenterRoleAddAPIRequest) GetDescription() string { + return r._description +} +// PermissionCodes Setter +// 需要授权的权限点permission_code列表,以","分割.其code值可以通过调用taobao.sellercenter.user.permissions.get返回,其中permission.is_authorize=1的权限点可以通过本接口授权给对应角色。 +func (r *TaobaoSellercenterRoleAddAPIRequest) SetPermissionCodes(_permissionCodes []string) error { + r._permissionCodes = _permissionCodes + r.Set("permission_codes", _permissionCodes) + return nil +} + +// PermissionCodes Getter +func (r TaobaoSellercenterRoleAddAPIRequest) GetPermissionCodes() []string { + return r._permissionCodes +} +// Nick Setter +// 表示卖家昵称 +func (r *TaobaoSellercenterRoleAddAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSellercenterRoleAddAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/subuser/TaobaoSellercenterRoleAddAPIResponse.go b/model/subuser/TaobaoSellercenterRoleAddAPIResponse.go new file mode 100644 index 0000000000..81b5d55aad --- /dev/null +++ b/model/subuser/TaobaoSellercenterRoleAddAPIResponse.go @@ -0,0 +1,27 @@ +package subuser + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +子账号角色的新增(指定卖家) API返回值 +taobao.sellercenter.role.add + +给指定的卖家创建新的子账号角色

如果需要授权的权限点有下级权限点或上级权限点,把该权限点的父权限点和该权限点的所有子权限都一并做赋权操作,并递归处理
例如:权限点列表如下

code=sell 宝贝管理

---------|code=sm 店铺管理

---------|---------|code=sm-design 如店铺装修

---------|---------|---------|code=sm-tbd-visit内店装修入口

---------|---------|---------|code=sm-tbd-publish内店装修发布

---------|---------|code=phone 手机淘宝店铺

调用改接口给code=sm-design店铺装修赋权时,同时会将下列权限点都赋予默认角色

code=sell 宝贝管理

---------|code=sm 店铺管理

---------|---------|code=sm-design 如店铺装修

---------|---------|---------|code=sm-tbd-visit内店装修入口

---------|---------|---------|code=sm-tbd-publish内店装修发布
+*/ +type TaobaoSellercenterRoleAddAPIResponse struct { + model.CommonResponse + TaobaoSellercenterRoleAddAPIResponseModel +} + +// 子账号角色的新增(指定卖家) 成功返回结果 +type TaobaoSellercenterRoleAddAPIResponseModel struct { + XMLName xml.Name `xml:"sellercenter_role_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 子账号角色 + Role *Role `json:"role,omitempty" xml:"role,omitempty"` +} diff --git a/model/subuser/TaobaoSellercenterRoleAddResponse.go b/model/subuser/TaobaoSellercenterRoleAddResponse.go deleted file mode 100644 index a040234047..0000000000 --- a/model/subuser/TaobaoSellercenterRoleAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package subuser - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -子账号角色的新增(指定卖家) API返回值 -taobao.sellercenter.role.add - -给指定的卖家创建新的子账号角色

如果需要授权的权限点有下级权限点或上级权限点,把该权限点的父权限点和该权限点的所有子权限都一并做赋权操作,并递归处理
例如:权限点列表如下

code=sell 宝贝管理

---------|code=sm 店铺管理

---------|---------|code=sm-design 如店铺装修

---------|---------|---------|code=sm-tbd-visit内店装修入口

---------|---------|---------|code=sm-tbd-publish内店装修发布

---------|---------|code=phone 手机淘宝店铺

调用改接口给code=sm-design店铺装修赋权时,同时会将下列权限点都赋予默认角色

code=sell 宝贝管理

---------|code=sm 店铺管理

---------|---------|code=sm-design 如店铺装修

---------|---------|---------|code=sm-tbd-visit内店装修入口

---------|---------|---------|code=sm-tbd-publish内店装修发布
-*/ -type TaobaoSellercenterRoleAddAPIResponse struct { - model.CommonResponse - TaobaoSellercenterRoleAddResponse -} - -// 子账号角色的新增(指定卖家) 成功返回结果 -type TaobaoSellercenterRoleAddResponse struct { - XMLName xml.Name `xml:"sellercenter_role_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 子账号角色 - Role *Role `json:"role,omitempty" xml:"role,omitempty"` -} diff --git a/model/subuser/TaobaoSellercenterRolesGetAPIRequest.go b/model/subuser/TaobaoSellercenterRolesGetAPIRequest.go new file mode 100644 index 0000000000..6e455ad99c --- /dev/null +++ b/model/subuser/TaobaoSellercenterRolesGetAPIRequest.go @@ -0,0 +1,52 @@ +package subuser + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定卖家的角色列表 API请求 +taobao.sellercenter.roles.get + +获取指定卖家的角色列表,只能获取属于登陆者自己的信息。 +*/ +type TaobaoSellercenterRolesGetAPIRequest struct { + model.Params + // 卖家昵称(只允许查询自己的信息:当前登陆者) + _nick string +} + +// 初始化TaobaoSellercenterRolesGetAPIRequest对象 +func NewTaobaoSellercenterRolesGetRequest() *TaobaoSellercenterRolesGetAPIRequest{ + return &TaobaoSellercenterRolesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSellercenterRolesGetAPIRequest) GetApiMethodName() string { + return "taobao.sellercenter.roles.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSellercenterRolesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 卖家昵称(只允许查询自己的信息:当前登陆者) +func (r *TaobaoSellercenterRolesGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSellercenterRolesGetAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/subuser/TaobaoSellercenterRolesGetAPIResponse.go b/model/subuser/TaobaoSellercenterRolesGetAPIResponse.go new file mode 100644 index 0000000000..19f47838b0 --- /dev/null +++ b/model/subuser/TaobaoSellercenterRolesGetAPIResponse.go @@ -0,0 +1,27 @@ +package subuser + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定卖家的角色列表 API返回值 +taobao.sellercenter.roles.get + +获取指定卖家的角色列表,只能获取属于登陆者自己的信息。 +*/ +type TaobaoSellercenterRolesGetAPIResponse struct { + model.CommonResponse + TaobaoSellercenterRolesGetAPIResponseModel +} + +// 获取指定卖家的角色列表 成功返回结果 +type TaobaoSellercenterRolesGetAPIResponseModel struct { + XMLName xml.Name `xml:"sellercenter_roles_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 卖家子账号角色列表。
返回对象为 role数据对象中的role_id,role_name,description,seller_id,create_time,modified_time。不包含permissions(权限点) + Roles []Role `json:"roles,omitempty" xml:"roles>role,omitempty"` +} diff --git a/model/subuser/TaobaoSellercenterRolesGetResponse.go b/model/subuser/TaobaoSellercenterRolesGetResponse.go deleted file mode 100644 index 8155bcf8b7..0000000000 --- a/model/subuser/TaobaoSellercenterRolesGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package subuser - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取指定卖家的角色列表 API返回值 -taobao.sellercenter.roles.get - -获取指定卖家的角色列表,只能获取属于登陆者自己的信息。 -*/ -type TaobaoSellercenterRolesGetAPIResponse struct { - model.CommonResponse - TaobaoSellercenterRolesGetResponse -} - -// 获取指定卖家的角色列表 成功返回结果 -type TaobaoSellercenterRolesGetResponse struct { - XMLName xml.Name `xml:"sellercenter_roles_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 卖家子账号角色列表。
返回对象为 role数据对象中的role_id,role_name,description,seller_id,create_time,modified_time。不包含permissions(权限点) - Roles []Role `json:"roles,omitempty" xml:"roles>role,omitempty"` -} diff --git a/model/subuser/TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest.go b/model/subuser/TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest.go new file mode 100644 index 0000000000..4415a9c490 --- /dev/null +++ b/model/subuser/TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest.go @@ -0,0 +1,52 @@ +package subuser + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询指定的子账号的权限和角色信息 API请求 +taobao.sellercenter.subuser.permissions.roles.get + +查询指定的子账号的被直接赋予的权限信息和角色信息。
返回对象中包括直接赋予子账号的权限点信息、被赋予的角色以及角色的对应权限点信息。 +*/ +type TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest struct { + model.Params + // 子账号昵称(子账号标识) + _nick string +} + +// 初始化TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest对象 +func NewTaobaoSellercenterSubuserPermissionsRolesGetRequest() *TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest{ + return &TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest) GetApiMethodName() string { + return "taobao.sellercenter.subuser.permissions.roles.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 子账号昵称(子账号标识) +func (r *TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSellercenterSubuserPermissionsRolesGetAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/subuser/TaobaoSellercenterSubuserPermissionsRolesGetAPIResponse.go b/model/subuser/TaobaoSellercenterSubuserPermissionsRolesGetAPIResponse.go new file mode 100644 index 0000000000..84d53bc343 --- /dev/null +++ b/model/subuser/TaobaoSellercenterSubuserPermissionsRolesGetAPIResponse.go @@ -0,0 +1,27 @@ +package subuser + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询指定的子账号的权限和角色信息 API返回值 +taobao.sellercenter.subuser.permissions.roles.get + +查询指定的子账号的被直接赋予的权限信息和角色信息。
返回对象中包括直接赋予子账号的权限点信息、被赋予的角色以及角色的对应权限点信息。 +*/ +type TaobaoSellercenterSubuserPermissionsRolesGetAPIResponse struct { + model.CommonResponse + TaobaoSellercenterSubuserPermissionsRolesGetAPIResponseModel +} + +// 查询指定的子账号的权限和角色信息 成功返回结果 +type TaobaoSellercenterSubuserPermissionsRolesGetAPIResponseModel struct { + XMLName xml.Name `xml:"sellercenter_subuser_permissions_roles_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 子账号被所拥有的权限 + SubuserPermission *SubUserPermission `json:"subuser_permission,omitempty" xml:"subuser_permission,omitempty"` +} diff --git a/model/subuser/TaobaoSellercenterSubuserPermissionsRolesGetResponse.go b/model/subuser/TaobaoSellercenterSubuserPermissionsRolesGetResponse.go deleted file mode 100644 index 1b55a516fb..0000000000 --- a/model/subuser/TaobaoSellercenterSubuserPermissionsRolesGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package subuser - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询指定的子账号的权限和角色信息 API返回值 -taobao.sellercenter.subuser.permissions.roles.get - -查询指定的子账号的被直接赋予的权限信息和角色信息。
返回对象中包括直接赋予子账号的权限点信息、被赋予的角色以及角色的对应权限点信息。 -*/ -type TaobaoSellercenterSubuserPermissionsRolesGetAPIResponse struct { - model.CommonResponse - TaobaoSellercenterSubuserPermissionsRolesGetResponse -} - -// 查询指定的子账号的权限和角色信息 成功返回结果 -type TaobaoSellercenterSubuserPermissionsRolesGetResponse struct { - XMLName xml.Name `xml:"sellercenter_subuser_permissions_roles_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 子账号被所拥有的权限 - SubuserPermission *SubUserPermission `json:"subuser_permission,omitempty" xml:"subuser_permission,omitempty"` -} diff --git a/model/subuser/TaobaoSellercenterSubusersGetAPIRequest.go b/model/subuser/TaobaoSellercenterSubusersGetAPIRequest.go new file mode 100644 index 0000000000..6c38620bf0 --- /dev/null +++ b/model/subuser/TaobaoSellercenterSubusersGetAPIRequest.go @@ -0,0 +1,52 @@ +package subuser + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询指定账户的子账号列表 API请求 +taobao.sellercenter.subusers.get + +根据主账号nick查询该账号下所有的子账号列表,只能查询属于自己的账号信息 (主账号以及所属子账号) +*/ +type TaobaoSellercenterSubusersGetAPIRequest struct { + model.Params + // 表示卖家昵称 + _nick string +} + +// 初始化TaobaoSellercenterSubusersGetAPIRequest对象 +func NewTaobaoSellercenterSubusersGetRequest() *TaobaoSellercenterSubusersGetAPIRequest{ + return &TaobaoSellercenterSubusersGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSellercenterSubusersGetAPIRequest) GetApiMethodName() string { + return "taobao.sellercenter.subusers.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSellercenterSubusersGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 表示卖家昵称 +func (r *TaobaoSellercenterSubusersGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSellercenterSubusersGetAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/subuser/TaobaoSellercenterSubusersGetAPIResponse.go b/model/subuser/TaobaoSellercenterSubusersGetAPIResponse.go new file mode 100644 index 0000000000..1db5dc5cbd --- /dev/null +++ b/model/subuser/TaobaoSellercenterSubusersGetAPIResponse.go @@ -0,0 +1,27 @@ +package subuser + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询指定账户的子账号列表 API返回值 +taobao.sellercenter.subusers.get + +根据主账号nick查询该账号下所有的子账号列表,只能查询属于自己的账号信息 (主账号以及所属子账号) +*/ +type TaobaoSellercenterSubusersGetAPIResponse struct { + model.CommonResponse + TaobaoSellercenterSubusersGetAPIResponseModel +} + +// 查询指定账户的子账号列表 成功返回结果 +type TaobaoSellercenterSubusersGetAPIResponseModel struct { + XMLName xml.Name `xml:"sellercenter_subusers_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 子账号基本信息列表。具体信息为id、子账号用户名、主账号id、主账号昵称、当前状态值、是否分流 + Subusers []SubUserInfo `json:"subusers,omitempty" xml:"subusers>sub_user_info,omitempty"` +} diff --git a/model/subuser/TaobaoSellercenterSubusersGetResponse.go b/model/subuser/TaobaoSellercenterSubusersGetResponse.go deleted file mode 100644 index 23588615ff..0000000000 --- a/model/subuser/TaobaoSellercenterSubusersGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package subuser - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询指定账户的子账号列表 API返回值 -taobao.sellercenter.subusers.get - -根据主账号nick查询该账号下所有的子账号列表,只能查询属于自己的账号信息 (主账号以及所属子账号) -*/ -type TaobaoSellercenterSubusersGetAPIResponse struct { - model.CommonResponse - TaobaoSellercenterSubusersGetResponse -} - -// 查询指定账户的子账号列表 成功返回结果 -type TaobaoSellercenterSubusersGetResponse struct { - XMLName xml.Name `xml:"sellercenter_subusers_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 子账号基本信息列表。具体信息为id、子账号用户名、主账号id、主账号昵称、当前状态值、是否分流 - Subusers []SubUserInfo `json:"subusers,omitempty" xml:"subusers>sub_user_info,omitempty"` -} diff --git a/model/subuser/TaobaoSellercenterUserPermissionsGetAPIRequest.go b/model/subuser/TaobaoSellercenterUserPermissionsGetAPIRequest.go new file mode 100644 index 0000000000..c4e11d153b --- /dev/null +++ b/model/subuser/TaobaoSellercenterUserPermissionsGetAPIRequest.go @@ -0,0 +1,52 @@ +package subuser + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定用户的权限集合 API请求 +taobao.sellercenter.user.permissions.get + +获取指定用户的权限集合,并不组装成树。如果是主账号,返回所有的权限列表;如果是子账号,返回所有已授权的权限。只能查询属于自己的账号信息 (如果是主账号,则是主账号以及所属子账号,如果是子账号则是对应主账号以及所属子账号) +*/ +type TaobaoSellercenterUserPermissionsGetAPIRequest struct { + model.Params + // 用户标识,次入参必须为子账号比如zhangsan:cool。如果只输入主账号zhangsan,将报错。 + _nick string +} + +// 初始化TaobaoSellercenterUserPermissionsGetAPIRequest对象 +func NewTaobaoSellercenterUserPermissionsGetRequest() *TaobaoSellercenterUserPermissionsGetAPIRequest{ + return &TaobaoSellercenterUserPermissionsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSellercenterUserPermissionsGetAPIRequest) GetApiMethodName() string { + return "taobao.sellercenter.user.permissions.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSellercenterUserPermissionsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 用户标识,次入参必须为子账号比如zhangsan:cool。如果只输入主账号zhangsan,将报错。 +func (r *TaobaoSellercenterUserPermissionsGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoSellercenterUserPermissionsGetAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/subuser/TaobaoSellercenterUserPermissionsGetAPIResponse.go b/model/subuser/TaobaoSellercenterUserPermissionsGetAPIResponse.go new file mode 100644 index 0000000000..e2981cca05 --- /dev/null +++ b/model/subuser/TaobaoSellercenterUserPermissionsGetAPIResponse.go @@ -0,0 +1,27 @@ +package subuser + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定用户的权限集合 API返回值 +taobao.sellercenter.user.permissions.get + +获取指定用户的权限集合,并不组装成树。如果是主账号,返回所有的权限列表;如果是子账号,返回所有已授权的权限。只能查询属于自己的账号信息 (如果是主账号,则是主账号以及所属子账号,如果是子账号则是对应主账号以及所属子账号) +*/ +type TaobaoSellercenterUserPermissionsGetAPIResponse struct { + model.CommonResponse + TaobaoSellercenterUserPermissionsGetAPIResponseModel +} + +// 获取指定用户的权限集合 成功返回结果 +type TaobaoSellercenterUserPermissionsGetAPIResponseModel struct { + XMLName xml.Name `xml:"sellercenter_user_permissions_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 权限列表 + Permissions []Permission `json:"permissions,omitempty" xml:"permissions>permission,omitempty"` +} diff --git a/model/subuser/TaobaoSellercenterUserPermissionsGetResponse.go b/model/subuser/TaobaoSellercenterUserPermissionsGetResponse.go deleted file mode 100644 index 765394181a..0000000000 --- a/model/subuser/TaobaoSellercenterUserPermissionsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package subuser - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取指定用户的权限集合 API返回值 -taobao.sellercenter.user.permissions.get - -获取指定用户的权限集合,并不组装成树。如果是主账号,返回所有的权限列表;如果是子账号,返回所有已授权的权限。只能查询属于自己的账号信息 (如果是主账号,则是主账号以及所属子账号,如果是子账号则是对应主账号以及所属子账号) -*/ -type TaobaoSellercenterUserPermissionsGetAPIResponse struct { - model.CommonResponse - TaobaoSellercenterUserPermissionsGetResponse -} - -// 获取指定用户的权限集合 成功返回结果 -type TaobaoSellercenterUserPermissionsGetResponse struct { - XMLName xml.Name `xml:"sellercenter_user_permissions_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 权限列表 - Permissions []Permission `json:"permissions,omitempty" xml:"permissions>permission,omitempty"` -} diff --git a/model/subuser/TaobaoSubuserDepartmentsGetAPIRequest.go b/model/subuser/TaobaoSubuserDepartmentsGetAPIRequest.go new file mode 100644 index 0000000000..8831f7c06a --- /dev/null +++ b/model/subuser/TaobaoSubuserDepartmentsGetAPIRequest.go @@ -0,0 +1,52 @@ +package subuser + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定账户的所有部门列表 API请求 +taobao.subuser.departments.get + +获取指定账户的所有部门列表,其实包括有每个部门的ID、父部门ID、部门名称(通过主账号登陆只能查询属于该主账号下的所有部门信息)。 +*/ +type TaobaoSubuserDepartmentsGetAPIRequest struct { + model.Params + // 主账号用户名 + _userNick string +} + +// 初始化TaobaoSubuserDepartmentsGetAPIRequest对象 +func NewTaobaoSubuserDepartmentsGetRequest() *TaobaoSubuserDepartmentsGetAPIRequest{ + return &TaobaoSubuserDepartmentsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSubuserDepartmentsGetAPIRequest) GetApiMethodName() string { + return "taobao.subuser.departments.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSubuserDepartmentsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserNick Setter +// 主账号用户名 +func (r *TaobaoSubuserDepartmentsGetAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r TaobaoSubuserDepartmentsGetAPIRequest) GetUserNick() string { + return r._userNick +} diff --git a/model/subuser/TaobaoSubuserDepartmentsGetAPIResponse.go b/model/subuser/TaobaoSubuserDepartmentsGetAPIResponse.go new file mode 100644 index 0000000000..069d79ff3b --- /dev/null +++ b/model/subuser/TaobaoSubuserDepartmentsGetAPIResponse.go @@ -0,0 +1,27 @@ +package subuser + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定账户的所有部门列表 API返回值 +taobao.subuser.departments.get + +获取指定账户的所有部门列表,其实包括有每个部门的ID、父部门ID、部门名称(通过主账号登陆只能查询属于该主账号下的所有部门信息)。 +*/ +type TaobaoSubuserDepartmentsGetAPIResponse struct { + model.CommonResponse + TaobaoSubuserDepartmentsGetAPIResponseModel +} + +// 获取指定账户的所有部门列表 成功返回结果 +type TaobaoSubuserDepartmentsGetAPIResponseModel struct { + XMLName xml.Name `xml:"subuser_departments_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 部门信息 + Departments []Department `json:"departments,omitempty" xml:"departments>department,omitempty"` +} diff --git a/model/subuser/TaobaoSubuserDepartmentsGetResponse.go b/model/subuser/TaobaoSubuserDepartmentsGetResponse.go deleted file mode 100644 index c0e5645b86..0000000000 --- a/model/subuser/TaobaoSubuserDepartmentsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package subuser - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取指定账户的所有部门列表 API返回值 -taobao.subuser.departments.get - -获取指定账户的所有部门列表,其实包括有每个部门的ID、父部门ID、部门名称(通过主账号登陆只能查询属于该主账号下的所有部门信息)。 -*/ -type TaobaoSubuserDepartmentsGetAPIResponse struct { - model.CommonResponse - TaobaoSubuserDepartmentsGetResponse -} - -// 获取指定账户的所有部门列表 成功返回结果 -type TaobaoSubuserDepartmentsGetResponse struct { - XMLName xml.Name `xml:"subuser_departments_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 部门信息 - Departments []Department `json:"departments,omitempty" xml:"departments>department,omitempty"` -} diff --git a/model/subuser/TaobaoSubuserDutysGetAPIRequest.go b/model/subuser/TaobaoSubuserDutysGetAPIRequest.go new file mode 100644 index 0000000000..78f75dabfc --- /dev/null +++ b/model/subuser/TaobaoSubuserDutysGetAPIRequest.go @@ -0,0 +1,52 @@ +package subuser + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定账户的所有职务信息列表 API请求 +taobao.subuser.dutys.get + +通过主账号Nick获取该账户下的所有职务信息,职务信息中包括职务ID、职务名称以及职务等级(通过主账号登陆只能获取属于该主账号下的职务信息) +*/ +type TaobaoSubuserDutysGetAPIRequest struct { + model.Params + // 主账号用户名 + _userNick string +} + +// 初始化TaobaoSubuserDutysGetAPIRequest对象 +func NewTaobaoSubuserDutysGetRequest() *TaobaoSubuserDutysGetAPIRequest{ + return &TaobaoSubuserDutysGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSubuserDutysGetAPIRequest) GetApiMethodName() string { + return "taobao.subuser.dutys.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSubuserDutysGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserNick Setter +// 主账号用户名 +func (r *TaobaoSubuserDutysGetAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r TaobaoSubuserDutysGetAPIRequest) GetUserNick() string { + return r._userNick +} diff --git a/model/subuser/TaobaoSubuserDutysGetAPIResponse.go b/model/subuser/TaobaoSubuserDutysGetAPIResponse.go new file mode 100644 index 0000000000..20c23d9bde --- /dev/null +++ b/model/subuser/TaobaoSubuserDutysGetAPIResponse.go @@ -0,0 +1,27 @@ +package subuser + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定账户的所有职务信息列表 API返回值 +taobao.subuser.dutys.get + +通过主账号Nick获取该账户下的所有职务信息,职务信息中包括职务ID、职务名称以及职务等级(通过主账号登陆只能获取属于该主账号下的职务信息) +*/ +type TaobaoSubuserDutysGetAPIResponse struct { + model.CommonResponse + TaobaoSubuserDutysGetAPIResponseModel +} + +// 获取指定账户的所有职务信息列表 成功返回结果 +type TaobaoSubuserDutysGetAPIResponseModel struct { + XMLName xml.Name `xml:"subuser_dutys_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 职务信息 + Dutys []Duty `json:"dutys,omitempty" xml:"dutys>duty,omitempty"` +} diff --git a/model/subuser/TaobaoSubuserDutysGetResponse.go b/model/subuser/TaobaoSubuserDutysGetResponse.go deleted file mode 100644 index 467a43358a..0000000000 --- a/model/subuser/TaobaoSubuserDutysGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package subuser - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取指定账户的所有职务信息列表 API返回值 -taobao.subuser.dutys.get - -通过主账号Nick获取该账户下的所有职务信息,职务信息中包括职务ID、职务名称以及职务等级(通过主账号登陆只能获取属于该主账号下的职务信息) -*/ -type TaobaoSubuserDutysGetAPIResponse struct { - model.CommonResponse - TaobaoSubuserDutysGetResponse -} - -// 获取指定账户的所有职务信息列表 成功返回结果 -type TaobaoSubuserDutysGetResponse struct { - XMLName xml.Name `xml:"subuser_dutys_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 职务信息 - Dutys []Duty `json:"dutys,omitempty" xml:"dutys>duty,omitempty"` -} diff --git a/model/subuser/TaobaoSubuserFullinfoGetAPIRequest.go b/model/subuser/TaobaoSubuserFullinfoGetAPIRequest.go new file mode 100644 index 0000000000..0d2ffbf02a --- /dev/null +++ b/model/subuser/TaobaoSubuserFullinfoGetAPIRequest.go @@ -0,0 +1,80 @@ +package subuser + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定账户子账号的详细信息 API请求 +taobao.subuser.fullinfo.get + +获取指定账户子账号的详细信息,其中包括子账号的账号信息以及员工、部门、职务信息(只能通过主账号登陆并查询属于该主账号下的某个子账号详细信息) +*/ +type TaobaoSubuserFullinfoGetAPIRequest struct { + model.Params + // 子账号ID(传参中sub_id和sub_nick至少需要其中一个,若sub_id与sub_nick同时传入并且合法,那么sub_nick优先,以sub_nick查询子账号) + _subId int64 + // 传入所需要的参数信息(若不需要获取子账号或主账号的企业邮箱地址,则无需传入该参数;若需要获取子账号或主账号的企业邮箱地址,则需要传入fields;可选参数值为subuser_email和user_email,传入其他参数值均无效;两个参数都需要则以逗号隔开传入即可,例如:subuser_email,user_email) + _fields string + // 子账号用户名(传参中sub_id和sub_nick至少需要其中一个,若sub_id与sub_nick同时传入并且合法,那么sub_nick优先,以sub_nick查询子账号) + _subNick string +} + +// 初始化TaobaoSubuserFullinfoGetAPIRequest对象 +func NewTaobaoSubuserFullinfoGetRequest() *TaobaoSubuserFullinfoGetAPIRequest{ + return &TaobaoSubuserFullinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSubuserFullinfoGetAPIRequest) GetApiMethodName() string { + return "taobao.subuser.fullinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSubuserFullinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubId Setter +// 子账号ID(传参中sub_id和sub_nick至少需要其中一个,若sub_id与sub_nick同时传入并且合法,那么sub_nick优先,以sub_nick查询子账号) +func (r *TaobaoSubuserFullinfoGetAPIRequest) SetSubId(_subId int64) error { + r._subId = _subId + r.Set("sub_id", _subId) + return nil +} + +// SubId Getter +func (r TaobaoSubuserFullinfoGetAPIRequest) GetSubId() int64 { + return r._subId +} +// Fields Setter +// 传入所需要的参数信息(若不需要获取子账号或主账号的企业邮箱地址,则无需传入该参数;若需要获取子账号或主账号的企业邮箱地址,则需要传入fields;可选参数值为subuser_email和user_email,传入其他参数值均无效;两个参数都需要则以逗号隔开传入即可,例如:subuser_email,user_email) +func (r *TaobaoSubuserFullinfoGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoSubuserFullinfoGetAPIRequest) GetFields() string { + return r._fields +} +// SubNick Setter +// 子账号用户名(传参中sub_id和sub_nick至少需要其中一个,若sub_id与sub_nick同时传入并且合法,那么sub_nick优先,以sub_nick查询子账号) +func (r *TaobaoSubuserFullinfoGetAPIRequest) SetSubNick(_subNick string) error { + r._subNick = _subNick + r.Set("sub_nick", _subNick) + return nil +} + +// SubNick Getter +func (r TaobaoSubuserFullinfoGetAPIRequest) GetSubNick() string { + return r._subNick +} diff --git a/model/subuser/TaobaoSubuserFullinfoGetAPIResponse.go b/model/subuser/TaobaoSubuserFullinfoGetAPIResponse.go new file mode 100644 index 0000000000..c5c3573ff5 --- /dev/null +++ b/model/subuser/TaobaoSubuserFullinfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package subuser + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定账户子账号的详细信息 API返回值 +taobao.subuser.fullinfo.get + +获取指定账户子账号的详细信息,其中包括子账号的账号信息以及员工、部门、职务信息(只能通过主账号登陆并查询属于该主账号下的某个子账号详细信息) +*/ +type TaobaoSubuserFullinfoGetAPIResponse struct { + model.CommonResponse + TaobaoSubuserFullinfoGetAPIResponseModel +} + +// 获取指定账户子账号的详细信息 成功返回结果 +type TaobaoSubuserFullinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"subuser_fullinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 子账号详细信息,其中包括账号基本信息、员工信息和部门职务信息 + SubFullinfo *SubUserFullInfo `json:"sub_fullinfo,omitempty" xml:"sub_fullinfo,omitempty"` +} diff --git a/model/subuser/TaobaoSubuserFullinfoGetResponse.go b/model/subuser/TaobaoSubuserFullinfoGetResponse.go deleted file mode 100644 index 61a58d55d6..0000000000 --- a/model/subuser/TaobaoSubuserFullinfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package subuser - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取指定账户子账号的详细信息 API返回值 -taobao.subuser.fullinfo.get - -获取指定账户子账号的详细信息,其中包括子账号的账号信息以及员工、部门、职务信息(只能通过主账号登陆并查询属于该主账号下的某个子账号详细信息) -*/ -type TaobaoSubuserFullinfoGetAPIResponse struct { - model.CommonResponse - TaobaoSubuserFullinfoGetResponse -} - -// 获取指定账户子账号的详细信息 成功返回结果 -type TaobaoSubuserFullinfoGetResponse struct { - XMLName xml.Name `xml:"subuser_fullinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 子账号详细信息,其中包括账号基本信息、员工信息和部门职务信息 - SubFullinfo *SubUserFullInfo `json:"sub_fullinfo,omitempty" xml:"sub_fullinfo,omitempty"` -} diff --git a/model/subuser/TaobaoSubuserInfoUpdateAPIRequest.go b/model/subuser/TaobaoSubuserInfoUpdateAPIRequest.go new file mode 100644 index 0000000000..7c87406c70 --- /dev/null +++ b/model/subuser/TaobaoSubuserInfoUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package subuser + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改指定账户子账号的基本信息 API请求 +taobao.subuser.info.update + +修改指定账户子账号的基本信息(通过主账号登陆只能修改属于该主账号的子账号基本信息) +*/ +type TaobaoSubuserInfoUpdateAPIRequest struct { + model.Params + // 是否停用子账号 true:表示停用该子账号false:表示开启该子账号 + _isDisableSubaccount bool + // 子账号是否参与分流 true:参与分流 false:不参与分流 + _isDispatch bool + // 子账号ID + _subId int64 +} + +// 初始化TaobaoSubuserInfoUpdateAPIRequest对象 +func NewTaobaoSubuserInfoUpdateRequest() *TaobaoSubuserInfoUpdateAPIRequest{ + return &TaobaoSubuserInfoUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSubuserInfoUpdateAPIRequest) GetApiMethodName() string { + return "taobao.subuser.info.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSubuserInfoUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IsDisableSubaccount Setter +// 是否停用子账号 true:表示停用该子账号false:表示开启该子账号 +func (r *TaobaoSubuserInfoUpdateAPIRequest) SetIsDisableSubaccount(_isDisableSubaccount bool) error { + r._isDisableSubaccount = _isDisableSubaccount + r.Set("is_disable_subaccount", _isDisableSubaccount) + return nil +} + +// IsDisableSubaccount Getter +func (r TaobaoSubuserInfoUpdateAPIRequest) GetIsDisableSubaccount() bool { + return r._isDisableSubaccount +} +// IsDispatch Setter +// 子账号是否参与分流 true:参与分流 false:不参与分流 +func (r *TaobaoSubuserInfoUpdateAPIRequest) SetIsDispatch(_isDispatch bool) error { + r._isDispatch = _isDispatch + r.Set("is_dispatch", _isDispatch) + return nil +} + +// IsDispatch Getter +func (r TaobaoSubuserInfoUpdateAPIRequest) GetIsDispatch() bool { + return r._isDispatch +} +// SubId Setter +// 子账号ID +func (r *TaobaoSubuserInfoUpdateAPIRequest) SetSubId(_subId int64) error { + r._subId = _subId + r.Set("sub_id", _subId) + return nil +} + +// SubId Getter +func (r TaobaoSubuserInfoUpdateAPIRequest) GetSubId() int64 { + return r._subId +} diff --git a/model/subuser/TaobaoSubuserInfoUpdateAPIResponse.go b/model/subuser/TaobaoSubuserInfoUpdateAPIResponse.go new file mode 100644 index 0000000000..440b139400 --- /dev/null +++ b/model/subuser/TaobaoSubuserInfoUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package subuser + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改指定账户子账号的基本信息 API返回值 +taobao.subuser.info.update + +修改指定账户子账号的基本信息(通过主账号登陆只能修改属于该主账号的子账号基本信息) +*/ +type TaobaoSubuserInfoUpdateAPIResponse struct { + model.CommonResponse + TaobaoSubuserInfoUpdateAPIResponseModel +} + +// 修改指定账户子账号的基本信息 成功返回结果 +type TaobaoSubuserInfoUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"subuser_info_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作是否成功 true:操作成功; false:操作失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/subuser/TaobaoSubuserInfoUpdateResponse.go b/model/subuser/TaobaoSubuserInfoUpdateResponse.go deleted file mode 100644 index aab88c8f47..0000000000 --- a/model/subuser/TaobaoSubuserInfoUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package subuser - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改指定账户子账号的基本信息 API返回值 -taobao.subuser.info.update - -修改指定账户子账号的基本信息(通过主账号登陆只能修改属于该主账号的子账号基本信息) -*/ -type TaobaoSubuserInfoUpdateAPIResponse struct { - model.CommonResponse - TaobaoSubuserInfoUpdateResponse -} - -// 修改指定账户子账号的基本信息 成功返回结果 -type TaobaoSubuserInfoUpdateResponse struct { - XMLName xml.Name `xml:"subuser_info_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作是否成功 true:操作成功; false:操作失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/subuser/TaobaoSubusersGetAPIRequest.go b/model/subuser/TaobaoSubusersGetAPIRequest.go new file mode 100644 index 0000000000..d343959c6b --- /dev/null +++ b/model/subuser/TaobaoSubusersGetAPIRequest.go @@ -0,0 +1,52 @@ +package subuser + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定账户的子账号简易信息列表 API请求 +taobao.subusers.get + +获取主账号下的子账号简易账号信息集合。(只能通过主账号登陆并且查询该属于主账号的子账号信息) +*/ +type TaobaoSubusersGetAPIRequest struct { + model.Params + // 主账号用户名 + _userNick string +} + +// 初始化TaobaoSubusersGetAPIRequest对象 +func NewTaobaoSubusersGetRequest() *TaobaoSubusersGetAPIRequest{ + return &TaobaoSubusersGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSubusersGetAPIRequest) GetApiMethodName() string { + return "taobao.subusers.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSubusersGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserNick Setter +// 主账号用户名 +func (r *TaobaoSubusersGetAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r TaobaoSubusersGetAPIRequest) GetUserNick() string { + return r._userNick +} diff --git a/model/subuser/TaobaoSubusersGetAPIResponse.go b/model/subuser/TaobaoSubusersGetAPIResponse.go new file mode 100644 index 0000000000..bb8f8c071e --- /dev/null +++ b/model/subuser/TaobaoSubusersGetAPIResponse.go @@ -0,0 +1,27 @@ +package subuser + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定账户的子账号简易信息列表 API返回值 +taobao.subusers.get + +获取主账号下的子账号简易账号信息集合。(只能通过主账号登陆并且查询该属于主账号的子账号信息) +*/ +type TaobaoSubusersGetAPIResponse struct { + model.CommonResponse + TaobaoSubusersGetAPIResponseModel +} + +// 获取指定账户的子账号简易信息列表 成功返回结果 +type TaobaoSubusersGetAPIResponseModel struct { + XMLName xml.Name `xml:"subusers_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 子账号基本信息 + Subaccounts []SubAccountInfo `json:"subaccounts,omitempty" xml:"subaccounts>sub_account_info,omitempty"` +} diff --git a/model/subuser/TaobaoSubusersGetResponse.go b/model/subuser/TaobaoSubusersGetResponse.go deleted file mode 100644 index 03ad857514..0000000000 --- a/model/subuser/TaobaoSubusersGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package subuser - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取指定账户的子账号简易信息列表 API返回值 -taobao.subusers.get - -获取主账号下的子账号简易账号信息集合。(只能通过主账号登陆并且查询该属于主账号的子账号信息) -*/ -type TaobaoSubusersGetAPIResponse struct { - model.CommonResponse - TaobaoSubusersGetResponse -} - -// 获取指定账户的子账号简易信息列表 成功返回结果 -type TaobaoSubusersGetResponse struct { - XMLName xml.Name `xml:"subusers_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 子账号基本信息 - Subaccounts []SubAccountInfo `json:"subaccounts,omitempty" xml:"subaccounts>sub_account_info,omitempty"` -} diff --git a/model/sungari/TaobaoCloudbridgeCaseinvestExecuteAPIRequest.go b/model/sungari/TaobaoCloudbridgeCaseinvestExecuteAPIRequest.go new file mode 100644 index 0000000000..b1bbd1ce3f --- /dev/null +++ b/model/sungari/TaobaoCloudbridgeCaseinvestExecuteAPIRequest.go @@ -0,0 +1,66 @@ +package sungari + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +红盾云桥案件协查服务 API请求 +taobao.cloudbridge.caseinvest.execute + +通过API接口直接提供政府部门录入及查询函件服务 +*/ +type TaobaoCloudbridgeCaseinvestExecuteAPIRequest struct { + model.Params + // 方法名称 + _apiName string + // 方法参数 + _data string +} + +// 初始化TaobaoCloudbridgeCaseinvestExecuteAPIRequest对象 +func NewTaobaoCloudbridgeCaseinvestExecuteRequest() *TaobaoCloudbridgeCaseinvestExecuteAPIRequest{ + return &TaobaoCloudbridgeCaseinvestExecuteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCloudbridgeCaseinvestExecuteAPIRequest) GetApiMethodName() string { + return "taobao.cloudbridge.caseinvest.execute" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCloudbridgeCaseinvestExecuteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApiName Setter +// 方法名称 +func (r *TaobaoCloudbridgeCaseinvestExecuteAPIRequest) SetApiName(_apiName string) error { + r._apiName = _apiName + r.Set("api_name", _apiName) + return nil +} + +// ApiName Getter +func (r TaobaoCloudbridgeCaseinvestExecuteAPIRequest) GetApiName() string { + return r._apiName +} +// Data Setter +// 方法参数 +func (r *TaobaoCloudbridgeCaseinvestExecuteAPIRequest) SetData(_data string) error { + r._data = _data + r.Set("data", _data) + return nil +} + +// Data Getter +func (r TaobaoCloudbridgeCaseinvestExecuteAPIRequest) GetData() string { + return r._data +} diff --git a/model/sungari/TaobaoCloudbridgeCaseinvestExecuteAPIResponse.go b/model/sungari/TaobaoCloudbridgeCaseinvestExecuteAPIResponse.go new file mode 100644 index 0000000000..a6ebd1494c --- /dev/null +++ b/model/sungari/TaobaoCloudbridgeCaseinvestExecuteAPIResponse.go @@ -0,0 +1,27 @@ +package sungari + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +红盾云桥案件协查服务 API返回值 +taobao.cloudbridge.caseinvest.execute + +通过API接口直接提供政府部门录入及查询函件服务 +*/ +type TaobaoCloudbridgeCaseinvestExecuteAPIResponse struct { + model.CommonResponse + TaobaoCloudbridgeCaseinvestExecuteAPIResponseModel +} + +// 红盾云桥案件协查服务 成功返回结果 +type TaobaoCloudbridgeCaseinvestExecuteAPIResponseModel struct { + XMLName xml.Name `xml:"cloudbridge_caseinvest_execute_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoCloudbridgeCaseinvestExecuteResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/sungari/TaobaoCloudbridgeCaseinvestExecuteResponse.go b/model/sungari/TaobaoCloudbridgeCaseinvestExecuteResponse.go deleted file mode 100644 index 22b32c0907..0000000000 --- a/model/sungari/TaobaoCloudbridgeCaseinvestExecuteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package sungari - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -红盾云桥案件协查服务 API返回值 -taobao.cloudbridge.caseinvest.execute - -通过API接口直接提供政府部门录入及查询函件服务 -*/ -type TaobaoCloudbridgeCaseinvestExecuteAPIResponse struct { - model.CommonResponse - TaobaoCloudbridgeCaseinvestExecuteResponse -} - -// 红盾云桥案件协查服务 成功返回结果 -type TaobaoCloudbridgeCaseinvestExecuteResponse struct { - XMLName xml.Name `xml:"cloudbridge_caseinvest_execute_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoCloudbridgeCaseinvestExecuteResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/sungari/TaobaoSungariDisposeQueryAPIRequest.go b/model/sungari/TaobaoSungariDisposeQueryAPIRequest.go new file mode 100644 index 0000000000..ec68db6399 --- /dev/null +++ b/model/sungari/TaobaoSungariDisposeQueryAPIRequest.go @@ -0,0 +1,52 @@ +package sungari + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品商家处置结果查询 API请求 +taobao.sungari.dispose.query + +红盾云桥同政府合作,将线下寄函的商品商家处置转为线上处理 +*/ +type TaobaoSungariDisposeQueryAPIRequest struct { + model.Params + // 查询的key列表 + _paramList []string +} + +// 初始化TaobaoSungariDisposeQueryAPIRequest对象 +func NewTaobaoSungariDisposeQueryRequest() *TaobaoSungariDisposeQueryAPIRequest{ + return &TaobaoSungariDisposeQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSungariDisposeQueryAPIRequest) GetApiMethodName() string { + return "taobao.sungari.dispose.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSungariDisposeQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamList Setter +// 查询的key列表 +func (r *TaobaoSungariDisposeQueryAPIRequest) SetParamList(_paramList []string) error { + r._paramList = _paramList + r.Set("param_list", _paramList) + return nil +} + +// ParamList Getter +func (r TaobaoSungariDisposeQueryAPIRequest) GetParamList() []string { + return r._paramList +} diff --git a/model/sungari/TaobaoSungariDisposeQueryAPIResponse.go b/model/sungari/TaobaoSungariDisposeQueryAPIResponse.go new file mode 100644 index 0000000000..3a324abe61 --- /dev/null +++ b/model/sungari/TaobaoSungariDisposeQueryAPIResponse.go @@ -0,0 +1,27 @@ +package sungari + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品商家处置结果查询 API返回值 +taobao.sungari.dispose.query + +红盾云桥同政府合作,将线下寄函的商品商家处置转为线上处理 +*/ +type TaobaoSungariDisposeQueryAPIResponse struct { + model.CommonResponse + TaobaoSungariDisposeQueryAPIResponseModel +} + +// 商品商家处置结果查询 成功返回结果 +type TaobaoSungariDisposeQueryAPIResponseModel struct { + XMLName xml.Name `xml:"sungari_dispose_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoSungariDisposeQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/sungari/TaobaoSungariDisposeQueryResponse.go b/model/sungari/TaobaoSungariDisposeQueryResponse.go deleted file mode 100644 index 6242b9e5b9..0000000000 --- a/model/sungari/TaobaoSungariDisposeQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package sungari - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品商家处置结果查询 API返回值 -taobao.sungari.dispose.query - -红盾云桥同政府合作,将线下寄函的商品商家处置转为线上处理 -*/ -type TaobaoSungariDisposeQueryAPIResponse struct { - model.CommonResponse - TaobaoSungariDisposeQueryResponse -} - -// 商品商家处置结果查询 成功返回结果 -type TaobaoSungariDisposeQueryResponse struct { - XMLName xml.Name `xml:"sungari_dispose_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoSungariDisposeQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/sungari/TaobaoSungariDisposeSubmitAPIRequest.go b/model/sungari/TaobaoSungariDisposeSubmitAPIRequest.go new file mode 100644 index 0000000000..7228f66499 --- /dev/null +++ b/model/sungari/TaobaoSungariDisposeSubmitAPIRequest.go @@ -0,0 +1,52 @@ +package sungari + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品商家处置提交任务 API请求 +taobao.sungari.dispose.submit + +商品商家处置信息接口,提供政府部门发送处置信息给阿里 +*/ +type TaobaoSungariDisposeSubmitAPIRequest struct { + model.Params + // 平台处置信息入参 + _info *DisposeInfoDo +} + +// 初始化TaobaoSungariDisposeSubmitAPIRequest对象 +func NewTaobaoSungariDisposeSubmitRequest() *TaobaoSungariDisposeSubmitAPIRequest{ + return &TaobaoSungariDisposeSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSungariDisposeSubmitAPIRequest) GetApiMethodName() string { + return "taobao.sungari.dispose.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSungariDisposeSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Info Setter +// 平台处置信息入参 +func (r *TaobaoSungariDisposeSubmitAPIRequest) SetInfo(_info *DisposeInfoDo) error { + r._info = _info + r.Set("info", _info) + return nil +} + +// Info Getter +func (r TaobaoSungariDisposeSubmitAPIRequest) GetInfo() *DisposeInfoDo { + return r._info +} diff --git a/model/sungari/TaobaoSungariDisposeSubmitAPIResponse.go b/model/sungari/TaobaoSungariDisposeSubmitAPIResponse.go new file mode 100644 index 0000000000..f962d58938 --- /dev/null +++ b/model/sungari/TaobaoSungariDisposeSubmitAPIResponse.go @@ -0,0 +1,31 @@ +package sungari + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品商家处置提交任务 API返回值 +taobao.sungari.dispose.submit + +商品商家处置信息接口,提供政府部门发送处置信息给阿里 +*/ +type TaobaoSungariDisposeSubmitAPIResponse struct { + model.CommonResponse + TaobaoSungariDisposeSubmitAPIResponseModel +} + +// 商品商家处置提交任务 成功返回结果 +type TaobaoSungariDisposeSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"sungari_dispose_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务是否调用成功,1:成功 2:失败 11:重复提交 其他:失败 + ResuleCode int64 `json:"resule_code,omitempty" xml:"resule_code,omitempty"` + // 返回的ID + Data string `json:"data,omitempty" xml:"data,omitempty"` + // 提示信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/sungari/TaobaoSungariDisposeSubmitResponse.go b/model/sungari/TaobaoSungariDisposeSubmitResponse.go deleted file mode 100644 index bff53d4c09..0000000000 --- a/model/sungari/TaobaoSungariDisposeSubmitResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package sungari - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品商家处置提交任务 API返回值 -taobao.sungari.dispose.submit - -商品商家处置信息接口,提供政府部门发送处置信息给阿里 -*/ -type TaobaoSungariDisposeSubmitAPIResponse struct { - model.CommonResponse - TaobaoSungariDisposeSubmitResponse -} - -// 商品商家处置提交任务 成功返回结果 -type TaobaoSungariDisposeSubmitResponse struct { - XMLName xml.Name `xml:"sungari_dispose_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务是否调用成功,1:成功 2:失败 11:重复提交 其他:失败 - ResuleCode int64 `json:"resule_code,omitempty" xml:"resule_code,omitempty"` - // 返回的ID - Data string `json:"data,omitempty" xml:"data,omitempty"` - // 提示信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/sungari/TaobaoSungariInspectionSubmitAPIRequest.go b/model/sungari/TaobaoSungariInspectionSubmitAPIRequest.go new file mode 100644 index 0000000000..dce6b10680 --- /dev/null +++ b/model/sungari/TaobaoSungariInspectionSubmitAPIRequest.go @@ -0,0 +1,66 @@ +package sungari + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +抽检指令录入 API请求 +taobao.sungari.inspection.submit + +抽检指令录入 +*/ +type TaobaoSungariInspectionSubmitAPIRequest struct { + model.Params + // 抽检入参 + _data string + // 操作类型 + _methodName string +} + +// 初始化TaobaoSungariInspectionSubmitAPIRequest对象 +func NewTaobaoSungariInspectionSubmitRequest() *TaobaoSungariInspectionSubmitAPIRequest{ + return &TaobaoSungariInspectionSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoSungariInspectionSubmitAPIRequest) GetApiMethodName() string { + return "taobao.sungari.inspection.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoSungariInspectionSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Data Setter +// 抽检入参 +func (r *TaobaoSungariInspectionSubmitAPIRequest) SetData(_data string) error { + r._data = _data + r.Set("data", _data) + return nil +} + +// Data Getter +func (r TaobaoSungariInspectionSubmitAPIRequest) GetData() string { + return r._data +} +// MethodName Setter +// 操作类型 +func (r *TaobaoSungariInspectionSubmitAPIRequest) SetMethodName(_methodName string) error { + r._methodName = _methodName + r.Set("method_name", _methodName) + return nil +} + +// MethodName Getter +func (r TaobaoSungariInspectionSubmitAPIRequest) GetMethodName() string { + return r._methodName +} diff --git a/model/sungari/TaobaoSungariInspectionSubmitAPIResponse.go b/model/sungari/TaobaoSungariInspectionSubmitAPIResponse.go new file mode 100644 index 0000000000..caf9acb73b --- /dev/null +++ b/model/sungari/TaobaoSungariInspectionSubmitAPIResponse.go @@ -0,0 +1,31 @@ +package sungari + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +抽检指令录入 API返回值 +taobao.sungari.inspection.submit + +抽检指令录入 +*/ +type TaobaoSungariInspectionSubmitAPIResponse struct { + model.CommonResponse + TaobaoSungariInspectionSubmitAPIResponseModel +} + +// 抽检指令录入 成功返回结果 +type TaobaoSungariInspectionSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"sungari_inspection_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Data *InspectionResultInfo `json:"data,omitempty" xml:"data,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 状态码 + ReturnCode int64 `json:"return_code,omitempty" xml:"return_code,omitempty"` +} diff --git a/model/sungari/TaobaoSungariInspectionSubmitResponse.go b/model/sungari/TaobaoSungariInspectionSubmitResponse.go deleted file mode 100644 index 3fa7d405ae..0000000000 --- a/model/sungari/TaobaoSungariInspectionSubmitResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package sungari - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -抽检指令录入 API返回值 -taobao.sungari.inspection.submit - -抽检指令录入 -*/ -type TaobaoSungariInspectionSubmitAPIResponse struct { - model.CommonResponse - TaobaoSungariInspectionSubmitResponse -} - -// 抽检指令录入 成功返回结果 -type TaobaoSungariInspectionSubmitResponse struct { - XMLName xml.Name `xml:"sungari_inspection_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Data *InspectionResultInfo `json:"data,omitempty" xml:"data,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 状态码 - ReturnCode int64 `json:"return_code,omitempty" xml:"return_code,omitempty"` -} diff --git a/model/tanx/TaobaoTanxAuditCreativeAddAPIRequest.go b/model/tanx/TaobaoTanxAuditCreativeAddAPIRequest.go new file mode 100644 index 0000000000..9fd40b024b --- /dev/null +++ b/model/tanx/TaobaoTanxAuditCreativeAddAPIRequest.go @@ -0,0 +1,94 @@ +package tanx + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创意预审新增接口 API请求 +taobao.tanx.audit.creative.add + +创意预审新增接口 +*/ +type TaobaoTanxAuditCreativeAddAPIRequest struct { + model.Params + // DSP的memberId + _memberId int64 + // dsp用户身份认证的TOKEN + _token string + // 当前时间戳,1970-01-01后的秒数 + _signTime int64 + // 预审核创意对象 + _creative *CreativeParamDto +} + +// 初始化TaobaoTanxAuditCreativeAddAPIRequest对象 +func NewTaobaoTanxAuditCreativeAddRequest() *TaobaoTanxAuditCreativeAddAPIRequest{ + return &TaobaoTanxAuditCreativeAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTanxAuditCreativeAddAPIRequest) GetApiMethodName() string { + return "taobao.tanx.audit.creative.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTanxAuditCreativeAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MemberId Setter +// DSP的memberId +func (r *TaobaoTanxAuditCreativeAddAPIRequest) SetMemberId(_memberId int64) error { + r._memberId = _memberId + r.Set("member_id", _memberId) + return nil +} + +// MemberId Getter +func (r TaobaoTanxAuditCreativeAddAPIRequest) GetMemberId() int64 { + return r._memberId +} +// Token Setter +// dsp用户身份认证的TOKEN +func (r *TaobaoTanxAuditCreativeAddAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoTanxAuditCreativeAddAPIRequest) GetToken() string { + return r._token +} +// SignTime Setter +// 当前时间戳,1970-01-01后的秒数 +func (r *TaobaoTanxAuditCreativeAddAPIRequest) SetSignTime(_signTime int64) error { + r._signTime = _signTime + r.Set("sign_time", _signTime) + return nil +} + +// SignTime Getter +func (r TaobaoTanxAuditCreativeAddAPIRequest) GetSignTime() int64 { + return r._signTime +} +// Creative Setter +// 预审核创意对象 +func (r *TaobaoTanxAuditCreativeAddAPIRequest) SetCreative(_creative *CreativeParamDto) error { + r._creative = _creative + r.Set("creative", _creative) + return nil +} + +// Creative Getter +func (r TaobaoTanxAuditCreativeAddAPIRequest) GetCreative() *CreativeParamDto { + return r._creative +} diff --git a/model/tanx/TaobaoTanxAuditCreativeAddAPIResponse.go b/model/tanx/TaobaoTanxAuditCreativeAddAPIResponse.go new file mode 100644 index 0000000000..52d99843a8 --- /dev/null +++ b/model/tanx/TaobaoTanxAuditCreativeAddAPIResponse.go @@ -0,0 +1,31 @@ +package tanx + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创意预审新增接口 API返回值 +taobao.tanx.audit.creative.add + +创意预审新增接口 +*/ +type TaobaoTanxAuditCreativeAddAPIResponse struct { + model.CommonResponse + TaobaoTanxAuditCreativeAddAPIResponseModel +} + +// 创意预审新增接口 成功返回结果 +type TaobaoTanxAuditCreativeAddAPIResponseModel struct { + XMLName xml.Name `xml:"tanx_audit_creative_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用的成功信息或失败信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 调用返回码 + TanxErrorCode int64 `json:"tanx_error_code,omitempty" xml:"tanx_error_code,omitempty"` + // 是否成功 + IsOk bool `json:"is_ok,omitempty" xml:"is_ok,omitempty"` +} diff --git a/model/tanx/TaobaoTanxAuditCreativeAddResponse.go b/model/tanx/TaobaoTanxAuditCreativeAddResponse.go deleted file mode 100644 index 73931769be..0000000000 --- a/model/tanx/TaobaoTanxAuditCreativeAddResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tanx - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创意预审新增接口 API返回值 -taobao.tanx.audit.creative.add - -创意预审新增接口 -*/ -type TaobaoTanxAuditCreativeAddAPIResponse struct { - model.CommonResponse - TaobaoTanxAuditCreativeAddResponse -} - -// 创意预审新增接口 成功返回结果 -type TaobaoTanxAuditCreativeAddResponse struct { - XMLName xml.Name `xml:"tanx_audit_creative_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用的成功信息或失败信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 调用返回码 - TanxErrorCode int64 `json:"tanx_error_code,omitempty" xml:"tanx_error_code,omitempty"` - // 是否成功 - IsOk bool `json:"is_ok,omitempty" xml:"is_ok,omitempty"` -} diff --git a/model/tanx/TaobaoTanxAuditCreativeModifyAPIRequest.go b/model/tanx/TaobaoTanxAuditCreativeModifyAPIRequest.go new file mode 100644 index 0000000000..58d3088cce --- /dev/null +++ b/model/tanx/TaobaoTanxAuditCreativeModifyAPIRequest.go @@ -0,0 +1,80 @@ +package tanx + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创意修改接口 API请求 +taobao.tanx.audit.creative.modify + +创意修改接口 +*/ +type TaobaoTanxAuditCreativeModifyAPIRequest struct { + model.Params + // DSP用户ID + _memberId int64 + // dsp用户身份认证的TOKEN + _token string + // 当前时间戳,1970-01-01后的秒数 + _signTime int64 +} + +// 初始化TaobaoTanxAuditCreativeModifyAPIRequest对象 +func NewTaobaoTanxAuditCreativeModifyRequest() *TaobaoTanxAuditCreativeModifyAPIRequest{ + return &TaobaoTanxAuditCreativeModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTanxAuditCreativeModifyAPIRequest) GetApiMethodName() string { + return "taobao.tanx.audit.creative.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTanxAuditCreativeModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MemberId Setter +// DSP用户ID +func (r *TaobaoTanxAuditCreativeModifyAPIRequest) SetMemberId(_memberId int64) error { + r._memberId = _memberId + r.Set("member_id", _memberId) + return nil +} + +// MemberId Getter +func (r TaobaoTanxAuditCreativeModifyAPIRequest) GetMemberId() int64 { + return r._memberId +} +// Token Setter +// dsp用户身份认证的TOKEN +func (r *TaobaoTanxAuditCreativeModifyAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoTanxAuditCreativeModifyAPIRequest) GetToken() string { + return r._token +} +// SignTime Setter +// 当前时间戳,1970-01-01后的秒数 +func (r *TaobaoTanxAuditCreativeModifyAPIRequest) SetSignTime(_signTime int64) error { + r._signTime = _signTime + r.Set("sign_time", _signTime) + return nil +} + +// SignTime Getter +func (r TaobaoTanxAuditCreativeModifyAPIRequest) GetSignTime() int64 { + return r._signTime +} diff --git a/model/tanx/TaobaoTanxAuditCreativeModifyAPIResponse.go b/model/tanx/TaobaoTanxAuditCreativeModifyAPIResponse.go new file mode 100644 index 0000000000..35be3aee9f --- /dev/null +++ b/model/tanx/TaobaoTanxAuditCreativeModifyAPIResponse.go @@ -0,0 +1,31 @@ +package tanx + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创意修改接口 API返回值 +taobao.tanx.audit.creative.modify + +创意修改接口 +*/ +type TaobaoTanxAuditCreativeModifyAPIResponse struct { + model.CommonResponse + TaobaoTanxAuditCreativeModifyAPIResponseModel +} + +// 创意修改接口 成功返回结果 +type TaobaoTanxAuditCreativeModifyAPIResponseModel struct { + XMLName xml.Name `xml:"tanx_audit_creative_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用的成功信息或失败信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 调用返回码 + TanxErrorCode int64 `json:"tanx_error_code,omitempty" xml:"tanx_error_code,omitempty"` + // 是否成功 + IsOk bool `json:"is_ok,omitempty" xml:"is_ok,omitempty"` +} diff --git a/model/tanx/TaobaoTanxAuditCreativeModifyResponse.go b/model/tanx/TaobaoTanxAuditCreativeModifyResponse.go deleted file mode 100644 index 24f1d8c031..0000000000 --- a/model/tanx/TaobaoTanxAuditCreativeModifyResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tanx - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创意修改接口 API返回值 -taobao.tanx.audit.creative.modify - -创意修改接口 -*/ -type TaobaoTanxAuditCreativeModifyAPIResponse struct { - model.CommonResponse - TaobaoTanxAuditCreativeModifyResponse -} - -// 创意修改接口 成功返回结果 -type TaobaoTanxAuditCreativeModifyResponse struct { - XMLName xml.Name `xml:"tanx_audit_creative_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用的成功信息或失败信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 调用返回码 - TanxErrorCode int64 `json:"tanx_error_code,omitempty" xml:"tanx_error_code,omitempty"` - // 是否成功 - IsOk bool `json:"is_ok,omitempty" xml:"is_ok,omitempty"` -} diff --git a/model/tanx/TaobaoTanxAuditDepositcreativeAddAPIRequest.go b/model/tanx/TaobaoTanxAuditDepositcreativeAddAPIRequest.go new file mode 100644 index 0000000000..2efe4d2fd5 --- /dev/null +++ b/model/tanx/TaobaoTanxAuditDepositcreativeAddAPIRequest.go @@ -0,0 +1,94 @@ +package tanx + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +dsp托管创意新增接口 API请求 +taobao.tanx.audit.depositcreative.add + +dsp托管创意新增接口 +*/ +type TaobaoTanxAuditDepositcreativeAddAPIRequest struct { + model.Params + // DSP的memberId + _memberId int64 + // dsp用户身份认证的TOKEN + _token string + // 当前时间戳,1970-01-01后的秒数 + _signTime int64 + // 托管创意信息 + _creative *CreativeInfoDto +} + +// 初始化TaobaoTanxAuditDepositcreativeAddAPIRequest对象 +func NewTaobaoTanxAuditDepositcreativeAddRequest() *TaobaoTanxAuditDepositcreativeAddAPIRequest{ + return &TaobaoTanxAuditDepositcreativeAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTanxAuditDepositcreativeAddAPIRequest) GetApiMethodName() string { + return "taobao.tanx.audit.depositcreative.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTanxAuditDepositcreativeAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MemberId Setter +// DSP的memberId +func (r *TaobaoTanxAuditDepositcreativeAddAPIRequest) SetMemberId(_memberId int64) error { + r._memberId = _memberId + r.Set("member_id", _memberId) + return nil +} + +// MemberId Getter +func (r TaobaoTanxAuditDepositcreativeAddAPIRequest) GetMemberId() int64 { + return r._memberId +} +// Token Setter +// dsp用户身份认证的TOKEN +func (r *TaobaoTanxAuditDepositcreativeAddAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoTanxAuditDepositcreativeAddAPIRequest) GetToken() string { + return r._token +} +// SignTime Setter +// 当前时间戳,1970-01-01后的秒数 +func (r *TaobaoTanxAuditDepositcreativeAddAPIRequest) SetSignTime(_signTime int64) error { + r._signTime = _signTime + r.Set("sign_time", _signTime) + return nil +} + +// SignTime Getter +func (r TaobaoTanxAuditDepositcreativeAddAPIRequest) GetSignTime() int64 { + return r._signTime +} +// Creative Setter +// 托管创意信息 +func (r *TaobaoTanxAuditDepositcreativeAddAPIRequest) SetCreative(_creative *CreativeInfoDto) error { + r._creative = _creative + r.Set("creative", _creative) + return nil +} + +// Creative Getter +func (r TaobaoTanxAuditDepositcreativeAddAPIRequest) GetCreative() *CreativeInfoDto { + return r._creative +} diff --git a/model/tanx/TaobaoTanxAuditDepositcreativeAddAPIResponse.go b/model/tanx/TaobaoTanxAuditDepositcreativeAddAPIResponse.go new file mode 100644 index 0000000000..fe8fbd0ba2 --- /dev/null +++ b/model/tanx/TaobaoTanxAuditDepositcreativeAddAPIResponse.go @@ -0,0 +1,31 @@ +package tanx + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +dsp托管创意新增接口 API返回值 +taobao.tanx.audit.depositcreative.add + +dsp托管创意新增接口 +*/ +type TaobaoTanxAuditDepositcreativeAddAPIResponse struct { + model.CommonResponse + TaobaoTanxAuditDepositcreativeAddAPIResponseModel +} + +// dsp托管创意新增接口 成功返回结果 +type TaobaoTanxAuditDepositcreativeAddAPIResponseModel struct { + XMLName xml.Name `xml:"tanx_audit_depositcreative_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用的成功信息或失败信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 调用返回码 + TanxErrorCode int64 `json:"tanx_error_code,omitempty" xml:"tanx_error_code,omitempty"` + // 是否成功 + IsOk bool `json:"is_ok,omitempty" xml:"is_ok,omitempty"` +} diff --git a/model/tanx/TaobaoTanxAuditDepositcreativeAddResponse.go b/model/tanx/TaobaoTanxAuditDepositcreativeAddResponse.go deleted file mode 100644 index c7c88f80ce..0000000000 --- a/model/tanx/TaobaoTanxAuditDepositcreativeAddResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tanx - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -dsp托管创意新增接口 API返回值 -taobao.tanx.audit.depositcreative.add - -dsp托管创意新增接口 -*/ -type TaobaoTanxAuditDepositcreativeAddAPIResponse struct { - model.CommonResponse - TaobaoTanxAuditDepositcreativeAddResponse -} - -// dsp托管创意新增接口 成功返回结果 -type TaobaoTanxAuditDepositcreativeAddResponse struct { - XMLName xml.Name `xml:"tanx_audit_depositcreative_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用的成功信息或失败信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 调用返回码 - TanxErrorCode int64 `json:"tanx_error_code,omitempty" xml:"tanx_error_code,omitempty"` - // 是否成功 - IsOk bool `json:"is_ok,omitempty" xml:"is_ok,omitempty"` -} diff --git a/model/tanx/TaobaoTanxBiddingrefusesGetAPIRequest.go b/model/tanx/TaobaoTanxBiddingrefusesGetAPIRequest.go new file mode 100644 index 0000000000..11593e7f9f --- /dev/null +++ b/model/tanx/TaobaoTanxBiddingrefusesGetAPIRequest.go @@ -0,0 +1,122 @@ +package tanx + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +tanx竞价失败反馈api API请求 +taobao.tanx.biddingrefuses.get + +竞价失败反馈根据创意id查询API提供 +*/ +type TaobaoTanxBiddingrefusesGetAPIRequest struct { + model.Params + // dsp的创意id + _creativeIds []string + // dsp在tanx的memberid + _memberId int64 + // dsp对应的tanx的token + _token string + // 1970年到现在的毫秒 + _signTime int64 + // 起始时间 + _startTime string + // 截止时间 + _endTime string +} + +// 初始化TaobaoTanxBiddingrefusesGetAPIRequest对象 +func NewTaobaoTanxBiddingrefusesGetRequest() *TaobaoTanxBiddingrefusesGetAPIRequest{ + return &TaobaoTanxBiddingrefusesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTanxBiddingrefusesGetAPIRequest) GetApiMethodName() string { + return "taobao.tanx.biddingrefuses.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTanxBiddingrefusesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CreativeIds Setter +// dsp的创意id +func (r *TaobaoTanxBiddingrefusesGetAPIRequest) SetCreativeIds(_creativeIds []string) error { + r._creativeIds = _creativeIds + r.Set("creative_ids", _creativeIds) + return nil +} + +// CreativeIds Getter +func (r TaobaoTanxBiddingrefusesGetAPIRequest) GetCreativeIds() []string { + return r._creativeIds +} +// MemberId Setter +// dsp在tanx的memberid +func (r *TaobaoTanxBiddingrefusesGetAPIRequest) SetMemberId(_memberId int64) error { + r._memberId = _memberId + r.Set("member_id", _memberId) + return nil +} + +// MemberId Getter +func (r TaobaoTanxBiddingrefusesGetAPIRequest) GetMemberId() int64 { + return r._memberId +} +// Token Setter +// dsp对应的tanx的token +func (r *TaobaoTanxBiddingrefusesGetAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoTanxBiddingrefusesGetAPIRequest) GetToken() string { + return r._token +} +// SignTime Setter +// 1970年到现在的毫秒 +func (r *TaobaoTanxBiddingrefusesGetAPIRequest) SetSignTime(_signTime int64) error { + r._signTime = _signTime + r.Set("sign_time", _signTime) + return nil +} + +// SignTime Getter +func (r TaobaoTanxBiddingrefusesGetAPIRequest) GetSignTime() int64 { + return r._signTime +} +// StartTime Setter +// 起始时间 +func (r *TaobaoTanxBiddingrefusesGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoTanxBiddingrefusesGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 截止时间 +func (r *TaobaoTanxBiddingrefusesGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoTanxBiddingrefusesGetAPIRequest) GetEndTime() string { + return r._endTime +} diff --git a/model/tanx/TaobaoTanxBiddingrefusesGetAPIResponse.go b/model/tanx/TaobaoTanxBiddingrefusesGetAPIResponse.go new file mode 100644 index 0000000000..02b868c4ff --- /dev/null +++ b/model/tanx/TaobaoTanxBiddingrefusesGetAPIResponse.go @@ -0,0 +1,29 @@ +package tanx + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +tanx竞价失败反馈api API返回值 +taobao.tanx.biddingrefuses.get + +竞价失败反馈根据创意id查询API提供 +*/ +type TaobaoTanxBiddingrefusesGetAPIResponse struct { + model.CommonResponse + TaobaoTanxBiddingrefusesGetAPIResponseModel +} + +// tanx竞价失败反馈api 成功返回结果 +type TaobaoTanxBiddingrefusesGetAPIResponseModel struct { + XMLName xml.Name `xml:"tanx_biddingrefuses_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 返回竞价失败对象信息 + BiddingRefuseList []BiddingRefuseDto `json:"bidding_refuse_list,omitempty" xml:"bidding_refuse_list>bidding_refuse_dto,omitempty"` +} diff --git a/model/tanx/TaobaoTanxBiddingrefusesGetResponse.go b/model/tanx/TaobaoTanxBiddingrefusesGetResponse.go deleted file mode 100644 index 40c09f663e..0000000000 --- a/model/tanx/TaobaoTanxBiddingrefusesGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tanx - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -tanx竞价失败反馈api API返回值 -taobao.tanx.biddingrefuses.get - -竞价失败反馈根据创意id查询API提供 -*/ -type TaobaoTanxBiddingrefusesGetAPIResponse struct { - model.CommonResponse - TaobaoTanxBiddingrefusesGetResponse -} - -// tanx竞价失败反馈api 成功返回结果 -type TaobaoTanxBiddingrefusesGetResponse struct { - XMLName xml.Name `xml:"tanx_biddingrefuses_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 返回竞价失败对象信息 - BiddingRefuseList []BiddingRefuseDto `json:"bidding_refuse_list,omitempty" xml:"bidding_refuse_list>bidding_refuse_dto,omitempty"` -} diff --git a/model/tanx/TaobaoTanxCreativeAddAPIRequest.go b/model/tanx/TaobaoTanxCreativeAddAPIRequest.go new file mode 100644 index 0000000000..8773ade4df --- /dev/null +++ b/model/tanx/TaobaoTanxCreativeAddAPIRequest.go @@ -0,0 +1,178 @@ +package tanx + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创意预审新增接口 API请求 +taobao.tanx.creative.add + +创意预审新增接口 +*/ +type TaobaoTanxCreativeAddAPIRequest struct { + model.Params + // DSP的memberId + _memberId int64 + // dsp用户身份认证的TOKEN + _token string + // 当前时间戳,1970-01-01后的秒数 + _signTime int64 + // 创意id + _creativeId string + // 广告类目 如果有多个,以逗号分隔 + _adboardType string + // 敏感词类目,多个的话以逗号分隔 + _sensitiveType string + // 创意代码 + _adboardData string + // 目标地址 + _destinationUrl string + // 创意尺寸,中间以小写字母x分隔 + _adboardSize string + // 创意封装类型:1 Htmlsnippet(pc网页),2 vast-nonlinear(视频暂停),3vast-linear(视频贴片) 4 vast-companion(视频伴随),5 Html5(无线banner或app) + _creativePackageFormat int64 +} + +// 初始化TaobaoTanxCreativeAddAPIRequest对象 +func NewTaobaoTanxCreativeAddRequest() *TaobaoTanxCreativeAddAPIRequest{ + return &TaobaoTanxCreativeAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTanxCreativeAddAPIRequest) GetApiMethodName() string { + return "taobao.tanx.creative.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTanxCreativeAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MemberId Setter +// DSP的memberId +func (r *TaobaoTanxCreativeAddAPIRequest) SetMemberId(_memberId int64) error { + r._memberId = _memberId + r.Set("member_id", _memberId) + return nil +} + +// MemberId Getter +func (r TaobaoTanxCreativeAddAPIRequest) GetMemberId() int64 { + return r._memberId +} +// Token Setter +// dsp用户身份认证的TOKEN +func (r *TaobaoTanxCreativeAddAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoTanxCreativeAddAPIRequest) GetToken() string { + return r._token +} +// SignTime Setter +// 当前时间戳,1970-01-01后的秒数 +func (r *TaobaoTanxCreativeAddAPIRequest) SetSignTime(_signTime int64) error { + r._signTime = _signTime + r.Set("sign_time", _signTime) + return nil +} + +// SignTime Getter +func (r TaobaoTanxCreativeAddAPIRequest) GetSignTime() int64 { + return r._signTime +} +// CreativeId Setter +// 创意id +func (r *TaobaoTanxCreativeAddAPIRequest) SetCreativeId(_creativeId string) error { + r._creativeId = _creativeId + r.Set("creative_id", _creativeId) + return nil +} + +// CreativeId Getter +func (r TaobaoTanxCreativeAddAPIRequest) GetCreativeId() string { + return r._creativeId +} +// AdboardType Setter +// 广告类目 如果有多个,以逗号分隔 +func (r *TaobaoTanxCreativeAddAPIRequest) SetAdboardType(_adboardType string) error { + r._adboardType = _adboardType + r.Set("adboard_type", _adboardType) + return nil +} + +// AdboardType Getter +func (r TaobaoTanxCreativeAddAPIRequest) GetAdboardType() string { + return r._adboardType +} +// SensitiveType Setter +// 敏感词类目,多个的话以逗号分隔 +func (r *TaobaoTanxCreativeAddAPIRequest) SetSensitiveType(_sensitiveType string) error { + r._sensitiveType = _sensitiveType + r.Set("sensitive_type", _sensitiveType) + return nil +} + +// SensitiveType Getter +func (r TaobaoTanxCreativeAddAPIRequest) GetSensitiveType() string { + return r._sensitiveType +} +// AdboardData Setter +// 创意代码 +func (r *TaobaoTanxCreativeAddAPIRequest) SetAdboardData(_adboardData string) error { + r._adboardData = _adboardData + r.Set("adboard_data", _adboardData) + return nil +} + +// AdboardData Getter +func (r TaobaoTanxCreativeAddAPIRequest) GetAdboardData() string { + return r._adboardData +} +// DestinationUrl Setter +// 目标地址 +func (r *TaobaoTanxCreativeAddAPIRequest) SetDestinationUrl(_destinationUrl string) error { + r._destinationUrl = _destinationUrl + r.Set("destination_url", _destinationUrl) + return nil +} + +// DestinationUrl Getter +func (r TaobaoTanxCreativeAddAPIRequest) GetDestinationUrl() string { + return r._destinationUrl +} +// AdboardSize Setter +// 创意尺寸,中间以小写字母x分隔 +func (r *TaobaoTanxCreativeAddAPIRequest) SetAdboardSize(_adboardSize string) error { + r._adboardSize = _adboardSize + r.Set("adboard_size", _adboardSize) + return nil +} + +// AdboardSize Getter +func (r TaobaoTanxCreativeAddAPIRequest) GetAdboardSize() string { + return r._adboardSize +} +// CreativePackageFormat Setter +// 创意封装类型:1 Htmlsnippet(pc网页),2 vast-nonlinear(视频暂停),3vast-linear(视频贴片) 4 vast-companion(视频伴随),5 Html5(无线banner或app) +func (r *TaobaoTanxCreativeAddAPIRequest) SetCreativePackageFormat(_creativePackageFormat int64) error { + r._creativePackageFormat = _creativePackageFormat + r.Set("creative_package_format", _creativePackageFormat) + return nil +} + +// CreativePackageFormat Getter +func (r TaobaoTanxCreativeAddAPIRequest) GetCreativePackageFormat() int64 { + return r._creativePackageFormat +} diff --git a/model/tanx/TaobaoTanxCreativeAddAPIResponse.go b/model/tanx/TaobaoTanxCreativeAddAPIResponse.go new file mode 100644 index 0000000000..2955f20900 --- /dev/null +++ b/model/tanx/TaobaoTanxCreativeAddAPIResponse.go @@ -0,0 +1,31 @@ +package tanx + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创意预审新增接口 API返回值 +taobao.tanx.creative.add + +创意预审新增接口 +*/ +type TaobaoTanxCreativeAddAPIResponse struct { + model.CommonResponse + TaobaoTanxCreativeAddAPIResponseModel +} + +// 创意预审新增接口 成功返回结果 +type TaobaoTanxCreativeAddAPIResponseModel struct { + XMLName xml.Name `xml:"tanx_creative_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用的成功信息或失败信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 调用返回码 + Code int64 `json:"code,omitempty" xml:"code,omitempty"` + // 是否成功 + IsOk bool `json:"is_ok,omitempty" xml:"is_ok,omitempty"` +} diff --git a/model/tanx/TaobaoTanxCreativeAddResponse.go b/model/tanx/TaobaoTanxCreativeAddResponse.go deleted file mode 100644 index 6eed892fa4..0000000000 --- a/model/tanx/TaobaoTanxCreativeAddResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tanx - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创意预审新增接口 API返回值 -taobao.tanx.creative.add - -创意预审新增接口 -*/ -type TaobaoTanxCreativeAddAPIResponse struct { - model.CommonResponse - TaobaoTanxCreativeAddResponse -} - -// 创意预审新增接口 成功返回结果 -type TaobaoTanxCreativeAddResponse struct { - XMLName xml.Name `xml:"tanx_creative_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用的成功信息或失败信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 调用返回码 - Code int64 `json:"code,omitempty" xml:"code,omitempty"` - // 是否成功 - IsOk bool `json:"is_ok,omitempty" xml:"is_ok,omitempty"` -} diff --git a/model/tanx/TaobaoTanxCreativeGetAPIRequest.go b/model/tanx/TaobaoTanxCreativeGetAPIRequest.go new file mode 100644 index 0000000000..2776ad91c0 --- /dev/null +++ b/model/tanx/TaobaoTanxCreativeGetAPIRequest.go @@ -0,0 +1,94 @@ +package tanx + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单个审核创意状态 API请求 +taobao.tanx.creative.get + +获取单个审核创意状态 +*/ +type TaobaoTanxCreativeGetAPIRequest struct { + model.Params + // DSP的memberId + _memberId int64 + // dsp用户身份认证的TOKEN + _token string + // 当前时间戳,1970-01-01后的秒数 + _signTime int64 + // 创意ID + _creativeId string +} + +// 初始化TaobaoTanxCreativeGetAPIRequest对象 +func NewTaobaoTanxCreativeGetRequest() *TaobaoTanxCreativeGetAPIRequest{ + return &TaobaoTanxCreativeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTanxCreativeGetAPIRequest) GetApiMethodName() string { + return "taobao.tanx.creative.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTanxCreativeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MemberId Setter +// DSP的memberId +func (r *TaobaoTanxCreativeGetAPIRequest) SetMemberId(_memberId int64) error { + r._memberId = _memberId + r.Set("member_id", _memberId) + return nil +} + +// MemberId Getter +func (r TaobaoTanxCreativeGetAPIRequest) GetMemberId() int64 { + return r._memberId +} +// Token Setter +// dsp用户身份认证的TOKEN +func (r *TaobaoTanxCreativeGetAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoTanxCreativeGetAPIRequest) GetToken() string { + return r._token +} +// SignTime Setter +// 当前时间戳,1970-01-01后的秒数 +func (r *TaobaoTanxCreativeGetAPIRequest) SetSignTime(_signTime int64) error { + r._signTime = _signTime + r.Set("sign_time", _signTime) + return nil +} + +// SignTime Getter +func (r TaobaoTanxCreativeGetAPIRequest) GetSignTime() int64 { + return r._signTime +} +// CreativeId Setter +// 创意ID +func (r *TaobaoTanxCreativeGetAPIRequest) SetCreativeId(_creativeId string) error { + r._creativeId = _creativeId + r.Set("creative_id", _creativeId) + return nil +} + +// CreativeId Getter +func (r TaobaoTanxCreativeGetAPIRequest) GetCreativeId() string { + return r._creativeId +} diff --git a/model/tanx/TaobaoTanxCreativeGetAPIResponse.go b/model/tanx/TaobaoTanxCreativeGetAPIResponse.go new file mode 100644 index 0000000000..609cb38681 --- /dev/null +++ b/model/tanx/TaobaoTanxCreativeGetAPIResponse.go @@ -0,0 +1,33 @@ +package tanx + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单个审核创意状态 API返回值 +taobao.tanx.creative.get + +获取单个审核创意状态 +*/ +type TaobaoTanxCreativeGetAPIResponse struct { + model.CommonResponse + TaobaoTanxCreativeGetAPIResponseModel +} + +// 获取单个审核创意状态 成功返回结果 +type TaobaoTanxCreativeGetAPIResponseModel struct { + XMLName xml.Name `xml:"tanx_creative_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用的成功信息或失败信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 调用返回码 + TanxErrorCode int64 `json:"tanx_error_code,omitempty" xml:"tanx_error_code,omitempty"` + // 是否成功 + IsOk bool `json:"is_ok,omitempty" xml:"is_ok,omitempty"` + // 创意查询返回结果列表 + Result *CreativeAuditDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tanx/TaobaoTanxCreativeGetResponse.go b/model/tanx/TaobaoTanxCreativeGetResponse.go deleted file mode 100644 index 50b7df3600..0000000000 --- a/model/tanx/TaobaoTanxCreativeGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tanx - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取单个审核创意状态 API返回值 -taobao.tanx.creative.get - -获取单个审核创意状态 -*/ -type TaobaoTanxCreativeGetAPIResponse struct { - model.CommonResponse - TaobaoTanxCreativeGetResponse -} - -// 获取单个审核创意状态 成功返回结果 -type TaobaoTanxCreativeGetResponse struct { - XMLName xml.Name `xml:"tanx_creative_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用的成功信息或失败信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 调用返回码 - TanxErrorCode int64 `json:"tanx_error_code,omitempty" xml:"tanx_error_code,omitempty"` - // 是否成功 - IsOk bool `json:"is_ok,omitempty" xml:"is_ok,omitempty"` - // 创意查询返回结果列表 - Result *CreativeAuditDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tanx/TaobaoTanxCreativesGetAPIRequest.go b/model/tanx/TaobaoTanxCreativesGetAPIRequest.go new file mode 100644 index 0000000000..77228f2929 --- /dev/null +++ b/model/tanx/TaobaoTanxCreativesGetAPIRequest.go @@ -0,0 +1,122 @@ +package tanx + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取DSP用户的创意审核结果 API请求 +taobao.tanx.creatives.get + +批量获取DSP用户的创意审核结果 +*/ +type TaobaoTanxCreativesGetAPIRequest struct { + model.Params + // DSP的memberId + _memberId int64 + // dsp用户身份认证的TOKEN + _token string + // 当前时间戳,1970-01-01后的秒数 + _signTime int64 + // 创意的状态(全部ALL,通过PASS,拒绝REFUSE,未审核WAITING) + _status string + // 分页的页码(第一页为1) + _page int64 + // 所选创意的类型。1-->普通类型, 2-->视频贴片, 0 -->优先查询普通类型,无结果则查询视频贴片类型 + _type int64 +} + +// 初始化TaobaoTanxCreativesGetAPIRequest对象 +func NewTaobaoTanxCreativesGetRequest() *TaobaoTanxCreativesGetAPIRequest{ + return &TaobaoTanxCreativesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTanxCreativesGetAPIRequest) GetApiMethodName() string { + return "taobao.tanx.creatives.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTanxCreativesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MemberId Setter +// DSP的memberId +func (r *TaobaoTanxCreativesGetAPIRequest) SetMemberId(_memberId int64) error { + r._memberId = _memberId + r.Set("member_id", _memberId) + return nil +} + +// MemberId Getter +func (r TaobaoTanxCreativesGetAPIRequest) GetMemberId() int64 { + return r._memberId +} +// Token Setter +// dsp用户身份认证的TOKEN +func (r *TaobaoTanxCreativesGetAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoTanxCreativesGetAPIRequest) GetToken() string { + return r._token +} +// SignTime Setter +// 当前时间戳,1970-01-01后的秒数 +func (r *TaobaoTanxCreativesGetAPIRequest) SetSignTime(_signTime int64) error { + r._signTime = _signTime + r.Set("sign_time", _signTime) + return nil +} + +// SignTime Getter +func (r TaobaoTanxCreativesGetAPIRequest) GetSignTime() int64 { + return r._signTime +} +// Status Setter +// 创意的状态(全部ALL,通过PASS,拒绝REFUSE,未审核WAITING) +func (r *TaobaoTanxCreativesGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoTanxCreativesGetAPIRequest) GetStatus() string { + return r._status +} +// Page Setter +// 分页的页码(第一页为1) +func (r *TaobaoTanxCreativesGetAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r TaobaoTanxCreativesGetAPIRequest) GetPage() int64 { + return r._page +} +// Type Setter +// 所选创意的类型。1-->普通类型, 2-->视频贴片, 0 -->优先查询普通类型,无结果则查询视频贴片类型 +func (r *TaobaoTanxCreativesGetAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoTanxCreativesGetAPIRequest) GetType() int64 { + return r._type +} diff --git a/model/tanx/TaobaoTanxCreativesGetAPIResponse.go b/model/tanx/TaobaoTanxCreativesGetAPIResponse.go new file mode 100644 index 0000000000..4962ed4ec2 --- /dev/null +++ b/model/tanx/TaobaoTanxCreativesGetAPIResponse.go @@ -0,0 +1,33 @@ +package tanx + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取DSP用户的创意审核结果 API返回值 +taobao.tanx.creatives.get + +批量获取DSP用户的创意审核结果 +*/ +type TaobaoTanxCreativesGetAPIResponse struct { + model.CommonResponse + TaobaoTanxCreativesGetAPIResponseModel +} + +// 批量获取DSP用户的创意审核结果 成功返回结果 +type TaobaoTanxCreativesGetAPIResponseModel struct { + XMLName xml.Name `xml:"tanx_creatives_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用的成功信息或失败信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 调用返回码 + TanxErrorCode int64 `json:"tanx_error_code,omitempty" xml:"tanx_error_code,omitempty"` + // 调用是否成功 + IsOk bool `json:"is_ok,omitempty" xml:"is_ok,omitempty"` + // 返回的创意列表 + Results []CreativeDto `json:"results,omitempty" xml:"results>creative_dto,omitempty"` +} diff --git a/model/tanx/TaobaoTanxCreativesGetResponse.go b/model/tanx/TaobaoTanxCreativesGetResponse.go deleted file mode 100644 index b01dfe4640..0000000000 --- a/model/tanx/TaobaoTanxCreativesGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tanx - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量获取DSP用户的创意审核结果 API返回值 -taobao.tanx.creatives.get - -批量获取DSP用户的创意审核结果 -*/ -type TaobaoTanxCreativesGetAPIResponse struct { - model.CommonResponse - TaobaoTanxCreativesGetResponse -} - -// 批量获取DSP用户的创意审核结果 成功返回结果 -type TaobaoTanxCreativesGetResponse struct { - XMLName xml.Name `xml:"tanx_creatives_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用的成功信息或失败信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 调用返回码 - TanxErrorCode int64 `json:"tanx_error_code,omitempty" xml:"tanx_error_code,omitempty"` - // 调用是否成功 - IsOk bool `json:"is_ok,omitempty" xml:"is_ok,omitempty"` - // 返回的创意列表 - Results []CreativeDto `json:"results,omitempty" xml:"results>creative_dto,omitempty"` -} diff --git a/model/tanx/TaobaoTanxDealGetAPIRequest.go b/model/tanx/TaobaoTanxDealGetAPIRequest.go new file mode 100644 index 0000000000..ee7111b7ba --- /dev/null +++ b/model/tanx/TaobaoTanxDealGetAPIRequest.go @@ -0,0 +1,94 @@ +package tanx + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +对外部dsp提供交易id查询接口 API请求 +taobao.tanx.deal.get + +对外部dsp提供交易id查询接口 +*/ +type TaobaoTanxDealGetAPIRequest struct { + model.Params + // dsp用户id + _dspId int64 + // 交易id + _dealId int64 + // 1970年到现在的时间,毫秒 + _signTime int64 + // 验证token + _token string +} + +// 初始化TaobaoTanxDealGetAPIRequest对象 +func NewTaobaoTanxDealGetRequest() *TaobaoTanxDealGetAPIRequest{ + return &TaobaoTanxDealGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTanxDealGetAPIRequest) GetApiMethodName() string { + return "taobao.tanx.deal.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTanxDealGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DspId Setter +// dsp用户id +func (r *TaobaoTanxDealGetAPIRequest) SetDspId(_dspId int64) error { + r._dspId = _dspId + r.Set("dsp_id", _dspId) + return nil +} + +// DspId Getter +func (r TaobaoTanxDealGetAPIRequest) GetDspId() int64 { + return r._dspId +} +// DealId Setter +// 交易id +func (r *TaobaoTanxDealGetAPIRequest) SetDealId(_dealId int64) error { + r._dealId = _dealId + r.Set("deal_id", _dealId) + return nil +} + +// DealId Getter +func (r TaobaoTanxDealGetAPIRequest) GetDealId() int64 { + return r._dealId +} +// SignTime Setter +// 1970年到现在的时间,毫秒 +func (r *TaobaoTanxDealGetAPIRequest) SetSignTime(_signTime int64) error { + r._signTime = _signTime + r.Set("sign_time", _signTime) + return nil +} + +// SignTime Getter +func (r TaobaoTanxDealGetAPIRequest) GetSignTime() int64 { + return r._signTime +} +// Token Setter +// 验证token +func (r *TaobaoTanxDealGetAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoTanxDealGetAPIRequest) GetToken() string { + return r._token +} diff --git a/model/tanx/TaobaoTanxDealGetAPIResponse.go b/model/tanx/TaobaoTanxDealGetAPIResponse.go new file mode 100644 index 0000000000..852041fbd1 --- /dev/null +++ b/model/tanx/TaobaoTanxDealGetAPIResponse.go @@ -0,0 +1,33 @@ +package tanx + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +对外部dsp提供交易id查询接口 API返回值 +taobao.tanx.deal.get + +对外部dsp提供交易id查询接口 +*/ +type TaobaoTanxDealGetAPIResponse struct { + model.CommonResponse + TaobaoTanxDealGetAPIResponseModel +} + +// 对外部dsp提供交易id查询接口 成功返回结果 +type TaobaoTanxDealGetAPIResponseModel struct { + XMLName xml.Name `xml:"tanx_deal_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果代码 + Code int64 `json:"code,omitempty" xml:"code,omitempty"` + // 结果信息 + Messag string `json:"messag,omitempty" xml:"messag,omitempty"` + // 查询结果 + Sucess bool `json:"sucess,omitempty" xml:"sucess,omitempty"` + // 查询结果 + Result *DealInfoDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tanx/TaobaoTanxDealGetResponse.go b/model/tanx/TaobaoTanxDealGetResponse.go deleted file mode 100644 index 63d2cd38b0..0000000000 --- a/model/tanx/TaobaoTanxDealGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tanx - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -对外部dsp提供交易id查询接口 API返回值 -taobao.tanx.deal.get - -对外部dsp提供交易id查询接口 -*/ -type TaobaoTanxDealGetAPIResponse struct { - model.CommonResponse - TaobaoTanxDealGetResponse -} - -// 对外部dsp提供交易id查询接口 成功返回结果 -type TaobaoTanxDealGetResponse struct { - XMLName xml.Name `xml:"tanx_deal_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果代码 - Code int64 `json:"code,omitempty" xml:"code,omitempty"` - // 结果信息 - Messag string `json:"messag,omitempty" xml:"messag,omitempty"` - // 查询结果 - Sucess bool `json:"sucess,omitempty" xml:"sucess,omitempty"` - // 查询结果 - Result *DealInfoDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tanx/TaobaoTanxDealsGetAPIRequest.go b/model/tanx/TaobaoTanxDealsGetAPIRequest.go new file mode 100644 index 0000000000..aed2d3160e --- /dev/null +++ b/model/tanx/TaobaoTanxDealsGetAPIRequest.go @@ -0,0 +1,122 @@ +package tanx + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取交易列表 API请求 +taobao.tanx.deals.get + +批量获取交易信息 +*/ +type TaobaoTanxDealsGetAPIRequest struct { + model.Params + // dsp用户id + _dspId int64 + // dsp用户验证token + _token string + // 页大小 + _pageSize int64 + // 交易类型 + _dealType int64 + // 页码 + _page int64 + // 1970年到现在的时间,毫秒 + _signTime int64 +} + +// 初始化TaobaoTanxDealsGetAPIRequest对象 +func NewTaobaoTanxDealsGetRequest() *TaobaoTanxDealsGetAPIRequest{ + return &TaobaoTanxDealsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTanxDealsGetAPIRequest) GetApiMethodName() string { + return "taobao.tanx.deals.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTanxDealsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DspId Setter +// dsp用户id +func (r *TaobaoTanxDealsGetAPIRequest) SetDspId(_dspId int64) error { + r._dspId = _dspId + r.Set("dsp_id", _dspId) + return nil +} + +// DspId Getter +func (r TaobaoTanxDealsGetAPIRequest) GetDspId() int64 { + return r._dspId +} +// Token Setter +// dsp用户验证token +func (r *TaobaoTanxDealsGetAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoTanxDealsGetAPIRequest) GetToken() string { + return r._token +} +// PageSize Setter +// 页大小 +func (r *TaobaoTanxDealsGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTanxDealsGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// DealType Setter +// 交易类型 +func (r *TaobaoTanxDealsGetAPIRequest) SetDealType(_dealType int64) error { + r._dealType = _dealType + r.Set("deal_type", _dealType) + return nil +} + +// DealType Getter +func (r TaobaoTanxDealsGetAPIRequest) GetDealType() int64 { + return r._dealType +} +// Page Setter +// 页码 +func (r *TaobaoTanxDealsGetAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r TaobaoTanxDealsGetAPIRequest) GetPage() int64 { + return r._page +} +// SignTime Setter +// 1970年到现在的时间,毫秒 +func (r *TaobaoTanxDealsGetAPIRequest) SetSignTime(_signTime int64) error { + r._signTime = _signTime + r.Set("sign_time", _signTime) + return nil +} + +// SignTime Getter +func (r TaobaoTanxDealsGetAPIRequest) GetSignTime() int64 { + return r._signTime +} diff --git a/model/tanx/TaobaoTanxDealsGetAPIResponse.go b/model/tanx/TaobaoTanxDealsGetAPIResponse.go new file mode 100644 index 0000000000..5bfe437ffc --- /dev/null +++ b/model/tanx/TaobaoTanxDealsGetAPIResponse.go @@ -0,0 +1,33 @@ +package tanx + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取交易列表 API返回值 +taobao.tanx.deals.get + +批量获取交易信息 +*/ +type TaobaoTanxDealsGetAPIResponse struct { + model.CommonResponse + TaobaoTanxDealsGetAPIResponseModel +} + +// 批量获取交易列表 成功返回结果 +type TaobaoTanxDealsGetAPIResponseModel struct { + XMLName xml.Name `xml:"tanx_deals_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询是否成功 + Sucess bool `json:"sucess,omitempty" xml:"sucess,omitempty"` + // 查询结果编码 + Code int64 `json:"code,omitempty" xml:"code,omitempty"` + // 查询结果信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 查询结果 + Deals []DealInfoDto `json:"deals,omitempty" xml:"deals>deal_info_dto,omitempty"` +} diff --git a/model/tanx/TaobaoTanxDealsGetResponse.go b/model/tanx/TaobaoTanxDealsGetResponse.go deleted file mode 100644 index 07acaa438a..0000000000 --- a/model/tanx/TaobaoTanxDealsGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tanx - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量获取交易列表 API返回值 -taobao.tanx.deals.get - -批量获取交易信息 -*/ -type TaobaoTanxDealsGetAPIResponse struct { - model.CommonResponse - TaobaoTanxDealsGetResponse -} - -// 批量获取交易列表 成功返回结果 -type TaobaoTanxDealsGetResponse struct { - XMLName xml.Name `xml:"tanx_deals_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询是否成功 - Sucess bool `json:"sucess,omitempty" xml:"sucess,omitempty"` - // 查询结果编码 - Code int64 `json:"code,omitempty" xml:"code,omitempty"` - // 查询结果信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 查询结果 - Deals []DealInfoDto `json:"deals,omitempty" xml:"deals>deal_info_dto,omitempty"` -} diff --git a/model/tanx/TaobaoTanxNativetemplatesGetAPIRequest.go b/model/tanx/TaobaoTanxNativetemplatesGetAPIRequest.go new file mode 100644 index 0000000000..ad6b9a601f --- /dev/null +++ b/model/tanx/TaobaoTanxNativetemplatesGetAPIRequest.go @@ -0,0 +1,94 @@ +package tanx + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取本地模板信息 API请求 +taobao.tanx.nativetemplates.get + +根据传入的本地模板ID批量返回本地模板 +*/ +type TaobaoTanxNativetemplatesGetAPIRequest struct { + model.Params + // dsp在tanx的memberid + _memberId int64 + // dsp对应的tanx的token + _token string + // 1970年到现在的毫秒 + _signTime int64 + // 本地模板ID列表 + _templateIds []int64 +} + +// 初始化TaobaoTanxNativetemplatesGetAPIRequest对象 +func NewTaobaoTanxNativetemplatesGetRequest() *TaobaoTanxNativetemplatesGetAPIRequest{ + return &TaobaoTanxNativetemplatesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTanxNativetemplatesGetAPIRequest) GetApiMethodName() string { + return "taobao.tanx.nativetemplates.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTanxNativetemplatesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MemberId Setter +// dsp在tanx的memberid +func (r *TaobaoTanxNativetemplatesGetAPIRequest) SetMemberId(_memberId int64) error { + r._memberId = _memberId + r.Set("member_id", _memberId) + return nil +} + +// MemberId Getter +func (r TaobaoTanxNativetemplatesGetAPIRequest) GetMemberId() int64 { + return r._memberId +} +// Token Setter +// dsp对应的tanx的token +func (r *TaobaoTanxNativetemplatesGetAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoTanxNativetemplatesGetAPIRequest) GetToken() string { + return r._token +} +// SignTime Setter +// 1970年到现在的毫秒 +func (r *TaobaoTanxNativetemplatesGetAPIRequest) SetSignTime(_signTime int64) error { + r._signTime = _signTime + r.Set("sign_time", _signTime) + return nil +} + +// SignTime Getter +func (r TaobaoTanxNativetemplatesGetAPIRequest) GetSignTime() int64 { + return r._signTime +} +// TemplateIds Setter +// 本地模板ID列表 +func (r *TaobaoTanxNativetemplatesGetAPIRequest) SetTemplateIds(_templateIds []int64) error { + r._templateIds = _templateIds + r.Set("template_ids", _templateIds) + return nil +} + +// TemplateIds Getter +func (r TaobaoTanxNativetemplatesGetAPIRequest) GetTemplateIds() []int64 { + return r._templateIds +} diff --git a/model/tanx/TaobaoTanxNativetemplatesGetAPIResponse.go b/model/tanx/TaobaoTanxNativetemplatesGetAPIResponse.go new file mode 100644 index 0000000000..ddc79dcd8b --- /dev/null +++ b/model/tanx/TaobaoTanxNativetemplatesGetAPIResponse.go @@ -0,0 +1,29 @@ +package tanx + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取本地模板信息 API返回值 +taobao.tanx.nativetemplates.get + +根据传入的本地模板ID批量返回本地模板 +*/ +type TaobaoTanxNativetemplatesGetAPIResponse struct { + model.CommonResponse + TaobaoTanxNativetemplatesGetAPIResponseModel +} + +// 批量获取本地模板信息 成功返回结果 +type TaobaoTanxNativetemplatesGetAPIResponseModel struct { + XMLName xml.Name `xml:"tanx_nativetemplates_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsOk bool `json:"is_ok,omitempty" xml:"is_ok,omitempty"` + // 本地模板列表 + NativeTemplateList []NativeTemplateDto `json:"native_template_list,omitempty" xml:"native_template_list>native_template_dto,omitempty"` +} diff --git a/model/tanx/TaobaoTanxNativetemplatesGetResponse.go b/model/tanx/TaobaoTanxNativetemplatesGetResponse.go deleted file mode 100644 index 9705a107fe..0000000000 --- a/model/tanx/TaobaoTanxNativetemplatesGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tanx - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量获取本地模板信息 API返回值 -taobao.tanx.nativetemplates.get - -根据传入的本地模板ID批量返回本地模板 -*/ -type TaobaoTanxNativetemplatesGetAPIResponse struct { - model.CommonResponse - TaobaoTanxNativetemplatesGetResponse -} - -// 批量获取本地模板信息 成功返回结果 -type TaobaoTanxNativetemplatesGetResponse struct { - XMLName xml.Name `xml:"tanx_nativetemplates_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsOk bool `json:"is_ok,omitempty" xml:"is_ok,omitempty"` - // 本地模板列表 - NativeTemplateList []NativeTemplateDto `json:"native_template_list,omitempty" xml:"native_template_list>native_template_dto,omitempty"` -} diff --git a/model/tanx/TaobaoTanxQualificationAddAPIRequest.go b/model/tanx/TaobaoTanxQualificationAddAPIRequest.go new file mode 100644 index 0000000000..a913b7f59f --- /dev/null +++ b/model/tanx/TaobaoTanxQualificationAddAPIRequest.go @@ -0,0 +1,94 @@ +package tanx + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交资质接口 API请求 +taobao.tanx.qualification.add + +dsp客户提交客户资质和行业资质 +*/ +type TaobaoTanxQualificationAddAPIRequest struct { + model.Params + // dsp客户新增资质dto + _qualifications []Qualification + // dsp用户memberId + _memberId int64 + // dsp验证的token + _token string + // 签名时间,1970年到现在的秒 + _signTime int64 +} + +// 初始化TaobaoTanxQualificationAddAPIRequest对象 +func NewTaobaoTanxQualificationAddRequest() *TaobaoTanxQualificationAddAPIRequest{ + return &TaobaoTanxQualificationAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTanxQualificationAddAPIRequest) GetApiMethodName() string { + return "taobao.tanx.qualification.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTanxQualificationAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Qualifications Setter +// dsp客户新增资质dto +func (r *TaobaoTanxQualificationAddAPIRequest) SetQualifications(_qualifications []Qualification) error { + r._qualifications = _qualifications + r.Set("qualifications", _qualifications) + return nil +} + +// Qualifications Getter +func (r TaobaoTanxQualificationAddAPIRequest) GetQualifications() []Qualification { + return r._qualifications +} +// MemberId Setter +// dsp用户memberId +func (r *TaobaoTanxQualificationAddAPIRequest) SetMemberId(_memberId int64) error { + r._memberId = _memberId + r.Set("member_id", _memberId) + return nil +} + +// MemberId Getter +func (r TaobaoTanxQualificationAddAPIRequest) GetMemberId() int64 { + return r._memberId +} +// Token Setter +// dsp验证的token +func (r *TaobaoTanxQualificationAddAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoTanxQualificationAddAPIRequest) GetToken() string { + return r._token +} +// SignTime Setter +// 签名时间,1970年到现在的秒 +func (r *TaobaoTanxQualificationAddAPIRequest) SetSignTime(_signTime int64) error { + r._signTime = _signTime + r.Set("sign_time", _signTime) + return nil +} + +// SignTime Getter +func (r TaobaoTanxQualificationAddAPIRequest) GetSignTime() int64 { + return r._signTime +} diff --git a/model/tanx/TaobaoTanxQualificationAddAPIResponse.go b/model/tanx/TaobaoTanxQualificationAddAPIResponse.go new file mode 100644 index 0000000000..2adbe25519 --- /dev/null +++ b/model/tanx/TaobaoTanxQualificationAddAPIResponse.go @@ -0,0 +1,29 @@ +package tanx + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交资质接口 API返回值 +taobao.tanx.qualification.add + +dsp客户提交客户资质和行业资质 +*/ +type TaobaoTanxQualificationAddAPIResponse struct { + model.CommonResponse + TaobaoTanxQualificationAddAPIResponseModel +} + +// 提交资质接口 成功返回结果 +type TaobaoTanxQualificationAddAPIResponseModel struct { + XMLName xml.Name `xml:"tanx_qualification_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 返回id对应列表 + IdList []int64 `json:"id_list,omitempty" xml:"id_list>int64,omitempty"` +} diff --git a/model/tanx/TaobaoTanxQualificationAddResponse.go b/model/tanx/TaobaoTanxQualificationAddResponse.go deleted file mode 100644 index 60eedb34b3..0000000000 --- a/model/tanx/TaobaoTanxQualificationAddResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tanx - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交资质接口 API返回值 -taobao.tanx.qualification.add - -dsp客户提交客户资质和行业资质 -*/ -type TaobaoTanxQualificationAddAPIResponse struct { - model.CommonResponse - TaobaoTanxQualificationAddResponse -} - -// 提交资质接口 成功返回结果 -type TaobaoTanxQualificationAddResponse struct { - XMLName xml.Name `xml:"tanx_qualification_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 返回id对应列表 - IdList []int64 `json:"id_list,omitempty" xml:"id_list>int64,omitempty"` -} diff --git a/model/tanx/TaobaoTanxQualificationAdvertiserAddAPIRequest.go b/model/tanx/TaobaoTanxQualificationAdvertiserAddAPIRequest.go new file mode 100644 index 0000000000..d79d045799 --- /dev/null +++ b/model/tanx/TaobaoTanxQualificationAdvertiserAddAPIRequest.go @@ -0,0 +1,94 @@ +package tanx + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增广告主接口 API请求 +taobao.tanx.qualification.advertiser.add + +外部dsp调用接口时会根据广告主名称和类型在tanx系统中新增一个广告主 +*/ +type TaobaoTanxQualificationAdvertiserAddAPIRequest struct { + model.Params + // 广告主对象 + _advertisers []AdvertiserDto + // dsp用户memberId + _memberId int64 + // dsp用户验证token + _token string + // 从1970年到当前时间的秒 + _signTime int64 +} + +// 初始化TaobaoTanxQualificationAdvertiserAddAPIRequest对象 +func NewTaobaoTanxQualificationAdvertiserAddRequest() *TaobaoTanxQualificationAdvertiserAddAPIRequest{ + return &TaobaoTanxQualificationAdvertiserAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTanxQualificationAdvertiserAddAPIRequest) GetApiMethodName() string { + return "taobao.tanx.qualification.advertiser.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTanxQualificationAdvertiserAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Advertisers Setter +// 广告主对象 +func (r *TaobaoTanxQualificationAdvertiserAddAPIRequest) SetAdvertisers(_advertisers []AdvertiserDto) error { + r._advertisers = _advertisers + r.Set("advertisers", _advertisers) + return nil +} + +// Advertisers Getter +func (r TaobaoTanxQualificationAdvertiserAddAPIRequest) GetAdvertisers() []AdvertiserDto { + return r._advertisers +} +// MemberId Setter +// dsp用户memberId +func (r *TaobaoTanxQualificationAdvertiserAddAPIRequest) SetMemberId(_memberId int64) error { + r._memberId = _memberId + r.Set("member_id", _memberId) + return nil +} + +// MemberId Getter +func (r TaobaoTanxQualificationAdvertiserAddAPIRequest) GetMemberId() int64 { + return r._memberId +} +// Token Setter +// dsp用户验证token +func (r *TaobaoTanxQualificationAdvertiserAddAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoTanxQualificationAdvertiserAddAPIRequest) GetToken() string { + return r._token +} +// SignTime Setter +// 从1970年到当前时间的秒 +func (r *TaobaoTanxQualificationAdvertiserAddAPIRequest) SetSignTime(_signTime int64) error { + r._signTime = _signTime + r.Set("sign_time", _signTime) + return nil +} + +// SignTime Getter +func (r TaobaoTanxQualificationAdvertiserAddAPIRequest) GetSignTime() int64 { + return r._signTime +} diff --git a/model/tanx/TaobaoTanxQualificationAdvertiserAddAPIResponse.go b/model/tanx/TaobaoTanxQualificationAdvertiserAddAPIResponse.go new file mode 100644 index 0000000000..3a022735e3 --- /dev/null +++ b/model/tanx/TaobaoTanxQualificationAdvertiserAddAPIResponse.go @@ -0,0 +1,29 @@ +package tanx + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增广告主接口 API返回值 +taobao.tanx.qualification.advertiser.add + +外部dsp调用接口时会根据广告主名称和类型在tanx系统中新增一个广告主 +*/ +type TaobaoTanxQualificationAdvertiserAddAPIResponse struct { + model.CommonResponse + TaobaoTanxQualificationAdvertiserAddAPIResponseModel +} + +// 新增广告主接口 成功返回结果 +type TaobaoTanxQualificationAdvertiserAddAPIResponseModel struct { + XMLName xml.Name `xml:"tanx_qualification_advertiser_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 返回的广告主dto对象 + AdvertiserList []AdvertiserDto `json:"advertiser_list,omitempty" xml:"advertiser_list>advertiser_dto,omitempty"` +} diff --git a/model/tanx/TaobaoTanxQualificationAdvertiserAddResponse.go b/model/tanx/TaobaoTanxQualificationAdvertiserAddResponse.go deleted file mode 100644 index 35ca421d71..0000000000 --- a/model/tanx/TaobaoTanxQualificationAdvertiserAddResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tanx - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增广告主接口 API返回值 -taobao.tanx.qualification.advertiser.add - -外部dsp调用接口时会根据广告主名称和类型在tanx系统中新增一个广告主 -*/ -type TaobaoTanxQualificationAdvertiserAddAPIResponse struct { - model.CommonResponse - TaobaoTanxQualificationAdvertiserAddResponse -} - -// 新增广告主接口 成功返回结果 -type TaobaoTanxQualificationAdvertiserAddResponse struct { - XMLName xml.Name `xml:"tanx_qualification_advertiser_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 返回的广告主dto对象 - AdvertiserList []AdvertiserDto `json:"advertiser_list,omitempty" xml:"advertiser_list>advertiser_dto,omitempty"` -} diff --git a/model/tanx/TaobaoTanxQualificationFindAPIRequest.go b/model/tanx/TaobaoTanxQualificationFindAPIRequest.go new file mode 100644 index 0000000000..ad8a4230b8 --- /dev/null +++ b/model/tanx/TaobaoTanxQualificationFindAPIRequest.go @@ -0,0 +1,122 @@ +package tanx + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +资质查询接口 API请求 +taobao.tanx.qualification.find + +资质查询接口 +*/ +type TaobaoTanxQualificationFindAPIRequest struct { + model.Params + // dsp客户在tanx的memberId + _memberId int64 + // dsp客户在tanx签名的token + _token string + // 当前时间,从1970年算的毫秒 + _signTime int64 + // 分页的第几页,从1开始 + _page int64 + // 分页大小,限制200 + _pageSize int64 + // 广告主资质查询dto + _query *QualificationQuery +} + +// 初始化TaobaoTanxQualificationFindAPIRequest对象 +func NewTaobaoTanxQualificationFindRequest() *TaobaoTanxQualificationFindAPIRequest{ + return &TaobaoTanxQualificationFindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTanxQualificationFindAPIRequest) GetApiMethodName() string { + return "taobao.tanx.qualification.find" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTanxQualificationFindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MemberId Setter +// dsp客户在tanx的memberId +func (r *TaobaoTanxQualificationFindAPIRequest) SetMemberId(_memberId int64) error { + r._memberId = _memberId + r.Set("member_id", _memberId) + return nil +} + +// MemberId Getter +func (r TaobaoTanxQualificationFindAPIRequest) GetMemberId() int64 { + return r._memberId +} +// Token Setter +// dsp客户在tanx签名的token +func (r *TaobaoTanxQualificationFindAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoTanxQualificationFindAPIRequest) GetToken() string { + return r._token +} +// SignTime Setter +// 当前时间,从1970年算的毫秒 +func (r *TaobaoTanxQualificationFindAPIRequest) SetSignTime(_signTime int64) error { + r._signTime = _signTime + r.Set("sign_time", _signTime) + return nil +} + +// SignTime Getter +func (r TaobaoTanxQualificationFindAPIRequest) GetSignTime() int64 { + return r._signTime +} +// Page Setter +// 分页的第几页,从1开始 +func (r *TaobaoTanxQualificationFindAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r TaobaoTanxQualificationFindAPIRequest) GetPage() int64 { + return r._page +} +// PageSize Setter +// 分页大小,限制200 +func (r *TaobaoTanxQualificationFindAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTanxQualificationFindAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Query Setter +// 广告主资质查询dto +func (r *TaobaoTanxQualificationFindAPIRequest) SetQuery(_query *QualificationQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r TaobaoTanxQualificationFindAPIRequest) GetQuery() *QualificationQuery { + return r._query +} diff --git a/model/tanx/TaobaoTanxQualificationFindAPIResponse.go b/model/tanx/TaobaoTanxQualificationFindAPIResponse.go new file mode 100644 index 0000000000..1310a78a0a --- /dev/null +++ b/model/tanx/TaobaoTanxQualificationFindAPIResponse.go @@ -0,0 +1,31 @@ +package tanx + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +资质查询接口 API返回值 +taobao.tanx.qualification.find + +资质查询接口 +*/ +type TaobaoTanxQualificationFindAPIResponse struct { + model.CommonResponse + TaobaoTanxQualificationFindAPIResponseModel +} + +// 资质查询接口 成功返回结果 +type TaobaoTanxQualificationFindAPIResponseModel struct { + XMLName xml.Name `xml:"tanx_qualification_find_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 返回的资质内容dto + QualificationList []QualificationDto `json:"qualification_list,omitempty" xml:"qualification_list>qualification_dto,omitempty"` + // 查询返回总条数 + Count string `json:"count,omitempty" xml:"count,omitempty"` +} diff --git a/model/tanx/TaobaoTanxQualificationFindResponse.go b/model/tanx/TaobaoTanxQualificationFindResponse.go deleted file mode 100644 index b2b72d5e62..0000000000 --- a/model/tanx/TaobaoTanxQualificationFindResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tanx - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -资质查询接口 API返回值 -taobao.tanx.qualification.find - -资质查询接口 -*/ -type TaobaoTanxQualificationFindAPIResponse struct { - model.CommonResponse - TaobaoTanxQualificationFindResponse -} - -// 资质查询接口 成功返回结果 -type TaobaoTanxQualificationFindResponse struct { - XMLName xml.Name `xml:"tanx_qualification_find_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 返回的资质内容dto - QualificationList []QualificationDto `json:"qualification_list,omitempty" xml:"qualification_list>qualification_dto,omitempty"` - // 查询返回总条数 - Count string `json:"count,omitempty" xml:"count,omitempty"` -} diff --git a/model/tanx/TaobaoTanxQualificationModifyAPIRequest.go b/model/tanx/TaobaoTanxQualificationModifyAPIRequest.go new file mode 100644 index 0000000000..bbba29e8a1 --- /dev/null +++ b/model/tanx/TaobaoTanxQualificationModifyAPIRequest.go @@ -0,0 +1,94 @@ +package tanx + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改资质接口 API请求 +taobao.tanx.qualification.modify + +对dsp上传过的资质进行修改 +*/ +type TaobaoTanxQualificationModifyAPIRequest struct { + model.Params + // dsp客户新增资质dto + _qualifications []Qualification + // dsp用户id + _memberId int64 + // dsp用户验证token + _token string + // 1970年到现在的秒 + _signTime int64 +} + +// 初始化TaobaoTanxQualificationModifyAPIRequest对象 +func NewTaobaoTanxQualificationModifyRequest() *TaobaoTanxQualificationModifyAPIRequest{ + return &TaobaoTanxQualificationModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTanxQualificationModifyAPIRequest) GetApiMethodName() string { + return "taobao.tanx.qualification.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTanxQualificationModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Qualifications Setter +// dsp客户新增资质dto +func (r *TaobaoTanxQualificationModifyAPIRequest) SetQualifications(_qualifications []Qualification) error { + r._qualifications = _qualifications + r.Set("qualifications", _qualifications) + return nil +} + +// Qualifications Getter +func (r TaobaoTanxQualificationModifyAPIRequest) GetQualifications() []Qualification { + return r._qualifications +} +// MemberId Setter +// dsp用户id +func (r *TaobaoTanxQualificationModifyAPIRequest) SetMemberId(_memberId int64) error { + r._memberId = _memberId + r.Set("member_id", _memberId) + return nil +} + +// MemberId Getter +func (r TaobaoTanxQualificationModifyAPIRequest) GetMemberId() int64 { + return r._memberId +} +// Token Setter +// dsp用户验证token +func (r *TaobaoTanxQualificationModifyAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoTanxQualificationModifyAPIRequest) GetToken() string { + return r._token +} +// SignTime Setter +// 1970年到现在的秒 +func (r *TaobaoTanxQualificationModifyAPIRequest) SetSignTime(_signTime int64) error { + r._signTime = _signTime + r.Set("sign_time", _signTime) + return nil +} + +// SignTime Getter +func (r TaobaoTanxQualificationModifyAPIRequest) GetSignTime() int64 { + return r._signTime +} diff --git a/model/tanx/TaobaoTanxQualificationModifyAPIResponse.go b/model/tanx/TaobaoTanxQualificationModifyAPIResponse.go new file mode 100644 index 0000000000..504a0808be --- /dev/null +++ b/model/tanx/TaobaoTanxQualificationModifyAPIResponse.go @@ -0,0 +1,27 @@ +package tanx + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改资质接口 API返回值 +taobao.tanx.qualification.modify + +对dsp上传过的资质进行修改 +*/ +type TaobaoTanxQualificationModifyAPIResponse struct { + model.CommonResponse + TaobaoTanxQualificationModifyAPIResponseModel +} + +// 修改资质接口 成功返回结果 +type TaobaoTanxQualificationModifyAPIResponseModel struct { + XMLName xml.Name `xml:"tanx_qualification_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/tanx/TaobaoTanxQualificationModifyResponse.go b/model/tanx/TaobaoTanxQualificationModifyResponse.go deleted file mode 100644 index 824bd3bd3c..0000000000 --- a/model/tanx/TaobaoTanxQualificationModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tanx - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改资质接口 API返回值 -taobao.tanx.qualification.modify - -对dsp上传过的资质进行修改 -*/ -type TaobaoTanxQualificationModifyAPIResponse struct { - model.CommonResponse - TaobaoTanxQualificationModifyResponse -} - -// 修改资质接口 成功返回结果 -type TaobaoTanxQualificationModifyResponse struct { - XMLName xml.Name `xml:"tanx_qualification_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/tanx/TaobaoTanxQualificationPictureUploadAPIRequest.go b/model/tanx/TaobaoTanxQualificationPictureUploadAPIRequest.go new file mode 100644 index 0000000000..7defaa89c3 --- /dev/null +++ b/model/tanx/TaobaoTanxQualificationPictureUploadAPIRequest.go @@ -0,0 +1,94 @@ +package tanx + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +资质图片上传接口 API请求 +taobao.tanx.qualification.picture.upload + +资质图片上传接口 +*/ +type TaobaoTanxQualificationPictureUploadAPIRequest struct { + model.Params + // dsp用户id + _memberId int64 + // dsp用户检验token + _token string + // 1970年到现在的时间,毫秒 + _signTime int64 + // File文件getByte后的二进制数组 + _fileByte *model.File +} + +// 初始化TaobaoTanxQualificationPictureUploadAPIRequest对象 +func NewTaobaoTanxQualificationPictureUploadRequest() *TaobaoTanxQualificationPictureUploadAPIRequest{ + return &TaobaoTanxQualificationPictureUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTanxQualificationPictureUploadAPIRequest) GetApiMethodName() string { + return "taobao.tanx.qualification.picture.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTanxQualificationPictureUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MemberId Setter +// dsp用户id +func (r *TaobaoTanxQualificationPictureUploadAPIRequest) SetMemberId(_memberId int64) error { + r._memberId = _memberId + r.Set("member_id", _memberId) + return nil +} + +// MemberId Getter +func (r TaobaoTanxQualificationPictureUploadAPIRequest) GetMemberId() int64 { + return r._memberId +} +// Token Setter +// dsp用户检验token +func (r *TaobaoTanxQualificationPictureUploadAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoTanxQualificationPictureUploadAPIRequest) GetToken() string { + return r._token +} +// SignTime Setter +// 1970年到现在的时间,毫秒 +func (r *TaobaoTanxQualificationPictureUploadAPIRequest) SetSignTime(_signTime int64) error { + r._signTime = _signTime + r.Set("sign_time", _signTime) + return nil +} + +// SignTime Getter +func (r TaobaoTanxQualificationPictureUploadAPIRequest) GetSignTime() int64 { + return r._signTime +} +// FileByte Setter +// File文件getByte后的二进制数组 +func (r *TaobaoTanxQualificationPictureUploadAPIRequest) SetFileByte(_fileByte *model.File) error { + r._fileByte = _fileByte + r.Set("file_byte", _fileByte) + return nil +} + +// FileByte Getter +func (r TaobaoTanxQualificationPictureUploadAPIRequest) GetFileByte() *model.File { + return r._fileByte +} diff --git a/model/tanx/TaobaoTanxQualificationPictureUploadAPIResponse.go b/model/tanx/TaobaoTanxQualificationPictureUploadAPIResponse.go new file mode 100644 index 0000000000..a020d051e8 --- /dev/null +++ b/model/tanx/TaobaoTanxQualificationPictureUploadAPIResponse.go @@ -0,0 +1,29 @@ +package tanx + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +资质图片上传接口 API返回值 +taobao.tanx.qualification.picture.upload + +资质图片上传接口 +*/ +type TaobaoTanxQualificationPictureUploadAPIResponse struct { + model.CommonResponse + TaobaoTanxQualificationPictureUploadAPIResponseModel +} + +// 资质图片上传接口 成功返回结果 +type TaobaoTanxQualificationPictureUploadAPIResponseModel struct { + XMLName xml.Name `xml:"tanx_qualification_picture_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 上传后返回的url + Url string `json:"url,omitempty" xml:"url,omitempty"` +} diff --git a/model/tanx/TaobaoTanxQualificationPictureUploadResponse.go b/model/tanx/TaobaoTanxQualificationPictureUploadResponse.go deleted file mode 100644 index 38f62b4017..0000000000 --- a/model/tanx/TaobaoTanxQualificationPictureUploadResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tanx - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -资质图片上传接口 API返回值 -taobao.tanx.qualification.picture.upload - -资质图片上传接口 -*/ -type TaobaoTanxQualificationPictureUploadAPIResponse struct { - model.CommonResponse - TaobaoTanxQualificationPictureUploadResponse -} - -// 资质图片上传接口 成功返回结果 -type TaobaoTanxQualificationPictureUploadResponse struct { - XMLName xml.Name `xml:"tanx_qualification_picture_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 上传后返回的url - Url string `json:"url,omitempty" xml:"url,omitempty"` -} diff --git a/model/tanx/TaobaoTanxQualificationSolidFindAPIRequest.go b/model/tanx/TaobaoTanxQualificationSolidFindAPIRequest.go new file mode 100644 index 0000000000..6b71492047 --- /dev/null +++ b/model/tanx/TaobaoTanxQualificationSolidFindAPIRequest.go @@ -0,0 +1,136 @@ +package tanx + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +客户固态共享资质 API请求 +taobao.tanx.qualification.solid.find + +接口会返回该广告主下的所有审核通过并且可被共享的资质,这些资质在过期之前可以不需要再次上传。 +*/ +type TaobaoTanxQualificationSolidFindAPIRequest struct { + model.Params + // 广告主id + _advertiserId int64 + // 资质元素id列表 + _elementIds []int64 + // dsp用户id + _memberId int64 + // dsp客户验证token + _token string + // 1970年到现在的秒 + _signTime int64 + // 查询起始页 + _page int64 + // 分页大小 + _pageSize int64 +} + +// 初始化TaobaoTanxQualificationSolidFindAPIRequest对象 +func NewTaobaoTanxQualificationSolidFindRequest() *TaobaoTanxQualificationSolidFindAPIRequest{ + return &TaobaoTanxQualificationSolidFindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTanxQualificationSolidFindAPIRequest) GetApiMethodName() string { + return "taobao.tanx.qualification.solid.find" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTanxQualificationSolidFindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AdvertiserId Setter +// 广告主id +func (r *TaobaoTanxQualificationSolidFindAPIRequest) SetAdvertiserId(_advertiserId int64) error { + r._advertiserId = _advertiserId + r.Set("advertiser_id", _advertiserId) + return nil +} + +// AdvertiserId Getter +func (r TaobaoTanxQualificationSolidFindAPIRequest) GetAdvertiserId() int64 { + return r._advertiserId +} +// ElementIds Setter +// 资质元素id列表 +func (r *TaobaoTanxQualificationSolidFindAPIRequest) SetElementIds(_elementIds []int64) error { + r._elementIds = _elementIds + r.Set("element_ids", _elementIds) + return nil +} + +// ElementIds Getter +func (r TaobaoTanxQualificationSolidFindAPIRequest) GetElementIds() []int64 { + return r._elementIds +} +// MemberId Setter +// dsp用户id +func (r *TaobaoTanxQualificationSolidFindAPIRequest) SetMemberId(_memberId int64) error { + r._memberId = _memberId + r.Set("member_id", _memberId) + return nil +} + +// MemberId Getter +func (r TaobaoTanxQualificationSolidFindAPIRequest) GetMemberId() int64 { + return r._memberId +} +// Token Setter +// dsp客户验证token +func (r *TaobaoTanxQualificationSolidFindAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r TaobaoTanxQualificationSolidFindAPIRequest) GetToken() string { + return r._token +} +// SignTime Setter +// 1970年到现在的秒 +func (r *TaobaoTanxQualificationSolidFindAPIRequest) SetSignTime(_signTime int64) error { + r._signTime = _signTime + r.Set("sign_time", _signTime) + return nil +} + +// SignTime Getter +func (r TaobaoTanxQualificationSolidFindAPIRequest) GetSignTime() int64 { + return r._signTime +} +// Page Setter +// 查询起始页 +func (r *TaobaoTanxQualificationSolidFindAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r TaobaoTanxQualificationSolidFindAPIRequest) GetPage() int64 { + return r._page +} +// PageSize Setter +// 分页大小 +func (r *TaobaoTanxQualificationSolidFindAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTanxQualificationSolidFindAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tanx/TaobaoTanxQualificationSolidFindAPIResponse.go b/model/tanx/TaobaoTanxQualificationSolidFindAPIResponse.go new file mode 100644 index 0000000000..7eb91a45eb --- /dev/null +++ b/model/tanx/TaobaoTanxQualificationSolidFindAPIResponse.go @@ -0,0 +1,31 @@ +package tanx + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +客户固态共享资质 API返回值 +taobao.tanx.qualification.solid.find + +接口会返回该广告主下的所有审核通过并且可被共享的资质,这些资质在过期之前可以不需要再次上传。 +*/ +type TaobaoTanxQualificationSolidFindAPIResponse struct { + model.CommonResponse + TaobaoTanxQualificationSolidFindAPIResponseModel +} + +// 客户固态共享资质 成功返回结果 +type TaobaoTanxQualificationSolidFindAPIResponseModel struct { + XMLName xml.Name `xml:"tanx_qualification_solid_find_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 返回固化资质列表 + QualificationList []QualificationDto `json:"qualification_list,omitempty" xml:"qualification_list>qualification_dto,omitempty"` + // 返回查询总数 + Count string `json:"count,omitempty" xml:"count,omitempty"` +} diff --git a/model/tanx/TaobaoTanxQualificationSolidFindResponse.go b/model/tanx/TaobaoTanxQualificationSolidFindResponse.go deleted file mode 100644 index ec59025038..0000000000 --- a/model/tanx/TaobaoTanxQualificationSolidFindResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tanx - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -客户固态共享资质 API返回值 -taobao.tanx.qualification.solid.find - -接口会返回该广告主下的所有审核通过并且可被共享的资质,这些资质在过期之前可以不需要再次上传。 -*/ -type TaobaoTanxQualificationSolidFindAPIResponse struct { - model.CommonResponse - TaobaoTanxQualificationSolidFindResponse -} - -// 客户固态共享资质 成功返回结果 -type TaobaoTanxQualificationSolidFindResponse struct { - XMLName xml.Name `xml:"tanx_qualification_solid_find_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 返回固化资质列表 - QualificationList []QualificationDto `json:"qualification_list,omitempty" xml:"qualification_list>qualification_dto,omitempty"` - // 返回查询总数 - Count string `json:"count,omitempty" xml:"count,omitempty"` -} diff --git a/model/taotv/TaobaoTaotvCarouselCategoryListAPIRequest.go b/model/taotv/TaobaoTaotvCarouselCategoryListAPIRequest.go new file mode 100644 index 0000000000..01ef74afef --- /dev/null +++ b/model/taotv/TaobaoTaotvCarouselCategoryListAPIRequest.go @@ -0,0 +1,52 @@ +package taotv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取轮播分类列表 API请求 +taobao.taotv.carousel.category.list + +获取轮播分类列表 +*/ +type TaobaoTaotvCarouselCategoryListAPIRequest struct { + model.Params + // 设备信息 + _systemInfo string +} + +// 初始化TaobaoTaotvCarouselCategoryListAPIRequest对象 +func NewTaobaoTaotvCarouselCategoryListRequest() *TaobaoTaotvCarouselCategoryListAPIRequest{ + return &TaobaoTaotvCarouselCategoryListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTaotvCarouselCategoryListAPIRequest) GetApiMethodName() string { + return "taobao.taotv.carousel.category.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTaotvCarouselCategoryListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SystemInfo Setter +// 设备信息 +func (r *TaobaoTaotvCarouselCategoryListAPIRequest) SetSystemInfo(_systemInfo string) error { + r._systemInfo = _systemInfo + r.Set("system_info", _systemInfo) + return nil +} + +// SystemInfo Getter +func (r TaobaoTaotvCarouselCategoryListAPIRequest) GetSystemInfo() string { + return r._systemInfo +} diff --git a/model/taotv/TaobaoTaotvCarouselCategoryListAPIResponse.go b/model/taotv/TaobaoTaotvCarouselCategoryListAPIResponse.go new file mode 100644 index 0000000000..c2e2a4be68 --- /dev/null +++ b/model/taotv/TaobaoTaotvCarouselCategoryListAPIResponse.go @@ -0,0 +1,27 @@ +package taotv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取轮播分类列表 API返回值 +taobao.taotv.carousel.category.list + +获取轮播分类列表 +*/ +type TaobaoTaotvCarouselCategoryListAPIResponse struct { + model.CommonResponse + TaobaoTaotvCarouselCategoryListAPIResponseModel +} + +// 获取轮播分类列表 成功返回结果 +type TaobaoTaotvCarouselCategoryListAPIResponseModel struct { + XMLName xml.Name `xml:"taotv_carousel_category_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoTaotvCarouselCategoryListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/taotv/TaobaoTaotvCarouselCategoryListResponse.go b/model/taotv/TaobaoTaotvCarouselCategoryListResponse.go deleted file mode 100644 index 719a81c7cb..0000000000 --- a/model/taotv/TaobaoTaotvCarouselCategoryListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package taotv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取轮播分类列表 API返回值 -taobao.taotv.carousel.category.list - -获取轮播分类列表 -*/ -type TaobaoTaotvCarouselCategoryListAPIResponse struct { - model.CommonResponse - TaobaoTaotvCarouselCategoryListResponse -} - -// 获取轮播分类列表 成功返回结果 -type TaobaoTaotvCarouselCategoryListResponse struct { - XMLName xml.Name `xml:"taotv_carousel_category_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoTaotvCarouselCategoryListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/taotv/TaobaoTaotvCarouselChannelAllAPIRequest.go b/model/taotv/TaobaoTaotvCarouselChannelAllAPIRequest.go new file mode 100644 index 0000000000..edec1283be --- /dev/null +++ b/model/taotv/TaobaoTaotvCarouselChannelAllAPIRequest.go @@ -0,0 +1,52 @@ +package taotv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取所有频道列表 API请求 +taobao.taotv.carousel.channel.all + +获取所有频道列表,按照序号升序 +*/ +type TaobaoTaotvCarouselChannelAllAPIRequest struct { + model.Params + // 系统信息 + _systemInfo string +} + +// 初始化TaobaoTaotvCarouselChannelAllAPIRequest对象 +func NewTaobaoTaotvCarouselChannelAllRequest() *TaobaoTaotvCarouselChannelAllAPIRequest{ + return &TaobaoTaotvCarouselChannelAllAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTaotvCarouselChannelAllAPIRequest) GetApiMethodName() string { + return "taobao.taotv.carousel.channel.all" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTaotvCarouselChannelAllAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SystemInfo Setter +// 系统信息 +func (r *TaobaoTaotvCarouselChannelAllAPIRequest) SetSystemInfo(_systemInfo string) error { + r._systemInfo = _systemInfo + r.Set("system_info", _systemInfo) + return nil +} + +// SystemInfo Getter +func (r TaobaoTaotvCarouselChannelAllAPIRequest) GetSystemInfo() string { + return r._systemInfo +} diff --git a/model/taotv/TaobaoTaotvCarouselChannelAllAPIResponse.go b/model/taotv/TaobaoTaotvCarouselChannelAllAPIResponse.go new file mode 100644 index 0000000000..a2e5034abd --- /dev/null +++ b/model/taotv/TaobaoTaotvCarouselChannelAllAPIResponse.go @@ -0,0 +1,27 @@ +package taotv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取所有频道列表 API返回值 +taobao.taotv.carousel.channel.all + +获取所有频道列表,按照序号升序 +*/ +type TaobaoTaotvCarouselChannelAllAPIResponse struct { + model.CommonResponse + TaobaoTaotvCarouselChannelAllAPIResponseModel +} + +// 获取所有频道列表 成功返回结果 +type TaobaoTaotvCarouselChannelAllAPIResponseModel struct { + XMLName xml.Name `xml:"taotv_carousel_channel_all_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoTaotvCarouselChannelAllResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/taotv/TaobaoTaotvCarouselChannelAllResponse.go b/model/taotv/TaobaoTaotvCarouselChannelAllResponse.go deleted file mode 100644 index ab678a1e97..0000000000 --- a/model/taotv/TaobaoTaotvCarouselChannelAllResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package taotv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取所有频道列表 API返回值 -taobao.taotv.carousel.channel.all - -获取所有频道列表,按照序号升序 -*/ -type TaobaoTaotvCarouselChannelAllAPIResponse struct { - model.CommonResponse - TaobaoTaotvCarouselChannelAllResponse -} - -// 获取所有频道列表 成功返回结果 -type TaobaoTaotvCarouselChannelAllResponse struct { - XMLName xml.Name `xml:"taotv_carousel_channel_all_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoTaotvCarouselChannelAllResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/taotv/TaobaoTaotvCarouselPlaylistGetAPIRequest.go b/model/taotv/TaobaoTaotvCarouselPlaylistGetAPIRequest.go new file mode 100644 index 0000000000..a287dd01e1 --- /dev/null +++ b/model/taotv/TaobaoTaotvCarouselPlaylistGetAPIRequest.go @@ -0,0 +1,66 @@ +package taotv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据频道ID获取频道下节目单以及当前播放 API请求 +taobao.taotv.carousel.playlist.get + +根据频道ID获取频道下节目单以及当前播放,包括所有视频源的视频 +*/ +type TaobaoTaotvCarouselPlaylistGetAPIRequest struct { + model.Params + // 频道ID + _channelId int64 + // 设备信息 + _systemInfo string +} + +// 初始化TaobaoTaotvCarouselPlaylistGetAPIRequest对象 +func NewTaobaoTaotvCarouselPlaylistGetRequest() *TaobaoTaotvCarouselPlaylistGetAPIRequest{ + return &TaobaoTaotvCarouselPlaylistGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTaotvCarouselPlaylistGetAPIRequest) GetApiMethodName() string { + return "taobao.taotv.carousel.playlist.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTaotvCarouselPlaylistGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChannelId Setter +// 频道ID +func (r *TaobaoTaotvCarouselPlaylistGetAPIRequest) SetChannelId(_channelId int64) error { + r._channelId = _channelId + r.Set("channel_id", _channelId) + return nil +} + +// ChannelId Getter +func (r TaobaoTaotvCarouselPlaylistGetAPIRequest) GetChannelId() int64 { + return r._channelId +} +// SystemInfo Setter +// 设备信息 +func (r *TaobaoTaotvCarouselPlaylistGetAPIRequest) SetSystemInfo(_systemInfo string) error { + r._systemInfo = _systemInfo + r.Set("system_info", _systemInfo) + return nil +} + +// SystemInfo Getter +func (r TaobaoTaotvCarouselPlaylistGetAPIRequest) GetSystemInfo() string { + return r._systemInfo +} diff --git a/model/taotv/TaobaoTaotvCarouselPlaylistGetAPIResponse.go b/model/taotv/TaobaoTaotvCarouselPlaylistGetAPIResponse.go new file mode 100644 index 0000000000..3d0f83a9b6 --- /dev/null +++ b/model/taotv/TaobaoTaotvCarouselPlaylistGetAPIResponse.go @@ -0,0 +1,27 @@ +package taotv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据频道ID获取频道下节目单以及当前播放 API返回值 +taobao.taotv.carousel.playlist.get + +根据频道ID获取频道下节目单以及当前播放,包括所有视频源的视频 +*/ +type TaobaoTaotvCarouselPlaylistGetAPIResponse struct { + model.CommonResponse + TaobaoTaotvCarouselPlaylistGetAPIResponseModel +} + +// 根据频道ID获取频道下节目单以及当前播放 成功返回结果 +type TaobaoTaotvCarouselPlaylistGetAPIResponseModel struct { + XMLName xml.Name `xml:"taotv_carousel_playlist_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoTaotvCarouselPlaylistGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/taotv/TaobaoTaotvCarouselPlaylistGetResponse.go b/model/taotv/TaobaoTaotvCarouselPlaylistGetResponse.go deleted file mode 100644 index 7bcca07b3d..0000000000 --- a/model/taotv/TaobaoTaotvCarouselPlaylistGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package taotv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据频道ID获取频道下节目单以及当前播放 API返回值 -taobao.taotv.carousel.playlist.get - -根据频道ID获取频道下节目单以及当前播放,包括所有视频源的视频 -*/ -type TaobaoTaotvCarouselPlaylistGetAPIResponse struct { - model.CommonResponse - TaobaoTaotvCarouselPlaylistGetResponse -} - -// 根据频道ID获取频道下节目单以及当前播放 成功返回结果 -type TaobaoTaotvCarouselPlaylistGetResponse struct { - XMLName xml.Name `xml:"taotv_carousel_playlist_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoTaotvCarouselPlaylistGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/taotv/TaobaoTaotvVideoPlaylistAllAPIRequest.go b/model/taotv/TaobaoTaotvVideoPlaylistAllAPIRequest.go new file mode 100644 index 0000000000..27f6518261 --- /dev/null +++ b/model/taotv/TaobaoTaotvVideoPlaylistAllAPIRequest.go @@ -0,0 +1,52 @@ +package taotv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取播单列表 API请求 +taobao.taotv.video.playlist.all + +根据牌照和视频源等获取播单列表 +*/ +type TaobaoTaotvVideoPlaylistAllAPIRequest struct { + model.Params + // 系统信息 + _systemInfo string +} + +// 初始化TaobaoTaotvVideoPlaylistAllAPIRequest对象 +func NewTaobaoTaotvVideoPlaylistAllRequest() *TaobaoTaotvVideoPlaylistAllAPIRequest{ + return &TaobaoTaotvVideoPlaylistAllAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTaotvVideoPlaylistAllAPIRequest) GetApiMethodName() string { + return "taobao.taotv.video.playlist.all" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTaotvVideoPlaylistAllAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SystemInfo Setter +// 系统信息 +func (r *TaobaoTaotvVideoPlaylistAllAPIRequest) SetSystemInfo(_systemInfo string) error { + r._systemInfo = _systemInfo + r.Set("system_info", _systemInfo) + return nil +} + +// SystemInfo Getter +func (r TaobaoTaotvVideoPlaylistAllAPIRequest) GetSystemInfo() string { + return r._systemInfo +} diff --git a/model/taotv/TaobaoTaotvVideoPlaylistAllAPIResponse.go b/model/taotv/TaobaoTaotvVideoPlaylistAllAPIResponse.go new file mode 100644 index 0000000000..6b65a7a376 --- /dev/null +++ b/model/taotv/TaobaoTaotvVideoPlaylistAllAPIResponse.go @@ -0,0 +1,27 @@ +package taotv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取播单列表 API返回值 +taobao.taotv.video.playlist.all + +根据牌照和视频源等获取播单列表 +*/ +type TaobaoTaotvVideoPlaylistAllAPIResponse struct { + model.CommonResponse + TaobaoTaotvVideoPlaylistAllAPIResponseModel +} + +// 获取播单列表 成功返回结果 +type TaobaoTaotvVideoPlaylistAllAPIResponseModel struct { + XMLName xml.Name `xml:"taotv_video_playlist_all_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoTaotvVideoPlaylistAllResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/taotv/TaobaoTaotvVideoPlaylistAllResponse.go b/model/taotv/TaobaoTaotvVideoPlaylistAllResponse.go deleted file mode 100644 index aef10bde8c..0000000000 --- a/model/taotv/TaobaoTaotvVideoPlaylistAllResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package taotv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取播单列表 API返回值 -taobao.taotv.video.playlist.all - -根据牌照和视频源等获取播单列表 -*/ -type TaobaoTaotvVideoPlaylistAllAPIResponse struct { - model.CommonResponse - TaobaoTaotvVideoPlaylistAllResponse -} - -// 获取播单列表 成功返回结果 -type TaobaoTaotvVideoPlaylistAllResponse struct { - XMLName xml.Name `xml:"taotv_video_playlist_all_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoTaotvVideoPlaylistAllResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/taotv/TaobaoTaotvVideoPlaylistGetAPIRequest.go b/model/taotv/TaobaoTaotvVideoPlaylistGetAPIRequest.go new file mode 100644 index 0000000000..c485a0e446 --- /dev/null +++ b/model/taotv/TaobaoTaotvVideoPlaylistGetAPIRequest.go @@ -0,0 +1,66 @@ +package taotv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据频道ID获取频道下节目单以及当前播放 API请求 +taobao.taotv.video.playlist.get + +根据频道ID获取频道下节目单以及当前播放 +*/ +type TaobaoTaotvVideoPlaylistGetAPIRequest struct { + model.Params + // 播单id + _playListId int64 + // 系统信息 + _systemInfo string +} + +// 初始化TaobaoTaotvVideoPlaylistGetAPIRequest对象 +func NewTaobaoTaotvVideoPlaylistGetRequest() *TaobaoTaotvVideoPlaylistGetAPIRequest{ + return &TaobaoTaotvVideoPlaylistGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTaotvVideoPlaylistGetAPIRequest) GetApiMethodName() string { + return "taobao.taotv.video.playlist.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTaotvVideoPlaylistGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PlayListId Setter +// 播单id +func (r *TaobaoTaotvVideoPlaylistGetAPIRequest) SetPlayListId(_playListId int64) error { + r._playListId = _playListId + r.Set("play_list_id", _playListId) + return nil +} + +// PlayListId Getter +func (r TaobaoTaotvVideoPlaylistGetAPIRequest) GetPlayListId() int64 { + return r._playListId +} +// SystemInfo Setter +// 系统信息 +func (r *TaobaoTaotvVideoPlaylistGetAPIRequest) SetSystemInfo(_systemInfo string) error { + r._systemInfo = _systemInfo + r.Set("system_info", _systemInfo) + return nil +} + +// SystemInfo Getter +func (r TaobaoTaotvVideoPlaylistGetAPIRequest) GetSystemInfo() string { + return r._systemInfo +} diff --git a/model/taotv/TaobaoTaotvVideoPlaylistGetAPIResponse.go b/model/taotv/TaobaoTaotvVideoPlaylistGetAPIResponse.go new file mode 100644 index 0000000000..282a5bf3cc --- /dev/null +++ b/model/taotv/TaobaoTaotvVideoPlaylistGetAPIResponse.go @@ -0,0 +1,27 @@ +package taotv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据频道ID获取频道下节目单以及当前播放 API返回值 +taobao.taotv.video.playlist.get + +根据频道ID获取频道下节目单以及当前播放 +*/ +type TaobaoTaotvVideoPlaylistGetAPIResponse struct { + model.CommonResponse + TaobaoTaotvVideoPlaylistGetAPIResponseModel +} + +// 根据频道ID获取频道下节目单以及当前播放 成功返回结果 +type TaobaoTaotvVideoPlaylistGetAPIResponseModel struct { + XMLName xml.Name `xml:"taotv_video_playlist_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoTaotvVideoPlaylistGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/taotv/TaobaoTaotvVideoPlaylistGetResponse.go b/model/taotv/TaobaoTaotvVideoPlaylistGetResponse.go deleted file mode 100644 index dddfcf7b19..0000000000 --- a/model/taotv/TaobaoTaotvVideoPlaylistGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package taotv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据频道ID获取频道下节目单以及当前播放 API返回值 -taobao.taotv.video.playlist.get - -根据频道ID获取频道下节目单以及当前播放 -*/ -type TaobaoTaotvVideoPlaylistGetAPIResponse struct { - model.CommonResponse - TaobaoTaotvVideoPlaylistGetResponse -} - -// 根据频道ID获取频道下节目单以及当前播放 成功返回结果 -type TaobaoTaotvVideoPlaylistGetResponse struct { - XMLName xml.Name `xml:"taotv_video_playlist_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoTaotvVideoPlaylistGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/taotv/TaobaoTaotvVideoPlaylistOttnavGetAPIRequest.go b/model/taotv/TaobaoTaotvVideoPlaylistOttnavGetAPIRequest.go new file mode 100644 index 0000000000..d1b37c2ee2 --- /dev/null +++ b/model/taotv/TaobaoTaotvVideoPlaylistOttnavGetAPIRequest.go @@ -0,0 +1,80 @@ +package taotv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ott播单 API请求 +taobao.taotv.video.playlist.ottnav.get + +根据聚焦播单ID拿到下面播单视频,根据左侧播单ID列表批量拿到播单信息 +*/ +type TaobaoTaotvVideoPlaylistOttnavGetAPIRequest struct { + model.Params + // 播单id + _playListId int64 + // 播单列表 + _playListNav []string + // 系统信息 + _systemInfo string +} + +// 初始化TaobaoTaotvVideoPlaylistOttnavGetAPIRequest对象 +func NewTaobaoTaotvVideoPlaylistOttnavGetRequest() *TaobaoTaotvVideoPlaylistOttnavGetAPIRequest{ + return &TaobaoTaotvVideoPlaylistOttnavGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTaotvVideoPlaylistOttnavGetAPIRequest) GetApiMethodName() string { + return "taobao.taotv.video.playlist.ottnav.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTaotvVideoPlaylistOttnavGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PlayListId Setter +// 播单id +func (r *TaobaoTaotvVideoPlaylistOttnavGetAPIRequest) SetPlayListId(_playListId int64) error { + r._playListId = _playListId + r.Set("play_list_id", _playListId) + return nil +} + +// PlayListId Getter +func (r TaobaoTaotvVideoPlaylistOttnavGetAPIRequest) GetPlayListId() int64 { + return r._playListId +} +// PlayListNav Setter +// 播单列表 +func (r *TaobaoTaotvVideoPlaylistOttnavGetAPIRequest) SetPlayListNav(_playListNav []string) error { + r._playListNav = _playListNav + r.Set("play_list_nav", _playListNav) + return nil +} + +// PlayListNav Getter +func (r TaobaoTaotvVideoPlaylistOttnavGetAPIRequest) GetPlayListNav() []string { + return r._playListNav +} +// SystemInfo Setter +// 系统信息 +func (r *TaobaoTaotvVideoPlaylistOttnavGetAPIRequest) SetSystemInfo(_systemInfo string) error { + r._systemInfo = _systemInfo + r.Set("system_info", _systemInfo) + return nil +} + +// SystemInfo Getter +func (r TaobaoTaotvVideoPlaylistOttnavGetAPIRequest) GetSystemInfo() string { + return r._systemInfo +} diff --git a/model/taotv/TaobaoTaotvVideoPlaylistOttnavGetAPIResponse.go b/model/taotv/TaobaoTaotvVideoPlaylistOttnavGetAPIResponse.go new file mode 100644 index 0000000000..7a1a1e425d --- /dev/null +++ b/model/taotv/TaobaoTaotvVideoPlaylistOttnavGetAPIResponse.go @@ -0,0 +1,27 @@ +package taotv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ott播单 API返回值 +taobao.taotv.video.playlist.ottnav.get + +根据聚焦播单ID拿到下面播单视频,根据左侧播单ID列表批量拿到播单信息 +*/ +type TaobaoTaotvVideoPlaylistOttnavGetAPIResponse struct { + model.CommonResponse + TaobaoTaotvVideoPlaylistOttnavGetAPIResponseModel +} + +// ott播单 成功返回结果 +type TaobaoTaotvVideoPlaylistOttnavGetAPIResponseModel struct { + XMLName xml.Name `xml:"taotv_video_playlist_ottnav_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoTaotvVideoPlaylistOttnavGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/taotv/TaobaoTaotvVideoPlaylistOttnavGetResponse.go b/model/taotv/TaobaoTaotvVideoPlaylistOttnavGetResponse.go deleted file mode 100644 index b4f7ef3c14..0000000000 --- a/model/taotv/TaobaoTaotvVideoPlaylistOttnavGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package taotv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ott播单 API返回值 -taobao.taotv.video.playlist.ottnav.get - -根据聚焦播单ID拿到下面播单视频,根据左侧播单ID列表批量拿到播单信息 -*/ -type TaobaoTaotvVideoPlaylistOttnavGetAPIResponse struct { - model.CommonResponse - TaobaoTaotvVideoPlaylistOttnavGetResponse -} - -// ott播单 成功返回结果 -type TaobaoTaotvVideoPlaylistOttnavGetResponse struct { - XMLName xml.Name `xml:"taotv_video_playlist_ottnav_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoTaotvVideoPlaylistOttnavGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/taotv/TaobaoTaotvVideoPlaylistPageAPIRequest.go b/model/taotv/TaobaoTaotvVideoPlaylistPageAPIRequest.go new file mode 100644 index 0000000000..583f7ac8b5 --- /dev/null +++ b/model/taotv/TaobaoTaotvVideoPlaylistPageAPIRequest.go @@ -0,0 +1,66 @@ +package taotv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页获取所有播单 API请求 +taobao.taotv.video.playlist.page + +获取所有播单信息(分页) +*/ +type TaobaoTaotvVideoPlaylistPageAPIRequest struct { + model.Params + // 客户端信息 + _systemInfo string + // 当前页(从1开始) + _pageNo int64 +} + +// 初始化TaobaoTaotvVideoPlaylistPageAPIRequest对象 +func NewTaobaoTaotvVideoPlaylistPageRequest() *TaobaoTaotvVideoPlaylistPageAPIRequest{ + return &TaobaoTaotvVideoPlaylistPageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTaotvVideoPlaylistPageAPIRequest) GetApiMethodName() string { + return "taobao.taotv.video.playlist.page" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTaotvVideoPlaylistPageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SystemInfo Setter +// 客户端信息 +func (r *TaobaoTaotvVideoPlaylistPageAPIRequest) SetSystemInfo(_systemInfo string) error { + r._systemInfo = _systemInfo + r.Set("system_info", _systemInfo) + return nil +} + +// SystemInfo Getter +func (r TaobaoTaotvVideoPlaylistPageAPIRequest) GetSystemInfo() string { + return r._systemInfo +} +// PageNo Setter +// 当前页(从1开始) +func (r *TaobaoTaotvVideoPlaylistPageAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoTaotvVideoPlaylistPageAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/taotv/TaobaoTaotvVideoPlaylistPageAPIResponse.go b/model/taotv/TaobaoTaotvVideoPlaylistPageAPIResponse.go new file mode 100644 index 0000000000..fd4a469675 --- /dev/null +++ b/model/taotv/TaobaoTaotvVideoPlaylistPageAPIResponse.go @@ -0,0 +1,27 @@ +package taotv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页获取所有播单 API返回值 +taobao.taotv.video.playlist.page + +获取所有播单信息(分页) +*/ +type TaobaoTaotvVideoPlaylistPageAPIResponse struct { + model.CommonResponse + TaobaoTaotvVideoPlaylistPageAPIResponseModel +} + +// 分页获取所有播单 成功返回结果 +type TaobaoTaotvVideoPlaylistPageAPIResponseModel struct { + XMLName xml.Name `xml:"taotv_video_playlist_page_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoTaotvVideoPlaylistPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/taotv/TaobaoTaotvVideoPlaylistPageResponse.go b/model/taotv/TaobaoTaotvVideoPlaylistPageResponse.go deleted file mode 100644 index f31831eddf..0000000000 --- a/model/taotv/TaobaoTaotvVideoPlaylistPageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package taotv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页获取所有播单 API返回值 -taobao.taotv.video.playlist.page - -获取所有播单信息(分页) -*/ -type TaobaoTaotvVideoPlaylistPageAPIResponse struct { - model.CommonResponse - TaobaoTaotvVideoPlaylistPageResponse -} - -// 分页获取所有播单 成功返回结果 -type TaobaoTaotvVideoPlaylistPageResponse struct { - XMLName xml.Name `xml:"taotv_video_playlist_page_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoTaotvVideoPlaylistPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/taotv/YoukuTvDesktopToyouRecommendAPIRequest.go b/model/taotv/YoukuTvDesktopToyouRecommendAPIRequest.go new file mode 100644 index 0000000000..5307949c90 --- /dev/null +++ b/model/taotv/YoukuTvDesktopToyouRecommendAPIRequest.go @@ -0,0 +1,206 @@ +package taotv + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +TV桌面为你推荐接口 API请求 +youku.tv.desktop.toyou.recommend + +提供为你推荐数据 +*/ +type YoukuTvDesktopToyouRecommendAPIRequest struct { + model.Params + // 用户登陆token + _token string + // 播控方,1:华数 7:CIBN + _bcp string + // 终端设备型号 + _deviceModel string + // 桌面版本号 + _versionCode int64 + // 终端设备mac + _mac string + // 终端设备uuid + _uuid string + // 影视来源,0-淘tv 7-优酷免费 9-优酷付费 多项用“,”隔开 + _from string + // 支持收费方式,0-免费 1-限免 2-单点 3-包月 4-红包 5-单包,多项用“,”隔开 + _chargeType string + // 获取的最大节目数 + _maxSize int64 + // 分辨率,sw720 sw1080 + _sw string + // 支持媒体类型,dts,drm,dolby,h265 + _deviceMedia string + // 请求IP + _ip string +} + +// 初始化YoukuTvDesktopToyouRecommendAPIRequest对象 +func NewYoukuTvDesktopToyouRecommendRequest() *YoukuTvDesktopToyouRecommendAPIRequest{ + return &YoukuTvDesktopToyouRecommendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuTvDesktopToyouRecommendAPIRequest) GetApiMethodName() string { + return "youku.tv.desktop.toyou.recommend" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuTvDesktopToyouRecommendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Token Setter +// 用户登陆token +func (r *YoukuTvDesktopToyouRecommendAPIRequest) SetToken(_token string) error { + r._token = _token + r.Set("token", _token) + return nil +} + +// Token Getter +func (r YoukuTvDesktopToyouRecommendAPIRequest) GetToken() string { + return r._token +} +// Bcp Setter +// 播控方,1:华数 7:CIBN +func (r *YoukuTvDesktopToyouRecommendAPIRequest) SetBcp(_bcp string) error { + r._bcp = _bcp + r.Set("bcp", _bcp) + return nil +} + +// Bcp Getter +func (r YoukuTvDesktopToyouRecommendAPIRequest) GetBcp() string { + return r._bcp +} +// DeviceModel Setter +// 终端设备型号 +func (r *YoukuTvDesktopToyouRecommendAPIRequest) SetDeviceModel(_deviceModel string) error { + r._deviceModel = _deviceModel + r.Set("device_model", _deviceModel) + return nil +} + +// DeviceModel Getter +func (r YoukuTvDesktopToyouRecommendAPIRequest) GetDeviceModel() string { + return r._deviceModel +} +// VersionCode Setter +// 桌面版本号 +func (r *YoukuTvDesktopToyouRecommendAPIRequest) SetVersionCode(_versionCode int64) error { + r._versionCode = _versionCode + r.Set("version_code", _versionCode) + return nil +} + +// VersionCode Getter +func (r YoukuTvDesktopToyouRecommendAPIRequest) GetVersionCode() int64 { + return r._versionCode +} +// Mac Setter +// 终端设备mac +func (r *YoukuTvDesktopToyouRecommendAPIRequest) SetMac(_mac string) error { + r._mac = _mac + r.Set("mac", _mac) + return nil +} + +// Mac Getter +func (r YoukuTvDesktopToyouRecommendAPIRequest) GetMac() string { + return r._mac +} +// Uuid Setter +// 终端设备uuid +func (r *YoukuTvDesktopToyouRecommendAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r YoukuTvDesktopToyouRecommendAPIRequest) GetUuid() string { + return r._uuid +} +// From Setter +// 影视来源,0-淘tv 7-优酷免费 9-优酷付费 多项用“,”隔开 +func (r *YoukuTvDesktopToyouRecommendAPIRequest) SetFrom(_from string) error { + r._from = _from + r.Set("from", _from) + return nil +} + +// From Getter +func (r YoukuTvDesktopToyouRecommendAPIRequest) GetFrom() string { + return r._from +} +// ChargeType Setter +// 支持收费方式,0-免费 1-限免 2-单点 3-包月 4-红包 5-单包,多项用“,”隔开 +func (r *YoukuTvDesktopToyouRecommendAPIRequest) SetChargeType(_chargeType string) error { + r._chargeType = _chargeType + r.Set("charge_type", _chargeType) + return nil +} + +// ChargeType Getter +func (r YoukuTvDesktopToyouRecommendAPIRequest) GetChargeType() string { + return r._chargeType +} +// MaxSize Setter +// 获取的最大节目数 +func (r *YoukuTvDesktopToyouRecommendAPIRequest) SetMaxSize(_maxSize int64) error { + r._maxSize = _maxSize + r.Set("max_size", _maxSize) + return nil +} + +// MaxSize Getter +func (r YoukuTvDesktopToyouRecommendAPIRequest) GetMaxSize() int64 { + return r._maxSize +} +// Sw Setter +// 分辨率,sw720 sw1080 +func (r *YoukuTvDesktopToyouRecommendAPIRequest) SetSw(_sw string) error { + r._sw = _sw + r.Set("sw", _sw) + return nil +} + +// Sw Getter +func (r YoukuTvDesktopToyouRecommendAPIRequest) GetSw() string { + return r._sw +} +// DeviceMedia Setter +// 支持媒体类型,dts,drm,dolby,h265 +func (r *YoukuTvDesktopToyouRecommendAPIRequest) SetDeviceMedia(_deviceMedia string) error { + r._deviceMedia = _deviceMedia + r.Set("device_media", _deviceMedia) + return nil +} + +// DeviceMedia Getter +func (r YoukuTvDesktopToyouRecommendAPIRequest) GetDeviceMedia() string { + return r._deviceMedia +} +// Ip Setter +// 请求IP +func (r *YoukuTvDesktopToyouRecommendAPIRequest) SetIp(_ip string) error { + r._ip = _ip + r.Set("ip", _ip) + return nil +} + +// Ip Getter +func (r YoukuTvDesktopToyouRecommendAPIRequest) GetIp() string { + return r._ip +} diff --git a/model/taotv/YoukuTvDesktopToyouRecommendAPIResponse.go b/model/taotv/YoukuTvDesktopToyouRecommendAPIResponse.go new file mode 100644 index 0000000000..70611d6c4a --- /dev/null +++ b/model/taotv/YoukuTvDesktopToyouRecommendAPIResponse.go @@ -0,0 +1,27 @@ +package taotv + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +TV桌面为你推荐接口 API返回值 +youku.tv.desktop.toyou.recommend + +提供为你推荐数据 +*/ +type YoukuTvDesktopToyouRecommendAPIResponse struct { + model.CommonResponse + YoukuTvDesktopToyouRecommendAPIResponseModel +} + +// TV桌面为你推荐接口 成功返回结果 +type YoukuTvDesktopToyouRecommendAPIResponseModel struct { + XMLName xml.Name `xml:"youku_tv_desktop_toyou_recommend_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应的结果列表 + Results []V5BaseItemRbo `json:"results,omitempty" xml:"results>v5base_item_rbo,omitempty"` +} diff --git a/model/taotv/YoukuTvDesktopToyouRecommendResponse.go b/model/taotv/YoukuTvDesktopToyouRecommendResponse.go deleted file mode 100644 index dcf2a10b30..0000000000 --- a/model/taotv/YoukuTvDesktopToyouRecommendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package taotv - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -TV桌面为你推荐接口 API返回值 -youku.tv.desktop.toyou.recommend - -提供为你推荐数据 -*/ -type YoukuTvDesktopToyouRecommendAPIResponse struct { - model.CommonResponse - YoukuTvDesktopToyouRecommendResponse -} - -// TV桌面为你推荐接口 成功返回结果 -type YoukuTvDesktopToyouRecommendResponse struct { - XMLName xml.Name `xml:"youku_tv_desktop_toyou_recommend_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应的结果列表 - Results []V5BaseItemRbo `json:"results,omitempty" xml:"results>v5base_item_rbo,omitempty"` -} diff --git a/model/tax/AlibabaTaxInvoiceSyncAPIRequest.go b/model/tax/AlibabaTaxInvoiceSyncAPIRequest.go new file mode 100644 index 0000000000..7dab6abe78 --- /dev/null +++ b/model/tax/AlibabaTaxInvoiceSyncAPIRequest.go @@ -0,0 +1,52 @@ +package tax + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +第三方开票回调API API请求 +alibaba.tax.invoice.sync + +该接口只提供给俄罗斯供应商开具发票使用,请勿申请。 +*/ +type AlibabaTaxInvoiceSyncAPIRequest struct { + model.Params + // 回调发票信息,请求参数详情见链接:https://yuque.antfin-inc.com/tax/biw99l/uestb7 + _paramJson string +} + +// 初始化AlibabaTaxInvoiceSyncAPIRequest对象 +func NewAlibabaTaxInvoiceSyncRequest() *AlibabaTaxInvoiceSyncAPIRequest{ + return &AlibabaTaxInvoiceSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTaxInvoiceSyncAPIRequest) GetApiMethodName() string { + return "alibaba.tax.invoice.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTaxInvoiceSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamJson Setter +// 回调发票信息,请求参数详情见链接:https://yuque.antfin-inc.com/tax/biw99l/uestb7 +func (r *AlibabaTaxInvoiceSyncAPIRequest) SetParamJson(_paramJson string) error { + r._paramJson = _paramJson + r.Set("param_json", _paramJson) + return nil +} + +// ParamJson Getter +func (r AlibabaTaxInvoiceSyncAPIRequest) GetParamJson() string { + return r._paramJson +} diff --git a/model/tax/AlibabaTaxInvoiceSyncAPIResponse.go b/model/tax/AlibabaTaxInvoiceSyncAPIResponse.go new file mode 100644 index 0000000000..d21d556cb3 --- /dev/null +++ b/model/tax/AlibabaTaxInvoiceSyncAPIResponse.go @@ -0,0 +1,27 @@ +package tax + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +第三方开票回调API API返回值 +alibaba.tax.invoice.sync + +该接口只提供给俄罗斯供应商开具发票使用,请勿申请。 +*/ +type AlibabaTaxInvoiceSyncAPIResponse struct { + model.CommonResponse + AlibabaTaxInvoiceSyncAPIResponseModel +} + +// 第三方开票回调API 成功返回结果 +type AlibabaTaxInvoiceSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tax_invoice_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *ThirdPartyInvoiceCallBackResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tax/AlibabaTaxInvoiceSyncResponse.go b/model/tax/AlibabaTaxInvoiceSyncResponse.go deleted file mode 100644 index 53c664705e..0000000000 --- a/model/tax/AlibabaTaxInvoiceSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tax - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -第三方开票回调API API返回值 -alibaba.tax.invoice.sync - -该接口只提供给俄罗斯供应商开具发票使用,请勿申请。 -*/ -type AlibabaTaxInvoiceSyncAPIResponse struct { - model.CommonResponse - AlibabaTaxInvoiceSyncResponse -} - -// 第三方开票回调API 成功返回结果 -type AlibabaTaxInvoiceSyncResponse struct { - XMLName xml.Name `xml:"alibaba_tax_invoice_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *ThirdPartyInvoiceCallBackResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tbk/TaobaoTbkActivityInfoGetAPIRequest.go b/model/tbk/TaobaoTbkActivityInfoGetAPIRequest.go new file mode 100644 index 0000000000..3ccbd450bc --- /dev/null +++ b/model/tbk/TaobaoTbkActivityInfoGetAPIRequest.go @@ -0,0 +1,108 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-官方活动转链 API请求 +taobao.tbk.activity.info.get + +支持入参推广位和官方活动会场ID,获取活动信息和推广链接,包含推广长链接、短链接、淘口令、微信推广二维码地址等。改该API支持二方、三方类型的转链。官方活动会场ID,从淘宝客后台“我要推广-活动推广”中获取。 +*/ +type TaobaoTbkActivityInfoGetAPIRequest struct { + model.Params + // mm_xxx_xxx_xxx的第三位 + _adzoneId int64 + // mm_xxx_xxx_xxx 仅三方分成场景使用 + _subPid string + // 渠道关系id + _relationId int64 + // 官方活动会场ID,从淘宝客后台“我要推广-活动推广”中获取 + _activityMaterialId string + // 自定义输入串,英文和数字组成,长度不能大于12个字符,区分不同的推广渠道 + _unionId string +} + +// 初始化TaobaoTbkActivityInfoGetAPIRequest对象 +func NewTaobaoTbkActivityInfoGetRequest() *TaobaoTbkActivityInfoGetAPIRequest{ + return &TaobaoTbkActivityInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkActivityInfoGetAPIRequest) GetApiMethodName() string { + return "taobao.tbk.activity.info.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkActivityInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AdzoneId Setter +// mm_xxx_xxx_xxx的第三位 +func (r *TaobaoTbkActivityInfoGetAPIRequest) SetAdzoneId(_adzoneId int64) error { + r._adzoneId = _adzoneId + r.Set("adzone_id", _adzoneId) + return nil +} + +// AdzoneId Getter +func (r TaobaoTbkActivityInfoGetAPIRequest) GetAdzoneId() int64 { + return r._adzoneId +} +// SubPid Setter +// mm_xxx_xxx_xxx 仅三方分成场景使用 +func (r *TaobaoTbkActivityInfoGetAPIRequest) SetSubPid(_subPid string) error { + r._subPid = _subPid + r.Set("sub_pid", _subPid) + return nil +} + +// SubPid Getter +func (r TaobaoTbkActivityInfoGetAPIRequest) GetSubPid() string { + return r._subPid +} +// RelationId Setter +// 渠道关系id +func (r *TaobaoTbkActivityInfoGetAPIRequest) SetRelationId(_relationId int64) error { + r._relationId = _relationId + r.Set("relation_id", _relationId) + return nil +} + +// RelationId Getter +func (r TaobaoTbkActivityInfoGetAPIRequest) GetRelationId() int64 { + return r._relationId +} +// ActivityMaterialId Setter +// 官方活动会场ID,从淘宝客后台“我要推广-活动推广”中获取 +func (r *TaobaoTbkActivityInfoGetAPIRequest) SetActivityMaterialId(_activityMaterialId string) error { + r._activityMaterialId = _activityMaterialId + r.Set("activity_material_id", _activityMaterialId) + return nil +} + +// ActivityMaterialId Getter +func (r TaobaoTbkActivityInfoGetAPIRequest) GetActivityMaterialId() string { + return r._activityMaterialId +} +// UnionId Setter +// 自定义输入串,英文和数字组成,长度不能大于12个字符,区分不同的推广渠道 +func (r *TaobaoTbkActivityInfoGetAPIRequest) SetUnionId(_unionId string) error { + r._unionId = _unionId + r.Set("union_id", _unionId) + return nil +} + +// UnionId Getter +func (r TaobaoTbkActivityInfoGetAPIRequest) GetUnionId() string { + return r._unionId +} diff --git a/model/tbk/TaobaoTbkActivityInfoGetAPIResponse.go b/model/tbk/TaobaoTbkActivityInfoGetAPIResponse.go new file mode 100644 index 0000000000..90f80e1a6b --- /dev/null +++ b/model/tbk/TaobaoTbkActivityInfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-官方活动转链 API返回值 +taobao.tbk.activity.info.get + +支持入参推广位和官方活动会场ID,获取活动信息和推广链接,包含推广长链接、短链接、淘口令、微信推广二维码地址等。改该API支持二方、三方类型的转链。官方活动会场ID,从淘宝客后台“我要推广-活动推广”中获取。 +*/ +type TaobaoTbkActivityInfoGetAPIResponse struct { + model.CommonResponse + TaobaoTbkActivityInfoGetAPIResponseModel +} + +// 淘宝客-推广者-官方活动转链 成功返回结果 +type TaobaoTbkActivityInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_activity_info_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Data *TaobaoTbkActivityInfoGetData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/tbk/TaobaoTbkActivityInfoGetResponse.go b/model/tbk/TaobaoTbkActivityInfoGetResponse.go deleted file mode 100644 index 1a197846ac..0000000000 --- a/model/tbk/TaobaoTbkActivityInfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝客-推广者-官方活动转链 API返回值 -taobao.tbk.activity.info.get - -支持入参推广位和官方活动会场ID,获取活动信息和推广链接,包含推广长链接、短链接、淘口令、微信推广二维码地址等。改该API支持二方、三方类型的转链。官方活动会场ID,从淘宝客后台“我要推广-活动推广”中获取。 -*/ -type TaobaoTbkActivityInfoGetAPIResponse struct { - model.CommonResponse - TaobaoTbkActivityInfoGetResponse -} - -// 淘宝客-推广者-官方活动转链 成功返回结果 -type TaobaoTbkActivityInfoGetResponse struct { - XMLName xml.Name `xml:"tbk_activity_info_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Data *TaobaoTbkActivityInfoGetData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/tbk/TaobaoTbkCartCouponExpireUserQueryAPIRequest.go b/model/tbk/TaobaoTbkCartCouponExpireUserQueryAPIRequest.go new file mode 100644 index 0000000000..4d554f4436 --- /dev/null +++ b/model/tbk/TaobaoTbkCartCouponExpireUserQueryAPIRequest.go @@ -0,0 +1,80 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +购物车催付优惠券到期查询用户信息 API请求 +taobao.tbk.cart.coupon.expire.user.query + +购物车催付根据对应规则查询用户信息。 +*/ +type TaobaoTbkCartCouponExpireUserQueryAPIRequest struct { + model.Params + // 规则ID,由接口提供方分配 + _ruleId string + // 每页大小 + _pageSize int64 + // 页码,从0开始 + _pageNum int64 +} + +// 初始化TaobaoTbkCartCouponExpireUserQueryAPIRequest对象 +func NewTaobaoTbkCartCouponExpireUserQueryRequest() *TaobaoTbkCartCouponExpireUserQueryAPIRequest{ + return &TaobaoTbkCartCouponExpireUserQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkCartCouponExpireUserQueryAPIRequest) GetApiMethodName() string { + return "taobao.tbk.cart.coupon.expire.user.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkCartCouponExpireUserQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RuleId Setter +// 规则ID,由接口提供方分配 +func (r *TaobaoTbkCartCouponExpireUserQueryAPIRequest) SetRuleId(_ruleId string) error { + r._ruleId = _ruleId + r.Set("rule_id", _ruleId) + return nil +} + +// RuleId Getter +func (r TaobaoTbkCartCouponExpireUserQueryAPIRequest) GetRuleId() string { + return r._ruleId +} +// PageSize Setter +// 每页大小 +func (r *TaobaoTbkCartCouponExpireUserQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTbkCartCouponExpireUserQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNum Setter +// 页码,从0开始 +func (r *TaobaoTbkCartCouponExpireUserQueryAPIRequest) SetPageNum(_pageNum int64) error { + r._pageNum = _pageNum + r.Set("page_num", _pageNum) + return nil +} + +// PageNum Getter +func (r TaobaoTbkCartCouponExpireUserQueryAPIRequest) GetPageNum() int64 { + return r._pageNum +} diff --git a/model/tbk/TaobaoTbkCartCouponExpireUserQueryAPIResponse.go b/model/tbk/TaobaoTbkCartCouponExpireUserQueryAPIResponse.go new file mode 100644 index 0000000000..d2d87acb6a --- /dev/null +++ b/model/tbk/TaobaoTbkCartCouponExpireUserQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +购物车催付优惠券到期查询用户信息 API返回值 +taobao.tbk.cart.coupon.expire.user.query + +购物车催付根据对应规则查询用户信息。 +*/ +type TaobaoTbkCartCouponExpireUserQueryAPIResponse struct { + model.CommonResponse + TaobaoTbkCartCouponExpireUserQueryAPIResponseModel +} + +// 购物车催付优惠券到期查询用户信息 成功返回结果 +type TaobaoTbkCartCouponExpireUserQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_cart_coupon_expire_user_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 用户规则信息集合 + UserRuleInfoList []UserRuleInfo `json:"user_rule_info_list,omitempty" xml:"user_rule_info_list>user_rule_info,omitempty"` +} diff --git a/model/tbk/TaobaoTbkCartCouponExpireUserQueryResponse.go b/model/tbk/TaobaoTbkCartCouponExpireUserQueryResponse.go deleted file mode 100644 index f65fa27f48..0000000000 --- a/model/tbk/TaobaoTbkCartCouponExpireUserQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -购物车催付优惠券到期查询用户信息 API返回值 -taobao.tbk.cart.coupon.expire.user.query - -购物车催付根据对应规则查询用户信息。 -*/ -type TaobaoTbkCartCouponExpireUserQueryAPIResponse struct { - model.CommonResponse - TaobaoTbkCartCouponExpireUserQueryResponse -} - -// 购物车催付优惠券到期查询用户信息 成功返回结果 -type TaobaoTbkCartCouponExpireUserQueryResponse struct { - XMLName xml.Name `xml:"tbk_cart_coupon_expire_user_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 用户规则信息集合 - UserRuleInfoList []UserRuleInfo `json:"user_rule_info_list,omitempty" xml:"user_rule_info_list>user_rule_info,omitempty"` -} diff --git a/model/tbk/TaobaoTbkCouponGetAPIRequest.go b/model/tbk/TaobaoTbkCouponGetAPIRequest.go new file mode 100644 index 0000000000..e1f2d50974 --- /dev/null +++ b/model/tbk/TaobaoTbkCouponGetAPIRequest.go @@ -0,0 +1,80 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-公用-阿里妈妈推广券详情查询 API请求 +taobao.tbk.coupon.get + +传入商品ID+券ID(券ID已知情况下),或者传入me参数,均可查询阿里妈妈推广券详细信息。 +*/ +type TaobaoTbkCouponGetAPIRequest struct { + model.Params + // 带券ID与商品ID的加密串 + _me string + // 商品ID + _itemId int64 + // 券ID + _activityId string +} + +// 初始化TaobaoTbkCouponGetAPIRequest对象 +func NewTaobaoTbkCouponGetRequest() *TaobaoTbkCouponGetAPIRequest{ + return &TaobaoTbkCouponGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkCouponGetAPIRequest) GetApiMethodName() string { + return "taobao.tbk.coupon.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkCouponGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Me Setter +// 带券ID与商品ID的加密串 +func (r *TaobaoTbkCouponGetAPIRequest) SetMe(_me string) error { + r._me = _me + r.Set("me", _me) + return nil +} + +// Me Getter +func (r TaobaoTbkCouponGetAPIRequest) GetMe() string { + return r._me +} +// ItemId Setter +// 商品ID +func (r *TaobaoTbkCouponGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoTbkCouponGetAPIRequest) GetItemId() int64 { + return r._itemId +} +// ActivityId Setter +// 券ID +func (r *TaobaoTbkCouponGetAPIRequest) SetActivityId(_activityId string) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoTbkCouponGetAPIRequest) GetActivityId() string { + return r._activityId +} diff --git a/model/tbk/TaobaoTbkCouponGetAPIResponse.go b/model/tbk/TaobaoTbkCouponGetAPIResponse.go new file mode 100644 index 0000000000..aa2f79b28e --- /dev/null +++ b/model/tbk/TaobaoTbkCouponGetAPIResponse.go @@ -0,0 +1,27 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-公用-阿里妈妈推广券详情查询 API返回值 +taobao.tbk.coupon.get + +传入商品ID+券ID(券ID已知情况下),或者传入me参数,均可查询阿里妈妈推广券详细信息。 +*/ +type TaobaoTbkCouponGetAPIResponse struct { + model.CommonResponse + TaobaoTbkCouponGetAPIResponseModel +} + +// 淘宝客-公用-阿里妈妈推广券详情查询 成功返回结果 +type TaobaoTbkCouponGetAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_coupon_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data *TaobaoTbkCouponGetMapData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/tbk/TaobaoTbkCouponGetResponse.go b/model/tbk/TaobaoTbkCouponGetResponse.go deleted file mode 100644 index f9dcb8ec3e..0000000000 --- a/model/tbk/TaobaoTbkCouponGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝客-公用-阿里妈妈推广券详情查询 API返回值 -taobao.tbk.coupon.get - -传入商品ID+券ID(券ID已知情况下),或者传入me参数,均可查询阿里妈妈推广券详细信息。 -*/ -type TaobaoTbkCouponGetAPIResponse struct { - model.CommonResponse - TaobaoTbkCouponGetResponse -} - -// 淘宝客-公用-阿里妈妈推广券详情查询 成功返回结果 -type TaobaoTbkCouponGetResponse struct { - XMLName xml.Name `xml:"tbk_coupon_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data *TaobaoTbkCouponGetMapData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/tbk/TaobaoTbkDgMaterialOptionalAPIRequest.go b/model/tbk/TaobaoTbkDgMaterialOptionalAPIRequest.go new file mode 100644 index 0000000000..499f9fdb1c --- /dev/null +++ b/model/tbk/TaobaoTbkDgMaterialOptionalAPIRequest.go @@ -0,0 +1,612 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-物料搜索 API请求 +taobao.tbk.dg.material.optional + +通用物料搜索API(导购) +*/ +type TaobaoTbkDgMaterialOptionalAPIRequest struct { + model.Params + // 商品筛选(特定媒体支持)-店铺dsr评分。筛选大于等于当前设置的店铺dsr评分的商品0-50000之间 + _startDsr int64 + // 页大小,默认20,1~100 + _pageSize int64 + // 第几页,默认:1 + _pageNo int64 + // 链接形式:1:PC,2:无线,默认:1 + _platform int64 + // 商品筛选-淘客佣金比率上限。如:1234表示12.34% + _endTkRate int64 + // 商品筛选-淘客佣金比率下限。如:1234表示12.34% + _startTkRate int64 + // 商品筛选-折扣价范围上限。单位:元 + _endPrice int64 + // 商品筛选-折扣价范围下限。单位:元 + _startPrice int64 + // 商品筛选-是否海外商品。true表示属于海外商品,false或不设置表示不限 + _isOverseas bool + // 商品筛选-是否天猫商品。true表示属于天猫商品,false或不设置表示不限 + _isTmall bool + // 排序_des(降序),排序_asc(升序),销量(total_sales),淘客佣金比率(tk_rate), 累计推广量(tk_total_sales),总支出佣金(tk_total_commi),价格(price),匹配分(match) + _sort string + // 商品筛选-所在地 + _itemloc string + // 商品筛选-后台类目ID。用,分割,最大10个,该ID可以通过taobao.itemcats.get接口获取到 + _cat string + // 商品筛选-查询词 + _q string + // 不传时默认物料id=2836;如果直接对消费者投放,可使用官方个性化算法优化的搜索物料id=17004 + _materialId int64 + // 优惠券筛选-是否有优惠券。true表示该商品有优惠券,false或不设置表示不限 + _hasCoupon bool + // ip参数影响邮费获取,如果不传或者传入不准确,邮费无法精准提供 + _ip string + // mm_xxx_xxx_12345678三段式的最后一段数字 + _adzoneId int64 + // 商品筛选-是否包邮。true表示包邮,false或不设置表示不限 + _needFreeShipment bool + // 商品筛选-是否加入消费者保障。true表示加入,false或不设置表示不限 + _needPrepay bool + // 商品筛选(特定媒体支持)-成交转化是否高于行业均值。True表示大于等于,false或不设置表示不限 + _includePayRate30 bool + // 商品筛选-好评率是否高于行业均值。True表示大于等于,false或不设置表示不限 + _includeGoodRate bool + // 商品筛选(特定媒体支持)-退款率是否低于行业均值。True表示大于等于,false或不设置表示不限 + _includeRfdRate bool + // 商品筛选-牛皮癣程度。取值:1不限,2无,3轻微 + _npxLevel int64 + // 商品筛选-KA媒体淘客佣金比率上限。如:1234表示12.34% + _endKaTkRate int64 + // 商品筛选-KA媒体淘客佣金比率下限。如:1234表示12.34% + _startKaTkRate int64 + // 智能匹配-设备号加密类型:MD5 + _deviceEncrypt string + // 智能匹配-设备号加密后的值(MD5加密需32位小写) + _deviceValue string + // 智能匹配-设备号类型:IMEI,或者IDFA,或者UTDID(UTDID不支持MD5加密),或者OAID + _deviceType string + // 锁佣结束时间 + _lockRateEndTime int64 + // 锁佣开始时间 + _lockRateStartTime int64 + // 本地化业务入参-LBS信息-经度 + _longitude string + // 本地化业务入参-LBS信息-纬度 + _latitude string + // 本地化业务入参-LBS信息-国标城市码,仅支持单个请求,请求饿了么卡券物料时,该字段必填。 (详细城市ID见:https://mo.m.taobao.com/page_2020010315120200508) + _cityCode string + // 商家id,仅支持饿了么卡券商家ID,支持批量请求1-100以内,多个商家ID使用英文逗号分隔 + _sellerIds string + // 会员运营ID + _specialId string + // 渠道关系ID,仅适用于渠道推广场景 + _relationId string + // 本地化业务入参-分页唯一标识,非首页的请求必传,值为上一页返回结果中的page_result_key字段值 + _pageResultKey string + // 人群ID,仅适用于物料评估场景material_id=41377 + _ucrowdId int64 + // 物料评估-商品列表 + _ucrowdRankItems []Ucrowdrankitems + // 是否获取前N件佣金信息 0否,1是,其他值否 + _getTopnRate int64 +} + +// 初始化TaobaoTbkDgMaterialOptionalAPIRequest对象 +func NewTaobaoTbkDgMaterialOptionalRequest() *TaobaoTbkDgMaterialOptionalAPIRequest{ + return &TaobaoTbkDgMaterialOptionalAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetApiMethodName() string { + return "taobao.tbk.dg.material.optional" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartDsr Setter +// 商品筛选(特定媒体支持)-店铺dsr评分。筛选大于等于当前设置的店铺dsr评分的商品0-50000之间 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetStartDsr(_startDsr int64) error { + r._startDsr = _startDsr + r.Set("start_dsr", _startDsr) + return nil +} + +// StartDsr Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetStartDsr() int64 { + return r._startDsr +} +// PageSize Setter +// 页大小,默认20,1~100 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 第几页,默认:1 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// Platform Setter +// 链接形式:1:PC,2:无线,默认:1 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetPlatform(_platform int64) error { + r._platform = _platform + r.Set("platform", _platform) + return nil +} + +// Platform Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetPlatform() int64 { + return r._platform +} +// EndTkRate Setter +// 商品筛选-淘客佣金比率上限。如:1234表示12.34% +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetEndTkRate(_endTkRate int64) error { + r._endTkRate = _endTkRate + r.Set("end_tk_rate", _endTkRate) + return nil +} + +// EndTkRate Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetEndTkRate() int64 { + return r._endTkRate +} +// StartTkRate Setter +// 商品筛选-淘客佣金比率下限。如:1234表示12.34% +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetStartTkRate(_startTkRate int64) error { + r._startTkRate = _startTkRate + r.Set("start_tk_rate", _startTkRate) + return nil +} + +// StartTkRate Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetStartTkRate() int64 { + return r._startTkRate +} +// EndPrice Setter +// 商品筛选-折扣价范围上限。单位:元 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetEndPrice(_endPrice int64) error { + r._endPrice = _endPrice + r.Set("end_price", _endPrice) + return nil +} + +// EndPrice Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetEndPrice() int64 { + return r._endPrice +} +// StartPrice Setter +// 商品筛选-折扣价范围下限。单位:元 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetStartPrice(_startPrice int64) error { + r._startPrice = _startPrice + r.Set("start_price", _startPrice) + return nil +} + +// StartPrice Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetStartPrice() int64 { + return r._startPrice +} +// IsOverseas Setter +// 商品筛选-是否海外商品。true表示属于海外商品,false或不设置表示不限 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetIsOverseas(_isOverseas bool) error { + r._isOverseas = _isOverseas + r.Set("is_overseas", _isOverseas) + return nil +} + +// IsOverseas Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetIsOverseas() bool { + return r._isOverseas +} +// IsTmall Setter +// 商品筛选-是否天猫商品。true表示属于天猫商品,false或不设置表示不限 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetIsTmall(_isTmall bool) error { + r._isTmall = _isTmall + r.Set("is_tmall", _isTmall) + return nil +} + +// IsTmall Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetIsTmall() bool { + return r._isTmall +} +// Sort Setter +// 排序_des(降序),排序_asc(升序),销量(total_sales),淘客佣金比率(tk_rate), 累计推广量(tk_total_sales),总支出佣金(tk_total_commi),价格(price),匹配分(match) +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetSort(_sort string) error { + r._sort = _sort + r.Set("sort", _sort) + return nil +} + +// Sort Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetSort() string { + return r._sort +} +// Itemloc Setter +// 商品筛选-所在地 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetItemloc(_itemloc string) error { + r._itemloc = _itemloc + r.Set("itemloc", _itemloc) + return nil +} + +// Itemloc Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetItemloc() string { + return r._itemloc +} +// Cat Setter +// 商品筛选-后台类目ID。用,分割,最大10个,该ID可以通过taobao.itemcats.get接口获取到 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetCat(_cat string) error { + r._cat = _cat + r.Set("cat", _cat) + return nil +} + +// Cat Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetCat() string { + return r._cat +} +// Q Setter +// 商品筛选-查询词 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetQ(_q string) error { + r._q = _q + r.Set("q", _q) + return nil +} + +// Q Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetQ() string { + return r._q +} +// MaterialId Setter +// 不传时默认物料id=2836;如果直接对消费者投放,可使用官方个性化算法优化的搜索物料id=17004 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetMaterialId(_materialId int64) error { + r._materialId = _materialId + r.Set("material_id", _materialId) + return nil +} + +// MaterialId Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetMaterialId() int64 { + return r._materialId +} +// HasCoupon Setter +// 优惠券筛选-是否有优惠券。true表示该商品有优惠券,false或不设置表示不限 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetHasCoupon(_hasCoupon bool) error { + r._hasCoupon = _hasCoupon + r.Set("has_coupon", _hasCoupon) + return nil +} + +// HasCoupon Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetHasCoupon() bool { + return r._hasCoupon +} +// Ip Setter +// ip参数影响邮费获取,如果不传或者传入不准确,邮费无法精准提供 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetIp(_ip string) error { + r._ip = _ip + r.Set("ip", _ip) + return nil +} + +// Ip Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetIp() string { + return r._ip +} +// AdzoneId Setter +// mm_xxx_xxx_12345678三段式的最后一段数字 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetAdzoneId(_adzoneId int64) error { + r._adzoneId = _adzoneId + r.Set("adzone_id", _adzoneId) + return nil +} + +// AdzoneId Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetAdzoneId() int64 { + return r._adzoneId +} +// NeedFreeShipment Setter +// 商品筛选-是否包邮。true表示包邮,false或不设置表示不限 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetNeedFreeShipment(_needFreeShipment bool) error { + r._needFreeShipment = _needFreeShipment + r.Set("need_free_shipment", _needFreeShipment) + return nil +} + +// NeedFreeShipment Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetNeedFreeShipment() bool { + return r._needFreeShipment +} +// NeedPrepay Setter +// 商品筛选-是否加入消费者保障。true表示加入,false或不设置表示不限 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetNeedPrepay(_needPrepay bool) error { + r._needPrepay = _needPrepay + r.Set("need_prepay", _needPrepay) + return nil +} + +// NeedPrepay Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetNeedPrepay() bool { + return r._needPrepay +} +// IncludePayRate30 Setter +// 商品筛选(特定媒体支持)-成交转化是否高于行业均值。True表示大于等于,false或不设置表示不限 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetIncludePayRate30(_includePayRate30 bool) error { + r._includePayRate30 = _includePayRate30 + r.Set("include_pay_rate_30", _includePayRate30) + return nil +} + +// IncludePayRate30 Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetIncludePayRate30() bool { + return r._includePayRate30 +} +// IncludeGoodRate Setter +// 商品筛选-好评率是否高于行业均值。True表示大于等于,false或不设置表示不限 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetIncludeGoodRate(_includeGoodRate bool) error { + r._includeGoodRate = _includeGoodRate + r.Set("include_good_rate", _includeGoodRate) + return nil +} + +// IncludeGoodRate Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetIncludeGoodRate() bool { + return r._includeGoodRate +} +// IncludeRfdRate Setter +// 商品筛选(特定媒体支持)-退款率是否低于行业均值。True表示大于等于,false或不设置表示不限 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetIncludeRfdRate(_includeRfdRate bool) error { + r._includeRfdRate = _includeRfdRate + r.Set("include_rfd_rate", _includeRfdRate) + return nil +} + +// IncludeRfdRate Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetIncludeRfdRate() bool { + return r._includeRfdRate +} +// NpxLevel Setter +// 商品筛选-牛皮癣程度。取值:1不限,2无,3轻微 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetNpxLevel(_npxLevel int64) error { + r._npxLevel = _npxLevel + r.Set("npx_level", _npxLevel) + return nil +} + +// NpxLevel Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetNpxLevel() int64 { + return r._npxLevel +} +// EndKaTkRate Setter +// 商品筛选-KA媒体淘客佣金比率上限。如:1234表示12.34% +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetEndKaTkRate(_endKaTkRate int64) error { + r._endKaTkRate = _endKaTkRate + r.Set("end_ka_tk_rate", _endKaTkRate) + return nil +} + +// EndKaTkRate Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetEndKaTkRate() int64 { + return r._endKaTkRate +} +// StartKaTkRate Setter +// 商品筛选-KA媒体淘客佣金比率下限。如:1234表示12.34% +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetStartKaTkRate(_startKaTkRate int64) error { + r._startKaTkRate = _startKaTkRate + r.Set("start_ka_tk_rate", _startKaTkRate) + return nil +} + +// StartKaTkRate Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetStartKaTkRate() int64 { + return r._startKaTkRate +} +// DeviceEncrypt Setter +// 智能匹配-设备号加密类型:MD5 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetDeviceEncrypt(_deviceEncrypt string) error { + r._deviceEncrypt = _deviceEncrypt + r.Set("device_encrypt", _deviceEncrypt) + return nil +} + +// DeviceEncrypt Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetDeviceEncrypt() string { + return r._deviceEncrypt +} +// DeviceValue Setter +// 智能匹配-设备号加密后的值(MD5加密需32位小写) +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetDeviceValue(_deviceValue string) error { + r._deviceValue = _deviceValue + r.Set("device_value", _deviceValue) + return nil +} + +// DeviceValue Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetDeviceValue() string { + return r._deviceValue +} +// DeviceType Setter +// 智能匹配-设备号类型:IMEI,或者IDFA,或者UTDID(UTDID不支持MD5加密),或者OAID +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetDeviceType(_deviceType string) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetDeviceType() string { + return r._deviceType +} +// LockRateEndTime Setter +// 锁佣结束时间 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetLockRateEndTime(_lockRateEndTime int64) error { + r._lockRateEndTime = _lockRateEndTime + r.Set("lock_rate_end_time", _lockRateEndTime) + return nil +} + +// LockRateEndTime Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetLockRateEndTime() int64 { + return r._lockRateEndTime +} +// LockRateStartTime Setter +// 锁佣开始时间 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetLockRateStartTime(_lockRateStartTime int64) error { + r._lockRateStartTime = _lockRateStartTime + r.Set("lock_rate_start_time", _lockRateStartTime) + return nil +} + +// LockRateStartTime Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetLockRateStartTime() int64 { + return r._lockRateStartTime +} +// Longitude Setter +// 本地化业务入参-LBS信息-经度 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetLongitude() string { + return r._longitude +} +// Latitude Setter +// 本地化业务入参-LBS信息-纬度 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetLatitude() string { + return r._latitude +} +// CityCode Setter +// 本地化业务入参-LBS信息-国标城市码,仅支持单个请求,请求饿了么卡券物料时,该字段必填。 (详细城市ID见:https://mo.m.taobao.com/page_2020010315120200508) +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetCityCode(_cityCode string) error { + r._cityCode = _cityCode + r.Set("city_code", _cityCode) + return nil +} + +// CityCode Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetCityCode() string { + return r._cityCode +} +// SellerIds Setter +// 商家id,仅支持饿了么卡券商家ID,支持批量请求1-100以内,多个商家ID使用英文逗号分隔 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetSellerIds(_sellerIds string) error { + r._sellerIds = _sellerIds + r.Set("seller_ids", _sellerIds) + return nil +} + +// SellerIds Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetSellerIds() string { + return r._sellerIds +} +// SpecialId Setter +// 会员运营ID +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetSpecialId(_specialId string) error { + r._specialId = _specialId + r.Set("special_id", _specialId) + return nil +} + +// SpecialId Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetSpecialId() string { + return r._specialId +} +// RelationId Setter +// 渠道关系ID,仅适用于渠道推广场景 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetRelationId(_relationId string) error { + r._relationId = _relationId + r.Set("relation_id", _relationId) + return nil +} + +// RelationId Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetRelationId() string { + return r._relationId +} +// PageResultKey Setter +// 本地化业务入参-分页唯一标识,非首页的请求必传,值为上一页返回结果中的page_result_key字段值 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetPageResultKey(_pageResultKey string) error { + r._pageResultKey = _pageResultKey + r.Set("page_result_key", _pageResultKey) + return nil +} + +// PageResultKey Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetPageResultKey() string { + return r._pageResultKey +} +// UcrowdId Setter +// 人群ID,仅适用于物料评估场景material_id=41377 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetUcrowdId(_ucrowdId int64) error { + r._ucrowdId = _ucrowdId + r.Set("ucrowd_id", _ucrowdId) + return nil +} + +// UcrowdId Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetUcrowdId() int64 { + return r._ucrowdId +} +// UcrowdRankItems Setter +// 物料评估-商品列表 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetUcrowdRankItems(_ucrowdRankItems []Ucrowdrankitems) error { + r._ucrowdRankItems = _ucrowdRankItems + r.Set("ucrowd_rank_items", _ucrowdRankItems) + return nil +} + +// UcrowdRankItems Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetUcrowdRankItems() []Ucrowdrankitems { + return r._ucrowdRankItems +} +// GetTopnRate Setter +// 是否获取前N件佣金信息 0否,1是,其他值否 +func (r *TaobaoTbkDgMaterialOptionalAPIRequest) SetGetTopnRate(_getTopnRate int64) error { + r._getTopnRate = _getTopnRate + r.Set("get_topn_rate", _getTopnRate) + return nil +} + +// GetTopnRate Getter +func (r TaobaoTbkDgMaterialOptionalAPIRequest) GetGetTopnRate() int64 { + return r._getTopnRate +} diff --git a/model/tbk/TaobaoTbkDgMaterialOptionalAPIResponse.go b/model/tbk/TaobaoTbkDgMaterialOptionalAPIResponse.go new file mode 100644 index 0000000000..6d06ab44f7 --- /dev/null +++ b/model/tbk/TaobaoTbkDgMaterialOptionalAPIResponse.go @@ -0,0 +1,31 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-物料搜索 API返回值 +taobao.tbk.dg.material.optional + +通用物料搜索API(导购) +*/ +type TaobaoTbkDgMaterialOptionalAPIResponse struct { + model.CommonResponse + TaobaoTbkDgMaterialOptionalAPIResponseModel +} + +// 淘宝客-推广者-物料搜索 成功返回结果 +type TaobaoTbkDgMaterialOptionalAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_dg_material_optional_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 搜索到符合条件的结果总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // resultList + ResultList []TaobaoTbkDgMaterialOptionalMapData `json:"result_list,omitempty" xml:"result_list>taobao_tbk_dg_material_optional_map_data,omitempty"` + // 本地化-lbs分页标识,请在下一次翻页时作为入参传入 + PageResultKey string `json:"page_result_key,omitempty" xml:"page_result_key,omitempty"` +} diff --git a/model/tbk/TaobaoTbkDgMaterialOptionalResponse.go b/model/tbk/TaobaoTbkDgMaterialOptionalResponse.go deleted file mode 100644 index 73be393ec6..0000000000 --- a/model/tbk/TaobaoTbkDgMaterialOptionalResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝客-推广者-物料搜索 API返回值 -taobao.tbk.dg.material.optional - -通用物料搜索API(导购) -*/ -type TaobaoTbkDgMaterialOptionalAPIResponse struct { - model.CommonResponse - TaobaoTbkDgMaterialOptionalResponse -} - -// 淘宝客-推广者-物料搜索 成功返回结果 -type TaobaoTbkDgMaterialOptionalResponse struct { - XMLName xml.Name `xml:"tbk_dg_material_optional_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 搜索到符合条件的结果总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // resultList - ResultList []TaobaoTbkDgMaterialOptionalMapData `json:"result_list,omitempty" xml:"result_list>taobao_tbk_dg_material_optional_map_data,omitempty"` - // 本地化-lbs分页标识,请在下一次翻页时作为入参传入 - PageResultKey string `json:"page_result_key,omitempty" xml:"page_result_key,omitempty"` -} diff --git a/model/tbk/TaobaoTbkDgNewuserOrderGetAPIRequest.go b/model/tbk/TaobaoTbkDgNewuserOrderGetAPIRequest.go new file mode 100644 index 0000000000..cb959fa30e --- /dev/null +++ b/model/tbk/TaobaoTbkDgNewuserOrderGetAPIRequest.go @@ -0,0 +1,122 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-新用户订单明细查询 API请求 +taobao.tbk.dg.newuser.order.get + +拉新API +*/ +type TaobaoTbkDgNewuserOrderGetAPIRequest struct { + model.Params + // 页大小,默认20,1~100 + _pageSize int64 + // mm_xxx_xxx_xxx的第三位 + _adzoneId int64 + // 页码,默认1 + _pageNo int64 + // 开始时间,当活动为淘宝活动,表示最早注册时间;当活动为支付宝活动,表示最早绑定时间;当活动为天猫活动,表示最早领取红包时间 + _startTime string + // 结束时间,当活动为淘宝活动,表示最晚结束时间;当活动为支付宝活动,表示最晚绑定时间;当活动为天猫活动,表示最晚领取红包的时间 + _endTime string + // 活动id, 活动名称与活动ID列表,请参见https://tbk.bbs.taobao.com/detail.html?appId=45301&postId=8599277 + _activityId string +} + +// 初始化TaobaoTbkDgNewuserOrderGetAPIRequest对象 +func NewTaobaoTbkDgNewuserOrderGetRequest() *TaobaoTbkDgNewuserOrderGetAPIRequest{ + return &TaobaoTbkDgNewuserOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkDgNewuserOrderGetAPIRequest) GetApiMethodName() string { + return "taobao.tbk.dg.newuser.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkDgNewuserOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageSize Setter +// 页大小,默认20,1~100 +func (r *TaobaoTbkDgNewuserOrderGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTbkDgNewuserOrderGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// AdzoneId Setter +// mm_xxx_xxx_xxx的第三位 +func (r *TaobaoTbkDgNewuserOrderGetAPIRequest) SetAdzoneId(_adzoneId int64) error { + r._adzoneId = _adzoneId + r.Set("adzone_id", _adzoneId) + return nil +} + +// AdzoneId Getter +func (r TaobaoTbkDgNewuserOrderGetAPIRequest) GetAdzoneId() int64 { + return r._adzoneId +} +// PageNo Setter +// 页码,默认1 +func (r *TaobaoTbkDgNewuserOrderGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoTbkDgNewuserOrderGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// StartTime Setter +// 开始时间,当活动为淘宝活动,表示最早注册时间;当活动为支付宝活动,表示最早绑定时间;当活动为天猫活动,表示最早领取红包时间 +func (r *TaobaoTbkDgNewuserOrderGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoTbkDgNewuserOrderGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束时间,当活动为淘宝活动,表示最晚结束时间;当活动为支付宝活动,表示最晚绑定时间;当活动为天猫活动,表示最晚领取红包的时间 +func (r *TaobaoTbkDgNewuserOrderGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoTbkDgNewuserOrderGetAPIRequest) GetEndTime() string { + return r._endTime +} +// ActivityId Setter +// 活动id, 活动名称与活动ID列表,请参见https://tbk.bbs.taobao.com/detail.html?appId=45301&postId=8599277 +func (r *TaobaoTbkDgNewuserOrderGetAPIRequest) SetActivityId(_activityId string) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoTbkDgNewuserOrderGetAPIRequest) GetActivityId() string { + return r._activityId +} diff --git a/model/tbk/TaobaoTbkDgNewuserOrderGetAPIResponse.go b/model/tbk/TaobaoTbkDgNewuserOrderGetAPIResponse.go new file mode 100644 index 0000000000..7f9fd31bf2 --- /dev/null +++ b/model/tbk/TaobaoTbkDgNewuserOrderGetAPIResponse.go @@ -0,0 +1,27 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-新用户订单明细查询 API返回值 +taobao.tbk.dg.newuser.order.get + +拉新API +*/ +type TaobaoTbkDgNewuserOrderGetAPIResponse struct { + model.CommonResponse + TaobaoTbkDgNewuserOrderGetAPIResponseModel +} + +// 淘宝客-推广者-新用户订单明细查询 成功返回结果 +type TaobaoTbkDgNewuserOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_dg_newuser_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Results *TaobaoTbkDgNewuserOrderGetResults `json:"results,omitempty" xml:"results,omitempty"` +} diff --git a/model/tbk/TaobaoTbkDgNewuserOrderGetResponse.go b/model/tbk/TaobaoTbkDgNewuserOrderGetResponse.go deleted file mode 100644 index 74c4e4bbb1..0000000000 --- a/model/tbk/TaobaoTbkDgNewuserOrderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝客-推广者-新用户订单明细查询 API返回值 -taobao.tbk.dg.newuser.order.get - -拉新API -*/ -type TaobaoTbkDgNewuserOrderGetAPIResponse struct { - model.CommonResponse - TaobaoTbkDgNewuserOrderGetResponse -} - -// 淘宝客-推广者-新用户订单明细查询 成功返回结果 -type TaobaoTbkDgNewuserOrderGetResponse struct { - XMLName xml.Name `xml:"tbk_dg_newuser_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Results *TaobaoTbkDgNewuserOrderGetResults `json:"results,omitempty" xml:"results,omitempty"` -} diff --git a/model/tbk/TaobaoTbkDgNewuserOrderSumAPIRequest.go b/model/tbk/TaobaoTbkDgNewuserOrderSumAPIRequest.go new file mode 100644 index 0000000000..d4d50725c3 --- /dev/null +++ b/model/tbk/TaobaoTbkDgNewuserOrderSumAPIRequest.go @@ -0,0 +1,122 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-拉新活动对应数据查询 API请求 +taobao.tbk.dg.newuser.order.sum + +拉新活动汇总API +*/ +type TaobaoTbkDgNewuserOrderSumAPIRequest struct { + model.Params + // 页大小,默认20,1~100 + _pageSize int64 + // mm_xxx_xxx_xxx的第三位 + _adzoneId int64 + // 页码,默认1 + _pageNo int64 + // mm_xxx_xxx_xxx的第二位 + _siteId int64 + // 活动id, 活动名称与活动ID列表,请参见https://tbk.bbs.taobao.com/detail.html?appId=45301&postId=8599277 + _activityId string + // 结算月份 + _settleMonth string +} + +// 初始化TaobaoTbkDgNewuserOrderSumAPIRequest对象 +func NewTaobaoTbkDgNewuserOrderSumRequest() *TaobaoTbkDgNewuserOrderSumAPIRequest{ + return &TaobaoTbkDgNewuserOrderSumAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkDgNewuserOrderSumAPIRequest) GetApiMethodName() string { + return "taobao.tbk.dg.newuser.order.sum" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkDgNewuserOrderSumAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageSize Setter +// 页大小,默认20,1~100 +func (r *TaobaoTbkDgNewuserOrderSumAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTbkDgNewuserOrderSumAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// AdzoneId Setter +// mm_xxx_xxx_xxx的第三位 +func (r *TaobaoTbkDgNewuserOrderSumAPIRequest) SetAdzoneId(_adzoneId int64) error { + r._adzoneId = _adzoneId + r.Set("adzone_id", _adzoneId) + return nil +} + +// AdzoneId Getter +func (r TaobaoTbkDgNewuserOrderSumAPIRequest) GetAdzoneId() int64 { + return r._adzoneId +} +// PageNo Setter +// 页码,默认1 +func (r *TaobaoTbkDgNewuserOrderSumAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoTbkDgNewuserOrderSumAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// SiteId Setter +// mm_xxx_xxx_xxx的第二位 +func (r *TaobaoTbkDgNewuserOrderSumAPIRequest) SetSiteId(_siteId int64) error { + r._siteId = _siteId + r.Set("site_id", _siteId) + return nil +} + +// SiteId Getter +func (r TaobaoTbkDgNewuserOrderSumAPIRequest) GetSiteId() int64 { + return r._siteId +} +// ActivityId Setter +// 活动id, 活动名称与活动ID列表,请参见https://tbk.bbs.taobao.com/detail.html?appId=45301&postId=8599277 +func (r *TaobaoTbkDgNewuserOrderSumAPIRequest) SetActivityId(_activityId string) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r TaobaoTbkDgNewuserOrderSumAPIRequest) GetActivityId() string { + return r._activityId +} +// SettleMonth Setter +// 结算月份 +func (r *TaobaoTbkDgNewuserOrderSumAPIRequest) SetSettleMonth(_settleMonth string) error { + r._settleMonth = _settleMonth + r.Set("settle_month", _settleMonth) + return nil +} + +// SettleMonth Getter +func (r TaobaoTbkDgNewuserOrderSumAPIRequest) GetSettleMonth() string { + return r._settleMonth +} diff --git a/model/tbk/TaobaoTbkDgNewuserOrderSumAPIResponse.go b/model/tbk/TaobaoTbkDgNewuserOrderSumAPIResponse.go new file mode 100644 index 0000000000..2049b834e5 --- /dev/null +++ b/model/tbk/TaobaoTbkDgNewuserOrderSumAPIResponse.go @@ -0,0 +1,27 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-拉新活动对应数据查询 API返回值 +taobao.tbk.dg.newuser.order.sum + +拉新活动汇总API +*/ +type TaobaoTbkDgNewuserOrderSumAPIResponse struct { + model.CommonResponse + TaobaoTbkDgNewuserOrderSumAPIResponseModel +} + +// 淘宝客-推广者-拉新活动对应数据查询 成功返回结果 +type TaobaoTbkDgNewuserOrderSumAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_dg_newuser_order_sum_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Results *TaobaoTbkDgNewuserOrderSumData `json:"results,omitempty" xml:"results,omitempty"` +} diff --git a/model/tbk/TaobaoTbkDgNewuserOrderSumResponse.go b/model/tbk/TaobaoTbkDgNewuserOrderSumResponse.go deleted file mode 100644 index 65d1ea3ec9..0000000000 --- a/model/tbk/TaobaoTbkDgNewuserOrderSumResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝客-推广者-拉新活动对应数据查询 API返回值 -taobao.tbk.dg.newuser.order.sum - -拉新活动汇总API -*/ -type TaobaoTbkDgNewuserOrderSumAPIResponse struct { - model.CommonResponse - TaobaoTbkDgNewuserOrderSumResponse -} - -// 淘宝客-推广者-拉新活动对应数据查询 成功返回结果 -type TaobaoTbkDgNewuserOrderSumResponse struct { - XMLName xml.Name `xml:"tbk_dg_newuser_order_sum_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Results *TaobaoTbkDgNewuserOrderSumData `json:"results,omitempty" xml:"results,omitempty"` -} diff --git a/model/tbk/TaobaoTbkDgOptimusMaterialAPIRequest.go b/model/tbk/TaobaoTbkDgOptimusMaterialAPIRequest.go new file mode 100644 index 0000000000..d437121e41 --- /dev/null +++ b/model/tbk/TaobaoTbkDgOptimusMaterialAPIRequest.go @@ -0,0 +1,192 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-物料精选 API请求 +taobao.tbk.dg.optimus.material + +支持入参对应的“推广位”和官方提供的“物料id”,获取指定物料信息和推广链接,还可入参用户信息提供智能推荐(需智能推荐请先前协议https://pub.alimama.com/fourth/protocol/common.htm?key=hangye_laxin) +*/ +type TaobaoTbkDgOptimusMaterialAPIRequest struct { + model.Params + // 页大小,默认20,1~100 + _pageSize int64 + // mm_xxx_xxx_xxx的第三位 + _adzoneId int64 + // 第几页,默认:1 + _pageNo int64 + // 官方的物料Id(详细物料id见:https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10628875?_k=gpov9a) + _materialId int64 + // 智能匹配-设备号加密后的值(MD5加密需32位小写),类型为OAID时传原始OAID值 + _deviceValue string + // 智能匹配-设备号加密类型:MD5,类型为OAID时不传 + _deviceEncrypt string + // 智能匹配-设备号类型:IMEI,或者IDFA,或者UTDID(UTDID不支持MD5加密),或者OAID + _deviceType string + // 内容专用-内容详情ID + _contentId int64 + // 内容专用-内容渠道信息 + _contentSource string + // 商品ID,用于相似商品推荐 + _itemId int64 + // 选品库投放id + _favoritesId string +} + +// 初始化TaobaoTbkDgOptimusMaterialAPIRequest对象 +func NewTaobaoTbkDgOptimusMaterialRequest() *TaobaoTbkDgOptimusMaterialAPIRequest{ + return &TaobaoTbkDgOptimusMaterialAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkDgOptimusMaterialAPIRequest) GetApiMethodName() string { + return "taobao.tbk.dg.optimus.material" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkDgOptimusMaterialAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageSize Setter +// 页大小,默认20,1~100 +func (r *TaobaoTbkDgOptimusMaterialAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTbkDgOptimusMaterialAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// AdzoneId Setter +// mm_xxx_xxx_xxx的第三位 +func (r *TaobaoTbkDgOptimusMaterialAPIRequest) SetAdzoneId(_adzoneId int64) error { + r._adzoneId = _adzoneId + r.Set("adzone_id", _adzoneId) + return nil +} + +// AdzoneId Getter +func (r TaobaoTbkDgOptimusMaterialAPIRequest) GetAdzoneId() int64 { + return r._adzoneId +} +// PageNo Setter +// 第几页,默认:1 +func (r *TaobaoTbkDgOptimusMaterialAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoTbkDgOptimusMaterialAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// MaterialId Setter +// 官方的物料Id(详细物料id见:https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10628875?_k=gpov9a) +func (r *TaobaoTbkDgOptimusMaterialAPIRequest) SetMaterialId(_materialId int64) error { + r._materialId = _materialId + r.Set("material_id", _materialId) + return nil +} + +// MaterialId Getter +func (r TaobaoTbkDgOptimusMaterialAPIRequest) GetMaterialId() int64 { + return r._materialId +} +// DeviceValue Setter +// 智能匹配-设备号加密后的值(MD5加密需32位小写),类型为OAID时传原始OAID值 +func (r *TaobaoTbkDgOptimusMaterialAPIRequest) SetDeviceValue(_deviceValue string) error { + r._deviceValue = _deviceValue + r.Set("device_value", _deviceValue) + return nil +} + +// DeviceValue Getter +func (r TaobaoTbkDgOptimusMaterialAPIRequest) GetDeviceValue() string { + return r._deviceValue +} +// DeviceEncrypt Setter +// 智能匹配-设备号加密类型:MD5,类型为OAID时不传 +func (r *TaobaoTbkDgOptimusMaterialAPIRequest) SetDeviceEncrypt(_deviceEncrypt string) error { + r._deviceEncrypt = _deviceEncrypt + r.Set("device_encrypt", _deviceEncrypt) + return nil +} + +// DeviceEncrypt Getter +func (r TaobaoTbkDgOptimusMaterialAPIRequest) GetDeviceEncrypt() string { + return r._deviceEncrypt +} +// DeviceType Setter +// 智能匹配-设备号类型:IMEI,或者IDFA,或者UTDID(UTDID不支持MD5加密),或者OAID +func (r *TaobaoTbkDgOptimusMaterialAPIRequest) SetDeviceType(_deviceType string) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r TaobaoTbkDgOptimusMaterialAPIRequest) GetDeviceType() string { + return r._deviceType +} +// ContentId Setter +// 内容专用-内容详情ID +func (r *TaobaoTbkDgOptimusMaterialAPIRequest) SetContentId(_contentId int64) error { + r._contentId = _contentId + r.Set("content_id", _contentId) + return nil +} + +// ContentId Getter +func (r TaobaoTbkDgOptimusMaterialAPIRequest) GetContentId() int64 { + return r._contentId +} +// ContentSource Setter +// 内容专用-内容渠道信息 +func (r *TaobaoTbkDgOptimusMaterialAPIRequest) SetContentSource(_contentSource string) error { + r._contentSource = _contentSource + r.Set("content_source", _contentSource) + return nil +} + +// ContentSource Getter +func (r TaobaoTbkDgOptimusMaterialAPIRequest) GetContentSource() string { + return r._contentSource +} +// ItemId Setter +// 商品ID,用于相似商品推荐 +func (r *TaobaoTbkDgOptimusMaterialAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoTbkDgOptimusMaterialAPIRequest) GetItemId() int64 { + return r._itemId +} +// FavoritesId Setter +// 选品库投放id +func (r *TaobaoTbkDgOptimusMaterialAPIRequest) SetFavoritesId(_favoritesId string) error { + r._favoritesId = _favoritesId + r.Set("favorites_id", _favoritesId) + return nil +} + +// FavoritesId Getter +func (r TaobaoTbkDgOptimusMaterialAPIRequest) GetFavoritesId() string { + return r._favoritesId +} diff --git a/model/tbk/TaobaoTbkDgOptimusMaterialAPIResponse.go b/model/tbk/TaobaoTbkDgOptimusMaterialAPIResponse.go new file mode 100644 index 0000000000..a2949ba020 --- /dev/null +++ b/model/tbk/TaobaoTbkDgOptimusMaterialAPIResponse.go @@ -0,0 +1,31 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-物料精选 API返回值 +taobao.tbk.dg.optimus.material + +支持入参对应的“推广位”和官方提供的“物料id”,获取指定物料信息和推广链接,还可入参用户信息提供智能推荐(需智能推荐请先前协议https://pub.alimama.com/fourth/protocol/common.htm?key=hangye_laxin) +*/ +type TaobaoTbkDgOptimusMaterialAPIResponse struct { + model.CommonResponse + TaobaoTbkDgOptimusMaterialAPIResponseModel +} + +// 淘宝客-推广者-物料精选 成功返回结果 +type TaobaoTbkDgOptimusMaterialAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_dg_optimus_material_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // resultList + ResultList []TaobaoTbkDgOptimusMaterialMapData `json:"result_list,omitempty" xml:"result_list>taobao_tbk_dg_optimus_material_map_data,omitempty"` + // 推荐信息-是否抄底 + IsDefault string `json:"is_default,omitempty" xml:"is_default,omitempty"` + // 商品总数-目前只有全品库商品查询有该字段 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/tbk/TaobaoTbkDgOptimusMaterialResponse.go b/model/tbk/TaobaoTbkDgOptimusMaterialResponse.go deleted file mode 100644 index a41476e61a..0000000000 --- a/model/tbk/TaobaoTbkDgOptimusMaterialResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝客-推广者-物料精选 API返回值 -taobao.tbk.dg.optimus.material - -支持入参对应的“推广位”和官方提供的“物料id”,获取指定物料信息和推广链接,还可入参用户信息提供智能推荐(需智能推荐请先前协议https://pub.alimama.com/fourth/protocol/common.htm?key=hangye_laxin) -*/ -type TaobaoTbkDgOptimusMaterialAPIResponse struct { - model.CommonResponse - TaobaoTbkDgOptimusMaterialResponse -} - -// 淘宝客-推广者-物料精选 成功返回结果 -type TaobaoTbkDgOptimusMaterialResponse struct { - XMLName xml.Name `xml:"tbk_dg_optimus_material_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // resultList - ResultList []TaobaoTbkDgOptimusMaterialMapData `json:"result_list,omitempty" xml:"result_list>taobao_tbk_dg_optimus_material_map_data,omitempty"` - // 推荐信息-是否抄底 - IsDefault string `json:"is_default,omitempty" xml:"is_default,omitempty"` - // 商品总数-目前只有全品库商品查询有该字段 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/tbk/TaobaoTbkDgOptimusPromotionAPIRequest.go b/model/tbk/TaobaoTbkDgOptimusPromotionAPIRequest.go new file mode 100644 index 0000000000..6b844741c1 --- /dev/null +++ b/model/tbk/TaobaoTbkDgOptimusPromotionAPIRequest.go @@ -0,0 +1,94 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-权益物料精选 API请求 +taobao.tbk.dg.optimus.promotion + +推广者使用。支持入参推广者对应的“推广位”和官方提供的“权益物料id”,获取指定权益物料。 +*/ +type TaobaoTbkDgOptimusPromotionAPIRequest struct { + model.Params + // 页大小,一次请求请限制在10以内 + _pageSize int64 + // 第几页,默认:1 + _pageNum int64 + // mm_xxx_xxx_xxx的第3段数字 + _adzoneId int64 + // 官方提供的权益物料Id。有价券-37104、大额店铺券-37116,更多权益物料id敬请期待! + _promotionId int64 +} + +// 初始化TaobaoTbkDgOptimusPromotionAPIRequest对象 +func NewTaobaoTbkDgOptimusPromotionRequest() *TaobaoTbkDgOptimusPromotionAPIRequest{ + return &TaobaoTbkDgOptimusPromotionAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkDgOptimusPromotionAPIRequest) GetApiMethodName() string { + return "taobao.tbk.dg.optimus.promotion" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkDgOptimusPromotionAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageSize Setter +// 页大小,一次请求请限制在10以内 +func (r *TaobaoTbkDgOptimusPromotionAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTbkDgOptimusPromotionAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNum Setter +// 第几页,默认:1 +func (r *TaobaoTbkDgOptimusPromotionAPIRequest) SetPageNum(_pageNum int64) error { + r._pageNum = _pageNum + r.Set("page_num", _pageNum) + return nil +} + +// PageNum Getter +func (r TaobaoTbkDgOptimusPromotionAPIRequest) GetPageNum() int64 { + return r._pageNum +} +// AdzoneId Setter +// mm_xxx_xxx_xxx的第3段数字 +func (r *TaobaoTbkDgOptimusPromotionAPIRequest) SetAdzoneId(_adzoneId int64) error { + r._adzoneId = _adzoneId + r.Set("adzone_id", _adzoneId) + return nil +} + +// AdzoneId Getter +func (r TaobaoTbkDgOptimusPromotionAPIRequest) GetAdzoneId() int64 { + return r._adzoneId +} +// PromotionId Setter +// 官方提供的权益物料Id。有价券-37104、大额店铺券-37116,更多权益物料id敬请期待! +func (r *TaobaoTbkDgOptimusPromotionAPIRequest) SetPromotionId(_promotionId int64) error { + r._promotionId = _promotionId + r.Set("promotion_id", _promotionId) + return nil +} + +// PromotionId Getter +func (r TaobaoTbkDgOptimusPromotionAPIRequest) GetPromotionId() int64 { + return r._promotionId +} diff --git a/model/tbk/TaobaoTbkDgOptimusPromotionAPIResponse.go b/model/tbk/TaobaoTbkDgOptimusPromotionAPIResponse.go new file mode 100644 index 0000000000..0ab57d9360 --- /dev/null +++ b/model/tbk/TaobaoTbkDgOptimusPromotionAPIResponse.go @@ -0,0 +1,27 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-权益物料精选 API返回值 +taobao.tbk.dg.optimus.promotion + +推广者使用。支持入参推广者对应的“推广位”和官方提供的“权益物料id”,获取指定权益物料。 +*/ +type TaobaoTbkDgOptimusPromotionAPIResponse struct { + model.CommonResponse + TaobaoTbkDgOptimusPromotionAPIResponseModel +} + +// 淘宝客-推广者-权益物料精选 成功返回结果 +type TaobaoTbkDgOptimusPromotionAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_dg_optimus_promotion_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // resultList + ResultList []TaobaoTbkDgOptimusPromotionMapData `json:"result_list,omitempty" xml:"result_list>taobao_tbk_dg_optimus_promotion_map_data,omitempty"` +} diff --git a/model/tbk/TaobaoTbkDgOptimusPromotionResponse.go b/model/tbk/TaobaoTbkDgOptimusPromotionResponse.go deleted file mode 100644 index b6b44ca841..0000000000 --- a/model/tbk/TaobaoTbkDgOptimusPromotionResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝客-推广者-权益物料精选 API返回值 -taobao.tbk.dg.optimus.promotion - -推广者使用。支持入参推广者对应的“推广位”和官方提供的“权益物料id”,获取指定权益物料。 -*/ -type TaobaoTbkDgOptimusPromotionAPIResponse struct { - model.CommonResponse - TaobaoTbkDgOptimusPromotionResponse -} - -// 淘宝客-推广者-权益物料精选 成功返回结果 -type TaobaoTbkDgOptimusPromotionResponse struct { - XMLName xml.Name `xml:"tbk_dg_optimus_promotion_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // resultList - ResultList []TaobaoTbkDgOptimusPromotionMapData `json:"result_list,omitempty" xml:"result_list>taobao_tbk_dg_optimus_promotion_map_data,omitempty"` -} diff --git a/model/tbk/TaobaoTbkDgPunishOrderGetAPIRequest.go b/model/tbk/TaobaoTbkDgPunishOrderGetAPIRequest.go new file mode 100644 index 0000000000..c69cb86363 --- /dev/null +++ b/model/tbk/TaobaoTbkDgPunishOrderGetAPIRequest.go @@ -0,0 +1,52 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-处罚订单查询 API请求 +taobao.tbk.dg.punish.order.get + +新增处罚订单查询API,提供媒体调用查询能力。这个是给媒体自己用的 +*/ +type TaobaoTbkDgPunishOrderGetAPIRequest struct { + model.Params + // 入参的对象 + _afOrderOption *TopApiAfOrderOption +} + +// 初始化TaobaoTbkDgPunishOrderGetAPIRequest对象 +func NewTaobaoTbkDgPunishOrderGetRequest() *TaobaoTbkDgPunishOrderGetAPIRequest{ + return &TaobaoTbkDgPunishOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkDgPunishOrderGetAPIRequest) GetApiMethodName() string { + return "taobao.tbk.dg.punish.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkDgPunishOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AfOrderOption Setter +// 入参的对象 +func (r *TaobaoTbkDgPunishOrderGetAPIRequest) SetAfOrderOption(_afOrderOption *TopApiAfOrderOption) error { + r._afOrderOption = _afOrderOption + r.Set("af_order_option", _afOrderOption) + return nil +} + +// AfOrderOption Getter +func (r TaobaoTbkDgPunishOrderGetAPIRequest) GetAfOrderOption() *TopApiAfOrderOption { + return r._afOrderOption +} diff --git a/model/tbk/TaobaoTbkDgPunishOrderGetAPIResponse.go b/model/tbk/TaobaoTbkDgPunishOrderGetAPIResponse.go new file mode 100644 index 0000000000..aff14280fb --- /dev/null +++ b/model/tbk/TaobaoTbkDgPunishOrderGetAPIResponse.go @@ -0,0 +1,27 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-处罚订单查询 API返回值 +taobao.tbk.dg.punish.order.get + +新增处罚订单查询API,提供媒体调用查询能力。这个是给媒体自己用的 +*/ +type TaobaoTbkDgPunishOrderGetAPIResponse struct { + model.CommonResponse + TaobaoTbkDgPunishOrderGetAPIResponseModel +} + +// 淘宝客-推广者-处罚订单查询 成功返回结果 +type TaobaoTbkDgPunishOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_dg_punish_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询的对象 + Result *TaobaoTbkDgPunishOrderGetRpcResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tbk/TaobaoTbkDgPunishOrderGetResponse.go b/model/tbk/TaobaoTbkDgPunishOrderGetResponse.go deleted file mode 100644 index f5e02dccef..0000000000 --- a/model/tbk/TaobaoTbkDgPunishOrderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝客-推广者-处罚订单查询 API返回值 -taobao.tbk.dg.punish.order.get - -新增处罚订单查询API,提供媒体调用查询能力。这个是给媒体自己用的 -*/ -type TaobaoTbkDgPunishOrderGetAPIResponse struct { - model.CommonResponse - TaobaoTbkDgPunishOrderGetResponse -} - -// 淘宝客-推广者-处罚订单查询 成功返回结果 -type TaobaoTbkDgPunishOrderGetResponse struct { - XMLName xml.Name `xml:"tbk_dg_punish_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询的对象 - Result *TaobaoTbkDgPunishOrderGetRpcResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tbk/TaobaoTbkDgVegasSendStatusAPIRequest.go b/model/tbk/TaobaoTbkDgVegasSendStatusAPIRequest.go new file mode 100644 index 0000000000..d030bff547 --- /dev/null +++ b/model/tbk/TaobaoTbkDgVegasSendStatusAPIRequest.go @@ -0,0 +1,122 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-超级红包领取状态查询 API请求 +taobao.tbk.dg.vegas.send.status + +淘宝客传入用户标识的信息,查询该用户是否有当前阶段待核销的红包(淘客接入前需签署协议 https://pub.alimama.com/fourth/protocol/common.htm?key=hangye_laxin) +*/ +type TaobaoTbkDgVegasSendStatusAPIRequest struct { + model.Params + // 渠道管理id + _relationId string + // 会员运营id + _specialId string + // 加密后的值(ALIPAY_ID除外),需用MD5加密,32位小写 + _deviceValue string + // 入参类型(该模式下返回的结果为模糊匹配结果,和实际情况可能存在误差): 1. IMEI 2. IDFA 3. OAID 4. MOBILE 5. ALIPAY_ID + _deviceType string + // thor平台业务码, 1:coupon 超红 + _thorBizCode string + // 媒体pid + _pid string +} + +// 初始化TaobaoTbkDgVegasSendStatusAPIRequest对象 +func NewTaobaoTbkDgVegasSendStatusRequest() *TaobaoTbkDgVegasSendStatusAPIRequest{ + return &TaobaoTbkDgVegasSendStatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkDgVegasSendStatusAPIRequest) GetApiMethodName() string { + return "taobao.tbk.dg.vegas.send.status" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkDgVegasSendStatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RelationId Setter +// 渠道管理id +func (r *TaobaoTbkDgVegasSendStatusAPIRequest) SetRelationId(_relationId string) error { + r._relationId = _relationId + r.Set("relation_id", _relationId) + return nil +} + +// RelationId Getter +func (r TaobaoTbkDgVegasSendStatusAPIRequest) GetRelationId() string { + return r._relationId +} +// SpecialId Setter +// 会员运营id +func (r *TaobaoTbkDgVegasSendStatusAPIRequest) SetSpecialId(_specialId string) error { + r._specialId = _specialId + r.Set("special_id", _specialId) + return nil +} + +// SpecialId Getter +func (r TaobaoTbkDgVegasSendStatusAPIRequest) GetSpecialId() string { + return r._specialId +} +// DeviceValue Setter +// 加密后的值(ALIPAY_ID除外),需用MD5加密,32位小写 +func (r *TaobaoTbkDgVegasSendStatusAPIRequest) SetDeviceValue(_deviceValue string) error { + r._deviceValue = _deviceValue + r.Set("device_value", _deviceValue) + return nil +} + +// DeviceValue Getter +func (r TaobaoTbkDgVegasSendStatusAPIRequest) GetDeviceValue() string { + return r._deviceValue +} +// DeviceType Setter +// 入参类型(该模式下返回的结果为模糊匹配结果,和实际情况可能存在误差): 1. IMEI 2. IDFA 3. OAID 4. MOBILE 5. ALIPAY_ID +func (r *TaobaoTbkDgVegasSendStatusAPIRequest) SetDeviceType(_deviceType string) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r TaobaoTbkDgVegasSendStatusAPIRequest) GetDeviceType() string { + return r._deviceType +} +// ThorBizCode Setter +// thor平台业务码, 1:coupon 超红 +func (r *TaobaoTbkDgVegasSendStatusAPIRequest) SetThorBizCode(_thorBizCode string) error { + r._thorBizCode = _thorBizCode + r.Set("thor_biz_code", _thorBizCode) + return nil +} + +// ThorBizCode Getter +func (r TaobaoTbkDgVegasSendStatusAPIRequest) GetThorBizCode() string { + return r._thorBizCode +} +// Pid Setter +// 媒体pid +func (r *TaobaoTbkDgVegasSendStatusAPIRequest) SetPid(_pid string) error { + r._pid = _pid + r.Set("pid", _pid) + return nil +} + +// Pid Getter +func (r TaobaoTbkDgVegasSendStatusAPIRequest) GetPid() string { + return r._pid +} diff --git a/model/tbk/TaobaoTbkDgVegasSendStatusAPIResponse.go b/model/tbk/TaobaoTbkDgVegasSendStatusAPIResponse.go new file mode 100644 index 0000000000..812861c206 --- /dev/null +++ b/model/tbk/TaobaoTbkDgVegasSendStatusAPIResponse.go @@ -0,0 +1,29 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-超级红包领取状态查询 API返回值 +taobao.tbk.dg.vegas.send.status + +淘宝客传入用户标识的信息,查询该用户是否有当前阶段待核销的红包(淘客接入前需签署协议 https://pub.alimama.com/fourth/protocol/common.htm?key=hangye_laxin) +*/ +type TaobaoTbkDgVegasSendStatusAPIResponse struct { + model.CommonResponse + TaobaoTbkDgVegasSendStatusAPIResponseModel +} + +// 淘宝客-推广者-超级红包领取状态查询 成功返回结果 +type TaobaoTbkDgVegasSendStatusAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_dg_vegas_send_status_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果描述信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 返回结果封装对象 + Data *TaobaoTbkDgVegasSendStatusData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/tbk/TaobaoTbkDgVegasSendStatusResponse.go b/model/tbk/TaobaoTbkDgVegasSendStatusResponse.go deleted file mode 100644 index b8eae98435..0000000000 --- a/model/tbk/TaobaoTbkDgVegasSendStatusResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝客-推广者-超级红包领取状态查询 API返回值 -taobao.tbk.dg.vegas.send.status - -淘宝客传入用户标识的信息,查询该用户是否有当前阶段待核销的红包(淘客接入前需签署协议 https://pub.alimama.com/fourth/protocol/common.htm?key=hangye_laxin) -*/ -type TaobaoTbkDgVegasSendStatusAPIResponse struct { - model.CommonResponse - TaobaoTbkDgVegasSendStatusResponse -} - -// 淘宝客-推广者-超级红包领取状态查询 成功返回结果 -type TaobaoTbkDgVegasSendStatusResponse struct { - XMLName xml.Name `xml:"tbk_dg_vegas_send_status_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果描述信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 返回结果封装对象 - Data *TaobaoTbkDgVegasSendStatusData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/tbk/TaobaoTbkDgVegasTljCreateAPIRequest.go b/model/tbk/TaobaoTbkDgVegasTljCreateAPIRequest.go new file mode 100644 index 0000000000..6486179038 --- /dev/null +++ b/model/tbk/TaobaoTbkDgVegasTljCreateAPIRequest.go @@ -0,0 +1,234 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-淘礼金创建 API请求 +taobao.tbk.dg.vegas.tlj.create + +创建淘礼金 +*/ +type TaobaoTbkDgVegasTljCreateAPIRequest struct { + model.Params + // CPS佣金计划类型 + _campaignType string + // 妈妈广告位Id + _adzoneId int64 + // 宝贝id + _itemId int64 + // 淘礼金总个数 + _totalNum int64 + // 淘礼金名称,最大10个字符 + _name string + // 单用户累计中奖次数上限 + _userTotalWinNumLimit int64 + // 安全开关,若不进行安全校验,可能放大您的资损风险,请谨慎选择 + _securitySwitch bool + // 单个淘礼金面额,支持两位小数,单位元 + _perFace string + // 发放开始时间 + _sendStartTime string + // 发放截止时间 + _sendEndTime string + // 使用结束日期。如果是结束时间模式为相对时间,时间格式为1-7直接的整数, 例如,1(相对领取时间1天); 如果是绝对时间,格式为yyyy-MM-dd,例如,2019-01-29,表示到2019-01-29 23:59:59结束 + _useEndTime string + // 结束日期的模式,1:相对时间,2:绝对时间 + _useEndTimeMode int64 + // 使用开始日期。相对时间,无需填写,以用户领取时间作为使用开始时间。绝对时间,格式 yyyy-MM-dd,例如,2019-01-29,表示从2019-01-29 00:00:00 开始 + _useStartTime string + // 安全等级,0:适用于常规淘礼金投放场景;1:更高安全级别,适用于淘礼金面额偏大等安全性较高的淘礼金投放场景,可能导致更多用户拦截。security_switch为true,此字段不填写时,使用0作为默认安全级别。如果security_switch为false,不进行安全判断。 + _securityLevel int64 +} + +// 初始化TaobaoTbkDgVegasTljCreateAPIRequest对象 +func NewTaobaoTbkDgVegasTljCreateRequest() *TaobaoTbkDgVegasTljCreateAPIRequest{ + return &TaobaoTbkDgVegasTljCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkDgVegasTljCreateAPIRequest) GetApiMethodName() string { + return "taobao.tbk.dg.vegas.tlj.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkDgVegasTljCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampaignType Setter +// CPS佣金计划类型 +func (r *TaobaoTbkDgVegasTljCreateAPIRequest) SetCampaignType(_campaignType string) error { + r._campaignType = _campaignType + r.Set("campaign_type", _campaignType) + return nil +} + +// CampaignType Getter +func (r TaobaoTbkDgVegasTljCreateAPIRequest) GetCampaignType() string { + return r._campaignType +} +// AdzoneId Setter +// 妈妈广告位Id +func (r *TaobaoTbkDgVegasTljCreateAPIRequest) SetAdzoneId(_adzoneId int64) error { + r._adzoneId = _adzoneId + r.Set("adzone_id", _adzoneId) + return nil +} + +// AdzoneId Getter +func (r TaobaoTbkDgVegasTljCreateAPIRequest) GetAdzoneId() int64 { + return r._adzoneId +} +// ItemId Setter +// 宝贝id +func (r *TaobaoTbkDgVegasTljCreateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoTbkDgVegasTljCreateAPIRequest) GetItemId() int64 { + return r._itemId +} +// TotalNum Setter +// 淘礼金总个数 +func (r *TaobaoTbkDgVegasTljCreateAPIRequest) SetTotalNum(_totalNum int64) error { + r._totalNum = _totalNum + r.Set("total_num", _totalNum) + return nil +} + +// TotalNum Getter +func (r TaobaoTbkDgVegasTljCreateAPIRequest) GetTotalNum() int64 { + return r._totalNum +} +// Name Setter +// 淘礼金名称,最大10个字符 +func (r *TaobaoTbkDgVegasTljCreateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoTbkDgVegasTljCreateAPIRequest) GetName() string { + return r._name +} +// UserTotalWinNumLimit Setter +// 单用户累计中奖次数上限 +func (r *TaobaoTbkDgVegasTljCreateAPIRequest) SetUserTotalWinNumLimit(_userTotalWinNumLimit int64) error { + r._userTotalWinNumLimit = _userTotalWinNumLimit + r.Set("user_total_win_num_limit", _userTotalWinNumLimit) + return nil +} + +// UserTotalWinNumLimit Getter +func (r TaobaoTbkDgVegasTljCreateAPIRequest) GetUserTotalWinNumLimit() int64 { + return r._userTotalWinNumLimit +} +// SecuritySwitch Setter +// 安全开关,若不进行安全校验,可能放大您的资损风险,请谨慎选择 +func (r *TaobaoTbkDgVegasTljCreateAPIRequest) SetSecuritySwitch(_securitySwitch bool) error { + r._securitySwitch = _securitySwitch + r.Set("security_switch", _securitySwitch) + return nil +} + +// SecuritySwitch Getter +func (r TaobaoTbkDgVegasTljCreateAPIRequest) GetSecuritySwitch() bool { + return r._securitySwitch +} +// PerFace Setter +// 单个淘礼金面额,支持两位小数,单位元 +func (r *TaobaoTbkDgVegasTljCreateAPIRequest) SetPerFace(_perFace string) error { + r._perFace = _perFace + r.Set("per_face", _perFace) + return nil +} + +// PerFace Getter +func (r TaobaoTbkDgVegasTljCreateAPIRequest) GetPerFace() string { + return r._perFace +} +// SendStartTime Setter +// 发放开始时间 +func (r *TaobaoTbkDgVegasTljCreateAPIRequest) SetSendStartTime(_sendStartTime string) error { + r._sendStartTime = _sendStartTime + r.Set("send_start_time", _sendStartTime) + return nil +} + +// SendStartTime Getter +func (r TaobaoTbkDgVegasTljCreateAPIRequest) GetSendStartTime() string { + return r._sendStartTime +} +// SendEndTime Setter +// 发放截止时间 +func (r *TaobaoTbkDgVegasTljCreateAPIRequest) SetSendEndTime(_sendEndTime string) error { + r._sendEndTime = _sendEndTime + r.Set("send_end_time", _sendEndTime) + return nil +} + +// SendEndTime Getter +func (r TaobaoTbkDgVegasTljCreateAPIRequest) GetSendEndTime() string { + return r._sendEndTime +} +// UseEndTime Setter +// 使用结束日期。如果是结束时间模式为相对时间,时间格式为1-7直接的整数, 例如,1(相对领取时间1天); 如果是绝对时间,格式为yyyy-MM-dd,例如,2019-01-29,表示到2019-01-29 23:59:59结束 +func (r *TaobaoTbkDgVegasTljCreateAPIRequest) SetUseEndTime(_useEndTime string) error { + r._useEndTime = _useEndTime + r.Set("use_end_time", _useEndTime) + return nil +} + +// UseEndTime Getter +func (r TaobaoTbkDgVegasTljCreateAPIRequest) GetUseEndTime() string { + return r._useEndTime +} +// UseEndTimeMode Setter +// 结束日期的模式,1:相对时间,2:绝对时间 +func (r *TaobaoTbkDgVegasTljCreateAPIRequest) SetUseEndTimeMode(_useEndTimeMode int64) error { + r._useEndTimeMode = _useEndTimeMode + r.Set("use_end_time_mode", _useEndTimeMode) + return nil +} + +// UseEndTimeMode Getter +func (r TaobaoTbkDgVegasTljCreateAPIRequest) GetUseEndTimeMode() int64 { + return r._useEndTimeMode +} +// UseStartTime Setter +// 使用开始日期。相对时间,无需填写,以用户领取时间作为使用开始时间。绝对时间,格式 yyyy-MM-dd,例如,2019-01-29,表示从2019-01-29 00:00:00 开始 +func (r *TaobaoTbkDgVegasTljCreateAPIRequest) SetUseStartTime(_useStartTime string) error { + r._useStartTime = _useStartTime + r.Set("use_start_time", _useStartTime) + return nil +} + +// UseStartTime Getter +func (r TaobaoTbkDgVegasTljCreateAPIRequest) GetUseStartTime() string { + return r._useStartTime +} +// SecurityLevel Setter +// 安全等级,0:适用于常规淘礼金投放场景;1:更高安全级别,适用于淘礼金面额偏大等安全性较高的淘礼金投放场景,可能导致更多用户拦截。security_switch为true,此字段不填写时,使用0作为默认安全级别。如果security_switch为false,不进行安全判断。 +func (r *TaobaoTbkDgVegasTljCreateAPIRequest) SetSecurityLevel(_securityLevel int64) error { + r._securityLevel = _securityLevel + r.Set("security_level", _securityLevel) + return nil +} + +// SecurityLevel Getter +func (r TaobaoTbkDgVegasTljCreateAPIRequest) GetSecurityLevel() int64 { + return r._securityLevel +} diff --git a/model/tbk/TaobaoTbkDgVegasTljCreateAPIResponse.go b/model/tbk/TaobaoTbkDgVegasTljCreateAPIResponse.go new file mode 100644 index 0000000000..ec319ae724 --- /dev/null +++ b/model/tbk/TaobaoTbkDgVegasTljCreateAPIResponse.go @@ -0,0 +1,27 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-淘礼金创建 API返回值 +taobao.tbk.dg.vegas.tlj.create + +创建淘礼金 +*/ +type TaobaoTbkDgVegasTljCreateAPIResponse struct { + model.CommonResponse + TaobaoTbkDgVegasTljCreateAPIResponseModel +} + +// 淘宝客-推广者-淘礼金创建 成功返回结果 +type TaobaoTbkDgVegasTljCreateAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_dg_vegas_tlj_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoTbkDgVegasTljCreateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tbk/TaobaoTbkDgVegasTljCreateResponse.go b/model/tbk/TaobaoTbkDgVegasTljCreateResponse.go deleted file mode 100644 index bb9c1a2cb1..0000000000 --- a/model/tbk/TaobaoTbkDgVegasTljCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝客-推广者-淘礼金创建 API返回值 -taobao.tbk.dg.vegas.tlj.create - -创建淘礼金 -*/ -type TaobaoTbkDgVegasTljCreateAPIResponse struct { - model.CommonResponse - TaobaoTbkDgVegasTljCreateResponse -} - -// 淘宝客-推广者-淘礼金创建 成功返回结果 -type TaobaoTbkDgVegasTljCreateResponse struct { - XMLName xml.Name `xml:"tbk_dg_vegas_tlj_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoTbkDgVegasTljCreateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tbk/TaobaoTbkDgVegasTljInstanceReportAPIRequest.go b/model/tbk/TaobaoTbkDgVegasTljInstanceReportAPIRequest.go new file mode 100644 index 0000000000..a0a185d4d4 --- /dev/null +++ b/model/tbk/TaobaoTbkDgVegasTljInstanceReportAPIRequest.go @@ -0,0 +1,52 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-淘礼金发放及使用报表 API请求 +taobao.tbk.dg.vegas.tlj.instance.report + +淘礼金实例维度相关报表数据查询 +*/ +type TaobaoTbkDgVegasTljInstanceReportAPIRequest struct { + model.Params + // 实例ID + _rightsId string +} + +// 初始化TaobaoTbkDgVegasTljInstanceReportAPIRequest对象 +func NewTaobaoTbkDgVegasTljInstanceReportRequest() *TaobaoTbkDgVegasTljInstanceReportAPIRequest{ + return &TaobaoTbkDgVegasTljInstanceReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkDgVegasTljInstanceReportAPIRequest) GetApiMethodName() string { + return "taobao.tbk.dg.vegas.tlj.instance.report" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkDgVegasTljInstanceReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RightsId Setter +// 实例ID +func (r *TaobaoTbkDgVegasTljInstanceReportAPIRequest) SetRightsId(_rightsId string) error { + r._rightsId = _rightsId + r.Set("rights_id", _rightsId) + return nil +} + +// RightsId Getter +func (r TaobaoTbkDgVegasTljInstanceReportAPIRequest) GetRightsId() string { + return r._rightsId +} diff --git a/model/tbk/TaobaoTbkDgVegasTljInstanceReportAPIResponse.go b/model/tbk/TaobaoTbkDgVegasTljInstanceReportAPIResponse.go new file mode 100644 index 0000000000..55f4221230 --- /dev/null +++ b/model/tbk/TaobaoTbkDgVegasTljInstanceReportAPIResponse.go @@ -0,0 +1,27 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-淘礼金发放及使用报表 API返回值 +taobao.tbk.dg.vegas.tlj.instance.report + +淘礼金实例维度相关报表数据查询 +*/ +type TaobaoTbkDgVegasTljInstanceReportAPIResponse struct { + model.CommonResponse + TaobaoTbkDgVegasTljInstanceReportAPIResponseModel +} + +// 淘宝客-推广者-淘礼金发放及使用报表 成功返回结果 +type TaobaoTbkDgVegasTljInstanceReportAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_dg_vegas_tlj_instance_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoTbkDgVegasTljInstanceReportResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tbk/TaobaoTbkDgVegasTljInstanceReportResponse.go b/model/tbk/TaobaoTbkDgVegasTljInstanceReportResponse.go deleted file mode 100644 index c039436d25..0000000000 --- a/model/tbk/TaobaoTbkDgVegasTljInstanceReportResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝客-推广者-淘礼金发放及使用报表 API返回值 -taobao.tbk.dg.vegas.tlj.instance.report - -淘礼金实例维度相关报表数据查询 -*/ -type TaobaoTbkDgVegasTljInstanceReportAPIResponse struct { - model.CommonResponse - TaobaoTbkDgVegasTljInstanceReportResponse -} - -// 淘宝客-推广者-淘礼金发放及使用报表 成功返回结果 -type TaobaoTbkDgVegasTljInstanceReportResponse struct { - XMLName xml.Name `xml:"tbk_dg_vegas_tlj_instance_report_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoTbkDgVegasTljInstanceReportResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tbk/TaobaoTbkItemInfoGetAPIRequest.go b/model/tbk/TaobaoTbkItemInfoGetAPIRequest.go new file mode 100644 index 0000000000..b79cca8d1a --- /dev/null +++ b/model/tbk/TaobaoTbkItemInfoGetAPIRequest.go @@ -0,0 +1,80 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-公用-淘宝客商品详情查询(简版) API请求 +taobao.tbk.item.info.get + +淘宝客商品详情查询(简版) +*/ +type TaobaoTbkItemInfoGetAPIRequest struct { + model.Params + // 商品ID串,用,分割,最大40个 + _numIids string + // 链接形式:1:PC,2:无线,默认:1 + _platform int64 + // ip地址,影响邮费获取,如果不传或者传入不准确,邮费无法精准提供 + _ip string +} + +// 初始化TaobaoTbkItemInfoGetAPIRequest对象 +func NewTaobaoTbkItemInfoGetRequest() *TaobaoTbkItemInfoGetAPIRequest{ + return &TaobaoTbkItemInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkItemInfoGetAPIRequest) GetApiMethodName() string { + return "taobao.tbk.item.info.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkItemInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NumIids Setter +// 商品ID串,用,分割,最大40个 +func (r *TaobaoTbkItemInfoGetAPIRequest) SetNumIids(_numIids string) error { + r._numIids = _numIids + r.Set("num_iids", _numIids) + return nil +} + +// NumIids Getter +func (r TaobaoTbkItemInfoGetAPIRequest) GetNumIids() string { + return r._numIids +} +// Platform Setter +// 链接形式:1:PC,2:无线,默认:1 +func (r *TaobaoTbkItemInfoGetAPIRequest) SetPlatform(_platform int64) error { + r._platform = _platform + r.Set("platform", _platform) + return nil +} + +// Platform Getter +func (r TaobaoTbkItemInfoGetAPIRequest) GetPlatform() int64 { + return r._platform +} +// Ip Setter +// ip地址,影响邮费获取,如果不传或者传入不准确,邮费无法精准提供 +func (r *TaobaoTbkItemInfoGetAPIRequest) SetIp(_ip string) error { + r._ip = _ip + r.Set("ip", _ip) + return nil +} + +// Ip Getter +func (r TaobaoTbkItemInfoGetAPIRequest) GetIp() string { + return r._ip +} diff --git a/model/tbk/TaobaoTbkItemInfoGetAPIResponse.go b/model/tbk/TaobaoTbkItemInfoGetAPIResponse.go new file mode 100644 index 0000000000..6c6ae6b9f2 --- /dev/null +++ b/model/tbk/TaobaoTbkItemInfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-公用-淘宝客商品详情查询(简版) API返回值 +taobao.tbk.item.info.get + +淘宝客商品详情查询(简版) +*/ +type TaobaoTbkItemInfoGetAPIResponse struct { + model.CommonResponse + TaobaoTbkItemInfoGetAPIResponseModel +} + +// 淘宝客-公用-淘宝客商品详情查询(简版) 成功返回结果 +type TaobaoTbkItemInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_item_info_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 淘宝客商品 + Results []NTbkItem `json:"results,omitempty" xml:"results>n_tbk_item,omitempty"` +} diff --git a/model/tbk/TaobaoTbkItemInfoGetResponse.go b/model/tbk/TaobaoTbkItemInfoGetResponse.go deleted file mode 100644 index ff637498f2..0000000000 --- a/model/tbk/TaobaoTbkItemInfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝客-公用-淘宝客商品详情查询(简版) API返回值 -taobao.tbk.item.info.get - -淘宝客商品详情查询(简版) -*/ -type TaobaoTbkItemInfoGetAPIResponse struct { - model.CommonResponse - TaobaoTbkItemInfoGetResponse -} - -// 淘宝客-公用-淘宝客商品详情查询(简版) 成功返回结果 -type TaobaoTbkItemInfoGetResponse struct { - XMLName xml.Name `xml:"tbk_item_info_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 淘宝客商品 - Results []NTbkItem `json:"results,omitempty" xml:"results>n_tbk_item,omitempty"` -} diff --git a/model/tbk/TaobaoTbkScInvitecodeGetAPIRequest.go b/model/tbk/TaobaoTbkScInvitecodeGetAPIRequest.go new file mode 100644 index 0000000000..d3eb6ff1d9 --- /dev/null +++ b/model/tbk/TaobaoTbkScInvitecodeGetAPIRequest.go @@ -0,0 +1,80 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-公用-私域用户邀请码生成 API请求 +taobao.tbk.sc.invitecode.get + +私域用户管理(即渠道管理或会员运营管理)功能中,通过此API可生成淘宝客自身的邀请码。 +*/ +type TaobaoTbkScInvitecodeGetAPIRequest struct { + model.Params + // 渠道关系ID + _relationId int64 + // 渠道推广的物料类型 + _relationApp string + // 邀请码类型,1 - 渠道邀请,2 - 渠道裂变,3 -会员邀请 + _codeType int64 +} + +// 初始化TaobaoTbkScInvitecodeGetAPIRequest对象 +func NewTaobaoTbkScInvitecodeGetRequest() *TaobaoTbkScInvitecodeGetAPIRequest{ + return &TaobaoTbkScInvitecodeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkScInvitecodeGetAPIRequest) GetApiMethodName() string { + return "taobao.tbk.sc.invitecode.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkScInvitecodeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RelationId Setter +// 渠道关系ID +func (r *TaobaoTbkScInvitecodeGetAPIRequest) SetRelationId(_relationId int64) error { + r._relationId = _relationId + r.Set("relation_id", _relationId) + return nil +} + +// RelationId Getter +func (r TaobaoTbkScInvitecodeGetAPIRequest) GetRelationId() int64 { + return r._relationId +} +// RelationApp Setter +// 渠道推广的物料类型 +func (r *TaobaoTbkScInvitecodeGetAPIRequest) SetRelationApp(_relationApp string) error { + r._relationApp = _relationApp + r.Set("relation_app", _relationApp) + return nil +} + +// RelationApp Getter +func (r TaobaoTbkScInvitecodeGetAPIRequest) GetRelationApp() string { + return r._relationApp +} +// CodeType Setter +// 邀请码类型,1 - 渠道邀请,2 - 渠道裂变,3 -会员邀请 +func (r *TaobaoTbkScInvitecodeGetAPIRequest) SetCodeType(_codeType int64) error { + r._codeType = _codeType + r.Set("code_type", _codeType) + return nil +} + +// CodeType Getter +func (r TaobaoTbkScInvitecodeGetAPIRequest) GetCodeType() int64 { + return r._codeType +} diff --git a/model/tbk/TaobaoTbkScInvitecodeGetAPIResponse.go b/model/tbk/TaobaoTbkScInvitecodeGetAPIResponse.go new file mode 100644 index 0000000000..41e5f299ce --- /dev/null +++ b/model/tbk/TaobaoTbkScInvitecodeGetAPIResponse.go @@ -0,0 +1,27 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-公用-私域用户邀请码生成 API返回值 +taobao.tbk.sc.invitecode.get + +私域用户管理(即渠道管理或会员运营管理)功能中,通过此API可生成淘宝客自身的邀请码。 +*/ +type TaobaoTbkScInvitecodeGetAPIResponse struct { + model.CommonResponse + TaobaoTbkScInvitecodeGetAPIResponseModel +} + +// 淘宝客-公用-私域用户邀请码生成 成功返回结果 +type TaobaoTbkScInvitecodeGetAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_sc_invitecode_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data *TaobaoTbkScInvitecodeGetData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/tbk/TaobaoTbkScInvitecodeGetResponse.go b/model/tbk/TaobaoTbkScInvitecodeGetResponse.go deleted file mode 100644 index fa483e97b8..0000000000 --- a/model/tbk/TaobaoTbkScInvitecodeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝客-公用-私域用户邀请码生成 API返回值 -taobao.tbk.sc.invitecode.get - -私域用户管理(即渠道管理或会员运营管理)功能中,通过此API可生成淘宝客自身的邀请码。 -*/ -type TaobaoTbkScInvitecodeGetAPIResponse struct { - model.CommonResponse - TaobaoTbkScInvitecodeGetResponse -} - -// 淘宝客-公用-私域用户邀请码生成 成功返回结果 -type TaobaoTbkScInvitecodeGetResponse struct { - XMLName xml.Name `xml:"tbk_sc_invitecode_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data *TaobaoTbkScInvitecodeGetData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/tbk/TaobaoTbkScPublisherInfoGetAPIRequest.go b/model/tbk/TaobaoTbkScPublisherInfoGetAPIRequest.go new file mode 100644 index 0000000000..5eada17fdc --- /dev/null +++ b/model/tbk/TaobaoTbkScPublisherInfoGetAPIRequest.go @@ -0,0 +1,150 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-公用-私域用户备案信息查询 API请求 +taobao.tbk.sc.publisher.info.get + +查询已生成的渠道id或会员运营id的相关信息。 +*/ +type TaobaoTbkScPublisherInfoGetAPIRequest struct { + model.Params + // 类型,必选 1:渠道信息;2:会员信息 + _infoType int64 + // 渠道独占 - 渠道关系ID + _relationId int64 + // 第几页 + _pageNo int64 + // 每页大小 + _pageSize int64 + // 备案的场景:common(通用备案),etao(一淘备案),minietao(一淘小程序备案),offlineShop(线下门店备案),offlinePerson(线下个人备案)。如不填默认common。查询会员信息只需填写common即可 + _relationApp string + // 会员独占 - 会员运营ID + _specialId string + // 淘宝客外部用户标记,如自身系统账户ID;微信ID等 + _externalId string + // 1-微信、2-微博、3-抖音、4-快手、5-QQ,0-其他;默认为0 + _externalType int64 +} + +// 初始化TaobaoTbkScPublisherInfoGetAPIRequest对象 +func NewTaobaoTbkScPublisherInfoGetRequest() *TaobaoTbkScPublisherInfoGetAPIRequest{ + return &TaobaoTbkScPublisherInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkScPublisherInfoGetAPIRequest) GetApiMethodName() string { + return "taobao.tbk.sc.publisher.info.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkScPublisherInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InfoType Setter +// 类型,必选 1:渠道信息;2:会员信息 +func (r *TaobaoTbkScPublisherInfoGetAPIRequest) SetInfoType(_infoType int64) error { + r._infoType = _infoType + r.Set("info_type", _infoType) + return nil +} + +// InfoType Getter +func (r TaobaoTbkScPublisherInfoGetAPIRequest) GetInfoType() int64 { + return r._infoType +} +// RelationId Setter +// 渠道独占 - 渠道关系ID +func (r *TaobaoTbkScPublisherInfoGetAPIRequest) SetRelationId(_relationId int64) error { + r._relationId = _relationId + r.Set("relation_id", _relationId) + return nil +} + +// RelationId Getter +func (r TaobaoTbkScPublisherInfoGetAPIRequest) GetRelationId() int64 { + return r._relationId +} +// PageNo Setter +// 第几页 +func (r *TaobaoTbkScPublisherInfoGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoTbkScPublisherInfoGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页大小 +func (r *TaobaoTbkScPublisherInfoGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTbkScPublisherInfoGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// RelationApp Setter +// 备案的场景:common(通用备案),etao(一淘备案),minietao(一淘小程序备案),offlineShop(线下门店备案),offlinePerson(线下个人备案)。如不填默认common。查询会员信息只需填写common即可 +func (r *TaobaoTbkScPublisherInfoGetAPIRequest) SetRelationApp(_relationApp string) error { + r._relationApp = _relationApp + r.Set("relation_app", _relationApp) + return nil +} + +// RelationApp Getter +func (r TaobaoTbkScPublisherInfoGetAPIRequest) GetRelationApp() string { + return r._relationApp +} +// SpecialId Setter +// 会员独占 - 会员运营ID +func (r *TaobaoTbkScPublisherInfoGetAPIRequest) SetSpecialId(_specialId string) error { + r._specialId = _specialId + r.Set("special_id", _specialId) + return nil +} + +// SpecialId Getter +func (r TaobaoTbkScPublisherInfoGetAPIRequest) GetSpecialId() string { + return r._specialId +} +// ExternalId Setter +// 淘宝客外部用户标记,如自身系统账户ID;微信ID等 +func (r *TaobaoTbkScPublisherInfoGetAPIRequest) SetExternalId(_externalId string) error { + r._externalId = _externalId + r.Set("external_id", _externalId) + return nil +} + +// ExternalId Getter +func (r TaobaoTbkScPublisherInfoGetAPIRequest) GetExternalId() string { + return r._externalId +} +// ExternalType Setter +// 1-微信、2-微博、3-抖音、4-快手、5-QQ,0-其他;默认为0 +func (r *TaobaoTbkScPublisherInfoGetAPIRequest) SetExternalType(_externalType int64) error { + r._externalType = _externalType + r.Set("external_type", _externalType) + return nil +} + +// ExternalType Getter +func (r TaobaoTbkScPublisherInfoGetAPIRequest) GetExternalType() int64 { + return r._externalType +} diff --git a/model/tbk/TaobaoTbkScPublisherInfoGetAPIResponse.go b/model/tbk/TaobaoTbkScPublisherInfoGetAPIResponse.go new file mode 100644 index 0000000000..dc611e68e3 --- /dev/null +++ b/model/tbk/TaobaoTbkScPublisherInfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-公用-私域用户备案信息查询 API返回值 +taobao.tbk.sc.publisher.info.get + +查询已生成的渠道id或会员运营id的相关信息。 +*/ +type TaobaoTbkScPublisherInfoGetAPIResponse struct { + model.CommonResponse + TaobaoTbkScPublisherInfoGetAPIResponseModel +} + +// 淘宝客-公用-私域用户备案信息查询 成功返回结果 +type TaobaoTbkScPublisherInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_sc_publisher_info_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data *TaobaoTbkScPublisherInfoGetData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/tbk/TaobaoTbkScPublisherInfoGetResponse.go b/model/tbk/TaobaoTbkScPublisherInfoGetResponse.go deleted file mode 100644 index 808171993f..0000000000 --- a/model/tbk/TaobaoTbkScPublisherInfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝客-公用-私域用户备案信息查询 API返回值 -taobao.tbk.sc.publisher.info.get - -查询已生成的渠道id或会员运营id的相关信息。 -*/ -type TaobaoTbkScPublisherInfoGetAPIResponse struct { - model.CommonResponse - TaobaoTbkScPublisherInfoGetResponse -} - -// 淘宝客-公用-私域用户备案信息查询 成功返回结果 -type TaobaoTbkScPublisherInfoGetResponse struct { - XMLName xml.Name `xml:"tbk_sc_publisher_info_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data *TaobaoTbkScPublisherInfoGetData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/tbk/TaobaoTbkScPublisherInfoSaveAPIRequest.go b/model/tbk/TaobaoTbkScPublisherInfoSaveAPIRequest.go new file mode 100644 index 0000000000..e28fbe4673 --- /dev/null +++ b/model/tbk/TaobaoTbkScPublisherInfoSaveAPIRequest.go @@ -0,0 +1,136 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-公用-私域用户备案 API请求 +taobao.tbk.sc.publisher.info.save + +通过入参渠道管理或会员运营管理的邀请码,生成渠道id或会员运营id,完成渠道或会员的备案。 +*/ +type TaobaoTbkScPublisherInfoSaveAPIRequest struct { + model.Params + // 渠道备案 - 来源,取链接的来源 + _relationFrom string + // 渠道备案 - 线下场景信息,1 - 门店,2- 学校,3 - 工厂,4 - 其他 + _offlineScene string + // 渠道备案 - 线上场景信息,1 - 微信群,2- QQ群,3 - 其他 + _onlineScene string + // 淘宝客邀请渠道或会员的邀请码 + _inviterCode string + // 类型,必选 默认为1: + _infoType int64 + // 媒体侧渠道备注 + _note string + // 线下备案注册信息,字段包含: 电话号码(phoneNumber,必填),省(province,必填),市(city,必填),区县街道(location,必填),详细地址(detailAddress,必填),经营类型(career,线下个人必填),店铺类型(shopType,线下店铺必填),店铺名称(shopName,线下店铺必填),店铺证书类型(shopCertifyType,线下店铺选填),店铺证书编号(certifyNumber,线下店铺选填) + _registerInfo string +} + +// 初始化TaobaoTbkScPublisherInfoSaveAPIRequest对象 +func NewTaobaoTbkScPublisherInfoSaveRequest() *TaobaoTbkScPublisherInfoSaveAPIRequest{ + return &TaobaoTbkScPublisherInfoSaveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkScPublisherInfoSaveAPIRequest) GetApiMethodName() string { + return "taobao.tbk.sc.publisher.info.save" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkScPublisherInfoSaveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RelationFrom Setter +// 渠道备案 - 来源,取链接的来源 +func (r *TaobaoTbkScPublisherInfoSaveAPIRequest) SetRelationFrom(_relationFrom string) error { + r._relationFrom = _relationFrom + r.Set("relation_from", _relationFrom) + return nil +} + +// RelationFrom Getter +func (r TaobaoTbkScPublisherInfoSaveAPIRequest) GetRelationFrom() string { + return r._relationFrom +} +// OfflineScene Setter +// 渠道备案 - 线下场景信息,1 - 门店,2- 学校,3 - 工厂,4 - 其他 +func (r *TaobaoTbkScPublisherInfoSaveAPIRequest) SetOfflineScene(_offlineScene string) error { + r._offlineScene = _offlineScene + r.Set("offline_scene", _offlineScene) + return nil +} + +// OfflineScene Getter +func (r TaobaoTbkScPublisherInfoSaveAPIRequest) GetOfflineScene() string { + return r._offlineScene +} +// OnlineScene Setter +// 渠道备案 - 线上场景信息,1 - 微信群,2- QQ群,3 - 其他 +func (r *TaobaoTbkScPublisherInfoSaveAPIRequest) SetOnlineScene(_onlineScene string) error { + r._onlineScene = _onlineScene + r.Set("online_scene", _onlineScene) + return nil +} + +// OnlineScene Getter +func (r TaobaoTbkScPublisherInfoSaveAPIRequest) GetOnlineScene() string { + return r._onlineScene +} +// InviterCode Setter +// 淘宝客邀请渠道或会员的邀请码 +func (r *TaobaoTbkScPublisherInfoSaveAPIRequest) SetInviterCode(_inviterCode string) error { + r._inviterCode = _inviterCode + r.Set("inviter_code", _inviterCode) + return nil +} + +// InviterCode Getter +func (r TaobaoTbkScPublisherInfoSaveAPIRequest) GetInviterCode() string { + return r._inviterCode +} +// InfoType Setter +// 类型,必选 默认为1: +func (r *TaobaoTbkScPublisherInfoSaveAPIRequest) SetInfoType(_infoType int64) error { + r._infoType = _infoType + r.Set("info_type", _infoType) + return nil +} + +// InfoType Getter +func (r TaobaoTbkScPublisherInfoSaveAPIRequest) GetInfoType() int64 { + return r._infoType +} +// Note Setter +// 媒体侧渠道备注 +func (r *TaobaoTbkScPublisherInfoSaveAPIRequest) SetNote(_note string) error { + r._note = _note + r.Set("note", _note) + return nil +} + +// Note Getter +func (r TaobaoTbkScPublisherInfoSaveAPIRequest) GetNote() string { + return r._note +} +// RegisterInfo Setter +// 线下备案注册信息,字段包含: 电话号码(phoneNumber,必填),省(province,必填),市(city,必填),区县街道(location,必填),详细地址(detailAddress,必填),经营类型(career,线下个人必填),店铺类型(shopType,线下店铺必填),店铺名称(shopName,线下店铺必填),店铺证书类型(shopCertifyType,线下店铺选填),店铺证书编号(certifyNumber,线下店铺选填) +func (r *TaobaoTbkScPublisherInfoSaveAPIRequest) SetRegisterInfo(_registerInfo string) error { + r._registerInfo = _registerInfo + r.Set("register_info", _registerInfo) + return nil +} + +// RegisterInfo Getter +func (r TaobaoTbkScPublisherInfoSaveAPIRequest) GetRegisterInfo() string { + return r._registerInfo +} diff --git a/model/tbk/TaobaoTbkScPublisherInfoSaveAPIResponse.go b/model/tbk/TaobaoTbkScPublisherInfoSaveAPIResponse.go new file mode 100644 index 0000000000..2f96ae1432 --- /dev/null +++ b/model/tbk/TaobaoTbkScPublisherInfoSaveAPIResponse.go @@ -0,0 +1,27 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-公用-私域用户备案 API返回值 +taobao.tbk.sc.publisher.info.save + +通过入参渠道管理或会员运营管理的邀请码,生成渠道id或会员运营id,完成渠道或会员的备案。 +*/ +type TaobaoTbkScPublisherInfoSaveAPIResponse struct { + model.CommonResponse + TaobaoTbkScPublisherInfoSaveAPIResponseModel +} + +// 淘宝客-公用-私域用户备案 成功返回结果 +type TaobaoTbkScPublisherInfoSaveAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_sc_publisher_info_save_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data *TaobaoTbkScPublisherInfoSaveData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/tbk/TaobaoTbkScPublisherInfoSaveResponse.go b/model/tbk/TaobaoTbkScPublisherInfoSaveResponse.go deleted file mode 100644 index c4012c4d07..0000000000 --- a/model/tbk/TaobaoTbkScPublisherInfoSaveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝客-公用-私域用户备案 API返回值 -taobao.tbk.sc.publisher.info.save - -通过入参渠道管理或会员运营管理的邀请码,生成渠道id或会员运营id,完成渠道或会员的备案。 -*/ -type TaobaoTbkScPublisherInfoSaveAPIResponse struct { - model.CommonResponse - TaobaoTbkScPublisherInfoSaveResponse -} - -// 淘宝客-公用-私域用户备案 成功返回结果 -type TaobaoTbkScPublisherInfoSaveResponse struct { - XMLName xml.Name `xml:"tbk_sc_publisher_info_save_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data *TaobaoTbkScPublisherInfoSaveData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/tbk/TaobaoTbkShopGetAPIRequest.go b/model/tbk/TaobaoTbkShopGetAPIRequest.go new file mode 100644 index 0000000000..81fd3e75bf --- /dev/null +++ b/model/tbk/TaobaoTbkShopGetAPIRequest.go @@ -0,0 +1,248 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-店铺搜索 API请求 +taobao.tbk.shop.get + +淘宝客店铺查询 +*/ +type TaobaoTbkShopGetAPIRequest struct { + model.Params + // 需返回的字段列表 + _fields string + // 查询词 + _q string + // 排序_des(降序),排序_asc(升序),佣金比率(commission_rate), 商品数量(auction_count),销售总数量(total_auction) + _sort string + // 是否商城的店铺,设置为true表示该是属于淘宝商城的店铺,设置为false或不设置表示不判断这个属性 + _isTmall bool + // 信用等级下限,1~20 + _startCredit int64 + // 信用等级上限,1~20 + _endCredit int64 + // 淘客佣金比率下限,1~10000 + _startCommissionRate int64 + // 淘客佣金比率上限,1~10000 + _endCommissionRate int64 + // 店铺商品总数下限 + _startTotalAction int64 + // 店铺商品总数上限 + _endTotalAction int64 + // 累计推广商品下限 + _startAuctionCount int64 + // 累计推广商品上限 + _endAuctionCount int64 + // 链接形式:1:PC,2:无线,默认:1 + _platform int64 + // 第几页,默认1,1~100 + _pageNo int64 + // 页大小,默认20,1~100 + _pageSize int64 +} + +// 初始化TaobaoTbkShopGetAPIRequest对象 +func NewTaobaoTbkShopGetRequest() *TaobaoTbkShopGetAPIRequest{ + return &TaobaoTbkShopGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkShopGetAPIRequest) GetApiMethodName() string { + return "taobao.tbk.shop.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkShopGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需返回的字段列表 +func (r *TaobaoTbkShopGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoTbkShopGetAPIRequest) GetFields() string { + return r._fields +} +// Q Setter +// 查询词 +func (r *TaobaoTbkShopGetAPIRequest) SetQ(_q string) error { + r._q = _q + r.Set("q", _q) + return nil +} + +// Q Getter +func (r TaobaoTbkShopGetAPIRequest) GetQ() string { + return r._q +} +// Sort Setter +// 排序_des(降序),排序_asc(升序),佣金比率(commission_rate), 商品数量(auction_count),销售总数量(total_auction) +func (r *TaobaoTbkShopGetAPIRequest) SetSort(_sort string) error { + r._sort = _sort + r.Set("sort", _sort) + return nil +} + +// Sort Getter +func (r TaobaoTbkShopGetAPIRequest) GetSort() string { + return r._sort +} +// IsTmall Setter +// 是否商城的店铺,设置为true表示该是属于淘宝商城的店铺,设置为false或不设置表示不判断这个属性 +func (r *TaobaoTbkShopGetAPIRequest) SetIsTmall(_isTmall bool) error { + r._isTmall = _isTmall + r.Set("is_tmall", _isTmall) + return nil +} + +// IsTmall Getter +func (r TaobaoTbkShopGetAPIRequest) GetIsTmall() bool { + return r._isTmall +} +// StartCredit Setter +// 信用等级下限,1~20 +func (r *TaobaoTbkShopGetAPIRequest) SetStartCredit(_startCredit int64) error { + r._startCredit = _startCredit + r.Set("start_credit", _startCredit) + return nil +} + +// StartCredit Getter +func (r TaobaoTbkShopGetAPIRequest) GetStartCredit() int64 { + return r._startCredit +} +// EndCredit Setter +// 信用等级上限,1~20 +func (r *TaobaoTbkShopGetAPIRequest) SetEndCredit(_endCredit int64) error { + r._endCredit = _endCredit + r.Set("end_credit", _endCredit) + return nil +} + +// EndCredit Getter +func (r TaobaoTbkShopGetAPIRequest) GetEndCredit() int64 { + return r._endCredit +} +// StartCommissionRate Setter +// 淘客佣金比率下限,1~10000 +func (r *TaobaoTbkShopGetAPIRequest) SetStartCommissionRate(_startCommissionRate int64) error { + r._startCommissionRate = _startCommissionRate + r.Set("start_commission_rate", _startCommissionRate) + return nil +} + +// StartCommissionRate Getter +func (r TaobaoTbkShopGetAPIRequest) GetStartCommissionRate() int64 { + return r._startCommissionRate +} +// EndCommissionRate Setter +// 淘客佣金比率上限,1~10000 +func (r *TaobaoTbkShopGetAPIRequest) SetEndCommissionRate(_endCommissionRate int64) error { + r._endCommissionRate = _endCommissionRate + r.Set("end_commission_rate", _endCommissionRate) + return nil +} + +// EndCommissionRate Getter +func (r TaobaoTbkShopGetAPIRequest) GetEndCommissionRate() int64 { + return r._endCommissionRate +} +// StartTotalAction Setter +// 店铺商品总数下限 +func (r *TaobaoTbkShopGetAPIRequest) SetStartTotalAction(_startTotalAction int64) error { + r._startTotalAction = _startTotalAction + r.Set("start_total_action", _startTotalAction) + return nil +} + +// StartTotalAction Getter +func (r TaobaoTbkShopGetAPIRequest) GetStartTotalAction() int64 { + return r._startTotalAction +} +// EndTotalAction Setter +// 店铺商品总数上限 +func (r *TaobaoTbkShopGetAPIRequest) SetEndTotalAction(_endTotalAction int64) error { + r._endTotalAction = _endTotalAction + r.Set("end_total_action", _endTotalAction) + return nil +} + +// EndTotalAction Getter +func (r TaobaoTbkShopGetAPIRequest) GetEndTotalAction() int64 { + return r._endTotalAction +} +// StartAuctionCount Setter +// 累计推广商品下限 +func (r *TaobaoTbkShopGetAPIRequest) SetStartAuctionCount(_startAuctionCount int64) error { + r._startAuctionCount = _startAuctionCount + r.Set("start_auction_count", _startAuctionCount) + return nil +} + +// StartAuctionCount Getter +func (r TaobaoTbkShopGetAPIRequest) GetStartAuctionCount() int64 { + return r._startAuctionCount +} +// EndAuctionCount Setter +// 累计推广商品上限 +func (r *TaobaoTbkShopGetAPIRequest) SetEndAuctionCount(_endAuctionCount int64) error { + r._endAuctionCount = _endAuctionCount + r.Set("end_auction_count", _endAuctionCount) + return nil +} + +// EndAuctionCount Getter +func (r TaobaoTbkShopGetAPIRequest) GetEndAuctionCount() int64 { + return r._endAuctionCount +} +// Platform Setter +// 链接形式:1:PC,2:无线,默认:1 +func (r *TaobaoTbkShopGetAPIRequest) SetPlatform(_platform int64) error { + r._platform = _platform + r.Set("platform", _platform) + return nil +} + +// Platform Getter +func (r TaobaoTbkShopGetAPIRequest) GetPlatform() int64 { + return r._platform +} +// PageNo Setter +// 第几页,默认1,1~100 +func (r *TaobaoTbkShopGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoTbkShopGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 页大小,默认20,1~100 +func (r *TaobaoTbkShopGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTbkShopGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tbk/TaobaoTbkShopGetAPIResponse.go b/model/tbk/TaobaoTbkShopGetAPIResponse.go new file mode 100644 index 0000000000..cac58f7d72 --- /dev/null +++ b/model/tbk/TaobaoTbkShopGetAPIResponse.go @@ -0,0 +1,29 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-推广者-店铺搜索 API返回值 +taobao.tbk.shop.get + +淘宝客店铺查询 +*/ +type TaobaoTbkShopGetAPIResponse struct { + model.CommonResponse + TaobaoTbkShopGetAPIResponseModel +} + +// 淘宝客-推广者-店铺搜索 成功返回结果 +type TaobaoTbkShopGetAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_shop_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 淘宝客店铺 + Results []NTbkShop `json:"results,omitempty" xml:"results>n_tbk_shop,omitempty"` + // 搜索到符合条件的结果总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/tbk/TaobaoTbkShopGetResponse.go b/model/tbk/TaobaoTbkShopGetResponse.go deleted file mode 100644 index 1328206723..0000000000 --- a/model/tbk/TaobaoTbkShopGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝客-推广者-店铺搜索 API返回值 -taobao.tbk.shop.get - -淘宝客店铺查询 -*/ -type TaobaoTbkShopGetAPIResponse struct { - model.CommonResponse - TaobaoTbkShopGetResponse -} - -// 淘宝客-推广者-店铺搜索 成功返回结果 -type TaobaoTbkShopGetResponse struct { - XMLName xml.Name `xml:"tbk_shop_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 淘宝客店铺 - Results []NTbkShop `json:"results,omitempty" xml:"results>n_tbk_shop,omitempty"` - // 搜索到符合条件的结果总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/tbk/TaobaoTbkShopRecommendGetAPIRequest.go b/model/tbk/TaobaoTbkShopRecommendGetAPIRequest.go new file mode 100644 index 0000000000..548916f7fd --- /dev/null +++ b/model/tbk/TaobaoTbkShopRecommendGetAPIRequest.go @@ -0,0 +1,94 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-公用-店铺关联推荐 API请求 +taobao.tbk.shop.recommend.get + +入参卖家id,可推荐与此店铺相关联的相关店铺。 +*/ +type TaobaoTbkShopRecommendGetAPIRequest struct { + model.Params + // 需返回的字段列表 + _fields string + // 卖家Id + _userId int64 + // 返回数量,默认20,最大值40 + _count int64 + // 链接形式:1:PC,2:无线,默认:1 + _platform int64 +} + +// 初始化TaobaoTbkShopRecommendGetAPIRequest对象 +func NewTaobaoTbkShopRecommendGetRequest() *TaobaoTbkShopRecommendGetAPIRequest{ + return &TaobaoTbkShopRecommendGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkShopRecommendGetAPIRequest) GetApiMethodName() string { + return "taobao.tbk.shop.recommend.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkShopRecommendGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需返回的字段列表 +func (r *TaobaoTbkShopRecommendGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoTbkShopRecommendGetAPIRequest) GetFields() string { + return r._fields +} +// UserId Setter +// 卖家Id +func (r *TaobaoTbkShopRecommendGetAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoTbkShopRecommendGetAPIRequest) GetUserId() int64 { + return r._userId +} +// Count Setter +// 返回数量,默认20,最大值40 +func (r *TaobaoTbkShopRecommendGetAPIRequest) SetCount(_count int64) error { + r._count = _count + r.Set("count", _count) + return nil +} + +// Count Getter +func (r TaobaoTbkShopRecommendGetAPIRequest) GetCount() int64 { + return r._count +} +// Platform Setter +// 链接形式:1:PC,2:无线,默认:1 +func (r *TaobaoTbkShopRecommendGetAPIRequest) SetPlatform(_platform int64) error { + r._platform = _platform + r.Set("platform", _platform) + return nil +} + +// Platform Getter +func (r TaobaoTbkShopRecommendGetAPIRequest) GetPlatform() int64 { + return r._platform +} diff --git a/model/tbk/TaobaoTbkShopRecommendGetAPIResponse.go b/model/tbk/TaobaoTbkShopRecommendGetAPIResponse.go new file mode 100644 index 0000000000..511ceae9db --- /dev/null +++ b/model/tbk/TaobaoTbkShopRecommendGetAPIResponse.go @@ -0,0 +1,27 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-公用-店铺关联推荐 API返回值 +taobao.tbk.shop.recommend.get + +入参卖家id,可推荐与此店铺相关联的相关店铺。 +*/ +type TaobaoTbkShopRecommendGetAPIResponse struct { + model.CommonResponse + TaobaoTbkShopRecommendGetAPIResponseModel +} + +// 淘宝客-公用-店铺关联推荐 成功返回结果 +type TaobaoTbkShopRecommendGetAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_shop_recommend_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 淘宝客店铺 + Results []NTbkShop `json:"results,omitempty" xml:"results>n_tbk_shop,omitempty"` +} diff --git a/model/tbk/TaobaoTbkShopRecommendGetResponse.go b/model/tbk/TaobaoTbkShopRecommendGetResponse.go deleted file mode 100644 index 178fbd8104..0000000000 --- a/model/tbk/TaobaoTbkShopRecommendGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝客-公用-店铺关联推荐 API返回值 -taobao.tbk.shop.recommend.get - -入参卖家id,可推荐与此店铺相关联的相关店铺。 -*/ -type TaobaoTbkShopRecommendGetAPIResponse struct { - model.CommonResponse - TaobaoTbkShopRecommendGetResponse -} - -// 淘宝客-公用-店铺关联推荐 成功返回结果 -type TaobaoTbkShopRecommendGetResponse struct { - XMLName xml.Name `xml:"tbk_shop_recommend_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 淘宝客店铺 - Results []NTbkShop `json:"results,omitempty" xml:"results>n_tbk_shop,omitempty"` -} diff --git a/model/tbk/TaobaoTbkSkuBestCouponAPIRequest.go b/model/tbk/TaobaoTbkSkuBestCouponAPIRequest.go new file mode 100644 index 0000000000..a53ed3c6b4 --- /dev/null +++ b/model/tbk/TaobaoTbkSkuBestCouponAPIRequest.go @@ -0,0 +1,66 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +sku维度最优优惠券信息 API请求 +taobao.tbk.sku.best.coupon + +根据itemid和skuid查询最优优惠券信息 +*/ +type TaobaoTbkSkuBestCouponAPIRequest struct { + model.Params + // 商品ID + _itemId int64 + // 商品对应的skuId + _skuId int64 +} + +// 初始化TaobaoTbkSkuBestCouponAPIRequest对象 +func NewTaobaoTbkSkuBestCouponRequest() *TaobaoTbkSkuBestCouponAPIRequest{ + return &TaobaoTbkSkuBestCouponAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkSkuBestCouponAPIRequest) GetApiMethodName() string { + return "taobao.tbk.sku.best.coupon" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkSkuBestCouponAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品ID +func (r *TaobaoTbkSkuBestCouponAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoTbkSkuBestCouponAPIRequest) GetItemId() int64 { + return r._itemId +} +// SkuId Setter +// 商品对应的skuId +func (r *TaobaoTbkSkuBestCouponAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TaobaoTbkSkuBestCouponAPIRequest) GetSkuId() int64 { + return r._skuId +} diff --git a/model/tbk/TaobaoTbkSkuBestCouponAPIResponse.go b/model/tbk/TaobaoTbkSkuBestCouponAPIResponse.go new file mode 100644 index 0000000000..1cbee0c419 --- /dev/null +++ b/model/tbk/TaobaoTbkSkuBestCouponAPIResponse.go @@ -0,0 +1,27 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +sku维度最优优惠券信息 API返回值 +taobao.tbk.sku.best.coupon + +根据itemid和skuid查询最优优惠券信息 +*/ +type TaobaoTbkSkuBestCouponAPIResponse struct { + model.CommonResponse + TaobaoTbkSkuBestCouponAPIResponseModel +} + +// sku维度最优优惠券信息 成功返回结果 +type TaobaoTbkSkuBestCouponAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_sku_best_coupon_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 优惠券详细信息 + CouponInfo *TaobaoTbkSkuBestCouponMapData `json:"coupon_info,omitempty" xml:"coupon_info,omitempty"` +} diff --git a/model/tbk/TaobaoTbkSkuBestCouponResponse.go b/model/tbk/TaobaoTbkSkuBestCouponResponse.go deleted file mode 100644 index 91b5fb3e5a..0000000000 --- a/model/tbk/TaobaoTbkSkuBestCouponResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -sku维度最优优惠券信息 API返回值 -taobao.tbk.sku.best.coupon - -根据itemid和skuid查询最优优惠券信息 -*/ -type TaobaoTbkSkuBestCouponAPIResponse struct { - model.CommonResponse - TaobaoTbkSkuBestCouponResponse -} - -// sku维度最优优惠券信息 成功返回结果 -type TaobaoTbkSkuBestCouponResponse struct { - XMLName xml.Name `xml:"tbk_sku_best_coupon_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 优惠券详细信息 - CouponInfo *TaobaoTbkSkuBestCouponMapData `json:"coupon_info,omitempty" xml:"coupon_info,omitempty"` -} diff --git a/model/tbk/TaobaoTbkSpreadGetAPIRequest.go b/model/tbk/TaobaoTbkSpreadGetAPIRequest.go new file mode 100644 index 0000000000..c227d1e202 --- /dev/null +++ b/model/tbk/TaobaoTbkSpreadGetAPIRequest.go @@ -0,0 +1,53 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-公用-长链转短链 API请求 +taobao.tbk.spread.get + +输入一个原始的链接,转换得到指定的传播方式,如二维码,淘口令,短连接; +现阶段只支持短连接。 +*/ +type TaobaoTbkSpreadGetAPIRequest struct { + model.Params + // 请求列表,内部包含多个url + _requests []TbkSpreadRequest +} + +// 初始化TaobaoTbkSpreadGetAPIRequest对象 +func NewTaobaoTbkSpreadGetRequest() *TaobaoTbkSpreadGetAPIRequest{ + return &TaobaoTbkSpreadGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkSpreadGetAPIRequest) GetApiMethodName() string { + return "taobao.tbk.spread.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkSpreadGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Requests Setter +// 请求列表,内部包含多个url +func (r *TaobaoTbkSpreadGetAPIRequest) SetRequests(_requests []TbkSpreadRequest) error { + r._requests = _requests + r.Set("requests", _requests) + return nil +} + +// Requests Getter +func (r TaobaoTbkSpreadGetAPIRequest) GetRequests() []TbkSpreadRequest { + return r._requests +} diff --git a/model/tbk/TaobaoTbkSpreadGetAPIResponse.go b/model/tbk/TaobaoTbkSpreadGetAPIResponse.go new file mode 100644 index 0000000000..7158e9e2e3 --- /dev/null +++ b/model/tbk/TaobaoTbkSpreadGetAPIResponse.go @@ -0,0 +1,30 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-公用-长链转短链 API返回值 +taobao.tbk.spread.get + +输入一个原始的链接,转换得到指定的传播方式,如二维码,淘口令,短连接; +现阶段只支持短连接。 +*/ +type TaobaoTbkSpreadGetAPIResponse struct { + model.CommonResponse + TaobaoTbkSpreadGetAPIResponseModel +} + +// 淘宝客-公用-长链转短链 成功返回结果 +type TaobaoTbkSpreadGetAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_spread_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 传播形式对象列表 + Results []TbkSpread `json:"results,omitempty" xml:"results>tbk_spread,omitempty"` + // totalResults + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/tbk/TaobaoTbkSpreadGetResponse.go b/model/tbk/TaobaoTbkSpreadGetResponse.go deleted file mode 100644 index 162f525b6e..0000000000 --- a/model/tbk/TaobaoTbkSpreadGetResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝客-公用-长链转短链 API返回值 -taobao.tbk.spread.get - -输入一个原始的链接,转换得到指定的传播方式,如二维码,淘口令,短连接; -现阶段只支持短连接。 -*/ -type TaobaoTbkSpreadGetAPIResponse struct { - model.CommonResponse - TaobaoTbkSpreadGetResponse -} - -// 淘宝客-公用-长链转短链 成功返回结果 -type TaobaoTbkSpreadGetResponse struct { - XMLName xml.Name `xml:"tbk_spread_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 传播形式对象列表 - Results []TbkSpread `json:"results,omitempty" xml:"results>tbk_spread,omitempty"` - // totalResults - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/tbk/TaobaoTbkTpwdCreateAPIRequest.go b/model/tbk/TaobaoTbkTpwdCreateAPIRequest.go new file mode 100644 index 0000000000..6df3570b27 --- /dev/null +++ b/model/tbk/TaobaoTbkTpwdCreateAPIRequest.go @@ -0,0 +1,108 @@ +package tbk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-公用-淘口令生成 API请求 +taobao.tbk.tpwd.create + +提供淘口令生成接口。提交需要生成淘口令的内容、logo、url等参数,生成淘口令,其中关键信息为¥SADadW¥,后续可基于淘口令进行文案包装组装用于传播。 +*/ +type TaobaoTbkTpwdCreateAPIRequest struct { + model.Params + // 联盟官方渠道获取的淘客推广链接,请注意,不要随意篡改官方生成的链接,否则可能无法生成淘口令 + _url string + // 兼容旧版本api参数,无实际作用 + _text string + // 兼容旧版本api参数,无实际作用 + _logo string + // 兼容旧版本api参数,无实际作用 + _ext string + // 兼容旧版本api参数,无实际作用 + _userId string +} + +// 初始化TaobaoTbkTpwdCreateAPIRequest对象 +func NewTaobaoTbkTpwdCreateRequest() *TaobaoTbkTpwdCreateAPIRequest{ + return &TaobaoTbkTpwdCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTbkTpwdCreateAPIRequest) GetApiMethodName() string { + return "taobao.tbk.tpwd.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTbkTpwdCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Url Setter +// 联盟官方渠道获取的淘客推广链接,请注意,不要随意篡改官方生成的链接,否则可能无法生成淘口令 +func (r *TaobaoTbkTpwdCreateAPIRequest) SetUrl(_url string) error { + r._url = _url + r.Set("url", _url) + return nil +} + +// Url Getter +func (r TaobaoTbkTpwdCreateAPIRequest) GetUrl() string { + return r._url +} +// Text Setter +// 兼容旧版本api参数,无实际作用 +func (r *TaobaoTbkTpwdCreateAPIRequest) SetText(_text string) error { + r._text = _text + r.Set("text", _text) + return nil +} + +// Text Getter +func (r TaobaoTbkTpwdCreateAPIRequest) GetText() string { + return r._text +} +// Logo Setter +// 兼容旧版本api参数,无实际作用 +func (r *TaobaoTbkTpwdCreateAPIRequest) SetLogo(_logo string) error { + r._logo = _logo + r.Set("logo", _logo) + return nil +} + +// Logo Getter +func (r TaobaoTbkTpwdCreateAPIRequest) GetLogo() string { + return r._logo +} +// Ext Setter +// 兼容旧版本api参数,无实际作用 +func (r *TaobaoTbkTpwdCreateAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoTbkTpwdCreateAPIRequest) GetExt() string { + return r._ext +} +// UserId Setter +// 兼容旧版本api参数,无实际作用 +func (r *TaobaoTbkTpwdCreateAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoTbkTpwdCreateAPIRequest) GetUserId() string { + return r._userId +} diff --git a/model/tbk/TaobaoTbkTpwdCreateAPIResponse.go b/model/tbk/TaobaoTbkTpwdCreateAPIResponse.go new file mode 100644 index 0000000000..ad87ee1eed --- /dev/null +++ b/model/tbk/TaobaoTbkTpwdCreateAPIResponse.go @@ -0,0 +1,27 @@ +package tbk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝客-公用-淘口令生成 API返回值 +taobao.tbk.tpwd.create + +提供淘口令生成接口。提交需要生成淘口令的内容、logo、url等参数,生成淘口令,其中关键信息为¥SADadW¥,后续可基于淘口令进行文案包装组装用于传播。 +*/ +type TaobaoTbkTpwdCreateAPIResponse struct { + model.CommonResponse + TaobaoTbkTpwdCreateAPIResponseModel +} + +// 淘宝客-公用-淘口令生成 成功返回结果 +type TaobaoTbkTpwdCreateAPIResponseModel struct { + XMLName xml.Name `xml:"tbk_tpwd_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Data *TaobaoTbkTpwdCreateMapData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/tbk/TaobaoTbkTpwdCreateResponse.go b/model/tbk/TaobaoTbkTpwdCreateResponse.go deleted file mode 100644 index 14947c19e2..0000000000 --- a/model/tbk/TaobaoTbkTpwdCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tbk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝客-公用-淘口令生成 API返回值 -taobao.tbk.tpwd.create - -提供淘口令生成接口。提交需要生成淘口令的内容、logo、url等参数,生成淘口令,其中关键信息为¥SADadW¥,后续可基于淘口令进行文案包装组装用于传播。 -*/ -type TaobaoTbkTpwdCreateAPIResponse struct { - model.CommonResponse - TaobaoTbkTpwdCreateResponse -} - -// 淘宝客-公用-淘口令生成 成功返回结果 -type TaobaoTbkTpwdCreateResponse struct { - XMLName xml.Name `xml:"tbk_tpwd_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Data *TaobaoTbkTpwdCreateMapData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/ticket/AlitripTicketProductQueryAPIRequest.go b/model/ticket/AlitripTicketProductQueryAPIRequest.go new file mode 100644 index 0000000000..112fd3cc20 --- /dev/null +++ b/model/ticket/AlitripTicketProductQueryAPIRequest.go @@ -0,0 +1,94 @@ +package ticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【门票API2.0】门票商品查询接口 API请求 +alitrip.ticket.product.query + +门票商品查询接口:返回商家上传的门票商品信息 +*/ +type AlitripTicketProductQueryAPIRequest struct { + model.Params + // 商户自定义收费项目编码。与ali_product_id,item_id 三者至少填写一个 + _outProductId string + // 阿里标准收费项目id。与out_product_id,item_id 三者至少填写一个 + _aliProductId int64 + // 商品ID。与out_product_id,ali_product_id三者至少填写一个 + _itemId int64 + // 代表业务来源,gongxiao代表供销平台业务 + _pageSource string +} + +// 初始化AlitripTicketProductQueryAPIRequest对象 +func NewAlitripTicketProductQueryRequest() *AlitripTicketProductQueryAPIRequest{ + return &AlitripTicketProductQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTicketProductQueryAPIRequest) GetApiMethodName() string { + return "alitrip.ticket.product.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTicketProductQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutProductId Setter +// 商户自定义收费项目编码。与ali_product_id,item_id 三者至少填写一个 +func (r *AlitripTicketProductQueryAPIRequest) SetOutProductId(_outProductId string) error { + r._outProductId = _outProductId + r.Set("out_product_id", _outProductId) + return nil +} + +// OutProductId Getter +func (r AlitripTicketProductQueryAPIRequest) GetOutProductId() string { + return r._outProductId +} +// AliProductId Setter +// 阿里标准收费项目id。与out_product_id,item_id 三者至少填写一个 +func (r *AlitripTicketProductQueryAPIRequest) SetAliProductId(_aliProductId int64) error { + r._aliProductId = _aliProductId + r.Set("ali_product_id", _aliProductId) + return nil +} + +// AliProductId Getter +func (r AlitripTicketProductQueryAPIRequest) GetAliProductId() int64 { + return r._aliProductId +} +// ItemId Setter +// 商品ID。与out_product_id,ali_product_id三者至少填写一个 +func (r *AlitripTicketProductQueryAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlitripTicketProductQueryAPIRequest) GetItemId() int64 { + return r._itemId +} +// PageSource Setter +// 代表业务来源,gongxiao代表供销平台业务 +func (r *AlitripTicketProductQueryAPIRequest) SetPageSource(_pageSource string) error { + r._pageSource = _pageSource + r.Set("page_source", _pageSource) + return nil +} + +// PageSource Getter +func (r AlitripTicketProductQueryAPIRequest) GetPageSource() string { + return r._pageSource +} diff --git a/model/ticket/AlitripTicketProductQueryAPIResponse.go b/model/ticket/AlitripTicketProductQueryAPIResponse.go new file mode 100644 index 0000000000..d2ca4d8d18 --- /dev/null +++ b/model/ticket/AlitripTicketProductQueryAPIResponse.go @@ -0,0 +1,27 @@ +package ticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【门票API2.0】门票商品查询接口 API返回值 +alitrip.ticket.product.query + +门票商品查询接口:返回商家上传的门票商品信息 +*/ +type AlitripTicketProductQueryAPIResponse struct { + model.CommonResponse + AlitripTicketProductQueryAPIResponseModel +} + +// 【门票API2.0】门票商品查询接口 成功返回结果 +type AlitripTicketProductQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ticket_product_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 门票商品详情 + FirstResult *TopTicketItemFullinfoResult `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/ticket/AlitripTicketProductQueryResponse.go b/model/ticket/AlitripTicketProductQueryResponse.go deleted file mode 100644 index 4fc3c0a042..0000000000 --- a/model/ticket/AlitripTicketProductQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【门票API2.0】门票商品查询接口 API返回值 -alitrip.ticket.product.query - -门票商品查询接口:返回商家上传的门票商品信息 -*/ -type AlitripTicketProductQueryAPIResponse struct { - model.CommonResponse - AlitripTicketProductQueryResponse -} - -// 【门票API2.0】门票商品查询接口 成功返回结果 -type AlitripTicketProductQueryResponse struct { - XMLName xml.Name `xml:"alitrip_ticket_product_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 门票商品详情 - FirstResult *TopTicketItemFullinfoResult `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/ticket/AlitripTicketProductUploadAPIRequest.go b/model/ticket/AlitripTicketProductUploadAPIRequest.go new file mode 100644 index 0000000000..3962fc8adf --- /dev/null +++ b/model/ticket/AlitripTicketProductUploadAPIRequest.go @@ -0,0 +1,221 @@ +package ticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【门票API2.0】门票收费项目管理接口 API请求 +alitrip.ticket.product.upload + +航旅度假新版门票商品(门票收费项目)管理接口:支持门票商品的发布、编辑。如果在ali_product_id下没有发布过门票商品,则系统将判断为新发布商品,否则是编辑已有商品。可以通过辅助查询接口判断是否已在某个ali_product_id下发布过门票商品。 +对应新发布商品的情况,有些参数是必填的,请仔细查看各字段说明。对于编辑商品的情况,ali_product_id和out_product_id至少需要填一个,其他参数都是可选,编辑情况支持增量更新(某个参数不传则使用该商品上原有值)。 +*/ +type AlitripTicketProductUploadAPIRequest struct { + model.Params + // 新发布门票商品时必填。阿里旅行提供的收费项目编码,与商户收费项目编码进行绑定。注:一个收费项目编码对应了一个淘宝商品 + _aliProductId int64 + // 可选,商户自定义收费项目编码。注:如果商户上传了自定义收费项目编码,则在价格库存同步接口可以使用该自定义编码更新价格库存。 + _outProductId string + // 可选,商家想要更新映射关系的时候,用于更新商户自定义收费项目编码。 + _updateOutProductId string + // 商户收费项目名称 + _outProductName string + // 新发布门票商品时必填。门票商品 库存类型。1、日历库存, 2、非日历库存 + _inventoryType int64 + // inventory_type=2时必填,指定该收费项目在购买时是否需要买家指定入园日期。1、需要,2-不需要 + _needEnterDate int64 + // 新发布门票商品时必填。门票有效期:指定入园日期后 多少天内有效。当为数字时,表示多少天内有效;当为日期时,表示到某日期有效,日期格式:yyyy-MM-dd。发布时不填则默认设置30天内有效 + _expireDate string + // 新发布门票商品时必填。门票 预定时间限制。1、表示无限制 购买后可立即入园,2、有限制,此时预定时间限制规则必填。 + _reserveLimitType int64 + // 特殊选填,门票 预定时间限制规则。格式:1_18_00_3 或者 1_18_00_3_30,含义:必须提前1天拍下,且在18点00分前支付成功,订单才生效。当为提前0天时(即当日票),最后两个数字才生效,指当日票需要在出票后3小时30分钟后方可入园。 + _reserveLimitRule string + // 新发布门票商品时必填。门票商品发码方式 + _codeSendingInfo *CodeSendingInfo + // 可选,商品标题 + _title string + // 可选,商品主图,最多支持5张。图片链接支持外链图片(即商家系统中图片链接,必须外网可访问,且格式为png、jpg或jpeg,大小在500k以内),或者用户淘宝空间内的图片链接。对于外链图片,将自动下载并上传用户淘宝图片空间,上传失败的外链图片将自动忽略不计。 + _picUrls []string + // 可选,商品详情描述,不超过50000个字符。详情描述支持纯文本描述,也支持html格式的详情描述。html格式的详情描述中 图片链接支持外链图片(必须外网可访问, 且格式为png、jpg或jpeg,大小在500k以内)和淘宝图片空间链接。 + _desc string +} + +// 初始化AlitripTicketProductUploadAPIRequest对象 +func NewAlitripTicketProductUploadRequest() *AlitripTicketProductUploadAPIRequest{ + return &AlitripTicketProductUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTicketProductUploadAPIRequest) GetApiMethodName() string { + return "alitrip.ticket.product.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTicketProductUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AliProductId Setter +// 新发布门票商品时必填。阿里旅行提供的收费项目编码,与商户收费项目编码进行绑定。注:一个收费项目编码对应了一个淘宝商品 +func (r *AlitripTicketProductUploadAPIRequest) SetAliProductId(_aliProductId int64) error { + r._aliProductId = _aliProductId + r.Set("ali_product_id", _aliProductId) + return nil +} + +// AliProductId Getter +func (r AlitripTicketProductUploadAPIRequest) GetAliProductId() int64 { + return r._aliProductId +} +// OutProductId Setter +// 可选,商户自定义收费项目编码。注:如果商户上传了自定义收费项目编码,则在价格库存同步接口可以使用该自定义编码更新价格库存。 +func (r *AlitripTicketProductUploadAPIRequest) SetOutProductId(_outProductId string) error { + r._outProductId = _outProductId + r.Set("out_product_id", _outProductId) + return nil +} + +// OutProductId Getter +func (r AlitripTicketProductUploadAPIRequest) GetOutProductId() string { + return r._outProductId +} +// UpdateOutProductId Setter +// 可选,商家想要更新映射关系的时候,用于更新商户自定义收费项目编码。 +func (r *AlitripTicketProductUploadAPIRequest) SetUpdateOutProductId(_updateOutProductId string) error { + r._updateOutProductId = _updateOutProductId + r.Set("update_out_product_id", _updateOutProductId) + return nil +} + +// UpdateOutProductId Getter +func (r AlitripTicketProductUploadAPIRequest) GetUpdateOutProductId() string { + return r._updateOutProductId +} +// OutProductName Setter +// 商户收费项目名称 +func (r *AlitripTicketProductUploadAPIRequest) SetOutProductName(_outProductName string) error { + r._outProductName = _outProductName + r.Set("out_product_name", _outProductName) + return nil +} + +// OutProductName Getter +func (r AlitripTicketProductUploadAPIRequest) GetOutProductName() string { + return r._outProductName +} +// InventoryType Setter +// 新发布门票商品时必填。门票商品 库存类型。1、日历库存, 2、非日历库存 +func (r *AlitripTicketProductUploadAPIRequest) SetInventoryType(_inventoryType int64) error { + r._inventoryType = _inventoryType + r.Set("inventory_type", _inventoryType) + return nil +} + +// InventoryType Getter +func (r AlitripTicketProductUploadAPIRequest) GetInventoryType() int64 { + return r._inventoryType +} +// NeedEnterDate Setter +// inventory_type=2时必填,指定该收费项目在购买时是否需要买家指定入园日期。1、需要,2-不需要 +func (r *AlitripTicketProductUploadAPIRequest) SetNeedEnterDate(_needEnterDate int64) error { + r._needEnterDate = _needEnterDate + r.Set("need_enter_date", _needEnterDate) + return nil +} + +// NeedEnterDate Getter +func (r AlitripTicketProductUploadAPIRequest) GetNeedEnterDate() int64 { + return r._needEnterDate +} +// ExpireDate Setter +// 新发布门票商品时必填。门票有效期:指定入园日期后 多少天内有效。当为数字时,表示多少天内有效;当为日期时,表示到某日期有效,日期格式:yyyy-MM-dd。发布时不填则默认设置30天内有效 +func (r *AlitripTicketProductUploadAPIRequest) SetExpireDate(_expireDate string) error { + r._expireDate = _expireDate + r.Set("expire_date", _expireDate) + return nil +} + +// ExpireDate Getter +func (r AlitripTicketProductUploadAPIRequest) GetExpireDate() string { + return r._expireDate +} +// ReserveLimitType Setter +// 新发布门票商品时必填。门票 预定时间限制。1、表示无限制 购买后可立即入园,2、有限制,此时预定时间限制规则必填。 +func (r *AlitripTicketProductUploadAPIRequest) SetReserveLimitType(_reserveLimitType int64) error { + r._reserveLimitType = _reserveLimitType + r.Set("reserve_limit_type", _reserveLimitType) + return nil +} + +// ReserveLimitType Getter +func (r AlitripTicketProductUploadAPIRequest) GetReserveLimitType() int64 { + return r._reserveLimitType +} +// ReserveLimitRule Setter +// 特殊选填,门票 预定时间限制规则。格式:1_18_00_3 或者 1_18_00_3_30,含义:必须提前1天拍下,且在18点00分前支付成功,订单才生效。当为提前0天时(即当日票),最后两个数字才生效,指当日票需要在出票后3小时30分钟后方可入园。 +func (r *AlitripTicketProductUploadAPIRequest) SetReserveLimitRule(_reserveLimitRule string) error { + r._reserveLimitRule = _reserveLimitRule + r.Set("reserve_limit_rule", _reserveLimitRule) + return nil +} + +// ReserveLimitRule Getter +func (r AlitripTicketProductUploadAPIRequest) GetReserveLimitRule() string { + return r._reserveLimitRule +} +// CodeSendingInfo Setter +// 新发布门票商品时必填。门票商品发码方式 +func (r *AlitripTicketProductUploadAPIRequest) SetCodeSendingInfo(_codeSendingInfo *CodeSendingInfo) error { + r._codeSendingInfo = _codeSendingInfo + r.Set("code_sending_info", _codeSendingInfo) + return nil +} + +// CodeSendingInfo Getter +func (r AlitripTicketProductUploadAPIRequest) GetCodeSendingInfo() *CodeSendingInfo { + return r._codeSendingInfo +} +// Title Setter +// 可选,商品标题 +func (r *AlitripTicketProductUploadAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r AlitripTicketProductUploadAPIRequest) GetTitle() string { + return r._title +} +// PicUrls Setter +// 可选,商品主图,最多支持5张。图片链接支持外链图片(即商家系统中图片链接,必须外网可访问,且格式为png、jpg或jpeg,大小在500k以内),或者用户淘宝空间内的图片链接。对于外链图片,将自动下载并上传用户淘宝图片空间,上传失败的外链图片将自动忽略不计。 +func (r *AlitripTicketProductUploadAPIRequest) SetPicUrls(_picUrls []string) error { + r._picUrls = _picUrls + r.Set("pic_urls", _picUrls) + return nil +} + +// PicUrls Getter +func (r AlitripTicketProductUploadAPIRequest) GetPicUrls() []string { + return r._picUrls +} +// Desc Setter +// 可选,商品详情描述,不超过50000个字符。详情描述支持纯文本描述,也支持html格式的详情描述。html格式的详情描述中 图片链接支持外链图片(必须外网可访问, 且格式为png、jpg或jpeg,大小在500k以内)和淘宝图片空间链接。 +func (r *AlitripTicketProductUploadAPIRequest) SetDesc(_desc string) error { + r._desc = _desc + r.Set("desc", _desc) + return nil +} + +// Desc Getter +func (r AlitripTicketProductUploadAPIRequest) GetDesc() string { + return r._desc +} diff --git a/model/ticket/AlitripTicketProductUploadAPIResponse.go b/model/ticket/AlitripTicketProductUploadAPIResponse.go new file mode 100644 index 0000000000..d7b29812f7 --- /dev/null +++ b/model/ticket/AlitripTicketProductUploadAPIResponse.go @@ -0,0 +1,28 @@ +package ticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【门票API2.0】门票收费项目管理接口 API返回值 +alitrip.ticket.product.upload + +航旅度假新版门票商品(门票收费项目)管理接口:支持门票商品的发布、编辑。如果在ali_product_id下没有发布过门票商品,则系统将判断为新发布商品,否则是编辑已有商品。可以通过辅助查询接口判断是否已在某个ali_product_id下发布过门票商品。 +对应新发布商品的情况,有些参数是必填的,请仔细查看各字段说明。对于编辑商品的情况,ali_product_id和out_product_id至少需要填一个,其他参数都是可选,编辑情况支持增量更新(某个参数不传则使用该商品上原有值)。 +*/ +type AlitripTicketProductUploadAPIResponse struct { + model.CommonResponse + AlitripTicketProductUploadAPIResponseModel +} + +// 【门票API2.0】门票收费项目管理接口 成功返回结果 +type AlitripTicketProductUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ticket_product_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 门票商品发布、编辑结果 + FirstResult *TicketItemResult `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/ticket/AlitripTicketProductUploadResponse.go b/model/ticket/AlitripTicketProductUploadResponse.go deleted file mode 100644 index a9ea36141f..0000000000 --- a/model/ticket/AlitripTicketProductUploadResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package ticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【门票API2.0】门票收费项目管理接口 API返回值 -alitrip.ticket.product.upload - -航旅度假新版门票商品(门票收费项目)管理接口:支持门票商品的发布、编辑。如果在ali_product_id下没有发布过门票商品,则系统将判断为新发布商品,否则是编辑已有商品。可以通过辅助查询接口判断是否已在某个ali_product_id下发布过门票商品。 -对应新发布商品的情况,有些参数是必填的,请仔细查看各字段说明。对于编辑商品的情况,ali_product_id和out_product_id至少需要填一个,其他参数都是可选,编辑情况支持增量更新(某个参数不传则使用该商品上原有值)。 -*/ -type AlitripTicketProductUploadAPIResponse struct { - model.CommonResponse - AlitripTicketProductUploadResponse -} - -// 【门票API2.0】门票收费项目管理接口 成功返回结果 -type AlitripTicketProductUploadResponse struct { - XMLName xml.Name `xml:"alitrip_ticket_product_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 门票商品发布、编辑结果 - FirstResult *TicketItemResult `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/ticket/AlitripTicketRuleQueryAPIRequest.go b/model/ticket/AlitripTicketRuleQueryAPIRequest.go new file mode 100644 index 0000000000..94bb62b429 --- /dev/null +++ b/model/ticket/AlitripTicketRuleQueryAPIRequest.go @@ -0,0 +1,52 @@ +package ticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【门票API2.0】门票规则信息查询接口 API请求 +alitrip.ticket.rule.query + +门票规则信息查询接口:返回商家上传的门票规则信息 +*/ +type AlitripTicketRuleQueryAPIRequest struct { + model.Params + // 卖家景点规则编码 + _outRuleId string +} + +// 初始化AlitripTicketRuleQueryAPIRequest对象 +func NewAlitripTicketRuleQueryRequest() *AlitripTicketRuleQueryAPIRequest{ + return &AlitripTicketRuleQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTicketRuleQueryAPIRequest) GetApiMethodName() string { + return "alitrip.ticket.rule.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTicketRuleQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutRuleId Setter +// 卖家景点规则编码 +func (r *AlitripTicketRuleQueryAPIRequest) SetOutRuleId(_outRuleId string) error { + r._outRuleId = _outRuleId + r.Set("out_rule_id", _outRuleId) + return nil +} + +// OutRuleId Getter +func (r AlitripTicketRuleQueryAPIRequest) GetOutRuleId() string { + return r._outRuleId +} diff --git a/model/ticket/AlitripTicketRuleQueryAPIResponse.go b/model/ticket/AlitripTicketRuleQueryAPIResponse.go new file mode 100644 index 0000000000..b692309f2c --- /dev/null +++ b/model/ticket/AlitripTicketRuleQueryAPIResponse.go @@ -0,0 +1,27 @@ +package ticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【门票API2.0】门票规则信息查询接口 API返回值 +alitrip.ticket.rule.query + +门票规则信息查询接口:返回商家上传的门票规则信息 +*/ +type AlitripTicketRuleQueryAPIResponse struct { + model.CommonResponse + AlitripTicketRuleQueryAPIResponseModel +} + +// 【门票API2.0】门票规则信息查询接口 成功返回结果 +type AlitripTicketRuleQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ticket_rule_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 门票规则信息 + FirstResult *TicketRuleParam `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/ticket/AlitripTicketRuleQueryResponse.go b/model/ticket/AlitripTicketRuleQueryResponse.go deleted file mode 100644 index 9c2febb809..0000000000 --- a/model/ticket/AlitripTicketRuleQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【门票API2.0】门票规则信息查询接口 API返回值 -alitrip.ticket.rule.query - -门票规则信息查询接口:返回商家上传的门票规则信息 -*/ -type AlitripTicketRuleQueryAPIResponse struct { - model.CommonResponse - AlitripTicketRuleQueryResponse -} - -// 【门票API2.0】门票规则信息查询接口 成功返回结果 -type AlitripTicketRuleQueryResponse struct { - XMLName xml.Name `xml:"alitrip_ticket_rule_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 门票规则信息 - FirstResult *TicketRuleParam `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/ticket/AlitripTicketRuleUploadAPIRequest.go b/model/ticket/AlitripTicketRuleUploadAPIRequest.go new file mode 100644 index 0000000000..57b4970371 --- /dev/null +++ b/model/ticket/AlitripTicketRuleUploadAPIRequest.go @@ -0,0 +1,361 @@ +package ticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【门票API2.0】景点门票规则维护接口 API请求 +alitrip.ticket.rule.upload + +景点门票规则维护接口。该接口同时支持新发规则和编辑现有规则,如果out_rule_id下没有发布过规则,则系统将判断为新发一个规则,否则认为是编辑现有规则。 +对于新发布规则的情况,有些参数是必填的,请仔细查看各字段说明。对于编辑的情况,除out_rule_id外都是可选,编辑情况支持增量更新(某个参数不传则使用该规则上原有值) +*/ +type AlitripTicketRuleUploadAPIRequest struct { + model.Params + // 商户票种规则id + _outRuleId string + // 新发布规则时必填。商户票种规则名称 + _outRuleName string + // 商户景点编码。新发布规则时必填,out_scenic_id与ali_scenic_id二选一,至少填写其中一个 + _outScenicId string + // 阿里旅行景点编码。新发布规则时必填,out_scenic_id与ali_scenic_id二选一,至少填写其中一个 + _aliScenicId int64 + // 可选,票种规则类型:0-实体票规则,1-电子票(包含手工票和直连票)规则。新发规则时不传 默认为1 + _ruleType int64 + // 可选,规则状态。0-生效,-1-失效。新发规则时不传 默认生效状态。 + _ruleStatus int64 + // 新发布规则时必填。退票类型。1-无条件退改, 2-有条件退改, 3-不可退改。 + _refundType int64 + // (该字段已废弃,请使用结构化退改规则字段替代:refund_custom_rules)新发布规则时特殊选填。退票描述。当refund_type为2时,该字段必填 + _refundDesc string + // 可选,是否支持自动退款,0或为空时表示不支持。0-不支持,1-只支持"售中自动退款",2-只支持"过期未使用自动退款",3-同时支持"售中自动退款"和"过期未使用自动退款" + _autoRefundSupport int64 + // 结构化自定义退款规则(json数组格式),当refund_type为2时,该字段必填。【type字段说明(特别注意:2和3不能同时存在):1(游玩日期前退改规则),2(游玩日期当日退改规则),3(区间票 游玩日期有效期内退改规则),4(游玩日期后退改规则),5(其他情况退改规则)。amount字段说明:收取的手续费。unit字段说明:手续费单位,1(票价百分比),2(固定金额,单位分)。】 【示例含义说明:1、游玩日期前2天16点30分前申请退款,每张票收取票价20%的手续费;2、(单日票)游玩日当天12点00分前申请退款,每张票收取票价50%手续费;3、(区间票)游玩日期有效期,最后一天11点00分前申请退款,每张票收取票价60%手续费;4、游玩日期后7天23点59分前申请退款,每张票收取票价80%手续费;5、其他情况,每张票收取固定100元手续费。】 + _refundCustomRules string + // 新发布规则时必填。出游人信息设置。1、不需要,2、仅需一位游客信息。3、需要所有游客信息。不填默认为1(不需要)。注:实体票(rule_type=2)不需要出游人信息,电子票(rule_type=1)一般是需要出游人信息 + _visitorRequire int64 + // 新发布规则时特殊选填。需要的出游人信息,需要出游人信息时必填。 2:手机号,3:身份证,4:姓名,17:港澳居民居住证 18:台湾居民居住证 19:护照 20:港澳台居民往返内地通行证(回乡证)。示例格式:2,3,4 + _visitorInfos string + // 新发布规则时必填。出游人 是否限购。1:限购,2:不限购 + _visitorLimitAble int64 + // 新发布规则时特殊选填。限购模式:mode为1按天, mode为2按周, mode为3按月 + _visitorLimitMode int64 + // 新发布规则时特殊选填。限购类型。0-身份证限购, 1-手机号限购 + _visitorLimitType int64 + // 新发布规则时特殊选填。限购数量 + _visitorLimitNum int64 + // 新发布规则时必填。入园类型。1-用兑换凭证直接入园,2-用兑换凭证换票入园 + _enterType int64 + // 新发布规则时必填。入园使用的凭证类型。1、二维码,2、身份证,3、二维码或身份证,4:数字码,5、手机号,6、其它。当enter_type为1时,该字段只能选择1~3 。而当enterType为2时,该字段可设置1~6 + _enterVoucherType int64 + // 其他入园凭证类型。当enter_voucher_type=6时,填写其他入园凭证类型。 + _enterVoucherValue string + // 新发布规则时特殊选填。换票地址。当enter_type为2时,该字段必填。 + _ticketChangeAdderss string + // 新发布规则时必填。景区入园地址。游客在景区的详细入园地址,请仔细填写。 + _enterAddress string + // 新发布规则时必填。门票费用包含,请详细说明该门票商品包含的费用信息。 + _feeInclude string + // 新发布规则时必填。门票商品一些游客须知的补充说明。1600字符限制 + _extraDesc string +} + +// 初始化AlitripTicketRuleUploadAPIRequest对象 +func NewAlitripTicketRuleUploadRequest() *AlitripTicketRuleUploadAPIRequest{ + return &AlitripTicketRuleUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTicketRuleUploadAPIRequest) GetApiMethodName() string { + return "alitrip.ticket.rule.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTicketRuleUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutRuleId Setter +// 商户票种规则id +func (r *AlitripTicketRuleUploadAPIRequest) SetOutRuleId(_outRuleId string) error { + r._outRuleId = _outRuleId + r.Set("out_rule_id", _outRuleId) + return nil +} + +// OutRuleId Getter +func (r AlitripTicketRuleUploadAPIRequest) GetOutRuleId() string { + return r._outRuleId +} +// OutRuleName Setter +// 新发布规则时必填。商户票种规则名称 +func (r *AlitripTicketRuleUploadAPIRequest) SetOutRuleName(_outRuleName string) error { + r._outRuleName = _outRuleName + r.Set("out_rule_name", _outRuleName) + return nil +} + +// OutRuleName Getter +func (r AlitripTicketRuleUploadAPIRequest) GetOutRuleName() string { + return r._outRuleName +} +// OutScenicId Setter +// 商户景点编码。新发布规则时必填,out_scenic_id与ali_scenic_id二选一,至少填写其中一个 +func (r *AlitripTicketRuleUploadAPIRequest) SetOutScenicId(_outScenicId string) error { + r._outScenicId = _outScenicId + r.Set("out_scenic_id", _outScenicId) + return nil +} + +// OutScenicId Getter +func (r AlitripTicketRuleUploadAPIRequest) GetOutScenicId() string { + return r._outScenicId +} +// AliScenicId Setter +// 阿里旅行景点编码。新发布规则时必填,out_scenic_id与ali_scenic_id二选一,至少填写其中一个 +func (r *AlitripTicketRuleUploadAPIRequest) SetAliScenicId(_aliScenicId int64) error { + r._aliScenicId = _aliScenicId + r.Set("ali_scenic_id", _aliScenicId) + return nil +} + +// AliScenicId Getter +func (r AlitripTicketRuleUploadAPIRequest) GetAliScenicId() int64 { + return r._aliScenicId +} +// RuleType Setter +// 可选,票种规则类型:0-实体票规则,1-电子票(包含手工票和直连票)规则。新发规则时不传 默认为1 +func (r *AlitripTicketRuleUploadAPIRequest) SetRuleType(_ruleType int64) error { + r._ruleType = _ruleType + r.Set("rule_type", _ruleType) + return nil +} + +// RuleType Getter +func (r AlitripTicketRuleUploadAPIRequest) GetRuleType() int64 { + return r._ruleType +} +// RuleStatus Setter +// 可选,规则状态。0-生效,-1-失效。新发规则时不传 默认生效状态。 +func (r *AlitripTicketRuleUploadAPIRequest) SetRuleStatus(_ruleStatus int64) error { + r._ruleStatus = _ruleStatus + r.Set("rule_status", _ruleStatus) + return nil +} + +// RuleStatus Getter +func (r AlitripTicketRuleUploadAPIRequest) GetRuleStatus() int64 { + return r._ruleStatus +} +// RefundType Setter +// 新发布规则时必填。退票类型。1-无条件退改, 2-有条件退改, 3-不可退改。 +func (r *AlitripTicketRuleUploadAPIRequest) SetRefundType(_refundType int64) error { + r._refundType = _refundType + r.Set("refund_type", _refundType) + return nil +} + +// RefundType Getter +func (r AlitripTicketRuleUploadAPIRequest) GetRefundType() int64 { + return r._refundType +} +// RefundDesc Setter +// (该字段已废弃,请使用结构化退改规则字段替代:refund_custom_rules)新发布规则时特殊选填。退票描述。当refund_type为2时,该字段必填 +func (r *AlitripTicketRuleUploadAPIRequest) SetRefundDesc(_refundDesc string) error { + r._refundDesc = _refundDesc + r.Set("refund_desc", _refundDesc) + return nil +} + +// RefundDesc Getter +func (r AlitripTicketRuleUploadAPIRequest) GetRefundDesc() string { + return r._refundDesc +} +// AutoRefundSupport Setter +// 可选,是否支持自动退款,0或为空时表示不支持。0-不支持,1-只支持"售中自动退款",2-只支持"过期未使用自动退款",3-同时支持"售中自动退款"和"过期未使用自动退款" +func (r *AlitripTicketRuleUploadAPIRequest) SetAutoRefundSupport(_autoRefundSupport int64) error { + r._autoRefundSupport = _autoRefundSupport + r.Set("auto_refund_support", _autoRefundSupport) + return nil +} + +// AutoRefundSupport Getter +func (r AlitripTicketRuleUploadAPIRequest) GetAutoRefundSupport() int64 { + return r._autoRefundSupport +} +// RefundCustomRules Setter +// 结构化自定义退款规则(json数组格式),当refund_type为2时,该字段必填。【type字段说明(特别注意:2和3不能同时存在):1(游玩日期前退改规则),2(游玩日期当日退改规则),3(区间票 游玩日期有效期内退改规则),4(游玩日期后退改规则),5(其他情况退改规则)。amount字段说明:收取的手续费。unit字段说明:手续费单位,1(票价百分比),2(固定金额,单位分)。】 【示例含义说明:1、游玩日期前2天16点30分前申请退款,每张票收取票价20%的手续费;2、(单日票)游玩日当天12点00分前申请退款,每张票收取票价50%手续费;3、(区间票)游玩日期有效期,最后一天11点00分前申请退款,每张票收取票价60%手续费;4、游玩日期后7天23点59分前申请退款,每张票收取票价80%手续费;5、其他情况,每张票收取固定100元手续费。】 +func (r *AlitripTicketRuleUploadAPIRequest) SetRefundCustomRules(_refundCustomRules string) error { + r._refundCustomRules = _refundCustomRules + r.Set("refund_custom_rules", _refundCustomRules) + return nil +} + +// RefundCustomRules Getter +func (r AlitripTicketRuleUploadAPIRequest) GetRefundCustomRules() string { + return r._refundCustomRules +} +// VisitorRequire Setter +// 新发布规则时必填。出游人信息设置。1、不需要,2、仅需一位游客信息。3、需要所有游客信息。不填默认为1(不需要)。注:实体票(rule_type=2)不需要出游人信息,电子票(rule_type=1)一般是需要出游人信息 +func (r *AlitripTicketRuleUploadAPIRequest) SetVisitorRequire(_visitorRequire int64) error { + r._visitorRequire = _visitorRequire + r.Set("visitor_require", _visitorRequire) + return nil +} + +// VisitorRequire Getter +func (r AlitripTicketRuleUploadAPIRequest) GetVisitorRequire() int64 { + return r._visitorRequire +} +// VisitorInfos Setter +// 新发布规则时特殊选填。需要的出游人信息,需要出游人信息时必填。 2:手机号,3:身份证,4:姓名,17:港澳居民居住证 18:台湾居民居住证 19:护照 20:港澳台居民往返内地通行证(回乡证)。示例格式:2,3,4 +func (r *AlitripTicketRuleUploadAPIRequest) SetVisitorInfos(_visitorInfos string) error { + r._visitorInfos = _visitorInfos + r.Set("visitor_infos", _visitorInfos) + return nil +} + +// VisitorInfos Getter +func (r AlitripTicketRuleUploadAPIRequest) GetVisitorInfos() string { + return r._visitorInfos +} +// VisitorLimitAble Setter +// 新发布规则时必填。出游人 是否限购。1:限购,2:不限购 +func (r *AlitripTicketRuleUploadAPIRequest) SetVisitorLimitAble(_visitorLimitAble int64) error { + r._visitorLimitAble = _visitorLimitAble + r.Set("visitor_limit_able", _visitorLimitAble) + return nil +} + +// VisitorLimitAble Getter +func (r AlitripTicketRuleUploadAPIRequest) GetVisitorLimitAble() int64 { + return r._visitorLimitAble +} +// VisitorLimitMode Setter +// 新发布规则时特殊选填。限购模式:mode为1按天, mode为2按周, mode为3按月 +func (r *AlitripTicketRuleUploadAPIRequest) SetVisitorLimitMode(_visitorLimitMode int64) error { + r._visitorLimitMode = _visitorLimitMode + r.Set("visitor_limit_mode", _visitorLimitMode) + return nil +} + +// VisitorLimitMode Getter +func (r AlitripTicketRuleUploadAPIRequest) GetVisitorLimitMode() int64 { + return r._visitorLimitMode +} +// VisitorLimitType Setter +// 新发布规则时特殊选填。限购类型。0-身份证限购, 1-手机号限购 +func (r *AlitripTicketRuleUploadAPIRequest) SetVisitorLimitType(_visitorLimitType int64) error { + r._visitorLimitType = _visitorLimitType + r.Set("visitor_limit_type", _visitorLimitType) + return nil +} + +// VisitorLimitType Getter +func (r AlitripTicketRuleUploadAPIRequest) GetVisitorLimitType() int64 { + return r._visitorLimitType +} +// VisitorLimitNum Setter +// 新发布规则时特殊选填。限购数量 +func (r *AlitripTicketRuleUploadAPIRequest) SetVisitorLimitNum(_visitorLimitNum int64) error { + r._visitorLimitNum = _visitorLimitNum + r.Set("visitor_limit_num", _visitorLimitNum) + return nil +} + +// VisitorLimitNum Getter +func (r AlitripTicketRuleUploadAPIRequest) GetVisitorLimitNum() int64 { + return r._visitorLimitNum +} +// EnterType Setter +// 新发布规则时必填。入园类型。1-用兑换凭证直接入园,2-用兑换凭证换票入园 +func (r *AlitripTicketRuleUploadAPIRequest) SetEnterType(_enterType int64) error { + r._enterType = _enterType + r.Set("enter_type", _enterType) + return nil +} + +// EnterType Getter +func (r AlitripTicketRuleUploadAPIRequest) GetEnterType() int64 { + return r._enterType +} +// EnterVoucherType Setter +// 新发布规则时必填。入园使用的凭证类型。1、二维码,2、身份证,3、二维码或身份证,4:数字码,5、手机号,6、其它。当enter_type为1时,该字段只能选择1~3 。而当enterType为2时,该字段可设置1~6 +func (r *AlitripTicketRuleUploadAPIRequest) SetEnterVoucherType(_enterVoucherType int64) error { + r._enterVoucherType = _enterVoucherType + r.Set("enter_voucher_type", _enterVoucherType) + return nil +} + +// EnterVoucherType Getter +func (r AlitripTicketRuleUploadAPIRequest) GetEnterVoucherType() int64 { + return r._enterVoucherType +} +// EnterVoucherValue Setter +// 其他入园凭证类型。当enter_voucher_type=6时,填写其他入园凭证类型。 +func (r *AlitripTicketRuleUploadAPIRequest) SetEnterVoucherValue(_enterVoucherValue string) error { + r._enterVoucherValue = _enterVoucherValue + r.Set("enter_voucher_value", _enterVoucherValue) + return nil +} + +// EnterVoucherValue Getter +func (r AlitripTicketRuleUploadAPIRequest) GetEnterVoucherValue() string { + return r._enterVoucherValue +} +// TicketChangeAdderss Setter +// 新发布规则时特殊选填。换票地址。当enter_type为2时,该字段必填。 +func (r *AlitripTicketRuleUploadAPIRequest) SetTicketChangeAdderss(_ticketChangeAdderss string) error { + r._ticketChangeAdderss = _ticketChangeAdderss + r.Set("ticket_change_adderss", _ticketChangeAdderss) + return nil +} + +// TicketChangeAdderss Getter +func (r AlitripTicketRuleUploadAPIRequest) GetTicketChangeAdderss() string { + return r._ticketChangeAdderss +} +// EnterAddress Setter +// 新发布规则时必填。景区入园地址。游客在景区的详细入园地址,请仔细填写。 +func (r *AlitripTicketRuleUploadAPIRequest) SetEnterAddress(_enterAddress string) error { + r._enterAddress = _enterAddress + r.Set("enter_address", _enterAddress) + return nil +} + +// EnterAddress Getter +func (r AlitripTicketRuleUploadAPIRequest) GetEnterAddress() string { + return r._enterAddress +} +// FeeInclude Setter +// 新发布规则时必填。门票费用包含,请详细说明该门票商品包含的费用信息。 +func (r *AlitripTicketRuleUploadAPIRequest) SetFeeInclude(_feeInclude string) error { + r._feeInclude = _feeInclude + r.Set("fee_include", _feeInclude) + return nil +} + +// FeeInclude Getter +func (r AlitripTicketRuleUploadAPIRequest) GetFeeInclude() string { + return r._feeInclude +} +// ExtraDesc Setter +// 新发布规则时必填。门票商品一些游客须知的补充说明。1600字符限制 +func (r *AlitripTicketRuleUploadAPIRequest) SetExtraDesc(_extraDesc string) error { + r._extraDesc = _extraDesc + r.Set("extra_desc", _extraDesc) + return nil +} + +// ExtraDesc Getter +func (r AlitripTicketRuleUploadAPIRequest) GetExtraDesc() string { + return r._extraDesc +} diff --git a/model/ticket/AlitripTicketRuleUploadAPIResponse.go b/model/ticket/AlitripTicketRuleUploadAPIResponse.go new file mode 100644 index 0000000000..3fbc859576 --- /dev/null +++ b/model/ticket/AlitripTicketRuleUploadAPIResponse.go @@ -0,0 +1,28 @@ +package ticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【门票API2.0】景点门票规则维护接口 API返回值 +alitrip.ticket.rule.upload + +景点门票规则维护接口。该接口同时支持新发规则和编辑现有规则,如果out_rule_id下没有发布过规则,则系统将判断为新发一个规则,否则认为是编辑现有规则。 +对于新发布规则的情况,有些参数是必填的,请仔细查看各字段说明。对于编辑的情况,除out_rule_id外都是可选,编辑情况支持增量更新(某个参数不传则使用该规则上原有值) +*/ +type AlitripTicketRuleUploadAPIResponse struct { + model.CommonResponse + AlitripTicketRuleUploadAPIResponseModel +} + +// 【门票API2.0】景点门票规则维护接口 成功返回结果 +type AlitripTicketRuleUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ticket_rule_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlitripTicketRuleUploadResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/ticket/AlitripTicketRuleUploadResponse.go b/model/ticket/AlitripTicketRuleUploadResponse.go deleted file mode 100644 index 21c685e85c..0000000000 --- a/model/ticket/AlitripTicketRuleUploadResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package ticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【门票API2.0】景点门票规则维护接口 API返回值 -alitrip.ticket.rule.upload - -景点门票规则维护接口。该接口同时支持新发规则和编辑现有规则,如果out_rule_id下没有发布过规则,则系统将判断为新发一个规则,否则认为是编辑现有规则。 -对于新发布规则的情况,有些参数是必填的,请仔细查看各字段说明。对于编辑的情况,除out_rule_id外都是可选,编辑情况支持增量更新(某个参数不传则使用该规则上原有值) -*/ -type AlitripTicketRuleUploadAPIResponse struct { - model.CommonResponse - AlitripTicketRuleUploadResponse -} - -// 【门票API2.0】景点门票规则维护接口 成功返回结果 -type AlitripTicketRuleUploadResponse struct { - XMLName xml.Name `xml:"alitrip_ticket_rule_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlitripTicketRuleUploadResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/ticket/AlitripTicketScenicBindAPIRequest.go b/model/ticket/AlitripTicketScenicBindAPIRequest.go new file mode 100644 index 0000000000..3b10f7918b --- /dev/null +++ b/model/ticket/AlitripTicketScenicBindAPIRequest.go @@ -0,0 +1,136 @@ +package ticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【门票API2.0】门票景点绑定接口 API请求 +alitrip.ticket.scenic.bind + +门票景点绑定接口,用于建立阿里标准景点id与商家系统景点id的映射关系。该接口同时支持新建和修改映射关系,当用户没有为ali_scenic_id建立过映射关系时,则判断为新建映射关系,否则为修改。可以通过设置update_out_scenic_id来修改ali_scenic_id与out_scenic_id的映射关系。 +*/ +type AlitripTicketScenicBindAPIRequest struct { + model.Params + // 必填,阿里旅行对应的景点编码 + _aliScenicId int64 + // 商户景点城市 + _city string + // 商户景点地址 + _address string + // 商户景点名称 + _outScenicName string + // 商户景点省份 + _province string + // 必填,商户系统中的景点编码,用于与ali_scenic_id建立映射关系 + _outScenicId string + // 可选,如果需要更新out_scenic_id与ali_scenic_id的映射关系时 需要填写 + _updateOutScenicId string +} + +// 初始化AlitripTicketScenicBindAPIRequest对象 +func NewAlitripTicketScenicBindRequest() *AlitripTicketScenicBindAPIRequest{ + return &AlitripTicketScenicBindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTicketScenicBindAPIRequest) GetApiMethodName() string { + return "alitrip.ticket.scenic.bind" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTicketScenicBindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AliScenicId Setter +// 必填,阿里旅行对应的景点编码 +func (r *AlitripTicketScenicBindAPIRequest) SetAliScenicId(_aliScenicId int64) error { + r._aliScenicId = _aliScenicId + r.Set("ali_scenic_id", _aliScenicId) + return nil +} + +// AliScenicId Getter +func (r AlitripTicketScenicBindAPIRequest) GetAliScenicId() int64 { + return r._aliScenicId +} +// City Setter +// 商户景点城市 +func (r *AlitripTicketScenicBindAPIRequest) SetCity(_city string) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r AlitripTicketScenicBindAPIRequest) GetCity() string { + return r._city +} +// Address Setter +// 商户景点地址 +func (r *AlitripTicketScenicBindAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r AlitripTicketScenicBindAPIRequest) GetAddress() string { + return r._address +} +// OutScenicName Setter +// 商户景点名称 +func (r *AlitripTicketScenicBindAPIRequest) SetOutScenicName(_outScenicName string) error { + r._outScenicName = _outScenicName + r.Set("out_scenic_name", _outScenicName) + return nil +} + +// OutScenicName Getter +func (r AlitripTicketScenicBindAPIRequest) GetOutScenicName() string { + return r._outScenicName +} +// Province Setter +// 商户景点省份 +func (r *AlitripTicketScenicBindAPIRequest) SetProvince(_province string) error { + r._province = _province + r.Set("province", _province) + return nil +} + +// Province Getter +func (r AlitripTicketScenicBindAPIRequest) GetProvince() string { + return r._province +} +// OutScenicId Setter +// 必填,商户系统中的景点编码,用于与ali_scenic_id建立映射关系 +func (r *AlitripTicketScenicBindAPIRequest) SetOutScenicId(_outScenicId string) error { + r._outScenicId = _outScenicId + r.Set("out_scenic_id", _outScenicId) + return nil +} + +// OutScenicId Getter +func (r AlitripTicketScenicBindAPIRequest) GetOutScenicId() string { + return r._outScenicId +} +// UpdateOutScenicId Setter +// 可选,如果需要更新out_scenic_id与ali_scenic_id的映射关系时 需要填写 +func (r *AlitripTicketScenicBindAPIRequest) SetUpdateOutScenicId(_updateOutScenicId string) error { + r._updateOutScenicId = _updateOutScenicId + r.Set("update_out_scenic_id", _updateOutScenicId) + return nil +} + +// UpdateOutScenicId Getter +func (r AlitripTicketScenicBindAPIRequest) GetUpdateOutScenicId() string { + return r._updateOutScenicId +} diff --git a/model/ticket/AlitripTicketScenicBindAPIResponse.go b/model/ticket/AlitripTicketScenicBindAPIResponse.go new file mode 100644 index 0000000000..23f61fa648 --- /dev/null +++ b/model/ticket/AlitripTicketScenicBindAPIResponse.go @@ -0,0 +1,27 @@ +package ticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【门票API2.0】门票景点绑定接口 API返回值 +alitrip.ticket.scenic.bind + +门票景点绑定接口,用于建立阿里标准景点id与商家系统景点id的映射关系。该接口同时支持新建和修改映射关系,当用户没有为ali_scenic_id建立过映射关系时,则判断为新建映射关系,否则为修改。可以通过设置update_out_scenic_id来修改ali_scenic_id与out_scenic_id的映射关系。 +*/ +type AlitripTicketScenicBindAPIResponse struct { + model.CommonResponse + AlitripTicketScenicBindAPIResponseModel +} + +// 【门票API2.0】门票景点绑定接口 成功返回结果 +type AlitripTicketScenicBindAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ticket_scenic_bind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 景点绑定结果 + FirstResult *TicketScenicResult `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/ticket/AlitripTicketScenicBindResponse.go b/model/ticket/AlitripTicketScenicBindResponse.go deleted file mode 100644 index 73103655ec..0000000000 --- a/model/ticket/AlitripTicketScenicBindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【门票API2.0】门票景点绑定接口 API返回值 -alitrip.ticket.scenic.bind - -门票景点绑定接口,用于建立阿里标准景点id与商家系统景点id的映射关系。该接口同时支持新建和修改映射关系,当用户没有为ali_scenic_id建立过映射关系时,则判断为新建映射关系,否则为修改。可以通过设置update_out_scenic_id来修改ali_scenic_id与out_scenic_id的映射关系。 -*/ -type AlitripTicketScenicBindAPIResponse struct { - model.CommonResponse - AlitripTicketScenicBindResponse -} - -// 【门票API2.0】门票景点绑定接口 成功返回结果 -type AlitripTicketScenicBindResponse struct { - XMLName xml.Name `xml:"alitrip_ticket_scenic_bind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 景点绑定结果 - FirstResult *TicketScenicResult `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/ticket/AlitripTicketScenicQueryAPIRequest.go b/model/ticket/AlitripTicketScenicQueryAPIRequest.go new file mode 100644 index 0000000000..b2ddadb350 --- /dev/null +++ b/model/ticket/AlitripTicketScenicQueryAPIRequest.go @@ -0,0 +1,80 @@ +package ticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【门票API2.0】卖家已发布门票商品列表查询接口(根据景点维度查询) API请求 +alitrip.ticket.scenic.query + +查询卖家已发布过的门票商品列表,根据景点维度聚合查询。如果卖家在该景点下未发布过任何商品,则查询不到数据! +*/ +type AlitripTicketScenicQueryAPIRequest struct { + model.Params + // 标准景点ID。ali_scenic_id,out_scenic_id二者至少需要填写一个 + _aliScenicId int64 + // 当前分页。每页默认最多返回20条数据 + _currentPage int64 + // 商家景点ID。ali_scenic_id,out_scenic_id二者至少需要填写一个 + _outScenicId string +} + +// 初始化AlitripTicketScenicQueryAPIRequest对象 +func NewAlitripTicketScenicQueryRequest() *AlitripTicketScenicQueryAPIRequest{ + return &AlitripTicketScenicQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTicketScenicQueryAPIRequest) GetApiMethodName() string { + return "alitrip.ticket.scenic.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTicketScenicQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AliScenicId Setter +// 标准景点ID。ali_scenic_id,out_scenic_id二者至少需要填写一个 +func (r *AlitripTicketScenicQueryAPIRequest) SetAliScenicId(_aliScenicId int64) error { + r._aliScenicId = _aliScenicId + r.Set("ali_scenic_id", _aliScenicId) + return nil +} + +// AliScenicId Getter +func (r AlitripTicketScenicQueryAPIRequest) GetAliScenicId() int64 { + return r._aliScenicId +} +// CurrentPage Setter +// 当前分页。每页默认最多返回20条数据 +func (r *AlitripTicketScenicQueryAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AlitripTicketScenicQueryAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// OutScenicId Setter +// 商家景点ID。ali_scenic_id,out_scenic_id二者至少需要填写一个 +func (r *AlitripTicketScenicQueryAPIRequest) SetOutScenicId(_outScenicId string) error { + r._outScenicId = _outScenicId + r.Set("out_scenic_id", _outScenicId) + return nil +} + +// OutScenicId Getter +func (r AlitripTicketScenicQueryAPIRequest) GetOutScenicId() string { + return r._outScenicId +} diff --git a/model/ticket/AlitripTicketScenicQueryAPIResponse.go b/model/ticket/AlitripTicketScenicQueryAPIResponse.go new file mode 100644 index 0000000000..3277f64681 --- /dev/null +++ b/model/ticket/AlitripTicketScenicQueryAPIResponse.go @@ -0,0 +1,27 @@ +package ticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【门票API2.0】卖家已发布门票商品列表查询接口(根据景点维度查询) API返回值 +alitrip.ticket.scenic.query + +查询卖家已发布过的门票商品列表,根据景点维度聚合查询。如果卖家在该景点下未发布过任何商品,则查询不到数据! +*/ +type AlitripTicketScenicQueryAPIResponse struct { + model.CommonResponse + AlitripTicketScenicQueryAPIResponseModel +} + +// 【门票API2.0】卖家已发布门票商品列表查询接口(根据景点维度查询) 成功返回结果 +type AlitripTicketScenicQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ticket_scenic_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + FirstResult *ScenicAndProductResult `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/ticket/AlitripTicketScenicQueryResponse.go b/model/ticket/AlitripTicketScenicQueryResponse.go deleted file mode 100644 index 54a3224a81..0000000000 --- a/model/ticket/AlitripTicketScenicQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package ticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【门票API2.0】卖家已发布门票商品列表查询接口(根据景点维度查询) API返回值 -alitrip.ticket.scenic.query - -查询卖家已发布过的门票商品列表,根据景点维度聚合查询。如果卖家在该景点下未发布过任何商品,则查询不到数据! -*/ -type AlitripTicketScenicQueryAPIResponse struct { - model.CommonResponse - AlitripTicketScenicQueryResponse -} - -// 【门票API2.0】卖家已发布门票商品列表查询接口(根据景点维度查询) 成功返回结果 -type AlitripTicketScenicQueryResponse struct { - XMLName xml.Name `xml:"alitrip_ticket_scenic_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - FirstResult *ScenicAndProductResult `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/ticket/AlitripTicketSkusBatchUploadAPIRequest.go b/model/ticket/AlitripTicketSkusBatchUploadAPIRequest.go new file mode 100644 index 0000000000..b10f423ca1 --- /dev/null +++ b/model/ticket/AlitripTicketSkusBatchUploadAPIRequest.go @@ -0,0 +1,97 @@ +package ticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【门票API2.0】门票价格库存同步接口(多票种批量更新) API请求 +alitrip.ticket.skus.batch.upload + +飞猪度假新版门票商品价格库存同步接口(多票种批量更新)。 +注1、一个票种下可以挂多个规则(规则id必须不一样,每个规则实际对应了一个sku),同一个规则可以在不同票种下使用。 +注2、日历库存和区间库存门票,统一使用DateInventory结构。对于日历库存门票请上传每一天的价格库存;对于区间库存门票,建议只上传开始和结束日期的价格库存,也支持上传每天的价格库存,系统会自动进行聚合(取第一天的价格为区间价格,累计所有天的库存为区间库存)。 +注3、该接口同时支持 新增某个规则的价格库存 和 更新现有规则的价格库存。如果不清楚是否已在某个规则下上传过价格库存,请使用alitrip.ticket.product.query接口进行查询。如果该规则在该票种下已经存在,则该接口会判断为是价格库存更新操作。 +*/ +type AlitripTicketSkusBatchUploadAPIRequest struct { + model.Params + // 特殊必填,阿里标准收费项目id。ali_product_id, item_id与out_product_id三选一,至少填写其中一个 + _aliProductId int64 + // 特殊必填,商户收费项目id。ali_product_id, item_id与out_product_id三选一,至少填写其中一个 + _outProductId string + // 特殊必填,淘宝商品id。ali_product_id, item_id与out_product_id三选一,至少填写其中一个 + _itemId int64 + // 必填,各票种下sku的价格库存参数。 + _ticketPriceRules []TicketPriceRule +} + +// 初始化AlitripTicketSkusBatchUploadAPIRequest对象 +func NewAlitripTicketSkusBatchUploadRequest() *AlitripTicketSkusBatchUploadAPIRequest{ + return &AlitripTicketSkusBatchUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTicketSkusBatchUploadAPIRequest) GetApiMethodName() string { + return "alitrip.ticket.skus.batch.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTicketSkusBatchUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AliProductId Setter +// 特殊必填,阿里标准收费项目id。ali_product_id, item_id与out_product_id三选一,至少填写其中一个 +func (r *AlitripTicketSkusBatchUploadAPIRequest) SetAliProductId(_aliProductId int64) error { + r._aliProductId = _aliProductId + r.Set("ali_product_id", _aliProductId) + return nil +} + +// AliProductId Getter +func (r AlitripTicketSkusBatchUploadAPIRequest) GetAliProductId() int64 { + return r._aliProductId +} +// OutProductId Setter +// 特殊必填,商户收费项目id。ali_product_id, item_id与out_product_id三选一,至少填写其中一个 +func (r *AlitripTicketSkusBatchUploadAPIRequest) SetOutProductId(_outProductId string) error { + r._outProductId = _outProductId + r.Set("out_product_id", _outProductId) + return nil +} + +// OutProductId Getter +func (r AlitripTicketSkusBatchUploadAPIRequest) GetOutProductId() string { + return r._outProductId +} +// ItemId Setter +// 特殊必填,淘宝商品id。ali_product_id, item_id与out_product_id三选一,至少填写其中一个 +func (r *AlitripTicketSkusBatchUploadAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlitripTicketSkusBatchUploadAPIRequest) GetItemId() int64 { + return r._itemId +} +// TicketPriceRules Setter +// 必填,各票种下sku的价格库存参数。 +func (r *AlitripTicketSkusBatchUploadAPIRequest) SetTicketPriceRules(_ticketPriceRules []TicketPriceRule) error { + r._ticketPriceRules = _ticketPriceRules + r.Set("ticket_price_rules", _ticketPriceRules) + return nil +} + +// TicketPriceRules Getter +func (r AlitripTicketSkusBatchUploadAPIRequest) GetTicketPriceRules() []TicketPriceRule { + return r._ticketPriceRules +} diff --git a/model/ticket/AlitripTicketSkusBatchUploadAPIResponse.go b/model/ticket/AlitripTicketSkusBatchUploadAPIResponse.go new file mode 100644 index 0000000000..e527101d8b --- /dev/null +++ b/model/ticket/AlitripTicketSkusBatchUploadAPIResponse.go @@ -0,0 +1,30 @@ +package ticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【门票API2.0】门票价格库存同步接口(多票种批量更新) API返回值 +alitrip.ticket.skus.batch.upload + +飞猪度假新版门票商品价格库存同步接口(多票种批量更新)。 +注1、一个票种下可以挂多个规则(规则id必须不一样,每个规则实际对应了一个sku),同一个规则可以在不同票种下使用。 +注2、日历库存和区间库存门票,统一使用DateInventory结构。对于日历库存门票请上传每一天的价格库存;对于区间库存门票,建议只上传开始和结束日期的价格库存,也支持上传每天的价格库存,系统会自动进行聚合(取第一天的价格为区间价格,累计所有天的库存为区间库存)。 +注3、该接口同时支持 新增某个规则的价格库存 和 更新现有规则的价格库存。如果不清楚是否已在某个规则下上传过价格库存,请使用alitrip.ticket.product.query接口进行查询。如果该规则在该票种下已经存在,则该接口会判断为是价格库存更新操作。 +*/ +type AlitripTicketSkusBatchUploadAPIResponse struct { + model.CommonResponse + AlitripTicketSkusBatchUploadAPIResponseModel +} + +// 【门票API2.0】门票价格库存同步接口(多票种批量更新) 成功返回结果 +type AlitripTicketSkusBatchUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ticket_skus_batch_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 价格库存同步结果 + UpdateResult *TicketItemResult `json:"update_result,omitempty" xml:"update_result,omitempty"` +} diff --git a/model/ticket/AlitripTicketSkusBatchUploadResponse.go b/model/ticket/AlitripTicketSkusBatchUploadResponse.go deleted file mode 100644 index 815116d6ee..0000000000 --- a/model/ticket/AlitripTicketSkusBatchUploadResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package ticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【门票API2.0】门票价格库存同步接口(多票种批量更新) API返回值 -alitrip.ticket.skus.batch.upload - -飞猪度假新版门票商品价格库存同步接口(多票种批量更新)。 -注1、一个票种下可以挂多个规则(规则id必须不一样,每个规则实际对应了一个sku),同一个规则可以在不同票种下使用。 -注2、日历库存和区间库存门票,统一使用DateInventory结构。对于日历库存门票请上传每一天的价格库存;对于区间库存门票,建议只上传开始和结束日期的价格库存,也支持上传每天的价格库存,系统会自动进行聚合(取第一天的价格为区间价格,累计所有天的库存为区间库存)。 -注3、该接口同时支持 新增某个规则的价格库存 和 更新现有规则的价格库存。如果不清楚是否已在某个规则下上传过价格库存,请使用alitrip.ticket.product.query接口进行查询。如果该规则在该票种下已经存在,则该接口会判断为是价格库存更新操作。 -*/ -type AlitripTicketSkusBatchUploadAPIResponse struct { - model.CommonResponse - AlitripTicketSkusBatchUploadResponse -} - -// 【门票API2.0】门票价格库存同步接口(多票种批量更新) 成功返回结果 -type AlitripTicketSkusBatchUploadResponse struct { - XMLName xml.Name `xml:"alitrip_ticket_skus_batch_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 价格库存同步结果 - UpdateResult *TicketItemResult `json:"update_result,omitempty" xml:"update_result,omitempty"` -} diff --git a/model/ticket/AlitripTicketSkusUploadAPIRequest.go b/model/ticket/AlitripTicketSkusUploadAPIRequest.go new file mode 100644 index 0000000000..068d758c6d --- /dev/null +++ b/model/ticket/AlitripTicketSkusUploadAPIRequest.go @@ -0,0 +1,139 @@ +package ticket + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【门票API2.0】门票价格库存同步接口 API请求 +alitrip.ticket.skus.upload + +航旅度假新版门票商品价格库存同步接口。 +注1、一个票种下可以挂多个规则(规则id必须不一样,每个规则实际对应了一个sku),同一个规则可以在不同票种下使用。 +注2、日历库存和区间库存门票,统一使用DateInventory结构。对于日历库存门票请上传每一天的价格库存;对于区间库存门票,建议只上传开始和结束日期的价格库存,也支持上传每天的价格库存,系统会自动进行聚合(取第一天的价格为区间价格,累计所有天的库存为区间库存)。 +注3、该接口同时支持 新增某个规则的价格库存 和 更新现有规则的价格库存。如果不清楚是否已在某个规则下上传过价格库存,请使用alitrip.ticket.product.query接口进行查询。如果该规则在该票种下已经存在,则该接口会判断为是价格库存更新操作。 +*/ +type AlitripTicketSkusUploadAPIRequest struct { + model.Params + // 特殊必填,阿里标准收费项目id。ali_product_id, item_id与out_product_id三选一,至少填写其中一个 + _aliProductId int64 + // 特殊必填,商户收费项目id。ali_product_id, item_id与out_product_id三选一,至少填写其中一个 + _outProductId string + // 特殊必填,淘宝商品id。ali_product_id, item_id与out_product_id三选一,至少填写其中一个 + _itemId int64 + // 必填,门票 票种类型 + _ticketType string + // 可选,门票场次(场次门票专用,对于场次门票必选) + _ticketSeason string + // 可选,门票区域(场次门票专用,对于场次门票必选) + _ticketArea string + // 必填,该票种下使用的价格规则。 + _priceRules []PriceRule +} + +// 初始化AlitripTicketSkusUploadAPIRequest对象 +func NewAlitripTicketSkusUploadRequest() *AlitripTicketSkusUploadAPIRequest{ + return &AlitripTicketSkusUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTicketSkusUploadAPIRequest) GetApiMethodName() string { + return "alitrip.ticket.skus.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTicketSkusUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AliProductId Setter +// 特殊必填,阿里标准收费项目id。ali_product_id, item_id与out_product_id三选一,至少填写其中一个 +func (r *AlitripTicketSkusUploadAPIRequest) SetAliProductId(_aliProductId int64) error { + r._aliProductId = _aliProductId + r.Set("ali_product_id", _aliProductId) + return nil +} + +// AliProductId Getter +func (r AlitripTicketSkusUploadAPIRequest) GetAliProductId() int64 { + return r._aliProductId +} +// OutProductId Setter +// 特殊必填,商户收费项目id。ali_product_id, item_id与out_product_id三选一,至少填写其中一个 +func (r *AlitripTicketSkusUploadAPIRequest) SetOutProductId(_outProductId string) error { + r._outProductId = _outProductId + r.Set("out_product_id", _outProductId) + return nil +} + +// OutProductId Getter +func (r AlitripTicketSkusUploadAPIRequest) GetOutProductId() string { + return r._outProductId +} +// ItemId Setter +// 特殊必填,淘宝商品id。ali_product_id, item_id与out_product_id三选一,至少填写其中一个 +func (r *AlitripTicketSkusUploadAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlitripTicketSkusUploadAPIRequest) GetItemId() int64 { + return r._itemId +} +// TicketType Setter +// 必填,门票 票种类型 +func (r *AlitripTicketSkusUploadAPIRequest) SetTicketType(_ticketType string) error { + r._ticketType = _ticketType + r.Set("ticket_type", _ticketType) + return nil +} + +// TicketType Getter +func (r AlitripTicketSkusUploadAPIRequest) GetTicketType() string { + return r._ticketType +} +// TicketSeason Setter +// 可选,门票场次(场次门票专用,对于场次门票必选) +func (r *AlitripTicketSkusUploadAPIRequest) SetTicketSeason(_ticketSeason string) error { + r._ticketSeason = _ticketSeason + r.Set("ticket_season", _ticketSeason) + return nil +} + +// TicketSeason Getter +func (r AlitripTicketSkusUploadAPIRequest) GetTicketSeason() string { + return r._ticketSeason +} +// TicketArea Setter +// 可选,门票区域(场次门票专用,对于场次门票必选) +func (r *AlitripTicketSkusUploadAPIRequest) SetTicketArea(_ticketArea string) error { + r._ticketArea = _ticketArea + r.Set("ticket_area", _ticketArea) + return nil +} + +// TicketArea Getter +func (r AlitripTicketSkusUploadAPIRequest) GetTicketArea() string { + return r._ticketArea +} +// PriceRules Setter +// 必填,该票种下使用的价格规则。 +func (r *AlitripTicketSkusUploadAPIRequest) SetPriceRules(_priceRules []PriceRule) error { + r._priceRules = _priceRules + r.Set("price_rules", _priceRules) + return nil +} + +// PriceRules Getter +func (r AlitripTicketSkusUploadAPIRequest) GetPriceRules() []PriceRule { + return r._priceRules +} diff --git a/model/ticket/AlitripTicketSkusUploadAPIResponse.go b/model/ticket/AlitripTicketSkusUploadAPIResponse.go new file mode 100644 index 0000000000..dfed5fdace --- /dev/null +++ b/model/ticket/AlitripTicketSkusUploadAPIResponse.go @@ -0,0 +1,30 @@ +package ticket + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【门票API2.0】门票价格库存同步接口 API返回值 +alitrip.ticket.skus.upload + +航旅度假新版门票商品价格库存同步接口。 +注1、一个票种下可以挂多个规则(规则id必须不一样,每个规则实际对应了一个sku),同一个规则可以在不同票种下使用。 +注2、日历库存和区间库存门票,统一使用DateInventory结构。对于日历库存门票请上传每一天的价格库存;对于区间库存门票,建议只上传开始和结束日期的价格库存,也支持上传每天的价格库存,系统会自动进行聚合(取第一天的价格为区间价格,累计所有天的库存为区间库存)。 +注3、该接口同时支持 新增某个规则的价格库存 和 更新现有规则的价格库存。如果不清楚是否已在某个规则下上传过价格库存,请使用alitrip.ticket.product.query接口进行查询。如果该规则在该票种下已经存在,则该接口会判断为是价格库存更新操作。 +*/ +type AlitripTicketSkusUploadAPIResponse struct { + model.CommonResponse + AlitripTicketSkusUploadAPIResponseModel +} + +// 【门票API2.0】门票价格库存同步接口 成功返回结果 +type AlitripTicketSkusUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_ticket_skus_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 价格库存同步结果 + FirstResult *TicketItemResult `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/ticket/AlitripTicketSkusUploadResponse.go b/model/ticket/AlitripTicketSkusUploadResponse.go deleted file mode 100644 index a372ff1d84..0000000000 --- a/model/ticket/AlitripTicketSkusUploadResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package ticket - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【门票API2.0】门票价格库存同步接口 API返回值 -alitrip.ticket.skus.upload - -航旅度假新版门票商品价格库存同步接口。 -注1、一个票种下可以挂多个规则(规则id必须不一样,每个规则实际对应了一个sku),同一个规则可以在不同票种下使用。 -注2、日历库存和区间库存门票,统一使用DateInventory结构。对于日历库存门票请上传每一天的价格库存;对于区间库存门票,建议只上传开始和结束日期的价格库存,也支持上传每天的价格库存,系统会自动进行聚合(取第一天的价格为区间价格,累计所有天的库存为区间库存)。 -注3、该接口同时支持 新增某个规则的价格库存 和 更新现有规则的价格库存。如果不清楚是否已在某个规则下上传过价格库存,请使用alitrip.ticket.product.query接口进行查询。如果该规则在该票种下已经存在,则该接口会判断为是价格库存更新操作。 -*/ -type AlitripTicketSkusUploadAPIResponse struct { - model.CommonResponse - AlitripTicketSkusUploadResponse -} - -// 【门票API2.0】门票价格库存同步接口 成功返回结果 -type AlitripTicketSkusUploadResponse struct { - XMLName xml.Name `xml:"alitrip_ticket_skus_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 价格库存同步结果 - FirstResult *TicketItemResult `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/tmallcampus/TmallCampusIndustryAppAuditQueryAPIRequest.go b/model/tmallcampus/TmallCampusIndustryAppAuditQueryAPIRequest.go new file mode 100644 index 0000000000..fcb22115e9 --- /dev/null +++ b/model/tmallcampus/TmallCampusIndustryAppAuditQueryAPIRequest.go @@ -0,0 +1,52 @@ +package tmallcampus + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫校园查询学生认证信息 API请求 +tmall.campus.industry.app.audit.query + +天猫校园查询学生认证信息 +*/ +type TmallCampusIndustryAppAuditQueryAPIRequest struct { + model.Params + // 调用来源 + _source string +} + +// 初始化TmallCampusIndustryAppAuditQueryAPIRequest对象 +func NewTmallCampusIndustryAppAuditQueryRequest() *TmallCampusIndustryAppAuditQueryAPIRequest{ + return &TmallCampusIndustryAppAuditQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCampusIndustryAppAuditQueryAPIRequest) GetApiMethodName() string { + return "tmall.campus.industry.app.audit.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCampusIndustryAppAuditQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Source Setter +// 调用来源 +func (r *TmallCampusIndustryAppAuditQueryAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TmallCampusIndustryAppAuditQueryAPIRequest) GetSource() string { + return r._source +} diff --git a/model/tmallcampus/TmallCampusIndustryAppAuditQueryAPIResponse.go b/model/tmallcampus/TmallCampusIndustryAppAuditQueryAPIResponse.go new file mode 100644 index 0000000000..85db897e0d --- /dev/null +++ b/model/tmallcampus/TmallCampusIndustryAppAuditQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcampus + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫校园查询学生认证信息 API返回值 +tmall.campus.industry.app.audit.query + +天猫校园查询学生认证信息 +*/ +type TmallCampusIndustryAppAuditQueryAPIResponse struct { + model.CommonResponse + TmallCampusIndustryAppAuditQueryAPIResponseModel +} + +// 天猫校园查询学生认证信息 成功返回结果 +type TmallCampusIndustryAppAuditQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_campus_industry_app_audit_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcampus/TmallCampusIndustryAppAuditQueryResponse.go b/model/tmallcampus/TmallCampusIndustryAppAuditQueryResponse.go deleted file mode 100644 index c7152f6847..0000000000 --- a/model/tmallcampus/TmallCampusIndustryAppAuditQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcampus - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫校园查询学生认证信息 API返回值 -tmall.campus.industry.app.audit.query - -天猫校园查询学生认证信息 -*/ -type TmallCampusIndustryAppAuditQueryAPIResponse struct { - model.CommonResponse - TmallCampusIndustryAppAuditQueryResponse -} - -// 天猫校园查询学生认证信息 成功返回结果 -type TmallCampusIndustryAppAuditQueryResponse struct { - XMLName xml.Name `xml:"tmall_campus_industry_app_audit_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallcar/TaobaoCarVehicleinfoRegisterAPIRequest.go b/model/tmallcar/TaobaoCarVehicleinfoRegisterAPIRequest.go new file mode 100644 index 0000000000..a783faa902 --- /dev/null +++ b/model/tmallcar/TaobaoCarVehicleinfoRegisterAPIRequest.go @@ -0,0 +1,52 @@ +package tmallcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +全量车型导入 API请求 +taobao.car.vehicleinfo.register + +全量车型导入 +*/ +type TaobaoCarVehicleinfoRegisterAPIRequest struct { + model.Params + // 参数集合 + _paramList []FullInfoCarModelDto +} + +// 初始化TaobaoCarVehicleinfoRegisterAPIRequest对象 +func NewTaobaoCarVehicleinfoRegisterRequest() *TaobaoCarVehicleinfoRegisterAPIRequest{ + return &TaobaoCarVehicleinfoRegisterAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoCarVehicleinfoRegisterAPIRequest) GetApiMethodName() string { + return "taobao.car.vehicleinfo.register" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoCarVehicleinfoRegisterAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamList Setter +// 参数集合 +func (r *TaobaoCarVehicleinfoRegisterAPIRequest) SetParamList(_paramList []FullInfoCarModelDto) error { + r._paramList = _paramList + r.Set("param_list", _paramList) + return nil +} + +// ParamList Getter +func (r TaobaoCarVehicleinfoRegisterAPIRequest) GetParamList() []FullInfoCarModelDto { + return r._paramList +} diff --git a/model/tmallcar/TaobaoCarVehicleinfoRegisterAPIResponse.go b/model/tmallcar/TaobaoCarVehicleinfoRegisterAPIResponse.go new file mode 100644 index 0000000000..1c95c441e1 --- /dev/null +++ b/model/tmallcar/TaobaoCarVehicleinfoRegisterAPIResponse.go @@ -0,0 +1,33 @@ +package tmallcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +全量车型导入 API返回值 +taobao.car.vehicleinfo.register + +全量车型导入 +*/ +type TaobaoCarVehicleinfoRegisterAPIResponse struct { + model.CommonResponse + TaobaoCarVehicleinfoRegisterAPIResponseModel +} + +// 全量车型导入 成功返回结果 +type TaobaoCarVehicleinfoRegisterAPIResponseModel struct { + XMLName xml.Name `xml:"car_vehicleinfo_register_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回素材id + Data bool `json:"data,omitempty" xml:"data,omitempty"` + // 错误码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 是否成功 + ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` +} diff --git a/model/tmallcar/TaobaoCarVehicleinfoRegisterResponse.go b/model/tmallcar/TaobaoCarVehicleinfoRegisterResponse.go deleted file mode 100644 index 26759e89fe..0000000000 --- a/model/tmallcar/TaobaoCarVehicleinfoRegisterResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -全量车型导入 API返回值 -taobao.car.vehicleinfo.register - -全量车型导入 -*/ -type TaobaoCarVehicleinfoRegisterAPIResponse struct { - model.CommonResponse - TaobaoCarVehicleinfoRegisterResponse -} - -// 全量车型导入 成功返回结果 -type TaobaoCarVehicleinfoRegisterResponse struct { - XMLName xml.Name `xml:"car_vehicleinfo_register_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回素材id - Data bool `json:"data,omitempty" xml:"data,omitempty"` - // 错误码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 是否成功 - ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` -} diff --git a/model/tmallcar/TmallAliautoAutofinanceCreditReceiveAPIRequest.go b/model/tmallcar/TmallAliautoAutofinanceCreditReceiveAPIRequest.go new file mode 100644 index 0000000000..ab60db2945 --- /dev/null +++ b/model/tmallcar/TmallAliautoAutofinanceCreditReceiveAPIRequest.go @@ -0,0 +1,52 @@ +package tmallcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +接收授信结果通知 API请求 +tmall.aliauto.autofinance.credit.receive + +天猫汽车的金融业务场景中,需要接收外部ISV对用户授信申请的通知结果. +*/ +type TmallAliautoAutofinanceCreditReceiveAPIRequest struct { + model.Params + // 授信通知描述 + _creditReceiveDto *CreditReceiveDto +} + +// 初始化TmallAliautoAutofinanceCreditReceiveAPIRequest对象 +func NewTmallAliautoAutofinanceCreditReceiveRequest() *TmallAliautoAutofinanceCreditReceiveAPIRequest{ + return &TmallAliautoAutofinanceCreditReceiveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallAliautoAutofinanceCreditReceiveAPIRequest) GetApiMethodName() string { + return "tmall.aliauto.autofinance.credit.receive" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallAliautoAutofinanceCreditReceiveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CreditReceiveDto Setter +// 授信通知描述 +func (r *TmallAliautoAutofinanceCreditReceiveAPIRequest) SetCreditReceiveDto(_creditReceiveDto *CreditReceiveDto) error { + r._creditReceiveDto = _creditReceiveDto + r.Set("credit_receive_dto", _creditReceiveDto) + return nil +} + +// CreditReceiveDto Getter +func (r TmallAliautoAutofinanceCreditReceiveAPIRequest) GetCreditReceiveDto() *CreditReceiveDto { + return r._creditReceiveDto +} diff --git a/model/tmallcar/TmallAliautoAutofinanceCreditReceiveAPIResponse.go b/model/tmallcar/TmallAliautoAutofinanceCreditReceiveAPIResponse.go new file mode 100644 index 0000000000..7ee5e8d2c5 --- /dev/null +++ b/model/tmallcar/TmallAliautoAutofinanceCreditReceiveAPIResponse.go @@ -0,0 +1,33 @@ +package tmallcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +接收授信结果通知 API返回值 +tmall.aliauto.autofinance.credit.receive + +天猫汽车的金融业务场景中,需要接收外部ISV对用户授信申请的通知结果. +*/ +type TmallAliautoAutofinanceCreditReceiveAPIResponse struct { + model.CommonResponse + TmallAliautoAutofinanceCreditReceiveAPIResponseModel +} + +// 接收授信结果通知 成功返回结果 +type TmallAliautoAutofinanceCreditReceiveAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_aliauto_autofinance_credit_receive_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Succes bool `json:"succes,omitempty" xml:"succes,omitempty"` + // 业务结果说明 + Data string `json:"data,omitempty" xml:"data,omitempty"` + // 错误信息描述 + ErorMessage string `json:"eror_message,omitempty" xml:"eror_message,omitempty"` + // 错误码 + ErorCode string `json:"eror_code,omitempty" xml:"eror_code,omitempty"` +} diff --git a/model/tmallcar/TmallAliautoAutofinanceCreditReceiveResponse.go b/model/tmallcar/TmallAliautoAutofinanceCreditReceiveResponse.go deleted file mode 100644 index 64fc58853d..0000000000 --- a/model/tmallcar/TmallAliautoAutofinanceCreditReceiveResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -接收授信结果通知 API返回值 -tmall.aliauto.autofinance.credit.receive - -天猫汽车的金融业务场景中,需要接收外部ISV对用户授信申请的通知结果. -*/ -type TmallAliautoAutofinanceCreditReceiveAPIResponse struct { - model.CommonResponse - TmallAliautoAutofinanceCreditReceiveResponse -} - -// 接收授信结果通知 成功返回结果 -type TmallAliautoAutofinanceCreditReceiveResponse struct { - XMLName xml.Name `xml:"tmall_aliauto_autofinance_credit_receive_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Succes bool `json:"succes,omitempty" xml:"succes,omitempty"` - // 业务结果说明 - Data string `json:"data,omitempty" xml:"data,omitempty"` - // 错误信息描述 - ErorMessage string `json:"eror_message,omitempty" xml:"eror_message,omitempty"` - // 错误码 - ErorCode string `json:"eror_code,omitempty" xml:"eror_code,omitempty"` -} diff --git a/model/tmallcar/TmallAliautoAutofinanceLoanReceiveAPIRequest.go b/model/tmallcar/TmallAliautoAutofinanceLoanReceiveAPIRequest.go new file mode 100644 index 0000000000..01542d63f9 --- /dev/null +++ b/model/tmallcar/TmallAliautoAutofinanceLoanReceiveAPIRequest.go @@ -0,0 +1,52 @@ +package tmallcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +接收放款结果通知 API请求 +tmall.aliauto.autofinance.loan.receive + +天猫汽车的金融业务场景中,需要接收外部ISV对用户支用放款的通知结果 +*/ +type TmallAliautoAutofinanceLoanReceiveAPIRequest struct { + model.Params + // 接收外部金融结构的放款结果通知参数 + _loanReceiveDto *LoanReceiveDto +} + +// 初始化TmallAliautoAutofinanceLoanReceiveAPIRequest对象 +func NewTmallAliautoAutofinanceLoanReceiveRequest() *TmallAliautoAutofinanceLoanReceiveAPIRequest{ + return &TmallAliautoAutofinanceLoanReceiveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallAliautoAutofinanceLoanReceiveAPIRequest) GetApiMethodName() string { + return "tmall.aliauto.autofinance.loan.receive" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallAliautoAutofinanceLoanReceiveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LoanReceiveDto Setter +// 接收外部金融结构的放款结果通知参数 +func (r *TmallAliautoAutofinanceLoanReceiveAPIRequest) SetLoanReceiveDto(_loanReceiveDto *LoanReceiveDto) error { + r._loanReceiveDto = _loanReceiveDto + r.Set("loan_receive_dto", _loanReceiveDto) + return nil +} + +// LoanReceiveDto Getter +func (r TmallAliautoAutofinanceLoanReceiveAPIRequest) GetLoanReceiveDto() *LoanReceiveDto { + return r._loanReceiveDto +} diff --git a/model/tmallcar/TmallAliautoAutofinanceLoanReceiveAPIResponse.go b/model/tmallcar/TmallAliautoAutofinanceLoanReceiveAPIResponse.go new file mode 100644 index 0000000000..0e19117800 --- /dev/null +++ b/model/tmallcar/TmallAliautoAutofinanceLoanReceiveAPIResponse.go @@ -0,0 +1,33 @@ +package tmallcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +接收放款结果通知 API返回值 +tmall.aliauto.autofinance.loan.receive + +天猫汽车的金融业务场景中,需要接收外部ISV对用户支用放款的通知结果 +*/ +type TmallAliautoAutofinanceLoanReceiveAPIResponse struct { + model.CommonResponse + TmallAliautoAutofinanceLoanReceiveAPIResponseModel +} + +// 接收放款结果通知 成功返回结果 +type TmallAliautoAutofinanceLoanReceiveAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_aliauto_autofinance_loan_receive_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + Succes bool `json:"succes,omitempty" xml:"succes,omitempty"` + // 错误码 + ErorCode string `json:"eror_code,omitempty" xml:"eror_code,omitempty"` + // 错误信息描述 + ErorMessage string `json:"eror_message,omitempty" xml:"eror_message,omitempty"` + // 业务结果说明 + Data string `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/tmallcar/TmallAliautoAutofinanceLoanReceiveResponse.go b/model/tmallcar/TmallAliautoAutofinanceLoanReceiveResponse.go deleted file mode 100644 index ae73da056b..0000000000 --- a/model/tmallcar/TmallAliautoAutofinanceLoanReceiveResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -接收放款结果通知 API返回值 -tmall.aliauto.autofinance.loan.receive - -天猫汽车的金融业务场景中,需要接收外部ISV对用户支用放款的通知结果 -*/ -type TmallAliautoAutofinanceLoanReceiveAPIResponse struct { - model.CommonResponse - TmallAliautoAutofinanceLoanReceiveResponse -} - -// 接收放款结果通知 成功返回结果 -type TmallAliautoAutofinanceLoanReceiveResponse struct { - XMLName xml.Name `xml:"tmall_aliauto_autofinance_loan_receive_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - Succes bool `json:"succes,omitempty" xml:"succes,omitempty"` - // 错误码 - ErorCode string `json:"eror_code,omitempty" xml:"eror_code,omitempty"` - // 错误信息描述 - ErorMessage string `json:"eror_message,omitempty" xml:"eror_message,omitempty"` - // 业务结果说明 - Data string `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/tmallcar/TmallAliautoMetaReceiveAPIRequest.go b/model/tmallcar/TmallAliautoMetaReceiveAPIRequest.go new file mode 100644 index 0000000000..eb7b3d4524 --- /dev/null +++ b/model/tmallcar/TmallAliautoMetaReceiveAPIRequest.go @@ -0,0 +1,52 @@ +package tmallcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车说明书元数据上传 API请求 +tmall.aliauto.meta.receive + +天猫汽车对外提供的汽车资源元数据上传接口 +*/ +type TmallAliautoMetaReceiveAPIRequest struct { + model.Params + // 元数据参数集 + _command *ResourceMetaCommand +} + +// 初始化TmallAliautoMetaReceiveAPIRequest对象 +func NewTmallAliautoMetaReceiveRequest() *TmallAliautoMetaReceiveAPIRequest{ + return &TmallAliautoMetaReceiveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallAliautoMetaReceiveAPIRequest) GetApiMethodName() string { + return "tmall.aliauto.meta.receive" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallAliautoMetaReceiveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Command Setter +// 元数据参数集 +func (r *TmallAliautoMetaReceiveAPIRequest) SetCommand(_command *ResourceMetaCommand) error { + r._command = _command + r.Set("command", _command) + return nil +} + +// Command Getter +func (r TmallAliautoMetaReceiveAPIRequest) GetCommand() *ResourceMetaCommand { + return r._command +} diff --git a/model/tmallcar/TmallAliautoMetaReceiveAPIResponse.go b/model/tmallcar/TmallAliautoMetaReceiveAPIResponse.go new file mode 100644 index 0000000000..1bdf45a9a9 --- /dev/null +++ b/model/tmallcar/TmallAliautoMetaReceiveAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车说明书元数据上传 API返回值 +tmall.aliauto.meta.receive + +天猫汽车对外提供的汽车资源元数据上传接口 +*/ +type TmallAliautoMetaReceiveAPIResponse struct { + model.CommonResponse + TmallAliautoMetaReceiveAPIResponseModel +} + +// 汽车说明书元数据上传 成功返回结果 +type TmallAliautoMetaReceiveAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_aliauto_meta_receive_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TmallAliautoMetaReceiveResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcar/TmallAliautoMetaReceiveResponse.go b/model/tmallcar/TmallAliautoMetaReceiveResponse.go deleted file mode 100644 index 7b269023b2..0000000000 --- a/model/tmallcar/TmallAliautoMetaReceiveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -汽车说明书元数据上传 API返回值 -tmall.aliauto.meta.receive - -天猫汽车对外提供的汽车资源元数据上传接口 -*/ -type TmallAliautoMetaReceiveAPIResponse struct { - model.CommonResponse - TmallAliautoMetaReceiveResponse -} - -// 汽车说明书元数据上传 成功返回结果 -type TmallAliautoMetaReceiveResponse struct { - XMLName xml.Name `xml:"tmall_aliauto_meta_receive_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TmallAliautoMetaReceiveResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallcar/TmallAliautoReceiptStateUpdateAPIRequest.go b/model/tmallcar/TmallAliautoReceiptStateUpdateAPIRequest.go new file mode 100644 index 0000000000..f09f709928 --- /dev/null +++ b/model/tmallcar/TmallAliautoReceiptStateUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package tmallcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务工单状态更新 API请求 +tmall.aliauto.receipt.state.update + +二轮车服务工单状态更新 +*/ +type TmallAliautoReceiptStateUpdateAPIRequest struct { + model.Params + // FINISH:服务完成 + _status string + // 服务工单id + _receiptId int64 +} + +// 初始化TmallAliautoReceiptStateUpdateAPIRequest对象 +func NewTmallAliautoReceiptStateUpdateRequest() *TmallAliautoReceiptStateUpdateAPIRequest{ + return &TmallAliautoReceiptStateUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallAliautoReceiptStateUpdateAPIRequest) GetApiMethodName() string { + return "tmall.aliauto.receipt.state.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallAliautoReceiptStateUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Status Setter +// FINISH:服务完成 +func (r *TmallAliautoReceiptStateUpdateAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TmallAliautoReceiptStateUpdateAPIRequest) GetStatus() string { + return r._status +} +// ReceiptId Setter +// 服务工单id +func (r *TmallAliautoReceiptStateUpdateAPIRequest) SetReceiptId(_receiptId int64) error { + r._receiptId = _receiptId + r.Set("receipt_id", _receiptId) + return nil +} + +// ReceiptId Getter +func (r TmallAliautoReceiptStateUpdateAPIRequest) GetReceiptId() int64 { + return r._receiptId +} diff --git a/model/tmallcar/TmallAliautoReceiptStateUpdateAPIResponse.go b/model/tmallcar/TmallAliautoReceiptStateUpdateAPIResponse.go new file mode 100644 index 0000000000..218eefdd04 --- /dev/null +++ b/model/tmallcar/TmallAliautoReceiptStateUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务工单状态更新 API返回值 +tmall.aliauto.receipt.state.update + +二轮车服务工单状态更新 +*/ +type TmallAliautoReceiptStateUpdateAPIResponse struct { + model.CommonResponse + TmallAliautoReceiptStateUpdateAPIResponseModel +} + +// 服务工单状态更新 成功返回结果 +type TmallAliautoReceiptStateUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_aliauto_receipt_state_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回包装类 + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcar/TmallAliautoReceiptStateUpdateResponse.go b/model/tmallcar/TmallAliautoReceiptStateUpdateResponse.go deleted file mode 100644 index da1746d6f4..0000000000 --- a/model/tmallcar/TmallAliautoReceiptStateUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务工单状态更新 API返回值 -tmall.aliauto.receipt.state.update - -二轮车服务工单状态更新 -*/ -type TmallAliautoReceiptStateUpdateAPIResponse struct { - model.CommonResponse - TmallAliautoReceiptStateUpdateResponse -} - -// 服务工单状态更新 成功返回结果 -type TmallAliautoReceiptStateUpdateResponse struct { - XMLName xml.Name `xml:"tmall_aliauto_receipt_state_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回包装类 - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallcar/TmallAliautoServiceReceiptGetAPIRequest.go b/model/tmallcar/TmallAliautoServiceReceiptGetAPIRequest.go new file mode 100644 index 0000000000..34e4e965ab --- /dev/null +++ b/model/tmallcar/TmallAliautoServiceReceiptGetAPIRequest.go @@ -0,0 +1,52 @@ +package tmallcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +isv查询服务工单详情 API请求 +tmall.aliauto.service.receipt.get + +isv查询服务工单详情 +*/ +type TmallAliautoServiceReceiptGetAPIRequest struct { + model.Params + // 工单号 + _receiptId int64 +} + +// 初始化TmallAliautoServiceReceiptGetAPIRequest对象 +func NewTmallAliautoServiceReceiptGetRequest() *TmallAliautoServiceReceiptGetAPIRequest{ + return &TmallAliautoServiceReceiptGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallAliautoServiceReceiptGetAPIRequest) GetApiMethodName() string { + return "tmall.aliauto.service.receipt.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallAliautoServiceReceiptGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReceiptId Setter +// 工单号 +func (r *TmallAliautoServiceReceiptGetAPIRequest) SetReceiptId(_receiptId int64) error { + r._receiptId = _receiptId + r.Set("receipt_id", _receiptId) + return nil +} + +// ReceiptId Getter +func (r TmallAliautoServiceReceiptGetAPIRequest) GetReceiptId() int64 { + return r._receiptId +} diff --git a/model/tmallcar/TmallAliautoServiceReceiptGetAPIResponse.go b/model/tmallcar/TmallAliautoServiceReceiptGetAPIResponse.go new file mode 100644 index 0000000000..d7e9cd45d5 --- /dev/null +++ b/model/tmallcar/TmallAliautoServiceReceiptGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +isv查询服务工单详情 API返回值 +tmall.aliauto.service.receipt.get + +isv查询服务工单详情 +*/ +type TmallAliautoServiceReceiptGetAPIResponse struct { + model.CommonResponse + TmallAliautoServiceReceiptGetAPIResponseModel +} + +// isv查询服务工单详情 成功返回结果 +type TmallAliautoServiceReceiptGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_aliauto_service_receipt_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回包装类 + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcar/TmallAliautoServiceReceiptGetResponse.go b/model/tmallcar/TmallAliautoServiceReceiptGetResponse.go deleted file mode 100644 index a50fd956b3..0000000000 --- a/model/tmallcar/TmallAliautoServiceReceiptGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -isv查询服务工单详情 API返回值 -tmall.aliauto.service.receipt.get - -isv查询服务工单详情 -*/ -type TmallAliautoServiceReceiptGetAPIResponse struct { - model.CommonResponse - TmallAliautoServiceReceiptGetResponse -} - -// isv查询服务工单详情 成功返回结果 -type TmallAliautoServiceReceiptGetResponse struct { - XMLName xml.Name `xml:"tmall_aliauto_service_receipt_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回包装类 - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallcar/TmallAliautoWisdomdataModelReciveAPIRequest.go b/model/tmallcar/TmallAliautoWisdomdataModelReciveAPIRequest.go new file mode 100644 index 0000000000..88c62f94e7 --- /dev/null +++ b/model/tmallcar/TmallAliautoWisdomdataModelReciveAPIRequest.go @@ -0,0 +1,80 @@ +package tmallcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +第三方车型数据上传 API请求 +tmall.aliauto.wisdomdata.model.recive + +天猫汽车对外提供的汽车车型数据上传接口 +*/ +type TmallAliautoWisdomdataModelReciveAPIRequest struct { + model.Params + // JSON格式车型完整数据 + _modelDetail string + // 接入的第三方库中的车型唯一id + _resourceId string + // 接入的第三方库的名称 + _fromSource string +} + +// 初始化TmallAliautoWisdomdataModelReciveAPIRequest对象 +func NewTmallAliautoWisdomdataModelReciveRequest() *TmallAliautoWisdomdataModelReciveAPIRequest{ + return &TmallAliautoWisdomdataModelReciveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallAliautoWisdomdataModelReciveAPIRequest) GetApiMethodName() string { + return "tmall.aliauto.wisdomdata.model.recive" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallAliautoWisdomdataModelReciveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ModelDetail Setter +// JSON格式车型完整数据 +func (r *TmallAliautoWisdomdataModelReciveAPIRequest) SetModelDetail(_modelDetail string) error { + r._modelDetail = _modelDetail + r.Set("model_detail", _modelDetail) + return nil +} + +// ModelDetail Getter +func (r TmallAliautoWisdomdataModelReciveAPIRequest) GetModelDetail() string { + return r._modelDetail +} +// ResourceId Setter +// 接入的第三方库中的车型唯一id +func (r *TmallAliautoWisdomdataModelReciveAPIRequest) SetResourceId(_resourceId string) error { + r._resourceId = _resourceId + r.Set("resource_id", _resourceId) + return nil +} + +// ResourceId Getter +func (r TmallAliautoWisdomdataModelReciveAPIRequest) GetResourceId() string { + return r._resourceId +} +// FromSource Setter +// 接入的第三方库的名称 +func (r *TmallAliautoWisdomdataModelReciveAPIRequest) SetFromSource(_fromSource string) error { + r._fromSource = _fromSource + r.Set("from_source", _fromSource) + return nil +} + +// FromSource Getter +func (r TmallAliautoWisdomdataModelReciveAPIRequest) GetFromSource() string { + return r._fromSource +} diff --git a/model/tmallcar/TmallAliautoWisdomdataModelReciveAPIResponse.go b/model/tmallcar/TmallAliautoWisdomdataModelReciveAPIResponse.go new file mode 100644 index 0000000000..c0fb9bf62e --- /dev/null +++ b/model/tmallcar/TmallAliautoWisdomdataModelReciveAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +第三方车型数据上传 API返回值 +tmall.aliauto.wisdomdata.model.recive + +天猫汽车对外提供的汽车车型数据上传接口 +*/ +type TmallAliautoWisdomdataModelReciveAPIResponse struct { + model.CommonResponse + TmallAliautoWisdomdataModelReciveAPIResponseModel +} + +// 第三方车型数据上传 成功返回结果 +type TmallAliautoWisdomdataModelReciveAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_aliauto_wisdomdata_model_recive_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TmallAliautoWisdomdataModelReciveResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcar/TmallAliautoWisdomdataModelReciveResponse.go b/model/tmallcar/TmallAliautoWisdomdataModelReciveResponse.go deleted file mode 100644 index 9cfd8371ed..0000000000 --- a/model/tmallcar/TmallAliautoWisdomdataModelReciveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -第三方车型数据上传 API返回值 -tmall.aliauto.wisdomdata.model.recive - -天猫汽车对外提供的汽车车型数据上传接口 -*/ -type TmallAliautoWisdomdataModelReciveAPIResponse struct { - model.CommonResponse - TmallAliautoWisdomdataModelReciveResponse -} - -// 第三方车型数据上传 成功返回结果 -type TmallAliautoWisdomdataModelReciveResponse struct { - XMLName xml.Name `xml:"tmall_aliauto_wisdomdata_model_recive_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TmallAliautoWisdomdataModelReciveResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallcar/TmallCarLeaseCitysynchronizeAPIRequest.go b/model/tmallcar/TmallCarLeaseCitysynchronizeAPIRequest.go new file mode 100644 index 0000000000..06ccb07c13 --- /dev/null +++ b/model/tmallcar/TmallCarLeaseCitysynchronizeAPIRequest.go @@ -0,0 +1,52 @@ +package tmallcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫开新车租后分期城市信息同步 API请求 +tmall.car.lease.citysynchronize + +天猫开新车租后分期城市信息同步 +*/ +type TmallCarLeaseCitysynchronizeAPIRequest struct { + model.Params + // 地址信息 + _paramAreaDto *AreaDto +} + +// 初始化TmallCarLeaseCitysynchronizeAPIRequest对象 +func NewTmallCarLeaseCitysynchronizeRequest() *TmallCarLeaseCitysynchronizeAPIRequest{ + return &TmallCarLeaseCitysynchronizeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarLeaseCitysynchronizeAPIRequest) GetApiMethodName() string { + return "tmall.car.lease.citysynchronize" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarLeaseCitysynchronizeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamAreaDto Setter +// 地址信息 +func (r *TmallCarLeaseCitysynchronizeAPIRequest) SetParamAreaDto(_paramAreaDto *AreaDto) error { + r._paramAreaDto = _paramAreaDto + r.Set("param_area_dto", _paramAreaDto) + return nil +} + +// ParamAreaDto Getter +func (r TmallCarLeaseCitysynchronizeAPIRequest) GetParamAreaDto() *AreaDto { + return r._paramAreaDto +} diff --git a/model/tmallcar/TmallCarLeaseCitysynchronizeAPIResponse.go b/model/tmallcar/TmallCarLeaseCitysynchronizeAPIResponse.go new file mode 100644 index 0000000000..5a4c0f93b2 --- /dev/null +++ b/model/tmallcar/TmallCarLeaseCitysynchronizeAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫开新车租后分期城市信息同步 API返回值 +tmall.car.lease.citysynchronize + +天猫开新车租后分期城市信息同步 +*/ +type TmallCarLeaseCitysynchronizeAPIResponse struct { + model.CommonResponse + TmallCarLeaseCitysynchronizeAPIResponseModel +} + +// 天猫开新车租后分期城市信息同步 成功返回结果 +type TmallCarLeaseCitysynchronizeAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_lease_citysynchronize_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcar/TmallCarLeaseCitysynchronizeResponse.go b/model/tmallcar/TmallCarLeaseCitysynchronizeResponse.go deleted file mode 100644 index c7890b6fb7..0000000000 --- a/model/tmallcar/TmallCarLeaseCitysynchronizeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫开新车租后分期城市信息同步 API返回值 -tmall.car.lease.citysynchronize - -天猫开新车租后分期城市信息同步 -*/ -type TmallCarLeaseCitysynchronizeAPIResponse struct { - model.CommonResponse - TmallCarLeaseCitysynchronizeResponse -} - -// 天猫开新车租后分期城市信息同步 成功返回结果 -type TmallCarLeaseCitysynchronizeResponse struct { - XMLName xml.Name `xml:"tmall_car_lease_citysynchronize_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallcar/TmallCarLeaseContractdownloadAPIRequest.go b/model/tmallcar/TmallCarLeaseContractdownloadAPIRequest.go new file mode 100644 index 0000000000..495844d6d3 --- /dev/null +++ b/model/tmallcar/TmallCarLeaseContractdownloadAPIRequest.go @@ -0,0 +1,66 @@ +package tmallcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫开新车租后合同下载 API请求 +tmall.car.lease.contractdownload + +天猫开新车租后合同下载 +*/ +type TmallCarLeaseContractdownloadAPIRequest struct { + model.Params + // 天猫开新车订单id + _orderId int64 + // 续租协议: 1, 全款购车协议: 2,分期购买协议:3, 分期购买车辆资产验收协议:4,分期购买车辆抵押:5, 分期购买融资租赁合同:6 + _type string +} + +// 初始化TmallCarLeaseContractdownloadAPIRequest对象 +func NewTmallCarLeaseContractdownloadRequest() *TmallCarLeaseContractdownloadAPIRequest{ + return &TmallCarLeaseContractdownloadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarLeaseContractdownloadAPIRequest) GetApiMethodName() string { + return "tmall.car.lease.contractdownload" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarLeaseContractdownloadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 天猫开新车订单id +func (r *TmallCarLeaseContractdownloadAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TmallCarLeaseContractdownloadAPIRequest) GetOrderId() int64 { + return r._orderId +} +// Type Setter +// 续租协议: 1, 全款购车协议: 2,分期购买协议:3, 分期购买车辆资产验收协议:4,分期购买车辆抵押:5, 分期购买融资租赁合同:6 +func (r *TmallCarLeaseContractdownloadAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TmallCarLeaseContractdownloadAPIRequest) GetType() string { + return r._type +} diff --git a/model/tmallcar/TmallCarLeaseContractdownloadAPIResponse.go b/model/tmallcar/TmallCarLeaseContractdownloadAPIResponse.go new file mode 100644 index 0000000000..556ce532e0 --- /dev/null +++ b/model/tmallcar/TmallCarLeaseContractdownloadAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫开新车租后合同下载 API返回值 +tmall.car.lease.contractdownload + +天猫开新车租后合同下载 +*/ +type TmallCarLeaseContractdownloadAPIResponse struct { + model.CommonResponse + TmallCarLeaseContractdownloadAPIResponseModel +} + +// 天猫开新车租后合同下载 成功返回结果 +type TmallCarLeaseContractdownloadAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_lease_contractdownload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcar/TmallCarLeaseContractdownloadResponse.go b/model/tmallcar/TmallCarLeaseContractdownloadResponse.go deleted file mode 100644 index 4da6c378a1..0000000000 --- a/model/tmallcar/TmallCarLeaseContractdownloadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫开新车租后合同下载 API返回值 -tmall.car.lease.contractdownload - -天猫开新车租后合同下载 -*/ -type TmallCarLeaseContractdownloadAPIResponse struct { - model.CommonResponse - TmallCarLeaseContractdownloadResponse -} - -// 天猫开新车租后合同下载 成功返回结果 -type TmallCarLeaseContractdownloadResponse struct { - XMLName xml.Name `xml:"tmall_car_lease_contractdownload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallcar/TmallCarLeaseExceptionflowsynchronizeAPIRequest.go b/model/tmallcar/TmallCarLeaseExceptionflowsynchronizeAPIRequest.go new file mode 100644 index 0000000000..56f720563a --- /dev/null +++ b/model/tmallcar/TmallCarLeaseExceptionflowsynchronizeAPIRequest.go @@ -0,0 +1,94 @@ +package tmallcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫开新车租后异常流线下处理状态通知接口 API请求 +tmall.car.lease.exceptionflowsynchronize + +天猫开新车租后异常流线下处理状态通知接口 +*/ +type TmallCarLeaseExceptionflowsynchronizeAPIRequest struct { + model.Params + // 天猫开新车订单id + _orderId int64 + // 1:开始切换为异常流,2:线下处理完成 + _status int64 + // 异常流类型,0.退车,1.买断,2.分期,3.续租 + _flowType int64 + // 切换原因描述 + _desc string +} + +// 初始化TmallCarLeaseExceptionflowsynchronizeAPIRequest对象 +func NewTmallCarLeaseExceptionflowsynchronizeRequest() *TmallCarLeaseExceptionflowsynchronizeAPIRequest{ + return &TmallCarLeaseExceptionflowsynchronizeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarLeaseExceptionflowsynchronizeAPIRequest) GetApiMethodName() string { + return "tmall.car.lease.exceptionflowsynchronize" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarLeaseExceptionflowsynchronizeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 天猫开新车订单id +func (r *TmallCarLeaseExceptionflowsynchronizeAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TmallCarLeaseExceptionflowsynchronizeAPIRequest) GetOrderId() int64 { + return r._orderId +} +// Status Setter +// 1:开始切换为异常流,2:线下处理完成 +func (r *TmallCarLeaseExceptionflowsynchronizeAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TmallCarLeaseExceptionflowsynchronizeAPIRequest) GetStatus() int64 { + return r._status +} +// FlowType Setter +// 异常流类型,0.退车,1.买断,2.分期,3.续租 +func (r *TmallCarLeaseExceptionflowsynchronizeAPIRequest) SetFlowType(_flowType int64) error { + r._flowType = _flowType + r.Set("flow_type", _flowType) + return nil +} + +// FlowType Getter +func (r TmallCarLeaseExceptionflowsynchronizeAPIRequest) GetFlowType() int64 { + return r._flowType +} +// Desc Setter +// 切换原因描述 +func (r *TmallCarLeaseExceptionflowsynchronizeAPIRequest) SetDesc(_desc string) error { + r._desc = _desc + r.Set("desc", _desc) + return nil +} + +// Desc Getter +func (r TmallCarLeaseExceptionflowsynchronizeAPIRequest) GetDesc() string { + return r._desc +} diff --git a/model/tmallcar/TmallCarLeaseExceptionflowsynchronizeAPIResponse.go b/model/tmallcar/TmallCarLeaseExceptionflowsynchronizeAPIResponse.go new file mode 100644 index 0000000000..fa8917c5bb --- /dev/null +++ b/model/tmallcar/TmallCarLeaseExceptionflowsynchronizeAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫开新车租后异常流线下处理状态通知接口 API返回值 +tmall.car.lease.exceptionflowsynchronize + +天猫开新车租后异常流线下处理状态通知接口 +*/ +type TmallCarLeaseExceptionflowsynchronizeAPIResponse struct { + model.CommonResponse + TmallCarLeaseExceptionflowsynchronizeAPIResponseModel +} + +// 天猫开新车租后异常流线下处理状态通知接口 成功返回结果 +type TmallCarLeaseExceptionflowsynchronizeAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_lease_exceptionflowsynchronize_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcar/TmallCarLeaseExceptionflowsynchronizeResponse.go b/model/tmallcar/TmallCarLeaseExceptionflowsynchronizeResponse.go deleted file mode 100644 index 3ecf516764..0000000000 --- a/model/tmallcar/TmallCarLeaseExceptionflowsynchronizeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫开新车租后异常流线下处理状态通知接口 API返回值 -tmall.car.lease.exceptionflowsynchronize - -天猫开新车租后异常流线下处理状态通知接口 -*/ -type TmallCarLeaseExceptionflowsynchronizeAPIResponse struct { - model.CommonResponse - TmallCarLeaseExceptionflowsynchronizeResponse -} - -// 天猫开新车租后异常流线下处理状态通知接口 成功返回结果 -type TmallCarLeaseExceptionflowsynchronizeResponse struct { - XMLName xml.Name `xml:"tmall_car_lease_exceptionflowsynchronize_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallcar/TmallCarLeaseOrderidGetAPIRequest.go b/model/tmallcar/TmallCarLeaseOrderidGetAPIRequest.go new file mode 100644 index 0000000000..900d08eeb7 --- /dev/null +++ b/model/tmallcar/TmallCarLeaseOrderidGetAPIRequest.go @@ -0,0 +1,52 @@ +package tmallcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫开新车查询订单id API请求 +tmall.car.lease.orderid.get + +天猫开新车查询订单id +*/ +type TmallCarLeaseOrderidGetAPIRequest struct { + model.Params + // openid + _openId string +} + +// 初始化TmallCarLeaseOrderidGetAPIRequest对象 +func NewTmallCarLeaseOrderidGetRequest() *TmallCarLeaseOrderidGetAPIRequest{ + return &TmallCarLeaseOrderidGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarLeaseOrderidGetAPIRequest) GetApiMethodName() string { + return "tmall.car.lease.orderid.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarLeaseOrderidGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenId Setter +// openid +func (r *TmallCarLeaseOrderidGetAPIRequest) SetOpenId(_openId string) error { + r._openId = _openId + r.Set("open_id", _openId) + return nil +} + +// OpenId Getter +func (r TmallCarLeaseOrderidGetAPIRequest) GetOpenId() string { + return r._openId +} diff --git a/model/tmallcar/TmallCarLeaseOrderidGetAPIResponse.go b/model/tmallcar/TmallCarLeaseOrderidGetAPIResponse.go new file mode 100644 index 0000000000..6e2ab4c92f --- /dev/null +++ b/model/tmallcar/TmallCarLeaseOrderidGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫开新车查询订单id API返回值 +tmall.car.lease.orderid.get + +天猫开新车查询订单id +*/ +type TmallCarLeaseOrderidGetAPIResponse struct { + model.CommonResponse + TmallCarLeaseOrderidGetAPIResponseModel +} + +// 天猫开新车查询订单id 成功返回结果 +type TmallCarLeaseOrderidGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_lease_orderid_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcar/TmallCarLeaseOrderidGetResponse.go b/model/tmallcar/TmallCarLeaseOrderidGetResponse.go deleted file mode 100644 index 9dbdcd109b..0000000000 --- a/model/tmallcar/TmallCarLeaseOrderidGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫开新车查询订单id API返回值 -tmall.car.lease.orderid.get - -天猫开新车查询订单id -*/ -type TmallCarLeaseOrderidGetAPIResponse struct { - model.CommonResponse - TmallCarLeaseOrderidGetResponse -} - -// 天猫开新车查询订单id 成功返回结果 -type TmallCarLeaseOrderidGetResponse struct { - XMLName xml.Name `xml:"tmall_car_lease_orderid_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallcar/TmallCarLeasePayforcustomerAPIRequest.go b/model/tmallcar/TmallCarLeasePayforcustomerAPIRequest.go new file mode 100644 index 0000000000..704e1e2309 --- /dev/null +++ b/model/tmallcar/TmallCarLeasePayforcustomerAPIRequest.go @@ -0,0 +1,122 @@ +package tmallcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫开新车租后代客户还款 API请求 +tmall.car.lease.payforcustomer + +天猫开新车租后代客户还款 +*/ +type TmallCarLeasePayforcustomerAPIRequest struct { + model.Params + // 天猫开新车订单id + _orderId int64 + // 贷款客户在网商的会员ID + _custIproleId string + // 还款日,精确到日,格式为yyyyMMdd,必须是当天 + _date string + // 贷款合约号 + _loanArNo string + // 还款本金金额,单位默认为元,支持小数点两位,为了便于传输用合作方将数值型转换为字符串型 + _prinAmt string + // 外部流水号格式:日期(8位)+序列号(8位),序列号是数字,如00000001(必须是16位且符合该格式 + _requestId string +} + +// 初始化TmallCarLeasePayforcustomerAPIRequest对象 +func NewTmallCarLeasePayforcustomerRequest() *TmallCarLeasePayforcustomerAPIRequest{ + return &TmallCarLeasePayforcustomerAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarLeasePayforcustomerAPIRequest) GetApiMethodName() string { + return "tmall.car.lease.payforcustomer" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarLeasePayforcustomerAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 天猫开新车订单id +func (r *TmallCarLeasePayforcustomerAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TmallCarLeasePayforcustomerAPIRequest) GetOrderId() int64 { + return r._orderId +} +// CustIproleId Setter +// 贷款客户在网商的会员ID +func (r *TmallCarLeasePayforcustomerAPIRequest) SetCustIproleId(_custIproleId string) error { + r._custIproleId = _custIproleId + r.Set("cust_iprole_id", _custIproleId) + return nil +} + +// CustIproleId Getter +func (r TmallCarLeasePayforcustomerAPIRequest) GetCustIproleId() string { + return r._custIproleId +} +// Date Setter +// 还款日,精确到日,格式为yyyyMMdd,必须是当天 +func (r *TmallCarLeasePayforcustomerAPIRequest) SetDate(_date string) error { + r._date = _date + r.Set("date", _date) + return nil +} + +// Date Getter +func (r TmallCarLeasePayforcustomerAPIRequest) GetDate() string { + return r._date +} +// LoanArNo Setter +// 贷款合约号 +func (r *TmallCarLeasePayforcustomerAPIRequest) SetLoanArNo(_loanArNo string) error { + r._loanArNo = _loanArNo + r.Set("loan_ar_no", _loanArNo) + return nil +} + +// LoanArNo Getter +func (r TmallCarLeasePayforcustomerAPIRequest) GetLoanArNo() string { + return r._loanArNo +} +// PrinAmt Setter +// 还款本金金额,单位默认为元,支持小数点两位,为了便于传输用合作方将数值型转换为字符串型 +func (r *TmallCarLeasePayforcustomerAPIRequest) SetPrinAmt(_prinAmt string) error { + r._prinAmt = _prinAmt + r.Set("prin_amt", _prinAmt) + return nil +} + +// PrinAmt Getter +func (r TmallCarLeasePayforcustomerAPIRequest) GetPrinAmt() string { + return r._prinAmt +} +// RequestId Setter +// 外部流水号格式:日期(8位)+序列号(8位),序列号是数字,如00000001(必须是16位且符合该格式 +func (r *TmallCarLeasePayforcustomerAPIRequest) SetRequestId(_requestId string) error { + r._requestId = _requestId + r.Set("request_id", _requestId) + return nil +} + +// RequestId Getter +func (r TmallCarLeasePayforcustomerAPIRequest) GetRequestId() string { + return r._requestId +} diff --git a/model/tmallcar/TmallCarLeasePayforcustomerAPIResponse.go b/model/tmallcar/TmallCarLeasePayforcustomerAPIResponse.go new file mode 100644 index 0000000000..59da5900f2 --- /dev/null +++ b/model/tmallcar/TmallCarLeasePayforcustomerAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫开新车租后代客户还款 API返回值 +tmall.car.lease.payforcustomer + +天猫开新车租后代客户还款 +*/ +type TmallCarLeasePayforcustomerAPIResponse struct { + model.CommonResponse + TmallCarLeasePayforcustomerAPIResponseModel +} + +// 天猫开新车租后代客户还款 成功返回结果 +type TmallCarLeasePayforcustomerAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_lease_payforcustomer_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcar/TmallCarLeasePayforcustomerResponse.go b/model/tmallcar/TmallCarLeasePayforcustomerResponse.go deleted file mode 100644 index 7c1a313e82..0000000000 --- a/model/tmallcar/TmallCarLeasePayforcustomerResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫开新车租后代客户还款 API返回值 -tmall.car.lease.payforcustomer - -天猫开新车租后代客户还款 -*/ -type TmallCarLeasePayforcustomerAPIResponse struct { - model.CommonResponse - TmallCarLeasePayforcustomerResponse -} - -// 天猫开新车租后代客户还款 成功返回结果 -type TmallCarLeasePayforcustomerResponse struct { - XMLName xml.Name `xml:"tmall_car_lease_payforcustomer_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallcar/TmallCarLeasePostsynchronizeAPIRequest.go b/model/tmallcar/TmallCarLeasePostsynchronizeAPIRequest.go new file mode 100644 index 0000000000..7bdd11b9d3 --- /dev/null +++ b/model/tmallcar/TmallCarLeasePostsynchronizeAPIRequest.go @@ -0,0 +1,52 @@ +package tmallcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫开新车租后信息同步 API请求 +tmall.car.lease.postsynchronize + +商家同步天猫开新车租后方案 +*/ +type TmallCarLeasePostsynchronizeAPIRequest struct { + model.Params + // 租后方案信息 + _schemeDto *CarLeasePostSchemeSynchronizeDto +} + +// 初始化TmallCarLeasePostsynchronizeAPIRequest对象 +func NewTmallCarLeasePostsynchronizeRequest() *TmallCarLeasePostsynchronizeAPIRequest{ + return &TmallCarLeasePostsynchronizeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarLeasePostsynchronizeAPIRequest) GetApiMethodName() string { + return "tmall.car.lease.postsynchronize" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarLeasePostsynchronizeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SchemeDto Setter +// 租后方案信息 +func (r *TmallCarLeasePostsynchronizeAPIRequest) SetSchemeDto(_schemeDto *CarLeasePostSchemeSynchronizeDto) error { + r._schemeDto = _schemeDto + r.Set("scheme_dto", _schemeDto) + return nil +} + +// SchemeDto Getter +func (r TmallCarLeasePostsynchronizeAPIRequest) GetSchemeDto() *CarLeasePostSchemeSynchronizeDto { + return r._schemeDto +} diff --git a/model/tmallcar/TmallCarLeasePostsynchronizeAPIResponse.go b/model/tmallcar/TmallCarLeasePostsynchronizeAPIResponse.go new file mode 100644 index 0000000000..f598be715c --- /dev/null +++ b/model/tmallcar/TmallCarLeasePostsynchronizeAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫开新车租后信息同步 API返回值 +tmall.car.lease.postsynchronize + +商家同步天猫开新车租后方案 +*/ +type TmallCarLeasePostsynchronizeAPIResponse struct { + model.CommonResponse + TmallCarLeasePostsynchronizeAPIResponseModel +} + +// 天猫开新车租后信息同步 成功返回结果 +type TmallCarLeasePostsynchronizeAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_lease_postsynchronize_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcar/TmallCarLeasePostsynchronizeResponse.go b/model/tmallcar/TmallCarLeasePostsynchronizeResponse.go deleted file mode 100644 index 634c8a1993..0000000000 --- a/model/tmallcar/TmallCarLeasePostsynchronizeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫开新车租后信息同步 API返回值 -tmall.car.lease.postsynchronize - -商家同步天猫开新车租后方案 -*/ -type TmallCarLeasePostsynchronizeAPIResponse struct { - model.CommonResponse - TmallCarLeasePostsynchronizeResponse -} - -// 天猫开新车租后信息同步 成功返回结果 -type TmallCarLeasePostsynchronizeResponse struct { - XMLName xml.Name `xml:"tmall_car_lease_postsynchronize_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallcar/TmallCarLeaseQueryloanplansAPIRequest.go b/model/tmallcar/TmallCarLeaseQueryloanplansAPIRequest.go new file mode 100644 index 0000000000..019dd875fb --- /dev/null +++ b/model/tmallcar/TmallCarLeaseQueryloanplansAPIRequest.go @@ -0,0 +1,66 @@ +package tmallcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫开新车租后查询还款计划 API请求 +tmall.car.lease.queryloanplans + +天猫开新车租后查询还款计划 +*/ +type TmallCarLeaseQueryloanplansAPIRequest struct { + model.Params + // 合约编号 + _loanarno string + // 客户的角色编号 + _iproleid string +} + +// 初始化TmallCarLeaseQueryloanplansAPIRequest对象 +func NewTmallCarLeaseQueryloanplansRequest() *TmallCarLeaseQueryloanplansAPIRequest{ + return &TmallCarLeaseQueryloanplansAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarLeaseQueryloanplansAPIRequest) GetApiMethodName() string { + return "tmall.car.lease.queryloanplans" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarLeaseQueryloanplansAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Loanarno Setter +// 合约编号 +func (r *TmallCarLeaseQueryloanplansAPIRequest) SetLoanarno(_loanarno string) error { + r._loanarno = _loanarno + r.Set("loanarno", _loanarno) + return nil +} + +// Loanarno Getter +func (r TmallCarLeaseQueryloanplansAPIRequest) GetLoanarno() string { + return r._loanarno +} +// Iproleid Setter +// 客户的角色编号 +func (r *TmallCarLeaseQueryloanplansAPIRequest) SetIproleid(_iproleid string) error { + r._iproleid = _iproleid + r.Set("iproleid", _iproleid) + return nil +} + +// Iproleid Getter +func (r TmallCarLeaseQueryloanplansAPIRequest) GetIproleid() string { + return r._iproleid +} diff --git a/model/tmallcar/TmallCarLeaseQueryloanplansAPIResponse.go b/model/tmallcar/TmallCarLeaseQueryloanplansAPIResponse.go new file mode 100644 index 0000000000..01539b72b4 --- /dev/null +++ b/model/tmallcar/TmallCarLeaseQueryloanplansAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫开新车租后查询还款计划 API返回值 +tmall.car.lease.queryloanplans + +天猫开新车租后查询还款计划 +*/ +type TmallCarLeaseQueryloanplansAPIResponse struct { + model.CommonResponse + TmallCarLeaseQueryloanplansAPIResponseModel +} + +// 天猫开新车租后查询还款计划 成功返回结果 +type TmallCarLeaseQueryloanplansAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_lease_queryloanplans_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcar/TmallCarLeaseQueryloanplansResponse.go b/model/tmallcar/TmallCarLeaseQueryloanplansResponse.go deleted file mode 100644 index 1792cce482..0000000000 --- a/model/tmallcar/TmallCarLeaseQueryloanplansResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫开新车租后查询还款计划 API返回值 -tmall.car.lease.queryloanplans - -天猫开新车租后查询还款计划 -*/ -type TmallCarLeaseQueryloanplansAPIResponse struct { - model.CommonResponse - TmallCarLeaseQueryloanplansResponse -} - -// 天猫开新车租后查询还款计划 成功返回结果 -type TmallCarLeaseQueryloanplansResponse struct { - XMLName xml.Name `xml:"tmall_car_lease_queryloanplans_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallcar/TmallCarLeaseStatussynchronizeAPIRequest.go b/model/tmallcar/TmallCarLeaseStatussynchronizeAPIRequest.go new file mode 100644 index 0000000000..dd018e5398 --- /dev/null +++ b/model/tmallcar/TmallCarLeaseStatussynchronizeAPIRequest.go @@ -0,0 +1,108 @@ +package tmallcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫开新车租后状态同步 API请求 +tmall.car.lease.statussynchronize + +天猫开新车租后状态同步 +*/ +type TmallCarLeaseStatussynchronizeAPIRequest struct { + model.Params + // 天猫开新车订单号 + _orderId int64 + // 业务类型:0.退车,1.买断,2.分期,3.续租 + _bizType int64 + // 1:过户,2:续租,3.额外费用审核,4.退车完成 + _actionType int64 + // 1:通过,-1:拒绝 + _actionValue int64 + // 拒绝原因 + _refuseReason string +} + +// 初始化TmallCarLeaseStatussynchronizeAPIRequest对象 +func NewTmallCarLeaseStatussynchronizeRequest() *TmallCarLeaseStatussynchronizeAPIRequest{ + return &TmallCarLeaseStatussynchronizeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarLeaseStatussynchronizeAPIRequest) GetApiMethodName() string { + return "tmall.car.lease.statussynchronize" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarLeaseStatussynchronizeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 天猫开新车订单号 +func (r *TmallCarLeaseStatussynchronizeAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TmallCarLeaseStatussynchronizeAPIRequest) GetOrderId() int64 { + return r._orderId +} +// BizType Setter +// 业务类型:0.退车,1.买断,2.分期,3.续租 +func (r *TmallCarLeaseStatussynchronizeAPIRequest) SetBizType(_bizType int64) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TmallCarLeaseStatussynchronizeAPIRequest) GetBizType() int64 { + return r._bizType +} +// ActionType Setter +// 1:过户,2:续租,3.额外费用审核,4.退车完成 +func (r *TmallCarLeaseStatussynchronizeAPIRequest) SetActionType(_actionType int64) error { + r._actionType = _actionType + r.Set("action_type", _actionType) + return nil +} + +// ActionType Getter +func (r TmallCarLeaseStatussynchronizeAPIRequest) GetActionType() int64 { + return r._actionType +} +// ActionValue Setter +// 1:通过,-1:拒绝 +func (r *TmallCarLeaseStatussynchronizeAPIRequest) SetActionValue(_actionValue int64) error { + r._actionValue = _actionValue + r.Set("action_value", _actionValue) + return nil +} + +// ActionValue Getter +func (r TmallCarLeaseStatussynchronizeAPIRequest) GetActionValue() int64 { + return r._actionValue +} +// RefuseReason Setter +// 拒绝原因 +func (r *TmallCarLeaseStatussynchronizeAPIRequest) SetRefuseReason(_refuseReason string) error { + r._refuseReason = _refuseReason + r.Set("refuse_reason", _refuseReason) + return nil +} + +// RefuseReason Getter +func (r TmallCarLeaseStatussynchronizeAPIRequest) GetRefuseReason() string { + return r._refuseReason +} diff --git a/model/tmallcar/TmallCarLeaseStatussynchronizeAPIResponse.go b/model/tmallcar/TmallCarLeaseStatussynchronizeAPIResponse.go new file mode 100644 index 0000000000..9042d5ab5f --- /dev/null +++ b/model/tmallcar/TmallCarLeaseStatussynchronizeAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫开新车租后状态同步 API返回值 +tmall.car.lease.statussynchronize + +天猫开新车租后状态同步 +*/ +type TmallCarLeaseStatussynchronizeAPIResponse struct { + model.CommonResponse + TmallCarLeaseStatussynchronizeAPIResponseModel +} + +// 天猫开新车租后状态同步 成功返回结果 +type TmallCarLeaseStatussynchronizeAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_lease_statussynchronize_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcar/TmallCarLeaseStatussynchronizeResponse.go b/model/tmallcar/TmallCarLeaseStatussynchronizeResponse.go deleted file mode 100644 index dd2bf34331..0000000000 --- a/model/tmallcar/TmallCarLeaseStatussynchronizeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫开新车租后状态同步 API返回值 -tmall.car.lease.statussynchronize - -天猫开新车租后状态同步 -*/ -type TmallCarLeaseStatussynchronizeAPIResponse struct { - model.CommonResponse - TmallCarLeaseStatussynchronizeResponse -} - -// 天猫开新车租后状态同步 成功返回结果 -type TmallCarLeaseStatussynchronizeResponse struct { - XMLName xml.Name `xml:"tmall_car_lease_statussynchronize_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallcar/TmallCarXcarSynchronizeCarLineDataAPIRequest.go b/model/tmallcar/TmallCarXcarSynchronizeCarLineDataAPIRequest.go new file mode 100644 index 0000000000..83d8acab18 --- /dev/null +++ b/model/tmallcar/TmallCarXcarSynchronizeCarLineDataAPIRequest.go @@ -0,0 +1,52 @@ +package tmallcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +我的爱卡车型配置数据 API请求 +tmall.car.xcar.synchronize.car.line.data + +同步我的爱卡车系配置数据到天猫汽车 +*/ +type TmallCarXcarSynchronizeCarLineDataAPIRequest struct { + model.Params + // 入参对象 + _paramXCarSysLineDTO *XCarSysLineDto +} + +// 初始化TmallCarXcarSynchronizeCarLineDataAPIRequest对象 +func NewTmallCarXcarSynchronizeCarLineDataRequest() *TmallCarXcarSynchronizeCarLineDataAPIRequest{ + return &TmallCarXcarSynchronizeCarLineDataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarXcarSynchronizeCarLineDataAPIRequest) GetApiMethodName() string { + return "tmall.car.xcar.synchronize.car.line.data" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarXcarSynchronizeCarLineDataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamXCarSysLineDTO Setter +// 入参对象 +func (r *TmallCarXcarSynchronizeCarLineDataAPIRequest) SetParamXCarSysLineDTO(_paramXCarSysLineDTO *XCarSysLineDto) error { + r._paramXCarSysLineDTO = _paramXCarSysLineDTO + r.Set("param_x_car_sys_line_d_t_o", _paramXCarSysLineDTO) + return nil +} + +// ParamXCarSysLineDTO Getter +func (r TmallCarXcarSynchronizeCarLineDataAPIRequest) GetParamXCarSysLineDTO() *XCarSysLineDto { + return r._paramXCarSysLineDTO +} diff --git a/model/tmallcar/TmallCarXcarSynchronizeCarLineDataAPIResponse.go b/model/tmallcar/TmallCarXcarSynchronizeCarLineDataAPIResponse.go new file mode 100644 index 0000000000..12b6d90b08 --- /dev/null +++ b/model/tmallcar/TmallCarXcarSynchronizeCarLineDataAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +我的爱卡车型配置数据 API返回值 +tmall.car.xcar.synchronize.car.line.data + +同步我的爱卡车系配置数据到天猫汽车 +*/ +type TmallCarXcarSynchronizeCarLineDataAPIResponse struct { + model.CommonResponse + TmallCarXcarSynchronizeCarLineDataAPIResponseModel +} + +// 我的爱卡车型配置数据 成功返回结果 +type TmallCarXcarSynchronizeCarLineDataAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_xcar_synchronize_car_line_data_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象总体信息 + Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcar/TmallCarXcarSynchronizeCarLineDataResponse.go b/model/tmallcar/TmallCarXcarSynchronizeCarLineDataResponse.go deleted file mode 100644 index c7198003f4..0000000000 --- a/model/tmallcar/TmallCarXcarSynchronizeCarLineDataResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -我的爱卡车型配置数据 API返回值 -tmall.car.xcar.synchronize.car.line.data - -同步我的爱卡车系配置数据到天猫汽车 -*/ -type TmallCarXcarSynchronizeCarLineDataAPIResponse struct { - model.CommonResponse - TmallCarXcarSynchronizeCarLineDataResponse -} - -// 我的爱卡车型配置数据 成功返回结果 -type TmallCarXcarSynchronizeCarLineDataResponse struct { - XMLName xml.Name `xml:"tmall_car_xcar_synchronize_car_line_data_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象总体信息 - Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallcar/TmallCarXcarSynchronizeCarLinePicsDataAPIRequest.go b/model/tmallcar/TmallCarXcarSynchronizeCarLinePicsDataAPIRequest.go new file mode 100644 index 0000000000..3092ab48cd --- /dev/null +++ b/model/tmallcar/TmallCarXcarSynchronizeCarLinePicsDataAPIRequest.go @@ -0,0 +1,52 @@ +package tmallcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +爱卡车系图片数据接入 API请求 +tmall.car.xcar.synchronize.car.line.pics.data + +爱卡车系图片数据同步天猫汽车 +*/ +type TmallCarXcarSynchronizeCarLinePicsDataAPIRequest struct { + model.Params + // 入参对象 + _paramXCarSysLinePicsDTO *XCarSysLinePicsDto +} + +// 初始化TmallCarXcarSynchronizeCarLinePicsDataAPIRequest对象 +func NewTmallCarXcarSynchronizeCarLinePicsDataRequest() *TmallCarXcarSynchronizeCarLinePicsDataAPIRequest{ + return &TmallCarXcarSynchronizeCarLinePicsDataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarXcarSynchronizeCarLinePicsDataAPIRequest) GetApiMethodName() string { + return "tmall.car.xcar.synchronize.car.line.pics.data" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarXcarSynchronizeCarLinePicsDataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamXCarSysLinePicsDTO Setter +// 入参对象 +func (r *TmallCarXcarSynchronizeCarLinePicsDataAPIRequest) SetParamXCarSysLinePicsDTO(_paramXCarSysLinePicsDTO *XCarSysLinePicsDto) error { + r._paramXCarSysLinePicsDTO = _paramXCarSysLinePicsDTO + r.Set("param_x_car_sys_line_pics_d_t_o", _paramXCarSysLinePicsDTO) + return nil +} + +// ParamXCarSysLinePicsDTO Getter +func (r TmallCarXcarSynchronizeCarLinePicsDataAPIRequest) GetParamXCarSysLinePicsDTO() *XCarSysLinePicsDto { + return r._paramXCarSysLinePicsDTO +} diff --git a/model/tmallcar/TmallCarXcarSynchronizeCarLinePicsDataAPIResponse.go b/model/tmallcar/TmallCarXcarSynchronizeCarLinePicsDataAPIResponse.go new file mode 100644 index 0000000000..705dc46a94 --- /dev/null +++ b/model/tmallcar/TmallCarXcarSynchronizeCarLinePicsDataAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +爱卡车系图片数据接入 API返回值 +tmall.car.xcar.synchronize.car.line.pics.data + +爱卡车系图片数据同步天猫汽车 +*/ +type TmallCarXcarSynchronizeCarLinePicsDataAPIResponse struct { + model.CommonResponse + TmallCarXcarSynchronizeCarLinePicsDataAPIResponseModel +} + +// 爱卡车系图片数据接入 成功返回结果 +type TmallCarXcarSynchronizeCarLinePicsDataAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_xcar_synchronize_car_line_pics_data_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcar/TmallCarXcarSynchronizeCarLinePicsDataResponse.go b/model/tmallcar/TmallCarXcarSynchronizeCarLinePicsDataResponse.go deleted file mode 100644 index e49aa8161e..0000000000 --- a/model/tmallcar/TmallCarXcarSynchronizeCarLinePicsDataResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -爱卡车系图片数据接入 API返回值 -tmall.car.xcar.synchronize.car.line.pics.data - -爱卡车系图片数据同步天猫汽车 -*/ -type TmallCarXcarSynchronizeCarLinePicsDataAPIResponse struct { - model.CommonResponse - TmallCarXcarSynchronizeCarLinePicsDataResponse -} - -// 爱卡车系图片数据接入 成功返回结果 -type TmallCarXcarSynchronizeCarLinePicsDataResponse struct { - XMLName xml.Name `xml:"tmall_car_xcar_synchronize_car_line_pics_data_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallcar/TmallCarXcarSynchronizeCarModelDataAPIRequest.go b/model/tmallcar/TmallCarXcarSynchronizeCarModelDataAPIRequest.go new file mode 100644 index 0000000000..b1722a456f --- /dev/null +++ b/model/tmallcar/TmallCarXcarSynchronizeCarModelDataAPIRequest.go @@ -0,0 +1,52 @@ +package tmallcar + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +爱车车型数据同步 API请求 +tmall.car.xcar.synchronize.car.model.data + +爱车汽车车型数据同步到天猫 +*/ +type TmallCarXcarSynchronizeCarModelDataAPIRequest struct { + model.Params + // 传入对象描述 + _paramXCarSysModelDTO *XCarSysModelDto +} + +// 初始化TmallCarXcarSynchronizeCarModelDataAPIRequest对象 +func NewTmallCarXcarSynchronizeCarModelDataRequest() *TmallCarXcarSynchronizeCarModelDataAPIRequest{ + return &TmallCarXcarSynchronizeCarModelDataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarXcarSynchronizeCarModelDataAPIRequest) GetApiMethodName() string { + return "tmall.car.xcar.synchronize.car.model.data" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarXcarSynchronizeCarModelDataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamXCarSysModelDTO Setter +// 传入对象描述 +func (r *TmallCarXcarSynchronizeCarModelDataAPIRequest) SetParamXCarSysModelDTO(_paramXCarSysModelDTO *XCarSysModelDto) error { + r._paramXCarSysModelDTO = _paramXCarSysModelDTO + r.Set("param_x_car_sys_model_d_t_o", _paramXCarSysModelDTO) + return nil +} + +// ParamXCarSysModelDTO Getter +func (r TmallCarXcarSynchronizeCarModelDataAPIRequest) GetParamXCarSysModelDTO() *XCarSysModelDto { + return r._paramXCarSysModelDTO +} diff --git a/model/tmallcar/TmallCarXcarSynchronizeCarModelDataAPIResponse.go b/model/tmallcar/TmallCarXcarSynchronizeCarModelDataAPIResponse.go new file mode 100644 index 0000000000..dd0a3c555f --- /dev/null +++ b/model/tmallcar/TmallCarXcarSynchronizeCarModelDataAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcar + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +爱车车型数据同步 API返回值 +tmall.car.xcar.synchronize.car.model.data + +爱车汽车车型数据同步到天猫 +*/ +type TmallCarXcarSynchronizeCarModelDataAPIResponse struct { + model.CommonResponse + TmallCarXcarSynchronizeCarModelDataAPIResponseModel +} + +// 爱车车型数据同步 成功返回结果 +type TmallCarXcarSynchronizeCarModelDataAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_car_xcar_synchronize_car_model_data_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象描述 + Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcar/TmallCarXcarSynchronizeCarModelDataResponse.go b/model/tmallcar/TmallCarXcarSynchronizeCarModelDataResponse.go deleted file mode 100644 index b59750a595..0000000000 --- a/model/tmallcar/TmallCarXcarSynchronizeCarModelDataResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcar - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -爱车车型数据同步 API返回值 -tmall.car.xcar.synchronize.car.model.data - -爱车汽车车型数据同步到天猫 -*/ -type TmallCarXcarSynchronizeCarModelDataAPIResponse struct { - model.CommonResponse - TmallCarXcarSynchronizeCarModelDataResponse -} - -// 爱车车型数据同步 成功返回结果 -type TmallCarXcarSynchronizeCarModelDataResponse struct { - XMLName xml.Name `xml:"tmall_car_xcar_synchronize_car_model_data_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象描述 - Result *ResultVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallcarenter/TmallCarcenterVehicleChasisInsertAPIRequest.go b/model/tmallcarenter/TmallCarcenterVehicleChasisInsertAPIRequest.go new file mode 100644 index 0000000000..6b37d4c7ed --- /dev/null +++ b/model/tmallcarenter/TmallCarcenterVehicleChasisInsertAPIRequest.go @@ -0,0 +1,52 @@ +package tmallcarenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +EPC车型底盘压缩库新增接口 API请求 +tmall.carcenter.vehicle.chasis.insert + +EPC车型底盘压缩库新增接口 +*/ +type TmallCarcenterVehicleChasisInsertAPIRequest struct { + model.Params + // 底盘压缩库入参 + _dto *ChasisVehicleInfoOriginalDto +} + +// 初始化TmallCarcenterVehicleChasisInsertAPIRequest对象 +func NewTmallCarcenterVehicleChasisInsertRequest() *TmallCarcenterVehicleChasisInsertAPIRequest{ + return &TmallCarcenterVehicleChasisInsertAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarcenterVehicleChasisInsertAPIRequest) GetApiMethodName() string { + return "tmall.carcenter.vehicle.chasis.insert" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarcenterVehicleChasisInsertAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Dto Setter +// 底盘压缩库入参 +func (r *TmallCarcenterVehicleChasisInsertAPIRequest) SetDto(_dto *ChasisVehicleInfoOriginalDto) error { + r._dto = _dto + r.Set("dto", _dto) + return nil +} + +// Dto Getter +func (r TmallCarcenterVehicleChasisInsertAPIRequest) GetDto() *ChasisVehicleInfoOriginalDto { + return r._dto +} diff --git a/model/tmallcarenter/TmallCarcenterVehicleChasisInsertAPIResponse.go b/model/tmallcarenter/TmallCarcenterVehicleChasisInsertAPIResponse.go new file mode 100644 index 0000000000..311aba9def --- /dev/null +++ b/model/tmallcarenter/TmallCarcenterVehicleChasisInsertAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcarenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +EPC车型底盘压缩库新增接口 API返回值 +tmall.carcenter.vehicle.chasis.insert + +EPC车型底盘压缩库新增接口 +*/ +type TmallCarcenterVehicleChasisInsertAPIResponse struct { + model.CommonResponse + TmallCarcenterVehicleChasisInsertAPIResponseModel +} + +// EPC车型底盘压缩库新增接口 成功返回结果 +type TmallCarcenterVehicleChasisInsertAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_carcenter_vehicle_chasis_insert_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallCarcenterVehicleChasisInsertResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcarenter/TmallCarcenterVehicleChasisInsertResponse.go b/model/tmallcarenter/TmallCarcenterVehicleChasisInsertResponse.go deleted file mode 100644 index a5bfa96d5e..0000000000 --- a/model/tmallcarenter/TmallCarcenterVehicleChasisInsertResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcarenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -EPC车型底盘压缩库新增接口 API返回值 -tmall.carcenter.vehicle.chasis.insert - -EPC车型底盘压缩库新增接口 -*/ -type TmallCarcenterVehicleChasisInsertAPIResponse struct { - model.CommonResponse - TmallCarcenterVehicleChasisInsertResponse -} - -// EPC车型底盘压缩库新增接口 成功返回结果 -type TmallCarcenterVehicleChasisInsertResponse struct { - XMLName xml.Name `xml:"tmall_carcenter_vehicle_chasis_insert_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallCarcenterVehicleChasisInsertResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallcarenter/TmallCarcenterVehicleCvmappingInsertAPIRequest.go b/model/tmallcarenter/TmallCarcenterVehicleCvmappingInsertAPIRequest.go new file mode 100644 index 0000000000..abb8167b0b --- /dev/null +++ b/model/tmallcarenter/TmallCarcenterVehicleCvmappingInsertAPIRequest.go @@ -0,0 +1,80 @@ +package tmallcarenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +EPC车辆版本信息与底盘信息库关系绑定 API请求 +tmall.carcenter.vehicle.cvmapping.insert + +EPC车辆版本信息与底盘信息库关系绑定 +*/ +type TmallCarcenterVehicleCvmappingInsertAPIRequest struct { + model.Params + // 状态 + _status int64 + // 版本ID + _supplierVersionCid string + // 底盘ID + _supplierChassisCid string +} + +// 初始化TmallCarcenterVehicleCvmappingInsertAPIRequest对象 +func NewTmallCarcenterVehicleCvmappingInsertRequest() *TmallCarcenterVehicleCvmappingInsertAPIRequest{ + return &TmallCarcenterVehicleCvmappingInsertAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarcenterVehicleCvmappingInsertAPIRequest) GetApiMethodName() string { + return "tmall.carcenter.vehicle.cvmapping.insert" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarcenterVehicleCvmappingInsertAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Status Setter +// 状态 +func (r *TmallCarcenterVehicleCvmappingInsertAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TmallCarcenterVehicleCvmappingInsertAPIRequest) GetStatus() int64 { + return r._status +} +// SupplierVersionCid Setter +// 版本ID +func (r *TmallCarcenterVehicleCvmappingInsertAPIRequest) SetSupplierVersionCid(_supplierVersionCid string) error { + r._supplierVersionCid = _supplierVersionCid + r.Set("supplier_version_cid", _supplierVersionCid) + return nil +} + +// SupplierVersionCid Getter +func (r TmallCarcenterVehicleCvmappingInsertAPIRequest) GetSupplierVersionCid() string { + return r._supplierVersionCid +} +// SupplierChassisCid Setter +// 底盘ID +func (r *TmallCarcenterVehicleCvmappingInsertAPIRequest) SetSupplierChassisCid(_supplierChassisCid string) error { + r._supplierChassisCid = _supplierChassisCid + r.Set("supplier_chassis_cid", _supplierChassisCid) + return nil +} + +// SupplierChassisCid Getter +func (r TmallCarcenterVehicleCvmappingInsertAPIRequest) GetSupplierChassisCid() string { + return r._supplierChassisCid +} diff --git a/model/tmallcarenter/TmallCarcenterVehicleCvmappingInsertAPIResponse.go b/model/tmallcarenter/TmallCarcenterVehicleCvmappingInsertAPIResponse.go new file mode 100644 index 0000000000..28c21d5a6e --- /dev/null +++ b/model/tmallcarenter/TmallCarcenterVehicleCvmappingInsertAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcarenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +EPC车辆版本信息与底盘信息库关系绑定 API返回值 +tmall.carcenter.vehicle.cvmapping.insert + +EPC车辆版本信息与底盘信息库关系绑定 +*/ +type TmallCarcenterVehicleCvmappingInsertAPIResponse struct { + model.CommonResponse + TmallCarcenterVehicleCvmappingInsertAPIResponseModel +} + +// EPC车辆版本信息与底盘信息库关系绑定 成功返回结果 +type TmallCarcenterVehicleCvmappingInsertAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_carcenter_vehicle_cvmapping_insert_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallCarcenterVehicleCvmappingInsertResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcarenter/TmallCarcenterVehicleCvmappingInsertResponse.go b/model/tmallcarenter/TmallCarcenterVehicleCvmappingInsertResponse.go deleted file mode 100644 index 7a1bbe5fa9..0000000000 --- a/model/tmallcarenter/TmallCarcenterVehicleCvmappingInsertResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcarenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -EPC车辆版本信息与底盘信息库关系绑定 API返回值 -tmall.carcenter.vehicle.cvmapping.insert - -EPC车辆版本信息与底盘信息库关系绑定 -*/ -type TmallCarcenterVehicleCvmappingInsertAPIResponse struct { - model.CommonResponse - TmallCarcenterVehicleCvmappingInsertResponse -} - -// EPC车辆版本信息与底盘信息库关系绑定 成功返回结果 -type TmallCarcenterVehicleCvmappingInsertResponse struct { - XMLName xml.Name `xml:"tmall_carcenter_vehicle_cvmapping_insert_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallCarcenterVehicleCvmappingInsertResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallcarenter/TmallCarcenterVehicleVersionInsertAPIRequest.go b/model/tmallcarenter/TmallCarcenterVehicleVersionInsertAPIRequest.go new file mode 100644 index 0000000000..b39bf64418 --- /dev/null +++ b/model/tmallcarenter/TmallCarcenterVehicleVersionInsertAPIRequest.go @@ -0,0 +1,52 @@ +package tmallcarenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车EPC版本压缩库新增接口 API请求 +tmall.carcenter.vehicle.version.insert + +汽车EPC版本压缩库新增接口 +*/ +type TmallCarcenterVehicleVersionInsertAPIRequest struct { + model.Params + // 版本压缩库入参 + _dto *VersionVehicleInfoOriginalDto +} + +// 初始化TmallCarcenterVehicleVersionInsertAPIRequest对象 +func NewTmallCarcenterVehicleVersionInsertRequest() *TmallCarcenterVehicleVersionInsertAPIRequest{ + return &TmallCarcenterVehicleVersionInsertAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarcenterVehicleVersionInsertAPIRequest) GetApiMethodName() string { + return "tmall.carcenter.vehicle.version.insert" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarcenterVehicleVersionInsertAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Dto Setter +// 版本压缩库入参 +func (r *TmallCarcenterVehicleVersionInsertAPIRequest) SetDto(_dto *VersionVehicleInfoOriginalDto) error { + r._dto = _dto + r.Set("dto", _dto) + return nil +} + +// Dto Getter +func (r TmallCarcenterVehicleVersionInsertAPIRequest) GetDto() *VersionVehicleInfoOriginalDto { + return r._dto +} diff --git a/model/tmallcarenter/TmallCarcenterVehicleVersionInsertAPIResponse.go b/model/tmallcarenter/TmallCarcenterVehicleVersionInsertAPIResponse.go new file mode 100644 index 0000000000..d27b42ecc0 --- /dev/null +++ b/model/tmallcarenter/TmallCarcenterVehicleVersionInsertAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcarenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +汽车EPC版本压缩库新增接口 API返回值 +tmall.carcenter.vehicle.version.insert + +汽车EPC版本压缩库新增接口 +*/ +type TmallCarcenterVehicleVersionInsertAPIResponse struct { + model.CommonResponse + TmallCarcenterVehicleVersionInsertAPIResponseModel +} + +// 汽车EPC版本压缩库新增接口 成功返回结果 +type TmallCarcenterVehicleVersionInsertAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_carcenter_vehicle_version_insert_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallCarcenterVehicleVersionInsertResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcarenter/TmallCarcenterVehicleVersionInsertResponse.go b/model/tmallcarenter/TmallCarcenterVehicleVersionInsertResponse.go deleted file mode 100644 index 9fe6d588b8..0000000000 --- a/model/tmallcarenter/TmallCarcenterVehicleVersionInsertResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcarenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -汽车EPC版本压缩库新增接口 API返回值 -tmall.carcenter.vehicle.version.insert - -汽车EPC版本压缩库新增接口 -*/ -type TmallCarcenterVehicleVersionInsertAPIResponse struct { - model.CommonResponse - TmallCarcenterVehicleVersionInsertResponse -} - -// 汽车EPC版本压缩库新增接口 成功返回结果 -type TmallCarcenterVehicleVersionInsertResponse struct { - XMLName xml.Name `xml:"tmall_carcenter_vehicle_version_insert_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallCarcenterVehicleVersionInsertResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallcarenter/TmallCarcenterVehicleinfoRegisterAPIRequest.go b/model/tmallcarenter/TmallCarcenterVehicleinfoRegisterAPIRequest.go new file mode 100644 index 0000000000..95eac9e405 --- /dev/null +++ b/model/tmallcarenter/TmallCarcenterVehicleinfoRegisterAPIRequest.go @@ -0,0 +1,52 @@ +package tmallcarenter + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +车型数据更新 API请求 +tmall.carcenter.vehicleinfo.register + +基本车型信息维护 +*/ +type TmallCarcenterVehicleinfoRegisterAPIRequest struct { + model.Params + // 车型数据对象 + _vehicleInfo *OriginVehicleInfoDto +} + +// 初始化TmallCarcenterVehicleinfoRegisterAPIRequest对象 +func NewTmallCarcenterVehicleinfoRegisterRequest() *TmallCarcenterVehicleinfoRegisterAPIRequest{ + return &TmallCarcenterVehicleinfoRegisterAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCarcenterVehicleinfoRegisterAPIRequest) GetApiMethodName() string { + return "tmall.carcenter.vehicleinfo.register" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCarcenterVehicleinfoRegisterAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VehicleInfo Setter +// 车型数据对象 +func (r *TmallCarcenterVehicleinfoRegisterAPIRequest) SetVehicleInfo(_vehicleInfo *OriginVehicleInfoDto) error { + r._vehicleInfo = _vehicleInfo + r.Set("vehicle_info", _vehicleInfo) + return nil +} + +// VehicleInfo Getter +func (r TmallCarcenterVehicleinfoRegisterAPIRequest) GetVehicleInfo() *OriginVehicleInfoDto { + return r._vehicleInfo +} diff --git a/model/tmallcarenter/TmallCarcenterVehicleinfoRegisterAPIResponse.go b/model/tmallcarenter/TmallCarcenterVehicleinfoRegisterAPIResponse.go new file mode 100644 index 0000000000..b2904d9877 --- /dev/null +++ b/model/tmallcarenter/TmallCarcenterVehicleinfoRegisterAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcarenter + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +车型数据更新 API返回值 +tmall.carcenter.vehicleinfo.register + +基本车型信息维护 +*/ +type TmallCarcenterVehicleinfoRegisterAPIResponse struct { + model.CommonResponse + TmallCarcenterVehicleinfoRegisterAPIResponseModel +} + +// 车型数据更新 成功返回结果 +type TmallCarcenterVehicleinfoRegisterAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_carcenter_vehicleinfo_register_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallCarcenterVehicleinfoRegisterResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallcarenter/TmallCarcenterVehicleinfoRegisterResponse.go b/model/tmallcarenter/TmallCarcenterVehicleinfoRegisterResponse.go deleted file mode 100644 index 02f90b1143..0000000000 --- a/model/tmallcarenter/TmallCarcenterVehicleinfoRegisterResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcarenter - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -车型数据更新 API返回值 -tmall.carcenter.vehicleinfo.register - -基本车型信息维护 -*/ -type TmallCarcenterVehicleinfoRegisterAPIResponse struct { - model.CommonResponse - TmallCarcenterVehicleinfoRegisterResponse -} - -// 车型数据更新 成功返回结果 -type TmallCarcenterVehicleinfoRegisterResponse struct { - XMLName xml.Name `xml:"tmall_carcenter_vehicleinfo_register_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallCarcenterVehicleinfoRegisterResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallchannel/TaobaoChannelTradePrepayOfflineAddAPIRequest.go b/model/tmallchannel/TaobaoChannelTradePrepayOfflineAddAPIRequest.go new file mode 100644 index 0000000000..ac1c872008 --- /dev/null +++ b/model/tmallchannel/TaobaoChannelTradePrepayOfflineAddAPIRequest.go @@ -0,0 +1,52 @@ +package tmallchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道分销供应商上传线下流水预存款(增加) API请求 +taobao.channel.trade.prepay.offline.add + +渠道分销供应商上传线下流水预存款(增加) +*/ +type TaobaoChannelTradePrepayOfflineAddAPIRequest struct { + model.Params + // 增加流水 + _offlineAddPrepayParam *TopOfflineAddPrepayDto +} + +// 初始化TaobaoChannelTradePrepayOfflineAddAPIRequest对象 +func NewTaobaoChannelTradePrepayOfflineAddRequest() *TaobaoChannelTradePrepayOfflineAddAPIRequest{ + return &TaobaoChannelTradePrepayOfflineAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoChannelTradePrepayOfflineAddAPIRequest) GetApiMethodName() string { + return "taobao.channel.trade.prepay.offline.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoChannelTradePrepayOfflineAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OfflineAddPrepayParam Setter +// 增加流水 +func (r *TaobaoChannelTradePrepayOfflineAddAPIRequest) SetOfflineAddPrepayParam(_offlineAddPrepayParam *TopOfflineAddPrepayDto) error { + r._offlineAddPrepayParam = _offlineAddPrepayParam + r.Set("offline_add_prepay_param", _offlineAddPrepayParam) + return nil +} + +// OfflineAddPrepayParam Getter +func (r TaobaoChannelTradePrepayOfflineAddAPIRequest) GetOfflineAddPrepayParam() *TopOfflineAddPrepayDto { + return r._offlineAddPrepayParam +} diff --git a/model/tmallchannel/TaobaoChannelTradePrepayOfflineAddAPIResponse.go b/model/tmallchannel/TaobaoChannelTradePrepayOfflineAddAPIResponse.go new file mode 100644 index 0000000000..dfa3016cfe --- /dev/null +++ b/model/tmallchannel/TaobaoChannelTradePrepayOfflineAddAPIResponse.go @@ -0,0 +1,27 @@ +package tmallchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道分销供应商上传线下流水预存款(增加) API返回值 +taobao.channel.trade.prepay.offline.add + +渠道分销供应商上传线下流水预存款(增加) +*/ +type TaobaoChannelTradePrepayOfflineAddAPIResponse struct { + model.CommonResponse + TaobaoChannelTradePrepayOfflineAddAPIResponseModel +} + +// 渠道分销供应商上传线下流水预存款(增加) 成功返回结果 +type TaobaoChannelTradePrepayOfflineAddAPIResponseModel struct { + XMLName xml.Name `xml:"channel_trade_prepay_offline_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultTopDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallchannel/TaobaoChannelTradePrepayOfflineAddResponse.go b/model/tmallchannel/TaobaoChannelTradePrepayOfflineAddResponse.go deleted file mode 100644 index 88daf02e2d..0000000000 --- a/model/tmallchannel/TaobaoChannelTradePrepayOfflineAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -渠道分销供应商上传线下流水预存款(增加) API返回值 -taobao.channel.trade.prepay.offline.add - -渠道分销供应商上传线下流水预存款(增加) -*/ -type TaobaoChannelTradePrepayOfflineAddAPIResponse struct { - model.CommonResponse - TaobaoChannelTradePrepayOfflineAddResponse -} - -// 渠道分销供应商上传线下流水预存款(增加) 成功返回结果 -type TaobaoChannelTradePrepayOfflineAddResponse struct { - XMLName xml.Name `xml:"channel_trade_prepay_offline_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultTopDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallchannel/TaobaoChannelTradePrepayOfflineReduceAPIRequest.go b/model/tmallchannel/TaobaoChannelTradePrepayOfflineReduceAPIRequest.go new file mode 100644 index 0000000000..dff4c82a5d --- /dev/null +++ b/model/tmallchannel/TaobaoChannelTradePrepayOfflineReduceAPIRequest.go @@ -0,0 +1,52 @@ +package tmallchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道分销供应商上传线下流水预存款(减少) API请求 +taobao.channel.trade.prepay.offline.reduce + +渠道分销供应商上传线下流水预存款(减少) +*/ +type TaobaoChannelTradePrepayOfflineReduceAPIRequest struct { + model.Params + // 减少流水 + _offlineReducePrepayParam *TopOfflineReducePrepayDto +} + +// 初始化TaobaoChannelTradePrepayOfflineReduceAPIRequest对象 +func NewTaobaoChannelTradePrepayOfflineReduceRequest() *TaobaoChannelTradePrepayOfflineReduceAPIRequest{ + return &TaobaoChannelTradePrepayOfflineReduceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoChannelTradePrepayOfflineReduceAPIRequest) GetApiMethodName() string { + return "taobao.channel.trade.prepay.offline.reduce" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoChannelTradePrepayOfflineReduceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OfflineReducePrepayParam Setter +// 减少流水 +func (r *TaobaoChannelTradePrepayOfflineReduceAPIRequest) SetOfflineReducePrepayParam(_offlineReducePrepayParam *TopOfflineReducePrepayDto) error { + r._offlineReducePrepayParam = _offlineReducePrepayParam + r.Set("offline_reduce_prepay_param", _offlineReducePrepayParam) + return nil +} + +// OfflineReducePrepayParam Getter +func (r TaobaoChannelTradePrepayOfflineReduceAPIRequest) GetOfflineReducePrepayParam() *TopOfflineReducePrepayDto { + return r._offlineReducePrepayParam +} diff --git a/model/tmallchannel/TaobaoChannelTradePrepayOfflineReduceAPIResponse.go b/model/tmallchannel/TaobaoChannelTradePrepayOfflineReduceAPIResponse.go new file mode 100644 index 0000000000..25a2bcccab --- /dev/null +++ b/model/tmallchannel/TaobaoChannelTradePrepayOfflineReduceAPIResponse.go @@ -0,0 +1,27 @@ +package tmallchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道分销供应商上传线下流水预存款(减少) API返回值 +taobao.channel.trade.prepay.offline.reduce + +渠道分销供应商上传线下流水预存款(减少) +*/ +type TaobaoChannelTradePrepayOfflineReduceAPIResponse struct { + model.CommonResponse + TaobaoChannelTradePrepayOfflineReduceAPIResponseModel +} + +// 渠道分销供应商上传线下流水预存款(减少) 成功返回结果 +type TaobaoChannelTradePrepayOfflineReduceAPIResponseModel struct { + XMLName xml.Name `xml:"channel_trade_prepay_offline_reduce_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultTopDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallchannel/TaobaoChannelTradePrepayOfflineReduceResponse.go b/model/tmallchannel/TaobaoChannelTradePrepayOfflineReduceResponse.go deleted file mode 100644 index af156fe07a..0000000000 --- a/model/tmallchannel/TaobaoChannelTradePrepayOfflineReduceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -渠道分销供应商上传线下流水预存款(减少) API返回值 -taobao.channel.trade.prepay.offline.reduce - -渠道分销供应商上传线下流水预存款(减少) -*/ -type TaobaoChannelTradePrepayOfflineReduceAPIResponse struct { - model.CommonResponse - TaobaoChannelTradePrepayOfflineReduceResponse -} - -// 渠道分销供应商上传线下流水预存款(减少) 成功返回结果 -type TaobaoChannelTradePrepayOfflineReduceResponse struct { - XMLName xml.Name `xml:"channel_trade_prepay_offline_reduce_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultTopDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallchannel/TmallChannelProductsQueryAPIRequest.go b/model/tmallchannel/TmallChannelProductsQueryAPIRequest.go new file mode 100644 index 0000000000..641ed8896e --- /dev/null +++ b/model/tmallchannel/TmallChannelProductsQueryAPIRequest.go @@ -0,0 +1,122 @@ +package tmallchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道中心-查询产品列表 API请求 +tmall.channel.products.query + +渠道中心,供应商查询其产品数据,返回同时符合所有查询条件的产品信息 +*/ +type TmallChannelProductsQueryAPIRequest struct { + model.Params + // 商家产品编码 + _productNumber string + // 商家SKU编码 + _skuNumber string + // 产品Id + _productIds []int64 + // 分页大小 + _pageSize int64 + // 产品线Id + _productLineId int64 + // 页码数,从1开始 + _pageNum int64 +} + +// 初始化TmallChannelProductsQueryAPIRequest对象 +func NewTmallChannelProductsQueryRequest() *TmallChannelProductsQueryAPIRequest{ + return &TmallChannelProductsQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallChannelProductsQueryAPIRequest) GetApiMethodName() string { + return "tmall.channel.products.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallChannelProductsQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProductNumber Setter +// 商家产品编码 +func (r *TmallChannelProductsQueryAPIRequest) SetProductNumber(_productNumber string) error { + r._productNumber = _productNumber + r.Set("product_number", _productNumber) + return nil +} + +// ProductNumber Getter +func (r TmallChannelProductsQueryAPIRequest) GetProductNumber() string { + return r._productNumber +} +// SkuNumber Setter +// 商家SKU编码 +func (r *TmallChannelProductsQueryAPIRequest) SetSkuNumber(_skuNumber string) error { + r._skuNumber = _skuNumber + r.Set("sku_number", _skuNumber) + return nil +} + +// SkuNumber Getter +func (r TmallChannelProductsQueryAPIRequest) GetSkuNumber() string { + return r._skuNumber +} +// ProductIds Setter +// 产品Id +func (r *TmallChannelProductsQueryAPIRequest) SetProductIds(_productIds []int64) error { + r._productIds = _productIds + r.Set("product_ids", _productIds) + return nil +} + +// ProductIds Getter +func (r TmallChannelProductsQueryAPIRequest) GetProductIds() []int64 { + return r._productIds +} +// PageSize Setter +// 分页大小 +func (r *TmallChannelProductsQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TmallChannelProductsQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// ProductLineId Setter +// 产品线Id +func (r *TmallChannelProductsQueryAPIRequest) SetProductLineId(_productLineId int64) error { + r._productLineId = _productLineId + r.Set("product_line_id", _productLineId) + return nil +} + +// ProductLineId Getter +func (r TmallChannelProductsQueryAPIRequest) GetProductLineId() int64 { + return r._productLineId +} +// PageNum Setter +// 页码数,从1开始 +func (r *TmallChannelProductsQueryAPIRequest) SetPageNum(_pageNum int64) error { + r._pageNum = _pageNum + r.Set("page_num", _pageNum) + return nil +} + +// PageNum Getter +func (r TmallChannelProductsQueryAPIRequest) GetPageNum() int64 { + return r._pageNum +} diff --git a/model/tmallchannel/TmallChannelProductsQueryAPIResponse.go b/model/tmallchannel/TmallChannelProductsQueryAPIResponse.go new file mode 100644 index 0000000000..a9717b039b --- /dev/null +++ b/model/tmallchannel/TmallChannelProductsQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道中心-查询产品列表 API返回值 +tmall.channel.products.query + +渠道中心,供应商查询其产品数据,返回同时符合所有查询条件的产品信息 +*/ +type TmallChannelProductsQueryAPIResponse struct { + model.CommonResponse + TmallChannelProductsQueryAPIResponseModel +} + +// 渠道中心-查询产品列表 成功返回结果 +type TmallChannelProductsQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_channel_products_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PageResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelProductsQueryResponse.go b/model/tmallchannel/TmallChannelProductsQueryResponse.go deleted file mode 100644 index 743bc14d38..0000000000 --- a/model/tmallchannel/TmallChannelProductsQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -渠道中心-查询产品列表 API返回值 -tmall.channel.products.query - -渠道中心,供应商查询其产品数据,返回同时符合所有查询条件的产品信息 -*/ -type TmallChannelProductsQueryAPIResponse struct { - model.CommonResponse - TmallChannelProductsQueryResponse -} - -// 渠道中心-查询产品列表 成功返回结果 -type TmallChannelProductsQueryResponse struct { - XMLName xml.Name `xml:"tmall_channel_products_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PageResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallchannel/TmallChannelTradeApplyorderAgreeAPIRequest.go b/model/tmallchannel/TmallChannelTradeApplyorderAgreeAPIRequest.go new file mode 100644 index 0000000000..9cf57fdec7 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeApplyorderAgreeAPIRequest.go @@ -0,0 +1,66 @@ +package tmallchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商审核同意采购申请单 API请求 +tmall.channel.trade.applyorder.agree + +供应商审核同意采购申请单 +*/ +type TmallChannelTradeApplyorderAgreeAPIRequest struct { + model.Params + // 操作描述 + _operateDesc string + // 采购申请单号 + _channelPurchaseApplyOrderNo string +} + +// 初始化TmallChannelTradeApplyorderAgreeAPIRequest对象 +func NewTmallChannelTradeApplyorderAgreeRequest() *TmallChannelTradeApplyorderAgreeAPIRequest{ + return &TmallChannelTradeApplyorderAgreeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallChannelTradeApplyorderAgreeAPIRequest) GetApiMethodName() string { + return "tmall.channel.trade.applyorder.agree" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallChannelTradeApplyorderAgreeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OperateDesc Setter +// 操作描述 +func (r *TmallChannelTradeApplyorderAgreeAPIRequest) SetOperateDesc(_operateDesc string) error { + r._operateDesc = _operateDesc + r.Set("operate_desc", _operateDesc) + return nil +} + +// OperateDesc Getter +func (r TmallChannelTradeApplyorderAgreeAPIRequest) GetOperateDesc() string { + return r._operateDesc +} +// ChannelPurchaseApplyOrderNo Setter +// 采购申请单号 +func (r *TmallChannelTradeApplyorderAgreeAPIRequest) SetChannelPurchaseApplyOrderNo(_channelPurchaseApplyOrderNo string) error { + r._channelPurchaseApplyOrderNo = _channelPurchaseApplyOrderNo + r.Set("channel_purchase_apply_order_no", _channelPurchaseApplyOrderNo) + return nil +} + +// ChannelPurchaseApplyOrderNo Getter +func (r TmallChannelTradeApplyorderAgreeAPIRequest) GetChannelPurchaseApplyOrderNo() string { + return r._channelPurchaseApplyOrderNo +} diff --git a/model/tmallchannel/TmallChannelTradeApplyorderAgreeAPIResponse.go b/model/tmallchannel/TmallChannelTradeApplyorderAgreeAPIResponse.go new file mode 100644 index 0000000000..4a75d75034 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeApplyorderAgreeAPIResponse.go @@ -0,0 +1,27 @@ +package tmallchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商审核同意采购申请单 API返回值 +tmall.channel.trade.applyorder.agree + +供应商审核同意采购申请单 +*/ +type TmallChannelTradeApplyorderAgreeAPIResponse struct { + model.CommonResponse + TmallChannelTradeApplyorderAgreeAPIResponseModel +} + +// 供应商审核同意采购申请单 成功返回结果 +type TmallChannelTradeApplyorderAgreeAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_channel_trade_applyorder_agree_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallChannelTradeApplyorderAgreeResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeApplyorderAgreeResponse.go b/model/tmallchannel/TmallChannelTradeApplyorderAgreeResponse.go deleted file mode 100644 index 417f857d18..0000000000 --- a/model/tmallchannel/TmallChannelTradeApplyorderAgreeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商审核同意采购申请单 API返回值 -tmall.channel.trade.applyorder.agree - -供应商审核同意采购申请单 -*/ -type TmallChannelTradeApplyorderAgreeAPIResponse struct { - model.CommonResponse - TmallChannelTradeApplyorderAgreeResponse -} - -// 供应商审核同意采购申请单 成功返回结果 -type TmallChannelTradeApplyorderAgreeResponse struct { - XMLName xml.Name `xml:"tmall_channel_trade_applyorder_agree_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallChannelTradeApplyorderAgreeResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallchannel/TmallChannelTradeApplyorderAgreeResultDto.go b/model/tmallchannel/TmallChannelTradeApplyorderAgreeResultDto.go new file mode 100644 index 0000000000..c60d62ecc9 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeApplyorderAgreeResultDto.go @@ -0,0 +1,11 @@ +package tmallchannel + +// TmallChannelTradeApplyorderAgreeResultDto +type TmallChannelTradeApplyorderAgreeResultDto struct { + // errorMessage + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // errorCode + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // success + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeApplyorderGetAPIRequest.go b/model/tmallchannel/TmallChannelTradeApplyorderGetAPIRequest.go new file mode 100644 index 0000000000..b50a97284f --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeApplyorderGetAPIRequest.go @@ -0,0 +1,52 @@ +package tmallchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询采购申请单详情 API请求 +tmall.channel.trade.applyorder.get + +通过采购申请单ID获取单据详情 +*/ +type TmallChannelTradeApplyorderGetAPIRequest struct { + model.Params + // 采购申请单单号 + _channelPurchaseApplyOrderNo string +} + +// 初始化TmallChannelTradeApplyorderGetAPIRequest对象 +func NewTmallChannelTradeApplyorderGetRequest() *TmallChannelTradeApplyorderGetAPIRequest{ + return &TmallChannelTradeApplyorderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallChannelTradeApplyorderGetAPIRequest) GetApiMethodName() string { + return "tmall.channel.trade.applyorder.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallChannelTradeApplyorderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChannelPurchaseApplyOrderNo Setter +// 采购申请单单号 +func (r *TmallChannelTradeApplyorderGetAPIRequest) SetChannelPurchaseApplyOrderNo(_channelPurchaseApplyOrderNo string) error { + r._channelPurchaseApplyOrderNo = _channelPurchaseApplyOrderNo + r.Set("channel_purchase_apply_order_no", _channelPurchaseApplyOrderNo) + return nil +} + +// ChannelPurchaseApplyOrderNo Getter +func (r TmallChannelTradeApplyorderGetAPIRequest) GetChannelPurchaseApplyOrderNo() string { + return r._channelPurchaseApplyOrderNo +} diff --git a/model/tmallchannel/TmallChannelTradeApplyorderGetAPIResponse.go b/model/tmallchannel/TmallChannelTradeApplyorderGetAPIResponse.go new file mode 100644 index 0000000000..b8e82ed8e8 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeApplyorderGetAPIResponse.go @@ -0,0 +1,47 @@ +package tmallchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询采购申请单详情 API返回值 +tmall.channel.trade.applyorder.get + +通过采购申请单ID获取单据详情 +*/ +type TmallChannelTradeApplyorderGetAPIResponse struct { + model.CommonResponse + TmallChannelTradeApplyorderGetAPIResponseModel +} + +// 查询采购申请单详情 成功返回结果 +type TmallChannelTradeApplyorderGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_channel_trade_applyorder_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 申请单单号 + ChannelPurchaseApplyOrderNo string `json:"channel_purchase_apply_order_no,omitempty" xml:"channel_purchase_apply_order_no,omitempty"` + // 渠道 : com.tmall.usc.support.common.channelcenter.channel.enums.Channel + Channel int64 `json:"channel,omitempty" xml:"channel,omitempty"` + // 分销商名称 + DistributorNick string `json:"distributor_nick,omitempty" xml:"distributor_nick,omitempty"` + // 审核状态 : com.tmall.usc.support.common.channelcenter.trade.enums.AuditStatus + AuditStatus int64 `json:"audit_status,omitempty" xml:"audit_status,omitempty"` + // 申请单状态 : com.tmall.usc.support.common.channelcenter.trade.enums.apply.ChannelPurchaseApplyOrderStatus + OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"` + // 交易类型: com.tmall.usc.support.common.channelcenter.trade.enums.TradeType + TradeType int64 `json:"trade_type,omitempty" xml:"trade_type,omitempty"` + // 审核描述 + AuditDesc string `json:"audit_desc,omitempty" xml:"audit_desc,omitempty"` + // 撤回的描述 + CancelDesc string `json:"cancel_desc,omitempty" xml:"cancel_desc,omitempty"` + // 审核创建时间 + ApplyCreateTime string `json:"apply_create_time,omitempty" xml:"apply_create_time,omitempty"` + // 解析详情 + Schema string `json:"schema,omitempty" xml:"schema,omitempty"` + // 申请单详情 + ApplyOrderDetail *TopChannelApplyOrderDetailDto `json:"apply_order_detail,omitempty" xml:"apply_order_detail,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeApplyorderGetResponse.go b/model/tmallchannel/TmallChannelTradeApplyorderGetResponse.go deleted file mode 100644 index 9416e6c323..0000000000 --- a/model/tmallchannel/TmallChannelTradeApplyorderGetResponse.go +++ /dev/null @@ -1,47 +0,0 @@ -package tmallchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询采购申请单详情 API返回值 -tmall.channel.trade.applyorder.get - -通过采购申请单ID获取单据详情 -*/ -type TmallChannelTradeApplyorderGetAPIResponse struct { - model.CommonResponse - TmallChannelTradeApplyorderGetResponse -} - -// 查询采购申请单详情 成功返回结果 -type TmallChannelTradeApplyorderGetResponse struct { - XMLName xml.Name `xml:"tmall_channel_trade_applyorder_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 申请单单号 - ChannelPurchaseApplyOrderNo string `json:"channel_purchase_apply_order_no,omitempty" xml:"channel_purchase_apply_order_no,omitempty"` - // 渠道 : com.tmall.usc.support.common.channelcenter.channel.enums.Channel - Channel int64 `json:"channel,omitempty" xml:"channel,omitempty"` - // 分销商名称 - DistributorNick string `json:"distributor_nick,omitempty" xml:"distributor_nick,omitempty"` - // 审核状态 : com.tmall.usc.support.common.channelcenter.trade.enums.AuditStatus - AuditStatus int64 `json:"audit_status,omitempty" xml:"audit_status,omitempty"` - // 申请单状态 : com.tmall.usc.support.common.channelcenter.trade.enums.apply.ChannelPurchaseApplyOrderStatus - OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"` - // 交易类型: com.tmall.usc.support.common.channelcenter.trade.enums.TradeType - TradeType int64 `json:"trade_type,omitempty" xml:"trade_type,omitempty"` - // 审核描述 - AuditDesc string `json:"audit_desc,omitempty" xml:"audit_desc,omitempty"` - // 撤回的描述 - CancelDesc string `json:"cancel_desc,omitempty" xml:"cancel_desc,omitempty"` - // 审核创建时间 - ApplyCreateTime string `json:"apply_create_time,omitempty" xml:"apply_create_time,omitempty"` - // 解析详情 - Schema string `json:"schema,omitempty" xml:"schema,omitempty"` - // 申请单详情 - ApplyOrderDetail *TopChannelApplyOrderDetailDto `json:"apply_order_detail,omitempty" xml:"apply_order_detail,omitempty"` -} diff --git a/model/tmallchannel/TmallChannelTradeApplyorderGetsAPIRequest.go b/model/tmallchannel/TmallChannelTradeApplyorderGetsAPIRequest.go new file mode 100644 index 0000000000..1a603c94d0 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeApplyorderGetsAPIRequest.go @@ -0,0 +1,150 @@ +package tmallchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取采购申请单列表 API请求 +tmall.channel.trade.applyorder.gets + +分页查询采购申请单列表 +*/ +type TmallChannelTradeApplyorderGetsAPIRequest struct { + model.Params + // 交易类型 + _tradeType int64 + // 申请单号 + _channelPurchaseApplyOrderNo string + // 每页显示数量 + _pageSize int64 + // 查询第几页 + _pageNumber int64 + // 是否需要分页 + _needPagination bool + // 审核状态列表 + _auditStatusList []int64 + // 分销商nick + _distributorNick string + // 渠道 + _channel int64 +} + +// 初始化TmallChannelTradeApplyorderGetsAPIRequest对象 +func NewTmallChannelTradeApplyorderGetsRequest() *TmallChannelTradeApplyorderGetsAPIRequest{ + return &TmallChannelTradeApplyorderGetsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallChannelTradeApplyorderGetsAPIRequest) GetApiMethodName() string { + return "tmall.channel.trade.applyorder.gets" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallChannelTradeApplyorderGetsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeType Setter +// 交易类型 +func (r *TmallChannelTradeApplyorderGetsAPIRequest) SetTradeType(_tradeType int64) error { + r._tradeType = _tradeType + r.Set("trade_type", _tradeType) + return nil +} + +// TradeType Getter +func (r TmallChannelTradeApplyorderGetsAPIRequest) GetTradeType() int64 { + return r._tradeType +} +// ChannelPurchaseApplyOrderNo Setter +// 申请单号 +func (r *TmallChannelTradeApplyorderGetsAPIRequest) SetChannelPurchaseApplyOrderNo(_channelPurchaseApplyOrderNo string) error { + r._channelPurchaseApplyOrderNo = _channelPurchaseApplyOrderNo + r.Set("channel_purchase_apply_order_no", _channelPurchaseApplyOrderNo) + return nil +} + +// ChannelPurchaseApplyOrderNo Getter +func (r TmallChannelTradeApplyorderGetsAPIRequest) GetChannelPurchaseApplyOrderNo() string { + return r._channelPurchaseApplyOrderNo +} +// PageSize Setter +// 每页显示数量 +func (r *TmallChannelTradeApplyorderGetsAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TmallChannelTradeApplyorderGetsAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNumber Setter +// 查询第几页 +func (r *TmallChannelTradeApplyorderGetsAPIRequest) SetPageNumber(_pageNumber int64) error { + r._pageNumber = _pageNumber + r.Set("page_number", _pageNumber) + return nil +} + +// PageNumber Getter +func (r TmallChannelTradeApplyorderGetsAPIRequest) GetPageNumber() int64 { + return r._pageNumber +} +// NeedPagination Setter +// 是否需要分页 +func (r *TmallChannelTradeApplyorderGetsAPIRequest) SetNeedPagination(_needPagination bool) error { + r._needPagination = _needPagination + r.Set("need_pagination", _needPagination) + return nil +} + +// NeedPagination Getter +func (r TmallChannelTradeApplyorderGetsAPIRequest) GetNeedPagination() bool { + return r._needPagination +} +// AuditStatusList Setter +// 审核状态列表 +func (r *TmallChannelTradeApplyorderGetsAPIRequest) SetAuditStatusList(_auditStatusList []int64) error { + r._auditStatusList = _auditStatusList + r.Set("audit_status_list", _auditStatusList) + return nil +} + +// AuditStatusList Getter +func (r TmallChannelTradeApplyorderGetsAPIRequest) GetAuditStatusList() []int64 { + return r._auditStatusList +} +// DistributorNick Setter +// 分销商nick +func (r *TmallChannelTradeApplyorderGetsAPIRequest) SetDistributorNick(_distributorNick string) error { + r._distributorNick = _distributorNick + r.Set("distributor_nick", _distributorNick) + return nil +} + +// DistributorNick Getter +func (r TmallChannelTradeApplyorderGetsAPIRequest) GetDistributorNick() string { + return r._distributorNick +} +// Channel Setter +// 渠道 +func (r *TmallChannelTradeApplyorderGetsAPIRequest) SetChannel(_channel int64) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r TmallChannelTradeApplyorderGetsAPIRequest) GetChannel() int64 { + return r._channel +} diff --git a/model/tmallchannel/TmallChannelTradeApplyorderGetsAPIResponse.go b/model/tmallchannel/TmallChannelTradeApplyorderGetsAPIResponse.go new file mode 100644 index 0000000000..c7f8828373 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeApplyorderGetsAPIResponse.go @@ -0,0 +1,33 @@ +package tmallchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取采购申请单列表 API返回值 +tmall.channel.trade.applyorder.gets + +分页查询采购申请单列表 +*/ +type TmallChannelTradeApplyorderGetsAPIResponse struct { + model.CommonResponse + TmallChannelTradeApplyorderGetsAPIResponseModel +} + +// 获取采购申请单列表 成功返回结果 +type TmallChannelTradeApplyorderGetsAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_channel_trade_applyorder_gets_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 每页显示数量 + PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` + // 查询第几页 + PageNumber int64 `json:"page_number,omitempty" xml:"page_number,omitempty"` + // 包含的元素 + PageElements []TopChannelApplyOrderDto `json:"page_elements,omitempty" xml:"page_elements>top_channel_apply_order_dto,omitempty"` + // 所有元素个数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeApplyorderGetsResponse.go b/model/tmallchannel/TmallChannelTradeApplyorderGetsResponse.go deleted file mode 100644 index 034539b753..0000000000 --- a/model/tmallchannel/TmallChannelTradeApplyorderGetsResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取采购申请单列表 API返回值 -tmall.channel.trade.applyorder.gets - -分页查询采购申请单列表 -*/ -type TmallChannelTradeApplyorderGetsAPIResponse struct { - model.CommonResponse - TmallChannelTradeApplyorderGetsResponse -} - -// 获取采购申请单列表 成功返回结果 -type TmallChannelTradeApplyorderGetsResponse struct { - XMLName xml.Name `xml:"tmall_channel_trade_applyorder_gets_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 每页显示数量 - PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` - // 查询第几页 - PageNumber int64 `json:"page_number,omitempty" xml:"page_number,omitempty"` - // 包含的元素 - PageElements []TopChannelApplyOrderDto `json:"page_elements,omitempty" xml:"page_elements>top_channel_apply_order_dto,omitempty"` - // 所有元素个数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/tmallchannel/TmallChannelTradeApplyorderModifyAPIRequest.go b/model/tmallchannel/TmallChannelTradeApplyorderModifyAPIRequest.go new file mode 100644 index 0000000000..cc14fe853d --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeApplyorderModifyAPIRequest.go @@ -0,0 +1,66 @@ +package tmallchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商修改申请单 API请求 +tmall.channel.trade.applyorder.modify + +上游供应商修改申请单, 目前只允许修改价格+件数且sku数量必须完全一致 +*/ +type TmallChannelTradeApplyorderModifyAPIRequest struct { + model.Params + // 采购申请单号 + _channelPurchaseApplyOrderNo string + // 修改关联的的宝贝信息 + _applyOrderRelateItemModifyParamList []TopChannelApplyOrderRelateItemModifyParam +} + +// 初始化TmallChannelTradeApplyorderModifyAPIRequest对象 +func NewTmallChannelTradeApplyorderModifyRequest() *TmallChannelTradeApplyorderModifyAPIRequest{ + return &TmallChannelTradeApplyorderModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallChannelTradeApplyorderModifyAPIRequest) GetApiMethodName() string { + return "tmall.channel.trade.applyorder.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallChannelTradeApplyorderModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChannelPurchaseApplyOrderNo Setter +// 采购申请单号 +func (r *TmallChannelTradeApplyorderModifyAPIRequest) SetChannelPurchaseApplyOrderNo(_channelPurchaseApplyOrderNo string) error { + r._channelPurchaseApplyOrderNo = _channelPurchaseApplyOrderNo + r.Set("channel_purchase_apply_order_no", _channelPurchaseApplyOrderNo) + return nil +} + +// ChannelPurchaseApplyOrderNo Getter +func (r TmallChannelTradeApplyorderModifyAPIRequest) GetChannelPurchaseApplyOrderNo() string { + return r._channelPurchaseApplyOrderNo +} +// ApplyOrderRelateItemModifyParamList Setter +// 修改关联的的宝贝信息 +func (r *TmallChannelTradeApplyorderModifyAPIRequest) SetApplyOrderRelateItemModifyParamList(_applyOrderRelateItemModifyParamList []TopChannelApplyOrderRelateItemModifyParam) error { + r._applyOrderRelateItemModifyParamList = _applyOrderRelateItemModifyParamList + r.Set("apply_order_relate_item_modify_param_list", _applyOrderRelateItemModifyParamList) + return nil +} + +// ApplyOrderRelateItemModifyParamList Getter +func (r TmallChannelTradeApplyorderModifyAPIRequest) GetApplyOrderRelateItemModifyParamList() []TopChannelApplyOrderRelateItemModifyParam { + return r._applyOrderRelateItemModifyParamList +} diff --git a/model/tmallchannel/TmallChannelTradeApplyorderModifyAPIResponse.go b/model/tmallchannel/TmallChannelTradeApplyorderModifyAPIResponse.go new file mode 100644 index 0000000000..05ec953702 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeApplyorderModifyAPIResponse.go @@ -0,0 +1,27 @@ +package tmallchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商修改申请单 API返回值 +tmall.channel.trade.applyorder.modify + +上游供应商修改申请单, 目前只允许修改价格+件数且sku数量必须完全一致 +*/ +type TmallChannelTradeApplyorderModifyAPIResponse struct { + model.CommonResponse + TmallChannelTradeApplyorderModifyAPIResponseModel +} + +// 供应商修改申请单 成功返回结果 +type TmallChannelTradeApplyorderModifyAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_channel_trade_applyorder_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallChannelTradeApplyorderModifyResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeApplyorderModifyResponse.go b/model/tmallchannel/TmallChannelTradeApplyorderModifyResponse.go deleted file mode 100644 index 79cf88d6df..0000000000 --- a/model/tmallchannel/TmallChannelTradeApplyorderModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商修改申请单 API返回值 -tmall.channel.trade.applyorder.modify - -上游供应商修改申请单, 目前只允许修改价格+件数且sku数量必须完全一致 -*/ -type TmallChannelTradeApplyorderModifyAPIResponse struct { - model.CommonResponse - TmallChannelTradeApplyorderModifyResponse -} - -// 供应商修改申请单 成功返回结果 -type TmallChannelTradeApplyorderModifyResponse struct { - XMLName xml.Name `xml:"tmall_channel_trade_applyorder_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallChannelTradeApplyorderModifyResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallchannel/TmallChannelTradeApplyorderModifyResultDto.go b/model/tmallchannel/TmallChannelTradeApplyorderModifyResultDto.go new file mode 100644 index 0000000000..2c8e9b38a3 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeApplyorderModifyResultDto.go @@ -0,0 +1,11 @@ +package tmallchannel + +// TmallChannelTradeApplyorderModifyResultDto +type TmallChannelTradeApplyorderModifyResultDto struct { + // 错误信息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 操作是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeApplyorderRefuseAPIRequest.go b/model/tmallchannel/TmallChannelTradeApplyorderRefuseAPIRequest.go new file mode 100644 index 0000000000..14fa1cf12c --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeApplyorderRefuseAPIRequest.go @@ -0,0 +1,66 @@ +package tmallchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商审核拒绝采购申请单 API请求 +tmall.channel.trade.applyorder.refuse + +供应商审核拒绝采购申请单 +*/ +type TmallChannelTradeApplyorderRefuseAPIRequest struct { + model.Params + // 操作描述 + _operateDesc string + // 采购申请单号 + _channelPurchaseApplyOrderNo string +} + +// 初始化TmallChannelTradeApplyorderRefuseAPIRequest对象 +func NewTmallChannelTradeApplyorderRefuseRequest() *TmallChannelTradeApplyorderRefuseAPIRequest{ + return &TmallChannelTradeApplyorderRefuseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallChannelTradeApplyorderRefuseAPIRequest) GetApiMethodName() string { + return "tmall.channel.trade.applyorder.refuse" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallChannelTradeApplyorderRefuseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OperateDesc Setter +// 操作描述 +func (r *TmallChannelTradeApplyorderRefuseAPIRequest) SetOperateDesc(_operateDesc string) error { + r._operateDesc = _operateDesc + r.Set("operate_desc", _operateDesc) + return nil +} + +// OperateDesc Getter +func (r TmallChannelTradeApplyorderRefuseAPIRequest) GetOperateDesc() string { + return r._operateDesc +} +// ChannelPurchaseApplyOrderNo Setter +// 采购申请单号 +func (r *TmallChannelTradeApplyorderRefuseAPIRequest) SetChannelPurchaseApplyOrderNo(_channelPurchaseApplyOrderNo string) error { + r._channelPurchaseApplyOrderNo = _channelPurchaseApplyOrderNo + r.Set("channel_purchase_apply_order_no", _channelPurchaseApplyOrderNo) + return nil +} + +// ChannelPurchaseApplyOrderNo Getter +func (r TmallChannelTradeApplyorderRefuseAPIRequest) GetChannelPurchaseApplyOrderNo() string { + return r._channelPurchaseApplyOrderNo +} diff --git a/model/tmallchannel/TmallChannelTradeApplyorderRefuseAPIResponse.go b/model/tmallchannel/TmallChannelTradeApplyorderRefuseAPIResponse.go new file mode 100644 index 0000000000..b9a9f56ac7 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeApplyorderRefuseAPIResponse.go @@ -0,0 +1,27 @@ +package tmallchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商审核拒绝采购申请单 API返回值 +tmall.channel.trade.applyorder.refuse + +供应商审核拒绝采购申请单 +*/ +type TmallChannelTradeApplyorderRefuseAPIResponse struct { + model.CommonResponse + TmallChannelTradeApplyorderRefuseAPIResponseModel +} + +// 供应商审核拒绝采购申请单 成功返回结果 +type TmallChannelTradeApplyorderRefuseAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_channel_trade_applyorder_refuse_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallChannelTradeApplyorderRefuseResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeApplyorderRefuseResponse.go b/model/tmallchannel/TmallChannelTradeApplyorderRefuseResponse.go deleted file mode 100644 index a6f9d53e8a..0000000000 --- a/model/tmallchannel/TmallChannelTradeApplyorderRefuseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商审核拒绝采购申请单 API返回值 -tmall.channel.trade.applyorder.refuse - -供应商审核拒绝采购申请单 -*/ -type TmallChannelTradeApplyorderRefuseAPIResponse struct { - model.CommonResponse - TmallChannelTradeApplyorderRefuseResponse -} - -// 供应商审核拒绝采购申请单 成功返回结果 -type TmallChannelTradeApplyorderRefuseResponse struct { - XMLName xml.Name `xml:"tmall_channel_trade_applyorder_refuse_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallChannelTradeApplyorderRefuseResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallchannel/TmallChannelTradeApplyorderRefuseResultDto.go b/model/tmallchannel/TmallChannelTradeApplyorderRefuseResultDto.go new file mode 100644 index 0000000000..b8556bbe84 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeApplyorderRefuseResultDto.go @@ -0,0 +1,11 @@ +package tmallchannel + +// TmallChannelTradeApplyorderRefuseResultDto +type TmallChannelTradeApplyorderRefuseResultDto struct { + // 错误信息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 是否执行成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeDeliverorderAgreeAPIRequest.go b/model/tmallchannel/TmallChannelTradeDeliverorderAgreeAPIRequest.go new file mode 100644 index 0000000000..90205a153f --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeDeliverorderAgreeAPIRequest.go @@ -0,0 +1,66 @@ +package tmallchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商审核通过发货确认 API请求 +tmall.channel.trade.deliverorder.agree + +供应商通过收货确认单 +*/ +type TmallChannelTradeDeliverorderAgreeAPIRequest struct { + model.Params + // 发货单号 + _mainDeliverOrderNo int64 + // 同意理由 + _operateDesc string +} + +// 初始化TmallChannelTradeDeliverorderAgreeAPIRequest对象 +func NewTmallChannelTradeDeliverorderAgreeRequest() *TmallChannelTradeDeliverorderAgreeAPIRequest{ + return &TmallChannelTradeDeliverorderAgreeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallChannelTradeDeliverorderAgreeAPIRequest) GetApiMethodName() string { + return "tmall.channel.trade.deliverorder.agree" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallChannelTradeDeliverorderAgreeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainDeliverOrderNo Setter +// 发货单号 +func (r *TmallChannelTradeDeliverorderAgreeAPIRequest) SetMainDeliverOrderNo(_mainDeliverOrderNo int64) error { + r._mainDeliverOrderNo = _mainDeliverOrderNo + r.Set("main_deliver_order_no", _mainDeliverOrderNo) + return nil +} + +// MainDeliverOrderNo Getter +func (r TmallChannelTradeDeliverorderAgreeAPIRequest) GetMainDeliverOrderNo() int64 { + return r._mainDeliverOrderNo +} +// OperateDesc Setter +// 同意理由 +func (r *TmallChannelTradeDeliverorderAgreeAPIRequest) SetOperateDesc(_operateDesc string) error { + r._operateDesc = _operateDesc + r.Set("operate_desc", _operateDesc) + return nil +} + +// OperateDesc Getter +func (r TmallChannelTradeDeliverorderAgreeAPIRequest) GetOperateDesc() string { + return r._operateDesc +} diff --git a/model/tmallchannel/TmallChannelTradeDeliverorderAgreeAPIResponse.go b/model/tmallchannel/TmallChannelTradeDeliverorderAgreeAPIResponse.go new file mode 100644 index 0000000000..75f46a296b --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeDeliverorderAgreeAPIResponse.go @@ -0,0 +1,27 @@ +package tmallchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商审核通过发货确认 API返回值 +tmall.channel.trade.deliverorder.agree + +供应商通过收货确认单 +*/ +type TmallChannelTradeDeliverorderAgreeAPIResponse struct { + model.CommonResponse + TmallChannelTradeDeliverorderAgreeAPIResponseModel +} + +// 供应商审核通过发货确认 成功返回结果 +type TmallChannelTradeDeliverorderAgreeAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_channel_trade_deliverorder_agree_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallChannelTradeDeliverorderAgreeResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeDeliverorderAgreeResponse.go b/model/tmallchannel/TmallChannelTradeDeliverorderAgreeResponse.go deleted file mode 100644 index 3309a6dc34..0000000000 --- a/model/tmallchannel/TmallChannelTradeDeliverorderAgreeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商审核通过发货确认 API返回值 -tmall.channel.trade.deliverorder.agree - -供应商通过收货确认单 -*/ -type TmallChannelTradeDeliverorderAgreeAPIResponse struct { - model.CommonResponse - TmallChannelTradeDeliverorderAgreeResponse -} - -// 供应商审核通过发货确认 成功返回结果 -type TmallChannelTradeDeliverorderAgreeResponse struct { - XMLName xml.Name `xml:"tmall_channel_trade_deliverorder_agree_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallChannelTradeDeliverorderAgreeResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallchannel/TmallChannelTradeDeliverorderAgreeResultDto.go b/model/tmallchannel/TmallChannelTradeDeliverorderAgreeResultDto.go new file mode 100644 index 0000000000..bf35cb6a9f --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeDeliverorderAgreeResultDto.go @@ -0,0 +1,11 @@ +package tmallchannel + +// TmallChannelTradeDeliverorderAgreeResultDto +type TmallChannelTradeDeliverorderAgreeResultDto struct { + // 错误信息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 操作是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeDeliverorderGetAPIRequest.go b/model/tmallchannel/TmallChannelTradeDeliverorderGetAPIRequest.go new file mode 100644 index 0000000000..2486353d97 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeDeliverorderGetAPIRequest.go @@ -0,0 +1,66 @@ +package tmallchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过发货单单号获取发货单的详情 API请求 +tmall.channel.trade.deliverorder.get + +通过发货单单号获取发货单的详情 +*/ +type TmallChannelTradeDeliverorderGetAPIRequest struct { + model.Params + // 发货单号 + _mainDeliverOrderNo int64 + // 是否包含子发货单 + _isIncludeSubOrder bool +} + +// 初始化TmallChannelTradeDeliverorderGetAPIRequest对象 +func NewTmallChannelTradeDeliverorderGetRequest() *TmallChannelTradeDeliverorderGetAPIRequest{ + return &TmallChannelTradeDeliverorderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallChannelTradeDeliverorderGetAPIRequest) GetApiMethodName() string { + return "tmall.channel.trade.deliverorder.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallChannelTradeDeliverorderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainDeliverOrderNo Setter +// 发货单号 +func (r *TmallChannelTradeDeliverorderGetAPIRequest) SetMainDeliverOrderNo(_mainDeliverOrderNo int64) error { + r._mainDeliverOrderNo = _mainDeliverOrderNo + r.Set("main_deliver_order_no", _mainDeliverOrderNo) + return nil +} + +// MainDeliverOrderNo Getter +func (r TmallChannelTradeDeliverorderGetAPIRequest) GetMainDeliverOrderNo() int64 { + return r._mainDeliverOrderNo +} +// IsIncludeSubOrder Setter +// 是否包含子发货单 +func (r *TmallChannelTradeDeliverorderGetAPIRequest) SetIsIncludeSubOrder(_isIncludeSubOrder bool) error { + r._isIncludeSubOrder = _isIncludeSubOrder + r.Set("is_include_sub_order", _isIncludeSubOrder) + return nil +} + +// IsIncludeSubOrder Getter +func (r TmallChannelTradeDeliverorderGetAPIRequest) GetIsIncludeSubOrder() bool { + return r._isIncludeSubOrder +} diff --git a/model/tmallchannel/TmallChannelTradeDeliverorderGetAPIResponse.go b/model/tmallchannel/TmallChannelTradeDeliverorderGetAPIResponse.go new file mode 100644 index 0000000000..8828979aed --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeDeliverorderGetAPIResponse.go @@ -0,0 +1,45 @@ +package tmallchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过发货单单号获取发货单的详情 API返回值 +tmall.channel.trade.deliverorder.get + +通过发货单单号获取发货单的详情 +*/ +type TmallChannelTradeDeliverorderGetAPIResponse struct { + model.CommonResponse + TmallChannelTradeDeliverorderGetAPIResponseModel +} + +// 通过发货单单号获取发货单的详情 成功返回结果 +type TmallChannelTradeDeliverorderGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_channel_trade_deliverorder_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 发货单单号 + MainDeliverOrderNo int64 `json:"main_deliver_order_no,omitempty" xml:"main_deliver_order_no,omitempty"` + // 发货单状态 + OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"` + // 确认单审核状态 + AuditStatus int64 `json:"audit_status,omitempty" xml:"audit_status,omitempty"` + // 分销商Nick + DistributorNick string `json:"distributor_nick,omitempty" xml:"distributor_nick,omitempty"` + // 渠道 + Channel int64 `json:"channel,omitempty" xml:"channel,omitempty"` + // 创建时间 + OrderCreateTime string `json:"order_create_time,omitempty" xml:"order_create_time,omitempty"` + // 最后更新时间 + OrderLastModifyTime string `json:"order_last_modify_time,omitempty" xml:"order_last_modify_time,omitempty"` + // 子发货单列表 + SubDeliverOrderList []TopChannelSubDeliverOrderDto `json:"sub_deliver_order_list,omitempty" xml:"sub_deliver_order_list>top_channel_sub_deliver_order_dto,omitempty"` + // 物流单列表 + LogisticsOrderList []TopChannelLogisticsOrderDto `json:"logistics_order_list,omitempty" xml:"logistics_order_list>top_channel_logistics_order_dto,omitempty"` + // 解析描述 + Schema string `json:"schema,omitempty" xml:"schema,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeDeliverorderGetResponse.go b/model/tmallchannel/TmallChannelTradeDeliverorderGetResponse.go deleted file mode 100644 index c7df4bd37b..0000000000 --- a/model/tmallchannel/TmallChannelTradeDeliverorderGetResponse.go +++ /dev/null @@ -1,45 +0,0 @@ -package tmallchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过发货单单号获取发货单的详情 API返回值 -tmall.channel.trade.deliverorder.get - -通过发货单单号获取发货单的详情 -*/ -type TmallChannelTradeDeliverorderGetAPIResponse struct { - model.CommonResponse - TmallChannelTradeDeliverorderGetResponse -} - -// 通过发货单单号获取发货单的详情 成功返回结果 -type TmallChannelTradeDeliverorderGetResponse struct { - XMLName xml.Name `xml:"tmall_channel_trade_deliverorder_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 发货单单号 - MainDeliverOrderNo int64 `json:"main_deliver_order_no,omitempty" xml:"main_deliver_order_no,omitempty"` - // 发货单状态 - OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"` - // 确认单审核状态 - AuditStatus int64 `json:"audit_status,omitempty" xml:"audit_status,omitempty"` - // 分销商Nick - DistributorNick string `json:"distributor_nick,omitempty" xml:"distributor_nick,omitempty"` - // 渠道 - Channel int64 `json:"channel,omitempty" xml:"channel,omitempty"` - // 创建时间 - OrderCreateTime string `json:"order_create_time,omitempty" xml:"order_create_time,omitempty"` - // 最后更新时间 - OrderLastModifyTime string `json:"order_last_modify_time,omitempty" xml:"order_last_modify_time,omitempty"` - // 子发货单列表 - SubDeliverOrderList []TopChannelSubDeliverOrderDto `json:"sub_deliver_order_list,omitempty" xml:"sub_deliver_order_list>top_channel_sub_deliver_order_dto,omitempty"` - // 物流单列表 - LogisticsOrderList []TopChannelLogisticsOrderDto `json:"logistics_order_list,omitempty" xml:"logistics_order_list>top_channel_logistics_order_dto,omitempty"` - // 解析描述 - Schema string `json:"schema,omitempty" xml:"schema,omitempty"` -} diff --git a/model/tmallchannel/TmallChannelTradeDeliverorderGetsAPIRequest.go b/model/tmallchannel/TmallChannelTradeDeliverorderGetsAPIRequest.go new file mode 100644 index 0000000000..d818ac5246 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeDeliverorderGetsAPIRequest.go @@ -0,0 +1,136 @@ +package tmallchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询发货单列表 API请求 +tmall.channel.trade.deliverorder.gets + +查询发货单列表 +*/ +type TmallChannelTradeDeliverorderGetsAPIRequest struct { + model.Params + // 发货单单号 + _mainDeliverOrderNo int64 + // 发货单状态列表 + _orderStatusList []int64 + // 是否包括子发货单 + _isIncludeSubOrder bool + // 每页显示数量 + _pageSize int64 + // 查询第几页 + _pageNumber int64 + // 是否分页查询 + _needPagination bool + // 渠道 + _channel int64 +} + +// 初始化TmallChannelTradeDeliverorderGetsAPIRequest对象 +func NewTmallChannelTradeDeliverorderGetsRequest() *TmallChannelTradeDeliverorderGetsAPIRequest{ + return &TmallChannelTradeDeliverorderGetsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallChannelTradeDeliverorderGetsAPIRequest) GetApiMethodName() string { + return "tmall.channel.trade.deliverorder.gets" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallChannelTradeDeliverorderGetsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainDeliverOrderNo Setter +// 发货单单号 +func (r *TmallChannelTradeDeliverorderGetsAPIRequest) SetMainDeliverOrderNo(_mainDeliverOrderNo int64) error { + r._mainDeliverOrderNo = _mainDeliverOrderNo + r.Set("main_deliver_order_no", _mainDeliverOrderNo) + return nil +} + +// MainDeliverOrderNo Getter +func (r TmallChannelTradeDeliverorderGetsAPIRequest) GetMainDeliverOrderNo() int64 { + return r._mainDeliverOrderNo +} +// OrderStatusList Setter +// 发货单状态列表 +func (r *TmallChannelTradeDeliverorderGetsAPIRequest) SetOrderStatusList(_orderStatusList []int64) error { + r._orderStatusList = _orderStatusList + r.Set("order_status_list", _orderStatusList) + return nil +} + +// OrderStatusList Getter +func (r TmallChannelTradeDeliverorderGetsAPIRequest) GetOrderStatusList() []int64 { + return r._orderStatusList +} +// IsIncludeSubOrder Setter +// 是否包括子发货单 +func (r *TmallChannelTradeDeliverorderGetsAPIRequest) SetIsIncludeSubOrder(_isIncludeSubOrder bool) error { + r._isIncludeSubOrder = _isIncludeSubOrder + r.Set("is_include_sub_order", _isIncludeSubOrder) + return nil +} + +// IsIncludeSubOrder Getter +func (r TmallChannelTradeDeliverorderGetsAPIRequest) GetIsIncludeSubOrder() bool { + return r._isIncludeSubOrder +} +// PageSize Setter +// 每页显示数量 +func (r *TmallChannelTradeDeliverorderGetsAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TmallChannelTradeDeliverorderGetsAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNumber Setter +// 查询第几页 +func (r *TmallChannelTradeDeliverorderGetsAPIRequest) SetPageNumber(_pageNumber int64) error { + r._pageNumber = _pageNumber + r.Set("page_number", _pageNumber) + return nil +} + +// PageNumber Getter +func (r TmallChannelTradeDeliverorderGetsAPIRequest) GetPageNumber() int64 { + return r._pageNumber +} +// NeedPagination Setter +// 是否分页查询 +func (r *TmallChannelTradeDeliverorderGetsAPIRequest) SetNeedPagination(_needPagination bool) error { + r._needPagination = _needPagination + r.Set("need_pagination", _needPagination) + return nil +} + +// NeedPagination Getter +func (r TmallChannelTradeDeliverorderGetsAPIRequest) GetNeedPagination() bool { + return r._needPagination +} +// Channel Setter +// 渠道 +func (r *TmallChannelTradeDeliverorderGetsAPIRequest) SetChannel(_channel int64) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r TmallChannelTradeDeliverorderGetsAPIRequest) GetChannel() int64 { + return r._channel +} diff --git a/model/tmallchannel/TmallChannelTradeDeliverorderGetsAPIResponse.go b/model/tmallchannel/TmallChannelTradeDeliverorderGetsAPIResponse.go new file mode 100644 index 0000000000..3b566433d5 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeDeliverorderGetsAPIResponse.go @@ -0,0 +1,33 @@ +package tmallchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询发货单列表 API返回值 +tmall.channel.trade.deliverorder.gets + +查询发货单列表 +*/ +type TmallChannelTradeDeliverorderGetsAPIResponse struct { + model.CommonResponse + TmallChannelTradeDeliverorderGetsAPIResponseModel +} + +// 查询发货单列表 成功返回结果 +type TmallChannelTradeDeliverorderGetsAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_channel_trade_deliverorder_gets_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 每页显示数量 + PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` + // 查询第几页 + PageNumber int64 `json:"page_number,omitempty" xml:"page_number,omitempty"` + // 此页中包含的元素 + PageElements []TopChannelDeliverOrderDto `json:"page_elements,omitempty" xml:"page_elements>top_channel_deliver_order_dto,omitempty"` + // 所有元素个数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeDeliverorderGetsResponse.go b/model/tmallchannel/TmallChannelTradeDeliverorderGetsResponse.go deleted file mode 100644 index 3317302f6d..0000000000 --- a/model/tmallchannel/TmallChannelTradeDeliverorderGetsResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询发货单列表 API返回值 -tmall.channel.trade.deliverorder.gets - -查询发货单列表 -*/ -type TmallChannelTradeDeliverorderGetsAPIResponse struct { - model.CommonResponse - TmallChannelTradeDeliverorderGetsResponse -} - -// 查询发货单列表 成功返回结果 -type TmallChannelTradeDeliverorderGetsResponse struct { - XMLName xml.Name `xml:"tmall_channel_trade_deliverorder_gets_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 每页显示数量 - PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` - // 查询第几页 - PageNumber int64 `json:"page_number,omitempty" xml:"page_number,omitempty"` - // 此页中包含的元素 - PageElements []TopChannelDeliverOrderDto `json:"page_elements,omitempty" xml:"page_elements>top_channel_deliver_order_dto,omitempty"` - // 所有元素个数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/tmallchannel/TmallChannelTradeDeliverorderRejectAPIRequest.go b/model/tmallchannel/TmallChannelTradeDeliverorderRejectAPIRequest.go new file mode 100644 index 0000000000..d4393537b0 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeDeliverorderRejectAPIRequest.go @@ -0,0 +1,66 @@ +package tmallchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商拒绝收货确认单 API请求 +tmall.channel.trade.deliverorder.reject + +供应商拒绝收货确认单 +*/ +type TmallChannelTradeDeliverorderRejectAPIRequest struct { + model.Params + // 发货单号 + _mainDeliverOrderNo int64 + // 拒绝原因 + _operateDesc string +} + +// 初始化TmallChannelTradeDeliverorderRejectAPIRequest对象 +func NewTmallChannelTradeDeliverorderRejectRequest() *TmallChannelTradeDeliverorderRejectAPIRequest{ + return &TmallChannelTradeDeliverorderRejectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallChannelTradeDeliverorderRejectAPIRequest) GetApiMethodName() string { + return "tmall.channel.trade.deliverorder.reject" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallChannelTradeDeliverorderRejectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainDeliverOrderNo Setter +// 发货单号 +func (r *TmallChannelTradeDeliverorderRejectAPIRequest) SetMainDeliverOrderNo(_mainDeliverOrderNo int64) error { + r._mainDeliverOrderNo = _mainDeliverOrderNo + r.Set("main_deliver_order_no", _mainDeliverOrderNo) + return nil +} + +// MainDeliverOrderNo Getter +func (r TmallChannelTradeDeliverorderRejectAPIRequest) GetMainDeliverOrderNo() int64 { + return r._mainDeliverOrderNo +} +// OperateDesc Setter +// 拒绝原因 +func (r *TmallChannelTradeDeliverorderRejectAPIRequest) SetOperateDesc(_operateDesc string) error { + r._operateDesc = _operateDesc + r.Set("operate_desc", _operateDesc) + return nil +} + +// OperateDesc Getter +func (r TmallChannelTradeDeliverorderRejectAPIRequest) GetOperateDesc() string { + return r._operateDesc +} diff --git a/model/tmallchannel/TmallChannelTradeDeliverorderRejectAPIResponse.go b/model/tmallchannel/TmallChannelTradeDeliverorderRejectAPIResponse.go new file mode 100644 index 0000000000..8837186b0d --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeDeliverorderRejectAPIResponse.go @@ -0,0 +1,27 @@ +package tmallchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商拒绝收货确认单 API返回值 +tmall.channel.trade.deliverorder.reject + +供应商拒绝收货确认单 +*/ +type TmallChannelTradeDeliverorderRejectAPIResponse struct { + model.CommonResponse + TmallChannelTradeDeliverorderRejectAPIResponseModel +} + +// 供应商拒绝收货确认单 成功返回结果 +type TmallChannelTradeDeliverorderRejectAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_channel_trade_deliverorder_reject_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallChannelTradeDeliverorderRejectResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeDeliverorderRejectResponse.go b/model/tmallchannel/TmallChannelTradeDeliverorderRejectResponse.go deleted file mode 100644 index 0ed1fb1936..0000000000 --- a/model/tmallchannel/TmallChannelTradeDeliverorderRejectResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商拒绝收货确认单 API返回值 -tmall.channel.trade.deliverorder.reject - -供应商拒绝收货确认单 -*/ -type TmallChannelTradeDeliverorderRejectAPIResponse struct { - model.CommonResponse - TmallChannelTradeDeliverorderRejectResponse -} - -// 供应商拒绝收货确认单 成功返回结果 -type TmallChannelTradeDeliverorderRejectResponse struct { - XMLName xml.Name `xml:"tmall_channel_trade_deliverorder_reject_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallChannelTradeDeliverorderRejectResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallchannel/TmallChannelTradeDeliverorderRejectResultDto.go b/model/tmallchannel/TmallChannelTradeDeliverorderRejectResultDto.go new file mode 100644 index 0000000000..3feb62f2d5 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeDeliverorderRejectResultDto.go @@ -0,0 +1,11 @@ +package tmallchannel + +// TmallChannelTradeDeliverorderRejectResultDto +type TmallChannelTradeDeliverorderRejectResultDto struct { + // 错误信息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 操作是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeOrderCreateAPIRequest.go b/model/tmallchannel/TmallChannelTradeOrderCreateAPIRequest.go new file mode 100644 index 0000000000..58fc70a079 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeOrderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package tmallchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建渠道分销单 API请求 +tmall.channel.trade.order.create + +创建渠道分销单 +*/ +type TmallChannelTradeOrderCreateAPIRequest struct { + model.Params + // 入参 + _param0 *TopChannelPurchaseOrderCreateParam +} + +// 初始化TmallChannelTradeOrderCreateAPIRequest对象 +func NewTmallChannelTradeOrderCreateRequest() *TmallChannelTradeOrderCreateAPIRequest{ + return &TmallChannelTradeOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallChannelTradeOrderCreateAPIRequest) GetApiMethodName() string { + return "tmall.channel.trade.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallChannelTradeOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 入参 +func (r *TmallChannelTradeOrderCreateAPIRequest) SetParam0(_param0 *TopChannelPurchaseOrderCreateParam) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TmallChannelTradeOrderCreateAPIRequest) GetParam0() *TopChannelPurchaseOrderCreateParam { + return r._param0 +} diff --git a/model/tmallchannel/TmallChannelTradeOrderCreateAPIResponse.go b/model/tmallchannel/TmallChannelTradeOrderCreateAPIResponse.go new file mode 100644 index 0000000000..70c5a6064a --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeOrderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建渠道分销单 API返回值 +tmall.channel.trade.order.create + +创建渠道分销单 +*/ +type TmallChannelTradeOrderCreateAPIResponse struct { + model.CommonResponse + TmallChannelTradeOrderCreateAPIResponseModel +} + +// 创建渠道分销单 成功返回结果 +type TmallChannelTradeOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_channel_trade_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 采购单号 + MainPurchaseOrderList []string `json:"main_purchase_order_list,omitempty" xml:"main_purchase_order_list>string,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeOrderCreateResponse.go b/model/tmallchannel/TmallChannelTradeOrderCreateResponse.go deleted file mode 100644 index e1402c7e71..0000000000 --- a/model/tmallchannel/TmallChannelTradeOrderCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建渠道分销单 API返回值 -tmall.channel.trade.order.create - -创建渠道分销单 -*/ -type TmallChannelTradeOrderCreateAPIResponse struct { - model.CommonResponse - TmallChannelTradeOrderCreateResponse -} - -// 创建渠道分销单 成功返回结果 -type TmallChannelTradeOrderCreateResponse struct { - XMLName xml.Name `xml:"tmall_channel_trade_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 采购单号 - MainPurchaseOrderList []string `json:"main_purchase_order_list,omitempty" xml:"main_purchase_order_list>string,omitempty"` -} diff --git a/model/tmallchannel/TmallChannelTradeOrderGetAPIRequest.go b/model/tmallchannel/TmallChannelTradeOrderGetAPIRequest.go new file mode 100644 index 0000000000..c48efb7f52 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeOrderGetAPIRequest.go @@ -0,0 +1,94 @@ +package tmallchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过主采购单号查询采购单 API请求 +tmall.channel.trade.order.get + +通过主采购单号查询采购单 +*/ +type TmallChannelTradeOrderGetAPIRequest struct { + model.Params + // 主采购单ID + _mainPurchaseOrderNo int64 + // 是否包含子采购单 + _isIncludeSubOrder bool + // 是否包含主采购单(针对特殊业务) + _isIncludeMainOrder bool + // 是否包含物流信息 + _isIncludeLogistics bool +} + +// 初始化TmallChannelTradeOrderGetAPIRequest对象 +func NewTmallChannelTradeOrderGetRequest() *TmallChannelTradeOrderGetAPIRequest{ + return &TmallChannelTradeOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallChannelTradeOrderGetAPIRequest) GetApiMethodName() string { + return "tmall.channel.trade.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallChannelTradeOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainPurchaseOrderNo Setter +// 主采购单ID +func (r *TmallChannelTradeOrderGetAPIRequest) SetMainPurchaseOrderNo(_mainPurchaseOrderNo int64) error { + r._mainPurchaseOrderNo = _mainPurchaseOrderNo + r.Set("main_purchase_order_no", _mainPurchaseOrderNo) + return nil +} + +// MainPurchaseOrderNo Getter +func (r TmallChannelTradeOrderGetAPIRequest) GetMainPurchaseOrderNo() int64 { + return r._mainPurchaseOrderNo +} +// IsIncludeSubOrder Setter +// 是否包含子采购单 +func (r *TmallChannelTradeOrderGetAPIRequest) SetIsIncludeSubOrder(_isIncludeSubOrder bool) error { + r._isIncludeSubOrder = _isIncludeSubOrder + r.Set("is_include_sub_order", _isIncludeSubOrder) + return nil +} + +// IsIncludeSubOrder Getter +func (r TmallChannelTradeOrderGetAPIRequest) GetIsIncludeSubOrder() bool { + return r._isIncludeSubOrder +} +// IsIncludeMainOrder Setter +// 是否包含主采购单(针对特殊业务) +func (r *TmallChannelTradeOrderGetAPIRequest) SetIsIncludeMainOrder(_isIncludeMainOrder bool) error { + r._isIncludeMainOrder = _isIncludeMainOrder + r.Set("is_include_main_order", _isIncludeMainOrder) + return nil +} + +// IsIncludeMainOrder Getter +func (r TmallChannelTradeOrderGetAPIRequest) GetIsIncludeMainOrder() bool { + return r._isIncludeMainOrder +} +// IsIncludeLogistics Setter +// 是否包含物流信息 +func (r *TmallChannelTradeOrderGetAPIRequest) SetIsIncludeLogistics(_isIncludeLogistics bool) error { + r._isIncludeLogistics = _isIncludeLogistics + r.Set("is_include_logistics", _isIncludeLogistics) + return nil +} + +// IsIncludeLogistics Getter +func (r TmallChannelTradeOrderGetAPIRequest) GetIsIncludeLogistics() bool { + return r._isIncludeLogistics +} diff --git a/model/tmallchannel/TmallChannelTradeOrderGetAPIResponse.go b/model/tmallchannel/TmallChannelTradeOrderGetAPIResponse.go new file mode 100644 index 0000000000..8956583f64 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeOrderGetAPIResponse.go @@ -0,0 +1,61 @@ +package tmallchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过主采购单号查询采购单 API返回值 +tmall.channel.trade.order.get + +通过主采购单号查询采购单 +*/ +type TmallChannelTradeOrderGetAPIResponse struct { + model.CommonResponse + TmallChannelTradeOrderGetAPIResponseModel +} + +// 通过主采购单号查询采购单 成功返回结果 +type TmallChannelTradeOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_channel_trade_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 主采购单号 + MainPurchaseOrderNo int64 `json:"main_purchase_order_no,omitempty" xml:"main_purchase_order_no,omitempty"` + // 申请单单号 + ChannelPurchaseApplyOrderNo string `json:"channel_purchase_apply_order_no,omitempty" xml:"channel_purchase_apply_order_no,omitempty"` + // 分销商淘宝nick + DistributorNick string `json:"distributor_nick,omitempty" xml:"distributor_nick,omitempty"` + // 买家淘宝nick + BuyerTaobaoNick string `json:"buyer_taobao_nick,omitempty" xml:"buyer_taobao_nick,omitempty"` + // 交易类型 + TradeType int64 `json:"trade_type,omitempty" xml:"trade_type,omitempty"` + // 付款类型 + PayType int64 `json:"pay_type,omitempty" xml:"pay_type,omitempty"` + // 渠道编码 + Channel int64 `json:"channel,omitempty" xml:"channel,omitempty"` + // 改价后的最新邮费 + PostFee int64 `json:"post_fee,omitempty" xml:"post_fee,omitempty"` + // 主采购单支付状态 + PayStatus int64 `json:"pay_status,omitempty" xml:"pay_status,omitempty"` + // 主采购单物流状态 + LogisticsStatus int64 `json:"logistics_status,omitempty" xml:"logistics_status,omitempty"` + // 交易状态 + OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"` + // 记录创建时间 + CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"` + // 记录修改时间 + ModifiedTime string `json:"modified_time,omitempty" xml:"modified_time,omitempty"` + // 付款时间 + PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"` + // 子采购单列表 + SubOrderList []TopChannelSubPurchaseOrderDto `json:"sub_order_list,omitempty" xml:"sub_order_list>top_channel_sub_purchase_order_dto,omitempty"` + // 物流单信息 + ChannelLogisticsOrder *TopChannelLogisticsOrderDto `json:"channel_logistics_order,omitempty" xml:"channel_logistics_order,omitempty"` + // 解析描述 + Schema string `json:"schema,omitempty" xml:"schema,omitempty"` + // 支付信息 + TopPurchasePayOrder *TopPurchasePayOrderDto `json:"top_purchase_pay_order,omitempty" xml:"top_purchase_pay_order,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeOrderGetResponse.go b/model/tmallchannel/TmallChannelTradeOrderGetResponse.go deleted file mode 100644 index 13055b00b2..0000000000 --- a/model/tmallchannel/TmallChannelTradeOrderGetResponse.go +++ /dev/null @@ -1,61 +0,0 @@ -package tmallchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过主采购单号查询采购单 API返回值 -tmall.channel.trade.order.get - -通过主采购单号查询采购单 -*/ -type TmallChannelTradeOrderGetAPIResponse struct { - model.CommonResponse - TmallChannelTradeOrderGetResponse -} - -// 通过主采购单号查询采购单 成功返回结果 -type TmallChannelTradeOrderGetResponse struct { - XMLName xml.Name `xml:"tmall_channel_trade_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 主采购单号 - MainPurchaseOrderNo int64 `json:"main_purchase_order_no,omitempty" xml:"main_purchase_order_no,omitempty"` - // 申请单单号 - ChannelPurchaseApplyOrderNo string `json:"channel_purchase_apply_order_no,omitempty" xml:"channel_purchase_apply_order_no,omitempty"` - // 分销商淘宝nick - DistributorNick string `json:"distributor_nick,omitempty" xml:"distributor_nick,omitempty"` - // 买家淘宝nick - BuyerTaobaoNick string `json:"buyer_taobao_nick,omitempty" xml:"buyer_taobao_nick,omitempty"` - // 交易类型 - TradeType int64 `json:"trade_type,omitempty" xml:"trade_type,omitempty"` - // 付款类型 - PayType int64 `json:"pay_type,omitempty" xml:"pay_type,omitempty"` - // 渠道编码 - Channel int64 `json:"channel,omitempty" xml:"channel,omitempty"` - // 改价后的最新邮费 - PostFee int64 `json:"post_fee,omitempty" xml:"post_fee,omitempty"` - // 主采购单支付状态 - PayStatus int64 `json:"pay_status,omitempty" xml:"pay_status,omitempty"` - // 主采购单物流状态 - LogisticsStatus int64 `json:"logistics_status,omitempty" xml:"logistics_status,omitempty"` - // 交易状态 - OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"` - // 记录创建时间 - CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"` - // 记录修改时间 - ModifiedTime string `json:"modified_time,omitempty" xml:"modified_time,omitempty"` - // 付款时间 - PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"` - // 子采购单列表 - SubOrderList []TopChannelSubPurchaseOrderDto `json:"sub_order_list,omitempty" xml:"sub_order_list>top_channel_sub_purchase_order_dto,omitempty"` - // 物流单信息 - ChannelLogisticsOrder *TopChannelLogisticsOrderDto `json:"channel_logistics_order,omitempty" xml:"channel_logistics_order,omitempty"` - // 解析描述 - Schema string `json:"schema,omitempty" xml:"schema,omitempty"` - // 支付信息 - TopPurchasePayOrder *TopPurchasePayOrderDto `json:"top_purchase_pay_order,omitempty" xml:"top_purchase_pay_order,omitempty"` -} diff --git a/model/tmallchannel/TmallChannelTradeOrderGetsAPIRequest.go b/model/tmallchannel/TmallChannelTradeOrderGetsAPIRequest.go new file mode 100644 index 0000000000..697ac9133e --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeOrderGetsAPIRequest.go @@ -0,0 +1,220 @@ +package tmallchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询采购单 API请求 +tmall.channel.trade.order.gets + +分页查询采购单 +*/ +type TmallChannelTradeOrderGetsAPIRequest struct { + model.Params + // 是否包含子单 + _isIncludeSubOrder bool + // 是否包含主单 + _isIncludeMainOrder bool + // 是否包含物流信息 + _isIncludeLogistics bool + // 每页显示数量 + _pageSize int64 + // 查询第几页 + _pageNumber int64 + // 是否分页查询 + _needPagination bool + // 主采购单号 + _mainPurchaseOrderNo int64 + // 分销商Nick + _distributorNick string + // 渠道编码 + _channel int64 + // 1-代销;2-经销 + _tradeType int64 + // 1. 待付款 2.已付款待发货 3.已发货待收货 4.交易完成 5.交易关闭 + _orderStatus int64 + // 创建时间从 + _createTimeStart string + // 创建时间到 + _createTimeEnd string +} + +// 初始化TmallChannelTradeOrderGetsAPIRequest对象 +func NewTmallChannelTradeOrderGetsRequest() *TmallChannelTradeOrderGetsAPIRequest{ + return &TmallChannelTradeOrderGetsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallChannelTradeOrderGetsAPIRequest) GetApiMethodName() string { + return "tmall.channel.trade.order.gets" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallChannelTradeOrderGetsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IsIncludeSubOrder Setter +// 是否包含子单 +func (r *TmallChannelTradeOrderGetsAPIRequest) SetIsIncludeSubOrder(_isIncludeSubOrder bool) error { + r._isIncludeSubOrder = _isIncludeSubOrder + r.Set("is_include_sub_order", _isIncludeSubOrder) + return nil +} + +// IsIncludeSubOrder Getter +func (r TmallChannelTradeOrderGetsAPIRequest) GetIsIncludeSubOrder() bool { + return r._isIncludeSubOrder +} +// IsIncludeMainOrder Setter +// 是否包含主单 +func (r *TmallChannelTradeOrderGetsAPIRequest) SetIsIncludeMainOrder(_isIncludeMainOrder bool) error { + r._isIncludeMainOrder = _isIncludeMainOrder + r.Set("is_include_main_order", _isIncludeMainOrder) + return nil +} + +// IsIncludeMainOrder Getter +func (r TmallChannelTradeOrderGetsAPIRequest) GetIsIncludeMainOrder() bool { + return r._isIncludeMainOrder +} +// IsIncludeLogistics Setter +// 是否包含物流信息 +func (r *TmallChannelTradeOrderGetsAPIRequest) SetIsIncludeLogistics(_isIncludeLogistics bool) error { + r._isIncludeLogistics = _isIncludeLogistics + r.Set("is_include_logistics", _isIncludeLogistics) + return nil +} + +// IsIncludeLogistics Getter +func (r TmallChannelTradeOrderGetsAPIRequest) GetIsIncludeLogistics() bool { + return r._isIncludeLogistics +} +// PageSize Setter +// 每页显示数量 +func (r *TmallChannelTradeOrderGetsAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TmallChannelTradeOrderGetsAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNumber Setter +// 查询第几页 +func (r *TmallChannelTradeOrderGetsAPIRequest) SetPageNumber(_pageNumber int64) error { + r._pageNumber = _pageNumber + r.Set("page_number", _pageNumber) + return nil +} + +// PageNumber Getter +func (r TmallChannelTradeOrderGetsAPIRequest) GetPageNumber() int64 { + return r._pageNumber +} +// NeedPagination Setter +// 是否分页查询 +func (r *TmallChannelTradeOrderGetsAPIRequest) SetNeedPagination(_needPagination bool) error { + r._needPagination = _needPagination + r.Set("need_pagination", _needPagination) + return nil +} + +// NeedPagination Getter +func (r TmallChannelTradeOrderGetsAPIRequest) GetNeedPagination() bool { + return r._needPagination +} +// MainPurchaseOrderNo Setter +// 主采购单号 +func (r *TmallChannelTradeOrderGetsAPIRequest) SetMainPurchaseOrderNo(_mainPurchaseOrderNo int64) error { + r._mainPurchaseOrderNo = _mainPurchaseOrderNo + r.Set("main_purchase_order_no", _mainPurchaseOrderNo) + return nil +} + +// MainPurchaseOrderNo Getter +func (r TmallChannelTradeOrderGetsAPIRequest) GetMainPurchaseOrderNo() int64 { + return r._mainPurchaseOrderNo +} +// DistributorNick Setter +// 分销商Nick +func (r *TmallChannelTradeOrderGetsAPIRequest) SetDistributorNick(_distributorNick string) error { + r._distributorNick = _distributorNick + r.Set("distributor_nick", _distributorNick) + return nil +} + +// DistributorNick Getter +func (r TmallChannelTradeOrderGetsAPIRequest) GetDistributorNick() string { + return r._distributorNick +} +// Channel Setter +// 渠道编码 +func (r *TmallChannelTradeOrderGetsAPIRequest) SetChannel(_channel int64) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r TmallChannelTradeOrderGetsAPIRequest) GetChannel() int64 { + return r._channel +} +// TradeType Setter +// 1-代销;2-经销 +func (r *TmallChannelTradeOrderGetsAPIRequest) SetTradeType(_tradeType int64) error { + r._tradeType = _tradeType + r.Set("trade_type", _tradeType) + return nil +} + +// TradeType Getter +func (r TmallChannelTradeOrderGetsAPIRequest) GetTradeType() int64 { + return r._tradeType +} +// OrderStatus Setter +// 1. 待付款 2.已付款待发货 3.已发货待收货 4.交易完成 5.交易关闭 +func (r *TmallChannelTradeOrderGetsAPIRequest) SetOrderStatus(_orderStatus int64) error { + r._orderStatus = _orderStatus + r.Set("order_status", _orderStatus) + return nil +} + +// OrderStatus Getter +func (r TmallChannelTradeOrderGetsAPIRequest) GetOrderStatus() int64 { + return r._orderStatus +} +// CreateTimeStart Setter +// 创建时间从 +func (r *TmallChannelTradeOrderGetsAPIRequest) SetCreateTimeStart(_createTimeStart string) error { + r._createTimeStart = _createTimeStart + r.Set("create_time_start", _createTimeStart) + return nil +} + +// CreateTimeStart Getter +func (r TmallChannelTradeOrderGetsAPIRequest) GetCreateTimeStart() string { + return r._createTimeStart +} +// CreateTimeEnd Setter +// 创建时间到 +func (r *TmallChannelTradeOrderGetsAPIRequest) SetCreateTimeEnd(_createTimeEnd string) error { + r._createTimeEnd = _createTimeEnd + r.Set("create_time_end", _createTimeEnd) + return nil +} + +// CreateTimeEnd Getter +func (r TmallChannelTradeOrderGetsAPIRequest) GetCreateTimeEnd() string { + return r._createTimeEnd +} diff --git a/model/tmallchannel/TmallChannelTradeOrderGetsAPIResponse.go b/model/tmallchannel/TmallChannelTradeOrderGetsAPIResponse.go new file mode 100644 index 0000000000..7d5a8f2812 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeOrderGetsAPIResponse.go @@ -0,0 +1,33 @@ +package tmallchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询采购单 API返回值 +tmall.channel.trade.order.gets + +分页查询采购单 +*/ +type TmallChannelTradeOrderGetsAPIResponse struct { + model.CommonResponse + TmallChannelTradeOrderGetsAPIResponseModel +} + +// 分页查询采购单 成功返回结果 +type TmallChannelTradeOrderGetsAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_channel_trade_order_gets_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 每页显示数量 + PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` + // 查询第几页 + PageNumber int64 `json:"page_number,omitempty" xml:"page_number,omitempty"` + // 此页中包含的元素 + PageElements []TopChannelPurchaseOrderDto `json:"page_elements,omitempty" xml:"page_elements>top_channel_purchase_order_dto,omitempty"` + // 所有元素个数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeOrderGetsResponse.go b/model/tmallchannel/TmallChannelTradeOrderGetsResponse.go deleted file mode 100644 index e5ee57ceb6..0000000000 --- a/model/tmallchannel/TmallChannelTradeOrderGetsResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页查询采购单 API返回值 -tmall.channel.trade.order.gets - -分页查询采购单 -*/ -type TmallChannelTradeOrderGetsAPIResponse struct { - model.CommonResponse - TmallChannelTradeOrderGetsResponse -} - -// 分页查询采购单 成功返回结果 -type TmallChannelTradeOrderGetsResponse struct { - XMLName xml.Name `xml:"tmall_channel_trade_order_gets_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 每页显示数量 - PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` - // 查询第几页 - PageNumber int64 `json:"page_number,omitempty" xml:"page_number,omitempty"` - // 此页中包含的元素 - PageElements []TopChannelPurchaseOrderDto `json:"page_elements,omitempty" xml:"page_elements>top_channel_purchase_order_dto,omitempty"` - // 所有元素个数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/tmallchannel/TmallChannelTradeOrderStopAPIRequest.go b/model/tmallchannel/TmallChannelTradeOrderStopAPIRequest.go new file mode 100644 index 0000000000..33bec89767 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeOrderStopAPIRequest.go @@ -0,0 +1,66 @@ +package tmallchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商停止发货 API请求 +tmall.channel.trade.order.stop + +供应商停止发货 +*/ +type TmallChannelTradeOrderStopAPIRequest struct { + model.Params + // 主采购单号 + _mainPurchaseOrderNo int64 + // 幂等单号 + _requestNo string +} + +// 初始化TmallChannelTradeOrderStopAPIRequest对象 +func NewTmallChannelTradeOrderStopRequest() *TmallChannelTradeOrderStopAPIRequest{ + return &TmallChannelTradeOrderStopAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallChannelTradeOrderStopAPIRequest) GetApiMethodName() string { + return "tmall.channel.trade.order.stop" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallChannelTradeOrderStopAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainPurchaseOrderNo Setter +// 主采购单号 +func (r *TmallChannelTradeOrderStopAPIRequest) SetMainPurchaseOrderNo(_mainPurchaseOrderNo int64) error { + r._mainPurchaseOrderNo = _mainPurchaseOrderNo + r.Set("main_purchase_order_no", _mainPurchaseOrderNo) + return nil +} + +// MainPurchaseOrderNo Getter +func (r TmallChannelTradeOrderStopAPIRequest) GetMainPurchaseOrderNo() int64 { + return r._mainPurchaseOrderNo +} +// RequestNo Setter +// 幂等单号 +func (r *TmallChannelTradeOrderStopAPIRequest) SetRequestNo(_requestNo string) error { + r._requestNo = _requestNo + r.Set("request_no", _requestNo) + return nil +} + +// RequestNo Getter +func (r TmallChannelTradeOrderStopAPIRequest) GetRequestNo() string { + return r._requestNo +} diff --git a/model/tmallchannel/TmallChannelTradeOrderStopAPIResponse.go b/model/tmallchannel/TmallChannelTradeOrderStopAPIResponse.go new file mode 100644 index 0000000000..6d06e2974e --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeOrderStopAPIResponse.go @@ -0,0 +1,27 @@ +package tmallchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商停止发货 API返回值 +tmall.channel.trade.order.stop + +供应商停止发货 +*/ +type TmallChannelTradeOrderStopAPIResponse struct { + model.CommonResponse + TmallChannelTradeOrderStopAPIResponseModel +} + +// 供应商停止发货 成功返回结果 +type TmallChannelTradeOrderStopAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_channel_trade_order_stop_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallChannelTradeOrderStopResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeOrderStopResponse.go b/model/tmallchannel/TmallChannelTradeOrderStopResponse.go deleted file mode 100644 index a9cfc1de05..0000000000 --- a/model/tmallchannel/TmallChannelTradeOrderStopResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商停止发货 API返回值 -tmall.channel.trade.order.stop - -供应商停止发货 -*/ -type TmallChannelTradeOrderStopAPIResponse struct { - model.CommonResponse - TmallChannelTradeOrderStopResponse -} - -// 供应商停止发货 成功返回结果 -type TmallChannelTradeOrderStopResponse struct { - XMLName xml.Name `xml:"tmall_channel_trade_order_stop_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallChannelTradeOrderStopResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallchannel/TmallChannelTradeOrderStopResultDto.go b/model/tmallchannel/TmallChannelTradeOrderStopResultDto.go new file mode 100644 index 0000000000..6593913392 --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeOrderStopResultDto.go @@ -0,0 +1,11 @@ +package tmallchannel + +// TmallChannelTradeOrderStopResultDto +type TmallChannelTradeOrderStopResultDto struct { + // 错误信息 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误码 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 操作是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeRefundorderGetsAPIRequest.go b/model/tmallchannel/TmallChannelTradeRefundorderGetsAPIRequest.go new file mode 100644 index 0000000000..24a802aa9e --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeRefundorderGetsAPIRequest.go @@ -0,0 +1,94 @@ +package tmallchannel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商查询退款单 API请求 +tmall.channel.trade.refundorder.gets + +供应商分页查询退款单 +*/ +type TmallChannelTradeRefundorderGetsAPIRequest struct { + model.Params + // 退款单号 + _refundId int64 + // 采购单号 + _mainChannelOrderNo string + // 每页数据条数 + _pageSize int64 + // 页码 + _pageNumber int64 +} + +// 初始化TmallChannelTradeRefundorderGetsAPIRequest对象 +func NewTmallChannelTradeRefundorderGetsRequest() *TmallChannelTradeRefundorderGetsAPIRequest{ + return &TmallChannelTradeRefundorderGetsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallChannelTradeRefundorderGetsAPIRequest) GetApiMethodName() string { + return "tmall.channel.trade.refundorder.gets" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallChannelTradeRefundorderGetsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundId Setter +// 退款单号 +func (r *TmallChannelTradeRefundorderGetsAPIRequest) SetRefundId(_refundId int64) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r TmallChannelTradeRefundorderGetsAPIRequest) GetRefundId() int64 { + return r._refundId +} +// MainChannelOrderNo Setter +// 采购单号 +func (r *TmallChannelTradeRefundorderGetsAPIRequest) SetMainChannelOrderNo(_mainChannelOrderNo string) error { + r._mainChannelOrderNo = _mainChannelOrderNo + r.Set("main_channel_order_no", _mainChannelOrderNo) + return nil +} + +// MainChannelOrderNo Getter +func (r TmallChannelTradeRefundorderGetsAPIRequest) GetMainChannelOrderNo() string { + return r._mainChannelOrderNo +} +// PageSize Setter +// 每页数据条数 +func (r *TmallChannelTradeRefundorderGetsAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TmallChannelTradeRefundorderGetsAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNumber Setter +// 页码 +func (r *TmallChannelTradeRefundorderGetsAPIRequest) SetPageNumber(_pageNumber int64) error { + r._pageNumber = _pageNumber + r.Set("page_number", _pageNumber) + return nil +} + +// PageNumber Getter +func (r TmallChannelTradeRefundorderGetsAPIRequest) GetPageNumber() int64 { + return r._pageNumber +} diff --git a/model/tmallchannel/TmallChannelTradeRefundorderGetsAPIResponse.go b/model/tmallchannel/TmallChannelTradeRefundorderGetsAPIResponse.go new file mode 100644 index 0000000000..5c2aab2a1e --- /dev/null +++ b/model/tmallchannel/TmallChannelTradeRefundorderGetsAPIResponse.go @@ -0,0 +1,33 @@ +package tmallchannel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商查询退款单 API返回值 +tmall.channel.trade.refundorder.gets + +供应商分页查询退款单 +*/ +type TmallChannelTradeRefundorderGetsAPIResponse struct { + model.CommonResponse + TmallChannelTradeRefundorderGetsAPIResponseModel +} + +// 供应商查询退款单 成功返回结果 +type TmallChannelTradeRefundorderGetsAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_channel_trade_refundorder_gets_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 每页显示数量 + PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` + // 查询第几页 + PageNumber int64 `json:"page_number,omitempty" xml:"page_number,omitempty"` + // 包含的元素 + PageElements []TopChannelRefundDto `json:"page_elements,omitempty" xml:"page_elements>top_channel_refund_dto,omitempty"` + // 所有元素个数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/tmallchannel/TmallChannelTradeRefundorderGetsResponse.go b/model/tmallchannel/TmallChannelTradeRefundorderGetsResponse.go deleted file mode 100644 index 9060f0db7d..0000000000 --- a/model/tmallchannel/TmallChannelTradeRefundorderGetsResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallchannel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商查询退款单 API返回值 -tmall.channel.trade.refundorder.gets - -供应商分页查询退款单 -*/ -type TmallChannelTradeRefundorderGetsAPIResponse struct { - model.CommonResponse - TmallChannelTradeRefundorderGetsResponse -} - -// 供应商查询退款单 成功返回结果 -type TmallChannelTradeRefundorderGetsResponse struct { - XMLName xml.Name `xml:"tmall_channel_trade_refundorder_gets_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 每页显示数量 - PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` - // 查询第几页 - PageNumber int64 `json:"page_number,omitempty" xml:"page_number,omitempty"` - // 包含的元素 - PageElements []TopChannelRefundDto `json:"page_elements,omitempty" xml:"page_elements>top_channel_refund_dto,omitempty"` - // 所有元素个数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/tmallcms/TmallMarketingLiuliangbaoSpreadlinkCreateAPIRequest.go b/model/tmallcms/TmallMarketingLiuliangbaoSpreadlinkCreateAPIRequest.go new file mode 100644 index 0000000000..2eae7f7424 --- /dev/null +++ b/model/tmallcms/TmallMarketingLiuliangbaoSpreadlinkCreateAPIRequest.go @@ -0,0 +1,52 @@ +package tmallcms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建流量宝活动链接 API请求 +tmall.marketing.liuliangbao.spreadlink.create + +通过源活动链接和商家ID,创建流量宝活动链接 +*/ +type TmallMarketingLiuliangbaoSpreadlinkCreateAPIRequest struct { + model.Params + // 活动链接,必须为淘系链接 + _url string +} + +// 初始化TmallMarketingLiuliangbaoSpreadlinkCreateAPIRequest对象 +func NewTmallMarketingLiuliangbaoSpreadlinkCreateRequest() *TmallMarketingLiuliangbaoSpreadlinkCreateAPIRequest{ + return &TmallMarketingLiuliangbaoSpreadlinkCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallMarketingLiuliangbaoSpreadlinkCreateAPIRequest) GetApiMethodName() string { + return "tmall.marketing.liuliangbao.spreadlink.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallMarketingLiuliangbaoSpreadlinkCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Url Setter +// 活动链接,必须为淘系链接 +func (r *TmallMarketingLiuliangbaoSpreadlinkCreateAPIRequest) SetUrl(_url string) error { + r._url = _url + r.Set("url", _url) + return nil +} + +// Url Getter +func (r TmallMarketingLiuliangbaoSpreadlinkCreateAPIRequest) GetUrl() string { + return r._url +} diff --git a/model/tmallcms/TmallMarketingLiuliangbaoSpreadlinkCreateAPIResponse.go b/model/tmallcms/TmallMarketingLiuliangbaoSpreadlinkCreateAPIResponse.go new file mode 100644 index 0000000000..bc3ebba81e --- /dev/null +++ b/model/tmallcms/TmallMarketingLiuliangbaoSpreadlinkCreateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallcms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建流量宝活动链接 API返回值 +tmall.marketing.liuliangbao.spreadlink.create + +通过源活动链接和商家ID,创建流量宝活动链接 +*/ +type TmallMarketingLiuliangbaoSpreadlinkCreateAPIResponse struct { + model.CommonResponse + TmallMarketingLiuliangbaoSpreadlinkCreateAPIResponseModel +} + +// 创建流量宝活动链接 成功返回结果 +type TmallMarketingLiuliangbaoSpreadlinkCreateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_marketing_liuliangbao_spreadlink_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 流量宝系统执行结果 + Llbresult *LLBApiResult `json:"llbresult,omitempty" xml:"llbresult,omitempty"` +} diff --git a/model/tmallcms/TmallMarketingLiuliangbaoSpreadlinkCreateResponse.go b/model/tmallcms/TmallMarketingLiuliangbaoSpreadlinkCreateResponse.go deleted file mode 100644 index fe07c43273..0000000000 --- a/model/tmallcms/TmallMarketingLiuliangbaoSpreadlinkCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallcms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建流量宝活动链接 API返回值 -tmall.marketing.liuliangbao.spreadlink.create - -通过源活动链接和商家ID,创建流量宝活动链接 -*/ -type TmallMarketingLiuliangbaoSpreadlinkCreateAPIResponse struct { - model.CommonResponse - TmallMarketingLiuliangbaoSpreadlinkCreateResponse -} - -// 创建流量宝活动链接 成功返回结果 -type TmallMarketingLiuliangbaoSpreadlinkCreateResponse struct { - XMLName xml.Name `xml:"tmall_marketing_liuliangbao_spreadlink_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 流量宝系统执行结果 - Llbresult *LLBApiResult `json:"llbresult,omitempty" xml:"llbresult,omitempty"` -} diff --git a/model/tmallfcbox/TmallFcboxNotifyAPIRequest.go b/model/tmallfcbox/TmallFcboxNotifyAPIRequest.go new file mode 100644 index 0000000000..20c241ddca --- /dev/null +++ b/model/tmallfcbox/TmallFcboxNotifyAPIRequest.go @@ -0,0 +1,108 @@ +package tmallfcbox + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +丰巢通知接口 API请求 +tmall.fcbox.notify + +tmax接收丰巢快递通知 +*/ +type TmallFcboxNotifyAPIRequest struct { + model.Params + // 申请接口返回的申请标识 + _applyId string + // 状态备注 + _stateRemark string + // 申请记录当前状态 + _state string + // 变更时间 + _operateTime string + // 变更操作 + _operate string +} + +// 初始化TmallFcboxNotifyAPIRequest对象 +func NewTmallFcboxNotifyRequest() *TmallFcboxNotifyAPIRequest{ + return &TmallFcboxNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallFcboxNotifyAPIRequest) GetApiMethodName() string { + return "tmall.fcbox.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallFcboxNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApplyId Setter +// 申请接口返回的申请标识 +func (r *TmallFcboxNotifyAPIRequest) SetApplyId(_applyId string) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r TmallFcboxNotifyAPIRequest) GetApplyId() string { + return r._applyId +} +// StateRemark Setter +// 状态备注 +func (r *TmallFcboxNotifyAPIRequest) SetStateRemark(_stateRemark string) error { + r._stateRemark = _stateRemark + r.Set("state_remark", _stateRemark) + return nil +} + +// StateRemark Getter +func (r TmallFcboxNotifyAPIRequest) GetStateRemark() string { + return r._stateRemark +} +// State Setter +// 申请记录当前状态 +func (r *TmallFcboxNotifyAPIRequest) SetState(_state string) error { + r._state = _state + r.Set("state", _state) + return nil +} + +// State Getter +func (r TmallFcboxNotifyAPIRequest) GetState() string { + return r._state +} +// OperateTime Setter +// 变更时间 +func (r *TmallFcboxNotifyAPIRequest) SetOperateTime(_operateTime string) error { + r._operateTime = _operateTime + r.Set("operate_time", _operateTime) + return nil +} + +// OperateTime Getter +func (r TmallFcboxNotifyAPIRequest) GetOperateTime() string { + return r._operateTime +} +// Operate Setter +// 变更操作 +func (r *TmallFcboxNotifyAPIRequest) SetOperate(_operate string) error { + r._operate = _operate + r.Set("operate", _operate) + return nil +} + +// Operate Getter +func (r TmallFcboxNotifyAPIRequest) GetOperate() string { + return r._operate +} diff --git a/model/tmallfcbox/TmallFcboxNotifyAPIResponse.go b/model/tmallfcbox/TmallFcboxNotifyAPIResponse.go new file mode 100644 index 0000000000..bc35a0031f --- /dev/null +++ b/model/tmallfcbox/TmallFcboxNotifyAPIResponse.go @@ -0,0 +1,27 @@ +package tmallfcbox + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +丰巢通知接口 API返回值 +tmall.fcbox.notify + +tmax接收丰巢快递通知 +*/ +type TmallFcboxNotifyAPIResponse struct { + model.CommonResponse + TmallFcboxNotifyAPIResponseModel +} + +// 丰巢通知接口 成功返回结果 +type TmallFcboxNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_fcbox_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallFcboxNotifyResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallfcbox/TmallFcboxNotifyResponse.go b/model/tmallfcbox/TmallFcboxNotifyResponse.go deleted file mode 100644 index 792d7844d0..0000000000 --- a/model/tmallfcbox/TmallFcboxNotifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallfcbox - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -丰巢通知接口 API返回值 -tmall.fcbox.notify - -tmax接收丰巢快递通知 -*/ -type TmallFcboxNotifyAPIResponse struct { - model.CommonResponse - TmallFcboxNotifyResponse -} - -// 丰巢通知接口 成功返回结果 -type TmallFcboxNotifyResponse struct { - XMLName xml.Name `xml:"tmall_fcbox_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallFcboxNotifyResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAiUserQuickBindAPIRequest.go b/model/tmallgenie/AlibabaAiUserQuickBindAPIRequest.go new file mode 100644 index 0000000000..ffb10697b8 --- /dev/null +++ b/model/tmallgenie/AlibabaAiUserQuickBindAPIRequest.go @@ -0,0 +1,122 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +精灵用户绑定第三方账号信息 API请求 +alibaba.ai.user.quick.bind + +人工智能实验室精灵用户绑定第三方账号信息接口,开放给Iot厂商做为厂商上送第三方账号信息的接口 +*/ +type AlibabaAiUserQuickBindAPIRequest struct { + model.Params + // 交易流水号(唯一即可,不参与业务运算) + _serialNo string + // 第三方用户类型 + _extUserType string + // 第三用户ID + _extUserId string + // 请求时间 + _reqTime string + // 商户的用户的唯一ID + _merchantUserId string + // 开放平台申请的schema + _schemaKey string +} + +// 初始化AlibabaAiUserQuickBindAPIRequest对象 +func NewAlibabaAiUserQuickBindRequest() *AlibabaAiUserQuickBindAPIRequest{ + return &AlibabaAiUserQuickBindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAiUserQuickBindAPIRequest) GetApiMethodName() string { + return "alibaba.ai.user.quick.bind" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAiUserQuickBindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SerialNo Setter +// 交易流水号(唯一即可,不参与业务运算) +func (r *AlibabaAiUserQuickBindAPIRequest) SetSerialNo(_serialNo string) error { + r._serialNo = _serialNo + r.Set("serial_no", _serialNo) + return nil +} + +// SerialNo Getter +func (r AlibabaAiUserQuickBindAPIRequest) GetSerialNo() string { + return r._serialNo +} +// ExtUserType Setter +// 第三方用户类型 +func (r *AlibabaAiUserQuickBindAPIRequest) SetExtUserType(_extUserType string) error { + r._extUserType = _extUserType + r.Set("ext_user_type", _extUserType) + return nil +} + +// ExtUserType Getter +func (r AlibabaAiUserQuickBindAPIRequest) GetExtUserType() string { + return r._extUserType +} +// ExtUserId Setter +// 第三用户ID +func (r *AlibabaAiUserQuickBindAPIRequest) SetExtUserId(_extUserId string) error { + r._extUserId = _extUserId + r.Set("ext_user_id", _extUserId) + return nil +} + +// ExtUserId Getter +func (r AlibabaAiUserQuickBindAPIRequest) GetExtUserId() string { + return r._extUserId +} +// ReqTime Setter +// 请求时间 +func (r *AlibabaAiUserQuickBindAPIRequest) SetReqTime(_reqTime string) error { + r._reqTime = _reqTime + r.Set("req_time", _reqTime) + return nil +} + +// ReqTime Getter +func (r AlibabaAiUserQuickBindAPIRequest) GetReqTime() string { + return r._reqTime +} +// MerchantUserId Setter +// 商户的用户的唯一ID +func (r *AlibabaAiUserQuickBindAPIRequest) SetMerchantUserId(_merchantUserId string) error { + r._merchantUserId = _merchantUserId + r.Set("merchant_user_id", _merchantUserId) + return nil +} + +// MerchantUserId Getter +func (r AlibabaAiUserQuickBindAPIRequest) GetMerchantUserId() string { + return r._merchantUserId +} +// SchemaKey Setter +// 开放平台申请的schema +func (r *AlibabaAiUserQuickBindAPIRequest) SetSchemaKey(_schemaKey string) error { + r._schemaKey = _schemaKey + r.Set("schema_key", _schemaKey) + return nil +} + +// SchemaKey Getter +func (r AlibabaAiUserQuickBindAPIRequest) GetSchemaKey() string { + return r._schemaKey +} diff --git a/model/tmallgenie/AlibabaAiUserQuickBindAPIResponse.go b/model/tmallgenie/AlibabaAiUserQuickBindAPIResponse.go new file mode 100644 index 0000000000..fa92b2e079 --- /dev/null +++ b/model/tmallgenie/AlibabaAiUserQuickBindAPIResponse.go @@ -0,0 +1,33 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +精灵用户绑定第三方账号信息 API返回值 +alibaba.ai.user.quick.bind + +人工智能实验室精灵用户绑定第三方账号信息接口,开放给Iot厂商做为厂商上送第三方账号信息的接口 +*/ +type AlibabaAiUserQuickBindAPIResponse struct { + model.CommonResponse + AlibabaAiUserQuickBindAPIResponseModel +} + +// 精灵用户绑定第三方账号信息 成功返回结果 +type AlibabaAiUserQuickBindAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ai_user_quick_bind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 交易结果描述(例如: 交易成功、交易失败) + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 交易结果码(200:成功、其他:失败) + StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` + // 扩展字段,无用 + Result string `json:"result,omitempty" xml:"result,omitempty"` + // 交易结果详细描述(例如:用户已经存在,交易失败) + MessageDetail string `json:"message_detail,omitempty" xml:"message_detail,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAiUserQuickBindResponse.go b/model/tmallgenie/AlibabaAiUserQuickBindResponse.go deleted file mode 100644 index c387c38a58..0000000000 --- a/model/tmallgenie/AlibabaAiUserQuickBindResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -精灵用户绑定第三方账号信息 API返回值 -alibaba.ai.user.quick.bind - -人工智能实验室精灵用户绑定第三方账号信息接口,开放给Iot厂商做为厂商上送第三方账号信息的接口 -*/ -type AlibabaAiUserQuickBindAPIResponse struct { - model.CommonResponse - AlibabaAiUserQuickBindResponse -} - -// 精灵用户绑定第三方账号信息 成功返回结果 -type AlibabaAiUserQuickBindResponse struct { - XMLName xml.Name `xml:"alibaba_ai_user_quick_bind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 交易结果描述(例如: 交易成功、交易失败) - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 交易结果码(200:成功、其他:失败) - StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` - // 扩展字段,无用 - Result string `json:"result,omitempty" xml:"result,omitempty"` - // 交易结果详细描述(例如:用户已经存在,交易失败) - MessageDetail string `json:"message_detail,omitempty" xml:"message_detail,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAiUserQuickRegisterAPIRequest.go b/model/tmallgenie/AlibabaAiUserQuickRegisterAPIRequest.go new file mode 100644 index 0000000000..159900a3e3 --- /dev/null +++ b/model/tmallgenie/AlibabaAiUserQuickRegisterAPIRequest.go @@ -0,0 +1,94 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +精灵用户注册申请 API请求 +alibaba.ai.user.quick.register + +人工智能实验室精灵用户注册申请接口,开放给Iot厂商做厂商会员数据上报 +*/ +type AlibabaAiUserQuickRegisterAPIRequest struct { + model.Params + // 请求交易流水号(唯一即可,不参与业务运算) + _serialNo string + // 请求时间 + _reqTime string + // 商户的用户的唯一ID + _merchantUserId string + // 账户体系隔离 + _schemaKey string +} + +// 初始化AlibabaAiUserQuickRegisterAPIRequest对象 +func NewAlibabaAiUserQuickRegisterRequest() *AlibabaAiUserQuickRegisterAPIRequest{ + return &AlibabaAiUserQuickRegisterAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAiUserQuickRegisterAPIRequest) GetApiMethodName() string { + return "alibaba.ai.user.quick.register" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAiUserQuickRegisterAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SerialNo Setter +// 请求交易流水号(唯一即可,不参与业务运算) +func (r *AlibabaAiUserQuickRegisterAPIRequest) SetSerialNo(_serialNo string) error { + r._serialNo = _serialNo + r.Set("serial_no", _serialNo) + return nil +} + +// SerialNo Getter +func (r AlibabaAiUserQuickRegisterAPIRequest) GetSerialNo() string { + return r._serialNo +} +// ReqTime Setter +// 请求时间 +func (r *AlibabaAiUserQuickRegisterAPIRequest) SetReqTime(_reqTime string) error { + r._reqTime = _reqTime + r.Set("req_time", _reqTime) + return nil +} + +// ReqTime Getter +func (r AlibabaAiUserQuickRegisterAPIRequest) GetReqTime() string { + return r._reqTime +} +// MerchantUserId Setter +// 商户的用户的唯一ID +func (r *AlibabaAiUserQuickRegisterAPIRequest) SetMerchantUserId(_merchantUserId string) error { + r._merchantUserId = _merchantUserId + r.Set("merchant_user_id", _merchantUserId) + return nil +} + +// MerchantUserId Getter +func (r AlibabaAiUserQuickRegisterAPIRequest) GetMerchantUserId() string { + return r._merchantUserId +} +// SchemaKey Setter +// 账户体系隔离 +func (r *AlibabaAiUserQuickRegisterAPIRequest) SetSchemaKey(_schemaKey string) error { + r._schemaKey = _schemaKey + r.Set("schema_key", _schemaKey) + return nil +} + +// SchemaKey Getter +func (r AlibabaAiUserQuickRegisterAPIRequest) GetSchemaKey() string { + return r._schemaKey +} diff --git a/model/tmallgenie/AlibabaAiUserQuickRegisterAPIResponse.go b/model/tmallgenie/AlibabaAiUserQuickRegisterAPIResponse.go new file mode 100644 index 0000000000..bc12fa5613 --- /dev/null +++ b/model/tmallgenie/AlibabaAiUserQuickRegisterAPIResponse.go @@ -0,0 +1,33 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +精灵用户注册申请 API返回值 +alibaba.ai.user.quick.register + +人工智能实验室精灵用户注册申请接口,开放给Iot厂商做厂商会员数据上报 +*/ +type AlibabaAiUserQuickRegisterAPIResponse struct { + model.CommonResponse + AlibabaAiUserQuickRegisterAPIResponseModel +} + +// 精灵用户注册申请 成功返回结果 +type AlibabaAiUserQuickRegisterAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ai_user_quick_register_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果描述 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 结果码 + StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` + // 扩展对象,保留字段 + Result string `json:"result,omitempty" xml:"result,omitempty"` + // 结果详细描述 + MessageDetail string `json:"message_detail,omitempty" xml:"message_detail,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAiUserQuickRegisterResponse.go b/model/tmallgenie/AlibabaAiUserQuickRegisterResponse.go deleted file mode 100644 index c852f30e18..0000000000 --- a/model/tmallgenie/AlibabaAiUserQuickRegisterResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -精灵用户注册申请 API返回值 -alibaba.ai.user.quick.register - -人工智能实验室精灵用户注册申请接口,开放给Iot厂商做厂商会员数据上报 -*/ -type AlibabaAiUserQuickRegisterAPIResponse struct { - model.CommonResponse - AlibabaAiUserQuickRegisterResponse -} - -// 精灵用户注册申请 成功返回结果 -type AlibabaAiUserQuickRegisterResponse struct { - XMLName xml.Name `xml:"alibaba_ai_user_quick_register_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果描述 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 结果码 - StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` - // 扩展对象,保留字段 - Result string `json:"result,omitempty" xml:"result,omitempty"` - // 结果详细描述 - MessageDetail string `json:"message_detail,omitempty" xml:"message_detail,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAiUserQuickTokenBindAPIRequest.go b/model/tmallgenie/AlibabaAiUserQuickTokenBindAPIRequest.go new file mode 100644 index 0000000000..0035ae08b8 --- /dev/null +++ b/model/tmallgenie/AlibabaAiUserQuickTokenBindAPIRequest.go @@ -0,0 +1,122 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +人工智能实验室精灵用户绑定第三方Token接口 API请求 +alibaba.ai.user.quick.token.bind + +人工智能实验室精灵用户绑定第三方Token接口 +*/ +type AlibabaAiUserQuickTokenBindAPIRequest struct { + model.Params + // Oauth协议访问令牌 + _accessTokenValue string + // 令牌有效期(秒) + _expiredTime int64 + // 第三方用户账号唯一ID + _merchantUserId string + // 技能ID + _skillId string + // 账号隔离属性 + _schemaKey string + // Oauth协议刷新令牌 + _refreshToken string +} + +// 初始化AlibabaAiUserQuickTokenBindAPIRequest对象 +func NewAlibabaAiUserQuickTokenBindRequest() *AlibabaAiUserQuickTokenBindAPIRequest{ + return &AlibabaAiUserQuickTokenBindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAiUserQuickTokenBindAPIRequest) GetApiMethodName() string { + return "alibaba.ai.user.quick.token.bind" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAiUserQuickTokenBindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccessTokenValue Setter +// Oauth协议访问令牌 +func (r *AlibabaAiUserQuickTokenBindAPIRequest) SetAccessTokenValue(_accessTokenValue string) error { + r._accessTokenValue = _accessTokenValue + r.Set("access_token_value", _accessTokenValue) + return nil +} + +// AccessTokenValue Getter +func (r AlibabaAiUserQuickTokenBindAPIRequest) GetAccessTokenValue() string { + return r._accessTokenValue +} +// ExpiredTime Setter +// 令牌有效期(秒) +func (r *AlibabaAiUserQuickTokenBindAPIRequest) SetExpiredTime(_expiredTime int64) error { + r._expiredTime = _expiredTime + r.Set("expired_time", _expiredTime) + return nil +} + +// ExpiredTime Getter +func (r AlibabaAiUserQuickTokenBindAPIRequest) GetExpiredTime() int64 { + return r._expiredTime +} +// MerchantUserId Setter +// 第三方用户账号唯一ID +func (r *AlibabaAiUserQuickTokenBindAPIRequest) SetMerchantUserId(_merchantUserId string) error { + r._merchantUserId = _merchantUserId + r.Set("merchant_user_id", _merchantUserId) + return nil +} + +// MerchantUserId Getter +func (r AlibabaAiUserQuickTokenBindAPIRequest) GetMerchantUserId() string { + return r._merchantUserId +} +// SkillId Setter +// 技能ID +func (r *AlibabaAiUserQuickTokenBindAPIRequest) SetSkillId(_skillId string) error { + r._skillId = _skillId + r.Set("skill_id", _skillId) + return nil +} + +// SkillId Getter +func (r AlibabaAiUserQuickTokenBindAPIRequest) GetSkillId() string { + return r._skillId +} +// SchemaKey Setter +// 账号隔离属性 +func (r *AlibabaAiUserQuickTokenBindAPIRequest) SetSchemaKey(_schemaKey string) error { + r._schemaKey = _schemaKey + r.Set("schema_key", _schemaKey) + return nil +} + +// SchemaKey Getter +func (r AlibabaAiUserQuickTokenBindAPIRequest) GetSchemaKey() string { + return r._schemaKey +} +// RefreshToken Setter +// Oauth协议刷新令牌 +func (r *AlibabaAiUserQuickTokenBindAPIRequest) SetRefreshToken(_refreshToken string) error { + r._refreshToken = _refreshToken + r.Set("refresh_token", _refreshToken) + return nil +} + +// RefreshToken Getter +func (r AlibabaAiUserQuickTokenBindAPIRequest) GetRefreshToken() string { + return r._refreshToken +} diff --git a/model/tmallgenie/AlibabaAiUserQuickTokenBindAPIResponse.go b/model/tmallgenie/AlibabaAiUserQuickTokenBindAPIResponse.go new file mode 100644 index 0000000000..d736ff2c62 --- /dev/null +++ b/model/tmallgenie/AlibabaAiUserQuickTokenBindAPIResponse.go @@ -0,0 +1,29 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +人工智能实验室精灵用户绑定第三方Token接口 API返回值 +alibaba.ai.user.quick.token.bind + +人工智能实验室精灵用户绑定第三方Token接口 +*/ +type AlibabaAiUserQuickTokenBindAPIResponse struct { + model.CommonResponse + AlibabaAiUserQuickTokenBindAPIResponseModel +} + +// 人工智能实验室精灵用户绑定第三方Token接口 成功返回结果 +type AlibabaAiUserQuickTokenBindAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ai_user_quick_token_bind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // statusCode + StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAiUserQuickTokenBindResponse.go b/model/tmallgenie/AlibabaAiUserQuickTokenBindResponse.go deleted file mode 100644 index 9bc5964310..0000000000 --- a/model/tmallgenie/AlibabaAiUserQuickTokenBindResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -人工智能实验室精灵用户绑定第三方Token接口 API返回值 -alibaba.ai.user.quick.token.bind - -人工智能实验室精灵用户绑定第三方Token接口 -*/ -type AlibabaAiUserQuickTokenBindAPIResponse struct { - model.CommonResponse - AlibabaAiUserQuickTokenBindResponse -} - -// 人工智能实验室精灵用户绑定第三方Token接口 成功返回结果 -type AlibabaAiUserQuickTokenBindResponse struct { - XMLName xml.Name `xml:"alibaba_ai_user_quick_token_bind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // statusCode - StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAilabsAligenieDeviceRegisterAPIRequest.go b/model/tmallgenie/AlibabaAilabsAligenieDeviceRegisterAPIRequest.go new file mode 100644 index 0000000000..897b615455 --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsAligenieDeviceRegisterAPIRequest.go @@ -0,0 +1,66 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵开放平台获取设备秘钥 API请求 +alibaba.ailabs.aligenie.device.register + +向天猫精灵inside平台注册设备mac地址,并获取设备的唯一密钥 +*/ +type AlibabaAilabsAligenieDeviceRegisterAPIRequest struct { + model.Params + // 设备id + _deviceId int64 + // mac区段脚本 + _macSections string +} + +// 初始化AlibabaAilabsAligenieDeviceRegisterAPIRequest对象 +func NewAlibabaAilabsAligenieDeviceRegisterRequest() *AlibabaAilabsAligenieDeviceRegisterAPIRequest{ + return &AlibabaAilabsAligenieDeviceRegisterAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsAligenieDeviceRegisterAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.aligenie.device.register" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsAligenieDeviceRegisterAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceId Setter +// 设备id +func (r *AlibabaAilabsAligenieDeviceRegisterAPIRequest) SetDeviceId(_deviceId int64) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r AlibabaAilabsAligenieDeviceRegisterAPIRequest) GetDeviceId() int64 { + return r._deviceId +} +// MacSections Setter +// mac区段脚本 +func (r *AlibabaAilabsAligenieDeviceRegisterAPIRequest) SetMacSections(_macSections string) error { + r._macSections = _macSections + r.Set("mac_sections", _macSections) + return nil +} + +// MacSections Getter +func (r AlibabaAilabsAligenieDeviceRegisterAPIRequest) GetMacSections() string { + return r._macSections +} diff --git a/model/tmallgenie/AlibabaAilabsAligenieDeviceRegisterAPIResponse.go b/model/tmallgenie/AlibabaAilabsAligenieDeviceRegisterAPIResponse.go new file mode 100644 index 0000000000..47d80a1472 --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsAligenieDeviceRegisterAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵开放平台获取设备秘钥 API返回值 +alibaba.ailabs.aligenie.device.register + +向天猫精灵inside平台注册设备mac地址,并获取设备的唯一密钥 +*/ +type AlibabaAilabsAligenieDeviceRegisterAPIResponse struct { + model.CommonResponse + AlibabaAilabsAligenieDeviceRegisterAPIResponseModel +} + +// 天猫精灵开放平台获取设备秘钥 成功返回结果 +type AlibabaAilabsAligenieDeviceRegisterAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_aligenie_device_register_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 设备秘钥信息 + DeviceSecretInfos []DeviceSecretInfo `json:"device_secret_infos,omitempty" xml:"device_secret_infos>device_secret_info,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAilabsAligenieDeviceRegisterResponse.go b/model/tmallgenie/AlibabaAilabsAligenieDeviceRegisterResponse.go deleted file mode 100644 index 841d923b3b..0000000000 --- a/model/tmallgenie/AlibabaAilabsAligenieDeviceRegisterResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵开放平台获取设备秘钥 API返回值 -alibaba.ailabs.aligenie.device.register - -向天猫精灵inside平台注册设备mac地址,并获取设备的唯一密钥 -*/ -type AlibabaAilabsAligenieDeviceRegisterAPIResponse struct { - model.CommonResponse - AlibabaAilabsAligenieDeviceRegisterResponse -} - -// 天猫精灵开放平台获取设备秘钥 成功返回结果 -type AlibabaAilabsAligenieDeviceRegisterResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_aligenie_device_register_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 设备秘钥信息 - DeviceSecretInfos []DeviceSecretInfo `json:"device_secret_infos,omitempty" xml:"device_secret_infos>device_secret_info,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAilabsAligenieOpencontentPushAPIRequest.go b/model/tmallgenie/AlibabaAilabsAligenieOpencontentPushAPIRequest.go new file mode 100644 index 0000000000..4498bd56c9 --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsAligenieOpencontentPushAPIRequest.go @@ -0,0 +1,66 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵内容接入标准接口 API请求 +alibaba.ailabs.aligenie.opencontent.push + +第三方内容接入天猫精灵内容库,供相关技能使用 +*/ +type AlibabaAilabsAligenieOpencontentPushAPIRequest struct { + model.Params + // 在Aligenie开放平台创建的技能的ID + _skillId int64 + // 详细内容列表 + _contents *BatchContent +} + +// 初始化AlibabaAilabsAligenieOpencontentPushAPIRequest对象 +func NewAlibabaAilabsAligenieOpencontentPushRequest() *AlibabaAilabsAligenieOpencontentPushAPIRequest{ + return &AlibabaAilabsAligenieOpencontentPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsAligenieOpencontentPushAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.aligenie.opencontent.push" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsAligenieOpencontentPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkillId Setter +// 在Aligenie开放平台创建的技能的ID +func (r *AlibabaAilabsAligenieOpencontentPushAPIRequest) SetSkillId(_skillId int64) error { + r._skillId = _skillId + r.Set("skill_id", _skillId) + return nil +} + +// SkillId Getter +func (r AlibabaAilabsAligenieOpencontentPushAPIRequest) GetSkillId() int64 { + return r._skillId +} +// Contents Setter +// 详细内容列表 +func (r *AlibabaAilabsAligenieOpencontentPushAPIRequest) SetContents(_contents *BatchContent) error { + r._contents = _contents + r.Set("contents", _contents) + return nil +} + +// Contents Getter +func (r AlibabaAilabsAligenieOpencontentPushAPIRequest) GetContents() *BatchContent { + return r._contents +} diff --git a/model/tmallgenie/AlibabaAilabsAligenieOpencontentPushAPIResponse.go b/model/tmallgenie/AlibabaAilabsAligenieOpencontentPushAPIResponse.go new file mode 100644 index 0000000000..dcff585adc --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsAligenieOpencontentPushAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵内容接入标准接口 API返回值 +alibaba.ailabs.aligenie.opencontent.push + +第三方内容接入天猫精灵内容库,供相关技能使用 +*/ +type AlibabaAilabsAligenieOpencontentPushAPIResponse struct { + model.CommonResponse + AlibabaAilabsAligenieOpencontentPushAPIResponseModel +} + +// 天猫精灵内容接入标准接口 成功返回结果 +type AlibabaAilabsAligenieOpencontentPushAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_aligenie_opencontent_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaAilabsAligenieOpencontentPushResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAilabsAligenieOpencontentPushResponse.go b/model/tmallgenie/AlibabaAilabsAligenieOpencontentPushResponse.go deleted file mode 100644 index 140c1f3a68..0000000000 --- a/model/tmallgenie/AlibabaAilabsAligenieOpencontentPushResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵内容接入标准接口 API返回值 -alibaba.ailabs.aligenie.opencontent.push - -第三方内容接入天猫精灵内容库,供相关技能使用 -*/ -type AlibabaAilabsAligenieOpencontentPushAPIResponse struct { - model.CommonResponse - AlibabaAilabsAligenieOpencontentPushResponse -} - -// 天猫精灵内容接入标准接口 成功返回结果 -type AlibabaAilabsAligenieOpencontentPushResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_aligenie_opencontent_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaAilabsAligenieOpencontentPushResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAilabsAligenieOpencontentScenepushAPIRequest.go b/model/tmallgenie/AlibabaAilabsAligenieOpencontentScenepushAPIRequest.go new file mode 100644 index 0000000000..645a95e938 --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsAligenieOpencontentScenepushAPIRequest.go @@ -0,0 +1,80 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +音频场景接入接口 API请求 +alibaba.ailabs.aligenie.opencontent.scenepush + +天猫精灵音频挂靠场景接入 +*/ +type AlibabaAilabsAligenieOpencontentScenepushAPIRequest struct { + model.Params + // 0 无场景接入 1 关联应用接入 + _sceneType int64 + // 如果关联应用此字段为应用id + _sceneValue string + // 详细内容列表 + _batchContent *BatchContent +} + +// 初始化AlibabaAilabsAligenieOpencontentScenepushAPIRequest对象 +func NewAlibabaAilabsAligenieOpencontentScenepushRequest() *AlibabaAilabsAligenieOpencontentScenepushAPIRequest{ + return &AlibabaAilabsAligenieOpencontentScenepushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsAligenieOpencontentScenepushAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.aligenie.opencontent.scenepush" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsAligenieOpencontentScenepushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SceneType Setter +// 0 无场景接入 1 关联应用接入 +func (r *AlibabaAilabsAligenieOpencontentScenepushAPIRequest) SetSceneType(_sceneType int64) error { + r._sceneType = _sceneType + r.Set("scene_type", _sceneType) + return nil +} + +// SceneType Getter +func (r AlibabaAilabsAligenieOpencontentScenepushAPIRequest) GetSceneType() int64 { + return r._sceneType +} +// SceneValue Setter +// 如果关联应用此字段为应用id +func (r *AlibabaAilabsAligenieOpencontentScenepushAPIRequest) SetSceneValue(_sceneValue string) error { + r._sceneValue = _sceneValue + r.Set("scene_value", _sceneValue) + return nil +} + +// SceneValue Getter +func (r AlibabaAilabsAligenieOpencontentScenepushAPIRequest) GetSceneValue() string { + return r._sceneValue +} +// BatchContent Setter +// 详细内容列表 +func (r *AlibabaAilabsAligenieOpencontentScenepushAPIRequest) SetBatchContent(_batchContent *BatchContent) error { + r._batchContent = _batchContent + r.Set("batch_content", _batchContent) + return nil +} + +// BatchContent Getter +func (r AlibabaAilabsAligenieOpencontentScenepushAPIRequest) GetBatchContent() *BatchContent { + return r._batchContent +} diff --git a/model/tmallgenie/AlibabaAilabsAligenieOpencontentScenepushAPIResponse.go b/model/tmallgenie/AlibabaAilabsAligenieOpencontentScenepushAPIResponse.go new file mode 100644 index 0000000000..54909d292a --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsAligenieOpencontentScenepushAPIResponse.go @@ -0,0 +1,29 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +音频场景接入接口 API返回值 +alibaba.ailabs.aligenie.opencontent.scenepush + +天猫精灵音频挂靠场景接入 +*/ +type AlibabaAilabsAligenieOpencontentScenepushAPIResponse struct { + model.CommonResponse + AlibabaAilabsAligenieOpencontentScenepushAPIResponseModel +} + +// 音频场景接入接口 成功返回结果 +type AlibabaAilabsAligenieOpencontentScenepushAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_aligenie_opencontent_scenepush_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 返回信息 + RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAilabsAligenieOpencontentScenepushResponse.go b/model/tmallgenie/AlibabaAilabsAligenieOpencontentScenepushResponse.go deleted file mode 100644 index 25410e7ad6..0000000000 --- a/model/tmallgenie/AlibabaAilabsAligenieOpencontentScenepushResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -音频场景接入接口 API返回值 -alibaba.ailabs.aligenie.opencontent.scenepush - -天猫精灵音频挂靠场景接入 -*/ -type AlibabaAilabsAligenieOpencontentScenepushAPIResponse struct { - model.CommonResponse - AlibabaAilabsAligenieOpencontentScenepushResponse -} - -// 音频场景接入接口 成功返回结果 -type AlibabaAilabsAligenieOpencontentScenepushResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_aligenie_opencontent_scenepush_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 返回信息 - RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAilabsAligenieOpenvideoPushAPIRequest.go b/model/tmallgenie/AlibabaAilabsAligenieOpenvideoPushAPIRequest.go new file mode 100644 index 0000000000..1a7ce3dc8c --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsAligenieOpenvideoPushAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵内容库视频分集数据推送接口 API请求 +alibaba.ailabs.aligenie.openvideo.push + +天猫精灵内容库视频分集数据推送接口 +*/ +type AlibabaAilabsAligenieOpenvideoPushAPIRequest struct { + model.Params + // 待推送的视频数据 + _videos []RawSingleVideo +} + +// 初始化AlibabaAilabsAligenieOpenvideoPushAPIRequest对象 +func NewAlibabaAilabsAligenieOpenvideoPushRequest() *AlibabaAilabsAligenieOpenvideoPushAPIRequest{ + return &AlibabaAilabsAligenieOpenvideoPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsAligenieOpenvideoPushAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.aligenie.openvideo.push" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsAligenieOpenvideoPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Videos Setter +// 待推送的视频数据 +func (r *AlibabaAilabsAligenieOpenvideoPushAPIRequest) SetVideos(_videos []RawSingleVideo) error { + r._videos = _videos + r.Set("videos", _videos) + return nil +} + +// Videos Getter +func (r AlibabaAilabsAligenieOpenvideoPushAPIRequest) GetVideos() []RawSingleVideo { + return r._videos +} diff --git a/model/tmallgenie/AlibabaAilabsAligenieOpenvideoPushAPIResponse.go b/model/tmallgenie/AlibabaAilabsAligenieOpenvideoPushAPIResponse.go new file mode 100644 index 0000000000..6a355a9cd1 --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsAligenieOpenvideoPushAPIResponse.go @@ -0,0 +1,29 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵内容库视频分集数据推送接口 API返回值 +alibaba.ailabs.aligenie.openvideo.push + +天猫精灵内容库视频分集数据推送接口 +*/ +type AlibabaAilabsAligenieOpenvideoPushAPIResponse struct { + model.CommonResponse + AlibabaAilabsAligenieOpenvideoPushAPIResponseModel +} + +// 天猫精灵内容库视频分集数据推送接口 成功返回结果 +type AlibabaAilabsAligenieOpenvideoPushAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_aligenie_openvideo_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 状态码 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 描述 + RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAilabsAligenieOpenvideoPushResponse.go b/model/tmallgenie/AlibabaAilabsAligenieOpenvideoPushResponse.go deleted file mode 100644 index 760110bb42..0000000000 --- a/model/tmallgenie/AlibabaAilabsAligenieOpenvideoPushResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵内容库视频分集数据推送接口 API返回值 -alibaba.ailabs.aligenie.openvideo.push - -天猫精灵内容库视频分集数据推送接口 -*/ -type AlibabaAilabsAligenieOpenvideoPushAPIResponse struct { - model.CommonResponse - AlibabaAilabsAligenieOpenvideoPushResponse -} - -// 天猫精灵内容库视频分集数据推送接口 成功返回结果 -type AlibabaAilabsAligenieOpenvideoPushResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_aligenie_openvideo_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 状态码 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 描述 - RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAilabsAligenieOpenvideoScenepushAPIRequest.go b/model/tmallgenie/AlibabaAilabsAligenieOpenvideoScenepushAPIRequest.go new file mode 100644 index 0000000000..ab1cd982ab --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsAligenieOpenvideoScenepushAPIRequest.go @@ -0,0 +1,80 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +视频单集场景接入API API请求 +alibaba.ailabs.aligenie.openvideo.scenepush + +视频单集场景接入API +*/ +type AlibabaAilabsAligenieOpenvideoScenepushAPIRequest struct { + model.Params + // 内容接入场景0 无应用挂靠 1 应用挂靠 + _sceneType int64 + // 挂靠的应用id,在智能应用平台的地址栏可见 + _sceneValue string + // 待推送的视频数据 + _paramList []RawSingleVideo +} + +// 初始化AlibabaAilabsAligenieOpenvideoScenepushAPIRequest对象 +func NewAlibabaAilabsAligenieOpenvideoScenepushRequest() *AlibabaAilabsAligenieOpenvideoScenepushAPIRequest{ + return &AlibabaAilabsAligenieOpenvideoScenepushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsAligenieOpenvideoScenepushAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.aligenie.openvideo.scenepush" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsAligenieOpenvideoScenepushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SceneType Setter +// 内容接入场景0 无应用挂靠 1 应用挂靠 +func (r *AlibabaAilabsAligenieOpenvideoScenepushAPIRequest) SetSceneType(_sceneType int64) error { + r._sceneType = _sceneType + r.Set("scene_type", _sceneType) + return nil +} + +// SceneType Getter +func (r AlibabaAilabsAligenieOpenvideoScenepushAPIRequest) GetSceneType() int64 { + return r._sceneType +} +// SceneValue Setter +// 挂靠的应用id,在智能应用平台的地址栏可见 +func (r *AlibabaAilabsAligenieOpenvideoScenepushAPIRequest) SetSceneValue(_sceneValue string) error { + r._sceneValue = _sceneValue + r.Set("scene_value", _sceneValue) + return nil +} + +// SceneValue Getter +func (r AlibabaAilabsAligenieOpenvideoScenepushAPIRequest) GetSceneValue() string { + return r._sceneValue +} +// ParamList Setter +// 待推送的视频数据 +func (r *AlibabaAilabsAligenieOpenvideoScenepushAPIRequest) SetParamList(_paramList []RawSingleVideo) error { + r._paramList = _paramList + r.Set("param_list", _paramList) + return nil +} + +// ParamList Getter +func (r AlibabaAilabsAligenieOpenvideoScenepushAPIRequest) GetParamList() []RawSingleVideo { + return r._paramList +} diff --git a/model/tmallgenie/AlibabaAilabsAligenieOpenvideoScenepushAPIResponse.go b/model/tmallgenie/AlibabaAilabsAligenieOpenvideoScenepushAPIResponse.go new file mode 100644 index 0000000000..63d335d7c8 --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsAligenieOpenvideoScenepushAPIResponse.go @@ -0,0 +1,29 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +视频单集场景接入API API返回值 +alibaba.ailabs.aligenie.openvideo.scenepush + +视频单集场景接入API +*/ +type AlibabaAilabsAligenieOpenvideoScenepushAPIResponse struct { + model.CommonResponse + AlibabaAilabsAligenieOpenvideoScenepushAPIResponseModel +} + +// 视频单集场景接入API 成功返回结果 +type AlibabaAilabsAligenieOpenvideoScenepushAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_aligenie_openvideo_scenepush_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 状态码 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 描述 + RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAilabsAligenieOpenvideoScenepushResponse.go b/model/tmallgenie/AlibabaAilabsAligenieOpenvideoScenepushResponse.go deleted file mode 100644 index 4f7b20c0ce..0000000000 --- a/model/tmallgenie/AlibabaAilabsAligenieOpenvideoScenepushResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -视频单集场景接入API API返回值 -alibaba.ailabs.aligenie.openvideo.scenepush - -视频单集场景接入API -*/ -type AlibabaAilabsAligenieOpenvideoScenepushAPIResponse struct { - model.CommonResponse - AlibabaAilabsAligenieOpenvideoScenepushResponse -} - -// 视频单集场景接入API 成功返回结果 -type AlibabaAilabsAligenieOpenvideoScenepushResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_aligenie_openvideo_scenepush_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 状态码 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 描述 - RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAilabsAligenieOpenvideoalbumScenepushAPIRequest.go b/model/tmallgenie/AlibabaAilabsAligenieOpenvideoalbumScenepushAPIRequest.go new file mode 100644 index 0000000000..97f3a017fe --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsAligenieOpenvideoalbumScenepushAPIRequest.go @@ -0,0 +1,80 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +视频专辑场景接入接口 API请求 +alibaba.ailabs.aligenie.openvideoalbum.scenepush + +视频专辑场景接入接口 +*/ +type AlibabaAilabsAligenieOpenvideoalbumScenepushAPIRequest struct { + model.Params + // 接入场景 0 无应用 1 挂靠应用 + _sceneType int64 + // 如果场景是1 此处为应用id + _sceneValue string + // 视频合辑数据 + _paramList []RawVideoAlbum +} + +// 初始化AlibabaAilabsAligenieOpenvideoalbumScenepushAPIRequest对象 +func NewAlibabaAilabsAligenieOpenvideoalbumScenepushRequest() *AlibabaAilabsAligenieOpenvideoalbumScenepushAPIRequest{ + return &AlibabaAilabsAligenieOpenvideoalbumScenepushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsAligenieOpenvideoalbumScenepushAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.aligenie.openvideoalbum.scenepush" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsAligenieOpenvideoalbumScenepushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SceneType Setter +// 接入场景 0 无应用 1 挂靠应用 +func (r *AlibabaAilabsAligenieOpenvideoalbumScenepushAPIRequest) SetSceneType(_sceneType int64) error { + r._sceneType = _sceneType + r.Set("scene_type", _sceneType) + return nil +} + +// SceneType Getter +func (r AlibabaAilabsAligenieOpenvideoalbumScenepushAPIRequest) GetSceneType() int64 { + return r._sceneType +} +// SceneValue Setter +// 如果场景是1 此处为应用id +func (r *AlibabaAilabsAligenieOpenvideoalbumScenepushAPIRequest) SetSceneValue(_sceneValue string) error { + r._sceneValue = _sceneValue + r.Set("scene_value", _sceneValue) + return nil +} + +// SceneValue Getter +func (r AlibabaAilabsAligenieOpenvideoalbumScenepushAPIRequest) GetSceneValue() string { + return r._sceneValue +} +// ParamList Setter +// 视频合辑数据 +func (r *AlibabaAilabsAligenieOpenvideoalbumScenepushAPIRequest) SetParamList(_paramList []RawVideoAlbum) error { + r._paramList = _paramList + r.Set("param_list", _paramList) + return nil +} + +// ParamList Getter +func (r AlibabaAilabsAligenieOpenvideoalbumScenepushAPIRequest) GetParamList() []RawVideoAlbum { + return r._paramList +} diff --git a/model/tmallgenie/AlibabaAilabsAligenieOpenvideoalbumScenepushAPIResponse.go b/model/tmallgenie/AlibabaAilabsAligenieOpenvideoalbumScenepushAPIResponse.go new file mode 100644 index 0000000000..a70b37681c --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsAligenieOpenvideoalbumScenepushAPIResponse.go @@ -0,0 +1,29 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +视频专辑场景接入接口 API返回值 +alibaba.ailabs.aligenie.openvideoalbum.scenepush + +视频专辑场景接入接口 +*/ +type AlibabaAilabsAligenieOpenvideoalbumScenepushAPIResponse struct { + model.CommonResponse + AlibabaAilabsAligenieOpenvideoalbumScenepushAPIResponseModel +} + +// 视频专辑场景接入接口 成功返回结果 +type AlibabaAilabsAligenieOpenvideoalbumScenepushAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_aligenie_openvideoalbum_scenepush_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 状态码 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 描述 + RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAilabsAligenieOpenvideoalbumScenepushResponse.go b/model/tmallgenie/AlibabaAilabsAligenieOpenvideoalbumScenepushResponse.go deleted file mode 100644 index b3d18cb107..0000000000 --- a/model/tmallgenie/AlibabaAilabsAligenieOpenvideoalbumScenepushResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -视频专辑场景接入接口 API返回值 -alibaba.ailabs.aligenie.openvideoalbum.scenepush - -视频专辑场景接入接口 -*/ -type AlibabaAilabsAligenieOpenvideoalbumScenepushAPIResponse struct { - model.CommonResponse - AlibabaAilabsAligenieOpenvideoalbumScenepushResponse -} - -// 视频专辑场景接入接口 成功返回结果 -type AlibabaAilabsAligenieOpenvideoalbumScenepushResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_aligenie_openvideoalbum_scenepush_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 状态码 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 描述 - RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAilabsAligenieSkillEntityImportAPIRequest.go b/model/tmallgenie/AlibabaAilabsAligenieSkillEntityImportAPIRequest.go new file mode 100644 index 0000000000..f0945d91fd --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsAligenieSkillEntityImportAPIRequest.go @@ -0,0 +1,122 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +实体动态更新 API请求 +alibaba.ailabs.aligenie.skill.entity.import + +根据用户上传的实体信息,进行制定技能实体的动态变更 +*/ +type AlibabaAilabsAligenieSkillEntityImportAPIRequest struct { + model.Params + // 技能Id + _skillId int64 + // 是否增量更新,true为增量,否则上传数据中没有的实体值将被删除 + _append bool + // 测试,目前没有此功能,此参数无效 + _test bool + // 文件内容 + _fileData *model.File + // 要更新的实体名 + _entityName string + // 固定值,ISV + _type string +} + +// 初始化AlibabaAilabsAligenieSkillEntityImportAPIRequest对象 +func NewAlibabaAilabsAligenieSkillEntityImportRequest() *AlibabaAilabsAligenieSkillEntityImportAPIRequest{ + return &AlibabaAilabsAligenieSkillEntityImportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsAligenieSkillEntityImportAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.aligenie.skill.entity.import" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsAligenieSkillEntityImportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkillId Setter +// 技能Id +func (r *AlibabaAilabsAligenieSkillEntityImportAPIRequest) SetSkillId(_skillId int64) error { + r._skillId = _skillId + r.Set("skill_id", _skillId) + return nil +} + +// SkillId Getter +func (r AlibabaAilabsAligenieSkillEntityImportAPIRequest) GetSkillId() int64 { + return r._skillId +} +// Append Setter +// 是否增量更新,true为增量,否则上传数据中没有的实体值将被删除 +func (r *AlibabaAilabsAligenieSkillEntityImportAPIRequest) SetAppend(_append bool) error { + r._append = _append + r.Set("append", _append) + return nil +} + +// Append Getter +func (r AlibabaAilabsAligenieSkillEntityImportAPIRequest) GetAppend() bool { + return r._append +} +// Test Setter +// 测试,目前没有此功能,此参数无效 +func (r *AlibabaAilabsAligenieSkillEntityImportAPIRequest) SetTest(_test bool) error { + r._test = _test + r.Set("test", _test) + return nil +} + +// Test Getter +func (r AlibabaAilabsAligenieSkillEntityImportAPIRequest) GetTest() bool { + return r._test +} +// FileData Setter +// 文件内容 +func (r *AlibabaAilabsAligenieSkillEntityImportAPIRequest) SetFileData(_fileData *model.File) error { + r._fileData = _fileData + r.Set("file_data", _fileData) + return nil +} + +// FileData Getter +func (r AlibabaAilabsAligenieSkillEntityImportAPIRequest) GetFileData() *model.File { + return r._fileData +} +// EntityName Setter +// 要更新的实体名 +func (r *AlibabaAilabsAligenieSkillEntityImportAPIRequest) SetEntityName(_entityName string) error { + r._entityName = _entityName + r.Set("entity_name", _entityName) + return nil +} + +// EntityName Getter +func (r AlibabaAilabsAligenieSkillEntityImportAPIRequest) GetEntityName() string { + return r._entityName +} +// Type Setter +// 固定值,ISV +func (r *AlibabaAilabsAligenieSkillEntityImportAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaAilabsAligenieSkillEntityImportAPIRequest) GetType() string { + return r._type +} diff --git a/model/tmallgenie/AlibabaAilabsAligenieSkillEntityImportAPIResponse.go b/model/tmallgenie/AlibabaAilabsAligenieSkillEntityImportAPIResponse.go new file mode 100644 index 0000000000..9a4e457f21 --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsAligenieSkillEntityImportAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +实体动态更新 API返回值 +alibaba.ailabs.aligenie.skill.entity.import + +根据用户上传的实体信息,进行制定技能实体的动态变更 +*/ +type AlibabaAilabsAligenieSkillEntityImportAPIResponse struct { + model.CommonResponse + AlibabaAilabsAligenieSkillEntityImportAPIResponseModel +} + +// 实体动态更新 成功返回结果 +type AlibabaAilabsAligenieSkillEntityImportAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_aligenie_skill_entity_import_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回包装类 + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAilabsAligenieSkillEntityImportResponse.go b/model/tmallgenie/AlibabaAilabsAligenieSkillEntityImportResponse.go deleted file mode 100644 index bcc886ac10..0000000000 --- a/model/tmallgenie/AlibabaAilabsAligenieSkillEntityImportResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -实体动态更新 API返回值 -alibaba.ailabs.aligenie.skill.entity.import - -根据用户上传的实体信息,进行制定技能实体的动态变更 -*/ -type AlibabaAilabsAligenieSkillEntityImportAPIResponse struct { - model.CommonResponse - AlibabaAilabsAligenieSkillEntityImportResponse -} - -// 实体动态更新 成功返回结果 -type AlibabaAilabsAligenieSkillEntityImportResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_aligenie_skill_entity_import_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回包装类 - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAilabsAligenieSkillMessagePushAPIRequest.go b/model/tmallgenie/AlibabaAilabsAligenieSkillMessagePushAPIRequest.go new file mode 100644 index 0000000000..0e268670be --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsAligenieSkillMessagePushAPIRequest.go @@ -0,0 +1,150 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵消息推送标准接口 API请求 +alibaba.ailabs.aligenie.skill.message.push + +用于AliGenie技能开发者在技能内主动向音响推送消息的标准服务接口,只有订阅过该消息的用户才能收到消息; +*/ +type AlibabaAilabsAligenieSkillMessagePushAPIRequest struct { + model.Params + // 要推送的消息内容 + _content string + // 智能应用平台创建的技能id + _skillId int64 + // 接收方的用户Id,从技能WebHook中取得的userOpenId + _accountType string + // 消息推送的方式,和技能中申请的权限相关,可选值为TO_USER,TO_APP_BOX,BROADCAST + _pushType string + // 是否是测试消息 + _test bool + // TO_USER时必填,接收方的用户Id,从技能WebHook中取得的userOpenId + _userId string + // 接收方的用户设备id,从技能WebHook中取得的deviceOpenId,填写设备id,则用户id必填,否则无法推送 + _uuid string + // 鉴权用户类型 + _authAccountType string +} + +// 初始化AlibabaAilabsAligenieSkillMessagePushAPIRequest对象 +func NewAlibabaAilabsAligenieSkillMessagePushRequest() *AlibabaAilabsAligenieSkillMessagePushAPIRequest{ + return &AlibabaAilabsAligenieSkillMessagePushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsAligenieSkillMessagePushAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.aligenie.skill.message.push" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsAligenieSkillMessagePushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Content Setter +// 要推送的消息内容 +func (r *AlibabaAilabsAligenieSkillMessagePushAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r AlibabaAilabsAligenieSkillMessagePushAPIRequest) GetContent() string { + return r._content +} +// SkillId Setter +// 智能应用平台创建的技能id +func (r *AlibabaAilabsAligenieSkillMessagePushAPIRequest) SetSkillId(_skillId int64) error { + r._skillId = _skillId + r.Set("skill_id", _skillId) + return nil +} + +// SkillId Getter +func (r AlibabaAilabsAligenieSkillMessagePushAPIRequest) GetSkillId() int64 { + return r._skillId +} +// AccountType Setter +// 接收方的用户Id,从技能WebHook中取得的userOpenId +func (r *AlibabaAilabsAligenieSkillMessagePushAPIRequest) SetAccountType(_accountType string) error { + r._accountType = _accountType + r.Set("account_type", _accountType) + return nil +} + +// AccountType Getter +func (r AlibabaAilabsAligenieSkillMessagePushAPIRequest) GetAccountType() string { + return r._accountType +} +// PushType Setter +// 消息推送的方式,和技能中申请的权限相关,可选值为TO_USER,TO_APP_BOX,BROADCAST +func (r *AlibabaAilabsAligenieSkillMessagePushAPIRequest) SetPushType(_pushType string) error { + r._pushType = _pushType + r.Set("push_type", _pushType) + return nil +} + +// PushType Getter +func (r AlibabaAilabsAligenieSkillMessagePushAPIRequest) GetPushType() string { + return r._pushType +} +// Test Setter +// 是否是测试消息 +func (r *AlibabaAilabsAligenieSkillMessagePushAPIRequest) SetTest(_test bool) error { + r._test = _test + r.Set("test", _test) + return nil +} + +// Test Getter +func (r AlibabaAilabsAligenieSkillMessagePushAPIRequest) GetTest() bool { + return r._test +} +// UserId Setter +// TO_USER时必填,接收方的用户Id,从技能WebHook中取得的userOpenId +func (r *AlibabaAilabsAligenieSkillMessagePushAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaAilabsAligenieSkillMessagePushAPIRequest) GetUserId() string { + return r._userId +} +// Uuid Setter +// 接收方的用户设备id,从技能WebHook中取得的deviceOpenId,填写设备id,则用户id必填,否则无法推送 +func (r *AlibabaAilabsAligenieSkillMessagePushAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaAilabsAligenieSkillMessagePushAPIRequest) GetUuid() string { + return r._uuid +} +// AuthAccountType Setter +// 鉴权用户类型 +func (r *AlibabaAilabsAligenieSkillMessagePushAPIRequest) SetAuthAccountType(_authAccountType string) error { + r._authAccountType = _authAccountType + r.Set("auth_account_type", _authAccountType) + return nil +} + +// AuthAccountType Getter +func (r AlibabaAilabsAligenieSkillMessagePushAPIRequest) GetAuthAccountType() string { + return r._authAccountType +} diff --git a/model/tmallgenie/AlibabaAilabsAligenieSkillMessagePushAPIResponse.go b/model/tmallgenie/AlibabaAilabsAligenieSkillMessagePushAPIResponse.go new file mode 100644 index 0000000000..d20c0b2a18 --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsAligenieSkillMessagePushAPIResponse.go @@ -0,0 +1,33 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵消息推送标准接口 API返回值 +alibaba.ailabs.aligenie.skill.message.push + +用于AliGenie技能开发者在技能内主动向音响推送消息的标准服务接口,只有订阅过该消息的用户才能收到消息; +*/ +type AlibabaAilabsAligenieSkillMessagePushAPIResponse struct { + model.CommonResponse + AlibabaAilabsAligenieSkillMessagePushAPIResponseModel +} + +// 天猫精灵消息推送标准接口 成功返回结果 +type AlibabaAilabsAligenieSkillMessagePushAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_aligenie_skill_message_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 消息推送错误码 + PushErrorCode string `json:"push_error_code,omitempty" xml:"push_error_code,omitempty"` + // 消息推送错误信息 + PushErrorMsg string `json:"push_error_msg,omitempty" xml:"push_error_msg,omitempty"` + // 消息推送是否成功 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 接口调用是否成功 + PushResult bool `json:"push_result,omitempty" xml:"push_result,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAilabsAligenieSkillMessagePushResponse.go b/model/tmallgenie/AlibabaAilabsAligenieSkillMessagePushResponse.go deleted file mode 100644 index 1f4da6456d..0000000000 --- a/model/tmallgenie/AlibabaAilabsAligenieSkillMessagePushResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵消息推送标准接口 API返回值 -alibaba.ailabs.aligenie.skill.message.push - -用于AliGenie技能开发者在技能内主动向音响推送消息的标准服务接口,只有订阅过该消息的用户才能收到消息; -*/ -type AlibabaAilabsAligenieSkillMessagePushAPIResponse struct { - model.CommonResponse - AlibabaAilabsAligenieSkillMessagePushResponse -} - -// 天猫精灵消息推送标准接口 成功返回结果 -type AlibabaAilabsAligenieSkillMessagePushResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_aligenie_skill_message_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 消息推送错误码 - PushErrorCode string `json:"push_error_code,omitempty" xml:"push_error_code,omitempty"` - // 消息推送错误信息 - PushErrorMsg string `json:"push_error_msg,omitempty" xml:"push_error_msg,omitempty"` - // 消息推送是否成功 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 接口调用是否成功 - PushResult bool `json:"push_result,omitempty" xml:"push_result,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAilabsAligenieVideoalbumPushAPIRequest.go b/model/tmallgenie/AlibabaAilabsAligenieVideoalbumPushAPIRequest.go new file mode 100644 index 0000000000..f26421a6cf --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsAligenieVideoalbumPushAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵内容库视频合辑数据推送接口 API请求 +alibaba.ailabs.aligenie.videoalbum.push + +三方内容合作厂商可将视频辑数据通过此接口推送至天猫精灵内容库接入中,供天猫精灵使用 +*/ +type AlibabaAilabsAligenieVideoalbumPushAPIRequest struct { + model.Params + // 视频合辑数据 + _param1 []RawVideoAlbum +} + +// 初始化AlibabaAilabsAligenieVideoalbumPushAPIRequest对象 +func NewAlibabaAilabsAligenieVideoalbumPushRequest() *AlibabaAilabsAligenieVideoalbumPushAPIRequest{ + return &AlibabaAilabsAligenieVideoalbumPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsAligenieVideoalbumPushAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.aligenie.videoalbum.push" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsAligenieVideoalbumPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param1 Setter +// 视频合辑数据 +func (r *AlibabaAilabsAligenieVideoalbumPushAPIRequest) SetParam1(_param1 []RawVideoAlbum) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaAilabsAligenieVideoalbumPushAPIRequest) GetParam1() []RawVideoAlbum { + return r._param1 +} diff --git a/model/tmallgenie/AlibabaAilabsAligenieVideoalbumPushAPIResponse.go b/model/tmallgenie/AlibabaAilabsAligenieVideoalbumPushAPIResponse.go new file mode 100644 index 0000000000..2dabb76445 --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsAligenieVideoalbumPushAPIResponse.go @@ -0,0 +1,29 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵内容库视频合辑数据推送接口 API返回值 +alibaba.ailabs.aligenie.videoalbum.push + +三方内容合作厂商可将视频辑数据通过此接口推送至天猫精灵内容库接入中,供天猫精灵使用 +*/ +type AlibabaAilabsAligenieVideoalbumPushAPIResponse struct { + model.CommonResponse + AlibabaAilabsAligenieVideoalbumPushAPIResponseModel +} + +// 天猫精灵内容库视频合辑数据推送接口 成功返回结果 +type AlibabaAilabsAligenieVideoalbumPushAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_aligenie_videoalbum_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 状态码 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 描述 + RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAilabsAligenieVideoalbumPushResponse.go b/model/tmallgenie/AlibabaAilabsAligenieVideoalbumPushResponse.go deleted file mode 100644 index f0c2ae6359..0000000000 --- a/model/tmallgenie/AlibabaAilabsAligenieVideoalbumPushResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵内容库视频合辑数据推送接口 API返回值 -alibaba.ailabs.aligenie.videoalbum.push - -三方内容合作厂商可将视频辑数据通过此接口推送至天猫精灵内容库接入中,供天猫精灵使用 -*/ -type AlibabaAilabsAligenieVideoalbumPushAPIResponse struct { - model.CommonResponse - AlibabaAilabsAligenieVideoalbumPushResponse -} - -// 天猫精灵内容库视频合辑数据推送接口 成功返回结果 -type AlibabaAilabsAligenieVideoalbumPushResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_aligenie_videoalbum_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 状态码 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 描述 - RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAilabsBotsSkilsListAPIRequest.go b/model/tmallgenie/AlibabaAilabsBotsSkilsListAPIRequest.go new file mode 100644 index 0000000000..5a64cb69f8 --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsBotsSkilsListAPIRequest.go @@ -0,0 +1,66 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +对外设备获取技能列表 API请求 +alibaba.ailabs.bots.skils.list + +获取ai开放平台技能列表 +*/ +type AlibabaAilabsBotsSkilsListAPIRequest struct { + model.Params + // 当前页 + _pageIndex int64 + // 分页单位 + _pageSize int64 +} + +// 初始化AlibabaAilabsBotsSkilsListAPIRequest对象 +func NewAlibabaAilabsBotsSkilsListRequest() *AlibabaAilabsBotsSkilsListAPIRequest{ + return &AlibabaAilabsBotsSkilsListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsBotsSkilsListAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.bots.skils.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsBotsSkilsListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageIndex Setter +// 当前页 +func (r *AlibabaAilabsBotsSkilsListAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r AlibabaAilabsBotsSkilsListAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} +// PageSize Setter +// 分页单位 +func (r *AlibabaAilabsBotsSkilsListAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaAilabsBotsSkilsListAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tmallgenie/AlibabaAilabsBotsSkilsListAPIResponse.go b/model/tmallgenie/AlibabaAilabsBotsSkilsListAPIResponse.go new file mode 100644 index 0000000000..edaf158b13 --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsBotsSkilsListAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +对外设备获取技能列表 API返回值 +alibaba.ailabs.bots.skils.list + +获取ai开放平台技能列表 +*/ +type AlibabaAilabsBotsSkilsListAPIResponse struct { + model.CommonResponse + AlibabaAilabsBotsSkilsListAPIResponseModel +} + +// 对外设备获取技能列表 成功返回结果 +type AlibabaAilabsBotsSkilsListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_bots_skils_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // { "skillId": 209, "invocationName": "中文先生", "name": "测试34", "serviceProviders": [ { "icon": "//arplatform.alicdn.com/images/3/1498910818259.png", "name": "provider1", } ], "botId": 10, "iconImgUrl": "//arplatform.alicdn.com/images/244/1501764397807.png", "longDesc": "中文先生是学中文的好帮手。查中文、查成语、听故事样样行。" } + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAilabsBotsSkilsListResponse.go b/model/tmallgenie/AlibabaAilabsBotsSkilsListResponse.go deleted file mode 100644 index 52d062f69e..0000000000 --- a/model/tmallgenie/AlibabaAilabsBotsSkilsListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -对外设备获取技能列表 API返回值 -alibaba.ailabs.bots.skils.list - -获取ai开放平台技能列表 -*/ -type AlibabaAilabsBotsSkilsListAPIResponse struct { - model.CommonResponse - AlibabaAilabsBotsSkilsListResponse -} - -// 对外设备获取技能列表 成功返回结果 -type AlibabaAilabsBotsSkilsListResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_bots_skils_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // { "skillId": 209, "invocationName": "中文先生", "name": "测试34", "serviceProviders": [ { "icon": "//arplatform.alicdn.com/images/3/1498910818259.png", "name": "provider1", } ], "botId": 10, "iconImgUrl": "//arplatform.alicdn.com/images/244/1501764397807.png", "longDesc": "中文先生是学中文的好帮手。查中文、查成语、听故事样样行。" } - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAilabsIotCloudDeviceReportAPIRequest.go b/model/tmallgenie/AlibabaAilabsIotCloudDeviceReportAPIRequest.go new file mode 100644 index 0000000000..a7cd38a88a --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsIotCloudDeviceReportAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵云云接入设备状态、事件上报接口 API请求 +alibaba.ailabs.iot.cloud.device.report + +承接天猫精灵云云接入设备的状态、事件上报 +*/ +type AlibabaAilabsIotCloudDeviceReportAPIRequest struct { + model.Params + // 上报总入参 + _cloudReportParam *CloudReportParam +} + +// 初始化AlibabaAilabsIotCloudDeviceReportAPIRequest对象 +func NewAlibabaAilabsIotCloudDeviceReportRequest() *AlibabaAilabsIotCloudDeviceReportAPIRequest{ + return &AlibabaAilabsIotCloudDeviceReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsIotCloudDeviceReportAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.iot.cloud.device.report" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsIotCloudDeviceReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CloudReportParam Setter +// 上报总入参 +func (r *AlibabaAilabsIotCloudDeviceReportAPIRequest) SetCloudReportParam(_cloudReportParam *CloudReportParam) error { + r._cloudReportParam = _cloudReportParam + r.Set("cloud_report_param", _cloudReportParam) + return nil +} + +// CloudReportParam Getter +func (r AlibabaAilabsIotCloudDeviceReportAPIRequest) GetCloudReportParam() *CloudReportParam { + return r._cloudReportParam +} diff --git a/model/tmallgenie/AlibabaAilabsIotCloudDeviceReportAPIResponse.go b/model/tmallgenie/AlibabaAilabsIotCloudDeviceReportAPIResponse.go new file mode 100644 index 0000000000..4bff9ddddb --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsIotCloudDeviceReportAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵云云接入设备状态、事件上报接口 API返回值 +alibaba.ailabs.iot.cloud.device.report + +承接天猫精灵云云接入设备的状态、事件上报 +*/ +type AlibabaAilabsIotCloudDeviceReportAPIResponse struct { + model.CommonResponse + AlibabaAilabsIotCloudDeviceReportAPIResponseModel +} + +// 天猫精灵云云接入设备状态、事件上报接口 成功返回结果 +type AlibabaAilabsIotCloudDeviceReportAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_iot_cloud_device_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值,是否上报成功 + RetValue bool `json:"ret_value,omitempty" xml:"ret_value,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAilabsIotCloudDeviceReportResponse.go b/model/tmallgenie/AlibabaAilabsIotCloudDeviceReportResponse.go deleted file mode 100644 index 886133154c..0000000000 --- a/model/tmallgenie/AlibabaAilabsIotCloudDeviceReportResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵云云接入设备状态、事件上报接口 API返回值 -alibaba.ailabs.iot.cloud.device.report - -承接天猫精灵云云接入设备的状态、事件上报 -*/ -type AlibabaAilabsIotCloudDeviceReportAPIResponse struct { - model.CommonResponse - AlibabaAilabsIotCloudDeviceReportResponse -} - -// 天猫精灵云云接入设备状态、事件上报接口 成功返回结果 -type AlibabaAilabsIotCloudDeviceReportResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_iot_cloud_device_report_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值,是否上报成功 - RetValue bool `json:"ret_value,omitempty" xml:"ret_value,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAilabsIotDeviceControlNotifyAPIRequest.go b/model/tmallgenie/AlibabaAilabsIotDeviceControlNotifyAPIRequest.go new file mode 100644 index 0000000000..7fa30ab7cb --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsIotDeviceControlNotifyAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵IoT异步控制回调接口 API请求 +alibaba.ailabs.iot.device.control.notify + +用于天猫精灵IoT云云接入控制结果的异步回调 +*/ +type AlibabaAilabsIotDeviceControlNotifyAPIRequest struct { + model.Params + // 入参 + _notifyControlParams *NotifyVehicleControlParams +} + +// 初始化AlibabaAilabsIotDeviceControlNotifyAPIRequest对象 +func NewAlibabaAilabsIotDeviceControlNotifyRequest() *AlibabaAilabsIotDeviceControlNotifyAPIRequest{ + return &AlibabaAilabsIotDeviceControlNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsIotDeviceControlNotifyAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.iot.device.control.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsIotDeviceControlNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NotifyControlParams Setter +// 入参 +func (r *AlibabaAilabsIotDeviceControlNotifyAPIRequest) SetNotifyControlParams(_notifyControlParams *NotifyVehicleControlParams) error { + r._notifyControlParams = _notifyControlParams + r.Set("notify_control_params", _notifyControlParams) + return nil +} + +// NotifyControlParams Getter +func (r AlibabaAilabsIotDeviceControlNotifyAPIRequest) GetNotifyControlParams() *NotifyVehicleControlParams { + return r._notifyControlParams +} diff --git a/model/tmallgenie/AlibabaAilabsIotDeviceControlNotifyAPIResponse.go b/model/tmallgenie/AlibabaAilabsIotDeviceControlNotifyAPIResponse.go new file mode 100644 index 0000000000..2f65952f96 --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsIotDeviceControlNotifyAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵IoT异步控制回调接口 API返回值 +alibaba.ailabs.iot.device.control.notify + +用于天猫精灵IoT云云接入控制结果的异步回调 +*/ +type AlibabaAilabsIotDeviceControlNotifyAPIResponse struct { + model.CommonResponse + AlibabaAilabsIotDeviceControlNotifyAPIResponseModel +} + +// 天猫精灵IoT异步控制回调接口 成功返回结果 +type AlibabaAilabsIotDeviceControlNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_iot_device_control_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否通知成功 + RetValue bool `json:"ret_value,omitempty" xml:"ret_value,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAilabsIotDeviceControlNotifyResponse.go b/model/tmallgenie/AlibabaAilabsIotDeviceControlNotifyResponse.go deleted file mode 100644 index 790de4457e..0000000000 --- a/model/tmallgenie/AlibabaAilabsIotDeviceControlNotifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵IoT异步控制回调接口 API返回值 -alibaba.ailabs.iot.device.control.notify - -用于天猫精灵IoT云云接入控制结果的异步回调 -*/ -type AlibabaAilabsIotDeviceControlNotifyAPIResponse struct { - model.CommonResponse - AlibabaAilabsIotDeviceControlNotifyResponse -} - -// 天猫精灵IoT异步控制回调接口 成功返回结果 -type AlibabaAilabsIotDeviceControlNotifyResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_iot_device_control_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否通知成功 - RetValue bool `json:"ret_value,omitempty" xml:"ret_value,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAilabsIotDeviceListGetAPIRequest.go b/model/tmallgenie/AlibabaAilabsIotDeviceListGetAPIRequest.go new file mode 100644 index 0000000000..4af1d5da04 --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsIotDeviceListGetAPIRequest.go @@ -0,0 +1,66 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取iot设备列表 API请求 +alibaba.ailabs.iot.device.list.get + +通过此接口获取用户名下的iot设备列表 +*/ +type AlibabaAilabsIotDeviceListGetAPIRequest struct { + model.Params + // 用户open id + _userOpenId string + // client id + _clientId string +} + +// 初始化AlibabaAilabsIotDeviceListGetAPIRequest对象 +func NewAlibabaAilabsIotDeviceListGetRequest() *AlibabaAilabsIotDeviceListGetAPIRequest{ + return &AlibabaAilabsIotDeviceListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsIotDeviceListGetAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.iot.device.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsIotDeviceListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserOpenId Setter +// 用户open id +func (r *AlibabaAilabsIotDeviceListGetAPIRequest) SetUserOpenId(_userOpenId string) error { + r._userOpenId = _userOpenId + r.Set("user_open_id", _userOpenId) + return nil +} + +// UserOpenId Getter +func (r AlibabaAilabsIotDeviceListGetAPIRequest) GetUserOpenId() string { + return r._userOpenId +} +// ClientId Setter +// client id +func (r *AlibabaAilabsIotDeviceListGetAPIRequest) SetClientId(_clientId string) error { + r._clientId = _clientId + r.Set("client_id", _clientId) + return nil +} + +// ClientId Getter +func (r AlibabaAilabsIotDeviceListGetAPIRequest) GetClientId() string { + return r._clientId +} diff --git a/model/tmallgenie/AlibabaAilabsIotDeviceListGetAPIResponse.go b/model/tmallgenie/AlibabaAilabsIotDeviceListGetAPIResponse.go new file mode 100644 index 0000000000..0f56b1565a --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsIotDeviceListGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取iot设备列表 API返回值 +alibaba.ailabs.iot.device.list.get + +通过此接口获取用户名下的iot设备列表 +*/ +type AlibabaAilabsIotDeviceListGetAPIResponse struct { + model.CommonResponse + AlibabaAilabsIotDeviceListGetAPIResponseModel +} + +// 获取iot设备列表 成功返回结果 +type AlibabaAilabsIotDeviceListGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_iot_device_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAilabsIotDeviceListGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAilabsIotDeviceListGetResponse.go b/model/tmallgenie/AlibabaAilabsIotDeviceListGetResponse.go deleted file mode 100644 index a34cf7ac2c..0000000000 --- a/model/tmallgenie/AlibabaAilabsIotDeviceListGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取iot设备列表 API返回值 -alibaba.ailabs.iot.device.list.get - -通过此接口获取用户名下的iot设备列表 -*/ -type AlibabaAilabsIotDeviceListGetAPIResponse struct { - model.CommonResponse - AlibabaAilabsIotDeviceListGetResponse -} - -// 获取iot设备列表 成功返回结果 -type AlibabaAilabsIotDeviceListGetResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_iot_device_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAilabsIotDeviceListGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIRequest.go b/model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIRequest.go new file mode 100644 index 0000000000..a5d58ce831 --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIRequest.go @@ -0,0 +1,66 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据mac查询设备的安全二维码 API请求 +alibaba.ailabs.tmallgenie.auth.device.withmac.qrcode.get + +根据mac查询二维码详细信息 +*/ +type AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIRequest struct { + model.Params + // 产品ID + _clientId string + // 设备mac地址 + _mac string +} + +// 初始化AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIRequest对象 +func NewAlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetRequest() *AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIRequest{ + return &AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.tmallgenie.auth.device.withmac.qrcode.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ClientId Setter +// 产品ID +func (r *AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIRequest) SetClientId(_clientId string) error { + r._clientId = _clientId + r.Set("client_id", _clientId) + return nil +} + +// ClientId Getter +func (r AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIRequest) GetClientId() string { + return r._clientId +} +// Mac Setter +// 设备mac地址 +func (r *AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIRequest) SetMac(_mac string) error { + r._mac = _mac + r.Set("mac", _mac) + return nil +} + +// Mac Getter +func (r AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIRequest) GetMac() string { + return r._mac +} diff --git a/model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIResponse.go b/model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIResponse.go new file mode 100644 index 0000000000..bd7396fbfe --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIResponse.go @@ -0,0 +1,31 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据mac查询设备的安全二维码 API返回值 +alibaba.ailabs.tmallgenie.auth.device.withmac.qrcode.get + +根据mac查询二维码详细信息 +*/ +type AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIResponse struct { + model.CommonResponse + AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIResponseModel +} + +// 根据mac查询设备的安全二维码 成功返回结果 +type AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_withmac_qrcode_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果码 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 二维码数据 + Result string `json:"result,omitempty" xml:"result,omitempty"` + // 结果描述 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetResponse.go b/model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetResponse.go deleted file mode 100644 index c3961c9844..0000000000 --- a/model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据mac查询设备的安全二维码 API返回值 -alibaba.ailabs.tmallgenie.auth.device.withmac.qrcode.get - -根据mac查询二维码详细信息 -*/ -type AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetAPIResponse struct { - model.CommonResponse - AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetResponse -} - -// 根据mac查询设备的安全二维码 成功返回结果 -type AlibabaAilabsTmallgenieAuthDeviceWithmacQrcodeGetResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_withmac_qrcode_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果码 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 二维码数据 - Result string `json:"result,omitempty" xml:"result,omitempty"` - // 结果描述 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIRequest.go b/model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIRequest.go new file mode 100644 index 0000000000..e48649a7ca --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIRequest.go @@ -0,0 +1,66 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据安全简码查询二维码详细信息 API请求 +alibaba.ailabs.tmallgenie.auth.device.withshort.qrcode.get + +根据安全简码查询二维码详细信息 +*/ +type AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIRequest struct { + model.Params + // 产品ID + _clientId string + // 授权码 + _authCode string +} + +// 初始化AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIRequest对象 +func NewAlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetRequest() *AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIRequest{ + return &AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.tmallgenie.auth.device.withshort.qrcode.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ClientId Setter +// 产品ID +func (r *AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIRequest) SetClientId(_clientId string) error { + r._clientId = _clientId + r.Set("client_id", _clientId) + return nil +} + +// ClientId Getter +func (r AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIRequest) GetClientId() string { + return r._clientId +} +// AuthCode Setter +// 授权码 +func (r *AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIRequest) SetAuthCode(_authCode string) error { + r._authCode = _authCode + r.Set("auth_code", _authCode) + return nil +} + +// AuthCode Getter +func (r AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIRequest) GetAuthCode() string { + return r._authCode +} diff --git a/model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIResponse.go b/model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIResponse.go new file mode 100644 index 0000000000..7c3df72467 --- /dev/null +++ b/model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIResponse.go @@ -0,0 +1,31 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据安全简码查询二维码详细信息 API返回值 +alibaba.ailabs.tmallgenie.auth.device.withshort.qrcode.get + +根据安全简码查询二维码详细信息 +*/ +type AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIResponse struct { + model.CommonResponse + AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIResponseModel +} + +// 根据安全简码查询二维码详细信息 成功返回结果 +type AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_withshort_qrcode_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果码 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 二维码数据 + Result string `json:"result,omitempty" xml:"result,omitempty"` + // 结果描述 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetResponse.go b/model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetResponse.go deleted file mode 100644 index 7d363d8b39..0000000000 --- a/model/tmallgenie/AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据安全简码查询二维码详细信息 API返回值 -alibaba.ailabs.tmallgenie.auth.device.withshort.qrcode.get - -根据安全简码查询二维码详细信息 -*/ -type AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetAPIResponse struct { - model.CommonResponse - AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetResponse -} - -// 根据安全简码查询二维码详细信息 成功返回结果 -type AlibabaAilabsTmallgenieAuthDeviceWithshortQrcodeGetResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_tmallgenie_auth_device_withshort_qrcode_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果码 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 二维码数据 - Result string `json:"result,omitempty" xml:"result,omitempty"` - // 结果描述 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIRequest.go b/model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIRequest.go new file mode 100644 index 0000000000..ba1027b38d --- /dev/null +++ b/model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵 IoT 视频 SaaS 服务-江苏电信-云回看开通状态更新 API请求 +alibaba.aliyun.aicloud.iot.vision.saas.ctcc.jiangsu.cloud.watcher.status.update + +天猫精灵 IoT 视频 SaaS 服务-江苏电信-云回看开通状态更新 +*/ +type AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIRequest struct { + model.Params + // 设备唯一标识符 + _ctei string + // 设备对应的产品类型 + _devType string + // 一次请求的唯一标识符 + _seqId string + // 设备所属用户的账号信息 + _userAccount string +} + +// 初始化AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIRequest对象 +func NewAlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateRequest() *AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIRequest{ + return &AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.aliyun.aicloud.iot.vision.saas.ctcc.jiangsu.cloud.watcher.status.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Ctei Setter +// 设备唯一标识符 +func (r *AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIRequest) SetCtei(_ctei string) error { + r._ctei = _ctei + r.Set("ctei", _ctei) + return nil +} + +// Ctei Getter +func (r AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIRequest) GetCtei() string { + return r._ctei +} +// DevType Setter +// 设备对应的产品类型 +func (r *AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIRequest) SetDevType(_devType string) error { + r._devType = _devType + r.Set("dev_type", _devType) + return nil +} + +// DevType Getter +func (r AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIRequest) GetDevType() string { + return r._devType +} +// SeqId Setter +// 一次请求的唯一标识符 +func (r *AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIRequest) SetSeqId(_seqId string) error { + r._seqId = _seqId + r.Set("seq_id", _seqId) + return nil +} + +// SeqId Getter +func (r AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIRequest) GetSeqId() string { + return r._seqId +} +// UserAccount Setter +// 设备所属用户的账号信息 +func (r *AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIRequest) SetUserAccount(_userAccount string) error { + r._userAccount = _userAccount + r.Set("user_account", _userAccount) + return nil +} + +// UserAccount Getter +func (r AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIRequest) GetUserAccount() string { + return r._userAccount +} diff --git a/model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIResponse.go b/model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIResponse.go new file mode 100644 index 0000000000..dbf772149a --- /dev/null +++ b/model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIResponse.go @@ -0,0 +1,31 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵 IoT 视频 SaaS 服务-江苏电信-云回看开通状态更新 API返回值 +alibaba.aliyun.aicloud.iot.vision.saas.ctcc.jiangsu.cloud.watcher.status.update + +天猫精灵 IoT 视频 SaaS 服务-江苏电信-云回看开通状态更新 +*/ +type AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIResponse struct { + model.CommonResponse + AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIResponseModel +} + +// 天猫精灵 IoT 视频 SaaS 服务-江苏电信-云回看开通状态更新 成功返回结果 +type AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliyun_aicloud_iot_vision_saas_ctcc_jiangsu_cloud_watcher_status_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码。200 表示成功 + RspCode int64 `json:"rsp_code,omitempty" xml:"rsp_code,omitempty"` + // 一次请求的唯一标识符,和请求中的 seq_id 对齐 + SeqId string `json:"seq_id,omitempty" xml:"seq_id,omitempty"` + // 错误信息。success 表示成功 + RspMsg string `json:"rsp_msg,omitempty" xml:"rsp_msg,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateResponse.go b/model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateResponse.go deleted file mode 100644 index 8385c50fcc..0000000000 --- a/model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵 IoT 视频 SaaS 服务-江苏电信-云回看开通状态更新 API返回值 -alibaba.aliyun.aicloud.iot.vision.saas.ctcc.jiangsu.cloud.watcher.status.update - -天猫精灵 IoT 视频 SaaS 服务-江苏电信-云回看开通状态更新 -*/ -type AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateAPIResponse struct { - model.CommonResponse - AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateResponse -} - -// 天猫精灵 IoT 视频 SaaS 服务-江苏电信-云回看开通状态更新 成功返回结果 -type AlibabaAliyunAicloudIotVisionSaasCtccJiangsuCloudWatcherStatusUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_aliyun_aicloud_iot_vision_saas_ctcc_jiangsu_cloud_watcher_status_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码。200 表示成功 - RspCode int64 `json:"rsp_code,omitempty" xml:"rsp_code,omitempty"` - // 一次请求的唯一标识符,和请求中的 seq_id 对齐 - SeqId string `json:"seq_id,omitempty" xml:"seq_id,omitempty"` - // 错误信息。success 表示成功 - RspMsg string `json:"rsp_msg,omitempty" xml:"rsp_msg,omitempty"` -} diff --git a/model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIRequest.go b/model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIRequest.go new file mode 100644 index 0000000000..e1c488fda8 --- /dev/null +++ b/model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵 IoT 视频 SaaS 服务-江苏电信-appKeySecret 更新 API请求 +alibaba.aliyun.aicloud.iot.vision.saas.ctcc.jiangsu.key.secret.update + +天猫精灵 IoT 视频 SaaS 服务-江苏电信-appKeySecret 更新 +*/ +type AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIRequest struct { + model.Params + // 一次请求的唯一标识符 + _seqId string + // 新的 key + _secret string +} + +// 初始化AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIRequest对象 +func NewAlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateRequest() *AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIRequest{ + return &AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.aliyun.aicloud.iot.vision.saas.ctcc.jiangsu.key.secret.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SeqId Setter +// 一次请求的唯一标识符 +func (r *AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIRequest) SetSeqId(_seqId string) error { + r._seqId = _seqId + r.Set("seq_id", _seqId) + return nil +} + +// SeqId Getter +func (r AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIRequest) GetSeqId() string { + return r._seqId +} +// Secret Setter +// 新的 key +func (r *AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIRequest) SetSecret(_secret string) error { + r._secret = _secret + r.Set("secret", _secret) + return nil +} + +// Secret Getter +func (r AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIRequest) GetSecret() string { + return r._secret +} diff --git a/model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIResponse.go b/model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIResponse.go new file mode 100644 index 0000000000..4d8cdb7d01 --- /dev/null +++ b/model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIResponse.go @@ -0,0 +1,31 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵 IoT 视频 SaaS 服务-江苏电信-appKeySecret 更新 API返回值 +alibaba.aliyun.aicloud.iot.vision.saas.ctcc.jiangsu.key.secret.update + +天猫精灵 IoT 视频 SaaS 服务-江苏电信-appKeySecret 更新 +*/ +type AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIResponse struct { + model.CommonResponse + AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIResponseModel +} + +// 天猫精灵 IoT 视频 SaaS 服务-江苏电信-appKeySecret 更新 成功返回结果 +type AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliyun_aicloud_iot_vision_saas_ctcc_jiangsu_key_secret_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码。200 表示成功 + RspCode int64 `json:"rsp_code,omitempty" xml:"rsp_code,omitempty"` + // 一次请求的唯一标识符,和请求中的 seq_id 对齐 + SeqId string `json:"seq_id,omitempty" xml:"seq_id,omitempty"` + // 错误信息。success 表示成功 + RspMsg string `json:"rsp_msg,omitempty" xml:"rsp_msg,omitempty"` +} diff --git a/model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateResponse.go b/model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateResponse.go deleted file mode 100644 index 2d93b76cda..0000000000 --- a/model/tmallgenie/AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵 IoT 视频 SaaS 服务-江苏电信-appKeySecret 更新 API返回值 -alibaba.aliyun.aicloud.iot.vision.saas.ctcc.jiangsu.key.secret.update - -天猫精灵 IoT 视频 SaaS 服务-江苏电信-appKeySecret 更新 -*/ -type AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateAPIResponse struct { - model.CommonResponse - AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateResponse -} - -// 天猫精灵 IoT 视频 SaaS 服务-江苏电信-appKeySecret 更新 成功返回结果 -type AlibabaAliyunAicloudIotVisionSaasCtccJiangsuKeySecretUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_aliyun_aicloud_iot_vision_saas_ctcc_jiangsu_key_secret_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码。200 表示成功 - RspCode int64 `json:"rsp_code,omitempty" xml:"rsp_code,omitempty"` - // 一次请求的唯一标识符,和请求中的 seq_id 对齐 - SeqId string `json:"seq_id,omitempty" xml:"seq_id,omitempty"` - // 错误信息。success 表示成功 - RspMsg string `json:"rsp_msg,omitempty" xml:"rsp_msg,omitempty"` -} diff --git a/model/tmallgenie/AlibabaIotDeviceCorpusGetAPIRequest.go b/model/tmallgenie/AlibabaIotDeviceCorpusGetAPIRequest.go new file mode 100644 index 0000000000..222627c77d --- /dev/null +++ b/model/tmallgenie/AlibabaIotDeviceCorpusGetAPIRequest.go @@ -0,0 +1,80 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +IoT设备支持语料获取 API请求 +alibaba.iot.device.corpus.get + +ISV通过该接口获取天猫精灵IoT设备支持控制或查询的语料 +*/ +type AlibabaIotDeviceCorpusGetAPIRequest struct { + model.Params + // 天猫精灵开放用户id + _userOpenId string + // 天猫精灵开放的client id + _clientId string + // iot设备id + _devId string +} + +// 初始化AlibabaIotDeviceCorpusGetAPIRequest对象 +func NewAlibabaIotDeviceCorpusGetRequest() *AlibabaIotDeviceCorpusGetAPIRequest{ + return &AlibabaIotDeviceCorpusGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIotDeviceCorpusGetAPIRequest) GetApiMethodName() string { + return "alibaba.iot.device.corpus.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIotDeviceCorpusGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserOpenId Setter +// 天猫精灵开放用户id +func (r *AlibabaIotDeviceCorpusGetAPIRequest) SetUserOpenId(_userOpenId string) error { + r._userOpenId = _userOpenId + r.Set("user_open_id", _userOpenId) + return nil +} + +// UserOpenId Getter +func (r AlibabaIotDeviceCorpusGetAPIRequest) GetUserOpenId() string { + return r._userOpenId +} +// ClientId Setter +// 天猫精灵开放的client id +func (r *AlibabaIotDeviceCorpusGetAPIRequest) SetClientId(_clientId string) error { + r._clientId = _clientId + r.Set("client_id", _clientId) + return nil +} + +// ClientId Getter +func (r AlibabaIotDeviceCorpusGetAPIRequest) GetClientId() string { + return r._clientId +} +// DevId Setter +// iot设备id +func (r *AlibabaIotDeviceCorpusGetAPIRequest) SetDevId(_devId string) error { + r._devId = _devId + r.Set("dev_id", _devId) + return nil +} + +// DevId Getter +func (r AlibabaIotDeviceCorpusGetAPIRequest) GetDevId() string { + return r._devId +} diff --git a/model/tmallgenie/AlibabaIotDeviceCorpusGetAPIResponse.go b/model/tmallgenie/AlibabaIotDeviceCorpusGetAPIResponse.go new file mode 100644 index 0000000000..0535edb663 --- /dev/null +++ b/model/tmallgenie/AlibabaIotDeviceCorpusGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +IoT设备支持语料获取 API返回值 +alibaba.iot.device.corpus.get + +ISV通过该接口获取天猫精灵IoT设备支持控制或查询的语料 +*/ +type AlibabaIotDeviceCorpusGetAPIResponse struct { + model.CommonResponse + AlibabaIotDeviceCorpusGetAPIResponseModel +} + +// IoT设备支持语料获取 成功返回结果 +type AlibabaIotDeviceCorpusGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_iot_device_corpus_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结构体 + RetValues []DeviceCorpusTopDto `json:"ret_values,omitempty" xml:"ret_values>device_corpus_top_dto,omitempty"` +} diff --git a/model/tmallgenie/AlibabaIotDeviceCorpusGetResponse.go b/model/tmallgenie/AlibabaIotDeviceCorpusGetResponse.go deleted file mode 100644 index 99e3bc8549..0000000000 --- a/model/tmallgenie/AlibabaIotDeviceCorpusGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -IoT设备支持语料获取 API返回值 -alibaba.iot.device.corpus.get - -ISV通过该接口获取天猫精灵IoT设备支持控制或查询的语料 -*/ -type AlibabaIotDeviceCorpusGetAPIResponse struct { - model.CommonResponse - AlibabaIotDeviceCorpusGetResponse -} - -// IoT设备支持语料获取 成功返回结果 -type AlibabaIotDeviceCorpusGetResponse struct { - XMLName xml.Name `xml:"alibaba_iot_device_corpus_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结构体 - RetValues []DeviceCorpusTopDto `json:"ret_values,omitempty" xml:"ret_values>device_corpus_top_dto,omitempty"` -} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopEarthquakeSendAPIRequest.go b/model/tmallgenie/TaobaoAilabAicloudTopEarthquakeSendAPIRequest.go new file mode 100644 index 0000000000..a28bdf193c --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopEarthquakeSendAPIRequest.go @@ -0,0 +1,108 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +地震局发送地震消息 API请求 +taobao.ailab.aicloud.top.earthquake.send + +地震局发送地震消息给天猫精灵,天猫精灵根据地震消息判断发送地震消息给危险区域用户 +*/ +type TaobaoAilabAicloudTopEarthquakeSendAPIRequest struct { + model.Params + // 扩展占位字段 + _ext string + // 签名 + _signature string + // 随机值 + _nonceStr string + // 时间戳 + _timestampStr string + // 地震信息 + _earthquakeInfo string +} + +// 初始化TaobaoAilabAicloudTopEarthquakeSendAPIRequest对象 +func NewTaobaoAilabAicloudTopEarthquakeSendRequest() *TaobaoAilabAicloudTopEarthquakeSendAPIRequest{ + return &TaobaoAilabAicloudTopEarthquakeSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopEarthquakeSendAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.earthquake.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopEarthquakeSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Ext Setter +// 扩展占位字段 +func (r *TaobaoAilabAicloudTopEarthquakeSendAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopEarthquakeSendAPIRequest) GetExt() string { + return r._ext +} +// Signature Setter +// 签名 +func (r *TaobaoAilabAicloudTopEarthquakeSendAPIRequest) SetSignature(_signature string) error { + r._signature = _signature + r.Set("signature", _signature) + return nil +} + +// Signature Getter +func (r TaobaoAilabAicloudTopEarthquakeSendAPIRequest) GetSignature() string { + return r._signature +} +// NonceStr Setter +// 随机值 +func (r *TaobaoAilabAicloudTopEarthquakeSendAPIRequest) SetNonceStr(_nonceStr string) error { + r._nonceStr = _nonceStr + r.Set("nonce_str", _nonceStr) + return nil +} + +// NonceStr Getter +func (r TaobaoAilabAicloudTopEarthquakeSendAPIRequest) GetNonceStr() string { + return r._nonceStr +} +// TimestampStr Setter +// 时间戳 +func (r *TaobaoAilabAicloudTopEarthquakeSendAPIRequest) SetTimestampStr(_timestampStr string) error { + r._timestampStr = _timestampStr + r.Set("timestamp_str", _timestampStr) + return nil +} + +// TimestampStr Getter +func (r TaobaoAilabAicloudTopEarthquakeSendAPIRequest) GetTimestampStr() string { + return r._timestampStr +} +// EarthquakeInfo Setter +// 地震信息 +func (r *TaobaoAilabAicloudTopEarthquakeSendAPIRequest) SetEarthquakeInfo(_earthquakeInfo string) error { + r._earthquakeInfo = _earthquakeInfo + r.Set("earthquake_info", _earthquakeInfo) + return nil +} + +// EarthquakeInfo Getter +func (r TaobaoAilabAicloudTopEarthquakeSendAPIRequest) GetEarthquakeInfo() string { + return r._earthquakeInfo +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopEarthquakeSendAPIResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopEarthquakeSendAPIResponse.go new file mode 100644 index 0000000000..3bc38fda6d --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopEarthquakeSendAPIResponse.go @@ -0,0 +1,33 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +地震局发送地震消息 API返回值 +taobao.ailab.aicloud.top.earthquake.send + +地震局发送地震消息给天猫精灵,天猫精灵根据地震消息判断发送地震消息给危险区域用户 +*/ +type TaobaoAilabAicloudTopEarthquakeSendAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopEarthquakeSendAPIResponseModel +} + +// 地震局发送地震消息 成功返回结果 +type TaobaoAilabAicloudTopEarthquakeSendAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_earthquake_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应结果 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 扩展字段 + ExtendInfo string `json:"extend_info,omitempty" xml:"extend_info,omitempty"` + // 响应错误信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 响应错误码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopEarthquakeSendResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopEarthquakeSendResponse.go deleted file mode 100644 index 72775eea84..0000000000 --- a/model/tmallgenie/TaobaoAilabAicloudTopEarthquakeSendResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -地震局发送地震消息 API返回值 -taobao.ailab.aicloud.top.earthquake.send - -地震局发送地震消息给天猫精灵,天猫精灵根据地震消息判断发送地震消息给危险区域用户 -*/ -type TaobaoAilabAicloudTopEarthquakeSendAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopEarthquakeSendResponse -} - -// 地震局发送地震消息 成功返回结果 -type TaobaoAilabAicloudTopEarthquakeSendResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_earthquake_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应结果 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 扩展字段 - ExtendInfo string `json:"extend_info,omitempty" xml:"extend_info,omitempty"` - // 响应错误信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 响应错误码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` -} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest.go new file mode 100644 index 0000000000..49eeb1135e --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest.go @@ -0,0 +1,108 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵闹钟创建 API请求 +taobao.ailab.aicloud.top.memo.alarm.create + +天猫精灵闹钟创建 +*/ +type TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest struct { + model.Params + // 扩展信息json段,用于存放APP类型,APP版本等等信息。 + _ext string + // schema + _schema string + // 企业用户ID + _userId string + // 手持设备ID + _utdId string + // 创建闹钟入参 + _paramCreateAlarmParam *CreateAlarmParam +} + +// 初始化TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest对象 +func NewTaobaoAilabAicloudTopMemoAlarmCreateRequest() *TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest{ + return &TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.memo.alarm.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Ext Setter +// 扩展信息json段,用于存放APP类型,APP版本等等信息。 +func (r *TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest) GetExt() string { + return r._ext +} +// Schema Setter +// schema +func (r *TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 企业用户ID +func (r *TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 手持设备ID +func (r *TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest) GetUtdId() string { + return r._utdId +} +// ParamCreateAlarmParam Setter +// 创建闹钟入参 +func (r *TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest) SetParamCreateAlarmParam(_paramCreateAlarmParam *CreateAlarmParam) error { + r._paramCreateAlarmParam = _paramCreateAlarmParam + r.Set("param_create_alarm_param", _paramCreateAlarmParam) + return nil +} + +// ParamCreateAlarmParam Getter +func (r TaobaoAilabAicloudTopMemoAlarmCreateAPIRequest) GetParamCreateAlarmParam() *CreateAlarmParam { + return r._paramCreateAlarmParam +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmCreateAPIResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmCreateAPIResponse.go new file mode 100644 index 0000000000..ccb61a969d --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmCreateAPIResponse.go @@ -0,0 +1,31 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵闹钟创建 API返回值 +taobao.ailab.aicloud.top.memo.alarm.create + +天猫精灵闹钟创建 +*/ +type TaobaoAilabAicloudTopMemoAlarmCreateAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopMemoAlarmCreateAPIResponseModel +} + +// 天猫精灵闹钟创建 成功返回结果 +type TaobaoAilabAicloudTopMemoAlarmCreateAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_memo_alarm_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 状态描述 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 闹钟ID + Result int64 `json:"result,omitempty" xml:"result,omitempty"` + // 状态码 + StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmCreateResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmCreateResponse.go deleted file mode 100644 index e2c7826767..0000000000 --- a/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmCreateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵闹钟创建 API返回值 -taobao.ailab.aicloud.top.memo.alarm.create - -天猫精灵闹钟创建 -*/ -type TaobaoAilabAicloudTopMemoAlarmCreateAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopMemoAlarmCreateResponse -} - -// 天猫精灵闹钟创建 成功返回结果 -type TaobaoAilabAicloudTopMemoAlarmCreateResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_memo_alarm_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 状态描述 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 闹钟ID - Result int64 `json:"result,omitempty" xml:"result,omitempty"` - // 状态码 - StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` -} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest.go new file mode 100644 index 0000000000..31480fd8b9 --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest.go @@ -0,0 +1,108 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵闹钟删除 API请求 +taobao.ailab.aicloud.top.memo.alarm.delete + +天猫精灵闹钟删除 +*/ +type TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest struct { + model.Params + // schema + _schema string + // 手持设备ID + _utdId string + // 扩展信息json段,用于存放APP类型,APP版本等等信息。 + _ext string + // 企业用户ID + _userId string + // 闹钟ID + _memoId int64 +} + +// 初始化TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest对象 +func NewTaobaoAilabAicloudTopMemoAlarmDeleteRequest() *TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest{ + return &TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.memo.alarm.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// schema +func (r *TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest) GetSchema() string { + return r._schema +} +// UtdId Setter +// 手持设备ID +func (r *TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息json段,用于存放APP类型,APP版本等等信息。 +func (r *TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest) GetExt() string { + return r._ext +} +// UserId Setter +// 企业用户ID +func (r *TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest) GetUserId() string { + return r._userId +} +// MemoId Setter +// 闹钟ID +func (r *TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest) SetMemoId(_memoId int64) error { + r._memoId = _memoId + r.Set("memo_id", _memoId) + return nil +} + +// MemoId Getter +func (r TaobaoAilabAicloudTopMemoAlarmDeleteAPIRequest) GetMemoId() int64 { + return r._memoId +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmDeleteAPIResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmDeleteAPIResponse.go new file mode 100644 index 0000000000..4316350fbb --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵闹钟删除 API返回值 +taobao.ailab.aicloud.top.memo.alarm.delete + +天猫精灵闹钟删除 +*/ +type TaobaoAilabAicloudTopMemoAlarmDeleteAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopMemoAlarmDeleteAPIResponseModel +} + +// 天猫精灵闹钟删除 成功返回结果 +type TaobaoAilabAicloudTopMemoAlarmDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_memo_alarm_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务的结果封装 + Result *TaobaoAilabAicloudTopMemoAlarmDeleteResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmDeleteResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmDeleteResponse.go deleted file mode 100644 index 94ab177e41..0000000000 --- a/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵闹钟删除 API返回值 -taobao.ailab.aicloud.top.memo.alarm.delete - -天猫精灵闹钟删除 -*/ -type TaobaoAilabAicloudTopMemoAlarmDeleteAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopMemoAlarmDeleteResponse -} - -// 天猫精灵闹钟删除 成功返回结果 -type TaobaoAilabAicloudTopMemoAlarmDeleteResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_memo_alarm_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务的结果封装 - Result *TaobaoAilabAicloudTopMemoAlarmDeleteResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmListAPIRequest.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmListAPIRequest.go new file mode 100644 index 0000000000..5a7d8e2900 --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmListAPIRequest.go @@ -0,0 +1,108 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵闹钟查询 API请求 +taobao.ailab.aicloud.top.memo.alarm.list + +查询天猫精灵用户设置的所有闹钟 +*/ +type TaobaoAilabAicloudTopMemoAlarmListAPIRequest struct { + model.Params + // schema + _schema string + // 企业用户ID + _userId string + // 手持设备ID + _utdId string + // 扩展信息json段,用于存放APP类型,APP版本等等信息。 + _ext string + // 闹钟ID + _memoId int64 +} + +// 初始化TaobaoAilabAicloudTopMemoAlarmListAPIRequest对象 +func NewTaobaoAilabAicloudTopMemoAlarmListRequest() *TaobaoAilabAicloudTopMemoAlarmListAPIRequest{ + return &TaobaoAilabAicloudTopMemoAlarmListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopMemoAlarmListAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.memo.alarm.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopMemoAlarmListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// schema +func (r *TaobaoAilabAicloudTopMemoAlarmListAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopMemoAlarmListAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 企业用户ID +func (r *TaobaoAilabAicloudTopMemoAlarmListAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopMemoAlarmListAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 手持设备ID +func (r *TaobaoAilabAicloudTopMemoAlarmListAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopMemoAlarmListAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息json段,用于存放APP类型,APP版本等等信息。 +func (r *TaobaoAilabAicloudTopMemoAlarmListAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopMemoAlarmListAPIRequest) GetExt() string { + return r._ext +} +// MemoId Setter +// 闹钟ID +func (r *TaobaoAilabAicloudTopMemoAlarmListAPIRequest) SetMemoId(_memoId int64) error { + r._memoId = _memoId + r.Set("memo_id", _memoId) + return nil +} + +// MemoId Getter +func (r TaobaoAilabAicloudTopMemoAlarmListAPIRequest) GetMemoId() int64 { + return r._memoId +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmListAPIResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmListAPIResponse.go new file mode 100644 index 0000000000..10ec081816 --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmListAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵闹钟查询 API返回值 +taobao.ailab.aicloud.top.memo.alarm.list + +查询天猫精灵用户设置的所有闹钟 +*/ +type TaobaoAilabAicloudTopMemoAlarmListAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopMemoAlarmListAPIResponseModel +} + +// 天猫精灵闹钟查询 成功返回结果 +type TaobaoAilabAicloudTopMemoAlarmListAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_memo_alarm_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务的结果封装 + Result *TaobaoAilabAicloudTopMemoAlarmListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmListResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmListResponse.go deleted file mode 100644 index 483ae63d34..0000000000 --- a/model/tmallgenie/TaobaoAilabAicloudTopMemoAlarmListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵闹钟查询 API返回值 -taobao.ailab.aicloud.top.memo.alarm.list - -查询天猫精灵用户设置的所有闹钟 -*/ -type TaobaoAilabAicloudTopMemoAlarmListAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopMemoAlarmListResponse -} - -// 天猫精灵闹钟查询 成功返回结果 -type TaobaoAilabAicloudTopMemoAlarmListResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_memo_alarm_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务的结果封装 - Result *TaobaoAilabAicloudTopMemoAlarmListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest.go new file mode 100644 index 0000000000..46ef77bcb5 --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest.go @@ -0,0 +1,108 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵会议删除 API请求 +taobao.ailab.aicloud.top.memo.meeting.delete + +天猫精灵会议删除 +*/ +type TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest struct { + model.Params + // schema + _schema string + // 企业用户ID + _userId string + // 手持设备ID + _utdId string + // 扩展信息json段,用于存放APP类型,APP版本等等信息。 + _ext string + // 会议ID + _memoId int64 +} + +// 初始化TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest对象 +func NewTaobaoAilabAicloudTopMemoMeetingDeleteRequest() *TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest{ + return &TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.memo.meeting.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// schema +func (r *TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 企业用户ID +func (r *TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 手持设备ID +func (r *TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息json段,用于存放APP类型,APP版本等等信息。 +func (r *TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest) GetExt() string { + return r._ext +} +// MemoId Setter +// 会议ID +func (r *TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest) SetMemoId(_memoId int64) error { + r._memoId = _memoId + r.Set("memo_id", _memoId) + return nil +} + +// MemoId Getter +func (r TaobaoAilabAicloudTopMemoMeetingDeleteAPIRequest) GetMemoId() int64 { + return r._memoId +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingDeleteAPIResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingDeleteAPIResponse.go new file mode 100644 index 0000000000..8455e3245d --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵会议删除 API返回值 +taobao.ailab.aicloud.top.memo.meeting.delete + +天猫精灵会议删除 +*/ +type TaobaoAilabAicloudTopMemoMeetingDeleteAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopMemoMeetingDeleteAPIResponseModel +} + +// 天猫精灵会议删除 成功返回结果 +type TaobaoAilabAicloudTopMemoMeetingDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_memo_meeting_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务的结果封装 + Result *TaobaoAilabAicloudTopMemoMeetingDeleteResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingDeleteResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingDeleteResponse.go deleted file mode 100644 index 0610c3213b..0000000000 --- a/model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵会议删除 API返回值 -taobao.ailab.aicloud.top.memo.meeting.delete - -天猫精灵会议删除 -*/ -type TaobaoAilabAicloudTopMemoMeetingDeleteAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopMemoMeetingDeleteResponse -} - -// 天猫精灵会议删除 成功返回结果 -type TaobaoAilabAicloudTopMemoMeetingDeleteResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_memo_meeting_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务的结果封装 - Result *TaobaoAilabAicloudTopMemoMeetingDeleteResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingListAPIRequest.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingListAPIRequest.go new file mode 100644 index 0000000000..35f4678000 --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingListAPIRequest.go @@ -0,0 +1,108 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵会议查询 API请求 +taobao.ailab.aicloud.top.memo.meeting.list + +查询天猫精灵用户设置的所有会议 +*/ +type TaobaoAilabAicloudTopMemoMeetingListAPIRequest struct { + model.Params + // schema + _schema string + // 企业用户ID + _userId string + // 手持设备ID + _utdId string + // 扩展信息json段,用于存放APP类型,APP版本等等信息。 + _ext string + // 闹钟ID + _memoId int64 +} + +// 初始化TaobaoAilabAicloudTopMemoMeetingListAPIRequest对象 +func NewTaobaoAilabAicloudTopMemoMeetingListRequest() *TaobaoAilabAicloudTopMemoMeetingListAPIRequest{ + return &TaobaoAilabAicloudTopMemoMeetingListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopMemoMeetingListAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.memo.meeting.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopMemoMeetingListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// schema +func (r *TaobaoAilabAicloudTopMemoMeetingListAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopMemoMeetingListAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 企业用户ID +func (r *TaobaoAilabAicloudTopMemoMeetingListAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopMemoMeetingListAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 手持设备ID +func (r *TaobaoAilabAicloudTopMemoMeetingListAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopMemoMeetingListAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息json段,用于存放APP类型,APP版本等等信息。 +func (r *TaobaoAilabAicloudTopMemoMeetingListAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopMemoMeetingListAPIRequest) GetExt() string { + return r._ext +} +// MemoId Setter +// 闹钟ID +func (r *TaobaoAilabAicloudTopMemoMeetingListAPIRequest) SetMemoId(_memoId int64) error { + r._memoId = _memoId + r.Set("memo_id", _memoId) + return nil +} + +// MemoId Getter +func (r TaobaoAilabAicloudTopMemoMeetingListAPIRequest) GetMemoId() int64 { + return r._memoId +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingListAPIResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingListAPIResponse.go new file mode 100644 index 0000000000..7bf1c67696 --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingListAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵会议查询 API返回值 +taobao.ailab.aicloud.top.memo.meeting.list + +查询天猫精灵用户设置的所有会议 +*/ +type TaobaoAilabAicloudTopMemoMeetingListAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopMemoMeetingListAPIResponseModel +} + +// 天猫精灵会议查询 成功返回结果 +type TaobaoAilabAicloudTopMemoMeetingListAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_memo_meeting_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务的结果封装 + Result *TaobaoAilabAicloudTopMemoMeetingListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingListResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingListResponse.go deleted file mode 100644 index bcfd86d399..0000000000 --- a/model/tmallgenie/TaobaoAilabAicloudTopMemoMeetingListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵会议查询 API返回值 -taobao.ailab.aicloud.top.memo.meeting.list - -查询天猫精灵用户设置的所有会议 -*/ -type TaobaoAilabAicloudTopMemoMeetingListAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopMemoMeetingListResponse -} - -// 天猫精灵会议查询 成功返回结果 -type TaobaoAilabAicloudTopMemoMeetingListResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_memo_meeting_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务的结果封装 - Result *TaobaoAilabAicloudTopMemoMeetingListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest.go new file mode 100644 index 0000000000..346def06e8 --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest.go @@ -0,0 +1,108 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵备忘录删除 API请求 +taobao.ailab.aicloud.top.memo.note.delete + +删除天猫精灵用户设置的备忘录 +*/ +type TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest struct { + model.Params + // schema + _schema string + // 企业用户ID + _userId string + // 手持设备ID + _utdId string + // 扩展信息json段,用于存放APP类型,APP版本等等信息。 + _ext string + // 备忘录ID + _memoId int64 +} + +// 初始化TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest对象 +func NewTaobaoAilabAicloudTopMemoNoteDeleteRequest() *TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest{ + return &TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.memo.note.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// schema +func (r *TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 企业用户ID +func (r *TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 手持设备ID +func (r *TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息json段,用于存放APP类型,APP版本等等信息。 +func (r *TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest) GetExt() string { + return r._ext +} +// MemoId Setter +// 备忘录ID +func (r *TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest) SetMemoId(_memoId int64) error { + r._memoId = _memoId + r.Set("memo_id", _memoId) + return nil +} + +// MemoId Getter +func (r TaobaoAilabAicloudTopMemoNoteDeleteAPIRequest) GetMemoId() int64 { + return r._memoId +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoNoteDeleteAPIResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoNoteDeleteAPIResponse.go new file mode 100644 index 0000000000..5f32307eb8 --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMemoNoteDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵备忘录删除 API返回值 +taobao.ailab.aicloud.top.memo.note.delete + +删除天猫精灵用户设置的备忘录 +*/ +type TaobaoAilabAicloudTopMemoNoteDeleteAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopMemoNoteDeleteAPIResponseModel +} + +// 天猫精灵备忘录删除 成功返回结果 +type TaobaoAilabAicloudTopMemoNoteDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_memo_note_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务的结果封装 + Result *TaobaoAilabAicloudTopMemoNoteDeleteResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoNoteDeleteResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoNoteDeleteResponse.go deleted file mode 100644 index 193209eb85..0000000000 --- a/model/tmallgenie/TaobaoAilabAicloudTopMemoNoteDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵备忘录删除 API返回值 -taobao.ailab.aicloud.top.memo.note.delete - -删除天猫精灵用户设置的备忘录 -*/ -type TaobaoAilabAicloudTopMemoNoteDeleteAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopMemoNoteDeleteResponse -} - -// 天猫精灵备忘录删除 成功返回结果 -type TaobaoAilabAicloudTopMemoNoteDeleteResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_memo_note_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务的结果封装 - Result *TaobaoAilabAicloudTopMemoNoteDeleteResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoNoteListAPIRequest.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoNoteListAPIRequest.go new file mode 100644 index 0000000000..c079df56cf --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMemoNoteListAPIRequest.go @@ -0,0 +1,108 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询天猫精灵用户设置的所有备忘录 API请求 +taobao.ailab.aicloud.top.memo.note.list + +查询天猫精灵用户设置的所有备忘录 +*/ +type TaobaoAilabAicloudTopMemoNoteListAPIRequest struct { + model.Params + // schema + _schema string + // 企业用户ID + _userId string + // 手持设备ID + _utdId string + // 扩展信息json段,用于存放APP类型,APP版本等等信息。 + _ext string + // 备忘录ID + _memoId int64 +} + +// 初始化TaobaoAilabAicloudTopMemoNoteListAPIRequest对象 +func NewTaobaoAilabAicloudTopMemoNoteListRequest() *TaobaoAilabAicloudTopMemoNoteListAPIRequest{ + return &TaobaoAilabAicloudTopMemoNoteListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopMemoNoteListAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.memo.note.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopMemoNoteListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// schema +func (r *TaobaoAilabAicloudTopMemoNoteListAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopMemoNoteListAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 企业用户ID +func (r *TaobaoAilabAicloudTopMemoNoteListAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopMemoNoteListAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 手持设备ID +func (r *TaobaoAilabAicloudTopMemoNoteListAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopMemoNoteListAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息json段,用于存放APP类型,APP版本等等信息。 +func (r *TaobaoAilabAicloudTopMemoNoteListAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopMemoNoteListAPIRequest) GetExt() string { + return r._ext +} +// MemoId Setter +// 备忘录ID +func (r *TaobaoAilabAicloudTopMemoNoteListAPIRequest) SetMemoId(_memoId int64) error { + r._memoId = _memoId + r.Set("memo_id", _memoId) + return nil +} + +// MemoId Getter +func (r TaobaoAilabAicloudTopMemoNoteListAPIRequest) GetMemoId() int64 { + return r._memoId +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoNoteListAPIResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoNoteListAPIResponse.go new file mode 100644 index 0000000000..afdf90a8a5 --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMemoNoteListAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询天猫精灵用户设置的所有备忘录 API返回值 +taobao.ailab.aicloud.top.memo.note.list + +查询天猫精灵用户设置的所有备忘录 +*/ +type TaobaoAilabAicloudTopMemoNoteListAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopMemoNoteListAPIResponseModel +} + +// 查询天猫精灵用户设置的所有备忘录 成功返回结果 +type TaobaoAilabAicloudTopMemoNoteListAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_memo_note_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务的结果封装 + Result *TaobaoAilabAicloudTopMemoNoteListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMemoNoteListResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMemoNoteListResponse.go deleted file mode 100644 index bac0259d03..0000000000 --- a/model/tmallgenie/TaobaoAilabAicloudTopMemoNoteListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询天猫精灵用户设置的所有备忘录 API返回值 -taobao.ailab.aicloud.top.memo.note.list - -查询天猫精灵用户设置的所有备忘录 -*/ -type TaobaoAilabAicloudTopMemoNoteListAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopMemoNoteListResponse -} - -// 查询天猫精灵用户设置的所有备忘录 成功返回结果 -type TaobaoAilabAicloudTopMemoNoteListResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_memo_note_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务的结果封装 - Result *TaobaoAilabAicloudTopMemoNoteListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMessagePushAPIRequest.go b/model/tmallgenie/TaobaoAilabAicloudTopMessagePushAPIRequest.go new file mode 100644 index 0000000000..75d277bcdf --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMessagePushAPIRequest.go @@ -0,0 +1,66 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵消息中心广播推送消息接口 API请求 +taobao.ailab.aicloud.top.message.push + +天猫精灵运营平台消息能力开放广播接口,主要开放给b端用户,用户可调用接口进行广播推送,将消息推送到天猫精灵设备或者天猫精灵APP中。 +*/ +type TaobaoAilabAicloudTopMessagePushAPIRequest struct { + model.Params + // 消息推送请求 + _messageBroadcastRequest *MessageBroadcastRequest + // 当前用户信息 + _userInfoContext *OpsRequestUserInfoContext +} + +// 初始化TaobaoAilabAicloudTopMessagePushAPIRequest对象 +func NewTaobaoAilabAicloudTopMessagePushRequest() *TaobaoAilabAicloudTopMessagePushAPIRequest{ + return &TaobaoAilabAicloudTopMessagePushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopMessagePushAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.message.push" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopMessagePushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MessageBroadcastRequest Setter +// 消息推送请求 +func (r *TaobaoAilabAicloudTopMessagePushAPIRequest) SetMessageBroadcastRequest(_messageBroadcastRequest *MessageBroadcastRequest) error { + r._messageBroadcastRequest = _messageBroadcastRequest + r.Set("message_broadcast_request", _messageBroadcastRequest) + return nil +} + +// MessageBroadcastRequest Getter +func (r TaobaoAilabAicloudTopMessagePushAPIRequest) GetMessageBroadcastRequest() *MessageBroadcastRequest { + return r._messageBroadcastRequest +} +// UserInfoContext Setter +// 当前用户信息 +func (r *TaobaoAilabAicloudTopMessagePushAPIRequest) SetUserInfoContext(_userInfoContext *OpsRequestUserInfoContext) error { + r._userInfoContext = _userInfoContext + r.Set("user_info_context", _userInfoContext) + return nil +} + +// UserInfoContext Getter +func (r TaobaoAilabAicloudTopMessagePushAPIRequest) GetUserInfoContext() *OpsRequestUserInfoContext { + return r._userInfoContext +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMessagePushAPIResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMessagePushAPIResponse.go new file mode 100644 index 0000000000..7cc1105ac9 --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMessagePushAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵消息中心广播推送消息接口 API返回值 +taobao.ailab.aicloud.top.message.push + +天猫精灵运营平台消息能力开放广播接口,主要开放给b端用户,用户可调用接口进行广播推送,将消息推送到天猫精灵设备或者天猫精灵APP中。 +*/ +type TaobaoAilabAicloudTopMessagePushAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopMessagePushAPIResponseModel +} + +// 天猫精灵消息中心广播推送消息接口 成功返回结果 +type TaobaoAilabAicloudTopMessagePushAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_message_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *OpsCommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMessagePushResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMessagePushResponse.go deleted file mode 100644 index 4941733fd7..0000000000 --- a/model/tmallgenie/TaobaoAilabAicloudTopMessagePushResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵消息中心广播推送消息接口 API返回值 -taobao.ailab.aicloud.top.message.push - -天猫精灵运营平台消息能力开放广播接口,主要开放给b端用户,用户可调用接口进行广播推送,将消息推送到天猫精灵设备或者天猫精灵APP中。 -*/ -type TaobaoAilabAicloudTopMessagePushAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopMessagePushResponse -} - -// 天猫精灵消息中心广播推送消息接口 成功返回结果 -type TaobaoAilabAicloudTopMessagePushResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_message_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *OpsCommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMessagePushUnicastAPIRequest.go b/model/tmallgenie/TaobaoAilabAicloudTopMessagePushUnicastAPIRequest.go new file mode 100644 index 0000000000..23fda8900b --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMessagePushUnicastAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵消息中心单播推送消息接口 API请求 +taobao.ailab.aicloud.top.message.push.unicast + +天猫精灵运营平台消息能力开放广播接口,主要开放给b端用户,用户可调用接口进行广播推送,将消息推送到天猫精灵设备或者天猫精灵APP中。 +*/ +type TaobaoAilabAicloudTopMessagePushUnicastAPIRequest struct { + model.Params + // 消息推送单播请求体 + _messageUnicastRequest *MessageUnicastRequest +} + +// 初始化TaobaoAilabAicloudTopMessagePushUnicastAPIRequest对象 +func NewTaobaoAilabAicloudTopMessagePushUnicastRequest() *TaobaoAilabAicloudTopMessagePushUnicastAPIRequest{ + return &TaobaoAilabAicloudTopMessagePushUnicastAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopMessagePushUnicastAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.message.push.unicast" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopMessagePushUnicastAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MessageUnicastRequest Setter +// 消息推送单播请求体 +func (r *TaobaoAilabAicloudTopMessagePushUnicastAPIRequest) SetMessageUnicastRequest(_messageUnicastRequest *MessageUnicastRequest) error { + r._messageUnicastRequest = _messageUnicastRequest + r.Set("message_unicast_request", _messageUnicastRequest) + return nil +} + +// MessageUnicastRequest Getter +func (r TaobaoAilabAicloudTopMessagePushUnicastAPIRequest) GetMessageUnicastRequest() *MessageUnicastRequest { + return r._messageUnicastRequest +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMessagePushUnicastAPIResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMessagePushUnicastAPIResponse.go new file mode 100644 index 0000000000..688393c297 --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMessagePushUnicastAPIResponse.go @@ -0,0 +1,31 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵消息中心单播推送消息接口 API返回值 +taobao.ailab.aicloud.top.message.push.unicast + +天猫精灵运营平台消息能力开放广播接口,主要开放给b端用户,用户可调用接口进行广播推送,将消息推送到天猫精灵设备或者天猫精灵APP中。 +*/ +type TaobaoAilabAicloudTopMessagePushUnicastAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopMessagePushUnicastAPIResponseModel +} + +// 天猫精灵消息中心单播推送消息接口 成功返回结果 +type TaobaoAilabAicloudTopMessagePushUnicastAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_message_push_unicast_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 本次调用trace + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 调用结果code 0:成功 非0:失败 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 调用结果描述 + RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMessagePushUnicastResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMessagePushUnicastResponse.go deleted file mode 100644 index 0c3dcbabe6..0000000000 --- a/model/tmallgenie/TaobaoAilabAicloudTopMessagePushUnicastResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵消息中心单播推送消息接口 API返回值 -taobao.ailab.aicloud.top.message.push.unicast - -天猫精灵运营平台消息能力开放广播接口,主要开放给b端用户,用户可调用接口进行广播推送,将消息推送到天猫精灵设备或者天猫精灵APP中。 -*/ -type TaobaoAilabAicloudTopMessagePushUnicastAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopMessagePushUnicastResponse -} - -// 天猫精灵消息中心单播推送消息接口 成功返回结果 -type TaobaoAilabAicloudTopMessagePushUnicastResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_message_push_unicast_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 本次调用trace - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 调用结果code 0:成功 非0:失败 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 调用结果描述 - RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` -} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMessageSendaudioAPIRequest.go b/model/tmallgenie/TaobaoAilabAicloudTopMessageSendaudioAPIRequest.go new file mode 100644 index 0000000000..ed97a90e6c --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMessageSendaudioAPIRequest.go @@ -0,0 +1,108 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发送语音留言 API请求 +taobao.ailab.aicloud.top.message.sendaudio + +将语音的二进制byte[]通过TOP接口发送保存 +*/ +type TaobaoAilabAicloudTopMessageSendaudioAPIRequest struct { + model.Params + // 账户体系隔离 + _schema string + // 用户ID,此处传入第三方账户体系的用户 id + _userId string + // 用户设备唯一识别码,长度限制32以内, 建议使用系统接口获取deviceid, 然后做一定的混淆处理来作为此输入参数 + _utdId string + // 扩展信息,用于存放APP类型等 + _ext string + // 语音的二进制 + _message *model.File +} + +// 初始化TaobaoAilabAicloudTopMessageSendaudioAPIRequest对象 +func NewTaobaoAilabAicloudTopMessageSendaudioRequest() *TaobaoAilabAicloudTopMessageSendaudioAPIRequest{ + return &TaobaoAilabAicloudTopMessageSendaudioAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopMessageSendaudioAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.message.sendaudio" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopMessageSendaudioAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// 账户体系隔离 +func (r *TaobaoAilabAicloudTopMessageSendaudioAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopMessageSendaudioAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户 id +func (r *TaobaoAilabAicloudTopMessageSendaudioAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopMessageSendaudioAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内, 建议使用系统接口获取deviceid, 然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopMessageSendaudioAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopMessageSendaudioAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopMessageSendaudioAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopMessageSendaudioAPIRequest) GetExt() string { + return r._ext +} +// Message Setter +// 语音的二进制 +func (r *TaobaoAilabAicloudTopMessageSendaudioAPIRequest) SetMessage(_message *model.File) error { + r._message = _message + r.Set("message", _message) + return nil +} + +// Message Getter +func (r TaobaoAilabAicloudTopMessageSendaudioAPIRequest) GetMessage() *model.File { + return r._message +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMessageSendaudioAPIResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMessageSendaudioAPIResponse.go new file mode 100644 index 0000000000..50b90c0085 --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMessageSendaudioAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发送语音留言 API返回值 +taobao.ailab.aicloud.top.message.sendaudio + +将语音的二进制byte[]通过TOP接口发送保存 +*/ +type TaobaoAilabAicloudTopMessageSendaudioAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopMessageSendaudioAPIResponseModel +} + +// 发送语音留言 成功返回结果 +type TaobaoAilabAicloudTopMessageSendaudioAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_message_sendaudio_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMessageSendaudioResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMessageSendaudioResponse.go deleted file mode 100644 index c31a41a63c..0000000000 --- a/model/tmallgenie/TaobaoAilabAicloudTopMessageSendaudioResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发送语音留言 API返回值 -taobao.ailab.aicloud.top.message.sendaudio - -将语音的二进制byte[]通过TOP接口发送保存 -*/ -type TaobaoAilabAicloudTopMessageSendaudioAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopMessageSendaudioResponse -} - -// 发送语音留言 成功返回结果 -type TaobaoAilabAicloudTopMessageSendaudioResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_message_sendaudio_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMessageSendtextAPIRequest.go b/model/tmallgenie/TaobaoAilabAicloudTopMessageSendtextAPIRequest.go new file mode 100644 index 0000000000..63f1fd61c3 --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMessageSendtextAPIRequest.go @@ -0,0 +1,108 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +故事机发送文本留言 API请求 +taobao.ailab.aicloud.top.message.sendtext + +故事机文本留言 +*/ +type TaobaoAilabAicloudTopMessageSendtextAPIRequest struct { + model.Params + // 账户体系隔离 + _schema string + // 用户ID,此处传入第三方账户体系的用户 id + _userId string + // 用户设备唯一识别码,长度限制32以内, 建议使用系统接口获取deviceid, 然后做一定的混淆处理来作为此输入参数 + _utdId string + // 扩展信息,用于存放APP类型等 + _ext string + // 留言输入的文本 + _text string +} + +// 初始化TaobaoAilabAicloudTopMessageSendtextAPIRequest对象 +func NewTaobaoAilabAicloudTopMessageSendtextRequest() *TaobaoAilabAicloudTopMessageSendtextAPIRequest{ + return &TaobaoAilabAicloudTopMessageSendtextAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopMessageSendtextAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.message.sendtext" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopMessageSendtextAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// 账户体系隔离 +func (r *TaobaoAilabAicloudTopMessageSendtextAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopMessageSendtextAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户 id +func (r *TaobaoAilabAicloudTopMessageSendtextAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopMessageSendtextAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内, 建议使用系统接口获取deviceid, 然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopMessageSendtextAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopMessageSendtextAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopMessageSendtextAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopMessageSendtextAPIRequest) GetExt() string { + return r._ext +} +// Text Setter +// 留言输入的文本 +func (r *TaobaoAilabAicloudTopMessageSendtextAPIRequest) SetText(_text string) error { + r._text = _text + r.Set("text", _text) + return nil +} + +// Text Getter +func (r TaobaoAilabAicloudTopMessageSendtextAPIRequest) GetText() string { + return r._text +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMessageSendtextAPIResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMessageSendtextAPIResponse.go new file mode 100644 index 0000000000..c08e97c722 --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMessageSendtextAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +故事机发送文本留言 API返回值 +taobao.ailab.aicloud.top.message.sendtext + +故事机文本留言 +*/ +type TaobaoAilabAicloudTopMessageSendtextAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopMessageSendtextAPIResponseModel +} + +// 故事机发送文本留言 成功返回结果 +type TaobaoAilabAicloudTopMessageSendtextAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_message_sendtext_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMessageSendtextResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMessageSendtextResponse.go deleted file mode 100644 index 24586bff93..0000000000 --- a/model/tmallgenie/TaobaoAilabAicloudTopMessageSendtextResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -故事机发送文本留言 API返回值 -taobao.ailab.aicloud.top.message.sendtext - -故事机文本留言 -*/ -type TaobaoAilabAicloudTopMessageSendtextAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopMessageSendtextResponse -} - -// 故事机发送文本留言 成功返回结果 -type TaobaoAilabAicloudTopMessageSendtextResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_message_sendtext_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMusicSearchAPIRequest.go b/model/tmallgenie/TaobaoAilabAicloudTopMusicSearchAPIRequest.go new file mode 100644 index 0000000000..f3bcf5ed3b --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMusicSearchAPIRequest.go @@ -0,0 +1,94 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +对外音乐搜索服务 API请求 +taobao.ailab.aicloud.top.music.search + +供厂商获取音乐列表 +*/ +type TaobaoAilabAicloudTopMusicSearchAPIRequest struct { + model.Params + // botId值 + _botId int64 + // 筛选条件,目前只支持name、type和style + _params string + // 分页页码 + _pageNo int64 + // 分页页大小 + _pageSize int64 +} + +// 初始化TaobaoAilabAicloudTopMusicSearchAPIRequest对象 +func NewTaobaoAilabAicloudTopMusicSearchRequest() *TaobaoAilabAicloudTopMusicSearchAPIRequest{ + return &TaobaoAilabAicloudTopMusicSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopMusicSearchAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.music.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopMusicSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BotId Setter +// botId值 +func (r *TaobaoAilabAicloudTopMusicSearchAPIRequest) SetBotId(_botId int64) error { + r._botId = _botId + r.Set("bot_id", _botId) + return nil +} + +// BotId Getter +func (r TaobaoAilabAicloudTopMusicSearchAPIRequest) GetBotId() int64 { + return r._botId +} +// Params Setter +// 筛选条件,目前只支持name、type和style +func (r *TaobaoAilabAicloudTopMusicSearchAPIRequest) SetParams(_params string) error { + r._params = _params + r.Set("params", _params) + return nil +} + +// Params Getter +func (r TaobaoAilabAicloudTopMusicSearchAPIRequest) GetParams() string { + return r._params +} +// PageNo Setter +// 分页页码 +func (r *TaobaoAilabAicloudTopMusicSearchAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoAilabAicloudTopMusicSearchAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 分页页大小 +func (r *TaobaoAilabAicloudTopMusicSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoAilabAicloudTopMusicSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMusicSearchAPIResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMusicSearchAPIResponse.go new file mode 100644 index 0000000000..0e149b19c8 --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopMusicSearchAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +对外音乐搜索服务 API返回值 +taobao.ailab.aicloud.top.music.search + +供厂商获取音乐列表 +*/ +type TaobaoAilabAicloudTopMusicSearchAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopMusicSearchAPIResponseModel +} + +// 对外音乐搜索服务 成功返回结果 +type TaobaoAilabAicloudTopMusicSearchAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_music_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopMusicSearchResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopMusicSearchResponse.go deleted file mode 100644 index dc06256bdd..0000000000 --- a/model/tmallgenie/TaobaoAilabAicloudTopMusicSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -对外音乐搜索服务 API返回值 -taobao.ailab.aicloud.top.music.search - -供厂商获取音乐列表 -*/ -type TaobaoAilabAicloudTopMusicSearchAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopMusicSearchResponse -} - -// 对外音乐搜索服务 成功返回结果 -type TaobaoAilabAicloudTopMusicSearchResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_music_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AiCloudResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopSkilsListAPIRequest.go b/model/tmallgenie/TaobaoAilabAicloudTopSkilsListAPIRequest.go new file mode 100644 index 0000000000..d2bb1d147b --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopSkilsListAPIRequest.go @@ -0,0 +1,150 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取硬件平台设备下挂载的技能列表 API请求 +taobao.ailab.aicloud.top.skils.list + +提供给在硬件平台接入设备的技能列表 +*/ +type TaobaoAilabAicloudTopSkilsListAPIRequest struct { + model.Params + // 账户体系隔离 + _schema string + // 用户ID,此处传入第三方账户体系的用户id + _userId string + // 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 + _utdId string + // 扩展信息,用于存放APP类型等 + _ext string + // query(模糊匹配skillName) + _query string + // type(1000代表内容技能,3000代表自定义技能,4000代表官方技能) + _type string + // pageNo + _pageNo int64 + // pageSize + _pageSize int64 +} + +// 初始化TaobaoAilabAicloudTopSkilsListAPIRequest对象 +func NewTaobaoAilabAicloudTopSkilsListRequest() *TaobaoAilabAicloudTopSkilsListAPIRequest{ + return &TaobaoAilabAicloudTopSkilsListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetApiMethodName() string { + return "taobao.ailab.aicloud.top.skils.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Schema Setter +// 账户体系隔离 +func (r *TaobaoAilabAicloudTopSkilsListAPIRequest) SetSchema(_schema string) error { + r._schema = _schema + r.Set("schema", _schema) + return nil +} + +// Schema Getter +func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetSchema() string { + return r._schema +} +// UserId Setter +// 用户ID,此处传入第三方账户体系的用户id +func (r *TaobaoAilabAicloudTopSkilsListAPIRequest) SetUserId(_userId string) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetUserId() string { + return r._userId +} +// UtdId Setter +// 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数 +func (r *TaobaoAilabAicloudTopSkilsListAPIRequest) SetUtdId(_utdId string) error { + r._utdId = _utdId + r.Set("utd_id", _utdId) + return nil +} + +// UtdId Getter +func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetUtdId() string { + return r._utdId +} +// Ext Setter +// 扩展信息,用于存放APP类型等 +func (r *TaobaoAilabAicloudTopSkilsListAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetExt() string { + return r._ext +} +// Query Setter +// query(模糊匹配skillName) +func (r *TaobaoAilabAicloudTopSkilsListAPIRequest) SetQuery(_query string) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetQuery() string { + return r._query +} +// Type Setter +// type(1000代表内容技能,3000代表自定义技能,4000代表官方技能) +func (r *TaobaoAilabAicloudTopSkilsListAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetType() string { + return r._type +} +// PageNo Setter +// pageNo +func (r *TaobaoAilabAicloudTopSkilsListAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// pageSize +func (r *TaobaoAilabAicloudTopSkilsListAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoAilabAicloudTopSkilsListAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopSkilsListAPIResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopSkilsListAPIResponse.go new file mode 100644 index 0000000000..93f5b935ab --- /dev/null +++ b/model/tmallgenie/TaobaoAilabAicloudTopSkilsListAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取硬件平台设备下挂载的技能列表 API返回值 +taobao.ailab.aicloud.top.skils.list + +提供给在硬件平台接入设备的技能列表 +*/ +type TaobaoAilabAicloudTopSkilsListAPIResponse struct { + model.CommonResponse + TaobaoAilabAicloudTopSkilsListAPIResponseModel +} + +// 获取硬件平台设备下挂载的技能列表 成功返回结果 +type TaobaoAilabAicloudTopSkilsListAPIResponseModel struct { + XMLName xml.Name `xml:"ailab_aicloud_top_skils_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgenie/TaobaoAilabAicloudTopSkilsListResponse.go b/model/tmallgenie/TaobaoAilabAicloudTopSkilsListResponse.go deleted file mode 100644 index 8b0684c74b..0000000000 --- a/model/tmallgenie/TaobaoAilabAicloudTopSkilsListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取硬件平台设备下挂载的技能列表 API返回值 -taobao.ailab.aicloud.top.skils.list - -提供给在硬件平台接入设备的技能列表 -*/ -type TaobaoAilabAicloudTopSkilsListAPIResponse struct { - model.CommonResponse - TaobaoAilabAicloudTopSkilsListResponse -} - -// 获取硬件平台设备下挂载的技能列表 成功返回结果 -type TaobaoAilabAicloudTopSkilsListResponse struct { - XMLName xml.Name `xml:"ailab_aicloud_top_skils_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgenie/TaobaoTmallgenieHotelplayerpauseAPIRequest.go b/model/tmallgenie/TaobaoTmallgenieHotelplayerpauseAPIRequest.go new file mode 100644 index 0000000000..9a26a64fb1 --- /dev/null +++ b/model/tmallgenie/TaobaoTmallgenieHotelplayerpauseAPIRequest.go @@ -0,0 +1,66 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵酒店播放暂停 API请求 +taobao.tmallgenie.hotelplayerpause + +酒店推送指令给天猫精灵停止播放音乐 +*/ +type TaobaoTmallgenieHotelplayerpauseAPIRequest struct { + model.Params + // 房间号 + _roomNo string + // 酒店ID + _hotelId int64 +} + +// 初始化TaobaoTmallgenieHotelplayerpauseAPIRequest对象 +func NewTaobaoTmallgenieHotelplayerpauseRequest() *TaobaoTmallgenieHotelplayerpauseAPIRequest{ + return &TaobaoTmallgenieHotelplayerpauseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTmallgenieHotelplayerpauseAPIRequest) GetApiMethodName() string { + return "taobao.tmallgenie.hotelplayerpause" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTmallgenieHotelplayerpauseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RoomNo Setter +// 房间号 +func (r *TaobaoTmallgenieHotelplayerpauseAPIRequest) SetRoomNo(_roomNo string) error { + r._roomNo = _roomNo + r.Set("room_no", _roomNo) + return nil +} + +// RoomNo Getter +func (r TaobaoTmallgenieHotelplayerpauseAPIRequest) GetRoomNo() string { + return r._roomNo +} +// HotelId Setter +// 酒店ID +func (r *TaobaoTmallgenieHotelplayerpauseAPIRequest) SetHotelId(_hotelId int64) error { + r._hotelId = _hotelId + r.Set("hotel_id", _hotelId) + return nil +} + +// HotelId Getter +func (r TaobaoTmallgenieHotelplayerpauseAPIRequest) GetHotelId() int64 { + return r._hotelId +} diff --git a/model/tmallgenie/TaobaoTmallgenieHotelplayerpauseAPIResponse.go b/model/tmallgenie/TaobaoTmallgenieHotelplayerpauseAPIResponse.go new file mode 100644 index 0000000000..cfc735e7ba --- /dev/null +++ b/model/tmallgenie/TaobaoTmallgenieHotelplayerpauseAPIResponse.go @@ -0,0 +1,29 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫精灵酒店播放暂停 API返回值 +taobao.tmallgenie.hotelplayerpause + +酒店推送指令给天猫精灵停止播放音乐 +*/ +type TaobaoTmallgenieHotelplayerpauseAPIResponse struct { + model.CommonResponse + TaobaoTmallgenieHotelplayerpauseAPIResponseModel +} + +// 天猫精灵酒店播放暂停 成功返回结果 +type TaobaoTmallgenieHotelplayerpauseAPIResponseModel struct { + XMLName xml.Name `xml:"tmallgenie_hotelplayerpause_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // statusCode + StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/tmallgenie/TaobaoTmallgenieHotelplayerpauseResponse.go b/model/tmallgenie/TaobaoTmallgenieHotelplayerpauseResponse.go deleted file mode 100644 index 878efd51ed..0000000000 --- a/model/tmallgenie/TaobaoTmallgenieHotelplayerpauseResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫精灵酒店播放暂停 API返回值 -taobao.tmallgenie.hotelplayerpause - -酒店推送指令给天猫精灵停止播放音乐 -*/ -type TaobaoTmallgenieHotelplayerpauseAPIResponse struct { - model.CommonResponse - TaobaoTmallgenieHotelplayerpauseResponse -} - -// 天猫精灵酒店播放暂停 成功返回结果 -type TaobaoTmallgenieHotelplayerpauseResponse struct { - XMLName xml.Name `xml:"tmallgenie_hotelplayerpause_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // statusCode - StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/tmallgenie/TaobaoTmallgenieHotelwelcomeAPIRequest.go b/model/tmallgenie/TaobaoTmallgenieHotelwelcomeAPIRequest.go new file mode 100644 index 0000000000..6fb0a519c4 --- /dev/null +++ b/model/tmallgenie/TaobaoTmallgenieHotelwelcomeAPIRequest.go @@ -0,0 +1,94 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店欢迎词推送 API请求 +taobao.tmallgenie.hotelwelcome + +推送欢迎词,让天猫精灵播放 +*/ +type TaobaoTmallgenieHotelwelcomeAPIRequest struct { + model.Params + // 房间号 + _roomNo string + // 酒店ID + _hotelId int64 + // 模板ID + _templateId string + // 模板变量 + _templateVariable string +} + +// 初始化TaobaoTmallgenieHotelwelcomeAPIRequest对象 +func NewTaobaoTmallgenieHotelwelcomeRequest() *TaobaoTmallgenieHotelwelcomeAPIRequest{ + return &TaobaoTmallgenieHotelwelcomeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTmallgenieHotelwelcomeAPIRequest) GetApiMethodName() string { + return "taobao.tmallgenie.hotelwelcome" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTmallgenieHotelwelcomeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RoomNo Setter +// 房间号 +func (r *TaobaoTmallgenieHotelwelcomeAPIRequest) SetRoomNo(_roomNo string) error { + r._roomNo = _roomNo + r.Set("room_no", _roomNo) + return nil +} + +// RoomNo Getter +func (r TaobaoTmallgenieHotelwelcomeAPIRequest) GetRoomNo() string { + return r._roomNo +} +// HotelId Setter +// 酒店ID +func (r *TaobaoTmallgenieHotelwelcomeAPIRequest) SetHotelId(_hotelId int64) error { + r._hotelId = _hotelId + r.Set("hotel_id", _hotelId) + return nil +} + +// HotelId Getter +func (r TaobaoTmallgenieHotelwelcomeAPIRequest) GetHotelId() int64 { + return r._hotelId +} +// TemplateId Setter +// 模板ID +func (r *TaobaoTmallgenieHotelwelcomeAPIRequest) SetTemplateId(_templateId string) error { + r._templateId = _templateId + r.Set("template_id", _templateId) + return nil +} + +// TemplateId Getter +func (r TaobaoTmallgenieHotelwelcomeAPIRequest) GetTemplateId() string { + return r._templateId +} +// TemplateVariable Setter +// 模板变量 +func (r *TaobaoTmallgenieHotelwelcomeAPIRequest) SetTemplateVariable(_templateVariable string) error { + r._templateVariable = _templateVariable + r.Set("template_variable", _templateVariable) + return nil +} + +// TemplateVariable Getter +func (r TaobaoTmallgenieHotelwelcomeAPIRequest) GetTemplateVariable() string { + return r._templateVariable +} diff --git a/model/tmallgenie/TaobaoTmallgenieHotelwelcomeAPIResponse.go b/model/tmallgenie/TaobaoTmallgenieHotelwelcomeAPIResponse.go new file mode 100644 index 0000000000..e60f7ffaf3 --- /dev/null +++ b/model/tmallgenie/TaobaoTmallgenieHotelwelcomeAPIResponse.go @@ -0,0 +1,29 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店欢迎词推送 API返回值 +taobao.tmallgenie.hotelwelcome + +推送欢迎词,让天猫精灵播放 +*/ +type TaobaoTmallgenieHotelwelcomeAPIResponse struct { + model.CommonResponse + TaobaoTmallgenieHotelwelcomeAPIResponseModel +} + +// 酒店欢迎词推送 成功返回结果 +type TaobaoTmallgenieHotelwelcomeAPIResponseModel struct { + XMLName xml.Name `xml:"tmallgenie_hotelwelcome_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // statusCode + StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/tmallgenie/TaobaoTmallgenieHotelwelcomeResponse.go b/model/tmallgenie/TaobaoTmallgenieHotelwelcomeResponse.go deleted file mode 100644 index e2d3533f25..0000000000 --- a/model/tmallgenie/TaobaoTmallgenieHotelwelcomeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店欢迎词推送 API返回值 -taobao.tmallgenie.hotelwelcome - -推送欢迎词,让天猫精灵播放 -*/ -type TaobaoTmallgenieHotelwelcomeAPIResponse struct { - model.CommonResponse - TaobaoTmallgenieHotelwelcomeResponse -} - -// 酒店欢迎词推送 成功返回结果 -type TaobaoTmallgenieHotelwelcomeResponse struct { - XMLName xml.Name `xml:"tmallgenie_hotelwelcome_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // statusCode - StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/tmallgenie/TmallTmjlappSapServiceorderCancelAPIRequest.go b/model/tmallgenie/TmallTmjlappSapServiceorderCancelAPIRequest.go new file mode 100644 index 0000000000..26b123445a --- /dev/null +++ b/model/tmallgenie/TmallTmjlappSapServiceorderCancelAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgenie + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消售后服务单 API请求 +tmall.tmjlapp.sap.serviceorder.cancel + +SAP跟天猫精灵app接口对接,用户在app取消sap售后服务工单 +*/ +type TmallTmjlappSapServiceorderCancelAPIRequest struct { + model.Params + // 取消服务单请求 + _cancelRequest *Dtcancelrequest +} + +// 初始化TmallTmjlappSapServiceorderCancelAPIRequest对象 +func NewTmallTmjlappSapServiceorderCancelRequest() *TmallTmjlappSapServiceorderCancelAPIRequest{ + return &TmallTmjlappSapServiceorderCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTmjlappSapServiceorderCancelAPIRequest) GetApiMethodName() string { + return "tmall.tmjlapp.sap.serviceorder.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTmjlappSapServiceorderCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CancelRequest Setter +// 取消服务单请求 +func (r *TmallTmjlappSapServiceorderCancelAPIRequest) SetCancelRequest(_cancelRequest *Dtcancelrequest) error { + r._cancelRequest = _cancelRequest + r.Set("cancel_request", _cancelRequest) + return nil +} + +// CancelRequest Getter +func (r TmallTmjlappSapServiceorderCancelAPIRequest) GetCancelRequest() *Dtcancelrequest { + return r._cancelRequest +} diff --git a/model/tmallgenie/TmallTmjlappSapServiceorderCancelAPIResponse.go b/model/tmallgenie/TmallTmjlappSapServiceorderCancelAPIResponse.go new file mode 100644 index 0000000000..2e877baab2 --- /dev/null +++ b/model/tmallgenie/TmallTmjlappSapServiceorderCancelAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgenie + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消售后服务单 API返回值 +tmall.tmjlapp.sap.serviceorder.cancel + +SAP跟天猫精灵app接口对接,用户在app取消sap售后服务工单 +*/ +type TmallTmjlappSapServiceorderCancelAPIResponse struct { + model.CommonResponse + TmallTmjlappSapServiceorderCancelAPIResponseModel +} + +// 取消售后服务单 成功返回结果 +type TmallTmjlappSapServiceorderCancelAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_tmjlapp_sap_serviceorder_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 取消服务单返回 + CancelResponse *Dtcancelresponse `json:"cancel_response,omitempty" xml:"cancel_response,omitempty"` +} diff --git a/model/tmallgenie/TmallTmjlappSapServiceorderCancelResponse.go b/model/tmallgenie/TmallTmjlappSapServiceorderCancelResponse.go deleted file mode 100644 index ca7c6e29ff..0000000000 --- a/model/tmallgenie/TmallTmjlappSapServiceorderCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgenie - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消售后服务单 API返回值 -tmall.tmjlapp.sap.serviceorder.cancel - -SAP跟天猫精灵app接口对接,用户在app取消sap售后服务工单 -*/ -type TmallTmjlappSapServiceorderCancelAPIResponse struct { - model.CommonResponse - TmallTmjlappSapServiceorderCancelResponse -} - -// 取消售后服务单 成功返回结果 -type TmallTmjlappSapServiceorderCancelResponse struct { - XMLName xml.Name `xml:"tmall_tmjlapp_sap_serviceorder_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 取消服务单返回 - CancelResponse *Dtcancelresponse `json:"cancel_response,omitempty" xml:"cancel_response,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpLocationGetAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpLocationGetAPIRequest.go new file mode 100644 index 0000000000..7b0b74ae8e --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpLocationGetAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +2-IBP查询CDC和RDC数据接口 API请求 +alibaba.tmallgenie.scp.location.get + +天猫精灵供应链-计划域-IBP查询CDC和RDC数据接口 +*/ +type AlibabaTmallgenieScpLocationGetAPIRequest struct { + model.Params + // 扩展参数 + _requestExtendJson string +} + +// 初始化AlibabaTmallgenieScpLocationGetAPIRequest对象 +func NewAlibabaTmallgenieScpLocationGetRequest() *AlibabaTmallgenieScpLocationGetAPIRequest{ + return &AlibabaTmallgenieScpLocationGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpLocationGetAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.location.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpLocationGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestExtendJson Setter +// 扩展参数 +func (r *AlibabaTmallgenieScpLocationGetAPIRequest) SetRequestExtendJson(_requestExtendJson string) error { + r._requestExtendJson = _requestExtendJson + r.Set("request_extend_json", _requestExtendJson) + return nil +} + +// RequestExtendJson Getter +func (r AlibabaTmallgenieScpLocationGetAPIRequest) GetRequestExtendJson() string { + return r._requestExtendJson +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpLocationGetAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpLocationGetAPIResponse.go new file mode 100644 index 0000000000..470bd69f3d --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpLocationGetAPIResponse.go @@ -0,0 +1,33 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +2-IBP查询CDC和RDC数据接口 API返回值 +alibaba.tmallgenie.scp.location.get + +天猫精灵供应链-计划域-IBP查询CDC和RDC数据接口 +*/ +type AlibabaTmallgenieScpLocationGetAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpLocationGetAPIResponseModel +} + +// 2-IBP查询CDC和RDC数据接口 成功返回结果 +type AlibabaTmallgenieScpLocationGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_location_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 返回码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 数据集合 + DataList []AlibabaTmallgenieScpLocationGetData `json:"data_list,omitempty" xml:"data_list>alibaba_tmallgenie_scp_location_get_data,omitempty"` + // 请求序列号 + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpLocationGetResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpLocationGetResponse.go deleted file mode 100644 index 79cc1fa5a1..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpLocationGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -2-IBP查询CDC和RDC数据接口 API返回值 -alibaba.tmallgenie.scp.location.get - -天猫精灵供应链-计划域-IBP查询CDC和RDC数据接口 -*/ -type AlibabaTmallgenieScpLocationGetAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpLocationGetResponse -} - -// 2-IBP查询CDC和RDC数据接口 成功返回结果 -type AlibabaTmallgenieScpLocationGetResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_location_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 返回码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 数据集合 - DataList []AlibabaTmallgenieScpLocationGetData `json:"data_list,omitempty" xml:"data_list>alibaba_tmallgenie_scp_location_get_data,omitempty"` - // 请求序列号 - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanBomUploadAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanBomUploadAPIRequest.go new file mode 100644 index 0000000000..e276a3e105 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanBomUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +计划BOM同步 API请求 +alibaba.tmallgenie.scp.plan.bom.upload + +计划BOM同步 +*/ +type AlibabaTmallgenieScpPlanBomUploadAPIRequest struct { + model.Params + // 对象 + _pbomRequest *AbstractRequest +} + +// 初始化AlibabaTmallgenieScpPlanBomUploadAPIRequest对象 +func NewAlibabaTmallgenieScpPlanBomUploadRequest() *AlibabaTmallgenieScpPlanBomUploadAPIRequest{ + return &AlibabaTmallgenieScpPlanBomUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanBomUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.bom.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanBomUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PbomRequest Setter +// 对象 +func (r *AlibabaTmallgenieScpPlanBomUploadAPIRequest) SetPbomRequest(_pbomRequest *AbstractRequest) error { + r._pbomRequest = _pbomRequest + r.Set("pbom_request", _pbomRequest) + return nil +} + +// PbomRequest Getter +func (r AlibabaTmallgenieScpPlanBomUploadAPIRequest) GetPbomRequest() *AbstractRequest { + return r._pbomRequest +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanBomUploadAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanBomUploadAPIResponse.go new file mode 100644 index 0000000000..2d7b1d3f6f --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanBomUploadAPIResponse.go @@ -0,0 +1,33 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +计划BOM同步 API返回值 +alibaba.tmallgenie.scp.plan.bom.upload + +计划BOM同步 +*/ +type AlibabaTmallgenieScpPlanBomUploadAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanBomUploadAPIResponseModel +} + +// 计划BOM同步 成功返回结果 +type AlibabaTmallgenieScpPlanBomUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_bom_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 请求唯一ID + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 返回码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 对象列表 + DataList []BomDto `json:"data_list,omitempty" xml:"data_list>bom_dto,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanBomUploadResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanBomUploadResponse.go deleted file mode 100644 index 911b28bbdf..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanBomUploadResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -计划BOM同步 API返回值 -alibaba.tmallgenie.scp.plan.bom.upload - -计划BOM同步 -*/ -type AlibabaTmallgenieScpPlanBomUploadAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanBomUploadResponse -} - -// 计划BOM同步 成功返回结果 -type AlibabaTmallgenieScpPlanBomUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_bom_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 请求唯一ID - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 返回码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 对象列表 - DataList []BomDto `json:"data_list,omitempty" xml:"data_list>bom_dto,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelGetAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelGetAPIRequest.go new file mode 100644 index 0000000000..fcfea1243e --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelGetAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +5-IBP同步渠道接口 API请求 +alibaba.tmallgenie.scp.plan.channel.get + +IBP同步渠道接口 +*/ +type AlibabaTmallgenieScpPlanChannelGetAPIRequest struct { + model.Params + // 扩展参数 + _requestExtendJson string +} + +// 初始化AlibabaTmallgenieScpPlanChannelGetAPIRequest对象 +func NewAlibabaTmallgenieScpPlanChannelGetRequest() *AlibabaTmallgenieScpPlanChannelGetAPIRequest{ + return &AlibabaTmallgenieScpPlanChannelGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanChannelGetAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.channel.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanChannelGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestExtendJson Setter +// 扩展参数 +func (r *AlibabaTmallgenieScpPlanChannelGetAPIRequest) SetRequestExtendJson(_requestExtendJson string) error { + r._requestExtendJson = _requestExtendJson + r.Set("request_extend_json", _requestExtendJson) + return nil +} + +// RequestExtendJson Getter +func (r AlibabaTmallgenieScpPlanChannelGetAPIRequest) GetRequestExtendJson() string { + return r._requestExtendJson +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelGetAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelGetAPIResponse.go new file mode 100644 index 0000000000..976d6b0265 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +5-IBP同步渠道接口 API返回值 +alibaba.tmallgenie.scp.plan.channel.get + +IBP同步渠道接口 +*/ +type AlibabaTmallgenieScpPlanChannelGetAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanChannelGetAPIResponseModel +} + +// 5-IBP同步渠道接口 成功返回结果 +type AlibabaTmallgenieScpPlanChannelGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_channel_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelGetResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelGetResponse.go deleted file mode 100644 index 6126fed215..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -5-IBP同步渠道接口 API返回值 -alibaba.tmallgenie.scp.plan.channel.get - -IBP同步渠道接口 -*/ -type AlibabaTmallgenieScpPlanChannelGetAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanChannelGetResponse -} - -// 5-IBP同步渠道接口 成功返回结果 -type AlibabaTmallgenieScpPlanChannelGetResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_channel_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelQuoteUploadAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelQuoteUploadAPIRequest.go new file mode 100644 index 0000000000..71b87a83bd --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelQuoteUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +9.1-同步渠道配额 API请求 +alibaba.tmallgenie.scp.plan.channel.quote.upload + +同步渠道配额 +*/ +type AlibabaTmallgenieScpPlanChannelQuoteUploadAPIRequest struct { + model.Params + // 对象 + _netDemandRequest *NetDemandRequest +} + +// 初始化AlibabaTmallgenieScpPlanChannelQuoteUploadAPIRequest对象 +func NewAlibabaTmallgenieScpPlanChannelQuoteUploadRequest() *AlibabaTmallgenieScpPlanChannelQuoteUploadAPIRequest{ + return &AlibabaTmallgenieScpPlanChannelQuoteUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanChannelQuoteUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.channel.quote.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanChannelQuoteUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NetDemandRequest Setter +// 对象 +func (r *AlibabaTmallgenieScpPlanChannelQuoteUploadAPIRequest) SetNetDemandRequest(_netDemandRequest *NetDemandRequest) error { + r._netDemandRequest = _netDemandRequest + r.Set("net_demand_request", _netDemandRequest) + return nil +} + +// NetDemandRequest Getter +func (r AlibabaTmallgenieScpPlanChannelQuoteUploadAPIRequest) GetNetDemandRequest() *NetDemandRequest { + return r._netDemandRequest +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelQuoteUploadAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelQuoteUploadAPIResponse.go new file mode 100644 index 0000000000..b4835e69d0 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelQuoteUploadAPIResponse.go @@ -0,0 +1,33 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +9.1-同步渠道配额 API返回值 +alibaba.tmallgenie.scp.plan.channel.quote.upload + +同步渠道配额 +*/ +type AlibabaTmallgenieScpPlanChannelQuoteUploadAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanChannelQuoteUploadAPIResponseModel +} + +// 9.1-同步渠道配额 成功返回结果 +type AlibabaTmallgenieScpPlanChannelQuoteUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_channel_quote_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 请求唯一ID + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 返回码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 对象列表 + DataList []ChannelQuotaDto `json:"data_list,omitempty" xml:"data_list>channel_quota_dto,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelQuoteUploadResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelQuoteUploadResponse.go deleted file mode 100644 index 8333634d68..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanChannelQuoteUploadResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -9.1-同步渠道配额 API返回值 -alibaba.tmallgenie.scp.plan.channel.quote.upload - -同步渠道配额 -*/ -type AlibabaTmallgenieScpPlanChannelQuoteUploadAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanChannelQuoteUploadResponse -} - -// 9.1-同步渠道配额 成功返回结果 -type AlibabaTmallgenieScpPlanChannelQuoteUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_channel_quote_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 请求唯一ID - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 返回码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 对象列表 - DataList []ChannelQuotaDto `json:"data_list,omitempty" xml:"data_list>channel_quota_dto,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanConsensusDemandUploadAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanConsensusDemandUploadAPIRequest.go new file mode 100644 index 0000000000..f403a99e80 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanConsensusDemandUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +20-IBP共识需求回传接口 API请求 +alibaba.tmallgenie.scp.plan.consensus.demand.upload + +IBP共识需求回传接口 +*/ +type AlibabaTmallgenieScpPlanConsensusDemandUploadAPIRequest struct { + model.Params + // 入参 + _consensusDemandRequest *ConsensusDemandRequest +} + +// 初始化AlibabaTmallgenieScpPlanConsensusDemandUploadAPIRequest对象 +func NewAlibabaTmallgenieScpPlanConsensusDemandUploadRequest() *AlibabaTmallgenieScpPlanConsensusDemandUploadAPIRequest{ + return &AlibabaTmallgenieScpPlanConsensusDemandUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanConsensusDemandUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.consensus.demand.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanConsensusDemandUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ConsensusDemandRequest Setter +// 入参 +func (r *AlibabaTmallgenieScpPlanConsensusDemandUploadAPIRequest) SetConsensusDemandRequest(_consensusDemandRequest *ConsensusDemandRequest) error { + r._consensusDemandRequest = _consensusDemandRequest + r.Set("consensus_demand_request", _consensusDemandRequest) + return nil +} + +// ConsensusDemandRequest Getter +func (r AlibabaTmallgenieScpPlanConsensusDemandUploadAPIRequest) GetConsensusDemandRequest() *ConsensusDemandRequest { + return r._consensusDemandRequest +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanConsensusDemandUploadAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanConsensusDemandUploadAPIResponse.go new file mode 100644 index 0000000000..bd210ebd0b --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanConsensusDemandUploadAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +20-IBP共识需求回传接口 API返回值 +alibaba.tmallgenie.scp.plan.consensus.demand.upload + +IBP共识需求回传接口 +*/ +type AlibabaTmallgenieScpPlanConsensusDemandUploadAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanConsensusDemandUploadAPIResponseModel +} + +// 20-IBP共识需求回传接口 成功返回结果 +type AlibabaTmallgenieScpPlanConsensusDemandUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_consensus_demand_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaTmallgenieScpPlanConsensusDemandUploadResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanConsensusDemandUploadResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanConsensusDemandUploadResponse.go deleted file mode 100644 index 0415728542..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanConsensusDemandUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -20-IBP共识需求回传接口 API返回值 -alibaba.tmallgenie.scp.plan.consensus.demand.upload - -IBP共识需求回传接口 -*/ -type AlibabaTmallgenieScpPlanConsensusDemandUploadAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanConsensusDemandUploadResponse -} - -// 20-IBP共识需求回传接口 成功返回结果 -type AlibabaTmallgenieScpPlanConsensusDemandUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_consensus_demand_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaTmallgenieScpPlanConsensusDemandUploadResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIRequest.go new file mode 100644 index 0000000000..f581f535bd --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同步供应商校准后的配额-二级物料 API请求 +alibaba.tmallgenie.scp.plan.correct.supplier.quote.raw.upload + +同步供应商校准后的配额-二级物料 +*/ +type AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIRequest struct { + model.Params + // 对象 + _currentQuoteRawRequest *AbstractRequest +} + +// 初始化AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIRequest对象 +func NewAlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadRequest() *AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIRequest{ + return &AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.correct.supplier.quote.raw.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CurrentQuoteRawRequest Setter +// 对象 +func (r *AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIRequest) SetCurrentQuoteRawRequest(_currentQuoteRawRequest *AbstractRequest) error { + r._currentQuoteRawRequest = _currentQuoteRawRequest + r.Set("current_quote_raw_request", _currentQuoteRawRequest) + return nil +} + +// CurrentQuoteRawRequest Getter +func (r AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIRequest) GetCurrentQuoteRawRequest() *AbstractRequest { + return r._currentQuoteRawRequest +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIResponse.go new file mode 100644 index 0000000000..8aa0bc131d --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIResponse.go @@ -0,0 +1,33 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同步供应商校准后的配额-二级物料 API返回值 +alibaba.tmallgenie.scp.plan.correct.supplier.quote.raw.upload + +同步供应商校准后的配额-二级物料 +*/ +type AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIResponseModel +} + +// 同步供应商校准后的配额-二级物料 成功返回结果 +type AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_correct_supplier_quote_raw_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 请求唯一ID + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 返回码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 对象列表 + DataList []CurrentQuotaDto `json:"data_list,omitempty" xml:"data_list>current_quota_dto,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadResponse.go deleted file mode 100644 index 745da94633..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同步供应商校准后的配额-二级物料 API返回值 -alibaba.tmallgenie.scp.plan.correct.supplier.quote.raw.upload - -同步供应商校准后的配额-二级物料 -*/ -type AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadResponse -} - -// 同步供应商校准后的配额-二级物料 成功返回结果 -type AlibabaTmallgenieScpPlanCorrectSupplierQuoteRawUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_correct_supplier_quote_raw_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 请求唯一ID - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 返回码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 对象列表 - DataList []CurrentQuotaDto `json:"data_list,omitempty" xml:"data_list>current_quota_dto,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIRequest.go new file mode 100644 index 0000000000..7807bb702c --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商校准后的配额同步 API请求 +alibaba.tmallgenie.scp.plan.correct.supplier.quote.upload + +供应商校准后的配额同步 +*/ +type AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIRequest struct { + model.Params + // 对象 + _netDemandRequest *NetDemandRequest +} + +// 初始化AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIRequest对象 +func NewAlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadRequest() *AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIRequest{ + return &AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.correct.supplier.quote.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NetDemandRequest Setter +// 对象 +func (r *AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIRequest) SetNetDemandRequest(_netDemandRequest *NetDemandRequest) error { + r._netDemandRequest = _netDemandRequest + r.Set("net_demand_request", _netDemandRequest) + return nil +} + +// NetDemandRequest Getter +func (r AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIRequest) GetNetDemandRequest() *NetDemandRequest { + return r._netDemandRequest +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIResponse.go new file mode 100644 index 0000000000..355b29bf49 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIResponse.go @@ -0,0 +1,33 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商校准后的配额同步 API返回值 +alibaba.tmallgenie.scp.plan.correct.supplier.quote.upload + +供应商校准后的配额同步 +*/ +type AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIResponseModel +} + +// 供应商校准后的配额同步 成功返回结果 +type AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_correct_supplier_quote_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 请求唯一ID + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 返回码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 对象列表 + DataList []ChannelQuotaDto `json:"data_list,omitempty" xml:"data_list>channel_quota_dto,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadResponse.go deleted file mode 100644 index e51d9ef319..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商校准后的配额同步 API返回值 -alibaba.tmallgenie.scp.plan.correct.supplier.quote.upload - -供应商校准后的配额同步 -*/ -type AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadResponse -} - -// 供应商校准后的配额同步 成功返回结果 -type AlibabaTmallgenieScpPlanCorrectSupplierQuoteUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_correct_supplier_quote_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 请求唯一ID - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 返回码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 对象列表 - DataList []ChannelQuotaDto `json:"data_list,omitempty" xml:"data_list>channel_quota_dto,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIRequest.go new file mode 100644 index 0000000000..309f7f0a88 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +22-C2M共识需求回传接口 API请求 +alibaba.tmallgenie.scp.plan.ctom.consensus.demand.upload + +C2M 共识需求回传接口 +*/ +type AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIRequest struct { + model.Params + // 对象 + _c2MConsensusDemandRequest *C2MConsensusDemandRequest +} + +// 初始化AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIRequest对象 +func NewAlibabaTmallgenieScpPlanCtomConsensusDemandUploadRequest() *AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIRequest{ + return &AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.ctom.consensus.demand.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// C2MConsensusDemandRequest Setter +// 对象 +func (r *AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIRequest) SetC2MConsensusDemandRequest(_c2MConsensusDemandRequest *C2MConsensusDemandRequest) error { + r._c2MConsensusDemandRequest = _c2MConsensusDemandRequest + r.Set("c2_m_consensus_demand_request", _c2MConsensusDemandRequest) + return nil +} + +// C2MConsensusDemandRequest Getter +func (r AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIRequest) GetC2MConsensusDemandRequest() *C2MConsensusDemandRequest { + return r._c2MConsensusDemandRequest +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIResponse.go new file mode 100644 index 0000000000..62de864806 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIResponse.go @@ -0,0 +1,31 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +22-C2M共识需求回传接口 API返回值 +alibaba.tmallgenie.scp.plan.ctom.consensus.demand.upload + +C2M 共识需求回传接口 +*/ +type AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIResponseModel +} + +// 22-C2M共识需求回传接口 成功返回结果 +type AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_ctom_consensus_demand_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果msg + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 请求唯一ID + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 结果code + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCtomConsensusDemandUploadResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCtomConsensusDemandUploadResponse.go deleted file mode 100644 index f115a0243c..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCtomConsensusDemandUploadResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -22-C2M共识需求回传接口 API返回值 -alibaba.tmallgenie.scp.plan.ctom.consensus.demand.upload - -C2M 共识需求回传接口 -*/ -type AlibabaTmallgenieScpPlanCtomConsensusDemandUploadAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanCtomConsensusDemandUploadResponse -} - -// 22-C2M共识需求回传接口 成功返回结果 -type AlibabaTmallgenieScpPlanCtomConsensusDemandUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_ctom_consensus_demand_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果msg - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 请求唯一ID - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 结果code - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentPoGetAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentPoGetAPIRequest.go new file mode 100644 index 0000000000..edbe1e54ea --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentPoGetAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +11-同步本周的po单(从W-1周到W+4周) API请求 +alibaba.tmallgenie.scp.plan.current.po.get + +11-同步本周的po单(从W-1周到W+4周) +*/ +type AlibabaTmallgenieScpPlanCurrentPoGetAPIRequest struct { + model.Params + // 扩展参数 + _requestExtendJson string +} + +// 初始化AlibabaTmallgenieScpPlanCurrentPoGetAPIRequest对象 +func NewAlibabaTmallgenieScpPlanCurrentPoGetRequest() *AlibabaTmallgenieScpPlanCurrentPoGetAPIRequest{ + return &AlibabaTmallgenieScpPlanCurrentPoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanCurrentPoGetAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.current.po.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanCurrentPoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestExtendJson Setter +// 扩展参数 +func (r *AlibabaTmallgenieScpPlanCurrentPoGetAPIRequest) SetRequestExtendJson(_requestExtendJson string) error { + r._requestExtendJson = _requestExtendJson + r.Set("request_extend_json", _requestExtendJson) + return nil +} + +// RequestExtendJson Getter +func (r AlibabaTmallgenieScpPlanCurrentPoGetAPIRequest) GetRequestExtendJson() string { + return r._requestExtendJson +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentPoGetAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentPoGetAPIResponse.go new file mode 100644 index 0000000000..5946df97a1 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentPoGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +11-同步本周的po单(从W-1周到W+4周) API返回值 +alibaba.tmallgenie.scp.plan.current.po.get + +11-同步本周的po单(从W-1周到W+4周) +*/ +type AlibabaTmallgenieScpPlanCurrentPoGetAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanCurrentPoGetAPIResponseModel +} + +// 11-同步本周的po单(从W-1周到W+4周) 成功返回结果 +type AlibabaTmallgenieScpPlanCurrentPoGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_current_po_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentPoGetResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentPoGetResponse.go deleted file mode 100644 index f3e0af6f46..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentPoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -11-同步本周的po单(从W-1周到W+4周) API返回值 -alibaba.tmallgenie.scp.plan.current.po.get - -11-同步本周的po单(从W-1周到W+4周) -*/ -type AlibabaTmallgenieScpPlanCurrentPoGetAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanCurrentPoGetResponse -} - -// 11-同步本周的po单(从W-1周到W+4周) 成功返回结果 -type AlibabaTmallgenieScpPlanCurrentPoGetResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_current_po_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentRawpoGetAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentRawpoGetAPIRequest.go new file mode 100644 index 0000000000..43e05d0e72 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentRawpoGetAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +二级物料-PO数据同步 API请求 +alibaba.tmallgenie.scp.plan.current.rawpo.get + +二级物料-PO数据同步(WO-W[TL]) +*/ +type AlibabaTmallgenieScpPlanCurrentRawpoGetAPIRequest struct { + model.Params + // 系统自动生成 + _paramRequest *AbstractRequest +} + +// 初始化AlibabaTmallgenieScpPlanCurrentRawpoGetAPIRequest对象 +func NewAlibabaTmallgenieScpPlanCurrentRawpoGetRequest() *AlibabaTmallgenieScpPlanCurrentRawpoGetAPIRequest{ + return &AlibabaTmallgenieScpPlanCurrentRawpoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanCurrentRawpoGetAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.current.rawpo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanCurrentRawpoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamRequest Setter +// 系统自动生成 +func (r *AlibabaTmallgenieScpPlanCurrentRawpoGetAPIRequest) SetParamRequest(_paramRequest *AbstractRequest) error { + r._paramRequest = _paramRequest + r.Set("param_request", _paramRequest) + return nil +} + +// ParamRequest Getter +func (r AlibabaTmallgenieScpPlanCurrentRawpoGetAPIRequest) GetParamRequest() *AbstractRequest { + return r._paramRequest +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentRawpoGetAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentRawpoGetAPIResponse.go new file mode 100644 index 0000000000..3f624da104 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentRawpoGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +二级物料-PO数据同步 API返回值 +alibaba.tmallgenie.scp.plan.current.rawpo.get + +二级物料-PO数据同步(WO-W[TL]) +*/ +type AlibabaTmallgenieScpPlanCurrentRawpoGetAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanCurrentRawpoGetAPIResponseModel +} + +// 二级物料-PO数据同步 成功返回结果 +type AlibabaTmallgenieScpPlanCurrentRawpoGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_current_rawpo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentRawpoGetResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentRawpoGetResponse.go deleted file mode 100644 index e21c324c0f..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanCurrentRawpoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -二级物料-PO数据同步 API返回值 -alibaba.tmallgenie.scp.plan.current.rawpo.get - -二级物料-PO数据同步(WO-W[TL]) -*/ -type AlibabaTmallgenieScpPlanCurrentRawpoGetAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanCurrentRawpoGetResponse -} - -// 二级物料-PO数据同步 成功返回结果 -type AlibabaTmallgenieScpPlanCurrentRawpoGetResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_current_rawpo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackOemUploadAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackOemUploadAPIRequest.go new file mode 100644 index 0000000000..2fe80a1601 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackOemUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +14-供应商反馈(OEM)同步接口 API请求 +alibaba.tmallgenie.scp.plan.feedback.oem.upload + +供应商反馈(OEM)同步接口 +*/ +type AlibabaTmallgenieScpPlanFeedbackOemUploadAPIRequest struct { + model.Params + // 扩展参数 + _requestExtendJson string +} + +// 初始化AlibabaTmallgenieScpPlanFeedbackOemUploadAPIRequest对象 +func NewAlibabaTmallgenieScpPlanFeedbackOemUploadRequest() *AlibabaTmallgenieScpPlanFeedbackOemUploadAPIRequest{ + return &AlibabaTmallgenieScpPlanFeedbackOemUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanFeedbackOemUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.feedback.oem.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanFeedbackOemUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestExtendJson Setter +// 扩展参数 +func (r *AlibabaTmallgenieScpPlanFeedbackOemUploadAPIRequest) SetRequestExtendJson(_requestExtendJson string) error { + r._requestExtendJson = _requestExtendJson + r.Set("request_extend_json", _requestExtendJson) + return nil +} + +// RequestExtendJson Getter +func (r AlibabaTmallgenieScpPlanFeedbackOemUploadAPIRequest) GetRequestExtendJson() string { + return r._requestExtendJson +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackOemUploadAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackOemUploadAPIResponse.go new file mode 100644 index 0000000000..d62464baf1 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackOemUploadAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +14-供应商反馈(OEM)同步接口 API返回值 +alibaba.tmallgenie.scp.plan.feedback.oem.upload + +供应商反馈(OEM)同步接口 +*/ +type AlibabaTmallgenieScpPlanFeedbackOemUploadAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanFeedbackOemUploadAPIResponseModel +} + +// 14-供应商反馈(OEM)同步接口 成功返回结果 +type AlibabaTmallgenieScpPlanFeedbackOemUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_feedback_oem_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackOemUploadResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackOemUploadResponse.go deleted file mode 100644 index 664413756d..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackOemUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -14-供应商反馈(OEM)同步接口 API返回值 -alibaba.tmallgenie.scp.plan.feedback.oem.upload - -供应商反馈(OEM)同步接口 -*/ -type AlibabaTmallgenieScpPlanFeedbackOemUploadAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanFeedbackOemUploadResponse -} - -// 14-供应商反馈(OEM)同步接口 成功返回结果 -type AlibabaTmallgenieScpPlanFeedbackOemUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_feedback_oem_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackRawUploadAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackRawUploadAPIRequest.go new file mode 100644 index 0000000000..7e260dfd4a --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackRawUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +15-供应商反馈(原料)同步接口 API请求 +alibaba.tmallgenie.scp.plan.feedback.raw.upload + +供应商反馈(原料)同步接口 +*/ +type AlibabaTmallgenieScpPlanFeedbackRawUploadAPIRequest struct { + model.Params + // 扩展参数 + _requestExtendJson string +} + +// 初始化AlibabaTmallgenieScpPlanFeedbackRawUploadAPIRequest对象 +func NewAlibabaTmallgenieScpPlanFeedbackRawUploadRequest() *AlibabaTmallgenieScpPlanFeedbackRawUploadAPIRequest{ + return &AlibabaTmallgenieScpPlanFeedbackRawUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanFeedbackRawUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.feedback.raw.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanFeedbackRawUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestExtendJson Setter +// 扩展参数 +func (r *AlibabaTmallgenieScpPlanFeedbackRawUploadAPIRequest) SetRequestExtendJson(_requestExtendJson string) error { + r._requestExtendJson = _requestExtendJson + r.Set("request_extend_json", _requestExtendJson) + return nil +} + +// RequestExtendJson Getter +func (r AlibabaTmallgenieScpPlanFeedbackRawUploadAPIRequest) GetRequestExtendJson() string { + return r._requestExtendJson +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackRawUploadAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackRawUploadAPIResponse.go new file mode 100644 index 0000000000..7833d29242 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackRawUploadAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +15-供应商反馈(原料)同步接口 API返回值 +alibaba.tmallgenie.scp.plan.feedback.raw.upload + +供应商反馈(原料)同步接口 +*/ +type AlibabaTmallgenieScpPlanFeedbackRawUploadAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanFeedbackRawUploadAPIResponseModel +} + +// 15-供应商反馈(原料)同步接口 成功返回结果 +type AlibabaTmallgenieScpPlanFeedbackRawUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_feedback_raw_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackRawUploadResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackRawUploadResponse.go deleted file mode 100644 index 5b6f094568..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanFeedbackRawUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -15-供应商反馈(原料)同步接口 API返回值 -alibaba.tmallgenie.scp.plan.feedback.raw.upload - -供应商反馈(原料)同步接口 -*/ -type AlibabaTmallgenieScpPlanFeedbackRawUploadAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanFeedbackRawUploadResponse -} - -// 15-供应商反馈(原料)同步接口 成功返回结果 -type AlibabaTmallgenieScpPlanFeedbackRawUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_feedback_raw_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastOemUploadAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastOemUploadAPIRequest.go new file mode 100644 index 0000000000..3b2fccc58a --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastOemUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +16-供应商预测(OEM-成品)回传接口 API请求 +alibaba.tmallgenie.scp.plan.forecast.oem.upload + +供应商预测(OEM-成品)回传接口 +*/ +type AlibabaTmallgenieScpPlanForecastOemUploadAPIRequest struct { + model.Params + // 请求参数 + _supplierForecastRequest *SupplierForecastRequest +} + +// 初始化AlibabaTmallgenieScpPlanForecastOemUploadAPIRequest对象 +func NewAlibabaTmallgenieScpPlanForecastOemUploadRequest() *AlibabaTmallgenieScpPlanForecastOemUploadAPIRequest{ + return &AlibabaTmallgenieScpPlanForecastOemUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanForecastOemUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.forecast.oem.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanForecastOemUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SupplierForecastRequest Setter +// 请求参数 +func (r *AlibabaTmallgenieScpPlanForecastOemUploadAPIRequest) SetSupplierForecastRequest(_supplierForecastRequest *SupplierForecastRequest) error { + r._supplierForecastRequest = _supplierForecastRequest + r.Set("supplier_forecast_request", _supplierForecastRequest) + return nil +} + +// SupplierForecastRequest Getter +func (r AlibabaTmallgenieScpPlanForecastOemUploadAPIRequest) GetSupplierForecastRequest() *SupplierForecastRequest { + return r._supplierForecastRequest +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastOemUploadAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastOemUploadAPIResponse.go new file mode 100644 index 0000000000..a1fcf33a3f --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastOemUploadAPIResponse.go @@ -0,0 +1,31 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +16-供应商预测(OEM-成品)回传接口 API返回值 +alibaba.tmallgenie.scp.plan.forecast.oem.upload + +供应商预测(OEM-成品)回传接口 +*/ +type AlibabaTmallgenieScpPlanForecastOemUploadAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanForecastOemUploadAPIResponseModel +} + +// 16-供应商预测(OEM-成品)回传接口 成功返回结果 +type AlibabaTmallgenieScpPlanForecastOemUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_forecast_oem_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 参数msg + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 请求唯一ID + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 参数code + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastOemUploadResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastOemUploadResponse.go deleted file mode 100644 index bc8b8582e2..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastOemUploadResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -16-供应商预测(OEM-成品)回传接口 API返回值 -alibaba.tmallgenie.scp.plan.forecast.oem.upload - -供应商预测(OEM-成品)回传接口 -*/ -type AlibabaTmallgenieScpPlanForecastOemUploadAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanForecastOemUploadResponse -} - -// 16-供应商预测(OEM-成品)回传接口 成功返回结果 -type AlibabaTmallgenieScpPlanForecastOemUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_forecast_oem_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 参数msg - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 请求唯一ID - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 参数code - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastRawUploadAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastRawUploadAPIRequest.go new file mode 100644 index 0000000000..93f49d9a06 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastRawUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +17-供应商预测(原料-二级物料)回传接口 API请求 +alibaba.tmallgenie.scp.plan.forecast.raw.upload + +供应商预测(原料-二级物料)回传接口 +*/ +type AlibabaTmallgenieScpPlanForecastRawUploadAPIRequest struct { + model.Params + // 入参对象 + _supplierForecastRawRequest *SupplierForecastRawRequest +} + +// 初始化AlibabaTmallgenieScpPlanForecastRawUploadAPIRequest对象 +func NewAlibabaTmallgenieScpPlanForecastRawUploadRequest() *AlibabaTmallgenieScpPlanForecastRawUploadAPIRequest{ + return &AlibabaTmallgenieScpPlanForecastRawUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanForecastRawUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.forecast.raw.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanForecastRawUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SupplierForecastRawRequest Setter +// 入参对象 +func (r *AlibabaTmallgenieScpPlanForecastRawUploadAPIRequest) SetSupplierForecastRawRequest(_supplierForecastRawRequest *SupplierForecastRawRequest) error { + r._supplierForecastRawRequest = _supplierForecastRawRequest + r.Set("supplier_forecast_raw_request", _supplierForecastRawRequest) + return nil +} + +// SupplierForecastRawRequest Getter +func (r AlibabaTmallgenieScpPlanForecastRawUploadAPIRequest) GetSupplierForecastRawRequest() *SupplierForecastRawRequest { + return r._supplierForecastRawRequest +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastRawUploadAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastRawUploadAPIResponse.go new file mode 100644 index 0000000000..c01177042a --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastRawUploadAPIResponse.go @@ -0,0 +1,31 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +17-供应商预测(原料-二级物料)回传接口 API返回值 +alibaba.tmallgenie.scp.plan.forecast.raw.upload + +供应商预测(原料-二级物料)回传接口 +*/ +type AlibabaTmallgenieScpPlanForecastRawUploadAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanForecastRawUploadAPIResponseModel +} + +// 17-供应商预测(原料-二级物料)回传接口 成功返回结果 +type AlibabaTmallgenieScpPlanForecastRawUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_forecast_raw_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果msg + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 请求唯一ID + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 结果code + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastRawUploadResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastRawUploadResponse.go deleted file mode 100644 index d5cee2e46b..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanForecastRawUploadResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -17-供应商预测(原料-二级物料)回传接口 API返回值 -alibaba.tmallgenie.scp.plan.forecast.raw.upload - -供应商预测(原料-二级物料)回传接口 -*/ -type AlibabaTmallgenieScpPlanForecastRawUploadAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanForecastRawUploadResponse -} - -// 17-供应商预测(原料-二级物料)回传接口 成功返回结果 -type AlibabaTmallgenieScpPlanForecastRawUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_forecast_raw_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果msg - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 请求唯一ID - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 结果code - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanHistoryPoGetAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanHistoryPoGetAPIRequest.go new file mode 100644 index 0000000000..5b5e406d97 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanHistoryPoGetAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【已废除】11-同步历史所有的po单 API请求 +alibaba.tmallgenie.scp.plan.history.po.get + +同步历史po单 +*/ +type AlibabaTmallgenieScpPlanHistoryPoGetAPIRequest struct { + model.Params + // 扩展参数 + _requestExtendJson string +} + +// 初始化AlibabaTmallgenieScpPlanHistoryPoGetAPIRequest对象 +func NewAlibabaTmallgenieScpPlanHistoryPoGetRequest() *AlibabaTmallgenieScpPlanHistoryPoGetAPIRequest{ + return &AlibabaTmallgenieScpPlanHistoryPoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanHistoryPoGetAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.history.po.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanHistoryPoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestExtendJson Setter +// 扩展参数 +func (r *AlibabaTmallgenieScpPlanHistoryPoGetAPIRequest) SetRequestExtendJson(_requestExtendJson string) error { + r._requestExtendJson = _requestExtendJson + r.Set("request_extend_json", _requestExtendJson) + return nil +} + +// RequestExtendJson Getter +func (r AlibabaTmallgenieScpPlanHistoryPoGetAPIRequest) GetRequestExtendJson() string { + return r._requestExtendJson +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanHistoryPoGetAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanHistoryPoGetAPIResponse.go new file mode 100644 index 0000000000..20d8f817b9 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanHistoryPoGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【已废除】11-同步历史所有的po单 API返回值 +alibaba.tmallgenie.scp.plan.history.po.get + +同步历史po单 +*/ +type AlibabaTmallgenieScpPlanHistoryPoGetAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanHistoryPoGetAPIResponseModel +} + +// 【已废除】11-同步历史所有的po单 成功返回结果 +type AlibabaTmallgenieScpPlanHistoryPoGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_history_po_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanHistoryPoGetResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanHistoryPoGetResponse.go deleted file mode 100644 index 51cdd55322..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanHistoryPoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【已废除】11-同步历史所有的po单 API返回值 -alibaba.tmallgenie.scp.plan.history.po.get - -同步历史po单 -*/ -type AlibabaTmallgenieScpPlanHistoryPoGetAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanHistoryPoGetResponse -} - -// 【已废除】11-同步历史所有的po单 成功返回结果 -type AlibabaTmallgenieScpPlanHistoryPoGetResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_history_po_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIRequest.go new file mode 100644 index 0000000000..648efb3039 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【已废除】同步历史的销售数据 API请求 +alibaba.tmallgenie.scp.plan.history.sale.qty.get + +同步历史的销售数据 +*/ +type AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIRequest struct { + model.Params + // 扩展参数 + _requestExtendJson string +} + +// 初始化AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIRequest对象 +func NewAlibabaTmallgenieScpPlanHistorySaleQtyGetRequest() *AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIRequest{ + return &AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.history.sale.qty.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestExtendJson Setter +// 扩展参数 +func (r *AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIRequest) SetRequestExtendJson(_requestExtendJson string) error { + r._requestExtendJson = _requestExtendJson + r.Set("request_extend_json", _requestExtendJson) + return nil +} + +// RequestExtendJson Getter +func (r AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIRequest) GetRequestExtendJson() string { + return r._requestExtendJson +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIResponse.go new file mode 100644 index 0000000000..5b946d3b45 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【已废除】同步历史的销售数据 API返回值 +alibaba.tmallgenie.scp.plan.history.sale.qty.get + +同步历史的销售数据 +*/ +type AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIResponseModel +} + +// 【已废除】同步历史的销售数据 成功返回结果 +type AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_history_sale_qty_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanHistorySaleQtyGetResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanHistorySaleQtyGetResponse.go deleted file mode 100644 index d4c71641b6..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanHistorySaleQtyGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【已废除】同步历史的销售数据 API返回值 -alibaba.tmallgenie.scp.plan.history.sale.qty.get - -同步历史的销售数据 -*/ -type AlibabaTmallgenieScpPlanHistorySaleQtyGetAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanHistorySaleQtyGetResponse -} - -// 【已废除】同步历史的销售数据 成功返回结果 -type AlibabaTmallgenieScpPlanHistorySaleQtyGetResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_history_sale_qty_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanInventorQtyGetAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanInventorQtyGetAPIRequest.go new file mode 100644 index 0000000000..5571e3b2c2 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanInventorQtyGetAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +10-同步库存现有量 API请求 +alibaba.tmallgenie.scp.plan.inventor.qty.get + +同步库存现有量 +*/ +type AlibabaTmallgenieScpPlanInventorQtyGetAPIRequest struct { + model.Params + // 扩展参数 + _requestExtendJson string +} + +// 初始化AlibabaTmallgenieScpPlanInventorQtyGetAPIRequest对象 +func NewAlibabaTmallgenieScpPlanInventorQtyGetRequest() *AlibabaTmallgenieScpPlanInventorQtyGetAPIRequest{ + return &AlibabaTmallgenieScpPlanInventorQtyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanInventorQtyGetAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.inventor.qty.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanInventorQtyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestExtendJson Setter +// 扩展参数 +func (r *AlibabaTmallgenieScpPlanInventorQtyGetAPIRequest) SetRequestExtendJson(_requestExtendJson string) error { + r._requestExtendJson = _requestExtendJson + r.Set("request_extend_json", _requestExtendJson) + return nil +} + +// RequestExtendJson Getter +func (r AlibabaTmallgenieScpPlanInventorQtyGetAPIRequest) GetRequestExtendJson() string { + return r._requestExtendJson +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanInventorQtyGetAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanInventorQtyGetAPIResponse.go new file mode 100644 index 0000000000..8cfcebcc9d --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanInventorQtyGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +10-同步库存现有量 API返回值 +alibaba.tmallgenie.scp.plan.inventor.qty.get + +同步库存现有量 +*/ +type AlibabaTmallgenieScpPlanInventorQtyGetAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanInventorQtyGetAPIResponseModel +} + +// 10-同步库存现有量 成功返回结果 +type AlibabaTmallgenieScpPlanInventorQtyGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_inventor_qty_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanInventorQtyGetResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanInventorQtyGetResponse.go deleted file mode 100644 index 9b872a4b32..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanInventorQtyGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -10-同步库存现有量 API返回值 -alibaba.tmallgenie.scp.plan.inventor.qty.get - -同步库存现有量 -*/ -type AlibabaTmallgenieScpPlanInventorQtyGetAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanInventorQtyGetResponse -} - -// 10-同步库存现有量 成功返回结果 -type AlibabaTmallgenieScpPlanInventorQtyGetResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_inventor_qty_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanLocationQuoteUploadAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanLocationQuoteUploadAPIRequest.go new file mode 100644 index 0000000000..8f895ac408 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanLocationQuoteUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +9.2-同步地点配额 API请求 +alibaba.tmallgenie.scp.plan.location.quote.upload + +同步地点配额 +*/ +type AlibabaTmallgenieScpPlanLocationQuoteUploadAPIRequest struct { + model.Params + // 对象 + _netDemandRequest *NetDemandRequest +} + +// 初始化AlibabaTmallgenieScpPlanLocationQuoteUploadAPIRequest对象 +func NewAlibabaTmallgenieScpPlanLocationQuoteUploadRequest() *AlibabaTmallgenieScpPlanLocationQuoteUploadAPIRequest{ + return &AlibabaTmallgenieScpPlanLocationQuoteUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanLocationQuoteUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.location.quote.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanLocationQuoteUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NetDemandRequest Setter +// 对象 +func (r *AlibabaTmallgenieScpPlanLocationQuoteUploadAPIRequest) SetNetDemandRequest(_netDemandRequest *NetDemandRequest) error { + r._netDemandRequest = _netDemandRequest + r.Set("net_demand_request", _netDemandRequest) + return nil +} + +// NetDemandRequest Getter +func (r AlibabaTmallgenieScpPlanLocationQuoteUploadAPIRequest) GetNetDemandRequest() *NetDemandRequest { + return r._netDemandRequest +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanLocationQuoteUploadAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanLocationQuoteUploadAPIResponse.go new file mode 100644 index 0000000000..ca553dc228 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanLocationQuoteUploadAPIResponse.go @@ -0,0 +1,33 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +9.2-同步地点配额 API返回值 +alibaba.tmallgenie.scp.plan.location.quote.upload + +同步地点配额 +*/ +type AlibabaTmallgenieScpPlanLocationQuoteUploadAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanLocationQuoteUploadAPIResponseModel +} + +// 9.2-同步地点配额 成功返回结果 +type AlibabaTmallgenieScpPlanLocationQuoteUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_location_quote_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 请求唯一ID + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 返回码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 对象列表 + DataList []ChannelQuotaDto `json:"data_list,omitempty" xml:"data_list>channel_quota_dto,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanLocationQuoteUploadResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanLocationQuoteUploadResponse.go deleted file mode 100644 index f3d1637fd0..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanLocationQuoteUploadResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -9.2-同步地点配额 API返回值 -alibaba.tmallgenie.scp.plan.location.quote.upload - -同步地点配额 -*/ -type AlibabaTmallgenieScpPlanLocationQuoteUploadAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanLocationQuoteUploadResponse -} - -// 9.2-同步地点配额 成功返回结果 -type AlibabaTmallgenieScpPlanLocationQuoteUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_location_quote_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 请求唯一ID - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 返回码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 对象列表 - DataList []ChannelQuotaDto `json:"data_list,omitempty" xml:"data_list>channel_quota_dto,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIRequest.go new file mode 100644 index 0000000000..c9d654f7b8 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物料的采购属性查询 API请求 +alibaba.tmallgenie.scp.plan.material.purchase.attr.get + +物料的采购属性查询 +*/ +type AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIRequest struct { + model.Params + // 扩展字段 + _requestExtendJson string +} + +// 初始化AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIRequest对象 +func NewAlibabaTmallgenieScpPlanMaterialPurchaseAttrGetRequest() *AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIRequest{ + return &AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.material.purchase.attr.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestExtendJson Setter +// 扩展字段 +func (r *AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIRequest) SetRequestExtendJson(_requestExtendJson string) error { + r._requestExtendJson = _requestExtendJson + r.Set("request_extend_json", _requestExtendJson) + return nil +} + +// RequestExtendJson Getter +func (r AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIRequest) GetRequestExtendJson() string { + return r._requestExtendJson +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIResponse.go new file mode 100644 index 0000000000..ad04dcbb9d --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物料的采购属性查询 API返回值 +alibaba.tmallgenie.scp.plan.material.purchase.attr.get + +物料的采购属性查询 +*/ +type AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIResponseModel +} + +// 物料的采购属性查询 成功返回结果 +type AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_material_purchase_attr_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetResponse.go deleted file mode 100644 index 4b8a6fdfd9..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物料的采购属性查询 API返回值 -alibaba.tmallgenie.scp.plan.material.purchase.attr.get - -物料的采购属性查询 -*/ -type AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetResponse -} - -// 物料的采购属性查询 成功返回结果 -type AlibabaTmallgenieScpPlanMaterialPurchaseAttrGetResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_material_purchase_attr_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterielGetAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterielGetAPIRequest.go new file mode 100644 index 0000000000..444184abe5 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterielGetAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +1-IBP同步物料接口 API请求 +alibaba.tmallgenie.scp.plan.materiel.get + +IBP同步物料接口 +*/ +type AlibabaTmallgenieScpPlanMaterielGetAPIRequest struct { + model.Params + // 扩展字段 + _requestExtendJson string +} + +// 初始化AlibabaTmallgenieScpPlanMaterielGetAPIRequest对象 +func NewAlibabaTmallgenieScpPlanMaterielGetRequest() *AlibabaTmallgenieScpPlanMaterielGetAPIRequest{ + return &AlibabaTmallgenieScpPlanMaterielGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanMaterielGetAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.materiel.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanMaterielGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestExtendJson Setter +// 扩展字段 +func (r *AlibabaTmallgenieScpPlanMaterielGetAPIRequest) SetRequestExtendJson(_requestExtendJson string) error { + r._requestExtendJson = _requestExtendJson + r.Set("request_extend_json", _requestExtendJson) + return nil +} + +// RequestExtendJson Getter +func (r AlibabaTmallgenieScpPlanMaterielGetAPIRequest) GetRequestExtendJson() string { + return r._requestExtendJson +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterielGetAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterielGetAPIResponse.go new file mode 100644 index 0000000000..00be52f80f --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterielGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +1-IBP同步物料接口 API返回值 +alibaba.tmallgenie.scp.plan.materiel.get + +IBP同步物料接口 +*/ +type AlibabaTmallgenieScpPlanMaterielGetAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanMaterielGetAPIResponseModel +} + +// 1-IBP同步物料接口 成功返回结果 +type AlibabaTmallgenieScpPlanMaterielGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_materiel_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterielGetResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterielGetResponse.go deleted file mode 100644 index 6eed59295d..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanMaterielGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -1-IBP同步物料接口 API返回值 -alibaba.tmallgenie.scp.plan.materiel.get - -IBP同步物料接口 -*/ -type AlibabaTmallgenieScpPlanMaterielGetAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanMaterielGetResponse -} - -// 1-IBP同步物料接口 成功返回结果 -type AlibabaTmallgenieScpPlanMaterielGetResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_materiel_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanMouthfourUploadAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanMouthfourUploadAPIRequest.go new file mode 100644 index 0000000000..7ca9732fcc --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanMouthfourUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +21-M+4PR 回传接口接口 API请求 +alibaba.tmallgenie.scp.plan.mouthfour.upload + +M+4 PR 回传接口 +*/ +type AlibabaTmallgenieScpPlanMouthfourUploadAPIRequest struct { + model.Params + // 请求参数 + _monthFourPrRequest *MonthFourPrRequest +} + +// 初始化AlibabaTmallgenieScpPlanMouthfourUploadAPIRequest对象 +func NewAlibabaTmallgenieScpPlanMouthfourUploadRequest() *AlibabaTmallgenieScpPlanMouthfourUploadAPIRequest{ + return &AlibabaTmallgenieScpPlanMouthfourUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanMouthfourUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.mouthfour.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanMouthfourUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MonthFourPrRequest Setter +// 请求参数 +func (r *AlibabaTmallgenieScpPlanMouthfourUploadAPIRequest) SetMonthFourPrRequest(_monthFourPrRequest *MonthFourPrRequest) error { + r._monthFourPrRequest = _monthFourPrRequest + r.Set("month_four_pr_request", _monthFourPrRequest) + return nil +} + +// MonthFourPrRequest Getter +func (r AlibabaTmallgenieScpPlanMouthfourUploadAPIRequest) GetMonthFourPrRequest() *MonthFourPrRequest { + return r._monthFourPrRequest +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanMouthfourUploadAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanMouthfourUploadAPIResponse.go new file mode 100644 index 0000000000..3e48a53152 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanMouthfourUploadAPIResponse.go @@ -0,0 +1,31 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +21-M+4PR 回传接口接口 API返回值 +alibaba.tmallgenie.scp.plan.mouthfour.upload + +M+4 PR 回传接口 +*/ +type AlibabaTmallgenieScpPlanMouthfourUploadAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanMouthfourUploadAPIResponseModel +} + +// 21-M+4PR 回传接口接口 成功返回结果 +type AlibabaTmallgenieScpPlanMouthfourUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_mouthfour_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果msg + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 请求唯一ID + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 结果code + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanMouthfourUploadResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanMouthfourUploadResponse.go deleted file mode 100644 index adf4bf5d19..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanMouthfourUploadResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -21-M+4PR 回传接口接口 API返回值 -alibaba.tmallgenie.scp.plan.mouthfour.upload - -M+4 PR 回传接口 -*/ -type AlibabaTmallgenieScpPlanMouthfourUploadAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanMouthfourUploadResponse -} - -// 21-M+4PR 回传接口接口 成功返回结果 -type AlibabaTmallgenieScpPlanMouthfourUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_mouthfour_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果msg - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 请求唯一ID - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 结果code - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandRawUploadAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandRawUploadAPIRequest.go new file mode 100644 index 0000000000..5f2b7fc373 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandRawUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +二级物料净需求回传(TL+1) API请求 +alibaba.tmallgenie.scp.plan.netdemand.raw.upload + +二级物料净需求回传(TL+1) +*/ +type AlibabaTmallgenieScpPlanNetdemandRawUploadAPIRequest struct { + model.Params + // 对象 + _netDemandRawRequest *NetDemandRawRequest +} + +// 初始化AlibabaTmallgenieScpPlanNetdemandRawUploadAPIRequest对象 +func NewAlibabaTmallgenieScpPlanNetdemandRawUploadRequest() *AlibabaTmallgenieScpPlanNetdemandRawUploadAPIRequest{ + return &AlibabaTmallgenieScpPlanNetdemandRawUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanNetdemandRawUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.netdemand.raw.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanNetdemandRawUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NetDemandRawRequest Setter +// 对象 +func (r *AlibabaTmallgenieScpPlanNetdemandRawUploadAPIRequest) SetNetDemandRawRequest(_netDemandRawRequest *NetDemandRawRequest) error { + r._netDemandRawRequest = _netDemandRawRequest + r.Set("net_demand_raw_request", _netDemandRawRequest) + return nil +} + +// NetDemandRawRequest Getter +func (r AlibabaTmallgenieScpPlanNetdemandRawUploadAPIRequest) GetNetDemandRawRequest() *NetDemandRawRequest { + return r._netDemandRawRequest +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandRawUploadAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandRawUploadAPIResponse.go new file mode 100644 index 0000000000..cc5bb4180a --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandRawUploadAPIResponse.go @@ -0,0 +1,31 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +二级物料净需求回传(TL+1) API返回值 +alibaba.tmallgenie.scp.plan.netdemand.raw.upload + +二级物料净需求回传(TL+1) +*/ +type AlibabaTmallgenieScpPlanNetdemandRawUploadAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanNetdemandRawUploadAPIResponseModel +} + +// 二级物料净需求回传(TL+1) 成功返回结果 +type AlibabaTmallgenieScpPlanNetdemandRawUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_netdemand_raw_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 请求唯一ID + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 返回码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandRawUploadResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandRawUploadResponse.go deleted file mode 100644 index ed04682af2..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandRawUploadResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -二级物料净需求回传(TL+1) API返回值 -alibaba.tmallgenie.scp.plan.netdemand.raw.upload - -二级物料净需求回传(TL+1) -*/ -type AlibabaTmallgenieScpPlanNetdemandRawUploadAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanNetdemandRawUploadResponse -} - -// 二级物料净需求回传(TL+1) 成功返回结果 -type AlibabaTmallgenieScpPlanNetdemandRawUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_netdemand_raw_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 请求唯一ID - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 返回码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandUploadAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandUploadAPIRequest.go new file mode 100644 index 0000000000..e63239e9ce --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +23-Net Demand净需求回传 API请求 +alibaba.tmallgenie.scp.plan.netdemand.upload + +Net Demand净需求回传 +*/ +type AlibabaTmallgenieScpPlanNetdemandUploadAPIRequest struct { + model.Params + // 对象 + _netDemandRequest *NetDemandRequest +} + +// 初始化AlibabaTmallgenieScpPlanNetdemandUploadAPIRequest对象 +func NewAlibabaTmallgenieScpPlanNetdemandUploadRequest() *AlibabaTmallgenieScpPlanNetdemandUploadAPIRequest{ + return &AlibabaTmallgenieScpPlanNetdemandUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanNetdemandUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.netdemand.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanNetdemandUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NetDemandRequest Setter +// 对象 +func (r *AlibabaTmallgenieScpPlanNetdemandUploadAPIRequest) SetNetDemandRequest(_netDemandRequest *NetDemandRequest) error { + r._netDemandRequest = _netDemandRequest + r.Set("net_demand_request", _netDemandRequest) + return nil +} + +// NetDemandRequest Getter +func (r AlibabaTmallgenieScpPlanNetdemandUploadAPIRequest) GetNetDemandRequest() *NetDemandRequest { + return r._netDemandRequest +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandUploadAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandUploadAPIResponse.go new file mode 100644 index 0000000000..cd268d9054 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandUploadAPIResponse.go @@ -0,0 +1,31 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +23-Net Demand净需求回传 API返回值 +alibaba.tmallgenie.scp.plan.netdemand.upload + +Net Demand净需求回传 +*/ +type AlibabaTmallgenieScpPlanNetdemandUploadAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanNetdemandUploadAPIResponseModel +} + +// 23-Net Demand净需求回传 成功返回结果 +type AlibabaTmallgenieScpPlanNetdemandUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_netdemand_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 请求唯一ID + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 返回码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandUploadResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandUploadResponse.go deleted file mode 100644 index 3f8e25dfe4..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanNetdemandUploadResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -23-Net Demand净需求回传 API返回值 -alibaba.tmallgenie.scp.plan.netdemand.upload - -Net Demand净需求回传 -*/ -type AlibabaTmallgenieScpPlanNetdemandUploadAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanNetdemandUploadResponse -} - -// 23-Net Demand净需求回传 成功返回结果 -type AlibabaTmallgenieScpPlanNetdemandUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_netdemand_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 请求唯一ID - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 返回码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanRawpoGapReturnAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanRawpoGapReturnAPIRequest.go new file mode 100644 index 0000000000..50eafdc821 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanRawpoGapReturnAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +二级物料-LT内的POGAP数据回传 API请求 +alibaba.tmallgenie.scp.plan.rawpo.gap.return + +二级物料-LT内的POGAP数据回传 +*/ +type AlibabaTmallgenieScpPlanRawpoGapReturnAPIRequest struct { + model.Params + // 请求对象 + _rawPogapRequest *RawPurchaseOrderGapRequest +} + +// 初始化AlibabaTmallgenieScpPlanRawpoGapReturnAPIRequest对象 +func NewAlibabaTmallgenieScpPlanRawpoGapReturnRequest() *AlibabaTmallgenieScpPlanRawpoGapReturnAPIRequest{ + return &AlibabaTmallgenieScpPlanRawpoGapReturnAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanRawpoGapReturnAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.rawpo.gap.return" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanRawpoGapReturnAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RawPogapRequest Setter +// 请求对象 +func (r *AlibabaTmallgenieScpPlanRawpoGapReturnAPIRequest) SetRawPogapRequest(_rawPogapRequest *RawPurchaseOrderGapRequest) error { + r._rawPogapRequest = _rawPogapRequest + r.Set("raw_pogap_request", _rawPogapRequest) + return nil +} + +// RawPogapRequest Getter +func (r AlibabaTmallgenieScpPlanRawpoGapReturnAPIRequest) GetRawPogapRequest() *RawPurchaseOrderGapRequest { + return r._rawPogapRequest +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanRawpoGapReturnAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanRawpoGapReturnAPIResponse.go new file mode 100644 index 0000000000..a2aed31e42 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanRawpoGapReturnAPIResponse.go @@ -0,0 +1,31 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +二级物料-LT内的POGAP数据回传 API返回值 +alibaba.tmallgenie.scp.plan.rawpo.gap.return + +二级物料-LT内的POGAP数据回传 +*/ +type AlibabaTmallgenieScpPlanRawpoGapReturnAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanRawpoGapReturnAPIResponseModel +} + +// 二级物料-LT内的POGAP数据回传 成功返回结果 +type AlibabaTmallgenieScpPlanRawpoGapReturnAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_rawpo_gap_return_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 请求唯一ID + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 返回码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanRawpoGapReturnResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanRawpoGapReturnResponse.go deleted file mode 100644 index 8b63855905..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanRawpoGapReturnResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -二级物料-LT内的POGAP数据回传 API返回值 -alibaba.tmallgenie.scp.plan.rawpo.gap.return - -二级物料-LT内的POGAP数据回传 -*/ -type AlibabaTmallgenieScpPlanRawpoGapReturnAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanRawpoGapReturnResponse -} - -// 二级物料-LT内的POGAP数据回传 成功返回结果 -type AlibabaTmallgenieScpPlanRawpoGapReturnResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_rawpo_gap_return_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 请求唯一ID - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 返回码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleQtyGetAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleQtyGetAPIRequest.go new file mode 100644 index 0000000000..9d16204e26 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleQtyGetAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +12-同步销售数据 API请求 +alibaba.tmallgenie.scp.plan.sale.qty.get + +同步销售数据 +*/ +type AlibabaTmallgenieScpPlanSaleQtyGetAPIRequest struct { + model.Params + // 扩展参数 + _requestExtendJson string +} + +// 初始化AlibabaTmallgenieScpPlanSaleQtyGetAPIRequest对象 +func NewAlibabaTmallgenieScpPlanSaleQtyGetRequest() *AlibabaTmallgenieScpPlanSaleQtyGetAPIRequest{ + return &AlibabaTmallgenieScpPlanSaleQtyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanSaleQtyGetAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.sale.qty.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanSaleQtyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestExtendJson Setter +// 扩展参数 +func (r *AlibabaTmallgenieScpPlanSaleQtyGetAPIRequest) SetRequestExtendJson(_requestExtendJson string) error { + r._requestExtendJson = _requestExtendJson + r.Set("request_extend_json", _requestExtendJson) + return nil +} + +// RequestExtendJson Getter +func (r AlibabaTmallgenieScpPlanSaleQtyGetAPIRequest) GetRequestExtendJson() string { + return r._requestExtendJson +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleQtyGetAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleQtyGetAPIResponse.go new file mode 100644 index 0000000000..20e6eaf2e2 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleQtyGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +12-同步销售数据 API返回值 +alibaba.tmallgenie.scp.plan.sale.qty.get + +同步销售数据 +*/ +type AlibabaTmallgenieScpPlanSaleQtyGetAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanSaleQtyGetAPIResponseModel +} + +// 12-同步销售数据 成功返回结果 +type AlibabaTmallgenieScpPlanSaleQtyGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_sale_qty_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleQtyGetResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleQtyGetResponse.go deleted file mode 100644 index a12bed3e72..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleQtyGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -12-同步销售数据 API返回值 -alibaba.tmallgenie.scp.plan.sale.qty.get - -同步销售数据 -*/ -type AlibabaTmallgenieScpPlanSaleQtyGetAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanSaleQtyGetResponse -} - -// 12-同步销售数据 成功返回结果 -type AlibabaTmallgenieScpPlanSaleQtyGetResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_sale_qty_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIRequest.go new file mode 100644 index 0000000000..768a734dd5 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +24-销售月预测数量(产管)回传-月度 API请求 +alibaba.tmallgenie.scp.plan.saleforcast.pm.month.upload + +销售月预测数量(产管)回传-月度 +*/ +type AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIRequest struct { + model.Params + // 入参 + _salesForecastRequest *SalesForecastRequest +} + +// 初始化AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIRequest对象 +func NewAlibabaTmallgenieScpPlanSaleforcastPmMonthUploadRequest() *AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIRequest{ + return &AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.saleforcast.pm.month.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SalesForecastRequest Setter +// 入参 +func (r *AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIRequest) SetSalesForecastRequest(_salesForecastRequest *SalesForecastRequest) error { + r._salesForecastRequest = _salesForecastRequest + r.Set("sales_forecast_request", _salesForecastRequest) + return nil +} + +// SalesForecastRequest Getter +func (r AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIRequest) GetSalesForecastRequest() *SalesForecastRequest { + return r._salesForecastRequest +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIResponse.go new file mode 100644 index 0000000000..d7882d6783 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIResponse.go @@ -0,0 +1,31 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +24-销售月预测数量(产管)回传-月度 API返回值 +alibaba.tmallgenie.scp.plan.saleforcast.pm.month.upload + +销售月预测数量(产管)回传-月度 +*/ +type AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIResponseModel +} + +// 24-销售月预测数量(产管)回传-月度 成功返回结果 +type AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_saleforcast_pm_month_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 请求唯一ID + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 返回码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadResponse.go deleted file mode 100644 index 2806a80c90..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -24-销售月预测数量(产管)回传-月度 API返回值 -alibaba.tmallgenie.scp.plan.saleforcast.pm.month.upload - -销售月预测数量(产管)回传-月度 -*/ -type AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadResponse -} - -// 24-销售月预测数量(产管)回传-月度 成功返回结果 -type AlibabaTmallgenieScpPlanSaleforcastPmMonthUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_saleforcast_pm_month_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 请求唯一ID - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 返回码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIRequest.go new file mode 100644 index 0000000000..bfbb541477 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +18-销售预测数量(产管)回传接口 API请求 +alibaba.tmallgenie.scp.plan.saleforcast.pm.upload + +销售预测数量(产管)回传接口 +*/ +type AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIRequest struct { + model.Params + // 入参 + _salesForecastRequest *SalesForecastRequest +} + +// 初始化AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIRequest对象 +func NewAlibabaTmallgenieScpPlanSaleforcastPmUploadRequest() *AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIRequest{ + return &AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.saleforcast.pm.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SalesForecastRequest Setter +// 入参 +func (r *AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIRequest) SetSalesForecastRequest(_salesForecastRequest *SalesForecastRequest) error { + r._salesForecastRequest = _salesForecastRequest + r.Set("sales_forecast_request", _salesForecastRequest) + return nil +} + +// SalesForecastRequest Getter +func (r AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIRequest) GetSalesForecastRequest() *SalesForecastRequest { + return r._salesForecastRequest +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIResponse.go new file mode 100644 index 0000000000..d9aaaf31fc --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIResponse.go @@ -0,0 +1,31 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +18-销售预测数量(产管)回传接口 API返回值 +alibaba.tmallgenie.scp.plan.saleforcast.pm.upload + +销售预测数量(产管)回传接口 +*/ +type AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIResponseModel +} + +// 18-销售预测数量(产管)回传接口 成功返回结果 +type AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_saleforcast_pm_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 请求唯一ID + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 返回码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmUploadResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmUploadResponse.go deleted file mode 100644 index 0926ba7434..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastPmUploadResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -18-销售预测数量(产管)回传接口 API返回值 -alibaba.tmallgenie.scp.plan.saleforcast.pm.upload - -销售预测数量(产管)回传接口 -*/ -type AlibabaTmallgenieScpPlanSaleforcastPmUploadAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanSaleforcastPmUploadResponse -} - -// 18-销售预测数量(产管)回传接口 成功返回结果 -type AlibabaTmallgenieScpPlanSaleforcastPmUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_saleforcast_pm_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 请求唯一ID - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 返回码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIRequest.go new file mode 100644 index 0000000000..8f3507dca7 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +19-销售预测数量(销管)回传接口 API请求 +alibaba.tmallgenie.scp.plan.saleforcast.saler.upload + +销售预测数量(销管)回传接口 +*/ +type AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIRequest struct { + model.Params + // 入参 + _salesForecastRequest *SalesForecastRequest +} + +// 初始化AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIRequest对象 +func NewAlibabaTmallgenieScpPlanSaleforcastSalerUploadRequest() *AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIRequest{ + return &AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.saleforcast.saler.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SalesForecastRequest Setter +// 入参 +func (r *AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIRequest) SetSalesForecastRequest(_salesForecastRequest *SalesForecastRequest) error { + r._salesForecastRequest = _salesForecastRequest + r.Set("sales_forecast_request", _salesForecastRequest) + return nil +} + +// SalesForecastRequest Getter +func (r AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIRequest) GetSalesForecastRequest() *SalesForecastRequest { + return r._salesForecastRequest +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIResponse.go new file mode 100644 index 0000000000..e409a55d45 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIResponse.go @@ -0,0 +1,31 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +19-销售预测数量(销管)回传接口 API返回值 +alibaba.tmallgenie.scp.plan.saleforcast.saler.upload + +销售预测数量(销管)回传接口 +*/ +type AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIResponseModel +} + +// 19-销售预测数量(销管)回传接口 成功返回结果 +type AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_saleforcast_saler_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 参数msg + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 请求唯一id + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 参数code + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastSalerUploadResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastSalerUploadResponse.go deleted file mode 100644 index c5af5d1105..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSaleforcastSalerUploadResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -19-销售预测数量(销管)回传接口 API返回值 -alibaba.tmallgenie.scp.plan.saleforcast.saler.upload - -销售预测数量(销管)回传接口 -*/ -type AlibabaTmallgenieScpPlanSaleforcastSalerUploadAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanSaleforcastSalerUploadResponse -} - -// 19-销售预测数量(销管)回传接口 成功返回结果 -type AlibabaTmallgenieScpPlanSaleforcastSalerUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_saleforcast_saler_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 参数msg - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 请求唯一id - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 参数code - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIRequest.go new file mode 100644 index 0000000000..9375519699 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +标准供应商配额同步 API请求 +alibaba.tmallgenie.scp.plan.sku.supplier.quote.upload + +标准供应商配额同步 +*/ +type AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIRequest struct { + model.Params + // 对象 + _netDemandRequest *NetDemandRequest +} + +// 初始化AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIRequest对象 +func NewAlibabaTmallgenieScpPlanSkuSupplierQuoteUploadRequest() *AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIRequest{ + return &AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.sku.supplier.quote.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NetDemandRequest Setter +// 对象 +func (r *AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIRequest) SetNetDemandRequest(_netDemandRequest *NetDemandRequest) error { + r._netDemandRequest = _netDemandRequest + r.Set("net_demand_request", _netDemandRequest) + return nil +} + +// NetDemandRequest Getter +func (r AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIRequest) GetNetDemandRequest() *NetDemandRequest { + return r._netDemandRequest +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIResponse.go new file mode 100644 index 0000000000..519684f538 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIResponse.go @@ -0,0 +1,33 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +标准供应商配额同步 API返回值 +alibaba.tmallgenie.scp.plan.sku.supplier.quote.upload + +标准供应商配额同步 +*/ +type AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIResponseModel +} + +// 标准供应商配额同步 成功返回结果 +type AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_sku_supplier_quote_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 请求唯一ID + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 返回码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 对象列表 + DataList []ChannelQuotaDto `json:"data_list,omitempty" xml:"data_list>channel_quota_dto,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadResponse.go deleted file mode 100644 index 3764151896..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -标准供应商配额同步 API返回值 -alibaba.tmallgenie.scp.plan.sku.supplier.quote.upload - -标准供应商配额同步 -*/ -type AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadResponse -} - -// 标准供应商配额同步 成功返回结果 -type AlibabaTmallgenieScpPlanSkuSupplierQuoteUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_sku_supplier_quote_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 请求唯一ID - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 返回码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 对象列表 - DataList []ChannelQuotaDto `json:"data_list,omitempty" xml:"data_list>channel_quota_dto,omitempty"` -} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIRequest.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIRequest.go new file mode 100644 index 0000000000..e2e4e8e5b7 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIRequest.go @@ -0,0 +1,52 @@ +package tmallgeniescp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同步销售数据按照渠道类型汇总 API请求 +alibaba.tmallgenie.scp.plan.summary.sale.qty.get + +同步销售数据按照渠道类型汇总 +*/ +type AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIRequest struct { + model.Params + // 扩展参数 + _requestExtendJson string +} + +// 初始化AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIRequest对象 +func NewAlibabaTmallgenieScpPlanSummarySaleQtyGetRequest() *AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIRequest{ + return &AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIRequest) GetApiMethodName() string { + return "alibaba.tmallgenie.scp.plan.summary.sale.qty.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestExtendJson Setter +// 扩展参数 +func (r *AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIRequest) SetRequestExtendJson(_requestExtendJson string) error { + r._requestExtendJson = _requestExtendJson + r.Set("request_extend_json", _requestExtendJson) + return nil +} + +// RequestExtendJson Getter +func (r AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIRequest) GetRequestExtendJson() string { + return r._requestExtendJson +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIResponse.go new file mode 100644 index 0000000000..37de9945f5 --- /dev/null +++ b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallgeniescp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同步销售数据按照渠道类型汇总 API返回值 +alibaba.tmallgenie.scp.plan.summary.sale.qty.get + +同步销售数据按照渠道类型汇总 +*/ +type AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIResponse struct { + model.CommonResponse + AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIResponseModel +} + +// 同步销售数据按照渠道类型汇总 成功返回结果 +type AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_summary_sale_qty_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSummarySaleQtyGetResponse.go b/model/tmallgeniescp/AlibabaTmallgenieScpPlanSummarySaleQtyGetResponse.go deleted file mode 100644 index a6a9c6d976..0000000000 --- a/model/tmallgeniescp/AlibabaTmallgenieScpPlanSummarySaleQtyGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallgeniescp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同步销售数据按照渠道类型汇总 API返回值 -alibaba.tmallgenie.scp.plan.summary.sale.qty.get - -同步销售数据按照渠道类型汇总 -*/ -type AlibabaTmallgenieScpPlanSummarySaleQtyGetAPIResponse struct { - model.CommonResponse - AlibabaTmallgenieScpPlanSummarySaleQtyGetResponse -} - -// 同步销售数据按照渠道类型汇总 成功返回结果 -type AlibabaTmallgenieScpPlanSummarySaleQtyGetResponse struct { - XMLName xml.Name `xml:"alibaba_tmallgenie_scp_plan_summary_sale_qty_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallhk/TmallHkClearanceDistributionGetAPIRequest.go b/model/tmallhk/TmallHkClearanceDistributionGetAPIRequest.go new file mode 100644 index 0000000000..c2926abc0f --- /dev/null +++ b/model/tmallhk/TmallHkClearanceDistributionGetAPIRequest.go @@ -0,0 +1,66 @@ +package tmallhk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分销供应商获取清关材料 API请求 +tmall.hk.clearance.distribution.get + +供销体系下,提供供应商可以直接获取其订单身份证信息的接口,以使其完成清关。 +*/ +type TmallHkClearanceDistributionGetAPIRequest struct { + model.Params + // 订单号 + _orderId int64 + // 是否需要身份证图片,不需要可以缩短接口响应时间 + _needImage bool +} + +// 初始化TmallHkClearanceDistributionGetAPIRequest对象 +func NewTmallHkClearanceDistributionGetRequest() *TmallHkClearanceDistributionGetAPIRequest{ + return &TmallHkClearanceDistributionGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallHkClearanceDistributionGetAPIRequest) GetApiMethodName() string { + return "tmall.hk.clearance.distribution.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallHkClearanceDistributionGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单号 +func (r *TmallHkClearanceDistributionGetAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TmallHkClearanceDistributionGetAPIRequest) GetOrderId() int64 { + return r._orderId +} +// NeedImage Setter +// 是否需要身份证图片,不需要可以缩短接口响应时间 +func (r *TmallHkClearanceDistributionGetAPIRequest) SetNeedImage(_needImage bool) error { + r._needImage = _needImage + r.Set("need_image", _needImage) + return nil +} + +// NeedImage Getter +func (r TmallHkClearanceDistributionGetAPIRequest) GetNeedImage() bool { + return r._needImage +} diff --git a/model/tmallhk/TmallHkClearanceDistributionGetAPIResponse.go b/model/tmallhk/TmallHkClearanceDistributionGetAPIResponse.go new file mode 100644 index 0000000000..f19f94ca3c --- /dev/null +++ b/model/tmallhk/TmallHkClearanceDistributionGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallhk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分销供应商获取清关材料 API返回值 +tmall.hk.clearance.distribution.get + +供销体系下,提供供应商可以直接获取其订单身份证信息的接口,以使其完成清关。 +*/ +type TmallHkClearanceDistributionGetAPIResponse struct { + model.CommonResponse + TmallHkClearanceDistributionGetAPIResponseModel +} + +// 分销供应商获取清关材料 成功返回结果 +type TmallHkClearanceDistributionGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_hk_clearance_distribution_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果对象 + Result *CertifyQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallhk/TmallHkClearanceDistributionGetResponse.go b/model/tmallhk/TmallHkClearanceDistributionGetResponse.go deleted file mode 100644 index 6f40c55e79..0000000000 --- a/model/tmallhk/TmallHkClearanceDistributionGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallhk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分销供应商获取清关材料 API返回值 -tmall.hk.clearance.distribution.get - -供销体系下,提供供应商可以直接获取其订单身份证信息的接口,以使其完成清关。 -*/ -type TmallHkClearanceDistributionGetAPIResponse struct { - model.CommonResponse - TmallHkClearanceDistributionGetResponse -} - -// 分销供应商获取清关材料 成功返回结果 -type TmallHkClearanceDistributionGetResponse struct { - XMLName xml.Name `xml:"tmall_hk_clearance_distribution_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果对象 - Result *CertifyQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallhk/TmallHkClearanceGetAPIRequest.go b/model/tmallhk/TmallHkClearanceGetAPIRequest.go new file mode 100644 index 0000000000..266892a051 --- /dev/null +++ b/model/tmallhk/TmallHkClearanceGetAPIRequest.go @@ -0,0 +1,66 @@ +package tmallhk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫国际-清关材料查询 API请求 +tmall.hk.clearance.get + +提供订单收货人身份信息查询功能。 +*/ +type TmallHkClearanceGetAPIRequest struct { + model.Params + // 天猫国际订单号 + _orderId int64 + // 是否需要身份证图片,不需要可以缩短接口响应时间 + _needImage bool +} + +// 初始化TmallHkClearanceGetAPIRequest对象 +func NewTmallHkClearanceGetRequest() *TmallHkClearanceGetAPIRequest{ + return &TmallHkClearanceGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallHkClearanceGetAPIRequest) GetApiMethodName() string { + return "tmall.hk.clearance.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallHkClearanceGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 天猫国际订单号 +func (r *TmallHkClearanceGetAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TmallHkClearanceGetAPIRequest) GetOrderId() int64 { + return r._orderId +} +// NeedImage Setter +// 是否需要身份证图片,不需要可以缩短接口响应时间 +func (r *TmallHkClearanceGetAPIRequest) SetNeedImage(_needImage bool) error { + r._needImage = _needImage + r.Set("need_image", _needImage) + return nil +} + +// NeedImage Getter +func (r TmallHkClearanceGetAPIRequest) GetNeedImage() bool { + return r._needImage +} diff --git a/model/tmallhk/TmallHkClearanceGetAPIResponse.go b/model/tmallhk/TmallHkClearanceGetAPIResponse.go new file mode 100644 index 0000000000..67c1cb582b --- /dev/null +++ b/model/tmallhk/TmallHkClearanceGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallhk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫国际-清关材料查询 API返回值 +tmall.hk.clearance.get + +提供订单收货人身份信息查询功能。 +*/ +type TmallHkClearanceGetAPIResponse struct { + model.CommonResponse + TmallHkClearanceGetAPIResponseModel +} + +// 天猫国际-清关材料查询 成功返回结果 +type TmallHkClearanceGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_hk_clearance_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果对象 + Result *CertifyQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallhk/TmallHkClearanceGetResponse.go b/model/tmallhk/TmallHkClearanceGetResponse.go deleted file mode 100644 index 6caf5a33d5..0000000000 --- a/model/tmallhk/TmallHkClearanceGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallhk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫国际-清关材料查询 API返回值 -tmall.hk.clearance.get - -提供订单收货人身份信息查询功能。 -*/ -type TmallHkClearanceGetAPIResponse struct { - model.CommonResponse - TmallHkClearanceGetResponse -} - -// 天猫国际-清关材料查询 成功返回结果 -type TmallHkClearanceGetResponse struct { - XMLName xml.Name `xml:"tmall_hk_clearance_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果对象 - Result *CertifyQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallhk/TmallHkOrderClearanceQueryAPIRequest.go b/model/tmallhk/TmallHkOrderClearanceQueryAPIRequest.go new file mode 100644 index 0000000000..a8f01bcc77 --- /dev/null +++ b/model/tmallhk/TmallHkOrderClearanceQueryAPIRequest.go @@ -0,0 +1,66 @@ +package tmallhk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫国际订单清关信息 API请求 +tmall.hk.order.clearance.query + +天猫国际订单清关信息查询 +*/ +type TmallHkOrderClearanceQueryAPIRequest struct { + model.Params + // 交易主订单号 + _bizOrderId int64 + // 调用方业务身份(由国际侧配置提供给调用方) + _businessSymbol string +} + +// 初始化TmallHkOrderClearanceQueryAPIRequest对象 +func NewTmallHkOrderClearanceQueryRequest() *TmallHkOrderClearanceQueryAPIRequest{ + return &TmallHkOrderClearanceQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallHkOrderClearanceQueryAPIRequest) GetApiMethodName() string { + return "tmall.hk.order.clearance.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallHkOrderClearanceQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizOrderId Setter +// 交易主订单号 +func (r *TmallHkOrderClearanceQueryAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r TmallHkOrderClearanceQueryAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} +// BusinessSymbol Setter +// 调用方业务身份(由国际侧配置提供给调用方) +func (r *TmallHkOrderClearanceQueryAPIRequest) SetBusinessSymbol(_businessSymbol string) error { + r._businessSymbol = _businessSymbol + r.Set("business_symbol", _businessSymbol) + return nil +} + +// BusinessSymbol Getter +func (r TmallHkOrderClearanceQueryAPIRequest) GetBusinessSymbol() string { + return r._businessSymbol +} diff --git a/model/tmallhk/TmallHkOrderClearanceQueryAPIResponse.go b/model/tmallhk/TmallHkOrderClearanceQueryAPIResponse.go new file mode 100644 index 0000000000..88f9292fe1 --- /dev/null +++ b/model/tmallhk/TmallHkOrderClearanceQueryAPIResponse.go @@ -0,0 +1,33 @@ +package tmallhk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫国际订单清关信息 API返回值 +tmall.hk.order.clearance.query + +天猫国际订单清关信息查询 +*/ +type TmallHkOrderClearanceQueryAPIResponse struct { + model.CommonResponse + TmallHkOrderClearanceQueryAPIResponseModel +} + +// 天猫国际订单清关信息 成功返回结果 +type TmallHkOrderClearanceQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_hk_order_clearance_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果码 + ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` + // 结果描述 + ResponseMessage string `json:"response_message,omitempty" xml:"response_message,omitempty"` + // 清关数据封装 + Obj *ClearanceDataDo `json:"obj,omitempty" xml:"obj,omitempty"` + // 是否正常 + Succeeded bool `json:"succeeded,omitempty" xml:"succeeded,omitempty"` +} diff --git a/model/tmallhk/TmallHkOrderClearanceQueryResponse.go b/model/tmallhk/TmallHkOrderClearanceQueryResponse.go deleted file mode 100644 index 87e77a79ca..0000000000 --- a/model/tmallhk/TmallHkOrderClearanceQueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallhk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫国际订单清关信息 API返回值 -tmall.hk.order.clearance.query - -天猫国际订单清关信息查询 -*/ -type TmallHkOrderClearanceQueryAPIResponse struct { - model.CommonResponse - TmallHkOrderClearanceQueryResponse -} - -// 天猫国际订单清关信息 成功返回结果 -type TmallHkOrderClearanceQueryResponse struct { - XMLName xml.Name `xml:"tmall_hk_order_clearance_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果码 - ResponseCode string `json:"response_code,omitempty" xml:"response_code,omitempty"` - // 结果描述 - ResponseMessage string `json:"response_message,omitempty" xml:"response_message,omitempty"` - // 清关数据封装 - Obj *ClearanceDataDo `json:"obj,omitempty" xml:"obj,omitempty"` - // 是否正常 - Succeeded bool `json:"succeeded,omitempty" xml:"succeeded,omitempty"` -} diff --git a/model/tmallhk/TmallTraceplatformAwdcInfoUploadAPIRequest.go b/model/tmallhk/TmallTraceplatformAwdcInfoUploadAPIRequest.go new file mode 100644 index 0000000000..149872b4d2 --- /dev/null +++ b/model/tmallhk/TmallTraceplatformAwdcInfoUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallhk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AWDC提交溯源信息 API请求 +tmall.traceplatform.awdc.info.upload + +天猫溯源-AWDC-上传溯源信息 +*/ +type TmallTraceplatformAwdcInfoUploadAPIRequest struct { + model.Params + // 入参traceInfo + _traceInfo *AwdcInfo +} + +// 初始化TmallTraceplatformAwdcInfoUploadAPIRequest对象 +func NewTmallTraceplatformAwdcInfoUploadRequest() *TmallTraceplatformAwdcInfoUploadAPIRequest{ + return &TmallTraceplatformAwdcInfoUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTraceplatformAwdcInfoUploadAPIRequest) GetApiMethodName() string { + return "tmall.traceplatform.awdc.info.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTraceplatformAwdcInfoUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TraceInfo Setter +// 入参traceInfo +func (r *TmallTraceplatformAwdcInfoUploadAPIRequest) SetTraceInfo(_traceInfo *AwdcInfo) error { + r._traceInfo = _traceInfo + r.Set("trace_info", _traceInfo) + return nil +} + +// TraceInfo Getter +func (r TmallTraceplatformAwdcInfoUploadAPIRequest) GetTraceInfo() *AwdcInfo { + return r._traceInfo +} diff --git a/model/tmallhk/TmallTraceplatformAwdcInfoUploadAPIResponse.go b/model/tmallhk/TmallTraceplatformAwdcInfoUploadAPIResponse.go new file mode 100644 index 0000000000..f591f3f234 --- /dev/null +++ b/model/tmallhk/TmallTraceplatformAwdcInfoUploadAPIResponse.go @@ -0,0 +1,27 @@ +package tmallhk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AWDC提交溯源信息 API返回值 +tmall.traceplatform.awdc.info.upload + +天猫溯源-AWDC-上传溯源信息 +*/ +type TmallTraceplatformAwdcInfoUploadAPIResponse struct { + model.CommonResponse + TmallTraceplatformAwdcInfoUploadAPIResponseModel +} + +// AWDC提交溯源信息 成功返回结果 +type TmallTraceplatformAwdcInfoUploadAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_traceplatform_awdc_info_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallhk/TmallTraceplatformAwdcInfoUploadResponse.go b/model/tmallhk/TmallTraceplatformAwdcInfoUploadResponse.go deleted file mode 100644 index c998ca4783..0000000000 --- a/model/tmallhk/TmallTraceplatformAwdcInfoUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallhk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AWDC提交溯源信息 API返回值 -tmall.traceplatform.awdc.info.upload - -天猫溯源-AWDC-上传溯源信息 -*/ -type TmallTraceplatformAwdcInfoUploadAPIResponse struct { - model.CommonResponse - TmallTraceplatformAwdcInfoUploadResponse -} - -// AWDC提交溯源信息 成功返回结果 -type TmallTraceplatformAwdcInfoUploadResponse struct { - XMLName xml.Name `xml:"tmall_traceplatform_awdc_info_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallhk/TmallTraceplatformCcicTracecodeCheckAPIRequest.go b/model/tmallhk/TmallTraceplatformCcicTracecodeCheckAPIRequest.go new file mode 100644 index 0000000000..634201760d --- /dev/null +++ b/model/tmallhk/TmallTraceplatformCcicTracecodeCheckAPIRequest.go @@ -0,0 +1,66 @@ +package tmallhk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ccic校验溯源码 API请求 +tmall.traceplatform.ccic.tracecode.check + +天猫国际溯源业务,需要将溯源码校验的功能输出到ccic官方主页中以增强溯源码的可信度,故需要提供api给ccic使用以校验溯源码的正确性。 +*/ +type TmallTraceplatformCcicTracecodeCheckAPIRequest struct { + model.Params + // 15为溯源短码,必选 + _shortTracecode string + // 6位暗码,必选 + _hideCode string +} + +// 初始化TmallTraceplatformCcicTracecodeCheckAPIRequest对象 +func NewTmallTraceplatformCcicTracecodeCheckRequest() *TmallTraceplatformCcicTracecodeCheckAPIRequest{ + return &TmallTraceplatformCcicTracecodeCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTraceplatformCcicTracecodeCheckAPIRequest) GetApiMethodName() string { + return "tmall.traceplatform.ccic.tracecode.check" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTraceplatformCcicTracecodeCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShortTracecode Setter +// 15为溯源短码,必选 +func (r *TmallTraceplatformCcicTracecodeCheckAPIRequest) SetShortTracecode(_shortTracecode string) error { + r._shortTracecode = _shortTracecode + r.Set("short_tracecode", _shortTracecode) + return nil +} + +// ShortTracecode Getter +func (r TmallTraceplatformCcicTracecodeCheckAPIRequest) GetShortTracecode() string { + return r._shortTracecode +} +// HideCode Setter +// 6位暗码,必选 +func (r *TmallTraceplatformCcicTracecodeCheckAPIRequest) SetHideCode(_hideCode string) error { + r._hideCode = _hideCode + r.Set("hide_code", _hideCode) + return nil +} + +// HideCode Getter +func (r TmallTraceplatformCcicTracecodeCheckAPIRequest) GetHideCode() string { + return r._hideCode +} diff --git a/model/tmallhk/TmallTraceplatformCcicTracecodeCheckAPIResponse.go b/model/tmallhk/TmallTraceplatformCcicTracecodeCheckAPIResponse.go new file mode 100644 index 0000000000..39f449a79f --- /dev/null +++ b/model/tmallhk/TmallTraceplatformCcicTracecodeCheckAPIResponse.go @@ -0,0 +1,27 @@ +package tmallhk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ccic校验溯源码 API返回值 +tmall.traceplatform.ccic.tracecode.check + +天猫国际溯源业务,需要将溯源码校验的功能输出到ccic官方主页中以增强溯源码的可信度,故需要提供api给ccic使用以校验溯源码的正确性。 +*/ +type TmallTraceplatformCcicTracecodeCheckAPIResponse struct { + model.CommonResponse + TmallTraceplatformCcicTracecodeCheckAPIResponseModel +} + +// ccic校验溯源码 成功返回结果 +type TmallTraceplatformCcicTracecodeCheckAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_traceplatform_ccic_tracecode_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallhk/TmallTraceplatformCcicTracecodeCheckResponse.go b/model/tmallhk/TmallTraceplatformCcicTracecodeCheckResponse.go deleted file mode 100644 index cd1f320a30..0000000000 --- a/model/tmallhk/TmallTraceplatformCcicTracecodeCheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallhk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ccic校验溯源码 API返回值 -tmall.traceplatform.ccic.tracecode.check - -天猫国际溯源业务,需要将溯源码校验的功能输出到ccic官方主页中以增强溯源码的可信度,故需要提供api给ccic使用以校验溯源码的正确性。 -*/ -type TmallTraceplatformCcicTracecodeCheckAPIResponse struct { - model.CommonResponse - TmallTraceplatformCcicTracecodeCheckResponse -} - -// ccic校验溯源码 成功返回结果 -type TmallTraceplatformCcicTracecodeCheckResponse struct { - XMLName xml.Name `xml:"tmall_traceplatform_ccic_tracecode_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallhk/TmallTraceplatformCtsInfoUploadAPIRequest.go b/model/tmallhk/TmallTraceplatformCtsInfoUploadAPIRequest.go new file mode 100644 index 0000000000..af221459c7 --- /dev/null +++ b/model/tmallhk/TmallTraceplatformCtsInfoUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallhk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +CTS提交溯源信息 API请求 +tmall.traceplatform.cts.info.upload + +cts上传溯源信息 +*/ +type TmallTraceplatformCtsInfoUploadAPIRequest struct { + model.Params + // 入参traceInfo + _traceInfo *CtsInfo +} + +// 初始化TmallTraceplatformCtsInfoUploadAPIRequest对象 +func NewTmallTraceplatformCtsInfoUploadRequest() *TmallTraceplatformCtsInfoUploadAPIRequest{ + return &TmallTraceplatformCtsInfoUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTraceplatformCtsInfoUploadAPIRequest) GetApiMethodName() string { + return "tmall.traceplatform.cts.info.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTraceplatformCtsInfoUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TraceInfo Setter +// 入参traceInfo +func (r *TmallTraceplatformCtsInfoUploadAPIRequest) SetTraceInfo(_traceInfo *CtsInfo) error { + r._traceInfo = _traceInfo + r.Set("trace_info", _traceInfo) + return nil +} + +// TraceInfo Getter +func (r TmallTraceplatformCtsInfoUploadAPIRequest) GetTraceInfo() *CtsInfo { + return r._traceInfo +} diff --git a/model/tmallhk/TmallTraceplatformCtsInfoUploadAPIResponse.go b/model/tmallhk/TmallTraceplatformCtsInfoUploadAPIResponse.go new file mode 100644 index 0000000000..c292b9a7d9 --- /dev/null +++ b/model/tmallhk/TmallTraceplatformCtsInfoUploadAPIResponse.go @@ -0,0 +1,27 @@ +package tmallhk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +CTS提交溯源信息 API返回值 +tmall.traceplatform.cts.info.upload + +cts上传溯源信息 +*/ +type TmallTraceplatformCtsInfoUploadAPIResponse struct { + model.CommonResponse + TmallTraceplatformCtsInfoUploadAPIResponseModel +} + +// CTS提交溯源信息 成功返回结果 +type TmallTraceplatformCtsInfoUploadAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_traceplatform_cts_info_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallhk/TmallTraceplatformCtsInfoUploadResponse.go b/model/tmallhk/TmallTraceplatformCtsInfoUploadResponse.go deleted file mode 100644 index 24055e81ca..0000000000 --- a/model/tmallhk/TmallTraceplatformCtsInfoUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallhk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -CTS提交溯源信息 API返回值 -tmall.traceplatform.cts.info.upload - -cts上传溯源信息 -*/ -type TmallTraceplatformCtsInfoUploadAPIResponse struct { - model.CommonResponse - TmallTraceplatformCtsInfoUploadResponse -} - -// CTS提交溯源信息 成功返回结果 -type TmallTraceplatformCtsInfoUploadResponse struct { - XMLName xml.Name `xml:"tmall_traceplatform_cts_info_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallhk/TmallTraceplatformCtsOrderStopAPIRequest.go b/model/tmallhk/TmallTraceplatformCtsOrderStopAPIRequest.go new file mode 100644 index 0000000000..e89c9d4e1b --- /dev/null +++ b/model/tmallhk/TmallTraceplatformCtsOrderStopAPIRequest.go @@ -0,0 +1,52 @@ +package tmallhk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +CTS截断订单 API请求 +tmall.traceplatform.cts.order.stop + +截断CTS订单 +*/ +type TmallTraceplatformCtsOrderStopAPIRequest struct { + model.Params + // 入参traceInfo + _traceInfo *TraceInfo +} + +// 初始化TmallTraceplatformCtsOrderStopAPIRequest对象 +func NewTmallTraceplatformCtsOrderStopRequest() *TmallTraceplatformCtsOrderStopAPIRequest{ + return &TmallTraceplatformCtsOrderStopAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTraceplatformCtsOrderStopAPIRequest) GetApiMethodName() string { + return "tmall.traceplatform.cts.order.stop" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTraceplatformCtsOrderStopAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TraceInfo Setter +// 入参traceInfo +func (r *TmallTraceplatformCtsOrderStopAPIRequest) SetTraceInfo(_traceInfo *TraceInfo) error { + r._traceInfo = _traceInfo + r.Set("trace_info", _traceInfo) + return nil +} + +// TraceInfo Getter +func (r TmallTraceplatformCtsOrderStopAPIRequest) GetTraceInfo() *TraceInfo { + return r._traceInfo +} diff --git a/model/tmallhk/TmallTraceplatformCtsOrderStopAPIResponse.go b/model/tmallhk/TmallTraceplatformCtsOrderStopAPIResponse.go new file mode 100644 index 0000000000..c4e042a9fb --- /dev/null +++ b/model/tmallhk/TmallTraceplatformCtsOrderStopAPIResponse.go @@ -0,0 +1,27 @@ +package tmallhk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +CTS截断订单 API返回值 +tmall.traceplatform.cts.order.stop + +截断CTS订单 +*/ +type TmallTraceplatformCtsOrderStopAPIResponse struct { + model.CommonResponse + TmallTraceplatformCtsOrderStopAPIResponseModel +} + +// CTS截断订单 成功返回结果 +type TmallTraceplatformCtsOrderStopAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_traceplatform_cts_order_stop_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallhk/TmallTraceplatformCtsOrderStopResponse.go b/model/tmallhk/TmallTraceplatformCtsOrderStopResponse.go deleted file mode 100644 index 37b6bb6a63..0000000000 --- a/model/tmallhk/TmallTraceplatformCtsOrderStopResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallhk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -CTS截断订单 API返回值 -tmall.traceplatform.cts.order.stop - -截断CTS订单 -*/ -type TmallTraceplatformCtsOrderStopAPIResponse struct { - model.CommonResponse - TmallTraceplatformCtsOrderStopResponse -} - -// CTS截断订单 成功返回结果 -type TmallTraceplatformCtsOrderStopResponse struct { - XMLName xml.Name `xml:"tmall_traceplatform_cts_order_stop_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallhk/TmallTraceplatformTicketOrderUploadAPIRequest.go b/model/tmallhk/TmallTraceplatformTicketOrderUploadAPIRequest.go new file mode 100644 index 0000000000..f00bdfc299 --- /dev/null +++ b/model/tmallhk/TmallTraceplatformTicketOrderUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmallhk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传小票数据 API请求 +tmall.traceplatform.ticket.order.upload + +upsertOrderBySeller +*/ +type TmallTraceplatformTicketOrderUploadAPIRequest struct { + model.Params + // 上传小票参数 + _ticketOrder *TicketOrderUpdator +} + +// 初始化TmallTraceplatformTicketOrderUploadAPIRequest对象 +func NewTmallTraceplatformTicketOrderUploadRequest() *TmallTraceplatformTicketOrderUploadAPIRequest{ + return &TmallTraceplatformTicketOrderUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTraceplatformTicketOrderUploadAPIRequest) GetApiMethodName() string { + return "tmall.traceplatform.ticket.order.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTraceplatformTicketOrderUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TicketOrder Setter +// 上传小票参数 +func (r *TmallTraceplatformTicketOrderUploadAPIRequest) SetTicketOrder(_ticketOrder *TicketOrderUpdator) error { + r._ticketOrder = _ticketOrder + r.Set("ticket_order", _ticketOrder) + return nil +} + +// TicketOrder Getter +func (r TmallTraceplatformTicketOrderUploadAPIRequest) GetTicketOrder() *TicketOrderUpdator { + return r._ticketOrder +} diff --git a/model/tmallhk/TmallTraceplatformTicketOrderUploadAPIResponse.go b/model/tmallhk/TmallTraceplatformTicketOrderUploadAPIResponse.go new file mode 100644 index 0000000000..a848665fc5 --- /dev/null +++ b/model/tmallhk/TmallTraceplatformTicketOrderUploadAPIResponse.go @@ -0,0 +1,27 @@ +package tmallhk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传小票数据 API返回值 +tmall.traceplatform.ticket.order.upload + +upsertOrderBySeller +*/ +type TmallTraceplatformTicketOrderUploadAPIResponse struct { + model.CommonResponse + TmallTraceplatformTicketOrderUploadAPIResponseModel +} + +// 上传小票数据 成功返回结果 +type TmallTraceplatformTicketOrderUploadAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_traceplatform_ticket_order_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallhk/TmallTraceplatformTicketOrderUploadResponse.go b/model/tmallhk/TmallTraceplatformTicketOrderUploadResponse.go deleted file mode 100644 index 587f91b078..0000000000 --- a/model/tmallhk/TmallTraceplatformTicketOrderUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallhk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传小票数据 API返回值 -tmall.traceplatform.ticket.order.upload - -upsertOrderBySeller -*/ -type TmallTraceplatformTicketOrderUploadAPIResponse struct { - model.CommonResponse - TmallTraceplatformTicketOrderUploadResponse -} - -// 上传小票数据 成功返回结果 -type TmallTraceplatformTicketOrderUploadResponse struct { - XMLName xml.Name `xml:"tmall_traceplatform_ticket_order_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallhk/TmallTraceplatformTicketPictureUploadAPIRequest.go b/model/tmallhk/TmallTraceplatformTicketPictureUploadAPIRequest.go new file mode 100644 index 0000000000..dd746aba3a --- /dev/null +++ b/model/tmallhk/TmallTraceplatformTicketPictureUploadAPIRequest.go @@ -0,0 +1,66 @@ +package tmallhk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传小票图片 API请求 +tmall.traceplatform.ticket.picture.upload + +uploadPicture +*/ +type TmallTraceplatformTicketPictureUploadAPIRequest struct { + model.Params + // 子订单号 + _bizOrderId int64 + // 图片二进制流,只支持jpg/jpeg/png格式 + _file *model.File +} + +// 初始化TmallTraceplatformTicketPictureUploadAPIRequest对象 +func NewTmallTraceplatformTicketPictureUploadRequest() *TmallTraceplatformTicketPictureUploadAPIRequest{ + return &TmallTraceplatformTicketPictureUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTraceplatformTicketPictureUploadAPIRequest) GetApiMethodName() string { + return "tmall.traceplatform.ticket.picture.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTraceplatformTicketPictureUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizOrderId Setter +// 子订单号 +func (r *TmallTraceplatformTicketPictureUploadAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r TmallTraceplatformTicketPictureUploadAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} +// File Setter +// 图片二进制流,只支持jpg/jpeg/png格式 +func (r *TmallTraceplatformTicketPictureUploadAPIRequest) SetFile(_file *model.File) error { + r._file = _file + r.Set("file", _file) + return nil +} + +// File Getter +func (r TmallTraceplatformTicketPictureUploadAPIRequest) GetFile() *model.File { + return r._file +} diff --git a/model/tmallhk/TmallTraceplatformTicketPictureUploadAPIResponse.go b/model/tmallhk/TmallTraceplatformTicketPictureUploadAPIResponse.go new file mode 100644 index 0000000000..5da6c86dbb --- /dev/null +++ b/model/tmallhk/TmallTraceplatformTicketPictureUploadAPIResponse.go @@ -0,0 +1,27 @@ +package tmallhk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传小票图片 API返回值 +tmall.traceplatform.ticket.picture.upload + +uploadPicture +*/ +type TmallTraceplatformTicketPictureUploadAPIResponse struct { + model.CommonResponse + TmallTraceplatformTicketPictureUploadAPIResponseModel +} + +// 上传小票图片 成功返回结果 +type TmallTraceplatformTicketPictureUploadAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_traceplatform_ticket_picture_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallhk/TmallTraceplatformTicketPictureUploadResponse.go b/model/tmallhk/TmallTraceplatformTicketPictureUploadResponse.go deleted file mode 100644 index 7813236c6c..0000000000 --- a/model/tmallhk/TmallTraceplatformTicketPictureUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallhk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传小票图片 API返回值 -tmall.traceplatform.ticket.picture.upload - -uploadPicture -*/ -type TmallTraceplatformTicketPictureUploadAPIResponse struct { - model.CommonResponse - TmallTraceplatformTicketPictureUploadResponse -} - -// 上传小票图片 成功返回结果 -type TmallTraceplatformTicketPictureUploadResponse struct { - XMLName xml.Name `xml:"tmall_traceplatform_ticket_picture_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallitem/TmallItemsExtendSearchAPIRequest.go b/model/tmallitem/TmallItemsExtendSearchAPIRequest.go new file mode 100644 index 0000000000..1e9d94c35c --- /dev/null +++ b/model/tmallitem/TmallItemsExtendSearchAPIRequest.go @@ -0,0 +1,346 @@ +package tmallitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索天猫商品 API请求 +tmall.items.extend.search + +提供天猫商品搜索结果,需要调用精选商品,请改为调用:tmall.selected.items.search +*/ +type TmallItemsExtendSearchAPIRequest struct { + model.Params + // 表示搜索的关键字,例如搜索query=nike。当输入关键字为中文时,将对他进行URLEncode的UTF-8格式编码,如 耐克,那么q=%E8%80%90%E5%85%8B。 + _q string + // 前台类目id,支持多选过滤,cat=catid1,catid2 + _cat string + // 排序类型。类型包括:s: 人气排序p: 价格从低到高;pd: 价格从高到低;d: 月销量从高到低;td: 总销量从高到低;pt: 按发布时间排序. + _sort string + // 品牌的id。支持多选过滤,brand=brand1,brand2 + _brand string + // 宝贝卖家所在地,中文gbk编码 + _loc string + // 以“属性id:属性值”的形式传入; + _prop string + // 是否包邮,-1为包邮 + _postFee int64 + // 在宝贝页面中进行价格筛选的时候,如果填写了最低价格,就会显示该字段。 + _startPrice float64 + // 在宝贝页面中进行价格筛选的时候,如果填写了最高价格,就会显示该字段。 + _endPrice float64 + // 是否货到付款,1为货到付款 + _supportCod int64 + // 是否多倍积分,1为多倍积分 + _manyPoints int64 + // 显示旺旺在线卖家的宝贝时,wwonline=1 + _wwonline int64 + // 过滤vip宝贝时,vip=1 + _vip int64 + // 过滤搭配减价宝贝时,combo=1 + _combo int64 + // 过滤折扣宝贝时,miaosha=1 + _miaosha int64 + // 是否需要spu聚合的开关:1为关闭,不传表示遵循后端聚合逻辑。默认不作spu聚合。 + _nspu int64 + // 商品标签。支持多选过滤,auction_tag=auction_tag1,auction_tag2,不支持天猫精品库8578 + _auctionTag string + // 可以根据产品Id搜索属于这个spu的商品。 + _spuid int64 + // 可以根据卖家id搜索属于该卖家的商品 + _userId int64 + // 页码。取值范围:大于零的整数;最大值:100;默认值:1,即默认返回第一页数据。 + _pageNo int64 + // 每页条数。取值范围:大于零的整数;最大值:100;默认值:40 + _pageSize int64 + // 后台类目id,category=categoryId + _category string +} + +// 初始化TmallItemsExtendSearchAPIRequest对象 +func NewTmallItemsExtendSearchRequest() *TmallItemsExtendSearchAPIRequest{ + return &TmallItemsExtendSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallItemsExtendSearchAPIRequest) GetApiMethodName() string { + return "tmall.items.extend.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallItemsExtendSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Q Setter +// 表示搜索的关键字,例如搜索query=nike。当输入关键字为中文时,将对他进行URLEncode的UTF-8格式编码,如 耐克,那么q=%E8%80%90%E5%85%8B。 +func (r *TmallItemsExtendSearchAPIRequest) SetQ(_q string) error { + r._q = _q + r.Set("q", _q) + return nil +} + +// Q Getter +func (r TmallItemsExtendSearchAPIRequest) GetQ() string { + return r._q +} +// Cat Setter +// 前台类目id,支持多选过滤,cat=catid1,catid2 +func (r *TmallItemsExtendSearchAPIRequest) SetCat(_cat string) error { + r._cat = _cat + r.Set("cat", _cat) + return nil +} + +// Cat Getter +func (r TmallItemsExtendSearchAPIRequest) GetCat() string { + return r._cat +} +// Sort Setter +// 排序类型。类型包括:s: 人气排序p: 价格从低到高;pd: 价格从高到低;d: 月销量从高到低;td: 总销量从高到低;pt: 按发布时间排序. +func (r *TmallItemsExtendSearchAPIRequest) SetSort(_sort string) error { + r._sort = _sort + r.Set("sort", _sort) + return nil +} + +// Sort Getter +func (r TmallItemsExtendSearchAPIRequest) GetSort() string { + return r._sort +} +// Brand Setter +// 品牌的id。支持多选过滤,brand=brand1,brand2 +func (r *TmallItemsExtendSearchAPIRequest) SetBrand(_brand string) error { + r._brand = _brand + r.Set("brand", _brand) + return nil +} + +// Brand Getter +func (r TmallItemsExtendSearchAPIRequest) GetBrand() string { + return r._brand +} +// Loc Setter +// 宝贝卖家所在地,中文gbk编码 +func (r *TmallItemsExtendSearchAPIRequest) SetLoc(_loc string) error { + r._loc = _loc + r.Set("loc", _loc) + return nil +} + +// Loc Getter +func (r TmallItemsExtendSearchAPIRequest) GetLoc() string { + return r._loc +} +// Prop Setter +// 以“属性id:属性值”的形式传入; +func (r *TmallItemsExtendSearchAPIRequest) SetProp(_prop string) error { + r._prop = _prop + r.Set("prop", _prop) + return nil +} + +// Prop Getter +func (r TmallItemsExtendSearchAPIRequest) GetProp() string { + return r._prop +} +// PostFee Setter +// 是否包邮,-1为包邮 +func (r *TmallItemsExtendSearchAPIRequest) SetPostFee(_postFee int64) error { + r._postFee = _postFee + r.Set("post_fee", _postFee) + return nil +} + +// PostFee Getter +func (r TmallItemsExtendSearchAPIRequest) GetPostFee() int64 { + return r._postFee +} +// StartPrice Setter +// 在宝贝页面中进行价格筛选的时候,如果填写了最低价格,就会显示该字段。 +func (r *TmallItemsExtendSearchAPIRequest) SetStartPrice(_startPrice float64) error { + r._startPrice = _startPrice + r.Set("start_price", _startPrice) + return nil +} + +// StartPrice Getter +func (r TmallItemsExtendSearchAPIRequest) GetStartPrice() float64 { + return r._startPrice +} +// EndPrice Setter +// 在宝贝页面中进行价格筛选的时候,如果填写了最高价格,就会显示该字段。 +func (r *TmallItemsExtendSearchAPIRequest) SetEndPrice(_endPrice float64) error { + r._endPrice = _endPrice + r.Set("end_price", _endPrice) + return nil +} + +// EndPrice Getter +func (r TmallItemsExtendSearchAPIRequest) GetEndPrice() float64 { + return r._endPrice +} +// SupportCod Setter +// 是否货到付款,1为货到付款 +func (r *TmallItemsExtendSearchAPIRequest) SetSupportCod(_supportCod int64) error { + r._supportCod = _supportCod + r.Set("support_cod", _supportCod) + return nil +} + +// SupportCod Getter +func (r TmallItemsExtendSearchAPIRequest) GetSupportCod() int64 { + return r._supportCod +} +// ManyPoints Setter +// 是否多倍积分,1为多倍积分 +func (r *TmallItemsExtendSearchAPIRequest) SetManyPoints(_manyPoints int64) error { + r._manyPoints = _manyPoints + r.Set("many_points", _manyPoints) + return nil +} + +// ManyPoints Getter +func (r TmallItemsExtendSearchAPIRequest) GetManyPoints() int64 { + return r._manyPoints +} +// Wwonline Setter +// 显示旺旺在线卖家的宝贝时,wwonline=1 +func (r *TmallItemsExtendSearchAPIRequest) SetWwonline(_wwonline int64) error { + r._wwonline = _wwonline + r.Set("wwonline", _wwonline) + return nil +} + +// Wwonline Getter +func (r TmallItemsExtendSearchAPIRequest) GetWwonline() int64 { + return r._wwonline +} +// Vip Setter +// 过滤vip宝贝时,vip=1 +func (r *TmallItemsExtendSearchAPIRequest) SetVip(_vip int64) error { + r._vip = _vip + r.Set("vip", _vip) + return nil +} + +// Vip Getter +func (r TmallItemsExtendSearchAPIRequest) GetVip() int64 { + return r._vip +} +// Combo Setter +// 过滤搭配减价宝贝时,combo=1 +func (r *TmallItemsExtendSearchAPIRequest) SetCombo(_combo int64) error { + r._combo = _combo + r.Set("combo", _combo) + return nil +} + +// Combo Getter +func (r TmallItemsExtendSearchAPIRequest) GetCombo() int64 { + return r._combo +} +// Miaosha Setter +// 过滤折扣宝贝时,miaosha=1 +func (r *TmallItemsExtendSearchAPIRequest) SetMiaosha(_miaosha int64) error { + r._miaosha = _miaosha + r.Set("miaosha", _miaosha) + return nil +} + +// Miaosha Getter +func (r TmallItemsExtendSearchAPIRequest) GetMiaosha() int64 { + return r._miaosha +} +// Nspu Setter +// 是否需要spu聚合的开关:1为关闭,不传表示遵循后端聚合逻辑。默认不作spu聚合。 +func (r *TmallItemsExtendSearchAPIRequest) SetNspu(_nspu int64) error { + r._nspu = _nspu + r.Set("nspu", _nspu) + return nil +} + +// Nspu Getter +func (r TmallItemsExtendSearchAPIRequest) GetNspu() int64 { + return r._nspu +} +// AuctionTag Setter +// 商品标签。支持多选过滤,auction_tag=auction_tag1,auction_tag2,不支持天猫精品库8578 +func (r *TmallItemsExtendSearchAPIRequest) SetAuctionTag(_auctionTag string) error { + r._auctionTag = _auctionTag + r.Set("auction_tag", _auctionTag) + return nil +} + +// AuctionTag Getter +func (r TmallItemsExtendSearchAPIRequest) GetAuctionTag() string { + return r._auctionTag +} +// Spuid Setter +// 可以根据产品Id搜索属于这个spu的商品。 +func (r *TmallItemsExtendSearchAPIRequest) SetSpuid(_spuid int64) error { + r._spuid = _spuid + r.Set("spuid", _spuid) + return nil +} + +// Spuid Getter +func (r TmallItemsExtendSearchAPIRequest) GetSpuid() int64 { + return r._spuid +} +// UserId Setter +// 可以根据卖家id搜索属于该卖家的商品 +func (r *TmallItemsExtendSearchAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TmallItemsExtendSearchAPIRequest) GetUserId() int64 { + return r._userId +} +// PageNo Setter +// 页码。取值范围:大于零的整数;最大值:100;默认值:1,即默认返回第一页数据。 +func (r *TmallItemsExtendSearchAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TmallItemsExtendSearchAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数。取值范围:大于零的整数;最大值:100;默认值:40 +func (r *TmallItemsExtendSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TmallItemsExtendSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Category Setter +// 后台类目id,category=categoryId +func (r *TmallItemsExtendSearchAPIRequest) SetCategory(_category string) error { + r._category = _category + r.Set("category", _category) + return nil +} + +// Category Getter +func (r TmallItemsExtendSearchAPIRequest) GetCategory() string { + return r._category +} diff --git a/model/tmallitem/TmallItemsExtendSearchAPIResponse.go b/model/tmallitem/TmallItemsExtendSearchAPIResponse.go new file mode 100644 index 0000000000..75fff58839 --- /dev/null +++ b/model/tmallitem/TmallItemsExtendSearchAPIResponse.go @@ -0,0 +1,35 @@ +package tmallitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索天猫商品 API返回值 +tmall.items.extend.search + +提供天猫商品搜索结果,需要调用精选商品,请改为调用:tmall.selected.items.search +*/ +type TmallItemsExtendSearchAPIResponse struct { + model.CommonResponse + TmallItemsExtendSearchAPIResponseModel +} + +// 搜索天猫商品 成功返回结果 +type TmallItemsExtendSearchAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_items_extend_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品列表 + ItemList []TmallExtendSearchItem `json:"item_list,omitempty" xml:"item_list>tmall_extend_search_item,omitempty"` + // 总商品数量 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 查询条件 + Q string `json:"q,omitempty" xml:"q,omitempty"` + // 类目列表 + CatList []TmallCat `json:"cat_list,omitempty" xml:"cat_list>tmall_cat,omitempty"` + // 品牌列表 + BrandList []TmallBrand `json:"brand_list,omitempty" xml:"brand_list>tmall_brand,omitempty"` +} diff --git a/model/tmallitem/TmallItemsExtendSearchResponse.go b/model/tmallitem/TmallItemsExtendSearchResponse.go deleted file mode 100644 index b54f8c804f..0000000000 --- a/model/tmallitem/TmallItemsExtendSearchResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package tmallitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -搜索天猫商品 API返回值 -tmall.items.extend.search - -提供天猫商品搜索结果,需要调用精选商品,请改为调用:tmall.selected.items.search -*/ -type TmallItemsExtendSearchAPIResponse struct { - model.CommonResponse - TmallItemsExtendSearchResponse -} - -// 搜索天猫商品 成功返回结果 -type TmallItemsExtendSearchResponse struct { - XMLName xml.Name `xml:"tmall_items_extend_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品列表 - ItemList []TmallExtendSearchItem `json:"item_list,omitempty" xml:"item_list>tmall_extend_search_item,omitempty"` - // 总商品数量 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 查询条件 - Q string `json:"q,omitempty" xml:"q,omitempty"` - // 类目列表 - CatList []TmallCat `json:"cat_list,omitempty" xml:"cat_list>tmall_cat,omitempty"` - // 品牌列表 - BrandList []TmallBrand `json:"brand_list,omitempty" xml:"brand_list>tmall_brand,omitempty"` -} diff --git a/model/tmallnr/AlibabaLsyCrmActivityDataUpdateAPIRequest.go b/model/tmallnr/AlibabaLsyCrmActivityDataUpdateAPIRequest.go new file mode 100644 index 0000000000..f5e7deb9d1 --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmActivityDataUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +私域导购数据回流接口 API请求 +alibaba.lsy.crm.activity.data.update + +私域导购数据回流接口 +*/ +type AlibabaLsyCrmActivityDataUpdateAPIRequest struct { + model.Params + // 入参对象 + _reqDTO *NrtCrmActivityStatisticsDataReq +} + +// 初始化AlibabaLsyCrmActivityDataUpdateAPIRequest对象 +func NewAlibabaLsyCrmActivityDataUpdateRequest() *AlibabaLsyCrmActivityDataUpdateAPIRequest{ + return &AlibabaLsyCrmActivityDataUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLsyCrmActivityDataUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.lsy.crm.activity.data.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLsyCrmActivityDataUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReqDTO Setter +// 入参对象 +func (r *AlibabaLsyCrmActivityDataUpdateAPIRequest) SetReqDTO(_reqDTO *NrtCrmActivityStatisticsDataReq) error { + r._reqDTO = _reqDTO + r.Set("req_d_t_o", _reqDTO) + return nil +} + +// ReqDTO Getter +func (r AlibabaLsyCrmActivityDataUpdateAPIRequest) GetReqDTO() *NrtCrmActivityStatisticsDataReq { + return r._reqDTO +} diff --git a/model/tmallnr/AlibabaLsyCrmActivityDataUpdateAPIResponse.go b/model/tmallnr/AlibabaLsyCrmActivityDataUpdateAPIResponse.go new file mode 100644 index 0000000000..0c11019e0f --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmActivityDataUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +私域导购数据回流接口 API返回值 +alibaba.lsy.crm.activity.data.update + +私域导购数据回流接口 +*/ +type AlibabaLsyCrmActivityDataUpdateAPIResponse struct { + model.CommonResponse + AlibabaLsyCrmActivityDataUpdateAPIResponseModel +} + +// 私域导购数据回流接口 成功返回结果 +type AlibabaLsyCrmActivityDataUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lsy_crm_activity_data_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaLsyCrmActivityDataUpdateResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/AlibabaLsyCrmActivityDataUpdateResponse.go b/model/tmallnr/AlibabaLsyCrmActivityDataUpdateResponse.go deleted file mode 100644 index 6fa5c96117..0000000000 --- a/model/tmallnr/AlibabaLsyCrmActivityDataUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -私域导购数据回流接口 API返回值 -alibaba.lsy.crm.activity.data.update - -私域导购数据回流接口 -*/ -type AlibabaLsyCrmActivityDataUpdateAPIResponse struct { - model.CommonResponse - AlibabaLsyCrmActivityDataUpdateResponse -} - -// 私域导购数据回流接口 成功返回结果 -type AlibabaLsyCrmActivityDataUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_lsy_crm_activity_data_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaLsyCrmActivityDataUpdateResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallnr/AlibabaLsyCrmActivityDataUpdateResultDo.go b/model/tmallnr/AlibabaLsyCrmActivityDataUpdateResultDo.go new file mode 100644 index 0000000000..2fb2410f5e --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmActivityDataUpdateResultDo.go @@ -0,0 +1,11 @@ +package tmallnr + +// AlibabaLsyCrmActivityDataUpdateResultDo +type AlibabaLsyCrmActivityDataUpdateResultDo struct { + // err_code + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误描述 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` +} diff --git a/model/tmallnr/AlibabaLsyCrmActivityGetAPIRequest.go b/model/tmallnr/AlibabaLsyCrmActivityGetAPIRequest.go new file mode 100644 index 0000000000..13a9348e2e --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmActivityGetAPIRequest.go @@ -0,0 +1,80 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +私域导购查询活动详情 API请求 +alibaba.lsy.crm.activity.get + +私域导购查询活动详情 +*/ +type AlibabaLsyCrmActivityGetAPIRequest struct { + model.Params + // 活动id + _activityId int64 + // 导购员id + _guiderId int64 + // 摊位id + _storeId int64 +} + +// 初始化AlibabaLsyCrmActivityGetAPIRequest对象 +func NewAlibabaLsyCrmActivityGetRequest() *AlibabaLsyCrmActivityGetAPIRequest{ + return &AlibabaLsyCrmActivityGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLsyCrmActivityGetAPIRequest) GetApiMethodName() string { + return "alibaba.lsy.crm.activity.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLsyCrmActivityGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityId Setter +// 活动id +func (r *AlibabaLsyCrmActivityGetAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r AlibabaLsyCrmActivityGetAPIRequest) GetActivityId() int64 { + return r._activityId +} +// GuiderId Setter +// 导购员id +func (r *AlibabaLsyCrmActivityGetAPIRequest) SetGuiderId(_guiderId int64) error { + r._guiderId = _guiderId + r.Set("guider_id", _guiderId) + return nil +} + +// GuiderId Getter +func (r AlibabaLsyCrmActivityGetAPIRequest) GetGuiderId() int64 { + return r._guiderId +} +// StoreId Setter +// 摊位id +func (r *AlibabaLsyCrmActivityGetAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaLsyCrmActivityGetAPIRequest) GetStoreId() int64 { + return r._storeId +} diff --git a/model/tmallnr/AlibabaLsyCrmActivityGetAPIResponse.go b/model/tmallnr/AlibabaLsyCrmActivityGetAPIResponse.go new file mode 100644 index 0000000000..eae7154189 --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmActivityGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +私域导购查询活动详情 API返回值 +alibaba.lsy.crm.activity.get + +私域导购查询活动详情 +*/ +type AlibabaLsyCrmActivityGetAPIResponse struct { + model.CommonResponse + AlibabaLsyCrmActivityGetAPIResponseModel +} + +// 私域导购查询活动详情 成功返回结果 +type AlibabaLsyCrmActivityGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lsy_crm_activity_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *AlibabaLsyCrmActivityGetResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/AlibabaLsyCrmActivityGetResponse.go b/model/tmallnr/AlibabaLsyCrmActivityGetResponse.go deleted file mode 100644 index 796ab3cf87..0000000000 --- a/model/tmallnr/AlibabaLsyCrmActivityGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -私域导购查询活动详情 API返回值 -alibaba.lsy.crm.activity.get - -私域导购查询活动详情 -*/ -type AlibabaLsyCrmActivityGetAPIResponse struct { - model.CommonResponse - AlibabaLsyCrmActivityGetResponse -} - -// 私域导购查询活动详情 成功返回结果 -type AlibabaLsyCrmActivityGetResponse struct { - XMLName xml.Name `xml:"alibaba_lsy_crm_activity_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *AlibabaLsyCrmActivityGetResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallnr/AlibabaLsyCrmActivityGetResultDo.go b/model/tmallnr/AlibabaLsyCrmActivityGetResultDo.go new file mode 100644 index 0000000000..a9b1c6e87b --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmActivityGetResultDo.go @@ -0,0 +1,13 @@ +package tmallnr + +// AlibabaLsyCrmActivityGetResultDo +type AlibabaLsyCrmActivityGetResultDo struct { + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 数据 + Data *NrtCrmActivityDetailDto `json:"data,omitempty" xml:"data,omitempty"` + // 错误信息 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` +} diff --git a/model/tmallnr/AlibabaLsyCrmActivityGetbaseinfoAPIRequest.go b/model/tmallnr/AlibabaLsyCrmActivityGetbaseinfoAPIRequest.go new file mode 100644 index 0000000000..bcfda38f39 --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmActivityGetbaseinfoAPIRequest.go @@ -0,0 +1,52 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV查询活动 API请求 +alibaba.lsy.crm.activity.getbaseinfo + +ISV查询活动 +*/ +type AlibabaLsyCrmActivityGetbaseinfoAPIRequest struct { + model.Params + // 入参 + _nrtQueryActivityReq *NrtQueryActivityReq +} + +// 初始化AlibabaLsyCrmActivityGetbaseinfoAPIRequest对象 +func NewAlibabaLsyCrmActivityGetbaseinfoRequest() *AlibabaLsyCrmActivityGetbaseinfoAPIRequest{ + return &AlibabaLsyCrmActivityGetbaseinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLsyCrmActivityGetbaseinfoAPIRequest) GetApiMethodName() string { + return "alibaba.lsy.crm.activity.getbaseinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLsyCrmActivityGetbaseinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NrtQueryActivityReq Setter +// 入参 +func (r *AlibabaLsyCrmActivityGetbaseinfoAPIRequest) SetNrtQueryActivityReq(_nrtQueryActivityReq *NrtQueryActivityReq) error { + r._nrtQueryActivityReq = _nrtQueryActivityReq + r.Set("nrt_query_activity_req", _nrtQueryActivityReq) + return nil +} + +// NrtQueryActivityReq Getter +func (r AlibabaLsyCrmActivityGetbaseinfoAPIRequest) GetNrtQueryActivityReq() *NrtQueryActivityReq { + return r._nrtQueryActivityReq +} diff --git a/model/tmallnr/AlibabaLsyCrmActivityGetbaseinfoAPIResponse.go b/model/tmallnr/AlibabaLsyCrmActivityGetbaseinfoAPIResponse.go new file mode 100644 index 0000000000..71a3e3494a --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmActivityGetbaseinfoAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV查询活动 API返回值 +alibaba.lsy.crm.activity.getbaseinfo + +ISV查询活动 +*/ +type AlibabaLsyCrmActivityGetbaseinfoAPIResponse struct { + model.CommonResponse + AlibabaLsyCrmActivityGetbaseinfoAPIResponseModel +} + +// ISV查询活动 成功返回结果 +type AlibabaLsyCrmActivityGetbaseinfoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lsy_crm_activity_getbaseinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaLsyCrmActivityGetbaseinfoResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/AlibabaLsyCrmActivityGetbaseinfoResponse.go b/model/tmallnr/AlibabaLsyCrmActivityGetbaseinfoResponse.go deleted file mode 100644 index bc58b2607f..0000000000 --- a/model/tmallnr/AlibabaLsyCrmActivityGetbaseinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV查询活动 API返回值 -alibaba.lsy.crm.activity.getbaseinfo - -ISV查询活动 -*/ -type AlibabaLsyCrmActivityGetbaseinfoAPIResponse struct { - model.CommonResponse - AlibabaLsyCrmActivityGetbaseinfoResponse -} - -// ISV查询活动 成功返回结果 -type AlibabaLsyCrmActivityGetbaseinfoResponse struct { - XMLName xml.Name `xml:"alibaba_lsy_crm_activity_getbaseinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaLsyCrmActivityGetbaseinfoResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallnr/AlibabaLsyCrmActivityGetbaseinfoResultDo.go b/model/tmallnr/AlibabaLsyCrmActivityGetbaseinfoResultDo.go new file mode 100644 index 0000000000..60a555dd8e --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmActivityGetbaseinfoResultDo.go @@ -0,0 +1,13 @@ +package tmallnr + +// AlibabaLsyCrmActivityGetbaseinfoResultDo +type AlibabaLsyCrmActivityGetbaseinfoResultDo struct { + // 错误信息 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // DTO + Data *NrtCrmActivityDto `json:"data,omitempty" xml:"data,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` +} diff --git a/model/tmallnr/AlibabaLsyCrmActivityPageUpdateAPIRequest.go b/model/tmallnr/AlibabaLsyCrmActivityPageUpdateAPIRequest.go new file mode 100644 index 0000000000..d6a6ce9783 --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmActivityPageUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV活动页面创建修改 API请求 +alibaba.lsy.crm.activity.page.update + +ISV活动页面创建修改 +*/ +type AlibabaLsyCrmActivityPageUpdateAPIRequest struct { + model.Params + // 入参 + _nrtCrmActivityPageCreateReq *NrtCrmActivityPageCreateReq +} + +// 初始化AlibabaLsyCrmActivityPageUpdateAPIRequest对象 +func NewAlibabaLsyCrmActivityPageUpdateRequest() *AlibabaLsyCrmActivityPageUpdateAPIRequest{ + return &AlibabaLsyCrmActivityPageUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLsyCrmActivityPageUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.lsy.crm.activity.page.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLsyCrmActivityPageUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NrtCrmActivityPageCreateReq Setter +// 入参 +func (r *AlibabaLsyCrmActivityPageUpdateAPIRequest) SetNrtCrmActivityPageCreateReq(_nrtCrmActivityPageCreateReq *NrtCrmActivityPageCreateReq) error { + r._nrtCrmActivityPageCreateReq = _nrtCrmActivityPageCreateReq + r.Set("nrt_crm_activity_page_create_req", _nrtCrmActivityPageCreateReq) + return nil +} + +// NrtCrmActivityPageCreateReq Getter +func (r AlibabaLsyCrmActivityPageUpdateAPIRequest) GetNrtCrmActivityPageCreateReq() *NrtCrmActivityPageCreateReq { + return r._nrtCrmActivityPageCreateReq +} diff --git a/model/tmallnr/AlibabaLsyCrmActivityPageUpdateAPIResponse.go b/model/tmallnr/AlibabaLsyCrmActivityPageUpdateAPIResponse.go new file mode 100644 index 0000000000..204efc46d0 --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmActivityPageUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV活动页面创建修改 API返回值 +alibaba.lsy.crm.activity.page.update + +ISV活动页面创建修改 +*/ +type AlibabaLsyCrmActivityPageUpdateAPIResponse struct { + model.CommonResponse + AlibabaLsyCrmActivityPageUpdateAPIResponseModel +} + +// ISV活动页面创建修改 成功返回结果 +type AlibabaLsyCrmActivityPageUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lsy_crm_activity_page_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaLsyCrmActivityPageUpdateResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/AlibabaLsyCrmActivityPageUpdateResponse.go b/model/tmallnr/AlibabaLsyCrmActivityPageUpdateResponse.go deleted file mode 100644 index 55ab1cd860..0000000000 --- a/model/tmallnr/AlibabaLsyCrmActivityPageUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV活动页面创建修改 API返回值 -alibaba.lsy.crm.activity.page.update - -ISV活动页面创建修改 -*/ -type AlibabaLsyCrmActivityPageUpdateAPIResponse struct { - model.CommonResponse - AlibabaLsyCrmActivityPageUpdateResponse -} - -// ISV活动页面创建修改 成功返回结果 -type AlibabaLsyCrmActivityPageUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_lsy_crm_activity_page_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaLsyCrmActivityPageUpdateResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallnr/AlibabaLsyCrmActivityPageUpdateResultDo.go b/model/tmallnr/AlibabaLsyCrmActivityPageUpdateResultDo.go new file mode 100644 index 0000000000..07bd3accb5 --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmActivityPageUpdateResultDo.go @@ -0,0 +1,13 @@ +package tmallnr + +// AlibabaLsyCrmActivityPageUpdateResultDo +type AlibabaLsyCrmActivityPageUpdateResultDo struct { + // 活动ID + Data int64 `json:"data,omitempty" xml:"data,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 错误信息 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` +} diff --git a/model/tmallnr/AlibabaLsyCrmActivityStoreGetstorelistAPIRequest.go b/model/tmallnr/AlibabaLsyCrmActivityStoreGetstorelistAPIRequest.go new file mode 100644 index 0000000000..6042c27696 --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmActivityStoreGetstorelistAPIRequest.go @@ -0,0 +1,52 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV查询门店 API请求 +alibaba.lsy.crm.activity.store.getstorelist + +ISV查询门店 +*/ +type AlibabaLsyCrmActivityStoreGetstorelistAPIRequest struct { + model.Params + // 系统自动生成 + _queryStoreReq *NrtQueryStoreReq +} + +// 初始化AlibabaLsyCrmActivityStoreGetstorelistAPIRequest对象 +func NewAlibabaLsyCrmActivityStoreGetstorelistRequest() *AlibabaLsyCrmActivityStoreGetstorelistAPIRequest{ + return &AlibabaLsyCrmActivityStoreGetstorelistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLsyCrmActivityStoreGetstorelistAPIRequest) GetApiMethodName() string { + return "alibaba.lsy.crm.activity.store.getstorelist" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLsyCrmActivityStoreGetstorelistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryStoreReq Setter +// 系统自动生成 +func (r *AlibabaLsyCrmActivityStoreGetstorelistAPIRequest) SetQueryStoreReq(_queryStoreReq *NrtQueryStoreReq) error { + r._queryStoreReq = _queryStoreReq + r.Set("query_store_req", _queryStoreReq) + return nil +} + +// QueryStoreReq Getter +func (r AlibabaLsyCrmActivityStoreGetstorelistAPIRequest) GetQueryStoreReq() *NrtQueryStoreReq { + return r._queryStoreReq +} diff --git a/model/tmallnr/AlibabaLsyCrmActivityStoreGetstorelistAPIResponse.go b/model/tmallnr/AlibabaLsyCrmActivityStoreGetstorelistAPIResponse.go new file mode 100644 index 0000000000..c8de227032 --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmActivityStoreGetstorelistAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV查询门店 API返回值 +alibaba.lsy.crm.activity.store.getstorelist + +ISV查询门店 +*/ +type AlibabaLsyCrmActivityStoreGetstorelistAPIResponse struct { + model.CommonResponse + AlibabaLsyCrmActivityStoreGetstorelistAPIResponseModel +} + +// ISV查询门店 成功返回结果 +type AlibabaLsyCrmActivityStoreGetstorelistAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lsy_crm_activity_store_getstorelist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果集 + PageResultDO *PageResultDo `json:"page_result_d_o,omitempty" xml:"page_result_d_o,omitempty"` +} diff --git a/model/tmallnr/AlibabaLsyCrmActivityStoreGetstorelistResponse.go b/model/tmallnr/AlibabaLsyCrmActivityStoreGetstorelistResponse.go deleted file mode 100644 index e372c72ba5..0000000000 --- a/model/tmallnr/AlibabaLsyCrmActivityStoreGetstorelistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV查询门店 API返回值 -alibaba.lsy.crm.activity.store.getstorelist - -ISV查询门店 -*/ -type AlibabaLsyCrmActivityStoreGetstorelistAPIResponse struct { - model.CommonResponse - AlibabaLsyCrmActivityStoreGetstorelistResponse -} - -// ISV查询门店 成功返回结果 -type AlibabaLsyCrmActivityStoreGetstorelistResponse struct { - XMLName xml.Name `xml:"alibaba_lsy_crm_activity_store_getstorelist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果集 - PageResultDO *PageResultDo `json:"page_result_d_o,omitempty" xml:"page_result_d_o,omitempty"` -} diff --git a/model/tmallnr/AlibabaLsyCrmActivityUpdateAPIRequest.go b/model/tmallnr/AlibabaLsyCrmActivityUpdateAPIRequest.go new file mode 100644 index 0000000000..572cfd2c6d --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmActivityUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV活动修改 API请求 +alibaba.lsy.crm.activity.update + +ISV活动修改 +*/ +type AlibabaLsyCrmActivityUpdateAPIRequest struct { + model.Params + // 入参 + _nrtUpdateActivityReq *NrtUpdateActivityReq +} + +// 初始化AlibabaLsyCrmActivityUpdateAPIRequest对象 +func NewAlibabaLsyCrmActivityUpdateRequest() *AlibabaLsyCrmActivityUpdateAPIRequest{ + return &AlibabaLsyCrmActivityUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLsyCrmActivityUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.lsy.crm.activity.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLsyCrmActivityUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NrtUpdateActivityReq Setter +// 入参 +func (r *AlibabaLsyCrmActivityUpdateAPIRequest) SetNrtUpdateActivityReq(_nrtUpdateActivityReq *NrtUpdateActivityReq) error { + r._nrtUpdateActivityReq = _nrtUpdateActivityReq + r.Set("nrt_update_activity_req", _nrtUpdateActivityReq) + return nil +} + +// NrtUpdateActivityReq Getter +func (r AlibabaLsyCrmActivityUpdateAPIRequest) GetNrtUpdateActivityReq() *NrtUpdateActivityReq { + return r._nrtUpdateActivityReq +} diff --git a/model/tmallnr/AlibabaLsyCrmActivityUpdateAPIResponse.go b/model/tmallnr/AlibabaLsyCrmActivityUpdateAPIResponse.go new file mode 100644 index 0000000000..05591c2800 --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmActivityUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ISV活动修改 API返回值 +alibaba.lsy.crm.activity.update + +ISV活动修改 +*/ +type AlibabaLsyCrmActivityUpdateAPIResponse struct { + model.CommonResponse + AlibabaLsyCrmActivityUpdateAPIResponseModel +} + +// ISV活动修改 成功返回结果 +type AlibabaLsyCrmActivityUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lsy_crm_activity_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaLsyCrmActivityUpdateResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/AlibabaLsyCrmActivityUpdateResponse.go b/model/tmallnr/AlibabaLsyCrmActivityUpdateResponse.go deleted file mode 100644 index 8dc181455e..0000000000 --- a/model/tmallnr/AlibabaLsyCrmActivityUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ISV活动修改 API返回值 -alibaba.lsy.crm.activity.update - -ISV活动修改 -*/ -type AlibabaLsyCrmActivityUpdateAPIResponse struct { - model.CommonResponse - AlibabaLsyCrmActivityUpdateResponse -} - -// ISV活动修改 成功返回结果 -type AlibabaLsyCrmActivityUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_lsy_crm_activity_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaLsyCrmActivityUpdateResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallnr/AlibabaLsyCrmActivityUpdateResultDo.go b/model/tmallnr/AlibabaLsyCrmActivityUpdateResultDo.go new file mode 100644 index 0000000000..77a59eda9d --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmActivityUpdateResultDo.go @@ -0,0 +1,11 @@ +package tmallnr + +// AlibabaLsyCrmActivityUpdateResultDo +type AlibabaLsyCrmActivityUpdateResultDo struct { + // 错误信息 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` +} diff --git a/model/tmallnr/AlibabaLsyCrmCustomerAddAPIRequest.go b/model/tmallnr/AlibabaLsyCrmCustomerAddAPIRequest.go new file mode 100644 index 0000000000..6cd0a97f1b --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmCustomerAddAPIRequest.go @@ -0,0 +1,52 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +私域导购添加活动留资入口 API请求 +alibaba.lsy.crm.customer.add + +私域导购添加活动留资入口 +*/ +type AlibabaLsyCrmCustomerAddAPIRequest struct { + model.Params + // 入参对象 + _reqDto *NrtCrmCreateCustomerReq +} + +// 初始化AlibabaLsyCrmCustomerAddAPIRequest对象 +func NewAlibabaLsyCrmCustomerAddRequest() *AlibabaLsyCrmCustomerAddAPIRequest{ + return &AlibabaLsyCrmCustomerAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLsyCrmCustomerAddAPIRequest) GetApiMethodName() string { + return "alibaba.lsy.crm.customer.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLsyCrmCustomerAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReqDto Setter +// 入参对象 +func (r *AlibabaLsyCrmCustomerAddAPIRequest) SetReqDto(_reqDto *NrtCrmCreateCustomerReq) error { + r._reqDto = _reqDto + r.Set("req_dto", _reqDto) + return nil +} + +// ReqDto Getter +func (r AlibabaLsyCrmCustomerAddAPIRequest) GetReqDto() *NrtCrmCreateCustomerReq { + return r._reqDto +} diff --git a/model/tmallnr/AlibabaLsyCrmCustomerAddAPIResponse.go b/model/tmallnr/AlibabaLsyCrmCustomerAddAPIResponse.go new file mode 100644 index 0000000000..14157e36ca --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmCustomerAddAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +私域导购添加活动留资入口 API返回值 +alibaba.lsy.crm.customer.add + +私域导购添加活动留资入口 +*/ +type AlibabaLsyCrmCustomerAddAPIResponse struct { + model.CommonResponse + AlibabaLsyCrmCustomerAddAPIResponseModel +} + +// 私域导购添加活动留资入口 成功返回结果 +type AlibabaLsyCrmCustomerAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lsy_crm_customer_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *AlibabaLsyCrmCustomerAddResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/AlibabaLsyCrmCustomerAddResponse.go b/model/tmallnr/AlibabaLsyCrmCustomerAddResponse.go deleted file mode 100644 index 931796a287..0000000000 --- a/model/tmallnr/AlibabaLsyCrmCustomerAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -私域导购添加活动留资入口 API返回值 -alibaba.lsy.crm.customer.add - -私域导购添加活动留资入口 -*/ -type AlibabaLsyCrmCustomerAddAPIResponse struct { - model.CommonResponse - AlibabaLsyCrmCustomerAddResponse -} - -// 私域导购添加活动留资入口 成功返回结果 -type AlibabaLsyCrmCustomerAddResponse struct { - XMLName xml.Name `xml:"alibaba_lsy_crm_customer_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *AlibabaLsyCrmCustomerAddResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallnr/AlibabaLsyCrmCustomerAddResultDo.go b/model/tmallnr/AlibabaLsyCrmCustomerAddResultDo.go new file mode 100644 index 0000000000..7bebb9ada4 --- /dev/null +++ b/model/tmallnr/AlibabaLsyCrmCustomerAddResultDo.go @@ -0,0 +1,11 @@ +package tmallnr + +// AlibabaLsyCrmCustomerAddResultDo +type AlibabaLsyCrmCustomerAddResultDo struct { + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误提示码 + ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 错误信息 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` +} diff --git a/model/tmallnr/TmallNrFulfillCancelAPIRequest.go b/model/tmallnr/TmallNrFulfillCancelAPIRequest.go new file mode 100644 index 0000000000..fe156a3ecf --- /dev/null +++ b/model/tmallnr/TmallNrFulfillCancelAPIRequest.go @@ -0,0 +1,52 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消上门揽件 API请求 +tmall.nr.fulfill.cancel + +新零售门店业务取消上门揽件 +*/ +type TmallNrFulfillCancelAPIRequest struct { + model.Params + // 入参 + _req *NrCancelFulfillReqDto +} + +// 初始化TmallNrFulfillCancelAPIRequest对象 +func NewTmallNrFulfillCancelRequest() *TmallNrFulfillCancelAPIRequest{ + return &TmallNrFulfillCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrFulfillCancelAPIRequest) GetApiMethodName() string { + return "tmall.nr.fulfill.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrFulfillCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Req Setter +// 入参 +func (r *TmallNrFulfillCancelAPIRequest) SetReq(_req *NrCancelFulfillReqDto) error { + r._req = _req + r.Set("req", _req) + return nil +} + +// Req Getter +func (r TmallNrFulfillCancelAPIRequest) GetReq() *NrCancelFulfillReqDto { + return r._req +} diff --git a/model/tmallnr/TmallNrFulfillCancelAPIResponse.go b/model/tmallnr/TmallNrFulfillCancelAPIResponse.go new file mode 100644 index 0000000000..a945047e92 --- /dev/null +++ b/model/tmallnr/TmallNrFulfillCancelAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消上门揽件 API返回值 +tmall.nr.fulfill.cancel + +新零售门店业务取消上门揽件 +*/ +type TmallNrFulfillCancelAPIResponse struct { + model.CommonResponse + TmallNrFulfillCancelAPIResponseModel +} + +// 取消上门揽件 成功返回结果 +type TmallNrFulfillCancelAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nr_fulfill_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *NrResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/TmallNrFulfillCancelReasonQueryAPIRequest.go b/model/tmallnr/TmallNrFulfillCancelReasonQueryAPIRequest.go new file mode 100644 index 0000000000..5f9142aa2f --- /dev/null +++ b/model/tmallnr/TmallNrFulfillCancelReasonQueryAPIRequest.go @@ -0,0 +1,66 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询取消履约的原因列表 API请求 +tmall.nr.fulfill.cancel.reason.query + +新零售门店业务查询取消上门揽件的原因列表 +*/ +type TmallNrFulfillCancelReasonQueryAPIRequest struct { + model.Params + // 商家的sellerID + _sellerId int64 + // 淘宝交易的主订单号 + _mainOrderId int64 +} + +// 初始化TmallNrFulfillCancelReasonQueryAPIRequest对象 +func NewTmallNrFulfillCancelReasonQueryRequest() *TmallNrFulfillCancelReasonQueryAPIRequest{ + return &TmallNrFulfillCancelReasonQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrFulfillCancelReasonQueryAPIRequest) GetApiMethodName() string { + return "tmall.nr.fulfill.cancel.reason.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrFulfillCancelReasonQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SellerId Setter +// 商家的sellerID +func (r *TmallNrFulfillCancelReasonQueryAPIRequest) SetSellerId(_sellerId int64) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r TmallNrFulfillCancelReasonQueryAPIRequest) GetSellerId() int64 { + return r._sellerId +} +// MainOrderId Setter +// 淘宝交易的主订单号 +func (r *TmallNrFulfillCancelReasonQueryAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r TmallNrFulfillCancelReasonQueryAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} diff --git a/model/tmallnr/TmallNrFulfillCancelReasonQueryAPIResponse.go b/model/tmallnr/TmallNrFulfillCancelReasonQueryAPIResponse.go new file mode 100644 index 0000000000..22df6fd7d5 --- /dev/null +++ b/model/tmallnr/TmallNrFulfillCancelReasonQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询取消履约的原因列表 API返回值 +tmall.nr.fulfill.cancel.reason.query + +新零售门店业务查询取消上门揽件的原因列表 +*/ +type TmallNrFulfillCancelReasonQueryAPIResponse struct { + model.CommonResponse + TmallNrFulfillCancelReasonQueryAPIResponseModel +} + +// 查询取消履约的原因列表 成功返回结果 +type TmallNrFulfillCancelReasonQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nr_fulfill_cancel_reason_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *NrResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/TmallNrFulfillCancelReasonQueryResponse.go b/model/tmallnr/TmallNrFulfillCancelReasonQueryResponse.go deleted file mode 100644 index 14d7bfb4f1..0000000000 --- a/model/tmallnr/TmallNrFulfillCancelReasonQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询取消履约的原因列表 API返回值 -tmall.nr.fulfill.cancel.reason.query - -新零售门店业务查询取消上门揽件的原因列表 -*/ -type TmallNrFulfillCancelReasonQueryAPIResponse struct { - model.CommonResponse - TmallNrFulfillCancelReasonQueryResponse -} - -// 查询取消履约的原因列表 成功返回结果 -type TmallNrFulfillCancelReasonQueryResponse struct { - XMLName xml.Name `xml:"tmall_nr_fulfill_cancel_reason_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *NrResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallnr/TmallNrFulfillCancelResponse.go b/model/tmallnr/TmallNrFulfillCancelResponse.go deleted file mode 100644 index ae3e9b6ee3..0000000000 --- a/model/tmallnr/TmallNrFulfillCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消上门揽件 API返回值 -tmall.nr.fulfill.cancel - -新零售门店业务取消上门揽件 -*/ -type TmallNrFulfillCancelAPIResponse struct { - model.CommonResponse - TmallNrFulfillCancelResponse -} - -// 取消上门揽件 成功返回结果 -type TmallNrFulfillCancelResponse struct { - XMLName xml.Name `xml:"tmall_nr_fulfill_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *NrResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallnr/TmallNrFulfillLogisticsConsignAPIRequest.go b/model/tmallnr/TmallNrFulfillLogisticsConsignAPIRequest.go new file mode 100644 index 0000000000..aeb229b798 --- /dev/null +++ b/model/tmallnr/TmallNrFulfillLogisticsConsignAPIRequest.go @@ -0,0 +1,52 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同城配门店备货通知 API请求 +tmall.nr.fulfill.logistics.consign + +同城配业务备货通知,商家告诉平台门店的货已经准备好,可以发货了; +*/ +type TmallNrFulfillLogisticsConsignAPIRequest struct { + model.Params + // 入参对象 + _param0 *NrStoreGoodsReadyReqDto +} + +// 初始化TmallNrFulfillLogisticsConsignAPIRequest对象 +func NewTmallNrFulfillLogisticsConsignRequest() *TmallNrFulfillLogisticsConsignAPIRequest{ + return &TmallNrFulfillLogisticsConsignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrFulfillLogisticsConsignAPIRequest) GetApiMethodName() string { + return "tmall.nr.fulfill.logistics.consign" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrFulfillLogisticsConsignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 入参对象 +func (r *TmallNrFulfillLogisticsConsignAPIRequest) SetParam0(_param0 *NrStoreGoodsReadyReqDto) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TmallNrFulfillLogisticsConsignAPIRequest) GetParam0() *NrStoreGoodsReadyReqDto { + return r._param0 +} diff --git a/model/tmallnr/TmallNrFulfillLogisticsConsignAPIResponse.go b/model/tmallnr/TmallNrFulfillLogisticsConsignAPIResponse.go new file mode 100644 index 0000000000..b714cb138a --- /dev/null +++ b/model/tmallnr/TmallNrFulfillLogisticsConsignAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同城配门店备货通知 API返回值 +tmall.nr.fulfill.logistics.consign + +同城配业务备货通知,商家告诉平台门店的货已经准备好,可以发货了; +*/ +type TmallNrFulfillLogisticsConsignAPIResponse struct { + model.CommonResponse + TmallNrFulfillLogisticsConsignAPIResponseModel +} + +// 同城配门店备货通知 成功返回结果 +type TmallNrFulfillLogisticsConsignAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nr_fulfill_logistics_consign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *NrResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/TmallNrFulfillLogisticsConsignResponse.go b/model/tmallnr/TmallNrFulfillLogisticsConsignResponse.go deleted file mode 100644 index a933f5d54d..0000000000 --- a/model/tmallnr/TmallNrFulfillLogisticsConsignResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同城配门店备货通知 API返回值 -tmall.nr.fulfill.logistics.consign - -同城配业务备货通知,商家告诉平台门店的货已经准备好,可以发货了; -*/ -type TmallNrFulfillLogisticsConsignAPIResponse struct { - model.CommonResponse - TmallNrFulfillLogisticsConsignResponse -} - -// 同城配门店备货通知 成功返回结果 -type TmallNrFulfillLogisticsConsignResponse struct { - XMLName xml.Name `xml:"tmall_nr_fulfill_logistics_consign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *NrResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallnr/TmallNrFulfillLogisticsQueryAPIRequest.go b/model/tmallnr/TmallNrFulfillLogisticsQueryAPIRequest.go new file mode 100644 index 0000000000..aad26819eb --- /dev/null +++ b/model/tmallnr/TmallNrFulfillLogisticsQueryAPIRequest.go @@ -0,0 +1,66 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定时送和极速达配送物流信息查询 API请求 +tmall.nr.fulfill.logistics.query + +发布定时送&极速达物流信息查询服务 +*/ +type TmallNrFulfillLogisticsQueryAPIRequest struct { + model.Params + // 交易主订单号 + _mainOrderId int64 + // 业务标识,dss标识定时送业务;jsd表示极速达业务 + _bizIdentity string +} + +// 初始化TmallNrFulfillLogisticsQueryAPIRequest对象 +func NewTmallNrFulfillLogisticsQueryRequest() *TmallNrFulfillLogisticsQueryAPIRequest{ + return &TmallNrFulfillLogisticsQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrFulfillLogisticsQueryAPIRequest) GetApiMethodName() string { + return "tmall.nr.fulfill.logistics.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrFulfillLogisticsQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainOrderId Setter +// 交易主订单号 +func (r *TmallNrFulfillLogisticsQueryAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r TmallNrFulfillLogisticsQueryAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} +// BizIdentity Setter +// 业务标识,dss标识定时送业务;jsd表示极速达业务 +func (r *TmallNrFulfillLogisticsQueryAPIRequest) SetBizIdentity(_bizIdentity string) error { + r._bizIdentity = _bizIdentity + r.Set("biz_identity", _bizIdentity) + return nil +} + +// BizIdentity Getter +func (r TmallNrFulfillLogisticsQueryAPIRequest) GetBizIdentity() string { + return r._bizIdentity +} diff --git a/model/tmallnr/TmallNrFulfillLogisticsQueryAPIResponse.go b/model/tmallnr/TmallNrFulfillLogisticsQueryAPIResponse.go new file mode 100644 index 0000000000..25b262c386 --- /dev/null +++ b/model/tmallnr/TmallNrFulfillLogisticsQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定时送和极速达配送物流信息查询 API返回值 +tmall.nr.fulfill.logistics.query + +发布定时送&极速达物流信息查询服务 +*/ +type TmallNrFulfillLogisticsQueryAPIResponse struct { + model.CommonResponse + TmallNrFulfillLogisticsQueryAPIResponseModel +} + +// 定时送和极速达配送物流信息查询 成功返回结果 +type TmallNrFulfillLogisticsQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nr_fulfill_logistics_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *NrResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/TmallNrFulfillLogisticsQueryResponse.go b/model/tmallnr/TmallNrFulfillLogisticsQueryResponse.go deleted file mode 100644 index 33224fbf7c..0000000000 --- a/model/tmallnr/TmallNrFulfillLogisticsQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定时送和极速达配送物流信息查询 API返回值 -tmall.nr.fulfill.logistics.query - -发布定时送&极速达物流信息查询服务 -*/ -type TmallNrFulfillLogisticsQueryAPIResponse struct { - model.CommonResponse - TmallNrFulfillLogisticsQueryResponse -} - -// 定时送和极速达配送物流信息查询 成功返回结果 -type TmallNrFulfillLogisticsQueryResponse struct { - XMLName xml.Name `xml:"tmall_nr_fulfill_logistics_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *NrResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallnr/TmallNrFulfillLogisticsSyncAPIRequest.go b/model/tmallnr/TmallNrFulfillLogisticsSyncAPIRequest.go new file mode 100644 index 0000000000..4e28f6482d --- /dev/null +++ b/model/tmallnr/TmallNrFulfillLogisticsSyncAPIRequest.go @@ -0,0 +1,52 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同城配物流信息回传 API请求 +tmall.nr.fulfill.logistics.sync + +同城配业务物流信息回传,通过接口将物流信息同步给天猫 +*/ +type TmallNrFulfillLogisticsSyncAPIRequest struct { + model.Params + // 物流回传参数 + _param0 *NrLogisticsInfoSynReqDto +} + +// 初始化TmallNrFulfillLogisticsSyncAPIRequest对象 +func NewTmallNrFulfillLogisticsSyncRequest() *TmallNrFulfillLogisticsSyncAPIRequest{ + return &TmallNrFulfillLogisticsSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrFulfillLogisticsSyncAPIRequest) GetApiMethodName() string { + return "tmall.nr.fulfill.logistics.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrFulfillLogisticsSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 物流回传参数 +func (r *TmallNrFulfillLogisticsSyncAPIRequest) SetParam0(_param0 *NrLogisticsInfoSynReqDto) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TmallNrFulfillLogisticsSyncAPIRequest) GetParam0() *NrLogisticsInfoSynReqDto { + return r._param0 +} diff --git a/model/tmallnr/TmallNrFulfillLogisticsSyncAPIResponse.go b/model/tmallnr/TmallNrFulfillLogisticsSyncAPIResponse.go new file mode 100644 index 0000000000..e2f005fc55 --- /dev/null +++ b/model/tmallnr/TmallNrFulfillLogisticsSyncAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同城配物流信息回传 API返回值 +tmall.nr.fulfill.logistics.sync + +同城配业务物流信息回传,通过接口将物流信息同步给天猫 +*/ +type TmallNrFulfillLogisticsSyncAPIResponse struct { + model.CommonResponse + TmallNrFulfillLogisticsSyncAPIResponseModel +} + +// 同城配物流信息回传 成功返回结果 +type TmallNrFulfillLogisticsSyncAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nr_fulfill_logistics_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *NrResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/TmallNrFulfillLogisticsSyncResponse.go b/model/tmallnr/TmallNrFulfillLogisticsSyncResponse.go deleted file mode 100644 index 41d577e6f6..0000000000 --- a/model/tmallnr/TmallNrFulfillLogisticsSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同城配物流信息回传 API返回值 -tmall.nr.fulfill.logistics.sync - -同城配业务物流信息回传,通过接口将物流信息同步给天猫 -*/ -type TmallNrFulfillLogisticsSyncAPIResponse struct { - model.CommonResponse - TmallNrFulfillLogisticsSyncResponse -} - -// 同城配物流信息回传 成功返回结果 -type TmallNrFulfillLogisticsSyncResponse struct { - XMLName xml.Name `xml:"tmall_nr_fulfill_logistics_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *NrResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallnr/TmallNrFulfillOrderQueryAPIRequest.go b/model/tmallnr/TmallNrFulfillOrderQueryAPIRequest.go new file mode 100644 index 0000000000..33b97b6660 --- /dev/null +++ b/model/tmallnr/TmallNrFulfillOrderQueryAPIRequest.go @@ -0,0 +1,80 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售商获取品牌商的单笔订单 API请求 +tmall.nr.fulfill.order.query + +零售商获取品牌商的单笔订单,后端服务有零售商和品牌商的绑定关系,存在开关控制;返回值存在品牌方用户的电话号码,当前电话号码是屏蔽中间四位 +*/ +type TmallNrFulfillOrderQueryAPIRequest struct { + model.Params + // 业务标识,dss标识定时送业务;jsd表示极速达业务 + _bizIdentity string + // 交易主订单号 + _orderId int64 + // 预留-扩展信息 + _extParam string +} + +// 初始化TmallNrFulfillOrderQueryAPIRequest对象 +func NewTmallNrFulfillOrderQueryRequest() *TmallNrFulfillOrderQueryAPIRequest{ + return &TmallNrFulfillOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrFulfillOrderQueryAPIRequest) GetApiMethodName() string { + return "tmall.nr.fulfill.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrFulfillOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizIdentity Setter +// 业务标识,dss标识定时送业务;jsd表示极速达业务 +func (r *TmallNrFulfillOrderQueryAPIRequest) SetBizIdentity(_bizIdentity string) error { + r._bizIdentity = _bizIdentity + r.Set("biz_identity", _bizIdentity) + return nil +} + +// BizIdentity Getter +func (r TmallNrFulfillOrderQueryAPIRequest) GetBizIdentity() string { + return r._bizIdentity +} +// OrderId Setter +// 交易主订单号 +func (r *TmallNrFulfillOrderQueryAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TmallNrFulfillOrderQueryAPIRequest) GetOrderId() int64 { + return r._orderId +} +// ExtParam Setter +// 预留-扩展信息 +func (r *TmallNrFulfillOrderQueryAPIRequest) SetExtParam(_extParam string) error { + r._extParam = _extParam + r.Set("ext_param", _extParam) + return nil +} + +// ExtParam Getter +func (r TmallNrFulfillOrderQueryAPIRequest) GetExtParam() string { + return r._extParam +} diff --git a/model/tmallnr/TmallNrFulfillOrderQueryAPIResponse.go b/model/tmallnr/TmallNrFulfillOrderQueryAPIResponse.go new file mode 100644 index 0000000000..c892c7e712 --- /dev/null +++ b/model/tmallnr/TmallNrFulfillOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售商获取品牌商的单笔订单 API返回值 +tmall.nr.fulfill.order.query + +零售商获取品牌商的单笔订单,后端服务有零售商和品牌商的绑定关系,存在开关控制;返回值存在品牌方用户的电话号码,当前电话号码是屏蔽中间四位 +*/ +type TmallNrFulfillOrderQueryAPIResponse struct { + model.CommonResponse + TmallNrFulfillOrderQueryAPIResponseModel +} + +// 零售商获取品牌商的单笔订单 成功返回结果 +type TmallNrFulfillOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nr_fulfill_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回 + Result *NrResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/TmallNrFulfillOrderQueryResponse.go b/model/tmallnr/TmallNrFulfillOrderQueryResponse.go deleted file mode 100644 index afc33a2b5a..0000000000 --- a/model/tmallnr/TmallNrFulfillOrderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售商获取品牌商的单笔订单 API返回值 -tmall.nr.fulfill.order.query - -零售商获取品牌商的单笔订单,后端服务有零售商和品牌商的绑定关系,存在开关控制;返回值存在品牌方用户的电话号码,当前电话号码是屏蔽中间四位 -*/ -type TmallNrFulfillOrderQueryAPIResponse struct { - model.CommonResponse - TmallNrFulfillOrderQueryResponse -} - -// 零售商获取品牌商的单笔订单 成功返回结果 -type TmallNrFulfillOrderQueryResponse struct { - XMLName xml.Name `xml:"tmall_nr_fulfill_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回 - Result *NrResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallnr/TmallNrFulfillSoldOrderlistQueryAPIRequest.go b/model/tmallnr/TmallNrFulfillSoldOrderlistQueryAPIRequest.go new file mode 100644 index 0000000000..cb3c930d77 --- /dev/null +++ b/model/tmallnr/TmallNrFulfillSoldOrderlistQueryAPIRequest.go @@ -0,0 +1,52 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售商获取品牌商的特定订单列表 API请求 +tmall.nr.fulfill.sold.orderlist.query + +零售商获取品牌商的特定订单列表,后端服务有零售商和品牌商的绑定关系,存在开关控制;同时后端存在定时送业务等特殊业务的校验,非同城配送业务不能返回,返回值存在品牌方用户的电话号码,当前电话号码是屏蔽中间四位 +*/ +type TmallNrFulfillSoldOrderlistQueryAPIRequest struct { + model.Params + // 入参对象 + _param0 *NrTimingOrderSoldQueryReqDto +} + +// 初始化TmallNrFulfillSoldOrderlistQueryAPIRequest对象 +func NewTmallNrFulfillSoldOrderlistQueryRequest() *TmallNrFulfillSoldOrderlistQueryAPIRequest{ + return &TmallNrFulfillSoldOrderlistQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrFulfillSoldOrderlistQueryAPIRequest) GetApiMethodName() string { + return "tmall.nr.fulfill.sold.orderlist.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrFulfillSoldOrderlistQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 入参对象 +func (r *TmallNrFulfillSoldOrderlistQueryAPIRequest) SetParam0(_param0 *NrTimingOrderSoldQueryReqDto) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TmallNrFulfillSoldOrderlistQueryAPIRequest) GetParam0() *NrTimingOrderSoldQueryReqDto { + return r._param0 +} diff --git a/model/tmallnr/TmallNrFulfillSoldOrderlistQueryAPIResponse.go b/model/tmallnr/TmallNrFulfillSoldOrderlistQueryAPIResponse.go new file mode 100644 index 0000000000..f2e903311c --- /dev/null +++ b/model/tmallnr/TmallNrFulfillSoldOrderlistQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售商获取品牌商的特定订单列表 API返回值 +tmall.nr.fulfill.sold.orderlist.query + +零售商获取品牌商的特定订单列表,后端服务有零售商和品牌商的绑定关系,存在开关控制;同时后端存在定时送业务等特殊业务的校验,非同城配送业务不能返回,返回值存在品牌方用户的电话号码,当前电话号码是屏蔽中间四位 +*/ +type TmallNrFulfillSoldOrderlistQueryAPIResponse struct { + model.CommonResponse + TmallNrFulfillSoldOrderlistQueryAPIResponseModel +} + +// 零售商获取品牌商的特定订单列表 成功返回结果 +type TmallNrFulfillSoldOrderlistQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nr_fulfill_sold_orderlist_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *NrResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/TmallNrFulfillSoldOrderlistQueryResponse.go b/model/tmallnr/TmallNrFulfillSoldOrderlistQueryResponse.go deleted file mode 100644 index b9b9440ccd..0000000000 --- a/model/tmallnr/TmallNrFulfillSoldOrderlistQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售商获取品牌商的特定订单列表 API返回值 -tmall.nr.fulfill.sold.orderlist.query - -零售商获取品牌商的特定订单列表,后端服务有零售商和品牌商的绑定关系,存在开关控制;同时后端存在定时送业务等特殊业务的校验,非同城配送业务不能返回,返回值存在品牌方用户的电话号码,当前电话号码是屏蔽中间四位 -*/ -type TmallNrFulfillSoldOrderlistQueryAPIResponse struct { - model.CommonResponse - TmallNrFulfillSoldOrderlistQueryResponse -} - -// 零售商获取品牌商的特定订单列表 成功返回结果 -type TmallNrFulfillSoldOrderlistQueryResponse struct { - XMLName xml.Name `xml:"tmall_nr_fulfill_sold_orderlist_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *NrResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallnr/TmallNrInventoryInitialAPIRequest.go b/model/tmallnr/TmallNrInventoryInitialAPIRequest.go new file mode 100644 index 0000000000..6ab4d0d8fd --- /dev/null +++ b/model/tmallnr/TmallNrInventoryInitialAPIRequest.go @@ -0,0 +1,52 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店库存初始化前后端商品绑定 API请求 +tmall.nr.inventory.initial + +用于门店业务的商品的初始化,前端商品和后端商品绑定,走后端库存模式 +*/ +type TmallNrInventoryInitialAPIRequest struct { + model.Params + // 请求入参 + _param0 *NrStoreInvItemInitialReqDto +} + +// 初始化TmallNrInventoryInitialAPIRequest对象 +func NewTmallNrInventoryInitialRequest() *TmallNrInventoryInitialAPIRequest{ + return &TmallNrInventoryInitialAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrInventoryInitialAPIRequest) GetApiMethodName() string { + return "tmall.nr.inventory.initial" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrInventoryInitialAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 请求入参 +func (r *TmallNrInventoryInitialAPIRequest) SetParam0(_param0 *NrStoreInvItemInitialReqDto) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TmallNrInventoryInitialAPIRequest) GetParam0() *NrStoreInvItemInitialReqDto { + return r._param0 +} diff --git a/model/tmallnr/TmallNrInventoryInitialAPIResponse.go b/model/tmallnr/TmallNrInventoryInitialAPIResponse.go new file mode 100644 index 0000000000..6d8f971e5a --- /dev/null +++ b/model/tmallnr/TmallNrInventoryInitialAPIResponse.go @@ -0,0 +1,33 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店库存初始化前后端商品绑定 API返回值 +tmall.nr.inventory.initial + +用于门店业务的商品的初始化,前端商品和后端商品绑定,走后端库存模式 +*/ +type TmallNrInventoryInitialAPIResponse struct { + model.CommonResponse + TmallNrInventoryInitialAPIResponseModel +} + +// 门店库存初始化前后端商品绑定 成功返回结果 +type TmallNrInventoryInitialAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nr_inventory_initial_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 初始化成功 + ResultData bool `json:"result_data,omitempty" xml:"result_data,omitempty"` + // 错误信息提示 + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // 错误编码 + ErrorCode2 string `json:"error_code2,omitempty" xml:"error_code2,omitempty"` + // isSuccess + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/tmallnr/TmallNrInventoryInitialResponse.go b/model/tmallnr/TmallNrInventoryInitialResponse.go deleted file mode 100644 index 781858516a..0000000000 --- a/model/tmallnr/TmallNrInventoryInitialResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店库存初始化前后端商品绑定 API返回值 -tmall.nr.inventory.initial - -用于门店业务的商品的初始化,前端商品和后端商品绑定,走后端库存模式 -*/ -type TmallNrInventoryInitialAPIResponse struct { - model.CommonResponse - TmallNrInventoryInitialResponse -} - -// 门店库存初始化前后端商品绑定 成功返回结果 -type TmallNrInventoryInitialResponse struct { - XMLName xml.Name `xml:"tmall_nr_inventory_initial_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 初始化成功 - ResultData bool `json:"result_data,omitempty" xml:"result_data,omitempty"` - // 错误信息提示 - ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` - // 错误编码 - ErrorCode2 string `json:"error_code2,omitempty" xml:"error_code2,omitempty"` - // isSuccess - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/tmallnr/TmallNrInventoryUpdateAPIRequest.go b/model/tmallnr/TmallNrInventoryUpdateAPIRequest.go new file mode 100644 index 0000000000..6542270e0a --- /dev/null +++ b/model/tmallnr/TmallNrInventoryUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店业务同步库存 API请求 +tmall.nr.inventory.update + +用于商家每日同步更新门店库存 +*/ +type TmallNrInventoryUpdateAPIRequest struct { + model.Params + // 入参 + _param0 *NrInventoryUpdateReqDto +} + +// 初始化TmallNrInventoryUpdateAPIRequest对象 +func NewTmallNrInventoryUpdateRequest() *TmallNrInventoryUpdateAPIRequest{ + return &TmallNrInventoryUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrInventoryUpdateAPIRequest) GetApiMethodName() string { + return "tmall.nr.inventory.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrInventoryUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 入参 +func (r *TmallNrInventoryUpdateAPIRequest) SetParam0(_param0 *NrInventoryUpdateReqDto) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TmallNrInventoryUpdateAPIRequest) GetParam0() *NrInventoryUpdateReqDto { + return r._param0 +} diff --git a/model/tmallnr/TmallNrInventoryUpdateAPIResponse.go b/model/tmallnr/TmallNrInventoryUpdateAPIResponse.go new file mode 100644 index 0000000000..f28e4319d2 --- /dev/null +++ b/model/tmallnr/TmallNrInventoryUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店业务同步库存 API返回值 +tmall.nr.inventory.update + +用于商家每日同步更新门店库存 +*/ +type TmallNrInventoryUpdateAPIResponse struct { + model.CommonResponse + TmallNrInventoryUpdateAPIResponseModel +} + +// 门店业务同步库存 成功返回结果 +type TmallNrInventoryUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nr_inventory_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *NrResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/TmallNrInventoryUpdateResponse.go b/model/tmallnr/TmallNrInventoryUpdateResponse.go deleted file mode 100644 index 4cdf11dc17..0000000000 --- a/model/tmallnr/TmallNrInventoryUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店业务同步库存 API返回值 -tmall.nr.inventory.update - -用于商家每日同步更新门店库存 -*/ -type TmallNrInventoryUpdateAPIResponse struct { - model.CommonResponse - TmallNrInventoryUpdateResponse -} - -// 门店业务同步库存 成功返回结果 -type TmallNrInventoryUpdateResponse struct { - XMLName xml.Name `xml:"tmall_nr_inventory_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *NrResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallnr/TmallNrItemTagOpsAPIRequest.go b/model/tmallnr/TmallNrItemTagOpsAPIRequest.go new file mode 100644 index 0000000000..2c2f986590 --- /dev/null +++ b/model/tmallnr/TmallNrItemTagOpsAPIRequest.go @@ -0,0 +1,52 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +区域零售商品打标去标 API请求 +tmall.nr.item.tag.ops + +参加区域零售的商品,需要批量打标或去标,方便后续设置商品库存 +*/ +type TmallNrItemTagOpsAPIRequest struct { + model.Params + // 请求入参 + _tagReqDTO *TagReqDto +} + +// 初始化TmallNrItemTagOpsAPIRequest对象 +func NewTmallNrItemTagOpsRequest() *TmallNrItemTagOpsAPIRequest{ + return &TmallNrItemTagOpsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrItemTagOpsAPIRequest) GetApiMethodName() string { + return "tmall.nr.item.tag.ops" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrItemTagOpsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TagReqDTO Setter +// 请求入参 +func (r *TmallNrItemTagOpsAPIRequest) SetTagReqDTO(_tagReqDTO *TagReqDto) error { + r._tagReqDTO = _tagReqDTO + r.Set("tag_req_d_t_o", _tagReqDTO) + return nil +} + +// TagReqDTO Getter +func (r TmallNrItemTagOpsAPIRequest) GetTagReqDTO() *TagReqDto { + return r._tagReqDTO +} diff --git a/model/tmallnr/TmallNrItemTagOpsAPIResponse.go b/model/tmallnr/TmallNrItemTagOpsAPIResponse.go new file mode 100644 index 0000000000..8cb603b03f --- /dev/null +++ b/model/tmallnr/TmallNrItemTagOpsAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +区域零售商品打标去标 API返回值 +tmall.nr.item.tag.ops + +参加区域零售的商品,需要批量打标或去标,方便后续设置商品库存 +*/ +type TmallNrItemTagOpsAPIResponse struct { + model.CommonResponse + TmallNrItemTagOpsAPIResponseModel +} + +// 区域零售商品打标去标 成功返回结果 +type TmallNrItemTagOpsAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nr_item_tag_ops_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *NewRetailResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/TmallNrItemTagOpsResponse.go b/model/tmallnr/TmallNrItemTagOpsResponse.go deleted file mode 100644 index 9b0220d33f..0000000000 --- a/model/tmallnr/TmallNrItemTagOpsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -区域零售商品打标去标 API返回值 -tmall.nr.item.tag.ops - -参加区域零售的商品,需要批量打标或去标,方便后续设置商品库存 -*/ -type TmallNrItemTagOpsAPIResponse struct { - model.CommonResponse - TmallNrItemTagOpsResponse -} - -// 区域零售商品打标去标 成功返回结果 -type TmallNrItemTagOpsResponse struct { - XMLName xml.Name `xml:"tmall_nr_item_tag_ops_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *NewRetailResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallnr/TmallNrNoticeGoodsReadyAPIRequest.go b/model/tmallnr/TmallNrNoticeGoodsReadyAPIRequest.go new file mode 100644 index 0000000000..f7b6d58be8 --- /dev/null +++ b/model/tmallnr/TmallNrNoticeGoodsReadyAPIRequest.go @@ -0,0 +1,52 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同步天猫配送人员信息 API请求 +tmall.nr.notice.goods.ready + +接收商家的配送人员信息,和第三公司信息及提货码 +*/ +type TmallNrNoticeGoodsReadyAPIRequest struct { + model.Params + // 入参 + _param0 *NrZqsGoodsReadyReqDto +} + +// 初始化TmallNrNoticeGoodsReadyAPIRequest对象 +func NewTmallNrNoticeGoodsReadyRequest() *TmallNrNoticeGoodsReadyAPIRequest{ + return &TmallNrNoticeGoodsReadyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrNoticeGoodsReadyAPIRequest) GetApiMethodName() string { + return "tmall.nr.notice.goods.ready" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrNoticeGoodsReadyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 入参 +func (r *TmallNrNoticeGoodsReadyAPIRequest) SetParam0(_param0 *NrZqsGoodsReadyReqDto) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TmallNrNoticeGoodsReadyAPIRequest) GetParam0() *NrZqsGoodsReadyReqDto { + return r._param0 +} diff --git a/model/tmallnr/TmallNrNoticeGoodsReadyAPIResponse.go b/model/tmallnr/TmallNrNoticeGoodsReadyAPIResponse.go new file mode 100644 index 0000000000..8b9d24ebc3 --- /dev/null +++ b/model/tmallnr/TmallNrNoticeGoodsReadyAPIResponse.go @@ -0,0 +1,33 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同步天猫配送人员信息 API返回值 +tmall.nr.notice.goods.ready + +接收商家的配送人员信息,和第三公司信息及提货码 +*/ +type TmallNrNoticeGoodsReadyAPIResponse struct { + model.CommonResponse + TmallNrNoticeGoodsReadyAPIResponseModel +} + +// 同步天猫配送人员信息 成功返回结果 +type TmallNrNoticeGoodsReadyAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nr_notice_goods_ready_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // resultData + ResultData bool `json:"result_data,omitempty" xml:"result_data,omitempty"` + // errorMessage + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // errorCode + ErrorCode2 string `json:"error_code2,omitempty" xml:"error_code2,omitempty"` + // isSuccess + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/tmallnr/TmallNrNoticeGoodsReadyResponse.go b/model/tmallnr/TmallNrNoticeGoodsReadyResponse.go deleted file mode 100644 index 9d7c0e56ec..0000000000 --- a/model/tmallnr/TmallNrNoticeGoodsReadyResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同步天猫配送人员信息 API返回值 -tmall.nr.notice.goods.ready - -接收商家的配送人员信息,和第三公司信息及提货码 -*/ -type TmallNrNoticeGoodsReadyAPIResponse struct { - model.CommonResponse - TmallNrNoticeGoodsReadyResponse -} - -// 同步天猫配送人员信息 成功返回结果 -type TmallNrNoticeGoodsReadyResponse struct { - XMLName xml.Name `xml:"tmall_nr_notice_goods_ready_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // resultData - ResultData bool `json:"result_data,omitempty" xml:"result_data,omitempty"` - // errorMessage - ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` - // errorCode - ErrorCode2 string `json:"error_code2,omitempty" xml:"error_code2,omitempty"` - // isSuccess - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/tmallnr/TmallNrOrderLogisInfoAPIRequest.go b/model/tmallnr/TmallNrOrderLogisInfoAPIRequest.go new file mode 100644 index 0000000000..a61a45f07b --- /dev/null +++ b/model/tmallnr/TmallNrOrderLogisInfoAPIRequest.go @@ -0,0 +1,80 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +区域零售订单获取取件码 API请求 +tmall.nr.order.logis.info + +区域零售订单获取取件码,方便商家系统接入,获取取件码打印信息进行打印。 +*/ +type TmallNrOrderLogisInfoAPIRequest struct { + model.Params + // 卖家ID + _sellerId int64 + // 主订单号 + _mainOrderIds []int64 + // 来源标识 + _channel string +} + +// 初始化TmallNrOrderLogisInfoAPIRequest对象 +func NewTmallNrOrderLogisInfoRequest() *TmallNrOrderLogisInfoAPIRequest{ + return &TmallNrOrderLogisInfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrOrderLogisInfoAPIRequest) GetApiMethodName() string { + return "tmall.nr.order.logis.info" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrOrderLogisInfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SellerId Setter +// 卖家ID +func (r *TmallNrOrderLogisInfoAPIRequest) SetSellerId(_sellerId int64) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r TmallNrOrderLogisInfoAPIRequest) GetSellerId() int64 { + return r._sellerId +} +// MainOrderIds Setter +// 主订单号 +func (r *TmallNrOrderLogisInfoAPIRequest) SetMainOrderIds(_mainOrderIds []int64) error { + r._mainOrderIds = _mainOrderIds + r.Set("main_order_ids", _mainOrderIds) + return nil +} + +// MainOrderIds Getter +func (r TmallNrOrderLogisInfoAPIRequest) GetMainOrderIds() []int64 { + return r._mainOrderIds +} +// Channel Setter +// 来源标识 +func (r *TmallNrOrderLogisInfoAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r TmallNrOrderLogisInfoAPIRequest) GetChannel() string { + return r._channel +} diff --git a/model/tmallnr/TmallNrOrderLogisInfoAPIResponse.go b/model/tmallnr/TmallNrOrderLogisInfoAPIResponse.go new file mode 100644 index 0000000000..8b78f31619 --- /dev/null +++ b/model/tmallnr/TmallNrOrderLogisInfoAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +区域零售订单获取取件码 API返回值 +tmall.nr.order.logis.info + +区域零售订单获取取件码,方便商家系统接入,获取取件码打印信息进行打印。 +*/ +type TmallNrOrderLogisInfoAPIResponse struct { + model.CommonResponse + TmallNrOrderLogisInfoAPIResponseModel +} + +// 区域零售订单获取取件码 成功返回结果 +type TmallNrOrderLogisInfoAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nr_order_logis_info_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果实体 + Result *NewRetailResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/TmallNrOrderLogisInfoResponse.go b/model/tmallnr/TmallNrOrderLogisInfoResponse.go deleted file mode 100644 index a153a3a1f9..0000000000 --- a/model/tmallnr/TmallNrOrderLogisInfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -区域零售订单获取取件码 API返回值 -tmall.nr.order.logis.info - -区域零售订单获取取件码,方便商家系统接入,获取取件码打印信息进行打印。 -*/ -type TmallNrOrderLogisInfoAPIResponse struct { - model.CommonResponse - TmallNrOrderLogisInfoResponse -} - -// 区域零售订单获取取件码 成功返回结果 -type TmallNrOrderLogisInfoResponse struct { - XMLName xml.Name `xml:"tmall_nr_order_logis_info_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果实体 - Result *NewRetailResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallnr/TmallNrOrderQueryJstAPIRequest.go b/model/tmallnr/TmallNrOrderQueryJstAPIRequest.go new file mode 100644 index 0000000000..933789fc38 --- /dev/null +++ b/model/tmallnr/TmallNrOrderQueryJstAPIRequest.go @@ -0,0 +1,80 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取同城配送业务单笔订单 API请求 +tmall.nr.order.query.jst + +同城配送业务获取单笔订单 +*/ +type TmallNrOrderQueryJstAPIRequest struct { + model.Params + // 业务标识,dss标识定时送业务;jsd表示极速达业务 + _bizIdentity string + // 交易主订单号 + _orderId int64 + // 预留-扩展信息 + _extParam string +} + +// 初始化TmallNrOrderQueryJstAPIRequest对象 +func NewTmallNrOrderQueryJstRequest() *TmallNrOrderQueryJstAPIRequest{ + return &TmallNrOrderQueryJstAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrOrderQueryJstAPIRequest) GetApiMethodName() string { + return "tmall.nr.order.query.jst" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrOrderQueryJstAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizIdentity Setter +// 业务标识,dss标识定时送业务;jsd表示极速达业务 +func (r *TmallNrOrderQueryJstAPIRequest) SetBizIdentity(_bizIdentity string) error { + r._bizIdentity = _bizIdentity + r.Set("biz_identity", _bizIdentity) + return nil +} + +// BizIdentity Getter +func (r TmallNrOrderQueryJstAPIRequest) GetBizIdentity() string { + return r._bizIdentity +} +// OrderId Setter +// 交易主订单号 +func (r *TmallNrOrderQueryJstAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TmallNrOrderQueryJstAPIRequest) GetOrderId() int64 { + return r._orderId +} +// ExtParam Setter +// 预留-扩展信息 +func (r *TmallNrOrderQueryJstAPIRequest) SetExtParam(_extParam string) error { + r._extParam = _extParam + r.Set("ext_param", _extParam) + return nil +} + +// ExtParam Getter +func (r TmallNrOrderQueryJstAPIRequest) GetExtParam() string { + return r._extParam +} diff --git a/model/tmallnr/TmallNrOrderQueryJstAPIResponse.go b/model/tmallnr/TmallNrOrderQueryJstAPIResponse.go new file mode 100644 index 0000000000..31954e5df7 --- /dev/null +++ b/model/tmallnr/TmallNrOrderQueryJstAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取同城配送业务单笔订单 API返回值 +tmall.nr.order.query.jst + +同城配送业务获取单笔订单 +*/ +type TmallNrOrderQueryJstAPIResponse struct { + model.CommonResponse + TmallNrOrderQueryJstAPIResponseModel +} + +// 获取同城配送业务单笔订单 成功返回结果 +type TmallNrOrderQueryJstAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nr_order_query_jst_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *NewRetailResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/TmallNrOrderQueryJstResponse.go b/model/tmallnr/TmallNrOrderQueryJstResponse.go deleted file mode 100644 index 374ba8c769..0000000000 --- a/model/tmallnr/TmallNrOrderQueryJstResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取同城配送业务单笔订单 API返回值 -tmall.nr.order.query.jst - -同城配送业务获取单笔订单 -*/ -type TmallNrOrderQueryJstAPIResponse struct { - model.CommonResponse - TmallNrOrderQueryJstResponse -} - -// 获取同城配送业务单笔订单 成功返回结果 -type TmallNrOrderQueryJstResponse struct { - XMLName xml.Name `xml:"tmall_nr_order_query_jst_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *NewRetailResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallnr/TmallNrSellerStorerangeReadAPIRequest.go b/model/tmallnr/TmallNrSellerStorerangeReadAPIRequest.go new file mode 100644 index 0000000000..7679c6e4b6 --- /dev/null +++ b/model/tmallnr/TmallNrSellerStorerangeReadAPIRequest.go @@ -0,0 +1,80 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店服务范围读取 API请求 +tmall.nr.seller.storerange.read + +读取卖家所属门店的服务范围 +*/ +type TmallNrSellerStorerangeReadAPIRequest struct { + model.Params + // 给ISV用sellerid,ISV可能对接其他seller,有可能和登录不是同一个sellerid + _sellerId int64 + // 业务身份,此api非必填 + _bizIdentity string + // 门店id + _storeIds []int64 +} + +// 初始化TmallNrSellerStorerangeReadAPIRequest对象 +func NewTmallNrSellerStorerangeReadRequest() *TmallNrSellerStorerangeReadAPIRequest{ + return &TmallNrSellerStorerangeReadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrSellerStorerangeReadAPIRequest) GetApiMethodName() string { + return "tmall.nr.seller.storerange.read" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrSellerStorerangeReadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SellerId Setter +// 给ISV用sellerid,ISV可能对接其他seller,有可能和登录不是同一个sellerid +func (r *TmallNrSellerStorerangeReadAPIRequest) SetSellerId(_sellerId int64) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r TmallNrSellerStorerangeReadAPIRequest) GetSellerId() int64 { + return r._sellerId +} +// BizIdentity Setter +// 业务身份,此api非必填 +func (r *TmallNrSellerStorerangeReadAPIRequest) SetBizIdentity(_bizIdentity string) error { + r._bizIdentity = _bizIdentity + r.Set("biz_identity", _bizIdentity) + return nil +} + +// BizIdentity Getter +func (r TmallNrSellerStorerangeReadAPIRequest) GetBizIdentity() string { + return r._bizIdentity +} +// StoreIds Setter +// 门店id +func (r *TmallNrSellerStorerangeReadAPIRequest) SetStoreIds(_storeIds []int64) error { + r._storeIds = _storeIds + r.Set("store_ids", _storeIds) + return nil +} + +// StoreIds Getter +func (r TmallNrSellerStorerangeReadAPIRequest) GetStoreIds() []int64 { + return r._storeIds +} diff --git a/model/tmallnr/TmallNrSellerStorerangeReadAPIResponse.go b/model/tmallnr/TmallNrSellerStorerangeReadAPIResponse.go new file mode 100644 index 0000000000..a870ae2f48 --- /dev/null +++ b/model/tmallnr/TmallNrSellerStorerangeReadAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店服务范围读取 API返回值 +tmall.nr.seller.storerange.read + +读取卖家所属门店的服务范围 +*/ +type TmallNrSellerStorerangeReadAPIResponse struct { + model.CommonResponse + TmallNrSellerStorerangeReadAPIResponseModel +} + +// 门店服务范围读取 成功返回结果 +type TmallNrSellerStorerangeReadAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nr_seller_storerange_read_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + ResultList *NrResult `json:"result_list,omitempty" xml:"result_list,omitempty"` +} diff --git a/model/tmallnr/TmallNrSellerStorerangeReadResponse.go b/model/tmallnr/TmallNrSellerStorerangeReadResponse.go deleted file mode 100644 index eae8810b11..0000000000 --- a/model/tmallnr/TmallNrSellerStorerangeReadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店服务范围读取 API返回值 -tmall.nr.seller.storerange.read - -读取卖家所属门店的服务范围 -*/ -type TmallNrSellerStorerangeReadAPIResponse struct { - model.CommonResponse - TmallNrSellerStorerangeReadResponse -} - -// 门店服务范围读取 成功返回结果 -type TmallNrSellerStorerangeReadResponse struct { - XMLName xml.Name `xml:"tmall_nr_seller_storerange_read_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - ResultList *NrResult `json:"result_list,omitempty" xml:"result_list,omitempty"` -} diff --git a/model/tmallnr/TmallNrSellerStorerangeSyncAPIRequest.go b/model/tmallnr/TmallNrSellerStorerangeSyncAPIRequest.go new file mode 100644 index 0000000000..a4e7fc1370 --- /dev/null +++ b/model/tmallnr/TmallNrSellerStorerangeSyncAPIRequest.go @@ -0,0 +1,80 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同步商户中心服务范围 API请求 +tmall.nr.seller.storerange.sync + +同步商户中心服务范围 +*/ +type TmallNrSellerStorerangeSyncAPIRequest struct { + model.Params + // 业务身份标识,dss定时送;self_day 自配日达;self_hour 自配小时达 + _bizIdentity string + // 系统自动生成 + _reqDTOList []SyncServiceRangeRequestDto + // 卖家id,有可能和登录seller不是同一个id + _sellerId int64 +} + +// 初始化TmallNrSellerStorerangeSyncAPIRequest对象 +func NewTmallNrSellerStorerangeSyncRequest() *TmallNrSellerStorerangeSyncAPIRequest{ + return &TmallNrSellerStorerangeSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrSellerStorerangeSyncAPIRequest) GetApiMethodName() string { + return "tmall.nr.seller.storerange.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrSellerStorerangeSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizIdentity Setter +// 业务身份标识,dss定时送;self_day 自配日达;self_hour 自配小时达 +func (r *TmallNrSellerStorerangeSyncAPIRequest) SetBizIdentity(_bizIdentity string) error { + r._bizIdentity = _bizIdentity + r.Set("biz_identity", _bizIdentity) + return nil +} + +// BizIdentity Getter +func (r TmallNrSellerStorerangeSyncAPIRequest) GetBizIdentity() string { + return r._bizIdentity +} +// ReqDTOList Setter +// 系统自动生成 +func (r *TmallNrSellerStorerangeSyncAPIRequest) SetReqDTOList(_reqDTOList []SyncServiceRangeRequestDto) error { + r._reqDTOList = _reqDTOList + r.Set("req_d_t_o_list", _reqDTOList) + return nil +} + +// ReqDTOList Getter +func (r TmallNrSellerStorerangeSyncAPIRequest) GetReqDTOList() []SyncServiceRangeRequestDto { + return r._reqDTOList +} +// SellerId Setter +// 卖家id,有可能和登录seller不是同一个id +func (r *TmallNrSellerStorerangeSyncAPIRequest) SetSellerId(_sellerId int64) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r TmallNrSellerStorerangeSyncAPIRequest) GetSellerId() int64 { + return r._sellerId +} diff --git a/model/tmallnr/TmallNrSellerStorerangeSyncAPIResponse.go b/model/tmallnr/TmallNrSellerStorerangeSyncAPIResponse.go new file mode 100644 index 0000000000..0f84455f69 --- /dev/null +++ b/model/tmallnr/TmallNrSellerStorerangeSyncAPIResponse.go @@ -0,0 +1,29 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同步商户中心服务范围 API返回值 +tmall.nr.seller.storerange.sync + +同步商户中心服务范围 +*/ +type TmallNrSellerStorerangeSyncAPIResponse struct { + model.CommonResponse + TmallNrSellerStorerangeSyncAPIResponseModel +} + +// 同步商户中心服务范围 成功返回结果 +type TmallNrSellerStorerangeSyncAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nr_seller_storerange_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + ResultData bool `json:"result_data,omitempty" xml:"result_data,omitempty"` + // 请求是否成功 + SuccessFlag bool `json:"success_flag,omitempty" xml:"success_flag,omitempty"` +} diff --git a/model/tmallnr/TmallNrSellerStorerangeSyncResponse.go b/model/tmallnr/TmallNrSellerStorerangeSyncResponse.go deleted file mode 100644 index 4c6b3ec55c..0000000000 --- a/model/tmallnr/TmallNrSellerStorerangeSyncResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同步商户中心服务范围 API返回值 -tmall.nr.seller.storerange.sync - -同步商户中心服务范围 -*/ -type TmallNrSellerStorerangeSyncAPIResponse struct { - model.CommonResponse - TmallNrSellerStorerangeSyncResponse -} - -// 同步商户中心服务范围 成功返回结果 -type TmallNrSellerStorerangeSyncResponse struct { - XMLName xml.Name `xml:"tmall_nr_seller_storerange_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - ResultData bool `json:"result_data,omitempty" xml:"result_data,omitempty"` - // 请求是否成功 - SuccessFlag bool `json:"success_flag,omitempty" xml:"success_flag,omitempty"` -} diff --git a/model/tmallnr/TmallNrSoldOrderlistQueryJstAPIRequest.go b/model/tmallnr/TmallNrSoldOrderlistQueryJstAPIRequest.go new file mode 100644 index 0000000000..1ea4eb10a5 --- /dev/null +++ b/model/tmallnr/TmallNrSoldOrderlistQueryJstAPIRequest.go @@ -0,0 +1,52 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +已入塔商家查询订单列表 API请求 +tmall.nr.sold.orderlist.query.jst + +该服务用于已入聚石塔的商家,获取订单列表信息; +*/ +type TmallNrSoldOrderlistQueryJstAPIRequest struct { + model.Params + // 入参对象 + _param0 *NrTimingOrderSoldQueryReqDto +} + +// 初始化TmallNrSoldOrderlistQueryJstAPIRequest对象 +func NewTmallNrSoldOrderlistQueryJstRequest() *TmallNrSoldOrderlistQueryJstAPIRequest{ + return &TmallNrSoldOrderlistQueryJstAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrSoldOrderlistQueryJstAPIRequest) GetApiMethodName() string { + return "tmall.nr.sold.orderlist.query.jst" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrSoldOrderlistQueryJstAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 入参对象 +func (r *TmallNrSoldOrderlistQueryJstAPIRequest) SetParam0(_param0 *NrTimingOrderSoldQueryReqDto) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TmallNrSoldOrderlistQueryJstAPIRequest) GetParam0() *NrTimingOrderSoldQueryReqDto { + return r._param0 +} diff --git a/model/tmallnr/TmallNrSoldOrderlistQueryJstAPIResponse.go b/model/tmallnr/TmallNrSoldOrderlistQueryJstAPIResponse.go new file mode 100644 index 0000000000..70d7f0cb58 --- /dev/null +++ b/model/tmallnr/TmallNrSoldOrderlistQueryJstAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +已入塔商家查询订单列表 API返回值 +tmall.nr.sold.orderlist.query.jst + +该服务用于已入聚石塔的商家,获取订单列表信息; +*/ +type TmallNrSoldOrderlistQueryJstAPIResponse struct { + model.CommonResponse + TmallNrSoldOrderlistQueryJstAPIResponseModel +} + +// 已入塔商家查询订单列表 成功返回结果 +type TmallNrSoldOrderlistQueryJstAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nr_sold_orderlist_query_jst_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *NewRetailResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/TmallNrSoldOrderlistQueryJstResponse.go b/model/tmallnr/TmallNrSoldOrderlistQueryJstResponse.go deleted file mode 100644 index 6d659c4b36..0000000000 --- a/model/tmallnr/TmallNrSoldOrderlistQueryJstResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -已入塔商家查询订单列表 API返回值 -tmall.nr.sold.orderlist.query.jst - -该服务用于已入聚石塔的商家,获取订单列表信息; -*/ -type TmallNrSoldOrderlistQueryJstAPIResponse struct { - model.CommonResponse - TmallNrSoldOrderlistQueryJstResponse -} - -// 已入塔商家查询订单列表 成功返回结果 -type TmallNrSoldOrderlistQueryJstResponse struct { - XMLName xml.Name `xml:"tmall_nr_sold_orderlist_query_jst_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *NewRetailResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallnr/TmallNrZqsPlanQueryAPIRequest.go b/model/tmallnr/TmallNrZqsPlanQueryAPIRequest.go new file mode 100644 index 0000000000..150a5b5e17 --- /dev/null +++ b/model/tmallnr/TmallNrZqsPlanQueryAPIRequest.go @@ -0,0 +1,52 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +周期送配送明细查询 API请求 +tmall.nr.zqs.plan.query + +周期送配送明细查询 +*/ +type TmallNrZqsPlanQueryAPIRequest struct { + model.Params + // 交易子订单id + _detailOrderId int64 +} + +// 初始化TmallNrZqsPlanQueryAPIRequest对象 +func NewTmallNrZqsPlanQueryRequest() *TmallNrZqsPlanQueryAPIRequest{ + return &TmallNrZqsPlanQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrZqsPlanQueryAPIRequest) GetApiMethodName() string { + return "tmall.nr.zqs.plan.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrZqsPlanQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DetailOrderId Setter +// 交易子订单id +func (r *TmallNrZqsPlanQueryAPIRequest) SetDetailOrderId(_detailOrderId int64) error { + r._detailOrderId = _detailOrderId + r.Set("detail_order_id", _detailOrderId) + return nil +} + +// DetailOrderId Getter +func (r TmallNrZqsPlanQueryAPIRequest) GetDetailOrderId() int64 { + return r._detailOrderId +} diff --git a/model/tmallnr/TmallNrZqsPlanQueryAPIResponse.go b/model/tmallnr/TmallNrZqsPlanQueryAPIResponse.go new file mode 100644 index 0000000000..547f610f18 --- /dev/null +++ b/model/tmallnr/TmallNrZqsPlanQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +周期送配送明细查询 API返回值 +tmall.nr.zqs.plan.query + +周期送配送明细查询 +*/ +type TmallNrZqsPlanQueryAPIResponse struct { + model.CommonResponse + TmallNrZqsPlanQueryAPIResponseModel +} + +// 周期送配送明细查询 成功返回结果 +type TmallNrZqsPlanQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nr_zqs_plan_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *NrResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/TmallNrZqsPlanQueryResponse.go b/model/tmallnr/TmallNrZqsPlanQueryResponse.go deleted file mode 100644 index 0892d84fc7..0000000000 --- a/model/tmallnr/TmallNrZqsPlanQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -周期送配送明细查询 API返回值 -tmall.nr.zqs.plan.query - -周期送配送明细查询 -*/ -type TmallNrZqsPlanQueryAPIResponse struct { - model.CommonResponse - TmallNrZqsPlanQueryResponse -} - -// 周期送配送明细查询 成功返回结果 -type TmallNrZqsPlanQueryResponse struct { - XMLName xml.Name `xml:"tmall_nr_zqs_plan_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *NrResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallnr/TmallNrtNewcouponSendAPIRequest.go b/model/tmallnr/TmallNrtNewcouponSendAPIRequest.go new file mode 100644 index 0000000000..46c3debe8a --- /dev/null +++ b/model/tmallnr/TmallNrtNewcouponSendAPIRequest.go @@ -0,0 +1,52 @@ +package tmallnr + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +券发放接口 API请求 +tmall.nrt.newcoupon.send + +券发放接口 +*/ +type TmallNrtNewcouponSendAPIRequest struct { + model.Params + // 发券dto + _nrtCouponSendDto *NrtCouponSendDto +} + +// 初始化TmallNrtNewcouponSendAPIRequest对象 +func NewTmallNrtNewcouponSendRequest() *TmallNrtNewcouponSendAPIRequest{ + return &TmallNrtNewcouponSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallNrtNewcouponSendAPIRequest) GetApiMethodName() string { + return "tmall.nrt.newcoupon.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallNrtNewcouponSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NrtCouponSendDto Setter +// 发券dto +func (r *TmallNrtNewcouponSendAPIRequest) SetNrtCouponSendDto(_nrtCouponSendDto *NrtCouponSendDto) error { + r._nrtCouponSendDto = _nrtCouponSendDto + r.Set("nrt_coupon_send_dto", _nrtCouponSendDto) + return nil +} + +// NrtCouponSendDto Getter +func (r TmallNrtNewcouponSendAPIRequest) GetNrtCouponSendDto() *NrtCouponSendDto { + return r._nrtCouponSendDto +} diff --git a/model/tmallnr/TmallNrtNewcouponSendAPIResponse.go b/model/tmallnr/TmallNrtNewcouponSendAPIResponse.go new file mode 100644 index 0000000000..6e82654522 --- /dev/null +++ b/model/tmallnr/TmallNrtNewcouponSendAPIResponse.go @@ -0,0 +1,27 @@ +package tmallnr + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +券发放接口 API返回值 +tmall.nrt.newcoupon.send + +券发放接口 +*/ +type TmallNrtNewcouponSendAPIResponse struct { + model.CommonResponse + TmallNrtNewcouponSendAPIResponseModel +} + +// 券发放接口 成功返回结果 +type TmallNrtNewcouponSendAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_nrt_newcoupon_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *TmallNrtNewcouponSendResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallnr/TmallNrtNewcouponSendResponse.go b/model/tmallnr/TmallNrtNewcouponSendResponse.go deleted file mode 100644 index b66002556d..0000000000 --- a/model/tmallnr/TmallNrtNewcouponSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallnr - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -券发放接口 API返回值 -tmall.nrt.newcoupon.send - -券发放接口 -*/ -type TmallNrtNewcouponSendAPIResponse struct { - model.CommonResponse - TmallNrtNewcouponSendResponse -} - -// 券发放接口 成功返回结果 -type TmallNrtNewcouponSendResponse struct { - XMLName xml.Name `xml:"tmall_nrt_newcoupon_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *TmallNrtNewcouponSendResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallsc/AlibabaDchainMiaoshifuCustomerComplaintsPutAPIRequest.go b/model/tmallsc/AlibabaDchainMiaoshifuCustomerComplaintsPutAPIRequest.go new file mode 100644 index 0000000000..1c94f9be3b --- /dev/null +++ b/model/tmallsc/AlibabaDchainMiaoshifuCustomerComplaintsPutAPIRequest.go @@ -0,0 +1,52 @@ +package tmallsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商工人客诉数据上传 API请求 +alibaba.dchain.miaoshifu.customer.complaints.put + +数字服务供应链平台提供给服务商上传工人客诉数据 +*/ +type AlibabaDchainMiaoshifuCustomerComplaintsPutAPIRequest struct { + model.Params + // 服务工人客诉对象 + _workerCustomerComplaintSaveCmd *WorkerCustomerComplaintSaveCmd +} + +// 初始化AlibabaDchainMiaoshifuCustomerComplaintsPutAPIRequest对象 +func NewAlibabaDchainMiaoshifuCustomerComplaintsPutRequest() *AlibabaDchainMiaoshifuCustomerComplaintsPutAPIRequest{ + return &AlibabaDchainMiaoshifuCustomerComplaintsPutAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaDchainMiaoshifuCustomerComplaintsPutAPIRequest) GetApiMethodName() string { + return "alibaba.dchain.miaoshifu.customer.complaints.put" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaDchainMiaoshifuCustomerComplaintsPutAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkerCustomerComplaintSaveCmd Setter +// 服务工人客诉对象 +func (r *AlibabaDchainMiaoshifuCustomerComplaintsPutAPIRequest) SetWorkerCustomerComplaintSaveCmd(_workerCustomerComplaintSaveCmd *WorkerCustomerComplaintSaveCmd) error { + r._workerCustomerComplaintSaveCmd = _workerCustomerComplaintSaveCmd + r.Set("worker_customer_complaint_save_cmd", _workerCustomerComplaintSaveCmd) + return nil +} + +// WorkerCustomerComplaintSaveCmd Getter +func (r AlibabaDchainMiaoshifuCustomerComplaintsPutAPIRequest) GetWorkerCustomerComplaintSaveCmd() *WorkerCustomerComplaintSaveCmd { + return r._workerCustomerComplaintSaveCmd +} diff --git a/model/tmallsc/AlibabaDchainMiaoshifuCustomerComplaintsPutAPIResponse.go b/model/tmallsc/AlibabaDchainMiaoshifuCustomerComplaintsPutAPIResponse.go new file mode 100644 index 0000000000..0e384ed23c --- /dev/null +++ b/model/tmallsc/AlibabaDchainMiaoshifuCustomerComplaintsPutAPIResponse.go @@ -0,0 +1,35 @@ +package tmallsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商工人客诉数据上传 API返回值 +alibaba.dchain.miaoshifu.customer.complaints.put + +数字服务供应链平台提供给服务商上传工人客诉数据 +*/ +type AlibabaDchainMiaoshifuCustomerComplaintsPutAPIResponse struct { + model.CommonResponse + AlibabaDchainMiaoshifuCustomerComplaintsPutAPIResponseModel +} + +// 服务商工人客诉数据上传 成功返回结果 +type AlibabaDchainMiaoshifuCustomerComplaintsPutAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_dchain_miaoshifu_customer_complaints_put_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 对外展示的错误信息 + DisplayMsg string `json:"display_msg,omitempty" xml:"display_msg,omitempty"` + // 是否成功,true:成功,false失败,当未false时,result_value为null + ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` + // 错误码,异常返回码 + ResultErrorCode string `json:"result_error_code,omitempty" xml:"result_error_code,omitempty"` + // 客诉记录唯一标识ID + ResultValue int64 `json:"result_value,omitempty" xml:"result_value,omitempty"` + // 错误信息 + ResultErrorMsg string `json:"result_error_msg,omitempty" xml:"result_error_msg,omitempty"` +} diff --git a/model/tmallsc/AlibabaDchainMiaoshifuCustomerComplaintsPutResponse.go b/model/tmallsc/AlibabaDchainMiaoshifuCustomerComplaintsPutResponse.go deleted file mode 100644 index 07d71e002e..0000000000 --- a/model/tmallsc/AlibabaDchainMiaoshifuCustomerComplaintsPutResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package tmallsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商工人客诉数据上传 API返回值 -alibaba.dchain.miaoshifu.customer.complaints.put - -数字服务供应链平台提供给服务商上传工人客诉数据 -*/ -type AlibabaDchainMiaoshifuCustomerComplaintsPutAPIResponse struct { - model.CommonResponse - AlibabaDchainMiaoshifuCustomerComplaintsPutResponse -} - -// 服务商工人客诉数据上传 成功返回结果 -type AlibabaDchainMiaoshifuCustomerComplaintsPutResponse struct { - XMLName xml.Name `xml:"alibaba_dchain_miaoshifu_customer_complaints_put_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 对外展示的错误信息 - DisplayMsg string `json:"display_msg,omitempty" xml:"display_msg,omitempty"` - // 是否成功,true:成功,false失败,当未false时,result_value为null - ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` - // 错误码,异常返回码 - ResultErrorCode string `json:"result_error_code,omitempty" xml:"result_error_code,omitempty"` - // 客诉记录唯一标识ID - ResultValue int64 `json:"result_value,omitempty" xml:"result_value,omitempty"` - // 错误信息 - ResultErrorMsg string `json:"result_error_msg,omitempty" xml:"result_error_msg,omitempty"` -} diff --git a/model/tmallsc/AlibabaServiceBillingQueryAPIRequest.go b/model/tmallsc/AlibabaServiceBillingQueryAPIRequest.go new file mode 100644 index 0000000000..c6014c5ce2 --- /dev/null +++ b/model/tmallsc/AlibabaServiceBillingQueryAPIRequest.go @@ -0,0 +1,66 @@ +package tmallsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务平台结算出账信息 API请求 +alibaba.service.billing.query + +服务平台结算单明细查询服务 +*/ +type AlibabaServiceBillingQueryAPIRequest struct { + model.Params + // 账单查询开始时间。格式示例 2019-03-26 17:15:28 + _gmtCreateStart string + // 账单查询结束时间,时间区间限制未15分钟。 格式示例 2019-03-26 17:15:28 + _gmtCreateEnd string +} + +// 初始化AlibabaServiceBillingQueryAPIRequest对象 +func NewAlibabaServiceBillingQueryRequest() *AlibabaServiceBillingQueryAPIRequest{ + return &AlibabaServiceBillingQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaServiceBillingQueryAPIRequest) GetApiMethodName() string { + return "alibaba.service.billing.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaServiceBillingQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GmtCreateStart Setter +// 账单查询开始时间。格式示例 2019-03-26 17:15:28 +func (r *AlibabaServiceBillingQueryAPIRequest) SetGmtCreateStart(_gmtCreateStart string) error { + r._gmtCreateStart = _gmtCreateStart + r.Set("gmt_create_start", _gmtCreateStart) + return nil +} + +// GmtCreateStart Getter +func (r AlibabaServiceBillingQueryAPIRequest) GetGmtCreateStart() string { + return r._gmtCreateStart +} +// GmtCreateEnd Setter +// 账单查询结束时间,时间区间限制未15分钟。 格式示例 2019-03-26 17:15:28 +func (r *AlibabaServiceBillingQueryAPIRequest) SetGmtCreateEnd(_gmtCreateEnd string) error { + r._gmtCreateEnd = _gmtCreateEnd + r.Set("gmt_create_end", _gmtCreateEnd) + return nil +} + +// GmtCreateEnd Getter +func (r AlibabaServiceBillingQueryAPIRequest) GetGmtCreateEnd() string { + return r._gmtCreateEnd +} diff --git a/model/tmallsc/AlibabaServiceBillingQueryAPIResponse.go b/model/tmallsc/AlibabaServiceBillingQueryAPIResponse.go new file mode 100644 index 0000000000..32f9c90977 --- /dev/null +++ b/model/tmallsc/AlibabaServiceBillingQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务平台结算出账信息 API返回值 +alibaba.service.billing.query + +服务平台结算单明细查询服务 +*/ +type AlibabaServiceBillingQueryAPIResponse struct { + model.CommonResponse + AlibabaServiceBillingQueryAPIResponseModel +} + +// 服务平台结算出账信息 成功返回结果 +type AlibabaServiceBillingQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_service_billing_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结算明细查询结果 + SettlementDetailQueryResult *FulfilplatformResult `json:"settlement_detail_query_result,omitempty" xml:"settlement_detail_query_result,omitempty"` +} diff --git a/model/tmallsc/AlibabaServiceBillingQueryResponse.go b/model/tmallsc/AlibabaServiceBillingQueryResponse.go deleted file mode 100644 index 1487b95f71..0000000000 --- a/model/tmallsc/AlibabaServiceBillingQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务平台结算出账信息 API返回值 -alibaba.service.billing.query - -服务平台结算单明细查询服务 -*/ -type AlibabaServiceBillingQueryAPIResponse struct { - model.CommonResponse - AlibabaServiceBillingQueryResponse -} - -// 服务平台结算出账信息 成功返回结果 -type AlibabaServiceBillingQueryResponse struct { - XMLName xml.Name `xml:"alibaba_service_billing_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结算明细查询结果 - SettlementDetailQueryResult *FulfilplatformResult `json:"settlement_detail_query_result,omitempty" xml:"settlement_detail_query_result,omitempty"` -} diff --git a/model/tmallsc/AlibabaServiceSettlementQueryAPIRequest.go b/model/tmallsc/AlibabaServiceSettlementQueryAPIRequest.go new file mode 100644 index 0000000000..518f9471d7 --- /dev/null +++ b/model/tmallsc/AlibabaServiceSettlementQueryAPIRequest.go @@ -0,0 +1,192 @@ +package tmallsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务平台结算单明细查询服务 API请求 +alibaba.service.settlement.query + +给服务商提供结算单明细查询功能 +*/ +type AlibabaServiceSettlementQueryAPIRequest struct { + model.Params + // 账单查询开始时间。格式示例 2019-03-26 17:15:28 + _gmtCreateStart string + // 账单查询结束时间,时间区间限制未15分钟。 格式示例 2019-03-26 17:15:28 + _gmtCreateEnd string + // 当前页面,开始值为1 + _currentPage int64 + // 页面展示条数大小 + _pageSize int64 + // 工单ID + _workcardId int64 + // 交易主订单号码 + _parentTradeOrderId int64 + // 服务单号 + _serviceOrderId int64 + // 交易实物订单号 + _masterTradeOrderId int64 + // 交易服务订单号 + _serviceTradeOrderId int64 + // 账单修改开始时间。 + _gmtModifiedEnd string + // 账单修改结束时间,时间区间限制未15分钟。 + _gmtModifiedStart string +} + +// 初始化AlibabaServiceSettlementQueryAPIRequest对象 +func NewAlibabaServiceSettlementQueryRequest() *AlibabaServiceSettlementQueryAPIRequest{ + return &AlibabaServiceSettlementQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaServiceSettlementQueryAPIRequest) GetApiMethodName() string { + return "alibaba.service.settlement.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaServiceSettlementQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GmtCreateStart Setter +// 账单查询开始时间。格式示例 2019-03-26 17:15:28 +func (r *AlibabaServiceSettlementQueryAPIRequest) SetGmtCreateStart(_gmtCreateStart string) error { + r._gmtCreateStart = _gmtCreateStart + r.Set("gmt_create_start", _gmtCreateStart) + return nil +} + +// GmtCreateStart Getter +func (r AlibabaServiceSettlementQueryAPIRequest) GetGmtCreateStart() string { + return r._gmtCreateStart +} +// GmtCreateEnd Setter +// 账单查询结束时间,时间区间限制未15分钟。 格式示例 2019-03-26 17:15:28 +func (r *AlibabaServiceSettlementQueryAPIRequest) SetGmtCreateEnd(_gmtCreateEnd string) error { + r._gmtCreateEnd = _gmtCreateEnd + r.Set("gmt_create_end", _gmtCreateEnd) + return nil +} + +// GmtCreateEnd Getter +func (r AlibabaServiceSettlementQueryAPIRequest) GetGmtCreateEnd() string { + return r._gmtCreateEnd +} +// CurrentPage Setter +// 当前页面,开始值为1 +func (r *AlibabaServiceSettlementQueryAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AlibabaServiceSettlementQueryAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// PageSize Setter +// 页面展示条数大小 +func (r *AlibabaServiceSettlementQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaServiceSettlementQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// WorkcardId Setter +// 工单ID +func (r *AlibabaServiceSettlementQueryAPIRequest) SetWorkcardId(_workcardId int64) error { + r._workcardId = _workcardId + r.Set("workcard_id", _workcardId) + return nil +} + +// WorkcardId Getter +func (r AlibabaServiceSettlementQueryAPIRequest) GetWorkcardId() int64 { + return r._workcardId +} +// ParentTradeOrderId Setter +// 交易主订单号码 +func (r *AlibabaServiceSettlementQueryAPIRequest) SetParentTradeOrderId(_parentTradeOrderId int64) error { + r._parentTradeOrderId = _parentTradeOrderId + r.Set("parent_trade_order_id", _parentTradeOrderId) + return nil +} + +// ParentTradeOrderId Getter +func (r AlibabaServiceSettlementQueryAPIRequest) GetParentTradeOrderId() int64 { + return r._parentTradeOrderId +} +// ServiceOrderId Setter +// 服务单号 +func (r *AlibabaServiceSettlementQueryAPIRequest) SetServiceOrderId(_serviceOrderId int64) error { + r._serviceOrderId = _serviceOrderId + r.Set("service_order_id", _serviceOrderId) + return nil +} + +// ServiceOrderId Getter +func (r AlibabaServiceSettlementQueryAPIRequest) GetServiceOrderId() int64 { + return r._serviceOrderId +} +// MasterTradeOrderId Setter +// 交易实物订单号 +func (r *AlibabaServiceSettlementQueryAPIRequest) SetMasterTradeOrderId(_masterTradeOrderId int64) error { + r._masterTradeOrderId = _masterTradeOrderId + r.Set("master_trade_order_id", _masterTradeOrderId) + return nil +} + +// MasterTradeOrderId Getter +func (r AlibabaServiceSettlementQueryAPIRequest) GetMasterTradeOrderId() int64 { + return r._masterTradeOrderId +} +// ServiceTradeOrderId Setter +// 交易服务订单号 +func (r *AlibabaServiceSettlementQueryAPIRequest) SetServiceTradeOrderId(_serviceTradeOrderId int64) error { + r._serviceTradeOrderId = _serviceTradeOrderId + r.Set("service_trade_order_id", _serviceTradeOrderId) + return nil +} + +// ServiceTradeOrderId Getter +func (r AlibabaServiceSettlementQueryAPIRequest) GetServiceTradeOrderId() int64 { + return r._serviceTradeOrderId +} +// GmtModifiedEnd Setter +// 账单修改开始时间。 +func (r *AlibabaServiceSettlementQueryAPIRequest) SetGmtModifiedEnd(_gmtModifiedEnd string) error { + r._gmtModifiedEnd = _gmtModifiedEnd + r.Set("gmt_modified_end", _gmtModifiedEnd) + return nil +} + +// GmtModifiedEnd Getter +func (r AlibabaServiceSettlementQueryAPIRequest) GetGmtModifiedEnd() string { + return r._gmtModifiedEnd +} +// GmtModifiedStart Setter +// 账单修改结束时间,时间区间限制未15分钟。 +func (r *AlibabaServiceSettlementQueryAPIRequest) SetGmtModifiedStart(_gmtModifiedStart string) error { + r._gmtModifiedStart = _gmtModifiedStart + r.Set("gmt_modified_start", _gmtModifiedStart) + return nil +} + +// GmtModifiedStart Getter +func (r AlibabaServiceSettlementQueryAPIRequest) GetGmtModifiedStart() string { + return r._gmtModifiedStart +} diff --git a/model/tmallsc/AlibabaServiceSettlementQueryAPIResponse.go b/model/tmallsc/AlibabaServiceSettlementQueryAPIResponse.go new file mode 100644 index 0000000000..78f420ad1e --- /dev/null +++ b/model/tmallsc/AlibabaServiceSettlementQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务平台结算单明细查询服务 API返回值 +alibaba.service.settlement.query + +给服务商提供结算单明细查询功能 +*/ +type AlibabaServiceSettlementQueryAPIResponse struct { + model.CommonResponse + AlibabaServiceSettlementQueryAPIResponseModel +} + +// 服务平台结算单明细查询服务 成功返回结果 +type AlibabaServiceSettlementQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_service_settlement_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结算明细查询结果 + SettlementDetailQueryResult *FulfilplatformResult `json:"settlement_detail_query_result,omitempty" xml:"settlement_detail_query_result,omitempty"` +} diff --git a/model/tmallsc/AlibabaServiceSettlementQueryResponse.go b/model/tmallsc/AlibabaServiceSettlementQueryResponse.go deleted file mode 100644 index e593abadbf..0000000000 --- a/model/tmallsc/AlibabaServiceSettlementQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务平台结算单明细查询服务 API返回值 -alibaba.service.settlement.query - -给服务商提供结算单明细查询功能 -*/ -type AlibabaServiceSettlementQueryAPIResponse struct { - model.CommonResponse - AlibabaServiceSettlementQueryResponse -} - -// 服务平台结算单明细查询服务 成功返回结果 -type AlibabaServiceSettlementQueryResponse struct { - XMLName xml.Name `xml:"alibaba_service_settlement_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结算明细查询结果 - SettlementDetailQueryResult *FulfilplatformResult `json:"settlement_detail_query_result,omitempty" xml:"settlement_detail_query_result,omitempty"` -} diff --git a/model/tmallsc/TmallServicecenterAnomalyrecourseRemarkUpdateAPIRequest.go b/model/tmallsc/TmallServicecenterAnomalyrecourseRemarkUpdateAPIRequest.go new file mode 100644 index 0000000000..bbf4e87f14 --- /dev/null +++ b/model/tmallsc/TmallServicecenterAnomalyrecourseRemarkUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package tmallsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫服务平台一键求助单服务商备注更新接口 API请求 +tmall.servicecenter.anomalyrecourse.remark.update + +一键求助服务商可以回传备注 +*/ +type TmallServicecenterAnomalyrecourseRemarkUpdateAPIRequest struct { + model.Params + // 需要更新的一键求助单id + _id int64 + // 需要更新的服务商备注 + _remark string +} + +// 初始化TmallServicecenterAnomalyrecourseRemarkUpdateAPIRequest对象 +func NewTmallServicecenterAnomalyrecourseRemarkUpdateRequest() *TmallServicecenterAnomalyrecourseRemarkUpdateAPIRequest{ + return &TmallServicecenterAnomalyrecourseRemarkUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterAnomalyrecourseRemarkUpdateAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.anomalyrecourse.remark.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterAnomalyrecourseRemarkUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 需要更新的一键求助单id +func (r *TmallServicecenterAnomalyrecourseRemarkUpdateAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TmallServicecenterAnomalyrecourseRemarkUpdateAPIRequest) GetId() int64 { + return r._id +} +// Remark Setter +// 需要更新的服务商备注 +func (r *TmallServicecenterAnomalyrecourseRemarkUpdateAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r TmallServicecenterAnomalyrecourseRemarkUpdateAPIRequest) GetRemark() string { + return r._remark +} diff --git a/model/tmallsc/TmallServicecenterAnomalyrecourseRemarkUpdateAPIResponse.go b/model/tmallsc/TmallServicecenterAnomalyrecourseRemarkUpdateAPIResponse.go new file mode 100644 index 0000000000..8104a96250 --- /dev/null +++ b/model/tmallsc/TmallServicecenterAnomalyrecourseRemarkUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫服务平台一键求助单服务商备注更新接口 API返回值 +tmall.servicecenter.anomalyrecourse.remark.update + +一键求助服务商可以回传备注 +*/ +type TmallServicecenterAnomalyrecourseRemarkUpdateAPIResponse struct { + model.CommonResponse + TmallServicecenterAnomalyrecourseRemarkUpdateAPIResponseModel +} + +// 天猫服务平台一键求助单服务商备注更新接口 成功返回结果 +type TmallServicecenterAnomalyrecourseRemarkUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_anomalyrecourse_remark_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/tmallsc/TmallServicecenterAnomalyrecourseRemarkUpdateResponse.go b/model/tmallsc/TmallServicecenterAnomalyrecourseRemarkUpdateResponse.go deleted file mode 100644 index 1abc3bde8c..0000000000 --- a/model/tmallsc/TmallServicecenterAnomalyrecourseRemarkUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫服务平台一键求助单服务商备注更新接口 API返回值 -tmall.servicecenter.anomalyrecourse.remark.update - -一键求助服务商可以回传备注 -*/ -type TmallServicecenterAnomalyrecourseRemarkUpdateAPIResponse struct { - model.CommonResponse - TmallServicecenterAnomalyrecourseRemarkUpdateResponse -} - -// 天猫服务平台一键求助单服务商备注更新接口 成功返回结果 -type TmallServicecenterAnomalyrecourseRemarkUpdateResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_anomalyrecourse_remark_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/tmallsc/TmallServicecenterAnomalyrecourseSearchAPIRequest.go b/model/tmallsc/TmallServicecenterAnomalyrecourseSearchAPIRequest.go new file mode 100644 index 0000000000..b6dbe3585d --- /dev/null +++ b/model/tmallsc/TmallServicecenterAnomalyrecourseSearchAPIRequest.go @@ -0,0 +1,66 @@ +package tmallsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫服务平台服务商一键求助单查询 API请求 +tmall.servicecenter.anomalyrecourse.search + +天猫服务平台服务商一键求助单查询 +*/ +type TmallServicecenterAnomalyrecourseSearchAPIRequest struct { + model.Params + // 开始时间 + _start int64 + // 结束时间 + _end int64 +} + +// 初始化TmallServicecenterAnomalyrecourseSearchAPIRequest对象 +func NewTmallServicecenterAnomalyrecourseSearchRequest() *TmallServicecenterAnomalyrecourseSearchAPIRequest{ + return &TmallServicecenterAnomalyrecourseSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterAnomalyrecourseSearchAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.anomalyrecourse.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterAnomalyrecourseSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Start Setter +// 开始时间 +func (r *TmallServicecenterAnomalyrecourseSearchAPIRequest) SetStart(_start int64) error { + r._start = _start + r.Set("start", _start) + return nil +} + +// Start Getter +func (r TmallServicecenterAnomalyrecourseSearchAPIRequest) GetStart() int64 { + return r._start +} +// End Setter +// 结束时间 +func (r *TmallServicecenterAnomalyrecourseSearchAPIRequest) SetEnd(_end int64) error { + r._end = _end + r.Set("end", _end) + return nil +} + +// End Getter +func (r TmallServicecenterAnomalyrecourseSearchAPIRequest) GetEnd() int64 { + return r._end +} diff --git a/model/tmallsc/TmallServicecenterAnomalyrecourseSearchAPIResponse.go b/model/tmallsc/TmallServicecenterAnomalyrecourseSearchAPIResponse.go new file mode 100644 index 0000000000..ae1028cddb --- /dev/null +++ b/model/tmallsc/TmallServicecenterAnomalyrecourseSearchAPIResponse.go @@ -0,0 +1,27 @@ +package tmallsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫服务平台服务商一键求助单查询 API返回值 +tmall.servicecenter.anomalyrecourse.search + +天猫服务平台服务商一键求助单查询 +*/ +type TmallServicecenterAnomalyrecourseSearchAPIResponse struct { + model.CommonResponse + TmallServicecenterAnomalyrecourseSearchAPIResponseModel +} + +// 天猫服务平台服务商一键求助单查询 成功返回结果 +type TmallServicecenterAnomalyrecourseSearchAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_anomalyrecourse_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallsc/TmallServicecenterAnomalyrecourseSearchResponse.go b/model/tmallsc/TmallServicecenterAnomalyrecourseSearchResponse.go deleted file mode 100644 index c5fa60bba8..0000000000 --- a/model/tmallsc/TmallServicecenterAnomalyrecourseSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫服务平台服务商一键求助单查询 API返回值 -tmall.servicecenter.anomalyrecourse.search - -天猫服务平台服务商一键求助单查询 -*/ -type TmallServicecenterAnomalyrecourseSearchAPIResponse struct { - model.CommonResponse - TmallServicecenterAnomalyrecourseSearchResponse -} - -// 天猫服务平台服务商一键求助单查询 成功返回结果 -type TmallServicecenterAnomalyrecourseSearchResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_anomalyrecourse_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallsc/TmallServicecenterReservecondCreateAPIRequest.go b/model/tmallsc/TmallServicecenterReservecondCreateAPIRequest.go new file mode 100644 index 0000000000..afe72e77f4 --- /dev/null +++ b/model/tmallsc/TmallServicecenterReservecondCreateAPIRequest.go @@ -0,0 +1,52 @@ +package tmallsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建主动预约开通条件 API请求 +tmall.servicecenter.reservecond.create + +1、设置主动预约开通条件 +*/ +type TmallServicecenterReservecondCreateAPIRequest struct { + model.Params + // 主动预约开通条件 + _rocList []ReserveOpenConditionDto +} + +// 初始化TmallServicecenterReservecondCreateAPIRequest对象 +func NewTmallServicecenterReservecondCreateRequest() *TmallServicecenterReservecondCreateAPIRequest{ + return &TmallServicecenterReservecondCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterReservecondCreateAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.reservecond.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterReservecondCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RocList Setter +// 主动预约开通条件 +func (r *TmallServicecenterReservecondCreateAPIRequest) SetRocList(_rocList []ReserveOpenConditionDto) error { + r._rocList = _rocList + r.Set("roc_list", _rocList) + return nil +} + +// RocList Getter +func (r TmallServicecenterReservecondCreateAPIRequest) GetRocList() []ReserveOpenConditionDto { + return r._rocList +} diff --git a/model/tmallsc/TmallServicecenterReservecondCreateAPIResponse.go b/model/tmallsc/TmallServicecenterReservecondCreateAPIResponse.go new file mode 100644 index 0000000000..bd00fec0ee --- /dev/null +++ b/model/tmallsc/TmallServicecenterReservecondCreateAPIResponse.go @@ -0,0 +1,31 @@ +package tmallsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建主动预约开通条件 API返回值 +tmall.servicecenter.reservecond.create + +1、设置主动预约开通条件 +*/ +type TmallServicecenterReservecondCreateAPIResponse struct { + model.CommonResponse + TmallServicecenterReservecondCreateAPIResponseModel +} + +// 创建主动预约开通条件 成功返回结果 +type TmallServicecenterReservecondCreateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_reservecond_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + MsgSuccess bool `json:"msg_success,omitempty" xml:"msg_success,omitempty"` + // 返回信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 返回code + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` +} diff --git a/model/tmallsc/TmallServicecenterReservecondCreateResponse.go b/model/tmallsc/TmallServicecenterReservecondCreateResponse.go deleted file mode 100644 index 2ec316782e..0000000000 --- a/model/tmallsc/TmallServicecenterReservecondCreateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建主动预约开通条件 API返回值 -tmall.servicecenter.reservecond.create - -1、设置主动预约开通条件 -*/ -type TmallServicecenterReservecondCreateAPIResponse struct { - model.CommonResponse - TmallServicecenterReservecondCreateResponse -} - -// 创建主动预约开通条件 成功返回结果 -type TmallServicecenterReservecondCreateResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_reservecond_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - MsgSuccess bool `json:"msg_success,omitempty" xml:"msg_success,omitempty"` - // 返回信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 返回code - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` -} diff --git a/model/tmallsc/TmallServicecenterReservecondDeleteAPIRequest.go b/model/tmallsc/TmallServicecenterReservecondDeleteAPIRequest.go new file mode 100644 index 0000000000..bd37c2307d --- /dev/null +++ b/model/tmallsc/TmallServicecenterReservecondDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package tmallsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除主动预约开通条件 API请求 +tmall.servicecenter.reservecond.delete + +删除主动预约开通条件 +*/ +type TmallServicecenterReservecondDeleteAPIRequest struct { + model.Params + // 主动预约条件删除 + _reserveOpenConditionDelDto *ReserveOpenConditionDelDto +} + +// 初始化TmallServicecenterReservecondDeleteAPIRequest对象 +func NewTmallServicecenterReservecondDeleteRequest() *TmallServicecenterReservecondDeleteAPIRequest{ + return &TmallServicecenterReservecondDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterReservecondDeleteAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.reservecond.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterReservecondDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReserveOpenConditionDelDto Setter +// 主动预约条件删除 +func (r *TmallServicecenterReservecondDeleteAPIRequest) SetReserveOpenConditionDelDto(_reserveOpenConditionDelDto *ReserveOpenConditionDelDto) error { + r._reserveOpenConditionDelDto = _reserveOpenConditionDelDto + r.Set("reserve_open_condition_del_dto", _reserveOpenConditionDelDto) + return nil +} + +// ReserveOpenConditionDelDto Getter +func (r TmallServicecenterReservecondDeleteAPIRequest) GetReserveOpenConditionDelDto() *ReserveOpenConditionDelDto { + return r._reserveOpenConditionDelDto +} diff --git a/model/tmallsc/TmallServicecenterReservecondDeleteAPIResponse.go b/model/tmallsc/TmallServicecenterReservecondDeleteAPIResponse.go new file mode 100644 index 0000000000..9c8f75d45c --- /dev/null +++ b/model/tmallsc/TmallServicecenterReservecondDeleteAPIResponse.go @@ -0,0 +1,31 @@ +package tmallsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除主动预约开通条件 API返回值 +tmall.servicecenter.reservecond.delete + +删除主动预约开通条件 +*/ +type TmallServicecenterReservecondDeleteAPIResponse struct { + model.CommonResponse + TmallServicecenterReservecondDeleteAPIResponseModel +} + +// 删除主动预约开通条件 成功返回结果 +type TmallServicecenterReservecondDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_reservecond_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + MsgSuccess bool `json:"msg_success,omitempty" xml:"msg_success,omitempty"` + // 返回编码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 返回信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/tmallsc/TmallServicecenterReservecondDeleteResponse.go b/model/tmallsc/TmallServicecenterReservecondDeleteResponse.go deleted file mode 100644 index 8a7cbfb1a4..0000000000 --- a/model/tmallsc/TmallServicecenterReservecondDeleteResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除主动预约开通条件 API返回值 -tmall.servicecenter.reservecond.delete - -删除主动预约开通条件 -*/ -type TmallServicecenterReservecondDeleteAPIResponse struct { - model.CommonResponse - TmallServicecenterReservecondDeleteResponse -} - -// 删除主动预约开通条件 成功返回结果 -type TmallServicecenterReservecondDeleteResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_reservecond_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - MsgSuccess bool `json:"msg_success,omitempty" xml:"msg_success,omitempty"` - // 返回编码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 返回信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/tmallsc/TmallServicecenterReservecondUpdateAPIRequest.go b/model/tmallsc/TmallServicecenterReservecondUpdateAPIRequest.go new file mode 100644 index 0000000000..a941631158 --- /dev/null +++ b/model/tmallsc/TmallServicecenterReservecondUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package tmallsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +主动预约条件更新 API请求 +tmall.servicecenter.reservecond.update + +1、设置主动预约开通条件 +*/ +type TmallServicecenterReservecondUpdateAPIRequest struct { + model.Params + // 主动预约开通条件 + _rocList []ReserveOpenConditionDto +} + +// 初始化TmallServicecenterReservecondUpdateAPIRequest对象 +func NewTmallServicecenterReservecondUpdateRequest() *TmallServicecenterReservecondUpdateAPIRequest{ + return &TmallServicecenterReservecondUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterReservecondUpdateAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.reservecond.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterReservecondUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RocList Setter +// 主动预约开通条件 +func (r *TmallServicecenterReservecondUpdateAPIRequest) SetRocList(_rocList []ReserveOpenConditionDto) error { + r._rocList = _rocList + r.Set("roc_list", _rocList) + return nil +} + +// RocList Getter +func (r TmallServicecenterReservecondUpdateAPIRequest) GetRocList() []ReserveOpenConditionDto { + return r._rocList +} diff --git a/model/tmallsc/TmallServicecenterReservecondUpdateAPIResponse.go b/model/tmallsc/TmallServicecenterReservecondUpdateAPIResponse.go new file mode 100644 index 0000000000..766870fbf9 --- /dev/null +++ b/model/tmallsc/TmallServicecenterReservecondUpdateAPIResponse.go @@ -0,0 +1,31 @@ +package tmallsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +主动预约条件更新 API返回值 +tmall.servicecenter.reservecond.update + +1、设置主动预约开通条件 +*/ +type TmallServicecenterReservecondUpdateAPIResponse struct { + model.CommonResponse + TmallServicecenterReservecondUpdateAPIResponseModel +} + +// 主动预约条件更新 成功返回结果 +type TmallServicecenterReservecondUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_reservecond_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + MsgSuccess bool `json:"msg_success,omitempty" xml:"msg_success,omitempty"` + // 返回信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 返回code + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` +} diff --git a/model/tmallsc/TmallServicecenterReservecondUpdateResponse.go b/model/tmallsc/TmallServicecenterReservecondUpdateResponse.go deleted file mode 100644 index 447648e1e1..0000000000 --- a/model/tmallsc/TmallServicecenterReservecondUpdateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -主动预约条件更新 API返回值 -tmall.servicecenter.reservecond.update - -1、设置主动预约开通条件 -*/ -type TmallServicecenterReservecondUpdateAPIResponse struct { - model.CommonResponse - TmallServicecenterReservecondUpdateResponse -} - -// 主动预约条件更新 成功返回结果 -type TmallServicecenterReservecondUpdateResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_reservecond_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - MsgSuccess bool `json:"msg_success,omitempty" xml:"msg_success,omitempty"` - // 返回信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 返回code - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` -} diff --git a/model/tmallsc/TmallServicecenterServicestoreCreateservicestorecapacityAPIRequest.go b/model/tmallsc/TmallServicecenterServicestoreCreateservicestorecapacityAPIRequest.go new file mode 100644 index 0000000000..93cd257d12 --- /dev/null +++ b/model/tmallsc/TmallServicecenterServicestoreCreateservicestorecapacityAPIRequest.go @@ -0,0 +1,97 @@ +package tmallsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增网点容量 API请求 +tmall.servicecenter.servicestore.createservicestorecapacity + +新增网点容量,唯一性校验:服务商淘宝账号+网点编码+biz_type +前提是网点要存在, +如果需要新增的网点容量已存在,会新增失败。 +网点容量包含了业务类型(比如电器预约安装)、天猫服务的servicecode列表、类目区域和容量 +*/ +type TmallServicecenterServicestoreCreateservicestorecapacityAPIRequest struct { + model.Params + // 业务类型 + _bizType string + // json格式,在某个业务类型(biz_type)下,类目所覆盖区域对应的容量。一个网点承接了空调和热水器的安装, 空调覆盖的区域是杭州市上城区和下城区,容量是10; 热水器覆盖的区域是杭州市下城区和江干区,容量是18;洗衣机和冰箱覆盖区域一样都是杭州市上城区和西湖区,合并计算容量30 + _categoryIdsAndAreaCodesAndCapacity string + // serviceCodes列表,|分隔 + _serviceCodes string + // 网点编码 + _serviceStoreCode string +} + +// 初始化TmallServicecenterServicestoreCreateservicestorecapacityAPIRequest对象 +func NewTmallServicecenterServicestoreCreateservicestorecapacityRequest() *TmallServicecenterServicestoreCreateservicestorecapacityAPIRequest{ + return &TmallServicecenterServicestoreCreateservicestorecapacityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterServicestoreCreateservicestorecapacityAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.servicestore.createservicestorecapacity" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterServicestoreCreateservicestorecapacityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizType Setter +// 业务类型 +func (r *TmallServicecenterServicestoreCreateservicestorecapacityAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TmallServicecenterServicestoreCreateservicestorecapacityAPIRequest) GetBizType() string { + return r._bizType +} +// CategoryIdsAndAreaCodesAndCapacity Setter +// json格式,在某个业务类型(biz_type)下,类目所覆盖区域对应的容量。一个网点承接了空调和热水器的安装, 空调覆盖的区域是杭州市上城区和下城区,容量是10; 热水器覆盖的区域是杭州市下城区和江干区,容量是18;洗衣机和冰箱覆盖区域一样都是杭州市上城区和西湖区,合并计算容量30 +func (r *TmallServicecenterServicestoreCreateservicestorecapacityAPIRequest) SetCategoryIdsAndAreaCodesAndCapacity(_categoryIdsAndAreaCodesAndCapacity string) error { + r._categoryIdsAndAreaCodesAndCapacity = _categoryIdsAndAreaCodesAndCapacity + r.Set("category_ids_and_area_codes_and_capacity", _categoryIdsAndAreaCodesAndCapacity) + return nil +} + +// CategoryIdsAndAreaCodesAndCapacity Getter +func (r TmallServicecenterServicestoreCreateservicestorecapacityAPIRequest) GetCategoryIdsAndAreaCodesAndCapacity() string { + return r._categoryIdsAndAreaCodesAndCapacity +} +// ServiceCodes Setter +// serviceCodes列表,|分隔 +func (r *TmallServicecenterServicestoreCreateservicestorecapacityAPIRequest) SetServiceCodes(_serviceCodes string) error { + r._serviceCodes = _serviceCodes + r.Set("service_codes", _serviceCodes) + return nil +} + +// ServiceCodes Getter +func (r TmallServicecenterServicestoreCreateservicestorecapacityAPIRequest) GetServiceCodes() string { + return r._serviceCodes +} +// ServiceStoreCode Setter +// 网点编码 +func (r *TmallServicecenterServicestoreCreateservicestorecapacityAPIRequest) SetServiceStoreCode(_serviceStoreCode string) error { + r._serviceStoreCode = _serviceStoreCode + r.Set("service_store_code", _serviceStoreCode) + return nil +} + +// ServiceStoreCode Getter +func (r TmallServicecenterServicestoreCreateservicestorecapacityAPIRequest) GetServiceStoreCode() string { + return r._serviceStoreCode +} diff --git a/model/tmallsc/TmallServicecenterServicestoreCreateservicestorecapacityAPIResponse.go b/model/tmallsc/TmallServicecenterServicestoreCreateservicestorecapacityAPIResponse.go new file mode 100644 index 0000000000..ed7050aa47 --- /dev/null +++ b/model/tmallsc/TmallServicecenterServicestoreCreateservicestorecapacityAPIResponse.go @@ -0,0 +1,30 @@ +package tmallsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增网点容量 API返回值 +tmall.servicecenter.servicestore.createservicestorecapacity + +新增网点容量,唯一性校验:服务商淘宝账号+网点编码+biz_type +前提是网点要存在, +如果需要新增的网点容量已存在,会新增失败。 +网点容量包含了业务类型(比如电器预约安装)、天猫服务的servicecode列表、类目区域和容量 +*/ +type TmallServicecenterServicestoreCreateservicestorecapacityAPIResponse struct { + model.CommonResponse + TmallServicecenterServicestoreCreateservicestorecapacityAPIResponseModel +} + +// 新增网点容量 成功返回结果 +type TmallServicecenterServicestoreCreateservicestorecapacityAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_servicestore_createservicestorecapacity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallsc/TmallServicecenterServicestoreCreateservicestorecapacityResponse.go b/model/tmallsc/TmallServicecenterServicestoreCreateservicestorecapacityResponse.go deleted file mode 100644 index f66913c83c..0000000000 --- a/model/tmallsc/TmallServicecenterServicestoreCreateservicestorecapacityResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package tmallsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增网点容量 API返回值 -tmall.servicecenter.servicestore.createservicestorecapacity - -新增网点容量,唯一性校验:服务商淘宝账号+网点编码+biz_type -前提是网点要存在, -如果需要新增的网点容量已存在,会新增失败。 -网点容量包含了业务类型(比如电器预约安装)、天猫服务的servicecode列表、类目区域和容量 -*/ -type TmallServicecenterServicestoreCreateservicestorecapacityAPIResponse struct { - model.CommonResponse - TmallServicecenterServicestoreCreateservicestorecapacityResponse -} - -// 新增网点容量 成功返回结果 -type TmallServicecenterServicestoreCreateservicestorecapacityResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_servicestore_createservicestorecapacity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallsc/TmallServicecenterServicestoreCreateservicestorecoverserviceAPIRequest.go b/model/tmallsc/TmallServicecenterServicestoreCreateservicestorecoverserviceAPIRequest.go new file mode 100644 index 0000000000..4b521741bd --- /dev/null +++ b/model/tmallsc/TmallServicecenterServicestoreCreateservicestorecoverserviceAPIRequest.go @@ -0,0 +1,97 @@ +package tmallsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增网点覆盖的服务 API请求 +tmall.servicecenter.servicestore.createservicestorecoverservice + +新增网点覆盖的服务,唯一性校验:服务商淘宝账号+网点编码+biz_type +前提是网点要存在, +如果需要新增的网点覆盖的服务已存在,会新增失败。 +网点覆盖的服务包含了业务类型(比如电器预约安装)、天猫服务的servicecode列表、授权的类目和品牌 +*/ +type TmallServicecenterServicestoreCreateservicestorecoverserviceAPIRequest struct { + model.Params + // 业务类型 + _bizType string + // json格式,在某个业务类型(biz_type)下类目和品牌的授权关系,比如空调授权了格力和美的,热水器授权了美的和林内,洗衣机和冰箱都授权了美的和松下 + _categoryIdsAndBrandIds string + // serviceCodes列表,|分隔 + _serviceCodes string + // 网点编码 + _serviceStoreCode string +} + +// 初始化TmallServicecenterServicestoreCreateservicestorecoverserviceAPIRequest对象 +func NewTmallServicecenterServicestoreCreateservicestorecoverserviceRequest() *TmallServicecenterServicestoreCreateservicestorecoverserviceAPIRequest{ + return &TmallServicecenterServicestoreCreateservicestorecoverserviceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterServicestoreCreateservicestorecoverserviceAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.servicestore.createservicestorecoverservice" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterServicestoreCreateservicestorecoverserviceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizType Setter +// 业务类型 +func (r *TmallServicecenterServicestoreCreateservicestorecoverserviceAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TmallServicecenterServicestoreCreateservicestorecoverserviceAPIRequest) GetBizType() string { + return r._bizType +} +// CategoryIdsAndBrandIds Setter +// json格式,在某个业务类型(biz_type)下类目和品牌的授权关系,比如空调授权了格力和美的,热水器授权了美的和林内,洗衣机和冰箱都授权了美的和松下 +func (r *TmallServicecenterServicestoreCreateservicestorecoverserviceAPIRequest) SetCategoryIdsAndBrandIds(_categoryIdsAndBrandIds string) error { + r._categoryIdsAndBrandIds = _categoryIdsAndBrandIds + r.Set("category_ids_and_brand_ids", _categoryIdsAndBrandIds) + return nil +} + +// CategoryIdsAndBrandIds Getter +func (r TmallServicecenterServicestoreCreateservicestorecoverserviceAPIRequest) GetCategoryIdsAndBrandIds() string { + return r._categoryIdsAndBrandIds +} +// ServiceCodes Setter +// serviceCodes列表,|分隔 +func (r *TmallServicecenterServicestoreCreateservicestorecoverserviceAPIRequest) SetServiceCodes(_serviceCodes string) error { + r._serviceCodes = _serviceCodes + r.Set("service_codes", _serviceCodes) + return nil +} + +// ServiceCodes Getter +func (r TmallServicecenterServicestoreCreateservicestorecoverserviceAPIRequest) GetServiceCodes() string { + return r._serviceCodes +} +// ServiceStoreCode Setter +// 网点编码 +func (r *TmallServicecenterServicestoreCreateservicestorecoverserviceAPIRequest) SetServiceStoreCode(_serviceStoreCode string) error { + r._serviceStoreCode = _serviceStoreCode + r.Set("service_store_code", _serviceStoreCode) + return nil +} + +// ServiceStoreCode Getter +func (r TmallServicecenterServicestoreCreateservicestorecoverserviceAPIRequest) GetServiceStoreCode() string { + return r._serviceStoreCode +} diff --git a/model/tmallsc/TmallServicecenterServicestoreCreateservicestorecoverserviceAPIResponse.go b/model/tmallsc/TmallServicecenterServicestoreCreateservicestorecoverserviceAPIResponse.go new file mode 100644 index 0000000000..2b42b736a6 --- /dev/null +++ b/model/tmallsc/TmallServicecenterServicestoreCreateservicestorecoverserviceAPIResponse.go @@ -0,0 +1,30 @@ +package tmallsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增网点覆盖的服务 API返回值 +tmall.servicecenter.servicestore.createservicestorecoverservice + +新增网点覆盖的服务,唯一性校验:服务商淘宝账号+网点编码+biz_type +前提是网点要存在, +如果需要新增的网点覆盖的服务已存在,会新增失败。 +网点覆盖的服务包含了业务类型(比如电器预约安装)、天猫服务的servicecode列表、授权的类目和品牌 +*/ +type TmallServicecenterServicestoreCreateservicestorecoverserviceAPIResponse struct { + model.CommonResponse + TmallServicecenterServicestoreCreateservicestorecoverserviceAPIResponseModel +} + +// 新增网点覆盖的服务 成功返回结果 +type TmallServicecenterServicestoreCreateservicestorecoverserviceAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_servicestore_createservicestorecoverservice_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallsc/TmallServicecenterServicestoreCreateservicestorecoverserviceResponse.go b/model/tmallsc/TmallServicecenterServicestoreCreateservicestorecoverserviceResponse.go deleted file mode 100644 index d873fafb1f..0000000000 --- a/model/tmallsc/TmallServicecenterServicestoreCreateservicestorecoverserviceResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package tmallsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增网点覆盖的服务 API返回值 -tmall.servicecenter.servicestore.createservicestorecoverservice - -新增网点覆盖的服务,唯一性校验:服务商淘宝账号+网点编码+biz_type -前提是网点要存在, -如果需要新增的网点覆盖的服务已存在,会新增失败。 -网点覆盖的服务包含了业务类型(比如电器预约安装)、天猫服务的servicecode列表、授权的类目和品牌 -*/ -type TmallServicecenterServicestoreCreateservicestorecoverserviceAPIResponse struct { - model.CommonResponse - TmallServicecenterServicestoreCreateservicestorecoverserviceResponse -} - -// 新增网点覆盖的服务 成功返回结果 -type TmallServicecenterServicestoreCreateservicestorecoverserviceResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_servicestore_createservicestorecoverservice_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallsc/TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest.go b/model/tmallsc/TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest.go new file mode 100644 index 0000000000..3c5ee66436 --- /dev/null +++ b/model/tmallsc/TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest.go @@ -0,0 +1,67 @@ +package tmallsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除网点容量 API请求 +tmall.servicecenter.servicestore.deleteservicestorecapacity + +删除网点覆盖的服务,无法恢复,如果只是暂时屏蔽网点的某个能力,可以将此能力对应的网点容量的capacity字段更新为0 +必选字段:serviceStoreCode、bizType +*/ +type TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest struct { + model.Params + // 网点编码 + _serviceStoreCode string + // 业务类型 + _bizType string +} + +// 初始化TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest对象 +func NewTmallServicecenterServicestoreDeleteservicestorecapacityRequest() *TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest{ + return &TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.servicestore.deleteservicestorecapacity" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceStoreCode Setter +// 网点编码 +func (r *TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest) SetServiceStoreCode(_serviceStoreCode string) error { + r._serviceStoreCode = _serviceStoreCode + r.Set("service_store_code", _serviceStoreCode) + return nil +} + +// ServiceStoreCode Getter +func (r TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest) GetServiceStoreCode() string { + return r._serviceStoreCode +} +// BizType Setter +// 业务类型 +func (r *TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TmallServicecenterServicestoreDeleteservicestorecapacityAPIRequest) GetBizType() string { + return r._bizType +} diff --git a/model/tmallsc/TmallServicecenterServicestoreDeleteservicestorecapacityAPIResponse.go b/model/tmallsc/TmallServicecenterServicestoreDeleteservicestorecapacityAPIResponse.go new file mode 100644 index 0000000000..46e6036271 --- /dev/null +++ b/model/tmallsc/TmallServicecenterServicestoreDeleteservicestorecapacityAPIResponse.go @@ -0,0 +1,28 @@ +package tmallsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除网点容量 API返回值 +tmall.servicecenter.servicestore.deleteservicestorecapacity + +删除网点覆盖的服务,无法恢复,如果只是暂时屏蔽网点的某个能力,可以将此能力对应的网点容量的capacity字段更新为0 +必选字段:serviceStoreCode、bizType +*/ +type TmallServicecenterServicestoreDeleteservicestorecapacityAPIResponse struct { + model.CommonResponse + TmallServicecenterServicestoreDeleteservicestorecapacityAPIResponseModel +} + +// 删除网点容量 成功返回结果 +type TmallServicecenterServicestoreDeleteservicestorecapacityAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_servicestore_deleteservicestorecapacity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallsc/TmallServicecenterServicestoreDeleteservicestorecapacityResponse.go b/model/tmallsc/TmallServicecenterServicestoreDeleteservicestorecapacityResponse.go deleted file mode 100644 index 7808b19334..0000000000 --- a/model/tmallsc/TmallServicecenterServicestoreDeleteservicestorecapacityResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package tmallsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除网点容量 API返回值 -tmall.servicecenter.servicestore.deleteservicestorecapacity - -删除网点覆盖的服务,无法恢复,如果只是暂时屏蔽网点的某个能力,可以将此能力对应的网点容量的capacity字段更新为0 -必选字段:serviceStoreCode、bizType -*/ -type TmallServicecenterServicestoreDeleteservicestorecapacityAPIResponse struct { - model.CommonResponse - TmallServicecenterServicestoreDeleteservicestorecapacityResponse -} - -// 删除网点容量 成功返回结果 -type TmallServicecenterServicestoreDeleteservicestorecapacityResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_servicestore_deleteservicestorecapacity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecapacityAPIRequest.go b/model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecapacityAPIRequest.go new file mode 100644 index 0000000000..727b75064f --- /dev/null +++ b/model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecapacityAPIRequest.go @@ -0,0 +1,97 @@ +package tmallsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新网点容量 API请求 +tmall.servicecenter.servicestore.updateservicestorecapacity + +更新网点容量,唯一性校验:服务商淘宝账号+网点编码+biz_type +前提是网点要存在, +如果需要更新的网点容量不存在,会更新失败。 +网点容量包含了业务类型(比如电器预约安装)、天猫服务的servicecode列表、类目区域和容量 +*/ +type TmallServicecenterServicestoreUpdateservicestorecapacityAPIRequest struct { + model.Params + // 业务类型 + _bizType string + // json格式,在某个业务类型(biz_type)下,类目所覆盖区域对应的容量。一个网点承接了空调和热水器的安装, 空调覆盖的区域是杭州市上城区和下城区,容量是10; 热水器覆盖的区域是杭州市下城区和江干区,容量是18;洗衣机和冰箱覆盖区域一样都是杭州市上城区和西湖区,合并计算容量30 + _categoryIdsAndAreaCodesAndCapacity string + // serviceCodes列表,|分隔 + _serviceCodes string + // 网点编码 + _serviceStoreCode string +} + +// 初始化TmallServicecenterServicestoreUpdateservicestorecapacityAPIRequest对象 +func NewTmallServicecenterServicestoreUpdateservicestorecapacityRequest() *TmallServicecenterServicestoreUpdateservicestorecapacityAPIRequest{ + return &TmallServicecenterServicestoreUpdateservicestorecapacityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterServicestoreUpdateservicestorecapacityAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.servicestore.updateservicestorecapacity" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterServicestoreUpdateservicestorecapacityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizType Setter +// 业务类型 +func (r *TmallServicecenterServicestoreUpdateservicestorecapacityAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TmallServicecenterServicestoreUpdateservicestorecapacityAPIRequest) GetBizType() string { + return r._bizType +} +// CategoryIdsAndAreaCodesAndCapacity Setter +// json格式,在某个业务类型(biz_type)下,类目所覆盖区域对应的容量。一个网点承接了空调和热水器的安装, 空调覆盖的区域是杭州市上城区和下城区,容量是10; 热水器覆盖的区域是杭州市下城区和江干区,容量是18;洗衣机和冰箱覆盖区域一样都是杭州市上城区和西湖区,合并计算容量30 +func (r *TmallServicecenterServicestoreUpdateservicestorecapacityAPIRequest) SetCategoryIdsAndAreaCodesAndCapacity(_categoryIdsAndAreaCodesAndCapacity string) error { + r._categoryIdsAndAreaCodesAndCapacity = _categoryIdsAndAreaCodesAndCapacity + r.Set("category_ids_and_area_codes_and_capacity", _categoryIdsAndAreaCodesAndCapacity) + return nil +} + +// CategoryIdsAndAreaCodesAndCapacity Getter +func (r TmallServicecenterServicestoreUpdateservicestorecapacityAPIRequest) GetCategoryIdsAndAreaCodesAndCapacity() string { + return r._categoryIdsAndAreaCodesAndCapacity +} +// ServiceCodes Setter +// serviceCodes列表,|分隔 +func (r *TmallServicecenterServicestoreUpdateservicestorecapacityAPIRequest) SetServiceCodes(_serviceCodes string) error { + r._serviceCodes = _serviceCodes + r.Set("service_codes", _serviceCodes) + return nil +} + +// ServiceCodes Getter +func (r TmallServicecenterServicestoreUpdateservicestorecapacityAPIRequest) GetServiceCodes() string { + return r._serviceCodes +} +// ServiceStoreCode Setter +// 网点编码 +func (r *TmallServicecenterServicestoreUpdateservicestorecapacityAPIRequest) SetServiceStoreCode(_serviceStoreCode string) error { + r._serviceStoreCode = _serviceStoreCode + r.Set("service_store_code", _serviceStoreCode) + return nil +} + +// ServiceStoreCode Getter +func (r TmallServicecenterServicestoreUpdateservicestorecapacityAPIRequest) GetServiceStoreCode() string { + return r._serviceStoreCode +} diff --git a/model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecapacityAPIResponse.go b/model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecapacityAPIResponse.go new file mode 100644 index 0000000000..2a6082f56d --- /dev/null +++ b/model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecapacityAPIResponse.go @@ -0,0 +1,30 @@ +package tmallsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新网点容量 API返回值 +tmall.servicecenter.servicestore.updateservicestorecapacity + +更新网点容量,唯一性校验:服务商淘宝账号+网点编码+biz_type +前提是网点要存在, +如果需要更新的网点容量不存在,会更新失败。 +网点容量包含了业务类型(比如电器预约安装)、天猫服务的servicecode列表、类目区域和容量 +*/ +type TmallServicecenterServicestoreUpdateservicestorecapacityAPIResponse struct { + model.CommonResponse + TmallServicecenterServicestoreUpdateservicestorecapacityAPIResponseModel +} + +// 更新网点容量 成功返回结果 +type TmallServicecenterServicestoreUpdateservicestorecapacityAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_servicestore_updateservicestorecapacity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecapacityResponse.go b/model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecapacityResponse.go deleted file mode 100644 index 5824107317..0000000000 --- a/model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecapacityResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package tmallsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新网点容量 API返回值 -tmall.servicecenter.servicestore.updateservicestorecapacity - -更新网点容量,唯一性校验:服务商淘宝账号+网点编码+biz_type -前提是网点要存在, -如果需要更新的网点容量不存在,会更新失败。 -网点容量包含了业务类型(比如电器预约安装)、天猫服务的servicecode列表、类目区域和容量 -*/ -type TmallServicecenterServicestoreUpdateservicestorecapacityAPIResponse struct { - model.CommonResponse - TmallServicecenterServicestoreUpdateservicestorecapacityResponse -} - -// 更新网点容量 成功返回结果 -type TmallServicecenterServicestoreUpdateservicestorecapacityResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_servicestore_updateservicestorecapacity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIRequest.go b/model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIRequest.go new file mode 100644 index 0000000000..5caa864caf --- /dev/null +++ b/model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIRequest.go @@ -0,0 +1,97 @@ +package tmallsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新网点覆盖的服务 API请求 +tmall.servicecenter.servicestore.updateservicestorecoverservice + +更新网点覆盖的服务,唯一性校验:服务商淘宝账号+网点编码+biz_type +前提是网点要存在, +如果需要新增的网点覆盖的服务不存在,会更新失败。 +网点覆盖的服务包含了业务类型(比如电器预约安装)、天猫服务的servicecode列表、授权的类目和品牌 +*/ +type TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIRequest struct { + model.Params + // 业务类型 + _bizType string + // json格式,在某个业务类型(biz_type)下类目和品牌的授权关系,比如空调授权了格力和美的,热水器授权了美的和林内,洗衣机和冰箱都授权了美的和松下 + _categoryIdsAndBrandIds string + // serviceCodes列表,|分隔 + _serviceCodes string + // 网点编码 + _serviceStoreCode string +} + +// 初始化TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIRequest对象 +func NewTmallServicecenterServicestoreUpdateservicestorecoverserviceRequest() *TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIRequest{ + return &TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.servicestore.updateservicestorecoverservice" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizType Setter +// 业务类型 +func (r *TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIRequest) GetBizType() string { + return r._bizType +} +// CategoryIdsAndBrandIds Setter +// json格式,在某个业务类型(biz_type)下类目和品牌的授权关系,比如空调授权了格力和美的,热水器授权了美的和林内,洗衣机和冰箱都授权了美的和松下 +func (r *TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIRequest) SetCategoryIdsAndBrandIds(_categoryIdsAndBrandIds string) error { + r._categoryIdsAndBrandIds = _categoryIdsAndBrandIds + r.Set("category_ids_and_brand_ids", _categoryIdsAndBrandIds) + return nil +} + +// CategoryIdsAndBrandIds Getter +func (r TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIRequest) GetCategoryIdsAndBrandIds() string { + return r._categoryIdsAndBrandIds +} +// ServiceCodes Setter +// serviceCodes列表,|分隔 +func (r *TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIRequest) SetServiceCodes(_serviceCodes string) error { + r._serviceCodes = _serviceCodes + r.Set("service_codes", _serviceCodes) + return nil +} + +// ServiceCodes Getter +func (r TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIRequest) GetServiceCodes() string { + return r._serviceCodes +} +// ServiceStoreCode Setter +// 网点编码 +func (r *TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIRequest) SetServiceStoreCode(_serviceStoreCode string) error { + r._serviceStoreCode = _serviceStoreCode + r.Set("service_store_code", _serviceStoreCode) + return nil +} + +// ServiceStoreCode Getter +func (r TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIRequest) GetServiceStoreCode() string { + return r._serviceStoreCode +} diff --git a/model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIResponse.go b/model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIResponse.go new file mode 100644 index 0000000000..d993c49a3a --- /dev/null +++ b/model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIResponse.go @@ -0,0 +1,30 @@ +package tmallsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新网点覆盖的服务 API返回值 +tmall.servicecenter.servicestore.updateservicestorecoverservice + +更新网点覆盖的服务,唯一性校验:服务商淘宝账号+网点编码+biz_type +前提是网点要存在, +如果需要新增的网点覆盖的服务不存在,会更新失败。 +网点覆盖的服务包含了业务类型(比如电器预约安装)、天猫服务的servicecode列表、授权的类目和品牌 +*/ +type TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIResponse struct { + model.CommonResponse + TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIResponseModel +} + +// 更新网点覆盖的服务 成功返回结果 +type TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_servicestore_updateservicestorecoverservice_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecoverserviceResponse.go b/model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecoverserviceResponse.go deleted file mode 100644 index a723c2964d..0000000000 --- a/model/tmallsc/TmallServicecenterServicestoreUpdateservicestorecoverserviceResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package tmallsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新网点覆盖的服务 API返回值 -tmall.servicecenter.servicestore.updateservicestorecoverservice - -更新网点覆盖的服务,唯一性校验:服务商淘宝账号+网点编码+biz_type -前提是网点要存在, -如果需要新增的网点覆盖的服务不存在,会更新失败。 -网点覆盖的服务包含了业务类型(比如电器预约安装)、天猫服务的servicecode列表、授权的类目和品牌 -*/ -type TmallServicecenterServicestoreUpdateservicestorecoverserviceAPIResponse struct { - model.CommonResponse - TmallServicecenterServicestoreUpdateservicestorecoverserviceResponse -} - -// 更新网点覆盖的服务 成功返回结果 -type TmallServicecenterServicestoreUpdateservicestorecoverserviceResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_servicestore_updateservicestorecoverservice_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallsc/TmallServicecenterWorkcardDeliveryAPIRequest.go b/model/tmallsc/TmallServicecenterWorkcardDeliveryAPIRequest.go new file mode 100644 index 0000000000..2dbdd52ea0 --- /dev/null +++ b/model/tmallsc/TmallServicecenterWorkcardDeliveryAPIRequest.go @@ -0,0 +1,52 @@ +package tmallsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +开始配送工单 API请求 +tmall.servicecenter.workcard.delivery + +服务商调用该接口通知天猫服务平台服务商工人已开始配送工单 +*/ +type TmallServicecenterWorkcardDeliveryAPIRequest struct { + model.Params + // 工单配送请求参数 + _identifyTaskDeliveryRequest *IdentifyTaskDeliveryRequest +} + +// 初始化TmallServicecenterWorkcardDeliveryAPIRequest对象 +func NewTmallServicecenterWorkcardDeliveryRequest() *TmallServicecenterWorkcardDeliveryAPIRequest{ + return &TmallServicecenterWorkcardDeliveryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardDeliveryAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.delivery" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardDeliveryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IdentifyTaskDeliveryRequest Setter +// 工单配送请求参数 +func (r *TmallServicecenterWorkcardDeliveryAPIRequest) SetIdentifyTaskDeliveryRequest(_identifyTaskDeliveryRequest *IdentifyTaskDeliveryRequest) error { + r._identifyTaskDeliveryRequest = _identifyTaskDeliveryRequest + r.Set("identify_task_delivery_request", _identifyTaskDeliveryRequest) + return nil +} + +// IdentifyTaskDeliveryRequest Getter +func (r TmallServicecenterWorkcardDeliveryAPIRequest) GetIdentifyTaskDeliveryRequest() *IdentifyTaskDeliveryRequest { + return r._identifyTaskDeliveryRequest +} diff --git a/model/tmallsc/TmallServicecenterWorkcardDeliveryAPIResponse.go b/model/tmallsc/TmallServicecenterWorkcardDeliveryAPIResponse.go new file mode 100644 index 0000000000..3515caadc0 --- /dev/null +++ b/model/tmallsc/TmallServicecenterWorkcardDeliveryAPIResponse.go @@ -0,0 +1,31 @@ +package tmallsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +开始配送工单 API返回值 +tmall.servicecenter.workcard.delivery + +服务商调用该接口通知天猫服务平台服务商工人已开始配送工单 +*/ +type TmallServicecenterWorkcardDeliveryAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardDeliveryAPIResponseModel +} + +// 开始配送工单 成功返回结果 +type TmallServicecenterWorkcardDeliveryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_delivery_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + MsgSuccess bool `json:"msg_success,omitempty" xml:"msg_success,omitempty"` + // 返回信息 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 返回code + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/tmallsc/TmallServicecenterWorkcardDeliveryResponse.go b/model/tmallsc/TmallServicecenterWorkcardDeliveryResponse.go deleted file mode 100644 index 7cd9a54047..0000000000 --- a/model/tmallsc/TmallServicecenterWorkcardDeliveryResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -开始配送工单 API返回值 -tmall.servicecenter.workcard.delivery - -服务商调用该接口通知天猫服务平台服务商工人已开始配送工单 -*/ -type TmallServicecenterWorkcardDeliveryAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardDeliveryResponse -} - -// 开始配送工单 成功返回结果 -type TmallServicecenterWorkcardDeliveryResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_delivery_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - MsgSuccess bool `json:"msg_success,omitempty" xml:"msg_success,omitempty"` - // 返回信息 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 返回code - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/tmallsc/TmallServicecenterWorkcardRefuseAPIRequest.go b/model/tmallsc/TmallServicecenterWorkcardRefuseAPIRequest.go new file mode 100644 index 0000000000..07103ed0c0 --- /dev/null +++ b/model/tmallsc/TmallServicecenterWorkcardRefuseAPIRequest.go @@ -0,0 +1,52 @@ +package tmallsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +买家拒收 API请求 +tmall.servicecenter.workcard.refuse + +买家拒收通知接口 +*/ +type TmallServicecenterWorkcardRefuseAPIRequest struct { + model.Params + // 买家拒收信息 + _buyerRefuseAcceptRequest *BuyerRefuseAcceptRequest +} + +// 初始化TmallServicecenterWorkcardRefuseAPIRequest对象 +func NewTmallServicecenterWorkcardRefuseRequest() *TmallServicecenterWorkcardRefuseAPIRequest{ + return &TmallServicecenterWorkcardRefuseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardRefuseAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.refuse" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardRefuseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BuyerRefuseAcceptRequest Setter +// 买家拒收信息 +func (r *TmallServicecenterWorkcardRefuseAPIRequest) SetBuyerRefuseAcceptRequest(_buyerRefuseAcceptRequest *BuyerRefuseAcceptRequest) error { + r._buyerRefuseAcceptRequest = _buyerRefuseAcceptRequest + r.Set("buyer_refuse_accept_request", _buyerRefuseAcceptRequest) + return nil +} + +// BuyerRefuseAcceptRequest Getter +func (r TmallServicecenterWorkcardRefuseAPIRequest) GetBuyerRefuseAcceptRequest() *BuyerRefuseAcceptRequest { + return r._buyerRefuseAcceptRequest +} diff --git a/model/tmallsc/TmallServicecenterWorkcardRefuseAPIResponse.go b/model/tmallsc/TmallServicecenterWorkcardRefuseAPIResponse.go new file mode 100644 index 0000000000..d71d63da77 --- /dev/null +++ b/model/tmallsc/TmallServicecenterWorkcardRefuseAPIResponse.go @@ -0,0 +1,31 @@ +package tmallsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +买家拒收 API返回值 +tmall.servicecenter.workcard.refuse + +买家拒收通知接口 +*/ +type TmallServicecenterWorkcardRefuseAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardRefuseAPIResponseModel +} + +// 买家拒收 成功返回结果 +type TmallServicecenterWorkcardRefuseAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_refuse_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 返回code + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 是否成功 + MsgSuccess bool `json:"msg_success,omitempty" xml:"msg_success,omitempty"` +} diff --git a/model/tmallsc/TmallServicecenterWorkcardRefuseResponse.go b/model/tmallsc/TmallServicecenterWorkcardRefuseResponse.go deleted file mode 100644 index ba4fdaee87..0000000000 --- a/model/tmallsc/TmallServicecenterWorkcardRefuseResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -买家拒收 API返回值 -tmall.servicecenter.workcard.refuse - -买家拒收通知接口 -*/ -type TmallServicecenterWorkcardRefuseAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardRefuseResponse -} - -// 买家拒收 成功返回结果 -type TmallServicecenterWorkcardRefuseResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_refuse_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 返回code - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 是否成功 - MsgSuccess bool `json:"msg_success,omitempty" xml:"msg_success,omitempty"` -} diff --git a/model/tmallsc/TmallWorkcardIdentifyAPIRequest.go b/model/tmallsc/TmallWorkcardIdentifyAPIRequest.go new file mode 100644 index 0000000000..7d269232d6 --- /dev/null +++ b/model/tmallsc/TmallWorkcardIdentifyAPIRequest.go @@ -0,0 +1,54 @@ +package tmallsc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +工单核销 API请求 +tmall.workcard.identify + +工单核销,当工单完成以后,通过调用此接口核销 +可以按照多维度核销工单, +电器预约安装按照工单维度核销,必选字段workcard_id,buyer_id,identify_code,可选字段attrs,通过扩展字段attrs回传机器码,格式{sn:'机器码'} +*/ +type TmallWorkcardIdentifyAPIRequest struct { + model.Params + // 核销dto + _verifyRequestDTO *VerifyRequestDto +} + +// 初始化TmallWorkcardIdentifyAPIRequest对象 +func NewTmallWorkcardIdentifyRequest() *TmallWorkcardIdentifyAPIRequest{ + return &TmallWorkcardIdentifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallWorkcardIdentifyAPIRequest) GetApiMethodName() string { + return "tmall.workcard.identify" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallWorkcardIdentifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VerifyRequestDTO Setter +// 核销dto +func (r *TmallWorkcardIdentifyAPIRequest) SetVerifyRequestDTO(_verifyRequestDTO *VerifyRequestDto) error { + r._verifyRequestDTO = _verifyRequestDTO + r.Set("verify_request_d_t_o", _verifyRequestDTO) + return nil +} + +// VerifyRequestDTO Getter +func (r TmallWorkcardIdentifyAPIRequest) GetVerifyRequestDTO() *VerifyRequestDto { + return r._verifyRequestDTO +} diff --git a/model/tmallsc/TmallWorkcardIdentifyAPIResponse.go b/model/tmallsc/TmallWorkcardIdentifyAPIResponse.go new file mode 100644 index 0000000000..9d9e5bdb0d --- /dev/null +++ b/model/tmallsc/TmallWorkcardIdentifyAPIResponse.go @@ -0,0 +1,29 @@ +package tmallsc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +工单核销 API返回值 +tmall.workcard.identify + +工单核销,当工单完成以后,通过调用此接口核销 +可以按照多维度核销工单, +电器预约安装按照工单维度核销,必选字段workcard_id,buyer_id,identify_code,可选字段attrs,通过扩展字段attrs回传机器码,格式{sn:'机器码'} +*/ +type TmallWorkcardIdentifyAPIResponse struct { + model.CommonResponse + TmallWorkcardIdentifyAPIResponseModel +} + +// 工单核销 成功返回结果 +type TmallWorkcardIdentifyAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_workcard_identify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallWorkcardIdentifyResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallsc/TmallWorkcardIdentifyResponse.go b/model/tmallsc/TmallWorkcardIdentifyResponse.go deleted file mode 100644 index 5496d0aa6f..0000000000 --- a/model/tmallsc/TmallWorkcardIdentifyResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tmallsc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -工单核销 API返回值 -tmall.workcard.identify - -工单核销,当工单完成以后,通过调用此接口核销 -可以按照多维度核销工单, -电器预约安装按照工单维度核销,必选字段workcard_id,buyer_id,identify_code,可选字段attrs,通过扩展字段attrs回传机器码,格式{sn:'机器码'} -*/ -type TmallWorkcardIdentifyAPIResponse struct { - model.CommonResponse - TmallWorkcardIdentifyResponse -} - -// 工单核销 成功返回结果 -type TmallWorkcardIdentifyResponse struct { - XMLName xml.Name `xml:"tmall_workcard_identify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallWorkcardIdentifyResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/AlibabaMallitemcenterEntitledserviceSupplierQueryAPIRequest.go b/model/tmallservice/AlibabaMallitemcenterEntitledserviceSupplierQueryAPIRequest.go new file mode 100644 index 0000000000..5528645e09 --- /dev/null +++ b/model/tmallservice/AlibabaMallitemcenterEntitledserviceSupplierQueryAPIRequest.go @@ -0,0 +1,80 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据天猫id查询门店服务授权 API请求 +alibaba.mallitemcenter.entitledservice.supplier.query + +根据天猫id查询门店服务授权 +*/ +type AlibabaMallitemcenterEntitledserviceSupplierQueryAPIRequest struct { + model.Params + // 天猫id + _id int64 + // 第几页 + _currentPage int64 + // 每页条数 + _pageSize int64 +} + +// 初始化AlibabaMallitemcenterEntitledserviceSupplierQueryAPIRequest对象 +func NewAlibabaMallitemcenterEntitledserviceSupplierQueryRequest() *AlibabaMallitemcenterEntitledserviceSupplierQueryAPIRequest{ + return &AlibabaMallitemcenterEntitledserviceSupplierQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMallitemcenterEntitledserviceSupplierQueryAPIRequest) GetApiMethodName() string { + return "alibaba.mallitemcenter.entitledservice.supplier.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMallitemcenterEntitledserviceSupplierQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 天猫id +func (r *AlibabaMallitemcenterEntitledserviceSupplierQueryAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaMallitemcenterEntitledserviceSupplierQueryAPIRequest) GetId() int64 { + return r._id +} +// CurrentPage Setter +// 第几页 +func (r *AlibabaMallitemcenterEntitledserviceSupplierQueryAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AlibabaMallitemcenterEntitledserviceSupplierQueryAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// PageSize Setter +// 每页条数 +func (r *AlibabaMallitemcenterEntitledserviceSupplierQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaMallitemcenterEntitledserviceSupplierQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tmallservice/AlibabaMallitemcenterEntitledserviceSupplierQueryAPIResponse.go b/model/tmallservice/AlibabaMallitemcenterEntitledserviceSupplierQueryAPIResponse.go new file mode 100644 index 0000000000..82da689afe --- /dev/null +++ b/model/tmallservice/AlibabaMallitemcenterEntitledserviceSupplierQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据天猫id查询门店服务授权 API返回值 +alibaba.mallitemcenter.entitledservice.supplier.query + +根据天猫id查询门店服务授权 +*/ +type AlibabaMallitemcenterEntitledserviceSupplierQueryAPIResponse struct { + model.CommonResponse + AlibabaMallitemcenterEntitledserviceSupplierQueryAPIResponseModel +} + +// 根据天猫id查询门店服务授权 成功返回结果 +type AlibabaMallitemcenterEntitledserviceSupplierQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mallitemcenter_entitledservice_supplier_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 统一返回结果 + Result *AlibabaMallitemcenterEntitledserviceSupplierQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/AlibabaMallitemcenterEntitledserviceSupplierQueryResponse.go b/model/tmallservice/AlibabaMallitemcenterEntitledserviceSupplierQueryResponse.go deleted file mode 100644 index 11031f993e..0000000000 --- a/model/tmallservice/AlibabaMallitemcenterEntitledserviceSupplierQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据天猫id查询门店服务授权 API返回值 -alibaba.mallitemcenter.entitledservice.supplier.query - -根据天猫id查询门店服务授权 -*/ -type AlibabaMallitemcenterEntitledserviceSupplierQueryAPIResponse struct { - model.CommonResponse - AlibabaMallitemcenterEntitledserviceSupplierQueryResponse -} - -// 根据天猫id查询门店服务授权 成功返回结果 -type AlibabaMallitemcenterEntitledserviceSupplierQueryResponse struct { - XMLName xml.Name `xml:"alibaba_mallitemcenter_entitledservice_supplier_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 统一返回结果 - Result *AlibabaMallitemcenterEntitledserviceSupplierQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIRequest.go b/model/tmallservice/AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIRequest.go new file mode 100644 index 0000000000..f7343329a7 --- /dev/null +++ b/model/tmallservice/AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIRequest.go @@ -0,0 +1,80 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改消费者服务地址 API请求 +alibaba.servicecenter.fulfiltask.buyeraddress.change + +当消费者反馈自己的服务地址错误时,可以电话联系服务商修改为正确地址,服务商只能修改派给自己的单子 +*/ +type AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIRequest struct { + model.Params + // 核销单id + _fulfilTaskId int64 + // 详细地址 + _addressDetail string + // 地址编码 + _location int64 +} + +// 初始化AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIRequest对象 +func NewAlibabaServicecenterFulfiltaskBuyeraddressChangeRequest() *AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIRequest{ + return &AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIRequest) GetApiMethodName() string { + return "alibaba.servicecenter.fulfiltask.buyeraddress.change" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FulfilTaskId Setter +// 核销单id +func (r *AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIRequest) SetFulfilTaskId(_fulfilTaskId int64) error { + r._fulfilTaskId = _fulfilTaskId + r.Set("fulfil_task_id", _fulfilTaskId) + return nil +} + +// FulfilTaskId Getter +func (r AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIRequest) GetFulfilTaskId() int64 { + return r._fulfilTaskId +} +// AddressDetail Setter +// 详细地址 +func (r *AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIRequest) SetAddressDetail(_addressDetail string) error { + r._addressDetail = _addressDetail + r.Set("address_detail", _addressDetail) + return nil +} + +// AddressDetail Getter +func (r AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIRequest) GetAddressDetail() string { + return r._addressDetail +} +// Location Setter +// 地址编码 +func (r *AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIRequest) SetLocation(_location int64) error { + r._location = _location + r.Set("location", _location) + return nil +} + +// Location Getter +func (r AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIRequest) GetLocation() int64 { + return r._location +} diff --git a/model/tmallservice/AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIResponse.go b/model/tmallservice/AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIResponse.go new file mode 100644 index 0000000000..29f1fdd417 --- /dev/null +++ b/model/tmallservice/AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改消费者服务地址 API返回值 +alibaba.servicecenter.fulfiltask.buyeraddress.change + +当消费者反馈自己的服务地址错误时,可以电话联系服务商修改为正确地址,服务商只能修改派给自己的单子 +*/ +type AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIResponse struct { + model.CommonResponse + AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIResponseModel +} + +// 修改消费者服务地址 成功返回结果 +type AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_servicecenter_fulfiltask_buyeraddress_change_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaServicecenterFulfiltaskBuyeraddressChangeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/AlibabaServicecenterFulfiltaskBuyeraddressChangeResponse.go b/model/tmallservice/AlibabaServicecenterFulfiltaskBuyeraddressChangeResponse.go deleted file mode 100644 index dc720d1470..0000000000 --- a/model/tmallservice/AlibabaServicecenterFulfiltaskBuyeraddressChangeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改消费者服务地址 API返回值 -alibaba.servicecenter.fulfiltask.buyeraddress.change - -当消费者反馈自己的服务地址错误时,可以电话联系服务商修改为正确地址,服务商只能修改派给自己的单子 -*/ -type AlibabaServicecenterFulfiltaskBuyeraddressChangeAPIResponse struct { - model.CommonResponse - AlibabaServicecenterFulfiltaskBuyeraddressChangeResponse -} - -// 修改消费者服务地址 成功返回结果 -type AlibabaServicecenterFulfiltaskBuyeraddressChangeResponse struct { - XMLName xml.Name `xml:"alibaba_servicecenter_fulfiltask_buyeraddress_change_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaServicecenterFulfiltaskBuyeraddressChangeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/AlibabaServicecenterFulfiltaskCreateAPIRequest.go b/model/tmallservice/AlibabaServicecenterFulfiltaskCreateAPIRequest.go new file mode 100644 index 0000000000..d6e6a61f2e --- /dev/null +++ b/model/tmallservice/AlibabaServicecenterFulfiltaskCreateAPIRequest.go @@ -0,0 +1,66 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +合单生成核销单 API请求 +alibaba.servicecenter.fulfiltask.create + +服务对工单进行合单,合单的结果是生成核销单 +*/ +type AlibabaServicecenterFulfiltaskCreateAPIRequest struct { + model.Params + // 工单id列表 + _workcardIds []int64 + // 外部单号 + _outerId string +} + +// 初始化AlibabaServicecenterFulfiltaskCreateAPIRequest对象 +func NewAlibabaServicecenterFulfiltaskCreateRequest() *AlibabaServicecenterFulfiltaskCreateAPIRequest{ + return &AlibabaServicecenterFulfiltaskCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaServicecenterFulfiltaskCreateAPIRequest) GetApiMethodName() string { + return "alibaba.servicecenter.fulfiltask.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaServicecenterFulfiltaskCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkcardIds Setter +// 工单id列表 +func (r *AlibabaServicecenterFulfiltaskCreateAPIRequest) SetWorkcardIds(_workcardIds []int64) error { + r._workcardIds = _workcardIds + r.Set("workcard_ids", _workcardIds) + return nil +} + +// WorkcardIds Getter +func (r AlibabaServicecenterFulfiltaskCreateAPIRequest) GetWorkcardIds() []int64 { + return r._workcardIds +} +// OuterId Setter +// 外部单号 +func (r *AlibabaServicecenterFulfiltaskCreateAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r AlibabaServicecenterFulfiltaskCreateAPIRequest) GetOuterId() string { + return r._outerId +} diff --git a/model/tmallservice/AlibabaServicecenterFulfiltaskCreateAPIResponse.go b/model/tmallservice/AlibabaServicecenterFulfiltaskCreateAPIResponse.go new file mode 100644 index 0000000000..4f19ea4a59 --- /dev/null +++ b/model/tmallservice/AlibabaServicecenterFulfiltaskCreateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +合单生成核销单 API返回值 +alibaba.servicecenter.fulfiltask.create + +服务对工单进行合单,合单的结果是生成核销单 +*/ +type AlibabaServicecenterFulfiltaskCreateAPIResponse struct { + model.CommonResponse + AlibabaServicecenterFulfiltaskCreateAPIResponseModel +} + +// 合单生成核销单 成功返回结果 +type AlibabaServicecenterFulfiltaskCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_servicecenter_fulfiltask_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaServicecenterFulfiltaskCreateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/AlibabaServicecenterFulfiltaskCreateResponse.go b/model/tmallservice/AlibabaServicecenterFulfiltaskCreateResponse.go deleted file mode 100644 index 667865c3ec..0000000000 --- a/model/tmallservice/AlibabaServicecenterFulfiltaskCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -合单生成核销单 API返回值 -alibaba.servicecenter.fulfiltask.create - -服务对工单进行合单,合单的结果是生成核销单 -*/ -type AlibabaServicecenterFulfiltaskCreateAPIResponse struct { - model.CommonResponse - AlibabaServicecenterFulfiltaskCreateResponse -} - -// 合单生成核销单 成功返回结果 -type AlibabaServicecenterFulfiltaskCreateResponse struct { - XMLName xml.Name `xml:"alibaba_servicecenter_fulfiltask_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaServicecenterFulfiltaskCreateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/AlibabaServicecenterFulfiltaskQueryAPIRequest.go b/model/tmallservice/AlibabaServicecenterFulfiltaskQueryAPIRequest.go new file mode 100644 index 0000000000..50dac1e42f --- /dev/null +++ b/model/tmallservice/AlibabaServicecenterFulfiltaskQueryAPIRequest.go @@ -0,0 +1,122 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +核销单查询 API请求 +alibaba.servicecenter.fulfiltask.query + +当系统生成核销单之后,需要派单到服务商,服务商根据核销里的服务信息和用户信息,给消费者提供服务 +*/ +type AlibabaServicecenterFulfiltaskQueryAPIRequest struct { + model.Params + // 时间段查询,核销单创建时间,时间段跨度不超过15分钟 + _gmtCreateStart string + // 每页条数,默认50,最大50 + _pageSize int64 + // 核销单外部单号 + _outerId string + // 时间段查询,核销单创建时间,时间段跨度不超过15分钟 + _gmtCreateEnd string + // 查询第几页 + _currentPage int64 + // 核销单id列表 + _fulfilTaskIdList []int64 +} + +// 初始化AlibabaServicecenterFulfiltaskQueryAPIRequest对象 +func NewAlibabaServicecenterFulfiltaskQueryRequest() *AlibabaServicecenterFulfiltaskQueryAPIRequest{ + return &AlibabaServicecenterFulfiltaskQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaServicecenterFulfiltaskQueryAPIRequest) GetApiMethodName() string { + return "alibaba.servicecenter.fulfiltask.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaServicecenterFulfiltaskQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GmtCreateStart Setter +// 时间段查询,核销单创建时间,时间段跨度不超过15分钟 +func (r *AlibabaServicecenterFulfiltaskQueryAPIRequest) SetGmtCreateStart(_gmtCreateStart string) error { + r._gmtCreateStart = _gmtCreateStart + r.Set("gmt_create_start", _gmtCreateStart) + return nil +} + +// GmtCreateStart Getter +func (r AlibabaServicecenterFulfiltaskQueryAPIRequest) GetGmtCreateStart() string { + return r._gmtCreateStart +} +// PageSize Setter +// 每页条数,默认50,最大50 +func (r *AlibabaServicecenterFulfiltaskQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaServicecenterFulfiltaskQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// OuterId Setter +// 核销单外部单号 +func (r *AlibabaServicecenterFulfiltaskQueryAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r AlibabaServicecenterFulfiltaskQueryAPIRequest) GetOuterId() string { + return r._outerId +} +// GmtCreateEnd Setter +// 时间段查询,核销单创建时间,时间段跨度不超过15分钟 +func (r *AlibabaServicecenterFulfiltaskQueryAPIRequest) SetGmtCreateEnd(_gmtCreateEnd string) error { + r._gmtCreateEnd = _gmtCreateEnd + r.Set("gmt_create_end", _gmtCreateEnd) + return nil +} + +// GmtCreateEnd Getter +func (r AlibabaServicecenterFulfiltaskQueryAPIRequest) GetGmtCreateEnd() string { + return r._gmtCreateEnd +} +// CurrentPage Setter +// 查询第几页 +func (r *AlibabaServicecenterFulfiltaskQueryAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AlibabaServicecenterFulfiltaskQueryAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// FulfilTaskIdList Setter +// 核销单id列表 +func (r *AlibabaServicecenterFulfiltaskQueryAPIRequest) SetFulfilTaskIdList(_fulfilTaskIdList []int64) error { + r._fulfilTaskIdList = _fulfilTaskIdList + r.Set("fulfil_task_id_list", _fulfilTaskIdList) + return nil +} + +// FulfilTaskIdList Getter +func (r AlibabaServicecenterFulfiltaskQueryAPIRequest) GetFulfilTaskIdList() []int64 { + return r._fulfilTaskIdList +} diff --git a/model/tmallservice/AlibabaServicecenterFulfiltaskQueryAPIResponse.go b/model/tmallservice/AlibabaServicecenterFulfiltaskQueryAPIResponse.go new file mode 100644 index 0000000000..fc4c71aac9 --- /dev/null +++ b/model/tmallservice/AlibabaServicecenterFulfiltaskQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +核销单查询 API返回值 +alibaba.servicecenter.fulfiltask.query + +当系统生成核销单之后,需要派单到服务商,服务商根据核销里的服务信息和用户信息,给消费者提供服务 +*/ +type AlibabaServicecenterFulfiltaskQueryAPIResponse struct { + model.CommonResponse + AlibabaServicecenterFulfiltaskQueryAPIResponseModel +} + +// 核销单查询 成功返回结果 +type AlibabaServicecenterFulfiltaskQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_servicecenter_fulfiltask_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaServicecenterFulfiltaskQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/AlibabaServicecenterFulfiltaskQueryResponse.go b/model/tmallservice/AlibabaServicecenterFulfiltaskQueryResponse.go deleted file mode 100644 index 6b9cf062aa..0000000000 --- a/model/tmallservice/AlibabaServicecenterFulfiltaskQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -核销单查询 API返回值 -alibaba.servicecenter.fulfiltask.query - -当系统生成核销单之后,需要派单到服务商,服务商根据核销里的服务信息和用户信息,给消费者提供服务 -*/ -type AlibabaServicecenterFulfiltaskQueryAPIResponse struct { - model.CommonResponse - AlibabaServicecenterFulfiltaskQueryResponse -} - -// 核销单查询 成功返回结果 -type AlibabaServicecenterFulfiltaskQueryResponse struct { - XMLName xml.Name `xml:"alibaba_servicecenter_fulfiltask_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaServicecenterFulfiltaskQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/AlibabaServicecenterIdentifytaskCreateAPIRequest.go b/model/tmallservice/AlibabaServicecenterIdentifytaskCreateAPIRequest.go new file mode 100644 index 0000000000..872be7a170 --- /dev/null +++ b/model/tmallservice/AlibabaServicecenterIdentifytaskCreateAPIRequest.go @@ -0,0 +1,66 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建核销单 API请求 +alibaba.servicecenter.identifytask.create + +创建核销单 +*/ +type AlibabaServicecenterIdentifytaskCreateAPIRequest struct { + model.Params + // 工单集合 + _workcardIds []int64 + // 核销单外部标识,服务商保证唯一。如果创建核销单时传入重复的outer_id,系统直接会返回服务商下该outer_id对应的核销单,不会重新创建新核销单。 + _outerId string +} + +// 初始化AlibabaServicecenterIdentifytaskCreateAPIRequest对象 +func NewAlibabaServicecenterIdentifytaskCreateRequest() *AlibabaServicecenterIdentifytaskCreateAPIRequest{ + return &AlibabaServicecenterIdentifytaskCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaServicecenterIdentifytaskCreateAPIRequest) GetApiMethodName() string { + return "alibaba.servicecenter.identifytask.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaServicecenterIdentifytaskCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkcardIds Setter +// 工单集合 +func (r *AlibabaServicecenterIdentifytaskCreateAPIRequest) SetWorkcardIds(_workcardIds []int64) error { + r._workcardIds = _workcardIds + r.Set("workcard_ids", _workcardIds) + return nil +} + +// WorkcardIds Getter +func (r AlibabaServicecenterIdentifytaskCreateAPIRequest) GetWorkcardIds() []int64 { + return r._workcardIds +} +// OuterId Setter +// 核销单外部标识,服务商保证唯一。如果创建核销单时传入重复的outer_id,系统直接会返回服务商下该outer_id对应的核销单,不会重新创建新核销单。 +func (r *AlibabaServicecenterIdentifytaskCreateAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r AlibabaServicecenterIdentifytaskCreateAPIRequest) GetOuterId() string { + return r._outerId +} diff --git a/model/tmallservice/AlibabaServicecenterIdentifytaskCreateAPIResponse.go b/model/tmallservice/AlibabaServicecenterIdentifytaskCreateAPIResponse.go new file mode 100644 index 0000000000..eba74e1fcb --- /dev/null +++ b/model/tmallservice/AlibabaServicecenterIdentifytaskCreateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建核销单 API返回值 +alibaba.servicecenter.identifytask.create + +创建核销单 +*/ +type AlibabaServicecenterIdentifytaskCreateAPIResponse struct { + model.CommonResponse + AlibabaServicecenterIdentifytaskCreateAPIResponseModel +} + +// 创建核销单 成功返回结果 +type AlibabaServicecenterIdentifytaskCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_servicecenter_identifytask_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求结果 + Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/AlibabaServicecenterIdentifytaskCreateResponse.go b/model/tmallservice/AlibabaServicecenterIdentifytaskCreateResponse.go deleted file mode 100644 index a5dfaaa9c2..0000000000 --- a/model/tmallservice/AlibabaServicecenterIdentifytaskCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建核销单 API返回值 -alibaba.servicecenter.identifytask.create - -创建核销单 -*/ -type AlibabaServicecenterIdentifytaskCreateAPIResponse struct { - model.CommonResponse - AlibabaServicecenterIdentifytaskCreateResponse -} - -// 创建核销单 成功返回结果 -type AlibabaServicecenterIdentifytaskCreateResponse struct { - XMLName xml.Name `xml:"alibaba_servicecenter_identifytask_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求结果 - Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/AlibabaServicecenterSpserviceorderQueryAPIRequest.go b/model/tmallservice/AlibabaServicecenterSpserviceorderQueryAPIRequest.go new file mode 100644 index 0000000000..e1f1daf249 --- /dev/null +++ b/model/tmallservice/AlibabaServicecenterSpserviceorderQueryAPIRequest.go @@ -0,0 +1,136 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务供应链服务单查询 API请求 +alibaba.servicecenter.spserviceorder.query + +服务供应链服务单查询,服务商通过此接口拉取用户的购买的服务信息,以此为依据为用户提供安装维修等服务 +*/ +type AlibabaServicecenterSpserviceorderQueryAPIRequest struct { + model.Params + // 状态码,可传多个 + _statusCodes string + // 查询第几页,默认1 + _currentPage int64 + // 每页大小,默认50,最大50 + _pageSize int64 + // 服务单修改时间(时间段15分钟以内)(包含时分秒) + _gmtModifiedEnd string + // 服务单修改时间(包含时分秒) + _gmtModifiedStart string + // 实物主订单id(消费者在淘宝订单里看到的订单号) + _masterParentBizOrderId int64 + // 服务单id + _spServiceOrderId int64 +} + +// 初始化AlibabaServicecenterSpserviceorderQueryAPIRequest对象 +func NewAlibabaServicecenterSpserviceorderQueryRequest() *AlibabaServicecenterSpserviceorderQueryAPIRequest{ + return &AlibabaServicecenterSpserviceorderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaServicecenterSpserviceorderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.servicecenter.spserviceorder.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaServicecenterSpserviceorderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StatusCodes Setter +// 状态码,可传多个 +func (r *AlibabaServicecenterSpserviceorderQueryAPIRequest) SetStatusCodes(_statusCodes string) error { + r._statusCodes = _statusCodes + r.Set("status_codes", _statusCodes) + return nil +} + +// StatusCodes Getter +func (r AlibabaServicecenterSpserviceorderQueryAPIRequest) GetStatusCodes() string { + return r._statusCodes +} +// CurrentPage Setter +// 查询第几页,默认1 +func (r *AlibabaServicecenterSpserviceorderQueryAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AlibabaServicecenterSpserviceorderQueryAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// PageSize Setter +// 每页大小,默认50,最大50 +func (r *AlibabaServicecenterSpserviceorderQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaServicecenterSpserviceorderQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// GmtModifiedEnd Setter +// 服务单修改时间(时间段15分钟以内)(包含时分秒) +func (r *AlibabaServicecenterSpserviceorderQueryAPIRequest) SetGmtModifiedEnd(_gmtModifiedEnd string) error { + r._gmtModifiedEnd = _gmtModifiedEnd + r.Set("gmt_modified_end", _gmtModifiedEnd) + return nil +} + +// GmtModifiedEnd Getter +func (r AlibabaServicecenterSpserviceorderQueryAPIRequest) GetGmtModifiedEnd() string { + return r._gmtModifiedEnd +} +// GmtModifiedStart Setter +// 服务单修改时间(包含时分秒) +func (r *AlibabaServicecenterSpserviceorderQueryAPIRequest) SetGmtModifiedStart(_gmtModifiedStart string) error { + r._gmtModifiedStart = _gmtModifiedStart + r.Set("gmt_modified_start", _gmtModifiedStart) + return nil +} + +// GmtModifiedStart Getter +func (r AlibabaServicecenterSpserviceorderQueryAPIRequest) GetGmtModifiedStart() string { + return r._gmtModifiedStart +} +// MasterParentBizOrderId Setter +// 实物主订单id(消费者在淘宝订单里看到的订单号) +func (r *AlibabaServicecenterSpserviceorderQueryAPIRequest) SetMasterParentBizOrderId(_masterParentBizOrderId int64) error { + r._masterParentBizOrderId = _masterParentBizOrderId + r.Set("master_parent_biz_order_id", _masterParentBizOrderId) + return nil +} + +// MasterParentBizOrderId Getter +func (r AlibabaServicecenterSpserviceorderQueryAPIRequest) GetMasterParentBizOrderId() int64 { + return r._masterParentBizOrderId +} +// SpServiceOrderId Setter +// 服务单id +func (r *AlibabaServicecenterSpserviceorderQueryAPIRequest) SetSpServiceOrderId(_spServiceOrderId int64) error { + r._spServiceOrderId = _spServiceOrderId + r.Set("sp_service_order_id", _spServiceOrderId) + return nil +} + +// SpServiceOrderId Getter +func (r AlibabaServicecenterSpserviceorderQueryAPIRequest) GetSpServiceOrderId() int64 { + return r._spServiceOrderId +} diff --git a/model/tmallservice/AlibabaServicecenterSpserviceorderQueryAPIResponse.go b/model/tmallservice/AlibabaServicecenterSpserviceorderQueryAPIResponse.go new file mode 100644 index 0000000000..24513ba68e --- /dev/null +++ b/model/tmallservice/AlibabaServicecenterSpserviceorderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务供应链服务单查询 API返回值 +alibaba.servicecenter.spserviceorder.query + +服务供应链服务单查询,服务商通过此接口拉取用户的购买的服务信息,以此为依据为用户提供安装维修等服务 +*/ +type AlibabaServicecenterSpserviceorderQueryAPIResponse struct { + model.CommonResponse + AlibabaServicecenterSpserviceorderQueryAPIResponseModel +} + +// 服务供应链服务单查询 成功返回结果 +type AlibabaServicecenterSpserviceorderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_servicecenter_spserviceorder_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求结果 + Result *AlibabaServicecenterSpserviceorderQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/AlibabaServicecenterSpserviceorderQueryResponse.go b/model/tmallservice/AlibabaServicecenterSpserviceorderQueryResponse.go deleted file mode 100644 index b3d0de5d53..0000000000 --- a/model/tmallservice/AlibabaServicecenterSpserviceorderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务供应链服务单查询 API返回值 -alibaba.servicecenter.spserviceorder.query - -服务供应链服务单查询,服务商通过此接口拉取用户的购买的服务信息,以此为依据为用户提供安装维修等服务 -*/ -type AlibabaServicecenterSpserviceorderQueryAPIResponse struct { - model.CommonResponse - AlibabaServicecenterSpserviceorderQueryResponse -} - -// 服务供应链服务单查询 成功返回结果 -type AlibabaServicecenterSpserviceorderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_servicecenter_spserviceorder_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求结果 - Result *AlibabaServicecenterSpserviceorderQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/AlibabaServicecenterSpserviceorderUpdateAPIRequest.go b/model/tmallservice/AlibabaServicecenterSpserviceorderUpdateAPIRequest.go new file mode 100644 index 0000000000..ab5afe626a --- /dev/null +++ b/model/tmallservice/AlibabaServicecenterSpserviceorderUpdateAPIRequest.go @@ -0,0 +1,122 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务供应链服务单更新 API请求 +alibaba.servicecenter.spserviceorder.update + +服务供应链服务单更新,服务商通过此接口将商品的sn等信息推送到服务单中 +*/ +type AlibabaServicecenterSpserviceorderUpdateAPIRequest struct { + model.Params + // 服务单id + _spServiceOrderId int64 + // 新设备sn.当action填写addSn、changeSn时必填 + _action string + // 新设备sn.当action填写addSn、changeSn时必填 + _newSn string + // 旧设备sn,当action填写changeSn时必填 + _oldSn string + // 服务有效期开始时间 + _gmtEffect string + // 服务过期时间 + _gmtExpire string +} + +// 初始化AlibabaServicecenterSpserviceorderUpdateAPIRequest对象 +func NewAlibabaServicecenterSpserviceorderUpdateRequest() *AlibabaServicecenterSpserviceorderUpdateAPIRequest{ + return &AlibabaServicecenterSpserviceorderUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaServicecenterSpserviceorderUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.servicecenter.spserviceorder.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaServicecenterSpserviceorderUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SpServiceOrderId Setter +// 服务单id +func (r *AlibabaServicecenterSpserviceorderUpdateAPIRequest) SetSpServiceOrderId(_spServiceOrderId int64) error { + r._spServiceOrderId = _spServiceOrderId + r.Set("sp_service_order_id", _spServiceOrderId) + return nil +} + +// SpServiceOrderId Getter +func (r AlibabaServicecenterSpserviceorderUpdateAPIRequest) GetSpServiceOrderId() int64 { + return r._spServiceOrderId +} +// Action Setter +// 新设备sn.当action填写addSn、changeSn时必填 +func (r *AlibabaServicecenterSpserviceorderUpdateAPIRequest) SetAction(_action string) error { + r._action = _action + r.Set("action", _action) + return nil +} + +// Action Getter +func (r AlibabaServicecenterSpserviceorderUpdateAPIRequest) GetAction() string { + return r._action +} +// NewSn Setter +// 新设备sn.当action填写addSn、changeSn时必填 +func (r *AlibabaServicecenterSpserviceorderUpdateAPIRequest) SetNewSn(_newSn string) error { + r._newSn = _newSn + r.Set("new_sn", _newSn) + return nil +} + +// NewSn Getter +func (r AlibabaServicecenterSpserviceorderUpdateAPIRequest) GetNewSn() string { + return r._newSn +} +// OldSn Setter +// 旧设备sn,当action填写changeSn时必填 +func (r *AlibabaServicecenterSpserviceorderUpdateAPIRequest) SetOldSn(_oldSn string) error { + r._oldSn = _oldSn + r.Set("old_sn", _oldSn) + return nil +} + +// OldSn Getter +func (r AlibabaServicecenterSpserviceorderUpdateAPIRequest) GetOldSn() string { + return r._oldSn +} +// GmtEffect Setter +// 服务有效期开始时间 +func (r *AlibabaServicecenterSpserviceorderUpdateAPIRequest) SetGmtEffect(_gmtEffect string) error { + r._gmtEffect = _gmtEffect + r.Set("gmt_effect", _gmtEffect) + return nil +} + +// GmtEffect Getter +func (r AlibabaServicecenterSpserviceorderUpdateAPIRequest) GetGmtEffect() string { + return r._gmtEffect +} +// GmtExpire Setter +// 服务过期时间 +func (r *AlibabaServicecenterSpserviceorderUpdateAPIRequest) SetGmtExpire(_gmtExpire string) error { + r._gmtExpire = _gmtExpire + r.Set("gmt_expire", _gmtExpire) + return nil +} + +// GmtExpire Getter +func (r AlibabaServicecenterSpserviceorderUpdateAPIRequest) GetGmtExpire() string { + return r._gmtExpire +} diff --git a/model/tmallservice/AlibabaServicecenterSpserviceorderUpdateAPIResponse.go b/model/tmallservice/AlibabaServicecenterSpserviceorderUpdateAPIResponse.go new file mode 100644 index 0000000000..6e3db3b8e5 --- /dev/null +++ b/model/tmallservice/AlibabaServicecenterSpserviceorderUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务供应链服务单更新 API返回值 +alibaba.servicecenter.spserviceorder.update + +服务供应链服务单更新,服务商通过此接口将商品的sn等信息推送到服务单中 +*/ +type AlibabaServicecenterSpserviceorderUpdateAPIResponse struct { + model.CommonResponse + AlibabaServicecenterSpserviceorderUpdateAPIResponseModel +} + +// 服务供应链服务单更新 成功返回结果 +type AlibabaServicecenterSpserviceorderUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_servicecenter_spserviceorder_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaServicecenterSpserviceorderUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/AlibabaServicecenterSpserviceorderUpdateResponse.go b/model/tmallservice/AlibabaServicecenterSpserviceorderUpdateResponse.go deleted file mode 100644 index f8ed3969fb..0000000000 --- a/model/tmallservice/AlibabaServicecenterSpserviceorderUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务供应链服务单更新 API返回值 -alibaba.servicecenter.spserviceorder.update - -服务供应链服务单更新,服务商通过此接口将商品的sn等信息推送到服务单中 -*/ -type AlibabaServicecenterSpserviceorderUpdateAPIResponse struct { - model.CommonResponse - AlibabaServicecenterSpserviceorderUpdateResponse -} - -// 服务供应链服务单更新 成功返回结果 -type AlibabaServicecenterSpserviceorderUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_servicecenter_spserviceorder_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaServicecenterSpserviceorderUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/AlibabaServicecenterWorkcardCancelAPIRequest.go b/model/tmallservice/AlibabaServicecenterWorkcardCancelAPIRequest.go new file mode 100644 index 0000000000..9d020bc1be --- /dev/null +++ b/model/tmallservice/AlibabaServicecenterWorkcardCancelAPIRequest.go @@ -0,0 +1,94 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务平台工单取消接口 API请求 +alibaba.servicecenter.workcard.cancel + +取消服务工单 +*/ +type AlibabaServicecenterWorkcardCancelAPIRequest struct { + model.Params + // 工单id + _workcardId int64 + // 取消备注 + _memo string + // 服务单id + _serviceOrderId int64 + // 真实服务商昵称 + _realTpNick string +} + +// 初始化AlibabaServicecenterWorkcardCancelAPIRequest对象 +func NewAlibabaServicecenterWorkcardCancelRequest() *AlibabaServicecenterWorkcardCancelAPIRequest{ + return &AlibabaServicecenterWorkcardCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaServicecenterWorkcardCancelAPIRequest) GetApiMethodName() string { + return "alibaba.servicecenter.workcard.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaServicecenterWorkcardCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkcardId Setter +// 工单id +func (r *AlibabaServicecenterWorkcardCancelAPIRequest) SetWorkcardId(_workcardId int64) error { + r._workcardId = _workcardId + r.Set("workcard_id", _workcardId) + return nil +} + +// WorkcardId Getter +func (r AlibabaServicecenterWorkcardCancelAPIRequest) GetWorkcardId() int64 { + return r._workcardId +} +// Memo Setter +// 取消备注 +func (r *AlibabaServicecenterWorkcardCancelAPIRequest) SetMemo(_memo string) error { + r._memo = _memo + r.Set("memo", _memo) + return nil +} + +// Memo Getter +func (r AlibabaServicecenterWorkcardCancelAPIRequest) GetMemo() string { + return r._memo +} +// ServiceOrderId Setter +// 服务单id +func (r *AlibabaServicecenterWorkcardCancelAPIRequest) SetServiceOrderId(_serviceOrderId int64) error { + r._serviceOrderId = _serviceOrderId + r.Set("service_order_id", _serviceOrderId) + return nil +} + +// ServiceOrderId Getter +func (r AlibabaServicecenterWorkcardCancelAPIRequest) GetServiceOrderId() int64 { + return r._serviceOrderId +} +// RealTpNick Setter +// 真实服务商昵称 +func (r *AlibabaServicecenterWorkcardCancelAPIRequest) SetRealTpNick(_realTpNick string) error { + r._realTpNick = _realTpNick + r.Set("real_tp_nick", _realTpNick) + return nil +} + +// RealTpNick Getter +func (r AlibabaServicecenterWorkcardCancelAPIRequest) GetRealTpNick() string { + return r._realTpNick +} diff --git a/model/tmallservice/AlibabaServicecenterWorkcardCancelAPIResponse.go b/model/tmallservice/AlibabaServicecenterWorkcardCancelAPIResponse.go new file mode 100644 index 0000000000..0074b88477 --- /dev/null +++ b/model/tmallservice/AlibabaServicecenterWorkcardCancelAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务平台工单取消接口 API返回值 +alibaba.servicecenter.workcard.cancel + +取消服务工单 +*/ +type AlibabaServicecenterWorkcardCancelAPIResponse struct { + model.CommonResponse + AlibabaServicecenterWorkcardCancelAPIResponseModel +} + +// 服务平台工单取消接口 成功返回结果 +type AlibabaServicecenterWorkcardCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_servicecenter_workcard_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回参数 + Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/AlibabaServicecenterWorkcardCancelResponse.go b/model/tmallservice/AlibabaServicecenterWorkcardCancelResponse.go deleted file mode 100644 index 59e0c533d2..0000000000 --- a/model/tmallservice/AlibabaServicecenterWorkcardCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务平台工单取消接口 API返回值 -alibaba.servicecenter.workcard.cancel - -取消服务工单 -*/ -type AlibabaServicecenterWorkcardCancelAPIResponse struct { - model.CommonResponse - AlibabaServicecenterWorkcardCancelResponse -} - -// 服务平台工单取消接口 成功返回结果 -type AlibabaServicecenterWorkcardCancelResponse struct { - XMLName xml.Name `xml:"alibaba_servicecenter_workcard_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回参数 - Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/AlibabaServicecenterWorkcardCreateAPIRequest.go b/model/tmallservice/AlibabaServicecenterWorkcardCreateAPIRequest.go new file mode 100644 index 0000000000..3e0ed9f5bf --- /dev/null +++ b/model/tmallservice/AlibabaServicecenterWorkcardCreateAPIRequest.go @@ -0,0 +1,122 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务平台工单创建接口 API请求 +alibaba.servicecenter.workcard.create + +创建服务平台工单 +*/ +type AlibabaServicecenterWorkcardCreateAPIRequest struct { + model.Params + // 服务单id + _spServiceOrderId int64 + // 申请工单时的序号,对应服务单上的serviceSequence。用于控制幂等,防重复提交 + _serviceSequence int64 + // 申请次数 + _serviceCount int64 + // 工单属性,json格式字符串 + _attributes string + // 工单外部唯一键单号 + _outerId string + // 服务提供者信息 + _serviceProvider *ServiceProviderDto +} + +// 初始化AlibabaServicecenterWorkcardCreateAPIRequest对象 +func NewAlibabaServicecenterWorkcardCreateRequest() *AlibabaServicecenterWorkcardCreateAPIRequest{ + return &AlibabaServicecenterWorkcardCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaServicecenterWorkcardCreateAPIRequest) GetApiMethodName() string { + return "alibaba.servicecenter.workcard.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaServicecenterWorkcardCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SpServiceOrderId Setter +// 服务单id +func (r *AlibabaServicecenterWorkcardCreateAPIRequest) SetSpServiceOrderId(_spServiceOrderId int64) error { + r._spServiceOrderId = _spServiceOrderId + r.Set("sp_service_order_id", _spServiceOrderId) + return nil +} + +// SpServiceOrderId Getter +func (r AlibabaServicecenterWorkcardCreateAPIRequest) GetSpServiceOrderId() int64 { + return r._spServiceOrderId +} +// ServiceSequence Setter +// 申请工单时的序号,对应服务单上的serviceSequence。用于控制幂等,防重复提交 +func (r *AlibabaServicecenterWorkcardCreateAPIRequest) SetServiceSequence(_serviceSequence int64) error { + r._serviceSequence = _serviceSequence + r.Set("service_sequence", _serviceSequence) + return nil +} + +// ServiceSequence Getter +func (r AlibabaServicecenterWorkcardCreateAPIRequest) GetServiceSequence() int64 { + return r._serviceSequence +} +// ServiceCount Setter +// 申请次数 +func (r *AlibabaServicecenterWorkcardCreateAPIRequest) SetServiceCount(_serviceCount int64) error { + r._serviceCount = _serviceCount + r.Set("service_count", _serviceCount) + return nil +} + +// ServiceCount Getter +func (r AlibabaServicecenterWorkcardCreateAPIRequest) GetServiceCount() int64 { + return r._serviceCount +} +// Attributes Setter +// 工单属性,json格式字符串 +func (r *AlibabaServicecenterWorkcardCreateAPIRequest) SetAttributes(_attributes string) error { + r._attributes = _attributes + r.Set("attributes", _attributes) + return nil +} + +// Attributes Getter +func (r AlibabaServicecenterWorkcardCreateAPIRequest) GetAttributes() string { + return r._attributes +} +// OuterId Setter +// 工单外部唯一键单号 +func (r *AlibabaServicecenterWorkcardCreateAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r AlibabaServicecenterWorkcardCreateAPIRequest) GetOuterId() string { + return r._outerId +} +// ServiceProvider Setter +// 服务提供者信息 +func (r *AlibabaServicecenterWorkcardCreateAPIRequest) SetServiceProvider(_serviceProvider *ServiceProviderDto) error { + r._serviceProvider = _serviceProvider + r.Set("service_provider", _serviceProvider) + return nil +} + +// ServiceProvider Getter +func (r AlibabaServicecenterWorkcardCreateAPIRequest) GetServiceProvider() *ServiceProviderDto { + return r._serviceProvider +} diff --git a/model/tmallservice/AlibabaServicecenterWorkcardCreateAPIResponse.go b/model/tmallservice/AlibabaServicecenterWorkcardCreateAPIResponse.go new file mode 100644 index 0000000000..8874afaafb --- /dev/null +++ b/model/tmallservice/AlibabaServicecenterWorkcardCreateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务平台工单创建接口 API返回值 +alibaba.servicecenter.workcard.create + +创建服务平台工单 +*/ +type AlibabaServicecenterWorkcardCreateAPIResponse struct { + model.CommonResponse + AlibabaServicecenterWorkcardCreateAPIResponseModel +} + +// 服务平台工单创建接口 成功返回结果 +type AlibabaServicecenterWorkcardCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_servicecenter_workcard_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回参数 + Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/AlibabaServicecenterWorkcardCreateResponse.go b/model/tmallservice/AlibabaServicecenterWorkcardCreateResponse.go deleted file mode 100644 index 5f7d9ad9cf..0000000000 --- a/model/tmallservice/AlibabaServicecenterWorkcardCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务平台工单创建接口 API返回值 -alibaba.servicecenter.workcard.create - -创建服务平台工单 -*/ -type AlibabaServicecenterWorkcardCreateAPIResponse struct { - model.CommonResponse - AlibabaServicecenterWorkcardCreateResponse -} - -// 服务平台工单创建接口 成功返回结果 -type AlibabaServicecenterWorkcardCreateResponse struct { - XMLName xml.Name `xml:"alibaba_servicecenter_workcard_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回参数 - Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/AlibabaSscServicecenterServicestoreQueryAPIRequest.go b/model/tmallservice/AlibabaSscServicecenterServicestoreQueryAPIRequest.go new file mode 100644 index 0000000000..98bced2f5a --- /dev/null +++ b/model/tmallservice/AlibabaSscServicecenterServicestoreQueryAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据天猫id查询门店信息 API请求 +alibaba.ssc.servicecenter.servicestore.query + +根据天猫id查询门店信息 +*/ +type AlibabaSscServicecenterServicestoreQueryAPIRequest struct { + model.Params + // 天猫id + _id int64 +} + +// 初始化AlibabaSscServicecenterServicestoreQueryAPIRequest对象 +func NewAlibabaSscServicecenterServicestoreQueryRequest() *AlibabaSscServicecenterServicestoreQueryAPIRequest{ + return &AlibabaSscServicecenterServicestoreQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSscServicecenterServicestoreQueryAPIRequest) GetApiMethodName() string { + return "alibaba.ssc.servicecenter.servicestore.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSscServicecenterServicestoreQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 天猫id +func (r *AlibabaSscServicecenterServicestoreQueryAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaSscServicecenterServicestoreQueryAPIRequest) GetId() int64 { + return r._id +} diff --git a/model/tmallservice/AlibabaSscServicecenterServicestoreQueryAPIResponse.go b/model/tmallservice/AlibabaSscServicecenterServicestoreQueryAPIResponse.go new file mode 100644 index 0000000000..19970f05fe --- /dev/null +++ b/model/tmallservice/AlibabaSscServicecenterServicestoreQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据天猫id查询门店信息 API返回值 +alibaba.ssc.servicecenter.servicestore.query + +根据天猫id查询门店信息 +*/ +type AlibabaSscServicecenterServicestoreQueryAPIResponse struct { + model.CommonResponse + AlibabaSscServicecenterServicestoreQueryAPIResponseModel +} + +// 根据天猫id查询门店信息 成功返回结果 +type AlibabaSscServicecenterServicestoreQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ssc_servicecenter_servicestore_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaSscServicecenterServicestoreQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/AlibabaSscServicecenterServicestoreQueryResponse.go b/model/tmallservice/AlibabaSscServicecenterServicestoreQueryResponse.go deleted file mode 100644 index a14bb20752..0000000000 --- a/model/tmallservice/AlibabaSscServicecenterServicestoreQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据天猫id查询门店信息 API返回值 -alibaba.ssc.servicecenter.servicestore.query - -根据天猫id查询门店信息 -*/ -type AlibabaSscServicecenterServicestoreQueryAPIResponse struct { - model.CommonResponse - AlibabaSscServicecenterServicestoreQueryResponse -} - -// 根据天猫id查询门店信息 成功返回结果 -type AlibabaSscServicecenterServicestoreQueryResponse struct { - XMLName xml.Name `xml:"alibaba_ssc_servicecenter_servicestore_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaSscServicecenterServicestoreQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServiceInventoryEditAPIRequest.go b/model/tmallservice/AlibabaSscSupplyplatformServiceInventoryEditAPIRequest.go new file mode 100644 index 0000000000..e233a3cf5f --- /dev/null +++ b/model/tmallservice/AlibabaSscSupplyplatformServiceInventoryEditAPIRequest.go @@ -0,0 +1,97 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +编辑服务库存 API请求 +alibaba.ssc.supplyplatform.service.inventory.edit + +实时编辑服务库存。只支持增加或减少库存,不支持设置绝对库存值。 +需要自己处理好幂等逻辑。 +要先查询当前库存值,并基于返回结果做编辑操作。 +参考alibaba.ssc.supplyplatform.service.inventory.query和alibaba.ssc.supplyplatform.servicecapacity.save +*/ +type AlibabaSscSupplyplatformServiceInventoryEditAPIRequest struct { + model.Params + // 服务提供者类型。参考alibaba.ssc.supplyplatform.servicecapacity.save入参 + _providerType string + // 服务提供者id。参考alibaba.ssc.supplyplatform.servicecapacity.save入参 + _providerId int64 + // 业务幂等键。该字段主要用于远程调用失败后的重试的场景,例如接口超时,调用方感知到失败,但服务端可能实际上已经成功了,这时如果发起一次重试请求,服务端需要通过bizId来识别是同一个请求,这样才不会重复增加库存值。对于同一个bizId,多次请求只会生效一次,后续的重复请求不会生效。对于批量操作时,如果部分key成功,部分key失败,重试请求时只会对未成功的key生效。 + _bizId string + // 库存编辑列表。每次不超过100条 + _editDetails []EditDetailInventoryRequest +} + +// 初始化AlibabaSscSupplyplatformServiceInventoryEditAPIRequest对象 +func NewAlibabaSscSupplyplatformServiceInventoryEditRequest() *AlibabaSscSupplyplatformServiceInventoryEditAPIRequest{ + return &AlibabaSscSupplyplatformServiceInventoryEditAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSscSupplyplatformServiceInventoryEditAPIRequest) GetApiMethodName() string { + return "alibaba.ssc.supplyplatform.service.inventory.edit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSscSupplyplatformServiceInventoryEditAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProviderType Setter +// 服务提供者类型。参考alibaba.ssc.supplyplatform.servicecapacity.save入参 +func (r *AlibabaSscSupplyplatformServiceInventoryEditAPIRequest) SetProviderType(_providerType string) error { + r._providerType = _providerType + r.Set("provider_type", _providerType) + return nil +} + +// ProviderType Getter +func (r AlibabaSscSupplyplatformServiceInventoryEditAPIRequest) GetProviderType() string { + return r._providerType +} +// ProviderId Setter +// 服务提供者id。参考alibaba.ssc.supplyplatform.servicecapacity.save入参 +func (r *AlibabaSscSupplyplatformServiceInventoryEditAPIRequest) SetProviderId(_providerId int64) error { + r._providerId = _providerId + r.Set("provider_id", _providerId) + return nil +} + +// ProviderId Getter +func (r AlibabaSscSupplyplatformServiceInventoryEditAPIRequest) GetProviderId() int64 { + return r._providerId +} +// BizId Setter +// 业务幂等键。该字段主要用于远程调用失败后的重试的场景,例如接口超时,调用方感知到失败,但服务端可能实际上已经成功了,这时如果发起一次重试请求,服务端需要通过bizId来识别是同一个请求,这样才不会重复增加库存值。对于同一个bizId,多次请求只会生效一次,后续的重复请求不会生效。对于批量操作时,如果部分key成功,部分key失败,重试请求时只会对未成功的key生效。 +func (r *AlibabaSscSupplyplatformServiceInventoryEditAPIRequest) SetBizId(_bizId string) error { + r._bizId = _bizId + r.Set("biz_id", _bizId) + return nil +} + +// BizId Getter +func (r AlibabaSscSupplyplatformServiceInventoryEditAPIRequest) GetBizId() string { + return r._bizId +} +// EditDetails Setter +// 库存编辑列表。每次不超过100条 +func (r *AlibabaSscSupplyplatformServiceInventoryEditAPIRequest) SetEditDetails(_editDetails []EditDetailInventoryRequest) error { + r._editDetails = _editDetails + r.Set("edit_details", _editDetails) + return nil +} + +// EditDetails Getter +func (r AlibabaSscSupplyplatformServiceInventoryEditAPIRequest) GetEditDetails() []EditDetailInventoryRequest { + return r._editDetails +} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServiceInventoryEditAPIResponse.go b/model/tmallservice/AlibabaSscSupplyplatformServiceInventoryEditAPIResponse.go new file mode 100644 index 0000000000..1d3f091a19 --- /dev/null +++ b/model/tmallservice/AlibabaSscSupplyplatformServiceInventoryEditAPIResponse.go @@ -0,0 +1,30 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +编辑服务库存 API返回值 +alibaba.ssc.supplyplatform.service.inventory.edit + +实时编辑服务库存。只支持增加或减少库存,不支持设置绝对库存值。 +需要自己处理好幂等逻辑。 +要先查询当前库存值,并基于返回结果做编辑操作。 +参考alibaba.ssc.supplyplatform.service.inventory.query和alibaba.ssc.supplyplatform.servicecapacity.save +*/ +type AlibabaSscSupplyplatformServiceInventoryEditAPIResponse struct { + model.CommonResponse + AlibabaSscSupplyplatformServiceInventoryEditAPIResponseModel +} + +// 编辑服务库存 成功返回结果 +type AlibabaSscSupplyplatformServiceInventoryEditAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ssc_supplyplatform_service_inventory_edit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaSscSupplyplatformServiceInventoryEditResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServiceInventoryEditResponse.go b/model/tmallservice/AlibabaSscSupplyplatformServiceInventoryEditResponse.go deleted file mode 100644 index c7c2d8c827..0000000000 --- a/model/tmallservice/AlibabaSscSupplyplatformServiceInventoryEditResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -编辑服务库存 API返回值 -alibaba.ssc.supplyplatform.service.inventory.edit - -实时编辑服务库存。只支持增加或减少库存,不支持设置绝对库存值。 -需要自己处理好幂等逻辑。 -要先查询当前库存值,并基于返回结果做编辑操作。 -参考alibaba.ssc.supplyplatform.service.inventory.query和alibaba.ssc.supplyplatform.servicecapacity.save -*/ -type AlibabaSscSupplyplatformServiceInventoryEditAPIResponse struct { - model.CommonResponse - AlibabaSscSupplyplatformServiceInventoryEditResponse -} - -// 编辑服务库存 成功返回结果 -type AlibabaSscSupplyplatformServiceInventoryEditResponse struct { - XMLName xml.Name `xml:"alibaba_ssc_supplyplatform_service_inventory_edit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaSscSupplyplatformServiceInventoryEditResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServiceInventoryQueryAPIRequest.go b/model/tmallservice/AlibabaSscSupplyplatformServiceInventoryQueryAPIRequest.go new file mode 100644 index 0000000000..7c1fda715b --- /dev/null +++ b/model/tmallservice/AlibabaSscSupplyplatformServiceInventoryQueryAPIRequest.go @@ -0,0 +1,94 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务库存查询 API请求 +alibaba.ssc.supplyplatform.service.inventory.query + +查询服务库存。需要保存服务容量成功后,才能进行查询,参数中的provider信息(provider_id和provider_type)与alibaba.ssc.supplyplatform.servicecapacity.save接口中保持一致。 +*/ +type AlibabaSscSupplyplatformServiceInventoryQueryAPIRequest struct { + model.Params + // 查询开始日期。yyyy-MM-dd格式 + _startDay string + // 查询结束日期。与start间隔不能超过31天。yyyy-MM-dd格式 + _endDay string + // 服务提供者类型。参考alibaba.ssc.supplyplatform.servicecapacity.save入参 + _providerType string + // 服务提供者类型。参考alibaba.ssc.supplyplatform.servicecapacity.save入参 + _providerId int64 +} + +// 初始化AlibabaSscSupplyplatformServiceInventoryQueryAPIRequest对象 +func NewAlibabaSscSupplyplatformServiceInventoryQueryRequest() *AlibabaSscSupplyplatformServiceInventoryQueryAPIRequest{ + return &AlibabaSscSupplyplatformServiceInventoryQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSscSupplyplatformServiceInventoryQueryAPIRequest) GetApiMethodName() string { + return "alibaba.ssc.supplyplatform.service.inventory.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSscSupplyplatformServiceInventoryQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartDay Setter +// 查询开始日期。yyyy-MM-dd格式 +func (r *AlibabaSscSupplyplatformServiceInventoryQueryAPIRequest) SetStartDay(_startDay string) error { + r._startDay = _startDay + r.Set("start_day", _startDay) + return nil +} + +// StartDay Getter +func (r AlibabaSscSupplyplatformServiceInventoryQueryAPIRequest) GetStartDay() string { + return r._startDay +} +// EndDay Setter +// 查询结束日期。与start间隔不能超过31天。yyyy-MM-dd格式 +func (r *AlibabaSscSupplyplatformServiceInventoryQueryAPIRequest) SetEndDay(_endDay string) error { + r._endDay = _endDay + r.Set("end_day", _endDay) + return nil +} + +// EndDay Getter +func (r AlibabaSscSupplyplatformServiceInventoryQueryAPIRequest) GetEndDay() string { + return r._endDay +} +// ProviderType Setter +// 服务提供者类型。参考alibaba.ssc.supplyplatform.servicecapacity.save入参 +func (r *AlibabaSscSupplyplatformServiceInventoryQueryAPIRequest) SetProviderType(_providerType string) error { + r._providerType = _providerType + r.Set("provider_type", _providerType) + return nil +} + +// ProviderType Getter +func (r AlibabaSscSupplyplatformServiceInventoryQueryAPIRequest) GetProviderType() string { + return r._providerType +} +// ProviderId Setter +// 服务提供者类型。参考alibaba.ssc.supplyplatform.servicecapacity.save入参 +func (r *AlibabaSscSupplyplatformServiceInventoryQueryAPIRequest) SetProviderId(_providerId int64) error { + r._providerId = _providerId + r.Set("provider_id", _providerId) + return nil +} + +// ProviderId Getter +func (r AlibabaSscSupplyplatformServiceInventoryQueryAPIRequest) GetProviderId() int64 { + return r._providerId +} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServiceInventoryQueryAPIResponse.go b/model/tmallservice/AlibabaSscSupplyplatformServiceInventoryQueryAPIResponse.go new file mode 100644 index 0000000000..e89d27991c --- /dev/null +++ b/model/tmallservice/AlibabaSscSupplyplatformServiceInventoryQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务库存查询 API返回值 +alibaba.ssc.supplyplatform.service.inventory.query + +查询服务库存。需要保存服务容量成功后,才能进行查询,参数中的provider信息(provider_id和provider_type)与alibaba.ssc.supplyplatform.servicecapacity.save接口中保持一致。 +*/ +type AlibabaSscSupplyplatformServiceInventoryQueryAPIResponse struct { + model.CommonResponse + AlibabaSscSupplyplatformServiceInventoryQueryAPIResponseModel +} + +// 服务库存查询 成功返回结果 +type AlibabaSscSupplyplatformServiceInventoryQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ssc_supplyplatform_service_inventory_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaSscSupplyplatformServiceInventoryQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServiceInventoryQueryResponse.go b/model/tmallservice/AlibabaSscSupplyplatformServiceInventoryQueryResponse.go deleted file mode 100644 index 9c39ed3a21..0000000000 --- a/model/tmallservice/AlibabaSscSupplyplatformServiceInventoryQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务库存查询 API返回值 -alibaba.ssc.supplyplatform.service.inventory.query - -查询服务库存。需要保存服务容量成功后,才能进行查询,参数中的provider信息(provider_id和provider_type)与alibaba.ssc.supplyplatform.servicecapacity.save接口中保持一致。 -*/ -type AlibabaSscSupplyplatformServiceInventoryQueryAPIResponse struct { - model.CommonResponse - AlibabaSscSupplyplatformServiceInventoryQueryResponse -} - -// 服务库存查询 成功返回结果 -type AlibabaSscSupplyplatformServiceInventoryQueryResponse struct { - XMLName xml.Name `xml:"alibaba_ssc_supplyplatform_service_inventory_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaSscSupplyplatformServiceInventoryQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServiceabilityDeleteAPIRequest.go b/model/tmallservice/AlibabaSscSupplyplatformServiceabilityDeleteAPIRequest.go new file mode 100644 index 0000000000..4091879306 --- /dev/null +++ b/model/tmallservice/AlibabaSscSupplyplatformServiceabilityDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除服务能力 API请求 +alibaba.ssc.supplyplatform.serviceability.delete + +删除服务能力 +*/ +type AlibabaSscSupplyplatformServiceabilityDeleteAPIRequest struct { + model.Params + // 服务提供者类型。service_store 网点;worker 工人;supplier 服务商 + _providerType string + // 服务提供者id。根据服务提供者类型填写相应的id,例如类型是网点,则填我们系统的网点id + _providerId int64 +} + +// 初始化AlibabaSscSupplyplatformServiceabilityDeleteAPIRequest对象 +func NewAlibabaSscSupplyplatformServiceabilityDeleteRequest() *AlibabaSscSupplyplatformServiceabilityDeleteAPIRequest{ + return &AlibabaSscSupplyplatformServiceabilityDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSscSupplyplatformServiceabilityDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.ssc.supplyplatform.serviceability.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSscSupplyplatformServiceabilityDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProviderType Setter +// 服务提供者类型。service_store 网点;worker 工人;supplier 服务商 +func (r *AlibabaSscSupplyplatformServiceabilityDeleteAPIRequest) SetProviderType(_providerType string) error { + r._providerType = _providerType + r.Set("provider_type", _providerType) + return nil +} + +// ProviderType Getter +func (r AlibabaSscSupplyplatformServiceabilityDeleteAPIRequest) GetProviderType() string { + return r._providerType +} +// ProviderId Setter +// 服务提供者id。根据服务提供者类型填写相应的id,例如类型是网点,则填我们系统的网点id +func (r *AlibabaSscSupplyplatformServiceabilityDeleteAPIRequest) SetProviderId(_providerId int64) error { + r._providerId = _providerId + r.Set("provider_id", _providerId) + return nil +} + +// ProviderId Getter +func (r AlibabaSscSupplyplatformServiceabilityDeleteAPIRequest) GetProviderId() int64 { + return r._providerId +} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServiceabilityDeleteAPIResponse.go b/model/tmallservice/AlibabaSscSupplyplatformServiceabilityDeleteAPIResponse.go new file mode 100644 index 0000000000..cc57c7d86e --- /dev/null +++ b/model/tmallservice/AlibabaSscSupplyplatformServiceabilityDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除服务能力 API返回值 +alibaba.ssc.supplyplatform.serviceability.delete + +删除服务能力 +*/ +type AlibabaSscSupplyplatformServiceabilityDeleteAPIResponse struct { + model.CommonResponse + AlibabaSscSupplyplatformServiceabilityDeleteAPIResponseModel +} + +// 删除服务能力 成功返回结果 +type AlibabaSscSupplyplatformServiceabilityDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ssc_supplyplatform_serviceability_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaSscSupplyplatformServiceabilityDeleteResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServiceabilityDeleteResponse.go b/model/tmallservice/AlibabaSscSupplyplatformServiceabilityDeleteResponse.go deleted file mode 100644 index ccdf6c7119..0000000000 --- a/model/tmallservice/AlibabaSscSupplyplatformServiceabilityDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除服务能力 API返回值 -alibaba.ssc.supplyplatform.serviceability.delete - -删除服务能力 -*/ -type AlibabaSscSupplyplatformServiceabilityDeleteAPIResponse struct { - model.CommonResponse - AlibabaSscSupplyplatformServiceabilityDeleteResponse -} - -// 删除服务能力 成功返回结果 -type AlibabaSscSupplyplatformServiceabilityDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_ssc_supplyplatform_serviceability_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaSscSupplyplatformServiceabilityDeleteResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServiceabilitySaveAPIRequest.go b/model/tmallservice/AlibabaSscSupplyplatformServiceabilitySaveAPIRequest.go new file mode 100644 index 0000000000..7eca899a69 --- /dev/null +++ b/model/tmallservice/AlibabaSscSupplyplatformServiceabilitySaveAPIRequest.go @@ -0,0 +1,108 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +保存服务能力 API请求 +alibaba.ssc.supplyplatform.serviceability.save + +保存服务能力 +*/ +type AlibabaSscSupplyplatformServiceabilitySaveAPIRequest struct { + model.Params + // 服务提供者类型。service_store 网点;worker 工人;supplier 服务商 + _providerType string + // 服务提供者id。根据服务提供者类型填写相应的id,例如类型是网点,则填我们系统的网点id + _providerId int64 + // 目前包含三种。in_store 到店;at_home 上门;transmit_service 寄修。请根据实际支持的履约类型填写 + _fulfilTypeList []string + // 服务sku,具体的sku列表可以从服务商工作台的类目树获取 + _serviceSkuCodeList []string + // 菜鸟地址编码,各级地址均可(全国、省、市、区、街道),根据实际支持的地区填写。当支持的履约类型包含上门时,必填 + _areaCodeList []int64 +} + +// 初始化AlibabaSscSupplyplatformServiceabilitySaveAPIRequest对象 +func NewAlibabaSscSupplyplatformServiceabilitySaveRequest() *AlibabaSscSupplyplatformServiceabilitySaveAPIRequest{ + return &AlibabaSscSupplyplatformServiceabilitySaveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSscSupplyplatformServiceabilitySaveAPIRequest) GetApiMethodName() string { + return "alibaba.ssc.supplyplatform.serviceability.save" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSscSupplyplatformServiceabilitySaveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProviderType Setter +// 服务提供者类型。service_store 网点;worker 工人;supplier 服务商 +func (r *AlibabaSscSupplyplatformServiceabilitySaveAPIRequest) SetProviderType(_providerType string) error { + r._providerType = _providerType + r.Set("provider_type", _providerType) + return nil +} + +// ProviderType Getter +func (r AlibabaSscSupplyplatformServiceabilitySaveAPIRequest) GetProviderType() string { + return r._providerType +} +// ProviderId Setter +// 服务提供者id。根据服务提供者类型填写相应的id,例如类型是网点,则填我们系统的网点id +func (r *AlibabaSscSupplyplatformServiceabilitySaveAPIRequest) SetProviderId(_providerId int64) error { + r._providerId = _providerId + r.Set("provider_id", _providerId) + return nil +} + +// ProviderId Getter +func (r AlibabaSscSupplyplatformServiceabilitySaveAPIRequest) GetProviderId() int64 { + return r._providerId +} +// FulfilTypeList Setter +// 目前包含三种。in_store 到店;at_home 上门;transmit_service 寄修。请根据实际支持的履约类型填写 +func (r *AlibabaSscSupplyplatformServiceabilitySaveAPIRequest) SetFulfilTypeList(_fulfilTypeList []string) error { + r._fulfilTypeList = _fulfilTypeList + r.Set("fulfil_type_list", _fulfilTypeList) + return nil +} + +// FulfilTypeList Getter +func (r AlibabaSscSupplyplatformServiceabilitySaveAPIRequest) GetFulfilTypeList() []string { + return r._fulfilTypeList +} +// ServiceSkuCodeList Setter +// 服务sku,具体的sku列表可以从服务商工作台的类目树获取 +func (r *AlibabaSscSupplyplatformServiceabilitySaveAPIRequest) SetServiceSkuCodeList(_serviceSkuCodeList []string) error { + r._serviceSkuCodeList = _serviceSkuCodeList + r.Set("service_sku_code_list", _serviceSkuCodeList) + return nil +} + +// ServiceSkuCodeList Getter +func (r AlibabaSscSupplyplatformServiceabilitySaveAPIRequest) GetServiceSkuCodeList() []string { + return r._serviceSkuCodeList +} +// AreaCodeList Setter +// 菜鸟地址编码,各级地址均可(全国、省、市、区、街道),根据实际支持的地区填写。当支持的履约类型包含上门时,必填 +func (r *AlibabaSscSupplyplatformServiceabilitySaveAPIRequest) SetAreaCodeList(_areaCodeList []int64) error { + r._areaCodeList = _areaCodeList + r.Set("area_code_list", _areaCodeList) + return nil +} + +// AreaCodeList Getter +func (r AlibabaSscSupplyplatformServiceabilitySaveAPIRequest) GetAreaCodeList() []int64 { + return r._areaCodeList +} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServiceabilitySaveAPIResponse.go b/model/tmallservice/AlibabaSscSupplyplatformServiceabilitySaveAPIResponse.go new file mode 100644 index 0000000000..cb31df24ab --- /dev/null +++ b/model/tmallservice/AlibabaSscSupplyplatformServiceabilitySaveAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +保存服务能力 API返回值 +alibaba.ssc.supplyplatform.serviceability.save + +保存服务能力 +*/ +type AlibabaSscSupplyplatformServiceabilitySaveAPIResponse struct { + model.CommonResponse + AlibabaSscSupplyplatformServiceabilitySaveAPIResponseModel +} + +// 保存服务能力 成功返回结果 +type AlibabaSscSupplyplatformServiceabilitySaveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ssc_supplyplatform_serviceability_save_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaSscSupplyplatformServiceabilitySaveResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServiceabilitySaveResponse.go b/model/tmallservice/AlibabaSscSupplyplatformServiceabilitySaveResponse.go deleted file mode 100644 index 875ab311f5..0000000000 --- a/model/tmallservice/AlibabaSscSupplyplatformServiceabilitySaveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -保存服务能力 API返回值 -alibaba.ssc.supplyplatform.serviceability.save - -保存服务能力 -*/ -type AlibabaSscSupplyplatformServiceabilitySaveAPIResponse struct { - model.CommonResponse - AlibabaSscSupplyplatformServiceabilitySaveResponse -} - -// 保存服务能力 成功返回结果 -type AlibabaSscSupplyplatformServiceabilitySaveResponse struct { - XMLName xml.Name `xml:"alibaba_ssc_supplyplatform_serviceability_save_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaSscSupplyplatformServiceabilitySaveResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServicecapacityDeleteAPIRequest.go b/model/tmallservice/AlibabaSscSupplyplatformServicecapacityDeleteAPIRequest.go new file mode 100644 index 0000000000..7ccb320954 --- /dev/null +++ b/model/tmallservice/AlibabaSscSupplyplatformServicecapacityDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务容量删除 API请求 +alibaba.ssc.supplyplatform.servicecapacity.delete + +服务容量删除 +*/ +type AlibabaSscSupplyplatformServicecapacityDeleteAPIRequest struct { + model.Params + // 服务提供者类型。service_store 网点;worker 工人;supplier 服务商 + _providerType string + // 服务提供者id。根据服务提供者类型填写相应的id,例如类型是网点,则填我们系统的网点id + _providerId int64 +} + +// 初始化AlibabaSscSupplyplatformServicecapacityDeleteAPIRequest对象 +func NewAlibabaSscSupplyplatformServicecapacityDeleteRequest() *AlibabaSscSupplyplatformServicecapacityDeleteAPIRequest{ + return &AlibabaSscSupplyplatformServicecapacityDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSscSupplyplatformServicecapacityDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.ssc.supplyplatform.servicecapacity.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSscSupplyplatformServicecapacityDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProviderType Setter +// 服务提供者类型。service_store 网点;worker 工人;supplier 服务商 +func (r *AlibabaSscSupplyplatformServicecapacityDeleteAPIRequest) SetProviderType(_providerType string) error { + r._providerType = _providerType + r.Set("provider_type", _providerType) + return nil +} + +// ProviderType Getter +func (r AlibabaSscSupplyplatformServicecapacityDeleteAPIRequest) GetProviderType() string { + return r._providerType +} +// ProviderId Setter +// 服务提供者id。根据服务提供者类型填写相应的id,例如类型是网点,则填我们系统的网点id +func (r *AlibabaSscSupplyplatformServicecapacityDeleteAPIRequest) SetProviderId(_providerId int64) error { + r._providerId = _providerId + r.Set("provider_id", _providerId) + return nil +} + +// ProviderId Getter +func (r AlibabaSscSupplyplatformServicecapacityDeleteAPIRequest) GetProviderId() int64 { + return r._providerId +} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServicecapacityDeleteAPIResponse.go b/model/tmallservice/AlibabaSscSupplyplatformServicecapacityDeleteAPIResponse.go new file mode 100644 index 0000000000..04b6eecd66 --- /dev/null +++ b/model/tmallservice/AlibabaSscSupplyplatformServicecapacityDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务容量删除 API返回值 +alibaba.ssc.supplyplatform.servicecapacity.delete + +服务容量删除 +*/ +type AlibabaSscSupplyplatformServicecapacityDeleteAPIResponse struct { + model.CommonResponse + AlibabaSscSupplyplatformServicecapacityDeleteAPIResponseModel +} + +// 服务容量删除 成功返回结果 +type AlibabaSscSupplyplatformServicecapacityDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ssc_supplyplatform_servicecapacity_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaSscSupplyplatformServicecapacityDeleteResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServicecapacityDeleteResponse.go b/model/tmallservice/AlibabaSscSupplyplatformServicecapacityDeleteResponse.go deleted file mode 100644 index 82c29bf10e..0000000000 --- a/model/tmallservice/AlibabaSscSupplyplatformServicecapacityDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务容量删除 API返回值 -alibaba.ssc.supplyplatform.servicecapacity.delete - -服务容量删除 -*/ -type AlibabaSscSupplyplatformServicecapacityDeleteAPIResponse struct { - model.CommonResponse - AlibabaSscSupplyplatformServicecapacityDeleteResponse -} - -// 服务容量删除 成功返回结果 -type AlibabaSscSupplyplatformServicecapacityDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_ssc_supplyplatform_servicecapacity_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaSscSupplyplatformServicecapacityDeleteResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServicecapacitySaveAPIRequest.go b/model/tmallservice/AlibabaSscSupplyplatformServicecapacitySaveAPIRequest.go new file mode 100644 index 0000000000..40554159ec --- /dev/null +++ b/model/tmallservice/AlibabaSscSupplyplatformServicecapacitySaveAPIRequest.go @@ -0,0 +1,108 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +保存服务容量 API请求 +alibaba.ssc.supplyplatform.servicecapacity.save + +保存服务容量 +*/ +type AlibabaSscSupplyplatformServicecapacitySaveAPIRequest struct { + model.Params + // 服务提供者类型。service_store 网点;worker 工人;supplier 服务商 + _providerType string + // 服务提供者id。根据服务提供者类型填写相应的id,例如类型是网点,则填我们系统的网点id + _providerId int64 + // 目前支持两种。daily 每天容量相同;customize 定制容量,每天都不同 + _mode string + // 目前支持两种。day 表示支持的时间粒度为天;hour 时间粒度为小时 + _timeInterval string + // 容量数据。根据mode和time interval有不同的格式。具体格式见业务对接文档。 + _capacityData string +} + +// 初始化AlibabaSscSupplyplatformServicecapacitySaveAPIRequest对象 +func NewAlibabaSscSupplyplatformServicecapacitySaveRequest() *AlibabaSscSupplyplatformServicecapacitySaveAPIRequest{ + return &AlibabaSscSupplyplatformServicecapacitySaveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSscSupplyplatformServicecapacitySaveAPIRequest) GetApiMethodName() string { + return "alibaba.ssc.supplyplatform.servicecapacity.save" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSscSupplyplatformServicecapacitySaveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProviderType Setter +// 服务提供者类型。service_store 网点;worker 工人;supplier 服务商 +func (r *AlibabaSscSupplyplatformServicecapacitySaveAPIRequest) SetProviderType(_providerType string) error { + r._providerType = _providerType + r.Set("provider_type", _providerType) + return nil +} + +// ProviderType Getter +func (r AlibabaSscSupplyplatformServicecapacitySaveAPIRequest) GetProviderType() string { + return r._providerType +} +// ProviderId Setter +// 服务提供者id。根据服务提供者类型填写相应的id,例如类型是网点,则填我们系统的网点id +func (r *AlibabaSscSupplyplatformServicecapacitySaveAPIRequest) SetProviderId(_providerId int64) error { + r._providerId = _providerId + r.Set("provider_id", _providerId) + return nil +} + +// ProviderId Getter +func (r AlibabaSscSupplyplatformServicecapacitySaveAPIRequest) GetProviderId() int64 { + return r._providerId +} +// Mode Setter +// 目前支持两种。daily 每天容量相同;customize 定制容量,每天都不同 +func (r *AlibabaSscSupplyplatformServicecapacitySaveAPIRequest) SetMode(_mode string) error { + r._mode = _mode + r.Set("mode", _mode) + return nil +} + +// Mode Getter +func (r AlibabaSscSupplyplatformServicecapacitySaveAPIRequest) GetMode() string { + return r._mode +} +// TimeInterval Setter +// 目前支持两种。day 表示支持的时间粒度为天;hour 时间粒度为小时 +func (r *AlibabaSscSupplyplatformServicecapacitySaveAPIRequest) SetTimeInterval(_timeInterval string) error { + r._timeInterval = _timeInterval + r.Set("time_interval", _timeInterval) + return nil +} + +// TimeInterval Getter +func (r AlibabaSscSupplyplatformServicecapacitySaveAPIRequest) GetTimeInterval() string { + return r._timeInterval +} +// CapacityData Setter +// 容量数据。根据mode和time interval有不同的格式。具体格式见业务对接文档。 +func (r *AlibabaSscSupplyplatformServicecapacitySaveAPIRequest) SetCapacityData(_capacityData string) error { + r._capacityData = _capacityData + r.Set("capacity_data", _capacityData) + return nil +} + +// CapacityData Getter +func (r AlibabaSscSupplyplatformServicecapacitySaveAPIRequest) GetCapacityData() string { + return r._capacityData +} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServicecapacitySaveAPIResponse.go b/model/tmallservice/AlibabaSscSupplyplatformServicecapacitySaveAPIResponse.go new file mode 100644 index 0000000000..61825666b7 --- /dev/null +++ b/model/tmallservice/AlibabaSscSupplyplatformServicecapacitySaveAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +保存服务容量 API返回值 +alibaba.ssc.supplyplatform.servicecapacity.save + +保存服务容量 +*/ +type AlibabaSscSupplyplatformServicecapacitySaveAPIResponse struct { + model.CommonResponse + AlibabaSscSupplyplatformServicecapacitySaveAPIResponseModel +} + +// 保存服务容量 成功返回结果 +type AlibabaSscSupplyplatformServicecapacitySaveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ssc_supplyplatform_servicecapacity_save_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaSscSupplyplatformServicecapacitySaveResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServicecapacitySaveResponse.go b/model/tmallservice/AlibabaSscSupplyplatformServicecapacitySaveResponse.go deleted file mode 100644 index aa40041355..0000000000 --- a/model/tmallservice/AlibabaSscSupplyplatformServicecapacitySaveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -保存服务容量 API返回值 -alibaba.ssc.supplyplatform.servicecapacity.save - -保存服务容量 -*/ -type AlibabaSscSupplyplatformServicecapacitySaveAPIResponse struct { - model.CommonResponse - AlibabaSscSupplyplatformServicecapacitySaveResponse -} - -// 保存服务容量 成功返回结果 -type AlibabaSscSupplyplatformServicecapacitySaveResponse struct { - XMLName xml.Name `xml:"alibaba_ssc_supplyplatform_servicecapacity_save_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaSscSupplyplatformServicecapacitySaveResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServicestoreOfflineAPIRequest.go b/model/tmallservice/AlibabaSscSupplyplatformServicestoreOfflineAPIRequest.go new file mode 100644 index 0000000000..762afd800b --- /dev/null +++ b/model/tmallservice/AlibabaSscSupplyplatformServicestoreOfflineAPIRequest.go @@ -0,0 +1,66 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +网点下线 API请求 +alibaba.ssc.supplyplatform.servicestore.offline + +网点下线功能 +*/ +type AlibabaSscSupplyplatformServicestoreOfflineAPIRequest struct { + model.Params + // 网点编码列表集合,最大支持1000 + _serviceStoreCodeList []string + // 网点id列表集合,最大支持1000 + _serviceStoreIdList []int64 +} + +// 初始化AlibabaSscSupplyplatformServicestoreOfflineAPIRequest对象 +func NewAlibabaSscSupplyplatformServicestoreOfflineRequest() *AlibabaSscSupplyplatformServicestoreOfflineAPIRequest{ + return &AlibabaSscSupplyplatformServicestoreOfflineAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSscSupplyplatformServicestoreOfflineAPIRequest) GetApiMethodName() string { + return "alibaba.ssc.supplyplatform.servicestore.offline" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSscSupplyplatformServicestoreOfflineAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceStoreCodeList Setter +// 网点编码列表集合,最大支持1000 +func (r *AlibabaSscSupplyplatformServicestoreOfflineAPIRequest) SetServiceStoreCodeList(_serviceStoreCodeList []string) error { + r._serviceStoreCodeList = _serviceStoreCodeList + r.Set("service_store_code_list", _serviceStoreCodeList) + return nil +} + +// ServiceStoreCodeList Getter +func (r AlibabaSscSupplyplatformServicestoreOfflineAPIRequest) GetServiceStoreCodeList() []string { + return r._serviceStoreCodeList +} +// ServiceStoreIdList Setter +// 网点id列表集合,最大支持1000 +func (r *AlibabaSscSupplyplatformServicestoreOfflineAPIRequest) SetServiceStoreIdList(_serviceStoreIdList []int64) error { + r._serviceStoreIdList = _serviceStoreIdList + r.Set("service_store_id_list", _serviceStoreIdList) + return nil +} + +// ServiceStoreIdList Getter +func (r AlibabaSscSupplyplatformServicestoreOfflineAPIRequest) GetServiceStoreIdList() []int64 { + return r._serviceStoreIdList +} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServicestoreOfflineAPIResponse.go b/model/tmallservice/AlibabaSscSupplyplatformServicestoreOfflineAPIResponse.go new file mode 100644 index 0000000000..3e71e0c9f2 --- /dev/null +++ b/model/tmallservice/AlibabaSscSupplyplatformServicestoreOfflineAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +网点下线 API返回值 +alibaba.ssc.supplyplatform.servicestore.offline + +网点下线功能 +*/ +type AlibabaSscSupplyplatformServicestoreOfflineAPIResponse struct { + model.CommonResponse + AlibabaSscSupplyplatformServicestoreOfflineAPIResponseModel +} + +// 网点下线 成功返回结果 +type AlibabaSscSupplyplatformServicestoreOfflineAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ssc_supplyplatform_servicestore_offline_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaSscSupplyplatformServicestoreOfflineResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServicestoreOfflineResponse.go b/model/tmallservice/AlibabaSscSupplyplatformServicestoreOfflineResponse.go deleted file mode 100644 index fba2d590e3..0000000000 --- a/model/tmallservice/AlibabaSscSupplyplatformServicestoreOfflineResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -网点下线 API返回值 -alibaba.ssc.supplyplatform.servicestore.offline - -网点下线功能 -*/ -type AlibabaSscSupplyplatformServicestoreOfflineAPIResponse struct { - model.CommonResponse - AlibabaSscSupplyplatformServicestoreOfflineResponse -} - -// 网点下线 成功返回结果 -type AlibabaSscSupplyplatformServicestoreOfflineResponse struct { - XMLName xml.Name `xml:"alibaba_ssc_supplyplatform_servicestore_offline_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaSscSupplyplatformServicestoreOfflineResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServicestoreSaveAPIRequest.go b/model/tmallservice/AlibabaSscSupplyplatformServicestoreSaveAPIRequest.go new file mode 100644 index 0000000000..f2934f6177 --- /dev/null +++ b/model/tmallservice/AlibabaSscSupplyplatformServicestoreSaveAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +保存网点 API请求 +alibaba.ssc.supplyplatform.servicestore.save + +网点创建、修改 +*/ +type AlibabaSscSupplyplatformServicestoreSaveAPIRequest struct { + model.Params + // 入参 + _serviceStoreSaveReq *ServiceStoreSaveForTopReqDto +} + +// 初始化AlibabaSscSupplyplatformServicestoreSaveAPIRequest对象 +func NewAlibabaSscSupplyplatformServicestoreSaveRequest() *AlibabaSscSupplyplatformServicestoreSaveAPIRequest{ + return &AlibabaSscSupplyplatformServicestoreSaveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSscSupplyplatformServicestoreSaveAPIRequest) GetApiMethodName() string { + return "alibaba.ssc.supplyplatform.servicestore.save" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSscSupplyplatformServicestoreSaveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceStoreSaveReq Setter +// 入参 +func (r *AlibabaSscSupplyplatformServicestoreSaveAPIRequest) SetServiceStoreSaveReq(_serviceStoreSaveReq *ServiceStoreSaveForTopReqDto) error { + r._serviceStoreSaveReq = _serviceStoreSaveReq + r.Set("service_store_save_req", _serviceStoreSaveReq) + return nil +} + +// ServiceStoreSaveReq Getter +func (r AlibabaSscSupplyplatformServicestoreSaveAPIRequest) GetServiceStoreSaveReq() *ServiceStoreSaveForTopReqDto { + return r._serviceStoreSaveReq +} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServicestoreSaveAPIResponse.go b/model/tmallservice/AlibabaSscSupplyplatformServicestoreSaveAPIResponse.go new file mode 100644 index 0000000000..b56dc7ff62 --- /dev/null +++ b/model/tmallservice/AlibabaSscSupplyplatformServicestoreSaveAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +保存网点 API返回值 +alibaba.ssc.supplyplatform.servicestore.save + +网点创建、修改 +*/ +type AlibabaSscSupplyplatformServicestoreSaveAPIResponse struct { + model.CommonResponse + AlibabaSscSupplyplatformServicestoreSaveAPIResponseModel +} + +// 保存网点 成功返回结果 +type AlibabaSscSupplyplatformServicestoreSaveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ssc_supplyplatform_servicestore_save_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaSscSupplyplatformServicestoreSaveResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServicestoreSaveResponse.go b/model/tmallservice/AlibabaSscSupplyplatformServicestoreSaveResponse.go deleted file mode 100644 index dd3267bfa8..0000000000 --- a/model/tmallservice/AlibabaSscSupplyplatformServicestoreSaveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -保存网点 API返回值 -alibaba.ssc.supplyplatform.servicestore.save - -网点创建、修改 -*/ -type AlibabaSscSupplyplatformServicestoreSaveAPIResponse struct { - model.CommonResponse - AlibabaSscSupplyplatformServicestoreSaveResponse -} - -// 保存网点 成功返回结果 -type AlibabaSscSupplyplatformServicestoreSaveResponse struct { - XMLName xml.Name `xml:"alibaba_ssc_supplyplatform_servicestore_save_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaSscSupplyplatformServicestoreSaveResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServiceworkerSaveAPIRequest.go b/model/tmallservice/AlibabaSscSupplyplatformServiceworkerSaveAPIRequest.go new file mode 100644 index 0000000000..338d8a42c9 --- /dev/null +++ b/model/tmallservice/AlibabaSscSupplyplatformServiceworkerSaveAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商绑定工人 API请求 +alibaba.ssc.supplyplatform.serviceworker.save + +服务商将上传工人与服务商自己建立关系,需要将工人的服务区域和住址回传 +*/ +type AlibabaSscSupplyplatformServiceworkerSaveAPIRequest struct { + model.Params + // 工人保存参数 + _workerSaveForTopReqDto *WorkerSaveForTopReqDto +} + +// 初始化AlibabaSscSupplyplatformServiceworkerSaveAPIRequest对象 +func NewAlibabaSscSupplyplatformServiceworkerSaveRequest() *AlibabaSscSupplyplatformServiceworkerSaveAPIRequest{ + return &AlibabaSscSupplyplatformServiceworkerSaveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaSscSupplyplatformServiceworkerSaveAPIRequest) GetApiMethodName() string { + return "alibaba.ssc.supplyplatform.serviceworker.save" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaSscSupplyplatformServiceworkerSaveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkerSaveForTopReqDto Setter +// 工人保存参数 +func (r *AlibabaSscSupplyplatformServiceworkerSaveAPIRequest) SetWorkerSaveForTopReqDto(_workerSaveForTopReqDto *WorkerSaveForTopReqDto) error { + r._workerSaveForTopReqDto = _workerSaveForTopReqDto + r.Set("worker_save_for_top_req_dto", _workerSaveForTopReqDto) + return nil +} + +// WorkerSaveForTopReqDto Getter +func (r AlibabaSscSupplyplatformServiceworkerSaveAPIRequest) GetWorkerSaveForTopReqDto() *WorkerSaveForTopReqDto { + return r._workerSaveForTopReqDto +} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServiceworkerSaveAPIResponse.go b/model/tmallservice/AlibabaSscSupplyplatformServiceworkerSaveAPIResponse.go new file mode 100644 index 0000000000..b09f7dd39f --- /dev/null +++ b/model/tmallservice/AlibabaSscSupplyplatformServiceworkerSaveAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商绑定工人 API返回值 +alibaba.ssc.supplyplatform.serviceworker.save + +服务商将上传工人与服务商自己建立关系,需要将工人的服务区域和住址回传 +*/ +type AlibabaSscSupplyplatformServiceworkerSaveAPIResponse struct { + model.CommonResponse + AlibabaSscSupplyplatformServiceworkerSaveAPIResponseModel +} + +// 服务商绑定工人 成功返回结果 +type AlibabaSscSupplyplatformServiceworkerSaveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ssc_supplyplatform_serviceworker_save_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaSscSupplyplatformServiceworkerSaveResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/AlibabaSscSupplyplatformServiceworkerSaveResponse.go b/model/tmallservice/AlibabaSscSupplyplatformServiceworkerSaveResponse.go deleted file mode 100644 index 211bb42e3e..0000000000 --- a/model/tmallservice/AlibabaSscSupplyplatformServiceworkerSaveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商绑定工人 API返回值 -alibaba.ssc.supplyplatform.serviceworker.save - -服务商将上传工人与服务商自己建立关系,需要将工人的服务区域和住址回传 -*/ -type AlibabaSscSupplyplatformServiceworkerSaveAPIResponse struct { - model.CommonResponse - AlibabaSscSupplyplatformServiceworkerSaveResponse -} - -// 服务商绑定工人 成功返回结果 -type AlibabaSscSupplyplatformServiceworkerSaveResponse struct { - XMLName xml.Name `xml:"alibaba_ssc_supplyplatform_serviceworker_save_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaSscSupplyplatformServiceworkerSaveResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallFuwuServiceitemListAPIRequest.go b/model/tmallservice/TmallFuwuServiceitemListAPIRequest.go new file mode 100644 index 0000000000..2bd609be62 --- /dev/null +++ b/model/tmallservice/TmallFuwuServiceitemListAPIRequest.go @@ -0,0 +1,66 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取服务商品扩展信息 API请求 +tmall.fuwu.serviceitem.list + +获取服务商品扩展信息 +*/ +type TmallFuwuServiceitemListAPIRequest struct { + model.Params + // 商品所属卖家账号id + _sellerId int64 + // 商品id列表,有数量限制 + _itemids []int64 +} + +// 初始化TmallFuwuServiceitemListAPIRequest对象 +func NewTmallFuwuServiceitemListRequest() *TmallFuwuServiceitemListAPIRequest{ + return &TmallFuwuServiceitemListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallFuwuServiceitemListAPIRequest) GetApiMethodName() string { + return "tmall.fuwu.serviceitem.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallFuwuServiceitemListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SellerId Setter +// 商品所属卖家账号id +func (r *TmallFuwuServiceitemListAPIRequest) SetSellerId(_sellerId int64) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r TmallFuwuServiceitemListAPIRequest) GetSellerId() int64 { + return r._sellerId +} +// Itemids Setter +// 商品id列表,有数量限制 +func (r *TmallFuwuServiceitemListAPIRequest) SetItemids(_itemids []int64) error { + r._itemids = _itemids + r.Set("itemids", _itemids) + return nil +} + +// Itemids Getter +func (r TmallFuwuServiceitemListAPIRequest) GetItemids() []int64 { + return r._itemids +} diff --git a/model/tmallservice/TmallFuwuServiceitemListAPIResponse.go b/model/tmallservice/TmallFuwuServiceitemListAPIResponse.go new file mode 100644 index 0000000000..e33c888818 --- /dev/null +++ b/model/tmallservice/TmallFuwuServiceitemListAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取服务商品扩展信息 API返回值 +tmall.fuwu.serviceitem.list + +获取服务商品扩展信息 +*/ +type TmallFuwuServiceitemListAPIResponse struct { + model.CommonResponse + TmallFuwuServiceitemListAPIResponseModel +} + +// 获取服务商品扩展信息 成功返回结果 +type TmallFuwuServiceitemListAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_fuwu_serviceitem_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallFuwuServiceitemListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallFuwuServiceitemListResponse.go b/model/tmallservice/TmallFuwuServiceitemListResponse.go deleted file mode 100644 index eb9d0f2786..0000000000 --- a/model/tmallservice/TmallFuwuServiceitemListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取服务商品扩展信息 API返回值 -tmall.fuwu.serviceitem.list - -获取服务商品扩展信息 -*/ -type TmallFuwuServiceitemListAPIResponse struct { - model.CommonResponse - TmallFuwuServiceitemListResponse -} - -// 获取服务商品扩展信息 成功返回结果 -type TmallFuwuServiceitemListResponse struct { - XMLName xml.Name `xml:"tmall_fuwu_serviceitem_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallFuwuServiceitemListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallMallitemcenterServiceproductQueryAPIRequest.go b/model/tmallservice/TmallMallitemcenterServiceproductQueryAPIRequest.go new file mode 100644 index 0000000000..7365fb87fd --- /dev/null +++ b/model/tmallservice/TmallMallitemcenterServiceproductQueryAPIRequest.go @@ -0,0 +1,94 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫服务商服务产品查询 API请求 +tmall.mallitemcenter.serviceproduct.query + +查询天猫服务的服务商发布的服务产品 +*/ +type TmallMallitemcenterServiceproductQueryAPIRequest struct { + model.Params + // 服务产品id + _id int64 + // 产品状态 + _status int64 + // 服务名称 + _serviceCode string + // 产品类型 + _serviceProductType int64 +} + +// 初始化TmallMallitemcenterServiceproductQueryAPIRequest对象 +func NewTmallMallitemcenterServiceproductQueryRequest() *TmallMallitemcenterServiceproductQueryAPIRequest{ + return &TmallMallitemcenterServiceproductQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallMallitemcenterServiceproductQueryAPIRequest) GetApiMethodName() string { + return "tmall.mallitemcenter.serviceproduct.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallMallitemcenterServiceproductQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 服务产品id +func (r *TmallMallitemcenterServiceproductQueryAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TmallMallitemcenterServiceproductQueryAPIRequest) GetId() int64 { + return r._id +} +// Status Setter +// 产品状态 +func (r *TmallMallitemcenterServiceproductQueryAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TmallMallitemcenterServiceproductQueryAPIRequest) GetStatus() int64 { + return r._status +} +// ServiceCode Setter +// 服务名称 +func (r *TmallMallitemcenterServiceproductQueryAPIRequest) SetServiceCode(_serviceCode string) error { + r._serviceCode = _serviceCode + r.Set("service_code", _serviceCode) + return nil +} + +// ServiceCode Getter +func (r TmallMallitemcenterServiceproductQueryAPIRequest) GetServiceCode() string { + return r._serviceCode +} +// ServiceProductType Setter +// 产品类型 +func (r *TmallMallitemcenterServiceproductQueryAPIRequest) SetServiceProductType(_serviceProductType int64) error { + r._serviceProductType = _serviceProductType + r.Set("service_product_type", _serviceProductType) + return nil +} + +// ServiceProductType Getter +func (r TmallMallitemcenterServiceproductQueryAPIRequest) GetServiceProductType() int64 { + return r._serviceProductType +} diff --git a/model/tmallservice/TmallMallitemcenterServiceproductQueryAPIResponse.go b/model/tmallservice/TmallMallitemcenterServiceproductQueryAPIResponse.go new file mode 100644 index 0000000000..690272a5ed --- /dev/null +++ b/model/tmallservice/TmallMallitemcenterServiceproductQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫服务商服务产品查询 API返回值 +tmall.mallitemcenter.serviceproduct.query + +查询天猫服务的服务商发布的服务产品 +*/ +type TmallMallitemcenterServiceproductQueryAPIResponse struct { + model.CommonResponse + TmallMallitemcenterServiceproductQueryAPIResponseModel +} + +// 天猫服务商服务产品查询 成功返回结果 +type TmallMallitemcenterServiceproductQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_mallitemcenter_serviceproduct_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TmallMallitemcenterServiceproductQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallMallitemcenterServiceproductQueryResponse.go b/model/tmallservice/TmallMallitemcenterServiceproductQueryResponse.go deleted file mode 100644 index 7319e7bbd3..0000000000 --- a/model/tmallservice/TmallMallitemcenterServiceproductQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫服务商服务产品查询 API返回值 -tmall.mallitemcenter.serviceproduct.query - -查询天猫服务的服务商发布的服务产品 -*/ -type TmallMallitemcenterServiceproductQueryAPIResponse struct { - model.CommonResponse - TmallMallitemcenterServiceproductQueryResponse -} - -// 天猫服务商服务产品查询 成功返回结果 -type TmallMallitemcenterServiceproductQueryResponse struct { - XMLName xml.Name `xml:"tmall_mallitemcenter_serviceproduct_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TmallMallitemcenterServiceproductQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallMallitemcenterSubscribeQueryAPIRequest.go b/model/tmallservice/TmallMallitemcenterSubscribeQueryAPIRequest.go new file mode 100644 index 0000000000..cac2a07773 --- /dev/null +++ b/model/tmallservice/TmallMallitemcenterSubscribeQueryAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫服务订购信息查询接口 API请求 +tmall.mallitemcenter.subscribe.query + +查询商家服务订购信息 +*/ +type TmallMallitemcenterSubscribeQueryAPIRequest struct { + model.Params + // 入参query + _query *Spb2bOderQuery +} + +// 初始化TmallMallitemcenterSubscribeQueryAPIRequest对象 +func NewTmallMallitemcenterSubscribeQueryRequest() *TmallMallitemcenterSubscribeQueryAPIRequest{ + return &TmallMallitemcenterSubscribeQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallMallitemcenterSubscribeQueryAPIRequest) GetApiMethodName() string { + return "tmall.mallitemcenter.subscribe.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallMallitemcenterSubscribeQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 入参query +func (r *TmallMallitemcenterSubscribeQueryAPIRequest) SetQuery(_query *Spb2bOderQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r TmallMallitemcenterSubscribeQueryAPIRequest) GetQuery() *Spb2bOderQuery { + return r._query +} diff --git a/model/tmallservice/TmallMallitemcenterSubscribeQueryAPIResponse.go b/model/tmallservice/TmallMallitemcenterSubscribeQueryAPIResponse.go new file mode 100644 index 0000000000..be38b5f573 --- /dev/null +++ b/model/tmallservice/TmallMallitemcenterSubscribeQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫服务订购信息查询接口 API返回值 +tmall.mallitemcenter.subscribe.query + +查询商家服务订购信息 +*/ +type TmallMallitemcenterSubscribeQueryAPIResponse struct { + model.CommonResponse + TmallMallitemcenterSubscribeQueryAPIResponseModel +} + +// 天猫服务订购信息查询接口 成功返回结果 +type TmallMallitemcenterSubscribeQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_mallitemcenter_subscribe_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TmallMallitemcenterSubscribeQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallMallitemcenterSubscribeQueryResponse.go b/model/tmallservice/TmallMallitemcenterSubscribeQueryResponse.go deleted file mode 100644 index 1d5eebc6b0..0000000000 --- a/model/tmallservice/TmallMallitemcenterSubscribeQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫服务订购信息查询接口 API返回值 -tmall.mallitemcenter.subscribe.query - -查询商家服务订购信息 -*/ -type TmallMallitemcenterSubscribeQueryAPIResponse struct { - model.CommonResponse - TmallMallitemcenterSubscribeQueryResponse -} - -// 天猫服务订购信息查询接口 成功返回结果 -type TmallMallitemcenterSubscribeQueryResponse struct { - XMLName xml.Name `xml:"tmall_mallitemcenter_subscribe_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TmallMallitemcenterSubscribeQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallMallitemcenterSupplierAbilityUpdateAPIRequest.go b/model/tmallservice/TmallMallitemcenterSupplierAbilityUpdateAPIRequest.go new file mode 100644 index 0000000000..eb38f65ae4 --- /dev/null +++ b/model/tmallservice/TmallMallitemcenterSupplierAbilityUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店服务能力授权接口 API请求 +tmall.mallitemcenter.supplier.ability.update + +门店服务能力授权 +*/ +type TmallMallitemcenterSupplierAbilityUpdateAPIRequest struct { + model.Params + // 入参 + _param0 *EnableServiceStoreRequestDto +} + +// 初始化TmallMallitemcenterSupplierAbilityUpdateAPIRequest对象 +func NewTmallMallitemcenterSupplierAbilityUpdateRequest() *TmallMallitemcenterSupplierAbilityUpdateAPIRequest{ + return &TmallMallitemcenterSupplierAbilityUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallMallitemcenterSupplierAbilityUpdateAPIRequest) GetApiMethodName() string { + return "tmall.mallitemcenter.supplier.ability.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallMallitemcenterSupplierAbilityUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 入参 +func (r *TmallMallitemcenterSupplierAbilityUpdateAPIRequest) SetParam0(_param0 *EnableServiceStoreRequestDto) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TmallMallitemcenterSupplierAbilityUpdateAPIRequest) GetParam0() *EnableServiceStoreRequestDto { + return r._param0 +} diff --git a/model/tmallservice/TmallMallitemcenterSupplierAbilityUpdateAPIResponse.go b/model/tmallservice/TmallMallitemcenterSupplierAbilityUpdateAPIResponse.go new file mode 100644 index 0000000000..cbfb3f7360 --- /dev/null +++ b/model/tmallservice/TmallMallitemcenterSupplierAbilityUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店服务能力授权接口 API返回值 +tmall.mallitemcenter.supplier.ability.update + +门店服务能力授权 +*/ +type TmallMallitemcenterSupplierAbilityUpdateAPIResponse struct { + model.CommonResponse + TmallMallitemcenterSupplierAbilityUpdateAPIResponseModel +} + +// 门店服务能力授权接口 成功返回结果 +type TmallMallitemcenterSupplierAbilityUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_mallitemcenter_supplier_ability_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TmallMallitemcenterSupplierAbilityUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallMallitemcenterSupplierAbilityUpdateResponse.go b/model/tmallservice/TmallMallitemcenterSupplierAbilityUpdateResponse.go deleted file mode 100644 index 7ad0919796..0000000000 --- a/model/tmallservice/TmallMallitemcenterSupplierAbilityUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店服务能力授权接口 API返回值 -tmall.mallitemcenter.supplier.ability.update - -门店服务能力授权 -*/ -type TmallMallitemcenterSupplierAbilityUpdateAPIResponse struct { - model.CommonResponse - TmallMallitemcenterSupplierAbilityUpdateResponse -} - -// 门店服务能力授权接口 成功返回结果 -type TmallMallitemcenterSupplierAbilityUpdateResponse struct { - XMLName xml.Name `xml:"tmall_mallitemcenter_supplier_ability_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TmallMallitemcenterSupplierAbilityUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallMallitemcenterSupplierPriceUploadAPIRequest.go b/model/tmallservice/TmallMallitemcenterSupplierPriceUploadAPIRequest.go new file mode 100644 index 0000000000..df1a4d03eb --- /dev/null +++ b/model/tmallservice/TmallMallitemcenterSupplierPriceUploadAPIRequest.go @@ -0,0 +1,66 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫服务商服务报价上传 API请求 +tmall.mallitemcenter.supplier.price.upload + +天猫服务商上传服务价格 +*/ +type TmallMallitemcenterSupplierPriceUploadAPIRequest struct { + model.Params + // 服务code + _serviceCode string + // 服务商门店价格列表 + _providerPriceList []StoreOfferPriceDto +} + +// 初始化TmallMallitemcenterSupplierPriceUploadAPIRequest对象 +func NewTmallMallitemcenterSupplierPriceUploadRequest() *TmallMallitemcenterSupplierPriceUploadAPIRequest{ + return &TmallMallitemcenterSupplierPriceUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallMallitemcenterSupplierPriceUploadAPIRequest) GetApiMethodName() string { + return "tmall.mallitemcenter.supplier.price.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallMallitemcenterSupplierPriceUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceCode Setter +// 服务code +func (r *TmallMallitemcenterSupplierPriceUploadAPIRequest) SetServiceCode(_serviceCode string) error { + r._serviceCode = _serviceCode + r.Set("service_code", _serviceCode) + return nil +} + +// ServiceCode Getter +func (r TmallMallitemcenterSupplierPriceUploadAPIRequest) GetServiceCode() string { + return r._serviceCode +} +// ProviderPriceList Setter +// 服务商门店价格列表 +func (r *TmallMallitemcenterSupplierPriceUploadAPIRequest) SetProviderPriceList(_providerPriceList []StoreOfferPriceDto) error { + r._providerPriceList = _providerPriceList + r.Set("provider_price_list", _providerPriceList) + return nil +} + +// ProviderPriceList Getter +func (r TmallMallitemcenterSupplierPriceUploadAPIRequest) GetProviderPriceList() []StoreOfferPriceDto { + return r._providerPriceList +} diff --git a/model/tmallservice/TmallMallitemcenterSupplierPriceUploadAPIResponse.go b/model/tmallservice/TmallMallitemcenterSupplierPriceUploadAPIResponse.go new file mode 100644 index 0000000000..928740fad7 --- /dev/null +++ b/model/tmallservice/TmallMallitemcenterSupplierPriceUploadAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫服务商服务报价上传 API返回值 +tmall.mallitemcenter.supplier.price.upload + +天猫服务商上传服务价格 +*/ +type TmallMallitemcenterSupplierPriceUploadAPIResponse struct { + model.CommonResponse + TmallMallitemcenterSupplierPriceUploadAPIResponseModel +} + +// 天猫服务商服务报价上传 成功返回结果 +type TmallMallitemcenterSupplierPriceUploadAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_mallitemcenter_supplier_price_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TmallMallitemcenterSupplierPriceUploadResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallMallitemcenterSupplierPriceUploadResponse.go b/model/tmallservice/TmallMallitemcenterSupplierPriceUploadResponse.go deleted file mode 100644 index 63e7066382..0000000000 --- a/model/tmallservice/TmallMallitemcenterSupplierPriceUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫服务商服务报价上传 API返回值 -tmall.mallitemcenter.supplier.price.upload - -天猫服务商上传服务价格 -*/ -type TmallMallitemcenterSupplierPriceUploadAPIResponse struct { - model.CommonResponse - TmallMallitemcenterSupplierPriceUploadResponse -} - -// 天猫服务商服务报价上传 成功返回结果 -type TmallMallitemcenterSupplierPriceUploadResponse struct { - XMLName xml.Name `xml:"tmall_mallitemcenter_supplier_price_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TmallMallitemcenterSupplierPriceUploadResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallMsfIdentifyStatusQueryAPIRequest.go b/model/tmallservice/TmallMsfIdentifyStatusQueryAPIRequest.go new file mode 100644 index 0000000000..23a2595ca8 --- /dev/null +++ b/model/tmallservice/TmallMsfIdentifyStatusQueryAPIRequest.go @@ -0,0 +1,66 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +喵师傅定案核销状态查询 API请求 +tmall.msf.identify.status.query + +喵师傅定案核销状态查询,供服务商erp系统调用 +*/ +type TmallMsfIdentifyStatusQueryAPIRequest struct { + model.Params + // 天猫订单号 + _orderId int64 + // 服务类型,0 家装的送货上门并安装 1 单向安装 2 建材的送货上门 3 建材的安装 + _serviceType int64 +} + +// 初始化TmallMsfIdentifyStatusQueryAPIRequest对象 +func NewTmallMsfIdentifyStatusQueryRequest() *TmallMsfIdentifyStatusQueryAPIRequest{ + return &TmallMsfIdentifyStatusQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallMsfIdentifyStatusQueryAPIRequest) GetApiMethodName() string { + return "tmall.msf.identify.status.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallMsfIdentifyStatusQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 天猫订单号 +func (r *TmallMsfIdentifyStatusQueryAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TmallMsfIdentifyStatusQueryAPIRequest) GetOrderId() int64 { + return r._orderId +} +// ServiceType Setter +// 服务类型,0 家装的送货上门并安装 1 单向安装 2 建材的送货上门 3 建材的安装 +func (r *TmallMsfIdentifyStatusQueryAPIRequest) SetServiceType(_serviceType int64) error { + r._serviceType = _serviceType + r.Set("service_type", _serviceType) + return nil +} + +// ServiceType Getter +func (r TmallMsfIdentifyStatusQueryAPIRequest) GetServiceType() int64 { + return r._serviceType +} diff --git a/model/tmallservice/TmallMsfIdentifyStatusQueryAPIResponse.go b/model/tmallservice/TmallMsfIdentifyStatusQueryAPIResponse.go new file mode 100644 index 0000000000..673c0967dd --- /dev/null +++ b/model/tmallservice/TmallMsfIdentifyStatusQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +喵师傅定案核销状态查询 API返回值 +tmall.msf.identify.status.query + +喵师傅定案核销状态查询,供服务商erp系统调用 +*/ +type TmallMsfIdentifyStatusQueryAPIResponse struct { + model.CommonResponse + TmallMsfIdentifyStatusQueryAPIResponseModel +} + +// 喵师傅定案核销状态查询 成功返回结果 +type TmallMsfIdentifyStatusQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_msf_identify_status_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果json串,其中identifyDate位核销日期,signTime为签到时间,identifyStatus位核销状态,1代表已经核销,identifyType为核销类型,取值为:0代表未核销,1代表10位核销码核销,2代表订单号核销,3代表手机号核销,4代表4位核销码核销,5代表通过poi核销 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallMsfIdentifyStatusQueryResponse.go b/model/tmallservice/TmallMsfIdentifyStatusQueryResponse.go deleted file mode 100644 index 9d2b2cfbbb..0000000000 --- a/model/tmallservice/TmallMsfIdentifyStatusQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -喵师傅定案核销状态查询 API返回值 -tmall.msf.identify.status.query - -喵师傅定案核销状态查询,供服务商erp系统调用 -*/ -type TmallMsfIdentifyStatusQueryAPIResponse struct { - model.CommonResponse - TmallMsfIdentifyStatusQueryResponse -} - -// 喵师傅定案核销状态查询 成功返回结果 -type TmallMsfIdentifyStatusQueryResponse struct { - XMLName xml.Name `xml:"tmall_msf_identify_status_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果json串,其中identifyDate位核销日期,signTime为签到时间,identifyStatus位核销状态,1代表已经核销,identifyType为核销类型,取值为:0代表未核销,1代表10位核销码核销,2代表订单号核销,3代表手机号核销,4代表4位核销码核销,5代表通过poi核销 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallMsfReservationAPIRequest.go b/model/tmallservice/TmallMsfReservationAPIRequest.go new file mode 100644 index 0000000000..036a9472e4 --- /dev/null +++ b/model/tmallservice/TmallMsfReservationAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +喵师傅服务预约API API请求 +tmall.msf.reservation + +喵师傅预约api +*/ +type TmallMsfReservationAPIRequest struct { + model.Params + // 预约内容 + _reservInfo *ReservationDto +} + +// 初始化TmallMsfReservationAPIRequest对象 +func NewTmallMsfReservationRequest() *TmallMsfReservationAPIRequest{ + return &TmallMsfReservationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallMsfReservationAPIRequest) GetApiMethodName() string { + return "tmall.msf.reservation" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallMsfReservationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReservInfo Setter +// 预约内容 +func (r *TmallMsfReservationAPIRequest) SetReservInfo(_reservInfo *ReservationDto) error { + r._reservInfo = _reservInfo + r.Set("reserv_info", _reservInfo) + return nil +} + +// ReservInfo Getter +func (r TmallMsfReservationAPIRequest) GetReservInfo() *ReservationDto { + return r._reservInfo +} diff --git a/model/tmallservice/TmallMsfReservationAPIResponse.go b/model/tmallservice/TmallMsfReservationAPIResponse.go new file mode 100644 index 0000000000..5b1333223c --- /dev/null +++ b/model/tmallservice/TmallMsfReservationAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +喵师傅服务预约API API返回值 +tmall.msf.reservation + +喵师傅预约api +*/ +type TmallMsfReservationAPIResponse struct { + model.CommonResponse + TmallMsfReservationAPIResponseModel +} + +// 喵师傅服务预约API 成功返回结果 +type TmallMsfReservationAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_msf_reservation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 预约成功,json + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallMsfReservationResponse.go b/model/tmallservice/TmallMsfReservationResponse.go deleted file mode 100644 index 7a82d4279c..0000000000 --- a/model/tmallservice/TmallMsfReservationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -喵师傅服务预约API API返回值 -tmall.msf.reservation - -喵师傅预约api -*/ -type TmallMsfReservationAPIResponse struct { - model.CommonResponse - TmallMsfReservationResponse -} - -// 喵师傅服务预约API 成功返回结果 -type TmallMsfReservationResponse struct { - XMLName xml.Name `xml:"tmall_msf_reservation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 预约成功,json - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServiceCodeConsumeAPIRequest.go b/model/tmallservice/TmallServiceCodeConsumeAPIRequest.go new file mode 100644 index 0000000000..7fde3c8ee4 --- /dev/null +++ b/model/tmallservice/TmallServiceCodeConsumeAPIRequest.go @@ -0,0 +1,80 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫服务平台服务核销 API请求 +tmall.service.code.consume + +天猫服务平台-服务核销 +*/ +type TmallServiceCodeConsumeAPIRequest struct { + model.Params + // 核销码 + _consumeCode string + // 核销帐号 + _operatorNick string + // 门店id + _shopId string +} + +// 初始化TmallServiceCodeConsumeAPIRequest对象 +func NewTmallServiceCodeConsumeRequest() *TmallServiceCodeConsumeAPIRequest{ + return &TmallServiceCodeConsumeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServiceCodeConsumeAPIRequest) GetApiMethodName() string { + return "tmall.service.code.consume" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServiceCodeConsumeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ConsumeCode Setter +// 核销码 +func (r *TmallServiceCodeConsumeAPIRequest) SetConsumeCode(_consumeCode string) error { + r._consumeCode = _consumeCode + r.Set("consume_code", _consumeCode) + return nil +} + +// ConsumeCode Getter +func (r TmallServiceCodeConsumeAPIRequest) GetConsumeCode() string { + return r._consumeCode +} +// OperatorNick Setter +// 核销帐号 +func (r *TmallServiceCodeConsumeAPIRequest) SetOperatorNick(_operatorNick string) error { + r._operatorNick = _operatorNick + r.Set("operator_nick", _operatorNick) + return nil +} + +// OperatorNick Getter +func (r TmallServiceCodeConsumeAPIRequest) GetOperatorNick() string { + return r._operatorNick +} +// ShopId Setter +// 门店id +func (r *TmallServiceCodeConsumeAPIRequest) SetShopId(_shopId string) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r TmallServiceCodeConsumeAPIRequest) GetShopId() string { + return r._shopId +} diff --git a/model/tmallservice/TmallServiceCodeConsumeAPIResponse.go b/model/tmallservice/TmallServiceCodeConsumeAPIResponse.go new file mode 100644 index 0000000000..259bcf1920 --- /dev/null +++ b/model/tmallservice/TmallServiceCodeConsumeAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫服务平台服务核销 API返回值 +tmall.service.code.consume + +天猫服务平台-服务核销 +*/ +type TmallServiceCodeConsumeAPIResponse struct { + model.CommonResponse + TmallServiceCodeConsumeAPIResponseModel +} + +// 天猫服务平台服务核销 成功返回结果 +type TmallServiceCodeConsumeAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_service_code_consume_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 服务工单ID + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServiceCodeConsumeResponse.go b/model/tmallservice/TmallServiceCodeConsumeResponse.go deleted file mode 100644 index d4e6effbf8..0000000000 --- a/model/tmallservice/TmallServiceCodeConsumeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫服务平台服务核销 API返回值 -tmall.service.code.consume - -天猫服务平台-服务核销 -*/ -type TmallServiceCodeConsumeAPIResponse struct { - model.CommonResponse - TmallServiceCodeConsumeResponse -} - -// 天猫服务平台服务核销 成功返回结果 -type TmallServiceCodeConsumeResponse struct { - XMLName xml.Name `xml:"tmall_service_code_consume_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 服务工单ID - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServiceSettleadjustmentCancelAPIRequest.go b/model/tmallservice/TmallServiceSettleadjustmentCancelAPIRequest.go new file mode 100644 index 0000000000..e0bbf226a7 --- /dev/null +++ b/model/tmallservice/TmallServiceSettleadjustmentCancelAPIRequest.go @@ -0,0 +1,67 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消结算调整单 API请求 +tmall.service.settleadjustment.cancel + +提供给服务商在对取消已经发起的结算调整单。 +通过说明调整单ID进行结算调整单取消。 +*/ +type TmallServiceSettleadjustmentCancelAPIRequest struct { + model.Params + // 结算调整单ID + _id int64 + // 取消原因说明 + _comments string +} + +// 初始化TmallServiceSettleadjustmentCancelAPIRequest对象 +func NewTmallServiceSettleadjustmentCancelRequest() *TmallServiceSettleadjustmentCancelAPIRequest{ + return &TmallServiceSettleadjustmentCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServiceSettleadjustmentCancelAPIRequest) GetApiMethodName() string { + return "tmall.service.settleadjustment.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServiceSettleadjustmentCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 结算调整单ID +func (r *TmallServiceSettleadjustmentCancelAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TmallServiceSettleadjustmentCancelAPIRequest) GetId() int64 { + return r._id +} +// Comments Setter +// 取消原因说明 +func (r *TmallServiceSettleadjustmentCancelAPIRequest) SetComments(_comments string) error { + r._comments = _comments + r.Set("comments", _comments) + return nil +} + +// Comments Getter +func (r TmallServiceSettleadjustmentCancelAPIRequest) GetComments() string { + return r._comments +} diff --git a/model/tmallservice/TmallServiceSettleadjustmentCancelAPIResponse.go b/model/tmallservice/TmallServiceSettleadjustmentCancelAPIResponse.go new file mode 100644 index 0000000000..3ad5ebbcba --- /dev/null +++ b/model/tmallservice/TmallServiceSettleadjustmentCancelAPIResponse.go @@ -0,0 +1,28 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消结算调整单 API返回值 +tmall.service.settleadjustment.cancel + +提供给服务商在对取消已经发起的结算调整单。 +通过说明调整单ID进行结算调整单取消。 +*/ +type TmallServiceSettleadjustmentCancelAPIResponse struct { + model.CommonResponse + TmallServiceSettleadjustmentCancelAPIResponseModel +} + +// 取消结算调整单 成功返回结果 +type TmallServiceSettleadjustmentCancelAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_service_settleadjustment_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallServiceSettleadjustmentCancelResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServiceSettleadjustmentCancelResponse.go b/model/tmallservice/TmallServiceSettleadjustmentCancelResponse.go deleted file mode 100644 index 9625077cbe..0000000000 --- a/model/tmallservice/TmallServiceSettleadjustmentCancelResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消结算调整单 API返回值 -tmall.service.settleadjustment.cancel - -提供给服务商在对取消已经发起的结算调整单。 -通过说明调整单ID进行结算调整单取消。 -*/ -type TmallServiceSettleadjustmentCancelAPIResponse struct { - model.CommonResponse - TmallServiceSettleadjustmentCancelResponse -} - -// 取消结算调整单 成功返回结果 -type TmallServiceSettleadjustmentCancelResponse struct { - XMLName xml.Name `xml:"tmall_service_settleadjustment_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallServiceSettleadjustmentCancelResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServiceSettleadjustmentGetAPIRequest.go b/model/tmallservice/TmallServiceSettleadjustmentGetAPIRequest.go new file mode 100644 index 0000000000..1409607ce2 --- /dev/null +++ b/model/tmallservice/TmallServiceSettleadjustmentGetAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询结算调整单单条记录 API请求 +tmall.service.settleadjustment.get + +提供给服务商通过结算调整单id获取结算调整单信息 +*/ +type TmallServiceSettleadjustmentGetAPIRequest struct { + model.Params + // 结算调整单ID + _id int64 +} + +// 初始化TmallServiceSettleadjustmentGetAPIRequest对象 +func NewTmallServiceSettleadjustmentGetRequest() *TmallServiceSettleadjustmentGetAPIRequest{ + return &TmallServiceSettleadjustmentGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServiceSettleadjustmentGetAPIRequest) GetApiMethodName() string { + return "tmall.service.settleadjustment.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServiceSettleadjustmentGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 结算调整单ID +func (r *TmallServiceSettleadjustmentGetAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TmallServiceSettleadjustmentGetAPIRequest) GetId() int64 { + return r._id +} diff --git a/model/tmallservice/TmallServiceSettleadjustmentGetAPIResponse.go b/model/tmallservice/TmallServiceSettleadjustmentGetAPIResponse.go new file mode 100644 index 0000000000..28d39894a2 --- /dev/null +++ b/model/tmallservice/TmallServiceSettleadjustmentGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询结算调整单单条记录 API返回值 +tmall.service.settleadjustment.get + +提供给服务商通过结算调整单id获取结算调整单信息 +*/ +type TmallServiceSettleadjustmentGetAPIResponse struct { + model.CommonResponse + TmallServiceSettleadjustmentGetAPIResponseModel +} + +// 查询结算调整单单条记录 成功返回结果 +type TmallServiceSettleadjustmentGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_service_settleadjustment_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallServiceSettleadjustmentGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServiceSettleadjustmentGetResponse.go b/model/tmallservice/TmallServiceSettleadjustmentGetResponse.go deleted file mode 100644 index 94c345601a..0000000000 --- a/model/tmallservice/TmallServiceSettleadjustmentGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询结算调整单单条记录 API返回值 -tmall.service.settleadjustment.get - -提供给服务商通过结算调整单id获取结算调整单信息 -*/ -type TmallServiceSettleadjustmentGetAPIResponse struct { - model.CommonResponse - TmallServiceSettleadjustmentGetResponse -} - -// 查询结算调整单单条记录 成功返回结果 -type TmallServiceSettleadjustmentGetResponse struct { - XMLName xml.Name `xml:"tmall_service_settleadjustment_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallServiceSettleadjustmentGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServiceSettleadjustmentRequestAPIRequest.go b/model/tmallservice/TmallServiceSettleadjustmentRequestAPIRequest.go new file mode 100644 index 0000000000..c4f6274e01 --- /dev/null +++ b/model/tmallservice/TmallServiceSettleadjustmentRequestAPIRequest.go @@ -0,0 +1,53 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建结算调整单 API请求 +tmall.service.settleadjustment.request + +提供给服务商在对结算有异议时,发起结算调整单。 +通过说明工单ID,调整费用值,调整原因进行新建结算调整单。 +*/ +type TmallServiceSettleadjustmentRequestAPIRequest struct { + model.Params + // 父节点 + _paramSettleAdjustmentRequest *SettleAdjustmentRequest +} + +// 初始化TmallServiceSettleadjustmentRequestAPIRequest对象 +func NewTmallServiceSettleadjustmentRequestRequest() *TmallServiceSettleadjustmentRequestAPIRequest{ + return &TmallServiceSettleadjustmentRequestAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServiceSettleadjustmentRequestAPIRequest) GetApiMethodName() string { + return "tmall.service.settleadjustment.request" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServiceSettleadjustmentRequestAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamSettleAdjustmentRequest Setter +// 父节点 +func (r *TmallServiceSettleadjustmentRequestAPIRequest) SetParamSettleAdjustmentRequest(_paramSettleAdjustmentRequest *SettleAdjustmentRequest) error { + r._paramSettleAdjustmentRequest = _paramSettleAdjustmentRequest + r.Set("param_settle_adjustment_request", _paramSettleAdjustmentRequest) + return nil +} + +// ParamSettleAdjustmentRequest Getter +func (r TmallServiceSettleadjustmentRequestAPIRequest) GetParamSettleAdjustmentRequest() *SettleAdjustmentRequest { + return r._paramSettleAdjustmentRequest +} diff --git a/model/tmallservice/TmallServiceSettleadjustmentRequestAPIResponse.go b/model/tmallservice/TmallServiceSettleadjustmentRequestAPIResponse.go new file mode 100644 index 0000000000..4e028d69fe --- /dev/null +++ b/model/tmallservice/TmallServiceSettleadjustmentRequestAPIResponse.go @@ -0,0 +1,28 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建结算调整单 API返回值 +tmall.service.settleadjustment.request + +提供给服务商在对结算有异议时,发起结算调整单。 +通过说明工单ID,调整费用值,调整原因进行新建结算调整单。 +*/ +type TmallServiceSettleadjustmentRequestAPIResponse struct { + model.CommonResponse + TmallServiceSettleadjustmentRequestAPIResponseModel +} + +// 创建结算调整单 成功返回结果 +type TmallServiceSettleadjustmentRequestAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_service_settleadjustment_request_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallServiceSettleadjustmentRequestResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServiceSettleadjustmentRequestResponse.go b/model/tmallservice/TmallServiceSettleadjustmentRequestResponse.go deleted file mode 100644 index 10e7778867..0000000000 --- a/model/tmallservice/TmallServiceSettleadjustmentRequestResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建结算调整单 API返回值 -tmall.service.settleadjustment.request - -提供给服务商在对结算有异议时,发起结算调整单。 -通过说明工单ID,调整费用值,调整原因进行新建结算调整单。 -*/ -type TmallServiceSettleadjustmentRequestAPIResponse struct { - model.CommonResponse - TmallServiceSettleadjustmentRequestResponse -} - -// 创建结算调整单 成功返回结果 -type TmallServiceSettleadjustmentRequestResponse struct { - XMLName xml.Name `xml:"tmall_service_settleadjustment_request_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallServiceSettleadjustmentRequestResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterAnomalyrecourseQuerybyidAPIRequest.go b/model/tmallservice/TmallServicecenterAnomalyrecourseQuerybyidAPIRequest.go new file mode 100644 index 0000000000..125cabf774 --- /dev/null +++ b/model/tmallservice/TmallServicecenterAnomalyrecourseQuerybyidAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据一键求助id查询指定服务商的一键求助单 API请求 +tmall.servicecenter.anomalyrecourse.querybyid + +根据一键求助id查询指定服务商的一键求助单 +*/ +type TmallServicecenterAnomalyrecourseQuerybyidAPIRequest struct { + model.Params + // 一键求助的id + _anomalyRecourseId int64 +} + +// 初始化TmallServicecenterAnomalyrecourseQuerybyidAPIRequest对象 +func NewTmallServicecenterAnomalyrecourseQuerybyidRequest() *TmallServicecenterAnomalyrecourseQuerybyidAPIRequest{ + return &TmallServicecenterAnomalyrecourseQuerybyidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterAnomalyrecourseQuerybyidAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.anomalyrecourse.querybyid" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterAnomalyrecourseQuerybyidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AnomalyRecourseId Setter +// 一键求助的id +func (r *TmallServicecenterAnomalyrecourseQuerybyidAPIRequest) SetAnomalyRecourseId(_anomalyRecourseId int64) error { + r._anomalyRecourseId = _anomalyRecourseId + r.Set("anomaly_recourse_id", _anomalyRecourseId) + return nil +} + +// AnomalyRecourseId Getter +func (r TmallServicecenterAnomalyrecourseQuerybyidAPIRequest) GetAnomalyRecourseId() int64 { + return r._anomalyRecourseId +} diff --git a/model/tmallservice/TmallServicecenterAnomalyrecourseQuerybyidAPIResponse.go b/model/tmallservice/TmallServicecenterAnomalyrecourseQuerybyidAPIResponse.go new file mode 100644 index 0000000000..28a2bba838 --- /dev/null +++ b/model/tmallservice/TmallServicecenterAnomalyrecourseQuerybyidAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据一键求助id查询指定服务商的一键求助单 API返回值 +tmall.servicecenter.anomalyrecourse.querybyid + +根据一键求助id查询指定服务商的一键求助单 +*/ +type TmallServicecenterAnomalyrecourseQuerybyidAPIResponse struct { + model.CommonResponse + TmallServicecenterAnomalyrecourseQuerybyidAPIResponseModel +} + +// 根据一键求助id查询指定服务商的一键求助单 成功返回结果 +type TmallServicecenterAnomalyrecourseQuerybyidAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_anomalyrecourse_querybyid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterAnomalyrecourseQuerybyidResponse.go b/model/tmallservice/TmallServicecenterAnomalyrecourseQuerybyidResponse.go deleted file mode 100644 index c9ae5533b3..0000000000 --- a/model/tmallservice/TmallServicecenterAnomalyrecourseQuerybyidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据一键求助id查询指定服务商的一键求助单 API返回值 -tmall.servicecenter.anomalyrecourse.querybyid - -根据一键求助id查询指定服务商的一键求助单 -*/ -type TmallServicecenterAnomalyrecourseQuerybyidAPIResponse struct { - model.CommonResponse - TmallServicecenterAnomalyrecourseQuerybyidResponse -} - -// 根据一键求助id查询指定服务商的一键求助单 成功返回结果 -type TmallServicecenterAnomalyrecourseQuerybyidResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_anomalyrecourse_querybyid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterContractsSearchAPIRequest.go b/model/tmallservice/TmallServicecenterContractsSearchAPIRequest.go new file mode 100644 index 0000000000..1f31129829 --- /dev/null +++ b/model/tmallservice/TmallServicecenterContractsSearchAPIRequest.go @@ -0,0 +1,66 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取合同类的服务工单信息 API请求 +tmall.servicecenter.contracts.search + +获取合同类的服务工单信息 +*/ +type TmallServicecenterContractsSearchAPIRequest struct { + model.Params + // 开始时间: 开始时间和结束时间不能超过15分钟 + _start int64 + // 结束时间: 开始时间和结束时间不能超过15分钟 + _end int64 +} + +// 初始化TmallServicecenterContractsSearchAPIRequest对象 +func NewTmallServicecenterContractsSearchRequest() *TmallServicecenterContractsSearchAPIRequest{ + return &TmallServicecenterContractsSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterContractsSearchAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.contracts.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterContractsSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Start Setter +// 开始时间: 开始时间和结束时间不能超过15分钟 +func (r *TmallServicecenterContractsSearchAPIRequest) SetStart(_start int64) error { + r._start = _start + r.Set("start", _start) + return nil +} + +// Start Getter +func (r TmallServicecenterContractsSearchAPIRequest) GetStart() int64 { + return r._start +} +// End Setter +// 结束时间: 开始时间和结束时间不能超过15分钟 +func (r *TmallServicecenterContractsSearchAPIRequest) SetEnd(_end int64) error { + r._end = _end + r.Set("end", _end) + return nil +} + +// End Getter +func (r TmallServicecenterContractsSearchAPIRequest) GetEnd() int64 { + return r._end +} diff --git a/model/tmallservice/TmallServicecenterContractsSearchAPIResponse.go b/model/tmallservice/TmallServicecenterContractsSearchAPIResponse.go new file mode 100644 index 0000000000..9b816cef36 --- /dev/null +++ b/model/tmallservice/TmallServicecenterContractsSearchAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取合同类的服务工单信息 API返回值 +tmall.servicecenter.contracts.search + +获取合同类的服务工单信息 +*/ +type TmallServicecenterContractsSearchAPIResponse struct { + model.CommonResponse + TmallServicecenterContractsSearchAPIResponseModel +} + +// 获取合同类的服务工单信息 成功返回结果 +type TmallServicecenterContractsSearchAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_contracts_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 和同类服务包装类 + ServiceContractPacket *ServiceContractPacket `json:"service_contract_packet,omitempty" xml:"service_contract_packet,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterContractsSearchResponse.go b/model/tmallservice/TmallServicecenterContractsSearchResponse.go deleted file mode 100644 index 7f95336f79..0000000000 --- a/model/tmallservice/TmallServicecenterContractsSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取合同类的服务工单信息 API返回值 -tmall.servicecenter.contracts.search - -获取合同类的服务工单信息 -*/ -type TmallServicecenterContractsSearchAPIResponse struct { - model.CommonResponse - TmallServicecenterContractsSearchResponse -} - -// 获取合同类的服务工单信息 成功返回结果 -type TmallServicecenterContractsSearchResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_contracts_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 和同类服务包装类 - ServiceContractPacket *ServiceContractPacket `json:"service_contract_packet,omitempty" xml:"service_contract_packet,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterIdentifytaskCreateAPIRequest.go b/model/tmallservice/TmallServicecenterIdentifytaskCreateAPIRequest.go new file mode 100644 index 0000000000..27f0834842 --- /dev/null +++ b/model/tmallservice/TmallServicecenterIdentifytaskCreateAPIRequest.go @@ -0,0 +1,80 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商创建核销单 API请求 +tmall.servicecenter.identifytask.create + +服务商调用该接口进行创建核销单操作 +*/ +type TmallServicecenterIdentifytaskCreateAPIRequest struct { + model.Params + // 工单列表 + _workcardIds []int64 + // 是否改派 + _reassign bool + // 服务商自定义的外部核销单id + _outerId string +} + +// 初始化TmallServicecenterIdentifytaskCreateAPIRequest对象 +func NewTmallServicecenterIdentifytaskCreateRequest() *TmallServicecenterIdentifytaskCreateAPIRequest{ + return &TmallServicecenterIdentifytaskCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterIdentifytaskCreateAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.identifytask.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterIdentifytaskCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkcardIds Setter +// 工单列表 +func (r *TmallServicecenterIdentifytaskCreateAPIRequest) SetWorkcardIds(_workcardIds []int64) error { + r._workcardIds = _workcardIds + r.Set("workcard_ids", _workcardIds) + return nil +} + +// WorkcardIds Getter +func (r TmallServicecenterIdentifytaskCreateAPIRequest) GetWorkcardIds() []int64 { + return r._workcardIds +} +// Reassign Setter +// 是否改派 +func (r *TmallServicecenterIdentifytaskCreateAPIRequest) SetReassign(_reassign bool) error { + r._reassign = _reassign + r.Set("reassign", _reassign) + return nil +} + +// Reassign Getter +func (r TmallServicecenterIdentifytaskCreateAPIRequest) GetReassign() bool { + return r._reassign +} +// OuterId Setter +// 服务商自定义的外部核销单id +func (r *TmallServicecenterIdentifytaskCreateAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TmallServicecenterIdentifytaskCreateAPIRequest) GetOuterId() string { + return r._outerId +} diff --git a/model/tmallservice/TmallServicecenterIdentifytaskCreateAPIResponse.go b/model/tmallservice/TmallServicecenterIdentifytaskCreateAPIResponse.go new file mode 100644 index 0000000000..7bd10d141e --- /dev/null +++ b/model/tmallservice/TmallServicecenterIdentifytaskCreateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商创建核销单 API返回值 +tmall.servicecenter.identifytask.create + +服务商调用该接口进行创建核销单操作 +*/ +type TmallServicecenterIdentifytaskCreateAPIResponse struct { + model.CommonResponse + TmallServicecenterIdentifytaskCreateAPIResponseModel +} + +// 服务商创建核销单 成功返回结果 +type TmallServicecenterIdentifytaskCreateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_identifytask_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // - + Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterIdentifytaskCreateResponse.go b/model/tmallservice/TmallServicecenterIdentifytaskCreateResponse.go deleted file mode 100644 index a2fed6f372..0000000000 --- a/model/tmallservice/TmallServicecenterIdentifytaskCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商创建核销单 API返回值 -tmall.servicecenter.identifytask.create - -服务商调用该接口进行创建核销单操作 -*/ -type TmallServicecenterIdentifytaskCreateAPIResponse struct { - model.CommonResponse - TmallServicecenterIdentifytaskCreateResponse -} - -// 服务商创建核销单 成功返回结果 -type TmallServicecenterIdentifytaskCreateResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_identifytask_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - - Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterMsfTasksUpdateAPIRequest.go b/model/tmallservice/TmallServicecenterMsfTasksUpdateAPIRequest.go new file mode 100644 index 0000000000..603bb48a77 --- /dev/null +++ b/model/tmallservice/TmallServicecenterMsfTasksUpdateAPIRequest.go @@ -0,0 +1,108 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +喵师傅工人任务批量完成接口 API请求 +tmall.servicecenter.msf.tasks.update + +喵师傅工人任务批量完成接口 +*/ +type TmallServicecenterMsfTasksUpdateAPIRequest struct { + model.Params + // 工人手机号 + _workerMobile int64 + // 服务编码 + _serviceCode string + // 调用来源 + _source string + // 子订单号列表。最多100个 + _bizOrderIds []int64 + // 周期序号。必须与子订单列表对应 + _seqs []int64 +} + +// 初始化TmallServicecenterMsfTasksUpdateAPIRequest对象 +func NewTmallServicecenterMsfTasksUpdateRequest() *TmallServicecenterMsfTasksUpdateAPIRequest{ + return &TmallServicecenterMsfTasksUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterMsfTasksUpdateAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.msf.tasks.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterMsfTasksUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkerMobile Setter +// 工人手机号 +func (r *TmallServicecenterMsfTasksUpdateAPIRequest) SetWorkerMobile(_workerMobile int64) error { + r._workerMobile = _workerMobile + r.Set("worker_mobile", _workerMobile) + return nil +} + +// WorkerMobile Getter +func (r TmallServicecenterMsfTasksUpdateAPIRequest) GetWorkerMobile() int64 { + return r._workerMobile +} +// ServiceCode Setter +// 服务编码 +func (r *TmallServicecenterMsfTasksUpdateAPIRequest) SetServiceCode(_serviceCode string) error { + r._serviceCode = _serviceCode + r.Set("service_code", _serviceCode) + return nil +} + +// ServiceCode Getter +func (r TmallServicecenterMsfTasksUpdateAPIRequest) GetServiceCode() string { + return r._serviceCode +} +// Source Setter +// 调用来源 +func (r *TmallServicecenterMsfTasksUpdateAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TmallServicecenterMsfTasksUpdateAPIRequest) GetSource() string { + return r._source +} +// BizOrderIds Setter +// 子订单号列表。最多100个 +func (r *TmallServicecenterMsfTasksUpdateAPIRequest) SetBizOrderIds(_bizOrderIds []int64) error { + r._bizOrderIds = _bizOrderIds + r.Set("biz_order_ids", _bizOrderIds) + return nil +} + +// BizOrderIds Getter +func (r TmallServicecenterMsfTasksUpdateAPIRequest) GetBizOrderIds() []int64 { + return r._bizOrderIds +} +// Seqs Setter +// 周期序号。必须与子订单列表对应 +func (r *TmallServicecenterMsfTasksUpdateAPIRequest) SetSeqs(_seqs []int64) error { + r._seqs = _seqs + r.Set("seqs", _seqs) + return nil +} + +// Seqs Getter +func (r TmallServicecenterMsfTasksUpdateAPIRequest) GetSeqs() []int64 { + return r._seqs +} diff --git a/model/tmallservice/TmallServicecenterMsfTasksUpdateAPIResponse.go b/model/tmallservice/TmallServicecenterMsfTasksUpdateAPIResponse.go new file mode 100644 index 0000000000..9149608974 --- /dev/null +++ b/model/tmallservice/TmallServicecenterMsfTasksUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +喵师傅工人任务批量完成接口 API返回值 +tmall.servicecenter.msf.tasks.update + +喵师傅工人任务批量完成接口 +*/ +type TmallServicecenterMsfTasksUpdateAPIResponse struct { + model.CommonResponse + TmallServicecenterMsfTasksUpdateAPIResponseModel +} + +// 喵师傅工人任务批量完成接口 成功返回结果 +type TmallServicecenterMsfTasksUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_msf_tasks_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterMsfTasksUpdateResponse.go b/model/tmallservice/TmallServicecenterMsfTasksUpdateResponse.go deleted file mode 100644 index f9500e0981..0000000000 --- a/model/tmallservice/TmallServicecenterMsfTasksUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -喵师傅工人任务批量完成接口 API返回值 -tmall.servicecenter.msf.tasks.update - -喵师傅工人任务批量完成接口 -*/ -type TmallServicecenterMsfTasksUpdateAPIResponse struct { - model.CommonResponse - TmallServicecenterMsfTasksUpdateResponse -} - -// 喵师傅工人任务批量完成接口 成功返回结果 -type TmallServicecenterMsfTasksUpdateResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_msf_tasks_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterPictureUploadAPIRequest.go b/model/tmallservice/TmallServicecenterPictureUploadAPIRequest.go new file mode 100644 index 0000000000..6b6f0a368a --- /dev/null +++ b/model/tmallservice/TmallServicecenterPictureUploadAPIRequest.go @@ -0,0 +1,80 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传图片 API请求 +tmall.servicecenter.picture.upload + +给服务商ERP系统使用,用于上传图片保存在天猫,一般用于工单信息回传时候保存服务商的服务证明信息相关的图片。 +*/ +type TmallServicecenterPictureUploadAPIRequest struct { + model.Params + // 图片文件二进制流 + _img *model.File + // 图片全称包括扩展名。目前支持 jpg jpeg png + _pictureName string + // true返回Https地址 + _isHttps bool +} + +// 初始化TmallServicecenterPictureUploadAPIRequest对象 +func NewTmallServicecenterPictureUploadRequest() *TmallServicecenterPictureUploadAPIRequest{ + return &TmallServicecenterPictureUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterPictureUploadAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.picture.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterPictureUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Img Setter +// 图片文件二进制流 +func (r *TmallServicecenterPictureUploadAPIRequest) SetImg(_img *model.File) error { + r._img = _img + r.Set("img", _img) + return nil +} + +// Img Getter +func (r TmallServicecenterPictureUploadAPIRequest) GetImg() *model.File { + return r._img +} +// PictureName Setter +// 图片全称包括扩展名。目前支持 jpg jpeg png +func (r *TmallServicecenterPictureUploadAPIRequest) SetPictureName(_pictureName string) error { + r._pictureName = _pictureName + r.Set("picture_name", _pictureName) + return nil +} + +// PictureName Getter +func (r TmallServicecenterPictureUploadAPIRequest) GetPictureName() string { + return r._pictureName +} +// IsHttps Setter +// true返回Https地址 +func (r *TmallServicecenterPictureUploadAPIRequest) SetIsHttps(_isHttps bool) error { + r._isHttps = _isHttps + r.Set("is_https", _isHttps) + return nil +} + +// IsHttps Getter +func (r TmallServicecenterPictureUploadAPIRequest) GetIsHttps() bool { + return r._isHttps +} diff --git a/model/tmallservice/TmallServicecenterPictureUploadAPIResponse.go b/model/tmallservice/TmallServicecenterPictureUploadAPIResponse.go new file mode 100644 index 0000000000..bd688a01ce --- /dev/null +++ b/model/tmallservice/TmallServicecenterPictureUploadAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传图片 API返回值 +tmall.servicecenter.picture.upload + +给服务商ERP系统使用,用于上传图片保存在天猫,一般用于工单信息回传时候保存服务商的服务证明信息相关的图片。 +*/ +type TmallServicecenterPictureUploadAPIResponse struct { + model.CommonResponse + TmallServicecenterPictureUploadAPIResponseModel +} + +// 上传图片 成功返回结果 +type TmallServicecenterPictureUploadAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_picture_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterPictureUploadResponse.go b/model/tmallservice/TmallServicecenterPictureUploadResponse.go deleted file mode 100644 index fe78e77f34..0000000000 --- a/model/tmallservice/TmallServicecenterPictureUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传图片 API返回值 -tmall.servicecenter.picture.upload - -给服务商ERP系统使用,用于上传图片保存在天猫,一般用于工单信息回传时候保存服务商的服务证明信息相关的图片。 -*/ -type TmallServicecenterPictureUploadAPIResponse struct { - model.CommonResponse - TmallServicecenterPictureUploadResponse -} - -// 上传图片 成功返回结果 -type TmallServicecenterPictureUploadResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_picture_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterServiceTypeQueryallAPIRequest.go b/model/tmallservice/TmallServicecenterServiceTypeQueryallAPIRequest.go new file mode 100644 index 0000000000..8be1af322c --- /dev/null +++ b/model/tmallservice/TmallServicecenterServiceTypeQueryallAPIRequest.go @@ -0,0 +1,38 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务供应链服务类型 API请求 +tmall.servicecenter.service.type.queryall + +查询天猫服务类型列表 +*/ +type TmallServicecenterServiceTypeQueryallAPIRequest struct { + model.Params +} + +// 初始化TmallServicecenterServiceTypeQueryallAPIRequest对象 +func NewTmallServicecenterServiceTypeQueryallRequest() *TmallServicecenterServiceTypeQueryallAPIRequest{ + return &TmallServicecenterServiceTypeQueryallAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterServiceTypeQueryallAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.service.type.queryall" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterServiceTypeQueryallAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/tmallservice/TmallServicecenterServiceTypeQueryallAPIResponse.go b/model/tmallservice/TmallServicecenterServiceTypeQueryallAPIResponse.go new file mode 100644 index 0000000000..df096aeab1 --- /dev/null +++ b/model/tmallservice/TmallServicecenterServiceTypeQueryallAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务供应链服务类型 API返回值 +tmall.servicecenter.service.type.queryall + +查询天猫服务类型列表 +*/ +type TmallServicecenterServiceTypeQueryallAPIResponse struct { + model.CommonResponse + TmallServicecenterServiceTypeQueryallAPIResponseModel +} + +// 服务供应链服务类型 成功返回结果 +type TmallServicecenterServiceTypeQueryallAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_service_type_queryall_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterServiceTypeQueryallResponse.go b/model/tmallservice/TmallServicecenterServiceTypeQueryallResponse.go deleted file mode 100644 index 0775063750..0000000000 --- a/model/tmallservice/TmallServicecenterServiceTypeQueryallResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务供应链服务类型 API返回值 -tmall.servicecenter.service.type.queryall - -查询天猫服务类型列表 -*/ -type TmallServicecenterServiceTypeQueryallAPIResponse struct { - model.CommonResponse - TmallServicecenterServiceTypeQueryallResponse -} - -// 服务供应链服务类型 成功返回结果 -type TmallServicecenterServiceTypeQueryallResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_service_type_queryall_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterServicemonitormessageSearchAPIRequest.go b/model/tmallservice/TmallServicecenterServicemonitormessageSearchAPIRequest.go new file mode 100644 index 0000000000..32546c411f --- /dev/null +++ b/model/tmallservice/TmallServicecenterServicemonitormessageSearchAPIRequest.go @@ -0,0 +1,66 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据时间段查询服务商的服务预警消息列表(15分钟内) API请求 +tmall.servicecenter.servicemonitormessage.search + +根据时间段查询服务商的服务预警消息列表(15分钟内) +*/ +type TmallServicecenterServicemonitormessageSearchAPIRequest struct { + model.Params + // 开始时间long值 + _start int64 + // 结束时间long值,与start相差15分钟 + _end int64 +} + +// 初始化TmallServicecenterServicemonitormessageSearchAPIRequest对象 +func NewTmallServicecenterServicemonitormessageSearchRequest() *TmallServicecenterServicemonitormessageSearchAPIRequest{ + return &TmallServicecenterServicemonitormessageSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterServicemonitormessageSearchAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.servicemonitormessage.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterServicemonitormessageSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Start Setter +// 开始时间long值 +func (r *TmallServicecenterServicemonitormessageSearchAPIRequest) SetStart(_start int64) error { + r._start = _start + r.Set("start", _start) + return nil +} + +// Start Getter +func (r TmallServicecenterServicemonitormessageSearchAPIRequest) GetStart() int64 { + return r._start +} +// End Setter +// 结束时间long值,与start相差15分钟 +func (r *TmallServicecenterServicemonitormessageSearchAPIRequest) SetEnd(_end int64) error { + r._end = _end + r.Set("end", _end) + return nil +} + +// End Getter +func (r TmallServicecenterServicemonitormessageSearchAPIRequest) GetEnd() int64 { + return r._end +} diff --git a/model/tmallservice/TmallServicecenterServicemonitormessageSearchAPIResponse.go b/model/tmallservice/TmallServicecenterServicemonitormessageSearchAPIResponse.go new file mode 100644 index 0000000000..e796c3b1ab --- /dev/null +++ b/model/tmallservice/TmallServicecenterServicemonitormessageSearchAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据时间段查询服务商的服务预警消息列表(15分钟内) API返回值 +tmall.servicecenter.servicemonitormessage.search + +根据时间段查询服务商的服务预警消息列表(15分钟内) +*/ +type TmallServicecenterServicemonitormessageSearchAPIResponse struct { + model.CommonResponse + TmallServicecenterServicemonitormessageSearchAPIResponseModel +} + +// 根据时间段查询服务商的服务预警消息列表(15分钟内) 成功返回结果 +type TmallServicecenterServicemonitormessageSearchAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_servicemonitormessage_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterServicemonitormessageSearchResponse.go b/model/tmallservice/TmallServicecenterServicemonitormessageSearchResponse.go deleted file mode 100644 index 377f8b662f..0000000000 --- a/model/tmallservice/TmallServicecenterServicemonitormessageSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据时间段查询服务商的服务预警消息列表(15分钟内) API返回值 -tmall.servicecenter.servicemonitormessage.search - -根据时间段查询服务商的服务预警消息列表(15分钟内) -*/ -type TmallServicecenterServicemonitormessageSearchAPIResponse struct { - model.CommonResponse - TmallServicecenterServicemonitormessageSearchResponse -} - -// 根据时间段查询服务商的服务预警消息列表(15分钟内) 成功返回结果 -type TmallServicecenterServicemonitormessageSearchResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_servicemonitormessage_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterServicemonitormessageUpdateAPIRequest.go b/model/tmallservice/TmallServicecenterServicemonitormessageUpdateAPIRequest.go new file mode 100644 index 0000000000..3ce17a12e2 --- /dev/null +++ b/model/tmallservice/TmallServicecenterServicemonitormessageUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商更新预警消息状态 API请求 +tmall.servicecenter.servicemonitormessage.update + +服务商收到预警后,需要进行回复已读状态,并可填写备注 +*/ +type TmallServicecenterServicemonitormessageUpdateAPIRequest struct { + model.Params + // 预警消息id + _serviceMonitorMessageId int64 + // 预警处理备注 + _memo string + // 可更新状态:3、已读 + _status int64 +} + +// 初始化TmallServicecenterServicemonitormessageUpdateAPIRequest对象 +func NewTmallServicecenterServicemonitormessageUpdateRequest() *TmallServicecenterServicemonitormessageUpdateAPIRequest{ + return &TmallServicecenterServicemonitormessageUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterServicemonitormessageUpdateAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.servicemonitormessage.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterServicemonitormessageUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceMonitorMessageId Setter +// 预警消息id +func (r *TmallServicecenterServicemonitormessageUpdateAPIRequest) SetServiceMonitorMessageId(_serviceMonitorMessageId int64) error { + r._serviceMonitorMessageId = _serviceMonitorMessageId + r.Set("service_monitor_message_id", _serviceMonitorMessageId) + return nil +} + +// ServiceMonitorMessageId Getter +func (r TmallServicecenterServicemonitormessageUpdateAPIRequest) GetServiceMonitorMessageId() int64 { + return r._serviceMonitorMessageId +} +// Memo Setter +// 预警处理备注 +func (r *TmallServicecenterServicemonitormessageUpdateAPIRequest) SetMemo(_memo string) error { + r._memo = _memo + r.Set("memo", _memo) + return nil +} + +// Memo Getter +func (r TmallServicecenterServicemonitormessageUpdateAPIRequest) GetMemo() string { + return r._memo +} +// Status Setter +// 可更新状态:3、已读 +func (r *TmallServicecenterServicemonitormessageUpdateAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TmallServicecenterServicemonitormessageUpdateAPIRequest) GetStatus() int64 { + return r._status +} diff --git a/model/tmallservice/TmallServicecenterServicemonitormessageUpdateAPIResponse.go b/model/tmallservice/TmallServicecenterServicemonitormessageUpdateAPIResponse.go new file mode 100644 index 0000000000..bff1c3bffe --- /dev/null +++ b/model/tmallservice/TmallServicecenterServicemonitormessageUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商更新预警消息状态 API返回值 +tmall.servicecenter.servicemonitormessage.update + +服务商收到预警后,需要进行回复已读状态,并可填写备注 +*/ +type TmallServicecenterServicemonitormessageUpdateAPIResponse struct { + model.CommonResponse + TmallServicecenterServicemonitormessageUpdateAPIResponseModel +} + +// 服务商更新预警消息状态 成功返回结果 +type TmallServicecenterServicemonitormessageUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_servicemonitormessage_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterServicemonitormessageUpdateResponse.go b/model/tmallservice/TmallServicecenterServicemonitormessageUpdateResponse.go deleted file mode 100644 index 3e07a203ca..0000000000 --- a/model/tmallservice/TmallServicecenterServicemonitormessageUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商更新预警消息状态 API返回值 -tmall.servicecenter.servicemonitormessage.update - -服务商收到预警后,需要进行回复已读状态,并可填写备注 -*/ -type TmallServicecenterServicemonitormessageUpdateAPIResponse struct { - model.CommonResponse - TmallServicecenterServicemonitormessageUpdateResponse -} - -// 服务商更新预警消息状态 成功返回结果 -type TmallServicecenterServicemonitormessageUpdateResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_servicemonitormessage_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterServicestoreCreateAPIRequest.go b/model/tmallservice/TmallServicecenterServicestoreCreateAPIRequest.go new file mode 100644 index 0000000000..4dedb34af7 --- /dev/null +++ b/model/tmallservice/TmallServicecenterServicestoreCreateAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建门店 API请求 +tmall.servicecenter.servicestore.create + +用于创建门店/网点。多个业务共用 +*/ +type TmallServicecenterServicestoreCreateAPIRequest struct { + model.Params + // 网点/门店 + _serviceStore *ServiceStoreDto +} + +// 初始化TmallServicecenterServicestoreCreateAPIRequest对象 +func NewTmallServicecenterServicestoreCreateRequest() *TmallServicecenterServicestoreCreateAPIRequest{ + return &TmallServicecenterServicestoreCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterServicestoreCreateAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.servicestore.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterServicestoreCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceStore Setter +// 网点/门店 +func (r *TmallServicecenterServicestoreCreateAPIRequest) SetServiceStore(_serviceStore *ServiceStoreDto) error { + r._serviceStore = _serviceStore + r.Set("service_store", _serviceStore) + return nil +} + +// ServiceStore Getter +func (r TmallServicecenterServicestoreCreateAPIRequest) GetServiceStore() *ServiceStoreDto { + return r._serviceStore +} diff --git a/model/tmallservice/TmallServicecenterServicestoreCreateAPIResponse.go b/model/tmallservice/TmallServicecenterServicestoreCreateAPIResponse.go new file mode 100644 index 0000000000..39274cd1e5 --- /dev/null +++ b/model/tmallservice/TmallServicecenterServicestoreCreateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建门店 API返回值 +tmall.servicecenter.servicestore.create + +用于创建门店/网点。多个业务共用 +*/ +type TmallServicecenterServicestoreCreateAPIResponse struct { + model.CommonResponse + TmallServicecenterServicestoreCreateAPIResponseModel +} + +// 创建门店 成功返回结果 +type TmallServicecenterServicestoreCreateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_servicestore_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 方法调用结果 + Result *TmallServicecenterServicestoreCreateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterServicestoreCreateResponse.go b/model/tmallservice/TmallServicecenterServicestoreCreateResponse.go deleted file mode 100644 index 2378602883..0000000000 --- a/model/tmallservice/TmallServicecenterServicestoreCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建门店 API返回值 -tmall.servicecenter.servicestore.create - -用于创建门店/网点。多个业务共用 -*/ -type TmallServicecenterServicestoreCreateAPIResponse struct { - model.CommonResponse - TmallServicecenterServicestoreCreateResponse -} - -// 创建门店 成功返回结果 -type TmallServicecenterServicestoreCreateResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_servicestore_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 方法调用结果 - Result *TmallServicecenterServicestoreCreateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterServicestoreCreateservicestoreAPIRequest.go b/model/tmallservice/TmallServicecenterServicestoreCreateservicestoreAPIRequest.go new file mode 100644 index 0000000000..ed74096ca9 --- /dev/null +++ b/model/tmallservice/TmallServicecenterServicestoreCreateservicestoreAPIRequest.go @@ -0,0 +1,65 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务网点创建 API请求 +tmall.servicecenter.servicestore.createservicestore + +创建网点信息。对于同一个服务商,通过 service_store_code 保证网点唯一性。需要保证网点不存在才能创建。地址信息:中文和编码二选一,都填则以编码address_code为准。 +错误码 +1, 服务商昵称无效 +2, 缺少省份 +3, 缺少城市 +4, 缺少区域 +5, 缺少详细地址 +6, 传入地址不在标准地址库中,无法解析 +7, 缺少网点编码 +8, 缺少网点名称 +9, 缺少网点电话 +10, 网点已存在 +11, 网点不存在 +12, 系统错误 +*/ +type TmallServicecenterServicestoreCreateservicestoreAPIRequest struct { + model.Params + // 网点 + _serviceStore *ServiceStoreDto +} + +// 初始化TmallServicecenterServicestoreCreateservicestoreAPIRequest对象 +func NewTmallServicecenterServicestoreCreateservicestoreRequest() *TmallServicecenterServicestoreCreateservicestoreAPIRequest{ + return &TmallServicecenterServicestoreCreateservicestoreAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterServicestoreCreateservicestoreAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.servicestore.createservicestore" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterServicestoreCreateservicestoreAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceStore Setter +// 网点 +func (r *TmallServicecenterServicestoreCreateservicestoreAPIRequest) SetServiceStore(_serviceStore *ServiceStoreDto) error { + r._serviceStore = _serviceStore + r.Set("service_store", _serviceStore) + return nil +} + +// ServiceStore Getter +func (r TmallServicecenterServicestoreCreateservicestoreAPIRequest) GetServiceStore() *ServiceStoreDto { + return r._serviceStore +} diff --git a/model/tmallservice/TmallServicecenterServicestoreCreateservicestoreAPIResponse.go b/model/tmallservice/TmallServicecenterServicestoreCreateservicestoreAPIResponse.go new file mode 100644 index 0000000000..4ee0137350 --- /dev/null +++ b/model/tmallservice/TmallServicecenterServicestoreCreateservicestoreAPIResponse.go @@ -0,0 +1,40 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务网点创建 API返回值 +tmall.servicecenter.servicestore.createservicestore + +创建网点信息。对于同一个服务商,通过 service_store_code 保证网点唯一性。需要保证网点不存在才能创建。地址信息:中文和编码二选一,都填则以编码address_code为准。 +错误码 +1, 服务商昵称无效 +2, 缺少省份 +3, 缺少城市 +4, 缺少区域 +5, 缺少详细地址 +6, 传入地址不在标准地址库中,无法解析 +7, 缺少网点编码 +8, 缺少网点名称 +9, 缺少网点电话 +10, 网点已存在 +11, 网点不存在 +12, 系统错误 +*/ +type TmallServicecenterServicestoreCreateservicestoreAPIResponse struct { + model.CommonResponse + TmallServicecenterServicestoreCreateservicestoreAPIResponseModel +} + +// 服务网点创建 成功返回结果 +type TmallServicecenterServicestoreCreateservicestoreAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_servicestore_createservicestore_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterServicestoreCreateservicestoreResponse.go b/model/tmallservice/TmallServicecenterServicestoreCreateservicestoreResponse.go deleted file mode 100644 index 979d705b73..0000000000 --- a/model/tmallservice/TmallServicecenterServicestoreCreateservicestoreResponse.go +++ /dev/null @@ -1,40 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务网点创建 API返回值 -tmall.servicecenter.servicestore.createservicestore - -创建网点信息。对于同一个服务商,通过 service_store_code 保证网点唯一性。需要保证网点不存在才能创建。地址信息:中文和编码二选一,都填则以编码address_code为准。 -错误码 -1, 服务商昵称无效 -2, 缺少省份 -3, 缺少城市 -4, 缺少区域 -5, 缺少详细地址 -6, 传入地址不在标准地址库中,无法解析 -7, 缺少网点编码 -8, 缺少网点名称 -9, 缺少网点电话 -10, 网点已存在 -11, 网点不存在 -12, 系统错误 -*/ -type TmallServicecenterServicestoreCreateservicestoreAPIResponse struct { - model.CommonResponse - TmallServicecenterServicestoreCreateservicestoreResponse -} - -// 服务网点创建 成功返回结果 -type TmallServicecenterServicestoreCreateservicestoreResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_servicestore_createservicestore_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterServicestoreDeleteservicestoreAPIRequest.go b/model/tmallservice/TmallServicecenterServicestoreDeleteservicestoreAPIRequest.go new file mode 100644 index 0000000000..e38dd448be --- /dev/null +++ b/model/tmallservice/TmallServicecenterServicestoreDeleteservicestoreAPIRequest.go @@ -0,0 +1,65 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除网点 API请求 +tmall.servicecenter.servicestore.deleteservicestore + +删除网点信息。对于同一个服务商,通过 service_store_code 删除网点。 +错误码 +1, 服务商昵称无效 +2, 缺少省份 +3, 缺少城市 +4, 缺少区域 +5, 缺少详细地址 +6, 传入地址不在标准地址库中,无法解析 +7, 缺少网点编码 +8, 缺少网点名称 +9, 缺少网点电话 +10, 网点已存在 +11, 网点不存在 +12, 系统错误 +*/ +type TmallServicecenterServicestoreDeleteservicestoreAPIRequest struct { + model.Params + // 网点名称 + _serviceStoreCode string +} + +// 初始化TmallServicecenterServicestoreDeleteservicestoreAPIRequest对象 +func NewTmallServicecenterServicestoreDeleteservicestoreRequest() *TmallServicecenterServicestoreDeleteservicestoreAPIRequest{ + return &TmallServicecenterServicestoreDeleteservicestoreAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterServicestoreDeleteservicestoreAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.servicestore.deleteservicestore" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterServicestoreDeleteservicestoreAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceStoreCode Setter +// 网点名称 +func (r *TmallServicecenterServicestoreDeleteservicestoreAPIRequest) SetServiceStoreCode(_serviceStoreCode string) error { + r._serviceStoreCode = _serviceStoreCode + r.Set("service_store_code", _serviceStoreCode) + return nil +} + +// ServiceStoreCode Getter +func (r TmallServicecenterServicestoreDeleteservicestoreAPIRequest) GetServiceStoreCode() string { + return r._serviceStoreCode +} diff --git a/model/tmallservice/TmallServicecenterServicestoreDeleteservicestoreAPIResponse.go b/model/tmallservice/TmallServicecenterServicestoreDeleteservicestoreAPIResponse.go new file mode 100644 index 0000000000..0de14f4a16 --- /dev/null +++ b/model/tmallservice/TmallServicecenterServicestoreDeleteservicestoreAPIResponse.go @@ -0,0 +1,40 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除网点 API返回值 +tmall.servicecenter.servicestore.deleteservicestore + +删除网点信息。对于同一个服务商,通过 service_store_code 删除网点。 +错误码 +1, 服务商昵称无效 +2, 缺少省份 +3, 缺少城市 +4, 缺少区域 +5, 缺少详细地址 +6, 传入地址不在标准地址库中,无法解析 +7, 缺少网点编码 +8, 缺少网点名称 +9, 缺少网点电话 +10, 网点已存在 +11, 网点不存在 +12, 系统错误 +*/ +type TmallServicecenterServicestoreDeleteservicestoreAPIResponse struct { + model.CommonResponse + TmallServicecenterServicestoreDeleteservicestoreAPIResponseModel +} + +// 删除网点 成功返回结果 +type TmallServicecenterServicestoreDeleteservicestoreAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_servicestore_deleteservicestore_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterServicestoreDeleteservicestoreResponse.go b/model/tmallservice/TmallServicecenterServicestoreDeleteservicestoreResponse.go deleted file mode 100644 index 26f2d8146d..0000000000 --- a/model/tmallservice/TmallServicecenterServicestoreDeleteservicestoreResponse.go +++ /dev/null @@ -1,40 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除网点 API返回值 -tmall.servicecenter.servicestore.deleteservicestore - -删除网点信息。对于同一个服务商,通过 service_store_code 删除网点。 -错误码 -1, 服务商昵称无效 -2, 缺少省份 -3, 缺少城市 -4, 缺少区域 -5, 缺少详细地址 -6, 传入地址不在标准地址库中,无法解析 -7, 缺少网点编码 -8, 缺少网点名称 -9, 缺少网点电话 -10, 网点已存在 -11, 网点不存在 -12, 系统错误 -*/ -type TmallServicecenterServicestoreDeleteservicestoreAPIResponse struct { - model.CommonResponse - TmallServicecenterServicestoreDeleteservicestoreResponse -} - -// 删除网点 成功返回结果 -type TmallServicecenterServicestoreDeleteservicestoreResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_servicestore_deleteservicestore_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIRequest.go b/model/tmallservice/TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIRequest.go new file mode 100644 index 0000000000..fcafca0866 --- /dev/null +++ b/model/tmallservice/TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIRequest.go @@ -0,0 +1,67 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除网点覆盖的服务 API请求 +tmall.servicecenter.servicestore.deleteservicestorecoverservice + +天猫服务平台删除网点覆盖的服务, +必选字段:serviceStoreCode、bizType +*/ +type TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIRequest struct { + model.Params + // 网点编码 + _serviceStoreCode string + // 业务类型 + _bizType string +} + +// 初始化TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIRequest对象 +func NewTmallServicecenterServicestoreDeleteservicestorecoverserviceRequest() *TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIRequest{ + return &TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.servicestore.deleteservicestorecoverservice" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceStoreCode Setter +// 网点编码 +func (r *TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIRequest) SetServiceStoreCode(_serviceStoreCode string) error { + r._serviceStoreCode = _serviceStoreCode + r.Set("service_store_code", _serviceStoreCode) + return nil +} + +// ServiceStoreCode Getter +func (r TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIRequest) GetServiceStoreCode() string { + return r._serviceStoreCode +} +// BizType Setter +// 业务类型 +func (r *TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIRequest) GetBizType() string { + return r._bizType +} diff --git a/model/tmallservice/TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIResponse.go b/model/tmallservice/TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIResponse.go new file mode 100644 index 0000000000..00181dec7b --- /dev/null +++ b/model/tmallservice/TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIResponse.go @@ -0,0 +1,28 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除网点覆盖的服务 API返回值 +tmall.servicecenter.servicestore.deleteservicestorecoverservice + +天猫服务平台删除网点覆盖的服务, +必选字段:serviceStoreCode、bizType +*/ +type TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIResponse struct { + model.CommonResponse + TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIResponseModel +} + +// 删除网点覆盖的服务 成功返回结果 +type TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_servicestore_deleteservicestorecoverservice_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterServicestoreDeleteservicestorecoverserviceResponse.go b/model/tmallservice/TmallServicecenterServicestoreDeleteservicestorecoverserviceResponse.go deleted file mode 100644 index 67b9566cee..0000000000 --- a/model/tmallservice/TmallServicecenterServicestoreDeleteservicestorecoverserviceResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除网点覆盖的服务 API返回值 -tmall.servicecenter.servicestore.deleteservicestorecoverservice - -天猫服务平台删除网点覆盖的服务, -必选字段:serviceStoreCode、bizType -*/ -type TmallServicecenterServicestoreDeleteservicestorecoverserviceAPIResponse struct { - model.CommonResponse - TmallServicecenterServicestoreDeleteservicestorecoverserviceResponse -} - -// 删除网点覆盖的服务 成功返回结果 -type TmallServicecenterServicestoreDeleteservicestorecoverserviceResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_servicestore_deleteservicestorecoverservice_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterServicestoreUpdateAPIRequest.go b/model/tmallservice/TmallServicecenterServicestoreUpdateAPIRequest.go new file mode 100644 index 0000000000..68476ac630 --- /dev/null +++ b/model/tmallservice/TmallServicecenterServicestoreUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改门店信息 API请求 +tmall.servicecenter.servicestore.update + +用于修改门店/网点信息。多个业务共用 +*/ +type TmallServicecenterServicestoreUpdateAPIRequest struct { + model.Params + // 网点/门店 + _paramServiceStoreDTO *ServiceStoreDto +} + +// 初始化TmallServicecenterServicestoreUpdateAPIRequest对象 +func NewTmallServicecenterServicestoreUpdateRequest() *TmallServicecenterServicestoreUpdateAPIRequest{ + return &TmallServicecenterServicestoreUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterServicestoreUpdateAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.servicestore.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterServicestoreUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamServiceStoreDTO Setter +// 网点/门店 +func (r *TmallServicecenterServicestoreUpdateAPIRequest) SetParamServiceStoreDTO(_paramServiceStoreDTO *ServiceStoreDto) error { + r._paramServiceStoreDTO = _paramServiceStoreDTO + r.Set("param_service_store_d_t_o", _paramServiceStoreDTO) + return nil +} + +// ParamServiceStoreDTO Getter +func (r TmallServicecenterServicestoreUpdateAPIRequest) GetParamServiceStoreDTO() *ServiceStoreDto { + return r._paramServiceStoreDTO +} diff --git a/model/tmallservice/TmallServicecenterServicestoreUpdateAPIResponse.go b/model/tmallservice/TmallServicecenterServicestoreUpdateAPIResponse.go new file mode 100644 index 0000000000..deaad4acb2 --- /dev/null +++ b/model/tmallservice/TmallServicecenterServicestoreUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改门店信息 API返回值 +tmall.servicecenter.servicestore.update + +用于修改门店/网点信息。多个业务共用 +*/ +type TmallServicecenterServicestoreUpdateAPIResponse struct { + model.CommonResponse + TmallServicecenterServicestoreUpdateAPIResponseModel +} + +// 修改门店信息 成功返回结果 +type TmallServicecenterServicestoreUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_servicestore_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 方法调用结果 + Result *TmallServicecenterServicestoreUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterServicestoreUpdateResponse.go b/model/tmallservice/TmallServicecenterServicestoreUpdateResponse.go deleted file mode 100644 index d1d593c933..0000000000 --- a/model/tmallservice/TmallServicecenterServicestoreUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改门店信息 API返回值 -tmall.servicecenter.servicestore.update - -用于修改门店/网点信息。多个业务共用 -*/ -type TmallServicecenterServicestoreUpdateAPIResponse struct { - model.CommonResponse - TmallServicecenterServicestoreUpdateResponse -} - -// 修改门店信息 成功返回结果 -type TmallServicecenterServicestoreUpdateResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_servicestore_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 方法调用结果 - Result *TmallServicecenterServicestoreUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterServicestoreUpdateservicestoreAPIRequest.go b/model/tmallservice/TmallServicecenterServicestoreUpdateservicestoreAPIRequest.go new file mode 100644 index 0000000000..0d80d8dec6 --- /dev/null +++ b/model/tmallservice/TmallServicecenterServicestoreUpdateservicestoreAPIRequest.go @@ -0,0 +1,65 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改网点信息 API请求 +tmall.servicecenter.servicestore.updateservicestore + +修改网点信息。对于同一个服务商,通过 service_store_code 保证网点唯一性。需要保证网点存在才能修改。 +错误码 +1, 服务商昵称无效 +2, 缺少省份 +3, 缺少城市 +4, 缺少区域 +5, 缺少详细地址 +6, 传入地址不在标准地址库中,无法解析 +7, 缺少网点编码 +8, 缺少网点名称 +9, 缺少网点电话 +10, 网点已存在 +11, 网点不存在 +12, 系统错误 +*/ +type TmallServicecenterServicestoreUpdateservicestoreAPIRequest struct { + model.Params + // 网点 + _serviceStore *ServiceStoreDto +} + +// 初始化TmallServicecenterServicestoreUpdateservicestoreAPIRequest对象 +func NewTmallServicecenterServicestoreUpdateservicestoreRequest() *TmallServicecenterServicestoreUpdateservicestoreAPIRequest{ + return &TmallServicecenterServicestoreUpdateservicestoreAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterServicestoreUpdateservicestoreAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.servicestore.updateservicestore" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterServicestoreUpdateservicestoreAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceStore Setter +// 网点 +func (r *TmallServicecenterServicestoreUpdateservicestoreAPIRequest) SetServiceStore(_serviceStore *ServiceStoreDto) error { + r._serviceStore = _serviceStore + r.Set("service_store", _serviceStore) + return nil +} + +// ServiceStore Getter +func (r TmallServicecenterServicestoreUpdateservicestoreAPIRequest) GetServiceStore() *ServiceStoreDto { + return r._serviceStore +} diff --git a/model/tmallservice/TmallServicecenterServicestoreUpdateservicestoreAPIResponse.go b/model/tmallservice/TmallServicecenterServicestoreUpdateservicestoreAPIResponse.go new file mode 100644 index 0000000000..2658549418 --- /dev/null +++ b/model/tmallservice/TmallServicecenterServicestoreUpdateservicestoreAPIResponse.go @@ -0,0 +1,40 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改网点信息 API返回值 +tmall.servicecenter.servicestore.updateservicestore + +修改网点信息。对于同一个服务商,通过 service_store_code 保证网点唯一性。需要保证网点存在才能修改。 +错误码 +1, 服务商昵称无效 +2, 缺少省份 +3, 缺少城市 +4, 缺少区域 +5, 缺少详细地址 +6, 传入地址不在标准地址库中,无法解析 +7, 缺少网点编码 +8, 缺少网点名称 +9, 缺少网点电话 +10, 网点已存在 +11, 网点不存在 +12, 系统错误 +*/ +type TmallServicecenterServicestoreUpdateservicestoreAPIResponse struct { + model.CommonResponse + TmallServicecenterServicestoreUpdateservicestoreAPIResponseModel +} + +// 修改网点信息 成功返回结果 +type TmallServicecenterServicestoreUpdateservicestoreAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_servicestore_updateservicestore_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterServicestoreUpdateservicestoreResponse.go b/model/tmallservice/TmallServicecenterServicestoreUpdateservicestoreResponse.go deleted file mode 100644 index 4df8bcbbad..0000000000 --- a/model/tmallservice/TmallServicecenterServicestoreUpdateservicestoreResponse.go +++ /dev/null @@ -1,40 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改网点信息 API返回值 -tmall.servicecenter.servicestore.updateservicestore - -修改网点信息。对于同一个服务商,通过 service_store_code 保证网点唯一性。需要保证网点存在才能修改。 -错误码 -1, 服务商昵称无效 -2, 缺少省份 -3, 缺少城市 -4, 缺少区域 -5, 缺少详细地址 -6, 传入地址不在标准地址库中,无法解析 -7, 缺少网点编码 -8, 缺少网点名称 -9, 缺少网点电话 -10, 网点已存在 -11, 网点不存在 -12, 系统错误 -*/ -type TmallServicecenterServicestoreUpdateservicestoreAPIResponse struct { - model.CommonResponse - TmallServicecenterServicestoreUpdateservicestoreResponse -} - -// 修改网点信息 成功返回结果 -type TmallServicecenterServicestoreUpdateservicestoreResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_servicestore_updateservicestore_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterServicestoreUpdatestatusAPIRequest.go b/model/tmallservice/TmallServicecenterServicestoreUpdatestatusAPIRequest.go new file mode 100644 index 0000000000..14dabd28d0 --- /dev/null +++ b/model/tmallservice/TmallServicecenterServicestoreUpdatestatusAPIRequest.go @@ -0,0 +1,80 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +网点/门店状态修改 API请求 +tmall.servicecenter.servicestore.updatestatus + +修改网点/门店状态 +*/ +type TmallServicecenterServicestoreUpdatestatusAPIRequest struct { + model.Params + // 门店id + _id int64 + // 状态。1 营业,0歇业,-1彻底关店 + _status int64 + // 业务类型。不同业务传不同的值 + _bizType string +} + +// 初始化TmallServicecenterServicestoreUpdatestatusAPIRequest对象 +func NewTmallServicecenterServicestoreUpdatestatusRequest() *TmallServicecenterServicestoreUpdatestatusAPIRequest{ + return &TmallServicecenterServicestoreUpdatestatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterServicestoreUpdatestatusAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.servicestore.updatestatus" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterServicestoreUpdatestatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 门店id +func (r *TmallServicecenterServicestoreUpdatestatusAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TmallServicecenterServicestoreUpdatestatusAPIRequest) GetId() int64 { + return r._id +} +// Status Setter +// 状态。1 营业,0歇业,-1彻底关店 +func (r *TmallServicecenterServicestoreUpdatestatusAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TmallServicecenterServicestoreUpdatestatusAPIRequest) GetStatus() int64 { + return r._status +} +// BizType Setter +// 业务类型。不同业务传不同的值 +func (r *TmallServicecenterServicestoreUpdatestatusAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TmallServicecenterServicestoreUpdatestatusAPIRequest) GetBizType() string { + return r._bizType +} diff --git a/model/tmallservice/TmallServicecenterServicestoreUpdatestatusAPIResponse.go b/model/tmallservice/TmallServicecenterServicestoreUpdatestatusAPIResponse.go new file mode 100644 index 0000000000..9fc6707553 --- /dev/null +++ b/model/tmallservice/TmallServicecenterServicestoreUpdatestatusAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +网点/门店状态修改 API返回值 +tmall.servicecenter.servicestore.updatestatus + +修改网点/门店状态 +*/ +type TmallServicecenterServicestoreUpdatestatusAPIResponse struct { + model.CommonResponse + TmallServicecenterServicestoreUpdatestatusAPIResponseModel +} + +// 网点/门店状态修改 成功返回结果 +type TmallServicecenterServicestoreUpdatestatusAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_servicestore_updatestatus_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 方法调用结果 + Result *TmallServicecenterServicestoreUpdatestatusResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterServicestoreUpdatestatusResponse.go b/model/tmallservice/TmallServicecenterServicestoreUpdatestatusResponse.go deleted file mode 100644 index e82c359e5b..0000000000 --- a/model/tmallservice/TmallServicecenterServicestoreUpdatestatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -网点/门店状态修改 API返回值 -tmall.servicecenter.servicestore.updatestatus - -修改网点/门店状态 -*/ -type TmallServicecenterServicestoreUpdatestatusAPIResponse struct { - model.CommonResponse - TmallServicecenterServicestoreUpdatestatusResponse -} - -// 网点/门店状态修改 成功返回结果 -type TmallServicecenterServicestoreUpdatestatusResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_servicestore_updatestatus_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 方法调用结果 - Result *TmallServicecenterServicestoreUpdatestatusResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterSettlementStoretransferAuditAPIRequest.go b/model/tmallservice/TmallServicecenterSettlementStoretransferAuditAPIRequest.go new file mode 100644 index 0000000000..b72899d1e4 --- /dev/null +++ b/model/tmallservice/TmallServicecenterSettlementStoretransferAuditAPIRequest.go @@ -0,0 +1,66 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新康众审批门店分账 API请求 +tmall.servicecenter.settlement.storetransfer.audit + +新康众审批门店分账 +*/ +type TmallServicecenterSettlementStoretransferAuditAPIRequest struct { + model.Params + // 审批通过 + _auditPass bool + // 工单id + _workcardId int64 +} + +// 初始化TmallServicecenterSettlementStoretransferAuditAPIRequest对象 +func NewTmallServicecenterSettlementStoretransferAuditRequest() *TmallServicecenterSettlementStoretransferAuditAPIRequest{ + return &TmallServicecenterSettlementStoretransferAuditAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterSettlementStoretransferAuditAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.settlement.storetransfer.audit" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterSettlementStoretransferAuditAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AuditPass Setter +// 审批通过 +func (r *TmallServicecenterSettlementStoretransferAuditAPIRequest) SetAuditPass(_auditPass bool) error { + r._auditPass = _auditPass + r.Set("audit_pass", _auditPass) + return nil +} + +// AuditPass Getter +func (r TmallServicecenterSettlementStoretransferAuditAPIRequest) GetAuditPass() bool { + return r._auditPass +} +// WorkcardId Setter +// 工单id +func (r *TmallServicecenterSettlementStoretransferAuditAPIRequest) SetWorkcardId(_workcardId int64) error { + r._workcardId = _workcardId + r.Set("workcard_id", _workcardId) + return nil +} + +// WorkcardId Getter +func (r TmallServicecenterSettlementStoretransferAuditAPIRequest) GetWorkcardId() int64 { + return r._workcardId +} diff --git a/model/tmallservice/TmallServicecenterSettlementStoretransferAuditAPIResponse.go b/model/tmallservice/TmallServicecenterSettlementStoretransferAuditAPIResponse.go new file mode 100644 index 0000000000..4058f3be9a --- /dev/null +++ b/model/tmallservice/TmallServicecenterSettlementStoretransferAuditAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新康众审批门店分账 API返回值 +tmall.servicecenter.settlement.storetransfer.audit + +新康众审批门店分账 +*/ +type TmallServicecenterSettlementStoretransferAuditAPIResponse struct { + model.CommonResponse + TmallServicecenterSettlementStoretransferAuditAPIResponseModel +} + +// 新康众审批门店分账 成功返回结果 +type TmallServicecenterSettlementStoretransferAuditAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_settlement_storetransfer_audit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 分账审批通知结果 + Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterSettlementStoretransferAuditResponse.go b/model/tmallservice/TmallServicecenterSettlementStoretransferAuditResponse.go deleted file mode 100644 index 26881ca42c..0000000000 --- a/model/tmallservice/TmallServicecenterSettlementStoretransferAuditResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新康众审批门店分账 API返回值 -tmall.servicecenter.settlement.storetransfer.audit - -新康众审批门店分账 -*/ -type TmallServicecenterSettlementStoretransferAuditAPIResponse struct { - model.CommonResponse - TmallServicecenterSettlementStoretransferAuditResponse -} - -// 新康众审批门店分账 成功返回结果 -type TmallServicecenterSettlementStoretransferAuditResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_settlement_storetransfer_audit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 分账审批通知结果 - Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterSpserviceorderQueryAPIRequest.go b/model/tmallservice/TmallServicecenterSpserviceorderQueryAPIRequest.go new file mode 100644 index 0000000000..47d975a297 --- /dev/null +++ b/model/tmallservice/TmallServicecenterSpserviceorderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务单列表查询 API请求 +tmall.servicecenter.spserviceorder.query + +查询服务单列表 +*/ +type TmallServicecenterSpserviceorderQueryAPIRequest struct { + model.Params + // 交易主订单id + _parentBizOrderId int64 +} + +// 初始化TmallServicecenterSpserviceorderQueryAPIRequest对象 +func NewTmallServicecenterSpserviceorderQueryRequest() *TmallServicecenterSpserviceorderQueryAPIRequest{ + return &TmallServicecenterSpserviceorderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterSpserviceorderQueryAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.spserviceorder.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterSpserviceorderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParentBizOrderId Setter +// 交易主订单id +func (r *TmallServicecenterSpserviceorderQueryAPIRequest) SetParentBizOrderId(_parentBizOrderId int64) error { + r._parentBizOrderId = _parentBizOrderId + r.Set("parent_biz_order_id", _parentBizOrderId) + return nil +} + +// ParentBizOrderId Getter +func (r TmallServicecenterSpserviceorderQueryAPIRequest) GetParentBizOrderId() int64 { + return r._parentBizOrderId +} diff --git a/model/tmallservice/TmallServicecenterSpserviceorderQueryAPIResponse.go b/model/tmallservice/TmallServicecenterSpserviceorderQueryAPIResponse.go new file mode 100644 index 0000000000..b4b767b9bf --- /dev/null +++ b/model/tmallservice/TmallServicecenterSpserviceorderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务单列表查询 API返回值 +tmall.servicecenter.spserviceorder.query + +查询服务单列表 +*/ +type TmallServicecenterSpserviceorderQueryAPIResponse struct { + model.CommonResponse + TmallServicecenterSpserviceorderQueryAPIResponseModel +} + +// 服务单列表查询 成功返回结果 +type TmallServicecenterSpserviceorderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_spserviceorder_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回参数 + Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterSpserviceorderQueryResponse.go b/model/tmallservice/TmallServicecenterSpserviceorderQueryResponse.go deleted file mode 100644 index 7ac505ccc7..0000000000 --- a/model/tmallservice/TmallServicecenterSpserviceorderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务单列表查询 API返回值 -tmall.servicecenter.spserviceorder.query - -查询服务单列表 -*/ -type TmallServicecenterSpserviceorderQueryAPIResponse struct { - model.CommonResponse - TmallServicecenterSpserviceorderQueryResponse -} - -// 服务单列表查询 成功返回结果 -type TmallServicecenterSpserviceorderQueryResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_spserviceorder_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回参数 - Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterTaskFeedbacknoneedserviceAPIRequest.go b/model/tmallservice/TmallServicecenterTaskFeedbacknoneedserviceAPIRequest.go new file mode 100644 index 0000000000..8015600cd8 --- /dev/null +++ b/model/tmallservice/TmallServicecenterTaskFeedbacknoneedserviceAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商反馈无需安装工单接口 API请求 +tmall.servicecenter.task.feedbacknoneedservice + +服务商反馈无需安装工单接口 +*/ +type TmallServicecenterTaskFeedbacknoneedserviceAPIRequest struct { + model.Params + // 入参对象 + _param *SuspendServiceDo +} + +// 初始化TmallServicecenterTaskFeedbacknoneedserviceAPIRequest对象 +func NewTmallServicecenterTaskFeedbacknoneedserviceRequest() *TmallServicecenterTaskFeedbacknoneedserviceAPIRequest{ + return &TmallServicecenterTaskFeedbacknoneedserviceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterTaskFeedbacknoneedserviceAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.task.feedbacknoneedservice" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterTaskFeedbacknoneedserviceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参对象 +func (r *TmallServicecenterTaskFeedbacknoneedserviceAPIRequest) SetParam(_param *SuspendServiceDo) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r TmallServicecenterTaskFeedbacknoneedserviceAPIRequest) GetParam() *SuspendServiceDo { + return r._param +} diff --git a/model/tmallservice/TmallServicecenterTaskFeedbacknoneedserviceAPIResponse.go b/model/tmallservice/TmallServicecenterTaskFeedbacknoneedserviceAPIResponse.go new file mode 100644 index 0000000000..d02d2f9fbf --- /dev/null +++ b/model/tmallservice/TmallServicecenterTaskFeedbacknoneedserviceAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商反馈无需安装工单接口 API返回值 +tmall.servicecenter.task.feedbacknoneedservice + +服务商反馈无需安装工单接口 +*/ +type TmallServicecenterTaskFeedbacknoneedserviceAPIResponse struct { + model.CommonResponse + TmallServicecenterTaskFeedbacknoneedserviceAPIResponseModel +} + +// 服务商反馈无需安装工单接口 成功返回结果 +type TmallServicecenterTaskFeedbacknoneedserviceAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_task_feedbacknoneedservice_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterTaskFeedbacknoneedserviceResponse.go b/model/tmallservice/TmallServicecenterTaskFeedbacknoneedserviceResponse.go deleted file mode 100644 index 2991f9299a..0000000000 --- a/model/tmallservice/TmallServicecenterTaskFeedbacknoneedserviceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商反馈无需安装工单接口 API返回值 -tmall.servicecenter.task.feedbacknoneedservice - -服务商反馈无需安装工单接口 -*/ -type TmallServicecenterTaskFeedbacknoneedserviceAPIResponse struct { - model.CommonResponse - TmallServicecenterTaskFeedbacknoneedserviceResponse -} - -// 服务商反馈无需安装工单接口 成功返回结果 -type TmallServicecenterTaskFeedbacknoneedserviceResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_task_feedbacknoneedservice_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterTaskGetAPIRequest.go b/model/tmallservice/TmallServicecenterTaskGetAPIRequest.go new file mode 100644 index 0000000000..74ee16f77b --- /dev/null +++ b/model/tmallservice/TmallServicecenterTaskGetAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务工单拉取 API请求 +tmall.servicecenter.task.get + +接口供服务供应商通过交易主订单查询其未拉取的任务类工单 +*/ +type TmallServicecenterTaskGetAPIRequest struct { + model.Params + // Taobao主交易订单ID + _parentBizOrderId int64 +} + +// 初始化TmallServicecenterTaskGetAPIRequest对象 +func NewTmallServicecenterTaskGetRequest() *TmallServicecenterTaskGetAPIRequest{ + return &TmallServicecenterTaskGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterTaskGetAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.task.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterTaskGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParentBizOrderId Setter +// Taobao主交易订单ID +func (r *TmallServicecenterTaskGetAPIRequest) SetParentBizOrderId(_parentBizOrderId int64) error { + r._parentBizOrderId = _parentBizOrderId + r.Set("parent_biz_order_id", _parentBizOrderId) + return nil +} + +// ParentBizOrderId Getter +func (r TmallServicecenterTaskGetAPIRequest) GetParentBizOrderId() int64 { + return r._parentBizOrderId +} diff --git a/model/tmallservice/TmallServicecenterTaskGetAPIResponse.go b/model/tmallservice/TmallServicecenterTaskGetAPIResponse.go new file mode 100644 index 0000000000..92467260eb --- /dev/null +++ b/model/tmallservice/TmallServicecenterTaskGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务工单拉取 API返回值 +tmall.servicecenter.task.get + +接口供服务供应商通过交易主订单查询其未拉取的任务类工单 +*/ +type TmallServicecenterTaskGetAPIResponse struct { + model.CommonResponse + TmallServicecenterTaskGetAPIResponseModel +} + +// 服务工单拉取 成功返回结果 +type TmallServicecenterTaskGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_task_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ServicePacket + ServiceTaskPacket *ServiceTaskPacket `json:"service_task_packet,omitempty" xml:"service_task_packet,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterTaskGetResponse.go b/model/tmallservice/TmallServicecenterTaskGetResponse.go deleted file mode 100644 index d84c132f48..0000000000 --- a/model/tmallservice/TmallServicecenterTaskGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务工单拉取 API返回值 -tmall.servicecenter.task.get - -接口供服务供应商通过交易主订单查询其未拉取的任务类工单 -*/ -type TmallServicecenterTaskGetAPIResponse struct { - model.CommonResponse - TmallServicecenterTaskGetResponse -} - -// 服务工单拉取 成功返回结果 -type TmallServicecenterTaskGetResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_task_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ServicePacket - ServiceTaskPacket *ServiceTaskPacket `json:"service_task_packet,omitempty" xml:"service_task_packet,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterTaskQueryrefundAPIRequest.go b/model/tmallservice/TmallServicecenterTaskQueryrefundAPIRequest.go new file mode 100644 index 0000000000..a36670bd05 --- /dev/null +++ b/model/tmallservice/TmallServicecenterTaskQueryrefundAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询任务类工单是否退款 API请求 +tmall.servicecenter.task.queryrefund + +查询任务类工单是否退款 +*/ +type TmallServicecenterTaskQueryrefundAPIRequest struct { + model.Params + // 工单id列表 + _workcardList []int64 +} + +// 初始化TmallServicecenterTaskQueryrefundAPIRequest对象 +func NewTmallServicecenterTaskQueryrefundRequest() *TmallServicecenterTaskQueryrefundAPIRequest{ + return &TmallServicecenterTaskQueryrefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterTaskQueryrefundAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.task.queryrefund" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterTaskQueryrefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkcardList Setter +// 工单id列表 +func (r *TmallServicecenterTaskQueryrefundAPIRequest) SetWorkcardList(_workcardList []int64) error { + r._workcardList = _workcardList + r.Set("workcard_list", _workcardList) + return nil +} + +// WorkcardList Getter +func (r TmallServicecenterTaskQueryrefundAPIRequest) GetWorkcardList() []int64 { + return r._workcardList +} diff --git a/model/tmallservice/TmallServicecenterTaskQueryrefundAPIResponse.go b/model/tmallservice/TmallServicecenterTaskQueryrefundAPIResponse.go new file mode 100644 index 0000000000..d18d613087 --- /dev/null +++ b/model/tmallservice/TmallServicecenterTaskQueryrefundAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询任务类工单是否退款 API返回值 +tmall.servicecenter.task.queryrefund + +查询任务类工单是否退款 +*/ +type TmallServicecenterTaskQueryrefundAPIResponse struct { + model.CommonResponse + TmallServicecenterTaskQueryrefundAPIResponseModel +} + +// 查询任务类工单是否退款 成功返回结果 +type TmallServicecenterTaskQueryrefundAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_task_queryrefund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterTaskQueryrefundResponse.go b/model/tmallservice/TmallServicecenterTaskQueryrefundResponse.go deleted file mode 100644 index 84f34fd3be..0000000000 --- a/model/tmallservice/TmallServicecenterTaskQueryrefundResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询任务类工单是否退款 API返回值 -tmall.servicecenter.task.queryrefund - -查询任务类工单是否退款 -*/ -type TmallServicecenterTaskQueryrefundAPIResponse struct { - model.CommonResponse - TmallServicecenterTaskQueryrefundResponse -} - -// 查询任务类工单是否退款 成功返回结果 -type TmallServicecenterTaskQueryrefundResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_task_queryrefund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterTasksSearchAPIRequest.go b/model/tmallservice/TmallServicecenterTasksSearchAPIRequest.go new file mode 100644 index 0000000000..2c7d22593a --- /dev/null +++ b/model/tmallservice/TmallServicecenterTasksSearchAPIRequest.go @@ -0,0 +1,66 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询任务类工单信息 API请求 +tmall.servicecenter.tasks.search + +查询任务类工单信息 +*/ +type TmallServicecenterTasksSearchAPIRequest struct { + model.Params + // 开始时间: 开始时间和结束时间不能超过15分钟 + _start int64 + // 结束时间: 开始时间和结束时间不能超过15分钟 + _end int64 +} + +// 初始化TmallServicecenterTasksSearchAPIRequest对象 +func NewTmallServicecenterTasksSearchRequest() *TmallServicecenterTasksSearchAPIRequest{ + return &TmallServicecenterTasksSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterTasksSearchAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.tasks.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterTasksSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Start Setter +// 开始时间: 开始时间和结束时间不能超过15分钟 +func (r *TmallServicecenterTasksSearchAPIRequest) SetStart(_start int64) error { + r._start = _start + r.Set("start", _start) + return nil +} + +// Start Getter +func (r TmallServicecenterTasksSearchAPIRequest) GetStart() int64 { + return r._start +} +// End Setter +// 结束时间: 开始时间和结束时间不能超过15分钟 +func (r *TmallServicecenterTasksSearchAPIRequest) SetEnd(_end int64) error { + r._end = _end + r.Set("end", _end) + return nil +} + +// End Getter +func (r TmallServicecenterTasksSearchAPIRequest) GetEnd() int64 { + return r._end +} diff --git a/model/tmallservice/TmallServicecenterTasksSearchAPIResponse.go b/model/tmallservice/TmallServicecenterTasksSearchAPIResponse.go new file mode 100644 index 0000000000..307b1f8ab8 --- /dev/null +++ b/model/tmallservice/TmallServicecenterTasksSearchAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询任务类工单信息 API返回值 +tmall.servicecenter.tasks.search + +查询任务类工单信息 +*/ +type TmallServicecenterTasksSearchAPIResponse struct { + model.CommonResponse + TmallServicecenterTasksSearchAPIResponseModel +} + +// 查询任务类工单信息 成功返回结果 +type TmallServicecenterTasksSearchAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_tasks_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ServicePacket + ServiceTaskPacket *ServiceTaskPacket `json:"service_task_packet,omitempty" xml:"service_task_packet,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterTasksSearchResponse.go b/model/tmallservice/TmallServicecenterTasksSearchResponse.go deleted file mode 100644 index b7fb0e0e3c..0000000000 --- a/model/tmallservice/TmallServicecenterTasksSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询任务类工单信息 API返回值 -tmall.servicecenter.tasks.search - -查询任务类工单信息 -*/ -type TmallServicecenterTasksSearchAPIResponse struct { - model.CommonResponse - TmallServicecenterTasksSearchResponse -} - -// 查询任务类工单信息 成功返回结果 -type TmallServicecenterTasksSearchResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_tasks_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ServicePacket - ServiceTaskPacket *ServiceTaskPacket `json:"service_task_packet,omitempty" xml:"service_task_packet,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardAssignworkerAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardAssignworkerAPIRequest.go new file mode 100644 index 0000000000..91fc001f4c --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardAssignworkerAPIRequest.go @@ -0,0 +1,150 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商分派工人 API请求 +tmall.servicecenter.workcard.assignworker + +服务商调用该接口分派工人给具体的工单 +*/ +type TmallServicecenterWorkcardAssignworkerAPIRequest struct { + model.Params + // 需要指派的工人id + _targetWorkerId int64 + // 需要指派的工人手机 + _targetWorkerMobile string + // 需要派工人的工单id + _workcardId int64 + // 需要指派的工人姓名 + _targetWorkerName string + // 核销单外部id + _outerId string + // 不检查订单类型的原因ID由运营提供,服务商不可自由传 + _stopOrderTypeCheckReason int64 + // 核销单id + _fulfilTaskId int64 + // 扩展信息 + _extJson string +} + +// 初始化TmallServicecenterWorkcardAssignworkerAPIRequest对象 +func NewTmallServicecenterWorkcardAssignworkerRequest() *TmallServicecenterWorkcardAssignworkerAPIRequest{ + return &TmallServicecenterWorkcardAssignworkerAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardAssignworkerAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.assignworker" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardAssignworkerAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TargetWorkerId Setter +// 需要指派的工人id +func (r *TmallServicecenterWorkcardAssignworkerAPIRequest) SetTargetWorkerId(_targetWorkerId int64) error { + r._targetWorkerId = _targetWorkerId + r.Set("target_worker_id", _targetWorkerId) + return nil +} + +// TargetWorkerId Getter +func (r TmallServicecenterWorkcardAssignworkerAPIRequest) GetTargetWorkerId() int64 { + return r._targetWorkerId +} +// TargetWorkerMobile Setter +// 需要指派的工人手机 +func (r *TmallServicecenterWorkcardAssignworkerAPIRequest) SetTargetWorkerMobile(_targetWorkerMobile string) error { + r._targetWorkerMobile = _targetWorkerMobile + r.Set("target_worker_mobile", _targetWorkerMobile) + return nil +} + +// TargetWorkerMobile Getter +func (r TmallServicecenterWorkcardAssignworkerAPIRequest) GetTargetWorkerMobile() string { + return r._targetWorkerMobile +} +// WorkcardId Setter +// 需要派工人的工单id +func (r *TmallServicecenterWorkcardAssignworkerAPIRequest) SetWorkcardId(_workcardId int64) error { + r._workcardId = _workcardId + r.Set("workcard_id", _workcardId) + return nil +} + +// WorkcardId Getter +func (r TmallServicecenterWorkcardAssignworkerAPIRequest) GetWorkcardId() int64 { + return r._workcardId +} +// TargetWorkerName Setter +// 需要指派的工人姓名 +func (r *TmallServicecenterWorkcardAssignworkerAPIRequest) SetTargetWorkerName(_targetWorkerName string) error { + r._targetWorkerName = _targetWorkerName + r.Set("target_worker_name", _targetWorkerName) + return nil +} + +// TargetWorkerName Getter +func (r TmallServicecenterWorkcardAssignworkerAPIRequest) GetTargetWorkerName() string { + return r._targetWorkerName +} +// OuterId Setter +// 核销单外部id +func (r *TmallServicecenterWorkcardAssignworkerAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TmallServicecenterWorkcardAssignworkerAPIRequest) GetOuterId() string { + return r._outerId +} +// StopOrderTypeCheckReason Setter +// 不检查订单类型的原因ID由运营提供,服务商不可自由传 +func (r *TmallServicecenterWorkcardAssignworkerAPIRequest) SetStopOrderTypeCheckReason(_stopOrderTypeCheckReason int64) error { + r._stopOrderTypeCheckReason = _stopOrderTypeCheckReason + r.Set("stop_order_type_check_reason", _stopOrderTypeCheckReason) + return nil +} + +// StopOrderTypeCheckReason Getter +func (r TmallServicecenterWorkcardAssignworkerAPIRequest) GetStopOrderTypeCheckReason() int64 { + return r._stopOrderTypeCheckReason +} +// FulfilTaskId Setter +// 核销单id +func (r *TmallServicecenterWorkcardAssignworkerAPIRequest) SetFulfilTaskId(_fulfilTaskId int64) error { + r._fulfilTaskId = _fulfilTaskId + r.Set("fulfil_task_id", _fulfilTaskId) + return nil +} + +// FulfilTaskId Getter +func (r TmallServicecenterWorkcardAssignworkerAPIRequest) GetFulfilTaskId() int64 { + return r._fulfilTaskId +} +// ExtJson Setter +// 扩展信息 +func (r *TmallServicecenterWorkcardAssignworkerAPIRequest) SetExtJson(_extJson string) error { + r._extJson = _extJson + r.Set("ext_json", _extJson) + return nil +} + +// ExtJson Getter +func (r TmallServicecenterWorkcardAssignworkerAPIRequest) GetExtJson() string { + return r._extJson +} diff --git a/model/tmallservice/TmallServicecenterWorkcardAssignworkerAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardAssignworkerAPIResponse.go new file mode 100644 index 0000000000..c8bd354b33 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardAssignworkerAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商分派工人 API返回值 +tmall.servicecenter.workcard.assignworker + +服务商调用该接口分派工人给具体的工单 +*/ +type TmallServicecenterWorkcardAssignworkerAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardAssignworkerAPIResponseModel +} + +// 服务商分派工人 成功返回结果 +type TmallServicecenterWorkcardAssignworkerAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_assignworker_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // - + Result *TmallServicecenterWorkcardAssignworkerResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardAssignworkerResponse.go b/model/tmallservice/TmallServicecenterWorkcardAssignworkerResponse.go deleted file mode 100644 index 17bf74bb24..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardAssignworkerResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商分派工人 API返回值 -tmall.servicecenter.workcard.assignworker - -服务商调用该接口分派工人给具体的工单 -*/ -type TmallServicecenterWorkcardAssignworkerAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardAssignworkerResponse -} - -// 服务商分派工人 成功返回结果 -type TmallServicecenterWorkcardAssignworkerResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_assignworker_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - - Result *TmallServicecenterWorkcardAssignworkerResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardCallRecordAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardCallRecordAPIRequest.go new file mode 100644 index 0000000000..8a6ae3496f --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardCallRecordAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +回访记录回传API API请求 +tmall.servicecenter.workcard.call.record + +客满回访信息登记 +*/ +type TmallServicecenterWorkcardCallRecordAPIRequest struct { + model.Params + // 请求入参 + _busiRequest *UpdateAttributeRequest +} + +// 初始化TmallServicecenterWorkcardCallRecordAPIRequest对象 +func NewTmallServicecenterWorkcardCallRecordRequest() *TmallServicecenterWorkcardCallRecordAPIRequest{ + return &TmallServicecenterWorkcardCallRecordAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardCallRecordAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.call.record" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardCallRecordAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BusiRequest Setter +// 请求入参 +func (r *TmallServicecenterWorkcardCallRecordAPIRequest) SetBusiRequest(_busiRequest *UpdateAttributeRequest) error { + r._busiRequest = _busiRequest + r.Set("busi_request", _busiRequest) + return nil +} + +// BusiRequest Getter +func (r TmallServicecenterWorkcardCallRecordAPIRequest) GetBusiRequest() *UpdateAttributeRequest { + return r._busiRequest +} diff --git a/model/tmallservice/TmallServicecenterWorkcardCallRecordAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardCallRecordAPIResponse.go new file mode 100644 index 0000000000..4602436798 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardCallRecordAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +回访记录回传API API返回值 +tmall.servicecenter.workcard.call.record + +客满回访信息登记 +*/ +type TmallServicecenterWorkcardCallRecordAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardCallRecordAPIResponseModel +} + +// 回访记录回传API 成功返回结果 +type TmallServicecenterWorkcardCallRecordAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_call_record_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardCallRecordResponse.go b/model/tmallservice/TmallServicecenterWorkcardCallRecordResponse.go deleted file mode 100644 index 97d110f01f..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardCallRecordResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -回访记录回传API API返回值 -tmall.servicecenter.workcard.call.record - -客满回访信息登记 -*/ -type TmallServicecenterWorkcardCallRecordAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardCallRecordResponse -} - -// 回访记录回传API 成功返回结果 -type TmallServicecenterWorkcardCallRecordResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_call_record_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardCollectAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardCollectAPIRequest.go new file mode 100644 index 0000000000..d3389a837a --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardCollectAPIRequest.go @@ -0,0 +1,80 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +工单揽件 API请求 +tmall.servicecenter.workcard.collect + +服务工单揽件接口 +*/ +type TmallServicecenterWorkcardCollectAPIRequest struct { + model.Params + // 工单id + _workcardId int64 + // 买家id + _buyerId int64 + // 扩展信息 + _attributes string +} + +// 初始化TmallServicecenterWorkcardCollectAPIRequest对象 +func NewTmallServicecenterWorkcardCollectRequest() *TmallServicecenterWorkcardCollectAPIRequest{ + return &TmallServicecenterWorkcardCollectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardCollectAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.collect" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardCollectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkcardId Setter +// 工单id +func (r *TmallServicecenterWorkcardCollectAPIRequest) SetWorkcardId(_workcardId int64) error { + r._workcardId = _workcardId + r.Set("workcard_id", _workcardId) + return nil +} + +// WorkcardId Getter +func (r TmallServicecenterWorkcardCollectAPIRequest) GetWorkcardId() int64 { + return r._workcardId +} +// BuyerId Setter +// 买家id +func (r *TmallServicecenterWorkcardCollectAPIRequest) SetBuyerId(_buyerId int64) error { + r._buyerId = _buyerId + r.Set("buyer_id", _buyerId) + return nil +} + +// BuyerId Getter +func (r TmallServicecenterWorkcardCollectAPIRequest) GetBuyerId() int64 { + return r._buyerId +} +// Attributes Setter +// 扩展信息 +func (r *TmallServicecenterWorkcardCollectAPIRequest) SetAttributes(_attributes string) error { + r._attributes = _attributes + r.Set("attributes", _attributes) + return nil +} + +// Attributes Getter +func (r TmallServicecenterWorkcardCollectAPIRequest) GetAttributes() string { + return r._attributes +} diff --git a/model/tmallservice/TmallServicecenterWorkcardCollectAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardCollectAPIResponse.go new file mode 100644 index 0000000000..8217e43ae7 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardCollectAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +工单揽件 API返回值 +tmall.servicecenter.workcard.collect + +服务工单揽件接口 +*/ +type TmallServicecenterWorkcardCollectAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardCollectAPIResponseModel +} + +// 工单揽件 成功返回结果 +type TmallServicecenterWorkcardCollectAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_collect_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应结果 + Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardCollectResponse.go b/model/tmallservice/TmallServicecenterWorkcardCollectResponse.go deleted file mode 100644 index 5f7afe57fc..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardCollectResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -工单揽件 API返回值 -tmall.servicecenter.workcard.collect - -服务工单揽件接口 -*/ -type TmallServicecenterWorkcardCollectAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardCollectResponse -} - -// 工单揽件 成功返回结果 -type TmallServicecenterWorkcardCollectResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_collect_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应结果 - Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardCompleteAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardCompleteAPIRequest.go new file mode 100644 index 0000000000..c17388bbfb --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardCompleteAPIRequest.go @@ -0,0 +1,122 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +工单完结 API请求 +tmall.servicecenter.workcard.complete + +工单完结 +*/ +type TmallServicecenterWorkcardCompleteAPIRequest struct { + model.Params + // 工单id + _workcardId int64 + // 完结次数 + _completeCount int64 + // 扩展信息 + _extJson string + // 工单完结号 + _sequence int64 + // 核销地纬度 + _latitude string + // 核销地经度 + _longitude string +} + +// 初始化TmallServicecenterWorkcardCompleteAPIRequest对象 +func NewTmallServicecenterWorkcardCompleteRequest() *TmallServicecenterWorkcardCompleteAPIRequest{ + return &TmallServicecenterWorkcardCompleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardCompleteAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.complete" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardCompleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkcardId Setter +// 工单id +func (r *TmallServicecenterWorkcardCompleteAPIRequest) SetWorkcardId(_workcardId int64) error { + r._workcardId = _workcardId + r.Set("workcard_id", _workcardId) + return nil +} + +// WorkcardId Getter +func (r TmallServicecenterWorkcardCompleteAPIRequest) GetWorkcardId() int64 { + return r._workcardId +} +// CompleteCount Setter +// 完结次数 +func (r *TmallServicecenterWorkcardCompleteAPIRequest) SetCompleteCount(_completeCount int64) error { + r._completeCount = _completeCount + r.Set("complete_count", _completeCount) + return nil +} + +// CompleteCount Getter +func (r TmallServicecenterWorkcardCompleteAPIRequest) GetCompleteCount() int64 { + return r._completeCount +} +// ExtJson Setter +// 扩展信息 +func (r *TmallServicecenterWorkcardCompleteAPIRequest) SetExtJson(_extJson string) error { + r._extJson = _extJson + r.Set("ext_json", _extJson) + return nil +} + +// ExtJson Getter +func (r TmallServicecenterWorkcardCompleteAPIRequest) GetExtJson() string { + return r._extJson +} +// Sequence Setter +// 工单完结号 +func (r *TmallServicecenterWorkcardCompleteAPIRequest) SetSequence(_sequence int64) error { + r._sequence = _sequence + r.Set("sequence", _sequence) + return nil +} + +// Sequence Getter +func (r TmallServicecenterWorkcardCompleteAPIRequest) GetSequence() int64 { + return r._sequence +} +// Latitude Setter +// 核销地纬度 +func (r *TmallServicecenterWorkcardCompleteAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r TmallServicecenterWorkcardCompleteAPIRequest) GetLatitude() string { + return r._latitude +} +// Longitude Setter +// 核销地经度 +func (r *TmallServicecenterWorkcardCompleteAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r TmallServicecenterWorkcardCompleteAPIRequest) GetLongitude() string { + return r._longitude +} diff --git a/model/tmallservice/TmallServicecenterWorkcardCompleteAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardCompleteAPIResponse.go new file mode 100644 index 0000000000..e88083aa17 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardCompleteAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +工单完结 API返回值 +tmall.servicecenter.workcard.complete + +工单完结 +*/ +type TmallServicecenterWorkcardCompleteAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardCompleteAPIResponseModel +} + +// 工单完结 成功返回结果 +type TmallServicecenterWorkcardCompleteAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_complete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应结果 + Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardCompleteResponse.go b/model/tmallservice/TmallServicecenterWorkcardCompleteResponse.go deleted file mode 100644 index 93e71ce3b9..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardCompleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -工单完结 API返回值 -tmall.servicecenter.workcard.complete - -工单完结 -*/ -type TmallServicecenterWorkcardCompleteAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardCompleteResponse -} - -// 工单完结 成功返回结果 -type TmallServicecenterWorkcardCompleteResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_complete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应结果 - Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardConfirmAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardConfirmAPIRequest.go new file mode 100644 index 0000000000..e14cb09c07 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商确认服务完成 API请求 +tmall.servicecenter.workcard.confirm + +提供给外部合作服务商,用于通知天猫,告知寄修服务厂内操作全部完成 +*/ +type TmallServicecenterWorkcardConfirmAPIRequest struct { + model.Params + // 工单id + _workcardId int64 +} + +// 初始化TmallServicecenterWorkcardConfirmAPIRequest对象 +func NewTmallServicecenterWorkcardConfirmRequest() *TmallServicecenterWorkcardConfirmAPIRequest{ + return &TmallServicecenterWorkcardConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardConfirmAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkcardId Setter +// 工单id +func (r *TmallServicecenterWorkcardConfirmAPIRequest) SetWorkcardId(_workcardId int64) error { + r._workcardId = _workcardId + r.Set("workcard_id", _workcardId) + return nil +} + +// WorkcardId Getter +func (r TmallServicecenterWorkcardConfirmAPIRequest) GetWorkcardId() int64 { + return r._workcardId +} diff --git a/model/tmallservice/TmallServicecenterWorkcardConfirmAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardConfirmAPIResponse.go new file mode 100644 index 0000000000..cfa73af9f9 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商确认服务完成 API返回值 +tmall.servicecenter.workcard.confirm + +提供给外部合作服务商,用于通知天猫,告知寄修服务厂内操作全部完成 +*/ +type TmallServicecenterWorkcardConfirmAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardConfirmAPIResponseModel +} + +// 服务商确认服务完成 成功返回结果 +type TmallServicecenterWorkcardConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求结果 + Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardConfirmResponse.go b/model/tmallservice/TmallServicecenterWorkcardConfirmResponse.go deleted file mode 100644 index 6c3cc6323a..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商确认服务完成 API返回值 -tmall.servicecenter.workcard.confirm - -提供给外部合作服务商,用于通知天猫,告知寄修服务厂内操作全部完成 -*/ -type TmallServicecenterWorkcardConfirmAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardConfirmResponse -} - -// 服务商确认服务完成 成功返回结果 -type TmallServicecenterWorkcardConfirmResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求结果 - Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardEvaluateAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardEvaluateAPIRequest.go new file mode 100644 index 0000000000..b418ddac55 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardEvaluateAPIRequest.go @@ -0,0 +1,94 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商反馈鉴定结果 API请求 +tmall.servicecenter.workcard.evaluate + +服务商反馈鉴定结果 +*/ +type TmallServicecenterWorkcardEvaluateAPIRequest struct { + model.Params + // 是否鉴定通过 + _passEvaluation bool + // 鉴定不通过时的原因编码 + _failCode int64 + // 鉴定结果图片列表 + _picUrlList []string + // 工单id + _workcardId int64 +} + +// 初始化TmallServicecenterWorkcardEvaluateAPIRequest对象 +func NewTmallServicecenterWorkcardEvaluateRequest() *TmallServicecenterWorkcardEvaluateAPIRequest{ + return &TmallServicecenterWorkcardEvaluateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardEvaluateAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.evaluate" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardEvaluateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PassEvaluation Setter +// 是否鉴定通过 +func (r *TmallServicecenterWorkcardEvaluateAPIRequest) SetPassEvaluation(_passEvaluation bool) error { + r._passEvaluation = _passEvaluation + r.Set("pass_evaluation", _passEvaluation) + return nil +} + +// PassEvaluation Getter +func (r TmallServicecenterWorkcardEvaluateAPIRequest) GetPassEvaluation() bool { + return r._passEvaluation +} +// FailCode Setter +// 鉴定不通过时的原因编码 +func (r *TmallServicecenterWorkcardEvaluateAPIRequest) SetFailCode(_failCode int64) error { + r._failCode = _failCode + r.Set("fail_code", _failCode) + return nil +} + +// FailCode Getter +func (r TmallServicecenterWorkcardEvaluateAPIRequest) GetFailCode() int64 { + return r._failCode +} +// PicUrlList Setter +// 鉴定结果图片列表 +func (r *TmallServicecenterWorkcardEvaluateAPIRequest) SetPicUrlList(_picUrlList []string) error { + r._picUrlList = _picUrlList + r.Set("pic_url_list", _picUrlList) + return nil +} + +// PicUrlList Getter +func (r TmallServicecenterWorkcardEvaluateAPIRequest) GetPicUrlList() []string { + return r._picUrlList +} +// WorkcardId Setter +// 工单id +func (r *TmallServicecenterWorkcardEvaluateAPIRequest) SetWorkcardId(_workcardId int64) error { + r._workcardId = _workcardId + r.Set("workcard_id", _workcardId) + return nil +} + +// WorkcardId Getter +func (r TmallServicecenterWorkcardEvaluateAPIRequest) GetWorkcardId() int64 { + return r._workcardId +} diff --git a/model/tmallservice/TmallServicecenterWorkcardEvaluateAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardEvaluateAPIResponse.go new file mode 100644 index 0000000000..1cd644f791 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardEvaluateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商反馈鉴定结果 API返回值 +tmall.servicecenter.workcard.evaluate + +服务商反馈鉴定结果 +*/ +type TmallServicecenterWorkcardEvaluateAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardEvaluateAPIResponseModel +} + +// 服务商反馈鉴定结果 成功返回结果 +type TmallServicecenterWorkcardEvaluateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_evaluate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值Result + Result *TmallServicecenterWorkcardEvaluateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardEvaluateResponse.go b/model/tmallservice/TmallServicecenterWorkcardEvaluateResponse.go deleted file mode 100644 index cd269371e8..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardEvaluateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商反馈鉴定结果 API返回值 -tmall.servicecenter.workcard.evaluate - -服务商反馈鉴定结果 -*/ -type TmallServicecenterWorkcardEvaluateAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardEvaluateResponse -} - -// 服务商反馈鉴定结果 成功返回结果 -type TmallServicecenterWorkcardEvaluateResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_evaluate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值Result - Result *TmallServicecenterWorkcardEvaluateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardExpressorderConsignAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardExpressorderConsignAPIRequest.go new file mode 100644 index 0000000000..a8f072cc4d --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardExpressorderConsignAPIRequest.go @@ -0,0 +1,94 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物流订单呼叫运力 API请求 +tmall.servicecenter.workcard.expressorder.consign + +天猫服务寄送类业务,服务商履约完成后进行寄回操作呼叫运力 +*/ +type TmallServicecenterWorkcardExpressorderConsignAPIRequest struct { + model.Params + // 物流寄件单号(废弃) + _expressOrderId int64 + // 工单List + _workcardIdList []int64 + // 真实接单服务商 + _realTpNick string + // 物流订单号 + _logisticsOrderId int64 +} + +// 初始化TmallServicecenterWorkcardExpressorderConsignAPIRequest对象 +func NewTmallServicecenterWorkcardExpressorderConsignRequest() *TmallServicecenterWorkcardExpressorderConsignAPIRequest{ + return &TmallServicecenterWorkcardExpressorderConsignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardExpressorderConsignAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.expressorder.consign" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardExpressorderConsignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExpressOrderId Setter +// 物流寄件单号(废弃) +func (r *TmallServicecenterWorkcardExpressorderConsignAPIRequest) SetExpressOrderId(_expressOrderId int64) error { + r._expressOrderId = _expressOrderId + r.Set("express_order_id", _expressOrderId) + return nil +} + +// ExpressOrderId Getter +func (r TmallServicecenterWorkcardExpressorderConsignAPIRequest) GetExpressOrderId() int64 { + return r._expressOrderId +} +// WorkcardIdList Setter +// 工单List +func (r *TmallServicecenterWorkcardExpressorderConsignAPIRequest) SetWorkcardIdList(_workcardIdList []int64) error { + r._workcardIdList = _workcardIdList + r.Set("workcard_id_list", _workcardIdList) + return nil +} + +// WorkcardIdList Getter +func (r TmallServicecenterWorkcardExpressorderConsignAPIRequest) GetWorkcardIdList() []int64 { + return r._workcardIdList +} +// RealTpNick Setter +// 真实接单服务商 +func (r *TmallServicecenterWorkcardExpressorderConsignAPIRequest) SetRealTpNick(_realTpNick string) error { + r._realTpNick = _realTpNick + r.Set("real_tp_nick", _realTpNick) + return nil +} + +// RealTpNick Getter +func (r TmallServicecenterWorkcardExpressorderConsignAPIRequest) GetRealTpNick() string { + return r._realTpNick +} +// LogisticsOrderId Setter +// 物流订单号 +func (r *TmallServicecenterWorkcardExpressorderConsignAPIRequest) SetLogisticsOrderId(_logisticsOrderId int64) error { + r._logisticsOrderId = _logisticsOrderId + r.Set("logistics_order_id", _logisticsOrderId) + return nil +} + +// LogisticsOrderId Getter +func (r TmallServicecenterWorkcardExpressorderConsignAPIRequest) GetLogisticsOrderId() int64 { + return r._logisticsOrderId +} diff --git a/model/tmallservice/TmallServicecenterWorkcardExpressorderConsignAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardExpressorderConsignAPIResponse.go new file mode 100644 index 0000000000..ca6b850aeb --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardExpressorderConsignAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物流订单呼叫运力 API返回值 +tmall.servicecenter.workcard.expressorder.consign + +天猫服务寄送类业务,服务商履约完成后进行寄回操作呼叫运力 +*/ +type TmallServicecenterWorkcardExpressorderConsignAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardExpressorderConsignAPIResponseModel +} + +// 物流订单呼叫运力 成功返回结果 +type TmallServicecenterWorkcardExpressorderConsignAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_expressorder_consign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardExpressorderConsignResponse.go b/model/tmallservice/TmallServicecenterWorkcardExpressorderConsignResponse.go deleted file mode 100644 index d85cf97cfc..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardExpressorderConsignResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物流订单呼叫运力 API返回值 -tmall.servicecenter.workcard.expressorder.consign - -天猫服务寄送类业务,服务商履约完成后进行寄回操作呼叫运力 -*/ -type TmallServicecenterWorkcardExpressorderConsignAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardExpressorderConsignResponse -} - -// 物流订单呼叫运力 成功返回结果 -type TmallServicecenterWorkcardExpressorderConsignResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_expressorder_consign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardExpressorderCreateAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardExpressorderCreateAPIRequest.go new file mode 100644 index 0000000000..6f72135165 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardExpressorderCreateAPIRequest.go @@ -0,0 +1,80 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物流订单创建API API请求 +tmall.servicecenter.workcard.expressorder.create + +天猫服务寄送类业务,服务商履约完成后寄回操作时,提供的物流寄件单创建API +*/ +type TmallServicecenterWorkcardExpressorderCreateAPIRequest struct { + model.Params + // 物流单关联的工单List + _workcardIdList []int64 + // 真实履约服务商Nick(非ERP系统不要填写) + _realTpNick string + // erp外部物流订单号 + _externalLogisticsOrderId string +} + +// 初始化TmallServicecenterWorkcardExpressorderCreateAPIRequest对象 +func NewTmallServicecenterWorkcardExpressorderCreateRequest() *TmallServicecenterWorkcardExpressorderCreateAPIRequest{ + return &TmallServicecenterWorkcardExpressorderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardExpressorderCreateAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.expressorder.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardExpressorderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkcardIdList Setter +// 物流单关联的工单List +func (r *TmallServicecenterWorkcardExpressorderCreateAPIRequest) SetWorkcardIdList(_workcardIdList []int64) error { + r._workcardIdList = _workcardIdList + r.Set("workcard_id_list", _workcardIdList) + return nil +} + +// WorkcardIdList Getter +func (r TmallServicecenterWorkcardExpressorderCreateAPIRequest) GetWorkcardIdList() []int64 { + return r._workcardIdList +} +// RealTpNick Setter +// 真实履约服务商Nick(非ERP系统不要填写) +func (r *TmallServicecenterWorkcardExpressorderCreateAPIRequest) SetRealTpNick(_realTpNick string) error { + r._realTpNick = _realTpNick + r.Set("real_tp_nick", _realTpNick) + return nil +} + +// RealTpNick Getter +func (r TmallServicecenterWorkcardExpressorderCreateAPIRequest) GetRealTpNick() string { + return r._realTpNick +} +// ExternalLogisticsOrderId Setter +// erp外部物流订单号 +func (r *TmallServicecenterWorkcardExpressorderCreateAPIRequest) SetExternalLogisticsOrderId(_externalLogisticsOrderId string) error { + r._externalLogisticsOrderId = _externalLogisticsOrderId + r.Set("external_logistics_order_id", _externalLogisticsOrderId) + return nil +} + +// ExternalLogisticsOrderId Getter +func (r TmallServicecenterWorkcardExpressorderCreateAPIRequest) GetExternalLogisticsOrderId() string { + return r._externalLogisticsOrderId +} diff --git a/model/tmallservice/TmallServicecenterWorkcardExpressorderCreateAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardExpressorderCreateAPIResponse.go new file mode 100644 index 0000000000..92e7afc045 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardExpressorderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物流订单创建API API返回值 +tmall.servicecenter.workcard.expressorder.create + +天猫服务寄送类业务,服务商履约完成后寄回操作时,提供的物流寄件单创建API +*/ +type TmallServicecenterWorkcardExpressorderCreateAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardExpressorderCreateAPIResponseModel +} + +// 物流订单创建API 成功返回结果 +type TmallServicecenterWorkcardExpressorderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_expressorder_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创建结果 + Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardExpressorderCreateResponse.go b/model/tmallservice/TmallServicecenterWorkcardExpressorderCreateResponse.go deleted file mode 100644 index e68ddf9056..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardExpressorderCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物流订单创建API API返回值 -tmall.servicecenter.workcard.expressorder.create - -天猫服务寄送类业务,服务商履约完成后寄回操作时,提供的物流寄件单创建API -*/ -type TmallServicecenterWorkcardExpressorderCreateAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardExpressorderCreateResponse -} - -// 物流订单创建API 成功返回结果 -type TmallServicecenterWorkcardExpressorderCreateResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_expressorder_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创建结果 - Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardLogisticsorderQueryAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardLogisticsorderQueryAPIRequest.go new file mode 100644 index 0000000000..d2940ee906 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardLogisticsorderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物流单信息查询 API请求 +tmall.servicecenter.workcard.logisticsorder.query + +物流订单信息查询API +*/ +type TmallServicecenterWorkcardLogisticsorderQueryAPIRequest struct { + model.Params + // 物流单号 + _logisticsOrderId int64 +} + +// 初始化TmallServicecenterWorkcardLogisticsorderQueryAPIRequest对象 +func NewTmallServicecenterWorkcardLogisticsorderQueryRequest() *TmallServicecenterWorkcardLogisticsorderQueryAPIRequest{ + return &TmallServicecenterWorkcardLogisticsorderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardLogisticsorderQueryAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.logisticsorder.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardLogisticsorderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LogisticsOrderId Setter +// 物流单号 +func (r *TmallServicecenterWorkcardLogisticsorderQueryAPIRequest) SetLogisticsOrderId(_logisticsOrderId int64) error { + r._logisticsOrderId = _logisticsOrderId + r.Set("logistics_order_id", _logisticsOrderId) + return nil +} + +// LogisticsOrderId Getter +func (r TmallServicecenterWorkcardLogisticsorderQueryAPIRequest) GetLogisticsOrderId() int64 { + return r._logisticsOrderId +} diff --git a/model/tmallservice/TmallServicecenterWorkcardLogisticsorderQueryAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardLogisticsorderQueryAPIResponse.go new file mode 100644 index 0000000000..999a7ddbb2 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardLogisticsorderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物流单信息查询 API返回值 +tmall.servicecenter.workcard.logisticsorder.query + +物流订单信息查询API +*/ +type TmallServicecenterWorkcardLogisticsorderQueryAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardLogisticsorderQueryAPIResponseModel +} + +// 物流单信息查询 成功返回结果 +type TmallServicecenterWorkcardLogisticsorderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_logisticsorder_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardLogisticsorderQueryResponse.go b/model/tmallservice/TmallServicecenterWorkcardLogisticsorderQueryResponse.go deleted file mode 100644 index 32b7cc5b0d..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardLogisticsorderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物流单信息查询 API返回值 -tmall.servicecenter.workcard.logisticsorder.query - -物流订单信息查询API -*/ -type TmallServicecenterWorkcardLogisticsorderQueryAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardLogisticsorderQueryResponse -} - -// 物流单信息查询 成功返回结果 -type TmallServicecenterWorkcardLogisticsorderQueryResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_logisticsorder_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest.go new file mode 100644 index 0000000000..2aaf25dc2b --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest.go @@ -0,0 +1,276 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物流工单履约状态更新 API请求 +tmall.servicecenter.workcard.logisticsorder.update + +天猫寄送类服务对接外部物流服务商回传物流状态信息 +*/ +type TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest struct { + model.Params + // 体积 单位 立方毫米 + _volume int64 + // 重量 单位 克 + _weight int64 + // 备注说明 + _comment string + // 物流单号(展示给消费者) + _expressCode string + // 物流公司名词(展示给消费者) + _expressCompany string + // 小件员手机号码 + _courierMobile string + // 小件员姓名 + _courierName string + // 取件码 + _gotCode string + // 物流订单号 + _logisticsOrderId int64 + // 金额 单位分 + _cost int64 + // 1、以下状态时必填: 包裹已揽收完成 2、字符串格式为:json 串 例子: [{ "name": "上衣", "count": 1 }, { "name": "裤子", "count": 2 }] + _goodsInfo string + // 物流创建 :create 物流取消 :cancel 分派小件员:assign 已经分派小件员: assigned 包裹上门揽收: pickup_door 包裹已揽收完成: pickup_finished 包裹派送中: dispatching 包裹已签收: signed + _statusCode string + // 物流子单号 + _subExpressCodes []string + // 预计送达时间 dispatching节点时必填 + _deliveryTime string + // 签收时间 signed节点时必填 + _signTime string + // 揽收完成时间 pickup_finished节点时必填 + _pickupFinishTime string + // 上门揽收时间 pickup_door节点时必填 + _pickupDoorTime string +} + +// 初始化TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest对象 +func NewTmallServicecenterWorkcardLogisticsorderUpdateRequest() *TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest{ + return &TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.logisticsorder.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Volume Setter +// 体积 单位 立方毫米 +func (r *TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) SetVolume(_volume int64) error { + r._volume = _volume + r.Set("volume", _volume) + return nil +} + +// Volume Getter +func (r TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) GetVolume() int64 { + return r._volume +} +// Weight Setter +// 重量 单位 克 +func (r *TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) SetWeight(_weight int64) error { + r._weight = _weight + r.Set("weight", _weight) + return nil +} + +// Weight Getter +func (r TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) GetWeight() int64 { + return r._weight +} +// Comment Setter +// 备注说明 +func (r *TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) SetComment(_comment string) error { + r._comment = _comment + r.Set("comment", _comment) + return nil +} + +// Comment Getter +func (r TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) GetComment() string { + return r._comment +} +// ExpressCode Setter +// 物流单号(展示给消费者) +func (r *TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) SetExpressCode(_expressCode string) error { + r._expressCode = _expressCode + r.Set("express_code", _expressCode) + return nil +} + +// ExpressCode Getter +func (r TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) GetExpressCode() string { + return r._expressCode +} +// ExpressCompany Setter +// 物流公司名词(展示给消费者) +func (r *TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) SetExpressCompany(_expressCompany string) error { + r._expressCompany = _expressCompany + r.Set("express_company", _expressCompany) + return nil +} + +// ExpressCompany Getter +func (r TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) GetExpressCompany() string { + return r._expressCompany +} +// CourierMobile Setter +// 小件员手机号码 +func (r *TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) SetCourierMobile(_courierMobile string) error { + r._courierMobile = _courierMobile + r.Set("courier_mobile", _courierMobile) + return nil +} + +// CourierMobile Getter +func (r TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) GetCourierMobile() string { + return r._courierMobile +} +// CourierName Setter +// 小件员姓名 +func (r *TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) SetCourierName(_courierName string) error { + r._courierName = _courierName + r.Set("courier_name", _courierName) + return nil +} + +// CourierName Getter +func (r TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) GetCourierName() string { + return r._courierName +} +// GotCode Setter +// 取件码 +func (r *TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) SetGotCode(_gotCode string) error { + r._gotCode = _gotCode + r.Set("got_code", _gotCode) + return nil +} + +// GotCode Getter +func (r TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) GetGotCode() string { + return r._gotCode +} +// LogisticsOrderId Setter +// 物流订单号 +func (r *TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) SetLogisticsOrderId(_logisticsOrderId int64) error { + r._logisticsOrderId = _logisticsOrderId + r.Set("logistics_order_id", _logisticsOrderId) + return nil +} + +// LogisticsOrderId Getter +func (r TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) GetLogisticsOrderId() int64 { + return r._logisticsOrderId +} +// Cost Setter +// 金额 单位分 +func (r *TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) SetCost(_cost int64) error { + r._cost = _cost + r.Set("cost", _cost) + return nil +} + +// Cost Getter +func (r TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) GetCost() int64 { + return r._cost +} +// GoodsInfo Setter +// 1、以下状态时必填: 包裹已揽收完成 2、字符串格式为:json 串 例子: [{ "name": "上衣", "count": 1 }, { "name": "裤子", "count": 2 }] +func (r *TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) SetGoodsInfo(_goodsInfo string) error { + r._goodsInfo = _goodsInfo + r.Set("goods_info", _goodsInfo) + return nil +} + +// GoodsInfo Getter +func (r TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) GetGoodsInfo() string { + return r._goodsInfo +} +// StatusCode Setter +// 物流创建 :create 物流取消 :cancel 分派小件员:assign 已经分派小件员: assigned 包裹上门揽收: pickup_door 包裹已揽收完成: pickup_finished 包裹派送中: dispatching 包裹已签收: signed +func (r *TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) SetStatusCode(_statusCode string) error { + r._statusCode = _statusCode + r.Set("status_code", _statusCode) + return nil +} + +// StatusCode Getter +func (r TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) GetStatusCode() string { + return r._statusCode +} +// SubExpressCodes Setter +// 物流子单号 +func (r *TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) SetSubExpressCodes(_subExpressCodes []string) error { + r._subExpressCodes = _subExpressCodes + r.Set("sub_express_codes", _subExpressCodes) + return nil +} + +// SubExpressCodes Getter +func (r TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) GetSubExpressCodes() []string { + return r._subExpressCodes +} +// DeliveryTime Setter +// 预计送达时间 dispatching节点时必填 +func (r *TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) SetDeliveryTime(_deliveryTime string) error { + r._deliveryTime = _deliveryTime + r.Set("delivery_time", _deliveryTime) + return nil +} + +// DeliveryTime Getter +func (r TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) GetDeliveryTime() string { + return r._deliveryTime +} +// SignTime Setter +// 签收时间 signed节点时必填 +func (r *TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) SetSignTime(_signTime string) error { + r._signTime = _signTime + r.Set("sign_time", _signTime) + return nil +} + +// SignTime Getter +func (r TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) GetSignTime() string { + return r._signTime +} +// PickupFinishTime Setter +// 揽收完成时间 pickup_finished节点时必填 +func (r *TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) SetPickupFinishTime(_pickupFinishTime string) error { + r._pickupFinishTime = _pickupFinishTime + r.Set("pickup_finish_time", _pickupFinishTime) + return nil +} + +// PickupFinishTime Getter +func (r TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) GetPickupFinishTime() string { + return r._pickupFinishTime +} +// PickupDoorTime Setter +// 上门揽收时间 pickup_door节点时必填 +func (r *TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) SetPickupDoorTime(_pickupDoorTime string) error { + r._pickupDoorTime = _pickupDoorTime + r.Set("pickup_door_time", _pickupDoorTime) + return nil +} + +// PickupDoorTime Getter +func (r TmallServicecenterWorkcardLogisticsorderUpdateAPIRequest) GetPickupDoorTime() string { + return r._pickupDoorTime +} diff --git a/model/tmallservice/TmallServicecenterWorkcardLogisticsorderUpdateAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardLogisticsorderUpdateAPIResponse.go new file mode 100644 index 0000000000..a15a0a74a2 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardLogisticsorderUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物流工单履约状态更新 API返回值 +tmall.servicecenter.workcard.logisticsorder.update + +天猫寄送类服务对接外部物流服务商回传物流状态信息 +*/ +type TmallServicecenterWorkcardLogisticsorderUpdateAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardLogisticsorderUpdateAPIResponseModel +} + +// 物流工单履约状态更新 成功返回结果 +type TmallServicecenterWorkcardLogisticsorderUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_logisticsorder_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardLogisticsorderUpdateResponse.go b/model/tmallservice/TmallServicecenterWorkcardLogisticsorderUpdateResponse.go deleted file mode 100644 index 19ca152f80..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardLogisticsorderUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物流工单履约状态更新 API返回值 -tmall.servicecenter.workcard.logisticsorder.update - -天猫寄送类服务对接外部物流服务商回传物流状态信息 -*/ -type TmallServicecenterWorkcardLogisticsorderUpdateAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardLogisticsorderUpdateResponse -} - -// 物流工单履约状态更新 成功返回结果 -type TmallServicecenterWorkcardLogisticsorderUpdateResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_logisticsorder_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardPushAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardPushAPIRequest.go new file mode 100644 index 0000000000..47150157a7 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardPushAPIRequest.go @@ -0,0 +1,122 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推送服务工单信息 API请求 +tmall.servicecenter.workcard.push + +服务商家推送工单信息到天猫。 +*/ +type TmallServicecenterWorkcardPushAPIRequest struct { + model.Params + // 属性列表。使用半角分号隔开,字符串前后都需要有半角分号 + _attributes string + // 描述 + _desc string + // 淘宝交易订单号 + _bizOrderId int64 + // 服务预约安装时间 + _serviceReserveTime string + // 服务预约安装地址。四级地址与街道地址用空格隔开 + _serviceReserveAddress string + // 0=初始化, 3=授理, 10=拒绝 ,4=执行 ,5=成功,11=失败 + _status string +} + +// 初始化TmallServicecenterWorkcardPushAPIRequest对象 +func NewTmallServicecenterWorkcardPushRequest() *TmallServicecenterWorkcardPushAPIRequest{ + return &TmallServicecenterWorkcardPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardPushAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.push" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Attributes Setter +// 属性列表。使用半角分号隔开,字符串前后都需要有半角分号 +func (r *TmallServicecenterWorkcardPushAPIRequest) SetAttributes(_attributes string) error { + r._attributes = _attributes + r.Set("attributes", _attributes) + return nil +} + +// Attributes Getter +func (r TmallServicecenterWorkcardPushAPIRequest) GetAttributes() string { + return r._attributes +} +// Desc Setter +// 描述 +func (r *TmallServicecenterWorkcardPushAPIRequest) SetDesc(_desc string) error { + r._desc = _desc + r.Set("desc", _desc) + return nil +} + +// Desc Getter +func (r TmallServicecenterWorkcardPushAPIRequest) GetDesc() string { + return r._desc +} +// BizOrderId Setter +// 淘宝交易订单号 +func (r *TmallServicecenterWorkcardPushAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r TmallServicecenterWorkcardPushAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} +// ServiceReserveTime Setter +// 服务预约安装时间 +func (r *TmallServicecenterWorkcardPushAPIRequest) SetServiceReserveTime(_serviceReserveTime string) error { + r._serviceReserveTime = _serviceReserveTime + r.Set("service_reserve_time", _serviceReserveTime) + return nil +} + +// ServiceReserveTime Getter +func (r TmallServicecenterWorkcardPushAPIRequest) GetServiceReserveTime() string { + return r._serviceReserveTime +} +// ServiceReserveAddress Setter +// 服务预约安装地址。四级地址与街道地址用空格隔开 +func (r *TmallServicecenterWorkcardPushAPIRequest) SetServiceReserveAddress(_serviceReserveAddress string) error { + r._serviceReserveAddress = _serviceReserveAddress + r.Set("service_reserve_address", _serviceReserveAddress) + return nil +} + +// ServiceReserveAddress Getter +func (r TmallServicecenterWorkcardPushAPIRequest) GetServiceReserveAddress() string { + return r._serviceReserveAddress +} +// Status Setter +// 0=初始化, 3=授理, 10=拒绝 ,4=执行 ,5=成功,11=失败 +func (r *TmallServicecenterWorkcardPushAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TmallServicecenterWorkcardPushAPIRequest) GetStatus() string { + return r._status +} diff --git a/model/tmallservice/TmallServicecenterWorkcardPushAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardPushAPIResponse.go new file mode 100644 index 0000000000..ec3b1281c2 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardPushAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推送服务工单信息 API返回值 +tmall.servicecenter.workcard.push + +服务商家推送工单信息到天猫。 +*/ +type TmallServicecenterWorkcardPushAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardPushAPIResponseModel +} + +// 推送服务工单信息 成功返回结果 +type TmallServicecenterWorkcardPushAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + WorkcardResult *ResultBase `json:"workcard_result,omitempty" xml:"workcard_result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardPushResponse.go b/model/tmallservice/TmallServicecenterWorkcardPushResponse.go deleted file mode 100644 index d8b25d2338..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardPushResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推送服务工单信息 API返回值 -tmall.servicecenter.workcard.push - -服务商家推送工单信息到天猫。 -*/ -type TmallServicecenterWorkcardPushAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardPushResponse -} - -// 推送服务工单信息 成功返回结果 -type TmallServicecenterWorkcardPushResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - WorkcardResult *ResultBase `json:"workcard_result,omitempty" xml:"workcard_result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardQueryAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardQueryAPIRequest.go new file mode 100644 index 0000000000..a1df425f1a --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardQueryAPIRequest.go @@ -0,0 +1,150 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +工单查询接口 API请求 +tmall.servicecenter.workcard.query + +工单查询接口 +*/ +type TmallServicecenterWorkcardQueryAPIRequest struct { + model.Params + // 门店/网点id + _serviceStoreId int64 + // 核销码 + _identifyCode string + // 工单id + _id int64 + // 工单创建开始时间 + _gmtCreateStart string + // 工单创建结束时间,必须与工单创建开始时间一起传入,且间隔不超过15分钟 + _gmtCreateEnd string + // 淘宝交易订单号。主订单或子订单均可 + _bizOrderId int64 + // 当前页数 + _currentPage int64 + // 每页大小 + _pageSize int64 +} + +// 初始化TmallServicecenterWorkcardQueryAPIRequest对象 +func NewTmallServicecenterWorkcardQueryRequest() *TmallServicecenterWorkcardQueryAPIRequest{ + return &TmallServicecenterWorkcardQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardQueryAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceStoreId Setter +// 门店/网点id +func (r *TmallServicecenterWorkcardQueryAPIRequest) SetServiceStoreId(_serviceStoreId int64) error { + r._serviceStoreId = _serviceStoreId + r.Set("service_store_id", _serviceStoreId) + return nil +} + +// ServiceStoreId Getter +func (r TmallServicecenterWorkcardQueryAPIRequest) GetServiceStoreId() int64 { + return r._serviceStoreId +} +// IdentifyCode Setter +// 核销码 +func (r *TmallServicecenterWorkcardQueryAPIRequest) SetIdentifyCode(_identifyCode string) error { + r._identifyCode = _identifyCode + r.Set("identify_code", _identifyCode) + return nil +} + +// IdentifyCode Getter +func (r TmallServicecenterWorkcardQueryAPIRequest) GetIdentifyCode() string { + return r._identifyCode +} +// Id Setter +// 工单id +func (r *TmallServicecenterWorkcardQueryAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TmallServicecenterWorkcardQueryAPIRequest) GetId() int64 { + return r._id +} +// GmtCreateStart Setter +// 工单创建开始时间 +func (r *TmallServicecenterWorkcardQueryAPIRequest) SetGmtCreateStart(_gmtCreateStart string) error { + r._gmtCreateStart = _gmtCreateStart + r.Set("gmt_create_start", _gmtCreateStart) + return nil +} + +// GmtCreateStart Getter +func (r TmallServicecenterWorkcardQueryAPIRequest) GetGmtCreateStart() string { + return r._gmtCreateStart +} +// GmtCreateEnd Setter +// 工单创建结束时间,必须与工单创建开始时间一起传入,且间隔不超过15分钟 +func (r *TmallServicecenterWorkcardQueryAPIRequest) SetGmtCreateEnd(_gmtCreateEnd string) error { + r._gmtCreateEnd = _gmtCreateEnd + r.Set("gmt_create_end", _gmtCreateEnd) + return nil +} + +// GmtCreateEnd Getter +func (r TmallServicecenterWorkcardQueryAPIRequest) GetGmtCreateEnd() string { + return r._gmtCreateEnd +} +// BizOrderId Setter +// 淘宝交易订单号。主订单或子订单均可 +func (r *TmallServicecenterWorkcardQueryAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r TmallServicecenterWorkcardQueryAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} +// CurrentPage Setter +// 当前页数 +func (r *TmallServicecenterWorkcardQueryAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TmallServicecenterWorkcardQueryAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// PageSize Setter +// 每页大小 +func (r *TmallServicecenterWorkcardQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TmallServicecenterWorkcardQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tmallservice/TmallServicecenterWorkcardQueryAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardQueryAPIResponse.go new file mode 100644 index 0000000000..1d60864947 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +工单查询接口 API返回值 +tmall.servicecenter.workcard.query + +工单查询接口 +*/ +type TmallServicecenterWorkcardQueryAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardQueryAPIResponseModel +} + +// 工单查询接口 成功返回结果 +type TmallServicecenterWorkcardQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求结果 + Result *TmallServicecenterWorkcardQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardQueryResponse.go b/model/tmallservice/TmallServicecenterWorkcardQueryResponse.go deleted file mode 100644 index 335483539c..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -工单查询接口 API返回值 -tmall.servicecenter.workcard.query - -工单查询接口 -*/ -type TmallServicecenterWorkcardQueryAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardQueryResponse -} - -// 工单查询接口 成功返回结果 -type TmallServicecenterWorkcardQueryResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求结果 - Result *TmallServicecenterWorkcardQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardQuerybysellerAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardQuerybysellerAPIRequest.go new file mode 100644 index 0000000000..097983825e --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardQuerybysellerAPIRequest.go @@ -0,0 +1,150 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +工单查询接口(面向商家) API请求 +tmall.servicecenter.workcard.querybyseller + +查询工单 +*/ +type TmallServicecenterWorkcardQuerybysellerAPIRequest struct { + model.Params + // 门店/网点id + _serviceStoreId int64 + // 核销码 + _identifyCode string + // 工单id + _id int64 + // 工单创建开始时间 + _gmtCreateStart string + // 工单创建结束时间,必须与工单创建开始时间一起传入,且间隔不超过15分钟 + _gmtCreateEnd string + // 淘宝交易订单号。主订单或子订单均可 + _bizOrderId int64 + // 当前页数 + _currentPage int64 + // 每页大小 + _pageSize int64 +} + +// 初始化TmallServicecenterWorkcardQuerybysellerAPIRequest对象 +func NewTmallServicecenterWorkcardQuerybysellerRequest() *TmallServicecenterWorkcardQuerybysellerAPIRequest{ + return &TmallServicecenterWorkcardQuerybysellerAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardQuerybysellerAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.querybyseller" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardQuerybysellerAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ServiceStoreId Setter +// 门店/网点id +func (r *TmallServicecenterWorkcardQuerybysellerAPIRequest) SetServiceStoreId(_serviceStoreId int64) error { + r._serviceStoreId = _serviceStoreId + r.Set("service_store_id", _serviceStoreId) + return nil +} + +// ServiceStoreId Getter +func (r TmallServicecenterWorkcardQuerybysellerAPIRequest) GetServiceStoreId() int64 { + return r._serviceStoreId +} +// IdentifyCode Setter +// 核销码 +func (r *TmallServicecenterWorkcardQuerybysellerAPIRequest) SetIdentifyCode(_identifyCode string) error { + r._identifyCode = _identifyCode + r.Set("identify_code", _identifyCode) + return nil +} + +// IdentifyCode Getter +func (r TmallServicecenterWorkcardQuerybysellerAPIRequest) GetIdentifyCode() string { + return r._identifyCode +} +// Id Setter +// 工单id +func (r *TmallServicecenterWorkcardQuerybysellerAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TmallServicecenterWorkcardQuerybysellerAPIRequest) GetId() int64 { + return r._id +} +// GmtCreateStart Setter +// 工单创建开始时间 +func (r *TmallServicecenterWorkcardQuerybysellerAPIRequest) SetGmtCreateStart(_gmtCreateStart string) error { + r._gmtCreateStart = _gmtCreateStart + r.Set("gmt_create_start", _gmtCreateStart) + return nil +} + +// GmtCreateStart Getter +func (r TmallServicecenterWorkcardQuerybysellerAPIRequest) GetGmtCreateStart() string { + return r._gmtCreateStart +} +// GmtCreateEnd Setter +// 工单创建结束时间,必须与工单创建开始时间一起传入,且间隔不超过15分钟 +func (r *TmallServicecenterWorkcardQuerybysellerAPIRequest) SetGmtCreateEnd(_gmtCreateEnd string) error { + r._gmtCreateEnd = _gmtCreateEnd + r.Set("gmt_create_end", _gmtCreateEnd) + return nil +} + +// GmtCreateEnd Getter +func (r TmallServicecenterWorkcardQuerybysellerAPIRequest) GetGmtCreateEnd() string { + return r._gmtCreateEnd +} +// BizOrderId Setter +// 淘宝交易订单号。主订单或子订单均可 +func (r *TmallServicecenterWorkcardQuerybysellerAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r TmallServicecenterWorkcardQuerybysellerAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} +// CurrentPage Setter +// 当前页数 +func (r *TmallServicecenterWorkcardQuerybysellerAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TmallServicecenterWorkcardQuerybysellerAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// PageSize Setter +// 每页大小 +func (r *TmallServicecenterWorkcardQuerybysellerAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TmallServicecenterWorkcardQuerybysellerAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tmallservice/TmallServicecenterWorkcardQuerybysellerAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardQuerybysellerAPIResponse.go new file mode 100644 index 0000000000..0efd44cd10 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardQuerybysellerAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +工单查询接口(面向商家) API返回值 +tmall.servicecenter.workcard.querybyseller + +查询工单 +*/ +type TmallServicecenterWorkcardQuerybysellerAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardQuerybysellerAPIResponseModel +} + +// 工单查询接口(面向商家) 成功返回结果 +type TmallServicecenterWorkcardQuerybysellerAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_querybyseller_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TmallServicecenterWorkcardQuerybysellerResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardQuerybysellerResponse.go b/model/tmallservice/TmallServicecenterWorkcardQuerybysellerResponse.go deleted file mode 100644 index 8efb3d4a5a..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardQuerybysellerResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -工单查询接口(面向商家) API返回值 -tmall.servicecenter.workcard.querybyseller - -查询工单 -*/ -type TmallServicecenterWorkcardQuerybysellerAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardQuerybysellerResponse -} - -// 工单查询接口(面向商家) 成功返回结果 -type TmallServicecenterWorkcardQuerybysellerResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_querybyseller_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TmallServicecenterWorkcardQuerybysellerResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardReassignAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardReassignAPIRequest.go new file mode 100644 index 0000000000..00982668e3 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardReassignAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +工单改派门店 API请求 +tmall.servicecenter.workcard.reassign + +工单改派门店 +*/ +type TmallServicecenterWorkcardReassignAPIRequest struct { + model.Params + // 请求入参 + _reassignStoreRequest *ReassignStoreRequest +} + +// 初始化TmallServicecenterWorkcardReassignAPIRequest对象 +func NewTmallServicecenterWorkcardReassignRequest() *TmallServicecenterWorkcardReassignAPIRequest{ + return &TmallServicecenterWorkcardReassignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardReassignAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.reassign" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardReassignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReassignStoreRequest Setter +// 请求入参 +func (r *TmallServicecenterWorkcardReassignAPIRequest) SetReassignStoreRequest(_reassignStoreRequest *ReassignStoreRequest) error { + r._reassignStoreRequest = _reassignStoreRequest + r.Set("reassign_store_request", _reassignStoreRequest) + return nil +} + +// ReassignStoreRequest Getter +func (r TmallServicecenterWorkcardReassignAPIRequest) GetReassignStoreRequest() *ReassignStoreRequest { + return r._reassignStoreRequest +} diff --git a/model/tmallservice/TmallServicecenterWorkcardReassignAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardReassignAPIResponse.go new file mode 100644 index 0000000000..325dc533f3 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardReassignAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +工单改派门店 API返回值 +tmall.servicecenter.workcard.reassign + +工单改派门店 +*/ +type TmallServicecenterWorkcardReassignAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardReassignAPIResponseModel +} + +// 工单改派门店 成功返回结果 +type TmallServicecenterWorkcardReassignAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_reassign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *TmallServicecenterWorkcardReassignResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardReassignResponse.go b/model/tmallservice/TmallServicecenterWorkcardReassignResponse.go deleted file mode 100644 index b6ab37d009..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardReassignResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -工单改派门店 API返回值 -tmall.servicecenter.workcard.reassign - -工单改派门店 -*/ -type TmallServicecenterWorkcardReassignAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardReassignResponse -} - -// 工单改派门店 成功返回结果 -type TmallServicecenterWorkcardReassignResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_reassign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *TmallServicecenterWorkcardReassignResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardRepairprogressUpdateAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardRepairprogressUpdateAPIRequest.go new file mode 100644 index 0000000000..6fc2fd9c3c --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardRepairprogressUpdateAPIRequest.go @@ -0,0 +1,122 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新维修进度 API请求 +tmall.servicecenter.workcard.repairprogress.update + +提供给外部合作服务商的维修进度更改接口 +*/ +type TmallServicecenterWorkcardRepairprogressUpdateAPIRequest struct { + model.Params + // 图片列表 + _picUrlList []string + // 请求节点的动作描述,唯一标识一个节点 + _action string + // 工单id + _workcardId int64 + // 真实接单服务商账号Nick + _realTpNick string + // 服务目标物瑕疵信息 + _targetGoodsDefects string + // 衣服,鞋子 + _receivedGoods string +} + +// 初始化TmallServicecenterWorkcardRepairprogressUpdateAPIRequest对象 +func NewTmallServicecenterWorkcardRepairprogressUpdateRequest() *TmallServicecenterWorkcardRepairprogressUpdateAPIRequest{ + return &TmallServicecenterWorkcardRepairprogressUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.repairprogress.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PicUrlList Setter +// 图片列表 +func (r *TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) SetPicUrlList(_picUrlList []string) error { + r._picUrlList = _picUrlList + r.Set("pic_url_list", _picUrlList) + return nil +} + +// PicUrlList Getter +func (r TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) GetPicUrlList() []string { + return r._picUrlList +} +// Action Setter +// 请求节点的动作描述,唯一标识一个节点 +func (r *TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) SetAction(_action string) error { + r._action = _action + r.Set("action", _action) + return nil +} + +// Action Getter +func (r TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) GetAction() string { + return r._action +} +// WorkcardId Setter +// 工单id +func (r *TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) SetWorkcardId(_workcardId int64) error { + r._workcardId = _workcardId + r.Set("workcard_id", _workcardId) + return nil +} + +// WorkcardId Getter +func (r TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) GetWorkcardId() int64 { + return r._workcardId +} +// RealTpNick Setter +// 真实接单服务商账号Nick +func (r *TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) SetRealTpNick(_realTpNick string) error { + r._realTpNick = _realTpNick + r.Set("real_tp_nick", _realTpNick) + return nil +} + +// RealTpNick Getter +func (r TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) GetRealTpNick() string { + return r._realTpNick +} +// TargetGoodsDefects Setter +// 服务目标物瑕疵信息 +func (r *TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) SetTargetGoodsDefects(_targetGoodsDefects string) error { + r._targetGoodsDefects = _targetGoodsDefects + r.Set("target_goods_defects", _targetGoodsDefects) + return nil +} + +// TargetGoodsDefects Getter +func (r TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) GetTargetGoodsDefects() string { + return r._targetGoodsDefects +} +// ReceivedGoods Setter +// 衣服,鞋子 +func (r *TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) SetReceivedGoods(_receivedGoods string) error { + r._receivedGoods = _receivedGoods + r.Set("received_goods", _receivedGoods) + return nil +} + +// ReceivedGoods Getter +func (r TmallServicecenterWorkcardRepairprogressUpdateAPIRequest) GetReceivedGoods() string { + return r._receivedGoods +} diff --git a/model/tmallservice/TmallServicecenterWorkcardRepairprogressUpdateAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardRepairprogressUpdateAPIResponse.go new file mode 100644 index 0000000000..e2bbfffb68 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardRepairprogressUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新维修进度 API返回值 +tmall.servicecenter.workcard.repairprogress.update + +提供给外部合作服务商的维修进度更改接口 +*/ +type TmallServicecenterWorkcardRepairprogressUpdateAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardRepairprogressUpdateAPIResponseModel +} + +// 更新维修进度 成功返回结果 +type TmallServicecenterWorkcardRepairprogressUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_repairprogress_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TmallServicecenterWorkcardRepairprogressUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardRepairprogressUpdateResponse.go b/model/tmallservice/TmallServicecenterWorkcardRepairprogressUpdateResponse.go deleted file mode 100644 index 047f118586..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardRepairprogressUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新维修进度 API返回值 -tmall.servicecenter.workcard.repairprogress.update - -提供给外部合作服务商的维修进度更改接口 -*/ -type TmallServicecenterWorkcardRepairprogressUpdateAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardRepairprogressUpdateResponse -} - -// 更新维修进度 成功返回结果 -type TmallServicecenterWorkcardRepairprogressUpdateResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_repairprogress_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TmallServicecenterWorkcardRepairprogressUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardReserveAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardReserveAPIRequest.go new file mode 100644 index 0000000000..fadbe9927c --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardReserveAPIRequest.go @@ -0,0 +1,206 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +工单预约 API请求 +tmall.servicecenter.workcard.reserve + +服务工单更新通用接口 +*/ +type TmallServicecenterWorkcardReserveAPIRequest struct { + model.Params + // 工单id + _workcardId int64 + // 服务开始时间 + _reserveTimeStart string + // 服务结束时间 + _reserveTimeEnd string + // 工人手机号 + _workerMobile string + // 预约备注信息 + _reserveRemark string + // 工人姓名 + _workerName string + // 扩展信息 + _attributes string + // 存在多个不同预约节点时需要回传。用于区分具体是哪个预约节点,例如预约上门鉴定和预约上门取件 + _action string + // 履约类型,上门或者到店 + _fulfilType string + // 门店编码 + _serviceStoreCode string + // 门店名称 + _serviceStoreName string + // 核销单id + _fulfilTaskId int64 +} + +// 初始化TmallServicecenterWorkcardReserveAPIRequest对象 +func NewTmallServicecenterWorkcardReserveRequest() *TmallServicecenterWorkcardReserveAPIRequest{ + return &TmallServicecenterWorkcardReserveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardReserveAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.reserve" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardReserveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkcardId Setter +// 工单id +func (r *TmallServicecenterWorkcardReserveAPIRequest) SetWorkcardId(_workcardId int64) error { + r._workcardId = _workcardId + r.Set("workcard_id", _workcardId) + return nil +} + +// WorkcardId Getter +func (r TmallServicecenterWorkcardReserveAPIRequest) GetWorkcardId() int64 { + return r._workcardId +} +// ReserveTimeStart Setter +// 服务开始时间 +func (r *TmallServicecenterWorkcardReserveAPIRequest) SetReserveTimeStart(_reserveTimeStart string) error { + r._reserveTimeStart = _reserveTimeStart + r.Set("reserve_time_start", _reserveTimeStart) + return nil +} + +// ReserveTimeStart Getter +func (r TmallServicecenterWorkcardReserveAPIRequest) GetReserveTimeStart() string { + return r._reserveTimeStart +} +// ReserveTimeEnd Setter +// 服务结束时间 +func (r *TmallServicecenterWorkcardReserveAPIRequest) SetReserveTimeEnd(_reserveTimeEnd string) error { + r._reserveTimeEnd = _reserveTimeEnd + r.Set("reserve_time_end", _reserveTimeEnd) + return nil +} + +// ReserveTimeEnd Getter +func (r TmallServicecenterWorkcardReserveAPIRequest) GetReserveTimeEnd() string { + return r._reserveTimeEnd +} +// WorkerMobile Setter +// 工人手机号 +func (r *TmallServicecenterWorkcardReserveAPIRequest) SetWorkerMobile(_workerMobile string) error { + r._workerMobile = _workerMobile + r.Set("worker_mobile", _workerMobile) + return nil +} + +// WorkerMobile Getter +func (r TmallServicecenterWorkcardReserveAPIRequest) GetWorkerMobile() string { + return r._workerMobile +} +// ReserveRemark Setter +// 预约备注信息 +func (r *TmallServicecenterWorkcardReserveAPIRequest) SetReserveRemark(_reserveRemark string) error { + r._reserveRemark = _reserveRemark + r.Set("reserve_remark", _reserveRemark) + return nil +} + +// ReserveRemark Getter +func (r TmallServicecenterWorkcardReserveAPIRequest) GetReserveRemark() string { + return r._reserveRemark +} +// WorkerName Setter +// 工人姓名 +func (r *TmallServicecenterWorkcardReserveAPIRequest) SetWorkerName(_workerName string) error { + r._workerName = _workerName + r.Set("worker_name", _workerName) + return nil +} + +// WorkerName Getter +func (r TmallServicecenterWorkcardReserveAPIRequest) GetWorkerName() string { + return r._workerName +} +// Attributes Setter +// 扩展信息 +func (r *TmallServicecenterWorkcardReserveAPIRequest) SetAttributes(_attributes string) error { + r._attributes = _attributes + r.Set("attributes", _attributes) + return nil +} + +// Attributes Getter +func (r TmallServicecenterWorkcardReserveAPIRequest) GetAttributes() string { + return r._attributes +} +// Action Setter +// 存在多个不同预约节点时需要回传。用于区分具体是哪个预约节点,例如预约上门鉴定和预约上门取件 +func (r *TmallServicecenterWorkcardReserveAPIRequest) SetAction(_action string) error { + r._action = _action + r.Set("action", _action) + return nil +} + +// Action Getter +func (r TmallServicecenterWorkcardReserveAPIRequest) GetAction() string { + return r._action +} +// FulfilType Setter +// 履约类型,上门或者到店 +func (r *TmallServicecenterWorkcardReserveAPIRequest) SetFulfilType(_fulfilType string) error { + r._fulfilType = _fulfilType + r.Set("fulfil_type", _fulfilType) + return nil +} + +// FulfilType Getter +func (r TmallServicecenterWorkcardReserveAPIRequest) GetFulfilType() string { + return r._fulfilType +} +// ServiceStoreCode Setter +// 门店编码 +func (r *TmallServicecenterWorkcardReserveAPIRequest) SetServiceStoreCode(_serviceStoreCode string) error { + r._serviceStoreCode = _serviceStoreCode + r.Set("service_store_code", _serviceStoreCode) + return nil +} + +// ServiceStoreCode Getter +func (r TmallServicecenterWorkcardReserveAPIRequest) GetServiceStoreCode() string { + return r._serviceStoreCode +} +// ServiceStoreName Setter +// 门店名称 +func (r *TmallServicecenterWorkcardReserveAPIRequest) SetServiceStoreName(_serviceStoreName string) error { + r._serviceStoreName = _serviceStoreName + r.Set("service_store_name", _serviceStoreName) + return nil +} + +// ServiceStoreName Getter +func (r TmallServicecenterWorkcardReserveAPIRequest) GetServiceStoreName() string { + return r._serviceStoreName +} +// FulfilTaskId Setter +// 核销单id +func (r *TmallServicecenterWorkcardReserveAPIRequest) SetFulfilTaskId(_fulfilTaskId int64) error { + r._fulfilTaskId = _fulfilTaskId + r.Set("fulfil_task_id", _fulfilTaskId) + return nil +} + +// FulfilTaskId Getter +func (r TmallServicecenterWorkcardReserveAPIRequest) GetFulfilTaskId() int64 { + return r._fulfilTaskId +} diff --git a/model/tmallservice/TmallServicecenterWorkcardReserveAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardReserveAPIResponse.go new file mode 100644 index 0000000000..00cb687a91 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardReserveAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +工单预约 API返回值 +tmall.servicecenter.workcard.reserve + +服务工单更新通用接口 +*/ +type TmallServicecenterWorkcardReserveAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardReserveAPIResponseModel +} + +// 工单预约 成功返回结果 +type TmallServicecenterWorkcardReserveAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_reserve_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *TmallServicecenterWorkcardReserveResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardReserveResponse.go b/model/tmallservice/TmallServicecenterWorkcardReserveResponse.go deleted file mode 100644 index e0fc16c599..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardReserveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -工单预约 API返回值 -tmall.servicecenter.workcard.reserve - -服务工单更新通用接口 -*/ -type TmallServicecenterWorkcardReserveAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardReserveResponse -} - -// 工单预约 成功返回结果 -type TmallServicecenterWorkcardReserveResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_reserve_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *TmallServicecenterWorkcardReserveResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardReservefailAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardReservefailAPIRequest.go new file mode 100644 index 0000000000..2227e39ef7 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardReservefailAPIRequest.go @@ -0,0 +1,108 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +预约失败 API请求 +tmall.servicecenter.workcard.reservefail + +服务商调用该接口回传工单预约失败 +*/ +type TmallServicecenterWorkcardReservefailAPIRequest struct { + model.Params + // 核销单外部id + _identifyTaskId int64 + // 下次联系时间 + _gmtNextContact string + // 预约失败原因码 + _failCode int64 + // 预约失败原因描述 + _failDesc string + // 工单id + _workcardId int64 +} + +// 初始化TmallServicecenterWorkcardReservefailAPIRequest对象 +func NewTmallServicecenterWorkcardReservefailRequest() *TmallServicecenterWorkcardReservefailAPIRequest{ + return &TmallServicecenterWorkcardReservefailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardReservefailAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.reservefail" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardReservefailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IdentifyTaskId Setter +// 核销单外部id +func (r *TmallServicecenterWorkcardReservefailAPIRequest) SetIdentifyTaskId(_identifyTaskId int64) error { + r._identifyTaskId = _identifyTaskId + r.Set("identify_task_id", _identifyTaskId) + return nil +} + +// IdentifyTaskId Getter +func (r TmallServicecenterWorkcardReservefailAPIRequest) GetIdentifyTaskId() int64 { + return r._identifyTaskId +} +// GmtNextContact Setter +// 下次联系时间 +func (r *TmallServicecenterWorkcardReservefailAPIRequest) SetGmtNextContact(_gmtNextContact string) error { + r._gmtNextContact = _gmtNextContact + r.Set("gmt_next_contact", _gmtNextContact) + return nil +} + +// GmtNextContact Getter +func (r TmallServicecenterWorkcardReservefailAPIRequest) GetGmtNextContact() string { + return r._gmtNextContact +} +// FailCode Setter +// 预约失败原因码 +func (r *TmallServicecenterWorkcardReservefailAPIRequest) SetFailCode(_failCode int64) error { + r._failCode = _failCode + r.Set("fail_code", _failCode) + return nil +} + +// FailCode Getter +func (r TmallServicecenterWorkcardReservefailAPIRequest) GetFailCode() int64 { + return r._failCode +} +// FailDesc Setter +// 预约失败原因描述 +func (r *TmallServicecenterWorkcardReservefailAPIRequest) SetFailDesc(_failDesc string) error { + r._failDesc = _failDesc + r.Set("fail_desc", _failDesc) + return nil +} + +// FailDesc Getter +func (r TmallServicecenterWorkcardReservefailAPIRequest) GetFailDesc() string { + return r._failDesc +} +// WorkcardId Setter +// 工单id +func (r *TmallServicecenterWorkcardReservefailAPIRequest) SetWorkcardId(_workcardId int64) error { + r._workcardId = _workcardId + r.Set("workcard_id", _workcardId) + return nil +} + +// WorkcardId Getter +func (r TmallServicecenterWorkcardReservefailAPIRequest) GetWorkcardId() int64 { + return r._workcardId +} diff --git a/model/tmallservice/TmallServicecenterWorkcardReservefailAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardReservefailAPIResponse.go new file mode 100644 index 0000000000..e8296a94db --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardReservefailAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +预约失败 API返回值 +tmall.servicecenter.workcard.reservefail + +服务商调用该接口回传工单预约失败 +*/ +type TmallServicecenterWorkcardReservefailAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardReservefailAPIResponseModel +} + +// 预约失败 成功返回结果 +type TmallServicecenterWorkcardReservefailAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_reservefail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // - + Result *TmallServicecenterWorkcardReservefailResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardReservefailResponse.go b/model/tmallservice/TmallServicecenterWorkcardReservefailResponse.go deleted file mode 100644 index 083ba58a45..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardReservefailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -预约失败 API返回值 -tmall.servicecenter.workcard.reservefail - -服务商调用该接口回传工单预约失败 -*/ -type TmallServicecenterWorkcardReservefailAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardReservefailResponse -} - -// 预约失败 成功返回结果 -type TmallServicecenterWorkcardReservefailResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_reservefail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // - - Result *TmallServicecenterWorkcardReservefailResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardSigninAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardSigninAPIRequest.go new file mode 100644 index 0000000000..6c99f8bada --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardSigninAPIRequest.go @@ -0,0 +1,80 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商确认工人签到成功 API请求 +tmall.servicecenter.workcard.signin + +服务商确认工人签到成功。需要服务商自己保证工人是在现场服务中。否则虚假回传签到而引起的后续问题全部由服务商自己承担 +*/ +type TmallServicecenterWorkcardSigninAPIRequest struct { + model.Params + // 核销单外部id + _outerId string + // 工单id + _workcardId int64 + // 核销单id + _fulfilTaskId int64 +} + +// 初始化TmallServicecenterWorkcardSigninAPIRequest对象 +func NewTmallServicecenterWorkcardSigninRequest() *TmallServicecenterWorkcardSigninAPIRequest{ + return &TmallServicecenterWorkcardSigninAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardSigninAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.signin" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardSigninAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterId Setter +// 核销单外部id +func (r *TmallServicecenterWorkcardSigninAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TmallServicecenterWorkcardSigninAPIRequest) GetOuterId() string { + return r._outerId +} +// WorkcardId Setter +// 工单id +func (r *TmallServicecenterWorkcardSigninAPIRequest) SetWorkcardId(_workcardId int64) error { + r._workcardId = _workcardId + r.Set("workcard_id", _workcardId) + return nil +} + +// WorkcardId Getter +func (r TmallServicecenterWorkcardSigninAPIRequest) GetWorkcardId() int64 { + return r._workcardId +} +// FulfilTaskId Setter +// 核销单id +func (r *TmallServicecenterWorkcardSigninAPIRequest) SetFulfilTaskId(_fulfilTaskId int64) error { + r._fulfilTaskId = _fulfilTaskId + r.Set("fulfil_task_id", _fulfilTaskId) + return nil +} + +// FulfilTaskId Getter +func (r TmallServicecenterWorkcardSigninAPIRequest) GetFulfilTaskId() int64 { + return r._fulfilTaskId +} diff --git a/model/tmallservice/TmallServicecenterWorkcardSigninAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardSigninAPIResponse.go new file mode 100644 index 0000000000..0bd75cd30c --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardSigninAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商确认工人签到成功 API返回值 +tmall.servicecenter.workcard.signin + +服务商确认工人签到成功。需要服务商自己保证工人是在现场服务中。否则虚假回传签到而引起的后续问题全部由服务商自己承担 +*/ +type TmallServicecenterWorkcardSigninAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardSigninAPIResponseModel +} + +// 服务商确认工人签到成功 成功返回结果 +type TmallServicecenterWorkcardSigninAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_signin_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // . + Result *TmallServicecenterWorkcardSigninResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardSigninResponse.go b/model/tmallservice/TmallServicecenterWorkcardSigninResponse.go deleted file mode 100644 index f12790ba02..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardSigninResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商确认工人签到成功 API返回值 -tmall.servicecenter.workcard.signin - -服务商确认工人签到成功。需要服务商自己保证工人是在现场服务中。否则虚假回传签到而引起的后续问题全部由服务商自己承担 -*/ -type TmallServicecenterWorkcardSigninAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardSigninResponse -} - -// 服务商确认工人签到成功 成功返回结果 -type TmallServicecenterWorkcardSigninResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_signin_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // . - Result *TmallServicecenterWorkcardSigninResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardStatusUpdateAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardStatusUpdateAPIRequest.go new file mode 100644 index 0000000000..bf5c605a67 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardStatusUpdateAPIRequest.go @@ -0,0 +1,472 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商反馈服务的执行情况 API请求 +tmall.servicecenter.workcard.status.update + +1 如果服务商受理了此服务,修改合同状态为:已受理=3
2 如果服务商没有受理此服务,修改合同状态为:已拒绝=10
3 如果服务商执行了此服务,修改合同状态为:已执行=4
4 如果服务商执行服务成功,修改合同状态为:已完成=5
5 如果此工单为合同类型的工单,当服务商受理了此服务后,会进行分账 +*/ +type TmallServicecenterWorkcardStatusUpdateAPIRequest struct { + model.Params + // 工单id + _workcardId int64 + // 工单类型: 2(合同) 或者 1(任务) + _type *model.File + // 目前仅支持5种状态的反馈:3=授理, 10=拒绝 ,4=执行 ,5=成功,11=失败。(所有状态列表: -1: 初始化 0: 生成 1: 生效 2: 申请 3: 受理 4: 执行 5: 成功 9: 结算 10: 拒绝 11: 失败 12 : 撤销 13: 暂停 19: 终止) + _status *model.File + // 买家id + _buyerId int64 + // api调用者 + _updater string + // 更新时间 + _updateDate int64 + // 服务生效时间 :工单类型为合同工单时,必选! + _effectDate int64 + // 服务失效时间 :工单类型为合同工单时,必选! + _expireDate int64 + // 备注,256个字符以内 + _comments string + // 任务类工单,预约或者上门地址 + _address string + // 任务执行,预约联系人 + _contactName string + // 任务执行,预约联系人电话 + _contactPhone string + // 服务预约时间 + _serviceDate int64 + // 服务完成时间 + _completeDate int64 + // 服务凭证上传的图片URL链接,多个以;隔开 + _serviceVoucherPics string + // 属性定义。例如无忧退货服务,K-V对定义,每对KV用“;”分割,“:”号左边是key右边是value,value如果有多个则以“,”分割。 reasons : 原因,可能有多个 succeedCount : 取件成功个数 failedCount : 取件失败个数 cancelCount : 取件取消个数 totalCount : 总取件个数,totalCount= succeedCount + failedCount + cancelCount + _attribute string + // 服务商网点内部编码 + _serviceCenterCode string + // 服务商网点名字 + _serviceCenterName string + // 单元是分 + _serviceFee int64 + // 是否上门 + _isVisit bool + // 说明 + _beforeServiceMemo string + // 说明 + _afterServiceMemo string + // 手机号码 + _phoneImei string + // 服务子状态:30 表示“服务已申请(上门)” 31表示“服务改约(上门)” 400表示“服务结果(待件上门)” 410表示“服务结果(拖机维修)” 411表示“服务结果(换机)” 420表示“服务结果(上门不可维修)” + _subStatus int64 + // 网点负责人联系电话 + _serviceCenterManagerPhone string + // 网点负责人 + _serviceCenterManagerName string + // 网点地址 + _serviceCenterAddress string + // 一个工单可能包含多件商品,比如空调可能有两台,录入每天机器的安装情况 + _workCardInstallDetailList []WorkCardInstallDetail + // json string。费用单位为分 + _serviceFeeDetail string + // 物流单号 + _expressCode string + // 物流公司名字 + _expressCompany string +} + +// 初始化TmallServicecenterWorkcardStatusUpdateAPIRequest对象 +func NewTmallServicecenterWorkcardStatusUpdateRequest() *TmallServicecenterWorkcardStatusUpdateAPIRequest{ + return &TmallServicecenterWorkcardStatusUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.status.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkcardId Setter +// 工单id +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetWorkcardId(_workcardId int64) error { + r._workcardId = _workcardId + r.Set("workcard_id", _workcardId) + return nil +} + +// WorkcardId Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetWorkcardId() int64 { + return r._workcardId +} +// Type Setter +// 工单类型: 2(合同) 或者 1(任务) +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetType(_type *model.File) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetType() *model.File { + return r._type +} +// Status Setter +// 目前仅支持5种状态的反馈:3=授理, 10=拒绝 ,4=执行 ,5=成功,11=失败。(所有状态列表: -1: 初始化 0: 生成 1: 生效 2: 申请 3: 受理 4: 执行 5: 成功 9: 结算 10: 拒绝 11: 失败 12 : 撤销 13: 暂停 19: 终止) +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetStatus(_status *model.File) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetStatus() *model.File { + return r._status +} +// BuyerId Setter +// 买家id +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetBuyerId(_buyerId int64) error { + r._buyerId = _buyerId + r.Set("buyer_id", _buyerId) + return nil +} + +// BuyerId Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetBuyerId() int64 { + return r._buyerId +} +// Updater Setter +// api调用者 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetUpdater(_updater string) error { + r._updater = _updater + r.Set("updater", _updater) + return nil +} + +// Updater Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetUpdater() string { + return r._updater +} +// UpdateDate Setter +// 更新时间 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetUpdateDate(_updateDate int64) error { + r._updateDate = _updateDate + r.Set("update_date", _updateDate) + return nil +} + +// UpdateDate Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetUpdateDate() int64 { + return r._updateDate +} +// EffectDate Setter +// 服务生效时间 :工单类型为合同工单时,必选! +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetEffectDate(_effectDate int64) error { + r._effectDate = _effectDate + r.Set("effect_date", _effectDate) + return nil +} + +// EffectDate Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetEffectDate() int64 { + return r._effectDate +} +// ExpireDate Setter +// 服务失效时间 :工单类型为合同工单时,必选! +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetExpireDate(_expireDate int64) error { + r._expireDate = _expireDate + r.Set("expire_date", _expireDate) + return nil +} + +// ExpireDate Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetExpireDate() int64 { + return r._expireDate +} +// Comments Setter +// 备注,256个字符以内 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetComments(_comments string) error { + r._comments = _comments + r.Set("comments", _comments) + return nil +} + +// Comments Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetComments() string { + return r._comments +} +// Address Setter +// 任务类工单,预约或者上门地址 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetAddress() string { + return r._address +} +// ContactName Setter +// 任务执行,预约联系人 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetContactName(_contactName string) error { + r._contactName = _contactName + r.Set("contact_name", _contactName) + return nil +} + +// ContactName Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetContactName() string { + return r._contactName +} +// ContactPhone Setter +// 任务执行,预约联系人电话 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetContactPhone(_contactPhone string) error { + r._contactPhone = _contactPhone + r.Set("contact_phone", _contactPhone) + return nil +} + +// ContactPhone Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetContactPhone() string { + return r._contactPhone +} +// ServiceDate Setter +// 服务预约时间 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetServiceDate(_serviceDate int64) error { + r._serviceDate = _serviceDate + r.Set("service_date", _serviceDate) + return nil +} + +// ServiceDate Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetServiceDate() int64 { + return r._serviceDate +} +// CompleteDate Setter +// 服务完成时间 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetCompleteDate(_completeDate int64) error { + r._completeDate = _completeDate + r.Set("complete_date", _completeDate) + return nil +} + +// CompleteDate Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetCompleteDate() int64 { + return r._completeDate +} +// ServiceVoucherPics Setter +// 服务凭证上传的图片URL链接,多个以;隔开 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetServiceVoucherPics(_serviceVoucherPics string) error { + r._serviceVoucherPics = _serviceVoucherPics + r.Set("service_voucher_pics", _serviceVoucherPics) + return nil +} + +// ServiceVoucherPics Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetServiceVoucherPics() string { + return r._serviceVoucherPics +} +// Attribute Setter +// 属性定义。例如无忧退货服务,K-V对定义,每对KV用“;”分割,“:”号左边是key右边是value,value如果有多个则以“,”分割。 reasons : 原因,可能有多个 succeedCount : 取件成功个数 failedCount : 取件失败个数 cancelCount : 取件取消个数 totalCount : 总取件个数,totalCount= succeedCount + failedCount + cancelCount +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetAttribute(_attribute string) error { + r._attribute = _attribute + r.Set("attribute", _attribute) + return nil +} + +// Attribute Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetAttribute() string { + return r._attribute +} +// ServiceCenterCode Setter +// 服务商网点内部编码 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetServiceCenterCode(_serviceCenterCode string) error { + r._serviceCenterCode = _serviceCenterCode + r.Set("service_center_code", _serviceCenterCode) + return nil +} + +// ServiceCenterCode Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetServiceCenterCode() string { + return r._serviceCenterCode +} +// ServiceCenterName Setter +// 服务商网点名字 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetServiceCenterName(_serviceCenterName string) error { + r._serviceCenterName = _serviceCenterName + r.Set("service_center_name", _serviceCenterName) + return nil +} + +// ServiceCenterName Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetServiceCenterName() string { + return r._serviceCenterName +} +// ServiceFee Setter +// 单元是分 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetServiceFee(_serviceFee int64) error { + r._serviceFee = _serviceFee + r.Set("service_fee", _serviceFee) + return nil +} + +// ServiceFee Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetServiceFee() int64 { + return r._serviceFee +} +// IsVisit Setter +// 是否上门 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetIsVisit(_isVisit bool) error { + r._isVisit = _isVisit + r.Set("is_visit", _isVisit) + return nil +} + +// IsVisit Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetIsVisit() bool { + return r._isVisit +} +// BeforeServiceMemo Setter +// 说明 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetBeforeServiceMemo(_beforeServiceMemo string) error { + r._beforeServiceMemo = _beforeServiceMemo + r.Set("before_service_memo", _beforeServiceMemo) + return nil +} + +// BeforeServiceMemo Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetBeforeServiceMemo() string { + return r._beforeServiceMemo +} +// AfterServiceMemo Setter +// 说明 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetAfterServiceMemo(_afterServiceMemo string) error { + r._afterServiceMemo = _afterServiceMemo + r.Set("after_service_memo", _afterServiceMemo) + return nil +} + +// AfterServiceMemo Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetAfterServiceMemo() string { + return r._afterServiceMemo +} +// PhoneImei Setter +// 手机号码 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetPhoneImei(_phoneImei string) error { + r._phoneImei = _phoneImei + r.Set("phone_imei", _phoneImei) + return nil +} + +// PhoneImei Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetPhoneImei() string { + return r._phoneImei +} +// SubStatus Setter +// 服务子状态:30 表示“服务已申请(上门)” 31表示“服务改约(上门)” 400表示“服务结果(待件上门)” 410表示“服务结果(拖机维修)” 411表示“服务结果(换机)” 420表示“服务结果(上门不可维修)” +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetSubStatus(_subStatus int64) error { + r._subStatus = _subStatus + r.Set("sub_status", _subStatus) + return nil +} + +// SubStatus Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetSubStatus() int64 { + return r._subStatus +} +// ServiceCenterManagerPhone Setter +// 网点负责人联系电话 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetServiceCenterManagerPhone(_serviceCenterManagerPhone string) error { + r._serviceCenterManagerPhone = _serviceCenterManagerPhone + r.Set("service_center_manager_phone", _serviceCenterManagerPhone) + return nil +} + +// ServiceCenterManagerPhone Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetServiceCenterManagerPhone() string { + return r._serviceCenterManagerPhone +} +// ServiceCenterManagerName Setter +// 网点负责人 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetServiceCenterManagerName(_serviceCenterManagerName string) error { + r._serviceCenterManagerName = _serviceCenterManagerName + r.Set("service_center_manager_name", _serviceCenterManagerName) + return nil +} + +// ServiceCenterManagerName Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetServiceCenterManagerName() string { + return r._serviceCenterManagerName +} +// ServiceCenterAddress Setter +// 网点地址 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetServiceCenterAddress(_serviceCenterAddress string) error { + r._serviceCenterAddress = _serviceCenterAddress + r.Set("service_center_address", _serviceCenterAddress) + return nil +} + +// ServiceCenterAddress Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetServiceCenterAddress() string { + return r._serviceCenterAddress +} +// WorkCardInstallDetailList Setter +// 一个工单可能包含多件商品,比如空调可能有两台,录入每天机器的安装情况 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetWorkCardInstallDetailList(_workCardInstallDetailList []WorkCardInstallDetail) error { + r._workCardInstallDetailList = _workCardInstallDetailList + r.Set("work_card_install_detail_list", _workCardInstallDetailList) + return nil +} + +// WorkCardInstallDetailList Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetWorkCardInstallDetailList() []WorkCardInstallDetail { + return r._workCardInstallDetailList +} +// ServiceFeeDetail Setter +// json string。费用单位为分 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetServiceFeeDetail(_serviceFeeDetail string) error { + r._serviceFeeDetail = _serviceFeeDetail + r.Set("service_fee_detail", _serviceFeeDetail) + return nil +} + +// ServiceFeeDetail Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetServiceFeeDetail() string { + return r._serviceFeeDetail +} +// ExpressCode Setter +// 物流单号 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetExpressCode(_expressCode string) error { + r._expressCode = _expressCode + r.Set("express_code", _expressCode) + return nil +} + +// ExpressCode Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetExpressCode() string { + return r._expressCode +} +// ExpressCompany Setter +// 物流公司名字 +func (r *TmallServicecenterWorkcardStatusUpdateAPIRequest) SetExpressCompany(_expressCompany string) error { + r._expressCompany = _expressCompany + r.Set("express_company", _expressCompany) + return nil +} + +// ExpressCompany Getter +func (r TmallServicecenterWorkcardStatusUpdateAPIRequest) GetExpressCompany() string { + return r._expressCompany +} diff --git a/model/tmallservice/TmallServicecenterWorkcardStatusUpdateAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardStatusUpdateAPIResponse.go new file mode 100644 index 0000000000..b23f1a0ee9 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardStatusUpdateAPIResponse.go @@ -0,0 +1,31 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商反馈服务的执行情况 API返回值 +tmall.servicecenter.workcard.status.update + +1 如果服务商受理了此服务,修改合同状态为:已受理=3
2 如果服务商没有受理此服务,修改合同状态为:已拒绝=10
3 如果服务商执行了此服务,修改合同状态为:已执行=4
4 如果服务商执行服务成功,修改合同状态为:已完成=5
5 如果此工单为合同类型的工单,当服务商受理了此服务后,会进行分账 +*/ +type TmallServicecenterWorkcardStatusUpdateAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardStatusUpdateAPIResponseModel +} + +// 服务商反馈服务的执行情况 成功返回结果 +type TmallServicecenterWorkcardStatusUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_status_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Rs bool `json:"rs,omitempty" xml:"rs,omitempty"` + // 错误码 + ErrorCodeValue string `json:"error_code_value,omitempty" xml:"error_code_value,omitempty"` + // 错误信息 + ErrorMsgInfo string `json:"error_msg_info,omitempty" xml:"error_msg_info,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardStatusUpdateResponse.go b/model/tmallservice/TmallServicecenterWorkcardStatusUpdateResponse.go deleted file mode 100644 index 9bd970a1a2..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardStatusUpdateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商反馈服务的执行情况 API返回值 -tmall.servicecenter.workcard.status.update - -1 如果服务商受理了此服务,修改合同状态为:已受理=3
2 如果服务商没有受理此服务,修改合同状态为:已拒绝=10
3 如果服务商执行了此服务,修改合同状态为:已执行=4
4 如果服务商执行服务成功,修改合同状态为:已完成=5
5 如果此工单为合同类型的工单,当服务商受理了此服务后,会进行分账 -*/ -type TmallServicecenterWorkcardStatusUpdateAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardStatusUpdateResponse -} - -// 服务商反馈服务的执行情况 成功返回结果 -type TmallServicecenterWorkcardStatusUpdateResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_status_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Rs bool `json:"rs,omitempty" xml:"rs,omitempty"` - // 错误码 - ErrorCodeValue string `json:"error_code_value,omitempty" xml:"error_code_value,omitempty"` - // 错误信息 - ErrorMsgInfo string `json:"error_msg_info,omitempty" xml:"error_msg_info,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardSuspendAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardSuspendAPIRequest.go new file mode 100644 index 0000000000..8ba1be2572 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardSuspendAPIRequest.go @@ -0,0 +1,108 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +工单挂起 API请求 +tmall.servicecenter.workcard.suspend + +工单挂起 +*/ +type TmallServicecenterWorkcardSuspendAPIRequest struct { + model.Params + // 预约时间 + _reserveServiceDate string + // 下次联系时间 + _gmtNextContact string + // 工单id + _workcardId int64 + // 挂起原因类型code + _failCode int64 + // 挂起原因描述 + _failDesc string +} + +// 初始化TmallServicecenterWorkcardSuspendAPIRequest对象 +func NewTmallServicecenterWorkcardSuspendRequest() *TmallServicecenterWorkcardSuspendAPIRequest{ + return &TmallServicecenterWorkcardSuspendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardSuspendAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.suspend" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardSuspendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReserveServiceDate Setter +// 预约时间 +func (r *TmallServicecenterWorkcardSuspendAPIRequest) SetReserveServiceDate(_reserveServiceDate string) error { + r._reserveServiceDate = _reserveServiceDate + r.Set("reserve_service_date", _reserveServiceDate) + return nil +} + +// ReserveServiceDate Getter +func (r TmallServicecenterWorkcardSuspendAPIRequest) GetReserveServiceDate() string { + return r._reserveServiceDate +} +// GmtNextContact Setter +// 下次联系时间 +func (r *TmallServicecenterWorkcardSuspendAPIRequest) SetGmtNextContact(_gmtNextContact string) error { + r._gmtNextContact = _gmtNextContact + r.Set("gmt_next_contact", _gmtNextContact) + return nil +} + +// GmtNextContact Getter +func (r TmallServicecenterWorkcardSuspendAPIRequest) GetGmtNextContact() string { + return r._gmtNextContact +} +// WorkcardId Setter +// 工单id +func (r *TmallServicecenterWorkcardSuspendAPIRequest) SetWorkcardId(_workcardId int64) error { + r._workcardId = _workcardId + r.Set("workcard_id", _workcardId) + return nil +} + +// WorkcardId Getter +func (r TmallServicecenterWorkcardSuspendAPIRequest) GetWorkcardId() int64 { + return r._workcardId +} +// FailCode Setter +// 挂起原因类型code +func (r *TmallServicecenterWorkcardSuspendAPIRequest) SetFailCode(_failCode int64) error { + r._failCode = _failCode + r.Set("fail_code", _failCode) + return nil +} + +// FailCode Getter +func (r TmallServicecenterWorkcardSuspendAPIRequest) GetFailCode() int64 { + return r._failCode +} +// FailDesc Setter +// 挂起原因描述 +func (r *TmallServicecenterWorkcardSuspendAPIRequest) SetFailDesc(_failDesc string) error { + r._failDesc = _failDesc + r.Set("fail_desc", _failDesc) + return nil +} + +// FailDesc Getter +func (r TmallServicecenterWorkcardSuspendAPIRequest) GetFailDesc() string { + return r._failDesc +} diff --git a/model/tmallservice/TmallServicecenterWorkcardSuspendAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardSuspendAPIResponse.go new file mode 100644 index 0000000000..e2fbd3bbb7 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardSuspendAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +工单挂起 API返回值 +tmall.servicecenter.workcard.suspend + +工单挂起 +*/ +type TmallServicecenterWorkcardSuspendAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardSuspendAPIResponseModel +} + +// 工单挂起 成功返回结果 +type TmallServicecenterWorkcardSuspendAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_suspend_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *TmallServicecenterWorkcardSuspendResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardSuspendResponse.go b/model/tmallservice/TmallServicecenterWorkcardSuspendResponse.go deleted file mode 100644 index cee639d9e4..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardSuspendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -工单挂起 API返回值 -tmall.servicecenter.workcard.suspend - -工单挂起 -*/ -type TmallServicecenterWorkcardSuspendAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardSuspendResponse -} - -// 工单挂起 成功返回结果 -type TmallServicecenterWorkcardSuspendResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_suspend_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *TmallServicecenterWorkcardSuspendResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardUpdatelogisticsAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardUpdatelogisticsAPIRequest.go new file mode 100644 index 0000000000..8aa402a315 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardUpdatelogisticsAPIRequest.go @@ -0,0 +1,94 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新物流进度 API请求 +tmall.servicecenter.workcard.updatelogistics + +提供给外部合作服务商的物流进度更改接口 +*/ +type TmallServicecenterWorkcardUpdatelogisticsAPIRequest struct { + model.Params + // 工单号 + _workcardId int64 + // 工单操作 + _action string + // 快递公司 + _expressCompany string + // 快递号 + _expressCode string +} + +// 初始化TmallServicecenterWorkcardUpdatelogisticsAPIRequest对象 +func NewTmallServicecenterWorkcardUpdatelogisticsRequest() *TmallServicecenterWorkcardUpdatelogisticsAPIRequest{ + return &TmallServicecenterWorkcardUpdatelogisticsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardUpdatelogisticsAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.updatelogistics" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardUpdatelogisticsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkcardId Setter +// 工单号 +func (r *TmallServicecenterWorkcardUpdatelogisticsAPIRequest) SetWorkcardId(_workcardId int64) error { + r._workcardId = _workcardId + r.Set("workcard_id", _workcardId) + return nil +} + +// WorkcardId Getter +func (r TmallServicecenterWorkcardUpdatelogisticsAPIRequest) GetWorkcardId() int64 { + return r._workcardId +} +// Action Setter +// 工单操作 +func (r *TmallServicecenterWorkcardUpdatelogisticsAPIRequest) SetAction(_action string) error { + r._action = _action + r.Set("action", _action) + return nil +} + +// Action Getter +func (r TmallServicecenterWorkcardUpdatelogisticsAPIRequest) GetAction() string { + return r._action +} +// ExpressCompany Setter +// 快递公司 +func (r *TmallServicecenterWorkcardUpdatelogisticsAPIRequest) SetExpressCompany(_expressCompany string) error { + r._expressCompany = _expressCompany + r.Set("express_company", _expressCompany) + return nil +} + +// ExpressCompany Getter +func (r TmallServicecenterWorkcardUpdatelogisticsAPIRequest) GetExpressCompany() string { + return r._expressCompany +} +// ExpressCode Setter +// 快递号 +func (r *TmallServicecenterWorkcardUpdatelogisticsAPIRequest) SetExpressCode(_expressCode string) error { + r._expressCode = _expressCode + r.Set("express_code", _expressCode) + return nil +} + +// ExpressCode Getter +func (r TmallServicecenterWorkcardUpdatelogisticsAPIRequest) GetExpressCode() string { + return r._expressCode +} diff --git a/model/tmallservice/TmallServicecenterWorkcardUpdatelogisticsAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardUpdatelogisticsAPIResponse.go new file mode 100644 index 0000000000..47f64c0895 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardUpdatelogisticsAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新物流进度 API返回值 +tmall.servicecenter.workcard.updatelogistics + +提供给外部合作服务商的物流进度更改接口 +*/ +type TmallServicecenterWorkcardUpdatelogisticsAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardUpdatelogisticsAPIResponseModel +} + +// 更新物流进度 成功返回结果 +type TmallServicecenterWorkcardUpdatelogisticsAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_updatelogistics_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回信息 + Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardUpdatelogisticsResponse.go b/model/tmallservice/TmallServicecenterWorkcardUpdatelogisticsResponse.go deleted file mode 100644 index 04e4dfb83e..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardUpdatelogisticsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新物流进度 API返回值 -tmall.servicecenter.workcard.updatelogistics - -提供给外部合作服务商的物流进度更改接口 -*/ -type TmallServicecenterWorkcardUpdatelogisticsAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardUpdatelogisticsResponse -} - -// 更新物流进度 成功返回结果 -type TmallServicecenterWorkcardUpdatelogisticsResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_updatelogistics_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回信息 - Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardVerifycodeResendAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardVerifycodeResendAPIRequest.go new file mode 100644 index 0000000000..bb474acc09 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardVerifycodeResendAPIRequest.go @@ -0,0 +1,66 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +重发核销码 API请求 +tmall.servicecenter.workcard.verifycode.resend + +重发核销码 +*/ +type TmallServicecenterWorkcardVerifycodeResendAPIRequest struct { + model.Params + // 工单id + _workcardId int64 + // 门店/网点id + _serviceStoreId int64 +} + +// 初始化TmallServicecenterWorkcardVerifycodeResendAPIRequest对象 +func NewTmallServicecenterWorkcardVerifycodeResendRequest() *TmallServicecenterWorkcardVerifycodeResendAPIRequest{ + return &TmallServicecenterWorkcardVerifycodeResendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardVerifycodeResendAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.verifycode.resend" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardVerifycodeResendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkcardId Setter +// 工单id +func (r *TmallServicecenterWorkcardVerifycodeResendAPIRequest) SetWorkcardId(_workcardId int64) error { + r._workcardId = _workcardId + r.Set("workcard_id", _workcardId) + return nil +} + +// WorkcardId Getter +func (r TmallServicecenterWorkcardVerifycodeResendAPIRequest) GetWorkcardId() int64 { + return r._workcardId +} +// ServiceStoreId Setter +// 门店/网点id +func (r *TmallServicecenterWorkcardVerifycodeResendAPIRequest) SetServiceStoreId(_serviceStoreId int64) error { + r._serviceStoreId = _serviceStoreId + r.Set("service_store_id", _serviceStoreId) + return nil +} + +// ServiceStoreId Getter +func (r TmallServicecenterWorkcardVerifycodeResendAPIRequest) GetServiceStoreId() int64 { + return r._serviceStoreId +} diff --git a/model/tmallservice/TmallServicecenterWorkcardVerifycodeResendAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardVerifycodeResendAPIResponse.go new file mode 100644 index 0000000000..a0f098d7de --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardVerifycodeResendAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +重发核销码 API返回值 +tmall.servicecenter.workcard.verifycode.resend + +重发核销码 +*/ +type TmallServicecenterWorkcardVerifycodeResendAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardVerifycodeResendAPIResponseModel +} + +// 重发核销码 成功返回结果 +type TmallServicecenterWorkcardVerifycodeResendAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_verifycode_resend_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *TmallServicecenterWorkcardVerifycodeResendResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardVerifycodeResendResponse.go b/model/tmallservice/TmallServicecenterWorkcardVerifycodeResendResponse.go deleted file mode 100644 index a1ec69385e..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardVerifycodeResendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -重发核销码 API返回值 -tmall.servicecenter.workcard.verifycode.resend - -重发核销码 -*/ -type TmallServicecenterWorkcardVerifycodeResendAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardVerifycodeResendResponse -} - -// 重发核销码 成功返回结果 -type TmallServicecenterWorkcardVerifycodeResendResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_verifycode_resend_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *TmallServicecenterWorkcardVerifycodeResendResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkcardVirtualphoneBindAPIRequest.go b/model/tmallservice/TmallServicecenterWorkcardVirtualphoneBindAPIRequest.go new file mode 100644 index 0000000000..267ee38e29 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardVirtualphoneBindAPIRequest.go @@ -0,0 +1,53 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +工单维度虚拟中间号绑定 API请求 +tmall.servicecenter.workcard.virtualphone.bind + +服务供应链洗护服务ERP项目中,客服呼叫消费者的功能。 +叫消费者的手机号虚拟号码给到客服。 +*/ +type TmallServicecenterWorkcardVirtualphoneBindAPIRequest struct { + model.Params + // 绑定阿里通讯号入参 + _workcardRequest *WorkcardBaseRequest +} + +// 初始化TmallServicecenterWorkcardVirtualphoneBindAPIRequest对象 +func NewTmallServicecenterWorkcardVirtualphoneBindRequest() *TmallServicecenterWorkcardVirtualphoneBindAPIRequest{ + return &TmallServicecenterWorkcardVirtualphoneBindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkcardVirtualphoneBindAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.workcard.virtualphone.bind" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkcardVirtualphoneBindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkcardRequest Setter +// 绑定阿里通讯号入参 +func (r *TmallServicecenterWorkcardVirtualphoneBindAPIRequest) SetWorkcardRequest(_workcardRequest *WorkcardBaseRequest) error { + r._workcardRequest = _workcardRequest + r.Set("workcard_request", _workcardRequest) + return nil +} + +// WorkcardRequest Getter +func (r TmallServicecenterWorkcardVirtualphoneBindAPIRequest) GetWorkcardRequest() *WorkcardBaseRequest { + return r._workcardRequest +} diff --git a/model/tmallservice/TmallServicecenterWorkcardVirtualphoneBindAPIResponse.go b/model/tmallservice/TmallServicecenterWorkcardVirtualphoneBindAPIResponse.go new file mode 100644 index 0000000000..f309ad82a2 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkcardVirtualphoneBindAPIResponse.go @@ -0,0 +1,28 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +工单维度虚拟中间号绑定 API返回值 +tmall.servicecenter.workcard.virtualphone.bind + +服务供应链洗护服务ERP项目中,客服呼叫消费者的功能。 +叫消费者的手机号虚拟号码给到客服。 +*/ +type TmallServicecenterWorkcardVirtualphoneBindAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkcardVirtualphoneBindAPIResponseModel +} + +// 工单维度虚拟中间号绑定 成功返回结果 +type TmallServicecenterWorkcardVirtualphoneBindAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_workcard_virtualphone_bind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkcardVirtualphoneBindResponse.go b/model/tmallservice/TmallServicecenterWorkcardVirtualphoneBindResponse.go deleted file mode 100644 index dab80199ed..0000000000 --- a/model/tmallservice/TmallServicecenterWorkcardVirtualphoneBindResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -工单维度虚拟中间号绑定 API返回值 -tmall.servicecenter.workcard.virtualphone.bind - -服务供应链洗护服务ERP项目中,客服呼叫消费者的功能。 -叫消费者的手机号虚拟号码给到客服。 -*/ -type TmallServicecenterWorkcardVirtualphoneBindAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkcardVirtualphoneBindResponse -} - -// 工单维度虚拟中间号绑定 成功返回结果 -type TmallServicecenterWorkcardVirtualphoneBindResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_workcard_virtualphone_bind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *FulfilplatformResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkerCreateAPIRequest.go b/model/tmallservice/TmallServicecenterWorkerCreateAPIRequest.go new file mode 100644 index 0000000000..b3e22e6a6f --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkerCreateAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商工人信息创建 API请求 +tmall.servicecenter.worker.create + +服务商工人信息创建 +*/ +type TmallServicecenterWorkerCreateAPIRequest struct { + model.Params + // 11 + _workerDto *WorkerDto +} + +// 初始化TmallServicecenterWorkerCreateAPIRequest对象 +func NewTmallServicecenterWorkerCreateRequest() *TmallServicecenterWorkerCreateAPIRequest{ + return &TmallServicecenterWorkerCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkerCreateAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.worker.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkerCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkerDto Setter +// 11 +func (r *TmallServicecenterWorkerCreateAPIRequest) SetWorkerDto(_workerDto *WorkerDto) error { + r._workerDto = _workerDto + r.Set("worker_dto", _workerDto) + return nil +} + +// WorkerDto Getter +func (r TmallServicecenterWorkerCreateAPIRequest) GetWorkerDto() *WorkerDto { + return r._workerDto +} diff --git a/model/tmallservice/TmallServicecenterWorkerCreateAPIResponse.go b/model/tmallservice/TmallServicecenterWorkerCreateAPIResponse.go new file mode 100644 index 0000000000..6546c41b6b --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkerCreateAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务商工人信息创建 API返回值 +tmall.servicecenter.worker.create + +服务商工人信息创建 +*/ +type TmallServicecenterWorkerCreateAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkerCreateAPIResponseModel +} + +// 服务商工人信息创建 成功返回结果 +type TmallServicecenterWorkerCreateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_worker_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkerCreateResponse.go b/model/tmallservice/TmallServicecenterWorkerCreateResponse.go deleted file mode 100644 index fb36f9a5d5..0000000000 --- a/model/tmallservice/TmallServicecenterWorkerCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务商工人信息创建 API返回值 -tmall.servicecenter.worker.create - -服务商工人信息创建 -*/ -type TmallServicecenterWorkerCreateAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkerCreateResponse -} - -// 服务商工人信息创建 成功返回结果 -type TmallServicecenterWorkerCreateResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_worker_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkerDeleteAPIRequest.go b/model/tmallservice/TmallServicecenterWorkerDeleteAPIRequest.go new file mode 100644 index 0000000000..9626f6d479 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkerDeleteAPIRequest.go @@ -0,0 +1,95 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除工人 API请求 +tmall.servicecenter.worker.delete + +删除工人信息。该接口为多个业务公用,部分字段可忽略。对于电器预约安装业务,同一个服务商,通过工人姓名+手机号+biz_type 保证唯一性。工人已存在才可以删除。 +错误码如下 +100000, 系统错误 +100001, 工人信息校验失败 +100002, 用户校验失败 +100003, 操作失败 +10004,工人信息为空 +10005,服务商id为空或者服务商名称为空 +10006, 工人不存在 +10007, 工人已存在 +10008, 缺少工人姓名 +10009, 缺少工人电话 +10010, 网点不存在 +11000, category_id 无效 +11001, biz_type 无效 +20001,已查询到最后一页 +*/ +type TmallServicecenterWorkerDeleteAPIRequest struct { + model.Params + // 工人姓名 + _name string + // 工人手机号 + _phone int64 + // 业务类型,电器预约安装业务填appliance_install + _bizType string +} + +// 初始化TmallServicecenterWorkerDeleteAPIRequest对象 +func NewTmallServicecenterWorkerDeleteRequest() *TmallServicecenterWorkerDeleteAPIRequest{ + return &TmallServicecenterWorkerDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkerDeleteAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.worker.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkerDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// 工人姓名 +func (r *TmallServicecenterWorkerDeleteAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TmallServicecenterWorkerDeleteAPIRequest) GetName() string { + return r._name +} +// Phone Setter +// 工人手机号 +func (r *TmallServicecenterWorkerDeleteAPIRequest) SetPhone(_phone int64) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r TmallServicecenterWorkerDeleteAPIRequest) GetPhone() int64 { + return r._phone +} +// BizType Setter +// 业务类型,电器预约安装业务填appliance_install +func (r *TmallServicecenterWorkerDeleteAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r TmallServicecenterWorkerDeleteAPIRequest) GetBizType() string { + return r._bizType +} diff --git a/model/tmallservice/TmallServicecenterWorkerDeleteAPIResponse.go b/model/tmallservice/TmallServicecenterWorkerDeleteAPIResponse.go new file mode 100644 index 0000000000..be905aad63 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkerDeleteAPIResponse.go @@ -0,0 +1,42 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除工人 API返回值 +tmall.servicecenter.worker.delete + +删除工人信息。该接口为多个业务公用,部分字段可忽略。对于电器预约安装业务,同一个服务商,通过工人姓名+手机号+biz_type 保证唯一性。工人已存在才可以删除。 +错误码如下 +100000, 系统错误 +100001, 工人信息校验失败 +100002, 用户校验失败 +100003, 操作失败 +10004,工人信息为空 +10005,服务商id为空或者服务商名称为空 +10006, 工人不存在 +10007, 工人已存在 +10008, 缺少工人姓名 +10009, 缺少工人电话 +10010, 网点不存在 +11000, category_id 无效 +11001, biz_type 无效 +20001,已查询到最后一页 +*/ +type TmallServicecenterWorkerDeleteAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkerDeleteAPIResponseModel +} + +// 删除工人 成功返回结果 +type TmallServicecenterWorkerDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_worker_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkerDeleteResponse.go b/model/tmallservice/TmallServicecenterWorkerDeleteResponse.go deleted file mode 100644 index 454ad1a585..0000000000 --- a/model/tmallservice/TmallServicecenterWorkerDeleteResponse.go +++ /dev/null @@ -1,42 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除工人 API返回值 -tmall.servicecenter.worker.delete - -删除工人信息。该接口为多个业务公用,部分字段可忽略。对于电器预约安装业务,同一个服务商,通过工人姓名+手机号+biz_type 保证唯一性。工人已存在才可以删除。 -错误码如下 -100000, 系统错误 -100001, 工人信息校验失败 -100002, 用户校验失败 -100003, 操作失败 -10004,工人信息为空 -10005,服务商id为空或者服务商名称为空 -10006, 工人不存在 -10007, 工人已存在 -10008, 缺少工人姓名 -10009, 缺少工人电话 -10010, 网点不存在 -11000, category_id 无效 -11001, biz_type 无效 -20001,已查询到最后一页 -*/ -type TmallServicecenterWorkerDeleteAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkerDeleteResponse -} - -// 删除工人 成功返回结果 -type TmallServicecenterWorkerDeleteResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_worker_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkerQueryAPIRequest.go b/model/tmallservice/TmallServicecenterWorkerQueryAPIRequest.go new file mode 100644 index 0000000000..d98affcfaa --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkerQueryAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +工人信息查询 API请求 +tmall.servicecenter.worker.query + +查询服务商对应的工人信息 +*/ +type TmallServicecenterWorkerQueryAPIRequest struct { + model.Params + // 身份证号 + _identityId string +} + +// 初始化TmallServicecenterWorkerQueryAPIRequest对象 +func NewTmallServicecenterWorkerQueryRequest() *TmallServicecenterWorkerQueryAPIRequest{ + return &TmallServicecenterWorkerQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkerQueryAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.worker.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkerQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IdentityId Setter +// 身份证号 +func (r *TmallServicecenterWorkerQueryAPIRequest) SetIdentityId(_identityId string) error { + r._identityId = _identityId + r.Set("identity_id", _identityId) + return nil +} + +// IdentityId Getter +func (r TmallServicecenterWorkerQueryAPIRequest) GetIdentityId() string { + return r._identityId +} diff --git a/model/tmallservice/TmallServicecenterWorkerQueryAPIResponse.go b/model/tmallservice/TmallServicecenterWorkerQueryAPIResponse.go new file mode 100644 index 0000000000..1dd7ce40c7 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkerQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +工人信息查询 API返回值 +tmall.servicecenter.worker.query + +查询服务商对应的工人信息 +*/ +type TmallServicecenterWorkerQueryAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkerQueryAPIResponseModel +} + +// 工人信息查询 成功返回结果 +type TmallServicecenterWorkerQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_worker_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkerQueryResponse.go b/model/tmallservice/TmallServicecenterWorkerQueryResponse.go deleted file mode 100644 index bade69cf5e..0000000000 --- a/model/tmallservice/TmallServicecenterWorkerQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -工人信息查询 API返回值 -tmall.servicecenter.worker.query - -查询服务商对应的工人信息 -*/ -type TmallServicecenterWorkerQueryAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkerQueryResponse -} - -// 工人信息查询 成功返回结果 -type TmallServicecenterWorkerQueryResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_worker_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkerQuerycapacitytaskAPIRequest.go b/model/tmallservice/TmallServicecenterWorkerQuerycapacitytaskAPIRequest.go new file mode 100644 index 0000000000..d92bdbb066 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkerQuerycapacitytaskAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询需求容量 API请求 +tmall.servicecenter.worker.querycapacitytask + +查询需求容量 +*/ +type TmallServicecenterWorkerQuerycapacitytaskAPIRequest struct { + model.Params + // 查询对象 + _query *CapacityTaskQueryDto +} + +// 初始化TmallServicecenterWorkerQuerycapacitytaskAPIRequest对象 +func NewTmallServicecenterWorkerQuerycapacitytaskRequest() *TmallServicecenterWorkerQuerycapacitytaskAPIRequest{ + return &TmallServicecenterWorkerQuerycapacitytaskAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkerQuerycapacitytaskAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.worker.querycapacitytask" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkerQuerycapacitytaskAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 查询对象 +func (r *TmallServicecenterWorkerQuerycapacitytaskAPIRequest) SetQuery(_query *CapacityTaskQueryDto) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r TmallServicecenterWorkerQuerycapacitytaskAPIRequest) GetQuery() *CapacityTaskQueryDto { + return r._query +} diff --git a/model/tmallservice/TmallServicecenterWorkerQuerycapacitytaskAPIResponse.go b/model/tmallservice/TmallServicecenterWorkerQuerycapacitytaskAPIResponse.go new file mode 100644 index 0000000000..c893d7f4fb --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkerQuerycapacitytaskAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询需求容量 API返回值 +tmall.servicecenter.worker.querycapacitytask + +查询需求容量 +*/ +type TmallServicecenterWorkerQuerycapacitytaskAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkerQuerycapacitytaskAPIResponseModel +} + +// 查询需求容量 成功返回结果 +type TmallServicecenterWorkerQuerycapacitytaskAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_worker_querycapacitytask_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ResultBase + ResultBase *ResultBase `json:"result_base,omitempty" xml:"result_base,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkerQuerycapacitytaskResponse.go b/model/tmallservice/TmallServicecenterWorkerQuerycapacitytaskResponse.go deleted file mode 100644 index 77262eabb6..0000000000 --- a/model/tmallservice/TmallServicecenterWorkerQuerycapacitytaskResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询需求容量 API返回值 -tmall.servicecenter.worker.querycapacitytask - -查询需求容量 -*/ -type TmallServicecenterWorkerQuerycapacitytaskAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkerQuerycapacitytaskResponse -} - -// 查询需求容量 成功返回结果 -type TmallServicecenterWorkerQuerycapacitytaskResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_worker_querycapacitytask_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ResultBase - ResultBase *ResultBase `json:"result_base,omitempty" xml:"result_base,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkerQuerypageAPIRequest.go b/model/tmallservice/TmallServicecenterWorkerQuerypageAPIRequest.go new file mode 100644 index 0000000000..eb8698109f --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkerQuerypageAPIRequest.go @@ -0,0 +1,52 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询工人列表 API请求 +tmall.servicecenter.worker.querypage + +服务商查询工人列表 +*/ +type TmallServicecenterWorkerQuerypageAPIRequest struct { + model.Params + // 页码 + _pageIndex int64 +} + +// 初始化TmallServicecenterWorkerQuerypageAPIRequest对象 +func NewTmallServicecenterWorkerQuerypageRequest() *TmallServicecenterWorkerQuerypageAPIRequest{ + return &TmallServicecenterWorkerQuerypageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkerQuerypageAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.worker.querypage" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkerQuerypageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageIndex Setter +// 页码 +func (r *TmallServicecenterWorkerQuerypageAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TmallServicecenterWorkerQuerypageAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} diff --git a/model/tmallservice/TmallServicecenterWorkerQuerypageAPIResponse.go b/model/tmallservice/TmallServicecenterWorkerQuerypageAPIResponse.go new file mode 100644 index 0000000000..97c8e56370 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkerQuerypageAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询工人列表 API返回值 +tmall.servicecenter.worker.querypage + +服务商查询工人列表 +*/ +type TmallServicecenterWorkerQuerypageAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkerQuerypageAPIResponseModel +} + +// 查询工人列表 成功返回结果 +type TmallServicecenterWorkerQuerypageAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_worker_querypage_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkerQuerypageResponse.go b/model/tmallservice/TmallServicecenterWorkerQuerypageResponse.go deleted file mode 100644 index 945110a676..0000000000 --- a/model/tmallservice/TmallServicecenterWorkerQuerypageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询工人列表 API返回值 -tmall.servicecenter.worker.querypage - -服务商查询工人列表 -*/ -type TmallServicecenterWorkerQuerypageAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkerQuerypageResponse -} - -// 查询工人列表 成功返回结果 -type TmallServicecenterWorkerQuerypageResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_worker_querypage_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkerTaglistGetAPIRequest.go b/model/tmallservice/TmallServicecenterWorkerTaglistGetAPIRequest.go new file mode 100644 index 0000000000..b4756ffc53 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkerTaglistGetAPIRequest.go @@ -0,0 +1,66 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取工人标签 API请求 +tmall.servicecenter.worker.taglist.get + +服务商获取对应工人的标签 +*/ +type TmallServicecenterWorkerTaglistGetAPIRequest struct { + model.Params + // 工人注册勤鸽时的身份证 + _idNumber string + // 工人注册勤鸽时的手机号码 + _mobile string +} + +// 初始化TmallServicecenterWorkerTaglistGetAPIRequest对象 +func NewTmallServicecenterWorkerTaglistGetRequest() *TmallServicecenterWorkerTaglistGetAPIRequest{ + return &TmallServicecenterWorkerTaglistGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkerTaglistGetAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.worker.taglist.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkerTaglistGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IdNumber Setter +// 工人注册勤鸽时的身份证 +func (r *TmallServicecenterWorkerTaglistGetAPIRequest) SetIdNumber(_idNumber string) error { + r._idNumber = _idNumber + r.Set("id_number", _idNumber) + return nil +} + +// IdNumber Getter +func (r TmallServicecenterWorkerTaglistGetAPIRequest) GetIdNumber() string { + return r._idNumber +} +// Mobile Setter +// 工人注册勤鸽时的手机号码 +func (r *TmallServicecenterWorkerTaglistGetAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r TmallServicecenterWorkerTaglistGetAPIRequest) GetMobile() string { + return r._mobile +} diff --git a/model/tmallservice/TmallServicecenterWorkerTaglistGetAPIResponse.go b/model/tmallservice/TmallServicecenterWorkerTaglistGetAPIResponse.go new file mode 100644 index 0000000000..d9e33f38bc --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkerTaglistGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取工人标签 API返回值 +tmall.servicecenter.worker.taglist.get + +服务商获取对应工人的标签 +*/ +type TmallServicecenterWorkerTaglistGetAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkerTaglistGetAPIResponseModel +} + +// 获取工人标签 成功返回结果 +type TmallServicecenterWorkerTaglistGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_worker_taglist_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 工人的能力标签 + Result *WorkerTag `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkerTaglistGetResponse.go b/model/tmallservice/TmallServicecenterWorkerTaglistGetResponse.go deleted file mode 100644 index a0501c0cca..0000000000 --- a/model/tmallservice/TmallServicecenterWorkerTaglistGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取工人标签 API返回值 -tmall.servicecenter.worker.taglist.get - -服务商获取对应工人的标签 -*/ -type TmallServicecenterWorkerTaglistGetAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkerTaglistGetResponse -} - -// 获取工人标签 成功返回结果 -type TmallServicecenterWorkerTaglistGetResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_worker_taglist_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 工人的能力标签 - Result *WorkerTag `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmallservice/TmallServicecenterWorkerUpdateAPIRequest.go b/model/tmallservice/TmallServicecenterWorkerUpdateAPIRequest.go new file mode 100644 index 0000000000..52b5d79bd8 --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkerUpdateAPIRequest.go @@ -0,0 +1,67 @@ +package tmallservice + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改工人信息 API请求 +tmall.servicecenter.worker.update + +修改工人信息。该接口为多个业务公用,部分字段可忽略。对于电器预约安装业务,同一个服务商,通过工人姓名+手机号+biz_type 保证唯一性。工人已存在才可以修改。 +错误码如下 +100000, 系统错误 +100001, 工人信息校验失败 +100002, 用户校验失败 +100003, 操作失败 +10004,工人信息为空 +10005,服务商id为空或者服务商名称为空 +10006, 工人不存在 +10007, 工人已存在 +10008, 缺少工人姓名 +10009, 缺少工人电话 +10010, 网点不存在 +11000, category_id 无效 +11001, biz_type 无效 +20001,已查询到最后一页 +*/ +type TmallServicecenterWorkerUpdateAPIRequest struct { + model.Params + // 工人信息 + _worker *WorkerDto +} + +// 初始化TmallServicecenterWorkerUpdateAPIRequest对象 +func NewTmallServicecenterWorkerUpdateRequest() *TmallServicecenterWorkerUpdateAPIRequest{ + return &TmallServicecenterWorkerUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServicecenterWorkerUpdateAPIRequest) GetApiMethodName() string { + return "tmall.servicecenter.worker.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServicecenterWorkerUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Worker Setter +// 工人信息 +func (r *TmallServicecenterWorkerUpdateAPIRequest) SetWorker(_worker *WorkerDto) error { + r._worker = _worker + r.Set("worker", _worker) + return nil +} + +// Worker Getter +func (r TmallServicecenterWorkerUpdateAPIRequest) GetWorker() *WorkerDto { + return r._worker +} diff --git a/model/tmallservice/TmallServicecenterWorkerUpdateAPIResponse.go b/model/tmallservice/TmallServicecenterWorkerUpdateAPIResponse.go new file mode 100644 index 0000000000..fd8abcb2be --- /dev/null +++ b/model/tmallservice/TmallServicecenterWorkerUpdateAPIResponse.go @@ -0,0 +1,42 @@ +package tmallservice + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改工人信息 API返回值 +tmall.servicecenter.worker.update + +修改工人信息。该接口为多个业务公用,部分字段可忽略。对于电器预约安装业务,同一个服务商,通过工人姓名+手机号+biz_type 保证唯一性。工人已存在才可以修改。 +错误码如下 +100000, 系统错误 +100001, 工人信息校验失败 +100002, 用户校验失败 +100003, 操作失败 +10004,工人信息为空 +10005,服务商id为空或者服务商名称为空 +10006, 工人不存在 +10007, 工人已存在 +10008, 缺少工人姓名 +10009, 缺少工人电话 +10010, 网点不存在 +11000, category_id 无效 +11001, biz_type 无效 +20001,已查询到最后一页 +*/ +type TmallServicecenterWorkerUpdateAPIResponse struct { + model.CommonResponse + TmallServicecenterWorkerUpdateAPIResponseModel +} + +// 修改工人信息 成功返回结果 +type TmallServicecenterWorkerUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_servicecenter_worker_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmallservice/TmallServicecenterWorkerUpdateResponse.go b/model/tmallservice/TmallServicecenterWorkerUpdateResponse.go deleted file mode 100644 index fa0189dc28..0000000000 --- a/model/tmallservice/TmallServicecenterWorkerUpdateResponse.go +++ /dev/null @@ -1,42 +0,0 @@ -package tmallservice - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改工人信息 API返回值 -tmall.servicecenter.worker.update - -修改工人信息。该接口为多个业务公用,部分字段可忽略。对于电器预约安装业务,同一个服务商,通过工人姓名+手机号+biz_type 保证唯一性。工人已存在才可以修改。 -错误码如下 -100000, 系统错误 -100001, 工人信息校验失败 -100002, 用户校验失败 -100003, 操作失败 -10004,工人信息为空 -10005,服务商id为空或者服务商名称为空 -10006, 工人不存在 -10007, 工人已存在 -10008, 缺少工人姓名 -10009, 缺少工人电话 -10010, 网点不存在 -11000, category_id 无效 -11001, biz_type 无效 -20001,已查询到最后一页 -*/ -type TmallServicecenterWorkerUpdateAPIResponse struct { - model.CommonResponse - TmallServicecenterWorkerUpdateResponse -} - -// 修改工人信息 成功返回结果 -type TmallServicecenterWorkerUpdateResponse struct { - XMLName xml.Name `xml:"tmall_servicecenter_worker_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ResultBase `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmalltrend/TmallBrandItemCouponProtectAPIRequest.go b/model/tmalltrend/TmallBrandItemCouponProtectAPIRequest.go new file mode 100644 index 0000000000..cf82d0a625 --- /dev/null +++ b/model/tmalltrend/TmallBrandItemCouponProtectAPIRequest.go @@ -0,0 +1,80 @@ +package tmalltrend + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +全域新品店铺优惠券免除 API请求 +tmall.brand.item.coupon.protect + +全域新品店铺优惠券免除申请打标接口 +*/ +type TmallBrandItemCouponProtectAPIRequest struct { + model.Params + // 天猫商品id + _itemId int64 + // 店铺优惠券新品保护期档次:PERIOD_0D("0天"), PERIOD_7D("7天"), PERIOD_14D("14天"), PERIOD_21D("21天") + _protectionPeriod string + // 天猫品牌id + _brandId int64 +} + +// 初始化TmallBrandItemCouponProtectAPIRequest对象 +func NewTmallBrandItemCouponProtectRequest() *TmallBrandItemCouponProtectAPIRequest{ + return &TmallBrandItemCouponProtectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallBrandItemCouponProtectAPIRequest) GetApiMethodName() string { + return "tmall.brand.item.coupon.protect" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallBrandItemCouponProtectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 天猫商品id +func (r *TmallBrandItemCouponProtectAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallBrandItemCouponProtectAPIRequest) GetItemId() int64 { + return r._itemId +} +// ProtectionPeriod Setter +// 店铺优惠券新品保护期档次:PERIOD_0D("0天"), PERIOD_7D("7天"), PERIOD_14D("14天"), PERIOD_21D("21天") +func (r *TmallBrandItemCouponProtectAPIRequest) SetProtectionPeriod(_protectionPeriod string) error { + r._protectionPeriod = _protectionPeriod + r.Set("protection_period", _protectionPeriod) + return nil +} + +// ProtectionPeriod Getter +func (r TmallBrandItemCouponProtectAPIRequest) GetProtectionPeriod() string { + return r._protectionPeriod +} +// BrandId Setter +// 天猫品牌id +func (r *TmallBrandItemCouponProtectAPIRequest) SetBrandId(_brandId int64) error { + r._brandId = _brandId + r.Set("brand_id", _brandId) + return nil +} + +// BrandId Getter +func (r TmallBrandItemCouponProtectAPIRequest) GetBrandId() int64 { + return r._brandId +} diff --git a/model/tmalltrend/TmallBrandItemCouponProtectAPIResponse.go b/model/tmalltrend/TmallBrandItemCouponProtectAPIResponse.go new file mode 100644 index 0000000000..4612a71776 --- /dev/null +++ b/model/tmalltrend/TmallBrandItemCouponProtectAPIResponse.go @@ -0,0 +1,33 @@ +package tmalltrend + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +全域新品店铺优惠券免除 API返回值 +tmall.brand.item.coupon.protect + +全域新品店铺优惠券免除申请打标接口 +*/ +type TmallBrandItemCouponProtectAPIResponse struct { + model.CommonResponse + TmallBrandItemCouponProtectAPIResponseModel +} + +// 全域新品店铺优惠券免除 成功返回结果 +type TmallBrandItemCouponProtectAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_brand_item_coupon_protect_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Value string `json:"value,omitempty" xml:"value,omitempty"` + // 店铺优惠券保护期设置是否成功 + RespSuccess bool `json:"resp_success,omitempty" xml:"resp_success,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 错误码 + RespErrorCode string `json:"resp_error_code,omitempty" xml:"resp_error_code,omitempty"` +} diff --git a/model/tmalltrend/TmallBrandItemCouponProtectResponse.go b/model/tmalltrend/TmallBrandItemCouponProtectResponse.go deleted file mode 100644 index 5a0a491e41..0000000000 --- a/model/tmalltrend/TmallBrandItemCouponProtectResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmalltrend - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -全域新品店铺优惠券免除 API返回值 -tmall.brand.item.coupon.protect - -全域新品店铺优惠券免除申请打标接口 -*/ -type TmallBrandItemCouponProtectAPIResponse struct { - model.CommonResponse - TmallBrandItemCouponProtectResponse -} - -// 全域新品店铺优惠券免除 成功返回结果 -type TmallBrandItemCouponProtectResponse struct { - XMLName xml.Name `xml:"tmall_brand_item_coupon_protect_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Value string `json:"value,omitempty" xml:"value,omitempty"` - // 店铺优惠券保护期设置是否成功 - RespSuccess bool `json:"resp_success,omitempty" xml:"resp_success,omitempty"` - // 错误信息 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 错误码 - RespErrorCode string `json:"resp_error_code,omitempty" xml:"resp_error_code,omitempty"` -} diff --git a/model/tmalltrend/TmallBrandItemUploadAPIRequest.go b/model/tmalltrend/TmallBrandItemUploadAPIRequest.go new file mode 100644 index 0000000000..2e6dadb5d7 --- /dev/null +++ b/model/tmalltrend/TmallBrandItemUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmalltrend + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫品牌新品同步API API请求 +tmall.brand.item.upload + +支撑天猫品牌将各渠道新品信息同步至平台 +*/ +type TmallBrandItemUploadAPIRequest struct { + model.Params + // 需要同步的商品列表 + _itemList []TmallBrandChannelNewItem +} + +// 初始化TmallBrandItemUploadAPIRequest对象 +func NewTmallBrandItemUploadRequest() *TmallBrandItemUploadAPIRequest{ + return &TmallBrandItemUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallBrandItemUploadAPIRequest) GetApiMethodName() string { + return "tmall.brand.item.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallBrandItemUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemList Setter +// 需要同步的商品列表 +func (r *TmallBrandItemUploadAPIRequest) SetItemList(_itemList []TmallBrandChannelNewItem) error { + r._itemList = _itemList + r.Set("item_list", _itemList) + return nil +} + +// ItemList Getter +func (r TmallBrandItemUploadAPIRequest) GetItemList() []TmallBrandChannelNewItem { + return r._itemList +} diff --git a/model/tmalltrend/TmallBrandItemUploadAPIResponse.go b/model/tmalltrend/TmallBrandItemUploadAPIResponse.go new file mode 100644 index 0000000000..ac501852cb --- /dev/null +++ b/model/tmalltrend/TmallBrandItemUploadAPIResponse.go @@ -0,0 +1,33 @@ +package tmalltrend + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫品牌新品同步API API返回值 +tmall.brand.item.upload + +支撑天猫品牌将各渠道新品信息同步至平台 +*/ +type TmallBrandItemUploadAPIResponse struct { + model.CommonResponse + TmallBrandItemUploadAPIResponseModel +} + +// 天猫品牌新品同步API 成功返回结果 +type TmallBrandItemUploadAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_brand_item_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + RespSuccess bool `json:"resp_success,omitempty" xml:"resp_success,omitempty"` + // 请求参数错误 + RespErrorCode int64 `json:"resp_error_code,omitempty" xml:"resp_error_code,omitempty"` + // 返回结果 + Value string `json:"value,omitempty" xml:"value,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/tmalltrend/TmallBrandItemUploadResponse.go b/model/tmalltrend/TmallBrandItemUploadResponse.go deleted file mode 100644 index 6ad49679b2..0000000000 --- a/model/tmalltrend/TmallBrandItemUploadResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmalltrend - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫品牌新品同步API API返回值 -tmall.brand.item.upload - -支撑天猫品牌将各渠道新品信息同步至平台 -*/ -type TmallBrandItemUploadAPIResponse struct { - model.CommonResponse - TmallBrandItemUploadResponse -} - -// 天猫品牌新品同步API 成功返回结果 -type TmallBrandItemUploadResponse struct { - XMLName xml.Name `xml:"tmall_brand_item_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - RespSuccess bool `json:"resp_success,omitempty" xml:"resp_success,omitempty"` - // 请求参数错误 - RespErrorCode int64 `json:"resp_error_code,omitempty" xml:"resp_error_code,omitempty"` - // 返回结果 - Value string `json:"value,omitempty" xml:"value,omitempty"` - // 错误信息 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/tmalltrend/TmallTrendStyleBasicinfoUploadAPIRequest.go b/model/tmalltrend/TmallTrendStyleBasicinfoUploadAPIRequest.go new file mode 100644 index 0000000000..a99efe4f74 --- /dev/null +++ b/model/tmalltrend/TmallTrendStyleBasicinfoUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmalltrend + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +3D款式基本信息同步API API请求 +tmall.trend.style.basicinfo.upload + +3D款式基本信息同步至天猫趋势中心 +*/ +type TmallTrendStyleBasicinfoUploadAPIRequest struct { + model.Params + // 款式基本信息列表,单次同步最多1000条 + _styleBasicInfoBoList []StyleBasicInfoBo +} + +// 初始化TmallTrendStyleBasicinfoUploadAPIRequest对象 +func NewTmallTrendStyleBasicinfoUploadRequest() *TmallTrendStyleBasicinfoUploadAPIRequest{ + return &TmallTrendStyleBasicinfoUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTrendStyleBasicinfoUploadAPIRequest) GetApiMethodName() string { + return "tmall.trend.style.basicinfo.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTrendStyleBasicinfoUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StyleBasicInfoBoList Setter +// 款式基本信息列表,单次同步最多1000条 +func (r *TmallTrendStyleBasicinfoUploadAPIRequest) SetStyleBasicInfoBoList(_styleBasicInfoBoList []StyleBasicInfoBo) error { + r._styleBasicInfoBoList = _styleBasicInfoBoList + r.Set("style_basic_info_bo_list", _styleBasicInfoBoList) + return nil +} + +// StyleBasicInfoBoList Getter +func (r TmallTrendStyleBasicinfoUploadAPIRequest) GetStyleBasicInfoBoList() []StyleBasicInfoBo { + return r._styleBasicInfoBoList +} diff --git a/model/tmalltrend/TmallTrendStyleBasicinfoUploadAPIResponse.go b/model/tmalltrend/TmallTrendStyleBasicinfoUploadAPIResponse.go new file mode 100644 index 0000000000..c398a502d3 --- /dev/null +++ b/model/tmalltrend/TmallTrendStyleBasicinfoUploadAPIResponse.go @@ -0,0 +1,33 @@ +package tmalltrend + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +3D款式基本信息同步API API返回值 +tmall.trend.style.basicinfo.upload + +3D款式基本信息同步至天猫趋势中心 +*/ +type TmallTrendStyleBasicinfoUploadAPIResponse struct { + model.CommonResponse + TmallTrendStyleBasicinfoUploadAPIResponseModel +} + +// 3D款式基本信息同步API 成功返回结果 +type TmallTrendStyleBasicinfoUploadAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_trend_style_basicinfo_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 款式基本信息同步处理结果描述 + Value string `json:"value,omitempty" xml:"value,omitempty"` + // 是否成功 + RespSuccess bool `json:"resp_success,omitempty" xml:"resp_success,omitempty"` + // 错误码,1001-系统错误,1002-请求参数错误,1003-业务处理错误,1004-数据权限错误 + RespErrorCode int64 `json:"resp_error_code,omitempty" xml:"resp_error_code,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/tmalltrend/TmallTrendStyleBasicinfoUploadResponse.go b/model/tmalltrend/TmallTrendStyleBasicinfoUploadResponse.go deleted file mode 100644 index 34b5225ab9..0000000000 --- a/model/tmalltrend/TmallTrendStyleBasicinfoUploadResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmalltrend - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -3D款式基本信息同步API API返回值 -tmall.trend.style.basicinfo.upload - -3D款式基本信息同步至天猫趋势中心 -*/ -type TmallTrendStyleBasicinfoUploadAPIResponse struct { - model.CommonResponse - TmallTrendStyleBasicinfoUploadResponse -} - -// 3D款式基本信息同步API 成功返回结果 -type TmallTrendStyleBasicinfoUploadResponse struct { - XMLName xml.Name `xml:"tmall_trend_style_basicinfo_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 款式基本信息同步处理结果描述 - Value string `json:"value,omitempty" xml:"value,omitempty"` - // 是否成功 - RespSuccess bool `json:"resp_success,omitempty" xml:"resp_success,omitempty"` - // 错误码,1001-系统错误,1002-请求参数错误,1003-业务处理错误,1004-数据权限错误 - RespErrorCode int64 `json:"resp_error_code,omitempty" xml:"resp_error_code,omitempty"` - // 错误信息 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/tmalltrend/TmallTrendStyleBindinfoUploadAPIRequest.go b/model/tmalltrend/TmallTrendStyleBindinfoUploadAPIRequest.go new file mode 100644 index 0000000000..d501fefb7f --- /dev/null +++ b/model/tmalltrend/TmallTrendStyleBindinfoUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmalltrend + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +趋势词&款式绑定信息同步API API请求 +tmall.trend.style.bindinfo.upload + +趋势词&款式(服饰行业)绑定信息同步至平台 +*/ +type TmallTrendStyleBindinfoUploadAPIRequest struct { + model.Params + // 趋势词&款式绑定信息列表,一次最多1000条 + _trendStyleBindInfoBoList []TrendStyleBindInfoBO +} + +// 初始化TmallTrendStyleBindinfoUploadAPIRequest对象 +func NewTmallTrendStyleBindinfoUploadRequest() *TmallTrendStyleBindinfoUploadAPIRequest{ + return &TmallTrendStyleBindinfoUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTrendStyleBindinfoUploadAPIRequest) GetApiMethodName() string { + return "tmall.trend.style.bindinfo.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTrendStyleBindinfoUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TrendStyleBindInfoBoList Setter +// 趋势词&款式绑定信息列表,一次最多1000条 +func (r *TmallTrendStyleBindinfoUploadAPIRequest) SetTrendStyleBindInfoBoList(_trendStyleBindInfoBoList []TrendStyleBindInfoBO) error { + r._trendStyleBindInfoBoList = _trendStyleBindInfoBoList + r.Set("trend_style_bind_info_bo_list", _trendStyleBindInfoBoList) + return nil +} + +// TrendStyleBindInfoBoList Getter +func (r TmallTrendStyleBindinfoUploadAPIRequest) GetTrendStyleBindInfoBoList() []TrendStyleBindInfoBO { + return r._trendStyleBindInfoBoList +} diff --git a/model/tmalltrend/TmallTrendStyleBindinfoUploadAPIResponse.go b/model/tmalltrend/TmallTrendStyleBindinfoUploadAPIResponse.go new file mode 100644 index 0000000000..45a71e6089 --- /dev/null +++ b/model/tmalltrend/TmallTrendStyleBindinfoUploadAPIResponse.go @@ -0,0 +1,33 @@ +package tmalltrend + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +趋势词&款式绑定信息同步API API返回值 +tmall.trend.style.bindinfo.upload + +趋势词&款式(服饰行业)绑定信息同步至平台 +*/ +type TmallTrendStyleBindinfoUploadAPIResponse struct { + model.CommonResponse + TmallTrendStyleBindinfoUploadAPIResponseModel +} + +// 趋势词&款式绑定信息同步API 成功返回结果 +type TmallTrendStyleBindinfoUploadAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_trend_style_bindinfo_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + RespSuccess bool `json:"resp_success,omitempty" xml:"resp_success,omitempty"` + // 错误码,1001-系统错误,1002-请求参数错误,1003-业务处理错误,1004-数据权限错误 + RespErrorCode int64 `json:"resp_error_code,omitempty" xml:"resp_error_code,omitempty"` + // 趋势词&款式关联信息同步处理结果描述 + Value string `json:"value,omitempty" xml:"value,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/tmalltrend/TmallTrendStyleBindinfoUploadResponse.go b/model/tmalltrend/TmallTrendStyleBindinfoUploadResponse.go deleted file mode 100644 index 75367e6a61..0000000000 --- a/model/tmalltrend/TmallTrendStyleBindinfoUploadResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmalltrend - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -趋势词&款式绑定信息同步API API返回值 -tmall.trend.style.bindinfo.upload - -趋势词&款式(服饰行业)绑定信息同步至平台 -*/ -type TmallTrendStyleBindinfoUploadAPIResponse struct { - model.CommonResponse - TmallTrendStyleBindinfoUploadResponse -} - -// 趋势词&款式绑定信息同步API 成功返回结果 -type TmallTrendStyleBindinfoUploadResponse struct { - XMLName xml.Name `xml:"tmall_trend_style_bindinfo_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - RespSuccess bool `json:"resp_success,omitempty" xml:"resp_success,omitempty"` - // 错误码,1001-系统错误,1002-请求参数错误,1003-业务处理错误,1004-数据权限错误 - RespErrorCode int64 `json:"resp_error_code,omitempty" xml:"resp_error_code,omitempty"` - // 趋势词&款式关联信息同步处理结果描述 - Value string `json:"value,omitempty" xml:"value,omitempty"` - // 错误信息 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/tmalltrend/TmallTrendStyleProduceinfoUploadAPIRequest.go b/model/tmalltrend/TmallTrendStyleProduceinfoUploadAPIRequest.go new file mode 100644 index 0000000000..bbe2d7545f --- /dev/null +++ b/model/tmalltrend/TmallTrendStyleProduceinfoUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tmalltrend + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +款式生产信息同步API API请求 +tmall.trend.style.produceinfo.upload + +款式生产信息同步至平台 +*/ +type TmallTrendStyleProduceinfoUploadAPIRequest struct { + model.Params + // 款式生产信息列表,单次同步最对1000条 + _styleProduceInfoBoList []StyleProduceInfoBO +} + +// 初始化TmallTrendStyleProduceinfoUploadAPIRequest对象 +func NewTmallTrendStyleProduceinfoUploadRequest() *TmallTrendStyleProduceinfoUploadAPIRequest{ + return &TmallTrendStyleProduceinfoUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTrendStyleProduceinfoUploadAPIRequest) GetApiMethodName() string { + return "tmall.trend.style.produceinfo.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTrendStyleProduceinfoUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StyleProduceInfoBoList Setter +// 款式生产信息列表,单次同步最对1000条 +func (r *TmallTrendStyleProduceinfoUploadAPIRequest) SetStyleProduceInfoBoList(_styleProduceInfoBoList []StyleProduceInfoBO) error { + r._styleProduceInfoBoList = _styleProduceInfoBoList + r.Set("style_produce_info_bo_list", _styleProduceInfoBoList) + return nil +} + +// StyleProduceInfoBoList Getter +func (r TmallTrendStyleProduceinfoUploadAPIRequest) GetStyleProduceInfoBoList() []StyleProduceInfoBO { + return r._styleProduceInfoBoList +} diff --git a/model/tmalltrend/TmallTrendStyleProduceinfoUploadAPIResponse.go b/model/tmalltrend/TmallTrendStyleProduceinfoUploadAPIResponse.go new file mode 100644 index 0000000000..506861b854 --- /dev/null +++ b/model/tmalltrend/TmallTrendStyleProduceinfoUploadAPIResponse.go @@ -0,0 +1,33 @@ +package tmalltrend + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +款式生产信息同步API API返回值 +tmall.trend.style.produceinfo.upload + +款式生产信息同步至平台 +*/ +type TmallTrendStyleProduceinfoUploadAPIResponse struct { + model.CommonResponse + TmallTrendStyleProduceinfoUploadAPIResponseModel +} + +// 款式生产信息同步API 成功返回结果 +type TmallTrendStyleProduceinfoUploadAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_trend_style_produceinfo_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + RespSuccess bool `json:"resp_success,omitempty" xml:"resp_success,omitempty"` + // 错误码,1001-系统错误,1002-请求参数错误,1003-业务处理错误,1004-数据权限错误 + RespErrorCode int64 `json:"resp_error_code,omitempty" xml:"resp_error_code,omitempty"` + // 同步款式生产信息处理结果描述 + Value string `json:"value,omitempty" xml:"value,omitempty"` + // 错误描述信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/tmalltrend/TmallTrendStyleProduceinfoUploadResponse.go b/model/tmalltrend/TmallTrendStyleProduceinfoUploadResponse.go deleted file mode 100644 index 9ee4a1c207..0000000000 --- a/model/tmalltrend/TmallTrendStyleProduceinfoUploadResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmalltrend - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -款式生产信息同步API API返回值 -tmall.trend.style.produceinfo.upload - -款式生产信息同步至平台 -*/ -type TmallTrendStyleProduceinfoUploadAPIResponse struct { - model.CommonResponse - TmallTrendStyleProduceinfoUploadResponse -} - -// 款式生产信息同步API 成功返回结果 -type TmallTrendStyleProduceinfoUploadResponse struct { - XMLName xml.Name `xml:"tmall_trend_style_produceinfo_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - RespSuccess bool `json:"resp_success,omitempty" xml:"resp_success,omitempty"` - // 错误码,1001-系统错误,1002-请求参数错误,1003-业务处理错误,1004-数据权限错误 - RespErrorCode int64 `json:"resp_error_code,omitempty" xml:"resp_error_code,omitempty"` - // 同步款式生产信息处理结果描述 - Value string `json:"value,omitempty" xml:"value,omitempty"` - // 错误描述信息 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/tmc/AlibabaLsyMiniappMsgPushAPIRequest.go b/model/tmc/AlibabaLsyMiniappMsgPushAPIRequest.go new file mode 100644 index 0000000000..20d90b7efd --- /dev/null +++ b/model/tmc/AlibabaLsyMiniappMsgPushAPIRequest.go @@ -0,0 +1,108 @@ +package tmc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售云小程序消息推送 API请求 +alibaba.lsy.miniapp.msg.push + +零售云小程序消息推送,推送消息至零售云(喵零等) +*/ +type AlibabaLsyMiniappMsgPushAPIRequest struct { + model.Params + // 小程序ID + _appId string + // 消息ID + _msgId int64 + // 摊位ID + _storeId int64 + // 消息模板,miaoling_msg_isv_clue - 线索通知消息 + _templateId string + // 消息参数 + _params string +} + +// 初始化AlibabaLsyMiniappMsgPushAPIRequest对象 +func NewAlibabaLsyMiniappMsgPushRequest() *AlibabaLsyMiniappMsgPushAPIRequest{ + return &AlibabaLsyMiniappMsgPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLsyMiniappMsgPushAPIRequest) GetApiMethodName() string { + return "alibaba.lsy.miniapp.msg.push" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLsyMiniappMsgPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppId Setter +// 小程序ID +func (r *AlibabaLsyMiniappMsgPushAPIRequest) SetAppId(_appId string) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r AlibabaLsyMiniappMsgPushAPIRequest) GetAppId() string { + return r._appId +} +// MsgId Setter +// 消息ID +func (r *AlibabaLsyMiniappMsgPushAPIRequest) SetMsgId(_msgId int64) error { + r._msgId = _msgId + r.Set("msg_id", _msgId) + return nil +} + +// MsgId Getter +func (r AlibabaLsyMiniappMsgPushAPIRequest) GetMsgId() int64 { + return r._msgId +} +// StoreId Setter +// 摊位ID +func (r *AlibabaLsyMiniappMsgPushAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaLsyMiniappMsgPushAPIRequest) GetStoreId() int64 { + return r._storeId +} +// TemplateId Setter +// 消息模板,miaoling_msg_isv_clue - 线索通知消息 +func (r *AlibabaLsyMiniappMsgPushAPIRequest) SetTemplateId(_templateId string) error { + r._templateId = _templateId + r.Set("template_id", _templateId) + return nil +} + +// TemplateId Getter +func (r AlibabaLsyMiniappMsgPushAPIRequest) GetTemplateId() string { + return r._templateId +} +// Params Setter +// 消息参数 +func (r *AlibabaLsyMiniappMsgPushAPIRequest) SetParams(_params string) error { + r._params = _params + r.Set("params", _params) + return nil +} + +// Params Getter +func (r AlibabaLsyMiniappMsgPushAPIRequest) GetParams() string { + return r._params +} diff --git a/model/tmc/AlibabaLsyMiniappMsgPushAPIResponse.go b/model/tmc/AlibabaLsyMiniappMsgPushAPIResponse.go new file mode 100644 index 0000000000..6ab20fa111 --- /dev/null +++ b/model/tmc/AlibabaLsyMiniappMsgPushAPIResponse.go @@ -0,0 +1,31 @@ +package tmc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售云小程序消息推送 API返回值 +alibaba.lsy.miniapp.msg.push + +零售云小程序消息推送,推送消息至零售云(喵零等) +*/ +type AlibabaLsyMiniappMsgPushAPIResponse struct { + model.CommonResponse + AlibabaLsyMiniappMsgPushAPIResponseModel +} + +// 零售云小程序消息推送 成功返回结果 +type AlibabaLsyMiniappMsgPushAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lsy_miniapp_msg_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误提示 + FailMsg string `json:"fail_msg,omitempty" xml:"fail_msg,omitempty"` + // 错误码 + FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"` + // 是否成功 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` +} diff --git a/model/tmc/AlibabaLsyMiniappMsgPushResponse.go b/model/tmc/AlibabaLsyMiniappMsgPushResponse.go deleted file mode 100644 index e7f92fcb71..0000000000 --- a/model/tmc/AlibabaLsyMiniappMsgPushResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售云小程序消息推送 API返回值 -alibaba.lsy.miniapp.msg.push - -零售云小程序消息推送,推送消息至零售云(喵零等) -*/ -type AlibabaLsyMiniappMsgPushAPIResponse struct { - model.CommonResponse - AlibabaLsyMiniappMsgPushResponse -} - -// 零售云小程序消息推送 成功返回结果 -type AlibabaLsyMiniappMsgPushResponse struct { - XMLName xml.Name `xml:"alibaba_lsy_miniapp_msg_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误提示 - FailMsg string `json:"fail_msg,omitempty" xml:"fail_msg,omitempty"` - // 错误码 - FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"` - // 是否成功 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` -} diff --git a/model/tmc/AlipayXiaodaiUserPermitAPIRequest.go b/model/tmc/AlipayXiaodaiUserPermitAPIRequest.go new file mode 100644 index 0000000000..59c0294a39 --- /dev/null +++ b/model/tmc/AlipayXiaodaiUserPermitAPIRequest.go @@ -0,0 +1,52 @@ +package tmc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里金融用户授权 API请求 +alipay.xiaodai.user.permit + +阿里金融为用户开通消息通道接口 +*/ +type AlipayXiaodaiUserPermitAPIRequest struct { + model.Params + // 用户数字ID + _userId int64 +} + +// 初始化AlipayXiaodaiUserPermitAPIRequest对象 +func NewAlipayXiaodaiUserPermitRequest() *AlipayXiaodaiUserPermitAPIRequest{ + return &AlipayXiaodaiUserPermitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlipayXiaodaiUserPermitAPIRequest) GetApiMethodName() string { + return "alipay.xiaodai.user.permit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlipayXiaodaiUserPermitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户数字ID +func (r *AlipayXiaodaiUserPermitAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlipayXiaodaiUserPermitAPIRequest) GetUserId() int64 { + return r._userId +} diff --git a/model/tmc/AlipayXiaodaiUserPermitAPIResponse.go b/model/tmc/AlipayXiaodaiUserPermitAPIResponse.go new file mode 100644 index 0000000000..f519c40dcc --- /dev/null +++ b/model/tmc/AlipayXiaodaiUserPermitAPIResponse.go @@ -0,0 +1,27 @@ +package tmc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +阿里金融用户授权 API返回值 +alipay.xiaodai.user.permit + +阿里金融为用户开通消息通道接口 +*/ +type AlipayXiaodaiUserPermitAPIResponse struct { + model.CommonResponse + AlipayXiaodaiUserPermitAPIResponseModel +} + +// 阿里金融用户授权 成功返回结果 +type AlipayXiaodaiUserPermitAPIResponseModel struct { + XMLName xml.Name `xml:"alipay_xiaodai_user_permit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/tmc/AlipayXiaodaiUserPermitResponse.go b/model/tmc/AlipayXiaodaiUserPermitResponse.go deleted file mode 100644 index 211d4e01a7..0000000000 --- a/model/tmc/AlipayXiaodaiUserPermitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -阿里金融用户授权 API返回值 -alipay.xiaodai.user.permit - -阿里金融为用户开通消息通道接口 -*/ -type AlipayXiaodaiUserPermitAPIResponse struct { - model.CommonResponse - AlipayXiaodaiUserPermitResponse -} - -// 阿里金融用户授权 成功返回结果 -type AlipayXiaodaiUserPermitResponse struct { - XMLName xml.Name `xml:"alipay_xiaodai_user_permit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/tmc/TaobaoIstoreGiftingMessageGetAPIRequest.go b/model/tmc/TaobaoIstoreGiftingMessageGetAPIRequest.go new file mode 100644 index 0000000000..a2df6a6d20 --- /dev/null +++ b/model/tmc/TaobaoIstoreGiftingMessageGetAPIRequest.go @@ -0,0 +1,52 @@ +package tmc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +gifting消息获取 API请求 +taobao.istore.gifting.message.get + +该api通过参数查询对应的gifting消息 +*/ +type TaobaoIstoreGiftingMessageGetAPIRequest struct { + model.Params + // 消息查询条件 + _giftMessageBizCondition *GiftMessageBizCondition +} + +// 初始化TaobaoIstoreGiftingMessageGetAPIRequest对象 +func NewTaobaoIstoreGiftingMessageGetRequest() *TaobaoIstoreGiftingMessageGetAPIRequest{ + return &TaobaoIstoreGiftingMessageGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoIstoreGiftingMessageGetAPIRequest) GetApiMethodName() string { + return "taobao.istore.gifting.message.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoIstoreGiftingMessageGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GiftMessageBizCondition Setter +// 消息查询条件 +func (r *TaobaoIstoreGiftingMessageGetAPIRequest) SetGiftMessageBizCondition(_giftMessageBizCondition *GiftMessageBizCondition) error { + r._giftMessageBizCondition = _giftMessageBizCondition + r.Set("gift_message_biz_condition", _giftMessageBizCondition) + return nil +} + +// GiftMessageBizCondition Getter +func (r TaobaoIstoreGiftingMessageGetAPIRequest) GetGiftMessageBizCondition() *GiftMessageBizCondition { + return r._giftMessageBizCondition +} diff --git a/model/tmc/TaobaoIstoreGiftingMessageGetAPIResponse.go b/model/tmc/TaobaoIstoreGiftingMessageGetAPIResponse.go new file mode 100644 index 0000000000..c325f5a7be --- /dev/null +++ b/model/tmc/TaobaoIstoreGiftingMessageGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +gifting消息获取 API返回值 +taobao.istore.gifting.message.get + +该api通过参数查询对应的gifting消息 +*/ +type TaobaoIstoreGiftingMessageGetAPIResponse struct { + model.CommonResponse + TaobaoIstoreGiftingMessageGetAPIResponseModel +} + +// gifting消息获取 成功返回结果 +type TaobaoIstoreGiftingMessageGetAPIResponseModel struct { + XMLName xml.Name `xml:"istore_gifting_message_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoIstoreGiftingMessageGetResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmc/TaobaoIstoreGiftingMessageGetResponse.go b/model/tmc/TaobaoIstoreGiftingMessageGetResponse.go deleted file mode 100644 index 817844fda3..0000000000 --- a/model/tmc/TaobaoIstoreGiftingMessageGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -gifting消息获取 API返回值 -taobao.istore.gifting.message.get - -该api通过参数查询对应的gifting消息 -*/ -type TaobaoIstoreGiftingMessageGetAPIResponse struct { - model.CommonResponse - TaobaoIstoreGiftingMessageGetResponse -} - -// gifting消息获取 成功返回结果 -type TaobaoIstoreGiftingMessageGetResponse struct { - XMLName xml.Name `xml:"istore_gifting_message_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoIstoreGiftingMessageGetResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmc/TaobaoIstoreGiftingMessageGetResultDto.go b/model/tmc/TaobaoIstoreGiftingMessageGetResultDto.go new file mode 100644 index 0000000000..b1fb7eea44 --- /dev/null +++ b/model/tmc/TaobaoIstoreGiftingMessageGetResultDto.go @@ -0,0 +1,15 @@ +package tmc + +// TaobaoIstoreGiftingMessageGetResultDto +type TaobaoIstoreGiftingMessageGetResultDto struct { + // id:消息id,receiverId:消息接收者,messageType:消息类型,messageDesc:消息描述,giftBoxId:礼盒id,attachInfo:消息附加参数,messageStatus:消息状态,sellerId:商家id,senderId:发送者 + ResultList []string `json:"result_list,omitempty" xml:"result_list>string,omitempty"` + // 附加信息 + BizExtMap string `json:"biz_ext_map,omitempty" xml:"biz_ext_map,omitempty"` + // errorCode + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // errorMsg + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/tmc/TaobaoTmcGroupAddAPIRequest.go b/model/tmc/TaobaoTmcGroupAddAPIRequest.go new file mode 100644 index 0000000000..a8cd38bb73 --- /dev/null +++ b/model/tmc/TaobaoTmcGroupAddAPIRequest.go @@ -0,0 +1,80 @@ +package tmc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +为已开通用户添加用户分组 API请求 +taobao.tmc.group.add + +为已开通用户添加用户分组,授权消息使用 +*/ +type TaobaoTmcGroupAddAPIRequest struct { + model.Params + // 分组名称,同一个应用下需要保证唯一性,最长32个字符。添加分组后,消息通道会为用户的消息分配独立分组,但之前的消息还是存储于默认分组中。不能以default开头,default开头为系统默认组。 + _groupName string + // 用户昵称列表,以半角逗号分隔,支持子账号,支持增量添加用户 + _nicks []string + // 用户所属于的平台类型,tbUIC:淘宝用户; icbu: icbu用户;ae:ae用户 + _userPlatform string +} + +// 初始化TaobaoTmcGroupAddAPIRequest对象 +func NewTaobaoTmcGroupAddRequest() *TaobaoTmcGroupAddAPIRequest{ + return &TaobaoTmcGroupAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTmcGroupAddAPIRequest) GetApiMethodName() string { + return "taobao.tmc.group.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTmcGroupAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupName Setter +// 分组名称,同一个应用下需要保证唯一性,最长32个字符。添加分组后,消息通道会为用户的消息分配独立分组,但之前的消息还是存储于默认分组中。不能以default开头,default开头为系统默认组。 +func (r *TaobaoTmcGroupAddAPIRequest) SetGroupName(_groupName string) error { + r._groupName = _groupName + r.Set("group_name", _groupName) + return nil +} + +// GroupName Getter +func (r TaobaoTmcGroupAddAPIRequest) GetGroupName() string { + return r._groupName +} +// Nicks Setter +// 用户昵称列表,以半角逗号分隔,支持子账号,支持增量添加用户 +func (r *TaobaoTmcGroupAddAPIRequest) SetNicks(_nicks []string) error { + r._nicks = _nicks + r.Set("nicks", _nicks) + return nil +} + +// Nicks Getter +func (r TaobaoTmcGroupAddAPIRequest) GetNicks() []string { + return r._nicks +} +// UserPlatform Setter +// 用户所属于的平台类型,tbUIC:淘宝用户; icbu: icbu用户;ae:ae用户 +func (r *TaobaoTmcGroupAddAPIRequest) SetUserPlatform(_userPlatform string) error { + r._userPlatform = _userPlatform + r.Set("user_platform", _userPlatform) + return nil +} + +// UserPlatform Getter +func (r TaobaoTmcGroupAddAPIRequest) GetUserPlatform() string { + return r._userPlatform +} diff --git a/model/tmc/TaobaoTmcGroupAddAPIResponse.go b/model/tmc/TaobaoTmcGroupAddAPIResponse.go new file mode 100644 index 0000000000..fa9dc33a2b --- /dev/null +++ b/model/tmc/TaobaoTmcGroupAddAPIResponse.go @@ -0,0 +1,29 @@ +package tmc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +为已开通用户添加用户分组 API返回值 +taobao.tmc.group.add + +为已开通用户添加用户分组,授权消息使用 +*/ +type TaobaoTmcGroupAddAPIResponse struct { + model.CommonResponse + TaobaoTmcGroupAddAPIResponseModel +} + +// 为已开通用户添加用户分组 成功返回结果 +type TaobaoTmcGroupAddAPIResponseModel struct { + XMLName xml.Name `xml:"tmc_group_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创建时间 + Created string `json:"created,omitempty" xml:"created,omitempty"` + // 分组名称 + GroupName string `json:"group_name,omitempty" xml:"group_name,omitempty"` +} diff --git a/model/tmc/TaobaoTmcGroupAddResponse.go b/model/tmc/TaobaoTmcGroupAddResponse.go deleted file mode 100644 index e7e767182c..0000000000 --- a/model/tmc/TaobaoTmcGroupAddResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tmc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -为已开通用户添加用户分组 API返回值 -taobao.tmc.group.add - -为已开通用户添加用户分组,授权消息使用 -*/ -type TaobaoTmcGroupAddAPIResponse struct { - model.CommonResponse - TaobaoTmcGroupAddResponse -} - -// 为已开通用户添加用户分组 成功返回结果 -type TaobaoTmcGroupAddResponse struct { - XMLName xml.Name `xml:"tmc_group_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创建时间 - Created string `json:"created,omitempty" xml:"created,omitempty"` - // 分组名称 - GroupName string `json:"group_name,omitempty" xml:"group_name,omitempty"` -} diff --git a/model/tmc/TaobaoTmcGroupDeleteAPIRequest.go b/model/tmc/TaobaoTmcGroupDeleteAPIRequest.go new file mode 100644 index 0000000000..a1e7ae727b --- /dev/null +++ b/model/tmc/TaobaoTmcGroupDeleteAPIRequest.go @@ -0,0 +1,80 @@ +package tmc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除指定的分组或分组下的用户 API请求 +taobao.tmc.group.delete + +删除指定的分组或分组下的用户,授权消息使用 +*/ +type TaobaoTmcGroupDeleteAPIRequest struct { + model.Params + // 分组名称,分组删除后,用户的消息将会存储于默认分组中。警告:由于分组已经删除,用户之前未消费的消息将无法再获取。不能以default开头,default开头为系统默认组。 + _groupName string + // 用户列表,不传表示删除整个分组,如果用户全部删除后,也会自动删除整个分组 + _nicks []string + // 用户所属于的平台类型,tbUIC:淘宝用户; icbu: icbu用户;ae:ae用户 + _userPlatform string +} + +// 初始化TaobaoTmcGroupDeleteAPIRequest对象 +func NewTaobaoTmcGroupDeleteRequest() *TaobaoTmcGroupDeleteAPIRequest{ + return &TaobaoTmcGroupDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTmcGroupDeleteAPIRequest) GetApiMethodName() string { + return "taobao.tmc.group.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTmcGroupDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupName Setter +// 分组名称,分组删除后,用户的消息将会存储于默认分组中。警告:由于分组已经删除,用户之前未消费的消息将无法再获取。不能以default开头,default开头为系统默认组。 +func (r *TaobaoTmcGroupDeleteAPIRequest) SetGroupName(_groupName string) error { + r._groupName = _groupName + r.Set("group_name", _groupName) + return nil +} + +// GroupName Getter +func (r TaobaoTmcGroupDeleteAPIRequest) GetGroupName() string { + return r._groupName +} +// Nicks Setter +// 用户列表,不传表示删除整个分组,如果用户全部删除后,也会自动删除整个分组 +func (r *TaobaoTmcGroupDeleteAPIRequest) SetNicks(_nicks []string) error { + r._nicks = _nicks + r.Set("nicks", _nicks) + return nil +} + +// Nicks Getter +func (r TaobaoTmcGroupDeleteAPIRequest) GetNicks() []string { + return r._nicks +} +// UserPlatform Setter +// 用户所属于的平台类型,tbUIC:淘宝用户; icbu: icbu用户;ae:ae用户 +func (r *TaobaoTmcGroupDeleteAPIRequest) SetUserPlatform(_userPlatform string) error { + r._userPlatform = _userPlatform + r.Set("user_platform", _userPlatform) + return nil +} + +// UserPlatform Getter +func (r TaobaoTmcGroupDeleteAPIRequest) GetUserPlatform() string { + return r._userPlatform +} diff --git a/model/tmc/TaobaoTmcGroupDeleteAPIResponse.go b/model/tmc/TaobaoTmcGroupDeleteAPIResponse.go new file mode 100644 index 0000000000..a311b79528 --- /dev/null +++ b/model/tmc/TaobaoTmcGroupDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package tmc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除指定的分组或分组下的用户 API返回值 +taobao.tmc.group.delete + +删除指定的分组或分组下的用户,授权消息使用 +*/ +type TaobaoTmcGroupDeleteAPIResponse struct { + model.CommonResponse + TaobaoTmcGroupDeleteAPIResponseModel +} + +// 删除指定的分组或分组下的用户 成功返回结果 +type TaobaoTmcGroupDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"tmc_group_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/tmc/TaobaoTmcGroupDeleteResponse.go b/model/tmc/TaobaoTmcGroupDeleteResponse.go deleted file mode 100644 index 2c9aa40c0b..0000000000 --- a/model/tmc/TaobaoTmcGroupDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除指定的分组或分组下的用户 API返回值 -taobao.tmc.group.delete - -删除指定的分组或分组下的用户,授权消息使用 -*/ -type TaobaoTmcGroupDeleteAPIResponse struct { - model.CommonResponse - TaobaoTmcGroupDeleteResponse -} - -// 删除指定的分组或分组下的用户 成功返回结果 -type TaobaoTmcGroupDeleteResponse struct { - XMLName xml.Name `xml:"tmc_group_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/tmc/TaobaoTmcGroupsGetAPIRequest.go b/model/tmc/TaobaoTmcGroupsGetAPIRequest.go new file mode 100644 index 0000000000..08e41c471e --- /dev/null +++ b/model/tmc/TaobaoTmcGroupsGetAPIRequest.go @@ -0,0 +1,80 @@ +package tmc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取自定义用户分组列表 API请求 +taobao.tmc.groups.get + +获取自定义用户分组列表 +*/ +type TaobaoTmcGroupsGetAPIRequest struct { + model.Params + // 要查询分组的名称,多个分组用半角逗号分隔,不传代表查询所有分组信息,但不会返回组下面的用户信息。如果应用没有设置分组则返回空。组名不能以default开头,default开头是系统默认的组。 + _groupNames []string + // 页码 + _pageNo int64 + // 每页返回多少个分组 + _pageSize int64 +} + +// 初始化TaobaoTmcGroupsGetAPIRequest对象 +func NewTaobaoTmcGroupsGetRequest() *TaobaoTmcGroupsGetAPIRequest{ + return &TaobaoTmcGroupsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTmcGroupsGetAPIRequest) GetApiMethodName() string { + return "taobao.tmc.groups.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTmcGroupsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupNames Setter +// 要查询分组的名称,多个分组用半角逗号分隔,不传代表查询所有分组信息,但不会返回组下面的用户信息。如果应用没有设置分组则返回空。组名不能以default开头,default开头是系统默认的组。 +func (r *TaobaoTmcGroupsGetAPIRequest) SetGroupNames(_groupNames []string) error { + r._groupNames = _groupNames + r.Set("group_names", _groupNames) + return nil +} + +// GroupNames Getter +func (r TaobaoTmcGroupsGetAPIRequest) GetGroupNames() []string { + return r._groupNames +} +// PageNo Setter +// 页码 +func (r *TaobaoTmcGroupsGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoTmcGroupsGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页返回多少个分组 +func (r *TaobaoTmcGroupsGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTmcGroupsGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tmc/TaobaoTmcGroupsGetAPIResponse.go b/model/tmc/TaobaoTmcGroupsGetAPIResponse.go new file mode 100644 index 0000000000..d4588da733 --- /dev/null +++ b/model/tmc/TaobaoTmcGroupsGetAPIResponse.go @@ -0,0 +1,29 @@ +package tmc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取自定义用户分组列表 API返回值 +taobao.tmc.groups.get + +获取自定义用户分组列表 +*/ +type TaobaoTmcGroupsGetAPIResponse struct { + model.CommonResponse + TaobaoTmcGroupsGetAPIResponseModel +} + +// 获取自定义用户分组列表 成功返回结果 +type TaobaoTmcGroupsGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmc_groups_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // dasdasd + Groups []TmcGroup `json:"groups,omitempty" xml:"groups>tmc_group,omitempty"` + // 分组总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/tmc/TaobaoTmcGroupsGetResponse.go b/model/tmc/TaobaoTmcGroupsGetResponse.go deleted file mode 100644 index b503bcdc4d..0000000000 --- a/model/tmc/TaobaoTmcGroupsGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tmc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取自定义用户分组列表 API返回值 -taobao.tmc.groups.get - -获取自定义用户分组列表 -*/ -type TaobaoTmcGroupsGetAPIResponse struct { - model.CommonResponse - TaobaoTmcGroupsGetResponse -} - -// 获取自定义用户分组列表 成功返回结果 -type TaobaoTmcGroupsGetResponse struct { - XMLName xml.Name `xml:"tmc_groups_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // dasdasd - Groups []TmcGroup `json:"groups,omitempty" xml:"groups>tmc_group,omitempty"` - // 分组总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/tmc/TaobaoTmcMessageProduceAPIRequest.go b/model/tmc/TaobaoTmcMessageProduceAPIRequest.go new file mode 100644 index 0000000000..e709af6f82 --- /dev/null +++ b/model/tmc/TaobaoTmcMessageProduceAPIRequest.go @@ -0,0 +1,150 @@ +package tmc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发布单条消息 API请求 +taobao.tmc.message.produce + +发布单条消息 +*/ +type TaobaoTmcMessageProduceAPIRequest struct { + model.Params + // 消息内容的JSON表述,必须按照topic的定义来填充 + _content string + // 消息类型 + _topic string + // 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。 + _mediaContent *model.File + // 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。具体对应到沙体中的什么值,请参考消息字段说明。 + _mediaContent2 *model.File + // 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。具体对应到沙体中的什么值,请参考消息字段说明。 + _mediaContent3 *model.File + // 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。具体对应到沙体中的什么值,请参考消息字段说明。 + _mediaContent4 *model.File + // 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。具体对应到沙体中的什么值,请参考消息字段说明。 + _mediaContent5 *model.File + // 目标分组,一般为default + _targetGroup string +} + +// 初始化TaobaoTmcMessageProduceAPIRequest对象 +func NewTaobaoTmcMessageProduceRequest() *TaobaoTmcMessageProduceAPIRequest{ + return &TaobaoTmcMessageProduceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTmcMessageProduceAPIRequest) GetApiMethodName() string { + return "taobao.tmc.message.produce" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTmcMessageProduceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Content Setter +// 消息内容的JSON表述,必须按照topic的定义来填充 +func (r *TaobaoTmcMessageProduceAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r TaobaoTmcMessageProduceAPIRequest) GetContent() string { + return r._content +} +// Topic Setter +// 消息类型 +func (r *TaobaoTmcMessageProduceAPIRequest) SetTopic(_topic string) error { + r._topic = _topic + r.Set("topic", _topic) + return nil +} + +// Topic Getter +func (r TaobaoTmcMessageProduceAPIRequest) GetTopic() string { + return r._topic +} +// MediaContent Setter +// 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。 +func (r *TaobaoTmcMessageProduceAPIRequest) SetMediaContent(_mediaContent *model.File) error { + r._mediaContent = _mediaContent + r.Set("media_content", _mediaContent) + return nil +} + +// MediaContent Getter +func (r TaobaoTmcMessageProduceAPIRequest) GetMediaContent() *model.File { + return r._mediaContent +} +// MediaContent2 Setter +// 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。具体对应到沙体中的什么值,请参考消息字段说明。 +func (r *TaobaoTmcMessageProduceAPIRequest) SetMediaContent2(_mediaContent2 *model.File) error { + r._mediaContent2 = _mediaContent2 + r.Set("media_content2", _mediaContent2) + return nil +} + +// MediaContent2 Getter +func (r TaobaoTmcMessageProduceAPIRequest) GetMediaContent2() *model.File { + return r._mediaContent2 +} +// MediaContent3 Setter +// 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。具体对应到沙体中的什么值,请参考消息字段说明。 +func (r *TaobaoTmcMessageProduceAPIRequest) SetMediaContent3(_mediaContent3 *model.File) error { + r._mediaContent3 = _mediaContent3 + r.Set("media_content3", _mediaContent3) + return nil +} + +// MediaContent3 Getter +func (r TaobaoTmcMessageProduceAPIRequest) GetMediaContent3() *model.File { + return r._mediaContent3 +} +// MediaContent4 Setter +// 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。具体对应到沙体中的什么值,请参考消息字段说明。 +func (r *TaobaoTmcMessageProduceAPIRequest) SetMediaContent4(_mediaContent4 *model.File) error { + r._mediaContent4 = _mediaContent4 + r.Set("media_content4", _mediaContent4) + return nil +} + +// MediaContent4 Getter +func (r TaobaoTmcMessageProduceAPIRequest) GetMediaContent4() *model.File { + return r._mediaContent4 +} +// MediaContent5 Setter +// 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。具体对应到沙体中的什么值,请参考消息字段说明。 +func (r *TaobaoTmcMessageProduceAPIRequest) SetMediaContent5(_mediaContent5 *model.File) error { + r._mediaContent5 = _mediaContent5 + r.Set("media_content5", _mediaContent5) + return nil +} + +// MediaContent5 Getter +func (r TaobaoTmcMessageProduceAPIRequest) GetMediaContent5() *model.File { + return r._mediaContent5 +} +// TargetGroup Setter +// 目标分组,一般为default +func (r *TaobaoTmcMessageProduceAPIRequest) SetTargetGroup(_targetGroup string) error { + r._targetGroup = _targetGroup + r.Set("target_group", _targetGroup) + return nil +} + +// TargetGroup Getter +func (r TaobaoTmcMessageProduceAPIRequest) GetTargetGroup() string { + return r._targetGroup +} diff --git a/model/tmc/TaobaoTmcMessageProduceAPIResponse.go b/model/tmc/TaobaoTmcMessageProduceAPIResponse.go new file mode 100644 index 0000000000..b74881256f --- /dev/null +++ b/model/tmc/TaobaoTmcMessageProduceAPIResponse.go @@ -0,0 +1,31 @@ +package tmc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发布单条消息 API返回值 +taobao.tmc.message.produce + +发布单条消息 +*/ +type TaobaoTmcMessageProduceAPIResponse struct { + model.CommonResponse + TaobaoTmcMessageProduceAPIResponseModel +} + +// 发布单条消息 成功返回结果 +type TaobaoTmcMessageProduceAPIResponseModel struct { + XMLName xml.Name `xml:"tmc_message_produce_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 投递目标数 + Total int64 `json:"total,omitempty" xml:"total,omitempty"` + // 消息ID + MsgIds []string `json:"msg_ids,omitempty" xml:"msg_ids>string,omitempty"` +} diff --git a/model/tmc/TaobaoTmcMessageProduceResponse.go b/model/tmc/TaobaoTmcMessageProduceResponse.go deleted file mode 100644 index afb7c14d21..0000000000 --- a/model/tmc/TaobaoTmcMessageProduceResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发布单条消息 API返回值 -taobao.tmc.message.produce - -发布单条消息 -*/ -type TaobaoTmcMessageProduceAPIResponse struct { - model.CommonResponse - TaobaoTmcMessageProduceResponse -} - -// 发布单条消息 成功返回结果 -type TaobaoTmcMessageProduceResponse struct { - XMLName xml.Name `xml:"tmc_message_produce_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 投递目标数 - Total int64 `json:"total,omitempty" xml:"total,omitempty"` - // 消息ID - MsgIds []string `json:"msg_ids,omitempty" xml:"msg_ids>string,omitempty"` -} diff --git a/model/tmc/TaobaoTmcMessagesConfirmAPIRequest.go b/model/tmc/TaobaoTmcMessagesConfirmAPIRequest.go new file mode 100644 index 0000000000..4f3ec47818 --- /dev/null +++ b/model/tmc/TaobaoTmcMessagesConfirmAPIRequest.go @@ -0,0 +1,80 @@ +package tmc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +确认消费消息的状态 API请求 +taobao.tmc.messages.confirm + +确认消费消息的状态 +*/ +type TaobaoTmcMessagesConfirmAPIRequest struct { + model.Params + // 分组名称,不传代表默认分组 + _groupName string + // 处理成功的消息ID列表 最大 200个ID + _sMessageIds []int64 + // 处理失败的消息ID列表--已废弃,无需传此字段 + _fMessageIds []int64 +} + +// 初始化TaobaoTmcMessagesConfirmAPIRequest对象 +func NewTaobaoTmcMessagesConfirmRequest() *TaobaoTmcMessagesConfirmAPIRequest{ + return &TaobaoTmcMessagesConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTmcMessagesConfirmAPIRequest) GetApiMethodName() string { + return "taobao.tmc.messages.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTmcMessagesConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupName Setter +// 分组名称,不传代表默认分组 +func (r *TaobaoTmcMessagesConfirmAPIRequest) SetGroupName(_groupName string) error { + r._groupName = _groupName + r.Set("group_name", _groupName) + return nil +} + +// GroupName Getter +func (r TaobaoTmcMessagesConfirmAPIRequest) GetGroupName() string { + return r._groupName +} +// SMessageIds Setter +// 处理成功的消息ID列表 最大 200个ID +func (r *TaobaoTmcMessagesConfirmAPIRequest) SetSMessageIds(_sMessageIds []int64) error { + r._sMessageIds = _sMessageIds + r.Set("s_message_ids", _sMessageIds) + return nil +} + +// SMessageIds Getter +func (r TaobaoTmcMessagesConfirmAPIRequest) GetSMessageIds() []int64 { + return r._sMessageIds +} +// FMessageIds Setter +// 处理失败的消息ID列表--已废弃,无需传此字段 +func (r *TaobaoTmcMessagesConfirmAPIRequest) SetFMessageIds(_fMessageIds []int64) error { + r._fMessageIds = _fMessageIds + r.Set("f_message_ids", _fMessageIds) + return nil +} + +// FMessageIds Getter +func (r TaobaoTmcMessagesConfirmAPIRequest) GetFMessageIds() []int64 { + return r._fMessageIds +} diff --git a/model/tmc/TaobaoTmcMessagesConfirmAPIResponse.go b/model/tmc/TaobaoTmcMessagesConfirmAPIResponse.go new file mode 100644 index 0000000000..1f25eb5bc9 --- /dev/null +++ b/model/tmc/TaobaoTmcMessagesConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package tmc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +确认消费消息的状态 API返回值 +taobao.tmc.messages.confirm + +确认消费消息的状态 +*/ +type TaobaoTmcMessagesConfirmAPIResponse struct { + model.CommonResponse + TaobaoTmcMessagesConfirmAPIResponseModel +} + +// 确认消费消息的状态 成功返回结果 +type TaobaoTmcMessagesConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"tmc_messages_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/tmc/TaobaoTmcMessagesConfirmResponse.go b/model/tmc/TaobaoTmcMessagesConfirmResponse.go deleted file mode 100644 index adba16914d..0000000000 --- a/model/tmc/TaobaoTmcMessagesConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -确认消费消息的状态 API返回值 -taobao.tmc.messages.confirm - -确认消费消息的状态 -*/ -type TaobaoTmcMessagesConfirmAPIResponse struct { - model.CommonResponse - TaobaoTmcMessagesConfirmResponse -} - -// 确认消费消息的状态 成功返回结果 -type TaobaoTmcMessagesConfirmResponse struct { - XMLName xml.Name `xml:"tmc_messages_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/tmc/TaobaoTmcMessagesConsumeAPIRequest.go b/model/tmc/TaobaoTmcMessagesConsumeAPIRequest.go new file mode 100644 index 0000000000..4d3dc06a6c --- /dev/null +++ b/model/tmc/TaobaoTmcMessagesConsumeAPIRequest.go @@ -0,0 +1,66 @@ +package tmc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +消费多条消息 API请求 +taobao.tmc.messages.consume + +消费多条消息。消费时如果没有返回消息,建议做控制,不要一直调api,浪费应用的流量。如对程序做好优化,若没有消息则,sleep 100ms 等。 +*/ +type TaobaoTmcMessagesConsumeAPIRequest struct { + model.Params + // 用户分组名称,不传表示消费默认分组,如果应用没有设置用户分组,传入分组名称将会返回错误 + _groupName string + // 每次批量消费消息的条数,最小值:10;最大值:200 + _quantity int64 +} + +// 初始化TaobaoTmcMessagesConsumeAPIRequest对象 +func NewTaobaoTmcMessagesConsumeRequest() *TaobaoTmcMessagesConsumeAPIRequest{ + return &TaobaoTmcMessagesConsumeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTmcMessagesConsumeAPIRequest) GetApiMethodName() string { + return "taobao.tmc.messages.consume" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTmcMessagesConsumeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupName Setter +// 用户分组名称,不传表示消费默认分组,如果应用没有设置用户分组,传入分组名称将会返回错误 +func (r *TaobaoTmcMessagesConsumeAPIRequest) SetGroupName(_groupName string) error { + r._groupName = _groupName + r.Set("group_name", _groupName) + return nil +} + +// GroupName Getter +func (r TaobaoTmcMessagesConsumeAPIRequest) GetGroupName() string { + return r._groupName +} +// Quantity Setter +// 每次批量消费消息的条数,最小值:10;最大值:200 +func (r *TaobaoTmcMessagesConsumeAPIRequest) SetQuantity(_quantity int64) error { + r._quantity = _quantity + r.Set("quantity", _quantity) + return nil +} + +// Quantity Getter +func (r TaobaoTmcMessagesConsumeAPIRequest) GetQuantity() int64 { + return r._quantity +} diff --git a/model/tmc/TaobaoTmcMessagesConsumeAPIResponse.go b/model/tmc/TaobaoTmcMessagesConsumeAPIResponse.go new file mode 100644 index 0000000000..be82b1a281 --- /dev/null +++ b/model/tmc/TaobaoTmcMessagesConsumeAPIResponse.go @@ -0,0 +1,27 @@ +package tmc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +消费多条消息 API返回值 +taobao.tmc.messages.consume + +消费多条消息。消费时如果没有返回消息,建议做控制,不要一直调api,浪费应用的流量。如对程序做好优化,若没有消息则,sleep 100ms 等。 +*/ +type TaobaoTmcMessagesConsumeAPIResponse struct { + model.CommonResponse + TaobaoTmcMessagesConsumeAPIResponseModel +} + +// 消费多条消息 成功返回结果 +type TaobaoTmcMessagesConsumeAPIResponseModel struct { + XMLName xml.Name `xml:"tmc_messages_consume_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 消息列表 + Messages []TmcMessage `json:"messages,omitempty" xml:"messages>tmc_message,omitempty"` +} diff --git a/model/tmc/TaobaoTmcMessagesConsumeResponse.go b/model/tmc/TaobaoTmcMessagesConsumeResponse.go deleted file mode 100644 index ce82027960..0000000000 --- a/model/tmc/TaobaoTmcMessagesConsumeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -消费多条消息 API返回值 -taobao.tmc.messages.consume - -消费多条消息。消费时如果没有返回消息,建议做控制,不要一直调api,浪费应用的流量。如对程序做好优化,若没有消息则,sleep 100ms 等。 -*/ -type TaobaoTmcMessagesConsumeAPIResponse struct { - model.CommonResponse - TaobaoTmcMessagesConsumeResponse -} - -// 消费多条消息 成功返回结果 -type TaobaoTmcMessagesConsumeResponse struct { - XMLName xml.Name `xml:"tmc_messages_consume_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 消息列表 - Messages []TmcMessage `json:"messages,omitempty" xml:"messages>tmc_message,omitempty"` -} diff --git a/model/tmc/TaobaoTmcMessagesProduceAPIRequest.go b/model/tmc/TaobaoTmcMessagesProduceAPIRequest.go new file mode 100644 index 0000000000..2bfa68becc --- /dev/null +++ b/model/tmc/TaobaoTmcMessagesProduceAPIRequest.go @@ -0,0 +1,52 @@ +package tmc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量发送消息 API请求 +taobao.tmc.messages.produce + +批量发送消息 +*/ +type TaobaoTmcMessagesProduceAPIRequest struct { + model.Params + // 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 []TmcPublishMessage +} + +// 初始化TaobaoTmcMessagesProduceAPIRequest对象 +func NewTaobaoTmcMessagesProduceRequest() *TaobaoTmcMessagesProduceAPIRequest{ + return &TaobaoTmcMessagesProduceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTmcMessagesProduceAPIRequest) GetApiMethodName() string { + return "taobao.tmc.messages.produce" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTmcMessagesProduceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Messages Setter +// 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"}] +func (r *TaobaoTmcMessagesProduceAPIRequest) SetMessages(_messages []TmcPublishMessage) error { + r._messages = _messages + r.Set("messages", _messages) + return nil +} + +// Messages Getter +func (r TaobaoTmcMessagesProduceAPIRequest) GetMessages() []TmcPublishMessage { + return r._messages +} diff --git a/model/tmc/TaobaoTmcMessagesProduceAPIResponse.go b/model/tmc/TaobaoTmcMessagesProduceAPIResponse.go new file mode 100644 index 0000000000..96d67a4bb8 --- /dev/null +++ b/model/tmc/TaobaoTmcMessagesProduceAPIResponse.go @@ -0,0 +1,29 @@ +package tmc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量发送消息 API返回值 +taobao.tmc.messages.produce + +批量发送消息 +*/ +type TaobaoTmcMessagesProduceAPIResponse struct { + model.CommonResponse + TaobaoTmcMessagesProduceAPIResponseModel +} + +// 批量发送消息 成功返回结果 +type TaobaoTmcMessagesProduceAPIResponseModel struct { + XMLName xml.Name `xml:"tmc_messages_produce_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否全部成功 + IsAllSuccess bool `json:"is_all_success,omitempty" xml:"is_all_success,omitempty"` + // 发送结果,与发送时的参数顺序一致。如果is_all_success为true时,不用校验result是否成功 + Results []TmcProduceResult `json:"results,omitempty" xml:"results>tmc_produce_result,omitempty"` +} diff --git a/model/tmc/TaobaoTmcMessagesProduceResponse.go b/model/tmc/TaobaoTmcMessagesProduceResponse.go deleted file mode 100644 index 3097b735ed..0000000000 --- a/model/tmc/TaobaoTmcMessagesProduceResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tmc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量发送消息 API返回值 -taobao.tmc.messages.produce - -批量发送消息 -*/ -type TaobaoTmcMessagesProduceAPIResponse struct { - model.CommonResponse - TaobaoTmcMessagesProduceResponse -} - -// 批量发送消息 成功返回结果 -type TaobaoTmcMessagesProduceResponse struct { - XMLName xml.Name `xml:"tmc_messages_produce_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否全部成功 - IsAllSuccess bool `json:"is_all_success,omitempty" xml:"is_all_success,omitempty"` - // 发送结果,与发送时的参数顺序一致。如果is_all_success为true时,不用校验result是否成功 - Results []TmcProduceResult `json:"results,omitempty" xml:"results>tmc_produce_result,omitempty"` -} diff --git a/model/tmc/TaobaoTmcMsgSendrecordAPIRequest.go b/model/tmc/TaobaoTmcMsgSendrecordAPIRequest.go new file mode 100644 index 0000000000..15654379f8 --- /dev/null +++ b/model/tmc/TaobaoTmcMsgSendrecordAPIRequest.go @@ -0,0 +1,80 @@ +package tmc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +消息发送记录查询 API请求 +taobao.tmc.msg.sendrecord + +查询单条消息发送记录,只返回返回条数和时间。 +*/ +type TaobaoTmcMsgSendrecordAPIRequest struct { + model.Params + // 消息分组名 + _groupName string + // TOPIC名称 + _topicName string + // 消息主键ID + _dataId string +} + +// 初始化TaobaoTmcMsgSendrecordAPIRequest对象 +func NewTaobaoTmcMsgSendrecordRequest() *TaobaoTmcMsgSendrecordAPIRequest{ + return &TaobaoTmcMsgSendrecordAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTmcMsgSendrecordAPIRequest) GetApiMethodName() string { + return "taobao.tmc.msg.sendrecord" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTmcMsgSendrecordAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupName Setter +// 消息分组名 +func (r *TaobaoTmcMsgSendrecordAPIRequest) SetGroupName(_groupName string) error { + r._groupName = _groupName + r.Set("group_name", _groupName) + return nil +} + +// GroupName Getter +func (r TaobaoTmcMsgSendrecordAPIRequest) GetGroupName() string { + return r._groupName +} +// TopicName Setter +// TOPIC名称 +func (r *TaobaoTmcMsgSendrecordAPIRequest) SetTopicName(_topicName string) error { + r._topicName = _topicName + r.Set("topic_name", _topicName) + return nil +} + +// TopicName Getter +func (r TaobaoTmcMsgSendrecordAPIRequest) GetTopicName() string { + return r._topicName +} +// DataId Setter +// 消息主键ID +func (r *TaobaoTmcMsgSendrecordAPIRequest) SetDataId(_dataId string) error { + r._dataId = _dataId + r.Set("data_id", _dataId) + return nil +} + +// DataId Getter +func (r TaobaoTmcMsgSendrecordAPIRequest) GetDataId() string { + return r._dataId +} diff --git a/model/tmc/TaobaoTmcMsgSendrecordAPIResponse.go b/model/tmc/TaobaoTmcMsgSendrecordAPIResponse.go new file mode 100644 index 0000000000..0fea99359b --- /dev/null +++ b/model/tmc/TaobaoTmcMsgSendrecordAPIResponse.go @@ -0,0 +1,33 @@ +package tmc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +消息发送记录查询 API返回值 +taobao.tmc.msg.sendrecord + +查询单条消息发送记录,只返回返回条数和时间。 +*/ +type TaobaoTmcMsgSendrecordAPIResponse struct { + model.CommonResponse + TaobaoTmcMsgSendrecordAPIResponseModel +} + +// 消息发送记录查询 成功返回结果 +type TaobaoTmcMsgSendrecordAPIResponseModel struct { + XMLName xml.Name `xml:"tmc_msg_sendrecord_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // tmc发送次数 + TmcSendTimes int64 `json:"tmc_send_times,omitempty" xml:"tmc_send_times,omitempty"` + // 淘宝发送测试 + TbSendTimes int64 `json:"tb_send_times,omitempty" xml:"tb_send_times,omitempty"` + // 淘宝发送时间 + TbSendList string `json:"tb_send_list,omitempty" xml:"tb_send_list,omitempty"` + // TMC发送时间 + TmcSendList string `json:"tmc_send_list,omitempty" xml:"tmc_send_list,omitempty"` +} diff --git a/model/tmc/TaobaoTmcMsgSendrecordResponse.go b/model/tmc/TaobaoTmcMsgSendrecordResponse.go deleted file mode 100644 index 216d9fad1c..0000000000 --- a/model/tmc/TaobaoTmcMsgSendrecordResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tmc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -消息发送记录查询 API返回值 -taobao.tmc.msg.sendrecord - -查询单条消息发送记录,只返回返回条数和时间。 -*/ -type TaobaoTmcMsgSendrecordAPIResponse struct { - model.CommonResponse - TaobaoTmcMsgSendrecordResponse -} - -// 消息发送记录查询 成功返回结果 -type TaobaoTmcMsgSendrecordResponse struct { - XMLName xml.Name `xml:"tmc_msg_sendrecord_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // tmc发送次数 - TmcSendTimes int64 `json:"tmc_send_times,omitempty" xml:"tmc_send_times,omitempty"` - // 淘宝发送测试 - TbSendTimes int64 `json:"tb_send_times,omitempty" xml:"tb_send_times,omitempty"` - // 淘宝发送时间 - TbSendList string `json:"tb_send_list,omitempty" xml:"tb_send_list,omitempty"` - // TMC发送时间 - TmcSendList string `json:"tmc_send_list,omitempty" xml:"tmc_send_list,omitempty"` -} diff --git a/model/tmc/TaobaoTmcQueueGetAPIRequest.go b/model/tmc/TaobaoTmcQueueGetAPIRequest.go new file mode 100644 index 0000000000..c1626c885d --- /dev/null +++ b/model/tmc/TaobaoTmcQueueGetAPIRequest.go @@ -0,0 +1,52 @@ +package tmc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取消息队列积压情况 API请求 +taobao.tmc.queue.get + +根据appkey和groupName获取消息队列积压情况 +*/ +type TaobaoTmcQueueGetAPIRequest struct { + model.Params + // TMC组名 + _groupName string +} + +// 初始化TaobaoTmcQueueGetAPIRequest对象 +func NewTaobaoTmcQueueGetRequest() *TaobaoTmcQueueGetAPIRequest{ + return &TaobaoTmcQueueGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTmcQueueGetAPIRequest) GetApiMethodName() string { + return "taobao.tmc.queue.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTmcQueueGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupName Setter +// TMC组名 +func (r *TaobaoTmcQueueGetAPIRequest) SetGroupName(_groupName string) error { + r._groupName = _groupName + r.Set("group_name", _groupName) + return nil +} + +// GroupName Getter +func (r TaobaoTmcQueueGetAPIRequest) GetGroupName() string { + return r._groupName +} diff --git a/model/tmc/TaobaoTmcQueueGetAPIResponse.go b/model/tmc/TaobaoTmcQueueGetAPIResponse.go new file mode 100644 index 0000000000..f798c22b12 --- /dev/null +++ b/model/tmc/TaobaoTmcQueueGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取消息队列积压情况 API返回值 +taobao.tmc.queue.get + +根据appkey和groupName获取消息队列积压情况 +*/ +type TaobaoTmcQueueGetAPIResponse struct { + model.CommonResponse + TaobaoTmcQueueGetAPIResponseModel +} + +// 获取消息队列积压情况 成功返回结果 +type TaobaoTmcQueueGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmc_queue_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 队列详细信息 + Datas []TmcQueueInfo `json:"datas,omitempty" xml:"datas>tmc_queue_info,omitempty"` +} diff --git a/model/tmc/TaobaoTmcQueueGetResponse.go b/model/tmc/TaobaoTmcQueueGetResponse.go deleted file mode 100644 index fa302320c3..0000000000 --- a/model/tmc/TaobaoTmcQueueGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取消息队列积压情况 API返回值 -taobao.tmc.queue.get - -根据appkey和groupName获取消息队列积压情况 -*/ -type TaobaoTmcQueueGetAPIResponse struct { - model.CommonResponse - TaobaoTmcQueueGetResponse -} - -// 获取消息队列积压情况 成功返回结果 -type TaobaoTmcQueueGetResponse struct { - XMLName xml.Name `xml:"tmc_queue_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 队列详细信息 - Datas []TmcQueueInfo `json:"datas,omitempty" xml:"datas>tmc_queue_info,omitempty"` -} diff --git a/model/tmc/TaobaoTmcTopicGroupAddAPIRequest.go b/model/tmc/TaobaoTmcTopicGroupAddAPIRequest.go new file mode 100644 index 0000000000..6f91465218 --- /dev/null +++ b/model/tmc/TaobaoTmcTopicGroupAddAPIRequest.go @@ -0,0 +1,67 @@ +package tmc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +topic分组路由 API请求 +taobao.tmc.topic.group.add + +根据topic名称路由消息到不同的分组。(前提:发送方未指定分组名) +如果是需要授权的消息,分组路由先判断用户分组路由(使用taobao.tmc.group.add添加的路由),用户分组路由不存在时,才会判断topic分组路由 +*/ +type TaobaoTmcTopicGroupAddAPIRequest struct { + model.Params + // 消息分组名,如果不存在,会自动创建 + _groupName string + // 消息topic名称,多个以逗号(,)分割 + _topics []string +} + +// 初始化TaobaoTmcTopicGroupAddAPIRequest对象 +func NewTaobaoTmcTopicGroupAddRequest() *TaobaoTmcTopicGroupAddAPIRequest{ + return &TaobaoTmcTopicGroupAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTmcTopicGroupAddAPIRequest) GetApiMethodName() string { + return "taobao.tmc.topic.group.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTmcTopicGroupAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupName Setter +// 消息分组名,如果不存在,会自动创建 +func (r *TaobaoTmcTopicGroupAddAPIRequest) SetGroupName(_groupName string) error { + r._groupName = _groupName + r.Set("group_name", _groupName) + return nil +} + +// GroupName Getter +func (r TaobaoTmcTopicGroupAddAPIRequest) GetGroupName() string { + return r._groupName +} +// Topics Setter +// 消息topic名称,多个以逗号(,)分割 +func (r *TaobaoTmcTopicGroupAddAPIRequest) SetTopics(_topics []string) error { + r._topics = _topics + r.Set("topics", _topics) + return nil +} + +// Topics Getter +func (r TaobaoTmcTopicGroupAddAPIRequest) GetTopics() []string { + return r._topics +} diff --git a/model/tmc/TaobaoTmcTopicGroupAddAPIResponse.go b/model/tmc/TaobaoTmcTopicGroupAddAPIResponse.go new file mode 100644 index 0000000000..15093f72fc --- /dev/null +++ b/model/tmc/TaobaoTmcTopicGroupAddAPIResponse.go @@ -0,0 +1,28 @@ +package tmc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +topic分组路由 API返回值 +taobao.tmc.topic.group.add + +根据topic名称路由消息到不同的分组。(前提:发送方未指定分组名) +如果是需要授权的消息,分组路由先判断用户分组路由(使用taobao.tmc.group.add添加的路由),用户分组路由不存在时,才会判断topic分组路由 +*/ +type TaobaoTmcTopicGroupAddAPIResponse struct { + model.CommonResponse + TaobaoTmcTopicGroupAddAPIResponseModel +} + +// topic分组路由 成功返回结果 +type TaobaoTmcTopicGroupAddAPIResponseModel struct { + XMLName xml.Name `xml:"tmc_topic_group_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmc/TaobaoTmcTopicGroupAddResponse.go b/model/tmc/TaobaoTmcTopicGroupAddResponse.go deleted file mode 100644 index c96ab14e48..0000000000 --- a/model/tmc/TaobaoTmcTopicGroupAddResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package tmc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -topic分组路由 API返回值 -taobao.tmc.topic.group.add - -根据topic名称路由消息到不同的分组。(前提:发送方未指定分组名) -如果是需要授权的消息,分组路由先判断用户分组路由(使用taobao.tmc.group.add添加的路由),用户分组路由不存在时,才会判断topic分组路由 -*/ -type TaobaoTmcTopicGroupAddAPIResponse struct { - model.CommonResponse - TaobaoTmcTopicGroupAddResponse -} - -// topic分组路由 成功返回结果 -type TaobaoTmcTopicGroupAddResponse struct { - XMLName xml.Name `xml:"tmc_topic_group_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmc/TaobaoTmcTopicGroupDeleteAPIRequest.go b/model/tmc/TaobaoTmcTopicGroupDeleteAPIRequest.go new file mode 100644 index 0000000000..e69c2ad474 --- /dev/null +++ b/model/tmc/TaobaoTmcTopicGroupDeleteAPIRequest.go @@ -0,0 +1,80 @@ +package tmc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除消息topic分组路由 API请求 +taobao.tmc.topic.group.delete + +删除根据topic名称路由消息到不同的分组关系 +*/ +type TaobaoTmcTopicGroupDeleteAPIRequest struct { + model.Params + // 消息分组名 + _groupName string + // 消息topic名称,多个以逗号(,)分割 + _topics []string + // 消息分组Id,一般不用填写,如果分组已经被删除,则根据问题排查工具返回的ID删除路由关系 + _groupId int64 +} + +// 初始化TaobaoTmcTopicGroupDeleteAPIRequest对象 +func NewTaobaoTmcTopicGroupDeleteRequest() *TaobaoTmcTopicGroupDeleteAPIRequest{ + return &TaobaoTmcTopicGroupDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTmcTopicGroupDeleteAPIRequest) GetApiMethodName() string { + return "taobao.tmc.topic.group.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTmcTopicGroupDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupName Setter +// 消息分组名 +func (r *TaobaoTmcTopicGroupDeleteAPIRequest) SetGroupName(_groupName string) error { + r._groupName = _groupName + r.Set("group_name", _groupName) + return nil +} + +// GroupName Getter +func (r TaobaoTmcTopicGroupDeleteAPIRequest) GetGroupName() string { + return r._groupName +} +// Topics Setter +// 消息topic名称,多个以逗号(,)分割 +func (r *TaobaoTmcTopicGroupDeleteAPIRequest) SetTopics(_topics []string) error { + r._topics = _topics + r.Set("topics", _topics) + return nil +} + +// Topics Getter +func (r TaobaoTmcTopicGroupDeleteAPIRequest) GetTopics() []string { + return r._topics +} +// GroupId Setter +// 消息分组Id,一般不用填写,如果分组已经被删除,则根据问题排查工具返回的ID删除路由关系 +func (r *TaobaoTmcTopicGroupDeleteAPIRequest) SetGroupId(_groupId int64) error { + r._groupId = _groupId + r.Set("group_id", _groupId) + return nil +} + +// GroupId Getter +func (r TaobaoTmcTopicGroupDeleteAPIRequest) GetGroupId() int64 { + return r._groupId +} diff --git a/model/tmc/TaobaoTmcTopicGroupDeleteAPIResponse.go b/model/tmc/TaobaoTmcTopicGroupDeleteAPIResponse.go new file mode 100644 index 0000000000..36fc76d603 --- /dev/null +++ b/model/tmc/TaobaoTmcTopicGroupDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package tmc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除消息topic分组路由 API返回值 +taobao.tmc.topic.group.delete + +删除根据topic名称路由消息到不同的分组关系 +*/ +type TaobaoTmcTopicGroupDeleteAPIResponse struct { + model.CommonResponse + TaobaoTmcTopicGroupDeleteAPIResponseModel +} + +// 删除消息topic分组路由 成功返回结果 +type TaobaoTmcTopicGroupDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"tmc_topic_group_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmc/TaobaoTmcTopicGroupDeleteResponse.go b/model/tmc/TaobaoTmcTopicGroupDeleteResponse.go deleted file mode 100644 index f5addcd059..0000000000 --- a/model/tmc/TaobaoTmcTopicGroupDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除消息topic分组路由 API返回值 -taobao.tmc.topic.group.delete - -删除根据topic名称路由消息到不同的分组关系 -*/ -type TaobaoTmcTopicGroupDeleteAPIResponse struct { - model.CommonResponse - TaobaoTmcTopicGroupDeleteResponse -} - -// 删除消息topic分组路由 成功返回结果 -type TaobaoTmcTopicGroupDeleteResponse struct { - XMLName xml.Name `xml:"tmc_topic_group_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmc/TaobaoTmcUserCancelAPIRequest.go b/model/tmc/TaobaoTmcUserCancelAPIRequest.go new file mode 100644 index 0000000000..30ee271dac --- /dev/null +++ b/model/tmc/TaobaoTmcUserCancelAPIRequest.go @@ -0,0 +1,66 @@ +package tmc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消用户的消息服务 API请求 +taobao.tmc.user.cancel + +取消用户的消息服务 +*/ +type TaobaoTmcUserCancelAPIRequest struct { + model.Params + // 用户昵称 + _nick string + // 用户所属的平台类型,tbUIC:淘宝用户; icbu: icbu用户;ae:ae用户 + _userPlatform string +} + +// 初始化TaobaoTmcUserCancelAPIRequest对象 +func NewTaobaoTmcUserCancelRequest() *TaobaoTmcUserCancelAPIRequest{ + return &TaobaoTmcUserCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTmcUserCancelAPIRequest) GetApiMethodName() string { + return "taobao.tmc.user.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTmcUserCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 用户昵称 +func (r *TaobaoTmcUserCancelAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoTmcUserCancelAPIRequest) GetNick() string { + return r._nick +} +// UserPlatform Setter +// 用户所属的平台类型,tbUIC:淘宝用户; icbu: icbu用户;ae:ae用户 +func (r *TaobaoTmcUserCancelAPIRequest) SetUserPlatform(_userPlatform string) error { + r._userPlatform = _userPlatform + r.Set("user_platform", _userPlatform) + return nil +} + +// UserPlatform Getter +func (r TaobaoTmcUserCancelAPIRequest) GetUserPlatform() string { + return r._userPlatform +} diff --git a/model/tmc/TaobaoTmcUserCancelAPIResponse.go b/model/tmc/TaobaoTmcUserCancelAPIResponse.go new file mode 100644 index 0000000000..8ef47122bb --- /dev/null +++ b/model/tmc/TaobaoTmcUserCancelAPIResponse.go @@ -0,0 +1,27 @@ +package tmc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消用户的消息服务 API返回值 +taobao.tmc.user.cancel + +取消用户的消息服务 +*/ +type TaobaoTmcUserCancelAPIResponse struct { + model.CommonResponse + TaobaoTmcUserCancelAPIResponseModel +} + +// 取消用户的消息服务 成功返回结果 +type TaobaoTmcUserCancelAPIResponseModel struct { + XMLName xml.Name `xml:"tmc_user_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功,如果为false并且没有错误码,表示删除的用户不存在。 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/tmc/TaobaoTmcUserCancelResponse.go b/model/tmc/TaobaoTmcUserCancelResponse.go deleted file mode 100644 index c220733c96..0000000000 --- a/model/tmc/TaobaoTmcUserCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消用户的消息服务 API返回值 -taobao.tmc.user.cancel - -取消用户的消息服务 -*/ -type TaobaoTmcUserCancelAPIResponse struct { - model.CommonResponse - TaobaoTmcUserCancelResponse -} - -// 取消用户的消息服务 成功返回结果 -type TaobaoTmcUserCancelResponse struct { - XMLName xml.Name `xml:"tmc_user_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功,如果为false并且没有错误码,表示删除的用户不存在。 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/tmc/TaobaoTmcUserGetAPIRequest.go b/model/tmc/TaobaoTmcUserGetAPIRequest.go new file mode 100644 index 0000000000..6369957819 --- /dev/null +++ b/model/tmc/TaobaoTmcUserGetAPIRequest.go @@ -0,0 +1,80 @@ +package tmc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户已开通消息 API请求 +taobao.tmc.user.get + +查询指定用户开通的消息通道和组 +*/ +type TaobaoTmcUserGetAPIRequest struct { + model.Params + // 需返回的字段列表,多个字段以半角逗号分隔。可选值:TmcUser结构体中的所有字段,一定要返回topic。 + _fields string + // 用户昵称 + _nick string + // 用户所属的平台类型,tbUIC:淘宝用户; icbu: icbu用户;ae:ae用户 + _userPlatform string +} + +// 初始化TaobaoTmcUserGetAPIRequest对象 +func NewTaobaoTmcUserGetRequest() *TaobaoTmcUserGetAPIRequest{ + return &TaobaoTmcUserGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTmcUserGetAPIRequest) GetApiMethodName() string { + return "taobao.tmc.user.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTmcUserGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需返回的字段列表,多个字段以半角逗号分隔。可选值:TmcUser结构体中的所有字段,一定要返回topic。 +func (r *TaobaoTmcUserGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoTmcUserGetAPIRequest) GetFields() string { + return r._fields +} +// Nick Setter +// 用户昵称 +func (r *TaobaoTmcUserGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoTmcUserGetAPIRequest) GetNick() string { + return r._nick +} +// UserPlatform Setter +// 用户所属的平台类型,tbUIC:淘宝用户; icbu: icbu用户;ae:ae用户 +func (r *TaobaoTmcUserGetAPIRequest) SetUserPlatform(_userPlatform string) error { + r._userPlatform = _userPlatform + r.Set("user_platform", _userPlatform) + return nil +} + +// UserPlatform Getter +func (r TaobaoTmcUserGetAPIRequest) GetUserPlatform() string { + return r._userPlatform +} diff --git a/model/tmc/TaobaoTmcUserGetAPIResponse.go b/model/tmc/TaobaoTmcUserGetAPIResponse.go new file mode 100644 index 0000000000..ccb9881b33 --- /dev/null +++ b/model/tmc/TaobaoTmcUserGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户已开通消息 API返回值 +taobao.tmc.user.get + +查询指定用户开通的消息通道和组 +*/ +type TaobaoTmcUserGetAPIResponse struct { + model.CommonResponse + TaobaoTmcUserGetAPIResponseModel +} + +// 获取用户已开通消息 成功返回结果 +type TaobaoTmcUserGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmc_user_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 开通的用户数据 + TmcUser *TmcUser `json:"tmc_user,omitempty" xml:"tmc_user,omitempty"` +} diff --git a/model/tmc/TaobaoTmcUserGetResponse.go b/model/tmc/TaobaoTmcUserGetResponse.go deleted file mode 100644 index 7f41d12296..0000000000 --- a/model/tmc/TaobaoTmcUserGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户已开通消息 API返回值 -taobao.tmc.user.get - -查询指定用户开通的消息通道和组 -*/ -type TaobaoTmcUserGetAPIResponse struct { - model.CommonResponse - TaobaoTmcUserGetResponse -} - -// 获取用户已开通消息 成功返回结果 -type TaobaoTmcUserGetResponse struct { - XMLName xml.Name `xml:"tmc_user_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 开通的用户数据 - TmcUser *TmcUser `json:"tmc_user,omitempty" xml:"tmc_user,omitempty"` -} diff --git a/model/tmc/TaobaoTmcUserPermitAPIRequest.go b/model/tmc/TaobaoTmcUserPermitAPIRequest.go new file mode 100644 index 0000000000..62a0e78550 --- /dev/null +++ b/model/tmc/TaobaoTmcUserPermitAPIRequest.go @@ -0,0 +1,52 @@ +package tmc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +为已授权的用户开通消息服务 API请求 +taobao.tmc.user.permit + +为已授权的用户开通消息服务,授权消息使用。
注意:topic覆盖更新,务必传入全量topic,或者不传topics,使用appkey订阅的所有topic +*/ +type TaobaoTmcUserPermitAPIRequest struct { + model.Params + // 消息主题列表,用半角逗号分隔。当用户订阅的topic是应用订阅的子集时才需要设置,不设置表示继承应用所订阅的所有topic,一般情况建议不要设置。 + _topics []string +} + +// 初始化TaobaoTmcUserPermitAPIRequest对象 +func NewTaobaoTmcUserPermitRequest() *TaobaoTmcUserPermitAPIRequest{ + return &TaobaoTmcUserPermitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTmcUserPermitAPIRequest) GetApiMethodName() string { + return "taobao.tmc.user.permit" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTmcUserPermitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Topics Setter +// 消息主题列表,用半角逗号分隔。当用户订阅的topic是应用订阅的子集时才需要设置,不设置表示继承应用所订阅的所有topic,一般情况建议不要设置。 +func (r *TaobaoTmcUserPermitAPIRequest) SetTopics(_topics []string) error { + r._topics = _topics + r.Set("topics", _topics) + return nil +} + +// Topics Getter +func (r TaobaoTmcUserPermitAPIRequest) GetTopics() []string { + return r._topics +} diff --git a/model/tmc/TaobaoTmcUserPermitAPIResponse.go b/model/tmc/TaobaoTmcUserPermitAPIResponse.go new file mode 100644 index 0000000000..60624a0be7 --- /dev/null +++ b/model/tmc/TaobaoTmcUserPermitAPIResponse.go @@ -0,0 +1,27 @@ +package tmc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +为已授权的用户开通消息服务 API返回值 +taobao.tmc.user.permit + +为已授权的用户开通消息服务,授权消息使用。
注意:topic覆盖更新,务必传入全量topic,或者不传topics,使用appkey订阅的所有topic +*/ +type TaobaoTmcUserPermitAPIResponse struct { + model.CommonResponse + TaobaoTmcUserPermitAPIResponseModel +} + +// 为已授权的用户开通消息服务 成功返回结果 +type TaobaoTmcUserPermitAPIResponseModel struct { + XMLName xml.Name `xml:"tmc_user_permit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/tmc/TaobaoTmcUserPermitResponse.go b/model/tmc/TaobaoTmcUserPermitResponse.go deleted file mode 100644 index a173553ab9..0000000000 --- a/model/tmc/TaobaoTmcUserPermitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -为已授权的用户开通消息服务 API返回值 -taobao.tmc.user.permit - -为已授权的用户开通消息服务,授权消息使用。
注意:topic覆盖更新,务必传入全量topic,或者不传topics,使用appkey订阅的所有topic -*/ -type TaobaoTmcUserPermitAPIResponse struct { - model.CommonResponse - TaobaoTmcUserPermitResponse -} - -// 为已授权的用户开通消息服务 成功返回结果 -type TaobaoTmcUserPermitResponse struct { - XMLName xml.Name `xml:"tmc_user_permit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/tmc/TaobaoTmcUserTopicsGetAPIRequest.go b/model/tmc/TaobaoTmcUserTopicsGetAPIRequest.go new file mode 100644 index 0000000000..b36e3153cf --- /dev/null +++ b/model/tmc/TaobaoTmcUserTopicsGetAPIRequest.go @@ -0,0 +1,52 @@ +package tmc + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户开通的topic列表 API请求 +taobao.tmc.user.topics.get + +获取用户开通的topic列表,授权消息使用 +*/ +type TaobaoTmcUserTopicsGetAPIRequest struct { + model.Params + // 卖家nick + _nick string +} + +// 初始化TaobaoTmcUserTopicsGetAPIRequest对象 +func NewTaobaoTmcUserTopicsGetRequest() *TaobaoTmcUserTopicsGetAPIRequest{ + return &TaobaoTmcUserTopicsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTmcUserTopicsGetAPIRequest) GetApiMethodName() string { + return "taobao.tmc.user.topics.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTmcUserTopicsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 卖家nick +func (r *TaobaoTmcUserTopicsGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoTmcUserTopicsGetAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/tmc/TaobaoTmcUserTopicsGetAPIResponse.go b/model/tmc/TaobaoTmcUserTopicsGetAPIResponse.go new file mode 100644 index 0000000000..f5561253b2 --- /dev/null +++ b/model/tmc/TaobaoTmcUserTopicsGetAPIResponse.go @@ -0,0 +1,31 @@ +package tmc + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户开通的topic列表 API返回值 +taobao.tmc.user.topics.get + +获取用户开通的topic列表,授权消息使用 +*/ +type TaobaoTmcUserTopicsGetAPIResponse struct { + model.CommonResponse + TaobaoTmcUserTopicsGetAPIResponseModel +} + +// 获取用户开通的topic列表 成功返回结果 +type TaobaoTmcUserTopicsGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmc_user_topics_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"` + // topic列表 + Topics []string `json:"topics,omitempty" xml:"topics>string,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/tmc/TaobaoTmcUserTopicsGetResponse.go b/model/tmc/TaobaoTmcUserTopicsGetResponse.go deleted file mode 100644 index c9c819ae36..0000000000 --- a/model/tmc/TaobaoTmcUserTopicsGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmc - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户开通的topic列表 API返回值 -taobao.tmc.user.topics.get - -获取用户开通的topic列表,授权消息使用 -*/ -type TaobaoTmcUserTopicsGetAPIResponse struct { - model.CommonResponse - TaobaoTmcUserTopicsGetResponse -} - -// 获取用户开通的topic列表 成功返回结果 -type TaobaoTmcUserTopicsGetResponse struct { - XMLName xml.Name `xml:"tmc_user_topics_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"` - // topic列表 - Topics []string `json:"topics,omitempty" xml:"topics>string,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/tmic/TmallTmicQuestionnaireAnswerPushAPIRequest.go b/model/tmic/TmallTmicQuestionnaireAnswerPushAPIRequest.go new file mode 100644 index 0000000000..67225ccf4e --- /dev/null +++ b/model/tmic/TmallTmicQuestionnaireAnswerPushAPIRequest.go @@ -0,0 +1,122 @@ +package tmic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交单题答案 API请求 +tmall.tmic.questionnaire.answer.push + +问卷单题回答的提交 +*/ +type TmallTmicQuestionnaireAnswerPushAPIRequest struct { + model.Params + // 问卷填答id,从问卷信息接口的应答中获取 + _recordId int64 + // 问卷唯一编码,从问卷信息接口应答中获取 + _hashCode string + // 业务参数,区分问卷分组投放,1024表示分组投放id,fav表示用户动作类型为收藏 + _biz string + // 问卷版本号,从问卷信息接口的应答中获取 + _version int64 + // 用户填写的回答,类型为数组 + _userAnswerList []AnswerBo + // 开发平台userId + _openUserId string +} + +// 初始化TmallTmicQuestionnaireAnswerPushAPIRequest对象 +func NewTmallTmicQuestionnaireAnswerPushRequest() *TmallTmicQuestionnaireAnswerPushAPIRequest{ + return &TmallTmicQuestionnaireAnswerPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetApiMethodName() string { + return "tmall.tmic.questionnaire.answer.push" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RecordId Setter +// 问卷填答id,从问卷信息接口的应答中获取 +func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetRecordId(_recordId int64) error { + r._recordId = _recordId + r.Set("record_id", _recordId) + return nil +} + +// RecordId Getter +func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetRecordId() int64 { + return r._recordId +} +// HashCode Setter +// 问卷唯一编码,从问卷信息接口应答中获取 +func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetHashCode(_hashCode string) error { + r._hashCode = _hashCode + r.Set("hash_code", _hashCode) + return nil +} + +// HashCode Getter +func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetHashCode() string { + return r._hashCode +} +// Biz Setter +// 业务参数,区分问卷分组投放,1024表示分组投放id,fav表示用户动作类型为收藏 +func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetBiz(_biz string) error { + r._biz = _biz + r.Set("biz", _biz) + return nil +} + +// Biz Getter +func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetBiz() string { + return r._biz +} +// Version Setter +// 问卷版本号,从问卷信息接口的应答中获取 +func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetVersion(_version int64) error { + r._version = _version + r.Set("version", _version) + return nil +} + +// Version Getter +func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetVersion() int64 { + return r._version +} +// UserAnswerList Setter +// 用户填写的回答,类型为数组 +func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetUserAnswerList(_userAnswerList []AnswerBo) error { + r._userAnswerList = _userAnswerList + r.Set("user_answer_list", _userAnswerList) + return nil +} + +// UserAnswerList Getter +func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetUserAnswerList() []AnswerBo { + return r._userAnswerList +} +// OpenUserId Setter +// 开发平台userId +func (r *TmallTmicQuestionnaireAnswerPushAPIRequest) SetOpenUserId(_openUserId string) error { + r._openUserId = _openUserId + r.Set("open_user_id", _openUserId) + return nil +} + +// OpenUserId Getter +func (r TmallTmicQuestionnaireAnswerPushAPIRequest) GetOpenUserId() string { + return r._openUserId +} diff --git a/model/tmic/TmallTmicQuestionnaireAnswerPushAPIResponse.go b/model/tmic/TmallTmicQuestionnaireAnswerPushAPIResponse.go new file mode 100644 index 0000000000..490cdb8f34 --- /dev/null +++ b/model/tmic/TmallTmicQuestionnaireAnswerPushAPIResponse.go @@ -0,0 +1,31 @@ +package tmic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交单题答案 API返回值 +tmall.tmic.questionnaire.answer.push + +问卷单题回答的提交 +*/ +type TmallTmicQuestionnaireAnswerPushAPIResponse struct { + model.CommonResponse + TmallTmicQuestionnaireAnswerPushAPIResponseModel +} + +// 提交单题答案 成功返回结果 +type TmallTmicQuestionnaireAnswerPushAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_tmic_questionnaire_answer_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误提示语 + BizErrorInfo string `json:"biz_error_info,omitempty" xml:"biz_error_info,omitempty"` + // 错误编码 + BizErrorCode string `json:"biz_error_code,omitempty" xml:"biz_error_code,omitempty"` + // 是否调用成功 + BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` +} diff --git a/model/tmic/TmallTmicQuestionnaireAnswerPushResponse.go b/model/tmic/TmallTmicQuestionnaireAnswerPushResponse.go deleted file mode 100644 index d270d2b273..0000000000 --- a/model/tmic/TmallTmicQuestionnaireAnswerPushResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交单题答案 API返回值 -tmall.tmic.questionnaire.answer.push - -问卷单题回答的提交 -*/ -type TmallTmicQuestionnaireAnswerPushAPIResponse struct { - model.CommonResponse - TmallTmicQuestionnaireAnswerPushResponse -} - -// 提交单题答案 成功返回结果 -type TmallTmicQuestionnaireAnswerPushResponse struct { - XMLName xml.Name `xml:"tmall_tmic_questionnaire_answer_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误提示语 - BizErrorInfo string `json:"biz_error_info,omitempty" xml:"biz_error_info,omitempty"` - // 错误编码 - BizErrorCode string `json:"biz_error_code,omitempty" xml:"biz_error_code,omitempty"` - // 是否调用成功 - BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` -} diff --git a/model/tmic/TmallTmicQuestionnaireAnswerSubmitAPIRequest.go b/model/tmic/TmallTmicQuestionnaireAnswerSubmitAPIRequest.go new file mode 100644 index 0000000000..c9f919cb9d --- /dev/null +++ b/model/tmic/TmallTmicQuestionnaireAnswerSubmitAPIRequest.go @@ -0,0 +1,122 @@ +package tmic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交问卷答案 API请求 +tmall.tmic.questionnaire.answer.submit + +天猫新品创新中心对外开放问卷,提交问卷答案 +*/ +type TmallTmicQuestionnaireAnswerSubmitAPIRequest struct { + model.Params + // 问卷填答id,从问卷信息接口的应答中获取 + _recordId int64 + // 用户填写的回答,类型为数组 + _userAnswerList []AnswerBo + // 问卷唯一编码,从问卷信息接口应答中获取 + _hashCode string + // 业务参数,区分问卷分组投放,1024表示分组投放id,fav表示用户动作类型为收藏 + _biz string + // 问卷版本号,从问卷信息接口的应答中获取 + _version int64 + // openId + _openUserId string +} + +// 初始化TmallTmicQuestionnaireAnswerSubmitAPIRequest对象 +func NewTmallTmicQuestionnaireAnswerSubmitRequest() *TmallTmicQuestionnaireAnswerSubmitAPIRequest{ + return &TmallTmicQuestionnaireAnswerSubmitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetApiMethodName() string { + return "tmall.tmic.questionnaire.answer.submit" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RecordId Setter +// 问卷填答id,从问卷信息接口的应答中获取 +func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetRecordId(_recordId int64) error { + r._recordId = _recordId + r.Set("record_id", _recordId) + return nil +} + +// RecordId Getter +func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetRecordId() int64 { + return r._recordId +} +// UserAnswerList Setter +// 用户填写的回答,类型为数组 +func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetUserAnswerList(_userAnswerList []AnswerBo) error { + r._userAnswerList = _userAnswerList + r.Set("user_answer_list", _userAnswerList) + return nil +} + +// UserAnswerList Getter +func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetUserAnswerList() []AnswerBo { + return r._userAnswerList +} +// HashCode Setter +// 问卷唯一编码,从问卷信息接口应答中获取 +func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetHashCode(_hashCode string) error { + r._hashCode = _hashCode + r.Set("hash_code", _hashCode) + return nil +} + +// HashCode Getter +func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetHashCode() string { + return r._hashCode +} +// Biz Setter +// 业务参数,区分问卷分组投放,1024表示分组投放id,fav表示用户动作类型为收藏 +func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetBiz(_biz string) error { + r._biz = _biz + r.Set("biz", _biz) + return nil +} + +// Biz Getter +func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetBiz() string { + return r._biz +} +// Version Setter +// 问卷版本号,从问卷信息接口的应答中获取 +func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetVersion(_version int64) error { + r._version = _version + r.Set("version", _version) + return nil +} + +// Version Getter +func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetVersion() int64 { + return r._version +} +// OpenUserId Setter +// openId +func (r *TmallTmicQuestionnaireAnswerSubmitAPIRequest) SetOpenUserId(_openUserId string) error { + r._openUserId = _openUserId + r.Set("open_user_id", _openUserId) + return nil +} + +// OpenUserId Getter +func (r TmallTmicQuestionnaireAnswerSubmitAPIRequest) GetOpenUserId() string { + return r._openUserId +} diff --git a/model/tmic/TmallTmicQuestionnaireAnswerSubmitAPIResponse.go b/model/tmic/TmallTmicQuestionnaireAnswerSubmitAPIResponse.go new file mode 100644 index 0000000000..3b7215a87e --- /dev/null +++ b/model/tmic/TmallTmicQuestionnaireAnswerSubmitAPIResponse.go @@ -0,0 +1,31 @@ +package tmic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交问卷答案 API返回值 +tmall.tmic.questionnaire.answer.submit + +天猫新品创新中心对外开放问卷,提交问卷答案 +*/ +type TmallTmicQuestionnaireAnswerSubmitAPIResponse struct { + model.CommonResponse + TmallTmicQuestionnaireAnswerSubmitAPIResponseModel +} + +// 提交问卷答案 成功返回结果 +type TmallTmicQuestionnaireAnswerSubmitAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_tmic_questionnaire_answer_submit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误提示语 + BizErrorInfo string `json:"biz_error_info,omitempty" xml:"biz_error_info,omitempty"` + // 错误编码 + BizErrorCode string `json:"biz_error_code,omitempty" xml:"biz_error_code,omitempty"` + // 是否调用成功 + BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` +} diff --git a/model/tmic/TmallTmicQuestionnaireAnswerSubmitResponse.go b/model/tmic/TmallTmicQuestionnaireAnswerSubmitResponse.go deleted file mode 100644 index 9426d7d1e4..0000000000 --- a/model/tmic/TmallTmicQuestionnaireAnswerSubmitResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package tmic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交问卷答案 API返回值 -tmall.tmic.questionnaire.answer.submit - -天猫新品创新中心对外开放问卷,提交问卷答案 -*/ -type TmallTmicQuestionnaireAnswerSubmitAPIResponse struct { - model.CommonResponse - TmallTmicQuestionnaireAnswerSubmitResponse -} - -// 提交问卷答案 成功返回结果 -type TmallTmicQuestionnaireAnswerSubmitResponse struct { - XMLName xml.Name `xml:"tmall_tmic_questionnaire_answer_submit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误提示语 - BizErrorInfo string `json:"biz_error_info,omitempty" xml:"biz_error_info,omitempty"` - // 错误编码 - BizErrorCode string `json:"biz_error_code,omitempty" xml:"biz_error_code,omitempty"` - // 是否调用成功 - BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` -} diff --git a/model/tmic/TmallTmicQuestionnaireOptionGetAPIRequest.go b/model/tmic/TmallTmicQuestionnaireOptionGetAPIRequest.go new file mode 100644 index 0000000000..f0dcb3423c --- /dev/null +++ b/model/tmic/TmallTmicQuestionnaireOptionGetAPIRequest.go @@ -0,0 +1,136 @@ +package tmic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单题选项 API请求 +tmall.tmic.questionnaire.option.get + +根据具体题号,获取当前题目的选项列表 +*/ +type TmallTmicQuestionnaireOptionGetAPIRequest struct { + model.Params + // 问卷唯一编码,从问卷信息接口应答中获取 + _hashCode string + // 问卷版本号,从问卷信息接口的应答中获取 + _version int64 + // 问卷填答id,从问卷信息接口的应答中获取 + _recordId int64 + // 业务参数,区分问卷分组投放,1024表示分组投放id,fav表示用户动作类型为收藏 + _biz string + // 问题编码,问卷中的问题的唯一编码,从问卷信息接口的应答中获取 + _questionCode string + // 业务扩展参数 + _extraParameters string + // openId + _openUserId string +} + +// 初始化TmallTmicQuestionnaireOptionGetAPIRequest对象 +func NewTmallTmicQuestionnaireOptionGetRequest() *TmallTmicQuestionnaireOptionGetAPIRequest{ + return &TmallTmicQuestionnaireOptionGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetApiMethodName() string { + return "tmall.tmic.questionnaire.option.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// HashCode Setter +// 问卷唯一编码,从问卷信息接口应答中获取 +func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetHashCode(_hashCode string) error { + r._hashCode = _hashCode + r.Set("hash_code", _hashCode) + return nil +} + +// HashCode Getter +func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetHashCode() string { + return r._hashCode +} +// Version Setter +// 问卷版本号,从问卷信息接口的应答中获取 +func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetVersion(_version int64) error { + r._version = _version + r.Set("version", _version) + return nil +} + +// Version Getter +func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetVersion() int64 { + return r._version +} +// RecordId Setter +// 问卷填答id,从问卷信息接口的应答中获取 +func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetRecordId(_recordId int64) error { + r._recordId = _recordId + r.Set("record_id", _recordId) + return nil +} + +// RecordId Getter +func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetRecordId() int64 { + return r._recordId +} +// Biz Setter +// 业务参数,区分问卷分组投放,1024表示分组投放id,fav表示用户动作类型为收藏 +func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetBiz(_biz string) error { + r._biz = _biz + r.Set("biz", _biz) + return nil +} + +// Biz Getter +func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetBiz() string { + return r._biz +} +// QuestionCode Setter +// 问题编码,问卷中的问题的唯一编码,从问卷信息接口的应答中获取 +func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetQuestionCode(_questionCode string) error { + r._questionCode = _questionCode + r.Set("question_code", _questionCode) + return nil +} + +// QuestionCode Getter +func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetQuestionCode() string { + return r._questionCode +} +// ExtraParameters Setter +// 业务扩展参数 +func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetExtraParameters(_extraParameters string) error { + r._extraParameters = _extraParameters + r.Set("extra_parameters", _extraParameters) + return nil +} + +// ExtraParameters Getter +func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetExtraParameters() string { + return r._extraParameters +} +// OpenUserId Setter +// openId +func (r *TmallTmicQuestionnaireOptionGetAPIRequest) SetOpenUserId(_openUserId string) error { + r._openUserId = _openUserId + r.Set("open_user_id", _openUserId) + return nil +} + +// OpenUserId Getter +func (r TmallTmicQuestionnaireOptionGetAPIRequest) GetOpenUserId() string { + return r._openUserId +} diff --git a/model/tmic/TmallTmicQuestionnaireOptionGetAPIResponse.go b/model/tmic/TmallTmicQuestionnaireOptionGetAPIResponse.go new file mode 100644 index 0000000000..7b171d0426 --- /dev/null +++ b/model/tmic/TmallTmicQuestionnaireOptionGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单题选项 API返回值 +tmall.tmic.questionnaire.option.get + +根据具体题号,获取当前题目的选项列表 +*/ +type TmallTmicQuestionnaireOptionGetAPIResponse struct { + model.CommonResponse + TmallTmicQuestionnaireOptionGetAPIResponseModel +} + +// 获取单题选项 成功返回结果 +type TmallTmicQuestionnaireOptionGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_tmic_questionnaire_option_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *OpenOptionResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmic/TmallTmicQuestionnaireOptionGetResponse.go b/model/tmic/TmallTmicQuestionnaireOptionGetResponse.go deleted file mode 100644 index 78c9ad49a7..0000000000 --- a/model/tmic/TmallTmicQuestionnaireOptionGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取单题选项 API返回值 -tmall.tmic.questionnaire.option.get - -根据具体题号,获取当前题目的选项列表 -*/ -type TmallTmicQuestionnaireOptionGetAPIResponse struct { - model.CommonResponse - TmallTmicQuestionnaireOptionGetResponse -} - -// 获取单题选项 成功返回结果 -type TmallTmicQuestionnaireOptionGetResponse struct { - XMLName xml.Name `xml:"tmall_tmic_questionnaire_option_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *OpenOptionResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tmic/TmallTmicQuestionnaireSurveyGetAPIRequest.go b/model/tmic/TmallTmicQuestionnaireSurveyGetAPIRequest.go new file mode 100644 index 0000000000..8a078be677 --- /dev/null +++ b/model/tmic/TmallTmicQuestionnaireSurveyGetAPIRequest.go @@ -0,0 +1,80 @@ +package tmic + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫新品创新中心问卷数据获取 API请求 +tmall.tmic.questionnaire.survey.get + +天猫新品创新中心问卷数据获取 +*/ +type TmallTmicQuestionnaireSurveyGetAPIRequest struct { + model.Params + // 问卷hashCode,问卷对外唯一编码 + _hashCode string + // biz业务参数,1024表示投放id,下划线分隔,fav表示收藏行为的英文 + _biz string + // open_id + _openUserId string +} + +// 初始化TmallTmicQuestionnaireSurveyGetAPIRequest对象 +func NewTmallTmicQuestionnaireSurveyGetRequest() *TmallTmicQuestionnaireSurveyGetAPIRequest{ + return &TmallTmicQuestionnaireSurveyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTmicQuestionnaireSurveyGetAPIRequest) GetApiMethodName() string { + return "tmall.tmic.questionnaire.survey.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTmicQuestionnaireSurveyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// HashCode Setter +// 问卷hashCode,问卷对外唯一编码 +func (r *TmallTmicQuestionnaireSurveyGetAPIRequest) SetHashCode(_hashCode string) error { + r._hashCode = _hashCode + r.Set("hash_code", _hashCode) + return nil +} + +// HashCode Getter +func (r TmallTmicQuestionnaireSurveyGetAPIRequest) GetHashCode() string { + return r._hashCode +} +// Biz Setter +// biz业务参数,1024表示投放id,下划线分隔,fav表示收藏行为的英文 +func (r *TmallTmicQuestionnaireSurveyGetAPIRequest) SetBiz(_biz string) error { + r._biz = _biz + r.Set("biz", _biz) + return nil +} + +// Biz Getter +func (r TmallTmicQuestionnaireSurveyGetAPIRequest) GetBiz() string { + return r._biz +} +// OpenUserId Setter +// open_id +func (r *TmallTmicQuestionnaireSurveyGetAPIRequest) SetOpenUserId(_openUserId string) error { + r._openUserId = _openUserId + r.Set("open_user_id", _openUserId) + return nil +} + +// OpenUserId Getter +func (r TmallTmicQuestionnaireSurveyGetAPIRequest) GetOpenUserId() string { + return r._openUserId +} diff --git a/model/tmic/TmallTmicQuestionnaireSurveyGetAPIResponse.go b/model/tmic/TmallTmicQuestionnaireSurveyGetAPIResponse.go new file mode 100644 index 0000000000..d78d6a53a7 --- /dev/null +++ b/model/tmic/TmallTmicQuestionnaireSurveyGetAPIResponse.go @@ -0,0 +1,27 @@ +package tmic + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫新品创新中心问卷数据获取 API返回值 +tmall.tmic.questionnaire.survey.get + +天猫新品创新中心问卷数据获取 +*/ +type TmallTmicQuestionnaireSurveyGetAPIResponse struct { + model.CommonResponse + TmallTmicQuestionnaireSurveyGetAPIResponseModel +} + +// 天猫新品创新中心问卷数据获取 成功返回结果 +type TmallTmicQuestionnaireSurveyGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_tmic_questionnaire_survey_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallTmicQuestionnaireSurveyGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tmic/TmallTmicQuestionnaireSurveyGetResponse.go b/model/tmic/TmallTmicQuestionnaireSurveyGetResponse.go deleted file mode 100644 index 9019628a5e..0000000000 --- a/model/tmic/TmallTmicQuestionnaireSurveyGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tmic - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫新品创新中心问卷数据获取 API返回值 -tmall.tmic.questionnaire.survey.get - -天猫新品创新中心问卷数据获取 -*/ -type TmallTmicQuestionnaireSurveyGetAPIResponse struct { - model.CommonResponse - TmallTmicQuestionnaireSurveyGetResponse -} - -// 天猫新品创新中心问卷数据获取 成功返回结果 -type TmallTmicQuestionnaireSurveyGetResponse struct { - XMLName xml.Name `xml:"tmall_tmic_questionnaire_survey_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallTmicQuestionnaireSurveyGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/topoaid/TaobaoTopOaidDecryptAPIRequest.go b/model/topoaid/TaobaoTopOaidDecryptAPIRequest.go new file mode 100644 index 0000000000..f195afaa47 --- /dev/null +++ b/model/topoaid/TaobaoTopOaidDecryptAPIRequest.go @@ -0,0 +1,52 @@ +package topoaid + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +OAID解密 API请求 +taobao.top.oaid.decrypt + +解码OAID(Open Addressee ID),返回收件人信息。 +*/ +type TaobaoTopOaidDecryptAPIRequest struct { + model.Params + // 解密请求列表,最多支持20个。 + _queryList []ReceiverQuery +} + +// 初始化TaobaoTopOaidDecryptAPIRequest对象 +func NewTaobaoTopOaidDecryptRequest() *TaobaoTopOaidDecryptAPIRequest{ + return &TaobaoTopOaidDecryptAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTopOaidDecryptAPIRequest) GetApiMethodName() string { + return "taobao.top.oaid.decrypt" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTopOaidDecryptAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryList Setter +// 解密请求列表,最多支持20个。 +func (r *TaobaoTopOaidDecryptAPIRequest) SetQueryList(_queryList []ReceiverQuery) error { + r._queryList = _queryList + r.Set("query_list", _queryList) + return nil +} + +// QueryList Getter +func (r TaobaoTopOaidDecryptAPIRequest) GetQueryList() []ReceiverQuery { + return r._queryList +} diff --git a/model/topoaid/TaobaoTopOaidDecryptAPIResponse.go b/model/topoaid/TaobaoTopOaidDecryptAPIResponse.go new file mode 100644 index 0000000000..c0132ea176 --- /dev/null +++ b/model/topoaid/TaobaoTopOaidDecryptAPIResponse.go @@ -0,0 +1,27 @@ +package topoaid + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +OAID解密 API返回值 +taobao.top.oaid.decrypt + +解码OAID(Open Addressee ID),返回收件人信息。 +*/ +type TaobaoTopOaidDecryptAPIResponse struct { + model.CommonResponse + TaobaoTopOaidDecryptAPIResponseModel +} + +// OAID解密 成功返回结果 +type TaobaoTopOaidDecryptAPIResponseModel struct { + XMLName xml.Name `xml:"top_oaid_decrypt_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 收件人列表 + ReceiverList []Receiver `json:"receiver_list,omitempty" xml:"receiver_list>receiver,omitempty"` +} diff --git a/model/topoaid/TaobaoTopOaidDecryptResponse.go b/model/topoaid/TaobaoTopOaidDecryptResponse.go deleted file mode 100644 index 5cc9e11f72..0000000000 --- a/model/topoaid/TaobaoTopOaidDecryptResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package topoaid - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -OAID解密 API返回值 -taobao.top.oaid.decrypt - -解码OAID(Open Addressee ID),返回收件人信息。 -*/ -type TaobaoTopOaidDecryptAPIResponse struct { - model.CommonResponse - TaobaoTopOaidDecryptResponse -} - -// OAID解密 成功返回结果 -type TaobaoTopOaidDecryptResponse struct { - XMLName xml.Name `xml:"top_oaid_decrypt_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 收件人列表 - ReceiverList []Receiver `json:"receiver_list,omitempty" xml:"receiver_list>receiver,omitempty"` -} diff --git a/model/topoaid/TaobaoTopOaidMergeAPIRequest.go b/model/topoaid/TaobaoTopOaidMergeAPIRequest.go new file mode 100644 index 0000000000..d7114372ec --- /dev/null +++ b/model/topoaid/TaobaoTopOaidMergeAPIRequest.go @@ -0,0 +1,52 @@ +package topoaid + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +OAID订单合并 API请求 +taobao.top.oaid.merge + +基于OAID(收件人ID, Open Addressee ID)做订单合并,确保相同收件人信息的订单合并到相同组。 +*/ +type TaobaoTopOaidMergeAPIRequest struct { + model.Params + // 合单请求列表,最多支持100个。 + _mergeList []OrderMerge +} + +// 初始化TaobaoTopOaidMergeAPIRequest对象 +func NewTaobaoTopOaidMergeRequest() *TaobaoTopOaidMergeAPIRequest{ + return &TaobaoTopOaidMergeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTopOaidMergeAPIRequest) GetApiMethodName() string { + return "taobao.top.oaid.merge" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTopOaidMergeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MergeList Setter +// 合单请求列表,最多支持100个。 +func (r *TaobaoTopOaidMergeAPIRequest) SetMergeList(_mergeList []OrderMerge) error { + r._mergeList = _mergeList + r.Set("merge_list", _mergeList) + return nil +} + +// MergeList Getter +func (r TaobaoTopOaidMergeAPIRequest) GetMergeList() []OrderMerge { + return r._mergeList +} diff --git a/model/topoaid/TaobaoTopOaidMergeAPIResponse.go b/model/topoaid/TaobaoTopOaidMergeAPIResponse.go new file mode 100644 index 0000000000..9dd73eee13 --- /dev/null +++ b/model/topoaid/TaobaoTopOaidMergeAPIResponse.go @@ -0,0 +1,27 @@ +package topoaid + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +OAID订单合并 API返回值 +taobao.top.oaid.merge + +基于OAID(收件人ID, Open Addressee ID)做订单合并,确保相同收件人信息的订单合并到相同组。 +*/ +type TaobaoTopOaidMergeAPIResponse struct { + model.CommonResponse + TaobaoTopOaidMergeAPIResponseModel +} + +// OAID订单合并 成功返回结果 +type TaobaoTopOaidMergeAPIResponseModel struct { + XMLName xml.Name `xml:"top_oaid_merge_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 合单结果。可合单的订单ID列表用逗号分隔的字符串表示。比如,"1111,2222"表示订单1111和订单2222可合并发货。 + TidList []string `json:"tid_list,omitempty" xml:"tid_list>string,omitempty"` +} diff --git a/model/topoaid/TaobaoTopOaidMergeResponse.go b/model/topoaid/TaobaoTopOaidMergeResponse.go deleted file mode 100644 index 514bfc1024..0000000000 --- a/model/topoaid/TaobaoTopOaidMergeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package topoaid - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -OAID订单合并 API返回值 -taobao.top.oaid.merge - -基于OAID(收件人ID, Open Addressee ID)做订单合并,确保相同收件人信息的订单合并到相同组。 -*/ -type TaobaoTopOaidMergeAPIResponse struct { - model.CommonResponse - TaobaoTopOaidMergeResponse -} - -// OAID订单合并 成功返回结果 -type TaobaoTopOaidMergeResponse struct { - XMLName xml.Name `xml:"top_oaid_merge_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 合单结果。可合单的订单ID列表用逗号分隔的字符串表示。比如,"1111,2222"表示订单1111和订单2222可合并发货。 - TidList []string `json:"tid_list,omitempty" xml:"tid_list>string,omitempty"` -} diff --git a/model/trade/AlibabaLstVasTradeflowSaveAPIRequest.go b/model/trade/AlibabaLstVasTradeflowSaveAPIRequest.go new file mode 100644 index 0000000000..ddff5c4f0c --- /dev/null +++ b/model/trade/AlibabaLstVasTradeflowSaveAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +交易信息回流 API请求 +alibaba.lst.vas.tradeflow.save + +自动售货机交易信息同步接口,ISV通过此接口上传售货机交易信息。 +*/ +type AlibabaLstVasTradeflowSaveAPIRequest struct { + model.Params + // 交易流水信息 + _tradeFlowModelList *TradeFlowModel +} + +// 初始化AlibabaLstVasTradeflowSaveAPIRequest对象 +func NewAlibabaLstVasTradeflowSaveRequest() *AlibabaLstVasTradeflowSaveAPIRequest{ + return &AlibabaLstVasTradeflowSaveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLstVasTradeflowSaveAPIRequest) GetApiMethodName() string { + return "alibaba.lst.vas.tradeflow.save" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLstVasTradeflowSaveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeFlowModelList Setter +// 交易流水信息 +func (r *AlibabaLstVasTradeflowSaveAPIRequest) SetTradeFlowModelList(_tradeFlowModelList *TradeFlowModel) error { + r._tradeFlowModelList = _tradeFlowModelList + r.Set("trade_flow_model_list", _tradeFlowModelList) + return nil +} + +// TradeFlowModelList Getter +func (r AlibabaLstVasTradeflowSaveAPIRequest) GetTradeFlowModelList() *TradeFlowModel { + return r._tradeFlowModelList +} diff --git a/model/trade/AlibabaLstVasTradeflowSaveAPIResponse.go b/model/trade/AlibabaLstVasTradeflowSaveAPIResponse.go new file mode 100644 index 0000000000..21d85eec22 --- /dev/null +++ b/model/trade/AlibabaLstVasTradeflowSaveAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +交易信息回流 API返回值 +alibaba.lst.vas.tradeflow.save + +自动售货机交易信息同步接口,ISV通过此接口上传售货机交易信息。 +*/ +type AlibabaLstVasTradeflowSaveAPIResponse struct { + model.CommonResponse + AlibabaLstVasTradeflowSaveAPIResponseModel +} + +// 交易信息回流 成功返回结果 +type AlibabaLstVasTradeflowSaveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lst_vas_tradeflow_save_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaLstVasTradeflowSaveResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/AlibabaLstVasTradeflowSaveResponse.go b/model/trade/AlibabaLstVasTradeflowSaveResponse.go deleted file mode 100644 index 8d31250294..0000000000 --- a/model/trade/AlibabaLstVasTradeflowSaveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -交易信息回流 API返回值 -alibaba.lst.vas.tradeflow.save - -自动售货机交易信息同步接口,ISV通过此接口上传售货机交易信息。 -*/ -type AlibabaLstVasTradeflowSaveAPIResponse struct { - model.CommonResponse - AlibabaLstVasTradeflowSaveResponse -} - -// 交易信息回流 成功返回结果 -type AlibabaLstVasTradeflowSaveResponse struct { - XMLName xml.Name `xml:"alibaba_lst_vas_tradeflow_save_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaLstVasTradeflowSaveResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/AlibabaOmniSaasOrderCreateAPIRequest.go b/model/trade/AlibabaOmniSaasOrderCreateAPIRequest.go new file mode 100644 index 0000000000..9055d8cd6d --- /dev/null +++ b/model/trade/AlibabaOmniSaasOrderCreateAPIRequest.go @@ -0,0 +1,192 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单创建接口 API请求 +alibaba.omni.saas.order.create + +服务商利用现有的saas系统和阿里完成交易系统的对接 +*/ +type AlibabaOmniSaasOrderCreateAPIRequest struct { + model.Params + // 商品列表 + _goodsDetails []GoodsDetail + // 买家标识,淘系用户或用户手机号。当支付渠道为支付宝时,此字段为淘宝会员码或支付宝付款码。(当前仅支持淘系用户,手机号下单稍后开放) + _buyerId string + // 门店ID + _storeId string + // 收银设备类型 + _device string + // 收银设备号 + _deviceNo string + // 收银员标识 + _operatorId string + // ALIPAY:支付宝用户;TAOBAO:淘宝会员码;MOBILE:手机号 + _buyerIdType string + // ALIPAY:支付宝付款;BANK_CARD:刷卡 + _payChannel string + // 商家自有优惠 + _couponInfos []CouponInfo + // PLACE:淘宝商户中心门店ID;CUSTOM:商户自有门店编码,需要维护到淘宝商户中心 + _storeIdType string + // 请求号,用于标识一次请求 + _requestNo string +} + +// 初始化AlibabaOmniSaasOrderCreateAPIRequest对象 +func NewAlibabaOmniSaasOrderCreateRequest() *AlibabaOmniSaasOrderCreateAPIRequest{ + return &AlibabaOmniSaasOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaOmniSaasOrderCreateAPIRequest) GetApiMethodName() string { + return "alibaba.omni.saas.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaOmniSaasOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GoodsDetails Setter +// 商品列表 +func (r *AlibabaOmniSaasOrderCreateAPIRequest) SetGoodsDetails(_goodsDetails []GoodsDetail) error { + r._goodsDetails = _goodsDetails + r.Set("goods_details", _goodsDetails) + return nil +} + +// GoodsDetails Getter +func (r AlibabaOmniSaasOrderCreateAPIRequest) GetGoodsDetails() []GoodsDetail { + return r._goodsDetails +} +// BuyerId Setter +// 买家标识,淘系用户或用户手机号。当支付渠道为支付宝时,此字段为淘宝会员码或支付宝付款码。(当前仅支持淘系用户,手机号下单稍后开放) +func (r *AlibabaOmniSaasOrderCreateAPIRequest) SetBuyerId(_buyerId string) error { + r._buyerId = _buyerId + r.Set("buyer_id", _buyerId) + return nil +} + +// BuyerId Getter +func (r AlibabaOmniSaasOrderCreateAPIRequest) GetBuyerId() string { + return r._buyerId +} +// StoreId Setter +// 门店ID +func (r *AlibabaOmniSaasOrderCreateAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaOmniSaasOrderCreateAPIRequest) GetStoreId() string { + return r._storeId +} +// Device Setter +// 收银设备类型 +func (r *AlibabaOmniSaasOrderCreateAPIRequest) SetDevice(_device string) error { + r._device = _device + r.Set("device", _device) + return nil +} + +// Device Getter +func (r AlibabaOmniSaasOrderCreateAPIRequest) GetDevice() string { + return r._device +} +// DeviceNo Setter +// 收银设备号 +func (r *AlibabaOmniSaasOrderCreateAPIRequest) SetDeviceNo(_deviceNo string) error { + r._deviceNo = _deviceNo + r.Set("device_no", _deviceNo) + return nil +} + +// DeviceNo Getter +func (r AlibabaOmniSaasOrderCreateAPIRequest) GetDeviceNo() string { + return r._deviceNo +} +// OperatorId Setter +// 收银员标识 +func (r *AlibabaOmniSaasOrderCreateAPIRequest) SetOperatorId(_operatorId string) error { + r._operatorId = _operatorId + r.Set("operator_id", _operatorId) + return nil +} + +// OperatorId Getter +func (r AlibabaOmniSaasOrderCreateAPIRequest) GetOperatorId() string { + return r._operatorId +} +// BuyerIdType Setter +// ALIPAY:支付宝用户;TAOBAO:淘宝会员码;MOBILE:手机号 +func (r *AlibabaOmniSaasOrderCreateAPIRequest) SetBuyerIdType(_buyerIdType string) error { + r._buyerIdType = _buyerIdType + r.Set("buyer_id_type", _buyerIdType) + return nil +} + +// BuyerIdType Getter +func (r AlibabaOmniSaasOrderCreateAPIRequest) GetBuyerIdType() string { + return r._buyerIdType +} +// PayChannel Setter +// ALIPAY:支付宝付款;BANK_CARD:刷卡 +func (r *AlibabaOmniSaasOrderCreateAPIRequest) SetPayChannel(_payChannel string) error { + r._payChannel = _payChannel + r.Set("pay_channel", _payChannel) + return nil +} + +// PayChannel Getter +func (r AlibabaOmniSaasOrderCreateAPIRequest) GetPayChannel() string { + return r._payChannel +} +// CouponInfos Setter +// 商家自有优惠 +func (r *AlibabaOmniSaasOrderCreateAPIRequest) SetCouponInfos(_couponInfos []CouponInfo) error { + r._couponInfos = _couponInfos + r.Set("coupon_infos", _couponInfos) + return nil +} + +// CouponInfos Getter +func (r AlibabaOmniSaasOrderCreateAPIRequest) GetCouponInfos() []CouponInfo { + return r._couponInfos +} +// StoreIdType Setter +// PLACE:淘宝商户中心门店ID;CUSTOM:商户自有门店编码,需要维护到淘宝商户中心 +func (r *AlibabaOmniSaasOrderCreateAPIRequest) SetStoreIdType(_storeIdType string) error { + r._storeIdType = _storeIdType + r.Set("store_id_type", _storeIdType) + return nil +} + +// StoreIdType Getter +func (r AlibabaOmniSaasOrderCreateAPIRequest) GetStoreIdType() string { + return r._storeIdType +} +// RequestNo Setter +// 请求号,用于标识一次请求 +func (r *AlibabaOmniSaasOrderCreateAPIRequest) SetRequestNo(_requestNo string) error { + r._requestNo = _requestNo + r.Set("request_no", _requestNo) + return nil +} + +// RequestNo Getter +func (r AlibabaOmniSaasOrderCreateAPIRequest) GetRequestNo() string { + return r._requestNo +} diff --git a/model/trade/AlibabaOmniSaasOrderCreateAPIResponse.go b/model/trade/AlibabaOmniSaasOrderCreateAPIResponse.go new file mode 100644 index 0000000000..c834a31d27 --- /dev/null +++ b/model/trade/AlibabaOmniSaasOrderCreateAPIResponse.go @@ -0,0 +1,31 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单创建接口 API返回值 +alibaba.omni.saas.order.create + +服务商利用现有的saas系统和阿里完成交易系统的对接 +*/ +type AlibabaOmniSaasOrderCreateAPIResponse struct { + model.CommonResponse + AlibabaOmniSaasOrderCreateAPIResponseModel +} + +// 订单创建接口 成功返回结果 +type AlibabaOmniSaasOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_omni_saas_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // tradeNo + TradeNo int64 `json:"trade_no,omitempty" xml:"trade_no,omitempty"` + // totalAmount + TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"` + // actualPayFee + ActualPayFee int64 `json:"actual_pay_fee,omitempty" xml:"actual_pay_fee,omitempty"` +} diff --git a/model/trade/AlibabaOmniSaasOrderCreateResponse.go b/model/trade/AlibabaOmniSaasOrderCreateResponse.go deleted file mode 100644 index 0e76c5311f..0000000000 --- a/model/trade/AlibabaOmniSaasOrderCreateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单创建接口 API返回值 -alibaba.omni.saas.order.create - -服务商利用现有的saas系统和阿里完成交易系统的对接 -*/ -type AlibabaOmniSaasOrderCreateAPIResponse struct { - model.CommonResponse - AlibabaOmniSaasOrderCreateResponse -} - -// 订单创建接口 成功返回结果 -type AlibabaOmniSaasOrderCreateResponse struct { - XMLName xml.Name `xml:"alibaba_omni_saas_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // tradeNo - TradeNo int64 `json:"trade_no,omitempty" xml:"trade_no,omitempty"` - // totalAmount - TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"` - // actualPayFee - ActualPayFee int64 `json:"actual_pay_fee,omitempty" xml:"actual_pay_fee,omitempty"` -} diff --git a/model/trade/AlibabaTradeAlianceCreateAPIRequest.go b/model/trade/AlibabaTradeAlianceCreateAPIRequest.go new file mode 100644 index 0000000000..28d595fb83 --- /dev/null +++ b/model/trade/AlibabaTradeAlianceCreateAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推客平台订单回流 API请求 +alibaba.trade.aliance.create + +推客平台订单回流 +*/ +type AlibabaTradeAlianceCreateAPIRequest struct { + model.Params + // 下单请求 + _paramIsvCreateOrderParam *IsvCreateOrderParam +} + +// 初始化AlibabaTradeAlianceCreateAPIRequest对象 +func NewAlibabaTradeAlianceCreateRequest() *AlibabaTradeAlianceCreateAPIRequest{ + return &AlibabaTradeAlianceCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTradeAlianceCreateAPIRequest) GetApiMethodName() string { + return "alibaba.trade.aliance.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTradeAlianceCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamIsvCreateOrderParam Setter +// 下单请求 +func (r *AlibabaTradeAlianceCreateAPIRequest) SetParamIsvCreateOrderParam(_paramIsvCreateOrderParam *IsvCreateOrderParam) error { + r._paramIsvCreateOrderParam = _paramIsvCreateOrderParam + r.Set("param_isv_create_order_param", _paramIsvCreateOrderParam) + return nil +} + +// ParamIsvCreateOrderParam Getter +func (r AlibabaTradeAlianceCreateAPIRequest) GetParamIsvCreateOrderParam() *IsvCreateOrderParam { + return r._paramIsvCreateOrderParam +} diff --git a/model/trade/AlibabaTradeAlianceCreateAPIResponse.go b/model/trade/AlibabaTradeAlianceCreateAPIResponse.go new file mode 100644 index 0000000000..09d1c1669c --- /dev/null +++ b/model/trade/AlibabaTradeAlianceCreateAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推客平台订单回流 API返回值 +alibaba.trade.aliance.create + +推客平台订单回流 +*/ +type AlibabaTradeAlianceCreateAPIResponse struct { + model.CommonResponse + AlibabaTradeAlianceCreateAPIResponseModel +} + +// 推客平台订单回流 成功返回结果 +type AlibabaTradeAlianceCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_trade_aliance_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单创建结果 + Result *AlibabaTradeAlianceCreateResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/AlibabaTradeAlianceCreateResponse.go b/model/trade/AlibabaTradeAlianceCreateResponse.go deleted file mode 100644 index a1f7270811..0000000000 --- a/model/trade/AlibabaTradeAlianceCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推客平台订单回流 API返回值 -alibaba.trade.aliance.create - -推客平台订单回流 -*/ -type AlibabaTradeAlianceCreateAPIResponse struct { - model.CommonResponse - AlibabaTradeAlianceCreateResponse -} - -// 推客平台订单回流 成功返回结果 -type AlibabaTradeAlianceCreateResponse struct { - XMLName xml.Name `xml:"alibaba_trade_aliance_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单创建结果 - Result *AlibabaTradeAlianceCreateResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/AlibabaWdkPosTradeCloseAPIRequest.go b/model/trade/AlibabaWdkPosTradeCloseAPIRequest.go new file mode 100644 index 0000000000..ed734d26d3 --- /dev/null +++ b/model/trade/AlibabaWdkPosTradeCloseAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +轻pos品牌营销关单接口 API请求 +alibaba.wdk.pos.trade.close + +轻pos品牌营销场景,提供关单接口给外部商家 +*/ +type AlibabaWdkPosTradeCloseAPIRequest struct { + model.Params + // 关单请求 + _closeRequest *FastBuyPosCloseRequest +} + +// 初始化AlibabaWdkPosTradeCloseAPIRequest对象 +func NewAlibabaWdkPosTradeCloseRequest() *AlibabaWdkPosTradeCloseAPIRequest{ + return &AlibabaWdkPosTradeCloseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkPosTradeCloseAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.pos.trade.close" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkPosTradeCloseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CloseRequest Setter +// 关单请求 +func (r *AlibabaWdkPosTradeCloseAPIRequest) SetCloseRequest(_closeRequest *FastBuyPosCloseRequest) error { + r._closeRequest = _closeRequest + r.Set("close_request", _closeRequest) + return nil +} + +// CloseRequest Getter +func (r AlibabaWdkPosTradeCloseAPIRequest) GetCloseRequest() *FastBuyPosCloseRequest { + return r._closeRequest +} diff --git a/model/trade/AlibabaWdkPosTradeCloseAPIResponse.go b/model/trade/AlibabaWdkPosTradeCloseAPIResponse.go new file mode 100644 index 0000000000..5741ee8a2f --- /dev/null +++ b/model/trade/AlibabaWdkPosTradeCloseAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +轻pos品牌营销关单接口 API返回值 +alibaba.wdk.pos.trade.close + +轻pos品牌营销场景,提供关单接口给外部商家 +*/ +type AlibabaWdkPosTradeCloseAPIResponse struct { + model.CommonResponse + AlibabaWdkPosTradeCloseAPIResponseModel +} + +// 轻pos品牌营销关单接口 成功返回结果 +type AlibabaWdkPosTradeCloseAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_pos_trade_close_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 关单结果 + Result *FastBuyPosCloseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/AlibabaWdkPosTradeCloseResponse.go b/model/trade/AlibabaWdkPosTradeCloseResponse.go deleted file mode 100644 index e714ceac84..0000000000 --- a/model/trade/AlibabaWdkPosTradeCloseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -轻pos品牌营销关单接口 API返回值 -alibaba.wdk.pos.trade.close - -轻pos品牌营销场景,提供关单接口给外部商家 -*/ -type AlibabaWdkPosTradeCloseAPIResponse struct { - model.CommonResponse - AlibabaWdkPosTradeCloseResponse -} - -// 轻pos品牌营销关单接口 成功返回结果 -type AlibabaWdkPosTradeCloseResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_pos_trade_close_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 关单结果 - Result *FastBuyPosCloseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/AlibabaWdkPosTradeCreateAPIRequest.go b/model/trade/AlibabaWdkPosTradeCreateAPIRequest.go new file mode 100644 index 0000000000..fa83a4b884 --- /dev/null +++ b/model/trade/AlibabaWdkPosTradeCreateAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +轻pos品牌营销下单接口 API请求 +alibaba.wdk.pos.trade.create + +提供给石基进行轻pos品牌营销下单 +*/ +type AlibabaWdkPosTradeCreateAPIRequest struct { + model.Params + // 下单请求 + _createRequest *FastBuyPosCreateRequest +} + +// 初始化AlibabaWdkPosTradeCreateAPIRequest对象 +func NewAlibabaWdkPosTradeCreateRequest() *AlibabaWdkPosTradeCreateAPIRequest{ + return &AlibabaWdkPosTradeCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkPosTradeCreateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.pos.trade.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkPosTradeCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CreateRequest Setter +// 下单请求 +func (r *AlibabaWdkPosTradeCreateAPIRequest) SetCreateRequest(_createRequest *FastBuyPosCreateRequest) error { + r._createRequest = _createRequest + r.Set("create_request", _createRequest) + return nil +} + +// CreateRequest Getter +func (r AlibabaWdkPosTradeCreateAPIRequest) GetCreateRequest() *FastBuyPosCreateRequest { + return r._createRequest +} diff --git a/model/trade/AlibabaWdkPosTradeCreateAPIResponse.go b/model/trade/AlibabaWdkPosTradeCreateAPIResponse.go new file mode 100644 index 0000000000..2c49697ae7 --- /dev/null +++ b/model/trade/AlibabaWdkPosTradeCreateAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +轻pos品牌营销下单接口 API返回值 +alibaba.wdk.pos.trade.create + +提供给石基进行轻pos品牌营销下单 +*/ +type AlibabaWdkPosTradeCreateAPIResponse struct { + model.CommonResponse + AlibabaWdkPosTradeCreateAPIResponseModel +} + +// 轻pos品牌营销下单接口 成功返回结果 +type AlibabaWdkPosTradeCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_pos_trade_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创单结果 + Result *FastBuyPosCreateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/AlibabaWdkPosTradeCreateResponse.go b/model/trade/AlibabaWdkPosTradeCreateResponse.go deleted file mode 100644 index de9675eec6..0000000000 --- a/model/trade/AlibabaWdkPosTradeCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -轻pos品牌营销下单接口 API返回值 -alibaba.wdk.pos.trade.create - -提供给石基进行轻pos品牌营销下单 -*/ -type AlibabaWdkPosTradeCreateAPIResponse struct { - model.CommonResponse - AlibabaWdkPosTradeCreateResponse -} - -// 轻pos品牌营销下单接口 成功返回结果 -type AlibabaWdkPosTradeCreateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_pos_trade_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创单结果 - Result *FastBuyPosCreateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/AlibabaWdkPosTradePayAPIRequest.go b/model/trade/AlibabaWdkPosTradePayAPIRequest.go new file mode 100644 index 0000000000..bfc371ea7c --- /dev/null +++ b/model/trade/AlibabaWdkPosTradePayAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +轻pos品牌营销支付接口 API请求 +alibaba.wdk.pos.trade.pay + +轻pos场景,外部商家支付后调用开放平台把支付信息回传给五道口交易 +*/ +type AlibabaWdkPosTradePayAPIRequest struct { + model.Params + // 支付请求 + _payRequest *FastBuyPosPayRequest +} + +// 初始化AlibabaWdkPosTradePayAPIRequest对象 +func NewAlibabaWdkPosTradePayRequest() *AlibabaWdkPosTradePayAPIRequest{ + return &AlibabaWdkPosTradePayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkPosTradePayAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.pos.trade.pay" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkPosTradePayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PayRequest Setter +// 支付请求 +func (r *AlibabaWdkPosTradePayAPIRequest) SetPayRequest(_payRequest *FastBuyPosPayRequest) error { + r._payRequest = _payRequest + r.Set("pay_request", _payRequest) + return nil +} + +// PayRequest Getter +func (r AlibabaWdkPosTradePayAPIRequest) GetPayRequest() *FastBuyPosPayRequest { + return r._payRequest +} diff --git a/model/trade/AlibabaWdkPosTradePayAPIResponse.go b/model/trade/AlibabaWdkPosTradePayAPIResponse.go new file mode 100644 index 0000000000..e23ec38de6 --- /dev/null +++ b/model/trade/AlibabaWdkPosTradePayAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +轻pos品牌营销支付接口 API返回值 +alibaba.wdk.pos.trade.pay + +轻pos场景,外部商家支付后调用开放平台把支付信息回传给五道口交易 +*/ +type AlibabaWdkPosTradePayAPIResponse struct { + model.CommonResponse + AlibabaWdkPosTradePayAPIResponseModel +} + +// 轻pos品牌营销支付接口 成功返回结果 +type AlibabaWdkPosTradePayAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_pos_trade_pay_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 支付结果 + Result *FastBuyPosPayResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/AlibabaWdkPosTradePayResponse.go b/model/trade/AlibabaWdkPosTradePayResponse.go deleted file mode 100644 index 86d91ddf48..0000000000 --- a/model/trade/AlibabaWdkPosTradePayResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -轻pos品牌营销支付接口 API返回值 -alibaba.wdk.pos.trade.pay - -轻pos场景,外部商家支付后调用开放平台把支付信息回传给五道口交易 -*/ -type AlibabaWdkPosTradePayAPIResponse struct { - model.CommonResponse - AlibabaWdkPosTradePayResponse -} - -// 轻pos品牌营销支付接口 成功返回结果 -type AlibabaWdkPosTradePayResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_pos_trade_pay_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 支付结果 - Result *FastBuyPosPayResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/AlibabaWdkPosTradeQueryAPIRequest.go b/model/trade/AlibabaWdkPosTradeQueryAPIRequest.go new file mode 100644 index 0000000000..16823ea2a7 --- /dev/null +++ b/model/trade/AlibabaWdkPosTradeQueryAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +轻pos品牌营销查询接口 API请求 +alibaba.wdk.pos.trade.query + +轻pos品牌营销场景,外部商家查询营销信息 +*/ +type AlibabaWdkPosTradeQueryAPIRequest struct { + model.Params + // 查询请求 + _queryRequest *FastBuyPosQueryRequest +} + +// 初始化AlibabaWdkPosTradeQueryAPIRequest对象 +func NewAlibabaWdkPosTradeQueryRequest() *AlibabaWdkPosTradeQueryAPIRequest{ + return &AlibabaWdkPosTradeQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkPosTradeQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.pos.trade.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkPosTradeQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryRequest Setter +// 查询请求 +func (r *AlibabaWdkPosTradeQueryAPIRequest) SetQueryRequest(_queryRequest *FastBuyPosQueryRequest) error { + r._queryRequest = _queryRequest + r.Set("query_request", _queryRequest) + return nil +} + +// QueryRequest Getter +func (r AlibabaWdkPosTradeQueryAPIRequest) GetQueryRequest() *FastBuyPosQueryRequest { + return r._queryRequest +} diff --git a/model/trade/AlibabaWdkPosTradeQueryAPIResponse.go b/model/trade/AlibabaWdkPosTradeQueryAPIResponse.go new file mode 100644 index 0000000000..b4e1b8e10e --- /dev/null +++ b/model/trade/AlibabaWdkPosTradeQueryAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +轻pos品牌营销查询接口 API返回值 +alibaba.wdk.pos.trade.query + +轻pos品牌营销场景,外部商家查询营销信息 +*/ +type AlibabaWdkPosTradeQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkPosTradeQueryAPIResponseModel +} + +// 轻pos品牌营销查询接口 成功返回结果 +type AlibabaWdkPosTradeQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_pos_trade_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询返回结果 + Result *FastBuyPosQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/AlibabaWdkPosTradeQueryResponse.go b/model/trade/AlibabaWdkPosTradeQueryResponse.go deleted file mode 100644 index b195dac936..0000000000 --- a/model/trade/AlibabaWdkPosTradeQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -轻pos品牌营销查询接口 API返回值 -alibaba.wdk.pos.trade.query - -轻pos品牌营销场景,外部商家查询营销信息 -*/ -type AlibabaWdkPosTradeQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkPosTradeQueryResponse -} - -// 轻pos品牌营销查询接口 成功返回结果 -type AlibabaWdkPosTradeQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_pos_trade_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询返回结果 - Result *FastBuyPosQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/AlibabaWdkPosTradeReverseAPIRequest.go b/model/trade/AlibabaWdkPosTradeReverseAPIRequest.go new file mode 100644 index 0000000000..743ea57e31 --- /dev/null +++ b/model/trade/AlibabaWdkPosTradeReverseAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +轻pos品牌营销退款接口 API请求 +alibaba.wdk.pos.trade.reverse + +轻pos品牌营销场景,商家调用退款接口 +*/ +type AlibabaWdkPosTradeReverseAPIRequest struct { + model.Params + // 退款请求 + _reverseRequest *FastBuyPosReverseRequest +} + +// 初始化AlibabaWdkPosTradeReverseAPIRequest对象 +func NewAlibabaWdkPosTradeReverseRequest() *AlibabaWdkPosTradeReverseAPIRequest{ + return &AlibabaWdkPosTradeReverseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkPosTradeReverseAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.pos.trade.reverse" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkPosTradeReverseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReverseRequest Setter +// 退款请求 +func (r *AlibabaWdkPosTradeReverseAPIRequest) SetReverseRequest(_reverseRequest *FastBuyPosReverseRequest) error { + r._reverseRequest = _reverseRequest + r.Set("reverse_request", _reverseRequest) + return nil +} + +// ReverseRequest Getter +func (r AlibabaWdkPosTradeReverseAPIRequest) GetReverseRequest() *FastBuyPosReverseRequest { + return r._reverseRequest +} diff --git a/model/trade/AlibabaWdkPosTradeReverseAPIResponse.go b/model/trade/AlibabaWdkPosTradeReverseAPIResponse.go new file mode 100644 index 0000000000..bb0ec99228 --- /dev/null +++ b/model/trade/AlibabaWdkPosTradeReverseAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +轻pos品牌营销退款接口 API返回值 +alibaba.wdk.pos.trade.reverse + +轻pos品牌营销场景,商家调用退款接口 +*/ +type AlibabaWdkPosTradeReverseAPIResponse struct { + model.CommonResponse + AlibabaWdkPosTradeReverseAPIResponseModel +} + +// 轻pos品牌营销退款接口 成功返回结果 +type AlibabaWdkPosTradeReverseAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_pos_trade_reverse_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 退款结果 + Result *FastBuyPosReverseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/AlibabaWdkPosTradeReverseResponse.go b/model/trade/AlibabaWdkPosTradeReverseResponse.go deleted file mode 100644 index 6679df34e9..0000000000 --- a/model/trade/AlibabaWdkPosTradeReverseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -轻pos品牌营销退款接口 API返回值 -alibaba.wdk.pos.trade.reverse - -轻pos品牌营销场景,商家调用退款接口 -*/ -type AlibabaWdkPosTradeReverseAPIResponse struct { - model.CommonResponse - AlibabaWdkPosTradeReverseResponse -} - -// 轻pos品牌营销退款接口 成功返回结果 -type AlibabaWdkPosTradeReverseResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_pos_trade_reverse_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 退款结果 - Result *FastBuyPosReverseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/AlibabaWdkTradeDiscountBillGetAPIRequest.go b/model/trade/AlibabaWdkTradeDiscountBillGetAPIRequest.go new file mode 100644 index 0000000000..87d8535ee6 --- /dev/null +++ b/model/trade/AlibabaWdkTradeDiscountBillGetAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单优惠账单查询 API请求 +alibaba.wdk.trade.discount.bill.get + +商家查询订单优惠账单 +*/ +type AlibabaWdkTradeDiscountBillGetAPIRequest struct { + model.Params + // 请求参数 + _param0 *OrderDiscountBillQueryRequest +} + +// 初始化AlibabaWdkTradeDiscountBillGetAPIRequest对象 +func NewAlibabaWdkTradeDiscountBillGetRequest() *AlibabaWdkTradeDiscountBillGetAPIRequest{ + return &AlibabaWdkTradeDiscountBillGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkTradeDiscountBillGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.trade.discount.bill.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkTradeDiscountBillGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 请求参数 +func (r *AlibabaWdkTradeDiscountBillGetAPIRequest) SetParam0(_param0 *OrderDiscountBillQueryRequest) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkTradeDiscountBillGetAPIRequest) GetParam0() *OrderDiscountBillQueryRequest { + return r._param0 +} diff --git a/model/trade/AlibabaWdkTradeDiscountBillGetAPIResponse.go b/model/trade/AlibabaWdkTradeDiscountBillGetAPIResponse.go new file mode 100644 index 0000000000..221504d0ec --- /dev/null +++ b/model/trade/AlibabaWdkTradeDiscountBillGetAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单优惠账单查询 API返回值 +alibaba.wdk.trade.discount.bill.get + +商家查询订单优惠账单 +*/ +type AlibabaWdkTradeDiscountBillGetAPIResponse struct { + model.CommonResponse + AlibabaWdkTradeDiscountBillGetAPIResponseModel +} + +// 订单优惠账单查询 成功返回结果 +type AlibabaWdkTradeDiscountBillGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_trade_discount_bill_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *OrderDiscountBillQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/AlibabaWdkTradeDiscountBillGetResponse.go b/model/trade/AlibabaWdkTradeDiscountBillGetResponse.go deleted file mode 100644 index c0e8b93382..0000000000 --- a/model/trade/AlibabaWdkTradeDiscountBillGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单优惠账单查询 API返回值 -alibaba.wdk.trade.discount.bill.get - -商家查询订单优惠账单 -*/ -type AlibabaWdkTradeDiscountBillGetAPIResponse struct { - model.CommonResponse - AlibabaWdkTradeDiscountBillGetResponse -} - -// 订单优惠账单查询 成功返回结果 -type AlibabaWdkTradeDiscountBillGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_trade_discount_bill_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *OrderDiscountBillQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/AlibabaWdkTradeOrderCancelAPIRequest.go b/model/trade/AlibabaWdkTradeOrderCancelAPIRequest.go new file mode 100644 index 0000000000..d2edb7b129 --- /dev/null +++ b/model/trade/AlibabaWdkTradeOrderCancelAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +外部交易订单取消接口 API请求 +alibaba.wdk.trade.order.cancel + +通过该接口可以再盒马取消交易订单,并处理相关业务流程。主要用于和外部商户的订单进行同步和融合业务流程处理 +*/ +type AlibabaWdkTradeOrderCancelAPIRequest struct { + model.Params + // 待取消的订单 + _trade *TradeOrder +} + +// 初始化AlibabaWdkTradeOrderCancelAPIRequest对象 +func NewAlibabaWdkTradeOrderCancelRequest() *AlibabaWdkTradeOrderCancelAPIRequest{ + return &AlibabaWdkTradeOrderCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkTradeOrderCancelAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.trade.order.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkTradeOrderCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Trade Setter +// 待取消的订单 +func (r *AlibabaWdkTradeOrderCancelAPIRequest) SetTrade(_trade *TradeOrder) error { + r._trade = _trade + r.Set("trade", _trade) + return nil +} + +// Trade Getter +func (r AlibabaWdkTradeOrderCancelAPIRequest) GetTrade() *TradeOrder { + return r._trade +} diff --git a/model/trade/AlibabaWdkTradeOrderCancelAPIResponse.go b/model/trade/AlibabaWdkTradeOrderCancelAPIResponse.go new file mode 100644 index 0000000000..dd3a603a74 --- /dev/null +++ b/model/trade/AlibabaWdkTradeOrderCancelAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +外部交易订单取消接口 API返回值 +alibaba.wdk.trade.order.cancel + +通过该接口可以再盒马取消交易订单,并处理相关业务流程。主要用于和外部商户的订单进行同步和融合业务流程处理 +*/ +type AlibabaWdkTradeOrderCancelAPIResponse struct { + model.CommonResponse + AlibabaWdkTradeOrderCancelAPIResponseModel +} + +// 外部交易订单取消接口 成功返回结果 +type AlibabaWdkTradeOrderCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_trade_order_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 执行结果 + Result *OrderResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/AlibabaWdkTradeOrderCancelResponse.go b/model/trade/AlibabaWdkTradeOrderCancelResponse.go deleted file mode 100644 index 23b35f3f04..0000000000 --- a/model/trade/AlibabaWdkTradeOrderCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -外部交易订单取消接口 API返回值 -alibaba.wdk.trade.order.cancel - -通过该接口可以再盒马取消交易订单,并处理相关业务流程。主要用于和外部商户的订单进行同步和融合业务流程处理 -*/ -type AlibabaWdkTradeOrderCancelAPIResponse struct { - model.CommonResponse - AlibabaWdkTradeOrderCancelResponse -} - -// 外部交易订单取消接口 成功返回结果 -type AlibabaWdkTradeOrderCancelResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_trade_order_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 执行结果 - Result *OrderResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/AlibabaWdkTradeOrderCreateAPIRequest.go b/model/trade/AlibabaWdkTradeOrderCreateAPIRequest.go new file mode 100644 index 0000000000..33e345d73c --- /dev/null +++ b/model/trade/AlibabaWdkTradeOrderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +外部交易订单创单接口 API请求 +alibaba.wdk.trade.order.create + +通过该接口可以再盒马创建交易订单,并处理相关业务流程。主要用于和外部商户的订单进行同步和融合业务流程处理 +*/ +type AlibabaWdkTradeOrderCreateAPIRequest struct { + model.Params + // 待创建的订单 + _trade *TradeOrder +} + +// 初始化AlibabaWdkTradeOrderCreateAPIRequest对象 +func NewAlibabaWdkTradeOrderCreateRequest() *AlibabaWdkTradeOrderCreateAPIRequest{ + return &AlibabaWdkTradeOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkTradeOrderCreateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.trade.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkTradeOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Trade Setter +// 待创建的订单 +func (r *AlibabaWdkTradeOrderCreateAPIRequest) SetTrade(_trade *TradeOrder) error { + r._trade = _trade + r.Set("trade", _trade) + return nil +} + +// Trade Getter +func (r AlibabaWdkTradeOrderCreateAPIRequest) GetTrade() *TradeOrder { + return r._trade +} diff --git a/model/trade/AlibabaWdkTradeOrderCreateAPIResponse.go b/model/trade/AlibabaWdkTradeOrderCreateAPIResponse.go new file mode 100644 index 0000000000..ca0a35ff0a --- /dev/null +++ b/model/trade/AlibabaWdkTradeOrderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +外部交易订单创单接口 API返回值 +alibaba.wdk.trade.order.create + +通过该接口可以再盒马创建交易订单,并处理相关业务流程。主要用于和外部商户的订单进行同步和融合业务流程处理 +*/ +type AlibabaWdkTradeOrderCreateAPIResponse struct { + model.CommonResponse + AlibabaWdkTradeOrderCreateAPIResponseModel +} + +// 外部交易订单创单接口 成功返回结果 +type AlibabaWdkTradeOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_trade_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 执行结果 + Result *OrderResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/AlibabaWdkTradeOrderCreateResponse.go b/model/trade/AlibabaWdkTradeOrderCreateResponse.go deleted file mode 100644 index 8c7b4593c1..0000000000 --- a/model/trade/AlibabaWdkTradeOrderCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -外部交易订单创单接口 API返回值 -alibaba.wdk.trade.order.create - -通过该接口可以再盒马创建交易订单,并处理相关业务流程。主要用于和外部商户的订单进行同步和融合业务流程处理 -*/ -type AlibabaWdkTradeOrderCreateAPIResponse struct { - model.CommonResponse - AlibabaWdkTradeOrderCreateResponse -} - -// 外部交易订单创单接口 成功返回结果 -type AlibabaWdkTradeOrderCreateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_trade_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 执行结果 - Result *OrderResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/AlibabaWdkTradeOrderQueryAPIRequest.go b/model/trade/AlibabaWdkTradeOrderQueryAPIRequest.go new file mode 100644 index 0000000000..26e6047773 --- /dev/null +++ b/model/trade/AlibabaWdkTradeOrderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询外部交易订单接口 API请求 +alibaba.wdk.trade.order.query + +通过该接口可以在盒马查询交易订单,并处理相关业务流程。主要用于和外部商户的订单进行同步和融合业务流程处理 +*/ +type AlibabaWdkTradeOrderQueryAPIRequest struct { + model.Params + // 订单查询 + _query *TradeOrderQuery +} + +// 初始化AlibabaWdkTradeOrderQueryAPIRequest对象 +func NewAlibabaWdkTradeOrderQueryRequest() *AlibabaWdkTradeOrderQueryAPIRequest{ + return &AlibabaWdkTradeOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkTradeOrderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.trade.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkTradeOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 订单查询 +func (r *AlibabaWdkTradeOrderQueryAPIRequest) SetQuery(_query *TradeOrderQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaWdkTradeOrderQueryAPIRequest) GetQuery() *TradeOrderQuery { + return r._query +} diff --git a/model/trade/AlibabaWdkTradeOrderQueryAPIResponse.go b/model/trade/AlibabaWdkTradeOrderQueryAPIResponse.go new file mode 100644 index 0000000000..f6dac8dc00 --- /dev/null +++ b/model/trade/AlibabaWdkTradeOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询外部交易订单接口 API返回值 +alibaba.wdk.trade.order.query + +通过该接口可以在盒马查询交易订单,并处理相关业务流程。主要用于和外部商户的订单进行同步和融合业务流程处理 +*/ +type AlibabaWdkTradeOrderQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkTradeOrderQueryAPIResponseModel +} + +// 查询外部交易订单接口 成功返回结果 +type AlibabaWdkTradeOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_trade_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果 + Result *TradeOrderQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/AlibabaWdkTradeOrderQueryResponse.go b/model/trade/AlibabaWdkTradeOrderQueryResponse.go deleted file mode 100644 index 1a4849d26f..0000000000 --- a/model/trade/AlibabaWdkTradeOrderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询外部交易订单接口 API返回值 -alibaba.wdk.trade.order.query - -通过该接口可以在盒马查询交易订单,并处理相关业务流程。主要用于和外部商户的订单进行同步和融合业务流程处理 -*/ -type AlibabaWdkTradeOrderQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkTradeOrderQueryResponse -} - -// 查询外部交易订单接口 成功返回结果 -type AlibabaWdkTradeOrderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_trade_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果 - Result *TradeOrderQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/AlibabaWdkTradeRefundCreateAPIRequest.go b/model/trade/AlibabaWdkTradeRefundCreateAPIRequest.go new file mode 100644 index 0000000000..43b5f0aee5 --- /dev/null +++ b/model/trade/AlibabaWdkTradeRefundCreateAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +外部渠道逆向订单创建 API请求 +alibaba.wdk.trade.refund.create + +该接口是创建退货订单的服务。当外部渠道发起退款后,调用此接口可以完成五道口底层交易、履约、配送等一系列流程进行退货。 +*/ +type AlibabaWdkTradeRefundCreateAPIRequest struct { + model.Params + // 退货请求 + _refundGoodsCreateRequest *RefundGoodsCreateRequest +} + +// 初始化AlibabaWdkTradeRefundCreateAPIRequest对象 +func NewAlibabaWdkTradeRefundCreateRequest() *AlibabaWdkTradeRefundCreateAPIRequest{ + return &AlibabaWdkTradeRefundCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkTradeRefundCreateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.trade.refund.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkTradeRefundCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundGoodsCreateRequest Setter +// 退货请求 +func (r *AlibabaWdkTradeRefundCreateAPIRequest) SetRefundGoodsCreateRequest(_refundGoodsCreateRequest *RefundGoodsCreateRequest) error { + r._refundGoodsCreateRequest = _refundGoodsCreateRequest + r.Set("refund_goods_create_request", _refundGoodsCreateRequest) + return nil +} + +// RefundGoodsCreateRequest Getter +func (r AlibabaWdkTradeRefundCreateAPIRequest) GetRefundGoodsCreateRequest() *RefundGoodsCreateRequest { + return r._refundGoodsCreateRequest +} diff --git a/model/trade/AlibabaWdkTradeRefundCreateAPIResponse.go b/model/trade/AlibabaWdkTradeRefundCreateAPIResponse.go new file mode 100644 index 0000000000..cb6c857c3e --- /dev/null +++ b/model/trade/AlibabaWdkTradeRefundCreateAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +外部渠道逆向订单创建 API返回值 +alibaba.wdk.trade.refund.create + +该接口是创建退货订单的服务。当外部渠道发起退款后,调用此接口可以完成五道口底层交易、履约、配送等一系列流程进行退货。 +*/ +type AlibabaWdkTradeRefundCreateAPIResponse struct { + model.CommonResponse + AlibabaWdkTradeRefundCreateAPIResponseModel +} + +// 外部渠道逆向订单创建 成功返回结果 +type AlibabaWdkTradeRefundCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_trade_refund_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *RefundGoodsCreateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/AlibabaWdkTradeRefundCreateResponse.go b/model/trade/AlibabaWdkTradeRefundCreateResponse.go deleted file mode 100644 index 5b288554da..0000000000 --- a/model/trade/AlibabaWdkTradeRefundCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -外部渠道逆向订单创建 API返回值 -alibaba.wdk.trade.refund.create - -该接口是创建退货订单的服务。当外部渠道发起退款后,调用此接口可以完成五道口底层交易、履约、配送等一系列流程进行退货。 -*/ -type AlibabaWdkTradeRefundCreateAPIResponse struct { - model.CommonResponse - AlibabaWdkTradeRefundCreateResponse -} - -// 外部渠道逆向订单创建 成功返回结果 -type AlibabaWdkTradeRefundCreateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_trade_refund_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *RefundGoodsCreateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/AlibabaWdkTradeRefundInformAPIRequest.go b/model/trade/AlibabaWdkTradeRefundInformAPIRequest.go new file mode 100644 index 0000000000..1d1b075324 --- /dev/null +++ b/model/trade/AlibabaWdkTradeRefundInformAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +外部渠道通知淘鲜达退款成功接口 API请求 +alibaba.wdk.trade.refund.inform + +该接口用于外部渠道退款成功后,通知淘鲜达底层履约完成退款流程。 +*/ +type AlibabaWdkTradeRefundInformAPIRequest struct { + model.Params + // 通知退款成功请求 + _informRefundSuccessRequest *InformRefundSuccessRequest +} + +// 初始化AlibabaWdkTradeRefundInformAPIRequest对象 +func NewAlibabaWdkTradeRefundInformRequest() *AlibabaWdkTradeRefundInformAPIRequest{ + return &AlibabaWdkTradeRefundInformAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkTradeRefundInformAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.trade.refund.inform" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkTradeRefundInformAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InformRefundSuccessRequest Setter +// 通知退款成功请求 +func (r *AlibabaWdkTradeRefundInformAPIRequest) SetInformRefundSuccessRequest(_informRefundSuccessRequest *InformRefundSuccessRequest) error { + r._informRefundSuccessRequest = _informRefundSuccessRequest + r.Set("inform_refund_success_request", _informRefundSuccessRequest) + return nil +} + +// InformRefundSuccessRequest Getter +func (r AlibabaWdkTradeRefundInformAPIRequest) GetInformRefundSuccessRequest() *InformRefundSuccessRequest { + return r._informRefundSuccessRequest +} diff --git a/model/trade/AlibabaWdkTradeRefundInformAPIResponse.go b/model/trade/AlibabaWdkTradeRefundInformAPIResponse.go new file mode 100644 index 0000000000..88ef6880c0 --- /dev/null +++ b/model/trade/AlibabaWdkTradeRefundInformAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +外部渠道通知淘鲜达退款成功接口 API返回值 +alibaba.wdk.trade.refund.inform + +该接口用于外部渠道退款成功后,通知淘鲜达底层履约完成退款流程。 +*/ +type AlibabaWdkTradeRefundInformAPIResponse struct { + model.CommonResponse + AlibabaWdkTradeRefundInformAPIResponseModel +} + +// 外部渠道通知淘鲜达退款成功接口 成功返回结果 +type AlibabaWdkTradeRefundInformAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_trade_refund_inform_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *InformRefundSuccessResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/AlibabaWdkTradeRefundInformResponse.go b/model/trade/AlibabaWdkTradeRefundInformResponse.go deleted file mode 100644 index 9e302d9dd9..0000000000 --- a/model/trade/AlibabaWdkTradeRefundInformResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -外部渠道通知淘鲜达退款成功接口 API返回值 -alibaba.wdk.trade.refund.inform - -该接口用于外部渠道退款成功后,通知淘鲜达底层履约完成退款流程。 -*/ -type AlibabaWdkTradeRefundInformAPIResponse struct { - model.CommonResponse - AlibabaWdkTradeRefundInformResponse -} - -// 外部渠道通知淘鲜达退款成功接口 成功返回结果 -type AlibabaWdkTradeRefundInformResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_trade_refund_inform_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *InformRefundSuccessResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/AlibabaWdkTradeRefundQueryAPIRequest.go b/model/trade/AlibabaWdkTradeRefundQueryAPIRequest.go new file mode 100644 index 0000000000..11364f7a29 --- /dev/null +++ b/model/trade/AlibabaWdkTradeRefundQueryAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +外部渠道查询退货订单详情接口 API请求 +alibaba.wdk.trade.refund.query + +该接口提供给外部渠道商家,比如欧尚外卖等查询退货订单详情,里面包含退货进度等信息。 +*/ +type AlibabaWdkTradeRefundQueryAPIRequest struct { + model.Params + // 查询请求 + _refundGoodsQueryRequest *RefundGoodsQueryRequest +} + +// 初始化AlibabaWdkTradeRefundQueryAPIRequest对象 +func NewAlibabaWdkTradeRefundQueryRequest() *AlibabaWdkTradeRefundQueryAPIRequest{ + return &AlibabaWdkTradeRefundQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkTradeRefundQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.trade.refund.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkTradeRefundQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundGoodsQueryRequest Setter +// 查询请求 +func (r *AlibabaWdkTradeRefundQueryAPIRequest) SetRefundGoodsQueryRequest(_refundGoodsQueryRequest *RefundGoodsQueryRequest) error { + r._refundGoodsQueryRequest = _refundGoodsQueryRequest + r.Set("refund_goods_query_request", _refundGoodsQueryRequest) + return nil +} + +// RefundGoodsQueryRequest Getter +func (r AlibabaWdkTradeRefundQueryAPIRequest) GetRefundGoodsQueryRequest() *RefundGoodsQueryRequest { + return r._refundGoodsQueryRequest +} diff --git a/model/trade/AlibabaWdkTradeRefundQueryAPIResponse.go b/model/trade/AlibabaWdkTradeRefundQueryAPIResponse.go new file mode 100644 index 0000000000..8bb3d761fb --- /dev/null +++ b/model/trade/AlibabaWdkTradeRefundQueryAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +外部渠道查询退货订单详情接口 API返回值 +alibaba.wdk.trade.refund.query + +该接口提供给外部渠道商家,比如欧尚外卖等查询退货订单详情,里面包含退货进度等信息。 +*/ +type AlibabaWdkTradeRefundQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkTradeRefundQueryAPIResponseModel +} + +// 外部渠道查询退货订单详情接口 成功返回结果 +type AlibabaWdkTradeRefundQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_trade_refund_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果 + RefundGoodsQueryResult *RefundGoodsQueryResult `json:"refund_goods_query_result,omitempty" xml:"refund_goods_query_result,omitempty"` +} diff --git a/model/trade/AlibabaWdkTradeRefundQueryResponse.go b/model/trade/AlibabaWdkTradeRefundQueryResponse.go deleted file mode 100644 index ed85aa6fc1..0000000000 --- a/model/trade/AlibabaWdkTradeRefundQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -外部渠道查询退货订单详情接口 API返回值 -alibaba.wdk.trade.refund.query - -该接口提供给外部渠道商家,比如欧尚外卖等查询退货订单详情,里面包含退货进度等信息。 -*/ -type AlibabaWdkTradeRefundQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkTradeRefundQueryResponse -} - -// 外部渠道查询退货订单详情接口 成功返回结果 -type AlibabaWdkTradeRefundQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_trade_refund_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果 - RefundGoodsQueryResult *RefundGoodsQueryResult `json:"refund_goods_query_result,omitempty" xml:"refund_goods_query_result,omitempty"` -} diff --git a/model/trade/AlibabaWdkTxdCrmStatementBackflowAPIRequest.go b/model/trade/AlibabaWdkTxdCrmStatementBackflowAPIRequest.go new file mode 100644 index 0000000000..77510cf20f --- /dev/null +++ b/model/trade/AlibabaWdkTxdCrmStatementBackflowAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘鲜达商家会员账单回流 API请求 +alibaba.wdk.txd.crm.statement.backflow + +淘鲜达商家会员账单回流 +*/ +type AlibabaWdkTxdCrmStatementBackflowAPIRequest struct { + model.Params + // 参数 + _paramStatementBO *StatementBo +} + +// 初始化AlibabaWdkTxdCrmStatementBackflowAPIRequest对象 +func NewAlibabaWdkTxdCrmStatementBackflowRequest() *AlibabaWdkTxdCrmStatementBackflowAPIRequest{ + return &AlibabaWdkTxdCrmStatementBackflowAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkTxdCrmStatementBackflowAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.txd.crm.statement.backflow" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkTxdCrmStatementBackflowAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamStatementBO Setter +// 参数 +func (r *AlibabaWdkTxdCrmStatementBackflowAPIRequest) SetParamStatementBO(_paramStatementBO *StatementBo) error { + r._paramStatementBO = _paramStatementBO + r.Set("param_statement_b_o", _paramStatementBO) + return nil +} + +// ParamStatementBO Getter +func (r AlibabaWdkTxdCrmStatementBackflowAPIRequest) GetParamStatementBO() *StatementBo { + return r._paramStatementBO +} diff --git a/model/trade/AlibabaWdkTxdCrmStatementBackflowAPIResponse.go b/model/trade/AlibabaWdkTxdCrmStatementBackflowAPIResponse.go new file mode 100644 index 0000000000..bf52e88af9 --- /dev/null +++ b/model/trade/AlibabaWdkTxdCrmStatementBackflowAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘鲜达商家会员账单回流 API返回值 +alibaba.wdk.txd.crm.statement.backflow + +淘鲜达商家会员账单回流 +*/ +type AlibabaWdkTxdCrmStatementBackflowAPIResponse struct { + model.CommonResponse + AlibabaWdkTxdCrmStatementBackflowAPIResponseModel +} + +// 淘鲜达商家会员账单回流 成功返回结果 +type AlibabaWdkTxdCrmStatementBackflowAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_txd_crm_statement_backflow_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *AlibabaWdkTxdCrmStatementBackflowApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/AlibabaWdkTxdCrmStatementBackflowResponse.go b/model/trade/AlibabaWdkTxdCrmStatementBackflowResponse.go deleted file mode 100644 index 861b16f046..0000000000 --- a/model/trade/AlibabaWdkTxdCrmStatementBackflowResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘鲜达商家会员账单回流 API返回值 -alibaba.wdk.txd.crm.statement.backflow - -淘鲜达商家会员账单回流 -*/ -type AlibabaWdkTxdCrmStatementBackflowAPIResponse struct { - model.CommonResponse - AlibabaWdkTxdCrmStatementBackflowResponse -} - -// 淘鲜达商家会员账单回流 成功返回结果 -type AlibabaWdkTxdCrmStatementBackflowResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_txd_crm_statement_backflow_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *AlibabaWdkTxdCrmStatementBackflowApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/AliexpressPaymentExchangeGetAPIRequest.go b/model/trade/AliexpressPaymentExchangeGetAPIRequest.go new file mode 100644 index 0000000000..3419505060 --- /dev/null +++ b/model/trade/AliexpressPaymentExchangeGetAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +getExchange API请求 +aliexpress.payment.exchange.get + +提供国际汇率服务 +*/ +type AliexpressPaymentExchangeGetAPIRequest struct { + model.Params + // 系统自动生成 + _checkoutExchangeRequest *CheckoutExchangeRequest +} + +// 初始化AliexpressPaymentExchangeGetAPIRequest对象 +func NewAliexpressPaymentExchangeGetRequest() *AliexpressPaymentExchangeGetAPIRequest{ + return &AliexpressPaymentExchangeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressPaymentExchangeGetAPIRequest) GetApiMethodName() string { + return "aliexpress.payment.exchange.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressPaymentExchangeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CheckoutExchangeRequest Setter +// 系统自动生成 +func (r *AliexpressPaymentExchangeGetAPIRequest) SetCheckoutExchangeRequest(_checkoutExchangeRequest *CheckoutExchangeRequest) error { + r._checkoutExchangeRequest = _checkoutExchangeRequest + r.Set("checkout_exchange_request", _checkoutExchangeRequest) + return nil +} + +// CheckoutExchangeRequest Getter +func (r AliexpressPaymentExchangeGetAPIRequest) GetCheckoutExchangeRequest() *CheckoutExchangeRequest { + return r._checkoutExchangeRequest +} diff --git a/model/trade/AliexpressPaymentExchangeGetAPIResponse.go b/model/trade/AliexpressPaymentExchangeGetAPIResponse.go new file mode 100644 index 0000000000..8777f66023 --- /dev/null +++ b/model/trade/AliexpressPaymentExchangeGetAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +getExchange API返回值 +aliexpress.payment.exchange.get + +提供国际汇率服务 +*/ +type AliexpressPaymentExchangeGetAPIResponse struct { + model.CommonResponse + AliexpressPaymentExchangeGetAPIResponseModel +} + +// getExchange 成功返回结果 +type AliexpressPaymentExchangeGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_payment_exchange_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AliexpressPaymentExchangeGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/AliexpressPaymentExchangeGetResponse.go b/model/trade/AliexpressPaymentExchangeGetResponse.go deleted file mode 100644 index 039d18fd3e..0000000000 --- a/model/trade/AliexpressPaymentExchangeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -getExchange API返回值 -aliexpress.payment.exchange.get - -提供国际汇率服务 -*/ -type AliexpressPaymentExchangeGetAPIResponse struct { - model.CommonResponse - AliexpressPaymentExchangeGetResponse -} - -// getExchange 成功返回结果 -type AliexpressPaymentExchangeGetResponse struct { - XMLName xml.Name `xml:"aliexpress_payment_exchange_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AliexpressPaymentExchangeGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/AlitripRailTradeRefundAPIRequest.go b/model/trade/AlitripRailTradeRefundAPIRequest.go new file mode 100644 index 0000000000..04b4a30038 --- /dev/null +++ b/model/trade/AlitripRailTradeRefundAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +退票接口 API请求 +alitrip.rail.trade.refund + +退票接口 +*/ +type AlitripRailTradeRefundAPIRequest struct { + model.Params + // 入参 + _refundParam *RefundReq +} + +// 初始化AlitripRailTradeRefundAPIRequest对象 +func NewAlitripRailTradeRefundRequest() *AlitripRailTradeRefundAPIRequest{ + return &AlitripRailTradeRefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripRailTradeRefundAPIRequest) GetApiMethodName() string { + return "alitrip.rail.trade.refund" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripRailTradeRefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundParam Setter +// 入参 +func (r *AlitripRailTradeRefundAPIRequest) SetRefundParam(_refundParam *RefundReq) error { + r._refundParam = _refundParam + r.Set("refund_param", _refundParam) + return nil +} + +// RefundParam Getter +func (r AlitripRailTradeRefundAPIRequest) GetRefundParam() *RefundReq { + return r._refundParam +} diff --git a/model/trade/AlitripRailTradeRefundAPIResponse.go b/model/trade/AlitripRailTradeRefundAPIResponse.go new file mode 100644 index 0000000000..18357185a3 --- /dev/null +++ b/model/trade/AlitripRailTradeRefundAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +退票接口 API返回值 +alitrip.rail.trade.refund + +退票接口 +*/ +type AlitripRailTradeRefundAPIResponse struct { + model.CommonResponse + AlitripRailTradeRefundAPIResponseModel +} + +// 退票接口 成功返回结果 +type AlitripRailTradeRefundAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_rail_trade_refund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回对象 + Result *AlitripRailTradeRefundResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/AlitripRailTradeRefundResponse.go b/model/trade/AlitripRailTradeRefundResponse.go deleted file mode 100644 index f95f8e2cb8..0000000000 --- a/model/trade/AlitripRailTradeRefundResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -退票接口 API返回值 -alitrip.rail.trade.refund - -退票接口 -*/ -type AlitripRailTradeRefundAPIResponse struct { - model.CommonResponse - AlitripRailTradeRefundResponse -} - -// 退票接口 成功返回结果 -type AlitripRailTradeRefundResponse struct { - XMLName xml.Name `xml:"alitrip_rail_trade_refund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回对象 - Result *AlitripRailTradeRefundResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/CainiaoCntecSupplierOrderServiceAPIRequest.go b/model/trade/CainiaoCntecSupplierOrderServiceAPIRequest.go new file mode 100644 index 0000000000..907532e66e --- /dev/null +++ b/model/trade/CainiaoCntecSupplierOrderServiceAPIRequest.go @@ -0,0 +1,53 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供货商查询订单数据接口 API请求 +cainiao.cntec.supplier.order.service + +提供给供货商查询订单信息的接口,返回给供货商的订单数据已经是脱敏精简后的,比如订单ID用户ID已经用md5加密,用户昵称已经脱敏,商品信息本身是供货商提供的。 +数据查询的范围只和供货商的身份有关系,比如大润发的用户只能查询大润发的订单,而且会校验身份和颁发的appkey之间的关系,并且目前对接的只有一个供货商 +*/ +type CainiaoCntecSupplierOrderServiceAPIRequest struct { + model.Params + // 系统自动生成 + _queryConditioin *SupplierOrderQueryDto +} + +// 初始化CainiaoCntecSupplierOrderServiceAPIRequest对象 +func NewCainiaoCntecSupplierOrderServiceRequest() *CainiaoCntecSupplierOrderServiceAPIRequest{ + return &CainiaoCntecSupplierOrderServiceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCntecSupplierOrderServiceAPIRequest) GetApiMethodName() string { + return "cainiao.cntec.supplier.order.service" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCntecSupplierOrderServiceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryConditioin Setter +// 系统自动生成 +func (r *CainiaoCntecSupplierOrderServiceAPIRequest) SetQueryConditioin(_queryConditioin *SupplierOrderQueryDto) error { + r._queryConditioin = _queryConditioin + r.Set("query_conditioin", _queryConditioin) + return nil +} + +// QueryConditioin Getter +func (r CainiaoCntecSupplierOrderServiceAPIRequest) GetQueryConditioin() *SupplierOrderQueryDto { + return r._queryConditioin +} diff --git a/model/trade/CainiaoCntecSupplierOrderServiceAPIResponse.go b/model/trade/CainiaoCntecSupplierOrderServiceAPIResponse.go new file mode 100644 index 0000000000..66f904bc08 --- /dev/null +++ b/model/trade/CainiaoCntecSupplierOrderServiceAPIResponse.go @@ -0,0 +1,28 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供货商查询订单数据接口 API返回值 +cainiao.cntec.supplier.order.service + +提供给供货商查询订单信息的接口,返回给供货商的订单数据已经是脱敏精简后的,比如订单ID用户ID已经用md5加密,用户昵称已经脱敏,商品信息本身是供货商提供的。 +数据查询的范围只和供货商的身份有关系,比如大润发的用户只能查询大润发的订单,而且会校验身份和颁发的appkey之间的关系,并且目前对接的只有一个供货商 +*/ +type CainiaoCntecSupplierOrderServiceAPIResponse struct { + model.CommonResponse + CainiaoCntecSupplierOrderServiceAPIResponseModel +} + +// 供货商查询订单数据接口 成功返回结果 +type CainiaoCntecSupplierOrderServiceAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cntec_supplier_order_service_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *CainiaoCntecSupplierOrderServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/CainiaoCntecSupplierOrderServiceResponse.go b/model/trade/CainiaoCntecSupplierOrderServiceResponse.go deleted file mode 100644 index b27799c437..0000000000 --- a/model/trade/CainiaoCntecSupplierOrderServiceResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供货商查询订单数据接口 API返回值 -cainiao.cntec.supplier.order.service - -提供给供货商查询订单信息的接口,返回给供货商的订单数据已经是脱敏精简后的,比如订单ID用户ID已经用md5加密,用户昵称已经脱敏,商品信息本身是供货商提供的。 -数据查询的范围只和供货商的身份有关系,比如大润发的用户只能查询大润发的订单,而且会校验身份和颁发的appkey之间的关系,并且目前对接的只有一个供货商 -*/ -type CainiaoCntecSupplierOrderServiceAPIResponse struct { - model.CommonResponse - CainiaoCntecSupplierOrderServiceResponse -} - -// 供货商查询订单数据接口 成功返回结果 -type CainiaoCntecSupplierOrderServiceResponse struct { - XMLName xml.Name `xml:"cainiao_cntec_supplier_order_service_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *CainiaoCntecSupplierOrderServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/CainiaoRefundRefundactionsDisplayAPIRequest.go b/model/trade/CainiaoRefundRefundactionsDisplayAPIRequest.go new file mode 100644 index 0000000000..2386f4754b --- /dev/null +++ b/model/trade/CainiaoRefundRefundactionsDisplayAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +退货退款操作的展示信息(展现给买家) API请求 +cainiao.refund.refundactions.display + +退货退款操作的展示信息(展现给买家) +*/ +type CainiaoRefundRefundactionsDisplayAPIRequest struct { + model.Params + // 请求入参 + _param0 *OrderRefundOperationReq +} + +// 初始化CainiaoRefundRefundactionsDisplayAPIRequest对象 +func NewCainiaoRefundRefundactionsDisplayRequest() *CainiaoRefundRefundactionsDisplayAPIRequest{ + return &CainiaoRefundRefundactionsDisplayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoRefundRefundactionsDisplayAPIRequest) GetApiMethodName() string { + return "cainiao.refund.refundactions.display" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoRefundRefundactionsDisplayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 请求入参 +func (r *CainiaoRefundRefundactionsDisplayAPIRequest) SetParam0(_param0 *OrderRefundOperationReq) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r CainiaoRefundRefundactionsDisplayAPIRequest) GetParam0() *OrderRefundOperationReq { + return r._param0 +} diff --git a/model/trade/CainiaoRefundRefundactionsDisplayAPIResponse.go b/model/trade/CainiaoRefundRefundactionsDisplayAPIResponse.go new file mode 100644 index 0000000000..f4efd6d335 --- /dev/null +++ b/model/trade/CainiaoRefundRefundactionsDisplayAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +退货退款操作的展示信息(展现给买家) API返回值 +cainiao.refund.refundactions.display + +退货退款操作的展示信息(展现给买家) +*/ +type CainiaoRefundRefundactionsDisplayAPIResponse struct { + model.CommonResponse + CainiaoRefundRefundactionsDisplayAPIResponseModel +} + +// 退货退款操作的展示信息(展现给买家) 成功返回结果 +type CainiaoRefundRefundactionsDisplayAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_refund_refundactions_display_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Result *CainiaoRefundRefundactionsDisplayBizResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/CainiaoRefundRefundactionsDisplayResponse.go b/model/trade/CainiaoRefundRefundactionsDisplayResponse.go deleted file mode 100644 index fc2605769d..0000000000 --- a/model/trade/CainiaoRefundRefundactionsDisplayResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -退货退款操作的展示信息(展现给买家) API返回值 -cainiao.refund.refundactions.display - -退货退款操作的展示信息(展现给买家) -*/ -type CainiaoRefundRefundactionsDisplayAPIResponse struct { - model.CommonResponse - CainiaoRefundRefundactionsDisplayResponse -} - -// 退货退款操作的展示信息(展现给买家) 成功返回结果 -type CainiaoRefundRefundactionsDisplayResponse struct { - XMLName xml.Name `xml:"cainiao_refund_refundactions_display_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Result *CainiaoRefundRefundactionsDisplayBizResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/CainiaoRefundRefundactionsGetAPIRequest.go b/model/trade/CainiaoRefundRefundactionsGetAPIRequest.go new file mode 100644 index 0000000000..137199179d --- /dev/null +++ b/model/trade/CainiaoRefundRefundactionsGetAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +判断该订单能执行的逆向操作集合列表 API请求 +cainiao.refund.refundactions.get + +判断该订单能执行的逆向操作集合列表 +*/ +type CainiaoRefundRefundactionsGetAPIRequest struct { + model.Params + // 子订单ID + _orderId string +} + +// 初始化CainiaoRefundRefundactionsGetAPIRequest对象 +func NewCainiaoRefundRefundactionsGetRequest() *CainiaoRefundRefundactionsGetAPIRequest{ + return &CainiaoRefundRefundactionsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoRefundRefundactionsGetAPIRequest) GetApiMethodName() string { + return "cainiao.refund.refundactions.get" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoRefundRefundactionsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 子订单ID +func (r *CainiaoRefundRefundactionsGetAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r CainiaoRefundRefundactionsGetAPIRequest) GetOrderId() string { + return r._orderId +} diff --git a/model/trade/CainiaoRefundRefundactionsGetAPIResponse.go b/model/trade/CainiaoRefundRefundactionsGetAPIResponse.go new file mode 100644 index 0000000000..3fdac37677 --- /dev/null +++ b/model/trade/CainiaoRefundRefundactionsGetAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +判断该订单能执行的逆向操作集合列表 API返回值 +cainiao.refund.refundactions.get + +判断该订单能执行的逆向操作集合列表 +*/ +type CainiaoRefundRefundactionsGetAPIResponse struct { + model.CommonResponse + CainiaoRefundRefundactionsGetAPIResponseModel +} + +// 判断该订单能执行的逆向操作集合列表 成功返回结果 +type CainiaoRefundRefundactionsGetAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_refund_refundactions_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Result *CainiaoRefundRefundactionsGetBizResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/CainiaoRefundRefundactionsGetResponse.go b/model/trade/CainiaoRefundRefundactionsGetResponse.go deleted file mode 100644 index d52ad85a11..0000000000 --- a/model/trade/CainiaoRefundRefundactionsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -判断该订单能执行的逆向操作集合列表 API返回值 -cainiao.refund.refundactions.get - -判断该订单能执行的逆向操作集合列表 -*/ -type CainiaoRefundRefundactionsGetAPIResponse struct { - model.CommonResponse - CainiaoRefundRefundactionsGetResponse -} - -// 判断该订单能执行的逆向操作集合列表 成功返回结果 -type CainiaoRefundRefundactionsGetResponse struct { - XMLName xml.Name `xml:"cainiao_refund_refundactions_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Result *CainiaoRefundRefundactionsGetBizResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/CainiaoRefundRefundactionsJudgementAPIRequest.go b/model/trade/CainiaoRefundRefundactionsJudgementAPIRequest.go new file mode 100644 index 0000000000..6477c2629f --- /dev/null +++ b/model/trade/CainiaoRefundRefundactionsJudgementAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +判断当前用户是否能对订单执行一些逆向操作,比如退货操作 API请求 +cainiao.refund.refundactions.judgement + +判断当前用户是否能对订单执行一些逆向操作,比如退货操作 +*/ +type CainiaoRefundRefundactionsJudgementAPIRequest struct { + model.Params + // 操作请求 + _param0 *OrderRefundOperationJudgementReq +} + +// 初始化CainiaoRefundRefundactionsJudgementAPIRequest对象 +func NewCainiaoRefundRefundactionsJudgementRequest() *CainiaoRefundRefundactionsJudgementAPIRequest{ + return &CainiaoRefundRefundactionsJudgementAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoRefundRefundactionsJudgementAPIRequest) GetApiMethodName() string { + return "cainiao.refund.refundactions.judgement" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoRefundRefundactionsJudgementAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 操作请求 +func (r *CainiaoRefundRefundactionsJudgementAPIRequest) SetParam0(_param0 *OrderRefundOperationJudgementReq) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r CainiaoRefundRefundactionsJudgementAPIRequest) GetParam0() *OrderRefundOperationJudgementReq { + return r._param0 +} diff --git a/model/trade/CainiaoRefundRefundactionsJudgementAPIResponse.go b/model/trade/CainiaoRefundRefundactionsJudgementAPIResponse.go new file mode 100644 index 0000000000..e55262db3f --- /dev/null +++ b/model/trade/CainiaoRefundRefundactionsJudgementAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +判断当前用户是否能对订单执行一些逆向操作,比如退货操作 API返回值 +cainiao.refund.refundactions.judgement + +判断当前用户是否能对订单执行一些逆向操作,比如退货操作 +*/ +type CainiaoRefundRefundactionsJudgementAPIResponse struct { + model.CommonResponse + CainiaoRefundRefundactionsJudgementAPIResponseModel +} + +// 判断当前用户是否能对订单执行一些逆向操作,比如退货操作 成功返回结果 +type CainiaoRefundRefundactionsJudgementAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_refund_refundactions_judgement_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果对象 + Result *CainiaoRefundRefundactionsJudgementBizResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/CainiaoRefundRefundactionsJudgementResponse.go b/model/trade/CainiaoRefundRefundactionsJudgementResponse.go deleted file mode 100644 index 3fde9d54d6..0000000000 --- a/model/trade/CainiaoRefundRefundactionsJudgementResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -判断当前用户是否能对订单执行一些逆向操作,比如退货操作 API返回值 -cainiao.refund.refundactions.judgement - -判断当前用户是否能对订单执行一些逆向操作,比如退货操作 -*/ -type CainiaoRefundRefundactionsJudgementAPIResponse struct { - model.CommonResponse - CainiaoRefundRefundactionsJudgementResponse -} - -// 判断当前用户是否能对订单执行一些逆向操作,比如退货操作 成功返回结果 -type CainiaoRefundRefundactionsJudgementResponse struct { - XMLName xml.Name `xml:"cainiao_refund_refundactions_judgement_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果对象 - Result *CainiaoRefundRefundactionsJudgementBizResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/TaobaoKoubeiTribeOpenOrderPageAPIRequest.go b/model/trade/TaobaoKoubeiTribeOpenOrderPageAPIRequest.go new file mode 100644 index 0000000000..cafd38b5e6 --- /dev/null +++ b/model/trade/TaobaoKoubeiTribeOpenOrderPageAPIRequest.go @@ -0,0 +1,108 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +口碑综合体订单列表信息查询 API请求 +taobao.koubei.tribe.open.order.page + +查询口碑商圈用户的订单列表信息 +*/ +type TaobaoKoubeiTribeOpenOrderPageAPIRequest struct { + model.Params + // 订单状态;ALL(全部),WAIT_PAY(代付款),WAIT_CONSUME(代消费) + _orderStatus string + // 每页大小 + _pageSize int64 + // 起始页 + _pageNo int64 + // 数据集Id + _dataSetId string + // 用户openId + _openId string +} + +// 初始化TaobaoKoubeiTribeOpenOrderPageAPIRequest对象 +func NewTaobaoKoubeiTribeOpenOrderPageRequest() *TaobaoKoubeiTribeOpenOrderPageAPIRequest{ + return &TaobaoKoubeiTribeOpenOrderPageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoKoubeiTribeOpenOrderPageAPIRequest) GetApiMethodName() string { + return "taobao.koubei.tribe.open.order.page" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoKoubeiTribeOpenOrderPageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderStatus Setter +// 订单状态;ALL(全部),WAIT_PAY(代付款),WAIT_CONSUME(代消费) +func (r *TaobaoKoubeiTribeOpenOrderPageAPIRequest) SetOrderStatus(_orderStatus string) error { + r._orderStatus = _orderStatus + r.Set("order_status", _orderStatus) + return nil +} + +// OrderStatus Getter +func (r TaobaoKoubeiTribeOpenOrderPageAPIRequest) GetOrderStatus() string { + return r._orderStatus +} +// PageSize Setter +// 每页大小 +func (r *TaobaoKoubeiTribeOpenOrderPageAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoKoubeiTribeOpenOrderPageAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 起始页 +func (r *TaobaoKoubeiTribeOpenOrderPageAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoKoubeiTribeOpenOrderPageAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// DataSetId Setter +// 数据集Id +func (r *TaobaoKoubeiTribeOpenOrderPageAPIRequest) SetDataSetId(_dataSetId string) error { + r._dataSetId = _dataSetId + r.Set("data_set_id", _dataSetId) + return nil +} + +// DataSetId Getter +func (r TaobaoKoubeiTribeOpenOrderPageAPIRequest) GetDataSetId() string { + return r._dataSetId +} +// OpenId Setter +// 用户openId +func (r *TaobaoKoubeiTribeOpenOrderPageAPIRequest) SetOpenId(_openId string) error { + r._openId = _openId + r.Set("open_id", _openId) + return nil +} + +// OpenId Getter +func (r TaobaoKoubeiTribeOpenOrderPageAPIRequest) GetOpenId() string { + return r._openId +} diff --git a/model/trade/TaobaoKoubeiTribeOpenOrderPageAPIResponse.go b/model/trade/TaobaoKoubeiTribeOpenOrderPageAPIResponse.go new file mode 100644 index 0000000000..2aa47031d8 --- /dev/null +++ b/model/trade/TaobaoKoubeiTribeOpenOrderPageAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +口碑综合体订单列表信息查询 API返回值 +taobao.koubei.tribe.open.order.page + +查询口碑商圈用户的订单列表信息 +*/ +type TaobaoKoubeiTribeOpenOrderPageAPIResponse struct { + model.CommonResponse + TaobaoKoubeiTribeOpenOrderPageAPIResponseModel +} + +// 口碑综合体订单列表信息查询 成功返回结果 +type TaobaoKoubeiTribeOpenOrderPageAPIResponseModel struct { + XMLName xml.Name `xml:"koubei_tribe_open_order_page_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoKoubeiTribeOpenOrderPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/TaobaoKoubeiTribeOpenOrderPageResponse.go b/model/trade/TaobaoKoubeiTribeOpenOrderPageResponse.go deleted file mode 100644 index 77d6b533ff..0000000000 --- a/model/trade/TaobaoKoubeiTribeOpenOrderPageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -口碑综合体订单列表信息查询 API返回值 -taobao.koubei.tribe.open.order.page - -查询口碑商圈用户的订单列表信息 -*/ -type TaobaoKoubeiTribeOpenOrderPageAPIResponse struct { - model.CommonResponse - TaobaoKoubeiTribeOpenOrderPageResponse -} - -// 口碑综合体订单列表信息查询 成功返回结果 -type TaobaoKoubeiTribeOpenOrderPageResponse struct { - XMLName xml.Name `xml:"koubei_tribe_open_order_page_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoKoubeiTribeOpenOrderPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/TaobaoLifeReservationItemOrderChangeAPIRequest.go b/model/trade/TaobaoLifeReservationItemOrderChangeAPIRequest.go new file mode 100644 index 0000000000..25becc86cc --- /dev/null +++ b/model/trade/TaobaoLifeReservationItemOrderChangeAPIRequest.go @@ -0,0 +1,108 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +生服购后预约单外部发起变更 API请求 +taobao.life.reservation.item.order.change + +生服购后预约单外部发起变更,例如改期、取消。目前体检场景,用户会直接联系ISV改期/取消,因此开放给ISV这块的能力 +*/ +type TaobaoLifeReservationItemOrderChangeAPIRequest struct { + model.Params + // 淘宝主单号 + _tradeNo string + // 凭证ID + _ticketId string + // 改期:MODIFY 取消:CANCEL + _action string + // 改期必填,格式:yyyy-MM-dd HH:mm。时分固定00:00 + _reserveStartTime string + // 改期必填,格式:yyyy-MM-dd HH:mm。时分固定23:59 + _reserveEndTime string +} + +// 初始化TaobaoLifeReservationItemOrderChangeAPIRequest对象 +func NewTaobaoLifeReservationItemOrderChangeRequest() *TaobaoLifeReservationItemOrderChangeAPIRequest{ + return &TaobaoLifeReservationItemOrderChangeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLifeReservationItemOrderChangeAPIRequest) GetApiMethodName() string { + return "taobao.life.reservation.item.order.change" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLifeReservationItemOrderChangeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeNo Setter +// 淘宝主单号 +func (r *TaobaoLifeReservationItemOrderChangeAPIRequest) SetTradeNo(_tradeNo string) error { + r._tradeNo = _tradeNo + r.Set("trade_no", _tradeNo) + return nil +} + +// TradeNo Getter +func (r TaobaoLifeReservationItemOrderChangeAPIRequest) GetTradeNo() string { + return r._tradeNo +} +// TicketId Setter +// 凭证ID +func (r *TaobaoLifeReservationItemOrderChangeAPIRequest) SetTicketId(_ticketId string) error { + r._ticketId = _ticketId + r.Set("ticket_id", _ticketId) + return nil +} + +// TicketId Getter +func (r TaobaoLifeReservationItemOrderChangeAPIRequest) GetTicketId() string { + return r._ticketId +} +// Action Setter +// 改期:MODIFY 取消:CANCEL +func (r *TaobaoLifeReservationItemOrderChangeAPIRequest) SetAction(_action string) error { + r._action = _action + r.Set("action", _action) + return nil +} + +// Action Getter +func (r TaobaoLifeReservationItemOrderChangeAPIRequest) GetAction() string { + return r._action +} +// ReserveStartTime Setter +// 改期必填,格式:yyyy-MM-dd HH:mm。时分固定00:00 +func (r *TaobaoLifeReservationItemOrderChangeAPIRequest) SetReserveStartTime(_reserveStartTime string) error { + r._reserveStartTime = _reserveStartTime + r.Set("reserve_start_time", _reserveStartTime) + return nil +} + +// ReserveStartTime Getter +func (r TaobaoLifeReservationItemOrderChangeAPIRequest) GetReserveStartTime() string { + return r._reserveStartTime +} +// ReserveEndTime Setter +// 改期必填,格式:yyyy-MM-dd HH:mm。时分固定23:59 +func (r *TaobaoLifeReservationItemOrderChangeAPIRequest) SetReserveEndTime(_reserveEndTime string) error { + r._reserveEndTime = _reserveEndTime + r.Set("reserve_end_time", _reserveEndTime) + return nil +} + +// ReserveEndTime Getter +func (r TaobaoLifeReservationItemOrderChangeAPIRequest) GetReserveEndTime() string { + return r._reserveEndTime +} diff --git a/model/trade/TaobaoLifeReservationItemOrderChangeAPIResponse.go b/model/trade/TaobaoLifeReservationItemOrderChangeAPIResponse.go new file mode 100644 index 0000000000..1766b78ffd --- /dev/null +++ b/model/trade/TaobaoLifeReservationItemOrderChangeAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +生服购后预约单外部发起变更 API返回值 +taobao.life.reservation.item.order.change + +生服购后预约单外部发起变更,例如改期、取消。目前体检场景,用户会直接联系ISV改期/取消,因此开放给ISV这块的能力 +*/ +type TaobaoLifeReservationItemOrderChangeAPIResponse struct { + model.CommonResponse + TaobaoLifeReservationItemOrderChangeAPIResponseModel +} + +// 生服购后预约单外部发起变更 成功返回结果 +type TaobaoLifeReservationItemOrderChangeAPIResponseModel struct { + XMLName xml.Name `xml:"life_reservation_item_order_change_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoLifeReservationItemOrderChangeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/TaobaoLifeReservationItemOrderChangeResponse.go b/model/trade/TaobaoLifeReservationItemOrderChangeResponse.go deleted file mode 100644 index 3102cb5f34..0000000000 --- a/model/trade/TaobaoLifeReservationItemOrderChangeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -生服购后预约单外部发起变更 API返回值 -taobao.life.reservation.item.order.change - -生服购后预约单外部发起变更,例如改期、取消。目前体检场景,用户会直接联系ISV改期/取消,因此开放给ISV这块的能力 -*/ -type TaobaoLifeReservationItemOrderChangeAPIResponse struct { - model.CommonResponse - TaobaoLifeReservationItemOrderChangeResponse -} - -// 生服购后预约单外部发起变更 成功返回结果 -type TaobaoLifeReservationItemOrderChangeResponse struct { - XMLName xml.Name `xml:"life_reservation_item_order_change_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoLifeReservationItemOrderChangeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/TaobaoLifeReservationItemOrderConfirmAPIRequest.go b/model/trade/TaobaoLifeReservationItemOrderConfirmAPIRequest.go new file mode 100644 index 0000000000..5e44ad93d8 --- /dev/null +++ b/model/trade/TaobaoLifeReservationItemOrderConfirmAPIRequest.go @@ -0,0 +1,80 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +生服购后预约单外部确认 API请求 +taobao.life.reservation.item.order.confirm + +生服团购下单预约后,用户改期/取消,外调ISV。ISV人工确认后调接口同意或驳回 +*/ +type TaobaoLifeReservationItemOrderConfirmAPIRequest struct { + model.Params + // 淘宝主单号 + _tradeNo string + // 凭证ID + _ticketId string + // 审核类型,PASS-通过;REJECT-驳回 + _optType string +} + +// 初始化TaobaoLifeReservationItemOrderConfirmAPIRequest对象 +func NewTaobaoLifeReservationItemOrderConfirmRequest() *TaobaoLifeReservationItemOrderConfirmAPIRequest{ + return &TaobaoLifeReservationItemOrderConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLifeReservationItemOrderConfirmAPIRequest) GetApiMethodName() string { + return "taobao.life.reservation.item.order.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLifeReservationItemOrderConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeNo Setter +// 淘宝主单号 +func (r *TaobaoLifeReservationItemOrderConfirmAPIRequest) SetTradeNo(_tradeNo string) error { + r._tradeNo = _tradeNo + r.Set("trade_no", _tradeNo) + return nil +} + +// TradeNo Getter +func (r TaobaoLifeReservationItemOrderConfirmAPIRequest) GetTradeNo() string { + return r._tradeNo +} +// TicketId Setter +// 凭证ID +func (r *TaobaoLifeReservationItemOrderConfirmAPIRequest) SetTicketId(_ticketId string) error { + r._ticketId = _ticketId + r.Set("ticket_id", _ticketId) + return nil +} + +// TicketId Getter +func (r TaobaoLifeReservationItemOrderConfirmAPIRequest) GetTicketId() string { + return r._ticketId +} +// OptType Setter +// 审核类型,PASS-通过;REJECT-驳回 +func (r *TaobaoLifeReservationItemOrderConfirmAPIRequest) SetOptType(_optType string) error { + r._optType = _optType + r.Set("opt_type", _optType) + return nil +} + +// OptType Getter +func (r TaobaoLifeReservationItemOrderConfirmAPIRequest) GetOptType() string { + return r._optType +} diff --git a/model/trade/TaobaoLifeReservationItemOrderConfirmAPIResponse.go b/model/trade/TaobaoLifeReservationItemOrderConfirmAPIResponse.go new file mode 100644 index 0000000000..bfa0ad8e79 --- /dev/null +++ b/model/trade/TaobaoLifeReservationItemOrderConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +生服购后预约单外部确认 API返回值 +taobao.life.reservation.item.order.confirm + +生服团购下单预约后,用户改期/取消,外调ISV。ISV人工确认后调接口同意或驳回 +*/ +type TaobaoLifeReservationItemOrderConfirmAPIResponse struct { + model.CommonResponse + TaobaoLifeReservationItemOrderConfirmAPIResponseModel +} + +// 生服购后预约单外部确认 成功返回结果 +type TaobaoLifeReservationItemOrderConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"life_reservation_item_order_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoLifeReservationItemOrderConfirmResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/TaobaoLifeReservationItemOrderConfirmResponse.go b/model/trade/TaobaoLifeReservationItemOrderConfirmResponse.go deleted file mode 100644 index 2b0265d054..0000000000 --- a/model/trade/TaobaoLifeReservationItemOrderConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -生服购后预约单外部确认 API返回值 -taobao.life.reservation.item.order.confirm - -生服团购下单预约后,用户改期/取消,外调ISV。ISV人工确认后调接口同意或驳回 -*/ -type TaobaoLifeReservationItemOrderConfirmAPIResponse struct { - model.CommonResponse - TaobaoLifeReservationItemOrderConfirmResponse -} - -// 生服购后预约单外部确认 成功返回结果 -type TaobaoLifeReservationItemOrderConfirmResponse struct { - XMLName xml.Name `xml:"life_reservation_item_order_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoLifeReservationItemOrderConfirmResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/TaobaoLifeReservationTradeConsumeNoticeAPIRequest.go b/model/trade/TaobaoLifeReservationTradeConsumeNoticeAPIRequest.go new file mode 100644 index 0000000000..22141dd3e7 --- /dev/null +++ b/model/trade/TaobaoLifeReservationTradeConsumeNoticeAPIRequest.go @@ -0,0 +1,66 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +生服购后预约外部核销 API请求 +taobao.life.reservation.trade.consume.notice + +生服团购商品,购后预约。外部ISV进行核销 +*/ +type TaobaoLifeReservationTradeConsumeNoticeAPIRequest struct { + model.Params + // 淘宝主单号 + _tradeNo string + // 凭证ID + _ticketId string +} + +// 初始化TaobaoLifeReservationTradeConsumeNoticeAPIRequest对象 +func NewTaobaoLifeReservationTradeConsumeNoticeRequest() *TaobaoLifeReservationTradeConsumeNoticeAPIRequest{ + return &TaobaoLifeReservationTradeConsumeNoticeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLifeReservationTradeConsumeNoticeAPIRequest) GetApiMethodName() string { + return "taobao.life.reservation.trade.consume.notice" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLifeReservationTradeConsumeNoticeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeNo Setter +// 淘宝主单号 +func (r *TaobaoLifeReservationTradeConsumeNoticeAPIRequest) SetTradeNo(_tradeNo string) error { + r._tradeNo = _tradeNo + r.Set("trade_no", _tradeNo) + return nil +} + +// TradeNo Getter +func (r TaobaoLifeReservationTradeConsumeNoticeAPIRequest) GetTradeNo() string { + return r._tradeNo +} +// TicketId Setter +// 凭证ID +func (r *TaobaoLifeReservationTradeConsumeNoticeAPIRequest) SetTicketId(_ticketId string) error { + r._ticketId = _ticketId + r.Set("ticket_id", _ticketId) + return nil +} + +// TicketId Getter +func (r TaobaoLifeReservationTradeConsumeNoticeAPIRequest) GetTicketId() string { + return r._ticketId +} diff --git a/model/trade/TaobaoLifeReservationTradeConsumeNoticeAPIResponse.go b/model/trade/TaobaoLifeReservationTradeConsumeNoticeAPIResponse.go new file mode 100644 index 0000000000..fcb99cc4ba --- /dev/null +++ b/model/trade/TaobaoLifeReservationTradeConsumeNoticeAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +生服购后预约外部核销 API返回值 +taobao.life.reservation.trade.consume.notice + +生服团购商品,购后预约。外部ISV进行核销 +*/ +type TaobaoLifeReservationTradeConsumeNoticeAPIResponse struct { + model.CommonResponse + TaobaoLifeReservationTradeConsumeNoticeAPIResponseModel +} + +// 生服购后预约外部核销 成功返回结果 +type TaobaoLifeReservationTradeConsumeNoticeAPIResponseModel struct { + XMLName xml.Name `xml:"life_reservation_trade_consume_notice_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoLifeReservationTradeConsumeNoticeResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/TaobaoLifeReservationTradeConsumeNoticeResponse.go b/model/trade/TaobaoLifeReservationTradeConsumeNoticeResponse.go deleted file mode 100644 index 448ba2ddee..0000000000 --- a/model/trade/TaobaoLifeReservationTradeConsumeNoticeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -生服购后预约外部核销 API返回值 -taobao.life.reservation.trade.consume.notice - -生服团购商品,购后预约。外部ISV进行核销 -*/ -type TaobaoLifeReservationTradeConsumeNoticeAPIResponse struct { - model.CommonResponse - TaobaoLifeReservationTradeConsumeNoticeResponse -} - -// 生服购后预约外部核销 成功返回结果 -type TaobaoLifeReservationTradeConsumeNoticeResponse struct { - XMLName xml.Name `xml:"life_reservation_trade_consume_notice_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoLifeReservationTradeConsumeNoticeResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/TaobaoLifeReservationTradeConsumeNoticeResult.go b/model/trade/TaobaoLifeReservationTradeConsumeNoticeResult.go new file mode 100644 index 0000000000..3e7d2f7725 --- /dev/null +++ b/model/trade/TaobaoLifeReservationTradeConsumeNoticeResult.go @@ -0,0 +1,11 @@ +package trade + +// TaobaoLifeReservationTradeConsumeNoticeResult +type TaobaoLifeReservationTradeConsumeNoticeResult struct { + // traceId + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误 + Error *TribeError `json:"error,omitempty" xml:"error,omitempty"` +} diff --git a/model/trade/TaobaoOpenTradeGetAPIRequest.go b/model/trade/TaobaoOpenTradeGetAPIRequest.go new file mode 100644 index 0000000000..637260cdf5 --- /dev/null +++ b/model/trade/TaobaoOpenTradeGetAPIRequest.go @@ -0,0 +1,67 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单笔交易的部分信息(商家应用使用) API请求 +taobao.open.trade.get + +获取单笔交易的部分信息
+1.入参fields中传入buyer_nick ,才能返回buyer_open_id +*/ +type TaobaoOpenTradeGetAPIRequest struct { + model.Params + // 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。 + _fields string + // 交易编号 + _tid int64 +} + +// 初始化TaobaoOpenTradeGetAPIRequest对象 +func NewTaobaoOpenTradeGetRequest() *TaobaoOpenTradeGetAPIRequest{ + return &TaobaoOpenTradeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenTradeGetAPIRequest) GetApiMethodName() string { + return "taobao.open.trade.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenTradeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。 +func (r *TaobaoOpenTradeGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoOpenTradeGetAPIRequest) GetFields() string { + return r._fields +} +// Tid Setter +// 交易编号 +func (r *TaobaoOpenTradeGetAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoOpenTradeGetAPIRequest) GetTid() int64 { + return r._tid +} diff --git a/model/trade/TaobaoOpenTradeGetAPIResponse.go b/model/trade/TaobaoOpenTradeGetAPIResponse.go new file mode 100644 index 0000000000..a283467ea4 --- /dev/null +++ b/model/trade/TaobaoOpenTradeGetAPIResponse.go @@ -0,0 +1,28 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单笔交易的部分信息(商家应用使用) API返回值 +taobao.open.trade.get + +获取单笔交易的部分信息
+1.入参fields中传入buyer_nick ,才能返回buyer_open_id +*/ +type TaobaoOpenTradeGetAPIResponse struct { + model.CommonResponse + TaobaoOpenTradeGetAPIResponseModel +} + +// 获取单笔交易的部分信息(商家应用使用) 成功返回结果 +type TaobaoOpenTradeGetAPIResponseModel struct { + XMLName xml.Name `xml:"open_trade_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 搜索到的交易信息列表,返回的Trade和Order中包含的具体信息为入参fields请求的字段信息 + Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` +} diff --git a/model/trade/TaobaoOpenTradeGetResponse.go b/model/trade/TaobaoOpenTradeGetResponse.go deleted file mode 100644 index 4ce49e119d..0000000000 --- a/model/trade/TaobaoOpenTradeGetResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取单笔交易的部分信息(商家应用使用) API返回值 -taobao.open.trade.get - -获取单笔交易的部分信息
-1.入参fields中传入buyer_nick ,才能返回buyer_open_id -*/ -type TaobaoOpenTradeGetAPIResponse struct { - model.CommonResponse - TaobaoOpenTradeGetResponse -} - -// 获取单笔交易的部分信息(商家应用使用) 成功返回结果 -type TaobaoOpenTradeGetResponse struct { - XMLName xml.Name `xml:"open_trade_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 搜索到的交易信息列表,返回的Trade和Order中包含的具体信息为入参fields请求的字段信息 - Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` -} diff --git a/model/trade/TaobaoOpenTradesSoldGetAPIRequest.go b/model/trade/TaobaoOpenTradesSoldGetAPIRequest.go new file mode 100644 index 0000000000..859c7823b0 --- /dev/null +++ b/model/trade/TaobaoOpenTradesSoldGetAPIRequest.go @@ -0,0 +1,167 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家已卖出的交易数据(商家应用使用) API请求 +taobao.open.trades.sold.get + +搜索当前会话用户作为卖家已卖出的交易数据(只能获取到三个月以内的交易信息)
+1. 返回的数据结果是以订单的创建时间倒序排列的。
+注意:type字段的说明,如果该字段不传,接口默认只查4种类型订单,非默认查询的订单是不返回。遇到订单查不到的情况的,通常都是这个原因造成。解决办法就是type加上订单类型就可正常返回了。
+2.入参fields中传入buyer_nick ,才能返回buyer_open_id +*/ +type TaobaoOpenTradesSoldGetAPIRequest struct { + model.Params + // 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。rx_audit_status=0,处方药未审核 + _fields string + // 查询三个月内交易创建时间开始。格式:yyyy-MM-dd HH:mm:ss + _startCreated string + // 查询交易创建时间结束。格式:yyyy-MM-dd HH:mm:ss + _endCreated string + // 交易状态(查看可选值),默认查询所有交易状态的数据,除了默认值外每次只能查询一种状态。 + _status string + // 交易类型列表,同时查询多种交易类型可用逗号分隔。默认同时查询guarantee_trade,auto_delivery,ec,cod,step 这5 种的交易类型的数据;查询所有交易类型的数据,需要设置下面全部可选值。可选值:fixed(一口价)auction(拍卖)guarantee_trade(一口价、拍卖)step(分阶段付款,万人团,阶梯团订单)independent_simple_trade(旺店入门版交易)independent_shop_trade(旺店标准版交易)auto_delivery(自动发货)ec(直冲)cod(货到付款)game_equipment(游戏装备)shopex_trade(ShopEX交易)netcn_trade(万网交易)external_trade(统一外部交易)instant_trade (即时到账)b2c_cod(大商家货到付款)hotel_trade(酒店类型交易)super_market_trade(商超交易)super_market_cod_trade(商超货到付款交易)taohua(淘花网交易类型)waimai(外卖交易类型)o2o_offlinetrade(O2O交易)nopaid(即时到帐/趣味猜交易类型)step (万人团) eticket(电子凭证) tmall_i18n(天猫国际);nopaid (无付款交易)insurance_plus(保险)finance(基金)注:guarantee_trade是一个组合查询条件,并不是一种交易类型,获取批量或单个订单中不会返回此种类型的订单。pre_auth_type(预授权0元购) lazada(获取lazada订单类型) + _type string + // 页码。取值范围:大于零的整数; 默认值:1 + _pageNo int64 + // 每页条数。取值范围:大于零的整数; 默认值:40;最大值:100 + _pageSize int64 + // 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取增量交易,接口调用成功率在原有的基础上有所提升。 + _useHasNext bool + // 买家的openId + _buyerOpenId string +} + +// 初始化TaobaoOpenTradesSoldGetAPIRequest对象 +func NewTaobaoOpenTradesSoldGetRequest() *TaobaoOpenTradesSoldGetAPIRequest{ + return &TaobaoOpenTradesSoldGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenTradesSoldGetAPIRequest) GetApiMethodName() string { + return "taobao.open.trades.sold.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenTradesSoldGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。rx_audit_status=0,处方药未审核 +func (r *TaobaoOpenTradesSoldGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoOpenTradesSoldGetAPIRequest) GetFields() string { + return r._fields +} +// StartCreated Setter +// 查询三个月内交易创建时间开始。格式:yyyy-MM-dd HH:mm:ss +func (r *TaobaoOpenTradesSoldGetAPIRequest) SetStartCreated(_startCreated string) error { + r._startCreated = _startCreated + r.Set("start_created", _startCreated) + return nil +} + +// StartCreated Getter +func (r TaobaoOpenTradesSoldGetAPIRequest) GetStartCreated() string { + return r._startCreated +} +// EndCreated Setter +// 查询交易创建时间结束。格式:yyyy-MM-dd HH:mm:ss +func (r *TaobaoOpenTradesSoldGetAPIRequest) SetEndCreated(_endCreated string) error { + r._endCreated = _endCreated + r.Set("end_created", _endCreated) + return nil +} + +// EndCreated Getter +func (r TaobaoOpenTradesSoldGetAPIRequest) GetEndCreated() string { + return r._endCreated +} +// Status Setter +// 交易状态(查看可选值),默认查询所有交易状态的数据,除了默认值外每次只能查询一种状态。 +func (r *TaobaoOpenTradesSoldGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoOpenTradesSoldGetAPIRequest) GetStatus() string { + return r._status +} +// Type Setter +// 交易类型列表,同时查询多种交易类型可用逗号分隔。默认同时查询guarantee_trade,auto_delivery,ec,cod,step 这5 种的交易类型的数据;查询所有交易类型的数据,需要设置下面全部可选值。可选值:fixed(一口价)auction(拍卖)guarantee_trade(一口价、拍卖)step(分阶段付款,万人团,阶梯团订单)independent_simple_trade(旺店入门版交易)independent_shop_trade(旺店标准版交易)auto_delivery(自动发货)ec(直冲)cod(货到付款)game_equipment(游戏装备)shopex_trade(ShopEX交易)netcn_trade(万网交易)external_trade(统一外部交易)instant_trade (即时到账)b2c_cod(大商家货到付款)hotel_trade(酒店类型交易)super_market_trade(商超交易)super_market_cod_trade(商超货到付款交易)taohua(淘花网交易类型)waimai(外卖交易类型)o2o_offlinetrade(O2O交易)nopaid(即时到帐/趣味猜交易类型)step (万人团) eticket(电子凭证) tmall_i18n(天猫国际);nopaid (无付款交易)insurance_plus(保险)finance(基金)注:guarantee_trade是一个组合查询条件,并不是一种交易类型,获取批量或单个订单中不会返回此种类型的订单。pre_auth_type(预授权0元购) lazada(获取lazada订单类型) +func (r *TaobaoOpenTradesSoldGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoOpenTradesSoldGetAPIRequest) GetType() string { + return r._type +} +// PageNo Setter +// 页码。取值范围:大于零的整数; 默认值:1 +func (r *TaobaoOpenTradesSoldGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoOpenTradesSoldGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数。取值范围:大于零的整数; 默认值:40;最大值:100 +func (r *TaobaoOpenTradesSoldGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoOpenTradesSoldGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// UseHasNext Setter +// 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取增量交易,接口调用成功率在原有的基础上有所提升。 +func (r *TaobaoOpenTradesSoldGetAPIRequest) SetUseHasNext(_useHasNext bool) error { + r._useHasNext = _useHasNext + r.Set("use_has_next", _useHasNext) + return nil +} + +// UseHasNext Getter +func (r TaobaoOpenTradesSoldGetAPIRequest) GetUseHasNext() bool { + return r._useHasNext +} +// BuyerOpenId Setter +// 买家的openId +func (r *TaobaoOpenTradesSoldGetAPIRequest) SetBuyerOpenId(_buyerOpenId string) error { + r._buyerOpenId = _buyerOpenId + r.Set("buyer_open_id", _buyerOpenId) + return nil +} + +// BuyerOpenId Getter +func (r TaobaoOpenTradesSoldGetAPIRequest) GetBuyerOpenId() string { + return r._buyerOpenId +} diff --git a/model/trade/TaobaoOpenTradesSoldGetAPIResponse.go b/model/trade/TaobaoOpenTradesSoldGetAPIResponse.go new file mode 100644 index 0000000000..62a17fe496 --- /dev/null +++ b/model/trade/TaobaoOpenTradesSoldGetAPIResponse.go @@ -0,0 +1,34 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家已卖出的交易数据(商家应用使用) API返回值 +taobao.open.trades.sold.get + +搜索当前会话用户作为卖家已卖出的交易数据(只能获取到三个月以内的交易信息)
+1. 返回的数据结果是以订单的创建时间倒序排列的。
+注意:type字段的说明,如果该字段不传,接口默认只查4种类型订单,非默认查询的订单是不返回。遇到订单查不到的情况的,通常都是这个原因造成。解决办法就是type加上订单类型就可正常返回了。
+2.入参fields中传入buyer_nick ,才能返回buyer_open_id +*/ +type TaobaoOpenTradesSoldGetAPIResponse struct { + model.CommonResponse + TaobaoOpenTradesSoldGetAPIResponseModel +} + +// 查询卖家已卖出的交易数据(商家应用使用) 成功返回结果 +type TaobaoOpenTradesSoldGetAPIResponseModel struct { + XMLName xml.Name `xml:"open_trades_sold_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 搜索到的交易信息总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 是否存在下一页 + HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` + // 搜索到的交易信息列表,返回的Trade和Order中包含的具体信息为入参fields请求的字段信息 + Trades []Trade `json:"trades,omitempty" xml:"trades>trade,omitempty"` +} diff --git a/model/trade/TaobaoOpenTradesSoldGetResponse.go b/model/trade/TaobaoOpenTradesSoldGetResponse.go deleted file mode 100644 index 91a0eef94a..0000000000 --- a/model/trade/TaobaoOpenTradesSoldGetResponse.go +++ /dev/null @@ -1,34 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询卖家已卖出的交易数据(商家应用使用) API返回值 -taobao.open.trades.sold.get - -搜索当前会话用户作为卖家已卖出的交易数据(只能获取到三个月以内的交易信息)
-1. 返回的数据结果是以订单的创建时间倒序排列的。
-注意:type字段的说明,如果该字段不传,接口默认只查4种类型订单,非默认查询的订单是不返回。遇到订单查不到的情况的,通常都是这个原因造成。解决办法就是type加上订单类型就可正常返回了。
-2.入参fields中传入buyer_nick ,才能返回buyer_open_id -*/ -type TaobaoOpenTradesSoldGetAPIResponse struct { - model.CommonResponse - TaobaoOpenTradesSoldGetResponse -} - -// 查询卖家已卖出的交易数据(商家应用使用) 成功返回结果 -type TaobaoOpenTradesSoldGetResponse struct { - XMLName xml.Name `xml:"open_trades_sold_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 搜索到的交易信息总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 是否存在下一页 - HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` - // 搜索到的交易信息列表,返回的Trade和Order中包含的具体信息为入参fields请求的字段信息 - Trades []Trade `json:"trades,omitempty" xml:"trades>trade,omitempty"` -} diff --git a/model/trade/TaobaoOpentradeCustomizationRefundEnableAPIRequest.go b/model/trade/TaobaoOpentradeCustomizationRefundEnableAPIRequest.go new file mode 100644 index 0000000000..84df0a7f96 --- /dev/null +++ b/model/trade/TaobaoOpentradeCustomizationRefundEnableAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +定制订单设置允许仅退款 API请求 +taobao.opentrade.customization.refund.enable + +定制订单设置允许仅退款 +*/ +type TaobaoOpentradeCustomizationRefundEnableAPIRequest struct { + model.Params + // 主订单ID + _tradeId int64 +} + +// 初始化TaobaoOpentradeCustomizationRefundEnableAPIRequest对象 +func NewTaobaoOpentradeCustomizationRefundEnableRequest() *TaobaoOpentradeCustomizationRefundEnableAPIRequest{ + return &TaobaoOpentradeCustomizationRefundEnableAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpentradeCustomizationRefundEnableAPIRequest) GetApiMethodName() string { + return "taobao.opentrade.customization.refund.enable" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpentradeCustomizationRefundEnableAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeId Setter +// 主订单ID +func (r *TaobaoOpentradeCustomizationRefundEnableAPIRequest) SetTradeId(_tradeId int64) error { + r._tradeId = _tradeId + r.Set("trade_id", _tradeId) + return nil +} + +// TradeId Getter +func (r TaobaoOpentradeCustomizationRefundEnableAPIRequest) GetTradeId() int64 { + return r._tradeId +} diff --git a/model/trade/TaobaoOpentradeCustomizationRefundEnableAPIResponse.go b/model/trade/TaobaoOpentradeCustomizationRefundEnableAPIResponse.go new file mode 100644 index 0000000000..45aa956d71 --- /dev/null +++ b/model/trade/TaobaoOpentradeCustomizationRefundEnableAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +定制订单设置允许仅退款 API返回值 +taobao.opentrade.customization.refund.enable + +定制订单设置允许仅退款 +*/ +type TaobaoOpentradeCustomizationRefundEnableAPIResponse struct { + model.CommonResponse + TaobaoOpentradeCustomizationRefundEnableAPIResponseModel +} + +// 定制订单设置允许仅退款 成功返回结果 +type TaobaoOpentradeCustomizationRefundEnableAPIResponseModel struct { + XMLName xml.Name `xml:"opentrade_customization_refund_enable_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否设置成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/TaobaoOpentradeCustomizationRefundEnableResponse.go b/model/trade/TaobaoOpentradeCustomizationRefundEnableResponse.go deleted file mode 100644 index 565470c42c..0000000000 --- a/model/trade/TaobaoOpentradeCustomizationRefundEnableResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -定制订单设置允许仅退款 API返回值 -taobao.opentrade.customization.refund.enable - -定制订单设置允许仅退款 -*/ -type TaobaoOpentradeCustomizationRefundEnableAPIResponse struct { - model.CommonResponse - TaobaoOpentradeCustomizationRefundEnableResponse -} - -// 定制订单设置允许仅退款 成功返回结果 -type TaobaoOpentradeCustomizationRefundEnableResponse struct { - XMLName xml.Name `xml:"opentrade_customization_refund_enable_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否设置成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/TaobaoRdcAligeniusOrdermsgUpdateAPIRequest.go b/model/trade/TaobaoRdcAligeniusOrdermsgUpdateAPIRequest.go new file mode 100644 index 0000000000..addb6d5802 --- /dev/null +++ b/model/trade/TaobaoRdcAligeniusOrdermsgUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单消息状态回传 API请求 +taobao.rdc.aligenius.ordermsg.update + +用于订单消息处理状态回传 +*/ +type TaobaoRdcAligeniusOrdermsgUpdateAPIRequest struct { + model.Params + // 子订单(消息中传的子订单) + _oid int64 + // 处理状态,1=成功,2=处理失败 + _status int64 + // 主订单(消息中传的主订单) + _tid int64 +} + +// 初始化TaobaoRdcAligeniusOrdermsgUpdateAPIRequest对象 +func NewTaobaoRdcAligeniusOrdermsgUpdateRequest() *TaobaoRdcAligeniusOrdermsgUpdateAPIRequest{ + return &TaobaoRdcAligeniusOrdermsgUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRdcAligeniusOrdermsgUpdateAPIRequest) GetApiMethodName() string { + return "taobao.rdc.aligenius.ordermsg.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRdcAligeniusOrdermsgUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Oid Setter +// 子订单(消息中传的子订单) +func (r *TaobaoRdcAligeniusOrdermsgUpdateAPIRequest) SetOid(_oid int64) error { + r._oid = _oid + r.Set("oid", _oid) + return nil +} + +// Oid Getter +func (r TaobaoRdcAligeniusOrdermsgUpdateAPIRequest) GetOid() int64 { + return r._oid +} +// Status Setter +// 处理状态,1=成功,2=处理失败 +func (r *TaobaoRdcAligeniusOrdermsgUpdateAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoRdcAligeniusOrdermsgUpdateAPIRequest) GetStatus() int64 { + return r._status +} +// Tid Setter +// 主订单(消息中传的主订单) +func (r *TaobaoRdcAligeniusOrdermsgUpdateAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoRdcAligeniusOrdermsgUpdateAPIRequest) GetTid() int64 { + return r._tid +} diff --git a/model/trade/TaobaoRdcAligeniusOrdermsgUpdateAPIResponse.go b/model/trade/TaobaoRdcAligeniusOrdermsgUpdateAPIResponse.go new file mode 100644 index 0000000000..716d256a67 --- /dev/null +++ b/model/trade/TaobaoRdcAligeniusOrdermsgUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单消息状态回传 API返回值 +taobao.rdc.aligenius.ordermsg.update + +用于订单消息处理状态回传 +*/ +type TaobaoRdcAligeniusOrdermsgUpdateAPIResponse struct { + model.CommonResponse + TaobaoRdcAligeniusOrdermsgUpdateAPIResponseModel +} + +// 订单消息状态回传 成功返回结果 +type TaobaoRdcAligeniusOrdermsgUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"rdc_aligenius_ordermsg_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoRdcAligeniusOrdermsgUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/TaobaoRdcAligeniusOrdermsgUpdateResponse.go b/model/trade/TaobaoRdcAligeniusOrdermsgUpdateResponse.go deleted file mode 100644 index 93d550cb51..0000000000 --- a/model/trade/TaobaoRdcAligeniusOrdermsgUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单消息状态回传 API返回值 -taobao.rdc.aligenius.ordermsg.update - -用于订单消息处理状态回传 -*/ -type TaobaoRdcAligeniusOrdermsgUpdateAPIResponse struct { - model.CommonResponse - TaobaoRdcAligeniusOrdermsgUpdateResponse -} - -// 订单消息状态回传 成功返回结果 -type TaobaoRdcAligeniusOrdermsgUpdateResponse struct { - XMLName xml.Name `xml:"rdc_aligenius_ordermsg_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoRdcAligeniusOrdermsgUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/TaobaoRefundsReceiveGetAPIRequest.go b/model/trade/TaobaoRefundsReceiveGetAPIRequest.go new file mode 100644 index 0000000000..08c19206ee --- /dev/null +++ b/model/trade/TaobaoRefundsReceiveGetAPIRequest.go @@ -0,0 +1,164 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家收到的退款列表 API请求 +taobao.refunds.receive.get + +查询卖家收到的退款列表 +*/ +type TaobaoRefundsReceiveGetAPIRequest struct { + model.Params + // 需要返回的字段。目前支持有:refund_id, tid, title, buyer_nick, seller_nick, total_fee, status, created, refund_fee, oid, good_status, company_name, sid, payment, reason, desc, has_good_return, modified, order_status,refund_phase + _fields []string + // 退款状态,默认查询所有退款状态的数据,除了默认值外每次只能查询一种状态。WAIT_SELLER_AGREE(买家已经申请退款,等待卖家同意) WAIT_BUYER_RETURN_GOODS(卖家已经同意退款,等待买家退货) WAIT_SELLER_CONFIRM_GOODS(买家已经退货,等待卖家确认收货) SELLER_REFUSE_BUYER(卖家拒绝退款) CLOSED(退款关闭) SUCCESS(退款成功) + _status string + // 买家昵称 + _buyerNick string + // 交易类型列表,一次查询多种类型可用半角逗号分隔,默认同时查询guarantee_trade, auto_delivery这两种类型的数据,查看可选值 + _type string + // 查询修改时间开始。格式: yyyy-MM-dd HH:mm:ss + _startModified string + // 查询修改时间结束。格式: yyyy-MM-dd HH:mm:ss + _endModified string + // 页码。取值范围:大于零的整数; 默认值:1 + _pageNo int64 + // 每页条数。取值范围:大于零的整数; 默认值:40;最大值:100 + _pageSize int64 + // 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取增量退款,接口调用成功率在原有的基础上有所提升。 + _useHasNext bool +} + +// 初始化TaobaoRefundsReceiveGetAPIRequest对象 +func NewTaobaoRefundsReceiveGetRequest() *TaobaoRefundsReceiveGetAPIRequest{ + return &TaobaoRefundsReceiveGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRefundsReceiveGetAPIRequest) GetApiMethodName() string { + return "taobao.refunds.receive.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRefundsReceiveGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的字段。目前支持有:refund_id, tid, title, buyer_nick, seller_nick, total_fee, status, created, refund_fee, oid, good_status, company_name, sid, payment, reason, desc, has_good_return, modified, order_status,refund_phase +func (r *TaobaoRefundsReceiveGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoRefundsReceiveGetAPIRequest) GetFields() []string { + return r._fields +} +// Status Setter +// 退款状态,默认查询所有退款状态的数据,除了默认值外每次只能查询一种状态。WAIT_SELLER_AGREE(买家已经申请退款,等待卖家同意) WAIT_BUYER_RETURN_GOODS(卖家已经同意退款,等待买家退货) WAIT_SELLER_CONFIRM_GOODS(买家已经退货,等待卖家确认收货) SELLER_REFUSE_BUYER(卖家拒绝退款) CLOSED(退款关闭) SUCCESS(退款成功) +func (r *TaobaoRefundsReceiveGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoRefundsReceiveGetAPIRequest) GetStatus() string { + return r._status +} +// BuyerNick Setter +// 买家昵称 +func (r *TaobaoRefundsReceiveGetAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoRefundsReceiveGetAPIRequest) GetBuyerNick() string { + return r._buyerNick +} +// Type Setter +// 交易类型列表,一次查询多种类型可用半角逗号分隔,默认同时查询guarantee_trade, auto_delivery这两种类型的数据,查看可选值 +func (r *TaobaoRefundsReceiveGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoRefundsReceiveGetAPIRequest) GetType() string { + return r._type +} +// StartModified Setter +// 查询修改时间开始。格式: yyyy-MM-dd HH:mm:ss +func (r *TaobaoRefundsReceiveGetAPIRequest) SetStartModified(_startModified string) error { + r._startModified = _startModified + r.Set("start_modified", _startModified) + return nil +} + +// StartModified Getter +func (r TaobaoRefundsReceiveGetAPIRequest) GetStartModified() string { + return r._startModified +} +// EndModified Setter +// 查询修改时间结束。格式: yyyy-MM-dd HH:mm:ss +func (r *TaobaoRefundsReceiveGetAPIRequest) SetEndModified(_endModified string) error { + r._endModified = _endModified + r.Set("end_modified", _endModified) + return nil +} + +// EndModified Getter +func (r TaobaoRefundsReceiveGetAPIRequest) GetEndModified() string { + return r._endModified +} +// PageNo Setter +// 页码。取值范围:大于零的整数; 默认值:1 +func (r *TaobaoRefundsReceiveGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoRefundsReceiveGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数。取值范围:大于零的整数; 默认值:40;最大值:100 +func (r *TaobaoRefundsReceiveGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoRefundsReceiveGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// UseHasNext Setter +// 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取增量退款,接口调用成功率在原有的基础上有所提升。 +func (r *TaobaoRefundsReceiveGetAPIRequest) SetUseHasNext(_useHasNext bool) error { + r._useHasNext = _useHasNext + r.Set("use_has_next", _useHasNext) + return nil +} + +// UseHasNext Getter +func (r TaobaoRefundsReceiveGetAPIRequest) GetUseHasNext() bool { + return r._useHasNext +} diff --git a/model/trade/TaobaoRefundsReceiveGetAPIResponse.go b/model/trade/TaobaoRefundsReceiveGetAPIResponse.go new file mode 100644 index 0000000000..a453029bda --- /dev/null +++ b/model/trade/TaobaoRefundsReceiveGetAPIResponse.go @@ -0,0 +1,31 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家收到的退款列表 API返回值 +taobao.refunds.receive.get + +查询卖家收到的退款列表 +*/ +type TaobaoRefundsReceiveGetAPIResponse struct { + model.CommonResponse + TaobaoRefundsReceiveGetAPIResponseModel +} + +// 查询卖家收到的退款列表 成功返回结果 +type TaobaoRefundsReceiveGetAPIResponseModel struct { + XMLName xml.Name `xml:"refunds_receive_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 搜索到的退款信息总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 是否存在下一页 + HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` + // 搜索到的退款信息列表 + Refunds []Refund `json:"refunds,omitempty" xml:"refunds>refund,omitempty"` +} diff --git a/model/trade/TaobaoRefundsReceiveGetResponse.go b/model/trade/TaobaoRefundsReceiveGetResponse.go deleted file mode 100644 index 58f3d623f1..0000000000 --- a/model/trade/TaobaoRefundsReceiveGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询卖家收到的退款列表 API返回值 -taobao.refunds.receive.get - -查询卖家收到的退款列表 -*/ -type TaobaoRefundsReceiveGetAPIResponse struct { - model.CommonResponse - TaobaoRefundsReceiveGetResponse -} - -// 查询卖家收到的退款列表 成功返回结果 -type TaobaoRefundsReceiveGetResponse struct { - XMLName xml.Name `xml:"refunds_receive_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 搜索到的退款信息总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 是否存在下一页 - HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` - // 搜索到的退款信息列表 - Refunds []Refund `json:"refunds,omitempty" xml:"refunds>refund,omitempty"` -} diff --git a/model/trade/TaobaoTradeAmountGetAPIRequest.go b/model/trade/TaobaoTradeAmountGetAPIRequest.go new file mode 100644 index 0000000000..94ed0c8072 --- /dev/null +++ b/model/trade/TaobaoTradeAmountGetAPIRequest.go @@ -0,0 +1,68 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +交易帐务查询 API请求 +taobao.trade.amount.get + +卖家查询该笔交易的资金帐务相关的数据; +1. 只供卖家使用,买家不可使用 +2. 可查询所有的状态的交易,但不同状态时交易的相关数据可能会有不同 +*/ +type TaobaoTradeAmountGetAPIRequest struct { + model.Params + // 交易编号 + _tid int64 + // 订单帐务详情需要返回的字段信息,可选值如下:1. TradeAmount中可指定的fields:tid,alipay_no,created,pay_time,end_time,total_fee,payment,post_fee,cod_fee,commission_fee,buyer_obtain_point_fee2. OrderAmount中可指定的fields:order_amounts.oid,order_amounts.title,order_amounts.num_iid,order_amounts.sku_properties_name,order_amounts.sku_id,order_amounts.num,order_amounts.price,order_amounts.discount_fee,order_amounts.adjust_fee,order_amounts.payment,order_amounts.promotion_name3. order_amounts(返回OrderAmount的所有内容)4. promotion_details(指定该值会返回主订单的promotion_details中除id之外的所有字段) + _fields string +} + +// 初始化TaobaoTradeAmountGetAPIRequest对象 +func NewTaobaoTradeAmountGetRequest() *TaobaoTradeAmountGetAPIRequest{ + return &TaobaoTradeAmountGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradeAmountGetAPIRequest) GetApiMethodName() string { + return "taobao.trade.amount.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradeAmountGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 交易编号 +func (r *TaobaoTradeAmountGetAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoTradeAmountGetAPIRequest) GetTid() int64 { + return r._tid +} +// Fields Setter +// 订单帐务详情需要返回的字段信息,可选值如下:1. TradeAmount中可指定的fields:tid,alipay_no,created,pay_time,end_time,total_fee,payment,post_fee,cod_fee,commission_fee,buyer_obtain_point_fee2. OrderAmount中可指定的fields:order_amounts.oid,order_amounts.title,order_amounts.num_iid,order_amounts.sku_properties_name,order_amounts.sku_id,order_amounts.num,order_amounts.price,order_amounts.discount_fee,order_amounts.adjust_fee,order_amounts.payment,order_amounts.promotion_name3. order_amounts(返回OrderAmount的所有内容)4. promotion_details(指定该值会返回主订单的promotion_details中除id之外的所有字段) +func (r *TaobaoTradeAmountGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoTradeAmountGetAPIRequest) GetFields() string { + return r._fields +} diff --git a/model/trade/TaobaoTradeAmountGetAPIResponse.go b/model/trade/TaobaoTradeAmountGetAPIResponse.go new file mode 100644 index 0000000000..b2f00d0803 --- /dev/null +++ b/model/trade/TaobaoTradeAmountGetAPIResponse.go @@ -0,0 +1,29 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +交易帐务查询 API返回值 +taobao.trade.amount.get + +卖家查询该笔交易的资金帐务相关的数据; +1. 只供卖家使用,买家不可使用 +2. 可查询所有的状态的交易,但不同状态时交易的相关数据可能会有不同 +*/ +type TaobaoTradeAmountGetAPIResponse struct { + model.CommonResponse + TaobaoTradeAmountGetAPIResponseModel +} + +// 交易帐务查询 成功返回结果 +type TaobaoTradeAmountGetAPIResponseModel struct { + XMLName xml.Name `xml:"trade_amount_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 主订单的财务信息详情 + TradeAmount *TradeAmount `json:"trade_amount,omitempty" xml:"trade_amount,omitempty"` +} diff --git a/model/trade/TaobaoTradeAmountGetResponse.go b/model/trade/TaobaoTradeAmountGetResponse.go deleted file mode 100644 index c51dc0553e..0000000000 --- a/model/trade/TaobaoTradeAmountGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -交易帐务查询 API返回值 -taobao.trade.amount.get - -卖家查询该笔交易的资金帐务相关的数据; -1. 只供卖家使用,买家不可使用 -2. 可查询所有的状态的交易,但不同状态时交易的相关数据可能会有不同 -*/ -type TaobaoTradeAmountGetAPIResponse struct { - model.CommonResponse - TaobaoTradeAmountGetResponse -} - -// 交易帐务查询 成功返回结果 -type TaobaoTradeAmountGetResponse struct { - XMLName xml.Name `xml:"trade_amount_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 主订单的财务信息详情 - TradeAmount *TradeAmount `json:"trade_amount,omitempty" xml:"trade_amount,omitempty"` -} diff --git a/model/trade/TaobaoTradeCloseAPIRequest.go b/model/trade/TaobaoTradeCloseAPIRequest.go new file mode 100644 index 0000000000..6112095b22 --- /dev/null +++ b/model/trade/TaobaoTradeCloseAPIRequest.go @@ -0,0 +1,66 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家关闭一笔交易 API请求 +taobao.trade.close + +关闭一笔订单,可以是主订单或子订单。当订单从创建到关闭时间小于10s的时候,会报“CLOSE_TRADE_TOO_FAST”错误。 +*/ +type TaobaoTradeCloseAPIRequest struct { + model.Params + // 主订单或子订单编号。 + _tid int64 + // 交易关闭原因。可以选择的理由有:1.未及时付款2、买家不想买了3、买家信息填写错误,重新拍4、恶意买家/同行捣乱5、缺货6、买家拍错了7、同城见面交易 + _closeReason string +} + +// 初始化TaobaoTradeCloseAPIRequest对象 +func NewTaobaoTradeCloseRequest() *TaobaoTradeCloseAPIRequest{ + return &TaobaoTradeCloseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradeCloseAPIRequest) GetApiMethodName() string { + return "taobao.trade.close" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradeCloseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 主订单或子订单编号。 +func (r *TaobaoTradeCloseAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoTradeCloseAPIRequest) GetTid() int64 { + return r._tid +} +// CloseReason Setter +// 交易关闭原因。可以选择的理由有:1.未及时付款2、买家不想买了3、买家信息填写错误,重新拍4、恶意买家/同行捣乱5、缺货6、买家拍错了7、同城见面交易 +func (r *TaobaoTradeCloseAPIRequest) SetCloseReason(_closeReason string) error { + r._closeReason = _closeReason + r.Set("close_reason", _closeReason) + return nil +} + +// CloseReason Getter +func (r TaobaoTradeCloseAPIRequest) GetCloseReason() string { + return r._closeReason +} diff --git a/model/trade/TaobaoTradeCloseAPIResponse.go b/model/trade/TaobaoTradeCloseAPIResponse.go new file mode 100644 index 0000000000..c70c7c1977 --- /dev/null +++ b/model/trade/TaobaoTradeCloseAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家关闭一笔交易 API返回值 +taobao.trade.close + +关闭一笔订单,可以是主订单或子订单。当订单从创建到关闭时间小于10s的时候,会报“CLOSE_TRADE_TOO_FAST”错误。 +*/ +type TaobaoTradeCloseAPIResponse struct { + model.CommonResponse + TaobaoTradeCloseAPIResponseModel +} + +// 卖家关闭一笔交易 成功返回结果 +type TaobaoTradeCloseAPIResponseModel struct { + XMLName xml.Name `xml:"trade_close_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 关闭交易时返回的Trade信息,可用字段有tid和modified + Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` +} diff --git a/model/trade/TaobaoTradeCloseResponse.go b/model/trade/TaobaoTradeCloseResponse.go deleted file mode 100644 index e5e3a1a07e..0000000000 --- a/model/trade/TaobaoTradeCloseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家关闭一笔交易 API返回值 -taobao.trade.close - -关闭一笔订单,可以是主订单或子订单。当订单从创建到关闭时间小于10s的时候,会报“CLOSE_TRADE_TOO_FAST”错误。 -*/ -type TaobaoTradeCloseAPIResponse struct { - model.CommonResponse - TaobaoTradeCloseResponse -} - -// 卖家关闭一笔交易 成功返回结果 -type TaobaoTradeCloseResponse struct { - XMLName xml.Name `xml:"trade_close_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 关闭交易时返回的Trade信息,可用字段有tid和modified - Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` -} diff --git a/model/trade/TaobaoTradeConfirmfeeGetAPIRequest.go b/model/trade/TaobaoTradeConfirmfeeGetAPIRequest.go new file mode 100644 index 0000000000..70157ff7ef --- /dev/null +++ b/model/trade/TaobaoTradeConfirmfeeGetAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取交易确认收货费用 API请求 +taobao.trade.confirmfee.get + +获取交易确认收货费用,可以获取主订单或子订单的确认收货费用 +*/ +type TaobaoTradeConfirmfeeGetAPIRequest struct { + model.Params + // 交易主订单或子订单ID + _tid int64 +} + +// 初始化TaobaoTradeConfirmfeeGetAPIRequest对象 +func NewTaobaoTradeConfirmfeeGetRequest() *TaobaoTradeConfirmfeeGetAPIRequest{ + return &TaobaoTradeConfirmfeeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradeConfirmfeeGetAPIRequest) GetApiMethodName() string { + return "taobao.trade.confirmfee.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradeConfirmfeeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 交易主订单或子订单ID +func (r *TaobaoTradeConfirmfeeGetAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoTradeConfirmfeeGetAPIRequest) GetTid() int64 { + return r._tid +} diff --git a/model/trade/TaobaoTradeConfirmfeeGetAPIResponse.go b/model/trade/TaobaoTradeConfirmfeeGetAPIResponse.go new file mode 100644 index 0000000000..665714505e --- /dev/null +++ b/model/trade/TaobaoTradeConfirmfeeGetAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取交易确认收货费用 API返回值 +taobao.trade.confirmfee.get + +获取交易确认收货费用,可以获取主订单或子订单的确认收货费用 +*/ +type TaobaoTradeConfirmfeeGetAPIResponse struct { + model.CommonResponse + TaobaoTradeConfirmfeeGetAPIResponseModel +} + +// 获取交易确认收货费用 成功返回结果 +type TaobaoTradeConfirmfeeGetAPIResponseModel struct { + XMLName xml.Name `xml:"trade_confirmfee_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 获取到的交易确认收货费用 + TradeConfirmFee *TradeConfirmFee `json:"trade_confirm_fee,omitempty" xml:"trade_confirm_fee,omitempty"` +} diff --git a/model/trade/TaobaoTradeConfirmfeeGetResponse.go b/model/trade/TaobaoTradeConfirmfeeGetResponse.go deleted file mode 100644 index 14fa185ccd..0000000000 --- a/model/trade/TaobaoTradeConfirmfeeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取交易确认收货费用 API返回值 -taobao.trade.confirmfee.get - -获取交易确认收货费用,可以获取主订单或子订单的确认收货费用 -*/ -type TaobaoTradeConfirmfeeGetAPIResponse struct { - model.CommonResponse - TaobaoTradeConfirmfeeGetResponse -} - -// 获取交易确认收货费用 成功返回结果 -type TaobaoTradeConfirmfeeGetResponse struct { - XMLName xml.Name `xml:"trade_confirmfee_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 获取到的交易确认收货费用 - TradeConfirmFee *TradeConfirmFee `json:"trade_confirm_fee,omitempty" xml:"trade_confirm_fee,omitempty"` -} diff --git a/model/trade/TaobaoTradeFullinfoGetAPIRequest.go b/model/trade/TaobaoTradeFullinfoGetAPIRequest.go new file mode 100644 index 0000000000..c396e6d821 --- /dev/null +++ b/model/trade/TaobaoTradeFullinfoGetAPIRequest.go @@ -0,0 +1,85 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单笔交易的详细信息 API请求 +taobao.trade.fullinfo.get + +获取单笔交易的详细信息 +
1. 只有单笔订单的情况下Trade数据结构中才包含商品相关的信息 +
2. 获取到的Order中的payment字段在单笔子订单时包含物流费用,多笔子订单时不包含物流费用 +
3. 获取红包优惠金额可以使用字段 coupon_fee +
4. 请按需获取字段,减少TOP系统的压力 +
点击查看更多交易API说明 +*/ +type TaobaoTradeFullinfoGetAPIRequest struct { + model.Params + // 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。 + _fields string + // 交易编号 + _tid int64 + // appkey未对接oaid加密,则忽略该字段。对接oaid加密情况下,(收货人+手机号+座机+收货地址+create)5个字段组合成oaid,原始订单上座机为空也满足条件。传true,代表必须返回oaid,生成不了就报isv.oaid-field-miss错误;默认或者传false,满足生成条件则返回oaid,否则为空 + _includeOaid string +} + +// 初始化TaobaoTradeFullinfoGetAPIRequest对象 +func NewTaobaoTradeFullinfoGetRequest() *TaobaoTradeFullinfoGetAPIRequest{ + return &TaobaoTradeFullinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradeFullinfoGetAPIRequest) GetApiMethodName() string { + return "taobao.trade.fullinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradeFullinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。 +func (r *TaobaoTradeFullinfoGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoTradeFullinfoGetAPIRequest) GetFields() string { + return r._fields +} +// Tid Setter +// 交易编号 +func (r *TaobaoTradeFullinfoGetAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoTradeFullinfoGetAPIRequest) GetTid() int64 { + return r._tid +} +// IncludeOaid Setter +// appkey未对接oaid加密,则忽略该字段。对接oaid加密情况下,(收货人+手机号+座机+收货地址+create)5个字段组合成oaid,原始订单上座机为空也满足条件。传true,代表必须返回oaid,生成不了就报isv.oaid-field-miss错误;默认或者传false,满足生成条件则返回oaid,否则为空 +func (r *TaobaoTradeFullinfoGetAPIRequest) SetIncludeOaid(_includeOaid string) error { + r._includeOaid = _includeOaid + r.Set("include_oaid", _includeOaid) + return nil +} + +// IncludeOaid Getter +func (r TaobaoTradeFullinfoGetAPIRequest) GetIncludeOaid() string { + return r._includeOaid +} diff --git a/model/trade/TaobaoTradeFullinfoGetAPIResponse.go b/model/trade/TaobaoTradeFullinfoGetAPIResponse.go new file mode 100644 index 0000000000..076a6796fc --- /dev/null +++ b/model/trade/TaobaoTradeFullinfoGetAPIResponse.go @@ -0,0 +1,32 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单笔交易的详细信息 API返回值 +taobao.trade.fullinfo.get + +获取单笔交易的详细信息 +
1. 只有单笔订单的情况下Trade数据结构中才包含商品相关的信息 +
2. 获取到的Order中的payment字段在单笔子订单时包含物流费用,多笔子订单时不包含物流费用 +
3. 获取红包优惠金额可以使用字段 coupon_fee +
4. 请按需获取字段,减少TOP系统的压力 +
点击查看更多交易API说明 +*/ +type TaobaoTradeFullinfoGetAPIResponse struct { + model.CommonResponse + TaobaoTradeFullinfoGetAPIResponseModel +} + +// 获取单笔交易的详细信息 成功返回结果 +type TaobaoTradeFullinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"trade_fullinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 交易主订单信息 + Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` +} diff --git a/model/trade/TaobaoTradeFullinfoGetResponse.go b/model/trade/TaobaoTradeFullinfoGetResponse.go deleted file mode 100644 index d4b40ed03b..0000000000 --- a/model/trade/TaobaoTradeFullinfoGetResponse.go +++ /dev/null @@ -1,32 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取单笔交易的详细信息 API返回值 -taobao.trade.fullinfo.get - -获取单笔交易的详细信息 -
1. 只有单笔订单的情况下Trade数据结构中才包含商品相关的信息 -
2. 获取到的Order中的payment字段在单笔子订单时包含物流费用,多笔子订单时不包含物流费用 -
3. 获取红包优惠金额可以使用字段 coupon_fee -
4. 请按需获取字段,减少TOP系统的压力 -
点击查看更多交易API说明 -*/ -type TaobaoTradeFullinfoGetAPIResponse struct { - model.CommonResponse - TaobaoTradeFullinfoGetResponse -} - -// 获取单笔交易的详细信息 成功返回结果 -type TaobaoTradeFullinfoGetResponse struct { - XMLName xml.Name `xml:"trade_fullinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 交易主订单信息 - Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` -} diff --git a/model/trade/TaobaoTradeGetAPIRequest.go b/model/trade/TaobaoTradeGetAPIRequest.go new file mode 100644 index 0000000000..caae08c097 --- /dev/null +++ b/model/trade/TaobaoTradeGetAPIRequest.go @@ -0,0 +1,67 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单笔交易的部分信息(性能高) API请求 +taobao.trade.get + +获取单笔交易的部分信息 +
点击查看更多交易API说明 +*/ +type TaobaoTradeGetAPIRequest struct { + model.Params + // 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。 + _fields string + // 交易编号 + _tid int64 +} + +// 初始化TaobaoTradeGetAPIRequest对象 +func NewTaobaoTradeGetRequest() *TaobaoTradeGetAPIRequest{ + return &TaobaoTradeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradeGetAPIRequest) GetApiMethodName() string { + return "taobao.trade.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。 +func (r *TaobaoTradeGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoTradeGetAPIRequest) GetFields() string { + return r._fields +} +// Tid Setter +// 交易编号 +func (r *TaobaoTradeGetAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoTradeGetAPIRequest) GetTid() int64 { + return r._tid +} diff --git a/model/trade/TaobaoTradeGetAPIResponse.go b/model/trade/TaobaoTradeGetAPIResponse.go new file mode 100644 index 0000000000..db9125683b --- /dev/null +++ b/model/trade/TaobaoTradeGetAPIResponse.go @@ -0,0 +1,28 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单笔交易的部分信息(性能高) API返回值 +taobao.trade.get + +获取单笔交易的部分信息 +
点击查看更多交易API说明 +*/ +type TaobaoTradeGetAPIResponse struct { + model.CommonResponse + TaobaoTradeGetAPIResponseModel +} + +// 获取单笔交易的部分信息(性能高) 成功返回结果 +type TaobaoTradeGetAPIResponseModel struct { + XMLName xml.Name `xml:"trade_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 搜索到的交易信息列表,返回的Trade和Order中包含的具体信息为入参fields请求的字段信息 + Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` +} diff --git a/model/trade/TaobaoTradeGetResponse.go b/model/trade/TaobaoTradeGetResponse.go deleted file mode 100644 index f747824477..0000000000 --- a/model/trade/TaobaoTradeGetResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取单笔交易的部分信息(性能高) API返回值 -taobao.trade.get - -获取单笔交易的部分信息 -
点击查看更多交易API说明 -*/ -type TaobaoTradeGetAPIResponse struct { - model.CommonResponse - TaobaoTradeGetResponse -} - -// 获取单笔交易的部分信息(性能高) 成功返回结果 -type TaobaoTradeGetResponse struct { - XMLName xml.Name `xml:"trade_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 搜索到的交易信息列表,返回的Trade和Order中包含的具体信息为入参fields请求的字段信息 - Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` -} diff --git a/model/trade/TaobaoTradeInvoiceAmountGetAPIRequest.go b/model/trade/TaobaoTradeInvoiceAmountGetAPIRequest.go new file mode 100644 index 0000000000..a8ff962aec --- /dev/null +++ b/model/trade/TaobaoTradeInvoiceAmountGetAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取订单应开票金额 API请求 +taobao.trade.invoice.amount.get + +订单应开票金额计算 +*/ +type TaobaoTradeInvoiceAmountGetAPIRequest struct { + model.Params + // 业务订单ID + _tid int64 +} + +// 初始化TaobaoTradeInvoiceAmountGetAPIRequest对象 +func NewTaobaoTradeInvoiceAmountGetRequest() *TaobaoTradeInvoiceAmountGetAPIRequest{ + return &TaobaoTradeInvoiceAmountGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradeInvoiceAmountGetAPIRequest) GetApiMethodName() string { + return "taobao.trade.invoice.amount.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradeInvoiceAmountGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 业务订单ID +func (r *TaobaoTradeInvoiceAmountGetAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoTradeInvoiceAmountGetAPIRequest) GetTid() int64 { + return r._tid +} diff --git a/model/trade/TaobaoTradeInvoiceAmountGetAPIResponse.go b/model/trade/TaobaoTradeInvoiceAmountGetAPIResponse.go new file mode 100644 index 0000000000..4ec577bbfc --- /dev/null +++ b/model/trade/TaobaoTradeInvoiceAmountGetAPIResponse.go @@ -0,0 +1,29 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取订单应开票金额 API返回值 +taobao.trade.invoice.amount.get + +订单应开票金额计算 +*/ +type TaobaoTradeInvoiceAmountGetAPIResponse struct { + model.CommonResponse + TaobaoTradeInvoiceAmountGetAPIResponseModel +} + +// 获取订单应开票金额 成功返回结果 +type TaobaoTradeInvoiceAmountGetAPIResponseModel struct { + XMLName xml.Name `xml:"trade_invoice_amount_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 应开票给消费者的金额,单位分 + ConsumerInvoiceAmount string `json:"consumer_invoice_amount,omitempty" xml:"consumer_invoice_amount,omitempty"` + // 应开票给平台的金额,单位分 + PlatformInvoiceAmount string `json:"platform_invoice_amount,omitempty" xml:"platform_invoice_amount,omitempty"` +} diff --git a/model/trade/TaobaoTradeInvoiceAmountGetResponse.go b/model/trade/TaobaoTradeInvoiceAmountGetResponse.go deleted file mode 100644 index 7726dec254..0000000000 --- a/model/trade/TaobaoTradeInvoiceAmountGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取订单应开票金额 API返回值 -taobao.trade.invoice.amount.get - -订单应开票金额计算 -*/ -type TaobaoTradeInvoiceAmountGetAPIResponse struct { - model.CommonResponse - TaobaoTradeInvoiceAmountGetResponse -} - -// 获取订单应开票金额 成功返回结果 -type TaobaoTradeInvoiceAmountGetResponse struct { - XMLName xml.Name `xml:"trade_invoice_amount_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 应开票给消费者的金额,单位分 - ConsumerInvoiceAmount string `json:"consumer_invoice_amount,omitempty" xml:"consumer_invoice_amount,omitempty"` - // 应开票给平台的金额,单位分 - PlatformInvoiceAmount string `json:"platform_invoice_amount,omitempty" xml:"platform_invoice_amount,omitempty"` -} diff --git a/model/trade/TaobaoTradeMemoAddAPIRequest.go b/model/trade/TaobaoTradeMemoAddAPIRequest.go new file mode 100644 index 0000000000..ffa685830b --- /dev/null +++ b/model/trade/TaobaoTradeMemoAddAPIRequest.go @@ -0,0 +1,80 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +对一笔交易添加备注 API请求 +taobao.trade.memo.add + +根据登录用户的身份(买家或卖家),自动添加相应的交易备注,不能重复调用些接口添加备注,需要更新备注请用taobao.trade.memo.update +*/ +type TaobaoTradeMemoAddAPIRequest struct { + model.Params + // 交易编号 + _tid int64 + // 交易备注。最大长度: 1000个字节 + _memo string + // 交易备注旗帜,可选值为:0(灰色), 1(红色), 2(黄色), 3(绿色), 4(蓝色), 5(粉红色),默认值为0 + _flag int64 +} + +// 初始化TaobaoTradeMemoAddAPIRequest对象 +func NewTaobaoTradeMemoAddRequest() *TaobaoTradeMemoAddAPIRequest{ + return &TaobaoTradeMemoAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradeMemoAddAPIRequest) GetApiMethodName() string { + return "taobao.trade.memo.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradeMemoAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 交易编号 +func (r *TaobaoTradeMemoAddAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoTradeMemoAddAPIRequest) GetTid() int64 { + return r._tid +} +// Memo Setter +// 交易备注。最大长度: 1000个字节 +func (r *TaobaoTradeMemoAddAPIRequest) SetMemo(_memo string) error { + r._memo = _memo + r.Set("memo", _memo) + return nil +} + +// Memo Getter +func (r TaobaoTradeMemoAddAPIRequest) GetMemo() string { + return r._memo +} +// Flag Setter +// 交易备注旗帜,可选值为:0(灰色), 1(红色), 2(黄色), 3(绿色), 4(蓝色), 5(粉红色),默认值为0 +func (r *TaobaoTradeMemoAddAPIRequest) SetFlag(_flag int64) error { + r._flag = _flag + r.Set("flag", _flag) + return nil +} + +// Flag Getter +func (r TaobaoTradeMemoAddAPIRequest) GetFlag() int64 { + return r._flag +} diff --git a/model/trade/TaobaoTradeMemoAddAPIResponse.go b/model/trade/TaobaoTradeMemoAddAPIResponse.go new file mode 100644 index 0000000000..b8cc961cf1 --- /dev/null +++ b/model/trade/TaobaoTradeMemoAddAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +对一笔交易添加备注 API返回值 +taobao.trade.memo.add + +根据登录用户的身份(买家或卖家),自动添加相应的交易备注,不能重复调用些接口添加备注,需要更新备注请用taobao.trade.memo.update +*/ +type TaobaoTradeMemoAddAPIResponse struct { + model.CommonResponse + TaobaoTradeMemoAddAPIResponseModel +} + +// 对一笔交易添加备注 成功返回结果 +type TaobaoTradeMemoAddAPIResponseModel struct { + XMLName xml.Name `xml:"trade_memo_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 对一笔交易添加备注后返回其对应的Trade,Trade中可用的返回字段有tid和created + Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` +} diff --git a/model/trade/TaobaoTradeMemoAddResponse.go b/model/trade/TaobaoTradeMemoAddResponse.go deleted file mode 100644 index 5cad94182a..0000000000 --- a/model/trade/TaobaoTradeMemoAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -对一笔交易添加备注 API返回值 -taobao.trade.memo.add - -根据登录用户的身份(买家或卖家),自动添加相应的交易备注,不能重复调用些接口添加备注,需要更新备注请用taobao.trade.memo.update -*/ -type TaobaoTradeMemoAddAPIResponse struct { - model.CommonResponse - TaobaoTradeMemoAddResponse -} - -// 对一笔交易添加备注 成功返回结果 -type TaobaoTradeMemoAddResponse struct { - XMLName xml.Name `xml:"trade_memo_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 对一笔交易添加备注后返回其对应的Trade,Trade中可用的返回字段有tid和created - Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` -} diff --git a/model/trade/TaobaoTradeMemoUpdateAPIRequest.go b/model/trade/TaobaoTradeMemoUpdateAPIRequest.go new file mode 100644 index 0000000000..0b330796d8 --- /dev/null +++ b/model/trade/TaobaoTradeMemoUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改交易备注 API请求 +taobao.trade.memo.update + +需要商家或以上权限才可调用此接口,可重复调用本接口更新交易备注,本接口同时具有添加备注的功能 +*/ +type TaobaoTradeMemoUpdateAPIRequest struct { + model.Params + // 交易编号 + _tid int64 + // 卖家交易备注。最大长度: 1000个字节 + _memo string + // 卖家交易备注旗帜,可选值为:0(灰色), 1(红色), 2(黄色), 3(绿色), 4(蓝色), 5(粉红色),默认值为0 + _flag int64 + // 是否对memo的值置空若为true,则不管传入的memo字段的值是否为空,都将会对已有的memo值清空,慎用;若用false,则会根据memo是否为空来修改memo的值:若memo为空则忽略对已有memo字段的修改,若memo非空,则使用新传入的memo覆盖已有的memo的值 + _reset bool +} + +// 初始化TaobaoTradeMemoUpdateAPIRequest对象 +func NewTaobaoTradeMemoUpdateRequest() *TaobaoTradeMemoUpdateAPIRequest{ + return &TaobaoTradeMemoUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradeMemoUpdateAPIRequest) GetApiMethodName() string { + return "taobao.trade.memo.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradeMemoUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 交易编号 +func (r *TaobaoTradeMemoUpdateAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoTradeMemoUpdateAPIRequest) GetTid() int64 { + return r._tid +} +// Memo Setter +// 卖家交易备注。最大长度: 1000个字节 +func (r *TaobaoTradeMemoUpdateAPIRequest) SetMemo(_memo string) error { + r._memo = _memo + r.Set("memo", _memo) + return nil +} + +// Memo Getter +func (r TaobaoTradeMemoUpdateAPIRequest) GetMemo() string { + return r._memo +} +// Flag Setter +// 卖家交易备注旗帜,可选值为:0(灰色), 1(红色), 2(黄色), 3(绿色), 4(蓝色), 5(粉红色),默认值为0 +func (r *TaobaoTradeMemoUpdateAPIRequest) SetFlag(_flag int64) error { + r._flag = _flag + r.Set("flag", _flag) + return nil +} + +// Flag Getter +func (r TaobaoTradeMemoUpdateAPIRequest) GetFlag() int64 { + return r._flag +} +// Reset Setter +// 是否对memo的值置空若为true,则不管传入的memo字段的值是否为空,都将会对已有的memo值清空,慎用;若用false,则会根据memo是否为空来修改memo的值:若memo为空则忽略对已有memo字段的修改,若memo非空,则使用新传入的memo覆盖已有的memo的值 +func (r *TaobaoTradeMemoUpdateAPIRequest) SetReset(_reset bool) error { + r._reset = _reset + r.Set("reset", _reset) + return nil +} + +// Reset Getter +func (r TaobaoTradeMemoUpdateAPIRequest) GetReset() bool { + return r._reset +} diff --git a/model/trade/TaobaoTradeMemoUpdateAPIResponse.go b/model/trade/TaobaoTradeMemoUpdateAPIResponse.go new file mode 100644 index 0000000000..aa8df0af4f --- /dev/null +++ b/model/trade/TaobaoTradeMemoUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改交易备注 API返回值 +taobao.trade.memo.update + +需要商家或以上权限才可调用此接口,可重复调用本接口更新交易备注,本接口同时具有添加备注的功能 +*/ +type TaobaoTradeMemoUpdateAPIResponse struct { + model.CommonResponse + TaobaoTradeMemoUpdateAPIResponseModel +} + +// 修改交易备注 成功返回结果 +type TaobaoTradeMemoUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"trade_memo_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 更新交易的备注信息后返回的Trade,其中可用字段为tid和modified + Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` +} diff --git a/model/trade/TaobaoTradeMemoUpdateResponse.go b/model/trade/TaobaoTradeMemoUpdateResponse.go deleted file mode 100644 index 45d9be4966..0000000000 --- a/model/trade/TaobaoTradeMemoUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改交易备注 API返回值 -taobao.trade.memo.update - -需要商家或以上权限才可调用此接口,可重复调用本接口更新交易备注,本接口同时具有添加备注的功能 -*/ -type TaobaoTradeMemoUpdateAPIResponse struct { - model.CommonResponse - TaobaoTradeMemoUpdateResponse -} - -// 修改交易备注 成功返回结果 -type TaobaoTradeMemoUpdateResponse struct { - XMLName xml.Name `xml:"trade_memo_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 更新交易的备注信息后返回的Trade,其中可用字段为tid和modified - Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` -} diff --git a/model/trade/TaobaoTradeOrderskuUpdateAPIRequest.go b/model/trade/TaobaoTradeOrderskuUpdateAPIRequest.go new file mode 100644 index 0000000000..73496aca71 --- /dev/null +++ b/model/trade/TaobaoTradeOrderskuUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新交易的销售属性 API请求 +taobao.trade.ordersku.update + +只能更新发货前子订单的销售属性
只能更新价格相同的销售属性。对于拍下减库存的交易会同步更新销售属性的库存量。对于旺店的交易,要使用商品扩展信息中的SKU价格来比较。
必须使用sku_id或sku_props中的一个参数来更新,如果两个都传的话,sku_id优先 +*/ +type TaobaoTradeOrderskuUpdateAPIRequest struct { + model.Params + // 子订单编号(对于单笔订单的交易可以传交易编号)。 + _oid int64 + // 销售属性编号,可以通过taobao.item.skus.get获取订单对应的商品的所有销售属性。 + _skuId int64 + // 销售属性组合串,格式:p1:v1;p2:v2,如:1627207:28329;20509:28314。可以通过taobao.item.skus.get获取订单对应的商品的所有销售属性。 + _skuProps string +} + +// 初始化TaobaoTradeOrderskuUpdateAPIRequest对象 +func NewTaobaoTradeOrderskuUpdateRequest() *TaobaoTradeOrderskuUpdateAPIRequest{ + return &TaobaoTradeOrderskuUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradeOrderskuUpdateAPIRequest) GetApiMethodName() string { + return "taobao.trade.ordersku.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradeOrderskuUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Oid Setter +// 子订单编号(对于单笔订单的交易可以传交易编号)。 +func (r *TaobaoTradeOrderskuUpdateAPIRequest) SetOid(_oid int64) error { + r._oid = _oid + r.Set("oid", _oid) + return nil +} + +// Oid Getter +func (r TaobaoTradeOrderskuUpdateAPIRequest) GetOid() int64 { + return r._oid +} +// SkuId Setter +// 销售属性编号,可以通过taobao.item.skus.get获取订单对应的商品的所有销售属性。 +func (r *TaobaoTradeOrderskuUpdateAPIRequest) SetSkuId(_skuId int64) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TaobaoTradeOrderskuUpdateAPIRequest) GetSkuId() int64 { + return r._skuId +} +// SkuProps Setter +// 销售属性组合串,格式:p1:v1;p2:v2,如:1627207:28329;20509:28314。可以通过taobao.item.skus.get获取订单对应的商品的所有销售属性。 +func (r *TaobaoTradeOrderskuUpdateAPIRequest) SetSkuProps(_skuProps string) error { + r._skuProps = _skuProps + r.Set("sku_props", _skuProps) + return nil +} + +// SkuProps Getter +func (r TaobaoTradeOrderskuUpdateAPIRequest) GetSkuProps() string { + return r._skuProps +} diff --git a/model/trade/TaobaoTradeOrderskuUpdateAPIResponse.go b/model/trade/TaobaoTradeOrderskuUpdateAPIResponse.go new file mode 100644 index 0000000000..73ff771a16 --- /dev/null +++ b/model/trade/TaobaoTradeOrderskuUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新交易的销售属性 API返回值 +taobao.trade.ordersku.update + +只能更新发货前子订单的销售属性
只能更新价格相同的销售属性。对于拍下减库存的交易会同步更新销售属性的库存量。对于旺店的交易,要使用商品扩展信息中的SKU价格来比较。
必须使用sku_id或sku_props中的一个参数来更新,如果两个都传的话,sku_id优先 +*/ +type TaobaoTradeOrderskuUpdateAPIResponse struct { + model.CommonResponse + TaobaoTradeOrderskuUpdateAPIResponseModel +} + +// 更新交易的销售属性 成功返回结果 +type TaobaoTradeOrderskuUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"trade_ordersku_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 只返回oid和modified + Order *Order `json:"order,omitempty" xml:"order,omitempty"` +} diff --git a/model/trade/TaobaoTradeOrderskuUpdateResponse.go b/model/trade/TaobaoTradeOrderskuUpdateResponse.go deleted file mode 100644 index 6c699df2c4..0000000000 --- a/model/trade/TaobaoTradeOrderskuUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新交易的销售属性 API返回值 -taobao.trade.ordersku.update - -只能更新发货前子订单的销售属性
只能更新价格相同的销售属性。对于拍下减库存的交易会同步更新销售属性的库存量。对于旺店的交易,要使用商品扩展信息中的SKU价格来比较。
必须使用sku_id或sku_props中的一个参数来更新,如果两个都传的话,sku_id优先 -*/ -type TaobaoTradeOrderskuUpdateAPIResponse struct { - model.CommonResponse - TaobaoTradeOrderskuUpdateResponse -} - -// 更新交易的销售属性 成功返回结果 -type TaobaoTradeOrderskuUpdateResponse struct { - XMLName xml.Name `xml:"trade_ordersku_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 只返回oid和modified - Order *Order `json:"order,omitempty" xml:"order,omitempty"` -} diff --git a/model/trade/TaobaoTradePostageUpdateAPIRequest.go b/model/trade/TaobaoTradePostageUpdateAPIRequest.go new file mode 100644 index 0000000000..437af8e327 --- /dev/null +++ b/model/trade/TaobaoTradePostageUpdateAPIRequest.go @@ -0,0 +1,67 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改交易邮费价格 API请求 +taobao.trade.postage.update + +修改订单邮费接口,通过传入订单编号和邮费价格,修改订单的邮费,返回修改时间modified,邮费post_fee,总费用total_fee。 +
API取消加邮费功能通知:http://open.taobao.com/support/announcement_detail.htm?tid=24750 +*/ +type TaobaoTradePostageUpdateAPIRequest struct { + model.Params + // 主订单编号 + _tid int64 + // 邮费价格(邮费单位是元) + _postFee string +} + +// 初始化TaobaoTradePostageUpdateAPIRequest对象 +func NewTaobaoTradePostageUpdateRequest() *TaobaoTradePostageUpdateAPIRequest{ + return &TaobaoTradePostageUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradePostageUpdateAPIRequest) GetApiMethodName() string { + return "taobao.trade.postage.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradePostageUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 主订单编号 +func (r *TaobaoTradePostageUpdateAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoTradePostageUpdateAPIRequest) GetTid() int64 { + return r._tid +} +// PostFee Setter +// 邮费价格(邮费单位是元) +func (r *TaobaoTradePostageUpdateAPIRequest) SetPostFee(_postFee string) error { + r._postFee = _postFee + r.Set("post_fee", _postFee) + return nil +} + +// PostFee Getter +func (r TaobaoTradePostageUpdateAPIRequest) GetPostFee() string { + return r._postFee +} diff --git a/model/trade/TaobaoTradePostageUpdateAPIResponse.go b/model/trade/TaobaoTradePostageUpdateAPIResponse.go new file mode 100644 index 0000000000..d1665bcd2b --- /dev/null +++ b/model/trade/TaobaoTradePostageUpdateAPIResponse.go @@ -0,0 +1,28 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改交易邮费价格 API返回值 +taobao.trade.postage.update + +修改订单邮费接口,通过传入订单编号和邮费价格,修改订单的邮费,返回修改时间modified,邮费post_fee,总费用total_fee。 +
API取消加邮费功能通知:http://open.taobao.com/support/announcement_detail.htm?tid=24750 +*/ +type TaobaoTradePostageUpdateAPIResponse struct { + model.CommonResponse + TaobaoTradePostageUpdateAPIResponseModel +} + +// 修改交易邮费价格 成功返回结果 +type TaobaoTradePostageUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"trade_postage_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回trade类型,其中包含修改时间modified,修改邮费post_fee,修改后的总费用total_fee和买家实付款payment + Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` +} diff --git a/model/trade/TaobaoTradePostageUpdateResponse.go b/model/trade/TaobaoTradePostageUpdateResponse.go deleted file mode 100644 index 3868963571..0000000000 --- a/model/trade/TaobaoTradePostageUpdateResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改交易邮费价格 API返回值 -taobao.trade.postage.update - -修改订单邮费接口,通过传入订单编号和邮费价格,修改订单的邮费,返回修改时间modified,邮费post_fee,总费用total_fee。 -
API取消加邮费功能通知:http://open.taobao.com/support/announcement_detail.htm?tid=24750 -*/ -type TaobaoTradePostageUpdateAPIResponse struct { - model.CommonResponse - TaobaoTradePostageUpdateResponse -} - -// 修改交易邮费价格 成功返回结果 -type TaobaoTradePostageUpdateResponse struct { - XMLName xml.Name `xml:"trade_postage_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回trade类型,其中包含修改时间modified,修改邮费post_fee,修改后的总费用total_fee和买家实付款payment - Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` -} diff --git a/model/trade/TaobaoTradeReceivetimeDelayAPIRequest.go b/model/trade/TaobaoTradeReceivetimeDelayAPIRequest.go new file mode 100644 index 0000000000..e4957eda4b --- /dev/null +++ b/model/trade/TaobaoTradeReceivetimeDelayAPIRequest.go @@ -0,0 +1,66 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +延长交易收货时间 API请求 +taobao.trade.receivetime.delay + +延长交易收货时间 +*/ +type TaobaoTradeReceivetimeDelayAPIRequest struct { + model.Params + // 主订单号 + _tid int64 + // 延长收货的天数,可选值为:3, 5, 7, 10。 + _days int64 +} + +// 初始化TaobaoTradeReceivetimeDelayAPIRequest对象 +func NewTaobaoTradeReceivetimeDelayRequest() *TaobaoTradeReceivetimeDelayAPIRequest{ + return &TaobaoTradeReceivetimeDelayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradeReceivetimeDelayAPIRequest) GetApiMethodName() string { + return "taobao.trade.receivetime.delay" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradeReceivetimeDelayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 主订单号 +func (r *TaobaoTradeReceivetimeDelayAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoTradeReceivetimeDelayAPIRequest) GetTid() int64 { + return r._tid +} +// Days Setter +// 延长收货的天数,可选值为:3, 5, 7, 10。 +func (r *TaobaoTradeReceivetimeDelayAPIRequest) SetDays(_days int64) error { + r._days = _days + r.Set("days", _days) + return nil +} + +// Days Getter +func (r TaobaoTradeReceivetimeDelayAPIRequest) GetDays() int64 { + return r._days +} diff --git a/model/trade/TaobaoTradeReceivetimeDelayAPIResponse.go b/model/trade/TaobaoTradeReceivetimeDelayAPIResponse.go new file mode 100644 index 0000000000..529e3b3c54 --- /dev/null +++ b/model/trade/TaobaoTradeReceivetimeDelayAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +延长交易收货时间 API返回值 +taobao.trade.receivetime.delay + +延长交易收货时间 +*/ +type TaobaoTradeReceivetimeDelayAPIResponse struct { + model.CommonResponse + TaobaoTradeReceivetimeDelayAPIResponseModel +} + +// 延长交易收货时间 成功返回结果 +type TaobaoTradeReceivetimeDelayAPIResponseModel struct { + XMLName xml.Name `xml:"trade_receivetime_delay_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 更新后的交易数据,只包括tid和modified两个字段。 + Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` +} diff --git a/model/trade/TaobaoTradeReceivetimeDelayResponse.go b/model/trade/TaobaoTradeReceivetimeDelayResponse.go deleted file mode 100644 index 9a5d32f592..0000000000 --- a/model/trade/TaobaoTradeReceivetimeDelayResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -延长交易收货时间 API返回值 -taobao.trade.receivetime.delay - -延长交易收货时间 -*/ -type TaobaoTradeReceivetimeDelayAPIResponse struct { - model.CommonResponse - TaobaoTradeReceivetimeDelayResponse -} - -// 延长交易收货时间 成功返回结果 -type TaobaoTradeReceivetimeDelayResponse struct { - XMLName xml.Name `xml:"trade_receivetime_delay_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 更新后的交易数据,只包括tid和modified两个字段。 - Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` -} diff --git a/model/trade/TaobaoTradeShippingaddressUpdateAPIRequest.go b/model/trade/TaobaoTradeShippingaddressUpdateAPIRequest.go new file mode 100644 index 0000000000..ced31a0e37 --- /dev/null +++ b/model/trade/TaobaoTradeShippingaddressUpdateAPIRequest.go @@ -0,0 +1,178 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更改交易的收货地址 API请求 +taobao.trade.shippingaddress.update + +只能更新一笔交易里面的买家收货地址
只能更新发货前(即买家已付款,等待卖家发货状态)的交易的买家收货地址
更新后的发货地址可以通过taobao.trade.fullinfo.get查到
参数中所说的字节为GBK编码的(英文和数字占1字节,中文占2字节) +*/ +type TaobaoTradeShippingaddressUpdateAPIRequest struct { + model.Params + // 交易编号。 + _tid int64 + // 收货人全名。最大长度为50个字节。 + _receiverName string + // 固定电话。最大长度为30个字节。 + _receiverPhone string + // 移动电话。最大长度为11个字节。 + _receiverMobile string + // 省份。最大长度为32个字节。如:浙江 + _receiverState string + // 城市。最大长度为32个字节。如:杭州 + _receiverCity string + // 区/县。最大长度为32个字节。如:西湖区 + _receiverDistrict string + // 收货地址。最大长度为228个字节。 + _receiverAddress string + // 邮政编码。必须由6个数字组成。 + _receiverZip string + // 四级地址。最大长度为32个字节。如:五常街道 + _receiverTown string +} + +// 初始化TaobaoTradeShippingaddressUpdateAPIRequest对象 +func NewTaobaoTradeShippingaddressUpdateRequest() *TaobaoTradeShippingaddressUpdateAPIRequest{ + return &TaobaoTradeShippingaddressUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradeShippingaddressUpdateAPIRequest) GetApiMethodName() string { + return "taobao.trade.shippingaddress.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradeShippingaddressUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 交易编号。 +func (r *TaobaoTradeShippingaddressUpdateAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoTradeShippingaddressUpdateAPIRequest) GetTid() int64 { + return r._tid +} +// ReceiverName Setter +// 收货人全名。最大长度为50个字节。 +func (r *TaobaoTradeShippingaddressUpdateAPIRequest) SetReceiverName(_receiverName string) error { + r._receiverName = _receiverName + r.Set("receiver_name", _receiverName) + return nil +} + +// ReceiverName Getter +func (r TaobaoTradeShippingaddressUpdateAPIRequest) GetReceiverName() string { + return r._receiverName +} +// ReceiverPhone Setter +// 固定电话。最大长度为30个字节。 +func (r *TaobaoTradeShippingaddressUpdateAPIRequest) SetReceiverPhone(_receiverPhone string) error { + r._receiverPhone = _receiverPhone + r.Set("receiver_phone", _receiverPhone) + return nil +} + +// ReceiverPhone Getter +func (r TaobaoTradeShippingaddressUpdateAPIRequest) GetReceiverPhone() string { + return r._receiverPhone +} +// ReceiverMobile Setter +// 移动电话。最大长度为11个字节。 +func (r *TaobaoTradeShippingaddressUpdateAPIRequest) SetReceiverMobile(_receiverMobile string) error { + r._receiverMobile = _receiverMobile + r.Set("receiver_mobile", _receiverMobile) + return nil +} + +// ReceiverMobile Getter +func (r TaobaoTradeShippingaddressUpdateAPIRequest) GetReceiverMobile() string { + return r._receiverMobile +} +// ReceiverState Setter +// 省份。最大长度为32个字节。如:浙江 +func (r *TaobaoTradeShippingaddressUpdateAPIRequest) SetReceiverState(_receiverState string) error { + r._receiverState = _receiverState + r.Set("receiver_state", _receiverState) + return nil +} + +// ReceiverState Getter +func (r TaobaoTradeShippingaddressUpdateAPIRequest) GetReceiverState() string { + return r._receiverState +} +// ReceiverCity Setter +// 城市。最大长度为32个字节。如:杭州 +func (r *TaobaoTradeShippingaddressUpdateAPIRequest) SetReceiverCity(_receiverCity string) error { + r._receiverCity = _receiverCity + r.Set("receiver_city", _receiverCity) + return nil +} + +// ReceiverCity Getter +func (r TaobaoTradeShippingaddressUpdateAPIRequest) GetReceiverCity() string { + return r._receiverCity +} +// ReceiverDistrict Setter +// 区/县。最大长度为32个字节。如:西湖区 +func (r *TaobaoTradeShippingaddressUpdateAPIRequest) SetReceiverDistrict(_receiverDistrict string) error { + r._receiverDistrict = _receiverDistrict + r.Set("receiver_district", _receiverDistrict) + return nil +} + +// ReceiverDistrict Getter +func (r TaobaoTradeShippingaddressUpdateAPIRequest) GetReceiverDistrict() string { + return r._receiverDistrict +} +// ReceiverAddress Setter +// 收货地址。最大长度为228个字节。 +func (r *TaobaoTradeShippingaddressUpdateAPIRequest) SetReceiverAddress(_receiverAddress string) error { + r._receiverAddress = _receiverAddress + r.Set("receiver_address", _receiverAddress) + return nil +} + +// ReceiverAddress Getter +func (r TaobaoTradeShippingaddressUpdateAPIRequest) GetReceiverAddress() string { + return r._receiverAddress +} +// ReceiverZip Setter +// 邮政编码。必须由6个数字组成。 +func (r *TaobaoTradeShippingaddressUpdateAPIRequest) SetReceiverZip(_receiverZip string) error { + r._receiverZip = _receiverZip + r.Set("receiver_zip", _receiverZip) + return nil +} + +// ReceiverZip Getter +func (r TaobaoTradeShippingaddressUpdateAPIRequest) GetReceiverZip() string { + return r._receiverZip +} +// ReceiverTown Setter +// 四级地址。最大长度为32个字节。如:五常街道 +func (r *TaobaoTradeShippingaddressUpdateAPIRequest) SetReceiverTown(_receiverTown string) error { + r._receiverTown = _receiverTown + r.Set("receiver_town", _receiverTown) + return nil +} + +// ReceiverTown Getter +func (r TaobaoTradeShippingaddressUpdateAPIRequest) GetReceiverTown() string { + return r._receiverTown +} diff --git a/model/trade/TaobaoTradeShippingaddressUpdateAPIResponse.go b/model/trade/TaobaoTradeShippingaddressUpdateAPIResponse.go new file mode 100644 index 0000000000..b188736743 --- /dev/null +++ b/model/trade/TaobaoTradeShippingaddressUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更改交易的收货地址 API返回值 +taobao.trade.shippingaddress.update + +只能更新一笔交易里面的买家收货地址
只能更新发货前(即买家已付款,等待卖家发货状态)的交易的买家收货地址
更新后的发货地址可以通过taobao.trade.fullinfo.get查到
参数中所说的字节为GBK编码的(英文和数字占1字节,中文占2字节) +*/ +type TaobaoTradeShippingaddressUpdateAPIResponse struct { + model.CommonResponse + TaobaoTradeShippingaddressUpdateAPIResponseModel +} + +// 更改交易的收货地址 成功返回结果 +type TaobaoTradeShippingaddressUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"trade_shippingaddress_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 交易结构 + Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` +} diff --git a/model/trade/TaobaoTradeShippingaddressUpdateResponse.go b/model/trade/TaobaoTradeShippingaddressUpdateResponse.go deleted file mode 100644 index ae3cf66205..0000000000 --- a/model/trade/TaobaoTradeShippingaddressUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更改交易的收货地址 API返回值 -taobao.trade.shippingaddress.update - -只能更新一笔交易里面的买家收货地址
只能更新发货前(即买家已付款,等待卖家发货状态)的交易的买家收货地址
更新后的发货地址可以通过taobao.trade.fullinfo.get查到
参数中所说的字节为GBK编码的(英文和数字占1字节,中文占2字节) -*/ -type TaobaoTradeShippingaddressUpdateAPIResponse struct { - model.CommonResponse - TaobaoTradeShippingaddressUpdateResponse -} - -// 更改交易的收货地址 成功返回结果 -type TaobaoTradeShippingaddressUpdateResponse struct { - XMLName xml.Name `xml:"trade_shippingaddress_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 交易结构 - Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` -} diff --git a/model/trade/TaobaoTradeVoucherUploadAPIRequest.go b/model/trade/TaobaoTradeVoucherUploadAPIRequest.go new file mode 100644 index 0000000000..4834e0dd39 --- /dev/null +++ b/model/trade/TaobaoTradeVoucherUploadAPIRequest.go @@ -0,0 +1,94 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝交易凭证上传 API请求 +taobao.trade.voucher.upload + +定制化交易流程中,涉及到 买家自定义 图片、声音、视频 等多富媒体文件,且该商品或服务的附属sku,通过此接口上传作为交易凭证。 +*/ +type TaobaoTradeVoucherUploadAPIRequest struct { + model.Params + // 上传文件的名称 + _fileName string + // 文件 + _fileData *model.File + // 该笔订单的卖家Nick + _sellerNick string + // 该笔订单的买家Nick(混淆nick) + _buyerNick string +} + +// 初始化TaobaoTradeVoucherUploadAPIRequest对象 +func NewTaobaoTradeVoucherUploadRequest() *TaobaoTradeVoucherUploadAPIRequest{ + return &TaobaoTradeVoucherUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradeVoucherUploadAPIRequest) GetApiMethodName() string { + return "taobao.trade.voucher.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradeVoucherUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FileName Setter +// 上传文件的名称 +func (r *TaobaoTradeVoucherUploadAPIRequest) SetFileName(_fileName string) error { + r._fileName = _fileName + r.Set("file_name", _fileName) + return nil +} + +// FileName Getter +func (r TaobaoTradeVoucherUploadAPIRequest) GetFileName() string { + return r._fileName +} +// FileData Setter +// 文件 +func (r *TaobaoTradeVoucherUploadAPIRequest) SetFileData(_fileData *model.File) error { + r._fileData = _fileData + r.Set("file_data", _fileData) + return nil +} + +// FileData Getter +func (r TaobaoTradeVoucherUploadAPIRequest) GetFileData() *model.File { + return r._fileData +} +// SellerNick Setter +// 该笔订单的卖家Nick +func (r *TaobaoTradeVoucherUploadAPIRequest) SetSellerNick(_sellerNick string) error { + r._sellerNick = _sellerNick + r.Set("seller_nick", _sellerNick) + return nil +} + +// SellerNick Getter +func (r TaobaoTradeVoucherUploadAPIRequest) GetSellerNick() string { + return r._sellerNick +} +// BuyerNick Setter +// 该笔订单的买家Nick(混淆nick) +func (r *TaobaoTradeVoucherUploadAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoTradeVoucherUploadAPIRequest) GetBuyerNick() string { + return r._buyerNick +} diff --git a/model/trade/TaobaoTradeVoucherUploadAPIResponse.go b/model/trade/TaobaoTradeVoucherUploadAPIResponse.go new file mode 100644 index 0000000000..434c1ee281 --- /dev/null +++ b/model/trade/TaobaoTradeVoucherUploadAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝交易凭证上传 API返回值 +taobao.trade.voucher.upload + +定制化交易流程中,涉及到 买家自定义 图片、声音、视频 等多富媒体文件,且该商品或服务的附属sku,通过此接口上传作为交易凭证。 +*/ +type TaobaoTradeVoucherUploadAPIResponse struct { + model.CommonResponse + TaobaoTradeVoucherUploadAPIResponseModel +} + +// 淘宝交易凭证上传 成功返回结果 +type TaobaoTradeVoucherUploadAPIResponseModel struct { + XMLName xml.Name `xml:"trade_voucher_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 上传到多媒体平台的文件 + File *File `json:"file,omitempty" xml:"file,omitempty"` +} diff --git a/model/trade/TaobaoTradeVoucherUploadResponse.go b/model/trade/TaobaoTradeVoucherUploadResponse.go deleted file mode 100644 index fca0d67004..0000000000 --- a/model/trade/TaobaoTradeVoucherUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝交易凭证上传 API返回值 -taobao.trade.voucher.upload - -定制化交易流程中,涉及到 买家自定义 图片、声音、视频 等多富媒体文件,且该商品或服务的附属sku,通过此接口上传作为交易凭证。 -*/ -type TaobaoTradeVoucherUploadAPIResponse struct { - model.CommonResponse - TaobaoTradeVoucherUploadResponse -} - -// 淘宝交易凭证上传 成功返回结果 -type TaobaoTradeVoucherUploadResponse struct { - XMLName xml.Name `xml:"trade_voucher_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 上传到多媒体平台的文件 - File *File `json:"file,omitempty" xml:"file,omitempty"` -} diff --git a/model/trade/TaobaoTradeWtverticalGetAPIRequest.go b/model/trade/TaobaoTradeWtverticalGetAPIRequest.go new file mode 100644 index 0000000000..d4be26dd7d --- /dev/null +++ b/model/trade/TaobaoTradeWtverticalGetAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +网厅垂直信息查询接口 API请求 +taobao.trade.wtvertical.get + +网厅订单垂直信息的查询 +*/ +type TaobaoTradeWtverticalGetAPIRequest struct { + model.Params + // 主订单列表,用“,”分隔tid的字符串,最大列表长度为15 + _tids []int64 +} + +// 初始化TaobaoTradeWtverticalGetAPIRequest对象 +func NewTaobaoTradeWtverticalGetRequest() *TaobaoTradeWtverticalGetAPIRequest{ + return &TaobaoTradeWtverticalGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradeWtverticalGetAPIRequest) GetApiMethodName() string { + return "taobao.trade.wtvertical.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradeWtverticalGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tids Setter +// 主订单列表,用“,”分隔tid的字符串,最大列表长度为15 +func (r *TaobaoTradeWtverticalGetAPIRequest) SetTids(_tids []int64) error { + r._tids = _tids + r.Set("tids", _tids) + return nil +} + +// Tids Getter +func (r TaobaoTradeWtverticalGetAPIRequest) GetTids() []int64 { + return r._tids +} diff --git a/model/trade/TaobaoTradeWtverticalGetAPIResponse.go b/model/trade/TaobaoTradeWtverticalGetAPIResponse.go new file mode 100644 index 0000000000..913a0e0d04 --- /dev/null +++ b/model/trade/TaobaoTradeWtverticalGetAPIResponse.go @@ -0,0 +1,29 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +网厅垂直信息查询接口 API返回值 +taobao.trade.wtvertical.get + +网厅订单垂直信息的查询 +*/ +type TaobaoTradeWtverticalGetAPIResponse struct { + model.CommonResponse + TaobaoTradeWtverticalGetAPIResponseModel +} + +// 网厅垂直信息查询接口 成功返回结果 +type TaobaoTradeWtverticalGetAPIResponseModel struct { + XMLName xml.Name `xml:"trade_wtvertical_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回交易垂直信息的数据结构 + WtextResults []WtExtResult `json:"wtext_results,omitempty" xml:"wtext_results>wt_ext_result,omitempty"` + // 返回查询记录的条数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/trade/TaobaoTradeWtverticalGetResponse.go b/model/trade/TaobaoTradeWtverticalGetResponse.go deleted file mode 100644 index 953f788bb0..0000000000 --- a/model/trade/TaobaoTradeWtverticalGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -网厅垂直信息查询接口 API返回值 -taobao.trade.wtvertical.get - -网厅订单垂直信息的查询 -*/ -type TaobaoTradeWtverticalGetAPIResponse struct { - model.CommonResponse - TaobaoTradeWtverticalGetResponse -} - -// 网厅垂直信息查询接口 成功返回结果 -type TaobaoTradeWtverticalGetResponse struct { - XMLName xml.Name `xml:"trade_wtvertical_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回交易垂直信息的数据结构 - WtextResults []WtExtResult `json:"wtext_results,omitempty" xml:"wtext_results>wt_ext_result,omitempty"` - // 返回查询记录的条数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/trade/TaobaoTradesSoldGetAPIRequest.go b/model/trade/TaobaoTradesSoldGetAPIRequest.go new file mode 100644 index 0000000000..79778002a9 --- /dev/null +++ b/model/trade/TaobaoTradesSoldGetAPIRequest.go @@ -0,0 +1,224 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家已卖出的交易数据(根据创建时间) API请求 +taobao.trades.sold.get + +搜索当前会话用户作为卖家已卖出的交易数据(只能获取到三个月以内的交易信息) +
1. 返回的数据结果是以订单的创建时间倒序排列的。 +
2. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.fullinfo.get获取订单详情。 +
注意:type字段的说明,如果该字段不传,接口默认只查4种类型订单,非默认查询的订单是不返回。遇到订单查不到的情况的,解决办法就是type加上订单类型就可正常返回了。 +
点击查看更多交易API说明 +*/ +type TaobaoTradesSoldGetAPIRequest struct { + model.Params + // 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。rx_audit_status=0,处方药未审核 + _fields string + // 查询三个月内交易创建时间开始。格式:yyyy-MM-dd HH:mm:ss + _startCreated string + // 查询交易创建时间结束。格式:yyyy-MM-dd HH:mm:ss + _endCreated string + // 交易状态(查看可选值),默认查询所有交易状态的数据,除了默认值外每次只能查询一种状态。 + _status string + // 买家昵称 + _buyerNick string + // 交易类型列表,同时查询多种交易类型可用逗号分隔。默认同时查询guarantee_trade,auto_delivery,ec,cod,step 这5 种的交易类型的数据;查询所有交易类型的数据,需要设置下面全部可选值。可选值:fixed(一口价)auction(拍卖)guarantee_trade(一口价、拍卖)step(分阶段付款,万人团,阶梯团订单)independent_simple_trade(旺店入门版交易)independent_shop_trade(旺店标准版交易)auto_delivery(自动发货)ec(直冲)cod(货到付款)game_equipment(游戏装备)shopex_trade(ShopEX交易)netcn_trade(万网交易)external_trade(统一外部交易)instant_trade (即时到账)b2c_cod(大商家货到付款)hotel_trade(酒店类型交易)super_market_trade(商超交易)super_market_cod_trade(商超货到付款交易)taohua(淘花网交易类型)waimai(外卖交易类型)o2o_offlinetrade(O2O交易)nopaid(即时到帐/趣味猜交易类型)step (万人团) eticket(电子凭证) tmall_i18n(天猫国际);nopaid (无付款交易)insurance_plus(保险)finance(基金)注:guarantee_trade是一个组合查询条件,并不是一种交易类型,获取批量或单个订单中不会返回此种类型的订单。pre_auth_type(预授权0元购) lazada(获取lazada订单类型) + _type string + // 可选值有ershou(二手市场的订单),service(商城服务子订单)mark(双十一大促活动异常订单)作为扩展类型筛选只能做单个ext_type查询,不能全部查询所有的ext_type类型 + _extType string + // 评价状态,默认查询所有评价状态的数据,除了默认值外每次只能查询一种状态。
可选值:RATE_UNBUYER(买家未评)RATE_UNSELLER(卖家未评)RATE_BUYER_UNSELLER(买家已评,卖家未评)RATE_UNBUYER_SELLER(买家未评,卖家已评)RATE_BUYER_SELLER(买家已评,卖家已评) + _rateStatus string + // 卖家对交易的自定义分组标签,目前可选值为:time_card(点卡软件代充),fee_card(话费软件代充) + _tag string + // 页码。默认值:1,可填整数,通过传入page_no来控制获取的页数,总页数=total_results÷page_size + _pageNo int64 + // 每页条数。 默认值:40;最大值:100,可填整数。通过page_no和page_size组合多次调用实现翻页获取全量数据。 + _pageSize int64 + // 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取增量交易,接口调用成功率在原有的基础上有所提升。 + _useHasNext bool + // 买家的openId + _buyerOpenId string +} + +// 初始化TaobaoTradesSoldGetAPIRequest对象 +func NewTaobaoTradesSoldGetRequest() *TaobaoTradesSoldGetAPIRequest{ + return &TaobaoTradesSoldGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradesSoldGetAPIRequest) GetApiMethodName() string { + return "taobao.trades.sold.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradesSoldGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。rx_audit_status=0,处方药未审核 +func (r *TaobaoTradesSoldGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoTradesSoldGetAPIRequest) GetFields() string { + return r._fields +} +// StartCreated Setter +// 查询三个月内交易创建时间开始。格式:yyyy-MM-dd HH:mm:ss +func (r *TaobaoTradesSoldGetAPIRequest) SetStartCreated(_startCreated string) error { + r._startCreated = _startCreated + r.Set("start_created", _startCreated) + return nil +} + +// StartCreated Getter +func (r TaobaoTradesSoldGetAPIRequest) GetStartCreated() string { + return r._startCreated +} +// EndCreated Setter +// 查询交易创建时间结束。格式:yyyy-MM-dd HH:mm:ss +func (r *TaobaoTradesSoldGetAPIRequest) SetEndCreated(_endCreated string) error { + r._endCreated = _endCreated + r.Set("end_created", _endCreated) + return nil +} + +// EndCreated Getter +func (r TaobaoTradesSoldGetAPIRequest) GetEndCreated() string { + return r._endCreated +} +// Status Setter +// 交易状态(查看可选值),默认查询所有交易状态的数据,除了默认值外每次只能查询一种状态。 +func (r *TaobaoTradesSoldGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoTradesSoldGetAPIRequest) GetStatus() string { + return r._status +} +// BuyerNick Setter +// 买家昵称 +func (r *TaobaoTradesSoldGetAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoTradesSoldGetAPIRequest) GetBuyerNick() string { + return r._buyerNick +} +// Type Setter +// 交易类型列表,同时查询多种交易类型可用逗号分隔。默认同时查询guarantee_trade,auto_delivery,ec,cod,step 这5 种的交易类型的数据;查询所有交易类型的数据,需要设置下面全部可选值。可选值:fixed(一口价)auction(拍卖)guarantee_trade(一口价、拍卖)step(分阶段付款,万人团,阶梯团订单)independent_simple_trade(旺店入门版交易)independent_shop_trade(旺店标准版交易)auto_delivery(自动发货)ec(直冲)cod(货到付款)game_equipment(游戏装备)shopex_trade(ShopEX交易)netcn_trade(万网交易)external_trade(统一外部交易)instant_trade (即时到账)b2c_cod(大商家货到付款)hotel_trade(酒店类型交易)super_market_trade(商超交易)super_market_cod_trade(商超货到付款交易)taohua(淘花网交易类型)waimai(外卖交易类型)o2o_offlinetrade(O2O交易)nopaid(即时到帐/趣味猜交易类型)step (万人团) eticket(电子凭证) tmall_i18n(天猫国际);nopaid (无付款交易)insurance_plus(保险)finance(基金)注:guarantee_trade是一个组合查询条件,并不是一种交易类型,获取批量或单个订单中不会返回此种类型的订单。pre_auth_type(预授权0元购) lazada(获取lazada订单类型) +func (r *TaobaoTradesSoldGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoTradesSoldGetAPIRequest) GetType() string { + return r._type +} +// ExtType Setter +// 可选值有ershou(二手市场的订单),service(商城服务子订单)mark(双十一大促活动异常订单)作为扩展类型筛选只能做单个ext_type查询,不能全部查询所有的ext_type类型 +func (r *TaobaoTradesSoldGetAPIRequest) SetExtType(_extType string) error { + r._extType = _extType + r.Set("ext_type", _extType) + return nil +} + +// ExtType Getter +func (r TaobaoTradesSoldGetAPIRequest) GetExtType() string { + return r._extType +} +// RateStatus Setter +// 评价状态,默认查询所有评价状态的数据,除了默认值外每次只能查询一种状态。
可选值:RATE_UNBUYER(买家未评)RATE_UNSELLER(卖家未评)RATE_BUYER_UNSELLER(买家已评,卖家未评)RATE_UNBUYER_SELLER(买家未评,卖家已评)RATE_BUYER_SELLER(买家已评,卖家已评) +func (r *TaobaoTradesSoldGetAPIRequest) SetRateStatus(_rateStatus string) error { + r._rateStatus = _rateStatus + r.Set("rate_status", _rateStatus) + return nil +} + +// RateStatus Getter +func (r TaobaoTradesSoldGetAPIRequest) GetRateStatus() string { + return r._rateStatus +} +// Tag Setter +// 卖家对交易的自定义分组标签,目前可选值为:time_card(点卡软件代充),fee_card(话费软件代充) +func (r *TaobaoTradesSoldGetAPIRequest) SetTag(_tag string) error { + r._tag = _tag + r.Set("tag", _tag) + return nil +} + +// Tag Getter +func (r TaobaoTradesSoldGetAPIRequest) GetTag() string { + return r._tag +} +// PageNo Setter +// 页码。默认值:1,可填整数,通过传入page_no来控制获取的页数,总页数=total_results÷page_size +func (r *TaobaoTradesSoldGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoTradesSoldGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数。 默认值:40;最大值:100,可填整数。通过page_no和page_size组合多次调用实现翻页获取全量数据。 +func (r *TaobaoTradesSoldGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTradesSoldGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// UseHasNext Setter +// 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取增量交易,接口调用成功率在原有的基础上有所提升。 +func (r *TaobaoTradesSoldGetAPIRequest) SetUseHasNext(_useHasNext bool) error { + r._useHasNext = _useHasNext + r.Set("use_has_next", _useHasNext) + return nil +} + +// UseHasNext Getter +func (r TaobaoTradesSoldGetAPIRequest) GetUseHasNext() bool { + return r._useHasNext +} +// BuyerOpenId Setter +// 买家的openId +func (r *TaobaoTradesSoldGetAPIRequest) SetBuyerOpenId(_buyerOpenId string) error { + r._buyerOpenId = _buyerOpenId + r.Set("buyer_open_id", _buyerOpenId) + return nil +} + +// BuyerOpenId Getter +func (r TaobaoTradesSoldGetAPIRequest) GetBuyerOpenId() string { + return r._buyerOpenId +} diff --git a/model/trade/TaobaoTradesSoldGetAPIResponse.go b/model/trade/TaobaoTradesSoldGetAPIResponse.go new file mode 100644 index 0000000000..d8efd8df62 --- /dev/null +++ b/model/trade/TaobaoTradesSoldGetAPIResponse.go @@ -0,0 +1,35 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家已卖出的交易数据(根据创建时间) API返回值 +taobao.trades.sold.get + +搜索当前会话用户作为卖家已卖出的交易数据(只能获取到三个月以内的交易信息) +
1. 返回的数据结果是以订单的创建时间倒序排列的。 +
2. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.fullinfo.get获取订单详情。 +
注意:type字段的说明,如果该字段不传,接口默认只查4种类型订单,非默认查询的订单是不返回。遇到订单查不到的情况的,解决办法就是type加上订单类型就可正常返回了。 +
点击查看更多交易API说明 +*/ +type TaobaoTradesSoldGetAPIResponse struct { + model.CommonResponse + TaobaoTradesSoldGetAPIResponseModel +} + +// 查询卖家已卖出的交易数据(根据创建时间) 成功返回结果 +type TaobaoTradesSoldGetAPIResponseModel struct { + XMLName xml.Name `xml:"trades_sold_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 搜索到的交易信息总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 是否存在下一页 + HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` + // 搜索到的交易信息列表,返回的Trade和Order中包含的具体信息为入参fields请求的字段信息 + Trades []Trade `json:"trades,omitempty" xml:"trades>trade,omitempty"` +} diff --git a/model/trade/TaobaoTradesSoldGetResponse.go b/model/trade/TaobaoTradesSoldGetResponse.go deleted file mode 100644 index 150463a5d7..0000000000 --- a/model/trade/TaobaoTradesSoldGetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询卖家已卖出的交易数据(根据创建时间) API返回值 -taobao.trades.sold.get - -搜索当前会话用户作为卖家已卖出的交易数据(只能获取到三个月以内的交易信息) -
1. 返回的数据结果是以订单的创建时间倒序排列的。 -
2. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.fullinfo.get获取订单详情。 -
注意:type字段的说明,如果该字段不传,接口默认只查4种类型订单,非默认查询的订单是不返回。遇到订单查不到的情况的,解决办法就是type加上订单类型就可正常返回了。 -
点击查看更多交易API说明 -*/ -type TaobaoTradesSoldGetAPIResponse struct { - model.CommonResponse - TaobaoTradesSoldGetResponse -} - -// 查询卖家已卖出的交易数据(根据创建时间) 成功返回结果 -type TaobaoTradesSoldGetResponse struct { - XMLName xml.Name `xml:"trades_sold_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 搜索到的交易信息总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 是否存在下一页 - HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` - // 搜索到的交易信息列表,返回的Trade和Order中包含的具体信息为入参fields请求的字段信息 - Trades []Trade `json:"trades,omitempty" xml:"trades>trade,omitempty"` -} diff --git a/model/trade/TaobaoTradesSoldIncrementGetAPIRequest.go b/model/trade/TaobaoTradesSoldIncrementGetAPIRequest.go new file mode 100644 index 0000000000..3e2892cb7e --- /dev/null +++ b/model/trade/TaobaoTradesSoldIncrementGetAPIRequest.go @@ -0,0 +1,196 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家已卖出的增量交易数据(根据修改时间) API请求 +taobao.trades.sold.increment.get + +搜索当前会话用户作为卖家已卖出的增量交易数据(只能获取到三个月以内的交易信息) +
1. 一次请求只能查询时间跨度为一天的增量交易记录,即end_modified - start_modified <= 1天。 +
2. 返回的数据结果是以订单的修改时间倒序排列的,通过从后往前翻页的方式可以避免漏单问题。 +
3. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.fullinfo.get获取订单详情。 +
点击查看更多交易API说明 +*/ +type TaobaoTradesSoldIncrementGetAPIRequest struct { + model.Params + // 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。rx_audit_status=0为处方药未审核状态 + _fields string + // 查询修改开始时间(修改时间跨度不能大于一天)。格式:yyyy-MM-dd HH:mm:ss + _startModified string + // 查询修改结束时间,必须大于修改开始时间(修改时间跨度不能大于一天),格式:yyyy-MM-dd HH:mm:ss。建议使用30分钟以内的时间跨度,能大大提高响应速度和成功率。 + _endModified string + // 交易状态(查看可选值),默认查询所有交易状态的数据,除了默认值外每次只能查询一种状态。 + _status string + // 交易类型列表(查看可选值),一次查询多种类型可用半角逗号分隔,默认同时查询guarantee_trade,auto_delivery,ec,cod,step这5种类型的数据。 + _type string + // 买家昵称 + _buyerNick string + // 可选值有ershou(二手市场的订单),service(商城服务子订单)mark(双十一大促活动异常订单)作为扩展类型筛选只能做单个ext_type查询,不能全部查询所有的ext_type类型 + _extType string + // 卖家对交易的自定义分组标签,目前可选值为:time_card(点卡软件代充),fee_card(话费软件代充) + _tag string + // 页码。取值范围:大于零的整数;默认值:1。注:必须采用倒序的分页方式(从最后一页往回取)才能避免漏单问题。 + _pageNo int64 + // 每页条数。取值范围:1~100,默认值:40。建议使用40~50,可以提高成功率,减少超时数量。 + _pageSize int64 + // 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取增量交易,效率在原有的基础上有80%的提升。 + _useHasNext bool +} + +// 初始化TaobaoTradesSoldIncrementGetAPIRequest对象 +func NewTaobaoTradesSoldIncrementGetRequest() *TaobaoTradesSoldIncrementGetAPIRequest{ + return &TaobaoTradesSoldIncrementGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradesSoldIncrementGetAPIRequest) GetApiMethodName() string { + return "taobao.trades.sold.increment.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradesSoldIncrementGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。rx_audit_status=0为处方药未审核状态 +func (r *TaobaoTradesSoldIncrementGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoTradesSoldIncrementGetAPIRequest) GetFields() string { + return r._fields +} +// StartModified Setter +// 查询修改开始时间(修改时间跨度不能大于一天)。格式:yyyy-MM-dd HH:mm:ss +func (r *TaobaoTradesSoldIncrementGetAPIRequest) SetStartModified(_startModified string) error { + r._startModified = _startModified + r.Set("start_modified", _startModified) + return nil +} + +// StartModified Getter +func (r TaobaoTradesSoldIncrementGetAPIRequest) GetStartModified() string { + return r._startModified +} +// EndModified Setter +// 查询修改结束时间,必须大于修改开始时间(修改时间跨度不能大于一天),格式:yyyy-MM-dd HH:mm:ss。建议使用30分钟以内的时间跨度,能大大提高响应速度和成功率。 +func (r *TaobaoTradesSoldIncrementGetAPIRequest) SetEndModified(_endModified string) error { + r._endModified = _endModified + r.Set("end_modified", _endModified) + return nil +} + +// EndModified Getter +func (r TaobaoTradesSoldIncrementGetAPIRequest) GetEndModified() string { + return r._endModified +} +// Status Setter +// 交易状态(查看可选值),默认查询所有交易状态的数据,除了默认值外每次只能查询一种状态。 +func (r *TaobaoTradesSoldIncrementGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoTradesSoldIncrementGetAPIRequest) GetStatus() string { + return r._status +} +// Type Setter +// 交易类型列表(查看可选值),一次查询多种类型可用半角逗号分隔,默认同时查询guarantee_trade,auto_delivery,ec,cod,step这5种类型的数据。 +func (r *TaobaoTradesSoldIncrementGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoTradesSoldIncrementGetAPIRequest) GetType() string { + return r._type +} +// BuyerNick Setter +// 买家昵称 +func (r *TaobaoTradesSoldIncrementGetAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoTradesSoldIncrementGetAPIRequest) GetBuyerNick() string { + return r._buyerNick +} +// ExtType Setter +// 可选值有ershou(二手市场的订单),service(商城服务子订单)mark(双十一大促活动异常订单)作为扩展类型筛选只能做单个ext_type查询,不能全部查询所有的ext_type类型 +func (r *TaobaoTradesSoldIncrementGetAPIRequest) SetExtType(_extType string) error { + r._extType = _extType + r.Set("ext_type", _extType) + return nil +} + +// ExtType Getter +func (r TaobaoTradesSoldIncrementGetAPIRequest) GetExtType() string { + return r._extType +} +// Tag Setter +// 卖家对交易的自定义分组标签,目前可选值为:time_card(点卡软件代充),fee_card(话费软件代充) +func (r *TaobaoTradesSoldIncrementGetAPIRequest) SetTag(_tag string) error { + r._tag = _tag + r.Set("tag", _tag) + return nil +} + +// Tag Getter +func (r TaobaoTradesSoldIncrementGetAPIRequest) GetTag() string { + return r._tag +} +// PageNo Setter +// 页码。取值范围:大于零的整数;默认值:1。注:必须采用倒序的分页方式(从最后一页往回取)才能避免漏单问题。 +func (r *TaobaoTradesSoldIncrementGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoTradesSoldIncrementGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数。取值范围:1~100,默认值:40。建议使用40~50,可以提高成功率,减少超时数量。 +func (r *TaobaoTradesSoldIncrementGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTradesSoldIncrementGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// UseHasNext Setter +// 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取增量交易,效率在原有的基础上有80%的提升。 +func (r *TaobaoTradesSoldIncrementGetAPIRequest) SetUseHasNext(_useHasNext bool) error { + r._useHasNext = _useHasNext + r.Set("use_has_next", _useHasNext) + return nil +} + +// UseHasNext Getter +func (r TaobaoTradesSoldIncrementGetAPIRequest) GetUseHasNext() bool { + return r._useHasNext +} diff --git a/model/trade/TaobaoTradesSoldIncrementGetAPIResponse.go b/model/trade/TaobaoTradesSoldIncrementGetAPIResponse.go new file mode 100644 index 0000000000..568510dfde --- /dev/null +++ b/model/trade/TaobaoTradesSoldIncrementGetAPIResponse.go @@ -0,0 +1,35 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家已卖出的增量交易数据(根据修改时间) API返回值 +taobao.trades.sold.increment.get + +搜索当前会话用户作为卖家已卖出的增量交易数据(只能获取到三个月以内的交易信息) +
1. 一次请求只能查询时间跨度为一天的增量交易记录,即end_modified - start_modified <= 1天。 +
2. 返回的数据结果是以订单的修改时间倒序排列的,通过从后往前翻页的方式可以避免漏单问题。 +
3. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.fullinfo.get获取订单详情。 +
点击查看更多交易API说明 +*/ +type TaobaoTradesSoldIncrementGetAPIResponse struct { + model.CommonResponse + TaobaoTradesSoldIncrementGetAPIResponseModel +} + +// 查询卖家已卖出的增量交易数据(根据修改时间) 成功返回结果 +type TaobaoTradesSoldIncrementGetAPIResponseModel struct { + XMLName xml.Name `xml:"trades_sold_increment_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 搜索到的交易信息总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 搜索到的交易信息列表,返回的Trade和Order中包含的具体信息为入参fields请求的字段信息 + Trades []Trade `json:"trades,omitempty" xml:"trades>trade,omitempty"` + // 是否存在下一页 + HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` +} diff --git a/model/trade/TaobaoTradesSoldIncrementGetResponse.go b/model/trade/TaobaoTradesSoldIncrementGetResponse.go deleted file mode 100644 index 8c0ecd3081..0000000000 --- a/model/trade/TaobaoTradesSoldIncrementGetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询卖家已卖出的增量交易数据(根据修改时间) API返回值 -taobao.trades.sold.increment.get - -搜索当前会话用户作为卖家已卖出的增量交易数据(只能获取到三个月以内的交易信息) -
1. 一次请求只能查询时间跨度为一天的增量交易记录,即end_modified - start_modified <= 1天。 -
2. 返回的数据结果是以订单的修改时间倒序排列的,通过从后往前翻页的方式可以避免漏单问题。 -
3. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.fullinfo.get获取订单详情。 -
点击查看更多交易API说明 -*/ -type TaobaoTradesSoldIncrementGetAPIResponse struct { - model.CommonResponse - TaobaoTradesSoldIncrementGetResponse -} - -// 查询卖家已卖出的增量交易数据(根据修改时间) 成功返回结果 -type TaobaoTradesSoldIncrementGetResponse struct { - XMLName xml.Name `xml:"trades_sold_increment_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 搜索到的交易信息总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 搜索到的交易信息列表,返回的Trade和Order中包含的具体信息为入参fields请求的字段信息 - Trades []Trade `json:"trades,omitempty" xml:"trades>trade,omitempty"` - // 是否存在下一页 - HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` -} diff --git a/model/trade/TaobaoTradesSoldIncrementvGetAPIRequest.go b/model/trade/TaobaoTradesSoldIncrementvGetAPIRequest.go new file mode 100644 index 0000000000..6467604fff --- /dev/null +++ b/model/trade/TaobaoTradesSoldIncrementvGetAPIRequest.go @@ -0,0 +1,182 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家已卖出的增量交易数据(根据入库时间) API请求 +taobao.trades.sold.incrementv.get + +搜索当前会话用户作为卖家已卖出的增量交易数据(只能获取到三个月以内的交易信息) +
1. 一次请求只能查询时间跨度为一天的增量交易记录,即end_create - start_create <= 1天。 +
2. 返回的数据结果是以订单入库时间的倒序排列的(该时间和订单修改时间不同),通过从后往前翻页的方式可以避免漏单问题。 +
3. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.fullinfo.get获取订单详情。 +
点击查看更多交易API说明 +*/ +type TaobaoTradesSoldIncrementvGetAPIRequest struct { + model.Params + // 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。 + _fields string + // 查询入库开始时间(修改时间跨度不能大于一天)。格式:yyyy-MM-dd HH:mm:ss + _startCreate string + // 查询入库结束时间,必须大于入库开始时间(修改时间跨度不能大于一天),格式:yyyy-MM-dd HH:mm:ss。建议使用30分钟以内的时间跨度,能大大提高响应速度和成功率。 + _endCreate string + // 交易状态(查看可选值),默认查询所有交易状态的数据,除了默认值外每次只能查询一种状态。 + _status string + // 交易类型列表(查看可选值),一次查询多种类型可用半角逗号分隔,默认同时查询guarantee_trade,auto_delivery,ec,cod,step这5种类型的数据。 + _type string + // 可选值有ershou(二手市场的订单),service(商城服务子订单)mark(双十一大促活动异常订单)作为扩展类型筛选只能做单个ext_type查询,不能全部查询所有的ext_type类型 + _extType string + // 卖家对交易的自定义分组标签,目前可选值为:time_card(点卡软件代充),fee_card(话费软件代充) + _tag string + // 页码。取值范围:大于零的整数;默认值:1。注:必须采用倒序的分页方式(从最后一页往回取)才能避免漏单问题。 + _pageNo int64 + // 每页条数。取值范围:1~100,默认值:40。建议使用40~50,可以提高成功率,减少超时数量。 + _pageSize int64 + // 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取增量交易,效率在原有的基础上有80%的提升。 + _useHasNext bool +} + +// 初始化TaobaoTradesSoldIncrementvGetAPIRequest对象 +func NewTaobaoTradesSoldIncrementvGetRequest() *TaobaoTradesSoldIncrementvGetAPIRequest{ + return &TaobaoTradesSoldIncrementvGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradesSoldIncrementvGetAPIRequest) GetApiMethodName() string { + return "taobao.trades.sold.incrementv.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradesSoldIncrementvGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。 +func (r *TaobaoTradesSoldIncrementvGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoTradesSoldIncrementvGetAPIRequest) GetFields() string { + return r._fields +} +// StartCreate Setter +// 查询入库开始时间(修改时间跨度不能大于一天)。格式:yyyy-MM-dd HH:mm:ss +func (r *TaobaoTradesSoldIncrementvGetAPIRequest) SetStartCreate(_startCreate string) error { + r._startCreate = _startCreate + r.Set("start_create", _startCreate) + return nil +} + +// StartCreate Getter +func (r TaobaoTradesSoldIncrementvGetAPIRequest) GetStartCreate() string { + return r._startCreate +} +// EndCreate Setter +// 查询入库结束时间,必须大于入库开始时间(修改时间跨度不能大于一天),格式:yyyy-MM-dd HH:mm:ss。建议使用30分钟以内的时间跨度,能大大提高响应速度和成功率。 +func (r *TaobaoTradesSoldIncrementvGetAPIRequest) SetEndCreate(_endCreate string) error { + r._endCreate = _endCreate + r.Set("end_create", _endCreate) + return nil +} + +// EndCreate Getter +func (r TaobaoTradesSoldIncrementvGetAPIRequest) GetEndCreate() string { + return r._endCreate +} +// Status Setter +// 交易状态(查看可选值),默认查询所有交易状态的数据,除了默认值外每次只能查询一种状态。 +func (r *TaobaoTradesSoldIncrementvGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoTradesSoldIncrementvGetAPIRequest) GetStatus() string { + return r._status +} +// Type Setter +// 交易类型列表(查看可选值),一次查询多种类型可用半角逗号分隔,默认同时查询guarantee_trade,auto_delivery,ec,cod,step这5种类型的数据。 +func (r *TaobaoTradesSoldIncrementvGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoTradesSoldIncrementvGetAPIRequest) GetType() string { + return r._type +} +// ExtType Setter +// 可选值有ershou(二手市场的订单),service(商城服务子订单)mark(双十一大促活动异常订单)作为扩展类型筛选只能做单个ext_type查询,不能全部查询所有的ext_type类型 +func (r *TaobaoTradesSoldIncrementvGetAPIRequest) SetExtType(_extType string) error { + r._extType = _extType + r.Set("ext_type", _extType) + return nil +} + +// ExtType Getter +func (r TaobaoTradesSoldIncrementvGetAPIRequest) GetExtType() string { + return r._extType +} +// Tag Setter +// 卖家对交易的自定义分组标签,目前可选值为:time_card(点卡软件代充),fee_card(话费软件代充) +func (r *TaobaoTradesSoldIncrementvGetAPIRequest) SetTag(_tag string) error { + r._tag = _tag + r.Set("tag", _tag) + return nil +} + +// Tag Getter +func (r TaobaoTradesSoldIncrementvGetAPIRequest) GetTag() string { + return r._tag +} +// PageNo Setter +// 页码。取值范围:大于零的整数;默认值:1。注:必须采用倒序的分页方式(从最后一页往回取)才能避免漏单问题。 +func (r *TaobaoTradesSoldIncrementvGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoTradesSoldIncrementvGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数。取值范围:1~100,默认值:40。建议使用40~50,可以提高成功率,减少超时数量。 +func (r *TaobaoTradesSoldIncrementvGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTradesSoldIncrementvGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// UseHasNext Setter +// 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取增量交易,效率在原有的基础上有80%的提升。 +func (r *TaobaoTradesSoldIncrementvGetAPIRequest) SetUseHasNext(_useHasNext bool) error { + r._useHasNext = _useHasNext + r.Set("use_has_next", _useHasNext) + return nil +} + +// UseHasNext Getter +func (r TaobaoTradesSoldIncrementvGetAPIRequest) GetUseHasNext() bool { + return r._useHasNext +} diff --git a/model/trade/TaobaoTradesSoldIncrementvGetAPIResponse.go b/model/trade/TaobaoTradesSoldIncrementvGetAPIResponse.go new file mode 100644 index 0000000000..d045351dde --- /dev/null +++ b/model/trade/TaobaoTradesSoldIncrementvGetAPIResponse.go @@ -0,0 +1,35 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家已卖出的增量交易数据(根据入库时间) API返回值 +taobao.trades.sold.incrementv.get + +搜索当前会话用户作为卖家已卖出的增量交易数据(只能获取到三个月以内的交易信息) +
1. 一次请求只能查询时间跨度为一天的增量交易记录,即end_create - start_create <= 1天。 +
2. 返回的数据结果是以订单入库时间的倒序排列的(该时间和订单修改时间不同),通过从后往前翻页的方式可以避免漏单问题。 +
3. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.fullinfo.get获取订单详情。 +
点击查看更多交易API说明 +*/ +type TaobaoTradesSoldIncrementvGetAPIResponse struct { + model.CommonResponse + TaobaoTradesSoldIncrementvGetAPIResponseModel +} + +// 查询卖家已卖出的增量交易数据(根据入库时间) 成功返回结果 +type TaobaoTradesSoldIncrementvGetAPIResponseModel struct { + XMLName xml.Name `xml:"trades_sold_incrementv_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 搜索到的交易信息总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 搜索到的交易信息列表,返回的Trade和Order中包含的具体信息为入参fields请求的字段信息 + Trades []Trade `json:"trades,omitempty" xml:"trades>trade,omitempty"` + // 是否存在下一页 + HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` +} diff --git a/model/trade/TaobaoTradesSoldIncrementvGetResponse.go b/model/trade/TaobaoTradesSoldIncrementvGetResponse.go deleted file mode 100644 index d95f5cf52a..0000000000 --- a/model/trade/TaobaoTradesSoldIncrementvGetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询卖家已卖出的增量交易数据(根据入库时间) API返回值 -taobao.trades.sold.incrementv.get - -搜索当前会话用户作为卖家已卖出的增量交易数据(只能获取到三个月以内的交易信息) -
1. 一次请求只能查询时间跨度为一天的增量交易记录,即end_create - start_create <= 1天。 -
2. 返回的数据结果是以订单入库时间的倒序排列的(该时间和订单修改时间不同),通过从后往前翻页的方式可以避免漏单问题。 -
3. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.fullinfo.get获取订单详情。 -
点击查看更多交易API说明 -*/ -type TaobaoTradesSoldIncrementvGetAPIResponse struct { - model.CommonResponse - TaobaoTradesSoldIncrementvGetResponse -} - -// 查询卖家已卖出的增量交易数据(根据入库时间) 成功返回结果 -type TaobaoTradesSoldIncrementvGetResponse struct { - XMLName xml.Name `xml:"trades_sold_incrementv_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 搜索到的交易信息总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 搜索到的交易信息列表,返回的Trade和Order中包含的具体信息为入参fields请求的字段信息 - Trades []Trade `json:"trades,omitempty" xml:"trades>trade,omitempty"` - // 是否存在下一页 - HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` -} diff --git a/model/trade/TaobaoTradesSoldQueryAPIRequest.go b/model/trade/TaobaoTradesSoldQueryAPIRequest.go new file mode 100644 index 0000000000..08380991cd --- /dev/null +++ b/model/trade/TaobaoTradesSoldQueryAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据收件人信息查询交易单号 API请求 +taobao.trades.sold.query + +根据收件人信息查询交易单号。 +*/ +type TaobaoTradesSoldQueryAPIRequest struct { + model.Params + // 查询条件列表,多个条件之间是OR关系,最多支持20个。receiver_name、receiver_mobile、receiver_phone至少有一个值不为空。 + _queryList []OrderQuery +} + +// 初始化TaobaoTradesSoldQueryAPIRequest对象 +func NewTaobaoTradesSoldQueryRequest() *TaobaoTradesSoldQueryAPIRequest{ + return &TaobaoTradesSoldQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTradesSoldQueryAPIRequest) GetApiMethodName() string { + return "taobao.trades.sold.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTradesSoldQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryList Setter +// 查询条件列表,多个条件之间是OR关系,最多支持20个。receiver_name、receiver_mobile、receiver_phone至少有一个值不为空。 +func (r *TaobaoTradesSoldQueryAPIRequest) SetQueryList(_queryList []OrderQuery) error { + r._queryList = _queryList + r.Set("query_list", _queryList) + return nil +} + +// QueryList Getter +func (r TaobaoTradesSoldQueryAPIRequest) GetQueryList() []OrderQuery { + return r._queryList +} diff --git a/model/trade/TaobaoTradesSoldQueryAPIResponse.go b/model/trade/TaobaoTradesSoldQueryAPIResponse.go new file mode 100644 index 0000000000..75e7e7d1e5 --- /dev/null +++ b/model/trade/TaobaoTradesSoldQueryAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据收件人信息查询交易单号 API返回值 +taobao.trades.sold.query + +根据收件人信息查询交易单号。 +*/ +type TaobaoTradesSoldQueryAPIResponse struct { + model.CommonResponse + TaobaoTradesSoldQueryAPIResponseModel +} + +// 根据收件人信息查询交易单号 成功返回结果 +type TaobaoTradesSoldQueryAPIResponseModel struct { + XMLName xml.Name `xml:"trades_sold_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单ID列表。按照订单创建时间倒序,最多返回最近的100笔订单。 + TidList []string `json:"tid_list,omitempty" xml:"tid_list>string,omitempty"` +} diff --git a/model/trade/TaobaoTradesSoldQueryResponse.go b/model/trade/TaobaoTradesSoldQueryResponse.go deleted file mode 100644 index 155c5ccd2e..0000000000 --- a/model/trade/TaobaoTradesSoldQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据收件人信息查询交易单号 API返回值 -taobao.trades.sold.query - -根据收件人信息查询交易单号。 -*/ -type TaobaoTradesSoldQueryAPIResponse struct { - model.CommonResponse - TaobaoTradesSoldQueryResponse -} - -// 根据收件人信息查询交易单号 成功返回结果 -type TaobaoTradesSoldQueryResponse struct { - XMLName xml.Name `xml:"trades_sold_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单ID列表。按照订单创建时间倒序,最多返回最近的100笔订单。 - TidList []string `json:"tid_list,omitempty" xml:"tid_list>string,omitempty"` -} diff --git a/model/trade/TaobaoWttTradeServiceGetAPIRequest.go b/model/trade/TaobaoWttTradeServiceGetAPIRequest.go new file mode 100644 index 0000000000..1294528416 --- /dev/null +++ b/model/trade/TaobaoWttTradeServiceGetAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取网厅号卡垂直标信息 API请求 +taobao.wtt.trade.service.get + +查询网厅订单信息 +*/ +type TaobaoWttTradeServiceGetAPIRequest struct { + model.Params + // 订单ID + _bizOrder int64 +} + +// 初始化TaobaoWttTradeServiceGetAPIRequest对象 +func NewTaobaoWttTradeServiceGetRequest() *TaobaoWttTradeServiceGetAPIRequest{ + return &TaobaoWttTradeServiceGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWttTradeServiceGetAPIRequest) GetApiMethodName() string { + return "taobao.wtt.trade.service.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWttTradeServiceGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizOrder Setter +// 订单ID +func (r *TaobaoWttTradeServiceGetAPIRequest) SetBizOrder(_bizOrder int64) error { + r._bizOrder = _bizOrder + r.Set("biz_order", _bizOrder) + return nil +} + +// BizOrder Getter +func (r TaobaoWttTradeServiceGetAPIRequest) GetBizOrder() int64 { + return r._bizOrder +} diff --git a/model/trade/TaobaoWttTradeServiceGetAPIResponse.go b/model/trade/TaobaoWttTradeServiceGetAPIResponse.go new file mode 100644 index 0000000000..74cf00883e --- /dev/null +++ b/model/trade/TaobaoWttTradeServiceGetAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取网厅号卡垂直标信息 API返回值 +taobao.wtt.trade.service.get + +查询网厅订单信息 +*/ +type TaobaoWttTradeServiceGetAPIResponse struct { + model.CommonResponse + TaobaoWttTradeServiceGetAPIResponseModel +} + +// 获取网厅号卡垂直标信息 成功返回结果 +type TaobaoWttTradeServiceGetAPIResponseModel struct { + XMLName xml.Name `xml:"wtt_trade_service_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回实例 + Modules *WtverticalDto `json:"modules,omitempty" xml:"modules,omitempty"` +} diff --git a/model/trade/TaobaoWttTradeServiceGetResponse.go b/model/trade/TaobaoWttTradeServiceGetResponse.go deleted file mode 100644 index 61e07c6a61..0000000000 --- a/model/trade/TaobaoWttTradeServiceGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取网厅号卡垂直标信息 API返回值 -taobao.wtt.trade.service.get - -查询网厅订单信息 -*/ -type TaobaoWttTradeServiceGetAPIResponse struct { - model.CommonResponse - TaobaoWttTradeServiceGetResponse -} - -// 获取网厅号卡垂直标信息 成功返回结果 -type TaobaoWttTradeServiceGetResponse struct { - XMLName xml.Name `xml:"wtt_trade_service_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回实例 - Modules *WtverticalDto `json:"modules,omitempty" xml:"modules,omitempty"` -} diff --git a/model/trade/TaobaoXhotelDistributionOrderDetailSearchAPIRequest.go b/model/trade/TaobaoXhotelDistributionOrderDetailSearchAPIRequest.go new file mode 100644 index 0000000000..d2b289c76b --- /dev/null +++ b/model/trade/TaobaoXhotelDistributionOrderDetailSearchAPIRequest.go @@ -0,0 +1,80 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分销渠道订单详情查询 API请求 +taobao.xhotel.distribution.order.detail.search + +该接口用于提供酒店分销渠道的订单详情查询 +*/ +type TaobaoXhotelDistributionOrderDetailSearchAPIRequest struct { + model.Params + // 外部分销渠道的订单号(与tid必填其一) + _distributionOid string + // 传入用户对应的openId + _openId string + // 飞猪的订单号(与distribution_oid必填其一) + _tid int64 +} + +// 初始化TaobaoXhotelDistributionOrderDetailSearchAPIRequest对象 +func NewTaobaoXhotelDistributionOrderDetailSearchRequest() *TaobaoXhotelDistributionOrderDetailSearchAPIRequest{ + return &TaobaoXhotelDistributionOrderDetailSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelDistributionOrderDetailSearchAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.distribution.order.detail.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelDistributionOrderDetailSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DistributionOid Setter +// 外部分销渠道的订单号(与tid必填其一) +func (r *TaobaoXhotelDistributionOrderDetailSearchAPIRequest) SetDistributionOid(_distributionOid string) error { + r._distributionOid = _distributionOid + r.Set("distribution_oid", _distributionOid) + return nil +} + +// DistributionOid Getter +func (r TaobaoXhotelDistributionOrderDetailSearchAPIRequest) GetDistributionOid() string { + return r._distributionOid +} +// OpenId Setter +// 传入用户对应的openId +func (r *TaobaoXhotelDistributionOrderDetailSearchAPIRequest) SetOpenId(_openId string) error { + r._openId = _openId + r.Set("open_id", _openId) + return nil +} + +// OpenId Getter +func (r TaobaoXhotelDistributionOrderDetailSearchAPIRequest) GetOpenId() string { + return r._openId +} +// Tid Setter +// 飞猪的订单号(与distribution_oid必填其一) +func (r *TaobaoXhotelDistributionOrderDetailSearchAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoXhotelDistributionOrderDetailSearchAPIRequest) GetTid() int64 { + return r._tid +} diff --git a/model/trade/TaobaoXhotelDistributionOrderDetailSearchAPIResponse.go b/model/trade/TaobaoXhotelDistributionOrderDetailSearchAPIResponse.go new file mode 100644 index 0000000000..1a5e76fada --- /dev/null +++ b/model/trade/TaobaoXhotelDistributionOrderDetailSearchAPIResponse.go @@ -0,0 +1,31 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分销渠道订单详情查询 API返回值 +taobao.xhotel.distribution.order.detail.search + +该接口用于提供酒店分销渠道的订单详情查询 +*/ +type TaobaoXhotelDistributionOrderDetailSearchAPIResponse struct { + model.CommonResponse + TaobaoXhotelDistributionOrderDetailSearchAPIResponseModel +} + +// 分销渠道订单详情查询 成功返回结果 +type TaobaoXhotelDistributionOrderDetailSearchAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_distribution_order_detail_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + Error string `json:"error,omitempty" xml:"error,omitempty"` + // 错误描述 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 订单详情对象 + TopDistributionOrderDetail *TopDistributionOrderDetail `json:"top_distribution_order_detail,omitempty" xml:"top_distribution_order_detail,omitempty"` +} diff --git a/model/trade/TaobaoXhotelDistributionOrderDetailSearchResponse.go b/model/trade/TaobaoXhotelDistributionOrderDetailSearchResponse.go deleted file mode 100644 index 9f1e66924e..0000000000 --- a/model/trade/TaobaoXhotelDistributionOrderDetailSearchResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分销渠道订单详情查询 API返回值 -taobao.xhotel.distribution.order.detail.search - -该接口用于提供酒店分销渠道的订单详情查询 -*/ -type TaobaoXhotelDistributionOrderDetailSearchAPIResponse struct { - model.CommonResponse - TaobaoXhotelDistributionOrderDetailSearchResponse -} - -// 分销渠道订单详情查询 成功返回结果 -type TaobaoXhotelDistributionOrderDetailSearchResponse struct { - XMLName xml.Name `xml:"xhotel_distribution_order_detail_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - Error string `json:"error,omitempty" xml:"error,omitempty"` - // 错误描述 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 订单详情对象 - TopDistributionOrderDetail *TopDistributionOrderDetail `json:"top_distribution_order_detail,omitempty" xml:"top_distribution_order_detail,omitempty"` -} diff --git a/model/trade/TmallAscpOrdersSaleCreateAPIRequest.go b/model/trade/TmallAscpOrdersSaleCreateAPIRequest.go new file mode 100644 index 0000000000..63f78bdfd2 --- /dev/null +++ b/model/trade/TmallAscpOrdersSaleCreateAPIRequest.go @@ -0,0 +1,52 @@ +package trade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ASCP渠道中心销售单创建接口 API请求 +tmall.ascp.orders.sale.create + +ASCP渠道中心销售单创建接口 +*/ +type TmallAscpOrdersSaleCreateAPIRequest struct { + model.Params + // 请求对象 + _channelOrderRequest *CreateChannelOrderRequest +} + +// 初始化TmallAscpOrdersSaleCreateAPIRequest对象 +func NewTmallAscpOrdersSaleCreateRequest() *TmallAscpOrdersSaleCreateAPIRequest{ + return &TmallAscpOrdersSaleCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallAscpOrdersSaleCreateAPIRequest) GetApiMethodName() string { + return "tmall.ascp.orders.sale.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallAscpOrdersSaleCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChannelOrderRequest Setter +// 请求对象 +func (r *TmallAscpOrdersSaleCreateAPIRequest) SetChannelOrderRequest(_channelOrderRequest *CreateChannelOrderRequest) error { + r._channelOrderRequest = _channelOrderRequest + r.Set("channel_order_request", _channelOrderRequest) + return nil +} + +// ChannelOrderRequest Getter +func (r TmallAscpOrdersSaleCreateAPIRequest) GetChannelOrderRequest() *CreateChannelOrderRequest { + return r._channelOrderRequest +} diff --git a/model/trade/TmallAscpOrdersSaleCreateAPIResponse.go b/model/trade/TmallAscpOrdersSaleCreateAPIResponse.go new file mode 100644 index 0000000000..ac415b62e1 --- /dev/null +++ b/model/trade/TmallAscpOrdersSaleCreateAPIResponse.go @@ -0,0 +1,27 @@ +package trade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ASCP渠道中心销售单创建接口 API返回值 +tmall.ascp.orders.sale.create + +ASCP渠道中心销售单创建接口 +*/ +type TmallAscpOrdersSaleCreateAPIResponse struct { + model.CommonResponse + TmallAscpOrdersSaleCreateAPIResponseModel +} + +// ASCP渠道中心销售单创建接口 成功返回结果 +type TmallAscpOrdersSaleCreateAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_ascp_orders_sale_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallAscpOrdersSaleCreateResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/trade/TmallAscpOrdersSaleCreateResponse.go b/model/trade/TmallAscpOrdersSaleCreateResponse.go deleted file mode 100644 index c035d36ccd..0000000000 --- a/model/trade/TmallAscpOrdersSaleCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package trade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ASCP渠道中心销售单创建接口 API返回值 -tmall.ascp.orders.sale.create - -ASCP渠道中心销售单创建接口 -*/ -type TmallAscpOrdersSaleCreateAPIResponse struct { - model.CommonResponse - TmallAscpOrdersSaleCreateResponse -} - -// ASCP渠道中心销售单创建接口 成功返回结果 -type TmallAscpOrdersSaleCreateResponse struct { - XMLName xml.Name `xml:"tmall_ascp_orders_sale_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallAscpOrdersSaleCreateResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/trade/TmallAscpOrdersSaleCreateResultDo.go b/model/trade/TmallAscpOrdersSaleCreateResultDo.go new file mode 100644 index 0000000000..ff349b0ba7 --- /dev/null +++ b/model/trade/TmallAscpOrdersSaleCreateResultDo.go @@ -0,0 +1,15 @@ +package trade + +// TmallAscpOrdersSaleCreateResultDo +type TmallAscpOrdersSaleCreateResultDo struct { + // errorMessage + ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"` + // module + Module string `json:"module,omitempty" xml:"module,omitempty"` + // totalCount + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // errorCode + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // success + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/traderate/TaobaoFliggyWrateGetmixratelistAPIRequest.go b/model/traderate/TaobaoFliggyWrateGetmixratelistAPIRequest.go new file mode 100644 index 0000000000..e275864f0d --- /dev/null +++ b/model/traderate/TaobaoFliggyWrateGetmixratelistAPIRequest.go @@ -0,0 +1,52 @@ +package traderate + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪通用评价接口 API请求 +taobao.fliggy.wrate.getmixratelist + +飞猪评价通用接口 +*/ +type TaobaoFliggyWrateGetmixratelistAPIRequest struct { + model.Params + // 评论列表查询参数 + _paramTopGetMixRateListParam *TopGetMixRateListParam +} + +// 初始化TaobaoFliggyWrateGetmixratelistAPIRequest对象 +func NewTaobaoFliggyWrateGetmixratelistRequest() *TaobaoFliggyWrateGetmixratelistAPIRequest{ + return &TaobaoFliggyWrateGetmixratelistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFliggyWrateGetmixratelistAPIRequest) GetApiMethodName() string { + return "taobao.fliggy.wrate.getmixratelist" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFliggyWrateGetmixratelistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamTopGetMixRateListParam Setter +// 评论列表查询参数 +func (r *TaobaoFliggyWrateGetmixratelistAPIRequest) SetParamTopGetMixRateListParam(_paramTopGetMixRateListParam *TopGetMixRateListParam) error { + r._paramTopGetMixRateListParam = _paramTopGetMixRateListParam + r.Set("param_top_get_mix_rate_list_param", _paramTopGetMixRateListParam) + return nil +} + +// ParamTopGetMixRateListParam Getter +func (r TaobaoFliggyWrateGetmixratelistAPIRequest) GetParamTopGetMixRateListParam() *TopGetMixRateListParam { + return r._paramTopGetMixRateListParam +} diff --git a/model/traderate/TaobaoFliggyWrateGetmixratelistAPIResponse.go b/model/traderate/TaobaoFliggyWrateGetmixratelistAPIResponse.go new file mode 100644 index 0000000000..ab6fadc528 --- /dev/null +++ b/model/traderate/TaobaoFliggyWrateGetmixratelistAPIResponse.go @@ -0,0 +1,27 @@ +package traderate + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪通用评价接口 API返回值 +taobao.fliggy.wrate.getmixratelist + +飞猪评价通用接口 +*/ +type TaobaoFliggyWrateGetmixratelistAPIResponse struct { + model.CommonResponse + TaobaoFliggyWrateGetmixratelistAPIResponseModel +} + +// 飞猪通用评价接口 成功返回结果 +type TaobaoFliggyWrateGetmixratelistAPIResponseModel struct { + XMLName xml.Name `xml:"fliggy_wrate_getmixratelist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoFliggyWrateGetmixratelistResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/traderate/TaobaoFliggyWrateGetmixratelistResponse.go b/model/traderate/TaobaoFliggyWrateGetmixratelistResponse.go deleted file mode 100644 index 6c612a55f2..0000000000 --- a/model/traderate/TaobaoFliggyWrateGetmixratelistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package traderate - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -飞猪通用评价接口 API返回值 -taobao.fliggy.wrate.getmixratelist - -飞猪评价通用接口 -*/ -type TaobaoFliggyWrateGetmixratelistAPIResponse struct { - model.CommonResponse - TaobaoFliggyWrateGetmixratelistResponse -} - -// 飞猪通用评价接口 成功返回结果 -type TaobaoFliggyWrateGetmixratelistResponse struct { - XMLName xml.Name `xml:"fliggy_wrate_getmixratelist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoFliggyWrateGetmixratelistResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/traderate/TaobaoTraderateAddAPIRequest.go b/model/traderate/TaobaoTraderateAddAPIRequest.go new file mode 100644 index 0000000000..d0c9af45ba --- /dev/null +++ b/model/traderate/TaobaoTraderateAddAPIRequest.go @@ -0,0 +1,122 @@ +package traderate + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增单个评价 API请求 +taobao.traderate.add + +新增单个评价(注:在评价之前需要对订单成功的时间进行判定(end_time),如果超过15天,不能再通过该接口进行评价) +*/ +type TaobaoTraderateAddAPIRequest struct { + model.Params + // 交易ID + _tid int64 + // 子订单ID + _oid int64 + // 评价结果,可选值:good(好评),neutral(中评),bad(差评) + _result string + // 评价者角色,可选值:seller(卖家),buyer(买家) + _role string + // 评价内容,最大长度: 500个汉字 .注意:当评价结果为good时就不用输入评价内容.评价内容为neutral/bad的时候需要输入评价内容 + _content string + // 是否匿名,卖家评不能匿名。可选值:true(匿名),false(非匿名)。注意:如果交易订单匿名,则评价也匿名 + _anony bool +} + +// 初始化TaobaoTraderateAddAPIRequest对象 +func NewTaobaoTraderateAddRequest() *TaobaoTraderateAddAPIRequest{ + return &TaobaoTraderateAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTraderateAddAPIRequest) GetApiMethodName() string { + return "taobao.traderate.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTraderateAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 交易ID +func (r *TaobaoTraderateAddAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoTraderateAddAPIRequest) GetTid() int64 { + return r._tid +} +// Oid Setter +// 子订单ID +func (r *TaobaoTraderateAddAPIRequest) SetOid(_oid int64) error { + r._oid = _oid + r.Set("oid", _oid) + return nil +} + +// Oid Getter +func (r TaobaoTraderateAddAPIRequest) GetOid() int64 { + return r._oid +} +// Result Setter +// 评价结果,可选值:good(好评),neutral(中评),bad(差评) +func (r *TaobaoTraderateAddAPIRequest) SetResult(_result string) error { + r._result = _result + r.Set("result", _result) + return nil +} + +// Result Getter +func (r TaobaoTraderateAddAPIRequest) GetResult() string { + return r._result +} +// Role Setter +// 评价者角色,可选值:seller(卖家),buyer(买家) +func (r *TaobaoTraderateAddAPIRequest) SetRole(_role string) error { + r._role = _role + r.Set("role", _role) + return nil +} + +// Role Getter +func (r TaobaoTraderateAddAPIRequest) GetRole() string { + return r._role +} +// Content Setter +// 评价内容,最大长度: 500个汉字 .注意:当评价结果为good时就不用输入评价内容.评价内容为neutral/bad的时候需要输入评价内容 +func (r *TaobaoTraderateAddAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r TaobaoTraderateAddAPIRequest) GetContent() string { + return r._content +} +// Anony Setter +// 是否匿名,卖家评不能匿名。可选值:true(匿名),false(非匿名)。注意:如果交易订单匿名,则评价也匿名 +func (r *TaobaoTraderateAddAPIRequest) SetAnony(_anony bool) error { + r._anony = _anony + r.Set("anony", _anony) + return nil +} + +// Anony Getter +func (r TaobaoTraderateAddAPIRequest) GetAnony() bool { + return r._anony +} diff --git a/model/traderate/TaobaoTraderateAddAPIResponse.go b/model/traderate/TaobaoTraderateAddAPIResponse.go new file mode 100644 index 0000000000..023b1788f8 --- /dev/null +++ b/model/traderate/TaobaoTraderateAddAPIResponse.go @@ -0,0 +1,27 @@ +package traderate + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增单个评价 API返回值 +taobao.traderate.add + +新增单个评价(注:在评价之前需要对订单成功的时间进行判定(end_time),如果超过15天,不能再通过该接口进行评价) +*/ +type TaobaoTraderateAddAPIResponse struct { + model.CommonResponse + TaobaoTraderateAddAPIResponseModel +} + +// 新增单个评价 成功返回结果 +type TaobaoTraderateAddAPIResponseModel struct { + XMLName xml.Name `xml:"traderate_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回tid、oid、create + TradeRate *TradeRateRequest `json:"trade_rate,omitempty" xml:"trade_rate,omitempty"` +} diff --git a/model/traderate/TaobaoTraderateAddResponse.go b/model/traderate/TaobaoTraderateAddResponse.go deleted file mode 100644 index 463db10951..0000000000 --- a/model/traderate/TaobaoTraderateAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package traderate - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增单个评价 API返回值 -taobao.traderate.add - -新增单个评价(注:在评价之前需要对订单成功的时间进行判定(end_time),如果超过15天,不能再通过该接口进行评价) -*/ -type TaobaoTraderateAddAPIResponse struct { - model.CommonResponse - TaobaoTraderateAddResponse -} - -// 新增单个评价 成功返回结果 -type TaobaoTraderateAddResponse struct { - XMLName xml.Name `xml:"traderate_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回tid、oid、create - TradeRate *TradeRateRequest `json:"trade_rate,omitempty" xml:"trade_rate,omitempty"` -} diff --git a/model/traderate/TaobaoTraderateExplainAddAPIRequest.go b/model/traderate/TaobaoTraderateExplainAddAPIRequest.go new file mode 100644 index 0000000000..96c330c870 --- /dev/null +++ b/model/traderate/TaobaoTraderateExplainAddAPIRequest.go @@ -0,0 +1,66 @@ +package traderate + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商城评价解释接口 API请求 +taobao.traderate.explain.add + +商城卖家给评价做出解释(买家追加评论后、评价超过30天的,都不能再做评价解释) +*/ +type TaobaoTraderateExplainAddAPIRequest struct { + model.Params + // 子订单ID + _oid int64 + // 评价解释内容,最大长度:500个汉字 + _reply string +} + +// 初始化TaobaoTraderateExplainAddAPIRequest对象 +func NewTaobaoTraderateExplainAddRequest() *TaobaoTraderateExplainAddAPIRequest{ + return &TaobaoTraderateExplainAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTraderateExplainAddAPIRequest) GetApiMethodName() string { + return "taobao.traderate.explain.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTraderateExplainAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Oid Setter +// 子订单ID +func (r *TaobaoTraderateExplainAddAPIRequest) SetOid(_oid int64) error { + r._oid = _oid + r.Set("oid", _oid) + return nil +} + +// Oid Getter +func (r TaobaoTraderateExplainAddAPIRequest) GetOid() int64 { + return r._oid +} +// Reply Setter +// 评价解释内容,最大长度:500个汉字 +func (r *TaobaoTraderateExplainAddAPIRequest) SetReply(_reply string) error { + r._reply = _reply + r.Set("reply", _reply) + return nil +} + +// Reply Getter +func (r TaobaoTraderateExplainAddAPIRequest) GetReply() string { + return r._reply +} diff --git a/model/traderate/TaobaoTraderateExplainAddAPIResponse.go b/model/traderate/TaobaoTraderateExplainAddAPIResponse.go new file mode 100644 index 0000000000..a83de5919c --- /dev/null +++ b/model/traderate/TaobaoTraderateExplainAddAPIResponse.go @@ -0,0 +1,27 @@ +package traderate + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商城评价解释接口 API返回值 +taobao.traderate.explain.add + +商城卖家给评价做出解释(买家追加评论后、评价超过30天的,都不能再做评价解释) +*/ +type TaobaoTraderateExplainAddAPIResponse struct { + model.CommonResponse + TaobaoTraderateExplainAddAPIResponseModel +} + +// 商城评价解释接口 成功返回结果 +type TaobaoTraderateExplainAddAPIResponseModel struct { + XMLName xml.Name `xml:"traderate_explain_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商城卖家给评价解释是否成功。 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/traderate/TaobaoTraderateExplainAddResponse.go b/model/traderate/TaobaoTraderateExplainAddResponse.go deleted file mode 100644 index 1dae089661..0000000000 --- a/model/traderate/TaobaoTraderateExplainAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package traderate - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商城评价解释接口 API返回值 -taobao.traderate.explain.add - -商城卖家给评价做出解释(买家追加评论后、评价超过30天的,都不能再做评价解释) -*/ -type TaobaoTraderateExplainAddAPIResponse struct { - model.CommonResponse - TaobaoTraderateExplainAddResponse -} - -// 商城评价解释接口 成功返回结果 -type TaobaoTraderateExplainAddResponse struct { - XMLName xml.Name `xml:"traderate_explain_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商城卖家给评价解释是否成功。 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/traderate/TaobaoTraderateImprImprwordsGetAPIRequest.go b/model/traderate/TaobaoTraderateImprImprwordsGetAPIRequest.go new file mode 100644 index 0000000000..d55373eb8c --- /dev/null +++ b/model/traderate/TaobaoTraderateImprImprwordsGetAPIRequest.go @@ -0,0 +1,66 @@ +package traderate + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +评价大家印象印象短语接口 API请求 +taobao.traderate.impr.imprwords.get + +根据淘宝后台类目的一级类目和叶子类目 +*/ +type TaobaoTraderateImprImprwordsGetAPIRequest struct { + model.Params + // 淘宝一级类目id + _catRootId int64 + // 淘宝叶子类目id + _catLeafId int64 +} + +// 初始化TaobaoTraderateImprImprwordsGetAPIRequest对象 +func NewTaobaoTraderateImprImprwordsGetRequest() *TaobaoTraderateImprImprwordsGetAPIRequest{ + return &TaobaoTraderateImprImprwordsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTraderateImprImprwordsGetAPIRequest) GetApiMethodName() string { + return "taobao.traderate.impr.imprwords.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTraderateImprImprwordsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CatRootId Setter +// 淘宝一级类目id +func (r *TaobaoTraderateImprImprwordsGetAPIRequest) SetCatRootId(_catRootId int64) error { + r._catRootId = _catRootId + r.Set("cat_root_id", _catRootId) + return nil +} + +// CatRootId Getter +func (r TaobaoTraderateImprImprwordsGetAPIRequest) GetCatRootId() int64 { + return r._catRootId +} +// CatLeafId Setter +// 淘宝叶子类目id +func (r *TaobaoTraderateImprImprwordsGetAPIRequest) SetCatLeafId(_catLeafId int64) error { + r._catLeafId = _catLeafId + r.Set("cat_leaf_id", _catLeafId) + return nil +} + +// CatLeafId Getter +func (r TaobaoTraderateImprImprwordsGetAPIRequest) GetCatLeafId() int64 { + return r._catLeafId +} diff --git a/model/traderate/TaobaoTraderateImprImprwordsGetAPIResponse.go b/model/traderate/TaobaoTraderateImprImprwordsGetAPIResponse.go new file mode 100644 index 0000000000..85ac82ea61 --- /dev/null +++ b/model/traderate/TaobaoTraderateImprImprwordsGetAPIResponse.go @@ -0,0 +1,27 @@ +package traderate + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +评价大家印象印象短语接口 API返回值 +taobao.traderate.impr.imprwords.get + +根据淘宝后台类目的一级类目和叶子类目 +*/ +type TaobaoTraderateImprImprwordsGetAPIResponse struct { + model.CommonResponse + TaobaoTraderateImprImprwordsGetAPIResponseModel +} + +// 评价大家印象印象短语接口 成功返回结果 +type TaobaoTraderateImprImprwordsGetAPIResponseModel struct { + XMLName xml.Name `xml:"traderate_impr_imprwords_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回类目下所有大家印象的标签 + ImprWords []string `json:"impr_words,omitempty" xml:"impr_words>string,omitempty"` +} diff --git a/model/traderate/TaobaoTraderateImprImprwordsGetResponse.go b/model/traderate/TaobaoTraderateImprImprwordsGetResponse.go deleted file mode 100644 index 2f7599a431..0000000000 --- a/model/traderate/TaobaoTraderateImprImprwordsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package traderate - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -评价大家印象印象短语接口 API返回值 -taobao.traderate.impr.imprwords.get - -根据淘宝后台类目的一级类目和叶子类目 -*/ -type TaobaoTraderateImprImprwordsGetAPIResponse struct { - model.CommonResponse - TaobaoTraderateImprImprwordsGetResponse -} - -// 评价大家印象印象短语接口 成功返回结果 -type TaobaoTraderateImprImprwordsGetResponse struct { - XMLName xml.Name `xml:"traderate_impr_imprwords_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回类目下所有大家印象的标签 - ImprWords []string `json:"impr_words,omitempty" xml:"impr_words>string,omitempty"` -} diff --git a/model/traderate/TaobaoTraderateListAddAPIRequest.go b/model/traderate/TaobaoTraderateListAddAPIRequest.go new file mode 100644 index 0000000000..ac829c4ecc --- /dev/null +++ b/model/traderate/TaobaoTraderateListAddAPIRequest.go @@ -0,0 +1,108 @@ +package traderate + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +针对父子订单新增批量评价 API请求 +taobao.traderate.list.add + +针对父子订单新增批量评价(注:在评价之前需要对订单成功的时间进行判定(end_time),如果超过15天,不用再通过该接口进行评价) +*/ +type TaobaoTraderateListAddAPIRequest struct { + model.Params + // 交易ID + _tid int64 + // 评价结果。可选值:good(好评),neutral(中评),bad(差评) + _result string + // 评价者角色。可选值:seller(卖家),buyer(买家) + _role string + // 评价内容,最大长度: 500个汉字 .注意:当评价结果为good时就不用输入评价内容.评价内容为neutral/bad的时候需要输入评价内容 + _content string + // 是否匿名,卖家评不能匿名。可选值:true(匿名),false(非匿名)。 注意:如果买家匿名购买,那么买家的评价默认匿名 + _anony bool +} + +// 初始化TaobaoTraderateListAddAPIRequest对象 +func NewTaobaoTraderateListAddRequest() *TaobaoTraderateListAddAPIRequest{ + return &TaobaoTraderateListAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTraderateListAddAPIRequest) GetApiMethodName() string { + return "taobao.traderate.list.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTraderateListAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 交易ID +func (r *TaobaoTraderateListAddAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoTraderateListAddAPIRequest) GetTid() int64 { + return r._tid +} +// Result Setter +// 评价结果。可选值:good(好评),neutral(中评),bad(差评) +func (r *TaobaoTraderateListAddAPIRequest) SetResult(_result string) error { + r._result = _result + r.Set("result", _result) + return nil +} + +// Result Getter +func (r TaobaoTraderateListAddAPIRequest) GetResult() string { + return r._result +} +// Role Setter +// 评价者角色。可选值:seller(卖家),buyer(买家) +func (r *TaobaoTraderateListAddAPIRequest) SetRole(_role string) error { + r._role = _role + r.Set("role", _role) + return nil +} + +// Role Getter +func (r TaobaoTraderateListAddAPIRequest) GetRole() string { + return r._role +} +// Content Setter +// 评价内容,最大长度: 500个汉字 .注意:当评价结果为good时就不用输入评价内容.评价内容为neutral/bad的时候需要输入评价内容 +func (r *TaobaoTraderateListAddAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r TaobaoTraderateListAddAPIRequest) GetContent() string { + return r._content +} +// Anony Setter +// 是否匿名,卖家评不能匿名。可选值:true(匿名),false(非匿名)。 注意:如果买家匿名购买,那么买家的评价默认匿名 +func (r *TaobaoTraderateListAddAPIRequest) SetAnony(_anony bool) error { + r._anony = _anony + r.Set("anony", _anony) + return nil +} + +// Anony Getter +func (r TaobaoTraderateListAddAPIRequest) GetAnony() bool { + return r._anony +} diff --git a/model/traderate/TaobaoTraderateListAddAPIResponse.go b/model/traderate/TaobaoTraderateListAddAPIResponse.go new file mode 100644 index 0000000000..95f84adaaa --- /dev/null +++ b/model/traderate/TaobaoTraderateListAddAPIResponse.go @@ -0,0 +1,27 @@ +package traderate + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +针对父子订单新增批量评价 API返回值 +taobao.traderate.list.add + +针对父子订单新增批量评价(注:在评价之前需要对订单成功的时间进行判定(end_time),如果超过15天,不用再通过该接口进行评价) +*/ +type TaobaoTraderateListAddAPIResponse struct { + model.CommonResponse + TaobaoTraderateListAddAPIResponseModel +} + +// 针对父子订单新增批量评价 成功返回结果 +type TaobaoTraderateListAddAPIResponseModel struct { + XMLName xml.Name `xml:"traderate_list_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的评论的信息,仅返回tid和created字段 + TradeRate *TradeRateRequest `json:"trade_rate,omitempty" xml:"trade_rate,omitempty"` +} diff --git a/model/traderate/TaobaoTraderateListAddResponse.go b/model/traderate/TaobaoTraderateListAddResponse.go deleted file mode 100644 index b1301225a3..0000000000 --- a/model/traderate/TaobaoTraderateListAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package traderate - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -针对父子订单新增批量评价 API返回值 -taobao.traderate.list.add - -针对父子订单新增批量评价(注:在评价之前需要对订单成功的时间进行判定(end_time),如果超过15天,不用再通过该接口进行评价) -*/ -type TaobaoTraderateListAddAPIResponse struct { - model.CommonResponse - TaobaoTraderateListAddResponse -} - -// 针对父子订单新增批量评价 成功返回结果 -type TaobaoTraderateListAddResponse struct { - XMLName xml.Name `xml:"traderate_list_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的评论的信息,仅返回tid和created字段 - TradeRate *TradeRateRequest `json:"trade_rate,omitempty" xml:"trade_rate,omitempty"` -} diff --git a/model/traderate/TaobaoTraderatesGetAPIRequest.go b/model/traderate/TaobaoTraderatesGetAPIRequest.go new file mode 100644 index 0000000000..9337234569 --- /dev/null +++ b/model/traderate/TaobaoTraderatesGetAPIRequest.go @@ -0,0 +1,192 @@ +package traderate + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索评价信息 API请求 +taobao.traderates.get + +搜索评价信息,只能获取距今180天内的评价记录(只支持查询卖家给出或得到的评价)。 +*/ +type TaobaoTraderatesGetAPIRequest struct { + model.Params + // 需返回的字段列表。可选值:TradeRate 结构中的所有字段,多个字段之间用“,”分隔 + _fields []string + // 评价类型。可选值:get(得到),give(给出) + _rateType string + // 评价者角色即评价的发起方。可选值:seller(卖家),buyer(买家)。 当 give buyer 以买家身份给卖家的评价; 当 get seller 以买家身份得到卖家给的评价; 当 give seller 以卖家身份给买家的评价; 当 get buyer 以卖家身份得到买家给的评价。 + _role string + // 评价结果。可选值:good(好评),neutral(中评),bad(差评) + _result string + // 页码。取值范围:大于零的整数最大限制为200; 默认值:1 + _pageNo int64 + // 每页获取条数。默认值40,最小值1,最大值150。 + _pageSize int64 + // 评价开始时。如果只输入开始时间,那么能返回开始时间之后的评价数据。 + _startDate string + // 评价结束时间。如果只输入结束时间,那么全部返回所有评价数据。 + _endDate string + // 交易订单id,可以是父订单id号,也可以是子订单id号 + _tid int64 + // 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取评价信息,效率在原有的基础上有80%的提升。 + _useHasNext bool + // 商品的数字ID + _numIid int64 +} + +// 初始化TaobaoTraderatesGetAPIRequest对象 +func NewTaobaoTraderatesGetRequest() *TaobaoTraderatesGetAPIRequest{ + return &TaobaoTraderatesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTraderatesGetAPIRequest) GetApiMethodName() string { + return "taobao.traderates.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTraderatesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需返回的字段列表。可选值:TradeRate 结构中的所有字段,多个字段之间用“,”分隔 +func (r *TaobaoTraderatesGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoTraderatesGetAPIRequest) GetFields() []string { + return r._fields +} +// RateType Setter +// 评价类型。可选值:get(得到),give(给出) +func (r *TaobaoTraderatesGetAPIRequest) SetRateType(_rateType string) error { + r._rateType = _rateType + r.Set("rate_type", _rateType) + return nil +} + +// RateType Getter +func (r TaobaoTraderatesGetAPIRequest) GetRateType() string { + return r._rateType +} +// Role Setter +// 评价者角色即评价的发起方。可选值:seller(卖家),buyer(买家)。 当 give buyer 以买家身份给卖家的评价; 当 get seller 以买家身份得到卖家给的评价; 当 give seller 以卖家身份给买家的评价; 当 get buyer 以卖家身份得到买家给的评价。 +func (r *TaobaoTraderatesGetAPIRequest) SetRole(_role string) error { + r._role = _role + r.Set("role", _role) + return nil +} + +// Role Getter +func (r TaobaoTraderatesGetAPIRequest) GetRole() string { + return r._role +} +// Result Setter +// 评价结果。可选值:good(好评),neutral(中评),bad(差评) +func (r *TaobaoTraderatesGetAPIRequest) SetResult(_result string) error { + r._result = _result + r.Set("result", _result) + return nil +} + +// Result Getter +func (r TaobaoTraderatesGetAPIRequest) GetResult() string { + return r._result +} +// PageNo Setter +// 页码。取值范围:大于零的整数最大限制为200; 默认值:1 +func (r *TaobaoTraderatesGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoTraderatesGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页获取条数。默认值40,最小值1,最大值150。 +func (r *TaobaoTraderatesGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoTraderatesGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// StartDate Setter +// 评价开始时。如果只输入开始时间,那么能返回开始时间之后的评价数据。 +func (r *TaobaoTraderatesGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoTraderatesGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 评价结束时间。如果只输入结束时间,那么全部返回所有评价数据。 +func (r *TaobaoTraderatesGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoTraderatesGetAPIRequest) GetEndDate() string { + return r._endDate +} +// Tid Setter +// 交易订单id,可以是父订单id号,也可以是子订单id号 +func (r *TaobaoTraderatesGetAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoTraderatesGetAPIRequest) GetTid() int64 { + return r._tid +} +// UseHasNext Setter +// 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取评价信息,效率在原有的基础上有80%的提升。 +func (r *TaobaoTraderatesGetAPIRequest) SetUseHasNext(_useHasNext bool) error { + r._useHasNext = _useHasNext + r.Set("use_has_next", _useHasNext) + return nil +} + +// UseHasNext Getter +func (r TaobaoTraderatesGetAPIRequest) GetUseHasNext() bool { + return r._useHasNext +} +// NumIid Setter +// 商品的数字ID +func (r *TaobaoTraderatesGetAPIRequest) SetNumIid(_numIid int64) error { + r._numIid = _numIid + r.Set("num_iid", _numIid) + return nil +} + +// NumIid Getter +func (r TaobaoTraderatesGetAPIRequest) GetNumIid() int64 { + return r._numIid +} diff --git a/model/traderate/TaobaoTraderatesGetAPIResponse.go b/model/traderate/TaobaoTraderatesGetAPIResponse.go new file mode 100644 index 0000000000..0b10a730bc --- /dev/null +++ b/model/traderate/TaobaoTraderatesGetAPIResponse.go @@ -0,0 +1,31 @@ +package traderate + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索评价信息 API返回值 +taobao.traderates.get + +搜索评价信息,只能获取距今180天内的评价记录(只支持查询卖家给出或得到的评价)。 +*/ +type TaobaoTraderatesGetAPIResponse struct { + model.CommonResponse + TaobaoTraderatesGetAPIResponseModel +} + +// 搜索评价信息 成功返回结果 +type TaobaoTraderatesGetAPIResponseModel struct { + XMLName xml.Name `xml:"traderates_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 评价列表。返回的TradeRate包含的具体信息为入参fields请求的字段信息 + TradeRates []TradeRate `json:"trade_rates,omitempty" xml:"trade_rates>trade_rate,omitempty"` + // 搜索到的评价总数。相同的查询时间段条件下,最大只能获取总共1500条评价记录。所以当评价大于等于1500时 ISV可以通过start_date及end_date来进行拆分,以保证可以查询到全部数据 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 当使用use_has_next时返回信息,如果还有下一页则返回true + HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` +} diff --git a/model/traderate/TaobaoTraderatesGetResponse.go b/model/traderate/TaobaoTraderatesGetResponse.go deleted file mode 100644 index d09d1fe040..0000000000 --- a/model/traderate/TaobaoTraderatesGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package traderate - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -搜索评价信息 API返回值 -taobao.traderates.get - -搜索评价信息,只能获取距今180天内的评价记录(只支持查询卖家给出或得到的评价)。 -*/ -type TaobaoTraderatesGetAPIResponse struct { - model.CommonResponse - TaobaoTraderatesGetResponse -} - -// 搜索评价信息 成功返回结果 -type TaobaoTraderatesGetResponse struct { - XMLName xml.Name `xml:"traderates_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 评价列表。返回的TradeRate包含的具体信息为入参fields请求的字段信息 - TradeRates []TradeRate `json:"trade_rates,omitempty" xml:"trade_rates>trade_rate,omitempty"` - // 搜索到的评价总数。相同的查询时间段条件下,最大只能获取总共1500条评价记录。所以当评价大于等于1500时 ISV可以通过start_date及end_date来进行拆分,以保证可以查询到全部数据 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 当使用use_has_next时返回信息,如果还有下一页则返回true - HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` -} diff --git a/model/traderate/TmallTraderateFeedsGetAPIRequest.go b/model/traderate/TmallTraderateFeedsGetAPIRequest.go new file mode 100644 index 0000000000..cb888529c2 --- /dev/null +++ b/model/traderate/TmallTraderateFeedsGetAPIRequest.go @@ -0,0 +1,52 @@ +package traderate + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询子订单对应的评价、追评以及语义标签 API请求 +tmall.traderate.feeds.get + +通过子订单ID获取天猫订单对应的评价,追评,以及对应的语义标签 +*/ +type TmallTraderateFeedsGetAPIRequest struct { + model.Params + // 交易子订单ID + _childTradeId int64 +} + +// 初始化TmallTraderateFeedsGetAPIRequest对象 +func NewTmallTraderateFeedsGetRequest() *TmallTraderateFeedsGetAPIRequest{ + return &TmallTraderateFeedsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTraderateFeedsGetAPIRequest) GetApiMethodName() string { + return "tmall.traderate.feeds.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTraderateFeedsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChildTradeId Setter +// 交易子订单ID +func (r *TmallTraderateFeedsGetAPIRequest) SetChildTradeId(_childTradeId int64) error { + r._childTradeId = _childTradeId + r.Set("child_trade_id", _childTradeId) + return nil +} + +// ChildTradeId Getter +func (r TmallTraderateFeedsGetAPIRequest) GetChildTradeId() int64 { + return r._childTradeId +} diff --git a/model/traderate/TmallTraderateFeedsGetAPIResponse.go b/model/traderate/TmallTraderateFeedsGetAPIResponse.go new file mode 100644 index 0000000000..7ebe3d7ecc --- /dev/null +++ b/model/traderate/TmallTraderateFeedsGetAPIResponse.go @@ -0,0 +1,27 @@ +package traderate + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询子订单对应的评价、追评以及语义标签 API返回值 +tmall.traderate.feeds.get + +通过子订单ID获取天猫订单对应的评价,追评,以及对应的语义标签 +*/ +type TmallTraderateFeedsGetAPIResponse struct { + model.CommonResponse + TmallTraderateFeedsGetAPIResponseModel +} + +// 查询子订单对应的评价、追评以及语义标签 成功返回结果 +type TmallTraderateFeedsGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_traderate_feeds_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回评价信息 + TmallRateInfo *TmallRateInfo `json:"tmall_rate_info,omitempty" xml:"tmall_rate_info,omitempty"` +} diff --git a/model/traderate/TmallTraderateFeedsGetResponse.go b/model/traderate/TmallTraderateFeedsGetResponse.go deleted file mode 100644 index c635cc46ad..0000000000 --- a/model/traderate/TmallTraderateFeedsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package traderate - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询子订单对应的评价、追评以及语义标签 API返回值 -tmall.traderate.feeds.get - -通过子订单ID获取天猫订单对应的评价,追评,以及对应的语义标签 -*/ -type TmallTraderateFeedsGetAPIResponse struct { - model.CommonResponse - TmallTraderateFeedsGetResponse -} - -// 查询子订单对应的评价、追评以及语义标签 成功返回结果 -type TmallTraderateFeedsGetResponse struct { - XMLName xml.Name `xml:"tmall_traderate_feeds_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回评价信息 - TmallRateInfo *TmallRateInfo `json:"tmall_rate_info,omitempty" xml:"tmall_rate_info,omitempty"` -} diff --git a/model/traderate/TmallTraderateItemtagsGetAPIRequest.go b/model/traderate/TmallTraderateItemtagsGetAPIRequest.go new file mode 100644 index 0000000000..7852297550 --- /dev/null +++ b/model/traderate/TmallTraderateItemtagsGetAPIRequest.go @@ -0,0 +1,52 @@ +package traderate + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过商品ID获取标签列表 API请求 +tmall.traderate.itemtags.get + +通过商品ID获取标签详细信息 +*/ +type TmallTraderateItemtagsGetAPIRequest struct { + model.Params + // 商品ID + _itemId int64 +} + +// 初始化TmallTraderateItemtagsGetAPIRequest对象 +func NewTmallTraderateItemtagsGetRequest() *TmallTraderateItemtagsGetAPIRequest{ + return &TmallTraderateItemtagsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTraderateItemtagsGetAPIRequest) GetApiMethodName() string { + return "tmall.traderate.itemtags.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTraderateItemtagsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品ID +func (r *TmallTraderateItemtagsGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TmallTraderateItemtagsGetAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/traderate/TmallTraderateItemtagsGetAPIResponse.go b/model/traderate/TmallTraderateItemtagsGetAPIResponse.go new file mode 100644 index 0000000000..bf8fd6ee41 --- /dev/null +++ b/model/traderate/TmallTraderateItemtagsGetAPIResponse.go @@ -0,0 +1,27 @@ +package traderate + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过商品ID获取标签列表 API返回值 +tmall.traderate.itemtags.get + +通过商品ID获取标签详细信息 +*/ +type TmallTraderateItemtagsGetAPIResponse struct { + model.CommonResponse + TmallTraderateItemtagsGetAPIResponseModel +} + +// 通过商品ID获取标签列表 成功返回结果 +type TmallTraderateItemtagsGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_traderate_itemtags_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 标签列表 + Tags []TmallRateTagDetail `json:"tags,omitempty" xml:"tags>tmall_rate_tag_detail,omitempty"` +} diff --git a/model/traderate/TmallTraderateItemtagsGetResponse.go b/model/traderate/TmallTraderateItemtagsGetResponse.go deleted file mode 100644 index ded59d8454..0000000000 --- a/model/traderate/TmallTraderateItemtagsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package traderate - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过商品ID获取标签列表 API返回值 -tmall.traderate.itemtags.get - -通过商品ID获取标签详细信息 -*/ -type TmallTraderateItemtagsGetAPIResponse struct { - model.CommonResponse - TmallTraderateItemtagsGetResponse -} - -// 通过商品ID获取标签列表 成功返回结果 -type TmallTraderateItemtagsGetResponse struct { - XMLName xml.Name `xml:"tmall_traderate_itemtags_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 标签列表 - Tags []TmallRateTagDetail `json:"tags,omitempty" xml:"tags>tmall_rate_tag_detail,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentBookordersGetAPIRequest.go b/model/train/TaobaoTrainAgentBookordersGetAPIRequest.go new file mode 100644 index 0000000000..18898cd92f --- /dev/null +++ b/model/train/TaobaoTrainAgentBookordersGetAPIRequest.go @@ -0,0 +1,52 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商获取待出票订单列表 API请求 +taobao.train.agent.bookorders.get + +代理商获取待出票订单列表,只返回订单号 +*/ +type TaobaoTrainAgentBookordersGetAPIRequest struct { + model.Params + // 代理商id + _agentId int64 +} + +// 初始化TaobaoTrainAgentBookordersGetAPIRequest对象 +func NewTaobaoTrainAgentBookordersGetRequest() *TaobaoTrainAgentBookordersGetAPIRequest{ + return &TaobaoTrainAgentBookordersGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentBookordersGetAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.bookorders.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentBookordersGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentId Setter +// 代理商id +func (r *TaobaoTrainAgentBookordersGetAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoTrainAgentBookordersGetAPIRequest) GetAgentId() int64 { + return r._agentId +} diff --git a/model/train/TaobaoTrainAgentBookordersGetAPIResponse.go b/model/train/TaobaoTrainAgentBookordersGetAPIResponse.go new file mode 100644 index 0000000000..eeab078444 --- /dev/null +++ b/model/train/TaobaoTrainAgentBookordersGetAPIResponse.go @@ -0,0 +1,31 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商获取待出票订单列表 API返回值 +taobao.train.agent.bookorders.get + +代理商获取待出票订单列表,只返回订单号 +*/ +type TaobaoTrainAgentBookordersGetAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentBookordersGetAPIResponseModel +} + +// 代理商获取待出票订单列表 成功返回结果 +type TaobaoTrainAgentBookordersGetAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_bookorders_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 待处理订单总数 + OrderCount int64 `json:"order_count,omitempty" xml:"order_count,omitempty"` + // 订单号集合,用半角逗号(,)连接,只会返回固定数量 + OrderIds string `json:"order_ids,omitempty" xml:"order_ids,omitempty"` + // 错误描述 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentBookordersGetResponse.go b/model/train/TaobaoTrainAgentBookordersGetResponse.go deleted file mode 100644 index 1dee5b0c68..0000000000 --- a/model/train/TaobaoTrainAgentBookordersGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -代理商获取待出票订单列表 API返回值 -taobao.train.agent.bookorders.get - -代理商获取待出票订单列表,只返回订单号 -*/ -type TaobaoTrainAgentBookordersGetAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentBookordersGetResponse -} - -// 代理商获取待出票订单列表 成功返回结果 -type TaobaoTrainAgentBookordersGetResponse struct { - XMLName xml.Name `xml:"train_agent_bookorders_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 待处理订单总数 - OrderCount int64 `json:"order_count,omitempty" xml:"order_count,omitempty"` - // 订单号集合,用半角逗号(,)连接,只会返回固定数量 - OrderIds string `json:"order_ids,omitempty" xml:"order_ids,omitempty"` - // 错误描述 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentBookordersGetVtwoAPIRequest.go b/model/train/TaobaoTrainAgentBookordersGetVtwoAPIRequest.go new file mode 100644 index 0000000000..569a76ac5e --- /dev/null +++ b/model/train/TaobaoTrainAgentBookordersGetVtwoAPIRequest.go @@ -0,0 +1,52 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商获取待出票订单列表v2--增加鉴权校验 API请求 +taobao.train.agent.bookorders.get.vtwo + +代理商获取待出票订单列表,只返回订单号 +*/ +type TaobaoTrainAgentBookordersGetVtwoAPIRequest struct { + model.Params + // 代理商id + _agentId int64 +} + +// 初始化TaobaoTrainAgentBookordersGetVtwoAPIRequest对象 +func NewTaobaoTrainAgentBookordersGetVtwoRequest() *TaobaoTrainAgentBookordersGetVtwoAPIRequest{ + return &TaobaoTrainAgentBookordersGetVtwoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentBookordersGetVtwoAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.bookorders.get.vtwo" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentBookordersGetVtwoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentId Setter +// 代理商id +func (r *TaobaoTrainAgentBookordersGetVtwoAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoTrainAgentBookordersGetVtwoAPIRequest) GetAgentId() int64 { + return r._agentId +} diff --git a/model/train/TaobaoTrainAgentBookordersGetVtwoAPIResponse.go b/model/train/TaobaoTrainAgentBookordersGetVtwoAPIResponse.go new file mode 100644 index 0000000000..e8095e0e20 --- /dev/null +++ b/model/train/TaobaoTrainAgentBookordersGetVtwoAPIResponse.go @@ -0,0 +1,31 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商获取待出票订单列表v2--增加鉴权校验 API返回值 +taobao.train.agent.bookorders.get.vtwo + +代理商获取待出票订单列表,只返回订单号 +*/ +type TaobaoTrainAgentBookordersGetVtwoAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentBookordersGetVtwoAPIResponseModel +} + +// 代理商获取待出票订单列表v2--增加鉴权校验 成功返回结果 +type TaobaoTrainAgentBookordersGetVtwoAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_bookorders_get_vtwo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 待处理订单总数 + OrderCount int64 `json:"order_count,omitempty" xml:"order_count,omitempty"` + // 订单号集合,用半角逗号(,)连接,只会返回固定数量 + OrderIds string `json:"order_ids,omitempty" xml:"order_ids,omitempty"` + // 错误描述 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentBookordersGetVtwoResponse.go b/model/train/TaobaoTrainAgentBookordersGetVtwoResponse.go deleted file mode 100644 index 1ba1e7069e..0000000000 --- a/model/train/TaobaoTrainAgentBookordersGetVtwoResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -代理商获取待出票订单列表v2--增加鉴权校验 API返回值 -taobao.train.agent.bookorders.get.vtwo - -代理商获取待出票订单列表,只返回订单号 -*/ -type TaobaoTrainAgentBookordersGetVtwoAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentBookordersGetVtwoResponse -} - -// 代理商获取待出票订单列表v2--增加鉴权校验 成功返回结果 -type TaobaoTrainAgentBookordersGetVtwoResponse struct { - XMLName xml.Name `xml:"train_agent_bookorders_get_vtwo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 待处理订单总数 - OrderCount int64 `json:"order_count,omitempty" xml:"order_count,omitempty"` - // 订单号集合,用半角逗号(,)连接,只会返回固定数量 - OrderIds string `json:"order_ids,omitempty" xml:"order_ids,omitempty"` - // 错误描述 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentBookticketConfirmAPIRequest.go b/model/train/TaobaoTrainAgentBookticketConfirmAPIRequest.go new file mode 100644 index 0000000000..f92877b7bd --- /dev/null +++ b/model/train/TaobaoTrainAgentBookticketConfirmAPIRequest.go @@ -0,0 +1,276 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +火车票代理商接口——确认出票是否成功 API请求 +taobao.train.agent.bookticket.confirm + +火车票代理商接口——确认出票是否成功 +*/ +type TaobaoTrainAgentBookticketConfirmAPIRequest struct { + model.Params + // 错误的子订单号123434,123432 + _subOrderId string + // 是否支持在线退改签 + _canChange bool + // 主订单id + _mainOrderId int64 + // 是否成功 + _status bool + // 代理商id + _agentId int64 + // 火车票子订单id;单价;坐席;座次号;车次;乘车人姓名;证件类型;证件号码;保单号;保单价格 (座次号格式:坐席_车厢号_座位号,eg1:硬卧_09_03号下铺 eg2:硬座_02_03c ,注意:票价、保险价格必须到分) + _tickets []string + // 订单中包含的票数量 + _ticketNum int64 + // 出发时间 + _depDate string + // 12306成功出票id + _ticket12306Id string + // 记录失败原因,传数字,1:票已售完,2:票价变动,3:乘车人已购相同车票,4:出票超时,5:乘车人证件未通过铁路局核验,6:发车时间变动,7:车次信息变更,8:12306故障,9:学生票信息有误,10:身份冒用,11:被限制高消费,12:坐票已售完,13:行程冲突,14:预售期变更,15:用户12306账号登录失败,16:12306账号存在未支付订单,17:用户常旅客已满,18:乘客信息有误,19:非法席别,20:车次停运,21:session登陆失败,22:账户已在其他地方登陆,23:帐号手机未核验,24:取消订单次数达到上限,25:帐号持有人身份未核验,26:邮寄地址无法保证及时送达,27:无法满足用户定制需求,28:您主动要求取消,0:未知原因 + _failMsg string + // 支付宝交易流水号 + _alipayTradeNo string + // 订单类型 0 代购 1直购 3抢票 + _orderType int64 + // 支付宝账号 + _alipayAccount string + // 到达时间 + _arriveDate string + // 出发站 + _fromStationName string + // 到达站 + _toStationName string + // 检票口 + _boardingGates string +} + +// 初始化TaobaoTrainAgentBookticketConfirmAPIRequest对象 +func NewTaobaoTrainAgentBookticketConfirmRequest() *TaobaoTrainAgentBookticketConfirmAPIRequest{ + return &TaobaoTrainAgentBookticketConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.bookticket.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubOrderId Setter +// 错误的子订单号123434,123432 +func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetSubOrderId(_subOrderId string) error { + r._subOrderId = _subOrderId + r.Set("sub_order_id", _subOrderId) + return nil +} + +// SubOrderId Getter +func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetSubOrderId() string { + return r._subOrderId +} +// CanChange Setter +// 是否支持在线退改签 +func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetCanChange(_canChange bool) error { + r._canChange = _canChange + r.Set("can_change", _canChange) + return nil +} + +// CanChange Getter +func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetCanChange() bool { + return r._canChange +} +// MainOrderId Setter +// 主订单id +func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} +// Status Setter +// 是否成功 +func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetStatus(_status bool) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetStatus() bool { + return r._status +} +// AgentId Setter +// 代理商id +func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetAgentId() int64 { + return r._agentId +} +// Tickets Setter +// 火车票子订单id;单价;坐席;座次号;车次;乘车人姓名;证件类型;证件号码;保单号;保单价格 (座次号格式:坐席_车厢号_座位号,eg1:硬卧_09_03号下铺 eg2:硬座_02_03c ,注意:票价、保险价格必须到分) +func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetTickets(_tickets []string) error { + r._tickets = _tickets + r.Set("tickets", _tickets) + return nil +} + +// Tickets Getter +func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetTickets() []string { + return r._tickets +} +// TicketNum Setter +// 订单中包含的票数量 +func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetTicketNum(_ticketNum int64) error { + r._ticketNum = _ticketNum + r.Set("ticket_num", _ticketNum) + return nil +} + +// TicketNum Getter +func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetTicketNum() int64 { + return r._ticketNum +} +// DepDate Setter +// 出发时间 +func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetDepDate(_depDate string) error { + r._depDate = _depDate + r.Set("dep_date", _depDate) + return nil +} + +// DepDate Getter +func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetDepDate() string { + return r._depDate +} +// Ticket12306Id Setter +// 12306成功出票id +func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetTicket12306Id(_ticket12306Id string) error { + r._ticket12306Id = _ticket12306Id + r.Set("ticket_12306_id", _ticket12306Id) + return nil +} + +// Ticket12306Id Getter +func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetTicket12306Id() string { + return r._ticket12306Id +} +// FailMsg Setter +// 记录失败原因,传数字,1:票已售完,2:票价变动,3:乘车人已购相同车票,4:出票超时,5:乘车人证件未通过铁路局核验,6:发车时间变动,7:车次信息变更,8:12306故障,9:学生票信息有误,10:身份冒用,11:被限制高消费,12:坐票已售完,13:行程冲突,14:预售期变更,15:用户12306账号登录失败,16:12306账号存在未支付订单,17:用户常旅客已满,18:乘客信息有误,19:非法席别,20:车次停运,21:session登陆失败,22:账户已在其他地方登陆,23:帐号手机未核验,24:取消订单次数达到上限,25:帐号持有人身份未核验,26:邮寄地址无法保证及时送达,27:无法满足用户定制需求,28:您主动要求取消,0:未知原因 +func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetFailMsg(_failMsg string) error { + r._failMsg = _failMsg + r.Set("fail_msg", _failMsg) + return nil +} + +// FailMsg Getter +func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetFailMsg() string { + return r._failMsg +} +// AlipayTradeNo Setter +// 支付宝交易流水号 +func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetAlipayTradeNo(_alipayTradeNo string) error { + r._alipayTradeNo = _alipayTradeNo + r.Set("alipay_trade_no", _alipayTradeNo) + return nil +} + +// AlipayTradeNo Getter +func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetAlipayTradeNo() string { + return r._alipayTradeNo +} +// OrderType Setter +// 订单类型 0 代购 1直购 3抢票 +func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetOrderType(_orderType int64) error { + r._orderType = _orderType + r.Set("order_type", _orderType) + return nil +} + +// OrderType Getter +func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetOrderType() int64 { + return r._orderType +} +// AlipayAccount Setter +// 支付宝账号 +func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetAlipayAccount(_alipayAccount string) error { + r._alipayAccount = _alipayAccount + r.Set("alipay_account", _alipayAccount) + return nil +} + +// AlipayAccount Getter +func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetAlipayAccount() string { + return r._alipayAccount +} +// ArriveDate Setter +// 到达时间 +func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetArriveDate(_arriveDate string) error { + r._arriveDate = _arriveDate + r.Set("arrive_date", _arriveDate) + return nil +} + +// ArriveDate Getter +func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetArriveDate() string { + return r._arriveDate +} +// FromStationName Setter +// 出发站 +func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetFromStationName(_fromStationName string) error { + r._fromStationName = _fromStationName + r.Set("from_station_name", _fromStationName) + return nil +} + +// FromStationName Getter +func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetFromStationName() string { + return r._fromStationName +} +// ToStationName Setter +// 到达站 +func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetToStationName(_toStationName string) error { + r._toStationName = _toStationName + r.Set("to_station_name", _toStationName) + return nil +} + +// ToStationName Getter +func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetToStationName() string { + return r._toStationName +} +// BoardingGates Setter +// 检票口 +func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetBoardingGates(_boardingGates string) error { + r._boardingGates = _boardingGates + r.Set("boarding_gates", _boardingGates) + return nil +} + +// BoardingGates Getter +func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetBoardingGates() string { + return r._boardingGates +} diff --git a/model/train/TaobaoTrainAgentBookticketConfirmAPIResponse.go b/model/train/TaobaoTrainAgentBookticketConfirmAPIResponse.go new file mode 100644 index 0000000000..9f006080b5 --- /dev/null +++ b/model/train/TaobaoTrainAgentBookticketConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +火车票代理商接口——确认出票是否成功 API返回值 +taobao.train.agent.bookticket.confirm + +火车票代理商接口——确认出票是否成功 +*/ +type TaobaoTrainAgentBookticketConfirmAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentBookticketConfirmAPIResponseModel +} + +// 火车票代理商接口——确认出票是否成功 成功返回结果 +type TaobaoTrainAgentBookticketConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_bookticket_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentBookticketConfirmResponse.go b/model/train/TaobaoTrainAgentBookticketConfirmResponse.go deleted file mode 100644 index 73c2941bae..0000000000 --- a/model/train/TaobaoTrainAgentBookticketConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -火车票代理商接口——确认出票是否成功 API返回值 -taobao.train.agent.bookticket.confirm - -火车票代理商接口——确认出票是否成功 -*/ -type TaobaoTrainAgentBookticketConfirmAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentBookticketConfirmResponse -} - -// 火车票代理商接口——确认出票是否成功 成功返回结果 -type TaobaoTrainAgentBookticketConfirmResponse struct { - XMLName xml.Name `xml:"train_agent_bookticket_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentBookticketConfirmVtwoAPIRequest.go b/model/train/TaobaoTrainAgentBookticketConfirmVtwoAPIRequest.go new file mode 100644 index 0000000000..14733492b0 --- /dev/null +++ b/model/train/TaobaoTrainAgentBookticketConfirmVtwoAPIRequest.go @@ -0,0 +1,318 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +火车票代理商接口——确认出票是否成功v2--增加鉴权校验 API请求 +taobao.train.agent.bookticket.confirm.vtwo + +火车票代理商接口——确认出票是否成功 +*/ +type TaobaoTrainAgentBookticketConfirmVtwoAPIRequest struct { + model.Params + // 错误的子订单号123434,123432 + _subOrderId string + // 是否支持在线退改签 + _canChange bool + // 主订单id + _mainOrderId int64 + // 是否成功 + _status bool + // 代理商id + _agentId int64 + // 火车票id;单价;坐席;座次号;车次;乘车人姓名;证件类型;证件号码;保单号;保单价格特别注意:票价、保险价格必须到分,例如10元,输入为1000. + _tickets []string + // 订单中包含的票数量 + _ticketNum int64 + // 出发时间 + _depDate string + // 12306成功出票id + _ticket12306Id string + // 记录失败原因,传数字,1、票已售完,出票失败全额退款,2、票价变动,出票失败全额退款,3、乘车人已购买相同车票,出票失败全额退款, 4、出票超时,出票失败全额退款,5、乘车人证件未通过铁路局审核,需到售票窗口办理, 6、发车时间变动,出票失败全额退款,7、车次信息错误,出票失败全额退款,8、12306故障,出票失败全额退款, 0、出票失败全额退款 + _failMsg string + // 支付宝交易流水号 + _alipayTradeNo string + // 订单类型0 代购 1直购 3抢票 + _orderType int64 + // 支付宝账号 + _alipayAccount string + // 到达时间 + _arriveDate string + // 出发站 + _fromStationName string + // 到达站 + _toStationName string + // 检票口 + _boardingGates string + // 送票上门预计派送时间 + _expectDeliveryTime string + // 扩展字段 + _extendParams string + // 票信息列表 + _ticketInfoList []OrderTicketInfo +} + +// 初始化TaobaoTrainAgentBookticketConfirmVtwoAPIRequest对象 +func NewTaobaoTrainAgentBookticketConfirmVtwoRequest() *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest{ + return &TaobaoTrainAgentBookticketConfirmVtwoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.bookticket.confirm.vtwo" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubOrderId Setter +// 错误的子订单号123434,123432 +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetSubOrderId(_subOrderId string) error { + r._subOrderId = _subOrderId + r.Set("sub_order_id", _subOrderId) + return nil +} + +// SubOrderId Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetSubOrderId() string { + return r._subOrderId +} +// CanChange Setter +// 是否支持在线退改签 +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetCanChange(_canChange bool) error { + r._canChange = _canChange + r.Set("can_change", _canChange) + return nil +} + +// CanChange Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetCanChange() bool { + return r._canChange +} +// MainOrderId Setter +// 主订单id +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} +// Status Setter +// 是否成功 +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetStatus(_status bool) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetStatus() bool { + return r._status +} +// AgentId Setter +// 代理商id +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetAgentId() int64 { + return r._agentId +} +// Tickets Setter +// 火车票id;单价;坐席;座次号;车次;乘车人姓名;证件类型;证件号码;保单号;保单价格特别注意:票价、保险价格必须到分,例如10元,输入为1000. +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetTickets(_tickets []string) error { + r._tickets = _tickets + r.Set("tickets", _tickets) + return nil +} + +// Tickets Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetTickets() []string { + return r._tickets +} +// TicketNum Setter +// 订单中包含的票数量 +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetTicketNum(_ticketNum int64) error { + r._ticketNum = _ticketNum + r.Set("ticket_num", _ticketNum) + return nil +} + +// TicketNum Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetTicketNum() int64 { + return r._ticketNum +} +// DepDate Setter +// 出发时间 +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetDepDate(_depDate string) error { + r._depDate = _depDate + r.Set("dep_date", _depDate) + return nil +} + +// DepDate Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetDepDate() string { + return r._depDate +} +// Ticket12306Id Setter +// 12306成功出票id +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetTicket12306Id(_ticket12306Id string) error { + r._ticket12306Id = _ticket12306Id + r.Set("ticket_12306_id", _ticket12306Id) + return nil +} + +// Ticket12306Id Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetTicket12306Id() string { + return r._ticket12306Id +} +// FailMsg Setter +// 记录失败原因,传数字,1、票已售完,出票失败全额退款,2、票价变动,出票失败全额退款,3、乘车人已购买相同车票,出票失败全额退款, 4、出票超时,出票失败全额退款,5、乘车人证件未通过铁路局审核,需到售票窗口办理, 6、发车时间变动,出票失败全额退款,7、车次信息错误,出票失败全额退款,8、12306故障,出票失败全额退款, 0、出票失败全额退款 +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetFailMsg(_failMsg string) error { + r._failMsg = _failMsg + r.Set("fail_msg", _failMsg) + return nil +} + +// FailMsg Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetFailMsg() string { + return r._failMsg +} +// AlipayTradeNo Setter +// 支付宝交易流水号 +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetAlipayTradeNo(_alipayTradeNo string) error { + r._alipayTradeNo = _alipayTradeNo + r.Set("alipay_trade_no", _alipayTradeNo) + return nil +} + +// AlipayTradeNo Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetAlipayTradeNo() string { + return r._alipayTradeNo +} +// OrderType Setter +// 订单类型0 代购 1直购 3抢票 +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetOrderType(_orderType int64) error { + r._orderType = _orderType + r.Set("order_type", _orderType) + return nil +} + +// OrderType Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetOrderType() int64 { + return r._orderType +} +// AlipayAccount Setter +// 支付宝账号 +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetAlipayAccount(_alipayAccount string) error { + r._alipayAccount = _alipayAccount + r.Set("alipay_account", _alipayAccount) + return nil +} + +// AlipayAccount Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetAlipayAccount() string { + return r._alipayAccount +} +// ArriveDate Setter +// 到达时间 +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetArriveDate(_arriveDate string) error { + r._arriveDate = _arriveDate + r.Set("arrive_date", _arriveDate) + return nil +} + +// ArriveDate Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetArriveDate() string { + return r._arriveDate +} +// FromStationName Setter +// 出发站 +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetFromStationName(_fromStationName string) error { + r._fromStationName = _fromStationName + r.Set("from_station_name", _fromStationName) + return nil +} + +// FromStationName Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetFromStationName() string { + return r._fromStationName +} +// ToStationName Setter +// 到达站 +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetToStationName(_toStationName string) error { + r._toStationName = _toStationName + r.Set("to_station_name", _toStationName) + return nil +} + +// ToStationName Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetToStationName() string { + return r._toStationName +} +// BoardingGates Setter +// 检票口 +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetBoardingGates(_boardingGates string) error { + r._boardingGates = _boardingGates + r.Set("boarding_gates", _boardingGates) + return nil +} + +// BoardingGates Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetBoardingGates() string { + return r._boardingGates +} +// ExpectDeliveryTime Setter +// 送票上门预计派送时间 +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetExpectDeliveryTime(_expectDeliveryTime string) error { + r._expectDeliveryTime = _expectDeliveryTime + r.Set("expect_delivery_time", _expectDeliveryTime) + return nil +} + +// ExpectDeliveryTime Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetExpectDeliveryTime() string { + return r._expectDeliveryTime +} +// ExtendParams Setter +// 扩展字段 +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetExtendParams(_extendParams string) error { + r._extendParams = _extendParams + r.Set("extend_params", _extendParams) + return nil +} + +// ExtendParams Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetExtendParams() string { + return r._extendParams +} +// TicketInfoList Setter +// 票信息列表 +func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetTicketInfoList(_ticketInfoList []OrderTicketInfo) error { + r._ticketInfoList = _ticketInfoList + r.Set("ticket_info_list", _ticketInfoList) + return nil +} + +// TicketInfoList Getter +func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetTicketInfoList() []OrderTicketInfo { + return r._ticketInfoList +} diff --git a/model/train/TaobaoTrainAgentBookticketConfirmVtwoAPIResponse.go b/model/train/TaobaoTrainAgentBookticketConfirmVtwoAPIResponse.go new file mode 100644 index 0000000000..9a02946c1a --- /dev/null +++ b/model/train/TaobaoTrainAgentBookticketConfirmVtwoAPIResponse.go @@ -0,0 +1,27 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +火车票代理商接口——确认出票是否成功v2--增加鉴权校验 API返回值 +taobao.train.agent.bookticket.confirm.vtwo + +火车票代理商接口——确认出票是否成功 +*/ +type TaobaoTrainAgentBookticketConfirmVtwoAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentBookticketConfirmVtwoAPIResponseModel +} + +// 火车票代理商接口——确认出票是否成功v2--增加鉴权校验 成功返回结果 +type TaobaoTrainAgentBookticketConfirmVtwoAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_bookticket_confirm_vtwo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentBookticketConfirmVtwoResponse.go b/model/train/TaobaoTrainAgentBookticketConfirmVtwoResponse.go deleted file mode 100644 index e655f47cf8..0000000000 --- a/model/train/TaobaoTrainAgentBookticketConfirmVtwoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -火车票代理商接口——确认出票是否成功v2--增加鉴权校验 API返回值 -taobao.train.agent.bookticket.confirm.vtwo - -火车票代理商接口——确认出票是否成功 -*/ -type TaobaoTrainAgentBookticketConfirmVtwoAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentBookticketConfirmVtwoResponse -} - -// 火车票代理商接口——确认出票是否成功v2--增加鉴权校验 成功返回结果 -type TaobaoTrainAgentBookticketConfirmVtwoResponse struct { - XMLName xml.Name `xml:"train_agent_bookticket_confirm_vtwo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentChangeAgreeVtwoAPIRequest.go b/model/train/TaobaoTrainAgentChangeAgreeVtwoAPIRequest.go new file mode 100644 index 0000000000..65d4ab84cc --- /dev/null +++ b/model/train/TaobaoTrainAgentChangeAgreeVtwoAPIRequest.go @@ -0,0 +1,52 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商同意改签v2--增加鉴权校验 API请求 +taobao.train.agent.change.agree.vtwo + +代理商同意改签接口服务 +*/ +type TaobaoTrainAgentChangeAgreeVtwoAPIRequest struct { + model.Params + // 代理商同意改签参数 + _param *AgentAgreeChangeParam +} + +// 初始化TaobaoTrainAgentChangeAgreeVtwoAPIRequest对象 +func NewTaobaoTrainAgentChangeAgreeVtwoRequest() *TaobaoTrainAgentChangeAgreeVtwoAPIRequest{ + return &TaobaoTrainAgentChangeAgreeVtwoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentChangeAgreeVtwoAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.change.agree.vtwo" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentChangeAgreeVtwoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 代理商同意改签参数 +func (r *TaobaoTrainAgentChangeAgreeVtwoAPIRequest) SetParam(_param *AgentAgreeChangeParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r TaobaoTrainAgentChangeAgreeVtwoAPIRequest) GetParam() *AgentAgreeChangeParam { + return r._param +} diff --git a/model/train/TaobaoTrainAgentChangeAgreeVtwoAPIResponse.go b/model/train/TaobaoTrainAgentChangeAgreeVtwoAPIResponse.go new file mode 100644 index 0000000000..e73bb76794 --- /dev/null +++ b/model/train/TaobaoTrainAgentChangeAgreeVtwoAPIResponse.go @@ -0,0 +1,27 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商同意改签v2--增加鉴权校验 API返回值 +taobao.train.agent.change.agree.vtwo + +代理商同意改签接口服务 +*/ +type TaobaoTrainAgentChangeAgreeVtwoAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentChangeAgreeVtwoAPIResponseModel +} + +// 代理商同意改签v2--增加鉴权校验 成功返回结果 +type TaobaoTrainAgentChangeAgreeVtwoAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_change_agree_vtwo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentChangeAgreeVtwoResponse.go b/model/train/TaobaoTrainAgentChangeAgreeVtwoResponse.go deleted file mode 100644 index 33fa2d6f4f..0000000000 --- a/model/train/TaobaoTrainAgentChangeAgreeVtwoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -代理商同意改签v2--增加鉴权校验 API返回值 -taobao.train.agent.change.agree.vtwo - -代理商同意改签接口服务 -*/ -type TaobaoTrainAgentChangeAgreeVtwoAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentChangeAgreeVtwoResponse -} - -// 代理商同意改签v2--增加鉴权校验 成功返回结果 -type TaobaoTrainAgentChangeAgreeVtwoResponse struct { - XMLName xml.Name `xml:"train_agent_change_agree_vtwo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentChangeGetVtwoAPIRequest.go b/model/train/TaobaoTrainAgentChangeGetVtwoAPIRequest.go new file mode 100644 index 0000000000..8d12b596da --- /dev/null +++ b/model/train/TaobaoTrainAgentChangeGetVtwoAPIRequest.go @@ -0,0 +1,66 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取改签单详情v2--增加鉴权校验 API请求 +taobao.train.agent.change.get.vtwo + +卖家获取待处理的改签单详情 +*/ +type TaobaoTrainAgentChangeGetVtwoAPIRequest struct { + model.Params + // 代理商id + _agentId int64 + // 申请单id + _applyId int64 +} + +// 初始化TaobaoTrainAgentChangeGetVtwoAPIRequest对象 +func NewTaobaoTrainAgentChangeGetVtwoRequest() *TaobaoTrainAgentChangeGetVtwoAPIRequest{ + return &TaobaoTrainAgentChangeGetVtwoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentChangeGetVtwoAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.change.get.vtwo" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentChangeGetVtwoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentId Setter +// 代理商id +func (r *TaobaoTrainAgentChangeGetVtwoAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoTrainAgentChangeGetVtwoAPIRequest) GetAgentId() int64 { + return r._agentId +} +// ApplyId Setter +// 申请单id +func (r *TaobaoTrainAgentChangeGetVtwoAPIRequest) SetApplyId(_applyId int64) error { + r._applyId = _applyId + r.Set("apply_id", _applyId) + return nil +} + +// ApplyId Getter +func (r TaobaoTrainAgentChangeGetVtwoAPIRequest) GetApplyId() int64 { + return r._applyId +} diff --git a/model/train/TaobaoTrainAgentChangeGetVtwoAPIResponse.go b/model/train/TaobaoTrainAgentChangeGetVtwoAPIResponse.go new file mode 100644 index 0000000000..e17050e9f7 --- /dev/null +++ b/model/train/TaobaoTrainAgentChangeGetVtwoAPIResponse.go @@ -0,0 +1,51 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取改签单详情v2--增加鉴权校验 API返回值 +taobao.train.agent.change.get.vtwo + +卖家获取待处理的改签单详情 +*/ +type TaobaoTrainAgentChangeGetVtwoAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentChangeGetVtwoAPIResponseModel +} + +// 获取改签单详情v2--增加鉴权校验 成功返回结果 +type TaobaoTrainAgentChangeGetVtwoAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_change_get_vtwo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 扩展参数 + ExtendParam string `json:"extend_param,omitempty" xml:"extend_param,omitempty"` + // 1 + Tickets []ChangeTicketInfo `json:"tickets,omitempty" xml:"tickets>change_ticket_info,omitempty"` + // 坐席 + SeatName int64 `json:"seat_name,omitempty" xml:"seat_name,omitempty"` + // 申请单 + ApplyId int64 `json:"apply_id,omitempty" xml:"apply_id,omitempty"` + // 状态,1 待支付、2 待改签、3 已改签、4 改签失败 + Status int64 `json:"status,omitempty" xml:"status,omitempty"` + // 总改签费 + TotalChangeFee int64 `json:"total_change_fee,omitempty" xml:"total_change_fee,omitempty"` + // 车次 + TrainNum string `json:"train_num,omitempty" xml:"train_num,omitempty"` + // 出发站 + FromStationName string `json:"from_station_name,omitempty" xml:"from_station_name,omitempty"` + // 最晚改签时间 + LatestChangeTime string `json:"latest_change_time,omitempty" xml:"latest_change_time,omitempty"` + // 发车时间 + FromTime string `json:"from_time,omitempty" xml:"from_time,omitempty"` + // 主订单 + MainBizOrderId int64 `json:"main_biz_order_id,omitempty" xml:"main_biz_order_id,omitempty"` + // 到达时间 + ToTime string `json:"to_time,omitempty" xml:"to_time,omitempty"` + // 到达站 + ToStationName string `json:"to_station_name,omitempty" xml:"to_station_name,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentChangeGetVtwoResponse.go b/model/train/TaobaoTrainAgentChangeGetVtwoResponse.go deleted file mode 100644 index 421939bab2..0000000000 --- a/model/train/TaobaoTrainAgentChangeGetVtwoResponse.go +++ /dev/null @@ -1,51 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取改签单详情v2--增加鉴权校验 API返回值 -taobao.train.agent.change.get.vtwo - -卖家获取待处理的改签单详情 -*/ -type TaobaoTrainAgentChangeGetVtwoAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentChangeGetVtwoResponse -} - -// 获取改签单详情v2--增加鉴权校验 成功返回结果 -type TaobaoTrainAgentChangeGetVtwoResponse struct { - XMLName xml.Name `xml:"train_agent_change_get_vtwo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 扩展参数 - ExtendParam string `json:"extend_param,omitempty" xml:"extend_param,omitempty"` - // 1 - Tickets []ChangeTicketInfo `json:"tickets,omitempty" xml:"tickets>change_ticket_info,omitempty"` - // 坐席 - SeatName int64 `json:"seat_name,omitempty" xml:"seat_name,omitempty"` - // 申请单 - ApplyId int64 `json:"apply_id,omitempty" xml:"apply_id,omitempty"` - // 状态,1 待支付、2 待改签、3 已改签、4 改签失败 - Status int64 `json:"status,omitempty" xml:"status,omitempty"` - // 总改签费 - TotalChangeFee int64 `json:"total_change_fee,omitempty" xml:"total_change_fee,omitempty"` - // 车次 - TrainNum string `json:"train_num,omitempty" xml:"train_num,omitempty"` - // 出发站 - FromStationName string `json:"from_station_name,omitempty" xml:"from_station_name,omitempty"` - // 最晚改签时间 - LatestChangeTime string `json:"latest_change_time,omitempty" xml:"latest_change_time,omitempty"` - // 发车时间 - FromTime string `json:"from_time,omitempty" xml:"from_time,omitempty"` - // 主订单 - MainBizOrderId int64 `json:"main_biz_order_id,omitempty" xml:"main_biz_order_id,omitempty"` - // 到达时间 - ToTime string `json:"to_time,omitempty" xml:"to_time,omitempty"` - // 到达站 - ToStationName string `json:"to_station_name,omitempty" xml:"to_station_name,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentChangeHoldseatConfirmAPIRequest.go b/model/train/TaobaoTrainAgentChangeHoldseatConfirmAPIRequest.go new file mode 100644 index 0000000000..7dd225734a --- /dev/null +++ b/model/train/TaobaoTrainAgentChangeHoldseatConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +火车票代理商接口——确认改签占座是否成功 API请求 +taobao.train.agent.change.holdseat.confirm + +火车票代理商接口——确认改签占座是否成功 +*/ +type TaobaoTrainAgentChangeHoldseatConfirmAPIRequest struct { + model.Params + // 改签占座入参 + _changeHoldSeatParam *ChangeHoldSeatParam +} + +// 初始化TaobaoTrainAgentChangeHoldseatConfirmAPIRequest对象 +func NewTaobaoTrainAgentChangeHoldseatConfirmRequest() *TaobaoTrainAgentChangeHoldseatConfirmAPIRequest{ + return &TaobaoTrainAgentChangeHoldseatConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentChangeHoldseatConfirmAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.change.holdseat.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentChangeHoldseatConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChangeHoldSeatParam Setter +// 改签占座入参 +func (r *TaobaoTrainAgentChangeHoldseatConfirmAPIRequest) SetChangeHoldSeatParam(_changeHoldSeatParam *ChangeHoldSeatParam) error { + r._changeHoldSeatParam = _changeHoldSeatParam + r.Set("change_hold_seat_param", _changeHoldSeatParam) + return nil +} + +// ChangeHoldSeatParam Getter +func (r TaobaoTrainAgentChangeHoldseatConfirmAPIRequest) GetChangeHoldSeatParam() *ChangeHoldSeatParam { + return r._changeHoldSeatParam +} diff --git a/model/train/TaobaoTrainAgentChangeHoldseatConfirmAPIResponse.go b/model/train/TaobaoTrainAgentChangeHoldseatConfirmAPIResponse.go new file mode 100644 index 0000000000..cda70fda56 --- /dev/null +++ b/model/train/TaobaoTrainAgentChangeHoldseatConfirmAPIResponse.go @@ -0,0 +1,31 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +火车票代理商接口——确认改签占座是否成功 API返回值 +taobao.train.agent.change.holdseat.confirm + +火车票代理商接口——确认改签占座是否成功 +*/ +type TaobaoTrainAgentChangeHoldseatConfirmAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentChangeHoldseatConfirmAPIResponseModel +} + +// 火车票代理商接口——确认改签占座是否成功 成功返回结果 +type TaobaoTrainAgentChangeHoldseatConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_change_holdseat_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功标记 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // errorCode + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // errorMsg + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentChangeHoldseatConfirmResponse.go b/model/train/TaobaoTrainAgentChangeHoldseatConfirmResponse.go deleted file mode 100644 index f89568ac8d..0000000000 --- a/model/train/TaobaoTrainAgentChangeHoldseatConfirmResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -火车票代理商接口——确认改签占座是否成功 API返回值 -taobao.train.agent.change.holdseat.confirm - -火车票代理商接口——确认改签占座是否成功 -*/ -type TaobaoTrainAgentChangeHoldseatConfirmAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentChangeHoldseatConfirmResponse -} - -// 火车票代理商接口——确认改签占座是否成功 成功返回结果 -type TaobaoTrainAgentChangeHoldseatConfirmResponse struct { - XMLName xml.Name `xml:"train_agent_change_holdseat_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功标记 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // errorCode - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // errorMsg - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentChangeRefuseVtwoAPIRequest.go b/model/train/TaobaoTrainAgentChangeRefuseVtwoAPIRequest.go new file mode 100644 index 0000000000..aefbaa4ae7 --- /dev/null +++ b/model/train/TaobaoTrainAgentChangeRefuseVtwoAPIRequest.go @@ -0,0 +1,52 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商拒绝改签v2--增加鉴权校验 API请求 +taobao.train.agent.change.refuse.vtwo + +代理商拒绝火车票改签服务 +*/ +type TaobaoTrainAgentChangeRefuseVtwoAPIRequest struct { + model.Params + // 代理商拒绝改签参数 + _param *AgentRefuseChangeParam +} + +// 初始化TaobaoTrainAgentChangeRefuseVtwoAPIRequest对象 +func NewTaobaoTrainAgentChangeRefuseVtwoRequest() *TaobaoTrainAgentChangeRefuseVtwoAPIRequest{ + return &TaobaoTrainAgentChangeRefuseVtwoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentChangeRefuseVtwoAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.change.refuse.vtwo" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentChangeRefuseVtwoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 代理商拒绝改签参数 +func (r *TaobaoTrainAgentChangeRefuseVtwoAPIRequest) SetParam(_param *AgentRefuseChangeParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r TaobaoTrainAgentChangeRefuseVtwoAPIRequest) GetParam() *AgentRefuseChangeParam { + return r._param +} diff --git a/model/train/TaobaoTrainAgentChangeRefuseVtwoAPIResponse.go b/model/train/TaobaoTrainAgentChangeRefuseVtwoAPIResponse.go new file mode 100644 index 0000000000..1acead73e9 --- /dev/null +++ b/model/train/TaobaoTrainAgentChangeRefuseVtwoAPIResponse.go @@ -0,0 +1,27 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商拒绝改签v2--增加鉴权校验 API返回值 +taobao.train.agent.change.refuse.vtwo + +代理商拒绝火车票改签服务 +*/ +type TaobaoTrainAgentChangeRefuseVtwoAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentChangeRefuseVtwoAPIResponseModel +} + +// 代理商拒绝改签v2--增加鉴权校验 成功返回结果 +type TaobaoTrainAgentChangeRefuseVtwoAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_change_refuse_vtwo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentChangeRefuseVtwoResponse.go b/model/train/TaobaoTrainAgentChangeRefuseVtwoResponse.go deleted file mode 100644 index a5193d5292..0000000000 --- a/model/train/TaobaoTrainAgentChangeRefuseVtwoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -代理商拒绝改签v2--增加鉴权校验 API返回值 -taobao.train.agent.change.refuse.vtwo - -代理商拒绝火车票改签服务 -*/ -type TaobaoTrainAgentChangeRefuseVtwoAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentChangeRefuseVtwoResponse -} - -// 代理商拒绝改签v2--增加鉴权校验 成功返回结果 -type TaobaoTrainAgentChangeRefuseVtwoResponse struct { - XMLName xml.Name `xml:"train_agent_change_refuse_vtwo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentChangeordersGetAPIRequest.go b/model/train/TaobaoTrainAgentChangeordersGetAPIRequest.go new file mode 100644 index 0000000000..aba6b7dcc1 --- /dev/null +++ b/model/train/TaobaoTrainAgentChangeordersGetAPIRequest.go @@ -0,0 +1,52 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取待改签订单 API请求 +taobao.train.agent.changeorders.get + +代理商用来获取待改签的订单列表及数量,防止代理商掉单。 +*/ +type TaobaoTrainAgentChangeordersGetAPIRequest struct { + model.Params + // 卖家id + _agentId int64 +} + +// 初始化TaobaoTrainAgentChangeordersGetAPIRequest对象 +func NewTaobaoTrainAgentChangeordersGetRequest() *TaobaoTrainAgentChangeordersGetAPIRequest{ + return &TaobaoTrainAgentChangeordersGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentChangeordersGetAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.changeorders.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentChangeordersGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentId Setter +// 卖家id +func (r *TaobaoTrainAgentChangeordersGetAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoTrainAgentChangeordersGetAPIRequest) GetAgentId() int64 { + return r._agentId +} diff --git a/model/train/TaobaoTrainAgentChangeordersGetAPIResponse.go b/model/train/TaobaoTrainAgentChangeordersGetAPIResponse.go new file mode 100644 index 0000000000..c78e9700ef --- /dev/null +++ b/model/train/TaobaoTrainAgentChangeordersGetAPIResponse.go @@ -0,0 +1,29 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取待改签订单 API返回值 +taobao.train.agent.changeorders.get + +代理商用来获取待改签的订单列表及数量,防止代理商掉单。 +*/ +type TaobaoTrainAgentChangeordersGetAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentChangeordersGetAPIResponseModel +} + +// 获取待改签订单 成功返回结果 +type TaobaoTrainAgentChangeordersGetAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_changeorders_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 待处理订单总数量 + ApplyCount int64 `json:"apply_count,omitempty" xml:"apply_count,omitempty"` + // 逗号连接的多个改签单id + ApplyIds string `json:"apply_ids,omitempty" xml:"apply_ids,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentChangeordersGetResponse.go b/model/train/TaobaoTrainAgentChangeordersGetResponse.go deleted file mode 100644 index 3475024fa5..0000000000 --- a/model/train/TaobaoTrainAgentChangeordersGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取待改签订单 API返回值 -taobao.train.agent.changeorders.get - -代理商用来获取待改签的订单列表及数量,防止代理商掉单。 -*/ -type TaobaoTrainAgentChangeordersGetAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentChangeordersGetResponse -} - -// 获取待改签订单 成功返回结果 -type TaobaoTrainAgentChangeordersGetResponse struct { - XMLName xml.Name `xml:"train_agent_changeorders_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 待处理订单总数量 - ApplyCount int64 `json:"apply_count,omitempty" xml:"apply_count,omitempty"` - // 逗号连接的多个改签单id - ApplyIds string `json:"apply_ids,omitempty" xml:"apply_ids,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentChangeordersGetVtwoAPIRequest.go b/model/train/TaobaoTrainAgentChangeordersGetVtwoAPIRequest.go new file mode 100644 index 0000000000..ed4c8dd9f9 --- /dev/null +++ b/model/train/TaobaoTrainAgentChangeordersGetVtwoAPIRequest.go @@ -0,0 +1,52 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取待改签订单v2--增加鉴权校验 API请求 +taobao.train.agent.changeorders.get.vtwo + +代理商用来获取待改签的订单列表及数量,防止代理商掉单。 +*/ +type TaobaoTrainAgentChangeordersGetVtwoAPIRequest struct { + model.Params + // 卖家id + _agentId int64 +} + +// 初始化TaobaoTrainAgentChangeordersGetVtwoAPIRequest对象 +func NewTaobaoTrainAgentChangeordersGetVtwoRequest() *TaobaoTrainAgentChangeordersGetVtwoAPIRequest{ + return &TaobaoTrainAgentChangeordersGetVtwoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentChangeordersGetVtwoAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.changeorders.get.vtwo" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentChangeordersGetVtwoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentId Setter +// 卖家id +func (r *TaobaoTrainAgentChangeordersGetVtwoAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoTrainAgentChangeordersGetVtwoAPIRequest) GetAgentId() int64 { + return r._agentId +} diff --git a/model/train/TaobaoTrainAgentChangeordersGetVtwoAPIResponse.go b/model/train/TaobaoTrainAgentChangeordersGetVtwoAPIResponse.go new file mode 100644 index 0000000000..7354e3a8f1 --- /dev/null +++ b/model/train/TaobaoTrainAgentChangeordersGetVtwoAPIResponse.go @@ -0,0 +1,29 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取待改签订单v2--增加鉴权校验 API返回值 +taobao.train.agent.changeorders.get.vtwo + +代理商用来获取待改签的订单列表及数量,防止代理商掉单。 +*/ +type TaobaoTrainAgentChangeordersGetVtwoAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentChangeordersGetVtwoAPIResponseModel +} + +// 获取待改签订单v2--增加鉴权校验 成功返回结果 +type TaobaoTrainAgentChangeordersGetVtwoAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_changeorders_get_vtwo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 待处理订单总数量 + ApplyCount int64 `json:"apply_count,omitempty" xml:"apply_count,omitempty"` + // 逗号连接的多个改签单id + ApplyIds string `json:"apply_ids,omitempty" xml:"apply_ids,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentChangeordersGetVtwoResponse.go b/model/train/TaobaoTrainAgentChangeordersGetVtwoResponse.go deleted file mode 100644 index fd6ed652a2..0000000000 --- a/model/train/TaobaoTrainAgentChangeordersGetVtwoResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取待改签订单v2--增加鉴权校验 API返回值 -taobao.train.agent.changeorders.get.vtwo - -代理商用来获取待改签的订单列表及数量,防止代理商掉单。 -*/ -type TaobaoTrainAgentChangeordersGetVtwoAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentChangeordersGetVtwoResponse -} - -// 获取待改签订单v2--增加鉴权校验 成功返回结果 -type TaobaoTrainAgentChangeordersGetVtwoResponse struct { - XMLName xml.Name `xml:"train_agent_changeorders_get_vtwo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 待处理订单总数量 - ApplyCount int64 `json:"apply_count,omitempty" xml:"apply_count,omitempty"` - // 逗号连接的多个改签单id - ApplyIds string `json:"apply_ids,omitempty" xml:"apply_ids,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentDirectCompensateAPIRequest.go b/model/train/TaobaoTrainAgentDirectCompensateAPIRequest.go new file mode 100644 index 0000000000..beb4c92676 --- /dev/null +++ b/model/train/TaobaoTrainAgentDirectCompensateAPIRequest.go @@ -0,0 +1,52 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +火车票代理商接口——订单关闭实际出票成功审计接口 API请求 +taobao.train.agent.direct.compensate + +代购直连订单平台关单但是代理商出票成功补偿接口 +*/ +type TaobaoTrainAgentDirectCompensateAPIRequest struct { + model.Params + // 出票成功补偿入参 + _compensateParam *CompensateParam +} + +// 初始化TaobaoTrainAgentDirectCompensateAPIRequest对象 +func NewTaobaoTrainAgentDirectCompensateRequest() *TaobaoTrainAgentDirectCompensateAPIRequest{ + return &TaobaoTrainAgentDirectCompensateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentDirectCompensateAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.direct.compensate" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentDirectCompensateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CompensateParam Setter +// 出票成功补偿入参 +func (r *TaobaoTrainAgentDirectCompensateAPIRequest) SetCompensateParam(_compensateParam *CompensateParam) error { + r._compensateParam = _compensateParam + r.Set("compensate_param", _compensateParam) + return nil +} + +// CompensateParam Getter +func (r TaobaoTrainAgentDirectCompensateAPIRequest) GetCompensateParam() *CompensateParam { + return r._compensateParam +} diff --git a/model/train/TaobaoTrainAgentDirectCompensateAPIResponse.go b/model/train/TaobaoTrainAgentDirectCompensateAPIResponse.go new file mode 100644 index 0000000000..48b5811249 --- /dev/null +++ b/model/train/TaobaoTrainAgentDirectCompensateAPIResponse.go @@ -0,0 +1,31 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +火车票代理商接口——订单关闭实际出票成功审计接口 API返回值 +taobao.train.agent.direct.compensate + +代购直连订单平台关单但是代理商出票成功补偿接口 +*/ +type TaobaoTrainAgentDirectCompensateAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentDirectCompensateAPIResponseModel +} + +// 火车票代理商接口——订单关闭实际出票成功审计接口 成功返回结果 +type TaobaoTrainAgentDirectCompensateAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_direct_compensate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // resultCode + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // resultMsg + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentDirectCompensateResponse.go b/model/train/TaobaoTrainAgentDirectCompensateResponse.go deleted file mode 100644 index b4275e4c58..0000000000 --- a/model/train/TaobaoTrainAgentDirectCompensateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -火车票代理商接口——订单关闭实际出票成功审计接口 API返回值 -taobao.train.agent.direct.compensate - -代购直连订单平台关单但是代理商出票成功补偿接口 -*/ -type TaobaoTrainAgentDirectCompensateAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentDirectCompensateResponse -} - -// 火车票代理商接口——订单关闭实际出票成功审计接口 成功返回结果 -type TaobaoTrainAgentDirectCompensateResponse struct { - XMLName xml.Name `xml:"train_agent_direct_compensate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // resultCode - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // resultMsg - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentExpressSetAPIRequest.go b/model/train/TaobaoTrainAgentExpressSetAPIRequest.go new file mode 100644 index 0000000000..88a40205be --- /dev/null +++ b/model/train/TaobaoTrainAgentExpressSetAPIRequest.go @@ -0,0 +1,122 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线下票回填物流信息 API请求 +taobao.train.agent.express.set + +线下票回填物流信息服务 +*/ +type TaobaoTrainAgentExpressSetAPIRequest struct { + model.Params + // 订单号 + _mainOrderId int64 + // 物流单号 + _expressId string + // 发货地址 + _addr string + // 手机号 + _mobile string + // 代理商id + _agentId int64 + // 物流公司:SF,EMS + _expressName string +} + +// 初始化TaobaoTrainAgentExpressSetAPIRequest对象 +func NewTaobaoTrainAgentExpressSetRequest() *TaobaoTrainAgentExpressSetAPIRequest{ + return &TaobaoTrainAgentExpressSetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentExpressSetAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.express.set" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentExpressSetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainOrderId Setter +// 订单号 +func (r *TaobaoTrainAgentExpressSetAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r TaobaoTrainAgentExpressSetAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} +// ExpressId Setter +// 物流单号 +func (r *TaobaoTrainAgentExpressSetAPIRequest) SetExpressId(_expressId string) error { + r._expressId = _expressId + r.Set("express_id", _expressId) + return nil +} + +// ExpressId Getter +func (r TaobaoTrainAgentExpressSetAPIRequest) GetExpressId() string { + return r._expressId +} +// Addr Setter +// 发货地址 +func (r *TaobaoTrainAgentExpressSetAPIRequest) SetAddr(_addr string) error { + r._addr = _addr + r.Set("addr", _addr) + return nil +} + +// Addr Getter +func (r TaobaoTrainAgentExpressSetAPIRequest) GetAddr() string { + return r._addr +} +// Mobile Setter +// 手机号 +func (r *TaobaoTrainAgentExpressSetAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r TaobaoTrainAgentExpressSetAPIRequest) GetMobile() string { + return r._mobile +} +// AgentId Setter +// 代理商id +func (r *TaobaoTrainAgentExpressSetAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoTrainAgentExpressSetAPIRequest) GetAgentId() int64 { + return r._agentId +} +// ExpressName Setter +// 物流公司:SF,EMS +func (r *TaobaoTrainAgentExpressSetAPIRequest) SetExpressName(_expressName string) error { + r._expressName = _expressName + r.Set("express_name", _expressName) + return nil +} + +// ExpressName Getter +func (r TaobaoTrainAgentExpressSetAPIRequest) GetExpressName() string { + return r._expressName +} diff --git a/model/train/TaobaoTrainAgentExpressSetAPIResponse.go b/model/train/TaobaoTrainAgentExpressSetAPIResponse.go new file mode 100644 index 0000000000..311710e125 --- /dev/null +++ b/model/train/TaobaoTrainAgentExpressSetAPIResponse.go @@ -0,0 +1,33 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线下票回填物流信息 API返回值 +taobao.train.agent.express.set + +线下票回填物流信息服务 +*/ +type TaobaoTrainAgentExpressSetAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentExpressSetAPIResponseModel +} + +// 线下票回填物流信息 成功返回结果 +type TaobaoTrainAgentExpressSetAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_express_set_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + ErrorMsgCode string `json:"error_msg_code,omitempty" xml:"error_msg_code,omitempty"` + // 错误描述 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 扩展参数 + ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentExpressSetResponse.go b/model/train/TaobaoTrainAgentExpressSetResponse.go deleted file mode 100644 index fb56abbc97..0000000000 --- a/model/train/TaobaoTrainAgentExpressSetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线下票回填物流信息 API返回值 -taobao.train.agent.express.set - -线下票回填物流信息服务 -*/ -type TaobaoTrainAgentExpressSetAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentExpressSetResponse -} - -// 线下票回填物流信息 成功返回结果 -type TaobaoTrainAgentExpressSetResponse struct { - XMLName xml.Name `xml:"train_agent_express_set_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - ErrorMsgCode string `json:"error_msg_code,omitempty" xml:"error_msg_code,omitempty"` - // 错误描述 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 扩展参数 - ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentExpressSetVtwoAPIRequest.go b/model/train/TaobaoTrainAgentExpressSetVtwoAPIRequest.go new file mode 100644 index 0000000000..c6e9c342ce --- /dev/null +++ b/model/train/TaobaoTrainAgentExpressSetVtwoAPIRequest.go @@ -0,0 +1,122 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线下票回填物流信息v2--增加鉴权校验 API请求 +taobao.train.agent.express.set.vtwo + +线下票回填物流信息服务 +*/ +type TaobaoTrainAgentExpressSetVtwoAPIRequest struct { + model.Params + // 订单号 + _mainOrderId int64 + // 物流单号 + _expressId string + // 发货地址 + _addr string + // 手机号 + _mobile string + // 代理商id + _agentId int64 + // 物流公司:SF,EMS + _expressName string +} + +// 初始化TaobaoTrainAgentExpressSetVtwoAPIRequest对象 +func NewTaobaoTrainAgentExpressSetVtwoRequest() *TaobaoTrainAgentExpressSetVtwoAPIRequest{ + return &TaobaoTrainAgentExpressSetVtwoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentExpressSetVtwoAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.express.set.vtwo" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentExpressSetVtwoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainOrderId Setter +// 订单号 +func (r *TaobaoTrainAgentExpressSetVtwoAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r TaobaoTrainAgentExpressSetVtwoAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} +// ExpressId Setter +// 物流单号 +func (r *TaobaoTrainAgentExpressSetVtwoAPIRequest) SetExpressId(_expressId string) error { + r._expressId = _expressId + r.Set("express_id", _expressId) + return nil +} + +// ExpressId Getter +func (r TaobaoTrainAgentExpressSetVtwoAPIRequest) GetExpressId() string { + return r._expressId +} +// Addr Setter +// 发货地址 +func (r *TaobaoTrainAgentExpressSetVtwoAPIRequest) SetAddr(_addr string) error { + r._addr = _addr + r.Set("addr", _addr) + return nil +} + +// Addr Getter +func (r TaobaoTrainAgentExpressSetVtwoAPIRequest) GetAddr() string { + return r._addr +} +// Mobile Setter +// 手机号 +func (r *TaobaoTrainAgentExpressSetVtwoAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r TaobaoTrainAgentExpressSetVtwoAPIRequest) GetMobile() string { + return r._mobile +} +// AgentId Setter +// 代理商id +func (r *TaobaoTrainAgentExpressSetVtwoAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoTrainAgentExpressSetVtwoAPIRequest) GetAgentId() int64 { + return r._agentId +} +// ExpressName Setter +// 物流公司:SF,EMS +func (r *TaobaoTrainAgentExpressSetVtwoAPIRequest) SetExpressName(_expressName string) error { + r._expressName = _expressName + r.Set("express_name", _expressName) + return nil +} + +// ExpressName Getter +func (r TaobaoTrainAgentExpressSetVtwoAPIRequest) GetExpressName() string { + return r._expressName +} diff --git a/model/train/TaobaoTrainAgentExpressSetVtwoAPIResponse.go b/model/train/TaobaoTrainAgentExpressSetVtwoAPIResponse.go new file mode 100644 index 0000000000..fbb0a9227e --- /dev/null +++ b/model/train/TaobaoTrainAgentExpressSetVtwoAPIResponse.go @@ -0,0 +1,33 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线下票回填物流信息v2--增加鉴权校验 API返回值 +taobao.train.agent.express.set.vtwo + +线下票回填物流信息服务 +*/ +type TaobaoTrainAgentExpressSetVtwoAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentExpressSetVtwoAPIResponseModel +} + +// 线下票回填物流信息v2--增加鉴权校验 成功返回结果 +type TaobaoTrainAgentExpressSetVtwoAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_express_set_vtwo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + ErrorMsgCode string `json:"error_msg_code,omitempty" xml:"error_msg_code,omitempty"` + // 错误描述 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 扩展参数 + ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentExpressSetVtwoResponse.go b/model/train/TaobaoTrainAgentExpressSetVtwoResponse.go deleted file mode 100644 index d7dfce1d3d..0000000000 --- a/model/train/TaobaoTrainAgentExpressSetVtwoResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线下票回填物流信息v2--增加鉴权校验 API返回值 -taobao.train.agent.express.set.vtwo - -线下票回填物流信息服务 -*/ -type TaobaoTrainAgentExpressSetVtwoAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentExpressSetVtwoResponse -} - -// 线下票回填物流信息v2--增加鉴权校验 成功返回结果 -type TaobaoTrainAgentExpressSetVtwoResponse struct { - XMLName xml.Name `xml:"train_agent_express_set_vtwo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - ErrorMsgCode string `json:"error_msg_code,omitempty" xml:"error_msg_code,omitempty"` - // 错误描述 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 扩展参数 - ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentGetRefundAPIRequest.go b/model/train/TaobaoTrainAgentGetRefundAPIRequest.go new file mode 100644 index 0000000000..06c0a63e58 --- /dev/null +++ b/model/train/TaobaoTrainAgentGetRefundAPIRequest.go @@ -0,0 +1,66 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商获取订单退票信息 API请求 +taobao.train.agent.get.refund + +代理商获取订单信息回调API +*/ +type TaobaoTrainAgentGetRefundAPIRequest struct { + model.Params + // 淘宝的主订单号 + _mainOrderId int64 + // 代理商id + _agentId int64 +} + +// 初始化TaobaoTrainAgentGetRefundAPIRequest对象 +func NewTaobaoTrainAgentGetRefundRequest() *TaobaoTrainAgentGetRefundAPIRequest{ + return &TaobaoTrainAgentGetRefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentGetRefundAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.get.refund" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentGetRefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainOrderId Setter +// 淘宝的主订单号 +func (r *TaobaoTrainAgentGetRefundAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r TaobaoTrainAgentGetRefundAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} +// AgentId Setter +// 代理商id +func (r *TaobaoTrainAgentGetRefundAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoTrainAgentGetRefundAPIRequest) GetAgentId() int64 { + return r._agentId +} diff --git a/model/train/TaobaoTrainAgentGetRefundAPIResponse.go b/model/train/TaobaoTrainAgentGetRefundAPIResponse.go new file mode 100644 index 0000000000..85f6970242 --- /dev/null +++ b/model/train/TaobaoTrainAgentGetRefundAPIResponse.go @@ -0,0 +1,27 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商获取订单退票信息 API返回值 +taobao.train.agent.get.refund + +代理商获取订单信息回调API +*/ +type TaobaoTrainAgentGetRefundAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentGetRefundAPIResponseModel +} + +// 代理商获取订单退票信息 成功返回结果 +type TaobaoTrainAgentGetRefundAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_get_refund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + TopRefundApplyList string `json:"top_refund_apply_list,omitempty" xml:"top_refund_apply_list,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentGetRefundResponse.go b/model/train/TaobaoTrainAgentGetRefundResponse.go deleted file mode 100644 index 5593f0e09d..0000000000 --- a/model/train/TaobaoTrainAgentGetRefundResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -代理商获取订单退票信息 API返回值 -taobao.train.agent.get.refund - -代理商获取订单信息回调API -*/ -type TaobaoTrainAgentGetRefundAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentGetRefundResponse -} - -// 代理商获取订单退票信息 成功返回结果 -type TaobaoTrainAgentGetRefundResponse struct { - XMLName xml.Name `xml:"train_agent_get_refund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - TopRefundApplyList string `json:"top_refund_apply_list,omitempty" xml:"top_refund_apply_list,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentGrabAccountAPIRequest.go b/model/train/TaobaoTrainAgentGrabAccountAPIRequest.go new file mode 100644 index 0000000000..892470579b --- /dev/null +++ b/model/train/TaobaoTrainAgentGrabAccountAPIRequest.go @@ -0,0 +1,52 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +代购抢代理商回传12306账号 API请求 +taobao.train.agent.grab.account + +火车票业务代购抢功能,代理商回传12306账号,用于自营抢票链路出票 +*/ +type TaobaoTrainAgentGrabAccountAPIRequest struct { + model.Params + // 12306账户信息 + _accountParam *AccountParam +} + +// 初始化TaobaoTrainAgentGrabAccountAPIRequest对象 +func NewTaobaoTrainAgentGrabAccountRequest() *TaobaoTrainAgentGrabAccountAPIRequest{ + return &TaobaoTrainAgentGrabAccountAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentGrabAccountAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.grab.account" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentGrabAccountAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccountParam Setter +// 12306账户信息 +func (r *TaobaoTrainAgentGrabAccountAPIRequest) SetAccountParam(_accountParam *AccountParam) error { + r._accountParam = _accountParam + r.Set("account_param", _accountParam) + return nil +} + +// AccountParam Getter +func (r TaobaoTrainAgentGrabAccountAPIRequest) GetAccountParam() *AccountParam { + return r._accountParam +} diff --git a/model/train/TaobaoTrainAgentGrabAccountAPIResponse.go b/model/train/TaobaoTrainAgentGrabAccountAPIResponse.go new file mode 100644 index 0000000000..1e53dafa33 --- /dev/null +++ b/model/train/TaobaoTrainAgentGrabAccountAPIResponse.go @@ -0,0 +1,31 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +代购抢代理商回传12306账号 API返回值 +taobao.train.agent.grab.account + +火车票业务代购抢功能,代理商回传12306账号,用于自营抢票链路出票 +*/ +type TaobaoTrainAgentGrabAccountAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentGrabAccountAPIResponseModel +} + +// 代购抢代理商回传12306账号 成功返回结果 +type TaobaoTrainAgentGrabAccountAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_grab_account_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // resultMsg + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // resultCode + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentGrabAccountResponse.go b/model/train/TaobaoTrainAgentGrabAccountResponse.go deleted file mode 100644 index 9b641d0cbc..0000000000 --- a/model/train/TaobaoTrainAgentGrabAccountResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -代购抢代理商回传12306账号 API返回值 -taobao.train.agent.grab.account - -火车票业务代购抢功能,代理商回传12306账号,用于自营抢票链路出票 -*/ -type TaobaoTrainAgentGrabAccountAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentGrabAccountResponse -} - -// 代购抢代理商回传12306账号 成功返回结果 -type TaobaoTrainAgentGrabAccountResponse struct { - XMLName xml.Name `xml:"train_agent_grab_account_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // resultMsg - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // resultCode - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentHandleticketConfirmAPIRequest.go b/model/train/TaobaoTrainAgentHandleticketConfirmAPIRequest.go new file mode 100644 index 0000000000..ceee9b64ec --- /dev/null +++ b/model/train/TaobaoTrainAgentHandleticketConfirmAPIRequest.go @@ -0,0 +1,80 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商出票中 API请求 +taobao.train.agent.handleticket.confirm + +代理商出票中 +*/ +type TaobaoTrainAgentHandleticketConfirmAPIRequest struct { + model.Params + // 扩展参数 + _extendParams string + // 主站id + _mainOrderId int64 + // 代理商id + _sellerId int64 +} + +// 初始化TaobaoTrainAgentHandleticketConfirmAPIRequest对象 +func NewTaobaoTrainAgentHandleticketConfirmRequest() *TaobaoTrainAgentHandleticketConfirmAPIRequest{ + return &TaobaoTrainAgentHandleticketConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentHandleticketConfirmAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.handleticket.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentHandleticketConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExtendParams Setter +// 扩展参数 +func (r *TaobaoTrainAgentHandleticketConfirmAPIRequest) SetExtendParams(_extendParams string) error { + r._extendParams = _extendParams + r.Set("extend_params", _extendParams) + return nil +} + +// ExtendParams Getter +func (r TaobaoTrainAgentHandleticketConfirmAPIRequest) GetExtendParams() string { + return r._extendParams +} +// MainOrderId Setter +// 主站id +func (r *TaobaoTrainAgentHandleticketConfirmAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r TaobaoTrainAgentHandleticketConfirmAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} +// SellerId Setter +// 代理商id +func (r *TaobaoTrainAgentHandleticketConfirmAPIRequest) SetSellerId(_sellerId int64) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r TaobaoTrainAgentHandleticketConfirmAPIRequest) GetSellerId() int64 { + return r._sellerId +} diff --git a/model/train/TaobaoTrainAgentHandleticketConfirmAPIResponse.go b/model/train/TaobaoTrainAgentHandleticketConfirmAPIResponse.go new file mode 100644 index 0000000000..31949b7149 --- /dev/null +++ b/model/train/TaobaoTrainAgentHandleticketConfirmAPIResponse.go @@ -0,0 +1,33 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商出票中 API返回值 +taobao.train.agent.handleticket.confirm + +代理商出票中 +*/ +type TaobaoTrainAgentHandleticketConfirmAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentHandleticketConfirmAPIResponseModel +} + +// 代理商出票中 成功返回结果 +type TaobaoTrainAgentHandleticketConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_handleticket_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误码 + TrainErrorCode string `json:"train_error_code,omitempty" xml:"train_error_code,omitempty"` + // 错误信息 + TrainErrorMsg string `json:"train_error_msg,omitempty" xml:"train_error_msg,omitempty"` + // 暂无 + ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentHandleticketConfirmResponse.go b/model/train/TaobaoTrainAgentHandleticketConfirmResponse.go deleted file mode 100644 index 5cbc878701..0000000000 --- a/model/train/TaobaoTrainAgentHandleticketConfirmResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -代理商出票中 API返回值 -taobao.train.agent.handleticket.confirm - -代理商出票中 -*/ -type TaobaoTrainAgentHandleticketConfirmAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentHandleticketConfirmResponse -} - -// 代理商出票中 成功返回结果 -type TaobaoTrainAgentHandleticketConfirmResponse struct { - XMLName xml.Name `xml:"train_agent_handleticket_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误码 - TrainErrorCode string `json:"train_error_code,omitempty" xml:"train_error_code,omitempty"` - // 错误信息 - TrainErrorMsg string `json:"train_error_msg,omitempty" xml:"train_error_msg,omitempty"` - // 暂无 - ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest.go b/model/train/TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest.go new file mode 100644 index 0000000000..89d2b4a5d0 --- /dev/null +++ b/model/train/TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest.go @@ -0,0 +1,80 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商出票中v2--增加鉴权校验 API请求 +taobao.train.agent.handleticket.confirm.vtwo + +代理商出票中 +*/ +type TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest struct { + model.Params + // 扩展参数 + _extendParams string + // 主站id + _mainOrderId int64 + // 代理商id + _sellerId int64 +} + +// 初始化TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest对象 +func NewTaobaoTrainAgentHandleticketConfirmVtwoRequest() *TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest{ + return &TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.handleticket.confirm.vtwo" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExtendParams Setter +// 扩展参数 +func (r *TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) SetExtendParams(_extendParams string) error { + r._extendParams = _extendParams + r.Set("extend_params", _extendParams) + return nil +} + +// ExtendParams Getter +func (r TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) GetExtendParams() string { + return r._extendParams +} +// MainOrderId Setter +// 主站id +func (r *TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} +// SellerId Setter +// 代理商id +func (r *TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) SetSellerId(_sellerId int64) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) GetSellerId() int64 { + return r._sellerId +} diff --git a/model/train/TaobaoTrainAgentHandleticketConfirmVtwoAPIResponse.go b/model/train/TaobaoTrainAgentHandleticketConfirmVtwoAPIResponse.go new file mode 100644 index 0000000000..f064b408fb --- /dev/null +++ b/model/train/TaobaoTrainAgentHandleticketConfirmVtwoAPIResponse.go @@ -0,0 +1,33 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商出票中v2--增加鉴权校验 API返回值 +taobao.train.agent.handleticket.confirm.vtwo + +代理商出票中 +*/ +type TaobaoTrainAgentHandleticketConfirmVtwoAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentHandleticketConfirmVtwoAPIResponseModel +} + +// 代理商出票中v2--增加鉴权校验 成功返回结果 +type TaobaoTrainAgentHandleticketConfirmVtwoAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_handleticket_confirm_vtwo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误码 + TrainErrorCode string `json:"train_error_code,omitempty" xml:"train_error_code,omitempty"` + // 错误信息 + TrainErrorMsg string `json:"train_error_msg,omitempty" xml:"train_error_msg,omitempty"` + // 暂无 + ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentHandleticketConfirmVtwoResponse.go b/model/train/TaobaoTrainAgentHandleticketConfirmVtwoResponse.go deleted file mode 100644 index 235fd94541..0000000000 --- a/model/train/TaobaoTrainAgentHandleticketConfirmVtwoResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -代理商出票中v2--增加鉴权校验 API返回值 -taobao.train.agent.handleticket.confirm.vtwo - -代理商出票中 -*/ -type TaobaoTrainAgentHandleticketConfirmVtwoAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentHandleticketConfirmVtwoResponse -} - -// 代理商出票中v2--增加鉴权校验 成功返回结果 -type TaobaoTrainAgentHandleticketConfirmVtwoResponse struct { - XMLName xml.Name `xml:"train_agent_handleticket_confirm_vtwo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误码 - TrainErrorCode string `json:"train_error_code,omitempty" xml:"train_error_code,omitempty"` - // 错误信息 - TrainErrorMsg string `json:"train_error_msg,omitempty" xml:"train_error_msg,omitempty"` - // 暂无 - ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentHandrefundRefundfeeAPIRequest.go b/model/train/TaobaoTrainAgentHandrefundRefundfeeAPIRequest.go new file mode 100644 index 0000000000..5e8c4f4011 --- /dev/null +++ b/model/train/TaobaoTrainAgentHandrefundRefundfeeAPIRequest.go @@ -0,0 +1,80 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商手动退款接口 API请求 +taobao.train.agent.handrefund.refundfee + +火车票代理商手动退款接口 +*/ +type TaobaoTrainAgentHandrefundRefundfeeAPIRequest struct { + model.Params + // 主订单id + _mainBizOrderId int64 + // 外部订单号 + _outTradeNo string + // 退款金额,单位为分 + _refundFee int64 +} + +// 初始化TaobaoTrainAgentHandrefundRefundfeeAPIRequest对象 +func NewTaobaoTrainAgentHandrefundRefundfeeRequest() *TaobaoTrainAgentHandrefundRefundfeeAPIRequest{ + return &TaobaoTrainAgentHandrefundRefundfeeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentHandrefundRefundfeeAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.handrefund.refundfee" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentHandrefundRefundfeeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainBizOrderId Setter +// 主订单id +func (r *TaobaoTrainAgentHandrefundRefundfeeAPIRequest) SetMainBizOrderId(_mainBizOrderId int64) error { + r._mainBizOrderId = _mainBizOrderId + r.Set("main_biz_order_id", _mainBizOrderId) + return nil +} + +// MainBizOrderId Getter +func (r TaobaoTrainAgentHandrefundRefundfeeAPIRequest) GetMainBizOrderId() int64 { + return r._mainBizOrderId +} +// OutTradeNo Setter +// 外部订单号 +func (r *TaobaoTrainAgentHandrefundRefundfeeAPIRequest) SetOutTradeNo(_outTradeNo string) error { + r._outTradeNo = _outTradeNo + r.Set("out_trade_no", _outTradeNo) + return nil +} + +// OutTradeNo Getter +func (r TaobaoTrainAgentHandrefundRefundfeeAPIRequest) GetOutTradeNo() string { + return r._outTradeNo +} +// RefundFee Setter +// 退款金额,单位为分 +func (r *TaobaoTrainAgentHandrefundRefundfeeAPIRequest) SetRefundFee(_refundFee int64) error { + r._refundFee = _refundFee + r.Set("refund_fee", _refundFee) + return nil +} + +// RefundFee Getter +func (r TaobaoTrainAgentHandrefundRefundfeeAPIRequest) GetRefundFee() int64 { + return r._refundFee +} diff --git a/model/train/TaobaoTrainAgentHandrefundRefundfeeAPIResponse.go b/model/train/TaobaoTrainAgentHandrefundRefundfeeAPIResponse.go new file mode 100644 index 0000000000..8770dd7200 --- /dev/null +++ b/model/train/TaobaoTrainAgentHandrefundRefundfeeAPIResponse.go @@ -0,0 +1,31 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商手动退款接口 API返回值 +taobao.train.agent.handrefund.refundfee + +火车票代理商手动退款接口 +*/ +type TaobaoTrainAgentHandrefundRefundfeeAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentHandrefundRefundfeeAPIResponseModel +} + +// 代理商手动退款接口 成功返回结果 +type TaobaoTrainAgentHandrefundRefundfeeAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_handrefund_refundfee_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功标记 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 失败code + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 失败文案 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentHandrefundRefundfeeResponse.go b/model/train/TaobaoTrainAgentHandrefundRefundfeeResponse.go deleted file mode 100644 index 9c8de55dd0..0000000000 --- a/model/train/TaobaoTrainAgentHandrefundRefundfeeResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -代理商手动退款接口 API返回值 -taobao.train.agent.handrefund.refundfee - -火车票代理商手动退款接口 -*/ -type TaobaoTrainAgentHandrefundRefundfeeAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentHandrefundRefundfeeResponse -} - -// 代理商手动退款接口 成功返回结果 -type TaobaoTrainAgentHandrefundRefundfeeResponse struct { - XMLName xml.Name `xml:"train_agent_handrefund_refundfee_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功标记 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 失败code - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 失败文案 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentHoldseatConfirmAPIRequest.go b/model/train/TaobaoTrainAgentHoldseatConfirmAPIRequest.go new file mode 100644 index 0000000000..fce9b0c43a --- /dev/null +++ b/model/train/TaobaoTrainAgentHoldseatConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +火车票代理商接口——确认占座是否成功 API请求 +taobao.train.agent.holdseat.confirm + +火车票代理商接口——确认占座是否成功 +*/ +type TaobaoTrainAgentHoldseatConfirmAPIRequest struct { + model.Params + // 占座入参 + _holdSeatParam *HoldSeatParam +} + +// 初始化TaobaoTrainAgentHoldseatConfirmAPIRequest对象 +func NewTaobaoTrainAgentHoldseatConfirmRequest() *TaobaoTrainAgentHoldseatConfirmAPIRequest{ + return &TaobaoTrainAgentHoldseatConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentHoldseatConfirmAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.holdseat.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentHoldseatConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// HoldSeatParam Setter +// 占座入参 +func (r *TaobaoTrainAgentHoldseatConfirmAPIRequest) SetHoldSeatParam(_holdSeatParam *HoldSeatParam) error { + r._holdSeatParam = _holdSeatParam + r.Set("hold_seat_param", _holdSeatParam) + return nil +} + +// HoldSeatParam Getter +func (r TaobaoTrainAgentHoldseatConfirmAPIRequest) GetHoldSeatParam() *HoldSeatParam { + return r._holdSeatParam +} diff --git a/model/train/TaobaoTrainAgentHoldseatConfirmAPIResponse.go b/model/train/TaobaoTrainAgentHoldseatConfirmAPIResponse.go new file mode 100644 index 0000000000..8134ce7534 --- /dev/null +++ b/model/train/TaobaoTrainAgentHoldseatConfirmAPIResponse.go @@ -0,0 +1,31 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +火车票代理商接口——确认占座是否成功 API返回值 +taobao.train.agent.holdseat.confirm + +火车票代理商接口——确认占座是否成功 +*/ +type TaobaoTrainAgentHoldseatConfirmAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentHoldseatConfirmAPIResponseModel +} + +// 火车票代理商接口——确认占座是否成功 成功返回结果 +type TaobaoTrainAgentHoldseatConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_holdseat_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // resultMsg + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // resultCode + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentHoldseatConfirmResponse.go b/model/train/TaobaoTrainAgentHoldseatConfirmResponse.go deleted file mode 100644 index c5479376c2..0000000000 --- a/model/train/TaobaoTrainAgentHoldseatConfirmResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -火车票代理商接口——确认占座是否成功 API返回值 -taobao.train.agent.holdseat.confirm - -火车票代理商接口——确认占座是否成功 -*/ -type TaobaoTrainAgentHoldseatConfirmAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentHoldseatConfirmResponse -} - -// 火车票代理商接口——确认占座是否成功 成功返回结果 -type TaobaoTrainAgentHoldseatConfirmResponse struct { - XMLName xml.Name `xml:"train_agent_holdseat_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // resultMsg - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // resultCode - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentOrderGetAPIRequest.go b/model/train/TaobaoTrainAgentOrderGetAPIRequest.go new file mode 100644 index 0000000000..f7e04d1d52 --- /dev/null +++ b/model/train/TaobaoTrainAgentOrderGetAPIRequest.go @@ -0,0 +1,66 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商获取订单信息回调API API请求 +taobao.train.agent.order.get + +代理商获取订单信息回调API +*/ +type TaobaoTrainAgentOrderGetAPIRequest struct { + model.Params + // 淘宝的主订单号 + _mainOrderId int64 + // 代理商id + _agentId int64 +} + +// 初始化TaobaoTrainAgentOrderGetAPIRequest对象 +func NewTaobaoTrainAgentOrderGetRequest() *TaobaoTrainAgentOrderGetAPIRequest{ + return &TaobaoTrainAgentOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentOrderGetAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainOrderId Setter +// 淘宝的主订单号 +func (r *TaobaoTrainAgentOrderGetAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r TaobaoTrainAgentOrderGetAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} +// AgentId Setter +// 代理商id +func (r *TaobaoTrainAgentOrderGetAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoTrainAgentOrderGetAPIRequest) GetAgentId() int64 { + return r._agentId +} diff --git a/model/train/TaobaoTrainAgentOrderGetAPIResponse.go b/model/train/TaobaoTrainAgentOrderGetAPIResponse.go new file mode 100644 index 0000000000..7a1b670a1e --- /dev/null +++ b/model/train/TaobaoTrainAgentOrderGetAPIResponse.go @@ -0,0 +1,69 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商获取订单信息回调API API返回值 +taobao.train.agent.order.get + +代理商获取订单信息回调API +*/ +type TaobaoTrainAgentOrderGetAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentOrderGetAPIResponseModel +} + +// 代理商获取订单信息回调API 成功返回结果 +type TaobaoTrainAgentOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ttp_order_id + TtpOrderId int64 `json:"ttp_order_id,omitempty" xml:"ttp_order_id,omitempty"` + // 返回错误。 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 主订单id + MainOrderId int64 `json:"main_order_id,omitempty" xml:"main_order_id,omitempty"` + // 火车票信息。 + Tickets []ToAgentTicketInfo `json:"tickets,omitempty" xml:"tickets>to_agent_ticket_info,omitempty"` + // 整个订单的总价,包括每张票价及保险价格,价格精确到分,例如100元,输出为10000. + TotalPrice int64 `json:"total_price,omitempty" xml:"total_price,omitempty"` + // 移动电话 + Telephone string `json:"telephone,omitempty" xml:"telephone,omitempty"` + // 是否需要保险邮件地址 + Mailing bool `json:"mailing,omitempty" xml:"mailing,omitempty"` + // 保险邮件地址 + Address string `json:"address,omitempty" xml:"address,omitempty"` + // 联系人姓名 + RelationName string `json:"relation_name,omitempty" xml:"relation_name,omitempty"` + // 如果是公司发票,需要公司名称,如果不需要公司名称,返回no + CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"` + // 1-已付款,2-关闭,3-成功 + OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"` + // 最晚出票时间 + LatestIssueTime string `json:"latest_issue_time,omitempty" xml:"latest_issue_time,omitempty"` + // 订单类型0:默认订单类型走代理商账号;1:走12306客户绑定的账号;2:线下邮寄票 + OrderType int64 `json:"order_type,omitempty" xml:"order_type,omitempty"` + // 纸质票类型: 1 靠窗,2 连坐,3 上铺,4 中铺,5 下铺,6 是否同包厢 + PaperType int64 `json:"paper_type,omitempty" xml:"paper_type,omitempty"` + // 当下铺/靠窗/连坐无票时,是否支持非下铺/非靠窗/非连坐(0不接受,1接受) + PaperBackup int64 `json:"paper_backup,omitempty" xml:"paper_backup,omitempty"` + // 至少接受下铺/靠窗/连坐数量 + PaperLowSeatCount int64 `json:"paper_low_seat_count,omitempty" xml:"paper_low_seat_count,omitempty"` + // 线下票收件人姓名 + TransportName string `json:"transport_name,omitempty" xml:"transport_name,omitempty"` + // 线下票收件人手机号 + TransportPhone string `json:"transport_phone,omitempty" xml:"transport_phone,omitempty"` + // 线下票收件人地址 + TransportAddress string `json:"transport_address,omitempty" xml:"transport_address,omitempty"` + // 快递费(分) + TransportPrice int64 `json:"transport_price,omitempty" xml:"transport_price,omitempty"` + // 手续费总价(分) + ServicePrice int64 `json:"service_price,omitempty" xml:"service_price,omitempty"` + // 扩展字段 + ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentOrderGetResponse.go b/model/train/TaobaoTrainAgentOrderGetResponse.go deleted file mode 100644 index a30e0485e5..0000000000 --- a/model/train/TaobaoTrainAgentOrderGetResponse.go +++ /dev/null @@ -1,69 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -代理商获取订单信息回调API API返回值 -taobao.train.agent.order.get - -代理商获取订单信息回调API -*/ -type TaobaoTrainAgentOrderGetAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentOrderGetResponse -} - -// 代理商获取订单信息回调API 成功返回结果 -type TaobaoTrainAgentOrderGetResponse struct { - XMLName xml.Name `xml:"train_agent_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ttp_order_id - TtpOrderId int64 `json:"ttp_order_id,omitempty" xml:"ttp_order_id,omitempty"` - // 返回错误。 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 主订单id - MainOrderId int64 `json:"main_order_id,omitempty" xml:"main_order_id,omitempty"` - // 火车票信息。 - Tickets []ToAgentTicketInfo `json:"tickets,omitempty" xml:"tickets>to_agent_ticket_info,omitempty"` - // 整个订单的总价,包括每张票价及保险价格,价格精确到分,例如100元,输出为10000. - TotalPrice int64 `json:"total_price,omitempty" xml:"total_price,omitempty"` - // 移动电话 - Telephone string `json:"telephone,omitempty" xml:"telephone,omitempty"` - // 是否需要保险邮件地址 - Mailing bool `json:"mailing,omitempty" xml:"mailing,omitempty"` - // 保险邮件地址 - Address string `json:"address,omitempty" xml:"address,omitempty"` - // 联系人姓名 - RelationName string `json:"relation_name,omitempty" xml:"relation_name,omitempty"` - // 如果是公司发票,需要公司名称,如果不需要公司名称,返回no - CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"` - // 1-已付款,2-关闭,3-成功 - OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"` - // 最晚出票时间 - LatestIssueTime string `json:"latest_issue_time,omitempty" xml:"latest_issue_time,omitempty"` - // 订单类型0:默认订单类型走代理商账号;1:走12306客户绑定的账号;2:线下邮寄票 - OrderType int64 `json:"order_type,omitempty" xml:"order_type,omitempty"` - // 纸质票类型: 1 靠窗,2 连坐,3 上铺,4 中铺,5 下铺,6 是否同包厢 - PaperType int64 `json:"paper_type,omitempty" xml:"paper_type,omitempty"` - // 当下铺/靠窗/连坐无票时,是否支持非下铺/非靠窗/非连坐(0不接受,1接受) - PaperBackup int64 `json:"paper_backup,omitempty" xml:"paper_backup,omitempty"` - // 至少接受下铺/靠窗/连坐数量 - PaperLowSeatCount int64 `json:"paper_low_seat_count,omitempty" xml:"paper_low_seat_count,omitempty"` - // 线下票收件人姓名 - TransportName string `json:"transport_name,omitempty" xml:"transport_name,omitempty"` - // 线下票收件人手机号 - TransportPhone string `json:"transport_phone,omitempty" xml:"transport_phone,omitempty"` - // 线下票收件人地址 - TransportAddress string `json:"transport_address,omitempty" xml:"transport_address,omitempty"` - // 快递费(分) - TransportPrice int64 `json:"transport_price,omitempty" xml:"transport_price,omitempty"` - // 手续费总价(分) - ServicePrice int64 `json:"service_price,omitempty" xml:"service_price,omitempty"` - // 扩展字段 - ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentOrderGetVtwoAPIRequest.go b/model/train/TaobaoTrainAgentOrderGetVtwoAPIRequest.go new file mode 100644 index 0000000000..9ed79fd48d --- /dev/null +++ b/model/train/TaobaoTrainAgentOrderGetVtwoAPIRequest.go @@ -0,0 +1,66 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商获取订单信息回调APIv2--增加鉴权校验 API请求 +taobao.train.agent.order.get.vtwo + +代理商获取订单信息回调API +*/ +type TaobaoTrainAgentOrderGetVtwoAPIRequest struct { + model.Params + // 淘宝的主订单号 + _mainOrderId int64 + // 代理商id + _agentId int64 +} + +// 初始化TaobaoTrainAgentOrderGetVtwoAPIRequest对象 +func NewTaobaoTrainAgentOrderGetVtwoRequest() *TaobaoTrainAgentOrderGetVtwoAPIRequest{ + return &TaobaoTrainAgentOrderGetVtwoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentOrderGetVtwoAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.order.get.vtwo" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentOrderGetVtwoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainOrderId Setter +// 淘宝的主订单号 +func (r *TaobaoTrainAgentOrderGetVtwoAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r TaobaoTrainAgentOrderGetVtwoAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} +// AgentId Setter +// 代理商id +func (r *TaobaoTrainAgentOrderGetVtwoAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoTrainAgentOrderGetVtwoAPIRequest) GetAgentId() int64 { + return r._agentId +} diff --git a/model/train/TaobaoTrainAgentOrderGetVtwoAPIResponse.go b/model/train/TaobaoTrainAgentOrderGetVtwoAPIResponse.go new file mode 100644 index 0000000000..0948dada65 --- /dev/null +++ b/model/train/TaobaoTrainAgentOrderGetVtwoAPIResponse.go @@ -0,0 +1,83 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +代理商获取订单信息回调APIv2--增加鉴权校验 API返回值 +taobao.train.agent.order.get.vtwo + +代理商获取订单信息回调API +*/ +type TaobaoTrainAgentOrderGetVtwoAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentOrderGetVtwoAPIResponseModel +} + +// 代理商获取订单信息回调APIv2--增加鉴权校验 成功返回结果 +type TaobaoTrainAgentOrderGetVtwoAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_order_get_vtwo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ttp_order_id + TtpOrderId int64 `json:"ttp_order_id,omitempty" xml:"ttp_order_id,omitempty"` + // 返回错误。 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 主订单id + MainOrderId int64 `json:"main_order_id,omitempty" xml:"main_order_id,omitempty"` + // 火车票信息。 + Tickets []ToAgentTicketInfo `json:"tickets,omitempty" xml:"tickets>to_agent_ticket_info,omitempty"` + // 整个订单的总价,包括每张票价及保险价格,价格精确到分,例如100元,输出为10000. + TotalPrice int64 `json:"total_price,omitempty" xml:"total_price,omitempty"` + // 移动电话 + Telephone string `json:"telephone,omitempty" xml:"telephone,omitempty"` + // 是否需要保险邮件地址 + Mailing bool `json:"mailing,omitempty" xml:"mailing,omitempty"` + // 保险邮件地址 + Address string `json:"address,omitempty" xml:"address,omitempty"` + // 联系人姓名 + RelationName string `json:"relation_name,omitempty" xml:"relation_name,omitempty"` + // 如果是公司发票,需要公司名称,如果不需要公司名称,返回no + CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"` + // 1-已付款,2-关闭,3-成功 + OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"` + // 最晚出票时间 + LatestIssueTime string `json:"latest_issue_time,omitempty" xml:"latest_issue_time,omitempty"` + // 订单类型0:默认订单类型走代理商账号;1:走12306客户绑定的账号;2:线下邮寄票 + OrderType int64 `json:"order_type,omitempty" xml:"order_type,omitempty"` + // 纸质票类型: 1 靠窗,2 连坐,3 上铺,4 中铺,5 下铺,6 是否同包厢 + PaperType int64 `json:"paper_type,omitempty" xml:"paper_type,omitempty"` + // 当下铺/靠窗/连坐无票时,是否支持非下铺/非靠窗/非连坐(0不接受,1接受) + PaperBackup int64 `json:"paper_backup,omitempty" xml:"paper_backup,omitempty"` + // 至少接受下铺/靠窗/连坐数量 + PaperLowSeatCount int64 `json:"paper_low_seat_count,omitempty" xml:"paper_low_seat_count,omitempty"` + // 线下票收件人姓名 + TransportName string `json:"transport_name,omitempty" xml:"transport_name,omitempty"` + // 线下票收件人手机号 + TransportPhone string `json:"transport_phone,omitempty" xml:"transport_phone,omitempty"` + // 线下票收件人地址 + TransportAddress string `json:"transport_address,omitempty" xml:"transport_address,omitempty"` + // 快递费(分) + TransportPrice int64 `json:"transport_price,omitempty" xml:"transport_price,omitempty"` + // 手续费总价(分) + ServicePrice int64 `json:"service_price,omitempty" xml:"service_price,omitempty"` + // 扩展字段 + ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` + // 1A2B + OnlineBookSeat string `json:"online_book_seat,omitempty" xml:"online_book_seat,omitempty"` + // interchangeStation + InterchangeStation string `json:"interchange_station,omitempty" xml:"interchange_station,omitempty"` + // isMultiTrip + IsMultiTrip string `json:"is_multi_trip,omitempty" xml:"is_multi_trip,omitempty"` + // 是否需要发票 + NeedReceipt bool `json:"need_receipt,omitempty" xml:"need_receipt,omitempty"` + // 是否接受非定制坐席 1:是 0:否 + AcceptNoVipCustom int64 `json:"accept_no_vip_custom,omitempty" xml:"accept_no_vip_custom,omitempty"` + // 用户可接受的最少定制票数量 + VipCustomMinSeatCount int64 `json:"vip_custom_min_seat_count,omitempty" xml:"vip_custom_min_seat_count,omitempty"` + // 定制票类型 1:下铺 2:下铺or中铺 3:过道 4:靠窗 + VipCustomType int64 `json:"vip_custom_type,omitempty" xml:"vip_custom_type,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentOrderGetVtwoResponse.go b/model/train/TaobaoTrainAgentOrderGetVtwoResponse.go deleted file mode 100644 index 25fb90d270..0000000000 --- a/model/train/TaobaoTrainAgentOrderGetVtwoResponse.go +++ /dev/null @@ -1,83 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -代理商获取订单信息回调APIv2--增加鉴权校验 API返回值 -taobao.train.agent.order.get.vtwo - -代理商获取订单信息回调API -*/ -type TaobaoTrainAgentOrderGetVtwoAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentOrderGetVtwoResponse -} - -// 代理商获取订单信息回调APIv2--增加鉴权校验 成功返回结果 -type TaobaoTrainAgentOrderGetVtwoResponse struct { - XMLName xml.Name `xml:"train_agent_order_get_vtwo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ttp_order_id - TtpOrderId int64 `json:"ttp_order_id,omitempty" xml:"ttp_order_id,omitempty"` - // 返回错误。 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 主订单id - MainOrderId int64 `json:"main_order_id,omitempty" xml:"main_order_id,omitempty"` - // 火车票信息。 - Tickets []ToAgentTicketInfo `json:"tickets,omitempty" xml:"tickets>to_agent_ticket_info,omitempty"` - // 整个订单的总价,包括每张票价及保险价格,价格精确到分,例如100元,输出为10000. - TotalPrice int64 `json:"total_price,omitempty" xml:"total_price,omitempty"` - // 移动电话 - Telephone string `json:"telephone,omitempty" xml:"telephone,omitempty"` - // 是否需要保险邮件地址 - Mailing bool `json:"mailing,omitempty" xml:"mailing,omitempty"` - // 保险邮件地址 - Address string `json:"address,omitempty" xml:"address,omitempty"` - // 联系人姓名 - RelationName string `json:"relation_name,omitempty" xml:"relation_name,omitempty"` - // 如果是公司发票,需要公司名称,如果不需要公司名称,返回no - CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"` - // 1-已付款,2-关闭,3-成功 - OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"` - // 最晚出票时间 - LatestIssueTime string `json:"latest_issue_time,omitempty" xml:"latest_issue_time,omitempty"` - // 订单类型0:默认订单类型走代理商账号;1:走12306客户绑定的账号;2:线下邮寄票 - OrderType int64 `json:"order_type,omitempty" xml:"order_type,omitempty"` - // 纸质票类型: 1 靠窗,2 连坐,3 上铺,4 中铺,5 下铺,6 是否同包厢 - PaperType int64 `json:"paper_type,omitempty" xml:"paper_type,omitempty"` - // 当下铺/靠窗/连坐无票时,是否支持非下铺/非靠窗/非连坐(0不接受,1接受) - PaperBackup int64 `json:"paper_backup,omitempty" xml:"paper_backup,omitempty"` - // 至少接受下铺/靠窗/连坐数量 - PaperLowSeatCount int64 `json:"paper_low_seat_count,omitempty" xml:"paper_low_seat_count,omitempty"` - // 线下票收件人姓名 - TransportName string `json:"transport_name,omitempty" xml:"transport_name,omitempty"` - // 线下票收件人手机号 - TransportPhone string `json:"transport_phone,omitempty" xml:"transport_phone,omitempty"` - // 线下票收件人地址 - TransportAddress string `json:"transport_address,omitempty" xml:"transport_address,omitempty"` - // 快递费(分) - TransportPrice int64 `json:"transport_price,omitempty" xml:"transport_price,omitempty"` - // 手续费总价(分) - ServicePrice int64 `json:"service_price,omitempty" xml:"service_price,omitempty"` - // 扩展字段 - ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` - // 1A2B - OnlineBookSeat string `json:"online_book_seat,omitempty" xml:"online_book_seat,omitempty"` - // interchangeStation - InterchangeStation string `json:"interchange_station,omitempty" xml:"interchange_station,omitempty"` - // isMultiTrip - IsMultiTrip string `json:"is_multi_trip,omitempty" xml:"is_multi_trip,omitempty"` - // 是否需要发票 - NeedReceipt bool `json:"need_receipt,omitempty" xml:"need_receipt,omitempty"` - // 是否接受非定制坐席 1:是 0:否 - AcceptNoVipCustom int64 `json:"accept_no_vip_custom,omitempty" xml:"accept_no_vip_custom,omitempty"` - // 用户可接受的最少定制票数量 - VipCustomMinSeatCount int64 `json:"vip_custom_min_seat_count,omitempty" xml:"vip_custom_min_seat_count,omitempty"` - // 定制票类型 1:下铺 2:下铺or中铺 3:过道 4:靠窗 - VipCustomType int64 `json:"vip_custom_type,omitempty" xml:"vip_custom_type,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentOrderPayAPIRequest.go b/model/train/TaobaoTrainAgentOrderPayAPIRequest.go new file mode 100644 index 0000000000..58b3503e7e --- /dev/null +++ b/model/train/TaobaoTrainAgentOrderPayAPIRequest.go @@ -0,0 +1,52 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +代购订单代付接口 API请求 +taobao.train.agent.order.pay + +代购订单代付接口 +*/ +type TaobaoTrainAgentOrderPayAPIRequest struct { + model.Params + // 入参对象 + _agentPayOrderParam *AgentPayOrderParam +} + +// 初始化TaobaoTrainAgentOrderPayAPIRequest对象 +func NewTaobaoTrainAgentOrderPayRequest() *TaobaoTrainAgentOrderPayAPIRequest{ + return &TaobaoTrainAgentOrderPayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentOrderPayAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.order.pay" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentOrderPayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentPayOrderParam Setter +// 入参对象 +func (r *TaobaoTrainAgentOrderPayAPIRequest) SetAgentPayOrderParam(_agentPayOrderParam *AgentPayOrderParam) error { + r._agentPayOrderParam = _agentPayOrderParam + r.Set("agent_pay_order_param", _agentPayOrderParam) + return nil +} + +// AgentPayOrderParam Getter +func (r TaobaoTrainAgentOrderPayAPIRequest) GetAgentPayOrderParam() *AgentPayOrderParam { + return r._agentPayOrderParam +} diff --git a/model/train/TaobaoTrainAgentOrderPayAPIResponse.go b/model/train/TaobaoTrainAgentOrderPayAPIResponse.go new file mode 100644 index 0000000000..580c6ee2f4 --- /dev/null +++ b/model/train/TaobaoTrainAgentOrderPayAPIResponse.go @@ -0,0 +1,27 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +代购订单代付接口 API返回值 +taobao.train.agent.order.pay + +代购订单代付接口 +*/ +type TaobaoTrainAgentOrderPayAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentOrderPayAPIResponseModel +} + +// 代购订单代付接口 成功返回结果 +type TaobaoTrainAgentOrderPayAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_order_pay_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功返回 + ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentOrderPayResponse.go b/model/train/TaobaoTrainAgentOrderPayResponse.go deleted file mode 100644 index 65d10daf9d..0000000000 --- a/model/train/TaobaoTrainAgentOrderPayResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -代购订单代付接口 API返回值 -taobao.train.agent.order.pay - -代购订单代付接口 -*/ -type TaobaoTrainAgentOrderPayAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentOrderPayResponse -} - -// 代购订单代付接口 成功返回结果 -type TaobaoTrainAgentOrderPayResponse struct { - XMLName xml.Name `xml:"train_agent_order_pay_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功返回 - ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentReturnordersGetVtwoAPIRequest.go b/model/train/TaobaoTrainAgentReturnordersGetVtwoAPIRequest.go new file mode 100644 index 0000000000..7cc1f899b1 --- /dev/null +++ b/model/train/TaobaoTrainAgentReturnordersGetVtwoAPIRequest.go @@ -0,0 +1,66 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取待退票的订单v2--增加鉴权校验 API请求 +taobao.train.agent.returnorders.get.vtwo + +代理商用来获取待退票的订单列表及数量,防止代理商掉单。 +*/ +type TaobaoTrainAgentReturnordersGetVtwoAPIRequest struct { + model.Params + // 卖家ID + _agentId int64 + // 0 线上退票 1线下退票 + _offline int64 +} + +// 初始化TaobaoTrainAgentReturnordersGetVtwoAPIRequest对象 +func NewTaobaoTrainAgentReturnordersGetVtwoRequest() *TaobaoTrainAgentReturnordersGetVtwoAPIRequest{ + return &TaobaoTrainAgentReturnordersGetVtwoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentReturnordersGetVtwoAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.returnorders.get.vtwo" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentReturnordersGetVtwoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AgentId Setter +// 卖家ID +func (r *TaobaoTrainAgentReturnordersGetVtwoAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoTrainAgentReturnordersGetVtwoAPIRequest) GetAgentId() int64 { + return r._agentId +} +// Offline Setter +// 0 线上退票 1线下退票 +func (r *TaobaoTrainAgentReturnordersGetVtwoAPIRequest) SetOffline(_offline int64) error { + r._offline = _offline + r.Set("offline", _offline) + return nil +} + +// Offline Getter +func (r TaobaoTrainAgentReturnordersGetVtwoAPIRequest) GetOffline() int64 { + return r._offline +} diff --git a/model/train/TaobaoTrainAgentReturnordersGetVtwoAPIResponse.go b/model/train/TaobaoTrainAgentReturnordersGetVtwoAPIResponse.go new file mode 100644 index 0000000000..6a9c9dc85f --- /dev/null +++ b/model/train/TaobaoTrainAgentReturnordersGetVtwoAPIResponse.go @@ -0,0 +1,35 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取待退票的订单v2--增加鉴权校验 API返回值 +taobao.train.agent.returnorders.get.vtwo + +代理商用来获取待退票的订单列表及数量,防止代理商掉单。 +*/ +type TaobaoTrainAgentReturnordersGetVtwoAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentReturnordersGetVtwoAPIResponseModel +} + +// 获取待退票的订单v2--增加鉴权校验 成功返回结果 +type TaobaoTrainAgentReturnordersGetVtwoAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_returnorders_get_vtwo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 待退票的订单数 + OrderCount int64 `json:"order_count,omitempty" xml:"order_count,omitempty"` + // 子订单号字符串,每个订单以逗号分隔 + OrderIds string `json:"order_ids,omitempty" xml:"order_ids,omitempty"` + // 错误描述 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 主订单id列表 + MainOrderIds string `json:"main_order_ids,omitempty" xml:"main_order_ids,omitempty"` + // 申请时间,每个时间以逗号分隔 + RefundApplyTimes string `json:"refund_apply_times,omitempty" xml:"refund_apply_times,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentReturnordersGetVtwoResponse.go b/model/train/TaobaoTrainAgentReturnordersGetVtwoResponse.go deleted file mode 100644 index d8612ddd33..0000000000 --- a/model/train/TaobaoTrainAgentReturnordersGetVtwoResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取待退票的订单v2--增加鉴权校验 API返回值 -taobao.train.agent.returnorders.get.vtwo - -代理商用来获取待退票的订单列表及数量,防止代理商掉单。 -*/ -type TaobaoTrainAgentReturnordersGetVtwoAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentReturnordersGetVtwoResponse -} - -// 获取待退票的订单v2--增加鉴权校验 成功返回结果 -type TaobaoTrainAgentReturnordersGetVtwoResponse struct { - XMLName xml.Name `xml:"train_agent_returnorders_get_vtwo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 待退票的订单数 - OrderCount int64 `json:"order_count,omitempty" xml:"order_count,omitempty"` - // 子订单号字符串,每个订单以逗号分隔 - OrderIds string `json:"order_ids,omitempty" xml:"order_ids,omitempty"` - // 错误描述 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 主订单id列表 - MainOrderIds string `json:"main_order_ids,omitempty" xml:"main_order_ids,omitempty"` - // 申请时间,每个时间以逗号分隔 - RefundApplyTimes string `json:"refund_apply_times,omitempty" xml:"refund_apply_times,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest.go b/model/train/TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest.go new file mode 100644 index 0000000000..a381b6521c --- /dev/null +++ b/model/train/TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest.go @@ -0,0 +1,150 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +退票通知 API请求 +taobao.train.agent.returnticket.confirm.vtwo + +火车票代理商接口——退票通知回调 +*/ +type TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest struct { + model.Params + // 用户id + _buyerId int64 + // 是否同意退票 + _agreeReturn bool + // 退票金额,单位分 + _refundFee int64 + // 淘宝主订单id + _mainBizOrderId int64 + // 代理商id + _agentId int64 + // 拒绝退票原因 + _refuseReturnReason string + // 淘宝子订单id + _subBizOrderId int64 + // 关闭通知用户 true:关闭 false:不关闭 + _closeRefundNotify bool +} + +// 初始化TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest对象 +func NewTaobaoTrainAgentReturnticketConfirmVtwoRequest() *TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest{ + return &TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.returnticket.confirm.vtwo" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BuyerId Setter +// 用户id +func (r *TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetBuyerId(_buyerId int64) error { + r._buyerId = _buyerId + r.Set("buyer_id", _buyerId) + return nil +} + +// BuyerId Getter +func (r TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetBuyerId() int64 { + return r._buyerId +} +// AgreeReturn Setter +// 是否同意退票 +func (r *TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetAgreeReturn(_agreeReturn bool) error { + r._agreeReturn = _agreeReturn + r.Set("agree_return", _agreeReturn) + return nil +} + +// AgreeReturn Getter +func (r TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetAgreeReturn() bool { + return r._agreeReturn +} +// RefundFee Setter +// 退票金额,单位分 +func (r *TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetRefundFee(_refundFee int64) error { + r._refundFee = _refundFee + r.Set("refund_fee", _refundFee) + return nil +} + +// RefundFee Getter +func (r TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetRefundFee() int64 { + return r._refundFee +} +// MainBizOrderId Setter +// 淘宝主订单id +func (r *TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetMainBizOrderId(_mainBizOrderId int64) error { + r._mainBizOrderId = _mainBizOrderId + r.Set("main_biz_order_id", _mainBizOrderId) + return nil +} + +// MainBizOrderId Getter +func (r TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetMainBizOrderId() int64 { + return r._mainBizOrderId +} +// AgentId Setter +// 代理商id +func (r *TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetAgentId() int64 { + return r._agentId +} +// RefuseReturnReason Setter +// 拒绝退票原因 +func (r *TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetRefuseReturnReason(_refuseReturnReason string) error { + r._refuseReturnReason = _refuseReturnReason + r.Set("refuse_return_reason", _refuseReturnReason) + return nil +} + +// RefuseReturnReason Getter +func (r TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetRefuseReturnReason() string { + return r._refuseReturnReason +} +// SubBizOrderId Setter +// 淘宝子订单id +func (r *TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetSubBizOrderId(_subBizOrderId int64) error { + r._subBizOrderId = _subBizOrderId + r.Set("sub_biz_order_id", _subBizOrderId) + return nil +} + +// SubBizOrderId Getter +func (r TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetSubBizOrderId() int64 { + return r._subBizOrderId +} +// CloseRefundNotify Setter +// 关闭通知用户 true:关闭 false:不关闭 +func (r *TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetCloseRefundNotify(_closeRefundNotify bool) error { + r._closeRefundNotify = _closeRefundNotify + r.Set("close_refund_notify", _closeRefundNotify) + return nil +} + +// CloseRefundNotify Getter +func (r TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetCloseRefundNotify() bool { + return r._closeRefundNotify +} diff --git a/model/train/TaobaoTrainAgentReturnticketConfirmVtwoAPIResponse.go b/model/train/TaobaoTrainAgentReturnticketConfirmVtwoAPIResponse.go new file mode 100644 index 0000000000..f30970ecaf --- /dev/null +++ b/model/train/TaobaoTrainAgentReturnticketConfirmVtwoAPIResponse.go @@ -0,0 +1,31 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +退票通知 API返回值 +taobao.train.agent.returnticket.confirm.vtwo + +火车票代理商接口——退票通知回调 +*/ +type TaobaoTrainAgentReturnticketConfirmVtwoAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentReturnticketConfirmVtwoAPIResponseModel +} + +// 退票通知 成功返回结果 +type TaobaoTrainAgentReturnticketConfirmVtwoAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_returnticket_confirm_vtwo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // resultCode + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // resultMsg + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentReturnticketConfirmVtwoResponse.go b/model/train/TaobaoTrainAgentReturnticketConfirmVtwoResponse.go deleted file mode 100644 index 9fc72e1f57..0000000000 --- a/model/train/TaobaoTrainAgentReturnticketConfirmVtwoResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -退票通知 API返回值 -taobao.train.agent.returnticket.confirm.vtwo - -火车票代理商接口——退票通知回调 -*/ -type TaobaoTrainAgentReturnticketConfirmVtwoAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentReturnticketConfirmVtwoResponse -} - -// 退票通知 成功返回结果 -type TaobaoTrainAgentReturnticketConfirmVtwoResponse struct { - XMLName xml.Name `xml:"train_agent_returnticket_confirm_vtwo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // resultCode - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // resultMsg - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentTostationConfirmAPIRequest.go b/model/train/TaobaoTrainAgentTostationConfirmAPIRequest.go new file mode 100644 index 0000000000..af15dca0b1 --- /dev/null +++ b/model/train/TaobaoTrainAgentTostationConfirmAPIRequest.go @@ -0,0 +1,66 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线下票确认送票至车站服务 API请求 +taobao.train.agent.tostation.confirm + +送票至车站的订单,代理商确认配送到站 +*/ +type TaobaoTrainAgentTostationConfirmAPIRequest struct { + model.Params + // 淘宝的主订单号 + _mainOrderId int64 + // 代理商id + _agentId int64 +} + +// 初始化TaobaoTrainAgentTostationConfirmAPIRequest对象 +func NewTaobaoTrainAgentTostationConfirmRequest() *TaobaoTrainAgentTostationConfirmAPIRequest{ + return &TaobaoTrainAgentTostationConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentTostationConfirmAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.tostation.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentTostationConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainOrderId Setter +// 淘宝的主订单号 +func (r *TaobaoTrainAgentTostationConfirmAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r TaobaoTrainAgentTostationConfirmAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} +// AgentId Setter +// 代理商id +func (r *TaobaoTrainAgentTostationConfirmAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoTrainAgentTostationConfirmAPIRequest) GetAgentId() int64 { + return r._agentId +} diff --git a/model/train/TaobaoTrainAgentTostationConfirmAPIResponse.go b/model/train/TaobaoTrainAgentTostationConfirmAPIResponse.go new file mode 100644 index 0000000000..16c4357b5f --- /dev/null +++ b/model/train/TaobaoTrainAgentTostationConfirmAPIResponse.go @@ -0,0 +1,33 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线下票确认送票至车站服务 API返回值 +taobao.train.agent.tostation.confirm + +送票至车站的订单,代理商确认配送到站 +*/ +type TaobaoTrainAgentTostationConfirmAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentTostationConfirmAPIResponseModel +} + +// 线下票确认送票至车站服务 成功返回结果 +type TaobaoTrainAgentTostationConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_tostation_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + ErrorMsgCode string `json:"error_msg_code,omitempty" xml:"error_msg_code,omitempty"` + // 扩展参数 + ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` + // 错误描述 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentTostationConfirmResponse.go b/model/train/TaobaoTrainAgentTostationConfirmResponse.go deleted file mode 100644 index baa4ea2c4e..0000000000 --- a/model/train/TaobaoTrainAgentTostationConfirmResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线下票确认送票至车站服务 API返回值 -taobao.train.agent.tostation.confirm - -送票至车站的订单,代理商确认配送到站 -*/ -type TaobaoTrainAgentTostationConfirmAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentTostationConfirmResponse -} - -// 线下票确认送票至车站服务 成功返回结果 -type TaobaoTrainAgentTostationConfirmResponse struct { - XMLName xml.Name `xml:"train_agent_tostation_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - ErrorMsgCode string `json:"error_msg_code,omitempty" xml:"error_msg_code,omitempty"` - // 扩展参数 - ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` - // 错误描述 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/train/TaobaoTrainAgentTostationReceiveAPIRequest.go b/model/train/TaobaoTrainAgentTostationReceiveAPIRequest.go new file mode 100644 index 0000000000..40a2061799 --- /dev/null +++ b/model/train/TaobaoTrainAgentTostationReceiveAPIRequest.go @@ -0,0 +1,66 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线下票送票至车站代理商确认用户已取票服务 API请求 +taobao.train.agent.tostation.receive + +送票至车站的订单,代理商确认用户已取票 +*/ +type TaobaoTrainAgentTostationReceiveAPIRequest struct { + model.Params + // 淘宝的主订单号 + _mainOrderId int64 + // 代理商id + _agentId int64 +} + +// 初始化TaobaoTrainAgentTostationReceiveAPIRequest对象 +func NewTaobaoTrainAgentTostationReceiveRequest() *TaobaoTrainAgentTostationReceiveAPIRequest{ + return &TaobaoTrainAgentTostationReceiveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainAgentTostationReceiveAPIRequest) GetApiMethodName() string { + return "taobao.train.agent.tostation.receive" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainAgentTostationReceiveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MainOrderId Setter +// 淘宝的主订单号 +func (r *TaobaoTrainAgentTostationReceiveAPIRequest) SetMainOrderId(_mainOrderId int64) error { + r._mainOrderId = _mainOrderId + r.Set("main_order_id", _mainOrderId) + return nil +} + +// MainOrderId Getter +func (r TaobaoTrainAgentTostationReceiveAPIRequest) GetMainOrderId() int64 { + return r._mainOrderId +} +// AgentId Setter +// 代理商id +func (r *TaobaoTrainAgentTostationReceiveAPIRequest) SetAgentId(_agentId int64) error { + r._agentId = _agentId + r.Set("agent_id", _agentId) + return nil +} + +// AgentId Getter +func (r TaobaoTrainAgentTostationReceiveAPIRequest) GetAgentId() int64 { + return r._agentId +} diff --git a/model/train/TaobaoTrainAgentTostationReceiveAPIResponse.go b/model/train/TaobaoTrainAgentTostationReceiveAPIResponse.go new file mode 100644 index 0000000000..4add9c351e --- /dev/null +++ b/model/train/TaobaoTrainAgentTostationReceiveAPIResponse.go @@ -0,0 +1,33 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线下票送票至车站代理商确认用户已取票服务 API返回值 +taobao.train.agent.tostation.receive + +送票至车站的订单,代理商确认用户已取票 +*/ +type TaobaoTrainAgentTostationReceiveAPIResponse struct { + model.CommonResponse + TaobaoTrainAgentTostationReceiveAPIResponseModel +} + +// 线下票送票至车站代理商确认用户已取票服务 成功返回结果 +type TaobaoTrainAgentTostationReceiveAPIResponseModel struct { + XMLName xml.Name `xml:"train_agent_tostation_receive_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误码 + ErrorMsgCode string `json:"error_msg_code,omitempty" xml:"error_msg_code,omitempty"` + // 扩展参数 + ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` + // 错误描述 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/train/TaobaoTrainAgentTostationReceiveResponse.go b/model/train/TaobaoTrainAgentTostationReceiveResponse.go deleted file mode 100644 index 94eb8fb0d2..0000000000 --- a/model/train/TaobaoTrainAgentTostationReceiveResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线下票送票至车站代理商确认用户已取票服务 API返回值 -taobao.train.agent.tostation.receive - -送票至车站的订单,代理商确认用户已取票 -*/ -type TaobaoTrainAgentTostationReceiveAPIResponse struct { - model.CommonResponse - TaobaoTrainAgentTostationReceiveResponse -} - -// 线下票送票至车站代理商确认用户已取票服务 成功返回结果 -type TaobaoTrainAgentTostationReceiveResponse struct { - XMLName xml.Name `xml:"train_agent_tostation_receive_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误码 - ErrorMsgCode string `json:"error_msg_code,omitempty" xml:"error_msg_code,omitempty"` - // 扩展参数 - ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"` - // 错误描述 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/train/TaobaoTrainMomentGetAPIRequest.go b/model/train/TaobaoTrainMomentGetAPIRequest.go new file mode 100644 index 0000000000..ee0f574e01 --- /dev/null +++ b/model/train/TaobaoTrainMomentGetAPIRequest.go @@ -0,0 +1,52 @@ +package train + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +火车票时刻表 API请求 +taobao.train.moment.get + +查询火车票车次时刻表 +*/ +type TaobaoTrainMomentGetAPIRequest struct { + model.Params + // 出参 + _param *TrainMomentTopParam +} + +// 初始化TaobaoTrainMomentGetAPIRequest对象 +func NewTaobaoTrainMomentGetRequest() *TaobaoTrainMomentGetAPIRequest{ + return &TaobaoTrainMomentGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTrainMomentGetAPIRequest) GetApiMethodName() string { + return "taobao.train.moment.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTrainMomentGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 出参 +func (r *TaobaoTrainMomentGetAPIRequest) SetParam(_param *TrainMomentTopParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r TaobaoTrainMomentGetAPIRequest) GetParam() *TrainMomentTopParam { + return r._param +} diff --git a/model/train/TaobaoTrainMomentGetAPIResponse.go b/model/train/TaobaoTrainMomentGetAPIResponse.go new file mode 100644 index 0000000000..b4d0aa1e71 --- /dev/null +++ b/model/train/TaobaoTrainMomentGetAPIResponse.go @@ -0,0 +1,35 @@ +package train + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +火车票时刻表 API返回值 +taobao.train.moment.get + +查询火车票车次时刻表 +*/ +type TaobaoTrainMomentGetAPIResponse struct { + model.CommonResponse + TaobaoTrainMomentGetAPIResponseModel +} + +// 火车票时刻表 成功返回结果 +type TaobaoTrainMomentGetAPIResponseModel struct { + XMLName xml.Name `xml:"train_moment_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出发到达对应时刻表索引 + Bindex string `json:"bindex,omitempty" xml:"bindex,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 错误信息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 经停站 + Stations []StationPassInfo `json:"stations,omitempty" xml:"stations>station_pass_info,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/train/TaobaoTrainMomentGetResponse.go b/model/train/TaobaoTrainMomentGetResponse.go deleted file mode 100644 index 4e33954387..0000000000 --- a/model/train/TaobaoTrainMomentGetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package train - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -火车票时刻表 API返回值 -taobao.train.moment.get - -查询火车票车次时刻表 -*/ -type TaobaoTrainMomentGetAPIResponse struct { - model.CommonResponse - TaobaoTrainMomentGetResponse -} - -// 火车票时刻表 成功返回结果 -type TaobaoTrainMomentGetResponse struct { - XMLName xml.Name `xml:"train_moment_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出发到达对应时刻表索引 - Bindex string `json:"bindex,omitempty" xml:"bindex,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 错误信息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 经停站 - Stations []StationPassInfo `json:"stations,omitempty" xml:"stations>station_pass_info,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/travel/AlitripDaytoursProductUploadAPIRequest.go b/model/travel/AlitripDaytoursProductUploadAPIRequest.go new file mode 100644 index 0000000000..4597131966 --- /dev/null +++ b/model/travel/AlitripDaytoursProductUploadAPIRequest.go @@ -0,0 +1,475 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +境外一日游/多日游 产品维护接口 API请求 +alitrip.daytours.product.upload + +境外一日游/多日游 产品维护接口。 +接口同时支持新商品发布 和 现有商品编辑: +1)只上传out_product_id的情况:如果out_product_id已经关联过某个商品id,则认为是编辑现有商品,否则认为是新发布一个商品。 +2)同时上传out_product_id和item_id,则认为是将out_product_id与item_id进行关联,同时对该商品进行编辑。 +*/ +type AlitripDaytoursProductUploadAPIRequest struct { + model.Params + // 商家自定义商品编码。注:商品基本信息维护、价格库存维护,商品查询都以该编码为主键。 + _outProductId string + // 可选,淘系商品id,用于将out_product_id关联到已经存在的商品,并且修改该商品外部商家编码为out_product_id。 + _itemId int64 + // 新发布商品时必填。商品标题,30个中文字符以内 + _title string + // 可选,商品亮点,最多支持4个亮点。注:在SDK中数组多个元素间以英文逗号分隔 + _subTitles []string + // 新发布商品时必填。商品图片路径。最多支持5张,第一张为主图,必填,其余四张可选填。图片链接支持外链图片(即商家系统中图片链接,必须外网可访问,且格式为jpg或jpeg,大小在500k以内),或者用户淘宝空间内的图片链接。对于外链图片,将自动下载并上传用户淘宝图片空间,上传失败的外链图片将自动忽略不计。。注:在SDK中数组多个元素间以英文逗号分隔 + _picUrls []string + // 新发布商品时必填。出发地,多个出发地用英文逗号分隔。使用说明同“目的地” + _fromLocations string + // 新发布商品时必填。目的地,多个目的地用英文逗号分隔。地址可以使用飞猪标准地址名称,也可以使用商家系统中目的地地址(支持商家目的地id和商家目的地名称)。如果需要使用商家目的地地址,必须在目的地关联页(https://sell.alitrip.com/icenter/main.htm#/widgets/api-adaptor?_k=n61ii0)配置映射关系(一次性批量上传建立映射关系,之后度假所有类目、API接口共用该映射关系)。 商家目的地地址使用示例1:东京,大阪。示例2:123,124。说明:商家目的地id(123,124)会根据映射关系自动转换成飞猪标准地址 + _toLocations string + // 新发布商品时必填。旅游天数 + _tripDay int64 + // 可选,旅游晚数,不传默认旅游天数-1 + _tripNight int64 + // PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),xml格式:DESC根标签必须有,每一个亮点(HIGHLIGHT)支持1个title子标签,1个txt子标签和多个img子标签。 + _descXml string + // PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),Html格式。商家自定义Html格式描述。 + _descHtml string + // 可选,手机端详情描述,xml格式,格式详见示例。 + _wapDesc string + // 特殊必填,(struct_itineraries与itineraries二者选填一个即可,如果两个都上传则以struct_itineraries为准)。itineraries数组的元素个数必须与旅游天数trip_day一致。行程描述,每一天行程都是xml格式(数组的每个元素对应每一天的行程): ITINERARY根标签必须有,每个活动(ACTIVITY)支持1个title子标签,1个txt子标签和多个img子标签。注:在SDK中多个元素间以英文逗号分隔 + _itineraries []string + // 特殊必填,行程描述(struct_itineraries与itineraries二者选填一个即可,如果两个都上传则以struct_itineraries为准)。列表中每一个元素对应一天的行程,每天行程由多个活动组成。行程描述是可选项,如果上传了行程内容 则行程序号和行程活动信息必填。 + _structItineraries []StructItinerary + // 新发布商品时必填。费用包含。列表中每一个元素 对应一点描述,每点描述小于100个中文字符。注:在SDK中数组多个元素间以英文逗号分隔 + _feeInclude []string + // 新发布商品时必填。费用不含。列表中每一个元素 对应一点描述,每点描述小于100个中文字符。注:在SDK中数组多个元素间以英文逗号分隔 + _feeExclude []string + // 新发布商品时必填。预定须知。列表中每一个元素 对应一点描述,每点描述小于100个中文字符。注:在SDK中数组多个元素间以英文逗号分隔 + _orderInfo []string + // 真实的旅游服务提供商 + _touristServiceProvider string + // 可选,退改规则类型。0-平台标准退改规则,1-自定义退改规则,2-不支持退改(已废弃,勿用),7-新版自定义退改规则。不传默认为0 + _refundType int64 + // 特殊可选,退款规则(json数组格式)。自定义退改时需填写(与refund_regulations字段二选一)。示例中一共包含4条规则(3条平日规则,1条节假日规则),按照顺序每条规则含义如下:出行前5日及以上,买家违约收取总费用的50,卖家违约收取总费用的20;出行前4日至1日,买家违约收取总费用的80,卖家违约收取总费用的50;行程开始当天,买家违约收取总费用的100,卖家违约收取总费用的70;如果行程日期包含节假日,则节假日条款为买家违约收取总费用的100,卖家违约收取总费用的90 + _refundRegulationsJson string + // 可选,该商品提前预定时间限制。格式:1_18_00,含义:该商品必须提前1天预定,且在18:00之前完成预定 + _reserveLimit string + // 可选,资源确认类型。1-即时确认,2-二次确认。不传默认1 + _confirmType int64 + // 特殊可选(confirm_type为2时必填),资源确认时长,当confirm_type=2时必填。1:2个工作小时内确认,2:6个工作小时内确认,3:9个工作小时内确认,4:18个工作小时内确认 + _confirmTime int64 + // 可选,减库存方式。0-拍下减库存。1-付款减库存。不传默认为0 + _subStock int64 + // 可选,出行人模板id。模板id需要商家以店铺账号身份登录飞猪商家工作台,从卖家工具->出行人管理中获取。注意:如果传0则代表设置为不需要出行人模板或使用飞猪平台默认的类目模板。 + _travellerTemplateId int64 + // 可选,商家自定义标签(最多4个字,超长则自动截断,会进行违禁词校验) + _itemCustomTag string + // 一日游 产品亮点 + _highLights []ProductHighLights + // 必填,营业执照图片路径。图片链接支持外链图片(即商家系统中图片链接,必须外网可访问,且格式为jpg或jpeg,大小在3M以内),或者用户淘宝空间内的图片链接。对于外链图片,将自动下载并上传用户淘宝图片空间。 + _businessLicense string + // 关联商品与店铺类目 结构:"cid1,cid2,...,"。如何获取卖家店铺类目具体参见:http://open.taobao.com/doc2/apiDetail.htm?apiId=65 + _sellerCids []string + // 商品秒杀,商品秒杀三个值:可选类型web_only(只能通过web网络秒杀),wap_only(只能通过wap网络秒杀),web_and_wap(既能通过web秒杀也能通过wap秒杀) + _secondKill string + // 是否支持会员打折。可选值:true,false;默认值:false(不打折)。不传的话默认为false + _hasDiscount bool +} + +// 初始化AlitripDaytoursProductUploadAPIRequest对象 +func NewAlitripDaytoursProductUploadRequest() *AlitripDaytoursProductUploadAPIRequest{ + return &AlitripDaytoursProductUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripDaytoursProductUploadAPIRequest) GetApiMethodName() string { + return "alitrip.daytours.product.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripDaytoursProductUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutProductId Setter +// 商家自定义商品编码。注:商品基本信息维护、价格库存维护,商品查询都以该编码为主键。 +func (r *AlitripDaytoursProductUploadAPIRequest) SetOutProductId(_outProductId string) error { + r._outProductId = _outProductId + r.Set("out_product_id", _outProductId) + return nil +} + +// OutProductId Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetOutProductId() string { + return r._outProductId +} +// ItemId Setter +// 可选,淘系商品id,用于将out_product_id关联到已经存在的商品,并且修改该商品外部商家编码为out_product_id。 +func (r *AlitripDaytoursProductUploadAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetItemId() int64 { + return r._itemId +} +// Title Setter +// 新发布商品时必填。商品标题,30个中文字符以内 +func (r *AlitripDaytoursProductUploadAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetTitle() string { + return r._title +} +// SubTitles Setter +// 可选,商品亮点,最多支持4个亮点。注:在SDK中数组多个元素间以英文逗号分隔 +func (r *AlitripDaytoursProductUploadAPIRequest) SetSubTitles(_subTitles []string) error { + r._subTitles = _subTitles + r.Set("sub_titles", _subTitles) + return nil +} + +// SubTitles Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetSubTitles() []string { + return r._subTitles +} +// PicUrls Setter +// 新发布商品时必填。商品图片路径。最多支持5张,第一张为主图,必填,其余四张可选填。图片链接支持外链图片(即商家系统中图片链接,必须外网可访问,且格式为jpg或jpeg,大小在500k以内),或者用户淘宝空间内的图片链接。对于外链图片,将自动下载并上传用户淘宝图片空间,上传失败的外链图片将自动忽略不计。。注:在SDK中数组多个元素间以英文逗号分隔 +func (r *AlitripDaytoursProductUploadAPIRequest) SetPicUrls(_picUrls []string) error { + r._picUrls = _picUrls + r.Set("pic_urls", _picUrls) + return nil +} + +// PicUrls Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetPicUrls() []string { + return r._picUrls +} +// FromLocations Setter +// 新发布商品时必填。出发地,多个出发地用英文逗号分隔。使用说明同“目的地” +func (r *AlitripDaytoursProductUploadAPIRequest) SetFromLocations(_fromLocations string) error { + r._fromLocations = _fromLocations + r.Set("from_locations", _fromLocations) + return nil +} + +// FromLocations Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetFromLocations() string { + return r._fromLocations +} +// ToLocations Setter +// 新发布商品时必填。目的地,多个目的地用英文逗号分隔。地址可以使用飞猪标准地址名称,也可以使用商家系统中目的地地址(支持商家目的地id和商家目的地名称)。如果需要使用商家目的地地址,必须在目的地关联页(https://sell.alitrip.com/icenter/main.htm#/widgets/api-adaptor?_k=n61ii0)配置映射关系(一次性批量上传建立映射关系,之后度假所有类目、API接口共用该映射关系)。 商家目的地地址使用示例1:东京,大阪。示例2:123,124。说明:商家目的地id(123,124)会根据映射关系自动转换成飞猪标准地址 +func (r *AlitripDaytoursProductUploadAPIRequest) SetToLocations(_toLocations string) error { + r._toLocations = _toLocations + r.Set("to_locations", _toLocations) + return nil +} + +// ToLocations Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetToLocations() string { + return r._toLocations +} +// TripDay Setter +// 新发布商品时必填。旅游天数 +func (r *AlitripDaytoursProductUploadAPIRequest) SetTripDay(_tripDay int64) error { + r._tripDay = _tripDay + r.Set("trip_day", _tripDay) + return nil +} + +// TripDay Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetTripDay() int64 { + return r._tripDay +} +// TripNight Setter +// 可选,旅游晚数,不传默认旅游天数-1 +func (r *AlitripDaytoursProductUploadAPIRequest) SetTripNight(_tripNight int64) error { + r._tripNight = _tripNight + r.Set("trip_night", _tripNight) + return nil +} + +// TripNight Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetTripNight() int64 { + return r._tripNight +} +// DescXml Setter +// PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),xml格式:DESC根标签必须有,每一个亮点(HIGHLIGHT)支持1个title子标签,1个txt子标签和多个img子标签。 +func (r *AlitripDaytoursProductUploadAPIRequest) SetDescXml(_descXml string) error { + r._descXml = _descXml + r.Set("desc_xml", _descXml) + return nil +} + +// DescXml Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetDescXml() string { + return r._descXml +} +// DescHtml Setter +// PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),Html格式。商家自定义Html格式描述。 +func (r *AlitripDaytoursProductUploadAPIRequest) SetDescHtml(_descHtml string) error { + r._descHtml = _descHtml + r.Set("desc_html", _descHtml) + return nil +} + +// DescHtml Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetDescHtml() string { + return r._descHtml +} +// WapDesc Setter +// 可选,手机端详情描述,xml格式,格式详见示例。 +func (r *AlitripDaytoursProductUploadAPIRequest) SetWapDesc(_wapDesc string) error { + r._wapDesc = _wapDesc + r.Set("wap_desc", _wapDesc) + return nil +} + +// WapDesc Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetWapDesc() string { + return r._wapDesc +} +// Itineraries Setter +// 特殊必填,(struct_itineraries与itineraries二者选填一个即可,如果两个都上传则以struct_itineraries为准)。itineraries数组的元素个数必须与旅游天数trip_day一致。行程描述,每一天行程都是xml格式(数组的每个元素对应每一天的行程): ITINERARY根标签必须有,每个活动(ACTIVITY)支持1个title子标签,1个txt子标签和多个img子标签。注:在SDK中多个元素间以英文逗号分隔 +func (r *AlitripDaytoursProductUploadAPIRequest) SetItineraries(_itineraries []string) error { + r._itineraries = _itineraries + r.Set("itineraries", _itineraries) + return nil +} + +// Itineraries Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetItineraries() []string { + return r._itineraries +} +// StructItineraries Setter +// 特殊必填,行程描述(struct_itineraries与itineraries二者选填一个即可,如果两个都上传则以struct_itineraries为准)。列表中每一个元素对应一天的行程,每天行程由多个活动组成。行程描述是可选项,如果上传了行程内容 则行程序号和行程活动信息必填。 +func (r *AlitripDaytoursProductUploadAPIRequest) SetStructItineraries(_structItineraries []StructItinerary) error { + r._structItineraries = _structItineraries + r.Set("struct_itineraries", _structItineraries) + return nil +} + +// StructItineraries Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetStructItineraries() []StructItinerary { + return r._structItineraries +} +// FeeInclude Setter +// 新发布商品时必填。费用包含。列表中每一个元素 对应一点描述,每点描述小于100个中文字符。注:在SDK中数组多个元素间以英文逗号分隔 +func (r *AlitripDaytoursProductUploadAPIRequest) SetFeeInclude(_feeInclude []string) error { + r._feeInclude = _feeInclude + r.Set("fee_include", _feeInclude) + return nil +} + +// FeeInclude Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetFeeInclude() []string { + return r._feeInclude +} +// FeeExclude Setter +// 新发布商品时必填。费用不含。列表中每一个元素 对应一点描述,每点描述小于100个中文字符。注:在SDK中数组多个元素间以英文逗号分隔 +func (r *AlitripDaytoursProductUploadAPIRequest) SetFeeExclude(_feeExclude []string) error { + r._feeExclude = _feeExclude + r.Set("fee_exclude", _feeExclude) + return nil +} + +// FeeExclude Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetFeeExclude() []string { + return r._feeExclude +} +// OrderInfo Setter +// 新发布商品时必填。预定须知。列表中每一个元素 对应一点描述,每点描述小于100个中文字符。注:在SDK中数组多个元素间以英文逗号分隔 +func (r *AlitripDaytoursProductUploadAPIRequest) SetOrderInfo(_orderInfo []string) error { + r._orderInfo = _orderInfo + r.Set("order_info", _orderInfo) + return nil +} + +// OrderInfo Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetOrderInfo() []string { + return r._orderInfo +} +// TouristServiceProvider Setter +// 真实的旅游服务提供商 +func (r *AlitripDaytoursProductUploadAPIRequest) SetTouristServiceProvider(_touristServiceProvider string) error { + r._touristServiceProvider = _touristServiceProvider + r.Set("tourist_service_provider", _touristServiceProvider) + return nil +} + +// TouristServiceProvider Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetTouristServiceProvider() string { + return r._touristServiceProvider +} +// RefundType Setter +// 可选,退改规则类型。0-平台标准退改规则,1-自定义退改规则,2-不支持退改(已废弃,勿用),7-新版自定义退改规则。不传默认为0 +func (r *AlitripDaytoursProductUploadAPIRequest) SetRefundType(_refundType int64) error { + r._refundType = _refundType + r.Set("refund_type", _refundType) + return nil +} + +// RefundType Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetRefundType() int64 { + return r._refundType +} +// RefundRegulationsJson Setter +// 特殊可选,退款规则(json数组格式)。自定义退改时需填写(与refund_regulations字段二选一)。示例中一共包含4条规则(3条平日规则,1条节假日规则),按照顺序每条规则含义如下:出行前5日及以上,买家违约收取总费用的50,卖家违约收取总费用的20;出行前4日至1日,买家违约收取总费用的80,卖家违约收取总费用的50;行程开始当天,买家违约收取总费用的100,卖家违约收取总费用的70;如果行程日期包含节假日,则节假日条款为买家违约收取总费用的100,卖家违约收取总费用的90 +func (r *AlitripDaytoursProductUploadAPIRequest) SetRefundRegulationsJson(_refundRegulationsJson string) error { + r._refundRegulationsJson = _refundRegulationsJson + r.Set("refund_regulations_json", _refundRegulationsJson) + return nil +} + +// RefundRegulationsJson Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetRefundRegulationsJson() string { + return r._refundRegulationsJson +} +// ReserveLimit Setter +// 可选,该商品提前预定时间限制。格式:1_18_00,含义:该商品必须提前1天预定,且在18:00之前完成预定 +func (r *AlitripDaytoursProductUploadAPIRequest) SetReserveLimit(_reserveLimit string) error { + r._reserveLimit = _reserveLimit + r.Set("reserve_limit", _reserveLimit) + return nil +} + +// ReserveLimit Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetReserveLimit() string { + return r._reserveLimit +} +// ConfirmType Setter +// 可选,资源确认类型。1-即时确认,2-二次确认。不传默认1 +func (r *AlitripDaytoursProductUploadAPIRequest) SetConfirmType(_confirmType int64) error { + r._confirmType = _confirmType + r.Set("confirm_type", _confirmType) + return nil +} + +// ConfirmType Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetConfirmType() int64 { + return r._confirmType +} +// ConfirmTime Setter +// 特殊可选(confirm_type为2时必填),资源确认时长,当confirm_type=2时必填。1:2个工作小时内确认,2:6个工作小时内确认,3:9个工作小时内确认,4:18个工作小时内确认 +func (r *AlitripDaytoursProductUploadAPIRequest) SetConfirmTime(_confirmTime int64) error { + r._confirmTime = _confirmTime + r.Set("confirm_time", _confirmTime) + return nil +} + +// ConfirmTime Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetConfirmTime() int64 { + return r._confirmTime +} +// SubStock Setter +// 可选,减库存方式。0-拍下减库存。1-付款减库存。不传默认为0 +func (r *AlitripDaytoursProductUploadAPIRequest) SetSubStock(_subStock int64) error { + r._subStock = _subStock + r.Set("sub_stock", _subStock) + return nil +} + +// SubStock Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetSubStock() int64 { + return r._subStock +} +// TravellerTemplateId Setter +// 可选,出行人模板id。模板id需要商家以店铺账号身份登录飞猪商家工作台,从卖家工具->出行人管理中获取。注意:如果传0则代表设置为不需要出行人模板或使用飞猪平台默认的类目模板。 +func (r *AlitripDaytoursProductUploadAPIRequest) SetTravellerTemplateId(_travellerTemplateId int64) error { + r._travellerTemplateId = _travellerTemplateId + r.Set("traveller_template_id", _travellerTemplateId) + return nil +} + +// TravellerTemplateId Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetTravellerTemplateId() int64 { + return r._travellerTemplateId +} +// ItemCustomTag Setter +// 可选,商家自定义标签(最多4个字,超长则自动截断,会进行违禁词校验) +func (r *AlitripDaytoursProductUploadAPIRequest) SetItemCustomTag(_itemCustomTag string) error { + r._itemCustomTag = _itemCustomTag + r.Set("item_custom_tag", _itemCustomTag) + return nil +} + +// ItemCustomTag Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetItemCustomTag() string { + return r._itemCustomTag +} +// HighLights Setter +// 一日游 产品亮点 +func (r *AlitripDaytoursProductUploadAPIRequest) SetHighLights(_highLights []ProductHighLights) error { + r._highLights = _highLights + r.Set("high_lights", _highLights) + return nil +} + +// HighLights Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetHighLights() []ProductHighLights { + return r._highLights +} +// BusinessLicense Setter +// 必填,营业执照图片路径。图片链接支持外链图片(即商家系统中图片链接,必须外网可访问,且格式为jpg或jpeg,大小在3M以内),或者用户淘宝空间内的图片链接。对于外链图片,将自动下载并上传用户淘宝图片空间。 +func (r *AlitripDaytoursProductUploadAPIRequest) SetBusinessLicense(_businessLicense string) error { + r._businessLicense = _businessLicense + r.Set("business_license", _businessLicense) + return nil +} + +// BusinessLicense Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetBusinessLicense() string { + return r._businessLicense +} +// SellerCids Setter +// 关联商品与店铺类目 结构:"cid1,cid2,...,"。如何获取卖家店铺类目具体参见:http://open.taobao.com/doc2/apiDetail.htm?apiId=65 +func (r *AlitripDaytoursProductUploadAPIRequest) SetSellerCids(_sellerCids []string) error { + r._sellerCids = _sellerCids + r.Set("seller_cids", _sellerCids) + return nil +} + +// SellerCids Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetSellerCids() []string { + return r._sellerCids +} +// SecondKill Setter +// 商品秒杀,商品秒杀三个值:可选类型web_only(只能通过web网络秒杀),wap_only(只能通过wap网络秒杀),web_and_wap(既能通过web秒杀也能通过wap秒杀) +func (r *AlitripDaytoursProductUploadAPIRequest) SetSecondKill(_secondKill string) error { + r._secondKill = _secondKill + r.Set("second_kill", _secondKill) + return nil +} + +// SecondKill Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetSecondKill() string { + return r._secondKill +} +// HasDiscount Setter +// 是否支持会员打折。可选值:true,false;默认值:false(不打折)。不传的话默认为false +func (r *AlitripDaytoursProductUploadAPIRequest) SetHasDiscount(_hasDiscount bool) error { + r._hasDiscount = _hasDiscount + r.Set("has_discount", _hasDiscount) + return nil +} + +// HasDiscount Getter +func (r AlitripDaytoursProductUploadAPIRequest) GetHasDiscount() bool { + return r._hasDiscount +} diff --git a/model/travel/AlitripDaytoursProductUploadAPIResponse.go b/model/travel/AlitripDaytoursProductUploadAPIResponse.go new file mode 100644 index 0000000000..bfa5082823 --- /dev/null +++ b/model/travel/AlitripDaytoursProductUploadAPIResponse.go @@ -0,0 +1,30 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +境外一日游/多日游 产品维护接口 API返回值 +alitrip.daytours.product.upload + +境外一日游/多日游 产品维护接口。 +接口同时支持新商品发布 和 现有商品编辑: +1)只上传out_product_id的情况:如果out_product_id已经关联过某个商品id,则认为是编辑现有商品,否则认为是新发布一个商品。 +2)同时上传out_product_id和item_id,则认为是将out_product_id与item_id进行关联,同时对该商品进行编辑。 +*/ +type AlitripDaytoursProductUploadAPIResponse struct { + model.CommonResponse + AlitripDaytoursProductUploadAPIResponseModel +} + +// 境外一日游/多日游 产品维护接口 成功返回结果 +type AlitripDaytoursProductUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_daytours_product_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品维护结果 + FirstResult *TopTravelItem `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/travel/AlitripDaytoursProductUploadResponse.go b/model/travel/AlitripDaytoursProductUploadResponse.go deleted file mode 100644 index cb92a6ba5f..0000000000 --- a/model/travel/AlitripDaytoursProductUploadResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -境外一日游/多日游 产品维护接口 API返回值 -alitrip.daytours.product.upload - -境外一日游/多日游 产品维护接口。 -接口同时支持新商品发布 和 现有商品编辑: -1)只上传out_product_id的情况:如果out_product_id已经关联过某个商品id,则认为是编辑现有商品,否则认为是新发布一个商品。 -2)同时上传out_product_id和item_id,则认为是将out_product_id与item_id进行关联,同时对该商品进行编辑。 -*/ -type AlitripDaytoursProductUploadAPIResponse struct { - model.CommonResponse - AlitripDaytoursProductUploadResponse -} - -// 境外一日游/多日游 产品维护接口 成功返回结果 -type AlitripDaytoursProductUploadResponse struct { - XMLName xml.Name `xml:"alitrip_daytours_product_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品维护结果 - FirstResult *TopTravelItem `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/travel/AlitripFreetourProductUploadAPIRequest.go b/model/travel/AlitripFreetourProductUploadAPIRequest.go new file mode 100644 index 0000000000..123016368a --- /dev/null +++ b/model/travel/AlitripFreetourProductUploadAPIRequest.go @@ -0,0 +1,433 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +自由行商品发布及编辑接口 API请求 +alitrip.freetour.product.upload + +自由行 产品维护接口。 +接口同时支持新商品发布 和 现有商品编辑: +1)只上传out_product_id的情况:如果out_product_id已经关联过某个商品id,则认为是编辑现有商品,否则认为是新发布一个商品。 +2)同时上传out_product_id和item_id,则认为是将out_product_id与item_id进行关联,同时对该商品进行编辑。 +*/ +type AlitripFreetourProductUploadAPIRequest struct { + model.Params + // 新发布商品时必填。去程交通。1-飞机,2-火车,3-汽,4-船,100-其他 + _goTrafficType int64 + // 套餐信息,数组类型,支持上传多个套餐信息 + _freeTourPackageInfo []FreeTourPackageInfo + // 新发布商品时必填。旅游天数 + _tripDay int64 + // 可选,减库存方式。0-拍下减库存。1-付款减库存。不传默认为0 + _subStock int64 + // 可选,手机端详情描述,xml格式,格式详见示例。 + _wapDesc string + // 新发布商品时必填。回程交通。1-飞机,2-火车,3-汽,4-船,100-其他 + _backTrafficType int64 + // PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),xml格式:DESC根标签必须有,每一个亮点(HIGHLIGHT)支持1个title子标签,1个txt子标签和多个img子标签。 + _descXml string + // 可选,资源确认时长,当confirm_type=2时必填。1:2个工作小时内确认,2:6个工作小时内确认,3:9个工作小时内确认,4:18个工作小时内确认 + _confirmTime int64 + // 新发布商品时必填。商品标题,30个中文字符以内 + _title string + // 可选,资源确认类型。1-即时确认,2-二次确认。不传默认1 + _confirmType int64 + // 可选,商家自定义标签(最多4个字,超长则自动截断,会进行违禁词校验) + _itemCustomTag string + // 商家自定义商品编码。注:商品基本信息维护、价格库存维护,商品查询都以该编码为主键。 + _outProductId string + // 新发布商品时必填。目的地,多个目的地用英文逗号分隔。地址可以使用飞猪标准地址名称,也可以使用商家系统中目的地地址(支持商家目的地id和商家目的地名称)。如果需要使用商家目的地地址,必须在目的地关联页(https://sell.alitrip.com/icenter/main.htm#/widgets/api-adaptor?_k=n61ii0)配置映射关系(一次性批量上传建立映射关系,之后度假所有类目、API接口共用该映射关系)。 商家目的地地址使用示例1:东京,大阪。示例2:123,124。说明:商家目的地id(123,124)会根据映射关系自动转换成飞猪标准地址 + _toLocations string + // 可选,旅游晚数,不传默认旅游天数-1 + _tripNight int64 + // 新发布商品时必填。商品图片路径。最多支持5张,第一张为主图,必填,其余四张可选填。图片链接支持外链图片(即商家系统中图片链接,必须外网可访问,且格式为jpg或jpeg,大小在500k以内),或者用户淘宝空间内的图片链接。对于外链图片,将自动下载并上传用户淘宝图片空间,上传失败的外链图片将自动忽略不计。。注:在SDK中数组多个元素间以英文逗号分隔 + _picUrls []string + // 可选,淘系商品id,用于将out_product_id关联到已经存在的商品,并且修改该商品外部商家编码为out_product_id。 + _itemId int64 + // 可选,该商品提前预定时间限制。格式:1_18_00,含义:该商品必须提前1天预定,且在18:00之前完成预定 + _reserveLimit string + // 可选,退改规则类型。0-平台标准退改规则,1-自定义退改规则,2-不支持退改(已废弃,勿用),7-新版自定义退改规则。不传默认为0 + _refundType int64 + // PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),Html格式。商家自定义Html格式描述。 + _descHtml string + // 新发布商品时必填。出发地,多个出发地用英文逗号分隔。使用说明同“目的地” + _fromLocations string + // 可选,商品亮点,最多支持4个亮点。注:在SDK中数组多个元素间以英文逗号分隔 + _subTitles []string + // 可选,出行人模板id。模板id需要商家以店铺账号身份登录飞猪商家工作台,从卖家工具->出行人管理中获取。注意:如果传0则代表设置为不需要出行人模板或使用飞猪平台默认的类目模板。 + _travellerTemplateId int64 + // 新发布商品时必填。是否出境游,0-不是,1-是。 + _isOverseasTour int64 + // 特殊可选,退款规则(json数组格式)。自定义退改时需填写(与refund_regulations字段二选一)。示例中一共包含4条规则(3条平日规则,1条节假日规则),按照顺序每条规则含义如下:出行前5日及以上,买家违约收取总费用的50,卖家违约收取总费用的20;出行前4日至1日,买家违约收取总费用的80,卖家违约收取总费用的50;行程开始当天,买家违约收取总费用的100,卖家违约收取总费用的70;如果行程日期包含节假日,则节假日条款为买家违约收取总费用的100,卖家违约收取总费用的90 + _refundRegulationsJson string + // 0:使用上传的套餐信息(free_tour_package_info)覆盖商品上原有的套餐信息(此时free_tour_package_info中设置的packageOperation无效);1:根据套餐信息(free_tour_package_info)中的packageOperation和outProductId增加,修改,删除指定套餐,====默认值为0=== + _packageOperation int64 + // 关联商品与店铺类目 结构:"cid1,cid2,...,"。如何获取卖家店铺类目具体参见:http://open.taobao.com/doc2/apiDetail.htm?apiId=65 + _sellerCids []string + // 商品秒杀,商品秒杀三个值:可选类型web_only(只能通过web网络秒杀),wap_only(只能通过wap网络秒杀),web_and_wap(既能通过web秒杀也能通过wap秒杀) + _secondKill string + // 是否支持会员打折。可选值:true,false;默认值:false(不打折)。不传的话默认为false + _hasDiscount bool +} + +// 初始化AlitripFreetourProductUploadAPIRequest对象 +func NewAlitripFreetourProductUploadRequest() *AlitripFreetourProductUploadAPIRequest{ + return &AlitripFreetourProductUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripFreetourProductUploadAPIRequest) GetApiMethodName() string { + return "alitrip.freetour.product.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripFreetourProductUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GoTrafficType Setter +// 新发布商品时必填。去程交通。1-飞机,2-火车,3-汽,4-船,100-其他 +func (r *AlitripFreetourProductUploadAPIRequest) SetGoTrafficType(_goTrafficType int64) error { + r._goTrafficType = _goTrafficType + r.Set("go_traffic_type", _goTrafficType) + return nil +} + +// GoTrafficType Getter +func (r AlitripFreetourProductUploadAPIRequest) GetGoTrafficType() int64 { + return r._goTrafficType +} +// FreeTourPackageInfo Setter +// 套餐信息,数组类型,支持上传多个套餐信息 +func (r *AlitripFreetourProductUploadAPIRequest) SetFreeTourPackageInfo(_freeTourPackageInfo []FreeTourPackageInfo) error { + r._freeTourPackageInfo = _freeTourPackageInfo + r.Set("free_tour_package_info", _freeTourPackageInfo) + return nil +} + +// FreeTourPackageInfo Getter +func (r AlitripFreetourProductUploadAPIRequest) GetFreeTourPackageInfo() []FreeTourPackageInfo { + return r._freeTourPackageInfo +} +// TripDay Setter +// 新发布商品时必填。旅游天数 +func (r *AlitripFreetourProductUploadAPIRequest) SetTripDay(_tripDay int64) error { + r._tripDay = _tripDay + r.Set("trip_day", _tripDay) + return nil +} + +// TripDay Getter +func (r AlitripFreetourProductUploadAPIRequest) GetTripDay() int64 { + return r._tripDay +} +// SubStock Setter +// 可选,减库存方式。0-拍下减库存。1-付款减库存。不传默认为0 +func (r *AlitripFreetourProductUploadAPIRequest) SetSubStock(_subStock int64) error { + r._subStock = _subStock + r.Set("sub_stock", _subStock) + return nil +} + +// SubStock Getter +func (r AlitripFreetourProductUploadAPIRequest) GetSubStock() int64 { + return r._subStock +} +// WapDesc Setter +// 可选,手机端详情描述,xml格式,格式详见示例。 +func (r *AlitripFreetourProductUploadAPIRequest) SetWapDesc(_wapDesc string) error { + r._wapDesc = _wapDesc + r.Set("wap_desc", _wapDesc) + return nil +} + +// WapDesc Getter +func (r AlitripFreetourProductUploadAPIRequest) GetWapDesc() string { + return r._wapDesc +} +// BackTrafficType Setter +// 新发布商品时必填。回程交通。1-飞机,2-火车,3-汽,4-船,100-其他 +func (r *AlitripFreetourProductUploadAPIRequest) SetBackTrafficType(_backTrafficType int64) error { + r._backTrafficType = _backTrafficType + r.Set("back_traffic_type", _backTrafficType) + return nil +} + +// BackTrafficType Getter +func (r AlitripFreetourProductUploadAPIRequest) GetBackTrafficType() int64 { + return r._backTrafficType +} +// DescXml Setter +// PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),xml格式:DESC根标签必须有,每一个亮点(HIGHLIGHT)支持1个title子标签,1个txt子标签和多个img子标签。 +func (r *AlitripFreetourProductUploadAPIRequest) SetDescXml(_descXml string) error { + r._descXml = _descXml + r.Set("desc_xml", _descXml) + return nil +} + +// DescXml Getter +func (r AlitripFreetourProductUploadAPIRequest) GetDescXml() string { + return r._descXml +} +// ConfirmTime Setter +// 可选,资源确认时长,当confirm_type=2时必填。1:2个工作小时内确认,2:6个工作小时内确认,3:9个工作小时内确认,4:18个工作小时内确认 +func (r *AlitripFreetourProductUploadAPIRequest) SetConfirmTime(_confirmTime int64) error { + r._confirmTime = _confirmTime + r.Set("confirm_time", _confirmTime) + return nil +} + +// ConfirmTime Getter +func (r AlitripFreetourProductUploadAPIRequest) GetConfirmTime() int64 { + return r._confirmTime +} +// Title Setter +// 新发布商品时必填。商品标题,30个中文字符以内 +func (r *AlitripFreetourProductUploadAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r AlitripFreetourProductUploadAPIRequest) GetTitle() string { + return r._title +} +// ConfirmType Setter +// 可选,资源确认类型。1-即时确认,2-二次确认。不传默认1 +func (r *AlitripFreetourProductUploadAPIRequest) SetConfirmType(_confirmType int64) error { + r._confirmType = _confirmType + r.Set("confirm_type", _confirmType) + return nil +} + +// ConfirmType Getter +func (r AlitripFreetourProductUploadAPIRequest) GetConfirmType() int64 { + return r._confirmType +} +// ItemCustomTag Setter +// 可选,商家自定义标签(最多4个字,超长则自动截断,会进行违禁词校验) +func (r *AlitripFreetourProductUploadAPIRequest) SetItemCustomTag(_itemCustomTag string) error { + r._itemCustomTag = _itemCustomTag + r.Set("item_custom_tag", _itemCustomTag) + return nil +} + +// ItemCustomTag Getter +func (r AlitripFreetourProductUploadAPIRequest) GetItemCustomTag() string { + return r._itemCustomTag +} +// OutProductId Setter +// 商家自定义商品编码。注:商品基本信息维护、价格库存维护,商品查询都以该编码为主键。 +func (r *AlitripFreetourProductUploadAPIRequest) SetOutProductId(_outProductId string) error { + r._outProductId = _outProductId + r.Set("out_product_id", _outProductId) + return nil +} + +// OutProductId Getter +func (r AlitripFreetourProductUploadAPIRequest) GetOutProductId() string { + return r._outProductId +} +// ToLocations Setter +// 新发布商品时必填。目的地,多个目的地用英文逗号分隔。地址可以使用飞猪标准地址名称,也可以使用商家系统中目的地地址(支持商家目的地id和商家目的地名称)。如果需要使用商家目的地地址,必须在目的地关联页(https://sell.alitrip.com/icenter/main.htm#/widgets/api-adaptor?_k=n61ii0)配置映射关系(一次性批量上传建立映射关系,之后度假所有类目、API接口共用该映射关系)。 商家目的地地址使用示例1:东京,大阪。示例2:123,124。说明:商家目的地id(123,124)会根据映射关系自动转换成飞猪标准地址 +func (r *AlitripFreetourProductUploadAPIRequest) SetToLocations(_toLocations string) error { + r._toLocations = _toLocations + r.Set("to_locations", _toLocations) + return nil +} + +// ToLocations Getter +func (r AlitripFreetourProductUploadAPIRequest) GetToLocations() string { + return r._toLocations +} +// TripNight Setter +// 可选,旅游晚数,不传默认旅游天数-1 +func (r *AlitripFreetourProductUploadAPIRequest) SetTripNight(_tripNight int64) error { + r._tripNight = _tripNight + r.Set("trip_night", _tripNight) + return nil +} + +// TripNight Getter +func (r AlitripFreetourProductUploadAPIRequest) GetTripNight() int64 { + return r._tripNight +} +// PicUrls Setter +// 新发布商品时必填。商品图片路径。最多支持5张,第一张为主图,必填,其余四张可选填。图片链接支持外链图片(即商家系统中图片链接,必须外网可访问,且格式为jpg或jpeg,大小在500k以内),或者用户淘宝空间内的图片链接。对于外链图片,将自动下载并上传用户淘宝图片空间,上传失败的外链图片将自动忽略不计。。注:在SDK中数组多个元素间以英文逗号分隔 +func (r *AlitripFreetourProductUploadAPIRequest) SetPicUrls(_picUrls []string) error { + r._picUrls = _picUrls + r.Set("pic_urls", _picUrls) + return nil +} + +// PicUrls Getter +func (r AlitripFreetourProductUploadAPIRequest) GetPicUrls() []string { + return r._picUrls +} +// ItemId Setter +// 可选,淘系商品id,用于将out_product_id关联到已经存在的商品,并且修改该商品外部商家编码为out_product_id。 +func (r *AlitripFreetourProductUploadAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlitripFreetourProductUploadAPIRequest) GetItemId() int64 { + return r._itemId +} +// ReserveLimit Setter +// 可选,该商品提前预定时间限制。格式:1_18_00,含义:该商品必须提前1天预定,且在18:00之前完成预定 +func (r *AlitripFreetourProductUploadAPIRequest) SetReserveLimit(_reserveLimit string) error { + r._reserveLimit = _reserveLimit + r.Set("reserve_limit", _reserveLimit) + return nil +} + +// ReserveLimit Getter +func (r AlitripFreetourProductUploadAPIRequest) GetReserveLimit() string { + return r._reserveLimit +} +// RefundType Setter +// 可选,退改规则类型。0-平台标准退改规则,1-自定义退改规则,2-不支持退改(已废弃,勿用),7-新版自定义退改规则。不传默认为0 +func (r *AlitripFreetourProductUploadAPIRequest) SetRefundType(_refundType int64) error { + r._refundType = _refundType + r.Set("refund_type", _refundType) + return nil +} + +// RefundType Getter +func (r AlitripFreetourProductUploadAPIRequest) GetRefundType() int64 { + return r._refundType +} +// DescHtml Setter +// PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),Html格式。商家自定义Html格式描述。 +func (r *AlitripFreetourProductUploadAPIRequest) SetDescHtml(_descHtml string) error { + r._descHtml = _descHtml + r.Set("desc_html", _descHtml) + return nil +} + +// DescHtml Getter +func (r AlitripFreetourProductUploadAPIRequest) GetDescHtml() string { + return r._descHtml +} +// FromLocations Setter +// 新发布商品时必填。出发地,多个出发地用英文逗号分隔。使用说明同“目的地” +func (r *AlitripFreetourProductUploadAPIRequest) SetFromLocations(_fromLocations string) error { + r._fromLocations = _fromLocations + r.Set("from_locations", _fromLocations) + return nil +} + +// FromLocations Getter +func (r AlitripFreetourProductUploadAPIRequest) GetFromLocations() string { + return r._fromLocations +} +// SubTitles Setter +// 可选,商品亮点,最多支持4个亮点。注:在SDK中数组多个元素间以英文逗号分隔 +func (r *AlitripFreetourProductUploadAPIRequest) SetSubTitles(_subTitles []string) error { + r._subTitles = _subTitles + r.Set("sub_titles", _subTitles) + return nil +} + +// SubTitles Getter +func (r AlitripFreetourProductUploadAPIRequest) GetSubTitles() []string { + return r._subTitles +} +// TravellerTemplateId Setter +// 可选,出行人模板id。模板id需要商家以店铺账号身份登录飞猪商家工作台,从卖家工具->出行人管理中获取。注意:如果传0则代表设置为不需要出行人模板或使用飞猪平台默认的类目模板。 +func (r *AlitripFreetourProductUploadAPIRequest) SetTravellerTemplateId(_travellerTemplateId int64) error { + r._travellerTemplateId = _travellerTemplateId + r.Set("traveller_template_id", _travellerTemplateId) + return nil +} + +// TravellerTemplateId Getter +func (r AlitripFreetourProductUploadAPIRequest) GetTravellerTemplateId() int64 { + return r._travellerTemplateId +} +// IsOverseasTour Setter +// 新发布商品时必填。是否出境游,0-不是,1-是。 +func (r *AlitripFreetourProductUploadAPIRequest) SetIsOverseasTour(_isOverseasTour int64) error { + r._isOverseasTour = _isOverseasTour + r.Set("is_overseas_tour", _isOverseasTour) + return nil +} + +// IsOverseasTour Getter +func (r AlitripFreetourProductUploadAPIRequest) GetIsOverseasTour() int64 { + return r._isOverseasTour +} +// RefundRegulationsJson Setter +// 特殊可选,退款规则(json数组格式)。自定义退改时需填写(与refund_regulations字段二选一)。示例中一共包含4条规则(3条平日规则,1条节假日规则),按照顺序每条规则含义如下:出行前5日及以上,买家违约收取总费用的50,卖家违约收取总费用的20;出行前4日至1日,买家违约收取总费用的80,卖家违约收取总费用的50;行程开始当天,买家违约收取总费用的100,卖家违约收取总费用的70;如果行程日期包含节假日,则节假日条款为买家违约收取总费用的100,卖家违约收取总费用的90 +func (r *AlitripFreetourProductUploadAPIRequest) SetRefundRegulationsJson(_refundRegulationsJson string) error { + r._refundRegulationsJson = _refundRegulationsJson + r.Set("refund_regulations_json", _refundRegulationsJson) + return nil +} + +// RefundRegulationsJson Getter +func (r AlitripFreetourProductUploadAPIRequest) GetRefundRegulationsJson() string { + return r._refundRegulationsJson +} +// PackageOperation Setter +// 0:使用上传的套餐信息(free_tour_package_info)覆盖商品上原有的套餐信息(此时free_tour_package_info中设置的packageOperation无效);1:根据套餐信息(free_tour_package_info)中的packageOperation和outProductId增加,修改,删除指定套餐,====默认值为0=== +func (r *AlitripFreetourProductUploadAPIRequest) SetPackageOperation(_packageOperation int64) error { + r._packageOperation = _packageOperation + r.Set("package_operation", _packageOperation) + return nil +} + +// PackageOperation Getter +func (r AlitripFreetourProductUploadAPIRequest) GetPackageOperation() int64 { + return r._packageOperation +} +// SellerCids Setter +// 关联商品与店铺类目 结构:"cid1,cid2,...,"。如何获取卖家店铺类目具体参见:http://open.taobao.com/doc2/apiDetail.htm?apiId=65 +func (r *AlitripFreetourProductUploadAPIRequest) SetSellerCids(_sellerCids []string) error { + r._sellerCids = _sellerCids + r.Set("seller_cids", _sellerCids) + return nil +} + +// SellerCids Getter +func (r AlitripFreetourProductUploadAPIRequest) GetSellerCids() []string { + return r._sellerCids +} +// SecondKill Setter +// 商品秒杀,商品秒杀三个值:可选类型web_only(只能通过web网络秒杀),wap_only(只能通过wap网络秒杀),web_and_wap(既能通过web秒杀也能通过wap秒杀) +func (r *AlitripFreetourProductUploadAPIRequest) SetSecondKill(_secondKill string) error { + r._secondKill = _secondKill + r.Set("second_kill", _secondKill) + return nil +} + +// SecondKill Getter +func (r AlitripFreetourProductUploadAPIRequest) GetSecondKill() string { + return r._secondKill +} +// HasDiscount Setter +// 是否支持会员打折。可选值:true,false;默认值:false(不打折)。不传的话默认为false +func (r *AlitripFreetourProductUploadAPIRequest) SetHasDiscount(_hasDiscount bool) error { + r._hasDiscount = _hasDiscount + r.Set("has_discount", _hasDiscount) + return nil +} + +// HasDiscount Getter +func (r AlitripFreetourProductUploadAPIRequest) GetHasDiscount() bool { + return r._hasDiscount +} diff --git a/model/travel/AlitripFreetourProductUploadAPIResponse.go b/model/travel/AlitripFreetourProductUploadAPIResponse.go new file mode 100644 index 0000000000..e51c7a2a00 --- /dev/null +++ b/model/travel/AlitripFreetourProductUploadAPIResponse.go @@ -0,0 +1,30 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +自由行商品发布及编辑接口 API返回值 +alitrip.freetour.product.upload + +自由行 产品维护接口。 +接口同时支持新商品发布 和 现有商品编辑: +1)只上传out_product_id的情况:如果out_product_id已经关联过某个商品id,则认为是编辑现有商品,否则认为是新发布一个商品。 +2)同时上传out_product_id和item_id,则认为是将out_product_id与item_id进行关联,同时对该商品进行编辑。 +*/ +type AlitripFreetourProductUploadAPIResponse struct { + model.CommonResponse + AlitripFreetourProductUploadAPIResponseModel +} + +// 自由行商品发布及编辑接口 成功返回结果 +type AlitripFreetourProductUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_freetour_product_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // firstResult + FirstResult *TopTravelItem `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/travel/AlitripFreetourProductUploadResponse.go b/model/travel/AlitripFreetourProductUploadResponse.go deleted file mode 100644 index b8e18d4809..0000000000 --- a/model/travel/AlitripFreetourProductUploadResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -自由行商品发布及编辑接口 API返回值 -alitrip.freetour.product.upload - -自由行 产品维护接口。 -接口同时支持新商品发布 和 现有商品编辑: -1)只上传out_product_id的情况:如果out_product_id已经关联过某个商品id,则认为是编辑现有商品,否则认为是新发布一个商品。 -2)同时上传out_product_id和item_id,则认为是将out_product_id与item_id进行关联,同时对该商品进行编辑。 -*/ -type AlitripFreetourProductUploadAPIResponse struct { - model.CommonResponse - AlitripFreetourProductUploadResponse -} - -// 自由行商品发布及编辑接口 成功返回结果 -type AlitripFreetourProductUploadResponse struct { - XMLName xml.Name `xml:"alitrip_freetour_product_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // firstResult - FirstResult *TopTravelItem `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/travel/AlitripGrouptourProductUploadAPIRequest.go b/model/travel/AlitripGrouptourProductUploadAPIRequest.go new file mode 100644 index 0000000000..9fcf8d1104 --- /dev/null +++ b/model/travel/AlitripGrouptourProductUploadAPIRequest.go @@ -0,0 +1,472 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新版跟团游商品维护接口 API请求 +alitrip.grouptour.product.upload + +新版跟团游商品维护接口 +*/ +type AlitripGrouptourProductUploadAPIRequest struct { + model.Params + // 新发布商品时必填。去程交通。1-飞机,2-火车,3-汽,4-船,100-其他 + _goTrafficType int64 + // 新发布商品时必填。旅游天数。已废弃,以套餐维度行程天数为准。 + _tripDay int64 + // 可选,手机端详情描述,xml格式,格式详见示例。 + _wapDesc string + // 可选,减库存方式。0-拍下减库存。1-付款减库存。不传默认为0 + _subStock int64 + // 新发布商品时必填。回程交通。1-飞机,2-火车,3-汽,4-船,100-其他 + _backTrafficType int64 + // PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),xml格式:DESC根标签必须有,每一个亮点(HIGHLIGHT)支持1个title子标签,1个txt子标签和多个img子标签。 + _descXml string + // 可选,资源确认时长,当confirm_type=2时必填。1:2个工作小时内确认,2:6个工作小时内确认,3:9个工作小时内确认,4:18个工作小时内确认 + _confirmTime int64 + // 新发布商品时必填。商品标题,30个中文字符以内 + _title string + // 参团线路类型。0 -目的地参团,1-为出发地参团 + _routeType int64 + // 套餐信息,数组类型,支持上传多个套餐信息 + _groupTourPackageInfo []GroupTourPackageInfo + // 可选,资源确认类型。1-即时确认,2-二次确认。不传默认1 + _confirmType int64 + // 可选,商家自定义标签(最多4个字,超长则自动截断,会进行违禁词校验) + _itemCustomTag string + // 必填,商家自定义商品编码。注:商品基本信息维护、价格库存维护,商品查询都以该编码为主键。 + _outProductId string + // 可选,旅游晚数,不传默认旅游天数-1。已废弃,以套餐维度行程晚数为准。 + _tripNight int64 + // 新发布商品时必填。目的地,多个目的地用英文逗号分隔。地址可以使用飞猪标准地址名称,也可以使用商家系统中目的地地址(支持商家目的地id和商家目的地名称)。如果需要使用商家目的地地址,必须在目的地关联页(https://sell.alitrip.com/icenter/main.htm#/widgets/api-adaptor?_k=n61ii0)配置映射关系(一次性批量上传建立映射关系,之后度假所有类目、API接口共用该映射关系)。 商家目的地地址使用示例1:东京,大阪。示例2:123,124。说明:商家目的地id(123,124)会根据映射关系自动转换成飞猪标准地址 + _toLocations string + // 新发布商品时必填。商品图片路径。最多支持5张,第一张为主图,必填,其余四张可选填。图片链接支持外链图片(即商家系统中图片链接,必须外网可访问,且格式为jpg或jpeg,大小在500k以内),或者用户淘宝空间内的图片链接。对于外链图片,将自动下载并上传用户淘宝图片空间,上传失败的外链图片将自动忽略不计。。注:在SDK中数组多个元素间以英文逗号分隔 + _picUrls []string + // 可选,该商品提前预定时间限制。格式:1_18_00,含义:该商品必须提前1天预定,且在18:00之前完成预定 + _reserveLimit string + // 可选,淘系商品id,用于将out_product_id关联到已经存在的商品,并且修改该商品外部商家编码为out_product_id。 + _itemId int64 + // 可选,退改规则类型。0-平台标准退改规则,1-自定义退改规则,2-不支持退改(已废弃,勿用),7-新版自定义退改规则。不传默认为0 + _refundType int64 + // 可选,商品亮点,最多支持4个亮点。注:在SDK中数组多个元素间以英文逗号分隔 + _subTitles []string + // 新发布商品时必填。出发地,多个出发地用英文逗号分隔。使用说明同“目的地” + _fromLocations string + // PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),Html格式。商家自定义Html格式描述。 + _descHtml string + // 可选,出行人模板id。模板id需要商家以店铺账号身份登录飞猪商家工作台,从卖家工具->出行人管理中获取。注意:如果传0则代表设置为不需要出行人模板或使用飞猪平台默认的类目模板。 + _travellerTemplateId int64 + // 新发布商品时必填。是否出境游,0-不是,1-是。 + _isOverseasTour int64 + // 是否纯玩团。0-纯玩团,1-含购物团。新发布商品时不传默认为“含购物团” + _purePlay int64 + // 特殊可选,退款规则(json数组格式)。自定义退改时需填写(与refund_regulations字段二选一)。示例中一共包含4条规则(3条平日规则,1条节假日规则),按照顺序每条规则含义如下:出行前5日及以上,买家违约收取总费用的50,卖家违约收取总费用的20;出行前4日至1日,买家违约收取总费用的80,卖家违约收取总费用的50;行程开始当天,买家违约收取总费用的100,卖家违约收取总费用的70;如果行程日期包含节假日,则节假日条款为买家违约收取总费用的100,卖家违约收取总费用的90 + _refundRegulationsJson string + // 0:使用上传的套餐信息(group_tour_package_info)覆盖商品上原有的套餐信息(此时group_tour_package_info中设置的packageOperation无效);1:根据套餐信息(group_tour_package_info)中的packageOperation和outProductId增加,修改,删除指定套餐,====默认值为0=== + _packageOperation int64 + // 必填,线路的“细分类型”属性:1-普通跟团游、2-半自由行、3-私家团;不填默认值设置为"1-普通跟团游"。 + _groupTourType int64 + // 关联商品与店铺类目 结构:"cid1,cid2,...,"。如何获取卖家店铺类目具体参见:http://open.taobao.com/doc2/apiDetail.htm?apiId=65 + _sellerCids []string + // 商品秒杀,商品秒杀三个值:可选类型web_only(只能通过web网络秒杀),wap_only(只能通过wap网络秒杀),web_and_wap(既能通过web秒杀也能通过wap秒杀) + _secondKill string + // 是否支持会员打折。可选值:true,false;默认值:false(不打折)。不传的话默认为false + _hasDiscount bool +} + +// 初始化AlitripGrouptourProductUploadAPIRequest对象 +func NewAlitripGrouptourProductUploadRequest() *AlitripGrouptourProductUploadAPIRequest{ + return &AlitripGrouptourProductUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripGrouptourProductUploadAPIRequest) GetApiMethodName() string { + return "alitrip.grouptour.product.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripGrouptourProductUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GoTrafficType Setter +// 新发布商品时必填。去程交通。1-飞机,2-火车,3-汽,4-船,100-其他 +func (r *AlitripGrouptourProductUploadAPIRequest) SetGoTrafficType(_goTrafficType int64) error { + r._goTrafficType = _goTrafficType + r.Set("go_traffic_type", _goTrafficType) + return nil +} + +// GoTrafficType Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetGoTrafficType() int64 { + return r._goTrafficType +} +// TripDay Setter +// 新发布商品时必填。旅游天数。已废弃,以套餐维度行程天数为准。 +func (r *AlitripGrouptourProductUploadAPIRequest) SetTripDay(_tripDay int64) error { + r._tripDay = _tripDay + r.Set("trip_day", _tripDay) + return nil +} + +// TripDay Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetTripDay() int64 { + return r._tripDay +} +// WapDesc Setter +// 可选,手机端详情描述,xml格式,格式详见示例。 +func (r *AlitripGrouptourProductUploadAPIRequest) SetWapDesc(_wapDesc string) error { + r._wapDesc = _wapDesc + r.Set("wap_desc", _wapDesc) + return nil +} + +// WapDesc Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetWapDesc() string { + return r._wapDesc +} +// SubStock Setter +// 可选,减库存方式。0-拍下减库存。1-付款减库存。不传默认为0 +func (r *AlitripGrouptourProductUploadAPIRequest) SetSubStock(_subStock int64) error { + r._subStock = _subStock + r.Set("sub_stock", _subStock) + return nil +} + +// SubStock Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetSubStock() int64 { + return r._subStock +} +// BackTrafficType Setter +// 新发布商品时必填。回程交通。1-飞机,2-火车,3-汽,4-船,100-其他 +func (r *AlitripGrouptourProductUploadAPIRequest) SetBackTrafficType(_backTrafficType int64) error { + r._backTrafficType = _backTrafficType + r.Set("back_traffic_type", _backTrafficType) + return nil +} + +// BackTrafficType Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetBackTrafficType() int64 { + return r._backTrafficType +} +// DescXml Setter +// PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),xml格式:DESC根标签必须有,每一个亮点(HIGHLIGHT)支持1个title子标签,1个txt子标签和多个img子标签。 +func (r *AlitripGrouptourProductUploadAPIRequest) SetDescXml(_descXml string) error { + r._descXml = _descXml + r.Set("desc_xml", _descXml) + return nil +} + +// DescXml Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetDescXml() string { + return r._descXml +} +// ConfirmTime Setter +// 可选,资源确认时长,当confirm_type=2时必填。1:2个工作小时内确认,2:6个工作小时内确认,3:9个工作小时内确认,4:18个工作小时内确认 +func (r *AlitripGrouptourProductUploadAPIRequest) SetConfirmTime(_confirmTime int64) error { + r._confirmTime = _confirmTime + r.Set("confirm_time", _confirmTime) + return nil +} + +// ConfirmTime Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetConfirmTime() int64 { + return r._confirmTime +} +// Title Setter +// 新发布商品时必填。商品标题,30个中文字符以内 +func (r *AlitripGrouptourProductUploadAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetTitle() string { + return r._title +} +// RouteType Setter +// 参团线路类型。0 -目的地参团,1-为出发地参团 +func (r *AlitripGrouptourProductUploadAPIRequest) SetRouteType(_routeType int64) error { + r._routeType = _routeType + r.Set("route_type", _routeType) + return nil +} + +// RouteType Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetRouteType() int64 { + return r._routeType +} +// GroupTourPackageInfo Setter +// 套餐信息,数组类型,支持上传多个套餐信息 +func (r *AlitripGrouptourProductUploadAPIRequest) SetGroupTourPackageInfo(_groupTourPackageInfo []GroupTourPackageInfo) error { + r._groupTourPackageInfo = _groupTourPackageInfo + r.Set("group_tour_package_info", _groupTourPackageInfo) + return nil +} + +// GroupTourPackageInfo Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetGroupTourPackageInfo() []GroupTourPackageInfo { + return r._groupTourPackageInfo +} +// ConfirmType Setter +// 可选,资源确认类型。1-即时确认,2-二次确认。不传默认1 +func (r *AlitripGrouptourProductUploadAPIRequest) SetConfirmType(_confirmType int64) error { + r._confirmType = _confirmType + r.Set("confirm_type", _confirmType) + return nil +} + +// ConfirmType Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetConfirmType() int64 { + return r._confirmType +} +// ItemCustomTag Setter +// 可选,商家自定义标签(最多4个字,超长则自动截断,会进行违禁词校验) +func (r *AlitripGrouptourProductUploadAPIRequest) SetItemCustomTag(_itemCustomTag string) error { + r._itemCustomTag = _itemCustomTag + r.Set("item_custom_tag", _itemCustomTag) + return nil +} + +// ItemCustomTag Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetItemCustomTag() string { + return r._itemCustomTag +} +// OutProductId Setter +// 必填,商家自定义商品编码。注:商品基本信息维护、价格库存维护,商品查询都以该编码为主键。 +func (r *AlitripGrouptourProductUploadAPIRequest) SetOutProductId(_outProductId string) error { + r._outProductId = _outProductId + r.Set("out_product_id", _outProductId) + return nil +} + +// OutProductId Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetOutProductId() string { + return r._outProductId +} +// TripNight Setter +// 可选,旅游晚数,不传默认旅游天数-1。已废弃,以套餐维度行程晚数为准。 +func (r *AlitripGrouptourProductUploadAPIRequest) SetTripNight(_tripNight int64) error { + r._tripNight = _tripNight + r.Set("trip_night", _tripNight) + return nil +} + +// TripNight Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetTripNight() int64 { + return r._tripNight +} +// ToLocations Setter +// 新发布商品时必填。目的地,多个目的地用英文逗号分隔。地址可以使用飞猪标准地址名称,也可以使用商家系统中目的地地址(支持商家目的地id和商家目的地名称)。如果需要使用商家目的地地址,必须在目的地关联页(https://sell.alitrip.com/icenter/main.htm#/widgets/api-adaptor?_k=n61ii0)配置映射关系(一次性批量上传建立映射关系,之后度假所有类目、API接口共用该映射关系)。 商家目的地地址使用示例1:东京,大阪。示例2:123,124。说明:商家目的地id(123,124)会根据映射关系自动转换成飞猪标准地址 +func (r *AlitripGrouptourProductUploadAPIRequest) SetToLocations(_toLocations string) error { + r._toLocations = _toLocations + r.Set("to_locations", _toLocations) + return nil +} + +// ToLocations Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetToLocations() string { + return r._toLocations +} +// PicUrls Setter +// 新发布商品时必填。商品图片路径。最多支持5张,第一张为主图,必填,其余四张可选填。图片链接支持外链图片(即商家系统中图片链接,必须外网可访问,且格式为jpg或jpeg,大小在500k以内),或者用户淘宝空间内的图片链接。对于外链图片,将自动下载并上传用户淘宝图片空间,上传失败的外链图片将自动忽略不计。。注:在SDK中数组多个元素间以英文逗号分隔 +func (r *AlitripGrouptourProductUploadAPIRequest) SetPicUrls(_picUrls []string) error { + r._picUrls = _picUrls + r.Set("pic_urls", _picUrls) + return nil +} + +// PicUrls Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetPicUrls() []string { + return r._picUrls +} +// ReserveLimit Setter +// 可选,该商品提前预定时间限制。格式:1_18_00,含义:该商品必须提前1天预定,且在18:00之前完成预定 +func (r *AlitripGrouptourProductUploadAPIRequest) SetReserveLimit(_reserveLimit string) error { + r._reserveLimit = _reserveLimit + r.Set("reserve_limit", _reserveLimit) + return nil +} + +// ReserveLimit Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetReserveLimit() string { + return r._reserveLimit +} +// ItemId Setter +// 可选,淘系商品id,用于将out_product_id关联到已经存在的商品,并且修改该商品外部商家编码为out_product_id。 +func (r *AlitripGrouptourProductUploadAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetItemId() int64 { + return r._itemId +} +// RefundType Setter +// 可选,退改规则类型。0-平台标准退改规则,1-自定义退改规则,2-不支持退改(已废弃,勿用),7-新版自定义退改规则。不传默认为0 +func (r *AlitripGrouptourProductUploadAPIRequest) SetRefundType(_refundType int64) error { + r._refundType = _refundType + r.Set("refund_type", _refundType) + return nil +} + +// RefundType Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetRefundType() int64 { + return r._refundType +} +// SubTitles Setter +// 可选,商品亮点,最多支持4个亮点。注:在SDK中数组多个元素间以英文逗号分隔 +func (r *AlitripGrouptourProductUploadAPIRequest) SetSubTitles(_subTitles []string) error { + r._subTitles = _subTitles + r.Set("sub_titles", _subTitles) + return nil +} + +// SubTitles Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetSubTitles() []string { + return r._subTitles +} +// FromLocations Setter +// 新发布商品时必填。出发地,多个出发地用英文逗号分隔。使用说明同“目的地” +func (r *AlitripGrouptourProductUploadAPIRequest) SetFromLocations(_fromLocations string) error { + r._fromLocations = _fromLocations + r.Set("from_locations", _fromLocations) + return nil +} + +// FromLocations Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetFromLocations() string { + return r._fromLocations +} +// DescHtml Setter +// PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),Html格式。商家自定义Html格式描述。 +func (r *AlitripGrouptourProductUploadAPIRequest) SetDescHtml(_descHtml string) error { + r._descHtml = _descHtml + r.Set("desc_html", _descHtml) + return nil +} + +// DescHtml Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetDescHtml() string { + return r._descHtml +} +// TravellerTemplateId Setter +// 可选,出行人模板id。模板id需要商家以店铺账号身份登录飞猪商家工作台,从卖家工具->出行人管理中获取。注意:如果传0则代表设置为不需要出行人模板或使用飞猪平台默认的类目模板。 +func (r *AlitripGrouptourProductUploadAPIRequest) SetTravellerTemplateId(_travellerTemplateId int64) error { + r._travellerTemplateId = _travellerTemplateId + r.Set("traveller_template_id", _travellerTemplateId) + return nil +} + +// TravellerTemplateId Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetTravellerTemplateId() int64 { + return r._travellerTemplateId +} +// IsOverseasTour Setter +// 新发布商品时必填。是否出境游,0-不是,1-是。 +func (r *AlitripGrouptourProductUploadAPIRequest) SetIsOverseasTour(_isOverseasTour int64) error { + r._isOverseasTour = _isOverseasTour + r.Set("is_overseas_tour", _isOverseasTour) + return nil +} + +// IsOverseasTour Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetIsOverseasTour() int64 { + return r._isOverseasTour +} +// PurePlay Setter +// 是否纯玩团。0-纯玩团,1-含购物团。新发布商品时不传默认为“含购物团” +func (r *AlitripGrouptourProductUploadAPIRequest) SetPurePlay(_purePlay int64) error { + r._purePlay = _purePlay + r.Set("pure_play", _purePlay) + return nil +} + +// PurePlay Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetPurePlay() int64 { + return r._purePlay +} +// RefundRegulationsJson Setter +// 特殊可选,退款规则(json数组格式)。自定义退改时需填写(与refund_regulations字段二选一)。示例中一共包含4条规则(3条平日规则,1条节假日规则),按照顺序每条规则含义如下:出行前5日及以上,买家违约收取总费用的50,卖家违约收取总费用的20;出行前4日至1日,买家违约收取总费用的80,卖家违约收取总费用的50;行程开始当天,买家违约收取总费用的100,卖家违约收取总费用的70;如果行程日期包含节假日,则节假日条款为买家违约收取总费用的100,卖家违约收取总费用的90 +func (r *AlitripGrouptourProductUploadAPIRequest) SetRefundRegulationsJson(_refundRegulationsJson string) error { + r._refundRegulationsJson = _refundRegulationsJson + r.Set("refund_regulations_json", _refundRegulationsJson) + return nil +} + +// RefundRegulationsJson Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetRefundRegulationsJson() string { + return r._refundRegulationsJson +} +// PackageOperation Setter +// 0:使用上传的套餐信息(group_tour_package_info)覆盖商品上原有的套餐信息(此时group_tour_package_info中设置的packageOperation无效);1:根据套餐信息(group_tour_package_info)中的packageOperation和outProductId增加,修改,删除指定套餐,====默认值为0=== +func (r *AlitripGrouptourProductUploadAPIRequest) SetPackageOperation(_packageOperation int64) error { + r._packageOperation = _packageOperation + r.Set("package_operation", _packageOperation) + return nil +} + +// PackageOperation Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetPackageOperation() int64 { + return r._packageOperation +} +// GroupTourType Setter +// 必填,线路的“细分类型”属性:1-普通跟团游、2-半自由行、3-私家团;不填默认值设置为"1-普通跟团游"。 +func (r *AlitripGrouptourProductUploadAPIRequest) SetGroupTourType(_groupTourType int64) error { + r._groupTourType = _groupTourType + r.Set("group_tour_type", _groupTourType) + return nil +} + +// GroupTourType Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetGroupTourType() int64 { + return r._groupTourType +} +// SellerCids Setter +// 关联商品与店铺类目 结构:"cid1,cid2,...,"。如何获取卖家店铺类目具体参见:http://open.taobao.com/doc2/apiDetail.htm?apiId=65 +func (r *AlitripGrouptourProductUploadAPIRequest) SetSellerCids(_sellerCids []string) error { + r._sellerCids = _sellerCids + r.Set("seller_cids", _sellerCids) + return nil +} + +// SellerCids Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetSellerCids() []string { + return r._sellerCids +} +// SecondKill Setter +// 商品秒杀,商品秒杀三个值:可选类型web_only(只能通过web网络秒杀),wap_only(只能通过wap网络秒杀),web_and_wap(既能通过web秒杀也能通过wap秒杀) +func (r *AlitripGrouptourProductUploadAPIRequest) SetSecondKill(_secondKill string) error { + r._secondKill = _secondKill + r.Set("second_kill", _secondKill) + return nil +} + +// SecondKill Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetSecondKill() string { + return r._secondKill +} +// HasDiscount Setter +// 是否支持会员打折。可选值:true,false;默认值:false(不打折)。不传的话默认为false +func (r *AlitripGrouptourProductUploadAPIRequest) SetHasDiscount(_hasDiscount bool) error { + r._hasDiscount = _hasDiscount + r.Set("has_discount", _hasDiscount) + return nil +} + +// HasDiscount Getter +func (r AlitripGrouptourProductUploadAPIRequest) GetHasDiscount() bool { + return r._hasDiscount +} diff --git a/model/travel/AlitripGrouptourProductUploadAPIResponse.go b/model/travel/AlitripGrouptourProductUploadAPIResponse.go new file mode 100644 index 0000000000..52e6b492b6 --- /dev/null +++ b/model/travel/AlitripGrouptourProductUploadAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新版跟团游商品维护接口 API返回值 +alitrip.grouptour.product.upload + +新版跟团游商品维护接口 +*/ +type AlitripGrouptourProductUploadAPIResponse struct { + model.CommonResponse + AlitripGrouptourProductUploadAPIResponseModel +} + +// 新版跟团游商品维护接口 成功返回结果 +type AlitripGrouptourProductUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_grouptour_product_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // firstResult + FirstResult *TopTravelItem `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/travel/AlitripGrouptourProductUploadResponse.go b/model/travel/AlitripGrouptourProductUploadResponse.go deleted file mode 100644 index 236b298afc..0000000000 --- a/model/travel/AlitripGrouptourProductUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新版跟团游商品维护接口 API返回值 -alitrip.grouptour.product.upload - -新版跟团游商品维护接口 -*/ -type AlitripGrouptourProductUploadAPIResponse struct { - model.CommonResponse - AlitripGrouptourProductUploadResponse -} - -// 新版跟团游商品维护接口 成功返回结果 -type AlitripGrouptourProductUploadResponse struct { - XMLName xml.Name `xml:"alitrip_grouptour_product_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // firstResult - FirstResult *TopTravelItem `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/travel/AlitripGrouptoursProductUploadAPIRequest.go b/model/travel/AlitripGrouptoursProductUploadAPIRequest.go new file mode 100644 index 0000000000..b7632f5f04 --- /dev/null +++ b/model/travel/AlitripGrouptoursProductUploadAPIRequest.go @@ -0,0 +1,489 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +跟团游 产品维护接口 API请求 +alitrip.grouptours.product.upload + +跟团游 产品维护接口。 +接口同时支持新商品发布 和 现有商品编辑: +1)只上传out_product_id的情况:如果out_product_id已经关联过某个商品id,则认为是编辑现有商品,否则认为是新发布一个商品。 +2)同时上传out_product_id和item_id,则认为是将out_product_id与item_id进行关联,同时对该商品进行编辑。 +*/ +type AlitripGrouptoursProductUploadAPIRequest struct { + model.Params + // 商家自定义商品编码。注:商品基本信息维护、价格库存维护,商品查询都以该编码为主键。 + _outProductId string + // 可选,淘系商品id,用于将out_product_id关联到已经存在的商品,并且修改该商品外部商家编码为out_product_id。 + _itemId int64 + // 新发布商品时必填。商品标题,30个中文字符以内 + _title string + // 可选,商品亮点,最多支持4个亮点。注:在SDK中数组多个元素间以英文逗号分隔 + _subTitles []string + // 新发布商品时必填。商品图片路径。最多支持5张,第一张为主图,必填,其余四张可选填。图片链接支持外链图片(即商家系统中图片链接,必须外网可访问,且格式为jpg或jpeg,大小在500k以内),或者用户淘宝空间内的图片链接。对于外链图片,将自动下载并上传用户淘宝图片空间,上传失败的外链图片将自动忽略不计。。注:在SDK中数组多个元素间以英文逗号分隔 + _picUrls []string + // 新发布商品时必填。出发地,多个出发地用英文逗号分隔。使用说明同“目的地” + _fromLocations string + // 可选,跟团时的集合地点,列表中每一个元素对应一个集合地点 + _gatherPlaces []GatherPlaceInfo + // 新发布商品时必填。目的地,多个目的地用英文逗号分隔。地址可以使用飞猪标准地址名称,也可以使用商家系统中目的地地址(支持商家目的地id和商家目的地名称)。如果需要使用商家目的地地址,必须在目的地关联页(https://sell.alitrip.com/icenter/main.htm#/widgets/api-adaptor?_k=n61ii0)配置映射关系(一次性批量上传建立映射关系,之后度假所有类目、API接口共用该映射关系)。 商家目的地地址使用示例1:东京,大阪。示例2:123,124。说明:商家目的地id(123,124)会根据映射关系自动转换成飞猪标准地址 + _toLocations string + // 新发布商品时必填。是否出境游,0-不是,1-是。 + _isOverseasTour int64 + // 新发布商品时必填。旅游天数 + _tripDay int64 + // 可选,旅游晚数,不传默认旅游天数-1 + _tripNight int64 + // PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),xml格式:DESC根标签必须有,每一个亮点(HIGHLIGHT)支持1个title子标签,1个txt子标签和多个img子标签。 + _descXml string + // PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),Html格式。商家自定义Html格式描述。 + _descHtml string + // 可选,手机端详情描述,xml格式,格式详见示例。 + _wapDesc string + // 可选,(struct_itineraries与itineraries二者选填一个即可,如果两个都上传则以struct_itineraries为准)。itineraries数组的元素个数必须与旅游天数trip_day一致。行程描述,每一天行程都是xml格式(数组的每个元素对应每一天的行程): ITINERARY根标签必须有,每个活动(ACTIVITY)支持1个title子标签,1个txt子标签和多个img子标签。注:在SDK中多个元素间以英文逗号分隔 + _itineraries []string + // 行程描述(struct_itineraries与itineraries二者选填一个即可,如果两个都上传则以struct_itineraries为准)。列表中每一个元素对应一天的行程,每天行程由多个活动组成。行程描述是可选项,如果上传了行程内容 则行程序号和行程活动信息必填。 + _structItineraries []StructItinerary + // 新发布商品时必填。费用包含。列表中每一个元素 对应一点描述,所有描述合起来必须小于1500个中文字符。注:在SDK中数组多个元素间以英文逗号分隔 + _feeInclude []string + // 新发布商品时必填。费用不含。列表中每一个元素 对应一点描述,所有描述合起来必须小于1500个中文字符。注:在SDK中数组多个元素间以英文逗号分隔 + _feeExclude []string + // 新发布商品时必填。预定须知。列表中每一个元素 对应一点描述,所有描述合起来必须小于1500个中文字符。注:在SDK中数组多个元素间以英文逗号分隔 + _orderInfo []string + // 可选,退改规则类型。0-平台标准退改规则,1-自定义退改规则,2-不支持退改(已废弃,勿用),7-新版自定义退改规则。不传默认为0 + _refundType int64 + // 特殊可选,当refund_type=1或7时,需要上传自定义退改内容。自定义退改规则,最多可含5组规则,每组规则间以英文逗号分隔。 1)当refund_type为1时格式为:a_b_num,b-1_c_num。含义:提前a天至提前b天发起退款,买家需支付num比例违约费。 2)当refund_type为7时格式为:a_b_num1_num2_0,b-1_c_num1_num2_0。含义:提前a天至提前b天发起退款,买家需支付num1比例违约费,卖家需支付num2比例违约费,最后一个数字代表是否节假日规则(0-不是,1-是)。特别注意,当refund_type为7时,自定义退改规则必须设置 n天以上违约规则 以及 行程当日违约规则,即第一组规则需要以-1_a_num1_num2_0或-1_a_num1_num2_1开头,且最后一组规则需要以0_0_num1_num2_0或0_0_num1_num2_1结尾。 + _refundRegulations []string + // 新发布商品时必填。去程交通。1-飞机,2-火车,3-汽,4-船 + _goTrafficType int64 + // 新发布商品时必填。回程交通。1-飞机,2-火车,3-汽,4-船 + _backTrafficType int64 + // 新发布商品时必填。参团线路类型。0 -目的地参团,1-为出发地参团 + _routeType int64 + // 可选,是否纯玩团。0-纯玩团,1-含购物团。新发布商品时不传默认为“含购物团” + _purePlay int64 + // 可选,电子合同信息设置。 + _electronContract *ElectronContract + // 可选,该商品提前预定时间限制。格式:1_18_00,含义:该商品必须提前1天预定,且在18:00之前完成预定 + _reserveLimit string + // 可选,资源确认类型。1-即时确认,2-二次确认。不传默认1 + _confirmType int64 + // 可选,资源确认时长,当confirm_type=2时必填。1:2个工作小时内确认,2:6个工作小时内确认,3:9个工作小时内确认,4:18个工作小时内确认 + _confirmTime int64 + // 可选,减库存方式。0-拍下减库存。1-付款减库存。不传默认为0 + _subStock int64 + // 可选,商家自定义标签(最多4个字,超长则自动截断,会进行违禁词校验) + _itemCustomTag string + // 可选,出行人模板id,预留,暂不支持 + _travellerTemplateId int64 +} + +// 初始化AlitripGrouptoursProductUploadAPIRequest对象 +func NewAlitripGrouptoursProductUploadRequest() *AlitripGrouptoursProductUploadAPIRequest{ + return &AlitripGrouptoursProductUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripGrouptoursProductUploadAPIRequest) GetApiMethodName() string { + return "alitrip.grouptours.product.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripGrouptoursProductUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutProductId Setter +// 商家自定义商品编码。注:商品基本信息维护、价格库存维护,商品查询都以该编码为主键。 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetOutProductId(_outProductId string) error { + r._outProductId = _outProductId + r.Set("out_product_id", _outProductId) + return nil +} + +// OutProductId Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetOutProductId() string { + return r._outProductId +} +// ItemId Setter +// 可选,淘系商品id,用于将out_product_id关联到已经存在的商品,并且修改该商品外部商家编码为out_product_id。 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetItemId() int64 { + return r._itemId +} +// Title Setter +// 新发布商品时必填。商品标题,30个中文字符以内 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetTitle() string { + return r._title +} +// SubTitles Setter +// 可选,商品亮点,最多支持4个亮点。注:在SDK中数组多个元素间以英文逗号分隔 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetSubTitles(_subTitles []string) error { + r._subTitles = _subTitles + r.Set("sub_titles", _subTitles) + return nil +} + +// SubTitles Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetSubTitles() []string { + return r._subTitles +} +// PicUrls Setter +// 新发布商品时必填。商品图片路径。最多支持5张,第一张为主图,必填,其余四张可选填。图片链接支持外链图片(即商家系统中图片链接,必须外网可访问,且格式为jpg或jpeg,大小在500k以内),或者用户淘宝空间内的图片链接。对于外链图片,将自动下载并上传用户淘宝图片空间,上传失败的外链图片将自动忽略不计。。注:在SDK中数组多个元素间以英文逗号分隔 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetPicUrls(_picUrls []string) error { + r._picUrls = _picUrls + r.Set("pic_urls", _picUrls) + return nil +} + +// PicUrls Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetPicUrls() []string { + return r._picUrls +} +// FromLocations Setter +// 新发布商品时必填。出发地,多个出发地用英文逗号分隔。使用说明同“目的地” +func (r *AlitripGrouptoursProductUploadAPIRequest) SetFromLocations(_fromLocations string) error { + r._fromLocations = _fromLocations + r.Set("from_locations", _fromLocations) + return nil +} + +// FromLocations Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetFromLocations() string { + return r._fromLocations +} +// GatherPlaces Setter +// 可选,跟团时的集合地点,列表中每一个元素对应一个集合地点 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetGatherPlaces(_gatherPlaces []GatherPlaceInfo) error { + r._gatherPlaces = _gatherPlaces + r.Set("gather_places", _gatherPlaces) + return nil +} + +// GatherPlaces Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetGatherPlaces() []GatherPlaceInfo { + return r._gatherPlaces +} +// ToLocations Setter +// 新发布商品时必填。目的地,多个目的地用英文逗号分隔。地址可以使用飞猪标准地址名称,也可以使用商家系统中目的地地址(支持商家目的地id和商家目的地名称)。如果需要使用商家目的地地址,必须在目的地关联页(https://sell.alitrip.com/icenter/main.htm#/widgets/api-adaptor?_k=n61ii0)配置映射关系(一次性批量上传建立映射关系,之后度假所有类目、API接口共用该映射关系)。 商家目的地地址使用示例1:东京,大阪。示例2:123,124。说明:商家目的地id(123,124)会根据映射关系自动转换成飞猪标准地址 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetToLocations(_toLocations string) error { + r._toLocations = _toLocations + r.Set("to_locations", _toLocations) + return nil +} + +// ToLocations Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetToLocations() string { + return r._toLocations +} +// IsOverseasTour Setter +// 新发布商品时必填。是否出境游,0-不是,1-是。 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetIsOverseasTour(_isOverseasTour int64) error { + r._isOverseasTour = _isOverseasTour + r.Set("is_overseas_tour", _isOverseasTour) + return nil +} + +// IsOverseasTour Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetIsOverseasTour() int64 { + return r._isOverseasTour +} +// TripDay Setter +// 新发布商品时必填。旅游天数 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetTripDay(_tripDay int64) error { + r._tripDay = _tripDay + r.Set("trip_day", _tripDay) + return nil +} + +// TripDay Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetTripDay() int64 { + return r._tripDay +} +// TripNight Setter +// 可选,旅游晚数,不传默认旅游天数-1 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetTripNight(_tripNight int64) error { + r._tripNight = _tripNight + r.Set("trip_night", _tripNight) + return nil +} + +// TripNight Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetTripNight() int64 { + return r._tripNight +} +// DescXml Setter +// PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),xml格式:DESC根标签必须有,每一个亮点(HIGHLIGHT)支持1个title子标签,1个txt子标签和多个img子标签。 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetDescXml(_descXml string) error { + r._descXml = _descXml + r.Set("desc_xml", _descXml) + return nil +} + +// DescXml Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetDescXml() string { + return r._descXml +} +// DescHtml Setter +// PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),Html格式。商家自定义Html格式描述。 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetDescHtml(_descHtml string) error { + r._descHtml = _descHtml + r.Set("desc_html", _descHtml) + return nil +} + +// DescHtml Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetDescHtml() string { + return r._descHtml +} +// WapDesc Setter +// 可选,手机端详情描述,xml格式,格式详见示例。 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetWapDesc(_wapDesc string) error { + r._wapDesc = _wapDesc + r.Set("wap_desc", _wapDesc) + return nil +} + +// WapDesc Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetWapDesc() string { + return r._wapDesc +} +// Itineraries Setter +// 可选,(struct_itineraries与itineraries二者选填一个即可,如果两个都上传则以struct_itineraries为准)。itineraries数组的元素个数必须与旅游天数trip_day一致。行程描述,每一天行程都是xml格式(数组的每个元素对应每一天的行程): ITINERARY根标签必须有,每个活动(ACTIVITY)支持1个title子标签,1个txt子标签和多个img子标签。注:在SDK中多个元素间以英文逗号分隔 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetItineraries(_itineraries []string) error { + r._itineraries = _itineraries + r.Set("itineraries", _itineraries) + return nil +} + +// Itineraries Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetItineraries() []string { + return r._itineraries +} +// StructItineraries Setter +// 行程描述(struct_itineraries与itineraries二者选填一个即可,如果两个都上传则以struct_itineraries为准)。列表中每一个元素对应一天的行程,每天行程由多个活动组成。行程描述是可选项,如果上传了行程内容 则行程序号和行程活动信息必填。 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetStructItineraries(_structItineraries []StructItinerary) error { + r._structItineraries = _structItineraries + r.Set("struct_itineraries", _structItineraries) + return nil +} + +// StructItineraries Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetStructItineraries() []StructItinerary { + return r._structItineraries +} +// FeeInclude Setter +// 新发布商品时必填。费用包含。列表中每一个元素 对应一点描述,所有描述合起来必须小于1500个中文字符。注:在SDK中数组多个元素间以英文逗号分隔 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetFeeInclude(_feeInclude []string) error { + r._feeInclude = _feeInclude + r.Set("fee_include", _feeInclude) + return nil +} + +// FeeInclude Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetFeeInclude() []string { + return r._feeInclude +} +// FeeExclude Setter +// 新发布商品时必填。费用不含。列表中每一个元素 对应一点描述,所有描述合起来必须小于1500个中文字符。注:在SDK中数组多个元素间以英文逗号分隔 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetFeeExclude(_feeExclude []string) error { + r._feeExclude = _feeExclude + r.Set("fee_exclude", _feeExclude) + return nil +} + +// FeeExclude Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetFeeExclude() []string { + return r._feeExclude +} +// OrderInfo Setter +// 新发布商品时必填。预定须知。列表中每一个元素 对应一点描述,所有描述合起来必须小于1500个中文字符。注:在SDK中数组多个元素间以英文逗号分隔 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetOrderInfo(_orderInfo []string) error { + r._orderInfo = _orderInfo + r.Set("order_info", _orderInfo) + return nil +} + +// OrderInfo Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetOrderInfo() []string { + return r._orderInfo +} +// RefundType Setter +// 可选,退改规则类型。0-平台标准退改规则,1-自定义退改规则,2-不支持退改(已废弃,勿用),7-新版自定义退改规则。不传默认为0 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetRefundType(_refundType int64) error { + r._refundType = _refundType + r.Set("refund_type", _refundType) + return nil +} + +// RefundType Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetRefundType() int64 { + return r._refundType +} +// RefundRegulations Setter +// 特殊可选,当refund_type=1或7时,需要上传自定义退改内容。自定义退改规则,最多可含5组规则,每组规则间以英文逗号分隔。 1)当refund_type为1时格式为:a_b_num,b-1_c_num。含义:提前a天至提前b天发起退款,买家需支付num比例违约费。 2)当refund_type为7时格式为:a_b_num1_num2_0,b-1_c_num1_num2_0。含义:提前a天至提前b天发起退款,买家需支付num1比例违约费,卖家需支付num2比例违约费,最后一个数字代表是否节假日规则(0-不是,1-是)。特别注意,当refund_type为7时,自定义退改规则必须设置 n天以上违约规则 以及 行程当日违约规则,即第一组规则需要以-1_a_num1_num2_0或-1_a_num1_num2_1开头,且最后一组规则需要以0_0_num1_num2_0或0_0_num1_num2_1结尾。 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetRefundRegulations(_refundRegulations []string) error { + r._refundRegulations = _refundRegulations + r.Set("refund_regulations", _refundRegulations) + return nil +} + +// RefundRegulations Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetRefundRegulations() []string { + return r._refundRegulations +} +// GoTrafficType Setter +// 新发布商品时必填。去程交通。1-飞机,2-火车,3-汽,4-船 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetGoTrafficType(_goTrafficType int64) error { + r._goTrafficType = _goTrafficType + r.Set("go_traffic_type", _goTrafficType) + return nil +} + +// GoTrafficType Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetGoTrafficType() int64 { + return r._goTrafficType +} +// BackTrafficType Setter +// 新发布商品时必填。回程交通。1-飞机,2-火车,3-汽,4-船 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetBackTrafficType(_backTrafficType int64) error { + r._backTrafficType = _backTrafficType + r.Set("back_traffic_type", _backTrafficType) + return nil +} + +// BackTrafficType Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetBackTrafficType() int64 { + return r._backTrafficType +} +// RouteType Setter +// 新发布商品时必填。参团线路类型。0 -目的地参团,1-为出发地参团 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetRouteType(_routeType int64) error { + r._routeType = _routeType + r.Set("route_type", _routeType) + return nil +} + +// RouteType Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetRouteType() int64 { + return r._routeType +} +// PurePlay Setter +// 可选,是否纯玩团。0-纯玩团,1-含购物团。新发布商品时不传默认为“含购物团” +func (r *AlitripGrouptoursProductUploadAPIRequest) SetPurePlay(_purePlay int64) error { + r._purePlay = _purePlay + r.Set("pure_play", _purePlay) + return nil +} + +// PurePlay Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetPurePlay() int64 { + return r._purePlay +} +// ElectronContract Setter +// 可选,电子合同信息设置。 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetElectronContract(_electronContract *ElectronContract) error { + r._electronContract = _electronContract + r.Set("electron_contract", _electronContract) + return nil +} + +// ElectronContract Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetElectronContract() *ElectronContract { + return r._electronContract +} +// ReserveLimit Setter +// 可选,该商品提前预定时间限制。格式:1_18_00,含义:该商品必须提前1天预定,且在18:00之前完成预定 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetReserveLimit(_reserveLimit string) error { + r._reserveLimit = _reserveLimit + r.Set("reserve_limit", _reserveLimit) + return nil +} + +// ReserveLimit Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetReserveLimit() string { + return r._reserveLimit +} +// ConfirmType Setter +// 可选,资源确认类型。1-即时确认,2-二次确认。不传默认1 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetConfirmType(_confirmType int64) error { + r._confirmType = _confirmType + r.Set("confirm_type", _confirmType) + return nil +} + +// ConfirmType Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetConfirmType() int64 { + return r._confirmType +} +// ConfirmTime Setter +// 可选,资源确认时长,当confirm_type=2时必填。1:2个工作小时内确认,2:6个工作小时内确认,3:9个工作小时内确认,4:18个工作小时内确认 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetConfirmTime(_confirmTime int64) error { + r._confirmTime = _confirmTime + r.Set("confirm_time", _confirmTime) + return nil +} + +// ConfirmTime Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetConfirmTime() int64 { + return r._confirmTime +} +// SubStock Setter +// 可选,减库存方式。0-拍下减库存。1-付款减库存。不传默认为0 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetSubStock(_subStock int64) error { + r._subStock = _subStock + r.Set("sub_stock", _subStock) + return nil +} + +// SubStock Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetSubStock() int64 { + return r._subStock +} +// ItemCustomTag Setter +// 可选,商家自定义标签(最多4个字,超长则自动截断,会进行违禁词校验) +func (r *AlitripGrouptoursProductUploadAPIRequest) SetItemCustomTag(_itemCustomTag string) error { + r._itemCustomTag = _itemCustomTag + r.Set("item_custom_tag", _itemCustomTag) + return nil +} + +// ItemCustomTag Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetItemCustomTag() string { + return r._itemCustomTag +} +// TravellerTemplateId Setter +// 可选,出行人模板id,预留,暂不支持 +func (r *AlitripGrouptoursProductUploadAPIRequest) SetTravellerTemplateId(_travellerTemplateId int64) error { + r._travellerTemplateId = _travellerTemplateId + r.Set("traveller_template_id", _travellerTemplateId) + return nil +} + +// TravellerTemplateId Getter +func (r AlitripGrouptoursProductUploadAPIRequest) GetTravellerTemplateId() int64 { + return r._travellerTemplateId +} diff --git a/model/travel/AlitripGrouptoursProductUploadAPIResponse.go b/model/travel/AlitripGrouptoursProductUploadAPIResponse.go new file mode 100644 index 0000000000..58bb3782b1 --- /dev/null +++ b/model/travel/AlitripGrouptoursProductUploadAPIResponse.go @@ -0,0 +1,30 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +跟团游 产品维护接口 API返回值 +alitrip.grouptours.product.upload + +跟团游 产品维护接口。 +接口同时支持新商品发布 和 现有商品编辑: +1)只上传out_product_id的情况:如果out_product_id已经关联过某个商品id,则认为是编辑现有商品,否则认为是新发布一个商品。 +2)同时上传out_product_id和item_id,则认为是将out_product_id与item_id进行关联,同时对该商品进行编辑。 +*/ +type AlitripGrouptoursProductUploadAPIResponse struct { + model.CommonResponse + AlitripGrouptoursProductUploadAPIResponseModel +} + +// 跟团游 产品维护接口 成功返回结果 +type AlitripGrouptoursProductUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_grouptours_product_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // firstResult + FirstResult *TopTravelItem `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/travel/AlitripGrouptoursProductUploadResponse.go b/model/travel/AlitripGrouptoursProductUploadResponse.go deleted file mode 100644 index 011f5ddcdf..0000000000 --- a/model/travel/AlitripGrouptoursProductUploadResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -跟团游 产品维护接口 API返回值 -alitrip.grouptours.product.upload - -跟团游 产品维护接口。 -接口同时支持新商品发布 和 现有商品编辑: -1)只上传out_product_id的情况:如果out_product_id已经关联过某个商品id,则认为是编辑现有商品,否则认为是新发布一个商品。 -2)同时上传out_product_id和item_id,则认为是将out_product_id与item_id进行关联,同时对该商品进行编辑。 -*/ -type AlitripGrouptoursProductUploadAPIResponse struct { - model.CommonResponse - AlitripGrouptoursProductUploadResponse -} - -// 跟团游 产品维护接口 成功返回结果 -type AlitripGrouptoursProductUploadResponse struct { - XMLName xml.Name `xml:"alitrip_grouptours_product_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // firstResult - FirstResult *TopTravelItem `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/travel/AlitripItemAddSchemaGetAPIRequest.go b/model/travel/AlitripItemAddSchemaGetAPIRequest.go new file mode 100644 index 0000000000..c6ef71d4f7 --- /dev/null +++ b/model/travel/AlitripItemAddSchemaGetAPIRequest.go @@ -0,0 +1,52 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商品发布模板 API请求 +alitrip.item.add.schema.get + +发布飞猪度假商品时,需要先调用此接口获取商品发布的模板schema。目前支持类目:出境自由行(50278002)、境内自由行(50272002)、出境跟团游(50258005)、境内跟团游(50258004)、境外一日游/多日游(50276003) +*/ +type AlitripItemAddSchemaGetAPIRequest struct { + model.Params + // 类目id + _catId int64 +} + +// 初始化AlitripItemAddSchemaGetAPIRequest对象 +func NewAlitripItemAddSchemaGetRequest() *AlitripItemAddSchemaGetAPIRequest{ + return &AlitripItemAddSchemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripItemAddSchemaGetAPIRequest) GetApiMethodName() string { + return "alitrip.item.add.schema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripItemAddSchemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CatId Setter +// 类目id +func (r *AlitripItemAddSchemaGetAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r AlitripItemAddSchemaGetAPIRequest) GetCatId() int64 { + return r._catId +} diff --git a/model/travel/AlitripItemAddSchemaGetAPIResponse.go b/model/travel/AlitripItemAddSchemaGetAPIResponse.go new file mode 100644 index 0000000000..636b8ee76d --- /dev/null +++ b/model/travel/AlitripItemAddSchemaGetAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商品发布模板 API返回值 +alitrip.item.add.schema.get + +发布飞猪度假商品时,需要先调用此接口获取商品发布的模板schema。目前支持类目:出境自由行(50278002)、境内自由行(50272002)、出境跟团游(50258005)、境内跟团游(50258004)、境外一日游/多日游(50276003) +*/ +type AlitripItemAddSchemaGetAPIResponse struct { + model.CommonResponse + AlitripItemAddSchemaGetAPIResponseModel +} + +// 获取商品发布模板 成功返回结果 +type AlitripItemAddSchemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_item_add_schema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // schema模板数据 + SchemaXmlFields string `json:"schema_xml_fields,omitempty" xml:"schema_xml_fields,omitempty"` +} diff --git a/model/travel/AlitripItemAddSchemaGetResponse.go b/model/travel/AlitripItemAddSchemaGetResponse.go deleted file mode 100644 index 2413aa70b1..0000000000 --- a/model/travel/AlitripItemAddSchemaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取商品发布模板 API返回值 -alitrip.item.add.schema.get - -发布飞猪度假商品时,需要先调用此接口获取商品发布的模板schema。目前支持类目:出境自由行(50278002)、境内自由行(50272002)、出境跟团游(50258005)、境内跟团游(50258004)、境外一日游/多日游(50276003) -*/ -type AlitripItemAddSchemaGetAPIResponse struct { - model.CommonResponse - AlitripItemAddSchemaGetResponse -} - -// 获取商品发布模板 成功返回结果 -type AlitripItemAddSchemaGetResponse struct { - XMLName xml.Name `xml:"alitrip_item_add_schema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // schema模板数据 - SchemaXmlFields string `json:"schema_xml_fields,omitempty" xml:"schema_xml_fields,omitempty"` -} diff --git a/model/travel/AlitripItemSchemaAddAPIRequest.go b/model/travel/AlitripItemSchemaAddAPIRequest.go new file mode 100644 index 0000000000..33580126a1 --- /dev/null +++ b/model/travel/AlitripItemSchemaAddAPIRequest.go @@ -0,0 +1,66 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +使用schema模板进行商品发布 API请求 +alitrip.item.schema.add + +飞猪度假商品使用schema模板进行商品发布。目前支持类目:出境自由行(50278002)、境内自由行(50272002)、出境跟团游(50258005)、境内跟团游(50258004)、境外一日游/多日游(50276003) +*/ +type AlitripItemSchemaAddAPIRequest struct { + model.Params + // 类目id + _catId int64 + // 商品数据 + _schemaXmlFields string +} + +// 初始化AlitripItemSchemaAddAPIRequest对象 +func NewAlitripItemSchemaAddRequest() *AlitripItemSchemaAddAPIRequest{ + return &AlitripItemSchemaAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripItemSchemaAddAPIRequest) GetApiMethodName() string { + return "alitrip.item.schema.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripItemSchemaAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CatId Setter +// 类目id +func (r *AlitripItemSchemaAddAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r AlitripItemSchemaAddAPIRequest) GetCatId() int64 { + return r._catId +} +// SchemaXmlFields Setter +// 商品数据 +func (r *AlitripItemSchemaAddAPIRequest) SetSchemaXmlFields(_schemaXmlFields string) error { + r._schemaXmlFields = _schemaXmlFields + r.Set("schema_xml_fields", _schemaXmlFields) + return nil +} + +// SchemaXmlFields Getter +func (r AlitripItemSchemaAddAPIRequest) GetSchemaXmlFields() string { + return r._schemaXmlFields +} diff --git a/model/travel/AlitripItemSchemaAddAPIResponse.go b/model/travel/AlitripItemSchemaAddAPIResponse.go new file mode 100644 index 0000000000..4e7094c5e0 --- /dev/null +++ b/model/travel/AlitripItemSchemaAddAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +使用schema模板进行商品发布 API返回值 +alitrip.item.schema.add + +飞猪度假商品使用schema模板进行商品发布。目前支持类目:出境自由行(50278002)、境内自由行(50272002)、出境跟团游(50258005)、境内跟团游(50258004)、境外一日游/多日游(50276003) +*/ +type AlitripItemSchemaAddAPIResponse struct { + model.CommonResponse + AlitripItemSchemaAddAPIResponseModel +} + +// 使用schema模板进行商品发布 成功返回结果 +type AlitripItemSchemaAddAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_item_schema_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TopTravelItem `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/travel/AlitripItemSchemaAddResponse.go b/model/travel/AlitripItemSchemaAddResponse.go deleted file mode 100644 index 998c40e374..0000000000 --- a/model/travel/AlitripItemSchemaAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -使用schema模板进行商品发布 API返回值 -alitrip.item.schema.add - -飞猪度假商品使用schema模板进行商品发布。目前支持类目:出境自由行(50278002)、境内自由行(50272002)、出境跟团游(50258005)、境内跟团游(50258004)、境外一日游/多日游(50276003) -*/ -type AlitripItemSchemaAddAPIResponse struct { - model.CommonResponse - AlitripItemSchemaAddResponse -} - -// 使用schema模板进行商品发布 成功返回结果 -type AlitripItemSchemaAddResponse struct { - XMLName xml.Name `xml:"alitrip_item_schema_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TopTravelItem `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/travel/AlitripItemSchemaUpdateAPIRequest.go b/model/travel/AlitripItemSchemaUpdateAPIRequest.go new file mode 100644 index 0000000000..a00e7ab962 --- /dev/null +++ b/model/travel/AlitripItemSchemaUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +使用schema进行商品编辑 API请求 +alitrip.item.schema.update + +飞猪度假商品使用schema进行商品编辑。目前支持类目:出境自由行(50278002)、境内自由行(50272002)、出境跟团游(50258005)、境内跟团游(50258004)、境外一日游/多日游(50276003) +*/ +type AlitripItemSchemaUpdateAPIRequest struct { + model.Params + // 商品id + _itemId int64 + // 商品数据 + _schemaXmlFields string +} + +// 初始化AlitripItemSchemaUpdateAPIRequest对象 +func NewAlitripItemSchemaUpdateRequest() *AlitripItemSchemaUpdateAPIRequest{ + return &AlitripItemSchemaUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripItemSchemaUpdateAPIRequest) GetApiMethodName() string { + return "alitrip.item.schema.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripItemSchemaUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *AlitripItemSchemaUpdateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlitripItemSchemaUpdateAPIRequest) GetItemId() int64 { + return r._itemId +} +// SchemaXmlFields Setter +// 商品数据 +func (r *AlitripItemSchemaUpdateAPIRequest) SetSchemaXmlFields(_schemaXmlFields string) error { + r._schemaXmlFields = _schemaXmlFields + r.Set("schema_xml_fields", _schemaXmlFields) + return nil +} + +// SchemaXmlFields Getter +func (r AlitripItemSchemaUpdateAPIRequest) GetSchemaXmlFields() string { + return r._schemaXmlFields +} diff --git a/model/travel/AlitripItemSchemaUpdateAPIResponse.go b/model/travel/AlitripItemSchemaUpdateAPIResponse.go new file mode 100644 index 0000000000..0ddbfa821a --- /dev/null +++ b/model/travel/AlitripItemSchemaUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +使用schema进行商品编辑 API返回值 +alitrip.item.schema.update + +飞猪度假商品使用schema进行商品编辑。目前支持类目:出境自由行(50278002)、境内自由行(50272002)、出境跟团游(50258005)、境内跟团游(50258004)、境外一日游/多日游(50276003) +*/ +type AlitripItemSchemaUpdateAPIResponse struct { + model.CommonResponse + AlitripItemSchemaUpdateAPIResponseModel +} + +// 使用schema进行商品编辑 成功返回结果 +type AlitripItemSchemaUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_item_schema_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *TopTravelItem `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/travel/AlitripItemSchemaUpdateResponse.go b/model/travel/AlitripItemSchemaUpdateResponse.go deleted file mode 100644 index 7d1b41ebec..0000000000 --- a/model/travel/AlitripItemSchemaUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -使用schema进行商品编辑 API返回值 -alitrip.item.schema.update - -飞猪度假商品使用schema进行商品编辑。目前支持类目:出境自由行(50278002)、境内自由行(50272002)、出境跟团游(50258005)、境内跟团游(50258004)、境外一日游/多日游(50276003) -*/ -type AlitripItemSchemaUpdateAPIResponse struct { - model.CommonResponse - AlitripItemSchemaUpdateResponse -} - -// 使用schema进行商品编辑 成功返回结果 -type AlitripItemSchemaUpdateResponse struct { - XMLName xml.Name `xml:"alitrip_item_schema_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *TopTravelItem `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/travel/AlitripItemUpdateSchemaGetAPIRequest.go b/model/travel/AlitripItemUpdateSchemaGetAPIRequest.go new file mode 100644 index 0000000000..8f6fe70c82 --- /dev/null +++ b/model/travel/AlitripItemUpdateSchemaGetAPIRequest.go @@ -0,0 +1,66 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取编辑商品的schema模板 API请求 +alitrip.item.update.schema.get + +获取编辑商品的schema模板。目前支持类目:出境自由行(50278002)、境内自由行(50272002)、出境跟团游(50258005)、境内跟团游(50258004)、境外一日游/多日游(50276003) +*/ +type AlitripItemUpdateSchemaGetAPIRequest struct { + model.Params + // 商品id + _itemId int64 + // 需要获取的编辑schema,不填默认返回全部 + _updateFieldIds []string +} + +// 初始化AlitripItemUpdateSchemaGetAPIRequest对象 +func NewAlitripItemUpdateSchemaGetRequest() *AlitripItemUpdateSchemaGetAPIRequest{ + return &AlitripItemUpdateSchemaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripItemUpdateSchemaGetAPIRequest) GetApiMethodName() string { + return "alitrip.item.update.schema.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripItemUpdateSchemaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id +func (r *AlitripItemUpdateSchemaGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlitripItemUpdateSchemaGetAPIRequest) GetItemId() int64 { + return r._itemId +} +// UpdateFieldIds Setter +// 需要获取的编辑schema,不填默认返回全部 +func (r *AlitripItemUpdateSchemaGetAPIRequest) SetUpdateFieldIds(_updateFieldIds []string) error { + r._updateFieldIds = _updateFieldIds + r.Set("update_field_ids", _updateFieldIds) + return nil +} + +// UpdateFieldIds Getter +func (r AlitripItemUpdateSchemaGetAPIRequest) GetUpdateFieldIds() []string { + return r._updateFieldIds +} diff --git a/model/travel/AlitripItemUpdateSchemaGetAPIResponse.go b/model/travel/AlitripItemUpdateSchemaGetAPIResponse.go new file mode 100644 index 0000000000..c681447ad3 --- /dev/null +++ b/model/travel/AlitripItemUpdateSchemaGetAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取编辑商品的schema模板 API返回值 +alitrip.item.update.schema.get + +获取编辑商品的schema模板。目前支持类目:出境自由行(50278002)、境内自由行(50272002)、出境跟团游(50258005)、境内跟团游(50258004)、境外一日游/多日游(50276003) +*/ +type AlitripItemUpdateSchemaGetAPIResponse struct { + model.CommonResponse + AlitripItemUpdateSchemaGetAPIResponseModel +} + +// 获取编辑商品的schema模板 成功返回结果 +type AlitripItemUpdateSchemaGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_item_update_schema_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // schema数据 + SchemaXmlFields string `json:"schema_xml_fields,omitempty" xml:"schema_xml_fields,omitempty"` +} diff --git a/model/travel/AlitripItemUpdateSchemaGetResponse.go b/model/travel/AlitripItemUpdateSchemaGetResponse.go deleted file mode 100644 index 42c01e8291..0000000000 --- a/model/travel/AlitripItemUpdateSchemaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取编辑商品的schema模板 API返回值 -alitrip.item.update.schema.get - -获取编辑商品的schema模板。目前支持类目:出境自由行(50278002)、境内自由行(50272002)、出境跟团游(50258005)、境内跟团游(50258004)、境外一日游/多日游(50276003) -*/ -type AlitripItemUpdateSchemaGetAPIResponse struct { - model.CommonResponse - AlitripItemUpdateSchemaGetResponse -} - -// 获取编辑商品的schema模板 成功返回结果 -type AlitripItemUpdateSchemaGetResponse struct { - XMLName xml.Name `xml:"alitrip_item_update_schema_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // schema数据 - SchemaXmlFields string `json:"schema_xml_fields,omitempty" xml:"schema_xml_fields,omitempty"` -} diff --git a/model/travel/AlitripLocalplayProductUploadAPIRequest.go b/model/travel/AlitripLocalplayProductUploadAPIRequest.go new file mode 100644 index 0000000000..1d847c5ef7 --- /dev/null +++ b/model/travel/AlitripLocalplayProductUploadAPIRequest.go @@ -0,0 +1,419 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +当地玩乐 产品维护接口 API请求 +alitrip.localplay.product.upload + +当地玩乐(境内当地玩乐/境外玩乐套餐) 产品维护接口。 +接口同时支持新商品发布 和 现有商品编辑: +1)只上传out_product_id的情况:如果out_product_id已经关联过某个商品id,则认为是编辑现有商品,否则认为是新发布一个商品。 +2)同时上传out_product_id和item_id,则认为是将out_product_id与item_id进行关联,同时对该商品进行编辑。 +*/ +type AlitripLocalplayProductUploadAPIRequest struct { + model.Params + // 商家自定义商品编码。注:商品基本信息维护、价格库存维护,商品查询都以该编码为主键。 + _outProductId string + // 可选,淘系商品id,用于将out_product_id关联到已经存在的商品,并且修改该商品外部商家编码为out_product_id。 + _itemId int64 + // 新发布商品时必填。商品标题,30个中文字符以内 + _title string + // 可选,商品亮点,最多支持4个亮点。注:在SDK中数组多个元素间以英文逗号分隔 + _subTitles []string + // 新发布商品时必填。商品图片路径。最多支持5张,第一张为主图,必填,其余四张可选填。图片链接支持外链图片(即商家系统中图片链接,必须外网可访问,且格式为jpg或jpeg,大小在500k以内),或者用户淘宝空间内的图片链接。对于外链图片,将自动下载并上传用户淘宝图片空间,上传失败的外链图片将自动忽略不计。。注:在SDK中数组多个元素间以英文逗号分隔 + _picUrls []string + // 新发布商品时必填。出发地,多个出发地用英文逗号分隔。使用说明同“目的地” + _fromLocations string + // 新发布商品时必填。目的地,多个目的地用英文逗号分隔。地址可以使用飞猪标准地址名称,也可以使用商家系统中目的地地址(支持商家目的地id和商家目的地名称)。如果需要使用商家目的地地址,必须在目的地关联页(https://sell.alitrip.com/icenter/main.htm#/widgets/api-adaptor?_k=n61ii0)配置映射关系(一次性批量上传建立映射关系,之后度假所有类目、API接口共用该映射关系)。 商家目的地地址使用示例1:东京,大阪。示例2:123,124。说明:商家目的地id(123,124)会根据映射关系自动转换成飞猪标准地址 + _toLocations string + // 新发布商品时必填。是否出境游,0-不是,1-是。 + _isOverseasTour int64 + // 新发布商品时必填。旅游天数 + _tripDay int64 + // 可选,旅游晚数,不传默认旅游天数-1 + _tripNight int64 + // PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),xml格式:DESC根标签必须有,每一个亮点(HIGHLIGHT)支持1个title子标签,1个txt子标签和多个img子标签。 + _descXml string + // PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),Html格式。商家自定义Html格式描述。 + _descHtml string + // 可选,手机端详情描述,xml格式,格式详见示例。 + _wapDesc string + // 新发布商品时必填。费用不含。列表中每一个元素 对应一点描述,所有描述合起来必须小于1500个中文字符。注:在SDK中数组多个元素间以英文逗号分隔 + _feeExclude []string + // 新发布商品时必填。预定须知。列表中每一个元素 对应一点描述,所有描述合起来必须小于1500个中文字符。注:在SDK中数组多个元素间以英文逗号分隔 + _orderInfo []string + // 可选,退改规则类型。0-平台标准退改规则,1-自定义退改规则,2-不支持退改(已废弃,勿用),7-线路商品(跟团、自由行等)新版自定义退改规则。不传默认为0 + _refundType int64 + // 特殊可选,退款规则(json数组格式)。自定义退改时需填写(与refund_regulations字段二选一)。示例中一共包含4条规则(3条平日规则,1条节假日规则),按照顺序每条规则含义如下:出行前5日及以上,买家违约收取总费用的50,卖家违约收取总费用的20;出行前4日至1日,买家违约收取总费用的80,卖家违约收取总费用的50;行程开始当天,买家违约收取总费用的100,卖家违约收取总费用的70;如果行程日期包含节假日,则节假日条款为买家违约收取总费用的100,卖家违约收取总费用的90 + _refundRegulationsJson string + // 可选,该商品提前预定时间限制。格式:1_18_00,含义:该商品必须提前1天预定,且在18:00之前完成预定 + _reserveLimit string + // 可选,资源确认类型。1-即时确认,2-二次确认。不传默认1 + _confirmType int64 + // 可选,资源确认时长,当confirm_type=2时必填。1:2个工作小时内确认,2:6个工作小时内确认,3:9个工作小时内确认,4:18个工作小时内确认 + _confirmTime int64 + // 可选,减库存方式。0-拍下减库存。1-付款减库存。不传默认为0 + _subStock int64 + // 可选,商家自定义标签(最多4个字,超长则自动截断,会进行违禁词校验) + _itemCustomTag string + // 可选,出行人模板id。模板id需要商家以店铺账号身份登录飞猪商家工作台,从卖家工具->出行人管理中获取。注意:如果传0则代表设置为不需要出行人模板或使用飞猪平台默认的类目模板。 + _travellerTemplateId int64 + // 代订服务说明(请填写真实的旅游服务提供商) + _touristServiceProvider string + // 关联商品与店铺类目 结构:"cid1,cid2,...,"。如何获取卖家店铺类目具体参见:http://open.taobao.com/doc2/apiDetail.htm?apiId=65 + _sellerCids []string + // 商品秒杀,商品秒杀三个值:可选类型web_only(只能通过web网络秒杀),wap_only(只能通过wap网络秒杀),web_and_wap(既能通过web秒杀也能通过wap秒杀) + _secondKill string + // 是否支持会员打折。可选值:true,false;默认值:false(不打折)。不传的话默认为false + _hasDiscount bool +} + +// 初始化AlitripLocalplayProductUploadAPIRequest对象 +func NewAlitripLocalplayProductUploadRequest() *AlitripLocalplayProductUploadAPIRequest{ + return &AlitripLocalplayProductUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripLocalplayProductUploadAPIRequest) GetApiMethodName() string { + return "alitrip.localplay.product.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripLocalplayProductUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutProductId Setter +// 商家自定义商品编码。注:商品基本信息维护、价格库存维护,商品查询都以该编码为主键。 +func (r *AlitripLocalplayProductUploadAPIRequest) SetOutProductId(_outProductId string) error { + r._outProductId = _outProductId + r.Set("out_product_id", _outProductId) + return nil +} + +// OutProductId Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetOutProductId() string { + return r._outProductId +} +// ItemId Setter +// 可选,淘系商品id,用于将out_product_id关联到已经存在的商品,并且修改该商品外部商家编码为out_product_id。 +func (r *AlitripLocalplayProductUploadAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetItemId() int64 { + return r._itemId +} +// Title Setter +// 新发布商品时必填。商品标题,30个中文字符以内 +func (r *AlitripLocalplayProductUploadAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetTitle() string { + return r._title +} +// SubTitles Setter +// 可选,商品亮点,最多支持4个亮点。注:在SDK中数组多个元素间以英文逗号分隔 +func (r *AlitripLocalplayProductUploadAPIRequest) SetSubTitles(_subTitles []string) error { + r._subTitles = _subTitles + r.Set("sub_titles", _subTitles) + return nil +} + +// SubTitles Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetSubTitles() []string { + return r._subTitles +} +// PicUrls Setter +// 新发布商品时必填。商品图片路径。最多支持5张,第一张为主图,必填,其余四张可选填。图片链接支持外链图片(即商家系统中图片链接,必须外网可访问,且格式为jpg或jpeg,大小在500k以内),或者用户淘宝空间内的图片链接。对于外链图片,将自动下载并上传用户淘宝图片空间,上传失败的外链图片将自动忽略不计。。注:在SDK中数组多个元素间以英文逗号分隔 +func (r *AlitripLocalplayProductUploadAPIRequest) SetPicUrls(_picUrls []string) error { + r._picUrls = _picUrls + r.Set("pic_urls", _picUrls) + return nil +} + +// PicUrls Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetPicUrls() []string { + return r._picUrls +} +// FromLocations Setter +// 新发布商品时必填。出发地,多个出发地用英文逗号分隔。使用说明同“目的地” +func (r *AlitripLocalplayProductUploadAPIRequest) SetFromLocations(_fromLocations string) error { + r._fromLocations = _fromLocations + r.Set("from_locations", _fromLocations) + return nil +} + +// FromLocations Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetFromLocations() string { + return r._fromLocations +} +// ToLocations Setter +// 新发布商品时必填。目的地,多个目的地用英文逗号分隔。地址可以使用飞猪标准地址名称,也可以使用商家系统中目的地地址(支持商家目的地id和商家目的地名称)。如果需要使用商家目的地地址,必须在目的地关联页(https://sell.alitrip.com/icenter/main.htm#/widgets/api-adaptor?_k=n61ii0)配置映射关系(一次性批量上传建立映射关系,之后度假所有类目、API接口共用该映射关系)。 商家目的地地址使用示例1:东京,大阪。示例2:123,124。说明:商家目的地id(123,124)会根据映射关系自动转换成飞猪标准地址 +func (r *AlitripLocalplayProductUploadAPIRequest) SetToLocations(_toLocations string) error { + r._toLocations = _toLocations + r.Set("to_locations", _toLocations) + return nil +} + +// ToLocations Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetToLocations() string { + return r._toLocations +} +// IsOverseasTour Setter +// 新发布商品时必填。是否出境游,0-不是,1-是。 +func (r *AlitripLocalplayProductUploadAPIRequest) SetIsOverseasTour(_isOverseasTour int64) error { + r._isOverseasTour = _isOverseasTour + r.Set("is_overseas_tour", _isOverseasTour) + return nil +} + +// IsOverseasTour Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetIsOverseasTour() int64 { + return r._isOverseasTour +} +// TripDay Setter +// 新发布商品时必填。旅游天数 +func (r *AlitripLocalplayProductUploadAPIRequest) SetTripDay(_tripDay int64) error { + r._tripDay = _tripDay + r.Set("trip_day", _tripDay) + return nil +} + +// TripDay Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetTripDay() int64 { + return r._tripDay +} +// TripNight Setter +// 可选,旅游晚数,不传默认旅游天数-1 +func (r *AlitripLocalplayProductUploadAPIRequest) SetTripNight(_tripNight int64) error { + r._tripNight = _tripNight + r.Set("trip_night", _tripNight) + return nil +} + +// TripNight Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetTripNight() int64 { + return r._tripNight +} +// DescXml Setter +// PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),xml格式:DESC根标签必须有,每一个亮点(HIGHLIGHT)支持1个title子标签,1个txt子标签和多个img子标签。 +func (r *AlitripLocalplayProductUploadAPIRequest) SetDescXml(_descXml string) error { + r._descXml = _descXml + r.Set("desc_xml", _descXml) + return nil +} + +// DescXml Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetDescXml() string { + return r._descXml +} +// DescHtml Setter +// PC端详情描述(新发布商品时,desc_xml和desc_html二者至少填写一个),Html格式。商家自定义Html格式描述。 +func (r *AlitripLocalplayProductUploadAPIRequest) SetDescHtml(_descHtml string) error { + r._descHtml = _descHtml + r.Set("desc_html", _descHtml) + return nil +} + +// DescHtml Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetDescHtml() string { + return r._descHtml +} +// WapDesc Setter +// 可选,手机端详情描述,xml格式,格式详见示例。 +func (r *AlitripLocalplayProductUploadAPIRequest) SetWapDesc(_wapDesc string) error { + r._wapDesc = _wapDesc + r.Set("wap_desc", _wapDesc) + return nil +} + +// WapDesc Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetWapDesc() string { + return r._wapDesc +} +// FeeExclude Setter +// 新发布商品时必填。费用不含。列表中每一个元素 对应一点描述,所有描述合起来必须小于1500个中文字符。注:在SDK中数组多个元素间以英文逗号分隔 +func (r *AlitripLocalplayProductUploadAPIRequest) SetFeeExclude(_feeExclude []string) error { + r._feeExclude = _feeExclude + r.Set("fee_exclude", _feeExclude) + return nil +} + +// FeeExclude Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetFeeExclude() []string { + return r._feeExclude +} +// OrderInfo Setter +// 新发布商品时必填。预定须知。列表中每一个元素 对应一点描述,所有描述合起来必须小于1500个中文字符。注:在SDK中数组多个元素间以英文逗号分隔 +func (r *AlitripLocalplayProductUploadAPIRequest) SetOrderInfo(_orderInfo []string) error { + r._orderInfo = _orderInfo + r.Set("order_info", _orderInfo) + return nil +} + +// OrderInfo Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetOrderInfo() []string { + return r._orderInfo +} +// RefundType Setter +// 可选,退改规则类型。0-平台标准退改规则,1-自定义退改规则,2-不支持退改(已废弃,勿用),7-线路商品(跟团、自由行等)新版自定义退改规则。不传默认为0 +func (r *AlitripLocalplayProductUploadAPIRequest) SetRefundType(_refundType int64) error { + r._refundType = _refundType + r.Set("refund_type", _refundType) + return nil +} + +// RefundType Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetRefundType() int64 { + return r._refundType +} +// RefundRegulationsJson Setter +// 特殊可选,退款规则(json数组格式)。自定义退改时需填写(与refund_regulations字段二选一)。示例中一共包含4条规则(3条平日规则,1条节假日规则),按照顺序每条规则含义如下:出行前5日及以上,买家违约收取总费用的50,卖家违约收取总费用的20;出行前4日至1日,买家违约收取总费用的80,卖家违约收取总费用的50;行程开始当天,买家违约收取总费用的100,卖家违约收取总费用的70;如果行程日期包含节假日,则节假日条款为买家违约收取总费用的100,卖家违约收取总费用的90 +func (r *AlitripLocalplayProductUploadAPIRequest) SetRefundRegulationsJson(_refundRegulationsJson string) error { + r._refundRegulationsJson = _refundRegulationsJson + r.Set("refund_regulations_json", _refundRegulationsJson) + return nil +} + +// RefundRegulationsJson Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetRefundRegulationsJson() string { + return r._refundRegulationsJson +} +// ReserveLimit Setter +// 可选,该商品提前预定时间限制。格式:1_18_00,含义:该商品必须提前1天预定,且在18:00之前完成预定 +func (r *AlitripLocalplayProductUploadAPIRequest) SetReserveLimit(_reserveLimit string) error { + r._reserveLimit = _reserveLimit + r.Set("reserve_limit", _reserveLimit) + return nil +} + +// ReserveLimit Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetReserveLimit() string { + return r._reserveLimit +} +// ConfirmType Setter +// 可选,资源确认类型。1-即时确认,2-二次确认。不传默认1 +func (r *AlitripLocalplayProductUploadAPIRequest) SetConfirmType(_confirmType int64) error { + r._confirmType = _confirmType + r.Set("confirm_type", _confirmType) + return nil +} + +// ConfirmType Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetConfirmType() int64 { + return r._confirmType +} +// ConfirmTime Setter +// 可选,资源确认时长,当confirm_type=2时必填。1:2个工作小时内确认,2:6个工作小时内确认,3:9个工作小时内确认,4:18个工作小时内确认 +func (r *AlitripLocalplayProductUploadAPIRequest) SetConfirmTime(_confirmTime int64) error { + r._confirmTime = _confirmTime + r.Set("confirm_time", _confirmTime) + return nil +} + +// ConfirmTime Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetConfirmTime() int64 { + return r._confirmTime +} +// SubStock Setter +// 可选,减库存方式。0-拍下减库存。1-付款减库存。不传默认为0 +func (r *AlitripLocalplayProductUploadAPIRequest) SetSubStock(_subStock int64) error { + r._subStock = _subStock + r.Set("sub_stock", _subStock) + return nil +} + +// SubStock Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetSubStock() int64 { + return r._subStock +} +// ItemCustomTag Setter +// 可选,商家自定义标签(最多4个字,超长则自动截断,会进行违禁词校验) +func (r *AlitripLocalplayProductUploadAPIRequest) SetItemCustomTag(_itemCustomTag string) error { + r._itemCustomTag = _itemCustomTag + r.Set("item_custom_tag", _itemCustomTag) + return nil +} + +// ItemCustomTag Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetItemCustomTag() string { + return r._itemCustomTag +} +// TravellerTemplateId Setter +// 可选,出行人模板id。模板id需要商家以店铺账号身份登录飞猪商家工作台,从卖家工具->出行人管理中获取。注意:如果传0则代表设置为不需要出行人模板或使用飞猪平台默认的类目模板。 +func (r *AlitripLocalplayProductUploadAPIRequest) SetTravellerTemplateId(_travellerTemplateId int64) error { + r._travellerTemplateId = _travellerTemplateId + r.Set("traveller_template_id", _travellerTemplateId) + return nil +} + +// TravellerTemplateId Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetTravellerTemplateId() int64 { + return r._travellerTemplateId +} +// TouristServiceProvider Setter +// 代订服务说明(请填写真实的旅游服务提供商) +func (r *AlitripLocalplayProductUploadAPIRequest) SetTouristServiceProvider(_touristServiceProvider string) error { + r._touristServiceProvider = _touristServiceProvider + r.Set("tourist_service_provider", _touristServiceProvider) + return nil +} + +// TouristServiceProvider Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetTouristServiceProvider() string { + return r._touristServiceProvider +} +// SellerCids Setter +// 关联商品与店铺类目 结构:"cid1,cid2,...,"。如何获取卖家店铺类目具体参见:http://open.taobao.com/doc2/apiDetail.htm?apiId=65 +func (r *AlitripLocalplayProductUploadAPIRequest) SetSellerCids(_sellerCids []string) error { + r._sellerCids = _sellerCids + r.Set("seller_cids", _sellerCids) + return nil +} + +// SellerCids Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetSellerCids() []string { + return r._sellerCids +} +// SecondKill Setter +// 商品秒杀,商品秒杀三个值:可选类型web_only(只能通过web网络秒杀),wap_only(只能通过wap网络秒杀),web_and_wap(既能通过web秒杀也能通过wap秒杀) +func (r *AlitripLocalplayProductUploadAPIRequest) SetSecondKill(_secondKill string) error { + r._secondKill = _secondKill + r.Set("second_kill", _secondKill) + return nil +} + +// SecondKill Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetSecondKill() string { + return r._secondKill +} +// HasDiscount Setter +// 是否支持会员打折。可选值:true,false;默认值:false(不打折)。不传的话默认为false +func (r *AlitripLocalplayProductUploadAPIRequest) SetHasDiscount(_hasDiscount bool) error { + r._hasDiscount = _hasDiscount + r.Set("has_discount", _hasDiscount) + return nil +} + +// HasDiscount Getter +func (r AlitripLocalplayProductUploadAPIRequest) GetHasDiscount() bool { + return r._hasDiscount +} diff --git a/model/travel/AlitripLocalplayProductUploadAPIResponse.go b/model/travel/AlitripLocalplayProductUploadAPIResponse.go new file mode 100644 index 0000000000..8916ec107b --- /dev/null +++ b/model/travel/AlitripLocalplayProductUploadAPIResponse.go @@ -0,0 +1,30 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +当地玩乐 产品维护接口 API返回值 +alitrip.localplay.product.upload + +当地玩乐(境内当地玩乐/境外玩乐套餐) 产品维护接口。 +接口同时支持新商品发布 和 现有商品编辑: +1)只上传out_product_id的情况:如果out_product_id已经关联过某个商品id,则认为是编辑现有商品,否则认为是新发布一个商品。 +2)同时上传out_product_id和item_id,则认为是将out_product_id与item_id进行关联,同时对该商品进行编辑。 +*/ +type AlitripLocalplayProductUploadAPIResponse struct { + model.CommonResponse + AlitripLocalplayProductUploadAPIResponseModel +} + +// 当地玩乐 产品维护接口 成功返回结果 +type AlitripLocalplayProductUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_localplay_product_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品发布/更新结果 + FirstResult *TopTravelItem `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/travel/AlitripLocalplayProductUploadResponse.go b/model/travel/AlitripLocalplayProductUploadResponse.go deleted file mode 100644 index 00cdd6cc2c..0000000000 --- a/model/travel/AlitripLocalplayProductUploadResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -当地玩乐 产品维护接口 API返回值 -alitrip.localplay.product.upload - -当地玩乐(境内当地玩乐/境外玩乐套餐) 产品维护接口。 -接口同时支持新商品发布 和 现有商品编辑: -1)只上传out_product_id的情况:如果out_product_id已经关联过某个商品id,则认为是编辑现有商品,否则认为是新发布一个商品。 -2)同时上传out_product_id和item_id,则认为是将out_product_id与item_id进行关联,同时对该商品进行编辑。 -*/ -type AlitripLocalplayProductUploadAPIResponse struct { - model.CommonResponse - AlitripLocalplayProductUploadResponse -} - -// 当地玩乐 产品维护接口 成功返回结果 -type AlitripLocalplayProductUploadResponse struct { - XMLName xml.Name `xml:"alitrip_localplay_product_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品发布/更新结果 - FirstResult *TopTravelItem `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/travel/AlitripTravelGereralitemUpdateAPIRequest.go b/model/travel/AlitripTravelGereralitemUpdateAPIRequest.go new file mode 100644 index 0000000000..cb41ce5eba --- /dev/null +++ b/model/travel/AlitripTravelGereralitemUpdateAPIRequest.go @@ -0,0 +1,137 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +除度假线路、门票以外的其他类目商品维护接口(商品ID重复将自动更新) API请求 +alitrip.travel.gereralitem.update + +除度假线路、门票以外的商品维护接口;目前该接口支持以下类目; +(123740001:客栈周边交通服务、125038002:旅行设备/GPS/相机租赁、50018298:船票、124084006:酒店商品升级差价、125228016:预约卡券、50011954:旅游服务、50012913:酒店优惠券、50214003:旅游会员卡/酒店会员卡、50012917:巴士/地铁/交通卡/一卡通、50134002:代客烧香/还愿、50026091:境外火车票、123742001:客栈周边餐饮服务、50019817:海外套餐(该类目已废弃)、125210016:团建/outing、124212017:其他预定、50025888:机场行李托运取送寄存、50025831:旅游年票/年卡、124142009:旅游商品升级差价/押金、123744001:客栈周边其他服务、50012762:广深口岸港澳送关服务、50025880:旅行拍照/婚纱摄影、123166001:酒店餐饮美食(该类目已废弃)、50668002:手绘地图/明信片、50024210:旅游购物/纪念品、50024208:酒店用品、50024215:购物折扣卡券、50025878:酒店SPA/足浴/温泉、50024212:旅游必备品、123738001:客栈周边票务服务、123164002:游泳健身(该类目已废弃)、50686003:机票增值产品、123164001:酒店SPA(该类目已废弃)、124832008:美食卡券/酒店餐饮卡券、125408001:旅游定制服务、50018112:旅行社/网站优惠券、124258004:酒店客房优惠券(该类目已废弃)、50104001:机场周边停车位、124730002:内机机场/火车站送关服务、124090010:其他) +*/ +type AlitripTravelGereralitemUpdateAPIRequest struct { + model.Params + // 必填,商品基本信息 + _baseInfo *BaseInfo + // 必填,预定规则结构。示例: [{ "rule_type": "fee_excluded", "rule_desc": "费用包含描述"},{ "rule_type": "fee_included", "rule_desc": "费用不含描述"},{ "rule_type": "order_info", "rule_desc": "预定须知描述"}] + _bookingRules []BookingRuleInfo + // 更新sku信息,仅限日历商品使用 + _dateSkuInfoList []DateSkuInfo + // 新版电子凭证信息。如果传递了此参数,则sales_info中旧版电子凭证信息将被忽略,否则电子凭证信息将以旧版电子凭证参数为准。如果新、旧版参数都没传,则该商品不支持电子凭证 + _itemEleCertInfo *ItemEleCertInfo + // 选填,退款规则结构 + _itemRefundInfo *ItemRefundInfo + // poi信息,个别类目必填,如演艺类目下场馆信息 + _poi *Poi + // 更新sku信息,仅限非日历(普通)商品使用 + _commonSkuList []NoDateSkuInfo +} + +// 初始化AlitripTravelGereralitemUpdateAPIRequest对象 +func NewAlitripTravelGereralitemUpdateRequest() *AlitripTravelGereralitemUpdateAPIRequest{ + return &AlitripTravelGereralitemUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelGereralitemUpdateAPIRequest) GetApiMethodName() string { + return "alitrip.travel.gereralitem.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelGereralitemUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BaseInfo Setter +// 必填,商品基本信息 +func (r *AlitripTravelGereralitemUpdateAPIRequest) SetBaseInfo(_baseInfo *BaseInfo) error { + r._baseInfo = _baseInfo + r.Set("base_info", _baseInfo) + return nil +} + +// BaseInfo Getter +func (r AlitripTravelGereralitemUpdateAPIRequest) GetBaseInfo() *BaseInfo { + return r._baseInfo +} +// BookingRules Setter +// 必填,预定规则结构。示例: [{ "rule_type": "fee_excluded", "rule_desc": "费用包含描述"},{ "rule_type": "fee_included", "rule_desc": "费用不含描述"},{ "rule_type": "order_info", "rule_desc": "预定须知描述"}] +func (r *AlitripTravelGereralitemUpdateAPIRequest) SetBookingRules(_bookingRules []BookingRuleInfo) error { + r._bookingRules = _bookingRules + r.Set("booking_rules", _bookingRules) + return nil +} + +// BookingRules Getter +func (r AlitripTravelGereralitemUpdateAPIRequest) GetBookingRules() []BookingRuleInfo { + return r._bookingRules +} +// DateSkuInfoList Setter +// 更新sku信息,仅限日历商品使用 +func (r *AlitripTravelGereralitemUpdateAPIRequest) SetDateSkuInfoList(_dateSkuInfoList []DateSkuInfo) error { + r._dateSkuInfoList = _dateSkuInfoList + r.Set("date_sku_info_list", _dateSkuInfoList) + return nil +} + +// DateSkuInfoList Getter +func (r AlitripTravelGereralitemUpdateAPIRequest) GetDateSkuInfoList() []DateSkuInfo { + return r._dateSkuInfoList +} +// ItemEleCertInfo Setter +// 新版电子凭证信息。如果传递了此参数,则sales_info中旧版电子凭证信息将被忽略,否则电子凭证信息将以旧版电子凭证参数为准。如果新、旧版参数都没传,则该商品不支持电子凭证 +func (r *AlitripTravelGereralitemUpdateAPIRequest) SetItemEleCertInfo(_itemEleCertInfo *ItemEleCertInfo) error { + r._itemEleCertInfo = _itemEleCertInfo + r.Set("item_ele_cert_info", _itemEleCertInfo) + return nil +} + +// ItemEleCertInfo Getter +func (r AlitripTravelGereralitemUpdateAPIRequest) GetItemEleCertInfo() *ItemEleCertInfo { + return r._itemEleCertInfo +} +// ItemRefundInfo Setter +// 选填,退款规则结构 +func (r *AlitripTravelGereralitemUpdateAPIRequest) SetItemRefundInfo(_itemRefundInfo *ItemRefundInfo) error { + r._itemRefundInfo = _itemRefundInfo + r.Set("item_refund_info", _itemRefundInfo) + return nil +} + +// ItemRefundInfo Getter +func (r AlitripTravelGereralitemUpdateAPIRequest) GetItemRefundInfo() *ItemRefundInfo { + return r._itemRefundInfo +} +// Poi Setter +// poi信息,个别类目必填,如演艺类目下场馆信息 +func (r *AlitripTravelGereralitemUpdateAPIRequest) SetPoi(_poi *Poi) error { + r._poi = _poi + r.Set("poi", _poi) + return nil +} + +// Poi Getter +func (r AlitripTravelGereralitemUpdateAPIRequest) GetPoi() *Poi { + return r._poi +} +// CommonSkuList Setter +// 更新sku信息,仅限非日历(普通)商品使用 +func (r *AlitripTravelGereralitemUpdateAPIRequest) SetCommonSkuList(_commonSkuList []NoDateSkuInfo) error { + r._commonSkuList = _commonSkuList + r.Set("common_sku_list", _commonSkuList) + return nil +} + +// CommonSkuList Getter +func (r AlitripTravelGereralitemUpdateAPIRequest) GetCommonSkuList() []NoDateSkuInfo { + return r._commonSkuList +} diff --git a/model/travel/AlitripTravelGereralitemUpdateAPIResponse.go b/model/travel/AlitripTravelGereralitemUpdateAPIResponse.go new file mode 100644 index 0000000000..6d6910864f --- /dev/null +++ b/model/travel/AlitripTravelGereralitemUpdateAPIResponse.go @@ -0,0 +1,28 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +除度假线路、门票以外的其他类目商品维护接口(商品ID重复将自动更新) API返回值 +alitrip.travel.gereralitem.update + +除度假线路、门票以外的商品维护接口;目前该接口支持以下类目; +(123740001:客栈周边交通服务、125038002:旅行设备/GPS/相机租赁、50018298:船票、124084006:酒店商品升级差价、125228016:预约卡券、50011954:旅游服务、50012913:酒店优惠券、50214003:旅游会员卡/酒店会员卡、50012917:巴士/地铁/交通卡/一卡通、50134002:代客烧香/还愿、50026091:境外火车票、123742001:客栈周边餐饮服务、50019817:海外套餐(该类目已废弃)、125210016:团建/outing、124212017:其他预定、50025888:机场行李托运取送寄存、50025831:旅游年票/年卡、124142009:旅游商品升级差价/押金、123744001:客栈周边其他服务、50012762:广深口岸港澳送关服务、50025880:旅行拍照/婚纱摄影、123166001:酒店餐饮美食(该类目已废弃)、50668002:手绘地图/明信片、50024210:旅游购物/纪念品、50024208:酒店用品、50024215:购物折扣卡券、50025878:酒店SPA/足浴/温泉、50024212:旅游必备品、123738001:客栈周边票务服务、123164002:游泳健身(该类目已废弃)、50686003:机票增值产品、123164001:酒店SPA(该类目已废弃)、124832008:美食卡券/酒店餐饮卡券、125408001:旅游定制服务、50018112:旅行社/网站优惠券、124258004:酒店客房优惠券(该类目已废弃)、50104001:机场周边停车位、124730002:内机机场/火车站送关服务、124090010:其他) +*/ +type AlitripTravelGereralitemUpdateAPIResponse struct { + model.CommonResponse + AlitripTravelGereralitemUpdateAPIResponseModel +} + +// 除度假线路、门票以外的其他类目商品维护接口(商品ID重复将自动更新) 成功返回结果 +type AlitripTravelGereralitemUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_gereralitem_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品发布结果 + TravelItem *TopTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` +} diff --git a/model/travel/AlitripTravelGereralitemUpdateResponse.go b/model/travel/AlitripTravelGereralitemUpdateResponse.go deleted file mode 100644 index f294391094..0000000000 --- a/model/travel/AlitripTravelGereralitemUpdateResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -除度假线路、门票以外的其他类目商品维护接口(商品ID重复将自动更新) API返回值 -alitrip.travel.gereralitem.update - -除度假线路、门票以外的商品维护接口;目前该接口支持以下类目; -(123740001:客栈周边交通服务、125038002:旅行设备/GPS/相机租赁、50018298:船票、124084006:酒店商品升级差价、125228016:预约卡券、50011954:旅游服务、50012913:酒店优惠券、50214003:旅游会员卡/酒店会员卡、50012917:巴士/地铁/交通卡/一卡通、50134002:代客烧香/还愿、50026091:境外火车票、123742001:客栈周边餐饮服务、50019817:海外套餐(该类目已废弃)、125210016:团建/outing、124212017:其他预定、50025888:机场行李托运取送寄存、50025831:旅游年票/年卡、124142009:旅游商品升级差价/押金、123744001:客栈周边其他服务、50012762:广深口岸港澳送关服务、50025880:旅行拍照/婚纱摄影、123166001:酒店餐饮美食(该类目已废弃)、50668002:手绘地图/明信片、50024210:旅游购物/纪念品、50024208:酒店用品、50024215:购物折扣卡券、50025878:酒店SPA/足浴/温泉、50024212:旅游必备品、123738001:客栈周边票务服务、123164002:游泳健身(该类目已废弃)、50686003:机票增值产品、123164001:酒店SPA(该类目已废弃)、124832008:美食卡券/酒店餐饮卡券、125408001:旅游定制服务、50018112:旅行社/网站优惠券、124258004:酒店客房优惠券(该类目已废弃)、50104001:机场周边停车位、124730002:内机机场/火车站送关服务、124090010:其他) -*/ -type AlitripTravelGereralitemUpdateAPIResponse struct { - model.CommonResponse - AlitripTravelGereralitemUpdateResponse -} - -// 除度假线路、门票以外的其他类目商品维护接口(商品ID重复将自动更新) 成功返回结果 -type AlitripTravelGereralitemUpdateResponse struct { - XMLName xml.Name `xml:"alitrip_travel_gereralitem_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品发布结果 - TravelItem *TopTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` -} diff --git a/model/travel/AlitripTravelGereralproductUpdateAPIRequest.go b/model/travel/AlitripTravelGereralproductUpdateAPIRequest.go new file mode 100644 index 0000000000..1b99e51723 --- /dev/null +++ b/model/travel/AlitripTravelGereralproductUpdateAPIRequest.go @@ -0,0 +1,108 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通用类目产品发布编辑 API请求 +alitrip.travel.gereralproduct.update + +提供给飞猪供销平台供应商发布编辑通用类目产品的API +*/ +type AlitripTravelGereralproductUpdateAPIRequest struct { + model.Params + // 产品基本信息 + _baseInfo *GeneralProductBaseInfo + // 退款规则结构 + _refundInfo *ItemRefundInfo + // 必填,预定规则结构。示例: [{ "rule_type": "fee_excluded", "rule_desc": "费用包含描述"},{ "rule_type": "fee_included", "rule_desc": "费用不含描述"},{ "rule_type": "order_info", "rule_desc": "预定须知描述"}] + _bookingRules []BookingRuleInfo + // 产品销售信息 + _productSaleInfo *ProductSaleInfo + // 更新sku信息,仅限日历商品使用 + _dateSkuInfoList []DateSkuInfo +} + +// 初始化AlitripTravelGereralproductUpdateAPIRequest对象 +func NewAlitripTravelGereralproductUpdateRequest() *AlitripTravelGereralproductUpdateAPIRequest{ + return &AlitripTravelGereralproductUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelGereralproductUpdateAPIRequest) GetApiMethodName() string { + return "alitrip.travel.gereralproduct.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelGereralproductUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BaseInfo Setter +// 产品基本信息 +func (r *AlitripTravelGereralproductUpdateAPIRequest) SetBaseInfo(_baseInfo *GeneralProductBaseInfo) error { + r._baseInfo = _baseInfo + r.Set("base_info", _baseInfo) + return nil +} + +// BaseInfo Getter +func (r AlitripTravelGereralproductUpdateAPIRequest) GetBaseInfo() *GeneralProductBaseInfo { + return r._baseInfo +} +// RefundInfo Setter +// 退款规则结构 +func (r *AlitripTravelGereralproductUpdateAPIRequest) SetRefundInfo(_refundInfo *ItemRefundInfo) error { + r._refundInfo = _refundInfo + r.Set("refund_info", _refundInfo) + return nil +} + +// RefundInfo Getter +func (r AlitripTravelGereralproductUpdateAPIRequest) GetRefundInfo() *ItemRefundInfo { + return r._refundInfo +} +// BookingRules Setter +// 必填,预定规则结构。示例: [{ "rule_type": "fee_excluded", "rule_desc": "费用包含描述"},{ "rule_type": "fee_included", "rule_desc": "费用不含描述"},{ "rule_type": "order_info", "rule_desc": "预定须知描述"}] +func (r *AlitripTravelGereralproductUpdateAPIRequest) SetBookingRules(_bookingRules []BookingRuleInfo) error { + r._bookingRules = _bookingRules + r.Set("booking_rules", _bookingRules) + return nil +} + +// BookingRules Getter +func (r AlitripTravelGereralproductUpdateAPIRequest) GetBookingRules() []BookingRuleInfo { + return r._bookingRules +} +// ProductSaleInfo Setter +// 产品销售信息 +func (r *AlitripTravelGereralproductUpdateAPIRequest) SetProductSaleInfo(_productSaleInfo *ProductSaleInfo) error { + r._productSaleInfo = _productSaleInfo + r.Set("product_sale_info", _productSaleInfo) + return nil +} + +// ProductSaleInfo Getter +func (r AlitripTravelGereralproductUpdateAPIRequest) GetProductSaleInfo() *ProductSaleInfo { + return r._productSaleInfo +} +// DateSkuInfoList Setter +// 更新sku信息,仅限日历商品使用 +func (r *AlitripTravelGereralproductUpdateAPIRequest) SetDateSkuInfoList(_dateSkuInfoList []DateSkuInfo) error { + r._dateSkuInfoList = _dateSkuInfoList + r.Set("date_sku_info_list", _dateSkuInfoList) + return nil +} + +// DateSkuInfoList Getter +func (r AlitripTravelGereralproductUpdateAPIRequest) GetDateSkuInfoList() []DateSkuInfo { + return r._dateSkuInfoList +} diff --git a/model/travel/AlitripTravelGereralproductUpdateAPIResponse.go b/model/travel/AlitripTravelGereralproductUpdateAPIResponse.go new file mode 100644 index 0000000000..44e0508e0f --- /dev/null +++ b/model/travel/AlitripTravelGereralproductUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通用类目产品发布编辑 API返回值 +alitrip.travel.gereralproduct.update + +提供给飞猪供销平台供应商发布编辑通用类目产品的API +*/ +type AlitripTravelGereralproductUpdateAPIResponse struct { + model.CommonResponse + AlitripTravelGereralproductUpdateAPIResponseModel +} + +// 通用类目产品发布编辑 成功返回结果 +type AlitripTravelGereralproductUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_gereralproduct_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // firstResult + FirstResult *TopTravelItem `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/travel/AlitripTravelGereralproductUpdateResponse.go b/model/travel/AlitripTravelGereralproductUpdateResponse.go deleted file mode 100644 index b7d2196afd..0000000000 --- a/model/travel/AlitripTravelGereralproductUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通用类目产品发布编辑 API返回值 -alitrip.travel.gereralproduct.update - -提供给飞猪供销平台供应商发布编辑通用类目产品的API -*/ -type AlitripTravelGereralproductUpdateAPIResponse struct { - model.CommonResponse - AlitripTravelGereralproductUpdateResponse -} - -// 通用类目产品发布编辑 成功返回结果 -type AlitripTravelGereralproductUpdateResponse struct { - XMLName xml.Name `xml:"alitrip_travel_gereralproduct_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // firstResult - FirstResult *TopTravelItem `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/travel/AlitripTravelGereralskuUpdateAPIRequest.go b/model/travel/AlitripTravelGereralskuUpdateAPIRequest.go new file mode 100644 index 0000000000..b5d4a190ee --- /dev/null +++ b/model/travel/AlitripTravelGereralskuUpdateAPIRequest.go @@ -0,0 +1,136 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发布SKU信息(如果properties重复 则更新) API请求 +alitrip.travel.gereralsku.update + +发布SKU信息(如果properties重复 则更新) +*/ +type AlitripTravelGereralskuUpdateAPIRequest struct { + model.Params + // 淘宝商品ID + _itemId int64 + // Sku的销售价格,普通商品使用。精确到2位小数;单位:分。如:20007,表示:200元7分。修改后的sku价格要保证商品的价格在所有sku价格所形成的价格区间内(例如:商品价格为6元,sku价格有5元、10元两种,如果要修改5元sku的价格,那么修改的范围只能是0-6元之间;如果要修改10元的sku,那么修改的范围只能是6到无穷大的区间中) + _price int64 + // Sku的库存数量,普通商品使用。sku的总数量应该小于等于商品总数量(Item的NUM),sku数量变化后item的总数量也会随着变化。取值范围:大于等于零的整数 + _quantity int64 + // 商家编码 + _outerId string + // sku销售属性别名;如套餐1 需要调整成其他 需要在这里修改 + _alias []PropertyAliasInfo + // 商品属性列表;由类目的属性PID和VID组成,属性的pid调用taobao.itemprops.get取得,属性值的vid用taobao.itempropvalues.get取得vid。如果该类目下面没有属性,可以不用填写。如果有属性,必选属性必填,其他非必选属性可以选择不填写.属性不能超过35对 + _properties []CatPropInfo + // SKU的销售价格库存,日历商品使用 + _dateList []DateInventoryAndPrice +} + +// 初始化AlitripTravelGereralskuUpdateAPIRequest对象 +func NewAlitripTravelGereralskuUpdateRequest() *AlitripTravelGereralskuUpdateAPIRequest{ + return &AlitripTravelGereralskuUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelGereralskuUpdateAPIRequest) GetApiMethodName() string { + return "alitrip.travel.gereralsku.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelGereralskuUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 淘宝商品ID +func (r *AlitripTravelGereralskuUpdateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlitripTravelGereralskuUpdateAPIRequest) GetItemId() int64 { + return r._itemId +} +// Price Setter +// Sku的销售价格,普通商品使用。精确到2位小数;单位:分。如:20007,表示:200元7分。修改后的sku价格要保证商品的价格在所有sku价格所形成的价格区间内(例如:商品价格为6元,sku价格有5元、10元两种,如果要修改5元sku的价格,那么修改的范围只能是0-6元之间;如果要修改10元的sku,那么修改的范围只能是6到无穷大的区间中) +func (r *AlitripTravelGereralskuUpdateAPIRequest) SetPrice(_price int64) error { + r._price = _price + r.Set("price", _price) + return nil +} + +// Price Getter +func (r AlitripTravelGereralskuUpdateAPIRequest) GetPrice() int64 { + return r._price +} +// Quantity Setter +// Sku的库存数量,普通商品使用。sku的总数量应该小于等于商品总数量(Item的NUM),sku数量变化后item的总数量也会随着变化。取值范围:大于等于零的整数 +func (r *AlitripTravelGereralskuUpdateAPIRequest) SetQuantity(_quantity int64) error { + r._quantity = _quantity + r.Set("quantity", _quantity) + return nil +} + +// Quantity Getter +func (r AlitripTravelGereralskuUpdateAPIRequest) GetQuantity() int64 { + return r._quantity +} +// OuterId Setter +// 商家编码 +func (r *AlitripTravelGereralskuUpdateAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r AlitripTravelGereralskuUpdateAPIRequest) GetOuterId() string { + return r._outerId +} +// Alias Setter +// sku销售属性别名;如套餐1 需要调整成其他 需要在这里修改 +func (r *AlitripTravelGereralskuUpdateAPIRequest) SetAlias(_alias []PropertyAliasInfo) error { + r._alias = _alias + r.Set("alias", _alias) + return nil +} + +// Alias Getter +func (r AlitripTravelGereralskuUpdateAPIRequest) GetAlias() []PropertyAliasInfo { + return r._alias +} +// Properties Setter +// 商品属性列表;由类目的属性PID和VID组成,属性的pid调用taobao.itemprops.get取得,属性值的vid用taobao.itempropvalues.get取得vid。如果该类目下面没有属性,可以不用填写。如果有属性,必选属性必填,其他非必选属性可以选择不填写.属性不能超过35对 +func (r *AlitripTravelGereralskuUpdateAPIRequest) SetProperties(_properties []CatPropInfo) error { + r._properties = _properties + r.Set("properties", _properties) + return nil +} + +// Properties Getter +func (r AlitripTravelGereralskuUpdateAPIRequest) GetProperties() []CatPropInfo { + return r._properties +} +// DateList Setter +// SKU的销售价格库存,日历商品使用 +func (r *AlitripTravelGereralskuUpdateAPIRequest) SetDateList(_dateList []DateInventoryAndPrice) error { + r._dateList = _dateList + r.Set("date_list", _dateList) + return nil +} + +// DateList Getter +func (r AlitripTravelGereralskuUpdateAPIRequest) GetDateList() []DateInventoryAndPrice { + return r._dateList +} diff --git a/model/travel/AlitripTravelGereralskuUpdateAPIResponse.go b/model/travel/AlitripTravelGereralskuUpdateAPIResponse.go new file mode 100644 index 0000000000..f67a7a469f --- /dev/null +++ b/model/travel/AlitripTravelGereralskuUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发布SKU信息(如果properties重复 则更新) API返回值 +alitrip.travel.gereralsku.update + +发布SKU信息(如果properties重复 则更新) +*/ +type AlitripTravelGereralskuUpdateAPIResponse struct { + model.CommonResponse + AlitripTravelGereralskuUpdateAPIResponseModel +} + +// 发布SKU信息(如果properties重复 则更新) 成功返回结果 +type AlitripTravelGereralskuUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_gereralsku_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + FirstResult *TopTravelItem `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/travel/AlitripTravelGereralskuUpdateResponse.go b/model/travel/AlitripTravelGereralskuUpdateResponse.go deleted file mode 100644 index bf83e4e7f8..0000000000 --- a/model/travel/AlitripTravelGereralskuUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发布SKU信息(如果properties重复 则更新) API返回值 -alitrip.travel.gereralsku.update - -发布SKU信息(如果properties重复 则更新) -*/ -type AlitripTravelGereralskuUpdateAPIResponse struct { - model.CommonResponse - AlitripTravelGereralskuUpdateResponse -} - -// 发布SKU信息(如果properties重复 则更新) 成功返回结果 -type AlitripTravelGereralskuUpdateResponse struct { - XMLName xml.Name `xml:"alitrip_travel_gereralsku_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - FirstResult *TopTravelItem `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/travel/AlitripTravelPoiSearchAPIRequest.go b/model/travel/AlitripTravelPoiSearchAPIRequest.go new file mode 100644 index 0000000000..bfe9b78438 --- /dev/null +++ b/model/travel/AlitripTravelPoiSearchAPIRequest.go @@ -0,0 +1,80 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +POI信息查询 API请求 +alitrip.travel.poi.search + +POI信息查询,用于商品更新使用 +*/ +type AlitripTravelPoiSearchAPIRequest struct { + model.Params + // POI信息ID; + _id int64 + // POI信息名称 + _name string + // POI类型;1->机场,2->火车站,3->汽车站,4->酒店,5->景点,6->购物,7->美食,9->玩乐,10->阿里旅行服务站,11->服务,100->其他 + _type int64 +} + +// 初始化AlitripTravelPoiSearchAPIRequest对象 +func NewAlitripTravelPoiSearchRequest() *AlitripTravelPoiSearchAPIRequest{ + return &AlitripTravelPoiSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelPoiSearchAPIRequest) GetApiMethodName() string { + return "alitrip.travel.poi.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelPoiSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// POI信息ID; +func (r *AlitripTravelPoiSearchAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlitripTravelPoiSearchAPIRequest) GetId() int64 { + return r._id +} +// Name Setter +// POI信息名称 +func (r *AlitripTravelPoiSearchAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r AlitripTravelPoiSearchAPIRequest) GetName() string { + return r._name +} +// Type Setter +// POI类型;1->机场,2->火车站,3->汽车站,4->酒店,5->景点,6->购物,7->美食,9->玩乐,10->阿里旅行服务站,11->服务,100->其他 +func (r *AlitripTravelPoiSearchAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlitripTravelPoiSearchAPIRequest) GetType() int64 { + return r._type +} diff --git a/model/travel/AlitripTravelPoiSearchAPIResponse.go b/model/travel/AlitripTravelPoiSearchAPIResponse.go new file mode 100644 index 0000000000..81622ee389 --- /dev/null +++ b/model/travel/AlitripTravelPoiSearchAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +POI信息查询 API返回值 +alitrip.travel.poi.search + +POI信息查询,用于商品更新使用 +*/ +type AlitripTravelPoiSearchAPIResponse struct { + model.CommonResponse + AlitripTravelPoiSearchAPIResponseModel +} + +// POI信息查询 成功返回结果 +type AlitripTravelPoiSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_poi_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // POI详情 + Results []Poi `json:"results,omitempty" xml:"results>poi,omitempty"` +} diff --git a/model/travel/AlitripTravelPoiSearchResponse.go b/model/travel/AlitripTravelPoiSearchResponse.go deleted file mode 100644 index 27001cc92f..0000000000 --- a/model/travel/AlitripTravelPoiSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -POI信息查询 API返回值 -alitrip.travel.poi.search - -POI信息查询,用于商品更新使用 -*/ -type AlitripTravelPoiSearchAPIResponse struct { - model.CommonResponse - AlitripTravelPoiSearchResponse -} - -// POI信息查询 成功返回结果 -type AlitripTravelPoiSearchResponse struct { - XMLName xml.Name `xml:"alitrip_travel_poi_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // POI详情 - Results []Poi `json:"results,omitempty" xml:"results>poi,omitempty"` -} diff --git a/model/travel/AlitripTravelProductGereralskuUpdateAPIRequest.go b/model/travel/AlitripTravelProductGereralskuUpdateAPIRequest.go new file mode 100644 index 0000000000..e22da7c234 --- /dev/null +++ b/model/travel/AlitripTravelProductGereralskuUpdateAPIRequest.go @@ -0,0 +1,136 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(供销)船票通用类目sku新增&编辑API API请求 +alitrip.travel.product.gereralsku.update + +发布SKU信息(如果properties重复 则更新) +*/ +type AlitripTravelProductGereralskuUpdateAPIRequest struct { + model.Params + // sku销售属性别名;如套餐1 需要调整成其他 需要在这里修改 + _alias []PropertyAliasInfo + // 商品属性列表;由类目的属性PID和VID组成,属性的pid调用taobao.itemprops.get取得,属性值的vid用taobao.itempropvalues.get取得vid。如果该类目下面没有属性,可以不用填写。如果有属性,必选属性必填,其他非必选属性可以选择不填写.属性不能超过35对 + _properties []CatPropInfo + // 淘宝商品ID + _itemId int64 + // Sku的销售价格。精确到2位小数;单位:分。如:20007,表示:200元7分。修改后的sku价格要保证商品的价格在所有sku价格所形成的价格区间内(例如:商品价格为6元,sku价格有5元、10元两种,如果要修改5元sku的价格,那么修改的范围只能是0-6元之间;如果要修改10元的sku,那么修改的范围只能是6到无穷大的区间中) + _price int64 + // Sku的库存数量。sku的总数量应该小于等于商品总数量(Item的NUM),sku数量变化后item的总数量也会随着变化。取值范围:大于等于零的整数 + _quantity int64 + // 商家编码 + _outerId string + // SKU的销售价格库存,日历商品使用 + _dateList []DateInventoryAndPrice +} + +// 初始化AlitripTravelProductGereralskuUpdateAPIRequest对象 +func NewAlitripTravelProductGereralskuUpdateRequest() *AlitripTravelProductGereralskuUpdateAPIRequest{ + return &AlitripTravelProductGereralskuUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelProductGereralskuUpdateAPIRequest) GetApiMethodName() string { + return "alitrip.travel.product.gereralsku.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelProductGereralskuUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Alias Setter +// sku销售属性别名;如套餐1 需要调整成其他 需要在这里修改 +func (r *AlitripTravelProductGereralskuUpdateAPIRequest) SetAlias(_alias []PropertyAliasInfo) error { + r._alias = _alias + r.Set("alias", _alias) + return nil +} + +// Alias Getter +func (r AlitripTravelProductGereralskuUpdateAPIRequest) GetAlias() []PropertyAliasInfo { + return r._alias +} +// Properties Setter +// 商品属性列表;由类目的属性PID和VID组成,属性的pid调用taobao.itemprops.get取得,属性值的vid用taobao.itempropvalues.get取得vid。如果该类目下面没有属性,可以不用填写。如果有属性,必选属性必填,其他非必选属性可以选择不填写.属性不能超过35对 +func (r *AlitripTravelProductGereralskuUpdateAPIRequest) SetProperties(_properties []CatPropInfo) error { + r._properties = _properties + r.Set("properties", _properties) + return nil +} + +// Properties Getter +func (r AlitripTravelProductGereralskuUpdateAPIRequest) GetProperties() []CatPropInfo { + return r._properties +} +// ItemId Setter +// 淘宝商品ID +func (r *AlitripTravelProductGereralskuUpdateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlitripTravelProductGereralskuUpdateAPIRequest) GetItemId() int64 { + return r._itemId +} +// Price Setter +// Sku的销售价格。精确到2位小数;单位:分。如:20007,表示:200元7分。修改后的sku价格要保证商品的价格在所有sku价格所形成的价格区间内(例如:商品价格为6元,sku价格有5元、10元两种,如果要修改5元sku的价格,那么修改的范围只能是0-6元之间;如果要修改10元的sku,那么修改的范围只能是6到无穷大的区间中) +func (r *AlitripTravelProductGereralskuUpdateAPIRequest) SetPrice(_price int64) error { + r._price = _price + r.Set("price", _price) + return nil +} + +// Price Getter +func (r AlitripTravelProductGereralskuUpdateAPIRequest) GetPrice() int64 { + return r._price +} +// Quantity Setter +// Sku的库存数量。sku的总数量应该小于等于商品总数量(Item的NUM),sku数量变化后item的总数量也会随着变化。取值范围:大于等于零的整数 +func (r *AlitripTravelProductGereralskuUpdateAPIRequest) SetQuantity(_quantity int64) error { + r._quantity = _quantity + r.Set("quantity", _quantity) + return nil +} + +// Quantity Getter +func (r AlitripTravelProductGereralskuUpdateAPIRequest) GetQuantity() int64 { + return r._quantity +} +// OuterId Setter +// 商家编码 +func (r *AlitripTravelProductGereralskuUpdateAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r AlitripTravelProductGereralskuUpdateAPIRequest) GetOuterId() string { + return r._outerId +} +// DateList Setter +// SKU的销售价格库存,日历商品使用 +func (r *AlitripTravelProductGereralskuUpdateAPIRequest) SetDateList(_dateList []DateInventoryAndPrice) error { + r._dateList = _dateList + r.Set("date_list", _dateList) + return nil +} + +// DateList Getter +func (r AlitripTravelProductGereralskuUpdateAPIRequest) GetDateList() []DateInventoryAndPrice { + return r._dateList +} diff --git a/model/travel/AlitripTravelProductGereralskuUpdateAPIResponse.go b/model/travel/AlitripTravelProductGereralskuUpdateAPIResponse.go new file mode 100644 index 0000000000..54509d5ac0 --- /dev/null +++ b/model/travel/AlitripTravelProductGereralskuUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(供销)船票通用类目sku新增&编辑API API返回值 +alitrip.travel.product.gereralsku.update + +发布SKU信息(如果properties重复 则更新) +*/ +type AlitripTravelProductGereralskuUpdateAPIResponse struct { + model.CommonResponse + AlitripTravelProductGereralskuUpdateAPIResponseModel +} + +// (供销)船票通用类目sku新增&编辑API 成功返回结果 +type AlitripTravelProductGereralskuUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_product_gereralsku_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + FirstResult *TopTravelItem `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/travel/AlitripTravelProductGereralskuUpdateResponse.go b/model/travel/AlitripTravelProductGereralskuUpdateResponse.go deleted file mode 100644 index 62e8518670..0000000000 --- a/model/travel/AlitripTravelProductGereralskuUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(供销)船票通用类目sku新增&编辑API API返回值 -alitrip.travel.product.gereralsku.update - -发布SKU信息(如果properties重复 则更新) -*/ -type AlitripTravelProductGereralskuUpdateAPIResponse struct { - model.CommonResponse - AlitripTravelProductGereralskuUpdateResponse -} - -// (供销)船票通用类目sku新增&编辑API 成功返回结果 -type AlitripTravelProductGereralskuUpdateResponse struct { - XMLName xml.Name `xml:"alitrip_travel_product_gereralsku_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - FirstResult *TopTravelItem `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/travel/TaobaoAlitripTravelBaseinfoCitiesGetAPIRequest.go b/model/travel/TaobaoAlitripTravelBaseinfoCitiesGetAPIRequest.go new file mode 100644 index 0000000000..9393adf562 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelBaseinfoCitiesGetAPIRequest.go @@ -0,0 +1,66 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】度假线路商品发布时基础信息获取接口:地址数据查询 API请求 +taobao.alitrip.travel.baseinfo.cities.get + +旅行度假新商品发布时可用的扩展接口,用于获取可用的出发地或目的地城市列表。 +*/ +type TaobaoAlitripTravelBaseinfoCitiesGetAPIRequest struct { + model.Params + // 1-获取目的地城市列表 2-获取出发地城市列表 + _iocType int64 + // 1-境内跟团游 2-境内自由行 3-出境跟团游 4-出境自由行 5-境外当地玩乐 6-国际邮轮 9-境内邮轮 + _catType int64 +} + +// 初始化TaobaoAlitripTravelBaseinfoCitiesGetAPIRequest对象 +func NewTaobaoAlitripTravelBaseinfoCitiesGetRequest() *TaobaoAlitripTravelBaseinfoCitiesGetAPIRequest{ + return &TaobaoAlitripTravelBaseinfoCitiesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelBaseinfoCitiesGetAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.baseinfo.cities.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelBaseinfoCitiesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IocType Setter +// 1-获取目的地城市列表 2-获取出发地城市列表 +func (r *TaobaoAlitripTravelBaseinfoCitiesGetAPIRequest) SetIocType(_iocType int64) error { + r._iocType = _iocType + r.Set("ioc_type", _iocType) + return nil +} + +// IocType Getter +func (r TaobaoAlitripTravelBaseinfoCitiesGetAPIRequest) GetIocType() int64 { + return r._iocType +} +// CatType Setter +// 1-境内跟团游 2-境内自由行 3-出境跟团游 4-出境自由行 5-境外当地玩乐 6-国际邮轮 9-境内邮轮 +func (r *TaobaoAlitripTravelBaseinfoCitiesGetAPIRequest) SetCatType(_catType int64) error { + r._catType = _catType + r.Set("cat_type", _catType) + return nil +} + +// CatType Getter +func (r TaobaoAlitripTravelBaseinfoCitiesGetAPIRequest) GetCatType() int64 { + return r._catType +} diff --git a/model/travel/TaobaoAlitripTravelBaseinfoCitiesGetAPIResponse.go b/model/travel/TaobaoAlitripTravelBaseinfoCitiesGetAPIResponse.go new file mode 100644 index 0000000000..1da4c7d725 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelBaseinfoCitiesGetAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】度假线路商品发布时基础信息获取接口:地址数据查询 API返回值 +taobao.alitrip.travel.baseinfo.cities.get + +旅行度假新商品发布时可用的扩展接口,用于获取可用的出发地或目的地城市列表。 +*/ +type TaobaoAlitripTravelBaseinfoCitiesGetAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelBaseinfoCitiesGetAPIResponseModel +} + +// 【API3.0】度假线路商品发布时基础信息获取接口:地址数据查询 成功返回结果 +type TaobaoAlitripTravelBaseinfoCitiesGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_baseinfo_cities_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 地区级联城市列表,返回数据为json数组结构的字符串 + IocInfos string `json:"ioc_infos,omitempty" xml:"ioc_infos,omitempty"` +} diff --git a/model/travel/TaobaoAlitripTravelBaseinfoCitiesGetResponse.go b/model/travel/TaobaoAlitripTravelBaseinfoCitiesGetResponse.go deleted file mode 100644 index 2230bee216..0000000000 --- a/model/travel/TaobaoAlitripTravelBaseinfoCitiesGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【API3.0】度假线路商品发布时基础信息获取接口:地址数据查询 API返回值 -taobao.alitrip.travel.baseinfo.cities.get - -旅行度假新商品发布时可用的扩展接口,用于获取可用的出发地或目的地城市列表。 -*/ -type TaobaoAlitripTravelBaseinfoCitiesGetAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelBaseinfoCitiesGetResponse -} - -// 【API3.0】度假线路商品发布时基础信息获取接口:地址数据查询 成功返回结果 -type TaobaoAlitripTravelBaseinfoCitiesGetResponse struct { - XMLName xml.Name `xml:"alitrip_travel_baseinfo_cities_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 地区级联城市列表,返回数据为json数组结构的字符串 - IocInfos string `json:"ioc_infos,omitempty" xml:"ioc_infos,omitempty"` -} diff --git a/model/travel/TaobaoAlitripTravelBaseinfoCruiseGetAPIRequest.go b/model/travel/TaobaoAlitripTravelBaseinfoCruiseGetAPIRequest.go new file mode 100644 index 0000000000..2931236a17 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelBaseinfoCruiseGetAPIRequest.go @@ -0,0 +1,52 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】度假线路商品发布时基础信息获取接口:邮轮扩展信息获取 API请求 +taobao.alitrip.travel.baseinfo.cruise.get + +旅行度假新商品发布时可用的扩展接口,用于获取邮轮类目相关扩展信息。 +*/ +type TaobaoAlitripTravelBaseinfoCruiseGetAPIRequest struct { + model.Params + // true-获取国际邮轮类目扩展信息;false-获取国内邮轮类目扩展信息 + _isOverseas bool +} + +// 初始化TaobaoAlitripTravelBaseinfoCruiseGetAPIRequest对象 +func NewTaobaoAlitripTravelBaseinfoCruiseGetRequest() *TaobaoAlitripTravelBaseinfoCruiseGetAPIRequest{ + return &TaobaoAlitripTravelBaseinfoCruiseGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelBaseinfoCruiseGetAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.baseinfo.cruise.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelBaseinfoCruiseGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IsOverseas Setter +// true-获取国际邮轮类目扩展信息;false-获取国内邮轮类目扩展信息 +func (r *TaobaoAlitripTravelBaseinfoCruiseGetAPIRequest) SetIsOverseas(_isOverseas bool) error { + r._isOverseas = _isOverseas + r.Set("is_overseas", _isOverseas) + return nil +} + +// IsOverseas Getter +func (r TaobaoAlitripTravelBaseinfoCruiseGetAPIRequest) GetIsOverseas() bool { + return r._isOverseas +} diff --git a/model/travel/TaobaoAlitripTravelBaseinfoCruiseGetAPIResponse.go b/model/travel/TaobaoAlitripTravelBaseinfoCruiseGetAPIResponse.go new file mode 100644 index 0000000000..fdf7b9147f --- /dev/null +++ b/model/travel/TaobaoAlitripTravelBaseinfoCruiseGetAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】度假线路商品发布时基础信息获取接口:邮轮扩展信息获取 API返回值 +taobao.alitrip.travel.baseinfo.cruise.get + +旅行度假新商品发布时可用的扩展接口,用于获取邮轮类目相关扩展信息。 +*/ +type TaobaoAlitripTravelBaseinfoCruiseGetAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelBaseinfoCruiseGetAPIResponseModel +} + +// 【API3.0】度假线路商品发布时基础信息获取接口:邮轮扩展信息获取 成功返回结果 +type TaobaoAlitripTravelBaseinfoCruiseGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_baseinfo_cruise_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 邮轮类目扩展信息的json格式字符串 + CruiseExtInfos string `json:"cruise_ext_infos,omitempty" xml:"cruise_ext_infos,omitempty"` +} diff --git a/model/travel/TaobaoAlitripTravelBaseinfoCruiseGetResponse.go b/model/travel/TaobaoAlitripTravelBaseinfoCruiseGetResponse.go deleted file mode 100644 index e33da729da..0000000000 --- a/model/travel/TaobaoAlitripTravelBaseinfoCruiseGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【API3.0】度假线路商品发布时基础信息获取接口:邮轮扩展信息获取 API返回值 -taobao.alitrip.travel.baseinfo.cruise.get - -旅行度假新商品发布时可用的扩展接口,用于获取邮轮类目相关扩展信息。 -*/ -type TaobaoAlitripTravelBaseinfoCruiseGetAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelBaseinfoCruiseGetResponse -} - -// 【API3.0】度假线路商品发布时基础信息获取接口:邮轮扩展信息获取 成功返回结果 -type TaobaoAlitripTravelBaseinfoCruiseGetResponse struct { - XMLName xml.Name `xml:"alitrip_travel_baseinfo_cruise_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 邮轮类目扩展信息的json格式字符串 - CruiseExtInfos string `json:"cruise_ext_infos,omitempty" xml:"cruise_ext_infos,omitempty"` -} diff --git a/model/travel/TaobaoAlitripTravelBaseinfoScenicsGetAPIRequest.go b/model/travel/TaobaoAlitripTravelBaseinfoScenicsGetAPIRequest.go new file mode 100644 index 0000000000..e688b27518 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelBaseinfoScenicsGetAPIRequest.go @@ -0,0 +1,80 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】基础信息获取接口:景点数据查询 API请求 +taobao.alitrip.travel.baseinfo.scenics.get + +商品发布辅助接口,用于飞猪度假或门票商品发布时 获取可用的景点(及景点下收费项目)信息列表。 +*/ +type TaobaoAlitripTravelBaseinfoScenicsGetAPIRequest struct { + model.Params + // 城市名称 + _city string + // 景点简称 + _scenic string + // 景点id,可选。若传了该值,则查询结果中只会保留该id的景点,其余景点信息将被过滤 + _scenicId int64 +} + +// 初始化TaobaoAlitripTravelBaseinfoScenicsGetAPIRequest对象 +func NewTaobaoAlitripTravelBaseinfoScenicsGetRequest() *TaobaoAlitripTravelBaseinfoScenicsGetAPIRequest{ + return &TaobaoAlitripTravelBaseinfoScenicsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelBaseinfoScenicsGetAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.baseinfo.scenics.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelBaseinfoScenicsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// City Setter +// 城市名称 +func (r *TaobaoAlitripTravelBaseinfoScenicsGetAPIRequest) SetCity(_city string) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r TaobaoAlitripTravelBaseinfoScenicsGetAPIRequest) GetCity() string { + return r._city +} +// Scenic Setter +// 景点简称 +func (r *TaobaoAlitripTravelBaseinfoScenicsGetAPIRequest) SetScenic(_scenic string) error { + r._scenic = _scenic + r.Set("scenic", _scenic) + return nil +} + +// Scenic Getter +func (r TaobaoAlitripTravelBaseinfoScenicsGetAPIRequest) GetScenic() string { + return r._scenic +} +// ScenicId Setter +// 景点id,可选。若传了该值,则查询结果中只会保留该id的景点,其余景点信息将被过滤 +func (r *TaobaoAlitripTravelBaseinfoScenicsGetAPIRequest) SetScenicId(_scenicId int64) error { + r._scenicId = _scenicId + r.Set("scenic_id", _scenicId) + return nil +} + +// ScenicId Getter +func (r TaobaoAlitripTravelBaseinfoScenicsGetAPIRequest) GetScenicId() int64 { + return r._scenicId +} diff --git a/model/travel/TaobaoAlitripTravelBaseinfoScenicsGetAPIResponse.go b/model/travel/TaobaoAlitripTravelBaseinfoScenicsGetAPIResponse.go new file mode 100644 index 0000000000..e5354eee76 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelBaseinfoScenicsGetAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】基础信息获取接口:景点数据查询 API返回值 +taobao.alitrip.travel.baseinfo.scenics.get + +商品发布辅助接口,用于飞猪度假或门票商品发布时 获取可用的景点(及景点下收费项目)信息列表。 +*/ +type TaobaoAlitripTravelBaseinfoScenicsGetAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelBaseinfoScenicsGetAPIResponseModel +} + +// 【API3.0】基础信息获取接口:景点数据查询 成功返回结果 +type TaobaoAlitripTravelBaseinfoScenicsGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_baseinfo_scenics_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回详细景点信息,返回数据为json数组结构的字符串 + ScenicInfos string `json:"scenic_infos,omitempty" xml:"scenic_infos,omitempty"` +} diff --git a/model/travel/TaobaoAlitripTravelBaseinfoScenicsGetResponse.go b/model/travel/TaobaoAlitripTravelBaseinfoScenicsGetResponse.go deleted file mode 100644 index afeaff23c9..0000000000 --- a/model/travel/TaobaoAlitripTravelBaseinfoScenicsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【API3.0】基础信息获取接口:景点数据查询 API返回值 -taobao.alitrip.travel.baseinfo.scenics.get - -商品发布辅助接口,用于飞猪度假或门票商品发布时 获取可用的景点(及景点下收费项目)信息列表。 -*/ -type TaobaoAlitripTravelBaseinfoScenicsGetAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelBaseinfoScenicsGetResponse -} - -// 【API3.0】基础信息获取接口:景点数据查询 成功返回结果 -type TaobaoAlitripTravelBaseinfoScenicsGetResponse struct { - XMLName xml.Name `xml:"alitrip_travel_baseinfo_scenics_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回详细景点信息,返回数据为json数组结构的字符串 - ScenicInfos string `json:"scenic_infos,omitempty" xml:"scenic_infos,omitempty"` -} diff --git a/model/travel/TaobaoAlitripTravelItemBaseAddAPIRequest.go b/model/travel/TaobaoAlitripTravelItemBaseAddAPIRequest.go new file mode 100644 index 0000000000..8cace90d4b --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemBaseAddAPIRequest.go @@ -0,0 +1,164 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】度假线路商品发布接口 API请求 +taobao.alitrip.travel.item.base.add + +旅行度假新商品发布接口。目前支持的类目包括:境内跟团游、出境跟团游、境内自由行、出境自由行、境内当地玩乐、境外玩乐套餐、境内邮轮、国际邮轮 +*/ +type TaobaoAlitripTravelItemBaseAddAPIRequest struct { + model.Params + // 必填,商品基本信息 + _baseInfo *PontusTravelItemBaseInfo + // 必填,预定规则结构。示例: [{ "rule_type": "fee_excluded", "rule_desc": "费用包含描述"},{ "rule_type": "fee_included", "rule_desc": "费用不含描述"},{ "rule_type": "order_info", "rule_desc": "预定须知描述"}] + _bookingRules []PontusTravelBookingRuleInfo + // 特殊选填(当发布自由行商品时必填,其他情况不填)。自由行商品相关信息,自由行商品必填。大交通、酒店住宿、景点门票、租车、保险、餐饮、其他费用,自由行商品至少需要填写其中两项 + _freedomItemExt *PontusTravelFreedomItemExt + // 特殊选填(当发布跟团游商品时必填,其他情况不填)。跟团游商品相关信息,发布跟团游商品时必填 + _groupItemExt *PontusTravelGroupItemExt + // 选填,详细行程描述结构 + _itineraries []PontusTravelItemItineraryInfo + // 选填,退款规则结构 + _refundInfo *PontusTravelItemRefundInfo + // 选填,商品的销售属性相关信息 + _salesInfo *PontusTravelItemSaleInfo + // 特殊选填(当发布邮轮商品时必填,其他情况不填)邮轮商品相关信息,发布邮轮商品时必填 + _cruiseItemExt *CruiseItemExt + // 特殊选填(当发布同城活动商品时必填,其他情况不填)同城活动商品相关信息,发布同城活动商品时必填 + _tcwlItemExt *TcwlItemExt +} + +// 初始化TaobaoAlitripTravelItemBaseAddAPIRequest对象 +func NewTaobaoAlitripTravelItemBaseAddRequest() *TaobaoAlitripTravelItemBaseAddAPIRequest{ + return &TaobaoAlitripTravelItemBaseAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelItemBaseAddAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.item.base.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelItemBaseAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BaseInfo Setter +// 必填,商品基本信息 +func (r *TaobaoAlitripTravelItemBaseAddAPIRequest) SetBaseInfo(_baseInfo *PontusTravelItemBaseInfo) error { + r._baseInfo = _baseInfo + r.Set("base_info", _baseInfo) + return nil +} + +// BaseInfo Getter +func (r TaobaoAlitripTravelItemBaseAddAPIRequest) GetBaseInfo() *PontusTravelItemBaseInfo { + return r._baseInfo +} +// BookingRules Setter +// 必填,预定规则结构。示例: [{ "rule_type": "fee_excluded", "rule_desc": "费用包含描述"},{ "rule_type": "fee_included", "rule_desc": "费用不含描述"},{ "rule_type": "order_info", "rule_desc": "预定须知描述"}] +func (r *TaobaoAlitripTravelItemBaseAddAPIRequest) SetBookingRules(_bookingRules []PontusTravelBookingRuleInfo) error { + r._bookingRules = _bookingRules + r.Set("booking_rules", _bookingRules) + return nil +} + +// BookingRules Getter +func (r TaobaoAlitripTravelItemBaseAddAPIRequest) GetBookingRules() []PontusTravelBookingRuleInfo { + return r._bookingRules +} +// FreedomItemExt Setter +// 特殊选填(当发布自由行商品时必填,其他情况不填)。自由行商品相关信息,自由行商品必填。大交通、酒店住宿、景点门票、租车、保险、餐饮、其他费用,自由行商品至少需要填写其中两项 +func (r *TaobaoAlitripTravelItemBaseAddAPIRequest) SetFreedomItemExt(_freedomItemExt *PontusTravelFreedomItemExt) error { + r._freedomItemExt = _freedomItemExt + r.Set("freedom_item_ext", _freedomItemExt) + return nil +} + +// FreedomItemExt Getter +func (r TaobaoAlitripTravelItemBaseAddAPIRequest) GetFreedomItemExt() *PontusTravelFreedomItemExt { + return r._freedomItemExt +} +// GroupItemExt Setter +// 特殊选填(当发布跟团游商品时必填,其他情况不填)。跟团游商品相关信息,发布跟团游商品时必填 +func (r *TaobaoAlitripTravelItemBaseAddAPIRequest) SetGroupItemExt(_groupItemExt *PontusTravelGroupItemExt) error { + r._groupItemExt = _groupItemExt + r.Set("group_item_ext", _groupItemExt) + return nil +} + +// GroupItemExt Getter +func (r TaobaoAlitripTravelItemBaseAddAPIRequest) GetGroupItemExt() *PontusTravelGroupItemExt { + return r._groupItemExt +} +// Itineraries Setter +// 选填,详细行程描述结构 +func (r *TaobaoAlitripTravelItemBaseAddAPIRequest) SetItineraries(_itineraries []PontusTravelItemItineraryInfo) error { + r._itineraries = _itineraries + r.Set("itineraries", _itineraries) + return nil +} + +// Itineraries Getter +func (r TaobaoAlitripTravelItemBaseAddAPIRequest) GetItineraries() []PontusTravelItemItineraryInfo { + return r._itineraries +} +// RefundInfo Setter +// 选填,退款规则结构 +func (r *TaobaoAlitripTravelItemBaseAddAPIRequest) SetRefundInfo(_refundInfo *PontusTravelItemRefundInfo) error { + r._refundInfo = _refundInfo + r.Set("refund_info", _refundInfo) + return nil +} + +// RefundInfo Getter +func (r TaobaoAlitripTravelItemBaseAddAPIRequest) GetRefundInfo() *PontusTravelItemRefundInfo { + return r._refundInfo +} +// SalesInfo Setter +// 选填,商品的销售属性相关信息 +func (r *TaobaoAlitripTravelItemBaseAddAPIRequest) SetSalesInfo(_salesInfo *PontusTravelItemSaleInfo) error { + r._salesInfo = _salesInfo + r.Set("sales_info", _salesInfo) + return nil +} + +// SalesInfo Getter +func (r TaobaoAlitripTravelItemBaseAddAPIRequest) GetSalesInfo() *PontusTravelItemSaleInfo { + return r._salesInfo +} +// CruiseItemExt Setter +// 特殊选填(当发布邮轮商品时必填,其他情况不填)邮轮商品相关信息,发布邮轮商品时必填 +func (r *TaobaoAlitripTravelItemBaseAddAPIRequest) SetCruiseItemExt(_cruiseItemExt *CruiseItemExt) error { + r._cruiseItemExt = _cruiseItemExt + r.Set("cruise_item_ext", _cruiseItemExt) + return nil +} + +// CruiseItemExt Getter +func (r TaobaoAlitripTravelItemBaseAddAPIRequest) GetCruiseItemExt() *CruiseItemExt { + return r._cruiseItemExt +} +// TcwlItemExt Setter +// 特殊选填(当发布同城活动商品时必填,其他情况不填)同城活动商品相关信息,发布同城活动商品时必填 +func (r *TaobaoAlitripTravelItemBaseAddAPIRequest) SetTcwlItemExt(_tcwlItemExt *TcwlItemExt) error { + r._tcwlItemExt = _tcwlItemExt + r.Set("tcwl_item_ext", _tcwlItemExt) + return nil +} + +// TcwlItemExt Getter +func (r TaobaoAlitripTravelItemBaseAddAPIRequest) GetTcwlItemExt() *TcwlItemExt { + return r._tcwlItemExt +} diff --git a/model/travel/TaobaoAlitripTravelItemBaseAddAPIResponse.go b/model/travel/TaobaoAlitripTravelItemBaseAddAPIResponse.go new file mode 100644 index 0000000000..db8d494434 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemBaseAddAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】度假线路商品发布接口 API返回值 +taobao.alitrip.travel.item.base.add + +旅行度假新商品发布接口。目前支持的类目包括:境内跟团游、出境跟团游、境内自由行、出境自由行、境内当地玩乐、境外玩乐套餐、境内邮轮、国际邮轮 +*/ +type TaobaoAlitripTravelItemBaseAddAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelItemBaseAddAPIResponseModel +} + +// 【API3.0】度假线路商品发布接口 成功返回结果 +type TaobaoAlitripTravelItemBaseAddAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_item_base_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品发布结果 + TravelItem *TopTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` +} diff --git a/model/travel/TaobaoAlitripTravelItemBaseAddResponse.go b/model/travel/TaobaoAlitripTravelItemBaseAddResponse.go deleted file mode 100644 index e321397deb..0000000000 --- a/model/travel/TaobaoAlitripTravelItemBaseAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【API3.0】度假线路商品发布接口 API返回值 -taobao.alitrip.travel.item.base.add - -旅行度假新商品发布接口。目前支持的类目包括:境内跟团游、出境跟团游、境内自由行、出境自由行、境内当地玩乐、境外玩乐套餐、境内邮轮、国际邮轮 -*/ -type TaobaoAlitripTravelItemBaseAddAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelItemBaseAddResponse -} - -// 【API3.0】度假线路商品发布接口 成功返回结果 -type TaobaoAlitripTravelItemBaseAddResponse struct { - XMLName xml.Name `xml:"alitrip_travel_item_base_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品发布结果 - TravelItem *TopTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` -} diff --git a/model/travel/TaobaoAlitripTravelItemBaseModifyAPIRequest.go b/model/travel/TaobaoAlitripTravelItemBaseModifyAPIRequest.go new file mode 100644 index 0000000000..6755e55f0e --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemBaseModifyAPIRequest.go @@ -0,0 +1,192 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】度假线路商品编辑接口 API请求 +taobao.alitrip.travel.item.base.modify + +旅行度假新商品基本信息修改接口 第三版。提供商家通过TOP API方式修改商品除sku外的基本信息。 +*/ +type TaobaoAlitripTravelItemBaseModifyAPIRequest struct { + model.Params + // 跟团游商品相关信息 + _groupItemExt *PontusTravelGroupItemExt + // 商品基本信息 + _baseInfo *PontusTravelItemBaseInfo + // 详细行程描述结构 + _itineraries []PontusTravelItemItineraryInfo + // 商品id + _itemId int64 + // 退款规则结构 + _refundInfo *PontusTravelItemRefundInfo + // 预定规则结构 + _bookingRules []PontusTravelBookingRuleInfo + // 自由行商品相关信息 + _freedomItemExt *PontusTravelFreedomItemExt + // 商品的销售属性相关信息 + _salesInfo *PontusTravelItemSaleInfo + // 可选,支持清空商品某些字段内容。多个待清空字段名之间以英文逗号分隔。目前支持清除以下字段内容:seller_cids表示删除关联的店铺类目id + _fieldsToClean string + // 邮轮商品相关扩展信息 + _cruiseItemExt *CruiseItemExt + // 同城活动商品相关扩展信息 + _tcwlItemExt *TcwlItemExt +} + +// 初始化TaobaoAlitripTravelItemBaseModifyAPIRequest对象 +func NewTaobaoAlitripTravelItemBaseModifyRequest() *TaobaoAlitripTravelItemBaseModifyAPIRequest{ + return &TaobaoAlitripTravelItemBaseModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelItemBaseModifyAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.item.base.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelItemBaseModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GroupItemExt Setter +// 跟团游商品相关信息 +func (r *TaobaoAlitripTravelItemBaseModifyAPIRequest) SetGroupItemExt(_groupItemExt *PontusTravelGroupItemExt) error { + r._groupItemExt = _groupItemExt + r.Set("group_item_ext", _groupItemExt) + return nil +} + +// GroupItemExt Getter +func (r TaobaoAlitripTravelItemBaseModifyAPIRequest) GetGroupItemExt() *PontusTravelGroupItemExt { + return r._groupItemExt +} +// BaseInfo Setter +// 商品基本信息 +func (r *TaobaoAlitripTravelItemBaseModifyAPIRequest) SetBaseInfo(_baseInfo *PontusTravelItemBaseInfo) error { + r._baseInfo = _baseInfo + r.Set("base_info", _baseInfo) + return nil +} + +// BaseInfo Getter +func (r TaobaoAlitripTravelItemBaseModifyAPIRequest) GetBaseInfo() *PontusTravelItemBaseInfo { + return r._baseInfo +} +// Itineraries Setter +// 详细行程描述结构 +func (r *TaobaoAlitripTravelItemBaseModifyAPIRequest) SetItineraries(_itineraries []PontusTravelItemItineraryInfo) error { + r._itineraries = _itineraries + r.Set("itineraries", _itineraries) + return nil +} + +// Itineraries Getter +func (r TaobaoAlitripTravelItemBaseModifyAPIRequest) GetItineraries() []PontusTravelItemItineraryInfo { + return r._itineraries +} +// ItemId Setter +// 商品id +func (r *TaobaoAlitripTravelItemBaseModifyAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoAlitripTravelItemBaseModifyAPIRequest) GetItemId() int64 { + return r._itemId +} +// RefundInfo Setter +// 退款规则结构 +func (r *TaobaoAlitripTravelItemBaseModifyAPIRequest) SetRefundInfo(_refundInfo *PontusTravelItemRefundInfo) error { + r._refundInfo = _refundInfo + r.Set("refund_info", _refundInfo) + return nil +} + +// RefundInfo Getter +func (r TaobaoAlitripTravelItemBaseModifyAPIRequest) GetRefundInfo() *PontusTravelItemRefundInfo { + return r._refundInfo +} +// BookingRules Setter +// 预定规则结构 +func (r *TaobaoAlitripTravelItemBaseModifyAPIRequest) SetBookingRules(_bookingRules []PontusTravelBookingRuleInfo) error { + r._bookingRules = _bookingRules + r.Set("booking_rules", _bookingRules) + return nil +} + +// BookingRules Getter +func (r TaobaoAlitripTravelItemBaseModifyAPIRequest) GetBookingRules() []PontusTravelBookingRuleInfo { + return r._bookingRules +} +// FreedomItemExt Setter +// 自由行商品相关信息 +func (r *TaobaoAlitripTravelItemBaseModifyAPIRequest) SetFreedomItemExt(_freedomItemExt *PontusTravelFreedomItemExt) error { + r._freedomItemExt = _freedomItemExt + r.Set("freedom_item_ext", _freedomItemExt) + return nil +} + +// FreedomItemExt Getter +func (r TaobaoAlitripTravelItemBaseModifyAPIRequest) GetFreedomItemExt() *PontusTravelFreedomItemExt { + return r._freedomItemExt +} +// SalesInfo Setter +// 商品的销售属性相关信息 +func (r *TaobaoAlitripTravelItemBaseModifyAPIRequest) SetSalesInfo(_salesInfo *PontusTravelItemSaleInfo) error { + r._salesInfo = _salesInfo + r.Set("sales_info", _salesInfo) + return nil +} + +// SalesInfo Getter +func (r TaobaoAlitripTravelItemBaseModifyAPIRequest) GetSalesInfo() *PontusTravelItemSaleInfo { + return r._salesInfo +} +// FieldsToClean Setter +// 可选,支持清空商品某些字段内容。多个待清空字段名之间以英文逗号分隔。目前支持清除以下字段内容:seller_cids表示删除关联的店铺类目id +func (r *TaobaoAlitripTravelItemBaseModifyAPIRequest) SetFieldsToClean(_fieldsToClean string) error { + r._fieldsToClean = _fieldsToClean + r.Set("fields_to_clean", _fieldsToClean) + return nil +} + +// FieldsToClean Getter +func (r TaobaoAlitripTravelItemBaseModifyAPIRequest) GetFieldsToClean() string { + return r._fieldsToClean +} +// CruiseItemExt Setter +// 邮轮商品相关扩展信息 +func (r *TaobaoAlitripTravelItemBaseModifyAPIRequest) SetCruiseItemExt(_cruiseItemExt *CruiseItemExt) error { + r._cruiseItemExt = _cruiseItemExt + r.Set("cruise_item_ext", _cruiseItemExt) + return nil +} + +// CruiseItemExt Getter +func (r TaobaoAlitripTravelItemBaseModifyAPIRequest) GetCruiseItemExt() *CruiseItemExt { + return r._cruiseItemExt +} +// TcwlItemExt Setter +// 同城活动商品相关扩展信息 +func (r *TaobaoAlitripTravelItemBaseModifyAPIRequest) SetTcwlItemExt(_tcwlItemExt *TcwlItemExt) error { + r._tcwlItemExt = _tcwlItemExt + r.Set("tcwl_item_ext", _tcwlItemExt) + return nil +} + +// TcwlItemExt Getter +func (r TaobaoAlitripTravelItemBaseModifyAPIRequest) GetTcwlItemExt() *TcwlItemExt { + return r._tcwlItemExt +} diff --git a/model/travel/TaobaoAlitripTravelItemBaseModifyAPIResponse.go b/model/travel/TaobaoAlitripTravelItemBaseModifyAPIResponse.go new file mode 100644 index 0000000000..1ab55af8f4 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemBaseModifyAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】度假线路商品编辑接口 API返回值 +taobao.alitrip.travel.item.base.modify + +旅行度假新商品基本信息修改接口 第三版。提供商家通过TOP API方式修改商品除sku外的基本信息。 +*/ +type TaobaoAlitripTravelItemBaseModifyAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelItemBaseModifyAPIResponseModel +} + +// 【API3.0】度假线路商品编辑接口 成功返回结果 +type TaobaoAlitripTravelItemBaseModifyAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_item_base_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品修改结果 + TravelItem *TopTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` +} diff --git a/model/travel/TaobaoAlitripTravelItemBaseModifyResponse.go b/model/travel/TaobaoAlitripTravelItemBaseModifyResponse.go deleted file mode 100644 index da25d09bef..0000000000 --- a/model/travel/TaobaoAlitripTravelItemBaseModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【API3.0】度假线路商品编辑接口 API返回值 -taobao.alitrip.travel.item.base.modify - -旅行度假新商品基本信息修改接口 第三版。提供商家通过TOP API方式修改商品除sku外的基本信息。 -*/ -type TaobaoAlitripTravelItemBaseModifyAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelItemBaseModifyResponse -} - -// 【API3.0】度假线路商品编辑接口 成功返回结果 -type TaobaoAlitripTravelItemBaseModifyResponse struct { - XMLName xml.Name `xml:"alitrip_travel_item_base_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品修改结果 - TravelItem *TopTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` -} diff --git a/model/travel/TaobaoAlitripTravelItemElementManageAPIRequest.go b/model/travel/TaobaoAlitripTravelItemElementManageAPIRequest.go new file mode 100644 index 0000000000..7c58a946ba --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemElementManageAPIRequest.go @@ -0,0 +1,136 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】资源元素管理接口 API请求 +taobao.alitrip.travel.item.element.manage + +资源元素管理接口:提供商家管理(增删改)基本资源元素信息。基本资源元素可供多个商品共享 +*/ +type TaobaoAlitripTravelItemElementManageAPIRequest struct { + model.Params + // 必填,操作类型:1-新增,2-修改,3-删除。。特别注意:删除 为逻辑删除,即该outer_id所对应的元素还存在但是会置为无效状态,重新编辑修改即可恢复为有效状态。因此该id一旦使用将不可重复 + _operation int64 + // 必填,元素的外部商家编码,必须唯一。编辑、删除时将根据该编码找到对应元素。 + _outerId string + // 资源元素类型,新增时必填:1-景点,2-酒店,5-交通接驳,6-WIFI库,7-电话卡,8-餐饮,9-签证库,11-特色活动,999-其他 + _elementType int64 + // 元素名称,新增时必填; 注意:Wifi库的使用地和签证库所在国家均适用这个字段 + _name string + // 元素所在城市,景点、酒店在新增时必填 + _city string + // 元素的子类型,新增时必填。景点指门票类型,酒店指房型信息,交通接驳(接送机、接驳车、租车、船票、其他)选其一,餐饮(早餐、晚餐、午餐、下午茶及其他)选其一;签证(旅游签证、商务签证、工作签证、留学签证、探亲访友签证、入台证、其他) + _type string + // 当新增“交通接驳、餐饮、特色活动、其他”资源类型时 必填 + _desc string +} + +// 初始化TaobaoAlitripTravelItemElementManageAPIRequest对象 +func NewTaobaoAlitripTravelItemElementManageRequest() *TaobaoAlitripTravelItemElementManageAPIRequest{ + return &TaobaoAlitripTravelItemElementManageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelItemElementManageAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.item.element.manage" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelItemElementManageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Operation Setter +// 必填,操作类型:1-新增,2-修改,3-删除。。特别注意:删除 为逻辑删除,即该outer_id所对应的元素还存在但是会置为无效状态,重新编辑修改即可恢复为有效状态。因此该id一旦使用将不可重复 +func (r *TaobaoAlitripTravelItemElementManageAPIRequest) SetOperation(_operation int64) error { + r._operation = _operation + r.Set("operation", _operation) + return nil +} + +// Operation Getter +func (r TaobaoAlitripTravelItemElementManageAPIRequest) GetOperation() int64 { + return r._operation +} +// OuterId Setter +// 必填,元素的外部商家编码,必须唯一。编辑、删除时将根据该编码找到对应元素。 +func (r *TaobaoAlitripTravelItemElementManageAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoAlitripTravelItemElementManageAPIRequest) GetOuterId() string { + return r._outerId +} +// ElementType Setter +// 资源元素类型,新增时必填:1-景点,2-酒店,5-交通接驳,6-WIFI库,7-电话卡,8-餐饮,9-签证库,11-特色活动,999-其他 +func (r *TaobaoAlitripTravelItemElementManageAPIRequest) SetElementType(_elementType int64) error { + r._elementType = _elementType + r.Set("element_type", _elementType) + return nil +} + +// ElementType Getter +func (r TaobaoAlitripTravelItemElementManageAPIRequest) GetElementType() int64 { + return r._elementType +} +// Name Setter +// 元素名称,新增时必填; 注意:Wifi库的使用地和签证库所在国家均适用这个字段 +func (r *TaobaoAlitripTravelItemElementManageAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoAlitripTravelItemElementManageAPIRequest) GetName() string { + return r._name +} +// City Setter +// 元素所在城市,景点、酒店在新增时必填 +func (r *TaobaoAlitripTravelItemElementManageAPIRequest) SetCity(_city string) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r TaobaoAlitripTravelItemElementManageAPIRequest) GetCity() string { + return r._city +} +// Type Setter +// 元素的子类型,新增时必填。景点指门票类型,酒店指房型信息,交通接驳(接送机、接驳车、租车、船票、其他)选其一,餐饮(早餐、晚餐、午餐、下午茶及其他)选其一;签证(旅游签证、商务签证、工作签证、留学签证、探亲访友签证、入台证、其他) +func (r *TaobaoAlitripTravelItemElementManageAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoAlitripTravelItemElementManageAPIRequest) GetType() string { + return r._type +} +// Desc Setter +// 当新增“交通接驳、餐饮、特色活动、其他”资源类型时 必填 +func (r *TaobaoAlitripTravelItemElementManageAPIRequest) SetDesc(_desc string) error { + r._desc = _desc + r.Set("desc", _desc) + return nil +} + +// Desc Getter +func (r TaobaoAlitripTravelItemElementManageAPIRequest) GetDesc() string { + return r._desc +} diff --git a/model/travel/TaobaoAlitripTravelItemElementManageAPIResponse.go b/model/travel/TaobaoAlitripTravelItemElementManageAPIResponse.go new file mode 100644 index 0000000000..f07dc299b3 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemElementManageAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】资源元素管理接口 API返回值 +taobao.alitrip.travel.item.element.manage + +资源元素管理接口:提供商家管理(增删改)基本资源元素信息。基本资源元素可供多个商品共享 +*/ +type TaobaoAlitripTravelItemElementManageAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelItemElementManageAPIResponseModel +} + +// 【API3.0】资源元素管理接口 成功返回结果 +type TaobaoAlitripTravelItemElementManageAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_item_element_manage_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // firstResult + FirstResult *TopElementResult `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/travel/TaobaoAlitripTravelItemElementManageResponse.go b/model/travel/TaobaoAlitripTravelItemElementManageResponse.go deleted file mode 100644 index d25382b6f5..0000000000 --- a/model/travel/TaobaoAlitripTravelItemElementManageResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【API3.0】资源元素管理接口 API返回值 -taobao.alitrip.travel.item.element.manage - -资源元素管理接口:提供商家管理(增删改)基本资源元素信息。基本资源元素可供多个商品共享 -*/ -type TaobaoAlitripTravelItemElementManageAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelItemElementManageResponse -} - -// 【API3.0】资源元素管理接口 成功返回结果 -type TaobaoAlitripTravelItemElementManageResponse struct { - XMLName xml.Name `xml:"alitrip_travel_item_element_manage_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // firstResult - FirstResult *TopElementResult `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/travel/TaobaoAlitripTravelItemElementQueryAPIRequest.go b/model/travel/TaobaoAlitripTravelItemElementQueryAPIRequest.go new file mode 100644 index 0000000000..a3f5b93e3d --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemElementQueryAPIRequest.go @@ -0,0 +1,52 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】资源元素查询接口 API请求 +taobao.alitrip.travel.item.element.query + +提供资源元素查询接口,支持商家查询已经发布过的资源元素 +*/ +type TaobaoAlitripTravelItemElementQueryAPIRequest struct { + model.Params + // 需要查询的资源元素列表,最大列表长度为50 + _outerIds []string +} + +// 初始化TaobaoAlitripTravelItemElementQueryAPIRequest对象 +func NewTaobaoAlitripTravelItemElementQueryRequest() *TaobaoAlitripTravelItemElementQueryAPIRequest{ + return &TaobaoAlitripTravelItemElementQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelItemElementQueryAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.item.element.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelItemElementQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterIds Setter +// 需要查询的资源元素列表,最大列表长度为50 +func (r *TaobaoAlitripTravelItemElementQueryAPIRequest) SetOuterIds(_outerIds []string) error { + r._outerIds = _outerIds + r.Set("outer_ids", _outerIds) + return nil +} + +// OuterIds Getter +func (r TaobaoAlitripTravelItemElementQueryAPIRequest) GetOuterIds() []string { + return r._outerIds +} diff --git a/model/travel/TaobaoAlitripTravelItemElementQueryAPIResponse.go b/model/travel/TaobaoAlitripTravelItemElementQueryAPIResponse.go new file mode 100644 index 0000000000..fcfa52ccd9 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemElementQueryAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】资源元素查询接口 API返回值 +taobao.alitrip.travel.item.element.query + +提供资源元素查询接口,支持商家查询已经发布过的资源元素 +*/ +type TaobaoAlitripTravelItemElementQueryAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelItemElementQueryAPIResponseModel +} + +// 【API3.0】资源元素查询接口 成功返回结果 +type TaobaoAlitripTravelItemElementQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_item_element_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 资源元素列表 + Results []TopElementParam `json:"results,omitempty" xml:"results>top_element_param,omitempty"` +} diff --git a/model/travel/TaobaoAlitripTravelItemElementQueryResponse.go b/model/travel/TaobaoAlitripTravelItemElementQueryResponse.go deleted file mode 100644 index aac1e45018..0000000000 --- a/model/travel/TaobaoAlitripTravelItemElementQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【API3.0】资源元素查询接口 API返回值 -taobao.alitrip.travel.item.element.query - -提供资源元素查询接口,支持商家查询已经发布过的资源元素 -*/ -type TaobaoAlitripTravelItemElementQueryAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelItemElementQueryResponse -} - -// 【API3.0】资源元素查询接口 成功返回结果 -type TaobaoAlitripTravelItemElementQueryResponse struct { - XMLName xml.Name `xml:"alitrip_travel_item_element_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 资源元素列表 - Results []TopElementParam `json:"results,omitempty" xml:"results>top_element_param,omitempty"` -} diff --git a/model/travel/TaobaoAlitripTravelItemNewQueryAPIRequest.go b/model/travel/TaobaoAlitripTravelItemNewQueryAPIRequest.go new file mode 100644 index 0000000000..5c1cb65aae --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemNewQueryAPIRequest.go @@ -0,0 +1,66 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】新版度假单个商品查询接口 API请求 +taobao.alitrip.travel.item.new.query + +新版旅行度假新商品查询接口(单个商品查询) +*/ +type TaobaoAlitripTravelItemNewQueryAPIRequest struct { + model.Params + // 商品id。itemId和outProductId至少填写一个 + _itemId int64 + // 商品 外部商家编码。itemId和outProductId至少填写一个 + _outProductId string +} + +// 初始化TaobaoAlitripTravelItemNewQueryAPIRequest对象 +func NewTaobaoAlitripTravelItemNewQueryRequest() *TaobaoAlitripTravelItemNewQueryAPIRequest{ + return &TaobaoAlitripTravelItemNewQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelItemNewQueryAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.item.new.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelItemNewQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id。itemId和outProductId至少填写一个 +func (r *TaobaoAlitripTravelItemNewQueryAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoAlitripTravelItemNewQueryAPIRequest) GetItemId() int64 { + return r._itemId +} +// OutProductId Setter +// 商品 外部商家编码。itemId和outProductId至少填写一个 +func (r *TaobaoAlitripTravelItemNewQueryAPIRequest) SetOutProductId(_outProductId string) error { + r._outProductId = _outProductId + r.Set("out_product_id", _outProductId) + return nil +} + +// OutProductId Getter +func (r TaobaoAlitripTravelItemNewQueryAPIRequest) GetOutProductId() string { + return r._outProductId +} diff --git a/model/travel/TaobaoAlitripTravelItemNewQueryAPIResponse.go b/model/travel/TaobaoAlitripTravelItemNewQueryAPIResponse.go new file mode 100644 index 0000000000..f4e6c6c98a --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemNewQueryAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】新版度假单个商品查询接口 API返回值 +taobao.alitrip.travel.item.new.query + +新版旅行度假新商品查询接口(单个商品查询) +*/ +type TaobaoAlitripTravelItemNewQueryAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelItemNewQueryAPIResponseModel +} + +// 【API3.0】新版度假单个商品查询接口 成功返回结果 +type TaobaoAlitripTravelItemNewQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_item_new_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品查询结果 + TravelItem *FullTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` +} diff --git a/model/travel/TaobaoAlitripTravelItemNewQueryResponse.go b/model/travel/TaobaoAlitripTravelItemNewQueryResponse.go deleted file mode 100644 index 74f30c1fdf..0000000000 --- a/model/travel/TaobaoAlitripTravelItemNewQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【API3.0】新版度假单个商品查询接口 API返回值 -taobao.alitrip.travel.item.new.query - -新版旅行度假新商品查询接口(单个商品查询) -*/ -type TaobaoAlitripTravelItemNewQueryAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelItemNewQueryResponse -} - -// 【API3.0】新版度假单个商品查询接口 成功返回结果 -type TaobaoAlitripTravelItemNewQueryResponse struct { - XMLName xml.Name `xml:"alitrip_travel_item_new_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品查询结果 - TravelItem *FullTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` -} diff --git a/model/travel/TaobaoAlitripTravelItemShelveAPIRequest.go b/model/travel/TaobaoAlitripTravelItemShelveAPIRequest.go new file mode 100644 index 0000000000..5df7ff0b29 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemShelveAPIRequest.go @@ -0,0 +1,95 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】度假线路商品上下架接口 API请求 +taobao.alitrip.travel.item.shelve + +旅行度假新商品发布接口 第三版:度假商品上下架接口 +注意:定时上下架功能,目前只支持接送、租车类目。 +*/ +type TaobaoAlitripTravelItemShelveAPIRequest struct { + model.Params + // 商品id。itemId和outProductId至少填写一个 + _itemId int64 + // 商品 外部商家编码。itemId和outProductId至少填写一个 + _outProductId string + // 1-上架 0-下架 + _itemStatus int64 + // 指定定时上架时间,格式:yyyy-MM-dd HH:mm:ss。若不设置该值且item_status为1,则表示立即上架。 + _onlineTime string +} + +// 初始化TaobaoAlitripTravelItemShelveAPIRequest对象 +func NewTaobaoAlitripTravelItemShelveRequest() *TaobaoAlitripTravelItemShelveAPIRequest{ + return &TaobaoAlitripTravelItemShelveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelItemShelveAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.item.shelve" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelItemShelveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id。itemId和outProductId至少填写一个 +func (r *TaobaoAlitripTravelItemShelveAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoAlitripTravelItemShelveAPIRequest) GetItemId() int64 { + return r._itemId +} +// OutProductId Setter +// 商品 外部商家编码。itemId和outProductId至少填写一个 +func (r *TaobaoAlitripTravelItemShelveAPIRequest) SetOutProductId(_outProductId string) error { + r._outProductId = _outProductId + r.Set("out_product_id", _outProductId) + return nil +} + +// OutProductId Getter +func (r TaobaoAlitripTravelItemShelveAPIRequest) GetOutProductId() string { + return r._outProductId +} +// ItemStatus Setter +// 1-上架 0-下架 +func (r *TaobaoAlitripTravelItemShelveAPIRequest) SetItemStatus(_itemStatus int64) error { + r._itemStatus = _itemStatus + r.Set("item_status", _itemStatus) + return nil +} + +// ItemStatus Getter +func (r TaobaoAlitripTravelItemShelveAPIRequest) GetItemStatus() int64 { + return r._itemStatus +} +// OnlineTime Setter +// 指定定时上架时间,格式:yyyy-MM-dd HH:mm:ss。若不设置该值且item_status为1,则表示立即上架。 +func (r *TaobaoAlitripTravelItemShelveAPIRequest) SetOnlineTime(_onlineTime string) error { + r._onlineTime = _onlineTime + r.Set("online_time", _onlineTime) + return nil +} + +// OnlineTime Getter +func (r TaobaoAlitripTravelItemShelveAPIRequest) GetOnlineTime() string { + return r._onlineTime +} diff --git a/model/travel/TaobaoAlitripTravelItemShelveAPIResponse.go b/model/travel/TaobaoAlitripTravelItemShelveAPIResponse.go new file mode 100644 index 0000000000..6319c29f48 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemShelveAPIResponse.go @@ -0,0 +1,28 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】度假线路商品上下架接口 API返回值 +taobao.alitrip.travel.item.shelve + +旅行度假新商品发布接口 第三版:度假商品上下架接口 +注意:定时上下架功能,目前只支持接送、租车类目。 +*/ +type TaobaoAlitripTravelItemShelveAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelItemShelveAPIResponseModel +} + +// 【API3.0】度假线路商品上下架接口 成功返回结果 +type TaobaoAlitripTravelItemShelveAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_item_shelve_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品上下架操作是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/travel/TaobaoAlitripTravelItemShelveResponse.go b/model/travel/TaobaoAlitripTravelItemShelveResponse.go deleted file mode 100644 index 02647d5094..0000000000 --- a/model/travel/TaobaoAlitripTravelItemShelveResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【API3.0】度假线路商品上下架接口 API返回值 -taobao.alitrip.travel.item.shelve - -旅行度假新商品发布接口 第三版:度假商品上下架接口 -注意:定时上下架功能,目前只支持接送、租车类目。 -*/ -type TaobaoAlitripTravelItemShelveAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelItemShelveResponse -} - -// 【API3.0】度假线路商品上下架接口 成功返回结果 -type TaobaoAlitripTravelItemShelveResponse struct { - XMLName xml.Name `xml:"alitrip_travel_item_shelve_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品上下架操作是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/travel/TaobaoAlitripTravelItemSingleQueryAPIRequest.go b/model/travel/TaobaoAlitripTravelItemSingleQueryAPIRequest.go new file mode 100644 index 0000000000..e9049a27bd --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemSingleQueryAPIRequest.go @@ -0,0 +1,66 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】度假单个商品查询接口 API请求 +taobao.alitrip.travel.item.single.query + +旅行度假新商品查询接口(单个商品查询) 第三版 +*/ +type TaobaoAlitripTravelItemSingleQueryAPIRequest struct { + model.Params + // 商品id。itemId和outProductId至少填写一个 + _itemId int64 + // 商品 外部商家编码。itemId和outProductId至少填写一个 + _outProductId string +} + +// 初始化TaobaoAlitripTravelItemSingleQueryAPIRequest对象 +func NewTaobaoAlitripTravelItemSingleQueryRequest() *TaobaoAlitripTravelItemSingleQueryAPIRequest{ + return &TaobaoAlitripTravelItemSingleQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelItemSingleQueryAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.item.single.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelItemSingleQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id。itemId和outProductId至少填写一个 +func (r *TaobaoAlitripTravelItemSingleQueryAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoAlitripTravelItemSingleQueryAPIRequest) GetItemId() int64 { + return r._itemId +} +// OutProductId Setter +// 商品 外部商家编码。itemId和outProductId至少填写一个 +func (r *TaobaoAlitripTravelItemSingleQueryAPIRequest) SetOutProductId(_outProductId string) error { + r._outProductId = _outProductId + r.Set("out_product_id", _outProductId) + return nil +} + +// OutProductId Getter +func (r TaobaoAlitripTravelItemSingleQueryAPIRequest) GetOutProductId() string { + return r._outProductId +} diff --git a/model/travel/TaobaoAlitripTravelItemSingleQueryAPIResponse.go b/model/travel/TaobaoAlitripTravelItemSingleQueryAPIResponse.go new file mode 100644 index 0000000000..65c51525f6 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemSingleQueryAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】度假单个商品查询接口 API返回值 +taobao.alitrip.travel.item.single.query + +旅行度假新商品查询接口(单个商品查询) 第三版 +*/ +type TaobaoAlitripTravelItemSingleQueryAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelItemSingleQueryAPIResponseModel +} + +// 【API3.0】度假单个商品查询接口 成功返回结果 +type TaobaoAlitripTravelItemSingleQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_item_single_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品查询结果 + TravelItem *PontusTravelFullTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` +} diff --git a/model/travel/TaobaoAlitripTravelItemSingleQueryResponse.go b/model/travel/TaobaoAlitripTravelItemSingleQueryResponse.go deleted file mode 100644 index 14ae667c7d..0000000000 --- a/model/travel/TaobaoAlitripTravelItemSingleQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【API3.0】度假单个商品查询接口 API返回值 -taobao.alitrip.travel.item.single.query - -旅行度假新商品查询接口(单个商品查询) 第三版 -*/ -type TaobaoAlitripTravelItemSingleQueryAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelItemSingleQueryResponse -} - -// 【API3.0】度假单个商品查询接口 成功返回结果 -type TaobaoAlitripTravelItemSingleQueryResponse struct { - XMLName xml.Name `xml:"alitrip_travel_item_single_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品查询结果 - TravelItem *PontusTravelFullTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` -} diff --git a/model/travel/TaobaoAlitripTravelItemSkuOverrideAPIRequest.go b/model/travel/TaobaoAlitripTravelItemSkuOverrideAPIRequest.go new file mode 100644 index 0000000000..c554397617 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemSkuOverrideAPIRequest.go @@ -0,0 +1,80 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】商品级别日历价格库存修改,全量覆盖 API请求 +taobao.alitrip.travel.item.sku.override + +旅行度假新商品日历价格库存信息修改接口 第三版。提供商家通过TOP API方式修改商品sku信息。 +*/ +type TaobaoAlitripTravelItemSkuOverrideAPIRequest struct { + model.Params + // 商品id。itemId和outProductId至少填写一个 + _itemId int64 + // 商品日历价格库存套餐 + _skus []PontusTravelItemSkuInfo + // 商品 外部商家编码。itemId和outProductId至少填写一个 + _outProductId string +} + +// 初始化TaobaoAlitripTravelItemSkuOverrideAPIRequest对象 +func NewTaobaoAlitripTravelItemSkuOverrideRequest() *TaobaoAlitripTravelItemSkuOverrideAPIRequest{ + return &TaobaoAlitripTravelItemSkuOverrideAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelItemSkuOverrideAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.item.sku.override" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelItemSkuOverrideAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id。itemId和outProductId至少填写一个 +func (r *TaobaoAlitripTravelItemSkuOverrideAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoAlitripTravelItemSkuOverrideAPIRequest) GetItemId() int64 { + return r._itemId +} +// Skus Setter +// 商品日历价格库存套餐 +func (r *TaobaoAlitripTravelItemSkuOverrideAPIRequest) SetSkus(_skus []PontusTravelItemSkuInfo) error { + r._skus = _skus + r.Set("skus", _skus) + return nil +} + +// Skus Getter +func (r TaobaoAlitripTravelItemSkuOverrideAPIRequest) GetSkus() []PontusTravelItemSkuInfo { + return r._skus +} +// OutProductId Setter +// 商品 外部商家编码。itemId和outProductId至少填写一个 +func (r *TaobaoAlitripTravelItemSkuOverrideAPIRequest) SetOutProductId(_outProductId string) error { + r._outProductId = _outProductId + r.Set("out_product_id", _outProductId) + return nil +} + +// OutProductId Getter +func (r TaobaoAlitripTravelItemSkuOverrideAPIRequest) GetOutProductId() string { + return r._outProductId +} diff --git a/model/travel/TaobaoAlitripTravelItemSkuOverrideAPIResponse.go b/model/travel/TaobaoAlitripTravelItemSkuOverrideAPIResponse.go new file mode 100644 index 0000000000..d15509e6a4 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemSkuOverrideAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】商品级别日历价格库存修改,全量覆盖 API返回值 +taobao.alitrip.travel.item.sku.override + +旅行度假新商品日历价格库存信息修改接口 第三版。提供商家通过TOP API方式修改商品sku信息。 +*/ +type TaobaoAlitripTravelItemSkuOverrideAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelItemSkuOverrideAPIResponseModel +} + +// 【API3.0】商品级别日历价格库存修改,全量覆盖 成功返回结果 +type TaobaoAlitripTravelItemSkuOverrideAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_item_sku_override_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品sku修改结果 + TravelItem *TopTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` +} diff --git a/model/travel/TaobaoAlitripTravelItemSkuOverrideResponse.go b/model/travel/TaobaoAlitripTravelItemSkuOverrideResponse.go deleted file mode 100644 index 7609e356b7..0000000000 --- a/model/travel/TaobaoAlitripTravelItemSkuOverrideResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【API3.0】商品级别日历价格库存修改,全量覆盖 API返回值 -taobao.alitrip.travel.item.sku.override - -旅行度假新商品日历价格库存信息修改接口 第三版。提供商家通过TOP API方式修改商品sku信息。 -*/ -type TaobaoAlitripTravelItemSkuOverrideAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelItemSkuOverrideResponse -} - -// 【API3.0】商品级别日历价格库存修改,全量覆盖 成功返回结果 -type TaobaoAlitripTravelItemSkuOverrideResponse struct { - XMLName xml.Name `xml:"alitrip_travel_item_sku_override_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品sku修改结果 - TravelItem *TopTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` -} diff --git a/model/travel/TaobaoAlitripTravelItemSkuPackageModifyAPIRequest.go b/model/travel/TaobaoAlitripTravelItemSkuPackageModifyAPIRequest.go new file mode 100644 index 0000000000..22872826c8 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemSkuPackageModifyAPIRequest.go @@ -0,0 +1,80 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】套餐级别日历价格库存增删操作 API请求 +taobao.alitrip.travel.item.sku.package.modify + +【API3.0】套餐级别日历价格库存增删操作 +*/ +type TaobaoAlitripTravelItemSkuPackageModifyAPIRequest struct { + model.Params + // 商品id。itemId和outProductId至少填写一个 + _itemId int64 + // 商品 外部商家编码。itemId和outProductId至少填写一个 + _outProductId string + // 商品日历价格库存套餐 + _skus []ItemSkuInfo +} + +// 初始化TaobaoAlitripTravelItemSkuPackageModifyAPIRequest对象 +func NewTaobaoAlitripTravelItemSkuPackageModifyRequest() *TaobaoAlitripTravelItemSkuPackageModifyAPIRequest{ + return &TaobaoAlitripTravelItemSkuPackageModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelItemSkuPackageModifyAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.item.sku.package.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelItemSkuPackageModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id。itemId和outProductId至少填写一个 +func (r *TaobaoAlitripTravelItemSkuPackageModifyAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoAlitripTravelItemSkuPackageModifyAPIRequest) GetItemId() int64 { + return r._itemId +} +// OutProductId Setter +// 商品 外部商家编码。itemId和outProductId至少填写一个 +func (r *TaobaoAlitripTravelItemSkuPackageModifyAPIRequest) SetOutProductId(_outProductId string) error { + r._outProductId = _outProductId + r.Set("out_product_id", _outProductId) + return nil +} + +// OutProductId Getter +func (r TaobaoAlitripTravelItemSkuPackageModifyAPIRequest) GetOutProductId() string { + return r._outProductId +} +// Skus Setter +// 商品日历价格库存套餐 +func (r *TaobaoAlitripTravelItemSkuPackageModifyAPIRequest) SetSkus(_skus []ItemSkuInfo) error { + r._skus = _skus + r.Set("skus", _skus) + return nil +} + +// Skus Getter +func (r TaobaoAlitripTravelItemSkuPackageModifyAPIRequest) GetSkus() []ItemSkuInfo { + return r._skus +} diff --git a/model/travel/TaobaoAlitripTravelItemSkuPackageModifyAPIResponse.go b/model/travel/TaobaoAlitripTravelItemSkuPackageModifyAPIResponse.go new file mode 100644 index 0000000000..d4f8b00241 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemSkuPackageModifyAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】套餐级别日历价格库存增删操作 API返回值 +taobao.alitrip.travel.item.sku.package.modify + +【API3.0】套餐级别日历价格库存增删操作 +*/ +type TaobaoAlitripTravelItemSkuPackageModifyAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelItemSkuPackageModifyAPIResponseModel +} + +// 【API3.0】套餐级别日历价格库存增删操作 成功返回结果 +type TaobaoAlitripTravelItemSkuPackageModifyAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_item_sku_package_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品sku修改结果 + TravelItem *TopTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` +} diff --git a/model/travel/TaobaoAlitripTravelItemSkuPackageModifyResponse.go b/model/travel/TaobaoAlitripTravelItemSkuPackageModifyResponse.go deleted file mode 100644 index 603dbaa0f4..0000000000 --- a/model/travel/TaobaoAlitripTravelItemSkuPackageModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【API3.0】套餐级别日历价格库存增删操作 API返回值 -taobao.alitrip.travel.item.sku.package.modify - -【API3.0】套餐级别日历价格库存增删操作 -*/ -type TaobaoAlitripTravelItemSkuPackageModifyAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelItemSkuPackageModifyResponse -} - -// 【API3.0】套餐级别日历价格库存增删操作 成功返回结果 -type TaobaoAlitripTravelItemSkuPackageModifyResponse struct { - XMLName xml.Name `xml:"alitrip_travel_item_sku_package_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品sku修改结果 - TravelItem *TopTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` -} diff --git a/model/travel/TaobaoAlitripTravelItemSkuPriceModifyAPIRequest.go b/model/travel/TaobaoAlitripTravelItemSkuPriceModifyAPIRequest.go new file mode 100644 index 0000000000..e8259ae170 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemSkuPriceModifyAPIRequest.go @@ -0,0 +1,80 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】日期级别日历价格库存修改,增量维护 API请求 +taobao.alitrip.travel.item.sku.price.modify + +【API3.0】日期级别日历价格库存增量维护 +*/ +type TaobaoAlitripTravelItemSkuPriceModifyAPIRequest struct { + model.Params + // 商品id。itemId和outProductId至少填写一个 + _itemId int64 + // 商品 外部商家编码。itemId和outProductId至少填写一个 + _outProductId string + // 商品日历价格库存套餐 + _skus []PontusTravelItemSkuInfo +} + +// 初始化TaobaoAlitripTravelItemSkuPriceModifyAPIRequest对象 +func NewTaobaoAlitripTravelItemSkuPriceModifyRequest() *TaobaoAlitripTravelItemSkuPriceModifyAPIRequest{ + return &TaobaoAlitripTravelItemSkuPriceModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelItemSkuPriceModifyAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.item.sku.price.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelItemSkuPriceModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品id。itemId和outProductId至少填写一个 +func (r *TaobaoAlitripTravelItemSkuPriceModifyAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoAlitripTravelItemSkuPriceModifyAPIRequest) GetItemId() int64 { + return r._itemId +} +// OutProductId Setter +// 商品 外部商家编码。itemId和outProductId至少填写一个 +func (r *TaobaoAlitripTravelItemSkuPriceModifyAPIRequest) SetOutProductId(_outProductId string) error { + r._outProductId = _outProductId + r.Set("out_product_id", _outProductId) + return nil +} + +// OutProductId Getter +func (r TaobaoAlitripTravelItemSkuPriceModifyAPIRequest) GetOutProductId() string { + return r._outProductId +} +// Skus Setter +// 商品日历价格库存套餐 +func (r *TaobaoAlitripTravelItemSkuPriceModifyAPIRequest) SetSkus(_skus []PontusTravelItemSkuInfo) error { + r._skus = _skus + r.Set("skus", _skus) + return nil +} + +// Skus Getter +func (r TaobaoAlitripTravelItemSkuPriceModifyAPIRequest) GetSkus() []PontusTravelItemSkuInfo { + return r._skus +} diff --git a/model/travel/TaobaoAlitripTravelItemSkuPriceModifyAPIResponse.go b/model/travel/TaobaoAlitripTravelItemSkuPriceModifyAPIResponse.go new file mode 100644 index 0000000000..b2e9dc931e --- /dev/null +++ b/model/travel/TaobaoAlitripTravelItemSkuPriceModifyAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +【API3.0】日期级别日历价格库存修改,增量维护 API返回值 +taobao.alitrip.travel.item.sku.price.modify + +【API3.0】日期级别日历价格库存增量维护 +*/ +type TaobaoAlitripTravelItemSkuPriceModifyAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelItemSkuPriceModifyAPIResponseModel +} + +// 【API3.0】日期级别日历价格库存修改,增量维护 成功返回结果 +type TaobaoAlitripTravelItemSkuPriceModifyAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_item_sku_price_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 日期级别日历价格库存增量维护 + TravelItem *TopTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` +} diff --git a/model/travel/TaobaoAlitripTravelItemSkuPriceModifyResponse.go b/model/travel/TaobaoAlitripTravelItemSkuPriceModifyResponse.go deleted file mode 100644 index 642eeb8c58..0000000000 --- a/model/travel/TaobaoAlitripTravelItemSkuPriceModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -【API3.0】日期级别日历价格库存修改,增量维护 API返回值 -taobao.alitrip.travel.item.sku.price.modify - -【API3.0】日期级别日历价格库存增量维护 -*/ -type TaobaoAlitripTravelItemSkuPriceModifyAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelItemSkuPriceModifyResponse -} - -// 【API3.0】日期级别日历价格库存修改,增量维护 成功返回结果 -type TaobaoAlitripTravelItemSkuPriceModifyResponse struct { - XMLName xml.Name `xml:"alitrip_travel_item_sku_price_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 日期级别日历价格库存增量维护 - TravelItem *TopTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` -} diff --git a/model/travel/TaobaoAlitripTravelProductBaseAddAPIRequest.go b/model/travel/TaobaoAlitripTravelProductBaseAddAPIRequest.go new file mode 100644 index 0000000000..e61811c9ba --- /dev/null +++ b/model/travel/TaobaoAlitripTravelProductBaseAddAPIRequest.go @@ -0,0 +1,122 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商新增产品API API请求 +taobao.alitrip.travel.product.base.add + +飞猪供销平台供应商可通过该API发布新产品 +*/ +type TaobaoAlitripTravelProductBaseAddAPIRequest struct { + model.Params + // 产品基本信息 + _baseInfo *ProductBaseInfo + // 选填,详细行程描述结构 + _itineraries []ItemItineraryInfo + // 选填,退款规则结构 + _refundInfo *ItemRefundInfo + // 必填,预定规则结构。示例: [{ "rule_type": "fee_excluded", "rule_desc": "费用包含描述"},{ "rule_type": "fee_included", "rule_desc": "费用不含描述"},{ "rule_type": "order_info", "rule_desc": "预定须知描述"}] + _bookingRules []BookingRuleInfo + // 特殊选填(当发布邮轮商品时必填,其他情况不填)邮轮商品相关信息,发布邮轮商品时必填 + _cruiseProductExt *CruiseProductExt + // 选填,商品的销售属性相关信息 + _productSaleInfo *ProductSaleInfo +} + +// 初始化TaobaoAlitripTravelProductBaseAddAPIRequest对象 +func NewTaobaoAlitripTravelProductBaseAddRequest() *TaobaoAlitripTravelProductBaseAddAPIRequest{ + return &TaobaoAlitripTravelProductBaseAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelProductBaseAddAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.product.base.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelProductBaseAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BaseInfo Setter +// 产品基本信息 +func (r *TaobaoAlitripTravelProductBaseAddAPIRequest) SetBaseInfo(_baseInfo *ProductBaseInfo) error { + r._baseInfo = _baseInfo + r.Set("base_info", _baseInfo) + return nil +} + +// BaseInfo Getter +func (r TaobaoAlitripTravelProductBaseAddAPIRequest) GetBaseInfo() *ProductBaseInfo { + return r._baseInfo +} +// Itineraries Setter +// 选填,详细行程描述结构 +func (r *TaobaoAlitripTravelProductBaseAddAPIRequest) SetItineraries(_itineraries []ItemItineraryInfo) error { + r._itineraries = _itineraries + r.Set("itineraries", _itineraries) + return nil +} + +// Itineraries Getter +func (r TaobaoAlitripTravelProductBaseAddAPIRequest) GetItineraries() []ItemItineraryInfo { + return r._itineraries +} +// RefundInfo Setter +// 选填,退款规则结构 +func (r *TaobaoAlitripTravelProductBaseAddAPIRequest) SetRefundInfo(_refundInfo *ItemRefundInfo) error { + r._refundInfo = _refundInfo + r.Set("refund_info", _refundInfo) + return nil +} + +// RefundInfo Getter +func (r TaobaoAlitripTravelProductBaseAddAPIRequest) GetRefundInfo() *ItemRefundInfo { + return r._refundInfo +} +// BookingRules Setter +// 必填,预定规则结构。示例: [{ "rule_type": "fee_excluded", "rule_desc": "费用包含描述"},{ "rule_type": "fee_included", "rule_desc": "费用不含描述"},{ "rule_type": "order_info", "rule_desc": "预定须知描述"}] +func (r *TaobaoAlitripTravelProductBaseAddAPIRequest) SetBookingRules(_bookingRules []BookingRuleInfo) error { + r._bookingRules = _bookingRules + r.Set("booking_rules", _bookingRules) + return nil +} + +// BookingRules Getter +func (r TaobaoAlitripTravelProductBaseAddAPIRequest) GetBookingRules() []BookingRuleInfo { + return r._bookingRules +} +// CruiseProductExt Setter +// 特殊选填(当发布邮轮商品时必填,其他情况不填)邮轮商品相关信息,发布邮轮商品时必填 +func (r *TaobaoAlitripTravelProductBaseAddAPIRequest) SetCruiseProductExt(_cruiseProductExt *CruiseProductExt) error { + r._cruiseProductExt = _cruiseProductExt + r.Set("cruise_product_ext", _cruiseProductExt) + return nil +} + +// CruiseProductExt Getter +func (r TaobaoAlitripTravelProductBaseAddAPIRequest) GetCruiseProductExt() *CruiseProductExt { + return r._cruiseProductExt +} +// ProductSaleInfo Setter +// 选填,商品的销售属性相关信息 +func (r *TaobaoAlitripTravelProductBaseAddAPIRequest) SetProductSaleInfo(_productSaleInfo *ProductSaleInfo) error { + r._productSaleInfo = _productSaleInfo + r.Set("product_sale_info", _productSaleInfo) + return nil +} + +// ProductSaleInfo Getter +func (r TaobaoAlitripTravelProductBaseAddAPIRequest) GetProductSaleInfo() *ProductSaleInfo { + return r._productSaleInfo +} diff --git a/model/travel/TaobaoAlitripTravelProductBaseAddAPIResponse.go b/model/travel/TaobaoAlitripTravelProductBaseAddAPIResponse.go new file mode 100644 index 0000000000..c10cfdb241 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelProductBaseAddAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商新增产品API API返回值 +taobao.alitrip.travel.product.base.add + +飞猪供销平台供应商可通过该API发布新产品 +*/ +type TaobaoAlitripTravelProductBaseAddAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelProductBaseAddAPIResponseModel +} + +// 供应商新增产品API 成功返回结果 +type TaobaoAlitripTravelProductBaseAddAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_product_base_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品发布结果 + TravelItem *TopTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` +} diff --git a/model/travel/TaobaoAlitripTravelProductBaseAddResponse.go b/model/travel/TaobaoAlitripTravelProductBaseAddResponse.go deleted file mode 100644 index 0522e36fe1..0000000000 --- a/model/travel/TaobaoAlitripTravelProductBaseAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商新增产品API API返回值 -taobao.alitrip.travel.product.base.add - -飞猪供销平台供应商可通过该API发布新产品 -*/ -type TaobaoAlitripTravelProductBaseAddAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelProductBaseAddResponse -} - -// 供应商新增产品API 成功返回结果 -type TaobaoAlitripTravelProductBaseAddResponse struct { - XMLName xml.Name `xml:"alitrip_travel_product_base_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品发布结果 - TravelItem *TopTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` -} diff --git a/model/travel/TaobaoAlitripTravelProductBaseModifyAPIRequest.go b/model/travel/TaobaoAlitripTravelProductBaseModifyAPIRequest.go new file mode 100644 index 0000000000..cae53d05f7 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelProductBaseModifyAPIRequest.go @@ -0,0 +1,136 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商编辑产品API API请求 +taobao.alitrip.travel.product.base.modify + +飞猪供销平台供应商可通过该API编辑产品 +*/ +type TaobaoAlitripTravelProductBaseModifyAPIRequest struct { + model.Params + // 详细行程描述结构 + _itineraries []ItemItineraryInfo + // 产品基本信息 + _baseInfo *ProductBaseInfo + // 产品id + _itemId int64 + // 退款规则结构 + _refundInfo *ItemRefundInfo + // 预定规则结构。示例: [{ "rule_type": "fee_excluded", "rule_desc": "费用包含描述"},{ "rule_type": "fee_included", "rule_desc": "费用不含描述"},{ "rule_type": "order_info", "rule_desc": "预定须知描述"}] + _bookingRules []BookingRuleInfo + // 邮轮商品相关信息 + _cruiseProductExt *CruiseProductExt + // 商品的销售属性相关信息 + _productSaleInfo *ProductSaleInfo +} + +// 初始化TaobaoAlitripTravelProductBaseModifyAPIRequest对象 +func NewTaobaoAlitripTravelProductBaseModifyRequest() *TaobaoAlitripTravelProductBaseModifyAPIRequest{ + return &TaobaoAlitripTravelProductBaseModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelProductBaseModifyAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.product.base.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelProductBaseModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Itineraries Setter +// 详细行程描述结构 +func (r *TaobaoAlitripTravelProductBaseModifyAPIRequest) SetItineraries(_itineraries []ItemItineraryInfo) error { + r._itineraries = _itineraries + r.Set("itineraries", _itineraries) + return nil +} + +// Itineraries Getter +func (r TaobaoAlitripTravelProductBaseModifyAPIRequest) GetItineraries() []ItemItineraryInfo { + return r._itineraries +} +// BaseInfo Setter +// 产品基本信息 +func (r *TaobaoAlitripTravelProductBaseModifyAPIRequest) SetBaseInfo(_baseInfo *ProductBaseInfo) error { + r._baseInfo = _baseInfo + r.Set("base_info", _baseInfo) + return nil +} + +// BaseInfo Getter +func (r TaobaoAlitripTravelProductBaseModifyAPIRequest) GetBaseInfo() *ProductBaseInfo { + return r._baseInfo +} +// ItemId Setter +// 产品id +func (r *TaobaoAlitripTravelProductBaseModifyAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoAlitripTravelProductBaseModifyAPIRequest) GetItemId() int64 { + return r._itemId +} +// RefundInfo Setter +// 退款规则结构 +func (r *TaobaoAlitripTravelProductBaseModifyAPIRequest) SetRefundInfo(_refundInfo *ItemRefundInfo) error { + r._refundInfo = _refundInfo + r.Set("refund_info", _refundInfo) + return nil +} + +// RefundInfo Getter +func (r TaobaoAlitripTravelProductBaseModifyAPIRequest) GetRefundInfo() *ItemRefundInfo { + return r._refundInfo +} +// BookingRules Setter +// 预定规则结构。示例: [{ "rule_type": "fee_excluded", "rule_desc": "费用包含描述"},{ "rule_type": "fee_included", "rule_desc": "费用不含描述"},{ "rule_type": "order_info", "rule_desc": "预定须知描述"}] +func (r *TaobaoAlitripTravelProductBaseModifyAPIRequest) SetBookingRules(_bookingRules []BookingRuleInfo) error { + r._bookingRules = _bookingRules + r.Set("booking_rules", _bookingRules) + return nil +} + +// BookingRules Getter +func (r TaobaoAlitripTravelProductBaseModifyAPIRequest) GetBookingRules() []BookingRuleInfo { + return r._bookingRules +} +// CruiseProductExt Setter +// 邮轮商品相关信息 +func (r *TaobaoAlitripTravelProductBaseModifyAPIRequest) SetCruiseProductExt(_cruiseProductExt *CruiseProductExt) error { + r._cruiseProductExt = _cruiseProductExt + r.Set("cruise_product_ext", _cruiseProductExt) + return nil +} + +// CruiseProductExt Getter +func (r TaobaoAlitripTravelProductBaseModifyAPIRequest) GetCruiseProductExt() *CruiseProductExt { + return r._cruiseProductExt +} +// ProductSaleInfo Setter +// 商品的销售属性相关信息 +func (r *TaobaoAlitripTravelProductBaseModifyAPIRequest) SetProductSaleInfo(_productSaleInfo *ProductSaleInfo) error { + r._productSaleInfo = _productSaleInfo + r.Set("product_sale_info", _productSaleInfo) + return nil +} + +// ProductSaleInfo Getter +func (r TaobaoAlitripTravelProductBaseModifyAPIRequest) GetProductSaleInfo() *ProductSaleInfo { + return r._productSaleInfo +} diff --git a/model/travel/TaobaoAlitripTravelProductBaseModifyAPIResponse.go b/model/travel/TaobaoAlitripTravelProductBaseModifyAPIResponse.go new file mode 100644 index 0000000000..70c520f470 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelProductBaseModifyAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商编辑产品API API返回值 +taobao.alitrip.travel.product.base.modify + +飞猪供销平台供应商可通过该API编辑产品 +*/ +type TaobaoAlitripTravelProductBaseModifyAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelProductBaseModifyAPIResponseModel +} + +// 供应商编辑产品API 成功返回结果 +type TaobaoAlitripTravelProductBaseModifyAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_product_base_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品修改结果 + TravelItem *TopTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` +} diff --git a/model/travel/TaobaoAlitripTravelProductBaseModifyResponse.go b/model/travel/TaobaoAlitripTravelProductBaseModifyResponse.go deleted file mode 100644 index 05910d82ce..0000000000 --- a/model/travel/TaobaoAlitripTravelProductBaseModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商编辑产品API API返回值 -taobao.alitrip.travel.product.base.modify - -飞猪供销平台供应商可通过该API编辑产品 -*/ -type TaobaoAlitripTravelProductBaseModifyAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelProductBaseModifyResponse -} - -// 供应商编辑产品API 成功返回结果 -type TaobaoAlitripTravelProductBaseModifyResponse struct { - XMLName xml.Name `xml:"alitrip_travel_product_base_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品修改结果 - TravelItem *TopTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` -} diff --git a/model/travel/TaobaoAlitripTravelProductSkuOverrideAPIRequest.go b/model/travel/TaobaoAlitripTravelProductSkuOverrideAPIRequest.go new file mode 100644 index 0000000000..d1ab587482 --- /dev/null +++ b/model/travel/TaobaoAlitripTravelProductSkuOverrideAPIRequest.go @@ -0,0 +1,80 @@ +package travel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +(供销)产品级别日历价格库存修改,全量覆盖 API请求 +taobao.alitrip.travel.product.sku.override + +(供销)产品级别日历价格库存修改,全量覆盖 +*/ +type TaobaoAlitripTravelProductSkuOverrideAPIRequest struct { + model.Params + // 商品 外部商家编码。itemId和outProductId至少填写一个 + _outProductId string + // 商品id。itemId和outProductId至少填写一个 + _itemId int64 + // 商品日历价格库存套餐 + _skus []ItemSkuInfo +} + +// 初始化TaobaoAlitripTravelProductSkuOverrideAPIRequest对象 +func NewTaobaoAlitripTravelProductSkuOverrideRequest() *TaobaoAlitripTravelProductSkuOverrideAPIRequest{ + return &TaobaoAlitripTravelProductSkuOverrideAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelProductSkuOverrideAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.product.sku.override" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelProductSkuOverrideAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutProductId Setter +// 商品 外部商家编码。itemId和outProductId至少填写一个 +func (r *TaobaoAlitripTravelProductSkuOverrideAPIRequest) SetOutProductId(_outProductId string) error { + r._outProductId = _outProductId + r.Set("out_product_id", _outProductId) + return nil +} + +// OutProductId Getter +func (r TaobaoAlitripTravelProductSkuOverrideAPIRequest) GetOutProductId() string { + return r._outProductId +} +// ItemId Setter +// 商品id。itemId和outProductId至少填写一个 +func (r *TaobaoAlitripTravelProductSkuOverrideAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoAlitripTravelProductSkuOverrideAPIRequest) GetItemId() int64 { + return r._itemId +} +// Skus Setter +// 商品日历价格库存套餐 +func (r *TaobaoAlitripTravelProductSkuOverrideAPIRequest) SetSkus(_skus []ItemSkuInfo) error { + r._skus = _skus + r.Set("skus", _skus) + return nil +} + +// Skus Getter +func (r TaobaoAlitripTravelProductSkuOverrideAPIRequest) GetSkus() []ItemSkuInfo { + return r._skus +} diff --git a/model/travel/TaobaoAlitripTravelProductSkuOverrideAPIResponse.go b/model/travel/TaobaoAlitripTravelProductSkuOverrideAPIResponse.go new file mode 100644 index 0000000000..760bb5c9fc --- /dev/null +++ b/model/travel/TaobaoAlitripTravelProductSkuOverrideAPIResponse.go @@ -0,0 +1,27 @@ +package travel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +(供销)产品级别日历价格库存修改,全量覆盖 API返回值 +taobao.alitrip.travel.product.sku.override + +(供销)产品级别日历价格库存修改,全量覆盖 +*/ +type TaobaoAlitripTravelProductSkuOverrideAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelProductSkuOverrideAPIResponseModel +} + +// (供销)产品级别日历价格库存修改,全量覆盖 成功返回结果 +type TaobaoAlitripTravelProductSkuOverrideAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_product_sku_override_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品sku修改结果 + TravelItem *TopTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` +} diff --git a/model/travel/TaobaoAlitripTravelProductSkuOverrideResponse.go b/model/travel/TaobaoAlitripTravelProductSkuOverrideResponse.go deleted file mode 100644 index a6a5abe22f..0000000000 --- a/model/travel/TaobaoAlitripTravelProductSkuOverrideResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package travel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -(供销)产品级别日历价格库存修改,全量覆盖 API返回值 -taobao.alitrip.travel.product.sku.override - -(供销)产品级别日历价格库存修改,全量覆盖 -*/ -type TaobaoAlitripTravelProductSkuOverrideAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelProductSkuOverrideResponse -} - -// (供销)产品级别日历价格库存修改,全量覆盖 成功返回结果 -type TaobaoAlitripTravelProductSkuOverrideResponse struct { - XMLName xml.Name `xml:"alitrip_travel_product_sku_override_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品sku修改结果 - TravelItem *TopTravelItem `json:"travel_item,omitempty" xml:"travel_item,omitempty"` -} diff --git a/model/traveltrade/AlitripTravelBookinfoQueryAPIRequest.go b/model/traveltrade/AlitripTravelBookinfoQueryAPIRequest.go new file mode 100644 index 0000000000..8ea0cc3c1c --- /dev/null +++ b/model/traveltrade/AlitripTravelBookinfoQueryAPIRequest.go @@ -0,0 +1,52 @@ +package traveltrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪度假-订单二次预约查询接口 API请求 +alitrip.travel.bookinfo.query + +飞猪度假订单二次预约详情查询接口 +*/ +type AlitripTravelBookinfoQueryAPIRequest struct { + model.Params + // 预定信息id + _bookinfoId int64 +} + +// 初始化AlitripTravelBookinfoQueryAPIRequest对象 +func NewAlitripTravelBookinfoQueryRequest() *AlitripTravelBookinfoQueryAPIRequest{ + return &AlitripTravelBookinfoQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelBookinfoQueryAPIRequest) GetApiMethodName() string { + return "alitrip.travel.bookinfo.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelBookinfoQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BookinfoId Setter +// 预定信息id +func (r *AlitripTravelBookinfoQueryAPIRequest) SetBookinfoId(_bookinfoId int64) error { + r._bookinfoId = _bookinfoId + r.Set("bookinfo_id", _bookinfoId) + return nil +} + +// BookinfoId Getter +func (r AlitripTravelBookinfoQueryAPIRequest) GetBookinfoId() int64 { + return r._bookinfoId +} diff --git a/model/traveltrade/AlitripTravelBookinfoQueryAPIResponse.go b/model/traveltrade/AlitripTravelBookinfoQueryAPIResponse.go new file mode 100644 index 0000000000..5252719672 --- /dev/null +++ b/model/traveltrade/AlitripTravelBookinfoQueryAPIResponse.go @@ -0,0 +1,27 @@ +package traveltrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪度假-订单二次预约查询接口 API返回值 +alitrip.travel.bookinfo.query + +飞猪度假订单二次预约详情查询接口 +*/ +type AlitripTravelBookinfoQueryAPIResponse struct { + model.CommonResponse + AlitripTravelBookinfoQueryAPIResponseModel +} + +// 飞猪度假-订单二次预约查询接口 成功返回结果 +type AlitripTravelBookinfoQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_bookinfo_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 交易预定结果对象 + FirstResult *TopTripBookInfoResult `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/traveltrade/AlitripTravelBookinfoQueryResponse.go b/model/traveltrade/AlitripTravelBookinfoQueryResponse.go deleted file mode 100644 index a61b228d50..0000000000 --- a/model/traveltrade/AlitripTravelBookinfoQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package traveltrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -飞猪度假-订单二次预约查询接口 API返回值 -alitrip.travel.bookinfo.query - -飞猪度假订单二次预约详情查询接口 -*/ -type AlitripTravelBookinfoQueryAPIResponse struct { - model.CommonResponse - AlitripTravelBookinfoQueryResponse -} - -// 飞猪度假-订单二次预约查询接口 成功返回结果 -type AlitripTravelBookinfoQueryResponse struct { - XMLName xml.Name `xml:"alitrip_travel_bookinfo_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 交易预定结果对象 - FirstResult *TopTripBookInfoResult `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/traveltrade/AlitripTravelBookinfosSearchAPIRequest.go b/model/traveltrade/AlitripTravelBookinfosSearchAPIRequest.go new file mode 100644 index 0000000000..7391772ea6 --- /dev/null +++ b/model/traveltrade/AlitripTravelBookinfosSearchAPIRequest.go @@ -0,0 +1,94 @@ +package traveltrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪度假-订单预定信息列表搜索接口 API请求 +alitrip.travel.bookinfos.search + +查询订单预定信息列表 +*/ +type AlitripTravelBookinfosSearchAPIRequest struct { + model.Params + // 页面大小,最大支持的页面大小为100。如查询旅行购订单,则最大支持的页面大小为30 + _pageSize int64 + // 当前页 + _currentPage int64 + // 申请时间_结束,精确到分钟 + _applyTimeEnd string + // 申请时间_开始,精确到分钟 + _applyTimeStart string +} + +// 初始化AlitripTravelBookinfosSearchAPIRequest对象 +func NewAlitripTravelBookinfosSearchRequest() *AlitripTravelBookinfosSearchAPIRequest{ + return &AlitripTravelBookinfosSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelBookinfosSearchAPIRequest) GetApiMethodName() string { + return "alitrip.travel.bookinfos.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelBookinfosSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageSize Setter +// 页面大小,最大支持的页面大小为100。如查询旅行购订单,则最大支持的页面大小为30 +func (r *AlitripTravelBookinfosSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlitripTravelBookinfosSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// CurrentPage Setter +// 当前页 +func (r *AlitripTravelBookinfosSearchAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AlitripTravelBookinfosSearchAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// ApplyTimeEnd Setter +// 申请时间_结束,精确到分钟 +func (r *AlitripTravelBookinfosSearchAPIRequest) SetApplyTimeEnd(_applyTimeEnd string) error { + r._applyTimeEnd = _applyTimeEnd + r.Set("apply_time_end", _applyTimeEnd) + return nil +} + +// ApplyTimeEnd Getter +func (r AlitripTravelBookinfosSearchAPIRequest) GetApplyTimeEnd() string { + return r._applyTimeEnd +} +// ApplyTimeStart Setter +// 申请时间_开始,精确到分钟 +func (r *AlitripTravelBookinfosSearchAPIRequest) SetApplyTimeStart(_applyTimeStart string) error { + r._applyTimeStart = _applyTimeStart + r.Set("apply_time_start", _applyTimeStart) + return nil +} + +// ApplyTimeStart Getter +func (r AlitripTravelBookinfosSearchAPIRequest) GetApplyTimeStart() string { + return r._applyTimeStart +} diff --git a/model/traveltrade/AlitripTravelBookinfosSearchAPIResponse.go b/model/traveltrade/AlitripTravelBookinfosSearchAPIResponse.go new file mode 100644 index 0000000000..fa41d971e4 --- /dev/null +++ b/model/traveltrade/AlitripTravelBookinfosSearchAPIResponse.go @@ -0,0 +1,33 @@ +package traveltrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪度假-订单预定信息列表搜索接口 API返回值 +alitrip.travel.bookinfos.search + +查询订单预定信息列表 +*/ +type AlitripTravelBookinfosSearchAPIResponse struct { + model.CommonResponse + AlitripTravelBookinfosSearchAPIResponseModel +} + +// 飞猪度假-订单预定信息列表搜索接口 成功返回结果 +type AlitripTravelBookinfosSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_bookinfos_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` + // 订单及预约id映射列表 + OrderBookInfoList []FirstResult `json:"order_book_info_list,omitempty" xml:"order_book_info_list>first_result,omitempty"` + // 错误信息 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // true或false + IsSuccess string `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/traveltrade/AlitripTravelBookinfosSearchResponse.go b/model/traveltrade/AlitripTravelBookinfosSearchResponse.go deleted file mode 100644 index 3573d21b80..0000000000 --- a/model/traveltrade/AlitripTravelBookinfosSearchResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package traveltrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -飞猪度假-订单预定信息列表搜索接口 API返回值 -alitrip.travel.bookinfos.search - -查询订单预定信息列表 -*/ -type AlitripTravelBookinfosSearchAPIResponse struct { - model.CommonResponse - AlitripTravelBookinfosSearchResponse -} - -// 飞猪度假-订单预定信息列表搜索接口 成功返回结果 -type AlitripTravelBookinfosSearchResponse struct { - XMLName xml.Name `xml:"alitrip_travel_bookinfos_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` - // 订单及预约id映射列表 - OrderBookInfoList []FirstResult `json:"order_book_info_list,omitempty" xml:"order_book_info_list>first_result,omitempty"` - // 错误信息 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // true或false - IsSuccess string `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/traveltrade/AlitripTravelTradeCloseAPIRequest.go b/model/traveltrade/AlitripTravelTradeCloseAPIRequest.go new file mode 100644 index 0000000000..be99253f71 --- /dev/null +++ b/model/traveltrade/AlitripTravelTradeCloseAPIRequest.go @@ -0,0 +1,80 @@ +package traveltrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪度假-订单关闭接口(快速退款) API请求 +alitrip.travel.trade.close + +卖家关单(快速退款接口),不支持二次预约商品的订单 +*/ +type AlitripTravelTradeCloseAPIRequest struct { + model.Params + // 交易关闭原因 + _closeReason string + // 子订单编号 + _subOrderId int64 + // 订单关闭原因描述 + _reasonDesc string +} + +// 初始化AlitripTravelTradeCloseAPIRequest对象 +func NewAlitripTravelTradeCloseRequest() *AlitripTravelTradeCloseAPIRequest{ + return &AlitripTravelTradeCloseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelTradeCloseAPIRequest) GetApiMethodName() string { + return "alitrip.travel.trade.close" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelTradeCloseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CloseReason Setter +// 交易关闭原因 +func (r *AlitripTravelTradeCloseAPIRequest) SetCloseReason(_closeReason string) error { + r._closeReason = _closeReason + r.Set("close_reason", _closeReason) + return nil +} + +// CloseReason Getter +func (r AlitripTravelTradeCloseAPIRequest) GetCloseReason() string { + return r._closeReason +} +// SubOrderId Setter +// 子订单编号 +func (r *AlitripTravelTradeCloseAPIRequest) SetSubOrderId(_subOrderId int64) error { + r._subOrderId = _subOrderId + r.Set("sub_order_id", _subOrderId) + return nil +} + +// SubOrderId Getter +func (r AlitripTravelTradeCloseAPIRequest) GetSubOrderId() int64 { + return r._subOrderId +} +// ReasonDesc Setter +// 订单关闭原因描述 +func (r *AlitripTravelTradeCloseAPIRequest) SetReasonDesc(_reasonDesc string) error { + r._reasonDesc = _reasonDesc + r.Set("reason_desc", _reasonDesc) + return nil +} + +// ReasonDesc Getter +func (r AlitripTravelTradeCloseAPIRequest) GetReasonDesc() string { + return r._reasonDesc +} diff --git a/model/traveltrade/AlitripTravelTradeCloseAPIResponse.go b/model/traveltrade/AlitripTravelTradeCloseAPIResponse.go new file mode 100644 index 0000000000..329534a1ac --- /dev/null +++ b/model/traveltrade/AlitripTravelTradeCloseAPIResponse.go @@ -0,0 +1,27 @@ +package traveltrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪度假-订单关闭接口(快速退款) API返回值 +alitrip.travel.trade.close + +卖家关单(快速退款接口),不支持二次预约商品的订单 +*/ +type AlitripTravelTradeCloseAPIResponse struct { + model.CommonResponse + AlitripTravelTradeCloseAPIResponseModel +} + +// 飞猪度假-订单关闭接口(快速退款) 成功返回结果 +type AlitripTravelTradeCloseAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_trade_close_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 交易关闭是否成功 + FirstResult bool `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/traveltrade/AlitripTravelTradeCloseResponse.go b/model/traveltrade/AlitripTravelTradeCloseResponse.go deleted file mode 100644 index ddb0aab3e2..0000000000 --- a/model/traveltrade/AlitripTravelTradeCloseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package traveltrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -飞猪度假-订单关闭接口(快速退款) API返回值 -alitrip.travel.trade.close - -卖家关单(快速退款接口),不支持二次预约商品的订单 -*/ -type AlitripTravelTradeCloseAPIResponse struct { - model.CommonResponse - AlitripTravelTradeCloseResponse -} - -// 飞猪度假-订单关闭接口(快速退款) 成功返回结果 -type AlitripTravelTradeCloseResponse struct { - XMLName xml.Name `xml:"alitrip_travel_trade_close_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 交易关闭是否成功 - FirstResult bool `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/traveltrade/AlitripTravelTradeDeliverAPIRequest.go b/model/traveltrade/AlitripTravelTradeDeliverAPIRequest.go new file mode 100644 index 0000000000..7afd11b3fd --- /dev/null +++ b/model/traveltrade/AlitripTravelTradeDeliverAPIRequest.go @@ -0,0 +1,52 @@ +package traveltrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪度假-订单发货接口 API请求 +alitrip.travel.trade.deliver + +航旅度假无需物流普通商品发货接口(不支持二次预约商品),只支持子订单级别发货 +*/ +type AlitripTravelTradeDeliverAPIRequest struct { + model.Params + // 子订单id + _subOrderId int64 +} + +// 初始化AlitripTravelTradeDeliverAPIRequest对象 +func NewAlitripTravelTradeDeliverRequest() *AlitripTravelTradeDeliverAPIRequest{ + return &AlitripTravelTradeDeliverAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelTradeDeliverAPIRequest) GetApiMethodName() string { + return "alitrip.travel.trade.deliver" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelTradeDeliverAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubOrderId Setter +// 子订单id +func (r *AlitripTravelTradeDeliverAPIRequest) SetSubOrderId(_subOrderId int64) error { + r._subOrderId = _subOrderId + r.Set("sub_order_id", _subOrderId) + return nil +} + +// SubOrderId Getter +func (r AlitripTravelTradeDeliverAPIRequest) GetSubOrderId() int64 { + return r._subOrderId +} diff --git a/model/traveltrade/AlitripTravelTradeDeliverAPIResponse.go b/model/traveltrade/AlitripTravelTradeDeliverAPIResponse.go new file mode 100644 index 0000000000..4611d2668b --- /dev/null +++ b/model/traveltrade/AlitripTravelTradeDeliverAPIResponse.go @@ -0,0 +1,27 @@ +package traveltrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪度假-订单发货接口 API返回值 +alitrip.travel.trade.deliver + +航旅度假无需物流普通商品发货接口(不支持二次预约商品),只支持子订单级别发货 +*/ +type AlitripTravelTradeDeliverAPIResponse struct { + model.CommonResponse + AlitripTravelTradeDeliverAPIResponseModel +} + +// 飞猪度假-订单发货接口 成功返回结果 +type AlitripTravelTradeDeliverAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_trade_deliver_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 发货是否成功 + FirstResult bool `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/traveltrade/AlitripTravelTradeDeliverResponse.go b/model/traveltrade/AlitripTravelTradeDeliverResponse.go deleted file mode 100644 index 54c27c7861..0000000000 --- a/model/traveltrade/AlitripTravelTradeDeliverResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package traveltrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -飞猪度假-订单发货接口 API返回值 -alitrip.travel.trade.deliver - -航旅度假无需物流普通商品发货接口(不支持二次预约商品),只支持子订单级别发货 -*/ -type AlitripTravelTradeDeliverAPIResponse struct { - model.CommonResponse - AlitripTravelTradeDeliverResponse -} - -// 飞猪度假-订单发货接口 成功返回结果 -type AlitripTravelTradeDeliverResponse struct { - XMLName xml.Name `xml:"alitrip_travel_trade_deliver_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 发货是否成功 - FirstResult bool `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/traveltrade/AlitripTravelTradeQueryAPIRequest.go b/model/traveltrade/AlitripTravelTradeQueryAPIRequest.go new file mode 100644 index 0000000000..ec722def03 --- /dev/null +++ b/model/traveltrade/AlitripTravelTradeQueryAPIRequest.go @@ -0,0 +1,52 @@ +package traveltrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪度假-订单详情查询接口 API请求 +alitrip.travel.trade.query + +飞猪度假订单详情查询接口 +*/ +type AlitripTravelTradeQueryAPIRequest struct { + model.Params + // 主订单id + _orderId int64 +} + +// 初始化AlitripTravelTradeQueryAPIRequest对象 +func NewAlitripTravelTradeQueryRequest() *AlitripTravelTradeQueryAPIRequest{ + return &AlitripTravelTradeQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelTradeQueryAPIRequest) GetApiMethodName() string { + return "alitrip.travel.trade.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelTradeQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 主订单id +func (r *AlitripTravelTradeQueryAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlitripTravelTradeQueryAPIRequest) GetOrderId() int64 { + return r._orderId +} diff --git a/model/traveltrade/AlitripTravelTradeQueryAPIResponse.go b/model/traveltrade/AlitripTravelTradeQueryAPIResponse.go new file mode 100644 index 0000000000..a575e951f2 --- /dev/null +++ b/model/traveltrade/AlitripTravelTradeQueryAPIResponse.go @@ -0,0 +1,27 @@ +package traveltrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪度假-订单详情查询接口 API返回值 +alitrip.travel.trade.query + +飞猪度假订单详情查询接口 +*/ +type AlitripTravelTradeQueryAPIResponse struct { + model.CommonResponse + AlitripTravelTradeQueryAPIResponseModel +} + +// 飞猪度假-订单详情查询接口 成功返回结果 +type AlitripTravelTradeQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_trade_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 交易主订单详情 + FirstResult *TopTripOrderResult `json:"first_result,omitempty" xml:"first_result,omitempty"` +} diff --git a/model/traveltrade/AlitripTravelTradeQueryResponse.go b/model/traveltrade/AlitripTravelTradeQueryResponse.go deleted file mode 100644 index b5e74f73a4..0000000000 --- a/model/traveltrade/AlitripTravelTradeQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package traveltrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -飞猪度假-订单详情查询接口 API返回值 -alitrip.travel.trade.query - -飞猪度假订单详情查询接口 -*/ -type AlitripTravelTradeQueryAPIResponse struct { - model.CommonResponse - AlitripTravelTradeQueryResponse -} - -// 飞猪度假-订单详情查询接口 成功返回结果 -type AlitripTravelTradeQueryResponse struct { - XMLName xml.Name `xml:"alitrip_travel_trade_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 交易主订单详情 - FirstResult *TopTripOrderResult `json:"first_result,omitempty" xml:"first_result,omitempty"` -} diff --git a/model/traveltrade/AlitripTravelTradeServiceinfoWriteAPIRequest.go b/model/traveltrade/AlitripTravelTradeServiceinfoWriteAPIRequest.go new file mode 100644 index 0000000000..b6f28638dc --- /dev/null +++ b/model/traveltrade/AlitripTravelTradeServiceinfoWriteAPIRequest.go @@ -0,0 +1,66 @@ +package traveltrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单服务信息写入接口 API请求 +alitrip.travel.trade.serviceinfo.write + +订单服务信息写入接口 +*/ +type AlitripTravelTradeServiceinfoWriteAPIRequest struct { + model.Params + // 根据模版要求传递对应的订单服务信息,当涉及多值时,用英文分号隔开";",目前api暂时不支持文件上传,只支持链接;链接必须外网能访问 + _tipValue string + // 对应的订单信息 + _subTcOrderId int64 +} + +// 初始化AlitripTravelTradeServiceinfoWriteAPIRequest对象 +func NewAlitripTravelTradeServiceinfoWriteRequest() *AlitripTravelTradeServiceinfoWriteAPIRequest{ + return &AlitripTravelTradeServiceinfoWriteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelTradeServiceinfoWriteAPIRequest) GetApiMethodName() string { + return "alitrip.travel.trade.serviceinfo.write" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelTradeServiceinfoWriteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TipValue Setter +// 根据模版要求传递对应的订单服务信息,当涉及多值时,用英文分号隔开";",目前api暂时不支持文件上传,只支持链接;链接必须外网能访问 +func (r *AlitripTravelTradeServiceinfoWriteAPIRequest) SetTipValue(_tipValue string) error { + r._tipValue = _tipValue + r.Set("tip_value", _tipValue) + return nil +} + +// TipValue Getter +func (r AlitripTravelTradeServiceinfoWriteAPIRequest) GetTipValue() string { + return r._tipValue +} +// SubTcOrderId Setter +// 对应的订单信息 +func (r *AlitripTravelTradeServiceinfoWriteAPIRequest) SetSubTcOrderId(_subTcOrderId int64) error { + r._subTcOrderId = _subTcOrderId + r.Set("sub_tc_order_id", _subTcOrderId) + return nil +} + +// SubTcOrderId Getter +func (r AlitripTravelTradeServiceinfoWriteAPIRequest) GetSubTcOrderId() int64 { + return r._subTcOrderId +} diff --git a/model/traveltrade/AlitripTravelTradeServiceinfoWriteAPIResponse.go b/model/traveltrade/AlitripTravelTradeServiceinfoWriteAPIResponse.go new file mode 100644 index 0000000000..c24ec9eb24 --- /dev/null +++ b/model/traveltrade/AlitripTravelTradeServiceinfoWriteAPIResponse.go @@ -0,0 +1,27 @@ +package traveltrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单服务信息写入接口 API返回值 +alitrip.travel.trade.serviceinfo.write + +订单服务信息写入接口 +*/ +type AlitripTravelTradeServiceinfoWriteAPIResponse struct { + model.CommonResponse + AlitripTravelTradeServiceinfoWriteAPIResponseModel +} + +// 订单服务信息写入接口 成功返回结果 +type AlitripTravelTradeServiceinfoWriteAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_trade_serviceinfo_write_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlitripTravelTradeServiceinfoWriteResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/traveltrade/AlitripTravelTradeServiceinfoWriteResponse.go b/model/traveltrade/AlitripTravelTradeServiceinfoWriteResponse.go deleted file mode 100644 index 3aa4ce1d41..0000000000 --- a/model/traveltrade/AlitripTravelTradeServiceinfoWriteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package traveltrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单服务信息写入接口 API返回值 -alitrip.travel.trade.serviceinfo.write - -订单服务信息写入接口 -*/ -type AlitripTravelTradeServiceinfoWriteAPIResponse struct { - model.CommonResponse - AlitripTravelTradeServiceinfoWriteResponse -} - -// 订单服务信息写入接口 成功返回结果 -type AlitripTravelTradeServiceinfoWriteResponse struct { - XMLName xml.Name `xml:"alitrip_travel_trade_serviceinfo_write_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlitripTravelTradeServiceinfoWriteResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/traveltrade/AlitripTravelTradeTemplateQueryAPIRequest.go b/model/traveltrade/AlitripTravelTradeTemplateQueryAPIRequest.go new file mode 100644 index 0000000000..f8532fb066 --- /dev/null +++ b/model/traveltrade/AlitripTravelTradeTemplateQueryAPIRequest.go @@ -0,0 +1,66 @@ +package traveltrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单服务详情模版查询 API请求 +alitrip.travel.trade.template.query + +通过订单ID获取标注模版信息,商家可以根据模版来填充行业信息 +*/ +type AlitripTravelTradeTemplateQueryAPIRequest struct { + model.Params + // 是否取最新的模版 + _isNew bool + // 淘宝平台订单ID + _orderId int64 +} + +// 初始化AlitripTravelTradeTemplateQueryAPIRequest对象 +func NewAlitripTravelTradeTemplateQueryRequest() *AlitripTravelTradeTemplateQueryAPIRequest{ + return &AlitripTravelTradeTemplateQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelTradeTemplateQueryAPIRequest) GetApiMethodName() string { + return "alitrip.travel.trade.template.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelTradeTemplateQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IsNew Setter +// 是否取最新的模版 +func (r *AlitripTravelTradeTemplateQueryAPIRequest) SetIsNew(_isNew bool) error { + r._isNew = _isNew + r.Set("is_new", _isNew) + return nil +} + +// IsNew Getter +func (r AlitripTravelTradeTemplateQueryAPIRequest) GetIsNew() bool { + return r._isNew +} +// OrderId Setter +// 淘宝平台订单ID +func (r *AlitripTravelTradeTemplateQueryAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlitripTravelTradeTemplateQueryAPIRequest) GetOrderId() int64 { + return r._orderId +} diff --git a/model/traveltrade/AlitripTravelTradeTemplateQueryAPIResponse.go b/model/traveltrade/AlitripTravelTradeTemplateQueryAPIResponse.go new file mode 100644 index 0000000000..aac79af80e --- /dev/null +++ b/model/traveltrade/AlitripTravelTradeTemplateQueryAPIResponse.go @@ -0,0 +1,27 @@ +package traveltrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单服务详情模版查询 API返回值 +alitrip.travel.trade.template.query + +通过订单ID获取标注模版信息,商家可以根据模版来填充行业信息 +*/ +type AlitripTravelTradeTemplateQueryAPIResponse struct { + model.CommonResponse + AlitripTravelTradeTemplateQueryAPIResponseModel +} + +// 订单服务详情模版查询 成功返回结果 +type AlitripTravelTradeTemplateQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_trade_template_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单服务标注模版获取结果 + Result *AlitripTravelTradeTemplateQueryResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/traveltrade/AlitripTravelTradeTemplateQueryResponse.go b/model/traveltrade/AlitripTravelTradeTemplateQueryResponse.go deleted file mode 100644 index cb6477e493..0000000000 --- a/model/traveltrade/AlitripTravelTradeTemplateQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package traveltrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单服务详情模版查询 API返回值 -alitrip.travel.trade.template.query - -通过订单ID获取标注模版信息,商家可以根据模版来填充行业信息 -*/ -type AlitripTravelTradeTemplateQueryAPIResponse struct { - model.CommonResponse - AlitripTravelTradeTemplateQueryResponse -} - -// 订单服务详情模版查询 成功返回结果 -type AlitripTravelTradeTemplateQueryResponse struct { - XMLName xml.Name `xml:"alitrip_travel_trade_template_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单服务标注模版获取结果 - Result *AlitripTravelTradeTemplateQueryResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/traveltrade/AlitripTravelTradesSearchAPIRequest.go b/model/traveltrade/AlitripTravelTradesSearchAPIRequest.go new file mode 100644 index 0000000000..1ed6ad0470 --- /dev/null +++ b/model/traveltrade/AlitripTravelTradesSearchAPIRequest.go @@ -0,0 +1,122 @@ +package traveltrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪度假-订单列表搜索接口 API请求 +alitrip.travel.trades.search + +订单列表搜索接口:以订单创建、结束时间、订单状态为搜索条件,搜索过滤出满足条件的卖家订单列表。 +*/ +type AlitripTravelTradesSearchAPIRequest struct { + model.Params + // 页面大小,最大支持的页面大小为100。如查询旅行购订单,则最大支持的页面大小为30 + _pageSize int64 + // 订单创建 结束时间 + _endCreatedTime string + // 订单状态 过滤。1-等待买家付款,2-等待卖家发货(买家已付款),3-等待买家确认收货,4-交易关闭(买家发起的退款),6-交易成功,8-交易关闭(订单超时 自动关单) + _orderStatus int64 + // 当前页 + _currentPage int64 + // 订单创建 开始时间 + _startCreatedTime string + // 类目筛选, 1、旅行购,旅行购定制专用字段,表示搜索旅行购订单。 + _category int64 +} + +// 初始化AlitripTravelTradesSearchAPIRequest对象 +func NewAlitripTravelTradesSearchRequest() *AlitripTravelTradesSearchAPIRequest{ + return &AlitripTravelTradesSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelTradesSearchAPIRequest) GetApiMethodName() string { + return "alitrip.travel.trades.search" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelTradesSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageSize Setter +// 页面大小,最大支持的页面大小为100。如查询旅行购订单,则最大支持的页面大小为30 +func (r *AlitripTravelTradesSearchAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlitripTravelTradesSearchAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// EndCreatedTime Setter +// 订单创建 结束时间 +func (r *AlitripTravelTradesSearchAPIRequest) SetEndCreatedTime(_endCreatedTime string) error { + r._endCreatedTime = _endCreatedTime + r.Set("end_created_time", _endCreatedTime) + return nil +} + +// EndCreatedTime Getter +func (r AlitripTravelTradesSearchAPIRequest) GetEndCreatedTime() string { + return r._endCreatedTime +} +// OrderStatus Setter +// 订单状态 过滤。1-等待买家付款,2-等待卖家发货(买家已付款),3-等待买家确认收货,4-交易关闭(买家发起的退款),6-交易成功,8-交易关闭(订单超时 自动关单) +func (r *AlitripTravelTradesSearchAPIRequest) SetOrderStatus(_orderStatus int64) error { + r._orderStatus = _orderStatus + r.Set("order_status", _orderStatus) + return nil +} + +// OrderStatus Getter +func (r AlitripTravelTradesSearchAPIRequest) GetOrderStatus() int64 { + return r._orderStatus +} +// CurrentPage Setter +// 当前页 +func (r *AlitripTravelTradesSearchAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AlitripTravelTradesSearchAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// StartCreatedTime Setter +// 订单创建 开始时间 +func (r *AlitripTravelTradesSearchAPIRequest) SetStartCreatedTime(_startCreatedTime string) error { + r._startCreatedTime = _startCreatedTime + r.Set("start_created_time", _startCreatedTime) + return nil +} + +// StartCreatedTime Getter +func (r AlitripTravelTradesSearchAPIRequest) GetStartCreatedTime() string { + return r._startCreatedTime +} +// Category Setter +// 类目筛选, 1、旅行购,旅行购定制专用字段,表示搜索旅行购订单。 +func (r *AlitripTravelTradesSearchAPIRequest) SetCategory(_category int64) error { + r._category = _category + r.Set("category", _category) + return nil +} + +// Category Getter +func (r AlitripTravelTradesSearchAPIRequest) GetCategory() int64 { + return r._category +} diff --git a/model/traveltrade/AlitripTravelTradesSearchAPIResponse.go b/model/traveltrade/AlitripTravelTradesSearchAPIResponse.go new file mode 100644 index 0000000000..3d408baeda --- /dev/null +++ b/model/traveltrade/AlitripTravelTradesSearchAPIResponse.go @@ -0,0 +1,31 @@ +package traveltrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪度假-订单列表搜索接口 API返回值 +alitrip.travel.trades.search + +订单列表搜索接口:以订单创建、结束时间、订单状态为搜索条件,搜索过滤出满足条件的卖家订单列表。 +*/ +type AlitripTravelTradesSearchAPIResponse struct { + model.CommonResponse + AlitripTravelTradesSearchAPIResponseModel +} + +// 飞猪度假-订单列表搜索接口 成功返回结果 +type AlitripTravelTradesSearchAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_trades_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 本次搜索包含的订单总数,用于分页控制 + TotalOrders int64 `json:"total_orders,omitempty" xml:"total_orders,omitempty"` + // 主订单id列表(Long类型) + OrderList []int64 `json:"order_list,omitempty" xml:"order_list>int64,omitempty"` + // 主订单id列表(string类型) + OrderStringList []string `json:"order_string_list,omitempty" xml:"order_string_list>string,omitempty"` +} diff --git a/model/traveltrade/AlitripTravelTradesSearchResponse.go b/model/traveltrade/AlitripTravelTradesSearchResponse.go deleted file mode 100644 index 29c79acc9a..0000000000 --- a/model/traveltrade/AlitripTravelTradesSearchResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package traveltrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -飞猪度假-订单列表搜索接口 API返回值 -alitrip.travel.trades.search - -订单列表搜索接口:以订单创建、结束时间、订单状态为搜索条件,搜索过滤出满足条件的卖家订单列表。 -*/ -type AlitripTravelTradesSearchAPIResponse struct { - model.CommonResponse - AlitripTravelTradesSearchResponse -} - -// 飞猪度假-订单列表搜索接口 成功返回结果 -type AlitripTravelTradesSearchResponse struct { - XMLName xml.Name `xml:"alitrip_travel_trades_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 本次搜索包含的订单总数,用于分页控制 - TotalOrders int64 `json:"total_orders,omitempty" xml:"total_orders,omitempty"` - // 主订单id列表(Long类型) - OrderList []int64 `json:"order_list,omitempty" xml:"order_list>int64,omitempty"` - // 主订单id列表(string类型) - OrderStringList []string `json:"order_string_list,omitempty" xml:"order_string_list>string,omitempty"` -} diff --git a/model/traveltrade/AlitripTravelVisaApplicantUpdateAPIRequest.go b/model/traveltrade/AlitripTravelVisaApplicantUpdateAPIRequest.go new file mode 100644 index 0000000000..e31a9e1057 --- /dev/null +++ b/model/traveltrade/AlitripTravelVisaApplicantUpdateAPIRequest.go @@ -0,0 +1,234 @@ +package traveltrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪度假-普通签证-申请人进度推进接口 API请求 +alitrip.travel.visa.applicant.update + +普通签证订单的申请人进度推进接口,用于商家代用户填写申请人基本信息 或 推进单个申请人的签证进度。 +*/ +type AlitripTravelVisaApplicantUpdateAPIRequest struct { + model.Params + // 必填,子订单id + _subOrderId string + // 必填,操作类型。1-上传新申请人基本信息(商家代填申请人),2-更新已有申请人基本信息,3-更新已有申请人的签证进度,4-商家代传申请人信息和材料(使馆直连订单) + _operType int64 + // 特殊必填,申请人基本信息(证件号,姓名,手机号)列表。当operType为1或2或4时必填 + _applicantInfos []NormalVisaApplicantInfo + // 特殊必填,签证申请人进度推进操作(目前只支持对单个申请人状态进行推进)。当operType为3时必填 + _applicantOp *NormalVisaApplicantOperation + // 特殊必填,pdf文件字节流。用于上传电子签pdf结果 或者 预约面试信pdf文件。 + _fileBytes *model.File + // 特殊必填,文件字节流,用于上传证件照,必须和photoType同时传 + _photoBytes *model.File + // 证件照文件类型 + _photoType string + // 特殊必填,文件字节流,用于上传护照,必须和passportType同时传 + _passportBytes *model.File + // 护照文件类型 + _passportType string + // 酒店预订文件类型 + _hotelBookingFormType string + // 特殊必填,文件字节流,用于上传酒店预订,必须和hotelBookingFormType同时传 + _hotelBookingFormBytes *model.File + // 机票预订文件类型 + _flightBookingFormType string + // 特殊必填,文件字节流,用于上传机票预订,必须和flightBookingFormType同时传 + _flightBookingFormBytes *model.File + // 特殊必填,更多材料 + _documentInfos []NormalVisaDocumentInfo +} + +// 初始化AlitripTravelVisaApplicantUpdateAPIRequest对象 +func NewAlitripTravelVisaApplicantUpdateRequest() *AlitripTravelVisaApplicantUpdateAPIRequest{ + return &AlitripTravelVisaApplicantUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTravelVisaApplicantUpdateAPIRequest) GetApiMethodName() string { + return "alitrip.travel.visa.applicant.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTravelVisaApplicantUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubOrderId Setter +// 必填,子订单id +func (r *AlitripTravelVisaApplicantUpdateAPIRequest) SetSubOrderId(_subOrderId string) error { + r._subOrderId = _subOrderId + r.Set("sub_order_id", _subOrderId) + return nil +} + +// SubOrderId Getter +func (r AlitripTravelVisaApplicantUpdateAPIRequest) GetSubOrderId() string { + return r._subOrderId +} +// OperType Setter +// 必填,操作类型。1-上传新申请人基本信息(商家代填申请人),2-更新已有申请人基本信息,3-更新已有申请人的签证进度,4-商家代传申请人信息和材料(使馆直连订单) +func (r *AlitripTravelVisaApplicantUpdateAPIRequest) SetOperType(_operType int64) error { + r._operType = _operType + r.Set("oper_type", _operType) + return nil +} + +// OperType Getter +func (r AlitripTravelVisaApplicantUpdateAPIRequest) GetOperType() int64 { + return r._operType +} +// ApplicantInfos Setter +// 特殊必填,申请人基本信息(证件号,姓名,手机号)列表。当operType为1或2或4时必填 +func (r *AlitripTravelVisaApplicantUpdateAPIRequest) SetApplicantInfos(_applicantInfos []NormalVisaApplicantInfo) error { + r._applicantInfos = _applicantInfos + r.Set("applicant_infos", _applicantInfos) + return nil +} + +// ApplicantInfos Getter +func (r AlitripTravelVisaApplicantUpdateAPIRequest) GetApplicantInfos() []NormalVisaApplicantInfo { + return r._applicantInfos +} +// ApplicantOp Setter +// 特殊必填,签证申请人进度推进操作(目前只支持对单个申请人状态进行推进)。当operType为3时必填 +func (r *AlitripTravelVisaApplicantUpdateAPIRequest) SetApplicantOp(_applicantOp *NormalVisaApplicantOperation) error { + r._applicantOp = _applicantOp + r.Set("applicant_op", _applicantOp) + return nil +} + +// ApplicantOp Getter +func (r AlitripTravelVisaApplicantUpdateAPIRequest) GetApplicantOp() *NormalVisaApplicantOperation { + return r._applicantOp +} +// FileBytes Setter +// 特殊必填,pdf文件字节流。用于上传电子签pdf结果 或者 预约面试信pdf文件。 +func (r *AlitripTravelVisaApplicantUpdateAPIRequest) SetFileBytes(_fileBytes *model.File) error { + r._fileBytes = _fileBytes + r.Set("file_bytes", _fileBytes) + return nil +} + +// FileBytes Getter +func (r AlitripTravelVisaApplicantUpdateAPIRequest) GetFileBytes() *model.File { + return r._fileBytes +} +// PhotoBytes Setter +// 特殊必填,文件字节流,用于上传证件照,必须和photoType同时传 +func (r *AlitripTravelVisaApplicantUpdateAPIRequest) SetPhotoBytes(_photoBytes *model.File) error { + r._photoBytes = _photoBytes + r.Set("photo_bytes", _photoBytes) + return nil +} + +// PhotoBytes Getter +func (r AlitripTravelVisaApplicantUpdateAPIRequest) GetPhotoBytes() *model.File { + return r._photoBytes +} +// PhotoType Setter +// 证件照文件类型 +func (r *AlitripTravelVisaApplicantUpdateAPIRequest) SetPhotoType(_photoType string) error { + r._photoType = _photoType + r.Set("photo_type", _photoType) + return nil +} + +// PhotoType Getter +func (r AlitripTravelVisaApplicantUpdateAPIRequest) GetPhotoType() string { + return r._photoType +} +// PassportBytes Setter +// 特殊必填,文件字节流,用于上传护照,必须和passportType同时传 +func (r *AlitripTravelVisaApplicantUpdateAPIRequest) SetPassportBytes(_passportBytes *model.File) error { + r._passportBytes = _passportBytes + r.Set("passport_bytes", _passportBytes) + return nil +} + +// PassportBytes Getter +func (r AlitripTravelVisaApplicantUpdateAPIRequest) GetPassportBytes() *model.File { + return r._passportBytes +} +// PassportType Setter +// 护照文件类型 +func (r *AlitripTravelVisaApplicantUpdateAPIRequest) SetPassportType(_passportType string) error { + r._passportType = _passportType + r.Set("passport_type", _passportType) + return nil +} + +// PassportType Getter +func (r AlitripTravelVisaApplicantUpdateAPIRequest) GetPassportType() string { + return r._passportType +} +// HotelBookingFormType Setter +// 酒店预订文件类型 +func (r *AlitripTravelVisaApplicantUpdateAPIRequest) SetHotelBookingFormType(_hotelBookingFormType string) error { + r._hotelBookingFormType = _hotelBookingFormType + r.Set("hotel_booking_form_type", _hotelBookingFormType) + return nil +} + +// HotelBookingFormType Getter +func (r AlitripTravelVisaApplicantUpdateAPIRequest) GetHotelBookingFormType() string { + return r._hotelBookingFormType +} +// HotelBookingFormBytes Setter +// 特殊必填,文件字节流,用于上传酒店预订,必须和hotelBookingFormType同时传 +func (r *AlitripTravelVisaApplicantUpdateAPIRequest) SetHotelBookingFormBytes(_hotelBookingFormBytes *model.File) error { + r._hotelBookingFormBytes = _hotelBookingFormBytes + r.Set("hotel_booking_form_bytes", _hotelBookingFormBytes) + return nil +} + +// HotelBookingFormBytes Getter +func (r AlitripTravelVisaApplicantUpdateAPIRequest) GetHotelBookingFormBytes() *model.File { + return r._hotelBookingFormBytes +} +// FlightBookingFormType Setter +// 机票预订文件类型 +func (r *AlitripTravelVisaApplicantUpdateAPIRequest) SetFlightBookingFormType(_flightBookingFormType string) error { + r._flightBookingFormType = _flightBookingFormType + r.Set("flight_booking_form_type", _flightBookingFormType) + return nil +} + +// FlightBookingFormType Getter +func (r AlitripTravelVisaApplicantUpdateAPIRequest) GetFlightBookingFormType() string { + return r._flightBookingFormType +} +// FlightBookingFormBytes Setter +// 特殊必填,文件字节流,用于上传机票预订,必须和flightBookingFormType同时传 +func (r *AlitripTravelVisaApplicantUpdateAPIRequest) SetFlightBookingFormBytes(_flightBookingFormBytes *model.File) error { + r._flightBookingFormBytes = _flightBookingFormBytes + r.Set("flight_booking_form_bytes", _flightBookingFormBytes) + return nil +} + +// FlightBookingFormBytes Getter +func (r AlitripTravelVisaApplicantUpdateAPIRequest) GetFlightBookingFormBytes() *model.File { + return r._flightBookingFormBytes +} +// DocumentInfos Setter +// 特殊必填,更多材料 +func (r *AlitripTravelVisaApplicantUpdateAPIRequest) SetDocumentInfos(_documentInfos []NormalVisaDocumentInfo) error { + r._documentInfos = _documentInfos + r.Set("document_infos", _documentInfos) + return nil +} + +// DocumentInfos Getter +func (r AlitripTravelVisaApplicantUpdateAPIRequest) GetDocumentInfos() []NormalVisaDocumentInfo { + return r._documentInfos +} diff --git a/model/traveltrade/AlitripTravelVisaApplicantUpdateAPIResponse.go b/model/traveltrade/AlitripTravelVisaApplicantUpdateAPIResponse.go new file mode 100644 index 0000000000..54a276b171 --- /dev/null +++ b/model/traveltrade/AlitripTravelVisaApplicantUpdateAPIResponse.go @@ -0,0 +1,29 @@ +package traveltrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪度假-普通签证-申请人进度推进接口 API返回值 +alitrip.travel.visa.applicant.update + +普通签证订单的申请人进度推进接口,用于商家代用户填写申请人基本信息 或 推进单个申请人的签证进度。 +*/ +type AlitripTravelVisaApplicantUpdateAPIResponse struct { + model.CommonResponse + AlitripTravelVisaApplicantUpdateAPIResponseModel +} + +// 飞猪度假-普通签证-申请人进度推进接口 成功返回结果 +type AlitripTravelVisaApplicantUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_visa_applicant_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 申请人状态更新是否成功 + UpdateResult bool `json:"update_result,omitempty" xml:"update_result,omitempty"` + // 该订单上已经上传的申请人列表信息 + Applicants []NormalVisaApplicantInfo `json:"applicants,omitempty" xml:"applicants>normal_visa_applicant_info,omitempty"` +} diff --git a/model/traveltrade/AlitripTravelVisaApplicantUpdateResponse.go b/model/traveltrade/AlitripTravelVisaApplicantUpdateResponse.go deleted file mode 100644 index a9d66bc9bd..0000000000 --- a/model/traveltrade/AlitripTravelVisaApplicantUpdateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package traveltrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -飞猪度假-普通签证-申请人进度推进接口 API返回值 -alitrip.travel.visa.applicant.update - -普通签证订单的申请人进度推进接口,用于商家代用户填写申请人基本信息 或 推进单个申请人的签证进度。 -*/ -type AlitripTravelVisaApplicantUpdateAPIResponse struct { - model.CommonResponse - AlitripTravelVisaApplicantUpdateResponse -} - -// 飞猪度假-普通签证-申请人进度推进接口 成功返回结果 -type AlitripTravelVisaApplicantUpdateResponse struct { - XMLName xml.Name `xml:"alitrip_travel_visa_applicant_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 申请人状态更新是否成功 - UpdateResult bool `json:"update_result,omitempty" xml:"update_result,omitempty"` - // 该订单上已经上传的申请人列表信息 - Applicants []NormalVisaApplicantInfo `json:"applicants,omitempty" xml:"applicants>normal_visa_applicant_info,omitempty"` -} diff --git a/model/traveltrade/TaobaoAlitripTravelTradeMemoAddAPIRequest.go b/model/traveltrade/TaobaoAlitripTravelTradeMemoAddAPIRequest.go new file mode 100644 index 0000000000..b144f16160 --- /dev/null +++ b/model/traveltrade/TaobaoAlitripTravelTradeMemoAddAPIRequest.go @@ -0,0 +1,80 @@ +package traveltrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加一笔交易备注 API请求 +taobao.alitrip.travel.trade.memo.add + +对一笔交易添加备注 +*/ +type TaobaoAlitripTravelTradeMemoAddAPIRequest struct { + model.Params + // 交易ID + _tid int64 + // 交易备注。最大长度: 1000个字节 + _memo string + // 交易备注旗帜,可选值为:0(灰色), 1(红色), 2(黄色), 3(绿色), 4(蓝色), 5(粉红色),默认值为0 + _flag int64 +} + +// 初始化TaobaoAlitripTravelTradeMemoAddAPIRequest对象 +func NewTaobaoAlitripTravelTradeMemoAddRequest() *TaobaoAlitripTravelTradeMemoAddAPIRequest{ + return &TaobaoAlitripTravelTradeMemoAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelTradeMemoAddAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.trade.memo.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelTradeMemoAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 交易ID +func (r *TaobaoAlitripTravelTradeMemoAddAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoAlitripTravelTradeMemoAddAPIRequest) GetTid() int64 { + return r._tid +} +// Memo Setter +// 交易备注。最大长度: 1000个字节 +func (r *TaobaoAlitripTravelTradeMemoAddAPIRequest) SetMemo(_memo string) error { + r._memo = _memo + r.Set("memo", _memo) + return nil +} + +// Memo Getter +func (r TaobaoAlitripTravelTradeMemoAddAPIRequest) GetMemo() string { + return r._memo +} +// Flag Setter +// 交易备注旗帜,可选值为:0(灰色), 1(红色), 2(黄色), 3(绿色), 4(蓝色), 5(粉红色),默认值为0 +func (r *TaobaoAlitripTravelTradeMemoAddAPIRequest) SetFlag(_flag int64) error { + r._flag = _flag + r.Set("flag", _flag) + return nil +} + +// Flag Getter +func (r TaobaoAlitripTravelTradeMemoAddAPIRequest) GetFlag() int64 { + return r._flag +} diff --git a/model/traveltrade/TaobaoAlitripTravelTradeMemoAddAPIResponse.go b/model/traveltrade/TaobaoAlitripTravelTradeMemoAddAPIResponse.go new file mode 100644 index 0000000000..a33e012e90 --- /dev/null +++ b/model/traveltrade/TaobaoAlitripTravelTradeMemoAddAPIResponse.go @@ -0,0 +1,27 @@ +package traveltrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加一笔交易备注 API返回值 +taobao.alitrip.travel.trade.memo.add + +对一笔交易添加备注 +*/ +type TaobaoAlitripTravelTradeMemoAddAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelTradeMemoAddAPIResponseModel +} + +// 添加一笔交易备注 成功返回结果 +type TaobaoAlitripTravelTradeMemoAddAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_trade_memo_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 交易添加备注返回值 + MemoAdd *MemoCreate `json:"memo_add,omitempty" xml:"memo_add,omitempty"` +} diff --git a/model/traveltrade/TaobaoAlitripTravelTradeMemoAddResponse.go b/model/traveltrade/TaobaoAlitripTravelTradeMemoAddResponse.go deleted file mode 100644 index de6fd9d69c..0000000000 --- a/model/traveltrade/TaobaoAlitripTravelTradeMemoAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package traveltrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加一笔交易备注 API返回值 -taobao.alitrip.travel.trade.memo.add - -对一笔交易添加备注 -*/ -type TaobaoAlitripTravelTradeMemoAddAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelTradeMemoAddResponse -} - -// 添加一笔交易备注 成功返回结果 -type TaobaoAlitripTravelTradeMemoAddResponse struct { - XMLName xml.Name `xml:"alitrip_travel_trade_memo_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 交易添加备注返回值 - MemoAdd *MemoCreate `json:"memo_add,omitempty" xml:"memo_add,omitempty"` -} diff --git a/model/traveltrade/TaobaoAlitripTravelTradeMemoUpdateAPIRequest.go b/model/traveltrade/TaobaoAlitripTravelTradeMemoUpdateAPIRequest.go new file mode 100644 index 0000000000..e7762990a6 --- /dev/null +++ b/model/traveltrade/TaobaoAlitripTravelTradeMemoUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package traveltrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改一笔交易备注 API请求 +taobao.alitrip.travel.trade.memo.update + +更新一笔交易备注 +*/ +type TaobaoAlitripTravelTradeMemoUpdateAPIRequest struct { + model.Params + // 交易ID + _tid int64 + // 交易备注。最大长度: 1000个字节 + _memo string + // 交易备注旗帜,可选值为:0(灰色), 1(红色), 2(黄色), 3(绿色), 4(蓝色), 5(粉红色),默认值为0 + _flag int64 + // 是否对memo的值置空若为true,则不管传入的memo字段的值是否为空,都将会对已有的memo值清空,慎用;若用false,则会根据memo是否为空来修改memo的值:若memo为空则忽略对已有memo字段的修改,若memo非空,则使用新传入的memo覆盖已有的memo的值 + _reset bool +} + +// 初始化TaobaoAlitripTravelTradeMemoUpdateAPIRequest对象 +func NewTaobaoAlitripTravelTradeMemoUpdateRequest() *TaobaoAlitripTravelTradeMemoUpdateAPIRequest{ + return &TaobaoAlitripTravelTradeMemoUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAlitripTravelTradeMemoUpdateAPIRequest) GetApiMethodName() string { + return "taobao.alitrip.travel.trade.memo.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAlitripTravelTradeMemoUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 交易ID +func (r *TaobaoAlitripTravelTradeMemoUpdateAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoAlitripTravelTradeMemoUpdateAPIRequest) GetTid() int64 { + return r._tid +} +// Memo Setter +// 交易备注。最大长度: 1000个字节 +func (r *TaobaoAlitripTravelTradeMemoUpdateAPIRequest) SetMemo(_memo string) error { + r._memo = _memo + r.Set("memo", _memo) + return nil +} + +// Memo Getter +func (r TaobaoAlitripTravelTradeMemoUpdateAPIRequest) GetMemo() string { + return r._memo +} +// Flag Setter +// 交易备注旗帜,可选值为:0(灰色), 1(红色), 2(黄色), 3(绿色), 4(蓝色), 5(粉红色),默认值为0 +func (r *TaobaoAlitripTravelTradeMemoUpdateAPIRequest) SetFlag(_flag int64) error { + r._flag = _flag + r.Set("flag", _flag) + return nil +} + +// Flag Getter +func (r TaobaoAlitripTravelTradeMemoUpdateAPIRequest) GetFlag() int64 { + return r._flag +} +// Reset Setter +// 是否对memo的值置空若为true,则不管传入的memo字段的值是否为空,都将会对已有的memo值清空,慎用;若用false,则会根据memo是否为空来修改memo的值:若memo为空则忽略对已有memo字段的修改,若memo非空,则使用新传入的memo覆盖已有的memo的值 +func (r *TaobaoAlitripTravelTradeMemoUpdateAPIRequest) SetReset(_reset bool) error { + r._reset = _reset + r.Set("reset", _reset) + return nil +} + +// Reset Getter +func (r TaobaoAlitripTravelTradeMemoUpdateAPIRequest) GetReset() bool { + return r._reset +} diff --git a/model/traveltrade/TaobaoAlitripTravelTradeMemoUpdateAPIResponse.go b/model/traveltrade/TaobaoAlitripTravelTradeMemoUpdateAPIResponse.go new file mode 100644 index 0000000000..b965697bdf --- /dev/null +++ b/model/traveltrade/TaobaoAlitripTravelTradeMemoUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package traveltrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改一笔交易备注 API返回值 +taobao.alitrip.travel.trade.memo.update + +更新一笔交易备注 +*/ +type TaobaoAlitripTravelTradeMemoUpdateAPIResponse struct { + model.CommonResponse + TaobaoAlitripTravelTradeMemoUpdateAPIResponseModel +} + +// 修改一笔交易备注 成功返回结果 +type TaobaoAlitripTravelTradeMemoUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_travel_trade_memo_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改交易备注返回值 + MemoUpdate *MemoUpdate `json:"memo_update,omitempty" xml:"memo_update,omitempty"` +} diff --git a/model/traveltrade/TaobaoAlitripTravelTradeMemoUpdateResponse.go b/model/traveltrade/TaobaoAlitripTravelTradeMemoUpdateResponse.go deleted file mode 100644 index 11d36a6f71..0000000000 --- a/model/traveltrade/TaobaoAlitripTravelTradeMemoUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package traveltrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改一笔交易备注 API返回值 -taobao.alitrip.travel.trade.memo.update - -更新一笔交易备注 -*/ -type TaobaoAlitripTravelTradeMemoUpdateAPIResponse struct { - model.CommonResponse - TaobaoAlitripTravelTradeMemoUpdateResponse -} - -// 修改一笔交易备注 成功返回结果 -type TaobaoAlitripTravelTradeMemoUpdateResponse struct { - XMLName xml.Name `xml:"alitrip_travel_trade_memo_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改交易备注返回值 - MemoUpdate *MemoUpdate `json:"memo_update,omitempty" xml:"memo_update,omitempty"` -} diff --git a/model/traveltrade/TaobaoTravelTicketOrderRefundAPIRequest.go b/model/traveltrade/TaobaoTravelTicketOrderRefundAPIRequest.go new file mode 100644 index 0000000000..f99e4bb201 --- /dev/null +++ b/model/traveltrade/TaobaoTravelTicketOrderRefundAPIRequest.go @@ -0,0 +1,80 @@ +package traveltrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪门票退票结果通知 API请求 +taobao.travel.ticket.order.refund + +门票系统商通过TOP接口通知飞猪门票是否退票成功,以及退票数量。 +*/ +type TaobaoTravelTicketOrderRefundAPIRequest struct { + model.Params + // 下单时订单ID + _orderId int64 + // 退票结果;1: 退票成功;2: 退票失败 + _refundStatus int64 + // 退票失败理由 + _refundFailureReason string +} + +// 初始化TaobaoTravelTicketOrderRefundAPIRequest对象 +func NewTaobaoTravelTicketOrderRefundRequest() *TaobaoTravelTicketOrderRefundAPIRequest{ + return &TaobaoTravelTicketOrderRefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTravelTicketOrderRefundAPIRequest) GetApiMethodName() string { + return "taobao.travel.ticket.order.refund" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTravelTicketOrderRefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 下单时订单ID +func (r *TaobaoTravelTicketOrderRefundAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoTravelTicketOrderRefundAPIRequest) GetOrderId() int64 { + return r._orderId +} +// RefundStatus Setter +// 退票结果;1: 退票成功;2: 退票失败 +func (r *TaobaoTravelTicketOrderRefundAPIRequest) SetRefundStatus(_refundStatus int64) error { + r._refundStatus = _refundStatus + r.Set("refund_status", _refundStatus) + return nil +} + +// RefundStatus Getter +func (r TaobaoTravelTicketOrderRefundAPIRequest) GetRefundStatus() int64 { + return r._refundStatus +} +// RefundFailureReason Setter +// 退票失败理由 +func (r *TaobaoTravelTicketOrderRefundAPIRequest) SetRefundFailureReason(_refundFailureReason string) error { + r._refundFailureReason = _refundFailureReason + r.Set("refund_failure_reason", _refundFailureReason) + return nil +} + +// RefundFailureReason Getter +func (r TaobaoTravelTicketOrderRefundAPIRequest) GetRefundFailureReason() string { + return r._refundFailureReason +} diff --git a/model/traveltrade/TaobaoTravelTicketOrderRefundAPIResponse.go b/model/traveltrade/TaobaoTravelTicketOrderRefundAPIResponse.go new file mode 100644 index 0000000000..d18ede88b5 --- /dev/null +++ b/model/traveltrade/TaobaoTravelTicketOrderRefundAPIResponse.go @@ -0,0 +1,27 @@ +package traveltrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪门票退票结果通知 API返回值 +taobao.travel.ticket.order.refund + +门票系统商通过TOP接口通知飞猪门票是否退票成功,以及退票数量。 +*/ +type TaobaoTravelTicketOrderRefundAPIResponse struct { + model.CommonResponse + TaobaoTravelTicketOrderRefundAPIResponseModel +} + +// 飞猪门票退票结果通知 成功返回结果 +type TaobaoTravelTicketOrderRefundAPIResponseModel struct { + XMLName xml.Name `xml:"travel_ticket_order_refund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功返回isSuccess为true + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/traveltrade/TaobaoTravelTicketOrderRefundResponse.go b/model/traveltrade/TaobaoTravelTicketOrderRefundResponse.go deleted file mode 100644 index 4390c838ff..0000000000 --- a/model/traveltrade/TaobaoTravelTicketOrderRefundResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package traveltrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -飞猪门票退票结果通知 API返回值 -taobao.travel.ticket.order.refund - -门票系统商通过TOP接口通知飞猪门票是否退票成功,以及退票数量。 -*/ -type TaobaoTravelTicketOrderRefundAPIResponse struct { - model.CommonResponse - TaobaoTravelTicketOrderRefundResponse -} - -// 飞猪门票退票结果通知 成功返回结果 -type TaobaoTravelTicketOrderRefundResponse struct { - XMLName xml.Name `xml:"travel_ticket_order_refund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功返回isSuccess为true - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/traveltrade/TaobaoTravelTicketOrderVerifyAPIRequest.go b/model/traveltrade/TaobaoTravelTicketOrderVerifyAPIRequest.go new file mode 100644 index 0000000000..a191027000 --- /dev/null +++ b/model/traveltrade/TaobaoTravelTicketOrderVerifyAPIRequest.go @@ -0,0 +1,94 @@ +package traveltrade + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪门票核销通知 API请求 +taobao.travel.ticket.order.verify + +系统商通过TOP接口调用通知飞猪门票核销情况 +*/ +type TaobaoTravelTicketOrderVerifyAPIRequest struct { + model.Params + // 下单订单ID + _orderId int64 + // 外部订单ID + _outOrderId string + // 使用凭证信息 + _voucherInfos []VoucherInfoDto + // 供应商核销回调类型:0表示使用本次核销数量(常规),1表示使用总核销数量(已使用+本次) + _writeOffType int64 +} + +// 初始化TaobaoTravelTicketOrderVerifyAPIRequest对象 +func NewTaobaoTravelTicketOrderVerifyRequest() *TaobaoTravelTicketOrderVerifyAPIRequest{ + return &TaobaoTravelTicketOrderVerifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTravelTicketOrderVerifyAPIRequest) GetApiMethodName() string { + return "taobao.travel.ticket.order.verify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTravelTicketOrderVerifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 下单订单ID +func (r *TaobaoTravelTicketOrderVerifyAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r TaobaoTravelTicketOrderVerifyAPIRequest) GetOrderId() int64 { + return r._orderId +} +// OutOrderId Setter +// 外部订单ID +func (r *TaobaoTravelTicketOrderVerifyAPIRequest) SetOutOrderId(_outOrderId string) error { + r._outOrderId = _outOrderId + r.Set("out_order_id", _outOrderId) + return nil +} + +// OutOrderId Getter +func (r TaobaoTravelTicketOrderVerifyAPIRequest) GetOutOrderId() string { + return r._outOrderId +} +// VoucherInfos Setter +// 使用凭证信息 +func (r *TaobaoTravelTicketOrderVerifyAPIRequest) SetVoucherInfos(_voucherInfos []VoucherInfoDto) error { + r._voucherInfos = _voucherInfos + r.Set("voucher_infos", _voucherInfos) + return nil +} + +// VoucherInfos Getter +func (r TaobaoTravelTicketOrderVerifyAPIRequest) GetVoucherInfos() []VoucherInfoDto { + return r._voucherInfos +} +// WriteOffType Setter +// 供应商核销回调类型:0表示使用本次核销数量(常规),1表示使用总核销数量(已使用+本次) +func (r *TaobaoTravelTicketOrderVerifyAPIRequest) SetWriteOffType(_writeOffType int64) error { + r._writeOffType = _writeOffType + r.Set("write_off_type", _writeOffType) + return nil +} + +// WriteOffType Getter +func (r TaobaoTravelTicketOrderVerifyAPIRequest) GetWriteOffType() int64 { + return r._writeOffType +} diff --git a/model/traveltrade/TaobaoTravelTicketOrderVerifyAPIResponse.go b/model/traveltrade/TaobaoTravelTicketOrderVerifyAPIResponse.go new file mode 100644 index 0000000000..7dbc02bca9 --- /dev/null +++ b/model/traveltrade/TaobaoTravelTicketOrderVerifyAPIResponse.go @@ -0,0 +1,27 @@ +package traveltrade + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪门票核销通知 API返回值 +taobao.travel.ticket.order.verify + +系统商通过TOP接口调用通知飞猪门票核销情况 +*/ +type TaobaoTravelTicketOrderVerifyAPIResponse struct { + model.CommonResponse + TaobaoTravelTicketOrderVerifyAPIResponseModel +} + +// 飞猪门票核销通知 成功返回结果 +type TaobaoTravelTicketOrderVerifyAPIResponseModel struct { + XMLName xml.Name `xml:"travel_ticket_order_verify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 正确返回true + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/traveltrade/TaobaoTravelTicketOrderVerifyResponse.go b/model/traveltrade/TaobaoTravelTicketOrderVerifyResponse.go deleted file mode 100644 index 3b68d3cabf..0000000000 --- a/model/traveltrade/TaobaoTravelTicketOrderVerifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package traveltrade - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -飞猪门票核销通知 API返回值 -taobao.travel.ticket.order.verify - -系统商通过TOP接口调用通知飞猪门票核销情况 -*/ -type TaobaoTravelTicketOrderVerifyAPIResponse struct { - model.CommonResponse - TaobaoTravelTicketOrderVerifyResponse -} - -// 飞猪门票核销通知 成功返回结果 -type TaobaoTravelTicketOrderVerifyResponse struct { - XMLName xml.Name `xml:"travel_ticket_order_verify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 正确返回true - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/tttm/AliyunIndustryTttmItemsSyncAPIRequest.go b/model/tttm/AliyunIndustryTttmItemsSyncAPIRequest.go new file mode 100644 index 0000000000..cac0eff224 --- /dev/null +++ b/model/tttm/AliyunIndustryTttmItemsSyncAPIRequest.go @@ -0,0 +1,52 @@ +package tttm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天天特卖商品信息同步 API请求 +aliyun.industry.tttm.items.sync + +天天特卖商品信息同步 +*/ +type AliyunIndustryTttmItemsSyncAPIRequest struct { + model.Params + // 商品信息 + _syncItems []ItemInfoDto +} + +// 初始化AliyunIndustryTttmItemsSyncAPIRequest对象 +func NewAliyunIndustryTttmItemsSyncRequest() *AliyunIndustryTttmItemsSyncAPIRequest{ + return &AliyunIndustryTttmItemsSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunIndustryTttmItemsSyncAPIRequest) GetApiMethodName() string { + return "aliyun.industry.tttm.items.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunIndustryTttmItemsSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SyncItems Setter +// 商品信息 +func (r *AliyunIndustryTttmItemsSyncAPIRequest) SetSyncItems(_syncItems []ItemInfoDto) error { + r._syncItems = _syncItems + r.Set("sync_items", _syncItems) + return nil +} + +// SyncItems Getter +func (r AliyunIndustryTttmItemsSyncAPIRequest) GetSyncItems() []ItemInfoDto { + return r._syncItems +} diff --git a/model/tttm/AliyunIndustryTttmItemsSyncAPIResponse.go b/model/tttm/AliyunIndustryTttmItemsSyncAPIResponse.go new file mode 100644 index 0000000000..51467ce3aa --- /dev/null +++ b/model/tttm/AliyunIndustryTttmItemsSyncAPIResponse.go @@ -0,0 +1,27 @@ +package tttm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天天特卖商品信息同步 API返回值 +aliyun.industry.tttm.items.sync + +天天特卖商品信息同步 +*/ +type AliyunIndustryTttmItemsSyncAPIResponse struct { + model.CommonResponse + AliyunIndustryTttmItemsSyncAPIResponseModel +} + +// 天天特卖商品信息同步 成功返回结果 +type AliyunIndustryTttmItemsSyncAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_industry_tttm_items_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功失败标识 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tttm/AliyunIndustryTttmItemsSyncResponse.go b/model/tttm/AliyunIndustryTttmItemsSyncResponse.go deleted file mode 100644 index 897c836155..0000000000 --- a/model/tttm/AliyunIndustryTttmItemsSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tttm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天天特卖商品信息同步 API返回值 -aliyun.industry.tttm.items.sync - -天天特卖商品信息同步 -*/ -type AliyunIndustryTttmItemsSyncAPIResponse struct { - model.CommonResponse - AliyunIndustryTttmItemsSyncResponse -} - -// 天天特卖商品信息同步 成功返回结果 -type AliyunIndustryTttmItemsSyncResponse struct { - XMLName xml.Name `xml:"aliyun_industry_tttm_items_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功失败标识 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tttm/AliyunIndustryTttmOrderQueryAPIRequest.go b/model/tttm/AliyunIndustryTttmOrderQueryAPIRequest.go new file mode 100644 index 0000000000..3c5c5e748b --- /dev/null +++ b/model/tttm/AliyunIndustryTttmOrderQueryAPIRequest.go @@ -0,0 +1,66 @@ +package tttm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天天特卖数字工厂订单获取 API请求 +aliyun.industry.tttm.order.query + +获取阿里云数字工厂内天天特卖业务的订单 +*/ +type AliyunIndustryTttmOrderQueryAPIRequest struct { + model.Params + // 订单号 + _orderId string + // 外部采购单号 + _externalId string +} + +// 初始化AliyunIndustryTttmOrderQueryAPIRequest对象 +func NewAliyunIndustryTttmOrderQueryRequest() *AliyunIndustryTttmOrderQueryAPIRequest{ + return &AliyunIndustryTttmOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunIndustryTttmOrderQueryAPIRequest) GetApiMethodName() string { + return "aliyun.industry.tttm.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunIndustryTttmOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单号 +func (r *AliyunIndustryTttmOrderQueryAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AliyunIndustryTttmOrderQueryAPIRequest) GetOrderId() string { + return r._orderId +} +// ExternalId Setter +// 外部采购单号 +func (r *AliyunIndustryTttmOrderQueryAPIRequest) SetExternalId(_externalId string) error { + r._externalId = _externalId + r.Set("external_id", _externalId) + return nil +} + +// ExternalId Getter +func (r AliyunIndustryTttmOrderQueryAPIRequest) GetExternalId() string { + return r._externalId +} diff --git a/model/tttm/AliyunIndustryTttmOrderQueryAPIResponse.go b/model/tttm/AliyunIndustryTttmOrderQueryAPIResponse.go new file mode 100644 index 0000000000..57d9b22cd7 --- /dev/null +++ b/model/tttm/AliyunIndustryTttmOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tttm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天天特卖数字工厂订单获取 API返回值 +aliyun.industry.tttm.order.query + +获取阿里云数字工厂内天天特卖业务的订单 +*/ +type AliyunIndustryTttmOrderQueryAPIResponse struct { + model.CommonResponse + AliyunIndustryTttmOrderQueryAPIResponseModel +} + +// 天天特卖数字工厂订单获取 成功返回结果 +type AliyunIndustryTttmOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_industry_tttm_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单 + Result *OrderDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tttm/AliyunIndustryTttmOrderQueryResponse.go b/model/tttm/AliyunIndustryTttmOrderQueryResponse.go deleted file mode 100644 index 00934071c1..0000000000 --- a/model/tttm/AliyunIndustryTttmOrderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tttm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天天特卖数字工厂订单获取 API返回值 -aliyun.industry.tttm.order.query - -获取阿里云数字工厂内天天特卖业务的订单 -*/ -type AliyunIndustryTttmOrderQueryAPIResponse struct { - model.CommonResponse - AliyunIndustryTttmOrderQueryResponse -} - -// 天天特卖数字工厂订单获取 成功返回结果 -type AliyunIndustryTttmOrderQueryResponse struct { - XMLName xml.Name `xml:"aliyun_industry_tttm_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单 - Result *OrderDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tttm/AliyunIndustryTttmPlanSyncAPIRequest.go b/model/tttm/AliyunIndustryTttmPlanSyncAPIRequest.go new file mode 100644 index 0000000000..44f991ec41 --- /dev/null +++ b/model/tttm/AliyunIndustryTttmPlanSyncAPIRequest.go @@ -0,0 +1,52 @@ +package tttm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天天特卖生产计划单同步 API请求 +aliyun.industry.tttm.plan.sync + +ERP系统向天天特卖同步生产计划单的数据 +*/ +type AliyunIndustryTttmPlanSyncAPIRequest struct { + model.Params + // 计划单 + _syncPlan *SyncPlanDto +} + +// 初始化AliyunIndustryTttmPlanSyncAPIRequest对象 +func NewAliyunIndustryTttmPlanSyncRequest() *AliyunIndustryTttmPlanSyncAPIRequest{ + return &AliyunIndustryTttmPlanSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunIndustryTttmPlanSyncAPIRequest) GetApiMethodName() string { + return "aliyun.industry.tttm.plan.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunIndustryTttmPlanSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SyncPlan Setter +// 计划单 +func (r *AliyunIndustryTttmPlanSyncAPIRequest) SetSyncPlan(_syncPlan *SyncPlanDto) error { + r._syncPlan = _syncPlan + r.Set("sync_plan", _syncPlan) + return nil +} + +// SyncPlan Getter +func (r AliyunIndustryTttmPlanSyncAPIRequest) GetSyncPlan() *SyncPlanDto { + return r._syncPlan +} diff --git a/model/tttm/AliyunIndustryTttmPlanSyncAPIResponse.go b/model/tttm/AliyunIndustryTttmPlanSyncAPIResponse.go new file mode 100644 index 0000000000..726e73df3f --- /dev/null +++ b/model/tttm/AliyunIndustryTttmPlanSyncAPIResponse.go @@ -0,0 +1,27 @@ +package tttm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天天特卖生产计划单同步 API返回值 +aliyun.industry.tttm.plan.sync + +ERP系统向天天特卖同步生产计划单的数据 +*/ +type AliyunIndustryTttmPlanSyncAPIResponse struct { + model.CommonResponse + AliyunIndustryTttmPlanSyncAPIResponseModel +} + +// 天天特卖生产计划单同步 成功返回结果 +type AliyunIndustryTttmPlanSyncAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_industry_tttm_plan_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 状态 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tttm/AliyunIndustryTttmPlanSyncResponse.go b/model/tttm/AliyunIndustryTttmPlanSyncResponse.go deleted file mode 100644 index fe93f5d9e6..0000000000 --- a/model/tttm/AliyunIndustryTttmPlanSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tttm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天天特卖生产计划单同步 API返回值 -aliyun.industry.tttm.plan.sync - -ERP系统向天天特卖同步生产计划单的数据 -*/ -type AliyunIndustryTttmPlanSyncAPIResponse struct { - model.CommonResponse - AliyunIndustryTttmPlanSyncResponse -} - -// 天天特卖生产计划单同步 成功返回结果 -type AliyunIndustryTttmPlanSyncResponse struct { - XMLName xml.Name `xml:"aliyun_industry_tttm_plan_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 状态 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tttm/AliyunIndustryTttmProduceSyncAPIRequest.go b/model/tttm/AliyunIndustryTttmProduceSyncAPIRequest.go new file mode 100644 index 0000000000..192cecaf6a --- /dev/null +++ b/model/tttm/AliyunIndustryTttmProduceSyncAPIRequest.go @@ -0,0 +1,52 @@ +package tttm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天天特卖生产进度同步 API请求 +aliyun.industry.tttm.produce.sync + +天天特卖生产进度同步 +*/ +type AliyunIndustryTttmProduceSyncAPIRequest struct { + model.Params + // 计划单 + _syncPlan *SyncPlanDto +} + +// 初始化AliyunIndustryTttmProduceSyncAPIRequest对象 +func NewAliyunIndustryTttmProduceSyncRequest() *AliyunIndustryTttmProduceSyncAPIRequest{ + return &AliyunIndustryTttmProduceSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunIndustryTttmProduceSyncAPIRequest) GetApiMethodName() string { + return "aliyun.industry.tttm.produce.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunIndustryTttmProduceSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SyncPlan Setter +// 计划单 +func (r *AliyunIndustryTttmProduceSyncAPIRequest) SetSyncPlan(_syncPlan *SyncPlanDto) error { + r._syncPlan = _syncPlan + r.Set("sync_plan", _syncPlan) + return nil +} + +// SyncPlan Getter +func (r AliyunIndustryTttmProduceSyncAPIRequest) GetSyncPlan() *SyncPlanDto { + return r._syncPlan +} diff --git a/model/tttm/AliyunIndustryTttmProduceSyncAPIResponse.go b/model/tttm/AliyunIndustryTttmProduceSyncAPIResponse.go new file mode 100644 index 0000000000..61c2b1b890 --- /dev/null +++ b/model/tttm/AliyunIndustryTttmProduceSyncAPIResponse.go @@ -0,0 +1,27 @@ +package tttm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天天特卖生产进度同步 API返回值 +aliyun.industry.tttm.produce.sync + +天天特卖生产进度同步 +*/ +type AliyunIndustryTttmProduceSyncAPIResponse struct { + model.CommonResponse + AliyunIndustryTttmProduceSyncAPIResponseModel +} + +// 天天特卖生产进度同步 成功返回结果 +type AliyunIndustryTttmProduceSyncAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_industry_tttm_produce_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 状态 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tttm/AliyunIndustryTttmProduceSyncResponse.go b/model/tttm/AliyunIndustryTttmProduceSyncResponse.go deleted file mode 100644 index cdb299cee8..0000000000 --- a/model/tttm/AliyunIndustryTttmProduceSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tttm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天天特卖生产进度同步 API返回值 -aliyun.industry.tttm.produce.sync - -天天特卖生产进度同步 -*/ -type AliyunIndustryTttmProduceSyncAPIResponse struct { - model.CommonResponse - AliyunIndustryTttmProduceSyncResponse -} - -// 天天特卖生产进度同步 成功返回结果 -type AliyunIndustryTttmProduceSyncResponse struct { - XMLName xml.Name `xml:"aliyun_industry_tttm_produce_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 状态 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tttm/AliyunIndustryTttmProductsSyncAPIRequest.go b/model/tttm/AliyunIndustryTttmProductsSyncAPIRequest.go new file mode 100644 index 0000000000..34a8c926f4 --- /dev/null +++ b/model/tttm/AliyunIndustryTttmProductsSyncAPIRequest.go @@ -0,0 +1,52 @@ +package tttm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天天特卖货品信息同步 API请求 +aliyun.industry.tttm.products.sync + +天天特卖货品信息同步 +*/ +type AliyunIndustryTttmProductsSyncAPIRequest struct { + model.Params + // 产品信息 + _syncProducts []ProductInfoDto +} + +// 初始化AliyunIndustryTttmProductsSyncAPIRequest对象 +func NewAliyunIndustryTttmProductsSyncRequest() *AliyunIndustryTttmProductsSyncAPIRequest{ + return &AliyunIndustryTttmProductsSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunIndustryTttmProductsSyncAPIRequest) GetApiMethodName() string { + return "aliyun.industry.tttm.products.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunIndustryTttmProductsSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SyncProducts Setter +// 产品信息 +func (r *AliyunIndustryTttmProductsSyncAPIRequest) SetSyncProducts(_syncProducts []ProductInfoDto) error { + r._syncProducts = _syncProducts + r.Set("sync_products", _syncProducts) + return nil +} + +// SyncProducts Getter +func (r AliyunIndustryTttmProductsSyncAPIRequest) GetSyncProducts() []ProductInfoDto { + return r._syncProducts +} diff --git a/model/tttm/AliyunIndustryTttmProductsSyncAPIResponse.go b/model/tttm/AliyunIndustryTttmProductsSyncAPIResponse.go new file mode 100644 index 0000000000..a27bd725bb --- /dev/null +++ b/model/tttm/AliyunIndustryTttmProductsSyncAPIResponse.go @@ -0,0 +1,27 @@ +package tttm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天天特卖货品信息同步 API返回值 +aliyun.industry.tttm.products.sync + +天天特卖货品信息同步 +*/ +type AliyunIndustryTttmProductsSyncAPIResponse struct { + model.CommonResponse + AliyunIndustryTttmProductsSyncAPIResponseModel +} + +// 天天特卖货品信息同步 成功返回结果 +type AliyunIndustryTttmProductsSyncAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_industry_tttm_products_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功失败标识 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tttm/AliyunIndustryTttmProductsSyncResponse.go b/model/tttm/AliyunIndustryTttmProductsSyncResponse.go deleted file mode 100644 index d22deba6fd..0000000000 --- a/model/tttm/AliyunIndustryTttmProductsSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tttm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天天特卖货品信息同步 API返回值 -aliyun.industry.tttm.products.sync - -天天特卖货品信息同步 -*/ -type AliyunIndustryTttmProductsSyncAPIResponse struct { - model.CommonResponse - AliyunIndustryTttmProductsSyncResponse -} - -// 天天特卖货品信息同步 成功返回结果 -type AliyunIndustryTttmProductsSyncResponse struct { - XMLName xml.Name `xml:"aliyun_industry_tttm_products_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功失败标识 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tttm/AliyunIndustryTttmStockSyncAPIRequest.go b/model/tttm/AliyunIndustryTttmStockSyncAPIRequest.go new file mode 100644 index 0000000000..d9a0568e82 --- /dev/null +++ b/model/tttm/AliyunIndustryTttmStockSyncAPIRequest.go @@ -0,0 +1,52 @@ +package tttm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天天特卖库存同步接口 API请求 +aliyun.industry.tttm.stock.sync + +天天特卖库存同步接口 +*/ +type AliyunIndustryTttmStockSyncAPIRequest struct { + model.Params + // 库存 + _syncStock *StockInfoDto +} + +// 初始化AliyunIndustryTttmStockSyncAPIRequest对象 +func NewAliyunIndustryTttmStockSyncRequest() *AliyunIndustryTttmStockSyncAPIRequest{ + return &AliyunIndustryTttmStockSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunIndustryTttmStockSyncAPIRequest) GetApiMethodName() string { + return "aliyun.industry.tttm.stock.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunIndustryTttmStockSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SyncStock Setter +// 库存 +func (r *AliyunIndustryTttmStockSyncAPIRequest) SetSyncStock(_syncStock *StockInfoDto) error { + r._syncStock = _syncStock + r.Set("sync_stock", _syncStock) + return nil +} + +// SyncStock Getter +func (r AliyunIndustryTttmStockSyncAPIRequest) GetSyncStock() *StockInfoDto { + return r._syncStock +} diff --git a/model/tttm/AliyunIndustryTttmStockSyncAPIResponse.go b/model/tttm/AliyunIndustryTttmStockSyncAPIResponse.go new file mode 100644 index 0000000000..f52f45cc7d --- /dev/null +++ b/model/tttm/AliyunIndustryTttmStockSyncAPIResponse.go @@ -0,0 +1,27 @@ +package tttm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天天特卖库存同步接口 API返回值 +aliyun.industry.tttm.stock.sync + +天天特卖库存同步接口 +*/ +type AliyunIndustryTttmStockSyncAPIResponse struct { + model.CommonResponse + AliyunIndustryTttmStockSyncAPIResponseModel +} + +// 天天特卖库存同步接口 成功返回结果 +type AliyunIndustryTttmStockSyncAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_industry_tttm_stock_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功失败标识 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tttm/AliyunIndustryTttmStockSyncResponse.go b/model/tttm/AliyunIndustryTttmStockSyncResponse.go deleted file mode 100644 index 95fcc0279b..0000000000 --- a/model/tttm/AliyunIndustryTttmStockSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tttm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天天特卖库存同步接口 API返回值 -aliyun.industry.tttm.stock.sync - -天天特卖库存同步接口 -*/ -type AliyunIndustryTttmStockSyncAPIResponse struct { - model.CommonResponse - AliyunIndustryTttmStockSyncResponse -} - -// 天天特卖库存同步接口 成功返回结果 -type AliyunIndustryTttmStockSyncResponse struct { - XMLName xml.Name `xml:"aliyun_industry_tttm_stock_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功失败标识 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tuanhotel/AlitripTuanHotelAdaptStoreGetAPIRequest.go b/model/tuanhotel/AlitripTuanHotelAdaptStoreGetAPIRequest.go new file mode 100644 index 0000000000..2a1634a227 --- /dev/null +++ b/model/tuanhotel/AlitripTuanHotelAdaptStoreGetAPIRequest.go @@ -0,0 +1,66 @@ +package tuanhotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店团购套餐关联适用门店 API请求 +alitrip.tuan.hotel.adapt.store.get + +输入shid,返回关联门店详情信息 +*/ +type AlitripTuanHotelAdaptStoreGetAPIRequest struct { + model.Params + // 标准酒店ID列表,逗号分割。与hid_list二者只能选一 + _shidList []int64 + // 物理酒店ID列表,逗号分割。与shid_list二者只能选一 + _hidList []int64 +} + +// 初始化AlitripTuanHotelAdaptStoreGetAPIRequest对象 +func NewAlitripTuanHotelAdaptStoreGetRequest() *AlitripTuanHotelAdaptStoreGetAPIRequest{ + return &AlitripTuanHotelAdaptStoreGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTuanHotelAdaptStoreGetAPIRequest) GetApiMethodName() string { + return "alitrip.tuan.hotel.adapt.store.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTuanHotelAdaptStoreGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShidList Setter +// 标准酒店ID列表,逗号分割。与hid_list二者只能选一 +func (r *AlitripTuanHotelAdaptStoreGetAPIRequest) SetShidList(_shidList []int64) error { + r._shidList = _shidList + r.Set("shid_list", _shidList) + return nil +} + +// ShidList Getter +func (r AlitripTuanHotelAdaptStoreGetAPIRequest) GetShidList() []int64 { + return r._shidList +} +// HidList Setter +// 物理酒店ID列表,逗号分割。与shid_list二者只能选一 +func (r *AlitripTuanHotelAdaptStoreGetAPIRequest) SetHidList(_hidList []int64) error { + r._hidList = _hidList + r.Set("hid_list", _hidList) + return nil +} + +// HidList Getter +func (r AlitripTuanHotelAdaptStoreGetAPIRequest) GetHidList() []int64 { + return r._hidList +} diff --git a/model/tuanhotel/AlitripTuanHotelAdaptStoreGetAPIResponse.go b/model/tuanhotel/AlitripTuanHotelAdaptStoreGetAPIResponse.go new file mode 100644 index 0000000000..67d41c0477 --- /dev/null +++ b/model/tuanhotel/AlitripTuanHotelAdaptStoreGetAPIResponse.go @@ -0,0 +1,33 @@ +package tuanhotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店团购套餐关联适用门店 API返回值 +alitrip.tuan.hotel.adapt.store.get + +输入shid,返回关联门店详情信息 +*/ +type AlitripTuanHotelAdaptStoreGetAPIResponse struct { + model.CommonResponse + AlitripTuanHotelAdaptStoreGetAPIResponseModel +} + +// 酒店团购套餐关联适用门店 成功返回结果 +type AlitripTuanHotelAdaptStoreGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_tuan_hotel_adapt_store_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 关联门店列表 + StoreDetailList []StoreDetailVoList `json:"store_detail_list,omitempty" xml:"store_detail_list>store_detail_vo_list,omitempty"` + // 错误码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 操作状态 + Status bool `json:"status,omitempty" xml:"status,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/tuanhotel/AlitripTuanHotelAdaptStoreGetResponse.go b/model/tuanhotel/AlitripTuanHotelAdaptStoreGetResponse.go deleted file mode 100644 index 37ef605c40..0000000000 --- a/model/tuanhotel/AlitripTuanHotelAdaptStoreGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tuanhotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店团购套餐关联适用门店 API返回值 -alitrip.tuan.hotel.adapt.store.get - -输入shid,返回关联门店详情信息 -*/ -type AlitripTuanHotelAdaptStoreGetAPIResponse struct { - model.CommonResponse - AlitripTuanHotelAdaptStoreGetResponse -} - -// 酒店团购套餐关联适用门店 成功返回结果 -type AlitripTuanHotelAdaptStoreGetResponse struct { - XMLName xml.Name `xml:"alitrip_tuan_hotel_adapt_store_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 关联门店列表 - StoreDetailList []StoreDetailVoList `json:"store_detail_list,omitempty" xml:"store_detail_list>store_detail_vo_list,omitempty"` - // 错误码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 操作状态 - Status bool `json:"status,omitempty" xml:"status,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/tuanhotel/AlitripTuanHotelImageUploadAPIRequest.go b/model/tuanhotel/AlitripTuanHotelImageUploadAPIRequest.go new file mode 100644 index 0000000000..50068f80eb --- /dev/null +++ b/model/tuanhotel/AlitripTuanHotelImageUploadAPIRequest.go @@ -0,0 +1,52 @@ +package tuanhotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +图片上传接口 API请求 +alitrip.tuan.hotel.image.upload + +用户调用此接口完成外网图片上传至卖家图片中心,此接口返回图片中心的图片地址 +*/ +type AlitripTuanHotelImageUploadAPIRequest struct { + model.Params + // 上传图片信息列表,最多一次支持5张图片上传。单张图片大小限制为1M + _imageInfoList []ImageInfoVOList +} + +// 初始化AlitripTuanHotelImageUploadAPIRequest对象 +func NewAlitripTuanHotelImageUploadRequest() *AlitripTuanHotelImageUploadAPIRequest{ + return &AlitripTuanHotelImageUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTuanHotelImageUploadAPIRequest) GetApiMethodName() string { + return "alitrip.tuan.hotel.image.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTuanHotelImageUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImageInfoList Setter +// 上传图片信息列表,最多一次支持5张图片上传。单张图片大小限制为1M +func (r *AlitripTuanHotelImageUploadAPIRequest) SetImageInfoList(_imageInfoList []ImageInfoVOList) error { + r._imageInfoList = _imageInfoList + r.Set("image_info_list", _imageInfoList) + return nil +} + +// ImageInfoList Getter +func (r AlitripTuanHotelImageUploadAPIRequest) GetImageInfoList() []ImageInfoVOList { + return r._imageInfoList +} diff --git a/model/tuanhotel/AlitripTuanHotelImageUploadAPIResponse.go b/model/tuanhotel/AlitripTuanHotelImageUploadAPIResponse.go new file mode 100644 index 0000000000..1dc3c5fc53 --- /dev/null +++ b/model/tuanhotel/AlitripTuanHotelImageUploadAPIResponse.go @@ -0,0 +1,33 @@ +package tuanhotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +图片上传接口 API返回值 +alitrip.tuan.hotel.image.upload + +用户调用此接口完成外网图片上传至卖家图片中心,此接口返回图片中心的图片地址 +*/ +type AlitripTuanHotelImageUploadAPIResponse struct { + model.CommonResponse + AlitripTuanHotelImageUploadAPIResponseModel +} + +// 图片上传接口 成功返回结果 +type AlitripTuanHotelImageUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_tuan_hotel_image_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 上传图片结果返回列表 + ImagePathResultList []ImagePathResultVoList `json:"image_path_result_list,omitempty" xml:"image_path_result_list>image_path_result_vo_list,omitempty"` + // 上传操作错误码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 上传操作是否成功 + Status bool `json:"status,omitempty" xml:"status,omitempty"` + // 上传操作异常信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/tuanhotel/AlitripTuanHotelImageUploadResponse.go b/model/tuanhotel/AlitripTuanHotelImageUploadResponse.go deleted file mode 100644 index 89b39cf04c..0000000000 --- a/model/tuanhotel/AlitripTuanHotelImageUploadResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tuanhotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -图片上传接口 API返回值 -alitrip.tuan.hotel.image.upload - -用户调用此接口完成外网图片上传至卖家图片中心,此接口返回图片中心的图片地址 -*/ -type AlitripTuanHotelImageUploadAPIResponse struct { - model.CommonResponse - AlitripTuanHotelImageUploadResponse -} - -// 图片上传接口 成功返回结果 -type AlitripTuanHotelImageUploadResponse struct { - XMLName xml.Name `xml:"alitrip_tuan_hotel_image_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 上传图片结果返回列表 - ImagePathResultList []ImagePathResultVoList `json:"image_path_result_list,omitempty" xml:"image_path_result_list>image_path_result_vo_list,omitempty"` - // 上传操作错误码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 上传操作是否成功 - Status bool `json:"status,omitempty" xml:"status,omitempty"` - // 上传操作异常信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/tuanhotel/AlitripTuanHotelItemInfoGetAPIRequest.go b/model/tuanhotel/AlitripTuanHotelItemInfoGetAPIRequest.go new file mode 100644 index 0000000000..67345a7e13 --- /dev/null +++ b/model/tuanhotel/AlitripTuanHotelItemInfoGetAPIRequest.go @@ -0,0 +1,52 @@ +package tuanhotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +宝贝信息查询接口 API请求 +alitrip.tuan.hotel.item.info.get + +商家查询发布的宝贝详情信息 +*/ +type AlitripTuanHotelItemInfoGetAPIRequest struct { + model.Params + // 宝贝ID + _itemId int64 +} + +// 初始化AlitripTuanHotelItemInfoGetAPIRequest对象 +func NewAlitripTuanHotelItemInfoGetRequest() *AlitripTuanHotelItemInfoGetAPIRequest{ + return &AlitripTuanHotelItemInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTuanHotelItemInfoGetAPIRequest) GetApiMethodName() string { + return "alitrip.tuan.hotel.item.info.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTuanHotelItemInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 宝贝ID +func (r *AlitripTuanHotelItemInfoGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlitripTuanHotelItemInfoGetAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/tuanhotel/AlitripTuanHotelItemInfoGetAPIResponse.go b/model/tuanhotel/AlitripTuanHotelItemInfoGetAPIResponse.go new file mode 100644 index 0000000000..493d9c6838 --- /dev/null +++ b/model/tuanhotel/AlitripTuanHotelItemInfoGetAPIResponse.go @@ -0,0 +1,43 @@ +package tuanhotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +宝贝信息查询接口 API返回值 +alitrip.tuan.hotel.item.info.get + +商家查询发布的宝贝详情信息 +*/ +type AlitripTuanHotelItemInfoGetAPIResponse struct { + model.CommonResponse + AlitripTuanHotelItemInfoGetAPIResponseModel +} + +// 宝贝信息查询接口 成功返回结果 +type AlitripTuanHotelItemInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_tuan_hotel_item_info_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 宝贝基本信息 + ItemInfo *TuanItemSellParamVO `json:"item_info,omitempty" xml:"item_info,omitempty"` + // 错误码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 操作状态 + Status bool `json:"status,omitempty" xml:"status,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // sku列表 + TuanItemSkuList []TopTuanItemSkuVOList `json:"tuan_item_sku_list,omitempty" xml:"tuan_item_sku_list>top_tuan_item_sku_vo_list,omitempty"` + // 电子核销库信息,日历库存和国际套餐暂不支持电子凭证,则无数值返回 + TuanEticketPackage *TuanEticketPackageVo `json:"tuan_eticket_package,omitempty" xml:"tuan_eticket_package,omitempty"` + // 关联门店列表 + Stores []TopStoreVO `json:"stores,omitempty" xml:"stores>top_store_vo,omitempty"` + // 关联POI列表 + RelatedPoiDetailVOList []RelatedPoiDetailVo `json:"related_poi_detail_v_o_list,omitempty" xml:"related_poi_detail_v_o_list>related_poi_detail_vo,omitempty"` + // 关联礼包列表 + TuanItemRelateGiftList []TuanItemRelateGiftVO `json:"tuan_item_relate_gift_list,omitempty" xml:"tuan_item_relate_gift_list>tuan_item_relate_gift_vo,omitempty"` +} diff --git a/model/tuanhotel/AlitripTuanHotelItemInfoGetResponse.go b/model/tuanhotel/AlitripTuanHotelItemInfoGetResponse.go deleted file mode 100644 index 3486805cbe..0000000000 --- a/model/tuanhotel/AlitripTuanHotelItemInfoGetResponse.go +++ /dev/null @@ -1,43 +0,0 @@ -package tuanhotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -宝贝信息查询接口 API返回值 -alitrip.tuan.hotel.item.info.get - -商家查询发布的宝贝详情信息 -*/ -type AlitripTuanHotelItemInfoGetAPIResponse struct { - model.CommonResponse - AlitripTuanHotelItemInfoGetResponse -} - -// 宝贝信息查询接口 成功返回结果 -type AlitripTuanHotelItemInfoGetResponse struct { - XMLName xml.Name `xml:"alitrip_tuan_hotel_item_info_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 宝贝基本信息 - ItemInfo *TuanItemSellParamVO `json:"item_info,omitempty" xml:"item_info,omitempty"` - // 错误码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 操作状态 - Status bool `json:"status,omitempty" xml:"status,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // sku列表 - TuanItemSkuList []TopTuanItemSkuVOList `json:"tuan_item_sku_list,omitempty" xml:"tuan_item_sku_list>top_tuan_item_sku_vo_list,omitempty"` - // 电子核销库信息,日历库存和国际套餐暂不支持电子凭证,则无数值返回 - TuanEticketPackage *TuanEticketPackageVo `json:"tuan_eticket_package,omitempty" xml:"tuan_eticket_package,omitempty"` - // 关联门店列表 - Stores []TopStoreVO `json:"stores,omitempty" xml:"stores>top_store_vo,omitempty"` - // 关联POI列表 - RelatedPoiDetailVOList []RelatedPoiDetailVo `json:"related_poi_detail_v_o_list,omitempty" xml:"related_poi_detail_v_o_list>related_poi_detail_vo,omitempty"` - // 关联礼包列表 - TuanItemRelateGiftList []TuanItemRelateGiftVO `json:"tuan_item_relate_gift_list,omitempty" xml:"tuan_item_relate_gift_list>tuan_item_relate_gift_vo,omitempty"` -} diff --git a/model/tuanhotel/AlitripTuanHotelItemSkuCalendarUpdateAPIRequest.go b/model/tuanhotel/AlitripTuanHotelItemSkuCalendarUpdateAPIRequest.go new file mode 100644 index 0000000000..9b3d98e6c9 --- /dev/null +++ b/model/tuanhotel/AlitripTuanHotelItemSkuCalendarUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package tuanhotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店非标套餐商品日历库存宝贝SKU更新接口 API请求 +alitrip.tuan.hotel.item.sku.calendar.update + +商户对发布的日历库存类型的宝贝套餐价格库存信息进行更新,仅提供日历库存的宝贝SKU的更新功能,skuId须传递商品已存在的skuId,若想进行SKU新增操作,请选择使用alitrip.tuan.hotel.item.sku.update接口。提供增量更新SKU功能,对于日历库存若传递日期信息,参数中若包含某一日期的价格和库存,则对此日期的数据进行覆盖更新,若不传递则保留此日期的价格库存信息。 +*/ +type AlitripTuanHotelItemSkuCalendarUpdateAPIRequest struct { + model.Params + // 宝贝ID + _itemId int64 + // 宝贝所属类目 + _catId int64 + // 暂不支持此接口对SKU的部分属性进行更新,包括以下属性: 套餐名称、价格、原价、库存、间夜、商家编码、人数、使用次数等 + _itemSkuList []TopTuanItemSkuVO +} + +// 初始化AlitripTuanHotelItemSkuCalendarUpdateAPIRequest对象 +func NewAlitripTuanHotelItemSkuCalendarUpdateRequest() *AlitripTuanHotelItemSkuCalendarUpdateAPIRequest{ + return &AlitripTuanHotelItemSkuCalendarUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTuanHotelItemSkuCalendarUpdateAPIRequest) GetApiMethodName() string { + return "alitrip.tuan.hotel.item.sku.calendar.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTuanHotelItemSkuCalendarUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 宝贝ID +func (r *AlitripTuanHotelItemSkuCalendarUpdateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlitripTuanHotelItemSkuCalendarUpdateAPIRequest) GetItemId() int64 { + return r._itemId +} +// CatId Setter +// 宝贝所属类目 +func (r *AlitripTuanHotelItemSkuCalendarUpdateAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r AlitripTuanHotelItemSkuCalendarUpdateAPIRequest) GetCatId() int64 { + return r._catId +} +// ItemSkuList Setter +// 暂不支持此接口对SKU的部分属性进行更新,包括以下属性: 套餐名称、价格、原价、库存、间夜、商家编码、人数、使用次数等 +func (r *AlitripTuanHotelItemSkuCalendarUpdateAPIRequest) SetItemSkuList(_itemSkuList []TopTuanItemSkuVO) error { + r._itemSkuList = _itemSkuList + r.Set("item_sku_list", _itemSkuList) + return nil +} + +// ItemSkuList Getter +func (r AlitripTuanHotelItemSkuCalendarUpdateAPIRequest) GetItemSkuList() []TopTuanItemSkuVO { + return r._itemSkuList +} diff --git a/model/tuanhotel/AlitripTuanHotelItemSkuCalendarUpdateAPIResponse.go b/model/tuanhotel/AlitripTuanHotelItemSkuCalendarUpdateAPIResponse.go new file mode 100644 index 0000000000..e036dae122 --- /dev/null +++ b/model/tuanhotel/AlitripTuanHotelItemSkuCalendarUpdateAPIResponse.go @@ -0,0 +1,37 @@ +package tuanhotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店非标套餐商品日历库存宝贝SKU更新接口 API返回值 +alitrip.tuan.hotel.item.sku.calendar.update + +商户对发布的日历库存类型的宝贝套餐价格库存信息进行更新,仅提供日历库存的宝贝SKU的更新功能,skuId须传递商品已存在的skuId,若想进行SKU新增操作,请选择使用alitrip.tuan.hotel.item.sku.update接口。提供增量更新SKU功能,对于日历库存若传递日期信息,参数中若包含某一日期的价格和库存,则对此日期的数据进行覆盖更新,若不传递则保留此日期的价格库存信息。 +*/ +type AlitripTuanHotelItemSkuCalendarUpdateAPIResponse struct { + model.CommonResponse + AlitripTuanHotelItemSkuCalendarUpdateAPIResponseModel +} + +// 酒店非标套餐商品日历库存宝贝SKU更新接口 成功返回结果 +type AlitripTuanHotelItemSkuCalendarUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_tuan_hotel_item_sku_calendar_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 宝贝ID + ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` + // 卖家ID + SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"` + // 商品的sku列表 + TopItemSkuBaseInfoList []TopItemSkuBaseInfo `json:"top_item_sku_base_info_list,omitempty" xml:"top_item_sku_base_info_list>top_item_sku_base_info,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 错误码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 操作状态 + Status bool `json:"status,omitempty" xml:"status,omitempty"` +} diff --git a/model/tuanhotel/AlitripTuanHotelItemSkuCalendarUpdateResponse.go b/model/tuanhotel/AlitripTuanHotelItemSkuCalendarUpdateResponse.go deleted file mode 100644 index 38344c7adb..0000000000 --- a/model/tuanhotel/AlitripTuanHotelItemSkuCalendarUpdateResponse.go +++ /dev/null @@ -1,37 +0,0 @@ -package tuanhotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店非标套餐商品日历库存宝贝SKU更新接口 API返回值 -alitrip.tuan.hotel.item.sku.calendar.update - -商户对发布的日历库存类型的宝贝套餐价格库存信息进行更新,仅提供日历库存的宝贝SKU的更新功能,skuId须传递商品已存在的skuId,若想进行SKU新增操作,请选择使用alitrip.tuan.hotel.item.sku.update接口。提供增量更新SKU功能,对于日历库存若传递日期信息,参数中若包含某一日期的价格和库存,则对此日期的数据进行覆盖更新,若不传递则保留此日期的价格库存信息。 -*/ -type AlitripTuanHotelItemSkuCalendarUpdateAPIResponse struct { - model.CommonResponse - AlitripTuanHotelItemSkuCalendarUpdateResponse -} - -// 酒店非标套餐商品日历库存宝贝SKU更新接口 成功返回结果 -type AlitripTuanHotelItemSkuCalendarUpdateResponse struct { - XMLName xml.Name `xml:"alitrip_tuan_hotel_item_sku_calendar_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 宝贝ID - ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` - // 卖家ID - SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"` - // 商品的sku列表 - TopItemSkuBaseInfoList []TopItemSkuBaseInfo `json:"top_item_sku_base_info_list,omitempty" xml:"top_item_sku_base_info_list>top_item_sku_base_info,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 错误码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 操作状态 - Status bool `json:"status,omitempty" xml:"status,omitempty"` -} diff --git a/model/tuanhotel/AlitripTuanHotelItemSkuDeleteAPIRequest.go b/model/tuanhotel/AlitripTuanHotelItemSkuDeleteAPIRequest.go new file mode 100644 index 0000000000..fa338950ec --- /dev/null +++ b/model/tuanhotel/AlitripTuanHotelItemSkuDeleteAPIRequest.go @@ -0,0 +1,80 @@ +package tuanhotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店团购套餐商品SKU删除 API请求 +alitrip.tuan.hotel.item.sku.delete + +商户对发布的宝贝套餐价格库存信息进行删除 +*/ +type AlitripTuanHotelItemSkuDeleteAPIRequest struct { + model.Params + // 宝贝ID + _itemId int64 + // 宝贝所属类目 + _catId int64 + // 要删除的skuId列表 + _itemDeletedSkuIdList []int64 +} + +// 初始化AlitripTuanHotelItemSkuDeleteAPIRequest对象 +func NewAlitripTuanHotelItemSkuDeleteRequest() *AlitripTuanHotelItemSkuDeleteAPIRequest{ + return &AlitripTuanHotelItemSkuDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTuanHotelItemSkuDeleteAPIRequest) GetApiMethodName() string { + return "alitrip.tuan.hotel.item.sku.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTuanHotelItemSkuDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 宝贝ID +func (r *AlitripTuanHotelItemSkuDeleteAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlitripTuanHotelItemSkuDeleteAPIRequest) GetItemId() int64 { + return r._itemId +} +// CatId Setter +// 宝贝所属类目 +func (r *AlitripTuanHotelItemSkuDeleteAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r AlitripTuanHotelItemSkuDeleteAPIRequest) GetCatId() int64 { + return r._catId +} +// ItemDeletedSkuIdList Setter +// 要删除的skuId列表 +func (r *AlitripTuanHotelItemSkuDeleteAPIRequest) SetItemDeletedSkuIdList(_itemDeletedSkuIdList []int64) error { + r._itemDeletedSkuIdList = _itemDeletedSkuIdList + r.Set("item_deleted_sku_id_list", _itemDeletedSkuIdList) + return nil +} + +// ItemDeletedSkuIdList Getter +func (r AlitripTuanHotelItemSkuDeleteAPIRequest) GetItemDeletedSkuIdList() []int64 { + return r._itemDeletedSkuIdList +} diff --git a/model/tuanhotel/AlitripTuanHotelItemSkuDeleteAPIResponse.go b/model/tuanhotel/AlitripTuanHotelItemSkuDeleteAPIResponse.go new file mode 100644 index 0000000000..7d2eb8bde7 --- /dev/null +++ b/model/tuanhotel/AlitripTuanHotelItemSkuDeleteAPIResponse.go @@ -0,0 +1,37 @@ +package tuanhotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店团购套餐商品SKU删除 API返回值 +alitrip.tuan.hotel.item.sku.delete + +商户对发布的宝贝套餐价格库存信息进行删除 +*/ +type AlitripTuanHotelItemSkuDeleteAPIResponse struct { + model.CommonResponse + AlitripTuanHotelItemSkuDeleteAPIResponseModel +} + +// 酒店团购套餐商品SKU删除 成功返回结果 +type AlitripTuanHotelItemSkuDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_tuan_hotel_item_sku_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 宝贝ID + ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` + // 卖家ID + SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"` + // sku列表 + TopItemSkuBaseInfoList []TopItemSkuBaseInfoList `json:"top_item_sku_base_info_list,omitempty" xml:"top_item_sku_base_info_list>top_item_sku_base_info_list,omitempty"` + // 错误码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 操作状态 + Status bool `json:"status,omitempty" xml:"status,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/tuanhotel/AlitripTuanHotelItemSkuDeleteResponse.go b/model/tuanhotel/AlitripTuanHotelItemSkuDeleteResponse.go deleted file mode 100644 index 1d40dcd96c..0000000000 --- a/model/tuanhotel/AlitripTuanHotelItemSkuDeleteResponse.go +++ /dev/null @@ -1,37 +0,0 @@ -package tuanhotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店团购套餐商品SKU删除 API返回值 -alitrip.tuan.hotel.item.sku.delete - -商户对发布的宝贝套餐价格库存信息进行删除 -*/ -type AlitripTuanHotelItemSkuDeleteAPIResponse struct { - model.CommonResponse - AlitripTuanHotelItemSkuDeleteResponse -} - -// 酒店团购套餐商品SKU删除 成功返回结果 -type AlitripTuanHotelItemSkuDeleteResponse struct { - XMLName xml.Name `xml:"alitrip_tuan_hotel_item_sku_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 宝贝ID - ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` - // 卖家ID - SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"` - // sku列表 - TopItemSkuBaseInfoList []TopItemSkuBaseInfoList `json:"top_item_sku_base_info_list,omitempty" xml:"top_item_sku_base_info_list>top_item_sku_base_info_list,omitempty"` - // 错误码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 操作状态 - Status bool `json:"status,omitempty" xml:"status,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/tuanhotel/AlitripTuanHotelItemSkuUpdateAPIRequest.go b/model/tuanhotel/AlitripTuanHotelItemSkuUpdateAPIRequest.go new file mode 100644 index 0000000000..fac5090944 --- /dev/null +++ b/model/tuanhotel/AlitripTuanHotelItemSkuUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package tuanhotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店团购套餐商品SKU更新和新增 API请求 +alitrip.tuan.hotel.item.sku.update + +商户对发布的宝贝套餐价格库存信息进行更新,对于已存在的sku,未进行传递则不会进行覆盖。skuId必须为已存在的skuId,暂不支持库存类型的更改。因发布页改造升级,2020.03.05将下线此接口的新增SKU功能,更新SKU功能将保留,但商户2020.03.05后须前往发布页进行宝贝更新后,方可调用本接口。对于日历库存宝贝日历维度的价格和库存数据的更新,此接口存在调用超时的问题,不推荐使用,若有诉求,请使用alitrip.tuan.hotel.item.sku.calendar.update接口(该接口提供增量更新能力),接口地址为https://open.taobao.com/api.htm?docId=48160&docType=2&scopeId=12326 +*/ +type AlitripTuanHotelItemSkuUpdateAPIRequest struct { + model.Params + // 宝贝ID + _itemId int64 + // 宝贝所属类目 + _catId int64 + // 关于sku(价格策略)的字段填写的说明 国内酒店套餐类目(日历库存必填选项:套餐名称、原价、间夜;普通库存必填选项:套餐名称、价格、原价、库存、间夜)。 国际酒店套餐类目(日历库存必填选型:套餐名称、原价、间夜、人数;普通库存必填选项:套餐名称、价格、原件、库存、间夜、人数)。 酒店餐饮美食类目(日历库存必填选项:套餐名称、原价、人数、次数;普通库存必填选项:套餐名称、价格、原价、库存、人数,次数)。 酒店服务类目(日历库存必填选项:套餐名称、原价、使用次数;普通库存必填选项:套餐名称、价格、原价、库存、使用次数)。 酒店客房优惠券类目(无sku(价格策略)选项,不填写)。 + _itemSkuList []TopTuanItemSkuVO +} + +// 初始化AlitripTuanHotelItemSkuUpdateAPIRequest对象 +func NewAlitripTuanHotelItemSkuUpdateRequest() *AlitripTuanHotelItemSkuUpdateAPIRequest{ + return &AlitripTuanHotelItemSkuUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTuanHotelItemSkuUpdateAPIRequest) GetApiMethodName() string { + return "alitrip.tuan.hotel.item.sku.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTuanHotelItemSkuUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 宝贝ID +func (r *AlitripTuanHotelItemSkuUpdateAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlitripTuanHotelItemSkuUpdateAPIRequest) GetItemId() int64 { + return r._itemId +} +// CatId Setter +// 宝贝所属类目 +func (r *AlitripTuanHotelItemSkuUpdateAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r AlitripTuanHotelItemSkuUpdateAPIRequest) GetCatId() int64 { + return r._catId +} +// ItemSkuList Setter +// 关于sku(价格策略)的字段填写的说明 国内酒店套餐类目(日历库存必填选项:套餐名称、原价、间夜;普通库存必填选项:套餐名称、价格、原价、库存、间夜)。 国际酒店套餐类目(日历库存必填选型:套餐名称、原价、间夜、人数;普通库存必填选项:套餐名称、价格、原件、库存、间夜、人数)。 酒店餐饮美食类目(日历库存必填选项:套餐名称、原价、人数、次数;普通库存必填选项:套餐名称、价格、原价、库存、人数,次数)。 酒店服务类目(日历库存必填选项:套餐名称、原价、使用次数;普通库存必填选项:套餐名称、价格、原价、库存、使用次数)。 酒店客房优惠券类目(无sku(价格策略)选项,不填写)。 +func (r *AlitripTuanHotelItemSkuUpdateAPIRequest) SetItemSkuList(_itemSkuList []TopTuanItemSkuVO) error { + r._itemSkuList = _itemSkuList + r.Set("item_sku_list", _itemSkuList) + return nil +} + +// ItemSkuList Getter +func (r AlitripTuanHotelItemSkuUpdateAPIRequest) GetItemSkuList() []TopTuanItemSkuVO { + return r._itemSkuList +} diff --git a/model/tuanhotel/AlitripTuanHotelItemSkuUpdateAPIResponse.go b/model/tuanhotel/AlitripTuanHotelItemSkuUpdateAPIResponse.go new file mode 100644 index 0000000000..b116567c88 --- /dev/null +++ b/model/tuanhotel/AlitripTuanHotelItemSkuUpdateAPIResponse.go @@ -0,0 +1,37 @@ +package tuanhotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店团购套餐商品SKU更新和新增 API返回值 +alitrip.tuan.hotel.item.sku.update + +商户对发布的宝贝套餐价格库存信息进行更新,对于已存在的sku,未进行传递则不会进行覆盖。skuId必须为已存在的skuId,暂不支持库存类型的更改。因发布页改造升级,2020.03.05将下线此接口的新增SKU功能,更新SKU功能将保留,但商户2020.03.05后须前往发布页进行宝贝更新后,方可调用本接口。对于日历库存宝贝日历维度的价格和库存数据的更新,此接口存在调用超时的问题,不推荐使用,若有诉求,请使用alitrip.tuan.hotel.item.sku.calendar.update接口(该接口提供增量更新能力),接口地址为https://open.taobao.com/api.htm?docId=48160&docType=2&scopeId=12326 +*/ +type AlitripTuanHotelItemSkuUpdateAPIResponse struct { + model.CommonResponse + AlitripTuanHotelItemSkuUpdateAPIResponseModel +} + +// 酒店团购套餐商品SKU更新和新增 成功返回结果 +type AlitripTuanHotelItemSkuUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_tuan_hotel_item_sku_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 宝贝ID + ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` + // 卖家ID + SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"` + // 商品的sku列表 + TopItemSkuBaseInfoList []TopItemSkuBaseInfo `json:"top_item_sku_base_info_list,omitempty" xml:"top_item_sku_base_info_list>top_item_sku_base_info,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 错误码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 操作状态 + Status bool `json:"status,omitempty" xml:"status,omitempty"` +} diff --git a/model/tuanhotel/AlitripTuanHotelItemSkuUpdateResponse.go b/model/tuanhotel/AlitripTuanHotelItemSkuUpdateResponse.go deleted file mode 100644 index 9d32837d16..0000000000 --- a/model/tuanhotel/AlitripTuanHotelItemSkuUpdateResponse.go +++ /dev/null @@ -1,37 +0,0 @@ -package tuanhotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店团购套餐商品SKU更新和新增 API返回值 -alitrip.tuan.hotel.item.sku.update - -商户对发布的宝贝套餐价格库存信息进行更新,对于已存在的sku,未进行传递则不会进行覆盖。skuId必须为已存在的skuId,暂不支持库存类型的更改。因发布页改造升级,2020.03.05将下线此接口的新增SKU功能,更新SKU功能将保留,但商户2020.03.05后须前往发布页进行宝贝更新后,方可调用本接口。对于日历库存宝贝日历维度的价格和库存数据的更新,此接口存在调用超时的问题,不推荐使用,若有诉求,请使用alitrip.tuan.hotel.item.sku.calendar.update接口(该接口提供增量更新能力),接口地址为https://open.taobao.com/api.htm?docId=48160&docType=2&scopeId=12326 -*/ -type AlitripTuanHotelItemSkuUpdateAPIResponse struct { - model.CommonResponse - AlitripTuanHotelItemSkuUpdateResponse -} - -// 酒店团购套餐商品SKU更新和新增 成功返回结果 -type AlitripTuanHotelItemSkuUpdateResponse struct { - XMLName xml.Name `xml:"alitrip_tuan_hotel_item_sku_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 宝贝ID - ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` - // 卖家ID - SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"` - // 商品的sku列表 - TopItemSkuBaseInfoList []TopItemSkuBaseInfo `json:"top_item_sku_base_info_list,omitempty" xml:"top_item_sku_base_info_list>top_item_sku_base_info,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 错误码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 操作状态 - Status bool `json:"status,omitempty" xml:"status,omitempty"` -} diff --git a/model/tuanhotel/AlitripTuanHotelRelatePoiGetAPIRequest.go b/model/tuanhotel/AlitripTuanHotelRelatePoiGetAPIRequest.go new file mode 100644 index 0000000000..2bbee52efe --- /dev/null +++ b/model/tuanhotel/AlitripTuanHotelRelatePoiGetAPIRequest.go @@ -0,0 +1,80 @@ +package tuanhotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店团购关联POI API请求 +alitrip.tuan.hotel.relate.poi.get + +查询酒店团购关联POI +*/ +type AlitripTuanHotelRelatePoiGetAPIRequest struct { + model.Params + // 关键字 + _keywords string + // 行政区ID + _divisionId int64 + // 类目ID:国内酒店套餐-201189402;国际酒店套餐-201188002;酒店餐饮美食-201214101;酒店服务-201214201;酒店客房优惠券-201214301 + _catId int64 +} + +// 初始化AlitripTuanHotelRelatePoiGetAPIRequest对象 +func NewAlitripTuanHotelRelatePoiGetRequest() *AlitripTuanHotelRelatePoiGetAPIRequest{ + return &AlitripTuanHotelRelatePoiGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTuanHotelRelatePoiGetAPIRequest) GetApiMethodName() string { + return "alitrip.tuan.hotel.relate.poi.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTuanHotelRelatePoiGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Keywords Setter +// 关键字 +func (r *AlitripTuanHotelRelatePoiGetAPIRequest) SetKeywords(_keywords string) error { + r._keywords = _keywords + r.Set("keywords", _keywords) + return nil +} + +// Keywords Getter +func (r AlitripTuanHotelRelatePoiGetAPIRequest) GetKeywords() string { + return r._keywords +} +// DivisionId Setter +// 行政区ID +func (r *AlitripTuanHotelRelatePoiGetAPIRequest) SetDivisionId(_divisionId int64) error { + r._divisionId = _divisionId + r.Set("division_id", _divisionId) + return nil +} + +// DivisionId Getter +func (r AlitripTuanHotelRelatePoiGetAPIRequest) GetDivisionId() int64 { + return r._divisionId +} +// CatId Setter +// 类目ID:国内酒店套餐-201189402;国际酒店套餐-201188002;酒店餐饮美食-201214101;酒店服务-201214201;酒店客房优惠券-201214301 +func (r *AlitripTuanHotelRelatePoiGetAPIRequest) SetCatId(_catId int64) error { + r._catId = _catId + r.Set("cat_id", _catId) + return nil +} + +// CatId Getter +func (r AlitripTuanHotelRelatePoiGetAPIRequest) GetCatId() int64 { + return r._catId +} diff --git a/model/tuanhotel/AlitripTuanHotelRelatePoiGetAPIResponse.go b/model/tuanhotel/AlitripTuanHotelRelatePoiGetAPIResponse.go new file mode 100644 index 0000000000..ed82a1be6e --- /dev/null +++ b/model/tuanhotel/AlitripTuanHotelRelatePoiGetAPIResponse.go @@ -0,0 +1,33 @@ +package tuanhotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店团购关联POI API返回值 +alitrip.tuan.hotel.relate.poi.get + +查询酒店团购关联POI +*/ +type AlitripTuanHotelRelatePoiGetAPIResponse struct { + model.CommonResponse + AlitripTuanHotelRelatePoiGetAPIResponseModel +} + +// 酒店团购关联POI 成功返回结果 +type AlitripTuanHotelRelatePoiGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_tuan_hotel_relate_poi_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 关联POI列表 + RelatedPoiDetailList []RelatedPoiDetailVoList `json:"related_poi_detail_list,omitempty" xml:"related_poi_detail_list>related_poi_detail_vo_list,omitempty"` + // 错误码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 操作状态 + Status bool `json:"status,omitempty" xml:"status,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/tuanhotel/AlitripTuanHotelRelatePoiGetResponse.go b/model/tuanhotel/AlitripTuanHotelRelatePoiGetResponse.go deleted file mode 100644 index 1acd7317b2..0000000000 --- a/model/tuanhotel/AlitripTuanHotelRelatePoiGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tuanhotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店团购关联POI API返回值 -alitrip.tuan.hotel.relate.poi.get - -查询酒店团购关联POI -*/ -type AlitripTuanHotelRelatePoiGetAPIResponse struct { - model.CommonResponse - AlitripTuanHotelRelatePoiGetResponse -} - -// 酒店团购关联POI 成功返回结果 -type AlitripTuanHotelRelatePoiGetResponse struct { - XMLName xml.Name `xml:"alitrip_tuan_hotel_relate_poi_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 关联POI列表 - RelatedPoiDetailList []RelatedPoiDetailVoList `json:"related_poi_detail_list,omitempty" xml:"related_poi_detail_list>related_poi_detail_vo_list,omitempty"` - // 错误码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 操作状态 - Status bool `json:"status,omitempty" xml:"status,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/tuanhotel/AlitripTuanHotelShopCategoryGetAPIRequest.go b/model/tuanhotel/AlitripTuanHotelShopCategoryGetAPIRequest.go new file mode 100644 index 0000000000..14b3afbbf9 --- /dev/null +++ b/model/tuanhotel/AlitripTuanHotelShopCategoryGetAPIRequest.go @@ -0,0 +1,38 @@ +package tuanhotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家店铺类目查询 API请求 +alitrip.tuan.hotel.shop.category.get + +查询商家店铺类目信息 +*/ +type AlitripTuanHotelShopCategoryGetAPIRequest struct { + model.Params +} + +// 初始化AlitripTuanHotelShopCategoryGetAPIRequest对象 +func NewAlitripTuanHotelShopCategoryGetRequest() *AlitripTuanHotelShopCategoryGetAPIRequest{ + return &AlitripTuanHotelShopCategoryGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripTuanHotelShopCategoryGetAPIRequest) GetApiMethodName() string { + return "alitrip.tuan.hotel.shop.category.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripTuanHotelShopCategoryGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/tuanhotel/AlitripTuanHotelShopCategoryGetAPIResponse.go b/model/tuanhotel/AlitripTuanHotelShopCategoryGetAPIResponse.go new file mode 100644 index 0000000000..95bf993e55 --- /dev/null +++ b/model/tuanhotel/AlitripTuanHotelShopCategoryGetAPIResponse.go @@ -0,0 +1,33 @@ +package tuanhotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家店铺类目查询 API返回值 +alitrip.tuan.hotel.shop.category.get + +查询商家店铺类目信息 +*/ +type AlitripTuanHotelShopCategoryGetAPIResponse struct { + model.CommonResponse + AlitripTuanHotelShopCategoryGetAPIResponseModel +} + +// 商家店铺类目查询 成功返回结果 +type AlitripTuanHotelShopCategoryGetAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_tuan_hotel_shop_category_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 一级类目列表 + TopRootShopCategoryList []TopRootShopCategoryVoList `json:"top_root_shop_category_list,omitempty" xml:"top_root_shop_category_list>top_root_shop_category_vo_list,omitempty"` + // code + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 是否成功 + Status bool `json:"status,omitempty" xml:"status,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/tuanhotel/AlitripTuanHotelShopCategoryGetResponse.go b/model/tuanhotel/AlitripTuanHotelShopCategoryGetResponse.go deleted file mode 100644 index 10d8270ae5..0000000000 --- a/model/tuanhotel/AlitripTuanHotelShopCategoryGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package tuanhotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家店铺类目查询 API返回值 -alitrip.tuan.hotel.shop.category.get - -查询商家店铺类目信息 -*/ -type AlitripTuanHotelShopCategoryGetAPIResponse struct { - model.CommonResponse - AlitripTuanHotelShopCategoryGetResponse -} - -// 商家店铺类目查询 成功返回结果 -type AlitripTuanHotelShopCategoryGetResponse struct { - XMLName xml.Name `xml:"alitrip_tuan_hotel_shop_category_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 一级类目列表 - TopRootShopCategoryList []TopRootShopCategoryVoList `json:"top_root_shop_category_list,omitempty" xml:"top_root_shop_category_list>top_root_shop_category_vo_list,omitempty"` - // code - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 是否成功 - Status bool `json:"status,omitempty" xml:"status,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/tuike/AlibabaTuikeOfferGetAPIRequest.go b/model/tuike/AlibabaTuikeOfferGetAPIRequest.go new file mode 100644 index 0000000000..d48b98ec7a --- /dev/null +++ b/model/tuike/AlibabaTuikeOfferGetAPIRequest.go @@ -0,0 +1,66 @@ +package tuike + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推广商品查询接口 API请求 +alibaba.tuike.offer.get + +查询1688推客平台卖家推广中的商品信息 +*/ +type AlibabaTuikeOfferGetAPIRequest struct { + model.Params + // 标识调用方 + _isvCode string + // 搜索查询参数(json) + _queryString string +} + +// 初始化AlibabaTuikeOfferGetAPIRequest对象 +func NewAlibabaTuikeOfferGetRequest() *AlibabaTuikeOfferGetAPIRequest{ + return &AlibabaTuikeOfferGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTuikeOfferGetAPIRequest) GetApiMethodName() string { + return "alibaba.tuike.offer.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTuikeOfferGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IsvCode Setter +// 标识调用方 +func (r *AlibabaTuikeOfferGetAPIRequest) SetIsvCode(_isvCode string) error { + r._isvCode = _isvCode + r.Set("isv_code", _isvCode) + return nil +} + +// IsvCode Getter +func (r AlibabaTuikeOfferGetAPIRequest) GetIsvCode() string { + return r._isvCode +} +// QueryString Setter +// 搜索查询参数(json) +func (r *AlibabaTuikeOfferGetAPIRequest) SetQueryString(_queryString string) error { + r._queryString = _queryString + r.Set("query_string", _queryString) + return nil +} + +// QueryString Getter +func (r AlibabaTuikeOfferGetAPIRequest) GetQueryString() string { + return r._queryString +} diff --git a/model/tuike/AlibabaTuikeOfferGetAPIResponse.go b/model/tuike/AlibabaTuikeOfferGetAPIResponse.go new file mode 100644 index 0000000000..b23720d2ee --- /dev/null +++ b/model/tuike/AlibabaTuikeOfferGetAPIResponse.go @@ -0,0 +1,27 @@ +package tuike + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推广商品查询接口 API返回值 +alibaba.tuike.offer.get + +查询1688推客平台卖家推广中的商品信息 +*/ +type AlibabaTuikeOfferGetAPIResponse struct { + model.CommonResponse + AlibabaTuikeOfferGetAPIResponseModel +} + +// 推广商品查询接口 成功返回结果 +type AlibabaTuikeOfferGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tuike_offer_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果模型 + Result *TaOfferSearchResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tuike/AlibabaTuikeOfferGetProAPIRequest.go b/model/tuike/AlibabaTuikeOfferGetProAPIRequest.go new file mode 100644 index 0000000000..8db53e1b34 --- /dev/null +++ b/model/tuike/AlibabaTuikeOfferGetProAPIRequest.go @@ -0,0 +1,80 @@ +package tuike + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推广商品查询接口2.0 API请求 +alibaba.tuike.offer.get.pro + +查询1688推客平台卖家推广中的商品信息 +*/ +type AlibabaTuikeOfferGetProAPIRequest struct { + model.Params + // 用户ID + _loginId string + // 标识调用方 + _isvCode string + // 搜索查询参数(json) + _queryString string +} + +// 初始化AlibabaTuikeOfferGetProAPIRequest对象 +func NewAlibabaTuikeOfferGetProRequest() *AlibabaTuikeOfferGetProAPIRequest{ + return &AlibabaTuikeOfferGetProAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTuikeOfferGetProAPIRequest) GetApiMethodName() string { + return "alibaba.tuike.offer.get.pro" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTuikeOfferGetProAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LoginId Setter +// 用户ID +func (r *AlibabaTuikeOfferGetProAPIRequest) SetLoginId(_loginId string) error { + r._loginId = _loginId + r.Set("login_id", _loginId) + return nil +} + +// LoginId Getter +func (r AlibabaTuikeOfferGetProAPIRequest) GetLoginId() string { + return r._loginId +} +// IsvCode Setter +// 标识调用方 +func (r *AlibabaTuikeOfferGetProAPIRequest) SetIsvCode(_isvCode string) error { + r._isvCode = _isvCode + r.Set("isv_code", _isvCode) + return nil +} + +// IsvCode Getter +func (r AlibabaTuikeOfferGetProAPIRequest) GetIsvCode() string { + return r._isvCode +} +// QueryString Setter +// 搜索查询参数(json) +func (r *AlibabaTuikeOfferGetProAPIRequest) SetQueryString(_queryString string) error { + r._queryString = _queryString + r.Set("query_string", _queryString) + return nil +} + +// QueryString Getter +func (r AlibabaTuikeOfferGetProAPIRequest) GetQueryString() string { + return r._queryString +} diff --git a/model/tuike/AlibabaTuikeOfferGetProAPIResponse.go b/model/tuike/AlibabaTuikeOfferGetProAPIResponse.go new file mode 100644 index 0000000000..a62a1c5514 --- /dev/null +++ b/model/tuike/AlibabaTuikeOfferGetProAPIResponse.go @@ -0,0 +1,27 @@ +package tuike + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推广商品查询接口2.0 API返回值 +alibaba.tuike.offer.get.pro + +查询1688推客平台卖家推广中的商品信息 +*/ +type AlibabaTuikeOfferGetProAPIResponse struct { + model.CommonResponse + AlibabaTuikeOfferGetProAPIResponseModel +} + +// 推广商品查询接口2.0 成功返回结果 +type AlibabaTuikeOfferGetProAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tuike_offer_get_pro_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果模型 + Result *TaOfferSearchResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tuike/AlibabaTuikeOfferGetProResponse.go b/model/tuike/AlibabaTuikeOfferGetProResponse.go deleted file mode 100644 index 15d137be5c..0000000000 --- a/model/tuike/AlibabaTuikeOfferGetProResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tuike - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推广商品查询接口2.0 API返回值 -alibaba.tuike.offer.get.pro - -查询1688推客平台卖家推广中的商品信息 -*/ -type AlibabaTuikeOfferGetProAPIResponse struct { - model.CommonResponse - AlibabaTuikeOfferGetProResponse -} - -// 推广商品查询接口2.0 成功返回结果 -type AlibabaTuikeOfferGetProResponse struct { - XMLName xml.Name `xml:"alibaba_tuike_offer_get_pro_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果模型 - Result *TaOfferSearchResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tuike/AlibabaTuikeOfferGetResponse.go b/model/tuike/AlibabaTuikeOfferGetResponse.go deleted file mode 100644 index ab251f3692..0000000000 --- a/model/tuike/AlibabaTuikeOfferGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tuike - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推广商品查询接口 API返回值 -alibaba.tuike.offer.get - -查询1688推客平台卖家推广中的商品信息 -*/ -type AlibabaTuikeOfferGetAPIResponse struct { - model.CommonResponse - AlibabaTuikeOfferGetResponse -} - -// 推广商品查询接口 成功返回结果 -type AlibabaTuikeOfferGetResponse struct { - XMLName xml.Name `xml:"alibaba_tuike_offer_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果模型 - Result *TaOfferSearchResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tuike/AlibabaTuikeOfferZhitokenAPIRequest.go b/model/tuike/AlibabaTuikeOfferZhitokenAPIRequest.go new file mode 100644 index 0000000000..dfda7ac2b4 --- /dev/null +++ b/model/tuike/AlibabaTuikeOfferZhitokenAPIRequest.go @@ -0,0 +1,178 @@ +package tuike + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +生成阿里口令 API请求 +alibaba.tuike.offer.zhitoken + +推荐链接生产吱口令 +*/ +type AlibabaTuikeOfferZhitokenAPIRequest struct { + model.Params + // 主标题 + _title string + // 主要内容 + _desc string + // 图标链接,可以为空 + _iconLink string + // SHORT/MEDIUM/LONG + _bizType string + // 业务类型 + _source string + // 生效时间,可以为空 + _startTime int64 + // 左按钮文案,可以为空,默认为"取消" + _leftBtnText string + // 左按钮链接,可以为空 + _leftBtnLink string + // 右按钮文案,可以为空,默认为"确定" + _rightBtnText string + // 右按钮链接 + _rightBtnLink string +} + +// 初始化AlibabaTuikeOfferZhitokenAPIRequest对象 +func NewAlibabaTuikeOfferZhitokenRequest() *AlibabaTuikeOfferZhitokenAPIRequest{ + return &AlibabaTuikeOfferZhitokenAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTuikeOfferZhitokenAPIRequest) GetApiMethodName() string { + return "alibaba.tuike.offer.zhitoken" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTuikeOfferZhitokenAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Title Setter +// 主标题 +func (r *AlibabaTuikeOfferZhitokenAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r AlibabaTuikeOfferZhitokenAPIRequest) GetTitle() string { + return r._title +} +// Desc Setter +// 主要内容 +func (r *AlibabaTuikeOfferZhitokenAPIRequest) SetDesc(_desc string) error { + r._desc = _desc + r.Set("desc", _desc) + return nil +} + +// Desc Getter +func (r AlibabaTuikeOfferZhitokenAPIRequest) GetDesc() string { + return r._desc +} +// IconLink Setter +// 图标链接,可以为空 +func (r *AlibabaTuikeOfferZhitokenAPIRequest) SetIconLink(_iconLink string) error { + r._iconLink = _iconLink + r.Set("icon_link", _iconLink) + return nil +} + +// IconLink Getter +func (r AlibabaTuikeOfferZhitokenAPIRequest) GetIconLink() string { + return r._iconLink +} +// BizType Setter +// SHORT/MEDIUM/LONG +func (r *AlibabaTuikeOfferZhitokenAPIRequest) SetBizType(_bizType string) error { + r._bizType = _bizType + r.Set("biz_type", _bizType) + return nil +} + +// BizType Getter +func (r AlibabaTuikeOfferZhitokenAPIRequest) GetBizType() string { + return r._bizType +} +// Source Setter +// 业务类型 +func (r *AlibabaTuikeOfferZhitokenAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r AlibabaTuikeOfferZhitokenAPIRequest) GetSource() string { + return r._source +} +// StartTime Setter +// 生效时间,可以为空 +func (r *AlibabaTuikeOfferZhitokenAPIRequest) SetStartTime(_startTime int64) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r AlibabaTuikeOfferZhitokenAPIRequest) GetStartTime() int64 { + return r._startTime +} +// LeftBtnText Setter +// 左按钮文案,可以为空,默认为"取消" +func (r *AlibabaTuikeOfferZhitokenAPIRequest) SetLeftBtnText(_leftBtnText string) error { + r._leftBtnText = _leftBtnText + r.Set("left_btn_text", _leftBtnText) + return nil +} + +// LeftBtnText Getter +func (r AlibabaTuikeOfferZhitokenAPIRequest) GetLeftBtnText() string { + return r._leftBtnText +} +// LeftBtnLink Setter +// 左按钮链接,可以为空 +func (r *AlibabaTuikeOfferZhitokenAPIRequest) SetLeftBtnLink(_leftBtnLink string) error { + r._leftBtnLink = _leftBtnLink + r.Set("left_btn_link", _leftBtnLink) + return nil +} + +// LeftBtnLink Getter +func (r AlibabaTuikeOfferZhitokenAPIRequest) GetLeftBtnLink() string { + return r._leftBtnLink +} +// RightBtnText Setter +// 右按钮文案,可以为空,默认为"确定" +func (r *AlibabaTuikeOfferZhitokenAPIRequest) SetRightBtnText(_rightBtnText string) error { + r._rightBtnText = _rightBtnText + r.Set("right_btn_text", _rightBtnText) + return nil +} + +// RightBtnText Getter +func (r AlibabaTuikeOfferZhitokenAPIRequest) GetRightBtnText() string { + return r._rightBtnText +} +// RightBtnLink Setter +// 右按钮链接 +func (r *AlibabaTuikeOfferZhitokenAPIRequest) SetRightBtnLink(_rightBtnLink string) error { + r._rightBtnLink = _rightBtnLink + r.Set("right_btn_link", _rightBtnLink) + return nil +} + +// RightBtnLink Getter +func (r AlibabaTuikeOfferZhitokenAPIRequest) GetRightBtnLink() string { + return r._rightBtnLink +} diff --git a/model/tuike/AlibabaTuikeOfferZhitokenAPIResponse.go b/model/tuike/AlibabaTuikeOfferZhitokenAPIResponse.go new file mode 100644 index 0000000000..28ce6882b2 --- /dev/null +++ b/model/tuike/AlibabaTuikeOfferZhitokenAPIResponse.go @@ -0,0 +1,27 @@ +package tuike + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +生成阿里口令 API返回值 +alibaba.tuike.offer.zhitoken + +推荐链接生产吱口令 +*/ +type AlibabaTuikeOfferZhitokenAPIResponse struct { + model.CommonResponse + AlibabaTuikeOfferZhitokenAPIResponseModel +} + +// 生成阿里口令 成功返回结果 +type AlibabaTuikeOfferZhitokenAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tuike_offer_zhitoken_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaTuikeOfferZhitokenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tuike/AlibabaTuikeOfferZhitokenResponse.go b/model/tuike/AlibabaTuikeOfferZhitokenResponse.go deleted file mode 100644 index cb173076c7..0000000000 --- a/model/tuike/AlibabaTuikeOfferZhitokenResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tuike - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -生成阿里口令 API返回值 -alibaba.tuike.offer.zhitoken - -推荐链接生产吱口令 -*/ -type AlibabaTuikeOfferZhitokenAPIResponse struct { - model.CommonResponse - AlibabaTuikeOfferZhitokenResponse -} - -// 生成阿里口令 成功返回结果 -type AlibabaTuikeOfferZhitokenResponse struct { - XMLName xml.Name `xml:"alibaba_tuike_offer_zhitoken_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaTuikeOfferZhitokenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tuike/AlibabaTuikeSingleOfferGetAPIRequest.go b/model/tuike/AlibabaTuikeSingleOfferGetAPIRequest.go new file mode 100644 index 0000000000..097f77bee0 --- /dev/null +++ b/model/tuike/AlibabaTuikeSingleOfferGetAPIRequest.go @@ -0,0 +1,66 @@ +package tuike + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询1688推客平台卖家推广中的商品信息 API请求 +alibaba.tuike.single.offer.get + +查询单个推客商品信息的接口 +*/ +type AlibabaTuikeSingleOfferGetAPIRequest struct { + model.Params + // 推客id + _loginId string + // 商品id + _offerId int64 +} + +// 初始化AlibabaTuikeSingleOfferGetAPIRequest对象 +func NewAlibabaTuikeSingleOfferGetRequest() *AlibabaTuikeSingleOfferGetAPIRequest{ + return &AlibabaTuikeSingleOfferGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTuikeSingleOfferGetAPIRequest) GetApiMethodName() string { + return "alibaba.tuike.single.offer.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTuikeSingleOfferGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LoginId Setter +// 推客id +func (r *AlibabaTuikeSingleOfferGetAPIRequest) SetLoginId(_loginId string) error { + r._loginId = _loginId + r.Set("login_id", _loginId) + return nil +} + +// LoginId Getter +func (r AlibabaTuikeSingleOfferGetAPIRequest) GetLoginId() string { + return r._loginId +} +// OfferId Setter +// 商品id +func (r *AlibabaTuikeSingleOfferGetAPIRequest) SetOfferId(_offerId int64) error { + r._offerId = _offerId + r.Set("offer_id", _offerId) + return nil +} + +// OfferId Getter +func (r AlibabaTuikeSingleOfferGetAPIRequest) GetOfferId() int64 { + return r._offerId +} diff --git a/model/tuike/AlibabaTuikeSingleOfferGetAPIResponse.go b/model/tuike/AlibabaTuikeSingleOfferGetAPIResponse.go new file mode 100644 index 0000000000..059f3f014a --- /dev/null +++ b/model/tuike/AlibabaTuikeSingleOfferGetAPIResponse.go @@ -0,0 +1,27 @@ +package tuike + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询1688推客平台卖家推广中的商品信息 API返回值 +alibaba.tuike.single.offer.get + +查询单个推客商品信息的接口 +*/ +type AlibabaTuikeSingleOfferGetAPIResponse struct { + model.CommonResponse + AlibabaTuikeSingleOfferGetAPIResponseModel +} + +// 查询1688推客平台卖家推广中的商品信息 成功返回结果 +type AlibabaTuikeSingleOfferGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tuike_single_offer_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tuike/AlibabaTuikeSingleOfferGetResponse.go b/model/tuike/AlibabaTuikeSingleOfferGetResponse.go deleted file mode 100644 index 0d3f595d86..0000000000 --- a/model/tuike/AlibabaTuikeSingleOfferGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tuike - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询1688推客平台卖家推广中的商品信息 API返回值 -alibaba.tuike.single.offer.get - -查询单个推客商品信息的接口 -*/ -type AlibabaTuikeSingleOfferGetAPIResponse struct { - model.CommonResponse - AlibabaTuikeSingleOfferGetResponse -} - -// 查询1688推客平台卖家推广中的商品信息 成功返回结果 -type AlibabaTuikeSingleOfferGetResponse struct { - XMLName xml.Name `xml:"alibaba_tuike_single_offer_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tuike/AlibabaTuikeWebUnionOrderQueryAPIRequest.go b/model/tuike/AlibabaTuikeWebUnionOrderQueryAPIRequest.go new file mode 100644 index 0000000000..d7ea5b422f --- /dev/null +++ b/model/tuike/AlibabaTuikeWebUnionOrderQueryAPIRequest.go @@ -0,0 +1,108 @@ +package tuike + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推客网盟合作抽佣订单查询接口 API请求 +alibaba.tuike.web.union.order.query + +推客网盟合作抽佣订单查询接口 +*/ +type AlibabaTuikeWebUnionOrderQueryAPIRequest struct { + model.Params + // 0 表示time为下单时间;1表示time为更新时间 + _timeType int64 + // 13位时间戳 + _startTime int64 + // 13位时间戳 + _endTime int64 + // 页码偏移 + _pageOffset int64 + // 返回条数 + _pageSize int64 +} + +// 初始化AlibabaTuikeWebUnionOrderQueryAPIRequest对象 +func NewAlibabaTuikeWebUnionOrderQueryRequest() *AlibabaTuikeWebUnionOrderQueryAPIRequest{ + return &AlibabaTuikeWebUnionOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTuikeWebUnionOrderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.tuike.web.union.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTuikeWebUnionOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TimeType Setter +// 0 表示time为下单时间;1表示time为更新时间 +func (r *AlibabaTuikeWebUnionOrderQueryAPIRequest) SetTimeType(_timeType int64) error { + r._timeType = _timeType + r.Set("time_type", _timeType) + return nil +} + +// TimeType Getter +func (r AlibabaTuikeWebUnionOrderQueryAPIRequest) GetTimeType() int64 { + return r._timeType +} +// StartTime Setter +// 13位时间戳 +func (r *AlibabaTuikeWebUnionOrderQueryAPIRequest) SetStartTime(_startTime int64) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r AlibabaTuikeWebUnionOrderQueryAPIRequest) GetStartTime() int64 { + return r._startTime +} +// EndTime Setter +// 13位时间戳 +func (r *AlibabaTuikeWebUnionOrderQueryAPIRequest) SetEndTime(_endTime int64) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r AlibabaTuikeWebUnionOrderQueryAPIRequest) GetEndTime() int64 { + return r._endTime +} +// PageOffset Setter +// 页码偏移 +func (r *AlibabaTuikeWebUnionOrderQueryAPIRequest) SetPageOffset(_pageOffset int64) error { + r._pageOffset = _pageOffset + r.Set("page_offset", _pageOffset) + return nil +} + +// PageOffset Getter +func (r AlibabaTuikeWebUnionOrderQueryAPIRequest) GetPageOffset() int64 { + return r._pageOffset +} +// PageSize Setter +// 返回条数 +func (r *AlibabaTuikeWebUnionOrderQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaTuikeWebUnionOrderQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tuike/AlibabaTuikeWebUnionOrderQueryAPIResponse.go b/model/tuike/AlibabaTuikeWebUnionOrderQueryAPIResponse.go new file mode 100644 index 0000000000..90b61d740e --- /dev/null +++ b/model/tuike/AlibabaTuikeWebUnionOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tuike + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推客网盟合作抽佣订单查询接口 API返回值 +alibaba.tuike.web.union.order.query + +推客网盟合作抽佣订单查询接口 +*/ +type AlibabaTuikeWebUnionOrderQueryAPIResponse struct { + model.CommonResponse + AlibabaTuikeWebUnionOrderQueryAPIResponseModel +} + +// 推客网盟合作抽佣订单查询接口 成功返回结果 +type AlibabaTuikeWebUnionOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tuike_web_union_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + List []AlibabaTuikeWebUnionOrderQueryResult `json:"list,omitempty" xml:"list>alibaba_tuike_web_union_order_query_result,omitempty"` +} diff --git a/model/tuike/AlibabaTuikeWebUnionOrderQueryResponse.go b/model/tuike/AlibabaTuikeWebUnionOrderQueryResponse.go deleted file mode 100644 index d8cab5cfde..0000000000 --- a/model/tuike/AlibabaTuikeWebUnionOrderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tuike - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推客网盟合作抽佣订单查询接口 API返回值 -alibaba.tuike.web.union.order.query - -推客网盟合作抽佣订单查询接口 -*/ -type AlibabaTuikeWebUnionOrderQueryAPIResponse struct { - model.CommonResponse - AlibabaTuikeWebUnionOrderQueryResponse -} - -// 推客网盟合作抽佣订单查询接口 成功返回结果 -type AlibabaTuikeWebUnionOrderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_tuike_web_union_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - List []AlibabaTuikeWebUnionOrderQueryResult `json:"list,omitempty" xml:"list>alibaba_tuike_web_union_order_query_result,omitempty"` -} diff --git a/model/tvpay/TaobaoTvpayAccessDataGetAPIRequest.go b/model/tvpay/TaobaoTvpayAccessDataGetAPIRequest.go new file mode 100644 index 0000000000..3030553195 --- /dev/null +++ b/model/tvpay/TaobaoTvpayAccessDataGetAPIRequest.go @@ -0,0 +1,94 @@ +package tvpay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +tv支付 API请求 +taobao.tvpay.access.data.get + +在匿名用户支付后尝试为其登陆绑定的淘宝账号 +*/ +type TaobaoTvpayAccessDataGetAPIRequest struct { + model.Params + // 设备id + _deviceId string + // 来源 + _from string + // 订单id + _outOrderNo string + // 账号客户端版本 + _accountClientVersion string +} + +// 初始化TaobaoTvpayAccessDataGetAPIRequest对象 +func NewTaobaoTvpayAccessDataGetRequest() *TaobaoTvpayAccessDataGetAPIRequest{ + return &TaobaoTvpayAccessDataGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTvpayAccessDataGetAPIRequest) GetApiMethodName() string { + return "taobao.tvpay.access.data.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTvpayAccessDataGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceId Setter +// 设备id +func (r *TaobaoTvpayAccessDataGetAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r TaobaoTvpayAccessDataGetAPIRequest) GetDeviceId() string { + return r._deviceId +} +// From Setter +// 来源 +func (r *TaobaoTvpayAccessDataGetAPIRequest) SetFrom(_from string) error { + r._from = _from + r.Set("from", _from) + return nil +} + +// From Getter +func (r TaobaoTvpayAccessDataGetAPIRequest) GetFrom() string { + return r._from +} +// OutOrderNo Setter +// 订单id +func (r *TaobaoTvpayAccessDataGetAPIRequest) SetOutOrderNo(_outOrderNo string) error { + r._outOrderNo = _outOrderNo + r.Set("out_order_no", _outOrderNo) + return nil +} + +// OutOrderNo Getter +func (r TaobaoTvpayAccessDataGetAPIRequest) GetOutOrderNo() string { + return r._outOrderNo +} +// AccountClientVersion Setter +// 账号客户端版本 +func (r *TaobaoTvpayAccessDataGetAPIRequest) SetAccountClientVersion(_accountClientVersion string) error { + r._accountClientVersion = _accountClientVersion + r.Set("account_client_version", _accountClientVersion) + return nil +} + +// AccountClientVersion Getter +func (r TaobaoTvpayAccessDataGetAPIRequest) GetAccountClientVersion() string { + return r._accountClientVersion +} diff --git a/model/tvpay/TaobaoTvpayAccessDataGetAPIResponse.go b/model/tvpay/TaobaoTvpayAccessDataGetAPIResponse.go new file mode 100644 index 0000000000..64fa0f1566 --- /dev/null +++ b/model/tvpay/TaobaoTvpayAccessDataGetAPIResponse.go @@ -0,0 +1,27 @@ +package tvpay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +tv支付 API返回值 +taobao.tvpay.access.data.get + +在匿名用户支付后尝试为其登陆绑定的淘宝账号 +*/ +type TaobaoTvpayAccessDataGetAPIResponse struct { + model.CommonResponse + TaobaoTvpayAccessDataGetAPIResponseModel +} + +// tv支付 成功返回结果 +type TaobaoTvpayAccessDataGetAPIResponseModel struct { + XMLName xml.Name `xml:"tvpay_access_data_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Top返回对象 + Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvpay/TaobaoTvpayAccessDataGetResponse.go b/model/tvpay/TaobaoTvpayAccessDataGetResponse.go deleted file mode 100644 index ffb2b9bafb..0000000000 --- a/model/tvpay/TaobaoTvpayAccessDataGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvpay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -tv支付 API返回值 -taobao.tvpay.access.data.get - -在匿名用户支付后尝试为其登陆绑定的淘宝账号 -*/ -type TaobaoTvpayAccessDataGetAPIResponse struct { - model.CommonResponse - TaobaoTvpayAccessDataGetResponse -} - -// tv支付 成功返回结果 -type TaobaoTvpayAccessDataGetResponse struct { - XMLName xml.Name `xml:"tvpay_access_data_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Top返回对象 - Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvpay/TaobaoTvpayAppinfoGetAPIRequest.go b/model/tvpay/TaobaoTvpayAppinfoGetAPIRequest.go new file mode 100644 index 0000000000..e774eb104d --- /dev/null +++ b/model/tvpay/TaobaoTvpayAppinfoGetAPIRequest.go @@ -0,0 +1,80 @@ +package tvpay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +tv支付获取应用信息 API请求 +taobao.tvpay.appinfo.get + +tv支付获取应用信息 +*/ +type TaobaoTvpayAppinfoGetAPIRequest struct { + model.Params + // 设备id + _deviceId string + // 来源 + _from string + // 客户端版本号 + _clientVersion string +} + +// 初始化TaobaoTvpayAppinfoGetAPIRequest对象 +func NewTaobaoTvpayAppinfoGetRequest() *TaobaoTvpayAppinfoGetAPIRequest{ + return &TaobaoTvpayAppinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTvpayAppinfoGetAPIRequest) GetApiMethodName() string { + return "taobao.tvpay.appinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTvpayAppinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceId Setter +// 设备id +func (r *TaobaoTvpayAppinfoGetAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r TaobaoTvpayAppinfoGetAPIRequest) GetDeviceId() string { + return r._deviceId +} +// From Setter +// 来源 +func (r *TaobaoTvpayAppinfoGetAPIRequest) SetFrom(_from string) error { + r._from = _from + r.Set("from", _from) + return nil +} + +// From Getter +func (r TaobaoTvpayAppinfoGetAPIRequest) GetFrom() string { + return r._from +} +// ClientVersion Setter +// 客户端版本号 +func (r *TaobaoTvpayAppinfoGetAPIRequest) SetClientVersion(_clientVersion string) error { + r._clientVersion = _clientVersion + r.Set("client_version", _clientVersion) + return nil +} + +// ClientVersion Getter +func (r TaobaoTvpayAppinfoGetAPIRequest) GetClientVersion() string { + return r._clientVersion +} diff --git a/model/tvpay/TaobaoTvpayAppinfoGetAPIResponse.go b/model/tvpay/TaobaoTvpayAppinfoGetAPIResponse.go new file mode 100644 index 0000000000..ca2d579d4f --- /dev/null +++ b/model/tvpay/TaobaoTvpayAppinfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package tvpay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +tv支付获取应用信息 API返回值 +taobao.tvpay.appinfo.get + +tv支付获取应用信息 +*/ +type TaobaoTvpayAppinfoGetAPIResponse struct { + model.CommonResponse + TaobaoTvpayAppinfoGetAPIResponseModel +} + +// tv支付获取应用信息 成功返回结果 +type TaobaoTvpayAppinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"tvpay_appinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Top返回对象 + Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvpay/TaobaoTvpayAppinfoGetResponse.go b/model/tvpay/TaobaoTvpayAppinfoGetResponse.go deleted file mode 100644 index 0b61908b7d..0000000000 --- a/model/tvpay/TaobaoTvpayAppinfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvpay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -tv支付获取应用信息 API返回值 -taobao.tvpay.appinfo.get - -tv支付获取应用信息 -*/ -type TaobaoTvpayAppinfoGetAPIResponse struct { - model.CommonResponse - TaobaoTvpayAppinfoGetResponse -} - -// tv支付获取应用信息 成功返回结果 -type TaobaoTvpayAppinfoGetResponse struct { - XMLName xml.Name `xml:"tvpay_appinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Top返回对象 - Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvpay/TaobaoTvpayAuthApplyAPIRequest.go b/model/tvpay/TaobaoTvpayAuthApplyAPIRequest.go new file mode 100644 index 0000000000..d990138b40 --- /dev/null +++ b/model/tvpay/TaobaoTvpayAuthApplyAPIRequest.go @@ -0,0 +1,136 @@ +package tvpay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +tv支付申请设备授权 API请求 +taobao.tvpay.auth.apply + +为用户在指定设备上申请支付授权 +*/ +type TaobaoTvpayAuthApplyAPIRequest struct { + model.Params + // 设备id + _deviceId string + // 请求来源 + _from string + // 场景 + _bizScene string + // 商品名称 + _itemName string + // 授权类型 + _operateType string + // 外部订单号 + _outApproveId string + // 金额 + _totalFee string +} + +// 初始化TaobaoTvpayAuthApplyAPIRequest对象 +func NewTaobaoTvpayAuthApplyRequest() *TaobaoTvpayAuthApplyAPIRequest{ + return &TaobaoTvpayAuthApplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTvpayAuthApplyAPIRequest) GetApiMethodName() string { + return "taobao.tvpay.auth.apply" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTvpayAuthApplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceId Setter +// 设备id +func (r *TaobaoTvpayAuthApplyAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r TaobaoTvpayAuthApplyAPIRequest) GetDeviceId() string { + return r._deviceId +} +// From Setter +// 请求来源 +func (r *TaobaoTvpayAuthApplyAPIRequest) SetFrom(_from string) error { + r._from = _from + r.Set("from", _from) + return nil +} + +// From Getter +func (r TaobaoTvpayAuthApplyAPIRequest) GetFrom() string { + return r._from +} +// BizScene Setter +// 场景 +func (r *TaobaoTvpayAuthApplyAPIRequest) SetBizScene(_bizScene string) error { + r._bizScene = _bizScene + r.Set("biz_scene", _bizScene) + return nil +} + +// BizScene Getter +func (r TaobaoTvpayAuthApplyAPIRequest) GetBizScene() string { + return r._bizScene +} +// ItemName Setter +// 商品名称 +func (r *TaobaoTvpayAuthApplyAPIRequest) SetItemName(_itemName string) error { + r._itemName = _itemName + r.Set("item_name", _itemName) + return nil +} + +// ItemName Getter +func (r TaobaoTvpayAuthApplyAPIRequest) GetItemName() string { + return r._itemName +} +// OperateType Setter +// 授权类型 +func (r *TaobaoTvpayAuthApplyAPIRequest) SetOperateType(_operateType string) error { + r._operateType = _operateType + r.Set("operate_type", _operateType) + return nil +} + +// OperateType Getter +func (r TaobaoTvpayAuthApplyAPIRequest) GetOperateType() string { + return r._operateType +} +// OutApproveId Setter +// 外部订单号 +func (r *TaobaoTvpayAuthApplyAPIRequest) SetOutApproveId(_outApproveId string) error { + r._outApproveId = _outApproveId + r.Set("out_approve_id", _outApproveId) + return nil +} + +// OutApproveId Getter +func (r TaobaoTvpayAuthApplyAPIRequest) GetOutApproveId() string { + return r._outApproveId +} +// TotalFee Setter +// 金额 +func (r *TaobaoTvpayAuthApplyAPIRequest) SetTotalFee(_totalFee string) error { + r._totalFee = _totalFee + r.Set("total_fee", _totalFee) + return nil +} + +// TotalFee Getter +func (r TaobaoTvpayAuthApplyAPIRequest) GetTotalFee() string { + return r._totalFee +} diff --git a/model/tvpay/TaobaoTvpayAuthApplyAPIResponse.go b/model/tvpay/TaobaoTvpayAuthApplyAPIResponse.go new file mode 100644 index 0000000000..a463c1d535 --- /dev/null +++ b/model/tvpay/TaobaoTvpayAuthApplyAPIResponse.go @@ -0,0 +1,27 @@ +package tvpay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +tv支付申请设备授权 API返回值 +taobao.tvpay.auth.apply + +为用户在指定设备上申请支付授权 +*/ +type TaobaoTvpayAuthApplyAPIResponse struct { + model.CommonResponse + TaobaoTvpayAuthApplyAPIResponseModel +} + +// tv支付申请设备授权 成功返回结果 +type TaobaoTvpayAuthApplyAPIResponseModel struct { + XMLName xml.Name `xml:"tvpay_auth_apply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Top返回对象 + Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvpay/TaobaoTvpayAuthApplyResponse.go b/model/tvpay/TaobaoTvpayAuthApplyResponse.go deleted file mode 100644 index 2b4fcb42a0..0000000000 --- a/model/tvpay/TaobaoTvpayAuthApplyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvpay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -tv支付申请设备授权 API返回值 -taobao.tvpay.auth.apply - -为用户在指定设备上申请支付授权 -*/ -type TaobaoTvpayAuthApplyAPIResponse struct { - model.CommonResponse - TaobaoTvpayAuthApplyResponse -} - -// tv支付申请设备授权 成功返回结果 -type TaobaoTvpayAuthApplyResponse struct { - XMLName xml.Name `xml:"tvpay_auth_apply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Top返回对象 - Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvpay/TaobaoTvpayAuthQueryAPIRequest.go b/model/tvpay/TaobaoTvpayAuthQueryAPIRequest.go new file mode 100644 index 0000000000..797ba8c780 --- /dev/null +++ b/model/tvpay/TaobaoTvpayAuthQueryAPIRequest.go @@ -0,0 +1,122 @@ +package tvpay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +tv支付授权查询 API请求 +taobao.tvpay.auth.query + +查询该用户在指定设备上是否有支付授权 +*/ +type TaobaoTvpayAuthQueryAPIRequest struct { + model.Params + // 设备号 + _deviceId string + // 来源 + _from string + // 业务订单号 + _bizOrderId string + // 是否淘系 + _isTao bool + // 支付宝订单号 + _orderNo string + // 外部订单号 + _outOrderNo string +} + +// 初始化TaobaoTvpayAuthQueryAPIRequest对象 +func NewTaobaoTvpayAuthQueryRequest() *TaobaoTvpayAuthQueryAPIRequest{ + return &TaobaoTvpayAuthQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTvpayAuthQueryAPIRequest) GetApiMethodName() string { + return "taobao.tvpay.auth.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTvpayAuthQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceId Setter +// 设备号 +func (r *TaobaoTvpayAuthQueryAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r TaobaoTvpayAuthQueryAPIRequest) GetDeviceId() string { + return r._deviceId +} +// From Setter +// 来源 +func (r *TaobaoTvpayAuthQueryAPIRequest) SetFrom(_from string) error { + r._from = _from + r.Set("from", _from) + return nil +} + +// From Getter +func (r TaobaoTvpayAuthQueryAPIRequest) GetFrom() string { + return r._from +} +// BizOrderId Setter +// 业务订单号 +func (r *TaobaoTvpayAuthQueryAPIRequest) SetBizOrderId(_bizOrderId string) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r TaobaoTvpayAuthQueryAPIRequest) GetBizOrderId() string { + return r._bizOrderId +} +// IsTao Setter +// 是否淘系 +func (r *TaobaoTvpayAuthQueryAPIRequest) SetIsTao(_isTao bool) error { + r._isTao = _isTao + r.Set("is_tao", _isTao) + return nil +} + +// IsTao Getter +func (r TaobaoTvpayAuthQueryAPIRequest) GetIsTao() bool { + return r._isTao +} +// OrderNo Setter +// 支付宝订单号 +func (r *TaobaoTvpayAuthQueryAPIRequest) SetOrderNo(_orderNo string) error { + r._orderNo = _orderNo + r.Set("order_no", _orderNo) + return nil +} + +// OrderNo Getter +func (r TaobaoTvpayAuthQueryAPIRequest) GetOrderNo() string { + return r._orderNo +} +// OutOrderNo Setter +// 外部订单号 +func (r *TaobaoTvpayAuthQueryAPIRequest) SetOutOrderNo(_outOrderNo string) error { + r._outOrderNo = _outOrderNo + r.Set("out_order_no", _outOrderNo) + return nil +} + +// OutOrderNo Getter +func (r TaobaoTvpayAuthQueryAPIRequest) GetOutOrderNo() string { + return r._outOrderNo +} diff --git a/model/tvpay/TaobaoTvpayAuthQueryAPIResponse.go b/model/tvpay/TaobaoTvpayAuthQueryAPIResponse.go new file mode 100644 index 0000000000..30f0a80fb7 --- /dev/null +++ b/model/tvpay/TaobaoTvpayAuthQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tvpay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +tv支付授权查询 API返回值 +taobao.tvpay.auth.query + +查询该用户在指定设备上是否有支付授权 +*/ +type TaobaoTvpayAuthQueryAPIResponse struct { + model.CommonResponse + TaobaoTvpayAuthQueryAPIResponseModel +} + +// tv支付授权查询 成功返回结果 +type TaobaoTvpayAuthQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tvpay_auth_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Top返回对象 + Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvpay/TaobaoTvpayAuthQueryResponse.go b/model/tvpay/TaobaoTvpayAuthQueryResponse.go deleted file mode 100644 index d36f9efb85..0000000000 --- a/model/tvpay/TaobaoTvpayAuthQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvpay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -tv支付授权查询 API返回值 -taobao.tvpay.auth.query - -查询该用户在指定设备上是否有支付授权 -*/ -type TaobaoTvpayAuthQueryAPIResponse struct { - model.CommonResponse - TaobaoTvpayAuthQueryResponse -} - -// tv支付授权查询 成功返回结果 -type TaobaoTvpayAuthQueryResponse struct { - XMLName xml.Name `xml:"tvpay_auth_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Top返回对象 - Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvpay/TaobaoTvpayOrderPartnerpayAPIRequest.go b/model/tvpay/TaobaoTvpayOrderPartnerpayAPIRequest.go new file mode 100644 index 0000000000..c9fab35d0a --- /dev/null +++ b/model/tvpay/TaobaoTvpayOrderPartnerpayAPIRequest.go @@ -0,0 +1,108 @@ +package tvpay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +tv支付第三方支付订单 API请求 +taobao.tvpay.order.partnerpay + +tv支付第三方发起并支付订单(使用设备授权) +*/ +type TaobaoTvpayOrderPartnerpayAPIRequest struct { + model.Params + // 设备id + _deviceId string + // 来源 + _from string + // 订单信息 + _data string + // 支付方式 + _payType string + // 牌照方 + _license string +} + +// 初始化TaobaoTvpayOrderPartnerpayAPIRequest对象 +func NewTaobaoTvpayOrderPartnerpayRequest() *TaobaoTvpayOrderPartnerpayAPIRequest{ + return &TaobaoTvpayOrderPartnerpayAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTvpayOrderPartnerpayAPIRequest) GetApiMethodName() string { + return "taobao.tvpay.order.partnerpay" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTvpayOrderPartnerpayAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceId Setter +// 设备id +func (r *TaobaoTvpayOrderPartnerpayAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r TaobaoTvpayOrderPartnerpayAPIRequest) GetDeviceId() string { + return r._deviceId +} +// From Setter +// 来源 +func (r *TaobaoTvpayOrderPartnerpayAPIRequest) SetFrom(_from string) error { + r._from = _from + r.Set("from", _from) + return nil +} + +// From Getter +func (r TaobaoTvpayOrderPartnerpayAPIRequest) GetFrom() string { + return r._from +} +// Data Setter +// 订单信息 +func (r *TaobaoTvpayOrderPartnerpayAPIRequest) SetData(_data string) error { + r._data = _data + r.Set("data", _data) + return nil +} + +// Data Getter +func (r TaobaoTvpayOrderPartnerpayAPIRequest) GetData() string { + return r._data +} +// PayType Setter +// 支付方式 +func (r *TaobaoTvpayOrderPartnerpayAPIRequest) SetPayType(_payType string) error { + r._payType = _payType + r.Set("pay_type", _payType) + return nil +} + +// PayType Getter +func (r TaobaoTvpayOrderPartnerpayAPIRequest) GetPayType() string { + return r._payType +} +// License Setter +// 牌照方 +func (r *TaobaoTvpayOrderPartnerpayAPIRequest) SetLicense(_license string) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r TaobaoTvpayOrderPartnerpayAPIRequest) GetLicense() string { + return r._license +} diff --git a/model/tvpay/TaobaoTvpayOrderPartnerpayAPIResponse.go b/model/tvpay/TaobaoTvpayOrderPartnerpayAPIResponse.go new file mode 100644 index 0000000000..f59f728772 --- /dev/null +++ b/model/tvpay/TaobaoTvpayOrderPartnerpayAPIResponse.go @@ -0,0 +1,27 @@ +package tvpay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +tv支付第三方支付订单 API返回值 +taobao.tvpay.order.partnerpay + +tv支付第三方发起并支付订单(使用设备授权) +*/ +type TaobaoTvpayOrderPartnerpayAPIResponse struct { + model.CommonResponse + TaobaoTvpayOrderPartnerpayAPIResponseModel +} + +// tv支付第三方支付订单 成功返回结果 +type TaobaoTvpayOrderPartnerpayAPIResponseModel struct { + XMLName xml.Name `xml:"tvpay_order_partnerpay_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Top返回对象 + Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvpay/TaobaoTvpayOrderPartnerpayResponse.go b/model/tvpay/TaobaoTvpayOrderPartnerpayResponse.go deleted file mode 100644 index 136fa24d76..0000000000 --- a/model/tvpay/TaobaoTvpayOrderPartnerpayResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvpay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -tv支付第三方支付订单 API返回值 -taobao.tvpay.order.partnerpay - -tv支付第三方发起并支付订单(使用设备授权) -*/ -type TaobaoTvpayOrderPartnerpayAPIResponse struct { - model.CommonResponse - TaobaoTvpayOrderPartnerpayResponse -} - -// tv支付第三方支付订单 成功返回结果 -type TaobaoTvpayOrderPartnerpayResponse struct { - XMLName xml.Name `xml:"tvpay_order_partnerpay_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Top返回对象 - Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvpay/TaobaoTvpayOrderPrecreateAPIRequest.go b/model/tvpay/TaobaoTvpayOrderPrecreateAPIRequest.go new file mode 100644 index 0000000000..6fe4666851 --- /dev/null +++ b/model/tvpay/TaobaoTvpayOrderPrecreateAPIRequest.go @@ -0,0 +1,94 @@ +package tvpay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +tv支付预下单 API请求 +taobao.tvpay.order.precreate + +tv支付预下单 +*/ +type TaobaoTvpayOrderPrecreateAPIRequest struct { + model.Params + // 设备id + _deviceId string + // 来源 + _from string + // 订单详情 + _data string + // 牌照方 + _license string +} + +// 初始化TaobaoTvpayOrderPrecreateAPIRequest对象 +func NewTaobaoTvpayOrderPrecreateRequest() *TaobaoTvpayOrderPrecreateAPIRequest{ + return &TaobaoTvpayOrderPrecreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTvpayOrderPrecreateAPIRequest) GetApiMethodName() string { + return "taobao.tvpay.order.precreate" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTvpayOrderPrecreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceId Setter +// 设备id +func (r *TaobaoTvpayOrderPrecreateAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r TaobaoTvpayOrderPrecreateAPIRequest) GetDeviceId() string { + return r._deviceId +} +// From Setter +// 来源 +func (r *TaobaoTvpayOrderPrecreateAPIRequest) SetFrom(_from string) error { + r._from = _from + r.Set("from", _from) + return nil +} + +// From Getter +func (r TaobaoTvpayOrderPrecreateAPIRequest) GetFrom() string { + return r._from +} +// Data Setter +// 订单详情 +func (r *TaobaoTvpayOrderPrecreateAPIRequest) SetData(_data string) error { + r._data = _data + r.Set("data", _data) + return nil +} + +// Data Getter +func (r TaobaoTvpayOrderPrecreateAPIRequest) GetData() string { + return r._data +} +// License Setter +// 牌照方 +func (r *TaobaoTvpayOrderPrecreateAPIRequest) SetLicense(_license string) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r TaobaoTvpayOrderPrecreateAPIRequest) GetLicense() string { + return r._license +} diff --git a/model/tvpay/TaobaoTvpayOrderPrecreateAPIResponse.go b/model/tvpay/TaobaoTvpayOrderPrecreateAPIResponse.go new file mode 100644 index 0000000000..c8c1a06f64 --- /dev/null +++ b/model/tvpay/TaobaoTvpayOrderPrecreateAPIResponse.go @@ -0,0 +1,27 @@ +package tvpay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +tv支付预下单 API返回值 +taobao.tvpay.order.precreate + +tv支付预下单 +*/ +type TaobaoTvpayOrderPrecreateAPIResponse struct { + model.CommonResponse + TaobaoTvpayOrderPrecreateAPIResponseModel +} + +// tv支付预下单 成功返回结果 +type TaobaoTvpayOrderPrecreateAPIResponseModel struct { + XMLName xml.Name `xml:"tvpay_order_precreate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Top返回对象 + Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvpay/TaobaoTvpayOrderPrecreateResponse.go b/model/tvpay/TaobaoTvpayOrderPrecreateResponse.go deleted file mode 100644 index 25798bc4cb..0000000000 --- a/model/tvpay/TaobaoTvpayOrderPrecreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvpay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -tv支付预下单 API返回值 -taobao.tvpay.order.precreate - -tv支付预下单 -*/ -type TaobaoTvpayOrderPrecreateAPIResponse struct { - model.CommonResponse - TaobaoTvpayOrderPrecreateResponse -} - -// tv支付预下单 成功返回结果 -type TaobaoTvpayOrderPrecreateResponse struct { - XMLName xml.Name `xml:"tvpay_order_precreate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Top返回对象 - Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvpay/TaobaoTvpayOrderQueryAPIRequest.go b/model/tvpay/TaobaoTvpayOrderQueryAPIRequest.go new file mode 100644 index 0000000000..d29eec909c --- /dev/null +++ b/model/tvpay/TaobaoTvpayOrderQueryAPIRequest.go @@ -0,0 +1,150 @@ +package tvpay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +tv支付查询订单状态 API请求 +taobao.tvpay.order.query + +tv支付查询订单状态 +*/ +type TaobaoTvpayOrderQueryAPIRequest struct { + model.Params + // 设备id + _deviceId string + // 来源 + _from string + // 业务订单号 + _bizOrderId string + // 是否淘系 + _isTao bool + // 支付宝订单号 + _orderNo string + // 订单类型 + _orderType string + // 外部订单号 + _outOrderNo string + // 牌照方 + _license string +} + +// 初始化TaobaoTvpayOrderQueryAPIRequest对象 +func NewTaobaoTvpayOrderQueryRequest() *TaobaoTvpayOrderQueryAPIRequest{ + return &TaobaoTvpayOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTvpayOrderQueryAPIRequest) GetApiMethodName() string { + return "taobao.tvpay.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTvpayOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceId Setter +// 设备id +func (r *TaobaoTvpayOrderQueryAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r TaobaoTvpayOrderQueryAPIRequest) GetDeviceId() string { + return r._deviceId +} +// From Setter +// 来源 +func (r *TaobaoTvpayOrderQueryAPIRequest) SetFrom(_from string) error { + r._from = _from + r.Set("from", _from) + return nil +} + +// From Getter +func (r TaobaoTvpayOrderQueryAPIRequest) GetFrom() string { + return r._from +} +// BizOrderId Setter +// 业务订单号 +func (r *TaobaoTvpayOrderQueryAPIRequest) SetBizOrderId(_bizOrderId string) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r TaobaoTvpayOrderQueryAPIRequest) GetBizOrderId() string { + return r._bizOrderId +} +// IsTao Setter +// 是否淘系 +func (r *TaobaoTvpayOrderQueryAPIRequest) SetIsTao(_isTao bool) error { + r._isTao = _isTao + r.Set("is_tao", _isTao) + return nil +} + +// IsTao Getter +func (r TaobaoTvpayOrderQueryAPIRequest) GetIsTao() bool { + return r._isTao +} +// OrderNo Setter +// 支付宝订单号 +func (r *TaobaoTvpayOrderQueryAPIRequest) SetOrderNo(_orderNo string) error { + r._orderNo = _orderNo + r.Set("order_no", _orderNo) + return nil +} + +// OrderNo Getter +func (r TaobaoTvpayOrderQueryAPIRequest) GetOrderNo() string { + return r._orderNo +} +// OrderType Setter +// 订单类型 +func (r *TaobaoTvpayOrderQueryAPIRequest) SetOrderType(_orderType string) error { + r._orderType = _orderType + r.Set("order_type", _orderType) + return nil +} + +// OrderType Getter +func (r TaobaoTvpayOrderQueryAPIRequest) GetOrderType() string { + return r._orderType +} +// OutOrderNo Setter +// 外部订单号 +func (r *TaobaoTvpayOrderQueryAPIRequest) SetOutOrderNo(_outOrderNo string) error { + r._outOrderNo = _outOrderNo + r.Set("out_order_no", _outOrderNo) + return nil +} + +// OutOrderNo Getter +func (r TaobaoTvpayOrderQueryAPIRequest) GetOutOrderNo() string { + return r._outOrderNo +} +// License Setter +// 牌照方 +func (r *TaobaoTvpayOrderQueryAPIRequest) SetLicense(_license string) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r TaobaoTvpayOrderQueryAPIRequest) GetLicense() string { + return r._license +} diff --git a/model/tvpay/TaobaoTvpayOrderQueryAPIResponse.go b/model/tvpay/TaobaoTvpayOrderQueryAPIResponse.go new file mode 100644 index 0000000000..b1a4110dd7 --- /dev/null +++ b/model/tvpay/TaobaoTvpayOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tvpay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +tv支付查询订单状态 API返回值 +taobao.tvpay.order.query + +tv支付查询订单状态 +*/ +type TaobaoTvpayOrderQueryAPIResponse struct { + model.CommonResponse + TaobaoTvpayOrderQueryAPIResponseModel +} + +// tv支付查询订单状态 成功返回结果 +type TaobaoTvpayOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tvpay_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Top返回对象 + Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvpay/TaobaoTvpayOrderQueryResponse.go b/model/tvpay/TaobaoTvpayOrderQueryResponse.go deleted file mode 100644 index 652b7c15a7..0000000000 --- a/model/tvpay/TaobaoTvpayOrderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvpay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -tv支付查询订单状态 API返回值 -taobao.tvpay.order.query - -tv支付查询订单状态 -*/ -type TaobaoTvpayOrderQueryAPIResponse struct { - model.CommonResponse - TaobaoTvpayOrderQueryResponse -} - -// tv支付查询订单状态 成功返回结果 -type TaobaoTvpayOrderQueryResponse struct { - XMLName xml.Name `xml:"tvpay_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Top返回对象 - Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvpay/TaobaoTvpayPartnerOrderQueryAPIRequest.go b/model/tvpay/TaobaoTvpayPartnerOrderQueryAPIRequest.go new file mode 100644 index 0000000000..e396eb8e88 --- /dev/null +++ b/model/tvpay/TaobaoTvpayPartnerOrderQueryAPIRequest.go @@ -0,0 +1,52 @@ +package tvpay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商户查询订单 API请求 +taobao.tvpay.partner.order.query + +给商户提供的查询订单状态的API +*/ +type TaobaoTvpayPartnerOrderQueryAPIRequest struct { + model.Params + // 商户订单号 + _orderNo string +} + +// 初始化TaobaoTvpayPartnerOrderQueryAPIRequest对象 +func NewTaobaoTvpayPartnerOrderQueryRequest() *TaobaoTvpayPartnerOrderQueryAPIRequest{ + return &TaobaoTvpayPartnerOrderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTvpayPartnerOrderQueryAPIRequest) GetApiMethodName() string { + return "taobao.tvpay.partner.order.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTvpayPartnerOrderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderNo Setter +// 商户订单号 +func (r *TaobaoTvpayPartnerOrderQueryAPIRequest) SetOrderNo(_orderNo string) error { + r._orderNo = _orderNo + r.Set("order_no", _orderNo) + return nil +} + +// OrderNo Getter +func (r TaobaoTvpayPartnerOrderQueryAPIRequest) GetOrderNo() string { + return r._orderNo +} diff --git a/model/tvpay/TaobaoTvpayPartnerOrderQueryAPIResponse.go b/model/tvpay/TaobaoTvpayPartnerOrderQueryAPIResponse.go new file mode 100644 index 0000000000..c63461937c --- /dev/null +++ b/model/tvpay/TaobaoTvpayPartnerOrderQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tvpay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商户查询订单 API返回值 +taobao.tvpay.partner.order.query + +给商户提供的查询订单状态的API +*/ +type TaobaoTvpayPartnerOrderQueryAPIResponse struct { + model.CommonResponse + TaobaoTvpayPartnerOrderQueryAPIResponseModel +} + +// 商户查询订单 成功返回结果 +type TaobaoTvpayPartnerOrderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tvpay_partner_order_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Top返回对象 + Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvpay/TaobaoTvpayPartnerOrderQueryResponse.go b/model/tvpay/TaobaoTvpayPartnerOrderQueryResponse.go deleted file mode 100644 index e93ddc13dc..0000000000 --- a/model/tvpay/TaobaoTvpayPartnerOrderQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvpay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商户查询订单 API返回值 -taobao.tvpay.partner.order.query - -给商户提供的查询订单状态的API -*/ -type TaobaoTvpayPartnerOrderQueryAPIResponse struct { - model.CommonResponse - TaobaoTvpayPartnerOrderQueryResponse -} - -// 商户查询订单 成功返回结果 -type TaobaoTvpayPartnerOrderQueryResponse struct { - XMLName xml.Name `xml:"tvpay_partner_order_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Top返回对象 - Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvpay/TaobaoTvpayPromotionInfoGetAPIRequest.go b/model/tvpay/TaobaoTvpayPromotionInfoGetAPIRequest.go new file mode 100644 index 0000000000..39372c0aab --- /dev/null +++ b/model/tvpay/TaobaoTvpayPromotionInfoGetAPIRequest.go @@ -0,0 +1,122 @@ +package tvpay + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +tv支付查询消费抽奖配置 API请求 +taobao.tvpay.promotion.info.get + +查询消费抽奖配置 +*/ +type TaobaoTvpayPromotionInfoGetAPIRequest struct { + model.Params + // 设备id + _deviceId string + // 来源 + _from string + // 商品id + _subjectId string + // 淘系订单号 + _extOrderId string + // 是否淘系 + _isTao bool + // 标题 + _subject string +} + +// 初始化TaobaoTvpayPromotionInfoGetAPIRequest对象 +func NewTaobaoTvpayPromotionInfoGetRequest() *TaobaoTvpayPromotionInfoGetAPIRequest{ + return &TaobaoTvpayPromotionInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTvpayPromotionInfoGetAPIRequest) GetApiMethodName() string { + return "taobao.tvpay.promotion.info.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTvpayPromotionInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceId Setter +// 设备id +func (r *TaobaoTvpayPromotionInfoGetAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r TaobaoTvpayPromotionInfoGetAPIRequest) GetDeviceId() string { + return r._deviceId +} +// From Setter +// 来源 +func (r *TaobaoTvpayPromotionInfoGetAPIRequest) SetFrom(_from string) error { + r._from = _from + r.Set("from", _from) + return nil +} + +// From Getter +func (r TaobaoTvpayPromotionInfoGetAPIRequest) GetFrom() string { + return r._from +} +// SubjectId Setter +// 商品id +func (r *TaobaoTvpayPromotionInfoGetAPIRequest) SetSubjectId(_subjectId string) error { + r._subjectId = _subjectId + r.Set("subject_id", _subjectId) + return nil +} + +// SubjectId Getter +func (r TaobaoTvpayPromotionInfoGetAPIRequest) GetSubjectId() string { + return r._subjectId +} +// ExtOrderId Setter +// 淘系订单号 +func (r *TaobaoTvpayPromotionInfoGetAPIRequest) SetExtOrderId(_extOrderId string) error { + r._extOrderId = _extOrderId + r.Set("ext_order_id", _extOrderId) + return nil +} + +// ExtOrderId Getter +func (r TaobaoTvpayPromotionInfoGetAPIRequest) GetExtOrderId() string { + return r._extOrderId +} +// IsTao Setter +// 是否淘系 +func (r *TaobaoTvpayPromotionInfoGetAPIRequest) SetIsTao(_isTao bool) error { + r._isTao = _isTao + r.Set("is_tao", _isTao) + return nil +} + +// IsTao Getter +func (r TaobaoTvpayPromotionInfoGetAPIRequest) GetIsTao() bool { + return r._isTao +} +// Subject Setter +// 标题 +func (r *TaobaoTvpayPromotionInfoGetAPIRequest) SetSubject(_subject string) error { + r._subject = _subject + r.Set("subject", _subject) + return nil +} + +// Subject Getter +func (r TaobaoTvpayPromotionInfoGetAPIRequest) GetSubject() string { + return r._subject +} diff --git a/model/tvpay/TaobaoTvpayPromotionInfoGetAPIResponse.go b/model/tvpay/TaobaoTvpayPromotionInfoGetAPIResponse.go new file mode 100644 index 0000000000..8401a02382 --- /dev/null +++ b/model/tvpay/TaobaoTvpayPromotionInfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package tvpay + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +tv支付查询消费抽奖配置 API返回值 +taobao.tvpay.promotion.info.get + +查询消费抽奖配置 +*/ +type TaobaoTvpayPromotionInfoGetAPIResponse struct { + model.CommonResponse + TaobaoTvpayPromotionInfoGetAPIResponseModel +} + +// tv支付查询消费抽奖配置 成功返回结果 +type TaobaoTvpayPromotionInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"tvpay_promotion_info_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Top返回对象 + Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvpay/TaobaoTvpayPromotionInfoGetResponse.go b/model/tvpay/TaobaoTvpayPromotionInfoGetResponse.go deleted file mode 100644 index 4168b6331d..0000000000 --- a/model/tvpay/TaobaoTvpayPromotionInfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvpay - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -tv支付查询消费抽奖配置 API返回值 -taobao.tvpay.promotion.info.get - -查询消费抽奖配置 -*/ -type TaobaoTvpayPromotionInfoGetAPIResponse struct { - model.CommonResponse - TaobaoTvpayPromotionInfoGetResponse -} - -// tv支付查询消费抽奖配置 成功返回结果 -type TaobaoTvpayPromotionInfoGetResponse struct { - XMLName xml.Name `xml:"tvpay_promotion_info_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Top返回对象 - Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosOsupdateAppversionCreateAPIRequest.go b/model/tvupadmin/YunosOsupdateAppversionCreateAPIRequest.go new file mode 100644 index 0000000000..ba7d4c5340 --- /dev/null +++ b/model/tvupadmin/YunosOsupdateAppversionCreateAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建应用升级任务 API请求 +yunos.osupdate.appversion.create + +创建应用升级任务 +*/ +type YunosOsupdateAppversionCreateAPIRequest struct { + model.Params + // 应用版本信息 + _appVersion *TvAppVersion +} + +// 初始化YunosOsupdateAppversionCreateAPIRequest对象 +func NewYunosOsupdateAppversionCreateRequest() *YunosOsupdateAppversionCreateAPIRequest{ + return &YunosOsupdateAppversionCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosOsupdateAppversionCreateAPIRequest) GetApiMethodName() string { + return "yunos.osupdate.appversion.create" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosOsupdateAppversionCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppVersion Setter +// 应用版本信息 +func (r *YunosOsupdateAppversionCreateAPIRequest) SetAppVersion(_appVersion *TvAppVersion) error { + r._appVersion = _appVersion + r.Set("app_version", _appVersion) + return nil +} + +// AppVersion Getter +func (r YunosOsupdateAppversionCreateAPIRequest) GetAppVersion() *TvAppVersion { + return r._appVersion +} diff --git a/model/tvupadmin/YunosOsupdateAppversionCreateAPIResponse.go b/model/tvupadmin/YunosOsupdateAppversionCreateAPIResponse.go new file mode 100644 index 0000000000..2743b7be3a --- /dev/null +++ b/model/tvupadmin/YunosOsupdateAppversionCreateAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建应用升级任务 API返回值 +yunos.osupdate.appversion.create + +创建应用升级任务 +*/ +type YunosOsupdateAppversionCreateAPIResponse struct { + model.CommonResponse + YunosOsupdateAppversionCreateAPIResponseModel +} + +// 创建应用升级任务 成功返回结果 +type YunosOsupdateAppversionCreateAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_osupdate_appversion_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/tvupadmin/YunosOsupdateAppversionCreateResponse.go b/model/tvupadmin/YunosOsupdateAppversionCreateResponse.go deleted file mode 100644 index 7d2019efed..0000000000 --- a/model/tvupadmin/YunosOsupdateAppversionCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建应用升级任务 API返回值 -yunos.osupdate.appversion.create - -创建应用升级任务 -*/ -type YunosOsupdateAppversionCreateAPIResponse struct { - model.CommonResponse - YunosOsupdateAppversionCreateResponse -} - -// 创建应用升级任务 成功返回结果 -type YunosOsupdateAppversionCreateResponse struct { - XMLName xml.Name `xml:"yunos_osupdate_appversion_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/tvupadmin/YunosOsupdateAppversionInfoAPIRequest.go b/model/tvupadmin/YunosOsupdateAppversionInfoAPIRequest.go new file mode 100644 index 0000000000..c40a194790 --- /dev/null +++ b/model/tvupadmin/YunosOsupdateAppversionInfoAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取应用升级详情 API请求 +yunos.osupdate.appversion.info + +获取应用升级详情 +*/ +type YunosOsupdateAppversionInfoAPIRequest struct { + model.Params + // 升级任务ID + _id int64 +} + +// 初始化YunosOsupdateAppversionInfoAPIRequest对象 +func NewYunosOsupdateAppversionInfoRequest() *YunosOsupdateAppversionInfoAPIRequest{ + return &YunosOsupdateAppversionInfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosOsupdateAppversionInfoAPIRequest) GetApiMethodName() string { + return "yunos.osupdate.appversion.info" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosOsupdateAppversionInfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 升级任务ID +func (r *YunosOsupdateAppversionInfoAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r YunosOsupdateAppversionInfoAPIRequest) GetId() int64 { + return r._id +} diff --git a/model/tvupadmin/YunosOsupdateAppversionInfoAPIResponse.go b/model/tvupadmin/YunosOsupdateAppversionInfoAPIResponse.go new file mode 100644 index 0000000000..9a56603539 --- /dev/null +++ b/model/tvupadmin/YunosOsupdateAppversionInfoAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取应用升级详情 API返回值 +yunos.osupdate.appversion.info + +获取应用升级详情 +*/ +type YunosOsupdateAppversionInfoAPIResponse struct { + model.CommonResponse + YunosOsupdateAppversionInfoAPIResponseModel +} + +// 获取应用升级详情 成功返回结果 +type YunosOsupdateAppversionInfoAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_osupdate_appversion_info_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data *TvAppVersion `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/tvupadmin/YunosOsupdateAppversionInfoResponse.go b/model/tvupadmin/YunosOsupdateAppversionInfoResponse.go deleted file mode 100644 index babd9524f7..0000000000 --- a/model/tvupadmin/YunosOsupdateAppversionInfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取应用升级详情 API返回值 -yunos.osupdate.appversion.info - -获取应用升级详情 -*/ -type YunosOsupdateAppversionInfoAPIResponse struct { - model.CommonResponse - YunosOsupdateAppversionInfoResponse -} - -// 获取应用升级详情 成功返回结果 -type YunosOsupdateAppversionInfoResponse struct { - XMLName xml.Name `xml:"yunos_osupdate_appversion_info_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data *TvAppVersion `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/tvupadmin/YunosOsupdateAppversionPublishAPIRequest.go b/model/tvupadmin/YunosOsupdateAppversionPublishAPIRequest.go new file mode 100644 index 0000000000..58a10c3a4c --- /dev/null +++ b/model/tvupadmin/YunosOsupdateAppversionPublishAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发布应用升级 API请求 +yunos.osupdate.appversion.publish + +发布应用升级任务 +*/ +type YunosOsupdateAppversionPublishAPIRequest struct { + model.Params + // 发布应用升级入参json + _publishJson string +} + +// 初始化YunosOsupdateAppversionPublishAPIRequest对象 +func NewYunosOsupdateAppversionPublishRequest() *YunosOsupdateAppversionPublishAPIRequest{ + return &YunosOsupdateAppversionPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosOsupdateAppversionPublishAPIRequest) GetApiMethodName() string { + return "yunos.osupdate.appversion.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosOsupdateAppversionPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PublishJson Setter +// 发布应用升级入参json +func (r *YunosOsupdateAppversionPublishAPIRequest) SetPublishJson(_publishJson string) error { + r._publishJson = _publishJson + r.Set("publish_json", _publishJson) + return nil +} + +// PublishJson Getter +func (r YunosOsupdateAppversionPublishAPIRequest) GetPublishJson() string { + return r._publishJson +} diff --git a/model/tvupadmin/YunosOsupdateAppversionPublishAPIResponse.go b/model/tvupadmin/YunosOsupdateAppversionPublishAPIResponse.go new file mode 100644 index 0000000000..c285891007 --- /dev/null +++ b/model/tvupadmin/YunosOsupdateAppversionPublishAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发布应用升级 API返回值 +yunos.osupdate.appversion.publish + +发布应用升级任务 +*/ +type YunosOsupdateAppversionPublishAPIResponse struct { + model.CommonResponse + YunosOsupdateAppversionPublishAPIResponseModel +} + +// 发布应用升级 成功返回结果 +type YunosOsupdateAppversionPublishAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_osupdate_appversion_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *YunosOsupdateAppversionPublishResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosOsupdateAppversionPublishResponse.go b/model/tvupadmin/YunosOsupdateAppversionPublishResponse.go deleted file mode 100644 index 302dadcc9d..0000000000 --- a/model/tvupadmin/YunosOsupdateAppversionPublishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发布应用升级 API返回值 -yunos.osupdate.appversion.publish - -发布应用升级任务 -*/ -type YunosOsupdateAppversionPublishAPIResponse struct { - model.CommonResponse - YunosOsupdateAppversionPublishResponse -} - -// 发布应用升级 成功返回结果 -type YunosOsupdateAppversionPublishResponse struct { - XMLName xml.Name `xml:"yunos_osupdate_appversion_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *YunosOsupdateAppversionPublishResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosOsupdateAppversionQueryAPIRequest.go b/model/tvupadmin/YunosOsupdateAppversionQueryAPIRequest.go new file mode 100644 index 0000000000..099838ccd4 --- /dev/null +++ b/model/tvupadmin/YunosOsupdateAppversionQueryAPIRequest.go @@ -0,0 +1,80 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页获取桌面升级任务 API请求 +yunos.osupdate.appversion.query + +分页获取桌面升级任务 +*/ +type YunosOsupdateAppversionQueryAPIRequest struct { + model.Params + // 应用ID + _appId int64 + // 页码值 + _page int64 + // 页大小 + _size int64 +} + +// 初始化YunosOsupdateAppversionQueryAPIRequest对象 +func NewYunosOsupdateAppversionQueryRequest() *YunosOsupdateAppversionQueryAPIRequest{ + return &YunosOsupdateAppversionQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosOsupdateAppversionQueryAPIRequest) GetApiMethodName() string { + return "yunos.osupdate.appversion.query" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosOsupdateAppversionQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppId Setter +// 应用ID +func (r *YunosOsupdateAppversionQueryAPIRequest) SetAppId(_appId int64) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r YunosOsupdateAppversionQueryAPIRequest) GetAppId() int64 { + return r._appId +} +// Page Setter +// 页码值 +func (r *YunosOsupdateAppversionQueryAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r YunosOsupdateAppversionQueryAPIRequest) GetPage() int64 { + return r._page +} +// Size Setter +// 页大小 +func (r *YunosOsupdateAppversionQueryAPIRequest) SetSize(_size int64) error { + r._size = _size + r.Set("size", _size) + return nil +} + +// Size Getter +func (r YunosOsupdateAppversionQueryAPIRequest) GetSize() int64 { + return r._size +} diff --git a/model/tvupadmin/YunosOsupdateAppversionQueryAPIResponse.go b/model/tvupadmin/YunosOsupdateAppversionQueryAPIResponse.go new file mode 100644 index 0000000000..4801d0a365 --- /dev/null +++ b/model/tvupadmin/YunosOsupdateAppversionQueryAPIResponse.go @@ -0,0 +1,29 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页获取桌面升级任务 API返回值 +yunos.osupdate.appversion.query + +分页获取桌面升级任务 +*/ +type YunosOsupdateAppversionQueryAPIResponse struct { + model.CommonResponse + YunosOsupdateAppversionQueryAPIResponseModel +} + +// 分页获取桌面升级任务 成功返回结果 +type YunosOsupdateAppversionQueryAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_osupdate_appversion_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // resultList + ResultList []TvAppVersion `json:"result_list,omitempty" xml:"result_list>tv_app_version,omitempty"` + // 总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/tvupadmin/YunosOsupdateAppversionQueryResponse.go b/model/tvupadmin/YunosOsupdateAppversionQueryResponse.go deleted file mode 100644 index 15abab6493..0000000000 --- a/model/tvupadmin/YunosOsupdateAppversionQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页获取桌面升级任务 API返回值 -yunos.osupdate.appversion.query - -分页获取桌面升级任务 -*/ -type YunosOsupdateAppversionQueryAPIResponse struct { - model.CommonResponse - YunosOsupdateAppversionQueryResponse -} - -// 分页获取桌面升级任务 成功返回结果 -type YunosOsupdateAppversionQueryResponse struct { - XMLName xml.Name `xml:"yunos_osupdate_appversion_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // resultList - ResultList []TvAppVersion `json:"result_list,omitempty" xml:"result_list>tv_app_version,omitempty"` - // 总数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/tvupadmin/YunosOsupdateAppversionUpdateAPIRequest.go b/model/tvupadmin/YunosOsupdateAppversionUpdateAPIRequest.go new file mode 100644 index 0000000000..88768c3b2f --- /dev/null +++ b/model/tvupadmin/YunosOsupdateAppversionUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +应用升级任务更新 API请求 +yunos.osupdate.appversion.update + +应用升级任务更新 +*/ +type YunosOsupdateAppversionUpdateAPIRequest struct { + model.Params + // 应用版本升级信息 + _appVersion *TvAppVersion +} + +// 初始化YunosOsupdateAppversionUpdateAPIRequest对象 +func NewYunosOsupdateAppversionUpdateRequest() *YunosOsupdateAppversionUpdateAPIRequest{ + return &YunosOsupdateAppversionUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosOsupdateAppversionUpdateAPIRequest) GetApiMethodName() string { + return "yunos.osupdate.appversion.update" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosOsupdateAppversionUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppVersion Setter +// 应用版本升级信息 +func (r *YunosOsupdateAppversionUpdateAPIRequest) SetAppVersion(_appVersion *TvAppVersion) error { + r._appVersion = _appVersion + r.Set("app_version", _appVersion) + return nil +} + +// AppVersion Getter +func (r YunosOsupdateAppversionUpdateAPIRequest) GetAppVersion() *TvAppVersion { + return r._appVersion +} diff --git a/model/tvupadmin/YunosOsupdateAppversionUpdateAPIResponse.go b/model/tvupadmin/YunosOsupdateAppversionUpdateAPIResponse.go new file mode 100644 index 0000000000..9ba399ab8b --- /dev/null +++ b/model/tvupadmin/YunosOsupdateAppversionUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +应用升级任务更新 API返回值 +yunos.osupdate.appversion.update + +应用升级任务更新 +*/ +type YunosOsupdateAppversionUpdateAPIResponse struct { + model.CommonResponse + YunosOsupdateAppversionUpdateAPIResponseModel +} + +// 应用升级任务更新 成功返回结果 +type YunosOsupdateAppversionUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_osupdate_appversion_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/tvupadmin/YunosOsupdateAppversionUpdateResponse.go b/model/tvupadmin/YunosOsupdateAppversionUpdateResponse.go deleted file mode 100644 index 5577ba063f..0000000000 --- a/model/tvupadmin/YunosOsupdateAppversionUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -应用升级任务更新 API返回值 -yunos.osupdate.appversion.update - -应用升级任务更新 -*/ -type YunosOsupdateAppversionUpdateAPIResponse struct { - model.CommonResponse - YunosOsupdateAppversionUpdateResponse -} - -// 应用升级任务更新 成功返回结果 -type YunosOsupdateAppversionUpdateResponse struct { - XMLName xml.Name `xml:"yunos_osupdate_appversion_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/tvupadmin/YunosOsupdateDeviceserviceSearchmodelsAPIRequest.go b/model/tvupadmin/YunosOsupdateDeviceserviceSearchmodelsAPIRequest.go new file mode 100644 index 0000000000..ec290b439f --- /dev/null +++ b/model/tvupadmin/YunosOsupdateDeviceserviceSearchmodelsAPIRequest.go @@ -0,0 +1,66 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据关键词检索设备型号 API请求 +yunos.osupdate.deviceservice.searchmodels + +根据关键词检索设备型号 +*/ +type YunosOsupdateDeviceserviceSearchmodelsAPIRequest struct { + model.Params + // 设备父ID + _parentId int64 + // 关键词 + _name string +} + +// 初始化YunosOsupdateDeviceserviceSearchmodelsAPIRequest对象 +func NewYunosOsupdateDeviceserviceSearchmodelsRequest() *YunosOsupdateDeviceserviceSearchmodelsAPIRequest{ + return &YunosOsupdateDeviceserviceSearchmodelsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosOsupdateDeviceserviceSearchmodelsAPIRequest) GetApiMethodName() string { + return "yunos.osupdate.deviceservice.searchmodels" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosOsupdateDeviceserviceSearchmodelsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParentId Setter +// 设备父ID +func (r *YunosOsupdateDeviceserviceSearchmodelsAPIRequest) SetParentId(_parentId int64) error { + r._parentId = _parentId + r.Set("parent_id", _parentId) + return nil +} + +// ParentId Getter +func (r YunosOsupdateDeviceserviceSearchmodelsAPIRequest) GetParentId() int64 { + return r._parentId +} +// Name Setter +// 关键词 +func (r *YunosOsupdateDeviceserviceSearchmodelsAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r YunosOsupdateDeviceserviceSearchmodelsAPIRequest) GetName() string { + return r._name +} diff --git a/model/tvupadmin/YunosOsupdateDeviceserviceSearchmodelsAPIResponse.go b/model/tvupadmin/YunosOsupdateDeviceserviceSearchmodelsAPIResponse.go new file mode 100644 index 0000000000..3bbcefbf48 --- /dev/null +++ b/model/tvupadmin/YunosOsupdateDeviceserviceSearchmodelsAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据关键词检索设备型号 API返回值 +yunos.osupdate.deviceservice.searchmodels + +根据关键词检索设备型号 +*/ +type YunosOsupdateDeviceserviceSearchmodelsAPIResponse struct { + model.CommonResponse + YunosOsupdateDeviceserviceSearchmodelsAPIResponseModel +} + +// 根据关键词检索设备型号 成功返回结果 +type YunosOsupdateDeviceserviceSearchmodelsAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_osupdate_deviceservice_searchmodels_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + ModelList []DeviceEntryDto `json:"model_list,omitempty" xml:"model_list>device_entry_dto,omitempty"` +} diff --git a/model/tvupadmin/YunosOsupdateDeviceserviceSearchmodelsResponse.go b/model/tvupadmin/YunosOsupdateDeviceserviceSearchmodelsResponse.go deleted file mode 100644 index a3c3c89084..0000000000 --- a/model/tvupadmin/YunosOsupdateDeviceserviceSearchmodelsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据关键词检索设备型号 API返回值 -yunos.osupdate.deviceservice.searchmodels - -根据关键词检索设备型号 -*/ -type YunosOsupdateDeviceserviceSearchmodelsAPIResponse struct { - model.CommonResponse - YunosOsupdateDeviceserviceSearchmodelsResponse -} - -// 根据关键词检索设备型号 成功返回结果 -type YunosOsupdateDeviceserviceSearchmodelsResponse struct { - XMLName xml.Name `xml:"yunos_osupdate_deviceservice_searchmodels_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - ModelList []DeviceEntryDto `json:"model_list,omitempty" xml:"model_list>device_entry_dto,omitempty"` -} diff --git a/model/tvupadmin/YunosOsupdateModelSearchAPIRequest.go b/model/tvupadmin/YunosOsupdateModelSearchAPIRequest.go new file mode 100644 index 0000000000..62bd59408d --- /dev/null +++ b/model/tvupadmin/YunosOsupdateModelSearchAPIRequest.go @@ -0,0 +1,66 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +机型检索 API请求 +yunos.osupdate.model.search + +机型检索 +*/ +type YunosOsupdateModelSearchAPIRequest struct { + model.Params + // 应用ID + _appId int64 + // 关键词 + _name string +} + +// 初始化YunosOsupdateModelSearchAPIRequest对象 +func NewYunosOsupdateModelSearchRequest() *YunosOsupdateModelSearchAPIRequest{ + return &YunosOsupdateModelSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosOsupdateModelSearchAPIRequest) GetApiMethodName() string { + return "yunos.osupdate.model.search" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosOsupdateModelSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppId Setter +// 应用ID +func (r *YunosOsupdateModelSearchAPIRequest) SetAppId(_appId int64) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r YunosOsupdateModelSearchAPIRequest) GetAppId() int64 { + return r._appId +} +// Name Setter +// 关键词 +func (r *YunosOsupdateModelSearchAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r YunosOsupdateModelSearchAPIRequest) GetName() string { + return r._name +} diff --git a/model/tvupadmin/YunosOsupdateModelSearchAPIResponse.go b/model/tvupadmin/YunosOsupdateModelSearchAPIResponse.go new file mode 100644 index 0000000000..9f22fc84c2 --- /dev/null +++ b/model/tvupadmin/YunosOsupdateModelSearchAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +机型检索 API返回值 +yunos.osupdate.model.search + +机型检索 +*/ +type YunosOsupdateModelSearchAPIResponse struct { + model.CommonResponse + YunosOsupdateModelSearchAPIResponseModel +} + +// 机型检索 成功返回结果 +type YunosOsupdateModelSearchAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_osupdate_model_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 机型列表 + ModelList []DeviceEntryDto `json:"model_list,omitempty" xml:"model_list>device_entry_dto,omitempty"` +} diff --git a/model/tvupadmin/YunosOsupdateModelSearchResponse.go b/model/tvupadmin/YunosOsupdateModelSearchResponse.go deleted file mode 100644 index 7d1f2f4fbd..0000000000 --- a/model/tvupadmin/YunosOsupdateModelSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -机型检索 API返回值 -yunos.osupdate.model.search - -机型检索 -*/ -type YunosOsupdateModelSearchAPIResponse struct { - model.CommonResponse - YunosOsupdateModelSearchResponse -} - -// 机型检索 成功返回结果 -type YunosOsupdateModelSearchResponse struct { - XMLName xml.Name `xml:"yunos_osupdate_model_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 机型列表 - ModelList []DeviceEntryDto `json:"model_list,omitempty" xml:"model_list>device_entry_dto,omitempty"` -} diff --git a/model/tvupadmin/YunosOsupdateOsfotaAddAPIRequest.go b/model/tvupadmin/YunosOsupdateOsfotaAddAPIRequest.go new file mode 100644 index 0000000000..02a938f07c --- /dev/null +++ b/model/tvupadmin/YunosOsupdateOsfotaAddAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加系统升级任务 API请求 +yunos.osupdate.osfota.add + +添加osupdate系统升级任务 +*/ +type YunosOsupdateOsfotaAddAPIRequest struct { + model.Params + // 系统升级任务json格式 + _osFotaJson string +} + +// 初始化YunosOsupdateOsfotaAddAPIRequest对象 +func NewYunosOsupdateOsfotaAddRequest() *YunosOsupdateOsfotaAddAPIRequest{ + return &YunosOsupdateOsfotaAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosOsupdateOsfotaAddAPIRequest) GetApiMethodName() string { + return "yunos.osupdate.osfota.add" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosOsupdateOsfotaAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OsFotaJson Setter +// 系统升级任务json格式 +func (r *YunosOsupdateOsfotaAddAPIRequest) SetOsFotaJson(_osFotaJson string) error { + r._osFotaJson = _osFotaJson + r.Set("os_fota_json", _osFotaJson) + return nil +} + +// OsFotaJson Getter +func (r YunosOsupdateOsfotaAddAPIRequest) GetOsFotaJson() string { + return r._osFotaJson +} diff --git a/model/tvupadmin/YunosOsupdateOsfotaAddAPIResponse.go b/model/tvupadmin/YunosOsupdateOsfotaAddAPIResponse.go new file mode 100644 index 0000000000..3a0164c809 --- /dev/null +++ b/model/tvupadmin/YunosOsupdateOsfotaAddAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加系统升级任务 API返回值 +yunos.osupdate.osfota.add + +添加osupdate系统升级任务 +*/ +type YunosOsupdateOsfotaAddAPIResponse struct { + model.CommonResponse + YunosOsupdateOsfotaAddAPIResponseModel +} + +// 添加系统升级任务 成功返回结果 +type YunosOsupdateOsfotaAddAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_osupdate_osfota_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *YunosOsupdateOsfotaAddResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosOsupdateOsfotaAddResponse.go b/model/tvupadmin/YunosOsupdateOsfotaAddResponse.go deleted file mode 100644 index db99e92b0d..0000000000 --- a/model/tvupadmin/YunosOsupdateOsfotaAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加系统升级任务 API返回值 -yunos.osupdate.osfota.add - -添加osupdate系统升级任务 -*/ -type YunosOsupdateOsfotaAddAPIResponse struct { - model.CommonResponse - YunosOsupdateOsfotaAddResponse -} - -// 添加系统升级任务 成功返回结果 -type YunosOsupdateOsfotaAddResponse struct { - XMLName xml.Name `xml:"yunos_osupdate_osfota_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *YunosOsupdateOsfotaAddResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosOsupdateOsfotaPublishAPIRequest.go b/model/tvupadmin/YunosOsupdateOsfotaPublishAPIRequest.go new file mode 100644 index 0000000000..70be25b5cd --- /dev/null +++ b/model/tvupadmin/YunosOsupdateOsfotaPublishAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +系统升级发布 API请求 +yunos.osupdate.osfota.publish + +发布osupdate系统升级任务 +*/ +type YunosOsupdateOsfotaPublishAPIRequest struct { + model.Params + // 入参json格式 + _publishJson string +} + +// 初始化YunosOsupdateOsfotaPublishAPIRequest对象 +func NewYunosOsupdateOsfotaPublishRequest() *YunosOsupdateOsfotaPublishAPIRequest{ + return &YunosOsupdateOsfotaPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosOsupdateOsfotaPublishAPIRequest) GetApiMethodName() string { + return "yunos.osupdate.osfota.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosOsupdateOsfotaPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PublishJson Setter +// 入参json格式 +func (r *YunosOsupdateOsfotaPublishAPIRequest) SetPublishJson(_publishJson string) error { + r._publishJson = _publishJson + r.Set("publish_json", _publishJson) + return nil +} + +// PublishJson Getter +func (r YunosOsupdateOsfotaPublishAPIRequest) GetPublishJson() string { + return r._publishJson +} diff --git a/model/tvupadmin/YunosOsupdateOsfotaPublishAPIResponse.go b/model/tvupadmin/YunosOsupdateOsfotaPublishAPIResponse.go new file mode 100644 index 0000000000..d06768728c --- /dev/null +++ b/model/tvupadmin/YunosOsupdateOsfotaPublishAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +系统升级发布 API返回值 +yunos.osupdate.osfota.publish + +发布osupdate系统升级任务 +*/ +type YunosOsupdateOsfotaPublishAPIResponse struct { + model.CommonResponse + YunosOsupdateOsfotaPublishAPIResponseModel +} + +// 系统升级发布 成功返回结果 +type YunosOsupdateOsfotaPublishAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_osupdate_osfota_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *YunosOsupdateOsfotaPublishResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosOsupdateOsfotaPublishResponse.go b/model/tvupadmin/YunosOsupdateOsfotaPublishResponse.go deleted file mode 100644 index 3b2c833892..0000000000 --- a/model/tvupadmin/YunosOsupdateOsfotaPublishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -系统升级发布 API返回值 -yunos.osupdate.osfota.publish - -发布osupdate系统升级任务 -*/ -type YunosOsupdateOsfotaPublishAPIResponse struct { - model.CommonResponse - YunosOsupdateOsfotaPublishResponse -} - -// 系统升级发布 成功返回结果 -type YunosOsupdateOsfotaPublishResponse struct { - XMLName xml.Name `xml:"yunos_osupdate_osfota_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *YunosOsupdateOsfotaPublishResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosOsupdateOsfotaQueryAPIRequest.go b/model/tvupadmin/YunosOsupdateOsfotaQueryAPIRequest.go new file mode 100644 index 0000000000..7117066a74 --- /dev/null +++ b/model/tvupadmin/YunosOsupdateOsfotaQueryAPIRequest.go @@ -0,0 +1,80 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +系统升级分页查询 API请求 +yunos.osupdate.osfota.query + +分页查询osoupdate系统升级列表 +*/ +type YunosOsupdateOsfotaQueryAPIRequest struct { + model.Params + // 设备型号ID + _modleId int64 + // 页码 + _page int64 + // 每页数量 + _pageSize int64 +} + +// 初始化YunosOsupdateOsfotaQueryAPIRequest对象 +func NewYunosOsupdateOsfotaQueryRequest() *YunosOsupdateOsfotaQueryAPIRequest{ + return &YunosOsupdateOsfotaQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosOsupdateOsfotaQueryAPIRequest) GetApiMethodName() string { + return "yunos.osupdate.osfota.query" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosOsupdateOsfotaQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ModleId Setter +// 设备型号ID +func (r *YunosOsupdateOsfotaQueryAPIRequest) SetModleId(_modleId int64) error { + r._modleId = _modleId + r.Set("modle_id", _modleId) + return nil +} + +// ModleId Getter +func (r YunosOsupdateOsfotaQueryAPIRequest) GetModleId() int64 { + return r._modleId +} +// Page Setter +// 页码 +func (r *YunosOsupdateOsfotaQueryAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r YunosOsupdateOsfotaQueryAPIRequest) GetPage() int64 { + return r._page +} +// PageSize Setter +// 每页数量 +func (r *YunosOsupdateOsfotaQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r YunosOsupdateOsfotaQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tvupadmin/YunosOsupdateOsfotaQueryAPIResponse.go b/model/tvupadmin/YunosOsupdateOsfotaQueryAPIResponse.go new file mode 100644 index 0000000000..c783c48a8f --- /dev/null +++ b/model/tvupadmin/YunosOsupdateOsfotaQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +系统升级分页查询 API返回值 +yunos.osupdate.osfota.query + +分页查询osoupdate系统升级列表 +*/ +type YunosOsupdateOsfotaQueryAPIResponse struct { + model.CommonResponse + YunosOsupdateOsfotaQueryAPIResponseModel +} + +// 系统升级分页查询 成功返回结果 +type YunosOsupdateOsfotaQueryAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_osupdate_osfota_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *YunosOsupdateOsfotaQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosOsupdateOsfotaQueryResponse.go b/model/tvupadmin/YunosOsupdateOsfotaQueryResponse.go deleted file mode 100644 index 7c4af7216f..0000000000 --- a/model/tvupadmin/YunosOsupdateOsfotaQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -系统升级分页查询 API返回值 -yunos.osupdate.osfota.query - -分页查询osoupdate系统升级列表 -*/ -type YunosOsupdateOsfotaQueryAPIResponse struct { - model.CommonResponse - YunosOsupdateOsfotaQueryResponse -} - -// 系统升级分页查询 成功返回结果 -type YunosOsupdateOsfotaQueryResponse struct { - XMLName xml.Name `xml:"yunos_osupdate_osfota_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *YunosOsupdateOsfotaQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosOsupdateVersionstatusUpdateAPIRequest.go b/model/tvupadmin/YunosOsupdateVersionstatusUpdateAPIRequest.go new file mode 100644 index 0000000000..353c6bf9f2 --- /dev/null +++ b/model/tvupadmin/YunosOsupdateVersionstatusUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新应用升级状态 API请求 +yunos.osupdate.versionstatus.update + +更新应用升级状态 +*/ +type YunosOsupdateVersionstatusUpdateAPIRequest struct { + model.Params + // 升级任务ID + _id int64 + // 状态值 + _status string +} + +// 初始化YunosOsupdateVersionstatusUpdateAPIRequest对象 +func NewYunosOsupdateVersionstatusUpdateRequest() *YunosOsupdateVersionstatusUpdateAPIRequest{ + return &YunosOsupdateVersionstatusUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosOsupdateVersionstatusUpdateAPIRequest) GetApiMethodName() string { + return "yunos.osupdate.versionstatus.update" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosOsupdateVersionstatusUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 升级任务ID +func (r *YunosOsupdateVersionstatusUpdateAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r YunosOsupdateVersionstatusUpdateAPIRequest) GetId() int64 { + return r._id +} +// Status Setter +// 状态值 +func (r *YunosOsupdateVersionstatusUpdateAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r YunosOsupdateVersionstatusUpdateAPIRequest) GetStatus() string { + return r._status +} diff --git a/model/tvupadmin/YunosOsupdateVersionstatusUpdateAPIResponse.go b/model/tvupadmin/YunosOsupdateVersionstatusUpdateAPIResponse.go new file mode 100644 index 0000000000..ca9975039a --- /dev/null +++ b/model/tvupadmin/YunosOsupdateVersionstatusUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新应用升级状态 API返回值 +yunos.osupdate.versionstatus.update + +更新应用升级状态 +*/ +type YunosOsupdateVersionstatusUpdateAPIResponse struct { + model.CommonResponse + YunosOsupdateVersionstatusUpdateAPIResponseModel +} + +// 更新应用升级状态 成功返回结果 +type YunosOsupdateVersionstatusUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_osupdate_versionstatus_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/tvupadmin/YunosOsupdateVersionstatusUpdateResponse.go b/model/tvupadmin/YunosOsupdateVersionstatusUpdateResponse.go deleted file mode 100644 index db942799ad..0000000000 --- a/model/tvupadmin/YunosOsupdateVersionstatusUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新应用升级状态 API返回值 -yunos.osupdate.versionstatus.update - -更新应用升级状态 -*/ -type YunosOsupdateVersionstatusUpdateAPIResponse struct { - model.CommonResponse - YunosOsupdateVersionstatusUpdateResponse -} - -// 更新应用升级状态 成功返回结果 -type YunosOsupdateVersionstatusUpdateResponse struct { - XMLName xml.Name `xml:"yunos_osupdate_versionstatus_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/tvupadmin/YunosPubadminCommonOperationAPIRequest.go b/model/tvupadmin/YunosPubadminCommonOperationAPIRequest.go new file mode 100644 index 0000000000..cecef8d0ca --- /dev/null +++ b/model/tvupadmin/YunosPubadminCommonOperationAPIRequest.go @@ -0,0 +1,80 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +内部迎客松通用服务 API请求 +yunos.pubadmin.common.operation + +内部迎客松通用服务 +*/ +type YunosPubadminCommonOperationAPIRequest struct { + model.Params + // 入参json串 + _parameter string + // 接口名 + _interfaceName string + // 方法名 + _methodName string +} + +// 初始化YunosPubadminCommonOperationAPIRequest对象 +func NewYunosPubadminCommonOperationRequest() *YunosPubadminCommonOperationAPIRequest{ + return &YunosPubadminCommonOperationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosPubadminCommonOperationAPIRequest) GetApiMethodName() string { + return "yunos.pubadmin.common.operation" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosPubadminCommonOperationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Parameter Setter +// 入参json串 +func (r *YunosPubadminCommonOperationAPIRequest) SetParameter(_parameter string) error { + r._parameter = _parameter + r.Set("parameter", _parameter) + return nil +} + +// Parameter Getter +func (r YunosPubadminCommonOperationAPIRequest) GetParameter() string { + return r._parameter +} +// InterfaceName Setter +// 接口名 +func (r *YunosPubadminCommonOperationAPIRequest) SetInterfaceName(_interfaceName string) error { + r._interfaceName = _interfaceName + r.Set("interface_name", _interfaceName) + return nil +} + +// InterfaceName Getter +func (r YunosPubadminCommonOperationAPIRequest) GetInterfaceName() string { + return r._interfaceName +} +// MethodName Setter +// 方法名 +func (r *YunosPubadminCommonOperationAPIRequest) SetMethodName(_methodName string) error { + r._methodName = _methodName + r.Set("method_name", _methodName) + return nil +} + +// MethodName Getter +func (r YunosPubadminCommonOperationAPIRequest) GetMethodName() string { + return r._methodName +} diff --git a/model/tvupadmin/YunosPubadminCommonOperationAPIResponse.go b/model/tvupadmin/YunosPubadminCommonOperationAPIResponse.go new file mode 100644 index 0000000000..cbf26adee6 --- /dev/null +++ b/model/tvupadmin/YunosPubadminCommonOperationAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +内部迎客松通用服务 API返回值 +yunos.pubadmin.common.operation + +内部迎客松通用服务 +*/ +type YunosPubadminCommonOperationAPIResponse struct { + model.CommonResponse + YunosPubadminCommonOperationAPIResponseModel +} + +// 内部迎客松通用服务 成功返回结果 +type YunosPubadminCommonOperationAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_pubadmin_common_operation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回结果 + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosPubadminCommonOperationResponse.go b/model/tvupadmin/YunosPubadminCommonOperationResponse.go deleted file mode 100644 index 710a97c261..0000000000 --- a/model/tvupadmin/YunosPubadminCommonOperationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -内部迎客松通用服务 API返回值 -yunos.pubadmin.common.operation - -内部迎客松通用服务 -*/ -type YunosPubadminCommonOperationAPIResponse struct { - model.CommonResponse - YunosPubadminCommonOperationResponse -} - -// 内部迎客松通用服务 成功返回结果 -type YunosPubadminCommonOperationResponse struct { - XMLName xml.Name `xml:"yunos_pubadmin_common_operation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回结果 - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTradeAdminCommonOperationAPIRequest.go b/model/tvupadmin/YunosTradeAdminCommonOperationAPIRequest.go new file mode 100644 index 0000000000..19ab5d1fb2 --- /dev/null +++ b/model/tvupadmin/YunosTradeAdminCommonOperationAPIRequest.go @@ -0,0 +1,80 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +交易迎客松通用服务接口 API请求 +yunos.trade.admin.common.operation + +迎客松交易相关通用接口 +*/ +type YunosTradeAdminCommonOperationAPIRequest struct { + model.Params + // 入参数据,json格式 + _parameter string + // 调用方法 + _methodName string + // 调用接口 + _interfaceName string +} + +// 初始化YunosTradeAdminCommonOperationAPIRequest对象 +func NewYunosTradeAdminCommonOperationRequest() *YunosTradeAdminCommonOperationAPIRequest{ + return &YunosTradeAdminCommonOperationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTradeAdminCommonOperationAPIRequest) GetApiMethodName() string { + return "yunos.trade.admin.common.operation" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTradeAdminCommonOperationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Parameter Setter +// 入参数据,json格式 +func (r *YunosTradeAdminCommonOperationAPIRequest) SetParameter(_parameter string) error { + r._parameter = _parameter + r.Set("parameter", _parameter) + return nil +} + +// Parameter Getter +func (r YunosTradeAdminCommonOperationAPIRequest) GetParameter() string { + return r._parameter +} +// MethodName Setter +// 调用方法 +func (r *YunosTradeAdminCommonOperationAPIRequest) SetMethodName(_methodName string) error { + r._methodName = _methodName + r.Set("method_name", _methodName) + return nil +} + +// MethodName Getter +func (r YunosTradeAdminCommonOperationAPIRequest) GetMethodName() string { + return r._methodName +} +// InterfaceName Setter +// 调用接口 +func (r *YunosTradeAdminCommonOperationAPIRequest) SetInterfaceName(_interfaceName string) error { + r._interfaceName = _interfaceName + r.Set("interface_name", _interfaceName) + return nil +} + +// InterfaceName Getter +func (r YunosTradeAdminCommonOperationAPIRequest) GetInterfaceName() string { + return r._interfaceName +} diff --git a/model/tvupadmin/YunosTradeAdminCommonOperationAPIResponse.go b/model/tvupadmin/YunosTradeAdminCommonOperationAPIResponse.go new file mode 100644 index 0000000000..d759786ab3 --- /dev/null +++ b/model/tvupadmin/YunosTradeAdminCommonOperationAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +交易迎客松通用服务接口 API返回值 +yunos.trade.admin.common.operation + +迎客松交易相关通用接口 +*/ +type YunosTradeAdminCommonOperationAPIResponse struct { + model.CommonResponse + YunosTradeAdminCommonOperationAPIResponseModel +} + +// 交易迎客松通用服务接口 成功返回结果 +type YunosTradeAdminCommonOperationAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_trade_admin_common_operation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTradeAdminCommonOperationResponse.go b/model/tvupadmin/YunosTradeAdminCommonOperationResponse.go deleted file mode 100644 index db0197af95..0000000000 --- a/model/tvupadmin/YunosTradeAdminCommonOperationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -交易迎客松通用服务接口 API返回值 -yunos.trade.admin.common.operation - -迎客松交易相关通用接口 -*/ -type YunosTradeAdminCommonOperationAPIResponse struct { - model.CommonResponse - YunosTradeAdminCommonOperationResponse -} - -// 交易迎客松通用服务接口 成功返回结果 -type YunosTradeAdminCommonOperationResponse struct { - XMLName xml.Name `xml:"yunos_trade_admin_common_operation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvmbosCommonOperationAPIRequest.go b/model/tvupadmin/YunosTvmbosCommonOperationAPIRequest.go new file mode 100644 index 0000000000..d948d057dd --- /dev/null +++ b/model/tvupadmin/YunosTvmbosCommonOperationAPIRequest.go @@ -0,0 +1,80 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +应用中心通用服务接口 API请求 +yunos.tvmbos.common.operation + +应用中心相关接口的代理 +*/ +type YunosTvmbosCommonOperationAPIRequest struct { + model.Params + // 接口名 + _interfaceName string + // 方法名 + _methodName string + // 入参,json格式 + _parameter string +} + +// 初始化YunosTvmbosCommonOperationAPIRequest对象 +func NewYunosTvmbosCommonOperationRequest() *YunosTvmbosCommonOperationAPIRequest{ + return &YunosTvmbosCommonOperationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvmbosCommonOperationAPIRequest) GetApiMethodName() string { + return "yunos.tvmbos.common.operation" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvmbosCommonOperationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InterfaceName Setter +// 接口名 +func (r *YunosTvmbosCommonOperationAPIRequest) SetInterfaceName(_interfaceName string) error { + r._interfaceName = _interfaceName + r.Set("interface_name", _interfaceName) + return nil +} + +// InterfaceName Getter +func (r YunosTvmbosCommonOperationAPIRequest) GetInterfaceName() string { + return r._interfaceName +} +// MethodName Setter +// 方法名 +func (r *YunosTvmbosCommonOperationAPIRequest) SetMethodName(_methodName string) error { + r._methodName = _methodName + r.Set("method_name", _methodName) + return nil +} + +// MethodName Getter +func (r YunosTvmbosCommonOperationAPIRequest) GetMethodName() string { + return r._methodName +} +// Parameter Setter +// 入参,json格式 +func (r *YunosTvmbosCommonOperationAPIRequest) SetParameter(_parameter string) error { + r._parameter = _parameter + r.Set("parameter", _parameter) + return nil +} + +// Parameter Getter +func (r YunosTvmbosCommonOperationAPIRequest) GetParameter() string { + return r._parameter +} diff --git a/model/tvupadmin/YunosTvmbosCommonOperationAPIResponse.go b/model/tvupadmin/YunosTvmbosCommonOperationAPIResponse.go new file mode 100644 index 0000000000..a5d7902f8b --- /dev/null +++ b/model/tvupadmin/YunosTvmbosCommonOperationAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +应用中心通用服务接口 API返回值 +yunos.tvmbos.common.operation + +应用中心相关接口的代理 +*/ +type YunosTvmbosCommonOperationAPIResponse struct { + model.CommonResponse + YunosTvmbosCommonOperationAPIResponseModel +} + +// 应用中心通用服务接口 成功返回结果 +type YunosTvmbosCommonOperationAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvmbos_common_operation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回结果 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvmbosCommonOperationResponse.go b/model/tvupadmin/YunosTvmbosCommonOperationResponse.go deleted file mode 100644 index edbf46e89f..0000000000 --- a/model/tvupadmin/YunosTvmbosCommonOperationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -应用中心通用服务接口 API返回值 -yunos.tvmbos.common.operation - -应用中心相关接口的代理 -*/ -type YunosTvmbosCommonOperationAPIResponse struct { - model.CommonResponse - YunosTvmbosCommonOperationResponse -} - -// 应用中心通用服务接口 成功返回结果 -type YunosTvmbosCommonOperationResponse struct { - XMLName xml.Name `xml:"yunos_tvmbos_common_operation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回结果 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminAdmOttAuditAPIRequest.go b/model/tvupadmin/YunosTvpubadminAdmOttAuditAPIRequest.go new file mode 100644 index 0000000000..eb90def72b --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminAdmOttAuditAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +优酷OTT广告素材审核 API请求 +yunos.tvpubadmin.adm.ott.audit + +审核优酷OTT端广告素材 +*/ +type YunosTvpubadminAdmOttAuditAPIRequest struct { + model.Params + // 广告审核内容,json格式 + _data string +} + +// 初始化YunosTvpubadminAdmOttAuditAPIRequest对象 +func NewYunosTvpubadminAdmOttAuditRequest() *YunosTvpubadminAdmOttAuditAPIRequest{ + return &YunosTvpubadminAdmOttAuditAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminAdmOttAuditAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.adm.ott.audit" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminAdmOttAuditAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Data Setter +// 广告审核内容,json格式 +func (r *YunosTvpubadminAdmOttAuditAPIRequest) SetData(_data string) error { + r._data = _data + r.Set("data", _data) + return nil +} + +// Data Getter +func (r YunosTvpubadminAdmOttAuditAPIRequest) GetData() string { + return r._data +} diff --git a/model/tvupadmin/YunosTvpubadminAdmOttAuditAPIResponse.go b/model/tvupadmin/YunosTvpubadminAdmOttAuditAPIResponse.go new file mode 100644 index 0000000000..246c3ea6db --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminAdmOttAuditAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +优酷OTT广告素材审核 API返回值 +yunos.tvpubadmin.adm.ott.audit + +审核优酷OTT端广告素材 +*/ +type YunosTvpubadminAdmOttAuditAPIResponse struct { + model.CommonResponse + YunosTvpubadminAdmOttAuditAPIResponseModel +} + +// 优酷OTT广告素材审核 成功返回结果 +type YunosTvpubadminAdmOttAuditAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_adm_ott_audit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的操作结果 + Object bool `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminAdmOttAuditResponse.go b/model/tvupadmin/YunosTvpubadminAdmOttAuditResponse.go deleted file mode 100644 index dc9b9d2751..0000000000 --- a/model/tvupadmin/YunosTvpubadminAdmOttAuditResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -优酷OTT广告素材审核 API返回值 -yunos.tvpubadmin.adm.ott.audit - -审核优酷OTT端广告素材 -*/ -type YunosTvpubadminAdmOttAuditAPIResponse struct { - model.CommonResponse - YunosTvpubadminAdmOttAuditResponse -} - -// 优酷OTT广告素材审核 成功返回结果 -type YunosTvpubadminAdmOttAuditResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_adm_ott_audit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的操作结果 - Object bool `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminAdmOttQueryAPIRequest.go b/model/tvupadmin/YunosTvpubadminAdmOttQueryAPIRequest.go new file mode 100644 index 0000000000..4ec2f4e8a2 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminAdmOttQueryAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +优酷OTT端广告素材查询 API请求 +yunos.tvpubadmin.adm.ott.query + +查询广告素材 +*/ +type YunosTvpubadminAdmOttQueryAPIRequest struct { + model.Params + // 查询参数json格式 + _query string +} + +// 初始化YunosTvpubadminAdmOttQueryAPIRequest对象 +func NewYunosTvpubadminAdmOttQueryRequest() *YunosTvpubadminAdmOttQueryAPIRequest{ + return &YunosTvpubadminAdmOttQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminAdmOttQueryAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.adm.ott.query" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminAdmOttQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 查询参数json格式 +func (r *YunosTvpubadminAdmOttQueryAPIRequest) SetQuery(_query string) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r YunosTvpubadminAdmOttQueryAPIRequest) GetQuery() string { + return r._query +} diff --git a/model/tvupadmin/YunosTvpubadminAdmOttQueryAPIResponse.go b/model/tvupadmin/YunosTvpubadminAdmOttQueryAPIResponse.go new file mode 100644 index 0000000000..c752f0e689 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminAdmOttQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +优酷OTT端广告素材查询 API返回值 +yunos.tvpubadmin.adm.ott.query + +查询广告素材 +*/ +type YunosTvpubadminAdmOttQueryAPIResponse struct { + model.CommonResponse + YunosTvpubadminAdmOttQueryAPIResponseModel +} + +// 优酷OTT端广告素材查询 成功返回结果 +type YunosTvpubadminAdmOttQueryAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_adm_ott_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据详情,json格式 + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminAdmOttQueryResponse.go b/model/tvupadmin/YunosTvpubadminAdmOttQueryResponse.go deleted file mode 100644 index 0505e5947b..0000000000 --- a/model/tvupadmin/YunosTvpubadminAdmOttQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -优酷OTT端广告素材查询 API返回值 -yunos.tvpubadmin.adm.ott.query - -查询广告素材 -*/ -type YunosTvpubadminAdmOttQueryAPIResponse struct { - model.CommonResponse - YunosTvpubadminAdmOttQueryResponse -} - -// 优酷OTT端广告素材查询 成功返回结果 -type YunosTvpubadminAdmOttQueryResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_adm_ott_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据详情,json格式 - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminCommonFileUploadAPIRequest.go b/model/tvupadmin/YunosTvpubadminCommonFileUploadAPIRequest.go new file mode 100644 index 0000000000..41f2caec26 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminCommonFileUploadAPIRequest.go @@ -0,0 +1,108 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +文件上传API API请求 +yunos.tvpubadmin.common.file.upload + +文件上传服务 +*/ +type YunosTvpubadminCommonFileUploadAPIRequest struct { + model.Params + // 文件字节流 + _bytes *model.File + // 原文件名 + _originalFilename string + // 文件大小 + _size string + // 文件类型 + _contentType string + // 上传地址 + _uploadPath string +} + +// 初始化YunosTvpubadminCommonFileUploadAPIRequest对象 +func NewYunosTvpubadminCommonFileUploadRequest() *YunosTvpubadminCommonFileUploadAPIRequest{ + return &YunosTvpubadminCommonFileUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminCommonFileUploadAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.common.file.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminCommonFileUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Bytes Setter +// 文件字节流 +func (r *YunosTvpubadminCommonFileUploadAPIRequest) SetBytes(_bytes *model.File) error { + r._bytes = _bytes + r.Set("bytes", _bytes) + return nil +} + +// Bytes Getter +func (r YunosTvpubadminCommonFileUploadAPIRequest) GetBytes() *model.File { + return r._bytes +} +// OriginalFilename Setter +// 原文件名 +func (r *YunosTvpubadminCommonFileUploadAPIRequest) SetOriginalFilename(_originalFilename string) error { + r._originalFilename = _originalFilename + r.Set("original_filename", _originalFilename) + return nil +} + +// OriginalFilename Getter +func (r YunosTvpubadminCommonFileUploadAPIRequest) GetOriginalFilename() string { + return r._originalFilename +} +// Size Setter +// 文件大小 +func (r *YunosTvpubadminCommonFileUploadAPIRequest) SetSize(_size string) error { + r._size = _size + r.Set("size", _size) + return nil +} + +// Size Getter +func (r YunosTvpubadminCommonFileUploadAPIRequest) GetSize() string { + return r._size +} +// ContentType Setter +// 文件类型 +func (r *YunosTvpubadminCommonFileUploadAPIRequest) SetContentType(_contentType string) error { + r._contentType = _contentType + r.Set("content_type", _contentType) + return nil +} + +// ContentType Getter +func (r YunosTvpubadminCommonFileUploadAPIRequest) GetContentType() string { + return r._contentType +} +// UploadPath Setter +// 上传地址 +func (r *YunosTvpubadminCommonFileUploadAPIRequest) SetUploadPath(_uploadPath string) error { + r._uploadPath = _uploadPath + r.Set("upload_path", _uploadPath) + return nil +} + +// UploadPath Getter +func (r YunosTvpubadminCommonFileUploadAPIRequest) GetUploadPath() string { + return r._uploadPath +} diff --git a/model/tvupadmin/YunosTvpubadminCommonFileUploadAPIResponse.go b/model/tvupadmin/YunosTvpubadminCommonFileUploadAPIResponse.go new file mode 100644 index 0000000000..bc747452be --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminCommonFileUploadAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +文件上传API API返回值 +yunos.tvpubadmin.common.file.upload + +文件上传服务 +*/ +type YunosTvpubadminCommonFileUploadAPIResponse struct { + model.CommonResponse + YunosTvpubadminCommonFileUploadAPIResponseModel +} + +// 文件上传API 成功返回结果 +type YunosTvpubadminCommonFileUploadAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_common_file_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 上传后的文件地址 + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminCommonFileUploadResponse.go b/model/tvupadmin/YunosTvpubadminCommonFileUploadResponse.go deleted file mode 100644 index 68cbdaaf75..0000000000 --- a/model/tvupadmin/YunosTvpubadminCommonFileUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -文件上传API API返回值 -yunos.tvpubadmin.common.file.upload - -文件上传服务 -*/ -type YunosTvpubadminCommonFileUploadAPIResponse struct { - model.CommonResponse - YunosTvpubadminCommonFileUploadResponse -} - -// 文件上传API 成功返回结果 -type YunosTvpubadminCommonFileUploadResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_common_file_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 上传后的文件地址 - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentAdvertGettypesAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentAdvertGettypesAPIRequest.go new file mode 100644 index 0000000000..a519e2c690 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentAdvertGettypesAPIRequest.go @@ -0,0 +1,38 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取广告位类型 API请求 +yunos.tvpubadmin.content.advert.gettypes + +获取广告位类型 +*/ +type YunosTvpubadminContentAdvertGettypesAPIRequest struct { + model.Params +} + +// 初始化YunosTvpubadminContentAdvertGettypesAPIRequest对象 +func NewYunosTvpubadminContentAdvertGettypesRequest() *YunosTvpubadminContentAdvertGettypesAPIRequest{ + return &YunosTvpubadminContentAdvertGettypesAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentAdvertGettypesAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.advert.gettypes" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentAdvertGettypesAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/tvupadmin/YunosTvpubadminContentAdvertGettypesAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentAdvertGettypesAPIResponse.go new file mode 100644 index 0000000000..a468fd93bd --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentAdvertGettypesAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取广告位类型 API返回值 +yunos.tvpubadmin.content.advert.gettypes + +获取广告位类型 +*/ +type YunosTvpubadminContentAdvertGettypesAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentAdvertGettypesAPIResponseModel +} + +// 获取广告位类型 成功返回结果 +type YunosTvpubadminContentAdvertGettypesAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_advert_gettypes_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Map json格式 + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentAdvertGettypesResponse.go b/model/tvupadmin/YunosTvpubadminContentAdvertGettypesResponse.go deleted file mode 100644 index f55a4444ed..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentAdvertGettypesResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取广告位类型 API返回值 -yunos.tvpubadmin.content.advert.gettypes - -获取广告位类型 -*/ -type YunosTvpubadminContentAdvertGettypesAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentAdvertGettypesResponse -} - -// 获取广告位类型 成功返回结果 -type YunosTvpubadminContentAdvertGettypesResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_advert_gettypes_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Map json格式 - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentAdvertManagescheduleAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentAdvertManagescheduleAPIRequest.go new file mode 100644 index 0000000000..6a336b1c3f --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentAdvertManagescheduleAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +广告牌照管控修改 API请求 +yunos.tvpubadmin.content.advert.manageschedule + +广告牌照管控修改 +*/ +type YunosTvpubadminContentAdvertManagescheduleAPIRequest struct { + model.Params + // 管理参数 + _req string +} + +// 初始化YunosTvpubadminContentAdvertManagescheduleAPIRequest对象 +func NewYunosTvpubadminContentAdvertManagescheduleRequest() *YunosTvpubadminContentAdvertManagescheduleAPIRequest{ + return &YunosTvpubadminContentAdvertManagescheduleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentAdvertManagescheduleAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.advert.manageschedule" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentAdvertManagescheduleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Req Setter +// 管理参数 +func (r *YunosTvpubadminContentAdvertManagescheduleAPIRequest) SetReq(_req string) error { + r._req = _req + r.Set("req", _req) + return nil +} + +// Req Getter +func (r YunosTvpubadminContentAdvertManagescheduleAPIRequest) GetReq() string { + return r._req +} diff --git a/model/tvupadmin/YunosTvpubadminContentAdvertManagescheduleAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentAdvertManagescheduleAPIResponse.go new file mode 100644 index 0000000000..b3257710ad --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentAdvertManagescheduleAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +广告牌照管控修改 API返回值 +yunos.tvpubadmin.content.advert.manageschedule + +广告牌照管控修改 +*/ +type YunosTvpubadminContentAdvertManagescheduleAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentAdvertManagescheduleAPIResponseModel +} + +// 广告牌照管控修改 成功返回结果 +type YunosTvpubadminContentAdvertManagescheduleAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_advert_manageschedule_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 管理广告排期 + Object int64 `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentAdvertManagescheduleResponse.go b/model/tvupadmin/YunosTvpubadminContentAdvertManagescheduleResponse.go deleted file mode 100644 index a3a20f0553..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentAdvertManagescheduleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -广告牌照管控修改 API返回值 -yunos.tvpubadmin.content.advert.manageschedule - -广告牌照管控修改 -*/ -type YunosTvpubadminContentAdvertManagescheduleAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentAdvertManagescheduleResponse -} - -// 广告牌照管控修改 成功返回结果 -type YunosTvpubadminContentAdvertManagescheduleResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_advert_manageschedule_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 管理广告排期 - Object int64 `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentAdvertQueryscheduleAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentAdvertQueryscheduleAPIRequest.go new file mode 100644 index 0000000000..20555922b9 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentAdvertQueryscheduleAPIRequest.go @@ -0,0 +1,136 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +广告牌照管控查询 API请求 +yunos.tvpubadmin.content.advert.queryschedule + +广告牌照管控查询 +*/ +type YunosTvpubadminContentAdvertQueryscheduleAPIRequest struct { + model.Params + // 查询范围: 1-牌照,4-uuid + _range int64 + // 分页,页码 + _pageNo int64 + // 分页,单页数量 + _pageSize int64 + // 日期 + _gmtStart string + // uuid + _uuid string + // 牌照方,1-华数,7-CIBN + _license int64 + // 广告类型 + _sityType int64 +} + +// 初始化YunosTvpubadminContentAdvertQueryscheduleAPIRequest对象 +func NewYunosTvpubadminContentAdvertQueryscheduleRequest() *YunosTvpubadminContentAdvertQueryscheduleAPIRequest{ + return &YunosTvpubadminContentAdvertQueryscheduleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentAdvertQueryscheduleAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.advert.queryschedule" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentAdvertQueryscheduleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Range Setter +// 查询范围: 1-牌照,4-uuid +func (r *YunosTvpubadminContentAdvertQueryscheduleAPIRequest) SetRange(_range int64) error { + r._range = _range + r.Set("range", _range) + return nil +} + +// Range Getter +func (r YunosTvpubadminContentAdvertQueryscheduleAPIRequest) GetRange() int64 { + return r._range +} +// PageNo Setter +// 分页,页码 +func (r *YunosTvpubadminContentAdvertQueryscheduleAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r YunosTvpubadminContentAdvertQueryscheduleAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 分页,单页数量 +func (r *YunosTvpubadminContentAdvertQueryscheduleAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r YunosTvpubadminContentAdvertQueryscheduleAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// GmtStart Setter +// 日期 +func (r *YunosTvpubadminContentAdvertQueryscheduleAPIRequest) SetGmtStart(_gmtStart string) error { + r._gmtStart = _gmtStart + r.Set("gmt_start", _gmtStart) + return nil +} + +// GmtStart Getter +func (r YunosTvpubadminContentAdvertQueryscheduleAPIRequest) GetGmtStart() string { + return r._gmtStart +} +// Uuid Setter +// uuid +func (r *YunosTvpubadminContentAdvertQueryscheduleAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r YunosTvpubadminContentAdvertQueryscheduleAPIRequest) GetUuid() string { + return r._uuid +} +// License Setter +// 牌照方,1-华数,7-CIBN +func (r *YunosTvpubadminContentAdvertQueryscheduleAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminContentAdvertQueryscheduleAPIRequest) GetLicense() int64 { + return r._license +} +// SityType Setter +// 广告类型 +func (r *YunosTvpubadminContentAdvertQueryscheduleAPIRequest) SetSityType(_sityType int64) error { + r._sityType = _sityType + r.Set("sity_type", _sityType) + return nil +} + +// SityType Getter +func (r YunosTvpubadminContentAdvertQueryscheduleAPIRequest) GetSityType() int64 { + return r._sityType +} diff --git a/model/tvupadmin/YunosTvpubadminContentAdvertQueryscheduleAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentAdvertQueryscheduleAPIResponse.go new file mode 100644 index 0000000000..eb78c59571 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentAdvertQueryscheduleAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +广告牌照管控查询 API返回值 +yunos.tvpubadmin.content.advert.queryschedule + +广告牌照管控查询 +*/ +type YunosTvpubadminContentAdvertQueryscheduleAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentAdvertQueryscheduleAPIResponseModel +} + +// 广告牌照管控查询 成功返回结果 +type YunosTvpubadminContentAdvertQueryscheduleAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_advert_queryschedule_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 具体数据信息 + Object *PaginationDo `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentAdvertQueryscheduleResponse.go b/model/tvupadmin/YunosTvpubadminContentAdvertQueryscheduleResponse.go deleted file mode 100644 index 4cb69213f8..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentAdvertQueryscheduleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -广告牌照管控查询 API返回值 -yunos.tvpubadmin.content.advert.queryschedule - -广告牌照管控查询 -*/ -type YunosTvpubadminContentAdvertQueryscheduleAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentAdvertQueryscheduleResponse -} - -// 广告牌照管控查询 成功返回结果 -type YunosTvpubadminContentAdvertQueryscheduleResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_advert_queryschedule_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 具体数据信息 - Object *PaginationDo `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentAppOnoffappbylicenseAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentAppOnoffappbylicenseAPIRequest.go new file mode 100644 index 0000000000..d9b94d2401 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentAppOnoffappbylicenseAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +应用上下架操作 API请求 +yunos.tvpubadmin.content.app.onoffappbylicense + +应用上下架操作 +*/ +type YunosTvpubadminContentAppOnoffappbylicenseAPIRequest struct { + model.Params + // com.ali.yunos.tvacs.domain.OnOffApp + _onOffApp string +} + +// 初始化YunosTvpubadminContentAppOnoffappbylicenseAPIRequest对象 +func NewYunosTvpubadminContentAppOnoffappbylicenseRequest() *YunosTvpubadminContentAppOnoffappbylicenseAPIRequest{ + return &YunosTvpubadminContentAppOnoffappbylicenseAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentAppOnoffappbylicenseAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.app.onoffappbylicense" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentAppOnoffappbylicenseAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OnOffApp Setter +// com.ali.yunos.tvacs.domain.OnOffApp +func (r *YunosTvpubadminContentAppOnoffappbylicenseAPIRequest) SetOnOffApp(_onOffApp string) error { + r._onOffApp = _onOffApp + r.Set("on_off_app", _onOffApp) + return nil +} + +// OnOffApp Getter +func (r YunosTvpubadminContentAppOnoffappbylicenseAPIRequest) GetOnOffApp() string { + return r._onOffApp +} diff --git a/model/tvupadmin/YunosTvpubadminContentAppOnoffappbylicenseAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentAppOnoffappbylicenseAPIResponse.go new file mode 100644 index 0000000000..2e6813848a --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentAppOnoffappbylicenseAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +应用上下架操作 API返回值 +yunos.tvpubadmin.content.app.onoffappbylicense + +应用上下架操作 +*/ +type YunosTvpubadminContentAppOnoffappbylicenseAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentAppOnoffappbylicenseAPIResponseModel +} + +// 应用上下架操作 成功返回结果 +type YunosTvpubadminContentAppOnoffappbylicenseAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_app_onoffappbylicense_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true/false + Object bool `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentAppOnoffappbylicenseResponse.go b/model/tvupadmin/YunosTvpubadminContentAppOnoffappbylicenseResponse.go deleted file mode 100644 index dd8ebd9d5b..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentAppOnoffappbylicenseResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -应用上下架操作 API返回值 -yunos.tvpubadmin.content.app.onoffappbylicense - -应用上下架操作 -*/ -type YunosTvpubadminContentAppOnoffappbylicenseAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentAppOnoffappbylicenseResponse -} - -// 应用上下架操作 成功返回结果 -type YunosTvpubadminContentAppOnoffappbylicenseResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_app_onoffappbylicense_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true/false - Object bool `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentAppQueryappAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentAppQueryappAPIRequest.go new file mode 100644 index 0000000000..f0c55984cf --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentAppQueryappAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询应用信息 API请求 +yunos.tvpubadmin.content.app.queryapp + +查询应用信息 +*/ +type YunosTvpubadminContentAppQueryappAPIRequest struct { + model.Params + // 查询条件 + _query string +} + +// 初始化YunosTvpubadminContentAppQueryappAPIRequest对象 +func NewYunosTvpubadminContentAppQueryappRequest() *YunosTvpubadminContentAppQueryappAPIRequest{ + return &YunosTvpubadminContentAppQueryappAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentAppQueryappAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.app.queryapp" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentAppQueryappAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 查询条件 +func (r *YunosTvpubadminContentAppQueryappAPIRequest) SetQuery(_query string) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r YunosTvpubadminContentAppQueryappAPIRequest) GetQuery() string { + return r._query +} diff --git a/model/tvupadmin/YunosTvpubadminContentAppQueryappAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentAppQueryappAPIResponse.go new file mode 100644 index 0000000000..6dd51a18b8 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentAppQueryappAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询应用信息 API返回值 +yunos.tvpubadmin.content.app.queryapp + +查询应用信息 +*/ +type YunosTvpubadminContentAppQueryappAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentAppQueryappAPIResponseModel +} + +// 查询应用信息 成功返回结果 +type YunosTvpubadminContentAppQueryappAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_app_queryapp_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Result + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentAppQueryappResponse.go b/model/tvupadmin/YunosTvpubadminContentAppQueryappResponse.go deleted file mode 100644 index cd27b50f05..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentAppQueryappResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询应用信息 API返回值 -yunos.tvpubadmin.content.app.queryapp - -查询应用信息 -*/ -type YunosTvpubadminContentAppQueryappAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentAppQueryappResponse -} - -// 查询应用信息 成功返回结果 -type YunosTvpubadminContentAppQueryappResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_app_queryapp_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Result - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentAppQuerybylicenceAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentAppQuerybylicenceAPIRequest.go new file mode 100644 index 0000000000..86e4b3435a --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentAppQuerybylicenceAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +按牌照查询应用 API请求 +yunos.tvpubadmin.content.app.querybylicence + +按牌照查询应用 +*/ +type YunosTvpubadminContentAppQuerybylicenceAPIRequest struct { + model.Params + // 查询条件 + _query string +} + +// 初始化YunosTvpubadminContentAppQuerybylicenceAPIRequest对象 +func NewYunosTvpubadminContentAppQuerybylicenceRequest() *YunosTvpubadminContentAppQuerybylicenceAPIRequest{ + return &YunosTvpubadminContentAppQuerybylicenceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentAppQuerybylicenceAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.app.querybylicence" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentAppQuerybylicenceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 查询条件 +func (r *YunosTvpubadminContentAppQuerybylicenceAPIRequest) SetQuery(_query string) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r YunosTvpubadminContentAppQuerybylicenceAPIRequest) GetQuery() string { + return r._query +} diff --git a/model/tvupadmin/YunosTvpubadminContentAppQuerybylicenceAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentAppQuerybylicenceAPIResponse.go new file mode 100644 index 0000000000..02bc3adf87 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentAppQuerybylicenceAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +按牌照查询应用 API返回值 +yunos.tvpubadmin.content.app.querybylicence + +按牌照查询应用 +*/ +type YunosTvpubadminContentAppQuerybylicenceAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentAppQuerybylicenceAPIResponseModel +} + +// 按牌照查询应用 成功返回结果 +type YunosTvpubadminContentAppQuerybylicenceAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_app_querybylicence_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // Result + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentAppQuerybylicenceResponse.go b/model/tvupadmin/YunosTvpubadminContentAppQuerybylicenceResponse.go deleted file mode 100644 index 249cfc9a98..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentAppQuerybylicenceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -按牌照查询应用 API返回值 -yunos.tvpubadmin.content.app.querybylicence - -按牌照查询应用 -*/ -type YunosTvpubadminContentAppQuerybylicenceAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentAppQuerybylicenceResponse -} - -// 按牌照查询应用 成功返回结果 -type YunosTvpubadminContentAppQuerybylicenceResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_app_querybylicence_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // Result - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentChannelOfflineAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentChannelOfflineAPIRequest.go new file mode 100644 index 0000000000..c79a858d2a --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentChannelOfflineAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松影视频道下线 API请求 +yunos.tvpubadmin.content.channel.offline + +迎客松影视频道下线 +*/ +type YunosTvpubadminContentChannelOfflineAPIRequest struct { + model.Params + // id + _id int64 +} + +// 初始化YunosTvpubadminContentChannelOfflineAPIRequest对象 +func NewYunosTvpubadminContentChannelOfflineRequest() *YunosTvpubadminContentChannelOfflineAPIRequest{ + return &YunosTvpubadminContentChannelOfflineAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentChannelOfflineAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.channel.offline" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentChannelOfflineAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// id +func (r *YunosTvpubadminContentChannelOfflineAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r YunosTvpubadminContentChannelOfflineAPIRequest) GetId() int64 { + return r._id +} diff --git a/model/tvupadmin/YunosTvpubadminContentChannelOfflineAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentChannelOfflineAPIResponse.go new file mode 100644 index 0000000000..72ca7838c0 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentChannelOfflineAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松影视频道下线 API返回值 +yunos.tvpubadmin.content.channel.offline + +迎客松影视频道下线 +*/ +type YunosTvpubadminContentChannelOfflineAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentChannelOfflineAPIResponseModel +} + +// 迎客松影视频道下线 成功返回结果 +type YunosTvpubadminContentChannelOfflineAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_channel_offline_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 下线影视频道结果 + Object bool `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentChannelOfflineResponse.go b/model/tvupadmin/YunosTvpubadminContentChannelOfflineResponse.go deleted file mode 100644 index 7ad854c4ae..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentChannelOfflineResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -迎客松影视频道下线 API返回值 -yunos.tvpubadmin.content.channel.offline - -迎客松影视频道下线 -*/ -type YunosTvpubadminContentChannelOfflineAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentChannelOfflineResponse -} - -// 迎客松影视频道下线 成功返回结果 -type YunosTvpubadminContentChannelOfflineResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_channel_offline_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 下线影视频道结果 - Object bool `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentChannelQueryAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentChannelQueryAPIRequest.go new file mode 100644 index 0000000000..a3f354613f --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentChannelQueryAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松影视频道查询 API请求 +yunos.tvpubadmin.content.channel.query + +迎客松影视频道查询 +*/ +type YunosTvpubadminContentChannelQueryAPIRequest struct { + model.Params + // ChannelAuditQueryBO + _channelAuditQuery string +} + +// 初始化YunosTvpubadminContentChannelQueryAPIRequest对象 +func NewYunosTvpubadminContentChannelQueryRequest() *YunosTvpubadminContentChannelQueryAPIRequest{ + return &YunosTvpubadminContentChannelQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentChannelQueryAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.channel.query" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentChannelQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChannelAuditQuery Setter +// ChannelAuditQueryBO +func (r *YunosTvpubadminContentChannelQueryAPIRequest) SetChannelAuditQuery(_channelAuditQuery string) error { + r._channelAuditQuery = _channelAuditQuery + r.Set("channel_audit_query", _channelAuditQuery) + return nil +} + +// ChannelAuditQuery Getter +func (r YunosTvpubadminContentChannelQueryAPIRequest) GetChannelAuditQuery() string { + return r._channelAuditQuery +} diff --git a/model/tvupadmin/YunosTvpubadminContentChannelQueryAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentChannelQueryAPIResponse.go new file mode 100644 index 0000000000..1219166196 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentChannelQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松影视频道查询 API返回值 +yunos.tvpubadmin.content.channel.query + +迎客松影视频道查询 +*/ +type YunosTvpubadminContentChannelQueryAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentChannelQueryAPIResponseModel +} + +// 迎客松影视频道查询 成功返回结果 +type YunosTvpubadminContentChannelQueryAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_channel_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 影视频道列表 + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentChannelQueryResponse.go b/model/tvupadmin/YunosTvpubadminContentChannelQueryResponse.go deleted file mode 100644 index 3994165e8d..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentChannelQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -迎客松影视频道查询 API返回值 -yunos.tvpubadmin.content.channel.query - -迎客松影视频道查询 -*/ -type YunosTvpubadminContentChannelQueryAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentChannelQueryResponse -} - -// 迎客松影视频道查询 成功返回结果 -type YunosTvpubadminContentChannelQueryResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_channel_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 影视频道列表 - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentChildLeafnodeGetAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentChildLeafnodeGetAPIRequest.go new file mode 100644 index 0000000000..be1484ee51 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentChildLeafnodeGetAPIRequest.go @@ -0,0 +1,38 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取少儿大厅二级类目列表 API请求 +yunos.tvpubadmin.content.child.leafnode.get + +获取少儿大厅二级类目列表的接口 +*/ +type YunosTvpubadminContentChildLeafnodeGetAPIRequest struct { + model.Params +} + +// 初始化YunosTvpubadminContentChildLeafnodeGetAPIRequest对象 +func NewYunosTvpubadminContentChildLeafnodeGetRequest() *YunosTvpubadminContentChildLeafnodeGetAPIRequest{ + return &YunosTvpubadminContentChildLeafnodeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentChildLeafnodeGetAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.child.leafnode.get" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentChildLeafnodeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/tvupadmin/YunosTvpubadminContentChildLeafnodeGetAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentChildLeafnodeGetAPIResponse.go new file mode 100644 index 0000000000..1683fbc696 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentChildLeafnodeGetAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取少儿大厅二级类目列表 API返回值 +yunos.tvpubadmin.content.child.leafnode.get + +获取少儿大厅二级类目列表的接口 +*/ +type YunosTvpubadminContentChildLeafnodeGetAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentChildLeafnodeGetAPIResponseModel +} + +// 获取少儿大厅二级类目列表 成功返回结果 +type YunosTvpubadminContentChildLeafnodeGetAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_child_leafnode_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 类目列表 + ChildNodeVoList []ChildNodeVo `json:"child_node_vo_list,omitempty" xml:"child_node_vo_list>child_node_vo,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentChildLeafnodeGetResponse.go b/model/tvupadmin/YunosTvpubadminContentChildLeafnodeGetResponse.go deleted file mode 100644 index 7c8a7f4bf0..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentChildLeafnodeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取少儿大厅二级类目列表 API返回值 -yunos.tvpubadmin.content.child.leafnode.get - -获取少儿大厅二级类目列表的接口 -*/ -type YunosTvpubadminContentChildLeafnodeGetAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentChildLeafnodeGetResponse -} - -// 获取少儿大厅二级类目列表 成功返回结果 -type YunosTvpubadminContentChildLeafnodeGetResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_child_leafnode_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 类目列表 - ChildNodeVoList []ChildNodeVo `json:"child_node_vo_list,omitempty" xml:"child_node_vo_list>child_node_vo,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentChildNodeitemOfflineAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentChildNodeitemOfflineAPIRequest.go new file mode 100644 index 0000000000..810ce851eb --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentChildNodeitemOfflineAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +少儿大厅类目内容下线接口 API请求 +yunos.tvpubadmin.content.child.nodeitem.offline + +少儿大厅类目内容下线接口 +*/ +type YunosTvpubadminContentChildNodeitemOfflineAPIRequest struct { + model.Params + // 类目内容ID + _contentId int64 +} + +// 初始化YunosTvpubadminContentChildNodeitemOfflineAPIRequest对象 +func NewYunosTvpubadminContentChildNodeitemOfflineRequest() *YunosTvpubadminContentChildNodeitemOfflineAPIRequest{ + return &YunosTvpubadminContentChildNodeitemOfflineAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentChildNodeitemOfflineAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.child.nodeitem.offline" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentChildNodeitemOfflineAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ContentId Setter +// 类目内容ID +func (r *YunosTvpubadminContentChildNodeitemOfflineAPIRequest) SetContentId(_contentId int64) error { + r._contentId = _contentId + r.Set("content_id", _contentId) + return nil +} + +// ContentId Getter +func (r YunosTvpubadminContentChildNodeitemOfflineAPIRequest) GetContentId() int64 { + return r._contentId +} diff --git a/model/tvupadmin/YunosTvpubadminContentChildNodeitemOfflineAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentChildNodeitemOfflineAPIResponse.go new file mode 100644 index 0000000000..12dadfcec9 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentChildNodeitemOfflineAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +少儿大厅类目内容下线接口 API返回值 +yunos.tvpubadmin.content.child.nodeitem.offline + +少儿大厅类目内容下线接口 +*/ +type YunosTvpubadminContentChildNodeitemOfflineAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentChildNodeitemOfflineAPIResponseModel +} + +// 少儿大厅类目内容下线接口 成功返回结果 +type YunosTvpubadminContentChildNodeitemOfflineAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_child_nodeitem_offline_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 执行结果 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentChildNodeitemOfflineResponse.go b/model/tvupadmin/YunosTvpubadminContentChildNodeitemOfflineResponse.go deleted file mode 100644 index 789db46e10..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentChildNodeitemOfflineResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -少儿大厅类目内容下线接口 API返回值 -yunos.tvpubadmin.content.child.nodeitem.offline - -少儿大厅类目内容下线接口 -*/ -type YunosTvpubadminContentChildNodeitemOfflineAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentChildNodeitemOfflineResponse -} - -// 少儿大厅类目内容下线接口 成功返回结果 -type YunosTvpubadminContentChildNodeitemOfflineResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_child_nodeitem_offline_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 执行结果 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentChildNodeitemQueryAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentChildNodeitemQueryAPIRequest.go new file mode 100644 index 0000000000..c37f162533 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentChildNodeitemQueryAPIRequest.go @@ -0,0 +1,122 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询少儿大厅类目内容 API请求 +yunos.tvpubadmin.content.child.nodeitem.query + +查询少儿大厅类目内容信息 +*/ +type YunosTvpubadminContentChildNodeitemQueryAPIRequest struct { + model.Params + // 主键ID + _id int64 + // 类目ID + _nodeId int64 + // 状态 + _status int64 + // 页码 + _pageNo int64 + // 内容名称 + _name string + // 单页数量 + _pageSize int64 +} + +// 初始化YunosTvpubadminContentChildNodeitemQueryAPIRequest对象 +func NewYunosTvpubadminContentChildNodeitemQueryRequest() *YunosTvpubadminContentChildNodeitemQueryAPIRequest{ + return &YunosTvpubadminContentChildNodeitemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentChildNodeitemQueryAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.child.nodeitem.query" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentChildNodeitemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 主键ID +func (r *YunosTvpubadminContentChildNodeitemQueryAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r YunosTvpubadminContentChildNodeitemQueryAPIRequest) GetId() int64 { + return r._id +} +// NodeId Setter +// 类目ID +func (r *YunosTvpubadminContentChildNodeitemQueryAPIRequest) SetNodeId(_nodeId int64) error { + r._nodeId = _nodeId + r.Set("node_id", _nodeId) + return nil +} + +// NodeId Getter +func (r YunosTvpubadminContentChildNodeitemQueryAPIRequest) GetNodeId() int64 { + return r._nodeId +} +// Status Setter +// 状态 +func (r *YunosTvpubadminContentChildNodeitemQueryAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r YunosTvpubadminContentChildNodeitemQueryAPIRequest) GetStatus() int64 { + return r._status +} +// PageNo Setter +// 页码 +func (r *YunosTvpubadminContentChildNodeitemQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r YunosTvpubadminContentChildNodeitemQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// Name Setter +// 内容名称 +func (r *YunosTvpubadminContentChildNodeitemQueryAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r YunosTvpubadminContentChildNodeitemQueryAPIRequest) GetName() string { + return r._name +} +// PageSize Setter +// 单页数量 +func (r *YunosTvpubadminContentChildNodeitemQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r YunosTvpubadminContentChildNodeitemQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tvupadmin/YunosTvpubadminContentChildNodeitemQueryAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentChildNodeitemQueryAPIResponse.go new file mode 100644 index 0000000000..f4cb32f334 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentChildNodeitemQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询少儿大厅类目内容 API返回值 +yunos.tvpubadmin.content.child.nodeitem.query + +查询少儿大厅类目内容信息 +*/ +type YunosTvpubadminContentChildNodeitemQueryAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentChildNodeitemQueryAPIResponseModel +} + +// 查询少儿大厅类目内容 成功返回结果 +type YunosTvpubadminContentChildNodeitemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_child_nodeitem_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果 + PageVo *PageVo `json:"page_vo,omitempty" xml:"page_vo,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentChildNodeitemQueryResponse.go b/model/tvupadmin/YunosTvpubadminContentChildNodeitemQueryResponse.go deleted file mode 100644 index e62dbdbce8..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentChildNodeitemQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询少儿大厅类目内容 API返回值 -yunos.tvpubadmin.content.child.nodeitem.query - -查询少儿大厅类目内容信息 -*/ -type YunosTvpubadminContentChildNodeitemQueryAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentChildNodeitemQueryResponse -} - -// 查询少儿大厅类目内容 成功返回结果 -type YunosTvpubadminContentChildNodeitemQueryResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_child_nodeitem_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果 - PageVo *PageVo `json:"page_vo,omitempty" xml:"page_vo,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentChildRecoitemOfflineAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentChildRecoitemOfflineAPIRequest.go new file mode 100644 index 0000000000..bee3f3c5cd --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentChildRecoitemOfflineAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +下线少儿推荐内容接口 API请求 +yunos.tvpubadmin.content.child.recoitem.offline + +下线少儿推荐内容接口 +*/ +type YunosTvpubadminContentChildRecoitemOfflineAPIRequest struct { + model.Params + // 推荐内容ID + _recItemId int64 +} + +// 初始化YunosTvpubadminContentChildRecoitemOfflineAPIRequest对象 +func NewYunosTvpubadminContentChildRecoitemOfflineRequest() *YunosTvpubadminContentChildRecoitemOfflineAPIRequest{ + return &YunosTvpubadminContentChildRecoitemOfflineAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentChildRecoitemOfflineAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.child.recoitem.offline" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentChildRecoitemOfflineAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RecItemId Setter +// 推荐内容ID +func (r *YunosTvpubadminContentChildRecoitemOfflineAPIRequest) SetRecItemId(_recItemId int64) error { + r._recItemId = _recItemId + r.Set("rec_item_id", _recItemId) + return nil +} + +// RecItemId Getter +func (r YunosTvpubadminContentChildRecoitemOfflineAPIRequest) GetRecItemId() int64 { + return r._recItemId +} diff --git a/model/tvupadmin/YunosTvpubadminContentChildRecoitemOfflineAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentChildRecoitemOfflineAPIResponse.go new file mode 100644 index 0000000000..2abba3f530 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentChildRecoitemOfflineAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +下线少儿推荐内容接口 API返回值 +yunos.tvpubadmin.content.child.recoitem.offline + +下线少儿推荐内容接口 +*/ +type YunosTvpubadminContentChildRecoitemOfflineAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentChildRecoitemOfflineAPIResponseModel +} + +// 下线少儿推荐内容接口 成功返回结果 +type YunosTvpubadminContentChildRecoitemOfflineAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_child_recoitem_offline_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 下线操作结果 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentChildRecoitemOfflineResponse.go b/model/tvupadmin/YunosTvpubadminContentChildRecoitemOfflineResponse.go deleted file mode 100644 index 3bbda4387b..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentChildRecoitemOfflineResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -下线少儿推荐内容接口 API返回值 -yunos.tvpubadmin.content.child.recoitem.offline - -下线少儿推荐内容接口 -*/ -type YunosTvpubadminContentChildRecoitemOfflineAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentChildRecoitemOfflineResponse -} - -// 下线少儿推荐内容接口 成功返回结果 -type YunosTvpubadminContentChildRecoitemOfflineResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_child_recoitem_offline_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 下线操作结果 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentChildRecoitemQueryAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentChildRecoitemQueryAPIRequest.go new file mode 100644 index 0000000000..cd391d9c3c --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentChildRecoitemQueryAPIRequest.go @@ -0,0 +1,122 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询少儿大厅推荐内容列表 API请求 +yunos.tvpubadmin.content.child.recoitem.query + +查询少儿大厅推荐内容列表 +*/ +type YunosTvpubadminContentChildRecoitemQueryAPIRequest struct { + model.Params + // 主键ID + _id int64 + // 所属类目ID + _nodeId int64 + // 状态 + _status int64 + // 页码 + _pageNo int64 + // 名称 + _name string + // 单页数量 + _pageSize int64 +} + +// 初始化YunosTvpubadminContentChildRecoitemQueryAPIRequest对象 +func NewYunosTvpubadminContentChildRecoitemQueryRequest() *YunosTvpubadminContentChildRecoitemQueryAPIRequest{ + return &YunosTvpubadminContentChildRecoitemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentChildRecoitemQueryAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.child.recoitem.query" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentChildRecoitemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 主键ID +func (r *YunosTvpubadminContentChildRecoitemQueryAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r YunosTvpubadminContentChildRecoitemQueryAPIRequest) GetId() int64 { + return r._id +} +// NodeId Setter +// 所属类目ID +func (r *YunosTvpubadminContentChildRecoitemQueryAPIRequest) SetNodeId(_nodeId int64) error { + r._nodeId = _nodeId + r.Set("node_id", _nodeId) + return nil +} + +// NodeId Getter +func (r YunosTvpubadminContentChildRecoitemQueryAPIRequest) GetNodeId() int64 { + return r._nodeId +} +// Status Setter +// 状态 +func (r *YunosTvpubadminContentChildRecoitemQueryAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r YunosTvpubadminContentChildRecoitemQueryAPIRequest) GetStatus() int64 { + return r._status +} +// PageNo Setter +// 页码 +func (r *YunosTvpubadminContentChildRecoitemQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r YunosTvpubadminContentChildRecoitemQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// Name Setter +// 名称 +func (r *YunosTvpubadminContentChildRecoitemQueryAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r YunosTvpubadminContentChildRecoitemQueryAPIRequest) GetName() string { + return r._name +} +// PageSize Setter +// 单页数量 +func (r *YunosTvpubadminContentChildRecoitemQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r YunosTvpubadminContentChildRecoitemQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tvupadmin/YunosTvpubadminContentChildRecoitemQueryAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentChildRecoitemQueryAPIResponse.go new file mode 100644 index 0000000000..69dd737e97 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentChildRecoitemQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询少儿大厅推荐内容列表 API返回值 +yunos.tvpubadmin.content.child.recoitem.query + +查询少儿大厅推荐内容列表 +*/ +type YunosTvpubadminContentChildRecoitemQueryAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentChildRecoitemQueryAPIResponseModel +} + +// 查询少儿大厅推荐内容列表 成功返回结果 +type YunosTvpubadminContentChildRecoitemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_child_recoitem_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 搜索结果 + Result *PageVo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentChildRecoitemQueryResponse.go b/model/tvupadmin/YunosTvpubadminContentChildRecoitemQueryResponse.go deleted file mode 100644 index b8191bfa16..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentChildRecoitemQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询少儿大厅推荐内容列表 API返回值 -yunos.tvpubadmin.content.child.recoitem.query - -查询少儿大厅推荐内容列表 -*/ -type YunosTvpubadminContentChildRecoitemQueryAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentChildRecoitemQueryResponse -} - -// 查询少儿大厅推荐内容列表 成功返回结果 -type YunosTvpubadminContentChildRecoitemQueryResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_child_recoitem_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 搜索结果 - Result *PageVo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentChildRootnodeGetAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentChildRootnodeGetAPIRequest.go new file mode 100644 index 0000000000..a1d6abf96d --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentChildRootnodeGetAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取少儿大厅根类目接口 API请求 +yunos.tvpubadmin.content.child.rootnode.get + +通过此接口可获取少儿大厅根类目列表 +*/ +type YunosTvpubadminContentChildRootnodeGetAPIRequest struct { + model.Params + // 是否需要首页目录 + _needHomePage bool +} + +// 初始化YunosTvpubadminContentChildRootnodeGetAPIRequest对象 +func NewYunosTvpubadminContentChildRootnodeGetRequest() *YunosTvpubadminContentChildRootnodeGetAPIRequest{ + return &YunosTvpubadminContentChildRootnodeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentChildRootnodeGetAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.child.rootnode.get" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentChildRootnodeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NeedHomePage Setter +// 是否需要首页目录 +func (r *YunosTvpubadminContentChildRootnodeGetAPIRequest) SetNeedHomePage(_needHomePage bool) error { + r._needHomePage = _needHomePage + r.Set("need_home_page", _needHomePage) + return nil +} + +// NeedHomePage Getter +func (r YunosTvpubadminContentChildRootnodeGetAPIRequest) GetNeedHomePage() bool { + return r._needHomePage +} diff --git a/model/tvupadmin/YunosTvpubadminContentChildRootnodeGetAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentChildRootnodeGetAPIResponse.go new file mode 100644 index 0000000000..dbac845bb5 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentChildRootnodeGetAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取少儿大厅根类目接口 API返回值 +yunos.tvpubadmin.content.child.rootnode.get + +通过此接口可获取少儿大厅根类目列表 +*/ +type YunosTvpubadminContentChildRootnodeGetAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentChildRootnodeGetAPIResponseModel +} + +// 获取少儿大厅根类目接口 成功返回结果 +type YunosTvpubadminContentChildRootnodeGetAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_child_rootnode_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 类目列表 + ChildNodeVoList []ChildNodeVo `json:"child_node_vo_list,omitempty" xml:"child_node_vo_list>child_node_vo,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentChildRootnodeGetResponse.go b/model/tvupadmin/YunosTvpubadminContentChildRootnodeGetResponse.go deleted file mode 100644 index 60ffb487c8..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentChildRootnodeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取少儿大厅根类目接口 API返回值 -yunos.tvpubadmin.content.child.rootnode.get - -通过此接口可获取少儿大厅根类目列表 -*/ -type YunosTvpubadminContentChildRootnodeGetAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentChildRootnodeGetResponse -} - -// 获取少儿大厅根类目接口 成功返回结果 -type YunosTvpubadminContentChildRootnodeGetResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_child_rootnode_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 类目列表 - ChildNodeVoList []ChildNodeVo `json:"child_node_vo_list,omitempty" xml:"child_node_vo_list>child_node_vo,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentDeviceGetterminaltypemapAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentDeviceGetterminaltypemapAPIRequest.go new file mode 100644 index 0000000000..17886b44db --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentDeviceGetterminaltypemapAPIRequest.go @@ -0,0 +1,38 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取终端类型表 API请求 +yunos.tvpubadmin.content.device.getterminaltypemap + +获取终端类型表 +*/ +type YunosTvpubadminContentDeviceGetterminaltypemapAPIRequest struct { + model.Params +} + +// 初始化YunosTvpubadminContentDeviceGetterminaltypemapAPIRequest对象 +func NewYunosTvpubadminContentDeviceGetterminaltypemapRequest() *YunosTvpubadminContentDeviceGetterminaltypemapAPIRequest{ + return &YunosTvpubadminContentDeviceGetterminaltypemapAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentDeviceGetterminaltypemapAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.device.getterminaltypemap" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentDeviceGetterminaltypemapAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/tvupadmin/YunosTvpubadminContentDeviceGetterminaltypemapAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentDeviceGetterminaltypemapAPIResponse.go new file mode 100644 index 0000000000..265e60d19d --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentDeviceGetterminaltypemapAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取终端类型表 API返回值 +yunos.tvpubadmin.content.device.getterminaltypemap + +获取终端类型表 +*/ +type YunosTvpubadminContentDeviceGetterminaltypemapAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentDeviceGetterminaltypemapAPIResponseModel +} + +// 获取终端类型表 成功返回结果 +type YunosTvpubadminContentDeviceGetterminaltypemapAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_device_getterminaltypemap_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // map + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentDeviceGetterminaltypemapResponse.go b/model/tvupadmin/YunosTvpubadminContentDeviceGetterminaltypemapResponse.go deleted file mode 100644 index 9785e153ca..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentDeviceGetterminaltypemapResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取终端类型表 API返回值 -yunos.tvpubadmin.content.device.getterminaltypemap - -获取终端类型表 -*/ -type YunosTvpubadminContentDeviceGetterminaltypemapAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentDeviceGetterminaltypemapResponse -} - -// 获取终端类型表 成功返回结果 -type YunosTvpubadminContentDeviceGetterminaltypemapResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_device_getterminaltypemap_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // map - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentDeviceGetvendorAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentDeviceGetvendorAPIRequest.go new file mode 100644 index 0000000000..4c4bb3b052 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentDeviceGetvendorAPIRequest.go @@ -0,0 +1,66 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询设备Vendor信息 API请求 +yunos.tvpubadmin.content.device.getvendor + +查询设备Vendor信息 +*/ +type YunosTvpubadminContentDeviceGetvendorAPIRequest struct { + model.Params + // license + _license int64 + // brand_id + _brandId int64 +} + +// 初始化YunosTvpubadminContentDeviceGetvendorAPIRequest对象 +func NewYunosTvpubadminContentDeviceGetvendorRequest() *YunosTvpubadminContentDeviceGetvendorAPIRequest{ + return &YunosTvpubadminContentDeviceGetvendorAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentDeviceGetvendorAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.device.getvendor" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentDeviceGetvendorAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// License Setter +// license +func (r *YunosTvpubadminContentDeviceGetvendorAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminContentDeviceGetvendorAPIRequest) GetLicense() int64 { + return r._license +} +// BrandId Setter +// brand_id +func (r *YunosTvpubadminContentDeviceGetvendorAPIRequest) SetBrandId(_brandId int64) error { + r._brandId = _brandId + r.Set("brand_id", _brandId) + return nil +} + +// BrandId Getter +func (r YunosTvpubadminContentDeviceGetvendorAPIRequest) GetBrandId() int64 { + return r._brandId +} diff --git a/model/tvupadmin/YunosTvpubadminContentDeviceGetvendorAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentDeviceGetvendorAPIResponse.go new file mode 100644 index 0000000000..65991d4892 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentDeviceGetvendorAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询设备Vendor信息 API返回值 +yunos.tvpubadmin.content.device.getvendor + +查询设备Vendor信息 +*/ +type YunosTvpubadminContentDeviceGetvendorAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentDeviceGetvendorAPIResponseModel +} + +// 查询设备Vendor信息 成功返回结果 +type YunosTvpubadminContentDeviceGetvendorAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_device_getvendor_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // list + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentDeviceGetvendorResponse.go b/model/tvupadmin/YunosTvpubadminContentDeviceGetvendorResponse.go deleted file mode 100644 index ad7fc3b059..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentDeviceGetvendorResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询设备Vendor信息 API返回值 -yunos.tvpubadmin.content.device.getvendor - -查询设备Vendor信息 -*/ -type YunosTvpubadminContentDeviceGetvendorAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentDeviceGetvendorResponse -} - -// 查询设备Vendor信息 成功返回结果 -type YunosTvpubadminContentDeviceGetvendorResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_device_getvendor_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // list - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentShowEditAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentShowEditAPIRequest.go new file mode 100644 index 0000000000..fc5c78d2f0 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentShowEditAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +媒资节目信息修改 API请求 +yunos.tvpubadmin.content.show.edit + +供迎客松修改媒资节目信息 +*/ +type YunosTvpubadminContentShowEditAPIRequest struct { + model.Params + // 请求入参,JSON格式 + _data string +} + +// 初始化YunosTvpubadminContentShowEditAPIRequest对象 +func NewYunosTvpubadminContentShowEditRequest() *YunosTvpubadminContentShowEditAPIRequest{ + return &YunosTvpubadminContentShowEditAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentShowEditAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.show.edit" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentShowEditAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Data Setter +// 请求入参,JSON格式 +func (r *YunosTvpubadminContentShowEditAPIRequest) SetData(_data string) error { + r._data = _data + r.Set("data", _data) + return nil +} + +// Data Getter +func (r YunosTvpubadminContentShowEditAPIRequest) GetData() string { + return r._data +} diff --git a/model/tvupadmin/YunosTvpubadminContentShowEditAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentShowEditAPIResponse.go new file mode 100644 index 0000000000..91a4ef4a66 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentShowEditAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +媒资节目信息修改 API返回值 +yunos.tvpubadmin.content.show.edit + +供迎客松修改媒资节目信息 +*/ +type YunosTvpubadminContentShowEditAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentShowEditAPIResponseModel +} + +// 媒资节目信息修改 成功返回结果 +type YunosTvpubadminContentShowEditAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_show_edit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Object bool `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentShowEditResponse.go b/model/tvupadmin/YunosTvpubadminContentShowEditResponse.go deleted file mode 100644 index 391ae2bcfb..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentShowEditResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -媒资节目信息修改 API返回值 -yunos.tvpubadmin.content.show.edit - -供迎客松修改媒资节目信息 -*/ -type YunosTvpubadminContentShowEditAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentShowEditResponse -} - -// 媒资节目信息修改 成功返回结果 -type YunosTvpubadminContentShowEditResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_show_edit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Object bool `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentShowGetbyshowidAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentShowGetbyshowidAPIRequest.go new file mode 100644 index 0000000000..d54f592a4c --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentShowGetbyshowidAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松根据节目id获取节目元数据 API请求 +yunos.tvpubadmin.content.show.getbyshowid + +迎客松根据节目id获取节目元数据 +*/ +type YunosTvpubadminContentShowGetbyshowidAPIRequest struct { + model.Params + // 节目字符串id + _showId string +} + +// 初始化YunosTvpubadminContentShowGetbyshowidAPIRequest对象 +func NewYunosTvpubadminContentShowGetbyshowidRequest() *YunosTvpubadminContentShowGetbyshowidAPIRequest{ + return &YunosTvpubadminContentShowGetbyshowidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentShowGetbyshowidAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.show.getbyshowid" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentShowGetbyshowidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShowId Setter +// 节目字符串id +func (r *YunosTvpubadminContentShowGetbyshowidAPIRequest) SetShowId(_showId string) error { + r._showId = _showId + r.Set("show_id", _showId) + return nil +} + +// ShowId Getter +func (r YunosTvpubadminContentShowGetbyshowidAPIRequest) GetShowId() string { + return r._showId +} diff --git a/model/tvupadmin/YunosTvpubadminContentShowGetbyshowidAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentShowGetbyshowidAPIResponse.go new file mode 100644 index 0000000000..d98fd1adb8 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentShowGetbyshowidAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松根据节目id获取节目元数据 API返回值 +yunos.tvpubadmin.content.show.getbyshowid + +迎客松根据节目id获取节目元数据 +*/ +type YunosTvpubadminContentShowGetbyshowidAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentShowGetbyshowidAPIResponseModel +} + +// 迎客松根据节目id获取节目元数据 成功返回结果 +type YunosTvpubadminContentShowGetbyshowidAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_show_getbyshowid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 节目元数据 + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentShowGetbyshowidResponse.go b/model/tvupadmin/YunosTvpubadminContentShowGetbyshowidResponse.go deleted file mode 100644 index a6b9a259c6..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentShowGetbyshowidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -迎客松根据节目id获取节目元数据 API返回值 -yunos.tvpubadmin.content.show.getbyshowid - -迎客松根据节目id获取节目元数据 -*/ -type YunosTvpubadminContentShowGetbyshowidAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentShowGetbyshowidResponse -} - -// 迎客松根据节目id获取节目元数据 成功返回结果 -type YunosTvpubadminContentShowGetbyshowidResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_show_getbyshowid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 节目元数据 - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentShowGetbyshowlongidAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentShowGetbyshowlongidAPIRequest.go new file mode 100644 index 0000000000..b9e94e301d --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentShowGetbyshowlongidAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松根据节目longid获取节目元数据 API请求 +yunos.tvpubadmin.content.show.getbyshowlongid + +迎客松根据节目longid获取节目元数据 +*/ +type YunosTvpubadminContentShowGetbyshowlongidAPIRequest struct { + model.Params + // 节目longid + _showLongId int64 +} + +// 初始化YunosTvpubadminContentShowGetbyshowlongidAPIRequest对象 +func NewYunosTvpubadminContentShowGetbyshowlongidRequest() *YunosTvpubadminContentShowGetbyshowlongidAPIRequest{ + return &YunosTvpubadminContentShowGetbyshowlongidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentShowGetbyshowlongidAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.show.getbyshowlongid" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentShowGetbyshowlongidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShowLongId Setter +// 节目longid +func (r *YunosTvpubadminContentShowGetbyshowlongidAPIRequest) SetShowLongId(_showLongId int64) error { + r._showLongId = _showLongId + r.Set("show_long_id", _showLongId) + return nil +} + +// ShowLongId Getter +func (r YunosTvpubadminContentShowGetbyshowlongidAPIRequest) GetShowLongId() int64 { + return r._showLongId +} diff --git a/model/tvupadmin/YunosTvpubadminContentShowGetbyshowlongidAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentShowGetbyshowlongidAPIResponse.go new file mode 100644 index 0000000000..3c5cf48fda --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentShowGetbyshowlongidAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松根据节目longid获取节目元数据 API返回值 +yunos.tvpubadmin.content.show.getbyshowlongid + +迎客松根据节目longid获取节目元数据 +*/ +type YunosTvpubadminContentShowGetbyshowlongidAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentShowGetbyshowlongidAPIResponseModel +} + +// 迎客松根据节目longid获取节目元数据 成功返回结果 +type YunosTvpubadminContentShowGetbyshowlongidAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_show_getbyshowlongid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 节目元数据信息 + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentShowGetbyshowlongidResponse.go b/model/tvupadmin/YunosTvpubadminContentShowGetbyshowlongidResponse.go deleted file mode 100644 index c427705434..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentShowGetbyshowlongidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -迎客松根据节目longid获取节目元数据 API返回值 -yunos.tvpubadmin.content.show.getbyshowlongid - -迎客松根据节目longid获取节目元数据 -*/ -type YunosTvpubadminContentShowGetbyshowlongidAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentShowGetbyshowlongidResponse -} - -// 迎客松根据节目longid获取节目元数据 成功返回结果 -type YunosTvpubadminContentShowGetbyshowlongidResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_show_getbyshowlongid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 节目元数据信息 - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentShowGetlistAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentShowGetlistAPIRequest.go new file mode 100644 index 0000000000..3da69722e7 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentShowGetlistAPIRequest.go @@ -0,0 +1,234 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +节目审核获取节目列表 API请求 +yunos.tvpubadmin.content.show.getlist + +节目审核获取节目列表 +*/ +type YunosTvpubadminContentShowGetlistAPIRequest struct { + model.Params + // 视频外部来源类型: 1:YOUKU, 2:MONGO_TV, 3:TAOTVMEDIA, 4:GOLIVE + _extType int64 + // 时间查询范围,结束时间 + _gmtEnd string + // 审核状态:1未提审,2审核中,3通过,4不通过,5已下线 + _licenseState int64 + // 分页 + _pageSize int64 + // 节目ID + _showId string + // 视频ID + _extVideoStrId string + // 时间类型:1-licenseSubmitTime, 2-licenseAuditTime, 3-youkuPublishTime + _dateType int64 + // 主分类 + _category int64 + // 节目名称 + _showName string + // 分页,页码 + _pageNo int64 + // 时间查询范围,开始时间 + _gmtStart string + // 牌照方 + _license int64 + // 视频名称 + _videoTitleLike string + // 老媒资ID(program_id) + _vmacLongId int64 +} + +// 初始化YunosTvpubadminContentShowGetlistAPIRequest对象 +func NewYunosTvpubadminContentShowGetlistRequest() *YunosTvpubadminContentShowGetlistAPIRequest{ + return &YunosTvpubadminContentShowGetlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentShowGetlistAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.show.getlist" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentShowGetlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExtType Setter +// 视频外部来源类型: 1:YOUKU, 2:MONGO_TV, 3:TAOTVMEDIA, 4:GOLIVE +func (r *YunosTvpubadminContentShowGetlistAPIRequest) SetExtType(_extType int64) error { + r._extType = _extType + r.Set("ext_type", _extType) + return nil +} + +// ExtType Getter +func (r YunosTvpubadminContentShowGetlistAPIRequest) GetExtType() int64 { + return r._extType +} +// GmtEnd Setter +// 时间查询范围,结束时间 +func (r *YunosTvpubadminContentShowGetlistAPIRequest) SetGmtEnd(_gmtEnd string) error { + r._gmtEnd = _gmtEnd + r.Set("gmt_end", _gmtEnd) + return nil +} + +// GmtEnd Getter +func (r YunosTvpubadminContentShowGetlistAPIRequest) GetGmtEnd() string { + return r._gmtEnd +} +// LicenseState Setter +// 审核状态:1未提审,2审核中,3通过,4不通过,5已下线 +func (r *YunosTvpubadminContentShowGetlistAPIRequest) SetLicenseState(_licenseState int64) error { + r._licenseState = _licenseState + r.Set("license_state", _licenseState) + return nil +} + +// LicenseState Getter +func (r YunosTvpubadminContentShowGetlistAPIRequest) GetLicenseState() int64 { + return r._licenseState +} +// PageSize Setter +// 分页 +func (r *YunosTvpubadminContentShowGetlistAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r YunosTvpubadminContentShowGetlistAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// ShowId Setter +// 节目ID +func (r *YunosTvpubadminContentShowGetlistAPIRequest) SetShowId(_showId string) error { + r._showId = _showId + r.Set("show_id", _showId) + return nil +} + +// ShowId Getter +func (r YunosTvpubadminContentShowGetlistAPIRequest) GetShowId() string { + return r._showId +} +// ExtVideoStrId Setter +// 视频ID +func (r *YunosTvpubadminContentShowGetlistAPIRequest) SetExtVideoStrId(_extVideoStrId string) error { + r._extVideoStrId = _extVideoStrId + r.Set("ext_video_str_id", _extVideoStrId) + return nil +} + +// ExtVideoStrId Getter +func (r YunosTvpubadminContentShowGetlistAPIRequest) GetExtVideoStrId() string { + return r._extVideoStrId +} +// DateType Setter +// 时间类型:1-licenseSubmitTime, 2-licenseAuditTime, 3-youkuPublishTime +func (r *YunosTvpubadminContentShowGetlistAPIRequest) SetDateType(_dateType int64) error { + r._dateType = _dateType + r.Set("date_type", _dateType) + return nil +} + +// DateType Getter +func (r YunosTvpubadminContentShowGetlistAPIRequest) GetDateType() int64 { + return r._dateType +} +// Category Setter +// 主分类 +func (r *YunosTvpubadminContentShowGetlistAPIRequest) SetCategory(_category int64) error { + r._category = _category + r.Set("category", _category) + return nil +} + +// Category Getter +func (r YunosTvpubadminContentShowGetlistAPIRequest) GetCategory() int64 { + return r._category +} +// ShowName Setter +// 节目名称 +func (r *YunosTvpubadminContentShowGetlistAPIRequest) SetShowName(_showName string) error { + r._showName = _showName + r.Set("show_name", _showName) + return nil +} + +// ShowName Getter +func (r YunosTvpubadminContentShowGetlistAPIRequest) GetShowName() string { + return r._showName +} +// PageNo Setter +// 分页,页码 +func (r *YunosTvpubadminContentShowGetlistAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r YunosTvpubadminContentShowGetlistAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// GmtStart Setter +// 时间查询范围,开始时间 +func (r *YunosTvpubadminContentShowGetlistAPIRequest) SetGmtStart(_gmtStart string) error { + r._gmtStart = _gmtStart + r.Set("gmt_start", _gmtStart) + return nil +} + +// GmtStart Getter +func (r YunosTvpubadminContentShowGetlistAPIRequest) GetGmtStart() string { + return r._gmtStart +} +// License Setter +// 牌照方 +func (r *YunosTvpubadminContentShowGetlistAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminContentShowGetlistAPIRequest) GetLicense() int64 { + return r._license +} +// VideoTitleLike Setter +// 视频名称 +func (r *YunosTvpubadminContentShowGetlistAPIRequest) SetVideoTitleLike(_videoTitleLike string) error { + r._videoTitleLike = _videoTitleLike + r.Set("video_title_like", _videoTitleLike) + return nil +} + +// VideoTitleLike Getter +func (r YunosTvpubadminContentShowGetlistAPIRequest) GetVideoTitleLike() string { + return r._videoTitleLike +} +// VmacLongId Setter +// 老媒资ID(program_id) +func (r *YunosTvpubadminContentShowGetlistAPIRequest) SetVmacLongId(_vmacLongId int64) error { + r._vmacLongId = _vmacLongId + r.Set("vmac_long_id", _vmacLongId) + return nil +} + +// VmacLongId Getter +func (r YunosTvpubadminContentShowGetlistAPIRequest) GetVmacLongId() int64 { + return r._vmacLongId +} diff --git a/model/tvupadmin/YunosTvpubadminContentShowGetlistAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentShowGetlistAPIResponse.go new file mode 100644 index 0000000000..ae5c9f4522 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentShowGetlistAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +节目审核获取节目列表 API返回值 +yunos.tvpubadmin.content.show.getlist + +节目审核获取节目列表 +*/ +type YunosTvpubadminContentShowGetlistAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentShowGetlistAPIResponseModel +} + +// 节目审核获取节目列表 成功返回结果 +type YunosTvpubadminContentShowGetlistAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_show_getlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentShowGetlistResponse.go b/model/tvupadmin/YunosTvpubadminContentShowGetlistResponse.go deleted file mode 100644 index 922125bd19..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentShowGetlistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -节目审核获取节目列表 API返回值 -yunos.tvpubadmin.content.show.getlist - -节目审核获取节目列表 -*/ -type YunosTvpubadminContentShowGetlistAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentShowGetlistResponse -} - -// 节目审核获取节目列表 成功返回结果 -type YunosTvpubadminContentShowGetlistResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_show_getlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentShowGetshowexemptauditmapAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentShowGetshowexemptauditmapAPIRequest.go new file mode 100644 index 0000000000..c3da261255 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentShowGetshowexemptauditmapAPIRequest.go @@ -0,0 +1,66 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松批量查询节目某个牌照的免审状态 API请求 +yunos.tvpubadmin.content.show.getshowexemptauditmap + +迎客松批量查询节目某个牌照的免审状态 +*/ +type YunosTvpubadminContentShowGetshowexemptauditmapAPIRequest struct { + model.Params + // 节目longid + _showLongIds string + // 牌照id + _license int64 +} + +// 初始化YunosTvpubadminContentShowGetshowexemptauditmapAPIRequest对象 +func NewYunosTvpubadminContentShowGetshowexemptauditmapRequest() *YunosTvpubadminContentShowGetshowexemptauditmapAPIRequest{ + return &YunosTvpubadminContentShowGetshowexemptauditmapAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentShowGetshowexemptauditmapAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.show.getshowexemptauditmap" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentShowGetshowexemptauditmapAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShowLongIds Setter +// 节目longid +func (r *YunosTvpubadminContentShowGetshowexemptauditmapAPIRequest) SetShowLongIds(_showLongIds string) error { + r._showLongIds = _showLongIds + r.Set("show_long_ids", _showLongIds) + return nil +} + +// ShowLongIds Getter +func (r YunosTvpubadminContentShowGetshowexemptauditmapAPIRequest) GetShowLongIds() string { + return r._showLongIds +} +// License Setter +// 牌照id +func (r *YunosTvpubadminContentShowGetshowexemptauditmapAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminContentShowGetshowexemptauditmapAPIRequest) GetLicense() int64 { + return r._license +} diff --git a/model/tvupadmin/YunosTvpubadminContentShowGetshowexemptauditmapAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentShowGetshowexemptauditmapAPIResponse.go new file mode 100644 index 0000000000..81f534a988 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentShowGetshowexemptauditmapAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松批量查询节目某个牌照的免审状态 API返回值 +yunos.tvpubadmin.content.show.getshowexemptauditmap + +迎客松批量查询节目某个牌照的免审状态 +*/ +type YunosTvpubadminContentShowGetshowexemptauditmapAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentShowGetshowexemptauditmapAPIResponseModel +} + +// 迎客松批量查询节目某个牌照的免审状态 成功返回结果 +type YunosTvpubadminContentShowGetshowexemptauditmapAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_show_getshowexemptauditmap_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentShowGetshowexemptauditmapResponse.go b/model/tvupadmin/YunosTvpubadminContentShowGetshowexemptauditmapResponse.go deleted file mode 100644 index 0d873fa4d5..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentShowGetshowexemptauditmapResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -迎客松批量查询节目某个牌照的免审状态 API返回值 -yunos.tvpubadmin.content.show.getshowexemptauditmap - -迎客松批量查询节目某个牌照的免审状态 -*/ -type YunosTvpubadminContentShowGetshowexemptauditmapAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentShowGetshowexemptauditmapResponse -} - -// 迎客松批量查询节目某个牌照的免审状态 成功返回结果 -type YunosTvpubadminContentShowGetshowexemptauditmapResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_show_getshowexemptauditmap_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentShowSetexemptauditAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentShowSetexemptauditAPIRequest.go new file mode 100644 index 0000000000..3363b0f93a --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentShowSetexemptauditAPIRequest.go @@ -0,0 +1,80 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松节目设置免审开关 API请求 +yunos.tvpubadmin.content.show.setexemptaudit + +迎客松节目设置免审开关 +*/ +type YunosTvpubadminContentShowSetexemptauditAPIRequest struct { + model.Params + // 节目longid + _showLongId int64 + // 牌照id:1CIBN,2WASU + _license int64 + // 牌照免审:1-开启节目免审,2-关闭节目免审 + _exemptAudit int64 +} + +// 初始化YunosTvpubadminContentShowSetexemptauditAPIRequest对象 +func NewYunosTvpubadminContentShowSetexemptauditRequest() *YunosTvpubadminContentShowSetexemptauditAPIRequest{ + return &YunosTvpubadminContentShowSetexemptauditAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentShowSetexemptauditAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.show.setexemptaudit" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentShowSetexemptauditAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShowLongId Setter +// 节目longid +func (r *YunosTvpubadminContentShowSetexemptauditAPIRequest) SetShowLongId(_showLongId int64) error { + r._showLongId = _showLongId + r.Set("show_long_id", _showLongId) + return nil +} + +// ShowLongId Getter +func (r YunosTvpubadminContentShowSetexemptauditAPIRequest) GetShowLongId() int64 { + return r._showLongId +} +// License Setter +// 牌照id:1CIBN,2WASU +func (r *YunosTvpubadminContentShowSetexemptauditAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminContentShowSetexemptauditAPIRequest) GetLicense() int64 { + return r._license +} +// ExemptAudit Setter +// 牌照免审:1-开启节目免审,2-关闭节目免审 +func (r *YunosTvpubadminContentShowSetexemptauditAPIRequest) SetExemptAudit(_exemptAudit int64) error { + r._exemptAudit = _exemptAudit + r.Set("exempt_audit", _exemptAudit) + return nil +} + +// ExemptAudit Getter +func (r YunosTvpubadminContentShowSetexemptauditAPIRequest) GetExemptAudit() int64 { + return r._exemptAudit +} diff --git a/model/tvupadmin/YunosTvpubadminContentShowSetexemptauditAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentShowSetexemptauditAPIResponse.go new file mode 100644 index 0000000000..e3dfb72512 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentShowSetexemptauditAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松节目设置免审开关 API返回值 +yunos.tvpubadmin.content.show.setexemptaudit + +迎客松节目设置免审开关 +*/ +type YunosTvpubadminContentShowSetexemptauditAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentShowSetexemptauditAPIResponseModel +} + +// 迎客松节目设置免审开关 成功返回结果 +type YunosTvpubadminContentShowSetexemptauditAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_show_setexemptaudit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 设置免审 + Object bool `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentShowSetexemptauditResponse.go b/model/tvupadmin/YunosTvpubadminContentShowSetexemptauditResponse.go deleted file mode 100644 index 4f8bb241f0..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentShowSetexemptauditResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -迎客松节目设置免审开关 API返回值 -yunos.tvpubadmin.content.show.setexemptaudit - -迎客松节目设置免审开关 -*/ -type YunosTvpubadminContentShowSetexemptauditAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentShowSetexemptauditResponse -} - -// 迎客松节目设置免审开关 成功返回结果 -type YunosTvpubadminContentShowSetexemptauditResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_show_setexemptaudit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 设置免审 - Object bool `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentSingleVideoGetlistAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentSingleVideoGetlistAPIRequest.go new file mode 100644 index 0000000000..6aeb4d0729 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentSingleVideoGetlistAPIRequest.go @@ -0,0 +1,220 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单视频审核获取视频列表 API请求 +yunos.tvpubadmin.content.single.video.getlist + +牌照方在审核单视频时获取单视频列表接口 +*/ +type YunosTvpubadminContentSingleVideoGetlistAPIRequest struct { + model.Params + // 视频外部来源类型: 1:YOUKU, 2:MONGO_TV, 3:TAOTVMEDIA, 4:GOLIVE + _extType int64 + // 审核状态:1未提审,2审核中,3通过,4不通过,5已下线 + _licenseState int64 + // 单页数量 + _pageSize int64 + // 查询时间范围,结束时间 + _gmtEnd string + // 视频id + _extVideoStrId string + // 查询多个审核状态 + _licenseStateList []int64 + // 时间类型:1-licenseSubmitTime, 2-licenseAuditTime, 3-youkuPublishTime + _dateType int64 + // 主分类 + _category int64 + // 页码 + _pageNo int64 + // 查询时间范围,开始时间 + _gmtStart string + // 牌照方 + _license int64 + // 视屏名称 + _videoTitleLike string + // 审核优先级,紧急4,高3,中2,低1 + _priority int64 +} + +// 初始化YunosTvpubadminContentSingleVideoGetlistAPIRequest对象 +func NewYunosTvpubadminContentSingleVideoGetlistRequest() *YunosTvpubadminContentSingleVideoGetlistAPIRequest{ + return &YunosTvpubadminContentSingleVideoGetlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentSingleVideoGetlistAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.single.video.getlist" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentSingleVideoGetlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExtType Setter +// 视频外部来源类型: 1:YOUKU, 2:MONGO_TV, 3:TAOTVMEDIA, 4:GOLIVE +func (r *YunosTvpubadminContentSingleVideoGetlistAPIRequest) SetExtType(_extType int64) error { + r._extType = _extType + r.Set("ext_type", _extType) + return nil +} + +// ExtType Getter +func (r YunosTvpubadminContentSingleVideoGetlistAPIRequest) GetExtType() int64 { + return r._extType +} +// LicenseState Setter +// 审核状态:1未提审,2审核中,3通过,4不通过,5已下线 +func (r *YunosTvpubadminContentSingleVideoGetlistAPIRequest) SetLicenseState(_licenseState int64) error { + r._licenseState = _licenseState + r.Set("license_state", _licenseState) + return nil +} + +// LicenseState Getter +func (r YunosTvpubadminContentSingleVideoGetlistAPIRequest) GetLicenseState() int64 { + return r._licenseState +} +// PageSize Setter +// 单页数量 +func (r *YunosTvpubadminContentSingleVideoGetlistAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r YunosTvpubadminContentSingleVideoGetlistAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// GmtEnd Setter +// 查询时间范围,结束时间 +func (r *YunosTvpubadminContentSingleVideoGetlistAPIRequest) SetGmtEnd(_gmtEnd string) error { + r._gmtEnd = _gmtEnd + r.Set("gmt_end", _gmtEnd) + return nil +} + +// GmtEnd Getter +func (r YunosTvpubadminContentSingleVideoGetlistAPIRequest) GetGmtEnd() string { + return r._gmtEnd +} +// ExtVideoStrId Setter +// 视频id +func (r *YunosTvpubadminContentSingleVideoGetlistAPIRequest) SetExtVideoStrId(_extVideoStrId string) error { + r._extVideoStrId = _extVideoStrId + r.Set("ext_video_str_id", _extVideoStrId) + return nil +} + +// ExtVideoStrId Getter +func (r YunosTvpubadminContentSingleVideoGetlistAPIRequest) GetExtVideoStrId() string { + return r._extVideoStrId +} +// LicenseStateList Setter +// 查询多个审核状态 +func (r *YunosTvpubadminContentSingleVideoGetlistAPIRequest) SetLicenseStateList(_licenseStateList []int64) error { + r._licenseStateList = _licenseStateList + r.Set("license_state_list", _licenseStateList) + return nil +} + +// LicenseStateList Getter +func (r YunosTvpubadminContentSingleVideoGetlistAPIRequest) GetLicenseStateList() []int64 { + return r._licenseStateList +} +// DateType Setter +// 时间类型:1-licenseSubmitTime, 2-licenseAuditTime, 3-youkuPublishTime +func (r *YunosTvpubadminContentSingleVideoGetlistAPIRequest) SetDateType(_dateType int64) error { + r._dateType = _dateType + r.Set("date_type", _dateType) + return nil +} + +// DateType Getter +func (r YunosTvpubadminContentSingleVideoGetlistAPIRequest) GetDateType() int64 { + return r._dateType +} +// Category Setter +// 主分类 +func (r *YunosTvpubadminContentSingleVideoGetlistAPIRequest) SetCategory(_category int64) error { + r._category = _category + r.Set("category", _category) + return nil +} + +// Category Getter +func (r YunosTvpubadminContentSingleVideoGetlistAPIRequest) GetCategory() int64 { + return r._category +} +// PageNo Setter +// 页码 +func (r *YunosTvpubadminContentSingleVideoGetlistAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r YunosTvpubadminContentSingleVideoGetlistAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// GmtStart Setter +// 查询时间范围,开始时间 +func (r *YunosTvpubadminContentSingleVideoGetlistAPIRequest) SetGmtStart(_gmtStart string) error { + r._gmtStart = _gmtStart + r.Set("gmt_start", _gmtStart) + return nil +} + +// GmtStart Getter +func (r YunosTvpubadminContentSingleVideoGetlistAPIRequest) GetGmtStart() string { + return r._gmtStart +} +// License Setter +// 牌照方 +func (r *YunosTvpubadminContentSingleVideoGetlistAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminContentSingleVideoGetlistAPIRequest) GetLicense() int64 { + return r._license +} +// VideoTitleLike Setter +// 视屏名称 +func (r *YunosTvpubadminContentSingleVideoGetlistAPIRequest) SetVideoTitleLike(_videoTitleLike string) error { + r._videoTitleLike = _videoTitleLike + r.Set("video_title_like", _videoTitleLike) + return nil +} + +// VideoTitleLike Getter +func (r YunosTvpubadminContentSingleVideoGetlistAPIRequest) GetVideoTitleLike() string { + return r._videoTitleLike +} +// Priority Setter +// 审核优先级,紧急4,高3,中2,低1 +func (r *YunosTvpubadminContentSingleVideoGetlistAPIRequest) SetPriority(_priority int64) error { + r._priority = _priority + r.Set("priority", _priority) + return nil +} + +// Priority Getter +func (r YunosTvpubadminContentSingleVideoGetlistAPIRequest) GetPriority() int64 { + return r._priority +} diff --git a/model/tvupadmin/YunosTvpubadminContentSingleVideoGetlistAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentSingleVideoGetlistAPIResponse.go new file mode 100644 index 0000000000..1897d4d2a7 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentSingleVideoGetlistAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单视频审核获取视频列表 API返回值 +yunos.tvpubadmin.content.single.video.getlist + +牌照方在审核单视频时获取单视频列表接口 +*/ +type YunosTvpubadminContentSingleVideoGetlistAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentSingleVideoGetlistAPIResponseModel +} + +// 单视频审核获取视频列表 成功返回结果 +type YunosTvpubadminContentSingleVideoGetlistAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_single_video_getlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentSingleVideoGetlistResponse.go b/model/tvupadmin/YunosTvpubadminContentSingleVideoGetlistResponse.go deleted file mode 100644 index 9684fd548f..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentSingleVideoGetlistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单视频审核获取视频列表 API返回值 -yunos.tvpubadmin.content.single.video.getlist - -牌照方在审核单视频时获取单视频列表接口 -*/ -type YunosTvpubadminContentSingleVideoGetlistAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentSingleVideoGetlistResponse -} - -// 单视频审核获取视频列表 成功返回结果 -type YunosTvpubadminContentSingleVideoGetlistResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_single_video_getlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest.go new file mode 100644 index 0000000000..9a4ad29694 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest.go @@ -0,0 +1,108 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单视频审核提交审核结果 API请求 +yunos.tvpubadmin.content.single.video.submitauditresult + +单视频审核提交审核结果 +*/ +type YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest struct { + model.Params + // 审核人 + _auditor string + // 审核状态:1未提审,2审核中,3通过,4不通过,5已下线 + _licenseState int64 + // 牌照方 + _license int64 + // 备注说明 + _auditComment string + // 视频审核ID + _videoAuditId int64 +} + +// 初始化YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest对象 +func NewYunosTvpubadminContentSingleVideoSubmitauditresultRequest() *YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest{ + return &YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.single.video.submitauditresult" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Auditor Setter +// 审核人 +func (r *YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest) SetAuditor(_auditor string) error { + r._auditor = _auditor + r.Set("auditor", _auditor) + return nil +} + +// Auditor Getter +func (r YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest) GetAuditor() string { + return r._auditor +} +// LicenseState Setter +// 审核状态:1未提审,2审核中,3通过,4不通过,5已下线 +func (r *YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest) SetLicenseState(_licenseState int64) error { + r._licenseState = _licenseState + r.Set("license_state", _licenseState) + return nil +} + +// LicenseState Getter +func (r YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest) GetLicenseState() int64 { + return r._licenseState +} +// License Setter +// 牌照方 +func (r *YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest) GetLicense() int64 { + return r._license +} +// AuditComment Setter +// 备注说明 +func (r *YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest) SetAuditComment(_auditComment string) error { + r._auditComment = _auditComment + r.Set("audit_comment", _auditComment) + return nil +} + +// AuditComment Getter +func (r YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest) GetAuditComment() string { + return r._auditComment +} +// VideoAuditId Setter +// 视频审核ID +func (r *YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest) SetVideoAuditId(_videoAuditId int64) error { + r._videoAuditId = _videoAuditId + r.Set("video_audit_id", _videoAuditId) + return nil +} + +// VideoAuditId Getter +func (r YunosTvpubadminContentSingleVideoSubmitauditresultAPIRequest) GetVideoAuditId() int64 { + return r._videoAuditId +} diff --git a/model/tvupadmin/YunosTvpubadminContentSingleVideoSubmitauditresultAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentSingleVideoSubmitauditresultAPIResponse.go new file mode 100644 index 0000000000..170fe840ef --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentSingleVideoSubmitauditresultAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单视频审核提交审核结果 API返回值 +yunos.tvpubadmin.content.single.video.submitauditresult + +单视频审核提交审核结果 +*/ +type YunosTvpubadminContentSingleVideoSubmitauditresultAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentSingleVideoSubmitauditresultAPIResponseModel +} + +// 单视频审核提交审核结果 成功返回结果 +type YunosTvpubadminContentSingleVideoSubmitauditresultAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_single_video_submitauditresult_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object bool `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentSingleVideoSubmitauditresultResponse.go b/model/tvupadmin/YunosTvpubadminContentSingleVideoSubmitauditresultResponse.go deleted file mode 100644 index 563269bcf8..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentSingleVideoSubmitauditresultResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单视频审核提交审核结果 API返回值 -yunos.tvpubadmin.content.single.video.submitauditresult - -单视频审核提交审核结果 -*/ -type YunosTvpubadminContentSingleVideoSubmitauditresultAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentSingleVideoSubmitauditresultResponse -} - -// 单视频审核提交审核结果 成功返回结果 -type YunosTvpubadminContentSingleVideoSubmitauditresultResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_single_video_submitauditresult_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object bool `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentTableauditOfflinelauncheritemAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentTableauditOfflinelauncheritemAPIRequest.go new file mode 100644 index 0000000000..9291f05d5d --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentTableauditOfflinelauncheritemAPIRequest.go @@ -0,0 +1,66 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +运营位管理-联盟一体机下线运营位内容 API请求 +yunos.tvpubadmin.content.tableaudit.offlinelauncheritem + +运营位管理-联盟一体机下线运营位内容 +*/ +type YunosTvpubadminContentTableauditOfflinelauncheritemAPIRequest struct { + model.Params + // 元数据主键id + _id int64 + // 联盟:TV_OTT,一体机:TV_ALLINONE + _terminalType string +} + +// 初始化YunosTvpubadminContentTableauditOfflinelauncheritemAPIRequest对象 +func NewYunosTvpubadminContentTableauditOfflinelauncheritemRequest() *YunosTvpubadminContentTableauditOfflinelauncheritemAPIRequest{ + return &YunosTvpubadminContentTableauditOfflinelauncheritemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentTableauditOfflinelauncheritemAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.tableaudit.offlinelauncheritem" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentTableauditOfflinelauncheritemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 元数据主键id +func (r *YunosTvpubadminContentTableauditOfflinelauncheritemAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r YunosTvpubadminContentTableauditOfflinelauncheritemAPIRequest) GetId() int64 { + return r._id +} +// TerminalType Setter +// 联盟:TV_OTT,一体机:TV_ALLINONE +func (r *YunosTvpubadminContentTableauditOfflinelauncheritemAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r YunosTvpubadminContentTableauditOfflinelauncheritemAPIRequest) GetTerminalType() string { + return r._terminalType +} diff --git a/model/tvupadmin/YunosTvpubadminContentTableauditOfflinelauncheritemAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentTableauditOfflinelauncheritemAPIResponse.go new file mode 100644 index 0000000000..d513979f93 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentTableauditOfflinelauncheritemAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +运营位管理-联盟一体机下线运营位内容 API返回值 +yunos.tvpubadmin.content.tableaudit.offlinelauncheritem + +运营位管理-联盟一体机下线运营位内容 +*/ +type YunosTvpubadminContentTableauditOfflinelauncheritemAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentTableauditOfflinelauncheritemAPIResponseModel +} + +// 运营位管理-联盟一体机下线运营位内容 成功返回结果 +type YunosTvpubadminContentTableauditOfflinelauncheritemAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_tableaudit_offlinelauncheritem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 下线桌面坑位内容(用于联盟、一体机) + Object bool `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentTableauditOfflinelauncheritemResponse.go b/model/tvupadmin/YunosTvpubadminContentTableauditOfflinelauncheritemResponse.go deleted file mode 100644 index 3fa6f8e489..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentTableauditOfflinelauncheritemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -运营位管理-联盟一体机下线运营位内容 API返回值 -yunos.tvpubadmin.content.tableaudit.offlinelauncheritem - -运营位管理-联盟一体机下线运营位内容 -*/ -type YunosTvpubadminContentTableauditOfflinelauncheritemAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentTableauditOfflinelauncheritemResponse -} - -// 运营位管理-联盟一体机下线运营位内容 成功返回结果 -type YunosTvpubadminContentTableauditOfflinelauncheritemResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_tableaudit_offlinelauncheritem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 下线桌面坑位内容(用于联盟、一体机) - Object bool `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentTableauditQuerychilddesktopAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentTableauditQuerychilddesktopAPIRequest.go new file mode 100644 index 0000000000..74c3f4bff5 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentTableauditQuerychilddesktopAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松查看小酷宝桌面坑位元数据列表 API请求 +yunos.tvpubadmin.content.tableaudit.querychilddesktop + +迎客松查看小酷宝桌面坑位元数据列表 +*/ +type YunosTvpubadminContentTableauditQuerychilddesktopAPIRequest struct { + model.Params + // 小酷宝桌面坑位查询参数 + _query string +} + +// 初始化YunosTvpubadminContentTableauditQuerychilddesktopAPIRequest对象 +func NewYunosTvpubadminContentTableauditQuerychilddesktopRequest() *YunosTvpubadminContentTableauditQuerychilddesktopAPIRequest{ + return &YunosTvpubadminContentTableauditQuerychilddesktopAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentTableauditQuerychilddesktopAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.tableaudit.querychilddesktop" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentTableauditQuerychilddesktopAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 小酷宝桌面坑位查询参数 +func (r *YunosTvpubadminContentTableauditQuerychilddesktopAPIRequest) SetQuery(_query string) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r YunosTvpubadminContentTableauditQuerychilddesktopAPIRequest) GetQuery() string { + return r._query +} diff --git a/model/tvupadmin/YunosTvpubadminContentTableauditQuerychilddesktopAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentTableauditQuerychilddesktopAPIResponse.go new file mode 100644 index 0000000000..2f3fd3e827 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentTableauditQuerychilddesktopAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松查看小酷宝桌面坑位元数据列表 API返回值 +yunos.tvpubadmin.content.tableaudit.querychilddesktop + +迎客松查看小酷宝桌面坑位元数据列表 +*/ +type YunosTvpubadminContentTableauditQuerychilddesktopAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentTableauditQuerychilddesktopAPIResponseModel +} + +// 迎客松查看小酷宝桌面坑位元数据列表 成功返回结果 +type YunosTvpubadminContentTableauditQuerychilddesktopAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_tableaudit_querychilddesktop_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentTableauditQuerychilddesktopResponse.go b/model/tvupadmin/YunosTvpubadminContentTableauditQuerychilddesktopResponse.go deleted file mode 100644 index 3d4ff9c206..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentTableauditQuerychilddesktopResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -迎客松查看小酷宝桌面坑位元数据列表 API返回值 -yunos.tvpubadmin.content.tableaudit.querychilddesktop - -迎客松查看小酷宝桌面坑位元数据列表 -*/ -type YunosTvpubadminContentTableauditQuerychilddesktopAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentTableauditQuerychilddesktopResponse -} - -// 迎客松查看小酷宝桌面坑位元数据列表 成功返回结果 -type YunosTvpubadminContentTableauditQuerychilddesktopResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_tableaudit_querychilddesktop_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentTableauditQuerylauncherAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentTableauditQuerylauncherAPIRequest.go new file mode 100644 index 0000000000..34d1ecc7a0 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentTableauditQuerylauncherAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +运营位管控-查询联盟一体机运营位元数据列表 API请求 +yunos.tvpubadmin.content.tableaudit.querylauncher + +运营位管控-查询联盟一体机运营位元数据列表 +*/ +type YunosTvpubadminContentTableauditQuerylauncherAPIRequest struct { + model.Params + // 桌面坑位审核查询条件,json格式 + _tableAuditQuery string +} + +// 初始化YunosTvpubadminContentTableauditQuerylauncherAPIRequest对象 +func NewYunosTvpubadminContentTableauditQuerylauncherRequest() *YunosTvpubadminContentTableauditQuerylauncherAPIRequest{ + return &YunosTvpubadminContentTableauditQuerylauncherAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentTableauditQuerylauncherAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.tableaudit.querylauncher" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentTableauditQuerylauncherAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TableAuditQuery Setter +// 桌面坑位审核查询条件,json格式 +func (r *YunosTvpubadminContentTableauditQuerylauncherAPIRequest) SetTableAuditQuery(_tableAuditQuery string) error { + r._tableAuditQuery = _tableAuditQuery + r.Set("table_audit_query", _tableAuditQuery) + return nil +} + +// TableAuditQuery Getter +func (r YunosTvpubadminContentTableauditQuerylauncherAPIRequest) GetTableAuditQuery() string { + return r._tableAuditQuery +} diff --git a/model/tvupadmin/YunosTvpubadminContentTableauditQuerylauncherAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentTableauditQuerylauncherAPIResponse.go new file mode 100644 index 0000000000..8f021eea3a --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentTableauditQuerylauncherAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +运营位管控-查询联盟一体机运营位元数据列表 API返回值 +yunos.tvpubadmin.content.tableaudit.querylauncher + +运营位管控-查询联盟一体机运营位元数据列表 +*/ +type YunosTvpubadminContentTableauditQuerylauncherAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentTableauditQuerylauncherAPIResponseModel +} + +// 运营位管控-查询联盟一体机运营位元数据列表 成功返回结果 +type YunosTvpubadminContentTableauditQuerylauncherAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_tableaudit_querylauncher_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询桌面坑位内容列表(用于联盟、一体机) + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentTableauditQuerylauncherResponse.go b/model/tvupadmin/YunosTvpubadminContentTableauditQuerylauncherResponse.go deleted file mode 100644 index 5a4d8f9c73..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentTableauditQuerylauncherResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -运营位管控-查询联盟一体机运营位元数据列表 API返回值 -yunos.tvpubadmin.content.tableaudit.querylauncher - -运营位管控-查询联盟一体机运营位元数据列表 -*/ -type YunosTvpubadminContentTableauditQuerylauncherAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentTableauditQuerylauncherResponse -} - -// 运营位管控-查询联盟一体机运营位元数据列表 成功返回结果 -type YunosTvpubadminContentTableauditQuerylauncherResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_tableaudit_querylauncher_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询桌面坑位内容列表(用于联盟、一体机) - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentTableauditQuerymetaitemAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentTableauditQuerymetaitemAPIRequest.go new file mode 100644 index 0000000000..50aa3ad968 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentTableauditQuerymetaitemAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +运营位管控-查询魔盒运营位元数据列表 API请求 +yunos.tvpubadmin.content.tableaudit.querymetaitem + +运营位管控-查询魔盒运营位元数据列表 +*/ +type YunosTvpubadminContentTableauditQuerymetaitemAPIRequest struct { + model.Params + // 查询条件,json格式 + _tableAuditQueryBo string +} + +// 初始化YunosTvpubadminContentTableauditQuerymetaitemAPIRequest对象 +func NewYunosTvpubadminContentTableauditQuerymetaitemRequest() *YunosTvpubadminContentTableauditQuerymetaitemAPIRequest{ + return &YunosTvpubadminContentTableauditQuerymetaitemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentTableauditQuerymetaitemAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.tableaudit.querymetaitem" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentTableauditQuerymetaitemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TableAuditQueryBo Setter +// 查询条件,json格式 +func (r *YunosTvpubadminContentTableauditQuerymetaitemAPIRequest) SetTableAuditQueryBo(_tableAuditQueryBo string) error { + r._tableAuditQueryBo = _tableAuditQueryBo + r.Set("table_audit_query_bo", _tableAuditQueryBo) + return nil +} + +// TableAuditQueryBo Getter +func (r YunosTvpubadminContentTableauditQuerymetaitemAPIRequest) GetTableAuditQueryBo() string { + return r._tableAuditQueryBo +} diff --git a/model/tvupadmin/YunosTvpubadminContentTableauditQuerymetaitemAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentTableauditQuerymetaitemAPIResponse.go new file mode 100644 index 0000000000..15f6777dd4 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentTableauditQuerymetaitemAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +运营位管控-查询魔盒运营位元数据列表 API返回值 +yunos.tvpubadmin.content.tableaudit.querymetaitem + +运营位管控-查询魔盒运营位元数据列表 +*/ +type YunosTvpubadminContentTableauditQuerymetaitemAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentTableauditQuerymetaitemAPIResponseModel +} + +// 运营位管控-查询魔盒运营位元数据列表 成功返回结果 +type YunosTvpubadminContentTableauditQuerymetaitemAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_tableaudit_querymetaitem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查看桌面坑位元数据列表(用于魔盒) + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentTableauditQuerymetaitemResponse.go b/model/tvupadmin/YunosTvpubadminContentTableauditQuerymetaitemResponse.go deleted file mode 100644 index c6984f5794..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentTableauditQuerymetaitemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -运营位管控-查询魔盒运营位元数据列表 API返回值 -yunos.tvpubadmin.content.tableaudit.querymetaitem - -运营位管控-查询魔盒运营位元数据列表 -*/ -type YunosTvpubadminContentTableauditQuerymetaitemAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentTableauditQuerymetaitemResponse -} - -// 运营位管控-查询魔盒运营位元数据列表 成功返回结果 -type YunosTvpubadminContentTableauditQuerymetaitemResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_tableaudit_querymetaitem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查看桌面坑位元数据列表(用于魔盒) - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentTopicOfflineAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentTopicOfflineAPIRequest.go new file mode 100644 index 0000000000..8b90b0368f --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentTopicOfflineAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松专题下线 API请求 +yunos.tvpubadmin.content.topic.offline + +迎客松专题下线 +*/ +type YunosTvpubadminContentTopicOfflineAPIRequest struct { + model.Params + // id + _id int64 +} + +// 初始化YunosTvpubadminContentTopicOfflineAPIRequest对象 +func NewYunosTvpubadminContentTopicOfflineRequest() *YunosTvpubadminContentTopicOfflineAPIRequest{ + return &YunosTvpubadminContentTopicOfflineAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentTopicOfflineAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.topic.offline" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentTopicOfflineAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// id +func (r *YunosTvpubadminContentTopicOfflineAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r YunosTvpubadminContentTopicOfflineAPIRequest) GetId() int64 { + return r._id +} diff --git a/model/tvupadmin/YunosTvpubadminContentTopicOfflineAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentTopicOfflineAPIResponse.go new file mode 100644 index 0000000000..34e311cd34 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentTopicOfflineAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松专题下线 API返回值 +yunos.tvpubadmin.content.topic.offline + +迎客松专题下线 +*/ +type YunosTvpubadminContentTopicOfflineAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentTopicOfflineAPIResponseModel +} + +// 迎客松专题下线 成功返回结果 +type YunosTvpubadminContentTopicOfflineAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_topic_offline_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 下线操作结果 + Object bool `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentTopicOfflineResponse.go b/model/tvupadmin/YunosTvpubadminContentTopicOfflineResponse.go deleted file mode 100644 index 0287f09183..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentTopicOfflineResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -迎客松专题下线 API返回值 -yunos.tvpubadmin.content.topic.offline - -迎客松专题下线 -*/ -type YunosTvpubadminContentTopicOfflineAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentTopicOfflineResponse -} - -// 迎客松专题下线 成功返回结果 -type YunosTvpubadminContentTopicOfflineResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_topic_offline_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 下线操作结果 - Object bool `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentTopicQuerytopicAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentTopicQuerytopicAPIRequest.go new file mode 100644 index 0000000000..9990c19721 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentTopicQuerytopicAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松专题查询 API请求 +yunos.tvpubadmin.content.topic.querytopic + +迎客松专题查询 +*/ +type YunosTvpubadminContentTopicQuerytopicAPIRequest struct { + model.Params + // TopicAuditQueryBO + _topicAuditQuery string +} + +// 初始化YunosTvpubadminContentTopicQuerytopicAPIRequest对象 +func NewYunosTvpubadminContentTopicQuerytopicRequest() *YunosTvpubadminContentTopicQuerytopicAPIRequest{ + return &YunosTvpubadminContentTopicQuerytopicAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentTopicQuerytopicAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.topic.querytopic" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentTopicQuerytopicAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TopicAuditQuery Setter +// TopicAuditQueryBO +func (r *YunosTvpubadminContentTopicQuerytopicAPIRequest) SetTopicAuditQuery(_topicAuditQuery string) error { + r._topicAuditQuery = _topicAuditQuery + r.Set("topic_audit_query", _topicAuditQuery) + return nil +} + +// TopicAuditQuery Getter +func (r YunosTvpubadminContentTopicQuerytopicAPIRequest) GetTopicAuditQuery() string { + return r._topicAuditQuery +} diff --git a/model/tvupadmin/YunosTvpubadminContentTopicQuerytopicAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentTopicQuerytopicAPIResponse.go new file mode 100644 index 0000000000..90217006d8 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentTopicQuerytopicAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松专题查询 API返回值 +yunos.tvpubadmin.content.topic.querytopic + +迎客松专题查询 +*/ +type YunosTvpubadminContentTopicQuerytopicAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentTopicQuerytopicAPIResponseModel +} + +// 迎客松专题查询 成功返回结果 +type YunosTvpubadminContentTopicQuerytopicAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_topic_querytopic_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 专题列表 + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentTopicQuerytopicResponse.go b/model/tvupadmin/YunosTvpubadminContentTopicQuerytopicResponse.go deleted file mode 100644 index e13fe936f4..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentTopicQuerytopicResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -迎客松专题查询 API返回值 -yunos.tvpubadmin.content.topic.querytopic - -迎客松专题查询 -*/ -type YunosTvpubadminContentTopicQuerytopicAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentTopicQuerytopicResponse -} - -// 迎客松专题查询 成功返回结果 -type YunosTvpubadminContentTopicQuerytopicResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_topic_querytopic_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 专题列表 - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentVideoGetauditlistAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentVideoGetauditlistAPIRequest.go new file mode 100644 index 0000000000..0d60919413 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentVideoGetauditlistAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松视频审核记录查询 API请求 +yunos.tvpubadmin.content.video.getauditlist + +迎客松视频审核记录查询 +*/ +type YunosTvpubadminContentVideoGetauditlistAPIRequest struct { + model.Params + // 查询 + _query string +} + +// 初始化YunosTvpubadminContentVideoGetauditlistAPIRequest对象 +func NewYunosTvpubadminContentVideoGetauditlistRequest() *YunosTvpubadminContentVideoGetauditlistAPIRequest{ + return &YunosTvpubadminContentVideoGetauditlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentVideoGetauditlistAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.video.getauditlist" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentVideoGetauditlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 查询 +func (r *YunosTvpubadminContentVideoGetauditlistAPIRequest) SetQuery(_query string) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r YunosTvpubadminContentVideoGetauditlistAPIRequest) GetQuery() string { + return r._query +} diff --git a/model/tvupadmin/YunosTvpubadminContentVideoGetauditlistAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentVideoGetauditlistAPIResponse.go new file mode 100644 index 0000000000..8060499696 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentVideoGetauditlistAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松视频审核记录查询 API返回值 +yunos.tvpubadmin.content.video.getauditlist + +迎客松视频审核记录查询 +*/ +type YunosTvpubadminContentVideoGetauditlistAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentVideoGetauditlistAPIResponseModel +} + +// 迎客松视频审核记录查询 成功返回结果 +type YunosTvpubadminContentVideoGetauditlistAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_video_getauditlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 视频审核列表,json格式 + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentVideoGetauditlistResponse.go b/model/tvupadmin/YunosTvpubadminContentVideoGetauditlistResponse.go deleted file mode 100644 index 06412b7f8c..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentVideoGetauditlistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -迎客松视频审核记录查询 API返回值 -yunos.tvpubadmin.content.video.getauditlist - -迎客松视频审核记录查询 -*/ -type YunosTvpubadminContentVideoGetauditlistAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentVideoGetauditlistResponse -} - -// 迎客松视频审核记录查询 成功返回结果 -type YunosTvpubadminContentVideoGetauditlistResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_video_getauditlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 视频审核列表,json格式 - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminContentVideoSubmitauditresultAPIRequest.go b/model/tvupadmin/YunosTvpubadminContentVideoSubmitauditresultAPIRequest.go new file mode 100644 index 0000000000..8d9240e95d --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentVideoSubmitauditresultAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松提交视频审核结果 API请求 +yunos.tvpubadmin.content.video.submitauditresult + +迎客松提交视频审核结果 +*/ +type YunosTvpubadminContentVideoSubmitauditresultAPIRequest struct { + model.Params + // 审核结果,json格式 + _licenseAuditResult string +} + +// 初始化YunosTvpubadminContentVideoSubmitauditresultAPIRequest对象 +func NewYunosTvpubadminContentVideoSubmitauditresultRequest() *YunosTvpubadminContentVideoSubmitauditresultAPIRequest{ + return &YunosTvpubadminContentVideoSubmitauditresultAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminContentVideoSubmitauditresultAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.content.video.submitauditresult" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminContentVideoSubmitauditresultAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LicenseAuditResult Setter +// 审核结果,json格式 +func (r *YunosTvpubadminContentVideoSubmitauditresultAPIRequest) SetLicenseAuditResult(_licenseAuditResult string) error { + r._licenseAuditResult = _licenseAuditResult + r.Set("license_audit_result", _licenseAuditResult) + return nil +} + +// LicenseAuditResult Getter +func (r YunosTvpubadminContentVideoSubmitauditresultAPIRequest) GetLicenseAuditResult() string { + return r._licenseAuditResult +} diff --git a/model/tvupadmin/YunosTvpubadminContentVideoSubmitauditresultAPIResponse.go b/model/tvupadmin/YunosTvpubadminContentVideoSubmitauditresultAPIResponse.go new file mode 100644 index 0000000000..60e986cb9a --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminContentVideoSubmitauditresultAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松提交视频审核结果 API返回值 +yunos.tvpubadmin.content.video.submitauditresult + +迎客松提交视频审核结果 +*/ +type YunosTvpubadminContentVideoSubmitauditresultAPIResponse struct { + model.CommonResponse + YunosTvpubadminContentVideoSubmitauditresultAPIResponseModel +} + +// 迎客松提交视频审核结果 成功返回结果 +type YunosTvpubadminContentVideoSubmitauditresultAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_content_video_submitauditresult_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object bool `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminContentVideoSubmitauditresultResponse.go b/model/tvupadmin/YunosTvpubadminContentVideoSubmitauditresultResponse.go deleted file mode 100644 index c33a3ce690..0000000000 --- a/model/tvupadmin/YunosTvpubadminContentVideoSubmitauditresultResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -迎客松提交视频审核结果 API返回值 -yunos.tvpubadmin.content.video.submitauditresult - -迎客松提交视频审核结果 -*/ -type YunosTvpubadminContentVideoSubmitauditresultAPIResponse struct { - model.CommonResponse - YunosTvpubadminContentVideoSubmitauditresultResponse -} - -// 迎客松提交视频审核结果 成功返回结果 -type YunosTvpubadminContentVideoSubmitauditresultResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_content_video_submitauditresult_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object bool `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDataQueryAPIRequest.go b/model/tvupadmin/YunosTvpubadminDataQueryAPIRequest.go new file mode 100644 index 0000000000..40ee51a03a --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDataQueryAPIRequest.go @@ -0,0 +1,136 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +魔盒统计数据查询接口 API请求 +yunos.tvpubadmin.data.query + +用于华数查询魔盒上的一些用户统计数据 +*/ +type YunosTvpubadminDataQueryAPIRequest struct { + model.Params + // 表名 + _tableName string + // 列名 + _columns string + // UUID + _uuid string + // 数据类型 + _dataTypeId int64 + // 日期 + _date string + // 页码 + _pageNo int64 + // 每页个数 + _pageSize int64 +} + +// 初始化YunosTvpubadminDataQueryAPIRequest对象 +func NewYunosTvpubadminDataQueryRequest() *YunosTvpubadminDataQueryAPIRequest{ + return &YunosTvpubadminDataQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDataQueryAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.data.query" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDataQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TableName Setter +// 表名 +func (r *YunosTvpubadminDataQueryAPIRequest) SetTableName(_tableName string) error { + r._tableName = _tableName + r.Set("table_name", _tableName) + return nil +} + +// TableName Getter +func (r YunosTvpubadminDataQueryAPIRequest) GetTableName() string { + return r._tableName +} +// Columns Setter +// 列名 +func (r *YunosTvpubadminDataQueryAPIRequest) SetColumns(_columns string) error { + r._columns = _columns + r.Set("columns", _columns) + return nil +} + +// Columns Getter +func (r YunosTvpubadminDataQueryAPIRequest) GetColumns() string { + return r._columns +} +// Uuid Setter +// UUID +func (r *YunosTvpubadminDataQueryAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r YunosTvpubadminDataQueryAPIRequest) GetUuid() string { + return r._uuid +} +// DataTypeId Setter +// 数据类型 +func (r *YunosTvpubadminDataQueryAPIRequest) SetDataTypeId(_dataTypeId int64) error { + r._dataTypeId = _dataTypeId + r.Set("data_type_id", _dataTypeId) + return nil +} + +// DataTypeId Getter +func (r YunosTvpubadminDataQueryAPIRequest) GetDataTypeId() int64 { + return r._dataTypeId +} +// Date Setter +// 日期 +func (r *YunosTvpubadminDataQueryAPIRequest) SetDate(_date string) error { + r._date = _date + r.Set("date", _date) + return nil +} + +// Date Getter +func (r YunosTvpubadminDataQueryAPIRequest) GetDate() string { + return r._date +} +// PageNo Setter +// 页码 +func (r *YunosTvpubadminDataQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r YunosTvpubadminDataQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页个数 +func (r *YunosTvpubadminDataQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r YunosTvpubadminDataQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tvupadmin/YunosTvpubadminDataQueryAPIResponse.go b/model/tvupadmin/YunosTvpubadminDataQueryAPIResponse.go new file mode 100644 index 0000000000..2bc476c6d3 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDataQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +魔盒统计数据查询接口 API返回值 +yunos.tvpubadmin.data.query + +用于华数查询魔盒上的一些用户统计数据 +*/ +type YunosTvpubadminDataQueryAPIResponse struct { + model.CommonResponse + YunosTvpubadminDataQueryAPIResponseModel +} + +// 魔盒统计数据查询接口 成功返回结果 +type YunosTvpubadminDataQueryAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_data_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *DfPageResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDataQueryResponse.go b/model/tvupadmin/YunosTvpubadminDataQueryResponse.go deleted file mode 100644 index 3ba4c67e3a..0000000000 --- a/model/tvupadmin/YunosTvpubadminDataQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -魔盒统计数据查询接口 API返回值 -yunos.tvpubadmin.data.query - -用于华数查询魔盒上的一些用户统计数据 -*/ -type YunosTvpubadminDataQueryAPIResponse struct { - model.CommonResponse - YunosTvpubadminDataQueryResponse -} - -// 魔盒统计数据查询接口 成功返回结果 -type YunosTvpubadminDataQueryResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_data_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *DfPageResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceApkinfoAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceApkinfoAPIRequest.go new file mode 100644 index 0000000000..72ffb66337 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceApkinfoAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取停开服apk信息 API请求 +yunos.tvpubadmin.device.apkinfo + +获取停开服apk信息 +*/ +type YunosTvpubadminDeviceApkinfoAPIRequest struct { + model.Params + // apkid + _id int64 +} + +// 初始化YunosTvpubadminDeviceApkinfoAPIRequest对象 +func NewYunosTvpubadminDeviceApkinfoRequest() *YunosTvpubadminDeviceApkinfoAPIRequest{ + return &YunosTvpubadminDeviceApkinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceApkinfoAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.apkinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceApkinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// apkid +func (r *YunosTvpubadminDeviceApkinfoAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r YunosTvpubadminDeviceApkinfoAPIRequest) GetId() int64 { + return r._id +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceApkinfoAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceApkinfoAPIResponse.go new file mode 100644 index 0000000000..2605b766c9 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceApkinfoAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取停开服apk信息 API返回值 +yunos.tvpubadmin.device.apkinfo + +获取停开服apk信息 +*/ +type YunosTvpubadminDeviceApkinfoAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceApkinfoAPIResponseModel +} + +// 获取停开服apk信息 成功返回结果 +type YunosTvpubadminDeviceApkinfoAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_apkinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object *DicControlApkDo `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceApkinfoResponse.go b/model/tvupadmin/YunosTvpubadminDeviceApkinfoResponse.go deleted file mode 100644 index a87e9ed574..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceApkinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取停开服apk信息 API返回值 -yunos.tvpubadmin.device.apkinfo - -获取停开服apk信息 -*/ -type YunosTvpubadminDeviceApkinfoAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceApkinfoResponse -} - -// 获取停开服apk信息 成功返回结果 -type YunosTvpubadminDeviceApkinfoResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_apkinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object *DicControlApkDo `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceApksAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceApksAPIRequest.go new file mode 100644 index 0000000000..8bb0aadc58 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceApksAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取停开服apk列表 API请求 +yunos.tvpubadmin.device.apks + +获取停开服apk列表 +*/ +type YunosTvpubadminDeviceApksAPIRequest struct { + model.Params + // 牌照 + _license int64 +} + +// 初始化YunosTvpubadminDeviceApksAPIRequest对象 +func NewYunosTvpubadminDeviceApksRequest() *YunosTvpubadminDeviceApksAPIRequest{ + return &YunosTvpubadminDeviceApksAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceApksAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.apks" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceApksAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// License Setter +// 牌照 +func (r *YunosTvpubadminDeviceApksAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminDeviceApksAPIRequest) GetLicense() int64 { + return r._license +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceApksAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceApksAPIResponse.go new file mode 100644 index 0000000000..eadadb2c90 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceApksAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取停开服apk列表 API返回值 +yunos.tvpubadmin.device.apks + +获取停开服apk列表 +*/ +type YunosTvpubadminDeviceApksAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceApksAPIResponseModel +} + +// 获取停开服apk列表 成功返回结果 +type YunosTvpubadminDeviceApksAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_apks_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + ApkList []DicControlApkDo `json:"apk_list,omitempty" xml:"apk_list>dic_control_apk_do,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceApksResponse.go b/model/tvupadmin/YunosTvpubadminDeviceApksResponse.go deleted file mode 100644 index 0f1162288e..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceApksResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取停开服apk列表 API返回值 -yunos.tvpubadmin.device.apks - -获取停开服apk列表 -*/ -type YunosTvpubadminDeviceApksAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceApksResponse -} - -// 获取停开服apk列表 成功返回结果 -type YunosTvpubadminDeviceApksResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_apks_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - ApkList []DicControlApkDo `json:"apk_list,omitempty" xml:"apk_list>dic_control_apk_do,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceAppupgradedetailAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceAppupgradedetailAPIRequest.go new file mode 100644 index 0000000000..0f08995cf7 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceAppupgradedetailAPIRequest.go @@ -0,0 +1,66 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取应用升级详情 API请求 +yunos.tvpubadmin.device.appupgradedetail + +获取应用升级详情 +*/ +type YunosTvpubadminDeviceAppupgradedetailAPIRequest struct { + model.Params + // 应用升级的ID + _versionId int64 + // 牌照方 + _license int64 +} + +// 初始化YunosTvpubadminDeviceAppupgradedetailAPIRequest对象 +func NewYunosTvpubadminDeviceAppupgradedetailRequest() *YunosTvpubadminDeviceAppupgradedetailAPIRequest{ + return &YunosTvpubadminDeviceAppupgradedetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceAppupgradedetailAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.appupgradedetail" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceAppupgradedetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VersionId Setter +// 应用升级的ID +func (r *YunosTvpubadminDeviceAppupgradedetailAPIRequest) SetVersionId(_versionId int64) error { + r._versionId = _versionId + r.Set("version_id", _versionId) + return nil +} + +// VersionId Getter +func (r YunosTvpubadminDeviceAppupgradedetailAPIRequest) GetVersionId() int64 { + return r._versionId +} +// License Setter +// 牌照方 +func (r *YunosTvpubadminDeviceAppupgradedetailAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminDeviceAppupgradedetailAPIRequest) GetLicense() int64 { + return r._license +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceAppupgradedetailAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceAppupgradedetailAPIResponse.go new file mode 100644 index 0000000000..70d77e0f43 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceAppupgradedetailAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取应用升级详情 API返回值 +yunos.tvpubadmin.device.appupgradedetail + +获取应用升级详情 +*/ +type YunosTvpubadminDeviceAppupgradedetailAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceAppupgradedetailAPIResponseModel +} + +// 获取应用升级详情 成功返回结果 +type YunosTvpubadminDeviceAppupgradedetailAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_appupgradedetail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 应用列表 + Object *AppVersionAuditDo `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceAppupgradedetailResponse.go b/model/tvupadmin/YunosTvpubadminDeviceAppupgradedetailResponse.go deleted file mode 100644 index f43ad218a2..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceAppupgradedetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取应用升级详情 API返回值 -yunos.tvpubadmin.device.appupgradedetail - -获取应用升级详情 -*/ -type YunosTvpubadminDeviceAppupgradedetailAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceAppupgradedetailResponse -} - -// 获取应用升级详情 成功返回结果 -type YunosTvpubadminDeviceAppupgradedetailResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_appupgradedetail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 应用列表 - Object *AppVersionAuditDo `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceAppupgradequeryAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceAppupgradequeryAPIRequest.go new file mode 100644 index 0000000000..be0ce4aeb7 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceAppupgradequeryAPIRequest.go @@ -0,0 +1,108 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +应用升级查询 API请求 +yunos.tvpubadmin.device.appupgradequery + +应用升级查询 +*/ +type YunosTvpubadminDeviceAppupgradequeryAPIRequest struct { + model.Params + // 牌照方 + _license int64 + // 审核状态 + _status string + // 时间范围 + _dayRange int64 + // 第几页 + _pageNo int64 + // 数据大小 + _pageSize int64 +} + +// 初始化YunosTvpubadminDeviceAppupgradequeryAPIRequest对象 +func NewYunosTvpubadminDeviceAppupgradequeryRequest() *YunosTvpubadminDeviceAppupgradequeryAPIRequest{ + return &YunosTvpubadminDeviceAppupgradequeryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceAppupgradequeryAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.appupgradequery" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceAppupgradequeryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// License Setter +// 牌照方 +func (r *YunosTvpubadminDeviceAppupgradequeryAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminDeviceAppupgradequeryAPIRequest) GetLicense() int64 { + return r._license +} +// Status Setter +// 审核状态 +func (r *YunosTvpubadminDeviceAppupgradequeryAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r YunosTvpubadminDeviceAppupgradequeryAPIRequest) GetStatus() string { + return r._status +} +// DayRange Setter +// 时间范围 +func (r *YunosTvpubadminDeviceAppupgradequeryAPIRequest) SetDayRange(_dayRange int64) error { + r._dayRange = _dayRange + r.Set("day_range", _dayRange) + return nil +} + +// DayRange Getter +func (r YunosTvpubadminDeviceAppupgradequeryAPIRequest) GetDayRange() int64 { + return r._dayRange +} +// PageNo Setter +// 第几页 +func (r *YunosTvpubadminDeviceAppupgradequeryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r YunosTvpubadminDeviceAppupgradequeryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 数据大小 +func (r *YunosTvpubadminDeviceAppupgradequeryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r YunosTvpubadminDeviceAppupgradequeryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceAppupgradequeryAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceAppupgradequeryAPIResponse.go new file mode 100644 index 0000000000..ed2a6225f6 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceAppupgradequeryAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +应用升级查询 API返回值 +yunos.tvpubadmin.device.appupgradequery + +应用升级查询 +*/ +type YunosTvpubadminDeviceAppupgradequeryAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceAppupgradequeryAPIResponseModel +} + +// 应用升级查询 成功返回结果 +type YunosTvpubadminDeviceAppupgradequeryAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_appupgradequery_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 具体的数据结构 + ObjectList *PaginationDo `json:"object_list,omitempty" xml:"object_list,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceAppupgradequeryResponse.go b/model/tvupadmin/YunosTvpubadminDeviceAppupgradequeryResponse.go deleted file mode 100644 index e50bf60975..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceAppupgradequeryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -应用升级查询 API返回值 -yunos.tvpubadmin.device.appupgradequery - -应用升级查询 -*/ -type YunosTvpubadminDeviceAppupgradequeryAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceAppupgradequeryResponse -} - -// 应用升级查询 成功返回结果 -type YunosTvpubadminDeviceAppupgradequeryResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_appupgradequery_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 具体的数据结构 - ObjectList *PaginationDo `json:"object_list,omitempty" xml:"object_list,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceBrandsAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceBrandsAPIRequest.go new file mode 100644 index 0000000000..febfe4b02b --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceBrandsAPIRequest.go @@ -0,0 +1,66 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取终端类型下品牌列表 API请求 +yunos.tvpubadmin.device.brands + +获取终端类型下品牌列表 +*/ +type YunosTvpubadminDeviceBrandsAPIRequest struct { + model.Params + // 终端类型 + _terminalType string + // 牌照方 + _license int64 +} + +// 初始化YunosTvpubadminDeviceBrandsAPIRequest对象 +func NewYunosTvpubadminDeviceBrandsRequest() *YunosTvpubadminDeviceBrandsAPIRequest{ + return &YunosTvpubadminDeviceBrandsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceBrandsAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.brands" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceBrandsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TerminalType Setter +// 终端类型 +func (r *YunosTvpubadminDeviceBrandsAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r YunosTvpubadminDeviceBrandsAPIRequest) GetTerminalType() string { + return r._terminalType +} +// License Setter +// 牌照方 +func (r *YunosTvpubadminDeviceBrandsAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminDeviceBrandsAPIRequest) GetLicense() int64 { + return r._license +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceBrandsAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceBrandsAPIResponse.go new file mode 100644 index 0000000000..0c74c88c79 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceBrandsAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取终端类型下品牌列表 API返回值 +yunos.tvpubadmin.device.brands + +获取终端类型下品牌列表 +*/ +type YunosTvpubadminDeviceBrandsAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceBrandsAPIResponseModel +} + +// 获取终端类型下品牌列表 成功返回结果 +type YunosTvpubadminDeviceBrandsAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_brands_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + List []BrandDo `json:"list,omitempty" xml:"list>brand_do,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceBrandsResponse.go b/model/tvupadmin/YunosTvpubadminDeviceBrandsResponse.go deleted file mode 100644 index dc1432c84b..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceBrandsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取终端类型下品牌列表 API返回值 -yunos.tvpubadmin.device.brands - -获取终端类型下品牌列表 -*/ -type YunosTvpubadminDeviceBrandsAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceBrandsResponse -} - -// 获取终端类型下品牌列表 成功返回结果 -type YunosTvpubadminDeviceBrandsResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_brands_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - List []BrandDo `json:"list,omitempty" xml:"list>brand_do,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceModelsAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceModelsAPIRequest.go new file mode 100644 index 0000000000..07cfd35571 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceModelsAPIRequest.go @@ -0,0 +1,80 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取品牌下设备列表 API请求 +yunos.tvpubadmin.device.models + +获取品牌下设备列表 +*/ +type YunosTvpubadminDeviceModelsAPIRequest struct { + model.Params + // 终端类型 + _terminalType string + // 品牌ID + _brandId int64 + // 牌照方 + _license int64 +} + +// 初始化YunosTvpubadminDeviceModelsAPIRequest对象 +func NewYunosTvpubadminDeviceModelsRequest() *YunosTvpubadminDeviceModelsAPIRequest{ + return &YunosTvpubadminDeviceModelsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceModelsAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.models" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceModelsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TerminalType Setter +// 终端类型 +func (r *YunosTvpubadminDeviceModelsAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r YunosTvpubadminDeviceModelsAPIRequest) GetTerminalType() string { + return r._terminalType +} +// BrandId Setter +// 品牌ID +func (r *YunosTvpubadminDeviceModelsAPIRequest) SetBrandId(_brandId int64) error { + r._brandId = _brandId + r.Set("brand_id", _brandId) + return nil +} + +// BrandId Getter +func (r YunosTvpubadminDeviceModelsAPIRequest) GetBrandId() int64 { + return r._brandId +} +// License Setter +// 牌照方 +func (r *YunosTvpubadminDeviceModelsAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminDeviceModelsAPIRequest) GetLicense() int64 { + return r._license +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceModelsAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceModelsAPIResponse.go new file mode 100644 index 0000000000..ca68dbb912 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceModelsAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取品牌下设备列表 API返回值 +yunos.tvpubadmin.device.models + +获取品牌下设备列表 +*/ +type YunosTvpubadminDeviceModelsAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceModelsAPIResponseModel +} + +// 获取品牌下设备列表 成功返回结果 +type YunosTvpubadminDeviceModelsAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_models_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + ModelList []string `json:"model_list,omitempty" xml:"model_list>string,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceModelsResponse.go b/model/tvupadmin/YunosTvpubadminDeviceModelsResponse.go deleted file mode 100644 index e2a51b6fb3..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceModelsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取品牌下设备列表 API返回值 -yunos.tvpubadmin.device.models - -获取品牌下设备列表 -*/ -type YunosTvpubadminDeviceModelsAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceModelsResponse -} - -// 获取品牌下设备列表 成功返回结果 -type YunosTvpubadminDeviceModelsResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_models_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - ModelList []string `json:"model_list,omitempty" xml:"model_list>string,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceOsupgradedetailAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceOsupgradedetailAPIRequest.go new file mode 100644 index 0000000000..3e1b105b3a --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceOsupgradedetailAPIRequest.go @@ -0,0 +1,66 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取系统升级详情 API请求 +yunos.tvpubadmin.device.osupgradedetail + +获取系统升级详情 +*/ +type YunosTvpubadminDeviceOsupgradedetailAPIRequest struct { + model.Params + // 版本ID + _versionId int64 + // 牌照方 + _license int64 +} + +// 初始化YunosTvpubadminDeviceOsupgradedetailAPIRequest对象 +func NewYunosTvpubadminDeviceOsupgradedetailRequest() *YunosTvpubadminDeviceOsupgradedetailAPIRequest{ + return &YunosTvpubadminDeviceOsupgradedetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceOsupgradedetailAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.osupgradedetail" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceOsupgradedetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VersionId Setter +// 版本ID +func (r *YunosTvpubadminDeviceOsupgradedetailAPIRequest) SetVersionId(_versionId int64) error { + r._versionId = _versionId + r.Set("version_id", _versionId) + return nil +} + +// VersionId Getter +func (r YunosTvpubadminDeviceOsupgradedetailAPIRequest) GetVersionId() int64 { + return r._versionId +} +// License Setter +// 牌照方 +func (r *YunosTvpubadminDeviceOsupgradedetailAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminDeviceOsupgradedetailAPIRequest) GetLicense() int64 { + return r._license +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceOsupgradedetailAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceOsupgradedetailAPIResponse.go new file mode 100644 index 0000000000..6e96ce7f9d --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceOsupgradedetailAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取系统升级详情 API返回值 +yunos.tvpubadmin.device.osupgradedetail + +获取系统升级详情 +*/ +type YunosTvpubadminDeviceOsupgradedetailAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceOsupgradedetailAPIResponseModel +} + +// 获取系统升级详情 成功返回结果 +type YunosTvpubadminDeviceOsupgradedetailAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_osupgradedetail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 具体的数据对象 + Object *OsVersionAuditDo `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceOsupgradedetailResponse.go b/model/tvupadmin/YunosTvpubadminDeviceOsupgradedetailResponse.go deleted file mode 100644 index 7afbc87c80..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceOsupgradedetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取系统升级详情 API返回值 -yunos.tvpubadmin.device.osupgradedetail - -获取系统升级详情 -*/ -type YunosTvpubadminDeviceOsupgradedetailAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceOsupgradedetailResponse -} - -// 获取系统升级详情 成功返回结果 -type YunosTvpubadminDeviceOsupgradedetailResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_osupgradedetail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 具体的数据对象 - Object *OsVersionAuditDo `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceOsupgradequeryAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceOsupgradequeryAPIRequest.go new file mode 100644 index 0000000000..ebaef66fdd --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceOsupgradequeryAPIRequest.go @@ -0,0 +1,108 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +系统升级查询 API请求 +yunos.tvpubadmin.device.osupgradequery + +系统升级查询 +*/ +type YunosTvpubadminDeviceOsupgradequeryAPIRequest struct { + model.Params + // 牌照方 + _license int64 + // 审核状态 + _status string + // 时间范围 + _dayRange int64 + // 第几页 + _pageNo int64 + // 数据大小 + _pageSize int64 +} + +// 初始化YunosTvpubadminDeviceOsupgradequeryAPIRequest对象 +func NewYunosTvpubadminDeviceOsupgradequeryRequest() *YunosTvpubadminDeviceOsupgradequeryAPIRequest{ + return &YunosTvpubadminDeviceOsupgradequeryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceOsupgradequeryAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.osupgradequery" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceOsupgradequeryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// License Setter +// 牌照方 +func (r *YunosTvpubadminDeviceOsupgradequeryAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminDeviceOsupgradequeryAPIRequest) GetLicense() int64 { + return r._license +} +// Status Setter +// 审核状态 +func (r *YunosTvpubadminDeviceOsupgradequeryAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r YunosTvpubadminDeviceOsupgradequeryAPIRequest) GetStatus() string { + return r._status +} +// DayRange Setter +// 时间范围 +func (r *YunosTvpubadminDeviceOsupgradequeryAPIRequest) SetDayRange(_dayRange int64) error { + r._dayRange = _dayRange + r.Set("day_range", _dayRange) + return nil +} + +// DayRange Getter +func (r YunosTvpubadminDeviceOsupgradequeryAPIRequest) GetDayRange() int64 { + return r._dayRange +} +// PageNo Setter +// 第几页 +func (r *YunosTvpubadminDeviceOsupgradequeryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r YunosTvpubadminDeviceOsupgradequeryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 数据大小 +func (r *YunosTvpubadminDeviceOsupgradequeryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r YunosTvpubadminDeviceOsupgradequeryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceOsupgradequeryAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceOsupgradequeryAPIResponse.go new file mode 100644 index 0000000000..4c6cd0dd00 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceOsupgradequeryAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +系统升级查询 API返回值 +yunos.tvpubadmin.device.osupgradequery + +系统升级查询 +*/ +type YunosTvpubadminDeviceOsupgradequeryAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceOsupgradequeryAPIResponseModel +} + +// 系统升级查询 成功返回结果 +type YunosTvpubadminDeviceOsupgradequeryAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_osupgradequery_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 信息结构 + ObjectList *PaginationDo `json:"object_list,omitempty" xml:"object_list,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceOsupgradequeryResponse.go b/model/tvupadmin/YunosTvpubadminDeviceOsupgradequeryResponse.go deleted file mode 100644 index 4d78661c02..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceOsupgradequeryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -系统升级查询 API返回值 -yunos.tvpubadmin.device.osupgradequery - -系统升级查询 -*/ -type YunosTvpubadminDeviceOsupgradequeryAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceOsupgradequeryResponse -} - -// 系统升级查询 成功返回结果 -type YunosTvpubadminDeviceOsupgradequeryResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_osupgradequery_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 信息结构 - ObjectList *PaginationDo `json:"object_list,omitempty" xml:"object_list,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceQueryAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceQueryAPIRequest.go new file mode 100644 index 0000000000..27ffb83416 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceQueryAPIRequest.go @@ -0,0 +1,108 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备列表 API请求 +yunos.tvpubadmin.device.query + +获取设备列表 +*/ +type YunosTvpubadminDeviceQueryAPIRequest struct { + model.Params + // 终端类型 + _terminalType string + // 品牌ID + _brandId int64 + // 牌照方 + _license int64 + // 页码值 + _pageNo int64 + // 每页条数 + _pageSize int64 +} + +// 初始化YunosTvpubadminDeviceQueryAPIRequest对象 +func NewYunosTvpubadminDeviceQueryRequest() *YunosTvpubadminDeviceQueryAPIRequest{ + return &YunosTvpubadminDeviceQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceQueryAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.query" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TerminalType Setter +// 终端类型 +func (r *YunosTvpubadminDeviceQueryAPIRequest) SetTerminalType(_terminalType string) error { + r._terminalType = _terminalType + r.Set("terminal_type", _terminalType) + return nil +} + +// TerminalType Getter +func (r YunosTvpubadminDeviceQueryAPIRequest) GetTerminalType() string { + return r._terminalType +} +// BrandId Setter +// 品牌ID +func (r *YunosTvpubadminDeviceQueryAPIRequest) SetBrandId(_brandId int64) error { + r._brandId = _brandId + r.Set("brand_id", _brandId) + return nil +} + +// BrandId Getter +func (r YunosTvpubadminDeviceQueryAPIRequest) GetBrandId() int64 { + return r._brandId +} +// License Setter +// 牌照方 +func (r *YunosTvpubadminDeviceQueryAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminDeviceQueryAPIRequest) GetLicense() int64 { + return r._license +} +// PageNo Setter +// 页码值 +func (r *YunosTvpubadminDeviceQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r YunosTvpubadminDeviceQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数 +func (r *YunosTvpubadminDeviceQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r YunosTvpubadminDeviceQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceQueryAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceQueryAPIResponse.go new file mode 100644 index 0000000000..f7e09b2966 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备列表 API返回值 +yunos.tvpubadmin.device.query + +获取设备列表 +*/ +type YunosTvpubadminDeviceQueryAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceQueryAPIResponseModel +} + +// 获取设备列表 成功返回结果 +type YunosTvpubadminDeviceQueryAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object *PaginationDo `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceQueryResponse.go b/model/tvupadmin/YunosTvpubadminDeviceQueryResponse.go deleted file mode 100644 index 8754752465..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取设备列表 API返回值 -yunos.tvpubadmin.device.query - -获取设备列表 -*/ -type YunosTvpubadminDeviceQueryAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceQueryResponse -} - -// 获取设备列表 成功返回结果 -type YunosTvpubadminDeviceQueryResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object *PaginationDo `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceStatsAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceStatsAPIRequest.go new file mode 100644 index 0000000000..4727b423a0 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceStatsAPIRequest.go @@ -0,0 +1,66 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备统计数据 API请求 +yunos.tvpubadmin.device.stats + +获取设备统计数据 +*/ +type YunosTvpubadminDeviceStatsAPIRequest struct { + model.Params + // 厂商名称 + _factoryName string + // 设备型号 + _deviceModel string +} + +// 初始化YunosTvpubadminDeviceStatsAPIRequest对象 +func NewYunosTvpubadminDeviceStatsRequest() *YunosTvpubadminDeviceStatsAPIRequest{ + return &YunosTvpubadminDeviceStatsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceStatsAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.stats" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceStatsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FactoryName Setter +// 厂商名称 +func (r *YunosTvpubadminDeviceStatsAPIRequest) SetFactoryName(_factoryName string) error { + r._factoryName = _factoryName + r.Set("factory_name", _factoryName) + return nil +} + +// FactoryName Getter +func (r YunosTvpubadminDeviceStatsAPIRequest) GetFactoryName() string { + return r._factoryName +} +// DeviceModel Setter +// 设备型号 +func (r *YunosTvpubadminDeviceStatsAPIRequest) SetDeviceModel(_deviceModel string) error { + r._deviceModel = _deviceModel + r.Set("device_model", _deviceModel) + return nil +} + +// DeviceModel Getter +func (r YunosTvpubadminDeviceStatsAPIRequest) GetDeviceModel() string { + return r._deviceModel +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceStatsAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceStatsAPIResponse.go new file mode 100644 index 0000000000..451938ebbd --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceStatsAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备统计数据 API返回值 +yunos.tvpubadmin.device.stats + +获取设备统计数据 +*/ +type YunosTvpubadminDeviceStatsAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceStatsAPIResponseModel +} + +// 获取设备统计数据 成功返回结果 +type YunosTvpubadminDeviceStatsAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_stats_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object *StatsDeviceInfoDo `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceStatsResponse.go b/model/tvupadmin/YunosTvpubadminDeviceStatsResponse.go deleted file mode 100644 index 301e16ac7c..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceStatsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取设备统计数据 API返回值 -yunos.tvpubadmin.device.stats - -获取设备统计数据 -*/ -type YunosTvpubadminDeviceStatsAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceStatsResponse -} - -// 获取设备统计数据 成功返回结果 -type YunosTvpubadminDeviceStatsResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_stats_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object *StatsDeviceInfoDo `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceTvidAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceTvidAPIRequest.go new file mode 100644 index 0000000000..e2186e620f --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceTvidAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询终端信息 API请求 +yunos.tvpubadmin.device.tvid + +通过UUID查询终端信息 +*/ +type YunosTvpubadminDeviceTvidAPIRequest struct { + model.Params + // 设备的UUID + _uuid string +} + +// 初始化YunosTvpubadminDeviceTvidAPIRequest对象 +func NewYunosTvpubadminDeviceTvidRequest() *YunosTvpubadminDeviceTvidAPIRequest{ + return &YunosTvpubadminDeviceTvidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceTvidAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.tvid" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceTvidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Uuid Setter +// 设备的UUID +func (r *YunosTvpubadminDeviceTvidAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r YunosTvpubadminDeviceTvidAPIRequest) GetUuid() string { + return r._uuid +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceTvidAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceTvidAPIResponse.go new file mode 100644 index 0000000000..14802f46c2 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceTvidAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询终端信息 API返回值 +yunos.tvpubadmin.device.tvid + +通过UUID查询终端信息 +*/ +type YunosTvpubadminDeviceTvidAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceTvidAPIResponseModel +} + +// 查询终端信息 成功返回结果 +type YunosTvpubadminDeviceTvidAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_tvid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object *DeviceInfoDo `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceTvidResponse.go b/model/tvupadmin/YunosTvpubadminDeviceTvidResponse.go deleted file mode 100644 index 0ee291c55b..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceTvidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询终端信息 API返回值 -yunos.tvpubadmin.device.tvid - -通过UUID查询终端信息 -*/ -type YunosTvpubadminDeviceTvidAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceTvidResponse -} - -// 查询终端信息 成功返回结果 -type YunosTvpubadminDeviceTvidResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_tvid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object *DeviceInfoDo `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceUpdateappstatusAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceUpdateappstatusAPIRequest.go new file mode 100644 index 0000000000..26c426dd48 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceUpdateappstatusAPIRequest.go @@ -0,0 +1,94 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新应用版本审核状态 API请求 +yunos.tvpubadmin.device.updateappstatus + +更新应用版本审核状态 +*/ +type YunosTvpubadminDeviceUpdateappstatusAPIRequest struct { + model.Params + // 应用ID + _versionId int64 + // 牌照方 + _license int64 + // 审核状态 + _status string + // 审核意见 + _auditComment string +} + +// 初始化YunosTvpubadminDeviceUpdateappstatusAPIRequest对象 +func NewYunosTvpubadminDeviceUpdateappstatusRequest() *YunosTvpubadminDeviceUpdateappstatusAPIRequest{ + return &YunosTvpubadminDeviceUpdateappstatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceUpdateappstatusAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.updateappstatus" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceUpdateappstatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VersionId Setter +// 应用ID +func (r *YunosTvpubadminDeviceUpdateappstatusAPIRequest) SetVersionId(_versionId int64) error { + r._versionId = _versionId + r.Set("version_id", _versionId) + return nil +} + +// VersionId Getter +func (r YunosTvpubadminDeviceUpdateappstatusAPIRequest) GetVersionId() int64 { + return r._versionId +} +// License Setter +// 牌照方 +func (r *YunosTvpubadminDeviceUpdateappstatusAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminDeviceUpdateappstatusAPIRequest) GetLicense() int64 { + return r._license +} +// Status Setter +// 审核状态 +func (r *YunosTvpubadminDeviceUpdateappstatusAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r YunosTvpubadminDeviceUpdateappstatusAPIRequest) GetStatus() string { + return r._status +} +// AuditComment Setter +// 审核意见 +func (r *YunosTvpubadminDeviceUpdateappstatusAPIRequest) SetAuditComment(_auditComment string) error { + r._auditComment = _auditComment + r.Set("audit_comment", _auditComment) + return nil +} + +// AuditComment Getter +func (r YunosTvpubadminDeviceUpdateappstatusAPIRequest) GetAuditComment() string { + return r._auditComment +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceUpdateappstatusAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceUpdateappstatusAPIResponse.go new file mode 100644 index 0000000000..d7edebd55c --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceUpdateappstatusAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新应用版本审核状态 API返回值 +yunos.tvpubadmin.device.updateappstatus + +更新应用版本审核状态 +*/ +type YunosTvpubadminDeviceUpdateappstatusAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceUpdateappstatusAPIResponseModel +} + +// 更新应用版本审核状态 成功返回结果 +type YunosTvpubadminDeviceUpdateappstatusAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_updateappstatus_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object bool `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceUpdateappstatusResponse.go b/model/tvupadmin/YunosTvpubadminDeviceUpdateappstatusResponse.go deleted file mode 100644 index 197bf0a66a..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceUpdateappstatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新应用版本审核状态 API返回值 -yunos.tvpubadmin.device.updateappstatus - -更新应用版本审核状态 -*/ -type YunosTvpubadminDeviceUpdateappstatusAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceUpdateappstatusResponse -} - -// 更新应用版本审核状态 成功返回结果 -type YunosTvpubadminDeviceUpdateappstatusResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_updateappstatus_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object bool `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceUpdateosstatusAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceUpdateosstatusAPIRequest.go new file mode 100644 index 0000000000..068f27b150 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceUpdateosstatusAPIRequest.go @@ -0,0 +1,94 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新系统版本审核状态 API请求 +yunos.tvpubadmin.device.updateosstatus + +更新系统版本审核状态 +*/ +type YunosTvpubadminDeviceUpdateosstatusAPIRequest struct { + model.Params + // 升级ID + _versionId int64 + // 牌照方 + _license int64 + // 审核状态 + _status string + // 审核意见 + _auditComment string +} + +// 初始化YunosTvpubadminDeviceUpdateosstatusAPIRequest对象 +func NewYunosTvpubadminDeviceUpdateosstatusRequest() *YunosTvpubadminDeviceUpdateosstatusAPIRequest{ + return &YunosTvpubadminDeviceUpdateosstatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceUpdateosstatusAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.updateosstatus" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceUpdateosstatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VersionId Setter +// 升级ID +func (r *YunosTvpubadminDeviceUpdateosstatusAPIRequest) SetVersionId(_versionId int64) error { + r._versionId = _versionId + r.Set("version_id", _versionId) + return nil +} + +// VersionId Getter +func (r YunosTvpubadminDeviceUpdateosstatusAPIRequest) GetVersionId() int64 { + return r._versionId +} +// License Setter +// 牌照方 +func (r *YunosTvpubadminDeviceUpdateosstatusAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminDeviceUpdateosstatusAPIRequest) GetLicense() int64 { + return r._license +} +// Status Setter +// 审核状态 +func (r *YunosTvpubadminDeviceUpdateosstatusAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r YunosTvpubadminDeviceUpdateosstatusAPIRequest) GetStatus() string { + return r._status +} +// AuditComment Setter +// 审核意见 +func (r *YunosTvpubadminDeviceUpdateosstatusAPIRequest) SetAuditComment(_auditComment string) error { + r._auditComment = _auditComment + r.Set("audit_comment", _auditComment) + return nil +} + +// AuditComment Getter +func (r YunosTvpubadminDeviceUpdateosstatusAPIRequest) GetAuditComment() string { + return r._auditComment +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceUpdateosstatusAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceUpdateosstatusAPIResponse.go new file mode 100644 index 0000000000..24489b62a7 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceUpdateosstatusAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新系统版本审核状态 API返回值 +yunos.tvpubadmin.device.updateosstatus + +更新系统版本审核状态 +*/ +type YunosTvpubadminDeviceUpdateosstatusAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceUpdateosstatusAPIResponseModel +} + +// 更新系统版本审核状态 成功返回结果 +type YunosTvpubadminDeviceUpdateosstatusAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_updateosstatus_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object bool `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceUpdateosstatusResponse.go b/model/tvupadmin/YunosTvpubadminDeviceUpdateosstatusResponse.go deleted file mode 100644 index 5fc285de04..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceUpdateosstatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新系统版本审核状态 API返回值 -yunos.tvpubadmin.device.updateosstatus - -更新系统版本审核状态 -*/ -type YunosTvpubadminDeviceUpdateosstatusAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceUpdateosstatusResponse -} - -// 更新系统版本审核状态 成功返回结果 -type YunosTvpubadminDeviceUpdateosstatusResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_updateosstatus_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object bool `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksBotsAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceYksBotsAPIRequest.go new file mode 100644 index 0000000000..54b1a66ebf --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceYksBotsAPIRequest.go @@ -0,0 +1,38 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备列表 API请求 +yunos.tvpubadmin.device.yks.bots + +获取设备列表 +*/ +type YunosTvpubadminDeviceYksBotsAPIRequest struct { + model.Params +} + +// 初始化YunosTvpubadminDeviceYksBotsAPIRequest对象 +func NewYunosTvpubadminDeviceYksBotsRequest() *YunosTvpubadminDeviceYksBotsAPIRequest{ + return &YunosTvpubadminDeviceYksBotsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceYksBotsAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.yks.bots" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceYksBotsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksBotsAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceYksBotsAPIResponse.go new file mode 100644 index 0000000000..dac39efe1e --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceYksBotsAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取设备列表 API返回值 +yunos.tvpubadmin.device.yks.bots + +获取设备列表 +*/ +type YunosTvpubadminDeviceYksBotsAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceYksBotsAPIResponseModel +} + +// 获取设备列表 成功返回结果 +type YunosTvpubadminDeviceYksBotsAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_yks_bots_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksBotsResponse.go b/model/tvupadmin/YunosTvpubadminDeviceYksBotsResponse.go deleted file mode 100644 index 47cf0e08c8..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceYksBotsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取设备列表 API返回值 -yunos.tvpubadmin.device.yks.bots - -获取设备列表 -*/ -type YunosTvpubadminDeviceYksBotsAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceYksBotsResponse -} - -// 获取设备列表 成功返回结果 -type YunosTvpubadminDeviceYksBotsResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_yks_bots_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksSkillAddAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceYksSkillAddAPIRequest.go new file mode 100644 index 0000000000..cba5cdcfe2 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceYksSkillAddAPIRequest.go @@ -0,0 +1,94 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加技能 API请求 +yunos.tvpubadmin.device.yks.skill.add + +添加技能 +*/ +type YunosTvpubadminDeviceYksSkillAddAPIRequest struct { + model.Params + // 技能id + _skillId int64 + // 设备id + _botId int64 + // 技能名称 + _name string + // 图片地址 + _iconImageUrl string +} + +// 初始化YunosTvpubadminDeviceYksSkillAddAPIRequest对象 +func NewYunosTvpubadminDeviceYksSkillAddRequest() *YunosTvpubadminDeviceYksSkillAddAPIRequest{ + return &YunosTvpubadminDeviceYksSkillAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceYksSkillAddAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.yks.skill.add" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceYksSkillAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkillId Setter +// 技能id +func (r *YunosTvpubadminDeviceYksSkillAddAPIRequest) SetSkillId(_skillId int64) error { + r._skillId = _skillId + r.Set("skill_id", _skillId) + return nil +} + +// SkillId Getter +func (r YunosTvpubadminDeviceYksSkillAddAPIRequest) GetSkillId() int64 { + return r._skillId +} +// BotId Setter +// 设备id +func (r *YunosTvpubadminDeviceYksSkillAddAPIRequest) SetBotId(_botId int64) error { + r._botId = _botId + r.Set("bot_id", _botId) + return nil +} + +// BotId Getter +func (r YunosTvpubadminDeviceYksSkillAddAPIRequest) GetBotId() int64 { + return r._botId +} +// Name Setter +// 技能名称 +func (r *YunosTvpubadminDeviceYksSkillAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r YunosTvpubadminDeviceYksSkillAddAPIRequest) GetName() string { + return r._name +} +// IconImageUrl Setter +// 图片地址 +func (r *YunosTvpubadminDeviceYksSkillAddAPIRequest) SetIconImageUrl(_iconImageUrl string) error { + r._iconImageUrl = _iconImageUrl + r.Set("icon_image_url", _iconImageUrl) + return nil +} + +// IconImageUrl Getter +func (r YunosTvpubadminDeviceYksSkillAddAPIRequest) GetIconImageUrl() string { + return r._iconImageUrl +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksSkillAddAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceYksSkillAddAPIResponse.go new file mode 100644 index 0000000000..d825e62cad --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceYksSkillAddAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加技能 API返回值 +yunos.tvpubadmin.device.yks.skill.add + +添加技能 +*/ +type YunosTvpubadminDeviceYksSkillAddAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceYksSkillAddAPIResponseModel +} + +// 添加技能 成功返回结果 +type YunosTvpubadminDeviceYksSkillAddAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_yks_skill_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksSkillAddResponse.go b/model/tvupadmin/YunosTvpubadminDeviceYksSkillAddResponse.go deleted file mode 100644 index 6649d295a5..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceYksSkillAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加技能 API返回值 -yunos.tvpubadmin.device.yks.skill.add - -添加技能 -*/ -type YunosTvpubadminDeviceYksSkillAddAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceYksSkillAddResponse -} - -// 添加技能 成功返回结果 -type YunosTvpubadminDeviceYksSkillAddResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_yks_skill_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksSkillDeleteAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceYksSkillDeleteAPIRequest.go new file mode 100644 index 0000000000..5f6a3dfaab --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceYksSkillDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +技能删除 API请求 +yunos.tvpubadmin.device.yks.skill.delete + +删除技能 +*/ +type YunosTvpubadminDeviceYksSkillDeleteAPIRequest struct { + model.Params + // bot与技能关系表id + _botSkillRelId int64 + // 技能id + _skillId int64 +} + +// 初始化YunosTvpubadminDeviceYksSkillDeleteAPIRequest对象 +func NewYunosTvpubadminDeviceYksSkillDeleteRequest() *YunosTvpubadminDeviceYksSkillDeleteAPIRequest{ + return &YunosTvpubadminDeviceYksSkillDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceYksSkillDeleteAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.yks.skill.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceYksSkillDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BotSkillRelId Setter +// bot与技能关系表id +func (r *YunosTvpubadminDeviceYksSkillDeleteAPIRequest) SetBotSkillRelId(_botSkillRelId int64) error { + r._botSkillRelId = _botSkillRelId + r.Set("bot_skill_rel_id", _botSkillRelId) + return nil +} + +// BotSkillRelId Getter +func (r YunosTvpubadminDeviceYksSkillDeleteAPIRequest) GetBotSkillRelId() int64 { + return r._botSkillRelId +} +// SkillId Setter +// 技能id +func (r *YunosTvpubadminDeviceYksSkillDeleteAPIRequest) SetSkillId(_skillId int64) error { + r._skillId = _skillId + r.Set("skill_id", _skillId) + return nil +} + +// SkillId Getter +func (r YunosTvpubadminDeviceYksSkillDeleteAPIRequest) GetSkillId() int64 { + return r._skillId +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksSkillDeleteAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceYksSkillDeleteAPIResponse.go new file mode 100644 index 0000000000..240e99738f --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceYksSkillDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +技能删除 API返回值 +yunos.tvpubadmin.device.yks.skill.delete + +删除技能 +*/ +type YunosTvpubadminDeviceYksSkillDeleteAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceYksSkillDeleteAPIResponseModel +} + +// 技能删除 成功返回结果 +type YunosTvpubadminDeviceYksSkillDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_yks_skill_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksSkillDeleteResponse.go b/model/tvupadmin/YunosTvpubadminDeviceYksSkillDeleteResponse.go deleted file mode 100644 index 701baaa4fc..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceYksSkillDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -技能删除 API返回值 -yunos.tvpubadmin.device.yks.skill.delete - -删除技能 -*/ -type YunosTvpubadminDeviceYksSkillDeleteAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceYksSkillDeleteResponse -} - -// 技能删除 成功返回结果 -type YunosTvpubadminDeviceYksSkillDeleteResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_yks_skill_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksSkillModifyAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceYksSkillModifyAPIRequest.go new file mode 100644 index 0000000000..e338c07a25 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceYksSkillModifyAPIRequest.go @@ -0,0 +1,80 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改技能 API请求 +yunos.tvpubadmin.device.yks.skill.modify + +修改技能 +*/ +type YunosTvpubadminDeviceYksSkillModifyAPIRequest struct { + model.Params + // 技能id + _skillId int64 + // 图片地址 + _iconImageUrl string + // 技能名称 + _name string +} + +// 初始化YunosTvpubadminDeviceYksSkillModifyAPIRequest对象 +func NewYunosTvpubadminDeviceYksSkillModifyRequest() *YunosTvpubadminDeviceYksSkillModifyAPIRequest{ + return &YunosTvpubadminDeviceYksSkillModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceYksSkillModifyAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.yks.skill.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceYksSkillModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkillId Setter +// 技能id +func (r *YunosTvpubadminDeviceYksSkillModifyAPIRequest) SetSkillId(_skillId int64) error { + r._skillId = _skillId + r.Set("skill_id", _skillId) + return nil +} + +// SkillId Getter +func (r YunosTvpubadminDeviceYksSkillModifyAPIRequest) GetSkillId() int64 { + return r._skillId +} +// IconImageUrl Setter +// 图片地址 +func (r *YunosTvpubadminDeviceYksSkillModifyAPIRequest) SetIconImageUrl(_iconImageUrl string) error { + r._iconImageUrl = _iconImageUrl + r.Set("icon_image_url", _iconImageUrl) + return nil +} + +// IconImageUrl Getter +func (r YunosTvpubadminDeviceYksSkillModifyAPIRequest) GetIconImageUrl() string { + return r._iconImageUrl +} +// Name Setter +// 技能名称 +func (r *YunosTvpubadminDeviceYksSkillModifyAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r YunosTvpubadminDeviceYksSkillModifyAPIRequest) GetName() string { + return r._name +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksSkillModifyAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceYksSkillModifyAPIResponse.go new file mode 100644 index 0000000000..1884204682 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceYksSkillModifyAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改技能 API返回值 +yunos.tvpubadmin.device.yks.skill.modify + +修改技能 +*/ +type YunosTvpubadminDeviceYksSkillModifyAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceYksSkillModifyAPIResponseModel +} + +// 修改技能 成功返回结果 +type YunosTvpubadminDeviceYksSkillModifyAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_yks_skill_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksSkillModifyResponse.go b/model/tvupadmin/YunosTvpubadminDeviceYksSkillModifyResponse.go deleted file mode 100644 index 358102e9c2..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceYksSkillModifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改技能 API返回值 -yunos.tvpubadmin.device.yks.skill.modify - -修改技能 -*/ -type YunosTvpubadminDeviceYksSkillModifyAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceYksSkillModifyResponse -} - -// 修改技能 成功返回结果 -type YunosTvpubadminDeviceYksSkillModifyResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_yks_skill_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksSkillOfflineAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceYksSkillOfflineAPIRequest.go new file mode 100644 index 0000000000..fe51542979 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceYksSkillOfflineAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +技能下架 API请求 +yunos.tvpubadmin.device.yks.skill.offline + +迎客松平台技能下架 +*/ +type YunosTvpubadminDeviceYksSkillOfflineAPIRequest struct { + model.Params + // bot与skill关系表id + _botSkillRelId int64 +} + +// 初始化YunosTvpubadminDeviceYksSkillOfflineAPIRequest对象 +func NewYunosTvpubadminDeviceYksSkillOfflineRequest() *YunosTvpubadminDeviceYksSkillOfflineAPIRequest{ + return &YunosTvpubadminDeviceYksSkillOfflineAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceYksSkillOfflineAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.yks.skill.offline" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceYksSkillOfflineAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BotSkillRelId Setter +// bot与skill关系表id +func (r *YunosTvpubadminDeviceYksSkillOfflineAPIRequest) SetBotSkillRelId(_botSkillRelId int64) error { + r._botSkillRelId = _botSkillRelId + r.Set("bot_skill_rel_id", _botSkillRelId) + return nil +} + +// BotSkillRelId Getter +func (r YunosTvpubadminDeviceYksSkillOfflineAPIRequest) GetBotSkillRelId() int64 { + return r._botSkillRelId +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksSkillOfflineAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceYksSkillOfflineAPIResponse.go new file mode 100644 index 0000000000..f07a79cd4e --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceYksSkillOfflineAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +技能下架 API返回值 +yunos.tvpubadmin.device.yks.skill.offline + +迎客松平台技能下架 +*/ +type YunosTvpubadminDeviceYksSkillOfflineAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceYksSkillOfflineAPIResponseModel +} + +// 技能下架 成功返回结果 +type YunosTvpubadminDeviceYksSkillOfflineAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_yks_skill_offline_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksSkillOfflineResponse.go b/model/tvupadmin/YunosTvpubadminDeviceYksSkillOfflineResponse.go deleted file mode 100644 index f0452e8d97..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceYksSkillOfflineResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -技能下架 API返回值 -yunos.tvpubadmin.device.yks.skill.offline - -迎客松平台技能下架 -*/ -type YunosTvpubadminDeviceYksSkillOfflineAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceYksSkillOfflineResponse -} - -// 技能下架 成功返回结果 -type YunosTvpubadminDeviceYksSkillOfflineResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_yks_skill_offline_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksSkillOnlineAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceYksSkillOnlineAPIRequest.go new file mode 100644 index 0000000000..864ba99222 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceYksSkillOnlineAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松技能上架接口 API请求 +yunos.tvpubadmin.device.yks.skill.online + +迎客松技能上架接口 +*/ +type YunosTvpubadminDeviceYksSkillOnlineAPIRequest struct { + model.Params + // bot与技能关系表id + _botSkillRelId int64 +} + +// 初始化YunosTvpubadminDeviceYksSkillOnlineAPIRequest对象 +func NewYunosTvpubadminDeviceYksSkillOnlineRequest() *YunosTvpubadminDeviceYksSkillOnlineAPIRequest{ + return &YunosTvpubadminDeviceYksSkillOnlineAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceYksSkillOnlineAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.yks.skill.online" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceYksSkillOnlineAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BotSkillRelId Setter +// bot与技能关系表id +func (r *YunosTvpubadminDeviceYksSkillOnlineAPIRequest) SetBotSkillRelId(_botSkillRelId int64) error { + r._botSkillRelId = _botSkillRelId + r.Set("bot_skill_rel_id", _botSkillRelId) + return nil +} + +// BotSkillRelId Getter +func (r YunosTvpubadminDeviceYksSkillOnlineAPIRequest) GetBotSkillRelId() int64 { + return r._botSkillRelId +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksSkillOnlineAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceYksSkillOnlineAPIResponse.go new file mode 100644 index 0000000000..a6303cd0bd --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceYksSkillOnlineAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +迎客松技能上架接口 API返回值 +yunos.tvpubadmin.device.yks.skill.online + +迎客松技能上架接口 +*/ +type YunosTvpubadminDeviceYksSkillOnlineAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceYksSkillOnlineAPIResponseModel +} + +// 迎客松技能上架接口 成功返回结果 +type YunosTvpubadminDeviceYksSkillOnlineAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_yks_skill_online_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksSkillOnlineResponse.go b/model/tvupadmin/YunosTvpubadminDeviceYksSkillOnlineResponse.go deleted file mode 100644 index 79baade8a6..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceYksSkillOnlineResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -迎客松技能上架接口 API返回值 -yunos.tvpubadmin.device.yks.skill.online - -迎客松技能上架接口 -*/ -type YunosTvpubadminDeviceYksSkillOnlineAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceYksSkillOnlineResponse -} - -// 迎客松技能上架接口 成功返回结果 -type YunosTvpubadminDeviceYksSkillOnlineResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_yks_skill_online_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksSkillsAPIRequest.go b/model/tvupadmin/YunosTvpubadminDeviceYksSkillsAPIRequest.go new file mode 100644 index 0000000000..66fb72ff85 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceYksSkillsAPIRequest.go @@ -0,0 +1,108 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据设备id获取技能列表 API请求 +yunos.tvpubadmin.device.yks.skills + +根据设备id获取技能列表 +*/ +type YunosTvpubadminDeviceYksSkillsAPIRequest struct { + model.Params + // 设备id + _botId int64 + // 1234 + _deletToken int64 + // 当前页 + _pageIndex int64 + // 分页单位 + _pageSize int64 + // 技能id + _skillId int64 +} + +// 初始化YunosTvpubadminDeviceYksSkillsAPIRequest对象 +func NewYunosTvpubadminDeviceYksSkillsRequest() *YunosTvpubadminDeviceYksSkillsAPIRequest{ + return &YunosTvpubadminDeviceYksSkillsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDeviceYksSkillsAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.device.yks.skills" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDeviceYksSkillsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BotId Setter +// 设备id +func (r *YunosTvpubadminDeviceYksSkillsAPIRequest) SetBotId(_botId int64) error { + r._botId = _botId + r.Set("bot_id", _botId) + return nil +} + +// BotId Getter +func (r YunosTvpubadminDeviceYksSkillsAPIRequest) GetBotId() int64 { + return r._botId +} +// DeletToken Setter +// 1234 +func (r *YunosTvpubadminDeviceYksSkillsAPIRequest) SetDeletToken(_deletToken int64) error { + r._deletToken = _deletToken + r.Set("delet_token", _deletToken) + return nil +} + +// DeletToken Getter +func (r YunosTvpubadminDeviceYksSkillsAPIRequest) GetDeletToken() int64 { + return r._deletToken +} +// PageIndex Setter +// 当前页 +func (r *YunosTvpubadminDeviceYksSkillsAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r YunosTvpubadminDeviceYksSkillsAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} +// PageSize Setter +// 分页单位 +func (r *YunosTvpubadminDeviceYksSkillsAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r YunosTvpubadminDeviceYksSkillsAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// SkillId Setter +// 技能id +func (r *YunosTvpubadminDeviceYksSkillsAPIRequest) SetSkillId(_skillId int64) error { + r._skillId = _skillId + r.Set("skill_id", _skillId) + return nil +} + +// SkillId Getter +func (r YunosTvpubadminDeviceYksSkillsAPIRequest) GetSkillId() int64 { + return r._skillId +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksSkillsAPIResponse.go b/model/tvupadmin/YunosTvpubadminDeviceYksSkillsAPIResponse.go new file mode 100644 index 0000000000..0d9a6ca5bc --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDeviceYksSkillsAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据设备id获取技能列表 API返回值 +yunos.tvpubadmin.device.yks.skills + +根据设备id获取技能列表 +*/ +type YunosTvpubadminDeviceYksSkillsAPIResponse struct { + model.CommonResponse + YunosTvpubadminDeviceYksSkillsAPIResponseModel +} + +// 根据设备id获取技能列表 成功返回结果 +type YunosTvpubadminDeviceYksSkillsAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_device_yks_skills_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDeviceYksSkillsResponse.go b/model/tvupadmin/YunosTvpubadminDeviceYksSkillsResponse.go deleted file mode 100644 index 8a89aaff00..0000000000 --- a/model/tvupadmin/YunosTvpubadminDeviceYksSkillsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据设备id获取技能列表 API返回值 -yunos.tvpubadmin.device.yks.skills - -根据设备id获取技能列表 -*/ -type YunosTvpubadminDeviceYksSkillsAPIResponse struct { - model.CommonResponse - YunosTvpubadminDeviceYksSkillsResponse -} - -// 根据设备id获取技能列表 成功返回结果 -type YunosTvpubadminDeviceYksSkillsResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_device_yks_skills_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDiccontroltaskAddAPIRequest.go b/model/tvupadmin/YunosTvpubadminDiccontroltaskAddAPIRequest.go new file mode 100644 index 0000000000..092ca233ee --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDiccontroltaskAddAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增停开服任务 API请求 +yunos.tvpubadmin.diccontroltask.add + +新增停开服任务 +*/ +type YunosTvpubadminDiccontroltaskAddAPIRequest struct { + model.Params + // 任务信息 + _task *DicControlTaskDo +} + +// 初始化YunosTvpubadminDiccontroltaskAddAPIRequest对象 +func NewYunosTvpubadminDiccontroltaskAddRequest() *YunosTvpubadminDiccontroltaskAddAPIRequest{ + return &YunosTvpubadminDiccontroltaskAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDiccontroltaskAddAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.diccontroltask.add" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDiccontroltaskAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Task Setter +// 任务信息 +func (r *YunosTvpubadminDiccontroltaskAddAPIRequest) SetTask(_task *DicControlTaskDo) error { + r._task = _task + r.Set("task", _task) + return nil +} + +// Task Getter +func (r YunosTvpubadminDiccontroltaskAddAPIRequest) GetTask() *DicControlTaskDo { + return r._task +} diff --git a/model/tvupadmin/YunosTvpubadminDiccontroltaskAddAPIResponse.go b/model/tvupadmin/YunosTvpubadminDiccontroltaskAddAPIResponse.go new file mode 100644 index 0000000000..54a9868f45 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDiccontroltaskAddAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增停开服任务 API返回值 +yunos.tvpubadmin.diccontroltask.add + +新增停开服任务 +*/ +type YunosTvpubadminDiccontroltaskAddAPIResponse struct { + model.CommonResponse + YunosTvpubadminDiccontroltaskAddAPIResponseModel +} + +// 新增停开服任务 成功返回结果 +type YunosTvpubadminDiccontroltaskAddAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_diccontroltask_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object bool `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDiccontroltaskAddResponse.go b/model/tvupadmin/YunosTvpubadminDiccontroltaskAddResponse.go deleted file mode 100644 index 4a617a0332..0000000000 --- a/model/tvupadmin/YunosTvpubadminDiccontroltaskAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增停开服任务 API返回值 -yunos.tvpubadmin.diccontroltask.add - -新增停开服任务 -*/ -type YunosTvpubadminDiccontroltaskAddAPIResponse struct { - model.CommonResponse - YunosTvpubadminDiccontroltaskAddResponse -} - -// 新增停开服任务 成功返回结果 -type YunosTvpubadminDiccontroltaskAddResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_diccontroltask_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object bool `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDiccontroltaskGetinfoAPIRequest.go b/model/tvupadmin/YunosTvpubadminDiccontroltaskGetinfoAPIRequest.go new file mode 100644 index 0000000000..c7ccba0e67 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDiccontroltaskGetinfoAPIRequest.go @@ -0,0 +1,66 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取停开服任务详情 API请求 +yunos.tvpubadmin.diccontroltask.getinfo + +获取停开服任务详情 +*/ +type YunosTvpubadminDiccontroltaskGetinfoAPIRequest struct { + model.Params + // 任务ID + _id int64 + // 牌照方 + _license int64 +} + +// 初始化YunosTvpubadminDiccontroltaskGetinfoAPIRequest对象 +func NewYunosTvpubadminDiccontroltaskGetinfoRequest() *YunosTvpubadminDiccontroltaskGetinfoAPIRequest{ + return &YunosTvpubadminDiccontroltaskGetinfoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDiccontroltaskGetinfoAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.diccontroltask.getinfo" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDiccontroltaskGetinfoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 任务ID +func (r *YunosTvpubadminDiccontroltaskGetinfoAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r YunosTvpubadminDiccontroltaskGetinfoAPIRequest) GetId() int64 { + return r._id +} +// License Setter +// 牌照方 +func (r *YunosTvpubadminDiccontroltaskGetinfoAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminDiccontroltaskGetinfoAPIRequest) GetLicense() int64 { + return r._license +} diff --git a/model/tvupadmin/YunosTvpubadminDiccontroltaskGetinfoAPIResponse.go b/model/tvupadmin/YunosTvpubadminDiccontroltaskGetinfoAPIResponse.go new file mode 100644 index 0000000000..94af7200a2 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDiccontroltaskGetinfoAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取停开服任务详情 API返回值 +yunos.tvpubadmin.diccontroltask.getinfo + +获取停开服任务详情 +*/ +type YunosTvpubadminDiccontroltaskGetinfoAPIResponse struct { + model.CommonResponse + YunosTvpubadminDiccontroltaskGetinfoAPIResponseModel +} + +// 获取停开服任务详情 成功返回结果 +type YunosTvpubadminDiccontroltaskGetinfoAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_diccontroltask_getinfo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object *DicControlTaskDo `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDiccontroltaskGetinfoResponse.go b/model/tvupadmin/YunosTvpubadminDiccontroltaskGetinfoResponse.go deleted file mode 100644 index 53229541a4..0000000000 --- a/model/tvupadmin/YunosTvpubadminDiccontroltaskGetinfoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取停开服任务详情 API返回值 -yunos.tvpubadmin.diccontroltask.getinfo - -获取停开服任务详情 -*/ -type YunosTvpubadminDiccontroltaskGetinfoAPIResponse struct { - model.CommonResponse - YunosTvpubadminDiccontroltaskGetinfoResponse -} - -// 获取停开服任务详情 成功返回结果 -type YunosTvpubadminDiccontroltaskGetinfoResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_diccontroltask_getinfo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object *DicControlTaskDo `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDiccontroltaskQueryAPIRequest.go b/model/tvupadmin/YunosTvpubadminDiccontroltaskQueryAPIRequest.go new file mode 100644 index 0000000000..2d46abdbd4 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDiccontroltaskQueryAPIRequest.go @@ -0,0 +1,108 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +停开服任务列表 API请求 +yunos.tvpubadmin.diccontroltask.query + +牌照方对终端设备的停开服管理 +*/ +type YunosTvpubadminDiccontroltaskQueryAPIRequest struct { + model.Params + // 任务名称 + _name string + // 任务状态 + _status int64 + // 牌照方 + _license int64 + // 当前页码值 + _pageNo int64 + // 每页条数 + _pageSize int64 +} + +// 初始化YunosTvpubadminDiccontroltaskQueryAPIRequest对象 +func NewYunosTvpubadminDiccontroltaskQueryRequest() *YunosTvpubadminDiccontroltaskQueryAPIRequest{ + return &YunosTvpubadminDiccontroltaskQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDiccontroltaskQueryAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.diccontroltask.query" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDiccontroltaskQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// 任务名称 +func (r *YunosTvpubadminDiccontroltaskQueryAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r YunosTvpubadminDiccontroltaskQueryAPIRequest) GetName() string { + return r._name +} +// Status Setter +// 任务状态 +func (r *YunosTvpubadminDiccontroltaskQueryAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r YunosTvpubadminDiccontroltaskQueryAPIRequest) GetStatus() int64 { + return r._status +} +// License Setter +// 牌照方 +func (r *YunosTvpubadminDiccontroltaskQueryAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminDiccontroltaskQueryAPIRequest) GetLicense() int64 { + return r._license +} +// PageNo Setter +// 当前页码值 +func (r *YunosTvpubadminDiccontroltaskQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r YunosTvpubadminDiccontroltaskQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数 +func (r *YunosTvpubadminDiccontroltaskQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r YunosTvpubadminDiccontroltaskQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tvupadmin/YunosTvpubadminDiccontroltaskQueryAPIResponse.go b/model/tvupadmin/YunosTvpubadminDiccontroltaskQueryAPIResponse.go new file mode 100644 index 0000000000..719ffcbeb5 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDiccontroltaskQueryAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +停开服任务列表 API返回值 +yunos.tvpubadmin.diccontroltask.query + +牌照方对终端设备的停开服管理 +*/ +type YunosTvpubadminDiccontroltaskQueryAPIResponse struct { + model.CommonResponse + YunosTvpubadminDiccontroltaskQueryAPIResponseModel +} + +// 停开服任务列表 成功返回结果 +type YunosTvpubadminDiccontroltaskQueryAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_diccontroltask_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object *PaginationDo `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDiccontroltaskQueryResponse.go b/model/tvupadmin/YunosTvpubadminDiccontroltaskQueryResponse.go deleted file mode 100644 index 7dfbcc51c1..0000000000 --- a/model/tvupadmin/YunosTvpubadminDiccontroltaskQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -停开服任务列表 API返回值 -yunos.tvpubadmin.diccontroltask.query - -牌照方对终端设备的停开服管理 -*/ -type YunosTvpubadminDiccontroltaskQueryAPIResponse struct { - model.CommonResponse - YunosTvpubadminDiccontroltaskQueryResponse -} - -// 停开服任务列表 成功返回结果 -type YunosTvpubadminDiccontroltaskQueryResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_diccontroltask_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object *PaginationDo `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminDiccontroltaskUpdateAPIRequest.go b/model/tvupadmin/YunosTvpubadminDiccontroltaskUpdateAPIRequest.go new file mode 100644 index 0000000000..3c86968fca --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDiccontroltaskUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +停开服任务状态变更 API请求 +yunos.tvpubadmin.diccontroltask.update + +停开服任务状态变更 +*/ +type YunosTvpubadminDiccontroltaskUpdateAPIRequest struct { + model.Params + // 任务ID + _id int64 + // 任务状态 + _status int64 + // 牌照方 + _license int64 +} + +// 初始化YunosTvpubadminDiccontroltaskUpdateAPIRequest对象 +func NewYunosTvpubadminDiccontroltaskUpdateRequest() *YunosTvpubadminDiccontroltaskUpdateAPIRequest{ + return &YunosTvpubadminDiccontroltaskUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminDiccontroltaskUpdateAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.diccontroltask.update" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminDiccontroltaskUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 任务ID +func (r *YunosTvpubadminDiccontroltaskUpdateAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r YunosTvpubadminDiccontroltaskUpdateAPIRequest) GetId() int64 { + return r._id +} +// Status Setter +// 任务状态 +func (r *YunosTvpubadminDiccontroltaskUpdateAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r YunosTvpubadminDiccontroltaskUpdateAPIRequest) GetStatus() int64 { + return r._status +} +// License Setter +// 牌照方 +func (r *YunosTvpubadminDiccontroltaskUpdateAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminDiccontroltaskUpdateAPIRequest) GetLicense() int64 { + return r._license +} diff --git a/model/tvupadmin/YunosTvpubadminDiccontroltaskUpdateAPIResponse.go b/model/tvupadmin/YunosTvpubadminDiccontroltaskUpdateAPIResponse.go new file mode 100644 index 0000000000..4d98c0f4eb --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminDiccontroltaskUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +停开服任务状态变更 API返回值 +yunos.tvpubadmin.diccontroltask.update + +停开服任务状态变更 +*/ +type YunosTvpubadminDiccontroltaskUpdateAPIResponse struct { + model.CommonResponse + YunosTvpubadminDiccontroltaskUpdateAPIResponseModel +} + +// 停开服任务状态变更 成功返回结果 +type YunosTvpubadminDiccontroltaskUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_diccontroltask_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object bool `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminDiccontroltaskUpdateResponse.go b/model/tvupadmin/YunosTvpubadminDiccontroltaskUpdateResponse.go deleted file mode 100644 index 07bc1c69e1..0000000000 --- a/model/tvupadmin/YunosTvpubadminDiccontroltaskUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -停开服任务状态变更 API返回值 -yunos.tvpubadmin.diccontroltask.update - -停开服任务状态变更 -*/ -type YunosTvpubadminDiccontroltaskUpdateAPIResponse struct { - model.CommonResponse - YunosTvpubadminDiccontroltaskUpdateResponse -} - -// 停开服任务状态变更 成功返回结果 -type YunosTvpubadminDiccontroltaskUpdateResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_diccontroltask_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object bool `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminEpgDesktopOperationAPIRequest.go b/model/tvupadmin/YunosTvpubadminEpgDesktopOperationAPIRequest.go new file mode 100644 index 0000000000..09ed5805fd --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminEpgDesktopOperationAPIRequest.go @@ -0,0 +1,80 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +影视桌面运营通用接口 API请求 +yunos.tvpubadmin.epg.desktop.operation + +影视桌面运营通用接口 +*/ +type YunosTvpubadminEpgDesktopOperationAPIRequest struct { + model.Params + // 操作对象实体 + _entityType string + // 操作类型 + _actionType string + // 具体入参 + _parameter string +} + +// 初始化YunosTvpubadminEpgDesktopOperationAPIRequest对象 +func NewYunosTvpubadminEpgDesktopOperationRequest() *YunosTvpubadminEpgDesktopOperationAPIRequest{ + return &YunosTvpubadminEpgDesktopOperationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminEpgDesktopOperationAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.epg.desktop.operation" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminEpgDesktopOperationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EntityType Setter +// 操作对象实体 +func (r *YunosTvpubadminEpgDesktopOperationAPIRequest) SetEntityType(_entityType string) error { + r._entityType = _entityType + r.Set("entity_type", _entityType) + return nil +} + +// EntityType Getter +func (r YunosTvpubadminEpgDesktopOperationAPIRequest) GetEntityType() string { + return r._entityType +} +// ActionType Setter +// 操作类型 +func (r *YunosTvpubadminEpgDesktopOperationAPIRequest) SetActionType(_actionType string) error { + r._actionType = _actionType + r.Set("action_type", _actionType) + return nil +} + +// ActionType Getter +func (r YunosTvpubadminEpgDesktopOperationAPIRequest) GetActionType() string { + return r._actionType +} +// Parameter Setter +// 具体入参 +func (r *YunosTvpubadminEpgDesktopOperationAPIRequest) SetParameter(_parameter string) error { + r._parameter = _parameter + r.Set("parameter", _parameter) + return nil +} + +// Parameter Getter +func (r YunosTvpubadminEpgDesktopOperationAPIRequest) GetParameter() string { + return r._parameter +} diff --git a/model/tvupadmin/YunosTvpubadminEpgDesktopOperationAPIResponse.go b/model/tvupadmin/YunosTvpubadminEpgDesktopOperationAPIResponse.go new file mode 100644 index 0000000000..826decb3a6 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminEpgDesktopOperationAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +影视桌面运营通用接口 API返回值 +yunos.tvpubadmin.epg.desktop.operation + +影视桌面运营通用接口 +*/ +type YunosTvpubadminEpgDesktopOperationAPIResponse struct { + model.CommonResponse + YunosTvpubadminEpgDesktopOperationAPIResponseModel +} + +// 影视桌面运营通用接口 成功返回结果 +type YunosTvpubadminEpgDesktopOperationAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_epg_desktop_operation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 具体返回结果 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminEpgDesktopOperationResponse.go b/model/tvupadmin/YunosTvpubadminEpgDesktopOperationResponse.go deleted file mode 100644 index 688cb8eb6a..0000000000 --- a/model/tvupadmin/YunosTvpubadminEpgDesktopOperationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -影视桌面运营通用接口 API返回值 -yunos.tvpubadmin.epg.desktop.operation - -影视桌面运营通用接口 -*/ -type YunosTvpubadminEpgDesktopOperationAPIResponse struct { - model.CommonResponse - YunosTvpubadminEpgDesktopOperationResponse -} - -// 影视桌面运营通用接口 成功返回结果 -type YunosTvpubadminEpgDesktopOperationResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_epg_desktop_operation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 具体返回结果 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminManageDialogAddAPIRequest.go b/model/tvupadmin/YunosTvpubadminManageDialogAddAPIRequest.go new file mode 100644 index 0000000000..a30b02da4b --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageDialogAddAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增全局弹窗 API请求 +yunos.tvpubadmin.manage.dialog.add + +新增全局弹窗 +*/ +type YunosTvpubadminManageDialogAddAPIRequest struct { + model.Params + // 新增的全局弹窗json + _dialogJson string +} + +// 初始化YunosTvpubadminManageDialogAddAPIRequest对象 +func NewYunosTvpubadminManageDialogAddRequest() *YunosTvpubadminManageDialogAddAPIRequest{ + return &YunosTvpubadminManageDialogAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminManageDialogAddAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.manage.dialog.add" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminManageDialogAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DialogJson Setter +// 新增的全局弹窗json +func (r *YunosTvpubadminManageDialogAddAPIRequest) SetDialogJson(_dialogJson string) error { + r._dialogJson = _dialogJson + r.Set("dialog_json", _dialogJson) + return nil +} + +// DialogJson Getter +func (r YunosTvpubadminManageDialogAddAPIRequest) GetDialogJson() string { + return r._dialogJson +} diff --git a/model/tvupadmin/YunosTvpubadminManageDialogAddAPIResponse.go b/model/tvupadmin/YunosTvpubadminManageDialogAddAPIResponse.go new file mode 100644 index 0000000000..3058e21be1 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageDialogAddAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增全局弹窗 API返回值 +yunos.tvpubadmin.manage.dialog.add + +新增全局弹窗 +*/ +type YunosTvpubadminManageDialogAddAPIResponse struct { + model.CommonResponse + YunosTvpubadminManageDialogAddAPIResponseModel +} + +// 新增全局弹窗 成功返回结果 +type YunosTvpubadminManageDialogAddAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_manage_dialog_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminManageDialogAddResponse.go b/model/tvupadmin/YunosTvpubadminManageDialogAddResponse.go deleted file mode 100644 index 3a0be45a37..0000000000 --- a/model/tvupadmin/YunosTvpubadminManageDialogAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增全局弹窗 API返回值 -yunos.tvpubadmin.manage.dialog.add - -新增全局弹窗 -*/ -type YunosTvpubadminManageDialogAddAPIResponse struct { - model.CommonResponse - YunosTvpubadminManageDialogAddResponse -} - -// 新增全局弹窗 成功返回结果 -type YunosTvpubadminManageDialogAddResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_manage_dialog_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminManageDialogDeleteAPIRequest.go b/model/tvupadmin/YunosTvpubadminManageDialogDeleteAPIRequest.go new file mode 100644 index 0000000000..48f7920b9f --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageDialogDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除全局弹窗 API请求 +yunos.tvpubadmin.manage.dialog.delete + +删除全局弹窗 +*/ +type YunosTvpubadminManageDialogDeleteAPIRequest struct { + model.Params + // 全局弹窗id + _id int64 +} + +// 初始化YunosTvpubadminManageDialogDeleteAPIRequest对象 +func NewYunosTvpubadminManageDialogDeleteRequest() *YunosTvpubadminManageDialogDeleteAPIRequest{ + return &YunosTvpubadminManageDialogDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminManageDialogDeleteAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.manage.dialog.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminManageDialogDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 全局弹窗id +func (r *YunosTvpubadminManageDialogDeleteAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r YunosTvpubadminManageDialogDeleteAPIRequest) GetId() int64 { + return r._id +} diff --git a/model/tvupadmin/YunosTvpubadminManageDialogDeleteAPIResponse.go b/model/tvupadmin/YunosTvpubadminManageDialogDeleteAPIResponse.go new file mode 100644 index 0000000000..87f427c1e8 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageDialogDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除全局弹窗 API返回值 +yunos.tvpubadmin.manage.dialog.delete + +删除全局弹窗 +*/ +type YunosTvpubadminManageDialogDeleteAPIResponse struct { + model.CommonResponse + YunosTvpubadminManageDialogDeleteAPIResponseModel +} + +// 删除全局弹窗 成功返回结果 +type YunosTvpubadminManageDialogDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_manage_dialog_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminManageDialogDeleteResponse.go b/model/tvupadmin/YunosTvpubadminManageDialogDeleteResponse.go deleted file mode 100644 index 98462eeb4a..0000000000 --- a/model/tvupadmin/YunosTvpubadminManageDialogDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除全局弹窗 API返回值 -yunos.tvpubadmin.manage.dialog.delete - -删除全局弹窗 -*/ -type YunosTvpubadminManageDialogDeleteAPIResponse struct { - model.CommonResponse - YunosTvpubadminManageDialogDeleteResponse -} - -// 删除全局弹窗 成功返回结果 -type YunosTvpubadminManageDialogDeleteResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_manage_dialog_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminManageDialogEditAPIRequest.go b/model/tvupadmin/YunosTvpubadminManageDialogEditAPIRequest.go new file mode 100644 index 0000000000..39d654b2a7 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageDialogEditAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +编辑全局弹窗 API请求 +yunos.tvpubadmin.manage.dialog.edit + +编辑全局弹窗 +*/ +type YunosTvpubadminManageDialogEditAPIRequest struct { + model.Params + // 待编辑的全局弹窗 + _dialogJson string +} + +// 初始化YunosTvpubadminManageDialogEditAPIRequest对象 +func NewYunosTvpubadminManageDialogEditRequest() *YunosTvpubadminManageDialogEditAPIRequest{ + return &YunosTvpubadminManageDialogEditAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminManageDialogEditAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.manage.dialog.edit" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminManageDialogEditAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DialogJson Setter +// 待编辑的全局弹窗 +func (r *YunosTvpubadminManageDialogEditAPIRequest) SetDialogJson(_dialogJson string) error { + r._dialogJson = _dialogJson + r.Set("dialog_json", _dialogJson) + return nil +} + +// DialogJson Getter +func (r YunosTvpubadminManageDialogEditAPIRequest) GetDialogJson() string { + return r._dialogJson +} diff --git a/model/tvupadmin/YunosTvpubadminManageDialogEditAPIResponse.go b/model/tvupadmin/YunosTvpubadminManageDialogEditAPIResponse.go new file mode 100644 index 0000000000..b0758b39dc --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageDialogEditAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +编辑全局弹窗 API返回值 +yunos.tvpubadmin.manage.dialog.edit + +编辑全局弹窗 +*/ +type YunosTvpubadminManageDialogEditAPIResponse struct { + model.CommonResponse + YunosTvpubadminManageDialogEditAPIResponseModel +} + +// 编辑全局弹窗 成功返回结果 +type YunosTvpubadminManageDialogEditAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_manage_dialog_edit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminManageDialogEditResponse.go b/model/tvupadmin/YunosTvpubadminManageDialogEditResponse.go deleted file mode 100644 index 65abbc1db0..0000000000 --- a/model/tvupadmin/YunosTvpubadminManageDialogEditResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -编辑全局弹窗 API返回值 -yunos.tvpubadmin.manage.dialog.edit - -编辑全局弹窗 -*/ -type YunosTvpubadminManageDialogEditAPIResponse struct { - model.CommonResponse - YunosTvpubadminManageDialogEditResponse -} - -// 编辑全局弹窗 成功返回结果 -type YunosTvpubadminManageDialogEditResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_manage_dialog_edit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminManageDialogFindbyidAPIRequest.go b/model/tvupadmin/YunosTvpubadminManageDialogFindbyidAPIRequest.go new file mode 100644 index 0000000000..52fc32be7d --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageDialogFindbyidAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据id查询全局弹窗 API请求 +yunos.tvpubadmin.manage.dialog.findbyid + +根据id查询全局弹窗 +*/ +type YunosTvpubadminManageDialogFindbyidAPIRequest struct { + model.Params + // 全局弹窗id + _id int64 +} + +// 初始化YunosTvpubadminManageDialogFindbyidAPIRequest对象 +func NewYunosTvpubadminManageDialogFindbyidRequest() *YunosTvpubadminManageDialogFindbyidAPIRequest{ + return &YunosTvpubadminManageDialogFindbyidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminManageDialogFindbyidAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.manage.dialog.findbyid" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminManageDialogFindbyidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 全局弹窗id +func (r *YunosTvpubadminManageDialogFindbyidAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r YunosTvpubadminManageDialogFindbyidAPIRequest) GetId() int64 { + return r._id +} diff --git a/model/tvupadmin/YunosTvpubadminManageDialogFindbyidAPIResponse.go b/model/tvupadmin/YunosTvpubadminManageDialogFindbyidAPIResponse.go new file mode 100644 index 0000000000..f3d21fe7be --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageDialogFindbyidAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据id查询全局弹窗 API返回值 +yunos.tvpubadmin.manage.dialog.findbyid + +根据id查询全局弹窗 +*/ +type YunosTvpubadminManageDialogFindbyidAPIResponse struct { + model.CommonResponse + YunosTvpubadminManageDialogFindbyidAPIResponseModel +} + +// 根据id查询全局弹窗 成功返回结果 +type YunosTvpubadminManageDialogFindbyidAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_manage_dialog_findbyid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminManageDialogFindbyidResponse.go b/model/tvupadmin/YunosTvpubadminManageDialogFindbyidResponse.go deleted file mode 100644 index 884cdba28a..0000000000 --- a/model/tvupadmin/YunosTvpubadminManageDialogFindbyidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据id查询全局弹窗 API返回值 -yunos.tvpubadmin.manage.dialog.findbyid - -根据id查询全局弹窗 -*/ -type YunosTvpubadminManageDialogFindbyidAPIResponse struct { - model.CommonResponse - YunosTvpubadminManageDialogFindbyidResponse -} - -// 根据id查询全局弹窗 成功返回结果 -type YunosTvpubadminManageDialogFindbyidResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_manage_dialog_findbyid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminManageDialogListAPIRequest.go b/model/tvupadmin/YunosTvpubadminManageDialogListAPIRequest.go new file mode 100644 index 0000000000..9fd32acdac --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageDialogListAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页获取弹窗列表 API请求 +yunos.tvpubadmin.manage.dialog.list + +分页获取弹窗配置列表 +*/ +type YunosTvpubadminManageDialogListAPIRequest struct { + model.Params + // 查询的query参数 + _query string +} + +// 初始化YunosTvpubadminManageDialogListAPIRequest对象 +func NewYunosTvpubadminManageDialogListRequest() *YunosTvpubadminManageDialogListAPIRequest{ + return &YunosTvpubadminManageDialogListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminManageDialogListAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.manage.dialog.list" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminManageDialogListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 查询的query参数 +func (r *YunosTvpubadminManageDialogListAPIRequest) SetQuery(_query string) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r YunosTvpubadminManageDialogListAPIRequest) GetQuery() string { + return r._query +} diff --git a/model/tvupadmin/YunosTvpubadminManageDialogListAPIResponse.go b/model/tvupadmin/YunosTvpubadminManageDialogListAPIResponse.go new file mode 100644 index 0000000000..725c6c3197 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageDialogListAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页获取弹窗列表 API返回值 +yunos.tvpubadmin.manage.dialog.list + +分页获取弹窗配置列表 +*/ +type YunosTvpubadminManageDialogListAPIResponse struct { + model.CommonResponse + YunosTvpubadminManageDialogListAPIResponseModel +} + +// 分页获取弹窗列表 成功返回结果 +type YunosTvpubadminManageDialogListAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_manage_dialog_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminManageDialogListResponse.go b/model/tvupadmin/YunosTvpubadminManageDialogListResponse.go deleted file mode 100644 index c9af372816..0000000000 --- a/model/tvupadmin/YunosTvpubadminManageDialogListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页获取弹窗列表 API返回值 -yunos.tvpubadmin.manage.dialog.list - -分页获取弹窗配置列表 -*/ -type YunosTvpubadminManageDialogListAPIResponse struct { - model.CommonResponse - YunosTvpubadminManageDialogListResponse -} - -// 分页获取弹窗列表 成功返回结果 -type YunosTvpubadminManageDialogListResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_manage_dialog_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicAddAPIRequest.go b/model/tvupadmin/YunosTvpubadminManageTopicAddAPIRequest.go new file mode 100644 index 0000000000..bc4cb51bb0 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageTopicAddAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增专题 API请求 +yunos.tvpubadmin.manage.topic.add + +专题新增 +*/ +type YunosTvpubadminManageTopicAddAPIRequest struct { + model.Params + // 新增topic的json信息 + _topicJson string +} + +// 初始化YunosTvpubadminManageTopicAddAPIRequest对象 +func NewYunosTvpubadminManageTopicAddRequest() *YunosTvpubadminManageTopicAddAPIRequest{ + return &YunosTvpubadminManageTopicAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminManageTopicAddAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.manage.topic.add" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminManageTopicAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TopicJson Setter +// 新增topic的json信息 +func (r *YunosTvpubadminManageTopicAddAPIRequest) SetTopicJson(_topicJson string) error { + r._topicJson = _topicJson + r.Set("topic_json", _topicJson) + return nil +} + +// TopicJson Getter +func (r YunosTvpubadminManageTopicAddAPIRequest) GetTopicJson() string { + return r._topicJson +} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicAddAPIResponse.go b/model/tvupadmin/YunosTvpubadminManageTopicAddAPIResponse.go new file mode 100644 index 0000000000..3fe92969cd --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageTopicAddAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增专题 API返回值 +yunos.tvpubadmin.manage.topic.add + +专题新增 +*/ +type YunosTvpubadminManageTopicAddAPIResponse struct { + model.CommonResponse + YunosTvpubadminManageTopicAddAPIResponseModel +} + +// 新增专题 成功返回结果 +type YunosTvpubadminManageTopicAddAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_manage_topic_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicAddResponse.go b/model/tvupadmin/YunosTvpubadminManageTopicAddResponse.go deleted file mode 100644 index ea4583a298..0000000000 --- a/model/tvupadmin/YunosTvpubadminManageTopicAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增专题 API返回值 -yunos.tvpubadmin.manage.topic.add - -专题新增 -*/ -type YunosTvpubadminManageTopicAddAPIResponse struct { - model.CommonResponse - YunosTvpubadminManageTopicAddResponse -} - -// 新增专题 成功返回结果 -type YunosTvpubadminManageTopicAddResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_manage_topic_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicContentaddAPIRequest.go b/model/tvupadmin/YunosTvpubadminManageTopicContentaddAPIRequest.go new file mode 100644 index 0000000000..11b02e533f --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageTopicContentaddAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +专题新增内容 API请求 +yunos.tvpubadmin.manage.topic.contentadd + +专题新增内容 +*/ +type YunosTvpubadminManageTopicContentaddAPIRequest struct { + model.Params + // 新增的专题内容 + _contentJson string +} + +// 初始化YunosTvpubadminManageTopicContentaddAPIRequest对象 +func NewYunosTvpubadminManageTopicContentaddRequest() *YunosTvpubadminManageTopicContentaddAPIRequest{ + return &YunosTvpubadminManageTopicContentaddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminManageTopicContentaddAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.manage.topic.contentadd" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminManageTopicContentaddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ContentJson Setter +// 新增的专题内容 +func (r *YunosTvpubadminManageTopicContentaddAPIRequest) SetContentJson(_contentJson string) error { + r._contentJson = _contentJson + r.Set("content_json", _contentJson) + return nil +} + +// ContentJson Getter +func (r YunosTvpubadminManageTopicContentaddAPIRequest) GetContentJson() string { + return r._contentJson +} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicContentaddAPIResponse.go b/model/tvupadmin/YunosTvpubadminManageTopicContentaddAPIResponse.go new file mode 100644 index 0000000000..916784a630 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageTopicContentaddAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +专题新增内容 API返回值 +yunos.tvpubadmin.manage.topic.contentadd + +专题新增内容 +*/ +type YunosTvpubadminManageTopicContentaddAPIResponse struct { + model.CommonResponse + YunosTvpubadminManageTopicContentaddAPIResponseModel +} + +// 专题新增内容 成功返回结果 +type YunosTvpubadminManageTopicContentaddAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_manage_topic_contentadd_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicContentaddResponse.go b/model/tvupadmin/YunosTvpubadminManageTopicContentaddResponse.go deleted file mode 100644 index 3335b4e3f4..0000000000 --- a/model/tvupadmin/YunosTvpubadminManageTopicContentaddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -专题新增内容 API返回值 -yunos.tvpubadmin.manage.topic.contentadd - -专题新增内容 -*/ -type YunosTvpubadminManageTopicContentaddAPIResponse struct { - model.CommonResponse - YunosTvpubadminManageTopicContentaddResponse -} - -// 专题新增内容 成功返回结果 -type YunosTvpubadminManageTopicContentaddResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_manage_topic_contentadd_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicContentdeleteAPIRequest.go b/model/tvupadmin/YunosTvpubadminManageTopicContentdeleteAPIRequest.go new file mode 100644 index 0000000000..64a503cd2c --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageTopicContentdeleteAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除专题下内容 API请求 +yunos.tvpubadmin.manage.topic.contentdelete + +删除专题下内容信息 +*/ +type YunosTvpubadminManageTopicContentdeleteAPIRequest struct { + model.Params + // 节目id + _id int64 +} + +// 初始化YunosTvpubadminManageTopicContentdeleteAPIRequest对象 +func NewYunosTvpubadminManageTopicContentdeleteRequest() *YunosTvpubadminManageTopicContentdeleteAPIRequest{ + return &YunosTvpubadminManageTopicContentdeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminManageTopicContentdeleteAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.manage.topic.contentdelete" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminManageTopicContentdeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 节目id +func (r *YunosTvpubadminManageTopicContentdeleteAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r YunosTvpubadminManageTopicContentdeleteAPIRequest) GetId() int64 { + return r._id +} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicContentdeleteAPIResponse.go b/model/tvupadmin/YunosTvpubadminManageTopicContentdeleteAPIResponse.go new file mode 100644 index 0000000000..f49cef7762 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageTopicContentdeleteAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除专题下内容 API返回值 +yunos.tvpubadmin.manage.topic.contentdelete + +删除专题下内容信息 +*/ +type YunosTvpubadminManageTopicContentdeleteAPIResponse struct { + model.CommonResponse + YunosTvpubadminManageTopicContentdeleteAPIResponseModel +} + +// 删除专题下内容 成功返回结果 +type YunosTvpubadminManageTopicContentdeleteAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_manage_topic_contentdelete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicContentdeleteResponse.go b/model/tvupadmin/YunosTvpubadminManageTopicContentdeleteResponse.go deleted file mode 100644 index 4b8e005313..0000000000 --- a/model/tvupadmin/YunosTvpubadminManageTopicContentdeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除专题下内容 API返回值 -yunos.tvpubadmin.manage.topic.contentdelete - -删除专题下内容信息 -*/ -type YunosTvpubadminManageTopicContentdeleteAPIResponse struct { - model.CommonResponse - YunosTvpubadminManageTopicContentdeleteResponse -} - -// 删除专题下内容 成功返回结果 -type YunosTvpubadminManageTopicContentdeleteResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_manage_topic_contentdelete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicContenteditAPIRequest.go b/model/tvupadmin/YunosTvpubadminManageTopicContenteditAPIRequest.go new file mode 100644 index 0000000000..f3ef156ffa --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageTopicContenteditAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +专题关联内容编辑 API请求 +yunos.tvpubadmin.manage.topic.contentedit + +编辑专题关联的内容 +*/ +type YunosTvpubadminManageTopicContenteditAPIRequest struct { + model.Params + // 入参,json格式 + _contentJson string +} + +// 初始化YunosTvpubadminManageTopicContenteditAPIRequest对象 +func NewYunosTvpubadminManageTopicContenteditRequest() *YunosTvpubadminManageTopicContenteditAPIRequest{ + return &YunosTvpubadminManageTopicContenteditAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminManageTopicContenteditAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.manage.topic.contentedit" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminManageTopicContenteditAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ContentJson Setter +// 入参,json格式 +func (r *YunosTvpubadminManageTopicContenteditAPIRequest) SetContentJson(_contentJson string) error { + r._contentJson = _contentJson + r.Set("content_json", _contentJson) + return nil +} + +// ContentJson Getter +func (r YunosTvpubadminManageTopicContenteditAPIRequest) GetContentJson() string { + return r._contentJson +} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicContenteditAPIResponse.go b/model/tvupadmin/YunosTvpubadminManageTopicContenteditAPIResponse.go new file mode 100644 index 0000000000..0ff0b817bc --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageTopicContenteditAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +专题关联内容编辑 API返回值 +yunos.tvpubadmin.manage.topic.contentedit + +编辑专题关联的内容 +*/ +type YunosTvpubadminManageTopicContenteditAPIResponse struct { + model.CommonResponse + YunosTvpubadminManageTopicContenteditAPIResponseModel +} + +// 专题关联内容编辑 成功返回结果 +type YunosTvpubadminManageTopicContenteditAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_manage_topic_contentedit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作返回结果 + Object bool `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicContenteditResponse.go b/model/tvupadmin/YunosTvpubadminManageTopicContenteditResponse.go deleted file mode 100644 index bd1cd94b36..0000000000 --- a/model/tvupadmin/YunosTvpubadminManageTopicContenteditResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -专题关联内容编辑 API返回值 -yunos.tvpubadmin.manage.topic.contentedit - -编辑专题关联的内容 -*/ -type YunosTvpubadminManageTopicContenteditAPIResponse struct { - model.CommonResponse - YunosTvpubadminManageTopicContenteditResponse -} - -// 专题关联内容编辑 成功返回结果 -type YunosTvpubadminManageTopicContenteditResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_manage_topic_contentedit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作返回结果 - Object bool `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicContentlistAPIRequest.go b/model/tvupadmin/YunosTvpubadminManageTopicContentlistAPIRequest.go new file mode 100644 index 0000000000..f9e9856a8a --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageTopicContentlistAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查看专题内容列表 API请求 +yunos.tvpubadmin.manage.topic.contentlist + +查看专题内容列表 +*/ +type YunosTvpubadminManageTopicContentlistAPIRequest struct { + model.Params + // 节目查询参数 + _programQuery string +} + +// 初始化YunosTvpubadminManageTopicContentlistAPIRequest对象 +func NewYunosTvpubadminManageTopicContentlistRequest() *YunosTvpubadminManageTopicContentlistAPIRequest{ + return &YunosTvpubadminManageTopicContentlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminManageTopicContentlistAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.manage.topic.contentlist" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminManageTopicContentlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ProgramQuery Setter +// 节目查询参数 +func (r *YunosTvpubadminManageTopicContentlistAPIRequest) SetProgramQuery(_programQuery string) error { + r._programQuery = _programQuery + r.Set("program_query", _programQuery) + return nil +} + +// ProgramQuery Getter +func (r YunosTvpubadminManageTopicContentlistAPIRequest) GetProgramQuery() string { + return r._programQuery +} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicContentlistAPIResponse.go b/model/tvupadmin/YunosTvpubadminManageTopicContentlistAPIResponse.go new file mode 100644 index 0000000000..3660ea52e9 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageTopicContentlistAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查看专题内容列表 API返回值 +yunos.tvpubadmin.manage.topic.contentlist + +查看专题内容列表 +*/ +type YunosTvpubadminManageTopicContentlistAPIResponse struct { + model.CommonResponse + YunosTvpubadminManageTopicContentlistAPIResponseModel +} + +// 查看专题内容列表 成功返回结果 +type YunosTvpubadminManageTopicContentlistAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_manage_topic_contentlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicContentlistResponse.go b/model/tvupadmin/YunosTvpubadminManageTopicContentlistResponse.go deleted file mode 100644 index 6f06f93866..0000000000 --- a/model/tvupadmin/YunosTvpubadminManageTopicContentlistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查看专题内容列表 API返回值 -yunos.tvpubadmin.manage.topic.contentlist - -查看专题内容列表 -*/ -type YunosTvpubadminManageTopicContentlistAPIResponse struct { - model.CommonResponse - YunosTvpubadminManageTopicContentlistResponse -} - -// 查看专题内容列表 成功返回结果 -type YunosTvpubadminManageTopicContentlistResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_manage_topic_contentlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicEditAPIRequest.go b/model/tvupadmin/YunosTvpubadminManageTopicEditAPIRequest.go new file mode 100644 index 0000000000..be7e4ea472 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageTopicEditAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +编辑专题 API请求 +yunos.tvpubadmin.manage.topic.edit + +编辑专题 +*/ +type YunosTvpubadminManageTopicEditAPIRequest struct { + model.Params + // 待编辑专题 + _topicJson string +} + +// 初始化YunosTvpubadminManageTopicEditAPIRequest对象 +func NewYunosTvpubadminManageTopicEditRequest() *YunosTvpubadminManageTopicEditAPIRequest{ + return &YunosTvpubadminManageTopicEditAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminManageTopicEditAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.manage.topic.edit" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminManageTopicEditAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TopicJson Setter +// 待编辑专题 +func (r *YunosTvpubadminManageTopicEditAPIRequest) SetTopicJson(_topicJson string) error { + r._topicJson = _topicJson + r.Set("topic_json", _topicJson) + return nil +} + +// TopicJson Getter +func (r YunosTvpubadminManageTopicEditAPIRequest) GetTopicJson() string { + return r._topicJson +} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicEditAPIResponse.go b/model/tvupadmin/YunosTvpubadminManageTopicEditAPIResponse.go new file mode 100644 index 0000000000..d36c3234f9 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageTopicEditAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +编辑专题 API返回值 +yunos.tvpubadmin.manage.topic.edit + +编辑专题 +*/ +type YunosTvpubadminManageTopicEditAPIResponse struct { + model.CommonResponse + YunosTvpubadminManageTopicEditAPIResponseModel +} + +// 编辑专题 成功返回结果 +type YunosTvpubadminManageTopicEditAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_manage_topic_edit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicEditResponse.go b/model/tvupadmin/YunosTvpubadminManageTopicEditResponse.go deleted file mode 100644 index 2875497f2f..0000000000 --- a/model/tvupadmin/YunosTvpubadminManageTopicEditResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -编辑专题 API返回值 -yunos.tvpubadmin.manage.topic.edit - -编辑专题 -*/ -type YunosTvpubadminManageTopicEditAPIResponse struct { - model.CommonResponse - YunosTvpubadminManageTopicEditResponse -} - -// 编辑专题 成功返回结果 -type YunosTvpubadminManageTopicEditResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_manage_topic_edit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicFindbyidAPIRequest.go b/model/tvupadmin/YunosTvpubadminManageTopicFindbyidAPIRequest.go new file mode 100644 index 0000000000..63c5742e77 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageTopicFindbyidAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据id获取专题信息 API请求 +yunos.tvpubadmin.manage.topic.findbyid + +根据id获取专题信息 +*/ +type YunosTvpubadminManageTopicFindbyidAPIRequest struct { + model.Params + // 专题id + _id int64 +} + +// 初始化YunosTvpubadminManageTopicFindbyidAPIRequest对象 +func NewYunosTvpubadminManageTopicFindbyidRequest() *YunosTvpubadminManageTopicFindbyidAPIRequest{ + return &YunosTvpubadminManageTopicFindbyidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminManageTopicFindbyidAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.manage.topic.findbyid" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminManageTopicFindbyidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 专题id +func (r *YunosTvpubadminManageTopicFindbyidAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r YunosTvpubadminManageTopicFindbyidAPIRequest) GetId() int64 { + return r._id +} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicFindbyidAPIResponse.go b/model/tvupadmin/YunosTvpubadminManageTopicFindbyidAPIResponse.go new file mode 100644 index 0000000000..b23cb99035 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageTopicFindbyidAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据id获取专题信息 API返回值 +yunos.tvpubadmin.manage.topic.findbyid + +根据id获取专题信息 +*/ +type YunosTvpubadminManageTopicFindbyidAPIResponse struct { + model.CommonResponse + YunosTvpubadminManageTopicFindbyidAPIResponseModel +} + +// 根据id获取专题信息 成功返回结果 +type YunosTvpubadminManageTopicFindbyidAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_manage_topic_findbyid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicFindbyidResponse.go b/model/tvupadmin/YunosTvpubadminManageTopicFindbyidResponse.go deleted file mode 100644 index 3f4b522603..0000000000 --- a/model/tvupadmin/YunosTvpubadminManageTopicFindbyidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据id获取专题信息 API返回值 -yunos.tvpubadmin.manage.topic.findbyid - -根据id获取专题信息 -*/ -type YunosTvpubadminManageTopicFindbyidAPIResponse struct { - model.CommonResponse - YunosTvpubadminManageTopicFindbyidResponse -} - -// 根据id获取专题信息 成功返回结果 -type YunosTvpubadminManageTopicFindbyidResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_manage_topic_findbyid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicListAPIRequest.go b/model/tvupadmin/YunosTvpubadminManageTopicListAPIRequest.go new file mode 100644 index 0000000000..69a58a3b72 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageTopicListAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +专题内容操作列表 API请求 +yunos.tvpubadmin.manage.topic.list + +获取外部可操作编辑的专题列表 +*/ +type YunosTvpubadminManageTopicListAPIRequest struct { + model.Params + // 查询条件 + _query string +} + +// 初始化YunosTvpubadminManageTopicListAPIRequest对象 +func NewYunosTvpubadminManageTopicListRequest() *YunosTvpubadminManageTopicListAPIRequest{ + return &YunosTvpubadminManageTopicListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminManageTopicListAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.manage.topic.list" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminManageTopicListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 查询条件 +func (r *YunosTvpubadminManageTopicListAPIRequest) SetQuery(_query string) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r YunosTvpubadminManageTopicListAPIRequest) GetQuery() string { + return r._query +} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicListAPIResponse.go b/model/tvupadmin/YunosTvpubadminManageTopicListAPIResponse.go new file mode 100644 index 0000000000..6167fee995 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminManageTopicListAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +专题内容操作列表 API返回值 +yunos.tvpubadmin.manage.topic.list + +获取外部可操作编辑的专题列表 +*/ +type YunosTvpubadminManageTopicListAPIResponse struct { + model.CommonResponse + YunosTvpubadminManageTopicListAPIResponseModel +} + +// 专题内容操作列表 成功返回结果 +type YunosTvpubadminManageTopicListAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_manage_topic_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object string `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminManageTopicListResponse.go b/model/tvupadmin/YunosTvpubadminManageTopicListResponse.go deleted file mode 100644 index 5864da4e11..0000000000 --- a/model/tvupadmin/YunosTvpubadminManageTopicListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -专题内容操作列表 API返回值 -yunos.tvpubadmin.manage.topic.list - -获取外部可操作编辑的专题列表 -*/ -type YunosTvpubadminManageTopicListAPIResponse struct { - model.CommonResponse - YunosTvpubadminManageTopicListResponse -} - -// 专题内容操作列表 成功返回结果 -type YunosTvpubadminManageTopicListResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_manage_topic_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object string `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminUserOrderlistAPIRequest.go b/model/tvupadmin/YunosTvpubadminUserOrderlistAPIRequest.go new file mode 100644 index 0000000000..0ba901bd4e --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminUserOrderlistAPIRequest.go @@ -0,0 +1,122 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户订单列表 API请求 +yunos.tvpubadmin.user.orderlist + +获取用户订单列表 +*/ +type YunosTvpubadminUserOrderlistAPIRequest struct { + model.Params + // 用户ID + _uid int64 + // 开始时间 + _createTimeStartStr string + // 结束时间 + _createTimeEndStr string + // 牌照方 + _license int64 + // 页码值 + _pageNo int64 + // 每页行数 + _pageSize int64 +} + +// 初始化YunosTvpubadminUserOrderlistAPIRequest对象 +func NewYunosTvpubadminUserOrderlistRequest() *YunosTvpubadminUserOrderlistAPIRequest{ + return &YunosTvpubadminUserOrderlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminUserOrderlistAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.user.orderlist" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminUserOrderlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Uid Setter +// 用户ID +func (r *YunosTvpubadminUserOrderlistAPIRequest) SetUid(_uid int64) error { + r._uid = _uid + r.Set("uid", _uid) + return nil +} + +// Uid Getter +func (r YunosTvpubadminUserOrderlistAPIRequest) GetUid() int64 { + return r._uid +} +// CreateTimeStartStr Setter +// 开始时间 +func (r *YunosTvpubadminUserOrderlistAPIRequest) SetCreateTimeStartStr(_createTimeStartStr string) error { + r._createTimeStartStr = _createTimeStartStr + r.Set("create_time_start_str", _createTimeStartStr) + return nil +} + +// CreateTimeStartStr Getter +func (r YunosTvpubadminUserOrderlistAPIRequest) GetCreateTimeStartStr() string { + return r._createTimeStartStr +} +// CreateTimeEndStr Setter +// 结束时间 +func (r *YunosTvpubadminUserOrderlistAPIRequest) SetCreateTimeEndStr(_createTimeEndStr string) error { + r._createTimeEndStr = _createTimeEndStr + r.Set("create_time_end_str", _createTimeEndStr) + return nil +} + +// CreateTimeEndStr Getter +func (r YunosTvpubadminUserOrderlistAPIRequest) GetCreateTimeEndStr() string { + return r._createTimeEndStr +} +// License Setter +// 牌照方 +func (r *YunosTvpubadminUserOrderlistAPIRequest) SetLicense(_license int64) error { + r._license = _license + r.Set("license", _license) + return nil +} + +// License Getter +func (r YunosTvpubadminUserOrderlistAPIRequest) GetLicense() int64 { + return r._license +} +// PageNo Setter +// 页码值 +func (r *YunosTvpubadminUserOrderlistAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r YunosTvpubadminUserOrderlistAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页行数 +func (r *YunosTvpubadminUserOrderlistAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r YunosTvpubadminUserOrderlistAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tvupadmin/YunosTvpubadminUserOrderlistAPIResponse.go b/model/tvupadmin/YunosTvpubadminUserOrderlistAPIResponse.go new file mode 100644 index 0000000000..aae0870dbc --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminUserOrderlistAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户订单列表 API返回值 +yunos.tvpubadmin.user.orderlist + +获取用户订单列表 +*/ +type YunosTvpubadminUserOrderlistAPIResponse struct { + model.CommonResponse + YunosTvpubadminUserOrderlistAPIResponseModel +} + +// 获取用户订单列表 成功返回结果 +type YunosTvpubadminUserOrderlistAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_user_orderlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object *PaginationDo `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminUserOrderlistResponse.go b/model/tvupadmin/YunosTvpubadminUserOrderlistResponse.go deleted file mode 100644 index 811e3e69e3..0000000000 --- a/model/tvupadmin/YunosTvpubadminUserOrderlistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户订单列表 API返回值 -yunos.tvpubadmin.user.orderlist - -获取用户订单列表 -*/ -type YunosTvpubadminUserOrderlistAPIResponse struct { - model.CommonResponse - YunosTvpubadminUserOrderlistResponse -} - -// 获取用户订单列表 成功返回结果 -type YunosTvpubadminUserOrderlistResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_user_orderlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object *PaginationDo `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminUserRightsAPIRequest.go b/model/tvupadmin/YunosTvpubadminUserRightsAPIRequest.go new file mode 100644 index 0000000000..b76e3a9073 --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminUserRightsAPIRequest.go @@ -0,0 +1,80 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户权益 API请求 +yunos.tvpubadmin.user.rights + +获取用户权益 +*/ +type YunosTvpubadminUserRightsAPIRequest struct { + model.Params + // 用户ID + _uid int64 + // 页码值 + _pageNo int64 + // 每页行数 + _pageSize int64 +} + +// 初始化YunosTvpubadminUserRightsAPIRequest对象 +func NewYunosTvpubadminUserRightsRequest() *YunosTvpubadminUserRightsAPIRequest{ + return &YunosTvpubadminUserRightsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminUserRightsAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.user.rights" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminUserRightsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Uid Setter +// 用户ID +func (r *YunosTvpubadminUserRightsAPIRequest) SetUid(_uid int64) error { + r._uid = _uid + r.Set("uid", _uid) + return nil +} + +// Uid Getter +func (r YunosTvpubadminUserRightsAPIRequest) GetUid() int64 { + return r._uid +} +// PageNo Setter +// 页码值 +func (r *YunosTvpubadminUserRightsAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r YunosTvpubadminUserRightsAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页行数 +func (r *YunosTvpubadminUserRightsAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r YunosTvpubadminUserRightsAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/tvupadmin/YunosTvpubadminUserRightsAPIResponse.go b/model/tvupadmin/YunosTvpubadminUserRightsAPIResponse.go new file mode 100644 index 0000000000..95304ae11a --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminUserRightsAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户权益 API返回值 +yunos.tvpubadmin.user.rights + +获取用户权益 +*/ +type YunosTvpubadminUserRightsAPIResponse struct { + model.CommonResponse + YunosTvpubadminUserRightsAPIResponseModel +} + +// 获取用户权益 成功返回结果 +type YunosTvpubadminUserRightsAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_user_rights_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + Object *PaginationDo `json:"object,omitempty" xml:"object,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminUserRightsResponse.go b/model/tvupadmin/YunosTvpubadminUserRightsResponse.go deleted file mode 100644 index 73d451429d..0000000000 --- a/model/tvupadmin/YunosTvpubadminUserRightsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户权益 API返回值 -yunos.tvpubadmin.user.rights - -获取用户权益 -*/ -type YunosTvpubadminUserRightsAPIResponse struct { - model.CommonResponse - YunosTvpubadminUserRightsResponse -} - -// 获取用户权益 成功返回结果 -type YunosTvpubadminUserRightsResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_user_rights_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - Object *PaginationDo `json:"object,omitempty" xml:"object,omitempty"` -} diff --git a/model/tvupadmin/YunosTvpubadminUserSuggestAPIRequest.go b/model/tvupadmin/YunosTvpubadminUserSuggestAPIRequest.go new file mode 100644 index 0000000000..85e636e04b --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminUserSuggestAPIRequest.go @@ -0,0 +1,52 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取关联账户列表 API请求 +yunos.tvpubadmin.user.suggest + +获取关联账户列表 +*/ +type YunosTvpubadminUserSuggestAPIRequest struct { + model.Params + // 关键词 + _keyword string +} + +// 初始化YunosTvpubadminUserSuggestAPIRequest对象 +func NewYunosTvpubadminUserSuggestRequest() *YunosTvpubadminUserSuggestAPIRequest{ + return &YunosTvpubadminUserSuggestAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvpubadminUserSuggestAPIRequest) GetApiMethodName() string { + return "yunos.tvpubadmin.user.suggest" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvpubadminUserSuggestAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Keyword Setter +// 关键词 +func (r *YunosTvpubadminUserSuggestAPIRequest) SetKeyword(_keyword string) error { + r._keyword = _keyword + r.Set("keyword", _keyword) + return nil +} + +// Keyword Getter +func (r YunosTvpubadminUserSuggestAPIRequest) GetKeyword() string { + return r._keyword +} diff --git a/model/tvupadmin/YunosTvpubadminUserSuggestAPIResponse.go b/model/tvupadmin/YunosTvpubadminUserSuggestAPIResponse.go new file mode 100644 index 0000000000..6f58ac220c --- /dev/null +++ b/model/tvupadmin/YunosTvpubadminUserSuggestAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取关联账户列表 API返回值 +yunos.tvpubadmin.user.suggest + +获取关联账户列表 +*/ +type YunosTvpubadminUserSuggestAPIResponse struct { + model.CommonResponse + YunosTvpubadminUserSuggestAPIResponseModel +} + +// 获取关联账户列表 成功返回结果 +type YunosTvpubadminUserSuggestAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvpubadmin_user_suggest_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // object + List []AccountSuggestDo `json:"list,omitempty" xml:"list>account_suggest_do,omitempty"` +} diff --git a/model/tvupadmin/YunosTvpubadminUserSuggestResponse.go b/model/tvupadmin/YunosTvpubadminUserSuggestResponse.go deleted file mode 100644 index 7954b17f7c..0000000000 --- a/model/tvupadmin/YunosTvpubadminUserSuggestResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取关联账户列表 API返回值 -yunos.tvpubadmin.user.suggest - -获取关联账户列表 -*/ -type YunosTvpubadminUserSuggestAPIResponse struct { - model.CommonResponse - YunosTvpubadminUserSuggestResponse -} - -// 获取关联账户列表 成功返回结果 -type YunosTvpubadminUserSuggestResponse struct { - XMLName xml.Name `xml:"yunos_tvpubadmin_user_suggest_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // object - List []AccountSuggestDo `json:"list,omitempty" xml:"list>account_suggest_do,omitempty"` -} diff --git a/model/tvupadmin/YunosTvscreenAdminCommonOperationAPIRequest.go b/model/tvupadmin/YunosTvscreenAdminCommonOperationAPIRequest.go new file mode 100644 index 0000000000..402ca53830 --- /dev/null +++ b/model/tvupadmin/YunosTvscreenAdminCommonOperationAPIRequest.go @@ -0,0 +1,80 @@ +package tvupadmin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +一体机桌面通用接口 API请求 +yunos.tvscreen.admin.common.operation + +一体机桌面通用接口 +*/ +type YunosTvscreenAdminCommonOperationAPIRequest struct { + model.Params + // 参数数组 + _parameters string + // 方法名 + _methodName string + // 接口名称 + _interfaceName string +} + +// 初始化YunosTvscreenAdminCommonOperationAPIRequest对象 +func NewYunosTvscreenAdminCommonOperationRequest() *YunosTvscreenAdminCommonOperationAPIRequest{ + return &YunosTvscreenAdminCommonOperationAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosTvscreenAdminCommonOperationAPIRequest) GetApiMethodName() string { + return "yunos.tvscreen.admin.common.operation" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosTvscreenAdminCommonOperationAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Parameters Setter +// 参数数组 +func (r *YunosTvscreenAdminCommonOperationAPIRequest) SetParameters(_parameters string) error { + r._parameters = _parameters + r.Set("parameters", _parameters) + return nil +} + +// Parameters Getter +func (r YunosTvscreenAdminCommonOperationAPIRequest) GetParameters() string { + return r._parameters +} +// MethodName Setter +// 方法名 +func (r *YunosTvscreenAdminCommonOperationAPIRequest) SetMethodName(_methodName string) error { + r._methodName = _methodName + r.Set("method_name", _methodName) + return nil +} + +// MethodName Getter +func (r YunosTvscreenAdminCommonOperationAPIRequest) GetMethodName() string { + return r._methodName +} +// InterfaceName Setter +// 接口名称 +func (r *YunosTvscreenAdminCommonOperationAPIRequest) SetInterfaceName(_interfaceName string) error { + r._interfaceName = _interfaceName + r.Set("interface_name", _interfaceName) + return nil +} + +// InterfaceName Getter +func (r YunosTvscreenAdminCommonOperationAPIRequest) GetInterfaceName() string { + return r._interfaceName +} diff --git a/model/tvupadmin/YunosTvscreenAdminCommonOperationAPIResponse.go b/model/tvupadmin/YunosTvscreenAdminCommonOperationAPIResponse.go new file mode 100644 index 0000000000..e61a79e259 --- /dev/null +++ b/model/tvupadmin/YunosTvscreenAdminCommonOperationAPIResponse.go @@ -0,0 +1,27 @@ +package tvupadmin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +一体机桌面通用接口 API返回值 +yunos.tvscreen.admin.common.operation + +一体机桌面通用接口 +*/ +type YunosTvscreenAdminCommonOperationAPIResponse struct { + model.CommonResponse + YunosTvscreenAdminCommonOperationAPIResponseModel +} + +// 一体机桌面通用接口 成功返回结果 +type YunosTvscreenAdminCommonOperationAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_tvscreen_admin_common_operation_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/tvupadmin/YunosTvscreenAdminCommonOperationResponse.go b/model/tvupadmin/YunosTvscreenAdminCommonOperationResponse.go deleted file mode 100644 index a821320b1b..0000000000 --- a/model/tvupadmin/YunosTvscreenAdminCommonOperationResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package tvupadmin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -一体机桌面通用接口 API返回值 -yunos.tvscreen.admin.common.operation - -一体机桌面通用接口 -*/ -type YunosTvscreenAdminCommonOperationAPIResponse struct { - model.CommonResponse - YunosTvscreenAdminCommonOperationResponse -} - -// 一体机桌面通用接口 成功返回结果 -type YunosTvscreenAdminCommonOperationResponse struct { - XMLName xml.Name `xml:"yunos_tvscreen_admin_common_operation_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/txcs/TmallTxcsFinanceBillCheckAPIRequest.go b/model/txcs/TmallTxcsFinanceBillCheckAPIRequest.go new file mode 100644 index 0000000000..c710710f23 --- /dev/null +++ b/model/txcs/TmallTxcsFinanceBillCheckAPIRequest.go @@ -0,0 +1,66 @@ +package txcs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫超市外部商家财务账单对账 API请求 +tmall.txcs.finance.bill.check + +提供天猫超市外部合作商家财务账单对账 +*/ +type TmallTxcsFinanceBillCheckAPIRequest struct { + model.Params + // 查询参数 + _statementBillFeeDetailQuery *StatementBillFeeDetailQuery + // 门店编码 + _ouCode string +} + +// 初始化TmallTxcsFinanceBillCheckAPIRequest对象 +func NewTmallTxcsFinanceBillCheckRequest() *TmallTxcsFinanceBillCheckAPIRequest{ + return &TmallTxcsFinanceBillCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTxcsFinanceBillCheckAPIRequest) GetApiMethodName() string { + return "tmall.txcs.finance.bill.check" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTxcsFinanceBillCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StatementBillFeeDetailQuery Setter +// 查询参数 +func (r *TmallTxcsFinanceBillCheckAPIRequest) SetStatementBillFeeDetailQuery(_statementBillFeeDetailQuery *StatementBillFeeDetailQuery) error { + r._statementBillFeeDetailQuery = _statementBillFeeDetailQuery + r.Set("statement_bill_fee_detail_query", _statementBillFeeDetailQuery) + return nil +} + +// StatementBillFeeDetailQuery Getter +func (r TmallTxcsFinanceBillCheckAPIRequest) GetStatementBillFeeDetailQuery() *StatementBillFeeDetailQuery { + return r._statementBillFeeDetailQuery +} +// OuCode Setter +// 门店编码 +func (r *TmallTxcsFinanceBillCheckAPIRequest) SetOuCode(_ouCode string) error { + r._ouCode = _ouCode + r.Set("ou_code", _ouCode) + return nil +} + +// OuCode Getter +func (r TmallTxcsFinanceBillCheckAPIRequest) GetOuCode() string { + return r._ouCode +} diff --git a/model/txcs/TmallTxcsFinanceBillCheckAPIResponse.go b/model/txcs/TmallTxcsFinanceBillCheckAPIResponse.go new file mode 100644 index 0000000000..825dab81bd --- /dev/null +++ b/model/txcs/TmallTxcsFinanceBillCheckAPIResponse.go @@ -0,0 +1,27 @@ +package txcs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫超市外部商家财务账单对账 API返回值 +tmall.txcs.finance.bill.check + +提供天猫超市外部合作商家财务账单对账 +*/ +type TmallTxcsFinanceBillCheckAPIResponse struct { + model.CommonResponse + TmallTxcsFinanceBillCheckAPIResponseModel +} + +// 天猫超市外部商家财务账单对账 成功返回结果 +type TmallTxcsFinanceBillCheckAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_txcs_finance_bill_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求结果 + Result *AccessBaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/txcs/TmallTxcsFinanceBillCheckResponse.go b/model/txcs/TmallTxcsFinanceBillCheckResponse.go deleted file mode 100644 index 26c1e5224c..0000000000 --- a/model/txcs/TmallTxcsFinanceBillCheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package txcs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫超市外部商家财务账单对账 API返回值 -tmall.txcs.finance.bill.check - -提供天猫超市外部合作商家财务账单对账 -*/ -type TmallTxcsFinanceBillCheckAPIResponse struct { - model.CommonResponse - TmallTxcsFinanceBillCheckResponse -} - -// 天猫超市外部商家财务账单对账 成功返回结果 -type TmallTxcsFinanceBillCheckResponse struct { - XMLName xml.Name `xml:"tmall_txcs_finance_bill_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求结果 - Result *AccessBaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/txcs/TmallTxcsFinanceBillConfirmAPIRequest.go b/model/txcs/TmallTxcsFinanceBillConfirmAPIRequest.go new file mode 100644 index 0000000000..d72103c6ae --- /dev/null +++ b/model/txcs/TmallTxcsFinanceBillConfirmAPIRequest.go @@ -0,0 +1,66 @@ +package txcs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商账单确认 API请求 +tmall.txcs.finance.bill.confirm + +提供天猫超市外部合作商家:财务账单对账 +*/ +type TmallTxcsFinanceBillConfirmAPIRequest struct { + model.Params + // 门店ID + _ouCode string + // 系统自动生成 + _statementBillConfirmDTO *StatementBillConfirmDto +} + +// 初始化TmallTxcsFinanceBillConfirmAPIRequest对象 +func NewTmallTxcsFinanceBillConfirmRequest() *TmallTxcsFinanceBillConfirmAPIRequest{ + return &TmallTxcsFinanceBillConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTxcsFinanceBillConfirmAPIRequest) GetApiMethodName() string { + return "tmall.txcs.finance.bill.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTxcsFinanceBillConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuCode Setter +// 门店ID +func (r *TmallTxcsFinanceBillConfirmAPIRequest) SetOuCode(_ouCode string) error { + r._ouCode = _ouCode + r.Set("ou_code", _ouCode) + return nil +} + +// OuCode Getter +func (r TmallTxcsFinanceBillConfirmAPIRequest) GetOuCode() string { + return r._ouCode +} +// StatementBillConfirmDTO Setter +// 系统自动生成 +func (r *TmallTxcsFinanceBillConfirmAPIRequest) SetStatementBillConfirmDTO(_statementBillConfirmDTO *StatementBillConfirmDto) error { + r._statementBillConfirmDTO = _statementBillConfirmDTO + r.Set("statement_bill_confirm_d_t_o", _statementBillConfirmDTO) + return nil +} + +// StatementBillConfirmDTO Getter +func (r TmallTxcsFinanceBillConfirmAPIRequest) GetStatementBillConfirmDTO() *StatementBillConfirmDto { + return r._statementBillConfirmDTO +} diff --git a/model/txcs/TmallTxcsFinanceBillConfirmAPIResponse.go b/model/txcs/TmallTxcsFinanceBillConfirmAPIResponse.go new file mode 100644 index 0000000000..a62854d763 --- /dev/null +++ b/model/txcs/TmallTxcsFinanceBillConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package txcs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商账单确认 API返回值 +tmall.txcs.finance.bill.confirm + +提供天猫超市外部合作商家:财务账单对账 +*/ +type TmallTxcsFinanceBillConfirmAPIResponse struct { + model.CommonResponse + TmallTxcsFinanceBillConfirmAPIResponseModel +} + +// 供应商账单确认 成功返回结果 +type TmallTxcsFinanceBillConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_txcs_finance_bill_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AccessBaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/txcs/TmallTxcsFinanceBillConfirmResponse.go b/model/txcs/TmallTxcsFinanceBillConfirmResponse.go deleted file mode 100644 index 4a079c2e40..0000000000 --- a/model/txcs/TmallTxcsFinanceBillConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package txcs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商账单确认 API返回值 -tmall.txcs.finance.bill.confirm - -提供天猫超市外部合作商家:财务账单对账 -*/ -type TmallTxcsFinanceBillConfirmAPIResponse struct { - model.CommonResponse - TmallTxcsFinanceBillConfirmResponse -} - -// 供应商账单确认 成功返回结果 -type TmallTxcsFinanceBillConfirmResponse struct { - XMLName xml.Name `xml:"tmall_txcs_finance_bill_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AccessBaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/txcs/TmallTxcsFinanceBillQueryAPIRequest.go b/model/txcs/TmallTxcsFinanceBillQueryAPIRequest.go new file mode 100644 index 0000000000..a4f469225b --- /dev/null +++ b/model/txcs/TmallTxcsFinanceBillQueryAPIRequest.go @@ -0,0 +1,52 @@ +package txcs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫超市外部商家财务账单信息查询 API请求 +tmall.txcs.finance.bill.query + +提供天猫超市外部合作商家财务账单对账 +*/ +type TmallTxcsFinanceBillQueryAPIRequest struct { + model.Params + // 对账单号 + _statementBillQuery *StatementBillQuery +} + +// 初始化TmallTxcsFinanceBillQueryAPIRequest对象 +func NewTmallTxcsFinanceBillQueryRequest() *TmallTxcsFinanceBillQueryAPIRequest{ + return &TmallTxcsFinanceBillQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTxcsFinanceBillQueryAPIRequest) GetApiMethodName() string { + return "tmall.txcs.finance.bill.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTxcsFinanceBillQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StatementBillQuery Setter +// 对账单号 +func (r *TmallTxcsFinanceBillQueryAPIRequest) SetStatementBillQuery(_statementBillQuery *StatementBillQuery) error { + r._statementBillQuery = _statementBillQuery + r.Set("statement_bill_query", _statementBillQuery) + return nil +} + +// StatementBillQuery Getter +func (r TmallTxcsFinanceBillQueryAPIRequest) GetStatementBillQuery() *StatementBillQuery { + return r._statementBillQuery +} diff --git a/model/txcs/TmallTxcsFinanceBillQueryAPIResponse.go b/model/txcs/TmallTxcsFinanceBillQueryAPIResponse.go new file mode 100644 index 0000000000..b065fe1194 --- /dev/null +++ b/model/txcs/TmallTxcsFinanceBillQueryAPIResponse.go @@ -0,0 +1,27 @@ +package txcs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +天猫超市外部商家财务账单信息查询 API返回值 +tmall.txcs.finance.bill.query + +提供天猫超市外部合作商家财务账单对账 +*/ +type TmallTxcsFinanceBillQueryAPIResponse struct { + model.CommonResponse + TmallTxcsFinanceBillQueryAPIResponseModel +} + +// 天猫超市外部商家财务账单信息查询 成功返回结果 +type TmallTxcsFinanceBillQueryAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_txcs_finance_bill_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/txcs/TmallTxcsFinanceBillQueryResponse.go b/model/txcs/TmallTxcsFinanceBillQueryResponse.go deleted file mode 100644 index ceb533d608..0000000000 --- a/model/txcs/TmallTxcsFinanceBillQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package txcs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -天猫超市外部商家财务账单信息查询 API返回值 -tmall.txcs.finance.bill.query - -提供天猫超市外部合作商家财务账单对账 -*/ -type TmallTxcsFinanceBillQueryAPIResponse struct { - model.CommonResponse - TmallTxcsFinanceBillQueryResponse -} - -// 天猫超市外部商家财务账单信息查询 成功返回结果 -type TmallTxcsFinanceBillQueryResponse struct { - XMLName xml.Name `xml:"tmall_txcs_finance_bill_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/txcs/TmallTxcsFinanceInvoiceInputAPIRequest.go b/model/txcs/TmallTxcsFinanceInvoiceInputAPIRequest.go new file mode 100644 index 0000000000..c01b04b5a6 --- /dev/null +++ b/model/txcs/TmallTxcsFinanceInvoiceInputAPIRequest.go @@ -0,0 +1,66 @@ +package txcs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商发票录入 API请求 +tmall.txcs.finance.invoice.input + +提供天猫超市外部合作商家财务:供应商发票录入 +*/ +type TmallTxcsFinanceInvoiceInputAPIRequest struct { + model.Params + // 门店ID + _ouCode string + // 发票内容 + _invoiceInputDTO1 []InvoiceInputDto +} + +// 初始化TmallTxcsFinanceInvoiceInputAPIRequest对象 +func NewTmallTxcsFinanceInvoiceInputRequest() *TmallTxcsFinanceInvoiceInputAPIRequest{ + return &TmallTxcsFinanceInvoiceInputAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTxcsFinanceInvoiceInputAPIRequest) GetApiMethodName() string { + return "tmall.txcs.finance.invoice.input" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTxcsFinanceInvoiceInputAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuCode Setter +// 门店ID +func (r *TmallTxcsFinanceInvoiceInputAPIRequest) SetOuCode(_ouCode string) error { + r._ouCode = _ouCode + r.Set("ou_code", _ouCode) + return nil +} + +// OuCode Getter +func (r TmallTxcsFinanceInvoiceInputAPIRequest) GetOuCode() string { + return r._ouCode +} +// InvoiceInputDTO1 Setter +// 发票内容 +func (r *TmallTxcsFinanceInvoiceInputAPIRequest) SetInvoiceInputDTO1(_invoiceInputDTO1 []InvoiceInputDto) error { + r._invoiceInputDTO1 = _invoiceInputDTO1 + r.Set("invoice_input_d_t_o1", _invoiceInputDTO1) + return nil +} + +// InvoiceInputDTO1 Getter +func (r TmallTxcsFinanceInvoiceInputAPIRequest) GetInvoiceInputDTO1() []InvoiceInputDto { + return r._invoiceInputDTO1 +} diff --git a/model/txcs/TmallTxcsFinanceInvoiceInputAPIResponse.go b/model/txcs/TmallTxcsFinanceInvoiceInputAPIResponse.go new file mode 100644 index 0000000000..ced61dba0e --- /dev/null +++ b/model/txcs/TmallTxcsFinanceInvoiceInputAPIResponse.go @@ -0,0 +1,27 @@ +package txcs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商发票录入 API返回值 +tmall.txcs.finance.invoice.input + +提供天猫超市外部合作商家财务:供应商发票录入 +*/ +type TmallTxcsFinanceInvoiceInputAPIResponse struct { + model.CommonResponse + TmallTxcsFinanceInvoiceInputAPIResponseModel +} + +// 供应商发票录入 成功返回结果 +type TmallTxcsFinanceInvoiceInputAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_txcs_finance_invoice_input_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回内容 + Result *AccessBaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/txcs/TmallTxcsFinanceInvoiceInputResponse.go b/model/txcs/TmallTxcsFinanceInvoiceInputResponse.go deleted file mode 100644 index 473653547b..0000000000 --- a/model/txcs/TmallTxcsFinanceInvoiceInputResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package txcs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商发票录入 API返回值 -tmall.txcs.finance.invoice.input - -提供天猫超市外部合作商家财务:供应商发票录入 -*/ -type TmallTxcsFinanceInvoiceInputAPIResponse struct { - model.CommonResponse - TmallTxcsFinanceInvoiceInputResponse -} - -// 供应商发票录入 成功返回结果 -type TmallTxcsFinanceInvoiceInputResponse struct { - XMLName xml.Name `xml:"tmall_txcs_finance_invoice_input_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回内容 - Result *AccessBaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/txcs/TmallTxcsFinanceVerifyStatementBillAPIRequest.go b/model/txcs/TmallTxcsFinanceVerifyStatementBillAPIRequest.go new file mode 100644 index 0000000000..9e0c79ec54 --- /dev/null +++ b/model/txcs/TmallTxcsFinanceVerifyStatementBillAPIRequest.go @@ -0,0 +1,66 @@ +package txcs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商核销单录入 API请求 +tmall.txcs.finance.verify.statement.bill + +供应商核销单录入 +*/ +type TmallTxcsFinanceVerifyStatementBillAPIRequest struct { + model.Params + // 门店ID + _ouCode string + // 核销单内容 + _verificationBillDTO *VerificationBillDto +} + +// 初始化TmallTxcsFinanceVerifyStatementBillAPIRequest对象 +func NewTmallTxcsFinanceVerifyStatementBillRequest() *TmallTxcsFinanceVerifyStatementBillAPIRequest{ + return &TmallTxcsFinanceVerifyStatementBillAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallTxcsFinanceVerifyStatementBillAPIRequest) GetApiMethodName() string { + return "tmall.txcs.finance.verify.statement.bill" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallTxcsFinanceVerifyStatementBillAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuCode Setter +// 门店ID +func (r *TmallTxcsFinanceVerifyStatementBillAPIRequest) SetOuCode(_ouCode string) error { + r._ouCode = _ouCode + r.Set("ou_code", _ouCode) + return nil +} + +// OuCode Getter +func (r TmallTxcsFinanceVerifyStatementBillAPIRequest) GetOuCode() string { + return r._ouCode +} +// VerificationBillDTO Setter +// 核销单内容 +func (r *TmallTxcsFinanceVerifyStatementBillAPIRequest) SetVerificationBillDTO(_verificationBillDTO *VerificationBillDto) error { + r._verificationBillDTO = _verificationBillDTO + r.Set("verification_bill_d_t_o", _verificationBillDTO) + return nil +} + +// VerificationBillDTO Getter +func (r TmallTxcsFinanceVerifyStatementBillAPIRequest) GetVerificationBillDTO() *VerificationBillDto { + return r._verificationBillDTO +} diff --git a/model/txcs/TmallTxcsFinanceVerifyStatementBillAPIResponse.go b/model/txcs/TmallTxcsFinanceVerifyStatementBillAPIResponse.go new file mode 100644 index 0000000000..68eb5d75f3 --- /dev/null +++ b/model/txcs/TmallTxcsFinanceVerifyStatementBillAPIResponse.go @@ -0,0 +1,27 @@ +package txcs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商核销单录入 API返回值 +tmall.txcs.finance.verify.statement.bill + +供应商核销单录入 +*/ +type TmallTxcsFinanceVerifyStatementBillAPIResponse struct { + model.CommonResponse + TmallTxcsFinanceVerifyStatementBillAPIResponseModel +} + +// 供应商核销单录入 成功返回结果 +type TmallTxcsFinanceVerifyStatementBillAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_txcs_finance_verify_statement_bill_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AccessBaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/txcs/TmallTxcsFinanceVerifyStatementBillResponse.go b/model/txcs/TmallTxcsFinanceVerifyStatementBillResponse.go deleted file mode 100644 index b55a3d256c..0000000000 --- a/model/txcs/TmallTxcsFinanceVerifyStatementBillResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package txcs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商核销单录入 API返回值 -tmall.txcs.finance.verify.statement.bill - -供应商核销单录入 -*/ -type TmallTxcsFinanceVerifyStatementBillAPIResponse struct { - model.CommonResponse - TmallTxcsFinanceVerifyStatementBillResponse -} - -// 供应商核销单录入 成功返回结果 -type TmallTxcsFinanceVerifyStatementBillResponse struct { - XMLName xml.Name `xml:"tmall_txcs_finance_verify_statement_bill_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AccessBaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/uscesl/TaobaoUsceslBizApActivateAPIRequest.go b/model/uscesl/TaobaoUsceslBizApActivateAPIRequest.go new file mode 100644 index 0000000000..3a51a7430e --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizApActivateAPIRequest.go @@ -0,0 +1,80 @@ +package uscesl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +激活AP价签通讯模块 API请求 +taobao.uscesl.biz.ap.activate + +激活AP价签通讯模块 +*/ +type TaobaoUsceslBizApActivateAPIRequest struct { + model.Params + // AP的mac地址 + _apMac string + // 门店ID + _storeId int64 + // 商家编码 + _bizBrandKey string +} + +// 初始化TaobaoUsceslBizApActivateAPIRequest对象 +func NewTaobaoUsceslBizApActivateRequest() *TaobaoUsceslBizApActivateAPIRequest{ + return &TaobaoUsceslBizApActivateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsceslBizApActivateAPIRequest) GetApiMethodName() string { + return "taobao.uscesl.biz.ap.activate" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsceslBizApActivateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApMac Setter +// AP的mac地址 +func (r *TaobaoUsceslBizApActivateAPIRequest) SetApMac(_apMac string) error { + r._apMac = _apMac + r.Set("ap_mac", _apMac) + return nil +} + +// ApMac Getter +func (r TaobaoUsceslBizApActivateAPIRequest) GetApMac() string { + return r._apMac +} +// StoreId Setter +// 门店ID +func (r *TaobaoUsceslBizApActivateAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoUsceslBizApActivateAPIRequest) GetStoreId() int64 { + return r._storeId +} +// BizBrandKey Setter +// 商家编码 +func (r *TaobaoUsceslBizApActivateAPIRequest) SetBizBrandKey(_bizBrandKey string) error { + r._bizBrandKey = _bizBrandKey + r.Set("biz_brand_key", _bizBrandKey) + return nil +} + +// BizBrandKey Getter +func (r TaobaoUsceslBizApActivateAPIRequest) GetBizBrandKey() string { + return r._bizBrandKey +} diff --git a/model/uscesl/TaobaoUsceslBizApActivateAPIResponse.go b/model/uscesl/TaobaoUsceslBizApActivateAPIResponse.go new file mode 100644 index 0000000000..2f26782c73 --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizApActivateAPIResponse.go @@ -0,0 +1,27 @@ +package uscesl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +激活AP价签通讯模块 API返回值 +taobao.uscesl.biz.ap.activate + +激活AP价签通讯模块 +*/ +type TaobaoUsceslBizApActivateAPIResponse struct { + model.CommonResponse + TaobaoUsceslBizApActivateAPIResponseModel +} + +// 激活AP价签通讯模块 成功返回结果 +type TaobaoUsceslBizApActivateAPIResponseModel struct { + XMLName xml.Name `xml:"uscesl_biz_ap_activate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功与否看result.success,返回true或者false + Result *TaobaoUsceslBizApActivateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/uscesl/TaobaoUsceslBizApActivateResponse.go b/model/uscesl/TaobaoUsceslBizApActivateResponse.go deleted file mode 100644 index bb7f024afc..0000000000 --- a/model/uscesl/TaobaoUsceslBizApActivateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package uscesl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -激活AP价签通讯模块 API返回值 -taobao.uscesl.biz.ap.activate - -激活AP价签通讯模块 -*/ -type TaobaoUsceslBizApActivateAPIResponse struct { - model.CommonResponse - TaobaoUsceslBizApActivateResponse -} - -// 激活AP价签通讯模块 成功返回结果 -type TaobaoUsceslBizApActivateResponse struct { - XMLName xml.Name `xml:"uscesl_biz_ap_activate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功与否看result.success,返回true或者false - Result *TaobaoUsceslBizApActivateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/uscesl/TaobaoUsceslBizApAddAPIRequest.go b/model/uscesl/TaobaoUsceslBizApAddAPIRequest.go new file mode 100644 index 0000000000..f7d490878f --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizApAddAPIRequest.go @@ -0,0 +1,80 @@ +package uscesl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增价签通讯AP设备 API请求 +taobao.uscesl.biz.ap.add + +根据门店和ap的MAC地址新增 +*/ +type TaobaoUsceslBizApAddAPIRequest struct { + model.Params + // AP MAC地址 + _apMac string + // 价签系统门店ID + _storeId int64 + // 商家code + _bizBrandKey string +} + +// 初始化TaobaoUsceslBizApAddAPIRequest对象 +func NewTaobaoUsceslBizApAddRequest() *TaobaoUsceslBizApAddAPIRequest{ + return &TaobaoUsceslBizApAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsceslBizApAddAPIRequest) GetApiMethodName() string { + return "taobao.uscesl.biz.ap.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsceslBizApAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApMac Setter +// AP MAC地址 +func (r *TaobaoUsceslBizApAddAPIRequest) SetApMac(_apMac string) error { + r._apMac = _apMac + r.Set("ap_mac", _apMac) + return nil +} + +// ApMac Getter +func (r TaobaoUsceslBizApAddAPIRequest) GetApMac() string { + return r._apMac +} +// StoreId Setter +// 价签系统门店ID +func (r *TaobaoUsceslBizApAddAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoUsceslBizApAddAPIRequest) GetStoreId() int64 { + return r._storeId +} +// BizBrandKey Setter +// 商家code +func (r *TaobaoUsceslBizApAddAPIRequest) SetBizBrandKey(_bizBrandKey string) error { + r._bizBrandKey = _bizBrandKey + r.Set("biz_brand_key", _bizBrandKey) + return nil +} + +// BizBrandKey Getter +func (r TaobaoUsceslBizApAddAPIRequest) GetBizBrandKey() string { + return r._bizBrandKey +} diff --git a/model/uscesl/TaobaoUsceslBizApAddAPIResponse.go b/model/uscesl/TaobaoUsceslBizApAddAPIResponse.go new file mode 100644 index 0000000000..93dd8a93f9 --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizApAddAPIResponse.go @@ -0,0 +1,27 @@ +package uscesl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增价签通讯AP设备 API返回值 +taobao.uscesl.biz.ap.add + +根据门店和ap的MAC地址新增 +*/ +type TaobaoUsceslBizApAddAPIResponse struct { + model.CommonResponse + TaobaoUsceslBizApAddAPIResponseModel +} + +// 新增价签通讯AP设备 成功返回结果 +type TaobaoUsceslBizApAddAPIResponseModel struct { + XMLName xml.Name `xml:"uscesl_biz_ap_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoUsceslBizApAddResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/uscesl/TaobaoUsceslBizApAddResponse.go b/model/uscesl/TaobaoUsceslBizApAddResponse.go deleted file mode 100644 index d495e3a232..0000000000 --- a/model/uscesl/TaobaoUsceslBizApAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package uscesl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增价签通讯AP设备 API返回值 -taobao.uscesl.biz.ap.add - -根据门店和ap的MAC地址新增 -*/ -type TaobaoUsceslBizApAddAPIResponse struct { - model.CommonResponse - TaobaoUsceslBizApAddResponse -} - -// 新增价签通讯AP设备 成功返回结果 -type TaobaoUsceslBizApAddResponse struct { - XMLName xml.Name `xml:"uscesl_biz_ap_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoUsceslBizApAddResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/uscesl/TaobaoUsceslBizApDeleteAPIRequest.go b/model/uscesl/TaobaoUsceslBizApDeleteAPIRequest.go new file mode 100644 index 0000000000..4da56b3b52 --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizApDeleteAPIRequest.go @@ -0,0 +1,80 @@ +package uscesl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除价签AP设备 API请求 +taobao.uscesl.biz.ap.delete + +删除价签AP设备 +*/ +type TaobaoUsceslBizApDeleteAPIRequest struct { + model.Params + // ap的MAC地址 + _apMac string + // 门店ID + _storeId int64 + // 商家CODE + _bizBrandKey string +} + +// 初始化TaobaoUsceslBizApDeleteAPIRequest对象 +func NewTaobaoUsceslBizApDeleteRequest() *TaobaoUsceslBizApDeleteAPIRequest{ + return &TaobaoUsceslBizApDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsceslBizApDeleteAPIRequest) GetApiMethodName() string { + return "taobao.uscesl.biz.ap.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsceslBizApDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ApMac Setter +// ap的MAC地址 +func (r *TaobaoUsceslBizApDeleteAPIRequest) SetApMac(_apMac string) error { + r._apMac = _apMac + r.Set("ap_mac", _apMac) + return nil +} + +// ApMac Getter +func (r TaobaoUsceslBizApDeleteAPIRequest) GetApMac() string { + return r._apMac +} +// StoreId Setter +// 门店ID +func (r *TaobaoUsceslBizApDeleteAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoUsceslBizApDeleteAPIRequest) GetStoreId() int64 { + return r._storeId +} +// BizBrandKey Setter +// 商家CODE +func (r *TaobaoUsceslBizApDeleteAPIRequest) SetBizBrandKey(_bizBrandKey string) error { + r._bizBrandKey = _bizBrandKey + r.Set("biz_brand_key", _bizBrandKey) + return nil +} + +// BizBrandKey Getter +func (r TaobaoUsceslBizApDeleteAPIRequest) GetBizBrandKey() string { + return r._bizBrandKey +} diff --git a/model/uscesl/TaobaoUsceslBizApDeleteAPIResponse.go b/model/uscesl/TaobaoUsceslBizApDeleteAPIResponse.go new file mode 100644 index 0000000000..9254c4efaa --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizApDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package uscesl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除价签AP设备 API返回值 +taobao.uscesl.biz.ap.delete + +删除价签AP设备 +*/ +type TaobaoUsceslBizApDeleteAPIResponse struct { + model.CommonResponse + TaobaoUsceslBizApDeleteAPIResponseModel +} + +// 删除价签AP设备 成功返回结果 +type TaobaoUsceslBizApDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"uscesl_biz_ap_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功与否看result.success,返回true或者false + Result *TaobaoUsceslBizApDeleteResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/uscesl/TaobaoUsceslBizApDeleteResponse.go b/model/uscesl/TaobaoUsceslBizApDeleteResponse.go deleted file mode 100644 index 22d399fb1a..0000000000 --- a/model/uscesl/TaobaoUsceslBizApDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package uscesl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除价签AP设备 API返回值 -taobao.uscesl.biz.ap.delete - -删除价签AP设备 -*/ -type TaobaoUsceslBizApDeleteAPIResponse struct { - model.CommonResponse - TaobaoUsceslBizApDeleteResponse -} - -// 删除价签AP设备 成功返回结果 -type TaobaoUsceslBizApDeleteResponse struct { - XMLName xml.Name `xml:"uscesl_biz_ap_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功与否看result.success,返回true或者false - Result *TaobaoUsceslBizApDeleteResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/uscesl/TaobaoUsceslBizApSearchAPIRequest.go b/model/uscesl/TaobaoUsceslBizApSearchAPIRequest.go new file mode 100644 index 0000000000..f9417b7727 --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizApSearchAPIRequest.go @@ -0,0 +1,122 @@ +package uscesl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AP列表查询 API请求 +taobao.uscesl.biz.ap.search + +查询当前门店下登记的AP列表 +*/ +type TaobaoUsceslBizApSearchAPIRequest struct { + model.Params + // 商家编码 + _bizBrandKey string + // 每页显示数 + _limit int64 + // 是否激活 + _isActivate bool + // 价签条码 + _mac string + // 页码 + _currentPage int64 + // 门店ID + _storeId int64 +} + +// 初始化TaobaoUsceslBizApSearchAPIRequest对象 +func NewTaobaoUsceslBizApSearchRequest() *TaobaoUsceslBizApSearchAPIRequest{ + return &TaobaoUsceslBizApSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsceslBizApSearchAPIRequest) GetApiMethodName() string { + return "taobao.uscesl.biz.ap.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsceslBizApSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizBrandKey Setter +// 商家编码 +func (r *TaobaoUsceslBizApSearchAPIRequest) SetBizBrandKey(_bizBrandKey string) error { + r._bizBrandKey = _bizBrandKey + r.Set("biz_brand_key", _bizBrandKey) + return nil +} + +// BizBrandKey Getter +func (r TaobaoUsceslBizApSearchAPIRequest) GetBizBrandKey() string { + return r._bizBrandKey +} +// Limit Setter +// 每页显示数 +func (r *TaobaoUsceslBizApSearchAPIRequest) SetLimit(_limit int64) error { + r._limit = _limit + r.Set("limit", _limit) + return nil +} + +// Limit Getter +func (r TaobaoUsceslBizApSearchAPIRequest) GetLimit() int64 { + return r._limit +} +// IsActivate Setter +// 是否激活 +func (r *TaobaoUsceslBizApSearchAPIRequest) SetIsActivate(_isActivate bool) error { + r._isActivate = _isActivate + r.Set("is_activate", _isActivate) + return nil +} + +// IsActivate Getter +func (r TaobaoUsceslBizApSearchAPIRequest) GetIsActivate() bool { + return r._isActivate +} +// Mac Setter +// 价签条码 +func (r *TaobaoUsceslBizApSearchAPIRequest) SetMac(_mac string) error { + r._mac = _mac + r.Set("mac", _mac) + return nil +} + +// Mac Getter +func (r TaobaoUsceslBizApSearchAPIRequest) GetMac() string { + return r._mac +} +// CurrentPage Setter +// 页码 +func (r *TaobaoUsceslBizApSearchAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TaobaoUsceslBizApSearchAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} +// StoreId Setter +// 门店ID +func (r *TaobaoUsceslBizApSearchAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoUsceslBizApSearchAPIRequest) GetStoreId() int64 { + return r._storeId +} diff --git a/model/uscesl/TaobaoUsceslBizApSearchAPIResponse.go b/model/uscesl/TaobaoUsceslBizApSearchAPIResponse.go new file mode 100644 index 0000000000..2f0f427bcf --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizApSearchAPIResponse.go @@ -0,0 +1,27 @@ +package uscesl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AP列表查询 API返回值 +taobao.uscesl.biz.ap.search + +查询当前门店下登记的AP列表 +*/ +type TaobaoUsceslBizApSearchAPIResponse struct { + model.CommonResponse + TaobaoUsceslBizApSearchAPIResponseModel +} + +// AP列表查询 成功返回结果 +type TaobaoUsceslBizApSearchAPIResponseModel struct { + XMLName xml.Name `xml:"uscesl_biz_ap_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功与否看result.success,返回true或者false + Result *TaobaoUsceslBizApSearchResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/uscesl/TaobaoUsceslBizApSearchResponse.go b/model/uscesl/TaobaoUsceslBizApSearchResponse.go deleted file mode 100644 index d838d8119e..0000000000 --- a/model/uscesl/TaobaoUsceslBizApSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package uscesl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AP列表查询 API返回值 -taobao.uscesl.biz.ap.search - -查询当前门店下登记的AP列表 -*/ -type TaobaoUsceslBizApSearchAPIResponse struct { - model.CommonResponse - TaobaoUsceslBizApSearchResponse -} - -// AP列表查询 成功返回结果 -type TaobaoUsceslBizApSearchResponse struct { - XMLName xml.Name `xml:"uscesl_biz_ap_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功与否看result.success,返回true或者false - Result *TaobaoUsceslBizApSearchResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/uscesl/TaobaoUsceslBizBrandInsertAPIRequest.go b/model/uscesl/TaobaoUsceslBizBrandInsertAPIRequest.go new file mode 100644 index 0000000000..3af780c417 --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizBrandInsertAPIRequest.go @@ -0,0 +1,66 @@ +package uscesl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增电子价签商家 API请求 +taobao.uscesl.biz.brand.insert + +一个电子价签业务身份下新增商家接口 +*/ +type TaobaoUsceslBizBrandInsertAPIRequest struct { + model.Params + // 商家名称 + _brandName string + // 商家外部编号 + _brandOutCode string +} + +// 初始化TaobaoUsceslBizBrandInsertAPIRequest对象 +func NewTaobaoUsceslBizBrandInsertRequest() *TaobaoUsceslBizBrandInsertAPIRequest{ + return &TaobaoUsceslBizBrandInsertAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsceslBizBrandInsertAPIRequest) GetApiMethodName() string { + return "taobao.uscesl.biz.brand.insert" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsceslBizBrandInsertAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BrandName Setter +// 商家名称 +func (r *TaobaoUsceslBizBrandInsertAPIRequest) SetBrandName(_brandName string) error { + r._brandName = _brandName + r.Set("brand_name", _brandName) + return nil +} + +// BrandName Getter +func (r TaobaoUsceslBizBrandInsertAPIRequest) GetBrandName() string { + return r._brandName +} +// BrandOutCode Setter +// 商家外部编号 +func (r *TaobaoUsceslBizBrandInsertAPIRequest) SetBrandOutCode(_brandOutCode string) error { + r._brandOutCode = _brandOutCode + r.Set("brand_out_code", _brandOutCode) + return nil +} + +// BrandOutCode Getter +func (r TaobaoUsceslBizBrandInsertAPIRequest) GetBrandOutCode() string { + return r._brandOutCode +} diff --git a/model/uscesl/TaobaoUsceslBizBrandInsertAPIResponse.go b/model/uscesl/TaobaoUsceslBizBrandInsertAPIResponse.go new file mode 100644 index 0000000000..b54c4ca27d --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizBrandInsertAPIResponse.go @@ -0,0 +1,27 @@ +package uscesl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增电子价签商家 API返回值 +taobao.uscesl.biz.brand.insert + +一个电子价签业务身份下新增商家接口 +*/ +type TaobaoUsceslBizBrandInsertAPIResponse struct { + model.CommonResponse + TaobaoUsceslBizBrandInsertAPIResponseModel +} + +// 新增电子价签商家 成功返回结果 +type TaobaoUsceslBizBrandInsertAPIResponseModel struct { + XMLName xml.Name `xml:"uscesl_biz_brand_insert_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/uscesl/TaobaoUsceslBizBrandInsertResponse.go b/model/uscesl/TaobaoUsceslBizBrandInsertResponse.go deleted file mode 100644 index 95170151f1..0000000000 --- a/model/uscesl/TaobaoUsceslBizBrandInsertResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package uscesl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增电子价签商家 API返回值 -taobao.uscesl.biz.brand.insert - -一个电子价签业务身份下新增商家接口 -*/ -type TaobaoUsceslBizBrandInsertAPIResponse struct { - model.CommonResponse - TaobaoUsceslBizBrandInsertResponse -} - -// 新增电子价签商家 成功返回结果 -type TaobaoUsceslBizBrandInsertResponse struct { - XMLName xml.Name `xml:"uscesl_biz_brand_insert_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/uscesl/TaobaoUsceslBizEslBindAPIRequest.go b/model/uscesl/TaobaoUsceslBizEslBindAPIRequest.go new file mode 100644 index 0000000000..b10480b25e --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizEslBindAPIRequest.go @@ -0,0 +1,108 @@ +package uscesl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +电子价签绑定接口 API请求 +taobao.uscesl.biz.esl.bind + +电子价签商品绑定接口 +*/ +type TaobaoUsceslBizEslBindAPIRequest struct { + model.Params + // 价签条码 + _eslBarCode string + // 商品条码 + _itemBarCode string + // 门店storeId + _storeId int64 + // 商家ID + _bizBrandKey string + // 额外扩展信息 + _extendInfo string +} + +// 初始化TaobaoUsceslBizEslBindAPIRequest对象 +func NewTaobaoUsceslBizEslBindRequest() *TaobaoUsceslBizEslBindAPIRequest{ + return &TaobaoUsceslBizEslBindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsceslBizEslBindAPIRequest) GetApiMethodName() string { + return "taobao.uscesl.biz.esl.bind" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsceslBizEslBindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EslBarCode Setter +// 价签条码 +func (r *TaobaoUsceslBizEslBindAPIRequest) SetEslBarCode(_eslBarCode string) error { + r._eslBarCode = _eslBarCode + r.Set("esl_bar_code", _eslBarCode) + return nil +} + +// EslBarCode Getter +func (r TaobaoUsceslBizEslBindAPIRequest) GetEslBarCode() string { + return r._eslBarCode +} +// ItemBarCode Setter +// 商品条码 +func (r *TaobaoUsceslBizEslBindAPIRequest) SetItemBarCode(_itemBarCode string) error { + r._itemBarCode = _itemBarCode + r.Set("item_bar_code", _itemBarCode) + return nil +} + +// ItemBarCode Getter +func (r TaobaoUsceslBizEslBindAPIRequest) GetItemBarCode() string { + return r._itemBarCode +} +// StoreId Setter +// 门店storeId +func (r *TaobaoUsceslBizEslBindAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoUsceslBizEslBindAPIRequest) GetStoreId() int64 { + return r._storeId +} +// BizBrandKey Setter +// 商家ID +func (r *TaobaoUsceslBizEslBindAPIRequest) SetBizBrandKey(_bizBrandKey string) error { + r._bizBrandKey = _bizBrandKey + r.Set("biz_brand_key", _bizBrandKey) + return nil +} + +// BizBrandKey Getter +func (r TaobaoUsceslBizEslBindAPIRequest) GetBizBrandKey() string { + return r._bizBrandKey +} +// ExtendInfo Setter +// 额外扩展信息 +func (r *TaobaoUsceslBizEslBindAPIRequest) SetExtendInfo(_extendInfo string) error { + r._extendInfo = _extendInfo + r.Set("extend_info", _extendInfo) + return nil +} + +// ExtendInfo Getter +func (r TaobaoUsceslBizEslBindAPIRequest) GetExtendInfo() string { + return r._extendInfo +} diff --git a/model/uscesl/TaobaoUsceslBizEslBindAPIResponse.go b/model/uscesl/TaobaoUsceslBizEslBindAPIResponse.go new file mode 100644 index 0000000000..50a7ec985f --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizEslBindAPIResponse.go @@ -0,0 +1,27 @@ +package uscesl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +电子价签绑定接口 API返回值 +taobao.uscesl.biz.esl.bind + +电子价签商品绑定接口 +*/ +type TaobaoUsceslBizEslBindAPIResponse struct { + model.CommonResponse + TaobaoUsceslBizEslBindAPIResponseModel +} + +// 电子价签绑定接口 成功返回结果 +type TaobaoUsceslBizEslBindAPIResponseModel struct { + XMLName xml.Name `xml:"uscesl_biz_esl_bind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功与否看result.success,返回true或者false + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/uscesl/TaobaoUsceslBizEslBindResponse.go b/model/uscesl/TaobaoUsceslBizEslBindResponse.go deleted file mode 100644 index 9d2ae53d1d..0000000000 --- a/model/uscesl/TaobaoUsceslBizEslBindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package uscesl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -电子价签绑定接口 API返回值 -taobao.uscesl.biz.esl.bind - -电子价签商品绑定接口 -*/ -type TaobaoUsceslBizEslBindAPIResponse struct { - model.CommonResponse - TaobaoUsceslBizEslBindResponse -} - -// 电子价签绑定接口 成功返回结果 -type TaobaoUsceslBizEslBindResponse struct { - XMLName xml.Name `xml:"uscesl_biz_esl_bind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功与否看result.success,返回true或者false - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/uscesl/TaobaoUsceslBizEslInfoGetAPIRequest.go b/model/uscesl/TaobaoUsceslBizEslInfoGetAPIRequest.go new file mode 100644 index 0000000000..876120b95b --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizEslInfoGetAPIRequest.go @@ -0,0 +1,80 @@ +package uscesl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +价签设备信息查询接口 API请求 +taobao.uscesl.biz.esl.info.get + +价签设备信息查询接口 +*/ +type TaobaoUsceslBizEslInfoGetAPIRequest struct { + model.Params + // 价签条码 + _eslBarCode string + // 门店storeId + _storeId int64 + // 商家ID + _bizBrandKey string +} + +// 初始化TaobaoUsceslBizEslInfoGetAPIRequest对象 +func NewTaobaoUsceslBizEslInfoGetRequest() *TaobaoUsceslBizEslInfoGetAPIRequest{ + return &TaobaoUsceslBizEslInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsceslBizEslInfoGetAPIRequest) GetApiMethodName() string { + return "taobao.uscesl.biz.esl.info.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsceslBizEslInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EslBarCode Setter +// 价签条码 +func (r *TaobaoUsceslBizEslInfoGetAPIRequest) SetEslBarCode(_eslBarCode string) error { + r._eslBarCode = _eslBarCode + r.Set("esl_bar_code", _eslBarCode) + return nil +} + +// EslBarCode Getter +func (r TaobaoUsceslBizEslInfoGetAPIRequest) GetEslBarCode() string { + return r._eslBarCode +} +// StoreId Setter +// 门店storeId +func (r *TaobaoUsceslBizEslInfoGetAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoUsceslBizEslInfoGetAPIRequest) GetStoreId() int64 { + return r._storeId +} +// BizBrandKey Setter +// 商家ID +func (r *TaobaoUsceslBizEslInfoGetAPIRequest) SetBizBrandKey(_bizBrandKey string) error { + r._bizBrandKey = _bizBrandKey + r.Set("biz_brand_key", _bizBrandKey) + return nil +} + +// BizBrandKey Getter +func (r TaobaoUsceslBizEslInfoGetAPIRequest) GetBizBrandKey() string { + return r._bizBrandKey +} diff --git a/model/uscesl/TaobaoUsceslBizEslInfoGetAPIResponse.go b/model/uscesl/TaobaoUsceslBizEslInfoGetAPIResponse.go new file mode 100644 index 0000000000..3fe327e638 --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizEslInfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package uscesl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +价签设备信息查询接口 API返回值 +taobao.uscesl.biz.esl.info.get + +价签设备信息查询接口 +*/ +type TaobaoUsceslBizEslInfoGetAPIResponse struct { + model.CommonResponse + TaobaoUsceslBizEslInfoGetAPIResponseModel +} + +// 价签设备信息查询接口 成功返回结果 +type TaobaoUsceslBizEslInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"uscesl_biz_esl_info_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result.sucess表示是否成功,target是设备信息 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/uscesl/TaobaoUsceslBizEslInfoGetResponse.go b/model/uscesl/TaobaoUsceslBizEslInfoGetResponse.go deleted file mode 100644 index 3942b8b909..0000000000 --- a/model/uscesl/TaobaoUsceslBizEslInfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package uscesl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -价签设备信息查询接口 API返回值 -taobao.uscesl.biz.esl.info.get - -价签设备信息查询接口 -*/ -type TaobaoUsceslBizEslInfoGetAPIResponse struct { - model.CommonResponse - TaobaoUsceslBizEslInfoGetResponse -} - -// 价签设备信息查询接口 成功返回结果 -type TaobaoUsceslBizEslInfoGetResponse struct { - XMLName xml.Name `xml:"uscesl_biz_esl_info_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result.sucess表示是否成功,target是设备信息 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/uscesl/TaobaoUsceslBizEslUnbindAPIRequest.go b/model/uscesl/TaobaoUsceslBizEslUnbindAPIRequest.go new file mode 100644 index 0000000000..5858d50273 --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizEslUnbindAPIRequest.go @@ -0,0 +1,80 @@ +package uscesl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +电子价签解绑接口 API请求 +taobao.uscesl.biz.esl.unbind + +电子价签解绑接口 +*/ +type TaobaoUsceslBizEslUnbindAPIRequest struct { + model.Params + // 价签条码 + _eslBarCode string + // 价签系统注册的门店storeId + _storeId int64 + // 商家标识key + _bizBrandKey string +} + +// 初始化TaobaoUsceslBizEslUnbindAPIRequest对象 +func NewTaobaoUsceslBizEslUnbindRequest() *TaobaoUsceslBizEslUnbindAPIRequest{ + return &TaobaoUsceslBizEslUnbindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsceslBizEslUnbindAPIRequest) GetApiMethodName() string { + return "taobao.uscesl.biz.esl.unbind" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsceslBizEslUnbindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EslBarCode Setter +// 价签条码 +func (r *TaobaoUsceslBizEslUnbindAPIRequest) SetEslBarCode(_eslBarCode string) error { + r._eslBarCode = _eslBarCode + r.Set("esl_bar_code", _eslBarCode) + return nil +} + +// EslBarCode Getter +func (r TaobaoUsceslBizEslUnbindAPIRequest) GetEslBarCode() string { + return r._eslBarCode +} +// StoreId Setter +// 价签系统注册的门店storeId +func (r *TaobaoUsceslBizEslUnbindAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoUsceslBizEslUnbindAPIRequest) GetStoreId() int64 { + return r._storeId +} +// BizBrandKey Setter +// 商家标识key +func (r *TaobaoUsceslBizEslUnbindAPIRequest) SetBizBrandKey(_bizBrandKey string) error { + r._bizBrandKey = _bizBrandKey + r.Set("biz_brand_key", _bizBrandKey) + return nil +} + +// BizBrandKey Getter +func (r TaobaoUsceslBizEslUnbindAPIRequest) GetBizBrandKey() string { + return r._bizBrandKey +} diff --git a/model/uscesl/TaobaoUsceslBizEslUnbindAPIResponse.go b/model/uscesl/TaobaoUsceslBizEslUnbindAPIResponse.go new file mode 100644 index 0000000000..3ebcb600cb --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizEslUnbindAPIResponse.go @@ -0,0 +1,27 @@ +package uscesl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +电子价签解绑接口 API返回值 +taobao.uscesl.biz.esl.unbind + +电子价签解绑接口 +*/ +type TaobaoUsceslBizEslUnbindAPIResponse struct { + model.CommonResponse + TaobaoUsceslBizEslUnbindAPIResponseModel +} + +// 电子价签解绑接口 成功返回结果 +type TaobaoUsceslBizEslUnbindAPIResponseModel struct { + XMLName xml.Name `xml:"uscesl_biz_esl_unbind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result.sucess表示本次调用是否成功,true或false + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/uscesl/TaobaoUsceslBizEslUnbindResponse.go b/model/uscesl/TaobaoUsceslBizEslUnbindResponse.go deleted file mode 100644 index 8a2c29fec7..0000000000 --- a/model/uscesl/TaobaoUsceslBizEslUnbindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package uscesl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -电子价签解绑接口 API返回值 -taobao.uscesl.biz.esl.unbind - -电子价签解绑接口 -*/ -type TaobaoUsceslBizEslUnbindAPIResponse struct { - model.CommonResponse - TaobaoUsceslBizEslUnbindResponse -} - -// 电子价签解绑接口 成功返回结果 -type TaobaoUsceslBizEslUnbindResponse struct { - XMLName xml.Name `xml:"uscesl_biz_esl_unbind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result.sucess表示本次调用是否成功,true或false - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/uscesl/TaobaoUsceslBizItemLightUpAPIRequest.go b/model/uscesl/TaobaoUsceslBizItemLightUpAPIRequest.go new file mode 100644 index 0000000000..b3d95da925 --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizItemLightUpAPIRequest.go @@ -0,0 +1,108 @@ +package uscesl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品条码亮灯API API请求 +taobao.uscesl.biz.item.light.up + +亮灯API +*/ +type TaobaoUsceslBizItemLightUpAPIRequest struct { + model.Params + // 商品条码 + _itemBarCode string + // 亮灯颜色,绿:值为2;红:值为4 + _ledColor string + // 亮灯时长,单位:秒,最大长度3600秒 + _lightUpTime int64 + // 门店编号 + _storeId int64 + // 商家编号 + _bizBrandKey string +} + +// 初始化TaobaoUsceslBizItemLightUpAPIRequest对象 +func NewTaobaoUsceslBizItemLightUpRequest() *TaobaoUsceslBizItemLightUpAPIRequest{ + return &TaobaoUsceslBizItemLightUpAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsceslBizItemLightUpAPIRequest) GetApiMethodName() string { + return "taobao.uscesl.biz.item.light.up" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsceslBizItemLightUpAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemBarCode Setter +// 商品条码 +func (r *TaobaoUsceslBizItemLightUpAPIRequest) SetItemBarCode(_itemBarCode string) error { + r._itemBarCode = _itemBarCode + r.Set("item_bar_code", _itemBarCode) + return nil +} + +// ItemBarCode Getter +func (r TaobaoUsceslBizItemLightUpAPIRequest) GetItemBarCode() string { + return r._itemBarCode +} +// LedColor Setter +// 亮灯颜色,绿:值为2;红:值为4 +func (r *TaobaoUsceslBizItemLightUpAPIRequest) SetLedColor(_ledColor string) error { + r._ledColor = _ledColor + r.Set("led_color", _ledColor) + return nil +} + +// LedColor Getter +func (r TaobaoUsceslBizItemLightUpAPIRequest) GetLedColor() string { + return r._ledColor +} +// LightUpTime Setter +// 亮灯时长,单位:秒,最大长度3600秒 +func (r *TaobaoUsceslBizItemLightUpAPIRequest) SetLightUpTime(_lightUpTime int64) error { + r._lightUpTime = _lightUpTime + r.Set("light_up_time", _lightUpTime) + return nil +} + +// LightUpTime Getter +func (r TaobaoUsceslBizItemLightUpAPIRequest) GetLightUpTime() int64 { + return r._lightUpTime +} +// StoreId Setter +// 门店编号 +func (r *TaobaoUsceslBizItemLightUpAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoUsceslBizItemLightUpAPIRequest) GetStoreId() int64 { + return r._storeId +} +// BizBrandKey Setter +// 商家编号 +func (r *TaobaoUsceslBizItemLightUpAPIRequest) SetBizBrandKey(_bizBrandKey string) error { + r._bizBrandKey = _bizBrandKey + r.Set("biz_brand_key", _bizBrandKey) + return nil +} + +// BizBrandKey Getter +func (r TaobaoUsceslBizItemLightUpAPIRequest) GetBizBrandKey() string { + return r._bizBrandKey +} diff --git a/model/uscesl/TaobaoUsceslBizItemLightUpAPIResponse.go b/model/uscesl/TaobaoUsceslBizItemLightUpAPIResponse.go new file mode 100644 index 0000000000..6455b301fd --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizItemLightUpAPIResponse.go @@ -0,0 +1,27 @@ +package uscesl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品条码亮灯API API返回值 +taobao.uscesl.biz.item.light.up + +亮灯API +*/ +type TaobaoUsceslBizItemLightUpAPIResponse struct { + model.CommonResponse + TaobaoUsceslBizItemLightUpAPIResponseModel +} + +// 商品条码亮灯API 成功返回结果 +type TaobaoUsceslBizItemLightUpAPIResponseModel struct { + XMLName xml.Name `xml:"uscesl_biz_item_light_up_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoUsceslBizItemLightUpResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/uscesl/TaobaoUsceslBizItemLightUpResponse.go b/model/uscesl/TaobaoUsceslBizItemLightUpResponse.go deleted file mode 100644 index 4cfa61ff60..0000000000 --- a/model/uscesl/TaobaoUsceslBizItemLightUpResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package uscesl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品条码亮灯API API返回值 -taobao.uscesl.biz.item.light.up - -亮灯API -*/ -type TaobaoUsceslBizItemLightUpAPIResponse struct { - model.CommonResponse - TaobaoUsceslBizItemLightUpResponse -} - -// 商品条码亮灯API 成功返回结果 -type TaobaoUsceslBizItemLightUpResponse struct { - XMLName xml.Name `xml:"uscesl_biz_item_light_up_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoUsceslBizItemLightUpResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/uscesl/TaobaoUsceslBizLightUpAPIRequest.go b/model/uscesl/TaobaoUsceslBizLightUpAPIRequest.go new file mode 100644 index 0000000000..cddd471f25 --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizLightUpAPIRequest.go @@ -0,0 +1,108 @@ +package uscesl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +价签LED等点亮 API请求 +taobao.uscesl.biz.light.up + +价签LED等点亮 +*/ +type TaobaoUsceslBizLightUpAPIRequest struct { + model.Params + // 门店ID + _storeId int64 + // 商家编号 + _bizBrandKey string + // 价签条码 + _eslBarCode string + // 亮灯颜色,绿:值为2;红:值为4 + _ledColor string + // 亮灯时长,单位:秒,最大长度3600秒 + _lightUpTime int64 +} + +// 初始化TaobaoUsceslBizLightUpAPIRequest对象 +func NewTaobaoUsceslBizLightUpRequest() *TaobaoUsceslBizLightUpAPIRequest{ + return &TaobaoUsceslBizLightUpAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsceslBizLightUpAPIRequest) GetApiMethodName() string { + return "taobao.uscesl.biz.light.up" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsceslBizLightUpAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店ID +func (r *TaobaoUsceslBizLightUpAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoUsceslBizLightUpAPIRequest) GetStoreId() int64 { + return r._storeId +} +// BizBrandKey Setter +// 商家编号 +func (r *TaobaoUsceslBizLightUpAPIRequest) SetBizBrandKey(_bizBrandKey string) error { + r._bizBrandKey = _bizBrandKey + r.Set("biz_brand_key", _bizBrandKey) + return nil +} + +// BizBrandKey Getter +func (r TaobaoUsceslBizLightUpAPIRequest) GetBizBrandKey() string { + return r._bizBrandKey +} +// EslBarCode Setter +// 价签条码 +func (r *TaobaoUsceslBizLightUpAPIRequest) SetEslBarCode(_eslBarCode string) error { + r._eslBarCode = _eslBarCode + r.Set("esl_bar_code", _eslBarCode) + return nil +} + +// EslBarCode Getter +func (r TaobaoUsceslBizLightUpAPIRequest) GetEslBarCode() string { + return r._eslBarCode +} +// LedColor Setter +// 亮灯颜色,绿:值为2;红:值为4 +func (r *TaobaoUsceslBizLightUpAPIRequest) SetLedColor(_ledColor string) error { + r._ledColor = _ledColor + r.Set("led_color", _ledColor) + return nil +} + +// LedColor Getter +func (r TaobaoUsceslBizLightUpAPIRequest) GetLedColor() string { + return r._ledColor +} +// LightUpTime Setter +// 亮灯时长,单位:秒,最大长度3600秒 +func (r *TaobaoUsceslBizLightUpAPIRequest) SetLightUpTime(_lightUpTime int64) error { + r._lightUpTime = _lightUpTime + r.Set("light_up_time", _lightUpTime) + return nil +} + +// LightUpTime Getter +func (r TaobaoUsceslBizLightUpAPIRequest) GetLightUpTime() int64 { + return r._lightUpTime +} diff --git a/model/uscesl/TaobaoUsceslBizLightUpAPIResponse.go b/model/uscesl/TaobaoUsceslBizLightUpAPIResponse.go new file mode 100644 index 0000000000..add7cfdd21 --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizLightUpAPIResponse.go @@ -0,0 +1,27 @@ +package uscesl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +价签LED等点亮 API返回值 +taobao.uscesl.biz.light.up + +价签LED等点亮 +*/ +type TaobaoUsceslBizLightUpAPIResponse struct { + model.CommonResponse + TaobaoUsceslBizLightUpAPIResponseModel +} + +// 价签LED等点亮 成功返回结果 +type TaobaoUsceslBizLightUpAPIResponseModel struct { + XMLName xml.Name `xml:"uscesl_biz_light_up_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoUsceslBizLightUpResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/uscesl/TaobaoUsceslBizLightUpResponse.go b/model/uscesl/TaobaoUsceslBizLightUpResponse.go deleted file mode 100644 index 69f5c46259..0000000000 --- a/model/uscesl/TaobaoUsceslBizLightUpResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package uscesl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -价签LED等点亮 API返回值 -taobao.uscesl.biz.light.up - -价签LED等点亮 -*/ -type TaobaoUsceslBizLightUpAPIResponse struct { - model.CommonResponse - TaobaoUsceslBizLightUpResponse -} - -// 价签LED等点亮 成功返回结果 -type TaobaoUsceslBizLightUpResponse struct { - XMLName xml.Name `xml:"uscesl_biz_light_up_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoUsceslBizLightUpResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/uscesl/TaobaoUsceslBizStoreInsertAPIRequest.go b/model/uscesl/TaobaoUsceslBizStoreInsertAPIRequest.go new file mode 100644 index 0000000000..4f34121340 --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizStoreInsertAPIRequest.go @@ -0,0 +1,80 @@ +package uscesl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增电子价签商家门店接口 API请求 +taobao.uscesl.biz.store.insert + +新增电子价签商家门店接口 +*/ +type TaobaoUsceslBizStoreInsertAPIRequest struct { + model.Params + // 门店名称 + _storeName string + // 门店外部ID,要保持同一商家下的唯一性 + _storeOutId string + // 商家标识key + _bizBrandKey string +} + +// 初始化TaobaoUsceslBizStoreInsertAPIRequest对象 +func NewTaobaoUsceslBizStoreInsertRequest() *TaobaoUsceslBizStoreInsertAPIRequest{ + return &TaobaoUsceslBizStoreInsertAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsceslBizStoreInsertAPIRequest) GetApiMethodName() string { + return "taobao.uscesl.biz.store.insert" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsceslBizStoreInsertAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreName Setter +// 门店名称 +func (r *TaobaoUsceslBizStoreInsertAPIRequest) SetStoreName(_storeName string) error { + r._storeName = _storeName + r.Set("store_name", _storeName) + return nil +} + +// StoreName Getter +func (r TaobaoUsceslBizStoreInsertAPIRequest) GetStoreName() string { + return r._storeName +} +// StoreOutId Setter +// 门店外部ID,要保持同一商家下的唯一性 +func (r *TaobaoUsceslBizStoreInsertAPIRequest) SetStoreOutId(_storeOutId string) error { + r._storeOutId = _storeOutId + r.Set("store_out_id", _storeOutId) + return nil +} + +// StoreOutId Getter +func (r TaobaoUsceslBizStoreInsertAPIRequest) GetStoreOutId() string { + return r._storeOutId +} +// BizBrandKey Setter +// 商家标识key +func (r *TaobaoUsceslBizStoreInsertAPIRequest) SetBizBrandKey(_bizBrandKey string) error { + r._bizBrandKey = _bizBrandKey + r.Set("biz_brand_key", _bizBrandKey) + return nil +} + +// BizBrandKey Getter +func (r TaobaoUsceslBizStoreInsertAPIRequest) GetBizBrandKey() string { + return r._bizBrandKey +} diff --git a/model/uscesl/TaobaoUsceslBizStoreInsertAPIResponse.go b/model/uscesl/TaobaoUsceslBizStoreInsertAPIResponse.go new file mode 100644 index 0000000000..ca6c5871d1 --- /dev/null +++ b/model/uscesl/TaobaoUsceslBizStoreInsertAPIResponse.go @@ -0,0 +1,27 @@ +package uscesl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增电子价签商家门店接口 API返回值 +taobao.uscesl.biz.store.insert + +新增电子价签商家门店接口 +*/ +type TaobaoUsceslBizStoreInsertAPIResponse struct { + model.CommonResponse + TaobaoUsceslBizStoreInsertAPIResponseModel +} + +// 新增电子价签商家门店接口 成功返回结果 +type TaobaoUsceslBizStoreInsertAPIResponseModel struct { + XMLName xml.Name `xml:"uscesl_biz_store_insert_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/uscesl/TaobaoUsceslBizStoreInsertResponse.go b/model/uscesl/TaobaoUsceslBizStoreInsertResponse.go deleted file mode 100644 index ae18393a7c..0000000000 --- a/model/uscesl/TaobaoUsceslBizStoreInsertResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package uscesl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增电子价签商家门店接口 API返回值 -taobao.uscesl.biz.store.insert - -新增电子价签商家门店接口 -*/ -type TaobaoUsceslBizStoreInsertAPIResponse struct { - model.CommonResponse - TaobaoUsceslBizStoreInsertResponse -} - -// 新增电子价签商家门店接口 成功返回结果 -type TaobaoUsceslBizStoreInsertResponse struct { - XMLName xml.Name `xml:"uscesl_biz_store_insert_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/uscesl/TaobaoUsceslIteminfoBatchInsertAPIRequest.go b/model/uscesl/TaobaoUsceslIteminfoBatchInsertAPIRequest.go new file mode 100644 index 0000000000..23725682c6 --- /dev/null +++ b/model/uscesl/TaobaoUsceslIteminfoBatchInsertAPIRequest.go @@ -0,0 +1,80 @@ +package uscesl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +按商家批量写入商品接口 API请求 +taobao.uscesl.iteminfo.batch.insert + +【电子价签】支持按照商家-门店维度批量写入商品数据 +*/ +type TaobaoUsceslIteminfoBatchInsertAPIRequest struct { + model.Params + // 商品信息集合,限制500 + _itemList []ItemChangeBo + // 门店ID + _storeId int64 + // 商家KEY + _bizBrandKey string +} + +// 初始化TaobaoUsceslIteminfoBatchInsertAPIRequest对象 +func NewTaobaoUsceslIteminfoBatchInsertRequest() *TaobaoUsceslIteminfoBatchInsertAPIRequest{ + return &TaobaoUsceslIteminfoBatchInsertAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsceslIteminfoBatchInsertAPIRequest) GetApiMethodName() string { + return "taobao.uscesl.iteminfo.batch.insert" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsceslIteminfoBatchInsertAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemList Setter +// 商品信息集合,限制500 +func (r *TaobaoUsceslIteminfoBatchInsertAPIRequest) SetItemList(_itemList []ItemChangeBo) error { + r._itemList = _itemList + r.Set("item_list", _itemList) + return nil +} + +// ItemList Getter +func (r TaobaoUsceslIteminfoBatchInsertAPIRequest) GetItemList() []ItemChangeBo { + return r._itemList +} +// StoreId Setter +// 门店ID +func (r *TaobaoUsceslIteminfoBatchInsertAPIRequest) SetStoreId(_storeId int64) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r TaobaoUsceslIteminfoBatchInsertAPIRequest) GetStoreId() int64 { + return r._storeId +} +// BizBrandKey Setter +// 商家KEY +func (r *TaobaoUsceslIteminfoBatchInsertAPIRequest) SetBizBrandKey(_bizBrandKey string) error { + r._bizBrandKey = _bizBrandKey + r.Set("biz_brand_key", _bizBrandKey) + return nil +} + +// BizBrandKey Getter +func (r TaobaoUsceslIteminfoBatchInsertAPIRequest) GetBizBrandKey() string { + return r._bizBrandKey +} diff --git a/model/uscesl/TaobaoUsceslIteminfoBatchInsertAPIResponse.go b/model/uscesl/TaobaoUsceslIteminfoBatchInsertAPIResponse.go new file mode 100644 index 0000000000..fb161a2244 --- /dev/null +++ b/model/uscesl/TaobaoUsceslIteminfoBatchInsertAPIResponse.go @@ -0,0 +1,27 @@ +package uscesl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +按商家批量写入商品接口 API返回值 +taobao.uscesl.iteminfo.batch.insert + +【电子价签】支持按照商家-门店维度批量写入商品数据 +*/ +type TaobaoUsceslIteminfoBatchInsertAPIResponse struct { + model.CommonResponse + TaobaoUsceslIteminfoBatchInsertAPIResponseModel +} + +// 按商家批量写入商品接口 成功返回结果 +type TaobaoUsceslIteminfoBatchInsertAPIResponseModel struct { + XMLName xml.Name `xml:"uscesl_iteminfo_batch_insert_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/uscesl/TaobaoUsceslIteminfoBatchInsertResponse.go b/model/uscesl/TaobaoUsceslIteminfoBatchInsertResponse.go deleted file mode 100644 index 0b7a6e08a9..0000000000 --- a/model/uscesl/TaobaoUsceslIteminfoBatchInsertResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package uscesl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -按商家批量写入商品接口 API返回值 -taobao.uscesl.iteminfo.batch.insert - -【电子价签】支持按照商家-门店维度批量写入商品数据 -*/ -type TaobaoUsceslIteminfoBatchInsertAPIResponse struct { - model.CommonResponse - TaobaoUsceslIteminfoBatchInsertResponse -} - -// 按商家批量写入商品接口 成功返回结果 -type TaobaoUsceslIteminfoBatchInsertResponse struct { - XMLName xml.Name `xml:"uscesl_iteminfo_batch_insert_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/uscesl/TaobaoUsceslIteminfoBatchPutAPIRequest.go b/model/uscesl/TaobaoUsceslIteminfoBatchPutAPIRequest.go new file mode 100644 index 0000000000..1f89601937 --- /dev/null +++ b/model/uscesl/TaobaoUsceslIteminfoBatchPutAPIRequest.go @@ -0,0 +1,66 @@ +package uscesl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量写入商品信息接口 API请求 +taobao.uscesl.iteminfo.batch.put + +电子架签批量写入商品数据,用于电子价签展示 +*/ +type TaobaoUsceslIteminfoBatchPutAPIRequest struct { + model.Params + // 商品变更信息集合 + _itemChangeBOList []ItemChangeBo + // 门店ID + _shopId int64 +} + +// 初始化TaobaoUsceslIteminfoBatchPutAPIRequest对象 +func NewTaobaoUsceslIteminfoBatchPutRequest() *TaobaoUsceslIteminfoBatchPutAPIRequest{ + return &TaobaoUsceslIteminfoBatchPutAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsceslIteminfoBatchPutAPIRequest) GetApiMethodName() string { + return "taobao.uscesl.iteminfo.batch.put" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsceslIteminfoBatchPutAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemChangeBOList Setter +// 商品变更信息集合 +func (r *TaobaoUsceslIteminfoBatchPutAPIRequest) SetItemChangeBOList(_itemChangeBOList []ItemChangeBo) error { + r._itemChangeBOList = _itemChangeBOList + r.Set("item_change_b_o_list", _itemChangeBOList) + return nil +} + +// ItemChangeBOList Getter +func (r TaobaoUsceslIteminfoBatchPutAPIRequest) GetItemChangeBOList() []ItemChangeBo { + return r._itemChangeBOList +} +// ShopId Setter +// 门店ID +func (r *TaobaoUsceslIteminfoBatchPutAPIRequest) SetShopId(_shopId int64) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r TaobaoUsceslIteminfoBatchPutAPIRequest) GetShopId() int64 { + return r._shopId +} diff --git a/model/uscesl/TaobaoUsceslIteminfoBatchPutAPIResponse.go b/model/uscesl/TaobaoUsceslIteminfoBatchPutAPIResponse.go new file mode 100644 index 0000000000..1f3b5992af --- /dev/null +++ b/model/uscesl/TaobaoUsceslIteminfoBatchPutAPIResponse.go @@ -0,0 +1,27 @@ +package uscesl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量写入商品信息接口 API返回值 +taobao.uscesl.iteminfo.batch.put + +电子架签批量写入商品数据,用于电子价签展示 +*/ +type TaobaoUsceslIteminfoBatchPutAPIResponse struct { + model.CommonResponse + TaobaoUsceslIteminfoBatchPutAPIResponseModel +} + +// 批量写入商品信息接口 成功返回结果 +type TaobaoUsceslIteminfoBatchPutAPIResponseModel struct { + XMLName xml.Name `xml:"uscesl_iteminfo_batch_put_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/uscesl/TaobaoUsceslIteminfoBatchPutResponse.go b/model/uscesl/TaobaoUsceslIteminfoBatchPutResponse.go deleted file mode 100644 index 7fae05046e..0000000000 --- a/model/uscesl/TaobaoUsceslIteminfoBatchPutResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package uscesl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量写入商品信息接口 API返回值 -taobao.uscesl.iteminfo.batch.put - -电子架签批量写入商品数据,用于电子价签展示 -*/ -type TaobaoUsceslIteminfoBatchPutAPIResponse struct { - model.CommonResponse - TaobaoUsceslIteminfoBatchPutResponse -} - -// 批量写入商品信息接口 成功返回结果 -type TaobaoUsceslIteminfoBatchPutResponse struct { - XMLName xml.Name `xml:"uscesl_iteminfo_batch_put_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/uscesl/TaobaoUsceslIteminfoPutAPIRequest.go b/model/uscesl/TaobaoUsceslIteminfoPutAPIRequest.go new file mode 100644 index 0000000000..9bd0784601 --- /dev/null +++ b/model/uscesl/TaobaoUsceslIteminfoPutAPIRequest.go @@ -0,0 +1,514 @@ +package uscesl + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +电子价签显示用商品信息写入 API请求 +taobao.uscesl.iteminfo.put + +用于电子价签上显示的商品信息的写入,包含价格及促销信息 +*/ +type TaobaoUsceslIteminfoPutAPIRequest struct { + model.Params + // 型号 + _modelNum string + // 价格单位 + _priceUnit string + // 品牌名 + _brandName string + // 销售规格 + _saleSpec string + // 分类 + _categoryName string + // 等级 + _rank string + // 商品变更状态 + _itemChangeStatus string + // 实际销售价格,单位:分 + _acctionPrice string + // 能效 + _energyEfficiency string + // 商品skuId + _skuId string + // 促销开始时间:yyyy-MM-dd HH:mm:ss + _promotionStart string + // 商品条码 + _itemBarCode string + // 商品名称 + _itemTitle string + // 促销文案 + _promotionText string + // 扩展属性C + _customizeFeatureC string + // 扩展属性D + _customizeFeatureD string + // 扩展属性E + _customizeFeatureE string + // 扩展属性F + _customizeFeatureF string + // 扩展属性G + _customizeFeatureG string + // 扩展属性H + _customizeFeatureH string + // 扩展属性I + _customizeFeatureI string + // 扩展属性J + _customizeFeatureJ string + // 二维码 + _itemQrCode string + // 商品状态0:在售 1:售罄 + _itemStatus int64 + // 促销状态0:非促销 1:促销 + _ifPromotion bool + // 商品编码 + _itemId int64 + // 促销结束时间:yyyy-MM-dd HH:mm:ss + _promotionEnd string + // 促销原因 + _promotionReason string + // 商品原价 + _originalPrice string + // 商品简称 + _shortTitle string + // 扩展属性B + _customizeFeatureB string + // 产地 + _productionPlace string + // 扩展属性A + _customizeFeatureA string + // 门店ID + _shopId int64 +} + +// 初始化TaobaoUsceslIteminfoPutAPIRequest对象 +func NewTaobaoUsceslIteminfoPutRequest() *TaobaoUsceslIteminfoPutAPIRequest{ + return &TaobaoUsceslIteminfoPutAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsceslIteminfoPutAPIRequest) GetApiMethodName() string { + return "taobao.uscesl.iteminfo.put" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsceslIteminfoPutAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ModelNum Setter +// 型号 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetModelNum(_modelNum string) error { + r._modelNum = _modelNum + r.Set("model_num", _modelNum) + return nil +} + +// ModelNum Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetModelNum() string { + return r._modelNum +} +// PriceUnit Setter +// 价格单位 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetPriceUnit(_priceUnit string) error { + r._priceUnit = _priceUnit + r.Set("price_unit", _priceUnit) + return nil +} + +// PriceUnit Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetPriceUnit() string { + return r._priceUnit +} +// BrandName Setter +// 品牌名 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetBrandName(_brandName string) error { + r._brandName = _brandName + r.Set("brand_name", _brandName) + return nil +} + +// BrandName Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetBrandName() string { + return r._brandName +} +// SaleSpec Setter +// 销售规格 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetSaleSpec(_saleSpec string) error { + r._saleSpec = _saleSpec + r.Set("sale_spec", _saleSpec) + return nil +} + +// SaleSpec Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetSaleSpec() string { + return r._saleSpec +} +// CategoryName Setter +// 分类 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCategoryName(_categoryName string) error { + r._categoryName = _categoryName + r.Set("category_name", _categoryName) + return nil +} + +// CategoryName Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetCategoryName() string { + return r._categoryName +} +// Rank Setter +// 等级 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetRank(_rank string) error { + r._rank = _rank + r.Set("rank", _rank) + return nil +} + +// Rank Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetRank() string { + return r._rank +} +// ItemChangeStatus Setter +// 商品变更状态 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetItemChangeStatus(_itemChangeStatus string) error { + r._itemChangeStatus = _itemChangeStatus + r.Set("item_change_status", _itemChangeStatus) + return nil +} + +// ItemChangeStatus Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetItemChangeStatus() string { + return r._itemChangeStatus +} +// AcctionPrice Setter +// 实际销售价格,单位:分 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetAcctionPrice(_acctionPrice string) error { + r._acctionPrice = _acctionPrice + r.Set("acction_price", _acctionPrice) + return nil +} + +// AcctionPrice Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetAcctionPrice() string { + return r._acctionPrice +} +// EnergyEfficiency Setter +// 能效 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetEnergyEfficiency(_energyEfficiency string) error { + r._energyEfficiency = _energyEfficiency + r.Set("energy_efficiency", _energyEfficiency) + return nil +} + +// EnergyEfficiency Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetEnergyEfficiency() string { + return r._energyEfficiency +} +// SkuId Setter +// 商品skuId +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetSkuId(_skuId string) error { + r._skuId = _skuId + r.Set("sku_id", _skuId) + return nil +} + +// SkuId Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetSkuId() string { + return r._skuId +} +// PromotionStart Setter +// 促销开始时间:yyyy-MM-dd HH:mm:ss +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetPromotionStart(_promotionStart string) error { + r._promotionStart = _promotionStart + r.Set("promotion_start", _promotionStart) + return nil +} + +// PromotionStart Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetPromotionStart() string { + return r._promotionStart +} +// ItemBarCode Setter +// 商品条码 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetItemBarCode(_itemBarCode string) error { + r._itemBarCode = _itemBarCode + r.Set("item_bar_code", _itemBarCode) + return nil +} + +// ItemBarCode Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetItemBarCode() string { + return r._itemBarCode +} +// ItemTitle Setter +// 商品名称 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetItemTitle(_itemTitle string) error { + r._itemTitle = _itemTitle + r.Set("item_title", _itemTitle) + return nil +} + +// ItemTitle Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetItemTitle() string { + return r._itemTitle +} +// PromotionText Setter +// 促销文案 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetPromotionText(_promotionText string) error { + r._promotionText = _promotionText + r.Set("promotion_text", _promotionText) + return nil +} + +// PromotionText Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetPromotionText() string { + return r._promotionText +} +// CustomizeFeatureC Setter +// 扩展属性C +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureC(_customizeFeatureC string) error { + r._customizeFeatureC = _customizeFeatureC + r.Set("customize_feature_c", _customizeFeatureC) + return nil +} + +// CustomizeFeatureC Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureC() string { + return r._customizeFeatureC +} +// CustomizeFeatureD Setter +// 扩展属性D +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureD(_customizeFeatureD string) error { + r._customizeFeatureD = _customizeFeatureD + r.Set("customize_feature_d", _customizeFeatureD) + return nil +} + +// CustomizeFeatureD Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureD() string { + return r._customizeFeatureD +} +// CustomizeFeatureE Setter +// 扩展属性E +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureE(_customizeFeatureE string) error { + r._customizeFeatureE = _customizeFeatureE + r.Set("customize_feature_e", _customizeFeatureE) + return nil +} + +// CustomizeFeatureE Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureE() string { + return r._customizeFeatureE +} +// CustomizeFeatureF Setter +// 扩展属性F +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureF(_customizeFeatureF string) error { + r._customizeFeatureF = _customizeFeatureF + r.Set("customize_feature_f", _customizeFeatureF) + return nil +} + +// CustomizeFeatureF Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureF() string { + return r._customizeFeatureF +} +// CustomizeFeatureG Setter +// 扩展属性G +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureG(_customizeFeatureG string) error { + r._customizeFeatureG = _customizeFeatureG + r.Set("customize_feature_g", _customizeFeatureG) + return nil +} + +// CustomizeFeatureG Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureG() string { + return r._customizeFeatureG +} +// CustomizeFeatureH Setter +// 扩展属性H +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureH(_customizeFeatureH string) error { + r._customizeFeatureH = _customizeFeatureH + r.Set("customize_feature_h", _customizeFeatureH) + return nil +} + +// CustomizeFeatureH Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureH() string { + return r._customizeFeatureH +} +// CustomizeFeatureI Setter +// 扩展属性I +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureI(_customizeFeatureI string) error { + r._customizeFeatureI = _customizeFeatureI + r.Set("customize_feature_i", _customizeFeatureI) + return nil +} + +// CustomizeFeatureI Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureI() string { + return r._customizeFeatureI +} +// CustomizeFeatureJ Setter +// 扩展属性J +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureJ(_customizeFeatureJ string) error { + r._customizeFeatureJ = _customizeFeatureJ + r.Set("customize_feature_j", _customizeFeatureJ) + return nil +} + +// CustomizeFeatureJ Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureJ() string { + return r._customizeFeatureJ +} +// ItemQrCode Setter +// 二维码 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetItemQrCode(_itemQrCode string) error { + r._itemQrCode = _itemQrCode + r.Set("item_qr_code", _itemQrCode) + return nil +} + +// ItemQrCode Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetItemQrCode() string { + return r._itemQrCode +} +// ItemStatus Setter +// 商品状态0:在售 1:售罄 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetItemStatus(_itemStatus int64) error { + r._itemStatus = _itemStatus + r.Set("item_status", _itemStatus) + return nil +} + +// ItemStatus Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetItemStatus() int64 { + return r._itemStatus +} +// IfPromotion Setter +// 促销状态0:非促销 1:促销 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetIfPromotion(_ifPromotion bool) error { + r._ifPromotion = _ifPromotion + r.Set("if_promotion", _ifPromotion) + return nil +} + +// IfPromotion Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetIfPromotion() bool { + return r._ifPromotion +} +// ItemId Setter +// 商品编码 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetItemId() int64 { + return r._itemId +} +// PromotionEnd Setter +// 促销结束时间:yyyy-MM-dd HH:mm:ss +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetPromotionEnd(_promotionEnd string) error { + r._promotionEnd = _promotionEnd + r.Set("promotion_end", _promotionEnd) + return nil +} + +// PromotionEnd Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetPromotionEnd() string { + return r._promotionEnd +} +// PromotionReason Setter +// 促销原因 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetPromotionReason(_promotionReason string) error { + r._promotionReason = _promotionReason + r.Set("promotion_reason", _promotionReason) + return nil +} + +// PromotionReason Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetPromotionReason() string { + return r._promotionReason +} +// OriginalPrice Setter +// 商品原价 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetOriginalPrice(_originalPrice string) error { + r._originalPrice = _originalPrice + r.Set("original_price", _originalPrice) + return nil +} + +// OriginalPrice Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetOriginalPrice() string { + return r._originalPrice +} +// ShortTitle Setter +// 商品简称 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetShortTitle(_shortTitle string) error { + r._shortTitle = _shortTitle + r.Set("short_title", _shortTitle) + return nil +} + +// ShortTitle Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetShortTitle() string { + return r._shortTitle +} +// CustomizeFeatureB Setter +// 扩展属性B +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureB(_customizeFeatureB string) error { + r._customizeFeatureB = _customizeFeatureB + r.Set("customize_feature_b", _customizeFeatureB) + return nil +} + +// CustomizeFeatureB Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureB() string { + return r._customizeFeatureB +} +// ProductionPlace Setter +// 产地 +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetProductionPlace(_productionPlace string) error { + r._productionPlace = _productionPlace + r.Set("production_place", _productionPlace) + return nil +} + +// ProductionPlace Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetProductionPlace() string { + return r._productionPlace +} +// CustomizeFeatureA Setter +// 扩展属性A +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetCustomizeFeatureA(_customizeFeatureA string) error { + r._customizeFeatureA = _customizeFeatureA + r.Set("customize_feature_a", _customizeFeatureA) + return nil +} + +// CustomizeFeatureA Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetCustomizeFeatureA() string { + return r._customizeFeatureA +} +// ShopId Setter +// 门店ID +func (r *TaobaoUsceslIteminfoPutAPIRequest) SetShopId(_shopId int64) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r TaobaoUsceslIteminfoPutAPIRequest) GetShopId() int64 { + return r._shopId +} diff --git a/model/uscesl/TaobaoUsceslIteminfoPutAPIResponse.go b/model/uscesl/TaobaoUsceslIteminfoPutAPIResponse.go new file mode 100644 index 0000000000..02199a8729 --- /dev/null +++ b/model/uscesl/TaobaoUsceslIteminfoPutAPIResponse.go @@ -0,0 +1,31 @@ +package uscesl + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +电子价签显示用商品信息写入 API返回值 +taobao.uscesl.iteminfo.put + +用于电子价签上显示的商品信息的写入,包含价格及促销信息 +*/ +type TaobaoUsceslIteminfoPutAPIResponse struct { + model.CommonResponse + TaobaoUsceslIteminfoPutAPIResponseModel +} + +// 电子价签显示用商品信息写入 成功返回结果 +type TaobaoUsceslIteminfoPutAPIResponseModel struct { + XMLName xml.Name `xml:"uscesl_iteminfo_put_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // target + Target bool `json:"target,omitempty" xml:"target,omitempty"` + // returnCode + ReturnCode int64 `json:"return_code,omitempty" xml:"return_code,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/uscesl/TaobaoUsceslIteminfoPutResponse.go b/model/uscesl/TaobaoUsceslIteminfoPutResponse.go deleted file mode 100644 index 7d2456a5f2..0000000000 --- a/model/uscesl/TaobaoUsceslIteminfoPutResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package uscesl - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -电子价签显示用商品信息写入 API返回值 -taobao.uscesl.iteminfo.put - -用于电子价签上显示的商品信息的写入,包含价格及促销信息 -*/ -type TaobaoUsceslIteminfoPutAPIResponse struct { - model.CommonResponse - TaobaoUsceslIteminfoPutResponse -} - -// 电子价签显示用商品信息写入 成功返回结果 -type TaobaoUsceslIteminfoPutResponse struct { - XMLName xml.Name `xml:"uscesl_iteminfo_put_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // target - Target bool `json:"target,omitempty" xml:"target,omitempty"` - // returnCode - ReturnCode int64 `json:"return_code,omitempty" xml:"return_code,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/user/AccountAliyuncsComGetPubKey2013_07_01APIRequest.go b/model/user/AccountAliyuncsComGetPubKey2013_07_01APIRequest.go new file mode 100644 index 0000000000..45437deac3 --- /dev/null +++ b/model/user/AccountAliyuncsComGetPubKey2013_07_01APIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户公钥 API请求 +account.aliyuncs.com.GetPubKey.2013-07-01 + +根据用户的appkey查询用户的pubkey +*/ +type AccountAliyuncsComGetPubKey2013_07_01APIRequest struct { + model.Params + // appkey + _ownerAppkey string +} + +// 初始化AccountAliyuncsComGetPubKey2013_07_01APIRequest对象 +func NewAccountAliyuncsComGetPubKey2013_07_01Request() *AccountAliyuncsComGetPubKey2013_07_01APIRequest{ + return &AccountAliyuncsComGetPubKey2013_07_01APIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AccountAliyuncsComGetPubKey2013_07_01APIRequest) GetApiMethodName() string { + return "account.aliyuncs.com.GetPubKey.2013-07-01" +} + +// IRequest interface 方法, 获取API参数 +func (r AccountAliyuncsComGetPubKey2013_07_01APIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OwnerAppkey Setter +// appkey +func (r *AccountAliyuncsComGetPubKey2013_07_01APIRequest) SetOwnerAppkey(_ownerAppkey string) error { + r._ownerAppkey = _ownerAppkey + r.Set("OwnerAppkey", _ownerAppkey) + return nil +} + +// OwnerAppkey Getter +func (r AccountAliyuncsComGetPubKey2013_07_01APIRequest) GetOwnerAppkey() string { + return r._ownerAppkey +} diff --git a/model/user/AccountAliyuncsComGetPubKey2013_07_01APIResponse.go b/model/user/AccountAliyuncsComGetPubKey2013_07_01APIResponse.go new file mode 100644 index 0000000000..60f2956000 --- /dev/null +++ b/model/user/AccountAliyuncsComGetPubKey2013_07_01APIResponse.go @@ -0,0 +1,39 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户公钥 API返回值 +account.aliyuncs.com.GetPubKey.2013-07-01 + +根据用户的appkey查询用户的pubkey +*/ +type AccountAliyuncsComGetPubKey2013_07_01APIResponse struct { + model.CommonResponse + AccountAliyuncsComGetPubKey2013_07_01APIResponseModel +} + +// 获取用户公钥 成功返回结果 +type AccountAliyuncsComGetPubKey2013_07_01APIResponseModel struct { + XMLName xml.Name `xml:"account_aliyuncs_com_GetPubKey_2013-07-01_response"` + // 用户的公钥 + PubKey string `json:"PubKey,omitempty" xml:"PubKey,omitempty"` + // appkey的OwnerId + OwnerId string `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` + // 用户appkey的类型 + KeyType string `json:"KeyType,omitempty" xml:"KeyType,omitempty"` + // 创建key的时间 + CreateTime string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"` + // RequestId + RequestId string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` + // Message + Message string `json:"Message,omitempty" xml:"Message,omitempty"` + // 返回code + Code string `json:"Code,omitempty" xml:"Code,omitempty"` + // 用户的appkey + AppKey string `json:"AppKey,omitempty" xml:"AppKey,omitempty"` +} diff --git a/model/user/AccountAliyuncsComGetPubKey2013_07_01Response.go b/model/user/AccountAliyuncsComGetPubKey2013_07_01Response.go deleted file mode 100644 index a4ac33388f..0000000000 --- a/model/user/AccountAliyuncsComGetPubKey2013_07_01Response.go +++ /dev/null @@ -1,39 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户公钥 API返回值 -account.aliyuncs.com.GetPubKey.2013-07-01 - -根据用户的appkey查询用户的pubkey -*/ -type AccountAliyuncsComGetPubKey2013_07_01APIResponse struct { - model.CommonResponse - AccountAliyuncsComGetPubKey2013_07_01Response -} - -// 获取用户公钥 成功返回结果 -type AccountAliyuncsComGetPubKey2013_07_01Response struct { - XMLName xml.Name `xml:"account_aliyuncs_com_GetPubKey_2013-07-01_response"` - // 用户的公钥 - PubKey string `json:"PubKey,omitempty" xml:"PubKey,omitempty"` - // appkey的OwnerId - OwnerId string `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"` - // 用户appkey的类型 - KeyType string `json:"KeyType,omitempty" xml:"KeyType,omitempty"` - // 创建key的时间 - CreateTime string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"` - // RequestId - RequestId string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` - // Message - Message string `json:"Message,omitempty" xml:"Message,omitempty"` - // 返回code - Code string `json:"Code,omitempty" xml:"Code,omitempty"` - // 用户的appkey - AppKey string `json:"AppKey,omitempty" xml:"AppKey,omitempty"` -} diff --git a/model/user/AlibabaAilabsUserSpeechGuideAPIRequest.go b/model/user/AlibabaAilabsUserSpeechGuideAPIRequest.go new file mode 100644 index 0000000000..f79a048231 --- /dev/null +++ b/model/user/AlibabaAilabsUserSpeechGuideAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +引导语推荐接口 API请求 +alibaba.ailabs.user.speech.guide + +根据用户的语音query,返回相应的引导语推荐 +*/ +type AlibabaAilabsUserSpeechGuideAPIRequest struct { + model.Params + // 用户query + _query string +} + +// 初始化AlibabaAilabsUserSpeechGuideAPIRequest对象 +func NewAlibabaAilabsUserSpeechGuideRequest() *AlibabaAilabsUserSpeechGuideAPIRequest{ + return &AlibabaAilabsUserSpeechGuideAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAilabsUserSpeechGuideAPIRequest) GetApiMethodName() string { + return "alibaba.ailabs.user.speech.guide" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAilabsUserSpeechGuideAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 用户query +func (r *AlibabaAilabsUserSpeechGuideAPIRequest) SetQuery(_query string) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaAilabsUserSpeechGuideAPIRequest) GetQuery() string { + return r._query +} diff --git a/model/user/AlibabaAilabsUserSpeechGuideAPIResponse.go b/model/user/AlibabaAilabsUserSpeechGuideAPIResponse.go new file mode 100644 index 0000000000..780507fb27 --- /dev/null +++ b/model/user/AlibabaAilabsUserSpeechGuideAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +引导语推荐接口 API返回值 +alibaba.ailabs.user.speech.guide + +根据用户的语音query,返回相应的引导语推荐 +*/ +type AlibabaAilabsUserSpeechGuideAPIResponse struct { + model.CommonResponse + AlibabaAilabsUserSpeechGuideAPIResponseModel +} + +// 引导语推荐接口 成功返回结果 +type AlibabaAilabsUserSpeechGuideAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ailabs_user_speech_guide_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaAilabsUserSpeechGuideResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/user/AlibabaAilabsUserSpeechGuideResponse.go b/model/user/AlibabaAilabsUserSpeechGuideResponse.go deleted file mode 100644 index 22305d4faf..0000000000 --- a/model/user/AlibabaAilabsUserSpeechGuideResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -引导语推荐接口 API返回值 -alibaba.ailabs.user.speech.guide - -根据用户的语音query,返回相应的引导语推荐 -*/ -type AlibabaAilabsUserSpeechGuideAPIResponse struct { - model.CommonResponse - AlibabaAilabsUserSpeechGuideResponse -} - -// 引导语推荐接口 成功返回结果 -type AlibabaAilabsUserSpeechGuideResponse struct { - XMLName xml.Name `xml:"alibaba_ailabs_user_speech_guide_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaAilabsUserSpeechGuideResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/user/AlibabaAliqinFlowWalletCheckBalanceAPIRequest.go b/model/user/AlibabaAliqinFlowWalletCheckBalanceAPIRequest.go new file mode 100644 index 0000000000..6de511f6c5 --- /dev/null +++ b/model/user/AlibabaAliqinFlowWalletCheckBalanceAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家预存余额检查 API请求 +alibaba.aliqin.flow.wallet.check.balance + +检查商家CRM预存余额是否足够进行活动 +*/ +type AlibabaAliqinFlowWalletCheckBalanceAPIRequest struct { + model.Params + // 检查金额档位id + _gradeId string +} + +// 初始化AlibabaAliqinFlowWalletCheckBalanceAPIRequest对象 +func NewAlibabaAliqinFlowWalletCheckBalanceRequest() *AlibabaAliqinFlowWalletCheckBalanceAPIRequest{ + return &AlibabaAliqinFlowWalletCheckBalanceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAliqinFlowWalletCheckBalanceAPIRequest) GetApiMethodName() string { + return "alibaba.aliqin.flow.wallet.check.balance" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAliqinFlowWalletCheckBalanceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// GradeId Setter +// 检查金额档位id +func (r *AlibabaAliqinFlowWalletCheckBalanceAPIRequest) SetGradeId(_gradeId string) error { + r._gradeId = _gradeId + r.Set("grade_id", _gradeId) + return nil +} + +// GradeId Getter +func (r AlibabaAliqinFlowWalletCheckBalanceAPIRequest) GetGradeId() string { + return r._gradeId +} diff --git a/model/user/AlibabaAliqinFlowWalletCheckBalanceAPIResponse.go b/model/user/AlibabaAliqinFlowWalletCheckBalanceAPIResponse.go new file mode 100644 index 0000000000..c82cce596d --- /dev/null +++ b/model/user/AlibabaAliqinFlowWalletCheckBalanceAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家预存余额检查 API返回值 +alibaba.aliqin.flow.wallet.check.balance + +检查商家CRM预存余额是否足够进行活动 +*/ +type AlibabaAliqinFlowWalletCheckBalanceAPIResponse struct { + model.CommonResponse + AlibabaAliqinFlowWalletCheckBalanceAPIResponseModel +} + +// 商家预存余额检查 成功返回结果 +type AlibabaAliqinFlowWalletCheckBalanceAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_aliqin_flow_wallet_check_balance_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 余额是否大于校验值,大于返回true,小于返回false + Value string `json:"value,omitempty" xml:"value,omitempty"` +} diff --git a/model/user/AlibabaAliqinFlowWalletCheckBalanceResponse.go b/model/user/AlibabaAliqinFlowWalletCheckBalanceResponse.go deleted file mode 100644 index 5d1d3f84ba..0000000000 --- a/model/user/AlibabaAliqinFlowWalletCheckBalanceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家预存余额检查 API返回值 -alibaba.aliqin.flow.wallet.check.balance - -检查商家CRM预存余额是否足够进行活动 -*/ -type AlibabaAliqinFlowWalletCheckBalanceAPIResponse struct { - model.CommonResponse - AlibabaAliqinFlowWalletCheckBalanceResponse -} - -// 商家预存余额检查 成功返回结果 -type AlibabaAliqinFlowWalletCheckBalanceResponse struct { - XMLName xml.Name `xml:"alibaba_aliqin_flow_wallet_check_balance_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 余额是否大于校验值,大于返回true,小于返回false - Value string `json:"value,omitempty" xml:"value,omitempty"` -} diff --git a/model/user/AlibabaBenefitSendAPIRequest.go b/model/user/AlibabaBenefitSendAPIRequest.go new file mode 100644 index 0000000000..ce12495c72 --- /dev/null +++ b/model/user/AlibabaBenefitSendAPIRequest.go @@ -0,0 +1,122 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发奖接口 API请求 +alibaba.benefit.send + +发奖接口 +*/ +type AlibabaBenefitSendAPIRequest struct { + model.Params + // 发放的权益(奖品)唯一标识 + _rightEname string + // 接收奖品的用户openId + _receiverId string + // 规定填taobao即可 + _userType string + // 幂等校验id,业务重试需要,自定义唯一字段即可 + _uniqueId string + // mtop + _appName string + // 调用应用ip,非必填 + _ip string +} + +// 初始化AlibabaBenefitSendAPIRequest对象 +func NewAlibabaBenefitSendRequest() *AlibabaBenefitSendAPIRequest{ + return &AlibabaBenefitSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaBenefitSendAPIRequest) GetApiMethodName() string { + return "alibaba.benefit.send" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaBenefitSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RightEname Setter +// 发放的权益(奖品)唯一标识 +func (r *AlibabaBenefitSendAPIRequest) SetRightEname(_rightEname string) error { + r._rightEname = _rightEname + r.Set("right_ename", _rightEname) + return nil +} + +// RightEname Getter +func (r AlibabaBenefitSendAPIRequest) GetRightEname() string { + return r._rightEname +} +// ReceiverId Setter +// 接收奖品的用户openId +func (r *AlibabaBenefitSendAPIRequest) SetReceiverId(_receiverId string) error { + r._receiverId = _receiverId + r.Set("receiver_id", _receiverId) + return nil +} + +// ReceiverId Getter +func (r AlibabaBenefitSendAPIRequest) GetReceiverId() string { + return r._receiverId +} +// UserType Setter +// 规定填taobao即可 +func (r *AlibabaBenefitSendAPIRequest) SetUserType(_userType string) error { + r._userType = _userType + r.Set("user_type", _userType) + return nil +} + +// UserType Getter +func (r AlibabaBenefitSendAPIRequest) GetUserType() string { + return r._userType +} +// UniqueId Setter +// 幂等校验id,业务重试需要,自定义唯一字段即可 +func (r *AlibabaBenefitSendAPIRequest) SetUniqueId(_uniqueId string) error { + r._uniqueId = _uniqueId + r.Set("unique_id", _uniqueId) + return nil +} + +// UniqueId Getter +func (r AlibabaBenefitSendAPIRequest) GetUniqueId() string { + return r._uniqueId +} +// AppName Setter +// mtop +func (r *AlibabaBenefitSendAPIRequest) SetAppName(_appName string) error { + r._appName = _appName + r.Set("app_name", _appName) + return nil +} + +// AppName Getter +func (r AlibabaBenefitSendAPIRequest) GetAppName() string { + return r._appName +} +// Ip Setter +// 调用应用ip,非必填 +func (r *AlibabaBenefitSendAPIRequest) SetIp(_ip string) error { + r._ip = _ip + r.Set("ip", _ip) + return nil +} + +// Ip Getter +func (r AlibabaBenefitSendAPIRequest) GetIp() string { + return r._ip +} diff --git a/model/user/AlibabaBenefitSendAPIResponse.go b/model/user/AlibabaBenefitSendAPIResponse.go new file mode 100644 index 0000000000..929f07925e --- /dev/null +++ b/model/user/AlibabaBenefitSendAPIResponse.go @@ -0,0 +1,35 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发奖接口 API返回值 +alibaba.benefit.send + +发奖接口 +*/ +type AlibabaBenefitSendAPIResponse struct { + model.CommonResponse + AlibabaBenefitSendAPIResponseModel +} + +// 发奖接口 成功返回结果 +type AlibabaBenefitSendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_benefit_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回消息 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 接口返回代码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 是否处理成功 + ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` + // 权益id + RightId int64 `json:"right_id,omitempty" xml:"right_id,omitempty"` + // 奖品名称 + PrizeName string `json:"prize_name,omitempty" xml:"prize_name,omitempty"` +} diff --git a/model/user/AlibabaBenefitSendResponse.go b/model/user/AlibabaBenefitSendResponse.go deleted file mode 100644 index 9473b535e7..0000000000 --- a/model/user/AlibabaBenefitSendResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发奖接口 API返回值 -alibaba.benefit.send - -发奖接口 -*/ -type AlibabaBenefitSendAPIResponse struct { - model.CommonResponse - AlibabaBenefitSendResponse -} - -// 发奖接口 成功返回结果 -type AlibabaBenefitSendResponse struct { - XMLName xml.Name `xml:"alibaba_benefit_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回消息 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 接口返回代码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 是否处理成功 - ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` - // 权益id - RightId int64 `json:"right_id,omitempty" xml:"right_id,omitempty"` - // 奖品名称 - PrizeName string `json:"prize_name,omitempty" xml:"prize_name,omitempty"` -} diff --git a/model/user/AlibabaBeneiftDrawAPIRequest.go b/model/user/AlibabaBeneiftDrawAPIRequest.go new file mode 100644 index 0000000000..ba8586f9bb --- /dev/null +++ b/model/user/AlibabaBeneiftDrawAPIRequest.go @@ -0,0 +1,80 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖接口 API请求 +alibaba.beneift.draw + +抽奖接口 +*/ +type AlibabaBeneiftDrawAPIRequest struct { + model.Params + // 奖池唯一标识,奖池创建时即生成 + _ename string + // 调用方AppName:规定为promotioncenter-${appId} + _appName string + // 调用方应用ip,非必填 + _ip string +} + +// 初始化AlibabaBeneiftDrawAPIRequest对象 +func NewAlibabaBeneiftDrawRequest() *AlibabaBeneiftDrawAPIRequest{ + return &AlibabaBeneiftDrawAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaBeneiftDrawAPIRequest) GetApiMethodName() string { + return "alibaba.beneift.draw" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaBeneiftDrawAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Ename Setter +// 奖池唯一标识,奖池创建时即生成 +func (r *AlibabaBeneiftDrawAPIRequest) SetEname(_ename string) error { + r._ename = _ename + r.Set("ename", _ename) + return nil +} + +// Ename Getter +func (r AlibabaBeneiftDrawAPIRequest) GetEname() string { + return r._ename +} +// AppName Setter +// 调用方AppName:规定为promotioncenter-${appId} +func (r *AlibabaBeneiftDrawAPIRequest) SetAppName(_appName string) error { + r._appName = _appName + r.Set("app_name", _appName) + return nil +} + +// AppName Getter +func (r AlibabaBeneiftDrawAPIRequest) GetAppName() string { + return r._appName +} +// Ip Setter +// 调用方应用ip,非必填 +func (r *AlibabaBeneiftDrawAPIRequest) SetIp(_ip string) error { + r._ip = _ip + r.Set("ip", _ip) + return nil +} + +// Ip Getter +func (r AlibabaBeneiftDrawAPIRequest) GetIp() string { + return r._ip +} diff --git a/model/user/AlibabaBeneiftDrawAPIResponse.go b/model/user/AlibabaBeneiftDrawAPIResponse.go new file mode 100644 index 0000000000..58657d189d --- /dev/null +++ b/model/user/AlibabaBeneiftDrawAPIResponse.go @@ -0,0 +1,35 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +抽奖接口 API返回值 +alibaba.beneift.draw + +抽奖接口 +*/ +type AlibabaBeneiftDrawAPIResponse struct { + model.CommonResponse + AlibabaBeneiftDrawAPIResponseModel +} + +// 抽奖接口 成功返回结果 +type AlibabaBeneiftDrawAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_beneift_draw_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` + // message + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // code + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 权益id + RightId string `json:"right_id,omitempty" xml:"right_id,omitempty"` + // 奖品id + PrizeId string `json:"prize_id,omitempty" xml:"prize_id,omitempty"` +} diff --git a/model/user/AlibabaBeneiftDrawResponse.go b/model/user/AlibabaBeneiftDrawResponse.go deleted file mode 100644 index ce25f83672..0000000000 --- a/model/user/AlibabaBeneiftDrawResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -抽奖接口 API返回值 -alibaba.beneift.draw - -抽奖接口 -*/ -type AlibabaBeneiftDrawAPIResponse struct { - model.CommonResponse - AlibabaBeneiftDrawResponse -} - -// 抽奖接口 成功返回结果 -type AlibabaBeneiftDrawResponse struct { - XMLName xml.Name `xml:"alibaba_beneift_draw_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"` - // message - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // code - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 权益id - RightId string `json:"right_id,omitempty" xml:"right_id,omitempty"` - // 奖品id - PrizeId string `json:"prize_id,omitempty" xml:"prize_id,omitempty"` -} diff --git a/model/user/AlibabaInteractUiVideoAPIRequest.go b/model/user/AlibabaInteractUiVideoAPIRequest.go new file mode 100644 index 0000000000..3ce21eb473 --- /dev/null +++ b/model/user/AlibabaInteractUiVideoAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +视频播放 API请求 +alibaba.interact.ui.video + +Weex页面播放视频 +*/ +type AlibabaInteractUiVideoAPIRequest struct { + model.Params + // 仅作鉴权使用,没有实际数据传输 + _unnamed string +} + +// 初始化AlibabaInteractUiVideoAPIRequest对象 +func NewAlibabaInteractUiVideoRequest() *AlibabaInteractUiVideoAPIRequest{ + return &AlibabaInteractUiVideoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractUiVideoAPIRequest) GetApiMethodName() string { + return "alibaba.interact.ui.video" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractUiVideoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Unnamed Setter +// 仅作鉴权使用,没有实际数据传输 +func (r *AlibabaInteractUiVideoAPIRequest) SetUnnamed(_unnamed string) error { + r._unnamed = _unnamed + r.Set("unnamed", _unnamed) + return nil +} + +// Unnamed Getter +func (r AlibabaInteractUiVideoAPIRequest) GetUnnamed() string { + return r._unnamed +} diff --git a/model/user/AlibabaInteractUiVideoAPIResponse.go b/model/user/AlibabaInteractUiVideoAPIResponse.go new file mode 100644 index 0000000000..fc504b4cf8 --- /dev/null +++ b/model/user/AlibabaInteractUiVideoAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +视频播放 API返回值 +alibaba.interact.ui.video + +Weex页面播放视频 +*/ +type AlibabaInteractUiVideoAPIResponse struct { + model.CommonResponse + AlibabaInteractUiVideoAPIResponseModel +} + +// 视频播放 成功返回结果 +type AlibabaInteractUiVideoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_ui_video_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 仅作鉴权使用,没有实际数据传输 + Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"` +} diff --git a/model/user/AlibabaInteractUiVideoResponse.go b/model/user/AlibabaInteractUiVideoResponse.go deleted file mode 100644 index 4088f295e7..0000000000 --- a/model/user/AlibabaInteractUiVideoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -视频播放 API返回值 -alibaba.interact.ui.video - -Weex页面播放视频 -*/ -type AlibabaInteractUiVideoAPIResponse struct { - model.CommonResponse - AlibabaInteractUiVideoResponse -} - -// 视频播放 成功返回结果 -type AlibabaInteractUiVideoResponse struct { - XMLName xml.Name `xml:"alibaba_interact_ui_video_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 仅作鉴权使用,没有实际数据传输 - Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"` -} diff --git a/model/user/AlibabaLsyCrmCreateAPIRequest.go b/model/user/AlibabaLsyCrmCreateAPIRequest.go new file mode 100644 index 0000000000..6ad0b43c6c --- /dev/null +++ b/model/user/AlibabaLsyCrmCreateAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建客资 API请求 +alibaba.lsy.crm.create + +欢客调用该接口进行客资创建 +*/ +type AlibabaLsyCrmCreateAPIRequest struct { + model.Params + // 客资记录对象 + _nrtRecordDto *NrtRecordDto +} + +// 初始化AlibabaLsyCrmCreateAPIRequest对象 +func NewAlibabaLsyCrmCreateRequest() *AlibabaLsyCrmCreateAPIRequest{ + return &AlibabaLsyCrmCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLsyCrmCreateAPIRequest) GetApiMethodName() string { + return "alibaba.lsy.crm.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLsyCrmCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NrtRecordDto Setter +// 客资记录对象 +func (r *AlibabaLsyCrmCreateAPIRequest) SetNrtRecordDto(_nrtRecordDto *NrtRecordDto) error { + r._nrtRecordDto = _nrtRecordDto + r.Set("nrt_record_dto", _nrtRecordDto) + return nil +} + +// NrtRecordDto Getter +func (r AlibabaLsyCrmCreateAPIRequest) GetNrtRecordDto() *NrtRecordDto { + return r._nrtRecordDto +} diff --git a/model/user/AlibabaLsyCrmCreateAPIResponse.go b/model/user/AlibabaLsyCrmCreateAPIResponse.go new file mode 100644 index 0000000000..43f79a4fd4 --- /dev/null +++ b/model/user/AlibabaLsyCrmCreateAPIResponse.go @@ -0,0 +1,33 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建客资 API返回值 +alibaba.lsy.crm.create + +欢客调用该接口进行客资创建 +*/ +type AlibabaLsyCrmCreateAPIResponse struct { + model.CommonResponse + AlibabaLsyCrmCreateAPIResponseModel +} + +// 创建客资 成功返回结果 +type AlibabaLsyCrmCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lsy_crm_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误提示 + FailMsg string `json:"fail_msg,omitempty" xml:"fail_msg,omitempty"` + // 错误码 + FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"` + // 是否成功 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 返回的数据 + Data *NrtCreateRecordReturnDto `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/user/AlibabaLsyCrmCreateResponse.go b/model/user/AlibabaLsyCrmCreateResponse.go deleted file mode 100644 index ff0d918357..0000000000 --- a/model/user/AlibabaLsyCrmCreateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建客资 API返回值 -alibaba.lsy.crm.create - -欢客调用该接口进行客资创建 -*/ -type AlibabaLsyCrmCreateAPIResponse struct { - model.CommonResponse - AlibabaLsyCrmCreateResponse -} - -// 创建客资 成功返回结果 -type AlibabaLsyCrmCreateResponse struct { - XMLName xml.Name `xml:"alibaba_lsy_crm_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误提示 - FailMsg string `json:"fail_msg,omitempty" xml:"fail_msg,omitempty"` - // 错误码 - FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"` - // 是否成功 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` - // 返回的数据 - Data *NrtCreateRecordReturnDto `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/user/AlibabaLsyCrmUpdateAPIRequest.go b/model/user/AlibabaLsyCrmUpdateAPIRequest.go new file mode 100644 index 0000000000..2ac6ba0573 --- /dev/null +++ b/model/user/AlibabaLsyCrmUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +跟进客资状态接口 API请求 +alibaba.lsy.crm.update + +同步客资状态接口 +*/ +type AlibabaLsyCrmUpdateAPIRequest struct { + model.Params + // 更新客资状态对象 + _nrtUpdateRecordStatusDto *NrtUpdateRecordStatusDto +} + +// 初始化AlibabaLsyCrmUpdateAPIRequest对象 +func NewAlibabaLsyCrmUpdateRequest() *AlibabaLsyCrmUpdateAPIRequest{ + return &AlibabaLsyCrmUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLsyCrmUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.lsy.crm.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLsyCrmUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NrtUpdateRecordStatusDto Setter +// 更新客资状态对象 +func (r *AlibabaLsyCrmUpdateAPIRequest) SetNrtUpdateRecordStatusDto(_nrtUpdateRecordStatusDto *NrtUpdateRecordStatusDto) error { + r._nrtUpdateRecordStatusDto = _nrtUpdateRecordStatusDto + r.Set("nrt_update_record_status_dto", _nrtUpdateRecordStatusDto) + return nil +} + +// NrtUpdateRecordStatusDto Getter +func (r AlibabaLsyCrmUpdateAPIRequest) GetNrtUpdateRecordStatusDto() *NrtUpdateRecordStatusDto { + return r._nrtUpdateRecordStatusDto +} diff --git a/model/user/AlibabaLsyCrmUpdateAPIResponse.go b/model/user/AlibabaLsyCrmUpdateAPIResponse.go new file mode 100644 index 0000000000..102ca7dfbc --- /dev/null +++ b/model/user/AlibabaLsyCrmUpdateAPIResponse.go @@ -0,0 +1,33 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +跟进客资状态接口 API返回值 +alibaba.lsy.crm.update + +同步客资状态接口 +*/ +type AlibabaLsyCrmUpdateAPIResponse struct { + model.CommonResponse + AlibabaLsyCrmUpdateAPIResponseModel +} + +// 跟进客资状态接口 成功返回结果 +type AlibabaLsyCrmUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lsy_crm_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误提示 + FailMsg string `json:"fail_msg,omitempty" xml:"fail_msg,omitempty"` + // 错误码 + FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"` + // 是否成功 + Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` + // 是否成功跟进客资状态 + Data bool `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/user/AlibabaLsyCrmUpdateResponse.go b/model/user/AlibabaLsyCrmUpdateResponse.go deleted file mode 100644 index d0244425a7..0000000000 --- a/model/user/AlibabaLsyCrmUpdateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -跟进客资状态接口 API返回值 -alibaba.lsy.crm.update - -同步客资状态接口 -*/ -type AlibabaLsyCrmUpdateAPIResponse struct { - model.CommonResponse - AlibabaLsyCrmUpdateResponse -} - -// 跟进客资状态接口 成功返回结果 -type AlibabaLsyCrmUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_lsy_crm_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误提示 - FailMsg string `json:"fail_msg,omitempty" xml:"fail_msg,omitempty"` - // 错误码 - FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"` - // 是否成功 - Succ bool `json:"succ,omitempty" xml:"succ,omitempty"` - // 是否成功跟进客资状态 - Data bool `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/user/AlibabaLsyMiniappUserGetAPIRequest.go b/model/user/AlibabaLsyMiniappUserGetAPIRequest.go new file mode 100644 index 0000000000..e5f5133894 --- /dev/null +++ b/model/user/AlibabaLsyMiniappUserGetAPIRequest.go @@ -0,0 +1,94 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +零售云小程序获取登录用户信息 API请求 +alibaba.lsy.miniapp.user.get + +零售云小程序,通过授权码获取登录的卖家账号信息 +*/ +type AlibabaLsyMiniappUserGetAPIRequest struct { + model.Params + // 当前时间戳,毫秒 + _timeStamp string + // 获取用户信息的授权码,在小程序中获取 + _code string + // 请求参数签名,sha1(所有入参+appSecret,按字符串升序排列) + _signature string + // 系统分配的小程序ID + _appId string +} + +// 初始化AlibabaLsyMiniappUserGetAPIRequest对象 +func NewAlibabaLsyMiniappUserGetRequest() *AlibabaLsyMiniappUserGetAPIRequest{ + return &AlibabaLsyMiniappUserGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaLsyMiniappUserGetAPIRequest) GetApiMethodName() string { + return "alibaba.lsy.miniapp.user.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaLsyMiniappUserGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TimeStamp Setter +// 当前时间戳,毫秒 +func (r *AlibabaLsyMiniappUserGetAPIRequest) SetTimeStamp(_timeStamp string) error { + r._timeStamp = _timeStamp + r.Set("time_stamp", _timeStamp) + return nil +} + +// TimeStamp Getter +func (r AlibabaLsyMiniappUserGetAPIRequest) GetTimeStamp() string { + return r._timeStamp +} +// Code Setter +// 获取用户信息的授权码,在小程序中获取 +func (r *AlibabaLsyMiniappUserGetAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r AlibabaLsyMiniappUserGetAPIRequest) GetCode() string { + return r._code +} +// Signature Setter +// 请求参数签名,sha1(所有入参+appSecret,按字符串升序排列) +func (r *AlibabaLsyMiniappUserGetAPIRequest) SetSignature(_signature string) error { + r._signature = _signature + r.Set("signature", _signature) + return nil +} + +// Signature Getter +func (r AlibabaLsyMiniappUserGetAPIRequest) GetSignature() string { + return r._signature +} +// AppId Setter +// 系统分配的小程序ID +func (r *AlibabaLsyMiniappUserGetAPIRequest) SetAppId(_appId string) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r AlibabaLsyMiniappUserGetAPIRequest) GetAppId() string { + return r._appId +} diff --git a/model/user/AlibabaLsyMiniappUserGetAPIResponse.go b/model/user/AlibabaLsyMiniappUserGetAPIResponse.go new file mode 100644 index 0000000000..8bb5d05cf4 --- /dev/null +++ b/model/user/AlibabaLsyMiniappUserGetAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +零售云小程序获取登录用户信息 API返回值 +alibaba.lsy.miniapp.user.get + +零售云小程序,通过授权码获取登录的卖家账号信息 +*/ +type AlibabaLsyMiniappUserGetAPIResponse struct { + model.CommonResponse + AlibabaLsyMiniappUserGetAPIResponseModel +} + +// 零售云小程序获取登录用户信息 成功返回结果 +type AlibabaLsyMiniappUserGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_lsy_miniapp_user_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应内容 + Result *MiniAppResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/user/AlibabaLsyMiniappUserGetResponse.go b/model/user/AlibabaLsyMiniappUserGetResponse.go deleted file mode 100644 index db4c54b664..0000000000 --- a/model/user/AlibabaLsyMiniappUserGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -零售云小程序获取登录用户信息 API返回值 -alibaba.lsy.miniapp.user.get - -零售云小程序,通过授权码获取登录的卖家账号信息 -*/ -type AlibabaLsyMiniappUserGetAPIResponse struct { - model.CommonResponse - AlibabaLsyMiniappUserGetResponse -} - -// 零售云小程序获取登录用户信息 成功返回结果 -type AlibabaLsyMiniappUserGetResponse struct { - XMLName xml.Name `xml:"alibaba_lsy_miniapp_user_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应内容 - Result *MiniAppResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/user/TaobaoAppstoreSubscribeGetAPIRequest.go b/model/user/TaobaoAppstoreSubscribeGetAPIRequest.go new file mode 100644 index 0000000000..83674d61c5 --- /dev/null +++ b/model/user/TaobaoAppstoreSubscribeGetAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询appstore应用订购关系 API请求 +taobao.appstore.subscribe.get + +查询appstore应用订购关系(对于新上架的多版本应用,建议使用taobao.vas.subscribe.get) +*/ +type TaobaoAppstoreSubscribeGetAPIRequest struct { + model.Params + // 用户昵称 + _nick string +} + +// 初始化TaobaoAppstoreSubscribeGetAPIRequest对象 +func NewTaobaoAppstoreSubscribeGetRequest() *TaobaoAppstoreSubscribeGetAPIRequest{ + return &TaobaoAppstoreSubscribeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAppstoreSubscribeGetAPIRequest) GetApiMethodName() string { + return "taobao.appstore.subscribe.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAppstoreSubscribeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 用户昵称 +func (r *TaobaoAppstoreSubscribeGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoAppstoreSubscribeGetAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/user/TaobaoAppstoreSubscribeGetAPIResponse.go b/model/user/TaobaoAppstoreSubscribeGetAPIResponse.go new file mode 100644 index 0000000000..cf9b58f93d --- /dev/null +++ b/model/user/TaobaoAppstoreSubscribeGetAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询appstore应用订购关系 API返回值 +taobao.appstore.subscribe.get + +查询appstore应用订购关系(对于新上架的多版本应用,建议使用taobao.vas.subscribe.get) +*/ +type TaobaoAppstoreSubscribeGetAPIResponse struct { + model.CommonResponse + TaobaoAppstoreSubscribeGetAPIResponseModel +} + +// 查询appstore应用订购关系 成功返回结果 +type TaobaoAppstoreSubscribeGetAPIResponseModel struct { + XMLName xml.Name `xml:"appstore_subscribe_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 用户订购信息 + UserSubscribe *UserSubscribe `json:"user_subscribe,omitempty" xml:"user_subscribe,omitempty"` +} diff --git a/model/user/TaobaoAppstoreSubscribeGetResponse.go b/model/user/TaobaoAppstoreSubscribeGetResponse.go deleted file mode 100644 index ccbc0e8222..0000000000 --- a/model/user/TaobaoAppstoreSubscribeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询appstore应用订购关系 API返回值 -taobao.appstore.subscribe.get - -查询appstore应用订购关系(对于新上架的多版本应用,建议使用taobao.vas.subscribe.get) -*/ -type TaobaoAppstoreSubscribeGetAPIResponse struct { - model.CommonResponse - TaobaoAppstoreSubscribeGetResponse -} - -// 查询appstore应用订购关系 成功返回结果 -type TaobaoAppstoreSubscribeGetResponse struct { - XMLName xml.Name `xml:"appstore_subscribe_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 用户订购信息 - UserSubscribe *UserSubscribe `json:"user_subscribe,omitempty" xml:"user_subscribe,omitempty"` -} diff --git a/model/user/TaobaoKoubeiTribeOpenUserQueryAPIRequest.go b/model/user/TaobaoKoubeiTribeOpenUserQueryAPIRequest.go new file mode 100644 index 0000000000..b66efc4434 --- /dev/null +++ b/model/user/TaobaoKoubeiTribeOpenUserQueryAPIRequest.go @@ -0,0 +1,80 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户openId API请求 +taobao.koubei.tribe.open.user.query + +口碑综合体通过手机号码获取加密后的用户openId +*/ +type TaobaoKoubeiTribeOpenUserQueryAPIRequest struct { + model.Params + // 验证码 + _verifyCode string + // 手机号 + _phone string + // 数据集id + _dataSetId string +} + +// 初始化TaobaoKoubeiTribeOpenUserQueryAPIRequest对象 +func NewTaobaoKoubeiTribeOpenUserQueryRequest() *TaobaoKoubeiTribeOpenUserQueryAPIRequest{ + return &TaobaoKoubeiTribeOpenUserQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoKoubeiTribeOpenUserQueryAPIRequest) GetApiMethodName() string { + return "taobao.koubei.tribe.open.user.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoKoubeiTribeOpenUserQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VerifyCode Setter +// 验证码 +func (r *TaobaoKoubeiTribeOpenUserQueryAPIRequest) SetVerifyCode(_verifyCode string) error { + r._verifyCode = _verifyCode + r.Set("verify_code", _verifyCode) + return nil +} + +// VerifyCode Getter +func (r TaobaoKoubeiTribeOpenUserQueryAPIRequest) GetVerifyCode() string { + return r._verifyCode +} +// Phone Setter +// 手机号 +func (r *TaobaoKoubeiTribeOpenUserQueryAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r TaobaoKoubeiTribeOpenUserQueryAPIRequest) GetPhone() string { + return r._phone +} +// DataSetId Setter +// 数据集id +func (r *TaobaoKoubeiTribeOpenUserQueryAPIRequest) SetDataSetId(_dataSetId string) error { + r._dataSetId = _dataSetId + r.Set("data_set_id", _dataSetId) + return nil +} + +// DataSetId Getter +func (r TaobaoKoubeiTribeOpenUserQueryAPIRequest) GetDataSetId() string { + return r._dataSetId +} diff --git a/model/user/TaobaoKoubeiTribeOpenUserQueryAPIResponse.go b/model/user/TaobaoKoubeiTribeOpenUserQueryAPIResponse.go new file mode 100644 index 0000000000..e4cde7f21d --- /dev/null +++ b/model/user/TaobaoKoubeiTribeOpenUserQueryAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户openId API返回值 +taobao.koubei.tribe.open.user.query + +口碑综合体通过手机号码获取加密后的用户openId +*/ +type TaobaoKoubeiTribeOpenUserQueryAPIResponse struct { + model.CommonResponse + TaobaoKoubeiTribeOpenUserQueryAPIResponseModel +} + +// 获取用户openId 成功返回结果 +type TaobaoKoubeiTribeOpenUserQueryAPIResponseModel struct { + XMLName xml.Name `xml:"koubei_tribe_open_user_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoKoubeiTribeOpenUserQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/user/TaobaoKoubeiTribeOpenUserQueryResponse.go b/model/user/TaobaoKoubeiTribeOpenUserQueryResponse.go deleted file mode 100644 index e4f5a1313e..0000000000 --- a/model/user/TaobaoKoubeiTribeOpenUserQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户openId API返回值 -taobao.koubei.tribe.open.user.query - -口碑综合体通过手机号码获取加密后的用户openId -*/ -type TaobaoKoubeiTribeOpenUserQueryAPIResponse struct { - model.CommonResponse - TaobaoKoubeiTribeOpenUserQueryResponse -} - -// 获取用户openId 成功返回结果 -type TaobaoKoubeiTribeOpenUserQueryResponse struct { - XMLName xml.Name `xml:"koubei_tribe_open_user_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoKoubeiTribeOpenUserQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/user/TaobaoKoubeiTribeOpenVerifyCodeApplyAPIRequest.go b/model/user/TaobaoKoubeiTribeOpenVerifyCodeApplyAPIRequest.go new file mode 100644 index 0000000000..e52271535e --- /dev/null +++ b/model/user/TaobaoKoubeiTribeOpenVerifyCodeApplyAPIRequest.go @@ -0,0 +1,66 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +口碑综合体手机号获取验证码 API请求 +taobao.koubei.tribe.open.verify.code.apply + +口碑综合体通过手机号获取验证码对外开放接口 +*/ +type TaobaoKoubeiTribeOpenVerifyCodeApplyAPIRequest struct { + model.Params + // 数据集id + _dataSetId string + // 手机号 + _phone string +} + +// 初始化TaobaoKoubeiTribeOpenVerifyCodeApplyAPIRequest对象 +func NewTaobaoKoubeiTribeOpenVerifyCodeApplyRequest() *TaobaoKoubeiTribeOpenVerifyCodeApplyAPIRequest{ + return &TaobaoKoubeiTribeOpenVerifyCodeApplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoKoubeiTribeOpenVerifyCodeApplyAPIRequest) GetApiMethodName() string { + return "taobao.koubei.tribe.open.verify.code.apply" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoKoubeiTribeOpenVerifyCodeApplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DataSetId Setter +// 数据集id +func (r *TaobaoKoubeiTribeOpenVerifyCodeApplyAPIRequest) SetDataSetId(_dataSetId string) error { + r._dataSetId = _dataSetId + r.Set("data_set_id", _dataSetId) + return nil +} + +// DataSetId Getter +func (r TaobaoKoubeiTribeOpenVerifyCodeApplyAPIRequest) GetDataSetId() string { + return r._dataSetId +} +// Phone Setter +// 手机号 +func (r *TaobaoKoubeiTribeOpenVerifyCodeApplyAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r TaobaoKoubeiTribeOpenVerifyCodeApplyAPIRequest) GetPhone() string { + return r._phone +} diff --git a/model/user/TaobaoKoubeiTribeOpenVerifyCodeApplyAPIResponse.go b/model/user/TaobaoKoubeiTribeOpenVerifyCodeApplyAPIResponse.go new file mode 100644 index 0000000000..1c3d02fad0 --- /dev/null +++ b/model/user/TaobaoKoubeiTribeOpenVerifyCodeApplyAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +口碑综合体手机号获取验证码 API返回值 +taobao.koubei.tribe.open.verify.code.apply + +口碑综合体通过手机号获取验证码对外开放接口 +*/ +type TaobaoKoubeiTribeOpenVerifyCodeApplyAPIResponse struct { + model.CommonResponse + TaobaoKoubeiTribeOpenVerifyCodeApplyAPIResponseModel +} + +// 口碑综合体手机号获取验证码 成功返回结果 +type TaobaoKoubeiTribeOpenVerifyCodeApplyAPIResponseModel struct { + XMLName xml.Name `xml:"koubei_tribe_open_verify_code_apply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoKoubeiTribeOpenVerifyCodeApplyResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/user/TaobaoKoubeiTribeOpenVerifyCodeApplyResponse.go b/model/user/TaobaoKoubeiTribeOpenVerifyCodeApplyResponse.go deleted file mode 100644 index 9687d3ac8a..0000000000 --- a/model/user/TaobaoKoubeiTribeOpenVerifyCodeApplyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -口碑综合体手机号获取验证码 API返回值 -taobao.koubei.tribe.open.verify.code.apply - -口碑综合体通过手机号获取验证码对外开放接口 -*/ -type TaobaoKoubeiTribeOpenVerifyCodeApplyAPIResponse struct { - model.CommonResponse - TaobaoKoubeiTribeOpenVerifyCodeApplyResponse -} - -// 口碑综合体手机号获取验证码 成功返回结果 -type TaobaoKoubeiTribeOpenVerifyCodeApplyResponse struct { - XMLName xml.Name `xml:"koubei_tribe_open_verify_code_apply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoKoubeiTribeOpenVerifyCodeApplyResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/user/TaobaoLarkPosItemprodFindterminalAPIRequest.go b/model/user/TaobaoLarkPosItemprodFindterminalAPIRequest.go new file mode 100644 index 0000000000..c46b6feb45 --- /dev/null +++ b/model/user/TaobaoLarkPosItemprodFindterminalAPIRequest.go @@ -0,0 +1,122 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +终端配置支持 API请求 +taobao.lark.pos.itemprod.findterminal + +终端配置支持,读取如果不存在则创建和远程的连接配置并返回 +*/ +type TaobaoLarkPosItemprodFindterminalAPIRequest struct { + model.Params + // 终端id + _deviceId string + // 终端类型 + _deviceType string + // 912874323429834 + _createUser string + // 租户编码 + _leaseCode string + // 影城id + _cinemaId string + // 影城名称 + _cinemaName string +} + +// 初始化TaobaoLarkPosItemprodFindterminalAPIRequest对象 +func NewTaobaoLarkPosItemprodFindterminalRequest() *TaobaoLarkPosItemprodFindterminalAPIRequest{ + return &TaobaoLarkPosItemprodFindterminalAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoLarkPosItemprodFindterminalAPIRequest) GetApiMethodName() string { + return "taobao.lark.pos.itemprod.findterminal" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoLarkPosItemprodFindterminalAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceId Setter +// 终端id +func (r *TaobaoLarkPosItemprodFindterminalAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r TaobaoLarkPosItemprodFindterminalAPIRequest) GetDeviceId() string { + return r._deviceId +} +// DeviceType Setter +// 终端类型 +func (r *TaobaoLarkPosItemprodFindterminalAPIRequest) SetDeviceType(_deviceType string) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r TaobaoLarkPosItemprodFindterminalAPIRequest) GetDeviceType() string { + return r._deviceType +} +// CreateUser Setter +// 912874323429834 +func (r *TaobaoLarkPosItemprodFindterminalAPIRequest) SetCreateUser(_createUser string) error { + r._createUser = _createUser + r.Set("create_user", _createUser) + return nil +} + +// CreateUser Getter +func (r TaobaoLarkPosItemprodFindterminalAPIRequest) GetCreateUser() string { + return r._createUser +} +// LeaseCode Setter +// 租户编码 +func (r *TaobaoLarkPosItemprodFindterminalAPIRequest) SetLeaseCode(_leaseCode string) error { + r._leaseCode = _leaseCode + r.Set("lease_code", _leaseCode) + return nil +} + +// LeaseCode Getter +func (r TaobaoLarkPosItemprodFindterminalAPIRequest) GetLeaseCode() string { + return r._leaseCode +} +// CinemaId Setter +// 影城id +func (r *TaobaoLarkPosItemprodFindterminalAPIRequest) SetCinemaId(_cinemaId string) error { + r._cinemaId = _cinemaId + r.Set("cinema_id", _cinemaId) + return nil +} + +// CinemaId Getter +func (r TaobaoLarkPosItemprodFindterminalAPIRequest) GetCinemaId() string { + return r._cinemaId +} +// CinemaName Setter +// 影城名称 +func (r *TaobaoLarkPosItemprodFindterminalAPIRequest) SetCinemaName(_cinemaName string) error { + r._cinemaName = _cinemaName + r.Set("cinema_name", _cinemaName) + return nil +} + +// CinemaName Getter +func (r TaobaoLarkPosItemprodFindterminalAPIRequest) GetCinemaName() string { + return r._cinemaName +} diff --git a/model/user/TaobaoLarkPosItemprodFindterminalAPIResponse.go b/model/user/TaobaoLarkPosItemprodFindterminalAPIResponse.go new file mode 100644 index 0000000000..da201e56e4 --- /dev/null +++ b/model/user/TaobaoLarkPosItemprodFindterminalAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +终端配置支持 API返回值 +taobao.lark.pos.itemprod.findterminal + +终端配置支持,读取如果不存在则创建和远程的连接配置并返回 +*/ +type TaobaoLarkPosItemprodFindterminalAPIResponse struct { + model.CommonResponse + TaobaoLarkPosItemprodFindterminalAPIResponseModel +} + +// 终端配置支持 成功返回结果 +type TaobaoLarkPosItemprodFindterminalAPIResponseModel struct { + XMLName xml.Name `xml:"lark_pos_itemprod_findterminal_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 终端配置信息响应 + Data string `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/user/TaobaoLarkPosItemprodFindterminalResponse.go b/model/user/TaobaoLarkPosItemprodFindterminalResponse.go deleted file mode 100644 index 5e8205f32a..0000000000 --- a/model/user/TaobaoLarkPosItemprodFindterminalResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -终端配置支持 API返回值 -taobao.lark.pos.itemprod.findterminal - -终端配置支持,读取如果不存在则创建和远程的连接配置并返回 -*/ -type TaobaoLarkPosItemprodFindterminalAPIResponse struct { - model.CommonResponse - TaobaoLarkPosItemprodFindterminalResponse -} - -// 终端配置支持 成功返回结果 -type TaobaoLarkPosItemprodFindterminalResponse struct { - XMLName xml.Name `xml:"lark_pos_itemprod_findterminal_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 终端配置信息响应 - Data string `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/user/TaobaoMessageaccountMesssageMassSendAPIRequest.go b/model/user/TaobaoMessageaccountMesssageMassSendAPIRequest.go new file mode 100644 index 0000000000..a9f7a038cf --- /dev/null +++ b/model/user/TaobaoMessageaccountMesssageMassSendAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +消息号开放-消息群发 API请求 +taobao.messageaccount.messsage.mass.send + +外部 isv 调用该进口来进行消息号消息的群发 +*/ +type TaobaoMessageaccountMesssageMassSendAPIRequest struct { + model.Params + // 参数 + _param *MassMessageDto +} + +// 初始化TaobaoMessageaccountMesssageMassSendAPIRequest对象 +func NewTaobaoMessageaccountMesssageMassSendRequest() *TaobaoMessageaccountMesssageMassSendAPIRequest{ + return &TaobaoMessageaccountMesssageMassSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMessageaccountMesssageMassSendAPIRequest) GetApiMethodName() string { + return "taobao.messageaccount.messsage.mass.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMessageaccountMesssageMassSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 参数 +func (r *TaobaoMessageaccountMesssageMassSendAPIRequest) SetParam(_param *MassMessageDto) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r TaobaoMessageaccountMesssageMassSendAPIRequest) GetParam() *MassMessageDto { + return r._param +} diff --git a/model/user/TaobaoMessageaccountMesssageMassSendAPIResponse.go b/model/user/TaobaoMessageaccountMesssageMassSendAPIResponse.go new file mode 100644 index 0000000000..1e65c132fd --- /dev/null +++ b/model/user/TaobaoMessageaccountMesssageMassSendAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +消息号开放-消息群发 API返回值 +taobao.messageaccount.messsage.mass.send + +外部 isv 调用该进口来进行消息号消息的群发 +*/ +type TaobaoMessageaccountMesssageMassSendAPIResponse struct { + model.CommonResponse + TaobaoMessageaccountMesssageMassSendAPIResponseModel +} + +// 消息号开放-消息群发 成功返回结果 +type TaobaoMessageaccountMesssageMassSendAPIResponseModel struct { + XMLName xml.Name `xml:"messageaccount_messsage_mass_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoMessageaccountMesssageMassSendResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/user/TaobaoMessageaccountMesssageMassSendResponse.go b/model/user/TaobaoMessageaccountMesssageMassSendResponse.go deleted file mode 100644 index db387b9875..0000000000 --- a/model/user/TaobaoMessageaccountMesssageMassSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -消息号开放-消息群发 API返回值 -taobao.messageaccount.messsage.mass.send - -外部 isv 调用该进口来进行消息号消息的群发 -*/ -type TaobaoMessageaccountMesssageMassSendAPIResponse struct { - model.CommonResponse - TaobaoMessageaccountMesssageMassSendResponse -} - -// 消息号开放-消息群发 成功返回结果 -type TaobaoMessageaccountMesssageMassSendResponse struct { - XMLName xml.Name `xml:"messageaccount_messsage_mass_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoMessageaccountMesssageMassSendResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/user/TaobaoMessageaccountMesssageNormalSendAPIRequest.go b/model/user/TaobaoMessageaccountMesssageNormalSendAPIRequest.go new file mode 100644 index 0000000000..f1adfc8d95 --- /dev/null +++ b/model/user/TaobaoMessageaccountMesssageNormalSendAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +下行普通消息 API请求 +taobao.messageaccount.messsage.normal.send + +消息号下行单个普通消息 +*/ +type TaobaoMessageaccountMesssageNormalSendAPIRequest struct { + model.Params + // 下行普通消息 + _param *NormalMessageDto +} + +// 初始化TaobaoMessageaccountMesssageNormalSendAPIRequest对象 +func NewTaobaoMessageaccountMesssageNormalSendRequest() *TaobaoMessageaccountMesssageNormalSendAPIRequest{ + return &TaobaoMessageaccountMesssageNormalSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMessageaccountMesssageNormalSendAPIRequest) GetApiMethodName() string { + return "taobao.messageaccount.messsage.normal.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMessageaccountMesssageNormalSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 下行普通消息 +func (r *TaobaoMessageaccountMesssageNormalSendAPIRequest) SetParam(_param *NormalMessageDto) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r TaobaoMessageaccountMesssageNormalSendAPIRequest) GetParam() *NormalMessageDto { + return r._param +} diff --git a/model/user/TaobaoMessageaccountMesssageNormalSendAPIResponse.go b/model/user/TaobaoMessageaccountMesssageNormalSendAPIResponse.go new file mode 100644 index 0000000000..652521da93 --- /dev/null +++ b/model/user/TaobaoMessageaccountMesssageNormalSendAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +下行普通消息 API返回值 +taobao.messageaccount.messsage.normal.send + +消息号下行单个普通消息 +*/ +type TaobaoMessageaccountMesssageNormalSendAPIResponse struct { + model.CommonResponse + TaobaoMessageaccountMesssageNormalSendAPIResponseModel +} + +// 下行普通消息 成功返回结果 +type TaobaoMessageaccountMesssageNormalSendAPIResponseModel struct { + XMLName xml.Name `xml:"messageaccount_messsage_normal_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // model + Model string `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/user/TaobaoMessageaccountMesssageNormalSendResponse.go b/model/user/TaobaoMessageaccountMesssageNormalSendResponse.go deleted file mode 100644 index 3ebaee4aa5..0000000000 --- a/model/user/TaobaoMessageaccountMesssageNormalSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -下行普通消息 API返回值 -taobao.messageaccount.messsage.normal.send - -消息号下行单个普通消息 -*/ -type TaobaoMessageaccountMesssageNormalSendAPIResponse struct { - model.CommonResponse - TaobaoMessageaccountMesssageNormalSendResponse -} - -// 下行普通消息 成功返回结果 -type TaobaoMessageaccountMesssageNormalSendResponse struct { - XMLName xml.Name `xml:"messageaccount_messsage_normal_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // model - Model string `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/user/TaobaoMessageaccountMesssageReplyAPIRequest.go b/model/user/TaobaoMessageaccountMesssageReplyAPIRequest.go new file mode 100644 index 0000000000..809182b8f5 --- /dev/null +++ b/model/user/TaobaoMessageaccountMesssageReplyAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +消息号下行回复接口 API请求 +taobao.messageaccount.messsage.reply + +外部 isv 调用该进口来进行消息号消息的回复 +*/ +type TaobaoMessageaccountMesssageReplyAPIRequest struct { + model.Params + // 入参 + _param0 *ReplyMessageDto +} + +// 初始化TaobaoMessageaccountMesssageReplyAPIRequest对象 +func NewTaobaoMessageaccountMesssageReplyRequest() *TaobaoMessageaccountMesssageReplyAPIRequest{ + return &TaobaoMessageaccountMesssageReplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMessageaccountMesssageReplyAPIRequest) GetApiMethodName() string { + return "taobao.messageaccount.messsage.reply" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMessageaccountMesssageReplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 入参 +func (r *TaobaoMessageaccountMesssageReplyAPIRequest) SetParam0(_param0 *ReplyMessageDto) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoMessageaccountMesssageReplyAPIRequest) GetParam0() *ReplyMessageDto { + return r._param0 +} diff --git a/model/user/TaobaoMessageaccountMesssageReplyAPIResponse.go b/model/user/TaobaoMessageaccountMesssageReplyAPIResponse.go new file mode 100644 index 0000000000..0e950dcafe --- /dev/null +++ b/model/user/TaobaoMessageaccountMesssageReplyAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +消息号下行回复接口 API返回值 +taobao.messageaccount.messsage.reply + +外部 isv 调用该进口来进行消息号消息的回复 +*/ +type TaobaoMessageaccountMesssageReplyAPIResponse struct { + model.CommonResponse + TaobaoMessageaccountMesssageReplyAPIResponseModel +} + +// 消息号下行回复接口 成功返回结果 +type TaobaoMessageaccountMesssageReplyAPIResponseModel struct { + XMLName xml.Name `xml:"messageaccount_messsage_reply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoMessageaccountMesssageReplyResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/user/TaobaoMessageaccountMesssageReplyResponse.go b/model/user/TaobaoMessageaccountMesssageReplyResponse.go deleted file mode 100644 index 818b3c4167..0000000000 --- a/model/user/TaobaoMessageaccountMesssageReplyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -消息号下行回复接口 API返回值 -taobao.messageaccount.messsage.reply - -外部 isv 调用该进口来进行消息号消息的回复 -*/ -type TaobaoMessageaccountMesssageReplyAPIResponse struct { - model.CommonResponse - TaobaoMessageaccountMesssageReplyResponse -} - -// 消息号下行回复接口 成功返回结果 -type TaobaoMessageaccountMesssageReplyResponse struct { - XMLName xml.Name `xml:"messageaccount_messsage_reply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoMessageaccountMesssageReplyResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/user/TaobaoMiniappEleuserPhoneGetAPIRequest.go b/model/user/TaobaoMiniappEleuserPhoneGetAPIRequest.go new file mode 100644 index 0000000000..54f85774b0 --- /dev/null +++ b/model/user/TaobaoMiniappEleuserPhoneGetAPIRequest.go @@ -0,0 +1,38 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取饿了么用户信息 API请求 +taobao.miniapp.eleuser.phone.get + +获取饿了么用户信息 +*/ +type TaobaoMiniappEleuserPhoneGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoMiniappEleuserPhoneGetAPIRequest对象 +func NewTaobaoMiniappEleuserPhoneGetRequest() *TaobaoMiniappEleuserPhoneGetAPIRequest{ + return &TaobaoMiniappEleuserPhoneGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappEleuserPhoneGetAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.eleuser.phone.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappEleuserPhoneGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/user/TaobaoMiniappEleuserPhoneGetAPIResponse.go b/model/user/TaobaoMiniappEleuserPhoneGetAPIResponse.go new file mode 100644 index 0000000000..6ddfecf624 --- /dev/null +++ b/model/user/TaobaoMiniappEleuserPhoneGetAPIResponse.go @@ -0,0 +1,29 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取饿了么用户信息 API返回值 +taobao.miniapp.eleuser.phone.get + +获取饿了么用户信息 +*/ +type TaobaoMiniappEleuserPhoneGetAPIResponse struct { + model.CommonResponse + TaobaoMiniappEleuserPhoneGetAPIResponseModel +} + +// 获取饿了么用户信息 成功返回结果 +type TaobaoMiniappEleuserPhoneGetAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_eleuser_phone_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象 + Result *EleUicInfo `json:"result,omitempty" xml:"result,omitempty"` + // traceId + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` +} diff --git a/model/user/TaobaoMiniappEleuserPhoneGetResponse.go b/model/user/TaobaoMiniappEleuserPhoneGetResponse.go deleted file mode 100644 index 0d716031f1..0000000000 --- a/model/user/TaobaoMiniappEleuserPhoneGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取饿了么用户信息 API返回值 -taobao.miniapp.eleuser.phone.get - -获取饿了么用户信息 -*/ -type TaobaoMiniappEleuserPhoneGetAPIResponse struct { - model.CommonResponse - TaobaoMiniappEleuserPhoneGetResponse -} - -// 获取饿了么用户信息 成功返回结果 -type TaobaoMiniappEleuserPhoneGetResponse struct { - XMLName xml.Name `xml:"miniapp_eleuser_phone_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象 - Result *EleUicInfo `json:"result,omitempty" xml:"result,omitempty"` - // traceId - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` -} diff --git a/model/user/TaobaoMiniappEleuserinfoGetAPIRequest.go b/model/user/TaobaoMiniappEleuserinfoGetAPIRequest.go new file mode 100644 index 0000000000..200545f0b7 --- /dev/null +++ b/model/user/TaobaoMiniappEleuserinfoGetAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取饿了么用户信息 API请求 +taobao.miniapp.eleuserinfo.get + +获取饿了么用户信息 +*/ +type TaobaoMiniappEleuserinfoGetAPIRequest struct { + model.Params + // 怪兽业务方 + _bizScence string +} + +// 初始化TaobaoMiniappEleuserinfoGetAPIRequest对象 +func NewTaobaoMiniappEleuserinfoGetRequest() *TaobaoMiniappEleuserinfoGetAPIRequest{ + return &TaobaoMiniappEleuserinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappEleuserinfoGetAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.eleuserinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappEleuserinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizScence Setter +// 怪兽业务方 +func (r *TaobaoMiniappEleuserinfoGetAPIRequest) SetBizScence(_bizScence string) error { + r._bizScence = _bizScence + r.Set("biz_scence", _bizScence) + return nil +} + +// BizScence Getter +func (r TaobaoMiniappEleuserinfoGetAPIRequest) GetBizScence() string { + return r._bizScence +} diff --git a/model/user/TaobaoMiniappEleuserinfoGetAPIResponse.go b/model/user/TaobaoMiniappEleuserinfoGetAPIResponse.go new file mode 100644 index 0000000000..83e6e3f39c --- /dev/null +++ b/model/user/TaobaoMiniappEleuserinfoGetAPIResponse.go @@ -0,0 +1,29 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取饿了么用户信息 API返回值 +taobao.miniapp.eleuserinfo.get + +获取饿了么用户信息 +*/ +type TaobaoMiniappEleuserinfoGetAPIResponse struct { + model.CommonResponse + TaobaoMiniappEleuserinfoGetAPIResponseModel +} + +// 获取饿了么用户信息 成功返回结果 +type TaobaoMiniappEleuserinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_eleuserinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // traceId + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 1 + Result *EleUicInfo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/user/TaobaoMiniappEleuserinfoGetResponse.go b/model/user/TaobaoMiniappEleuserinfoGetResponse.go deleted file mode 100644 index 528a680e7d..0000000000 --- a/model/user/TaobaoMiniappEleuserinfoGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取饿了么用户信息 API返回值 -taobao.miniapp.eleuserinfo.get - -获取饿了么用户信息 -*/ -type TaobaoMiniappEleuserinfoGetAPIResponse struct { - model.CommonResponse - TaobaoMiniappEleuserinfoGetResponse -} - -// 获取饿了么用户信息 成功返回结果 -type TaobaoMiniappEleuserinfoGetResponse struct { - XMLName xml.Name `xml:"miniapp_eleuserinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // traceId - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 1 - Result *EleUicInfo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/user/TaobaoMiniappMesssageNormalSendAPIRequest.go b/model/user/TaobaoMiniappMesssageNormalSendAPIRequest.go new file mode 100644 index 0000000000..d227a9e9f7 --- /dev/null +++ b/model/user/TaobaoMiniappMesssageNormalSendAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +轻店铺下行普通消息给用户 API请求 +taobao.miniapp.messsage.normal.send + +小程序下行单个普通消息 +*/ +type TaobaoMiniappMesssageNormalSendAPIRequest struct { + model.Params + // 普通消息结构 + _param *DownNormalMessageDto +} + +// 初始化TaobaoMiniappMesssageNormalSendAPIRequest对象 +func NewTaobaoMiniappMesssageNormalSendRequest() *TaobaoMiniappMesssageNormalSendAPIRequest{ + return &TaobaoMiniappMesssageNormalSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappMesssageNormalSendAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.messsage.normal.send" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappMesssageNormalSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 普通消息结构 +func (r *TaobaoMiniappMesssageNormalSendAPIRequest) SetParam(_param *DownNormalMessageDto) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r TaobaoMiniappMesssageNormalSendAPIRequest) GetParam() *DownNormalMessageDto { + return r._param +} diff --git a/model/user/TaobaoMiniappMesssageNormalSendAPIResponse.go b/model/user/TaobaoMiniappMesssageNormalSendAPIResponse.go new file mode 100644 index 0000000000..f06ddc213f --- /dev/null +++ b/model/user/TaobaoMiniappMesssageNormalSendAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +轻店铺下行普通消息给用户 API返回值 +taobao.miniapp.messsage.normal.send + +小程序下行单个普通消息 +*/ +type TaobaoMiniappMesssageNormalSendAPIResponse struct { + model.CommonResponse + TaobaoMiniappMesssageNormalSendAPIResponseModel +} + +// 轻店铺下行普通消息给用户 成功返回结果 +type TaobaoMiniappMesssageNormalSendAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_messsage_normal_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回消息Id + Model string `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/user/TaobaoMiniappMesssageNormalSendResponse.go b/model/user/TaobaoMiniappMesssageNormalSendResponse.go deleted file mode 100644 index 11f839b236..0000000000 --- a/model/user/TaobaoMiniappMesssageNormalSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -轻店铺下行普通消息给用户 API返回值 -taobao.miniapp.messsage.normal.send - -小程序下行单个普通消息 -*/ -type TaobaoMiniappMesssageNormalSendAPIResponse struct { - model.CommonResponse - TaobaoMiniappMesssageNormalSendResponse -} - -// 轻店铺下行普通消息给用户 成功返回结果 -type TaobaoMiniappMesssageNormalSendResponse struct { - XMLName xml.Name `xml:"miniapp_messsage_normal_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回消息Id - Model string `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/user/TaobaoMiniappMesssageReplyAPIRequest.go b/model/user/TaobaoMiniappMesssageReplyAPIRequest.go new file mode 100644 index 0000000000..74479c8168 --- /dev/null +++ b/model/user/TaobaoMiniappMesssageReplyAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +轻店铺下行回复接口 API请求 +taobao.miniapp.messsage.reply + +外部 isv 调用该进口来进行轻店铺消息的回复 +*/ +type TaobaoMiniappMesssageReplyAPIRequest struct { + model.Params + // 入参 + _param *ReplyMessageDto +} + +// 初始化TaobaoMiniappMesssageReplyAPIRequest对象 +func NewTaobaoMiniappMesssageReplyRequest() *TaobaoMiniappMesssageReplyAPIRequest{ + return &TaobaoMiniappMesssageReplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappMesssageReplyAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.messsage.reply" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappMesssageReplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *TaobaoMiniappMesssageReplyAPIRequest) SetParam(_param *ReplyMessageDto) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r TaobaoMiniappMesssageReplyAPIRequest) GetParam() *ReplyMessageDto { + return r._param +} diff --git a/model/user/TaobaoMiniappMesssageReplyAPIResponse.go b/model/user/TaobaoMiniappMesssageReplyAPIResponse.go new file mode 100644 index 0000000000..ce0355c030 --- /dev/null +++ b/model/user/TaobaoMiniappMesssageReplyAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +轻店铺下行回复接口 API返回值 +taobao.miniapp.messsage.reply + +外部 isv 调用该进口来进行轻店铺消息的回复 +*/ +type TaobaoMiniappMesssageReplyAPIResponse struct { + model.CommonResponse + TaobaoMiniappMesssageReplyAPIResponseModel +} + +// 轻店铺下行回复接口 成功返回结果 +type TaobaoMiniappMesssageReplyAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_messsage_reply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoMiniappMesssageReplyResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/user/TaobaoMiniappMesssageReplyResponse.go b/model/user/TaobaoMiniappMesssageReplyResponse.go deleted file mode 100644 index 6187c8b2a7..0000000000 --- a/model/user/TaobaoMiniappMesssageReplyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -轻店铺下行回复接口 API返回值 -taobao.miniapp.messsage.reply - -外部 isv 调用该进口来进行轻店铺消息的回复 -*/ -type TaobaoMiniappMesssageReplyAPIResponse struct { - model.CommonResponse - TaobaoMiniappMesssageReplyResponse -} - -// 轻店铺下行回复接口 成功返回结果 -type TaobaoMiniappMesssageReplyResponse struct { - XMLName xml.Name `xml:"miniapp_messsage_reply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoMiniappMesssageReplyResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/user/TaobaoMiniappUserInfoGetAPIRequest.go b/model/user/TaobaoMiniappUserInfoGetAPIRequest.go new file mode 100644 index 0000000000..4273a57dfb --- /dev/null +++ b/model/user/TaobaoMiniappUserInfoGetAPIRequest.go @@ -0,0 +1,38 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户开放信息获取 API请求 +taobao.miniapp.userInfo.get + +获取用户的 openId,snsNick(如果用户设置过的话),和加密头像链接 +*/ +type TaobaoMiniappUserInfoGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoMiniappUserInfoGetAPIRequest对象 +func NewTaobaoMiniappUserInfoGetRequest() *TaobaoMiniappUserInfoGetAPIRequest{ + return &TaobaoMiniappUserInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappUserInfoGetAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.userInfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappUserInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/user/TaobaoMiniappUserInfoGetAPIResponse.go b/model/user/TaobaoMiniappUserInfoGetAPIResponse.go new file mode 100644 index 0000000000..72fdf37924 --- /dev/null +++ b/model/user/TaobaoMiniappUserInfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户开放信息获取 API返回值 +taobao.miniapp.userInfo.get + +获取用户的 openId,snsNick(如果用户设置过的话),和加密头像链接 +*/ +type TaobaoMiniappUserInfoGetAPIResponse struct { + model.CommonResponse + TaobaoMiniappUserInfoGetAPIResponseModel +} + +// 用户开放信息获取 成功返回结果 +type TaobaoMiniappUserInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_userInfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoMiniappUserInfoGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/user/TaobaoMiniappUserInfoGetResponse.go b/model/user/TaobaoMiniappUserInfoGetResponse.go deleted file mode 100644 index cd3307d709..0000000000 --- a/model/user/TaobaoMiniappUserInfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户开放信息获取 API返回值 -taobao.miniapp.userInfo.get - -获取用户的 openId,snsNick(如果用户设置过的话),和加密头像链接 -*/ -type TaobaoMiniappUserInfoGetAPIResponse struct { - model.CommonResponse - TaobaoMiniappUserInfoGetResponse -} - -// 用户开放信息获取 成功返回结果 -type TaobaoMiniappUserInfoGetResponse struct { - XMLName xml.Name `xml:"miniapp_userInfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoMiniappUserInfoGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/user/TaobaoMiniappUserPhoneGetAPIRequest.go b/model/user/TaobaoMiniappUserPhoneGetAPIRequest.go new file mode 100644 index 0000000000..36504e6af7 --- /dev/null +++ b/model/user/TaobaoMiniappUserPhoneGetAPIRequest.go @@ -0,0 +1,38 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取当前授权用户手机号码 API请求 +taobao.miniapp.user.phone.get + +在商家应用中,获取当前授权用户手机号码 +*/ +type TaobaoMiniappUserPhoneGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoMiniappUserPhoneGetAPIRequest对象 +func NewTaobaoMiniappUserPhoneGetRequest() *TaobaoMiniappUserPhoneGetAPIRequest{ + return &TaobaoMiniappUserPhoneGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMiniappUserPhoneGetAPIRequest) GetApiMethodName() string { + return "taobao.miniapp.user.phone.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMiniappUserPhoneGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/user/TaobaoMiniappUserPhoneGetAPIResponse.go b/model/user/TaobaoMiniappUserPhoneGetAPIResponse.go new file mode 100644 index 0000000000..d4b158a7c5 --- /dev/null +++ b/model/user/TaobaoMiniappUserPhoneGetAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取当前授权用户手机号码 API返回值 +taobao.miniapp.user.phone.get + +在商家应用中,获取当前授权用户手机号码 +*/ +type TaobaoMiniappUserPhoneGetAPIResponse struct { + model.CommonResponse + TaobaoMiniappUserPhoneGetAPIResponseModel +} + +// 获取当前授权用户手机号码 成功返回结果 +type TaobaoMiniappUserPhoneGetAPIResponseModel struct { + XMLName xml.Name `xml:"miniapp_user_phone_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 用户手机号码 + Phone string `json:"phone,omitempty" xml:"phone,omitempty"` +} diff --git a/model/user/TaobaoMiniappUserPhoneGetResponse.go b/model/user/TaobaoMiniappUserPhoneGetResponse.go deleted file mode 100644 index 0c30e294ff..0000000000 --- a/model/user/TaobaoMiniappUserPhoneGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取当前授权用户手机号码 API返回值 -taobao.miniapp.user.phone.get - -在商家应用中,获取当前授权用户手机号码 -*/ -type TaobaoMiniappUserPhoneGetAPIResponse struct { - model.CommonResponse - TaobaoMiniappUserPhoneGetResponse -} - -// 获取当前授权用户手机号码 成功返回结果 -type TaobaoMiniappUserPhoneGetResponse struct { - XMLName xml.Name `xml:"miniapp_user_phone_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 用户手机号码 - Phone string `json:"phone,omitempty" xml:"phone,omitempty"` -} diff --git a/model/user/TaobaoMixnickChangeAPIRequest.go b/model/user/TaobaoMixnickChangeAPIRequest.go new file mode 100644 index 0000000000..111b33f516 --- /dev/null +++ b/model/user/TaobaoMixnickChangeAPIRequest.go @@ -0,0 +1,66 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新旧mixnick互转 API请求 +taobao.mixnick.change + +如果采用老的Appkey获取MixNick A’, 发现DB里 new MixNick为null,则使用新的Appkey调API来换取A’’;如果采用新的Appkey获取A’’,发现DB里不存在当前A’’ 的记录时,先用老Appkey调API得到A’ 查询是否存在A用户的记录,如果已经存在,则关联,否则新增一条MixNick为null的新用户记录。 +*/ +type TaobaoMixnickChangeAPIRequest struct { + model.Params + // 输入的混淆nick + _srcMixNick string + // 输入的appkey + _srcAppkey string +} + +// 初始化TaobaoMixnickChangeAPIRequest对象 +func NewTaobaoMixnickChangeRequest() *TaobaoMixnickChangeAPIRequest{ + return &TaobaoMixnickChangeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoMixnickChangeAPIRequest) GetApiMethodName() string { + return "taobao.mixnick.change" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoMixnickChangeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SrcMixNick Setter +// 输入的混淆nick +func (r *TaobaoMixnickChangeAPIRequest) SetSrcMixNick(_srcMixNick string) error { + r._srcMixNick = _srcMixNick + r.Set("src_mix_nick", _srcMixNick) + return nil +} + +// SrcMixNick Getter +func (r TaobaoMixnickChangeAPIRequest) GetSrcMixNick() string { + return r._srcMixNick +} +// SrcAppkey Setter +// 输入的appkey +func (r *TaobaoMixnickChangeAPIRequest) SetSrcAppkey(_srcAppkey string) error { + r._srcAppkey = _srcAppkey + r.Set("src_appkey", _srcAppkey) + return nil +} + +// SrcAppkey Getter +func (r TaobaoMixnickChangeAPIRequest) GetSrcAppkey() string { + return r._srcAppkey +} diff --git a/model/user/TaobaoMixnickChangeAPIResponse.go b/model/user/TaobaoMixnickChangeAPIResponse.go new file mode 100644 index 0000000000..400a66f758 --- /dev/null +++ b/model/user/TaobaoMixnickChangeAPIResponse.go @@ -0,0 +1,29 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新旧mixnick互转 API返回值 +taobao.mixnick.change + +如果采用老的Appkey获取MixNick A’, 发现DB里 new MixNick为null,则使用新的Appkey调API来换取A’’;如果采用新的Appkey获取A’’,发现DB里不存在当前A’’ 的记录时,先用老Appkey调API得到A’ 查询是否存在A用户的记录,如果已经存在,则关联,否则新增一条MixNick为null的新用户记录。 +*/ +type TaobaoMixnickChangeAPIResponse struct { + model.CommonResponse + TaobaoMixnickChangeAPIResponseModel +} + +// 新旧mixnick互转 成功返回结果 +type TaobaoMixnickChangeAPIResponseModel struct { + XMLName xml.Name `xml:"mixnick_change_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + RetSuccess bool `json:"ret_success,omitempty" xml:"ret_success,omitempty"` + // 根据dstAppkey算出的mixnick + Mixnick string `json:"mixnick,omitempty" xml:"mixnick,omitempty"` +} diff --git a/model/user/TaobaoMixnickChangeResponse.go b/model/user/TaobaoMixnickChangeResponse.go deleted file mode 100644 index f8505f2609..0000000000 --- a/model/user/TaobaoMixnickChangeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新旧mixnick互转 API返回值 -taobao.mixnick.change - -如果采用老的Appkey获取MixNick A’, 发现DB里 new MixNick为null,则使用新的Appkey调API来换取A’’;如果采用新的Appkey获取A’’,发现DB里不存在当前A’’ 的记录时,先用老Appkey调API得到A’ 查询是否存在A用户的记录,如果已经存在,则关联,否则新增一条MixNick为null的新用户记录。 -*/ -type TaobaoMixnickChangeAPIResponse struct { - model.CommonResponse - TaobaoMixnickChangeResponse -} - -// 新旧mixnick互转 成功返回结果 -type TaobaoMixnickChangeResponse struct { - XMLName xml.Name `xml:"mixnick_change_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - RetSuccess bool `json:"ret_success,omitempty" xml:"ret_success,omitempty"` - // 根据dstAppkey算出的mixnick - Mixnick string `json:"mixnick,omitempty" xml:"mixnick,omitempty"` -} diff --git a/model/user/TaobaoNewretailDivisionRecordListGetAPIRequest.go b/model/user/TaobaoNewretailDivisionRecordListGetAPIRequest.go new file mode 100644 index 0000000000..6b5f83ff6c --- /dev/null +++ b/model/user/TaobaoNewretailDivisionRecordListGetAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +导购分佣明细列表 API请求 +taobao.newretail.division.record.list.get + +提供分页查询导购分佣明细的能力 +*/ +type TaobaoNewretailDivisionRecordListGetAPIRequest struct { + model.Params + // 入参 + _param *TopDivisionRecordReqDto +} + +// 初始化TaobaoNewretailDivisionRecordListGetAPIRequest对象 +func NewTaobaoNewretailDivisionRecordListGetRequest() *TaobaoNewretailDivisionRecordListGetAPIRequest{ + return &TaobaoNewretailDivisionRecordListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoNewretailDivisionRecordListGetAPIRequest) GetApiMethodName() string { + return "taobao.newretail.division.record.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoNewretailDivisionRecordListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *TaobaoNewretailDivisionRecordListGetAPIRequest) SetParam(_param *TopDivisionRecordReqDto) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r TaobaoNewretailDivisionRecordListGetAPIRequest) GetParam() *TopDivisionRecordReqDto { + return r._param +} diff --git a/model/user/TaobaoNewretailDivisionRecordListGetAPIResponse.go b/model/user/TaobaoNewretailDivisionRecordListGetAPIResponse.go new file mode 100644 index 0000000000..2a1246e6e8 --- /dev/null +++ b/model/user/TaobaoNewretailDivisionRecordListGetAPIResponse.go @@ -0,0 +1,43 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +导购分佣明细列表 API返回值 +taobao.newretail.division.record.list.get + +提供分页查询导购分佣明细的能力 +*/ +type TaobaoNewretailDivisionRecordListGetAPIResponse struct { + model.CommonResponse + TaobaoNewretailDivisionRecordListGetAPIResponseModel +} + +// 导购分佣明细列表 成功返回结果 +type TaobaoNewretailDivisionRecordListGetAPIResponseModel struct { + XMLName xml.Name `xml:"newretail_division_record_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否有上一页 + HasPrevPage bool `json:"has_prev_page,omitempty" xml:"has_prev_page,omitempty"` + // 总数 + Total int64 `json:"total,omitempty" xml:"total,omitempty"` + // 返回代码 + ResCode string `json:"res_code,omitempty" xml:"res_code,omitempty"` + // 数据列表 + DataList []TaobaoNewretailDivisionRecordListGetT `json:"data_list,omitempty" xml:"data_list>taobao_newretail_division_record_list_get_t,omitempty"` + // 是否有下一页 + HasNextPage bool `json:"has_next_page,omitempty" xml:"has_next_page,omitempty"` + // 页码 + PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 每页数量 + PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` + // 具体返回讯息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/user/TaobaoNewretailDivisionRecordListGetResponse.go b/model/user/TaobaoNewretailDivisionRecordListGetResponse.go deleted file mode 100644 index deab2b44a1..0000000000 --- a/model/user/TaobaoNewretailDivisionRecordListGetResponse.go +++ /dev/null @@ -1,43 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -导购分佣明细列表 API返回值 -taobao.newretail.division.record.list.get - -提供分页查询导购分佣明细的能力 -*/ -type TaobaoNewretailDivisionRecordListGetAPIResponse struct { - model.CommonResponse - TaobaoNewretailDivisionRecordListGetResponse -} - -// 导购分佣明细列表 成功返回结果 -type TaobaoNewretailDivisionRecordListGetResponse struct { - XMLName xml.Name `xml:"newretail_division_record_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否有上一页 - HasPrevPage bool `json:"has_prev_page,omitempty" xml:"has_prev_page,omitempty"` - // 总数 - Total int64 `json:"total,omitempty" xml:"total,omitempty"` - // 返回代码 - ResCode string `json:"res_code,omitempty" xml:"res_code,omitempty"` - // 数据列表 - DataList []TaobaoNewretailDivisionRecordListGetT `json:"data_list,omitempty" xml:"data_list>taobao_newretail_division_record_list_get_t,omitempty"` - // 是否有下一页 - HasNextPage bool `json:"has_next_page,omitempty" xml:"has_next_page,omitempty"` - // 页码 - PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 每页数量 - PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` - // 具体返回讯息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/user/TaobaoOpenAccountCreateAPIRequest.go b/model/user/TaobaoOpenAccountCreateAPIRequest.go new file mode 100644 index 0000000000..ab7de33c5c --- /dev/null +++ b/model/user/TaobaoOpenAccountCreateAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Open Account导入数据 API请求 +taobao.open.account.create + +Open Account导入数据 +*/ +type TaobaoOpenAccountCreateAPIRequest struct { + model.Params + // Open Account的列表 + _paramList []OpenAccount +} + +// 初始化TaobaoOpenAccountCreateAPIRequest对象 +func NewTaobaoOpenAccountCreateRequest() *TaobaoOpenAccountCreateAPIRequest{ + return &TaobaoOpenAccountCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenAccountCreateAPIRequest) GetApiMethodName() string { + return "taobao.open.account.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenAccountCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamList Setter +// Open Account的列表 +func (r *TaobaoOpenAccountCreateAPIRequest) SetParamList(_paramList []OpenAccount) error { + r._paramList = _paramList + r.Set("param_list", _paramList) + return nil +} + +// ParamList Getter +func (r TaobaoOpenAccountCreateAPIRequest) GetParamList() []OpenAccount { + return r._paramList +} diff --git a/model/user/TaobaoOpenAccountCreateAPIResponse.go b/model/user/TaobaoOpenAccountCreateAPIResponse.go new file mode 100644 index 0000000000..08d4a03f03 --- /dev/null +++ b/model/user/TaobaoOpenAccountCreateAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Open Account导入数据 API返回值 +taobao.open.account.create + +Open Account导入数据 +*/ +type TaobaoOpenAccountCreateAPIResponse struct { + model.CommonResponse + TaobaoOpenAccountCreateAPIResponseModel +} + +// Open Account导入数据 成功返回结果 +type TaobaoOpenAccountCreateAPIResponseModel struct { + XMLName xml.Name `xml:"open_account_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 插入数据的Open Account Id的列表 + Datas []OpenaccountLong `json:"datas,omitempty" xml:"datas>openaccount_long,omitempty"` +} diff --git a/model/user/TaobaoOpenAccountCreateResponse.go b/model/user/TaobaoOpenAccountCreateResponse.go deleted file mode 100644 index 504fd310e9..0000000000 --- a/model/user/TaobaoOpenAccountCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Open Account导入数据 API返回值 -taobao.open.account.create - -Open Account导入数据 -*/ -type TaobaoOpenAccountCreateAPIResponse struct { - model.CommonResponse - TaobaoOpenAccountCreateResponse -} - -// Open Account导入数据 成功返回结果 -type TaobaoOpenAccountCreateResponse struct { - XMLName xml.Name `xml:"open_account_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 插入数据的Open Account Id的列表 - Datas []OpenaccountLong `json:"datas,omitempty" xml:"datas>openaccount_long,omitempty"` -} diff --git a/model/user/TaobaoOpenAccountDeleteAPIRequest.go b/model/user/TaobaoOpenAccountDeleteAPIRequest.go new file mode 100644 index 0000000000..6cc3ad0a55 --- /dev/null +++ b/model/user/TaobaoOpenAccountDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +OpenAccount删除数据 API请求 +taobao.open.account.delete + +OpenAccount删除数据 +*/ +type TaobaoOpenAccountDeleteAPIRequest struct { + model.Params + // Open Account的id列表 + _openAccountIds []int64 + // ISV自己账号的id列表 + _isvAccountIds []string +} + +// 初始化TaobaoOpenAccountDeleteAPIRequest对象 +func NewTaobaoOpenAccountDeleteRequest() *TaobaoOpenAccountDeleteAPIRequest{ + return &TaobaoOpenAccountDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenAccountDeleteAPIRequest) GetApiMethodName() string { + return "taobao.open.account.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenAccountDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenAccountIds Setter +// Open Account的id列表 +func (r *TaobaoOpenAccountDeleteAPIRequest) SetOpenAccountIds(_openAccountIds []int64) error { + r._openAccountIds = _openAccountIds + r.Set("open_account_ids", _openAccountIds) + return nil +} + +// OpenAccountIds Getter +func (r TaobaoOpenAccountDeleteAPIRequest) GetOpenAccountIds() []int64 { + return r._openAccountIds +} +// IsvAccountIds Setter +// ISV自己账号的id列表 +func (r *TaobaoOpenAccountDeleteAPIRequest) SetIsvAccountIds(_isvAccountIds []string) error { + r._isvAccountIds = _isvAccountIds + r.Set("isv_account_ids", _isvAccountIds) + return nil +} + +// IsvAccountIds Getter +func (r TaobaoOpenAccountDeleteAPIRequest) GetIsvAccountIds() []string { + return r._isvAccountIds +} diff --git a/model/user/TaobaoOpenAccountDeleteAPIResponse.go b/model/user/TaobaoOpenAccountDeleteAPIResponse.go new file mode 100644 index 0000000000..33be962cdd --- /dev/null +++ b/model/user/TaobaoOpenAccountDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +OpenAccount删除数据 API返回值 +taobao.open.account.delete + +OpenAccount删除数据 +*/ +type TaobaoOpenAccountDeleteAPIResponse struct { + model.CommonResponse + TaobaoOpenAccountDeleteAPIResponseModel +} + +// OpenAccount删除数据 成功返回结果 +type TaobaoOpenAccountDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"open_account_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 删除结果 + Datas []OpenaccountVoid `json:"datas,omitempty" xml:"datas>openaccount_void,omitempty"` +} diff --git a/model/user/TaobaoOpenAccountDeleteResponse.go b/model/user/TaobaoOpenAccountDeleteResponse.go deleted file mode 100644 index cf51fff173..0000000000 --- a/model/user/TaobaoOpenAccountDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -OpenAccount删除数据 API返回值 -taobao.open.account.delete - -OpenAccount删除数据 -*/ -type TaobaoOpenAccountDeleteAPIResponse struct { - model.CommonResponse - TaobaoOpenAccountDeleteResponse -} - -// OpenAccount删除数据 成功返回结果 -type TaobaoOpenAccountDeleteResponse struct { - XMLName xml.Name `xml:"open_account_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 删除结果 - Datas []OpenaccountVoid `json:"datas,omitempty" xml:"datas>openaccount_void,omitempty"` -} diff --git a/model/user/TaobaoOpenAccountIndexFindAPIRequest.go b/model/user/TaobaoOpenAccountIndexFindAPIRequest.go new file mode 100644 index 0000000000..d23ba56546 --- /dev/null +++ b/model/user/TaobaoOpenAccountIndexFindAPIRequest.go @@ -0,0 +1,66 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Open Account索引查询 API请求 +taobao.open.account.index.find + +Open Account索引查询 +*/ +type TaobaoOpenAccountIndexFindAPIRequest struct { + model.Params + // int MOBILE = 1;int EMAIL = 2;int ISV_ACCOUNT_ID = 3;int LOGIN_ID = 4;int OPEN_ID = 5; + _indexType int64 + // 具体值,当索引类型是 OPEN_ID 是,格式为 oauthPlatform|openId,即使用竖线分隔的组合值 + _indexValue string +} + +// 初始化TaobaoOpenAccountIndexFindAPIRequest对象 +func NewTaobaoOpenAccountIndexFindRequest() *TaobaoOpenAccountIndexFindAPIRequest{ + return &TaobaoOpenAccountIndexFindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenAccountIndexFindAPIRequest) GetApiMethodName() string { + return "taobao.open.account.index.find" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenAccountIndexFindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IndexType Setter +// int MOBILE = 1;int EMAIL = 2;int ISV_ACCOUNT_ID = 3;int LOGIN_ID = 4;int OPEN_ID = 5; +func (r *TaobaoOpenAccountIndexFindAPIRequest) SetIndexType(_indexType int64) error { + r._indexType = _indexType + r.Set("index_type", _indexType) + return nil +} + +// IndexType Getter +func (r TaobaoOpenAccountIndexFindAPIRequest) GetIndexType() int64 { + return r._indexType +} +// IndexValue Setter +// 具体值,当索引类型是 OPEN_ID 是,格式为 oauthPlatform|openId,即使用竖线分隔的组合值 +func (r *TaobaoOpenAccountIndexFindAPIRequest) SetIndexValue(_indexValue string) error { + r._indexValue = _indexValue + r.Set("index_value", _indexValue) + return nil +} + +// IndexValue Getter +func (r TaobaoOpenAccountIndexFindAPIRequest) GetIndexValue() string { + return r._indexValue +} diff --git a/model/user/TaobaoOpenAccountIndexFindAPIResponse.go b/model/user/TaobaoOpenAccountIndexFindAPIResponse.go new file mode 100644 index 0000000000..90ba640cff --- /dev/null +++ b/model/user/TaobaoOpenAccountIndexFindAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Open Account索引查询 API返回值 +taobao.open.account.index.find + +Open Account索引查询 +*/ +type TaobaoOpenAccountIndexFindAPIResponse struct { + model.CommonResponse + TaobaoOpenAccountIndexFindAPIResponseModel +} + +// Open Account索引查询 成功返回结果 +type TaobaoOpenAccountIndexFindAPIResponseModel struct { + XMLName xml.Name `xml:"open_account_index_find_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *OpenAccountResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/user/TaobaoOpenAccountIndexFindResponse.go b/model/user/TaobaoOpenAccountIndexFindResponse.go deleted file mode 100644 index a1c56638db..0000000000 --- a/model/user/TaobaoOpenAccountIndexFindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Open Account索引查询 API返回值 -taobao.open.account.index.find - -Open Account索引查询 -*/ -type TaobaoOpenAccountIndexFindAPIResponse struct { - model.CommonResponse - TaobaoOpenAccountIndexFindResponse -} - -// Open Account索引查询 成功返回结果 -type TaobaoOpenAccountIndexFindResponse struct { - XMLName xml.Name `xml:"open_account_index_find_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *OpenAccountResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/user/TaobaoOpenAccountListAPIRequest.go b/model/user/TaobaoOpenAccountListAPIRequest.go new file mode 100644 index 0000000000..ae71ba08ec --- /dev/null +++ b/model/user/TaobaoOpenAccountListAPIRequest.go @@ -0,0 +1,66 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +OpenAccount账号信息查询 API请求 +taobao.open.account.list + +OpenAccount账号信息查询 +*/ +type TaobaoOpenAccountListAPIRequest struct { + model.Params + // Open Account的id列表, 每次最多查询 20 个帐户 + _openAccountIds []int64 + // ISV自己账号的id列表,isvAccountId和openAccountId二选一必填, 每次最多查询 20 个帐户 + _isvAccountIds []string +} + +// 初始化TaobaoOpenAccountListAPIRequest对象 +func NewTaobaoOpenAccountListRequest() *TaobaoOpenAccountListAPIRequest{ + return &TaobaoOpenAccountListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenAccountListAPIRequest) GetApiMethodName() string { + return "taobao.open.account.list" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenAccountListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenAccountIds Setter +// Open Account的id列表, 每次最多查询 20 个帐户 +func (r *TaobaoOpenAccountListAPIRequest) SetOpenAccountIds(_openAccountIds []int64) error { + r._openAccountIds = _openAccountIds + r.Set("open_account_ids", _openAccountIds) + return nil +} + +// OpenAccountIds Getter +func (r TaobaoOpenAccountListAPIRequest) GetOpenAccountIds() []int64 { + return r._openAccountIds +} +// IsvAccountIds Setter +// ISV自己账号的id列表,isvAccountId和openAccountId二选一必填, 每次最多查询 20 个帐户 +func (r *TaobaoOpenAccountListAPIRequest) SetIsvAccountIds(_isvAccountIds []string) error { + r._isvAccountIds = _isvAccountIds + r.Set("isv_account_ids", _isvAccountIds) + return nil +} + +// IsvAccountIds Getter +func (r TaobaoOpenAccountListAPIRequest) GetIsvAccountIds() []string { + return r._isvAccountIds +} diff --git a/model/user/TaobaoOpenAccountListAPIResponse.go b/model/user/TaobaoOpenAccountListAPIResponse.go new file mode 100644 index 0000000000..c7b697476b --- /dev/null +++ b/model/user/TaobaoOpenAccountListAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +OpenAccount账号信息查询 API返回值 +taobao.open.account.list + +OpenAccount账号信息查询 +*/ +type TaobaoOpenAccountListAPIResponse struct { + model.CommonResponse + TaobaoOpenAccountListAPIResponseModel +} + +// OpenAccount账号信息查询 成功返回结果 +type TaobaoOpenAccountListAPIResponseModel struct { + XMLName xml.Name `xml:"open_account_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回信息 + Datas []OpenaccountObject `json:"datas,omitempty" xml:"datas>openaccount_object,omitempty"` +} diff --git a/model/user/TaobaoOpenAccountListResponse.go b/model/user/TaobaoOpenAccountListResponse.go deleted file mode 100644 index 9a33d92b7c..0000000000 --- a/model/user/TaobaoOpenAccountListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -OpenAccount账号信息查询 API返回值 -taobao.open.account.list - -OpenAccount账号信息查询 -*/ -type TaobaoOpenAccountListAPIResponse struct { - model.CommonResponse - TaobaoOpenAccountListResponse -} - -// OpenAccount账号信息查询 成功返回结果 -type TaobaoOpenAccountListResponse struct { - XMLName xml.Name `xml:"open_account_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回信息 - Datas []OpenaccountObject `json:"datas,omitempty" xml:"datas>openaccount_object,omitempty"` -} diff --git a/model/user/TaobaoOpenAccountSearchAPIRequest.go b/model/user/TaobaoOpenAccountSearchAPIRequest.go new file mode 100644 index 0000000000..b236609d92 --- /dev/null +++ b/model/user/TaobaoOpenAccountSearchAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +open account数据搜索 API请求 +taobao.open.account.search + +open account数据搜索 +*/ +type TaobaoOpenAccountSearchAPIRequest struct { + model.Params + // 基于阿里云OpenSearch服务,openSearch查询语法:https://help.aliyun.com/document_detail/29157.html,搜索服务能够基于id,loginId,mobile,email,isvAccountId,display_name,create_app_key,做搜索查询,示例中mobile可以基于模糊搜素,搜索135的账号,该搜索是分页返回,start表示开始行,hit表示一页返回值,最大500 + _query string +} + +// 初始化TaobaoOpenAccountSearchAPIRequest对象 +func NewTaobaoOpenAccountSearchRequest() *TaobaoOpenAccountSearchAPIRequest{ + return &TaobaoOpenAccountSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenAccountSearchAPIRequest) GetApiMethodName() string { + return "taobao.open.account.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenAccountSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 基于阿里云OpenSearch服务,openSearch查询语法:https://help.aliyun.com/document_detail/29157.html,搜索服务能够基于id,loginId,mobile,email,isvAccountId,display_name,create_app_key,做搜索查询,示例中mobile可以基于模糊搜素,搜索135的账号,该搜索是分页返回,start表示开始行,hit表示一页返回值,最大500 +func (r *TaobaoOpenAccountSearchAPIRequest) SetQuery(_query string) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r TaobaoOpenAccountSearchAPIRequest) GetQuery() string { + return r._query +} diff --git a/model/user/TaobaoOpenAccountSearchAPIResponse.go b/model/user/TaobaoOpenAccountSearchAPIResponse.go new file mode 100644 index 0000000000..35f7f231f6 --- /dev/null +++ b/model/user/TaobaoOpenAccountSearchAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +open account数据搜索 API返回值 +taobao.open.account.search + +open account数据搜索 +*/ +type TaobaoOpenAccountSearchAPIResponse struct { + model.CommonResponse + TaobaoOpenAccountSearchAPIResponseModel +} + +// open account数据搜索 成功返回结果 +type TaobaoOpenAccountSearchAPIResponseModel struct { + XMLName xml.Name `xml:"open_account_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Data *OpenAccountSearchResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/user/TaobaoOpenAccountSearchResponse.go b/model/user/TaobaoOpenAccountSearchResponse.go deleted file mode 100644 index 4a8c4d0d26..0000000000 --- a/model/user/TaobaoOpenAccountSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -open account数据搜索 API返回值 -taobao.open.account.search - -open account数据搜索 -*/ -type TaobaoOpenAccountSearchAPIResponse struct { - model.CommonResponse - TaobaoOpenAccountSearchResponse -} - -// open account数据搜索 成功返回结果 -type TaobaoOpenAccountSearchResponse struct { - XMLName xml.Name `xml:"open_account_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Data *OpenAccountSearchResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/user/TaobaoOpenAccountTokenApplyAPIRequest.go b/model/user/TaobaoOpenAccountTokenApplyAPIRequest.go new file mode 100644 index 0000000000..b333c022dd --- /dev/null +++ b/model/user/TaobaoOpenAccountTokenApplyAPIRequest.go @@ -0,0 +1,122 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +申请免登Open Account Token API请求 +taobao.open.account.token.apply + +申请免登Open Account Token +*/ +type TaobaoOpenAccountTokenApplyAPIRequest struct { + model.Params + // 时间戳单位是毫秒 + _tokenTimestamp int64 + // open account id + _openAccountId int64 + // isv自己账号的唯一id + _isvAccountId string + // 用于防重放的唯一id + _uuid string + // ISV APP的登录态时长单位是秒 + _loginStateExpireIn int64 + // 用于透传一些业务附加参数 + _ext string +} + +// 初始化TaobaoOpenAccountTokenApplyAPIRequest对象 +func NewTaobaoOpenAccountTokenApplyRequest() *TaobaoOpenAccountTokenApplyAPIRequest{ + return &TaobaoOpenAccountTokenApplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenAccountTokenApplyAPIRequest) GetApiMethodName() string { + return "taobao.open.account.token.apply" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenAccountTokenApplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TokenTimestamp Setter +// 时间戳单位是毫秒 +func (r *TaobaoOpenAccountTokenApplyAPIRequest) SetTokenTimestamp(_tokenTimestamp int64) error { + r._tokenTimestamp = _tokenTimestamp + r.Set("token_timestamp", _tokenTimestamp) + return nil +} + +// TokenTimestamp Getter +func (r TaobaoOpenAccountTokenApplyAPIRequest) GetTokenTimestamp() int64 { + return r._tokenTimestamp +} +// OpenAccountId Setter +// open account id +func (r *TaobaoOpenAccountTokenApplyAPIRequest) SetOpenAccountId(_openAccountId int64) error { + r._openAccountId = _openAccountId + r.Set("open_account_id", _openAccountId) + return nil +} + +// OpenAccountId Getter +func (r TaobaoOpenAccountTokenApplyAPIRequest) GetOpenAccountId() int64 { + return r._openAccountId +} +// IsvAccountId Setter +// isv自己账号的唯一id +func (r *TaobaoOpenAccountTokenApplyAPIRequest) SetIsvAccountId(_isvAccountId string) error { + r._isvAccountId = _isvAccountId + r.Set("isv_account_id", _isvAccountId) + return nil +} + +// IsvAccountId Getter +func (r TaobaoOpenAccountTokenApplyAPIRequest) GetIsvAccountId() string { + return r._isvAccountId +} +// Uuid Setter +// 用于防重放的唯一id +func (r *TaobaoOpenAccountTokenApplyAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r TaobaoOpenAccountTokenApplyAPIRequest) GetUuid() string { + return r._uuid +} +// LoginStateExpireIn Setter +// ISV APP的登录态时长单位是秒 +func (r *TaobaoOpenAccountTokenApplyAPIRequest) SetLoginStateExpireIn(_loginStateExpireIn int64) error { + r._loginStateExpireIn = _loginStateExpireIn + r.Set("login_state_expire_in", _loginStateExpireIn) + return nil +} + +// LoginStateExpireIn Getter +func (r TaobaoOpenAccountTokenApplyAPIRequest) GetLoginStateExpireIn() int64 { + return r._loginStateExpireIn +} +// Ext Setter +// 用于透传一些业务附加参数 +func (r *TaobaoOpenAccountTokenApplyAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoOpenAccountTokenApplyAPIRequest) GetExt() string { + return r._ext +} diff --git a/model/user/TaobaoOpenAccountTokenApplyAPIResponse.go b/model/user/TaobaoOpenAccountTokenApplyAPIResponse.go new file mode 100644 index 0000000000..0bea6bf3e4 --- /dev/null +++ b/model/user/TaobaoOpenAccountTokenApplyAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +申请免登Open Account Token API返回值 +taobao.open.account.token.apply + +申请免登Open Account Token +*/ +type TaobaoOpenAccountTokenApplyAPIResponse struct { + model.CommonResponse + TaobaoOpenAccountTokenApplyAPIResponseModel +} + +// 申请免登Open Account Token 成功返回结果 +type TaobaoOpenAccountTokenApplyAPIResponseModel struct { + XMLName xml.Name `xml:"open_account_token_apply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的token结果 + Data *OpenAccountTokenApplyResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/user/TaobaoOpenAccountTokenApplyResponse.go b/model/user/TaobaoOpenAccountTokenApplyResponse.go deleted file mode 100644 index b20b4df579..0000000000 --- a/model/user/TaobaoOpenAccountTokenApplyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -申请免登Open Account Token API返回值 -taobao.open.account.token.apply - -申请免登Open Account Token -*/ -type TaobaoOpenAccountTokenApplyAPIResponse struct { - model.CommonResponse - TaobaoOpenAccountTokenApplyResponse -} - -// 申请免登Open Account Token 成功返回结果 -type TaobaoOpenAccountTokenApplyResponse struct { - XMLName xml.Name `xml:"open_account_token_apply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的token结果 - Data *OpenAccountTokenApplyResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/user/TaobaoOpenAccountTokenValidateAPIRequest.go b/model/user/TaobaoOpenAccountTokenValidateAPIRequest.go new file mode 100644 index 0000000000..51ff393848 --- /dev/null +++ b/model/user/TaobaoOpenAccountTokenValidateAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +open account token验证 API请求 +taobao.open.account.token.validate + +open account token验证 +*/ +type TaobaoOpenAccountTokenValidateAPIRequest struct { + model.Params + // token + _paramToken string +} + +// 初始化TaobaoOpenAccountTokenValidateAPIRequest对象 +func NewTaobaoOpenAccountTokenValidateRequest() *TaobaoOpenAccountTokenValidateAPIRequest{ + return &TaobaoOpenAccountTokenValidateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenAccountTokenValidateAPIRequest) GetApiMethodName() string { + return "taobao.open.account.token.validate" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenAccountTokenValidateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamToken Setter +// token +func (r *TaobaoOpenAccountTokenValidateAPIRequest) SetParamToken(_paramToken string) error { + r._paramToken = _paramToken + r.Set("param_token", _paramToken) + return nil +} + +// ParamToken Getter +func (r TaobaoOpenAccountTokenValidateAPIRequest) GetParamToken() string { + return r._paramToken +} diff --git a/model/user/TaobaoOpenAccountTokenValidateAPIResponse.go b/model/user/TaobaoOpenAccountTokenValidateAPIResponse.go new file mode 100644 index 0000000000..d50a812a49 --- /dev/null +++ b/model/user/TaobaoOpenAccountTokenValidateAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +open account token验证 API返回值 +taobao.open.account.token.validate + +open account token验证 +*/ +type TaobaoOpenAccountTokenValidateAPIResponse struct { + model.CommonResponse + TaobaoOpenAccountTokenValidateAPIResponseModel +} + +// open account token验证 成功返回结果 +type TaobaoOpenAccountTokenValidateAPIResponseModel struct { + XMLName xml.Name `xml:"open_account_token_validate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 验证成功返回token中的信息 + Data *OpenAccountTokenValidateResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/user/TaobaoOpenAccountTokenValidateResponse.go b/model/user/TaobaoOpenAccountTokenValidateResponse.go deleted file mode 100644 index 54842487b5..0000000000 --- a/model/user/TaobaoOpenAccountTokenValidateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -open account token验证 API返回值 -taobao.open.account.token.validate - -open account token验证 -*/ -type TaobaoOpenAccountTokenValidateAPIResponse struct { - model.CommonResponse - TaobaoOpenAccountTokenValidateResponse -} - -// open account token验证 成功返回结果 -type TaobaoOpenAccountTokenValidateResponse struct { - XMLName xml.Name `xml:"open_account_token_validate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 验证成功返回token中的信息 - Data *OpenAccountTokenValidateResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/user/TaobaoOpenAccountUpdateAPIRequest.go b/model/user/TaobaoOpenAccountUpdateAPIRequest.go new file mode 100644 index 0000000000..27cf9143b4 --- /dev/null +++ b/model/user/TaobaoOpenAccountUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Open Account数据更新 API请求 +taobao.open.account.update + +Open Account数据更新 +*/ +type TaobaoOpenAccountUpdateAPIRequest struct { + model.Params + // Open Account + _paramList []OpenAccount +} + +// 初始化TaobaoOpenAccountUpdateAPIRequest对象 +func NewTaobaoOpenAccountUpdateRequest() *TaobaoOpenAccountUpdateAPIRequest{ + return &TaobaoOpenAccountUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenAccountUpdateAPIRequest) GetApiMethodName() string { + return "taobao.open.account.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenAccountUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamList Setter +// Open Account +func (r *TaobaoOpenAccountUpdateAPIRequest) SetParamList(_paramList []OpenAccount) error { + r._paramList = _paramList + r.Set("param_list", _paramList) + return nil +} + +// ParamList Getter +func (r TaobaoOpenAccountUpdateAPIRequest) GetParamList() []OpenAccount { + return r._paramList +} diff --git a/model/user/TaobaoOpenAccountUpdateAPIResponse.go b/model/user/TaobaoOpenAccountUpdateAPIResponse.go new file mode 100644 index 0000000000..728a412236 --- /dev/null +++ b/model/user/TaobaoOpenAccountUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Open Account数据更新 API返回值 +taobao.open.account.update + +Open Account数据更新 +*/ +type TaobaoOpenAccountUpdateAPIResponse struct { + model.CommonResponse + TaobaoOpenAccountUpdateAPIResponseModel +} + +// Open Account数据更新 成功返回结果 +type TaobaoOpenAccountUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"open_account_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // update是否成功 + Datas []OpenaccountVoid `json:"datas,omitempty" xml:"datas>openaccount_void,omitempty"` +} diff --git a/model/user/TaobaoOpenAccountUpdateResponse.go b/model/user/TaobaoOpenAccountUpdateResponse.go deleted file mode 100644 index edeb6a3636..0000000000 --- a/model/user/TaobaoOpenAccountUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Open Account数据更新 API返回值 -taobao.open.account.update - -Open Account数据更新 -*/ -type TaobaoOpenAccountUpdateAPIResponse struct { - model.CommonResponse - TaobaoOpenAccountUpdateResponse -} - -// Open Account数据更新 成功返回结果 -type TaobaoOpenAccountUpdateResponse struct { - XMLName xml.Name `xml:"open_account_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // update是否成功 - Datas []OpenaccountVoid `json:"datas,omitempty" xml:"datas>openaccount_void,omitempty"` -} diff --git a/model/user/TaobaoOpensecurityIsvUidGetAPIRequest.go b/model/user/TaobaoOpensecurityIsvUidGetAPIRequest.go new file mode 100644 index 0000000000..68b51b4e8f --- /dev/null +++ b/model/user/TaobaoOpensecurityIsvUidGetAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取open security uid for isv API请求 +taobao.opensecurity.isv.uid.get + +根据 open_uid 获取 open_uid_isv 用于同一个 isv的多个app间数据关联 +*/ +type TaobaoOpensecurityIsvUidGetAPIRequest struct { + model.Params + // 基于Appkey生成的open security淘宝用户Id + _openUid string +} + +// 初始化TaobaoOpensecurityIsvUidGetAPIRequest对象 +func NewTaobaoOpensecurityIsvUidGetRequest() *TaobaoOpensecurityIsvUidGetAPIRequest{ + return &TaobaoOpensecurityIsvUidGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpensecurityIsvUidGetAPIRequest) GetApiMethodName() string { + return "taobao.opensecurity.isv.uid.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpensecurityIsvUidGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenUid Setter +// 基于Appkey生成的open security淘宝用户Id +func (r *TaobaoOpensecurityIsvUidGetAPIRequest) SetOpenUid(_openUid string) error { + r._openUid = _openUid + r.Set("open_uid", _openUid) + return nil +} + +// OpenUid Getter +func (r TaobaoOpensecurityIsvUidGetAPIRequest) GetOpenUid() string { + return r._openUid +} diff --git a/model/user/TaobaoOpensecurityIsvUidGetAPIResponse.go b/model/user/TaobaoOpensecurityIsvUidGetAPIResponse.go new file mode 100644 index 0000000000..fe98885988 --- /dev/null +++ b/model/user/TaobaoOpensecurityIsvUidGetAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取open security uid for isv API返回值 +taobao.opensecurity.isv.uid.get + +根据 open_uid 获取 open_uid_isv 用于同一个 isv的多个app间数据关联 +*/ +type TaobaoOpensecurityIsvUidGetAPIResponse struct { + model.CommonResponse + TaobaoOpensecurityIsvUidGetAPIResponseModel +} + +// 获取open security uid for isv 成功返回结果 +type TaobaoOpensecurityIsvUidGetAPIResponseModel struct { + XMLName xml.Name `xml:"opensecurity_isv_uid_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // open security tbUserId for ISV,淘宝账号对ISV级别的唯一open security ID,用于同一个ISV多个Appkey间数据共享。 + OpenUidIsv string `json:"open_uid_isv,omitempty" xml:"open_uid_isv,omitempty"` +} diff --git a/model/user/TaobaoOpensecurityIsvUidGetResponse.go b/model/user/TaobaoOpensecurityIsvUidGetResponse.go deleted file mode 100644 index 53a6348b7c..0000000000 --- a/model/user/TaobaoOpensecurityIsvUidGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取open security uid for isv API返回值 -taobao.opensecurity.isv.uid.get - -根据 open_uid 获取 open_uid_isv 用于同一个 isv的多个app间数据关联 -*/ -type TaobaoOpensecurityIsvUidGetAPIResponse struct { - model.CommonResponse - TaobaoOpensecurityIsvUidGetResponse -} - -// 获取open security uid for isv 成功返回结果 -type TaobaoOpensecurityIsvUidGetResponse struct { - XMLName xml.Name `xml:"opensecurity_isv_uid_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // open security tbUserId for ISV,淘宝账号对ISV级别的唯一open security ID,用于同一个ISV多个Appkey间数据共享。 - OpenUidIsv string `json:"open_uid_isv,omitempty" xml:"open_uid_isv,omitempty"` -} diff --git a/model/user/TaobaoOpensecurityUidGetAPIRequest.go b/model/user/TaobaoOpensecurityUidGetAPIRequest.go new file mode 100644 index 0000000000..59da811b2c --- /dev/null +++ b/model/user/TaobaoOpensecurityUidGetAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝open security uid 获取接口 API请求 +taobao.opensecurity.uid.get + +根据明文 taobao user id 换取 app的 open_uid +*/ +type TaobaoOpensecurityUidGetAPIRequest struct { + model.Params + // 淘宝用户ID + _tbUserId int64 +} + +// 初始化TaobaoOpensecurityUidGetAPIRequest对象 +func NewTaobaoOpensecurityUidGetRequest() *TaobaoOpensecurityUidGetAPIRequest{ + return &TaobaoOpensecurityUidGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpensecurityUidGetAPIRequest) GetApiMethodName() string { + return "taobao.opensecurity.uid.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpensecurityUidGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TbUserId Setter +// 淘宝用户ID +func (r *TaobaoOpensecurityUidGetAPIRequest) SetTbUserId(_tbUserId int64) error { + r._tbUserId = _tbUserId + r.Set("tb_user_id", _tbUserId) + return nil +} + +// TbUserId Getter +func (r TaobaoOpensecurityUidGetAPIRequest) GetTbUserId() int64 { + return r._tbUserId +} diff --git a/model/user/TaobaoOpensecurityUidGetAPIResponse.go b/model/user/TaobaoOpensecurityUidGetAPIResponse.go new file mode 100644 index 0000000000..1eeb071fbc --- /dev/null +++ b/model/user/TaobaoOpensecurityUidGetAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝open security uid 获取接口 API返回值 +taobao.opensecurity.uid.get + +根据明文 taobao user id 换取 app的 open_uid +*/ +type TaobaoOpensecurityUidGetAPIResponse struct { + model.CommonResponse + TaobaoOpensecurityUidGetAPIResponseModel +} + +// 淘宝open security uid 获取接口 成功返回结果 +type TaobaoOpensecurityUidGetAPIResponseModel struct { + XMLName xml.Name `xml:"opensecurity_uid_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // open security tbUserId,淘宝用户对每个Appkey会有唯一的一个open_uid + OpenUid string `json:"open_uid,omitempty" xml:"open_uid,omitempty"` +} diff --git a/model/user/TaobaoOpensecurityUidGetResponse.go b/model/user/TaobaoOpensecurityUidGetResponse.go deleted file mode 100644 index 1407441182..0000000000 --- a/model/user/TaobaoOpensecurityUidGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝open security uid 获取接口 API返回值 -taobao.opensecurity.uid.get - -根据明文 taobao user id 换取 app的 open_uid -*/ -type TaobaoOpensecurityUidGetAPIResponse struct { - model.CommonResponse - TaobaoOpensecurityUidGetResponse -} - -// 淘宝open security uid 获取接口 成功返回结果 -type TaobaoOpensecurityUidGetResponse struct { - XMLName xml.Name `xml:"opensecurity_uid_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // open security tbUserId,淘宝用户对每个Appkey会有唯一的一个open_uid - OpenUid string `json:"open_uid,omitempty" xml:"open_uid,omitempty"` -} diff --git a/model/user/TaobaoRdcAligeniusAccountValidateAPIRequest.go b/model/user/TaobaoRdcAligeniusAccountValidateAPIRequest.go new file mode 100644 index 0000000000..e583e1d09e --- /dev/null +++ b/model/user/TaobaoRdcAligeniusAccountValidateAPIRequest.go @@ -0,0 +1,38 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +AG商家账号校验 API请求 +taobao.rdc.aligenius.account.validate + +提供应对接AG的erp系统查询其旗下的商家是否为AG商家 +*/ +type TaobaoRdcAligeniusAccountValidateAPIRequest struct { + model.Params +} + +// 初始化TaobaoRdcAligeniusAccountValidateAPIRequest对象 +func NewTaobaoRdcAligeniusAccountValidateRequest() *TaobaoRdcAligeniusAccountValidateAPIRequest{ + return &TaobaoRdcAligeniusAccountValidateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRdcAligeniusAccountValidateAPIRequest) GetApiMethodName() string { + return "taobao.rdc.aligenius.account.validate" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRdcAligeniusAccountValidateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/user/TaobaoRdcAligeniusAccountValidateAPIResponse.go b/model/user/TaobaoRdcAligeniusAccountValidateAPIResponse.go new file mode 100644 index 0000000000..346433f713 --- /dev/null +++ b/model/user/TaobaoRdcAligeniusAccountValidateAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +AG商家账号校验 API返回值 +taobao.rdc.aligenius.account.validate + +提供应对接AG的erp系统查询其旗下的商家是否为AG商家 +*/ +type TaobaoRdcAligeniusAccountValidateAPIResponse struct { + model.CommonResponse + TaobaoRdcAligeniusAccountValidateAPIResponseModel +} + +// AG商家账号校验 成功返回结果 +type TaobaoRdcAligeniusAccountValidateAPIResponseModel struct { + XMLName xml.Name `xml:"rdc_aligenius_account_validate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoRdcAligeniusAccountValidateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/user/TaobaoRdcAligeniusAccountValidateResponse.go b/model/user/TaobaoRdcAligeniusAccountValidateResponse.go deleted file mode 100644 index 960384b26e..0000000000 --- a/model/user/TaobaoRdcAligeniusAccountValidateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -AG商家账号校验 API返回值 -taobao.rdc.aligenius.account.validate - -提供应对接AG的erp系统查询其旗下的商家是否为AG商家 -*/ -type TaobaoRdcAligeniusAccountValidateAPIResponse struct { - model.CommonResponse - TaobaoRdcAligeniusAccountValidateResponse -} - -// AG商家账号校验 成功返回结果 -type TaobaoRdcAligeniusAccountValidateResponse struct { - XMLName xml.Name `xml:"rdc_aligenius_account_validate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoRdcAligeniusAccountValidateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/user/TaobaoUserAvatarGetAPIRequest.go b/model/user/TaobaoUserAvatarGetAPIRequest.go new file mode 100644 index 0000000000..ca397cac39 --- /dev/null +++ b/model/user/TaobaoUserAvatarGetAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝用户头像查询 API请求 +taobao.user.avatar.get + +根据混淆nick查询用户头像 +*/ +type TaobaoUserAvatarGetAPIRequest struct { + model.Params + // 混淆nick + _nick string +} + +// 初始化TaobaoUserAvatarGetAPIRequest对象 +func NewTaobaoUserAvatarGetRequest() *TaobaoUserAvatarGetAPIRequest{ + return &TaobaoUserAvatarGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUserAvatarGetAPIRequest) GetApiMethodName() string { + return "taobao.user.avatar.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUserAvatarGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 混淆nick +func (r *TaobaoUserAvatarGetAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoUserAvatarGetAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/user/TaobaoUserAvatarGetAPIResponse.go b/model/user/TaobaoUserAvatarGetAPIResponse.go new file mode 100644 index 0000000000..1b17bbbfac --- /dev/null +++ b/model/user/TaobaoUserAvatarGetAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘宝用户头像查询 API返回值 +taobao.user.avatar.get + +根据混淆nick查询用户头像 +*/ +type TaobaoUserAvatarGetAPIResponse struct { + model.CommonResponse + TaobaoUserAvatarGetAPIResponseModel +} + +// 淘宝用户头像查询 成功返回结果 +type TaobaoUserAvatarGetAPIResponseModel struct { + XMLName xml.Name `xml:"user_avatar_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 用户头像地址 + Avatar string `json:"avatar,omitempty" xml:"avatar,omitempty"` +} diff --git a/model/user/TaobaoUserAvatarGetResponse.go b/model/user/TaobaoUserAvatarGetResponse.go deleted file mode 100644 index 61e0b5e65e..0000000000 --- a/model/user/TaobaoUserAvatarGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘宝用户头像查询 API返回值 -taobao.user.avatar.get - -根据混淆nick查询用户头像 -*/ -type TaobaoUserAvatarGetAPIResponse struct { - model.CommonResponse - TaobaoUserAvatarGetResponse -} - -// 淘宝用户头像查询 成功返回结果 -type TaobaoUserAvatarGetResponse struct { - XMLName xml.Name `xml:"user_avatar_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 用户头像地址 - Avatar string `json:"avatar,omitempty" xml:"avatar,omitempty"` -} diff --git a/model/user/TaobaoUserBuyerGetAPIRequest.go b/model/user/TaobaoUserBuyerGetAPIRequest.go new file mode 100644 index 0000000000..e9908c1bc9 --- /dev/null +++ b/model/user/TaobaoUserBuyerGetAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询买家信息API API请求 +taobao.user.buyer.get + +查询买家信息API,只能买家类应用调用。 +*/ +type TaobaoUserBuyerGetAPIRequest struct { + model.Params + // 只返回nick, avatar参数 + _fields string +} + +// 初始化TaobaoUserBuyerGetAPIRequest对象 +func NewTaobaoUserBuyerGetRequest() *TaobaoUserBuyerGetAPIRequest{ + return &TaobaoUserBuyerGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUserBuyerGetAPIRequest) GetApiMethodName() string { + return "taobao.user.buyer.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUserBuyerGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 只返回nick, avatar参数 +func (r *TaobaoUserBuyerGetAPIRequest) SetFields(_fields string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoUserBuyerGetAPIRequest) GetFields() string { + return r._fields +} diff --git a/model/user/TaobaoUserBuyerGetAPIResponse.go b/model/user/TaobaoUserBuyerGetAPIResponse.go new file mode 100644 index 0000000000..2de05e624f --- /dev/null +++ b/model/user/TaobaoUserBuyerGetAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询买家信息API API返回值 +taobao.user.buyer.get + +查询买家信息API,只能买家类应用调用。 +*/ +type TaobaoUserBuyerGetAPIResponse struct { + model.CommonResponse + TaobaoUserBuyerGetAPIResponseModel +} + +// 查询买家信息API 成功返回结果 +type TaobaoUserBuyerGetAPIResponseModel struct { + XMLName xml.Name `xml:"user_buyer_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 只返回nick,avatar参数 + User *User `json:"user,omitempty" xml:"user,omitempty"` +} diff --git a/model/user/TaobaoUserBuyerGetResponse.go b/model/user/TaobaoUserBuyerGetResponse.go deleted file mode 100644 index 837aaf12c3..0000000000 --- a/model/user/TaobaoUserBuyerGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询买家信息API API返回值 -taobao.user.buyer.get - -查询买家信息API,只能买家类应用调用。 -*/ -type TaobaoUserBuyerGetAPIResponse struct { - model.CommonResponse - TaobaoUserBuyerGetResponse -} - -// 查询买家信息API 成功返回结果 -type TaobaoUserBuyerGetResponse struct { - XMLName xml.Name `xml:"user_buyer_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 只返回nick,avatar参数 - User *User `json:"user,omitempty" xml:"user,omitempty"` -} diff --git a/model/user/TaobaoUserSellerGetAPIRequest.go b/model/user/TaobaoUserSellerGetAPIRequest.go new file mode 100644 index 0000000000..0239b54e51 --- /dev/null +++ b/model/user/TaobaoUserSellerGetAPIRequest.go @@ -0,0 +1,52 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家用户信息 API请求 +taobao.user.seller.get + +查询卖家用户信息(只能查询有店铺的用户) 只能卖家类应用调用。 +*/ +type TaobaoUserSellerGetAPIRequest struct { + model.Params + // 需要返回的字段列表,可选值为返回示例值中的可以看到的字段 + _fields []string +} + +// 初始化TaobaoUserSellerGetAPIRequest对象 +func NewTaobaoUserSellerGetRequest() *TaobaoUserSellerGetAPIRequest{ + return &TaobaoUserSellerGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUserSellerGetAPIRequest) GetApiMethodName() string { + return "taobao.user.seller.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUserSellerGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Fields Setter +// 需要返回的字段列表,可选值为返回示例值中的可以看到的字段 +func (r *TaobaoUserSellerGetAPIRequest) SetFields(_fields []string) error { + r._fields = _fields + r.Set("fields", _fields) + return nil +} + +// Fields Getter +func (r TaobaoUserSellerGetAPIRequest) GetFields() []string { + return r._fields +} diff --git a/model/user/TaobaoUserSellerGetAPIResponse.go b/model/user/TaobaoUserSellerGetAPIResponse.go new file mode 100644 index 0000000000..c0154c1cf1 --- /dev/null +++ b/model/user/TaobaoUserSellerGetAPIResponse.go @@ -0,0 +1,27 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询卖家用户信息 API返回值 +taobao.user.seller.get + +查询卖家用户信息(只能查询有店铺的用户) 只能卖家类应用调用。 +*/ +type TaobaoUserSellerGetAPIResponse struct { + model.CommonResponse + TaobaoUserSellerGetAPIResponseModel +} + +// 查询卖家用户信息 成功返回结果 +type TaobaoUserSellerGetAPIResponseModel struct { + XMLName xml.Name `xml:"user_seller_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 用户信息 + User *User `json:"user,omitempty" xml:"user,omitempty"` +} diff --git a/model/user/TaobaoUserSellerGetResponse.go b/model/user/TaobaoUserSellerGetResponse.go deleted file mode 100644 index ad0891c9b0..0000000000 --- a/model/user/TaobaoUserSellerGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询卖家用户信息 API返回值 -taobao.user.seller.get - -查询卖家用户信息(只能查询有店铺的用户) 只能卖家类应用调用。 -*/ -type TaobaoUserSellerGetAPIResponse struct { - model.CommonResponse - TaobaoUserSellerGetResponse -} - -// 查询卖家用户信息 成功返回结果 -type TaobaoUserSellerGetResponse struct { - XMLName xml.Name `xml:"user_seller_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 用户信息 - User *User `json:"user,omitempty" xml:"user,omitempty"` -} diff --git a/model/user/TmallServiceSettleadjustmentModifyAPIRequest.go b/model/user/TmallServiceSettleadjustmentModifyAPIRequest.go new file mode 100644 index 0000000000..e10fbf3429 --- /dev/null +++ b/model/user/TmallServiceSettleadjustmentModifyAPIRequest.go @@ -0,0 +1,53 @@ +package user + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改结算调整单 API请求 +tmall.service.settleadjustment.modify + +提供给服务商在对结算有异议时,发起结算调整单。 +通过说明调整单ID,调整费用值,调整原因进行结算调整单修改。 +*/ +type TmallServiceSettleadjustmentModifyAPIRequest struct { + model.Params + // 结算调整单父节点 + _paramSettleAdjustmentRequest *SettleAdjustmentRequest +} + +// 初始化TmallServiceSettleadjustmentModifyAPIRequest对象 +func NewTmallServiceSettleadjustmentModifyRequest() *TmallServiceSettleadjustmentModifyAPIRequest{ + return &TmallServiceSettleadjustmentModifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallServiceSettleadjustmentModifyAPIRequest) GetApiMethodName() string { + return "tmall.service.settleadjustment.modify" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallServiceSettleadjustmentModifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamSettleAdjustmentRequest Setter +// 结算调整单父节点 +func (r *TmallServiceSettleadjustmentModifyAPIRequest) SetParamSettleAdjustmentRequest(_paramSettleAdjustmentRequest *SettleAdjustmentRequest) error { + r._paramSettleAdjustmentRequest = _paramSettleAdjustmentRequest + r.Set("param_settle_adjustment_request", _paramSettleAdjustmentRequest) + return nil +} + +// ParamSettleAdjustmentRequest Getter +func (r TmallServiceSettleadjustmentModifyAPIRequest) GetParamSettleAdjustmentRequest() *SettleAdjustmentRequest { + return r._paramSettleAdjustmentRequest +} diff --git a/model/user/TmallServiceSettleadjustmentModifyAPIResponse.go b/model/user/TmallServiceSettleadjustmentModifyAPIResponse.go new file mode 100644 index 0000000000..41cc6211ca --- /dev/null +++ b/model/user/TmallServiceSettleadjustmentModifyAPIResponse.go @@ -0,0 +1,28 @@ +package user + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改结算调整单 API返回值 +tmall.service.settleadjustment.modify + +提供给服务商在对结算有异议时,发起结算调整单。 +通过说明调整单ID,调整费用值,调整原因进行结算调整单修改。 +*/ +type TmallServiceSettleadjustmentModifyAPIResponse struct { + model.CommonResponse + TmallServiceSettleadjustmentModifyAPIResponseModel +} + +// 修改结算调整单 成功返回结果 +type TmallServiceSettleadjustmentModifyAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_service_settleadjustment_modify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TmallServiceSettleadjustmentModifyResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/user/TmallServiceSettleadjustmentModifyResponse.go b/model/user/TmallServiceSettleadjustmentModifyResponse.go deleted file mode 100644 index dd6ca798fd..0000000000 --- a/model/user/TmallServiceSettleadjustmentModifyResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package user - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改结算调整单 API返回值 -tmall.service.settleadjustment.modify - -提供给服务商在对结算有异议时,发起结算调整单。 -通过说明调整单ID,调整费用值,调整原因进行结算调整单修改。 -*/ -type TmallServiceSettleadjustmentModifyAPIResponse struct { - model.CommonResponse - TmallServiceSettleadjustmentModifyResponse -} - -// 修改结算调整单 成功返回结果 -type TmallServiceSettleadjustmentModifyResponse struct { - XMLName xml.Name `xml:"tmall_service_settleadjustment_modify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TmallServiceSettleadjustmentModifyResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/usergrowth/TaobaoUsergrowthDeliveryBatchaskAPIRequest.go b/model/usergrowth/TaobaoUsergrowthDeliveryBatchaskAPIRequest.go new file mode 100644 index 0000000000..ac3d5e40a5 --- /dev/null +++ b/model/usergrowth/TaobaoUsergrowthDeliveryBatchaskAPIRequest.go @@ -0,0 +1,94 @@ +package usergrowth + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +广告投放批量询问 API请求 +taobao.usergrowth.delivery.batchask + +提供给媒体在曝光广告前调用, 返回是否曝光以及报价 +*/ +type TaobaoUsergrowthDeliveryBatchaskAPIRequest struct { + model.Params + // 渠道标识,向淘宝技术申请 + _channel string + // 广告id,淘宝和媒体协商 + _adid string + // idfa的md5值, 32位小写, 多个使用,分隔, 最多支持20个 + _idfaMd5 string + // imei的md5值, 32位小写, 多个之间使用,分隔, 最多支持20个 + _imeiMd5 string +} + +// 初始化TaobaoUsergrowthDeliveryBatchaskAPIRequest对象 +func NewTaobaoUsergrowthDeliveryBatchaskRequest() *TaobaoUsergrowthDeliveryBatchaskAPIRequest{ + return &TaobaoUsergrowthDeliveryBatchaskAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsergrowthDeliveryBatchaskAPIRequest) GetApiMethodName() string { + return "taobao.usergrowth.delivery.batchask" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsergrowthDeliveryBatchaskAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Channel Setter +// 渠道标识,向淘宝技术申请 +func (r *TaobaoUsergrowthDeliveryBatchaskAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r TaobaoUsergrowthDeliveryBatchaskAPIRequest) GetChannel() string { + return r._channel +} +// Adid Setter +// 广告id,淘宝和媒体协商 +func (r *TaobaoUsergrowthDeliveryBatchaskAPIRequest) SetAdid(_adid string) error { + r._adid = _adid + r.Set("adid", _adid) + return nil +} + +// Adid Getter +func (r TaobaoUsergrowthDeliveryBatchaskAPIRequest) GetAdid() string { + return r._adid +} +// IdfaMd5 Setter +// idfa的md5值, 32位小写, 多个使用,分隔, 最多支持20个 +func (r *TaobaoUsergrowthDeliveryBatchaskAPIRequest) SetIdfaMd5(_idfaMd5 string) error { + r._idfaMd5 = _idfaMd5 + r.Set("idfa_md5", _idfaMd5) + return nil +} + +// IdfaMd5 Getter +func (r TaobaoUsergrowthDeliveryBatchaskAPIRequest) GetIdfaMd5() string { + return r._idfaMd5 +} +// ImeiMd5 Setter +// imei的md5值, 32位小写, 多个之间使用,分隔, 最多支持20个 +func (r *TaobaoUsergrowthDeliveryBatchaskAPIRequest) SetImeiMd5(_imeiMd5 string) error { + r._imeiMd5 = _imeiMd5 + r.Set("imei_md5", _imeiMd5) + return nil +} + +// ImeiMd5 Getter +func (r TaobaoUsergrowthDeliveryBatchaskAPIRequest) GetImeiMd5() string { + return r._imeiMd5 +} diff --git a/model/usergrowth/TaobaoUsergrowthDeliveryBatchaskAPIResponse.go b/model/usergrowth/TaobaoUsergrowthDeliveryBatchaskAPIResponse.go new file mode 100644 index 0000000000..32a2d026dc --- /dev/null +++ b/model/usergrowth/TaobaoUsergrowthDeliveryBatchaskAPIResponse.go @@ -0,0 +1,27 @@ +package usergrowth + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +广告投放批量询问 API返回值 +taobao.usergrowth.delivery.batchask + +提供给媒体在曝光广告前调用, 返回是否曝光以及报价 +*/ +type TaobaoUsergrowthDeliveryBatchaskAPIResponse struct { + model.CommonResponse + TaobaoUsergrowthDeliveryBatchaskAPIResponseModel +} + +// 广告投放批量询问 成功返回结果 +type TaobaoUsergrowthDeliveryBatchaskAPIResponseModel struct { + XMLName xml.Name `xml:"usergrowth_delivery_batchask_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值, 每个目标用户对应一个接口,具体参见示例 + Results []AskResult `json:"results,omitempty" xml:"results>ask_result,omitempty"` +} diff --git a/model/usergrowth/TaobaoUsergrowthDeliveryBatchaskResponse.go b/model/usergrowth/TaobaoUsergrowthDeliveryBatchaskResponse.go deleted file mode 100644 index 1e77c26360..0000000000 --- a/model/usergrowth/TaobaoUsergrowthDeliveryBatchaskResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package usergrowth - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -广告投放批量询问 API返回值 -taobao.usergrowth.delivery.batchask - -提供给媒体在曝光广告前调用, 返回是否曝光以及报价 -*/ -type TaobaoUsergrowthDeliveryBatchaskAPIResponse struct { - model.CommonResponse - TaobaoUsergrowthDeliveryBatchaskResponse -} - -// 广告投放批量询问 成功返回结果 -type TaobaoUsergrowthDeliveryBatchaskResponse struct { - XMLName xml.Name `xml:"usergrowth_delivery_batchask_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值, 每个目标用户对应一个接口,具体参见示例 - Results []AskResult `json:"results,omitempty" xml:"results>ask_result,omitempty"` -} diff --git a/model/usergrowth/TaobaoUsergrowthDeliveryProfileReportAPIRequest.go b/model/usergrowth/TaobaoUsergrowthDeliveryProfileReportAPIRequest.go new file mode 100644 index 0000000000..c4e94985fe --- /dev/null +++ b/model/usergrowth/TaobaoUsergrowthDeliveryProfileReportAPIRequest.go @@ -0,0 +1,66 @@ +package usergrowth + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +标签上报 API请求 +taobao.usergrowth.delivery.profile.report + +渠道上报标签信息 +*/ +type TaobaoUsergrowthDeliveryProfileReportAPIRequest struct { + model.Params + // 标签参数, 支持一次传多个, 一次最多传20个 + _data string + // 渠道标识,找淘宝运营申请 + _channel string +} + +// 初始化TaobaoUsergrowthDeliveryProfileReportAPIRequest对象 +func NewTaobaoUsergrowthDeliveryProfileReportRequest() *TaobaoUsergrowthDeliveryProfileReportAPIRequest{ + return &TaobaoUsergrowthDeliveryProfileReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsergrowthDeliveryProfileReportAPIRequest) GetApiMethodName() string { + return "taobao.usergrowth.delivery.profile.report" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsergrowthDeliveryProfileReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Data Setter +// 标签参数, 支持一次传多个, 一次最多传20个 +func (r *TaobaoUsergrowthDeliveryProfileReportAPIRequest) SetData(_data string) error { + r._data = _data + r.Set("data", _data) + return nil +} + +// Data Getter +func (r TaobaoUsergrowthDeliveryProfileReportAPIRequest) GetData() string { + return r._data +} +// Channel Setter +// 渠道标识,找淘宝运营申请 +func (r *TaobaoUsergrowthDeliveryProfileReportAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r TaobaoUsergrowthDeliveryProfileReportAPIRequest) GetChannel() string { + return r._channel +} diff --git a/model/usergrowth/TaobaoUsergrowthDeliveryProfileReportAPIResponse.go b/model/usergrowth/TaobaoUsergrowthDeliveryProfileReportAPIResponse.go new file mode 100644 index 0000000000..750bad7ef1 --- /dev/null +++ b/model/usergrowth/TaobaoUsergrowthDeliveryProfileReportAPIResponse.go @@ -0,0 +1,27 @@ +package usergrowth + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +标签上报 API返回值 +taobao.usergrowth.delivery.profile.report + +渠道上报标签信息 +*/ +type TaobaoUsergrowthDeliveryProfileReportAPIResponse struct { + model.CommonResponse + TaobaoUsergrowthDeliveryProfileReportAPIResponseModel +} + +// 标签上报 成功返回结果 +type TaobaoUsergrowthDeliveryProfileReportAPIResponseModel struct { + XMLName xml.Name `xml:"usergrowth_delivery_profile_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/usergrowth/TaobaoUsergrowthDeliveryProfileReportResponse.go b/model/usergrowth/TaobaoUsergrowthDeliveryProfileReportResponse.go deleted file mode 100644 index c09e8e01dc..0000000000 --- a/model/usergrowth/TaobaoUsergrowthDeliveryProfileReportResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package usergrowth - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -标签上报 API返回值 -taobao.usergrowth.delivery.profile.report - -渠道上报标签信息 -*/ -type TaobaoUsergrowthDeliveryProfileReportAPIResponse struct { - model.CommonResponse - TaobaoUsergrowthDeliveryProfileReportResponse -} - -// 标签上报 成功返回结果 -type TaobaoUsergrowthDeliveryProfileReportResponse struct { - XMLName xml.Name `xml:"usergrowth_delivery_profile_report_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/usergrowth/TaobaoUsergrowthDhhDeliveryAskAPIRequest.go b/model/usergrowth/TaobaoUsergrowthDhhDeliveryAskAPIRequest.go new file mode 100644 index 0000000000..144d5f5534 --- /dev/null +++ b/model/usergrowth/TaobaoUsergrowthDhhDeliveryAskAPIRequest.go @@ -0,0 +1,178 @@ +package usergrowth + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +广告曝光前判定接口V2 API请求 +taobao.usergrowth.dhh.delivery.ask + +提供给媒体在曝光广告前调用 +*/ +type TaobaoUsergrowthDhhDeliveryAskAPIRequest struct { + model.Params + // 预留json参数,与手淘团队单独沟通 + _profile string + // oaid的md5值, 32位小写 + _oaidMd5 string + // idfa的md5值, 32位小写 + _idfaMd5 string + // imei的md5值, 32位小写 + _imeiMd5 string + // oaid的原生值 + _oaid string + // idfa的原生值 + _idfa string + // imei的原生值 + _imei string + // 用户所使用设备的系统, 0: android, 1: ios, 2: windowsphone, 3: other + _os string + // 渠道标识,在大航海平台申请 + _channel string + // 大航海广告位,在大航海平台申请 + _advertisingSpaceId string +} + +// 初始化TaobaoUsergrowthDhhDeliveryAskAPIRequest对象 +func NewTaobaoUsergrowthDhhDeliveryAskRequest() *TaobaoUsergrowthDhhDeliveryAskAPIRequest{ + return &TaobaoUsergrowthDhhDeliveryAskAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsergrowthDhhDeliveryAskAPIRequest) GetApiMethodName() string { + return "taobao.usergrowth.dhh.delivery.ask" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsergrowthDhhDeliveryAskAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Profile Setter +// 预留json参数,与手淘团队单独沟通 +func (r *TaobaoUsergrowthDhhDeliveryAskAPIRequest) SetProfile(_profile string) error { + r._profile = _profile + r.Set("profile", _profile) + return nil +} + +// Profile Getter +func (r TaobaoUsergrowthDhhDeliveryAskAPIRequest) GetProfile() string { + return r._profile +} +// OaidMd5 Setter +// oaid的md5值, 32位小写 +func (r *TaobaoUsergrowthDhhDeliveryAskAPIRequest) SetOaidMd5(_oaidMd5 string) error { + r._oaidMd5 = _oaidMd5 + r.Set("oaid_md5", _oaidMd5) + return nil +} + +// OaidMd5 Getter +func (r TaobaoUsergrowthDhhDeliveryAskAPIRequest) GetOaidMd5() string { + return r._oaidMd5 +} +// IdfaMd5 Setter +// idfa的md5值, 32位小写 +func (r *TaobaoUsergrowthDhhDeliveryAskAPIRequest) SetIdfaMd5(_idfaMd5 string) error { + r._idfaMd5 = _idfaMd5 + r.Set("idfa_md5", _idfaMd5) + return nil +} + +// IdfaMd5 Getter +func (r TaobaoUsergrowthDhhDeliveryAskAPIRequest) GetIdfaMd5() string { + return r._idfaMd5 +} +// ImeiMd5 Setter +// imei的md5值, 32位小写 +func (r *TaobaoUsergrowthDhhDeliveryAskAPIRequest) SetImeiMd5(_imeiMd5 string) error { + r._imeiMd5 = _imeiMd5 + r.Set("imei_md5", _imeiMd5) + return nil +} + +// ImeiMd5 Getter +func (r TaobaoUsergrowthDhhDeliveryAskAPIRequest) GetImeiMd5() string { + return r._imeiMd5 +} +// Oaid Setter +// oaid的原生值 +func (r *TaobaoUsergrowthDhhDeliveryAskAPIRequest) SetOaid(_oaid string) error { + r._oaid = _oaid + r.Set("oaid", _oaid) + return nil +} + +// Oaid Getter +func (r TaobaoUsergrowthDhhDeliveryAskAPIRequest) GetOaid() string { + return r._oaid +} +// Idfa Setter +// idfa的原生值 +func (r *TaobaoUsergrowthDhhDeliveryAskAPIRequest) SetIdfa(_idfa string) error { + r._idfa = _idfa + r.Set("idfa", _idfa) + return nil +} + +// Idfa Getter +func (r TaobaoUsergrowthDhhDeliveryAskAPIRequest) GetIdfa() string { + return r._idfa +} +// Imei Setter +// imei的原生值 +func (r *TaobaoUsergrowthDhhDeliveryAskAPIRequest) SetImei(_imei string) error { + r._imei = _imei + r.Set("imei", _imei) + return nil +} + +// Imei Getter +func (r TaobaoUsergrowthDhhDeliveryAskAPIRequest) GetImei() string { + return r._imei +} +// Os Setter +// 用户所使用设备的系统, 0: android, 1: ios, 2: windowsphone, 3: other +func (r *TaobaoUsergrowthDhhDeliveryAskAPIRequest) SetOs(_os string) error { + r._os = _os + r.Set("os", _os) + return nil +} + +// Os Getter +func (r TaobaoUsergrowthDhhDeliveryAskAPIRequest) GetOs() string { + return r._os +} +// Channel Setter +// 渠道标识,在大航海平台申请 +func (r *TaobaoUsergrowthDhhDeliveryAskAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r TaobaoUsergrowthDhhDeliveryAskAPIRequest) GetChannel() string { + return r._channel +} +// AdvertisingSpaceId Setter +// 大航海广告位,在大航海平台申请 +func (r *TaobaoUsergrowthDhhDeliveryAskAPIRequest) SetAdvertisingSpaceId(_advertisingSpaceId string) error { + r._advertisingSpaceId = _advertisingSpaceId + r.Set("advertising_space_id", _advertisingSpaceId) + return nil +} + +// AdvertisingSpaceId Getter +func (r TaobaoUsergrowthDhhDeliveryAskAPIRequest) GetAdvertisingSpaceId() string { + return r._advertisingSpaceId +} diff --git a/model/usergrowth/TaobaoUsergrowthDhhDeliveryAskAPIResponse.go b/model/usergrowth/TaobaoUsergrowthDhhDeliveryAskAPIResponse.go new file mode 100644 index 0000000000..65cc530889 --- /dev/null +++ b/model/usergrowth/TaobaoUsergrowthDhhDeliveryAskAPIResponse.go @@ -0,0 +1,33 @@ +package usergrowth + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +广告曝光前判定接口V2 API返回值 +taobao.usergrowth.dhh.delivery.ask + +提供给媒体在曝光广告前调用 +*/ +type TaobaoUsergrowthDhhDeliveryAskAPIResponse struct { + model.CommonResponse + TaobaoUsergrowthDhhDeliveryAskAPIResponseModel +} + +// 广告曝光前判定接口V2 成功返回结果 +type TaobaoUsergrowthDhhDeliveryAskAPIResponseModel struct { + XMLName xml.Name `xml:"usergrowth_dhh_delivery_ask_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true: 目标用户;false: 非目标用户 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 在大航海平台推荐的任务ID + TaskId string `json:"task_id,omitempty" xml:"task_id,omitempty"` + // 错误码, 0: 成功;1:限流;2:服务不可用 + Errcode int64 `json:"errcode,omitempty" xml:"errcode,omitempty"` + // 在大航海平台可投放的任务ID列表 + TaskIdList []string `json:"task_id_list,omitempty" xml:"task_id_list>string,omitempty"` +} diff --git a/model/usergrowth/TaobaoUsergrowthDhhDeliveryAskResponse.go b/model/usergrowth/TaobaoUsergrowthDhhDeliveryAskResponse.go deleted file mode 100644 index c7ddcbb4eb..0000000000 --- a/model/usergrowth/TaobaoUsergrowthDhhDeliveryAskResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package usergrowth - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -广告曝光前判定接口V2 API返回值 -taobao.usergrowth.dhh.delivery.ask - -提供给媒体在曝光广告前调用 -*/ -type TaobaoUsergrowthDhhDeliveryAskAPIResponse struct { - model.CommonResponse - TaobaoUsergrowthDhhDeliveryAskResponse -} - -// 广告曝光前判定接口V2 成功返回结果 -type TaobaoUsergrowthDhhDeliveryAskResponse struct { - XMLName xml.Name `xml:"usergrowth_dhh_delivery_ask_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true: 目标用户;false: 非目标用户 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 在大航海平台推荐的任务ID - TaskId string `json:"task_id,omitempty" xml:"task_id,omitempty"` - // 错误码, 0: 成功;1:限流;2:服务不可用 - Errcode int64 `json:"errcode,omitempty" xml:"errcode,omitempty"` - // 在大航海平台可投放的任务ID列表 - TaskIdList []string `json:"task_id_list,omitempty" xml:"task_id_list>string,omitempty"` -} diff --git a/model/usergrowth/TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest.go b/model/usergrowth/TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest.go new file mode 100644 index 0000000000..3fa15964ef --- /dev/null +++ b/model/usergrowth/TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest.go @@ -0,0 +1,108 @@ +package usergrowth + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +广告曝光前判定批量接口V2 API请求 +taobao.usergrowth.dhh.delivery.batchask + +广告曝光前判定批量接口V2 +*/ +type TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest struct { + model.Params + // md5加密后的oaid列表, 32位小写, 多个使用,分隔, 最多支持20个 + _oaidMd5 string + // md5加密后的oaid列表, 32位小写, 多个使用,分隔, 最多支持20个 + _idfaMd5 string + // md5加密后的imei列表, 32位小写, 多个使用,分隔, 最多支持20个 + _imeiMd5 string + // 巨浪广告位id,在巨浪平台申请 + _advertisingSpaceId string + // 巨浪渠道id,在巨浪平台申请 + _channel string +} + +// 初始化TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest对象 +func NewTaobaoUsergrowthDhhDeliveryBatchaskRequest() *TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest{ + return &TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest) GetApiMethodName() string { + return "taobao.usergrowth.dhh.delivery.batchask" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OaidMd5 Setter +// md5加密后的oaid列表, 32位小写, 多个使用,分隔, 最多支持20个 +func (r *TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest) SetOaidMd5(_oaidMd5 string) error { + r._oaidMd5 = _oaidMd5 + r.Set("oaid_md5", _oaidMd5) + return nil +} + +// OaidMd5 Getter +func (r TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest) GetOaidMd5() string { + return r._oaidMd5 +} +// IdfaMd5 Setter +// md5加密后的oaid列表, 32位小写, 多个使用,分隔, 最多支持20个 +func (r *TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest) SetIdfaMd5(_idfaMd5 string) error { + r._idfaMd5 = _idfaMd5 + r.Set("idfa_md5", _idfaMd5) + return nil +} + +// IdfaMd5 Getter +func (r TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest) GetIdfaMd5() string { + return r._idfaMd5 +} +// ImeiMd5 Setter +// md5加密后的imei列表, 32位小写, 多个使用,分隔, 最多支持20个 +func (r *TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest) SetImeiMd5(_imeiMd5 string) error { + r._imeiMd5 = _imeiMd5 + r.Set("imei_md5", _imeiMd5) + return nil +} + +// ImeiMd5 Getter +func (r TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest) GetImeiMd5() string { + return r._imeiMd5 +} +// AdvertisingSpaceId Setter +// 巨浪广告位id,在巨浪平台申请 +func (r *TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest) SetAdvertisingSpaceId(_advertisingSpaceId string) error { + r._advertisingSpaceId = _advertisingSpaceId + r.Set("advertising_space_id", _advertisingSpaceId) + return nil +} + +// AdvertisingSpaceId Getter +func (r TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest) GetAdvertisingSpaceId() string { + return r._advertisingSpaceId +} +// Channel Setter +// 巨浪渠道id,在巨浪平台申请 +func (r *TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r TaobaoUsergrowthDhhDeliveryBatchaskAPIRequest) GetChannel() string { + return r._channel +} diff --git a/model/usergrowth/TaobaoUsergrowthDhhDeliveryBatchaskAPIResponse.go b/model/usergrowth/TaobaoUsergrowthDhhDeliveryBatchaskAPIResponse.go new file mode 100644 index 0000000000..bcf8ec544e --- /dev/null +++ b/model/usergrowth/TaobaoUsergrowthDhhDeliveryBatchaskAPIResponse.go @@ -0,0 +1,27 @@ +package usergrowth + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +广告曝光前判定批量接口V2 API返回值 +taobao.usergrowth.dhh.delivery.batchask + +广告曝光前判定批量接口V2 +*/ +type TaobaoUsergrowthDhhDeliveryBatchaskAPIResponse struct { + model.CommonResponse + TaobaoUsergrowthDhhDeliveryBatchaskAPIResponseModel +} + +// 广告曝光前判定批量接口V2 成功返回结果 +type TaobaoUsergrowthDhhDeliveryBatchaskAPIResponseModel struct { + XMLName xml.Name `xml:"usergrowth_dhh_delivery_batchask_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *BatchAskResultV2 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/usergrowth/TaobaoUsergrowthDhhDeliveryBatchaskResponse.go b/model/usergrowth/TaobaoUsergrowthDhhDeliveryBatchaskResponse.go deleted file mode 100644 index 13d9bca876..0000000000 --- a/model/usergrowth/TaobaoUsergrowthDhhDeliveryBatchaskResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package usergrowth - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -广告曝光前判定批量接口V2 API返回值 -taobao.usergrowth.dhh.delivery.batchask - -广告曝光前判定批量接口V2 -*/ -type TaobaoUsergrowthDhhDeliveryBatchaskAPIResponse struct { - model.CommonResponse - TaobaoUsergrowthDhhDeliveryBatchaskResponse -} - -// 广告曝光前判定批量接口V2 成功返回结果 -type TaobaoUsergrowthDhhDeliveryBatchaskResponse struct { - XMLName xml.Name `xml:"usergrowth_dhh_delivery_batchask_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *BatchAskResultV2 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/usergrowth2/TaobaoUsergrowthDeliveryAskAPIRequest.go b/model/usergrowth2/TaobaoUsergrowthDeliveryAskAPIRequest.go new file mode 100644 index 0000000000..38fb1c813f --- /dev/null +++ b/model/usergrowth2/TaobaoUsergrowthDeliveryAskAPIRequest.go @@ -0,0 +1,920 @@ +package usergrowth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +广告投放询问 API请求 +taobao.usergrowth.delivery.ask + +提供给媒体在曝光广告前调用, 返回是否曝光以及曝光的物料信息 +*/ +type TaobaoUsergrowthDeliveryAskAPIRequest struct { + model.Params + // 广告id,淘宝和媒体协商 + _adid string + // 渠道标识,向淘宝技术申请 + _channel string + // 是否爱折扣: 0: 不是? 1:是 + _isDicountPrefer string + // 是否爱返现: 0: 不是? 1:是 + _isCashPrefer string + // 用户网购支付层级:? 0: 0~50 1: 50~200?2: 200~500 3: 500以上 + _payLayer string + // 是否爱赠品: 0: 不是? 1:是 + _isGiftPrefer string + // 是否爱评价: 0: 不是? 1:是 + _isRemarkUser string + // 是否爱分享: 0: 不是? 1:是 + _isSharingUser string + // 宝宝性别,0:F 1:M 2:未知,但有宝宝 3: 没有宝宝 + _babyGender string + // 是否有宠物?0:没有 1:有 2:预测有 + _hasPet string + // 预测是否有房 0:没房 1:有房 2:预测有房 + _hasHouse string + // 预测人生阶段 + _lifeStage string + // 预测是否有车,0: 没有车 1:自己注册有车2:预测有车 + _hasCar string + // 预测是否在校大学生?0:不是 1 是 2 预测是 + _isUndergraduate string + // 预测月收入 + _userIncome string + // 预测职业 + _careerType string + // 预测学历,初高中,博士,专科,硕士,本科 + _education string + // 注册IP解析的城市等级 + _regCityLevel string + // 注册IP解析区县名 + _ipAreaName string + // 注册IP解析城市名称 + _ipCityName string + // 注册IP解析的省份名称 + _ipProvName string + // 用户身份证号 + _idCardNumber string + // 用户感兴趣的标签,多个用逗号隔开。如动漫、历史 + _ukeywords string + // 年龄 + _age string + // 性别, 0:未知 1: 男 2:女 + _gender string + // 底价,单位为分 + _adFloorPrice string + // 广告位支持图片格式 0: jpg, 1:?jpeg, 2: gif + _adImgType string + // 广告位位置 0:未知,1:头部,2:底部, 3:侧边栏,4:全屏 默认传0 + _adPos string + // 广告位高度 + _adHeight string + // 广告位宽度 + _adWidth string + // 广告类型 0:横幅,1: 插屏, 2:开屏, 3:原生,4:视频 + _adType string + // 设备经度 + _geoLon string + // 设备维度 + _geoLat string + // 设备屏幕纵向分辨率,单位:像素 + _screenHeight string + // 设备屏幕水平分辨率,单位:像素 + _screenWidth string + // 设备方向:0:未知, 1: 纵向;2: 横向 + _orientation string + // 运营商,0: 未知, 1:移动,2:电信,3:联通 + _carrier string + // 网络类型,0:未知,1:WIFI, 2: 2G, 3: 3G, 4: 4G; 5: 5G + _network string + // 手机品牌 + _brand string + // 设备厂商 + _made string + // 设备型号 + _model string + // 素材展示所在的页面或者频道 + _posCat string + // 合作方名称 + _publishName string + // 给定appid中的位置id,用于提高转化率 + _posId string + // app类别 + _appCat string + // app版本号 + _appVer string + // 对接的appName + _appName string + // 对接的appId + _appId string + // 关键词的描述 + _description string + // 关键词 + _keyword string + // 关键词类型 + _keywordType string + // 安装转化目标app的标识, 0: 未安装转化目标app, 1: 安装了转化目标app + _appInstallFlag string + // 转化目标app, 1:淘宝;2:天猫;3:闲鱼;4:支付宝 + _app string + // idfa的md5值, 32位小写 + _idfaMd5 string + // imei的md5值, 32位小写 + _imeiMd5 string + // idfa原生值 + _idfa string + // imei原生值 + _imei string + // 手机号 + _mobile string + // 转化类型, 1: 激活;2: 新登;32896:定向促活 + _transformType string + // 用户所使用设备的系统, 0: android, 1: ios, 2: windowsphone, 3: other + _os string + // 广告创意id,淘宝和媒体协商 + _cid string + // android最新广告标识 + _oaid string + // android最新广告标识md5值, 32位小写 + _oaidMd5 string +} + +// 初始化TaobaoUsergrowthDeliveryAskAPIRequest对象 +func NewTaobaoUsergrowthDeliveryAskRequest() *TaobaoUsergrowthDeliveryAskAPIRequest{ + return &TaobaoUsergrowthDeliveryAskAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetApiMethodName() string { + return "taobao.usergrowth.delivery.ask" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Adid Setter +// 广告id,淘宝和媒体协商 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetAdid(_adid string) error { + r._adid = _adid + r.Set("adid", _adid) + return nil +} + +// Adid Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetAdid() string { + return r._adid +} +// Channel Setter +// 渠道标识,向淘宝技术申请 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetChannel() string { + return r._channel +} +// IsDicountPrefer Setter +// 是否爱折扣: 0: 不是? 1:是 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetIsDicountPrefer(_isDicountPrefer string) error { + r._isDicountPrefer = _isDicountPrefer + r.Set("is_dicount_prefer", _isDicountPrefer) + return nil +} + +// IsDicountPrefer Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetIsDicountPrefer() string { + return r._isDicountPrefer +} +// IsCashPrefer Setter +// 是否爱返现: 0: 不是? 1:是 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetIsCashPrefer(_isCashPrefer string) error { + r._isCashPrefer = _isCashPrefer + r.Set("is_cash_prefer", _isCashPrefer) + return nil +} + +// IsCashPrefer Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetIsCashPrefer() string { + return r._isCashPrefer +} +// PayLayer Setter +// 用户网购支付层级:? 0: 0~50 1: 50~200?2: 200~500 3: 500以上 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetPayLayer(_payLayer string) error { + r._payLayer = _payLayer + r.Set("pay_layer", _payLayer) + return nil +} + +// PayLayer Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetPayLayer() string { + return r._payLayer +} +// IsGiftPrefer Setter +// 是否爱赠品: 0: 不是? 1:是 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetIsGiftPrefer(_isGiftPrefer string) error { + r._isGiftPrefer = _isGiftPrefer + r.Set("is_gift_prefer", _isGiftPrefer) + return nil +} + +// IsGiftPrefer Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetIsGiftPrefer() string { + return r._isGiftPrefer +} +// IsRemarkUser Setter +// 是否爱评价: 0: 不是? 1:是 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetIsRemarkUser(_isRemarkUser string) error { + r._isRemarkUser = _isRemarkUser + r.Set("is_remark_user", _isRemarkUser) + return nil +} + +// IsRemarkUser Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetIsRemarkUser() string { + return r._isRemarkUser +} +// IsSharingUser Setter +// 是否爱分享: 0: 不是? 1:是 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetIsSharingUser(_isSharingUser string) error { + r._isSharingUser = _isSharingUser + r.Set("is_sharing_user", _isSharingUser) + return nil +} + +// IsSharingUser Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetIsSharingUser() string { + return r._isSharingUser +} +// BabyGender Setter +// 宝宝性别,0:F 1:M 2:未知,但有宝宝 3: 没有宝宝 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetBabyGender(_babyGender string) error { + r._babyGender = _babyGender + r.Set("baby_gender", _babyGender) + return nil +} + +// BabyGender Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetBabyGender() string { + return r._babyGender +} +// HasPet Setter +// 是否有宠物?0:没有 1:有 2:预测有 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetHasPet(_hasPet string) error { + r._hasPet = _hasPet + r.Set("has_pet", _hasPet) + return nil +} + +// HasPet Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetHasPet() string { + return r._hasPet +} +// HasHouse Setter +// 预测是否有房 0:没房 1:有房 2:预测有房 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetHasHouse(_hasHouse string) error { + r._hasHouse = _hasHouse + r.Set("has_house", _hasHouse) + return nil +} + +// HasHouse Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetHasHouse() string { + return r._hasHouse +} +// LifeStage Setter +// 预测人生阶段 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetLifeStage(_lifeStage string) error { + r._lifeStage = _lifeStage + r.Set("life_stage", _lifeStage) + return nil +} + +// LifeStage Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetLifeStage() string { + return r._lifeStage +} +// HasCar Setter +// 预测是否有车,0: 没有车 1:自己注册有车2:预测有车 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetHasCar(_hasCar string) error { + r._hasCar = _hasCar + r.Set("has_car", _hasCar) + return nil +} + +// HasCar Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetHasCar() string { + return r._hasCar +} +// IsUndergraduate Setter +// 预测是否在校大学生?0:不是 1 是 2 预测是 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetIsUndergraduate(_isUndergraduate string) error { + r._isUndergraduate = _isUndergraduate + r.Set("is_undergraduate", _isUndergraduate) + return nil +} + +// IsUndergraduate Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetIsUndergraduate() string { + return r._isUndergraduate +} +// UserIncome Setter +// 预测月收入 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetUserIncome(_userIncome string) error { + r._userIncome = _userIncome + r.Set("user_income", _userIncome) + return nil +} + +// UserIncome Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetUserIncome() string { + return r._userIncome +} +// CareerType Setter +// 预测职业 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetCareerType(_careerType string) error { + r._careerType = _careerType + r.Set("career_type", _careerType) + return nil +} + +// CareerType Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetCareerType() string { + return r._careerType +} +// Education Setter +// 预测学历,初高中,博士,专科,硕士,本科 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetEducation(_education string) error { + r._education = _education + r.Set("education", _education) + return nil +} + +// Education Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetEducation() string { + return r._education +} +// RegCityLevel Setter +// 注册IP解析的城市等级 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetRegCityLevel(_regCityLevel string) error { + r._regCityLevel = _regCityLevel + r.Set("reg_city_level", _regCityLevel) + return nil +} + +// RegCityLevel Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetRegCityLevel() string { + return r._regCityLevel +} +// IpAreaName Setter +// 注册IP解析区县名 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetIpAreaName(_ipAreaName string) error { + r._ipAreaName = _ipAreaName + r.Set("ip_area_name", _ipAreaName) + return nil +} + +// IpAreaName Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetIpAreaName() string { + return r._ipAreaName +} +// IpCityName Setter +// 注册IP解析城市名称 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetIpCityName(_ipCityName string) error { + r._ipCityName = _ipCityName + r.Set("ip_city_name", _ipCityName) + return nil +} + +// IpCityName Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetIpCityName() string { + return r._ipCityName +} +// IpProvName Setter +// 注册IP解析的省份名称 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetIpProvName(_ipProvName string) error { + r._ipProvName = _ipProvName + r.Set("ip_prov_name", _ipProvName) + return nil +} + +// IpProvName Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetIpProvName() string { + return r._ipProvName +} +// IdCardNumber Setter +// 用户身份证号 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetIdCardNumber(_idCardNumber string) error { + r._idCardNumber = _idCardNumber + r.Set("id_card_number", _idCardNumber) + return nil +} + +// IdCardNumber Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetIdCardNumber() string { + return r._idCardNumber +} +// Ukeywords Setter +// 用户感兴趣的标签,多个用逗号隔开。如动漫、历史 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetUkeywords(_ukeywords string) error { + r._ukeywords = _ukeywords + r.Set("ukeywords", _ukeywords) + return nil +} + +// Ukeywords Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetUkeywords() string { + return r._ukeywords +} +// Age Setter +// 年龄 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetAge(_age string) error { + r._age = _age + r.Set("age", _age) + return nil +} + +// Age Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetAge() string { + return r._age +} +// Gender Setter +// 性别, 0:未知 1: 男 2:女 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetGender(_gender string) error { + r._gender = _gender + r.Set("gender", _gender) + return nil +} + +// Gender Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetGender() string { + return r._gender +} +// AdFloorPrice Setter +// 底价,单位为分 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetAdFloorPrice(_adFloorPrice string) error { + r._adFloorPrice = _adFloorPrice + r.Set("ad_floor_price", _adFloorPrice) + return nil +} + +// AdFloorPrice Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetAdFloorPrice() string { + return r._adFloorPrice +} +// AdImgType Setter +// 广告位支持图片格式 0: jpg, 1:?jpeg, 2: gif +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetAdImgType(_adImgType string) error { + r._adImgType = _adImgType + r.Set("ad_img_type", _adImgType) + return nil +} + +// AdImgType Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetAdImgType() string { + return r._adImgType +} +// AdPos Setter +// 广告位位置 0:未知,1:头部,2:底部, 3:侧边栏,4:全屏 默认传0 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetAdPos(_adPos string) error { + r._adPos = _adPos + r.Set("ad_pos", _adPos) + return nil +} + +// AdPos Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetAdPos() string { + return r._adPos +} +// AdHeight Setter +// 广告位高度 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetAdHeight(_adHeight string) error { + r._adHeight = _adHeight + r.Set("ad_height", _adHeight) + return nil +} + +// AdHeight Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetAdHeight() string { + return r._adHeight +} +// AdWidth Setter +// 广告位宽度 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetAdWidth(_adWidth string) error { + r._adWidth = _adWidth + r.Set("ad_width", _adWidth) + return nil +} + +// AdWidth Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetAdWidth() string { + return r._adWidth +} +// AdType Setter +// 广告类型 0:横幅,1: 插屏, 2:开屏, 3:原生,4:视频 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetAdType(_adType string) error { + r._adType = _adType + r.Set("ad_type", _adType) + return nil +} + +// AdType Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetAdType() string { + return r._adType +} +// GeoLon Setter +// 设备经度 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetGeoLon(_geoLon string) error { + r._geoLon = _geoLon + r.Set("geo_lon", _geoLon) + return nil +} + +// GeoLon Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetGeoLon() string { + return r._geoLon +} +// GeoLat Setter +// 设备维度 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetGeoLat(_geoLat string) error { + r._geoLat = _geoLat + r.Set("geo_lat", _geoLat) + return nil +} + +// GeoLat Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetGeoLat() string { + return r._geoLat +} +// ScreenHeight Setter +// 设备屏幕纵向分辨率,单位:像素 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetScreenHeight(_screenHeight string) error { + r._screenHeight = _screenHeight + r.Set("screen_height", _screenHeight) + return nil +} + +// ScreenHeight Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetScreenHeight() string { + return r._screenHeight +} +// ScreenWidth Setter +// 设备屏幕水平分辨率,单位:像素 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetScreenWidth(_screenWidth string) error { + r._screenWidth = _screenWidth + r.Set("screen_width", _screenWidth) + return nil +} + +// ScreenWidth Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetScreenWidth() string { + return r._screenWidth +} +// Orientation Setter +// 设备方向:0:未知, 1: 纵向;2: 横向 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetOrientation(_orientation string) error { + r._orientation = _orientation + r.Set("orientation", _orientation) + return nil +} + +// Orientation Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetOrientation() string { + return r._orientation +} +// Carrier Setter +// 运营商,0: 未知, 1:移动,2:电信,3:联通 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetCarrier(_carrier string) error { + r._carrier = _carrier + r.Set("carrier", _carrier) + return nil +} + +// Carrier Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetCarrier() string { + return r._carrier +} +// Network Setter +// 网络类型,0:未知,1:WIFI, 2: 2G, 3: 3G, 4: 4G; 5: 5G +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetNetwork(_network string) error { + r._network = _network + r.Set("network", _network) + return nil +} + +// Network Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetNetwork() string { + return r._network +} +// Brand Setter +// 手机品牌 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetBrand(_brand string) error { + r._brand = _brand + r.Set("brand", _brand) + return nil +} + +// Brand Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetBrand() string { + return r._brand +} +// Made Setter +// 设备厂商 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetMade(_made string) error { + r._made = _made + r.Set("made", _made) + return nil +} + +// Made Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetMade() string { + return r._made +} +// Model Setter +// 设备型号 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetModel(_model string) error { + r._model = _model + r.Set("model", _model) + return nil +} + +// Model Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetModel() string { + return r._model +} +// PosCat Setter +// 素材展示所在的页面或者频道 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetPosCat(_posCat string) error { + r._posCat = _posCat + r.Set("pos_cat", _posCat) + return nil +} + +// PosCat Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetPosCat() string { + return r._posCat +} +// PublishName Setter +// 合作方名称 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetPublishName(_publishName string) error { + r._publishName = _publishName + r.Set("publish_name", _publishName) + return nil +} + +// PublishName Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetPublishName() string { + return r._publishName +} +// PosId Setter +// 给定appid中的位置id,用于提高转化率 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetPosId(_posId string) error { + r._posId = _posId + r.Set("pos_id", _posId) + return nil +} + +// PosId Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetPosId() string { + return r._posId +} +// AppCat Setter +// app类别 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetAppCat(_appCat string) error { + r._appCat = _appCat + r.Set("app_cat", _appCat) + return nil +} + +// AppCat Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetAppCat() string { + return r._appCat +} +// AppVer Setter +// app版本号 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetAppVer(_appVer string) error { + r._appVer = _appVer + r.Set("app_ver", _appVer) + return nil +} + +// AppVer Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetAppVer() string { + return r._appVer +} +// AppName Setter +// 对接的appName +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetAppName(_appName string) error { + r._appName = _appName + r.Set("app_name", _appName) + return nil +} + +// AppName Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetAppName() string { + return r._appName +} +// AppId Setter +// 对接的appId +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetAppId(_appId string) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetAppId() string { + return r._appId +} +// Description Setter +// 关键词的描述 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetDescription() string { + return r._description +} +// Keyword Setter +// 关键词 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetKeyword(_keyword string) error { + r._keyword = _keyword + r.Set("keyword", _keyword) + return nil +} + +// Keyword Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetKeyword() string { + return r._keyword +} +// KeywordType Setter +// 关键词类型 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetKeywordType(_keywordType string) error { + r._keywordType = _keywordType + r.Set("keyword_type", _keywordType) + return nil +} + +// KeywordType Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetKeywordType() string { + return r._keywordType +} +// AppInstallFlag Setter +// 安装转化目标app的标识, 0: 未安装转化目标app, 1: 安装了转化目标app +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetAppInstallFlag(_appInstallFlag string) error { + r._appInstallFlag = _appInstallFlag + r.Set("app_install_flag", _appInstallFlag) + return nil +} + +// AppInstallFlag Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetAppInstallFlag() string { + return r._appInstallFlag +} +// App Setter +// 转化目标app, 1:淘宝;2:天猫;3:闲鱼;4:支付宝 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetApp(_app string) error { + r._app = _app + r.Set("app", _app) + return nil +} + +// App Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetApp() string { + return r._app +} +// IdfaMd5 Setter +// idfa的md5值, 32位小写 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetIdfaMd5(_idfaMd5 string) error { + r._idfaMd5 = _idfaMd5 + r.Set("idfa_md5", _idfaMd5) + return nil +} + +// IdfaMd5 Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetIdfaMd5() string { + return r._idfaMd5 +} +// ImeiMd5 Setter +// imei的md5值, 32位小写 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetImeiMd5(_imeiMd5 string) error { + r._imeiMd5 = _imeiMd5 + r.Set("imei_md5", _imeiMd5) + return nil +} + +// ImeiMd5 Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetImeiMd5() string { + return r._imeiMd5 +} +// Idfa Setter +// idfa原生值 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetIdfa(_idfa string) error { + r._idfa = _idfa + r.Set("idfa", _idfa) + return nil +} + +// Idfa Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetIdfa() string { + return r._idfa +} +// Imei Setter +// imei原生值 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetImei(_imei string) error { + r._imei = _imei + r.Set("imei", _imei) + return nil +} + +// Imei Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetImei() string { + return r._imei +} +// Mobile Setter +// 手机号 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetMobile() string { + return r._mobile +} +// TransformType Setter +// 转化类型, 1: 激活;2: 新登;32896:定向促活 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetTransformType(_transformType string) error { + r._transformType = _transformType + r.Set("transform_type", _transformType) + return nil +} + +// TransformType Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetTransformType() string { + return r._transformType +} +// Os Setter +// 用户所使用设备的系统, 0: android, 1: ios, 2: windowsphone, 3: other +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetOs(_os string) error { + r._os = _os + r.Set("os", _os) + return nil +} + +// Os Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetOs() string { + return r._os +} +// Cid Setter +// 广告创意id,淘宝和媒体协商 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetCid(_cid string) error { + r._cid = _cid + r.Set("cid", _cid) + return nil +} + +// Cid Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetCid() string { + return r._cid +} +// Oaid Setter +// android最新广告标识 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetOaid(_oaid string) error { + r._oaid = _oaid + r.Set("oaid", _oaid) + return nil +} + +// Oaid Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetOaid() string { + return r._oaid +} +// OaidMd5 Setter +// android最新广告标识md5值, 32位小写 +func (r *TaobaoUsergrowthDeliveryAskAPIRequest) SetOaidMd5(_oaidMd5 string) error { + r._oaidMd5 = _oaidMd5 + r.Set("oaid_md5", _oaidMd5) + return nil +} + +// OaidMd5 Getter +func (r TaobaoUsergrowthDeliveryAskAPIRequest) GetOaidMd5() string { + return r._oaidMd5 +} diff --git a/model/usergrowth2/TaobaoUsergrowthDeliveryAskAPIResponse.go b/model/usergrowth2/TaobaoUsergrowthDeliveryAskAPIResponse.go new file mode 100644 index 0000000000..920bac919d --- /dev/null +++ b/model/usergrowth2/TaobaoUsergrowthDeliveryAskAPIResponse.go @@ -0,0 +1,31 @@ +package usergrowth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +广告投放询问 API返回值 +taobao.usergrowth.delivery.ask + +提供给媒体在曝光广告前调用, 返回是否曝光以及曝光的物料信息 +*/ +type TaobaoUsergrowthDeliveryAskAPIResponse struct { + model.CommonResponse + TaobaoUsergrowthDeliveryAskAPIResponseModel +} + +// 广告投放询问 成功返回结果 +type TaobaoUsergrowthDeliveryAskAPIResponseModel struct { + XMLName xml.Name `xml:"usergrowth_delivery_ask_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否是目标用户 + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 素材和出价详情 + Datas []TaobaoUsergrowthDeliveryAskData `json:"datas,omitempty" xml:"datas>taobao_usergrowth_delivery_ask_data,omitempty"` + // 目标用户类型, 1: 拉新;2:促活 + Type string `json:"type,omitempty" xml:"type,omitempty"` +} diff --git a/model/usergrowth2/TaobaoUsergrowthDeliveryAskResponse.go b/model/usergrowth2/TaobaoUsergrowthDeliveryAskResponse.go deleted file mode 100644 index f283e45fdb..0000000000 --- a/model/usergrowth2/TaobaoUsergrowthDeliveryAskResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package usergrowth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -广告投放询问 API返回值 -taobao.usergrowth.delivery.ask - -提供给媒体在曝光广告前调用, 返回是否曝光以及曝光的物料信息 -*/ -type TaobaoUsergrowthDeliveryAskAPIResponse struct { - model.CommonResponse - TaobaoUsergrowthDeliveryAskResponse -} - -// 广告投放询问 成功返回结果 -type TaobaoUsergrowthDeliveryAskResponse struct { - XMLName xml.Name `xml:"usergrowth_delivery_ask_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否是目标用户 - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 素材和出价详情 - Datas []TaobaoUsergrowthDeliveryAskData `json:"datas,omitempty" xml:"datas>taobao_usergrowth_delivery_ask_data,omitempty"` - // 目标用户类型, 1: 拉新;2:促活 - Type string `json:"type,omitempty" xml:"type,omitempty"` -} diff --git a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIRequest.go b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIRequest.go new file mode 100644 index 0000000000..54e6a6d63c --- /dev/null +++ b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIRequest.go @@ -0,0 +1,52 @@ +package usergrowth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +手淘线下拉新业务 t+8转化明细数据 API请求 +taobao.usergrowth.offline.convertion.details.eight.get + +手淘线下拉新业务 给合作渠道返回t+8转化明细数据 +*/ +type TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIRequest struct { + model.Params + // 入参 + _query *OfflineMapiQuery +} + +// 初始化TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIRequest对象 +func NewTaobaoUsergrowthOfflineConvertionDetailsEightGetRequest() *TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIRequest{ + return &TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIRequest) GetApiMethodName() string { + return "taobao.usergrowth.offline.convertion.details.eight.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 入参 +func (r *TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIRequest) SetQuery(_query *OfflineMapiQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIRequest) GetQuery() *OfflineMapiQuery { + return r._query +} diff --git a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIResponse.go b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIResponse.go new file mode 100644 index 0000000000..23ceb0a3ca --- /dev/null +++ b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIResponse.go @@ -0,0 +1,35 @@ +package usergrowth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +手淘线下拉新业务 t+8转化明细数据 API返回值 +taobao.usergrowth.offline.convertion.details.eight.get + +手淘线下拉新业务 给合作渠道返回t+8转化明细数据 +*/ +type TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIResponse struct { + model.CommonResponse + TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIResponseModel +} + +// 手淘线下拉新业务 t+8转化明细数据 成功返回结果 +type TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIResponseModel struct { + XMLName xml.Name `xml:"usergrowth_offline_convertion_details_eight_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 鹰眼id + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 返回数据的总条数 + Total int64 `json:"total,omitempty" xml:"total,omitempty"` + // 每页多少条记录 + PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` + // 页码 + Page int64 `json:"page,omitempty" xml:"page,omitempty"` + // 返回数据集合 + List []TaobaoUsergrowthOfflineConvertionDetailsEightGetE `json:"list,omitempty" xml:"list>taobao_usergrowth_offline_convertion_details_eight_get_e,omitempty"` +} diff --git a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsEightGetResponse.go b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsEightGetResponse.go deleted file mode 100644 index 47554f5278..0000000000 --- a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsEightGetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package usergrowth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -手淘线下拉新业务 t+8转化明细数据 API返回值 -taobao.usergrowth.offline.convertion.details.eight.get - -手淘线下拉新业务 给合作渠道返回t+8转化明细数据 -*/ -type TaobaoUsergrowthOfflineConvertionDetailsEightGetAPIResponse struct { - model.CommonResponse - TaobaoUsergrowthOfflineConvertionDetailsEightGetResponse -} - -// 手淘线下拉新业务 t+8转化明细数据 成功返回结果 -type TaobaoUsergrowthOfflineConvertionDetailsEightGetResponse struct { - XMLName xml.Name `xml:"usergrowth_offline_convertion_details_eight_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 鹰眼id - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 返回数据的总条数 - Total int64 `json:"total,omitempty" xml:"total,omitempty"` - // 每页多少条记录 - PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` - // 页码 - Page int64 `json:"page,omitempty" xml:"page,omitempty"` - // 返回数据集合 - List []TaobaoUsergrowthOfflineConvertionDetailsEightGetE `json:"list,omitempty" xml:"list>taobao_usergrowth_offline_convertion_details_eight_get_e,omitempty"` -} diff --git a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsGetAPIRequest.go b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsGetAPIRequest.go new file mode 100644 index 0000000000..7aac76fe84 --- /dev/null +++ b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsGetAPIRequest.go @@ -0,0 +1,52 @@ +package usergrowth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘系用增线下转化明细 API请求 +taobao.usergrowth.offline.convertion.details.get + +淘系用增增长-线下拉新:为渠道提供返回拉新转化数据接口 +*/ +type TaobaoUsergrowthOfflineConvertionDetailsGetAPIRequest struct { + model.Params + // 入参 + _query *OfflineMapiQuery +} + +// 初始化TaobaoUsergrowthOfflineConvertionDetailsGetAPIRequest对象 +func NewTaobaoUsergrowthOfflineConvertionDetailsGetRequest() *TaobaoUsergrowthOfflineConvertionDetailsGetAPIRequest{ + return &TaobaoUsergrowthOfflineConvertionDetailsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsergrowthOfflineConvertionDetailsGetAPIRequest) GetApiMethodName() string { + return "taobao.usergrowth.offline.convertion.details.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsergrowthOfflineConvertionDetailsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 入参 +func (r *TaobaoUsergrowthOfflineConvertionDetailsGetAPIRequest) SetQuery(_query *OfflineMapiQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r TaobaoUsergrowthOfflineConvertionDetailsGetAPIRequest) GetQuery() *OfflineMapiQuery { + return r._query +} diff --git a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsGetAPIResponse.go b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsGetAPIResponse.go new file mode 100644 index 0000000000..ddd4e111c4 --- /dev/null +++ b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsGetAPIResponse.go @@ -0,0 +1,35 @@ +package usergrowth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘系用增线下转化明细 API返回值 +taobao.usergrowth.offline.convertion.details.get + +淘系用增增长-线下拉新:为渠道提供返回拉新转化数据接口 +*/ +type TaobaoUsergrowthOfflineConvertionDetailsGetAPIResponse struct { + model.CommonResponse + TaobaoUsergrowthOfflineConvertionDetailsGetAPIResponseModel +} + +// 淘系用增线下转化明细 成功返回结果 +type TaobaoUsergrowthOfflineConvertionDetailsGetAPIResponseModel struct { + XMLName xml.Name `xml:"usergrowth_offline_convertion_details_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 鹰眼id + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 返回数据的总条数 + Total int64 `json:"total,omitempty" xml:"total,omitempty"` + // 每页多少条记录 + PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` + // 页码 + Page int64 `json:"page,omitempty" xml:"page,omitempty"` + // 返回数据集合 + List []TaobaoUsergrowthOfflineConvertionDetailsGetE `json:"list,omitempty" xml:"list>taobao_usergrowth_offline_convertion_details_get_e,omitempty"` +} diff --git a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsGetResponse.go b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsGetResponse.go deleted file mode 100644 index f35c1bdb51..0000000000 --- a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionDetailsGetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package usergrowth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘系用增线下转化明细 API返回值 -taobao.usergrowth.offline.convertion.details.get - -淘系用增增长-线下拉新:为渠道提供返回拉新转化数据接口 -*/ -type TaobaoUsergrowthOfflineConvertionDetailsGetAPIResponse struct { - model.CommonResponse - TaobaoUsergrowthOfflineConvertionDetailsGetResponse -} - -// 淘系用增线下转化明细 成功返回结果 -type TaobaoUsergrowthOfflineConvertionDetailsGetResponse struct { - XMLName xml.Name `xml:"usergrowth_offline_convertion_details_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 鹰眼id - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 返回数据的总条数 - Total int64 `json:"total,omitempty" xml:"total,omitempty"` - // 每页多少条记录 - PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` - // 页码 - Page int64 `json:"page,omitempty" xml:"page,omitempty"` - // 返回数据集合 - List []TaobaoUsergrowthOfflineConvertionDetailsGetE `json:"list,omitempty" xml:"list>taobao_usergrowth_offline_convertion_details_get_e,omitempty"` -} diff --git a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIRequest.go b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIRequest.go new file mode 100644 index 0000000000..1d5717ef5f --- /dev/null +++ b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIRequest.go @@ -0,0 +1,52 @@ +package usergrowth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取 手淘用增 线下业务 t+8汇总数据 API请求 +taobao.usergrowth.offline.convertion.summary.eight.get + +淘系用户增长团队-线下拉新业务,对线下渠道提供mapi,目的是为了给有开发能力的渠道提供返数功能,方便渠道对手下的推广者结算(t+8汇总) +*/ +type TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIRequest struct { + model.Params + // 入参 + _query *OfflineMapiQuery +} + +// 初始化TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIRequest对象 +func NewTaobaoUsergrowthOfflineConvertionSummaryEightGetRequest() *TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIRequest{ + return &TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIRequest) GetApiMethodName() string { + return "taobao.usergrowth.offline.convertion.summary.eight.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 入参 +func (r *TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIRequest) SetQuery(_query *OfflineMapiQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIRequest) GetQuery() *OfflineMapiQuery { + return r._query +} diff --git a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIResponse.go b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIResponse.go new file mode 100644 index 0000000000..cb16c489f9 --- /dev/null +++ b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIResponse.go @@ -0,0 +1,35 @@ +package usergrowth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取 手淘用增 线下业务 t+8汇总数据 API返回值 +taobao.usergrowth.offline.convertion.summary.eight.get + +淘系用户增长团队-线下拉新业务,对线下渠道提供mapi,目的是为了给有开发能力的渠道提供返数功能,方便渠道对手下的推广者结算(t+8汇总) +*/ +type TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIResponse struct { + model.CommonResponse + TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIResponseModel +} + +// 获取 手淘用增 线下业务 t+8汇总数据 成功返回结果 +type TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIResponseModel struct { + XMLName xml.Name `xml:"usergrowth_offline_convertion_summary_eight_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 跟踪id + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 总条数 + Total int64 `json:"total,omitempty" xml:"total,omitempty"` + // 每页多少条记录 + PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` + // 页码 + Page int64 `json:"page,omitempty" xml:"page,omitempty"` + // 集合 + List []TaobaoUsergrowthOfflineConvertionSummaryEightGetE `json:"list,omitempty" xml:"list>taobao_usergrowth_offline_convertion_summary_eight_get_e,omitempty"` +} diff --git a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryEightGetResponse.go b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryEightGetResponse.go deleted file mode 100644 index c80684d689..0000000000 --- a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryEightGetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package usergrowth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取 手淘用增 线下业务 t+8汇总数据 API返回值 -taobao.usergrowth.offline.convertion.summary.eight.get - -淘系用户增长团队-线下拉新业务,对线下渠道提供mapi,目的是为了给有开发能力的渠道提供返数功能,方便渠道对手下的推广者结算(t+8汇总) -*/ -type TaobaoUsergrowthOfflineConvertionSummaryEightGetAPIResponse struct { - model.CommonResponse - TaobaoUsergrowthOfflineConvertionSummaryEightGetResponse -} - -// 获取 手淘用增 线下业务 t+8汇总数据 成功返回结果 -type TaobaoUsergrowthOfflineConvertionSummaryEightGetResponse struct { - XMLName xml.Name `xml:"usergrowth_offline_convertion_summary_eight_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 跟踪id - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 总条数 - Total int64 `json:"total,omitempty" xml:"total,omitempty"` - // 每页多少条记录 - PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` - // 页码 - Page int64 `json:"page,omitempty" xml:"page,omitempty"` - // 集合 - List []TaobaoUsergrowthOfflineConvertionSummaryEightGetE `json:"list,omitempty" xml:"list>taobao_usergrowth_offline_convertion_summary_eight_get_e,omitempty"` -} diff --git a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIRequest.go b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIRequest.go new file mode 100644 index 0000000000..fbe417bb03 --- /dev/null +++ b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIRequest.go @@ -0,0 +1,52 @@ +package usergrowth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +手淘用增 线下业务 转化t+1汇总数据 API请求 +taobao.usergrowth.offline.convertion.summary.one.get + +淘系用户增长团队-线下拉新业务,对线下渠道提供mapi,目的是为了给有开发能力的渠道提供返数功能,方便渠道对手下的推广者结算(t+1汇总) +*/ +type TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIRequest struct { + model.Params + // 入参 + _query *OfflineMapiQuery +} + +// 初始化TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIRequest对象 +func NewTaobaoUsergrowthOfflineConvertionSummaryOneGetRequest() *TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIRequest{ + return &TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIRequest) GetApiMethodName() string { + return "taobao.usergrowth.offline.convertion.summary.one.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 入参 +func (r *TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIRequest) SetQuery(_query *OfflineMapiQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIRequest) GetQuery() *OfflineMapiQuery { + return r._query +} diff --git a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIResponse.go b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIResponse.go new file mode 100644 index 0000000000..5c9327091b --- /dev/null +++ b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIResponse.go @@ -0,0 +1,35 @@ +package usergrowth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +手淘用增 线下业务 转化t+1汇总数据 API返回值 +taobao.usergrowth.offline.convertion.summary.one.get + +淘系用户增长团队-线下拉新业务,对线下渠道提供mapi,目的是为了给有开发能力的渠道提供返数功能,方便渠道对手下的推广者结算(t+1汇总) +*/ +type TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIResponse struct { + model.CommonResponse + TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIResponseModel +} + +// 手淘用增 线下业务 转化t+1汇总数据 成功返回结果 +type TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIResponseModel struct { + XMLName xml.Name `xml:"usergrowth_offline_convertion_summary_one_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 跟踪id + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 总条数 + Total int64 `json:"total,omitempty" xml:"total,omitempty"` + // 每页多少条记录 + PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` + // 1 + Page int64 `json:"page,omitempty" xml:"page,omitempty"` + // 集合 + List []OfflineConvertionSummaryT1Dto `json:"list,omitempty" xml:"list>offline_convertion_summary_t1dto,omitempty"` +} diff --git a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryOneGetResponse.go b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryOneGetResponse.go deleted file mode 100644 index 29b6e46260..0000000000 --- a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSummaryOneGetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package usergrowth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -手淘用增 线下业务 转化t+1汇总数据 API返回值 -taobao.usergrowth.offline.convertion.summary.one.get - -淘系用户增长团队-线下拉新业务,对线下渠道提供mapi,目的是为了给有开发能力的渠道提供返数功能,方便渠道对手下的推广者结算(t+1汇总) -*/ -type TaobaoUsergrowthOfflineConvertionSummaryOneGetAPIResponse struct { - model.CommonResponse - TaobaoUsergrowthOfflineConvertionSummaryOneGetResponse -} - -// 手淘用增 线下业务 转化t+1汇总数据 成功返回结果 -type TaobaoUsergrowthOfflineConvertionSummaryOneGetResponse struct { - XMLName xml.Name `xml:"usergrowth_offline_convertion_summary_one_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 跟踪id - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 总条数 - Total int64 `json:"total,omitempty" xml:"total,omitempty"` - // 每页多少条记录 - PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` - // 1 - Page int64 `json:"page,omitempty" xml:"page,omitempty"` - // 集合 - List []OfflineConvertionSummaryT1Dto `json:"list,omitempty" xml:"list>offline_convertion_summary_t1dto,omitempty"` -} diff --git a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIRequest.go b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIRequest.go new file mode 100644 index 0000000000..ee484f7743 --- /dev/null +++ b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIRequest.go @@ -0,0 +1,52 @@ +package usergrowth2 + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询 用增线下业务 转化数据是否同步完成 API请求 +taobao.usergrowth.offline.convertion.sync.info.get + +为手淘线下合作的渠道,提供对外查询数据是否更新完毕接口 +*/ +type TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIRequest struct { + model.Params + // 入参 + _query *OfflineConvertionSyncInfoQuery +} + +// 初始化TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIRequest对象 +func NewTaobaoUsergrowthOfflineConvertionSyncInfoGetRequest() *TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIRequest{ + return &TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIRequest) GetApiMethodName() string { + return "taobao.usergrowth.offline.convertion.sync.info.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 入参 +func (r *TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIRequest) SetQuery(_query *OfflineConvertionSyncInfoQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIRequest) GetQuery() *OfflineConvertionSyncInfoQuery { + return r._query +} diff --git a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIResponse.go b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIResponse.go new file mode 100644 index 0000000000..0bbfba4902 --- /dev/null +++ b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package usergrowth2 + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询 用增线下业务 转化数据是否同步完成 API返回值 +taobao.usergrowth.offline.convertion.sync.info.get + +为手淘线下合作的渠道,提供对外查询数据是否更新完毕接口 +*/ +type TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIResponse struct { + model.CommonResponse + TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIResponseModel +} + +// 查询 用增线下业务 转化数据是否同步完成 成功返回结果 +type TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"usergrowth_offline_convertion_sync_info_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoUsergrowthOfflineConvertionSyncInfoGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSyncInfoGetResponse.go b/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSyncInfoGetResponse.go deleted file mode 100644 index 508a2fd5dc..0000000000 --- a/model/usergrowth2/TaobaoUsergrowthOfflineConvertionSyncInfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package usergrowth2 - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询 用增线下业务 转化数据是否同步完成 API返回值 -taobao.usergrowth.offline.convertion.sync.info.get - -为手淘线下合作的渠道,提供对外查询数据是否更新完毕接口 -*/ -type TaobaoUsergrowthOfflineConvertionSyncInfoGetAPIResponse struct { - model.CommonResponse - TaobaoUsergrowthOfflineConvertionSyncInfoGetResponse -} - -// 查询 用增线下业务 转化数据是否同步完成 成功返回结果 -type TaobaoUsergrowthOfflineConvertionSyncInfoGetResponse struct { - XMLName xml.Name `xml:"usergrowth_offline_convertion_sync_info_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoUsergrowthOfflineConvertionSyncInfoGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/AlibabaAisAssetsTagAbortAPIRequest.go b/model/util/AlibabaAisAssetsTagAbortAPIRequest.go new file mode 100644 index 0000000000..bfb45dcd6a --- /dev/null +++ b/model/util/AlibabaAisAssetsTagAbortAPIRequest.go @@ -0,0 +1,52 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +基础设施资产标签废弃 API请求 +alibaba.ais.assets.tag.abort + +提供浪潮,英业达等厂商供应阿里巴巴基础设施资产的标签QR code未使用的废弃 +*/ +type AlibabaAisAssetsTagAbortAPIRequest struct { + model.Params + // 请求资产信息 + _requestParam string +} + +// 初始化AlibabaAisAssetsTagAbortAPIRequest对象 +func NewAlibabaAisAssetsTagAbortRequest() *AlibabaAisAssetsTagAbortAPIRequest{ + return &AlibabaAisAssetsTagAbortAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAisAssetsTagAbortAPIRequest) GetApiMethodName() string { + return "alibaba.ais.assets.tag.abort" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAisAssetsTagAbortAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestParam Setter +// 请求资产信息 +func (r *AlibabaAisAssetsTagAbortAPIRequest) SetRequestParam(_requestParam string) error { + r._requestParam = _requestParam + r.Set("request_param", _requestParam) + return nil +} + +// RequestParam Getter +func (r AlibabaAisAssetsTagAbortAPIRequest) GetRequestParam() string { + return r._requestParam +} diff --git a/model/util/AlibabaAisAssetsTagAbortAPIResponse.go b/model/util/AlibabaAisAssetsTagAbortAPIResponse.go new file mode 100644 index 0000000000..36af71a0bc --- /dev/null +++ b/model/util/AlibabaAisAssetsTagAbortAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +基础设施资产标签废弃 API返回值 +alibaba.ais.assets.tag.abort + +提供浪潮,英业达等厂商供应阿里巴巴基础设施资产的标签QR code未使用的废弃 +*/ +type AlibabaAisAssetsTagAbortAPIResponse struct { + model.CommonResponse + AlibabaAisAssetsTagAbortAPIResponseModel +} + +// 基础设施资产标签废弃 成功返回结果 +type AlibabaAisAssetsTagAbortAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ais_assets_tag_abort_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最外层结果 + Result *BaseRep `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/util/AlibabaAisAssetsTagAbortResponse.go b/model/util/AlibabaAisAssetsTagAbortResponse.go deleted file mode 100644 index 6fc4cae481..0000000000 --- a/model/util/AlibabaAisAssetsTagAbortResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -基础设施资产标签废弃 API返回值 -alibaba.ais.assets.tag.abort - -提供浪潮,英业达等厂商供应阿里巴巴基础设施资产的标签QR code未使用的废弃 -*/ -type AlibabaAisAssetsTagAbortAPIResponse struct { - model.CommonResponse - AlibabaAisAssetsTagAbortResponse -} - -// 基础设施资产标签废弃 成功返回结果 -type AlibabaAisAssetsTagAbortResponse struct { - XMLName xml.Name `xml:"alibaba_ais_assets_tag_abort_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最外层结果 - Result *BaseRep `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/AlibabaAisAssetsTagGenerateAPIRequest.go b/model/util/AlibabaAisAssetsTagGenerateAPIRequest.go new file mode 100644 index 0000000000..17b6c689be --- /dev/null +++ b/model/util/AlibabaAisAssetsTagGenerateAPIRequest.go @@ -0,0 +1,52 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +基础设施资产标签生成 API请求 +alibaba.ais.assets.tag.generate + +提供浪潮,英业达等厂商供应阿里巴巴基础设施资产的标签QR code生成 +*/ +type AlibabaAisAssetsTagGenerateAPIRequest struct { + model.Params + // 请求资产信息 + _requestParam string +} + +// 初始化AlibabaAisAssetsTagGenerateAPIRequest对象 +func NewAlibabaAisAssetsTagGenerateRequest() *AlibabaAisAssetsTagGenerateAPIRequest{ + return &AlibabaAisAssetsTagGenerateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAisAssetsTagGenerateAPIRequest) GetApiMethodName() string { + return "alibaba.ais.assets.tag.generate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAisAssetsTagGenerateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestParam Setter +// 请求资产信息 +func (r *AlibabaAisAssetsTagGenerateAPIRequest) SetRequestParam(_requestParam string) error { + r._requestParam = _requestParam + r.Set("request_param", _requestParam) + return nil +} + +// RequestParam Getter +func (r AlibabaAisAssetsTagGenerateAPIRequest) GetRequestParam() string { + return r._requestParam +} diff --git a/model/util/AlibabaAisAssetsTagGenerateAPIResponse.go b/model/util/AlibabaAisAssetsTagGenerateAPIResponse.go new file mode 100644 index 0000000000..040c9bb604 --- /dev/null +++ b/model/util/AlibabaAisAssetsTagGenerateAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +基础设施资产标签生成 API返回值 +alibaba.ais.assets.tag.generate + +提供浪潮,英业达等厂商供应阿里巴巴基础设施资产的标签QR code生成 +*/ +type AlibabaAisAssetsTagGenerateAPIResponse struct { + model.CommonResponse + AlibabaAisAssetsTagGenerateAPIResponseModel +} + +// 基础设施资产标签生成 成功返回结果 +type AlibabaAisAssetsTagGenerateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ais_assets_tag_generate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最外层结果 + Result *BaseRep `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/util/AlibabaAisAssetsTagGenerateResponse.go b/model/util/AlibabaAisAssetsTagGenerateResponse.go deleted file mode 100644 index b48662aad8..0000000000 --- a/model/util/AlibabaAisAssetsTagGenerateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -基础设施资产标签生成 API返回值 -alibaba.ais.assets.tag.generate - -提供浪潮,英业达等厂商供应阿里巴巴基础设施资产的标签QR code生成 -*/ -type AlibabaAisAssetsTagGenerateAPIResponse struct { - model.CommonResponse - AlibabaAisAssetsTagGenerateResponse -} - -// 基础设施资产标签生成 成功返回结果 -type AlibabaAisAssetsTagGenerateResponse struct { - XMLName xml.Name `xml:"alibaba_ais_assets_tag_generate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最外层结果 - Result *BaseRep `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/AlibabaAisAssetsTagGetAPIRequest.go b/model/util/AlibabaAisAssetsTagGetAPIRequest.go new file mode 100644 index 0000000000..279e678370 --- /dev/null +++ b/model/util/AlibabaAisAssetsTagGetAPIRequest.go @@ -0,0 +1,52 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +基础设施资产标签获取 API请求 +alibaba.ais.assets.tag.get + +提供浪潮,英业达等厂商供应阿里巴巴基础设施资产的标签QR code获取 +*/ +type AlibabaAisAssetsTagGetAPIRequest struct { + model.Params + // 二维码生成唯一标识 + _uNonce string +} + +// 初始化AlibabaAisAssetsTagGetAPIRequest对象 +func NewAlibabaAisAssetsTagGetRequest() *AlibabaAisAssetsTagGetAPIRequest{ + return &AlibabaAisAssetsTagGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAisAssetsTagGetAPIRequest) GetApiMethodName() string { + return "alibaba.ais.assets.tag.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAisAssetsTagGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UNonce Setter +// 二维码生成唯一标识 +func (r *AlibabaAisAssetsTagGetAPIRequest) SetUNonce(_uNonce string) error { + r._uNonce = _uNonce + r.Set("u_nonce", _uNonce) + return nil +} + +// UNonce Getter +func (r AlibabaAisAssetsTagGetAPIRequest) GetUNonce() string { + return r._uNonce +} diff --git a/model/util/AlibabaAisAssetsTagGetAPIResponse.go b/model/util/AlibabaAisAssetsTagGetAPIResponse.go new file mode 100644 index 0000000000..d67554cf43 --- /dev/null +++ b/model/util/AlibabaAisAssetsTagGetAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +基础设施资产标签获取 API返回值 +alibaba.ais.assets.tag.get + +提供浪潮,英业达等厂商供应阿里巴巴基础设施资产的标签QR code获取 +*/ +type AlibabaAisAssetsTagGetAPIResponse struct { + model.CommonResponse + AlibabaAisAssetsTagGetAPIResponseModel +} + +// 基础设施资产标签获取 成功返回结果 +type AlibabaAisAssetsTagGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ais_assets_tag_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 最外层结果 + Result *BaseRep `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/util/AlibabaAisAssetsTagGetResponse.go b/model/util/AlibabaAisAssetsTagGetResponse.go deleted file mode 100644 index f4f511ca3e..0000000000 --- a/model/util/AlibabaAisAssetsTagGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -基础设施资产标签获取 API返回值 -alibaba.ais.assets.tag.get - -提供浪潮,英业达等厂商供应阿里巴巴基础设施资产的标签QR code获取 -*/ -type AlibabaAisAssetsTagGetAPIResponse struct { - model.CommonResponse - AlibabaAisAssetsTagGetResponse -} - -// 基础设施资产标签获取 成功返回结果 -type AlibabaAisAssetsTagGetResponse struct { - XMLName xml.Name `xml:"alibaba_ais_assets_tag_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 最外层结果 - Result *BaseRep `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/AlibabaCuntaoInteractRequisitionGetAPIRequest.go b/model/util/AlibabaCuntaoInteractRequisitionGetAPIRequest.go new file mode 100644 index 0000000000..ed6f4d8fb2 --- /dev/null +++ b/model/util/AlibabaCuntaoInteractRequisitionGetAPIRequest.go @@ -0,0 +1,94 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商获取物料申请单列表 API请求 +alibaba.cuntao.interact.requisition.get + +供应商获取物料申请单列表 +*/ +type AlibabaCuntaoInteractRequisitionGetAPIRequest struct { + model.Params + // 页大小,默认20 + _pageSize int64 + // 截止时间戳,开区间 + _gmtCreateEnd int64 + // 开始时间戳,闭区间 + _gmtCreateStart int64 + // 页码,从0开始 + _pageIndex int64 +} + +// 初始化AlibabaCuntaoInteractRequisitionGetAPIRequest对象 +func NewAlibabaCuntaoInteractRequisitionGetRequest() *AlibabaCuntaoInteractRequisitionGetAPIRequest{ + return &AlibabaCuntaoInteractRequisitionGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCuntaoInteractRequisitionGetAPIRequest) GetApiMethodName() string { + return "alibaba.cuntao.interact.requisition.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCuntaoInteractRequisitionGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageSize Setter +// 页大小,默认20 +func (r *AlibabaCuntaoInteractRequisitionGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaCuntaoInteractRequisitionGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// GmtCreateEnd Setter +// 截止时间戳,开区间 +func (r *AlibabaCuntaoInteractRequisitionGetAPIRequest) SetGmtCreateEnd(_gmtCreateEnd int64) error { + r._gmtCreateEnd = _gmtCreateEnd + r.Set("gmt_create_end", _gmtCreateEnd) + return nil +} + +// GmtCreateEnd Getter +func (r AlibabaCuntaoInteractRequisitionGetAPIRequest) GetGmtCreateEnd() int64 { + return r._gmtCreateEnd +} +// GmtCreateStart Setter +// 开始时间戳,闭区间 +func (r *AlibabaCuntaoInteractRequisitionGetAPIRequest) SetGmtCreateStart(_gmtCreateStart int64) error { + r._gmtCreateStart = _gmtCreateStart + r.Set("gmt_create_start", _gmtCreateStart) + return nil +} + +// GmtCreateStart Getter +func (r AlibabaCuntaoInteractRequisitionGetAPIRequest) GetGmtCreateStart() int64 { + return r._gmtCreateStart +} +// PageIndex Setter +// 页码,从0开始 +func (r *AlibabaCuntaoInteractRequisitionGetAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r AlibabaCuntaoInteractRequisitionGetAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} diff --git a/model/util/AlibabaCuntaoInteractRequisitionGetAPIResponse.go b/model/util/AlibabaCuntaoInteractRequisitionGetAPIResponse.go new file mode 100644 index 0000000000..2c9eb16f31 --- /dev/null +++ b/model/util/AlibabaCuntaoInteractRequisitionGetAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应商获取物料申请单列表 API返回值 +alibaba.cuntao.interact.requisition.get + +供应商获取物料申请单列表 +*/ +type AlibabaCuntaoInteractRequisitionGetAPIResponse struct { + model.CommonResponse + AlibabaCuntaoInteractRequisitionGetAPIResponseModel +} + +// 供应商获取物料申请单列表 成功返回结果 +type AlibabaCuntaoInteractRequisitionGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_cuntao_interact_requisition_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaCuntaoInteractRequisitionGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/util/AlibabaCuntaoInteractRequisitionGetResponse.go b/model/util/AlibabaCuntaoInteractRequisitionGetResponse.go deleted file mode 100644 index fb6943c7c0..0000000000 --- a/model/util/AlibabaCuntaoInteractRequisitionGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应商获取物料申请单列表 API返回值 -alibaba.cuntao.interact.requisition.get - -供应商获取物料申请单列表 -*/ -type AlibabaCuntaoInteractRequisitionGetAPIResponse struct { - model.CommonResponse - AlibabaCuntaoInteractRequisitionGetResponse -} - -// 供应商获取物料申请单列表 成功返回结果 -type AlibabaCuntaoInteractRequisitionGetResponse struct { - XMLName xml.Name `xml:"alibaba_cuntao_interact_requisition_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaCuntaoInteractRequisitionGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/AlibabaCuntaoInteractRequisitionUpdateAPIRequest.go b/model/util/AlibabaCuntaoInteractRequisitionUpdateAPIRequest.go new file mode 100644 index 0000000000..b52125a454 --- /dev/null +++ b/model/util/AlibabaCuntaoInteractRequisitionUpdateAPIRequest.go @@ -0,0 +1,66 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新物料制作状态 API请求 +alibaba.cuntao.interact.requisition.update + +村淘物料下沉,更新物料制作状态 +*/ +type AlibabaCuntaoInteractRequisitionUpdateAPIRequest struct { + model.Params + // 物料制作状态 + _status string + // 申请单id列表 + _uuidList []string +} + +// 初始化AlibabaCuntaoInteractRequisitionUpdateAPIRequest对象 +func NewAlibabaCuntaoInteractRequisitionUpdateRequest() *AlibabaCuntaoInteractRequisitionUpdateAPIRequest{ + return &AlibabaCuntaoInteractRequisitionUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaCuntaoInteractRequisitionUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.cuntao.interact.requisition.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaCuntaoInteractRequisitionUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Status Setter +// 物料制作状态 +func (r *AlibabaCuntaoInteractRequisitionUpdateAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaCuntaoInteractRequisitionUpdateAPIRequest) GetStatus() string { + return r._status +} +// UuidList Setter +// 申请单id列表 +func (r *AlibabaCuntaoInteractRequisitionUpdateAPIRequest) SetUuidList(_uuidList []string) error { + r._uuidList = _uuidList + r.Set("uuid_list", _uuidList) + return nil +} + +// UuidList Getter +func (r AlibabaCuntaoInteractRequisitionUpdateAPIRequest) GetUuidList() []string { + return r._uuidList +} diff --git a/model/util/AlibabaCuntaoInteractRequisitionUpdateAPIResponse.go b/model/util/AlibabaCuntaoInteractRequisitionUpdateAPIResponse.go new file mode 100644 index 0000000000..2fca8e13d3 --- /dev/null +++ b/model/util/AlibabaCuntaoInteractRequisitionUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新物料制作状态 API返回值 +alibaba.cuntao.interact.requisition.update + +村淘物料下沉,更新物料制作状态 +*/ +type AlibabaCuntaoInteractRequisitionUpdateAPIResponse struct { + model.CommonResponse + AlibabaCuntaoInteractRequisitionUpdateAPIResponseModel +} + +// 更新物料制作状态 成功返回结果 +type AlibabaCuntaoInteractRequisitionUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_cuntao_interact_requisition_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaCuntaoInteractRequisitionUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/util/AlibabaCuntaoInteractRequisitionUpdateResponse.go b/model/util/AlibabaCuntaoInteractRequisitionUpdateResponse.go deleted file mode 100644 index 82702b4920..0000000000 --- a/model/util/AlibabaCuntaoInteractRequisitionUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新物料制作状态 API返回值 -alibaba.cuntao.interact.requisition.update - -村淘物料下沉,更新物料制作状态 -*/ -type AlibabaCuntaoInteractRequisitionUpdateAPIResponse struct { - model.CommonResponse - AlibabaCuntaoInteractRequisitionUpdateResponse -} - -// 更新物料制作状态 成功返回结果 -type AlibabaCuntaoInteractRequisitionUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_cuntao_interact_requisition_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaCuntaoInteractRequisitionUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/AlibabaInteractSensorUiAPIRequest.go b/model/util/AlibabaInteractSensorUiAPIRequest.go new file mode 100644 index 0000000000..0cca571ac8 --- /dev/null +++ b/model/util/AlibabaInteractSensorUiAPIRequest.go @@ -0,0 +1,52 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +基本ui操作 API请求 +alibaba.interact.sensor.ui + +Weex 基本UI操作 +*/ +type AlibabaInteractSensorUiAPIRequest struct { + model.Params + // 仅作客户端鉴权使用,不会发送接收请求 + _unNamed string +} + +// 初始化AlibabaInteractSensorUiAPIRequest对象 +func NewAlibabaInteractSensorUiRequest() *AlibabaInteractSensorUiAPIRequest{ + return &AlibabaInteractSensorUiAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSensorUiAPIRequest) GetApiMethodName() string { + return "alibaba.interact.sensor.ui" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSensorUiAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UnNamed Setter +// 仅作客户端鉴权使用,不会发送接收请求 +func (r *AlibabaInteractSensorUiAPIRequest) SetUnNamed(_unNamed string) error { + r._unNamed = _unNamed + r.Set("un_named", _unNamed) + return nil +} + +// UnNamed Getter +func (r AlibabaInteractSensorUiAPIRequest) GetUnNamed() string { + return r._unNamed +} diff --git a/model/util/AlibabaInteractSensorUiAPIResponse.go b/model/util/AlibabaInteractSensorUiAPIResponse.go new file mode 100644 index 0000000000..4e8361a636 --- /dev/null +++ b/model/util/AlibabaInteractSensorUiAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +基本ui操作 API返回值 +alibaba.interact.sensor.ui + +Weex 基本UI操作 +*/ +type AlibabaInteractSensorUiAPIResponse struct { + model.CommonResponse + AlibabaInteractSensorUiAPIResponseModel +} + +// 基本ui操作 成功返回结果 +type AlibabaInteractSensorUiAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_sensor_ui_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 仅作客户端鉴权使用,不会发送接收请求 + Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"` +} diff --git a/model/util/AlibabaInteractSensorUiResponse.go b/model/util/AlibabaInteractSensorUiResponse.go deleted file mode 100644 index 7856276b9c..0000000000 --- a/model/util/AlibabaInteractSensorUiResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -基本ui操作 API返回值 -alibaba.interact.sensor.ui - -Weex 基本UI操作 -*/ -type AlibabaInteractSensorUiAPIResponse struct { - model.CommonResponse - AlibabaInteractSensorUiResponse -} - -// 基本ui操作 成功返回结果 -type AlibabaInteractSensorUiResponse struct { - XMLName xml.Name `xml:"alibaba_interact_sensor_ui_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 仅作客户端鉴权使用,不会发送接收请求 - Unnamed string `json:"unnamed,omitempty" xml:"unnamed,omitempty"` -} diff --git a/model/util/AlibabaInteractSupplierAwardResourceGetCuntaoAPIRequest.go b/model/util/AlibabaInteractSupplierAwardResourceGetCuntaoAPIRequest.go new file mode 100644 index 0000000000..22bc8a6469 --- /dev/null +++ b/model/util/AlibabaInteractSupplierAwardResourceGetCuntaoAPIRequest.go @@ -0,0 +1,94 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +权益池信息查询 API请求 +alibaba.interact.supplier.award.resource.get.cuntao + +农村淘宝营销互动权益池信息查询 +*/ +type AlibabaInteractSupplierAwardResourceGetCuntaoAPIRequest struct { + model.Params + // 用户昵称 + _userNick string + // 活动code + _activityKey string + // 经度 + _lng string + // 纬度 + _lat string +} + +// 初始化AlibabaInteractSupplierAwardResourceGetCuntaoAPIRequest对象 +func NewAlibabaInteractSupplierAwardResourceGetCuntaoRequest() *AlibabaInteractSupplierAwardResourceGetCuntaoAPIRequest{ + return &AlibabaInteractSupplierAwardResourceGetCuntaoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaInteractSupplierAwardResourceGetCuntaoAPIRequest) GetApiMethodName() string { + return "alibaba.interact.supplier.award.resource.get.cuntao" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaInteractSupplierAwardResourceGetCuntaoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserNick Setter +// 用户昵称 +func (r *AlibabaInteractSupplierAwardResourceGetCuntaoAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r AlibabaInteractSupplierAwardResourceGetCuntaoAPIRequest) GetUserNick() string { + return r._userNick +} +// ActivityKey Setter +// 活动code +func (r *AlibabaInteractSupplierAwardResourceGetCuntaoAPIRequest) SetActivityKey(_activityKey string) error { + r._activityKey = _activityKey + r.Set("activity_key", _activityKey) + return nil +} + +// ActivityKey Getter +func (r AlibabaInteractSupplierAwardResourceGetCuntaoAPIRequest) GetActivityKey() string { + return r._activityKey +} +// Lng Setter +// 经度 +func (r *AlibabaInteractSupplierAwardResourceGetCuntaoAPIRequest) SetLng(_lng string) error { + r._lng = _lng + r.Set("lng", _lng) + return nil +} + +// Lng Getter +func (r AlibabaInteractSupplierAwardResourceGetCuntaoAPIRequest) GetLng() string { + return r._lng +} +// Lat Setter +// 纬度 +func (r *AlibabaInteractSupplierAwardResourceGetCuntaoAPIRequest) SetLat(_lat string) error { + r._lat = _lat + r.Set("lat", _lat) + return nil +} + +// Lat Getter +func (r AlibabaInteractSupplierAwardResourceGetCuntaoAPIRequest) GetLat() string { + return r._lat +} diff --git a/model/util/AlibabaInteractSupplierAwardResourceGetCuntaoAPIResponse.go b/model/util/AlibabaInteractSupplierAwardResourceGetCuntaoAPIResponse.go new file mode 100644 index 0000000000..2a054e5f8a --- /dev/null +++ b/model/util/AlibabaInteractSupplierAwardResourceGetCuntaoAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +权益池信息查询 API返回值 +alibaba.interact.supplier.award.resource.get.cuntao + +农村淘宝营销互动权益池信息查询 +*/ +type AlibabaInteractSupplierAwardResourceGetCuntaoAPIResponse struct { + model.CommonResponse + AlibabaInteractSupplierAwardResourceGetCuntaoAPIResponseModel +} + +// 权益池信息查询 成功返回结果 +type AlibabaInteractSupplierAwardResourceGetCuntaoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_interact_supplier_award_resource_get_cuntao_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 监控宝推送网站监控信息,返回结果 + Result *AlibabaInteractSupplierAwardResourceGetCuntaoResultModel `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/util/AlibabaInteractSupplierAwardResourceGetCuntaoResponse.go b/model/util/AlibabaInteractSupplierAwardResourceGetCuntaoResponse.go deleted file mode 100644 index 0ed4f52aa2..0000000000 --- a/model/util/AlibabaInteractSupplierAwardResourceGetCuntaoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -权益池信息查询 API返回值 -alibaba.interact.supplier.award.resource.get.cuntao - -农村淘宝营销互动权益池信息查询 -*/ -type AlibabaInteractSupplierAwardResourceGetCuntaoAPIResponse struct { - model.CommonResponse - AlibabaInteractSupplierAwardResourceGetCuntaoResponse -} - -// 权益池信息查询 成功返回结果 -type AlibabaInteractSupplierAwardResourceGetCuntaoResponse struct { - XMLName xml.Name `xml:"alibaba_interact_supplier_award_resource_get_cuntao_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 监控宝推送网站监控信息,返回结果 - Result *AlibabaInteractSupplierAwardResourceGetCuntaoResultModel `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/AlibabaMosFalconPosCounterQueryAPIRequest.go b/model/util/AlibabaMosFalconPosCounterQueryAPIRequest.go new file mode 100644 index 0000000000..695b19e95c --- /dev/null +++ b/model/util/AlibabaMosFalconPosCounterQueryAPIRequest.go @@ -0,0 +1,80 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +云POS查看专柜属性 API请求 +alibaba.mos.falcon.pos.counter.query + +银泰商业获取专柜是否支持小数等属性查看 +*/ +type AlibabaMosFalconPosCounterQueryAPIRequest struct { + model.Params + // 设备序列号 + _sn string + // 门店号 + _storeNo string + // 专柜号 + _counterNo string +} + +// 初始化AlibabaMosFalconPosCounterQueryAPIRequest对象 +func NewAlibabaMosFalconPosCounterQueryRequest() *AlibabaMosFalconPosCounterQueryAPIRequest{ + return &AlibabaMosFalconPosCounterQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaMosFalconPosCounterQueryAPIRequest) GetApiMethodName() string { + return "alibaba.mos.falcon.pos.counter.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaMosFalconPosCounterQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Sn Setter +// 设备序列号 +func (r *AlibabaMosFalconPosCounterQueryAPIRequest) SetSn(_sn string) error { + r._sn = _sn + r.Set("sn", _sn) + return nil +} + +// Sn Getter +func (r AlibabaMosFalconPosCounterQueryAPIRequest) GetSn() string { + return r._sn +} +// StoreNo Setter +// 门店号 +func (r *AlibabaMosFalconPosCounterQueryAPIRequest) SetStoreNo(_storeNo string) error { + r._storeNo = _storeNo + r.Set("store_no", _storeNo) + return nil +} + +// StoreNo Getter +func (r AlibabaMosFalconPosCounterQueryAPIRequest) GetStoreNo() string { + return r._storeNo +} +// CounterNo Setter +// 专柜号 +func (r *AlibabaMosFalconPosCounterQueryAPIRequest) SetCounterNo(_counterNo string) error { + r._counterNo = _counterNo + r.Set("counter_no", _counterNo) + return nil +} + +// CounterNo Getter +func (r AlibabaMosFalconPosCounterQueryAPIRequest) GetCounterNo() string { + return r._counterNo +} diff --git a/model/util/AlibabaMosFalconPosCounterQueryAPIResponse.go b/model/util/AlibabaMosFalconPosCounterQueryAPIResponse.go new file mode 100644 index 0000000000..b737a27798 --- /dev/null +++ b/model/util/AlibabaMosFalconPosCounterQueryAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +云POS查看专柜属性 API返回值 +alibaba.mos.falcon.pos.counter.query + +银泰商业获取专柜是否支持小数等属性查看 +*/ +type AlibabaMosFalconPosCounterQueryAPIResponse struct { + model.CommonResponse + AlibabaMosFalconPosCounterQueryAPIResponseModel +} + +// 云POS查看专柜属性 成功返回结果 +type AlibabaMosFalconPosCounterQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_mos_falcon_pos_counter_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaMosFalconPosCounterQueryResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/util/AlibabaMosFalconPosCounterQueryResponse.go b/model/util/AlibabaMosFalconPosCounterQueryResponse.go deleted file mode 100644 index ff68d091af..0000000000 --- a/model/util/AlibabaMosFalconPosCounterQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -云POS查看专柜属性 API返回值 -alibaba.mos.falcon.pos.counter.query - -银泰商业获取专柜是否支持小数等属性查看 -*/ -type AlibabaMosFalconPosCounterQueryAPIResponse struct { - model.CommonResponse - AlibabaMosFalconPosCounterQueryResponse -} - -// 云POS查看专柜属性 成功返回结果 -type AlibabaMosFalconPosCounterQueryResponse struct { - XMLName xml.Name `xml:"alibaba_mos_falcon_pos_counter_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaMosFalconPosCounterQueryResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/AlibabaMosFalconPosCounterQueryResultDo.go b/model/util/AlibabaMosFalconPosCounterQueryResultDo.go new file mode 100644 index 0000000000..38aa0976b2 --- /dev/null +++ b/model/util/AlibabaMosFalconPosCounterQueryResultDo.go @@ -0,0 +1,21 @@ +package util + +// AlibabaMosFalconPosCounterQueryResultDo +type AlibabaMosFalconPosCounterQueryResultDo struct { + // traceId + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // total + Total int64 `json:"total,omitempty" xml:"total,omitempty"` + // 是否成功 + Data *PosInfoDto `json:"data,omitempty" xml:"data,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 错误码 + ErrCode int64 `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 额外 + Extra string `json:"extra,omitempty" xml:"extra,omitempty"` + // 错误信息 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // 标题 + Titles []string `json:"titles,omitempty" xml:"titles>string,omitempty"` +} diff --git a/model/util/AlibabaRetailDeviceTradeShipAPIRequest.go b/model/util/AlibabaRetailDeviceTradeShipAPIRequest.go new file mode 100644 index 0000000000..164475bb59 --- /dev/null +++ b/model/util/AlibabaRetailDeviceTradeShipAPIRequest.go @@ -0,0 +1,108 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机掉货成功通知 API请求 +alibaba.retail.device.trade.ship + +贩卖机发货 +*/ +type AlibabaRetailDeviceTradeShipAPIRequest struct { + model.Params + // 设备类型 + _deviceType string + // 设备ID + _deviceId string + // 内部订单编号 + _tradeNo string + // 详情 + _shipDetailList []ShipDetailDto + // 选项 + _orderUpdateOption *OrderUpdateOption +} + +// 初始化AlibabaRetailDeviceTradeShipAPIRequest对象 +func NewAlibabaRetailDeviceTradeShipRequest() *AlibabaRetailDeviceTradeShipAPIRequest{ + return &AlibabaRetailDeviceTradeShipAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailDeviceTradeShipAPIRequest) GetApiMethodName() string { + return "alibaba.retail.device.trade.ship" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailDeviceTradeShipAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceType Setter +// 设备类型 +func (r *AlibabaRetailDeviceTradeShipAPIRequest) SetDeviceType(_deviceType string) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r AlibabaRetailDeviceTradeShipAPIRequest) GetDeviceType() string { + return r._deviceType +} +// DeviceId Setter +// 设备ID +func (r *AlibabaRetailDeviceTradeShipAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r AlibabaRetailDeviceTradeShipAPIRequest) GetDeviceId() string { + return r._deviceId +} +// TradeNo Setter +// 内部订单编号 +func (r *AlibabaRetailDeviceTradeShipAPIRequest) SetTradeNo(_tradeNo string) error { + r._tradeNo = _tradeNo + r.Set("trade_no", _tradeNo) + return nil +} + +// TradeNo Getter +func (r AlibabaRetailDeviceTradeShipAPIRequest) GetTradeNo() string { + return r._tradeNo +} +// ShipDetailList Setter +// 详情 +func (r *AlibabaRetailDeviceTradeShipAPIRequest) SetShipDetailList(_shipDetailList []ShipDetailDto) error { + r._shipDetailList = _shipDetailList + r.Set("ship_detail_list", _shipDetailList) + return nil +} + +// ShipDetailList Getter +func (r AlibabaRetailDeviceTradeShipAPIRequest) GetShipDetailList() []ShipDetailDto { + return r._shipDetailList +} +// OrderUpdateOption Setter +// 选项 +func (r *AlibabaRetailDeviceTradeShipAPIRequest) SetOrderUpdateOption(_orderUpdateOption *OrderUpdateOption) error { + r._orderUpdateOption = _orderUpdateOption + r.Set("order_update_option", _orderUpdateOption) + return nil +} + +// OrderUpdateOption Getter +func (r AlibabaRetailDeviceTradeShipAPIRequest) GetOrderUpdateOption() *OrderUpdateOption { + return r._orderUpdateOption +} diff --git a/model/util/AlibabaRetailDeviceTradeShipAPIResponse.go b/model/util/AlibabaRetailDeviceTradeShipAPIResponse.go new file mode 100644 index 0000000000..5c3a5c55ef --- /dev/null +++ b/model/util/AlibabaRetailDeviceTradeShipAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +贩卖机掉货成功通知 API返回值 +alibaba.retail.device.trade.ship + +贩卖机发货 +*/ +type AlibabaRetailDeviceTradeShipAPIResponse struct { + model.CommonResponse + AlibabaRetailDeviceTradeShipAPIResponseModel +} + +// 贩卖机掉货成功通知 成功返回结果 +type AlibabaRetailDeviceTradeShipAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_device_trade_ship_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaRetailDeviceTradeShipResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/util/AlibabaRetailDeviceTradeShipResponse.go b/model/util/AlibabaRetailDeviceTradeShipResponse.go deleted file mode 100644 index 30c583b1f0..0000000000 --- a/model/util/AlibabaRetailDeviceTradeShipResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -贩卖机掉货成功通知 API返回值 -alibaba.retail.device.trade.ship - -贩卖机发货 -*/ -type AlibabaRetailDeviceTradeShipAPIResponse struct { - model.CommonResponse - AlibabaRetailDeviceTradeShipResponse -} - -// 贩卖机掉货成功通知 成功返回结果 -type AlibabaRetailDeviceTradeShipResponse struct { - XMLName xml.Name `xml:"alibaba_retail_device_trade_ship_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaRetailDeviceTradeShipResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/AlibabaRetailShorturlGetAPIRequest.go b/model/util/AlibabaRetailShorturlGetAPIRequest.go new file mode 100644 index 0000000000..d107cbb292 --- /dev/null +++ b/model/util/AlibabaRetailShorturlGetAPIRequest.go @@ -0,0 +1,66 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +短链接获取 API请求 +alibaba.retail.shorturl.get + +短链接获取 +*/ +type AlibabaRetailShorturlGetAPIRequest struct { + model.Params + // 源url + _sourceUrl string + // 系统自动生成 + _options *ShortUrlOption +} + +// 初始化AlibabaRetailShorturlGetAPIRequest对象 +func NewAlibabaRetailShorturlGetRequest() *AlibabaRetailShorturlGetAPIRequest{ + return &AlibabaRetailShorturlGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailShorturlGetAPIRequest) GetApiMethodName() string { + return "alibaba.retail.shorturl.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailShorturlGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SourceUrl Setter +// 源url +func (r *AlibabaRetailShorturlGetAPIRequest) SetSourceUrl(_sourceUrl string) error { + r._sourceUrl = _sourceUrl + r.Set("source_url", _sourceUrl) + return nil +} + +// SourceUrl Getter +func (r AlibabaRetailShorturlGetAPIRequest) GetSourceUrl() string { + return r._sourceUrl +} +// Options Setter +// 系统自动生成 +func (r *AlibabaRetailShorturlGetAPIRequest) SetOptions(_options *ShortUrlOption) error { + r._options = _options + r.Set("options", _options) + return nil +} + +// Options Getter +func (r AlibabaRetailShorturlGetAPIRequest) GetOptions() *ShortUrlOption { + return r._options +} diff --git a/model/util/AlibabaRetailShorturlGetAPIResponse.go b/model/util/AlibabaRetailShorturlGetAPIResponse.go new file mode 100644 index 0000000000..a463a72cc2 --- /dev/null +++ b/model/util/AlibabaRetailShorturlGetAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +短链接获取 API返回值 +alibaba.retail.shorturl.get + +短链接获取 +*/ +type AlibabaRetailShorturlGetAPIResponse struct { + model.CommonResponse + AlibabaRetailShorturlGetAPIResponseModel +} + +// 短链接获取 成功返回结果 +type AlibabaRetailShorturlGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_shorturl_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaRetailShorturlGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/util/AlibabaRetailShorturlGetResponse.go b/model/util/AlibabaRetailShorturlGetResponse.go deleted file mode 100644 index ab90be7483..0000000000 --- a/model/util/AlibabaRetailShorturlGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -短链接获取 API返回值 -alibaba.retail.shorturl.get - -短链接获取 -*/ -type AlibabaRetailShorturlGetAPIResponse struct { - model.CommonResponse - AlibabaRetailShorturlGetResponse -} - -// 短链接获取 成功返回结果 -type AlibabaRetailShorturlGetResponse struct { - XMLName xml.Name `xml:"alibaba_retail_shorturl_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaRetailShorturlGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/AlibabaTaobaoWtUserCrowdAPIRequest.go b/model/util/AlibabaTaobaoWtUserCrowdAPIRequest.go new file mode 100644 index 0000000000..30651f011b --- /dev/null +++ b/model/util/AlibabaTaobaoWtUserCrowdAPIRequest.go @@ -0,0 +1,53 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +校验用户是否为新人 API请求 +alibaba.taobao.wt.user.crowd + +增加isv接口 +根据入参手机号判断是否为新人类型 +*/ +type AlibabaTaobaoWtUserCrowdAPIRequest struct { + model.Params + // 手机号 + _phone int64 +} + +// 初始化AlibabaTaobaoWtUserCrowdAPIRequest对象 +func NewAlibabaTaobaoWtUserCrowdRequest() *AlibabaTaobaoWtUserCrowdAPIRequest{ + return &AlibabaTaobaoWtUserCrowdAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTaobaoWtUserCrowdAPIRequest) GetApiMethodName() string { + return "alibaba.taobao.wt.user.crowd" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTaobaoWtUserCrowdAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Phone Setter +// 手机号 +func (r *AlibabaTaobaoWtUserCrowdAPIRequest) SetPhone(_phone int64) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r AlibabaTaobaoWtUserCrowdAPIRequest) GetPhone() int64 { + return r._phone +} diff --git a/model/util/AlibabaTaobaoWtUserCrowdAPIResponse.go b/model/util/AlibabaTaobaoWtUserCrowdAPIResponse.go new file mode 100644 index 0000000000..ccdefd6340 --- /dev/null +++ b/model/util/AlibabaTaobaoWtUserCrowdAPIResponse.go @@ -0,0 +1,28 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +校验用户是否为新人 API返回值 +alibaba.taobao.wt.user.crowd + +增加isv接口 +根据入参手机号判断是否为新人类型 +*/ +type AlibabaTaobaoWtUserCrowdAPIResponse struct { + model.CommonResponse + AlibabaTaobaoWtUserCrowdAPIResponseModel +} + +// 校验用户是否为新人 成功返回结果 +type AlibabaTaobaoWtUserCrowdAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_taobao_wt_user_crowd_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口结果 + Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/util/AlibabaTaobaoWtUserCrowdResponse.go b/model/util/AlibabaTaobaoWtUserCrowdResponse.go deleted file mode 100644 index 2dca198e6d..0000000000 --- a/model/util/AlibabaTaobaoWtUserCrowdResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -校验用户是否为新人 API返回值 -alibaba.taobao.wt.user.crowd - -增加isv接口 -根据入参手机号判断是否为新人类型 -*/ -type AlibabaTaobaoWtUserCrowdAPIResponse struct { - model.CommonResponse - AlibabaTaobaoWtUserCrowdResponse -} - -// 校验用户是否为新人 成功返回结果 -type AlibabaTaobaoWtUserCrowdResponse struct { - XMLName xml.Name `xml:"alibaba_taobao_wt_user_crowd_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口结果 - Result *CommonResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/AliexpressSocialCountryGetAPIRequest.go b/model/util/AliexpressSocialCountryGetAPIRequest.go new file mode 100644 index 0000000000..5c276496a6 --- /dev/null +++ b/model/util/AliexpressSocialCountryGetAPIRequest.go @@ -0,0 +1,52 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取国家列表 API请求 +aliexpress.social.country.get + +获取目前AE支持的国家列表 +*/ +type AliexpressSocialCountryGetAPIRequest struct { + model.Params + // 语言 + _language string +} + +// 初始化AliexpressSocialCountryGetAPIRequest对象 +func NewAliexpressSocialCountryGetRequest() *AliexpressSocialCountryGetAPIRequest{ + return &AliexpressSocialCountryGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSocialCountryGetAPIRequest) GetApiMethodName() string { + return "aliexpress.social.country.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSocialCountryGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Language Setter +// 语言 +func (r *AliexpressSocialCountryGetAPIRequest) SetLanguage(_language string) error { + r._language = _language + r.Set("language", _language) + return nil +} + +// Language Getter +func (r AliexpressSocialCountryGetAPIRequest) GetLanguage() string { + return r._language +} diff --git a/model/util/AliexpressSocialCountryGetAPIResponse.go b/model/util/AliexpressSocialCountryGetAPIResponse.go new file mode 100644 index 0000000000..34da54b01c --- /dev/null +++ b/model/util/AliexpressSocialCountryGetAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取国家列表 API返回值 +aliexpress.social.country.get + +获取目前AE支持的国家列表 +*/ +type AliexpressSocialCountryGetAPIResponse struct { + model.CommonResponse + AliexpressSocialCountryGetAPIResponseModel +} + +// 获取国家列表 成功返回结果 +type AliexpressSocialCountryGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_social_country_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ItemPickPagingResult + Result *ItemPickPagingResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/util/AliexpressSocialCountryGetResponse.go b/model/util/AliexpressSocialCountryGetResponse.go deleted file mode 100644 index 20eef1bce7..0000000000 --- a/model/util/AliexpressSocialCountryGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取国家列表 API返回值 -aliexpress.social.country.get - -获取目前AE支持的国家列表 -*/ -type AliexpressSocialCountryGetAPIResponse struct { - model.CommonResponse - AliexpressSocialCountryGetResponse -} - -// 获取国家列表 成功返回结果 -type AliexpressSocialCountryGetResponse struct { - XMLName xml.Name `xml:"aliexpress_social_country_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ItemPickPagingResult - Result *ItemPickPagingResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/AliexpressSocialCurrencyGetAPIRequest.go b/model/util/AliexpressSocialCurrencyGetAPIRequest.go new file mode 100644 index 0000000000..a3090c7df8 --- /dev/null +++ b/model/util/AliexpressSocialCurrencyGetAPIRequest.go @@ -0,0 +1,38 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +币种获取接口 API请求 +aliexpress.social.currency.get + +获取目前AE社交支持的币种 +*/ +type AliexpressSocialCurrencyGetAPIRequest struct { + model.Params +} + +// 初始化AliexpressSocialCurrencyGetAPIRequest对象 +func NewAliexpressSocialCurrencyGetRequest() *AliexpressSocialCurrencyGetAPIRequest{ + return &AliexpressSocialCurrencyGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSocialCurrencyGetAPIRequest) GetApiMethodName() string { + return "aliexpress.social.currency.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSocialCurrencyGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/util/AliexpressSocialCurrencyGetAPIResponse.go b/model/util/AliexpressSocialCurrencyGetAPIResponse.go new file mode 100644 index 0000000000..28364989ac --- /dev/null +++ b/model/util/AliexpressSocialCurrencyGetAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +币种获取接口 API返回值 +aliexpress.social.currency.get + +获取目前AE社交支持的币种 +*/ +type AliexpressSocialCurrencyGetAPIResponse struct { + model.CommonResponse + AliexpressSocialCurrencyGetAPIResponseModel +} + +// 币种获取接口 成功返回结果 +type AliexpressSocialCurrencyGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_social_currency_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 包类型 + Result *ItemPickPagingResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/util/AliexpressSocialCurrencyGetResponse.go b/model/util/AliexpressSocialCurrencyGetResponse.go deleted file mode 100644 index 525962aca0..0000000000 --- a/model/util/AliexpressSocialCurrencyGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -币种获取接口 API返回值 -aliexpress.social.currency.get - -获取目前AE社交支持的币种 -*/ -type AliexpressSocialCurrencyGetAPIResponse struct { - model.CommonResponse - AliexpressSocialCurrencyGetResponse -} - -// 币种获取接口 成功返回结果 -type AliexpressSocialCurrencyGetResponse struct { - XMLName xml.Name `xml:"aliexpress_social_currency_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 包类型 - Result *ItemPickPagingResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/AliexpressSocialLocaleGetAPIRequest.go b/model/util/AliexpressSocialLocaleGetAPIRequest.go new file mode 100644 index 0000000000..4e33fe87a6 --- /dev/null +++ b/model/util/AliexpressSocialLocaleGetAPIRequest.go @@ -0,0 +1,38 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +Locale获取接口 API请求 +aliexpress.social.locale.get + +新增Locale获取接口 +*/ +type AliexpressSocialLocaleGetAPIRequest struct { + model.Params +} + +// 初始化AliexpressSocialLocaleGetAPIRequest对象 +func NewAliexpressSocialLocaleGetRequest() *AliexpressSocialLocaleGetAPIRequest{ + return &AliexpressSocialLocaleGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliexpressSocialLocaleGetAPIRequest) GetApiMethodName() string { + return "aliexpress.social.locale.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AliexpressSocialLocaleGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/util/AliexpressSocialLocaleGetAPIResponse.go b/model/util/AliexpressSocialLocaleGetAPIResponse.go new file mode 100644 index 0000000000..b0d1e31a7b --- /dev/null +++ b/model/util/AliexpressSocialLocaleGetAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +Locale获取接口 API返回值 +aliexpress.social.locale.get + +新增Locale获取接口 +*/ +type AliexpressSocialLocaleGetAPIResponse struct { + model.CommonResponse + AliexpressSocialLocaleGetAPIResponseModel +} + +// Locale获取接口 成功返回结果 +type AliexpressSocialLocaleGetAPIResponseModel struct { + XMLName xml.Name `xml:"aliexpress_social_locale_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 包类型 + Result *ItemPickPagingResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/util/AliexpressSocialLocaleGetResponse.go b/model/util/AliexpressSocialLocaleGetResponse.go deleted file mode 100644 index 69eb520d81..0000000000 --- a/model/util/AliexpressSocialLocaleGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -Locale获取接口 API返回值 -aliexpress.social.locale.get - -新增Locale获取接口 -*/ -type AliexpressSocialLocaleGetAPIResponse struct { - model.CommonResponse - AliexpressSocialLocaleGetResponse -} - -// Locale获取接口 成功返回结果 -type AliexpressSocialLocaleGetResponse struct { - XMLName xml.Name `xml:"aliexpress_social_locale_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 包类型 - Result *ItemPickPagingResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/TaobaoAppipGetAPIRequest.go b/model/util/TaobaoAppipGetAPIRequest.go new file mode 100644 index 0000000000..7edaa5d31d --- /dev/null +++ b/model/util/TaobaoAppipGetAPIRequest.go @@ -0,0 +1,38 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取ISV发起请求服务器IP API请求 +taobao.appip.get + +获取ISV发起请求服务器IP +*/ +type TaobaoAppipGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoAppipGetAPIRequest对象 +func NewTaobaoAppipGetRequest() *TaobaoAppipGetAPIRequest{ + return &TaobaoAppipGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoAppipGetAPIRequest) GetApiMethodName() string { + return "taobao.appip.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoAppipGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/util/TaobaoAppipGetAPIResponse.go b/model/util/TaobaoAppipGetAPIResponse.go new file mode 100644 index 0000000000..da9d229f79 --- /dev/null +++ b/model/util/TaobaoAppipGetAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取ISV发起请求服务器IP API返回值 +taobao.appip.get + +获取ISV发起请求服务器IP +*/ +type TaobaoAppipGetAPIResponse struct { + model.CommonResponse + TaobaoAppipGetAPIResponseModel +} + +// 获取ISV发起请求服务器IP 成功返回结果 +type TaobaoAppipGetAPIResponseModel struct { + XMLName xml.Name `xml:"appip_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ISV发起请求服务器IP + Ip string `json:"ip,omitempty" xml:"ip,omitempty"` +} diff --git a/model/util/TaobaoAppipGetResponse.go b/model/util/TaobaoAppipGetResponse.go deleted file mode 100644 index 167a22ec32..0000000000 --- a/model/util/TaobaoAppipGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取ISV发起请求服务器IP API返回值 -taobao.appip.get - -获取ISV发起请求服务器IP -*/ -type TaobaoAppipGetAPIResponse struct { - model.CommonResponse - TaobaoAppipGetResponse -} - -// 获取ISV发起请求服务器IP 成功返回结果 -type TaobaoAppipGetResponse struct { - XMLName xml.Name `xml:"appip_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ISV发起请求服务器IP - Ip string `json:"ip,omitempty" xml:"ip,omitempty"` -} diff --git a/model/util/TaobaoFilesGetAPIRequest.go b/model/util/TaobaoFilesGetAPIRequest.go new file mode 100644 index 0000000000..8bddb7545e --- /dev/null +++ b/model/util/TaobaoFilesGetAPIRequest.go @@ -0,0 +1,80 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +业务文件获取 API请求 +taobao.files.get + +获取业务方暂存给ISV的文件列表 +*/ +type TaobaoFilesGetAPIRequest struct { + model.Params + // 搜索开始时间 + _startDate string + // 搜索结束时间 + _endDate string + // 下载链接状态。1:未下载。2:已下载 + _status int64 +} + +// 初始化TaobaoFilesGetAPIRequest对象 +func NewTaobaoFilesGetRequest() *TaobaoFilesGetAPIRequest{ + return &TaobaoFilesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoFilesGetAPIRequest) GetApiMethodName() string { + return "taobao.files.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoFilesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartDate Setter +// 搜索开始时间 +func (r *TaobaoFilesGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoFilesGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 搜索结束时间 +func (r *TaobaoFilesGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoFilesGetAPIRequest) GetEndDate() string { + return r._endDate +} +// Status Setter +// 下载链接状态。1:未下载。2:已下载 +func (r *TaobaoFilesGetAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoFilesGetAPIRequest) GetStatus() int64 { + return r._status +} diff --git a/model/util/TaobaoFilesGetAPIResponse.go b/model/util/TaobaoFilesGetAPIResponse.go new file mode 100644 index 0000000000..2ea1eef1ad --- /dev/null +++ b/model/util/TaobaoFilesGetAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +业务文件获取 API返回值 +taobao.files.get + +获取业务方暂存给ISV的文件列表 +*/ +type TaobaoFilesGetAPIResponse struct { + model.CommonResponse + TaobaoFilesGetAPIResponseModel +} + +// 业务文件获取 成功返回结果 +type TaobaoFilesGetAPIResponseModel struct { + XMLName xml.Name `xml:"files_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // results + Results []TopDownloadRecordDo `json:"results,omitempty" xml:"results>top_download_record_do,omitempty"` +} diff --git a/model/util/TaobaoFilesGetResponse.go b/model/util/TaobaoFilesGetResponse.go deleted file mode 100644 index 1c5a5e73a4..0000000000 --- a/model/util/TaobaoFilesGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -业务文件获取 API返回值 -taobao.files.get - -获取业务方暂存给ISV的文件列表 -*/ -type TaobaoFilesGetAPIResponse struct { - model.CommonResponse - TaobaoFilesGetResponse -} - -// 业务文件获取 成功返回结果 -type TaobaoFilesGetResponse struct { - XMLName xml.Name `xml:"files_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // results - Results []TopDownloadRecordDo `json:"results,omitempty" xml:"results>top_download_record_do,omitempty"` -} diff --git a/model/util/TaobaoHttpdnsGetAPIRequest.go b/model/util/TaobaoHttpdnsGetAPIRequest.go new file mode 100644 index 0000000000..7922e98fa0 --- /dev/null +++ b/model/util/TaobaoHttpdnsGetAPIRequest.go @@ -0,0 +1,38 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +TOPDNS配置 API请求 +taobao.httpdns.get + +获取TOP DNS配置 +*/ +type TaobaoHttpdnsGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoHttpdnsGetAPIRequest对象 +func NewTaobaoHttpdnsGetRequest() *TaobaoHttpdnsGetAPIRequest{ + return &TaobaoHttpdnsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoHttpdnsGetAPIRequest) GetApiMethodName() string { + return "taobao.httpdns.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoHttpdnsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/util/TaobaoHttpdnsGetAPIResponse.go b/model/util/TaobaoHttpdnsGetAPIResponse.go new file mode 100644 index 0000000000..33e481b4a8 --- /dev/null +++ b/model/util/TaobaoHttpdnsGetAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +TOPDNS配置 API返回值 +taobao.httpdns.get + +获取TOP DNS配置 +*/ +type TaobaoHttpdnsGetAPIResponse struct { + model.CommonResponse + TaobaoHttpdnsGetAPIResponseModel +} + +// TOPDNS配置 成功返回结果 +type TaobaoHttpdnsGetAPIResponseModel struct { + XMLName xml.Name `xml:"httpdns_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // HTTP DNS配置信息 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/util/TaobaoHttpdnsGetResponse.go b/model/util/TaobaoHttpdnsGetResponse.go deleted file mode 100644 index 0a74c77223..0000000000 --- a/model/util/TaobaoHttpdnsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -TOPDNS配置 API返回值 -taobao.httpdns.get - -获取TOP DNS配置 -*/ -type TaobaoHttpdnsGetAPIResponse struct { - model.CommonResponse - TaobaoHttpdnsGetResponse -} - -// TOPDNS配置 成功返回结果 -type TaobaoHttpdnsGetResponse struct { - XMLName xml.Name `xml:"httpdns_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // HTTP DNS配置信息 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/TaobaoKfcKeywordSearchAPIRequest.go b/model/util/TaobaoKfcKeywordSearchAPIRequest.go new file mode 100644 index 0000000000..dd561b662d --- /dev/null +++ b/model/util/TaobaoKfcKeywordSearchAPIRequest.go @@ -0,0 +1,80 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词过滤匹配 API请求 +taobao.kfc.keyword.search + +对输入的文本信息进行禁忌关键词匹配,返回匹配的结果 +*/ +type TaobaoKfcKeywordSearchAPIRequest struct { + model.Params + // 发布信息的淘宝会员名,可以不传 + _nick string + // 需要过滤的文本信息 + _content string + // 应用点,分为一级应用点、二级应用点。其中一级应用点通常是指某一个系统或产品,比如淘宝的商品应用(taobao_auction);二级应用点,是指一级应用点下的具体的分类,比如商品标题(title)、商品描述(content)。不同的二级应用可以设置不同关键词。

这里的apply参数是由一级应用点与二级应用点合起来的字符(一级应用点+"."+二级应用点),如taobao_auction.title。


通常apply参数是不需要传递的。如有特殊需求(比如特殊的过滤需求,需要自己维护一套自己词库),需传递此参数。 + _apply string +} + +// 初始化TaobaoKfcKeywordSearchAPIRequest对象 +func NewTaobaoKfcKeywordSearchRequest() *TaobaoKfcKeywordSearchAPIRequest{ + return &TaobaoKfcKeywordSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoKfcKeywordSearchAPIRequest) GetApiMethodName() string { + return "taobao.kfc.keyword.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoKfcKeywordSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nick Setter +// 发布信息的淘宝会员名,可以不传 +func (r *TaobaoKfcKeywordSearchAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoKfcKeywordSearchAPIRequest) GetNick() string { + return r._nick +} +// Content Setter +// 需要过滤的文本信息 +func (r *TaobaoKfcKeywordSearchAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r TaobaoKfcKeywordSearchAPIRequest) GetContent() string { + return r._content +} +// Apply Setter +// 应用点,分为一级应用点、二级应用点。其中一级应用点通常是指某一个系统或产品,比如淘宝的商品应用(taobao_auction);二级应用点,是指一级应用点下的具体的分类,比如商品标题(title)、商品描述(content)。不同的二级应用可以设置不同关键词。

这里的apply参数是由一级应用点与二级应用点合起来的字符(一级应用点+"."+二级应用点),如taobao_auction.title。


通常apply参数是不需要传递的。如有特殊需求(比如特殊的过滤需求,需要自己维护一套自己词库),需传递此参数。 +func (r *TaobaoKfcKeywordSearchAPIRequest) SetApply(_apply string) error { + r._apply = _apply + r.Set("apply", _apply) + return nil +} + +// Apply Getter +func (r TaobaoKfcKeywordSearchAPIRequest) GetApply() string { + return r._apply +} diff --git a/model/util/TaobaoKfcKeywordSearchAPIResponse.go b/model/util/TaobaoKfcKeywordSearchAPIResponse.go new file mode 100644 index 0000000000..cdcc437ce6 --- /dev/null +++ b/model/util/TaobaoKfcKeywordSearchAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +关键词过滤匹配 API返回值 +taobao.kfc.keyword.search + +对输入的文本信息进行禁忌关键词匹配,返回匹配的结果 +*/ +type TaobaoKfcKeywordSearchAPIResponse struct { + model.CommonResponse + TaobaoKfcKeywordSearchAPIResponseModel +} + +// 关键词过滤匹配 成功返回结果 +type TaobaoKfcKeywordSearchAPIResponseModel struct { + XMLName xml.Name `xml:"kfc_keyword_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // KFC 关键词过滤匹配结果 + KfcSearchResult *KfcSearchResult `json:"kfc_search_result,omitempty" xml:"kfc_search_result,omitempty"` +} diff --git a/model/util/TaobaoKfcKeywordSearchResponse.go b/model/util/TaobaoKfcKeywordSearchResponse.go deleted file mode 100644 index f0146efe19..0000000000 --- a/model/util/TaobaoKfcKeywordSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -关键词过滤匹配 API返回值 -taobao.kfc.keyword.search - -对输入的文本信息进行禁忌关键词匹配,返回匹配的结果 -*/ -type TaobaoKfcKeywordSearchAPIResponse struct { - model.CommonResponse - TaobaoKfcKeywordSearchResponse -} - -// 关键词过滤匹配 成功返回结果 -type TaobaoKfcKeywordSearchResponse struct { - XMLName xml.Name `xml:"kfc_keyword_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // KFC 关键词过滤匹配结果 - KfcSearchResult *KfcSearchResult `json:"kfc_search_result,omitempty" xml:"kfc_search_result,omitempty"` -} diff --git a/model/util/TaobaoOpenlinkSessionGetAPIRequest.go b/model/util/TaobaoOpenlinkSessionGetAPIRequest.go new file mode 100644 index 0000000000..23fed13313 --- /dev/null +++ b/model/util/TaobaoOpenlinkSessionGetAPIRequest.go @@ -0,0 +1,52 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取授权session信息 API请求 +taobao.openlink.session.get + +帮助第三方isv生成三方session +*/ +type TaobaoOpenlinkSessionGetAPIRequest struct { + model.Params + // 授权码 + _code string +} + +// 初始化TaobaoOpenlinkSessionGetAPIRequest对象 +func NewTaobaoOpenlinkSessionGetRequest() *TaobaoOpenlinkSessionGetAPIRequest{ + return &TaobaoOpenlinkSessionGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenlinkSessionGetAPIRequest) GetApiMethodName() string { + return "taobao.openlink.session.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenlinkSessionGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 授权码 +func (r *TaobaoOpenlinkSessionGetAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r TaobaoOpenlinkSessionGetAPIRequest) GetCode() string { + return r._code +} diff --git a/model/util/TaobaoOpenlinkSessionGetAPIResponse.go b/model/util/TaobaoOpenlinkSessionGetAPIResponse.go new file mode 100644 index 0000000000..0a608d7df3 --- /dev/null +++ b/model/util/TaobaoOpenlinkSessionGetAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取授权session信息 API返回值 +taobao.openlink.session.get + +帮助第三方isv生成三方session +*/ +type TaobaoOpenlinkSessionGetAPIResponse struct { + model.CommonResponse + TaobaoOpenlinkSessionGetAPIResponseModel +} + +// 获取授权session信息 成功返回结果 +type TaobaoOpenlinkSessionGetAPIResponseModel struct { + XMLName xml.Name `xml:"openlink_session_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoOpenlinkSessionGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/util/TaobaoOpenlinkSessionGetResponse.go b/model/util/TaobaoOpenlinkSessionGetResponse.go deleted file mode 100644 index 36800d6225..0000000000 --- a/model/util/TaobaoOpenlinkSessionGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取授权session信息 API返回值 -taobao.openlink.session.get - -帮助第三方isv生成三方session -*/ -type TaobaoOpenlinkSessionGetAPIResponse struct { - model.CommonResponse - TaobaoOpenlinkSessionGetResponse -} - -// 获取授权session信息 成功返回结果 -type TaobaoOpenlinkSessionGetResponse struct { - XMLName xml.Name `xml:"openlink_session_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoOpenlinkSessionGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/TaobaoOpenuidGetAPIRequest.go b/model/util/TaobaoOpenuidGetAPIRequest.go new file mode 100644 index 0000000000..e3bd516325 --- /dev/null +++ b/model/util/TaobaoOpenuidGetAPIRequest.go @@ -0,0 +1,38 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取授权账号对应的OpenUid API请求 +taobao.openuid.get + +获取授权账号对应的OpenUid +*/ +type TaobaoOpenuidGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoOpenuidGetAPIRequest对象 +func NewTaobaoOpenuidGetRequest() *TaobaoOpenuidGetAPIRequest{ + return &TaobaoOpenuidGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenuidGetAPIRequest) GetApiMethodName() string { + return "taobao.openuid.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenuidGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/util/TaobaoOpenuidGetAPIResponse.go b/model/util/TaobaoOpenuidGetAPIResponse.go new file mode 100644 index 0000000000..8c617383e8 --- /dev/null +++ b/model/util/TaobaoOpenuidGetAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取授权账号对应的OpenUid API返回值 +taobao.openuid.get + +获取授权账号对应的OpenUid +*/ +type TaobaoOpenuidGetAPIResponse struct { + model.CommonResponse + TaobaoOpenuidGetAPIResponseModel +} + +// 获取授权账号对应的OpenUid 成功返回结果 +type TaobaoOpenuidGetAPIResponseModel struct { + XMLName xml.Name `xml:"openuid_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // OpenUID + OpenUid string `json:"open_uid,omitempty" xml:"open_uid,omitempty"` +} diff --git a/model/util/TaobaoOpenuidGetBymixnickAPIRequest.go b/model/util/TaobaoOpenuidGetBymixnickAPIRequest.go new file mode 100644 index 0000000000..a07476f354 --- /dev/null +++ b/model/util/TaobaoOpenuidGetBymixnickAPIRequest.go @@ -0,0 +1,52 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过mixnick转换openuid API请求 +taobao.openuid.get.bymixnick + +通过mixnick转换openuid +*/ +type TaobaoOpenuidGetBymixnickAPIRequest struct { + model.Params + // 无线类应用获取到的混淆的nick + _mixNick string +} + +// 初始化TaobaoOpenuidGetBymixnickAPIRequest对象 +func NewTaobaoOpenuidGetBymixnickRequest() *TaobaoOpenuidGetBymixnickAPIRequest{ + return &TaobaoOpenuidGetBymixnickAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenuidGetBymixnickAPIRequest) GetApiMethodName() string { + return "taobao.openuid.get.bymixnick" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenuidGetBymixnickAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MixNick Setter +// 无线类应用获取到的混淆的nick +func (r *TaobaoOpenuidGetBymixnickAPIRequest) SetMixNick(_mixNick string) error { + r._mixNick = _mixNick + r.Set("mix_nick", _mixNick) + return nil +} + +// MixNick Getter +func (r TaobaoOpenuidGetBymixnickAPIRequest) GetMixNick() string { + return r._mixNick +} diff --git a/model/util/TaobaoOpenuidGetBymixnickAPIResponse.go b/model/util/TaobaoOpenuidGetBymixnickAPIResponse.go new file mode 100644 index 0000000000..4a7ad6f06b --- /dev/null +++ b/model/util/TaobaoOpenuidGetBymixnickAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过mixnick转换openuid API返回值 +taobao.openuid.get.bymixnick + +通过mixnick转换openuid +*/ +type TaobaoOpenuidGetBymixnickAPIResponse struct { + model.CommonResponse + TaobaoOpenuidGetBymixnickAPIResponseModel +} + +// 通过mixnick转换openuid 成功返回结果 +type TaobaoOpenuidGetBymixnickAPIResponseModel struct { + XMLName xml.Name `xml:"openuid_get_bymixnick_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // OpenUID + OpenUid string `json:"open_uid,omitempty" xml:"open_uid,omitempty"` +} diff --git a/model/util/TaobaoOpenuidGetBymixnickResponse.go b/model/util/TaobaoOpenuidGetBymixnickResponse.go deleted file mode 100644 index 6adfe0762f..0000000000 --- a/model/util/TaobaoOpenuidGetBymixnickResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过mixnick转换openuid API返回值 -taobao.openuid.get.bymixnick - -通过mixnick转换openuid -*/ -type TaobaoOpenuidGetBymixnickAPIResponse struct { - model.CommonResponse - TaobaoOpenuidGetBymixnickResponse -} - -// 通过mixnick转换openuid 成功返回结果 -type TaobaoOpenuidGetBymixnickResponse struct { - XMLName xml.Name `xml:"openuid_get_bymixnick_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // OpenUID - OpenUid string `json:"open_uid,omitempty" xml:"open_uid,omitempty"` -} diff --git a/model/util/TaobaoOpenuidGetBytradeAPIRequest.go b/model/util/TaobaoOpenuidGetBytradeAPIRequest.go new file mode 100644 index 0000000000..4e878dc9be --- /dev/null +++ b/model/util/TaobaoOpenuidGetBytradeAPIRequest.go @@ -0,0 +1,52 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过订单获取对应买家的openUID API请求 +taobao.openuid.get.bytrade + +通过订单获取对应买家的openUID,需要卖家授权 +*/ +type TaobaoOpenuidGetBytradeAPIRequest struct { + model.Params + // 订单ID + _tid int64 +} + +// 初始化TaobaoOpenuidGetBytradeAPIRequest对象 +func NewTaobaoOpenuidGetBytradeRequest() *TaobaoOpenuidGetBytradeAPIRequest{ + return &TaobaoOpenuidGetBytradeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoOpenuidGetBytradeAPIRequest) GetApiMethodName() string { + return "taobao.openuid.get.bytrade" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoOpenuidGetBytradeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 订单ID +func (r *TaobaoOpenuidGetBytradeAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoOpenuidGetBytradeAPIRequest) GetTid() int64 { + return r._tid +} diff --git a/model/util/TaobaoOpenuidGetBytradeAPIResponse.go b/model/util/TaobaoOpenuidGetBytradeAPIResponse.go new file mode 100644 index 0000000000..aa15cc2881 --- /dev/null +++ b/model/util/TaobaoOpenuidGetBytradeAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过订单获取对应买家的openUID API返回值 +taobao.openuid.get.bytrade + +通过订单获取对应买家的openUID,需要卖家授权 +*/ +type TaobaoOpenuidGetBytradeAPIResponse struct { + model.CommonResponse + TaobaoOpenuidGetBytradeAPIResponseModel +} + +// 通过订单获取对应买家的openUID 成功返回结果 +type TaobaoOpenuidGetBytradeAPIResponseModel struct { + XMLName xml.Name `xml:"openuid_get_bytrade_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 当前交易tid对应买家的openuid + OpenUid string `json:"open_uid,omitempty" xml:"open_uid,omitempty"` +} diff --git a/model/util/TaobaoOpenuidGetBytradeResponse.go b/model/util/TaobaoOpenuidGetBytradeResponse.go deleted file mode 100644 index cd7d275ecc..0000000000 --- a/model/util/TaobaoOpenuidGetBytradeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过订单获取对应买家的openUID API返回值 -taobao.openuid.get.bytrade - -通过订单获取对应买家的openUID,需要卖家授权 -*/ -type TaobaoOpenuidGetBytradeAPIResponse struct { - model.CommonResponse - TaobaoOpenuidGetBytradeResponse -} - -// 通过订单获取对应买家的openUID 成功返回结果 -type TaobaoOpenuidGetBytradeResponse struct { - XMLName xml.Name `xml:"openuid_get_bytrade_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 当前交易tid对应买家的openuid - OpenUid string `json:"open_uid,omitempty" xml:"open_uid,omitempty"` -} diff --git a/model/util/TaobaoOpenuidGetResponse.go b/model/util/TaobaoOpenuidGetResponse.go deleted file mode 100644 index ee32b0ed5a..0000000000 --- a/model/util/TaobaoOpenuidGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取授权账号对应的OpenUid API返回值 -taobao.openuid.get - -获取授权账号对应的OpenUid -*/ -type TaobaoOpenuidGetAPIResponse struct { - model.CommonResponse - TaobaoOpenuidGetResponse -} - -// 获取授权账号对应的OpenUid 成功返回结果 -type TaobaoOpenuidGetResponse struct { - XMLName xml.Name `xml:"openuid_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // OpenUID - OpenUid string `json:"open_uid,omitempty" xml:"open_uid,omitempty"` -} diff --git a/model/util/TaobaoQimenEventProduceAPIRequest.go b/model/util/TaobaoQimenEventProduceAPIRequest.go new file mode 100644 index 0000000000..f62cd564e2 --- /dev/null +++ b/model/util/TaobaoQimenEventProduceAPIRequest.go @@ -0,0 +1,122 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发出奇门事件 API请求 +taobao.qimen.event.produce + +当订单被处理时,用于通知奇门系统。 +*/ +type TaobaoQimenEventProduceAPIRequest struct { + model.Params + // 事件状态,如QIMEN_ERP_TRANSFER,QIMEN_ERP_CHECK + _status string + // 淘宝订单号 + _tid string + // JSON格式扩展字段 + _ext string + // 商家平台编码.MAIN:官方渠道,JD:京东,DD:当当,PP:拍拍,YX:易讯,EBAY:ebay,AMAZON:亚马逊,SN:苏宁,GM:国美,WPH:唯品会,JM:聚美,MGJ:蘑菇街,YT:银泰,YHD:1号店,1688:1688,POS:POS门店,OTHER:其他 + _platform string + // 订单创建时间,数字 + _create int64 + // 外部商家名称。必须同时填写platform + _nick string +} + +// 初始化TaobaoQimenEventProduceAPIRequest对象 +func NewTaobaoQimenEventProduceRequest() *TaobaoQimenEventProduceAPIRequest{ + return &TaobaoQimenEventProduceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenEventProduceAPIRequest) GetApiMethodName() string { + return "taobao.qimen.event.produce" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenEventProduceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Status Setter +// 事件状态,如QIMEN_ERP_TRANSFER,QIMEN_ERP_CHECK +func (r *TaobaoQimenEventProduceAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoQimenEventProduceAPIRequest) GetStatus() string { + return r._status +} +// Tid Setter +// 淘宝订单号 +func (r *TaobaoQimenEventProduceAPIRequest) SetTid(_tid string) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoQimenEventProduceAPIRequest) GetTid() string { + return r._tid +} +// Ext Setter +// JSON格式扩展字段 +func (r *TaobaoQimenEventProduceAPIRequest) SetExt(_ext string) error { + r._ext = _ext + r.Set("ext", _ext) + return nil +} + +// Ext Getter +func (r TaobaoQimenEventProduceAPIRequest) GetExt() string { + return r._ext +} +// Platform Setter +// 商家平台编码.MAIN:官方渠道,JD:京东,DD:当当,PP:拍拍,YX:易讯,EBAY:ebay,AMAZON:亚马逊,SN:苏宁,GM:国美,WPH:唯品会,JM:聚美,MGJ:蘑菇街,YT:银泰,YHD:1号店,1688:1688,POS:POS门店,OTHER:其他 +func (r *TaobaoQimenEventProduceAPIRequest) SetPlatform(_platform string) error { + r._platform = _platform + r.Set("platform", _platform) + return nil +} + +// Platform Getter +func (r TaobaoQimenEventProduceAPIRequest) GetPlatform() string { + return r._platform +} +// Create Setter +// 订单创建时间,数字 +func (r *TaobaoQimenEventProduceAPIRequest) SetCreate(_create int64) error { + r._create = _create + r.Set("create", _create) + return nil +} + +// Create Getter +func (r TaobaoQimenEventProduceAPIRequest) GetCreate() int64 { + return r._create +} +// Nick Setter +// 外部商家名称。必须同时填写platform +func (r *TaobaoQimenEventProduceAPIRequest) SetNick(_nick string) error { + r._nick = _nick + r.Set("nick", _nick) + return nil +} + +// Nick Getter +func (r TaobaoQimenEventProduceAPIRequest) GetNick() string { + return r._nick +} diff --git a/model/util/TaobaoQimenEventProduceAPIResponse.go b/model/util/TaobaoQimenEventProduceAPIResponse.go new file mode 100644 index 0000000000..835edf2c1e --- /dev/null +++ b/model/util/TaobaoQimenEventProduceAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发出奇门事件 API返回值 +taobao.qimen.event.produce + +当订单被处理时,用于通知奇门系统。 +*/ +type TaobaoQimenEventProduceAPIResponse struct { + model.CommonResponse + TaobaoQimenEventProduceAPIResponseModel +} + +// 发出奇门事件 成功返回结果 +type TaobaoQimenEventProduceAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_event_produce_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/util/TaobaoQimenEventProduceResponse.go b/model/util/TaobaoQimenEventProduceResponse.go deleted file mode 100644 index 941161e024..0000000000 --- a/model/util/TaobaoQimenEventProduceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发出奇门事件 API返回值 -taobao.qimen.event.produce - -当订单被处理时,用于通知奇门系统。 -*/ -type TaobaoQimenEventProduceAPIResponse struct { - model.CommonResponse - TaobaoQimenEventProduceResponse -} - -// 发出奇门事件 成功返回结果 -type TaobaoQimenEventProduceResponse struct { - XMLName xml.Name `xml:"qimen_event_produce_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/util/TaobaoQimenEventsProduceAPIRequest.go b/model/util/TaobaoQimenEventsProduceAPIRequest.go new file mode 100644 index 0000000000..bec295fa70 --- /dev/null +++ b/model/util/TaobaoQimenEventsProduceAPIRequest.go @@ -0,0 +1,52 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量发送奇门事件 API请求 +taobao.qimen.events.produce + +批量发送消息 +*/ +type TaobaoQimenEventsProduceAPIRequest struct { + model.Params + // 奇门事件列表, 最多50条 + _messages []QimenEvent +} + +// 初始化TaobaoQimenEventsProduceAPIRequest对象 +func NewTaobaoQimenEventsProduceRequest() *TaobaoQimenEventsProduceAPIRequest{ + return &TaobaoQimenEventsProduceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenEventsProduceAPIRequest) GetApiMethodName() string { + return "taobao.qimen.events.produce" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenEventsProduceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Messages Setter +// 奇门事件列表, 最多50条 +func (r *TaobaoQimenEventsProduceAPIRequest) SetMessages(_messages []QimenEvent) error { + r._messages = _messages + r.Set("messages", _messages) + return nil +} + +// Messages Getter +func (r TaobaoQimenEventsProduceAPIRequest) GetMessages() []QimenEvent { + return r._messages +} diff --git a/model/util/TaobaoQimenEventsProduceAPIResponse.go b/model/util/TaobaoQimenEventsProduceAPIResponse.go new file mode 100644 index 0000000000..cfe8c4c438 --- /dev/null +++ b/model/util/TaobaoQimenEventsProduceAPIResponse.go @@ -0,0 +1,29 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量发送奇门事件 API返回值 +taobao.qimen.events.produce + +批量发送消息 +*/ +type TaobaoQimenEventsProduceAPIResponse struct { + model.CommonResponse + TaobaoQimenEventsProduceAPIResponseModel +} + +// 批量发送奇门事件 成功返回结果 +type TaobaoQimenEventsProduceAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_events_produce_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否全部成功 + IsAllSuccess bool `json:"is_all_success,omitempty" xml:"is_all_success,omitempty"` + // 发送结果,与发送时的参数顺序一致。如果is_all_success为true时,不用校验result是否成功 + Results []QimenResult `json:"results,omitempty" xml:"results>qimen_result,omitempty"` +} diff --git a/model/util/TaobaoQimenEventsProduceResponse.go b/model/util/TaobaoQimenEventsProduceResponse.go deleted file mode 100644 index 0e534f8e30..0000000000 --- a/model/util/TaobaoQimenEventsProduceResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量发送奇门事件 API返回值 -taobao.qimen.events.produce - -批量发送消息 -*/ -type TaobaoQimenEventsProduceAPIResponse struct { - model.CommonResponse - TaobaoQimenEventsProduceResponse -} - -// 批量发送奇门事件 成功返回结果 -type TaobaoQimenEventsProduceResponse struct { - XMLName xml.Name `xml:"qimen_events_produce_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否全部成功 - IsAllSuccess bool `json:"is_all_success,omitempty" xml:"is_all_success,omitempty"` - // 发送结果,与发送时的参数顺序一致。如果is_all_success为true时,不用校验result是否成功 - Results []QimenResult `json:"results,omitempty" xml:"results>qimen_result,omitempty"` -} diff --git a/model/util/TaobaoQimenTradeUserAddAPIRequest.go b/model/util/TaobaoQimenTradeUserAddAPIRequest.go new file mode 100644 index 0000000000..2298a0e175 --- /dev/null +++ b/model/util/TaobaoQimenTradeUserAddAPIRequest.go @@ -0,0 +1,52 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加奇门订单链路用户 API请求 +taobao.qimen.trade.user.add + +添加奇门订单链路用户 +*/ +type TaobaoQimenTradeUserAddAPIRequest struct { + model.Params + // 商家备注 + _memo string +} + +// 初始化TaobaoQimenTradeUserAddAPIRequest对象 +func NewTaobaoQimenTradeUserAddRequest() *TaobaoQimenTradeUserAddAPIRequest{ + return &TaobaoQimenTradeUserAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenTradeUserAddAPIRequest) GetApiMethodName() string { + return "taobao.qimen.trade.user.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenTradeUserAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Memo Setter +// 商家备注 +func (r *TaobaoQimenTradeUserAddAPIRequest) SetMemo(_memo string) error { + r._memo = _memo + r.Set("memo", _memo) + return nil +} + +// Memo Getter +func (r TaobaoQimenTradeUserAddAPIRequest) GetMemo() string { + return r._memo +} diff --git a/model/util/TaobaoQimenTradeUserAddAPIResponse.go b/model/util/TaobaoQimenTradeUserAddAPIResponse.go new file mode 100644 index 0000000000..52c14f06af --- /dev/null +++ b/model/util/TaobaoQimenTradeUserAddAPIResponse.go @@ -0,0 +1,31 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加奇门订单链路用户 API返回值 +taobao.qimen.trade.user.add + +添加奇门订单链路用户 +*/ +type TaobaoQimenTradeUserAddAPIResponse struct { + model.CommonResponse + TaobaoQimenTradeUserAddAPIResponseModel +} + +// 添加奇门订单链路用户 成功返回结果 +type TaobaoQimenTradeUserAddAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_trade_user_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创建时间 + GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` + // appkey + Appkey string `json:"appkey,omitempty" xml:"appkey,omitempty"` + // 卖家备注 + Memo string `json:"memo,omitempty" xml:"memo,omitempty"` +} diff --git a/model/util/TaobaoQimenTradeUserAddResponse.go b/model/util/TaobaoQimenTradeUserAddResponse.go deleted file mode 100644 index 07e19c954e..0000000000 --- a/model/util/TaobaoQimenTradeUserAddResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加奇门订单链路用户 API返回值 -taobao.qimen.trade.user.add - -添加奇门订单链路用户 -*/ -type TaobaoQimenTradeUserAddAPIResponse struct { - model.CommonResponse - TaobaoQimenTradeUserAddResponse -} - -// 添加奇门订单链路用户 成功返回结果 -type TaobaoQimenTradeUserAddResponse struct { - XMLName xml.Name `xml:"qimen_trade_user_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创建时间 - GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"` - // appkey - Appkey string `json:"appkey,omitempty" xml:"appkey,omitempty"` - // 卖家备注 - Memo string `json:"memo,omitempty" xml:"memo,omitempty"` -} diff --git a/model/util/TaobaoQimenTradeUserDeleteAPIRequest.go b/model/util/TaobaoQimenTradeUserDeleteAPIRequest.go new file mode 100644 index 0000000000..1e3ba5e2b8 --- /dev/null +++ b/model/util/TaobaoQimenTradeUserDeleteAPIRequest.go @@ -0,0 +1,38 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除奇门订单链路用户 API请求 +taobao.qimen.trade.user.delete + +删除奇门订单链路用户 +*/ +type TaobaoQimenTradeUserDeleteAPIRequest struct { + model.Params +} + +// 初始化TaobaoQimenTradeUserDeleteAPIRequest对象 +func NewTaobaoQimenTradeUserDeleteRequest() *TaobaoQimenTradeUserDeleteAPIRequest{ + return &TaobaoQimenTradeUserDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenTradeUserDeleteAPIRequest) GetApiMethodName() string { + return "taobao.qimen.trade.user.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenTradeUserDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/util/TaobaoQimenTradeUserDeleteAPIResponse.go b/model/util/TaobaoQimenTradeUserDeleteAPIResponse.go new file mode 100644 index 0000000000..97b9ab532e --- /dev/null +++ b/model/util/TaobaoQimenTradeUserDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除奇门订单链路用户 API返回值 +taobao.qimen.trade.user.delete + +删除奇门订单链路用户 +*/ +type TaobaoQimenTradeUserDeleteAPIResponse struct { + model.CommonResponse + TaobaoQimenTradeUserDeleteAPIResponseModel +} + +// 删除奇门订单链路用户 成功返回结果 +type TaobaoQimenTradeUserDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_trade_user_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // modal + Modal bool `json:"modal,omitempty" xml:"modal,omitempty"` +} diff --git a/model/util/TaobaoQimenTradeUserDeleteResponse.go b/model/util/TaobaoQimenTradeUserDeleteResponse.go deleted file mode 100644 index e174375f1c..0000000000 --- a/model/util/TaobaoQimenTradeUserDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除奇门订单链路用户 API返回值 -taobao.qimen.trade.user.delete - -删除奇门订单链路用户 -*/ -type TaobaoQimenTradeUserDeleteAPIResponse struct { - model.CommonResponse - TaobaoQimenTradeUserDeleteResponse -} - -// 删除奇门订单链路用户 成功返回结果 -type TaobaoQimenTradeUserDeleteResponse struct { - XMLName xml.Name `xml:"qimen_trade_user_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // modal - Modal bool `json:"modal,omitempty" xml:"modal,omitempty"` -} diff --git a/model/util/TaobaoQimenTradeUsersGetAPIRequest.go b/model/util/TaobaoQimenTradeUsersGetAPIRequest.go new file mode 100644 index 0000000000..d0ab2e465a --- /dev/null +++ b/model/util/TaobaoQimenTradeUsersGetAPIRequest.go @@ -0,0 +1,66 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取奇门用户列表 API请求 +taobao.qimen.trade.users.get + +获取已开通奇门订单服务的用户列表 +*/ +type TaobaoQimenTradeUsersGetAPIRequest struct { + model.Params + // 每页的数量 + _pageIndex int64 + // 页数 + _pageSize int64 +} + +// 初始化TaobaoQimenTradeUsersGetAPIRequest对象 +func NewTaobaoQimenTradeUsersGetRequest() *TaobaoQimenTradeUsersGetAPIRequest{ + return &TaobaoQimenTradeUsersGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQimenTradeUsersGetAPIRequest) GetApiMethodName() string { + return "taobao.qimen.trade.users.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQimenTradeUsersGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageIndex Setter +// 每页的数量 +func (r *TaobaoQimenTradeUsersGetAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TaobaoQimenTradeUsersGetAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} +// PageSize Setter +// 页数 +func (r *TaobaoQimenTradeUsersGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoQimenTradeUsersGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/util/TaobaoQimenTradeUsersGetAPIResponse.go b/model/util/TaobaoQimenTradeUsersGetAPIResponse.go new file mode 100644 index 0000000000..ddce1ade95 --- /dev/null +++ b/model/util/TaobaoQimenTradeUsersGetAPIResponse.go @@ -0,0 +1,29 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取奇门用户列表 API返回值 +taobao.qimen.trade.users.get + +获取已开通奇门订单服务的用户列表 +*/ +type TaobaoQimenTradeUsersGetAPIResponse struct { + model.CommonResponse + TaobaoQimenTradeUsersGetAPIResponseModel +} + +// 获取奇门用户列表 成功返回结果 +type TaobaoQimenTradeUsersGetAPIResponseModel struct { + XMLName xml.Name `xml:"qimen_trade_users_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // totalCount + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // modal + Users []QimenUser `json:"users,omitempty" xml:"users>qimen_user,omitempty"` +} diff --git a/model/util/TaobaoQimenTradeUsersGetResponse.go b/model/util/TaobaoQimenTradeUsersGetResponse.go deleted file mode 100644 index 4ea78c6fde..0000000000 --- a/model/util/TaobaoQimenTradeUsersGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取奇门用户列表 API返回值 -taobao.qimen.trade.users.get - -获取已开通奇门订单服务的用户列表 -*/ -type TaobaoQimenTradeUsersGetAPIResponse struct { - model.CommonResponse - TaobaoQimenTradeUsersGetResponse -} - -// 获取奇门用户列表 成功返回结果 -type TaobaoQimenTradeUsersGetResponse struct { - XMLName xml.Name `xml:"qimen_trade_users_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // totalCount - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // modal - Users []QimenUser `json:"users,omitempty" xml:"users>qimen_user,omitempty"` -} diff --git a/model/util/TaobaoRdcAligeniusRefundsCheckAPIRequest.go b/model/util/TaobaoRdcAligeniusRefundsCheckAPIRequest.go new file mode 100644 index 0000000000..8c710d15e8 --- /dev/null +++ b/model/util/TaobaoRdcAligeniusRefundsCheckAPIRequest.go @@ -0,0 +1,52 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +退款信息审核 API请求 +taobao.rdc.aligenius.refunds.check + +根据退款信息,对退款单进行审核 +*/ +type TaobaoRdcAligeniusRefundsCheckAPIRequest struct { + model.Params + // 入参 + _param *RefundCheckDto +} + +// 初始化TaobaoRdcAligeniusRefundsCheckAPIRequest对象 +func NewTaobaoRdcAligeniusRefundsCheckRequest() *TaobaoRdcAligeniusRefundsCheckAPIRequest{ + return &TaobaoRdcAligeniusRefundsCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoRdcAligeniusRefundsCheckAPIRequest) GetApiMethodName() string { + return "taobao.rdc.aligenius.refunds.check" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoRdcAligeniusRefundsCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *TaobaoRdcAligeniusRefundsCheckAPIRequest) SetParam(_param *RefundCheckDto) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r TaobaoRdcAligeniusRefundsCheckAPIRequest) GetParam() *RefundCheckDto { + return r._param +} diff --git a/model/util/TaobaoRdcAligeniusRefundsCheckAPIResponse.go b/model/util/TaobaoRdcAligeniusRefundsCheckAPIResponse.go new file mode 100644 index 0000000000..7f79728ff9 --- /dev/null +++ b/model/util/TaobaoRdcAligeniusRefundsCheckAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +退款信息审核 API返回值 +taobao.rdc.aligenius.refunds.check + +根据退款信息,对退款单进行审核 +*/ +type TaobaoRdcAligeniusRefundsCheckAPIResponse struct { + model.CommonResponse + TaobaoRdcAligeniusRefundsCheckAPIResponseModel +} + +// 退款信息审核 成功返回结果 +type TaobaoRdcAligeniusRefundsCheckAPIResponseModel struct { + XMLName xml.Name `xml:"rdc_aligenius_refunds_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoRdcAligeniusRefundsCheckResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/util/TaobaoRdcAligeniusRefundsCheckResponse.go b/model/util/TaobaoRdcAligeniusRefundsCheckResponse.go deleted file mode 100644 index 1bf8ad5cbc..0000000000 --- a/model/util/TaobaoRdcAligeniusRefundsCheckResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -退款信息审核 API返回值 -taobao.rdc.aligenius.refunds.check - -根据退款信息,对退款单进行审核 -*/ -type TaobaoRdcAligeniusRefundsCheckAPIResponse struct { - model.CommonResponse - TaobaoRdcAligeniusRefundsCheckResponse -} - -// 退款信息审核 成功返回结果 -type TaobaoRdcAligeniusRefundsCheckResponse struct { - XMLName xml.Name `xml:"rdc_aligenius_refunds_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoRdcAligeniusRefundsCheckResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/TaobaoStreetestSessionGetAPIRequest.go b/model/util/TaobaoStreetestSessionGetAPIRequest.go new file mode 100644 index 0000000000..2ecf628d8c --- /dev/null +++ b/model/util/TaobaoStreetestSessionGetAPIRequest.go @@ -0,0 +1,38 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据获取压测用户的sessionKey API请求 +taobao.streetest.session.get + +根据正常用户sessionKey获取对应压测用户的sessionKey,该sessionKey只能用户服务商全链路压测 +*/ +type TaobaoStreetestSessionGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoStreetestSessionGetAPIRequest对象 +func NewTaobaoStreetestSessionGetRequest() *TaobaoStreetestSessionGetAPIRequest{ + return &TaobaoStreetestSessionGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoStreetestSessionGetAPIRequest) GetApiMethodName() string { + return "taobao.streetest.session.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoStreetestSessionGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/util/TaobaoStreetestSessionGetAPIResponse.go b/model/util/TaobaoStreetestSessionGetAPIResponse.go new file mode 100644 index 0000000000..1fbdc4128b --- /dev/null +++ b/model/util/TaobaoStreetestSessionGetAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据获取压测用户的sessionKey API返回值 +taobao.streetest.session.get + +根据正常用户sessionKey获取对应压测用户的sessionKey,该sessionKey只能用户服务商全链路压测 +*/ +type TaobaoStreetestSessionGetAPIResponse struct { + model.CommonResponse + TaobaoStreetestSessionGetAPIResponseModel +} + +// 根据获取压测用户的sessionKey 成功返回结果 +type TaobaoStreetestSessionGetAPIResponseModel struct { + XMLName xml.Name `xml:"streetest_session_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 压测账号对应的sessionKey + StreeTestSessionKey string `json:"stree_test_session_key,omitempty" xml:"stree_test_session_key,omitempty"` +} diff --git a/model/util/TaobaoStreetestSessionGetResponse.go b/model/util/TaobaoStreetestSessionGetResponse.go deleted file mode 100644 index db0f33c968..0000000000 --- a/model/util/TaobaoStreetestSessionGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据获取压测用户的sessionKey API返回值 -taobao.streetest.session.get - -根据正常用户sessionKey获取对应压测用户的sessionKey,该sessionKey只能用户服务商全链路压测 -*/ -type TaobaoStreetestSessionGetAPIResponse struct { - model.CommonResponse - TaobaoStreetestSessionGetResponse -} - -// 根据获取压测用户的sessionKey 成功返回结果 -type TaobaoStreetestSessionGetResponse struct { - XMLName xml.Name `xml:"streetest_session_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 压测账号对应的sessionKey - StreeTestSessionKey string `json:"stree_test_session_key,omitempty" xml:"stree_test_session_key,omitempty"` -} diff --git a/model/util/TaobaoTimeGetAPIRequest.go b/model/util/TaobaoTimeGetAPIRequest.go new file mode 100644 index 0000000000..5db3d0e458 --- /dev/null +++ b/model/util/TaobaoTimeGetAPIRequest.go @@ -0,0 +1,38 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取淘宝系统当前时间 API请求 +taobao.time.get + +获取淘宝系统当前时间 +*/ +type TaobaoTimeGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoTimeGetAPIRequest对象 +func NewTaobaoTimeGetRequest() *TaobaoTimeGetAPIRequest{ + return &TaobaoTimeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTimeGetAPIRequest) GetApiMethodName() string { + return "taobao.time.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTimeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/util/TaobaoTimeGetAPIResponse.go b/model/util/TaobaoTimeGetAPIResponse.go new file mode 100644 index 0000000000..935427b87f --- /dev/null +++ b/model/util/TaobaoTimeGetAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取淘宝系统当前时间 API返回值 +taobao.time.get + +获取淘宝系统当前时间 +*/ +type TaobaoTimeGetAPIResponse struct { + model.CommonResponse + TaobaoTimeGetAPIResponseModel +} + +// 获取淘宝系统当前时间 成功返回结果 +type TaobaoTimeGetAPIResponseModel struct { + XMLName xml.Name `xml:"time_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 淘宝系统当前时间。格式:yyyy-MM-dd HH:mm:ss + Time string `json:"time,omitempty" xml:"time,omitempty"` +} diff --git a/model/util/TaobaoTimeGetResponse.go b/model/util/TaobaoTimeGetResponse.go deleted file mode 100644 index a9ad6ae596..0000000000 --- a/model/util/TaobaoTimeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取淘宝系统当前时间 API返回值 -taobao.time.get - -获取淘宝系统当前时间 -*/ -type TaobaoTimeGetAPIResponse struct { - model.CommonResponse - TaobaoTimeGetResponse -} - -// 获取淘宝系统当前时间 成功返回结果 -type TaobaoTimeGetResponse struct { - XMLName xml.Name `xml:"time_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 淘宝系统当前时间。格式:yyyy-MM-dd HH:mm:ss - Time string `json:"time,omitempty" xml:"time,omitempty"` -} diff --git a/model/util/TaobaoTmcAuthGetAPIRequest.go b/model/util/TaobaoTmcAuthGetAPIRequest.go new file mode 100644 index 0000000000..8dc8780032 --- /dev/null +++ b/model/util/TaobaoTmcAuthGetAPIRequest.go @@ -0,0 +1,52 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +TMC授权token API请求 +taobao.tmc.auth.get + +TMC连接授权Token +*/ +type TaobaoTmcAuthGetAPIRequest struct { + model.Params + // tmc组名 + _group string +} + +// 初始化TaobaoTmcAuthGetAPIRequest对象 +func NewTaobaoTmcAuthGetRequest() *TaobaoTmcAuthGetAPIRequest{ + return &TaobaoTmcAuthGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTmcAuthGetAPIRequest) GetApiMethodName() string { + return "taobao.tmc.auth.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTmcAuthGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Group Setter +// tmc组名 +func (r *TaobaoTmcAuthGetAPIRequest) SetGroup(_group string) error { + r._group = _group + r.Set("group", _group) + return nil +} + +// Group Getter +func (r TaobaoTmcAuthGetAPIRequest) GetGroup() string { + return r._group +} diff --git a/model/util/TaobaoTmcAuthGetAPIResponse.go b/model/util/TaobaoTmcAuthGetAPIResponse.go new file mode 100644 index 0000000000..bfaea6d582 --- /dev/null +++ b/model/util/TaobaoTmcAuthGetAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +TMC授权token API返回值 +taobao.tmc.auth.get + +TMC连接授权Token +*/ +type TaobaoTmcAuthGetAPIResponse struct { + model.CommonResponse + TaobaoTmcAuthGetAPIResponseModel +} + +// TMC授权token 成功返回结果 +type TaobaoTmcAuthGetAPIResponseModel struct { + XMLName xml.Name `xml:"tmc_auth_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/util/TaobaoTmcAuthGetResponse.go b/model/util/TaobaoTmcAuthGetResponse.go deleted file mode 100644 index d9c1bfc724..0000000000 --- a/model/util/TaobaoTmcAuthGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -TMC授权token API返回值 -taobao.tmc.auth.get - -TMC连接授权Token -*/ -type TaobaoTmcAuthGetAPIResponse struct { - model.CommonResponse - TaobaoTmcAuthGetResponse -} - -// TMC授权token 成功返回结果 -type TaobaoTmcAuthGetResponse struct { - XMLName xml.Name `xml:"tmc_auth_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/TaobaoTopAuthTokenCreateAPIRequest.go b/model/util/TaobaoTopAuthTokenCreateAPIRequest.go new file mode 100644 index 0000000000..9d59ef232a --- /dev/null +++ b/model/util/TaobaoTopAuthTokenCreateAPIRequest.go @@ -0,0 +1,66 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取Access Token API请求 +taobao.top.auth.token.create + +用户通过code换获取access_token,https only +*/ +type TaobaoTopAuthTokenCreateAPIRequest struct { + model.Params + // 授权code,grantType==authorization_code 时需要 + _code string + // 与生成code的uuid配对 + _uuid string +} + +// 初始化TaobaoTopAuthTokenCreateAPIRequest对象 +func NewTaobaoTopAuthTokenCreateRequest() *TaobaoTopAuthTokenCreateAPIRequest{ + return &TaobaoTopAuthTokenCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTopAuthTokenCreateAPIRequest) GetApiMethodName() string { + return "taobao.top.auth.token.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTopAuthTokenCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 授权code,grantType==authorization_code 时需要 +func (r *TaobaoTopAuthTokenCreateAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r TaobaoTopAuthTokenCreateAPIRequest) GetCode() string { + return r._code +} +// Uuid Setter +// 与生成code的uuid配对 +func (r *TaobaoTopAuthTokenCreateAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r TaobaoTopAuthTokenCreateAPIRequest) GetUuid() string { + return r._uuid +} diff --git a/model/util/TaobaoTopAuthTokenCreateAPIResponse.go b/model/util/TaobaoTopAuthTokenCreateAPIResponse.go new file mode 100644 index 0000000000..de2fec7a6b --- /dev/null +++ b/model/util/TaobaoTopAuthTokenCreateAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取Access Token API返回值 +taobao.top.auth.token.create + +用户通过code换获取access_token,https only +*/ +type TaobaoTopAuthTokenCreateAPIResponse struct { + model.CommonResponse + TaobaoTopAuthTokenCreateAPIResponseModel +} + +// 获取Access Token 成功返回结果 +type TaobaoTopAuthTokenCreateAPIResponseModel struct { + XMLName xml.Name `xml:"top_auth_token_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的是json信息,和之前调用https://oauth.taobao.com/tac/token https://oauth.alibaba.com/token 换token返回的字段信息一致 + TokenResult string `json:"token_result,omitempty" xml:"token_result,omitempty"` +} diff --git a/model/util/TaobaoTopAuthTokenCreateResponse.go b/model/util/TaobaoTopAuthTokenCreateResponse.go deleted file mode 100644 index 91208268b3..0000000000 --- a/model/util/TaobaoTopAuthTokenCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取Access Token API返回值 -taobao.top.auth.token.create - -用户通过code换获取access_token,https only -*/ -type TaobaoTopAuthTokenCreateAPIResponse struct { - model.CommonResponse - TaobaoTopAuthTokenCreateResponse -} - -// 获取Access Token 成功返回结果 -type TaobaoTopAuthTokenCreateResponse struct { - XMLName xml.Name `xml:"top_auth_token_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的是json信息,和之前调用https://oauth.taobao.com/tac/token https://oauth.alibaba.com/token 换token返回的字段信息一致 - TokenResult string `json:"token_result,omitempty" xml:"token_result,omitempty"` -} diff --git a/model/util/TaobaoTopAuthTokenRefreshAPIRequest.go b/model/util/TaobaoTopAuthTokenRefreshAPIRequest.go new file mode 100644 index 0000000000..b49b04c6f9 --- /dev/null +++ b/model/util/TaobaoTopAuthTokenRefreshAPIRequest.go @@ -0,0 +1,52 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +刷新Access Token API请求 +taobao.top.auth.token.refresh + +根据refresh_token重新生成token,目前只有服务市场订购类应用可以刷新token,其他类型应用(如商家后台)使用固定时长token,不提供刷新功能。 +*/ +type TaobaoTopAuthTokenRefreshAPIRequest struct { + model.Params + // grantType==refresh_token 时需要 + _refreshToken string +} + +// 初始化TaobaoTopAuthTokenRefreshAPIRequest对象 +func NewTaobaoTopAuthTokenRefreshRequest() *TaobaoTopAuthTokenRefreshAPIRequest{ + return &TaobaoTopAuthTokenRefreshAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTopAuthTokenRefreshAPIRequest) GetApiMethodName() string { + return "taobao.top.auth.token.refresh" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTopAuthTokenRefreshAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefreshToken Setter +// grantType==refresh_token 时需要 +func (r *TaobaoTopAuthTokenRefreshAPIRequest) SetRefreshToken(_refreshToken string) error { + r._refreshToken = _refreshToken + r.Set("refresh_token", _refreshToken) + return nil +} + +// RefreshToken Getter +func (r TaobaoTopAuthTokenRefreshAPIRequest) GetRefreshToken() string { + return r._refreshToken +} diff --git a/model/util/TaobaoTopAuthTokenRefreshAPIResponse.go b/model/util/TaobaoTopAuthTokenRefreshAPIResponse.go new file mode 100644 index 0000000000..45c3d84e07 --- /dev/null +++ b/model/util/TaobaoTopAuthTokenRefreshAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +刷新Access Token API返回值 +taobao.top.auth.token.refresh + +根据refresh_token重新生成token,目前只有服务市场订购类应用可以刷新token,其他类型应用(如商家后台)使用固定时长token,不提供刷新功能。 +*/ +type TaobaoTopAuthTokenRefreshAPIResponse struct { + model.CommonResponse + TaobaoTopAuthTokenRefreshAPIResponseModel +} + +// 刷新Access Token 成功返回结果 +type TaobaoTopAuthTokenRefreshAPIResponseModel struct { + XMLName xml.Name `xml:"top_auth_token_refresh_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的是json信息 + TokenResult string `json:"token_result,omitempty" xml:"token_result,omitempty"` +} diff --git a/model/util/TaobaoTopAuthTokenRefreshResponse.go b/model/util/TaobaoTopAuthTokenRefreshResponse.go deleted file mode 100644 index 6bc95eb69e..0000000000 --- a/model/util/TaobaoTopAuthTokenRefreshResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -刷新Access Token API返回值 -taobao.top.auth.token.refresh - -根据refresh_token重新生成token,目前只有服务市场订购类应用可以刷新token,其他类型应用(如商家后台)使用固定时长token,不提供刷新功能。 -*/ -type TaobaoTopAuthTokenRefreshAPIResponse struct { - model.CommonResponse - TaobaoTopAuthTokenRefreshResponse -} - -// 刷新Access Token 成功返回结果 -type TaobaoTopAuthTokenRefreshResponse struct { - XMLName xml.Name `xml:"top_auth_token_refresh_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的是json信息 - TokenResult string `json:"token_result,omitempty" xml:"token_result,omitempty"` -} diff --git a/model/util/TaobaoTopIpoutGetAPIRequest.go b/model/util/TaobaoTopIpoutGetAPIRequest.go new file mode 100644 index 0000000000..823af9de50 --- /dev/null +++ b/model/util/TaobaoTopIpoutGetAPIRequest.go @@ -0,0 +1,38 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取开放平台出口IP段 API请求 +taobao.top.ipout.get + +获取开放平台出口IP段 +*/ +type TaobaoTopIpoutGetAPIRequest struct { + model.Params +} + +// 初始化TaobaoTopIpoutGetAPIRequest对象 +func NewTaobaoTopIpoutGetRequest() *TaobaoTopIpoutGetAPIRequest{ + return &TaobaoTopIpoutGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTopIpoutGetAPIRequest) GetApiMethodName() string { + return "taobao.top.ipout.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTopIpoutGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/util/TaobaoTopIpoutGetAPIResponse.go b/model/util/TaobaoTopIpoutGetAPIResponse.go new file mode 100644 index 0000000000..c16ce7a801 --- /dev/null +++ b/model/util/TaobaoTopIpoutGetAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取开放平台出口IP段 API返回值 +taobao.top.ipout.get + +获取开放平台出口IP段 +*/ +type TaobaoTopIpoutGetAPIResponse struct { + model.CommonResponse + TaobaoTopIpoutGetAPIResponseModel +} + +// 获取开放平台出口IP段 成功返回结果 +type TaobaoTopIpoutGetAPIResponseModel struct { + XMLName xml.Name `xml:"top_ipout_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // TOP网关出口IP列表 + IpList string `json:"ip_list,omitempty" xml:"ip_list,omitempty"` +} diff --git a/model/util/TaobaoTopIpoutGetResponse.go b/model/util/TaobaoTopIpoutGetResponse.go deleted file mode 100644 index 718b039908..0000000000 --- a/model/util/TaobaoTopIpoutGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取开放平台出口IP段 API返回值 -taobao.top.ipout.get - -获取开放平台出口IP段 -*/ -type TaobaoTopIpoutGetAPIResponse struct { - model.CommonResponse - TaobaoTopIpoutGetResponse -} - -// 获取开放平台出口IP段 成功返回结果 -type TaobaoTopIpoutGetResponse struct { - XMLName xml.Name `xml:"top_ipout_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // TOP网关出口IP列表 - IpList string `json:"ip_list,omitempty" xml:"ip_list,omitempty"` -} diff --git a/model/util/TaobaoTopOnceTokenGetAPIRequest.go b/model/util/TaobaoTopOnceTokenGetAPIRequest.go new file mode 100644 index 0000000000..50e09f8d3a --- /dev/null +++ b/model/util/TaobaoTopOnceTokenGetAPIRequest.go @@ -0,0 +1,52 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +网关一次性token获取 API请求 +taobao.top.once.token.get + +网关一次性token获取 +*/ +type TaobaoTopOnceTokenGetAPIRequest struct { + model.Params + // sec_token + _secToken string +} + +// 初始化TaobaoTopOnceTokenGetAPIRequest对象 +func NewTaobaoTopOnceTokenGetRequest() *TaobaoTopOnceTokenGetAPIRequest{ + return &TaobaoTopOnceTokenGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTopOnceTokenGetAPIRequest) GetApiMethodName() string { + return "taobao.top.once.token.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTopOnceTokenGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SecToken Setter +// sec_token +func (r *TaobaoTopOnceTokenGetAPIRequest) SetSecToken(_secToken string) error { + r._secToken = _secToken + r.Set("sec_token", _secToken) + return nil +} + +// SecToken Getter +func (r TaobaoTopOnceTokenGetAPIRequest) GetSecToken() string { + return r._secToken +} diff --git a/model/util/TaobaoTopOnceTokenGetAPIResponse.go b/model/util/TaobaoTopOnceTokenGetAPIResponse.go new file mode 100644 index 0000000000..34f6cf9253 --- /dev/null +++ b/model/util/TaobaoTopOnceTokenGetAPIResponse.go @@ -0,0 +1,31 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +网关一次性token获取 API返回值 +taobao.top.once.token.get + +网关一次性token获取 +*/ +type TaobaoTopOnceTokenGetAPIResponse struct { + model.CommonResponse + TaobaoTopOnceTokenGetAPIResponseModel +} + +// 网关一次性token获取 成功返回结果 +type TaobaoTopOnceTokenGetAPIResponseModel struct { + XMLName xml.Name `xml:"top_once_token_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // token + Token string `json:"token,omitempty" xml:"token,omitempty"` + // 响应编码 + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 失败详情 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` +} diff --git a/model/util/TaobaoTopOnceTokenGetResponse.go b/model/util/TaobaoTopOnceTokenGetResponse.go deleted file mode 100644 index c81eadffde..0000000000 --- a/model/util/TaobaoTopOnceTokenGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -网关一次性token获取 API返回值 -taobao.top.once.token.get - -网关一次性token获取 -*/ -type TaobaoTopOnceTokenGetAPIResponse struct { - model.CommonResponse - TaobaoTopOnceTokenGetResponse -} - -// 网关一次性token获取 成功返回结果 -type TaobaoTopOnceTokenGetResponse struct { - XMLName xml.Name `xml:"top_once_token_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // token - Token string `json:"token,omitempty" xml:"token,omitempty"` - // 响应编码 - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 失败详情 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` -} diff --git a/model/util/TaobaoTopOpenidConvertAPIRequest.go b/model/util/TaobaoTopOpenidConvertAPIRequest.go new file mode 100644 index 0000000000..e0149e14d2 --- /dev/null +++ b/model/util/TaobaoTopOpenidConvertAPIRequest.go @@ -0,0 +1,52 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +混淆nick转openid API请求 +taobao.top.openid.convert + +混淆nick转openid,生成混淆nick必须与当前请求的isv匹配 +*/ +type TaobaoTopOpenidConvertAPIRequest struct { + model.Params + // 混淆nick转open_id + _mixNick string +} + +// 初始化TaobaoTopOpenidConvertAPIRequest对象 +func NewTaobaoTopOpenidConvertRequest() *TaobaoTopOpenidConvertAPIRequest{ + return &TaobaoTopOpenidConvertAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTopOpenidConvertAPIRequest) GetApiMethodName() string { + return "taobao.top.openid.convert" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTopOpenidConvertAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MixNick Setter +// 混淆nick转open_id +func (r *TaobaoTopOpenidConvertAPIRequest) SetMixNick(_mixNick string) error { + r._mixNick = _mixNick + r.Set("mix_nick", _mixNick) + return nil +} + +// MixNick Getter +func (r TaobaoTopOpenidConvertAPIRequest) GetMixNick() string { + return r._mixNick +} diff --git a/model/util/TaobaoTopOpenidConvertAPIResponse.go b/model/util/TaobaoTopOpenidConvertAPIResponse.go new file mode 100644 index 0000000000..a1a62caffc --- /dev/null +++ b/model/util/TaobaoTopOpenidConvertAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +混淆nick转openid API返回值 +taobao.top.openid.convert + +混淆nick转openid,生成混淆nick必须与当前请求的isv匹配 +*/ +type TaobaoTopOpenidConvertAPIResponse struct { + model.CommonResponse + TaobaoTopOpenidConvertAPIResponseModel +} + +// 混淆nick转openid 成功返回结果 +type TaobaoTopOpenidConvertAPIResponseModel struct { + XMLName xml.Name `xml:"top_openid_convert_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // open_id + OpenId string `json:"open_id,omitempty" xml:"open_id,omitempty"` +} diff --git a/model/util/TaobaoTopOpenidConvertResponse.go b/model/util/TaobaoTopOpenidConvertResponse.go deleted file mode 100644 index 5dbb5ad41c..0000000000 --- a/model/util/TaobaoTopOpenidConvertResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -混淆nick转openid API返回值 -taobao.top.openid.convert - -混淆nick转openid,生成混淆nick必须与当前请求的isv匹配 -*/ -type TaobaoTopOpenidConvertAPIResponse struct { - model.CommonResponse - TaobaoTopOpenidConvertResponse -} - -// 混淆nick转openid 成功返回结果 -type TaobaoTopOpenidConvertResponse struct { - XMLName xml.Name `xml:"top_openid_convert_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // open_id - OpenId string `json:"open_id,omitempty" xml:"open_id,omitempty"` -} diff --git a/model/util/TaobaoTopSdkFeedbackUploadAPIRequest.go b/model/util/TaobaoTopSdkFeedbackUploadAPIRequest.go new file mode 100644 index 0000000000..4acd2745ca --- /dev/null +++ b/model/util/TaobaoTopSdkFeedbackUploadAPIRequest.go @@ -0,0 +1,66 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +sdk信息回调 API请求 +taobao.top.sdk.feedback.upload + +sdk回调客户端基本信息到开放平台,用于做监控之类,有助于帮助isv监控系统稳定性 +*/ +type TaobaoTopSdkFeedbackUploadAPIRequest struct { + model.Params + // 1、回传加密信息 + _type string + // 具体内容,json形式 + _content string +} + +// 初始化TaobaoTopSdkFeedbackUploadAPIRequest对象 +func NewTaobaoTopSdkFeedbackUploadRequest() *TaobaoTopSdkFeedbackUploadAPIRequest{ + return &TaobaoTopSdkFeedbackUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTopSdkFeedbackUploadAPIRequest) GetApiMethodName() string { + return "taobao.top.sdk.feedback.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTopSdkFeedbackUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// 1、回传加密信息 +func (r *TaobaoTopSdkFeedbackUploadAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoTopSdkFeedbackUploadAPIRequest) GetType() string { + return r._type +} +// Content Setter +// 具体内容,json形式 +func (r *TaobaoTopSdkFeedbackUploadAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r TaobaoTopSdkFeedbackUploadAPIRequest) GetContent() string { + return r._content +} diff --git a/model/util/TaobaoTopSdkFeedbackUploadAPIResponse.go b/model/util/TaobaoTopSdkFeedbackUploadAPIResponse.go new file mode 100644 index 0000000000..ae98aa4443 --- /dev/null +++ b/model/util/TaobaoTopSdkFeedbackUploadAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +sdk信息回调 API返回值 +taobao.top.sdk.feedback.upload + +sdk回调客户端基本信息到开放平台,用于做监控之类,有助于帮助isv监控系统稳定性 +*/ +type TaobaoTopSdkFeedbackUploadAPIResponse struct { + model.CommonResponse + TaobaoTopSdkFeedbackUploadAPIResponseModel +} + +// sdk信息回调 成功返回结果 +type TaobaoTopSdkFeedbackUploadAPIResponseModel struct { + XMLName xml.Name `xml:"top_sdk_feedback_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 控制回传间隔(单位:秒) + UploadInterval int64 `json:"upload_interval,omitempty" xml:"upload_interval,omitempty"` +} diff --git a/model/util/TaobaoTopSdkFeedbackUploadResponse.go b/model/util/TaobaoTopSdkFeedbackUploadResponse.go deleted file mode 100644 index 187d9cede1..0000000000 --- a/model/util/TaobaoTopSdkFeedbackUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -sdk信息回调 API返回值 -taobao.top.sdk.feedback.upload - -sdk回调客户端基本信息到开放平台,用于做监控之类,有助于帮助isv监控系统稳定性 -*/ -type TaobaoTopSdkFeedbackUploadAPIResponse struct { - model.CommonResponse - TaobaoTopSdkFeedbackUploadResponse -} - -// sdk信息回调 成功返回结果 -type TaobaoTopSdkFeedbackUploadResponse struct { - XMLName xml.Name `xml:"top_sdk_feedback_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 控制回传间隔(单位:秒) - UploadInterval int64 `json:"upload_interval,omitempty" xml:"upload_interval,omitempty"` -} diff --git a/model/util/TaobaoTopSecretGetAPIRequest.go b/model/util/TaobaoTopSecretGetAPIRequest.go new file mode 100644 index 0000000000..eff993b4ed --- /dev/null +++ b/model/util/TaobaoTopSecretGetAPIRequest.go @@ -0,0 +1,80 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取TOP通道解密秘钥 API请求 +taobao.top.secret.get + +top sdk通过api获取对应解密秘钥 +*/ +type TaobaoTopSecretGetAPIRequest struct { + model.Params + // 秘钥版本号 + _secretVersion int64 + // 伪随机数 + _randomNum string + // 自定义用户id + _customerUserId int64 +} + +// 初始化TaobaoTopSecretGetAPIRequest对象 +func NewTaobaoTopSecretGetRequest() *TaobaoTopSecretGetAPIRequest{ + return &TaobaoTopSecretGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTopSecretGetAPIRequest) GetApiMethodName() string { + return "taobao.top.secret.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTopSecretGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SecretVersion Setter +// 秘钥版本号 +func (r *TaobaoTopSecretGetAPIRequest) SetSecretVersion(_secretVersion int64) error { + r._secretVersion = _secretVersion + r.Set("secret_version", _secretVersion) + return nil +} + +// SecretVersion Getter +func (r TaobaoTopSecretGetAPIRequest) GetSecretVersion() int64 { + return r._secretVersion +} +// RandomNum Setter +// 伪随机数 +func (r *TaobaoTopSecretGetAPIRequest) SetRandomNum(_randomNum string) error { + r._randomNum = _randomNum + r.Set("random_num", _randomNum) + return nil +} + +// RandomNum Getter +func (r TaobaoTopSecretGetAPIRequest) GetRandomNum() string { + return r._randomNum +} +// CustomerUserId Setter +// 自定义用户id +func (r *TaobaoTopSecretGetAPIRequest) SetCustomerUserId(_customerUserId int64) error { + r._customerUserId = _customerUserId + r.Set("customer_user_id", _customerUserId) + return nil +} + +// CustomerUserId Getter +func (r TaobaoTopSecretGetAPIRequest) GetCustomerUserId() int64 { + return r._customerUserId +} diff --git a/model/util/TaobaoTopSecretGetAPIResponse.go b/model/util/TaobaoTopSecretGetAPIResponse.go new file mode 100644 index 0000000000..c307d226cd --- /dev/null +++ b/model/util/TaobaoTopSecretGetAPIResponse.go @@ -0,0 +1,35 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取TOP通道解密秘钥 API返回值 +taobao.top.secret.get + +top sdk通过api获取对应解密秘钥 +*/ +type TaobaoTopSecretGetAPIResponse struct { + model.CommonResponse + TaobaoTopSecretGetAPIResponseModel +} + +// 获取TOP通道解密秘钥 成功返回结果 +type TaobaoTopSecretGetAPIResponseModel struct { + XMLName xml.Name `xml:"top_secret_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 下次更新秘钥间隔,单位(秒) + Interval int64 `json:"interval,omitempty" xml:"interval,omitempty"` + // 秘钥值 + Secret string `json:"secret,omitempty" xml:"secret,omitempty"` + // 秘钥版本号 + SecretVersion int64 `json:"secret_version,omitempty" xml:"secret_version,omitempty"` + // 最长有效期,容灾使用,单位(秒) + MaxInterval int64 `json:"max_interval,omitempty" xml:"max_interval,omitempty"` + // app配置信息 + AppConfig string `json:"app_config,omitempty" xml:"app_config,omitempty"` +} diff --git a/model/util/TaobaoTopSecretGetResponse.go b/model/util/TaobaoTopSecretGetResponse.go deleted file mode 100644 index 0a168ef726..0000000000 --- a/model/util/TaobaoTopSecretGetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取TOP通道解密秘钥 API返回值 -taobao.top.secret.get - -top sdk通过api获取对应解密秘钥 -*/ -type TaobaoTopSecretGetAPIResponse struct { - model.CommonResponse - TaobaoTopSecretGetResponse -} - -// 获取TOP通道解密秘钥 成功返回结果 -type TaobaoTopSecretGetResponse struct { - XMLName xml.Name `xml:"top_secret_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 下次更新秘钥间隔,单位(秒) - Interval int64 `json:"interval,omitempty" xml:"interval,omitempty"` - // 秘钥值 - Secret string `json:"secret,omitempty" xml:"secret,omitempty"` - // 秘钥版本号 - SecretVersion int64 `json:"secret_version,omitempty" xml:"secret_version,omitempty"` - // 最长有效期,容灾使用,单位(秒) - MaxInterval int64 `json:"max_interval,omitempty" xml:"max_interval,omitempty"` - // app配置信息 - AppConfig string `json:"app_config,omitempty" xml:"app_config,omitempty"` -} diff --git a/model/util/TaobaoTopSecretRegisterAPIRequest.go b/model/util/TaobaoTopSecretRegisterAPIRequest.go new file mode 100644 index 0000000000..655c4c676d --- /dev/null +++ b/model/util/TaobaoTopSecretRegisterAPIRequest.go @@ -0,0 +1,52 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +注册加密账号 API请求 +taobao.top.secret.register + +提供给isv注册非淘系账号秘钥,isv依赖sdk自主加、解密 +*/ +type TaobaoTopSecretRegisterAPIRequest struct { + model.Params + // 用户id,保证唯一 + _userId int64 +} + +// 初始化TaobaoTopSecretRegisterAPIRequest对象 +func NewTaobaoTopSecretRegisterRequest() *TaobaoTopSecretRegisterAPIRequest{ + return &TaobaoTopSecretRegisterAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoTopSecretRegisterAPIRequest) GetApiMethodName() string { + return "taobao.top.secret.register" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoTopSecretRegisterAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserId Setter +// 用户id,保证唯一 +func (r *TaobaoTopSecretRegisterAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r TaobaoTopSecretRegisterAPIRequest) GetUserId() int64 { + return r._userId +} diff --git a/model/util/TaobaoTopSecretRegisterAPIResponse.go b/model/util/TaobaoTopSecretRegisterAPIResponse.go new file mode 100644 index 0000000000..a19928b993 --- /dev/null +++ b/model/util/TaobaoTopSecretRegisterAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +注册加密账号 API返回值 +taobao.top.secret.register + +提供给isv注册非淘系账号秘钥,isv依赖sdk自主加、解密 +*/ +type TaobaoTopSecretRegisterAPIResponse struct { + model.CommonResponse + TaobaoTopSecretRegisterAPIResponseModel +} + +// 注册加密账号 成功返回结果 +type TaobaoTopSecretRegisterAPIResponseModel struct { + XMLName xml.Name `xml:"top_secret_register_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回操作是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/util/TaobaoTopSecretRegisterResponse.go b/model/util/TaobaoTopSecretRegisterResponse.go deleted file mode 100644 index 3bebfb41bd..0000000000 --- a/model/util/TaobaoTopSecretRegisterResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -注册加密账号 API返回值 -taobao.top.secret.register - -提供给isv注册非淘系账号秘钥,isv依赖sdk自主加、解密 -*/ -type TaobaoTopSecretRegisterAPIResponse struct { - model.CommonResponse - TaobaoTopSecretRegisterResponse -} - -// 注册加密账号 成功返回结果 -type TaobaoTopSecretRegisterResponse struct { - XMLName xml.Name `xml:"top_secret_register_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回操作是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/TaobaoWirelessContentCheckAPIRequest.go b/model/util/TaobaoWirelessContentCheckAPIRequest.go new file mode 100644 index 0000000000..6e04c97b1a --- /dev/null +++ b/model/util/TaobaoWirelessContentCheckAPIRequest.go @@ -0,0 +1,52 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +无线开放内容检查 API请求 +taobao.wireless.content.check + +无线开放内容检查,提供涉黄暴力政治文本检查。更详情介绍见 阿里云内容安全 +*/ +type TaobaoWirelessContentCheckAPIRequest struct { + model.Params + // 待检查的文本 + _text string +} + +// 初始化TaobaoWirelessContentCheckAPIRequest对象 +func NewTaobaoWirelessContentCheckRequest() *TaobaoWirelessContentCheckAPIRequest{ + return &TaobaoWirelessContentCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWirelessContentCheckAPIRequest) GetApiMethodName() string { + return "taobao.wireless.content.check" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWirelessContentCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Text Setter +// 待检查的文本 +func (r *TaobaoWirelessContentCheckAPIRequest) SetText(_text string) error { + r._text = _text + r.Set("text", _text) + return nil +} + +// Text Getter +func (r TaobaoWirelessContentCheckAPIRequest) GetText() string { + return r._text +} diff --git a/model/util/TaobaoWirelessContentCheckAPIResponse.go b/model/util/TaobaoWirelessContentCheckAPIResponse.go new file mode 100644 index 0000000000..fa22a94893 --- /dev/null +++ b/model/util/TaobaoWirelessContentCheckAPIResponse.go @@ -0,0 +1,29 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +无线开放内容检查 API返回值 +taobao.wireless.content.check + +无线开放内容检查,提供涉黄暴力政治文本检查。更详情介绍见 阿里云内容安全 +*/ +type TaobaoWirelessContentCheckAPIResponse struct { + model.CommonResponse + TaobaoWirelessContentCheckAPIResponseModel +} + +// 无线开放内容检查 成功返回结果 +type TaobaoWirelessContentCheckAPIResponseModel struct { + XMLName xml.Name `xml:"wireless_content_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 检查结果 + CheckResults []Checkpoints `json:"check_results,omitempty" xml:"check_results>checkpoints,omitempty"` + // 综合结果建议。建议用户执行的操作,取值范围: pass:文本正常; review:需要人工审核; block:文本违规,可以直接删除或者做限制处理 + Suggestion string `json:"suggestion,omitempty" xml:"suggestion,omitempty"` +} diff --git a/model/util/TaobaoWirelessContentCheckResponse.go b/model/util/TaobaoWirelessContentCheckResponse.go deleted file mode 100644 index 0247855f30..0000000000 --- a/model/util/TaobaoWirelessContentCheckResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -无线开放内容检查 API返回值 -taobao.wireless.content.check - -无线开放内容检查,提供涉黄暴力政治文本检查。更详情介绍见 阿里云内容安全 -*/ -type TaobaoWirelessContentCheckAPIResponse struct { - model.CommonResponse - TaobaoWirelessContentCheckResponse -} - -// 无线开放内容检查 成功返回结果 -type TaobaoWirelessContentCheckResponse struct { - XMLName xml.Name `xml:"wireless_content_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 检查结果 - CheckResults []Checkpoints `json:"check_results,omitempty" xml:"check_results>checkpoints,omitempty"` - // 综合结果建议。建议用户执行的操作,取值范围: pass:文本正常; review:需要人工审核; block:文本违规,可以直接删除或者做限制处理 - Suggestion string `json:"suggestion,omitempty" xml:"suggestion,omitempty"` -} diff --git a/model/util/TaobaoWirelessPictureCheckAPIRequest.go b/model/util/TaobaoWirelessPictureCheckAPIRequest.go new file mode 100644 index 0000000000..aeb79e1b2e --- /dev/null +++ b/model/util/TaobaoWirelessPictureCheckAPIRequest.go @@ -0,0 +1,53 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +无线开放图片内容安全检查 API请求 +taobao.wireless.picture.check + +无线开放内容检查,提供涉黄暴力政治图片检查。更详情介绍见 阿里云内容安全 +此API会进行两个场景审核,平均RT为1s。 +*/ +type TaobaoWirelessPictureCheckAPIRequest struct { + model.Params + // 图片的URL,URL必须为淘系安全域名地址。图片格式支持png,jpg,webp + _url string +} + +// 初始化TaobaoWirelessPictureCheckAPIRequest对象 +func NewTaobaoWirelessPictureCheckRequest() *TaobaoWirelessPictureCheckAPIRequest{ + return &TaobaoWirelessPictureCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWirelessPictureCheckAPIRequest) GetApiMethodName() string { + return "taobao.wireless.picture.check" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWirelessPictureCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Url Setter +// 图片的URL,URL必须为淘系安全域名地址。图片格式支持png,jpg,webp +func (r *TaobaoWirelessPictureCheckAPIRequest) SetUrl(_url string) error { + r._url = _url + r.Set("url", _url) + return nil +} + +// Url Getter +func (r TaobaoWirelessPictureCheckAPIRequest) GetUrl() string { + return r._url +} diff --git a/model/util/TaobaoWirelessPictureCheckAPIResponse.go b/model/util/TaobaoWirelessPictureCheckAPIResponse.go new file mode 100644 index 0000000000..2a3013e944 --- /dev/null +++ b/model/util/TaobaoWirelessPictureCheckAPIResponse.go @@ -0,0 +1,30 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +无线开放图片内容安全检查 API返回值 +taobao.wireless.picture.check + +无线开放内容检查,提供涉黄暴力政治图片检查。更详情介绍见 阿里云内容安全 +此API会进行两个场景审核,平均RT为1s。 +*/ +type TaobaoWirelessPictureCheckAPIResponse struct { + model.CommonResponse + TaobaoWirelessPictureCheckAPIResponseModel +} + +// 无线开放图片内容安全检查 成功返回结果 +type TaobaoWirelessPictureCheckAPIResponseModel struct { + XMLName xml.Name `xml:"wireless_picture_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 检查结果 + CheckResults []Checkpoints `json:"check_results,omitempty" xml:"check_results>checkpoints,omitempty"` + // 综合结果建议。建议用户执行的操作,取值范围: pass:文本正常; review:需要人工审核; block:文本违规,可以直接删除或者做限制处理 + Suggestion string `json:"suggestion,omitempty" xml:"suggestion,omitempty"` +} diff --git a/model/util/TaobaoWirelessPictureCheckResponse.go b/model/util/TaobaoWirelessPictureCheckResponse.go deleted file mode 100644 index d32abdf50b..0000000000 --- a/model/util/TaobaoWirelessPictureCheckResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -无线开放图片内容安全检查 API返回值 -taobao.wireless.picture.check - -无线开放内容检查,提供涉黄暴力政治图片检查。更详情介绍见 阿里云内容安全 -此API会进行两个场景审核,平均RT为1s。 -*/ -type TaobaoWirelessPictureCheckAPIResponse struct { - model.CommonResponse - TaobaoWirelessPictureCheckResponse -} - -// 无线开放图片内容安全检查 成功返回结果 -type TaobaoWirelessPictureCheckResponse struct { - XMLName xml.Name `xml:"wireless_picture_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 检查结果 - CheckResults []Checkpoints `json:"check_results,omitempty" xml:"check_results>checkpoints,omitempty"` - // 综合结果建议。建议用户执行的操作,取值范围: pass:文本正常; review:需要人工审核; block:文本违规,可以直接删除或者做限制处理 - Suggestion string `json:"suggestion,omitempty" xml:"suggestion,omitempty"` -} diff --git a/model/util/TaobaoWirelessVideoCheckAPIRequest.go b/model/util/TaobaoWirelessVideoCheckAPIRequest.go new file mode 100644 index 0000000000..b8cd37153e --- /dev/null +++ b/model/util/TaobaoWirelessVideoCheckAPIRequest.go @@ -0,0 +1,70 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +无线开放视频内容安全检查 API请求 +taobao.wireless.video.check + +无线开放内容检查,提供涉黄暴力政治音视频的异步检查。更详情介绍见 阿里云内容安全 + +此API会进行三个场景的审核,检测不通过的视频将被隐藏,用户无法访问被隐藏的视频。 + +目前,该接口仅支持顽兔空间的视频扫描。 +*/ +type TaobaoWirelessVideoCheckAPIRequest struct { + model.Params + // 视频的URL,必须为淘系安全域名地址。视频格式支持flv、mp4。 + _url string + // 视频截帧间隔,取值范围为[1, 60],单位为秒。 截帧最多张数为200张,请根据视频时长,合理设置截帧间隔。 + _interval int64 +} + +// 初始化TaobaoWirelessVideoCheckAPIRequest对象 +func NewTaobaoWirelessVideoCheckRequest() *TaobaoWirelessVideoCheckAPIRequest{ + return &TaobaoWirelessVideoCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWirelessVideoCheckAPIRequest) GetApiMethodName() string { + return "taobao.wireless.video.check" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWirelessVideoCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Url Setter +// 视频的URL,必须为淘系安全域名地址。视频格式支持flv、mp4。 +func (r *TaobaoWirelessVideoCheckAPIRequest) SetUrl(_url string) error { + r._url = _url + r.Set("url", _url) + return nil +} + +// Url Getter +func (r TaobaoWirelessVideoCheckAPIRequest) GetUrl() string { + return r._url +} +// Interval Setter +// 视频截帧间隔,取值范围为[1, 60],单位为秒。 截帧最多张数为200张,请根据视频时长,合理设置截帧间隔。 +func (r *TaobaoWirelessVideoCheckAPIRequest) SetInterval(_interval int64) error { + r._interval = _interval + r.Set("interval", _interval) + return nil +} + +// Interval Getter +func (r TaobaoWirelessVideoCheckAPIRequest) GetInterval() int64 { + return r._interval +} diff --git a/model/util/TaobaoWirelessVideoCheckAPIResponse.go b/model/util/TaobaoWirelessVideoCheckAPIResponse.go new file mode 100644 index 0000000000..461b3bb157 --- /dev/null +++ b/model/util/TaobaoWirelessVideoCheckAPIResponse.go @@ -0,0 +1,31 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +无线开放视频内容安全检查 API返回值 +taobao.wireless.video.check + +无线开放内容检查,提供涉黄暴力政治音视频的异步检查。更详情介绍见 阿里云内容安全 + +此API会进行三个场景的审核,检测不通过的视频将被隐藏,用户无法访问被隐藏的视频。 + +目前,该接口仅支持顽兔空间的视频扫描。 +*/ +type TaobaoWirelessVideoCheckAPIResponse struct { + model.CommonResponse + TaobaoWirelessVideoCheckAPIResponseModel +} + +// 无线开放视频内容安全检查 成功返回结果 +type TaobaoWirelessVideoCheckAPIResponseModel struct { + XMLName xml.Name `xml:"wireless_video_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *RopResultTo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/util/TaobaoWirelessVideoCheckResponse.go b/model/util/TaobaoWirelessVideoCheckResponse.go deleted file mode 100644 index 848deebe7b..0000000000 --- a/model/util/TaobaoWirelessVideoCheckResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -无线开放视频内容安全检查 API返回值 -taobao.wireless.video.check - -无线开放内容检查,提供涉黄暴力政治音视频的异步检查。更详情介绍见 阿里云内容安全 - -此API会进行三个场景的审核,检测不通过的视频将被隐藏,用户无法访问被隐藏的视频。 - -目前,该接口仅支持顽兔空间的视频扫描。 -*/ -type TaobaoWirelessVideoCheckAPIResponse struct { - model.CommonResponse - TaobaoWirelessVideoCheckResponse -} - -// 无线开放视频内容安全检查 成功返回结果 -type TaobaoWirelessVideoCheckResponse struct { - XMLName xml.Name `xml:"wireless_video_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *RopResultTo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/util/TmallMarketingFaceSkindetectAPIRequest.go b/model/util/TmallMarketingFaceSkindetectAPIRequest.go new file mode 100644 index 0000000000..d3c78ac36a --- /dev/null +++ b/model/util/TmallMarketingFaceSkindetectAPIRequest.go @@ -0,0 +1,94 @@ +package util + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +肌肤检测 API请求 +tmall.marketing.face.skindetect + +提供人脸肌肤属性报告 +*/ +type TmallMarketingFaceSkindetectAPIRequest struct { + model.Params + // 图片的base64(必须以base64,开头) + _image string + // isv标识 + _source string + // 前置摄像头1,后置摄像头0 + _frontCamera string + // 混淆nick + _mixnick string +} + +// 初始化TmallMarketingFaceSkindetectAPIRequest对象 +func NewTmallMarketingFaceSkindetectRequest() *TmallMarketingFaceSkindetectAPIRequest{ + return &TmallMarketingFaceSkindetectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallMarketingFaceSkindetectAPIRequest) GetApiMethodName() string { + return "tmall.marketing.face.skindetect" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallMarketingFaceSkindetectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Image Setter +// 图片的base64(必须以base64,开头) +func (r *TmallMarketingFaceSkindetectAPIRequest) SetImage(_image string) error { + r._image = _image + r.Set("image", _image) + return nil +} + +// Image Getter +func (r TmallMarketingFaceSkindetectAPIRequest) GetImage() string { + return r._image +} +// Source Setter +// isv标识 +func (r *TmallMarketingFaceSkindetectAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TmallMarketingFaceSkindetectAPIRequest) GetSource() string { + return r._source +} +// FrontCamera Setter +// 前置摄像头1,后置摄像头0 +func (r *TmallMarketingFaceSkindetectAPIRequest) SetFrontCamera(_frontCamera string) error { + r._frontCamera = _frontCamera + r.Set("front_camera", _frontCamera) + return nil +} + +// FrontCamera Getter +func (r TmallMarketingFaceSkindetectAPIRequest) GetFrontCamera() string { + return r._frontCamera +} +// Mixnick Setter +// 混淆nick +func (r *TmallMarketingFaceSkindetectAPIRequest) SetMixnick(_mixnick string) error { + r._mixnick = _mixnick + r.Set("mixnick", _mixnick) + return nil +} + +// Mixnick Getter +func (r TmallMarketingFaceSkindetectAPIRequest) GetMixnick() string { + return r._mixnick +} diff --git a/model/util/TmallMarketingFaceSkindetectAPIResponse.go b/model/util/TmallMarketingFaceSkindetectAPIResponse.go new file mode 100644 index 0000000000..f4afb44160 --- /dev/null +++ b/model/util/TmallMarketingFaceSkindetectAPIResponse.go @@ -0,0 +1,27 @@ +package util + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +肌肤检测 API返回值 +tmall.marketing.face.skindetect + +提供人脸肌肤属性报告 +*/ +type TmallMarketingFaceSkindetectAPIResponse struct { + model.CommonResponse + TmallMarketingFaceSkindetectAPIResponseModel +} + +// 肌肤检测 成功返回结果 +type TmallMarketingFaceSkindetectAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_marketing_face_skindetect_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // { "code": "top api 状态码 200表示成功 ", "msg": "top api 返回描述说明 ", "data": { "detect_time": "检测时间戳 ", "gender": "0为男性1为女性 ", "age": "年龄 ", "color_level": "肤色等级,0~7,数字越小越白 ", "hue_level": " 色调等级,0~2,冷色,中性,暖色", "oil_cheeck": "脸颊含油 ", "oil_t_area": "T区含油 ", "oil_chin": "下巴含油 ", "oil_level": "总体出油情况, 0-干性,1-偏干,2-中性,3-混合油性,4-偏油,5-油性 ", "smooth_level": " 光滑度等级,0~3,数字越小越光滑 ", "acne_level": "痘痘严重程度,0~3,0表示没有,1~3表示轻度、中度、重度 ", "pore_level": " 毛孔粗细等级,0~2 - 细致,较粗大,粗大 ", "blackheads": "黑头数量 ", "black_level": "黑头严重程度,0~3,0表示没有,1~3表示轻度、中度、重度 ", "acne_loc": "痘痘坐标x,y,半径大小r(x,y,r)", "score": "颜值分", "r_face": "人脸区域坐标(x,y,w,h)", "code": "状态码,0表示成功" } } + DetectResult string `json:"detect_result,omitempty" xml:"detect_result,omitempty"` +} diff --git a/model/util/TmallMarketingFaceSkindetectResponse.go b/model/util/TmallMarketingFaceSkindetectResponse.go deleted file mode 100644 index de64b2908c..0000000000 --- a/model/util/TmallMarketingFaceSkindetectResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package util - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -肌肤检测 API返回值 -tmall.marketing.face.skindetect - -提供人脸肌肤属性报告 -*/ -type TmallMarketingFaceSkindetectAPIResponse struct { - model.CommonResponse - TmallMarketingFaceSkindetectResponse -} - -// 肌肤检测 成功返回结果 -type TmallMarketingFaceSkindetectResponse struct { - XMLName xml.Name `xml:"tmall_marketing_face_skindetect_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // { "code": "top api 状态码 200表示成功 ", "msg": "top api 返回描述说明 ", "data": { "detect_time": "检测时间戳 ", "gender": "0为男性1为女性 ", "age": "年龄 ", "color_level": "肤色等级,0~7,数字越小越白 ", "hue_level": " 色调等级,0~2,冷色,中性,暖色", "oil_cheeck": "脸颊含油 ", "oil_t_area": "T区含油 ", "oil_chin": "下巴含油 ", "oil_level": "总体出油情况, 0-干性,1-偏干,2-中性,3-混合油性,4-偏油,5-油性 ", "smooth_level": " 光滑度等级,0~3,数字越小越光滑 ", "acne_level": "痘痘严重程度,0~3,0表示没有,1~3表示轻度、中度、重度 ", "pore_level": " 毛孔粗细等级,0~2 - 细致,较粗大,粗大 ", "blackheads": "黑头数量 ", "black_level": "黑头严重程度,0~3,0表示没有,1~3表示轻度、中度、重度 ", "acne_loc": "痘痘坐标x,y,半径大小r(x,y,r)", "score": "颜值分", "r_face": "人脸区域坐标(x,y,w,h)", "code": "状态码,0表示成功" } } - DetectResult string `json:"detect_result,omitempty" xml:"detect_result,omitempty"` -} diff --git a/model/vaccin/AlibabaAlihealthMsAreaDistrictListAPIRequest.go b/model/vaccin/AlibabaAlihealthMsAreaDistrictListAPIRequest.go new file mode 100644 index 0000000000..202004cf7d --- /dev/null +++ b/model/vaccin/AlibabaAlihealthMsAreaDistrictListAPIRequest.go @@ -0,0 +1,52 @@ +package vaccin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗预约地市信息查询 API请求 +alibaba.alihealth.ms.area.district.list + +微信小程序疫苗预约地市信息查询 +*/ +type AlibabaAlihealthMsAreaDistrictListAPIRequest struct { + model.Params + // 省份ID + _divisionId int64 +} + +// 初始化AlibabaAlihealthMsAreaDistrictListAPIRequest对象 +func NewAlibabaAlihealthMsAreaDistrictListRequest() *AlibabaAlihealthMsAreaDistrictListAPIRequest{ + return &AlibabaAlihealthMsAreaDistrictListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaAlihealthMsAreaDistrictListAPIRequest) GetApiMethodName() string { + return "alibaba.alihealth.ms.area.district.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaAlihealthMsAreaDistrictListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DivisionId Setter +// 省份ID +func (r *AlibabaAlihealthMsAreaDistrictListAPIRequest) SetDivisionId(_divisionId int64) error { + r._divisionId = _divisionId + r.Set("division_id", _divisionId) + return nil +} + +// DivisionId Getter +func (r AlibabaAlihealthMsAreaDistrictListAPIRequest) GetDivisionId() int64 { + return r._divisionId +} diff --git a/model/vaccin/AlibabaAlihealthMsAreaDistrictListAPIResponse.go b/model/vaccin/AlibabaAlihealthMsAreaDistrictListAPIResponse.go new file mode 100644 index 0000000000..9afe1e9ffa --- /dev/null +++ b/model/vaccin/AlibabaAlihealthMsAreaDistrictListAPIResponse.go @@ -0,0 +1,27 @@ +package vaccin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗预约地市信息查询 API返回值 +alibaba.alihealth.ms.area.district.list + +微信小程序疫苗预约地市信息查询 +*/ +type AlibabaAlihealthMsAreaDistrictListAPIResponse struct { + model.CommonResponse + AlibabaAlihealthMsAreaDistrictListAPIResponseModel +} + +// 疫苗预约地市信息查询 成功返回结果 +type AlibabaAlihealthMsAreaDistrictListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_alihealth_ms_area_district_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/vaccin/AlibabaAlihealthMsAreaDistrictListResponse.go b/model/vaccin/AlibabaAlihealthMsAreaDistrictListResponse.go deleted file mode 100644 index a8b037494d..0000000000 --- a/model/vaccin/AlibabaAlihealthMsAreaDistrictListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package vaccin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -疫苗预约地市信息查询 API返回值 -alibaba.alihealth.ms.area.district.list - -微信小程序疫苗预约地市信息查询 -*/ -type AlibabaAlihealthMsAreaDistrictListAPIResponse struct { - model.CommonResponse - AlibabaAlihealthMsAreaDistrictListResponse -} - -// 疫苗预约地市信息查询 成功返回结果 -type AlibabaAlihealthMsAreaDistrictListResponse struct { - XMLName xml.Name `xml:"alibaba_alihealth_ms_area_district_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ServiceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest.go b/model/vaccin/AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest.go new file mode 100644 index 0000000000..406a0b9a92 --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest.go @@ -0,0 +1,136 @@ +package vaccin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +支付宝疫苗POV公告通知 API请求 +alibaba.health.vaccin.notice.announcement.publish + +支付宝疫苗POV发布公告提醒信息 +*/ +type AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest struct { + model.Params + // 接种点编码(通知方) + _povNo string + // 公告标题 + _noticeTitle string + // 公告内容 + _noticeContent string + // 0:所有类型人群,1:宝宝、2:成人 + _noticeType string + // 公告发布时间 + _noticeTime string + // 需要接受公告的用户ID,默认是所有用户都可以看到 + _alipayUserIds []string + // 接种点名称 + _povName string +} + +// 初始化AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest对象 +func NewAlibabaHealthVaccinNoticeAnnouncementPublishRequest() *AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest{ + return &AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest) GetApiMethodName() string { + return "alibaba.health.vaccin.notice.announcement.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PovNo Setter +// 接种点编码(通知方) +func (r *AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest) SetPovNo(_povNo string) error { + r._povNo = _povNo + r.Set("pov_no", _povNo) + return nil +} + +// PovNo Getter +func (r AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest) GetPovNo() string { + return r._povNo +} +// NoticeTitle Setter +// 公告标题 +func (r *AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest) SetNoticeTitle(_noticeTitle string) error { + r._noticeTitle = _noticeTitle + r.Set("notice_title", _noticeTitle) + return nil +} + +// NoticeTitle Getter +func (r AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest) GetNoticeTitle() string { + return r._noticeTitle +} +// NoticeContent Setter +// 公告内容 +func (r *AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest) SetNoticeContent(_noticeContent string) error { + r._noticeContent = _noticeContent + r.Set("notice_content", _noticeContent) + return nil +} + +// NoticeContent Getter +func (r AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest) GetNoticeContent() string { + return r._noticeContent +} +// NoticeType Setter +// 0:所有类型人群,1:宝宝、2:成人 +func (r *AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest) SetNoticeType(_noticeType string) error { + r._noticeType = _noticeType + r.Set("notice_type", _noticeType) + return nil +} + +// NoticeType Getter +func (r AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest) GetNoticeType() string { + return r._noticeType +} +// NoticeTime Setter +// 公告发布时间 +func (r *AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest) SetNoticeTime(_noticeTime string) error { + r._noticeTime = _noticeTime + r.Set("notice_time", _noticeTime) + return nil +} + +// NoticeTime Getter +func (r AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest) GetNoticeTime() string { + return r._noticeTime +} +// AlipayUserIds Setter +// 需要接受公告的用户ID,默认是所有用户都可以看到 +func (r *AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest) SetAlipayUserIds(_alipayUserIds []string) error { + r._alipayUserIds = _alipayUserIds + r.Set("alipay_user_ids", _alipayUserIds) + return nil +} + +// AlipayUserIds Getter +func (r AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest) GetAlipayUserIds() []string { + return r._alipayUserIds +} +// PovName Setter +// 接种点名称 +func (r *AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest) SetPovName(_povName string) error { + r._povName = _povName + r.Set("pov_name", _povName) + return nil +} + +// PovName Getter +func (r AlibabaHealthVaccinNoticeAnnouncementPublishAPIRequest) GetPovName() string { + return r._povName +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeAnnouncementPublishAPIResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeAnnouncementPublishAPIResponse.go new file mode 100644 index 0000000000..fab430704d --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeAnnouncementPublishAPIResponse.go @@ -0,0 +1,33 @@ +package vaccin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +支付宝疫苗POV公告通知 API返回值 +alibaba.health.vaccin.notice.announcement.publish + +支付宝疫苗POV发布公告提醒信息 +*/ +type AlibabaHealthVaccinNoticeAnnouncementPublishAPIResponse struct { + model.CommonResponse + AlibabaHealthVaccinNoticeAnnouncementPublishAPIResponseModel +} + +// 支付宝疫苗POV公告通知 成功返回结果 +type AlibabaHealthVaccinNoticeAnnouncementPublishAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_health_vaccin_notice_announcement_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 执行是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误code + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 错误描述 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeAnnouncementPublishResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeAnnouncementPublishResponse.go deleted file mode 100644 index fd713940f9..0000000000 --- a/model/vaccin/AlibabaHealthVaccinNoticeAnnouncementPublishResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package vaccin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -支付宝疫苗POV公告通知 API返回值 -alibaba.health.vaccin.notice.announcement.publish - -支付宝疫苗POV发布公告提醒信息 -*/ -type AlibabaHealthVaccinNoticeAnnouncementPublishAPIResponse struct { - model.CommonResponse - AlibabaHealthVaccinNoticeAnnouncementPublishResponse -} - -// 支付宝疫苗POV公告通知 成功返回结果 -type AlibabaHealthVaccinNoticeAnnouncementPublishResponse struct { - XMLName xml.Name `xml:"alibaba_health_vaccin_notice_announcement_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 执行是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误code - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 错误描述 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeMissRemindAPIRequest.go b/model/vaccin/AlibabaHealthVaccinNoticeMissRemindAPIRequest.go new file mode 100644 index 0000000000..c188cc6270 --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeMissRemindAPIRequest.go @@ -0,0 +1,108 @@ +package vaccin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗漏种提醒 API请求 +alibaba.health.vaccin.notice.miss.remind + +医生消息提醒适龄儿童按计划接种 +*/ +type AlibabaHealthVaccinNoticeMissRemindAPIRequest struct { + model.Params + // 432421 + _alipayUserId string + // 多个疫苗英文逗号分隔 + _vaccineName string + // 2019-02-08 严格按照 + _reserveDate string + // 姓名 + _name string + // 点击提醒消息的跳转链接 + _url string +} + +// 初始化AlibabaHealthVaccinNoticeMissRemindAPIRequest对象 +func NewAlibabaHealthVaccinNoticeMissRemindRequest() *AlibabaHealthVaccinNoticeMissRemindAPIRequest{ + return &AlibabaHealthVaccinNoticeMissRemindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHealthVaccinNoticeMissRemindAPIRequest) GetApiMethodName() string { + return "alibaba.health.vaccin.notice.miss.remind" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHealthVaccinNoticeMissRemindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlipayUserId Setter +// 432421 +func (r *AlibabaHealthVaccinNoticeMissRemindAPIRequest) SetAlipayUserId(_alipayUserId string) error { + r._alipayUserId = _alipayUserId + r.Set("alipay_user_id", _alipayUserId) + return nil +} + +// AlipayUserId Getter +func (r AlibabaHealthVaccinNoticeMissRemindAPIRequest) GetAlipayUserId() string { + return r._alipayUserId +} +// VaccineName Setter +// 多个疫苗英文逗号分隔 +func (r *AlibabaHealthVaccinNoticeMissRemindAPIRequest) SetVaccineName(_vaccineName string) error { + r._vaccineName = _vaccineName + r.Set("vaccine_name", _vaccineName) + return nil +} + +// VaccineName Getter +func (r AlibabaHealthVaccinNoticeMissRemindAPIRequest) GetVaccineName() string { + return r._vaccineName +} +// ReserveDate Setter +// 2019-02-08 严格按照 +func (r *AlibabaHealthVaccinNoticeMissRemindAPIRequest) SetReserveDate(_reserveDate string) error { + r._reserveDate = _reserveDate + r.Set("reserve_date", _reserveDate) + return nil +} + +// ReserveDate Getter +func (r AlibabaHealthVaccinNoticeMissRemindAPIRequest) GetReserveDate() string { + return r._reserveDate +} +// Name Setter +// 姓名 +func (r *AlibabaHealthVaccinNoticeMissRemindAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r AlibabaHealthVaccinNoticeMissRemindAPIRequest) GetName() string { + return r._name +} +// Url Setter +// 点击提醒消息的跳转链接 +func (r *AlibabaHealthVaccinNoticeMissRemindAPIRequest) SetUrl(_url string) error { + r._url = _url + r.Set("url", _url) + return nil +} + +// Url Getter +func (r AlibabaHealthVaccinNoticeMissRemindAPIRequest) GetUrl() string { + return r._url +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeMissRemindAPIResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeMissRemindAPIResponse.go new file mode 100644 index 0000000000..5c85c30569 --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeMissRemindAPIResponse.go @@ -0,0 +1,33 @@ +package vaccin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗漏种提醒 API返回值 +alibaba.health.vaccin.notice.miss.remind + +医生消息提醒适龄儿童按计划接种 +*/ +type AlibabaHealthVaccinNoticeMissRemindAPIResponse struct { + model.CommonResponse + AlibabaHealthVaccinNoticeMissRemindAPIResponseModel +} + +// 疫苗漏种提醒 成功返回结果 +type AlibabaHealthVaccinNoticeMissRemindAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_health_vaccin_notice_miss_remind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 执行是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误code + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 错误描述 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeMissRemindResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeMissRemindResponse.go deleted file mode 100644 index f1e169f396..0000000000 --- a/model/vaccin/AlibabaHealthVaccinNoticeMissRemindResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package vaccin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -疫苗漏种提醒 API返回值 -alibaba.health.vaccin.notice.miss.remind - -医生消息提醒适龄儿童按计划接种 -*/ -type AlibabaHealthVaccinNoticeMissRemindAPIResponse struct { - model.CommonResponse - AlibabaHealthVaccinNoticeMissRemindResponse -} - -// 疫苗漏种提醒 成功返回结果 -type AlibabaHealthVaccinNoticeMissRemindResponse struct { - XMLName xml.Name `xml:"alibaba_health_vaccin_notice_miss_remind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 执行是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误code - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 错误描述 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeOrderCancelAPIRequest.go b/model/vaccin/AlibabaHealthVaccinNoticeOrderCancelAPIRequest.go new file mode 100644 index 0000000000..b8a1ce59da --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeOrderCancelAPIRequest.go @@ -0,0 +1,66 @@ +package vaccin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +福州疫苗取消预约 API请求 +alibaba.health.vaccin.notice.order.cancel + +福州疫苗用户取消预约接口 +*/ +type AlibabaHealthVaccinNoticeOrderCancelAPIRequest struct { + model.Params + // 支付宝用户id + _alipayUserId string + // 预约id + _orderId string +} + +// 初始化AlibabaHealthVaccinNoticeOrderCancelAPIRequest对象 +func NewAlibabaHealthVaccinNoticeOrderCancelRequest() *AlibabaHealthVaccinNoticeOrderCancelAPIRequest{ + return &AlibabaHealthVaccinNoticeOrderCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHealthVaccinNoticeOrderCancelAPIRequest) GetApiMethodName() string { + return "alibaba.health.vaccin.notice.order.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHealthVaccinNoticeOrderCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlipayUserId Setter +// 支付宝用户id +func (r *AlibabaHealthVaccinNoticeOrderCancelAPIRequest) SetAlipayUserId(_alipayUserId string) error { + r._alipayUserId = _alipayUserId + r.Set("alipay_user_id", _alipayUserId) + return nil +} + +// AlipayUserId Getter +func (r AlibabaHealthVaccinNoticeOrderCancelAPIRequest) GetAlipayUserId() string { + return r._alipayUserId +} +// OrderId Setter +// 预约id +func (r *AlibabaHealthVaccinNoticeOrderCancelAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHealthVaccinNoticeOrderCancelAPIRequest) GetOrderId() string { + return r._orderId +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeOrderCancelAPIResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeOrderCancelAPIResponse.go new file mode 100644 index 0000000000..73b75ccabd --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeOrderCancelAPIResponse.go @@ -0,0 +1,33 @@ +package vaccin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +福州疫苗取消预约 API返回值 +alibaba.health.vaccin.notice.order.cancel + +福州疫苗用户取消预约接口 +*/ +type AlibabaHealthVaccinNoticeOrderCancelAPIResponse struct { + model.CommonResponse + AlibabaHealthVaccinNoticeOrderCancelAPIResponseModel +} + +// 福州疫苗取消预约 成功返回结果 +type AlibabaHealthVaccinNoticeOrderCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_health_vaccin_notice_order_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果集 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 返回码 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 返回描述 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeOrderCancelResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeOrderCancelResponse.go deleted file mode 100644 index c6660b1256..0000000000 --- a/model/vaccin/AlibabaHealthVaccinNoticeOrderCancelResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package vaccin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -福州疫苗取消预约 API返回值 -alibaba.health.vaccin.notice.order.cancel - -福州疫苗用户取消预约接口 -*/ -type AlibabaHealthVaccinNoticeOrderCancelAPIResponse struct { - model.CommonResponse - AlibabaHealthVaccinNoticeOrderCancelResponse -} - -// 福州疫苗取消预约 成功返回结果 -type AlibabaHealthVaccinNoticeOrderCancelResponse struct { - XMLName xml.Name `xml:"alibaba_health_vaccin_notice_order_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果集 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 返回码 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 返回描述 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeOrderCompleteAPIRequest.go b/model/vaccin/AlibabaHealthVaccinNoticeOrderCompleteAPIRequest.go new file mode 100644 index 0000000000..56f207acea --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeOrderCompleteAPIRequest.go @@ -0,0 +1,66 @@ +package vaccin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗接种完成(带支付宝提醒) API请求 +alibaba.health.vaccin.notice.order.complete + +用户到店完成接种,ISV感知通知阿里健康完成接种,并通知用户! +*/ +type AlibabaHealthVaccinNoticeOrderCompleteAPIRequest struct { + model.Params + // 支付宝唯一标识 + _alipayUserId string + // 在ISV预约单唯一标识 + _orderId string +} + +// 初始化AlibabaHealthVaccinNoticeOrderCompleteAPIRequest对象 +func NewAlibabaHealthVaccinNoticeOrderCompleteRequest() *AlibabaHealthVaccinNoticeOrderCompleteAPIRequest{ + return &AlibabaHealthVaccinNoticeOrderCompleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHealthVaccinNoticeOrderCompleteAPIRequest) GetApiMethodName() string { + return "alibaba.health.vaccin.notice.order.complete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHealthVaccinNoticeOrderCompleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlipayUserId Setter +// 支付宝唯一标识 +func (r *AlibabaHealthVaccinNoticeOrderCompleteAPIRequest) SetAlipayUserId(_alipayUserId string) error { + r._alipayUserId = _alipayUserId + r.Set("alipay_user_id", _alipayUserId) + return nil +} + +// AlipayUserId Getter +func (r AlibabaHealthVaccinNoticeOrderCompleteAPIRequest) GetAlipayUserId() string { + return r._alipayUserId +} +// OrderId Setter +// 在ISV预约单唯一标识 +func (r *AlibabaHealthVaccinNoticeOrderCompleteAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHealthVaccinNoticeOrderCompleteAPIRequest) GetOrderId() string { + return r._orderId +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeOrderCompleteAPIResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeOrderCompleteAPIResponse.go new file mode 100644 index 0000000000..569cbe541b --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeOrderCompleteAPIResponse.go @@ -0,0 +1,33 @@ +package vaccin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗接种完成(带支付宝提醒) API返回值 +alibaba.health.vaccin.notice.order.complete + +用户到店完成接种,ISV感知通知阿里健康完成接种,并通知用户! +*/ +type AlibabaHealthVaccinNoticeOrderCompleteAPIResponse struct { + model.CommonResponse + AlibabaHealthVaccinNoticeOrderCompleteAPIResponseModel +} + +// 疫苗接种完成(带支付宝提醒) 成功返回结果 +type AlibabaHealthVaccinNoticeOrderCompleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_health_vaccin_notice_order_complete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 执行是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误code + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 错误描述 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 结果 + Model bool `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeOrderCompleteResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeOrderCompleteResponse.go deleted file mode 100644 index 44dad881c5..0000000000 --- a/model/vaccin/AlibabaHealthVaccinNoticeOrderCompleteResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package vaccin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -疫苗接种完成(带支付宝提醒) API返回值 -alibaba.health.vaccin.notice.order.complete - -用户到店完成接种,ISV感知通知阿里健康完成接种,并通知用户! -*/ -type AlibabaHealthVaccinNoticeOrderCompleteAPIResponse struct { - model.CommonResponse - AlibabaHealthVaccinNoticeOrderCompleteResponse -} - -// 疫苗接种完成(带支付宝提醒) 成功返回结果 -type AlibabaHealthVaccinNoticeOrderCompleteResponse struct { - XMLName xml.Name `xml:"alibaba_health_vaccin_notice_order_complete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 执行是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误code - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 错误描述 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 结果 - Model bool `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeOrderCreateAPIRequest.go b/model/vaccin/AlibabaHealthVaccinNoticeOrderCreateAPIRequest.go new file mode 100644 index 0000000000..d306b50913 --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeOrderCreateAPIRequest.go @@ -0,0 +1,276 @@ +package vaccin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +支付宝医疗健康疫苗预约创建 API请求 +alibaba.health.vaccin.notice.order.create + +支付宝医疗健康疫苗预约创建 +*/ +type AlibabaHealthVaccinNoticeOrderCreateAPIRequest struct { + model.Params + // 预约人性别(1男2女) + _sex int64 + // 年龄 + _age int64 + // 预约日期 + _reserveDate string + // 支付宝用户id + _alipayUserId string + // 外部渠道用户id + _outerUserId string + // 预约id + _orderId string + // 手机号码 + _mobile string + // 接种人姓名 + _name string + // 接种点地址 + _address string + // 接种点名称 + _povStoreName string + // 预约时间 + _reserveTime string + // 疫苗信息 + _vaccineInfo string + // 年龄类型(1-宝宝2-成人) + _ageType int64 + // 支付宝消息通知跳转订单详情链接 + _orderDetailUrl string + // 地区名字 + _area string + // 城市名字 + _city string + // 省份名字 + _province string +} + +// 初始化AlibabaHealthVaccinNoticeOrderCreateAPIRequest对象 +func NewAlibabaHealthVaccinNoticeOrderCreateRequest() *AlibabaHealthVaccinNoticeOrderCreateAPIRequest{ + return &AlibabaHealthVaccinNoticeOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHealthVaccinNoticeOrderCreateAPIRequest) GetApiMethodName() string { + return "alibaba.health.vaccin.notice.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHealthVaccinNoticeOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Sex Setter +// 预约人性别(1男2女) +func (r *AlibabaHealthVaccinNoticeOrderCreateAPIRequest) SetSex(_sex int64) error { + r._sex = _sex + r.Set("sex", _sex) + return nil +} + +// Sex Getter +func (r AlibabaHealthVaccinNoticeOrderCreateAPIRequest) GetSex() int64 { + return r._sex +} +// Age Setter +// 年龄 +func (r *AlibabaHealthVaccinNoticeOrderCreateAPIRequest) SetAge(_age int64) error { + r._age = _age + r.Set("age", _age) + return nil +} + +// Age Getter +func (r AlibabaHealthVaccinNoticeOrderCreateAPIRequest) GetAge() int64 { + return r._age +} +// ReserveDate Setter +// 预约日期 +func (r *AlibabaHealthVaccinNoticeOrderCreateAPIRequest) SetReserveDate(_reserveDate string) error { + r._reserveDate = _reserveDate + r.Set("reserve_date", _reserveDate) + return nil +} + +// ReserveDate Getter +func (r AlibabaHealthVaccinNoticeOrderCreateAPIRequest) GetReserveDate() string { + return r._reserveDate +} +// AlipayUserId Setter +// 支付宝用户id +func (r *AlibabaHealthVaccinNoticeOrderCreateAPIRequest) SetAlipayUserId(_alipayUserId string) error { + r._alipayUserId = _alipayUserId + r.Set("alipay_user_id", _alipayUserId) + return nil +} + +// AlipayUserId Getter +func (r AlibabaHealthVaccinNoticeOrderCreateAPIRequest) GetAlipayUserId() string { + return r._alipayUserId +} +// OuterUserId Setter +// 外部渠道用户id +func (r *AlibabaHealthVaccinNoticeOrderCreateAPIRequest) SetOuterUserId(_outerUserId string) error { + r._outerUserId = _outerUserId + r.Set("outer_user_id", _outerUserId) + return nil +} + +// OuterUserId Getter +func (r AlibabaHealthVaccinNoticeOrderCreateAPIRequest) GetOuterUserId() string { + return r._outerUserId +} +// OrderId Setter +// 预约id +func (r *AlibabaHealthVaccinNoticeOrderCreateAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHealthVaccinNoticeOrderCreateAPIRequest) GetOrderId() string { + return r._orderId +} +// Mobile Setter +// 手机号码 +func (r *AlibabaHealthVaccinNoticeOrderCreateAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r AlibabaHealthVaccinNoticeOrderCreateAPIRequest) GetMobile() string { + return r._mobile +} +// Name Setter +// 接种人姓名 +func (r *AlibabaHealthVaccinNoticeOrderCreateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r AlibabaHealthVaccinNoticeOrderCreateAPIRequest) GetName() string { + return r._name +} +// Address Setter +// 接种点地址 +func (r *AlibabaHealthVaccinNoticeOrderCreateAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r AlibabaHealthVaccinNoticeOrderCreateAPIRequest) GetAddress() string { + return r._address +} +// PovStoreName Setter +// 接种点名称 +func (r *AlibabaHealthVaccinNoticeOrderCreateAPIRequest) SetPovStoreName(_povStoreName string) error { + r._povStoreName = _povStoreName + r.Set("pov_store_name", _povStoreName) + return nil +} + +// PovStoreName Getter +func (r AlibabaHealthVaccinNoticeOrderCreateAPIRequest) GetPovStoreName() string { + return r._povStoreName +} +// ReserveTime Setter +// 预约时间 +func (r *AlibabaHealthVaccinNoticeOrderCreateAPIRequest) SetReserveTime(_reserveTime string) error { + r._reserveTime = _reserveTime + r.Set("reserve_time", _reserveTime) + return nil +} + +// ReserveTime Getter +func (r AlibabaHealthVaccinNoticeOrderCreateAPIRequest) GetReserveTime() string { + return r._reserveTime +} +// VaccineInfo Setter +// 疫苗信息 +func (r *AlibabaHealthVaccinNoticeOrderCreateAPIRequest) SetVaccineInfo(_vaccineInfo string) error { + r._vaccineInfo = _vaccineInfo + r.Set("vaccine_info", _vaccineInfo) + return nil +} + +// VaccineInfo Getter +func (r AlibabaHealthVaccinNoticeOrderCreateAPIRequest) GetVaccineInfo() string { + return r._vaccineInfo +} +// AgeType Setter +// 年龄类型(1-宝宝2-成人) +func (r *AlibabaHealthVaccinNoticeOrderCreateAPIRequest) SetAgeType(_ageType int64) error { + r._ageType = _ageType + r.Set("age_type", _ageType) + return nil +} + +// AgeType Getter +func (r AlibabaHealthVaccinNoticeOrderCreateAPIRequest) GetAgeType() int64 { + return r._ageType +} +// OrderDetailUrl Setter +// 支付宝消息通知跳转订单详情链接 +func (r *AlibabaHealthVaccinNoticeOrderCreateAPIRequest) SetOrderDetailUrl(_orderDetailUrl string) error { + r._orderDetailUrl = _orderDetailUrl + r.Set("order_detail_url", _orderDetailUrl) + return nil +} + +// OrderDetailUrl Getter +func (r AlibabaHealthVaccinNoticeOrderCreateAPIRequest) GetOrderDetailUrl() string { + return r._orderDetailUrl +} +// Area Setter +// 地区名字 +func (r *AlibabaHealthVaccinNoticeOrderCreateAPIRequest) SetArea(_area string) error { + r._area = _area + r.Set("area", _area) + return nil +} + +// Area Getter +func (r AlibabaHealthVaccinNoticeOrderCreateAPIRequest) GetArea() string { + return r._area +} +// City Setter +// 城市名字 +func (r *AlibabaHealthVaccinNoticeOrderCreateAPIRequest) SetCity(_city string) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r AlibabaHealthVaccinNoticeOrderCreateAPIRequest) GetCity() string { + return r._city +} +// Province Setter +// 省份名字 +func (r *AlibabaHealthVaccinNoticeOrderCreateAPIRequest) SetProvince(_province string) error { + r._province = _province + r.Set("province", _province) + return nil +} + +// Province Getter +func (r AlibabaHealthVaccinNoticeOrderCreateAPIRequest) GetProvince() string { + return r._province +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeOrderCreateAPIResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeOrderCreateAPIResponse.go new file mode 100644 index 0000000000..18f7cc9f48 --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeOrderCreateAPIResponse.go @@ -0,0 +1,33 @@ +package vaccin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +支付宝医疗健康疫苗预约创建 API返回值 +alibaba.health.vaccin.notice.order.create + +支付宝医疗健康疫苗预约创建 +*/ +type AlibabaHealthVaccinNoticeOrderCreateAPIResponse struct { + model.CommonResponse + AlibabaHealthVaccinNoticeOrderCreateAPIResponseModel +} + +// 支付宝医疗健康疫苗预约创建 成功返回结果 +type AlibabaHealthVaccinNoticeOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_health_vaccin_notice_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回描述 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 返回码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 结果集 + Model bool `json:"model,omitempty" xml:"model,omitempty"` +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeOrderCreateResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeOrderCreateResponse.go deleted file mode 100644 index 3c46e48934..0000000000 --- a/model/vaccin/AlibabaHealthVaccinNoticeOrderCreateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package vaccin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -支付宝医疗健康疫苗预约创建 API返回值 -alibaba.health.vaccin.notice.order.create - -支付宝医疗健康疫苗预约创建 -*/ -type AlibabaHealthVaccinNoticeOrderCreateAPIResponse struct { - model.CommonResponse - AlibabaHealthVaccinNoticeOrderCreateResponse -} - -// 支付宝医疗健康疫苗预约创建 成功返回结果 -type AlibabaHealthVaccinNoticeOrderCreateResponse struct { - XMLName xml.Name `xml:"alibaba_health_vaccin_notice_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回描述 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 返回码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 结果集 - Model bool `json:"model,omitempty" xml:"model,omitempty"` -} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeOrderSignAPIRequest.go b/model/vaccin/AlibabaHealthVaccinNoticeOrderSignAPIRequest.go new file mode 100644 index 0000000000..9fd7903534 --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeOrderSignAPIRequest.go @@ -0,0 +1,66 @@ +package vaccin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +福州疫苗签到成功通知 API请求 +alibaba.health.vaccin.notice.order.sign + +福州疫苗用户签到成功记录 +*/ +type AlibabaHealthVaccinNoticeOrderSignAPIRequest struct { + model.Params + // 支付宝用户id + _alipayUserId string + // 预约id + _orderId string +} + +// 初始化AlibabaHealthVaccinNoticeOrderSignAPIRequest对象 +func NewAlibabaHealthVaccinNoticeOrderSignRequest() *AlibabaHealthVaccinNoticeOrderSignAPIRequest{ + return &AlibabaHealthVaccinNoticeOrderSignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHealthVaccinNoticeOrderSignAPIRequest) GetApiMethodName() string { + return "alibaba.health.vaccin.notice.order.sign" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHealthVaccinNoticeOrderSignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlipayUserId Setter +// 支付宝用户id +func (r *AlibabaHealthVaccinNoticeOrderSignAPIRequest) SetAlipayUserId(_alipayUserId string) error { + r._alipayUserId = _alipayUserId + r.Set("alipay_user_id", _alipayUserId) + return nil +} + +// AlipayUserId Getter +func (r AlibabaHealthVaccinNoticeOrderSignAPIRequest) GetAlipayUserId() string { + return r._alipayUserId +} +// OrderId Setter +// 预约id +func (r *AlibabaHealthVaccinNoticeOrderSignAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHealthVaccinNoticeOrderSignAPIRequest) GetOrderId() string { + return r._orderId +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeOrderSignAPIResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeOrderSignAPIResponse.go new file mode 100644 index 0000000000..0b097c2930 --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeOrderSignAPIResponse.go @@ -0,0 +1,33 @@ +package vaccin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +福州疫苗签到成功通知 API返回值 +alibaba.health.vaccin.notice.order.sign + +福州疫苗用户签到成功记录 +*/ +type AlibabaHealthVaccinNoticeOrderSignAPIResponse struct { + model.CommonResponse + AlibabaHealthVaccinNoticeOrderSignAPIResponseModel +} + +// 福州疫苗签到成功通知 成功返回结果 +type AlibabaHealthVaccinNoticeOrderSignAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_health_vaccin_notice_order_sign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果集 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 返回码 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 返回描述 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeOrderSignResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeOrderSignResponse.go deleted file mode 100644 index bf82861f0d..0000000000 --- a/model/vaccin/AlibabaHealthVaccinNoticeOrderSignResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package vaccin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -福州疫苗签到成功通知 API返回值 -alibaba.health.vaccin.notice.order.sign - -福州疫苗用户签到成功记录 -*/ -type AlibabaHealthVaccinNoticeOrderSignAPIResponse struct { - model.CommonResponse - AlibabaHealthVaccinNoticeOrderSignResponse -} - -// 福州疫苗签到成功通知 成功返回结果 -type AlibabaHealthVaccinNoticeOrderSignResponse struct { - XMLName xml.Name `xml:"alibaba_health_vaccin_notice_order_sign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果集 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 返回码 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 返回描述 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeReplantRemindAPIRequest.go b/model/vaccin/AlibabaHealthVaccinNoticeReplantRemindAPIRequest.go new file mode 100644 index 0000000000..d8176117ba --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeReplantRemindAPIRequest.go @@ -0,0 +1,80 @@ +package vaccin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +支付宝疫苗补种提醒信息 API请求 +alibaba.health.vaccin.notice.replant.remind + +支付宝疫苗补种提醒 +*/ +type AlibabaHealthVaccinNoticeReplantRemindAPIRequest struct { + model.Params + // 支付宝ID + _alipayUserId string + // 针次 + _theTimes string + // 预约id + _orderId string +} + +// 初始化AlibabaHealthVaccinNoticeReplantRemindAPIRequest对象 +func NewAlibabaHealthVaccinNoticeReplantRemindRequest() *AlibabaHealthVaccinNoticeReplantRemindAPIRequest{ + return &AlibabaHealthVaccinNoticeReplantRemindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHealthVaccinNoticeReplantRemindAPIRequest) GetApiMethodName() string { + return "alibaba.health.vaccin.notice.replant.remind" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHealthVaccinNoticeReplantRemindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlipayUserId Setter +// 支付宝ID +func (r *AlibabaHealthVaccinNoticeReplantRemindAPIRequest) SetAlipayUserId(_alipayUserId string) error { + r._alipayUserId = _alipayUserId + r.Set("alipay_user_id", _alipayUserId) + return nil +} + +// AlipayUserId Getter +func (r AlibabaHealthVaccinNoticeReplantRemindAPIRequest) GetAlipayUserId() string { + return r._alipayUserId +} +// TheTimes Setter +// 针次 +func (r *AlibabaHealthVaccinNoticeReplantRemindAPIRequest) SetTheTimes(_theTimes string) error { + r._theTimes = _theTimes + r.Set("the_times", _theTimes) + return nil +} + +// TheTimes Getter +func (r AlibabaHealthVaccinNoticeReplantRemindAPIRequest) GetTheTimes() string { + return r._theTimes +} +// OrderId Setter +// 预约id +func (r *AlibabaHealthVaccinNoticeReplantRemindAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHealthVaccinNoticeReplantRemindAPIRequest) GetOrderId() string { + return r._orderId +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeReplantRemindAPIResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeReplantRemindAPIResponse.go new file mode 100644 index 0000000000..557e0f8c43 --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeReplantRemindAPIResponse.go @@ -0,0 +1,33 @@ +package vaccin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +支付宝疫苗补种提醒信息 API返回值 +alibaba.health.vaccin.notice.replant.remind + +支付宝疫苗补种提醒 +*/ +type AlibabaHealthVaccinNoticeReplantRemindAPIResponse struct { + model.CommonResponse + AlibabaHealthVaccinNoticeReplantRemindAPIResponseModel +} + +// 支付宝疫苗补种提醒信息 成功返回结果 +type AlibabaHealthVaccinNoticeReplantRemindAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_health_vaccin_notice_replant_remind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 执行是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误code + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 错误描述 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeReplantRemindResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeReplantRemindResponse.go deleted file mode 100644 index 6126530969..0000000000 --- a/model/vaccin/AlibabaHealthVaccinNoticeReplantRemindResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package vaccin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -支付宝疫苗补种提醒信息 API返回值 -alibaba.health.vaccin.notice.replant.remind - -支付宝疫苗补种提醒 -*/ -type AlibabaHealthVaccinNoticeReplantRemindAPIResponse struct { - model.CommonResponse - AlibabaHealthVaccinNoticeReplantRemindResponse -} - -// 支付宝疫苗补种提醒信息 成功返回结果 -type AlibabaHealthVaccinNoticeReplantRemindResponse struct { - XMLName xml.Name `xml:"alibaba_health_vaccin_notice_replant_remind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 执行是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误code - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 错误描述 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeSendAPIRequest.go b/model/vaccin/AlibabaHealthVaccinNoticeSendAPIRequest.go new file mode 100644 index 0000000000..9c06e3e580 --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeSendAPIRequest.go @@ -0,0 +1,290 @@ +package vaccin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发送消息提醒 API请求 +alibaba.health.vaccin.notice.send + +ISV 通过免疫规划中心给用户发送短信或者支付宝 PUSH 提醒。 +*/ +type AlibabaHealthVaccinNoticeSendAPIRequest struct { + model.Params + // 支付宝用户 ID + _alipayUserId string + // ISV 侧用户 ID + _isvUserId string + // 订单 ID + _orderId string + // 接种人姓名 + _name string + // 联系电话 + _mobile string + // 接种的疫苗信息 + _vaccineList []VaccineInfo + // 接种人性别:1=男,2=女 + _sex int64 + // 接种人出生日期 + _birthday string + // 接种点编码 + _povNo string + // 接种点名称 + _povName string + // 接种点地址 + _address string + // 省份名称 + _province string + // 城市名称 + _city string + // 区名称 + _area string + // 预约日期 + _reserveDate string + // 预约时间段 + _reserveTime string + // 消息提醒类型:1=疫苗下一针预约提醒 2=预约成功提醒 3=接种提醒 4=补种提醒 + _messageType int64 + // 用户入口,支付宝或医鹿,alipay或yl + _appChannel string +} + +// 初始化AlibabaHealthVaccinNoticeSendAPIRequest对象 +func NewAlibabaHealthVaccinNoticeSendRequest() *AlibabaHealthVaccinNoticeSendAPIRequest{ + return &AlibabaHealthVaccinNoticeSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetApiMethodName() string { + return "alibaba.health.vaccin.notice.send" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlipayUserId Setter +// 支付宝用户 ID +func (r *AlibabaHealthVaccinNoticeSendAPIRequest) SetAlipayUserId(_alipayUserId string) error { + r._alipayUserId = _alipayUserId + r.Set("alipay_user_id", _alipayUserId) + return nil +} + +// AlipayUserId Getter +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetAlipayUserId() string { + return r._alipayUserId +} +// IsvUserId Setter +// ISV 侧用户 ID +func (r *AlibabaHealthVaccinNoticeSendAPIRequest) SetIsvUserId(_isvUserId string) error { + r._isvUserId = _isvUserId + r.Set("isv_user_id", _isvUserId) + return nil +} + +// IsvUserId Getter +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetIsvUserId() string { + return r._isvUserId +} +// OrderId Setter +// 订单 ID +func (r *AlibabaHealthVaccinNoticeSendAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetOrderId() string { + return r._orderId +} +// Name Setter +// 接种人姓名 +func (r *AlibabaHealthVaccinNoticeSendAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetName() string { + return r._name +} +// Mobile Setter +// 联系电话 +func (r *AlibabaHealthVaccinNoticeSendAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetMobile() string { + return r._mobile +} +// VaccineList Setter +// 接种的疫苗信息 +func (r *AlibabaHealthVaccinNoticeSendAPIRequest) SetVaccineList(_vaccineList []VaccineInfo) error { + r._vaccineList = _vaccineList + r.Set("vaccine_list", _vaccineList) + return nil +} + +// VaccineList Getter +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetVaccineList() []VaccineInfo { + return r._vaccineList +} +// Sex Setter +// 接种人性别:1=男,2=女 +func (r *AlibabaHealthVaccinNoticeSendAPIRequest) SetSex(_sex int64) error { + r._sex = _sex + r.Set("sex", _sex) + return nil +} + +// Sex Getter +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetSex() int64 { + return r._sex +} +// Birthday Setter +// 接种人出生日期 +func (r *AlibabaHealthVaccinNoticeSendAPIRequest) SetBirthday(_birthday string) error { + r._birthday = _birthday + r.Set("birthday", _birthday) + return nil +} + +// Birthday Getter +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetBirthday() string { + return r._birthday +} +// PovNo Setter +// 接种点编码 +func (r *AlibabaHealthVaccinNoticeSendAPIRequest) SetPovNo(_povNo string) error { + r._povNo = _povNo + r.Set("pov_no", _povNo) + return nil +} + +// PovNo Getter +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetPovNo() string { + return r._povNo +} +// PovName Setter +// 接种点名称 +func (r *AlibabaHealthVaccinNoticeSendAPIRequest) SetPovName(_povName string) error { + r._povName = _povName + r.Set("pov_name", _povName) + return nil +} + +// PovName Getter +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetPovName() string { + return r._povName +} +// Address Setter +// 接种点地址 +func (r *AlibabaHealthVaccinNoticeSendAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetAddress() string { + return r._address +} +// Province Setter +// 省份名称 +func (r *AlibabaHealthVaccinNoticeSendAPIRequest) SetProvince(_province string) error { + r._province = _province + r.Set("province", _province) + return nil +} + +// Province Getter +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetProvince() string { + return r._province +} +// City Setter +// 城市名称 +func (r *AlibabaHealthVaccinNoticeSendAPIRequest) SetCity(_city string) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetCity() string { + return r._city +} +// Area Setter +// 区名称 +func (r *AlibabaHealthVaccinNoticeSendAPIRequest) SetArea(_area string) error { + r._area = _area + r.Set("area", _area) + return nil +} + +// Area Getter +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetArea() string { + return r._area +} +// ReserveDate Setter +// 预约日期 +func (r *AlibabaHealthVaccinNoticeSendAPIRequest) SetReserveDate(_reserveDate string) error { + r._reserveDate = _reserveDate + r.Set("reserve_date", _reserveDate) + return nil +} + +// ReserveDate Getter +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetReserveDate() string { + return r._reserveDate +} +// ReserveTime Setter +// 预约时间段 +func (r *AlibabaHealthVaccinNoticeSendAPIRequest) SetReserveTime(_reserveTime string) error { + r._reserveTime = _reserveTime + r.Set("reserve_time", _reserveTime) + return nil +} + +// ReserveTime Getter +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetReserveTime() string { + return r._reserveTime +} +// MessageType Setter +// 消息提醒类型:1=疫苗下一针预约提醒 2=预约成功提醒 3=接种提醒 4=补种提醒 +func (r *AlibabaHealthVaccinNoticeSendAPIRequest) SetMessageType(_messageType int64) error { + r._messageType = _messageType + r.Set("message_type", _messageType) + return nil +} + +// MessageType Getter +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetMessageType() int64 { + return r._messageType +} +// AppChannel Setter +// 用户入口,支付宝或医鹿,alipay或yl +func (r *AlibabaHealthVaccinNoticeSendAPIRequest) SetAppChannel(_appChannel string) error { + r._appChannel = _appChannel + r.Set("app_channel", _appChannel) + return nil +} + +// AppChannel Getter +func (r AlibabaHealthVaccinNoticeSendAPIRequest) GetAppChannel() string { + return r._appChannel +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeSendAPIResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeSendAPIResponse.go new file mode 100644 index 0000000000..0ecb7de251 --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeSendAPIResponse.go @@ -0,0 +1,33 @@ +package vaccin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发送消息提醒 API返回值 +alibaba.health.vaccin.notice.send + +ISV 通过免疫规划中心给用户发送短信或者支付宝 PUSH 提醒。 +*/ +type AlibabaHealthVaccinNoticeSendAPIResponse struct { + model.CommonResponse + AlibabaHealthVaccinNoticeSendAPIResponseModel +} + +// 发送消息提醒 成功返回结果 +type AlibabaHealthVaccinNoticeSendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_health_vaccin_notice_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功执行 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 有数据返回时的数据详情 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 找不到疫苗信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 200 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeSendResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeSendResponse.go deleted file mode 100644 index dc28016c58..0000000000 --- a/model/vaccin/AlibabaHealthVaccinNoticeSendResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package vaccin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发送消息提醒 API返回值 -alibaba.health.vaccin.notice.send - -ISV 通过免疫规划中心给用户发送短信或者支付宝 PUSH 提醒。 -*/ -type AlibabaHealthVaccinNoticeSendAPIResponse struct { - model.CommonResponse - AlibabaHealthVaccinNoticeSendResponse -} - -// 发送消息提醒 成功返回结果 -type AlibabaHealthVaccinNoticeSendResponse struct { - XMLName xml.Name `xml:"alibaba_health_vaccin_notice_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功执行 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 有数据返回时的数据详情 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 找不到疫苗信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 200 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` -} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest.go b/model/vaccin/AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest.go new file mode 100644 index 0000000000..de1dbfd692 --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest.go @@ -0,0 +1,150 @@ +package vaccin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗预约时间段提醒 API请求 +alibaba.health.vaccin.notice.timebucket.remind + +疫苗预约时间段提醒 +*/ +type AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest struct { + model.Params + // 432421 + _alipayUserId string + // 疫苗名称 + _vaccineName string + // 预约日期:2019-02-08 严格按照 + _reserveDate string + // 接种人姓名 + _name string + // 针次 + _theTimes string + // 接种点名称(通知方) + _povStoreName string + // 可预约时段 + _reserveTime string + // 用户授权的手机号 + _mobile string +} + +// 初始化AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest对象 +func NewAlibabaHealthVaccinNoticeTimebucketRemindRequest() *AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest{ + return &AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest) GetApiMethodName() string { + return "alibaba.health.vaccin.notice.timebucket.remind" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlipayUserId Setter +// 432421 +func (r *AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest) SetAlipayUserId(_alipayUserId string) error { + r._alipayUserId = _alipayUserId + r.Set("alipay_user_id", _alipayUserId) + return nil +} + +// AlipayUserId Getter +func (r AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest) GetAlipayUserId() string { + return r._alipayUserId +} +// VaccineName Setter +// 疫苗名称 +func (r *AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest) SetVaccineName(_vaccineName string) error { + r._vaccineName = _vaccineName + r.Set("vaccine_name", _vaccineName) + return nil +} + +// VaccineName Getter +func (r AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest) GetVaccineName() string { + return r._vaccineName +} +// ReserveDate Setter +// 预约日期:2019-02-08 严格按照 +func (r *AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest) SetReserveDate(_reserveDate string) error { + r._reserveDate = _reserveDate + r.Set("reserve_date", _reserveDate) + return nil +} + +// ReserveDate Getter +func (r AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest) GetReserveDate() string { + return r._reserveDate +} +// Name Setter +// 接种人姓名 +func (r *AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest) GetName() string { + return r._name +} +// TheTimes Setter +// 针次 +func (r *AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest) SetTheTimes(_theTimes string) error { + r._theTimes = _theTimes + r.Set("the_times", _theTimes) + return nil +} + +// TheTimes Getter +func (r AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest) GetTheTimes() string { + return r._theTimes +} +// PovStoreName Setter +// 接种点名称(通知方) +func (r *AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest) SetPovStoreName(_povStoreName string) error { + r._povStoreName = _povStoreName + r.Set("pov_store_name", _povStoreName) + return nil +} + +// PovStoreName Getter +func (r AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest) GetPovStoreName() string { + return r._povStoreName +} +// ReserveTime Setter +// 可预约时段 +func (r *AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest) SetReserveTime(_reserveTime string) error { + r._reserveTime = _reserveTime + r.Set("reserve_time", _reserveTime) + return nil +} + +// ReserveTime Getter +func (r AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest) GetReserveTime() string { + return r._reserveTime +} +// Mobile Setter +// 用户授权的手机号 +func (r *AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r AlibabaHealthVaccinNoticeTimebucketRemindAPIRequest) GetMobile() string { + return r._mobile +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeTimebucketRemindAPIResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeTimebucketRemindAPIResponse.go new file mode 100644 index 0000000000..9504bc13e2 --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeTimebucketRemindAPIResponse.go @@ -0,0 +1,33 @@ +package vaccin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗预约时间段提醒 API返回值 +alibaba.health.vaccin.notice.timebucket.remind + +疫苗预约时间段提醒 +*/ +type AlibabaHealthVaccinNoticeTimebucketRemindAPIResponse struct { + model.CommonResponse + AlibabaHealthVaccinNoticeTimebucketRemindAPIResponseModel +} + +// 疫苗预约时间段提醒 成功返回结果 +type AlibabaHealthVaccinNoticeTimebucketRemindAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_health_vaccin_notice_timebucket_remind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 执行是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误code + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 错误描述 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeTimebucketRemindResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeTimebucketRemindResponse.go deleted file mode 100644 index 5933ef6b6a..0000000000 --- a/model/vaccin/AlibabaHealthVaccinNoticeTimebucketRemindResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package vaccin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -疫苗预约时间段提醒 API返回值 -alibaba.health.vaccin.notice.timebucket.remind - -疫苗预约时间段提醒 -*/ -type AlibabaHealthVaccinNoticeTimebucketRemindAPIResponse struct { - model.CommonResponse - AlibabaHealthVaccinNoticeTimebucketRemindResponse -} - -// 疫苗预约时间段提醒 成功返回结果 -type AlibabaHealthVaccinNoticeTimebucketRemindResponse struct { - XMLName xml.Name `xml:"alibaba_health_vaccin_notice_timebucket_remind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 执行是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误code - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 错误描述 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeUserBindAPIRequest.go b/model/vaccin/AlibabaHealthVaccinNoticeUserBindAPIRequest.go new file mode 100644 index 0000000000..c430757314 --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeUserBindAPIRequest.go @@ -0,0 +1,108 @@ +package vaccin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +支付宝疫苗绑定接种人 API请求 +alibaba.health.vaccin.notice.user.bind + +支付宝疫苗绑定接种人 +*/ +type AlibabaHealthVaccinNoticeUserBindAPIRequest struct { + model.Params + // 支付宝ID + _alipayUserId string + // 绑定人信息list + _bindUsers []AlipayVaccineUserBindDto + // ISV 侧用户 ID + _outerUserId string + // 联系电话 + _mobile string + // 用户来源:alipay或yl + _appChannel string +} + +// 初始化AlibabaHealthVaccinNoticeUserBindAPIRequest对象 +func NewAlibabaHealthVaccinNoticeUserBindRequest() *AlibabaHealthVaccinNoticeUserBindAPIRequest{ + return &AlibabaHealthVaccinNoticeUserBindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHealthVaccinNoticeUserBindAPIRequest) GetApiMethodName() string { + return "alibaba.health.vaccin.notice.user.bind" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHealthVaccinNoticeUserBindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlipayUserId Setter +// 支付宝ID +func (r *AlibabaHealthVaccinNoticeUserBindAPIRequest) SetAlipayUserId(_alipayUserId string) error { + r._alipayUserId = _alipayUserId + r.Set("alipay_user_id", _alipayUserId) + return nil +} + +// AlipayUserId Getter +func (r AlibabaHealthVaccinNoticeUserBindAPIRequest) GetAlipayUserId() string { + return r._alipayUserId +} +// BindUsers Setter +// 绑定人信息list +func (r *AlibabaHealthVaccinNoticeUserBindAPIRequest) SetBindUsers(_bindUsers []AlipayVaccineUserBindDto) error { + r._bindUsers = _bindUsers + r.Set("bind_users", _bindUsers) + return nil +} + +// BindUsers Getter +func (r AlibabaHealthVaccinNoticeUserBindAPIRequest) GetBindUsers() []AlipayVaccineUserBindDto { + return r._bindUsers +} +// OuterUserId Setter +// ISV 侧用户 ID +func (r *AlibabaHealthVaccinNoticeUserBindAPIRequest) SetOuterUserId(_outerUserId string) error { + r._outerUserId = _outerUserId + r.Set("outer_user_id", _outerUserId) + return nil +} + +// OuterUserId Getter +func (r AlibabaHealthVaccinNoticeUserBindAPIRequest) GetOuterUserId() string { + return r._outerUserId +} +// Mobile Setter +// 联系电话 +func (r *AlibabaHealthVaccinNoticeUserBindAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r AlibabaHealthVaccinNoticeUserBindAPIRequest) GetMobile() string { + return r._mobile +} +// AppChannel Setter +// 用户来源:alipay或yl +func (r *AlibabaHealthVaccinNoticeUserBindAPIRequest) SetAppChannel(_appChannel string) error { + r._appChannel = _appChannel + r.Set("app_channel", _appChannel) + return nil +} + +// AppChannel Getter +func (r AlibabaHealthVaccinNoticeUserBindAPIRequest) GetAppChannel() string { + return r._appChannel +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeUserBindAPIResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeUserBindAPIResponse.go new file mode 100644 index 0000000000..d9e2e87cc8 --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeUserBindAPIResponse.go @@ -0,0 +1,33 @@ +package vaccin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +支付宝疫苗绑定接种人 API返回值 +alibaba.health.vaccin.notice.user.bind + +支付宝疫苗绑定接种人 +*/ +type AlibabaHealthVaccinNoticeUserBindAPIResponse struct { + model.CommonResponse + AlibabaHealthVaccinNoticeUserBindAPIResponseModel +} + +// 支付宝疫苗绑定接种人 成功返回结果 +type AlibabaHealthVaccinNoticeUserBindAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_health_vaccin_notice_user_bind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 执行是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误code + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 错误描述 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeUserBindResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeUserBindResponse.go deleted file mode 100644 index 7f11862ddc..0000000000 --- a/model/vaccin/AlibabaHealthVaccinNoticeUserBindResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package vaccin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -支付宝疫苗绑定接种人 API返回值 -alibaba.health.vaccin.notice.user.bind - -支付宝疫苗绑定接种人 -*/ -type AlibabaHealthVaccinNoticeUserBindAPIResponse struct { - model.CommonResponse - AlibabaHealthVaccinNoticeUserBindResponse -} - -// 支付宝疫苗绑定接种人 成功返回结果 -type AlibabaHealthVaccinNoticeUserBindResponse struct { - XMLName xml.Name `xml:"alibaba_health_vaccin_notice_user_bind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 执行是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误code - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 错误描述 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeUserCreateAPIRequest.go b/model/vaccin/AlibabaHealthVaccinNoticeUserCreateAPIRequest.go new file mode 100644 index 0000000000..bcc5e396c4 --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeUserCreateAPIRequest.go @@ -0,0 +1,80 @@ +package vaccin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +支付宝医疗健康疫苗用户创建 API请求 +alibaba.health.vaccin.notice.user.create + +支付宝医疗健康疫苗用户创建 +*/ +type AlibabaHealthVaccinNoticeUserCreateAPIRequest struct { + model.Params + // 支付宝用户id + _aliPayUserId string + // 外部渠道用户id + _outerUserId string + // 用户电话号码 + _mobile string +} + +// 初始化AlibabaHealthVaccinNoticeUserCreateAPIRequest对象 +func NewAlibabaHealthVaccinNoticeUserCreateRequest() *AlibabaHealthVaccinNoticeUserCreateAPIRequest{ + return &AlibabaHealthVaccinNoticeUserCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHealthVaccinNoticeUserCreateAPIRequest) GetApiMethodName() string { + return "alibaba.health.vaccin.notice.user.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHealthVaccinNoticeUserCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AliPayUserId Setter +// 支付宝用户id +func (r *AlibabaHealthVaccinNoticeUserCreateAPIRequest) SetAliPayUserId(_aliPayUserId string) error { + r._aliPayUserId = _aliPayUserId + r.Set("ali_pay_user_id", _aliPayUserId) + return nil +} + +// AliPayUserId Getter +func (r AlibabaHealthVaccinNoticeUserCreateAPIRequest) GetAliPayUserId() string { + return r._aliPayUserId +} +// OuterUserId Setter +// 外部渠道用户id +func (r *AlibabaHealthVaccinNoticeUserCreateAPIRequest) SetOuterUserId(_outerUserId string) error { + r._outerUserId = _outerUserId + r.Set("outer_user_id", _outerUserId) + return nil +} + +// OuterUserId Getter +func (r AlibabaHealthVaccinNoticeUserCreateAPIRequest) GetOuterUserId() string { + return r._outerUserId +} +// Mobile Setter +// 用户电话号码 +func (r *AlibabaHealthVaccinNoticeUserCreateAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r AlibabaHealthVaccinNoticeUserCreateAPIRequest) GetMobile() string { + return r._mobile +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeUserCreateAPIResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeUserCreateAPIResponse.go new file mode 100644 index 0000000000..fd446a722b --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinNoticeUserCreateAPIResponse.go @@ -0,0 +1,33 @@ +package vaccin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +支付宝医疗健康疫苗用户创建 API返回值 +alibaba.health.vaccin.notice.user.create + +支付宝医疗健康疫苗用户创建 +*/ +type AlibabaHealthVaccinNoticeUserCreateAPIResponse struct { + model.CommonResponse + AlibabaHealthVaccinNoticeUserCreateAPIResponseModel +} + +// 支付宝医疗健康疫苗用户创建 成功返回结果 +type AlibabaHealthVaccinNoticeUserCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_health_vaccin_notice_user_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果集 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 返回描述 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 返回码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/vaccin/AlibabaHealthVaccinNoticeUserCreateResponse.go b/model/vaccin/AlibabaHealthVaccinNoticeUserCreateResponse.go deleted file mode 100644 index a0d61495b4..0000000000 --- a/model/vaccin/AlibabaHealthVaccinNoticeUserCreateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package vaccin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -支付宝医疗健康疫苗用户创建 API返回值 -alibaba.health.vaccin.notice.user.create - -支付宝医疗健康疫苗用户创建 -*/ -type AlibabaHealthVaccinNoticeUserCreateAPIResponse struct { - model.CommonResponse - AlibabaHealthVaccinNoticeUserCreateResponse -} - -// 支付宝医疗健康疫苗用户创建 成功返回结果 -type AlibabaHealthVaccinNoticeUserCreateResponse struct { - XMLName xml.Name `xml:"alibaba_health_vaccin_notice_user_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果集 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 返回描述 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 返回码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/vaccin/AlibabaHealthVaccinPovUpdateAPIRequest.go b/model/vaccin/AlibabaHealthVaccinPovUpdateAPIRequest.go new file mode 100644 index 0000000000..9b9293cc60 --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinPovUpdateAPIRequest.go @@ -0,0 +1,122 @@ +package vaccin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增/变更接种点信息 API请求 +alibaba.health.vaccin.pov.update + +ISV 将疫苗的接种点信息同步到免疫规划中心,提醒用户接种时可提供接种点详情。 +*/ +type AlibabaHealthVaccinPovUpdateAPIRequest struct { + model.Params + // 接种点联系电话 + _telephone string + // 接种点具体地址 + _address string + // 接种点介绍 + _description string + // 接种点编码 + _povNo string + // 接种点名称 + _povName string + // 服务时间 + _businessTime string +} + +// 初始化AlibabaHealthVaccinPovUpdateAPIRequest对象 +func NewAlibabaHealthVaccinPovUpdateRequest() *AlibabaHealthVaccinPovUpdateAPIRequest{ + return &AlibabaHealthVaccinPovUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHealthVaccinPovUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.health.vaccin.pov.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHealthVaccinPovUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Telephone Setter +// 接种点联系电话 +func (r *AlibabaHealthVaccinPovUpdateAPIRequest) SetTelephone(_telephone string) error { + r._telephone = _telephone + r.Set("telephone", _telephone) + return nil +} + +// Telephone Getter +func (r AlibabaHealthVaccinPovUpdateAPIRequest) GetTelephone() string { + return r._telephone +} +// Address Setter +// 接种点具体地址 +func (r *AlibabaHealthVaccinPovUpdateAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r AlibabaHealthVaccinPovUpdateAPIRequest) GetAddress() string { + return r._address +} +// Description Setter +// 接种点介绍 +func (r *AlibabaHealthVaccinPovUpdateAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r AlibabaHealthVaccinPovUpdateAPIRequest) GetDescription() string { + return r._description +} +// PovNo Setter +// 接种点编码 +func (r *AlibabaHealthVaccinPovUpdateAPIRequest) SetPovNo(_povNo string) error { + r._povNo = _povNo + r.Set("pov_no", _povNo) + return nil +} + +// PovNo Getter +func (r AlibabaHealthVaccinPovUpdateAPIRequest) GetPovNo() string { + return r._povNo +} +// PovName Setter +// 接种点名称 +func (r *AlibabaHealthVaccinPovUpdateAPIRequest) SetPovName(_povName string) error { + r._povName = _povName + r.Set("pov_name", _povName) + return nil +} + +// PovName Getter +func (r AlibabaHealthVaccinPovUpdateAPIRequest) GetPovName() string { + return r._povName +} +// BusinessTime Setter +// 服务时间 +func (r *AlibabaHealthVaccinPovUpdateAPIRequest) SetBusinessTime(_businessTime string) error { + r._businessTime = _businessTime + r.Set("business_time", _businessTime) + return nil +} + +// BusinessTime Getter +func (r AlibabaHealthVaccinPovUpdateAPIRequest) GetBusinessTime() string { + return r._businessTime +} diff --git a/model/vaccin/AlibabaHealthVaccinPovUpdateAPIResponse.go b/model/vaccin/AlibabaHealthVaccinPovUpdateAPIResponse.go new file mode 100644 index 0000000000..3490c727ed --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinPovUpdateAPIResponse.go @@ -0,0 +1,33 @@ +package vaccin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增/变更接种点信息 API返回值 +alibaba.health.vaccin.pov.update + +ISV 将疫苗的接种点信息同步到免疫规划中心,提醒用户接种时可提供接种点详情。 +*/ +type AlibabaHealthVaccinPovUpdateAPIResponse struct { + model.CommonResponse + AlibabaHealthVaccinPovUpdateAPIResponseModel +} + +// 新增/变更接种点信息 成功返回结果 +type AlibabaHealthVaccinPovUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_health_vaccin_pov_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据详情 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 是否成功执行 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 错误描述 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/vaccin/AlibabaHealthVaccinPovUpdateResponse.go b/model/vaccin/AlibabaHealthVaccinPovUpdateResponse.go deleted file mode 100644 index 8c4c44ed7c..0000000000 --- a/model/vaccin/AlibabaHealthVaccinPovUpdateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package vaccin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增/变更接种点信息 API返回值 -alibaba.health.vaccin.pov.update - -ISV 将疫苗的接种点信息同步到免疫规划中心,提醒用户接种时可提供接种点详情。 -*/ -type AlibabaHealthVaccinPovUpdateAPIResponse struct { - model.CommonResponse - AlibabaHealthVaccinPovUpdateResponse -} - -// 新增/变更接种点信息 成功返回结果 -type AlibabaHealthVaccinPovUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_health_vaccin_pov_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据详情 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 是否成功执行 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 错误描述 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/vaccin/AlibabaHealthVaccinVaccinateCompleteAPIRequest.go b/model/vaccin/AlibabaHealthVaccinVaccinateCompleteAPIRequest.go new file mode 100644 index 0000000000..b34263ca74 --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinVaccinateCompleteAPIRequest.go @@ -0,0 +1,150 @@ +package vaccin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +接种完成反馈接口 API请求 +alibaba.health.vaccin.vaccinate.complete + +ISV 将用户完成接种的疫苗同步给免疫规划中心 +*/ +type AlibabaHealthVaccinVaccinateCompleteAPIRequest struct { + model.Params + // 支付宝用户 ID + _alipayUserId string + // ISV 侧用户 ID + _isvUserId string + // 订单 ID + _orderId string + // 接种人姓名 + _name string + // 联系电话 + _mobile string + // 接种日期 + _vaccinateDate string + // 接种时间 + _vaccinateTime string + // 接种的疫苗信息 + _vaccineList []VaccineInfo +} + +// 初始化AlibabaHealthVaccinVaccinateCompleteAPIRequest对象 +func NewAlibabaHealthVaccinVaccinateCompleteRequest() *AlibabaHealthVaccinVaccinateCompleteAPIRequest{ + return &AlibabaHealthVaccinVaccinateCompleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaHealthVaccinVaccinateCompleteAPIRequest) GetApiMethodName() string { + return "alibaba.health.vaccin.vaccinate.complete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaHealthVaccinVaccinateCompleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlipayUserId Setter +// 支付宝用户 ID +func (r *AlibabaHealthVaccinVaccinateCompleteAPIRequest) SetAlipayUserId(_alipayUserId string) error { + r._alipayUserId = _alipayUserId + r.Set("alipay_user_id", _alipayUserId) + return nil +} + +// AlipayUserId Getter +func (r AlibabaHealthVaccinVaccinateCompleteAPIRequest) GetAlipayUserId() string { + return r._alipayUserId +} +// IsvUserId Setter +// ISV 侧用户 ID +func (r *AlibabaHealthVaccinVaccinateCompleteAPIRequest) SetIsvUserId(_isvUserId string) error { + r._isvUserId = _isvUserId + r.Set("isv_user_id", _isvUserId) + return nil +} + +// IsvUserId Getter +func (r AlibabaHealthVaccinVaccinateCompleteAPIRequest) GetIsvUserId() string { + return r._isvUserId +} +// OrderId Setter +// 订单 ID +func (r *AlibabaHealthVaccinVaccinateCompleteAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r AlibabaHealthVaccinVaccinateCompleteAPIRequest) GetOrderId() string { + return r._orderId +} +// Name Setter +// 接种人姓名 +func (r *AlibabaHealthVaccinVaccinateCompleteAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r AlibabaHealthVaccinVaccinateCompleteAPIRequest) GetName() string { + return r._name +} +// Mobile Setter +// 联系电话 +func (r *AlibabaHealthVaccinVaccinateCompleteAPIRequest) SetMobile(_mobile string) error { + r._mobile = _mobile + r.Set("mobile", _mobile) + return nil +} + +// Mobile Getter +func (r AlibabaHealthVaccinVaccinateCompleteAPIRequest) GetMobile() string { + return r._mobile +} +// VaccinateDate Setter +// 接种日期 +func (r *AlibabaHealthVaccinVaccinateCompleteAPIRequest) SetVaccinateDate(_vaccinateDate string) error { + r._vaccinateDate = _vaccinateDate + r.Set("vaccinate_date", _vaccinateDate) + return nil +} + +// VaccinateDate Getter +func (r AlibabaHealthVaccinVaccinateCompleteAPIRequest) GetVaccinateDate() string { + return r._vaccinateDate +} +// VaccinateTime Setter +// 接种时间 +func (r *AlibabaHealthVaccinVaccinateCompleteAPIRequest) SetVaccinateTime(_vaccinateTime string) error { + r._vaccinateTime = _vaccinateTime + r.Set("vaccinate_time", _vaccinateTime) + return nil +} + +// VaccinateTime Getter +func (r AlibabaHealthVaccinVaccinateCompleteAPIRequest) GetVaccinateTime() string { + return r._vaccinateTime +} +// VaccineList Setter +// 接种的疫苗信息 +func (r *AlibabaHealthVaccinVaccinateCompleteAPIRequest) SetVaccineList(_vaccineList []VaccineInfo) error { + r._vaccineList = _vaccineList + r.Set("vaccine_list", _vaccineList) + return nil +} + +// VaccineList Getter +func (r AlibabaHealthVaccinVaccinateCompleteAPIRequest) GetVaccineList() []VaccineInfo { + return r._vaccineList +} diff --git a/model/vaccin/AlibabaHealthVaccinVaccinateCompleteAPIResponse.go b/model/vaccin/AlibabaHealthVaccinVaccinateCompleteAPIResponse.go new file mode 100644 index 0000000000..edb2227cc4 --- /dev/null +++ b/model/vaccin/AlibabaHealthVaccinVaccinateCompleteAPIResponse.go @@ -0,0 +1,33 @@ +package vaccin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +接种完成反馈接口 API返回值 +alibaba.health.vaccin.vaccinate.complete + +ISV 将用户完成接种的疫苗同步给免疫规划中心 +*/ +type AlibabaHealthVaccinVaccinateCompleteAPIResponse struct { + model.CommonResponse + AlibabaHealthVaccinVaccinateCompleteAPIResponseModel +} + +// 接种完成反馈接口 成功返回结果 +type AlibabaHealthVaccinVaccinateCompleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_health_vaccin_vaccinate_complete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 数据结果实体 + Model bool `json:"model,omitempty" xml:"model,omitempty"` + // 是否成功执行 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 错误信息描述 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/vaccin/AlibabaHealthVaccinVaccinateCompleteResponse.go b/model/vaccin/AlibabaHealthVaccinVaccinateCompleteResponse.go deleted file mode 100644 index 1dcec478d9..0000000000 --- a/model/vaccin/AlibabaHealthVaccinVaccinateCompleteResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package vaccin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -接种完成反馈接口 API返回值 -alibaba.health.vaccin.vaccinate.complete - -ISV 将用户完成接种的疫苗同步给免疫规划中心 -*/ -type AlibabaHealthVaccinVaccinateCompleteAPIResponse struct { - model.CommonResponse - AlibabaHealthVaccinVaccinateCompleteResponse -} - -// 接种完成反馈接口 成功返回结果 -type AlibabaHealthVaccinVaccinateCompleteResponse struct { - XMLName xml.Name `xml:"alibaba_health_vaccin_vaccinate_complete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 数据结果实体 - Model bool `json:"model,omitempty" xml:"model,omitempty"` - // 是否成功执行 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 错误信息描述 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/vaccin/AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest.go b/model/vaccin/AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest.go new file mode 100644 index 0000000000..91b24fd116 --- /dev/null +++ b/model/vaccin/AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest.go @@ -0,0 +1,192 @@ +package vaccin + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗预约门店列表查询 API请求 +alibaba.taobao.micdetail.alihealth.querystores + +微信小程序疫苗预约门店列表查询 +*/ +type AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest struct { + model.Params + // 0不查询库存1查询库存 + _invType int64 + // 包ID + _packageId int64 + // 页大小 + _pageSize int64 + // 页码 + _pageNum int64 + // 经度 + _lon string + // 维度 + _lat string + // 商品ID + _itemId string + // 用户ID + _userId int64 + // 地区ID + _districtId int64 + // 城市ID + _cityId int64 + // 省份ID + _provinceId int64 +} + +// 初始化AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest对象 +func NewAlibabaTaobaoMicdetailAlihealthQuerystoresRequest() *AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest{ + return &AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) GetApiMethodName() string { + return "alibaba.taobao.micdetail.alihealth.querystores" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InvType Setter +// 0不查询库存1查询库存 +func (r *AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) SetInvType(_invType int64) error { + r._invType = _invType + r.Set("inv_type", _invType) + return nil +} + +// InvType Getter +func (r AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) GetInvType() int64 { + return r._invType +} +// PackageId Setter +// 包ID +func (r *AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) SetPackageId(_packageId int64) error { + r._packageId = _packageId + r.Set("package_id", _packageId) + return nil +} + +// PackageId Getter +func (r AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) GetPackageId() int64 { + return r._packageId +} +// PageSize Setter +// 页大小 +func (r *AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNum Setter +// 页码 +func (r *AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) SetPageNum(_pageNum int64) error { + r._pageNum = _pageNum + r.Set("page_num", _pageNum) + return nil +} + +// PageNum Getter +func (r AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) GetPageNum() int64 { + return r._pageNum +} +// Lon Setter +// 经度 +func (r *AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) SetLon(_lon string) error { + r._lon = _lon + r.Set("lon", _lon) + return nil +} + +// Lon Getter +func (r AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) GetLon() string { + return r._lon +} +// Lat Setter +// 维度 +func (r *AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) SetLat(_lat string) error { + r._lat = _lat + r.Set("lat", _lat) + return nil +} + +// Lat Getter +func (r AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) GetLat() string { + return r._lat +} +// ItemId Setter +// 商品ID +func (r *AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) SetItemId(_itemId string) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) GetItemId() string { + return r._itemId +} +// UserId Setter +// 用户ID +func (r *AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) SetUserId(_userId int64) error { + r._userId = _userId + r.Set("user_id", _userId) + return nil +} + +// UserId Getter +func (r AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) GetUserId() int64 { + return r._userId +} +// DistrictId Setter +// 地区ID +func (r *AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) SetDistrictId(_districtId int64) error { + r._districtId = _districtId + r.Set("district_id", _districtId) + return nil +} + +// DistrictId Getter +func (r AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) GetDistrictId() int64 { + return r._districtId +} +// CityId Setter +// 城市ID +func (r *AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) SetCityId(_cityId int64) error { + r._cityId = _cityId + r.Set("city_id", _cityId) + return nil +} + +// CityId Getter +func (r AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) GetCityId() int64 { + return r._cityId +} +// ProvinceId Setter +// 省份ID +func (r *AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) SetProvinceId(_provinceId int64) error { + r._provinceId = _provinceId + r.Set("province_id", _provinceId) + return nil +} + +// ProvinceId Getter +func (r AlibabaTaobaoMicdetailAlihealthQuerystoresAPIRequest) GetProvinceId() int64 { + return r._provinceId +} diff --git a/model/vaccin/AlibabaTaobaoMicdetailAlihealthQuerystoresAPIResponse.go b/model/vaccin/AlibabaTaobaoMicdetailAlihealthQuerystoresAPIResponse.go new file mode 100644 index 0000000000..21f2633518 --- /dev/null +++ b/model/vaccin/AlibabaTaobaoMicdetailAlihealthQuerystoresAPIResponse.go @@ -0,0 +1,27 @@ +package vaccin + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +疫苗预约门店列表查询 API返回值 +alibaba.taobao.micdetail.alihealth.querystores + +微信小程序疫苗预约门店列表查询 +*/ +type AlibabaTaobaoMicdetailAlihealthQuerystoresAPIResponse struct { + model.CommonResponse + AlibabaTaobaoMicdetailAlihealthQuerystoresAPIResponseModel +} + +// 疫苗预约门店列表查询 成功返回结果 +type AlibabaTaobaoMicdetailAlihealthQuerystoresAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_taobao_micdetail_alihealth_querystores_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaTaobaoMicdetailAlihealthQuerystoresResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/vaccin/AlibabaTaobaoMicdetailAlihealthQuerystoresResponse.go b/model/vaccin/AlibabaTaobaoMicdetailAlihealthQuerystoresResponse.go deleted file mode 100644 index 0233448a23..0000000000 --- a/model/vaccin/AlibabaTaobaoMicdetailAlihealthQuerystoresResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package vaccin - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -疫苗预约门店列表查询 API返回值 -alibaba.taobao.micdetail.alihealth.querystores - -微信小程序疫苗预约门店列表查询 -*/ -type AlibabaTaobaoMicdetailAlihealthQuerystoresAPIResponse struct { - model.CommonResponse - AlibabaTaobaoMicdetailAlihealthQuerystoresResponse -} - -// 疫苗预约门店列表查询 成功返回结果 -type AlibabaTaobaoMicdetailAlihealthQuerystoresResponse struct { - XMLName xml.Name `xml:"alibaba_taobao_micdetail_alihealth_querystores_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaTaobaoMicdetailAlihealthQuerystoresResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/viapi/AliyunViapiFacebodyComparefaceAPIRequest.go b/model/viapi/AliyunViapiFacebodyComparefaceAPIRequest.go new file mode 100644 index 0000000000..8cd1a1d07d --- /dev/null +++ b/model/viapi/AliyunViapiFacebodyComparefaceAPIRequest.go @@ -0,0 +1,80 @@ +package viapi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +人脸比对1:1 API请求 +aliyun.viapi.facebody.compareface + +基于输入的两张图片,人脸比对服务可检测两张图片中的人脸,并挑选两张图片的最大人脸进行比较,判断是否是同一人;人脸比对服务还返回了这两个人脸的矩形框、比对的置信度,以及不同误识率的置信度阈值。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiFacebodyComparefaceAPIRequest struct { + model.Params + // 图片url地址(http/https) + _imageUrlA string + // 图片url地址(http/https) + _imageUrlB string + // 图片类型, ,取值范围[0:图片URL, 1:图片Base64数据] + _imageType int64 +} + +// 初始化AliyunViapiFacebodyComparefaceAPIRequest对象 +func NewAliyunViapiFacebodyComparefaceRequest() *AliyunViapiFacebodyComparefaceAPIRequest{ + return &AliyunViapiFacebodyComparefaceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunViapiFacebodyComparefaceAPIRequest) GetApiMethodName() string { + return "aliyun.viapi.facebody.compareface" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunViapiFacebodyComparefaceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImageUrlA Setter +// 图片url地址(http/https) +func (r *AliyunViapiFacebodyComparefaceAPIRequest) SetImageUrlA(_imageUrlA string) error { + r._imageUrlA = _imageUrlA + r.Set("image_url_a", _imageUrlA) + return nil +} + +// ImageUrlA Getter +func (r AliyunViapiFacebodyComparefaceAPIRequest) GetImageUrlA() string { + return r._imageUrlA +} +// ImageUrlB Setter +// 图片url地址(http/https) +func (r *AliyunViapiFacebodyComparefaceAPIRequest) SetImageUrlB(_imageUrlB string) error { + r._imageUrlB = _imageUrlB + r.Set("image_url_b", _imageUrlB) + return nil +} + +// ImageUrlB Getter +func (r AliyunViapiFacebodyComparefaceAPIRequest) GetImageUrlB() string { + return r._imageUrlB +} +// ImageType Setter +// 图片类型, ,取值范围[0:图片URL, 1:图片Base64数据] +func (r *AliyunViapiFacebodyComparefaceAPIRequest) SetImageType(_imageType int64) error { + r._imageType = _imageType + r.Set("image_type", _imageType) + return nil +} + +// ImageType Getter +func (r AliyunViapiFacebodyComparefaceAPIRequest) GetImageType() int64 { + return r._imageType +} diff --git a/model/viapi/AliyunViapiFacebodyComparefaceAPIResponse.go b/model/viapi/AliyunViapiFacebodyComparefaceAPIResponse.go new file mode 100644 index 0000000000..82109d395a --- /dev/null +++ b/model/viapi/AliyunViapiFacebodyComparefaceAPIResponse.go @@ -0,0 +1,29 @@ +package viapi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +人脸比对1:1 API返回值 +aliyun.viapi.facebody.compareface + +基于输入的两张图片,人脸比对服务可检测两张图片中的人脸,并挑选两张图片的最大人脸进行比较,判断是否是同一人;人脸比对服务还返回了这两个人脸的矩形框、比对的置信度,以及不同误识率的置信度阈值。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiFacebodyComparefaceAPIResponse struct { + model.CommonResponse + AliyunViapiFacebodyComparefaceAPIResponseModel +} + +// 人脸比对1:1 成功返回结果 +type AliyunViapiFacebodyComparefaceAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_viapi_facebody_compareface_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求ID + TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` + // 系统自动生成 + Data *AliyunViapiFacebodyComparefaceData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/viapi/AliyunViapiFacebodyComparefaceResponse.go b/model/viapi/AliyunViapiFacebodyComparefaceResponse.go deleted file mode 100644 index b867a61b3e..0000000000 --- a/model/viapi/AliyunViapiFacebodyComparefaceResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package viapi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -人脸比对1:1 API返回值 -aliyun.viapi.facebody.compareface - -基于输入的两张图片,人脸比对服务可检测两张图片中的人脸,并挑选两张图片的最大人脸进行比较,判断是否是同一人;人脸比对服务还返回了这两个人脸的矩形框、比对的置信度,以及不同误识率的置信度阈值。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) -*/ -type AliyunViapiFacebodyComparefaceAPIResponse struct { - model.CommonResponse - AliyunViapiFacebodyComparefaceResponse -} - -// 人脸比对1:1 成功返回结果 -type AliyunViapiFacebodyComparefaceResponse struct { - XMLName xml.Name `xml:"aliyun_viapi_facebody_compareface_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求ID - TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` - // 系统自动生成 - Data *AliyunViapiFacebodyComparefaceData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/viapi/AliyunViapiFacebodyDetectfaceAPIRequest.go b/model/viapi/AliyunViapiFacebodyDetectfaceAPIRequest.go new file mode 100644 index 0000000000..f6759038aa --- /dev/null +++ b/model/viapi/AliyunViapiFacebodyDetectfaceAPIRequest.go @@ -0,0 +1,66 @@ +package viapi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +人脸检测定位 API请求 +aliyun.viapi.facebody.detectface + +输入图片之后,在人脸检测定位返回结果的基础上,识别各个检测人脸的四种属性,返回性别(男/女)、年龄、表情(笑/不笑)、眼镜(戴/不戴);并可返回人脸的1024维深度学习特征、(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiFacebodyDetectfaceAPIRequest struct { + model.Params + // 图片url地址(http/https) + _imageUrl string + // 0: 通过url识别,参数image_url不为空;1: 通过图片content识别,参数content不为空 支持图片格式:JPEG、JPG、BMP、PNG + _imageType int64 +} + +// 初始化AliyunViapiFacebodyDetectfaceAPIRequest对象 +func NewAliyunViapiFacebodyDetectfaceRequest() *AliyunViapiFacebodyDetectfaceAPIRequest{ + return &AliyunViapiFacebodyDetectfaceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunViapiFacebodyDetectfaceAPIRequest) GetApiMethodName() string { + return "aliyun.viapi.facebody.detectface" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunViapiFacebodyDetectfaceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImageUrl Setter +// 图片url地址(http/https) +func (r *AliyunViapiFacebodyDetectfaceAPIRequest) SetImageUrl(_imageUrl string) error { + r._imageUrl = _imageUrl + r.Set("image_url", _imageUrl) + return nil +} + +// ImageUrl Getter +func (r AliyunViapiFacebodyDetectfaceAPIRequest) GetImageUrl() string { + return r._imageUrl +} +// ImageType Setter +// 0: 通过url识别,参数image_url不为空;1: 通过图片content识别,参数content不为空 支持图片格式:JPEG、JPG、BMP、PNG +func (r *AliyunViapiFacebodyDetectfaceAPIRequest) SetImageType(_imageType int64) error { + r._imageType = _imageType + r.Set("image_type", _imageType) + return nil +} + +// ImageType Getter +func (r AliyunViapiFacebodyDetectfaceAPIRequest) GetImageType() int64 { + return r._imageType +} diff --git a/model/viapi/AliyunViapiFacebodyDetectfaceAPIResponse.go b/model/viapi/AliyunViapiFacebodyDetectfaceAPIResponse.go new file mode 100644 index 0000000000..2a391e8869 --- /dev/null +++ b/model/viapi/AliyunViapiFacebodyDetectfaceAPIResponse.go @@ -0,0 +1,29 @@ +package viapi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +人脸检测定位 API返回值 +aliyun.viapi.facebody.detectface + +输入图片之后,在人脸检测定位返回结果的基础上,识别各个检测人脸的四种属性,返回性别(男/女)、年龄、表情(笑/不笑)、眼镜(戴/不戴);并可返回人脸的1024维深度学习特征、(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiFacebodyDetectfaceAPIResponse struct { + model.CommonResponse + AliyunViapiFacebodyDetectfaceAPIResponseModel +} + +// 人脸检测定位 成功返回结果 +type AliyunViapiFacebodyDetectfaceAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_viapi_facebody_detectface_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求ID + TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` + // 系统自动生成 + Data *AliyunViapiFacebodyDetectfaceData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/viapi/AliyunViapiFacebodyDetectfaceResponse.go b/model/viapi/AliyunViapiFacebodyDetectfaceResponse.go deleted file mode 100644 index d613f9f47f..0000000000 --- a/model/viapi/AliyunViapiFacebodyDetectfaceResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package viapi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -人脸检测定位 API返回值 -aliyun.viapi.facebody.detectface - -输入图片之后,在人脸检测定位返回结果的基础上,识别各个检测人脸的四种属性,返回性别(男/女)、年龄、表情(笑/不笑)、眼镜(戴/不戴);并可返回人脸的1024维深度学习特征、(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) -*/ -type AliyunViapiFacebodyDetectfaceAPIResponse struct { - model.CommonResponse - AliyunViapiFacebodyDetectfaceResponse -} - -// 人脸检测定位 成功返回结果 -type AliyunViapiFacebodyDetectfaceResponse struct { - XMLName xml.Name `xml:"aliyun_viapi_facebody_detectface_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求ID - TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` - // 系统自动生成 - Data *AliyunViapiFacebodyDetectfaceData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/viapi/AliyunViapiFacebodyRecognizefaceAPIRequest.go b/model/viapi/AliyunViapiFacebodyRecognizefaceAPIRequest.go new file mode 100644 index 0000000000..90940acafb --- /dev/null +++ b/model/viapi/AliyunViapiFacebodyRecognizefaceAPIRequest.go @@ -0,0 +1,66 @@ +package viapi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +人脸属性识别 API请求 +aliyun.viapi.facebody.recognizeface + +输入图片之后,在人脸检测定位返回结果的基础上,识别各个检测人脸的四种属性,返回性别(男/女)、年龄、表情(笑/不笑)、眼镜(戴/不戴);并可返回人脸的1024维深度学习特征。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiFacebodyRecognizefaceAPIRequest struct { + model.Params + // 待检测图片链接 + _imageUrl string + // 图片类型, ,取值范围[0:ImageURL, 1:ImageContent] + _imageType int64 +} + +// 初始化AliyunViapiFacebodyRecognizefaceAPIRequest对象 +func NewAliyunViapiFacebodyRecognizefaceRequest() *AliyunViapiFacebodyRecognizefaceAPIRequest{ + return &AliyunViapiFacebodyRecognizefaceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunViapiFacebodyRecognizefaceAPIRequest) GetApiMethodName() string { + return "aliyun.viapi.facebody.recognizeface" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunViapiFacebodyRecognizefaceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImageUrl Setter +// 待检测图片链接 +func (r *AliyunViapiFacebodyRecognizefaceAPIRequest) SetImageUrl(_imageUrl string) error { + r._imageUrl = _imageUrl + r.Set("image_url", _imageUrl) + return nil +} + +// ImageUrl Getter +func (r AliyunViapiFacebodyRecognizefaceAPIRequest) GetImageUrl() string { + return r._imageUrl +} +// ImageType Setter +// 图片类型, ,取值范围[0:ImageURL, 1:ImageContent] +func (r *AliyunViapiFacebodyRecognizefaceAPIRequest) SetImageType(_imageType int64) error { + r._imageType = _imageType + r.Set("image_type", _imageType) + return nil +} + +// ImageType Getter +func (r AliyunViapiFacebodyRecognizefaceAPIRequest) GetImageType() int64 { + return r._imageType +} diff --git a/model/viapi/AliyunViapiFacebodyRecognizefaceAPIResponse.go b/model/viapi/AliyunViapiFacebodyRecognizefaceAPIResponse.go new file mode 100644 index 0000000000..67a9bf2ead --- /dev/null +++ b/model/viapi/AliyunViapiFacebodyRecognizefaceAPIResponse.go @@ -0,0 +1,29 @@ +package viapi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +人脸属性识别 API返回值 +aliyun.viapi.facebody.recognizeface + +输入图片之后,在人脸检测定位返回结果的基础上,识别各个检测人脸的四种属性,返回性别(男/女)、年龄、表情(笑/不笑)、眼镜(戴/不戴);并可返回人脸的1024维深度学习特征。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiFacebodyRecognizefaceAPIResponse struct { + model.CommonResponse + AliyunViapiFacebodyRecognizefaceAPIResponseModel +} + +// 人脸属性识别 成功返回结果 +type AliyunViapiFacebodyRecognizefaceAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_viapi_facebody_recognizeface_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求ID + TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` + // 系统自动生成 + Data *AliyunViapiFacebodyRecognizefaceData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/viapi/AliyunViapiFacebodyRecognizefaceResponse.go b/model/viapi/AliyunViapiFacebodyRecognizefaceResponse.go deleted file mode 100644 index 74e81e6c33..0000000000 --- a/model/viapi/AliyunViapiFacebodyRecognizefaceResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package viapi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -人脸属性识别 API返回值 -aliyun.viapi.facebody.recognizeface - -输入图片之后,在人脸检测定位返回结果的基础上,识别各个检测人脸的四种属性,返回性别(男/女)、年龄、表情(笑/不笑)、眼镜(戴/不戴);并可返回人脸的1024维深度学习特征。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) -*/ -type AliyunViapiFacebodyRecognizefaceAPIResponse struct { - model.CommonResponse - AliyunViapiFacebodyRecognizefaceResponse -} - -// 人脸属性识别 成功返回结果 -type AliyunViapiFacebodyRecognizefaceResponse struct { - XMLName xml.Name `xml:"aliyun_viapi_facebody_recognizeface_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求ID - TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` - // 系统自动生成 - Data *AliyunViapiFacebodyRecognizefaceData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/viapi/AliyunViapiGoodstechClassifygoodsAPIRequest.go b/model/viapi/AliyunViapiGoodstechClassifygoodsAPIRequest.go new file mode 100644 index 0000000000..440714056f --- /dev/null +++ b/model/viapi/AliyunViapiGoodstechClassifygoodsAPIRequest.go @@ -0,0 +1,52 @@ +package viapi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品分类 API请求 +aliyun.viapi.goodstech.classifygoods + +可以识别图像中的商品分类,返回商品类目、置信度等信息。目前已经支持服饰鞋包、3C数码、家居用品等超过1万种类目分类。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiGoodstechClassifygoodsAPIRequest struct { + model.Params + // 待检测图片链接 + _imageUrl string +} + +// 初始化AliyunViapiGoodstechClassifygoodsAPIRequest对象 +func NewAliyunViapiGoodstechClassifygoodsRequest() *AliyunViapiGoodstechClassifygoodsAPIRequest{ + return &AliyunViapiGoodstechClassifygoodsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunViapiGoodstechClassifygoodsAPIRequest) GetApiMethodName() string { + return "aliyun.viapi.goodstech.classifygoods" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunViapiGoodstechClassifygoodsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImageUrl Setter +// 待检测图片链接 +func (r *AliyunViapiGoodstechClassifygoodsAPIRequest) SetImageUrl(_imageUrl string) error { + r._imageUrl = _imageUrl + r.Set("image_url", _imageUrl) + return nil +} + +// ImageUrl Getter +func (r AliyunViapiGoodstechClassifygoodsAPIRequest) GetImageUrl() string { + return r._imageUrl +} diff --git a/model/viapi/AliyunViapiGoodstechClassifygoodsAPIResponse.go b/model/viapi/AliyunViapiGoodstechClassifygoodsAPIResponse.go new file mode 100644 index 0000000000..a0c22f62b1 --- /dev/null +++ b/model/viapi/AliyunViapiGoodstechClassifygoodsAPIResponse.go @@ -0,0 +1,29 @@ +package viapi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品分类 API返回值 +aliyun.viapi.goodstech.classifygoods + +可以识别图像中的商品分类,返回商品类目、置信度等信息。目前已经支持服饰鞋包、3C数码、家居用品等超过1万种类目分类。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiGoodstechClassifygoodsAPIResponse struct { + model.CommonResponse + AliyunViapiGoodstechClassifygoodsAPIResponseModel +} + +// 商品分类 成功返回结果 +type AliyunViapiGoodstechClassifygoodsAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_viapi_goodstech_classifygoods_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求ID + TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` + // 系统自动生成 + Data *AliyunViapiGoodstechClassifygoodsData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/viapi/AliyunViapiGoodstechClassifygoodsResponse.go b/model/viapi/AliyunViapiGoodstechClassifygoodsResponse.go deleted file mode 100644 index a01ec429ff..0000000000 --- a/model/viapi/AliyunViapiGoodstechClassifygoodsResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package viapi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品分类 API返回值 -aliyun.viapi.goodstech.classifygoods - -可以识别图像中的商品分类,返回商品类目、置信度等信息。目前已经支持服饰鞋包、3C数码、家居用品等超过1万种类目分类。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) -*/ -type AliyunViapiGoodstechClassifygoodsAPIResponse struct { - model.CommonResponse - AliyunViapiGoodstechClassifygoodsResponse -} - -// 商品分类 成功返回结果 -type AliyunViapiGoodstechClassifygoodsResponse struct { - XMLName xml.Name `xml:"aliyun_viapi_goodstech_classifygoods_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求ID - TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` - // 系统自动生成 - Data *AliyunViapiGoodstechClassifygoodsData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/viapi/AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest.go b/model/viapi/AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest.go new file mode 100644 index 0000000000..27712a0aa6 --- /dev/null +++ b/model/viapi/AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest.go @@ -0,0 +1,52 @@ +package viapi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +家居属性识别 API请求 +aliyun.viapi.goodstech.recognize.furniture.attribute + +识别输入的家居模型图的风格,目前支持16种风格识别。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest struct { + model.Params + // 待检测图片链接 + _imageUrl string +} + +// 初始化AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest对象 +func NewAliyunViapiGoodstechRecognizeFurnitureAttributeRequest() *AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest{ + return &AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest) GetApiMethodName() string { + return "aliyun.viapi.goodstech.recognize.furniture.attribute" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImageUrl Setter +// 待检测图片链接 +func (r *AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest) SetImageUrl(_imageUrl string) error { + r._imageUrl = _imageUrl + r.Set("image_url", _imageUrl) + return nil +} + +// ImageUrl Getter +func (r AliyunViapiGoodstechRecognizeFurnitureAttributeAPIRequest) GetImageUrl() string { + return r._imageUrl +} diff --git a/model/viapi/AliyunViapiGoodstechRecognizeFurnitureAttributeAPIResponse.go b/model/viapi/AliyunViapiGoodstechRecognizeFurnitureAttributeAPIResponse.go new file mode 100644 index 0000000000..bf67671435 --- /dev/null +++ b/model/viapi/AliyunViapiGoodstechRecognizeFurnitureAttributeAPIResponse.go @@ -0,0 +1,29 @@ +package viapi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +家居属性识别 API返回值 +aliyun.viapi.goodstech.recognize.furniture.attribute + +识别输入的家居模型图的风格,目前支持16种风格识别。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiGoodstechRecognizeFurnitureAttributeAPIResponse struct { + model.CommonResponse + AliyunViapiGoodstechRecognizeFurnitureAttributeAPIResponseModel +} + +// 家居属性识别 成功返回结果 +type AliyunViapiGoodstechRecognizeFurnitureAttributeAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_viapi_goodstech_recognize_furniture_attribute_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求ID + TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` + // 系统自动生成 + Data *AliyunViapiGoodstechRecognizeFurnitureAttributeData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/viapi/AliyunViapiGoodstechRecognizeFurnitureAttributeResponse.go b/model/viapi/AliyunViapiGoodstechRecognizeFurnitureAttributeResponse.go deleted file mode 100644 index fb0f9525be..0000000000 --- a/model/viapi/AliyunViapiGoodstechRecognizeFurnitureAttributeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package viapi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -家居属性识别 API返回值 -aliyun.viapi.goodstech.recognize.furniture.attribute - -识别输入的家居模型图的风格,目前支持16种风格识别。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) -*/ -type AliyunViapiGoodstechRecognizeFurnitureAttributeAPIResponse struct { - model.CommonResponse - AliyunViapiGoodstechRecognizeFurnitureAttributeResponse -} - -// 家居属性识别 成功返回结果 -type AliyunViapiGoodstechRecognizeFurnitureAttributeResponse struct { - XMLName xml.Name `xml:"aliyun_viapi_goodstech_recognize_furniture_attribute_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求ID - TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` - // 系统自动生成 - Data *AliyunViapiGoodstechRecognizeFurnitureAttributeData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/viapi/AliyunViapiGoodstechRecognizeFurniturespuAPIRequest.go b/model/viapi/AliyunViapiGoodstechRecognizeFurniturespuAPIRequest.go new file mode 100644 index 0000000000..b0556d1e1d --- /dev/null +++ b/model/viapi/AliyunViapiGoodstechRecognizeFurniturespuAPIRequest.go @@ -0,0 +1,94 @@ +package viapi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +家居SPU识别 API请求 +aliyun.viapi.goodstech.recognize.furniturespu + +对输入的家居模型图进行分类,目前类别数可达70类。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiGoodstechRecognizeFurniturespuAPIRequest struct { + model.Params + // 待检测图片链接 + _imageUrl string + // 模型x方向的尺寸,单位cm,默认值100 + _xLength string + // 模型y方向的尺寸,单位cm,默认值100 + _yLength string + // 模型z方向的尺寸,单位cm,默认值100 + _zLength string +} + +// 初始化AliyunViapiGoodstechRecognizeFurniturespuAPIRequest对象 +func NewAliyunViapiGoodstechRecognizeFurniturespuRequest() *AliyunViapiGoodstechRecognizeFurniturespuAPIRequest{ + return &AliyunViapiGoodstechRecognizeFurniturespuAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) GetApiMethodName() string { + return "aliyun.viapi.goodstech.recognize.furniturespu" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImageUrl Setter +// 待检测图片链接 +func (r *AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) SetImageUrl(_imageUrl string) error { + r._imageUrl = _imageUrl + r.Set("image_url", _imageUrl) + return nil +} + +// ImageUrl Getter +func (r AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) GetImageUrl() string { + return r._imageUrl +} +// XLength Setter +// 模型x方向的尺寸,单位cm,默认值100 +func (r *AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) SetXLength(_xLength string) error { + r._xLength = _xLength + r.Set("x_length", _xLength) + return nil +} + +// XLength Getter +func (r AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) GetXLength() string { + return r._xLength +} +// YLength Setter +// 模型y方向的尺寸,单位cm,默认值100 +func (r *AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) SetYLength(_yLength string) error { + r._yLength = _yLength + r.Set("y_length", _yLength) + return nil +} + +// YLength Getter +func (r AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) GetYLength() string { + return r._yLength +} +// ZLength Setter +// 模型z方向的尺寸,单位cm,默认值100 +func (r *AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) SetZLength(_zLength string) error { + r._zLength = _zLength + r.Set("z_length", _zLength) + return nil +} + +// ZLength Getter +func (r AliyunViapiGoodstechRecognizeFurniturespuAPIRequest) GetZLength() string { + return r._zLength +} diff --git a/model/viapi/AliyunViapiGoodstechRecognizeFurniturespuAPIResponse.go b/model/viapi/AliyunViapiGoodstechRecognizeFurniturespuAPIResponse.go new file mode 100644 index 0000000000..26a08365dc --- /dev/null +++ b/model/viapi/AliyunViapiGoodstechRecognizeFurniturespuAPIResponse.go @@ -0,0 +1,29 @@ +package viapi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +家居SPU识别 API返回值 +aliyun.viapi.goodstech.recognize.furniturespu + +对输入的家居模型图进行分类,目前类别数可达70类。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiGoodstechRecognizeFurniturespuAPIResponse struct { + model.CommonResponse + AliyunViapiGoodstechRecognizeFurniturespuAPIResponseModel +} + +// 家居SPU识别 成功返回结果 +type AliyunViapiGoodstechRecognizeFurniturespuAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_viapi_goodstech_recognize_furniturespu_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求ID + TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` + // 系统自动生成 + Data *AliyunViapiGoodstechRecognizeFurniturespuData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/viapi/AliyunViapiGoodstechRecognizeFurniturespuResponse.go b/model/viapi/AliyunViapiGoodstechRecognizeFurniturespuResponse.go deleted file mode 100644 index 996f6cb0ba..0000000000 --- a/model/viapi/AliyunViapiGoodstechRecognizeFurniturespuResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package viapi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -家居SPU识别 API返回值 -aliyun.viapi.goodstech.recognize.furniturespu - -对输入的家居模型图进行分类,目前类别数可达70类。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) -*/ -type AliyunViapiGoodstechRecognizeFurniturespuAPIResponse struct { - model.CommonResponse - AliyunViapiGoodstechRecognizeFurniturespuResponse -} - -// 家居SPU识别 成功返回结果 -type AliyunViapiGoodstechRecognizeFurniturespuResponse struct { - XMLName xml.Name `xml:"aliyun_viapi_goodstech_recognize_furniturespu_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求ID - TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` - // 系统自动生成 - Data *AliyunViapiGoodstechRecognizeFurniturespuData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/viapi/AliyunViapiImageauditScanimageAPIRequest.go b/model/viapi/AliyunViapiImageauditScanimageAPIRequest.go new file mode 100644 index 0000000000..2c51a99d6e --- /dev/null +++ b/model/viapi/AliyunViapiImageauditScanimageAPIRequest.go @@ -0,0 +1,66 @@ +package viapi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +绿网-内容安全 API请求 +aliyun.viapi.imageaudit.scanimage + +绿网-内容安全技术是基于阿里云视觉分析技术和深度识别技术,并经过在阿里经济体内和云上客户的多领域、多场景的广泛应用和不断优化,可提供风险和治理领域的图像识别、定位、检索等全面服务能力,不仅可以降低色情、涉恐、涉政、广告、垃圾信息等违规风险,而且能大幅度降低人工审核成本。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiImageauditScanimageAPIRequest struct { + model.Params + // 系统自动生成 + _tasks []Task + // 场景列表 + _scenes []string +} + +// 初始化AliyunViapiImageauditScanimageAPIRequest对象 +func NewAliyunViapiImageauditScanimageRequest() *AliyunViapiImageauditScanimageAPIRequest{ + return &AliyunViapiImageauditScanimageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunViapiImageauditScanimageAPIRequest) GetApiMethodName() string { + return "aliyun.viapi.imageaudit.scanimage" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunViapiImageauditScanimageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tasks Setter +// 系统自动生成 +func (r *AliyunViapiImageauditScanimageAPIRequest) SetTasks(_tasks []Task) error { + r._tasks = _tasks + r.Set("tasks", _tasks) + return nil +} + +// Tasks Getter +func (r AliyunViapiImageauditScanimageAPIRequest) GetTasks() []Task { + return r._tasks +} +// Scenes Setter +// 场景列表 +func (r *AliyunViapiImageauditScanimageAPIRequest) SetScenes(_scenes []string) error { + r._scenes = _scenes + r.Set("scenes", _scenes) + return nil +} + +// Scenes Getter +func (r AliyunViapiImageauditScanimageAPIRequest) GetScenes() []string { + return r._scenes +} diff --git a/model/viapi/AliyunViapiImageauditScanimageAPIResponse.go b/model/viapi/AliyunViapiImageauditScanimageAPIResponse.go new file mode 100644 index 0000000000..46ab494a4f --- /dev/null +++ b/model/viapi/AliyunViapiImageauditScanimageAPIResponse.go @@ -0,0 +1,29 @@ +package viapi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +绿网-内容安全 API返回值 +aliyun.viapi.imageaudit.scanimage + +绿网-内容安全技术是基于阿里云视觉分析技术和深度识别技术,并经过在阿里经济体内和云上客户的多领域、多场景的广泛应用和不断优化,可提供风险和治理领域的图像识别、定位、检索等全面服务能力,不仅可以降低色情、涉恐、涉政、广告、垃圾信息等违规风险,而且能大幅度降低人工审核成本。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiImageauditScanimageAPIResponse struct { + model.CommonResponse + AliyunViapiImageauditScanimageAPIResponseModel +} + +// 绿网-内容安全 成功返回结果 +type AliyunViapiImageauditScanimageAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_viapi_imageaudit_scanimage_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求ID + TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` + // 系统自动生成 + DataList *AliyunViapiImageauditScanimageData `json:"data_list,omitempty" xml:"data_list,omitempty"` +} diff --git a/model/viapi/AliyunViapiImageauditScanimageResponse.go b/model/viapi/AliyunViapiImageauditScanimageResponse.go deleted file mode 100644 index c3c88db76f..0000000000 --- a/model/viapi/AliyunViapiImageauditScanimageResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package viapi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -绿网-内容安全 API返回值 -aliyun.viapi.imageaudit.scanimage - -绿网-内容安全技术是基于阿里云视觉分析技术和深度识别技术,并经过在阿里经济体内和云上客户的多领域、多场景的广泛应用和不断优化,可提供风险和治理领域的图像识别、定位、检索等全面服务能力,不仅可以降低色情、涉恐、涉政、广告、垃圾信息等违规风险,而且能大幅度降低人工审核成本。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) -*/ -type AliyunViapiImageauditScanimageAPIResponse struct { - model.CommonResponse - AliyunViapiImageauditScanimageResponse -} - -// 绿网-内容安全 成功返回结果 -type AliyunViapiImageauditScanimageResponse struct { - XMLName xml.Name `xml:"aliyun_viapi_imageaudit_scanimage_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求ID - TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` - // 系统自动生成 - DataList *AliyunViapiImageauditScanimageData `json:"data_list,omitempty" xml:"data_list,omitempty"` -} diff --git a/model/viapi/AliyunViapiImageauditScantextAPIRequest.go b/model/viapi/AliyunViapiImageauditScantextAPIRequest.go new file mode 100644 index 0000000000..0b5f55c19b --- /dev/null +++ b/model/viapi/AliyunViapiImageauditScantextAPIRequest.go @@ -0,0 +1,67 @@ +package viapi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +文字内容审核 API请求 +aliyun.viapi.imageaudit.scantext + +结合行为、内容,采用多维度、多模型、多检测手段,识别文本中的垃圾内容,规避色情、广告、灌水、渉政、辱骂等内容风险。 +注意:如果返回结果里面的results为空,也代表指定类型检测通过。 +*/ +type AliyunViapiImageauditScantextAPIRequest struct { + model.Params + // 指定检测对象,JSON数组中的每个元素是一个文件检测任务结构体(Task表)。最多支持10个元素,即对10张文本进行检测。每个元素的具体结构描述见Task。 + _tasks []Task + // 指定文本检测的应用场景,可选值包括: spam:含垃圾信息 politics: 涉政 abuse:辱骂 porn:智能鉴黄 terrorism:暴恐识别 flood:灌水 contraband:违禁 ad:文案违规识别 说明 支持多场景(Labels)一起检测,对一张文本同时进行鉴黄和暴恐识别,计费时也将按照两个场景计费。 + _labels []Label +} + +// 初始化AliyunViapiImageauditScantextAPIRequest对象 +func NewAliyunViapiImageauditScantextRequest() *AliyunViapiImageauditScantextAPIRequest{ + return &AliyunViapiImageauditScantextAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunViapiImageauditScantextAPIRequest) GetApiMethodName() string { + return "aliyun.viapi.imageaudit.scantext" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunViapiImageauditScantextAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tasks Setter +// 指定检测对象,JSON数组中的每个元素是一个文件检测任务结构体(Task表)。最多支持10个元素,即对10张文本进行检测。每个元素的具体结构描述见Task。 +func (r *AliyunViapiImageauditScantextAPIRequest) SetTasks(_tasks []Task) error { + r._tasks = _tasks + r.Set("tasks", _tasks) + return nil +} + +// Tasks Getter +func (r AliyunViapiImageauditScantextAPIRequest) GetTasks() []Task { + return r._tasks +} +// Labels Setter +// 指定文本检测的应用场景,可选值包括: spam:含垃圾信息 politics: 涉政 abuse:辱骂 porn:智能鉴黄 terrorism:暴恐识别 flood:灌水 contraband:违禁 ad:文案违规识别 说明 支持多场景(Labels)一起检测,对一张文本同时进行鉴黄和暴恐识别,计费时也将按照两个场景计费。 +func (r *AliyunViapiImageauditScantextAPIRequest) SetLabels(_labels []Label) error { + r._labels = _labels + r.Set("labels", _labels) + return nil +} + +// Labels Getter +func (r AliyunViapiImageauditScantextAPIRequest) GetLabels() []Label { + return r._labels +} diff --git a/model/viapi/AliyunViapiImageauditScantextAPIResponse.go b/model/viapi/AliyunViapiImageauditScantextAPIResponse.go new file mode 100644 index 0000000000..9a7217ce81 --- /dev/null +++ b/model/viapi/AliyunViapiImageauditScantextAPIResponse.go @@ -0,0 +1,30 @@ +package viapi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +文字内容审核 API返回值 +aliyun.viapi.imageaudit.scantext + +结合行为、内容,采用多维度、多模型、多检测手段,识别文本中的垃圾内容,规避色情、广告、灌水、渉政、辱骂等内容风险。 +注意:如果返回结果里面的results为空,也代表指定类型检测通过。 +*/ +type AliyunViapiImageauditScantextAPIResponse struct { + model.CommonResponse + AliyunViapiImageauditScantextAPIResponseModel +} + +// 文字内容审核 成功返回结果 +type AliyunViapiImageauditScantextAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_viapi_imageaudit_scantext_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求ID + TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` + // 系统自动生成 + Data *AliyunViapiImageauditScantextData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/viapi/AliyunViapiImageauditScantextDetail.go b/model/viapi/AliyunViapiImageauditScantextDetail.go new file mode 100644 index 0000000000..4277c53790 --- /dev/null +++ b/model/viapi/AliyunViapiImageauditScantextDetail.go @@ -0,0 +1,9 @@ +package viapi + +// AliyunViapiImageauditScantextDetail +type AliyunViapiImageauditScantextDetail struct { + // 文本命中风险的分类 + Label string `json:"label,omitempty" xml:"label,omitempty"` + // 命中该风险的上下文信息 + Contexts []Context `json:"contexts,omitempty" xml:"contexts>context,omitempty"` +} diff --git a/model/viapi/AliyunViapiImageauditScantextResponse.go b/model/viapi/AliyunViapiImageauditScantextResponse.go deleted file mode 100644 index b6522b4a68..0000000000 --- a/model/viapi/AliyunViapiImageauditScantextResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package viapi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -文字内容审核 API返回值 -aliyun.viapi.imageaudit.scantext - -结合行为、内容,采用多维度、多模型、多检测手段,识别文本中的垃圾内容,规避色情、广告、灌水、渉政、辱骂等内容风险。 -注意:如果返回结果里面的results为空,也代表指定类型检测通过。 -*/ -type AliyunViapiImageauditScantextAPIResponse struct { - model.CommonResponse - AliyunViapiImageauditScantextResponse -} - -// 文字内容审核 成功返回结果 -type AliyunViapiImageauditScantextResponse struct { - XMLName xml.Name `xml:"aliyun_viapi_imageaudit_scantext_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求ID - TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` - // 系统自动生成 - Data *AliyunViapiImageauditScantextData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/viapi/AliyunViapiImagesegSegmentCommonimageAPIRequest.go b/model/viapi/AliyunViapiImagesegSegmentCommonimageAPIRequest.go new file mode 100644 index 0000000000..cc8ec71f0a --- /dev/null +++ b/model/viapi/AliyunViapiImagesegSegmentCommonimageAPIRequest.go @@ -0,0 +1,52 @@ +package viapi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通用分割 API请求 +aliyun.viapi.imageseg.segment.commonimage + +识别输入图像中的视觉中心物体轮廓,与背景进行分离,返回分割后的前景物体图(4通道png透明图)。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiImagesegSegmentCommonimageAPIRequest struct { + model.Params + // 待检测图片链接 + _imageUrl string +} + +// 初始化AliyunViapiImagesegSegmentCommonimageAPIRequest对象 +func NewAliyunViapiImagesegSegmentCommonimageRequest() *AliyunViapiImagesegSegmentCommonimageAPIRequest{ + return &AliyunViapiImagesegSegmentCommonimageAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunViapiImagesegSegmentCommonimageAPIRequest) GetApiMethodName() string { + return "aliyun.viapi.imageseg.segment.commonimage" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunViapiImagesegSegmentCommonimageAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImageUrl Setter +// 待检测图片链接 +func (r *AliyunViapiImagesegSegmentCommonimageAPIRequest) SetImageUrl(_imageUrl string) error { + r._imageUrl = _imageUrl + r.Set("image_url", _imageUrl) + return nil +} + +// ImageUrl Getter +func (r AliyunViapiImagesegSegmentCommonimageAPIRequest) GetImageUrl() string { + return r._imageUrl +} diff --git a/model/viapi/AliyunViapiImagesegSegmentCommonimageAPIResponse.go b/model/viapi/AliyunViapiImagesegSegmentCommonimageAPIResponse.go new file mode 100644 index 0000000000..50371af029 --- /dev/null +++ b/model/viapi/AliyunViapiImagesegSegmentCommonimageAPIResponse.go @@ -0,0 +1,29 @@ +package viapi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通用分割 API返回值 +aliyun.viapi.imageseg.segment.commonimage + +识别输入图像中的视觉中心物体轮廓,与背景进行分离,返回分割后的前景物体图(4通道png透明图)。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiImagesegSegmentCommonimageAPIResponse struct { + model.CommonResponse + AliyunViapiImagesegSegmentCommonimageAPIResponseModel +} + +// 通用分割 成功返回结果 +type AliyunViapiImagesegSegmentCommonimageAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_viapi_imageseg_segment_commonimage_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求ID + TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` + // 系统自动生成 + Data *AliyunViapiImagesegSegmentCommonimageData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/viapi/AliyunViapiImagesegSegmentCommonimageResponse.go b/model/viapi/AliyunViapiImagesegSegmentCommonimageResponse.go deleted file mode 100644 index 0cc876d009..0000000000 --- a/model/viapi/AliyunViapiImagesegSegmentCommonimageResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package viapi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通用分割 API返回值 -aliyun.viapi.imageseg.segment.commonimage - -识别输入图像中的视觉中心物体轮廓,与背景进行分离,返回分割后的前景物体图(4通道png透明图)。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) -*/ -type AliyunViapiImagesegSegmentCommonimageAPIResponse struct { - model.CommonResponse - AliyunViapiImagesegSegmentCommonimageResponse -} - -// 通用分割 成功返回结果 -type AliyunViapiImagesegSegmentCommonimageResponse struct { - XMLName xml.Name `xml:"aliyun_viapi_imageseg_segment_commonimage_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求ID - TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` - // 系统自动生成 - Data *AliyunViapiImagesegSegmentCommonimageData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/viapi/AliyunViapiImagesegSegmentcomodityAPIRequest.go b/model/viapi/AliyunViapiImagesegSegmentcomodityAPIRequest.go new file mode 100644 index 0000000000..439a677b80 --- /dev/null +++ b/model/viapi/AliyunViapiImagesegSegmentcomodityAPIRequest.go @@ -0,0 +1,52 @@ +package viapi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品分割 API请求 +aliyun.viapi.imageseg.segmentcomodity + +识别输入图像中的商品轮廓,与背景进行分离,返回分割后的前景商品图(4通道png透明图),适应单商品/多商品、复杂背景。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiImagesegSegmentcomodityAPIRequest struct { + model.Params + // 待检测图片链接 + _imageUrl string +} + +// 初始化AliyunViapiImagesegSegmentcomodityAPIRequest对象 +func NewAliyunViapiImagesegSegmentcomodityRequest() *AliyunViapiImagesegSegmentcomodityAPIRequest{ + return &AliyunViapiImagesegSegmentcomodityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunViapiImagesegSegmentcomodityAPIRequest) GetApiMethodName() string { + return "aliyun.viapi.imageseg.segmentcomodity" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunViapiImagesegSegmentcomodityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImageUrl Setter +// 待检测图片链接 +func (r *AliyunViapiImagesegSegmentcomodityAPIRequest) SetImageUrl(_imageUrl string) error { + r._imageUrl = _imageUrl + r.Set("image_url", _imageUrl) + return nil +} + +// ImageUrl Getter +func (r AliyunViapiImagesegSegmentcomodityAPIRequest) GetImageUrl() string { + return r._imageUrl +} diff --git a/model/viapi/AliyunViapiImagesegSegmentcomodityAPIResponse.go b/model/viapi/AliyunViapiImagesegSegmentcomodityAPIResponse.go new file mode 100644 index 0000000000..99f46802da --- /dev/null +++ b/model/viapi/AliyunViapiImagesegSegmentcomodityAPIResponse.go @@ -0,0 +1,29 @@ +package viapi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品分割 API返回值 +aliyun.viapi.imageseg.segmentcomodity + +识别输入图像中的商品轮廓,与背景进行分离,返回分割后的前景商品图(4通道png透明图),适应单商品/多商品、复杂背景。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiImagesegSegmentcomodityAPIResponse struct { + model.CommonResponse + AliyunViapiImagesegSegmentcomodityAPIResponseModel +} + +// 商品分割 成功返回结果 +type AliyunViapiImagesegSegmentcomodityAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_viapi_imageseg_segmentcomodity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求ID + TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` + // 系统自动生成 + Data *AliyunViapiImagesegSegmentcomodityData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/viapi/AliyunViapiImagesegSegmentcomodityResponse.go b/model/viapi/AliyunViapiImagesegSegmentcomodityResponse.go deleted file mode 100644 index 0cc90e7b95..0000000000 --- a/model/viapi/AliyunViapiImagesegSegmentcomodityResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package viapi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品分割 API返回值 -aliyun.viapi.imageseg.segmentcomodity - -识别输入图像中的商品轮廓,与背景进行分离,返回分割后的前景商品图(4通道png透明图),适应单商品/多商品、复杂背景。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) -*/ -type AliyunViapiImagesegSegmentcomodityAPIResponse struct { - model.CommonResponse - AliyunViapiImagesegSegmentcomodityResponse -} - -// 商品分割 成功返回结果 -type AliyunViapiImagesegSegmentcomodityResponse struct { - XMLName xml.Name `xml:"aliyun_viapi_imageseg_segmentcomodity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求ID - TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` - // 系统自动生成 - Data *AliyunViapiImagesegSegmentcomodityData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/viapi/AliyunViapiImagesegSegmenthdbodyAPIRequest.go b/model/viapi/AliyunViapiImagesegSegmenthdbodyAPIRequest.go new file mode 100644 index 0000000000..fd71200654 --- /dev/null +++ b/model/viapi/AliyunViapiImagesegSegmenthdbodyAPIRequest.go @@ -0,0 +1,52 @@ +package viapi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +高清人体分割 API请求 +aliyun.viapi.imageseg.segmenthdbody + +对输入图像中包含的人进行分割,输出结果透明图。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiImagesegSegmenthdbodyAPIRequest struct { + model.Params + // 待检测图片链接 + _imageUrl string +} + +// 初始化AliyunViapiImagesegSegmenthdbodyAPIRequest对象 +func NewAliyunViapiImagesegSegmenthdbodyRequest() *AliyunViapiImagesegSegmenthdbodyAPIRequest{ + return &AliyunViapiImagesegSegmenthdbodyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunViapiImagesegSegmenthdbodyAPIRequest) GetApiMethodName() string { + return "aliyun.viapi.imageseg.segmenthdbody" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunViapiImagesegSegmenthdbodyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImageUrl Setter +// 待检测图片链接 +func (r *AliyunViapiImagesegSegmenthdbodyAPIRequest) SetImageUrl(_imageUrl string) error { + r._imageUrl = _imageUrl + r.Set("image_url", _imageUrl) + return nil +} + +// ImageUrl Getter +func (r AliyunViapiImagesegSegmenthdbodyAPIRequest) GetImageUrl() string { + return r._imageUrl +} diff --git a/model/viapi/AliyunViapiImagesegSegmenthdbodyAPIResponse.go b/model/viapi/AliyunViapiImagesegSegmenthdbodyAPIResponse.go new file mode 100644 index 0000000000..e0d4b480d6 --- /dev/null +++ b/model/viapi/AliyunViapiImagesegSegmenthdbodyAPIResponse.go @@ -0,0 +1,29 @@ +package viapi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +高清人体分割 API返回值 +aliyun.viapi.imageseg.segmenthdbody + +对输入图像中包含的人进行分割,输出结果透明图。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiImagesegSegmenthdbodyAPIResponse struct { + model.CommonResponse + AliyunViapiImagesegSegmenthdbodyAPIResponseModel +} + +// 高清人体分割 成功返回结果 +type AliyunViapiImagesegSegmenthdbodyAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_viapi_imageseg_segmenthdbody_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求ID + TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` + // 系统自动生成 + Data *AliyunViapiImagesegSegmenthdbodyData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/viapi/AliyunViapiImagesegSegmenthdbodyResponse.go b/model/viapi/AliyunViapiImagesegSegmenthdbodyResponse.go deleted file mode 100644 index 74795ad7d4..0000000000 --- a/model/viapi/AliyunViapiImagesegSegmenthdbodyResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package viapi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -高清人体分割 API返回值 -aliyun.viapi.imageseg.segmenthdbody - -对输入图像中包含的人进行分割,输出结果透明图。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) -*/ -type AliyunViapiImagesegSegmenthdbodyAPIResponse struct { - model.CommonResponse - AliyunViapiImagesegSegmenthdbodyResponse -} - -// 高清人体分割 成功返回结果 -type AliyunViapiImagesegSegmenthdbodyResponse struct { - XMLName xml.Name `xml:"aliyun_viapi_imageseg_segmenthdbody_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求ID - TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` - // 系统自动生成 - Data *AliyunViapiImagesegSegmenthdbodyData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/viapi/AliyunViapiImagesegSegmentheadAPIRequest.go b/model/viapi/AliyunViapiImagesegSegmentheadAPIRequest.go new file mode 100644 index 0000000000..6416e7b42c --- /dev/null +++ b/model/viapi/AliyunViapiImagesegSegmentheadAPIRequest.go @@ -0,0 +1,52 @@ +package viapi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +头像分割 API请求 +aliyun.viapi.imageseg.segmenthead + +输入一张图片,对图中人头区域进行抠图解析,输出人头png透明图。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiImagesegSegmentheadAPIRequest struct { + model.Params + // 待检测图片链接 + _imageUrl string +} + +// 初始化AliyunViapiImagesegSegmentheadAPIRequest对象 +func NewAliyunViapiImagesegSegmentheadRequest() *AliyunViapiImagesegSegmentheadAPIRequest{ + return &AliyunViapiImagesegSegmentheadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunViapiImagesegSegmentheadAPIRequest) GetApiMethodName() string { + return "aliyun.viapi.imageseg.segmenthead" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunViapiImagesegSegmentheadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImageUrl Setter +// 待检测图片链接 +func (r *AliyunViapiImagesegSegmentheadAPIRequest) SetImageUrl(_imageUrl string) error { + r._imageUrl = _imageUrl + r.Set("image_url", _imageUrl) + return nil +} + +// ImageUrl Getter +func (r AliyunViapiImagesegSegmentheadAPIRequest) GetImageUrl() string { + return r._imageUrl +} diff --git a/model/viapi/AliyunViapiImagesegSegmentheadAPIResponse.go b/model/viapi/AliyunViapiImagesegSegmentheadAPIResponse.go new file mode 100644 index 0000000000..9b77a48616 --- /dev/null +++ b/model/viapi/AliyunViapiImagesegSegmentheadAPIResponse.go @@ -0,0 +1,29 @@ +package viapi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +头像分割 API返回值 +aliyun.viapi.imageseg.segmenthead + +输入一张图片,对图中人头区域进行抠图解析,输出人头png透明图。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiImagesegSegmentheadAPIResponse struct { + model.CommonResponse + AliyunViapiImagesegSegmentheadAPIResponseModel +} + +// 头像分割 成功返回结果 +type AliyunViapiImagesegSegmentheadAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_viapi_imageseg_segmenthead_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求ID + TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` + // 系统自动生成 + Data *AliyunViapiImagesegSegmentheadData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/viapi/AliyunViapiImagesegSegmentheadResponse.go b/model/viapi/AliyunViapiImagesegSegmentheadResponse.go deleted file mode 100644 index 3a0048a727..0000000000 --- a/model/viapi/AliyunViapiImagesegSegmentheadResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package viapi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -头像分割 API返回值 -aliyun.viapi.imageseg.segmenthead - -输入一张图片,对图中人头区域进行抠图解析,输出人头png透明图。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) -*/ -type AliyunViapiImagesegSegmentheadAPIResponse struct { - model.CommonResponse - AliyunViapiImagesegSegmentheadResponse -} - -// 头像分割 成功返回结果 -type AliyunViapiImagesegSegmentheadResponse struct { - XMLName xml.Name `xml:"aliyun_viapi_imageseg_segmenthead_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求ID - TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` - // 系统自动生成 - Data *AliyunViapiImagesegSegmentheadData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/viapi/AliyunViapiObjectdetDetectobjectAPIRequest.go b/model/viapi/AliyunViapiObjectdetDetectobjectAPIRequest.go new file mode 100644 index 0000000000..28ebe80b9f --- /dev/null +++ b/model/viapi/AliyunViapiObjectdetDetectobjectAPIRequest.go @@ -0,0 +1,53 @@ +package viapi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物体检测 API请求 +aliyun.viapi.objectdet.detectobject + +检测图像中的物体。90类物体: +(0:'human':人体, 1:'sneakers':胶底运动鞋, 2:'chair':椅子, 3:'hat':帽子, 4:'lamp':灯, 5:'cabinet/shelf':橱柜/ 架子, 6:'car':汽车, 7:'glasses':眼镜, 8:'picture/frame':照片/图画, 9:'street lights':街灯, 10:'helmet':头盔, 11:'pillow':枕头, 12:'glove':手套, 13:'potted plant':盆栽植物, 14:'flower':花, 15:'monitor':显示屏, 16:'plants pot/vase':花盆, 17:'boots':靴子, 18:'umbrella':伞, 19:'boat':小船, 20:'flag':旗帜, 21:'speaker':扬声器/话筒, 22:'trash bin/can':垃圾桶, 23:'backpack': 双肩背包, 24:'sofa':沙发, 25:'belt':腰带, 26:'carpet':地毯, 27:'coffee table':咖啡桌/茶几, 28:'tie': 领带, 29:'bed': 床, 30:'traffic light':红绿灯, 31:'necklace':项链, 32:'mirror':镜子, 33:'bicycle':自行车, 34:'watch':手表, 35:'horse':马, 36:'traffic sign':交通标志, 37:'stuffed animal':填充玩具动物, 38:'motorbike/motorcycle':摩托车, 39:'wild bird':鸟, 40:'laptop':笔记本电脑, 41:'cow':奶牛, 42:'clock':时钟, 43:'bus':公共汽车, 44:'nightstand':床头柜, 45:'sheep':绵羊, 46:'traffic cone':锥形交通路标, 47:'keyboard':键盘, 48:'hockey stick':曲棍球球棍, 49:'fan':电扇, 50:'dog':狗, 51:'blackboard/whiteboard':白板/黑板, 52:'mouse':鼠标, 53:'telephone':电话, 54:'airplane':飞机, 55:'skis':滑雪板, 56:'soccer':英式足球, 57:'combine with glove':棒球手套, 58:'train':火车, 59:'tent':帐篷, 60:'sailboat':帆船, 61:'kite':风筝, 62:'computer box':计算机主机机箱, 63:'elephant':大象, 64:'stroller':折叠式婴儿车, 65:'baseball bat':棒球棒, 66:'skateboard':溜冰板, 67:'surfboard':冲浪板, 68:'cat':猫, 69:'zebra':斑马, 70:'sports car':跑车, 71:'giraffe':长颈鹿, 72:'radiator':散热器, 73:'tennis racket':网球拍, 74:'skating and skiing shoes':溜冰鞋, 75:'baseball':棒球, 76:'american football':美式橄榄球, 77:'basketball':篮球, 78:'printer':打印机, 79:'fire hydrant':消防栓, 80:'projector':投影仪, 81:'fire extinguisher':灭火器, 82:'tennis ball':网球, 83:'frisbee':飞盘, 84:'fire truck':消防车, 85:'helicopter':直升飞机, 86:'carriage':四轮马车, 87:'bear':熊, 88:'globe':地球仪, 89:'volleyball':排球)。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiObjectdetDetectobjectAPIRequest struct { + model.Params + // 待检测图片链接 + _imageUrl string +} + +// 初始化AliyunViapiObjectdetDetectobjectAPIRequest对象 +func NewAliyunViapiObjectdetDetectobjectRequest() *AliyunViapiObjectdetDetectobjectAPIRequest{ + return &AliyunViapiObjectdetDetectobjectAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunViapiObjectdetDetectobjectAPIRequest) GetApiMethodName() string { + return "aliyun.viapi.objectdet.detectobject" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunViapiObjectdetDetectobjectAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImageUrl Setter +// 待检测图片链接 +func (r *AliyunViapiObjectdetDetectobjectAPIRequest) SetImageUrl(_imageUrl string) error { + r._imageUrl = _imageUrl + r.Set("image_url", _imageUrl) + return nil +} + +// ImageUrl Getter +func (r AliyunViapiObjectdetDetectobjectAPIRequest) GetImageUrl() string { + return r._imageUrl +} diff --git a/model/viapi/AliyunViapiObjectdetDetectobjectAPIResponse.go b/model/viapi/AliyunViapiObjectdetDetectobjectAPIResponse.go new file mode 100644 index 0000000000..28aefce457 --- /dev/null +++ b/model/viapi/AliyunViapiObjectdetDetectobjectAPIResponse.go @@ -0,0 +1,30 @@ +package viapi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物体检测 API返回值 +aliyun.viapi.objectdet.detectobject + +检测图像中的物体。90类物体: +(0:'human':人体, 1:'sneakers':胶底运动鞋, 2:'chair':椅子, 3:'hat':帽子, 4:'lamp':灯, 5:'cabinet/shelf':橱柜/ 架子, 6:'car':汽车, 7:'glasses':眼镜, 8:'picture/frame':照片/图画, 9:'street lights':街灯, 10:'helmet':头盔, 11:'pillow':枕头, 12:'glove':手套, 13:'potted plant':盆栽植物, 14:'flower':花, 15:'monitor':显示屏, 16:'plants pot/vase':花盆, 17:'boots':靴子, 18:'umbrella':伞, 19:'boat':小船, 20:'flag':旗帜, 21:'speaker':扬声器/话筒, 22:'trash bin/can':垃圾桶, 23:'backpack': 双肩背包, 24:'sofa':沙发, 25:'belt':腰带, 26:'carpet':地毯, 27:'coffee table':咖啡桌/茶几, 28:'tie': 领带, 29:'bed': 床, 30:'traffic light':红绿灯, 31:'necklace':项链, 32:'mirror':镜子, 33:'bicycle':自行车, 34:'watch':手表, 35:'horse':马, 36:'traffic sign':交通标志, 37:'stuffed animal':填充玩具动物, 38:'motorbike/motorcycle':摩托车, 39:'wild bird':鸟, 40:'laptop':笔记本电脑, 41:'cow':奶牛, 42:'clock':时钟, 43:'bus':公共汽车, 44:'nightstand':床头柜, 45:'sheep':绵羊, 46:'traffic cone':锥形交通路标, 47:'keyboard':键盘, 48:'hockey stick':曲棍球球棍, 49:'fan':电扇, 50:'dog':狗, 51:'blackboard/whiteboard':白板/黑板, 52:'mouse':鼠标, 53:'telephone':电话, 54:'airplane':飞机, 55:'skis':滑雪板, 56:'soccer':英式足球, 57:'combine with glove':棒球手套, 58:'train':火车, 59:'tent':帐篷, 60:'sailboat':帆船, 61:'kite':风筝, 62:'computer box':计算机主机机箱, 63:'elephant':大象, 64:'stroller':折叠式婴儿车, 65:'baseball bat':棒球棒, 66:'skateboard':溜冰板, 67:'surfboard':冲浪板, 68:'cat':猫, 69:'zebra':斑马, 70:'sports car':跑车, 71:'giraffe':长颈鹿, 72:'radiator':散热器, 73:'tennis racket':网球拍, 74:'skating and skiing shoes':溜冰鞋, 75:'baseball':棒球, 76:'american football':美式橄榄球, 77:'basketball':篮球, 78:'printer':打印机, 79:'fire hydrant':消防栓, 80:'projector':投影仪, 81:'fire extinguisher':灭火器, 82:'tennis ball':网球, 83:'frisbee':飞盘, 84:'fire truck':消防车, 85:'helicopter':直升飞机, 86:'carriage':四轮马车, 87:'bear':熊, 88:'globe':地球仪, 89:'volleyball':排球)。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiObjectdetDetectobjectAPIResponse struct { + model.CommonResponse + AliyunViapiObjectdetDetectobjectAPIResponseModel +} + +// 物体检测 成功返回结果 +type AliyunViapiObjectdetDetectobjectAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_viapi_objectdet_detectobject_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求ID + TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` + // 系统自动生成 + Data *AliyunViapiObjectdetDetectobjectData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/viapi/AliyunViapiObjectdetDetectobjectResponse.go b/model/viapi/AliyunViapiObjectdetDetectobjectResponse.go deleted file mode 100644 index 154b3ba548..0000000000 --- a/model/viapi/AliyunViapiObjectdetDetectobjectResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package viapi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物体检测 API返回值 -aliyun.viapi.objectdet.detectobject - -检测图像中的物体。90类物体: -(0:'human':人体, 1:'sneakers':胶底运动鞋, 2:'chair':椅子, 3:'hat':帽子, 4:'lamp':灯, 5:'cabinet/shelf':橱柜/ 架子, 6:'car':汽车, 7:'glasses':眼镜, 8:'picture/frame':照片/图画, 9:'street lights':街灯, 10:'helmet':头盔, 11:'pillow':枕头, 12:'glove':手套, 13:'potted plant':盆栽植物, 14:'flower':花, 15:'monitor':显示屏, 16:'plants pot/vase':花盆, 17:'boots':靴子, 18:'umbrella':伞, 19:'boat':小船, 20:'flag':旗帜, 21:'speaker':扬声器/话筒, 22:'trash bin/can':垃圾桶, 23:'backpack': 双肩背包, 24:'sofa':沙发, 25:'belt':腰带, 26:'carpet':地毯, 27:'coffee table':咖啡桌/茶几, 28:'tie': 领带, 29:'bed': 床, 30:'traffic light':红绿灯, 31:'necklace':项链, 32:'mirror':镜子, 33:'bicycle':自行车, 34:'watch':手表, 35:'horse':马, 36:'traffic sign':交通标志, 37:'stuffed animal':填充玩具动物, 38:'motorbike/motorcycle':摩托车, 39:'wild bird':鸟, 40:'laptop':笔记本电脑, 41:'cow':奶牛, 42:'clock':时钟, 43:'bus':公共汽车, 44:'nightstand':床头柜, 45:'sheep':绵羊, 46:'traffic cone':锥形交通路标, 47:'keyboard':键盘, 48:'hockey stick':曲棍球球棍, 49:'fan':电扇, 50:'dog':狗, 51:'blackboard/whiteboard':白板/黑板, 52:'mouse':鼠标, 53:'telephone':电话, 54:'airplane':飞机, 55:'skis':滑雪板, 56:'soccer':英式足球, 57:'combine with glove':棒球手套, 58:'train':火车, 59:'tent':帐篷, 60:'sailboat':帆船, 61:'kite':风筝, 62:'computer box':计算机主机机箱, 63:'elephant':大象, 64:'stroller':折叠式婴儿车, 65:'baseball bat':棒球棒, 66:'skateboard':溜冰板, 67:'surfboard':冲浪板, 68:'cat':猫, 69:'zebra':斑马, 70:'sports car':跑车, 71:'giraffe':长颈鹿, 72:'radiator':散热器, 73:'tennis racket':网球拍, 74:'skating and skiing shoes':溜冰鞋, 75:'baseball':棒球, 76:'american football':美式橄榄球, 77:'basketball':篮球, 78:'printer':打印机, 79:'fire hydrant':消防栓, 80:'projector':投影仪, 81:'fire extinguisher':灭火器, 82:'tennis ball':网球, 83:'frisbee':飞盘, 84:'fire truck':消防车, 85:'helicopter':直升飞机, 86:'carriage':四轮马车, 87:'bear':熊, 88:'globe':地球仪, 89:'volleyball':排球)。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) -*/ -type AliyunViapiObjectdetDetectobjectAPIResponse struct { - model.CommonResponse - AliyunViapiObjectdetDetectobjectResponse -} - -// 物体检测 成功返回结果 -type AliyunViapiObjectdetDetectobjectResponse struct { - XMLName xml.Name `xml:"aliyun_viapi_objectdet_detectobject_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求ID - TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` - // 系统自动生成 - Data *AliyunViapiObjectdetDetectobjectData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/viapi/AliyunViapiOcrCharacterAPIRequest.go b/model/viapi/AliyunViapiOcrCharacterAPIRequest.go new file mode 100644 index 0000000000..14ea7f0b35 --- /dev/null +++ b/model/viapi/AliyunViapiOcrCharacterAPIRequest.go @@ -0,0 +1,94 @@ +package viapi + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通用文字识别 API请求 +aliyun.viapi.ocr.character + +获取通用的文字信息。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiOcrCharacterAPIRequest struct { + model.Params + // 待检测图片链接 + _imageUrl string + // 图片类型, ,取范围[0:ImageURL, 1:ImageContent] + _imageType int64 + // 图片中文字的最小高度,单位像素 + _minHeight int64 + // 是否输出文字框的概率,取值范围[true:是, false:否] + _outputProbability bool +} + +// 初始化AliyunViapiOcrCharacterAPIRequest对象 +func NewAliyunViapiOcrCharacterRequest() *AliyunViapiOcrCharacterAPIRequest{ + return &AliyunViapiOcrCharacterAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunViapiOcrCharacterAPIRequest) GetApiMethodName() string { + return "aliyun.viapi.ocr.character" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunViapiOcrCharacterAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ImageUrl Setter +// 待检测图片链接 +func (r *AliyunViapiOcrCharacterAPIRequest) SetImageUrl(_imageUrl string) error { + r._imageUrl = _imageUrl + r.Set("image_url", _imageUrl) + return nil +} + +// ImageUrl Getter +func (r AliyunViapiOcrCharacterAPIRequest) GetImageUrl() string { + return r._imageUrl +} +// ImageType Setter +// 图片类型, ,取范围[0:ImageURL, 1:ImageContent] +func (r *AliyunViapiOcrCharacterAPIRequest) SetImageType(_imageType int64) error { + r._imageType = _imageType + r.Set("image_type", _imageType) + return nil +} + +// ImageType Getter +func (r AliyunViapiOcrCharacterAPIRequest) GetImageType() int64 { + return r._imageType +} +// MinHeight Setter +// 图片中文字的最小高度,单位像素 +func (r *AliyunViapiOcrCharacterAPIRequest) SetMinHeight(_minHeight int64) error { + r._minHeight = _minHeight + r.Set("min_height", _minHeight) + return nil +} + +// MinHeight Getter +func (r AliyunViapiOcrCharacterAPIRequest) GetMinHeight() int64 { + return r._minHeight +} +// OutputProbability Setter +// 是否输出文字框的概率,取值范围[true:是, false:否] +func (r *AliyunViapiOcrCharacterAPIRequest) SetOutputProbability(_outputProbability bool) error { + r._outputProbability = _outputProbability + r.Set("output_probability", _outputProbability) + return nil +} + +// OutputProbability Getter +func (r AliyunViapiOcrCharacterAPIRequest) GetOutputProbability() bool { + return r._outputProbability +} diff --git a/model/viapi/AliyunViapiOcrCharacterAPIResponse.go b/model/viapi/AliyunViapiOcrCharacterAPIResponse.go new file mode 100644 index 0000000000..2f74d70f45 --- /dev/null +++ b/model/viapi/AliyunViapiOcrCharacterAPIResponse.go @@ -0,0 +1,29 @@ +package viapi + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通用文字识别 API返回值 +aliyun.viapi.ocr.character + +获取通用的文字信息。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) +*/ +type AliyunViapiOcrCharacterAPIResponse struct { + model.CommonResponse + AliyunViapiOcrCharacterAPIResponseModel +} + +// 通用文字识别 成功返回结果 +type AliyunViapiOcrCharacterAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_viapi_ocr_character_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求ID + TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` + // 系统自动生成 + Data *AliyunViapiOcrCharacterData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/viapi/AliyunViapiOcrCharacterResponse.go b/model/viapi/AliyunViapiOcrCharacterResponse.go deleted file mode 100644 index 85ac7cd691..0000000000 --- a/model/viapi/AliyunViapiOcrCharacterResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package viapi - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通用文字识别 API返回值 -aliyun.viapi.ocr.character - -获取通用的文字信息。(参数图片/链接必须通过以下方式获取: https://help.aliyun.com/document_detail/155645.html ) -*/ -type AliyunViapiOcrCharacterAPIResponse struct { - model.CommonResponse - AliyunViapiOcrCharacterResponse -} - -// 通用文字识别 成功返回结果 -type AliyunViapiOcrCharacterResponse struct { - XMLName xml.Name `xml:"aliyun_viapi_ocr_character_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求ID - TaobaoRequestId string `json:"taobao_request_id,omitempty" xml:"taobao_request_id,omitempty"` - // 系统自动生成 - Data *AliyunViapiOcrCharacterData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/vms/CainiaoVmsServiceVehicleinfoUploadAPIRequest.go b/model/vms/CainiaoVmsServiceVehicleinfoUploadAPIRequest.go new file mode 100644 index 0000000000..f97df7a352 --- /dev/null +++ b/model/vms/CainiaoVmsServiceVehicleinfoUploadAPIRequest.go @@ -0,0 +1,108 @@ +package vms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新能源车--外部车辆信息回传 API请求 +cainiao.vms.service.vehicleinfo.upload + +新能源车--外部车辆信息回传 +*/ +type CainiaoVmsServiceVehicleinfoUploadAPIRequest struct { + model.Params + // 设备号 + _deviceId string + // 厂家标识 + _providerName string + // 数据源标识 + _dataSource string + // 协议版本标识 + _protocolVersion string + // 上传的信息 + _data string +} + +// 初始化CainiaoVmsServiceVehicleinfoUploadAPIRequest对象 +func NewCainiaoVmsServiceVehicleinfoUploadRequest() *CainiaoVmsServiceVehicleinfoUploadAPIRequest{ + return &CainiaoVmsServiceVehicleinfoUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoVmsServiceVehicleinfoUploadAPIRequest) GetApiMethodName() string { + return "cainiao.vms.service.vehicleinfo.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoVmsServiceVehicleinfoUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeviceId Setter +// 设备号 +func (r *CainiaoVmsServiceVehicleinfoUploadAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r CainiaoVmsServiceVehicleinfoUploadAPIRequest) GetDeviceId() string { + return r._deviceId +} +// ProviderName Setter +// 厂家标识 +func (r *CainiaoVmsServiceVehicleinfoUploadAPIRequest) SetProviderName(_providerName string) error { + r._providerName = _providerName + r.Set("provider_name", _providerName) + return nil +} + +// ProviderName Getter +func (r CainiaoVmsServiceVehicleinfoUploadAPIRequest) GetProviderName() string { + return r._providerName +} +// DataSource Setter +// 数据源标识 +func (r *CainiaoVmsServiceVehicleinfoUploadAPIRequest) SetDataSource(_dataSource string) error { + r._dataSource = _dataSource + r.Set("data_source", _dataSource) + return nil +} + +// DataSource Getter +func (r CainiaoVmsServiceVehicleinfoUploadAPIRequest) GetDataSource() string { + return r._dataSource +} +// ProtocolVersion Setter +// 协议版本标识 +func (r *CainiaoVmsServiceVehicleinfoUploadAPIRequest) SetProtocolVersion(_protocolVersion string) error { + r._protocolVersion = _protocolVersion + r.Set("protocol_version", _protocolVersion) + return nil +} + +// ProtocolVersion Getter +func (r CainiaoVmsServiceVehicleinfoUploadAPIRequest) GetProtocolVersion() string { + return r._protocolVersion +} +// Data Setter +// 上传的信息 +func (r *CainiaoVmsServiceVehicleinfoUploadAPIRequest) SetData(_data string) error { + r._data = _data + r.Set("data", _data) + return nil +} + +// Data Getter +func (r CainiaoVmsServiceVehicleinfoUploadAPIRequest) GetData() string { + return r._data +} diff --git a/model/vms/CainiaoVmsServiceVehicleinfoUploadAPIResponse.go b/model/vms/CainiaoVmsServiceVehicleinfoUploadAPIResponse.go new file mode 100644 index 0000000000..7bc18e6baa --- /dev/null +++ b/model/vms/CainiaoVmsServiceVehicleinfoUploadAPIResponse.go @@ -0,0 +1,27 @@ +package vms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新能源车--外部车辆信息回传 API返回值 +cainiao.vms.service.vehicleinfo.upload + +新能源车--外部车辆信息回传 +*/ +type CainiaoVmsServiceVehicleinfoUploadAPIResponse struct { + model.CommonResponse + CainiaoVmsServiceVehicleinfoUploadAPIResponseModel +} + +// 新能源车--外部车辆信息回传 成功返回结果 +type CainiaoVmsServiceVehicleinfoUploadAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_vms_service_vehicleinfo_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AppBaseResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/vms/CainiaoVmsServiceVehicleinfoUploadResponse.go b/model/vms/CainiaoVmsServiceVehicleinfoUploadResponse.go deleted file mode 100644 index 8c9f8b1904..0000000000 --- a/model/vms/CainiaoVmsServiceVehicleinfoUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package vms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新能源车--外部车辆信息回传 API返回值 -cainiao.vms.service.vehicleinfo.upload - -新能源车--外部车辆信息回传 -*/ -type CainiaoVmsServiceVehicleinfoUploadAPIResponse struct { - model.CommonResponse - CainiaoVmsServiceVehicleinfoUploadResponse -} - -// 新能源车--外部车辆信息回传 成功返回结果 -type CainiaoVmsServiceVehicleinfoUploadResponse struct { - XMLName xml.Name `xml:"cainiao_vms_service_vehicleinfo_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AppBaseResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wangwang/TaobaoQianniuKefuevalGetAPIRequest.go b/model/wangwang/TaobaoQianniuKefuevalGetAPIRequest.go new file mode 100644 index 0000000000..bc4f2a43ef --- /dev/null +++ b/model/wangwang/TaobaoQianniuKefuevalGetAPIRequest.go @@ -0,0 +1,80 @@ +package wangwang + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +客服评价详情接口 API请求 +taobao.qianniu.kefueval.get + +获取买家对客服的服务评价 +*/ +type TaobaoQianniuKefuevalGetAPIRequest struct { + model.Params + // 客服的nick,多个用逗号分隔,不要超过10个,带cntaobao的长nick + _queryIds string + // 开始时间,格式yyyyMMddHHmmss + _btime string + // 结束时间,格式yyyyMMddHHmmss + _etime string +} + +// 初始化TaobaoQianniuKefuevalGetAPIRequest对象 +func NewTaobaoQianniuKefuevalGetRequest() *TaobaoQianniuKefuevalGetAPIRequest{ + return &TaobaoQianniuKefuevalGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoQianniuKefuevalGetAPIRequest) GetApiMethodName() string { + return "taobao.qianniu.kefueval.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoQianniuKefuevalGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryIds Setter +// 客服的nick,多个用逗号分隔,不要超过10个,带cntaobao的长nick +func (r *TaobaoQianniuKefuevalGetAPIRequest) SetQueryIds(_queryIds string) error { + r._queryIds = _queryIds + r.Set("query_ids", _queryIds) + return nil +} + +// QueryIds Getter +func (r TaobaoQianniuKefuevalGetAPIRequest) GetQueryIds() string { + return r._queryIds +} +// Btime Setter +// 开始时间,格式yyyyMMddHHmmss +func (r *TaobaoQianniuKefuevalGetAPIRequest) SetBtime(_btime string) error { + r._btime = _btime + r.Set("btime", _btime) + return nil +} + +// Btime Getter +func (r TaobaoQianniuKefuevalGetAPIRequest) GetBtime() string { + return r._btime +} +// Etime Setter +// 结束时间,格式yyyyMMddHHmmss +func (r *TaobaoQianniuKefuevalGetAPIRequest) SetEtime(_etime string) error { + r._etime = _etime + r.Set("etime", _etime) + return nil +} + +// Etime Getter +func (r TaobaoQianniuKefuevalGetAPIRequest) GetEtime() string { + return r._etime +} diff --git a/model/wangwang/TaobaoQianniuKefuevalGetAPIResponse.go b/model/wangwang/TaobaoQianniuKefuevalGetAPIResponse.go new file mode 100644 index 0000000000..6f1e44dbae --- /dev/null +++ b/model/wangwang/TaobaoQianniuKefuevalGetAPIResponse.go @@ -0,0 +1,29 @@ +package wangwang + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +客服评价详情接口 API返回值 +taobao.qianniu.kefueval.get + +获取买家对客服的服务评价 +*/ +type TaobaoQianniuKefuevalGetAPIResponse struct { + model.CommonResponse + TaobaoQianniuKefuevalGetAPIResponseModel +} + +// 客服评价详情接口 成功返回结果 +type TaobaoQianniuKefuevalGetAPIResponseModel struct { + XMLName xml.Name `xml:"qianniu_kefueval_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 评价结果数 + ResultCount int64 `json:"result_count,omitempty" xml:"result_count,omitempty"` + // 评价明细 + StaffEvalDetails []EvalDetail `json:"staff_eval_details,omitempty" xml:"staff_eval_details>eval_detail,omitempty"` +} diff --git a/model/wangwang/TaobaoQianniuKefuevalGetResponse.go b/model/wangwang/TaobaoQianniuKefuevalGetResponse.go deleted file mode 100644 index 59c60c2c5e..0000000000 --- a/model/wangwang/TaobaoQianniuKefuevalGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wangwang - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -客服评价详情接口 API返回值 -taobao.qianniu.kefueval.get - -获取买家对客服的服务评价 -*/ -type TaobaoQianniuKefuevalGetAPIResponse struct { - model.CommonResponse - TaobaoQianniuKefuevalGetResponse -} - -// 客服评价详情接口 成功返回结果 -type TaobaoQianniuKefuevalGetResponse struct { - XMLName xml.Name `xml:"qianniu_kefueval_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 评价结果数 - ResultCount int64 `json:"result_count,omitempty" xml:"result_count,omitempty"` - // 评价明细 - StaffEvalDetails []EvalDetail `json:"staff_eval_details,omitempty" xml:"staff_eval_details>eval_detail,omitempty"` -} diff --git a/model/wangwang/TaobaoWangwangAbstractAddwordAPIRequest.go b/model/wangwang/TaobaoWangwangAbstractAddwordAPIRequest.go new file mode 100644 index 0000000000..f502579719 --- /dev/null +++ b/model/wangwang/TaobaoWangwangAbstractAddwordAPIRequest.go @@ -0,0 +1,66 @@ +package wangwang + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +增加关键词 API请求 +taobao.wangwang.abstract.addword + +增加关键词,只支持json返回 +*/ +type TaobaoWangwangAbstractAddwordAPIRequest struct { + model.Params + // 关键词,长度大于0 + _word string + // 传入参数的字符集 + _charset string +} + +// 初始化TaobaoWangwangAbstractAddwordAPIRequest对象 +func NewTaobaoWangwangAbstractAddwordRequest() *TaobaoWangwangAbstractAddwordAPIRequest{ + return &TaobaoWangwangAbstractAddwordAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWangwangAbstractAddwordAPIRequest) GetApiMethodName() string { + return "taobao.wangwang.abstract.addword" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWangwangAbstractAddwordAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Word Setter +// 关键词,长度大于0 +func (r *TaobaoWangwangAbstractAddwordAPIRequest) SetWord(_word string) error { + r._word = _word + r.Set("word", _word) + return nil +} + +// Word Getter +func (r TaobaoWangwangAbstractAddwordAPIRequest) GetWord() string { + return r._word +} +// Charset Setter +// 传入参数的字符集 +func (r *TaobaoWangwangAbstractAddwordAPIRequest) SetCharset(_charset string) error { + r._charset = _charset + r.Set("charset", _charset) + return nil +} + +// Charset Getter +func (r TaobaoWangwangAbstractAddwordAPIRequest) GetCharset() string { + return r._charset +} diff --git a/model/wangwang/TaobaoWangwangAbstractAddwordAPIResponse.go b/model/wangwang/TaobaoWangwangAbstractAddwordAPIResponse.go new file mode 100644 index 0000000000..37a52f6acc --- /dev/null +++ b/model/wangwang/TaobaoWangwangAbstractAddwordAPIResponse.go @@ -0,0 +1,29 @@ +package wangwang + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +增加关键词 API返回值 +taobao.wangwang.abstract.addword + +增加关键词,只支持json返回 +*/ +type TaobaoWangwangAbstractAddwordAPIResponse struct { + model.CommonResponse + TaobaoWangwangAbstractAddwordAPIResponseModel +} + +// 增加关键词 成功返回结果 +type TaobaoWangwangAbstractAddwordAPIResponseModel struct { + XMLName xml.Name `xml:"wangwang_abstract_addword_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 0或-1,表示错误或正确,错误时有错误信息 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 例如单词长度太长等,当ret_code=-1时才有这项 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/wangwang/TaobaoWangwangAbstractAddwordResponse.go b/model/wangwang/TaobaoWangwangAbstractAddwordResponse.go deleted file mode 100644 index 856fd8ce5b..0000000000 --- a/model/wangwang/TaobaoWangwangAbstractAddwordResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wangwang - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -增加关键词 API返回值 -taobao.wangwang.abstract.addword - -增加关键词,只支持json返回 -*/ -type TaobaoWangwangAbstractAddwordAPIResponse struct { - model.CommonResponse - TaobaoWangwangAbstractAddwordResponse -} - -// 增加关键词 成功返回结果 -type TaobaoWangwangAbstractAddwordResponse struct { - XMLName xml.Name `xml:"wangwang_abstract_addword_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 0或-1,表示错误或正确,错误时有错误信息 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 例如单词长度太长等,当ret_code=-1时才有这项 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/wangwang/TaobaoWangwangAbstractDeletewordAPIRequest.go b/model/wangwang/TaobaoWangwangAbstractDeletewordAPIRequest.go new file mode 100644 index 0000000000..a5f3bee79a --- /dev/null +++ b/model/wangwang/TaobaoWangwangAbstractDeletewordAPIRequest.go @@ -0,0 +1,66 @@ +package wangwang + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除关键词 API请求 +taobao.wangwang.abstract.deleteword + +删除关键词,只支持json返回 +*/ +type TaobaoWangwangAbstractDeletewordAPIRequest struct { + model.Params + // 关键词,长度大于0 + _word string + // 传入参数的字符集 + _charset string +} + +// 初始化TaobaoWangwangAbstractDeletewordAPIRequest对象 +func NewTaobaoWangwangAbstractDeletewordRequest() *TaobaoWangwangAbstractDeletewordAPIRequest{ + return &TaobaoWangwangAbstractDeletewordAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWangwangAbstractDeletewordAPIRequest) GetApiMethodName() string { + return "taobao.wangwang.abstract.deleteword" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWangwangAbstractDeletewordAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Word Setter +// 关键词,长度大于0 +func (r *TaobaoWangwangAbstractDeletewordAPIRequest) SetWord(_word string) error { + r._word = _word + r.Set("word", _word) + return nil +} + +// Word Getter +func (r TaobaoWangwangAbstractDeletewordAPIRequest) GetWord() string { + return r._word +} +// Charset Setter +// 传入参数的字符集 +func (r *TaobaoWangwangAbstractDeletewordAPIRequest) SetCharset(_charset string) error { + r._charset = _charset + r.Set("charset", _charset) + return nil +} + +// Charset Getter +func (r TaobaoWangwangAbstractDeletewordAPIRequest) GetCharset() string { + return r._charset +} diff --git a/model/wangwang/TaobaoWangwangAbstractDeletewordAPIResponse.go b/model/wangwang/TaobaoWangwangAbstractDeletewordAPIResponse.go new file mode 100644 index 0000000000..d43936ac86 --- /dev/null +++ b/model/wangwang/TaobaoWangwangAbstractDeletewordAPIResponse.go @@ -0,0 +1,29 @@ +package wangwang + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除关键词 API返回值 +taobao.wangwang.abstract.deleteword + +删除关键词,只支持json返回 +*/ +type TaobaoWangwangAbstractDeletewordAPIResponse struct { + model.CommonResponse + TaobaoWangwangAbstractDeletewordAPIResponseModel +} + +// 删除关键词 成功返回结果 +type TaobaoWangwangAbstractDeletewordAPIResponseModel struct { + XMLName xml.Name `xml:"wangwang_abstract_deleteword_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 0或-1,表示错误或正确,错误时有错误信息 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 例如单词长度太长等 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/wangwang/TaobaoWangwangAbstractDeletewordResponse.go b/model/wangwang/TaobaoWangwangAbstractDeletewordResponse.go deleted file mode 100644 index 48c66460ed..0000000000 --- a/model/wangwang/TaobaoWangwangAbstractDeletewordResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wangwang - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除关键词 API返回值 -taobao.wangwang.abstract.deleteword - -删除关键词,只支持json返回 -*/ -type TaobaoWangwangAbstractDeletewordAPIResponse struct { - model.CommonResponse - TaobaoWangwangAbstractDeletewordResponse -} - -// 删除关键词 成功返回结果 -type TaobaoWangwangAbstractDeletewordResponse struct { - XMLName xml.Name `xml:"wangwang_abstract_deleteword_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 0或-1,表示错误或正确,错误时有错误信息 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 例如单词长度太长等 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/wangwang/TaobaoWangwangAbstractGetwordlistAPIRequest.go b/model/wangwang/TaobaoWangwangAbstractGetwordlistAPIRequest.go new file mode 100644 index 0000000000..5abf237919 --- /dev/null +++ b/model/wangwang/TaobaoWangwangAbstractGetwordlistAPIRequest.go @@ -0,0 +1,52 @@ +package wangwang + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取关键词列表 API请求 +taobao.wangwang.abstract.getwordlist + +获取关键词列表,只支持json返回 +*/ +type TaobaoWangwangAbstractGetwordlistAPIRequest struct { + model.Params + // 传入参数的字符集 + _charset string +} + +// 初始化TaobaoWangwangAbstractGetwordlistAPIRequest对象 +func NewTaobaoWangwangAbstractGetwordlistRequest() *TaobaoWangwangAbstractGetwordlistAPIRequest{ + return &TaobaoWangwangAbstractGetwordlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWangwangAbstractGetwordlistAPIRequest) GetApiMethodName() string { + return "taobao.wangwang.abstract.getwordlist" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWangwangAbstractGetwordlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Charset Setter +// 传入参数的字符集 +func (r *TaobaoWangwangAbstractGetwordlistAPIRequest) SetCharset(_charset string) error { + r._charset = _charset + r.Set("charset", _charset) + return nil +} + +// Charset Getter +func (r TaobaoWangwangAbstractGetwordlistAPIRequest) GetCharset() string { + return r._charset +} diff --git a/model/wangwang/TaobaoWangwangAbstractGetwordlistAPIResponse.go b/model/wangwang/TaobaoWangwangAbstractGetwordlistAPIResponse.go new file mode 100644 index 0000000000..f1f2f5c2ac --- /dev/null +++ b/model/wangwang/TaobaoWangwangAbstractGetwordlistAPIResponse.go @@ -0,0 +1,31 @@ +package wangwang + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取关键词列表 API返回值 +taobao.wangwang.abstract.getwordlist + +获取关键词列表,只支持json返回 +*/ +type TaobaoWangwangAbstractGetwordlistAPIResponse struct { + model.CommonResponse + TaobaoWangwangAbstractGetwordlistAPIResponseModel +} + +// 获取关键词列表 成功返回结果 +type TaobaoWangwangAbstractGetwordlistAPIResponseModel struct { + XMLName xml.Name `xml:"wangwang_abstract_getwordlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 0或-1,表示错误或正确,错误时有错误信息 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 例如单词长度太长等,ret_code=-1才有 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 关键词列表,ret_code=0才有 + WordLists []WordList `json:"word_lists,omitempty" xml:"word_lists>word_list,omitempty"` +} diff --git a/model/wangwang/TaobaoWangwangAbstractGetwordlistResponse.go b/model/wangwang/TaobaoWangwangAbstractGetwordlistResponse.go deleted file mode 100644 index d9a35df87c..0000000000 --- a/model/wangwang/TaobaoWangwangAbstractGetwordlistResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package wangwang - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取关键词列表 API返回值 -taobao.wangwang.abstract.getwordlist - -获取关键词列表,只支持json返回 -*/ -type TaobaoWangwangAbstractGetwordlistAPIResponse struct { - model.CommonResponse - TaobaoWangwangAbstractGetwordlistResponse -} - -// 获取关键词列表 成功返回结果 -type TaobaoWangwangAbstractGetwordlistResponse struct { - XMLName xml.Name `xml:"wangwang_abstract_getwordlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 0或-1,表示错误或正确,错误时有错误信息 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 例如单词长度太长等,ret_code=-1才有 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 关键词列表,ret_code=0才有 - WordLists []WordList `json:"word_lists,omitempty" xml:"word_lists>word_list,omitempty"` -} diff --git a/model/wangwang/TaobaoWangwangAbstractInitializeAPIRequest.go b/model/wangwang/TaobaoWangwangAbstractInitializeAPIRequest.go new file mode 100644 index 0000000000..0d7e754d46 --- /dev/null +++ b/model/wangwang/TaobaoWangwangAbstractInitializeAPIRequest.go @@ -0,0 +1,52 @@ +package wangwang + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +模糊查询服务初始化 API请求 +taobao.wangwang.abstract.initialize + +模糊查询服务初始化,只支持json返回 +*/ +type TaobaoWangwangAbstractInitializeAPIRequest struct { + model.Params + // 传入参数的字符集 + _charset string +} + +// 初始化TaobaoWangwangAbstractInitializeAPIRequest对象 +func NewTaobaoWangwangAbstractInitializeRequest() *TaobaoWangwangAbstractInitializeAPIRequest{ + return &TaobaoWangwangAbstractInitializeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWangwangAbstractInitializeAPIRequest) GetApiMethodName() string { + return "taobao.wangwang.abstract.initialize" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWangwangAbstractInitializeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Charset Setter +// 传入参数的字符集 +func (r *TaobaoWangwangAbstractInitializeAPIRequest) SetCharset(_charset string) error { + r._charset = _charset + r.Set("charset", _charset) + return nil +} + +// Charset Getter +func (r TaobaoWangwangAbstractInitializeAPIRequest) GetCharset() string { + return r._charset +} diff --git a/model/wangwang/TaobaoWangwangAbstractInitializeAPIResponse.go b/model/wangwang/TaobaoWangwangAbstractInitializeAPIResponse.go new file mode 100644 index 0000000000..584cf2fd9c --- /dev/null +++ b/model/wangwang/TaobaoWangwangAbstractInitializeAPIResponse.go @@ -0,0 +1,29 @@ +package wangwang + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +模糊查询服务初始化 API返回值 +taobao.wangwang.abstract.initialize + +模糊查询服务初始化,只支持json返回 +*/ +type TaobaoWangwangAbstractInitializeAPIResponse struct { + model.CommonResponse + TaobaoWangwangAbstractInitializeAPIResponseModel +} + +// 模糊查询服务初始化 成功返回结果 +type TaobaoWangwangAbstractInitializeAPIResponseModel struct { + XMLName xml.Name `xml:"wangwang_abstract_initialize_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 0或-1表示成功或失败 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 当ret_code=-1时这个变量才有 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` +} diff --git a/model/wangwang/TaobaoWangwangAbstractInitializeResponse.go b/model/wangwang/TaobaoWangwangAbstractInitializeResponse.go deleted file mode 100644 index 021484c827..0000000000 --- a/model/wangwang/TaobaoWangwangAbstractInitializeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wangwang - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -模糊查询服务初始化 API返回值 -taobao.wangwang.abstract.initialize - -模糊查询服务初始化,只支持json返回 -*/ -type TaobaoWangwangAbstractInitializeAPIResponse struct { - model.CommonResponse - TaobaoWangwangAbstractInitializeResponse -} - -// 模糊查询服务初始化 成功返回结果 -type TaobaoWangwangAbstractInitializeResponse struct { - XMLName xml.Name `xml:"wangwang_abstract_initialize_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 0或-1表示成功或失败 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 当ret_code=-1时这个变量才有 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` -} diff --git a/model/wangwang/TaobaoWangwangAbstractLogqueryAPIRequest.go b/model/wangwang/TaobaoWangwangAbstractLogqueryAPIRequest.go new file mode 100644 index 0000000000..04610d37aa --- /dev/null +++ b/model/wangwang/TaobaoWangwangAbstractLogqueryAPIRequest.go @@ -0,0 +1,136 @@ +package wangwang + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +模糊聊天记录查询 API请求 +taobao.wangwang.abstract.logquery + +模糊聊天记录查询 +*/ +type TaobaoWangwangAbstractLogqueryAPIRequest struct { + model.Params + // 买家id,有cntaobao前缀 + _toId string + // 卖家id,有cntaobao前缀 + _fromId string + // 获取记录条数,默认值是1000 + _count int64 + // 设置了这个值,那么聊天记录就从这个点开始查询 + _nextKey string + // 传入参数的字符集 + _charset string + // utc + _startDate int64 + // utc + _endDate int64 +} + +// 初始化TaobaoWangwangAbstractLogqueryAPIRequest对象 +func NewTaobaoWangwangAbstractLogqueryRequest() *TaobaoWangwangAbstractLogqueryAPIRequest{ + return &TaobaoWangwangAbstractLogqueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWangwangAbstractLogqueryAPIRequest) GetApiMethodName() string { + return "taobao.wangwang.abstract.logquery" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWangwangAbstractLogqueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ToId Setter +// 买家id,有cntaobao前缀 +func (r *TaobaoWangwangAbstractLogqueryAPIRequest) SetToId(_toId string) error { + r._toId = _toId + r.Set("to_id", _toId) + return nil +} + +// ToId Getter +func (r TaobaoWangwangAbstractLogqueryAPIRequest) GetToId() string { + return r._toId +} +// FromId Setter +// 卖家id,有cntaobao前缀 +func (r *TaobaoWangwangAbstractLogqueryAPIRequest) SetFromId(_fromId string) error { + r._fromId = _fromId + r.Set("from_id", _fromId) + return nil +} + +// FromId Getter +func (r TaobaoWangwangAbstractLogqueryAPIRequest) GetFromId() string { + return r._fromId +} +// Count Setter +// 获取记录条数,默认值是1000 +func (r *TaobaoWangwangAbstractLogqueryAPIRequest) SetCount(_count int64) error { + r._count = _count + r.Set("count", _count) + return nil +} + +// Count Getter +func (r TaobaoWangwangAbstractLogqueryAPIRequest) GetCount() int64 { + return r._count +} +// NextKey Setter +// 设置了这个值,那么聊天记录就从这个点开始查询 +func (r *TaobaoWangwangAbstractLogqueryAPIRequest) SetNextKey(_nextKey string) error { + r._nextKey = _nextKey + r.Set("next_key", _nextKey) + return nil +} + +// NextKey Getter +func (r TaobaoWangwangAbstractLogqueryAPIRequest) GetNextKey() string { + return r._nextKey +} +// Charset Setter +// 传入参数的字符集 +func (r *TaobaoWangwangAbstractLogqueryAPIRequest) SetCharset(_charset string) error { + r._charset = _charset + r.Set("charset", _charset) + return nil +} + +// Charset Getter +func (r TaobaoWangwangAbstractLogqueryAPIRequest) GetCharset() string { + return r._charset +} +// StartDate Setter +// utc +func (r *TaobaoWangwangAbstractLogqueryAPIRequest) SetStartDate(_startDate int64) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoWangwangAbstractLogqueryAPIRequest) GetStartDate() int64 { + return r._startDate +} +// EndDate Setter +// utc +func (r *TaobaoWangwangAbstractLogqueryAPIRequest) SetEndDate(_endDate int64) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoWangwangAbstractLogqueryAPIRequest) GetEndDate() int64 { + return r._endDate +} diff --git a/model/wangwang/TaobaoWangwangAbstractLogqueryAPIResponse.go b/model/wangwang/TaobaoWangwangAbstractLogqueryAPIResponse.go new file mode 100644 index 0000000000..5313fef0d4 --- /dev/null +++ b/model/wangwang/TaobaoWangwangAbstractLogqueryAPIResponse.go @@ -0,0 +1,43 @@ +package wangwang + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +模糊聊天记录查询 API返回值 +taobao.wangwang.abstract.logquery + +模糊聊天记录查询 +*/ +type TaobaoWangwangAbstractLogqueryAPIResponse struct { + model.CommonResponse + TaobaoWangwangAbstractLogqueryAPIResponseModel +} + +// 模糊聊天记录查询 成功返回结果 +type TaobaoWangwangAbstractLogqueryAPIResponseModel struct { + XMLName xml.Name `xml:"wangwang_abstract_logquery_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 0或-1,表示错误或正确,错误时有错误信息.
为-1时就只有error_msg字段是有效的。 + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 例如单词长度太长等。
当ret_code不为0时这个值存在。 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 卖家id + FromId string `json:"from_id,omitempty" xml:"from_id,omitempty"` + // 买家id + ToId string `json:"to_id,omitempty" xml:"to_id,omitempty"` + // 当direction为1时有效,url列表 + UrlLists []UrlList `json:"url_lists,omitempty" xml:"url_lists>url_list,omitempty"` + // 当direction为1时有效,关键词统计列表 + WordCountLists []WordCountList `json:"word_count_lists,omitempty" xml:"word_count_lists>word_count_list,omitempty"` + // 0或1
其他返回时,是由于用户名等参数设置有误等引起的远端服务错误 + IsSliced int64 `json:"is_sliced,omitempty" xml:"is_sliced,omitempty"` + // 当is_sliced为1时有效 + NextKey string `json:"next_key,omitempty" xml:"next_key,omitempty"` + // 消息列表 + MsgLists []MsgList `json:"msg_lists,omitempty" xml:"msg_lists>msg_list,omitempty"` +} diff --git a/model/wangwang/TaobaoWangwangAbstractLogqueryResponse.go b/model/wangwang/TaobaoWangwangAbstractLogqueryResponse.go deleted file mode 100644 index 3ed31ca13b..0000000000 --- a/model/wangwang/TaobaoWangwangAbstractLogqueryResponse.go +++ /dev/null @@ -1,43 +0,0 @@ -package wangwang - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -模糊聊天记录查询 API返回值 -taobao.wangwang.abstract.logquery - -模糊聊天记录查询 -*/ -type TaobaoWangwangAbstractLogqueryAPIResponse struct { - model.CommonResponse - TaobaoWangwangAbstractLogqueryResponse -} - -// 模糊聊天记录查询 成功返回结果 -type TaobaoWangwangAbstractLogqueryResponse struct { - XMLName xml.Name `xml:"wangwang_abstract_logquery_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 0或-1,表示错误或正确,错误时有错误信息.
为-1时就只有error_msg字段是有效的。 - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 例如单词长度太长等。
当ret_code不为0时这个值存在。 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 卖家id - FromId string `json:"from_id,omitempty" xml:"from_id,omitempty"` - // 买家id - ToId string `json:"to_id,omitempty" xml:"to_id,omitempty"` - // 当direction为1时有效,url列表 - UrlLists []UrlList `json:"url_lists,omitempty" xml:"url_lists>url_list,omitempty"` - // 当direction为1时有效,关键词统计列表 - WordCountLists []WordCountList `json:"word_count_lists,omitempty" xml:"word_count_lists>word_count_list,omitempty"` - // 0或1
其他返回时,是由于用户名等参数设置有误等引起的远端服务错误 - IsSliced int64 `json:"is_sliced,omitempty" xml:"is_sliced,omitempty"` - // 当is_sliced为1时有效 - NextKey string `json:"next_key,omitempty" xml:"next_key,omitempty"` - // 消息列表 - MsgLists []MsgList `json:"msg_lists,omitempty" xml:"msg_lists>msg_list,omitempty"` -} diff --git a/model/wangwang/TaobaoWangwangEserviceChatrelationGetAPIRequest.go b/model/wangwang/TaobaoWangwangEserviceChatrelationGetAPIRequest.go new file mode 100644 index 0000000000..c9454e55d2 --- /dev/null +++ b/model/wangwang/TaobaoWangwangEserviceChatrelationGetAPIRequest.go @@ -0,0 +1,55 @@ +package wangwang + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +聊天关系获取接口 API请求 +taobao.wangwang.eservice.chatrelation.get + +获取指定时间区间内的聊天关系(查询账号,和谁,在哪天说过话)。如: +A 和 B 在2016-09-01 和 2016-09-02 都说过话。以A为查询账号,则该接口将返回: +2016-09-01, B +2016-09-02, B +*/ +type TaobaoWangwangEserviceChatrelationGetAPIRequest struct { + model.Params + // 请求参数 + _chatRelationRequest *ChatRelationRequest +} + +// 初始化TaobaoWangwangEserviceChatrelationGetAPIRequest对象 +func NewTaobaoWangwangEserviceChatrelationGetRequest() *TaobaoWangwangEserviceChatrelationGetAPIRequest{ + return &TaobaoWangwangEserviceChatrelationGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWangwangEserviceChatrelationGetAPIRequest) GetApiMethodName() string { + return "taobao.wangwang.eservice.chatrelation.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWangwangEserviceChatrelationGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChatRelationRequest Setter +// 请求参数 +func (r *TaobaoWangwangEserviceChatrelationGetAPIRequest) SetChatRelationRequest(_chatRelationRequest *ChatRelationRequest) error { + r._chatRelationRequest = _chatRelationRequest + r.Set("chat_relation_request", _chatRelationRequest) + return nil +} + +// ChatRelationRequest Getter +func (r TaobaoWangwangEserviceChatrelationGetAPIRequest) GetChatRelationRequest() *ChatRelationRequest { + return r._chatRelationRequest +} diff --git a/model/wangwang/TaobaoWangwangEserviceChatrelationGetAPIResponse.go b/model/wangwang/TaobaoWangwangEserviceChatrelationGetAPIResponse.go new file mode 100644 index 0000000000..b7bf6a546e --- /dev/null +++ b/model/wangwang/TaobaoWangwangEserviceChatrelationGetAPIResponse.go @@ -0,0 +1,30 @@ +package wangwang + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +聊天关系获取接口 API返回值 +taobao.wangwang.eservice.chatrelation.get + +获取指定时间区间内的聊天关系(查询账号,和谁,在哪天说过话)。如: +A 和 B 在2016-09-01 和 2016-09-02 都说过话。以A为查询账号,则该接口将返回: +2016-09-01, B +2016-09-02, B +*/ +type TaobaoWangwangEserviceChatrelationGetAPIResponse struct { + model.CommonResponse + TaobaoWangwangEserviceChatrelationGetAPIResponseModel +} + +// 聊天关系获取接口 成功返回结果 +type TaobaoWangwangEserviceChatrelationGetAPIResponseModel struct { + XMLName xml.Name `xml:"wangwang_eservice_chatrelation_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ChatRelationResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wangwang/TaobaoWangwangEserviceChatrelationGetResponse.go b/model/wangwang/TaobaoWangwangEserviceChatrelationGetResponse.go deleted file mode 100644 index e6c53f826f..0000000000 --- a/model/wangwang/TaobaoWangwangEserviceChatrelationGetResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package wangwang - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -聊天关系获取接口 API返回值 -taobao.wangwang.eservice.chatrelation.get - -获取指定时间区间内的聊天关系(查询账号,和谁,在哪天说过话)。如: -A 和 B 在2016-09-01 和 2016-09-02 都说过话。以A为查询账号,则该接口将返回: -2016-09-01, B -2016-09-02, B -*/ -type TaobaoWangwangEserviceChatrelationGetAPIResponse struct { - model.CommonResponse - TaobaoWangwangEserviceChatrelationGetResponse -} - -// 聊天关系获取接口 成功返回结果 -type TaobaoWangwangEserviceChatrelationGetResponse struct { - XMLName xml.Name `xml:"wangwang_eservice_chatrelation_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ChatRelationResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/waybill/CainiaoCloudprintClientinfoPutAPIRequest.go b/model/waybill/CainiaoCloudprintClientinfoPutAPIRequest.go new file mode 100644 index 0000000000..d5208470c4 --- /dev/null +++ b/model/waybill/CainiaoCloudprintClientinfoPutAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +云打印客户端监控信息收集 API请求 +cainiao.cloudprint.clientinfo.put + +云打印客户端监控信息收集 +*/ +type CainiaoCloudprintClientinfoPutAPIRequest struct { + model.Params + // 客户端上传json数据 + _jsonData string +} + +// 初始化CainiaoCloudprintClientinfoPutAPIRequest对象 +func NewCainiaoCloudprintClientinfoPutRequest() *CainiaoCloudprintClientinfoPutAPIRequest{ + return &CainiaoCloudprintClientinfoPutAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCloudprintClientinfoPutAPIRequest) GetApiMethodName() string { + return "cainiao.cloudprint.clientinfo.put" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCloudprintClientinfoPutAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// JsonData Setter +// 客户端上传json数据 +func (r *CainiaoCloudprintClientinfoPutAPIRequest) SetJsonData(_jsonData string) error { + r._jsonData = _jsonData + r.Set("json_data", _jsonData) + return nil +} + +// JsonData Getter +func (r CainiaoCloudprintClientinfoPutAPIRequest) GetJsonData() string { + return r._jsonData +} diff --git a/model/waybill/CainiaoCloudprintClientinfoPutAPIResponse.go b/model/waybill/CainiaoCloudprintClientinfoPutAPIResponse.go new file mode 100644 index 0000000000..16f03dabf5 --- /dev/null +++ b/model/waybill/CainiaoCloudprintClientinfoPutAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +云打印客户端监控信息收集 API返回值 +cainiao.cloudprint.clientinfo.put + +云打印客户端监控信息收集 +*/ +type CainiaoCloudprintClientinfoPutAPIResponse struct { + model.CommonResponse + CainiaoCloudprintClientinfoPutAPIResponseModel +} + +// 云打印客户端监控信息收集 成功返回结果 +type CainiaoCloudprintClientinfoPutAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cloudprint_clientinfo_put_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CloudPrintBaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/waybill/CainiaoCloudprintClientinfoPutResponse.go b/model/waybill/CainiaoCloudprintClientinfoPutResponse.go deleted file mode 100644 index c0ee1ad2b7..0000000000 --- a/model/waybill/CainiaoCloudprintClientinfoPutResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -云打印客户端监控信息收集 API返回值 -cainiao.cloudprint.clientinfo.put - -云打印客户端监控信息收集 -*/ -type CainiaoCloudprintClientinfoPutAPIResponse struct { - model.CommonResponse - CainiaoCloudprintClientinfoPutResponse -} - -// 云打印客户端监控信息收集 成功返回结果 -type CainiaoCloudprintClientinfoPutResponse struct { - XMLName xml.Name `xml:"cainiao_cloudprint_clientinfo_put_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CloudPrintBaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/waybill/CainiaoCloudprintCmdprintRenderAPIRequest.go b/model/waybill/CainiaoCloudprintCmdprintRenderAPIRequest.go new file mode 100644 index 0000000000..3b410ae9d5 --- /dev/null +++ b/model/waybill/CainiaoCloudprintCmdprintRenderAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +生成打印机渲染命令(通过打印机命令打印) API请求 +cainiao.cloudprint.cmdprint.render + +isv 进行无线打印,需要将渲染数据传给打印机,通过生成打印机命令的方式能够最大限度的减少移动设备和打印机之间通信数据量。 +*/ +type CainiaoCloudprintCmdprintRenderAPIRequest struct { + model.Params + // 参数对象 + _params *CmdRenderParams +} + +// 初始化CainiaoCloudprintCmdprintRenderAPIRequest对象 +func NewCainiaoCloudprintCmdprintRenderRequest() *CainiaoCloudprintCmdprintRenderAPIRequest{ + return &CainiaoCloudprintCmdprintRenderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCloudprintCmdprintRenderAPIRequest) GetApiMethodName() string { + return "cainiao.cloudprint.cmdprint.render" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCloudprintCmdprintRenderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Params Setter +// 参数对象 +func (r *CainiaoCloudprintCmdprintRenderAPIRequest) SetParams(_params *CmdRenderParams) error { + r._params = _params + r.Set("params", _params) + return nil +} + +// Params Getter +func (r CainiaoCloudprintCmdprintRenderAPIRequest) GetParams() *CmdRenderParams { + return r._params +} diff --git a/model/waybill/CainiaoCloudprintCmdprintRenderAPIResponse.go b/model/waybill/CainiaoCloudprintCmdprintRenderAPIResponse.go new file mode 100644 index 0000000000..c6ef8459db --- /dev/null +++ b/model/waybill/CainiaoCloudprintCmdprintRenderAPIResponse.go @@ -0,0 +1,33 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +生成打印机渲染命令(通过打印机命令打印) API返回值 +cainiao.cloudprint.cmdprint.render + +isv 进行无线打印,需要将渲染数据传给打印机,通过生成打印机命令的方式能够最大限度的减少移动设备和打印机之间通信数据量。 +*/ +type CainiaoCloudprintCmdprintRenderAPIResponse struct { + model.CommonResponse + CainiaoCloudprintCmdprintRenderAPIResponseModel +} + +// 生成打印机渲染命令(通过打印机命令打印) 成功返回结果 +type CainiaoCloudprintCmdprintRenderAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cloudprint_cmdprint_render_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 0成功,非0失败 + RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` + // 错误信息 + RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` + // 指令集内容串 + CmdContent string `json:"cmd_content,omitempty" xml:"cmd_content,omitempty"` + // 指令集编码方式:origin-原串 gzip-采用gzip压缩并base64编码 + CmdEncoding string `json:"cmd_encoding,omitempty" xml:"cmd_encoding,omitempty"` +} diff --git a/model/waybill/CainiaoCloudprintCmdprintRenderResponse.go b/model/waybill/CainiaoCloudprintCmdprintRenderResponse.go deleted file mode 100644 index 9305f33ff4..0000000000 --- a/model/waybill/CainiaoCloudprintCmdprintRenderResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -生成打印机渲染命令(通过打印机命令打印) API返回值 -cainiao.cloudprint.cmdprint.render - -isv 进行无线打印,需要将渲染数据传给打印机,通过生成打印机命令的方式能够最大限度的减少移动设备和打印机之间通信数据量。 -*/ -type CainiaoCloudprintCmdprintRenderAPIResponse struct { - model.CommonResponse - CainiaoCloudprintCmdprintRenderResponse -} - -// 生成打印机渲染命令(通过打印机命令打印) 成功返回结果 -type CainiaoCloudprintCmdprintRenderResponse struct { - XMLName xml.Name `xml:"cainiao_cloudprint_cmdprint_render_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 0成功,非0失败 - RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"` - // 错误信息 - RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"` - // 指令集内容串 - CmdContent string `json:"cmd_content,omitempty" xml:"cmd_content,omitempty"` - // 指令集编码方式:origin-原串 gzip-采用gzip压缩并base64编码 - CmdEncoding string `json:"cmd_encoding,omitempty" xml:"cmd_encoding,omitempty"` -} diff --git a/model/waybill/CainiaoCloudprintCustomareaUpdateAPIRequest.go b/model/waybill/CainiaoCloudprintCustomareaUpdateAPIRequest.go new file mode 100644 index 0000000000..2d99376f32 --- /dev/null +++ b/model/waybill/CainiaoCloudprintCustomareaUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +自定义区内容更新 API请求 +cainiao.cloudprint.customarea.update + +自定义区内容更新 +*/ +type CainiaoCloudprintCustomareaUpdateAPIRequest struct { + model.Params + // 自定义区id(不可修改) + _customAreaId int64 + // 自定义区名称(可修改) + _customAreaName string + // 自定义区内容(可修改) + _customAreaContent string +} + +// 初始化CainiaoCloudprintCustomareaUpdateAPIRequest对象 +func NewCainiaoCloudprintCustomareaUpdateRequest() *CainiaoCloudprintCustomareaUpdateAPIRequest{ + return &CainiaoCloudprintCustomareaUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCloudprintCustomareaUpdateAPIRequest) GetApiMethodName() string { + return "cainiao.cloudprint.customarea.update" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCloudprintCustomareaUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CustomAreaId Setter +// 自定义区id(不可修改) +func (r *CainiaoCloudprintCustomareaUpdateAPIRequest) SetCustomAreaId(_customAreaId int64) error { + r._customAreaId = _customAreaId + r.Set("custom_area_id", _customAreaId) + return nil +} + +// CustomAreaId Getter +func (r CainiaoCloudprintCustomareaUpdateAPIRequest) GetCustomAreaId() int64 { + return r._customAreaId +} +// CustomAreaName Setter +// 自定义区名称(可修改) +func (r *CainiaoCloudprintCustomareaUpdateAPIRequest) SetCustomAreaName(_customAreaName string) error { + r._customAreaName = _customAreaName + r.Set("custom_area_name", _customAreaName) + return nil +} + +// CustomAreaName Getter +func (r CainiaoCloudprintCustomareaUpdateAPIRequest) GetCustomAreaName() string { + return r._customAreaName +} +// CustomAreaContent Setter +// 自定义区内容(可修改) +func (r *CainiaoCloudprintCustomareaUpdateAPIRequest) SetCustomAreaContent(_customAreaContent string) error { + r._customAreaContent = _customAreaContent + r.Set("custom_area_content", _customAreaContent) + return nil +} + +// CustomAreaContent Getter +func (r CainiaoCloudprintCustomareaUpdateAPIRequest) GetCustomAreaContent() string { + return r._customAreaContent +} diff --git a/model/waybill/CainiaoCloudprintCustomareaUpdateAPIResponse.go b/model/waybill/CainiaoCloudprintCustomareaUpdateAPIResponse.go new file mode 100644 index 0000000000..6ac3ccca2d --- /dev/null +++ b/model/waybill/CainiaoCloudprintCustomareaUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +自定义区内容更新 API返回值 +cainiao.cloudprint.customarea.update + +自定义区内容更新 +*/ +type CainiaoCloudprintCustomareaUpdateAPIResponse struct { + model.CommonResponse + CainiaoCloudprintCustomareaUpdateAPIResponseModel +} + +// 自定义区内容更新 成功返回结果 +type CainiaoCloudprintCustomareaUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cloudprint_customarea_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CloudPrintBaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/waybill/CainiaoCloudprintCustomareaUpdateResponse.go b/model/waybill/CainiaoCloudprintCustomareaUpdateResponse.go deleted file mode 100644 index 7f4290e882..0000000000 --- a/model/waybill/CainiaoCloudprintCustomareaUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -自定义区内容更新 API返回值 -cainiao.cloudprint.customarea.update - -自定义区内容更新 -*/ -type CainiaoCloudprintCustomareaUpdateAPIResponse struct { - model.CommonResponse - CainiaoCloudprintCustomareaUpdateResponse -} - -// 自定义区内容更新 成功返回结果 -type CainiaoCloudprintCustomareaUpdateResponse struct { - XMLName xml.Name `xml:"cainiao_cloudprint_customarea_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CloudPrintBaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/waybill/CainiaoCloudprintCustomaresGetAPIRequest.go b/model/waybill/CainiaoCloudprintCustomaresGetAPIRequest.go new file mode 100644 index 0000000000..2af8238de5 --- /dev/null +++ b/model/waybill/CainiaoCloudprintCustomaresGetAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商家的自定义区模板信息 API请求 +cainiao.cloudprint.customares.get + +供isv使用,获取商家的自定义区的模板信息 +*/ +type CainiaoCloudprintCustomaresGetAPIRequest struct { + model.Params + // 用户使用的标准模板id + _templateId int64 +} + +// 初始化CainiaoCloudprintCustomaresGetAPIRequest对象 +func NewCainiaoCloudprintCustomaresGetRequest() *CainiaoCloudprintCustomaresGetAPIRequest{ + return &CainiaoCloudprintCustomaresGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCloudprintCustomaresGetAPIRequest) GetApiMethodName() string { + return "cainiao.cloudprint.customares.get" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCloudprintCustomaresGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TemplateId Setter +// 用户使用的标准模板id +func (r *CainiaoCloudprintCustomaresGetAPIRequest) SetTemplateId(_templateId int64) error { + r._templateId = _templateId + r.Set("template_id", _templateId) + return nil +} + +// TemplateId Getter +func (r CainiaoCloudprintCustomaresGetAPIRequest) GetTemplateId() int64 { + return r._templateId +} diff --git a/model/waybill/CainiaoCloudprintCustomaresGetAPIResponse.go b/model/waybill/CainiaoCloudprintCustomaresGetAPIResponse.go new file mode 100644 index 0000000000..d51671f4f5 --- /dev/null +++ b/model/waybill/CainiaoCloudprintCustomaresGetAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商家的自定义区模板信息 API返回值 +cainiao.cloudprint.customares.get + +供isv使用,获取商家的自定义区的模板信息 +*/ +type CainiaoCloudprintCustomaresGetAPIResponse struct { + model.CommonResponse + CainiaoCloudprintCustomaresGetAPIResponseModel +} + +// 获取商家的自定义区模板信息 成功返回结果 +type CainiaoCloudprintCustomaresGetAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cloudprint_customares_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *CloudPrintBaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/waybill/CainiaoCloudprintCustomaresGetResponse.go b/model/waybill/CainiaoCloudprintCustomaresGetResponse.go deleted file mode 100644 index 4bad7515ff..0000000000 --- a/model/waybill/CainiaoCloudprintCustomaresGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取商家的自定义区模板信息 API返回值 -cainiao.cloudprint.customares.get - -供isv使用,获取商家的自定义区的模板信息 -*/ -type CainiaoCloudprintCustomaresGetAPIResponse struct { - model.CommonResponse - CainiaoCloudprintCustomaresGetResponse -} - -// 获取商家的自定义区模板信息 成功返回结果 -type CainiaoCloudprintCustomaresGetResponse struct { - XMLName xml.Name `xml:"cainiao_cloudprint_customares_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *CloudPrintBaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/waybill/CainiaoCloudprintIsvResourcesGetAPIRequest.go b/model/waybill/CainiaoCloudprintIsvResourcesGetAPIRequest.go new file mode 100644 index 0000000000..f8a025d3b8 --- /dev/null +++ b/model/waybill/CainiaoCloudprintIsvResourcesGetAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +isv资源查询 API请求 +cainiao.cloudprint.isv.resources.get + +isv资源查询,包括isv模板、打印项、预设的自定义区等 +*/ +type CainiaoCloudprintIsvResourcesGetAPIRequest struct { + model.Params + // isv资源类型,分为:TEMPLATE(表示模板),PRINT_ITEM(打印项),CUSTOM_AREA(预设自定义区) + _isvResourceType string +} + +// 初始化CainiaoCloudprintIsvResourcesGetAPIRequest对象 +func NewCainiaoCloudprintIsvResourcesGetRequest() *CainiaoCloudprintIsvResourcesGetAPIRequest{ + return &CainiaoCloudprintIsvResourcesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCloudprintIsvResourcesGetAPIRequest) GetApiMethodName() string { + return "cainiao.cloudprint.isv.resources.get" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCloudprintIsvResourcesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IsvResourceType Setter +// isv资源类型,分为:TEMPLATE(表示模板),PRINT_ITEM(打印项),CUSTOM_AREA(预设自定义区) +func (r *CainiaoCloudprintIsvResourcesGetAPIRequest) SetIsvResourceType(_isvResourceType string) error { + r._isvResourceType = _isvResourceType + r.Set("isv_resource_type", _isvResourceType) + return nil +} + +// IsvResourceType Getter +func (r CainiaoCloudprintIsvResourcesGetAPIRequest) GetIsvResourceType() string { + return r._isvResourceType +} diff --git a/model/waybill/CainiaoCloudprintIsvResourcesGetAPIResponse.go b/model/waybill/CainiaoCloudprintIsvResourcesGetAPIResponse.go new file mode 100644 index 0000000000..872fd15062 --- /dev/null +++ b/model/waybill/CainiaoCloudprintIsvResourcesGetAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +isv资源查询 API返回值 +cainiao.cloudprint.isv.resources.get + +isv资源查询,包括isv模板、打印项、预设的自定义区等 +*/ +type CainiaoCloudprintIsvResourcesGetAPIResponse struct { + model.CommonResponse + CainiaoCloudprintIsvResourcesGetAPIResponseModel +} + +// isv资源查询 成功返回结果 +type CainiaoCloudprintIsvResourcesGetAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cloudprint_isv_resources_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CloudPrintBaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/waybill/CainiaoCloudprintIsvResourcesGetResponse.go b/model/waybill/CainiaoCloudprintIsvResourcesGetResponse.go deleted file mode 100644 index 73fa093d86..0000000000 --- a/model/waybill/CainiaoCloudprintIsvResourcesGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -isv资源查询 API返回值 -cainiao.cloudprint.isv.resources.get - -isv资源查询,包括isv模板、打印项、预设的自定义区等 -*/ -type CainiaoCloudprintIsvResourcesGetAPIResponse struct { - model.CommonResponse - CainiaoCloudprintIsvResourcesGetResponse -} - -// isv资源查询 成功返回结果 -type CainiaoCloudprintIsvResourcesGetResponse struct { - XMLName xml.Name `xml:"cainiao_cloudprint_isv_resources_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CloudPrintBaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/waybill/CainiaoCloudprintIsvtemplatesGetAPIRequest.go b/model/waybill/CainiaoCloudprintIsvtemplatesGetAPIRequest.go new file mode 100644 index 0000000000..e9165a1a7d --- /dev/null +++ b/model/waybill/CainiaoCloudprintIsvtemplatesGetAPIRequest.go @@ -0,0 +1,38 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商家使用的标准模板 API请求 +cainiao.cloudprint.isvtemplates.get + +获取商家使用的标准模板 +*/ +type CainiaoCloudprintIsvtemplatesGetAPIRequest struct { + model.Params +} + +// 初始化CainiaoCloudprintIsvtemplatesGetAPIRequest对象 +func NewCainiaoCloudprintIsvtemplatesGetRequest() *CainiaoCloudprintIsvtemplatesGetAPIRequest{ + return &CainiaoCloudprintIsvtemplatesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCloudprintIsvtemplatesGetAPIRequest) GetApiMethodName() string { + return "cainiao.cloudprint.isvtemplates.get" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCloudprintIsvtemplatesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/waybill/CainiaoCloudprintIsvtemplatesGetAPIResponse.go b/model/waybill/CainiaoCloudprintIsvtemplatesGetAPIResponse.go new file mode 100644 index 0000000000..5faa07600c --- /dev/null +++ b/model/waybill/CainiaoCloudprintIsvtemplatesGetAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商家使用的标准模板 API返回值 +cainiao.cloudprint.isvtemplates.get + +获取商家使用的标准模板 +*/ +type CainiaoCloudprintIsvtemplatesGetAPIResponse struct { + model.CommonResponse + CainiaoCloudprintIsvtemplatesGetAPIResponseModel +} + +// 获取商家使用的标准模板 成功返回结果 +type CainiaoCloudprintIsvtemplatesGetAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cloudprint_isvtemplates_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CloudPrintBaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/waybill/CainiaoCloudprintIsvtemplatesGetResponse.go b/model/waybill/CainiaoCloudprintIsvtemplatesGetResponse.go deleted file mode 100644 index 3d6db81f63..0000000000 --- a/model/waybill/CainiaoCloudprintIsvtemplatesGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取商家使用的标准模板 API返回值 -cainiao.cloudprint.isvtemplates.get - -获取商家使用的标准模板 -*/ -type CainiaoCloudprintIsvtemplatesGetAPIResponse struct { - model.CommonResponse - CainiaoCloudprintIsvtemplatesGetResponse -} - -// 获取商家使用的标准模板 成功返回结果 -type CainiaoCloudprintIsvtemplatesGetResponse struct { - XMLName xml.Name `xml:"cainiao_cloudprint_isvtemplates_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CloudPrintBaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/waybill/CainiaoCloudprintMystdtemplatesGetAPIRequest.go b/model/waybill/CainiaoCloudprintMystdtemplatesGetAPIRequest.go new file mode 100644 index 0000000000..9fa5d5e91d --- /dev/null +++ b/model/waybill/CainiaoCloudprintMystdtemplatesGetAPIRequest.go @@ -0,0 +1,38 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户使用的菜鸟电子面单模板信息 API请求 +cainiao.cloudprint.mystdtemplates.get + +获取用户使用的菜鸟电子面单 +*/ +type CainiaoCloudprintMystdtemplatesGetAPIRequest struct { + model.Params +} + +// 初始化CainiaoCloudprintMystdtemplatesGetAPIRequest对象 +func NewCainiaoCloudprintMystdtemplatesGetRequest() *CainiaoCloudprintMystdtemplatesGetAPIRequest{ + return &CainiaoCloudprintMystdtemplatesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCloudprintMystdtemplatesGetAPIRequest) GetApiMethodName() string { + return "cainiao.cloudprint.mystdtemplates.get" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCloudprintMystdtemplatesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/waybill/CainiaoCloudprintMystdtemplatesGetAPIResponse.go b/model/waybill/CainiaoCloudprintMystdtemplatesGetAPIResponse.go new file mode 100644 index 0000000000..4b99e89beb --- /dev/null +++ b/model/waybill/CainiaoCloudprintMystdtemplatesGetAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取用户使用的菜鸟电子面单模板信息 API返回值 +cainiao.cloudprint.mystdtemplates.get + +获取用户使用的菜鸟电子面单 +*/ +type CainiaoCloudprintMystdtemplatesGetAPIResponse struct { + model.CommonResponse + CainiaoCloudprintMystdtemplatesGetAPIResponseModel +} + +// 获取用户使用的菜鸟电子面单模板信息 成功返回结果 +type CainiaoCloudprintMystdtemplatesGetAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cloudprint_mystdtemplates_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *CloudPrintBaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/waybill/CainiaoCloudprintMystdtemplatesGetResponse.go b/model/waybill/CainiaoCloudprintMystdtemplatesGetResponse.go deleted file mode 100644 index 57ee8f7dc7..0000000000 --- a/model/waybill/CainiaoCloudprintMystdtemplatesGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取用户使用的菜鸟电子面单模板信息 API返回值 -cainiao.cloudprint.mystdtemplates.get - -获取用户使用的菜鸟电子面单 -*/ -type CainiaoCloudprintMystdtemplatesGetAPIResponse struct { - model.CommonResponse - CainiaoCloudprintMystdtemplatesGetResponse -} - -// 获取用户使用的菜鸟电子面单模板信息 成功返回结果 -type CainiaoCloudprintMystdtemplatesGetResponse struct { - XMLName xml.Name `xml:"cainiao_cloudprint_mystdtemplates_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *CloudPrintBaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/waybill/CainiaoCloudprintSingleCustomareaGetAPIRequest.go b/model/waybill/CainiaoCloudprintSingleCustomareaGetAPIRequest.go new file mode 100644 index 0000000000..621e44ceeb --- /dev/null +++ b/model/waybill/CainiaoCloudprintSingleCustomareaGetAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商家单一自定义区 API请求 +cainiao.cloudprint.single.customarea.get + +商家所有快递公司模板只有一个自定义区 +*/ +type CainiaoCloudprintSingleCustomareaGetAPIRequest struct { + model.Params + // 这是商家用户id + _sellerId int64 +} + +// 初始化CainiaoCloudprintSingleCustomareaGetAPIRequest对象 +func NewCainiaoCloudprintSingleCustomareaGetRequest() *CainiaoCloudprintSingleCustomareaGetAPIRequest{ + return &CainiaoCloudprintSingleCustomareaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCloudprintSingleCustomareaGetAPIRequest) GetApiMethodName() string { + return "cainiao.cloudprint.single.customarea.get" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCloudprintSingleCustomareaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SellerId Setter +// 这是商家用户id +func (r *CainiaoCloudprintSingleCustomareaGetAPIRequest) SetSellerId(_sellerId int64) error { + r._sellerId = _sellerId + r.Set("seller_id", _sellerId) + return nil +} + +// SellerId Getter +func (r CainiaoCloudprintSingleCustomareaGetAPIRequest) GetSellerId() int64 { + return r._sellerId +} diff --git a/model/waybill/CainiaoCloudprintSingleCustomareaGetAPIResponse.go b/model/waybill/CainiaoCloudprintSingleCustomareaGetAPIResponse.go new file mode 100644 index 0000000000..29b6fa82b4 --- /dev/null +++ b/model/waybill/CainiaoCloudprintSingleCustomareaGetAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商家单一自定义区 API返回值 +cainiao.cloudprint.single.customarea.get + +商家所有快递公司模板只有一个自定义区 +*/ +type CainiaoCloudprintSingleCustomareaGetAPIResponse struct { + model.CommonResponse + CainiaoCloudprintSingleCustomareaGetAPIResponseModel +} + +// 获取商家单一自定义区 成功返回结果 +type CainiaoCloudprintSingleCustomareaGetAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cloudprint_single_customarea_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CloudPrintBaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/waybill/CainiaoCloudprintSingleCustomareaGetResponse.go b/model/waybill/CainiaoCloudprintSingleCustomareaGetResponse.go deleted file mode 100644 index fb6e6dfdef..0000000000 --- a/model/waybill/CainiaoCloudprintSingleCustomareaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取商家单一自定义区 API返回值 -cainiao.cloudprint.single.customarea.get - -商家所有快递公司模板只有一个自定义区 -*/ -type CainiaoCloudprintSingleCustomareaGetAPIResponse struct { - model.CommonResponse - CainiaoCloudprintSingleCustomareaGetResponse -} - -// 获取商家单一自定义区 成功返回结果 -type CainiaoCloudprintSingleCustomareaGetResponse struct { - XMLName xml.Name `xml:"cainiao_cloudprint_single_customarea_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CloudPrintBaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/waybill/CainiaoCloudprintStdtemplatesGetAPIRequest.go b/model/waybill/CainiaoCloudprintStdtemplatesGetAPIRequest.go new file mode 100644 index 0000000000..949dd95610 --- /dev/null +++ b/model/waybill/CainiaoCloudprintStdtemplatesGetAPIRequest.go @@ -0,0 +1,38 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取所有的菜鸟标准电子面单模板 API请求 +cainiao.cloudprint.stdtemplates.get + +获取菜鸟标准电子面单模板 +*/ +type CainiaoCloudprintStdtemplatesGetAPIRequest struct { + model.Params +} + +// 初始化CainiaoCloudprintStdtemplatesGetAPIRequest对象 +func NewCainiaoCloudprintStdtemplatesGetRequest() *CainiaoCloudprintStdtemplatesGetAPIRequest{ + return &CainiaoCloudprintStdtemplatesGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCloudprintStdtemplatesGetAPIRequest) GetApiMethodName() string { + return "cainiao.cloudprint.stdtemplates.get" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCloudprintStdtemplatesGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/waybill/CainiaoCloudprintStdtemplatesGetAPIResponse.go b/model/waybill/CainiaoCloudprintStdtemplatesGetAPIResponse.go new file mode 100644 index 0000000000..32c2aa36b4 --- /dev/null +++ b/model/waybill/CainiaoCloudprintStdtemplatesGetAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取所有的菜鸟标准电子面单模板 API返回值 +cainiao.cloudprint.stdtemplates.get + +获取菜鸟标准电子面单模板 +*/ +type CainiaoCloudprintStdtemplatesGetAPIResponse struct { + model.CommonResponse + CainiaoCloudprintStdtemplatesGetAPIResponseModel +} + +// 获取所有的菜鸟标准电子面单模板 成功返回结果 +type CainiaoCloudprintStdtemplatesGetAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cloudprint_stdtemplates_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果集 + Result *CloudPrintBaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/waybill/CainiaoCloudprintStdtemplatesGetResponse.go b/model/waybill/CainiaoCloudprintStdtemplatesGetResponse.go deleted file mode 100644 index d9753b1276..0000000000 --- a/model/waybill/CainiaoCloudprintStdtemplatesGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取所有的菜鸟标准电子面单模板 API返回值 -cainiao.cloudprint.stdtemplates.get - -获取菜鸟标准电子面单模板 -*/ -type CainiaoCloudprintStdtemplatesGetAPIResponse struct { - model.CommonResponse - CainiaoCloudprintStdtemplatesGetResponse -} - -// 获取所有的菜鸟标准电子面单模板 成功返回结果 -type CainiaoCloudprintStdtemplatesGetResponse struct { - XMLName xml.Name `xml:"cainiao_cloudprint_stdtemplates_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果集 - Result *CloudPrintBaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/waybill/CainiaoCloudprintTemplatesMigrateAPIRequest.go b/model/waybill/CainiaoCloudprintTemplatesMigrateAPIRequest.go new file mode 100644 index 0000000000..a461bc088a --- /dev/null +++ b/model/waybill/CainiaoCloudprintTemplatesMigrateAPIRequest.go @@ -0,0 +1,80 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +云打印模板迁移接口 API请求 +cainiao.cloudprint.templates.migrate + +云打印模板迁移接口 +*/ +type CainiaoCloudprintTemplatesMigrateAPIRequest struct { + model.Params + // 标准电子面单模板的id + _tempalteId int64 + // 自定义区名称 + _customAreaName string + // 自定义区内容 + _customAreaContent string +} + +// 初始化CainiaoCloudprintTemplatesMigrateAPIRequest对象 +func NewCainiaoCloudprintTemplatesMigrateRequest() *CainiaoCloudprintTemplatesMigrateAPIRequest{ + return &CainiaoCloudprintTemplatesMigrateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCloudprintTemplatesMigrateAPIRequest) GetApiMethodName() string { + return "cainiao.cloudprint.templates.migrate" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCloudprintTemplatesMigrateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TempalteId Setter +// 标准电子面单模板的id +func (r *CainiaoCloudprintTemplatesMigrateAPIRequest) SetTempalteId(_tempalteId int64) error { + r._tempalteId = _tempalteId + r.Set("tempalte_id", _tempalteId) + return nil +} + +// TempalteId Getter +func (r CainiaoCloudprintTemplatesMigrateAPIRequest) GetTempalteId() int64 { + return r._tempalteId +} +// CustomAreaName Setter +// 自定义区名称 +func (r *CainiaoCloudprintTemplatesMigrateAPIRequest) SetCustomAreaName(_customAreaName string) error { + r._customAreaName = _customAreaName + r.Set("custom_area_name", _customAreaName) + return nil +} + +// CustomAreaName Getter +func (r CainiaoCloudprintTemplatesMigrateAPIRequest) GetCustomAreaName() string { + return r._customAreaName +} +// CustomAreaContent Setter +// 自定义区内容 +func (r *CainiaoCloudprintTemplatesMigrateAPIRequest) SetCustomAreaContent(_customAreaContent string) error { + r._customAreaContent = _customAreaContent + r.Set("custom_area_content", _customAreaContent) + return nil +} + +// CustomAreaContent Getter +func (r CainiaoCloudprintTemplatesMigrateAPIRequest) GetCustomAreaContent() string { + return r._customAreaContent +} diff --git a/model/waybill/CainiaoCloudprintTemplatesMigrateAPIResponse.go b/model/waybill/CainiaoCloudprintTemplatesMigrateAPIResponse.go new file mode 100644 index 0000000000..f9aeb84a29 --- /dev/null +++ b/model/waybill/CainiaoCloudprintTemplatesMigrateAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +云打印模板迁移接口 API返回值 +cainiao.cloudprint.templates.migrate + +云打印模板迁移接口 +*/ +type CainiaoCloudprintTemplatesMigrateAPIResponse struct { + model.CommonResponse + CainiaoCloudprintTemplatesMigrateAPIResponseModel +} + +// 云打印模板迁移接口 成功返回结果 +type CainiaoCloudprintTemplatesMigrateAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_cloudprint_templates_migrate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *CloudPrintBaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/waybill/CainiaoCloudprintTemplatesMigrateResponse.go b/model/waybill/CainiaoCloudprintTemplatesMigrateResponse.go deleted file mode 100644 index 7146d976ac..0000000000 --- a/model/waybill/CainiaoCloudprintTemplatesMigrateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -云打印模板迁移接口 API返回值 -cainiao.cloudprint.templates.migrate - -云打印模板迁移接口 -*/ -type CainiaoCloudprintTemplatesMigrateAPIResponse struct { - model.CommonResponse - CainiaoCloudprintTemplatesMigrateResponse -} - -// 云打印模板迁移接口 成功返回结果 -type CainiaoCloudprintTemplatesMigrateResponse struct { - XMLName xml.Name `xml:"cainiao_cloudprint_templates_migrate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *CloudPrintBaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/waybill/CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest.go b/model/waybill/CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest.go new file mode 100644 index 0000000000..697ed06c9b --- /dev/null +++ b/model/waybill/CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除智能发货引擎仓策略 API请求 +cainiao.smartdelivery.strategy.warehouse.i.delete + +删除智能发货引擎仓策略 +*/ +type CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest struct { + model.Params + // 仓id + _warehouseId int64 +} + +// 初始化CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest对象 +func NewCainiaoSmartdeliveryStrategyWarehouseIDeleteRequest() *CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest{ + return &CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest) GetApiMethodName() string { + return "cainiao.smartdelivery.strategy.warehouse.i.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseId Setter +// 仓id +func (r *CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest) SetWarehouseId(_warehouseId int64) error { + r._warehouseId = _warehouseId + r.Set("warehouse_id", _warehouseId) + return nil +} + +// WarehouseId Getter +func (r CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIRequest) GetWarehouseId() int64 { + return r._warehouseId +} diff --git a/model/waybill/CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIResponse.go b/model/waybill/CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIResponse.go new file mode 100644 index 0000000000..e667745649 --- /dev/null +++ b/model/waybill/CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除智能发货引擎仓策略 API返回值 +cainiao.smartdelivery.strategy.warehouse.i.delete + +删除智能发货引擎仓策略 +*/ +type CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIResponse struct { + model.CommonResponse + CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIResponseModel +} + +// 删除智能发货引擎仓策略 成功返回结果 +type CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_smartdelivery_strategy_warehouse_i_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + IsDeleteSuccess bool `json:"is_delete_success,omitempty" xml:"is_delete_success,omitempty"` +} diff --git a/model/waybill/CainiaoSmartdeliveryStrategyWarehouseIDeleteResponse.go b/model/waybill/CainiaoSmartdeliveryStrategyWarehouseIDeleteResponse.go deleted file mode 100644 index dd064bab08..0000000000 --- a/model/waybill/CainiaoSmartdeliveryStrategyWarehouseIDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除智能发货引擎仓策略 API返回值 -cainiao.smartdelivery.strategy.warehouse.i.delete - -删除智能发货引擎仓策略 -*/ -type CainiaoSmartdeliveryStrategyWarehouseIDeleteAPIResponse struct { - model.CommonResponse - CainiaoSmartdeliveryStrategyWarehouseIDeleteResponse -} - -// 删除智能发货引擎仓策略 成功返回结果 -type CainiaoSmartdeliveryStrategyWarehouseIDeleteResponse struct { - XMLName xml.Name `xml:"cainiao_smartdelivery_strategy_warehouse_i_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - IsDeleteSuccess bool `json:"is_delete_success,omitempty" xml:"is_delete_success,omitempty"` -} diff --git a/model/waybill/CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest.go b/model/waybill/CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest.go new file mode 100644 index 0000000000..fa5fa900fa --- /dev/null +++ b/model/waybill/CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +智能发货引擎策略仓设置 API请求 +cainiao.smartdelivery.strategy.warehouse.i.update + +智能发货引擎发货策略设置仓维度 +*/ +type CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest struct { + model.Params + // 智能发货设置请求参数 + _deliveryStrategySetRequest *DeliveryStrategySetRequest +} + +// 初始化CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest对象 +func NewCainiaoSmartdeliveryStrategyWarehouseIUpdateRequest() *CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest{ + return &CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest) GetApiMethodName() string { + return "cainiao.smartdelivery.strategy.warehouse.i.update" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeliveryStrategySetRequest Setter +// 智能发货设置请求参数 +func (r *CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest) SetDeliveryStrategySetRequest(_deliveryStrategySetRequest *DeliveryStrategySetRequest) error { + r._deliveryStrategySetRequest = _deliveryStrategySetRequest + r.Set("delivery_strategy_set_request", _deliveryStrategySetRequest) + return nil +} + +// DeliveryStrategySetRequest Getter +func (r CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIRequest) GetDeliveryStrategySetRequest() *DeliveryStrategySetRequest { + return r._deliveryStrategySetRequest +} diff --git a/model/waybill/CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIResponse.go b/model/waybill/CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIResponse.go new file mode 100644 index 0000000000..c82ee520c8 --- /dev/null +++ b/model/waybill/CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +智能发货引擎策略仓设置 API返回值 +cainiao.smartdelivery.strategy.warehouse.i.update + +智能发货引擎发货策略设置仓维度 +*/ +type CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIResponse struct { + model.CommonResponse + CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIResponseModel +} + +// 智能发货引擎策略仓设置 成功返回结果 +type CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_smartdelivery_strategy_warehouse_i_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 仓信息 + WarehouseInfo *WarehouseDto `json:"warehouse_info,omitempty" xml:"warehouse_info,omitempty"` +} diff --git a/model/waybill/CainiaoSmartdeliveryStrategyWarehouseIUpdateResponse.go b/model/waybill/CainiaoSmartdeliveryStrategyWarehouseIUpdateResponse.go deleted file mode 100644 index 462062d5d3..0000000000 --- a/model/waybill/CainiaoSmartdeliveryStrategyWarehouseIUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -智能发货引擎策略仓设置 API返回值 -cainiao.smartdelivery.strategy.warehouse.i.update - -智能发货引擎发货策略设置仓维度 -*/ -type CainiaoSmartdeliveryStrategyWarehouseIUpdateAPIResponse struct { - model.CommonResponse - CainiaoSmartdeliveryStrategyWarehouseIUpdateResponse -} - -// 智能发货引擎策略仓设置 成功返回结果 -type CainiaoSmartdeliveryStrategyWarehouseIUpdateResponse struct { - XMLName xml.Name `xml:"cainiao_smartdelivery_strategy_warehouse_i_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 仓信息 - WarehouseInfo *WarehouseDto `json:"warehouse_info,omitempty" xml:"warehouse_info,omitempty"` -} diff --git a/model/waybill/CainiaoWaybillIiCancelAPIRequest.go b/model/waybill/CainiaoWaybillIiCancelAPIRequest.go new file mode 100644 index 0000000000..62a4934146 --- /dev/null +++ b/model/waybill/CainiaoWaybillIiCancelAPIRequest.go @@ -0,0 +1,66 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家取消获取的电子面单号 API请求 +cainiao.waybill.ii.cancel + +面单号有误需要取消的时候,调用该接口取消获取的电子面单。 +*/ +type CainiaoWaybillIiCancelAPIRequest struct { + model.Params + // 快递公司code + _cpCode string + // 电子面单号 + _waybillCode string +} + +// 初始化CainiaoWaybillIiCancelAPIRequest对象 +func NewCainiaoWaybillIiCancelRequest() *CainiaoWaybillIiCancelAPIRequest{ + return &CainiaoWaybillIiCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoWaybillIiCancelAPIRequest) GetApiMethodName() string { + return "cainiao.waybill.ii.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoWaybillIiCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CpCode Setter +// 快递公司code +func (r *CainiaoWaybillIiCancelAPIRequest) SetCpCode(_cpCode string) error { + r._cpCode = _cpCode + r.Set("cp_code", _cpCode) + return nil +} + +// CpCode Getter +func (r CainiaoWaybillIiCancelAPIRequest) GetCpCode() string { + return r._cpCode +} +// WaybillCode Setter +// 电子面单号 +func (r *CainiaoWaybillIiCancelAPIRequest) SetWaybillCode(_waybillCode string) error { + r._waybillCode = _waybillCode + r.Set("waybill_code", _waybillCode) + return nil +} + +// WaybillCode Getter +func (r CainiaoWaybillIiCancelAPIRequest) GetWaybillCode() string { + return r._waybillCode +} diff --git a/model/waybill/CainiaoWaybillIiCancelAPIResponse.go b/model/waybill/CainiaoWaybillIiCancelAPIResponse.go new file mode 100644 index 0000000000..609d76d19d --- /dev/null +++ b/model/waybill/CainiaoWaybillIiCancelAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家取消获取的电子面单号 API返回值 +cainiao.waybill.ii.cancel + +面单号有误需要取消的时候,调用该接口取消获取的电子面单。 +*/ +type CainiaoWaybillIiCancelAPIResponse struct { + model.CommonResponse + CainiaoWaybillIiCancelAPIResponseModel +} + +// 商家取消获取的电子面单号 成功返回结果 +type CainiaoWaybillIiCancelAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_waybill_ii_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用取消是否成功 + CancelResult bool `json:"cancel_result,omitempty" xml:"cancel_result,omitempty"` +} diff --git a/model/waybill/CainiaoWaybillIiCancelResponse.go b/model/waybill/CainiaoWaybillIiCancelResponse.go deleted file mode 100644 index 738cdbf2f2..0000000000 --- a/model/waybill/CainiaoWaybillIiCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家取消获取的电子面单号 API返回值 -cainiao.waybill.ii.cancel - -面单号有误需要取消的时候,调用该接口取消获取的电子面单。 -*/ -type CainiaoWaybillIiCancelAPIResponse struct { - model.CommonResponse - CainiaoWaybillIiCancelResponse -} - -// 商家取消获取的电子面单号 成功返回结果 -type CainiaoWaybillIiCancelResponse struct { - XMLName xml.Name `xml:"cainiao_waybill_ii_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用取消是否成功 - CancelResult bool `json:"cancel_result,omitempty" xml:"cancel_result,omitempty"` -} diff --git a/model/waybill/CainiaoWaybillIiGetAPIRequest.go b/model/waybill/CainiaoWaybillIiGetAPIRequest.go new file mode 100644 index 0000000000..00a591a2b4 --- /dev/null +++ b/model/waybill/CainiaoWaybillIiGetAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +电子面单云打印接口 API请求 +cainiao.waybill.ii.get + +菜鸟电子面单的云打印申请电子面单号的方法 +*/ +type CainiaoWaybillIiGetAPIRequest struct { + model.Params + // 入参信息 + _paramWaybillCloudPrintApplyNewRequest *WaybillCloudPrintApplyNewRequest +} + +// 初始化CainiaoWaybillIiGetAPIRequest对象 +func NewCainiaoWaybillIiGetRequest() *CainiaoWaybillIiGetAPIRequest{ + return &CainiaoWaybillIiGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoWaybillIiGetAPIRequest) GetApiMethodName() string { + return "cainiao.waybill.ii.get" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoWaybillIiGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamWaybillCloudPrintApplyNewRequest Setter +// 入参信息 +func (r *CainiaoWaybillIiGetAPIRequest) SetParamWaybillCloudPrintApplyNewRequest(_paramWaybillCloudPrintApplyNewRequest *WaybillCloudPrintApplyNewRequest) error { + r._paramWaybillCloudPrintApplyNewRequest = _paramWaybillCloudPrintApplyNewRequest + r.Set("param_waybill_cloud_print_apply_new_request", _paramWaybillCloudPrintApplyNewRequest) + return nil +} + +// ParamWaybillCloudPrintApplyNewRequest Getter +func (r CainiaoWaybillIiGetAPIRequest) GetParamWaybillCloudPrintApplyNewRequest() *WaybillCloudPrintApplyNewRequest { + return r._paramWaybillCloudPrintApplyNewRequest +} diff --git a/model/waybill/CainiaoWaybillIiGetAPIResponse.go b/model/waybill/CainiaoWaybillIiGetAPIResponse.go new file mode 100644 index 0000000000..ea68610ae7 --- /dev/null +++ b/model/waybill/CainiaoWaybillIiGetAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +电子面单云打印接口 API返回值 +cainiao.waybill.ii.get + +菜鸟电子面单的云打印申请电子面单号的方法 +*/ +type CainiaoWaybillIiGetAPIResponse struct { + model.CommonResponse + CainiaoWaybillIiGetAPIResponseModel +} + +// 电子面单云打印接口 成功返回结果 +type CainiaoWaybillIiGetAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_waybill_ii_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Modules []WaybillCloudPrintResponse `json:"modules,omitempty" xml:"modules>waybill_cloud_print_response,omitempty"` +} diff --git a/model/waybill/CainiaoWaybillIiGetResponse.go b/model/waybill/CainiaoWaybillIiGetResponse.go deleted file mode 100644 index 682814a884..0000000000 --- a/model/waybill/CainiaoWaybillIiGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -电子面单云打印接口 API返回值 -cainiao.waybill.ii.get - -菜鸟电子面单的云打印申请电子面单号的方法 -*/ -type CainiaoWaybillIiGetAPIResponse struct { - model.CommonResponse - CainiaoWaybillIiGetResponse -} - -// 电子面单云打印接口 成功返回结果 -type CainiaoWaybillIiGetResponse struct { - XMLName xml.Name `xml:"cainiao_waybill_ii_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Modules []WaybillCloudPrintResponse `json:"modules,omitempty" xml:"modules>waybill_cloud_print_response,omitempty"` -} diff --git a/model/waybill/CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest.go b/model/waybill/CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest.go new file mode 100644 index 0000000000..563e7b8ff9 --- /dev/null +++ b/model/waybill/CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest.go @@ -0,0 +1,66 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +电子面单物流详情授权url获取 API请求 +cainiao.waybill.ii.logisticsdetail.url.get + +获取电子面单物流详情授权访问的H5 url +*/ +type CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest struct { + model.Params + // 快递公司编码 + _cpCode string + // 电子面单单号 + _waybillCode string +} + +// 初始化CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest对象 +func NewCainiaoWaybillIiLogisticsdetailUrlGetRequest() *CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest{ + return &CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest) GetApiMethodName() string { + return "cainiao.waybill.ii.logisticsdetail.url.get" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CpCode Setter +// 快递公司编码 +func (r *CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest) SetCpCode(_cpCode string) error { + r._cpCode = _cpCode + r.Set("cp_code", _cpCode) + return nil +} + +// CpCode Getter +func (r CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest) GetCpCode() string { + return r._cpCode +} +// WaybillCode Setter +// 电子面单单号 +func (r *CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest) SetWaybillCode(_waybillCode string) error { + r._waybillCode = _waybillCode + r.Set("waybill_code", _waybillCode) + return nil +} + +// WaybillCode Getter +func (r CainiaoWaybillIiLogisticsdetailUrlGetAPIRequest) GetWaybillCode() string { + return r._waybillCode +} diff --git a/model/waybill/CainiaoWaybillIiLogisticsdetailUrlGetAPIResponse.go b/model/waybill/CainiaoWaybillIiLogisticsdetailUrlGetAPIResponse.go new file mode 100644 index 0000000000..a4a2240eee --- /dev/null +++ b/model/waybill/CainiaoWaybillIiLogisticsdetailUrlGetAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +电子面单物流详情授权url获取 API返回值 +cainiao.waybill.ii.logisticsdetail.url.get + +获取电子面单物流详情授权访问的H5 url +*/ +type CainiaoWaybillIiLogisticsdetailUrlGetAPIResponse struct { + model.CommonResponse + CainiaoWaybillIiLogisticsdetailUrlGetAPIResponseModel +} + +// 电子面单物流详情授权url获取 成功返回结果 +type CainiaoWaybillIiLogisticsdetailUrlGetAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_waybill_ii_logisticsdetail_url_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 授权访问的url + Url string `json:"url,omitempty" xml:"url,omitempty"` +} diff --git a/model/waybill/CainiaoWaybillIiLogisticsdetailUrlGetResponse.go b/model/waybill/CainiaoWaybillIiLogisticsdetailUrlGetResponse.go deleted file mode 100644 index de1429a424..0000000000 --- a/model/waybill/CainiaoWaybillIiLogisticsdetailUrlGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -电子面单物流详情授权url获取 API返回值 -cainiao.waybill.ii.logisticsdetail.url.get - -获取电子面单物流详情授权访问的H5 url -*/ -type CainiaoWaybillIiLogisticsdetailUrlGetAPIResponse struct { - model.CommonResponse - CainiaoWaybillIiLogisticsdetailUrlGetResponse -} - -// 电子面单物流详情授权url获取 成功返回结果 -type CainiaoWaybillIiLogisticsdetailUrlGetResponse struct { - XMLName xml.Name `xml:"cainiao_waybill_ii_logisticsdetail_url_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 授权访问的url - Url string `json:"url,omitempty" xml:"url,omitempty"` -} diff --git a/model/waybill/CainiaoWaybillIiProductAPIRequest.go b/model/waybill/CainiaoWaybillIiProductAPIRequest.go new file mode 100644 index 0000000000..db64d22f1e --- /dev/null +++ b/model/waybill/CainiaoWaybillIiProductAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家查询物流商产品类型接口 API请求 +cainiao.waybill.ii.product + +商家可以查询物流商的产品类型和服务能力。 +*/ +type CainiaoWaybillIiProductAPIRequest struct { + model.Params + // 快递公司code + _cpCode string +} + +// 初始化CainiaoWaybillIiProductAPIRequest对象 +func NewCainiaoWaybillIiProductRequest() *CainiaoWaybillIiProductAPIRequest{ + return &CainiaoWaybillIiProductAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoWaybillIiProductAPIRequest) GetApiMethodName() string { + return "cainiao.waybill.ii.product" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoWaybillIiProductAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CpCode Setter +// 快递公司code +func (r *CainiaoWaybillIiProductAPIRequest) SetCpCode(_cpCode string) error { + r._cpCode = _cpCode + r.Set("cp_code", _cpCode) + return nil +} + +// CpCode Getter +func (r CainiaoWaybillIiProductAPIRequest) GetCpCode() string { + return r._cpCode +} diff --git a/model/waybill/CainiaoWaybillIiProductAPIResponse.go b/model/waybill/CainiaoWaybillIiProductAPIResponse.go new file mode 100644 index 0000000000..3264c68d97 --- /dev/null +++ b/model/waybill/CainiaoWaybillIiProductAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家查询物流商产品类型接口 API返回值 +cainiao.waybill.ii.product + +商家可以查询物流商的产品类型和服务能力。 +*/ +type CainiaoWaybillIiProductAPIResponse struct { + model.CommonResponse + CainiaoWaybillIiProductAPIResponseModel +} + +// 商家查询物流商产品类型接口 成功返回结果 +type CainiaoWaybillIiProductAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_waybill_ii_product_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + ProductTypes []WaybillProductType `json:"product_types,omitempty" xml:"product_types>waybill_product_type,omitempty"` +} diff --git a/model/waybill/CainiaoWaybillIiProductResponse.go b/model/waybill/CainiaoWaybillIiProductResponse.go deleted file mode 100644 index e1d56258a9..0000000000 --- a/model/waybill/CainiaoWaybillIiProductResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家查询物流商产品类型接口 API返回值 -cainiao.waybill.ii.product - -商家可以查询物流商的产品类型和服务能力。 -*/ -type CainiaoWaybillIiProductAPIResponse struct { - model.CommonResponse - CainiaoWaybillIiProductResponse -} - -// 商家查询物流商产品类型接口 成功返回结果 -type CainiaoWaybillIiProductResponse struct { - XMLName xml.Name `xml:"cainiao_waybill_ii_product_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - ProductTypes []WaybillProductType `json:"product_types,omitempty" xml:"product_types>waybill_product_type,omitempty"` -} diff --git a/model/waybill/CainiaoWaybillIiQueryByTradecodeAPIRequest.go b/model/waybill/CainiaoWaybillIiQueryByTradecodeAPIRequest.go new file mode 100644 index 0000000000..f5ff29916f --- /dev/null +++ b/model/waybill/CainiaoWaybillIiQueryByTradecodeAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过订单号查询电子面单通接口 API请求 +cainiao.waybill.ii.query.by.tradecode + +通过订单号查看面单的信息 +*/ +type CainiaoWaybillIiQueryByTradecodeAPIRequest struct { + model.Params + // 订单号列表 + _paramList []WaybillDetailQueryByBizSubCodeRequest +} + +// 初始化CainiaoWaybillIiQueryByTradecodeAPIRequest对象 +func NewCainiaoWaybillIiQueryByTradecodeRequest() *CainiaoWaybillIiQueryByTradecodeAPIRequest{ + return &CainiaoWaybillIiQueryByTradecodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoWaybillIiQueryByTradecodeAPIRequest) GetApiMethodName() string { + return "cainiao.waybill.ii.query.by.tradecode" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoWaybillIiQueryByTradecodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamList Setter +// 订单号列表 +func (r *CainiaoWaybillIiQueryByTradecodeAPIRequest) SetParamList(_paramList []WaybillDetailQueryByBizSubCodeRequest) error { + r._paramList = _paramList + r.Set("param_list", _paramList) + return nil +} + +// ParamList Getter +func (r CainiaoWaybillIiQueryByTradecodeAPIRequest) GetParamList() []WaybillDetailQueryByBizSubCodeRequest { + return r._paramList +} diff --git a/model/waybill/CainiaoWaybillIiQueryByTradecodeAPIResponse.go b/model/waybill/CainiaoWaybillIiQueryByTradecodeAPIResponse.go new file mode 100644 index 0000000000..9cc6f30696 --- /dev/null +++ b/model/waybill/CainiaoWaybillIiQueryByTradecodeAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过订单号查询电子面单通接口 API返回值 +cainiao.waybill.ii.query.by.tradecode + +通过订单号查看面单的信息 +*/ +type CainiaoWaybillIiQueryByTradecodeAPIResponse struct { + model.CommonResponse + CainiaoWaybillIiQueryByTradecodeAPIResponseModel +} + +// 通过订单号查询电子面单通接口 成功返回结果 +type CainiaoWaybillIiQueryByTradecodeAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_waybill_ii_query_by_tradecode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询返回值 + Modules []WaybillCloudPrintWithResultDescResponse `json:"modules,omitempty" xml:"modules>waybill_cloud_print_with_result_desc_response,omitempty"` +} diff --git a/model/waybill/CainiaoWaybillIiQueryByTradecodeResponse.go b/model/waybill/CainiaoWaybillIiQueryByTradecodeResponse.go deleted file mode 100644 index 5294ca471e..0000000000 --- a/model/waybill/CainiaoWaybillIiQueryByTradecodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过订单号查询电子面单通接口 API返回值 -cainiao.waybill.ii.query.by.tradecode - -通过订单号查看面单的信息 -*/ -type CainiaoWaybillIiQueryByTradecodeAPIResponse struct { - model.CommonResponse - CainiaoWaybillIiQueryByTradecodeResponse -} - -// 通过订单号查询电子面单通接口 成功返回结果 -type CainiaoWaybillIiQueryByTradecodeResponse struct { - XMLName xml.Name `xml:"cainiao_waybill_ii_query_by_tradecode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询返回值 - Modules []WaybillCloudPrintWithResultDescResponse `json:"modules,omitempty" xml:"modules>waybill_cloud_print_with_result_desc_response,omitempty"` -} diff --git a/model/waybill/CainiaoWaybillIiQueryByWaybillcodeAPIRequest.go b/model/waybill/CainiaoWaybillIiQueryByWaybillcodeAPIRequest.go new file mode 100644 index 0000000000..8ad163f509 --- /dev/null +++ b/model/waybill/CainiaoWaybillIiQueryByWaybillcodeAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过面单号查询面单信息 API请求 +cainiao.waybill.ii.query.by.waybillcode + +通过面单号查看面单号的当前状态,如签收、发货、失效等。 +*/ +type CainiaoWaybillIiQueryByWaybillcodeAPIRequest struct { + model.Params + // 系统自动生成 + _paramList []WaybillDetailQueryByWaybillCodeRequest +} + +// 初始化CainiaoWaybillIiQueryByWaybillcodeAPIRequest对象 +func NewCainiaoWaybillIiQueryByWaybillcodeRequest() *CainiaoWaybillIiQueryByWaybillcodeAPIRequest{ + return &CainiaoWaybillIiQueryByWaybillcodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoWaybillIiQueryByWaybillcodeAPIRequest) GetApiMethodName() string { + return "cainiao.waybill.ii.query.by.waybillcode" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoWaybillIiQueryByWaybillcodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamList Setter +// 系统自动生成 +func (r *CainiaoWaybillIiQueryByWaybillcodeAPIRequest) SetParamList(_paramList []WaybillDetailQueryByWaybillCodeRequest) error { + r._paramList = _paramList + r.Set("param_list", _paramList) + return nil +} + +// ParamList Getter +func (r CainiaoWaybillIiQueryByWaybillcodeAPIRequest) GetParamList() []WaybillDetailQueryByWaybillCodeRequest { + return r._paramList +} diff --git a/model/waybill/CainiaoWaybillIiQueryByWaybillcodeAPIResponse.go b/model/waybill/CainiaoWaybillIiQueryByWaybillcodeAPIResponse.go new file mode 100644 index 0000000000..e6bac58841 --- /dev/null +++ b/model/waybill/CainiaoWaybillIiQueryByWaybillcodeAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过面单号查询面单信息 API返回值 +cainiao.waybill.ii.query.by.waybillcode + +通过面单号查看面单号的当前状态,如签收、发货、失效等。 +*/ +type CainiaoWaybillIiQueryByWaybillcodeAPIResponse struct { + model.CommonResponse + CainiaoWaybillIiQueryByWaybillcodeAPIResponseModel +} + +// 通过面单号查询面单信息 成功返回结果 +type CainiaoWaybillIiQueryByWaybillcodeAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_waybill_ii_query_by_waybillcode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询返回值 + Modules []WaybillCloudPrintWithResultDescResponse `json:"modules,omitempty" xml:"modules>waybill_cloud_print_with_result_desc_response,omitempty"` +} diff --git a/model/waybill/CainiaoWaybillIiQueryByWaybillcodeResponse.go b/model/waybill/CainiaoWaybillIiQueryByWaybillcodeResponse.go deleted file mode 100644 index a9ea832531..0000000000 --- a/model/waybill/CainiaoWaybillIiQueryByWaybillcodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过面单号查询面单信息 API返回值 -cainiao.waybill.ii.query.by.waybillcode - -通过面单号查看面单号的当前状态,如签收、发货、失效等。 -*/ -type CainiaoWaybillIiQueryByWaybillcodeAPIResponse struct { - model.CommonResponse - CainiaoWaybillIiQueryByWaybillcodeResponse -} - -// 通过面单号查询面单信息 成功返回结果 -type CainiaoWaybillIiQueryByWaybillcodeResponse struct { - XMLName xml.Name `xml:"cainiao_waybill_ii_query_by_waybillcode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询返回值 - Modules []WaybillCloudPrintWithResultDescResponse `json:"modules,omitempty" xml:"modules>waybill_cloud_print_with_result_desc_response,omitempty"` -} diff --git a/model/waybill/CainiaoWaybillIiSearchAPIRequest.go b/model/waybill/CainiaoWaybillIiSearchAPIRequest.go new file mode 100644 index 0000000000..acd494accf --- /dev/null +++ b/model/waybill/CainiaoWaybillIiSearchAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询面单服务订购及面单使用情况 API请求 +cainiao.waybill.ii.search + +获取发货地&CP开通状态&账户的使用情况 +*/ +type CainiaoWaybillIiSearchAPIRequest struct { + model.Params + // 物流公司code + _cpCode string +} + +// 初始化CainiaoWaybillIiSearchAPIRequest对象 +func NewCainiaoWaybillIiSearchRequest() *CainiaoWaybillIiSearchAPIRequest{ + return &CainiaoWaybillIiSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoWaybillIiSearchAPIRequest) GetApiMethodName() string { + return "cainiao.waybill.ii.search" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoWaybillIiSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CpCode Setter +// 物流公司code +func (r *CainiaoWaybillIiSearchAPIRequest) SetCpCode(_cpCode string) error { + r._cpCode = _cpCode + r.Set("cp_code", _cpCode) + return nil +} + +// CpCode Getter +func (r CainiaoWaybillIiSearchAPIRequest) GetCpCode() string { + return r._cpCode +} diff --git a/model/waybill/CainiaoWaybillIiSearchAPIResponse.go b/model/waybill/CainiaoWaybillIiSearchAPIResponse.go new file mode 100644 index 0000000000..087f0a96c0 --- /dev/null +++ b/model/waybill/CainiaoWaybillIiSearchAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询面单服务订购及面单使用情况 API返回值 +cainiao.waybill.ii.search + +获取发货地&CP开通状态&账户的使用情况 +*/ +type CainiaoWaybillIiSearchAPIResponse struct { + model.CommonResponse + CainiaoWaybillIiSearchAPIResponseModel +} + +// 查询面单服务订购及面单使用情况 成功返回结果 +type CainiaoWaybillIiSearchAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_waybill_ii_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // CP网点信息及对应的商家的发货信息 + WaybillApplySubscriptionCols []WaybillApplySubscriptionInfo `json:"waybill_apply_subscription_cols,omitempty" xml:"waybill_apply_subscription_cols>waybill_apply_subscription_info,omitempty"` +} diff --git a/model/waybill/CainiaoWaybillIiSearchResponse.go b/model/waybill/CainiaoWaybillIiSearchResponse.go deleted file mode 100644 index cb279bb2f4..0000000000 --- a/model/waybill/CainiaoWaybillIiSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询面单服务订购及面单使用情况 API返回值 -cainiao.waybill.ii.search - -获取发货地&CP开通状态&账户的使用情况 -*/ -type CainiaoWaybillIiSearchAPIResponse struct { - model.CommonResponse - CainiaoWaybillIiSearchResponse -} - -// 查询面单服务订购及面单使用情况 成功返回结果 -type CainiaoWaybillIiSearchResponse struct { - XMLName xml.Name `xml:"cainiao_waybill_ii_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // CP网点信息及对应的商家的发货信息 - WaybillApplySubscriptionCols []WaybillApplySubscriptionInfo `json:"waybill_apply_subscription_cols,omitempty" xml:"waybill_apply_subscription_cols>waybill_apply_subscription_info,omitempty"` -} diff --git a/model/waybill/CainiaoWaybillIiUpdateAPIRequest.go b/model/waybill/CainiaoWaybillIiUpdateAPIRequest.go new file mode 100644 index 0000000000..06bbd9fe5a --- /dev/null +++ b/model/waybill/CainiaoWaybillIiUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +电子面单云打印更新接口 API请求 +cainiao.waybill.ii.update + +商家更新电子面单号对应的面单信息。 +*/ +type CainiaoWaybillIiUpdateAPIRequest struct { + model.Params + // 更新请求信息 + _paramWaybillCloudPrintUpdateRequest *WaybillCloudPrintUpdateRequest +} + +// 初始化CainiaoWaybillIiUpdateAPIRequest对象 +func NewCainiaoWaybillIiUpdateRequest() *CainiaoWaybillIiUpdateAPIRequest{ + return &CainiaoWaybillIiUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoWaybillIiUpdateAPIRequest) GetApiMethodName() string { + return "cainiao.waybill.ii.update" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoWaybillIiUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamWaybillCloudPrintUpdateRequest Setter +// 更新请求信息 +func (r *CainiaoWaybillIiUpdateAPIRequest) SetParamWaybillCloudPrintUpdateRequest(_paramWaybillCloudPrintUpdateRequest *WaybillCloudPrintUpdateRequest) error { + r._paramWaybillCloudPrintUpdateRequest = _paramWaybillCloudPrintUpdateRequest + r.Set("param_waybill_cloud_print_update_request", _paramWaybillCloudPrintUpdateRequest) + return nil +} + +// ParamWaybillCloudPrintUpdateRequest Getter +func (r CainiaoWaybillIiUpdateAPIRequest) GetParamWaybillCloudPrintUpdateRequest() *WaybillCloudPrintUpdateRequest { + return r._paramWaybillCloudPrintUpdateRequest +} diff --git a/model/waybill/CainiaoWaybillIiUpdateAPIResponse.go b/model/waybill/CainiaoWaybillIiUpdateAPIResponse.go new file mode 100644 index 0000000000..cbbc156512 --- /dev/null +++ b/model/waybill/CainiaoWaybillIiUpdateAPIResponse.go @@ -0,0 +1,29 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +电子面单云打印更新接口 API返回值 +cainiao.waybill.ii.update + +商家更新电子面单号对应的面单信息。 +*/ +type CainiaoWaybillIiUpdateAPIResponse struct { + model.CommonResponse + CainiaoWaybillIiUpdateAPIResponseModel +} + +// 电子面单云打印更新接口 成功返回结果 +type CainiaoWaybillIiUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_waybill_ii_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 面单号 + WaybillCode string `json:"waybill_code,omitempty" xml:"waybill_code,omitempty"` + // 模板内容 + PrintData string `json:"print_data,omitempty" xml:"print_data,omitempty"` +} diff --git a/model/waybill/CainiaoWaybillIiUpdateResponse.go b/model/waybill/CainiaoWaybillIiUpdateResponse.go deleted file mode 100644 index 4a596a96dd..0000000000 --- a/model/waybill/CainiaoWaybillIiUpdateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -电子面单云打印更新接口 API返回值 -cainiao.waybill.ii.update - -商家更新电子面单号对应的面单信息。 -*/ -type CainiaoWaybillIiUpdateAPIResponse struct { - model.CommonResponse - CainiaoWaybillIiUpdateResponse -} - -// 电子面单云打印更新接口 成功返回结果 -type CainiaoWaybillIiUpdateResponse struct { - XMLName xml.Name `xml:"cainiao_waybill_ii_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 面单号 - WaybillCode string `json:"waybill_code,omitempty" xml:"waybill_code,omitempty"` - // 模板内容 - PrintData string `json:"print_data,omitempty" xml:"print_data,omitempty"` -} diff --git a/model/waybill/CainiaoWaybillPrivacySellerOrderGetAPIRequest.go b/model/waybill/CainiaoWaybillPrivacySellerOrderGetAPIRequest.go new file mode 100644 index 0000000000..fbe9b5c76a --- /dev/null +++ b/model/waybill/CainiaoWaybillPrivacySellerOrderGetAPIRequest.go @@ -0,0 +1,38 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +隐私面单商家订单查询 API请求 +cainiao.waybill.privacy.seller.order.get + +商家查询最近100天隐私面单记录 +*/ +type CainiaoWaybillPrivacySellerOrderGetAPIRequest struct { + model.Params +} + +// 初始化CainiaoWaybillPrivacySellerOrderGetAPIRequest对象 +func NewCainiaoWaybillPrivacySellerOrderGetRequest() *CainiaoWaybillPrivacySellerOrderGetAPIRequest{ + return &CainiaoWaybillPrivacySellerOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoWaybillPrivacySellerOrderGetAPIRequest) GetApiMethodName() string { + return "cainiao.waybill.privacy.seller.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoWaybillPrivacySellerOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/waybill/CainiaoWaybillPrivacySellerOrderGetAPIResponse.go b/model/waybill/CainiaoWaybillPrivacySellerOrderGetAPIResponse.go new file mode 100644 index 0000000000..e62375d762 --- /dev/null +++ b/model/waybill/CainiaoWaybillPrivacySellerOrderGetAPIResponse.go @@ -0,0 +1,37 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +隐私面单商家订单查询 API返回值 +cainiao.waybill.privacy.seller.order.get + +商家查询最近100天隐私面单记录 +*/ +type CainiaoWaybillPrivacySellerOrderGetAPIResponse struct { + model.CommonResponse + CainiaoWaybillPrivacySellerOrderGetAPIResponseModel +} + +// 隐私面单商家订单查询 成功返回结果 +type CainiaoWaybillPrivacySellerOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_waybill_privacy_seller_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误列表 + ErrorCodeList []string `json:"error_code_list,omitempty" xml:"error_code_list>string,omitempty"` + // 是否失败 + Failure bool `json:"failure,omitempty" xml:"failure,omitempty"` + // 第一个错误 + OneErrorInfo string `json:"one_error_info,omitempty" xml:"one_error_info,omitempty"` + // 错误信息 + ErrorInfoList []string `json:"error_info_list,omitempty" xml:"error_info_list>string,omitempty"` + // objectId + ObjectId string `json:"object_id,omitempty" xml:"object_id,omitempty"` + // 返回值 + ResponseList []CainiaoWaybillPrivacySellerOrderGetModule `json:"response_list,omitempty" xml:"response_list>cainiao_waybill_privacy_seller_order_get_module,omitempty"` +} diff --git a/model/waybill/CainiaoWaybillPrivacySellerOrderGetResponse.go b/model/waybill/CainiaoWaybillPrivacySellerOrderGetResponse.go deleted file mode 100644 index ff49776114..0000000000 --- a/model/waybill/CainiaoWaybillPrivacySellerOrderGetResponse.go +++ /dev/null @@ -1,37 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -隐私面单商家订单查询 API返回值 -cainiao.waybill.privacy.seller.order.get - -商家查询最近100天隐私面单记录 -*/ -type CainiaoWaybillPrivacySellerOrderGetAPIResponse struct { - model.CommonResponse - CainiaoWaybillPrivacySellerOrderGetResponse -} - -// 隐私面单商家订单查询 成功返回结果 -type CainiaoWaybillPrivacySellerOrderGetResponse struct { - XMLName xml.Name `xml:"cainiao_waybill_privacy_seller_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误列表 - ErrorCodeList []string `json:"error_code_list,omitempty" xml:"error_code_list>string,omitempty"` - // 是否失败 - Failure bool `json:"failure,omitempty" xml:"failure,omitempty"` - // 第一个错误 - OneErrorInfo string `json:"one_error_info,omitempty" xml:"one_error_info,omitempty"` - // 错误信息 - ErrorInfoList []string `json:"error_info_list,omitempty" xml:"error_info_list>string,omitempty"` - // objectId - ObjectId string `json:"object_id,omitempty" xml:"object_id,omitempty"` - // 返回值 - ResponseList []CainiaoWaybillPrivacySellerOrderGetModule `json:"response_list,omitempty" xml:"response_list>cainiao_waybill_privacy_seller_order_get_module,omitempty"` -} diff --git a/model/waybill/CainiaoWaybillPrivacySubscriptionGetAPIRequest.go b/model/waybill/CainiaoWaybillPrivacySubscriptionGetAPIRequest.go new file mode 100644 index 0000000000..c217c544fb --- /dev/null +++ b/model/waybill/CainiaoWaybillPrivacySubscriptionGetAPIRequest.go @@ -0,0 +1,38 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +隐私面单商家订购查询 API请求 +cainiao.waybill.privacy.subscription.get + +ISV查询商家是否订购隐私面单 +*/ +type CainiaoWaybillPrivacySubscriptionGetAPIRequest struct { + model.Params +} + +// 初始化CainiaoWaybillPrivacySubscriptionGetAPIRequest对象 +func NewCainiaoWaybillPrivacySubscriptionGetRequest() *CainiaoWaybillPrivacySubscriptionGetAPIRequest{ + return &CainiaoWaybillPrivacySubscriptionGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoWaybillPrivacySubscriptionGetAPIRequest) GetApiMethodName() string { + return "cainiao.waybill.privacy.subscription.get" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoWaybillPrivacySubscriptionGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/waybill/CainiaoWaybillPrivacySubscriptionGetAPIResponse.go b/model/waybill/CainiaoWaybillPrivacySubscriptionGetAPIResponse.go new file mode 100644 index 0000000000..05fdab5135 --- /dev/null +++ b/model/waybill/CainiaoWaybillPrivacySubscriptionGetAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +隐私面单商家订购查询 API返回值 +cainiao.waybill.privacy.subscription.get + +ISV查询商家是否订购隐私面单 +*/ +type CainiaoWaybillPrivacySubscriptionGetAPIResponse struct { + model.CommonResponse + CainiaoWaybillPrivacySubscriptionGetAPIResponseModel +} + +// 隐私面单商家订购查询 成功返回结果 +type CainiaoWaybillPrivacySubscriptionGetAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_waybill_privacy_subscription_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *CainiaoWaybillPrivacySubscriptionGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/waybill/CainiaoWaybillPrivacySubscriptionGetResponse.go b/model/waybill/CainiaoWaybillPrivacySubscriptionGetResponse.go deleted file mode 100644 index 1e6c876247..0000000000 --- a/model/waybill/CainiaoWaybillPrivacySubscriptionGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -隐私面单商家订购查询 API返回值 -cainiao.waybill.privacy.subscription.get - -ISV查询商家是否订购隐私面单 -*/ -type CainiaoWaybillPrivacySubscriptionGetAPIResponse struct { - model.CommonResponse - CainiaoWaybillPrivacySubscriptionGetResponse -} - -// 隐私面单商家订购查询 成功返回结果 -type CainiaoWaybillPrivacySubscriptionGetResponse struct { - XMLName xml.Name `xml:"cainiao_waybill_privacy_subscription_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *CainiaoWaybillPrivacySubscriptionGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/waybill/TaobaoWlbWaybillICancelAPIRequest.go b/model/waybill/TaobaoWlbWaybillICancelAPIRequest.go new file mode 100644 index 0000000000..c79dc43670 --- /dev/null +++ b/model/waybill/TaobaoWlbWaybillICancelAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家取消获取的电子面单号v1.0 API请求 +taobao.wlb.waybill.i.cancel + +面单号有误需要取消的时候,调用该接口取消获取的电子面单。 +*/ +type TaobaoWlbWaybillICancelAPIRequest struct { + model.Params + // 取消接口入参 + _waybillApplyCancelRequest *WaybillApplyCancelRequest +} + +// 初始化TaobaoWlbWaybillICancelAPIRequest对象 +func NewTaobaoWlbWaybillICancelRequest() *TaobaoWlbWaybillICancelAPIRequest{ + return &TaobaoWlbWaybillICancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWaybillICancelAPIRequest) GetApiMethodName() string { + return "taobao.wlb.waybill.i.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWaybillICancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WaybillApplyCancelRequest Setter +// 取消接口入参 +func (r *TaobaoWlbWaybillICancelAPIRequest) SetWaybillApplyCancelRequest(_waybillApplyCancelRequest *WaybillApplyCancelRequest) error { + r._waybillApplyCancelRequest = _waybillApplyCancelRequest + r.Set("waybill_apply_cancel_request", _waybillApplyCancelRequest) + return nil +} + +// WaybillApplyCancelRequest Getter +func (r TaobaoWlbWaybillICancelAPIRequest) GetWaybillApplyCancelRequest() *WaybillApplyCancelRequest { + return r._waybillApplyCancelRequest +} diff --git a/model/waybill/TaobaoWlbWaybillICancelAPIResponse.go b/model/waybill/TaobaoWlbWaybillICancelAPIResponse.go new file mode 100644 index 0000000000..c423903554 --- /dev/null +++ b/model/waybill/TaobaoWlbWaybillICancelAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家取消获取的电子面单号v1.0 API返回值 +taobao.wlb.waybill.i.cancel + +面单号有误需要取消的时候,调用该接口取消获取的电子面单。 +*/ +type TaobaoWlbWaybillICancelAPIResponse struct { + model.CommonResponse + TaobaoWlbWaybillICancelAPIResponseModel +} + +// 商家取消获取的电子面单号v1.0 成功返回结果 +type TaobaoWlbWaybillICancelAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_waybill_i_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用取消是否成功 + CancelResult bool `json:"cancel_result,omitempty" xml:"cancel_result,omitempty"` +} diff --git a/model/waybill/TaobaoWlbWaybillICancelResponse.go b/model/waybill/TaobaoWlbWaybillICancelResponse.go deleted file mode 100644 index 71ceff62b0..0000000000 --- a/model/waybill/TaobaoWlbWaybillICancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家取消获取的电子面单号v1.0 API返回值 -taobao.wlb.waybill.i.cancel - -面单号有误需要取消的时候,调用该接口取消获取的电子面单。 -*/ -type TaobaoWlbWaybillICancelAPIResponse struct { - model.CommonResponse - TaobaoWlbWaybillICancelResponse -} - -// 商家取消获取的电子面单号v1.0 成功返回结果 -type TaobaoWlbWaybillICancelResponse struct { - XMLName xml.Name `xml:"wlb_waybill_i_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用取消是否成功 - CancelResult bool `json:"cancel_result,omitempty" xml:"cancel_result,omitempty"` -} diff --git a/model/waybill/TaobaoWlbWaybillIFullupdateAPIRequest.go b/model/waybill/TaobaoWlbWaybillIFullupdateAPIRequest.go new file mode 100644 index 0000000000..451fdc0705 --- /dev/null +++ b/model/waybill/TaobaoWlbWaybillIFullupdateAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +面单信息更新接口v1.0 API请求 +taobao.wlb.waybill.i.fullupdate + +商家更新电子面单号对应的订单信息。

a.涉及到订单信息(如拆/合单、取消订单等)、修改发货地的逻辑时候,需要使用CANCEL+GET组合操作。一般的面单信息更新使用该接口;

b.该接口是全量修改接口,对于不做更新的字段也要把原有的字段值传进去,否则做为修改为空处理。 +*/ +type TaobaoWlbWaybillIFullupdateAPIRequest struct { + model.Params + // 更新面单信息请求 + _waybillApplyFullUpdateRequest *WaybillApplyFullUpdateRequest +} + +// 初始化TaobaoWlbWaybillIFullupdateAPIRequest对象 +func NewTaobaoWlbWaybillIFullupdateRequest() *TaobaoWlbWaybillIFullupdateAPIRequest{ + return &TaobaoWlbWaybillIFullupdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWaybillIFullupdateAPIRequest) GetApiMethodName() string { + return "taobao.wlb.waybill.i.fullupdate" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWaybillIFullupdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WaybillApplyFullUpdateRequest Setter +// 更新面单信息请求 +func (r *TaobaoWlbWaybillIFullupdateAPIRequest) SetWaybillApplyFullUpdateRequest(_waybillApplyFullUpdateRequest *WaybillApplyFullUpdateRequest) error { + r._waybillApplyFullUpdateRequest = _waybillApplyFullUpdateRequest + r.Set("waybill_apply_full_update_request", _waybillApplyFullUpdateRequest) + return nil +} + +// WaybillApplyFullUpdateRequest Getter +func (r TaobaoWlbWaybillIFullupdateAPIRequest) GetWaybillApplyFullUpdateRequest() *WaybillApplyFullUpdateRequest { + return r._waybillApplyFullUpdateRequest +} diff --git a/model/waybill/TaobaoWlbWaybillIFullupdateAPIResponse.go b/model/waybill/TaobaoWlbWaybillIFullupdateAPIResponse.go new file mode 100644 index 0000000000..98a17d87ed --- /dev/null +++ b/model/waybill/TaobaoWlbWaybillIFullupdateAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +面单信息更新接口v1.0 API返回值 +taobao.wlb.waybill.i.fullupdate + +商家更新电子面单号对应的订单信息。

a.涉及到订单信息(如拆/合单、取消订单等)、修改发货地的逻辑时候,需要使用CANCEL+GET组合操作。一般的面单信息更新使用该接口;

b.该接口是全量修改接口,对于不做更新的字段也要把原有的字段值传进去,否则做为修改为空处理。 +*/ +type TaobaoWlbWaybillIFullupdateAPIResponse struct { + model.CommonResponse + TaobaoWlbWaybillIFullupdateAPIResponseModel +} + +// 面单信息更新接口v1.0 成功返回结果 +type TaobaoWlbWaybillIFullupdateAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_waybill_i_fullupdate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 更新接口出参 + WaybillApplyUpdateInfo *WaybillApplyUpdateInfo `json:"waybill_apply_update_info,omitempty" xml:"waybill_apply_update_info,omitempty"` +} diff --git a/model/waybill/TaobaoWlbWaybillIFullupdateResponse.go b/model/waybill/TaobaoWlbWaybillIFullupdateResponse.go deleted file mode 100644 index 12585aca4b..0000000000 --- a/model/waybill/TaobaoWlbWaybillIFullupdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -面单信息更新接口v1.0 API返回值 -taobao.wlb.waybill.i.fullupdate - -商家更新电子面单号对应的订单信息。

a.涉及到订单信息(如拆/合单、取消订单等)、修改发货地的逻辑时候,需要使用CANCEL+GET组合操作。一般的面单信息更新使用该接口;

b.该接口是全量修改接口,对于不做更新的字段也要把原有的字段值传进去,否则做为修改为空处理。 -*/ -type TaobaoWlbWaybillIFullupdateAPIResponse struct { - model.CommonResponse - TaobaoWlbWaybillIFullupdateResponse -} - -// 面单信息更新接口v1.0 成功返回结果 -type TaobaoWlbWaybillIFullupdateResponse struct { - XMLName xml.Name `xml:"wlb_waybill_i_fullupdate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 更新接口出参 - WaybillApplyUpdateInfo *WaybillApplyUpdateInfo `json:"waybill_apply_update_info,omitempty" xml:"waybill_apply_update_info,omitempty"` -} diff --git a/model/waybill/TaobaoWlbWaybillIGetAPIRequest.go b/model/waybill/TaobaoWlbWaybillIGetAPIRequest.go new file mode 100644 index 0000000000..9aafb0fb63 --- /dev/null +++ b/model/waybill/TaobaoWlbWaybillIGetAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取物流服务商电子面单号v1.0 API请求 +taobao.wlb.waybill.i.get + +商家根据订单信息,实时、批量获取指定物流服务商的电子面单号。 +*/ +type TaobaoWlbWaybillIGetAPIRequest struct { + model.Params + // 面单申请 + _waybillApplyNewRequest *WaybillApplyNewRequest +} + +// 初始化TaobaoWlbWaybillIGetAPIRequest对象 +func NewTaobaoWlbWaybillIGetRequest() *TaobaoWlbWaybillIGetAPIRequest{ + return &TaobaoWlbWaybillIGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWaybillIGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.waybill.i.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWaybillIGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WaybillApplyNewRequest Setter +// 面单申请 +func (r *TaobaoWlbWaybillIGetAPIRequest) SetWaybillApplyNewRequest(_waybillApplyNewRequest *WaybillApplyNewRequest) error { + r._waybillApplyNewRequest = _waybillApplyNewRequest + r.Set("waybill_apply_new_request", _waybillApplyNewRequest) + return nil +} + +// WaybillApplyNewRequest Getter +func (r TaobaoWlbWaybillIGetAPIRequest) GetWaybillApplyNewRequest() *WaybillApplyNewRequest { + return r._waybillApplyNewRequest +} diff --git a/model/waybill/TaobaoWlbWaybillIGetAPIResponse.go b/model/waybill/TaobaoWlbWaybillIGetAPIResponse.go new file mode 100644 index 0000000000..21254ab386 --- /dev/null +++ b/model/waybill/TaobaoWlbWaybillIGetAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取物流服务商电子面单号v1.0 API返回值 +taobao.wlb.waybill.i.get + +商家根据订单信息,实时、批量获取指定物流服务商的电子面单号。 +*/ +type TaobaoWlbWaybillIGetAPIResponse struct { + model.CommonResponse + TaobaoWlbWaybillIGetAPIResponseModel +} + +// 获取物流服务商电子面单号v1.0 成功返回结果 +type TaobaoWlbWaybillIGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_waybill_i_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 面单申请接口返回信息 + WaybillApplyNewCols []WaybillApplyNewInfo `json:"waybill_apply_new_cols,omitempty" xml:"waybill_apply_new_cols>waybill_apply_new_info,omitempty"` +} diff --git a/model/waybill/TaobaoWlbWaybillIGetResponse.go b/model/waybill/TaobaoWlbWaybillIGetResponse.go deleted file mode 100644 index eb01a7baf5..0000000000 --- a/model/waybill/TaobaoWlbWaybillIGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取物流服务商电子面单号v1.0 API返回值 -taobao.wlb.waybill.i.get - -商家根据订单信息,实时、批量获取指定物流服务商的电子面单号。 -*/ -type TaobaoWlbWaybillIGetAPIResponse struct { - model.CommonResponse - TaobaoWlbWaybillIGetResponse -} - -// 获取物流服务商电子面单号v1.0 成功返回结果 -type TaobaoWlbWaybillIGetResponse struct { - XMLName xml.Name `xml:"wlb_waybill_i_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 面单申请接口返回信息 - WaybillApplyNewCols []WaybillApplyNewInfo `json:"waybill_apply_new_cols,omitempty" xml:"waybill_apply_new_cols>waybill_apply_new_info,omitempty"` -} diff --git a/model/waybill/TaobaoWlbWaybillIPrintAPIRequest.go b/model/waybill/TaobaoWlbWaybillIPrintAPIRequest.go new file mode 100644 index 0000000000..b7b51f4199 --- /dev/null +++ b/model/waybill/TaobaoWlbWaybillIPrintAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +打印确认接口v1.0 API请求 +taobao.wlb.waybill.i.print + +打印面单前的校验接口,判断面单号信息与订单信息是否匹配。 +*/ +type TaobaoWlbWaybillIPrintAPIRequest struct { + model.Params + // 打印请求 + _waybillApplyPrintCheckRequest *WaybillApplyPrintCheckRequest +} + +// 初始化TaobaoWlbWaybillIPrintAPIRequest对象 +func NewTaobaoWlbWaybillIPrintRequest() *TaobaoWlbWaybillIPrintAPIRequest{ + return &TaobaoWlbWaybillIPrintAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWaybillIPrintAPIRequest) GetApiMethodName() string { + return "taobao.wlb.waybill.i.print" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWaybillIPrintAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WaybillApplyPrintCheckRequest Setter +// 打印请求 +func (r *TaobaoWlbWaybillIPrintAPIRequest) SetWaybillApplyPrintCheckRequest(_waybillApplyPrintCheckRequest *WaybillApplyPrintCheckRequest) error { + r._waybillApplyPrintCheckRequest = _waybillApplyPrintCheckRequest + r.Set("waybill_apply_print_check_request", _waybillApplyPrintCheckRequest) + return nil +} + +// WaybillApplyPrintCheckRequest Getter +func (r TaobaoWlbWaybillIPrintAPIRequest) GetWaybillApplyPrintCheckRequest() *WaybillApplyPrintCheckRequest { + return r._waybillApplyPrintCheckRequest +} diff --git a/model/waybill/TaobaoWlbWaybillIPrintAPIResponse.go b/model/waybill/TaobaoWlbWaybillIPrintAPIResponse.go new file mode 100644 index 0000000000..872d2ec61c --- /dev/null +++ b/model/waybill/TaobaoWlbWaybillIPrintAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +打印确认接口v1.0 API返回值 +taobao.wlb.waybill.i.print + +打印面单前的校验接口,判断面单号信息与订单信息是否匹配。 +*/ +type TaobaoWlbWaybillIPrintAPIResponse struct { + model.CommonResponse + TaobaoWlbWaybillIPrintAPIResponseModel +} + +// 打印确认接口v1.0 成功返回结果 +type TaobaoWlbWaybillIPrintAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_waybill_i_print_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 面单打印信息 + WaybillApplyPrintCheckInfos []WaybillApplyPrintCheckInfo `json:"waybill_apply_print_check_infos,omitempty" xml:"waybill_apply_print_check_infos>waybill_apply_print_check_info,omitempty"` +} diff --git a/model/waybill/TaobaoWlbWaybillIPrintResponse.go b/model/waybill/TaobaoWlbWaybillIPrintResponse.go deleted file mode 100644 index 43ea0c9e7b..0000000000 --- a/model/waybill/TaobaoWlbWaybillIPrintResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -打印确认接口v1.0 API返回值 -taobao.wlb.waybill.i.print - -打印面单前的校验接口,判断面单号信息与订单信息是否匹配。 -*/ -type TaobaoWlbWaybillIPrintAPIResponse struct { - model.CommonResponse - TaobaoWlbWaybillIPrintResponse -} - -// 打印确认接口v1.0 成功返回结果 -type TaobaoWlbWaybillIPrintResponse struct { - XMLName xml.Name `xml:"wlb_waybill_i_print_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 面单打印信息 - WaybillApplyPrintCheckInfos []WaybillApplyPrintCheckInfo `json:"waybill_apply_print_check_infos,omitempty" xml:"waybill_apply_print_check_infos>waybill_apply_print_check_info,omitempty"` -} diff --git a/model/waybill/TaobaoWlbWaybillIProductAPIRequest.go b/model/waybill/TaobaoWlbWaybillIProductAPIRequest.go new file mode 100644 index 0000000000..da92db8bd3 --- /dev/null +++ b/model/waybill/TaobaoWlbWaybillIProductAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家查询物流商产品类型接口 API请求 +taobao.wlb.waybill.i.product + +商家可以查询物流商的产品类型和服务能力。 +*/ +type TaobaoWlbWaybillIProductAPIRequest struct { + model.Params + // 查询物流商电子面单产品类型入参 + _waybillProductTypeRequest *WaybillProductTypeRequest +} + +// 初始化TaobaoWlbWaybillIProductAPIRequest对象 +func NewTaobaoWlbWaybillIProductRequest() *TaobaoWlbWaybillIProductAPIRequest{ + return &TaobaoWlbWaybillIProductAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWaybillIProductAPIRequest) GetApiMethodName() string { + return "taobao.wlb.waybill.i.product" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWaybillIProductAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WaybillProductTypeRequest Setter +// 查询物流商电子面单产品类型入参 +func (r *TaobaoWlbWaybillIProductAPIRequest) SetWaybillProductTypeRequest(_waybillProductTypeRequest *WaybillProductTypeRequest) error { + r._waybillProductTypeRequest = _waybillProductTypeRequest + r.Set("waybill_product_type_request", _waybillProductTypeRequest) + return nil +} + +// WaybillProductTypeRequest Getter +func (r TaobaoWlbWaybillIProductAPIRequest) GetWaybillProductTypeRequest() *WaybillProductTypeRequest { + return r._waybillProductTypeRequest +} diff --git a/model/waybill/TaobaoWlbWaybillIProductAPIResponse.go b/model/waybill/TaobaoWlbWaybillIProductAPIResponse.go new file mode 100644 index 0000000000..0a97666f4a --- /dev/null +++ b/model/waybill/TaobaoWlbWaybillIProductAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家查询物流商产品类型接口 API返回值 +taobao.wlb.waybill.i.product + +商家可以查询物流商的产品类型和服务能力。 +*/ +type TaobaoWlbWaybillIProductAPIResponse struct { + model.CommonResponse + TaobaoWlbWaybillIProductAPIResponseModel +} + +// 商家查询物流商产品类型接口 成功返回结果 +type TaobaoWlbWaybillIProductAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_waybill_i_product_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 产品类型返回 + ProductTypes []WaybillProductType `json:"product_types,omitempty" xml:"product_types>waybill_product_type,omitempty"` +} diff --git a/model/waybill/TaobaoWlbWaybillIProductResponse.go b/model/waybill/TaobaoWlbWaybillIProductResponse.go deleted file mode 100644 index 43f8649f98..0000000000 --- a/model/waybill/TaobaoWlbWaybillIProductResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家查询物流商产品类型接口 API返回值 -taobao.wlb.waybill.i.product - -商家可以查询物流商的产品类型和服务能力。 -*/ -type TaobaoWlbWaybillIProductAPIResponse struct { - model.CommonResponse - TaobaoWlbWaybillIProductResponse -} - -// 商家查询物流商产品类型接口 成功返回结果 -type TaobaoWlbWaybillIProductResponse struct { - XMLName xml.Name `xml:"wlb_waybill_i_product_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 产品类型返回 - ProductTypes []WaybillProductType `json:"product_types,omitempty" xml:"product_types>waybill_product_type,omitempty"` -} diff --git a/model/waybill/TaobaoWlbWaybillIQuerydetailAPIRequest.go b/model/waybill/TaobaoWlbWaybillIQuerydetailAPIRequest.go new file mode 100644 index 0000000000..bb40551ada --- /dev/null +++ b/model/waybill/TaobaoWlbWaybillIQuerydetailAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查面单号状态v1.0 API请求 +taobao.wlb.waybill.i.querydetail + +查看面单号的当前状态,如签收、发货、失效等。 +*/ +type TaobaoWlbWaybillIQuerydetailAPIRequest struct { + model.Params + // 面单查询请求 + _waybillDetailQueryRequest *WaybillDetailQueryRequest +} + +// 初始化TaobaoWlbWaybillIQuerydetailAPIRequest对象 +func NewTaobaoWlbWaybillIQuerydetailRequest() *TaobaoWlbWaybillIQuerydetailAPIRequest{ + return &TaobaoWlbWaybillIQuerydetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWaybillIQuerydetailAPIRequest) GetApiMethodName() string { + return "taobao.wlb.waybill.i.querydetail" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWaybillIQuerydetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WaybillDetailQueryRequest Setter +// 面单查询请求 +func (r *TaobaoWlbWaybillIQuerydetailAPIRequest) SetWaybillDetailQueryRequest(_waybillDetailQueryRequest *WaybillDetailQueryRequest) error { + r._waybillDetailQueryRequest = _waybillDetailQueryRequest + r.Set("waybill_detail_query_request", _waybillDetailQueryRequest) + return nil +} + +// WaybillDetailQueryRequest Getter +func (r TaobaoWlbWaybillIQuerydetailAPIRequest) GetWaybillDetailQueryRequest() *WaybillDetailQueryRequest { + return r._waybillDetailQueryRequest +} diff --git a/model/waybill/TaobaoWlbWaybillIQuerydetailAPIResponse.go b/model/waybill/TaobaoWlbWaybillIQuerydetailAPIResponse.go new file mode 100644 index 0000000000..2ef263d3a8 --- /dev/null +++ b/model/waybill/TaobaoWlbWaybillIQuerydetailAPIResponse.go @@ -0,0 +1,33 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查面单号状态v1.0 API返回值 +taobao.wlb.waybill.i.querydetail + +查看面单号的当前状态,如签收、发货、失效等。 +*/ +type TaobaoWlbWaybillIQuerydetailAPIResponse struct { + model.CommonResponse + TaobaoWlbWaybillIQuerydetailAPIResponseModel +} + +// 查面单号状态v1.0 成功返回结果 +type TaobaoWlbWaybillIQuerydetailAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_waybill_i_querydetail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 不存在的面单号 + InexistentWaybillCodes []string `json:"inexistent_waybill_codes,omitempty" xml:"inexistent_waybill_codes>string,omitempty"` + // 查询是否成功 + QuerySuccess bool `json:"query_success,omitempty" xml:"query_success,omitempty"` + // 面单详情 + WaybillDetails []WaybillDetailQueryInfo `json:"waybill_details,omitempty" xml:"waybill_details>waybill_detail_query_info,omitempty"` + // 面单查询错误编码 + ErrorCodes []string `json:"error_codes,omitempty" xml:"error_codes>string,omitempty"` +} diff --git a/model/waybill/TaobaoWlbWaybillIQuerydetailResponse.go b/model/waybill/TaobaoWlbWaybillIQuerydetailResponse.go deleted file mode 100644 index 9f1cc3f5e2..0000000000 --- a/model/waybill/TaobaoWlbWaybillIQuerydetailResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查面单号状态v1.0 API返回值 -taobao.wlb.waybill.i.querydetail - -查看面单号的当前状态,如签收、发货、失效等。 -*/ -type TaobaoWlbWaybillIQuerydetailAPIResponse struct { - model.CommonResponse - TaobaoWlbWaybillIQuerydetailResponse -} - -// 查面单号状态v1.0 成功返回结果 -type TaobaoWlbWaybillIQuerydetailResponse struct { - XMLName xml.Name `xml:"wlb_waybill_i_querydetail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 不存在的面单号 - InexistentWaybillCodes []string `json:"inexistent_waybill_codes,omitempty" xml:"inexistent_waybill_codes>string,omitempty"` - // 查询是否成功 - QuerySuccess bool `json:"query_success,omitempty" xml:"query_success,omitempty"` - // 面单详情 - WaybillDetails []WaybillDetailQueryInfo `json:"waybill_details,omitempty" xml:"waybill_details>waybill_detail_query_info,omitempty"` - // 面单查询错误编码 - ErrorCodes []string `json:"error_codes,omitempty" xml:"error_codes>string,omitempty"` -} diff --git a/model/waybill/TaobaoWlbWaybillISearchAPIRequest.go b/model/waybill/TaobaoWlbWaybillISearchAPIRequest.go new file mode 100644 index 0000000000..8c807d865d --- /dev/null +++ b/model/waybill/TaobaoWlbWaybillISearchAPIRequest.go @@ -0,0 +1,52 @@ +package waybill + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询面单服务订购及面单使用情况v1.0 API请求 +taobao.wlb.waybill.i.search + +获取发货地&CP开通状态&账户的使用情况 +*/ +type TaobaoWlbWaybillISearchAPIRequest struct { + model.Params + // 查询网点信息 + _waybillApplyRequest *WaybillApplyRequest +} + +// 初始化TaobaoWlbWaybillISearchAPIRequest对象 +func NewTaobaoWlbWaybillISearchRequest() *TaobaoWlbWaybillISearchAPIRequest{ + return &TaobaoWlbWaybillISearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWaybillISearchAPIRequest) GetApiMethodName() string { + return "taobao.wlb.waybill.i.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWaybillISearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WaybillApplyRequest Setter +// 查询网点信息 +func (r *TaobaoWlbWaybillISearchAPIRequest) SetWaybillApplyRequest(_waybillApplyRequest *WaybillApplyRequest) error { + r._waybillApplyRequest = _waybillApplyRequest + r.Set("waybill_apply_request", _waybillApplyRequest) + return nil +} + +// WaybillApplyRequest Getter +func (r TaobaoWlbWaybillISearchAPIRequest) GetWaybillApplyRequest() *WaybillApplyRequest { + return r._waybillApplyRequest +} diff --git a/model/waybill/TaobaoWlbWaybillISearchAPIResponse.go b/model/waybill/TaobaoWlbWaybillISearchAPIResponse.go new file mode 100644 index 0000000000..47e5c73273 --- /dev/null +++ b/model/waybill/TaobaoWlbWaybillISearchAPIResponse.go @@ -0,0 +1,27 @@ +package waybill + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询面单服务订购及面单使用情况v1.0 API返回值 +taobao.wlb.waybill.i.search + +获取发货地&CP开通状态&账户的使用情况 +*/ +type TaobaoWlbWaybillISearchAPIResponse struct { + model.CommonResponse + TaobaoWlbWaybillISearchAPIResponseModel +} + +// 查询面单服务订购及面单使用情况v1.0 成功返回结果 +type TaobaoWlbWaybillISearchAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_waybill_i_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订购关系 + Subscribtions []WaybillApplySubscriptionInfo `json:"subscribtions,omitempty" xml:"subscribtions>waybill_apply_subscription_info,omitempty"` +} diff --git a/model/waybill/TaobaoWlbWaybillISearchResponse.go b/model/waybill/TaobaoWlbWaybillISearchResponse.go deleted file mode 100644 index 5bb30c15ec..0000000000 --- a/model/waybill/TaobaoWlbWaybillISearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package waybill - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询面单服务订购及面单使用情况v1.0 API返回值 -taobao.wlb.waybill.i.search - -获取发货地&CP开通状态&账户的使用情况 -*/ -type TaobaoWlbWaybillISearchAPIResponse struct { - model.CommonResponse - TaobaoWlbWaybillISearchResponse -} - -// 查询面单服务订购及面单使用情况v1.0 成功返回结果 -type TaobaoWlbWaybillISearchResponse struct { - XMLName xml.Name `xml:"wlb_waybill_i_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订购关系 - Subscribtions []WaybillApplySubscriptionInfo `json:"subscribtions,omitempty" xml:"subscribtions>waybill_apply_subscription_info,omitempty"` -} diff --git a/model/wdk/AlibabaIfpFulfillWarehouseTokenQueryAPIRequest.go b/model/wdk/AlibabaIfpFulfillWarehouseTokenQueryAPIRequest.go new file mode 100644 index 0000000000..1b98e18a47 --- /dev/null +++ b/model/wdk/AlibabaIfpFulfillWarehouseTokenQueryAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同城令牌打印接口 API请求 +alibaba.ifp.fulfill.warehouse.token.query + +用于仓内作业打印包裹信息 +*/ +type AlibabaIfpFulfillWarehouseTokenQueryAPIRequest struct { + model.Params + // 入参 + _packageQueryDTO *PackageQueryDto +} + +// 初始化AlibabaIfpFulfillWarehouseTokenQueryAPIRequest对象 +func NewAlibabaIfpFulfillWarehouseTokenQueryRequest() *AlibabaIfpFulfillWarehouseTokenQueryAPIRequest{ + return &AlibabaIfpFulfillWarehouseTokenQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIfpFulfillWarehouseTokenQueryAPIRequest) GetApiMethodName() string { + return "alibaba.ifp.fulfill.warehouse.token.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIfpFulfillWarehouseTokenQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PackageQueryDTO Setter +// 入参 +func (r *AlibabaIfpFulfillWarehouseTokenQueryAPIRequest) SetPackageQueryDTO(_packageQueryDTO *PackageQueryDto) error { + r._packageQueryDTO = _packageQueryDTO + r.Set("package_query_d_t_o", _packageQueryDTO) + return nil +} + +// PackageQueryDTO Getter +func (r AlibabaIfpFulfillWarehouseTokenQueryAPIRequest) GetPackageQueryDTO() *PackageQueryDto { + return r._packageQueryDTO +} diff --git a/model/wdk/AlibabaIfpFulfillWarehouseTokenQueryAPIResponse.go b/model/wdk/AlibabaIfpFulfillWarehouseTokenQueryAPIResponse.go new file mode 100644 index 0000000000..ab9cbce597 --- /dev/null +++ b/model/wdk/AlibabaIfpFulfillWarehouseTokenQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同城令牌打印接口 API返回值 +alibaba.ifp.fulfill.warehouse.token.query + +用于仓内作业打印包裹信息 +*/ +type AlibabaIfpFulfillWarehouseTokenQueryAPIResponse struct { + model.CommonResponse + AlibabaIfpFulfillWarehouseTokenQueryAPIResponseModel +} + +// 同城令牌打印接口 成功返回结果 +type AlibabaIfpFulfillWarehouseTokenQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ifp_fulfill_warehouse_token_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + WorkResult *WorkResult `json:"work_result,omitempty" xml:"work_result,omitempty"` +} diff --git a/model/wdk/AlibabaIfpFulfillWarehouseTokenQueryResponse.go b/model/wdk/AlibabaIfpFulfillWarehouseTokenQueryResponse.go deleted file mode 100644 index 900dc92665..0000000000 --- a/model/wdk/AlibabaIfpFulfillWarehouseTokenQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同城令牌打印接口 API返回值 -alibaba.ifp.fulfill.warehouse.token.query - -用于仓内作业打印包裹信息 -*/ -type AlibabaIfpFulfillWarehouseTokenQueryAPIResponse struct { - model.CommonResponse - AlibabaIfpFulfillWarehouseTokenQueryResponse -} - -// 同城令牌打印接口 成功返回结果 -type AlibabaIfpFulfillWarehouseTokenQueryResponse struct { - XMLName xml.Name `xml:"alibaba_ifp_fulfill_warehouse_token_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - WorkResult *WorkResult `json:"work_result,omitempty" xml:"work_result,omitempty"` -} diff --git a/model/wdk/AlibabaNewretailPurchasePriceDeleteAPIRequest.go b/model/wdk/AlibabaNewretailPurchasePriceDeleteAPIRequest.go new file mode 100644 index 0000000000..1eb00f1684 --- /dev/null +++ b/model/wdk/AlibabaNewretailPurchasePriceDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +共享库存 商户删除采购价 API请求 +alibaba.newretail.purchase.price.delete + +共享库存 商户删除采购价 +*/ +type AlibabaNewretailPurchasePriceDeleteAPIRequest struct { + model.Params + // 调用入参 + _deletePurchasePriceRequest *DeletePurchasePriceRequest +} + +// 初始化AlibabaNewretailPurchasePriceDeleteAPIRequest对象 +func NewAlibabaNewretailPurchasePriceDeleteRequest() *AlibabaNewretailPurchasePriceDeleteAPIRequest{ + return &AlibabaNewretailPurchasePriceDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNewretailPurchasePriceDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.newretail.purchase.price.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNewretailPurchasePriceDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeletePurchasePriceRequest Setter +// 调用入参 +func (r *AlibabaNewretailPurchasePriceDeleteAPIRequest) SetDeletePurchasePriceRequest(_deletePurchasePriceRequest *DeletePurchasePriceRequest) error { + r._deletePurchasePriceRequest = _deletePurchasePriceRequest + r.Set("delete_purchase_price_request", _deletePurchasePriceRequest) + return nil +} + +// DeletePurchasePriceRequest Getter +func (r AlibabaNewretailPurchasePriceDeleteAPIRequest) GetDeletePurchasePriceRequest() *DeletePurchasePriceRequest { + return r._deletePurchasePriceRequest +} diff --git a/model/wdk/AlibabaNewretailPurchasePriceDeleteAPIResponse.go b/model/wdk/AlibabaNewretailPurchasePriceDeleteAPIResponse.go new file mode 100644 index 0000000000..26acfeaca5 --- /dev/null +++ b/model/wdk/AlibabaNewretailPurchasePriceDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +共享库存 商户删除采购价 API返回值 +alibaba.newretail.purchase.price.delete + +共享库存 商户删除采购价 +*/ +type AlibabaNewretailPurchasePriceDeleteAPIResponse struct { + model.CommonResponse + AlibabaNewretailPurchasePriceDeleteAPIResponseModel +} + +// 共享库存 商户删除采购价 成功返回结果 +type AlibabaNewretailPurchasePriceDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_newretail_purchase_price_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 拆单结果对象 + Result *TopBaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaNewretailPurchasePriceDeleteResponse.go b/model/wdk/AlibabaNewretailPurchasePriceDeleteResponse.go deleted file mode 100644 index 41452fb965..0000000000 --- a/model/wdk/AlibabaNewretailPurchasePriceDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -共享库存 商户删除采购价 API返回值 -alibaba.newretail.purchase.price.delete - -共享库存 商户删除采购价 -*/ -type AlibabaNewretailPurchasePriceDeleteAPIResponse struct { - model.CommonResponse - AlibabaNewretailPurchasePriceDeleteResponse -} - -// 共享库存 商户删除采购价 成功返回结果 -type AlibabaNewretailPurchasePriceDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_newretail_purchase_price_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 拆单结果对象 - Result *TopBaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaNewretailPurchasePriceSaveAPIRequest.go b/model/wdk/AlibabaNewretailPurchasePriceSaveAPIRequest.go new file mode 100644 index 0000000000..20eed7c755 --- /dev/null +++ b/model/wdk/AlibabaNewretailPurchasePriceSaveAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +共享库存 采购价上传接口 API请求 +alibaba.newretail.purchase.price.save + +共享库存业务 供应商上传商品采购价 +*/ +type AlibabaNewretailPurchasePriceSaveAPIRequest struct { + model.Params + // 接口入参 + _savePurchasePriceRequest *SavePurchasePriceRequest +} + +// 初始化AlibabaNewretailPurchasePriceSaveAPIRequest对象 +func NewAlibabaNewretailPurchasePriceSaveRequest() *AlibabaNewretailPurchasePriceSaveAPIRequest{ + return &AlibabaNewretailPurchasePriceSaveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaNewretailPurchasePriceSaveAPIRequest) GetApiMethodName() string { + return "alibaba.newretail.purchase.price.save" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaNewretailPurchasePriceSaveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SavePurchasePriceRequest Setter +// 接口入参 +func (r *AlibabaNewretailPurchasePriceSaveAPIRequest) SetSavePurchasePriceRequest(_savePurchasePriceRequest *SavePurchasePriceRequest) error { + r._savePurchasePriceRequest = _savePurchasePriceRequest + r.Set("save_purchase_price_request", _savePurchasePriceRequest) + return nil +} + +// SavePurchasePriceRequest Getter +func (r AlibabaNewretailPurchasePriceSaveAPIRequest) GetSavePurchasePriceRequest() *SavePurchasePriceRequest { + return r._savePurchasePriceRequest +} diff --git a/model/wdk/AlibabaNewretailPurchasePriceSaveAPIResponse.go b/model/wdk/AlibabaNewretailPurchasePriceSaveAPIResponse.go new file mode 100644 index 0000000000..a8908699f6 --- /dev/null +++ b/model/wdk/AlibabaNewretailPurchasePriceSaveAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +共享库存 采购价上传接口 API返回值 +alibaba.newretail.purchase.price.save + +共享库存业务 供应商上传商品采购价 +*/ +type AlibabaNewretailPurchasePriceSaveAPIResponse struct { + model.CommonResponse + AlibabaNewretailPurchasePriceSaveAPIResponseModel +} + +// 共享库存 采购价上传接口 成功返回结果 +type AlibabaNewretailPurchasePriceSaveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_newretail_purchase_price_save_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果对象 + Result *TopBaseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaNewretailPurchasePriceSaveResponse.go b/model/wdk/AlibabaNewretailPurchasePriceSaveResponse.go deleted file mode 100644 index 681751eda2..0000000000 --- a/model/wdk/AlibabaNewretailPurchasePriceSaveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -共享库存 采购价上传接口 API返回值 -alibaba.newretail.purchase.price.save - -共享库存业务 供应商上传商品采购价 -*/ -type AlibabaNewretailPurchasePriceSaveAPIResponse struct { - model.CommonResponse - AlibabaNewretailPurchasePriceSaveResponse -} - -// 共享库存 采购价上传接口 成功返回结果 -type AlibabaNewretailPurchasePriceSaveResponse struct { - XMLName xml.Name `xml:"alibaba_newretail_purchase_price_save_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果对象 - Result *TopBaseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaPosFundCashierShiftSummaryAPIRequest.go b/model/wdk/AlibabaPosFundCashierShiftSummaryAPIRequest.go new file mode 100644 index 0000000000..1d0381a524 --- /dev/null +++ b/model/wdk/AlibabaPosFundCashierShiftSummaryAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +收银换班数据同步 API请求 +alibaba.pos.fund.cashier.shift.summary + +收银换班数据同步,将每天收银换班的数据回流给商家。 +*/ +type AlibabaPosFundCashierShiftSummaryAPIRequest struct { + model.Params + // 请求参数 + _cashierShiftFundRequest *CashierShiftFundRequest +} + +// 初始化AlibabaPosFundCashierShiftSummaryAPIRequest对象 +func NewAlibabaPosFundCashierShiftSummaryRequest() *AlibabaPosFundCashierShiftSummaryAPIRequest{ + return &AlibabaPosFundCashierShiftSummaryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPosFundCashierShiftSummaryAPIRequest) GetApiMethodName() string { + return "alibaba.pos.fund.cashier.shift.summary" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPosFundCashierShiftSummaryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CashierShiftFundRequest Setter +// 请求参数 +func (r *AlibabaPosFundCashierShiftSummaryAPIRequest) SetCashierShiftFundRequest(_cashierShiftFundRequest *CashierShiftFundRequest) error { + r._cashierShiftFundRequest = _cashierShiftFundRequest + r.Set("cashier_shift_fund_request", _cashierShiftFundRequest) + return nil +} + +// CashierShiftFundRequest Getter +func (r AlibabaPosFundCashierShiftSummaryAPIRequest) GetCashierShiftFundRequest() *CashierShiftFundRequest { + return r._cashierShiftFundRequest +} diff --git a/model/wdk/AlibabaPosFundCashierShiftSummaryAPIResponse.go b/model/wdk/AlibabaPosFundCashierShiftSummaryAPIResponse.go new file mode 100644 index 0000000000..6a29b77420 --- /dev/null +++ b/model/wdk/AlibabaPosFundCashierShiftSummaryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +收银换班数据同步 API返回值 +alibaba.pos.fund.cashier.shift.summary + +收银换班数据同步,将每天收银换班的数据回流给商家。 +*/ +type AlibabaPosFundCashierShiftSummaryAPIResponse struct { + model.CommonResponse + AlibabaPosFundCashierShiftSummaryAPIResponseModel +} + +// 收银换班数据同步 成功返回结果 +type AlibabaPosFundCashierShiftSummaryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_pos_fund_cashier_shift_summary_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回 + Result *AlibabaPosFundCashierShiftSummaryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaPosFundCashierShiftSummaryResponse.go b/model/wdk/AlibabaPosFundCashierShiftSummaryResponse.go deleted file mode 100644 index c3542c3b16..0000000000 --- a/model/wdk/AlibabaPosFundCashierShiftSummaryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -收银换班数据同步 API返回值 -alibaba.pos.fund.cashier.shift.summary - -收银换班数据同步,将每天收银换班的数据回流给商家。 -*/ -type AlibabaPosFundCashierShiftSummaryAPIResponse struct { - model.CommonResponse - AlibabaPosFundCashierShiftSummaryResponse -} - -// 收银换班数据同步 成功返回结果 -type AlibabaPosFundCashierShiftSummaryResponse struct { - XMLName xml.Name `xml:"alibaba_pos_fund_cashier_shift_summary_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回 - Result *AlibabaPosFundCashierShiftSummaryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaPricePromotionActivityDeleteAPIRequest.go b/model/wdk/AlibabaPricePromotionActivityDeleteAPIRequest.go new file mode 100644 index 0000000000..54897ff39f --- /dev/null +++ b/model/wdk/AlibabaPricePromotionActivityDeleteAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除档期活动 API请求 +alibaba.price.promotion.activity.delete + +删除盒马帮档期活动 +*/ +type AlibabaPricePromotionActivityDeleteAPIRequest struct { + model.Params + // 外部主键 + _outerPromotionCode string + // 经营店OU + _ouCode string +} + +// 初始化AlibabaPricePromotionActivityDeleteAPIRequest对象 +func NewAlibabaPricePromotionActivityDeleteRequest() *AlibabaPricePromotionActivityDeleteAPIRequest{ + return &AlibabaPricePromotionActivityDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPricePromotionActivityDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.price.promotion.activity.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPricePromotionActivityDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterPromotionCode Setter +// 外部主键 +func (r *AlibabaPricePromotionActivityDeleteAPIRequest) SetOuterPromotionCode(_outerPromotionCode string) error { + r._outerPromotionCode = _outerPromotionCode + r.Set("outer_promotion_code", _outerPromotionCode) + return nil +} + +// OuterPromotionCode Getter +func (r AlibabaPricePromotionActivityDeleteAPIRequest) GetOuterPromotionCode() string { + return r._outerPromotionCode +} +// OuCode Setter +// 经营店OU +func (r *AlibabaPricePromotionActivityDeleteAPIRequest) SetOuCode(_ouCode string) error { + r._ouCode = _ouCode + r.Set("ou_code", _ouCode) + return nil +} + +// OuCode Getter +func (r AlibabaPricePromotionActivityDeleteAPIRequest) GetOuCode() string { + return r._ouCode +} diff --git a/model/wdk/AlibabaPricePromotionActivityDeleteAPIResponse.go b/model/wdk/AlibabaPricePromotionActivityDeleteAPIResponse.go new file mode 100644 index 0000000000..faa671c97b --- /dev/null +++ b/model/wdk/AlibabaPricePromotionActivityDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除档期活动 API返回值 +alibaba.price.promotion.activity.delete + +删除盒马帮档期活动 +*/ +type AlibabaPricePromotionActivityDeleteAPIResponse struct { + model.CommonResponse + AlibabaPricePromotionActivityDeleteAPIResponseModel +} + +// 删除档期活动 成功返回结果 +type AlibabaPricePromotionActivityDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_price_promotion_activity_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaPricePromotionActivityDeleteResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaPricePromotionActivityDeleteResponse.go b/model/wdk/AlibabaPricePromotionActivityDeleteResponse.go deleted file mode 100644 index 7ea0106173..0000000000 --- a/model/wdk/AlibabaPricePromotionActivityDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除档期活动 API返回值 -alibaba.price.promotion.activity.delete - -删除盒马帮档期活动 -*/ -type AlibabaPricePromotionActivityDeleteAPIResponse struct { - model.CommonResponse - AlibabaPricePromotionActivityDeleteResponse -} - -// 删除档期活动 成功返回结果 -type AlibabaPricePromotionActivityDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_price_promotion_activity_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaPricePromotionActivityDeleteResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaPricePromotionActivityQueryAPIRequest.go b/model/wdk/AlibabaPricePromotionActivityQueryAPIRequest.go new file mode 100644 index 0000000000..5e0bdfa74d --- /dev/null +++ b/model/wdk/AlibabaPricePromotionActivityQueryAPIRequest.go @@ -0,0 +1,94 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询盒马帮档期活动详情 API请求 +alibaba.price.promotion.activity.query + +查询盒马帮档期活动详情 +*/ +type AlibabaPricePromotionActivityQueryAPIRequest struct { + model.Params + // 页码 + _page int64 + // 外部档期code + _outerPromotionCode string + // TOB店仓编码 + _ouCode string + // 页码大小 + _pageSize int64 +} + +// 初始化AlibabaPricePromotionActivityQueryAPIRequest对象 +func NewAlibabaPricePromotionActivityQueryRequest() *AlibabaPricePromotionActivityQueryAPIRequest{ + return &AlibabaPricePromotionActivityQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPricePromotionActivityQueryAPIRequest) GetApiMethodName() string { + return "alibaba.price.promotion.activity.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPricePromotionActivityQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Page Setter +// 页码 +func (r *AlibabaPricePromotionActivityQueryAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaPricePromotionActivityQueryAPIRequest) GetPage() int64 { + return r._page +} +// OuterPromotionCode Setter +// 外部档期code +func (r *AlibabaPricePromotionActivityQueryAPIRequest) SetOuterPromotionCode(_outerPromotionCode string) error { + r._outerPromotionCode = _outerPromotionCode + r.Set("outer_promotion_code", _outerPromotionCode) + return nil +} + +// OuterPromotionCode Getter +func (r AlibabaPricePromotionActivityQueryAPIRequest) GetOuterPromotionCode() string { + return r._outerPromotionCode +} +// OuCode Setter +// TOB店仓编码 +func (r *AlibabaPricePromotionActivityQueryAPIRequest) SetOuCode(_ouCode string) error { + r._ouCode = _ouCode + r.Set("ou_code", _ouCode) + return nil +} + +// OuCode Getter +func (r AlibabaPricePromotionActivityQueryAPIRequest) GetOuCode() string { + return r._ouCode +} +// PageSize Setter +// 页码大小 +func (r *AlibabaPricePromotionActivityQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaPricePromotionActivityQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/wdk/AlibabaPricePromotionActivityQueryAPIResponse.go b/model/wdk/AlibabaPricePromotionActivityQueryAPIResponse.go new file mode 100644 index 0000000000..011daa8c1b --- /dev/null +++ b/model/wdk/AlibabaPricePromotionActivityQueryAPIResponse.go @@ -0,0 +1,35 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询盒马帮档期活动详情 API返回值 +alibaba.price.promotion.activity.query + +查询盒马帮档期活动详情 +*/ +type AlibabaPricePromotionActivityQueryAPIResponse struct { + model.CommonResponse + AlibabaPricePromotionActivityQueryAPIResponseModel +} + +// 查询盒马帮档期活动详情 成功返回结果 +type AlibabaPricePromotionActivityQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_price_promotion_activity_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口调用是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 大润发促销档期数据 + Data string `json:"data,omitempty" xml:"data,omitempty"` + // 错误编码 + ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 大润发档期数据 + TotalRecord int64 `json:"total_record,omitempty" xml:"total_record,omitempty"` + // 错误参数 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/wdk/AlibabaPricePromotionActivityQueryResponse.go b/model/wdk/AlibabaPricePromotionActivityQueryResponse.go deleted file mode 100644 index f06112c046..0000000000 --- a/model/wdk/AlibabaPricePromotionActivityQueryResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询盒马帮档期活动详情 API返回值 -alibaba.price.promotion.activity.query - -查询盒马帮档期活动详情 -*/ -type AlibabaPricePromotionActivityQueryAPIResponse struct { - model.CommonResponse - AlibabaPricePromotionActivityQueryResponse -} - -// 查询盒马帮档期活动详情 成功返回结果 -type AlibabaPricePromotionActivityQueryResponse struct { - XMLName xml.Name `xml:"alibaba_price_promotion_activity_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口调用是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 大润发促销档期数据 - Data string `json:"data,omitempty" xml:"data,omitempty"` - // 错误编码 - ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 大润发档期数据 - TotalRecord int64 `json:"total_record,omitempty" xml:"total_record,omitempty"` - // 错误参数 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/wdk/AlibabaPricePromotionCreateAPIRequest.go b/model/wdk/AlibabaPricePromotionCreateAPIRequest.go new file mode 100644 index 0000000000..6e93f7decd --- /dev/null +++ b/model/wdk/AlibabaPricePromotionCreateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +营销档期活动创建 API请求 +alibaba.price.promotion.create + +大润发-盒马帮提供新增创建营销活动 +*/ +type AlibabaPricePromotionCreateAPIRequest struct { + model.Params + // 档期活动参数 + _promotionActivityDo *PromotionActivityDo +} + +// 初始化AlibabaPricePromotionCreateAPIRequest对象 +func NewAlibabaPricePromotionCreateRequest() *AlibabaPricePromotionCreateAPIRequest{ + return &AlibabaPricePromotionCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPricePromotionCreateAPIRequest) GetApiMethodName() string { + return "alibaba.price.promotion.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPricePromotionCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PromotionActivityDo Setter +// 档期活动参数 +func (r *AlibabaPricePromotionCreateAPIRequest) SetPromotionActivityDo(_promotionActivityDo *PromotionActivityDo) error { + r._promotionActivityDo = _promotionActivityDo + r.Set("promotion_activity_do", _promotionActivityDo) + return nil +} + +// PromotionActivityDo Getter +func (r AlibabaPricePromotionCreateAPIRequest) GetPromotionActivityDo() *PromotionActivityDo { + return r._promotionActivityDo +} diff --git a/model/wdk/AlibabaPricePromotionCreateAPIResponse.go b/model/wdk/AlibabaPricePromotionCreateAPIResponse.go new file mode 100644 index 0000000000..47833beaa1 --- /dev/null +++ b/model/wdk/AlibabaPricePromotionCreateAPIResponse.go @@ -0,0 +1,35 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +营销档期活动创建 API返回值 +alibaba.price.promotion.create + +大润发-盒马帮提供新增创建营销活动 +*/ +type AlibabaPricePromotionCreateAPIResponse struct { + model.CommonResponse + AlibabaPricePromotionCreateAPIResponseModel +} + +// 营销档期活动创建 成功返回结果 +type AlibabaPricePromotionCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_price_promotion_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 档期活动ID + Result int64 `json:"result,omitempty" xml:"result,omitempty"` + // 错误描述 + ErrorDesc string `json:"error_desc,omitempty" xml:"error_desc,omitempty"` + // 错误编码,本期不作识别 + SystemCode string `json:"system_code,omitempty" xml:"system_code,omitempty"` + // 数量,本期不启用 + TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` + // 创建是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/wdk/AlibabaPricePromotionCreateResponse.go b/model/wdk/AlibabaPricePromotionCreateResponse.go deleted file mode 100644 index 4300260876..0000000000 --- a/model/wdk/AlibabaPricePromotionCreateResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -营销档期活动创建 API返回值 -alibaba.price.promotion.create - -大润发-盒马帮提供新增创建营销活动 -*/ -type AlibabaPricePromotionCreateAPIResponse struct { - model.CommonResponse - AlibabaPricePromotionCreateResponse -} - -// 营销档期活动创建 成功返回结果 -type AlibabaPricePromotionCreateResponse struct { - XMLName xml.Name `xml:"alibaba_price_promotion_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 档期活动ID - Result int64 `json:"result,omitempty" xml:"result,omitempty"` - // 错误描述 - ErrorDesc string `json:"error_desc,omitempty" xml:"error_desc,omitempty"` - // 错误编码,本期不作识别 - SystemCode string `json:"system_code,omitempty" xml:"system_code,omitempty"` - // 数量,本期不启用 - TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` - // 创建是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/wdk/AlibabaPricePromotionItemAddAPIRequest.go b/model/wdk/AlibabaPricePromotionItemAddAPIRequest.go new file mode 100644 index 0000000000..0cdf09dccb --- /dev/null +++ b/model/wdk/AlibabaPricePromotionItemAddAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增档期商品 API请求 +alibaba.price.promotion.item.add + +批量新增档期活动商品 +*/ +type AlibabaPricePromotionItemAddAPIRequest struct { + model.Params + // 入参 + _promotionContent *PromotionContent +} + +// 初始化AlibabaPricePromotionItemAddAPIRequest对象 +func NewAlibabaPricePromotionItemAddRequest() *AlibabaPricePromotionItemAddAPIRequest{ + return &AlibabaPricePromotionItemAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPricePromotionItemAddAPIRequest) GetApiMethodName() string { + return "alibaba.price.promotion.item.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPricePromotionItemAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PromotionContent Setter +// 入参 +func (r *AlibabaPricePromotionItemAddAPIRequest) SetPromotionContent(_promotionContent *PromotionContent) error { + r._promotionContent = _promotionContent + r.Set("promotion_content", _promotionContent) + return nil +} + +// PromotionContent Getter +func (r AlibabaPricePromotionItemAddAPIRequest) GetPromotionContent() *PromotionContent { + return r._promotionContent +} diff --git a/model/wdk/AlibabaPricePromotionItemAddAPIResponse.go b/model/wdk/AlibabaPricePromotionItemAddAPIResponse.go new file mode 100644 index 0000000000..f58796525c --- /dev/null +++ b/model/wdk/AlibabaPricePromotionItemAddAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增档期商品 API返回值 +alibaba.price.promotion.item.add + +批量新增档期活动商品 +*/ +type AlibabaPricePromotionItemAddAPIResponse struct { + model.CommonResponse + AlibabaPricePromotionItemAddAPIResponseModel +} + +// 新增档期商品 成功返回结果 +type AlibabaPricePromotionItemAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_price_promotion_item_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaPricePromotionItemAddResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaPricePromotionItemAddResponse.go b/model/wdk/AlibabaPricePromotionItemAddResponse.go deleted file mode 100644 index 952b670633..0000000000 --- a/model/wdk/AlibabaPricePromotionItemAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增档期商品 API返回值 -alibaba.price.promotion.item.add - -批量新增档期活动商品 -*/ -type AlibabaPricePromotionItemAddAPIResponse struct { - model.CommonResponse - AlibabaPricePromotionItemAddResponse -} - -// 新增档期商品 成功返回结果 -type AlibabaPricePromotionItemAddResponse struct { - XMLName xml.Name `xml:"alibaba_price_promotion_item_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaPricePromotionItemAddResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaPricePromotionItemDeleteAPIRequest.go b/model/wdk/AlibabaPricePromotionItemDeleteAPIRequest.go new file mode 100644 index 0000000000..15eaf89021 --- /dev/null +++ b/model/wdk/AlibabaPricePromotionItemDeleteAPIRequest.go @@ -0,0 +1,94 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量删除档期 API请求 +alibaba.price.promotion.item.delete + +盒马帮批量删除档期商品 +*/ +type AlibabaPricePromotionItemDeleteAPIRequest struct { + model.Params + // 商品code + _skuCodes []string + // toB渠道店OU + _ouCode string + // 外部档期编码 + _outerPromotionCode string + // 盒马唯一标识 + _uniqueId string +} + +// 初始化AlibabaPricePromotionItemDeleteAPIRequest对象 +func NewAlibabaPricePromotionItemDeleteRequest() *AlibabaPricePromotionItemDeleteAPIRequest{ + return &AlibabaPricePromotionItemDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaPricePromotionItemDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.price.promotion.item.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaPricePromotionItemDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkuCodes Setter +// 商品code +func (r *AlibabaPricePromotionItemDeleteAPIRequest) SetSkuCodes(_skuCodes []string) error { + r._skuCodes = _skuCodes + r.Set("sku_codes", _skuCodes) + return nil +} + +// SkuCodes Getter +func (r AlibabaPricePromotionItemDeleteAPIRequest) GetSkuCodes() []string { + return r._skuCodes +} +// OuCode Setter +// toB渠道店OU +func (r *AlibabaPricePromotionItemDeleteAPIRequest) SetOuCode(_ouCode string) error { + r._ouCode = _ouCode + r.Set("ou_code", _ouCode) + return nil +} + +// OuCode Getter +func (r AlibabaPricePromotionItemDeleteAPIRequest) GetOuCode() string { + return r._ouCode +} +// OuterPromotionCode Setter +// 外部档期编码 +func (r *AlibabaPricePromotionItemDeleteAPIRequest) SetOuterPromotionCode(_outerPromotionCode string) error { + r._outerPromotionCode = _outerPromotionCode + r.Set("outer_promotion_code", _outerPromotionCode) + return nil +} + +// OuterPromotionCode Getter +func (r AlibabaPricePromotionItemDeleteAPIRequest) GetOuterPromotionCode() string { + return r._outerPromotionCode +} +// UniqueId Setter +// 盒马唯一标识 +func (r *AlibabaPricePromotionItemDeleteAPIRequest) SetUniqueId(_uniqueId string) error { + r._uniqueId = _uniqueId + r.Set("unique_id", _uniqueId) + return nil +} + +// UniqueId Getter +func (r AlibabaPricePromotionItemDeleteAPIRequest) GetUniqueId() string { + return r._uniqueId +} diff --git a/model/wdk/AlibabaPricePromotionItemDeleteAPIResponse.go b/model/wdk/AlibabaPricePromotionItemDeleteAPIResponse.go new file mode 100644 index 0000000000..2f4c588512 --- /dev/null +++ b/model/wdk/AlibabaPricePromotionItemDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量删除档期 API返回值 +alibaba.price.promotion.item.delete + +盒马帮批量删除档期商品 +*/ +type AlibabaPricePromotionItemDeleteAPIResponse struct { + model.CommonResponse + AlibabaPricePromotionItemDeleteAPIResponseModel +} + +// 批量删除档期 成功返回结果 +type AlibabaPricePromotionItemDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_price_promotion_item_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaPricePromotionItemDeleteResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaPricePromotionItemDeleteResponse.go b/model/wdk/AlibabaPricePromotionItemDeleteResponse.go deleted file mode 100644 index 83af18e031..0000000000 --- a/model/wdk/AlibabaPricePromotionItemDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量删除档期 API返回值 -alibaba.price.promotion.item.delete - -盒马帮批量删除档期商品 -*/ -type AlibabaPricePromotionItemDeleteAPIResponse struct { - model.CommonResponse - AlibabaPricePromotionItemDeleteResponse -} - -// 批量删除档期 成功返回结果 -type AlibabaPricePromotionItemDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_price_promotion_item_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaPricePromotionItemDeleteResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaRetailMarketingBuygiftActivityCreateAPIRequest.go b/model/wdk/AlibabaRetailMarketingBuygiftActivityCreateAPIRequest.go new file mode 100644 index 0000000000..59e298203f --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingBuygiftActivityCreateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建买赠活动 API请求 +alibaba.retail.marketing.buygift.activity.create + +同城供给买赠活动创建 +*/ +type AlibabaRetailMarketingBuygiftActivityCreateAPIRequest struct { + model.Params + // 创建活动参数 + _param *BuyGiftActivityOperateRequest +} + +// 初始化AlibabaRetailMarketingBuygiftActivityCreateAPIRequest对象 +func NewAlibabaRetailMarketingBuygiftActivityCreateRequest() *AlibabaRetailMarketingBuygiftActivityCreateAPIRequest{ + return &AlibabaRetailMarketingBuygiftActivityCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailMarketingBuygiftActivityCreateAPIRequest) GetApiMethodName() string { + return "alibaba.retail.marketing.buygift.activity.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailMarketingBuygiftActivityCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 创建活动参数 +func (r *AlibabaRetailMarketingBuygiftActivityCreateAPIRequest) SetParam(_param *BuyGiftActivityOperateRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaRetailMarketingBuygiftActivityCreateAPIRequest) GetParam() *BuyGiftActivityOperateRequest { + return r._param +} diff --git a/model/wdk/AlibabaRetailMarketingBuygiftActivityCreateAPIResponse.go b/model/wdk/AlibabaRetailMarketingBuygiftActivityCreateAPIResponse.go new file mode 100644 index 0000000000..9df3583807 --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingBuygiftActivityCreateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建买赠活动 API返回值 +alibaba.retail.marketing.buygift.activity.create + +同城供给买赠活动创建 +*/ +type AlibabaRetailMarketingBuygiftActivityCreateAPIResponse struct { + model.CommonResponse + AlibabaRetailMarketingBuygiftActivityCreateAPIResponseModel +} + +// 创建买赠活动 成功返回结果 +type AlibabaRetailMarketingBuygiftActivityCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_marketing_buygift_activity_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaRetailMarketingBuygiftActivityCreateResponse.go b/model/wdk/AlibabaRetailMarketingBuygiftActivityCreateResponse.go deleted file mode 100644 index e517f5c2c7..0000000000 --- a/model/wdk/AlibabaRetailMarketingBuygiftActivityCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建买赠活动 API返回值 -alibaba.retail.marketing.buygift.activity.create - -同城供给买赠活动创建 -*/ -type AlibabaRetailMarketingBuygiftActivityCreateAPIResponse struct { - model.CommonResponse - AlibabaRetailMarketingBuygiftActivityCreateResponse -} - -// 创建买赠活动 成功返回结果 -type AlibabaRetailMarketingBuygiftActivityCreateResponse struct { - XMLName xml.Name `xml:"alibaba_retail_marketing_buygift_activity_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaRetailMarketingBuygiftActivityDeleteAPIRequest.go b/model/wdk/AlibabaRetailMarketingBuygiftActivityDeleteAPIRequest.go new file mode 100644 index 0000000000..4af44bf79f --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingBuygiftActivityDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除单品买赠活动 API请求 +alibaba.retail.marketing.buygift.activity.delete + +同城零售单品特价活动删除 +*/ +type AlibabaRetailMarketingBuygiftActivityDeleteAPIRequest struct { + model.Params + // 删除活动参数 + _param *ItemDiscountActivityOperateRequest +} + +// 初始化AlibabaRetailMarketingBuygiftActivityDeleteAPIRequest对象 +func NewAlibabaRetailMarketingBuygiftActivityDeleteRequest() *AlibabaRetailMarketingBuygiftActivityDeleteAPIRequest{ + return &AlibabaRetailMarketingBuygiftActivityDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailMarketingBuygiftActivityDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.retail.marketing.buygift.activity.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailMarketingBuygiftActivityDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 删除活动参数 +func (r *AlibabaRetailMarketingBuygiftActivityDeleteAPIRequest) SetParam(_param *ItemDiscountActivityOperateRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaRetailMarketingBuygiftActivityDeleteAPIRequest) GetParam() *ItemDiscountActivityOperateRequest { + return r._param +} diff --git a/model/wdk/AlibabaRetailMarketingBuygiftActivityDeleteAPIResponse.go b/model/wdk/AlibabaRetailMarketingBuygiftActivityDeleteAPIResponse.go new file mode 100644 index 0000000000..7f94058965 --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingBuygiftActivityDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除单品买赠活动 API返回值 +alibaba.retail.marketing.buygift.activity.delete + +同城零售单品特价活动删除 +*/ +type AlibabaRetailMarketingBuygiftActivityDeleteAPIResponse struct { + model.CommonResponse + AlibabaRetailMarketingBuygiftActivityDeleteAPIResponseModel +} + +// 删除单品买赠活动 成功返回结果 +type AlibabaRetailMarketingBuygiftActivityDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_marketing_buygift_activity_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaRetailMarketingBuygiftActivityDeleteResponse.go b/model/wdk/AlibabaRetailMarketingBuygiftActivityDeleteResponse.go deleted file mode 100644 index ac3c5592d8..0000000000 --- a/model/wdk/AlibabaRetailMarketingBuygiftActivityDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除单品买赠活动 API返回值 -alibaba.retail.marketing.buygift.activity.delete - -同城零售单品特价活动删除 -*/ -type AlibabaRetailMarketingBuygiftActivityDeleteAPIResponse struct { - model.CommonResponse - AlibabaRetailMarketingBuygiftActivityDeleteResponse -} - -// 删除单品买赠活动 成功返回结果 -type AlibabaRetailMarketingBuygiftActivityDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_retail_marketing_buygift_activity_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaRetailMarketingBuygiftActivitySkuAddAPIRequest.go b/model/wdk/AlibabaRetailMarketingBuygiftActivitySkuAddAPIRequest.go new file mode 100644 index 0000000000..1a3d71a7db --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingBuygiftActivitySkuAddAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加单品买赠活动商品 API请求 +alibaba.retail.marketing.buygift.activity.sku.add + +新增或更新单品买赠活动商品信息【同城零售】 +*/ +type AlibabaRetailMarketingBuygiftActivitySkuAddAPIRequest struct { + model.Params + // 添加活动商品参数 + _param *BuyGiftActivitySkuOperateRequest +} + +// 初始化AlibabaRetailMarketingBuygiftActivitySkuAddAPIRequest对象 +func NewAlibabaRetailMarketingBuygiftActivitySkuAddRequest() *AlibabaRetailMarketingBuygiftActivitySkuAddAPIRequest{ + return &AlibabaRetailMarketingBuygiftActivitySkuAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailMarketingBuygiftActivitySkuAddAPIRequest) GetApiMethodName() string { + return "alibaba.retail.marketing.buygift.activity.sku.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailMarketingBuygiftActivitySkuAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 添加活动商品参数 +func (r *AlibabaRetailMarketingBuygiftActivitySkuAddAPIRequest) SetParam(_param *BuyGiftActivitySkuOperateRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaRetailMarketingBuygiftActivitySkuAddAPIRequest) GetParam() *BuyGiftActivitySkuOperateRequest { + return r._param +} diff --git a/model/wdk/AlibabaRetailMarketingBuygiftActivitySkuAddAPIResponse.go b/model/wdk/AlibabaRetailMarketingBuygiftActivitySkuAddAPIResponse.go new file mode 100644 index 0000000000..be58bdb9ed --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingBuygiftActivitySkuAddAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加单品买赠活动商品 API返回值 +alibaba.retail.marketing.buygift.activity.sku.add + +新增或更新单品买赠活动商品信息【同城零售】 +*/ +type AlibabaRetailMarketingBuygiftActivitySkuAddAPIResponse struct { + model.CommonResponse + AlibabaRetailMarketingBuygiftActivitySkuAddAPIResponseModel +} + +// 添加单品买赠活动商品 成功返回结果 +type AlibabaRetailMarketingBuygiftActivitySkuAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_marketing_buygift_activity_sku_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaRetailMarketingBuygiftActivitySkuAddResponse.go b/model/wdk/AlibabaRetailMarketingBuygiftActivitySkuAddResponse.go deleted file mode 100644 index 579fdcd98c..0000000000 --- a/model/wdk/AlibabaRetailMarketingBuygiftActivitySkuAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加单品买赠活动商品 API返回值 -alibaba.retail.marketing.buygift.activity.sku.add - -新增或更新单品买赠活动商品信息【同城零售】 -*/ -type AlibabaRetailMarketingBuygiftActivitySkuAddAPIResponse struct { - model.CommonResponse - AlibabaRetailMarketingBuygiftActivitySkuAddResponse -} - -// 添加单品买赠活动商品 成功返回结果 -type AlibabaRetailMarketingBuygiftActivitySkuAddResponse struct { - XMLName xml.Name `xml:"alibaba_retail_marketing_buygift_activity_sku_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIRequest.go b/model/wdk/AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIRequest.go new file mode 100644 index 0000000000..a4609d61a7 --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除单品买赠活动商品 API请求 +alibaba.retail.marketing.buygift.activity.sku.delete + +删除单品买赠活动商品信息【同城零售】 +*/ +type AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIRequest struct { + model.Params + // 删除买赠活动商品参数 + _param *BuyGiftActivitySkuOperateRequest +} + +// 初始化AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIRequest对象 +func NewAlibabaRetailMarketingBuygiftActivitySkuDeleteRequest() *AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIRequest{ + return &AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.retail.marketing.buygift.activity.sku.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 删除买赠活动商品参数 +func (r *AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIRequest) SetParam(_param *BuyGiftActivitySkuOperateRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIRequest) GetParam() *BuyGiftActivitySkuOperateRequest { + return r._param +} diff --git a/model/wdk/AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIResponse.go b/model/wdk/AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIResponse.go new file mode 100644 index 0000000000..a498b7b5ac --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除单品买赠活动商品 API返回值 +alibaba.retail.marketing.buygift.activity.sku.delete + +删除单品买赠活动商品信息【同城零售】 +*/ +type AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIResponse struct { + model.CommonResponse + AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIResponseModel +} + +// 删除单品买赠活动商品 成功返回结果 +type AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_marketing_buygift_activity_sku_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaRetailMarketingBuygiftActivitySkuDeleteResponse.go b/model/wdk/AlibabaRetailMarketingBuygiftActivitySkuDeleteResponse.go deleted file mode 100644 index ffbcf7945d..0000000000 --- a/model/wdk/AlibabaRetailMarketingBuygiftActivitySkuDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除单品买赠活动商品 API返回值 -alibaba.retail.marketing.buygift.activity.sku.delete - -删除单品买赠活动商品信息【同城零售】 -*/ -type AlibabaRetailMarketingBuygiftActivitySkuDeleteAPIResponse struct { - model.CommonResponse - AlibabaRetailMarketingBuygiftActivitySkuDeleteResponse -} - -// 删除单品买赠活动商品 成功返回结果 -type AlibabaRetailMarketingBuygiftActivitySkuDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_retail_marketing_buygift_activity_sku_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaRetailMarketingBuygiftActivityUpdateAPIRequest.go b/model/wdk/AlibabaRetailMarketingBuygiftActivityUpdateAPIRequest.go new file mode 100644 index 0000000000..c7d058f32e --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingBuygiftActivityUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新单品买赠活动 API请求 +alibaba.retail.marketing.buygift.activity.update + +同城零售单品买赠活动更新 +*/ +type AlibabaRetailMarketingBuygiftActivityUpdateAPIRequest struct { + model.Params + // 更新单品买赠活动参数 + _param *BuyGiftActivityOperateRequest +} + +// 初始化AlibabaRetailMarketingBuygiftActivityUpdateAPIRequest对象 +func NewAlibabaRetailMarketingBuygiftActivityUpdateRequest() *AlibabaRetailMarketingBuygiftActivityUpdateAPIRequest{ + return &AlibabaRetailMarketingBuygiftActivityUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailMarketingBuygiftActivityUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.retail.marketing.buygift.activity.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailMarketingBuygiftActivityUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 更新单品买赠活动参数 +func (r *AlibabaRetailMarketingBuygiftActivityUpdateAPIRequest) SetParam(_param *BuyGiftActivityOperateRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaRetailMarketingBuygiftActivityUpdateAPIRequest) GetParam() *BuyGiftActivityOperateRequest { + return r._param +} diff --git a/model/wdk/AlibabaRetailMarketingBuygiftActivityUpdateAPIResponse.go b/model/wdk/AlibabaRetailMarketingBuygiftActivityUpdateAPIResponse.go new file mode 100644 index 0000000000..363f3adb6c --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingBuygiftActivityUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新单品买赠活动 API返回值 +alibaba.retail.marketing.buygift.activity.update + +同城零售单品买赠活动更新 +*/ +type AlibabaRetailMarketingBuygiftActivityUpdateAPIResponse struct { + model.CommonResponse + AlibabaRetailMarketingBuygiftActivityUpdateAPIResponseModel +} + +// 更新单品买赠活动 成功返回结果 +type AlibabaRetailMarketingBuygiftActivityUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_marketing_buygift_activity_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaRetailMarketingBuygiftActivityUpdateResponse.go b/model/wdk/AlibabaRetailMarketingBuygiftActivityUpdateResponse.go deleted file mode 100644 index 567e48e8e6..0000000000 --- a/model/wdk/AlibabaRetailMarketingBuygiftActivityUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新单品买赠活动 API返回值 -alibaba.retail.marketing.buygift.activity.update - -同城零售单品买赠活动更新 -*/ -type AlibabaRetailMarketingBuygiftActivityUpdateAPIResponse struct { - model.CommonResponse - AlibabaRetailMarketingBuygiftActivityUpdateResponse -} - -// 更新单品买赠活动 成功返回结果 -type AlibabaRetailMarketingBuygiftActivityUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_retail_marketing_buygift_activity_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaRetailMarketingItemdiscountActivityCreateAPIRequest.go b/model/wdk/AlibabaRetailMarketingItemdiscountActivityCreateAPIRequest.go new file mode 100644 index 0000000000..85af3a7008 --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItemdiscountActivityCreateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建单品特价活动【同城零售】 API请求 +alibaba.retail.marketing.itemdiscount.activity.create + +同城零售单品特价活动创建 +*/ +type AlibabaRetailMarketingItemdiscountActivityCreateAPIRequest struct { + model.Params + // 创建活动参数 + _param *ItemDiscountActivityOperateRequest +} + +// 初始化AlibabaRetailMarketingItemdiscountActivityCreateAPIRequest对象 +func NewAlibabaRetailMarketingItemdiscountActivityCreateRequest() *AlibabaRetailMarketingItemdiscountActivityCreateAPIRequest{ + return &AlibabaRetailMarketingItemdiscountActivityCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailMarketingItemdiscountActivityCreateAPIRequest) GetApiMethodName() string { + return "alibaba.retail.marketing.itemdiscount.activity.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailMarketingItemdiscountActivityCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 创建活动参数 +func (r *AlibabaRetailMarketingItemdiscountActivityCreateAPIRequest) SetParam(_param *ItemDiscountActivityOperateRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaRetailMarketingItemdiscountActivityCreateAPIRequest) GetParam() *ItemDiscountActivityOperateRequest { + return r._param +} diff --git a/model/wdk/AlibabaRetailMarketingItemdiscountActivityCreateAPIResponse.go b/model/wdk/AlibabaRetailMarketingItemdiscountActivityCreateAPIResponse.go new file mode 100644 index 0000000000..5aa995ce4a --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItemdiscountActivityCreateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建单品特价活动【同城零售】 API返回值 +alibaba.retail.marketing.itemdiscount.activity.create + +同城零售单品特价活动创建 +*/ +type AlibabaRetailMarketingItemdiscountActivityCreateAPIResponse struct { + model.CommonResponse + AlibabaRetailMarketingItemdiscountActivityCreateAPIResponseModel +} + +// 创建单品特价活动【同城零售】 成功返回结果 +type AlibabaRetailMarketingItemdiscountActivityCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_marketing_itemdiscount_activity_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaRetailMarketingItemdiscountActivityCreateResponse.go b/model/wdk/AlibabaRetailMarketingItemdiscountActivityCreateResponse.go deleted file mode 100644 index b402699266..0000000000 --- a/model/wdk/AlibabaRetailMarketingItemdiscountActivityCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建单品特价活动【同城零售】 API返回值 -alibaba.retail.marketing.itemdiscount.activity.create - -同城零售单品特价活动创建 -*/ -type AlibabaRetailMarketingItemdiscountActivityCreateAPIResponse struct { - model.CommonResponse - AlibabaRetailMarketingItemdiscountActivityCreateResponse -} - -// 创建单品特价活动【同城零售】 成功返回结果 -type AlibabaRetailMarketingItemdiscountActivityCreateResponse struct { - XMLName xml.Name `xml:"alibaba_retail_marketing_itemdiscount_activity_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaRetailMarketingItemdiscountActivityDeleteAPIRequest.go b/model/wdk/AlibabaRetailMarketingItemdiscountActivityDeleteAPIRequest.go new file mode 100644 index 0000000000..4cdf1807d0 --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItemdiscountActivityDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除单品特价活动【同城零售】 API请求 +alibaba.retail.marketing.itemdiscount.activity.delete + +同城零售单品特价活动删除 +*/ +type AlibabaRetailMarketingItemdiscountActivityDeleteAPIRequest struct { + model.Params + // 删除活动参数 + _param *ItemDiscountActivityOperateRequest +} + +// 初始化AlibabaRetailMarketingItemdiscountActivityDeleteAPIRequest对象 +func NewAlibabaRetailMarketingItemdiscountActivityDeleteRequest() *AlibabaRetailMarketingItemdiscountActivityDeleteAPIRequest{ + return &AlibabaRetailMarketingItemdiscountActivityDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailMarketingItemdiscountActivityDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.retail.marketing.itemdiscount.activity.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailMarketingItemdiscountActivityDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 删除活动参数 +func (r *AlibabaRetailMarketingItemdiscountActivityDeleteAPIRequest) SetParam(_param *ItemDiscountActivityOperateRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaRetailMarketingItemdiscountActivityDeleteAPIRequest) GetParam() *ItemDiscountActivityOperateRequest { + return r._param +} diff --git a/model/wdk/AlibabaRetailMarketingItemdiscountActivityDeleteAPIResponse.go b/model/wdk/AlibabaRetailMarketingItemdiscountActivityDeleteAPIResponse.go new file mode 100644 index 0000000000..fc1c07ea74 --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItemdiscountActivityDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除单品特价活动【同城零售】 API返回值 +alibaba.retail.marketing.itemdiscount.activity.delete + +同城零售单品特价活动删除 +*/ +type AlibabaRetailMarketingItemdiscountActivityDeleteAPIResponse struct { + model.CommonResponse + AlibabaRetailMarketingItemdiscountActivityDeleteAPIResponseModel +} + +// 删除单品特价活动【同城零售】 成功返回结果 +type AlibabaRetailMarketingItemdiscountActivityDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_marketing_itemdiscount_activity_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaRetailMarketingItemdiscountActivityDeleteResponse.go b/model/wdk/AlibabaRetailMarketingItemdiscountActivityDeleteResponse.go deleted file mode 100644 index c7d8c096d1..0000000000 --- a/model/wdk/AlibabaRetailMarketingItemdiscountActivityDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除单品特价活动【同城零售】 API返回值 -alibaba.retail.marketing.itemdiscount.activity.delete - -同城零售单品特价活动删除 -*/ -type AlibabaRetailMarketingItemdiscountActivityDeleteAPIResponse struct { - model.CommonResponse - AlibabaRetailMarketingItemdiscountActivityDeleteResponse -} - -// 删除单品特价活动【同城零售】 成功返回结果 -type AlibabaRetailMarketingItemdiscountActivityDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_retail_marketing_itemdiscount_activity_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuAddAPIRequest.go b/model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuAddAPIRequest.go new file mode 100644 index 0000000000..3d12a4aaa2 --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuAddAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +特价活动新增商品 API请求 +alibaba.retail.marketing.itemdiscount.activity.sku.add + +新增或更新活动商品信息【同城零售】 +*/ +type AlibabaRetailMarketingItemdiscountActivitySkuAddAPIRequest struct { + model.Params + // 添加活动商品参数 + _param *ItemDiscountActivityElementOperateRequest +} + +// 初始化AlibabaRetailMarketingItemdiscountActivitySkuAddAPIRequest对象 +func NewAlibabaRetailMarketingItemdiscountActivitySkuAddRequest() *AlibabaRetailMarketingItemdiscountActivitySkuAddAPIRequest{ + return &AlibabaRetailMarketingItemdiscountActivitySkuAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailMarketingItemdiscountActivitySkuAddAPIRequest) GetApiMethodName() string { + return "alibaba.retail.marketing.itemdiscount.activity.sku.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailMarketingItemdiscountActivitySkuAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 添加活动商品参数 +func (r *AlibabaRetailMarketingItemdiscountActivitySkuAddAPIRequest) SetParam(_param *ItemDiscountActivityElementOperateRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaRetailMarketingItemdiscountActivitySkuAddAPIRequest) GetParam() *ItemDiscountActivityElementOperateRequest { + return r._param +} diff --git a/model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuAddAPIResponse.go b/model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuAddAPIResponse.go new file mode 100644 index 0000000000..06cdd1f67b --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuAddAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +特价活动新增商品 API返回值 +alibaba.retail.marketing.itemdiscount.activity.sku.add + +新增或更新活动商品信息【同城零售】 +*/ +type AlibabaRetailMarketingItemdiscountActivitySkuAddAPIResponse struct { + model.CommonResponse + AlibabaRetailMarketingItemdiscountActivitySkuAddAPIResponseModel +} + +// 特价活动新增商品 成功返回结果 +type AlibabaRetailMarketingItemdiscountActivitySkuAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_marketing_itemdiscount_activity_sku_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuAddResponse.go b/model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuAddResponse.go deleted file mode 100644 index 42ab1a2acd..0000000000 --- a/model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -特价活动新增商品 API返回值 -alibaba.retail.marketing.itemdiscount.activity.sku.add - -新增或更新活动商品信息【同城零售】 -*/ -type AlibabaRetailMarketingItemdiscountActivitySkuAddAPIResponse struct { - model.CommonResponse - AlibabaRetailMarketingItemdiscountActivitySkuAddResponse -} - -// 特价活动新增商品 成功返回结果 -type AlibabaRetailMarketingItemdiscountActivitySkuAddResponse struct { - XMLName xml.Name `xml:"alibaba_retail_marketing_itemdiscount_activity_sku_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIRequest.go b/model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIRequest.go new file mode 100644 index 0000000000..63bee69eb9 --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除特价活动商品 API请求 +alibaba.retail.marketing.itemdiscount.activity.sku.delete + +删除活动商品信息【同城零售】 +*/ +type AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIRequest struct { + model.Params + // 添加活动商品参数 + _param *ItemDiscountActivityElementOperateRequest +} + +// 初始化AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIRequest对象 +func NewAlibabaRetailMarketingItemdiscountActivitySkuDeleteRequest() *AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIRequest{ + return &AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.retail.marketing.itemdiscount.activity.sku.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 添加活动商品参数 +func (r *AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIRequest) SetParam(_param *ItemDiscountActivityElementOperateRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIRequest) GetParam() *ItemDiscountActivityElementOperateRequest { + return r._param +} diff --git a/model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIResponse.go b/model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIResponse.go new file mode 100644 index 0000000000..3d67017244 --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除特价活动商品 API返回值 +alibaba.retail.marketing.itemdiscount.activity.sku.delete + +删除活动商品信息【同城零售】 +*/ +type AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIResponse struct { + model.CommonResponse + AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIResponseModel +} + +// 删除特价活动商品 成功返回结果 +type AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_marketing_itemdiscount_activity_sku_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuDeleteResponse.go b/model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuDeleteResponse.go deleted file mode 100644 index 0a65c5c8f1..0000000000 --- a/model/wdk/AlibabaRetailMarketingItemdiscountActivitySkuDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除特价活动商品 API返回值 -alibaba.retail.marketing.itemdiscount.activity.sku.delete - -删除活动商品信息【同城零售】 -*/ -type AlibabaRetailMarketingItemdiscountActivitySkuDeleteAPIResponse struct { - model.CommonResponse - AlibabaRetailMarketingItemdiscountActivitySkuDeleteResponse -} - -// 删除特价活动商品 成功返回结果 -type AlibabaRetailMarketingItemdiscountActivitySkuDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_retail_marketing_itemdiscount_activity_sku_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaRetailMarketingItemdiscountActivityUpdateAPIRequest.go b/model/wdk/AlibabaRetailMarketingItemdiscountActivityUpdateAPIRequest.go new file mode 100644 index 0000000000..8dad4a5c80 --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItemdiscountActivityUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新单品特价活动【同城零售】 API请求 +alibaba.retail.marketing.itemdiscount.activity.update + +同城零售单品特价活动更新 +*/ +type AlibabaRetailMarketingItemdiscountActivityUpdateAPIRequest struct { + model.Params + // 创建活动参数 + _param *ItemDiscountActivityOperateRequest +} + +// 初始化AlibabaRetailMarketingItemdiscountActivityUpdateAPIRequest对象 +func NewAlibabaRetailMarketingItemdiscountActivityUpdateRequest() *AlibabaRetailMarketingItemdiscountActivityUpdateAPIRequest{ + return &AlibabaRetailMarketingItemdiscountActivityUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailMarketingItemdiscountActivityUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.retail.marketing.itemdiscount.activity.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailMarketingItemdiscountActivityUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 创建活动参数 +func (r *AlibabaRetailMarketingItemdiscountActivityUpdateAPIRequest) SetParam(_param *ItemDiscountActivityOperateRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaRetailMarketingItemdiscountActivityUpdateAPIRequest) GetParam() *ItemDiscountActivityOperateRequest { + return r._param +} diff --git a/model/wdk/AlibabaRetailMarketingItemdiscountActivityUpdateAPIResponse.go b/model/wdk/AlibabaRetailMarketingItemdiscountActivityUpdateAPIResponse.go new file mode 100644 index 0000000000..c0eda0ea19 --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItemdiscountActivityUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新单品特价活动【同城零售】 API返回值 +alibaba.retail.marketing.itemdiscount.activity.update + +同城零售单品特价活动更新 +*/ +type AlibabaRetailMarketingItemdiscountActivityUpdateAPIResponse struct { + model.CommonResponse + AlibabaRetailMarketingItemdiscountActivityUpdateAPIResponseModel +} + +// 更新单品特价活动【同城零售】 成功返回结果 +type AlibabaRetailMarketingItemdiscountActivityUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_marketing_itemdiscount_activity_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaRetailMarketingItemdiscountActivityUpdateResponse.go b/model/wdk/AlibabaRetailMarketingItemdiscountActivityUpdateResponse.go deleted file mode 100644 index 95ee0d47ea..0000000000 --- a/model/wdk/AlibabaRetailMarketingItemdiscountActivityUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新单品特价活动【同城零售】 API返回值 -alibaba.retail.marketing.itemdiscount.activity.update - -同城零售单品特价活动更新 -*/ -type AlibabaRetailMarketingItemdiscountActivityUpdateAPIResponse struct { - model.CommonResponse - AlibabaRetailMarketingItemdiscountActivityUpdateResponse -} - -// 更新单品特价活动【同城零售】 成功返回结果 -type AlibabaRetailMarketingItemdiscountActivityUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_retail_marketing_itemdiscount_activity_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaRetailMarketingItempoolActivityCreateAPIRequest.go b/model/wdk/AlibabaRetailMarketingItempoolActivityCreateAPIRequest.go new file mode 100644 index 0000000000..9e7d68f065 --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItempoolActivityCreateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建商品池活动【同城零售】 API请求 +alibaba.retail.marketing.itempool.activity.create + +同城零售商品池活动创建 +*/ +type AlibabaRetailMarketingItempoolActivityCreateAPIRequest struct { + model.Params + // 创建商品池活动参数 + _param *ItemPoolActivityOperateRequest +} + +// 初始化AlibabaRetailMarketingItempoolActivityCreateAPIRequest对象 +func NewAlibabaRetailMarketingItempoolActivityCreateRequest() *AlibabaRetailMarketingItempoolActivityCreateAPIRequest{ + return &AlibabaRetailMarketingItempoolActivityCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailMarketingItempoolActivityCreateAPIRequest) GetApiMethodName() string { + return "alibaba.retail.marketing.itempool.activity.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailMarketingItempoolActivityCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 创建商品池活动参数 +func (r *AlibabaRetailMarketingItempoolActivityCreateAPIRequest) SetParam(_param *ItemPoolActivityOperateRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaRetailMarketingItempoolActivityCreateAPIRequest) GetParam() *ItemPoolActivityOperateRequest { + return r._param +} diff --git a/model/wdk/AlibabaRetailMarketingItempoolActivityCreateAPIResponse.go b/model/wdk/AlibabaRetailMarketingItempoolActivityCreateAPIResponse.go new file mode 100644 index 0000000000..504b51edbd --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItempoolActivityCreateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建商品池活动【同城零售】 API返回值 +alibaba.retail.marketing.itempool.activity.create + +同城零售商品池活动创建 +*/ +type AlibabaRetailMarketingItempoolActivityCreateAPIResponse struct { + model.CommonResponse + AlibabaRetailMarketingItempoolActivityCreateAPIResponseModel +} + +// 创建商品池活动【同城零售】 成功返回结果 +type AlibabaRetailMarketingItempoolActivityCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_marketing_itempool_activity_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaRetailMarketingItempoolActivityCreateResponse.go b/model/wdk/AlibabaRetailMarketingItempoolActivityCreateResponse.go deleted file mode 100644 index 9f26520c64..0000000000 --- a/model/wdk/AlibabaRetailMarketingItempoolActivityCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建商品池活动【同城零售】 API返回值 -alibaba.retail.marketing.itempool.activity.create - -同城零售商品池活动创建 -*/ -type AlibabaRetailMarketingItempoolActivityCreateAPIResponse struct { - model.CommonResponse - AlibabaRetailMarketingItempoolActivityCreateResponse -} - -// 创建商品池活动【同城零售】 成功返回结果 -type AlibabaRetailMarketingItempoolActivityCreateResponse struct { - XMLName xml.Name `xml:"alibaba_retail_marketing_itempool_activity_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaRetailMarketingItempoolActivityDeleteAPIRequest.go b/model/wdk/AlibabaRetailMarketingItempoolActivityDeleteAPIRequest.go new file mode 100644 index 0000000000..9d13b07320 --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItempoolActivityDeleteAPIRequest.go @@ -0,0 +1,80 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除商品池活动【同城零售】 API请求 +alibaba.retail.marketing.itempool.activity.delete + +同城零售商品池活动删除 +*/ +type AlibabaRetailMarketingItempoolActivityDeleteAPIRequest struct { + model.Params + // 同城零售活动Id + _actId int64 + // 操作人id + _creatorId string + // 操作人名称 + _creatorName string +} + +// 初始化AlibabaRetailMarketingItempoolActivityDeleteAPIRequest对象 +func NewAlibabaRetailMarketingItempoolActivityDeleteRequest() *AlibabaRetailMarketingItempoolActivityDeleteAPIRequest{ + return &AlibabaRetailMarketingItempoolActivityDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailMarketingItempoolActivityDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.retail.marketing.itempool.activity.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailMarketingItempoolActivityDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActId Setter +// 同城零售活动Id +func (r *AlibabaRetailMarketingItempoolActivityDeleteAPIRequest) SetActId(_actId int64) error { + r._actId = _actId + r.Set("act_id", _actId) + return nil +} + +// ActId Getter +func (r AlibabaRetailMarketingItempoolActivityDeleteAPIRequest) GetActId() int64 { + return r._actId +} +// CreatorId Setter +// 操作人id +func (r *AlibabaRetailMarketingItempoolActivityDeleteAPIRequest) SetCreatorId(_creatorId string) error { + r._creatorId = _creatorId + r.Set("creator_id", _creatorId) + return nil +} + +// CreatorId Getter +func (r AlibabaRetailMarketingItempoolActivityDeleteAPIRequest) GetCreatorId() string { + return r._creatorId +} +// CreatorName Setter +// 操作人名称 +func (r *AlibabaRetailMarketingItempoolActivityDeleteAPIRequest) SetCreatorName(_creatorName string) error { + r._creatorName = _creatorName + r.Set("creator_name", _creatorName) + return nil +} + +// CreatorName Getter +func (r AlibabaRetailMarketingItempoolActivityDeleteAPIRequest) GetCreatorName() string { + return r._creatorName +} diff --git a/model/wdk/AlibabaRetailMarketingItempoolActivityDeleteAPIResponse.go b/model/wdk/AlibabaRetailMarketingItempoolActivityDeleteAPIResponse.go new file mode 100644 index 0000000000..00a4d5c3d4 --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItempoolActivityDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除商品池活动【同城零售】 API返回值 +alibaba.retail.marketing.itempool.activity.delete + +同城零售商品池活动删除 +*/ +type AlibabaRetailMarketingItempoolActivityDeleteAPIResponse struct { + model.CommonResponse + AlibabaRetailMarketingItempoolActivityDeleteAPIResponseModel +} + +// 删除商品池活动【同城零售】 成功返回结果 +type AlibabaRetailMarketingItempoolActivityDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_marketing_itempool_activity_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaRetailMarketingItempoolActivityDeleteResponse.go b/model/wdk/AlibabaRetailMarketingItempoolActivityDeleteResponse.go deleted file mode 100644 index c2189f4855..0000000000 --- a/model/wdk/AlibabaRetailMarketingItempoolActivityDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除商品池活动【同城零售】 API返回值 -alibaba.retail.marketing.itempool.activity.delete - -同城零售商品池活动删除 -*/ -type AlibabaRetailMarketingItempoolActivityDeleteAPIResponse struct { - model.CommonResponse - AlibabaRetailMarketingItempoolActivityDeleteResponse -} - -// 删除商品池活动【同城零售】 成功返回结果 -type AlibabaRetailMarketingItempoolActivityDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_retail_marketing_itempool_activity_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaRetailMarketingItempoolActivitySkuAddAPIRequest.go b/model/wdk/AlibabaRetailMarketingItempoolActivitySkuAddAPIRequest.go new file mode 100644 index 0000000000..98ddb43993 --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItempoolActivitySkuAddAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品池活动新增商品 API请求 +alibaba.retail.marketing.itempool.activity.sku.add + +新增或更新商品池活动商品信息【同城零售】 +*/ +type AlibabaRetailMarketingItempoolActivitySkuAddAPIRequest struct { + model.Params + // 入参 + _param *ItemPoolActivityElementOperateRequest +} + +// 初始化AlibabaRetailMarketingItempoolActivitySkuAddAPIRequest对象 +func NewAlibabaRetailMarketingItempoolActivitySkuAddRequest() *AlibabaRetailMarketingItempoolActivitySkuAddAPIRequest{ + return &AlibabaRetailMarketingItempoolActivitySkuAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailMarketingItempoolActivitySkuAddAPIRequest) GetApiMethodName() string { + return "alibaba.retail.marketing.itempool.activity.sku.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailMarketingItempoolActivitySkuAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *AlibabaRetailMarketingItempoolActivitySkuAddAPIRequest) SetParam(_param *ItemPoolActivityElementOperateRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaRetailMarketingItempoolActivitySkuAddAPIRequest) GetParam() *ItemPoolActivityElementOperateRequest { + return r._param +} diff --git a/model/wdk/AlibabaRetailMarketingItempoolActivitySkuAddAPIResponse.go b/model/wdk/AlibabaRetailMarketingItempoolActivitySkuAddAPIResponse.go new file mode 100644 index 0000000000..fc402dba0c --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItempoolActivitySkuAddAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品池活动新增商品 API返回值 +alibaba.retail.marketing.itempool.activity.sku.add + +新增或更新商品池活动商品信息【同城零售】 +*/ +type AlibabaRetailMarketingItempoolActivitySkuAddAPIResponse struct { + model.CommonResponse + AlibabaRetailMarketingItempoolActivitySkuAddAPIResponseModel +} + +// 商品池活动新增商品 成功返回结果 +type AlibabaRetailMarketingItempoolActivitySkuAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_marketing_itempool_activity_sku_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaRetailMarketingItempoolActivitySkuAddResponse.go b/model/wdk/AlibabaRetailMarketingItempoolActivitySkuAddResponse.go deleted file mode 100644 index 50d7d38fcf..0000000000 --- a/model/wdk/AlibabaRetailMarketingItempoolActivitySkuAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品池活动新增商品 API返回值 -alibaba.retail.marketing.itempool.activity.sku.add - -新增或更新商品池活动商品信息【同城零售】 -*/ -type AlibabaRetailMarketingItempoolActivitySkuAddAPIResponse struct { - model.CommonResponse - AlibabaRetailMarketingItempoolActivitySkuAddResponse -} - -// 商品池活动新增商品 成功返回结果 -type AlibabaRetailMarketingItempoolActivitySkuAddResponse struct { - XMLName xml.Name `xml:"alibaba_retail_marketing_itempool_activity_sku_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaRetailMarketingItempoolActivitySkuDeleteAPIRequest.go b/model/wdk/AlibabaRetailMarketingItempoolActivitySkuDeleteAPIRequest.go new file mode 100644 index 0000000000..ab6266d863 --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItempoolActivitySkuDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除商品池活动商品【同城零售】 API请求 +alibaba.retail.marketing.itempool.activity.sku.delete + +删除商品池活动商品信息【同城零售】 +*/ +type AlibabaRetailMarketingItempoolActivitySkuDeleteAPIRequest struct { + model.Params + // 入参 + _param *ItemPoolActivityElementOperateRequest +} + +// 初始化AlibabaRetailMarketingItempoolActivitySkuDeleteAPIRequest对象 +func NewAlibabaRetailMarketingItempoolActivitySkuDeleteRequest() *AlibabaRetailMarketingItempoolActivitySkuDeleteAPIRequest{ + return &AlibabaRetailMarketingItempoolActivitySkuDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailMarketingItempoolActivitySkuDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.retail.marketing.itempool.activity.sku.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailMarketingItempoolActivitySkuDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *AlibabaRetailMarketingItempoolActivitySkuDeleteAPIRequest) SetParam(_param *ItemPoolActivityElementOperateRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaRetailMarketingItempoolActivitySkuDeleteAPIRequest) GetParam() *ItemPoolActivityElementOperateRequest { + return r._param +} diff --git a/model/wdk/AlibabaRetailMarketingItempoolActivitySkuDeleteAPIResponse.go b/model/wdk/AlibabaRetailMarketingItempoolActivitySkuDeleteAPIResponse.go new file mode 100644 index 0000000000..a8b8e89c75 --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItempoolActivitySkuDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除商品池活动商品【同城零售】 API返回值 +alibaba.retail.marketing.itempool.activity.sku.delete + +删除商品池活动商品信息【同城零售】 +*/ +type AlibabaRetailMarketingItempoolActivitySkuDeleteAPIResponse struct { + model.CommonResponse + AlibabaRetailMarketingItempoolActivitySkuDeleteAPIResponseModel +} + +// 删除商品池活动商品【同城零售】 成功返回结果 +type AlibabaRetailMarketingItempoolActivitySkuDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_marketing_itempool_activity_sku_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaRetailMarketingItempoolActivitySkuDeleteResponse.go b/model/wdk/AlibabaRetailMarketingItempoolActivitySkuDeleteResponse.go deleted file mode 100644 index 8e1f658a7b..0000000000 --- a/model/wdk/AlibabaRetailMarketingItempoolActivitySkuDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除商品池活动商品【同城零售】 API返回值 -alibaba.retail.marketing.itempool.activity.sku.delete - -删除商品池活动商品信息【同城零售】 -*/ -type AlibabaRetailMarketingItempoolActivitySkuDeleteAPIResponse struct { - model.CommonResponse - AlibabaRetailMarketingItempoolActivitySkuDeleteResponse -} - -// 删除商品池活动商品【同城零售】 成功返回结果 -type AlibabaRetailMarketingItempoolActivitySkuDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_retail_marketing_itempool_activity_sku_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaRetailMarketingItempoolActivityUpdateAPIRequest.go b/model/wdk/AlibabaRetailMarketingItempoolActivityUpdateAPIRequest.go new file mode 100644 index 0000000000..1fa80f5899 --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItempoolActivityUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新商品池活动【同城零售】 API请求 +alibaba.retail.marketing.itempool.activity.update + +同城零售商品池活动更新 +*/ +type AlibabaRetailMarketingItempoolActivityUpdateAPIRequest struct { + model.Params + // 更新商品池活动参数 + _param *ItemPoolActivityOperateRequest +} + +// 初始化AlibabaRetailMarketingItempoolActivityUpdateAPIRequest对象 +func NewAlibabaRetailMarketingItempoolActivityUpdateRequest() *AlibabaRetailMarketingItempoolActivityUpdateAPIRequest{ + return &AlibabaRetailMarketingItempoolActivityUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaRetailMarketingItempoolActivityUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.retail.marketing.itempool.activity.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaRetailMarketingItempoolActivityUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 更新商品池活动参数 +func (r *AlibabaRetailMarketingItempoolActivityUpdateAPIRequest) SetParam(_param *ItemPoolActivityOperateRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaRetailMarketingItempoolActivityUpdateAPIRequest) GetParam() *ItemPoolActivityOperateRequest { + return r._param +} diff --git a/model/wdk/AlibabaRetailMarketingItempoolActivityUpdateAPIResponse.go b/model/wdk/AlibabaRetailMarketingItempoolActivityUpdateAPIResponse.go new file mode 100644 index 0000000000..ebccdf26ea --- /dev/null +++ b/model/wdk/AlibabaRetailMarketingItempoolActivityUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新商品池活动【同城零售】 API返回值 +alibaba.retail.marketing.itempool.activity.update + +同城零售商品池活动更新 +*/ +type AlibabaRetailMarketingItempoolActivityUpdateAPIResponse struct { + model.CommonResponse + AlibabaRetailMarketingItempoolActivityUpdateAPIResponseModel +} + +// 更新商品池活动【同城零售】 成功返回结果 +type AlibabaRetailMarketingItempoolActivityUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_retail_marketing_itempool_activity_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 操作结果 + Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaRetailMarketingItempoolActivityUpdateResponse.go b/model/wdk/AlibabaRetailMarketingItempoolActivityUpdateResponse.go deleted file mode 100644 index f390c9fe00..0000000000 --- a/model/wdk/AlibabaRetailMarketingItempoolActivityUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新商品池活动【同城零售】 API返回值 -alibaba.retail.marketing.itempool.activity.update - -同城零售商品池活动更新 -*/ -type AlibabaRetailMarketingItempoolActivityUpdateAPIResponse struct { - model.CommonResponse - AlibabaRetailMarketingItempoolActivityUpdateResponse -} - -// 更新商品池活动【同城零售】 成功返回结果 -type AlibabaRetailMarketingItempoolActivityUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_retail_marketing_itempool_activity_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 操作结果 - Result *OctopusOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaTclsAelophyBillVerificateCallbackAPIRequest.go b/model/wdk/AlibabaTclsAelophyBillVerificateCallbackAPIRequest.go new file mode 100644 index 0000000000..38d369fa8d --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyBillVerificateCallbackAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +翱象ERP核销回调 API请求 +alibaba.tcls.aelophy.bill.verificate.callback + +翱象ERP核销回调 +*/ +type AlibabaTclsAelophyBillVerificateCallbackAPIRequest struct { + model.Params + // 回调对象 + _module *VerificateCallbackDto +} + +// 初始化AlibabaTclsAelophyBillVerificateCallbackAPIRequest对象 +func NewAlibabaTclsAelophyBillVerificateCallbackRequest() *AlibabaTclsAelophyBillVerificateCallbackAPIRequest{ + return &AlibabaTclsAelophyBillVerificateCallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTclsAelophyBillVerificateCallbackAPIRequest) GetApiMethodName() string { + return "alibaba.tcls.aelophy.bill.verificate.callback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTclsAelophyBillVerificateCallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Module Setter +// 回调对象 +func (r *AlibabaTclsAelophyBillVerificateCallbackAPIRequest) SetModule(_module *VerificateCallbackDto) error { + r._module = _module + r.Set("module", _module) + return nil +} + +// Module Getter +func (r AlibabaTclsAelophyBillVerificateCallbackAPIRequest) GetModule() *VerificateCallbackDto { + return r._module +} diff --git a/model/wdk/AlibabaTclsAelophyBillVerificateCallbackAPIResponse.go b/model/wdk/AlibabaTclsAelophyBillVerificateCallbackAPIResponse.go new file mode 100644 index 0000000000..75b3272cb6 --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyBillVerificateCallbackAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +翱象ERP核销回调 API返回值 +alibaba.tcls.aelophy.bill.verificate.callback + +翱象ERP核销回调 +*/ +type AlibabaTclsAelophyBillVerificateCallbackAPIResponse struct { + model.CommonResponse + AlibabaTclsAelophyBillVerificateCallbackAPIResponseModel +} + +// 翱象ERP核销回调 成功返回结果 +type AlibabaTclsAelophyBillVerificateCallbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tcls_aelophy_bill_verificate_callback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 处理结果 + ApiResult *AlibabaTclsAelophyBillVerificateCallbackApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaTclsAelophyBillVerificateCallbackResponse.go b/model/wdk/AlibabaTclsAelophyBillVerificateCallbackResponse.go deleted file mode 100644 index 37c18b1f11..0000000000 --- a/model/wdk/AlibabaTclsAelophyBillVerificateCallbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -翱象ERP核销回调 API返回值 -alibaba.tcls.aelophy.bill.verificate.callback - -翱象ERP核销回调 -*/ -type AlibabaTclsAelophyBillVerificateCallbackAPIResponse struct { - model.CommonResponse - AlibabaTclsAelophyBillVerificateCallbackResponse -} - -// 翱象ERP核销回调 成功返回结果 -type AlibabaTclsAelophyBillVerificateCallbackResponse struct { - XMLName xml.Name `xml:"alibaba_tcls_aelophy_bill_verificate_callback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 处理结果 - ApiResult *AlibabaTclsAelophyBillVerificateCallbackApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaTclsAelophyMerchantChannelOrderCancelAPIRequest.go b/model/wdk/AlibabaTclsAelophyMerchantChannelOrderCancelAPIRequest.go new file mode 100644 index 0000000000..b80aa8ef4a --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyMerchantChannelOrderCancelAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +翱象商家自有渠道 交易订单取消 API请求 +alibaba.tcls.aelophy.merchant.channel.order.cancel + +翱象小程序用户取消订单 +*/ +type AlibabaTclsAelophyMerchantChannelOrderCancelAPIRequest struct { + model.Params + // 取消信息 + _userCancelInfo *OrderUserCancelInfo +} + +// 初始化AlibabaTclsAelophyMerchantChannelOrderCancelAPIRequest对象 +func NewAlibabaTclsAelophyMerchantChannelOrderCancelRequest() *AlibabaTclsAelophyMerchantChannelOrderCancelAPIRequest{ + return &AlibabaTclsAelophyMerchantChannelOrderCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTclsAelophyMerchantChannelOrderCancelAPIRequest) GetApiMethodName() string { + return "alibaba.tcls.aelophy.merchant.channel.order.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTclsAelophyMerchantChannelOrderCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserCancelInfo Setter +// 取消信息 +func (r *AlibabaTclsAelophyMerchantChannelOrderCancelAPIRequest) SetUserCancelInfo(_userCancelInfo *OrderUserCancelInfo) error { + r._userCancelInfo = _userCancelInfo + r.Set("user_cancel_info", _userCancelInfo) + return nil +} + +// UserCancelInfo Getter +func (r AlibabaTclsAelophyMerchantChannelOrderCancelAPIRequest) GetUserCancelInfo() *OrderUserCancelInfo { + return r._userCancelInfo +} diff --git a/model/wdk/AlibabaTclsAelophyMerchantChannelOrderCancelAPIResponse.go b/model/wdk/AlibabaTclsAelophyMerchantChannelOrderCancelAPIResponse.go new file mode 100644 index 0000000000..4a6340942f --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyMerchantChannelOrderCancelAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +翱象商家自有渠道 交易订单取消 API返回值 +alibaba.tcls.aelophy.merchant.channel.order.cancel + +翱象小程序用户取消订单 +*/ +type AlibabaTclsAelophyMerchantChannelOrderCancelAPIResponse struct { + model.CommonResponse + AlibabaTclsAelophyMerchantChannelOrderCancelAPIResponseModel +} + +// 翱象商家自有渠道 交易订单取消 成功返回结果 +type AlibabaTclsAelophyMerchantChannelOrderCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tcls_aelophy_merchant_channel_order_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + ApiResult *AlibabaTclsAelophyMerchantChannelOrderCancelApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaTclsAelophyMerchantChannelOrderCancelResponse.go b/model/wdk/AlibabaTclsAelophyMerchantChannelOrderCancelResponse.go deleted file mode 100644 index 36287f4612..0000000000 --- a/model/wdk/AlibabaTclsAelophyMerchantChannelOrderCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -翱象商家自有渠道 交易订单取消 API返回值 -alibaba.tcls.aelophy.merchant.channel.order.cancel - -翱象小程序用户取消订单 -*/ -type AlibabaTclsAelophyMerchantChannelOrderCancelAPIResponse struct { - model.CommonResponse - AlibabaTclsAelophyMerchantChannelOrderCancelResponse -} - -// 翱象商家自有渠道 交易订单取消 成功返回结果 -type AlibabaTclsAelophyMerchantChannelOrderCancelResponse struct { - XMLName xml.Name `xml:"alibaba_tcls_aelophy_merchant_channel_order_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - ApiResult *AlibabaTclsAelophyMerchantChannelOrderCancelApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaTclsAelophyMerchantChannelOrderCreateAPIRequest.go b/model/wdk/AlibabaTclsAelophyMerchantChannelOrderCreateAPIRequest.go new file mode 100644 index 0000000000..034f4e97b5 --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyMerchantChannelOrderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +翱象商家自有渠道 订单创建 API请求 +alibaba.tcls.aelophy.merchant.channel.order.create + +翱象小程序渠道订单创建 +*/ +type AlibabaTclsAelophyMerchantChannelOrderCreateAPIRequest struct { + model.Params + // 订单信息 + _orderInfo *OrderInfo +} + +// 初始化AlibabaTclsAelophyMerchantChannelOrderCreateAPIRequest对象 +func NewAlibabaTclsAelophyMerchantChannelOrderCreateRequest() *AlibabaTclsAelophyMerchantChannelOrderCreateAPIRequest{ + return &AlibabaTclsAelophyMerchantChannelOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTclsAelophyMerchantChannelOrderCreateAPIRequest) GetApiMethodName() string { + return "alibaba.tcls.aelophy.merchant.channel.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTclsAelophyMerchantChannelOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderInfo Setter +// 订单信息 +func (r *AlibabaTclsAelophyMerchantChannelOrderCreateAPIRequest) SetOrderInfo(_orderInfo *OrderInfo) error { + r._orderInfo = _orderInfo + r.Set("order_info", _orderInfo) + return nil +} + +// OrderInfo Getter +func (r AlibabaTclsAelophyMerchantChannelOrderCreateAPIRequest) GetOrderInfo() *OrderInfo { + return r._orderInfo +} diff --git a/model/wdk/AlibabaTclsAelophyMerchantChannelOrderCreateAPIResponse.go b/model/wdk/AlibabaTclsAelophyMerchantChannelOrderCreateAPIResponse.go new file mode 100644 index 0000000000..f2d6ea7b36 --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyMerchantChannelOrderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +翱象商家自有渠道 订单创建 API返回值 +alibaba.tcls.aelophy.merchant.channel.order.create + +翱象小程序渠道订单创建 +*/ +type AlibabaTclsAelophyMerchantChannelOrderCreateAPIResponse struct { + model.CommonResponse + AlibabaTclsAelophyMerchantChannelOrderCreateAPIResponseModel +} + +// 翱象商家自有渠道 订单创建 成功返回结果 +type AlibabaTclsAelophyMerchantChannelOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tcls_aelophy_merchant_channel_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + ApiResult *AlibabaTclsAelophyMerchantChannelOrderCreateApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaTclsAelophyMerchantChannelOrderCreateResponse.go b/model/wdk/AlibabaTclsAelophyMerchantChannelOrderCreateResponse.go deleted file mode 100644 index d655a115d4..0000000000 --- a/model/wdk/AlibabaTclsAelophyMerchantChannelOrderCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -翱象商家自有渠道 订单创建 API返回值 -alibaba.tcls.aelophy.merchant.channel.order.create - -翱象小程序渠道订单创建 -*/ -type AlibabaTclsAelophyMerchantChannelOrderCreateAPIResponse struct { - model.CommonResponse - AlibabaTclsAelophyMerchantChannelOrderCreateResponse -} - -// 翱象商家自有渠道 订单创建 成功返回结果 -type AlibabaTclsAelophyMerchantChannelOrderCreateResponse struct { - XMLName xml.Name `xml:"alibaba_tcls_aelophy_merchant_channel_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - ApiResult *AlibabaTclsAelophyMerchantChannelOrderCreateApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIRequest.go b/model/wdk/AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIRequest.go new file mode 100644 index 0000000000..69341ee53b --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +翱象商家自有渠道 订单状态更新 API请求 +alibaba.tcls.aelophy.merchant.channel.order.updatestatus + +订单状态变更 +*/ +type AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIRequest struct { + model.Params + // 修改信息 + _orderStatusInfo *OrderStatusInfo +} + +// 初始化AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIRequest对象 +func NewAlibabaTclsAelophyMerchantChannelOrderUpdatestatusRequest() *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIRequest{ + return &AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIRequest) GetApiMethodName() string { + return "alibaba.tcls.aelophy.merchant.channel.order.updatestatus" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderStatusInfo Setter +// 修改信息 +func (r *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIRequest) SetOrderStatusInfo(_orderStatusInfo *OrderStatusInfo) error { + r._orderStatusInfo = _orderStatusInfo + r.Set("order_status_info", _orderStatusInfo) + return nil +} + +// OrderStatusInfo Getter +func (r AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIRequest) GetOrderStatusInfo() *OrderStatusInfo { + return r._orderStatusInfo +} diff --git a/model/wdk/AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIResponse.go b/model/wdk/AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIResponse.go new file mode 100644 index 0000000000..afc03f683d --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +翱象商家自有渠道 订单状态更新 API返回值 +alibaba.tcls.aelophy.merchant.channel.order.updatestatus + +订单状态变更 +*/ +type AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIResponse struct { + model.CommonResponse + AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIResponseModel +} + +// 翱象商家自有渠道 订单状态更新 成功返回结果 +type AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tcls_aelophy_merchant_channel_order_updatestatus_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + ApiResult *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaTclsAelophyMerchantChannelOrderUpdatestatusResponse.go b/model/wdk/AlibabaTclsAelophyMerchantChannelOrderUpdatestatusResponse.go deleted file mode 100644 index 9c46a8d8be..0000000000 --- a/model/wdk/AlibabaTclsAelophyMerchantChannelOrderUpdatestatusResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -翱象商家自有渠道 订单状态更新 API返回值 -alibaba.tcls.aelophy.merchant.channel.order.updatestatus - -订单状态变更 -*/ -type AlibabaTclsAelophyMerchantChannelOrderUpdatestatusAPIResponse struct { - model.CommonResponse - AlibabaTclsAelophyMerchantChannelOrderUpdatestatusResponse -} - -// 翱象商家自有渠道 订单状态更新 成功返回结果 -type AlibabaTclsAelophyMerchantChannelOrderUpdatestatusResponse struct { - XMLName xml.Name `xml:"alibaba_tcls_aelophy_merchant_channel_order_updatestatus_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - ApiResult *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaTclsAelophyMerchantChannelRefundApplyAPIRequest.go b/model/wdk/AlibabaTclsAelophyMerchantChannelRefundApplyAPIRequest.go new file mode 100644 index 0000000000..118dad449f --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyMerchantChannelRefundApplyAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +翱象商家自有渠道 逆向单申请 API请求 +alibaba.tcls.aelophy.merchant.channel.refund.apply + +翱象小程序 用户逆向单申请 +*/ +type AlibabaTclsAelophyMerchantChannelRefundApplyAPIRequest struct { + model.Params + // 请求对象 + _refundApplyInfo *RefundApplyInfo +} + +// 初始化AlibabaTclsAelophyMerchantChannelRefundApplyAPIRequest对象 +func NewAlibabaTclsAelophyMerchantChannelRefundApplyRequest() *AlibabaTclsAelophyMerchantChannelRefundApplyAPIRequest{ + return &AlibabaTclsAelophyMerchantChannelRefundApplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTclsAelophyMerchantChannelRefundApplyAPIRequest) GetApiMethodName() string { + return "alibaba.tcls.aelophy.merchant.channel.refund.apply" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTclsAelophyMerchantChannelRefundApplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundApplyInfo Setter +// 请求对象 +func (r *AlibabaTclsAelophyMerchantChannelRefundApplyAPIRequest) SetRefundApplyInfo(_refundApplyInfo *RefundApplyInfo) error { + r._refundApplyInfo = _refundApplyInfo + r.Set("refund_apply_info", _refundApplyInfo) + return nil +} + +// RefundApplyInfo Getter +func (r AlibabaTclsAelophyMerchantChannelRefundApplyAPIRequest) GetRefundApplyInfo() *RefundApplyInfo { + return r._refundApplyInfo +} diff --git a/model/wdk/AlibabaTclsAelophyMerchantChannelRefundApplyAPIResponse.go b/model/wdk/AlibabaTclsAelophyMerchantChannelRefundApplyAPIResponse.go new file mode 100644 index 0000000000..6f9429a596 --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyMerchantChannelRefundApplyAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +翱象商家自有渠道 逆向单申请 API返回值 +alibaba.tcls.aelophy.merchant.channel.refund.apply + +翱象小程序 用户逆向单申请 +*/ +type AlibabaTclsAelophyMerchantChannelRefundApplyAPIResponse struct { + model.CommonResponse + AlibabaTclsAelophyMerchantChannelRefundApplyAPIResponseModel +} + +// 翱象商家自有渠道 逆向单申请 成功返回结果 +type AlibabaTclsAelophyMerchantChannelRefundApplyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tcls_aelophy_merchant_channel_refund_apply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + ApiResult *AlibabaTclsAelophyMerchantChannelRefundApplyApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaTclsAelophyMerchantChannelRefundApplyResponse.go b/model/wdk/AlibabaTclsAelophyMerchantChannelRefundApplyResponse.go deleted file mode 100644 index 1cd2c9b99e..0000000000 --- a/model/wdk/AlibabaTclsAelophyMerchantChannelRefundApplyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -翱象商家自有渠道 逆向单申请 API返回值 -alibaba.tcls.aelophy.merchant.channel.refund.apply - -翱象小程序 用户逆向单申请 -*/ -type AlibabaTclsAelophyMerchantChannelRefundApplyAPIResponse struct { - model.CommonResponse - AlibabaTclsAelophyMerchantChannelRefundApplyResponse -} - -// 翱象商家自有渠道 逆向单申请 成功返回结果 -type AlibabaTclsAelophyMerchantChannelRefundApplyResponse struct { - XMLName xml.Name `xml:"alibaba_tcls_aelophy_merchant_channel_refund_apply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - ApiResult *AlibabaTclsAelophyMerchantChannelRefundApplyApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaTclsAelophyMerchantChannelRefundCancelAPIRequest.go b/model/wdk/AlibabaTclsAelophyMerchantChannelRefundCancelAPIRequest.go new file mode 100644 index 0000000000..ab85d0571c --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyMerchantChannelRefundCancelAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +翱象商家自有渠道 逆向单申请取消 API请求 +alibaba.tcls.aelophy.merchant.channel.refund.cancel + +翱象小程序 用户逆向申请取消 +*/ +type AlibabaTclsAelophyMerchantChannelRefundCancelAPIRequest struct { + model.Params + // 逆向申请取消 + _refundCancelInfo *RefundCancelInfo +} + +// 初始化AlibabaTclsAelophyMerchantChannelRefundCancelAPIRequest对象 +func NewAlibabaTclsAelophyMerchantChannelRefundCancelRequest() *AlibabaTclsAelophyMerchantChannelRefundCancelAPIRequest{ + return &AlibabaTclsAelophyMerchantChannelRefundCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTclsAelophyMerchantChannelRefundCancelAPIRequest) GetApiMethodName() string { + return "alibaba.tcls.aelophy.merchant.channel.refund.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTclsAelophyMerchantChannelRefundCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundCancelInfo Setter +// 逆向申请取消 +func (r *AlibabaTclsAelophyMerchantChannelRefundCancelAPIRequest) SetRefundCancelInfo(_refundCancelInfo *RefundCancelInfo) error { + r._refundCancelInfo = _refundCancelInfo + r.Set("refund_cancel_info", _refundCancelInfo) + return nil +} + +// RefundCancelInfo Getter +func (r AlibabaTclsAelophyMerchantChannelRefundCancelAPIRequest) GetRefundCancelInfo() *RefundCancelInfo { + return r._refundCancelInfo +} diff --git a/model/wdk/AlibabaTclsAelophyMerchantChannelRefundCancelAPIResponse.go b/model/wdk/AlibabaTclsAelophyMerchantChannelRefundCancelAPIResponse.go new file mode 100644 index 0000000000..b96789df20 --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyMerchantChannelRefundCancelAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +翱象商家自有渠道 逆向单申请取消 API返回值 +alibaba.tcls.aelophy.merchant.channel.refund.cancel + +翱象小程序 用户逆向申请取消 +*/ +type AlibabaTclsAelophyMerchantChannelRefundCancelAPIResponse struct { + model.CommonResponse + AlibabaTclsAelophyMerchantChannelRefundCancelAPIResponseModel +} + +// 翱象商家自有渠道 逆向单申请取消 成功返回结果 +type AlibabaTclsAelophyMerchantChannelRefundCancelAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tcls_aelophy_merchant_channel_refund_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + ApiResult *AlibabaTclsAelophyMerchantChannelRefundCancelApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaTclsAelophyMerchantChannelRefundCancelResponse.go b/model/wdk/AlibabaTclsAelophyMerchantChannelRefundCancelResponse.go deleted file mode 100644 index b18f2427c7..0000000000 --- a/model/wdk/AlibabaTclsAelophyMerchantChannelRefundCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -翱象商家自有渠道 逆向单申请取消 API返回值 -alibaba.tcls.aelophy.merchant.channel.refund.cancel - -翱象小程序 用户逆向申请取消 -*/ -type AlibabaTclsAelophyMerchantChannelRefundCancelAPIResponse struct { - model.CommonResponse - AlibabaTclsAelophyMerchantChannelRefundCancelResponse -} - -// 翱象商家自有渠道 逆向单申请取消 成功返回结果 -type AlibabaTclsAelophyMerchantChannelRefundCancelResponse struct { - XMLName xml.Name `xml:"alibaba_tcls_aelophy_merchant_channel_refund_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - ApiResult *AlibabaTclsAelophyMerchantChannelRefundCancelApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaTclsAelophyMerchantChannelRefundCompleteAPIRequest.go b/model/wdk/AlibabaTclsAelophyMerchantChannelRefundCompleteAPIRequest.go new file mode 100644 index 0000000000..007d4f117e --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyMerchantChannelRefundCompleteAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +翱象商家自有渠道 逆向单完成 API请求 +alibaba.tcls.aelophy.merchant.channel.refund.complete + +翱象小程序 退款完成 +*/ +type AlibabaTclsAelophyMerchantChannelRefundCompleteAPIRequest struct { + model.Params + // 请求对象 + _refundCompleteInfo *RefundCompleteInfo +} + +// 初始化AlibabaTclsAelophyMerchantChannelRefundCompleteAPIRequest对象 +func NewAlibabaTclsAelophyMerchantChannelRefundCompleteRequest() *AlibabaTclsAelophyMerchantChannelRefundCompleteAPIRequest{ + return &AlibabaTclsAelophyMerchantChannelRefundCompleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTclsAelophyMerchantChannelRefundCompleteAPIRequest) GetApiMethodName() string { + return "alibaba.tcls.aelophy.merchant.channel.refund.complete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTclsAelophyMerchantChannelRefundCompleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundCompleteInfo Setter +// 请求对象 +func (r *AlibabaTclsAelophyMerchantChannelRefundCompleteAPIRequest) SetRefundCompleteInfo(_refundCompleteInfo *RefundCompleteInfo) error { + r._refundCompleteInfo = _refundCompleteInfo + r.Set("refund_complete_info", _refundCompleteInfo) + return nil +} + +// RefundCompleteInfo Getter +func (r AlibabaTclsAelophyMerchantChannelRefundCompleteAPIRequest) GetRefundCompleteInfo() *RefundCompleteInfo { + return r._refundCompleteInfo +} diff --git a/model/wdk/AlibabaTclsAelophyMerchantChannelRefundCompleteAPIResponse.go b/model/wdk/AlibabaTclsAelophyMerchantChannelRefundCompleteAPIResponse.go new file mode 100644 index 0000000000..59adedce21 --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyMerchantChannelRefundCompleteAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +翱象商家自有渠道 逆向单完成 API返回值 +alibaba.tcls.aelophy.merchant.channel.refund.complete + +翱象小程序 退款完成 +*/ +type AlibabaTclsAelophyMerchantChannelRefundCompleteAPIResponse struct { + model.CommonResponse + AlibabaTclsAelophyMerchantChannelRefundCompleteAPIResponseModel +} + +// 翱象商家自有渠道 逆向单完成 成功返回结果 +type AlibabaTclsAelophyMerchantChannelRefundCompleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tcls_aelophy_merchant_channel_refund_complete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + ApiResult *AlibabaTclsAelophyMerchantChannelRefundCompleteApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaTclsAelophyMerchantChannelRefundCompleteResponse.go b/model/wdk/AlibabaTclsAelophyMerchantChannelRefundCompleteResponse.go deleted file mode 100644 index 8283448eef..0000000000 --- a/model/wdk/AlibabaTclsAelophyMerchantChannelRefundCompleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -翱象商家自有渠道 逆向单完成 API返回值 -alibaba.tcls.aelophy.merchant.channel.refund.complete - -翱象小程序 退款完成 -*/ -type AlibabaTclsAelophyMerchantChannelRefundCompleteAPIResponse struct { - model.CommonResponse - AlibabaTclsAelophyMerchantChannelRefundCompleteResponse -} - -// 翱象商家自有渠道 逆向单完成 成功返回结果 -type AlibabaTclsAelophyMerchantChannelRefundCompleteResponse struct { - XMLName xml.Name `xml:"alibaba_tcls_aelophy_merchant_channel_refund_complete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - ApiResult *AlibabaTclsAelophyMerchantChannelRefundCompleteApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaTclsAelophyMerchantIdMixAPIRequest.go b/model/wdk/AlibabaTclsAelophyMerchantIdMixAPIRequest.go new file mode 100644 index 0000000000..3e03acdf56 --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyMerchantIdMixAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家用户id混淆 API请求 +alibaba.tcls.aelophy.merchant.id.mix + +商家用户id混淆 +*/ +type AlibabaTclsAelophyMerchantIdMixAPIRequest struct { + model.Params + // 商家用户id + _unionUid string +} + +// 初始化AlibabaTclsAelophyMerchantIdMixAPIRequest对象 +func NewAlibabaTclsAelophyMerchantIdMixRequest() *AlibabaTclsAelophyMerchantIdMixAPIRequest{ + return &AlibabaTclsAelophyMerchantIdMixAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTclsAelophyMerchantIdMixAPIRequest) GetApiMethodName() string { + return "alibaba.tcls.aelophy.merchant.id.mix" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTclsAelophyMerchantIdMixAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UnionUid Setter +// 商家用户id +func (r *AlibabaTclsAelophyMerchantIdMixAPIRequest) SetUnionUid(_unionUid string) error { + r._unionUid = _unionUid + r.Set("union_uid", _unionUid) + return nil +} + +// UnionUid Getter +func (r AlibabaTclsAelophyMerchantIdMixAPIRequest) GetUnionUid() string { + return r._unionUid +} diff --git a/model/wdk/AlibabaTclsAelophyMerchantIdMixAPIResponse.go b/model/wdk/AlibabaTclsAelophyMerchantIdMixAPIResponse.go new file mode 100644 index 0000000000..62345054c7 --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyMerchantIdMixAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家用户id混淆 API返回值 +alibaba.tcls.aelophy.merchant.id.mix + +商家用户id混淆 +*/ +type AlibabaTclsAelophyMerchantIdMixAPIResponse struct { + model.CommonResponse + AlibabaTclsAelophyMerchantIdMixAPIResponseModel +} + +// 商家用户id混淆 成功返回结果 +type AlibabaTclsAelophyMerchantIdMixAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tcls_aelophy_merchant_id_mix_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + ApiResult *AlibabaTclsAelophyMerchantIdMixApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaTclsAelophyMerchantIdMixResponse.go b/model/wdk/AlibabaTclsAelophyMerchantIdMixResponse.go deleted file mode 100644 index 08fb66a918..0000000000 --- a/model/wdk/AlibabaTclsAelophyMerchantIdMixResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家用户id混淆 API返回值 -alibaba.tcls.aelophy.merchant.id.mix - -商家用户id混淆 -*/ -type AlibabaTclsAelophyMerchantIdMixAPIResponse struct { - model.CommonResponse - AlibabaTclsAelophyMerchantIdMixResponse -} - -// 商家用户id混淆 成功返回结果 -type AlibabaTclsAelophyMerchantIdMixResponse struct { - XMLName xml.Name `xml:"alibaba_tcls_aelophy_merchant_id_mix_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - ApiResult *AlibabaTclsAelophyMerchantIdMixApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaTclsAelophyMerchantOrderUploadAPIRequest.go b/model/wdk/AlibabaTclsAelophyMerchantOrderUploadAPIRequest.go new file mode 100644 index 0000000000..3479b542c6 --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyMerchantOrderUploadAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家订单数据上传 API请求 +alibaba.tcls.aelophy.merchant.order.upload + +商家订单数据上传 +*/ +type AlibabaTclsAelophyMerchantOrderUploadAPIRequest struct { + model.Params + // 商家订单信息 + _orderInfo *MerchantOrderInfo +} + +// 初始化AlibabaTclsAelophyMerchantOrderUploadAPIRequest对象 +func NewAlibabaTclsAelophyMerchantOrderUploadRequest() *AlibabaTclsAelophyMerchantOrderUploadAPIRequest{ + return &AlibabaTclsAelophyMerchantOrderUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTclsAelophyMerchantOrderUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tcls.aelophy.merchant.order.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTclsAelophyMerchantOrderUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderInfo Setter +// 商家订单信息 +func (r *AlibabaTclsAelophyMerchantOrderUploadAPIRequest) SetOrderInfo(_orderInfo *MerchantOrderInfo) error { + r._orderInfo = _orderInfo + r.Set("order_info", _orderInfo) + return nil +} + +// OrderInfo Getter +func (r AlibabaTclsAelophyMerchantOrderUploadAPIRequest) GetOrderInfo() *MerchantOrderInfo { + return r._orderInfo +} diff --git a/model/wdk/AlibabaTclsAelophyMerchantOrderUploadAPIResponse.go b/model/wdk/AlibabaTclsAelophyMerchantOrderUploadAPIResponse.go new file mode 100644 index 0000000000..d3406bbb9b --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyMerchantOrderUploadAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家订单数据上传 API返回值 +alibaba.tcls.aelophy.merchant.order.upload + +商家订单数据上传 +*/ +type AlibabaTclsAelophyMerchantOrderUploadAPIResponse struct { + model.CommonResponse + AlibabaTclsAelophyMerchantOrderUploadAPIResponseModel +} + +// 商家订单数据上传 成功返回结果 +type AlibabaTclsAelophyMerchantOrderUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tcls_aelophy_merchant_order_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 根据站点名称查询产品 + ApiResult *AlibabaTclsAelophyMerchantOrderUploadApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaTclsAelophyMerchantOrderUploadResponse.go b/model/wdk/AlibabaTclsAelophyMerchantOrderUploadResponse.go deleted file mode 100644 index 7b8ce7550f..0000000000 --- a/model/wdk/AlibabaTclsAelophyMerchantOrderUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家订单数据上传 API返回值 -alibaba.tcls.aelophy.merchant.order.upload - -商家订单数据上传 -*/ -type AlibabaTclsAelophyMerchantOrderUploadAPIResponse struct { - model.CommonResponse - AlibabaTclsAelophyMerchantOrderUploadResponse -} - -// 商家订单数据上传 成功返回结果 -type AlibabaTclsAelophyMerchantOrderUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tcls_aelophy_merchant_order_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 根据站点名称查询产品 - ApiResult *AlibabaTclsAelophyMerchantOrderUploadApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaTclsAelophyMerchantUserUploadAPIRequest.go b/model/wdk/AlibabaTclsAelophyMerchantUserUploadAPIRequest.go new file mode 100644 index 0000000000..1f172d75c4 --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyMerchantUserUploadAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家会员数据上传 API请求 +alibaba.tcls.aelophy.merchant.user.upload + +商家会员数据上传 +*/ +type AlibabaTclsAelophyMerchantUserUploadAPIRequest struct { + model.Params + // 渠道用户信息 + _userInfoList []MerchantUserInfo +} + +// 初始化AlibabaTclsAelophyMerchantUserUploadAPIRequest对象 +func NewAlibabaTclsAelophyMerchantUserUploadRequest() *AlibabaTclsAelophyMerchantUserUploadAPIRequest{ + return &AlibabaTclsAelophyMerchantUserUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTclsAelophyMerchantUserUploadAPIRequest) GetApiMethodName() string { + return "alibaba.tcls.aelophy.merchant.user.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTclsAelophyMerchantUserUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserInfoList Setter +// 渠道用户信息 +func (r *AlibabaTclsAelophyMerchantUserUploadAPIRequest) SetUserInfoList(_userInfoList []MerchantUserInfo) error { + r._userInfoList = _userInfoList + r.Set("user_info_list", _userInfoList) + return nil +} + +// UserInfoList Getter +func (r AlibabaTclsAelophyMerchantUserUploadAPIRequest) GetUserInfoList() []MerchantUserInfo { + return r._userInfoList +} diff --git a/model/wdk/AlibabaTclsAelophyMerchantUserUploadAPIResponse.go b/model/wdk/AlibabaTclsAelophyMerchantUserUploadAPIResponse.go new file mode 100644 index 0000000000..c35a0cae41 --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyMerchantUserUploadAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家会员数据上传 API返回值 +alibaba.tcls.aelophy.merchant.user.upload + +商家会员数据上传 +*/ +type AlibabaTclsAelophyMerchantUserUploadAPIResponse struct { + model.CommonResponse + AlibabaTclsAelophyMerchantUserUploadAPIResponseModel +} + +// 商家会员数据上传 成功返回结果 +type AlibabaTclsAelophyMerchantUserUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tcls_aelophy_merchant_user_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + ApiResult *AlibabaTclsAelophyMerchantUserUploadApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaTclsAelophyMerchantUserUploadResponse.go b/model/wdk/AlibabaTclsAelophyMerchantUserUploadResponse.go deleted file mode 100644 index 2b6aff4600..0000000000 --- a/model/wdk/AlibabaTclsAelophyMerchantUserUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家会员数据上传 API返回值 -alibaba.tcls.aelophy.merchant.user.upload - -商家会员数据上传 -*/ -type AlibabaTclsAelophyMerchantUserUploadAPIResponse struct { - model.CommonResponse - AlibabaTclsAelophyMerchantUserUploadResponse -} - -// 商家会员数据上传 成功返回结果 -type AlibabaTclsAelophyMerchantUserUploadResponse struct { - XMLName xml.Name `xml:"alibaba_tcls_aelophy_merchant_user_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - ApiResult *AlibabaTclsAelophyMerchantUserUploadApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaTclsAelophyRefundAgreeAPIRequest.go b/model/wdk/AlibabaTclsAelophyRefundAgreeAPIRequest.go new file mode 100644 index 0000000000..ee757ba40f --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyRefundAgreeAPIRequest.go @@ -0,0 +1,108 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +saas 售后逆向 商户同意用户逆向申请 API请求 +alibaba.tcls.aelophy.refund.agree + +saas 售后逆向 商户同意用户逆向申请 +*/ +type AlibabaTclsAelophyRefundAgreeAPIRequest struct { + model.Params + // 门店ID + _storeId string + // 外部订单ID + _outOrderId string + // 退款单ID + _refundId string + // 审核说明 + _auditMemo string + // 外部子订单列表 + _subRefundList []Subrefundlist +} + +// 初始化AlibabaTclsAelophyRefundAgreeAPIRequest对象 +func NewAlibabaTclsAelophyRefundAgreeRequest() *AlibabaTclsAelophyRefundAgreeAPIRequest{ + return &AlibabaTclsAelophyRefundAgreeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTclsAelophyRefundAgreeAPIRequest) GetApiMethodName() string { + return "alibaba.tcls.aelophy.refund.agree" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTclsAelophyRefundAgreeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店ID +func (r *AlibabaTclsAelophyRefundAgreeAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaTclsAelophyRefundAgreeAPIRequest) GetStoreId() string { + return r._storeId +} +// OutOrderId Setter +// 外部订单ID +func (r *AlibabaTclsAelophyRefundAgreeAPIRequest) SetOutOrderId(_outOrderId string) error { + r._outOrderId = _outOrderId + r.Set("out_order_id", _outOrderId) + return nil +} + +// OutOrderId Getter +func (r AlibabaTclsAelophyRefundAgreeAPIRequest) GetOutOrderId() string { + return r._outOrderId +} +// RefundId Setter +// 退款单ID +func (r *AlibabaTclsAelophyRefundAgreeAPIRequest) SetRefundId(_refundId string) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r AlibabaTclsAelophyRefundAgreeAPIRequest) GetRefundId() string { + return r._refundId +} +// AuditMemo Setter +// 审核说明 +func (r *AlibabaTclsAelophyRefundAgreeAPIRequest) SetAuditMemo(_auditMemo string) error { + r._auditMemo = _auditMemo + r.Set("audit_memo", _auditMemo) + return nil +} + +// AuditMemo Getter +func (r AlibabaTclsAelophyRefundAgreeAPIRequest) GetAuditMemo() string { + return r._auditMemo +} +// SubRefundList Setter +// 外部子订单列表 +func (r *AlibabaTclsAelophyRefundAgreeAPIRequest) SetSubRefundList(_subRefundList []Subrefundlist) error { + r._subRefundList = _subRefundList + r.Set("sub_refund_list", _subRefundList) + return nil +} + +// SubRefundList Getter +func (r AlibabaTclsAelophyRefundAgreeAPIRequest) GetSubRefundList() []Subrefundlist { + return r._subRefundList +} diff --git a/model/wdk/AlibabaTclsAelophyRefundAgreeAPIResponse.go b/model/wdk/AlibabaTclsAelophyRefundAgreeAPIResponse.go new file mode 100644 index 0000000000..6b1129d196 --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyRefundAgreeAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +saas 售后逆向 商户同意用户逆向申请 API返回值 +alibaba.tcls.aelophy.refund.agree + +saas 售后逆向 商户同意用户逆向申请 +*/ +type AlibabaTclsAelophyRefundAgreeAPIResponse struct { + model.CommonResponse + AlibabaTclsAelophyRefundAgreeAPIResponseModel +} + +// saas 售后逆向 商户同意用户逆向申请 成功返回结果 +type AlibabaTclsAelophyRefundAgreeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tcls_aelophy_refund_agree_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *AlibabaTclsAelophyRefundAgreeApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaTclsAelophyRefundAgreeResponse.go b/model/wdk/AlibabaTclsAelophyRefundAgreeResponse.go deleted file mode 100644 index 077e73dd53..0000000000 --- a/model/wdk/AlibabaTclsAelophyRefundAgreeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -saas 售后逆向 商户同意用户逆向申请 API返回值 -alibaba.tcls.aelophy.refund.agree - -saas 售后逆向 商户同意用户逆向申请 -*/ -type AlibabaTclsAelophyRefundAgreeAPIResponse struct { - model.CommonResponse - AlibabaTclsAelophyRefundAgreeResponse -} - -// saas 售后逆向 商户同意用户逆向申请 成功返回结果 -type AlibabaTclsAelophyRefundAgreeResponse struct { - XMLName xml.Name `xml:"alibaba_tcls_aelophy_refund_agree_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *AlibabaTclsAelophyRefundAgreeApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaTclsAelophyRefundCsapplyAPIRequest.go b/model/wdk/AlibabaTclsAelophyRefundCsapplyAPIRequest.go new file mode 100644 index 0000000000..58a060ad30 --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyRefundCsapplyAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家代客售后提交逆向申请 API请求 +alibaba.tcls.aelophy.refund.csapply + +商家代客售后提交逆向申请 +*/ +type AlibabaTclsAelophyRefundCsapplyAPIRequest struct { + model.Params + // 逆向申请入参 + _refundCsApplyDTO *RefundCsApplyDto +} + +// 初始化AlibabaTclsAelophyRefundCsapplyAPIRequest对象 +func NewAlibabaTclsAelophyRefundCsapplyRequest() *AlibabaTclsAelophyRefundCsapplyAPIRequest{ + return &AlibabaTclsAelophyRefundCsapplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTclsAelophyRefundCsapplyAPIRequest) GetApiMethodName() string { + return "alibaba.tcls.aelophy.refund.csapply" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTclsAelophyRefundCsapplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundCsApplyDTO Setter +// 逆向申请入参 +func (r *AlibabaTclsAelophyRefundCsapplyAPIRequest) SetRefundCsApplyDTO(_refundCsApplyDTO *RefundCsApplyDto) error { + r._refundCsApplyDTO = _refundCsApplyDTO + r.Set("refund_cs_apply_d_t_o", _refundCsApplyDTO) + return nil +} + +// RefundCsApplyDTO Getter +func (r AlibabaTclsAelophyRefundCsapplyAPIRequest) GetRefundCsApplyDTO() *RefundCsApplyDto { + return r._refundCsApplyDTO +} diff --git a/model/wdk/AlibabaTclsAelophyRefundCsapplyAPIResponse.go b/model/wdk/AlibabaTclsAelophyRefundCsapplyAPIResponse.go new file mode 100644 index 0000000000..7f8c69512e --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyRefundCsapplyAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家代客售后提交逆向申请 API返回值 +alibaba.tcls.aelophy.refund.csapply + +商家代客售后提交逆向申请 +*/ +type AlibabaTclsAelophyRefundCsapplyAPIResponse struct { + model.CommonResponse + AlibabaTclsAelophyRefundCsapplyAPIResponseModel +} + +// 商家代客售后提交逆向申请 成功返回结果 +type AlibabaTclsAelophyRefundCsapplyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tcls_aelophy_refund_csapply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 根据站点名称查询产品 + ApiResult *AlibabaTclsAelophyRefundCsapplyApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaTclsAelophyRefundCsapplyResponse.go b/model/wdk/AlibabaTclsAelophyRefundCsapplyResponse.go deleted file mode 100644 index 9da0b4f677..0000000000 --- a/model/wdk/AlibabaTclsAelophyRefundCsapplyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家代客售后提交逆向申请 API返回值 -alibaba.tcls.aelophy.refund.csapply - -商家代客售后提交逆向申请 -*/ -type AlibabaTclsAelophyRefundCsapplyAPIResponse struct { - model.CommonResponse - AlibabaTclsAelophyRefundCsapplyResponse -} - -// 商家代客售后提交逆向申请 成功返回结果 -type AlibabaTclsAelophyRefundCsapplyResponse struct { - XMLName xml.Name `xml:"alibaba_tcls_aelophy_refund_csapply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 根据站点名称查询产品 - ApiResult *AlibabaTclsAelophyRefundCsapplyApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaTclsAelophyRefundCsapplyrenderAPIRequest.go b/model/wdk/AlibabaTclsAelophyRefundCsapplyrenderAPIRequest.go new file mode 100644 index 0000000000..57f62fc938 --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyRefundCsapplyrenderAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家代客售后逆向申请渲染获取 API请求 +alibaba.tcls.aelophy.refund.csapplyrender + +提供商家代客售后逆向申请渲染获取的接口 +*/ +type AlibabaTclsAelophyRefundCsapplyrenderAPIRequest struct { + model.Params + // 系统自动生成 + _refundCsApplyRenderDTO *RefundCsApplyRenderDto +} + +// 初始化AlibabaTclsAelophyRefundCsapplyrenderAPIRequest对象 +func NewAlibabaTclsAelophyRefundCsapplyrenderRequest() *AlibabaTclsAelophyRefundCsapplyrenderAPIRequest{ + return &AlibabaTclsAelophyRefundCsapplyrenderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTclsAelophyRefundCsapplyrenderAPIRequest) GetApiMethodName() string { + return "alibaba.tcls.aelophy.refund.csapplyrender" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTclsAelophyRefundCsapplyrenderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundCsApplyRenderDTO Setter +// 系统自动生成 +func (r *AlibabaTclsAelophyRefundCsapplyrenderAPIRequest) SetRefundCsApplyRenderDTO(_refundCsApplyRenderDTO *RefundCsApplyRenderDto) error { + r._refundCsApplyRenderDTO = _refundCsApplyRenderDTO + r.Set("refund_cs_apply_render_d_t_o", _refundCsApplyRenderDTO) + return nil +} + +// RefundCsApplyRenderDTO Getter +func (r AlibabaTclsAelophyRefundCsapplyrenderAPIRequest) GetRefundCsApplyRenderDTO() *RefundCsApplyRenderDto { + return r._refundCsApplyRenderDTO +} diff --git a/model/wdk/AlibabaTclsAelophyRefundCsapplyrenderAPIResponse.go b/model/wdk/AlibabaTclsAelophyRefundCsapplyrenderAPIResponse.go new file mode 100644 index 0000000000..1e88363362 --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyRefundCsapplyrenderAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家代客售后逆向申请渲染获取 API返回值 +alibaba.tcls.aelophy.refund.csapplyrender + +提供商家代客售后逆向申请渲染获取的接口 +*/ +type AlibabaTclsAelophyRefundCsapplyrenderAPIResponse struct { + model.CommonResponse + AlibabaTclsAelophyRefundCsapplyrenderAPIResponseModel +} + +// 商家代客售后逆向申请渲染获取 成功返回结果 +type AlibabaTclsAelophyRefundCsapplyrenderAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tcls_aelophy_refund_csapplyrender_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应结果 + ApiResult *AlibabaTclsAelophyRefundCsapplyrenderApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaTclsAelophyRefundCsapplyrenderResponse.go b/model/wdk/AlibabaTclsAelophyRefundCsapplyrenderResponse.go deleted file mode 100644 index 1ecb238a24..0000000000 --- a/model/wdk/AlibabaTclsAelophyRefundCsapplyrenderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家代客售后逆向申请渲染获取 API返回值 -alibaba.tcls.aelophy.refund.csapplyrender - -提供商家代客售后逆向申请渲染获取的接口 -*/ -type AlibabaTclsAelophyRefundCsapplyrenderAPIResponse struct { - model.CommonResponse - AlibabaTclsAelophyRefundCsapplyrenderResponse -} - -// 商家代客售后逆向申请渲染获取 成功返回结果 -type AlibabaTclsAelophyRefundCsapplyrenderResponse struct { - XMLName xml.Name `xml:"alibaba_tcls_aelophy_refund_csapplyrender_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应结果 - ApiResult *AlibabaTclsAelophyRefundCsapplyrenderApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaTclsAelophyRefundDisagreeAPIRequest.go b/model/wdk/AlibabaTclsAelophyRefundDisagreeAPIRequest.go new file mode 100644 index 0000000000..db7958c683 --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyRefundDisagreeAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +saas 售后逆向 商户拒绝用户逆向申请 API请求 +alibaba.tcls.aelophy.refund.disagree + +saas 售后逆向 商户拒绝用户逆向申请 +*/ +type AlibabaTclsAelophyRefundDisagreeAPIRequest struct { + model.Params + // 退款单ID + _refundId string + // 拒绝原因 + _rejectReason string +} + +// 初始化AlibabaTclsAelophyRefundDisagreeAPIRequest对象 +func NewAlibabaTclsAelophyRefundDisagreeRequest() *AlibabaTclsAelophyRefundDisagreeAPIRequest{ + return &AlibabaTclsAelophyRefundDisagreeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTclsAelophyRefundDisagreeAPIRequest) GetApiMethodName() string { + return "alibaba.tcls.aelophy.refund.disagree" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTclsAelophyRefundDisagreeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundId Setter +// 退款单ID +func (r *AlibabaTclsAelophyRefundDisagreeAPIRequest) SetRefundId(_refundId string) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r AlibabaTclsAelophyRefundDisagreeAPIRequest) GetRefundId() string { + return r._refundId +} +// RejectReason Setter +// 拒绝原因 +func (r *AlibabaTclsAelophyRefundDisagreeAPIRequest) SetRejectReason(_rejectReason string) error { + r._rejectReason = _rejectReason + r.Set("reject_reason", _rejectReason) + return nil +} + +// RejectReason Getter +func (r AlibabaTclsAelophyRefundDisagreeAPIRequest) GetRejectReason() string { + return r._rejectReason +} diff --git a/model/wdk/AlibabaTclsAelophyRefundDisagreeAPIResponse.go b/model/wdk/AlibabaTclsAelophyRefundDisagreeAPIResponse.go new file mode 100644 index 0000000000..8a4d4cdc80 --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyRefundDisagreeAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +saas 售后逆向 商户拒绝用户逆向申请 API返回值 +alibaba.tcls.aelophy.refund.disagree + +saas 售后逆向 商户拒绝用户逆向申请 +*/ +type AlibabaTclsAelophyRefundDisagreeAPIResponse struct { + model.CommonResponse + AlibabaTclsAelophyRefundDisagreeAPIResponseModel +} + +// saas 售后逆向 商户拒绝用户逆向申请 成功返回结果 +type AlibabaTclsAelophyRefundDisagreeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tcls_aelophy_refund_disagree_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *AlibabaTclsAelophyRefundDisagreeApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaTclsAelophyRefundDisagreeResponse.go b/model/wdk/AlibabaTclsAelophyRefundDisagreeResponse.go deleted file mode 100644 index b2d4b06742..0000000000 --- a/model/wdk/AlibabaTclsAelophyRefundDisagreeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -saas 售后逆向 商户拒绝用户逆向申请 API返回值 -alibaba.tcls.aelophy.refund.disagree - -saas 售后逆向 商户拒绝用户逆向申请 -*/ -type AlibabaTclsAelophyRefundDisagreeAPIResponse struct { - model.CommonResponse - AlibabaTclsAelophyRefundDisagreeResponse -} - -// saas 售后逆向 商户拒绝用户逆向申请 成功返回结果 -type AlibabaTclsAelophyRefundDisagreeResponse struct { - XMLName xml.Name `xml:"alibaba_tcls_aelophy_refund_disagree_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *AlibabaTclsAelophyRefundDisagreeApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaTclsAelophyRefundFetchgoodsAPIRequest.go b/model/wdk/AlibabaTclsAelophyRefundFetchgoodsAPIRequest.go new file mode 100644 index 0000000000..af74eec3b9 --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyRefundFetchgoodsAPIRequest.go @@ -0,0 +1,136 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +saas 售后逆向 商户发起逆向取货 API请求 +alibaba.tcls.aelophy.refund.fetchgoods + +saas 售后逆向 商户发起逆向取货 +*/ +type AlibabaTclsAelophyRefundFetchgoodsAPIRequest struct { + model.Params + // 经营店ID + _storeId string + // 外部订单ID + _outOrderId string + // 退款单ID + _refundId string + // 取货开始时间 + _fetchStartTime string + // 取货结束时间 + _fetchEndTime string + // 备注 + _remark string + // 外部子订单列表 + _subRefundList []Subrefundlist +} + +// 初始化AlibabaTclsAelophyRefundFetchgoodsAPIRequest对象 +func NewAlibabaTclsAelophyRefundFetchgoodsRequest() *AlibabaTclsAelophyRefundFetchgoodsAPIRequest{ + return &AlibabaTclsAelophyRefundFetchgoodsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTclsAelophyRefundFetchgoodsAPIRequest) GetApiMethodName() string { + return "alibaba.tcls.aelophy.refund.fetchgoods" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTclsAelophyRefundFetchgoodsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 经营店ID +func (r *AlibabaTclsAelophyRefundFetchgoodsAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaTclsAelophyRefundFetchgoodsAPIRequest) GetStoreId() string { + return r._storeId +} +// OutOrderId Setter +// 外部订单ID +func (r *AlibabaTclsAelophyRefundFetchgoodsAPIRequest) SetOutOrderId(_outOrderId string) error { + r._outOrderId = _outOrderId + r.Set("out_order_id", _outOrderId) + return nil +} + +// OutOrderId Getter +func (r AlibabaTclsAelophyRefundFetchgoodsAPIRequest) GetOutOrderId() string { + return r._outOrderId +} +// RefundId Setter +// 退款单ID +func (r *AlibabaTclsAelophyRefundFetchgoodsAPIRequest) SetRefundId(_refundId string) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r AlibabaTclsAelophyRefundFetchgoodsAPIRequest) GetRefundId() string { + return r._refundId +} +// FetchStartTime Setter +// 取货开始时间 +func (r *AlibabaTclsAelophyRefundFetchgoodsAPIRequest) SetFetchStartTime(_fetchStartTime string) error { + r._fetchStartTime = _fetchStartTime + r.Set("fetch_start_time", _fetchStartTime) + return nil +} + +// FetchStartTime Getter +func (r AlibabaTclsAelophyRefundFetchgoodsAPIRequest) GetFetchStartTime() string { + return r._fetchStartTime +} +// FetchEndTime Setter +// 取货结束时间 +func (r *AlibabaTclsAelophyRefundFetchgoodsAPIRequest) SetFetchEndTime(_fetchEndTime string) error { + r._fetchEndTime = _fetchEndTime + r.Set("fetch_end_time", _fetchEndTime) + return nil +} + +// FetchEndTime Getter +func (r AlibabaTclsAelophyRefundFetchgoodsAPIRequest) GetFetchEndTime() string { + return r._fetchEndTime +} +// Remark Setter +// 备注 +func (r *AlibabaTclsAelophyRefundFetchgoodsAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r AlibabaTclsAelophyRefundFetchgoodsAPIRequest) GetRemark() string { + return r._remark +} +// SubRefundList Setter +// 外部子订单列表 +func (r *AlibabaTclsAelophyRefundFetchgoodsAPIRequest) SetSubRefundList(_subRefundList []Subrefundlist) error { + r._subRefundList = _subRefundList + r.Set("sub_refund_list", _subRefundList) + return nil +} + +// SubRefundList Getter +func (r AlibabaTclsAelophyRefundFetchgoodsAPIRequest) GetSubRefundList() []Subrefundlist { + return r._subRefundList +} diff --git a/model/wdk/AlibabaTclsAelophyRefundFetchgoodsAPIResponse.go b/model/wdk/AlibabaTclsAelophyRefundFetchgoodsAPIResponse.go new file mode 100644 index 0000000000..a4618c1d4f --- /dev/null +++ b/model/wdk/AlibabaTclsAelophyRefundFetchgoodsAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +saas 售后逆向 商户发起逆向取货 API返回值 +alibaba.tcls.aelophy.refund.fetchgoods + +saas 售后逆向 商户发起逆向取货 +*/ +type AlibabaTclsAelophyRefundFetchgoodsAPIResponse struct { + model.CommonResponse + AlibabaTclsAelophyRefundFetchgoodsAPIResponseModel +} + +// saas 售后逆向 商户发起逆向取货 成功返回结果 +type AlibabaTclsAelophyRefundFetchgoodsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_tcls_aelophy_refund_fetchgoods_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *AlibabaTclsAelophyRefundFetchgoodsApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaTclsAelophyRefundFetchgoodsResponse.go b/model/wdk/AlibabaTclsAelophyRefundFetchgoodsResponse.go deleted file mode 100644 index 4400e3b099..0000000000 --- a/model/wdk/AlibabaTclsAelophyRefundFetchgoodsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -saas 售后逆向 商户发起逆向取货 API返回值 -alibaba.tcls.aelophy.refund.fetchgoods - -saas 售后逆向 商户发起逆向取货 -*/ -type AlibabaTclsAelophyRefundFetchgoodsAPIResponse struct { - model.CommonResponse - AlibabaTclsAelophyRefundFetchgoodsResponse -} - -// saas 售后逆向 商户发起逆向取货 成功返回结果 -type AlibabaTclsAelophyRefundFetchgoodsResponse struct { - XMLName xml.Name `xml:"alibaba_tcls_aelophy_refund_fetchgoods_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *AlibabaTclsAelophyRefundFetchgoodsApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaTxcsBrandmarketingCouponQrcodeGetAPIRequest.go b/model/wdk/AlibabaTxcsBrandmarketingCouponQrcodeGetAPIRequest.go new file mode 100644 index 0000000000..8527404c93 --- /dev/null +++ b/model/wdk/AlibabaTxcsBrandmarketingCouponQrcodeGetAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌营销导购员券页面二维码获取 API请求 +alibaba.txcs.brandmarketing.coupon.qrcode.get + +构建券页码二维码url +*/ +type AlibabaTxcsBrandmarketingCouponQrcodeGetAPIRequest struct { + model.Params + // 请求信息 + _couponQrcodeParamDo *CouponQrcodeParamDo +} + +// 初始化AlibabaTxcsBrandmarketingCouponQrcodeGetAPIRequest对象 +func NewAlibabaTxcsBrandmarketingCouponQrcodeGetRequest() *AlibabaTxcsBrandmarketingCouponQrcodeGetAPIRequest{ + return &AlibabaTxcsBrandmarketingCouponQrcodeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTxcsBrandmarketingCouponQrcodeGetAPIRequest) GetApiMethodName() string { + return "alibaba.txcs.brandmarketing.coupon.qrcode.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTxcsBrandmarketingCouponQrcodeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CouponQrcodeParamDo Setter +// 请求信息 +func (r *AlibabaTxcsBrandmarketingCouponQrcodeGetAPIRequest) SetCouponQrcodeParamDo(_couponQrcodeParamDo *CouponQrcodeParamDo) error { + r._couponQrcodeParamDo = _couponQrcodeParamDo + r.Set("coupon_qrcode_param_do", _couponQrcodeParamDo) + return nil +} + +// CouponQrcodeParamDo Getter +func (r AlibabaTxcsBrandmarketingCouponQrcodeGetAPIRequest) GetCouponQrcodeParamDo() *CouponQrcodeParamDo { + return r._couponQrcodeParamDo +} diff --git a/model/wdk/AlibabaTxcsBrandmarketingCouponQrcodeGetAPIResponse.go b/model/wdk/AlibabaTxcsBrandmarketingCouponQrcodeGetAPIResponse.go new file mode 100644 index 0000000000..159d62dda3 --- /dev/null +++ b/model/wdk/AlibabaTxcsBrandmarketingCouponQrcodeGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌营销导购员券页面二维码获取 API返回值 +alibaba.txcs.brandmarketing.coupon.qrcode.get + +构建券页码二维码url +*/ +type AlibabaTxcsBrandmarketingCouponQrcodeGetAPIResponse struct { + model.CommonResponse + AlibabaTxcsBrandmarketingCouponQrcodeGetAPIResponseModel +} + +// 品牌营销导购员券页面二维码获取 成功返回结果 +type AlibabaTxcsBrandmarketingCouponQrcodeGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_txcs_brandmarketing_coupon_qrcode_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + ApiResult *AlibabaTxcsBrandmarketingCouponQrcodeGetApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaTxcsBrandmarketingCouponQrcodeGetResponse.go b/model/wdk/AlibabaTxcsBrandmarketingCouponQrcodeGetResponse.go deleted file mode 100644 index a1ea22d8d3..0000000000 --- a/model/wdk/AlibabaTxcsBrandmarketingCouponQrcodeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -品牌营销导购员券页面二维码获取 API返回值 -alibaba.txcs.brandmarketing.coupon.qrcode.get - -构建券页码二维码url -*/ -type AlibabaTxcsBrandmarketingCouponQrcodeGetAPIResponse struct { - model.CommonResponse - AlibabaTxcsBrandmarketingCouponQrcodeGetResponse -} - -// 品牌营销导购员券页面二维码获取 成功返回结果 -type AlibabaTxcsBrandmarketingCouponQrcodeGetResponse struct { - XMLName xml.Name `xml:"alibaba_txcs_brandmarketing_coupon_qrcode_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - ApiResult *AlibabaTxcsBrandmarketingCouponQrcodeGetApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaTxcsBrandmarketingCouponStatisticsGetAPIRequest.go b/model/wdk/AlibabaTxcsBrandmarketingCouponStatisticsGetAPIRequest.go new file mode 100644 index 0000000000..088650c540 --- /dev/null +++ b/model/wdk/AlibabaTxcsBrandmarketingCouponStatisticsGetAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌营销导购员券推广统计数据回流 API请求 +alibaba.txcs.brandmarketing.coupon.statistics.get + +请求券统计数据回流 +*/ +type AlibabaTxcsBrandmarketingCouponStatisticsGetAPIRequest struct { + model.Params + // 请求信息 + _couponStatisticsParamDo *CouponStatisticsParamDo +} + +// 初始化AlibabaTxcsBrandmarketingCouponStatisticsGetAPIRequest对象 +func NewAlibabaTxcsBrandmarketingCouponStatisticsGetRequest() *AlibabaTxcsBrandmarketingCouponStatisticsGetAPIRequest{ + return &AlibabaTxcsBrandmarketingCouponStatisticsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaTxcsBrandmarketingCouponStatisticsGetAPIRequest) GetApiMethodName() string { + return "alibaba.txcs.brandmarketing.coupon.statistics.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaTxcsBrandmarketingCouponStatisticsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CouponStatisticsParamDo Setter +// 请求信息 +func (r *AlibabaTxcsBrandmarketingCouponStatisticsGetAPIRequest) SetCouponStatisticsParamDo(_couponStatisticsParamDo *CouponStatisticsParamDo) error { + r._couponStatisticsParamDo = _couponStatisticsParamDo + r.Set("coupon_statistics_param_do", _couponStatisticsParamDo) + return nil +} + +// CouponStatisticsParamDo Getter +func (r AlibabaTxcsBrandmarketingCouponStatisticsGetAPIRequest) GetCouponStatisticsParamDo() *CouponStatisticsParamDo { + return r._couponStatisticsParamDo +} diff --git a/model/wdk/AlibabaTxcsBrandmarketingCouponStatisticsGetAPIResponse.go b/model/wdk/AlibabaTxcsBrandmarketingCouponStatisticsGetAPIResponse.go new file mode 100644 index 0000000000..8fb1c18146 --- /dev/null +++ b/model/wdk/AlibabaTxcsBrandmarketingCouponStatisticsGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌营销导购员券推广统计数据回流 API返回值 +alibaba.txcs.brandmarketing.coupon.statistics.get + +请求券统计数据回流 +*/ +type AlibabaTxcsBrandmarketingCouponStatisticsGetAPIResponse struct { + model.CommonResponse + AlibabaTxcsBrandmarketingCouponStatisticsGetAPIResponseModel +} + +// 品牌营销导购员券推广统计数据回流 成功返回结果 +type AlibabaTxcsBrandmarketingCouponStatisticsGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_txcs_brandmarketing_coupon_statistics_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + ApiPageResult *ApiPageResult `json:"api_page_result,omitempty" xml:"api_page_result,omitempty"` +} diff --git a/model/wdk/AlibabaTxcsBrandmarketingCouponStatisticsGetResponse.go b/model/wdk/AlibabaTxcsBrandmarketingCouponStatisticsGetResponse.go deleted file mode 100644 index b4311da1e3..0000000000 --- a/model/wdk/AlibabaTxcsBrandmarketingCouponStatisticsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -品牌营销导购员券推广统计数据回流 API返回值 -alibaba.txcs.brandmarketing.coupon.statistics.get - -请求券统计数据回流 -*/ -type AlibabaTxcsBrandmarketingCouponStatisticsGetAPIResponse struct { - model.CommonResponse - AlibabaTxcsBrandmarketingCouponStatisticsGetResponse -} - -// 品牌营销导购员券推广统计数据回流 成功返回结果 -type AlibabaTxcsBrandmarketingCouponStatisticsGetResponse struct { - XMLName xml.Name `xml:"alibaba_txcs_brandmarketing_coupon_statistics_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - ApiPageResult *ApiPageResult `json:"api_page_result,omitempty" xml:"api_page_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkBmCouponQueryAPIRequest.go b/model/wdk/AlibabaWdkBmCouponQueryAPIRequest.go new file mode 100644 index 0000000000..456aaa924d --- /dev/null +++ b/model/wdk/AlibabaWdkBmCouponQueryAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘鲜达券信息查询接口 API请求 +alibaba.wdk.bm.coupon.query + +淘鲜达品牌营销的券信息查询接口,基于券id查询券相关信息:券id、券名称、分摊信息、面额、创建时间、开始时间、结束时间 +*/ +type AlibabaWdkBmCouponQueryAPIRequest struct { + model.Params + // 查询券参数 + _isvQueryCouponParam *IsvQueryCouponParam +} + +// 初始化AlibabaWdkBmCouponQueryAPIRequest对象 +func NewAlibabaWdkBmCouponQueryRequest() *AlibabaWdkBmCouponQueryAPIRequest{ + return &AlibabaWdkBmCouponQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkBmCouponQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.bm.coupon.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkBmCouponQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IsvQueryCouponParam Setter +// 查询券参数 +func (r *AlibabaWdkBmCouponQueryAPIRequest) SetIsvQueryCouponParam(_isvQueryCouponParam *IsvQueryCouponParam) error { + r._isvQueryCouponParam = _isvQueryCouponParam + r.Set("isv_query_coupon_param", _isvQueryCouponParam) + return nil +} + +// IsvQueryCouponParam Getter +func (r AlibabaWdkBmCouponQueryAPIRequest) GetIsvQueryCouponParam() *IsvQueryCouponParam { + return r._isvQueryCouponParam +} diff --git a/model/wdk/AlibabaWdkBmCouponQueryAPIResponse.go b/model/wdk/AlibabaWdkBmCouponQueryAPIResponse.go new file mode 100644 index 0000000000..08500cd584 --- /dev/null +++ b/model/wdk/AlibabaWdkBmCouponQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘鲜达券信息查询接口 API返回值 +alibaba.wdk.bm.coupon.query + +淘鲜达品牌营销的券信息查询接口,基于券id查询券相关信息:券id、券名称、分摊信息、面额、创建时间、开始时间、结束时间 +*/ +type AlibabaWdkBmCouponQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkBmCouponQueryAPIResponseModel +} + +// 淘鲜达券信息查询接口 成功返回结果 +type AlibabaWdkBmCouponQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_bm_coupon_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *BmResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkBmCouponQueryResponse.go b/model/wdk/AlibabaWdkBmCouponQueryResponse.go deleted file mode 100644 index 1837cbad21..0000000000 --- a/model/wdk/AlibabaWdkBmCouponQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘鲜达券信息查询接口 API返回值 -alibaba.wdk.bm.coupon.query - -淘鲜达品牌营销的券信息查询接口,基于券id查询券相关信息:券id、券名称、分摊信息、面额、创建时间、开始时间、结束时间 -*/ -type AlibabaWdkBmCouponQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkBmCouponQueryResponse -} - -// 淘鲜达券信息查询接口 成功返回结果 -type AlibabaWdkBmCouponQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_bm_coupon_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *BmResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkBmPaiyangStatDataQueryAPIRequest.go b/model/wdk/AlibabaWdkBmPaiyangStatDataQueryAPIRequest.go new file mode 100644 index 0000000000..69c315bdcc --- /dev/null +++ b/model/wdk/AlibabaWdkBmPaiyangStatDataQueryAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +派样统计数据查询 API请求 +alibaba.wdk.bm.paiyang.stat.data.query + +派样统计数据查询 +*/ +type AlibabaWdkBmPaiyangStatDataQueryAPIRequest struct { + model.Params + // 入参对象 + _param *PaiyangStatDataParam +} + +// 初始化AlibabaWdkBmPaiyangStatDataQueryAPIRequest对象 +func NewAlibabaWdkBmPaiyangStatDataQueryRequest() *AlibabaWdkBmPaiyangStatDataQueryAPIRequest{ + return &AlibabaWdkBmPaiyangStatDataQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkBmPaiyangStatDataQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.bm.paiyang.stat.data.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkBmPaiyangStatDataQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参对象 +func (r *AlibabaWdkBmPaiyangStatDataQueryAPIRequest) SetParam(_param *PaiyangStatDataParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkBmPaiyangStatDataQueryAPIRequest) GetParam() *PaiyangStatDataParam { + return r._param +} diff --git a/model/wdk/AlibabaWdkBmPaiyangStatDataQueryAPIResponse.go b/model/wdk/AlibabaWdkBmPaiyangStatDataQueryAPIResponse.go new file mode 100644 index 0000000000..d78a775a6b --- /dev/null +++ b/model/wdk/AlibabaWdkBmPaiyangStatDataQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +派样统计数据查询 API返回值 +alibaba.wdk.bm.paiyang.stat.data.query + +派样统计数据查询 +*/ +type AlibabaWdkBmPaiyangStatDataQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkBmPaiyangStatDataQueryAPIResponseModel +} + +// 派样统计数据查询 成功返回结果 +type AlibabaWdkBmPaiyangStatDataQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_bm_paiyang_stat_data_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参对象 + Result *BmPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkBmPaiyangStatDataQueryResponse.go b/model/wdk/AlibabaWdkBmPaiyangStatDataQueryResponse.go deleted file mode 100644 index 540528b493..0000000000 --- a/model/wdk/AlibabaWdkBmPaiyangStatDataQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -派样统计数据查询 API返回值 -alibaba.wdk.bm.paiyang.stat.data.query - -派样统计数据查询 -*/ -type AlibabaWdkBmPaiyangStatDataQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkBmPaiyangStatDataQueryResponse -} - -// 派样统计数据查询 成功返回结果 -type AlibabaWdkBmPaiyangStatDataQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_bm_paiyang_stat_data_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参对象 - Result *BmPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkBmPaiyangStockQueryAPIRequest.go b/model/wdk/AlibabaWdkBmPaiyangStockQueryAPIRequest.go new file mode 100644 index 0000000000..e5059beee5 --- /dev/null +++ b/model/wdk/AlibabaWdkBmPaiyangStockQueryAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +派样商品门店库存查询接口 API请求 +alibaba.wdk.bm.paiyang.stock.query + +淘鲜达接入第三方进行派样,第三方查询派样商品的门店库存信息。 +*/ +type AlibabaWdkBmPaiyangStockQueryAPIRequest struct { + model.Params + // 请求入参 + _isvShopStockParam *IsvShopStockParam +} + +// 初始化AlibabaWdkBmPaiyangStockQueryAPIRequest对象 +func NewAlibabaWdkBmPaiyangStockQueryRequest() *AlibabaWdkBmPaiyangStockQueryAPIRequest{ + return &AlibabaWdkBmPaiyangStockQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkBmPaiyangStockQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.bm.paiyang.stock.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkBmPaiyangStockQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IsvShopStockParam Setter +// 请求入参 +func (r *AlibabaWdkBmPaiyangStockQueryAPIRequest) SetIsvShopStockParam(_isvShopStockParam *IsvShopStockParam) error { + r._isvShopStockParam = _isvShopStockParam + r.Set("isv_shop_stock_param", _isvShopStockParam) + return nil +} + +// IsvShopStockParam Getter +func (r AlibabaWdkBmPaiyangStockQueryAPIRequest) GetIsvShopStockParam() *IsvShopStockParam { + return r._isvShopStockParam +} diff --git a/model/wdk/AlibabaWdkBmPaiyangStockQueryAPIResponse.go b/model/wdk/AlibabaWdkBmPaiyangStockQueryAPIResponse.go new file mode 100644 index 0000000000..ff701afd55 --- /dev/null +++ b/model/wdk/AlibabaWdkBmPaiyangStockQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +派样商品门店库存查询接口 API返回值 +alibaba.wdk.bm.paiyang.stock.query + +淘鲜达接入第三方进行派样,第三方查询派样商品的门店库存信息。 +*/ +type AlibabaWdkBmPaiyangStockQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkBmPaiyangStockQueryAPIResponseModel +} + +// 派样商品门店库存查询接口 成功返回结果 +type AlibabaWdkBmPaiyangStockQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_bm_paiyang_stock_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求出参 + Result *BmResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkBmPaiyangStockQueryResponse.go b/model/wdk/AlibabaWdkBmPaiyangStockQueryResponse.go deleted file mode 100644 index 22ee386123..0000000000 --- a/model/wdk/AlibabaWdkBmPaiyangStockQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -派样商品门店库存查询接口 API返回值 -alibaba.wdk.bm.paiyang.stock.query - -淘鲜达接入第三方进行派样,第三方查询派样商品的门店库存信息。 -*/ -type AlibabaWdkBmPaiyangStockQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkBmPaiyangStockQueryResponse -} - -// 派样商品门店库存查询接口 成功返回结果 -type AlibabaWdkBmPaiyangStockQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_bm_paiyang_stock_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求出参 - Result *BmResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkBmPaiyangSupplyPublishAPIRequest.go b/model/wdk/AlibabaWdkBmPaiyangSupplyPublishAPIRequest.go new file mode 100644 index 0000000000..8586856429 --- /dev/null +++ b/model/wdk/AlibabaWdkBmPaiyangSupplyPublishAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +派样商品库存变更同步接口 API请求 +alibaba.wdk.bm.paiyang.supply.publish + +淘鲜达接入第三方进行派样,第三方同步大仓和门店的库存变更信息。 +*/ +type AlibabaWdkBmPaiyangSupplyPublishAPIRequest struct { + model.Params + // 请求入参 + _isvSupplySyncParam *IsvSupplySyncParam +} + +// 初始化AlibabaWdkBmPaiyangSupplyPublishAPIRequest对象 +func NewAlibabaWdkBmPaiyangSupplyPublishRequest() *AlibabaWdkBmPaiyangSupplyPublishAPIRequest{ + return &AlibabaWdkBmPaiyangSupplyPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkBmPaiyangSupplyPublishAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.bm.paiyang.supply.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkBmPaiyangSupplyPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IsvSupplySyncParam Setter +// 请求入参 +func (r *AlibabaWdkBmPaiyangSupplyPublishAPIRequest) SetIsvSupplySyncParam(_isvSupplySyncParam *IsvSupplySyncParam) error { + r._isvSupplySyncParam = _isvSupplySyncParam + r.Set("isv_supply_sync_param", _isvSupplySyncParam) + return nil +} + +// IsvSupplySyncParam Getter +func (r AlibabaWdkBmPaiyangSupplyPublishAPIRequest) GetIsvSupplySyncParam() *IsvSupplySyncParam { + return r._isvSupplySyncParam +} diff --git a/model/wdk/AlibabaWdkBmPaiyangSupplyPublishAPIResponse.go b/model/wdk/AlibabaWdkBmPaiyangSupplyPublishAPIResponse.go new file mode 100644 index 0000000000..c3376b3f4d --- /dev/null +++ b/model/wdk/AlibabaWdkBmPaiyangSupplyPublishAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +派样商品库存变更同步接口 API返回值 +alibaba.wdk.bm.paiyang.supply.publish + +淘鲜达接入第三方进行派样,第三方同步大仓和门店的库存变更信息。 +*/ +type AlibabaWdkBmPaiyangSupplyPublishAPIResponse struct { + model.CommonResponse + AlibabaWdkBmPaiyangSupplyPublishAPIResponseModel +} + +// 派样商品库存变更同步接口 成功返回结果 +type AlibabaWdkBmPaiyangSupplyPublishAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_bm_paiyang_supply_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求出参 + Result *BmResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkBmPaiyangSupplyPublishResponse.go b/model/wdk/AlibabaWdkBmPaiyangSupplyPublishResponse.go deleted file mode 100644 index fb4ddf6b3d..0000000000 --- a/model/wdk/AlibabaWdkBmPaiyangSupplyPublishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -派样商品库存变更同步接口 API返回值 -alibaba.wdk.bm.paiyang.supply.publish - -淘鲜达接入第三方进行派样,第三方同步大仓和门店的库存变更信息。 -*/ -type AlibabaWdkBmPaiyangSupplyPublishAPIResponse struct { - model.CommonResponse - AlibabaWdkBmPaiyangSupplyPublishResponse -} - -// 派样商品库存变更同步接口 成功返回结果 -type AlibabaWdkBmPaiyangSupplyPublishResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_bm_paiyang_supply_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求出参 - Result *BmResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkBmStockPublishAPIRequest.go b/model/wdk/AlibabaWdkBmStockPublishAPIRequest.go new file mode 100644 index 0000000000..b42ac18b2e --- /dev/null +++ b/model/wdk/AlibabaWdkBmStockPublishAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌营销涉及到的商品的库存同步接口 API请求 +alibaba.wdk.bm.stock.publish + +用于操作sku的库存 +*/ +type AlibabaWdkBmStockPublishAPIRequest struct { + model.Params + // 批量入参 + _skuStockPublishParamList []SkuStockPublishParamDo +} + +// 初始化AlibabaWdkBmStockPublishAPIRequest对象 +func NewAlibabaWdkBmStockPublishRequest() *AlibabaWdkBmStockPublishAPIRequest{ + return &AlibabaWdkBmStockPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkBmStockPublishAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.bm.stock.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkBmStockPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkuStockPublishParamList Setter +// 批量入参 +func (r *AlibabaWdkBmStockPublishAPIRequest) SetSkuStockPublishParamList(_skuStockPublishParamList []SkuStockPublishParamDo) error { + r._skuStockPublishParamList = _skuStockPublishParamList + r.Set("sku_stock_publish_param_list", _skuStockPublishParamList) + return nil +} + +// SkuStockPublishParamList Getter +func (r AlibabaWdkBmStockPublishAPIRequest) GetSkuStockPublishParamList() []SkuStockPublishParamDo { + return r._skuStockPublishParamList +} diff --git a/model/wdk/AlibabaWdkBmStockPublishAPIResponse.go b/model/wdk/AlibabaWdkBmStockPublishAPIResponse.go new file mode 100644 index 0000000000..5a37377182 --- /dev/null +++ b/model/wdk/AlibabaWdkBmStockPublishAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌营销涉及到的商品的库存同步接口 API返回值 +alibaba.wdk.bm.stock.publish + +用于操作sku的库存 +*/ +type AlibabaWdkBmStockPublishAPIResponse struct { + model.CommonResponse + AlibabaWdkBmStockPublishAPIResponseModel +} + +// 品牌营销涉及到的商品的库存同步接口 成功返回结果 +type AlibabaWdkBmStockPublishAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_bm_stock_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *BmResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkBmStockPublishResponse.go b/model/wdk/AlibabaWdkBmStockPublishResponse.go deleted file mode 100644 index 8d6363bb9b..0000000000 --- a/model/wdk/AlibabaWdkBmStockPublishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -品牌营销涉及到的商品的库存同步接口 API返回值 -alibaba.wdk.bm.stock.publish - -用于操作sku的库存 -*/ -type AlibabaWdkBmStockPublishAPIResponse struct { - model.CommonResponse - AlibabaWdkBmStockPublishResponse -} - -// 品牌营销涉及到的商品的库存同步接口 成功返回结果 -type AlibabaWdkBmStockPublishResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_bm_stock_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *BmResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkBmTradeActivityQueryAPIRequest.go b/model/wdk/AlibabaWdkBmTradeActivityQueryAPIRequest.go new file mode 100644 index 0000000000..e29518bd06 --- /dev/null +++ b/model/wdk/AlibabaWdkBmTradeActivityQueryAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌营销的订单活动信息查询 API请求 +alibaba.wdk.bm.trade.activity.query + +品牌营销的订单活动信息查询 +*/ +type AlibabaWdkBmTradeActivityQueryAPIRequest struct { + model.Params + // 入参 + _queryParam *IsvOrderQueryParam +} + +// 初始化AlibabaWdkBmTradeActivityQueryAPIRequest对象 +func NewAlibabaWdkBmTradeActivityQueryRequest() *AlibabaWdkBmTradeActivityQueryAPIRequest{ + return &AlibabaWdkBmTradeActivityQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkBmTradeActivityQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.bm.trade.activity.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkBmTradeActivityQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryParam Setter +// 入参 +func (r *AlibabaWdkBmTradeActivityQueryAPIRequest) SetQueryParam(_queryParam *IsvOrderQueryParam) error { + r._queryParam = _queryParam + r.Set("query_param", _queryParam) + return nil +} + +// QueryParam Getter +func (r AlibabaWdkBmTradeActivityQueryAPIRequest) GetQueryParam() *IsvOrderQueryParam { + return r._queryParam +} diff --git a/model/wdk/AlibabaWdkBmTradeActivityQueryAPIResponse.go b/model/wdk/AlibabaWdkBmTradeActivityQueryAPIResponse.go new file mode 100644 index 0000000000..561e2941b2 --- /dev/null +++ b/model/wdk/AlibabaWdkBmTradeActivityQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌营销的订单活动信息查询 API返回值 +alibaba.wdk.bm.trade.activity.query + +品牌营销的订单活动信息查询 +*/ +type AlibabaWdkBmTradeActivityQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkBmTradeActivityQueryAPIResponseModel +} + +// 品牌营销的订单活动信息查询 成功返回结果 +type AlibabaWdkBmTradeActivityQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_bm_trade_activity_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果数据 + Result *BmResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkBmTradeActivityQueryResponse.go b/model/wdk/AlibabaWdkBmTradeActivityQueryResponse.go deleted file mode 100644 index 0a881799b5..0000000000 --- a/model/wdk/AlibabaWdkBmTradeActivityQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -品牌营销的订单活动信息查询 API返回值 -alibaba.wdk.bm.trade.activity.query - -品牌营销的订单活动信息查询 -*/ -type AlibabaWdkBmTradeActivityQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkBmTradeActivityQueryResponse -} - -// 品牌营销的订单活动信息查询 成功返回结果 -type AlibabaWdkBmTradeActivityQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_bm_trade_activity_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果数据 - Result *BmResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkChannelCommentCreateAPIRequest.go b/model/wdk/AlibabaWdkChannelCommentCreateAPIRequest.go new file mode 100644 index 0000000000..1bd2ec40a7 --- /dev/null +++ b/model/wdk/AlibabaWdkChannelCommentCreateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +差评导入 API请求 +alibaba.wdk.channel.comment.create + +差评导入 +*/ +type AlibabaWdkChannelCommentCreateAPIRequest struct { + model.Params + // 差评信息 + _commentCreateInfo *CommentCreateInfo +} + +// 初始化AlibabaWdkChannelCommentCreateAPIRequest对象 +func NewAlibabaWdkChannelCommentCreateRequest() *AlibabaWdkChannelCommentCreateAPIRequest{ + return &AlibabaWdkChannelCommentCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkChannelCommentCreateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.channel.comment.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkChannelCommentCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CommentCreateInfo Setter +// 差评信息 +func (r *AlibabaWdkChannelCommentCreateAPIRequest) SetCommentCreateInfo(_commentCreateInfo *CommentCreateInfo) error { + r._commentCreateInfo = _commentCreateInfo + r.Set("comment_create_info", _commentCreateInfo) + return nil +} + +// CommentCreateInfo Getter +func (r AlibabaWdkChannelCommentCreateAPIRequest) GetCommentCreateInfo() *CommentCreateInfo { + return r._commentCreateInfo +} diff --git a/model/wdk/AlibabaWdkChannelCommentCreateAPIResponse.go b/model/wdk/AlibabaWdkChannelCommentCreateAPIResponse.go new file mode 100644 index 0000000000..0ce0f2bda7 --- /dev/null +++ b/model/wdk/AlibabaWdkChannelCommentCreateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +差评导入 API返回值 +alibaba.wdk.channel.comment.create + +差评导入 +*/ +type AlibabaWdkChannelCommentCreateAPIResponse struct { + model.CommonResponse + AlibabaWdkChannelCommentCreateAPIResponseModel +} + +// 差评导入 成功返回结果 +type AlibabaWdkChannelCommentCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_channel_comment_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + ApiResult *AlibabaWdkChannelCommentCreateApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkChannelCommentCreateResponse.go b/model/wdk/AlibabaWdkChannelCommentCreateResponse.go deleted file mode 100644 index d82e19cabd..0000000000 --- a/model/wdk/AlibabaWdkChannelCommentCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -差评导入 API返回值 -alibaba.wdk.channel.comment.create - -差评导入 -*/ -type AlibabaWdkChannelCommentCreateAPIResponse struct { - model.CommonResponse - AlibabaWdkChannelCommentCreateResponse -} - -// 差评导入 成功返回结果 -type AlibabaWdkChannelCommentCreateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_channel_comment_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - ApiResult *AlibabaWdkChannelCommentCreateApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkChannelOrderCreateAPIRequest.go b/model/wdk/AlibabaWdkChannelOrderCreateAPIRequest.go new file mode 100644 index 0000000000..009ede3145 --- /dev/null +++ b/model/wdk/AlibabaWdkChannelOrderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建订单 API请求 +alibaba.wdk.channel.order.create + +外部商家创建订单 +*/ +type AlibabaWdkChannelOrderCreateAPIRequest struct { + model.Params + // 订单信息 + _orderInfo *OrderInfo +} + +// 初始化AlibabaWdkChannelOrderCreateAPIRequest对象 +func NewAlibabaWdkChannelOrderCreateRequest() *AlibabaWdkChannelOrderCreateAPIRequest{ + return &AlibabaWdkChannelOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkChannelOrderCreateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.channel.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkChannelOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderInfo Setter +// 订单信息 +func (r *AlibabaWdkChannelOrderCreateAPIRequest) SetOrderInfo(_orderInfo *OrderInfo) error { + r._orderInfo = _orderInfo + r.Set("order_info", _orderInfo) + return nil +} + +// OrderInfo Getter +func (r AlibabaWdkChannelOrderCreateAPIRequest) GetOrderInfo() *OrderInfo { + return r._orderInfo +} diff --git a/model/wdk/AlibabaWdkChannelOrderCreateAPIResponse.go b/model/wdk/AlibabaWdkChannelOrderCreateAPIResponse.go new file mode 100644 index 0000000000..0a1a7c2a87 --- /dev/null +++ b/model/wdk/AlibabaWdkChannelOrderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建订单 API返回值 +alibaba.wdk.channel.order.create + +外部商家创建订单 +*/ +type AlibabaWdkChannelOrderCreateAPIResponse struct { + model.CommonResponse + AlibabaWdkChannelOrderCreateAPIResponseModel +} + +// 创建订单 成功返回结果 +type AlibabaWdkChannelOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_channel_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + ApiResult *AlibabaWdkChannelOrderCreateApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkChannelOrderCreateResponse.go b/model/wdk/AlibabaWdkChannelOrderCreateResponse.go deleted file mode 100644 index cbe8747780..0000000000 --- a/model/wdk/AlibabaWdkChannelOrderCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建订单 API返回值 -alibaba.wdk.channel.order.create - -外部商家创建订单 -*/ -type AlibabaWdkChannelOrderCreateAPIResponse struct { - model.CommonResponse - AlibabaWdkChannelOrderCreateResponse -} - -// 创建订单 成功返回结果 -type AlibabaWdkChannelOrderCreateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_channel_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - ApiResult *AlibabaWdkChannelOrderCreateApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkChannelOrderRefundConfirmAPIRequest.go b/model/wdk/AlibabaWdkChannelOrderRefundConfirmAPIRequest.go new file mode 100644 index 0000000000..2e6da7690f --- /dev/null +++ b/model/wdk/AlibabaWdkChannelOrderRefundConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +退款确认 API请求 +alibaba.wdk.channel.order.refund.confirm + +退款确认 +*/ +type AlibabaWdkChannelOrderRefundConfirmAPIRequest struct { + model.Params + // 退款确认信息 + _orderRefundConfirmInfo *OrderRefundConfirmInfo +} + +// 初始化AlibabaWdkChannelOrderRefundConfirmAPIRequest对象 +func NewAlibabaWdkChannelOrderRefundConfirmRequest() *AlibabaWdkChannelOrderRefundConfirmAPIRequest{ + return &AlibabaWdkChannelOrderRefundConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkChannelOrderRefundConfirmAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.channel.order.refund.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkChannelOrderRefundConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderRefundConfirmInfo Setter +// 退款确认信息 +func (r *AlibabaWdkChannelOrderRefundConfirmAPIRequest) SetOrderRefundConfirmInfo(_orderRefundConfirmInfo *OrderRefundConfirmInfo) error { + r._orderRefundConfirmInfo = _orderRefundConfirmInfo + r.Set("order_refund_confirm_info", _orderRefundConfirmInfo) + return nil +} + +// OrderRefundConfirmInfo Getter +func (r AlibabaWdkChannelOrderRefundConfirmAPIRequest) GetOrderRefundConfirmInfo() *OrderRefundConfirmInfo { + return r._orderRefundConfirmInfo +} diff --git a/model/wdk/AlibabaWdkChannelOrderRefundConfirmAPIResponse.go b/model/wdk/AlibabaWdkChannelOrderRefundConfirmAPIResponse.go new file mode 100644 index 0000000000..eafecad808 --- /dev/null +++ b/model/wdk/AlibabaWdkChannelOrderRefundConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +退款确认 API返回值 +alibaba.wdk.channel.order.refund.confirm + +退款确认 +*/ +type AlibabaWdkChannelOrderRefundConfirmAPIResponse struct { + model.CommonResponse + AlibabaWdkChannelOrderRefundConfirmAPIResponseModel +} + +// 退款确认 成功返回结果 +type AlibabaWdkChannelOrderRefundConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_channel_order_refund_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + ApiResult *AlibabaWdkChannelOrderRefundConfirmApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkChannelOrderRefundConfirmResponse.go b/model/wdk/AlibabaWdkChannelOrderRefundConfirmResponse.go deleted file mode 100644 index dd317ba0dd..0000000000 --- a/model/wdk/AlibabaWdkChannelOrderRefundConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -退款确认 API返回值 -alibaba.wdk.channel.order.refund.confirm - -退款确认 -*/ -type AlibabaWdkChannelOrderRefundConfirmAPIResponse struct { - model.CommonResponse - AlibabaWdkChannelOrderRefundConfirmResponse -} - -// 退款确认 成功返回结果 -type AlibabaWdkChannelOrderRefundConfirmResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_channel_order_refund_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - ApiResult *AlibabaWdkChannelOrderRefundConfirmApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkChannelOrderStatusUpdateAPIRequest.go b/model/wdk/AlibabaWdkChannelOrderStatusUpdateAPIRequest.go new file mode 100644 index 0000000000..aaacbb9519 --- /dev/null +++ b/model/wdk/AlibabaWdkChannelOrderStatusUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单状态变更 API请求 +alibaba.wdk.channel.order.status.update + +订单状态变更 +*/ +type AlibabaWdkChannelOrderStatusUpdateAPIRequest struct { + model.Params + // 修改信息 + _orderStatusInfo *OrderStatusInfo +} + +// 初始化AlibabaWdkChannelOrderStatusUpdateAPIRequest对象 +func NewAlibabaWdkChannelOrderStatusUpdateRequest() *AlibabaWdkChannelOrderStatusUpdateAPIRequest{ + return &AlibabaWdkChannelOrderStatusUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkChannelOrderStatusUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.channel.order.status.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkChannelOrderStatusUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderStatusInfo Setter +// 修改信息 +func (r *AlibabaWdkChannelOrderStatusUpdateAPIRequest) SetOrderStatusInfo(_orderStatusInfo *OrderStatusInfo) error { + r._orderStatusInfo = _orderStatusInfo + r.Set("order_status_info", _orderStatusInfo) + return nil +} + +// OrderStatusInfo Getter +func (r AlibabaWdkChannelOrderStatusUpdateAPIRequest) GetOrderStatusInfo() *OrderStatusInfo { + return r._orderStatusInfo +} diff --git a/model/wdk/AlibabaWdkChannelOrderStatusUpdateAPIResponse.go b/model/wdk/AlibabaWdkChannelOrderStatusUpdateAPIResponse.go new file mode 100644 index 0000000000..f911e92a36 --- /dev/null +++ b/model/wdk/AlibabaWdkChannelOrderStatusUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单状态变更 API返回值 +alibaba.wdk.channel.order.status.update + +订单状态变更 +*/ +type AlibabaWdkChannelOrderStatusUpdateAPIResponse struct { + model.CommonResponse + AlibabaWdkChannelOrderStatusUpdateAPIResponseModel +} + +// 订单状态变更 成功返回结果 +type AlibabaWdkChannelOrderStatusUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_channel_order_status_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + ApiResult *AlibabaWdkChannelOrderStatusUpdateApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkChannelOrderStatusUpdateResponse.go b/model/wdk/AlibabaWdkChannelOrderStatusUpdateResponse.go deleted file mode 100644 index 07e6ac763a..0000000000 --- a/model/wdk/AlibabaWdkChannelOrderStatusUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单状态变更 API返回值 -alibaba.wdk.channel.order.status.update - -订单状态变更 -*/ -type AlibabaWdkChannelOrderStatusUpdateAPIResponse struct { - model.CommonResponse - AlibabaWdkChannelOrderStatusUpdateResponse -} - -// 订单状态变更 成功返回结果 -type AlibabaWdkChannelOrderStatusUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_channel_order_status_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - ApiResult *AlibabaWdkChannelOrderStatusUpdateApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkChannelOrderUsercancelAPIRequest.go b/model/wdk/AlibabaWdkChannelOrderUsercancelAPIRequest.go new file mode 100644 index 0000000000..8c98ebcd25 --- /dev/null +++ b/model/wdk/AlibabaWdkChannelOrderUsercancelAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户发起售中取消 API请求 +alibaba.wdk.channel.order.usercancel + +用户发起售中取消 +*/ +type AlibabaWdkChannelOrderUsercancelAPIRequest struct { + model.Params + // 取消信息 + _userCancelInfo *OrderUserCancelInfo +} + +// 初始化AlibabaWdkChannelOrderUsercancelAPIRequest对象 +func NewAlibabaWdkChannelOrderUsercancelRequest() *AlibabaWdkChannelOrderUsercancelAPIRequest{ + return &AlibabaWdkChannelOrderUsercancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkChannelOrderUsercancelAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.channel.order.usercancel" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkChannelOrderUsercancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserCancelInfo Setter +// 取消信息 +func (r *AlibabaWdkChannelOrderUsercancelAPIRequest) SetUserCancelInfo(_userCancelInfo *OrderUserCancelInfo) error { + r._userCancelInfo = _userCancelInfo + r.Set("user_cancel_info", _userCancelInfo) + return nil +} + +// UserCancelInfo Getter +func (r AlibabaWdkChannelOrderUsercancelAPIRequest) GetUserCancelInfo() *OrderUserCancelInfo { + return r._userCancelInfo +} diff --git a/model/wdk/AlibabaWdkChannelOrderUsercancelAPIResponse.go b/model/wdk/AlibabaWdkChannelOrderUsercancelAPIResponse.go new file mode 100644 index 0000000000..26b37f0cb1 --- /dev/null +++ b/model/wdk/AlibabaWdkChannelOrderUsercancelAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户发起售中取消 API返回值 +alibaba.wdk.channel.order.usercancel + +用户发起售中取消 +*/ +type AlibabaWdkChannelOrderUsercancelAPIResponse struct { + model.CommonResponse + AlibabaWdkChannelOrderUsercancelAPIResponseModel +} + +// 用户发起售中取消 成功返回结果 +type AlibabaWdkChannelOrderUsercancelAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_channel_order_usercancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + ApiResult *AlibabaWdkChannelOrderUsercancelApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkChannelOrderUsercancelResponse.go b/model/wdk/AlibabaWdkChannelOrderUsercancelResponse.go deleted file mode 100644 index 2d5bc7b5ac..0000000000 --- a/model/wdk/AlibabaWdkChannelOrderUsercancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户发起售中取消 API返回值 -alibaba.wdk.channel.order.usercancel - -用户发起售中取消 -*/ -type AlibabaWdkChannelOrderUsercancelAPIResponse struct { - model.CommonResponse - AlibabaWdkChannelOrderUsercancelResponse -} - -// 用户发起售中取消 成功返回结果 -type AlibabaWdkChannelOrderUsercancelResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_channel_order_usercancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - ApiResult *AlibabaWdkChannelOrderUsercancelApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkChannelOrderUserrefundAPIRequest.go b/model/wdk/AlibabaWdkChannelOrderUserrefundAPIRequest.go new file mode 100644 index 0000000000..b3110f2c05 --- /dev/null +++ b/model/wdk/AlibabaWdkChannelOrderUserrefundAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户发起售后退款(整单/部分) API请求 +alibaba.wdk.channel.order.userrefund + +用户发起售后退款(整单/部分) +*/ +type AlibabaWdkChannelOrderUserrefundAPIRequest struct { + model.Params + // 退款信息 + _orderUserRefundInfo *OrderUserRefundInfo +} + +// 初始化AlibabaWdkChannelOrderUserrefundAPIRequest对象 +func NewAlibabaWdkChannelOrderUserrefundRequest() *AlibabaWdkChannelOrderUserrefundAPIRequest{ + return &AlibabaWdkChannelOrderUserrefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkChannelOrderUserrefundAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.channel.order.userrefund" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkChannelOrderUserrefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderUserRefundInfo Setter +// 退款信息 +func (r *AlibabaWdkChannelOrderUserrefundAPIRequest) SetOrderUserRefundInfo(_orderUserRefundInfo *OrderUserRefundInfo) error { + r._orderUserRefundInfo = _orderUserRefundInfo + r.Set("order_user_refund_info", _orderUserRefundInfo) + return nil +} + +// OrderUserRefundInfo Getter +func (r AlibabaWdkChannelOrderUserrefundAPIRequest) GetOrderUserRefundInfo() *OrderUserRefundInfo { + return r._orderUserRefundInfo +} diff --git a/model/wdk/AlibabaWdkChannelOrderUserrefundAPIResponse.go b/model/wdk/AlibabaWdkChannelOrderUserrefundAPIResponse.go new file mode 100644 index 0000000000..b4b4913606 --- /dev/null +++ b/model/wdk/AlibabaWdkChannelOrderUserrefundAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户发起售后退款(整单/部分) API返回值 +alibaba.wdk.channel.order.userrefund + +用户发起售后退款(整单/部分) +*/ +type AlibabaWdkChannelOrderUserrefundAPIResponse struct { + model.CommonResponse + AlibabaWdkChannelOrderUserrefundAPIResponseModel +} + +// 用户发起售后退款(整单/部分) 成功返回结果 +type AlibabaWdkChannelOrderUserrefundAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_channel_order_userrefund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + ApiResult *AlibabaWdkChannelOrderUserrefundApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkChannelOrderUserrefundResponse.go b/model/wdk/AlibabaWdkChannelOrderUserrefundResponse.go deleted file mode 100644 index 7749b73c95..0000000000 --- a/model/wdk/AlibabaWdkChannelOrderUserrefundResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户发起售后退款(整单/部分) API返回值 -alibaba.wdk.channel.order.userrefund - -用户发起售后退款(整单/部分) -*/ -type AlibabaWdkChannelOrderUserrefundAPIResponse struct { - model.CommonResponse - AlibabaWdkChannelOrderUserrefundResponse -} - -// 用户发起售后退款(整单/部分) 成功返回结果 -type AlibabaWdkChannelOrderUserrefundResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_channel_order_userrefund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - ApiResult *AlibabaWdkChannelOrderUserrefundApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkChannelUserSyncAPIRequest.go b/model/wdk/AlibabaWdkChannelUserSyncAPIRequest.go new file mode 100644 index 0000000000..cf9668de92 --- /dev/null +++ b/model/wdk/AlibabaWdkChannelUserSyncAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +会员同步 API请求 +alibaba.wdk.channel.user.sync + +会员同步 +*/ +type AlibabaWdkChannelUserSyncAPIRequest struct { + model.Params + // 会员信息 + _userSyncInfo *UserSyncInfo +} + +// 初始化AlibabaWdkChannelUserSyncAPIRequest对象 +func NewAlibabaWdkChannelUserSyncRequest() *AlibabaWdkChannelUserSyncAPIRequest{ + return &AlibabaWdkChannelUserSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkChannelUserSyncAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.channel.user.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkChannelUserSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UserSyncInfo Setter +// 会员信息 +func (r *AlibabaWdkChannelUserSyncAPIRequest) SetUserSyncInfo(_userSyncInfo *UserSyncInfo) error { + r._userSyncInfo = _userSyncInfo + r.Set("user_sync_info", _userSyncInfo) + return nil +} + +// UserSyncInfo Getter +func (r AlibabaWdkChannelUserSyncAPIRequest) GetUserSyncInfo() *UserSyncInfo { + return r._userSyncInfo +} diff --git a/model/wdk/AlibabaWdkChannelUserSyncAPIResponse.go b/model/wdk/AlibabaWdkChannelUserSyncAPIResponse.go new file mode 100644 index 0000000000..14d3014aca --- /dev/null +++ b/model/wdk/AlibabaWdkChannelUserSyncAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +会员同步 API返回值 +alibaba.wdk.channel.user.sync + +会员同步 +*/ +type AlibabaWdkChannelUserSyncAPIResponse struct { + model.CommonResponse + AlibabaWdkChannelUserSyncAPIResponseModel +} + +// 会员同步 成功返回结果 +type AlibabaWdkChannelUserSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_channel_user_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回内容 + ApiResult *AlibabaWdkChannelUserSyncApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkChannelUserSyncResponse.go b/model/wdk/AlibabaWdkChannelUserSyncResponse.go deleted file mode 100644 index 013adb1594..0000000000 --- a/model/wdk/AlibabaWdkChannelUserSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -会员同步 API返回值 -alibaba.wdk.channel.user.sync - -会员同步 -*/ -type AlibabaWdkChannelUserSyncAPIResponse struct { - model.CommonResponse - AlibabaWdkChannelUserSyncResponse -} - -// 会员同步 成功返回结果 -type AlibabaWdkChannelUserSyncResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_channel_user_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回内容 - ApiResult *AlibabaWdkChannelUserSyncApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkCouponContractCreateAPIRequest.go b/model/wdk/AlibabaWdkCouponContractCreateAPIRequest.go new file mode 100644 index 0000000000..53ca0a4369 --- /dev/null +++ b/model/wdk/AlibabaWdkCouponContractCreateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +营销券合同创建接口 API请求 +alibaba.wdk.coupon.contract.create + +营销券合同创建接口 +*/ +type AlibabaWdkCouponContractCreateAPIRequest struct { + model.Params + // 调用入参 + _createContractInstanceRequest *CreateContractInstanceRequest +} + +// 初始化AlibabaWdkCouponContractCreateAPIRequest对象 +func NewAlibabaWdkCouponContractCreateRequest() *AlibabaWdkCouponContractCreateAPIRequest{ + return &AlibabaWdkCouponContractCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkCouponContractCreateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.coupon.contract.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkCouponContractCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CreateContractInstanceRequest Setter +// 调用入参 +func (r *AlibabaWdkCouponContractCreateAPIRequest) SetCreateContractInstanceRequest(_createContractInstanceRequest *CreateContractInstanceRequest) error { + r._createContractInstanceRequest = _createContractInstanceRequest + r.Set("create_contract_instance_request", _createContractInstanceRequest) + return nil +} + +// CreateContractInstanceRequest Getter +func (r AlibabaWdkCouponContractCreateAPIRequest) GetCreateContractInstanceRequest() *CreateContractInstanceRequest { + return r._createContractInstanceRequest +} diff --git a/model/wdk/AlibabaWdkCouponContractCreateAPIResponse.go b/model/wdk/AlibabaWdkCouponContractCreateAPIResponse.go new file mode 100644 index 0000000000..a1a59aa1f8 --- /dev/null +++ b/model/wdk/AlibabaWdkCouponContractCreateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +营销券合同创建接口 API返回值 +alibaba.wdk.coupon.contract.create + +营销券合同创建接口 +*/ +type AlibabaWdkCouponContractCreateAPIResponse struct { + model.CommonResponse + AlibabaWdkCouponContractCreateAPIResponseModel +} + +// 营销券合同创建接口 成功返回结果 +type AlibabaWdkCouponContractCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_coupon_contract_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaWdkCouponContractCreateApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkCouponContractCreateResponse.go b/model/wdk/AlibabaWdkCouponContractCreateResponse.go deleted file mode 100644 index cf49fa8b26..0000000000 --- a/model/wdk/AlibabaWdkCouponContractCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -营销券合同创建接口 API返回值 -alibaba.wdk.coupon.contract.create - -营销券合同创建接口 -*/ -type AlibabaWdkCouponContractCreateAPIResponse struct { - model.CommonResponse - AlibabaWdkCouponContractCreateResponse -} - -// 营销券合同创建接口 成功返回结果 -type AlibabaWdkCouponContractCreateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_coupon_contract_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaWdkCouponContractCreateApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkCouponTemplateQueryumpactidAPIRequest.go b/model/wdk/AlibabaWdkCouponTemplateQueryumpactidAPIRequest.go new file mode 100644 index 0000000000..cfd2de8e5d --- /dev/null +++ b/model/wdk/AlibabaWdkCouponTemplateQueryumpactidAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过券模板查询券活动id接口 API请求 +alibaba.wdk.coupon.template.queryumpactid + +当前大润发商家根据券模板创建券id,但订单回流的核销是根据券活动id回流的,大润发侧无法建立券模板和券活动的关联关系,导致大润发计算核销率比较困难,营销域增加通过券模板查询券活动id接口 +*/ +type AlibabaWdkCouponTemplateQueryumpactidAPIRequest struct { + model.Params + // 券模版id列表 + _sourceIds []int64 + // 优惠券类型 + _wdkCouponType int64 +} + +// 初始化AlibabaWdkCouponTemplateQueryumpactidAPIRequest对象 +func NewAlibabaWdkCouponTemplateQueryumpactidRequest() *AlibabaWdkCouponTemplateQueryumpactidAPIRequest{ + return &AlibabaWdkCouponTemplateQueryumpactidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkCouponTemplateQueryumpactidAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.coupon.template.queryumpactid" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkCouponTemplateQueryumpactidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SourceIds Setter +// 券模版id列表 +func (r *AlibabaWdkCouponTemplateQueryumpactidAPIRequest) SetSourceIds(_sourceIds []int64) error { + r._sourceIds = _sourceIds + r.Set("source_ids", _sourceIds) + return nil +} + +// SourceIds Getter +func (r AlibabaWdkCouponTemplateQueryumpactidAPIRequest) GetSourceIds() []int64 { + return r._sourceIds +} +// WdkCouponType Setter +// 优惠券类型 +func (r *AlibabaWdkCouponTemplateQueryumpactidAPIRequest) SetWdkCouponType(_wdkCouponType int64) error { + r._wdkCouponType = _wdkCouponType + r.Set("wdk_coupon_type", _wdkCouponType) + return nil +} + +// WdkCouponType Getter +func (r AlibabaWdkCouponTemplateQueryumpactidAPIRequest) GetWdkCouponType() int64 { + return r._wdkCouponType +} diff --git a/model/wdk/AlibabaWdkCouponTemplateQueryumpactidAPIResponse.go b/model/wdk/AlibabaWdkCouponTemplateQueryumpactidAPIResponse.go new file mode 100644 index 0000000000..d5fd2001d6 --- /dev/null +++ b/model/wdk/AlibabaWdkCouponTemplateQueryumpactidAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过券模板查询券活动id接口 API返回值 +alibaba.wdk.coupon.template.queryumpactid + +当前大润发商家根据券模板创建券id,但订单回流的核销是根据券活动id回流的,大润发侧无法建立券模板和券活动的关联关系,导致大润发计算核销率比较困难,营销域增加通过券模板查询券活动id接口 +*/ +type AlibabaWdkCouponTemplateQueryumpactidAPIResponse struct { + model.CommonResponse + AlibabaWdkCouponTemplateQueryumpactidAPIResponseModel +} + +// 通过券模板查询券活动id接口 成功返回结果 +type AlibabaWdkCouponTemplateQueryumpactidAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_coupon_template_queryumpactid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 根据站点名称查询产品 + ApiResult *AlibabaWdkCouponTemplateQueryumpactidApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkCouponTemplateQueryumpactidResponse.go b/model/wdk/AlibabaWdkCouponTemplateQueryumpactidResponse.go deleted file mode 100644 index b4bb22b8bc..0000000000 --- a/model/wdk/AlibabaWdkCouponTemplateQueryumpactidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过券模板查询券活动id接口 API返回值 -alibaba.wdk.coupon.template.queryumpactid - -当前大润发商家根据券模板创建券id,但订单回流的核销是根据券活动id回流的,大润发侧无法建立券模板和券活动的关联关系,导致大润发计算核销率比较困难,营销域增加通过券模板查询券活动id接口 -*/ -type AlibabaWdkCouponTemplateQueryumpactidAPIResponse struct { - model.CommonResponse - AlibabaWdkCouponTemplateQueryumpactidResponse -} - -// 通过券模板查询券活动id接口 成功返回结果 -type AlibabaWdkCouponTemplateQueryumpactidResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_coupon_template_queryumpactid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 根据站点名称查询产品 - ApiResult *AlibabaWdkCouponTemplateQueryumpactidApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkElemeBillDetailGetAPIRequest.go b/model/wdk/AlibabaWdkElemeBillDetailGetAPIRequest.go new file mode 100644 index 0000000000..9773994178 --- /dev/null +++ b/model/wdk/AlibabaWdkElemeBillDetailGetAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +饿了么对账单查询,带订单明细 API请求 +alibaba.wdk.eleme.bill.detail.get + +查询饿了么对账单信息,带订单明细 +*/ +type AlibabaWdkElemeBillDetailGetAPIRequest struct { + model.Params + // 对账单查询参数 + _eleBillRequest *EleBillRequest +} + +// 初始化AlibabaWdkElemeBillDetailGetAPIRequest对象 +func NewAlibabaWdkElemeBillDetailGetRequest() *AlibabaWdkElemeBillDetailGetAPIRequest{ + return &AlibabaWdkElemeBillDetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkElemeBillDetailGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.eleme.bill.detail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkElemeBillDetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EleBillRequest Setter +// 对账单查询参数 +func (r *AlibabaWdkElemeBillDetailGetAPIRequest) SetEleBillRequest(_eleBillRequest *EleBillRequest) error { + r._eleBillRequest = _eleBillRequest + r.Set("ele_bill_request", _eleBillRequest) + return nil +} + +// EleBillRequest Getter +func (r AlibabaWdkElemeBillDetailGetAPIRequest) GetEleBillRequest() *EleBillRequest { + return r._eleBillRequest +} diff --git a/model/wdk/AlibabaWdkElemeBillDetailGetAPIResponse.go b/model/wdk/AlibabaWdkElemeBillDetailGetAPIResponse.go new file mode 100644 index 0000000000..9722f51b14 --- /dev/null +++ b/model/wdk/AlibabaWdkElemeBillDetailGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +饿了么对账单查询,带订单明细 API返回值 +alibaba.wdk.eleme.bill.detail.get + +查询饿了么对账单信息,带订单明细 +*/ +type AlibabaWdkElemeBillDetailGetAPIResponse struct { + model.CommonResponse + AlibabaWdkElemeBillDetailGetAPIResponseModel +} + +// 饿了么对账单查询,带订单明细 成功返回结果 +type AlibabaWdkElemeBillDetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_eleme_bill_detail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaWdkElemeBillDetailGetApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkElemeBillDetailGetResponse.go b/model/wdk/AlibabaWdkElemeBillDetailGetResponse.go deleted file mode 100644 index 1861784e24..0000000000 --- a/model/wdk/AlibabaWdkElemeBillDetailGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -饿了么对账单查询,带订单明细 API返回值 -alibaba.wdk.eleme.bill.detail.get - -查询饿了么对账单信息,带订单明细 -*/ -type AlibabaWdkElemeBillDetailGetAPIResponse struct { - model.CommonResponse - AlibabaWdkElemeBillDetailGetResponse -} - -// 饿了么对账单查询,带订单明细 成功返回结果 -type AlibabaWdkElemeBillDetailGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_eleme_bill_detail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaWdkElemeBillDetailGetApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkElemeBillGetAPIRequest.go b/model/wdk/AlibabaWdkElemeBillGetAPIRequest.go new file mode 100644 index 0000000000..9f64e2d2fd --- /dev/null +++ b/model/wdk/AlibabaWdkElemeBillGetAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +饿了么日维度对账单查询 API请求 +alibaba.wdk.eleme.bill.get + +查询饿了么日维度对账单信息 +*/ +type AlibabaWdkElemeBillGetAPIRequest struct { + model.Params + // 对账单查询参数 + _eleBillRequest *EleBillRequest +} + +// 初始化AlibabaWdkElemeBillGetAPIRequest对象 +func NewAlibabaWdkElemeBillGetRequest() *AlibabaWdkElemeBillGetAPIRequest{ + return &AlibabaWdkElemeBillGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkElemeBillGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.eleme.bill.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkElemeBillGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EleBillRequest Setter +// 对账单查询参数 +func (r *AlibabaWdkElemeBillGetAPIRequest) SetEleBillRequest(_eleBillRequest *EleBillRequest) error { + r._eleBillRequest = _eleBillRequest + r.Set("ele_bill_request", _eleBillRequest) + return nil +} + +// EleBillRequest Getter +func (r AlibabaWdkElemeBillGetAPIRequest) GetEleBillRequest() *EleBillRequest { + return r._eleBillRequest +} diff --git a/model/wdk/AlibabaWdkElemeBillGetAPIResponse.go b/model/wdk/AlibabaWdkElemeBillGetAPIResponse.go new file mode 100644 index 0000000000..811565a0ba --- /dev/null +++ b/model/wdk/AlibabaWdkElemeBillGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +饿了么日维度对账单查询 API返回值 +alibaba.wdk.eleme.bill.get + +查询饿了么日维度对账单信息 +*/ +type AlibabaWdkElemeBillGetAPIResponse struct { + model.CommonResponse + AlibabaWdkElemeBillGetAPIResponseModel +} + +// 饿了么日维度对账单查询 成功返回结果 +type AlibabaWdkElemeBillGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_eleme_bill_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaWdkElemeBillGetApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkElemeBillGetResponse.go b/model/wdk/AlibabaWdkElemeBillGetResponse.go deleted file mode 100644 index edb7413608..0000000000 --- a/model/wdk/AlibabaWdkElemeBillGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -饿了么日维度对账单查询 API返回值 -alibaba.wdk.eleme.bill.get - -查询饿了么日维度对账单信息 -*/ -type AlibabaWdkElemeBillGetAPIResponse struct { - model.CommonResponse - AlibabaWdkElemeBillGetResponse -} - -// 饿了么日维度对账单查询 成功返回结果 -type AlibabaWdkElemeBillGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_eleme_bill_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaWdkElemeBillGetApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkFinanceOrderBackflowAPIRequest.go b/model/wdk/AlibabaWdkFinanceOrderBackflowAPIRequest.go new file mode 100644 index 0000000000..a6c79a0948 --- /dev/null +++ b/model/wdk/AlibabaWdkFinanceOrderBackflowAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +财务订单回流 API请求 +alibaba.wdk.finance.order.backflow + +星巴克拉取财务订单回流数据 +*/ +type AlibabaWdkFinanceOrderBackflowAPIRequest struct { + model.Params + // 财务订单回流入参 + _financeOrderDetailRequest *FinanceOrderDetailRequest +} + +// 初始化AlibabaWdkFinanceOrderBackflowAPIRequest对象 +func NewAlibabaWdkFinanceOrderBackflowRequest() *AlibabaWdkFinanceOrderBackflowAPIRequest{ + return &AlibabaWdkFinanceOrderBackflowAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkFinanceOrderBackflowAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.finance.order.backflow" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkFinanceOrderBackflowAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FinanceOrderDetailRequest Setter +// 财务订单回流入参 +func (r *AlibabaWdkFinanceOrderBackflowAPIRequest) SetFinanceOrderDetailRequest(_financeOrderDetailRequest *FinanceOrderDetailRequest) error { + r._financeOrderDetailRequest = _financeOrderDetailRequest + r.Set("finance_order_detail_request", _financeOrderDetailRequest) + return nil +} + +// FinanceOrderDetailRequest Getter +func (r AlibabaWdkFinanceOrderBackflowAPIRequest) GetFinanceOrderDetailRequest() *FinanceOrderDetailRequest { + return r._financeOrderDetailRequest +} diff --git a/model/wdk/AlibabaWdkFinanceOrderBackflowAPIResponse.go b/model/wdk/AlibabaWdkFinanceOrderBackflowAPIResponse.go new file mode 100644 index 0000000000..36a04e5aa8 --- /dev/null +++ b/model/wdk/AlibabaWdkFinanceOrderBackflowAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +财务订单回流 API返回值 +alibaba.wdk.finance.order.backflow + +星巴克拉取财务订单回流数据 +*/ +type AlibabaWdkFinanceOrderBackflowAPIResponse struct { + model.CommonResponse + AlibabaWdkFinanceOrderBackflowAPIResponseModel +} + +// 财务订单回流 成功返回结果 +type AlibabaWdkFinanceOrderBackflowAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_finance_order_backflow_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 根据站点名称查询产品 + ApiResult *AlibabaWdkFinanceOrderBackflowApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkFinanceOrderBackflowResponse.go b/model/wdk/AlibabaWdkFinanceOrderBackflowResponse.go deleted file mode 100644 index fee153523d..0000000000 --- a/model/wdk/AlibabaWdkFinanceOrderBackflowResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -财务订单回流 API返回值 -alibaba.wdk.finance.order.backflow - -星巴克拉取财务订单回流数据 -*/ -type AlibabaWdkFinanceOrderBackflowAPIResponse struct { - model.CommonResponse - AlibabaWdkFinanceOrderBackflowResponse -} - -// 财务订单回流 成功返回结果 -type AlibabaWdkFinanceOrderBackflowResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_finance_order_backflow_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 根据站点名称查询产品 - ApiResult *AlibabaWdkFinanceOrderBackflowApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkFulfillBatchOnTaskStatusChangedAPIRequest.go b/model/wdk/AlibabaWdkFulfillBatchOnTaskStatusChangedAPIRequest.go new file mode 100644 index 0000000000..daf89404d7 --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillBatchOnTaskStatusChangedAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物流管控作业状态回传 API请求 +alibaba.wdk.fulfill.batch.on.task.status.changed + +物流管控作业状态回传 +*/ +type AlibabaWdkFulfillBatchOnTaskStatusChangedAPIRequest struct { + model.Params + // 作业状态回传对象 + _taskStatus *TaskStatus +} + +// 初始化AlibabaWdkFulfillBatchOnTaskStatusChangedAPIRequest对象 +func NewAlibabaWdkFulfillBatchOnTaskStatusChangedRequest() *AlibabaWdkFulfillBatchOnTaskStatusChangedAPIRequest{ + return &AlibabaWdkFulfillBatchOnTaskStatusChangedAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkFulfillBatchOnTaskStatusChangedAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.fulfill.batch.on.task.status.changed" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkFulfillBatchOnTaskStatusChangedAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TaskStatus Setter +// 作业状态回传对象 +func (r *AlibabaWdkFulfillBatchOnTaskStatusChangedAPIRequest) SetTaskStatus(_taskStatus *TaskStatus) error { + r._taskStatus = _taskStatus + r.Set("task_status", _taskStatus) + return nil +} + +// TaskStatus Getter +func (r AlibabaWdkFulfillBatchOnTaskStatusChangedAPIRequest) GetTaskStatus() *TaskStatus { + return r._taskStatus +} diff --git a/model/wdk/AlibabaWdkFulfillBatchOnTaskStatusChangedAPIResponse.go b/model/wdk/AlibabaWdkFulfillBatchOnTaskStatusChangedAPIResponse.go new file mode 100644 index 0000000000..d56d86c737 --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillBatchOnTaskStatusChangedAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物流管控作业状态回传 API返回值 +alibaba.wdk.fulfill.batch.on.task.status.changed + +物流管控作业状态回传 +*/ +type AlibabaWdkFulfillBatchOnTaskStatusChangedAPIResponse struct { + model.CommonResponse + AlibabaWdkFulfillBatchOnTaskStatusChangedAPIResponseModel +} + +// 物流管控作业状态回传 成功返回结果 +type AlibabaWdkFulfillBatchOnTaskStatusChangedAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_fulfill_batch_on_task_status_changed_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // fulfillLogisticSingleResult + FulfillLogisticSingleResult *FulfillLogisticDefaultResult `json:"fulfill_logistic_single_result,omitempty" xml:"fulfill_logistic_single_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkFulfillBatchOnTaskStatusChangedResponse.go b/model/wdk/AlibabaWdkFulfillBatchOnTaskStatusChangedResponse.go deleted file mode 100644 index 6d24cdcbb5..0000000000 --- a/model/wdk/AlibabaWdkFulfillBatchOnTaskStatusChangedResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物流管控作业状态回传 API返回值 -alibaba.wdk.fulfill.batch.on.task.status.changed - -物流管控作业状态回传 -*/ -type AlibabaWdkFulfillBatchOnTaskStatusChangedAPIResponse struct { - model.CommonResponse - AlibabaWdkFulfillBatchOnTaskStatusChangedResponse -} - -// 物流管控作业状态回传 成功返回结果 -type AlibabaWdkFulfillBatchOnTaskStatusChangedResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_fulfill_batch_on_task_status_changed_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // fulfillLogisticSingleResult - FulfillLogisticSingleResult *FulfillLogisticDefaultResult `json:"fulfill_logistic_single_result,omitempty" xml:"fulfill_logistic_single_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkFulfillBatchQueryByBatchidsAPIRequest.go b/model/wdk/AlibabaWdkFulfillBatchQueryByBatchidsAPIRequest.go new file mode 100644 index 0000000000..275b0f43d4 --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillBatchQueryByBatchidsAPIRequest.go @@ -0,0 +1,80 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +作业小票查询接口 API请求 +alibaba.wdk.fulfill.batch.query.by.batchids + +根据节点等条件查询履约单小票信息 +*/ +type AlibabaWdkFulfillBatchQueryByBatchidsAPIRequest struct { + model.Params + // 作业节点类型: WAREHOUSE:仓 DELIVERY_DOCK:配送站 SHOP:经营店 + _nodeType string + // warehouseCode, 出库仓,由基础店仓维护,盒马全域统一, + _nodeCode string + // 批次号列表 + _batchIds []string +} + +// 初始化AlibabaWdkFulfillBatchQueryByBatchidsAPIRequest对象 +func NewAlibabaWdkFulfillBatchQueryByBatchidsRequest() *AlibabaWdkFulfillBatchQueryByBatchidsAPIRequest{ + return &AlibabaWdkFulfillBatchQueryByBatchidsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkFulfillBatchQueryByBatchidsAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.fulfill.batch.query.by.batchids" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkFulfillBatchQueryByBatchidsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NodeType Setter +// 作业节点类型: WAREHOUSE:仓 DELIVERY_DOCK:配送站 SHOP:经营店 +func (r *AlibabaWdkFulfillBatchQueryByBatchidsAPIRequest) SetNodeType(_nodeType string) error { + r._nodeType = _nodeType + r.Set("node_type", _nodeType) + return nil +} + +// NodeType Getter +func (r AlibabaWdkFulfillBatchQueryByBatchidsAPIRequest) GetNodeType() string { + return r._nodeType +} +// NodeCode Setter +// warehouseCode, 出库仓,由基础店仓维护,盒马全域统一, +func (r *AlibabaWdkFulfillBatchQueryByBatchidsAPIRequest) SetNodeCode(_nodeCode string) error { + r._nodeCode = _nodeCode + r.Set("node_code", _nodeCode) + return nil +} + +// NodeCode Getter +func (r AlibabaWdkFulfillBatchQueryByBatchidsAPIRequest) GetNodeCode() string { + return r._nodeCode +} +// BatchIds Setter +// 批次号列表 +func (r *AlibabaWdkFulfillBatchQueryByBatchidsAPIRequest) SetBatchIds(_batchIds []string) error { + r._batchIds = _batchIds + r.Set("batch_ids", _batchIds) + return nil +} + +// BatchIds Getter +func (r AlibabaWdkFulfillBatchQueryByBatchidsAPIRequest) GetBatchIds() []string { + return r._batchIds +} diff --git a/model/wdk/AlibabaWdkFulfillBatchQueryByBatchidsAPIResponse.go b/model/wdk/AlibabaWdkFulfillBatchQueryByBatchidsAPIResponse.go new file mode 100644 index 0000000000..7256d5b249 --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillBatchQueryByBatchidsAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +作业小票查询接口 API返回值 +alibaba.wdk.fulfill.batch.query.by.batchids + +根据节点等条件查询履约单小票信息 +*/ +type AlibabaWdkFulfillBatchQueryByBatchidsAPIResponse struct { + model.CommonResponse + AlibabaWdkFulfillBatchQueryByBatchidsAPIResponseModel +} + +// 作业小票查询接口 成功返回结果 +type AlibabaWdkFulfillBatchQueryByBatchidsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_fulfill_batch_query_by_batchids_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果对象 + FulfillLogisticListResult *FulfillLogisticListResult `json:"fulfill_logistic_list_result,omitempty" xml:"fulfill_logistic_list_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkFulfillBatchQueryByBatchidsResponse.go b/model/wdk/AlibabaWdkFulfillBatchQueryByBatchidsResponse.go deleted file mode 100644 index edc7a4d4a2..0000000000 --- a/model/wdk/AlibabaWdkFulfillBatchQueryByBatchidsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -作业小票查询接口 API返回值 -alibaba.wdk.fulfill.batch.query.by.batchids - -根据节点等条件查询履约单小票信息 -*/ -type AlibabaWdkFulfillBatchQueryByBatchidsAPIResponse struct { - model.CommonResponse - AlibabaWdkFulfillBatchQueryByBatchidsResponse -} - -// 作业小票查询接口 成功返回结果 -type AlibabaWdkFulfillBatchQueryByBatchidsResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_fulfill_batch_query_by_batchids_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果对象 - FulfillLogisticListResult *FulfillLogisticListResult `json:"fulfill_logistic_list_result,omitempty" xml:"fulfill_logistic_list_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIRequest.go b/model/wdk/AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIRequest.go new file mode 100644 index 0000000000..7cbf2395a6 --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +退仓结果回传 API请求 +alibaba.wdk.fulfill.bill.return.warehouse.on.task.status.changed + +退货入仓结果回传 +*/ +type AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIRequest struct { + model.Params + // 退仓结果 + _returnWarehouseResult *ReturnWarehouseResult +} + +// 初始化AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIRequest对象 +func NewAlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedRequest() *AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIRequest{ + return &AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.fulfill.bill.return.warehouse.on.task.status.changed" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReturnWarehouseResult Setter +// 退仓结果 +func (r *AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIRequest) SetReturnWarehouseResult(_returnWarehouseResult *ReturnWarehouseResult) error { + r._returnWarehouseResult = _returnWarehouseResult + r.Set("return_warehouse_result", _returnWarehouseResult) + return nil +} + +// ReturnWarehouseResult Getter +func (r AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIRequest) GetReturnWarehouseResult() *ReturnWarehouseResult { + return r._returnWarehouseResult +} diff --git a/model/wdk/AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIResponse.go b/model/wdk/AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIResponse.go new file mode 100644 index 0000000000..267587af05 --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +退仓结果回传 API返回值 +alibaba.wdk.fulfill.bill.return.warehouse.on.task.status.changed + +退货入仓结果回传 +*/ +type AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIResponse struct { + model.CommonResponse + AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIResponseModel +} + +// 退仓结果回传 成功返回结果 +type AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_fulfill_bill_return_warehouse_on_task_status_changed_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // fulfillVoidResult + Result *FulfillVoidResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedResponse.go b/model/wdk/AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedResponse.go deleted file mode 100644 index 1ef4f9f4e1..0000000000 --- a/model/wdk/AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -退仓结果回传 API返回值 -alibaba.wdk.fulfill.bill.return.warehouse.on.task.status.changed - -退货入仓结果回传 -*/ -type AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedAPIResponse struct { - model.CommonResponse - AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedResponse -} - -// 退仓结果回传 成功返回结果 -type AlibabaWdkFulfillBillReturnWarehouseOnTaskStatusChangedResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_fulfill_bill_return_warehouse_on_task_status_changed_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // fulfillVoidResult - Result *FulfillVoidResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkFulfillBoxPostBackBoxAPIRequest.go b/model/wdk/AlibabaWdkFulfillBoxPostBackBoxAPIRequest.go new file mode 100644 index 0000000000..6d5ae94b38 --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillBoxPostBackBoxAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +RT收箱回传 API请求 +alibaba.wdk.fulfill.box.post.back.box + +RT收箱后,信息同步履约,履约同通知UMS 容器管理 +*/ +type AlibabaWdkFulfillBoxPostBackBoxAPIRequest struct { + model.Params + // RT收箱回传请求参数 + _returnBoxContainerRequest *ReturnBoxContainerRequest +} + +// 初始化AlibabaWdkFulfillBoxPostBackBoxAPIRequest对象 +func NewAlibabaWdkFulfillBoxPostBackBoxRequest() *AlibabaWdkFulfillBoxPostBackBoxAPIRequest{ + return &AlibabaWdkFulfillBoxPostBackBoxAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkFulfillBoxPostBackBoxAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.fulfill.box.post.back.box" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkFulfillBoxPostBackBoxAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReturnBoxContainerRequest Setter +// RT收箱回传请求参数 +func (r *AlibabaWdkFulfillBoxPostBackBoxAPIRequest) SetReturnBoxContainerRequest(_returnBoxContainerRequest *ReturnBoxContainerRequest) error { + r._returnBoxContainerRequest = _returnBoxContainerRequest + r.Set("return_box_container_request", _returnBoxContainerRequest) + return nil +} + +// ReturnBoxContainerRequest Getter +func (r AlibabaWdkFulfillBoxPostBackBoxAPIRequest) GetReturnBoxContainerRequest() *ReturnBoxContainerRequest { + return r._returnBoxContainerRequest +} diff --git a/model/wdk/AlibabaWdkFulfillBoxPostBackBoxAPIResponse.go b/model/wdk/AlibabaWdkFulfillBoxPostBackBoxAPIResponse.go new file mode 100644 index 0000000000..24173ae668 --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillBoxPostBackBoxAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +RT收箱回传 API返回值 +alibaba.wdk.fulfill.box.post.back.box + +RT收箱后,信息同步履约,履约同通知UMS 容器管理 +*/ +type AlibabaWdkFulfillBoxPostBackBoxAPIResponse struct { + model.CommonResponse + AlibabaWdkFulfillBoxPostBackBoxAPIResponseModel +} + +// RT收箱回传 成功返回结果 +type AlibabaWdkFulfillBoxPostBackBoxAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_fulfill_box_post_back_box_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // fulfillLogisticSingleResult + FulfillLogisticSingleResult *FulfillLogisticDefaultResult `json:"fulfill_logistic_single_result,omitempty" xml:"fulfill_logistic_single_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkFulfillBoxPostBackBoxResponse.go b/model/wdk/AlibabaWdkFulfillBoxPostBackBoxResponse.go deleted file mode 100644 index b709647802..0000000000 --- a/model/wdk/AlibabaWdkFulfillBoxPostBackBoxResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -RT收箱回传 API返回值 -alibaba.wdk.fulfill.box.post.back.box - -RT收箱后,信息同步履约,履约同通知UMS 容器管理 -*/ -type AlibabaWdkFulfillBoxPostBackBoxAPIResponse struct { - model.CommonResponse - AlibabaWdkFulfillBoxPostBackBoxResponse -} - -// RT收箱回传 成功返回结果 -type AlibabaWdkFulfillBoxPostBackBoxResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_fulfill_box_post_back_box_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // fulfillLogisticSingleResult - FulfillLogisticSingleResult *FulfillLogisticDefaultResult `json:"fulfill_logistic_single_result,omitempty" xml:"fulfill_logistic_single_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkFulfillConfigReadLimitOrderAPIRequest.go b/model/wdk/AlibabaWdkFulfillConfigReadLimitOrderAPIRequest.go new file mode 100644 index 0000000000..78487c6b12 --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillConfigReadLimitOrderAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据仓code查询仓限单配置 API请求 +alibaba.wdk.fulfill.config.read.limit.order + +根据仓code查询仓限单配置 +*/ +type AlibabaWdkFulfillConfigReadLimitOrderAPIRequest struct { + model.Params + // 仓code集合 + _warehouseCodeList []string +} + +// 初始化AlibabaWdkFulfillConfigReadLimitOrderAPIRequest对象 +func NewAlibabaWdkFulfillConfigReadLimitOrderRequest() *AlibabaWdkFulfillConfigReadLimitOrderAPIRequest{ + return &AlibabaWdkFulfillConfigReadLimitOrderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkFulfillConfigReadLimitOrderAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.fulfill.config.read.limit.order" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkFulfillConfigReadLimitOrderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseCodeList Setter +// 仓code集合 +func (r *AlibabaWdkFulfillConfigReadLimitOrderAPIRequest) SetWarehouseCodeList(_warehouseCodeList []string) error { + r._warehouseCodeList = _warehouseCodeList + r.Set("warehouse_code_list", _warehouseCodeList) + return nil +} + +// WarehouseCodeList Getter +func (r AlibabaWdkFulfillConfigReadLimitOrderAPIRequest) GetWarehouseCodeList() []string { + return r._warehouseCodeList +} diff --git a/model/wdk/AlibabaWdkFulfillConfigReadLimitOrderAPIResponse.go b/model/wdk/AlibabaWdkFulfillConfigReadLimitOrderAPIResponse.go new file mode 100644 index 0000000000..12170d76c8 --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillConfigReadLimitOrderAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据仓code查询仓限单配置 API返回值 +alibaba.wdk.fulfill.config.read.limit.order + +根据仓code查询仓限单配置 +*/ +type AlibabaWdkFulfillConfigReadLimitOrderAPIResponse struct { + model.CommonResponse + AlibabaWdkFulfillConfigReadLimitOrderAPIResponseModel +} + +// 根据仓code查询仓限单配置 成功返回结果 +type AlibabaWdkFulfillConfigReadLimitOrderAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_fulfill_config_read_limit_order_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Results []string `json:"results,omitempty" xml:"results>string,omitempty"` +} diff --git a/model/wdk/AlibabaWdkFulfillConfigReadLimitOrderResponse.go b/model/wdk/AlibabaWdkFulfillConfigReadLimitOrderResponse.go deleted file mode 100644 index 948ed90069..0000000000 --- a/model/wdk/AlibabaWdkFulfillConfigReadLimitOrderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据仓code查询仓限单配置 API返回值 -alibaba.wdk.fulfill.config.read.limit.order - -根据仓code查询仓限单配置 -*/ -type AlibabaWdkFulfillConfigReadLimitOrderAPIResponse struct { - model.CommonResponse - AlibabaWdkFulfillConfigReadLimitOrderResponse -} - -// 根据仓code查询仓限单配置 成功返回结果 -type AlibabaWdkFulfillConfigReadLimitOrderResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_fulfill_config_read_limit_order_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Results []string `json:"results,omitempty" xml:"results>string,omitempty"` -} diff --git a/model/wdk/AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIRequest.go b/model/wdk/AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIRequest.go new file mode 100644 index 0000000000..f3a866efa3 --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +末端配配送作业回传 API请求 +alibaba.wdk.fulfill.dms.delivery.work.order.callback + +末端配配送作业回传。 +*/ +type AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIRequest struct { + model.Params + // 作业单回传对象 + _callbackOrder *DeliveryCallbackOrder +} + +// 初始化AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIRequest对象 +func NewAlibabaWdkFulfillDmsDeliveryWorkOrderCallbackRequest() *AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIRequest{ + return &AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.fulfill.dms.delivery.work.order.callback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CallbackOrder Setter +// 作业单回传对象 +func (r *AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIRequest) SetCallbackOrder(_callbackOrder *DeliveryCallbackOrder) error { + r._callbackOrder = _callbackOrder + r.Set("callback_order", _callbackOrder) + return nil +} + +// CallbackOrder Getter +func (r AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIRequest) GetCallbackOrder() *DeliveryCallbackOrder { + return r._callbackOrder +} diff --git a/model/wdk/AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIResponse.go b/model/wdk/AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIResponse.go new file mode 100644 index 0000000000..b264163ce8 --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIResponse.go @@ -0,0 +1,31 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +末端配配送作业回传 API返回值 +alibaba.wdk.fulfill.dms.delivery.work.order.callback + +末端配配送作业回传。 +*/ +type AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIResponse struct { + model.CommonResponse + AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIResponseModel +} + +// 末端配配送作业回传 成功返回结果 +type AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_fulfill_dms_delivery_work_order_callback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应提示信息 + RespMessage string `json:"resp_message,omitempty" xml:"resp_message,omitempty"` + // 返回码: SUCCESS:作业批次接收成功 SYSTEM_ERROR :系统异常(指令可重发) PARAM_ERROR :参数错误(指令不可重发,监控报警) BUSINESS_ERROR:业务异常(指令不可重发,监控报警) + RespCode string `json:"resp_code,omitempty" xml:"resp_code,omitempty"` + // 是否成功:true 调用成功; false 调用失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/wdk/AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackResponse.go b/model/wdk/AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackResponse.go deleted file mode 100644 index 6c3e388a11..0000000000 --- a/model/wdk/AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -末端配配送作业回传 API返回值 -alibaba.wdk.fulfill.dms.delivery.work.order.callback - -末端配配送作业回传。 -*/ -type AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackAPIResponse struct { - model.CommonResponse - AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackResponse -} - -// 末端配配送作业回传 成功返回结果 -type AlibabaWdkFulfillDmsDeliveryWorkOrderCallbackResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_fulfill_dms_delivery_work_order_callback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应提示信息 - RespMessage string `json:"resp_message,omitempty" xml:"resp_message,omitempty"` - // 返回码: SUCCESS:作业批次接收成功 SYSTEM_ERROR :系统异常(指令可重发) PARAM_ERROR :参数错误(指令不可重发,监控报警) BUSINESS_ERROR:业务异常(指令不可重发,监控报警) - RespCode string `json:"resp_code,omitempty" xml:"resp_code,omitempty"` - // 是否成功:true 调用成功; false 调用失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/wdk/AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIRequest.go b/model/wdk/AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIRequest.go new file mode 100644 index 0000000000..8adce89116 --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +北京小蜜蜂配作业回传 API请求 +alibaba.wdk.fulfill.dms.ebeecake.work.order.callback + +北京小蜜蜂配作业回传。 +*/ +type AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIRequest struct { + model.Params + // 作业单回传对象 + _callbackOrder *EbeecakeO2OCallbackOrder +} + +// 初始化AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIRequest对象 +func NewAlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackRequest() *AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIRequest{ + return &AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.fulfill.dms.ebeecake.work.order.callback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CallbackOrder Setter +// 作业单回传对象 +func (r *AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIRequest) SetCallbackOrder(_callbackOrder *EbeecakeO2OCallbackOrder) error { + r._callbackOrder = _callbackOrder + r.Set("callback_order", _callbackOrder) + return nil +} + +// CallbackOrder Getter +func (r AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIRequest) GetCallbackOrder() *EbeecakeO2OCallbackOrder { + return r._callbackOrder +} diff --git a/model/wdk/AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIResponse.go b/model/wdk/AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIResponse.go new file mode 100644 index 0000000000..19c80bf73e --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIResponse.go @@ -0,0 +1,31 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +北京小蜜蜂配作业回传 API返回值 +alibaba.wdk.fulfill.dms.ebeecake.work.order.callback + +北京小蜜蜂配作业回传。 +*/ +type AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIResponse struct { + model.CommonResponse + AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIResponseModel +} + +// 北京小蜜蜂配作业回传 成功返回结果 +type AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_fulfill_dms_ebeecake_work_order_callback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应提示信息 + RespMessage string `json:"resp_message,omitempty" xml:"resp_message,omitempty"` + // 响应code + RespCode string `json:"resp_code,omitempty" xml:"resp_code,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/wdk/AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackResponse.go b/model/wdk/AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackResponse.go deleted file mode 100644 index 44388d34cf..0000000000 --- a/model/wdk/AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -北京小蜜蜂配作业回传 API返回值 -alibaba.wdk.fulfill.dms.ebeecake.work.order.callback - -北京小蜜蜂配作业回传。 -*/ -type AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackAPIResponse struct { - model.CommonResponse - AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackResponse -} - -// 北京小蜜蜂配作业回传 成功返回结果 -type AlibabaWdkFulfillDmsEbeecakeWorkOrderCallbackResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_fulfill_dms_ebeecake_work_order_callback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应提示信息 - RespMessage string `json:"resp_message,omitempty" xml:"resp_message,omitempty"` - // 响应code - RespCode string `json:"resp_code,omitempty" xml:"resp_code,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/wdk/AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIRequest.go b/model/wdk/AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIRequest.go new file mode 100644 index 0000000000..753a583a8f --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +每日优鲜仓作业单回传接口 API请求 +alibaba.wdk.fulfill.missfresh.warehouse.work.order.callback + +家乐福仓作业单回传接口 +*/ +type AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIRequest struct { + model.Params + // 作业单回传对象 + _callbackOrder *MissfreshO2OCallbackOrder +} + +// 初始化AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIRequest对象 +func NewAlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackRequest() *AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIRequest{ + return &AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.fulfill.missfresh.warehouse.work.order.callback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CallbackOrder Setter +// 作业单回传对象 +func (r *AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIRequest) SetCallbackOrder(_callbackOrder *MissfreshO2OCallbackOrder) error { + r._callbackOrder = _callbackOrder + r.Set("callback_order", _callbackOrder) + return nil +} + +// CallbackOrder Getter +func (r AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIRequest) GetCallbackOrder() *MissfreshO2OCallbackOrder { + return r._callbackOrder +} diff --git a/model/wdk/AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIResponse.go b/model/wdk/AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIResponse.go new file mode 100644 index 0000000000..45a2880bc8 --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIResponse.go @@ -0,0 +1,31 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +每日优鲜仓作业单回传接口 API返回值 +alibaba.wdk.fulfill.missfresh.warehouse.work.order.callback + +家乐福仓作业单回传接口 +*/ +type AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIResponse struct { + model.CommonResponse + AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIResponseModel +} + +// 每日优鲜仓作业单回传接口 成功返回结果 +type AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_fulfill_missfresh_warehouse_work_order_callback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 响应提示信息 + RespMessage string `json:"resp_message,omitempty" xml:"resp_message,omitempty"` + // 响应code + RespCode string `json:"resp_code,omitempty" xml:"resp_code,omitempty"` +} diff --git a/model/wdk/AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackResponse.go b/model/wdk/AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackResponse.go deleted file mode 100644 index 06c6778471..0000000000 --- a/model/wdk/AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -每日优鲜仓作业单回传接口 API返回值 -alibaba.wdk.fulfill.missfresh.warehouse.work.order.callback - -家乐福仓作业单回传接口 -*/ -type AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackAPIResponse struct { - model.CommonResponse - AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackResponse -} - -// 每日优鲜仓作业单回传接口 成功返回结果 -type AlibabaWdkFulfillMissfreshWarehouseWorkOrderCallbackResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_fulfill_missfresh_warehouse_work_order_callback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 响应提示信息 - RespMessage string `json:"resp_message,omitempty" xml:"resp_message,omitempty"` - // 响应code - RespCode string `json:"resp_code,omitempty" xml:"resp_code,omitempty"` -} diff --git a/model/wdk/AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIRequest.go b/model/wdk/AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIRequest.go new file mode 100644 index 0000000000..378d69e20b --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +大润发B2C仓作业单回传接口 API请求 +alibaba.wdk.fulfill.rt.btoc.warehouse.work.order.callback + +大润发B2C仓作业单回传接口 +*/ +type AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIRequest struct { + model.Params + // 作业单回传对象 + _callbackOrder *DrfB2CCallbackOrder +} + +// 初始化AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIRequest对象 +func NewAlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackRequest() *AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIRequest{ + return &AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.fulfill.rt.btoc.warehouse.work.order.callback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CallbackOrder Setter +// 作业单回传对象 +func (r *AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIRequest) SetCallbackOrder(_callbackOrder *DrfB2CCallbackOrder) error { + r._callbackOrder = _callbackOrder + r.Set("callback_order", _callbackOrder) + return nil +} + +// CallbackOrder Getter +func (r AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIRequest) GetCallbackOrder() *DrfB2CCallbackOrder { + return r._callbackOrder +} diff --git a/model/wdk/AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIResponse.go b/model/wdk/AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIResponse.go new file mode 100644 index 0000000000..4aa75df6da --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIResponse.go @@ -0,0 +1,31 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +大润发B2C仓作业单回传接口 API返回值 +alibaba.wdk.fulfill.rt.btoc.warehouse.work.order.callback + +大润发B2C仓作业单回传接口 +*/ +type AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIResponse struct { + model.CommonResponse + AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIResponseModel +} + +// 大润发B2C仓作业单回传接口 成功返回结果 +type AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_fulfill_rt_btoc_warehouse_work_order_callback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 响应提示信息 + RespMessage string `json:"resp_message,omitempty" xml:"resp_message,omitempty"` + // 响应code + RespCode string `json:"resp_code,omitempty" xml:"resp_code,omitempty"` +} diff --git a/model/wdk/AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackResponse.go b/model/wdk/AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackResponse.go deleted file mode 100644 index 6010a28247..0000000000 --- a/model/wdk/AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -大润发B2C仓作业单回传接口 API返回值 -alibaba.wdk.fulfill.rt.btoc.warehouse.work.order.callback - -大润发B2C仓作业单回传接口 -*/ -type AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackAPIResponse struct { - model.CommonResponse - AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackResponse -} - -// 大润发B2C仓作业单回传接口 成功返回结果 -type AlibabaWdkFulfillRtBtocWarehouseWorkOrderCallbackResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_fulfill_rt_btoc_warehouse_work_order_callback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 响应提示信息 - RespMessage string `json:"resp_message,omitempty" xml:"resp_message,omitempty"` - // 响应code - RespCode string `json:"resp_code,omitempty" xml:"resp_code,omitempty"` -} diff --git a/model/wdk/AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIRequest.go b/model/wdk/AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIRequest.go new file mode 100644 index 0000000000..be5d43f4e8 --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +顺丰仓作业回传 API请求 +alibaba.wdk.fulfill.sf.btoc.fms.wms.work.order.callback + +顺丰仓作业单回传接口 +*/ +type AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIRequest struct { + model.Params + // 作业单回传对象 + _callbackOrder *SfB2CFmsCallbackOrder +} + +// 初始化AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIRequest对象 +func NewAlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackRequest() *AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIRequest{ + return &AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.fulfill.sf.btoc.fms.wms.work.order.callback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CallbackOrder Setter +// 作业单回传对象 +func (r *AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIRequest) SetCallbackOrder(_callbackOrder *SfB2CFmsCallbackOrder) error { + r._callbackOrder = _callbackOrder + r.Set("callback_order", _callbackOrder) + return nil +} + +// CallbackOrder Getter +func (r AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIRequest) GetCallbackOrder() *SfB2CFmsCallbackOrder { + return r._callbackOrder +} diff --git a/model/wdk/AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIResponse.go b/model/wdk/AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIResponse.go new file mode 100644 index 0000000000..97d8776dce --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIResponse.go @@ -0,0 +1,31 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +顺丰仓作业回传 API返回值 +alibaba.wdk.fulfill.sf.btoc.fms.wms.work.order.callback + +顺丰仓作业单回传接口 +*/ +type AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIResponse struct { + model.CommonResponse + AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIResponseModel +} + +// 顺丰仓作业回传 成功返回结果 +type AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_fulfill_sf_btoc_fms_wms_work_order_callback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 响应提示信息 + RespMessage string `json:"resp_message,omitempty" xml:"resp_message,omitempty"` + // 响应code(SUCCESS:回传成功; SYSTEM_ERROR :系统异常; PARAM_ERROR :参数错误; BUSINESS_ERROR:业务异常;) + RespCode string `json:"resp_code,omitempty" xml:"resp_code,omitempty"` +} diff --git a/model/wdk/AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackResponse.go b/model/wdk/AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackResponse.go deleted file mode 100644 index f524f71c00..0000000000 --- a/model/wdk/AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -顺丰仓作业回传 API返回值 -alibaba.wdk.fulfill.sf.btoc.fms.wms.work.order.callback - -顺丰仓作业单回传接口 -*/ -type AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackAPIResponse struct { - model.CommonResponse - AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackResponse -} - -// 顺丰仓作业回传 成功返回结果 -type AlibabaWdkFulfillSfBtocFmsWmsWorkOrderCallbackResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_fulfill_sf_btoc_fms_wms_work_order_callback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 响应提示信息 - RespMessage string `json:"resp_message,omitempty" xml:"resp_message,omitempty"` - // 响应code(SUCCESS:回传成功; SYSTEM_ERROR :系统异常; PARAM_ERROR :参数错误; BUSINESS_ERROR:业务异常;) - RespCode string `json:"resp_code,omitempty" xml:"resp_code,omitempty"` -} diff --git a/model/wdk/AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIRequest.go b/model/wdk/AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIRequest.go new file mode 100644 index 0000000000..b4691a03fb --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +标准化仓作业单回传接口 API请求 +alibaba.wdk.fulfill.warehouse.work.order.callback + +标准化仓作业单回传接口 +*/ +type AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIRequest struct { + model.Params + // 作业单回传对象 + _callbackOrder *DrfHalfDayCcCallbackOrder +} + +// 初始化AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIRequest对象 +func NewAlibabaWdkFulfillWarehouseWorkOrderCallbackRequest() *AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIRequest{ + return &AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.fulfill.warehouse.work.order.callback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CallbackOrder Setter +// 作业单回传对象 +func (r *AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIRequest) SetCallbackOrder(_callbackOrder *DrfHalfDayCcCallbackOrder) error { + r._callbackOrder = _callbackOrder + r.Set("callback_order", _callbackOrder) + return nil +} + +// CallbackOrder Getter +func (r AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIRequest) GetCallbackOrder() *DrfHalfDayCcCallbackOrder { + return r._callbackOrder +} diff --git a/model/wdk/AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIResponse.go b/model/wdk/AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIResponse.go new file mode 100644 index 0000000000..5e5b491f0a --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIResponse.go @@ -0,0 +1,31 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +标准化仓作业单回传接口 API返回值 +alibaba.wdk.fulfill.warehouse.work.order.callback + +标准化仓作业单回传接口 +*/ +type AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIResponse struct { + model.CommonResponse + AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIResponseModel +} + +// 标准化仓作业单回传接口 成功返回结果 +type AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_fulfill_warehouse_work_order_callback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 响应提示信息 + RespMessage string `json:"resp_message,omitempty" xml:"resp_message,omitempty"` + // 响应code + RespCode string `json:"resp_code,omitempty" xml:"resp_code,omitempty"` +} diff --git a/model/wdk/AlibabaWdkFulfillWarehouseWorkOrderCallbackResponse.go b/model/wdk/AlibabaWdkFulfillWarehouseWorkOrderCallbackResponse.go deleted file mode 100644 index 8b2e103af0..0000000000 --- a/model/wdk/AlibabaWdkFulfillWarehouseWorkOrderCallbackResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -标准化仓作业单回传接口 API返回值 -alibaba.wdk.fulfill.warehouse.work.order.callback - -标准化仓作业单回传接口 -*/ -type AlibabaWdkFulfillWarehouseWorkOrderCallbackAPIResponse struct { - model.CommonResponse - AlibabaWdkFulfillWarehouseWorkOrderCallbackResponse -} - -// 标准化仓作业单回传接口 成功返回结果 -type AlibabaWdkFulfillWarehouseWorkOrderCallbackResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_fulfill_warehouse_work_order_callback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 响应提示信息 - RespMessage string `json:"resp_message,omitempty" xml:"resp_message,omitempty"` - // 响应code - RespCode string `json:"resp_code,omitempty" xml:"resp_code,omitempty"` -} diff --git a/model/wdk/AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIRequest.go b/model/wdk/AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIRequest.go new file mode 100644 index 0000000000..ae4a25c126 --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +仓封箱回告 API请求 +alibaba.wdk.fulfill.warehouse.work.order.sealbox + +仓封箱回告箱与包裹的关系 +*/ +type AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIRequest struct { + model.Params + // 同城交付物箱 + _sameTownBox *SameTownBox +} + +// 初始化AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIRequest对象 +func NewAlibabaWdkFulfillWarehouseWorkOrderSealboxRequest() *AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIRequest{ + return &AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.fulfill.warehouse.work.order.sealbox" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SameTownBox Setter +// 同城交付物箱 +func (r *AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIRequest) SetSameTownBox(_sameTownBox *SameTownBox) error { + r._sameTownBox = _sameTownBox + r.Set("same_town_box", _sameTownBox) + return nil +} + +// SameTownBox Getter +func (r AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIRequest) GetSameTownBox() *SameTownBox { + return r._sameTownBox +} diff --git a/model/wdk/AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIResponse.go b/model/wdk/AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIResponse.go new file mode 100644 index 0000000000..d90df6354e --- /dev/null +++ b/model/wdk/AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIResponse.go @@ -0,0 +1,31 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +仓封箱回告 API返回值 +alibaba.wdk.fulfill.warehouse.work.order.sealbox + +仓封箱回告箱与包裹的关系 +*/ +type AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIResponse struct { + model.CommonResponse + AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIResponseModel +} + +// 仓封箱回告 成功返回结果 +type AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_fulfill_warehouse_work_order_sealbox_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 失败返回原因 + RespMessage string `json:"resp_message,omitempty" xml:"resp_message,omitempty"` + // 成功失败码 + RespCode string `json:"resp_code,omitempty" xml:"resp_code,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/wdk/AlibabaWdkFulfillWarehouseWorkOrderSealboxResponse.go b/model/wdk/AlibabaWdkFulfillWarehouseWorkOrderSealboxResponse.go deleted file mode 100644 index 7e57e8b02a..0000000000 --- a/model/wdk/AlibabaWdkFulfillWarehouseWorkOrderSealboxResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -仓封箱回告 API返回值 -alibaba.wdk.fulfill.warehouse.work.order.sealbox - -仓封箱回告箱与包裹的关系 -*/ -type AlibabaWdkFulfillWarehouseWorkOrderSealboxAPIResponse struct { - model.CommonResponse - AlibabaWdkFulfillWarehouseWorkOrderSealboxResponse -} - -// 仓封箱回告 成功返回结果 -type AlibabaWdkFulfillWarehouseWorkOrderSealboxResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_fulfill_warehouse_work_order_sealbox_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 失败返回原因 - RespMessage string `json:"resp_message,omitempty" xml:"resp_message,omitempty"` - // 成功失败码 - RespCode string `json:"resp_code,omitempty" xml:"resp_code,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/wdk/AlibabaWdkHrworkbenchCdpempsQueryAPIRequest.go b/model/wdk/AlibabaWdkHrworkbenchCdpempsQueryAPIRequest.go new file mode 100644 index 0000000000..55e5d673f0 --- /dev/null +++ b/model/wdk/AlibabaWdkHrworkbenchCdpempsQueryAPIRequest.go @@ -0,0 +1,94 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +homs员工信息核对查询服务 API请求 +alibaba.wdk.hrworkbench.cdpemps.query + +给盒马可靠软件服务商Cdp系统,做非阿里编员工数据一致性核对检查 +*/ +type AlibabaWdkHrworkbenchCdpempsQueryAPIRequest struct { + model.Params + // 页面大小 + _pageSize int64 + // 业务授权key + _bizKey string + // 业务授权code + _bizCode string + // 起始页 + _currentPage int64 +} + +// 初始化AlibabaWdkHrworkbenchCdpempsQueryAPIRequest对象 +func NewAlibabaWdkHrworkbenchCdpempsQueryRequest() *AlibabaWdkHrworkbenchCdpempsQueryAPIRequest{ + return &AlibabaWdkHrworkbenchCdpempsQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkHrworkbenchCdpempsQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.hrworkbench.cdpemps.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkHrworkbenchCdpempsQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageSize Setter +// 页面大小 +func (r *AlibabaWdkHrworkbenchCdpempsQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaWdkHrworkbenchCdpempsQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// BizKey Setter +// 业务授权key +func (r *AlibabaWdkHrworkbenchCdpempsQueryAPIRequest) SetBizKey(_bizKey string) error { + r._bizKey = _bizKey + r.Set("biz_key", _bizKey) + return nil +} + +// BizKey Getter +func (r AlibabaWdkHrworkbenchCdpempsQueryAPIRequest) GetBizKey() string { + return r._bizKey +} +// BizCode Setter +// 业务授权code +func (r *AlibabaWdkHrworkbenchCdpempsQueryAPIRequest) SetBizCode(_bizCode string) error { + r._bizCode = _bizCode + r.Set("biz_code", _bizCode) + return nil +} + +// BizCode Getter +func (r AlibabaWdkHrworkbenchCdpempsQueryAPIRequest) GetBizCode() string { + return r._bizCode +} +// CurrentPage Setter +// 起始页 +func (r *AlibabaWdkHrworkbenchCdpempsQueryAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r AlibabaWdkHrworkbenchCdpempsQueryAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} diff --git a/model/wdk/AlibabaWdkHrworkbenchCdpempsQueryAPIResponse.go b/model/wdk/AlibabaWdkHrworkbenchCdpempsQueryAPIResponse.go new file mode 100644 index 0000000000..34312edd38 --- /dev/null +++ b/model/wdk/AlibabaWdkHrworkbenchCdpempsQueryAPIResponse.go @@ -0,0 +1,43 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +homs员工信息核对查询服务 API返回值 +alibaba.wdk.hrworkbench.cdpemps.query + +给盒马可靠软件服务商Cdp系统,做非阿里编员工数据一致性核对检查 +*/ +type AlibabaWdkHrworkbenchCdpempsQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkHrworkbenchCdpempsQueryAPIResponseModel +} + +// homs员工信息核对查询服务 成功返回结果 +type AlibabaWdkHrworkbenchCdpempsQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_hrworkbench_cdpemps_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 总页数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 鹰眼id + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 数据集合 + Datas []AlibabaWdkHrworkbenchCdpempsQueryData `json:"datas,omitempty" xml:"datas>alibaba_wdk_hrworkbench_cdpemps_query_data,omitempty"` + // 每一页大小 + PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` + // 业务code + BizCode int64 `json:"biz_code,omitempty" xml:"biz_code,omitempty"` + // 总页数 + TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` + // 业务是否成功 + BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` + // 当前页 + CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"` +} diff --git a/model/wdk/AlibabaWdkHrworkbenchCdpempsQueryResponse.go b/model/wdk/AlibabaWdkHrworkbenchCdpempsQueryResponse.go deleted file mode 100644 index 7f4c75925d..0000000000 --- a/model/wdk/AlibabaWdkHrworkbenchCdpempsQueryResponse.go +++ /dev/null @@ -1,43 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -homs员工信息核对查询服务 API返回值 -alibaba.wdk.hrworkbench.cdpemps.query - -给盒马可靠软件服务商Cdp系统,做非阿里编员工数据一致性核对检查 -*/ -type AlibabaWdkHrworkbenchCdpempsQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkHrworkbenchCdpempsQueryResponse -} - -// homs员工信息核对查询服务 成功返回结果 -type AlibabaWdkHrworkbenchCdpempsQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_hrworkbench_cdpemps_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 总页数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 鹰眼id - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 数据集合 - Datas []AlibabaWdkHrworkbenchCdpempsQueryData `json:"datas,omitempty" xml:"datas>alibaba_wdk_hrworkbench_cdpemps_query_data,omitempty"` - // 每一页大小 - PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` - // 业务code - BizCode int64 `json:"biz_code,omitempty" xml:"biz_code,omitempty"` - // 总页数 - TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"` - // 业务是否成功 - BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` - // 当前页 - CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"` -} diff --git a/model/wdk/AlibabaWdkHrworkbenchCdporgsQueryAPIRequest.go b/model/wdk/AlibabaWdkHrworkbenchCdporgsQueryAPIRequest.go new file mode 100644 index 0000000000..fde7ad3cc8 --- /dev/null +++ b/model/wdk/AlibabaWdkHrworkbenchCdporgsQueryAPIRequest.go @@ -0,0 +1,38 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +homs人力资源组织树查询接口 API请求 +alibaba.wdk.hrworkbench.cdporgs.query + +提供查询homs人力组织树的接口,按照商家做权限隔离。 +*/ +type AlibabaWdkHrworkbenchCdporgsQueryAPIRequest struct { + model.Params +} + +// 初始化AlibabaWdkHrworkbenchCdporgsQueryAPIRequest对象 +func NewAlibabaWdkHrworkbenchCdporgsQueryRequest() *AlibabaWdkHrworkbenchCdporgsQueryAPIRequest{ + return &AlibabaWdkHrworkbenchCdporgsQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkHrworkbenchCdporgsQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.hrworkbench.cdporgs.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkHrworkbenchCdporgsQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/wdk/AlibabaWdkHrworkbenchCdporgsQueryAPIResponse.go b/model/wdk/AlibabaWdkHrworkbenchCdporgsQueryAPIResponse.go new file mode 100644 index 0000000000..1b28b16c45 --- /dev/null +++ b/model/wdk/AlibabaWdkHrworkbenchCdporgsQueryAPIResponse.go @@ -0,0 +1,35 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +homs人力资源组织树查询接口 API返回值 +alibaba.wdk.hrworkbench.cdporgs.query + +提供查询homs人力组织树的接口,按照商家做权限隔离。 +*/ +type AlibabaWdkHrworkbenchCdporgsQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkHrworkbenchCdporgsQueryAPIResponseModel +} + +// homs人力资源组织树查询接口 成功返回结果 +type AlibabaWdkHrworkbenchCdporgsQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_hrworkbench_cdporgs_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 鹰眼id + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` + // 数据集合 + Datas []AlibabaWdkHrworkbenchCdporgsQueryData `json:"datas,omitempty" xml:"datas>alibaba_wdk_hrworkbench_cdporgs_query_data,omitempty"` + // 参数code + BizCode int64 `json:"biz_code,omitempty" xml:"biz_code,omitempty"` + // 请求是否成功 + BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` +} diff --git a/model/wdk/AlibabaWdkHrworkbenchCdporgsQueryResponse.go b/model/wdk/AlibabaWdkHrworkbenchCdporgsQueryResponse.go deleted file mode 100644 index 3f5d690773..0000000000 --- a/model/wdk/AlibabaWdkHrworkbenchCdporgsQueryResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -homs人力资源组织树查询接口 API返回值 -alibaba.wdk.hrworkbench.cdporgs.query - -提供查询homs人力组织树的接口,按照商家做权限隔离。 -*/ -type AlibabaWdkHrworkbenchCdporgsQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkHrworkbenchCdporgsQueryResponse -} - -// homs人力资源组织树查询接口 成功返回结果 -type AlibabaWdkHrworkbenchCdporgsQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_hrworkbench_cdporgs_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 鹰眼id - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` - // 数据集合 - Datas []AlibabaWdkHrworkbenchCdporgsQueryData `json:"datas,omitempty" xml:"datas>alibaba_wdk_hrworkbench_cdporgs_query_data,omitempty"` - // 参数code - BizCode int64 `json:"biz_code,omitempty" xml:"biz_code,omitempty"` - // 请求是否成功 - BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"` -} diff --git a/model/wdk/AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIRequest.go b/model/wdk/AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIRequest.go new file mode 100644 index 0000000000..f664897489 --- /dev/null +++ b/model/wdk/AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +摩卡确认入职后往入职单据表写数据接口 API请求 +alibaba.wdk.hrworkbench.moka.entry.receipt.write + +摩卡确认入职后往入职单据表写数据接口 +*/ +type AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIRequest struct { + model.Params + // 确认入职后入职单据请求 + _paramSyncEntryReceiptRequest *SyncEntryReceiptRequest +} + +// 初始化AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIRequest对象 +func NewAlibabaWdkHrworkbenchMokaEntryReceiptWriteRequest() *AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIRequest{ + return &AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.hrworkbench.moka.entry.receipt.write" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamSyncEntryReceiptRequest Setter +// 确认入职后入职单据请求 +func (r *AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIRequest) SetParamSyncEntryReceiptRequest(_paramSyncEntryReceiptRequest *SyncEntryReceiptRequest) error { + r._paramSyncEntryReceiptRequest = _paramSyncEntryReceiptRequest + r.Set("param_sync_entry_receipt_request", _paramSyncEntryReceiptRequest) + return nil +} + +// ParamSyncEntryReceiptRequest Getter +func (r AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIRequest) GetParamSyncEntryReceiptRequest() *SyncEntryReceiptRequest { + return r._paramSyncEntryReceiptRequest +} diff --git a/model/wdk/AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIResponse.go b/model/wdk/AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIResponse.go new file mode 100644 index 0000000000..0109c38e73 --- /dev/null +++ b/model/wdk/AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIResponse.go @@ -0,0 +1,37 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +摩卡确认入职后往入职单据表写数据接口 API返回值 +alibaba.wdk.hrworkbench.moka.entry.receipt.write + +摩卡确认入职后往入职单据表写数据接口 +*/ +type AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIResponse struct { + model.CommonResponse + AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIResponseModel +} + +// 摩卡确认入职后往入职单据表写数据接口 成功返回结果 +type AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_hrworkbench_moka_entry_receipt_write_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // data + Data bool `json:"data,omitempty" xml:"data,omitempty"` + // 失败 + Fail bool `json:"fail,omitempty" xml:"fail,omitempty"` + // 结果信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 成功并且结果非空 + SuccAndNotNull bool `json:"succ_and_not_null,omitempty" xml:"succ_and_not_null,omitempty"` + // 成功结果为空 + SuccAndNull bool `json:"succ_and_null,omitempty" xml:"succ_and_null,omitempty"` + // trace_id + TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` +} diff --git a/model/wdk/AlibabaWdkHrworkbenchMokaEntryReceiptWriteResponse.go b/model/wdk/AlibabaWdkHrworkbenchMokaEntryReceiptWriteResponse.go deleted file mode 100644 index dd343a881e..0000000000 --- a/model/wdk/AlibabaWdkHrworkbenchMokaEntryReceiptWriteResponse.go +++ /dev/null @@ -1,37 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -摩卡确认入职后往入职单据表写数据接口 API返回值 -alibaba.wdk.hrworkbench.moka.entry.receipt.write - -摩卡确认入职后往入职单据表写数据接口 -*/ -type AlibabaWdkHrworkbenchMokaEntryReceiptWriteAPIResponse struct { - model.CommonResponse - AlibabaWdkHrworkbenchMokaEntryReceiptWriteResponse -} - -// 摩卡确认入职后往入职单据表写数据接口 成功返回结果 -type AlibabaWdkHrworkbenchMokaEntryReceiptWriteResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_hrworkbench_moka_entry_receipt_write_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // data - Data bool `json:"data,omitempty" xml:"data,omitempty"` - // 失败 - Fail bool `json:"fail,omitempty" xml:"fail,omitempty"` - // 结果信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 成功并且结果非空 - SuccAndNotNull bool `json:"succ_and_not_null,omitempty" xml:"succ_and_not_null,omitempty"` - // 成功结果为空 - SuccAndNull bool `json:"succ_and_null,omitempty" xml:"succ_and_null,omitempty"` - // trace_id - TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"` -} diff --git a/model/wdk/AlibabaWdkItemCategoryUpdateAPIRequest.go b/model/wdk/AlibabaWdkItemCategoryUpdateAPIRequest.go new file mode 100644 index 0000000000..62a2269a47 --- /dev/null +++ b/model/wdk/AlibabaWdkItemCategoryUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改类目 API请求 +alibaba.wdk.item.category.update + +修改类目 +*/ +type AlibabaWdkItemCategoryUpdateAPIRequest struct { + model.Params + // 入参 + _bean *UpdateCategoryRequestBean +} + +// 初始化AlibabaWdkItemCategoryUpdateAPIRequest对象 +func NewAlibabaWdkItemCategoryUpdateRequest() *AlibabaWdkItemCategoryUpdateAPIRequest{ + return &AlibabaWdkItemCategoryUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkItemCategoryUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.item.category.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkItemCategoryUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Bean Setter +// 入参 +func (r *AlibabaWdkItemCategoryUpdateAPIRequest) SetBean(_bean *UpdateCategoryRequestBean) error { + r._bean = _bean + r.Set("bean", _bean) + return nil +} + +// Bean Getter +func (r AlibabaWdkItemCategoryUpdateAPIRequest) GetBean() *UpdateCategoryRequestBean { + return r._bean +} diff --git a/model/wdk/AlibabaWdkItemCategoryUpdateAPIResponse.go b/model/wdk/AlibabaWdkItemCategoryUpdateAPIResponse.go new file mode 100644 index 0000000000..0cd4c21344 --- /dev/null +++ b/model/wdk/AlibabaWdkItemCategoryUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改类目 API返回值 +alibaba.wdk.item.category.update + +修改类目 +*/ +type AlibabaWdkItemCategoryUpdateAPIResponse struct { + model.CommonResponse + AlibabaWdkItemCategoryUpdateAPIResponseModel +} + +// 修改类目 成功返回结果 +type AlibabaWdkItemCategoryUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_item_category_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkItemCategoryUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkItemCategoryUpdateResponse.go b/model/wdk/AlibabaWdkItemCategoryUpdateResponse.go deleted file mode 100644 index 2e02347686..0000000000 --- a/model/wdk/AlibabaWdkItemCategoryUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改类目 API返回值 -alibaba.wdk.item.category.update - -修改类目 -*/ -type AlibabaWdkItemCategoryUpdateAPIResponse struct { - model.CommonResponse - AlibabaWdkItemCategoryUpdateResponse -} - -// 修改类目 成功返回结果 -type AlibabaWdkItemCategoryUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_item_category_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkItemCategoryUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkItemChangepriceQueryAPIRequest.go b/model/wdk/AlibabaWdkItemChangepriceQueryAPIRequest.go new file mode 100644 index 0000000000..af80499486 --- /dev/null +++ b/model/wdk/AlibabaWdkItemChangepriceQueryAPIRequest.go @@ -0,0 +1,101 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +按照价格变更时间段,查询会变更价格的单据的商品 API请求 +alibaba.wdk.item.changeprice.query + +* + * 按照价格变更时间段,查询会变更价格的单据的商品 + * 传入QueryPriceChangeTypeEnum.BASE_PRICE,返回变价时间在startTime-endTime之间的所有单据 + * 传入QueryPriceChangeTypeEnum.SKU_PROMOTION_START, + * 返回活动开始时间在 startTime<=活动开始时间alibaba_wdk_marketing_expire_promotion_create_t,omitempty"` + // errorCode + FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingExpirePromotionCreateResponse.go b/model/wdk/AlibabaWdkMarketingExpirePromotionCreateResponse.go deleted file mode 100644 index cc496db719..0000000000 --- a/model/wdk/AlibabaWdkMarketingExpirePromotionCreateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -短保优惠创建 API返回值 -alibaba.wdk.marketing.expire.promotion.create - -过期优惠优惠信息录入 -*/ -type AlibabaWdkMarketingExpirePromotionCreateAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingExpirePromotionCreateResponse -} - -// 短保优惠创建 成功返回结果 -type AlibabaWdkMarketingExpirePromotionCreateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_expire_promotion_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // data - Datas []AlibabaWdkMarketingExpirePromotionCreateT `json:"datas,omitempty" xml:"datas>alibaba_wdk_marketing_expire_promotion_create_t,omitempty"` - // errorCode - FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingExpirePromotionDeleteAPIRequest.go b/model/wdk/AlibabaWdkMarketingExpirePromotionDeleteAPIRequest.go new file mode 100644 index 0000000000..0174b0e495 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingExpirePromotionDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +短保优惠删除 API请求 +alibaba.wdk.marketing.expire.promotion.delete + +短保优惠删除 +*/ +type AlibabaWdkMarketingExpirePromotionDeleteAPIRequest struct { + model.Params + // 删除短保优惠 + _param0 *ExpirePromotionBo +} + +// 初始化AlibabaWdkMarketingExpirePromotionDeleteAPIRequest对象 +func NewAlibabaWdkMarketingExpirePromotionDeleteRequest() *AlibabaWdkMarketingExpirePromotionDeleteAPIRequest{ + return &AlibabaWdkMarketingExpirePromotionDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingExpirePromotionDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.expire.promotion.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingExpirePromotionDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 删除短保优惠 +func (r *AlibabaWdkMarketingExpirePromotionDeleteAPIRequest) SetParam0(_param0 *ExpirePromotionBo) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingExpirePromotionDeleteAPIRequest) GetParam0() *ExpirePromotionBo { + return r._param0 +} diff --git a/model/wdk/AlibabaWdkMarketingExpirePromotionDeleteAPIResponse.go b/model/wdk/AlibabaWdkMarketingExpirePromotionDeleteAPIResponse.go new file mode 100644 index 0000000000..d2421b79d8 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingExpirePromotionDeleteAPIResponse.go @@ -0,0 +1,33 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +短保优惠删除 API返回值 +alibaba.wdk.marketing.expire.promotion.delete + +短保优惠删除 +*/ +type AlibabaWdkMarketingExpirePromotionDeleteAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingExpirePromotionDeleteAPIResponseModel +} + +// 短保优惠删除 成功返回结果 +type AlibabaWdkMarketingExpirePromotionDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_expire_promotion_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // data + Datas []ExpirePromotionResult `json:"datas,omitempty" xml:"datas>expire_promotion_result,omitempty"` + // errorCode + FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingExpirePromotionDeleteResponse.go b/model/wdk/AlibabaWdkMarketingExpirePromotionDeleteResponse.go deleted file mode 100644 index 0d72cddaeb..0000000000 --- a/model/wdk/AlibabaWdkMarketingExpirePromotionDeleteResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -短保优惠删除 API返回值 -alibaba.wdk.marketing.expire.promotion.delete - -短保优惠删除 -*/ -type AlibabaWdkMarketingExpirePromotionDeleteAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingExpirePromotionDeleteResponse -} - -// 短保优惠删除 成功返回结果 -type AlibabaWdkMarketingExpirePromotionDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_expire_promotion_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // data - Datas []ExpirePromotionResult `json:"datas,omitempty" xml:"datas>expire_promotion_result,omitempty"` - // errorCode - FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingExpirePromotionQueryAPIRequest.go b/model/wdk/AlibabaWdkMarketingExpirePromotionQueryAPIRequest.go new file mode 100644 index 0000000000..aba0c629d6 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingExpirePromotionQueryAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +短保优惠查询 API请求 +alibaba.wdk.marketing.expire.promotion.query + +短保优惠查询 +*/ +type AlibabaWdkMarketingExpirePromotionQueryAPIRequest struct { + model.Params + // 店铺id + _shopId string + // 商品skucode + _skuCode string +} + +// 初始化AlibabaWdkMarketingExpirePromotionQueryAPIRequest对象 +func NewAlibabaWdkMarketingExpirePromotionQueryRequest() *AlibabaWdkMarketingExpirePromotionQueryAPIRequest{ + return &AlibabaWdkMarketingExpirePromotionQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingExpirePromotionQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.expire.promotion.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingExpirePromotionQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShopId Setter +// 店铺id +func (r *AlibabaWdkMarketingExpirePromotionQueryAPIRequest) SetShopId(_shopId string) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r AlibabaWdkMarketingExpirePromotionQueryAPIRequest) GetShopId() string { + return r._shopId +} +// SkuCode Setter +// 商品skucode +func (r *AlibabaWdkMarketingExpirePromotionQueryAPIRequest) SetSkuCode(_skuCode string) error { + r._skuCode = _skuCode + r.Set("sku_code", _skuCode) + return nil +} + +// SkuCode Getter +func (r AlibabaWdkMarketingExpirePromotionQueryAPIRequest) GetSkuCode() string { + return r._skuCode +} diff --git a/model/wdk/AlibabaWdkMarketingExpirePromotionQueryAPIResponse.go b/model/wdk/AlibabaWdkMarketingExpirePromotionQueryAPIResponse.go new file mode 100644 index 0000000000..a92a1ce5ee --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingExpirePromotionQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +短保优惠查询 API返回值 +alibaba.wdk.marketing.expire.promotion.query + +短保优惠查询 +*/ +type AlibabaWdkMarketingExpirePromotionQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingExpirePromotionQueryAPIResponseModel +} + +// 短保优惠查询 成功返回结果 +type AlibabaWdkMarketingExpirePromotionQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_expire_promotion_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingExpirePromotionQueryResponse.go b/model/wdk/AlibabaWdkMarketingExpirePromotionQueryResponse.go deleted file mode 100644 index dd59c21f87..0000000000 --- a/model/wdk/AlibabaWdkMarketingExpirePromotionQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -短保优惠查询 API返回值 -alibaba.wdk.marketing.expire.promotion.query - -短保优惠查询 -*/ -type AlibabaWdkMarketingExpirePromotionQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingExpirePromotionQueryResponse -} - -// 短保优惠查询 成功返回结果 -type AlibabaWdkMarketingExpirePromotionQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_expire_promotion_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingFullrangeAddexchangeitemAPIRequest.go b/model/wdk/AlibabaWdkMarketingFullrangeAddexchangeitemAPIRequest.go new file mode 100644 index 0000000000..21e5e81cfe --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingFullrangeAddexchangeitemAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +全场增加换购品 API请求 +alibaba.wdk.marketing.fullrange.addexchangeitem + +全场增加换购品 +*/ +type AlibabaWdkMarketingFullrangeAddexchangeitemAPIRequest struct { + model.Params + // 系统自动生成 + _param0 *ItemStairSku + // 系统自动生成 + _param1 *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingFullrangeAddexchangeitemAPIRequest对象 +func NewAlibabaWdkMarketingFullrangeAddexchangeitemRequest() *AlibabaWdkMarketingFullrangeAddexchangeitemAPIRequest{ + return &AlibabaWdkMarketingFullrangeAddexchangeitemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingFullrangeAddexchangeitemAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.fullrange.addexchangeitem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingFullrangeAddexchangeitemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 系统自动生成 +func (r *AlibabaWdkMarketingFullrangeAddexchangeitemAPIRequest) SetParam0(_param0 *ItemStairSku) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingFullrangeAddexchangeitemAPIRequest) GetParam0() *ItemStairSku { + return r._param0 +} +// Param1 Setter +// 系统自动生成 +func (r *AlibabaWdkMarketingFullrangeAddexchangeitemAPIRequest) SetParam1(_param1 *CommonActivityParam) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaWdkMarketingFullrangeAddexchangeitemAPIRequest) GetParam1() *CommonActivityParam { + return r._param1 +} diff --git a/model/wdk/AlibabaWdkMarketingFullrangeAddexchangeitemAPIResponse.go b/model/wdk/AlibabaWdkMarketingFullrangeAddexchangeitemAPIResponse.go new file mode 100644 index 0000000000..1eb6723d81 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingFullrangeAddexchangeitemAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +全场增加换购品 API返回值 +alibaba.wdk.marketing.fullrange.addexchangeitem + +全场增加换购品 +*/ +type AlibabaWdkMarketingFullrangeAddexchangeitemAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingFullrangeAddexchangeitemAPIResponseModel +} + +// 全场增加换购品 成功返回结果 +type AlibabaWdkMarketingFullrangeAddexchangeitemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_fullrange_addexchangeitem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 添加商品返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingFullrangeAddexchangeitemResponse.go b/model/wdk/AlibabaWdkMarketingFullrangeAddexchangeitemResponse.go deleted file mode 100644 index 45bf5897ce..0000000000 --- a/model/wdk/AlibabaWdkMarketingFullrangeAddexchangeitemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -全场增加换购品 API返回值 -alibaba.wdk.marketing.fullrange.addexchangeitem - -全场增加换购品 -*/ -type AlibabaWdkMarketingFullrangeAddexchangeitemAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingFullrangeAddexchangeitemResponse -} - -// 全场增加换购品 成功返回结果 -type AlibabaWdkMarketingFullrangeAddexchangeitemResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_fullrange_addexchangeitem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 添加商品返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingFullrangeCreateactivityAPIRequest.go b/model/wdk/AlibabaWdkMarketingFullrangeCreateactivityAPIRequest.go new file mode 100644 index 0000000000..ddf00b967c --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingFullrangeCreateactivityAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建全场活动 API请求 +alibaba.wdk.marketing.fullrange.createactivity + +创建全场活动 +*/ +type AlibabaWdkMarketingFullrangeCreateactivityAPIRequest struct { + model.Params + // 创建活动请求入参 + _param *FullRangeActivity +} + +// 初始化AlibabaWdkMarketingFullrangeCreateactivityAPIRequest对象 +func NewAlibabaWdkMarketingFullrangeCreateactivityRequest() *AlibabaWdkMarketingFullrangeCreateactivityAPIRequest{ + return &AlibabaWdkMarketingFullrangeCreateactivityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingFullrangeCreateactivityAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.fullrange.createactivity" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingFullrangeCreateactivityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 创建活动请求入参 +func (r *AlibabaWdkMarketingFullrangeCreateactivityAPIRequest) SetParam(_param *FullRangeActivity) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkMarketingFullrangeCreateactivityAPIRequest) GetParam() *FullRangeActivity { + return r._param +} diff --git a/model/wdk/AlibabaWdkMarketingFullrangeCreateactivityAPIResponse.go b/model/wdk/AlibabaWdkMarketingFullrangeCreateactivityAPIResponse.go new file mode 100644 index 0000000000..c3a53934ae --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingFullrangeCreateactivityAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建全场活动 API返回值 +alibaba.wdk.marketing.fullrange.createactivity + +创建全场活动 +*/ +type AlibabaWdkMarketingFullrangeCreateactivityAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingFullrangeCreateactivityAPIResponseModel +} + +// 创建全场活动 成功返回结果 +type AlibabaWdkMarketingFullrangeCreateactivityAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_fullrange_createactivity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创建活动返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingFullrangeCreateactivityResponse.go b/model/wdk/AlibabaWdkMarketingFullrangeCreateactivityResponse.go deleted file mode 100644 index 74fd37c941..0000000000 --- a/model/wdk/AlibabaWdkMarketingFullrangeCreateactivityResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建全场活动 API返回值 -alibaba.wdk.marketing.fullrange.createactivity - -创建全场活动 -*/ -type AlibabaWdkMarketingFullrangeCreateactivityAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingFullrangeCreateactivityResponse -} - -// 创建全场活动 成功返回结果 -type AlibabaWdkMarketingFullrangeCreateactivityResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_fullrange_createactivity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创建活动返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingFullrangeDeleteactivityAPIRequest.go b/model/wdk/AlibabaWdkMarketingFullrangeDeleteactivityAPIRequest.go new file mode 100644 index 0000000000..989871b93b --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingFullrangeDeleteactivityAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +全场活动删除活动接口 API请求 +alibaba.wdk.marketing.fullrange.deleteactivity + +全场活动删除活动 +*/ +type AlibabaWdkMarketingFullrangeDeleteactivityAPIRequest struct { + model.Params + // 需要删除的活动的信息 + _param *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingFullrangeDeleteactivityAPIRequest对象 +func NewAlibabaWdkMarketingFullrangeDeleteactivityRequest() *AlibabaWdkMarketingFullrangeDeleteactivityAPIRequest{ + return &AlibabaWdkMarketingFullrangeDeleteactivityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingFullrangeDeleteactivityAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.fullrange.deleteactivity" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingFullrangeDeleteactivityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 需要删除的活动的信息 +func (r *AlibabaWdkMarketingFullrangeDeleteactivityAPIRequest) SetParam(_param *CommonActivityParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkMarketingFullrangeDeleteactivityAPIRequest) GetParam() *CommonActivityParam { + return r._param +} diff --git a/model/wdk/AlibabaWdkMarketingFullrangeDeleteactivityAPIResponse.go b/model/wdk/AlibabaWdkMarketingFullrangeDeleteactivityAPIResponse.go new file mode 100644 index 0000000000..0d66078db3 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingFullrangeDeleteactivityAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +全场活动删除活动接口 API返回值 +alibaba.wdk.marketing.fullrange.deleteactivity + +全场活动删除活动 +*/ +type AlibabaWdkMarketingFullrangeDeleteactivityAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingFullrangeDeleteactivityAPIResponseModel +} + +// 全场活动删除活动接口 成功返回结果 +type AlibabaWdkMarketingFullrangeDeleteactivityAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_fullrange_deleteactivity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 删除活动返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingFullrangeDeleteactivityResponse.go b/model/wdk/AlibabaWdkMarketingFullrangeDeleteactivityResponse.go deleted file mode 100644 index fbb9323701..0000000000 --- a/model/wdk/AlibabaWdkMarketingFullrangeDeleteactivityResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -全场活动删除活动接口 API返回值 -alibaba.wdk.marketing.fullrange.deleteactivity - -全场活动删除活动 -*/ -type AlibabaWdkMarketingFullrangeDeleteactivityAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingFullrangeDeleteactivityResponse -} - -// 全场活动删除活动接口 成功返回结果 -type AlibabaWdkMarketingFullrangeDeleteactivityResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_fullrange_deleteactivity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 删除活动返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingFullrangeQueryactivityAPIRequest.go b/model/wdk/AlibabaWdkMarketingFullrangeQueryactivityAPIRequest.go new file mode 100644 index 0000000000..c41f4b6983 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingFullrangeQueryactivityAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +全场活动查询活动 API请求 +alibaba.wdk.marketing.fullrange.queryactivity + +全场活动查询活动 +*/ +type AlibabaWdkMarketingFullrangeQueryactivityAPIRequest struct { + model.Params + // 查询活动入参 + _param0 *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingFullrangeQueryactivityAPIRequest对象 +func NewAlibabaWdkMarketingFullrangeQueryactivityRequest() *AlibabaWdkMarketingFullrangeQueryactivityAPIRequest{ + return &AlibabaWdkMarketingFullrangeQueryactivityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingFullrangeQueryactivityAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.fullrange.queryactivity" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingFullrangeQueryactivityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 查询活动入参 +func (r *AlibabaWdkMarketingFullrangeQueryactivityAPIRequest) SetParam0(_param0 *CommonActivityParam) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingFullrangeQueryactivityAPIRequest) GetParam0() *CommonActivityParam { + return r._param0 +} diff --git a/model/wdk/AlibabaWdkMarketingFullrangeQueryactivityAPIResponse.go b/model/wdk/AlibabaWdkMarketingFullrangeQueryactivityAPIResponse.go new file mode 100644 index 0000000000..ff5887b783 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingFullrangeQueryactivityAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +全场活动查询活动 API返回值 +alibaba.wdk.marketing.fullrange.queryactivity + +全场活动查询活动 +*/ +type AlibabaWdkMarketingFullrangeQueryactivityAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingFullrangeQueryactivityAPIResponseModel +} + +// 全场活动查询活动 成功返回结果 +type AlibabaWdkMarketingFullrangeQueryactivityAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_fullrange_queryactivity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingFullrangeQueryactivityResponse.go b/model/wdk/AlibabaWdkMarketingFullrangeQueryactivityResponse.go deleted file mode 100644 index 8f6073a533..0000000000 --- a/model/wdk/AlibabaWdkMarketingFullrangeQueryactivityResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -全场活动查询活动 API返回值 -alibaba.wdk.marketing.fullrange.queryactivity - -全场活动查询活动 -*/ -type AlibabaWdkMarketingFullrangeQueryactivityAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingFullrangeQueryactivityResponse -} - -// 全场活动查询活动 成功返回结果 -type AlibabaWdkMarketingFullrangeQueryactivityResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_fullrange_queryactivity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingFullrangeQueryitemAPIRequest.go b/model/wdk/AlibabaWdkMarketingFullrangeQueryitemAPIRequest.go new file mode 100644 index 0000000000..c6d681196a --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingFullrangeQueryitemAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +全场活动查询换购品 API请求 +alibaba.wdk.marketing.fullrange.queryitem + +全场活动查询换购品 +*/ +type AlibabaWdkMarketingFullrangeQueryitemAPIRequest struct { + model.Params + // 换购商品查询参数 + _param0 *ActivitySkuQuery +} + +// 初始化AlibabaWdkMarketingFullrangeQueryitemAPIRequest对象 +func NewAlibabaWdkMarketingFullrangeQueryitemRequest() *AlibabaWdkMarketingFullrangeQueryitemAPIRequest{ + return &AlibabaWdkMarketingFullrangeQueryitemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingFullrangeQueryitemAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.fullrange.queryitem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingFullrangeQueryitemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 换购商品查询参数 +func (r *AlibabaWdkMarketingFullrangeQueryitemAPIRequest) SetParam0(_param0 *ActivitySkuQuery) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingFullrangeQueryitemAPIRequest) GetParam0() *ActivitySkuQuery { + return r._param0 +} diff --git a/model/wdk/AlibabaWdkMarketingFullrangeQueryitemAPIResponse.go b/model/wdk/AlibabaWdkMarketingFullrangeQueryitemAPIResponse.go new file mode 100644 index 0000000000..530edd1c8a --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingFullrangeQueryitemAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +全场活动查询换购品 API返回值 +alibaba.wdk.marketing.fullrange.queryitem + +全场活动查询换购品 +*/ +type AlibabaWdkMarketingFullrangeQueryitemAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingFullrangeQueryitemAPIResponseModel +} + +// 全场活动查询换购品 成功返回结果 +type AlibabaWdkMarketingFullrangeQueryitemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_fullrange_queryitem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果 + Result *MarketPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingFullrangeQueryitemResponse.go b/model/wdk/AlibabaWdkMarketingFullrangeQueryitemResponse.go deleted file mode 100644 index a937d46e96..0000000000 --- a/model/wdk/AlibabaWdkMarketingFullrangeQueryitemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -全场活动查询换购品 API返回值 -alibaba.wdk.marketing.fullrange.queryitem - -全场活动查询换购品 -*/ -type AlibabaWdkMarketingFullrangeQueryitemAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingFullrangeQueryitemResponse -} - -// 全场活动查询换购品 成功返回结果 -type AlibabaWdkMarketingFullrangeQueryitemResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_fullrange_queryitem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果 - Result *MarketPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingFullrangeRemoveitemAPIRequest.go b/model/wdk/AlibabaWdkMarketingFullrangeRemoveitemAPIRequest.go new file mode 100644 index 0000000000..b8f72d222f --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingFullrangeRemoveitemAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +全场活动删除购品 API请求 +alibaba.wdk.marketing.fullrange.removeitem + +删除换购商品 +*/ +type AlibabaWdkMarketingFullrangeRemoveitemAPIRequest struct { + model.Params + // 商品sku信息 + _param0 *ItemStairSku + // 活动信息 + _param1 *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingFullrangeRemoveitemAPIRequest对象 +func NewAlibabaWdkMarketingFullrangeRemoveitemRequest() *AlibabaWdkMarketingFullrangeRemoveitemAPIRequest{ + return &AlibabaWdkMarketingFullrangeRemoveitemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingFullrangeRemoveitemAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.fullrange.removeitem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingFullrangeRemoveitemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 商品sku信息 +func (r *AlibabaWdkMarketingFullrangeRemoveitemAPIRequest) SetParam0(_param0 *ItemStairSku) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingFullrangeRemoveitemAPIRequest) GetParam0() *ItemStairSku { + return r._param0 +} +// Param1 Setter +// 活动信息 +func (r *AlibabaWdkMarketingFullrangeRemoveitemAPIRequest) SetParam1(_param1 *CommonActivityParam) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaWdkMarketingFullrangeRemoveitemAPIRequest) GetParam1() *CommonActivityParam { + return r._param1 +} diff --git a/model/wdk/AlibabaWdkMarketingFullrangeRemoveitemAPIResponse.go b/model/wdk/AlibabaWdkMarketingFullrangeRemoveitemAPIResponse.go new file mode 100644 index 0000000000..11b917b6d9 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingFullrangeRemoveitemAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +全场活动删除购品 API返回值 +alibaba.wdk.marketing.fullrange.removeitem + +删除换购商品 +*/ +type AlibabaWdkMarketingFullrangeRemoveitemAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingFullrangeRemoveitemAPIResponseModel +} + +// 全场活动删除购品 成功返回结果 +type AlibabaWdkMarketingFullrangeRemoveitemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_fullrange_removeitem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingFullrangeRemoveitemResponse.go b/model/wdk/AlibabaWdkMarketingFullrangeRemoveitemResponse.go deleted file mode 100644 index d65173020f..0000000000 --- a/model/wdk/AlibabaWdkMarketingFullrangeRemoveitemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -全场活动删除购品 API返回值 -alibaba.wdk.marketing.fullrange.removeitem - -删除换购商品 -*/ -type AlibabaWdkMarketingFullrangeRemoveitemAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingFullrangeRemoveitemResponse -} - -// 全场活动删除购品 成功返回结果 -type AlibabaWdkMarketingFullrangeRemoveitemResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_fullrange_removeitem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItembuygiftAdditemAPIRequest.go b/model/wdk/AlibabaWdkMarketingItembuygiftAdditemAPIRequest.go new file mode 100644 index 0000000000..0e043dedf6 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItembuygiftAdditemAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +增加买赠活动商品。【注意,此接口暂不支持并发!】 API请求 +alibaba.wdk.marketing.itembuygift.additem + +增加买赠活动商品。【注意,此接口暂不支持并发!】 +*/ +type AlibabaWdkMarketingItembuygiftAdditemAPIRequest struct { + model.Params + // 商品对象 + _param0 *ItemBuyGiftSku + // 活动基本信息 + _param1 *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingItembuygiftAdditemAPIRequest对象 +func NewAlibabaWdkMarketingItembuygiftAdditemRequest() *AlibabaWdkMarketingItembuygiftAdditemAPIRequest{ + return &AlibabaWdkMarketingItembuygiftAdditemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItembuygiftAdditemAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itembuygift.additem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItembuygiftAdditemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 商品对象 +func (r *AlibabaWdkMarketingItembuygiftAdditemAPIRequest) SetParam0(_param0 *ItemBuyGiftSku) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingItembuygiftAdditemAPIRequest) GetParam0() *ItemBuyGiftSku { + return r._param0 +} +// Param1 Setter +// 活动基本信息 +func (r *AlibabaWdkMarketingItembuygiftAdditemAPIRequest) SetParam1(_param1 *CommonActivityParam) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaWdkMarketingItembuygiftAdditemAPIRequest) GetParam1() *CommonActivityParam { + return r._param1 +} diff --git a/model/wdk/AlibabaWdkMarketingItembuygiftAdditemAPIResponse.go b/model/wdk/AlibabaWdkMarketingItembuygiftAdditemAPIResponse.go new file mode 100644 index 0000000000..5cd7e6055f --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItembuygiftAdditemAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +增加买赠活动商品。【注意,此接口暂不支持并发!】 API返回值 +alibaba.wdk.marketing.itembuygift.additem + +增加买赠活动商品。【注意,此接口暂不支持并发!】 +*/ +type AlibabaWdkMarketingItembuygiftAdditemAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItembuygiftAdditemAPIResponseModel +} + +// 增加买赠活动商品。【注意,此接口暂不支持并发!】 成功返回结果 +type AlibabaWdkMarketingItembuygiftAdditemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itembuygift_additem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品报名活动的返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItembuygiftAdditemResponse.go b/model/wdk/AlibabaWdkMarketingItembuygiftAdditemResponse.go deleted file mode 100644 index 328a04fc74..0000000000 --- a/model/wdk/AlibabaWdkMarketingItembuygiftAdditemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -增加买赠活动商品。【注意,此接口暂不支持并发!】 API返回值 -alibaba.wdk.marketing.itembuygift.additem - -增加买赠活动商品。【注意,此接口暂不支持并发!】 -*/ -type AlibabaWdkMarketingItembuygiftAdditemAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItembuygiftAdditemResponse -} - -// 增加买赠活动商品。【注意,此接口暂不支持并发!】 成功返回结果 -type AlibabaWdkMarketingItembuygiftAdditemResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itembuygift_additem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品报名活动的返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItembuygiftCreateactivityAPIRequest.go b/model/wdk/AlibabaWdkMarketingItembuygiftCreateactivityAPIRequest.go new file mode 100644 index 0000000000..7a50ee7cd7 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItembuygiftCreateactivityAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建买赠活动 API请求 +alibaba.wdk.marketing.itembuygift.createactivity + +创建买赠活动 +*/ +type AlibabaWdkMarketingItembuygiftCreateactivityAPIRequest struct { + model.Params + // 创建活动请求入参 + _param *ItemBuyGiftActivity +} + +// 初始化AlibabaWdkMarketingItembuygiftCreateactivityAPIRequest对象 +func NewAlibabaWdkMarketingItembuygiftCreateactivityRequest() *AlibabaWdkMarketingItembuygiftCreateactivityAPIRequest{ + return &AlibabaWdkMarketingItembuygiftCreateactivityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItembuygiftCreateactivityAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itembuygift.createactivity" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItembuygiftCreateactivityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 创建活动请求入参 +func (r *AlibabaWdkMarketingItembuygiftCreateactivityAPIRequest) SetParam(_param *ItemBuyGiftActivity) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkMarketingItembuygiftCreateactivityAPIRequest) GetParam() *ItemBuyGiftActivity { + return r._param +} diff --git a/model/wdk/AlibabaWdkMarketingItembuygiftCreateactivityAPIResponse.go b/model/wdk/AlibabaWdkMarketingItembuygiftCreateactivityAPIResponse.go new file mode 100644 index 0000000000..f946248f8e --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItembuygiftCreateactivityAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建买赠活动 API返回值 +alibaba.wdk.marketing.itembuygift.createactivity + +创建买赠活动 +*/ +type AlibabaWdkMarketingItembuygiftCreateactivityAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItembuygiftCreateactivityAPIResponseModel +} + +// 创建买赠活动 成功返回结果 +type AlibabaWdkMarketingItembuygiftCreateactivityAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itembuygift_createactivity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创建活动返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItembuygiftCreateactivityResponse.go b/model/wdk/AlibabaWdkMarketingItembuygiftCreateactivityResponse.go deleted file mode 100644 index 9157303c39..0000000000 --- a/model/wdk/AlibabaWdkMarketingItembuygiftCreateactivityResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建买赠活动 API返回值 -alibaba.wdk.marketing.itembuygift.createactivity - -创建买赠活动 -*/ -type AlibabaWdkMarketingItembuygiftCreateactivityAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItembuygiftCreateactivityResponse -} - -// 创建买赠活动 成功返回结果 -type AlibabaWdkMarketingItembuygiftCreateactivityResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itembuygift_createactivity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创建活动返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItembuygiftDeleteactivityAPIRequest.go b/model/wdk/AlibabaWdkMarketingItembuygiftDeleteactivityAPIRequest.go new file mode 100644 index 0000000000..64fa0a4a4c --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItembuygiftDeleteactivityAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除买赠活动 API请求 +alibaba.wdk.marketing.itembuygift.deleteactivity + +删除买赠活动 +*/ +type AlibabaWdkMarketingItembuygiftDeleteactivityAPIRequest struct { + model.Params + // 要删除的活动信息 + _param *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingItembuygiftDeleteactivityAPIRequest对象 +func NewAlibabaWdkMarketingItembuygiftDeleteactivityRequest() *AlibabaWdkMarketingItembuygiftDeleteactivityAPIRequest{ + return &AlibabaWdkMarketingItembuygiftDeleteactivityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItembuygiftDeleteactivityAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itembuygift.deleteactivity" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItembuygiftDeleteactivityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 要删除的活动信息 +func (r *AlibabaWdkMarketingItembuygiftDeleteactivityAPIRequest) SetParam(_param *CommonActivityParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkMarketingItembuygiftDeleteactivityAPIRequest) GetParam() *CommonActivityParam { + return r._param +} diff --git a/model/wdk/AlibabaWdkMarketingItembuygiftDeleteactivityAPIResponse.go b/model/wdk/AlibabaWdkMarketingItembuygiftDeleteactivityAPIResponse.go new file mode 100644 index 0000000000..23a1eb0e14 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItembuygiftDeleteactivityAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除买赠活动 API返回值 +alibaba.wdk.marketing.itembuygift.deleteactivity + +删除买赠活动 +*/ +type AlibabaWdkMarketingItembuygiftDeleteactivityAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItembuygiftDeleteactivityAPIResponseModel +} + +// 删除买赠活动 成功返回结果 +type AlibabaWdkMarketingItembuygiftDeleteactivityAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itembuygift_deleteactivity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 删除活动返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItembuygiftDeleteactivityResponse.go b/model/wdk/AlibabaWdkMarketingItembuygiftDeleteactivityResponse.go deleted file mode 100644 index 391d88f841..0000000000 --- a/model/wdk/AlibabaWdkMarketingItembuygiftDeleteactivityResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除买赠活动 API返回值 -alibaba.wdk.marketing.itembuygift.deleteactivity - -删除买赠活动 -*/ -type AlibabaWdkMarketingItembuygiftDeleteactivityAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItembuygiftDeleteactivityResponse -} - -// 删除买赠活动 成功返回结果 -type AlibabaWdkMarketingItembuygiftDeleteactivityResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itembuygift_deleteactivity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 删除活动返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItembuygiftQueryactivityAPIRequest.go b/model/wdk/AlibabaWdkMarketingItembuygiftQueryactivityAPIRequest.go new file mode 100644 index 0000000000..9a23ef2bcc --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItembuygiftQueryactivityAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询买赠活动 API请求 +alibaba.wdk.marketing.itembuygift.queryactivity + +查询买赠活动 +*/ +type AlibabaWdkMarketingItembuygiftQueryactivityAPIRequest struct { + model.Params + // 查询入参 + _param *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingItembuygiftQueryactivityAPIRequest对象 +func NewAlibabaWdkMarketingItembuygiftQueryactivityRequest() *AlibabaWdkMarketingItembuygiftQueryactivityAPIRequest{ + return &AlibabaWdkMarketingItembuygiftQueryactivityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItembuygiftQueryactivityAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itembuygift.queryactivity" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItembuygiftQueryactivityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 查询入参 +func (r *AlibabaWdkMarketingItembuygiftQueryactivityAPIRequest) SetParam(_param *CommonActivityParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkMarketingItembuygiftQueryactivityAPIRequest) GetParam() *CommonActivityParam { + return r._param +} diff --git a/model/wdk/AlibabaWdkMarketingItembuygiftQueryactivityAPIResponse.go b/model/wdk/AlibabaWdkMarketingItembuygiftQueryactivityAPIResponse.go new file mode 100644 index 0000000000..d264f9726c --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItembuygiftQueryactivityAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询买赠活动 API返回值 +alibaba.wdk.marketing.itembuygift.queryactivity + +查询买赠活动 +*/ +type AlibabaWdkMarketingItembuygiftQueryactivityAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItembuygiftQueryactivityAPIResponseModel +} + +// 查询买赠活动 成功返回结果 +type AlibabaWdkMarketingItembuygiftQueryactivityAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itembuygift_queryactivity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItembuygiftQueryactivityResponse.go b/model/wdk/AlibabaWdkMarketingItembuygiftQueryactivityResponse.go deleted file mode 100644 index bc4f34ec3d..0000000000 --- a/model/wdk/AlibabaWdkMarketingItembuygiftQueryactivityResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询买赠活动 API返回值 -alibaba.wdk.marketing.itembuygift.queryactivity - -查询买赠活动 -*/ -type AlibabaWdkMarketingItembuygiftQueryactivityAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItembuygiftQueryactivityResponse -} - -// 查询买赠活动 成功返回结果 -type AlibabaWdkMarketingItembuygiftQueryactivityResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itembuygift_queryactivity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItembuygiftQueryitemsAPIRequest.go b/model/wdk/AlibabaWdkMarketingItembuygiftQueryitemsAPIRequest.go new file mode 100644 index 0000000000..a0fa68da83 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItembuygiftQueryitemsAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询买赠活动下的商品 API请求 +alibaba.wdk.marketing.itembuygift.queryitems + +查询买赠活动下的商品 +*/ +type AlibabaWdkMarketingItembuygiftQueryitemsAPIRequest struct { + model.Params + // 查询入参 + _param *ActivitySkuQuery +} + +// 初始化AlibabaWdkMarketingItembuygiftQueryitemsAPIRequest对象 +func NewAlibabaWdkMarketingItembuygiftQueryitemsRequest() *AlibabaWdkMarketingItembuygiftQueryitemsAPIRequest{ + return &AlibabaWdkMarketingItembuygiftQueryitemsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItembuygiftQueryitemsAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itembuygift.queryitems" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItembuygiftQueryitemsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 查询入参 +func (r *AlibabaWdkMarketingItembuygiftQueryitemsAPIRequest) SetParam(_param *ActivitySkuQuery) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkMarketingItembuygiftQueryitemsAPIRequest) GetParam() *ActivitySkuQuery { + return r._param +} diff --git a/model/wdk/AlibabaWdkMarketingItembuygiftQueryitemsAPIResponse.go b/model/wdk/AlibabaWdkMarketingItembuygiftQueryitemsAPIResponse.go new file mode 100644 index 0000000000..af8d134b32 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItembuygiftQueryitemsAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询买赠活动下的商品 API返回值 +alibaba.wdk.marketing.itembuygift.queryitems + +查询买赠活动下的商品 +*/ +type AlibabaWdkMarketingItembuygiftQueryitemsAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItembuygiftQueryitemsAPIResponseModel +} + +// 查询买赠活动下的商品 成功返回结果 +type AlibabaWdkMarketingItembuygiftQueryitemsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itembuygift_queryitems_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询返回结果 + Result *MarketPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItembuygiftQueryitemsResponse.go b/model/wdk/AlibabaWdkMarketingItembuygiftQueryitemsResponse.go deleted file mode 100644 index 75f409f84b..0000000000 --- a/model/wdk/AlibabaWdkMarketingItembuygiftQueryitemsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询买赠活动下的商品 API返回值 -alibaba.wdk.marketing.itembuygift.queryitems - -查询买赠活动下的商品 -*/ -type AlibabaWdkMarketingItembuygiftQueryitemsAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItembuygiftQueryitemsResponse -} - -// 查询买赠活动下的商品 成功返回结果 -type AlibabaWdkMarketingItembuygiftQueryitemsResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itembuygift_queryitems_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询返回结果 - Result *MarketPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItembuygiftRemoveitemAPIRequest.go b/model/wdk/AlibabaWdkMarketingItembuygiftRemoveitemAPIRequest.go new file mode 100644 index 0000000000..5792b743e8 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItembuygiftRemoveitemAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +移除买赠活动下的商品。【注意,此接口暂不支持并发!】 API请求 +alibaba.wdk.marketing.itembuygift.removeitem + +移除买赠活动下的商品。【注意,此接口暂不支持并发!】 +*/ +type AlibabaWdkMarketingItembuygiftRemoveitemAPIRequest struct { + model.Params + // 商品对象 + _param0 *ItemBuyGiftSku + // 活动基本信息 + _param1 *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingItembuygiftRemoveitemAPIRequest对象 +func NewAlibabaWdkMarketingItembuygiftRemoveitemRequest() *AlibabaWdkMarketingItembuygiftRemoveitemAPIRequest{ + return &AlibabaWdkMarketingItembuygiftRemoveitemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItembuygiftRemoveitemAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itembuygift.removeitem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItembuygiftRemoveitemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 商品对象 +func (r *AlibabaWdkMarketingItembuygiftRemoveitemAPIRequest) SetParam0(_param0 *ItemBuyGiftSku) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingItembuygiftRemoveitemAPIRequest) GetParam0() *ItemBuyGiftSku { + return r._param0 +} +// Param1 Setter +// 活动基本信息 +func (r *AlibabaWdkMarketingItembuygiftRemoveitemAPIRequest) SetParam1(_param1 *CommonActivityParam) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaWdkMarketingItembuygiftRemoveitemAPIRequest) GetParam1() *CommonActivityParam { + return r._param1 +} diff --git a/model/wdk/AlibabaWdkMarketingItembuygiftRemoveitemAPIResponse.go b/model/wdk/AlibabaWdkMarketingItembuygiftRemoveitemAPIResponse.go new file mode 100644 index 0000000000..5a54c9e000 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItembuygiftRemoveitemAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +移除买赠活动下的商品。【注意,此接口暂不支持并发!】 API返回值 +alibaba.wdk.marketing.itembuygift.removeitem + +移除买赠活动下的商品。【注意,此接口暂不支持并发!】 +*/ +type AlibabaWdkMarketingItembuygiftRemoveitemAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItembuygiftRemoveitemAPIResponseModel +} + +// 移除买赠活动下的商品。【注意,此接口暂不支持并发!】 成功返回结果 +type AlibabaWdkMarketingItembuygiftRemoveitemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itembuygift_removeitem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 移除商品返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItembuygiftRemoveitemResponse.go b/model/wdk/AlibabaWdkMarketingItembuygiftRemoveitemResponse.go deleted file mode 100644 index 344eaab72d..0000000000 --- a/model/wdk/AlibabaWdkMarketingItembuygiftRemoveitemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -移除买赠活动下的商品。【注意,此接口暂不支持并发!】 API返回值 -alibaba.wdk.marketing.itembuygift.removeitem - -移除买赠活动下的商品。【注意,此接口暂不支持并发!】 -*/ -type AlibabaWdkMarketingItembuygiftRemoveitemAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItembuygiftRemoveitemResponse -} - -// 移除买赠活动下的商品。【注意,此接口暂不支持并发!】 成功返回结果 -type AlibabaWdkMarketingItembuygiftRemoveitemResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itembuygift_removeitem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 移除商品返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItemdiscountAdditemAPIRequest.go b/model/wdk/AlibabaWdkMarketingItemdiscountAdditemAPIRequest.go new file mode 100644 index 0000000000..f9c3d05f2d --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItemdiscountAdditemAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +报名特价商品 API请求 +alibaba.wdk.marketing.itemdiscount.additem + +在商品特价活动中报名特价商品 +*/ +type AlibabaWdkMarketingItemdiscountAdditemAPIRequest struct { + model.Params + // 商品对象 + _param0 *ItemDiscountSku + // 活动基本信息 + _param1 *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingItemdiscountAdditemAPIRequest对象 +func NewAlibabaWdkMarketingItemdiscountAdditemRequest() *AlibabaWdkMarketingItemdiscountAdditemAPIRequest{ + return &AlibabaWdkMarketingItemdiscountAdditemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItemdiscountAdditemAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itemdiscount.additem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItemdiscountAdditemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 商品对象 +func (r *AlibabaWdkMarketingItemdiscountAdditemAPIRequest) SetParam0(_param0 *ItemDiscountSku) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingItemdiscountAdditemAPIRequest) GetParam0() *ItemDiscountSku { + return r._param0 +} +// Param1 Setter +// 活动基本信息 +func (r *AlibabaWdkMarketingItemdiscountAdditemAPIRequest) SetParam1(_param1 *CommonActivityParam) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaWdkMarketingItemdiscountAdditemAPIRequest) GetParam1() *CommonActivityParam { + return r._param1 +} diff --git a/model/wdk/AlibabaWdkMarketingItemdiscountAdditemAPIResponse.go b/model/wdk/AlibabaWdkMarketingItemdiscountAdditemAPIResponse.go new file mode 100644 index 0000000000..11afabebe1 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItemdiscountAdditemAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +报名特价商品 API返回值 +alibaba.wdk.marketing.itemdiscount.additem + +在商品特价活动中报名特价商品 +*/ +type AlibabaWdkMarketingItemdiscountAdditemAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItemdiscountAdditemAPIResponseModel +} + +// 报名特价商品 成功返回结果 +type AlibabaWdkMarketingItemdiscountAdditemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itemdiscount_additem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品报名活动的返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItemdiscountAdditemResponse.go b/model/wdk/AlibabaWdkMarketingItemdiscountAdditemResponse.go deleted file mode 100644 index b76deb924c..0000000000 --- a/model/wdk/AlibabaWdkMarketingItemdiscountAdditemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -报名特价商品 API返回值 -alibaba.wdk.marketing.itemdiscount.additem - -在商品特价活动中报名特价商品 -*/ -type AlibabaWdkMarketingItemdiscountAdditemAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItemdiscountAdditemResponse -} - -// 报名特价商品 成功返回结果 -type AlibabaWdkMarketingItemdiscountAdditemResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itemdiscount_additem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品报名活动的返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItemdiscountCreateactivityAPIRequest.go b/model/wdk/AlibabaWdkMarketingItemdiscountCreateactivityAPIRequest.go new file mode 100644 index 0000000000..3548d21f56 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItemdiscountCreateactivityAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建商品特价活动 API请求 +alibaba.wdk.marketing.itemdiscount.createactivity + +创建商品特价活动 +*/ +type AlibabaWdkMarketingItemdiscountCreateactivityAPIRequest struct { + model.Params + // 创建活动请求入参 + _param *ItemDiscountActivityRequest +} + +// 初始化AlibabaWdkMarketingItemdiscountCreateactivityAPIRequest对象 +func NewAlibabaWdkMarketingItemdiscountCreateactivityRequest() *AlibabaWdkMarketingItemdiscountCreateactivityAPIRequest{ + return &AlibabaWdkMarketingItemdiscountCreateactivityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItemdiscountCreateactivityAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itemdiscount.createactivity" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItemdiscountCreateactivityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 创建活动请求入参 +func (r *AlibabaWdkMarketingItemdiscountCreateactivityAPIRequest) SetParam(_param *ItemDiscountActivityRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkMarketingItemdiscountCreateactivityAPIRequest) GetParam() *ItemDiscountActivityRequest { + return r._param +} diff --git a/model/wdk/AlibabaWdkMarketingItemdiscountCreateactivityAPIResponse.go b/model/wdk/AlibabaWdkMarketingItemdiscountCreateactivityAPIResponse.go new file mode 100644 index 0000000000..e05ccfe326 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItemdiscountCreateactivityAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建商品特价活动 API返回值 +alibaba.wdk.marketing.itemdiscount.createactivity + +创建商品特价活动 +*/ +type AlibabaWdkMarketingItemdiscountCreateactivityAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItemdiscountCreateactivityAPIResponseModel +} + +// 创建商品特价活动 成功返回结果 +type AlibabaWdkMarketingItemdiscountCreateactivityAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itemdiscount_createactivity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创建活动返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItemdiscountCreateactivityResponse.go b/model/wdk/AlibabaWdkMarketingItemdiscountCreateactivityResponse.go deleted file mode 100644 index cdf3323e5d..0000000000 --- a/model/wdk/AlibabaWdkMarketingItemdiscountCreateactivityResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建商品特价活动 API返回值 -alibaba.wdk.marketing.itemdiscount.createactivity - -创建商品特价活动 -*/ -type AlibabaWdkMarketingItemdiscountCreateactivityAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItemdiscountCreateactivityResponse -} - -// 创建商品特价活动 成功返回结果 -type AlibabaWdkMarketingItemdiscountCreateactivityResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itemdiscount_createactivity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创建活动返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItemdiscountDeleteactivityAPIRequest.go b/model/wdk/AlibabaWdkMarketingItemdiscountDeleteactivityAPIRequest.go new file mode 100644 index 0000000000..da1c72f5ae --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItemdiscountDeleteactivityAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除商品特价活动 API请求 +alibaba.wdk.marketing.itemdiscount.deleteactivity + +删除商品特价活动 +*/ +type AlibabaWdkMarketingItemdiscountDeleteactivityAPIRequest struct { + model.Params + // 需要删除的活动的信息 + _param *CommonActivityRequest +} + +// 初始化AlibabaWdkMarketingItemdiscountDeleteactivityAPIRequest对象 +func NewAlibabaWdkMarketingItemdiscountDeleteactivityRequest() *AlibabaWdkMarketingItemdiscountDeleteactivityAPIRequest{ + return &AlibabaWdkMarketingItemdiscountDeleteactivityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItemdiscountDeleteactivityAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itemdiscount.deleteactivity" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItemdiscountDeleteactivityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 需要删除的活动的信息 +func (r *AlibabaWdkMarketingItemdiscountDeleteactivityAPIRequest) SetParam(_param *CommonActivityRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkMarketingItemdiscountDeleteactivityAPIRequest) GetParam() *CommonActivityRequest { + return r._param +} diff --git a/model/wdk/AlibabaWdkMarketingItemdiscountDeleteactivityAPIResponse.go b/model/wdk/AlibabaWdkMarketingItemdiscountDeleteactivityAPIResponse.go new file mode 100644 index 0000000000..e57c5732e7 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItemdiscountDeleteactivityAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除商品特价活动 API返回值 +alibaba.wdk.marketing.itemdiscount.deleteactivity + +删除商品特价活动 +*/ +type AlibabaWdkMarketingItemdiscountDeleteactivityAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItemdiscountDeleteactivityAPIResponseModel +} + +// 删除商品特价活动 成功返回结果 +type AlibabaWdkMarketingItemdiscountDeleteactivityAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itemdiscount_deleteactivity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 删除活动返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItemdiscountDeleteactivityResponse.go b/model/wdk/AlibabaWdkMarketingItemdiscountDeleteactivityResponse.go deleted file mode 100644 index 803ee58999..0000000000 --- a/model/wdk/AlibabaWdkMarketingItemdiscountDeleteactivityResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除商品特价活动 API返回值 -alibaba.wdk.marketing.itemdiscount.deleteactivity - -删除商品特价活动 -*/ -type AlibabaWdkMarketingItemdiscountDeleteactivityAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItemdiscountDeleteactivityResponse -} - -// 删除商品特价活动 成功返回结果 -type AlibabaWdkMarketingItemdiscountDeleteactivityResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itemdiscount_deleteactivity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 删除活动返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItemdiscountQueryactivityAPIRequest.go b/model/wdk/AlibabaWdkMarketingItemdiscountQueryactivityAPIRequest.go new file mode 100644 index 0000000000..0c904f3dd4 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItemdiscountQueryactivityAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查找特价活动 API请求 +alibaba.wdk.marketing.itemdiscount.queryactivity + +查找特价活动 +*/ +type AlibabaWdkMarketingItemdiscountQueryactivityAPIRequest struct { + model.Params + // 商品对象 + _param0 *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingItemdiscountQueryactivityAPIRequest对象 +func NewAlibabaWdkMarketingItemdiscountQueryactivityRequest() *AlibabaWdkMarketingItemdiscountQueryactivityAPIRequest{ + return &AlibabaWdkMarketingItemdiscountQueryactivityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItemdiscountQueryactivityAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itemdiscount.queryactivity" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItemdiscountQueryactivityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 商品对象 +func (r *AlibabaWdkMarketingItemdiscountQueryactivityAPIRequest) SetParam0(_param0 *CommonActivityParam) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingItemdiscountQueryactivityAPIRequest) GetParam0() *CommonActivityParam { + return r._param0 +} diff --git a/model/wdk/AlibabaWdkMarketingItemdiscountQueryactivityAPIResponse.go b/model/wdk/AlibabaWdkMarketingItemdiscountQueryactivityAPIResponse.go new file mode 100644 index 0000000000..6bfa7f039f --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItemdiscountQueryactivityAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查找特价活动 API返回值 +alibaba.wdk.marketing.itemdiscount.queryactivity + +查找特价活动 +*/ +type AlibabaWdkMarketingItemdiscountQueryactivityAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItemdiscountQueryactivityAPIResponseModel +} + +// 查找特价活动 成功返回结果 +type AlibabaWdkMarketingItemdiscountQueryactivityAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itemdiscount_queryactivity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询特价活动返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItemdiscountQueryactivityResponse.go b/model/wdk/AlibabaWdkMarketingItemdiscountQueryactivityResponse.go deleted file mode 100644 index 50571d8a68..0000000000 --- a/model/wdk/AlibabaWdkMarketingItemdiscountQueryactivityResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查找特价活动 API返回值 -alibaba.wdk.marketing.itemdiscount.queryactivity - -查找特价活动 -*/ -type AlibabaWdkMarketingItemdiscountQueryactivityAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItemdiscountQueryactivityResponse -} - -// 查找特价活动 成功返回结果 -type AlibabaWdkMarketingItemdiscountQueryactivityResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itemdiscount_queryactivity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询特价活动返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItemdiscountQueryitemsAPIRequest.go b/model/wdk/AlibabaWdkMarketingItemdiscountQueryitemsAPIRequest.go new file mode 100644 index 0000000000..43bc085009 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItemdiscountQueryitemsAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询特价商品 API请求 +alibaba.wdk.marketing.itemdiscount.queryitems + +查询参加特价活动的商品优惠详情 +*/ +type AlibabaWdkMarketingItemdiscountQueryitemsAPIRequest struct { + model.Params + // 查询入参 + _param *ActivitySkuQuery +} + +// 初始化AlibabaWdkMarketingItemdiscountQueryitemsAPIRequest对象 +func NewAlibabaWdkMarketingItemdiscountQueryitemsRequest() *AlibabaWdkMarketingItemdiscountQueryitemsAPIRequest{ + return &AlibabaWdkMarketingItemdiscountQueryitemsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItemdiscountQueryitemsAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itemdiscount.queryitems" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItemdiscountQueryitemsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 查询入参 +func (r *AlibabaWdkMarketingItemdiscountQueryitemsAPIRequest) SetParam(_param *ActivitySkuQuery) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkMarketingItemdiscountQueryitemsAPIRequest) GetParam() *ActivitySkuQuery { + return r._param +} diff --git a/model/wdk/AlibabaWdkMarketingItemdiscountQueryitemsAPIResponse.go b/model/wdk/AlibabaWdkMarketingItemdiscountQueryitemsAPIResponse.go new file mode 100644 index 0000000000..4dacc63261 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItemdiscountQueryitemsAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询特价商品 API返回值 +alibaba.wdk.marketing.itemdiscount.queryitems + +查询参加特价活动的商品优惠详情 +*/ +type AlibabaWdkMarketingItemdiscountQueryitemsAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItemdiscountQueryitemsAPIResponseModel +} + +// 查询特价商品 成功返回结果 +type AlibabaWdkMarketingItemdiscountQueryitemsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itemdiscount_queryitems_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询返回结果 + Result *MarketPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItemdiscountQueryitemsResponse.go b/model/wdk/AlibabaWdkMarketingItemdiscountQueryitemsResponse.go deleted file mode 100644 index eb287f3339..0000000000 --- a/model/wdk/AlibabaWdkMarketingItemdiscountQueryitemsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询特价商品 API返回值 -alibaba.wdk.marketing.itemdiscount.queryitems - -查询参加特价活动的商品优惠详情 -*/ -type AlibabaWdkMarketingItemdiscountQueryitemsAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItemdiscountQueryitemsResponse -} - -// 查询特价商品 成功返回结果 -type AlibabaWdkMarketingItemdiscountQueryitemsResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itemdiscount_queryitems_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询返回结果 - Result *MarketPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItemdiscountRemoveitemAPIRequest.go b/model/wdk/AlibabaWdkMarketingItemdiscountRemoveitemAPIRequest.go new file mode 100644 index 0000000000..41122c15ed --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItemdiscountRemoveitemAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +移除报名的商品 API请求 +alibaba.wdk.marketing.itemdiscount.removeitem + +将报名特价活动的商品从特价活动中移除 +*/ +type AlibabaWdkMarketingItemdiscountRemoveitemAPIRequest struct { + model.Params + // 商品对象 + _param0 *ItemDiscountSku + // 活动基本信息 + _param1 *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingItemdiscountRemoveitemAPIRequest对象 +func NewAlibabaWdkMarketingItemdiscountRemoveitemRequest() *AlibabaWdkMarketingItemdiscountRemoveitemAPIRequest{ + return &AlibabaWdkMarketingItemdiscountRemoveitemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItemdiscountRemoveitemAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itemdiscount.removeitem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItemdiscountRemoveitemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 商品对象 +func (r *AlibabaWdkMarketingItemdiscountRemoveitemAPIRequest) SetParam0(_param0 *ItemDiscountSku) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingItemdiscountRemoveitemAPIRequest) GetParam0() *ItemDiscountSku { + return r._param0 +} +// Param1 Setter +// 活动基本信息 +func (r *AlibabaWdkMarketingItemdiscountRemoveitemAPIRequest) SetParam1(_param1 *CommonActivityParam) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaWdkMarketingItemdiscountRemoveitemAPIRequest) GetParam1() *CommonActivityParam { + return r._param1 +} diff --git a/model/wdk/AlibabaWdkMarketingItemdiscountRemoveitemAPIResponse.go b/model/wdk/AlibabaWdkMarketingItemdiscountRemoveitemAPIResponse.go new file mode 100644 index 0000000000..f728166719 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItemdiscountRemoveitemAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +移除报名的商品 API返回值 +alibaba.wdk.marketing.itemdiscount.removeitem + +将报名特价活动的商品从特价活动中移除 +*/ +type AlibabaWdkMarketingItemdiscountRemoveitemAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItemdiscountRemoveitemAPIResponseModel +} + +// 移除报名的商品 成功返回结果 +type AlibabaWdkMarketingItemdiscountRemoveitemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itemdiscount_removeitem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 移除商品返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItemdiscountRemoveitemResponse.go b/model/wdk/AlibabaWdkMarketingItemdiscountRemoveitemResponse.go deleted file mode 100644 index 569fef2a78..0000000000 --- a/model/wdk/AlibabaWdkMarketingItemdiscountRemoveitemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -移除报名的商品 API返回值 -alibaba.wdk.marketing.itemdiscount.removeitem - -将报名特价活动的商品从特价活动中移除 -*/ -type AlibabaWdkMarketingItemdiscountRemoveitemAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItemdiscountRemoveitemResponse -} - -// 移除报名的商品 成功返回结果 -type AlibabaWdkMarketingItemdiscountRemoveitemResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itemdiscount_removeitem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 移除商品返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItempoolActivityCreateAPIRequest.go b/model/wdk/AlibabaWdkMarketingItempoolActivityCreateAPIRequest.go new file mode 100644 index 0000000000..ece5db4b2d --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolActivityCreateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建活动新接口 API请求 +alibaba.wdk.marketing.itempool.activity.create + +创建活动新接口,支持新工具玩法 +*/ +type AlibabaWdkMarketingItempoolActivityCreateAPIRequest struct { + model.Params + // 创建活动请求入参 + _param *ItemPoolActivity +} + +// 初始化AlibabaWdkMarketingItempoolActivityCreateAPIRequest对象 +func NewAlibabaWdkMarketingItempoolActivityCreateRequest() *AlibabaWdkMarketingItempoolActivityCreateAPIRequest{ + return &AlibabaWdkMarketingItempoolActivityCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItempoolActivityCreateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itempool.activity.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItempoolActivityCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 创建活动请求入参 +func (r *AlibabaWdkMarketingItempoolActivityCreateAPIRequest) SetParam(_param *ItemPoolActivity) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkMarketingItempoolActivityCreateAPIRequest) GetParam() *ItemPoolActivity { + return r._param +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolActivityCreateAPIResponse.go b/model/wdk/AlibabaWdkMarketingItempoolActivityCreateAPIResponse.go new file mode 100644 index 0000000000..6f86142959 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolActivityCreateAPIResponse.go @@ -0,0 +1,33 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建活动新接口 API返回值 +alibaba.wdk.marketing.itempool.activity.create + +创建活动新接口,支持新工具玩法 +*/ +type AlibabaWdkMarketingItempoolActivityCreateAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItempoolActivityCreateAPIResponseModel +} + +// 创建活动新接口 成功返回结果 +type AlibabaWdkMarketingItempoolActivityCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_activity_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // errorCode + FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"` + // data + Data int64 `json:"data,omitempty" xml:"data,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolActivityCreateResponse.go b/model/wdk/AlibabaWdkMarketingItempoolActivityCreateResponse.go deleted file mode 100644 index dbaf9c8156..0000000000 --- a/model/wdk/AlibabaWdkMarketingItempoolActivityCreateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建活动新接口 API返回值 -alibaba.wdk.marketing.itempool.activity.create - -创建活动新接口,支持新工具玩法 -*/ -type AlibabaWdkMarketingItempoolActivityCreateAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItempoolActivityCreateResponse -} - -// 创建活动新接口 成功返回结果 -type AlibabaWdkMarketingItempoolActivityCreateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_activity_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // errorCode - FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"` - // data - Data int64 `json:"data,omitempty" xml:"data,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItempoolAddcategoryAPIRequest.go b/model/wdk/AlibabaWdkMarketingItempoolAddcategoryAPIRequest.go new file mode 100644 index 0000000000..d9c7870518 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolAddcategoryAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +增加商品池里面的类目 API请求 +alibaba.wdk.marketing.itempool.addcategory + +增加商品池里面的类目 +*/ +type AlibabaWdkMarketingItempoolAddcategoryAPIRequest struct { + model.Params + // 类目对象 + _itemPoolActivityCategory *ItemPoolActivityCategory + // 活动对象 + _commonActivityParam *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingItempoolAddcategoryAPIRequest对象 +func NewAlibabaWdkMarketingItempoolAddcategoryRequest() *AlibabaWdkMarketingItempoolAddcategoryAPIRequest{ + return &AlibabaWdkMarketingItempoolAddcategoryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItempoolAddcategoryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itempool.addcategory" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItempoolAddcategoryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemPoolActivityCategory Setter +// 类目对象 +func (r *AlibabaWdkMarketingItempoolAddcategoryAPIRequest) SetItemPoolActivityCategory(_itemPoolActivityCategory *ItemPoolActivityCategory) error { + r._itemPoolActivityCategory = _itemPoolActivityCategory + r.Set("item_pool_activity_category", _itemPoolActivityCategory) + return nil +} + +// ItemPoolActivityCategory Getter +func (r AlibabaWdkMarketingItempoolAddcategoryAPIRequest) GetItemPoolActivityCategory() *ItemPoolActivityCategory { + return r._itemPoolActivityCategory +} +// CommonActivityParam Setter +// 活动对象 +func (r *AlibabaWdkMarketingItempoolAddcategoryAPIRequest) SetCommonActivityParam(_commonActivityParam *CommonActivityParam) error { + r._commonActivityParam = _commonActivityParam + r.Set("common_activity_param", _commonActivityParam) + return nil +} + +// CommonActivityParam Getter +func (r AlibabaWdkMarketingItempoolAddcategoryAPIRequest) GetCommonActivityParam() *CommonActivityParam { + return r._commonActivityParam +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolAddcategoryAPIResponse.go b/model/wdk/AlibabaWdkMarketingItempoolAddcategoryAPIResponse.go new file mode 100644 index 0000000000..cd551d7c2c --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolAddcategoryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +增加商品池里面的类目 API返回值 +alibaba.wdk.marketing.itempool.addcategory + +增加商品池里面的类目 +*/ +type AlibabaWdkMarketingItempoolAddcategoryAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItempoolAddcategoryAPIResponseModel +} + +// 增加商品池里面的类目 成功返回结果 +type AlibabaWdkMarketingItempoolAddcategoryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_addcategory_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品报名活动的返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolAddcategoryResponse.go b/model/wdk/AlibabaWdkMarketingItempoolAddcategoryResponse.go deleted file mode 100644 index d0e87a6a96..0000000000 --- a/model/wdk/AlibabaWdkMarketingItempoolAddcategoryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -增加商品池里面的类目 API返回值 -alibaba.wdk.marketing.itempool.addcategory - -增加商品池里面的类目 -*/ -type AlibabaWdkMarketingItempoolAddcategoryAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItempoolAddcategoryResponse -} - -// 增加商品池里面的类目 成功返回结果 -type AlibabaWdkMarketingItempoolAddcategoryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_addcategory_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品报名活动的返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItempoolAdditemAPIRequest.go b/model/wdk/AlibabaWdkMarketingItempoolAdditemAPIRequest.go new file mode 100644 index 0000000000..9f209c69c3 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolAdditemAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +增加商品池里面的商品 API请求 +alibaba.wdk.marketing.itempool.additem + +增加商品池里面的商品 +*/ +type AlibabaWdkMarketingItempoolAdditemAPIRequest struct { + model.Params + // 商品对象 + _param0 *ItemPoolSku + // 活动基本信息 + _param1 *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingItempoolAdditemAPIRequest对象 +func NewAlibabaWdkMarketingItempoolAdditemRequest() *AlibabaWdkMarketingItempoolAdditemAPIRequest{ + return &AlibabaWdkMarketingItempoolAdditemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItempoolAdditemAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itempool.additem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItempoolAdditemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 商品对象 +func (r *AlibabaWdkMarketingItempoolAdditemAPIRequest) SetParam0(_param0 *ItemPoolSku) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingItempoolAdditemAPIRequest) GetParam0() *ItemPoolSku { + return r._param0 +} +// Param1 Setter +// 活动基本信息 +func (r *AlibabaWdkMarketingItempoolAdditemAPIRequest) SetParam1(_param1 *CommonActivityParam) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaWdkMarketingItempoolAdditemAPIRequest) GetParam1() *CommonActivityParam { + return r._param1 +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolAdditemAPIResponse.go b/model/wdk/AlibabaWdkMarketingItempoolAdditemAPIResponse.go new file mode 100644 index 0000000000..f036b1b922 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolAdditemAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +增加商品池里面的商品 API返回值 +alibaba.wdk.marketing.itempool.additem + +增加商品池里面的商品 +*/ +type AlibabaWdkMarketingItempoolAdditemAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItempoolAdditemAPIResponseModel +} + +// 增加商品池里面的商品 成功返回结果 +type AlibabaWdkMarketingItempoolAdditemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_additem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品报名活动的返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolAdditemResponse.go b/model/wdk/AlibabaWdkMarketingItempoolAdditemResponse.go deleted file mode 100644 index 197a192b4a..0000000000 --- a/model/wdk/AlibabaWdkMarketingItempoolAdditemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -增加商品池里面的商品 API返回值 -alibaba.wdk.marketing.itempool.additem - -增加商品池里面的商品 -*/ -type AlibabaWdkMarketingItempoolAdditemAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItempoolAdditemResponse -} - -// 增加商品池里面的商品 成功返回结果 -type AlibabaWdkMarketingItempoolAdditemResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_additem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品报名活动的返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItempoolCreateactivityAPIRequest.go b/model/wdk/AlibabaWdkMarketingItempoolCreateactivityAPIRequest.go new file mode 100644 index 0000000000..b6e3cbb8c4 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolCreateactivityAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加商品池活动 API请求 +alibaba.wdk.marketing.itempool.createactivity + +添加商品池活动 +*/ +type AlibabaWdkMarketingItempoolCreateactivityAPIRequest struct { + model.Params + // 创建活动请求入参 + _param *ItemPoolActivity +} + +// 初始化AlibabaWdkMarketingItempoolCreateactivityAPIRequest对象 +func NewAlibabaWdkMarketingItempoolCreateactivityRequest() *AlibabaWdkMarketingItempoolCreateactivityAPIRequest{ + return &AlibabaWdkMarketingItempoolCreateactivityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItempoolCreateactivityAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itempool.createactivity" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItempoolCreateactivityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 创建活动请求入参 +func (r *AlibabaWdkMarketingItempoolCreateactivityAPIRequest) SetParam(_param *ItemPoolActivity) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkMarketingItempoolCreateactivityAPIRequest) GetParam() *ItemPoolActivity { + return r._param +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolCreateactivityAPIResponse.go b/model/wdk/AlibabaWdkMarketingItempoolCreateactivityAPIResponse.go new file mode 100644 index 0000000000..b52eaaf524 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolCreateactivityAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加商品池活动 API返回值 +alibaba.wdk.marketing.itempool.createactivity + +添加商品池活动 +*/ +type AlibabaWdkMarketingItempoolCreateactivityAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItempoolCreateactivityAPIResponseModel +} + +// 添加商品池活动 成功返回结果 +type AlibabaWdkMarketingItempoolCreateactivityAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_createactivity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 创建活动返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolCreateactivityResponse.go b/model/wdk/AlibabaWdkMarketingItempoolCreateactivityResponse.go deleted file mode 100644 index 3e37f6bd3c..0000000000 --- a/model/wdk/AlibabaWdkMarketingItempoolCreateactivityResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加商品池活动 API返回值 -alibaba.wdk.marketing.itempool.createactivity - -添加商品池活动 -*/ -type AlibabaWdkMarketingItempoolCreateactivityAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItempoolCreateactivityResponse -} - -// 添加商品池活动 成功返回结果 -type AlibabaWdkMarketingItempoolCreateactivityResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_createactivity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 创建活动返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItempoolDeleteactivityAPIRequest.go b/model/wdk/AlibabaWdkMarketingItempoolDeleteactivityAPIRequest.go new file mode 100644 index 0000000000..0f0de2efba --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolDeleteactivityAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除商品池活动 API请求 +alibaba.wdk.marketing.itempool.deleteactivity + +删除商品池活动 +*/ +type AlibabaWdkMarketingItempoolDeleteactivityAPIRequest struct { + model.Params + // 需要删除的活动的信息 + _param *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingItempoolDeleteactivityAPIRequest对象 +func NewAlibabaWdkMarketingItempoolDeleteactivityRequest() *AlibabaWdkMarketingItempoolDeleteactivityAPIRequest{ + return &AlibabaWdkMarketingItempoolDeleteactivityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItempoolDeleteactivityAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itempool.deleteactivity" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItempoolDeleteactivityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 需要删除的活动的信息 +func (r *AlibabaWdkMarketingItempoolDeleteactivityAPIRequest) SetParam(_param *CommonActivityParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkMarketingItempoolDeleteactivityAPIRequest) GetParam() *CommonActivityParam { + return r._param +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolDeleteactivityAPIResponse.go b/model/wdk/AlibabaWdkMarketingItempoolDeleteactivityAPIResponse.go new file mode 100644 index 0000000000..d2c25c0f30 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolDeleteactivityAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除商品池活动 API返回值 +alibaba.wdk.marketing.itempool.deleteactivity + +删除商品池活动 +*/ +type AlibabaWdkMarketingItempoolDeleteactivityAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItempoolDeleteactivityAPIResponseModel +} + +// 删除商品池活动 成功返回结果 +type AlibabaWdkMarketingItempoolDeleteactivityAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_deleteactivity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 删除活动返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolDeleteactivityResponse.go b/model/wdk/AlibabaWdkMarketingItempoolDeleteactivityResponse.go deleted file mode 100644 index 1d17613005..0000000000 --- a/model/wdk/AlibabaWdkMarketingItempoolDeleteactivityResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除商品池活动 API返回值 -alibaba.wdk.marketing.itempool.deleteactivity - -删除商品池活动 -*/ -type AlibabaWdkMarketingItempoolDeleteactivityAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItempoolDeleteactivityResponse -} - -// 删除商品池活动 成功返回结果 -type AlibabaWdkMarketingItempoolDeleteactivityResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_deleteactivity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 删除活动返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItempoolExcludeskucodeAPIRequest.go b/model/wdk/AlibabaWdkMarketingItempoolExcludeskucodeAPIRequest.go new file mode 100644 index 0000000000..3874173973 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolExcludeskucodeAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品池排除商品【品类优惠使用】 API请求 +alibaba.wdk.marketing.itempool.excludeskucode + +品类优惠新增排除池 +*/ +type AlibabaWdkMarketingItempoolExcludeskucodeAPIRequest struct { + model.Params + // 商品对象 + _param0 *ItemPoolSku + // 活动基本信息 + _param1 *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingItempoolExcludeskucodeAPIRequest对象 +func NewAlibabaWdkMarketingItempoolExcludeskucodeRequest() *AlibabaWdkMarketingItempoolExcludeskucodeAPIRequest{ + return &AlibabaWdkMarketingItempoolExcludeskucodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItempoolExcludeskucodeAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itempool.excludeskucode" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItempoolExcludeskucodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 商品对象 +func (r *AlibabaWdkMarketingItempoolExcludeskucodeAPIRequest) SetParam0(_param0 *ItemPoolSku) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingItempoolExcludeskucodeAPIRequest) GetParam0() *ItemPoolSku { + return r._param0 +} +// Param1 Setter +// 活动基本信息 +func (r *AlibabaWdkMarketingItempoolExcludeskucodeAPIRequest) SetParam1(_param1 *CommonActivityParam) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaWdkMarketingItempoolExcludeskucodeAPIRequest) GetParam1() *CommonActivityParam { + return r._param1 +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolExcludeskucodeAPIResponse.go b/model/wdk/AlibabaWdkMarketingItempoolExcludeskucodeAPIResponse.go new file mode 100644 index 0000000000..6741113113 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolExcludeskucodeAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品池排除商品【品类优惠使用】 API返回值 +alibaba.wdk.marketing.itempool.excludeskucode + +品类优惠新增排除池 +*/ +type AlibabaWdkMarketingItempoolExcludeskucodeAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItempoolExcludeskucodeAPIResponseModel +} + +// 商品池排除商品【品类优惠使用】 成功返回结果 +type AlibabaWdkMarketingItempoolExcludeskucodeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_excludeskucode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品报名活动的返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolExcludeskucodeResponse.go b/model/wdk/AlibabaWdkMarketingItempoolExcludeskucodeResponse.go deleted file mode 100644 index d3da6c9ceb..0000000000 --- a/model/wdk/AlibabaWdkMarketingItempoolExcludeskucodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品池排除商品【品类优惠使用】 API返回值 -alibaba.wdk.marketing.itempool.excludeskucode - -品类优惠新增排除池 -*/ -type AlibabaWdkMarketingItempoolExcludeskucodeAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItempoolExcludeskucodeResponse -} - -// 商品池排除商品【品类优惠使用】 成功返回结果 -type AlibabaWdkMarketingItempoolExcludeskucodeResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_excludeskucode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品报名活动的返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItempoolItemAddAsyncAPIRequest.go b/model/wdk/AlibabaWdkMarketingItempoolItemAddAsyncAPIRequest.go new file mode 100644 index 0000000000..7c65fc48a2 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolItemAddAsyncAPIRequest.go @@ -0,0 +1,80 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品池新增商品 API请求 +alibaba.wdk.marketing.itempool.item.add.async + +新分组模型下新增商品 +*/ +type AlibabaWdkMarketingItempoolItemAddAsyncAPIRequest struct { + model.Params + // 阶梯商品信息 + _param0 []ItemPoolSku + // 系统自动生成 + _param1 *CommonActivityParam + // alibaba.wdk.marketing.version.generate接口生成 + _version int64 +} + +// 初始化AlibabaWdkMarketingItempoolItemAddAsyncAPIRequest对象 +func NewAlibabaWdkMarketingItempoolItemAddAsyncRequest() *AlibabaWdkMarketingItempoolItemAddAsyncAPIRequest{ + return &AlibabaWdkMarketingItempoolItemAddAsyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItempoolItemAddAsyncAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itempool.item.add.async" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItempoolItemAddAsyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 阶梯商品信息 +func (r *AlibabaWdkMarketingItempoolItemAddAsyncAPIRequest) SetParam0(_param0 []ItemPoolSku) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingItempoolItemAddAsyncAPIRequest) GetParam0() []ItemPoolSku { + return r._param0 +} +// Param1 Setter +// 系统自动生成 +func (r *AlibabaWdkMarketingItempoolItemAddAsyncAPIRequest) SetParam1(_param1 *CommonActivityParam) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaWdkMarketingItempoolItemAddAsyncAPIRequest) GetParam1() *CommonActivityParam { + return r._param1 +} +// Version Setter +// alibaba.wdk.marketing.version.generate接口生成 +func (r *AlibabaWdkMarketingItempoolItemAddAsyncAPIRequest) SetVersion(_version int64) error { + r._version = _version + r.Set("version", _version) + return nil +} + +// Version Getter +func (r AlibabaWdkMarketingItempoolItemAddAsyncAPIRequest) GetVersion() int64 { + return r._version +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolItemAddAsyncAPIResponse.go b/model/wdk/AlibabaWdkMarketingItempoolItemAddAsyncAPIResponse.go new file mode 100644 index 0000000000..fc91421566 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolItemAddAsyncAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品池新增商品 API返回值 +alibaba.wdk.marketing.itempool.item.add.async + +新分组模型下新增商品 +*/ +type AlibabaWdkMarketingItempoolItemAddAsyncAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItempoolItemAddAsyncAPIResponseModel +} + +// 商品池新增商品 成功返回结果 +type AlibabaWdkMarketingItempoolItemAddAsyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_item_add_async_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果信息 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolItemAddAsyncResponse.go b/model/wdk/AlibabaWdkMarketingItempoolItemAddAsyncResponse.go deleted file mode 100644 index 9358d910dd..0000000000 --- a/model/wdk/AlibabaWdkMarketingItempoolItemAddAsyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品池新增商品 API返回值 -alibaba.wdk.marketing.itempool.item.add.async - -新分组模型下新增商品 -*/ -type AlibabaWdkMarketingItempoolItemAddAsyncAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItempoolItemAddAsyncResponse -} - -// 商品池新增商品 成功返回结果 -type AlibabaWdkMarketingItempoolItemAddAsyncResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_item_add_async_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果信息 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItempoolItemRemoveAsyncAPIRequest.go b/model/wdk/AlibabaWdkMarketingItempoolItemRemoveAsyncAPIRequest.go new file mode 100644 index 0000000000..f0eea75ecc --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolItemRemoveAsyncAPIRequest.go @@ -0,0 +1,80 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品池删除商品 API请求 +alibaba.wdk.marketing.itempool.item.remove.async + +新模型下删除商品 +*/ +type AlibabaWdkMarketingItempoolItemRemoveAsyncAPIRequest struct { + model.Params + // sku信息 + _param0 []ItemPoolSku + // 活动信息 + _param1 *CommonActivityParam + // alibaba.wdk.marketing.version.generate接口生成 + _version int64 +} + +// 初始化AlibabaWdkMarketingItempoolItemRemoveAsyncAPIRequest对象 +func NewAlibabaWdkMarketingItempoolItemRemoveAsyncRequest() *AlibabaWdkMarketingItempoolItemRemoveAsyncAPIRequest{ + return &AlibabaWdkMarketingItempoolItemRemoveAsyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItempoolItemRemoveAsyncAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itempool.item.remove.async" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItempoolItemRemoveAsyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// sku信息 +func (r *AlibabaWdkMarketingItempoolItemRemoveAsyncAPIRequest) SetParam0(_param0 []ItemPoolSku) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingItempoolItemRemoveAsyncAPIRequest) GetParam0() []ItemPoolSku { + return r._param0 +} +// Param1 Setter +// 活动信息 +func (r *AlibabaWdkMarketingItempoolItemRemoveAsyncAPIRequest) SetParam1(_param1 *CommonActivityParam) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaWdkMarketingItempoolItemRemoveAsyncAPIRequest) GetParam1() *CommonActivityParam { + return r._param1 +} +// Version Setter +// alibaba.wdk.marketing.version.generate接口生成 +func (r *AlibabaWdkMarketingItempoolItemRemoveAsyncAPIRequest) SetVersion(_version int64) error { + r._version = _version + r.Set("version", _version) + return nil +} + +// Version Getter +func (r AlibabaWdkMarketingItempoolItemRemoveAsyncAPIRequest) GetVersion() int64 { + return r._version +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolItemRemoveAsyncAPIResponse.go b/model/wdk/AlibabaWdkMarketingItempoolItemRemoveAsyncAPIResponse.go new file mode 100644 index 0000000000..8a2c3e448f --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolItemRemoveAsyncAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品池删除商品 API返回值 +alibaba.wdk.marketing.itempool.item.remove.async + +新模型下删除商品 +*/ +type AlibabaWdkMarketingItempoolItemRemoveAsyncAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItempoolItemRemoveAsyncAPIResponseModel +} + +// 商品池删除商品 成功返回结果 +type AlibabaWdkMarketingItempoolItemRemoveAsyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_item_remove_async_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果信息 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolItemRemoveAsyncResponse.go b/model/wdk/AlibabaWdkMarketingItempoolItemRemoveAsyncResponse.go deleted file mode 100644 index 5ce8d8f31b..0000000000 --- a/model/wdk/AlibabaWdkMarketingItempoolItemRemoveAsyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品池删除商品 API返回值 -alibaba.wdk.marketing.itempool.item.remove.async - -新模型下删除商品 -*/ -type AlibabaWdkMarketingItempoolItemRemoveAsyncAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItempoolItemRemoveAsyncResponse -} - -// 商品池删除商品 成功返回结果 -type AlibabaWdkMarketingItempoolItemRemoveAsyncResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_item_remove_async_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果信息 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItempoolQueryactivityAPIRequest.go b/model/wdk/AlibabaWdkMarketingItempoolQueryactivityAPIRequest.go new file mode 100644 index 0000000000..956615106b --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolQueryactivityAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查找商品池活动 API请求 +alibaba.wdk.marketing.itempool.queryactivity + +查找商品池活动 +*/ +type AlibabaWdkMarketingItempoolQueryactivityAPIRequest struct { + model.Params + // 查询商品池活动入参 + _param0 *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingItempoolQueryactivityAPIRequest对象 +func NewAlibabaWdkMarketingItempoolQueryactivityRequest() *AlibabaWdkMarketingItempoolQueryactivityAPIRequest{ + return &AlibabaWdkMarketingItempoolQueryactivityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItempoolQueryactivityAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itempool.queryactivity" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItempoolQueryactivityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 查询商品池活动入参 +func (r *AlibabaWdkMarketingItempoolQueryactivityAPIRequest) SetParam0(_param0 *CommonActivityParam) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingItempoolQueryactivityAPIRequest) GetParam0() *CommonActivityParam { + return r._param0 +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolQueryactivityAPIResponse.go b/model/wdk/AlibabaWdkMarketingItempoolQueryactivityAPIResponse.go new file mode 100644 index 0000000000..4faebc6ee6 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolQueryactivityAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查找商品池活动 API返回值 +alibaba.wdk.marketing.itempool.queryactivity + +查找商品池活动 +*/ +type AlibabaWdkMarketingItempoolQueryactivityAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItempoolQueryactivityAPIResponseModel +} + +// 查找商品池活动 成功返回结果 +type AlibabaWdkMarketingItempoolQueryactivityAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_queryactivity_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolQueryactivityResponse.go b/model/wdk/AlibabaWdkMarketingItempoolQueryactivityResponse.go deleted file mode 100644 index ff2faecfb9..0000000000 --- a/model/wdk/AlibabaWdkMarketingItempoolQueryactivityResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查找商品池活动 API返回值 -alibaba.wdk.marketing.itempool.queryactivity - -查找商品池活动 -*/ -type AlibabaWdkMarketingItempoolQueryactivityAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItempoolQueryactivityResponse -} - -// 查找商品池活动 成功返回结果 -type AlibabaWdkMarketingItempoolQueryactivityResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_queryactivity_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItempoolQueryitemsAPIRequest.go b/model/wdk/AlibabaWdkMarketingItempoolQueryitemsAPIRequest.go new file mode 100644 index 0000000000..637d1b4270 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolQueryitemsAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品池活动下的商品 API请求 +alibaba.wdk.marketing.itempool.queryitems + +查询商品池活动下面的商品 +*/ +type AlibabaWdkMarketingItempoolQueryitemsAPIRequest struct { + model.Params + // 查询入参 + _param *ActivitySkuQuery +} + +// 初始化AlibabaWdkMarketingItempoolQueryitemsAPIRequest对象 +func NewAlibabaWdkMarketingItempoolQueryitemsRequest() *AlibabaWdkMarketingItempoolQueryitemsAPIRequest{ + return &AlibabaWdkMarketingItempoolQueryitemsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItempoolQueryitemsAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itempool.queryitems" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItempoolQueryitemsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 查询入参 +func (r *AlibabaWdkMarketingItempoolQueryitemsAPIRequest) SetParam(_param *ActivitySkuQuery) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkMarketingItempoolQueryitemsAPIRequest) GetParam() *ActivitySkuQuery { + return r._param +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolQueryitemsAPIResponse.go b/model/wdk/AlibabaWdkMarketingItempoolQueryitemsAPIResponse.go new file mode 100644 index 0000000000..763fe39c46 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolQueryitemsAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品池活动下的商品 API返回值 +alibaba.wdk.marketing.itempool.queryitems + +查询商品池活动下面的商品 +*/ +type AlibabaWdkMarketingItempoolQueryitemsAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItempoolQueryitemsAPIResponseModel +} + +// 查询商品池活动下的商品 成功返回结果 +type AlibabaWdkMarketingItempoolQueryitemsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_queryitems_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询返回结果 + Result *MarketPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolQueryitemsResponse.go b/model/wdk/AlibabaWdkMarketingItempoolQueryitemsResponse.go deleted file mode 100644 index ab5e09a19b..0000000000 --- a/model/wdk/AlibabaWdkMarketingItempoolQueryitemsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询商品池活动下的商品 API返回值 -alibaba.wdk.marketing.itempool.queryitems - -查询商品池活动下面的商品 -*/ -type AlibabaWdkMarketingItempoolQueryitemsAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItempoolQueryitemsResponse -} - -// 查询商品池活动下的商品 成功返回结果 -type AlibabaWdkMarketingItempoolQueryitemsResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_queryitems_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询返回结果 - Result *MarketPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItempoolRemoveitemAPIRequest.go b/model/wdk/AlibabaWdkMarketingItempoolRemoveitemAPIRequest.go new file mode 100644 index 0000000000..167d1eca2e --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolRemoveitemAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +移除商品池里面的商品 API请求 +alibaba.wdk.marketing.itempool.removeitem + +移除商品池里面的商品 +*/ +type AlibabaWdkMarketingItempoolRemoveitemAPIRequest struct { + model.Params + // 商品对象 + _param0 *ItemPoolSku + // 活动基本信息 + _param1 *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingItempoolRemoveitemAPIRequest对象 +func NewAlibabaWdkMarketingItempoolRemoveitemRequest() *AlibabaWdkMarketingItempoolRemoveitemAPIRequest{ + return &AlibabaWdkMarketingItempoolRemoveitemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItempoolRemoveitemAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itempool.removeitem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItempoolRemoveitemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 商品对象 +func (r *AlibabaWdkMarketingItempoolRemoveitemAPIRequest) SetParam0(_param0 *ItemPoolSku) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingItempoolRemoveitemAPIRequest) GetParam0() *ItemPoolSku { + return r._param0 +} +// Param1 Setter +// 活动基本信息 +func (r *AlibabaWdkMarketingItempoolRemoveitemAPIRequest) SetParam1(_param1 *CommonActivityParam) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaWdkMarketingItempoolRemoveitemAPIRequest) GetParam1() *CommonActivityParam { + return r._param1 +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolRemoveitemAPIResponse.go b/model/wdk/AlibabaWdkMarketingItempoolRemoveitemAPIResponse.go new file mode 100644 index 0000000000..6139f6538a --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolRemoveitemAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +移除商品池里面的商品 API返回值 +alibaba.wdk.marketing.itempool.removeitem + +移除商品池里面的商品 +*/ +type AlibabaWdkMarketingItempoolRemoveitemAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItempoolRemoveitemAPIResponseModel +} + +// 移除商品池里面的商品 成功返回结果 +type AlibabaWdkMarketingItempoolRemoveitemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_removeitem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 移除商品返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolRemoveitemResponse.go b/model/wdk/AlibabaWdkMarketingItempoolRemoveitemResponse.go deleted file mode 100644 index dcdc22bc5d..0000000000 --- a/model/wdk/AlibabaWdkMarketingItempoolRemoveitemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -移除商品池里面的商品 API返回值 -alibaba.wdk.marketing.itempool.removeitem - -移除商品池里面的商品 -*/ -type AlibabaWdkMarketingItempoolRemoveitemAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItempoolRemoveitemResponse -} - -// 移除商品池里面的商品 成功返回结果 -type AlibabaWdkMarketingItempoolRemoveitemResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_removeitem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 移除商品返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItempoolStairAdditemAPIRequest.go b/model/wdk/AlibabaWdkMarketingItempoolStairAdditemAPIRequest.go new file mode 100644 index 0000000000..537d7631e3 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolStairAdditemAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品池阶梯商品添加 API请求 +alibaba.wdk.marketing.itempool.stair.additem + +添加商品池阶梯商品 +*/ +type AlibabaWdkMarketingItempoolStairAdditemAPIRequest struct { + model.Params + // 系统自动生成 + _param0 *ItemPoolSku + // 系统自动生成 + _param1 *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingItempoolStairAdditemAPIRequest对象 +func NewAlibabaWdkMarketingItempoolStairAdditemRequest() *AlibabaWdkMarketingItempoolStairAdditemAPIRequest{ + return &AlibabaWdkMarketingItempoolStairAdditemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItempoolStairAdditemAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itempool.stair.additem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItempoolStairAdditemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 系统自动生成 +func (r *AlibabaWdkMarketingItempoolStairAdditemAPIRequest) SetParam0(_param0 *ItemPoolSku) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingItempoolStairAdditemAPIRequest) GetParam0() *ItemPoolSku { + return r._param0 +} +// Param1 Setter +// 系统自动生成 +func (r *AlibabaWdkMarketingItempoolStairAdditemAPIRequest) SetParam1(_param1 *CommonActivityParam) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaWdkMarketingItempoolStairAdditemAPIRequest) GetParam1() *CommonActivityParam { + return r._param1 +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolStairAdditemAPIResponse.go b/model/wdk/AlibabaWdkMarketingItempoolStairAdditemAPIResponse.go new file mode 100644 index 0000000000..2cac0384a3 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolStairAdditemAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品池阶梯商品添加 API返回值 +alibaba.wdk.marketing.itempool.stair.additem + +添加商品池阶梯商品 +*/ +type AlibabaWdkMarketingItempoolStairAdditemAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItempoolStairAdditemAPIResponseModel +} + +// 商品池阶梯商品添加 成功返回结果 +type AlibabaWdkMarketingItempoolStairAdditemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_stair_additem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 添加商品返回结果 + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolStairAdditemResponse.go b/model/wdk/AlibabaWdkMarketingItempoolStairAdditemResponse.go deleted file mode 100644 index ba9b44cb1a..0000000000 --- a/model/wdk/AlibabaWdkMarketingItempoolStairAdditemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品池阶梯商品添加 API返回值 -alibaba.wdk.marketing.itempool.stair.additem - -添加商品池阶梯商品 -*/ -type AlibabaWdkMarketingItempoolStairAdditemAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItempoolStairAdditemResponse -} - -// 商品池阶梯商品添加 成功返回结果 -type AlibabaWdkMarketingItempoolStairAdditemResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_stair_additem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 添加商品返回结果 - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItempoolStairQueryitemAPIRequest.go b/model/wdk/AlibabaWdkMarketingItempoolStairQueryitemAPIRequest.go new file mode 100644 index 0000000000..bdd591097e --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolStairQueryitemAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +换购商品查询 API请求 +alibaba.wdk.marketing.itempool.stair.queryitem + +换购商品查询 +*/ +type AlibabaWdkMarketingItempoolStairQueryitemAPIRequest struct { + model.Params + // 换购商品查询参数 + _param0 *ActivitySkuQuery +} + +// 初始化AlibabaWdkMarketingItempoolStairQueryitemAPIRequest对象 +func NewAlibabaWdkMarketingItempoolStairQueryitemRequest() *AlibabaWdkMarketingItempoolStairQueryitemAPIRequest{ + return &AlibabaWdkMarketingItempoolStairQueryitemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItempoolStairQueryitemAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itempool.stair.queryitem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItempoolStairQueryitemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 换购商品查询参数 +func (r *AlibabaWdkMarketingItempoolStairQueryitemAPIRequest) SetParam0(_param0 *ActivitySkuQuery) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingItempoolStairQueryitemAPIRequest) GetParam0() *ActivitySkuQuery { + return r._param0 +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolStairQueryitemAPIResponse.go b/model/wdk/AlibabaWdkMarketingItempoolStairQueryitemAPIResponse.go new file mode 100644 index 0000000000..92480352f6 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolStairQueryitemAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +换购商品查询 API返回值 +alibaba.wdk.marketing.itempool.stair.queryitem + +换购商品查询 +*/ +type AlibabaWdkMarketingItempoolStairQueryitemAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItempoolStairQueryitemAPIResponseModel +} + +// 换购商品查询 成功返回结果 +type AlibabaWdkMarketingItempoolStairQueryitemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_stair_queryitem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果 + Result *MarketPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolStairQueryitemResponse.go b/model/wdk/AlibabaWdkMarketingItempoolStairQueryitemResponse.go deleted file mode 100644 index e4f9e93040..0000000000 --- a/model/wdk/AlibabaWdkMarketingItempoolStairQueryitemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -换购商品查询 API返回值 -alibaba.wdk.marketing.itempool.stair.queryitem - -换购商品查询 -*/ -type AlibabaWdkMarketingItempoolStairQueryitemAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItempoolStairQueryitemResponse -} - -// 换购商品查询 成功返回结果 -type AlibabaWdkMarketingItempoolStairQueryitemResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_stair_queryitem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果 - Result *MarketPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest.go b/model/wdk/AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest.go new file mode 100644 index 0000000000..442a86b37b --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除换购活动商品 API请求 +alibaba.wdk.marketing.itempool.stair.removeitem + +删除换购商品 +*/ +type AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest struct { + model.Params + // 商品sku信息 + _param0 *ItemPoolSku + // 活动信息 + _param1 *CommonActivityParam +} + +// 初始化AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest对象 +func NewAlibabaWdkMarketingItempoolStairRemoveitemRequest() *AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest{ + return &AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.itempool.stair.removeitem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 商品sku信息 +func (r *AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest) SetParam0(_param0 *ItemPoolSku) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest) GetParam0() *ItemPoolSku { + return r._param0 +} +// Param1 Setter +// 活动信息 +func (r *AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest) SetParam1(_param1 *CommonActivityParam) error { + r._param1 = _param1 + r.Set("param1", _param1) + return nil +} + +// Param1 Getter +func (r AlibabaWdkMarketingItempoolStairRemoveitemAPIRequest) GetParam1() *CommonActivityParam { + return r._param1 +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolStairRemoveitemAPIResponse.go b/model/wdk/AlibabaWdkMarketingItempoolStairRemoveitemAPIResponse.go new file mode 100644 index 0000000000..2db3e18365 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingItempoolStairRemoveitemAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除换购活动商品 API返回值 +alibaba.wdk.marketing.itempool.stair.removeitem + +删除换购商品 +*/ +type AlibabaWdkMarketingItempoolStairRemoveitemAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingItempoolStairRemoveitemAPIResponseModel +} + +// 删除换购活动商品 成功返回结果 +type AlibabaWdkMarketingItempoolStairRemoveitemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_stair_removeitem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingItempoolStairRemoveitemResponse.go b/model/wdk/AlibabaWdkMarketingItempoolStairRemoveitemResponse.go deleted file mode 100644 index 0ef61e3b6e..0000000000 --- a/model/wdk/AlibabaWdkMarketingItempoolStairRemoveitemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除换购活动商品 API返回值 -alibaba.wdk.marketing.itempool.stair.removeitem - -删除换购商品 -*/ -type AlibabaWdkMarketingItempoolStairRemoveitemAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingItempoolStairRemoveitemResponse -} - -// 删除换购活动商品 成功返回结果 -type AlibabaWdkMarketingItempoolStairRemoveitemResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_itempool_stair_removeitem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIRequest.go b/model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIRequest.go new file mode 100644 index 0000000000..72c48ad4b0 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIRequest.go @@ -0,0 +1,94 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +营销商品数据同步 API请求 +alibaba.wdk.marketing.open.darunfa.activity.sku.sync + +大润发营销商品数据同步 +*/ +type AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIRequest struct { + model.Params + // 淘鲜达活动商品信息 + _activitySkuList []DrfTxdActivitySkuBo + // 数据版本Id + _versionId int64 + // 大润发活动Id + _activityId string + // 活动对应的门店Id + _shopId string +} + +// 初始化AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIRequest对象 +func NewAlibabaWdkMarketingOpenDarunfaActivitySkuSyncRequest() *AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIRequest{ + return &AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.open.darunfa.activity.sku.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivitySkuList Setter +// 淘鲜达活动商品信息 +func (r *AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIRequest) SetActivitySkuList(_activitySkuList []DrfTxdActivitySkuBo) error { + r._activitySkuList = _activitySkuList + r.Set("activity_sku_list", _activitySkuList) + return nil +} + +// ActivitySkuList Getter +func (r AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIRequest) GetActivitySkuList() []DrfTxdActivitySkuBo { + return r._activitySkuList +} +// VersionId Setter +// 数据版本Id +func (r *AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIRequest) SetVersionId(_versionId int64) error { + r._versionId = _versionId + r.Set("version_id", _versionId) + return nil +} + +// VersionId Getter +func (r AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIRequest) GetVersionId() int64 { + return r._versionId +} +// ActivityId Setter +// 大润发活动Id +func (r *AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIRequest) SetActivityId(_activityId string) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIRequest) GetActivityId() string { + return r._activityId +} +// ShopId Setter +// 活动对应的门店Id +func (r *AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIRequest) SetShopId(_shopId string) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIRequest) GetShopId() string { + return r._shopId +} diff --git a/model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIResponse.go b/model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIResponse.go new file mode 100644 index 0000000000..594ede0a8b --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +营销商品数据同步 API返回值 +alibaba.wdk.marketing.open.darunfa.activity.sku.sync + +大润发营销商品数据同步 +*/ +type AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIResponseModel +} + +// 营销商品数据同步 成功返回结果 +type AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_open_darunfa_activity_sku_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果信息 + Result *WdkMarketOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySkuSyncResponse.go b/model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySkuSyncResponse.go deleted file mode 100644 index aaf0716315..0000000000 --- a/model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySkuSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -营销商品数据同步 API返回值 -alibaba.wdk.marketing.open.darunfa.activity.sku.sync - -大润发营销商品数据同步 -*/ -type AlibabaWdkMarketingOpenDarunfaActivitySkuSyncAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingOpenDarunfaActivitySkuSyncResponse -} - -// 营销商品数据同步 成功返回结果 -type AlibabaWdkMarketingOpenDarunfaActivitySkuSyncResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_open_darunfa_activity_sku_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果信息 - Result *WdkMarketOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySyncAPIRequest.go b/model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySyncAPIRequest.go new file mode 100644 index 0000000000..b6dbee3e27 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySyncAPIRequest.go @@ -0,0 +1,80 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +活动数据同步 API请求 +alibaba.wdk.marketing.open.darunfa.activity.sync + +大润发活动数据同步 +*/ +type AlibabaWdkMarketingOpenDarunfaActivitySyncAPIRequest struct { + model.Params + // 大润发活动数据 + _activityList []DrfTxdActivityBo + // 门店Id + _shopId string + // 版本ID + _versionId int64 +} + +// 初始化AlibabaWdkMarketingOpenDarunfaActivitySyncAPIRequest对象 +func NewAlibabaWdkMarketingOpenDarunfaActivitySyncRequest() *AlibabaWdkMarketingOpenDarunfaActivitySyncAPIRequest{ + return &AlibabaWdkMarketingOpenDarunfaActivitySyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingOpenDarunfaActivitySyncAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.open.darunfa.activity.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingOpenDarunfaActivitySyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ActivityList Setter +// 大润发活动数据 +func (r *AlibabaWdkMarketingOpenDarunfaActivitySyncAPIRequest) SetActivityList(_activityList []DrfTxdActivityBo) error { + r._activityList = _activityList + r.Set("activity_list", _activityList) + return nil +} + +// ActivityList Getter +func (r AlibabaWdkMarketingOpenDarunfaActivitySyncAPIRequest) GetActivityList() []DrfTxdActivityBo { + return r._activityList +} +// ShopId Setter +// 门店Id +func (r *AlibabaWdkMarketingOpenDarunfaActivitySyncAPIRequest) SetShopId(_shopId string) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r AlibabaWdkMarketingOpenDarunfaActivitySyncAPIRequest) GetShopId() string { + return r._shopId +} +// VersionId Setter +// 版本ID +func (r *AlibabaWdkMarketingOpenDarunfaActivitySyncAPIRequest) SetVersionId(_versionId int64) error { + r._versionId = _versionId + r.Set("version_id", _versionId) + return nil +} + +// VersionId Getter +func (r AlibabaWdkMarketingOpenDarunfaActivitySyncAPIRequest) GetVersionId() int64 { + return r._versionId +} diff --git a/model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySyncAPIResponse.go b/model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySyncAPIResponse.go new file mode 100644 index 0000000000..5028a98cc7 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySyncAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +活动数据同步 API返回值 +alibaba.wdk.marketing.open.darunfa.activity.sync + +大润发活动数据同步 +*/ +type AlibabaWdkMarketingOpenDarunfaActivitySyncAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingOpenDarunfaActivitySyncAPIResponseModel +} + +// 活动数据同步 成功返回结果 +type AlibabaWdkMarketingOpenDarunfaActivitySyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_open_darunfa_activity_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果信息 + Result *WdkMarketOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySyncResponse.go b/model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySyncResponse.go deleted file mode 100644 index 1efe07e138..0000000000 --- a/model/wdk/AlibabaWdkMarketingOpenDarunfaActivitySyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -活动数据同步 API返回值 -alibaba.wdk.marketing.open.darunfa.activity.sync - -大润发活动数据同步 -*/ -type AlibabaWdkMarketingOpenDarunfaActivitySyncAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingOpenDarunfaActivitySyncResponse -} - -// 活动数据同步 成功返回结果 -type AlibabaWdkMarketingOpenDarunfaActivitySyncResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_open_darunfa_activity_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果信息 - Result *WdkMarketOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingOpenDataRelationQueryAPIRequest.go b/model/wdk/AlibabaWdkMarketingOpenDataRelationQueryAPIRequest.go new file mode 100644 index 0000000000..3059d9a1e4 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingOpenDataRelationQueryAPIRequest.go @@ -0,0 +1,80 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +数据关联关系查询 API请求 +alibaba.wdk.marketing.open.data.relation.query + +数据关联关系查询 +*/ +type AlibabaWdkMarketingOpenDataRelationQueryAPIRequest struct { + model.Params + // 外部数据Id + _outDataIds []string + // 数据类型:WDK_MARKET:五道口营销 + _bizCode string + // 数据子类型:ACTIVITY:营销活动数据 + _subBizCode string +} + +// 初始化AlibabaWdkMarketingOpenDataRelationQueryAPIRequest对象 +func NewAlibabaWdkMarketingOpenDataRelationQueryRequest() *AlibabaWdkMarketingOpenDataRelationQueryAPIRequest{ + return &AlibabaWdkMarketingOpenDataRelationQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingOpenDataRelationQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.open.data.relation.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingOpenDataRelationQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutDataIds Setter +// 外部数据Id +func (r *AlibabaWdkMarketingOpenDataRelationQueryAPIRequest) SetOutDataIds(_outDataIds []string) error { + r._outDataIds = _outDataIds + r.Set("out_data_ids", _outDataIds) + return nil +} + +// OutDataIds Getter +func (r AlibabaWdkMarketingOpenDataRelationQueryAPIRequest) GetOutDataIds() []string { + return r._outDataIds +} +// BizCode Setter +// 数据类型:WDK_MARKET:五道口营销 +func (r *AlibabaWdkMarketingOpenDataRelationQueryAPIRequest) SetBizCode(_bizCode string) error { + r._bizCode = _bizCode + r.Set("biz_code", _bizCode) + return nil +} + +// BizCode Getter +func (r AlibabaWdkMarketingOpenDataRelationQueryAPIRequest) GetBizCode() string { + return r._bizCode +} +// SubBizCode Setter +// 数据子类型:ACTIVITY:营销活动数据 +func (r *AlibabaWdkMarketingOpenDataRelationQueryAPIRequest) SetSubBizCode(_subBizCode string) error { + r._subBizCode = _subBizCode + r.Set("sub_biz_code", _subBizCode) + return nil +} + +// SubBizCode Getter +func (r AlibabaWdkMarketingOpenDataRelationQueryAPIRequest) GetSubBizCode() string { + return r._subBizCode +} diff --git a/model/wdk/AlibabaWdkMarketingOpenDataRelationQueryAPIResponse.go b/model/wdk/AlibabaWdkMarketingOpenDataRelationQueryAPIResponse.go new file mode 100644 index 0000000000..3cc87eec7e --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingOpenDataRelationQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +数据关联关系查询 API返回值 +alibaba.wdk.marketing.open.data.relation.query + +数据关联关系查询 +*/ +type AlibabaWdkMarketingOpenDataRelationQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingOpenDataRelationQueryAPIResponseModel +} + +// 数据关联关系查询 成功返回结果 +type AlibabaWdkMarketingOpenDataRelationQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_open_data_relation_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果信息 + Result *WdkMarketOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingOpenDataRelationQueryResponse.go b/model/wdk/AlibabaWdkMarketingOpenDataRelationQueryResponse.go deleted file mode 100644 index f87442dd14..0000000000 --- a/model/wdk/AlibabaWdkMarketingOpenDataRelationQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -数据关联关系查询 API返回值 -alibaba.wdk.marketing.open.data.relation.query - -数据关联关系查询 -*/ -type AlibabaWdkMarketingOpenDataRelationQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingOpenDataRelationQueryResponse -} - -// 数据关联关系查询 成功返回结果 -type AlibabaWdkMarketingOpenDataRelationQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_open_data_relation_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果信息 - Result *WdkMarketOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingOpenHeartbeatAPIRequest.go b/model/wdk/AlibabaWdkMarketingOpenHeartbeatAPIRequest.go new file mode 100644 index 0000000000..bc245369da --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingOpenHeartbeatAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +心跳服务【10s一次】 API请求 +alibaba.wdk.marketing.open.heartbeat + +商家数据同步心跳服务 +*/ +type AlibabaWdkMarketingOpenHeartbeatAPIRequest struct { + model.Params + // 心跳信息 + _heartBeat *HeartBeatBo +} + +// 初始化AlibabaWdkMarketingOpenHeartbeatAPIRequest对象 +func NewAlibabaWdkMarketingOpenHeartbeatRequest() *AlibabaWdkMarketingOpenHeartbeatAPIRequest{ + return &AlibabaWdkMarketingOpenHeartbeatAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingOpenHeartbeatAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.open.heartbeat" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingOpenHeartbeatAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// HeartBeat Setter +// 心跳信息 +func (r *AlibabaWdkMarketingOpenHeartbeatAPIRequest) SetHeartBeat(_heartBeat *HeartBeatBo) error { + r._heartBeat = _heartBeat + r.Set("heart_beat", _heartBeat) + return nil +} + +// HeartBeat Getter +func (r AlibabaWdkMarketingOpenHeartbeatAPIRequest) GetHeartBeat() *HeartBeatBo { + return r._heartBeat +} diff --git a/model/wdk/AlibabaWdkMarketingOpenHeartbeatAPIResponse.go b/model/wdk/AlibabaWdkMarketingOpenHeartbeatAPIResponse.go new file mode 100644 index 0000000000..5f231ef8d1 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingOpenHeartbeatAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +心跳服务【10s一次】 API返回值 +alibaba.wdk.marketing.open.heartbeat + +商家数据同步心跳服务 +*/ +type AlibabaWdkMarketingOpenHeartbeatAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingOpenHeartbeatAPIResponseModel +} + +// 心跳服务【10s一次】 成功返回结果 +type AlibabaWdkMarketingOpenHeartbeatAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_open_heartbeat_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果信息 + Result *WdkMarketOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingOpenHeartbeatResponse.go b/model/wdk/AlibabaWdkMarketingOpenHeartbeatResponse.go deleted file mode 100644 index 0fa0bdb964..0000000000 --- a/model/wdk/AlibabaWdkMarketingOpenHeartbeatResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -心跳服务【10s一次】 API返回值 -alibaba.wdk.marketing.open.heartbeat - -商家数据同步心跳服务 -*/ -type AlibabaWdkMarketingOpenHeartbeatAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingOpenHeartbeatResponse -} - -// 心跳服务【10s一次】 成功返回结果 -type AlibabaWdkMarketingOpenHeartbeatResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_open_heartbeat_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果信息 - Result *WdkMarketOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingOpenVersionApplyAPIRequest.go b/model/wdk/AlibabaWdkMarketingOpenVersionApplyAPIRequest.go new file mode 100644 index 0000000000..1c330ec431 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingOpenVersionApplyAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +数据同步版本号申请 API请求 +alibaba.wdk.marketing.open.version.apply + +数据同步版本号申请 +*/ +type AlibabaWdkMarketingOpenVersionApplyAPIRequest struct { + model.Params + // 同步版本信息 + _syncVersion *SyncVersionBo +} + +// 初始化AlibabaWdkMarketingOpenVersionApplyAPIRequest对象 +func NewAlibabaWdkMarketingOpenVersionApplyRequest() *AlibabaWdkMarketingOpenVersionApplyAPIRequest{ + return &AlibabaWdkMarketingOpenVersionApplyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingOpenVersionApplyAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.open.version.apply" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingOpenVersionApplyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SyncVersion Setter +// 同步版本信息 +func (r *AlibabaWdkMarketingOpenVersionApplyAPIRequest) SetSyncVersion(_syncVersion *SyncVersionBo) error { + r._syncVersion = _syncVersion + r.Set("sync_version", _syncVersion) + return nil +} + +// SyncVersion Getter +func (r AlibabaWdkMarketingOpenVersionApplyAPIRequest) GetSyncVersion() *SyncVersionBo { + return r._syncVersion +} diff --git a/model/wdk/AlibabaWdkMarketingOpenVersionApplyAPIResponse.go b/model/wdk/AlibabaWdkMarketingOpenVersionApplyAPIResponse.go new file mode 100644 index 0000000000..2c8c322d20 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingOpenVersionApplyAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +数据同步版本号申请 API返回值 +alibaba.wdk.marketing.open.version.apply + +数据同步版本号申请 +*/ +type AlibabaWdkMarketingOpenVersionApplyAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingOpenVersionApplyAPIResponseModel +} + +// 数据同步版本号申请 成功返回结果 +type AlibabaWdkMarketingOpenVersionApplyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_open_version_apply_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 版本号申请结果 + Result *WdkMarketOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingOpenVersionApplyResponse.go b/model/wdk/AlibabaWdkMarketingOpenVersionApplyResponse.go deleted file mode 100644 index 4914e754df..0000000000 --- a/model/wdk/AlibabaWdkMarketingOpenVersionApplyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -数据同步版本号申请 API返回值 -alibaba.wdk.marketing.open.version.apply - -数据同步版本号申请 -*/ -type AlibabaWdkMarketingOpenVersionApplyAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingOpenVersionApplyResponse -} - -// 数据同步版本号申请 成功返回结果 -type AlibabaWdkMarketingOpenVersionApplyResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_open_version_apply_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 版本号申请结果 - Result *WdkMarketOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingOpenVersionCountAPIRequest.go b/model/wdk/AlibabaWdkMarketingOpenVersionCountAPIRequest.go new file mode 100644 index 0000000000..5f6040be18 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingOpenVersionCountAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +版本数量查询 API请求 +alibaba.wdk.marketing.open.version.count + +版本数量查询 +*/ +type AlibabaWdkMarketingOpenVersionCountAPIRequest struct { + model.Params + // 查询版本号 + _versionId int64 + // 操作Id + _operateId string +} + +// 初始化AlibabaWdkMarketingOpenVersionCountAPIRequest对象 +func NewAlibabaWdkMarketingOpenVersionCountRequest() *AlibabaWdkMarketingOpenVersionCountAPIRequest{ + return &AlibabaWdkMarketingOpenVersionCountAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingOpenVersionCountAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.open.version.count" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingOpenVersionCountAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VersionId Setter +// 查询版本号 +func (r *AlibabaWdkMarketingOpenVersionCountAPIRequest) SetVersionId(_versionId int64) error { + r._versionId = _versionId + r.Set("version_id", _versionId) + return nil +} + +// VersionId Getter +func (r AlibabaWdkMarketingOpenVersionCountAPIRequest) GetVersionId() int64 { + return r._versionId +} +// OperateId Setter +// 操作Id +func (r *AlibabaWdkMarketingOpenVersionCountAPIRequest) SetOperateId(_operateId string) error { + r._operateId = _operateId + r.Set("operate_id", _operateId) + return nil +} + +// OperateId Getter +func (r AlibabaWdkMarketingOpenVersionCountAPIRequest) GetOperateId() string { + return r._operateId +} diff --git a/model/wdk/AlibabaWdkMarketingOpenVersionCountAPIResponse.go b/model/wdk/AlibabaWdkMarketingOpenVersionCountAPIResponse.go new file mode 100644 index 0000000000..2218323756 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingOpenVersionCountAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +版本数量查询 API返回值 +alibaba.wdk.marketing.open.version.count + +版本数量查询 +*/ +type AlibabaWdkMarketingOpenVersionCountAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingOpenVersionCountAPIResponseModel +} + +// 版本数量查询 成功返回结果 +type AlibabaWdkMarketingOpenVersionCountAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_open_version_count_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果 + Result *WdkMarketOpenResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingOpenVersionCountResponse.go b/model/wdk/AlibabaWdkMarketingOpenVersionCountResponse.go deleted file mode 100644 index 78e51f9fe2..0000000000 --- a/model/wdk/AlibabaWdkMarketingOpenVersionCountResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -版本数量查询 API返回值 -alibaba.wdk.marketing.open.version.count - -版本数量查询 -*/ -type AlibabaWdkMarketingOpenVersionCountAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingOpenVersionCountResponse -} - -// 版本数量查询 成功返回结果 -type AlibabaWdkMarketingOpenVersionCountResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_open_version_count_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果 - Result *WdkMarketOpenResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingPriceAPIRequest.go b/model/wdk/AlibabaWdkMarketingPriceAPIRequest.go new file mode 100644 index 0000000000..935b86cb94 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingPriceAPIRequest.go @@ -0,0 +1,122 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +促销价签服务 API请求 +alibaba.wdk.marketing.price + +获取营销-促销商品中的实时价格 +*/ +type AlibabaWdkMarketingPriceAPIRequest struct { + model.Params + // 单页大小 + _pageSize int64 + // 页码 + _pageIndex int64 + // 商品sku + _skuCodes []string + // 门店标识数组 + _shopIds []int64 + // 查询结束时间(sku_codes非空无效) + _endTime string + // 查询开始时间(sku_codes非空无效) + _beginTime string +} + +// 初始化AlibabaWdkMarketingPriceAPIRequest对象 +func NewAlibabaWdkMarketingPriceRequest() *AlibabaWdkMarketingPriceAPIRequest{ + return &AlibabaWdkMarketingPriceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingPriceAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.price" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingPriceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageSize Setter +// 单页大小 +func (r *AlibabaWdkMarketingPriceAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaWdkMarketingPriceAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageIndex Setter +// 页码 +func (r *AlibabaWdkMarketingPriceAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r AlibabaWdkMarketingPriceAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} +// SkuCodes Setter +// 商品sku +func (r *AlibabaWdkMarketingPriceAPIRequest) SetSkuCodes(_skuCodes []string) error { + r._skuCodes = _skuCodes + r.Set("sku_codes", _skuCodes) + return nil +} + +// SkuCodes Getter +func (r AlibabaWdkMarketingPriceAPIRequest) GetSkuCodes() []string { + return r._skuCodes +} +// ShopIds Setter +// 门店标识数组 +func (r *AlibabaWdkMarketingPriceAPIRequest) SetShopIds(_shopIds []int64) error { + r._shopIds = _shopIds + r.Set("shop_ids", _shopIds) + return nil +} + +// ShopIds Getter +func (r AlibabaWdkMarketingPriceAPIRequest) GetShopIds() []int64 { + return r._shopIds +} +// EndTime Setter +// 查询结束时间(sku_codes非空无效) +func (r *AlibabaWdkMarketingPriceAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r AlibabaWdkMarketingPriceAPIRequest) GetEndTime() string { + return r._endTime +} +// BeginTime Setter +// 查询开始时间(sku_codes非空无效) +func (r *AlibabaWdkMarketingPriceAPIRequest) SetBeginTime(_beginTime string) error { + r._beginTime = _beginTime + r.Set("begin_time", _beginTime) + return nil +} + +// BeginTime Getter +func (r AlibabaWdkMarketingPriceAPIRequest) GetBeginTime() string { + return r._beginTime +} diff --git a/model/wdk/AlibabaWdkMarketingPriceAPIResponse.go b/model/wdk/AlibabaWdkMarketingPriceAPIResponse.go new file mode 100644 index 0000000000..72ee4b265e --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingPriceAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +促销价签服务 API返回值 +alibaba.wdk.marketing.price + +获取营销-促销商品中的实时价格 +*/ +type AlibabaWdkMarketingPriceAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingPriceAPIResponseModel +} + +// 促销价签服务 成功返回结果 +type AlibabaWdkMarketingPriceAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_price_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *PromotionPriceResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingPriceResponse.go b/model/wdk/AlibabaWdkMarketingPriceResponse.go deleted file mode 100644 index 96a7631d8b..0000000000 --- a/model/wdk/AlibabaWdkMarketingPriceResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -促销价签服务 API返回值 -alibaba.wdk.marketing.price - -获取营销-促销商品中的实时价格 -*/ -type AlibabaWdkMarketingPriceAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingPriceResponse -} - -// 促销价签服务 成功返回结果 -type AlibabaWdkMarketingPriceResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_price_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *PromotionPriceResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingVersionCommitAPIRequest.go b/model/wdk/AlibabaWdkMarketingVersionCommitAPIRequest.go new file mode 100644 index 0000000000..1e9160c552 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingVersionCommitAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提交版本号 API请求 +alibaba.wdk.marketing.version.commit + +提交版本号,标识结束此版本操作 +*/ +type AlibabaWdkMarketingVersionCommitAPIRequest struct { + model.Params + // 版本号提交参数 + _param *SeasonVersionCommitParam +} + +// 初始化AlibabaWdkMarketingVersionCommitAPIRequest对象 +func NewAlibabaWdkMarketingVersionCommitRequest() *AlibabaWdkMarketingVersionCommitAPIRequest{ + return &AlibabaWdkMarketingVersionCommitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingVersionCommitAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.version.commit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingVersionCommitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 版本号提交参数 +func (r *AlibabaWdkMarketingVersionCommitAPIRequest) SetParam(_param *SeasonVersionCommitParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkMarketingVersionCommitAPIRequest) GetParam() *SeasonVersionCommitParam { + return r._param +} diff --git a/model/wdk/AlibabaWdkMarketingVersionCommitAPIResponse.go b/model/wdk/AlibabaWdkMarketingVersionCommitAPIResponse.go new file mode 100644 index 0000000000..4fbb0ba456 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingVersionCommitAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提交版本号 API返回值 +alibaba.wdk.marketing.version.commit + +提交版本号,标识结束此版本操作 +*/ +type AlibabaWdkMarketingVersionCommitAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingVersionCommitAPIResponseModel +} + +// 提交版本号 成功返回结果 +type AlibabaWdkMarketingVersionCommitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_version_commit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingVersionCommitResponse.go b/model/wdk/AlibabaWdkMarketingVersionCommitResponse.go deleted file mode 100644 index 833a525d0e..0000000000 --- a/model/wdk/AlibabaWdkMarketingVersionCommitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提交版本号 API返回值 -alibaba.wdk.marketing.version.commit - -提交版本号,标识结束此版本操作 -*/ -type AlibabaWdkMarketingVersionCommitAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingVersionCommitResponse -} - -// 提交版本号 成功返回结果 -type AlibabaWdkMarketingVersionCommitResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_version_commit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMarketingVersionGenerateAPIRequest.go b/model/wdk/AlibabaWdkMarketingVersionGenerateAPIRequest.go new file mode 100644 index 0000000000..49541a3bd6 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingVersionGenerateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +生成发布使用的版本号 API请求 +alibaba.wdk.marketing.version.generate + +生成发布使用的版本号 +*/ +type AlibabaWdkMarketingVersionGenerateAPIRequest struct { + model.Params + // 档期版本号参数信息 + _param *SeasonVersionParam +} + +// 初始化AlibabaWdkMarketingVersionGenerateAPIRequest对象 +func NewAlibabaWdkMarketingVersionGenerateRequest() *AlibabaWdkMarketingVersionGenerateAPIRequest{ + return &AlibabaWdkMarketingVersionGenerateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMarketingVersionGenerateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.marketing.version.generate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMarketingVersionGenerateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 档期版本号参数信息 +func (r *AlibabaWdkMarketingVersionGenerateAPIRequest) SetParam(_param *SeasonVersionParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkMarketingVersionGenerateAPIRequest) GetParam() *SeasonVersionParam { + return r._param +} diff --git a/model/wdk/AlibabaWdkMarketingVersionGenerateAPIResponse.go b/model/wdk/AlibabaWdkMarketingVersionGenerateAPIResponse.go new file mode 100644 index 0000000000..4b2ee80bd7 --- /dev/null +++ b/model/wdk/AlibabaWdkMarketingVersionGenerateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +生成发布使用的版本号 API返回值 +alibaba.wdk.marketing.version.generate + +生成发布使用的版本号 +*/ +type AlibabaWdkMarketingVersionGenerateAPIResponse struct { + model.CommonResponse + AlibabaWdkMarketingVersionGenerateAPIResponseModel +} + +// 生成发布使用的版本号 成功返回结果 +type AlibabaWdkMarketingVersionGenerateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_marketing_version_generate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMarketingVersionGenerateResponse.go b/model/wdk/AlibabaWdkMarketingVersionGenerateResponse.go deleted file mode 100644 index 3546aa41fa..0000000000 --- a/model/wdk/AlibabaWdkMarketingVersionGenerateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -生成发布使用的版本号 API返回值 -alibaba.wdk.marketing.version.generate - -生成发布使用的版本号 -*/ -type AlibabaWdkMarketingVersionGenerateAPIResponse struct { - model.CommonResponse - AlibabaWdkMarketingVersionGenerateResponse -} - -// 生成发布使用的版本号 成功返回结果 -type AlibabaWdkMarketingVersionGenerateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_marketing_version_generate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *MarketResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMemberCardGetAPIRequest.go b/model/wdk/AlibabaWdkMemberCardGetAPIRequest.go new file mode 100644 index 0000000000..5c31f46179 --- /dev/null +++ b/model/wdk/AlibabaWdkMemberCardGetAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询会员卡信息 API请求 +alibaba.wdk.member.card.get + +根据会员卡查询会员信息 +*/ +type AlibabaWdkMemberCardGetAPIRequest struct { + model.Params + // 系统自动生成 + _memberQuery *MemberQueryRequest +} + +// 初始化AlibabaWdkMemberCardGetAPIRequest对象 +func NewAlibabaWdkMemberCardGetRequest() *AlibabaWdkMemberCardGetAPIRequest{ + return &AlibabaWdkMemberCardGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMemberCardGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.member.card.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMemberCardGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MemberQuery Setter +// 系统自动生成 +func (r *AlibabaWdkMemberCardGetAPIRequest) SetMemberQuery(_memberQuery *MemberQueryRequest) error { + r._memberQuery = _memberQuery + r.Set("member_query", _memberQuery) + return nil +} + +// MemberQuery Getter +func (r AlibabaWdkMemberCardGetAPIRequest) GetMemberQuery() *MemberQueryRequest { + return r._memberQuery +} diff --git a/model/wdk/AlibabaWdkMemberCardGetAPIResponse.go b/model/wdk/AlibabaWdkMemberCardGetAPIResponse.go new file mode 100644 index 0000000000..049cb03ef0 --- /dev/null +++ b/model/wdk/AlibabaWdkMemberCardGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询会员卡信息 API返回值 +alibaba.wdk.member.card.get + +根据会员卡查询会员信息 +*/ +type AlibabaWdkMemberCardGetAPIResponse struct { + model.CommonResponse + AlibabaWdkMemberCardGetAPIResponseModel +} + +// 查询会员卡信息 成功返回结果 +type AlibabaWdkMemberCardGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_member_card_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + ApiResult *AlibabaWdkMemberCardGetApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMemberCardGetResponse.go b/model/wdk/AlibabaWdkMemberCardGetResponse.go deleted file mode 100644 index 0d8de4d3f4..0000000000 --- a/model/wdk/AlibabaWdkMemberCardGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询会员卡信息 API返回值 -alibaba.wdk.member.card.get - -根据会员卡查询会员信息 -*/ -type AlibabaWdkMemberCardGetAPIResponse struct { - model.CommonResponse - AlibabaWdkMemberCardGetResponse -} - -// 查询会员卡信息 成功返回结果 -type AlibabaWdkMemberCardGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_member_card_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - ApiResult *AlibabaWdkMemberCardGetApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMemberQrcodeIdentifyAPIRequest.go b/model/wdk/AlibabaWdkMemberQrcodeIdentifyAPIRequest.go new file mode 100644 index 0000000000..be52f0019b --- /dev/null +++ b/model/wdk/AlibabaWdkMemberQrcodeIdentifyAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +扫码识别会员接口 API请求 +alibaba.wdk.member.qrcode.identify + +根据用户输入的付款码(支付宝、盒马、淘宝)、商家等信息,查询当前用户的基本信息及对应会员卡信息 +*/ +type AlibabaWdkMemberQrcodeIdentifyAPIRequest struct { + model.Params + // 付款码 + _qrCode string +} + +// 初始化AlibabaWdkMemberQrcodeIdentifyAPIRequest对象 +func NewAlibabaWdkMemberQrcodeIdentifyRequest() *AlibabaWdkMemberQrcodeIdentifyAPIRequest{ + return &AlibabaWdkMemberQrcodeIdentifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMemberQrcodeIdentifyAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.member.qrcode.identify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMemberQrcodeIdentifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QrCode Setter +// 付款码 +func (r *AlibabaWdkMemberQrcodeIdentifyAPIRequest) SetQrCode(_qrCode string) error { + r._qrCode = _qrCode + r.Set("qr_code", _qrCode) + return nil +} + +// QrCode Getter +func (r AlibabaWdkMemberQrcodeIdentifyAPIRequest) GetQrCode() string { + return r._qrCode +} diff --git a/model/wdk/AlibabaWdkMemberQrcodeIdentifyAPIResponse.go b/model/wdk/AlibabaWdkMemberQrcodeIdentifyAPIResponse.go new file mode 100644 index 0000000000..dbe18f6b1e --- /dev/null +++ b/model/wdk/AlibabaWdkMemberQrcodeIdentifyAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +扫码识别会员接口 API返回值 +alibaba.wdk.member.qrcode.identify + +根据用户输入的付款码(支付宝、盒马、淘宝)、商家等信息,查询当前用户的基本信息及对应会员卡信息 +*/ +type AlibabaWdkMemberQrcodeIdentifyAPIResponse struct { + model.CommonResponse + AlibabaWdkMemberQrcodeIdentifyAPIResponseModel +} + +// 扫码识别会员接口 成功返回结果 +type AlibabaWdkMemberQrcodeIdentifyAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_member_qrcode_identify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkMemberQrcodeIdentifyMtopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMemberQrcodeIdentifyResponse.go b/model/wdk/AlibabaWdkMemberQrcodeIdentifyResponse.go deleted file mode 100644 index 9a9aa712fd..0000000000 --- a/model/wdk/AlibabaWdkMemberQrcodeIdentifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -扫码识别会员接口 API返回值 -alibaba.wdk.member.qrcode.identify - -根据用户输入的付款码(支付宝、盒马、淘宝)、商家等信息,查询当前用户的基本信息及对应会员卡信息 -*/ -type AlibabaWdkMemberQrcodeIdentifyAPIResponse struct { - model.CommonResponse - AlibabaWdkMemberQrcodeIdentifyResponse -} - -// 扫码识别会员接口 成功返回结果 -type AlibabaWdkMemberQrcodeIdentifyResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_member_qrcode_identify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkMemberQrcodeIdentifyMtopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMerchantBrandQueryAPIRequest.go b/model/wdk/AlibabaWdkMerchantBrandQueryAPIRequest.go new file mode 100644 index 0000000000..af13135751 --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantBrandQueryAPIRequest.go @@ -0,0 +1,80 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌查询接口 API请求 +alibaba.wdk.merchant.brand.query + +三江erp对接时,提供品牌查询的接口 +*/ +type AlibabaWdkMerchantBrandQueryAPIRequest struct { + model.Params + // 关键词,不填就查全部 + _keyword string + // 可不填,默认0 + _offset int64 + // 可不填,默认2000 + _pageSize int64 +} + +// 初始化AlibabaWdkMerchantBrandQueryAPIRequest对象 +func NewAlibabaWdkMerchantBrandQueryRequest() *AlibabaWdkMerchantBrandQueryAPIRequest{ + return &AlibabaWdkMerchantBrandQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMerchantBrandQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.merchant.brand.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMerchantBrandQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Keyword Setter +// 关键词,不填就查全部 +func (r *AlibabaWdkMerchantBrandQueryAPIRequest) SetKeyword(_keyword string) error { + r._keyword = _keyword + r.Set("keyword", _keyword) + return nil +} + +// Keyword Getter +func (r AlibabaWdkMerchantBrandQueryAPIRequest) GetKeyword() string { + return r._keyword +} +// Offset Setter +// 可不填,默认0 +func (r *AlibabaWdkMerchantBrandQueryAPIRequest) SetOffset(_offset int64) error { + r._offset = _offset + r.Set("offset", _offset) + return nil +} + +// Offset Getter +func (r AlibabaWdkMerchantBrandQueryAPIRequest) GetOffset() int64 { + return r._offset +} +// PageSize Setter +// 可不填,默认2000 +func (r *AlibabaWdkMerchantBrandQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaWdkMerchantBrandQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/wdk/AlibabaWdkMerchantBrandQueryAPIResponse.go b/model/wdk/AlibabaWdkMerchantBrandQueryAPIResponse.go new file mode 100644 index 0000000000..f8beadfa4d --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantBrandQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌查询接口 API返回值 +alibaba.wdk.merchant.brand.query + +三江erp对接时,提供品牌查询的接口 +*/ +type AlibabaWdkMerchantBrandQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkMerchantBrandQueryAPIResponseModel +} + +// 品牌查询接口 成功返回结果 +type AlibabaWdkMerchantBrandQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_merchant_brand_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkMerchantBrandQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMerchantBrandQueryResponse.go b/model/wdk/AlibabaWdkMerchantBrandQueryResponse.go deleted file mode 100644 index cef689fd5c..0000000000 --- a/model/wdk/AlibabaWdkMerchantBrandQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -品牌查询接口 API返回值 -alibaba.wdk.merchant.brand.query - -三江erp对接时,提供品牌查询的接口 -*/ -type AlibabaWdkMerchantBrandQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkMerchantBrandQueryResponse -} - -// 品牌查询接口 成功返回结果 -type AlibabaWdkMerchantBrandQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_merchant_brand_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkMerchantBrandQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMerchantCategoryQueryAPIRequest.go b/model/wdk/AlibabaWdkMerchantCategoryQueryAPIRequest.go new file mode 100644 index 0000000000..26a785b2da --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantCategoryQueryAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +三江erp对接类目查询接口 API请求 +alibaba.wdk.merchant.category.query + +三江erp对接类目查询接口 +*/ +type AlibabaWdkMerchantCategoryQueryAPIRequest struct { + model.Params + // 搜索关键词,可不填就查全部 + _keyword string + // 类目起点,可不填从根目录开始查 + _rootCategoryCode string +} + +// 初始化AlibabaWdkMerchantCategoryQueryAPIRequest对象 +func NewAlibabaWdkMerchantCategoryQueryRequest() *AlibabaWdkMerchantCategoryQueryAPIRequest{ + return &AlibabaWdkMerchantCategoryQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMerchantCategoryQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.merchant.category.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMerchantCategoryQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Keyword Setter +// 搜索关键词,可不填就查全部 +func (r *AlibabaWdkMerchantCategoryQueryAPIRequest) SetKeyword(_keyword string) error { + r._keyword = _keyword + r.Set("keyword", _keyword) + return nil +} + +// Keyword Getter +func (r AlibabaWdkMerchantCategoryQueryAPIRequest) GetKeyword() string { + return r._keyword +} +// RootCategoryCode Setter +// 类目起点,可不填从根目录开始查 +func (r *AlibabaWdkMerchantCategoryQueryAPIRequest) SetRootCategoryCode(_rootCategoryCode string) error { + r._rootCategoryCode = _rootCategoryCode + r.Set("root_category_code", _rootCategoryCode) + return nil +} + +// RootCategoryCode Getter +func (r AlibabaWdkMerchantCategoryQueryAPIRequest) GetRootCategoryCode() string { + return r._rootCategoryCode +} diff --git a/model/wdk/AlibabaWdkMerchantCategoryQueryAPIResponse.go b/model/wdk/AlibabaWdkMerchantCategoryQueryAPIResponse.go new file mode 100644 index 0000000000..5a0d58e871 --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantCategoryQueryAPIResponse.go @@ -0,0 +1,33 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +三江erp对接类目查询接口 API返回值 +alibaba.wdk.merchant.category.query + +三江erp对接类目查询接口 +*/ +type AlibabaWdkMerchantCategoryQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkMerchantCategoryQueryAPIResponseModel +} + +// 三江erp对接类目查询接口 成功返回结果 +type AlibabaWdkMerchantCategoryQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_merchant_category_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + Suc bool `json:"suc,omitempty" xml:"suc,omitempty"` + // errorCode + Errorcode string `json:"errorcode,omitempty" xml:"errorcode,omitempty"` + // errorDesc + Errordesc string `json:"errordesc,omitempty" xml:"errordesc,omitempty"` + // result + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMerchantCategoryQueryResponse.go b/model/wdk/AlibabaWdkMerchantCategoryQueryResponse.go deleted file mode 100644 index 889df57d4c..0000000000 --- a/model/wdk/AlibabaWdkMerchantCategoryQueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -三江erp对接类目查询接口 API返回值 -alibaba.wdk.merchant.category.query - -三江erp对接类目查询接口 -*/ -type AlibabaWdkMerchantCategoryQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkMerchantCategoryQueryResponse -} - -// 三江erp对接类目查询接口 成功返回结果 -type AlibabaWdkMerchantCategoryQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_merchant_category_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - Suc bool `json:"suc,omitempty" xml:"suc,omitempty"` - // errorCode - Errorcode string `json:"errorcode,omitempty" xml:"errorcode,omitempty"` - // errorDesc - Errordesc string `json:"errordesc,omitempty" xml:"errordesc,omitempty"` - // result - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMerchantItemCreatedraftAPIRequest.go b/model/wdk/AlibabaWdkMerchantItemCreatedraftAPIRequest.go new file mode 100644 index 0000000000..f45b24720b --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantItemCreatedraftAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新建商品草稿 API请求 +alibaba.wdk.merchant.item.createdraft + +新建商品草稿erp接口 +*/ +type AlibabaWdkMerchantItemCreatedraftAPIRequest struct { + model.Params + // 商品信息json + _params string +} + +// 初始化AlibabaWdkMerchantItemCreatedraftAPIRequest对象 +func NewAlibabaWdkMerchantItemCreatedraftRequest() *AlibabaWdkMerchantItemCreatedraftAPIRequest{ + return &AlibabaWdkMerchantItemCreatedraftAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMerchantItemCreatedraftAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.merchant.item.createdraft" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMerchantItemCreatedraftAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Params Setter +// 商品信息json +func (r *AlibabaWdkMerchantItemCreatedraftAPIRequest) SetParams(_params string) error { + r._params = _params + r.Set("params", _params) + return nil +} + +// Params Getter +func (r AlibabaWdkMerchantItemCreatedraftAPIRequest) GetParams() string { + return r._params +} diff --git a/model/wdk/AlibabaWdkMerchantItemCreatedraftAPIResponse.go b/model/wdk/AlibabaWdkMerchantItemCreatedraftAPIResponse.go new file mode 100644 index 0000000000..abbe62de72 --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantItemCreatedraftAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新建商品草稿 API返回值 +alibaba.wdk.merchant.item.createdraft + +新建商品草稿erp接口 +*/ +type AlibabaWdkMerchantItemCreatedraftAPIResponse struct { + model.CommonResponse + AlibabaWdkMerchantItemCreatedraftAPIResponseModel +} + +// 新建商品草稿 成功返回结果 +type AlibabaWdkMerchantItemCreatedraftAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_merchant_item_createdraft_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkMerchantItemCreatedraftResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMerchantItemCreatedraftResponse.go b/model/wdk/AlibabaWdkMerchantItemCreatedraftResponse.go deleted file mode 100644 index bb55cddd1a..0000000000 --- a/model/wdk/AlibabaWdkMerchantItemCreatedraftResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新建商品草稿 API返回值 -alibaba.wdk.merchant.item.createdraft - -新建商品草稿erp接口 -*/ -type AlibabaWdkMerchantItemCreatedraftAPIResponse struct { - model.CommonResponse - AlibabaWdkMerchantItemCreatedraftResponse -} - -// 新建商品草稿 成功返回结果 -type AlibabaWdkMerchantItemCreatedraftResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_merchant_item_createdraft_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkMerchantItemCreatedraftResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMerchantItemQueryAPIRequest.go b/model/wdk/AlibabaWdkMerchantItemQueryAPIRequest.go new file mode 100644 index 0000000000..3adf8e02bf --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantItemQueryAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家商品查询 API请求 +alibaba.wdk.merchant.item.query + +商家商品查询 +*/ +type AlibabaWdkMerchantItemQueryAPIRequest struct { + model.Params + // 商品编码 + _skuCode string + // 商家编码 + _merchantCode string +} + +// 初始化AlibabaWdkMerchantItemQueryAPIRequest对象 +func NewAlibabaWdkMerchantItemQueryRequest() *AlibabaWdkMerchantItemQueryAPIRequest{ + return &AlibabaWdkMerchantItemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMerchantItemQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.merchant.item.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMerchantItemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkuCode Setter +// 商品编码 +func (r *AlibabaWdkMerchantItemQueryAPIRequest) SetSkuCode(_skuCode string) error { + r._skuCode = _skuCode + r.Set("sku_code", _skuCode) + return nil +} + +// SkuCode Getter +func (r AlibabaWdkMerchantItemQueryAPIRequest) GetSkuCode() string { + return r._skuCode +} +// MerchantCode Setter +// 商家编码 +func (r *AlibabaWdkMerchantItemQueryAPIRequest) SetMerchantCode(_merchantCode string) error { + r._merchantCode = _merchantCode + r.Set("merchant_code", _merchantCode) + return nil +} + +// MerchantCode Getter +func (r AlibabaWdkMerchantItemQueryAPIRequest) GetMerchantCode() string { + return r._merchantCode +} diff --git a/model/wdk/AlibabaWdkMerchantItemQueryAPIResponse.go b/model/wdk/AlibabaWdkMerchantItemQueryAPIResponse.go new file mode 100644 index 0000000000..b85e529657 --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantItemQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家商品查询 API返回值 +alibaba.wdk.merchant.item.query + +商家商品查询 +*/ +type AlibabaWdkMerchantItemQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkMerchantItemQueryAPIResponseModel +} + +// 商家商品查询 成功返回结果 +type AlibabaWdkMerchantItemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_merchant_item_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkMerchantItemQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMerchantItemQueryResponse.go b/model/wdk/AlibabaWdkMerchantItemQueryResponse.go deleted file mode 100644 index 290d1d2d8d..0000000000 --- a/model/wdk/AlibabaWdkMerchantItemQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家商品查询 API返回值 -alibaba.wdk.merchant.item.query - -商家商品查询 -*/ -type AlibabaWdkMerchantItemQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkMerchantItemQueryResponse -} - -// 商家商品查询 成功返回结果 -type AlibabaWdkMerchantItemQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_merchant_item_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkMerchantItemQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMerchantItemUpdateAPIRequest.go b/model/wdk/AlibabaWdkMerchantItemUpdateAPIRequest.go new file mode 100644 index 0000000000..a8017ec7d8 --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantItemUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改商家商品 API请求 +alibaba.wdk.merchant.item.update + +修改商家商品 +*/ +type AlibabaWdkMerchantItemUpdateAPIRequest struct { + model.Params + // 商品编码 + _skuCode string + // 门店编码 + _merchantCode string + // 修改字段的json + _params string +} + +// 初始化AlibabaWdkMerchantItemUpdateAPIRequest对象 +func NewAlibabaWdkMerchantItemUpdateRequest() *AlibabaWdkMerchantItemUpdateAPIRequest{ + return &AlibabaWdkMerchantItemUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMerchantItemUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.merchant.item.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMerchantItemUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkuCode Setter +// 商品编码 +func (r *AlibabaWdkMerchantItemUpdateAPIRequest) SetSkuCode(_skuCode string) error { + r._skuCode = _skuCode + r.Set("sku_code", _skuCode) + return nil +} + +// SkuCode Getter +func (r AlibabaWdkMerchantItemUpdateAPIRequest) GetSkuCode() string { + return r._skuCode +} +// MerchantCode Setter +// 门店编码 +func (r *AlibabaWdkMerchantItemUpdateAPIRequest) SetMerchantCode(_merchantCode string) error { + r._merchantCode = _merchantCode + r.Set("merchant_code", _merchantCode) + return nil +} + +// MerchantCode Getter +func (r AlibabaWdkMerchantItemUpdateAPIRequest) GetMerchantCode() string { + return r._merchantCode +} +// Params Setter +// 修改字段的json +func (r *AlibabaWdkMerchantItemUpdateAPIRequest) SetParams(_params string) error { + r._params = _params + r.Set("params", _params) + return nil +} + +// Params Getter +func (r AlibabaWdkMerchantItemUpdateAPIRequest) GetParams() string { + return r._params +} diff --git a/model/wdk/AlibabaWdkMerchantItemUpdateAPIResponse.go b/model/wdk/AlibabaWdkMerchantItemUpdateAPIResponse.go new file mode 100644 index 0000000000..dd67abc9c6 --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantItemUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改商家商品 API返回值 +alibaba.wdk.merchant.item.update + +修改商家商品 +*/ +type AlibabaWdkMerchantItemUpdateAPIResponse struct { + model.CommonResponse + AlibabaWdkMerchantItemUpdateAPIResponseModel +} + +// 修改商家商品 成功返回结果 +type AlibabaWdkMerchantItemUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_merchant_item_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkMerchantItemUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMerchantItemUpdateResponse.go b/model/wdk/AlibabaWdkMerchantItemUpdateResponse.go deleted file mode 100644 index 7903fbe3ac..0000000000 --- a/model/wdk/AlibabaWdkMerchantItemUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改商家商品 API返回值 -alibaba.wdk.merchant.item.update - -修改商家商品 -*/ -type AlibabaWdkMerchantItemUpdateAPIResponse struct { - model.CommonResponse - AlibabaWdkMerchantItemUpdateResponse -} - -// 修改商家商品 成功返回结果 -type AlibabaWdkMerchantItemUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_merchant_item_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkMerchantItemUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMerchantRoutingRegisterAPIRequest.go b/model/wdk/AlibabaWdkMerchantRoutingRegisterAPIRequest.go new file mode 100644 index 0000000000..6d44354312 --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantRoutingRegisterAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家注册更新路由信息 API请求 +alibaba.wdk.merchant.routing.register + +商家注册更新路由信息 +*/ +type AlibabaWdkMerchantRoutingRegisterAPIRequest struct { + model.Params + // 接口入参 + _merchantRoutingInfoRegister *MerchantRoutingInfoRegisterDo +} + +// 初始化AlibabaWdkMerchantRoutingRegisterAPIRequest对象 +func NewAlibabaWdkMerchantRoutingRegisterRequest() *AlibabaWdkMerchantRoutingRegisterAPIRequest{ + return &AlibabaWdkMerchantRoutingRegisterAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMerchantRoutingRegisterAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.merchant.routing.register" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMerchantRoutingRegisterAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MerchantRoutingInfoRegister Setter +// 接口入参 +func (r *AlibabaWdkMerchantRoutingRegisterAPIRequest) SetMerchantRoutingInfoRegister(_merchantRoutingInfoRegister *MerchantRoutingInfoRegisterDo) error { + r._merchantRoutingInfoRegister = _merchantRoutingInfoRegister + r.Set("merchant_routing_info_register", _merchantRoutingInfoRegister) + return nil +} + +// MerchantRoutingInfoRegister Getter +func (r AlibabaWdkMerchantRoutingRegisterAPIRequest) GetMerchantRoutingInfoRegister() *MerchantRoutingInfoRegisterDo { + return r._merchantRoutingInfoRegister +} diff --git a/model/wdk/AlibabaWdkMerchantRoutingRegisterAPIResponse.go b/model/wdk/AlibabaWdkMerchantRoutingRegisterAPIResponse.go new file mode 100644 index 0000000000..9544ed2494 --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantRoutingRegisterAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家注册更新路由信息 API返回值 +alibaba.wdk.merchant.routing.register + +商家注册更新路由信息 +*/ +type AlibabaWdkMerchantRoutingRegisterAPIResponse struct { + model.CommonResponse + AlibabaWdkMerchantRoutingRegisterAPIResponseModel +} + +// 商家注册更新路由信息 成功返回结果 +type AlibabaWdkMerchantRoutingRegisterAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_merchant_routing_register_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaWdkMerchantRoutingRegisterApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMerchantRoutingRegisterResponse.go b/model/wdk/AlibabaWdkMerchantRoutingRegisterResponse.go deleted file mode 100644 index 44da91b1a6..0000000000 --- a/model/wdk/AlibabaWdkMerchantRoutingRegisterResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家注册更新路由信息 API返回值 -alibaba.wdk.merchant.routing.register - -商家注册更新路由信息 -*/ -type AlibabaWdkMerchantRoutingRegisterAPIResponse struct { - model.CommonResponse - AlibabaWdkMerchantRoutingRegisterResponse -} - -// 商家注册更新路由信息 成功返回结果 -type AlibabaWdkMerchantRoutingRegisterResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_merchant_routing_register_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaWdkMerchantRoutingRegisterApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMerchantStoreitemCreateAPIRequest.go b/model/wdk/AlibabaWdkMerchantStoreitemCreateAPIRequest.go new file mode 100644 index 0000000000..5bbde27261 --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantStoreitemCreateAPIRequest.go @@ -0,0 +1,94 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新建门店商品 API请求 +alibaba.wdk.merchant.storeitem.create + +新建门店商品 +*/ +type AlibabaWdkMerchantStoreitemCreateAPIRequest struct { + model.Params + // 门店id + _storeId string + // 商品编码 + _skuCode string + // 商家编码 + _merchantCode string + // 新增门店商品参数,具体字段详见文档 + _params string +} + +// 初始化AlibabaWdkMerchantStoreitemCreateAPIRequest对象 +func NewAlibabaWdkMerchantStoreitemCreateRequest() *AlibabaWdkMerchantStoreitemCreateAPIRequest{ + return &AlibabaWdkMerchantStoreitemCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMerchantStoreitemCreateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.merchant.storeitem.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMerchantStoreitemCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店id +func (r *AlibabaWdkMerchantStoreitemCreateAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaWdkMerchantStoreitemCreateAPIRequest) GetStoreId() string { + return r._storeId +} +// SkuCode Setter +// 商品编码 +func (r *AlibabaWdkMerchantStoreitemCreateAPIRequest) SetSkuCode(_skuCode string) error { + r._skuCode = _skuCode + r.Set("sku_code", _skuCode) + return nil +} + +// SkuCode Getter +func (r AlibabaWdkMerchantStoreitemCreateAPIRequest) GetSkuCode() string { + return r._skuCode +} +// MerchantCode Setter +// 商家编码 +func (r *AlibabaWdkMerchantStoreitemCreateAPIRequest) SetMerchantCode(_merchantCode string) error { + r._merchantCode = _merchantCode + r.Set("merchant_code", _merchantCode) + return nil +} + +// MerchantCode Getter +func (r AlibabaWdkMerchantStoreitemCreateAPIRequest) GetMerchantCode() string { + return r._merchantCode +} +// Params Setter +// 新增门店商品参数,具体字段详见文档 +func (r *AlibabaWdkMerchantStoreitemCreateAPIRequest) SetParams(_params string) error { + r._params = _params + r.Set("params", _params) + return nil +} + +// Params Getter +func (r AlibabaWdkMerchantStoreitemCreateAPIRequest) GetParams() string { + return r._params +} diff --git a/model/wdk/AlibabaWdkMerchantStoreitemCreateAPIResponse.go b/model/wdk/AlibabaWdkMerchantStoreitemCreateAPIResponse.go new file mode 100644 index 0000000000..ad3e72e80a --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantStoreitemCreateAPIResponse.go @@ -0,0 +1,31 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新建门店商品 API返回值 +alibaba.wdk.merchant.storeitem.create + +新建门店商品 +*/ +type AlibabaWdkMerchantStoreitemCreateAPIResponse struct { + model.CommonResponse + AlibabaWdkMerchantStoreitemCreateAPIResponseModel +} + +// 新建门店商品 成功返回结果 +type AlibabaWdkMerchantStoreitemCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_merchant_storeitem_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + Suc bool `json:"suc,omitempty" xml:"suc,omitempty"` + // errorCode + Errorcode string `json:"errorcode,omitempty" xml:"errorcode,omitempty"` + // errorDesc + Errordesc string `json:"errordesc,omitempty" xml:"errordesc,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMerchantStoreitemCreateResponse.go b/model/wdk/AlibabaWdkMerchantStoreitemCreateResponse.go deleted file mode 100644 index e91394bb90..0000000000 --- a/model/wdk/AlibabaWdkMerchantStoreitemCreateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新建门店商品 API返回值 -alibaba.wdk.merchant.storeitem.create - -新建门店商品 -*/ -type AlibabaWdkMerchantStoreitemCreateAPIResponse struct { - model.CommonResponse - AlibabaWdkMerchantStoreitemCreateResponse -} - -// 新建门店商品 成功返回结果 -type AlibabaWdkMerchantStoreitemCreateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_merchant_storeitem_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - Suc bool `json:"suc,omitempty" xml:"suc,omitempty"` - // errorCode - Errorcode string `json:"errorcode,omitempty" xml:"errorcode,omitempty"` - // errorDesc - Errordesc string `json:"errordesc,omitempty" xml:"errordesc,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMerchantStoreitemQueryAPIRequest.go b/model/wdk/AlibabaWdkMerchantStoreitemQueryAPIRequest.go new file mode 100644 index 0000000000..cdf3b25151 --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantStoreitemQueryAPIRequest.go @@ -0,0 +1,80 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店商品信心查询 API请求 +alibaba.wdk.merchant.storeitem.query + +门店商品信心查询 +*/ +type AlibabaWdkMerchantStoreitemQueryAPIRequest struct { + model.Params + // 商品编码 + _skuCode string + // 商家编码 + _merchantCode string + // 门店编码 + _storeId string +} + +// 初始化AlibabaWdkMerchantStoreitemQueryAPIRequest对象 +func NewAlibabaWdkMerchantStoreitemQueryRequest() *AlibabaWdkMerchantStoreitemQueryAPIRequest{ + return &AlibabaWdkMerchantStoreitemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMerchantStoreitemQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.merchant.storeitem.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMerchantStoreitemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkuCode Setter +// 商品编码 +func (r *AlibabaWdkMerchantStoreitemQueryAPIRequest) SetSkuCode(_skuCode string) error { + r._skuCode = _skuCode + r.Set("sku_code", _skuCode) + return nil +} + +// SkuCode Getter +func (r AlibabaWdkMerchantStoreitemQueryAPIRequest) GetSkuCode() string { + return r._skuCode +} +// MerchantCode Setter +// 商家编码 +func (r *AlibabaWdkMerchantStoreitemQueryAPIRequest) SetMerchantCode(_merchantCode string) error { + r._merchantCode = _merchantCode + r.Set("merchant_code", _merchantCode) + return nil +} + +// MerchantCode Getter +func (r AlibabaWdkMerchantStoreitemQueryAPIRequest) GetMerchantCode() string { + return r._merchantCode +} +// StoreId Setter +// 门店编码 +func (r *AlibabaWdkMerchantStoreitemQueryAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaWdkMerchantStoreitemQueryAPIRequest) GetStoreId() string { + return r._storeId +} diff --git a/model/wdk/AlibabaWdkMerchantStoreitemQueryAPIResponse.go b/model/wdk/AlibabaWdkMerchantStoreitemQueryAPIResponse.go new file mode 100644 index 0000000000..8b3289b3c5 --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantStoreitemQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店商品信心查询 API返回值 +alibaba.wdk.merchant.storeitem.query + +门店商品信心查询 +*/ +type AlibabaWdkMerchantStoreitemQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkMerchantStoreitemQueryAPIResponseModel +} + +// 门店商品信心查询 成功返回结果 +type AlibabaWdkMerchantStoreitemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_merchant_storeitem_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkMerchantStoreitemQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMerchantStoreitemQueryResponse.go b/model/wdk/AlibabaWdkMerchantStoreitemQueryResponse.go deleted file mode 100644 index 3ac15251ea..0000000000 --- a/model/wdk/AlibabaWdkMerchantStoreitemQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店商品信心查询 API返回值 -alibaba.wdk.merchant.storeitem.query - -门店商品信心查询 -*/ -type AlibabaWdkMerchantStoreitemQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkMerchantStoreitemQueryResponse -} - -// 门店商品信心查询 成功返回结果 -type AlibabaWdkMerchantStoreitemQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_merchant_storeitem_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkMerchantStoreitemQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMerchantStoreitemUpdateAPIRequest.go b/model/wdk/AlibabaWdkMerchantStoreitemUpdateAPIRequest.go new file mode 100644 index 0000000000..63d551d80d --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantStoreitemUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改门店商品 API请求 +alibaba.wdk.merchant.storeitem.update + +修改门店商品 +*/ +type AlibabaWdkMerchantStoreitemUpdateAPIRequest struct { + model.Params + // 商品编码 + _skuCode string + // 商家编码 + _merchantCode string + // 门店编码 + _storeId string + // 修改参数的json + _params string +} + +// 初始化AlibabaWdkMerchantStoreitemUpdateAPIRequest对象 +func NewAlibabaWdkMerchantStoreitemUpdateRequest() *AlibabaWdkMerchantStoreitemUpdateAPIRequest{ + return &AlibabaWdkMerchantStoreitemUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMerchantStoreitemUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.merchant.storeitem.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMerchantStoreitemUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkuCode Setter +// 商品编码 +func (r *AlibabaWdkMerchantStoreitemUpdateAPIRequest) SetSkuCode(_skuCode string) error { + r._skuCode = _skuCode + r.Set("sku_code", _skuCode) + return nil +} + +// SkuCode Getter +func (r AlibabaWdkMerchantStoreitemUpdateAPIRequest) GetSkuCode() string { + return r._skuCode +} +// MerchantCode Setter +// 商家编码 +func (r *AlibabaWdkMerchantStoreitemUpdateAPIRequest) SetMerchantCode(_merchantCode string) error { + r._merchantCode = _merchantCode + r.Set("merchant_code", _merchantCode) + return nil +} + +// MerchantCode Getter +func (r AlibabaWdkMerchantStoreitemUpdateAPIRequest) GetMerchantCode() string { + return r._merchantCode +} +// StoreId Setter +// 门店编码 +func (r *AlibabaWdkMerchantStoreitemUpdateAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaWdkMerchantStoreitemUpdateAPIRequest) GetStoreId() string { + return r._storeId +} +// Params Setter +// 修改参数的json +func (r *AlibabaWdkMerchantStoreitemUpdateAPIRequest) SetParams(_params string) error { + r._params = _params + r.Set("params", _params) + return nil +} + +// Params Getter +func (r AlibabaWdkMerchantStoreitemUpdateAPIRequest) GetParams() string { + return r._params +} diff --git a/model/wdk/AlibabaWdkMerchantStoreitemUpdateAPIResponse.go b/model/wdk/AlibabaWdkMerchantStoreitemUpdateAPIResponse.go new file mode 100644 index 0000000000..5d98d9be9b --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantStoreitemUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改门店商品 API返回值 +alibaba.wdk.merchant.storeitem.update + +修改门店商品 +*/ +type AlibabaWdkMerchantStoreitemUpdateAPIResponse struct { + model.CommonResponse + AlibabaWdkMerchantStoreitemUpdateAPIResponseModel +} + +// 修改门店商品 成功返回结果 +type AlibabaWdkMerchantStoreitemUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_merchant_storeitem_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkMerchantStoreitemUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMerchantStoreitemUpdateResponse.go b/model/wdk/AlibabaWdkMerchantStoreitemUpdateResponse.go deleted file mode 100644 index 311e2d503e..0000000000 --- a/model/wdk/AlibabaWdkMerchantStoreitemUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改门店商品 API返回值 -alibaba.wdk.merchant.storeitem.update - -修改门店商品 -*/ -type AlibabaWdkMerchantStoreitemUpdateAPIResponse struct { - model.CommonResponse - AlibabaWdkMerchantStoreitemUpdateResponse -} - -// 修改门店商品 成功返回结果 -type AlibabaWdkMerchantStoreitemUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_merchant_storeitem_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkMerchantStoreitemUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkMerchantproductEditAPIRequest.go b/model/wdk/AlibabaWdkMerchantproductEditAPIRequest.go new file mode 100644 index 0000000000..01ee1ae97b --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantproductEditAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家产品服务-编辑产品 API请求 +alibaba.wdk.merchantproduct.edit + +商家产品服务-编辑产品 +*/ +type AlibabaWdkMerchantproductEditAPIRequest struct { + model.Params + // 产品编辑入参 + _req *MerchantProductRequest +} + +// 初始化AlibabaWdkMerchantproductEditAPIRequest对象 +func NewAlibabaWdkMerchantproductEditRequest() *AlibabaWdkMerchantproductEditAPIRequest{ + return &AlibabaWdkMerchantproductEditAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkMerchantproductEditAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.merchantproduct.edit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkMerchantproductEditAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Req Setter +// 产品编辑入参 +func (r *AlibabaWdkMerchantproductEditAPIRequest) SetReq(_req *MerchantProductRequest) error { + r._req = _req + r.Set("req", _req) + return nil +} + +// Req Getter +func (r AlibabaWdkMerchantproductEditAPIRequest) GetReq() *MerchantProductRequest { + return r._req +} diff --git a/model/wdk/AlibabaWdkMerchantproductEditAPIResponse.go b/model/wdk/AlibabaWdkMerchantproductEditAPIResponse.go new file mode 100644 index 0000000000..5d463fd617 --- /dev/null +++ b/model/wdk/AlibabaWdkMerchantproductEditAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家产品服务-编辑产品 API返回值 +alibaba.wdk.merchantproduct.edit + +商家产品服务-编辑产品 +*/ +type AlibabaWdkMerchantproductEditAPIResponse struct { + model.CommonResponse + AlibabaWdkMerchantproductEditAPIResponseModel +} + +// 商家产品服务-编辑产品 成功返回结果 +type AlibabaWdkMerchantproductEditAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_merchantproduct_edit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 产品编辑返回结果 + Result *AlibabaWdkMerchantproductEditApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkMerchantproductEditResponse.go b/model/wdk/AlibabaWdkMerchantproductEditResponse.go deleted file mode 100644 index 0fafb2b6de..0000000000 --- a/model/wdk/AlibabaWdkMerchantproductEditResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家产品服务-编辑产品 API返回值 -alibaba.wdk.merchantproduct.edit - -商家产品服务-编辑产品 -*/ -type AlibabaWdkMerchantproductEditAPIResponse struct { - model.CommonResponse - AlibabaWdkMerchantproductEditResponse -} - -// 商家产品服务-编辑产品 成功返回结果 -type AlibabaWdkMerchantproductEditResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_merchantproduct_edit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 产品编辑返回结果 - Result *AlibabaWdkMerchantproductEditApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkOldposOrderCreateAPIRequest.go b/model/wdk/AlibabaWdkOldposOrderCreateAPIRequest.go new file mode 100644 index 0000000000..5112574ee7 --- /dev/null +++ b/model/wdk/AlibabaWdkOldposOrderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘鲜达外部商户老pos机产生的订单同步进淘鲜达 API请求 +alibaba.wdk.oldpos.order.create + +淘鲜达外部商户老pos机产生的订单同步进淘鲜达 +*/ +type AlibabaWdkOldposOrderCreateAPIRequest struct { + model.Params + // 入参 + _posOrderCreateRequest *PosOrderCreateRequest +} + +// 初始化AlibabaWdkOldposOrderCreateAPIRequest对象 +func NewAlibabaWdkOldposOrderCreateRequest() *AlibabaWdkOldposOrderCreateAPIRequest{ + return &AlibabaWdkOldposOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkOldposOrderCreateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.oldpos.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkOldposOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PosOrderCreateRequest Setter +// 入参 +func (r *AlibabaWdkOldposOrderCreateAPIRequest) SetPosOrderCreateRequest(_posOrderCreateRequest *PosOrderCreateRequest) error { + r._posOrderCreateRequest = _posOrderCreateRequest + r.Set("pos_order_create_request", _posOrderCreateRequest) + return nil +} + +// PosOrderCreateRequest Getter +func (r AlibabaWdkOldposOrderCreateAPIRequest) GetPosOrderCreateRequest() *PosOrderCreateRequest { + return r._posOrderCreateRequest +} diff --git a/model/wdk/AlibabaWdkOldposOrderCreateAPIResponse.go b/model/wdk/AlibabaWdkOldposOrderCreateAPIResponse.go new file mode 100644 index 0000000000..8a7c9ca732 --- /dev/null +++ b/model/wdk/AlibabaWdkOldposOrderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘鲜达外部商户老pos机产生的订单同步进淘鲜达 API返回值 +alibaba.wdk.oldpos.order.create + +淘鲜达外部商户老pos机产生的订单同步进淘鲜达 +*/ +type AlibabaWdkOldposOrderCreateAPIResponse struct { + model.CommonResponse + AlibabaWdkOldposOrderCreateAPIResponseModel +} + +// 淘鲜达外部商户老pos机产生的订单同步进淘鲜达 成功返回结果 +type AlibabaWdkOldposOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_oldpos_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *PosOrderCreateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkOldposOrderCreateResponse.go b/model/wdk/AlibabaWdkOldposOrderCreateResponse.go deleted file mode 100644 index 20491c140f..0000000000 --- a/model/wdk/AlibabaWdkOldposOrderCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘鲜达外部商户老pos机产生的订单同步进淘鲜达 API返回值 -alibaba.wdk.oldpos.order.create - -淘鲜达外部商户老pos机产生的订单同步进淘鲜达 -*/ -type AlibabaWdkOldposOrderCreateAPIResponse struct { - model.CommonResponse - AlibabaWdkOldposOrderCreateResponse -} - -// 淘鲜达外部商户老pos机产生的订单同步进淘鲜达 成功返回结果 -type AlibabaWdkOldposOrderCreateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_oldpos_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *PosOrderCreateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkOldposRefundCreateAPIRequest.go b/model/wdk/AlibabaWdkOldposRefundCreateAPIRequest.go new file mode 100644 index 0000000000..5ac6b0569e --- /dev/null +++ b/model/wdk/AlibabaWdkOldposRefundCreateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口外部商户老pos机产生的退款单同步进盒马 API请求 +alibaba.wdk.oldpos.refund.create + +淘鲜达外部商户老pos机产生的退款单同步进淘鲜达 +*/ +type AlibabaWdkOldposRefundCreateAPIRequest struct { + model.Params + // 入参 + _posRefundCreateRequest *PosRefundCreateRequest +} + +// 初始化AlibabaWdkOldposRefundCreateAPIRequest对象 +func NewAlibabaWdkOldposRefundCreateRequest() *AlibabaWdkOldposRefundCreateAPIRequest{ + return &AlibabaWdkOldposRefundCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkOldposRefundCreateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.oldpos.refund.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkOldposRefundCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PosRefundCreateRequest Setter +// 入参 +func (r *AlibabaWdkOldposRefundCreateAPIRequest) SetPosRefundCreateRequest(_posRefundCreateRequest *PosRefundCreateRequest) error { + r._posRefundCreateRequest = _posRefundCreateRequest + r.Set("pos_refund_create_request", _posRefundCreateRequest) + return nil +} + +// PosRefundCreateRequest Getter +func (r AlibabaWdkOldposRefundCreateAPIRequest) GetPosRefundCreateRequest() *PosRefundCreateRequest { + return r._posRefundCreateRequest +} diff --git a/model/wdk/AlibabaWdkOldposRefundCreateAPIResponse.go b/model/wdk/AlibabaWdkOldposRefundCreateAPIResponse.go new file mode 100644 index 0000000000..57b4ef1ef1 --- /dev/null +++ b/model/wdk/AlibabaWdkOldposRefundCreateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口外部商户老pos机产生的退款单同步进盒马 API返回值 +alibaba.wdk.oldpos.refund.create + +淘鲜达外部商户老pos机产生的退款单同步进淘鲜达 +*/ +type AlibabaWdkOldposRefundCreateAPIResponse struct { + model.CommonResponse + AlibabaWdkOldposRefundCreateAPIResponseModel +} + +// 五道口外部商户老pos机产生的退款单同步进盒马 成功返回结果 +type AlibabaWdkOldposRefundCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_oldpos_refund_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *PosRefundCreateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkOldposRefundCreateResponse.go b/model/wdk/AlibabaWdkOldposRefundCreateResponse.go deleted file mode 100644 index 0e2e461926..0000000000 --- a/model/wdk/AlibabaWdkOldposRefundCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -五道口外部商户老pos机产生的退款单同步进盒马 API返回值 -alibaba.wdk.oldpos.refund.create - -淘鲜达外部商户老pos机产生的退款单同步进淘鲜达 -*/ -type AlibabaWdkOldposRefundCreateAPIResponse struct { - model.CommonResponse - AlibabaWdkOldposRefundCreateResponse -} - -// 五道口外部商户老pos机产生的退款单同步进盒马 成功返回结果 -type AlibabaWdkOldposRefundCreateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_oldpos_refund_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *PosRefundCreateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkOrderAggregateAPIRequest.go b/model/wdk/AlibabaWdkOrderAggregateAPIRequest.go new file mode 100644 index 0000000000..2e9cf96e99 --- /dev/null +++ b/model/wdk/AlibabaWdkOrderAggregateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘鲜达订单按门店机台号聚合查询 API请求 +alibaba.wdk.order.aggregate + +淘鲜达订单按门店机台号聚合查询 +*/ +type AlibabaWdkOrderAggregateAPIRequest struct { + model.Params + // 系统自动生成 + _orderAggregateQueryRequest *OrderAggregateQueryRequest +} + +// 初始化AlibabaWdkOrderAggregateAPIRequest对象 +func NewAlibabaWdkOrderAggregateRequest() *AlibabaWdkOrderAggregateAPIRequest{ + return &AlibabaWdkOrderAggregateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkOrderAggregateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.order.aggregate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkOrderAggregateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderAggregateQueryRequest Setter +// 系统自动生成 +func (r *AlibabaWdkOrderAggregateAPIRequest) SetOrderAggregateQueryRequest(_orderAggregateQueryRequest *OrderAggregateQueryRequest) error { + r._orderAggregateQueryRequest = _orderAggregateQueryRequest + r.Set("order_aggregate_query_request", _orderAggregateQueryRequest) + return nil +} + +// OrderAggregateQueryRequest Getter +func (r AlibabaWdkOrderAggregateAPIRequest) GetOrderAggregateQueryRequest() *OrderAggregateQueryRequest { + return r._orderAggregateQueryRequest +} diff --git a/model/wdk/AlibabaWdkOrderAggregateAPIResponse.go b/model/wdk/AlibabaWdkOrderAggregateAPIResponse.go new file mode 100644 index 0000000000..c03214a43d --- /dev/null +++ b/model/wdk/AlibabaWdkOrderAggregateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘鲜达订单按门店机台号聚合查询 API返回值 +alibaba.wdk.order.aggregate + +淘鲜达订单按门店机台号聚合查询 +*/ +type AlibabaWdkOrderAggregateAPIResponse struct { + model.CommonResponse + AlibabaWdkOrderAggregateAPIResponseModel +} + +// 淘鲜达订单按门店机台号聚合查询 成功返回结果 +type AlibabaWdkOrderAggregateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_order_aggregate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *OrderAggregateQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkOrderAggregateResponse.go b/model/wdk/AlibabaWdkOrderAggregateResponse.go deleted file mode 100644 index 5e029ae1fd..0000000000 --- a/model/wdk/AlibabaWdkOrderAggregateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘鲜达订单按门店机台号聚合查询 API返回值 -alibaba.wdk.order.aggregate - -淘鲜达订单按门店机台号聚合查询 -*/ -type AlibabaWdkOrderAggregateAPIResponse struct { - model.CommonResponse - AlibabaWdkOrderAggregateResponse -} - -// 淘鲜达订单按门店机台号聚合查询 成功返回结果 -type AlibabaWdkOrderAggregateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_order_aggregate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *OrderAggregateQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkOrderFinanceBillQueryAPIRequest.go b/model/wdk/AlibabaWdkOrderFinanceBillQueryAPIRequest.go new file mode 100644 index 0000000000..8a644d6bfe --- /dev/null +++ b/model/wdk/AlibabaWdkOrderFinanceBillQueryAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +资金合规商家账单 API请求 +alibaba.wdk.order.finance.bill.query + +拉取资金合规商家账单 +*/ +type AlibabaWdkOrderFinanceBillQueryAPIRequest struct { + model.Params + // 入参 + _billQueryRequest *WdkOpenOrderFinanceBillQueryRequest +} + +// 初始化AlibabaWdkOrderFinanceBillQueryAPIRequest对象 +func NewAlibabaWdkOrderFinanceBillQueryRequest() *AlibabaWdkOrderFinanceBillQueryAPIRequest{ + return &AlibabaWdkOrderFinanceBillQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkOrderFinanceBillQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.order.finance.bill.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkOrderFinanceBillQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillQueryRequest Setter +// 入参 +func (r *AlibabaWdkOrderFinanceBillQueryAPIRequest) SetBillQueryRequest(_billQueryRequest *WdkOpenOrderFinanceBillQueryRequest) error { + r._billQueryRequest = _billQueryRequest + r.Set("bill_query_request", _billQueryRequest) + return nil +} + +// BillQueryRequest Getter +func (r AlibabaWdkOrderFinanceBillQueryAPIRequest) GetBillQueryRequest() *WdkOpenOrderFinanceBillQueryRequest { + return r._billQueryRequest +} diff --git a/model/wdk/AlibabaWdkOrderFinanceBillQueryAPIResponse.go b/model/wdk/AlibabaWdkOrderFinanceBillQueryAPIResponse.go new file mode 100644 index 0000000000..f6cede806f --- /dev/null +++ b/model/wdk/AlibabaWdkOrderFinanceBillQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +资金合规商家账单 API返回值 +alibaba.wdk.order.finance.bill.query + +拉取资金合规商家账单 +*/ +type AlibabaWdkOrderFinanceBillQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkOrderFinanceBillQueryAPIResponseModel +} + +// 资金合规商家账单 成功返回结果 +type AlibabaWdkOrderFinanceBillQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_order_finance_bill_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + Result *WdkOpenOrderFinanceBillQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkOrderFinanceBillQueryResponse.go b/model/wdk/AlibabaWdkOrderFinanceBillQueryResponse.go deleted file mode 100644 index ef67612774..0000000000 --- a/model/wdk/AlibabaWdkOrderFinanceBillQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -资金合规商家账单 API返回值 -alibaba.wdk.order.finance.bill.query - -拉取资金合规商家账单 -*/ -type AlibabaWdkOrderFinanceBillQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkOrderFinanceBillQueryResponse -} - -// 资金合规商家账单 成功返回结果 -type AlibabaWdkOrderFinanceBillQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_order_finance_bill_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - Result *WdkOpenOrderFinanceBillQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkOrderGetAPIRequest.go b/model/wdk/AlibabaWdkOrderGetAPIRequest.go new file mode 100644 index 0000000000..1b5d12fe80 --- /dev/null +++ b/model/wdk/AlibabaWdkOrderGetAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +交易订单详情查询 API请求 +alibaba.wdk.order.get + +五道口三江单据查询接口 +*/ +type AlibabaWdkOrderGetAPIRequest struct { + model.Params + // 系统自动生成 + _idListQueryReq *IdListQueryRequest +} + +// 初始化AlibabaWdkOrderGetAPIRequest对象 +func NewAlibabaWdkOrderGetRequest() *AlibabaWdkOrderGetAPIRequest{ + return &AlibabaWdkOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkOrderGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IdListQueryReq Setter +// 系统自动生成 +func (r *AlibabaWdkOrderGetAPIRequest) SetIdListQueryReq(_idListQueryReq *IdListQueryRequest) error { + r._idListQueryReq = _idListQueryReq + r.Set("id_list_query_req", _idListQueryReq) + return nil +} + +// IdListQueryReq Getter +func (r AlibabaWdkOrderGetAPIRequest) GetIdListQueryReq() *IdListQueryRequest { + return r._idListQueryReq +} diff --git a/model/wdk/AlibabaWdkOrderGetAPIResponse.go b/model/wdk/AlibabaWdkOrderGetAPIResponse.go new file mode 100644 index 0000000000..a533435a3d --- /dev/null +++ b/model/wdk/AlibabaWdkOrderGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +交易订单详情查询 API返回值 +alibaba.wdk.order.get + +五道口三江单据查询接口 +*/ +type AlibabaWdkOrderGetAPIResponse struct { + model.CommonResponse + AlibabaWdkOrderGetAPIResponseModel +} + +// 交易订单详情查询 成功返回结果 +type AlibabaWdkOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据 + Result *AlibabaWdkOrderGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkOrderGetResponse.go b/model/wdk/AlibabaWdkOrderGetResponse.go deleted file mode 100644 index 9ff4f4c0f7..0000000000 --- a/model/wdk/AlibabaWdkOrderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -交易订单详情查询 API返回值 -alibaba.wdk.order.get - -五道口三江单据查询接口 -*/ -type AlibabaWdkOrderGetAPIResponse struct { - model.CommonResponse - AlibabaWdkOrderGetResponse -} - -// 交易订单详情查询 成功返回结果 -type AlibabaWdkOrderGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据 - Result *AlibabaWdkOrderGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkOrderListAPIRequest.go b/model/wdk/AlibabaWdkOrderListAPIRequest.go new file mode 100644 index 0000000000..7b2fd0d66c --- /dev/null +++ b/model/wdk/AlibabaWdkOrderListAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口订单拉取 API请求 +alibaba.wdk.order.list + +五道口交易订单拉取接口 +*/ +type AlibabaWdkOrderListAPIRequest struct { + model.Params + // 查询参数 + _batchQueryRequest *BatchQueryRequest +} + +// 初始化AlibabaWdkOrderListAPIRequest对象 +func NewAlibabaWdkOrderListRequest() *AlibabaWdkOrderListAPIRequest{ + return &AlibabaWdkOrderListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkOrderListAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.order.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkOrderListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BatchQueryRequest Setter +// 查询参数 +func (r *AlibabaWdkOrderListAPIRequest) SetBatchQueryRequest(_batchQueryRequest *BatchQueryRequest) error { + r._batchQueryRequest = _batchQueryRequest + r.Set("batch_query_request", _batchQueryRequest) + return nil +} + +// BatchQueryRequest Getter +func (r AlibabaWdkOrderListAPIRequest) GetBatchQueryRequest() *BatchQueryRequest { + return r._batchQueryRequest +} diff --git a/model/wdk/AlibabaWdkOrderListAPIResponse.go b/model/wdk/AlibabaWdkOrderListAPIResponse.go new file mode 100644 index 0000000000..b30e46c818 --- /dev/null +++ b/model/wdk/AlibabaWdkOrderListAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口订单拉取 API返回值 +alibaba.wdk.order.list + +五道口交易订单拉取接口 +*/ +type AlibabaWdkOrderListAPIResponse struct { + model.CommonResponse + AlibabaWdkOrderListAPIResponseModel +} + +// 五道口订单拉取 成功返回结果 +type AlibabaWdkOrderListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_order_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据 + Result *AlibabaWdkOrderListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkOrderListResponse.go b/model/wdk/AlibabaWdkOrderListResponse.go deleted file mode 100644 index 68f8acacd2..0000000000 --- a/model/wdk/AlibabaWdkOrderListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -五道口订单拉取 API返回值 -alibaba.wdk.order.list - -五道口交易订单拉取接口 -*/ -type AlibabaWdkOrderListAPIResponse struct { - model.CommonResponse - AlibabaWdkOrderListResponse -} - -// 五道口订单拉取 成功返回结果 -type AlibabaWdkOrderListResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_order_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据 - Result *AlibabaWdkOrderListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkOrderRefundGetAPIRequest.go b/model/wdk/AlibabaWdkOrderRefundGetAPIRequest.go new file mode 100644 index 0000000000..64be3bb0eb --- /dev/null +++ b/model/wdk/AlibabaWdkOrderRefundGetAPIRequest.go @@ -0,0 +1,108 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口订单退款按ID查询 API请求 +alibaba.wdk.order.refund.get + +按照退款ID或者五道口中台订单ID查询退款信息详情 +*/ +type AlibabaWdkOrderRefundGetAPIRequest struct { + model.Params + // 五道口订单列表(子订单) + _bizOrderIds []int64 + // 退款订单列表 + _refundIds []int64 + // 渠道来源 3:饿了么 4:盒马 + _orderFrom int64 + // 渠道店id + _shopId string + // 经营店id + _storeId string +} + +// 初始化AlibabaWdkOrderRefundGetAPIRequest对象 +func NewAlibabaWdkOrderRefundGetRequest() *AlibabaWdkOrderRefundGetAPIRequest{ + return &AlibabaWdkOrderRefundGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkOrderRefundGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.order.refund.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkOrderRefundGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizOrderIds Setter +// 五道口订单列表(子订单) +func (r *AlibabaWdkOrderRefundGetAPIRequest) SetBizOrderIds(_bizOrderIds []int64) error { + r._bizOrderIds = _bizOrderIds + r.Set("biz_order_ids", _bizOrderIds) + return nil +} + +// BizOrderIds Getter +func (r AlibabaWdkOrderRefundGetAPIRequest) GetBizOrderIds() []int64 { + return r._bizOrderIds +} +// RefundIds Setter +// 退款订单列表 +func (r *AlibabaWdkOrderRefundGetAPIRequest) SetRefundIds(_refundIds []int64) error { + r._refundIds = _refundIds + r.Set("refund_ids", _refundIds) + return nil +} + +// RefundIds Getter +func (r AlibabaWdkOrderRefundGetAPIRequest) GetRefundIds() []int64 { + return r._refundIds +} +// OrderFrom Setter +// 渠道来源 3:饿了么 4:盒马 +func (r *AlibabaWdkOrderRefundGetAPIRequest) SetOrderFrom(_orderFrom int64) error { + r._orderFrom = _orderFrom + r.Set("order_from", _orderFrom) + return nil +} + +// OrderFrom Getter +func (r AlibabaWdkOrderRefundGetAPIRequest) GetOrderFrom() int64 { + return r._orderFrom +} +// ShopId Setter +// 渠道店id +func (r *AlibabaWdkOrderRefundGetAPIRequest) SetShopId(_shopId string) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r AlibabaWdkOrderRefundGetAPIRequest) GetShopId() string { + return r._shopId +} +// StoreId Setter +// 经营店id +func (r *AlibabaWdkOrderRefundGetAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaWdkOrderRefundGetAPIRequest) GetStoreId() string { + return r._storeId +} diff --git a/model/wdk/AlibabaWdkOrderRefundGetAPIResponse.go b/model/wdk/AlibabaWdkOrderRefundGetAPIResponse.go new file mode 100644 index 0000000000..1fce5a0ed1 --- /dev/null +++ b/model/wdk/AlibabaWdkOrderRefundGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口订单退款按ID查询 API返回值 +alibaba.wdk.order.refund.get + +按照退款ID或者五道口中台订单ID查询退款信息详情 +*/ +type AlibabaWdkOrderRefundGetAPIResponse struct { + model.CommonResponse + AlibabaWdkOrderRefundGetAPIResponseModel +} + +// 五道口订单退款按ID查询 成功返回结果 +type AlibabaWdkOrderRefundGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_order_refund_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *OrderSyncRefundListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkOrderRefundGetResponse.go b/model/wdk/AlibabaWdkOrderRefundGetResponse.go deleted file mode 100644 index 7cbd72bd3a..0000000000 --- a/model/wdk/AlibabaWdkOrderRefundGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -五道口订单退款按ID查询 API返回值 -alibaba.wdk.order.refund.get - -按照退款ID或者五道口中台订单ID查询退款信息详情 -*/ -type AlibabaWdkOrderRefundGetAPIResponse struct { - model.CommonResponse - AlibabaWdkOrderRefundGetResponse -} - -// 五道口订单退款按ID查询 成功返回结果 -type AlibabaWdkOrderRefundGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_order_refund_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *OrderSyncRefundListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkOrderRefundListAPIRequest.go b/model/wdk/AlibabaWdkOrderRefundListAPIRequest.go new file mode 100644 index 0000000000..5203bf2011 --- /dev/null +++ b/model/wdk/AlibabaWdkOrderRefundListAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口交易退款批量查询 API请求 +alibaba.wdk.order.refund.list + +按照条件查询退款数据 +*/ +type AlibabaWdkOrderRefundListAPIRequest struct { + model.Params + // 查询条件 + _batchQueryRefundRequest *BatchQueryRefundRequest +} + +// 初始化AlibabaWdkOrderRefundListAPIRequest对象 +func NewAlibabaWdkOrderRefundListRequest() *AlibabaWdkOrderRefundListAPIRequest{ + return &AlibabaWdkOrderRefundListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkOrderRefundListAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.order.refund.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkOrderRefundListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BatchQueryRefundRequest Setter +// 查询条件 +func (r *AlibabaWdkOrderRefundListAPIRequest) SetBatchQueryRefundRequest(_batchQueryRefundRequest *BatchQueryRefundRequest) error { + r._batchQueryRefundRequest = _batchQueryRefundRequest + r.Set("batch_query_refund_request", _batchQueryRefundRequest) + return nil +} + +// BatchQueryRefundRequest Getter +func (r AlibabaWdkOrderRefundListAPIRequest) GetBatchQueryRefundRequest() *BatchQueryRefundRequest { + return r._batchQueryRefundRequest +} diff --git a/model/wdk/AlibabaWdkOrderRefundListAPIResponse.go b/model/wdk/AlibabaWdkOrderRefundListAPIResponse.go new file mode 100644 index 0000000000..4320b9421a --- /dev/null +++ b/model/wdk/AlibabaWdkOrderRefundListAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口交易退款批量查询 API返回值 +alibaba.wdk.order.refund.list + +按照条件查询退款数据 +*/ +type AlibabaWdkOrderRefundListAPIResponse struct { + model.CommonResponse + AlibabaWdkOrderRefundListAPIResponseModel +} + +// 五道口交易退款批量查询 成功返回结果 +type AlibabaWdkOrderRefundListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_order_refund_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果内容 + Result *OrderSyncRefundListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkOrderRefundListResponse.go b/model/wdk/AlibabaWdkOrderRefundListResponse.go deleted file mode 100644 index 8076953305..0000000000 --- a/model/wdk/AlibabaWdkOrderRefundListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -五道口交易退款批量查询 API返回值 -alibaba.wdk.order.refund.list - -按照条件查询退款数据 -*/ -type AlibabaWdkOrderRefundListAPIResponse struct { - model.CommonResponse - AlibabaWdkOrderRefundListResponse -} - -// 五道口交易退款批量查询 成功返回结果 -type AlibabaWdkOrderRefundListResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_order_refund_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果内容 - Result *OrderSyncRefundListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkOrderSyncAPIRequest.go b/model/wdk/AlibabaWdkOrderSyncAPIRequest.go new file mode 100644 index 0000000000..f219d7b5b8 --- /dev/null +++ b/model/wdk/AlibabaWdkOrderSyncAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口外部订单同步 API请求 +alibaba.wdk.order.sync + +外部商户使用自助POS下单订单同步到五道口 +*/ +type AlibabaWdkOrderSyncAPIRequest struct { + model.Params + // 订单 + _receiptOrder *ReceiptOrderDo +} + +// 初始化AlibabaWdkOrderSyncAPIRequest对象 +func NewAlibabaWdkOrderSyncRequest() *AlibabaWdkOrderSyncAPIRequest{ + return &AlibabaWdkOrderSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkOrderSyncAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.order.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkOrderSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReceiptOrder Setter +// 订单 +func (r *AlibabaWdkOrderSyncAPIRequest) SetReceiptOrder(_receiptOrder *ReceiptOrderDo) error { + r._receiptOrder = _receiptOrder + r.Set("receipt_order", _receiptOrder) + return nil +} + +// ReceiptOrder Getter +func (r AlibabaWdkOrderSyncAPIRequest) GetReceiptOrder() *ReceiptOrderDo { + return r._receiptOrder +} diff --git a/model/wdk/AlibabaWdkOrderSyncAPIResponse.go b/model/wdk/AlibabaWdkOrderSyncAPIResponse.go new file mode 100644 index 0000000000..9c189d4da6 --- /dev/null +++ b/model/wdk/AlibabaWdkOrderSyncAPIResponse.go @@ -0,0 +1,33 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口外部订单同步 API返回值 +alibaba.wdk.order.sync + +外部商户使用自助POS下单订单同步到五道口 +*/ +type AlibabaWdkOrderSyncAPIResponse struct { + model.CommonResponse + AlibabaWdkOrderSyncAPIResponseModel +} + +// 五道口外部订单同步 成功返回结果 +type AlibabaWdkOrderSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_order_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 返回码 + ReturnCode int64 `json:"return_code,omitempty" xml:"return_code,omitempty"` + // 描述 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 订单号 + Target string `json:"target,omitempty" xml:"target,omitempty"` +} diff --git a/model/wdk/AlibabaWdkOrderSyncResponse.go b/model/wdk/AlibabaWdkOrderSyncResponse.go deleted file mode 100644 index 20771b1394..0000000000 --- a/model/wdk/AlibabaWdkOrderSyncResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -五道口外部订单同步 API返回值 -alibaba.wdk.order.sync - -外部商户使用自助POS下单订单同步到五道口 -*/ -type AlibabaWdkOrderSyncAPIResponse struct { - model.CommonResponse - AlibabaWdkOrderSyncResponse -} - -// 五道口外部订单同步 成功返回结果 -type AlibabaWdkOrderSyncResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_order_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 返回码 - ReturnCode int64 `json:"return_code,omitempty" xml:"return_code,omitempty"` - // 描述 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 订单号 - Target string `json:"target,omitempty" xml:"target,omitempty"` -} diff --git a/model/wdk/AlibabaWdkOrderSyncWithitemAPIRequest.go b/model/wdk/AlibabaWdkOrderSyncWithitemAPIRequest.go new file mode 100644 index 0000000000..c24b384824 --- /dev/null +++ b/model/wdk/AlibabaWdkOrderSyncWithitemAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单和商品同步接口 API请求 +alibaba.wdk.order.sync.withitem + +轻pos,将订单和商品的信息一起传到盒马这边,进行创单和添加商品处理。 +*/ +type AlibabaWdkOrderSyncWithitemAPIRequest struct { + model.Params + // 商家传过来的交易和商品信息 + _posOrderAndItemSync *PosOrderAndItemSyncDo +} + +// 初始化AlibabaWdkOrderSyncWithitemAPIRequest对象 +func NewAlibabaWdkOrderSyncWithitemRequest() *AlibabaWdkOrderSyncWithitemAPIRequest{ + return &AlibabaWdkOrderSyncWithitemAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkOrderSyncWithitemAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.order.sync.withitem" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkOrderSyncWithitemAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PosOrderAndItemSync Setter +// 商家传过来的交易和商品信息 +func (r *AlibabaWdkOrderSyncWithitemAPIRequest) SetPosOrderAndItemSync(_posOrderAndItemSync *PosOrderAndItemSyncDo) error { + r._posOrderAndItemSync = _posOrderAndItemSync + r.Set("pos_order_and_item_sync", _posOrderAndItemSync) + return nil +} + +// PosOrderAndItemSync Getter +func (r AlibabaWdkOrderSyncWithitemAPIRequest) GetPosOrderAndItemSync() *PosOrderAndItemSyncDo { + return r._posOrderAndItemSync +} diff --git a/model/wdk/AlibabaWdkOrderSyncWithitemAPIResponse.go b/model/wdk/AlibabaWdkOrderSyncWithitemAPIResponse.go new file mode 100644 index 0000000000..347032125f --- /dev/null +++ b/model/wdk/AlibabaWdkOrderSyncWithitemAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单和商品同步接口 API返回值 +alibaba.wdk.order.sync.withitem + +轻pos,将订单和商品的信息一起传到盒马这边,进行创单和添加商品处理。 +*/ +type AlibabaWdkOrderSyncWithitemAPIResponse struct { + model.CommonResponse + AlibabaWdkOrderSyncWithitemAPIResponseModel +} + +// 订单和商品同步接口 成功返回结果 +type AlibabaWdkOrderSyncWithitemAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_order_sync_withitem_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用返回的结果 + Result *AlibabaWdkOrderSyncWithitemApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkOrderSyncWithitemResponse.go b/model/wdk/AlibabaWdkOrderSyncWithitemResponse.go deleted file mode 100644 index 70c2457c5d..0000000000 --- a/model/wdk/AlibabaWdkOrderSyncWithitemResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单和商品同步接口 API返回值 -alibaba.wdk.order.sync.withitem - -轻pos,将订单和商品的信息一起传到盒马这边,进行创单和添加商品处理。 -*/ -type AlibabaWdkOrderSyncWithitemAPIResponse struct { - model.CommonResponse - AlibabaWdkOrderSyncWithitemResponse -} - -// 订单和商品同步接口 成功返回结果 -type AlibabaWdkOrderSyncWithitemResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_order_sync_withitem_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用返回的结果 - Result *AlibabaWdkOrderSyncWithitemApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkPosAfterbuyBenefitSendAPIRequest.go b/model/wdk/AlibabaWdkPosAfterbuyBenefitSendAPIRequest.go new file mode 100644 index 0000000000..68b6729c16 --- /dev/null +++ b/model/wdk/AlibabaWdkPosAfterbuyBenefitSendAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +生态pos购后发放权益 API请求 +alibaba.wdk.pos.afterbuy.benefit.send + +生态pos购后发放权益接口开放 +*/ +type AlibabaWdkPosAfterbuyBenefitSendAPIRequest struct { + model.Params + // 入参 + _sendBenefitParam *IsvSendBenefitParam +} + +// 初始化AlibabaWdkPosAfterbuyBenefitSendAPIRequest对象 +func NewAlibabaWdkPosAfterbuyBenefitSendRequest() *AlibabaWdkPosAfterbuyBenefitSendAPIRequest{ + return &AlibabaWdkPosAfterbuyBenefitSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkPosAfterbuyBenefitSendAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.pos.afterbuy.benefit.send" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkPosAfterbuyBenefitSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SendBenefitParam Setter +// 入参 +func (r *AlibabaWdkPosAfterbuyBenefitSendAPIRequest) SetSendBenefitParam(_sendBenefitParam *IsvSendBenefitParam) error { + r._sendBenefitParam = _sendBenefitParam + r.Set("send_benefit_param", _sendBenefitParam) + return nil +} + +// SendBenefitParam Getter +func (r AlibabaWdkPosAfterbuyBenefitSendAPIRequest) GetSendBenefitParam() *IsvSendBenefitParam { + return r._sendBenefitParam +} diff --git a/model/wdk/AlibabaWdkPosAfterbuyBenefitSendAPIResponse.go b/model/wdk/AlibabaWdkPosAfterbuyBenefitSendAPIResponse.go new file mode 100644 index 0000000000..f72bc8e11e --- /dev/null +++ b/model/wdk/AlibabaWdkPosAfterbuyBenefitSendAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +生态pos购后发放权益 API返回值 +alibaba.wdk.pos.afterbuy.benefit.send + +生态pos购后发放权益接口开放 +*/ +type AlibabaWdkPosAfterbuyBenefitSendAPIResponse struct { + model.CommonResponse + AlibabaWdkPosAfterbuyBenefitSendAPIResponseModel +} + +// 生态pos购后发放权益 成功返回结果 +type AlibabaWdkPosAfterbuyBenefitSendAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_pos_afterbuy_benefit_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *BmResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkPosAfterbuyBenefitSendResponse.go b/model/wdk/AlibabaWdkPosAfterbuyBenefitSendResponse.go deleted file mode 100644 index 4b6f0d8a79..0000000000 --- a/model/wdk/AlibabaWdkPosAfterbuyBenefitSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -生态pos购后发放权益 API返回值 -alibaba.wdk.pos.afterbuy.benefit.send - -生态pos购后发放权益接口开放 -*/ -type AlibabaWdkPosAfterbuyBenefitSendAPIResponse struct { - model.CommonResponse - AlibabaWdkPosAfterbuyBenefitSendResponse -} - -// 生态pos购后发放权益 成功返回结果 -type AlibabaWdkPosAfterbuyBenefitSendResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_pos_afterbuy_benefit_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *BmResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkPurchasePriceAPIRequest.go b/model/wdk/AlibabaWdkPurchasePriceAPIRequest.go new file mode 100644 index 0000000000..b0e199b0de --- /dev/null +++ b/model/wdk/AlibabaWdkPurchasePriceAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +rt回传采购价 API请求 +alibaba.wdk.purchase.price + +猫超共享库存项目-rt回传采购价 +*/ +type AlibabaWdkPurchasePriceAPIRequest struct { + model.Params + // 入参 + _wdkOpenPurchasePrice *WdkOpenPurchasePrice +} + +// 初始化AlibabaWdkPurchasePriceAPIRequest对象 +func NewAlibabaWdkPurchasePriceRequest() *AlibabaWdkPurchasePriceAPIRequest{ + return &AlibabaWdkPurchasePriceAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkPurchasePriceAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.purchase.price" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkPurchasePriceAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WdkOpenPurchasePrice Setter +// 入参 +func (r *AlibabaWdkPurchasePriceAPIRequest) SetWdkOpenPurchasePrice(_wdkOpenPurchasePrice *WdkOpenPurchasePrice) error { + r._wdkOpenPurchasePrice = _wdkOpenPurchasePrice + r.Set("wdk_open_purchase_price", _wdkOpenPurchasePrice) + return nil +} + +// WdkOpenPurchasePrice Getter +func (r AlibabaWdkPurchasePriceAPIRequest) GetWdkOpenPurchasePrice() *WdkOpenPurchasePrice { + return r._wdkOpenPurchasePrice +} diff --git a/model/wdk/AlibabaWdkPurchasePriceAPIResponse.go b/model/wdk/AlibabaWdkPurchasePriceAPIResponse.go new file mode 100644 index 0000000000..2c9121d252 --- /dev/null +++ b/model/wdk/AlibabaWdkPurchasePriceAPIResponse.go @@ -0,0 +1,31 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +rt回传采购价 API返回值 +alibaba.wdk.purchase.price + +猫超共享库存项目-rt回传采购价 +*/ +type AlibabaWdkPurchasePriceAPIResponse struct { + model.CommonResponse + AlibabaWdkPurchasePriceAPIResponseModel +} + +// rt回传采购价 成功返回结果 +type AlibabaWdkPurchasePriceAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_purchase_price_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // SYSTEM ERROR + ReturnMsg string `json:"return_msg,omitempty" xml:"return_msg,omitempty"` + // ERROR + ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"` + // true + ReturnSuccess bool `json:"return_success,omitempty" xml:"return_success,omitempty"` +} diff --git a/model/wdk/AlibabaWdkPurchasePriceResponse.go b/model/wdk/AlibabaWdkPurchasePriceResponse.go deleted file mode 100644 index 0226993bb7..0000000000 --- a/model/wdk/AlibabaWdkPurchasePriceResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -rt回传采购价 API返回值 -alibaba.wdk.purchase.price - -猫超共享库存项目-rt回传采购价 -*/ -type AlibabaWdkPurchasePriceAPIResponse struct { - model.CommonResponse - AlibabaWdkPurchasePriceResponse -} - -// rt回传采购价 成功返回结果 -type AlibabaWdkPurchasePriceResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_purchase_price_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // SYSTEM ERROR - ReturnMsg string `json:"return_msg,omitempty" xml:"return_msg,omitempty"` - // ERROR - ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"` - // true - ReturnSuccess bool `json:"return_success,omitempty" xml:"return_success,omitempty"` -} diff --git a/model/wdk/AlibabaWdkRefundAggregateAPIRequest.go b/model/wdk/AlibabaWdkRefundAggregateAPIRequest.go new file mode 100644 index 0000000000..2aa7748208 --- /dev/null +++ b/model/wdk/AlibabaWdkRefundAggregateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +淘鲜达退款单按门店聚合查询 API请求 +alibaba.wdk.refund.aggregate + +淘鲜达退款单按门店聚合查询 +*/ +type AlibabaWdkRefundAggregateAPIRequest struct { + model.Params + // 系统自动生成 + _refundAggregateQueryRequest *RefundAggregateQueryRequest +} + +// 初始化AlibabaWdkRefundAggregateAPIRequest对象 +func NewAlibabaWdkRefundAggregateRequest() *AlibabaWdkRefundAggregateAPIRequest{ + return &AlibabaWdkRefundAggregateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkRefundAggregateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.refund.aggregate" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkRefundAggregateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RefundAggregateQueryRequest Setter +// 系统自动生成 +func (r *AlibabaWdkRefundAggregateAPIRequest) SetRefundAggregateQueryRequest(_refundAggregateQueryRequest *RefundAggregateQueryRequest) error { + r._refundAggregateQueryRequest = _refundAggregateQueryRequest + r.Set("refund_aggregate_query_request", _refundAggregateQueryRequest) + return nil +} + +// RefundAggregateQueryRequest Getter +func (r AlibabaWdkRefundAggregateAPIRequest) GetRefundAggregateQueryRequest() *RefundAggregateQueryRequest { + return r._refundAggregateQueryRequest +} diff --git a/model/wdk/AlibabaWdkRefundAggregateAPIResponse.go b/model/wdk/AlibabaWdkRefundAggregateAPIResponse.go new file mode 100644 index 0000000000..aff58f3c76 --- /dev/null +++ b/model/wdk/AlibabaWdkRefundAggregateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +淘鲜达退款单按门店聚合查询 API返回值 +alibaba.wdk.refund.aggregate + +淘鲜达退款单按门店聚合查询 +*/ +type AlibabaWdkRefundAggregateAPIResponse struct { + model.CommonResponse + AlibabaWdkRefundAggregateAPIResponseModel +} + +// 淘鲜达退款单按门店聚合查询 成功返回结果 +type AlibabaWdkRefundAggregateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_refund_aggregate_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *RefundAggregateQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkRefundAggregateResponse.go b/model/wdk/AlibabaWdkRefundAggregateResponse.go deleted file mode 100644 index 01accb8264..0000000000 --- a/model/wdk/AlibabaWdkRefundAggregateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -淘鲜达退款单按门店聚合查询 API返回值 -alibaba.wdk.refund.aggregate - -淘鲜达退款单按门店聚合查询 -*/ -type AlibabaWdkRefundAggregateAPIResponse struct { - model.CommonResponse - AlibabaWdkRefundAggregateResponse -} - -// 淘鲜达退款单按门店聚合查询 成功返回结果 -type AlibabaWdkRefundAggregateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_refund_aggregate_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *RefundAggregateQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkReverseApplyrefundAPIRequest.go b/model/wdk/AlibabaWdkReverseApplyrefundAPIRequest.go new file mode 100644 index 0000000000..ffce5a5d45 --- /dev/null +++ b/model/wdk/AlibabaWdkReverseApplyrefundAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +逆向申请接口 API请求 +alibaba.wdk.reverse.applyrefund + +逆向渲染 +*/ +type AlibabaWdkReverseApplyrefundAPIRequest struct { + model.Params + // 入参 + _paramApplyReverseReq *ApplyReverseReq +} + +// 初始化AlibabaWdkReverseApplyrefundAPIRequest对象 +func NewAlibabaWdkReverseApplyrefundRequest() *AlibabaWdkReverseApplyrefundAPIRequest{ + return &AlibabaWdkReverseApplyrefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkReverseApplyrefundAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.reverse.applyrefund" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkReverseApplyrefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamApplyReverseReq Setter +// 入参 +func (r *AlibabaWdkReverseApplyrefundAPIRequest) SetParamApplyReverseReq(_paramApplyReverseReq *ApplyReverseReq) error { + r._paramApplyReverseReq = _paramApplyReverseReq + r.Set("param_apply_reverse_req", _paramApplyReverseReq) + return nil +} + +// ParamApplyReverseReq Getter +func (r AlibabaWdkReverseApplyrefundAPIRequest) GetParamApplyReverseReq() *ApplyReverseReq { + return r._paramApplyReverseReq +} diff --git a/model/wdk/AlibabaWdkReverseApplyrefundAPIResponse.go b/model/wdk/AlibabaWdkReverseApplyrefundAPIResponse.go new file mode 100644 index 0000000000..b3975ed020 --- /dev/null +++ b/model/wdk/AlibabaWdkReverseApplyrefundAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +逆向申请接口 API返回值 +alibaba.wdk.reverse.applyrefund + +逆向渲染 +*/ +type AlibabaWdkReverseApplyrefundAPIResponse struct { + model.CommonResponse + AlibabaWdkReverseApplyrefundAPIResponseModel +} + +// 逆向申请接口 成功返回结果 +type AlibabaWdkReverseApplyrefundAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_reverse_applyrefund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回result + Result *ReverseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkReverseApplyrefundResponse.go b/model/wdk/AlibabaWdkReverseApplyrefundResponse.go deleted file mode 100644 index a36de34135..0000000000 --- a/model/wdk/AlibabaWdkReverseApplyrefundResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -逆向申请接口 API返回值 -alibaba.wdk.reverse.applyrefund - -逆向渲染 -*/ -type AlibabaWdkReverseApplyrefundAPIResponse struct { - model.CommonResponse - AlibabaWdkReverseApplyrefundResponse -} - -// 逆向申请接口 成功返回结果 -type AlibabaWdkReverseApplyrefundResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_reverse_applyrefund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回result - Result *ReverseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkReverseCreatrefundAPIRequest.go b/model/wdk/AlibabaWdkReverseCreatrefundAPIRequest.go new file mode 100644 index 0000000000..8f70593449 --- /dev/null +++ b/model/wdk/AlibabaWdkReverseCreatrefundAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +逆向提交 API请求 +alibaba.wdk.reverse.creatrefund + +逆向申请提交 +*/ +type AlibabaWdkReverseCreatrefundAPIRequest struct { + model.Params + // CreateReverseReq + _paramCreateReverseReq *CreateReverseReq +} + +// 初始化AlibabaWdkReverseCreatrefundAPIRequest对象 +func NewAlibabaWdkReverseCreatrefundRequest() *AlibabaWdkReverseCreatrefundAPIRequest{ + return &AlibabaWdkReverseCreatrefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkReverseCreatrefundAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.reverse.creatrefund" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkReverseCreatrefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamCreateReverseReq Setter +// CreateReverseReq +func (r *AlibabaWdkReverseCreatrefundAPIRequest) SetParamCreateReverseReq(_paramCreateReverseReq *CreateReverseReq) error { + r._paramCreateReverseReq = _paramCreateReverseReq + r.Set("param_create_reverse_req", _paramCreateReverseReq) + return nil +} + +// ParamCreateReverseReq Getter +func (r AlibabaWdkReverseCreatrefundAPIRequest) GetParamCreateReverseReq() *CreateReverseReq { + return r._paramCreateReverseReq +} diff --git a/model/wdk/AlibabaWdkReverseCreatrefundAPIResponse.go b/model/wdk/AlibabaWdkReverseCreatrefundAPIResponse.go new file mode 100644 index 0000000000..a5131f42c9 --- /dev/null +++ b/model/wdk/AlibabaWdkReverseCreatrefundAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +逆向提交 API返回值 +alibaba.wdk.reverse.creatrefund + +逆向申请提交 +*/ +type AlibabaWdkReverseCreatrefundAPIResponse struct { + model.CommonResponse + AlibabaWdkReverseCreatrefundAPIResponseModel +} + +// 逆向提交 成功返回结果 +type AlibabaWdkReverseCreatrefundAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_reverse_creatrefund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ReverseResult + Result *ReverseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkReverseCreatrefundResponse.go b/model/wdk/AlibabaWdkReverseCreatrefundResponse.go deleted file mode 100644 index 9f5ef3b0ea..0000000000 --- a/model/wdk/AlibabaWdkReverseCreatrefundResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -逆向提交 API返回值 -alibaba.wdk.reverse.creatrefund - -逆向申请提交 -*/ -type AlibabaWdkReverseCreatrefundAPIResponse struct { - model.CommonResponse - AlibabaWdkReverseCreatrefundResponse -} - -// 逆向提交 成功返回结果 -type AlibabaWdkReverseCreatrefundResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_reverse_creatrefund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ReverseResult - Result *ReverseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkReverseRefundAPIRequest.go b/model/wdk/AlibabaWdkReverseRefundAPIRequest.go new file mode 100644 index 0000000000..509e87479b --- /dev/null +++ b/model/wdk/AlibabaWdkReverseRefundAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +退款打款 API请求 +alibaba.wdk.reverse.refund + +五道口退款打款开放能力接口 +*/ +type AlibabaWdkReverseRefundAPIRequest struct { + model.Params + // 退款打款请求 + _openRefundReqDTO *OpenRefundReqDto +} + +// 初始化AlibabaWdkReverseRefundAPIRequest对象 +func NewAlibabaWdkReverseRefundRequest() *AlibabaWdkReverseRefundAPIRequest{ + return &AlibabaWdkReverseRefundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkReverseRefundAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.reverse.refund" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkReverseRefundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OpenRefundReqDTO Setter +// 退款打款请求 +func (r *AlibabaWdkReverseRefundAPIRequest) SetOpenRefundReqDTO(_openRefundReqDTO *OpenRefundReqDto) error { + r._openRefundReqDTO = _openRefundReqDTO + r.Set("open_refund_req_d_t_o", _openRefundReqDTO) + return nil +} + +// OpenRefundReqDTO Getter +func (r AlibabaWdkReverseRefundAPIRequest) GetOpenRefundReqDTO() *OpenRefundReqDto { + return r._openRefundReqDTO +} diff --git a/model/wdk/AlibabaWdkReverseRefundAPIResponse.go b/model/wdk/AlibabaWdkReverseRefundAPIResponse.go new file mode 100644 index 0000000000..48a4a09c42 --- /dev/null +++ b/model/wdk/AlibabaWdkReverseRefundAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +退款打款 API返回值 +alibaba.wdk.reverse.refund + +五道口退款打款开放能力接口 +*/ +type AlibabaWdkReverseRefundAPIResponse struct { + model.CommonResponse + AlibabaWdkReverseRefundAPIResponseModel +} + +// 退款打款 成功返回结果 +type AlibabaWdkReverseRefundAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_reverse_refund_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaWdkReverseRefundResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkReverseRefundResponse.go b/model/wdk/AlibabaWdkReverseRefundResponse.go deleted file mode 100644 index 39f9400812..0000000000 --- a/model/wdk/AlibabaWdkReverseRefundResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -退款打款 API返回值 -alibaba.wdk.reverse.refund - -五道口退款打款开放能力接口 -*/ -type AlibabaWdkReverseRefundAPIResponse struct { - model.CommonResponse - AlibabaWdkReverseRefundResponse -} - -// 退款打款 成功返回结果 -type AlibabaWdkReverseRefundResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_reverse_refund_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaWdkReverseRefundResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkReverseReversedetailAPIRequest.go b/model/wdk/AlibabaWdkReverseReversedetailAPIRequest.go new file mode 100644 index 0000000000..e792e1b250 --- /dev/null +++ b/model/wdk/AlibabaWdkReverseReversedetailAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +退款详情 API请求 +alibaba.wdk.reverse.reversedetail + +退款详情 +*/ +type AlibabaWdkReverseReversedetailAPIRequest struct { + model.Params + // 退款单id + _reverseId string +} + +// 初始化AlibabaWdkReverseReversedetailAPIRequest对象 +func NewAlibabaWdkReverseReversedetailRequest() *AlibabaWdkReverseReversedetailAPIRequest{ + return &AlibabaWdkReverseReversedetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkReverseReversedetailAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.reverse.reversedetail" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkReverseReversedetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ReverseId Setter +// 退款单id +func (r *AlibabaWdkReverseReversedetailAPIRequest) SetReverseId(_reverseId string) error { + r._reverseId = _reverseId + r.Set("reverse_id", _reverseId) + return nil +} + +// ReverseId Getter +func (r AlibabaWdkReverseReversedetailAPIRequest) GetReverseId() string { + return r._reverseId +} diff --git a/model/wdk/AlibabaWdkReverseReversedetailAPIResponse.go b/model/wdk/AlibabaWdkReverseReversedetailAPIResponse.go new file mode 100644 index 0000000000..dd3764c2bf --- /dev/null +++ b/model/wdk/AlibabaWdkReverseReversedetailAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +退款详情 API返回值 +alibaba.wdk.reverse.reversedetail + +退款详情 +*/ +type AlibabaWdkReverseReversedetailAPIResponse struct { + model.CommonResponse + AlibabaWdkReverseReversedetailAPIResponseModel +} + +// 退款详情 成功返回结果 +type AlibabaWdkReverseReversedetailAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_reverse_reversedetail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *ReverseResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkReverseReversedetailResponse.go b/model/wdk/AlibabaWdkReverseReversedetailResponse.go deleted file mode 100644 index 1ae44b1cb2..0000000000 --- a/model/wdk/AlibabaWdkReverseReversedetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -退款详情 API返回值 -alibaba.wdk.reverse.reversedetail - -退款详情 -*/ -type AlibabaWdkReverseReversedetailAPIResponse struct { - model.CommonResponse - AlibabaWdkReverseReversedetailResponse -} - -// 退款详情 成功返回结果 -type AlibabaWdkReverseReversedetailResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_reverse_reversedetail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *ReverseResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkScmLrpOrderPredictAPIRequest.go b/model/wdk/AlibabaWdkScmLrpOrderPredictAPIRequest.go new file mode 100644 index 0000000000..3b6c379b34 --- /dev/null +++ b/model/wdk/AlibabaWdkScmLrpOrderPredictAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单量预测 API请求 +alibaba.wdk.scm.lrp.order.predict + +提供基于门店和配送站的订单量预测,可用于提前安排人力资源 +*/ +type AlibabaWdkScmLrpOrderPredictAPIRequest struct { + model.Params + // 单量预测查询参数 + _paramOrderPredictQuery *OrderPredictQuery +} + +// 初始化AlibabaWdkScmLrpOrderPredictAPIRequest对象 +func NewAlibabaWdkScmLrpOrderPredictRequest() *AlibabaWdkScmLrpOrderPredictAPIRequest{ + return &AlibabaWdkScmLrpOrderPredictAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkScmLrpOrderPredictAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.scm.lrp.order.predict" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkScmLrpOrderPredictAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamOrderPredictQuery Setter +// 单量预测查询参数 +func (r *AlibabaWdkScmLrpOrderPredictAPIRequest) SetParamOrderPredictQuery(_paramOrderPredictQuery *OrderPredictQuery) error { + r._paramOrderPredictQuery = _paramOrderPredictQuery + r.Set("param_order_predict_query", _paramOrderPredictQuery) + return nil +} + +// ParamOrderPredictQuery Getter +func (r AlibabaWdkScmLrpOrderPredictAPIRequest) GetParamOrderPredictQuery() *OrderPredictQuery { + return r._paramOrderPredictQuery +} diff --git a/model/wdk/AlibabaWdkScmLrpOrderPredictAPIResponse.go b/model/wdk/AlibabaWdkScmLrpOrderPredictAPIResponse.go new file mode 100644 index 0000000000..81c183ae22 --- /dev/null +++ b/model/wdk/AlibabaWdkScmLrpOrderPredictAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单量预测 API返回值 +alibaba.wdk.scm.lrp.order.predict + +提供基于门店和配送站的订单量预测,可用于提前安排人力资源 +*/ +type AlibabaWdkScmLrpOrderPredictAPIResponse struct { + model.CommonResponse + AlibabaWdkScmLrpOrderPredictAPIResponseModel +} + +// 单量预测 成功返回结果 +type AlibabaWdkScmLrpOrderPredictAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_scm_lrp_order_predict_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkScmLrpOrderPredictApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkScmLrpOrderPredictResponse.go b/model/wdk/AlibabaWdkScmLrpOrderPredictResponse.go deleted file mode 100644 index 8f7557fe51..0000000000 --- a/model/wdk/AlibabaWdkScmLrpOrderPredictResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单量预测 API返回值 -alibaba.wdk.scm.lrp.order.predict - -提供基于门店和配送站的订单量预测,可用于提前安排人力资源 -*/ -type AlibabaWdkScmLrpOrderPredictAPIResponse struct { - model.CommonResponse - AlibabaWdkScmLrpOrderPredictResponse -} - -// 单量预测 成功返回结果 -type AlibabaWdkScmLrpOrderPredictResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_scm_lrp_order_predict_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkScmLrpOrderPredictApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSeriesCreateAPIRequest.go b/model/wdk/AlibabaWdkSeriesCreateAPIRequest.go new file mode 100644 index 0000000000..08977a0eef --- /dev/null +++ b/model/wdk/AlibabaWdkSeriesCreateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +系列品变更-新增系列 API请求 +alibaba.wdk.series.create + +系列品变更-新增系列 +*/ +type AlibabaWdkSeriesCreateAPIRequest struct { + model.Params + // 系列品创建系列请求 + _series *SkuSeriesCreateRequest +} + +// 初始化AlibabaWdkSeriesCreateAPIRequest对象 +func NewAlibabaWdkSeriesCreateRequest() *AlibabaWdkSeriesCreateAPIRequest{ + return &AlibabaWdkSeriesCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSeriesCreateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.series.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSeriesCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Series Setter +// 系列品创建系列请求 +func (r *AlibabaWdkSeriesCreateAPIRequest) SetSeries(_series *SkuSeriesCreateRequest) error { + r._series = _series + r.Set("series", _series) + return nil +} + +// Series Getter +func (r AlibabaWdkSeriesCreateAPIRequest) GetSeries() *SkuSeriesCreateRequest { + return r._series +} diff --git a/model/wdk/AlibabaWdkSeriesCreateAPIResponse.go b/model/wdk/AlibabaWdkSeriesCreateAPIResponse.go new file mode 100644 index 0000000000..fb6cc3f6d5 --- /dev/null +++ b/model/wdk/AlibabaWdkSeriesCreateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +系列品变更-新增系列 API返回值 +alibaba.wdk.series.create + +系列品变更-新增系列 +*/ +type AlibabaWdkSeriesCreateAPIResponse struct { + model.CommonResponse + AlibabaWdkSeriesCreateAPIResponseModel +} + +// 系列品变更-新增系列 成功返回结果 +type AlibabaWdkSeriesCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_series_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + ApiResult *AlibabaWdkSeriesCreateApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSeriesCreateResponse.go b/model/wdk/AlibabaWdkSeriesCreateResponse.go deleted file mode 100644 index 67d44bbe14..0000000000 --- a/model/wdk/AlibabaWdkSeriesCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -系列品变更-新增系列 API返回值 -alibaba.wdk.series.create - -系列品变更-新增系列 -*/ -type AlibabaWdkSeriesCreateAPIResponse struct { - model.CommonResponse - AlibabaWdkSeriesCreateResponse -} - -// 系列品变更-新增系列 成功返回结果 -type AlibabaWdkSeriesCreateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_series_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - ApiResult *AlibabaWdkSeriesCreateApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSeriesDefaultskuResetAPIRequest.go b/model/wdk/AlibabaWdkSeriesDefaultskuResetAPIRequest.go new file mode 100644 index 0000000000..3adc0e1388 --- /dev/null +++ b/model/wdk/AlibabaWdkSeriesDefaultskuResetAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +系列品商品变更-重置默认商品 API请求 +alibaba.wdk.series.defaultsku.reset + +系列品商品变更-重置默认商品 +*/ +type AlibabaWdkSeriesDefaultskuResetAPIRequest struct { + model.Params + // 系列品重置默认商品请求 + _seriesSku *SeriesSkuRequest +} + +// 初始化AlibabaWdkSeriesDefaultskuResetAPIRequest对象 +func NewAlibabaWdkSeriesDefaultskuResetRequest() *AlibabaWdkSeriesDefaultskuResetAPIRequest{ + return &AlibabaWdkSeriesDefaultskuResetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSeriesDefaultskuResetAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.series.defaultsku.reset" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSeriesDefaultskuResetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SeriesSku Setter +// 系列品重置默认商品请求 +func (r *AlibabaWdkSeriesDefaultskuResetAPIRequest) SetSeriesSku(_seriesSku *SeriesSkuRequest) error { + r._seriesSku = _seriesSku + r.Set("series_sku", _seriesSku) + return nil +} + +// SeriesSku Getter +func (r AlibabaWdkSeriesDefaultskuResetAPIRequest) GetSeriesSku() *SeriesSkuRequest { + return r._seriesSku +} diff --git a/model/wdk/AlibabaWdkSeriesDefaultskuResetAPIResponse.go b/model/wdk/AlibabaWdkSeriesDefaultskuResetAPIResponse.go new file mode 100644 index 0000000000..c148f9b58b --- /dev/null +++ b/model/wdk/AlibabaWdkSeriesDefaultskuResetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +系列品商品变更-重置默认商品 API返回值 +alibaba.wdk.series.defaultsku.reset + +系列品商品变更-重置默认商品 +*/ +type AlibabaWdkSeriesDefaultskuResetAPIResponse struct { + model.CommonResponse + AlibabaWdkSeriesDefaultskuResetAPIResponseModel +} + +// 系列品商品变更-重置默认商品 成功返回结果 +type AlibabaWdkSeriesDefaultskuResetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_series_defaultsku_reset_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + ApiResult *AlibabaWdkSeriesDefaultskuResetApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSeriesDefaultskuResetResponse.go b/model/wdk/AlibabaWdkSeriesDefaultskuResetResponse.go deleted file mode 100644 index 3a389427ca..0000000000 --- a/model/wdk/AlibabaWdkSeriesDefaultskuResetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -系列品商品变更-重置默认商品 API返回值 -alibaba.wdk.series.defaultsku.reset - -系列品商品变更-重置默认商品 -*/ -type AlibabaWdkSeriesDefaultskuResetAPIResponse struct { - model.CommonResponse - AlibabaWdkSeriesDefaultskuResetResponse -} - -// 系列品商品变更-重置默认商品 成功返回结果 -type AlibabaWdkSeriesDefaultskuResetResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_series_defaultsku_reset_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - ApiResult *AlibabaWdkSeriesDefaultskuResetApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSeriesEditAPIRequest.go b/model/wdk/AlibabaWdkSeriesEditAPIRequest.go new file mode 100644 index 0000000000..721e58a4f3 --- /dev/null +++ b/model/wdk/AlibabaWdkSeriesEditAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +系列品变更-更新系列 API请求 +alibaba.wdk.series.edit + +系列品变更-更新系列 +*/ +type AlibabaWdkSeriesEditAPIRequest struct { + model.Params + // 商品系列修改请求 + _series *SkuSeriesEditRequest +} + +// 初始化AlibabaWdkSeriesEditAPIRequest对象 +func NewAlibabaWdkSeriesEditRequest() *AlibabaWdkSeriesEditAPIRequest{ + return &AlibabaWdkSeriesEditAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSeriesEditAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.series.edit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSeriesEditAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Series Setter +// 商品系列修改请求 +func (r *AlibabaWdkSeriesEditAPIRequest) SetSeries(_series *SkuSeriesEditRequest) error { + r._series = _series + r.Set("series", _series) + return nil +} + +// Series Getter +func (r AlibabaWdkSeriesEditAPIRequest) GetSeries() *SkuSeriesEditRequest { + return r._series +} diff --git a/model/wdk/AlibabaWdkSeriesEditAPIResponse.go b/model/wdk/AlibabaWdkSeriesEditAPIResponse.go new file mode 100644 index 0000000000..67c47426f6 --- /dev/null +++ b/model/wdk/AlibabaWdkSeriesEditAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +系列品变更-更新系列 API返回值 +alibaba.wdk.series.edit + +系列品变更-更新系列 +*/ +type AlibabaWdkSeriesEditAPIResponse struct { + model.CommonResponse + AlibabaWdkSeriesEditAPIResponseModel +} + +// 系列品变更-更新系列 成功返回结果 +type AlibabaWdkSeriesEditAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_series_edit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + ApiResult *AlibabaWdkSeriesEditApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSeriesEditResponse.go b/model/wdk/AlibabaWdkSeriesEditResponse.go deleted file mode 100644 index ab89edb65d..0000000000 --- a/model/wdk/AlibabaWdkSeriesEditResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -系列品变更-更新系列 API返回值 -alibaba.wdk.series.edit - -系列品变更-更新系列 -*/ -type AlibabaWdkSeriesEditAPIResponse struct { - model.CommonResponse - AlibabaWdkSeriesEditResponse -} - -// 系列品变更-更新系列 成功返回结果 -type AlibabaWdkSeriesEditResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_series_edit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - ApiResult *AlibabaWdkSeriesEditApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSeriesSkuAddAPIRequest.go b/model/wdk/AlibabaWdkSeriesSkuAddAPIRequest.go new file mode 100644 index 0000000000..d6e6aa0ab6 --- /dev/null +++ b/model/wdk/AlibabaWdkSeriesSkuAddAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +系列品商品变更-添加商品 API请求 +alibaba.wdk.series.sku.add + +系列品商品变更-添加商品 +*/ +type AlibabaWdkSeriesSkuAddAPIRequest struct { + model.Params + // 系列品添加商品请求 + _seriesSkus *SeriesSkuRequest +} + +// 初始化AlibabaWdkSeriesSkuAddAPIRequest对象 +func NewAlibabaWdkSeriesSkuAddRequest() *AlibabaWdkSeriesSkuAddAPIRequest{ + return &AlibabaWdkSeriesSkuAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSeriesSkuAddAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.series.sku.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSeriesSkuAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SeriesSkus Setter +// 系列品添加商品请求 +func (r *AlibabaWdkSeriesSkuAddAPIRequest) SetSeriesSkus(_seriesSkus *SeriesSkuRequest) error { + r._seriesSkus = _seriesSkus + r.Set("series_skus", _seriesSkus) + return nil +} + +// SeriesSkus Getter +func (r AlibabaWdkSeriesSkuAddAPIRequest) GetSeriesSkus() *SeriesSkuRequest { + return r._seriesSkus +} diff --git a/model/wdk/AlibabaWdkSeriesSkuAddAPIResponse.go b/model/wdk/AlibabaWdkSeriesSkuAddAPIResponse.go new file mode 100644 index 0000000000..cc19e9245f --- /dev/null +++ b/model/wdk/AlibabaWdkSeriesSkuAddAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +系列品商品变更-添加商品 API返回值 +alibaba.wdk.series.sku.add + +系列品商品变更-添加商品 +*/ +type AlibabaWdkSeriesSkuAddAPIResponse struct { + model.CommonResponse + AlibabaWdkSeriesSkuAddAPIResponseModel +} + +// 系列品商品变更-添加商品 成功返回结果 +type AlibabaWdkSeriesSkuAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_series_sku_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + ApiResult *AlibabaWdkSeriesSkuAddApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSeriesSkuAddResponse.go b/model/wdk/AlibabaWdkSeriesSkuAddResponse.go deleted file mode 100644 index 6eb67be716..0000000000 --- a/model/wdk/AlibabaWdkSeriesSkuAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -系列品商品变更-添加商品 API返回值 -alibaba.wdk.series.sku.add - -系列品商品变更-添加商品 -*/ -type AlibabaWdkSeriesSkuAddAPIResponse struct { - model.CommonResponse - AlibabaWdkSeriesSkuAddResponse -} - -// 系列品商品变更-添加商品 成功返回结果 -type AlibabaWdkSeriesSkuAddResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_series_sku_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - ApiResult *AlibabaWdkSeriesSkuAddApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSeriesSkuRemoveAPIRequest.go b/model/wdk/AlibabaWdkSeriesSkuRemoveAPIRequest.go new file mode 100644 index 0000000000..1eb4098002 --- /dev/null +++ b/model/wdk/AlibabaWdkSeriesSkuRemoveAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +系列品商品变更-移除商品 API请求 +alibaba.wdk.series.sku.remove + +系列品商品变更-移除商品 +*/ +type AlibabaWdkSeriesSkuRemoveAPIRequest struct { + model.Params + // 系列品移除商品请求 + _seriesSkus *SeriesSkuRequest +} + +// 初始化AlibabaWdkSeriesSkuRemoveAPIRequest对象 +func NewAlibabaWdkSeriesSkuRemoveRequest() *AlibabaWdkSeriesSkuRemoveAPIRequest{ + return &AlibabaWdkSeriesSkuRemoveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSeriesSkuRemoveAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.series.sku.remove" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSeriesSkuRemoveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SeriesSkus Setter +// 系列品移除商品请求 +func (r *AlibabaWdkSeriesSkuRemoveAPIRequest) SetSeriesSkus(_seriesSkus *SeriesSkuRequest) error { + r._seriesSkus = _seriesSkus + r.Set("series_skus", _seriesSkus) + return nil +} + +// SeriesSkus Getter +func (r AlibabaWdkSeriesSkuRemoveAPIRequest) GetSeriesSkus() *SeriesSkuRequest { + return r._seriesSkus +} diff --git a/model/wdk/AlibabaWdkSeriesSkuRemoveAPIResponse.go b/model/wdk/AlibabaWdkSeriesSkuRemoveAPIResponse.go new file mode 100644 index 0000000000..b7d89db1d4 --- /dev/null +++ b/model/wdk/AlibabaWdkSeriesSkuRemoveAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +系列品商品变更-移除商品 API返回值 +alibaba.wdk.series.sku.remove + +系列品商品变更-移除商品 +*/ +type AlibabaWdkSeriesSkuRemoveAPIResponse struct { + model.CommonResponse + AlibabaWdkSeriesSkuRemoveAPIResponseModel +} + +// 系列品商品变更-移除商品 成功返回结果 +type AlibabaWdkSeriesSkuRemoveAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_series_sku_remove_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + ApiResult *AlibabaWdkSeriesSkuRemoveApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSeriesSkuRemoveResponse.go b/model/wdk/AlibabaWdkSeriesSkuRemoveResponse.go deleted file mode 100644 index 91856836ce..0000000000 --- a/model/wdk/AlibabaWdkSeriesSkuRemoveResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -系列品商品变更-移除商品 API返回值 -alibaba.wdk.series.sku.remove - -系列品商品变更-移除商品 -*/ -type AlibabaWdkSeriesSkuRemoveAPIResponse struct { - model.CommonResponse - AlibabaWdkSeriesSkuRemoveResponse -} - -// 系列品商品变更-移除商品 成功返回结果 -type AlibabaWdkSeriesSkuRemoveResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_series_sku_remove_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - ApiResult *AlibabaWdkSeriesSkuRemoveApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSeriesSortAPIRequest.go b/model/wdk/AlibabaWdkSeriesSortAPIRequest.go new file mode 100644 index 0000000000..66da314fc0 --- /dev/null +++ b/model/wdk/AlibabaWdkSeriesSortAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +系列品-商品排序 API请求 +alibaba.wdk.series.sort + +系列品商品变更-商品排序 +*/ +type AlibabaWdkSeriesSortAPIRequest struct { + model.Params + // 自定义排序请求 + _sort *SeriesSortRequest +} + +// 初始化AlibabaWdkSeriesSortAPIRequest对象 +func NewAlibabaWdkSeriesSortRequest() *AlibabaWdkSeriesSortAPIRequest{ + return &AlibabaWdkSeriesSortAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSeriesSortAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.series.sort" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSeriesSortAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Sort Setter +// 自定义排序请求 +func (r *AlibabaWdkSeriesSortAPIRequest) SetSort(_sort *SeriesSortRequest) error { + r._sort = _sort + r.Set("sort", _sort) + return nil +} + +// Sort Getter +func (r AlibabaWdkSeriesSortAPIRequest) GetSort() *SeriesSortRequest { + return r._sort +} diff --git a/model/wdk/AlibabaWdkSeriesSortAPIResponse.go b/model/wdk/AlibabaWdkSeriesSortAPIResponse.go new file mode 100644 index 0000000000..f7146fdee7 --- /dev/null +++ b/model/wdk/AlibabaWdkSeriesSortAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +系列品-商品排序 API返回值 +alibaba.wdk.series.sort + +系列品商品变更-商品排序 +*/ +type AlibabaWdkSeriesSortAPIResponse struct { + model.CommonResponse + AlibabaWdkSeriesSortAPIResponseModel +} + +// 系列品-商品排序 成功返回结果 +type AlibabaWdkSeriesSortAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_series_sort_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + ApiResult *AlibabaWdkSeriesSortApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSeriesSortResponse.go b/model/wdk/AlibabaWdkSeriesSortResponse.go deleted file mode 100644 index f9875da92b..0000000000 --- a/model/wdk/AlibabaWdkSeriesSortResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -系列品-商品排序 API返回值 -alibaba.wdk.series.sort - -系列品商品变更-商品排序 -*/ -type AlibabaWdkSeriesSortAPIResponse struct { - model.CommonResponse - AlibabaWdkSeriesSortResponse -} - -// 系列品-商品排序 成功返回结果 -type AlibabaWdkSeriesSortResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_series_sort_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - ApiResult *AlibabaWdkSeriesSortApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkShopQueryAPIRequest.go b/model/wdk/AlibabaWdkShopQueryAPIRequest.go new file mode 100644 index 0000000000..1d42d64b71 --- /dev/null +++ b/model/wdk/AlibabaWdkShopQueryAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店查询接口 API请求 +alibaba.wdk.shop.query + +根据门店code查询门店信息 +*/ +type AlibabaWdkShopQueryAPIRequest struct { + model.Params + // 如果不传,返回所有 + _ouCode string +} + +// 初始化AlibabaWdkShopQueryAPIRequest对象 +func NewAlibabaWdkShopQueryRequest() *AlibabaWdkShopQueryAPIRequest{ + return &AlibabaWdkShopQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkShopQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.shop.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkShopQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuCode Setter +// 如果不传,返回所有 +func (r *AlibabaWdkShopQueryAPIRequest) SetOuCode(_ouCode string) error { + r._ouCode = _ouCode + r.Set("ou_code", _ouCode) + return nil +} + +// OuCode Getter +func (r AlibabaWdkShopQueryAPIRequest) GetOuCode() string { + return r._ouCode +} diff --git a/model/wdk/AlibabaWdkShopQueryAPIResponse.go b/model/wdk/AlibabaWdkShopQueryAPIResponse.go new file mode 100644 index 0000000000..336a8008d9 --- /dev/null +++ b/model/wdk/AlibabaWdkShopQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店查询接口 API返回值 +alibaba.wdk.shop.query + +根据门店code查询门店信息 +*/ +type AlibabaWdkShopQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkShopQueryAPIResponseModel +} + +// 门店查询接口 成功返回结果 +type AlibabaWdkShopQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_shop_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *AlibabaWdkShopQueryApiResults `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkShopQueryResponse.go b/model/wdk/AlibabaWdkShopQueryResponse.go deleted file mode 100644 index 0ee91c0b9d..0000000000 --- a/model/wdk/AlibabaWdkShopQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店查询接口 API返回值 -alibaba.wdk.shop.query - -根据门店code查询门店信息 -*/ -type AlibabaWdkShopQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkShopQueryResponse -} - -// 门店查询接口 成功返回结果 -type AlibabaWdkShopQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_shop_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *AlibabaWdkShopQueryApiResults `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuAddAPIRequest.go b/model/wdk/AlibabaWdkSkuAddAPIRequest.go new file mode 100644 index 0000000000..e3da503f5f --- /dev/null +++ b/model/wdk/AlibabaWdkSkuAddAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增商品 API请求 +alibaba.wdk.sku.add + +创建RT门店商品或DC商品 +*/ +type AlibabaWdkSkuAddAPIRequest struct { + model.Params + // 商品列表 + _paramList []SkuDo +} + +// 初始化AlibabaWdkSkuAddAPIRequest对象 +func NewAlibabaWdkSkuAddRequest() *AlibabaWdkSkuAddAPIRequest{ + return &AlibabaWdkSkuAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuAddAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamList Setter +// 商品列表 +func (r *AlibabaWdkSkuAddAPIRequest) SetParamList(_paramList []SkuDo) error { + r._paramList = _paramList + r.Set("param_list", _paramList) + return nil +} + +// ParamList Getter +func (r AlibabaWdkSkuAddAPIRequest) GetParamList() []SkuDo { + return r._paramList +} diff --git a/model/wdk/AlibabaWdkSkuAddAPIResponse.go b/model/wdk/AlibabaWdkSkuAddAPIResponse.go new file mode 100644 index 0000000000..f680373afc --- /dev/null +++ b/model/wdk/AlibabaWdkSkuAddAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增商品 API返回值 +alibaba.wdk.sku.add + +创建RT门店商品或DC商品 +*/ +type AlibabaWdkSkuAddAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuAddAPIResponseModel +} + +// 新增商品 成功返回结果 +type AlibabaWdkSkuAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *AlibabaWdkSkuAddApiResults `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuAddResponse.go b/model/wdk/AlibabaWdkSkuAddResponse.go deleted file mode 100644 index 5615c081e6..0000000000 --- a/model/wdk/AlibabaWdkSkuAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增商品 API返回值 -alibaba.wdk.sku.add - -创建RT门店商品或DC商品 -*/ -type AlibabaWdkSkuAddAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuAddResponse -} - -// 新增商品 成功返回结果 -type AlibabaWdkSkuAddResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *AlibabaWdkSkuAddApiResults `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuBarcodeQueryAPIRequest.go b/model/wdk/AlibabaWdkSkuBarcodeQueryAPIRequest.go new file mode 100644 index 0000000000..dd4fa1ac3b --- /dev/null +++ b/model/wdk/AlibabaWdkSkuBarcodeQueryAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品条码查询接口 API请求 +alibaba.wdk.sku.barcode.query + +查询商品编码,支持一品多码 +*/ +type AlibabaWdkSkuBarcodeQueryAPIRequest struct { + model.Params + // 商品编码 + _skuCode string +} + +// 初始化AlibabaWdkSkuBarcodeQueryAPIRequest对象 +func NewAlibabaWdkSkuBarcodeQueryRequest() *AlibabaWdkSkuBarcodeQueryAPIRequest{ + return &AlibabaWdkSkuBarcodeQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuBarcodeQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.barcode.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuBarcodeQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkuCode Setter +// 商品编码 +func (r *AlibabaWdkSkuBarcodeQueryAPIRequest) SetSkuCode(_skuCode string) error { + r._skuCode = _skuCode + r.Set("sku_code", _skuCode) + return nil +} + +// SkuCode Getter +func (r AlibabaWdkSkuBarcodeQueryAPIRequest) GetSkuCode() string { + return r._skuCode +} diff --git a/model/wdk/AlibabaWdkSkuBarcodeQueryAPIResponse.go b/model/wdk/AlibabaWdkSkuBarcodeQueryAPIResponse.go new file mode 100644 index 0000000000..a3260e55ed --- /dev/null +++ b/model/wdk/AlibabaWdkSkuBarcodeQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品条码查询接口 API返回值 +alibaba.wdk.sku.barcode.query + +查询商品编码,支持一品多码 +*/ +type AlibabaWdkSkuBarcodeQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuBarcodeQueryAPIResponseModel +} + +// 商品条码查询接口 成功返回结果 +type AlibabaWdkSkuBarcodeQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_barcode_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *AlibabaWdkSkuBarcodeQueryApiResults `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuBarcodeQueryResponse.go b/model/wdk/AlibabaWdkSkuBarcodeQueryResponse.go deleted file mode 100644 index 914fbcbab2..0000000000 --- a/model/wdk/AlibabaWdkSkuBarcodeQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品条码查询接口 API返回值 -alibaba.wdk.sku.barcode.query - -查询商品编码,支持一品多码 -*/ -type AlibabaWdkSkuBarcodeQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuBarcodeQueryResponse -} - -// 商品条码查询接口 成功返回结果 -type AlibabaWdkSkuBarcodeQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_barcode_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *AlibabaWdkSkuBarcodeQueryApiResults `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuCategoryAddAPIRequest.go b/model/wdk/AlibabaWdkSkuCategoryAddAPIRequest.go new file mode 100644 index 0000000000..ccec23abc7 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuCategoryAddAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家类目新增接口 API请求 +alibaba.wdk.sku.category.add + +商家类目新增接口 +*/ +type AlibabaWdkSkuCategoryAddAPIRequest struct { + model.Params + // 类目新增请求模型 + _param *CategoryDo +} + +// 初始化AlibabaWdkSkuCategoryAddAPIRequest对象 +func NewAlibabaWdkSkuCategoryAddRequest() *AlibabaWdkSkuCategoryAddAPIRequest{ + return &AlibabaWdkSkuCategoryAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuCategoryAddAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.category.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuCategoryAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 类目新增请求模型 +func (r *AlibabaWdkSkuCategoryAddAPIRequest) SetParam(_param *CategoryDo) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkSkuCategoryAddAPIRequest) GetParam() *CategoryDo { + return r._param +} diff --git a/model/wdk/AlibabaWdkSkuCategoryAddAPIResponse.go b/model/wdk/AlibabaWdkSkuCategoryAddAPIResponse.go new file mode 100644 index 0000000000..3b17d53499 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuCategoryAddAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家类目新增接口 API返回值 +alibaba.wdk.sku.category.add + +商家类目新增接口 +*/ +type AlibabaWdkSkuCategoryAddAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuCategoryAddAPIResponseModel +} + +// 商家类目新增接口 成功返回结果 +type AlibabaWdkSkuCategoryAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_category_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *AlibabaWdkSkuCategoryAddApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuCategoryAddResponse.go b/model/wdk/AlibabaWdkSkuCategoryAddResponse.go deleted file mode 100644 index ec5d751051..0000000000 --- a/model/wdk/AlibabaWdkSkuCategoryAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家类目新增接口 API返回值 -alibaba.wdk.sku.category.add - -商家类目新增接口 -*/ -type AlibabaWdkSkuCategoryAddAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuCategoryAddResponse -} - -// 商家类目新增接口 成功返回结果 -type AlibabaWdkSkuCategoryAddResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_category_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *AlibabaWdkSkuCategoryAddApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuCategoryDeleteAPIRequest.go b/model/wdk/AlibabaWdkSkuCategoryDeleteAPIRequest.go new file mode 100644 index 0000000000..dbca829e7c --- /dev/null +++ b/model/wdk/AlibabaWdkSkuCategoryDeleteAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家类目删除接口 API请求 +alibaba.wdk.sku.category.delete + +商家类目删除接口 +*/ +type AlibabaWdkSkuCategoryDeleteAPIRequest struct { + model.Params + // 类目删除请求模型 + _param *CategoryDo +} + +// 初始化AlibabaWdkSkuCategoryDeleteAPIRequest对象 +func NewAlibabaWdkSkuCategoryDeleteRequest() *AlibabaWdkSkuCategoryDeleteAPIRequest{ + return &AlibabaWdkSkuCategoryDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuCategoryDeleteAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.category.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuCategoryDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 类目删除请求模型 +func (r *AlibabaWdkSkuCategoryDeleteAPIRequest) SetParam(_param *CategoryDo) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkSkuCategoryDeleteAPIRequest) GetParam() *CategoryDo { + return r._param +} diff --git a/model/wdk/AlibabaWdkSkuCategoryDeleteAPIResponse.go b/model/wdk/AlibabaWdkSkuCategoryDeleteAPIResponse.go new file mode 100644 index 0000000000..1dcdd37f8b --- /dev/null +++ b/model/wdk/AlibabaWdkSkuCategoryDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家类目删除接口 API返回值 +alibaba.wdk.sku.category.delete + +商家类目删除接口 +*/ +type AlibabaWdkSkuCategoryDeleteAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuCategoryDeleteAPIResponseModel +} + +// 商家类目删除接口 成功返回结果 +type AlibabaWdkSkuCategoryDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_category_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *AlibabaWdkSkuCategoryDeleteApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuCategoryDeleteResponse.go b/model/wdk/AlibabaWdkSkuCategoryDeleteResponse.go deleted file mode 100644 index 22a9256103..0000000000 --- a/model/wdk/AlibabaWdkSkuCategoryDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家类目删除接口 API返回值 -alibaba.wdk.sku.category.delete - -商家类目删除接口 -*/ -type AlibabaWdkSkuCategoryDeleteAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuCategoryDeleteResponse -} - -// 商家类目删除接口 成功返回结果 -type AlibabaWdkSkuCategoryDeleteResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_category_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *AlibabaWdkSkuCategoryDeleteApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuCategoryQueryAPIRequest.go b/model/wdk/AlibabaWdkSkuCategoryQueryAPIRequest.go new file mode 100644 index 0000000000..11765b5bba --- /dev/null +++ b/model/wdk/AlibabaWdkSkuCategoryQueryAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家类目获取接口 API请求 +alibaba.wdk.sku.category.query + +商家类目获取接口 +*/ +type AlibabaWdkSkuCategoryQueryAPIRequest struct { + model.Params + // 查询类目请模型 + _param *CategoryDo +} + +// 初始化AlibabaWdkSkuCategoryQueryAPIRequest对象 +func NewAlibabaWdkSkuCategoryQueryRequest() *AlibabaWdkSkuCategoryQueryAPIRequest{ + return &AlibabaWdkSkuCategoryQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuCategoryQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.category.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuCategoryQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 查询类目请模型 +func (r *AlibabaWdkSkuCategoryQueryAPIRequest) SetParam(_param *CategoryDo) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkSkuCategoryQueryAPIRequest) GetParam() *CategoryDo { + return r._param +} diff --git a/model/wdk/AlibabaWdkSkuCategoryQueryAPIResponse.go b/model/wdk/AlibabaWdkSkuCategoryQueryAPIResponse.go new file mode 100644 index 0000000000..6f26e220ef --- /dev/null +++ b/model/wdk/AlibabaWdkSkuCategoryQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家类目获取接口 API返回值 +alibaba.wdk.sku.category.query + +商家类目获取接口 +*/ +type AlibabaWdkSkuCategoryQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuCategoryQueryAPIResponseModel +} + +// 商家类目获取接口 成功返回结果 +type AlibabaWdkSkuCategoryQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_category_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *AlibabaWdkSkuCategoryQueryApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuCategoryQueryResponse.go b/model/wdk/AlibabaWdkSkuCategoryQueryResponse.go deleted file mode 100644 index db11a26449..0000000000 --- a/model/wdk/AlibabaWdkSkuCategoryQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家类目获取接口 API返回值 -alibaba.wdk.sku.category.query - -商家类目获取接口 -*/ -type AlibabaWdkSkuCategoryQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuCategoryQueryResponse -} - -// 商家类目获取接口 成功返回结果 -type AlibabaWdkSkuCategoryQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_category_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *AlibabaWdkSkuCategoryQueryApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuCategoryUpdateAPIRequest.go b/model/wdk/AlibabaWdkSkuCategoryUpdateAPIRequest.go new file mode 100644 index 0000000000..e62b0a0456 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuCategoryUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家类目修改接口 API请求 +alibaba.wdk.sku.category.update + +商家类目修改接口 +*/ +type AlibabaWdkSkuCategoryUpdateAPIRequest struct { + model.Params + // 更新请求模型 + _param *CategoryDo +} + +// 初始化AlibabaWdkSkuCategoryUpdateAPIRequest对象 +func NewAlibabaWdkSkuCategoryUpdateRequest() *AlibabaWdkSkuCategoryUpdateAPIRequest{ + return &AlibabaWdkSkuCategoryUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuCategoryUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.category.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuCategoryUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 更新请求模型 +func (r *AlibabaWdkSkuCategoryUpdateAPIRequest) SetParam(_param *CategoryDo) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkSkuCategoryUpdateAPIRequest) GetParam() *CategoryDo { + return r._param +} diff --git a/model/wdk/AlibabaWdkSkuCategoryUpdateAPIResponse.go b/model/wdk/AlibabaWdkSkuCategoryUpdateAPIResponse.go new file mode 100644 index 0000000000..c6dd3300d2 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuCategoryUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家类目修改接口 API返回值 +alibaba.wdk.sku.category.update + +商家类目修改接口 +*/ +type AlibabaWdkSkuCategoryUpdateAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuCategoryUpdateAPIResponseModel +} + +// 商家类目修改接口 成功返回结果 +type AlibabaWdkSkuCategoryUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_category_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *AlibabaWdkSkuCategoryUpdateApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuCategoryUpdateResponse.go b/model/wdk/AlibabaWdkSkuCategoryUpdateResponse.go deleted file mode 100644 index 14456d8b92..0000000000 --- a/model/wdk/AlibabaWdkSkuCategoryUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家类目修改接口 API返回值 -alibaba.wdk.sku.category.update - -商家类目修改接口 -*/ -type AlibabaWdkSkuCategoryUpdateAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuCategoryUpdateResponse -} - -// 商家类目修改接口 成功返回结果 -type AlibabaWdkSkuCategoryUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_category_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *AlibabaWdkSkuCategoryUpdateApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuChannelskuAddAPIRequest.go b/model/wdk/AlibabaWdkSkuChannelskuAddAPIRequest.go new file mode 100644 index 0000000000..ac09429663 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuChannelskuAddAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增渠道商品 API请求 +alibaba.wdk.sku.channelsku.add + +盒马帮1期新增渠道商品 +*/ +type AlibabaWdkSkuChannelskuAddAPIRequest struct { + model.Params + // 入参模型 + _chSkuDOList []ChannelSkuDo +} + +// 初始化AlibabaWdkSkuChannelskuAddAPIRequest对象 +func NewAlibabaWdkSkuChannelskuAddRequest() *AlibabaWdkSkuChannelskuAddAPIRequest{ + return &AlibabaWdkSkuChannelskuAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuChannelskuAddAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.channelsku.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuChannelskuAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChSkuDOList Setter +// 入参模型 +func (r *AlibabaWdkSkuChannelskuAddAPIRequest) SetChSkuDOList(_chSkuDOList []ChannelSkuDo) error { + r._chSkuDOList = _chSkuDOList + r.Set("ch_sku_d_o_list", _chSkuDOList) + return nil +} + +// ChSkuDOList Getter +func (r AlibabaWdkSkuChannelskuAddAPIRequest) GetChSkuDOList() []ChannelSkuDo { + return r._chSkuDOList +} diff --git a/model/wdk/AlibabaWdkSkuChannelskuAddAPIResponse.go b/model/wdk/AlibabaWdkSkuChannelskuAddAPIResponse.go new file mode 100644 index 0000000000..9e30c296b0 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuChannelskuAddAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增渠道商品 API返回值 +alibaba.wdk.sku.channelsku.add + +盒马帮1期新增渠道商品 +*/ +type AlibabaWdkSkuChannelskuAddAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuChannelskuAddAPIResponseModel +} + +// 新增渠道商品 成功返回结果 +type AlibabaWdkSkuChannelskuAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_channelsku_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *AlibabaWdkSkuChannelskuAddApiResults `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuChannelskuAddResponse.go b/model/wdk/AlibabaWdkSkuChannelskuAddResponse.go deleted file mode 100644 index 977ab87b38..0000000000 --- a/model/wdk/AlibabaWdkSkuChannelskuAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增渠道商品 API返回值 -alibaba.wdk.sku.channelsku.add - -盒马帮1期新增渠道商品 -*/ -type AlibabaWdkSkuChannelskuAddAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuChannelskuAddResponse -} - -// 新增渠道商品 成功返回结果 -type AlibabaWdkSkuChannelskuAddResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_channelsku_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *AlibabaWdkSkuChannelskuAddApiResults `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuChannelskuQueryAPIRequest.go b/model/wdk/AlibabaWdkSkuChannelskuQueryAPIRequest.go new file mode 100644 index 0000000000..7759c38fac --- /dev/null +++ b/model/wdk/AlibabaWdkSkuChannelskuQueryAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询渠道商品 API请求 +alibaba.wdk.sku.channelsku.query + +查询渠道商品 +*/ +type AlibabaWdkSkuChannelskuQueryAPIRequest struct { + model.Params + // 查询渠道商品的入参 + _param *ChannelSkuQueryDo +} + +// 初始化AlibabaWdkSkuChannelskuQueryAPIRequest对象 +func NewAlibabaWdkSkuChannelskuQueryRequest() *AlibabaWdkSkuChannelskuQueryAPIRequest{ + return &AlibabaWdkSkuChannelskuQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuChannelskuQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.channelsku.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuChannelskuQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 查询渠道商品的入参 +func (r *AlibabaWdkSkuChannelskuQueryAPIRequest) SetParam(_param *ChannelSkuQueryDo) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkSkuChannelskuQueryAPIRequest) GetParam() *ChannelSkuQueryDo { + return r._param +} diff --git a/model/wdk/AlibabaWdkSkuChannelskuQueryAPIResponse.go b/model/wdk/AlibabaWdkSkuChannelskuQueryAPIResponse.go new file mode 100644 index 0000000000..12a23031b0 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuChannelskuQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询渠道商品 API返回值 +alibaba.wdk.sku.channelsku.query + +查询渠道商品 +*/ +type AlibabaWdkSkuChannelskuQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuChannelskuQueryAPIResponseModel +} + +// 查询渠道商品 成功返回结果 +type AlibabaWdkSkuChannelskuQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_channelsku_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *AlibabaWdkSkuChannelskuQueryApiResults `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuChannelskuQueryResponse.go b/model/wdk/AlibabaWdkSkuChannelskuQueryResponse.go deleted file mode 100644 index 5b09acf427..0000000000 --- a/model/wdk/AlibabaWdkSkuChannelskuQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询渠道商品 API返回值 -alibaba.wdk.sku.channelsku.query - -查询渠道商品 -*/ -type AlibabaWdkSkuChannelskuQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuChannelskuQueryResponse -} - -// 查询渠道商品 成功返回结果 -type AlibabaWdkSkuChannelskuQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_channelsku_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *AlibabaWdkSkuChannelskuQueryApiResults `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuChannelskuUpdateAPIRequest.go b/model/wdk/AlibabaWdkSkuChannelskuUpdateAPIRequest.go new file mode 100644 index 0000000000..6d10660360 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuChannelskuUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新渠道商品 API请求 +alibaba.wdk.sku.channelsku.update + +批量更新渠道商品,商家通过Top接入 +*/ +type AlibabaWdkSkuChannelskuUpdateAPIRequest struct { + model.Params + // 请求参数 + _paramList []ChannelSkuDo +} + +// 初始化AlibabaWdkSkuChannelskuUpdateAPIRequest对象 +func NewAlibabaWdkSkuChannelskuUpdateRequest() *AlibabaWdkSkuChannelskuUpdateAPIRequest{ + return &AlibabaWdkSkuChannelskuUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuChannelskuUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.channelsku.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuChannelskuUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamList Setter +// 请求参数 +func (r *AlibabaWdkSkuChannelskuUpdateAPIRequest) SetParamList(_paramList []ChannelSkuDo) error { + r._paramList = _paramList + r.Set("param_list", _paramList) + return nil +} + +// ParamList Getter +func (r AlibabaWdkSkuChannelskuUpdateAPIRequest) GetParamList() []ChannelSkuDo { + return r._paramList +} diff --git a/model/wdk/AlibabaWdkSkuChannelskuUpdateAPIResponse.go b/model/wdk/AlibabaWdkSkuChannelskuUpdateAPIResponse.go new file mode 100644 index 0000000000..8dda68d051 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuChannelskuUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新渠道商品 API返回值 +alibaba.wdk.sku.channelsku.update + +批量更新渠道商品,商家通过Top接入 +*/ +type AlibabaWdkSkuChannelskuUpdateAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuChannelskuUpdateAPIResponseModel +} + +// 更新渠道商品 成功返回结果 +type AlibabaWdkSkuChannelskuUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_channelsku_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *AlibabaWdkSkuChannelskuUpdateApiResults `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuChannelskuUpdateResponse.go b/model/wdk/AlibabaWdkSkuChannelskuUpdateResponse.go deleted file mode 100644 index 048ac7fe24..0000000000 --- a/model/wdk/AlibabaWdkSkuChannelskuUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新渠道商品 API返回值 -alibaba.wdk.sku.channelsku.update - -批量更新渠道商品,商家通过Top接入 -*/ -type AlibabaWdkSkuChannelskuUpdateAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuChannelskuUpdateResponse -} - -// 更新渠道商品 成功返回结果 -type AlibabaWdkSkuChannelskuUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_channelsku_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *AlibabaWdkSkuChannelskuUpdateApiResults `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuCombineskuAddAPIRequest.go b/model/wdk/AlibabaWdkSkuCombineskuAddAPIRequest.go new file mode 100644 index 0000000000..ab05501007 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuCombineskuAddAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +组合商品新增接口 API请求 +alibaba.wdk.sku.combinesku.add + +组合商品新增接口 +*/ +type AlibabaWdkSkuCombineskuAddAPIRequest struct { + model.Params + // 请求参数 + _paramList []SkuDo +} + +// 初始化AlibabaWdkSkuCombineskuAddAPIRequest对象 +func NewAlibabaWdkSkuCombineskuAddRequest() *AlibabaWdkSkuCombineskuAddAPIRequest{ + return &AlibabaWdkSkuCombineskuAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuCombineskuAddAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.combinesku.add" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuCombineskuAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamList Setter +// 请求参数 +func (r *AlibabaWdkSkuCombineskuAddAPIRequest) SetParamList(_paramList []SkuDo) error { + r._paramList = _paramList + r.Set("param_list", _paramList) + return nil +} + +// ParamList Getter +func (r AlibabaWdkSkuCombineskuAddAPIRequest) GetParamList() []SkuDo { + return r._paramList +} diff --git a/model/wdk/AlibabaWdkSkuCombineskuAddAPIResponse.go b/model/wdk/AlibabaWdkSkuCombineskuAddAPIResponse.go new file mode 100644 index 0000000000..c99b2eb8be --- /dev/null +++ b/model/wdk/AlibabaWdkSkuCombineskuAddAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +组合商品新增接口 API返回值 +alibaba.wdk.sku.combinesku.add + +组合商品新增接口 +*/ +type AlibabaWdkSkuCombineskuAddAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuCombineskuAddAPIResponseModel +} + +// 组合商品新增接口 成功返回结果 +type AlibabaWdkSkuCombineskuAddAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_combinesku_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *AlibabaWdkSkuCombineskuAddApiResults `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuCombineskuAddResponse.go b/model/wdk/AlibabaWdkSkuCombineskuAddResponse.go deleted file mode 100644 index dc0a5d99ee..0000000000 --- a/model/wdk/AlibabaWdkSkuCombineskuAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -组合商品新增接口 API返回值 -alibaba.wdk.sku.combinesku.add - -组合商品新增接口 -*/ -type AlibabaWdkSkuCombineskuAddAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuCombineskuAddResponse -} - -// 组合商品新增接口 成功返回结果 -type AlibabaWdkSkuCombineskuAddResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_combinesku_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *AlibabaWdkSkuCombineskuAddApiResults `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuCombineskuQueryAPIRequest.go b/model/wdk/AlibabaWdkSkuCombineskuQueryAPIRequest.go new file mode 100644 index 0000000000..9f83594ba0 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuCombineskuQueryAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +组合商品查询接口 API请求 +alibaba.wdk.sku.combinesku.query + +查询组合商品接口 +*/ +type AlibabaWdkSkuCombineskuQueryAPIRequest struct { + model.Params + // 请求参数 + _param *SkuQueryDo +} + +// 初始化AlibabaWdkSkuCombineskuQueryAPIRequest对象 +func NewAlibabaWdkSkuCombineskuQueryRequest() *AlibabaWdkSkuCombineskuQueryAPIRequest{ + return &AlibabaWdkSkuCombineskuQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuCombineskuQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.combinesku.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuCombineskuQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 请求参数 +func (r *AlibabaWdkSkuCombineskuQueryAPIRequest) SetParam(_param *SkuQueryDo) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkSkuCombineskuQueryAPIRequest) GetParam() *SkuQueryDo { + return r._param +} diff --git a/model/wdk/AlibabaWdkSkuCombineskuQueryAPIResponse.go b/model/wdk/AlibabaWdkSkuCombineskuQueryAPIResponse.go new file mode 100644 index 0000000000..955c6e9c49 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuCombineskuQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +组合商品查询接口 API返回值 +alibaba.wdk.sku.combinesku.query + +查询组合商品接口 +*/ +type AlibabaWdkSkuCombineskuQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuCombineskuQueryAPIResponseModel +} + +// 组合商品查询接口 成功返回结果 +type AlibabaWdkSkuCombineskuQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_combinesku_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *AlibabaWdkSkuCombineskuQueryApiResults `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuCombineskuQueryResponse.go b/model/wdk/AlibabaWdkSkuCombineskuQueryResponse.go deleted file mode 100644 index 93fdf1f47e..0000000000 --- a/model/wdk/AlibabaWdkSkuCombineskuQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -组合商品查询接口 API返回值 -alibaba.wdk.sku.combinesku.query - -查询组合商品接口 -*/ -type AlibabaWdkSkuCombineskuQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuCombineskuQueryResponse -} - -// 组合商品查询接口 成功返回结果 -type AlibabaWdkSkuCombineskuQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_combinesku_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *AlibabaWdkSkuCombineskuQueryApiResults `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuCombineskuUpdateAPIRequest.go b/model/wdk/AlibabaWdkSkuCombineskuUpdateAPIRequest.go new file mode 100644 index 0000000000..3e0bcbc2bc --- /dev/null +++ b/model/wdk/AlibabaWdkSkuCombineskuUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +组合商品更新接口 API请求 +alibaba.wdk.sku.combinesku.update + +组合商品修改接口 +*/ +type AlibabaWdkSkuCombineskuUpdateAPIRequest struct { + model.Params + // 请求参数 + _paramList []SkuDo +} + +// 初始化AlibabaWdkSkuCombineskuUpdateAPIRequest对象 +func NewAlibabaWdkSkuCombineskuUpdateRequest() *AlibabaWdkSkuCombineskuUpdateAPIRequest{ + return &AlibabaWdkSkuCombineskuUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuCombineskuUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.combinesku.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuCombineskuUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamList Setter +// 请求参数 +func (r *AlibabaWdkSkuCombineskuUpdateAPIRequest) SetParamList(_paramList []SkuDo) error { + r._paramList = _paramList + r.Set("param_list", _paramList) + return nil +} + +// ParamList Getter +func (r AlibabaWdkSkuCombineskuUpdateAPIRequest) GetParamList() []SkuDo { + return r._paramList +} diff --git a/model/wdk/AlibabaWdkSkuCombineskuUpdateAPIResponse.go b/model/wdk/AlibabaWdkSkuCombineskuUpdateAPIResponse.go new file mode 100644 index 0000000000..f801cc9275 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuCombineskuUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +组合商品更新接口 API返回值 +alibaba.wdk.sku.combinesku.update + +组合商品修改接口 +*/ +type AlibabaWdkSkuCombineskuUpdateAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuCombineskuUpdateAPIResponseModel +} + +// 组合商品更新接口 成功返回结果 +type AlibabaWdkSkuCombineskuUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_combinesku_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *AlibabaWdkSkuCombineskuUpdateApiResults `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuCombineskuUpdateResponse.go b/model/wdk/AlibabaWdkSkuCombineskuUpdateResponse.go deleted file mode 100644 index b1c135923b..0000000000 --- a/model/wdk/AlibabaWdkSkuCombineskuUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -组合商品更新接口 API返回值 -alibaba.wdk.sku.combinesku.update - -组合商品修改接口 -*/ -type AlibabaWdkSkuCombineskuUpdateAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuCombineskuUpdateResponse -} - -// 组合商品更新接口 成功返回结果 -type AlibabaWdkSkuCombineskuUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_combinesku_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *AlibabaWdkSkuCombineskuUpdateApiResults `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuFeatureAPIRequest.go b/model/wdk/AlibabaWdkSkuFeatureAPIRequest.go new file mode 100644 index 0000000000..fe139336a1 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuFeatureAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品标记接口 API请求 +alibaba.wdk.sku.feature + +给淘鲜达商品属性之外的打标通用能力,满足商品一些特殊的需求,比如是否参加营销。 +*/ +type AlibabaWdkSkuFeatureAPIRequest struct { + model.Params + // SkuFeatureDo + _param *SkuFeatureDo +} + +// 初始化AlibabaWdkSkuFeatureAPIRequest对象 +func NewAlibabaWdkSkuFeatureRequest() *AlibabaWdkSkuFeatureAPIRequest{ + return &AlibabaWdkSkuFeatureAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuFeatureAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.feature" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuFeatureAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// SkuFeatureDo +func (r *AlibabaWdkSkuFeatureAPIRequest) SetParam(_param *SkuFeatureDo) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkSkuFeatureAPIRequest) GetParam() *SkuFeatureDo { + return r._param +} diff --git a/model/wdk/AlibabaWdkSkuFeatureAPIResponse.go b/model/wdk/AlibabaWdkSkuFeatureAPIResponse.go new file mode 100644 index 0000000000..a9c1679c7c --- /dev/null +++ b/model/wdk/AlibabaWdkSkuFeatureAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品标记接口 API返回值 +alibaba.wdk.sku.feature + +给淘鲜达商品属性之外的打标通用能力,满足商品一些特殊的需求,比如是否参加营销。 +*/ +type AlibabaWdkSkuFeatureAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuFeatureAPIResponseModel +} + +// 商品标记接口 成功返回结果 +type AlibabaWdkSkuFeatureAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_feature_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 根据站点名称查询产品 + Result *AlibabaWdkSkuFeatureApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuFeatureResponse.go b/model/wdk/AlibabaWdkSkuFeatureResponse.go deleted file mode 100644 index c387ba8978..0000000000 --- a/model/wdk/AlibabaWdkSkuFeatureResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品标记接口 API返回值 -alibaba.wdk.sku.feature - -给淘鲜达商品属性之外的打标通用能力,满足商品一些特殊的需求,比如是否参加营销。 -*/ -type AlibabaWdkSkuFeatureAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuFeatureResponse -} - -// 商品标记接口 成功返回结果 -type AlibabaWdkSkuFeatureResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_feature_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 根据站点名称查询产品 - Result *AlibabaWdkSkuFeatureApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuMerchantskuScrollQueryAPIRequest.go b/model/wdk/AlibabaWdkSkuMerchantskuScrollQueryAPIRequest.go new file mode 100644 index 0000000000..f1a62a06b3 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuMerchantskuScrollQueryAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家商品批量查询接口 API请求 +alibaba.wdk.sku.merchantsku.scroll.query + +提供主档商品数据接口查询 +*/ +type AlibabaWdkSkuMerchantskuScrollQueryAPIRequest struct { + model.Params + // HM + _orgNo string + // 第一次为null,后面从结果中获取 + _scrollId string +} + +// 初始化AlibabaWdkSkuMerchantskuScrollQueryAPIRequest对象 +func NewAlibabaWdkSkuMerchantskuScrollQueryRequest() *AlibabaWdkSkuMerchantskuScrollQueryAPIRequest{ + return &AlibabaWdkSkuMerchantskuScrollQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuMerchantskuScrollQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.merchantsku.scroll.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuMerchantskuScrollQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrgNo Setter +// HM +func (r *AlibabaWdkSkuMerchantskuScrollQueryAPIRequest) SetOrgNo(_orgNo string) error { + r._orgNo = _orgNo + r.Set("org_no", _orgNo) + return nil +} + +// OrgNo Getter +func (r AlibabaWdkSkuMerchantskuScrollQueryAPIRequest) GetOrgNo() string { + return r._orgNo +} +// ScrollId Setter +// 第一次为null,后面从结果中获取 +func (r *AlibabaWdkSkuMerchantskuScrollQueryAPIRequest) SetScrollId(_scrollId string) error { + r._scrollId = _scrollId + r.Set("scroll_id", _scrollId) + return nil +} + +// ScrollId Getter +func (r AlibabaWdkSkuMerchantskuScrollQueryAPIRequest) GetScrollId() string { + return r._scrollId +} diff --git a/model/wdk/AlibabaWdkSkuMerchantskuScrollQueryAPIResponse.go b/model/wdk/AlibabaWdkSkuMerchantskuScrollQueryAPIResponse.go new file mode 100644 index 0000000000..1d8de1711a --- /dev/null +++ b/model/wdk/AlibabaWdkSkuMerchantskuScrollQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家商品批量查询接口 API返回值 +alibaba.wdk.sku.merchantsku.scroll.query + +提供主档商品数据接口查询 +*/ +type AlibabaWdkSkuMerchantskuScrollQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuMerchantskuScrollQueryAPIResponseModel +} + +// 商家商品批量查询接口 成功返回结果 +type AlibabaWdkSkuMerchantskuScrollQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_merchantsku_scroll_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求结果对象 + Result *ApiScrollPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuMerchantskuScrollQueryResponse.go b/model/wdk/AlibabaWdkSkuMerchantskuScrollQueryResponse.go deleted file mode 100644 index a5bd285422..0000000000 --- a/model/wdk/AlibabaWdkSkuMerchantskuScrollQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家商品批量查询接口 API返回值 -alibaba.wdk.sku.merchantsku.scroll.query - -提供主档商品数据接口查询 -*/ -type AlibabaWdkSkuMerchantskuScrollQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuMerchantskuScrollQueryResponse -} - -// 商家商品批量查询接口 成功返回结果 -type AlibabaWdkSkuMerchantskuScrollQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_merchantsku_scroll_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求结果对象 - Result *ApiScrollPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuQueryAPIRequest.go b/model/wdk/AlibabaWdkSkuQueryAPIRequest.go new file mode 100644 index 0000000000..d5289c2405 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuQueryAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品 API请求 +alibaba.wdk.sku.query + +查询商品 +*/ +type AlibabaWdkSkuQueryAPIRequest struct { + model.Params + // 入参 + _param *SkuQueryDo +} + +// 初始化AlibabaWdkSkuQueryAPIRequest对象 +func NewAlibabaWdkSkuQueryRequest() *AlibabaWdkSkuQueryAPIRequest{ + return &AlibabaWdkSkuQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 入参 +func (r *AlibabaWdkSkuQueryAPIRequest) SetParam(_param *SkuQueryDo) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r AlibabaWdkSkuQueryAPIRequest) GetParam() *SkuQueryDo { + return r._param +} diff --git a/model/wdk/AlibabaWdkSkuQueryAPIResponse.go b/model/wdk/AlibabaWdkSkuQueryAPIResponse.go new file mode 100644 index 0000000000..3812cc1b1a --- /dev/null +++ b/model/wdk/AlibabaWdkSkuQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商品 API返回值 +alibaba.wdk.sku.query + +查询商品 +*/ +type AlibabaWdkSkuQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuQueryAPIResponseModel +} + +// 查询商品 成功返回结果 +type AlibabaWdkSkuQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *AlibabaWdkSkuQueryApiResults `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuQueryResponse.go b/model/wdk/AlibabaWdkSkuQueryResponse.go deleted file mode 100644 index 38ee228fb8..0000000000 --- a/model/wdk/AlibabaWdkSkuQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询商品 API返回值 -alibaba.wdk.sku.query - -查询商品 -*/ -type AlibabaWdkSkuQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuQueryResponse -} - -// 查询商品 成功返回结果 -type AlibabaWdkSkuQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *AlibabaWdkSkuQueryApiResults `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuScrollQueryAPIRequest.go b/model/wdk/AlibabaWdkSkuScrollQueryAPIRequest.go new file mode 100644 index 0000000000..5fd3108ce8 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuScrollQueryAPIRequest.go @@ -0,0 +1,94 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店商品批量游标方式查询接口 API请求 +alibaba.wdk.sku.scroll.query + +通过游标方式批量获取门店商品信息,包括商品条码,商品名称,价格,会员价等信息。 +*/ +type AlibabaWdkSkuScrollQueryAPIRequest struct { + model.Params + // 商家类目编码 + _merchantCatCode string + // 门店编码 + _ouCode string + // 游标:第一次请求不用填写,否则请填写上一次请求返回的值,直到获取到足够的数据 + _scrollId string + // 英文逗号分隔的商品编码,最多20个。如果配合门店字段使用,直接非游标方式返回商品数据 + _skuCodes string +} + +// 初始化AlibabaWdkSkuScrollQueryAPIRequest对象 +func NewAlibabaWdkSkuScrollQueryRequest() *AlibabaWdkSkuScrollQueryAPIRequest{ + return &AlibabaWdkSkuScrollQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuScrollQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.scroll.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuScrollQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MerchantCatCode Setter +// 商家类目编码 +func (r *AlibabaWdkSkuScrollQueryAPIRequest) SetMerchantCatCode(_merchantCatCode string) error { + r._merchantCatCode = _merchantCatCode + r.Set("merchant_cat_code", _merchantCatCode) + return nil +} + +// MerchantCatCode Getter +func (r AlibabaWdkSkuScrollQueryAPIRequest) GetMerchantCatCode() string { + return r._merchantCatCode +} +// OuCode Setter +// 门店编码 +func (r *AlibabaWdkSkuScrollQueryAPIRequest) SetOuCode(_ouCode string) error { + r._ouCode = _ouCode + r.Set("ou_code", _ouCode) + return nil +} + +// OuCode Getter +func (r AlibabaWdkSkuScrollQueryAPIRequest) GetOuCode() string { + return r._ouCode +} +// ScrollId Setter +// 游标:第一次请求不用填写,否则请填写上一次请求返回的值,直到获取到足够的数据 +func (r *AlibabaWdkSkuScrollQueryAPIRequest) SetScrollId(_scrollId string) error { + r._scrollId = _scrollId + r.Set("scroll_id", _scrollId) + return nil +} + +// ScrollId Getter +func (r AlibabaWdkSkuScrollQueryAPIRequest) GetScrollId() string { + return r._scrollId +} +// SkuCodes Setter +// 英文逗号分隔的商品编码,最多20个。如果配合门店字段使用,直接非游标方式返回商品数据 +func (r *AlibabaWdkSkuScrollQueryAPIRequest) SetSkuCodes(_skuCodes string) error { + r._skuCodes = _skuCodes + r.Set("sku_codes", _skuCodes) + return nil +} + +// SkuCodes Getter +func (r AlibabaWdkSkuScrollQueryAPIRequest) GetSkuCodes() string { + return r._skuCodes +} diff --git a/model/wdk/AlibabaWdkSkuScrollQueryAPIResponse.go b/model/wdk/AlibabaWdkSkuScrollQueryAPIResponse.go new file mode 100644 index 0000000000..cbee5153e1 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuScrollQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店商品批量游标方式查询接口 API返回值 +alibaba.wdk.sku.scroll.query + +通过游标方式批量获取门店商品信息,包括商品条码,商品名称,价格,会员价等信息。 +*/ +type AlibabaWdkSkuScrollQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuScrollQueryAPIResponseModel +} + +// 门店商品批量游标方式查询接口 成功返回结果 +type AlibabaWdkSkuScrollQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_scroll_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *ApiScrollPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuScrollQueryResponse.go b/model/wdk/AlibabaWdkSkuScrollQueryResponse.go deleted file mode 100644 index 0bd97a6a61..0000000000 --- a/model/wdk/AlibabaWdkSkuScrollQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店商品批量游标方式查询接口 API返回值 -alibaba.wdk.sku.scroll.query - -通过游标方式批量获取门店商品信息,包括商品条码,商品名称,价格,会员价等信息。 -*/ -type AlibabaWdkSkuScrollQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuScrollQueryResponse -} - -// 门店商品批量游标方式查询接口 成功返回结果 -type AlibabaWdkSkuScrollQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_scroll_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *ApiScrollPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuStoreskuScrollQueryAPIRequest.go b/model/wdk/AlibabaWdkSkuStoreskuScrollQueryAPIRequest.go new file mode 100644 index 0000000000..b7d95b5c63 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuStoreskuScrollQueryAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店商品批量查询接口 API请求 +alibaba.wdk.sku.storesku.scroll.query + +提供门店商品批量查询接口 +*/ +type AlibabaWdkSkuStoreskuScrollQueryAPIRequest struct { + model.Params + // 经营的id + _storeId string + // 历游标,首次调用传递null,后续传递ScrollPageResult.getScrollId() + _scrollId string +} + +// 初始化AlibabaWdkSkuStoreskuScrollQueryAPIRequest对象 +func NewAlibabaWdkSkuStoreskuScrollQueryRequest() *AlibabaWdkSkuStoreskuScrollQueryAPIRequest{ + return &AlibabaWdkSkuStoreskuScrollQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuStoreskuScrollQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.storesku.scroll.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuStoreskuScrollQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 经营的id +func (r *AlibabaWdkSkuStoreskuScrollQueryAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaWdkSkuStoreskuScrollQueryAPIRequest) GetStoreId() string { + return r._storeId +} +// ScrollId Setter +// 历游标,首次调用传递null,后续传递ScrollPageResult.getScrollId() +func (r *AlibabaWdkSkuStoreskuScrollQueryAPIRequest) SetScrollId(_scrollId string) error { + r._scrollId = _scrollId + r.Set("scroll_id", _scrollId) + return nil +} + +// ScrollId Getter +func (r AlibabaWdkSkuStoreskuScrollQueryAPIRequest) GetScrollId() string { + return r._scrollId +} diff --git a/model/wdk/AlibabaWdkSkuStoreskuScrollQueryAPIResponse.go b/model/wdk/AlibabaWdkSkuStoreskuScrollQueryAPIResponse.go new file mode 100644 index 0000000000..b5fdb81ed8 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuStoreskuScrollQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店商品批量查询接口 API返回值 +alibaba.wdk.sku.storesku.scroll.query + +提供门店商品批量查询接口 +*/ +type AlibabaWdkSkuStoreskuScrollQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuStoreskuScrollQueryAPIResponseModel +} + +// 门店商品批量查询接口 成功返回结果 +type AlibabaWdkSkuStoreskuScrollQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_storesku_scroll_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求结果 + Result *ApiScrollPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuStoreskuScrollQueryResponse.go b/model/wdk/AlibabaWdkSkuStoreskuScrollQueryResponse.go deleted file mode 100644 index d5481c1b50..0000000000 --- a/model/wdk/AlibabaWdkSkuStoreskuScrollQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店商品批量查询接口 API返回值 -alibaba.wdk.sku.storesku.scroll.query - -提供门店商品批量查询接口 -*/ -type AlibabaWdkSkuStoreskuScrollQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuStoreskuScrollQueryResponse -} - -// 门店商品批量查询接口 成功返回结果 -type AlibabaWdkSkuStoreskuScrollQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_storesku_scroll_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求结果 - Result *ApiScrollPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuUpdateAPIRequest.go b/model/wdk/AlibabaWdkSkuUpdateAPIRequest.go new file mode 100644 index 0000000000..2c73eeb63b --- /dev/null +++ b/model/wdk/AlibabaWdkSkuUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新商品 API请求 +alibaba.wdk.sku.update + +开放商品更新接口 +*/ +type AlibabaWdkSkuUpdateAPIRequest struct { + model.Params + // 参数列表 + _paramList []SkuDo +} + +// 初始化AlibabaWdkSkuUpdateAPIRequest对象 +func NewAlibabaWdkSkuUpdateRequest() *AlibabaWdkSkuUpdateAPIRequest{ + return &AlibabaWdkSkuUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ParamList Setter +// 参数列表 +func (r *AlibabaWdkSkuUpdateAPIRequest) SetParamList(_paramList []SkuDo) error { + r._paramList = _paramList + r.Set("param_list", _paramList) + return nil +} + +// ParamList Getter +func (r AlibabaWdkSkuUpdateAPIRequest) GetParamList() []SkuDo { + return r._paramList +} diff --git a/model/wdk/AlibabaWdkSkuUpdateAPIResponse.go b/model/wdk/AlibabaWdkSkuUpdateAPIResponse.go new file mode 100644 index 0000000000..fdabf80ed1 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新商品 API返回值 +alibaba.wdk.sku.update + +开放商品更新接口 +*/ +type AlibabaWdkSkuUpdateAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuUpdateAPIResponseModel +} + +// 更新商品 成功返回结果 +type AlibabaWdkSkuUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 执行结果 + Result *AlibabaWdkSkuUpdateApiResults `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuUpdateResponse.go b/model/wdk/AlibabaWdkSkuUpdateResponse.go deleted file mode 100644 index 748dd867e0..0000000000 --- a/model/wdk/AlibabaWdkSkuUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新商品 API返回值 -alibaba.wdk.sku.update - -开放商品更新接口 -*/ -type AlibabaWdkSkuUpdateAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuUpdateResponse -} - -// 更新商品 成功返回结果 -type AlibabaWdkSkuUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 执行结果 - Result *AlibabaWdkSkuUpdateApiResults `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuWarehouseskuQueryAPIRequest.go b/model/wdk/AlibabaWdkSkuWarehouseskuQueryAPIRequest.go new file mode 100644 index 0000000000..96f5b41e7a --- /dev/null +++ b/model/wdk/AlibabaWdkSkuWarehouseskuQueryAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +仓商品查询接口(指定商品编码) API请求 +alibaba.wdk.sku.warehousesku.query + +提供指定仓商品编码查询 +*/ +type AlibabaWdkSkuWarehouseskuQueryAPIRequest struct { + model.Params + // 商品编码 + _skuCodeList []string + // 仓编码 + _warehouseCode string +} + +// 初始化AlibabaWdkSkuWarehouseskuQueryAPIRequest对象 +func NewAlibabaWdkSkuWarehouseskuQueryRequest() *AlibabaWdkSkuWarehouseskuQueryAPIRequest{ + return &AlibabaWdkSkuWarehouseskuQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuWarehouseskuQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.warehousesku.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuWarehouseskuQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkuCodeList Setter +// 商品编码 +func (r *AlibabaWdkSkuWarehouseskuQueryAPIRequest) SetSkuCodeList(_skuCodeList []string) error { + r._skuCodeList = _skuCodeList + r.Set("sku_code_list", _skuCodeList) + return nil +} + +// SkuCodeList Getter +func (r AlibabaWdkSkuWarehouseskuQueryAPIRequest) GetSkuCodeList() []string { + return r._skuCodeList +} +// WarehouseCode Setter +// 仓编码 +func (r *AlibabaWdkSkuWarehouseskuQueryAPIRequest) SetWarehouseCode(_warehouseCode string) error { + r._warehouseCode = _warehouseCode + r.Set("warehouse_code", _warehouseCode) + return nil +} + +// WarehouseCode Getter +func (r AlibabaWdkSkuWarehouseskuQueryAPIRequest) GetWarehouseCode() string { + return r._warehouseCode +} diff --git a/model/wdk/AlibabaWdkSkuWarehouseskuQueryAPIResponse.go b/model/wdk/AlibabaWdkSkuWarehouseskuQueryAPIResponse.go new file mode 100644 index 0000000000..ce50284452 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuWarehouseskuQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +仓商品查询接口(指定商品编码) API返回值 +alibaba.wdk.sku.warehousesku.query + +提供指定仓商品编码查询 +*/ +type AlibabaWdkSkuWarehouseskuQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuWarehouseskuQueryAPIResponseModel +} + +// 仓商品查询接口(指定商品编码) 成功返回结果 +type AlibabaWdkSkuWarehouseskuQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_warehousesku_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *AlibabaWdkSkuWarehouseskuQueryApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuWarehouseskuQueryResponse.go b/model/wdk/AlibabaWdkSkuWarehouseskuQueryResponse.go deleted file mode 100644 index 63de8d80df..0000000000 --- a/model/wdk/AlibabaWdkSkuWarehouseskuQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -仓商品查询接口(指定商品编码) API返回值 -alibaba.wdk.sku.warehousesku.query - -提供指定仓商品编码查询 -*/ -type AlibabaWdkSkuWarehouseskuQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuWarehouseskuQueryResponse -} - -// 仓商品查询接口(指定商品编码) 成功返回结果 -type AlibabaWdkSkuWarehouseskuQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_warehousesku_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *AlibabaWdkSkuWarehouseskuQueryApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSkuWarehouseskuScrollQueryAPIRequest.go b/model/wdk/AlibabaWdkSkuWarehouseskuScrollQueryAPIRequest.go new file mode 100644 index 0000000000..7fee9d9276 --- /dev/null +++ b/model/wdk/AlibabaWdkSkuWarehouseskuScrollQueryAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +仓商品遍历接口(游标) API请求 +alibaba.wdk.sku.warehousesku.scroll.query + +提供仓商品数据接口查询 +*/ +type AlibabaWdkSkuWarehouseskuScrollQueryAPIRequest struct { + model.Params + // 仓库编码 + _warehouseCode string + // 游标 + _scrollId string +} + +// 初始化AlibabaWdkSkuWarehouseskuScrollQueryAPIRequest对象 +func NewAlibabaWdkSkuWarehouseskuScrollQueryRequest() *AlibabaWdkSkuWarehouseskuScrollQueryAPIRequest{ + return &AlibabaWdkSkuWarehouseskuScrollQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSkuWarehouseskuScrollQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sku.warehousesku.scroll.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSkuWarehouseskuScrollQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseCode Setter +// 仓库编码 +func (r *AlibabaWdkSkuWarehouseskuScrollQueryAPIRequest) SetWarehouseCode(_warehouseCode string) error { + r._warehouseCode = _warehouseCode + r.Set("warehouse_code", _warehouseCode) + return nil +} + +// WarehouseCode Getter +func (r AlibabaWdkSkuWarehouseskuScrollQueryAPIRequest) GetWarehouseCode() string { + return r._warehouseCode +} +// ScrollId Setter +// 游标 +func (r *AlibabaWdkSkuWarehouseskuScrollQueryAPIRequest) SetScrollId(_scrollId string) error { + r._scrollId = _scrollId + r.Set("scroll_id", _scrollId) + return nil +} + +// ScrollId Getter +func (r AlibabaWdkSkuWarehouseskuScrollQueryAPIRequest) GetScrollId() string { + return r._scrollId +} diff --git a/model/wdk/AlibabaWdkSkuWarehouseskuScrollQueryAPIResponse.go b/model/wdk/AlibabaWdkSkuWarehouseskuScrollQueryAPIResponse.go new file mode 100644 index 0000000000..ee88a3b5ee --- /dev/null +++ b/model/wdk/AlibabaWdkSkuWarehouseskuScrollQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +仓商品遍历接口(游标) API返回值 +alibaba.wdk.sku.warehousesku.scroll.query + +提供仓商品数据接口查询 +*/ +type AlibabaWdkSkuWarehouseskuScrollQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkSkuWarehouseskuScrollQueryAPIResponseModel +} + +// 仓商品遍历接口(游标) 成功返回结果 +type AlibabaWdkSkuWarehouseskuScrollQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sku_warehousesku_scroll_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *ApiScrollPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSkuWarehouseskuScrollQueryResponse.go b/model/wdk/AlibabaWdkSkuWarehouseskuScrollQueryResponse.go deleted file mode 100644 index 9de50540e0..0000000000 --- a/model/wdk/AlibabaWdkSkuWarehouseskuScrollQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -仓商品遍历接口(游标) API返回值 -alibaba.wdk.sku.warehousesku.scroll.query - -提供仓商品数据接口查询 -*/ -type AlibabaWdkSkuWarehouseskuScrollQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkSkuWarehouseskuScrollQueryResponse -} - -// 仓商品遍历接口(游标) 成功返回结果 -type AlibabaWdkSkuWarehouseskuScrollQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sku_warehousesku_scroll_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *ApiScrollPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSopoPushTriggerAPIRequest.go b/model/wdk/AlibabaWdkSopoPushTriggerAPIRequest.go new file mode 100644 index 0000000000..b26b99fcb0 --- /dev/null +++ b/model/wdk/AlibabaWdkSopoPushTriggerAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +猫超共享库存寄售sopo推送触发 API请求 +alibaba.wdk.sopo.push.trigger + +猫超共享库存寄售sopo触发推送给商家 +*/ +type AlibabaWdkSopoPushTriggerAPIRequest struct { + model.Params + // 系统自动生成 + _wdkOpenPushSoPoRequest *WdkOpenPushSoPoRequest +} + +// 初始化AlibabaWdkSopoPushTriggerAPIRequest对象 +func NewAlibabaWdkSopoPushTriggerRequest() *AlibabaWdkSopoPushTriggerAPIRequest{ + return &AlibabaWdkSopoPushTriggerAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSopoPushTriggerAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.sopo.push.trigger" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSopoPushTriggerAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WdkOpenPushSoPoRequest Setter +// 系统自动生成 +func (r *AlibabaWdkSopoPushTriggerAPIRequest) SetWdkOpenPushSoPoRequest(_wdkOpenPushSoPoRequest *WdkOpenPushSoPoRequest) error { + r._wdkOpenPushSoPoRequest = _wdkOpenPushSoPoRequest + r.Set("wdk_open_push_so_po_request", _wdkOpenPushSoPoRequest) + return nil +} + +// WdkOpenPushSoPoRequest Getter +func (r AlibabaWdkSopoPushTriggerAPIRequest) GetWdkOpenPushSoPoRequest() *WdkOpenPushSoPoRequest { + return r._wdkOpenPushSoPoRequest +} diff --git a/model/wdk/AlibabaWdkSopoPushTriggerAPIResponse.go b/model/wdk/AlibabaWdkSopoPushTriggerAPIResponse.go new file mode 100644 index 0000000000..0d6641e0bd --- /dev/null +++ b/model/wdk/AlibabaWdkSopoPushTriggerAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +猫超共享库存寄售sopo推送触发 API返回值 +alibaba.wdk.sopo.push.trigger + +猫超共享库存寄售sopo触发推送给商家 +*/ +type AlibabaWdkSopoPushTriggerAPIResponse struct { + model.CommonResponse + AlibabaWdkSopoPushTriggerAPIResponseModel +} + +// 猫超共享库存寄售sopo推送触发 成功返回结果 +type AlibabaWdkSopoPushTriggerAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_sopo_push_trigger_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 根据站点名称查询产品 + Result *AlibabaWdkSopoPushTriggerApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSopoPushTriggerResponse.go b/model/wdk/AlibabaWdkSopoPushTriggerResponse.go deleted file mode 100644 index 2fff9293b4..0000000000 --- a/model/wdk/AlibabaWdkSopoPushTriggerResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -猫超共享库存寄售sopo推送触发 API返回值 -alibaba.wdk.sopo.push.trigger - -猫超共享库存寄售sopo触发推送给商家 -*/ -type AlibabaWdkSopoPushTriggerAPIResponse struct { - model.CommonResponse - AlibabaWdkSopoPushTriggerResponse -} - -// 猫超共享库存寄售sopo推送触发 成功返回结果 -type AlibabaWdkSopoPushTriggerResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_sopo_push_trigger_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 根据站点名称查询产品 - Result *AlibabaWdkSopoPushTriggerApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkStockCabinetQueryAPIRequest.go b/model/wdk/AlibabaWdkStockCabinetQueryAPIRequest.go new file mode 100644 index 0000000000..dfe68183ad --- /dev/null +++ b/model/wdk/AlibabaWdkStockCabinetQueryAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +仓内实时库位库存查询 API请求 +alibaba.wdk.stock.cabinet.query + +查询仓内实时库位库存信息 +*/ +type AlibabaWdkStockCabinetQueryAPIRequest struct { + model.Params + // 系统自动生成 + _query *WmsInventoryTopQuery +} + +// 初始化AlibabaWdkStockCabinetQueryAPIRequest对象 +func NewAlibabaWdkStockCabinetQueryRequest() *AlibabaWdkStockCabinetQueryAPIRequest{ + return &AlibabaWdkStockCabinetQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkStockCabinetQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.stock.cabinet.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkStockCabinetQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 系统自动生成 +func (r *AlibabaWdkStockCabinetQueryAPIRequest) SetQuery(_query *WmsInventoryTopQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaWdkStockCabinetQueryAPIRequest) GetQuery() *WmsInventoryTopQuery { + return r._query +} diff --git a/model/wdk/AlibabaWdkStockCabinetQueryAPIResponse.go b/model/wdk/AlibabaWdkStockCabinetQueryAPIResponse.go new file mode 100644 index 0000000000..8cbde5cabe --- /dev/null +++ b/model/wdk/AlibabaWdkStockCabinetQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +仓内实时库位库存查询 API返回值 +alibaba.wdk.stock.cabinet.query + +查询仓内实时库位库存信息 +*/ +type AlibabaWdkStockCabinetQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkStockCabinetQueryAPIResponseModel +} + +// 仓内实时库位库存查询 成功返回结果 +type AlibabaWdkStockCabinetQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_stock_cabinet_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkStockCabinetQueryResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkStockCabinetQueryResponse.go b/model/wdk/AlibabaWdkStockCabinetQueryResponse.go deleted file mode 100644 index 613fb21c4b..0000000000 --- a/model/wdk/AlibabaWdkStockCabinetQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -仓内实时库位库存查询 API返回值 -alibaba.wdk.stock.cabinet.query - -查询仓内实时库位库存信息 -*/ -type AlibabaWdkStockCabinetQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkStockCabinetQueryResponse -} - -// 仓内实时库位库存查询 成功返回结果 -type AlibabaWdkStockCabinetQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_stock_cabinet_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkStockCabinetQueryResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkStockCabinetQueryResultDo.go b/model/wdk/AlibabaWdkStockCabinetQueryResultDo.go new file mode 100644 index 0000000000..6f42c9cb27 --- /dev/null +++ b/model/wdk/AlibabaWdkStockCabinetQueryResultDo.go @@ -0,0 +1,13 @@ +package wdk + +// AlibabaWdkStockCabinetQueryResultDo +type AlibabaWdkStockCabinetQueryResultDo struct { + // 错误信息详细描述 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // 错误code + ErrCode int64 `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 调用是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // 返回的结果数据 + Data *InventoryTopResultBo `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/wdk/AlibabaWdkStockPublishAPIRequest.go b/model/wdk/AlibabaWdkStockPublishAPIRequest.go new file mode 100644 index 0000000000..80c6911652 --- /dev/null +++ b/model/wdk/AlibabaWdkStockPublishAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口库存发布接口(针对外部渠道) API请求 +alibaba.wdk.stock.publish + +五道口库存发布接口(针对外部渠道) +*/ +type AlibabaWdkStockPublishAPIRequest struct { + model.Params + // 批量参数 + _batchStockPublishDto *BatchStockPublishDto +} + +// 初始化AlibabaWdkStockPublishAPIRequest对象 +func NewAlibabaWdkStockPublishRequest() *AlibabaWdkStockPublishAPIRequest{ + return &AlibabaWdkStockPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkStockPublishAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.stock.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkStockPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BatchStockPublishDto Setter +// 批量参数 +func (r *AlibabaWdkStockPublishAPIRequest) SetBatchStockPublishDto(_batchStockPublishDto *BatchStockPublishDto) error { + r._batchStockPublishDto = _batchStockPublishDto + r.Set("batch_stock_publish_dto", _batchStockPublishDto) + return nil +} + +// BatchStockPublishDto Getter +func (r AlibabaWdkStockPublishAPIRequest) GetBatchStockPublishDto() *BatchStockPublishDto { + return r._batchStockPublishDto +} diff --git a/model/wdk/AlibabaWdkStockPublishAPIResponse.go b/model/wdk/AlibabaWdkStockPublishAPIResponse.go new file mode 100644 index 0000000000..40450fb999 --- /dev/null +++ b/model/wdk/AlibabaWdkStockPublishAPIResponse.go @@ -0,0 +1,31 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口库存发布接口(针对外部渠道) API返回值 +alibaba.wdk.stock.publish + +五道口库存发布接口(针对外部渠道) +*/ +type AlibabaWdkStockPublishAPIResponse struct { + model.CommonResponse + AlibabaWdkStockPublishAPIResponseModel +} + +// 五道口库存发布接口(针对外部渠道) 成功返回结果 +type AlibabaWdkStockPublishAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_stock_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // errorCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // errorMsg + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/wdk/AlibabaWdkStockPublishResponse.go b/model/wdk/AlibabaWdkStockPublishResponse.go deleted file mode 100644 index 0e4793052f..0000000000 --- a/model/wdk/AlibabaWdkStockPublishResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -五道口库存发布接口(针对外部渠道) API返回值 -alibaba.wdk.stock.publish - -五道口库存发布接口(针对外部渠道) -*/ -type AlibabaWdkStockPublishAPIResponse struct { - model.CommonResponse - AlibabaWdkStockPublishResponse -} - -// 五道口库存发布接口(针对外部渠道) 成功返回结果 -type AlibabaWdkStockPublishResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_stock_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // errorCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // errorMsg - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/wdk/AlibabaWdkStockRealQueryAPIRequest.go b/model/wdk/AlibabaWdkStockRealQueryAPIRequest.go new file mode 100644 index 0000000000..83fadab646 --- /dev/null +++ b/model/wdk/AlibabaWdkStockRealQueryAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +仓内实时库存查询 API请求 +alibaba.wdk.stock.real.query + +查询仓内实时库存信息 +*/ +type AlibabaWdkStockRealQueryAPIRequest struct { + model.Params + // 系统自动生成 + _query *WmsInventoryTopQuery +} + +// 初始化AlibabaWdkStockRealQueryAPIRequest对象 +func NewAlibabaWdkStockRealQueryRequest() *AlibabaWdkStockRealQueryAPIRequest{ + return &AlibabaWdkStockRealQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkStockRealQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.stock.real.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkStockRealQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Query Setter +// 系统自动生成 +func (r *AlibabaWdkStockRealQueryAPIRequest) SetQuery(_query *WmsInventoryTopQuery) error { + r._query = _query + r.Set("query", _query) + return nil +} + +// Query Getter +func (r AlibabaWdkStockRealQueryAPIRequest) GetQuery() *WmsInventoryTopQuery { + return r._query +} diff --git a/model/wdk/AlibabaWdkStockRealQueryAPIResponse.go b/model/wdk/AlibabaWdkStockRealQueryAPIResponse.go new file mode 100644 index 0000000000..27143aa4dc --- /dev/null +++ b/model/wdk/AlibabaWdkStockRealQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +仓内实时库存查询 API返回值 +alibaba.wdk.stock.real.query + +查询仓内实时库存信息 +*/ +type AlibabaWdkStockRealQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkStockRealQueryAPIResponseModel +} + +// 仓内实时库存查询 成功返回结果 +type AlibabaWdkStockRealQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_stock_real_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *AlibabaWdkStockRealQueryResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkStockRealQueryResponse.go b/model/wdk/AlibabaWdkStockRealQueryResponse.go deleted file mode 100644 index faf3799eeb..0000000000 --- a/model/wdk/AlibabaWdkStockRealQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -仓内实时库存查询 API返回值 -alibaba.wdk.stock.real.query - -查询仓内实时库存信息 -*/ -type AlibabaWdkStockRealQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkStockRealQueryResponse -} - -// 仓内实时库存查询 成功返回结果 -type AlibabaWdkStockRealQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_stock_real_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *AlibabaWdkStockRealQueryResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkStockRealQueryResultDo.go b/model/wdk/AlibabaWdkStockRealQueryResultDo.go new file mode 100644 index 0000000000..6239fcbdba --- /dev/null +++ b/model/wdk/AlibabaWdkStockRealQueryResultDo.go @@ -0,0 +1,13 @@ +package wdk + +// AlibabaWdkStockRealQueryResultDo +type AlibabaWdkStockRealQueryResultDo struct { + // 错误信息 + ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` + // 错误码 + ErrCode int64 `json:"err_code,omitempty" xml:"err_code,omitempty"` + // 是否成功 + Success bool `json:"success,omitempty" xml:"success,omitempty"` + // result + Data *InventoryTopResultBo `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSupplierOrderGetAPIRequest.go b/model/wdk/AlibabaWdkSupplierOrderGetAPIRequest.go new file mode 100644 index 0000000000..ec6607278b --- /dev/null +++ b/model/wdk/AlibabaWdkSupplierOrderGetAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口按订单号批量查询供应商正向订单 API请求 +alibaba.wdk.supplier.order.get + +五道口按订单号批量查询供应商正向订单 +*/ +type AlibabaWdkSupplierOrderGetAPIRequest struct { + model.Params + // 查询参数 + _supplierOrderQueryListRequest *SupplierOrderQueryListRequest +} + +// 初始化AlibabaWdkSupplierOrderGetAPIRequest对象 +func NewAlibabaWdkSupplierOrderGetRequest() *AlibabaWdkSupplierOrderGetAPIRequest{ + return &AlibabaWdkSupplierOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSupplierOrderGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.supplier.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSupplierOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SupplierOrderQueryListRequest Setter +// 查询参数 +func (r *AlibabaWdkSupplierOrderGetAPIRequest) SetSupplierOrderQueryListRequest(_supplierOrderQueryListRequest *SupplierOrderQueryListRequest) error { + r._supplierOrderQueryListRequest = _supplierOrderQueryListRequest + r.Set("supplier_order_query_list_request", _supplierOrderQueryListRequest) + return nil +} + +// SupplierOrderQueryListRequest Getter +func (r AlibabaWdkSupplierOrderGetAPIRequest) GetSupplierOrderQueryListRequest() *SupplierOrderQueryListRequest { + return r._supplierOrderQueryListRequest +} diff --git a/model/wdk/AlibabaWdkSupplierOrderGetAPIResponse.go b/model/wdk/AlibabaWdkSupplierOrderGetAPIResponse.go new file mode 100644 index 0000000000..4d60d4892d --- /dev/null +++ b/model/wdk/AlibabaWdkSupplierOrderGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口按订单号批量查询供应商正向订单 API返回值 +alibaba.wdk.supplier.order.get + +五道口按订单号批量查询供应商正向订单 +*/ +type AlibabaWdkSupplierOrderGetAPIResponse struct { + model.CommonResponse + AlibabaWdkSupplierOrderGetAPIResponseModel +} + +// 五道口按订单号批量查询供应商正向订单 成功返回结果 +type AlibabaWdkSupplierOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_supplier_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *OrderListSyncPagedResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSupplierOrderGetResponse.go b/model/wdk/AlibabaWdkSupplierOrderGetResponse.go deleted file mode 100644 index 768edfde14..0000000000 --- a/model/wdk/AlibabaWdkSupplierOrderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -五道口按订单号批量查询供应商正向订单 API返回值 -alibaba.wdk.supplier.order.get - -五道口按订单号批量查询供应商正向订单 -*/ -type AlibabaWdkSupplierOrderGetAPIResponse struct { - model.CommonResponse - AlibabaWdkSupplierOrderGetResponse -} - -// 五道口按订单号批量查询供应商正向订单 成功返回结果 -type AlibabaWdkSupplierOrderGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_supplier_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *OrderListSyncPagedResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSupplierOrderListAPIRequest.go b/model/wdk/AlibabaWdkSupplierOrderListAPIRequest.go new file mode 100644 index 0000000000..5eaf64f960 --- /dev/null +++ b/model/wdk/AlibabaWdkSupplierOrderListAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口供应商维度正向订单拉取 API请求 +alibaba.wdk.supplier.order.list + +五道口供应商维度正向订单拉取 +*/ +type AlibabaWdkSupplierOrderListAPIRequest struct { + model.Params + // 查询参数 + _supplierOrderQueryRequest *SupplierOrderQueryRequest +} + +// 初始化AlibabaWdkSupplierOrderListAPIRequest对象 +func NewAlibabaWdkSupplierOrderListRequest() *AlibabaWdkSupplierOrderListAPIRequest{ + return &AlibabaWdkSupplierOrderListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSupplierOrderListAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.supplier.order.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSupplierOrderListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SupplierOrderQueryRequest Setter +// 查询参数 +func (r *AlibabaWdkSupplierOrderListAPIRequest) SetSupplierOrderQueryRequest(_supplierOrderQueryRequest *SupplierOrderQueryRequest) error { + r._supplierOrderQueryRequest = _supplierOrderQueryRequest + r.Set("supplier_order_query_request", _supplierOrderQueryRequest) + return nil +} + +// SupplierOrderQueryRequest Getter +func (r AlibabaWdkSupplierOrderListAPIRequest) GetSupplierOrderQueryRequest() *SupplierOrderQueryRequest { + return r._supplierOrderQueryRequest +} diff --git a/model/wdk/AlibabaWdkSupplierOrderListAPIResponse.go b/model/wdk/AlibabaWdkSupplierOrderListAPIResponse.go new file mode 100644 index 0000000000..9c8b318c5f --- /dev/null +++ b/model/wdk/AlibabaWdkSupplierOrderListAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口供应商维度正向订单拉取 API返回值 +alibaba.wdk.supplier.order.list + +五道口供应商维度正向订单拉取 +*/ +type AlibabaWdkSupplierOrderListAPIResponse struct { + model.CommonResponse + AlibabaWdkSupplierOrderListAPIResponseModel +} + +// 五道口供应商维度正向订单拉取 成功返回结果 +type AlibabaWdkSupplierOrderListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_supplier_order_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *OrderListSyncPagedResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSupplierOrderListResponse.go b/model/wdk/AlibabaWdkSupplierOrderListResponse.go deleted file mode 100644 index 0876d0b1eb..0000000000 --- a/model/wdk/AlibabaWdkSupplierOrderListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -五道口供应商维度正向订单拉取 API返回值 -alibaba.wdk.supplier.order.list - -五道口供应商维度正向订单拉取 -*/ -type AlibabaWdkSupplierOrderListAPIResponse struct { - model.CommonResponse - AlibabaWdkSupplierOrderListResponse -} - -// 五道口供应商维度正向订单拉取 成功返回结果 -type AlibabaWdkSupplierOrderListResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_supplier_order_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *OrderListSyncPagedResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSupplierRefundGetAPIRequest.go b/model/wdk/AlibabaWdkSupplierRefundGetAPIRequest.go new file mode 100644 index 0000000000..b10babca81 --- /dev/null +++ b/model/wdk/AlibabaWdkSupplierRefundGetAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口按订单号批量查询供应商退款单 API请求 +alibaba.wdk.supplier.refund.get + +五道口按订单号批量查询供应商退款单 +*/ +type AlibabaWdkSupplierRefundGetAPIRequest struct { + model.Params + // 查询入参 + _supplierRefundQueryListRequest *SupplierRefundQueryListRequest +} + +// 初始化AlibabaWdkSupplierRefundGetAPIRequest对象 +func NewAlibabaWdkSupplierRefundGetRequest() *AlibabaWdkSupplierRefundGetAPIRequest{ + return &AlibabaWdkSupplierRefundGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSupplierRefundGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.supplier.refund.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSupplierRefundGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SupplierRefundQueryListRequest Setter +// 查询入参 +func (r *AlibabaWdkSupplierRefundGetAPIRequest) SetSupplierRefundQueryListRequest(_supplierRefundQueryListRequest *SupplierRefundQueryListRequest) error { + r._supplierRefundQueryListRequest = _supplierRefundQueryListRequest + r.Set("supplier_refund_query_list_request", _supplierRefundQueryListRequest) + return nil +} + +// SupplierRefundQueryListRequest Getter +func (r AlibabaWdkSupplierRefundGetAPIRequest) GetSupplierRefundQueryListRequest() *SupplierRefundQueryListRequest { + return r._supplierRefundQueryListRequest +} diff --git a/model/wdk/AlibabaWdkSupplierRefundGetAPIResponse.go b/model/wdk/AlibabaWdkSupplierRefundGetAPIResponse.go new file mode 100644 index 0000000000..f2172410d9 --- /dev/null +++ b/model/wdk/AlibabaWdkSupplierRefundGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口按订单号批量查询供应商退款单 API返回值 +alibaba.wdk.supplier.refund.get + +五道口按订单号批量查询供应商退款单 +*/ +type AlibabaWdkSupplierRefundGetAPIResponse struct { + model.CommonResponse + AlibabaWdkSupplierRefundGetAPIResponseModel +} + +// 五道口按订单号批量查询供应商退款单 成功返回结果 +type AlibabaWdkSupplierRefundGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_supplier_refund_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *OrderSyncRefundListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSupplierRefundGetResponse.go b/model/wdk/AlibabaWdkSupplierRefundGetResponse.go deleted file mode 100644 index 07545b7c2a..0000000000 --- a/model/wdk/AlibabaWdkSupplierRefundGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -五道口按订单号批量查询供应商退款单 API返回值 -alibaba.wdk.supplier.refund.get - -五道口按订单号批量查询供应商退款单 -*/ -type AlibabaWdkSupplierRefundGetAPIResponse struct { - model.CommonResponse - AlibabaWdkSupplierRefundGetResponse -} - -// 五道口按订单号批量查询供应商退款单 成功返回结果 -type AlibabaWdkSupplierRefundGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_supplier_refund_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *OrderSyncRefundListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSupplierRefundListAPIRequest.go b/model/wdk/AlibabaWdkSupplierRefundListAPIRequest.go new file mode 100644 index 0000000000..988904e065 --- /dev/null +++ b/model/wdk/AlibabaWdkSupplierRefundListAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口按供应商拉取退款单 API请求 +alibaba.wdk.supplier.refund.list + +五道口按供应商拉取退款单 +*/ +type AlibabaWdkSupplierRefundListAPIRequest struct { + model.Params + // 查询参数 + _supplierRefundQueryRequest *SupplierRefundQueryRequest +} + +// 初始化AlibabaWdkSupplierRefundListAPIRequest对象 +func NewAlibabaWdkSupplierRefundListRequest() *AlibabaWdkSupplierRefundListAPIRequest{ + return &AlibabaWdkSupplierRefundListAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSupplierRefundListAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.supplier.refund.list" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSupplierRefundListAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SupplierRefundQueryRequest Setter +// 查询参数 +func (r *AlibabaWdkSupplierRefundListAPIRequest) SetSupplierRefundQueryRequest(_supplierRefundQueryRequest *SupplierRefundQueryRequest) error { + r._supplierRefundQueryRequest = _supplierRefundQueryRequest + r.Set("supplier_refund_query_request", _supplierRefundQueryRequest) + return nil +} + +// SupplierRefundQueryRequest Getter +func (r AlibabaWdkSupplierRefundListAPIRequest) GetSupplierRefundQueryRequest() *SupplierRefundQueryRequest { + return r._supplierRefundQueryRequest +} diff --git a/model/wdk/AlibabaWdkSupplierRefundListAPIResponse.go b/model/wdk/AlibabaWdkSupplierRefundListAPIResponse.go new file mode 100644 index 0000000000..6bc6b955a7 --- /dev/null +++ b/model/wdk/AlibabaWdkSupplierRefundListAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口按供应商拉取退款单 API返回值 +alibaba.wdk.supplier.refund.list + +五道口按供应商拉取退款单 +*/ +type AlibabaWdkSupplierRefundListAPIResponse struct { + model.CommonResponse + AlibabaWdkSupplierRefundListAPIResponseModel +} + +// 五道口按供应商拉取退款单 成功返回结果 +type AlibabaWdkSupplierRefundListAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_supplier_refund_list_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *OrderSyncRefundListResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSupplierRefundListResponse.go b/model/wdk/AlibabaWdkSupplierRefundListResponse.go deleted file mode 100644 index f877c4a0d0..0000000000 --- a/model/wdk/AlibabaWdkSupplierRefundListResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -五道口按供应商拉取退款单 API返回值 -alibaba.wdk.supplier.refund.list - -五道口按供应商拉取退款单 -*/ -type AlibabaWdkSupplierRefundListAPIResponse struct { - model.CommonResponse - AlibabaWdkSupplierRefundListResponse -} - -// 五道口按供应商拉取退款单 成功返回结果 -type AlibabaWdkSupplierRefundListResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_supplier_refund_list_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *OrderSyncRefundListResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkSyncedorderQueryAPIRequest.go b/model/wdk/AlibabaWdkSyncedorderQueryAPIRequest.go new file mode 100644 index 0000000000..2e367935a3 --- /dev/null +++ b/model/wdk/AlibabaWdkSyncedorderQueryAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口查询同步订单 API请求 +alibaba.wdk.syncedorder.query + +外部商户查询同步到五道口的订单 +*/ +type AlibabaWdkSyncedorderQueryAPIRequest struct { + model.Params + // 门店ID + _storeId string + // 序列号 + _serialNum string +} + +// 初始化AlibabaWdkSyncedorderQueryAPIRequest对象 +func NewAlibabaWdkSyncedorderQueryRequest() *AlibabaWdkSyncedorderQueryAPIRequest{ + return &AlibabaWdkSyncedorderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkSyncedorderQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.syncedorder.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkSyncedorderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店ID +func (r *AlibabaWdkSyncedorderQueryAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaWdkSyncedorderQueryAPIRequest) GetStoreId() string { + return r._storeId +} +// SerialNum Setter +// 序列号 +func (r *AlibabaWdkSyncedorderQueryAPIRequest) SetSerialNum(_serialNum string) error { + r._serialNum = _serialNum + r.Set("serial_num", _serialNum) + return nil +} + +// SerialNum Getter +func (r AlibabaWdkSyncedorderQueryAPIRequest) GetSerialNum() string { + return r._serialNum +} diff --git a/model/wdk/AlibabaWdkSyncedorderQueryAPIResponse.go b/model/wdk/AlibabaWdkSyncedorderQueryAPIResponse.go new file mode 100644 index 0000000000..ae491bedfc --- /dev/null +++ b/model/wdk/AlibabaWdkSyncedorderQueryAPIResponse.go @@ -0,0 +1,33 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口查询同步订单 API返回值 +alibaba.wdk.syncedorder.query + +外部商户查询同步到五道口的订单 +*/ +type AlibabaWdkSyncedorderQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkSyncedorderQueryAPIResponseModel +} + +// 五道口查询同步订单 成功返回结果 +type AlibabaWdkSyncedorderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_syncedorder_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 返回码 + ReturnCode int64 `json:"return_code,omitempty" xml:"return_code,omitempty"` + // 描述 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 订单号 + BizOrderId string `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"` +} diff --git a/model/wdk/AlibabaWdkSyncedorderQueryResponse.go b/model/wdk/AlibabaWdkSyncedorderQueryResponse.go deleted file mode 100644 index a8ac5bc704..0000000000 --- a/model/wdk/AlibabaWdkSyncedorderQueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -五道口查询同步订单 API返回值 -alibaba.wdk.syncedorder.query - -外部商户查询同步到五道口的订单 -*/ -type AlibabaWdkSyncedorderQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkSyncedorderQueryResponse -} - -// 五道口查询同步订单 成功返回结果 -type AlibabaWdkSyncedorderQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_syncedorder_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 返回码 - ReturnCode int64 `json:"return_code,omitempty" xml:"return_code,omitempty"` - // 描述 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 订单号 - BizOrderId string `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"` -} diff --git a/model/wdk/AlibabaWdkTimeGetAPIRequest.go b/model/wdk/AlibabaWdkTimeGetAPIRequest.go new file mode 100644 index 0000000000..106a5e7efb --- /dev/null +++ b/model/wdk/AlibabaWdkTimeGetAPIRequest.go @@ -0,0 +1,38 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获得当前系统时间 API请求 +alibaba.wdk.time.get + +获得当前系统时间 +*/ +type AlibabaWdkTimeGetAPIRequest struct { + model.Params +} + +// 初始化AlibabaWdkTimeGetAPIRequest对象 +func NewAlibabaWdkTimeGetRequest() *AlibabaWdkTimeGetAPIRequest{ + return &AlibabaWdkTimeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkTimeGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.time.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkTimeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/wdk/AlibabaWdkTimeGetAPIResponse.go b/model/wdk/AlibabaWdkTimeGetAPIResponse.go new file mode 100644 index 0000000000..99aba104d5 --- /dev/null +++ b/model/wdk/AlibabaWdkTimeGetAPIResponse.go @@ -0,0 +1,29 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获得当前系统时间 API返回值 +alibaba.wdk.time.get + +获得当前系统时间 +*/ +type AlibabaWdkTimeGetAPIResponse struct { + model.CommonResponse + AlibabaWdkTimeGetAPIResponseModel +} + +// 获得当前系统时间 成功返回结果 +type AlibabaWdkTimeGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_time_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // dateTime + DateTime int64 `json:"date_time,omitempty" xml:"date_time,omitempty"` + // date + Date string `json:"date,omitempty" xml:"date,omitempty"` +} diff --git a/model/wdk/AlibabaWdkTimeGetResponse.go b/model/wdk/AlibabaWdkTimeGetResponse.go deleted file mode 100644 index de85333fb2..0000000000 --- a/model/wdk/AlibabaWdkTimeGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获得当前系统时间 API返回值 -alibaba.wdk.time.get - -获得当前系统时间 -*/ -type AlibabaWdkTimeGetAPIResponse struct { - model.CommonResponse - AlibabaWdkTimeGetResponse -} - -// 获得当前系统时间 成功返回结果 -type AlibabaWdkTimeGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_time_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // dateTime - DateTime int64 `json:"date_time,omitempty" xml:"date_time,omitempty"` - // date - Date string `json:"date,omitempty" xml:"date,omitempty"` -} diff --git a/model/wdk/AlibabaWdkTraceUrlGetAPIRequest.go b/model/wdk/AlibabaWdkTraceUrlGetAPIRequest.go new file mode 100644 index 0000000000..6c530cbd3c --- /dev/null +++ b/model/wdk/AlibabaWdkTraceUrlGetAPIRequest.go @@ -0,0 +1,80 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +溯源url透出 API请求 +alibaba.wdk.trace.url.get + +根据shopId和skuCode返回商品溯源url +*/ +type AlibabaWdkTraceUrlGetAPIRequest struct { + model.Params + // 所属门店code + _shopId string + // 来源编码 + _sourceCode string + // barCode 或者skuCode + _scanCode string +} + +// 初始化AlibabaWdkTraceUrlGetAPIRequest对象 +func NewAlibabaWdkTraceUrlGetRequest() *AlibabaWdkTraceUrlGetAPIRequest{ + return &AlibabaWdkTraceUrlGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkTraceUrlGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.trace.url.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkTraceUrlGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShopId Setter +// 所属门店code +func (r *AlibabaWdkTraceUrlGetAPIRequest) SetShopId(_shopId string) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r AlibabaWdkTraceUrlGetAPIRequest) GetShopId() string { + return r._shopId +} +// SourceCode Setter +// 来源编码 +func (r *AlibabaWdkTraceUrlGetAPIRequest) SetSourceCode(_sourceCode string) error { + r._sourceCode = _sourceCode + r.Set("source_code", _sourceCode) + return nil +} + +// SourceCode Getter +func (r AlibabaWdkTraceUrlGetAPIRequest) GetSourceCode() string { + return r._sourceCode +} +// ScanCode Setter +// barCode 或者skuCode +func (r *AlibabaWdkTraceUrlGetAPIRequest) SetScanCode(_scanCode string) error { + r._scanCode = _scanCode + r.Set("scan_code", _scanCode) + return nil +} + +// ScanCode Getter +func (r AlibabaWdkTraceUrlGetAPIRequest) GetScanCode() string { + return r._scanCode +} diff --git a/model/wdk/AlibabaWdkTraceUrlGetAPIResponse.go b/model/wdk/AlibabaWdkTraceUrlGetAPIResponse.go new file mode 100644 index 0000000000..af5829c8c1 --- /dev/null +++ b/model/wdk/AlibabaWdkTraceUrlGetAPIResponse.go @@ -0,0 +1,33 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +溯源url透出 API返回值 +alibaba.wdk.trace.url.get + +根据shopId和skuCode返回商品溯源url +*/ +type AlibabaWdkTraceUrlGetAPIResponse struct { + model.CommonResponse + AlibabaWdkTraceUrlGetAPIResponseModel +} + +// 溯源url透出 成功返回结果 +type AlibabaWdkTraceUrlGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_trace_url_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // data + Data string `json:"data,omitempty" xml:"data,omitempty"` + // code + ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/wdk/AlibabaWdkTraceUrlGetResponse.go b/model/wdk/AlibabaWdkTraceUrlGetResponse.go deleted file mode 100644 index b3f0f2ad16..0000000000 --- a/model/wdk/AlibabaWdkTraceUrlGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -溯源url透出 API返回值 -alibaba.wdk.trace.url.get - -根据shopId和skuCode返回商品溯源url -*/ -type AlibabaWdkTraceUrlGetAPIResponse struct { - model.CommonResponse - AlibabaWdkTraceUrlGetResponse -} - -// 溯源url透出 成功返回结果 -type AlibabaWdkTraceUrlGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_trace_url_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // data - Data string `json:"data,omitempty" xml:"data,omitempty"` - // code - ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/wdk/AlibabaWdkTradeOrderBalanceBillQueryAPIRequest.go b/model/wdk/AlibabaWdkTradeOrderBalanceBillQueryAPIRequest.go new file mode 100644 index 0000000000..034abc0136 --- /dev/null +++ b/model/wdk/AlibabaWdkTradeOrderBalanceBillQueryAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页拉取订单数据 API请求 +alibaba.wdk.trade.order.balance.bill.query + +提供接口供外部调用,分页拉取订单数据 +*/ +type AlibabaWdkTradeOrderBalanceBillQueryAPIRequest struct { + model.Params + // 入参 + _orderBalanceBillRequest *OrderBalanceBillRequest +} + +// 初始化AlibabaWdkTradeOrderBalanceBillQueryAPIRequest对象 +func NewAlibabaWdkTradeOrderBalanceBillQueryRequest() *AlibabaWdkTradeOrderBalanceBillQueryAPIRequest{ + return &AlibabaWdkTradeOrderBalanceBillQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkTradeOrderBalanceBillQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.trade.order.balance.bill.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkTradeOrderBalanceBillQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderBalanceBillRequest Setter +// 入参 +func (r *AlibabaWdkTradeOrderBalanceBillQueryAPIRequest) SetOrderBalanceBillRequest(_orderBalanceBillRequest *OrderBalanceBillRequest) error { + r._orderBalanceBillRequest = _orderBalanceBillRequest + r.Set("order_balance_bill_request", _orderBalanceBillRequest) + return nil +} + +// OrderBalanceBillRequest Getter +func (r AlibabaWdkTradeOrderBalanceBillQueryAPIRequest) GetOrderBalanceBillRequest() *OrderBalanceBillRequest { + return r._orderBalanceBillRequest +} diff --git a/model/wdk/AlibabaWdkTradeOrderBalanceBillQueryAPIResponse.go b/model/wdk/AlibabaWdkTradeOrderBalanceBillQueryAPIResponse.go new file mode 100644 index 0000000000..f45b752cfd --- /dev/null +++ b/model/wdk/AlibabaWdkTradeOrderBalanceBillQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页拉取订单数据 API返回值 +alibaba.wdk.trade.order.balance.bill.query + +提供接口供外部调用,分页拉取订单数据 +*/ +type AlibabaWdkTradeOrderBalanceBillQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkTradeOrderBalanceBillQueryAPIResponseModel +} + +// 分页拉取订单数据 成功返回结果 +type AlibabaWdkTradeOrderBalanceBillQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_trade_order_balance_bill_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // ApiResult + ApiResult *AlibabaWdkTradeOrderBalanceBillQueryApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkTradeOrderBalanceBillQueryResponse.go b/model/wdk/AlibabaWdkTradeOrderBalanceBillQueryResponse.go deleted file mode 100644 index dee3a9772b..0000000000 --- a/model/wdk/AlibabaWdkTradeOrderBalanceBillQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页拉取订单数据 API返回值 -alibaba.wdk.trade.order.balance.bill.query - -提供接口供外部调用,分页拉取订单数据 -*/ -type AlibabaWdkTradeOrderBalanceBillQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkTradeOrderBalanceBillQueryResponse -} - -// 分页拉取订单数据 成功返回结果 -type AlibabaWdkTradeOrderBalanceBillQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_trade_order_balance_bill_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // ApiResult - ApiResult *AlibabaWdkTradeOrderBalanceBillQueryApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkUmsFeedbackAPIRequest.go b/model/wdk/AlibabaWdkUmsFeedbackAPIRequest.go new file mode 100644 index 0000000000..373a45f73e --- /dev/null +++ b/model/wdk/AlibabaWdkUmsFeedbackAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +质量反馈(入库辅助)-ERP下发单 API请求 +alibaba.wdk.ums.feedback + +质量反馈(入库辅助)-ERP下发单 +*/ +type AlibabaWdkUmsFeedbackAPIRequest struct { + model.Params + // 质量反馈请求dto + _erpFeedbackdto *ErpFeedbackDto +} + +// 初始化AlibabaWdkUmsFeedbackAPIRequest对象 +func NewAlibabaWdkUmsFeedbackRequest() *AlibabaWdkUmsFeedbackAPIRequest{ + return &AlibabaWdkUmsFeedbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkUmsFeedbackAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.ums.feedback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkUmsFeedbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ErpFeedbackdto Setter +// 质量反馈请求dto +func (r *AlibabaWdkUmsFeedbackAPIRequest) SetErpFeedbackdto(_erpFeedbackdto *ErpFeedbackDto) error { + r._erpFeedbackdto = _erpFeedbackdto + r.Set("erp_feedbackdto", _erpFeedbackdto) + return nil +} + +// ErpFeedbackdto Getter +func (r AlibabaWdkUmsFeedbackAPIRequest) GetErpFeedbackdto() *ErpFeedbackDto { + return r._erpFeedbackdto +} diff --git a/model/wdk/AlibabaWdkUmsFeedbackAPIResponse.go b/model/wdk/AlibabaWdkUmsFeedbackAPIResponse.go new file mode 100644 index 0000000000..7f4b437b73 --- /dev/null +++ b/model/wdk/AlibabaWdkUmsFeedbackAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +质量反馈(入库辅助)-ERP下发单 API返回值 +alibaba.wdk.ums.feedback + +质量反馈(入库辅助)-ERP下发单 +*/ +type AlibabaWdkUmsFeedbackAPIResponse struct { + model.CommonResponse + AlibabaWdkUmsFeedbackAPIResponseModel +} + +// 质量反馈(入库辅助)-ERP下发单 成功返回结果 +type AlibabaWdkUmsFeedbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_ums_feedback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkUmsFeedbackResponse.go b/model/wdk/AlibabaWdkUmsFeedbackResponse.go deleted file mode 100644 index a858083176..0000000000 --- a/model/wdk/AlibabaWdkUmsFeedbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -质量反馈(入库辅助)-ERP下发单 API返回值 -alibaba.wdk.ums.feedback - -质量反馈(入库辅助)-ERP下发单 -*/ -type AlibabaWdkUmsFeedbackAPIResponse struct { - model.CommonResponse - AlibabaWdkUmsFeedbackResponse -} - -// 质量反馈(入库辅助)-ERP下发单 成功返回结果 -type AlibabaWdkUmsFeedbackResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_ums_feedback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkUmsHandlingGetAPIRequest.go b/model/wdk/AlibabaWdkUmsHandlingGetAPIRequest.go new file mode 100644 index 0000000000..be42ccdcb3 --- /dev/null +++ b/model/wdk/AlibabaWdkUmsHandlingGetAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +加工单-回流单(新接口) API请求 +alibaba.wdk.ums.handling.get + +加工单-回流单(新接口) +*/ +type AlibabaWdkUmsHandlingGetAPIRequest struct { + model.Params + // 仓库编码 + _warehouseCode string +} + +// 初始化AlibabaWdkUmsHandlingGetAPIRequest对象 +func NewAlibabaWdkUmsHandlingGetRequest() *AlibabaWdkUmsHandlingGetAPIRequest{ + return &AlibabaWdkUmsHandlingGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkUmsHandlingGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.ums.handling.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkUmsHandlingGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseCode Setter +// 仓库编码 +func (r *AlibabaWdkUmsHandlingGetAPIRequest) SetWarehouseCode(_warehouseCode string) error { + r._warehouseCode = _warehouseCode + r.Set("warehouse_code", _warehouseCode) + return nil +} + +// WarehouseCode Getter +func (r AlibabaWdkUmsHandlingGetAPIRequest) GetWarehouseCode() string { + return r._warehouseCode +} diff --git a/model/wdk/AlibabaWdkUmsHandlingGetAPIResponse.go b/model/wdk/AlibabaWdkUmsHandlingGetAPIResponse.go new file mode 100644 index 0000000000..b85c6b63bc --- /dev/null +++ b/model/wdk/AlibabaWdkUmsHandlingGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +加工单-回流单(新接口) API返回值 +alibaba.wdk.ums.handling.get + +加工单-回流单(新接口) +*/ +type AlibabaWdkUmsHandlingGetAPIResponse struct { + model.CommonResponse + AlibabaWdkUmsHandlingGetAPIResponseModel +} + +// 加工单-回流单(新接口) 成功返回结果 +type AlibabaWdkUmsHandlingGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_ums_handling_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkUmsHandlingGetResponse.go b/model/wdk/AlibabaWdkUmsHandlingGetResponse.go deleted file mode 100644 index 2e109f5d47..0000000000 --- a/model/wdk/AlibabaWdkUmsHandlingGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -加工单-回流单(新接口) API返回值 -alibaba.wdk.ums.handling.get - -加工单-回流单(新接口) -*/ -type AlibabaWdkUmsHandlingGetAPIResponse struct { - model.CommonResponse - AlibabaWdkUmsHandlingGetResponse -} - -// 加工单-回流单(新接口) 成功返回结果 -type AlibabaWdkUmsHandlingGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_ums_handling_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkUmsInboundAPIRequest.go b/model/wdk/AlibabaWdkUmsInboundAPIRequest.go new file mode 100644 index 0000000000..0ebdbd1eb3 --- /dev/null +++ b/model/wdk/AlibabaWdkUmsInboundAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +入库-ERP下发单 API请求 +alibaba.wdk.ums.inbound + +入库-ERP下发单 +*/ +type AlibabaWdkUmsInboundAPIRequest struct { + model.Params + // 1 + _erpArrivalnoticeDto *ErpArrivalNoticeDto +} + +// 初始化AlibabaWdkUmsInboundAPIRequest对象 +func NewAlibabaWdkUmsInboundRequest() *AlibabaWdkUmsInboundAPIRequest{ + return &AlibabaWdkUmsInboundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkUmsInboundAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.ums.inbound" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkUmsInboundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ErpArrivalnoticeDto Setter +// 1 +func (r *AlibabaWdkUmsInboundAPIRequest) SetErpArrivalnoticeDto(_erpArrivalnoticeDto *ErpArrivalNoticeDto) error { + r._erpArrivalnoticeDto = _erpArrivalnoticeDto + r.Set("erp_arrivalnotice_dto", _erpArrivalnoticeDto) + return nil +} + +// ErpArrivalnoticeDto Getter +func (r AlibabaWdkUmsInboundAPIRequest) GetErpArrivalnoticeDto() *ErpArrivalNoticeDto { + return r._erpArrivalnoticeDto +} diff --git a/model/wdk/AlibabaWdkUmsInboundAPIResponse.go b/model/wdk/AlibabaWdkUmsInboundAPIResponse.go new file mode 100644 index 0000000000..75fd3f64c7 --- /dev/null +++ b/model/wdk/AlibabaWdkUmsInboundAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +入库-ERP下发单 API返回值 +alibaba.wdk.ums.inbound + +入库-ERP下发单 +*/ +type AlibabaWdkUmsInboundAPIResponse struct { + model.CommonResponse + AlibabaWdkUmsInboundAPIResponseModel +} + +// 入库-ERP下发单 成功返回结果 +type AlibabaWdkUmsInboundAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_ums_inbound_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkUmsInboundResponse.go b/model/wdk/AlibabaWdkUmsInboundResponse.go deleted file mode 100644 index ce3a7cd55d..0000000000 --- a/model/wdk/AlibabaWdkUmsInboundResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -入库-ERP下发单 API返回值 -alibaba.wdk.ums.inbound - -入库-ERP下发单 -*/ -type AlibabaWdkUmsInboundAPIResponse struct { - model.CommonResponse - AlibabaWdkUmsInboundResponse -} - -// 入库-ERP下发单 成功返回结果 -type AlibabaWdkUmsInboundResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_ums_inbound_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkUmsInventoryAdjustGetAPIRequest.go b/model/wdk/AlibabaWdkUmsInventoryAdjustGetAPIRequest.go new file mode 100644 index 0000000000..12c8388bb7 --- /dev/null +++ b/model/wdk/AlibabaWdkUmsInventoryAdjustGetAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +库调单-回流单 API请求 +alibaba.wdk.ums.inventory.adjust.get + +库调单-回流单 +*/ +type AlibabaWdkUmsInventoryAdjustGetAPIRequest struct { + model.Params + // 店仓code,指的是库调对象,对应一个物理店或仓编码 + _warehouseCode string +} + +// 初始化AlibabaWdkUmsInventoryAdjustGetAPIRequest对象 +func NewAlibabaWdkUmsInventoryAdjustGetRequest() *AlibabaWdkUmsInventoryAdjustGetAPIRequest{ + return &AlibabaWdkUmsInventoryAdjustGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkUmsInventoryAdjustGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.ums.inventory.adjust.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkUmsInventoryAdjustGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseCode Setter +// 店仓code,指的是库调对象,对应一个物理店或仓编码 +func (r *AlibabaWdkUmsInventoryAdjustGetAPIRequest) SetWarehouseCode(_warehouseCode string) error { + r._warehouseCode = _warehouseCode + r.Set("warehouse_code", _warehouseCode) + return nil +} + +// WarehouseCode Getter +func (r AlibabaWdkUmsInventoryAdjustGetAPIRequest) GetWarehouseCode() string { + return r._warehouseCode +} diff --git a/model/wdk/AlibabaWdkUmsInventoryAdjustGetAPIResponse.go b/model/wdk/AlibabaWdkUmsInventoryAdjustGetAPIResponse.go new file mode 100644 index 0000000000..83ef15fff2 --- /dev/null +++ b/model/wdk/AlibabaWdkUmsInventoryAdjustGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +库调单-回流单 API返回值 +alibaba.wdk.ums.inventory.adjust.get + +库调单-回流单 +*/ +type AlibabaWdkUmsInventoryAdjustGetAPIResponse struct { + model.CommonResponse + AlibabaWdkUmsInventoryAdjustGetAPIResponseModel +} + +// 库调单-回流单 成功返回结果 +type AlibabaWdkUmsInventoryAdjustGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_ums_inventory_adjust_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkUmsInventoryAdjustGetResponse.go b/model/wdk/AlibabaWdkUmsInventoryAdjustGetResponse.go deleted file mode 100644 index 5be8ac380e..0000000000 --- a/model/wdk/AlibabaWdkUmsInventoryAdjustGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -库调单-回流单 API返回值 -alibaba.wdk.ums.inventory.adjust.get - -库调单-回流单 -*/ -type AlibabaWdkUmsInventoryAdjustGetAPIResponse struct { - model.CommonResponse - AlibabaWdkUmsInventoryAdjustGetResponse -} - -// 库调单-回流单 成功返回结果 -type AlibabaWdkUmsInventoryAdjustGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_ums_inventory_adjust_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkUmsInventoryCheckGetAPIRequest.go b/model/wdk/AlibabaWdkUmsInventoryCheckGetAPIRequest.go new file mode 100644 index 0000000000..033f53bd0e --- /dev/null +++ b/model/wdk/AlibabaWdkUmsInventoryCheckGetAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +盘点结果单-回流单 API请求 +alibaba.wdk.ums.inventory.check.get + +盘点结果单-回流单 +*/ +type AlibabaWdkUmsInventoryCheckGetAPIRequest struct { + model.Params + // 店仓code,指的是库调对象,对应一个物理店或仓编码 + _warehouseCode string +} + +// 初始化AlibabaWdkUmsInventoryCheckGetAPIRequest对象 +func NewAlibabaWdkUmsInventoryCheckGetRequest() *AlibabaWdkUmsInventoryCheckGetAPIRequest{ + return &AlibabaWdkUmsInventoryCheckGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkUmsInventoryCheckGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.ums.inventory.check.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkUmsInventoryCheckGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseCode Setter +// 店仓code,指的是库调对象,对应一个物理店或仓编码 +func (r *AlibabaWdkUmsInventoryCheckGetAPIRequest) SetWarehouseCode(_warehouseCode string) error { + r._warehouseCode = _warehouseCode + r.Set("warehouse_code", _warehouseCode) + return nil +} + +// WarehouseCode Getter +func (r AlibabaWdkUmsInventoryCheckGetAPIRequest) GetWarehouseCode() string { + return r._warehouseCode +} diff --git a/model/wdk/AlibabaWdkUmsInventoryCheckGetAPIResponse.go b/model/wdk/AlibabaWdkUmsInventoryCheckGetAPIResponse.go new file mode 100644 index 0000000000..71e4e3e86d --- /dev/null +++ b/model/wdk/AlibabaWdkUmsInventoryCheckGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +盘点结果单-回流单 API返回值 +alibaba.wdk.ums.inventory.check.get + +盘点结果单-回流单 +*/ +type AlibabaWdkUmsInventoryCheckGetAPIResponse struct { + model.CommonResponse + AlibabaWdkUmsInventoryCheckGetAPIResponseModel +} + +// 盘点结果单-回流单 成功返回结果 +type AlibabaWdkUmsInventoryCheckGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_ums_inventory_check_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkUmsInventoryCheckGetResponse.go b/model/wdk/AlibabaWdkUmsInventoryCheckGetResponse.go deleted file mode 100644 index 67d8f2a2c9..0000000000 --- a/model/wdk/AlibabaWdkUmsInventoryCheckGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -盘点结果单-回流单 API返回值 -alibaba.wdk.ums.inventory.check.get - -盘点结果单-回流单 -*/ -type AlibabaWdkUmsInventoryCheckGetAPIResponse struct { - model.CommonResponse - AlibabaWdkUmsInventoryCheckGetResponse -} - -// 盘点结果单-回流单 成功返回结果 -type AlibabaWdkUmsInventoryCheckGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_ums_inventory_check_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkUmsInventoryPublishAPIRequest.go b/model/wdk/AlibabaWdkUmsInventoryPublishAPIRequest.go new file mode 100644 index 0000000000..b39fadd223 --- /dev/null +++ b/model/wdk/AlibabaWdkUmsInventoryPublishAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +初始化覆盖实物库存 API请求 +alibaba.wdk.ums.inventory.publish + +先去库存这边查询当前实物库存有多少的量,然后算出来需要增加的量。接下来调用ums原来的入库语义的接口进行库存的增量补充 +*/ +type AlibabaWdkUmsInventoryPublishAPIRequest struct { + model.Params + // 1 + _wdkErpArrivalNotice *WdkErpArrivalNoticeDto +} + +// 初始化AlibabaWdkUmsInventoryPublishAPIRequest对象 +func NewAlibabaWdkUmsInventoryPublishRequest() *AlibabaWdkUmsInventoryPublishAPIRequest{ + return &AlibabaWdkUmsInventoryPublishAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkUmsInventoryPublishAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.ums.inventory.publish" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkUmsInventoryPublishAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WdkErpArrivalNotice Setter +// 1 +func (r *AlibabaWdkUmsInventoryPublishAPIRequest) SetWdkErpArrivalNotice(_wdkErpArrivalNotice *WdkErpArrivalNoticeDto) error { + r._wdkErpArrivalNotice = _wdkErpArrivalNotice + r.Set("wdk_erp_arrival_notice", _wdkErpArrivalNotice) + return nil +} + +// WdkErpArrivalNotice Getter +func (r AlibabaWdkUmsInventoryPublishAPIRequest) GetWdkErpArrivalNotice() *WdkErpArrivalNoticeDto { + return r._wdkErpArrivalNotice +} diff --git a/model/wdk/AlibabaWdkUmsInventoryPublishAPIResponse.go b/model/wdk/AlibabaWdkUmsInventoryPublishAPIResponse.go new file mode 100644 index 0000000000..d3d4b8546d --- /dev/null +++ b/model/wdk/AlibabaWdkUmsInventoryPublishAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +初始化覆盖实物库存 API返回值 +alibaba.wdk.ums.inventory.publish + +先去库存这边查询当前实物库存有多少的量,然后算出来需要增加的量。接下来调用ums原来的入库语义的接口进行库存的增量补充 +*/ +type AlibabaWdkUmsInventoryPublishAPIResponse struct { + model.CommonResponse + AlibabaWdkUmsInventoryPublishAPIResponseModel +} + +// 初始化覆盖实物库存 成功返回结果 +type AlibabaWdkUmsInventoryPublishAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_ums_inventory_publish_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用服务返回结果 + ApiResult *AlibabaWdkUmsInventoryPublishApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkUmsInventoryPublishResponse.go b/model/wdk/AlibabaWdkUmsInventoryPublishResponse.go deleted file mode 100644 index 8509ce55fa..0000000000 --- a/model/wdk/AlibabaWdkUmsInventoryPublishResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -初始化覆盖实物库存 API返回值 -alibaba.wdk.ums.inventory.publish - -先去库存这边查询当前实物库存有多少的量,然后算出来需要增加的量。接下来调用ums原来的入库语义的接口进行库存的增量补充 -*/ -type AlibabaWdkUmsInventoryPublishAPIResponse struct { - model.CommonResponse - AlibabaWdkUmsInventoryPublishResponse -} - -// 初始化覆盖实物库存 成功返回结果 -type AlibabaWdkUmsInventoryPublishResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_ums_inventory_publish_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用服务返回结果 - ApiResult *AlibabaWdkUmsInventoryPublishApiResult `json:"api_result,omitempty" xml:"api_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkUmsOrderGetAPIRequest.go b/model/wdk/AlibabaWdkUmsOrderGetAPIRequest.go new file mode 100644 index 0000000000..294cff287f --- /dev/null +++ b/model/wdk/AlibabaWdkUmsOrderGetAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询店仓作业单据清单 (库存对账辅助)-回流单 API请求 +alibaba.wdk.ums.order.get + +查询店仓作业单据清单 (库存对账辅助)-回流单 +*/ +type AlibabaWdkUmsOrderGetAPIRequest struct { + model.Params + // 查询单据的dto + _queryErpbillDto *QueryErpBillDto +} + +// 初始化AlibabaWdkUmsOrderGetAPIRequest对象 +func NewAlibabaWdkUmsOrderGetRequest() *AlibabaWdkUmsOrderGetAPIRequest{ + return &AlibabaWdkUmsOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkUmsOrderGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.ums.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkUmsOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QueryErpbillDto Setter +// 查询单据的dto +func (r *AlibabaWdkUmsOrderGetAPIRequest) SetQueryErpbillDto(_queryErpbillDto *QueryErpBillDto) error { + r._queryErpbillDto = _queryErpbillDto + r.Set("query_erpbill_dto", _queryErpbillDto) + return nil +} + +// QueryErpbillDto Getter +func (r AlibabaWdkUmsOrderGetAPIRequest) GetQueryErpbillDto() *QueryErpBillDto { + return r._queryErpbillDto +} diff --git a/model/wdk/AlibabaWdkUmsOrderGetAPIResponse.go b/model/wdk/AlibabaWdkUmsOrderGetAPIResponse.go new file mode 100644 index 0000000000..cb8ebd7c0c --- /dev/null +++ b/model/wdk/AlibabaWdkUmsOrderGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询店仓作业单据清单 (库存对账辅助)-回流单 API返回值 +alibaba.wdk.ums.order.get + +查询店仓作业单据清单 (库存对账辅助)-回流单 +*/ +type AlibabaWdkUmsOrderGetAPIResponse struct { + model.CommonResponse + AlibabaWdkUmsOrderGetAPIResponseModel +} + +// 查询店仓作业单据清单 (库存对账辅助)-回流单 成功返回结果 +type AlibabaWdkUmsOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_ums_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *UtmsPageResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkUmsOrderGetResponse.go b/model/wdk/AlibabaWdkUmsOrderGetResponse.go deleted file mode 100644 index 43e9aa2a19..0000000000 --- a/model/wdk/AlibabaWdkUmsOrderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询店仓作业单据清单 (库存对账辅助)-回流单 API返回值 -alibaba.wdk.ums.order.get - -查询店仓作业单据清单 (库存对账辅助)-回流单 -*/ -type AlibabaWdkUmsOrderGetAPIResponse struct { - model.CommonResponse - AlibabaWdkUmsOrderGetResponse -} - -// 查询店仓作业单据清单 (库存对账辅助)-回流单 成功返回结果 -type AlibabaWdkUmsOrderGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_ums_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *UtmsPageResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkUmsOutboundAPIRequest.go b/model/wdk/AlibabaWdkUmsOutboundAPIRequest.go new file mode 100644 index 0000000000..fcac241311 --- /dev/null +++ b/model/wdk/AlibabaWdkUmsOutboundAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +出库-ERP下发单(新接口,包含调拨出库单和退货出库单等) API请求 +alibaba.wdk.ums.outbound + +出库-ERP下发单(新接口,包含调拨出库单和退货出库单等) +*/ +type AlibabaWdkUmsOutboundAPIRequest struct { + model.Params + // 出库-ERP下发单请求dto + _erpOutputOrderDto *ErpOutputOrderDto +} + +// 初始化AlibabaWdkUmsOutboundAPIRequest对象 +func NewAlibabaWdkUmsOutboundRequest() *AlibabaWdkUmsOutboundAPIRequest{ + return &AlibabaWdkUmsOutboundAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkUmsOutboundAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.ums.outbound" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkUmsOutboundAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ErpOutputOrderDto Setter +// 出库-ERP下发单请求dto +func (r *AlibabaWdkUmsOutboundAPIRequest) SetErpOutputOrderDto(_erpOutputOrderDto *ErpOutputOrderDto) error { + r._erpOutputOrderDto = _erpOutputOrderDto + r.Set("erp_output_order_dto", _erpOutputOrderDto) + return nil +} + +// ErpOutputOrderDto Getter +func (r AlibabaWdkUmsOutboundAPIRequest) GetErpOutputOrderDto() *ErpOutputOrderDto { + return r._erpOutputOrderDto +} diff --git a/model/wdk/AlibabaWdkUmsOutboundAPIResponse.go b/model/wdk/AlibabaWdkUmsOutboundAPIResponse.go new file mode 100644 index 0000000000..5b89471d1c --- /dev/null +++ b/model/wdk/AlibabaWdkUmsOutboundAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +出库-ERP下发单(新接口,包含调拨出库单和退货出库单等) API返回值 +alibaba.wdk.ums.outbound + +出库-ERP下发单(新接口,包含调拨出库单和退货出库单等) +*/ +type AlibabaWdkUmsOutboundAPIResponse struct { + model.CommonResponse + AlibabaWdkUmsOutboundAPIResponseModel +} + +// 出库-ERP下发单(新接口,包含调拨出库单和退货出库单等) 成功返回结果 +type AlibabaWdkUmsOutboundAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_ums_outbound_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkUmsOutboundProcessGetAPIRequest.go b/model/wdk/AlibabaWdkUmsOutboundProcessGetAPIRequest.go new file mode 100644 index 0000000000..710170029e --- /dev/null +++ b/model/wdk/AlibabaWdkUmsOutboundProcessGetAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +出库业务UMS异步处理结果返回 API请求 +alibaba.wdk.ums.outbound.process.get + +出库业务UMS异步处理结果返回 +*/ +type AlibabaWdkUmsOutboundProcessGetAPIRequest struct { + model.Params + // 店仓code,指的是作业对象,对应一个物理店或仓编码 + _warehouseCode string +} + +// 初始化AlibabaWdkUmsOutboundProcessGetAPIRequest对象 +func NewAlibabaWdkUmsOutboundProcessGetRequest() *AlibabaWdkUmsOutboundProcessGetAPIRequest{ + return &AlibabaWdkUmsOutboundProcessGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkUmsOutboundProcessGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.ums.outbound.process.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkUmsOutboundProcessGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseCode Setter +// 店仓code,指的是作业对象,对应一个物理店或仓编码 +func (r *AlibabaWdkUmsOutboundProcessGetAPIRequest) SetWarehouseCode(_warehouseCode string) error { + r._warehouseCode = _warehouseCode + r.Set("warehouse_code", _warehouseCode) + return nil +} + +// WarehouseCode Getter +func (r AlibabaWdkUmsOutboundProcessGetAPIRequest) GetWarehouseCode() string { + return r._warehouseCode +} diff --git a/model/wdk/AlibabaWdkUmsOutboundProcessGetAPIResponse.go b/model/wdk/AlibabaWdkUmsOutboundProcessGetAPIResponse.go new file mode 100644 index 0000000000..51b1c539cc --- /dev/null +++ b/model/wdk/AlibabaWdkUmsOutboundProcessGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +出库业务UMS异步处理结果返回 API返回值 +alibaba.wdk.ums.outbound.process.get + +出库业务UMS异步处理结果返回 +*/ +type AlibabaWdkUmsOutboundProcessGetAPIResponse struct { + model.CommonResponse + AlibabaWdkUmsOutboundProcessGetAPIResponseModel +} + +// 出库业务UMS异步处理结果返回 成功返回结果 +type AlibabaWdkUmsOutboundProcessGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_ums_outbound_process_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkUmsOutboundProcessGetResponse.go b/model/wdk/AlibabaWdkUmsOutboundProcessGetResponse.go deleted file mode 100644 index 34fce266bb..0000000000 --- a/model/wdk/AlibabaWdkUmsOutboundProcessGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -出库业务UMS异步处理结果返回 API返回值 -alibaba.wdk.ums.outbound.process.get - -出库业务UMS异步处理结果返回 -*/ -type AlibabaWdkUmsOutboundProcessGetAPIResponse struct { - model.CommonResponse - AlibabaWdkUmsOutboundProcessGetResponse -} - -// 出库业务UMS异步处理结果返回 成功返回结果 -type AlibabaWdkUmsOutboundProcessGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_ums_outbound_process_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkUmsOutboundResponse.go b/model/wdk/AlibabaWdkUmsOutboundResponse.go deleted file mode 100644 index d05848cde7..0000000000 --- a/model/wdk/AlibabaWdkUmsOutboundResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -出库-ERP下发单(新接口,包含调拨出库单和退货出库单等) API返回值 -alibaba.wdk.ums.outbound - -出库-ERP下发单(新接口,包含调拨出库单和退货出库单等) -*/ -type AlibabaWdkUmsOutboundAPIResponse struct { - model.CommonResponse - AlibabaWdkUmsOutboundResponse -} - -// 出库-ERP下发单(新接口,包含调拨出库单和退货出库单等) 成功返回结果 -type AlibabaWdkUmsOutboundResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_ums_outbound_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkUmsRetrieveBatchConfirmAPIRequest.go b/model/wdk/AlibabaWdkUmsRetrieveBatchConfirmAPIRequest.go new file mode 100644 index 0000000000..a469a910a0 --- /dev/null +++ b/model/wdk/AlibabaWdkUmsRetrieveBatchConfirmAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量消息确认 API请求 +alibaba.wdk.ums.retrieve.batch.confirm + +批量消息确认 +*/ +type AlibabaWdkUmsRetrieveBatchConfirmAPIRequest struct { + model.Params + // warehouse_code + _warehouseCode string + // warehouse_code + _uuids []string +} + +// 初始化AlibabaWdkUmsRetrieveBatchConfirmAPIRequest对象 +func NewAlibabaWdkUmsRetrieveBatchConfirmRequest() *AlibabaWdkUmsRetrieveBatchConfirmAPIRequest{ + return &AlibabaWdkUmsRetrieveBatchConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkUmsRetrieveBatchConfirmAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.ums.retrieve.batch.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkUmsRetrieveBatchConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseCode Setter +// warehouse_code +func (r *AlibabaWdkUmsRetrieveBatchConfirmAPIRequest) SetWarehouseCode(_warehouseCode string) error { + r._warehouseCode = _warehouseCode + r.Set("warehouse_code", _warehouseCode) + return nil +} + +// WarehouseCode Getter +func (r AlibabaWdkUmsRetrieveBatchConfirmAPIRequest) GetWarehouseCode() string { + return r._warehouseCode +} +// Uuids Setter +// warehouse_code +func (r *AlibabaWdkUmsRetrieveBatchConfirmAPIRequest) SetUuids(_uuids []string) error { + r._uuids = _uuids + r.Set("uuids", _uuids) + return nil +} + +// Uuids Getter +func (r AlibabaWdkUmsRetrieveBatchConfirmAPIRequest) GetUuids() []string { + return r._uuids +} diff --git a/model/wdk/AlibabaWdkUmsRetrieveBatchConfirmAPIResponse.go b/model/wdk/AlibabaWdkUmsRetrieveBatchConfirmAPIResponse.go new file mode 100644 index 0000000000..71d90d63ca --- /dev/null +++ b/model/wdk/AlibabaWdkUmsRetrieveBatchConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量消息确认 API返回值 +alibaba.wdk.ums.retrieve.batch.confirm + +批量消息确认 +*/ +type AlibabaWdkUmsRetrieveBatchConfirmAPIResponse struct { + model.CommonResponse + AlibabaWdkUmsRetrieveBatchConfirmAPIResponseModel +} + +// 批量消息确认 成功返回结果 +type AlibabaWdkUmsRetrieveBatchConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_ums_retrieve_batch_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkUmsRetrieveBatchConfirmResponse.go b/model/wdk/AlibabaWdkUmsRetrieveBatchConfirmResponse.go deleted file mode 100644 index 13e5012ec3..0000000000 --- a/model/wdk/AlibabaWdkUmsRetrieveBatchConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量消息确认 API返回值 -alibaba.wdk.ums.retrieve.batch.confirm - -批量消息确认 -*/ -type AlibabaWdkUmsRetrieveBatchConfirmAPIResponse struct { - model.CommonResponse - AlibabaWdkUmsRetrieveBatchConfirmResponse -} - -// 批量消息确认 成功返回结果 -type AlibabaWdkUmsRetrieveBatchConfirmResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_ums_retrieve_batch_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkUmsRetrieveConfirmAPIRequest.go b/model/wdk/AlibabaWdkUmsRetrieveConfirmAPIRequest.go new file mode 100644 index 0000000000..405a40f3aa --- /dev/null +++ b/model/wdk/AlibabaWdkUmsRetrieveConfirmAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +回流单-外部对已拉取到的UMS单据进行确认 API请求 +alibaba.wdk.ums.retrieve.confirm + +回流单-外部对已拉取到的UMS单据进行确认 +*/ +type AlibabaWdkUmsRetrieveConfirmAPIRequest struct { + model.Params + // 店仓code,指的是作业对象,对应一个物理店或仓编码 + _warehouseCode string + // 唯一识别码 + _uuid string +} + +// 初始化AlibabaWdkUmsRetrieveConfirmAPIRequest对象 +func NewAlibabaWdkUmsRetrieveConfirmRequest() *AlibabaWdkUmsRetrieveConfirmAPIRequest{ + return &AlibabaWdkUmsRetrieveConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkUmsRetrieveConfirmAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.ums.retrieve.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkUmsRetrieveConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseCode Setter +// 店仓code,指的是作业对象,对应一个物理店或仓编码 +func (r *AlibabaWdkUmsRetrieveConfirmAPIRequest) SetWarehouseCode(_warehouseCode string) error { + r._warehouseCode = _warehouseCode + r.Set("warehouse_code", _warehouseCode) + return nil +} + +// WarehouseCode Getter +func (r AlibabaWdkUmsRetrieveConfirmAPIRequest) GetWarehouseCode() string { + return r._warehouseCode +} +// Uuid Setter +// 唯一识别码 +func (r *AlibabaWdkUmsRetrieveConfirmAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r AlibabaWdkUmsRetrieveConfirmAPIRequest) GetUuid() string { + return r._uuid +} diff --git a/model/wdk/AlibabaWdkUmsRetrieveConfirmAPIResponse.go b/model/wdk/AlibabaWdkUmsRetrieveConfirmAPIResponse.go new file mode 100644 index 0000000000..17ce3bdaad --- /dev/null +++ b/model/wdk/AlibabaWdkUmsRetrieveConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +回流单-外部对已拉取到的UMS单据进行确认 API返回值 +alibaba.wdk.ums.retrieve.confirm + +回流单-外部对已拉取到的UMS单据进行确认 +*/ +type AlibabaWdkUmsRetrieveConfirmAPIResponse struct { + model.CommonResponse + AlibabaWdkUmsRetrieveConfirmAPIResponseModel +} + +// 回流单-外部对已拉取到的UMS单据进行确认 成功返回结果 +type AlibabaWdkUmsRetrieveConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_ums_retrieve_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkUmsRetrieveConfirmResponse.go b/model/wdk/AlibabaWdkUmsRetrieveConfirmResponse.go deleted file mode 100644 index f7472ed96f..0000000000 --- a/model/wdk/AlibabaWdkUmsRetrieveConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -回流单-外部对已拉取到的UMS单据进行确认 API返回值 -alibaba.wdk.ums.retrieve.confirm - -回流单-外部对已拉取到的UMS单据进行确认 -*/ -type AlibabaWdkUmsRetrieveConfirmAPIResponse struct { - model.CommonResponse - AlibabaWdkUmsRetrieveConfirmResponse -} - -// 回流单-外部对已拉取到的UMS单据进行确认 成功返回结果 -type AlibabaWdkUmsRetrieveConfirmResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_ums_retrieve_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkUmsReturnitemsGetAPIRequest.go b/model/wdk/AlibabaWdkUmsReturnitemsGetAPIRequest.go new file mode 100644 index 0000000000..154ad213a4 --- /dev/null +++ b/model/wdk/AlibabaWdkUmsReturnitemsGetAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +退货库位商品查询(退货出库辅助)-回流单 API请求 +alibaba.wdk.ums.returnitems.get + +退货库位商品查询(退货出库辅助)-回流单 +*/ +type AlibabaWdkUmsReturnitemsGetAPIRequest struct { + model.Params + // 店仓code,指的是作业对象,对应一个物理店或仓编码 + _warehouseCode string +} + +// 初始化AlibabaWdkUmsReturnitemsGetAPIRequest对象 +func NewAlibabaWdkUmsReturnitemsGetRequest() *AlibabaWdkUmsReturnitemsGetAPIRequest{ + return &AlibabaWdkUmsReturnitemsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkUmsReturnitemsGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.ums.returnitems.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkUmsReturnitemsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseCode Setter +// 店仓code,指的是作业对象,对应一个物理店或仓编码 +func (r *AlibabaWdkUmsReturnitemsGetAPIRequest) SetWarehouseCode(_warehouseCode string) error { + r._warehouseCode = _warehouseCode + r.Set("warehouse_code", _warehouseCode) + return nil +} + +// WarehouseCode Getter +func (r AlibabaWdkUmsReturnitemsGetAPIRequest) GetWarehouseCode() string { + return r._warehouseCode +} diff --git a/model/wdk/AlibabaWdkUmsReturnitemsGetAPIResponse.go b/model/wdk/AlibabaWdkUmsReturnitemsGetAPIResponse.go new file mode 100644 index 0000000000..511587fa8b --- /dev/null +++ b/model/wdk/AlibabaWdkUmsReturnitemsGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +退货库位商品查询(退货出库辅助)-回流单 API返回值 +alibaba.wdk.ums.returnitems.get + +退货库位商品查询(退货出库辅助)-回流单 +*/ +type AlibabaWdkUmsReturnitemsGetAPIResponse struct { + model.CommonResponse + AlibabaWdkUmsReturnitemsGetAPIResponseModel +} + +// 退货库位商品查询(退货出库辅助)-回流单 成功返回结果 +type AlibabaWdkUmsReturnitemsGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_ums_returnitems_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // reslut + Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkUmsReturnitemsGetResponse.go b/model/wdk/AlibabaWdkUmsReturnitemsGetResponse.go deleted file mode 100644 index 1d9a524f8b..0000000000 --- a/model/wdk/AlibabaWdkUmsReturnitemsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -退货库位商品查询(退货出库辅助)-回流单 API返回值 -alibaba.wdk.ums.returnitems.get - -退货库位商品查询(退货出库辅助)-回流单 -*/ -type AlibabaWdkUmsReturnitemsGetAPIResponse struct { - model.CommonResponse - AlibabaWdkUmsReturnitemsGetResponse -} - -// 退货库位商品查询(退货出库辅助)-回流单 成功返回结果 -type AlibabaWdkUmsReturnitemsGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_ums_returnitems_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // reslut - Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkUmsShiftGetAPIRequest.go b/model/wdk/AlibabaWdkUmsShiftGetAPIRequest.go new file mode 100644 index 0000000000..e2457ceef3 --- /dev/null +++ b/model/wdk/AlibabaWdkUmsShiftGetAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +移库单获取 API请求 +alibaba.wdk.ums.shift.get + +移库单获取 +*/ +type AlibabaWdkUmsShiftGetAPIRequest struct { + model.Params + // 店仓code,指的是库调对象,对应一个物理店或仓编码 + _warehouseCode string +} + +// 初始化AlibabaWdkUmsShiftGetAPIRequest对象 +func NewAlibabaWdkUmsShiftGetRequest() *AlibabaWdkUmsShiftGetAPIRequest{ + return &AlibabaWdkUmsShiftGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkUmsShiftGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.ums.shift.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkUmsShiftGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseCode Setter +// 店仓code,指的是库调对象,对应一个物理店或仓编码 +func (r *AlibabaWdkUmsShiftGetAPIRequest) SetWarehouseCode(_warehouseCode string) error { + r._warehouseCode = _warehouseCode + r.Set("warehouse_code", _warehouseCode) + return nil +} + +// WarehouseCode Getter +func (r AlibabaWdkUmsShiftGetAPIRequest) GetWarehouseCode() string { + return r._warehouseCode +} diff --git a/model/wdk/AlibabaWdkUmsShiftGetAPIResponse.go b/model/wdk/AlibabaWdkUmsShiftGetAPIResponse.go new file mode 100644 index 0000000000..c96ae74e9a --- /dev/null +++ b/model/wdk/AlibabaWdkUmsShiftGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +移库单获取 API返回值 +alibaba.wdk.ums.shift.get + +移库单获取 +*/ +type AlibabaWdkUmsShiftGetAPIResponse struct { + model.CommonResponse + AlibabaWdkUmsShiftGetAPIResponseModel +} + +// 移库单获取 成功返回结果 +type AlibabaWdkUmsShiftGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_ums_shift_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkUmsShiftGetResponse.go b/model/wdk/AlibabaWdkUmsShiftGetResponse.go deleted file mode 100644 index e6c8d73d43..0000000000 --- a/model/wdk/AlibabaWdkUmsShiftGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -移库单获取 API返回值 -alibaba.wdk.ums.shift.get - -移库单获取 -*/ -type AlibabaWdkUmsShiftGetAPIResponse struct { - model.CommonResponse - AlibabaWdkUmsShiftGetResponse -} - -// 移库单获取 成功返回结果 -type AlibabaWdkUmsShiftGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_ums_shift_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *UtmsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkWholesaleInboundorderCommitAPIRequest.go b/model/wdk/AlibabaWdkWholesaleInboundorderCommitAPIRequest.go new file mode 100644 index 0000000000..53d4ba3197 --- /dev/null +++ b/model/wdk/AlibabaWdkWholesaleInboundorderCommitAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +盒马帮退货信息回传接口 API请求 +alibaba.wdk.wholesale.inboundorder.commit + +盒马帮退货信息回传接口 +*/ +type AlibabaWdkWholesaleInboundorderCommitAPIRequest struct { + model.Params + // 退货信息参数 + _inboundInfoCommitReq *InboundInfoCommitReq +} + +// 初始化AlibabaWdkWholesaleInboundorderCommitAPIRequest对象 +func NewAlibabaWdkWholesaleInboundorderCommitRequest() *AlibabaWdkWholesaleInboundorderCommitAPIRequest{ + return &AlibabaWdkWholesaleInboundorderCommitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkWholesaleInboundorderCommitAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.wholesale.inboundorder.commit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkWholesaleInboundorderCommitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InboundInfoCommitReq Setter +// 退货信息参数 +func (r *AlibabaWdkWholesaleInboundorderCommitAPIRequest) SetInboundInfoCommitReq(_inboundInfoCommitReq *InboundInfoCommitReq) error { + r._inboundInfoCommitReq = _inboundInfoCommitReq + r.Set("inbound_info_commit_req", _inboundInfoCommitReq) + return nil +} + +// InboundInfoCommitReq Getter +func (r AlibabaWdkWholesaleInboundorderCommitAPIRequest) GetInboundInfoCommitReq() *InboundInfoCommitReq { + return r._inboundInfoCommitReq +} diff --git a/model/wdk/AlibabaWdkWholesaleInboundorderCommitAPIResponse.go b/model/wdk/AlibabaWdkWholesaleInboundorderCommitAPIResponse.go new file mode 100644 index 0000000000..a307a94039 --- /dev/null +++ b/model/wdk/AlibabaWdkWholesaleInboundorderCommitAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +盒马帮退货信息回传接口 API返回值 +alibaba.wdk.wholesale.inboundorder.commit + +盒马帮退货信息回传接口 +*/ +type AlibabaWdkWholesaleInboundorderCommitAPIResponse struct { + model.CommonResponse + AlibabaWdkWholesaleInboundorderCommitAPIResponseModel +} + +// 盒马帮退货信息回传接口 成功返回结果 +type AlibabaWdkWholesaleInboundorderCommitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_wholesale_inboundorder_commit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkWholesaleInboundorderCommitApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkWholesaleInboundorderCommitResponse.go b/model/wdk/AlibabaWdkWholesaleInboundorderCommitResponse.go deleted file mode 100644 index fc979f0e74..0000000000 --- a/model/wdk/AlibabaWdkWholesaleInboundorderCommitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -盒马帮退货信息回传接口 API返回值 -alibaba.wdk.wholesale.inboundorder.commit - -盒马帮退货信息回传接口 -*/ -type AlibabaWdkWholesaleInboundorderCommitAPIResponse struct { - model.CommonResponse - AlibabaWdkWholesaleInboundorderCommitResponse -} - -// 盒马帮退货信息回传接口 成功返回结果 -type AlibabaWdkWholesaleInboundorderCommitResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_wholesale_inboundorder_commit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkWholesaleInboundorderCommitApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkWholesaleOrderCommitAPIRequest.go b/model/wdk/AlibabaWdkWholesaleOrderCommitAPIRequest.go new file mode 100644 index 0000000000..bafa57c4d8 --- /dev/null +++ b/model/wdk/AlibabaWdkWholesaleOrderCommitAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +盒马帮采购确认订单接口 API请求 +alibaba.wdk.wholesale.order.commit + +盒马帮采购确认订单接口 +*/ +type AlibabaWdkWholesaleOrderCommitAPIRequest struct { + model.Params + // 采购单信息 + _orderCommitReq *OrderCommitReq +} + +// 初始化AlibabaWdkWholesaleOrderCommitAPIRequest对象 +func NewAlibabaWdkWholesaleOrderCommitRequest() *AlibabaWdkWholesaleOrderCommitAPIRequest{ + return &AlibabaWdkWholesaleOrderCommitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkWholesaleOrderCommitAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.wholesale.order.commit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkWholesaleOrderCommitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderCommitReq Setter +// 采购单信息 +func (r *AlibabaWdkWholesaleOrderCommitAPIRequest) SetOrderCommitReq(_orderCommitReq *OrderCommitReq) error { + r._orderCommitReq = _orderCommitReq + r.Set("order_commit_req", _orderCommitReq) + return nil +} + +// OrderCommitReq Getter +func (r AlibabaWdkWholesaleOrderCommitAPIRequest) GetOrderCommitReq() *OrderCommitReq { + return r._orderCommitReq +} diff --git a/model/wdk/AlibabaWdkWholesaleOrderCommitAPIResponse.go b/model/wdk/AlibabaWdkWholesaleOrderCommitAPIResponse.go new file mode 100644 index 0000000000..d0e3453b91 --- /dev/null +++ b/model/wdk/AlibabaWdkWholesaleOrderCommitAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +盒马帮采购确认订单接口 API返回值 +alibaba.wdk.wholesale.order.commit + +盒马帮采购确认订单接口 +*/ +type AlibabaWdkWholesaleOrderCommitAPIResponse struct { + model.CommonResponse + AlibabaWdkWholesaleOrderCommitAPIResponseModel +} + +// 盒马帮采购确认订单接口 成功返回结果 +type AlibabaWdkWholesaleOrderCommitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_wholesale_order_commit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkWholesaleOrderCommitApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkWholesaleOrderCommitResponse.go b/model/wdk/AlibabaWdkWholesaleOrderCommitResponse.go deleted file mode 100644 index 74f3ce6cd0..0000000000 --- a/model/wdk/AlibabaWdkWholesaleOrderCommitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -盒马帮采购确认订单接口 API返回值 -alibaba.wdk.wholesale.order.commit - -盒马帮采购确认订单接口 -*/ -type AlibabaWdkWholesaleOrderCommitAPIResponse struct { - model.CommonResponse - AlibabaWdkWholesaleOrderCommitResponse -} - -// 盒马帮采购确认订单接口 成功返回结果 -type AlibabaWdkWholesaleOrderCommitResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_wholesale_order_commit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkWholesaleOrderCommitApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkWholesaleOutboundorderCommitAPIRequest.go b/model/wdk/AlibabaWdkWholesaleOutboundorderCommitAPIRequest.go new file mode 100644 index 0000000000..3ec53cdee5 --- /dev/null +++ b/model/wdk/AlibabaWdkWholesaleOutboundorderCommitAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +盒马帮发货信息回传接口 API请求 +alibaba.wdk.wholesale.outboundorder.commit + +盒马帮发货信息回传接口 +*/ +type AlibabaWdkWholesaleOutboundorderCommitAPIRequest struct { + model.Params + // 发货信息参数 + _outboundInfoCommitReq *OutboundInfoCommitReq +} + +// 初始化AlibabaWdkWholesaleOutboundorderCommitAPIRequest对象 +func NewAlibabaWdkWholesaleOutboundorderCommitRequest() *AlibabaWdkWholesaleOutboundorderCommitAPIRequest{ + return &AlibabaWdkWholesaleOutboundorderCommitAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkWholesaleOutboundorderCommitAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.wholesale.outboundorder.commit" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkWholesaleOutboundorderCommitAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutboundInfoCommitReq Setter +// 发货信息参数 +func (r *AlibabaWdkWholesaleOutboundorderCommitAPIRequest) SetOutboundInfoCommitReq(_outboundInfoCommitReq *OutboundInfoCommitReq) error { + r._outboundInfoCommitReq = _outboundInfoCommitReq + r.Set("outbound_info_commit_req", _outboundInfoCommitReq) + return nil +} + +// OutboundInfoCommitReq Getter +func (r AlibabaWdkWholesaleOutboundorderCommitAPIRequest) GetOutboundInfoCommitReq() *OutboundInfoCommitReq { + return r._outboundInfoCommitReq +} diff --git a/model/wdk/AlibabaWdkWholesaleOutboundorderCommitAPIResponse.go b/model/wdk/AlibabaWdkWholesaleOutboundorderCommitAPIResponse.go new file mode 100644 index 0000000000..d7549b39dd --- /dev/null +++ b/model/wdk/AlibabaWdkWholesaleOutboundorderCommitAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +盒马帮发货信息回传接口 API返回值 +alibaba.wdk.wholesale.outboundorder.commit + +盒马帮发货信息回传接口 +*/ +type AlibabaWdkWholesaleOutboundorderCommitAPIResponse struct { + model.CommonResponse + AlibabaWdkWholesaleOutboundorderCommitAPIResponseModel +} + +// 盒马帮发货信息回传接口 成功返回结果 +type AlibabaWdkWholesaleOutboundorderCommitAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_wholesale_outboundorder_commit_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkWholesaleOutboundorderCommitApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkWholesaleOutboundorderCommitResponse.go b/model/wdk/AlibabaWdkWholesaleOutboundorderCommitResponse.go deleted file mode 100644 index c4e59e4f42..0000000000 --- a/model/wdk/AlibabaWdkWholesaleOutboundorderCommitResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -盒马帮发货信息回传接口 API返回值 -alibaba.wdk.wholesale.outboundorder.commit - -盒马帮发货信息回传接口 -*/ -type AlibabaWdkWholesaleOutboundorderCommitAPIResponse struct { - model.CommonResponse - AlibabaWdkWholesaleOutboundorderCommitResponse -} - -// 盒马帮发货信息回传接口 成功返回结果 -type AlibabaWdkWholesaleOutboundorderCommitResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_wholesale_outboundorder_commit_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkWholesaleOutboundorderCommitApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkopenCateorderPullAPIRequest.go b/model/wdk/AlibabaWdkopenCateorderPullAPIRequest.go new file mode 100644 index 0000000000..77c09d8949 --- /dev/null +++ b/model/wdk/AlibabaWdkopenCateorderPullAPIRequest.go @@ -0,0 +1,94 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商户回传餐饮加工单状态 API请求 +alibaba.wdkopen.cateorder.pull + +商户回传餐饮加工单状态 +*/ +type AlibabaWdkopenCateorderPullAPIRequest struct { + model.Params + // 经营店ID + _storeId string + // 回传状态,PREPARING,准备中,制作中;PRODUCE_FINISH,制作完成;FETCHED 已取餐; CANCEL,加工失败/取消 + _status string + // 主站主订单ID + _outOrderId string + // 主站子订单ID列表, 为空则表示回传整单状态 + _subOutOrderIds []string +} + +// 初始化AlibabaWdkopenCateorderPullAPIRequest对象 +func NewAlibabaWdkopenCateorderPullRequest() *AlibabaWdkopenCateorderPullAPIRequest{ + return &AlibabaWdkopenCateorderPullAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkopenCateorderPullAPIRequest) GetApiMethodName() string { + return "alibaba.wdkopen.cateorder.pull" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkopenCateorderPullAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 经营店ID +func (r *AlibabaWdkopenCateorderPullAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaWdkopenCateorderPullAPIRequest) GetStoreId() string { + return r._storeId +} +// Status Setter +// 回传状态,PREPARING,准备中,制作中;PRODUCE_FINISH,制作完成;FETCHED 已取餐; CANCEL,加工失败/取消 +func (r *AlibabaWdkopenCateorderPullAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaWdkopenCateorderPullAPIRequest) GetStatus() string { + return r._status +} +// OutOrderId Setter +// 主站主订单ID +func (r *AlibabaWdkopenCateorderPullAPIRequest) SetOutOrderId(_outOrderId string) error { + r._outOrderId = _outOrderId + r.Set("out_order_id", _outOrderId) + return nil +} + +// OutOrderId Getter +func (r AlibabaWdkopenCateorderPullAPIRequest) GetOutOrderId() string { + return r._outOrderId +} +// SubOutOrderIds Setter +// 主站子订单ID列表, 为空则表示回传整单状态 +func (r *AlibabaWdkopenCateorderPullAPIRequest) SetSubOutOrderIds(_subOutOrderIds []string) error { + r._subOutOrderIds = _subOutOrderIds + r.Set("sub_out_order_ids", _subOutOrderIds) + return nil +} + +// SubOutOrderIds Getter +func (r AlibabaWdkopenCateorderPullAPIRequest) GetSubOutOrderIds() []string { + return r._subOutOrderIds +} diff --git a/model/wdk/AlibabaWdkopenCateorderPullAPIResponse.go b/model/wdk/AlibabaWdkopenCateorderPullAPIResponse.go new file mode 100644 index 0000000000..8870d5a91b --- /dev/null +++ b/model/wdk/AlibabaWdkopenCateorderPullAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商户回传餐饮加工单状态 API返回值 +alibaba.wdkopen.cateorder.pull + +商户回传餐饮加工单状态 +*/ +type AlibabaWdkopenCateorderPullAPIResponse struct { + model.CommonResponse + AlibabaWdkopenCateorderPullAPIResponseModel +} + +// 商户回传餐饮加工单状态 成功返回结果 +type AlibabaWdkopenCateorderPullAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdkopen_cateorder_pull_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用返回 + TopBaseResult *TopBaseResult `json:"top_base_result,omitempty" xml:"top_base_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkopenCateorderPullResponse.go b/model/wdk/AlibabaWdkopenCateorderPullResponse.go deleted file mode 100644 index c62f1a221a..0000000000 --- a/model/wdk/AlibabaWdkopenCateorderPullResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商户回传餐饮加工单状态 API返回值 -alibaba.wdkopen.cateorder.pull - -商户回传餐饮加工单状态 -*/ -type AlibabaWdkopenCateorderPullAPIResponse struct { - model.CommonResponse - AlibabaWdkopenCateorderPullResponse -} - -// 商户回传餐饮加工单状态 成功返回结果 -type AlibabaWdkopenCateorderPullResponse struct { - XMLName xml.Name `xml:"alibaba_wdkopen_cateorder_pull_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用返回 - TopBaseResult *TopBaseResult `json:"top_base_result,omitempty" xml:"top_base_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkopenOrderGetAPIRequest.go b/model/wdk/AlibabaWdkopenOrderGetAPIRequest.go new file mode 100644 index 0000000000..7d0a41701b --- /dev/null +++ b/model/wdk/AlibabaWdkopenOrderGetAPIRequest.go @@ -0,0 +1,80 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口商户订单获取 API请求 +alibaba.wdkopen.order.get + +商户通过五道口订单id获取订单信息 +*/ +type AlibabaWdkopenOrderGetAPIRequest struct { + model.Params + // 经营店id + _storeId string + // 五道口主订单id + _bizOrderId int64 + // 外部主订单ID + _outOrderId string +} + +// 初始化AlibabaWdkopenOrderGetAPIRequest对象 +func NewAlibabaWdkopenOrderGetRequest() *AlibabaWdkopenOrderGetAPIRequest{ + return &AlibabaWdkopenOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkopenOrderGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdkopen.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkopenOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 经营店id +func (r *AlibabaWdkopenOrderGetAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaWdkopenOrderGetAPIRequest) GetStoreId() string { + return r._storeId +} +// BizOrderId Setter +// 五道口主订单id +func (r *AlibabaWdkopenOrderGetAPIRequest) SetBizOrderId(_bizOrderId int64) error { + r._bizOrderId = _bizOrderId + r.Set("biz_order_id", _bizOrderId) + return nil +} + +// BizOrderId Getter +func (r AlibabaWdkopenOrderGetAPIRequest) GetBizOrderId() int64 { + return r._bizOrderId +} +// OutOrderId Setter +// 外部主订单ID +func (r *AlibabaWdkopenOrderGetAPIRequest) SetOutOrderId(_outOrderId string) error { + r._outOrderId = _outOrderId + r.Set("out_order_id", _outOrderId) + return nil +} + +// OutOrderId Getter +func (r AlibabaWdkopenOrderGetAPIRequest) GetOutOrderId() string { + return r._outOrderId +} diff --git a/model/wdk/AlibabaWdkopenOrderGetAPIResponse.go b/model/wdk/AlibabaWdkopenOrderGetAPIResponse.go new file mode 100644 index 0000000000..72276269ec --- /dev/null +++ b/model/wdk/AlibabaWdkopenOrderGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口商户订单获取 API返回值 +alibaba.wdkopen.order.get + +商户通过五道口订单id获取订单信息 +*/ +type AlibabaWdkopenOrderGetAPIResponse struct { + model.CommonResponse + AlibabaWdkopenOrderGetAPIResponseModel +} + +// 五道口商户订单获取 成功返回结果 +type AlibabaWdkopenOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdkopen_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果对象 + TopBaseResult *TopBaseResult `json:"top_base_result,omitempty" xml:"top_base_result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkopenOrderGetResponse.go b/model/wdk/AlibabaWdkopenOrderGetResponse.go deleted file mode 100644 index 8202907113..0000000000 --- a/model/wdk/AlibabaWdkopenOrderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -五道口商户订单获取 API返回值 -alibaba.wdkopen.order.get - -商户通过五道口订单id获取订单信息 -*/ -type AlibabaWdkopenOrderGetAPIResponse struct { - model.CommonResponse - AlibabaWdkopenOrderGetResponse -} - -// 五道口商户订单获取 成功返回结果 -type AlibabaWdkopenOrderGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdkopen_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果对象 - TopBaseResult *TopBaseResult `json:"top_base_result,omitempty" xml:"top_base_result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkorderSharestockFulfillGetAPIRequest.go b/model/wdk/AlibabaWdkorderSharestockFulfillGetAPIRequest.go new file mode 100644 index 0000000000..4a9bce3fe5 --- /dev/null +++ b/model/wdk/AlibabaWdkorderSharestockFulfillGetAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商户订单履约数据获取 API请求 +alibaba.wdkorder.sharestock.fulfill.get + +商户订单履约数据获取 +*/ +type AlibabaWdkorderSharestockFulfillGetAPIRequest struct { + model.Params + // 履约单ID + _fulfillOrderId string +} + +// 初始化AlibabaWdkorderSharestockFulfillGetAPIRequest对象 +func NewAlibabaWdkorderSharestockFulfillGetRequest() *AlibabaWdkorderSharestockFulfillGetAPIRequest{ + return &AlibabaWdkorderSharestockFulfillGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkorderSharestockFulfillGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdkorder.sharestock.fulfill.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkorderSharestockFulfillGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FulfillOrderId Setter +// 履约单ID +func (r *AlibabaWdkorderSharestockFulfillGetAPIRequest) SetFulfillOrderId(_fulfillOrderId string) error { + r._fulfillOrderId = _fulfillOrderId + r.Set("fulfill_order_id", _fulfillOrderId) + return nil +} + +// FulfillOrderId Getter +func (r AlibabaWdkorderSharestockFulfillGetAPIRequest) GetFulfillOrderId() string { + return r._fulfillOrderId +} diff --git a/model/wdk/AlibabaWdkorderSharestockFulfillGetAPIResponse.go b/model/wdk/AlibabaWdkorderSharestockFulfillGetAPIResponse.go new file mode 100644 index 0000000000..3c1421b0c9 --- /dev/null +++ b/model/wdk/AlibabaWdkorderSharestockFulfillGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商户订单履约数据获取 API返回值 +alibaba.wdkorder.sharestock.fulfill.get + +商户订单履约数据获取 +*/ +type AlibabaWdkorderSharestockFulfillGetAPIResponse struct { + model.CommonResponse + AlibabaWdkorderSharestockFulfillGetAPIResponseModel +} + +// 商户订单履约数据获取 成功返回结果 +type AlibabaWdkorderSharestockFulfillGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdkorder_sharestock_fulfill_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *MaochaoOrderFulfillQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkorderSharestockFulfillGetResponse.go b/model/wdk/AlibabaWdkorderSharestockFulfillGetResponse.go deleted file mode 100644 index 1b4ec49724..0000000000 --- a/model/wdk/AlibabaWdkorderSharestockFulfillGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商户订单履约数据获取 API返回值 -alibaba.wdkorder.sharestock.fulfill.get - -商户订单履约数据获取 -*/ -type AlibabaWdkorderSharestockFulfillGetAPIResponse struct { - model.CommonResponse - AlibabaWdkorderSharestockFulfillGetResponse -} - -// 商户订单履约数据获取 成功返回结果 -type AlibabaWdkorderSharestockFulfillGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdkorder_sharestock_fulfill_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *MaochaoOrderFulfillQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkorderSharestockInsuranceCallbackAPIRequest.go b/model/wdk/AlibabaWdkorderSharestockInsuranceCallbackAPIRequest.go new file mode 100644 index 0000000000..072a230232 --- /dev/null +++ b/model/wdk/AlibabaWdkorderSharestockInsuranceCallbackAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +共享库存订单投保后回传保单号 API请求 +alibaba.wdkorder.sharestock.insurance.callback + +共享库存订单投保消息获取 +*/ +type AlibabaWdkorderSharestockInsuranceCallbackAPIRequest struct { + model.Params + // 淘宝交易子订单ID + _tbSubOrderId int64 + // 投保单ID + _insuranceId string +} + +// 初始化AlibabaWdkorderSharestockInsuranceCallbackAPIRequest对象 +func NewAlibabaWdkorderSharestockInsuranceCallbackRequest() *AlibabaWdkorderSharestockInsuranceCallbackAPIRequest{ + return &AlibabaWdkorderSharestockInsuranceCallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkorderSharestockInsuranceCallbackAPIRequest) GetApiMethodName() string { + return "alibaba.wdkorder.sharestock.insurance.callback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkorderSharestockInsuranceCallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TbSubOrderId Setter +// 淘宝交易子订单ID +func (r *AlibabaWdkorderSharestockInsuranceCallbackAPIRequest) SetTbSubOrderId(_tbSubOrderId int64) error { + r._tbSubOrderId = _tbSubOrderId + r.Set("tb_sub_order_id", _tbSubOrderId) + return nil +} + +// TbSubOrderId Getter +func (r AlibabaWdkorderSharestockInsuranceCallbackAPIRequest) GetTbSubOrderId() int64 { + return r._tbSubOrderId +} +// InsuranceId Setter +// 投保单ID +func (r *AlibabaWdkorderSharestockInsuranceCallbackAPIRequest) SetInsuranceId(_insuranceId string) error { + r._insuranceId = _insuranceId + r.Set("insurance_id", _insuranceId) + return nil +} + +// InsuranceId Getter +func (r AlibabaWdkorderSharestockInsuranceCallbackAPIRequest) GetInsuranceId() string { + return r._insuranceId +} diff --git a/model/wdk/AlibabaWdkorderSharestockInsuranceCallbackAPIResponse.go b/model/wdk/AlibabaWdkorderSharestockInsuranceCallbackAPIResponse.go new file mode 100644 index 0000000000..d1c885998b --- /dev/null +++ b/model/wdk/AlibabaWdkorderSharestockInsuranceCallbackAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +共享库存订单投保后回传保单号 API返回值 +alibaba.wdkorder.sharestock.insurance.callback + +共享库存订单投保消息获取 +*/ +type AlibabaWdkorderSharestockInsuranceCallbackAPIResponse struct { + model.CommonResponse + AlibabaWdkorderSharestockInsuranceCallbackAPIResponseModel +} + +// 共享库存订单投保后回传保单号 成功返回结果 +type AlibabaWdkorderSharestockInsuranceCallbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdkorder_sharestock_insurance_callback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *MaochaoOrderInsuranceCallbackResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkorderSharestockInsuranceCallbackResponse.go b/model/wdk/AlibabaWdkorderSharestockInsuranceCallbackResponse.go deleted file mode 100644 index ac57882349..0000000000 --- a/model/wdk/AlibabaWdkorderSharestockInsuranceCallbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -共享库存订单投保后回传保单号 API返回值 -alibaba.wdkorder.sharestock.insurance.callback - -共享库存订单投保消息获取 -*/ -type AlibabaWdkorderSharestockInsuranceCallbackAPIResponse struct { - model.CommonResponse - AlibabaWdkorderSharestockInsuranceCallbackResponse -} - -// 共享库存订单投保后回传保单号 成功返回结果 -type AlibabaWdkorderSharestockInsuranceCallbackResponse struct { - XMLName xml.Name `xml:"alibaba_wdkorder_sharestock_insurance_callback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *MaochaoOrderInsuranceCallbackResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkorderSharestockInsuranceGetorderAPIRequest.go b/model/wdk/AlibabaWdkorderSharestockInsuranceGetorderAPIRequest.go new file mode 100644 index 0000000000..a5e250496a --- /dev/null +++ b/model/wdk/AlibabaWdkorderSharestockInsuranceGetorderAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +共享库存订单投保消息获取 API请求 +alibaba.wdkorder.sharestock.insurance.getorder + +共享库存订单投保消息获取 +*/ +type AlibabaWdkorderSharestockInsuranceGetorderAPIRequest struct { + model.Params + // 淘宝子订单ID + _tbSubOrderId int64 +} + +// 初始化AlibabaWdkorderSharestockInsuranceGetorderAPIRequest对象 +func NewAlibabaWdkorderSharestockInsuranceGetorderRequest() *AlibabaWdkorderSharestockInsuranceGetorderAPIRequest{ + return &AlibabaWdkorderSharestockInsuranceGetorderAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkorderSharestockInsuranceGetorderAPIRequest) GetApiMethodName() string { + return "alibaba.wdkorder.sharestock.insurance.getorder" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkorderSharestockInsuranceGetorderAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TbSubOrderId Setter +// 淘宝子订单ID +func (r *AlibabaWdkorderSharestockInsuranceGetorderAPIRequest) SetTbSubOrderId(_tbSubOrderId int64) error { + r._tbSubOrderId = _tbSubOrderId + r.Set("tb_sub_order_id", _tbSubOrderId) + return nil +} + +// TbSubOrderId Getter +func (r AlibabaWdkorderSharestockInsuranceGetorderAPIRequest) GetTbSubOrderId() int64 { + return r._tbSubOrderId +} diff --git a/model/wdk/AlibabaWdkorderSharestockInsuranceGetorderAPIResponse.go b/model/wdk/AlibabaWdkorderSharestockInsuranceGetorderAPIResponse.go new file mode 100644 index 0000000000..90386b4840 --- /dev/null +++ b/model/wdk/AlibabaWdkorderSharestockInsuranceGetorderAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +共享库存订单投保消息获取 API返回值 +alibaba.wdkorder.sharestock.insurance.getorder + +共享库存订单投保消息获取 +*/ +type AlibabaWdkorderSharestockInsuranceGetorderAPIResponse struct { + model.CommonResponse + AlibabaWdkorderSharestockInsuranceGetorderAPIResponseModel +} + +// 共享库存订单投保消息获取 成功返回结果 +type AlibabaWdkorderSharestockInsuranceGetorderAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdkorder_sharestock_insurance_getorder_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *MaochaoOrderInsuranceQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkorderSharestockInsuranceGetorderResponse.go b/model/wdk/AlibabaWdkorderSharestockInsuranceGetorderResponse.go deleted file mode 100644 index 005c7b3889..0000000000 --- a/model/wdk/AlibabaWdkorderSharestockInsuranceGetorderResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -共享库存订单投保消息获取 API返回值 -alibaba.wdkorder.sharestock.insurance.getorder - -共享库存订单投保消息获取 -*/ -type AlibabaWdkorderSharestockInsuranceGetorderAPIResponse struct { - model.CommonResponse - AlibabaWdkorderSharestockInsuranceGetorderResponse -} - -// 共享库存订单投保消息获取 成功返回结果 -type AlibabaWdkorderSharestockInsuranceGetorderResponse struct { - XMLName xml.Name `xml:"alibaba_wdkorder_sharestock_insurance_getorder_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *MaochaoOrderInsuranceQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkorderSharestockInsuranceRefundcallbackAPIRequest.go b/model/wdk/AlibabaWdkorderSharestockInsuranceRefundcallbackAPIRequest.go new file mode 100644 index 0000000000..1f7c07e0ee --- /dev/null +++ b/model/wdk/AlibabaWdkorderSharestockInsuranceRefundcallbackAPIRequest.go @@ -0,0 +1,80 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +共享库存逆向订单理赔单回传 API请求 +alibaba.wdkorder.sharestock.insurance.refundcallback + +共享库存逆向订单理赔单回传 +*/ +type AlibabaWdkorderSharestockInsuranceRefundcallbackAPIRequest struct { + model.Params + // 淘宝交易子单ID + _tbSubOrderId int64 + // 退款单ID + _refundId string + // 理赔单ID + _claimId string +} + +// 初始化AlibabaWdkorderSharestockInsuranceRefundcallbackAPIRequest对象 +func NewAlibabaWdkorderSharestockInsuranceRefundcallbackRequest() *AlibabaWdkorderSharestockInsuranceRefundcallbackAPIRequest{ + return &AlibabaWdkorderSharestockInsuranceRefundcallbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkorderSharestockInsuranceRefundcallbackAPIRequest) GetApiMethodName() string { + return "alibaba.wdkorder.sharestock.insurance.refundcallback" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkorderSharestockInsuranceRefundcallbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TbSubOrderId Setter +// 淘宝交易子单ID +func (r *AlibabaWdkorderSharestockInsuranceRefundcallbackAPIRequest) SetTbSubOrderId(_tbSubOrderId int64) error { + r._tbSubOrderId = _tbSubOrderId + r.Set("tb_sub_order_id", _tbSubOrderId) + return nil +} + +// TbSubOrderId Getter +func (r AlibabaWdkorderSharestockInsuranceRefundcallbackAPIRequest) GetTbSubOrderId() int64 { + return r._tbSubOrderId +} +// RefundId Setter +// 退款单ID +func (r *AlibabaWdkorderSharestockInsuranceRefundcallbackAPIRequest) SetRefundId(_refundId string) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r AlibabaWdkorderSharestockInsuranceRefundcallbackAPIRequest) GetRefundId() string { + return r._refundId +} +// ClaimId Setter +// 理赔单ID +func (r *AlibabaWdkorderSharestockInsuranceRefundcallbackAPIRequest) SetClaimId(_claimId string) error { + r._claimId = _claimId + r.Set("claim_id", _claimId) + return nil +} + +// ClaimId Getter +func (r AlibabaWdkorderSharestockInsuranceRefundcallbackAPIRequest) GetClaimId() string { + return r._claimId +} diff --git a/model/wdk/AlibabaWdkorderSharestockInsuranceRefundcallbackAPIResponse.go b/model/wdk/AlibabaWdkorderSharestockInsuranceRefundcallbackAPIResponse.go new file mode 100644 index 0000000000..d68eb85ec8 --- /dev/null +++ b/model/wdk/AlibabaWdkorderSharestockInsuranceRefundcallbackAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +共享库存逆向订单理赔单回传 API返回值 +alibaba.wdkorder.sharestock.insurance.refundcallback + +共享库存逆向订单理赔单回传 +*/ +type AlibabaWdkorderSharestockInsuranceRefundcallbackAPIResponse struct { + model.CommonResponse + AlibabaWdkorderSharestockInsuranceRefundcallbackAPIResponseModel +} + +// 共享库存逆向订单理赔单回传 成功返回结果 +type AlibabaWdkorderSharestockInsuranceRefundcallbackAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdkorder_sharestock_insurance_refundcallback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *MaochaoOrderInsuranceRefundCallbackResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkorderSharestockInsuranceRefundcallbackResponse.go b/model/wdk/AlibabaWdkorderSharestockInsuranceRefundcallbackResponse.go deleted file mode 100644 index a60a543e84..0000000000 --- a/model/wdk/AlibabaWdkorderSharestockInsuranceRefundcallbackResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -共享库存逆向订单理赔单回传 API返回值 -alibaba.wdkorder.sharestock.insurance.refundcallback - -共享库存逆向订单理赔单回传 -*/ -type AlibabaWdkorderSharestockInsuranceRefundcallbackAPIResponse struct { - model.CommonResponse - AlibabaWdkorderSharestockInsuranceRefundcallbackResponse -} - -// 共享库存逆向订单理赔单回传 成功返回结果 -type AlibabaWdkorderSharestockInsuranceRefundcallbackResponse struct { - XMLName xml.Name `xml:"alibaba_wdkorder_sharestock_insurance_refundcallback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *MaochaoOrderInsuranceRefundCallbackResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkorderSharestockInsuranceRefundgetAPIRequest.go b/model/wdk/AlibabaWdkorderSharestockInsuranceRefundgetAPIRequest.go new file mode 100644 index 0000000000..cfc970f782 --- /dev/null +++ b/model/wdk/AlibabaWdkorderSharestockInsuranceRefundgetAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +共享库存投保业务售后逆向订单数据获取 API请求 +alibaba.wdkorder.sharestock.insurance.refundget + +共享库存投保业务售后逆向订单数据获取 +*/ +type AlibabaWdkorderSharestockInsuranceRefundgetAPIRequest struct { + model.Params + // 淘宝子订单ID + _tbSubOrderId string + // 退货单ID + _refundId string +} + +// 初始化AlibabaWdkorderSharestockInsuranceRefundgetAPIRequest对象 +func NewAlibabaWdkorderSharestockInsuranceRefundgetRequest() *AlibabaWdkorderSharestockInsuranceRefundgetAPIRequest{ + return &AlibabaWdkorderSharestockInsuranceRefundgetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkorderSharestockInsuranceRefundgetAPIRequest) GetApiMethodName() string { + return "alibaba.wdkorder.sharestock.insurance.refundget" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkorderSharestockInsuranceRefundgetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TbSubOrderId Setter +// 淘宝子订单ID +func (r *AlibabaWdkorderSharestockInsuranceRefundgetAPIRequest) SetTbSubOrderId(_tbSubOrderId string) error { + r._tbSubOrderId = _tbSubOrderId + r.Set("tb_sub_order_id", _tbSubOrderId) + return nil +} + +// TbSubOrderId Getter +func (r AlibabaWdkorderSharestockInsuranceRefundgetAPIRequest) GetTbSubOrderId() string { + return r._tbSubOrderId +} +// RefundId Setter +// 退货单ID +func (r *AlibabaWdkorderSharestockInsuranceRefundgetAPIRequest) SetRefundId(_refundId string) error { + r._refundId = _refundId + r.Set("refund_id", _refundId) + return nil +} + +// RefundId Getter +func (r AlibabaWdkorderSharestockInsuranceRefundgetAPIRequest) GetRefundId() string { + return r._refundId +} diff --git a/model/wdk/AlibabaWdkorderSharestockInsuranceRefundgetAPIResponse.go b/model/wdk/AlibabaWdkorderSharestockInsuranceRefundgetAPIResponse.go new file mode 100644 index 0000000000..9b084e87de --- /dev/null +++ b/model/wdk/AlibabaWdkorderSharestockInsuranceRefundgetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +共享库存投保业务售后逆向订单数据获取 API返回值 +alibaba.wdkorder.sharestock.insurance.refundget + +共享库存投保业务售后逆向订单数据获取 +*/ +type AlibabaWdkorderSharestockInsuranceRefundgetAPIResponse struct { + model.CommonResponse + AlibabaWdkorderSharestockInsuranceRefundgetAPIResponseModel +} + +// 共享库存投保业务售后逆向订单数据获取 成功返回结果 +type AlibabaWdkorderSharestockInsuranceRefundgetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdkorder_sharestock_insurance_refundget_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result *MaochaoOrderInsuranceRefundQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkorderSharestockInsuranceRefundgetResponse.go b/model/wdk/AlibabaWdkorderSharestockInsuranceRefundgetResponse.go deleted file mode 100644 index 67e9500c09..0000000000 --- a/model/wdk/AlibabaWdkorderSharestockInsuranceRefundgetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -共享库存投保业务售后逆向订单数据获取 API返回值 -alibaba.wdkorder.sharestock.insurance.refundget - -共享库存投保业务售后逆向订单数据获取 -*/ -type AlibabaWdkorderSharestockInsuranceRefundgetAPIResponse struct { - model.CommonResponse - AlibabaWdkorderSharestockInsuranceRefundgetResponse -} - -// 共享库存投保业务售后逆向订单数据获取 成功返回结果 -type AlibabaWdkorderSharestockInsuranceRefundgetResponse struct { - XMLName xml.Name `xml:"alibaba_wdkorder_sharestock_insurance_refundget_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result *MaochaoOrderInsuranceRefundQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/AlibabaWdkorderSharestockOrderGetAPIRequest.go b/model/wdk/AlibabaWdkorderSharestockOrderGetAPIRequest.go new file mode 100644 index 0000000000..904b114971 --- /dev/null +++ b/model/wdk/AlibabaWdkorderSharestockOrderGetAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +猫超商户订单拉取 API请求 +alibaba.wdkorder.sharestock.order.get + +商户拉取猫超订单数据 +*/ +type AlibabaWdkorderSharestockOrderGetAPIRequest struct { + model.Params + // 淘宝主订单ID + _tbOrderId int64 +} + +// 初始化AlibabaWdkorderSharestockOrderGetAPIRequest对象 +func NewAlibabaWdkorderSharestockOrderGetRequest() *AlibabaWdkorderSharestockOrderGetAPIRequest{ + return &AlibabaWdkorderSharestockOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkorderSharestockOrderGetAPIRequest) GetApiMethodName() string { + return "alibaba.wdkorder.sharestock.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkorderSharestockOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TbOrderId Setter +// 淘宝主订单ID +func (r *AlibabaWdkorderSharestockOrderGetAPIRequest) SetTbOrderId(_tbOrderId int64) error { + r._tbOrderId = _tbOrderId + r.Set("tb_order_id", _tbOrderId) + return nil +} + +// TbOrderId Getter +func (r AlibabaWdkorderSharestockOrderGetAPIRequest) GetTbOrderId() int64 { + return r._tbOrderId +} diff --git a/model/wdk/AlibabaWdkorderSharestockOrderGetAPIResponse.go b/model/wdk/AlibabaWdkorderSharestockOrderGetAPIResponse.go new file mode 100644 index 0000000000..74a14976ab --- /dev/null +++ b/model/wdk/AlibabaWdkorderSharestockOrderGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +猫超商户订单拉取 API返回值 +alibaba.wdkorder.sharestock.order.get + +商户拉取猫超订单数据 +*/ +type AlibabaWdkorderSharestockOrderGetAPIResponse struct { + model.CommonResponse + AlibabaWdkorderSharestockOrderGetAPIResponseModel +} + +// 猫超商户订单拉取 成功返回结果 +type AlibabaWdkorderSharestockOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdkorder_sharestock_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 调用结果 + Result *MaochaoOrderQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/AlibabaWdkorderSharestockOrderGetResponse.go b/model/wdk/AlibabaWdkorderSharestockOrderGetResponse.go deleted file mode 100644 index 911920749c..0000000000 --- a/model/wdk/AlibabaWdkorderSharestockOrderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -猫超商户订单拉取 API返回值 -alibaba.wdkorder.sharestock.order.get - -商户拉取猫超订单数据 -*/ -type AlibabaWdkorderSharestockOrderGetAPIResponse struct { - model.CommonResponse - AlibabaWdkorderSharestockOrderGetResponse -} - -// 猫超商户订单拉取 成功返回结果 -type AlibabaWdkorderSharestockOrderGetResponse struct { - XMLName xml.Name `xml:"alibaba_wdkorder_sharestock_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 调用结果 - Result *MaochaoOrderQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorBatchconfirmAPIRequest.go b/model/wdk/TaobaoWdkEquipmentConveyorBatchconfirmAPIRequest.go new file mode 100644 index 0000000000..1dd5e2259b --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorBatchconfirmAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口悬挂链信息批量确认 API请求 +taobao.wdk.equipment.conveyor.batchconfirm + +批量消息确认 +*/ +type TaobaoWdkEquipmentConveyorBatchconfirmAPIRequest struct { + model.Params + // 仓库code + _warehouseCode string + // 待确认的uuid列表 + _uuids []string +} + +// 初始化TaobaoWdkEquipmentConveyorBatchconfirmAPIRequest对象 +func NewTaobaoWdkEquipmentConveyorBatchconfirmRequest() *TaobaoWdkEquipmentConveyorBatchconfirmAPIRequest{ + return &TaobaoWdkEquipmentConveyorBatchconfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWdkEquipmentConveyorBatchconfirmAPIRequest) GetApiMethodName() string { + return "taobao.wdk.equipment.conveyor.batchconfirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWdkEquipmentConveyorBatchconfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseCode Setter +// 仓库code +func (r *TaobaoWdkEquipmentConveyorBatchconfirmAPIRequest) SetWarehouseCode(_warehouseCode string) error { + r._warehouseCode = _warehouseCode + r.Set("warehouse_code", _warehouseCode) + return nil +} + +// WarehouseCode Getter +func (r TaobaoWdkEquipmentConveyorBatchconfirmAPIRequest) GetWarehouseCode() string { + return r._warehouseCode +} +// Uuids Setter +// 待确认的uuid列表 +func (r *TaobaoWdkEquipmentConveyorBatchconfirmAPIRequest) SetUuids(_uuids []string) error { + r._uuids = _uuids + r.Set("uuids", _uuids) + return nil +} + +// Uuids Getter +func (r TaobaoWdkEquipmentConveyorBatchconfirmAPIRequest) GetUuids() []string { + return r._uuids +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorBatchconfirmAPIResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorBatchconfirmAPIResponse.go new file mode 100644 index 0000000000..19507eb355 --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorBatchconfirmAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口悬挂链信息批量确认 API返回值 +taobao.wdk.equipment.conveyor.batchconfirm + +批量消息确认 +*/ +type TaobaoWdkEquipmentConveyorBatchconfirmAPIResponse struct { + model.CommonResponse + TaobaoWdkEquipmentConveyorBatchconfirmAPIResponseModel +} + +// 五道口悬挂链信息批量确认 成功返回结果 +type TaobaoWdkEquipmentConveyorBatchconfirmAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_equipment_conveyor_batchconfirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopWcsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorBatchconfirmResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorBatchconfirmResponse.go deleted file mode 100644 index 2e11f8ae3d..0000000000 --- a/model/wdk/TaobaoWdkEquipmentConveyorBatchconfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -五道口悬挂链信息批量确认 API返回值 -taobao.wdk.equipment.conveyor.batchconfirm - -批量消息确认 -*/ -type TaobaoWdkEquipmentConveyorBatchconfirmAPIResponse struct { - model.CommonResponse - TaobaoWdkEquipmentConveyorBatchconfirmResponse -} - -// 五道口悬挂链信息批量确认 成功返回结果 -type TaobaoWdkEquipmentConveyorBatchconfirmResponse struct { - XMLName xml.Name `xml:"wdk_equipment_conveyor_batchconfirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopWcsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorContainerinfoGetAPIRequest.go b/model/wdk/TaobaoWdkEquipmentConveyorContainerinfoGetAPIRequest.go new file mode 100644 index 0000000000..c780421547 --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorContainerinfoGetAPIRequest.go @@ -0,0 +1,94 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取批次或波次中容器的信息 API请求 +taobao.wdk.equipment.conveyor.containerinfo.get + +获取批次或波次中容器的信息 +*/ +type TaobaoWdkEquipmentConveyorContainerinfoGetAPIRequest struct { + model.Params + // 仓库id + _warehouseId int64 + // 容器号 + _containerCode string + // 批次号,可以为空串 + _batchCode string + // 波次号,可以为空串 + _waveCode string +} + +// 初始化TaobaoWdkEquipmentConveyorContainerinfoGetAPIRequest对象 +func NewTaobaoWdkEquipmentConveyorContainerinfoGetRequest() *TaobaoWdkEquipmentConveyorContainerinfoGetAPIRequest{ + return &TaobaoWdkEquipmentConveyorContainerinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWdkEquipmentConveyorContainerinfoGetAPIRequest) GetApiMethodName() string { + return "taobao.wdk.equipment.conveyor.containerinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWdkEquipmentConveyorContainerinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseId Setter +// 仓库id +func (r *TaobaoWdkEquipmentConveyorContainerinfoGetAPIRequest) SetWarehouseId(_warehouseId int64) error { + r._warehouseId = _warehouseId + r.Set("warehouse_id", _warehouseId) + return nil +} + +// WarehouseId Getter +func (r TaobaoWdkEquipmentConveyorContainerinfoGetAPIRequest) GetWarehouseId() int64 { + return r._warehouseId +} +// ContainerCode Setter +// 容器号 +func (r *TaobaoWdkEquipmentConveyorContainerinfoGetAPIRequest) SetContainerCode(_containerCode string) error { + r._containerCode = _containerCode + r.Set("container_code", _containerCode) + return nil +} + +// ContainerCode Getter +func (r TaobaoWdkEquipmentConveyorContainerinfoGetAPIRequest) GetContainerCode() string { + return r._containerCode +} +// BatchCode Setter +// 批次号,可以为空串 +func (r *TaobaoWdkEquipmentConveyorContainerinfoGetAPIRequest) SetBatchCode(_batchCode string) error { + r._batchCode = _batchCode + r.Set("batch_code", _batchCode) + return nil +} + +// BatchCode Getter +func (r TaobaoWdkEquipmentConveyorContainerinfoGetAPIRequest) GetBatchCode() string { + return r._batchCode +} +// WaveCode Setter +// 波次号,可以为空串 +func (r *TaobaoWdkEquipmentConveyorContainerinfoGetAPIRequest) SetWaveCode(_waveCode string) error { + r._waveCode = _waveCode + r.Set("wave_code", _waveCode) + return nil +} + +// WaveCode Getter +func (r TaobaoWdkEquipmentConveyorContainerinfoGetAPIRequest) GetWaveCode() string { + return r._waveCode +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorContainerinfoGetAPIResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorContainerinfoGetAPIResponse.go new file mode 100644 index 0000000000..f91b2d48aa --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorContainerinfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取批次或波次中容器的信息 API返回值 +taobao.wdk.equipment.conveyor.containerinfo.get + +获取批次或波次中容器的信息 +*/ +type TaobaoWdkEquipmentConveyorContainerinfoGetAPIResponse struct { + model.CommonResponse + TaobaoWdkEquipmentConveyorContainerinfoGetAPIResponseModel +} + +// 获取批次或波次中容器的信息 成功返回结果 +type TaobaoWdkEquipmentConveyorContainerinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_equipment_conveyor_containerinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *TaobaoWdkEquipmentConveyorContainerinfoGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorContainerinfoGetResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorContainerinfoGetResponse.go deleted file mode 100644 index f6108a96f4..0000000000 --- a/model/wdk/TaobaoWdkEquipmentConveyorContainerinfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取批次或波次中容器的信息 API返回值 -taobao.wdk.equipment.conveyor.containerinfo.get - -获取批次或波次中容器的信息 -*/ -type TaobaoWdkEquipmentConveyorContainerinfoGetAPIResponse struct { - model.CommonResponse - TaobaoWdkEquipmentConveyorContainerinfoGetResponse -} - -// 获取批次或波次中容器的信息 成功返回结果 -type TaobaoWdkEquipmentConveyorContainerinfoGetResponse struct { - XMLName xml.Name `xml:"wdk_equipment_conveyor_containerinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *TaobaoWdkEquipmentConveyorContainerinfoGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorConveyorinfoGetAPIRequest.go b/model/wdk/TaobaoWdkEquipmentConveyorConveyorinfoGetAPIRequest.go new file mode 100644 index 0000000000..8437c14784 --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorConveyorinfoGetAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取五道口悬挂链信息 API请求 +taobao.wdk.equipment.conveyor.conveyorinfo.get + +获取五道口悬挂链信息 +*/ +type TaobaoWdkEquipmentConveyorConveyorinfoGetAPIRequest struct { + model.Params + // 仓库code + _warehouseCode string + // wcsNum + _conveyorId int64 +} + +// 初始化TaobaoWdkEquipmentConveyorConveyorinfoGetAPIRequest对象 +func NewTaobaoWdkEquipmentConveyorConveyorinfoGetRequest() *TaobaoWdkEquipmentConveyorConveyorinfoGetAPIRequest{ + return &TaobaoWdkEquipmentConveyorConveyorinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWdkEquipmentConveyorConveyorinfoGetAPIRequest) GetApiMethodName() string { + return "taobao.wdk.equipment.conveyor.conveyorinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWdkEquipmentConveyorConveyorinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseCode Setter +// 仓库code +func (r *TaobaoWdkEquipmentConveyorConveyorinfoGetAPIRequest) SetWarehouseCode(_warehouseCode string) error { + r._warehouseCode = _warehouseCode + r.Set("warehouse_code", _warehouseCode) + return nil +} + +// WarehouseCode Getter +func (r TaobaoWdkEquipmentConveyorConveyorinfoGetAPIRequest) GetWarehouseCode() string { + return r._warehouseCode +} +// ConveyorId Setter +// wcsNum +func (r *TaobaoWdkEquipmentConveyorConveyorinfoGetAPIRequest) SetConveyorId(_conveyorId int64) error { + r._conveyorId = _conveyorId + r.Set("conveyor_id", _conveyorId) + return nil +} + +// ConveyorId Getter +func (r TaobaoWdkEquipmentConveyorConveyorinfoGetAPIRequest) GetConveyorId() int64 { + return r._conveyorId +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorConveyorinfoGetAPIResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorConveyorinfoGetAPIResponse.go new file mode 100644 index 0000000000..a81ecf4e62 --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorConveyorinfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取五道口悬挂链信息 API返回值 +taobao.wdk.equipment.conveyor.conveyorinfo.get + +获取五道口悬挂链信息 +*/ +type TaobaoWdkEquipmentConveyorConveyorinfoGetAPIResponse struct { + model.CommonResponse + TaobaoWdkEquipmentConveyorConveyorinfoGetAPIResponseModel +} + +// 获取五道口悬挂链信息 成功返回结果 +type TaobaoWdkEquipmentConveyorConveyorinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_equipment_conveyor_conveyorinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *TaobaoWdkEquipmentConveyorConveyorinfoGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorConveyorinfoGetResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorConveyorinfoGetResponse.go deleted file mode 100644 index 19c18ad912..0000000000 --- a/model/wdk/TaobaoWdkEquipmentConveyorConveyorinfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取五道口悬挂链信息 API返回值 -taobao.wdk.equipment.conveyor.conveyorinfo.get - -获取五道口悬挂链信息 -*/ -type TaobaoWdkEquipmentConveyorConveyorinfoGetAPIResponse struct { - model.CommonResponse - TaobaoWdkEquipmentConveyorConveyorinfoGetResponse -} - -// 获取五道口悬挂链信息 成功返回结果 -type TaobaoWdkEquipmentConveyorConveyorinfoGetResponse struct { - XMLName xml.Name `xml:"wdk_equipment_conveyor_conveyorinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *TaobaoWdkEquipmentConveyorConveyorinfoGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIRequest.go b/model/wdk/TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIRequest.go new file mode 100644 index 0000000000..7949db991c --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIRequest.go @@ -0,0 +1,80 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +异常通道日志查询 API请求 +taobao.wdk.equipment.conveyor.exceptionslidewaylog.get + +五道口悬挂链异常通道事件查询 +*/ +type TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIRequest struct { + model.Params + // 仓库Id + _warehouseId int64 + // 悬挂链Id,即wcsNum + _conveyorId int64 + // 数据库id最小值 + _startId int64 +} + +// 初始化TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIRequest对象 +func NewTaobaoWdkEquipmentConveyorExceptionslidewaylogGetRequest() *TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIRequest{ + return &TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIRequest) GetApiMethodName() string { + return "taobao.wdk.equipment.conveyor.exceptionslidewaylog.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseId Setter +// 仓库Id +func (r *TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIRequest) SetWarehouseId(_warehouseId int64) error { + r._warehouseId = _warehouseId + r.Set("warehouse_id", _warehouseId) + return nil +} + +// WarehouseId Getter +func (r TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIRequest) GetWarehouseId() int64 { + return r._warehouseId +} +// ConveyorId Setter +// 悬挂链Id,即wcsNum +func (r *TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIRequest) SetConveyorId(_conveyorId int64) error { + r._conveyorId = _conveyorId + r.Set("conveyor_id", _conveyorId) + return nil +} + +// ConveyorId Getter +func (r TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIRequest) GetConveyorId() int64 { + return r._conveyorId +} +// StartId Setter +// 数据库id最小值 +func (r *TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIRequest) SetStartId(_startId int64) error { + r._startId = _startId + r.Set("start_id", _startId) + return nil +} + +// StartId Getter +func (r TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIRequest) GetStartId() int64 { + return r._startId +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIResponse.go new file mode 100644 index 0000000000..a7fcb6a30c --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +异常通道日志查询 API返回值 +taobao.wdk.equipment.conveyor.exceptionslidewaylog.get + +五道口悬挂链异常通道事件查询 +*/ +type TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIResponse struct { + model.CommonResponse + TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIResponseModel +} + +// 异常通道日志查询 成功返回结果 +type TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_equipment_conveyor_exceptionslidewaylog_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *TaobaoWdkEquipmentConveyorExceptionslidewaylogGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorExceptionslidewaylogGetResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorExceptionslidewaylogGetResponse.go deleted file mode 100644 index 687d4d45a8..0000000000 --- a/model/wdk/TaobaoWdkEquipmentConveyorExceptionslidewaylogGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -异常通道日志查询 API返回值 -taobao.wdk.equipment.conveyor.exceptionslidewaylog.get - -五道口悬挂链异常通道事件查询 -*/ -type TaobaoWdkEquipmentConveyorExceptionslidewaylogGetAPIResponse struct { - model.CommonResponse - TaobaoWdkEquipmentConveyorExceptionslidewaylogGetResponse -} - -// 异常通道日志查询 成功返回结果 -type TaobaoWdkEquipmentConveyorExceptionslidewaylogGetResponse struct { - XMLName xml.Name `xml:"wdk_equipment_conveyor_exceptionslidewaylog_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *TaobaoWdkEquipmentConveyorExceptionslidewaylogGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIRequest.go b/model/wdk/TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIRequest.go new file mode 100644 index 0000000000..7a6f6e08fa --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIRequest.go @@ -0,0 +1,80 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +硬件状态变化日志查询 API请求 +taobao.wdk.equipment.conveyor.hardwarestatuslog.get + +硬件状态变化日志查询 +*/ +type TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIRequest struct { + model.Params + // 仓库Id + _warehouseId int64 + // 悬挂链Id,即wcsNum + _conveyorId int64 + // 数据库id最小值 + _startId int64 +} + +// 初始化TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIRequest对象 +func NewTaobaoWdkEquipmentConveyorHardwarestatuslogGetRequest() *TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIRequest{ + return &TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIRequest) GetApiMethodName() string { + return "taobao.wdk.equipment.conveyor.hardwarestatuslog.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseId Setter +// 仓库Id +func (r *TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIRequest) SetWarehouseId(_warehouseId int64) error { + r._warehouseId = _warehouseId + r.Set("warehouse_id", _warehouseId) + return nil +} + +// WarehouseId Getter +func (r TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIRequest) GetWarehouseId() int64 { + return r._warehouseId +} +// ConveyorId Setter +// 悬挂链Id,即wcsNum +func (r *TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIRequest) SetConveyorId(_conveyorId int64) error { + r._conveyorId = _conveyorId + r.Set("conveyor_id", _conveyorId) + return nil +} + +// ConveyorId Getter +func (r TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIRequest) GetConveyorId() int64 { + return r._conveyorId +} +// StartId Setter +// 数据库id最小值 +func (r *TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIRequest) SetStartId(_startId int64) error { + r._startId = _startId + r.Set("start_id", _startId) + return nil +} + +// StartId Getter +func (r TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIRequest) GetStartId() int64 { + return r._startId +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIResponse.go new file mode 100644 index 0000000000..de370453f8 --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +硬件状态变化日志查询 API返回值 +taobao.wdk.equipment.conveyor.hardwarestatuslog.get + +硬件状态变化日志查询 +*/ +type TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIResponse struct { + model.CommonResponse + TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIResponseModel +} + +// 硬件状态变化日志查询 成功返回结果 +type TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_equipment_conveyor_hardwarestatuslog_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *TaobaoWdkEquipmentConveyorHardwarestatuslogGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorHardwarestatuslogGetResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorHardwarestatuslogGetResponse.go deleted file mode 100644 index 92994384ed..0000000000 --- a/model/wdk/TaobaoWdkEquipmentConveyorHardwarestatuslogGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -硬件状态变化日志查询 API返回值 -taobao.wdk.equipment.conveyor.hardwarestatuslog.get - -硬件状态变化日志查询 -*/ -type TaobaoWdkEquipmentConveyorHardwarestatuslogGetAPIResponse struct { - model.CommonResponse - TaobaoWdkEquipmentConveyorHardwarestatuslogGetResponse -} - -// 硬件状态变化日志查询 成功返回结果 -type TaobaoWdkEquipmentConveyorHardwarestatuslogGetResponse struct { - XMLName xml.Name `xml:"wdk_equipment_conveyor_hardwarestatuslog_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *TaobaoWdkEquipmentConveyorHardwarestatuslogGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorInfoUploadAPIRequest.go b/model/wdk/TaobaoWdkEquipmentConveyorInfoUploadAPIRequest.go new file mode 100644 index 0000000000..824c060f89 --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorInfoUploadAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口仓库悬挂链信息上报 API请求 +taobao.wdk.equipment.conveyor.info.upload + +五道口仓库悬挂链信息上传 +*/ +type TaobaoWdkEquipmentConveyorInfoUploadAPIRequest struct { + model.Params + // 上传信息 + _param0 string +} + +// 初始化TaobaoWdkEquipmentConveyorInfoUploadAPIRequest对象 +func NewTaobaoWdkEquipmentConveyorInfoUploadRequest() *TaobaoWdkEquipmentConveyorInfoUploadAPIRequest{ + return &TaobaoWdkEquipmentConveyorInfoUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWdkEquipmentConveyorInfoUploadAPIRequest) GetApiMethodName() string { + return "taobao.wdk.equipment.conveyor.info.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWdkEquipmentConveyorInfoUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 上传信息 +func (r *TaobaoWdkEquipmentConveyorInfoUploadAPIRequest) SetParam0(_param0 string) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoWdkEquipmentConveyorInfoUploadAPIRequest) GetParam0() string { + return r._param0 +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorInfoUploadAPIResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorInfoUploadAPIResponse.go new file mode 100644 index 0000000000..144f575a0d --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorInfoUploadAPIResponse.go @@ -0,0 +1,33 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口仓库悬挂链信息上报 API返回值 +taobao.wdk.equipment.conveyor.info.upload + +五道口仓库悬挂链信息上传 +*/ +type TaobaoWdkEquipmentConveyorInfoUploadAPIResponse struct { + model.CommonResponse + TaobaoWdkEquipmentConveyorInfoUploadAPIResponseModel +} + +// 五道口仓库悬挂链信息上报 成功返回结果 +type TaobaoWdkEquipmentConveyorInfoUploadAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_equipment_conveyor_info_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // model + Model string `json:"model,omitempty" xml:"model,omitempty"` + // errorCode + ServiceErrorCode string `json:"service_error_code,omitempty" xml:"service_error_code,omitempty"` + // errorMsg + ServiceErrorMsg string `json:"service_error_msg,omitempty" xml:"service_error_msg,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorInfoUploadResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorInfoUploadResponse.go deleted file mode 100644 index e18c5feced..0000000000 --- a/model/wdk/TaobaoWdkEquipmentConveyorInfoUploadResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -五道口仓库悬挂链信息上报 API返回值 -taobao.wdk.equipment.conveyor.info.upload - -五道口仓库悬挂链信息上传 -*/ -type TaobaoWdkEquipmentConveyorInfoUploadAPIResponse struct { - model.CommonResponse - TaobaoWdkEquipmentConveyorInfoUploadResponse -} - -// 五道口仓库悬挂链信息上报 成功返回结果 -type TaobaoWdkEquipmentConveyorInfoUploadResponse struct { - XMLName xml.Name `xml:"wdk_equipment_conveyor_info_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // model - Model string `json:"model,omitempty" xml:"model,omitempty"` - // errorCode - ServiceErrorCode string `json:"service_error_code,omitempty" xml:"service_error_code,omitempty"` - // errorMsg - ServiceErrorMsg string `json:"service_error_msg,omitempty" xml:"service_error_msg,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorStatusconfirmAPIRequest.go b/model/wdk/TaobaoWdkEquipmentConveyorStatusconfirmAPIRequest.go new file mode 100644 index 0000000000..709c02e326 --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorStatusconfirmAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +悬挂链状态回传确认 API请求 +taobao.wdk.equipment.conveyor.statusconfirm + +悬挂链状态回传确认 +*/ +type TaobaoWdkEquipmentConveyorStatusconfirmAPIRequest struct { + model.Params + // warehouse_code + _warehouseCode string + // uuid + _uuid string +} + +// 初始化TaobaoWdkEquipmentConveyorStatusconfirmAPIRequest对象 +func NewTaobaoWdkEquipmentConveyorStatusconfirmRequest() *TaobaoWdkEquipmentConveyorStatusconfirmAPIRequest{ + return &TaobaoWdkEquipmentConveyorStatusconfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWdkEquipmentConveyorStatusconfirmAPIRequest) GetApiMethodName() string { + return "taobao.wdk.equipment.conveyor.statusconfirm" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWdkEquipmentConveyorStatusconfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseCode Setter +// warehouse_code +func (r *TaobaoWdkEquipmentConveyorStatusconfirmAPIRequest) SetWarehouseCode(_warehouseCode string) error { + r._warehouseCode = _warehouseCode + r.Set("warehouse_code", _warehouseCode) + return nil +} + +// WarehouseCode Getter +func (r TaobaoWdkEquipmentConveyorStatusconfirmAPIRequest) GetWarehouseCode() string { + return r._warehouseCode +} +// Uuid Setter +// uuid +func (r *TaobaoWdkEquipmentConveyorStatusconfirmAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r TaobaoWdkEquipmentConveyorStatusconfirmAPIRequest) GetUuid() string { + return r._uuid +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorStatusconfirmAPIResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorStatusconfirmAPIResponse.go new file mode 100644 index 0000000000..634967835e --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorStatusconfirmAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +悬挂链状态回传确认 API返回值 +taobao.wdk.equipment.conveyor.statusconfirm + +悬挂链状态回传确认 +*/ +type TaobaoWdkEquipmentConveyorStatusconfirmAPIResponse struct { + model.CommonResponse + TaobaoWdkEquipmentConveyorStatusconfirmAPIResponseModel +} + +// 悬挂链状态回传确认 成功返回结果 +type TaobaoWdkEquipmentConveyorStatusconfirmAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_equipment_conveyor_statusconfirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopWcsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorStatusconfirmResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorStatusconfirmResponse.go deleted file mode 100644 index 56312c7fa3..0000000000 --- a/model/wdk/TaobaoWdkEquipmentConveyorStatusconfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -悬挂链状态回传确认 API返回值 -taobao.wdk.equipment.conveyor.statusconfirm - -悬挂链状态回传确认 -*/ -type TaobaoWdkEquipmentConveyorStatusconfirmAPIResponse struct { - model.CommonResponse - TaobaoWdkEquipmentConveyorStatusconfirmResponse -} - -// 悬挂链状态回传确认 成功返回结果 -type TaobaoWdkEquipmentConveyorStatusconfirmResponse struct { - XMLName xml.Name `xml:"wdk_equipment_conveyor_statusconfirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopWcsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorSystemeventGetAPIRequest.go b/model/wdk/TaobaoWdkEquipmentConveyorSystemeventGetAPIRequest.go new file mode 100644 index 0000000000..e4d61abedb --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorSystemeventGetAPIRequest.go @@ -0,0 +1,80 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取悬挂链系统事件 API请求 +taobao.wdk.equipment.conveyor.systemevent.get + +五道口悬挂链系统事件查询 +*/ +type TaobaoWdkEquipmentConveyorSystemeventGetAPIRequest struct { + model.Params + // 仓库Id + _warehouseId int64 + // 悬挂链Id,即wcsNum + _conveyorId int64 + // 数据库id最小值 + _startId int64 +} + +// 初始化TaobaoWdkEquipmentConveyorSystemeventGetAPIRequest对象 +func NewTaobaoWdkEquipmentConveyorSystemeventGetRequest() *TaobaoWdkEquipmentConveyorSystemeventGetAPIRequest{ + return &TaobaoWdkEquipmentConveyorSystemeventGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWdkEquipmentConveyorSystemeventGetAPIRequest) GetApiMethodName() string { + return "taobao.wdk.equipment.conveyor.systemevent.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWdkEquipmentConveyorSystemeventGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseId Setter +// 仓库Id +func (r *TaobaoWdkEquipmentConveyorSystemeventGetAPIRequest) SetWarehouseId(_warehouseId int64) error { + r._warehouseId = _warehouseId + r.Set("warehouse_id", _warehouseId) + return nil +} + +// WarehouseId Getter +func (r TaobaoWdkEquipmentConveyorSystemeventGetAPIRequest) GetWarehouseId() int64 { + return r._warehouseId +} +// ConveyorId Setter +// 悬挂链Id,即wcsNum +func (r *TaobaoWdkEquipmentConveyorSystemeventGetAPIRequest) SetConveyorId(_conveyorId int64) error { + r._conveyorId = _conveyorId + r.Set("conveyor_id", _conveyorId) + return nil +} + +// ConveyorId Getter +func (r TaobaoWdkEquipmentConveyorSystemeventGetAPIRequest) GetConveyorId() int64 { + return r._conveyorId +} +// StartId Setter +// 数据库id最小值 +func (r *TaobaoWdkEquipmentConveyorSystemeventGetAPIRequest) SetStartId(_startId int64) error { + r._startId = _startId + r.Set("start_id", _startId) + return nil +} + +// StartId Getter +func (r TaobaoWdkEquipmentConveyorSystemeventGetAPIRequest) GetStartId() int64 { + return r._startId +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorSystemeventGetAPIResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorSystemeventGetAPIResponse.go new file mode 100644 index 0000000000..cf4490a3b2 --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorSystemeventGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取悬挂链系统事件 API返回值 +taobao.wdk.equipment.conveyor.systemevent.get + +五道口悬挂链系统事件查询 +*/ +type TaobaoWdkEquipmentConveyorSystemeventGetAPIResponse struct { + model.CommonResponse + TaobaoWdkEquipmentConveyorSystemeventGetAPIResponseModel +} + +// 获取悬挂链系统事件 成功返回结果 +type TaobaoWdkEquipmentConveyorSystemeventGetAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_equipment_conveyor_systemevent_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *TaobaoWdkEquipmentConveyorSystemeventGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorSystemeventGetResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorSystemeventGetResponse.go deleted file mode 100644 index 7d6417a853..0000000000 --- a/model/wdk/TaobaoWdkEquipmentConveyorSystemeventGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取悬挂链系统事件 API返回值 -taobao.wdk.equipment.conveyor.systemevent.get - -五道口悬挂链系统事件查询 -*/ -type TaobaoWdkEquipmentConveyorSystemeventGetAPIResponse struct { - model.CommonResponse - TaobaoWdkEquipmentConveyorSystemeventGetResponse -} - -// 获取悬挂链系统事件 成功返回结果 -type TaobaoWdkEquipmentConveyorSystemeventGetResponse struct { - XMLName xml.Name `xml:"wdk_equipment_conveyor_systemevent_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *TaobaoWdkEquipmentConveyorSystemeventGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIRequest.go b/model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIRequest.go new file mode 100644 index 0000000000..f07ea01a70 --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +容器被预分拣器分配到悬挂链 API请求 +taobao.wdk.equipment.conveyor.wcsbtoc.containerassignedtoconveyor + +容器被预分拣器分配到悬挂链 +*/ +type TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIRequest struct { + model.Params + // warehouse_code + _warehouseCode string + // wcs_num + _wcsNum int64 +} + +// 初始化TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIRequest对象 +func NewTaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorRequest() *TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIRequest{ + return &TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIRequest) GetApiMethodName() string { + return "taobao.wdk.equipment.conveyor.wcsbtoc.containerassignedtoconveyor" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseCode Setter +// warehouse_code +func (r *TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIRequest) SetWarehouseCode(_warehouseCode string) error { + r._warehouseCode = _warehouseCode + r.Set("warehouse_code", _warehouseCode) + return nil +} + +// WarehouseCode Getter +func (r TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIRequest) GetWarehouseCode() string { + return r._warehouseCode +} +// WcsNum Setter +// wcs_num +func (r *TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIRequest) SetWcsNum(_wcsNum int64) error { + r._wcsNum = _wcsNum + r.Set("wcs_num", _wcsNum) + return nil +} + +// WcsNum Getter +func (r TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIRequest) GetWcsNum() int64 { + return r._wcsNum +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIResponse.go new file mode 100644 index 0000000000..b629c87398 --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +容器被预分拣器分配到悬挂链 API返回值 +taobao.wdk.equipment.conveyor.wcsbtoc.containerassignedtoconveyor + +容器被预分拣器分配到悬挂链 +*/ +type TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIResponse struct { + model.CommonResponse + TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIResponseModel +} + +// 容器被预分拣器分配到悬挂链 成功返回结果 +type TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_equipment_conveyor_wcsbtoc_containerassignedtoconveyor_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TopWcsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorResponse.go deleted file mode 100644 index 5235030c62..0000000000 --- a/model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -容器被预分拣器分配到悬挂链 API返回值 -taobao.wdk.equipment.conveyor.wcsbtoc.containerassignedtoconveyor - -容器被预分拣器分配到悬挂链 -*/ -type TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorAPIResponse struct { - model.CommonResponse - TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorResponse -} - -// 容器被预分拣器分配到悬挂链 成功返回结果 -type TaobaoWdkEquipmentConveyorWcsbtocContainerassignedtoconveyorResponse struct { - XMLName xml.Name `xml:"wdk_equipment_conveyor_wcsbtoc_containerassignedtoconveyor_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TopWcsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIRequest.go b/model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIRequest.go new file mode 100644 index 0000000000..fdab03f96e --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +容器被悬挂链扫描 API请求 +taobao.wdk.equipment.conveyor.wcsbtoc.containerscannedbyconveyor + +容器被悬挂链扫描 +*/ +type TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIRequest struct { + model.Params + // warehouse_code + _warehouseCode string + // wcs_num + _wcsNum int64 +} + +// 初始化TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIRequest对象 +func NewTaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorRequest() *TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIRequest{ + return &TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIRequest) GetApiMethodName() string { + return "taobao.wdk.equipment.conveyor.wcsbtoc.containerscannedbyconveyor" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseCode Setter +// warehouse_code +func (r *TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIRequest) SetWarehouseCode(_warehouseCode string) error { + r._warehouseCode = _warehouseCode + r.Set("warehouse_code", _warehouseCode) + return nil +} + +// WarehouseCode Getter +func (r TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIRequest) GetWarehouseCode() string { + return r._warehouseCode +} +// WcsNum Setter +// wcs_num +func (r *TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIRequest) SetWcsNum(_wcsNum int64) error { + r._wcsNum = _wcsNum + r.Set("wcs_num", _wcsNum) + return nil +} + +// WcsNum Getter +func (r TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIRequest) GetWcsNum() int64 { + return r._wcsNum +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIResponse.go new file mode 100644 index 0000000000..baa8f25291 --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIResponse.go @@ -0,0 +1,33 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +容器被悬挂链扫描 API返回值 +taobao.wdk.equipment.conveyor.wcsbtoc.containerscannedbyconveyor + +容器被悬挂链扫描 +*/ +type TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIResponse struct { + model.CommonResponse + TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIResponseModel +} + +// 容器被悬挂链扫描 成功返回结果 +type TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_equipment_conveyor_wcsbtoc_containerscannedbyconveyor_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // errorCode + ServiceErrorCode string `json:"service_error_code,omitempty" xml:"service_error_code,omitempty"` + // errorMsg + ServiceErrorMsg string `json:"service_error_msg,omitempty" xml:"service_error_msg,omitempty"` + // list + List []WcsContainerScannedByConveyorDto `json:"list,omitempty" xml:"list>wcs_container_scanned_by_conveyor_dto,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorResponse.go b/model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorResponse.go deleted file mode 100644 index 9c4a4e8b8b..0000000000 --- a/model/wdk/TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -容器被悬挂链扫描 API返回值 -taobao.wdk.equipment.conveyor.wcsbtoc.containerscannedbyconveyor - -容器被悬挂链扫描 -*/ -type TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorAPIResponse struct { - model.CommonResponse - TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorResponse -} - -// 容器被悬挂链扫描 成功返回结果 -type TaobaoWdkEquipmentConveyorWcsbtocContainerscannedbyconveyorResponse struct { - XMLName xml.Name `xml:"wdk_equipment_conveyor_wcsbtoc_containerscannedbyconveyor_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // errorCode - ServiceErrorCode string `json:"service_error_code,omitempty" xml:"service_error_code,omitempty"` - // errorMsg - ServiceErrorMsg string `json:"service_error_msg,omitempty" xml:"service_error_msg,omitempty"` - // list - List []WcsContainerScannedByConveyorDto `json:"list,omitempty" xml:"list>wcs_container_scanned_by_conveyor_dto,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/wdk/TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest.go b/model/wdk/TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest.go new file mode 100644 index 0000000000..847f818e43 --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取五道口设备管理信息 API请求 +taobao.wdk.equipment.deviceadmin.deviceinfo.get + +通过仓编码获取五道口设备管理信息 +*/ +type TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest struct { + model.Params + // 仓编码 + _warehouseCode string + // 设备类型 + _deviceType int64 +} + +// 初始化TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest对象 +func NewTaobaoWdkEquipmentDeviceadminDeviceinfoGetRequest() *TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest{ + return &TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest) GetApiMethodName() string { + return "taobao.wdk.equipment.deviceadmin.deviceinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseCode Setter +// 仓编码 +func (r *TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest) SetWarehouseCode(_warehouseCode string) error { + r._warehouseCode = _warehouseCode + r.Set("warehouse_code", _warehouseCode) + return nil +} + +// WarehouseCode Getter +func (r TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest) GetWarehouseCode() string { + return r._warehouseCode +} +// DeviceType Setter +// 设备类型 +func (r *TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest) SetDeviceType(_deviceType int64) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIRequest) GetDeviceType() int64 { + return r._deviceType +} diff --git a/model/wdk/TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIResponse.go b/model/wdk/TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIResponse.go new file mode 100644 index 0000000000..3270ded56f --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取五道口设备管理信息 API返回值 +taobao.wdk.equipment.deviceadmin.deviceinfo.get + +通过仓编码获取五道口设备管理信息 +*/ +type TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIResponse struct { + model.CommonResponse + TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIResponseModel +} + +// 获取五道口设备管理信息 成功返回结果 +type TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_equipment_deviceadmin_deviceinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *TaobaoWdkEquipmentDeviceadminDeviceinfoGetHmResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/TaobaoWdkEquipmentDeviceadminDeviceinfoGetResponse.go b/model/wdk/TaobaoWdkEquipmentDeviceadminDeviceinfoGetResponse.go deleted file mode 100644 index ee093bffc6..0000000000 --- a/model/wdk/TaobaoWdkEquipmentDeviceadminDeviceinfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取五道口设备管理信息 API返回值 -taobao.wdk.equipment.deviceadmin.deviceinfo.get - -通过仓编码获取五道口设备管理信息 -*/ -type TaobaoWdkEquipmentDeviceadminDeviceinfoGetAPIResponse struct { - model.CommonResponse - TaobaoWdkEquipmentDeviceadminDeviceinfoGetResponse -} - -// 获取五道口设备管理信息 成功返回结果 -type TaobaoWdkEquipmentDeviceadminDeviceinfoGetResponse struct { - XMLName xml.Name `xml:"wdk_equipment_deviceadmin_deviceinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *TaobaoWdkEquipmentDeviceadminDeviceinfoGetHmResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/TaobaoWdkEquipmentWcsWcsinfoUploadAPIRequest.go b/model/wdk/TaobaoWdkEquipmentWcsWcsinfoUploadAPIRequest.go new file mode 100644 index 0000000000..aca898ff56 --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentWcsWcsinfoUploadAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +悬挂链业务信息上传 API请求 +taobao.wdk.equipment.wcs.wcsinfo.upload + +五道口仓库悬挂链信息上传 +*/ +type TaobaoWdkEquipmentWcsWcsinfoUploadAPIRequest struct { + model.Params + // 上传信息 + _param0 string +} + +// 初始化TaobaoWdkEquipmentWcsWcsinfoUploadAPIRequest对象 +func NewTaobaoWdkEquipmentWcsWcsinfoUploadRequest() *TaobaoWdkEquipmentWcsWcsinfoUploadAPIRequest{ + return &TaobaoWdkEquipmentWcsWcsinfoUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWdkEquipmentWcsWcsinfoUploadAPIRequest) GetApiMethodName() string { + return "taobao.wdk.equipment.wcs.wcsinfo.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWdkEquipmentWcsWcsinfoUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param0 Setter +// 上传信息 +func (r *TaobaoWdkEquipmentWcsWcsinfoUploadAPIRequest) SetParam0(_param0 string) error { + r._param0 = _param0 + r.Set("param0", _param0) + return nil +} + +// Param0 Getter +func (r TaobaoWdkEquipmentWcsWcsinfoUploadAPIRequest) GetParam0() string { + return r._param0 +} diff --git a/model/wdk/TaobaoWdkEquipmentWcsWcsinfoUploadAPIResponse.go b/model/wdk/TaobaoWdkEquipmentWcsWcsinfoUploadAPIResponse.go new file mode 100644 index 0000000000..7fcf927954 --- /dev/null +++ b/model/wdk/TaobaoWdkEquipmentWcsWcsinfoUploadAPIResponse.go @@ -0,0 +1,33 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +悬挂链业务信息上传 API返回值 +taobao.wdk.equipment.wcs.wcsinfo.upload + +五道口仓库悬挂链信息上传 +*/ +type TaobaoWdkEquipmentWcsWcsinfoUploadAPIResponse struct { + model.CommonResponse + TaobaoWdkEquipmentWcsWcsinfoUploadAPIResponseModel +} + +// 悬挂链业务信息上传 成功返回结果 +type TaobaoWdkEquipmentWcsWcsinfoUploadAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_equipment_wcs_wcsinfo_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // model + Model string `json:"model,omitempty" xml:"model,omitempty"` + // errorCode + ServiceErrorCode string `json:"service_error_code,omitempty" xml:"service_error_code,omitempty"` + // errorMsg + ServiceErrorMsg string `json:"service_error_msg,omitempty" xml:"service_error_msg,omitempty"` + // success + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/wdk/TaobaoWdkEquipmentWcsWcsinfoUploadResponse.go b/model/wdk/TaobaoWdkEquipmentWcsWcsinfoUploadResponse.go deleted file mode 100644 index ba17c2e1fb..0000000000 --- a/model/wdk/TaobaoWdkEquipmentWcsWcsinfoUploadResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -悬挂链业务信息上传 API返回值 -taobao.wdk.equipment.wcs.wcsinfo.upload - -五道口仓库悬挂链信息上传 -*/ -type TaobaoWdkEquipmentWcsWcsinfoUploadAPIResponse struct { - model.CommonResponse - TaobaoWdkEquipmentWcsWcsinfoUploadResponse -} - -// 悬挂链业务信息上传 成功返回结果 -type TaobaoWdkEquipmentWcsWcsinfoUploadResponse struct { - XMLName xml.Name `xml:"wdk_equipment_wcs_wcsinfo_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // model - Model string `json:"model,omitempty" xml:"model,omitempty"` - // errorCode - ServiceErrorCode string `json:"service_error_code,omitempty" xml:"service_error_code,omitempty"` - // errorMsg - ServiceErrorMsg string `json:"service_error_msg,omitempty" xml:"service_error_msg,omitempty"` - // success - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/wdk/TaobaoWdkIotConveyorConveyorconfigGetAPIRequest.go b/model/wdk/TaobaoWdkIotConveyorConveyorconfigGetAPIRequest.go new file mode 100644 index 0000000000..71c314d8f8 --- /dev/null +++ b/model/wdk/TaobaoWdkIotConveyorConveyorconfigGetAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取悬挂链基本配置信息 API请求 +taobao.wdk.iot.conveyor.conveyorconfig.get + +用于从云端WCS获取悬挂链基本配置信息 +*/ +type TaobaoWdkIotConveyorConveyorconfigGetAPIRequest struct { + model.Params + // 仓编码 + _warehouseCode string + // 悬挂链id,默认为1 + _conveyorId int64 +} + +// 初始化TaobaoWdkIotConveyorConveyorconfigGetAPIRequest对象 +func NewTaobaoWdkIotConveyorConveyorconfigGetRequest() *TaobaoWdkIotConveyorConveyorconfigGetAPIRequest{ + return &TaobaoWdkIotConveyorConveyorconfigGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWdkIotConveyorConveyorconfigGetAPIRequest) GetApiMethodName() string { + return "taobao.wdk.iot.conveyor.conveyorconfig.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWdkIotConveyorConveyorconfigGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WarehouseCode Setter +// 仓编码 +func (r *TaobaoWdkIotConveyorConveyorconfigGetAPIRequest) SetWarehouseCode(_warehouseCode string) error { + r._warehouseCode = _warehouseCode + r.Set("warehouse_code", _warehouseCode) + return nil +} + +// WarehouseCode Getter +func (r TaobaoWdkIotConveyorConveyorconfigGetAPIRequest) GetWarehouseCode() string { + return r._warehouseCode +} +// ConveyorId Setter +// 悬挂链id,默认为1 +func (r *TaobaoWdkIotConveyorConveyorconfigGetAPIRequest) SetConveyorId(_conveyorId int64) error { + r._conveyorId = _conveyorId + r.Set("conveyor_id", _conveyorId) + return nil +} + +// ConveyorId Getter +func (r TaobaoWdkIotConveyorConveyorconfigGetAPIRequest) GetConveyorId() int64 { + return r._conveyorId +} diff --git a/model/wdk/TaobaoWdkIotConveyorConveyorconfigGetAPIResponse.go b/model/wdk/TaobaoWdkIotConveyorConveyorconfigGetAPIResponse.go new file mode 100644 index 0000000000..4b19e6a868 --- /dev/null +++ b/model/wdk/TaobaoWdkIotConveyorConveyorconfigGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取悬挂链基本配置信息 API返回值 +taobao.wdk.iot.conveyor.conveyorconfig.get + +用于从云端WCS获取悬挂链基本配置信息 +*/ +type TaobaoWdkIotConveyorConveyorconfigGetAPIResponse struct { + model.CommonResponse + TaobaoWdkIotConveyorConveyorconfigGetAPIResponseModel +} + +// 获取悬挂链基本配置信息 成功返回结果 +type TaobaoWdkIotConveyorConveyorconfigGetAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_iot_conveyor_conveyorconfig_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *TaobaoWdkIotConveyorConveyorconfigGetHMResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/TaobaoWdkIotConveyorConveyorconfigGetResponse.go b/model/wdk/TaobaoWdkIotConveyorConveyorconfigGetResponse.go deleted file mode 100644 index 3bf08de3b4..0000000000 --- a/model/wdk/TaobaoWdkIotConveyorConveyorconfigGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取悬挂链基本配置信息 API返回值 -taobao.wdk.iot.conveyor.conveyorconfig.get - -用于从云端WCS获取悬挂链基本配置信息 -*/ -type TaobaoWdkIotConveyorConveyorconfigGetAPIResponse struct { - model.CommonResponse - TaobaoWdkIotConveyorConveyorconfigGetResponse -} - -// 获取悬挂链基本配置信息 成功返回结果 -type TaobaoWdkIotConveyorConveyorconfigGetResponse struct { - XMLName xml.Name `xml:"wdk_iot_conveyor_conveyorconfig_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *TaobaoWdkIotConveyorConveyorconfigGetHMResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest.go b/model/wdk/TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest.go new file mode 100644 index 0000000000..01ea85b55f --- /dev/null +++ b/model/wdk/TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest.go @@ -0,0 +1,108 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取mqtt设备信息 API请求 +taobao.wdk.iot.deviceadmin.mqtt.device.getwithtoken + +智能硬件设备动态注册和获取mqtt设备信息 +*/ +type TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest struct { + model.Params + // 业务编码,具体编码请联系杜尘 + _businessCode int64 + // 设备类型编码,具体编码请联系杜尘 + _deviceType int64 + // 环境编码,0日常,1预发,2线上 + _enviroCode int64 + // 设备的唯一标识码,比如网卡的MAC地址 + _deviceId string + // 访问令牌 + _applyAccessToken string +} + +// 初始化TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest对象 +func NewTaobaoWdkIotDeviceadminMqttDeviceGetwithtokenRequest() *TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest{ + return &TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest) GetApiMethodName() string { + return "taobao.wdk.iot.deviceadmin.mqtt.device.getwithtoken" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BusinessCode Setter +// 业务编码,具体编码请联系杜尘 +func (r *TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest) SetBusinessCode(_businessCode int64) error { + r._businessCode = _businessCode + r.Set("business_code", _businessCode) + return nil +} + +// BusinessCode Getter +func (r TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest) GetBusinessCode() int64 { + return r._businessCode +} +// DeviceType Setter +// 设备类型编码,具体编码请联系杜尘 +func (r *TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest) SetDeviceType(_deviceType int64) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest) GetDeviceType() int64 { + return r._deviceType +} +// EnviroCode Setter +// 环境编码,0日常,1预发,2线上 +func (r *TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest) SetEnviroCode(_enviroCode int64) error { + r._enviroCode = _enviroCode + r.Set("enviro_code", _enviroCode) + return nil +} + +// EnviroCode Getter +func (r TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest) GetEnviroCode() int64 { + return r._enviroCode +} +// DeviceId Setter +// 设备的唯一标识码,比如网卡的MAC地址 +func (r *TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest) GetDeviceId() string { + return r._deviceId +} +// ApplyAccessToken Setter +// 访问令牌 +func (r *TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest) SetApplyAccessToken(_applyAccessToken string) error { + r._applyAccessToken = _applyAccessToken + r.Set("apply_access_token", _applyAccessToken) + return nil +} + +// ApplyAccessToken Getter +func (r TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIRequest) GetApplyAccessToken() string { + return r._applyAccessToken +} diff --git a/model/wdk/TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIResponse.go b/model/wdk/TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIResponse.go new file mode 100644 index 0000000000..5db89557d7 --- /dev/null +++ b/model/wdk/TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取mqtt设备信息 API返回值 +taobao.wdk.iot.deviceadmin.mqtt.device.getwithtoken + +智能硬件设备动态注册和获取mqtt设备信息 +*/ +type TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIResponse struct { + model.CommonResponse + TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIResponseModel +} + +// 获取mqtt设备信息 成功返回结果 +type TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_iot_deviceadmin_mqtt_device_getwithtoken_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenHmResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenResponse.go b/model/wdk/TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenResponse.go deleted file mode 100644 index e958bbf2c5..0000000000 --- a/model/wdk/TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取mqtt设备信息 API返回值 -taobao.wdk.iot.deviceadmin.mqtt.device.getwithtoken - -智能硬件设备动态注册和获取mqtt设备信息 -*/ -type TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenAPIResponse struct { - model.CommonResponse - TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenResponse -} - -// 获取mqtt设备信息 成功返回结果 -type TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenResponse struct { - XMLName xml.Name `xml:"wdk_iot_deviceadmin_mqtt_device_getwithtoken_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoWdkIotDeviceadminMqttDeviceGetwithtokenHmResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/TaobaoWdkIotDeviceadminMqttTokenGetAPIRequest.go b/model/wdk/TaobaoWdkIotDeviceadminMqttTokenGetAPIRequest.go new file mode 100644 index 0000000000..0057c1837a --- /dev/null +++ b/model/wdk/TaobaoWdkIotDeviceadminMqttTokenGetAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取MQTT访问令牌 API请求 +taobao.wdk.iot.deviceadmin.mqtt.token.get + +智能硬件设备动态注册和获取mqtt设备信息 +*/ +type TaobaoWdkIotDeviceadminMqttTokenGetAPIRequest struct { + model.Params + // accessKey + _accessKey string + // 申请令牌的客户端时间戳 + _applyTimestamp int64 +} + +// 初始化TaobaoWdkIotDeviceadminMqttTokenGetAPIRequest对象 +func NewTaobaoWdkIotDeviceadminMqttTokenGetRequest() *TaobaoWdkIotDeviceadminMqttTokenGetAPIRequest{ + return &TaobaoWdkIotDeviceadminMqttTokenGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWdkIotDeviceadminMqttTokenGetAPIRequest) GetApiMethodName() string { + return "taobao.wdk.iot.deviceadmin.mqtt.token.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWdkIotDeviceadminMqttTokenGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AccessKey Setter +// accessKey +func (r *TaobaoWdkIotDeviceadminMqttTokenGetAPIRequest) SetAccessKey(_accessKey string) error { + r._accessKey = _accessKey + r.Set("access_key", _accessKey) + return nil +} + +// AccessKey Getter +func (r TaobaoWdkIotDeviceadminMqttTokenGetAPIRequest) GetAccessKey() string { + return r._accessKey +} +// ApplyTimestamp Setter +// 申请令牌的客户端时间戳 +func (r *TaobaoWdkIotDeviceadminMqttTokenGetAPIRequest) SetApplyTimestamp(_applyTimestamp int64) error { + r._applyTimestamp = _applyTimestamp + r.Set("apply_timestamp", _applyTimestamp) + return nil +} + +// ApplyTimestamp Getter +func (r TaobaoWdkIotDeviceadminMqttTokenGetAPIRequest) GetApplyTimestamp() int64 { + return r._applyTimestamp +} diff --git a/model/wdk/TaobaoWdkIotDeviceadminMqttTokenGetAPIResponse.go b/model/wdk/TaobaoWdkIotDeviceadminMqttTokenGetAPIResponse.go new file mode 100644 index 0000000000..d10d58ece5 --- /dev/null +++ b/model/wdk/TaobaoWdkIotDeviceadminMqttTokenGetAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取MQTT访问令牌 API返回值 +taobao.wdk.iot.deviceadmin.mqtt.token.get + +智能硬件设备动态注册和获取mqtt设备信息 +*/ +type TaobaoWdkIotDeviceadminMqttTokenGetAPIResponse struct { + model.CommonResponse + TaobaoWdkIotDeviceadminMqttTokenGetAPIResponseModel +} + +// 获取MQTT访问令牌 成功返回结果 +type TaobaoWdkIotDeviceadminMqttTokenGetAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_iot_deviceadmin_mqtt_token_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoWdkIotDeviceadminMqttTokenGetHmResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/TaobaoWdkIotDeviceadminMqttTokenGetResponse.go b/model/wdk/TaobaoWdkIotDeviceadminMqttTokenGetResponse.go deleted file mode 100644 index 8c8dcf4808..0000000000 --- a/model/wdk/TaobaoWdkIotDeviceadminMqttTokenGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取MQTT访问令牌 API返回值 -taobao.wdk.iot.deviceadmin.mqtt.token.get - -智能硬件设备动态注册和获取mqtt设备信息 -*/ -type TaobaoWdkIotDeviceadminMqttTokenGetAPIResponse struct { - model.CommonResponse - TaobaoWdkIotDeviceadminMqttTokenGetResponse -} - -// 获取MQTT访问令牌 成功返回结果 -type TaobaoWdkIotDeviceadminMqttTokenGetResponse struct { - XMLName xml.Name `xml:"wdk_iot_deviceadmin_mqtt_token_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoWdkIotDeviceadminMqttTokenGetHmResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIRequest.go b/model/wdk/TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIRequest.go new file mode 100644 index 0000000000..0daa1751b3 --- /dev/null +++ b/model/wdk/TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +同城零售履约异常中心异常单处理结果回调接口 API请求 +tmall.cityretail.fulfill.abnormal.center.abnormal.status.change + +同城零售履约异常中心异常单处理结果回调接口 +*/ +type TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIRequest struct { + model.Params + // 入参 + _abnormalStatusChangeDto []AbnormalStatusChangeDto +} + +// 初始化TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIRequest对象 +func NewTmallCityretailFulfillAbnormalCenterAbnormalStatusChangeRequest() *TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIRequest{ + return &TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIRequest) GetApiMethodName() string { + return "tmall.cityretail.fulfill.abnormal.center.abnormal.status.change" +} + +// IRequest interface 方法, 获取API参数 +func (r TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AbnormalStatusChangeDto Setter +// 入参 +func (r *TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIRequest) SetAbnormalStatusChangeDto(_abnormalStatusChangeDto []AbnormalStatusChangeDto) error { + r._abnormalStatusChangeDto = _abnormalStatusChangeDto + r.Set("abnormal_status_change_dto", _abnormalStatusChangeDto) + return nil +} + +// AbnormalStatusChangeDto Getter +func (r TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIRequest) GetAbnormalStatusChangeDto() []AbnormalStatusChangeDto { + return r._abnormalStatusChangeDto +} diff --git a/model/wdk/TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIResponse.go b/model/wdk/TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIResponse.go new file mode 100644 index 0000000000..83e076d2a2 --- /dev/null +++ b/model/wdk/TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +同城零售履约异常中心异常单处理结果回调接口 API返回值 +tmall.cityretail.fulfill.abnormal.center.abnormal.status.change + +同城零售履约异常中心异常单处理结果回调接口 +*/ +type TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIResponse struct { + model.CommonResponse + TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIResponseModel +} + +// 同城零售履约异常中心异常单处理结果回调接口 成功返回结果 +type TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIResponseModel struct { + XMLName xml.Name `xml:"tmall_cityretail_fulfill_abnormal_center_abnormal_status_change_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应参数 + FulfillSingleResult *FulfillSingleResult `json:"fulfill_single_result,omitempty" xml:"fulfill_single_result,omitempty"` +} diff --git a/model/wdk/TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeResponse.go b/model/wdk/TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeResponse.go deleted file mode 100644 index 63a1b0fc1d..0000000000 --- a/model/wdk/TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -同城零售履约异常中心异常单处理结果回调接口 API返回值 -tmall.cityretail.fulfill.abnormal.center.abnormal.status.change - -同城零售履约异常中心异常单处理结果回调接口 -*/ -type TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeAPIResponse struct { - model.CommonResponse - TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeResponse -} - -// 同城零售履约异常中心异常单处理结果回调接口 成功返回结果 -type TmallCityretailFulfillAbnormalCenterAbnormalStatusChangeResponse struct { - XMLName xml.Name `xml:"tmall_cityretail_fulfill_abnormal_center_abnormal_status_change_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应参数 - FulfillSingleResult *FulfillSingleResult `json:"fulfill_single_result,omitempty" xml:"fulfill_single_result,omitempty"` -} diff --git a/model/wdk/WdkMealPosGetfetchmealcodeAPIRequest.go b/model/wdk/WdkMealPosGetfetchmealcodeAPIRequest.go new file mode 100644 index 0000000000..255429cb2f --- /dev/null +++ b/model/wdk/WdkMealPosGetfetchmealcodeAPIRequest.go @@ -0,0 +1,52 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口餐饮取餐号获取接口 API请求 +wdk.meal.pos.getfetchmealcode + +pos机创建订单前获取餐饮取餐号 +*/ +type WdkMealPosGetfetchmealcodeAPIRequest struct { + model.Params + // 渠道店id + _channelShopId string +} + +// 初始化WdkMealPosGetfetchmealcodeAPIRequest对象 +func NewWdkMealPosGetfetchmealcodeRequest() *WdkMealPosGetfetchmealcodeAPIRequest{ + return &WdkMealPosGetfetchmealcodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r WdkMealPosGetfetchmealcodeAPIRequest) GetApiMethodName() string { + return "wdk.meal.pos.getfetchmealcode" +} + +// IRequest interface 方法, 获取API参数 +func (r WdkMealPosGetfetchmealcodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChannelShopId Setter +// 渠道店id +func (r *WdkMealPosGetfetchmealcodeAPIRequest) SetChannelShopId(_channelShopId string) error { + r._channelShopId = _channelShopId + r.Set("channel_shop_id", _channelShopId) + return nil +} + +// ChannelShopId Getter +func (r WdkMealPosGetfetchmealcodeAPIRequest) GetChannelShopId() string { + return r._channelShopId +} diff --git a/model/wdk/WdkMealPosGetfetchmealcodeAPIResponse.go b/model/wdk/WdkMealPosGetfetchmealcodeAPIResponse.go new file mode 100644 index 0000000000..0237ff7a89 --- /dev/null +++ b/model/wdk/WdkMealPosGetfetchmealcodeAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +五道口餐饮取餐号获取接口 API返回值 +wdk.meal.pos.getfetchmealcode + +pos机创建订单前获取餐饮取餐号 +*/ +type WdkMealPosGetfetchmealcodeAPIResponse struct { + model.CommonResponse + WdkMealPosGetfetchmealcodeAPIResponseModel +} + +// 五道口餐饮取餐号获取接口 成功返回结果 +type WdkMealPosGetfetchmealcodeAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_meal_pos_getfetchmealcode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 取餐号 + FetchMealCode string `json:"fetch_meal_code,omitempty" xml:"fetch_meal_code,omitempty"` +} diff --git a/model/wdk/WdkMealPosGetfetchmealcodeResponse.go b/model/wdk/WdkMealPosGetfetchmealcodeResponse.go deleted file mode 100644 index b2d70fb00c..0000000000 --- a/model/wdk/WdkMealPosGetfetchmealcodeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -五道口餐饮取餐号获取接口 API返回值 -wdk.meal.pos.getfetchmealcode - -pos机创建订单前获取餐饮取餐号 -*/ -type WdkMealPosGetfetchmealcodeAPIResponse struct { - model.CommonResponse - WdkMealPosGetfetchmealcodeResponse -} - -// 五道口餐饮取餐号获取接口 成功返回结果 -type WdkMealPosGetfetchmealcodeResponse struct { - XMLName xml.Name `xml:"wdk_meal_pos_getfetchmealcode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 取餐号 - FetchMealCode string `json:"fetch_meal_code,omitempty" xml:"fetch_meal_code,omitempty"` -} diff --git a/model/wdk/WdkWmsPickMedicineChecksellAPIRequest.go b/model/wdk/WdkWmsPickMedicineChecksellAPIRequest.go new file mode 100644 index 0000000000..6bef2a38ef --- /dev/null +++ b/model/wdk/WdkWmsPickMedicineChecksellAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +联营商药品柜核销 API请求 +wdk.wms.pick.medicine.checksell + +联营商药品柜核销 +*/ +type WdkWmsPickMedicineChecksellAPIRequest struct { + model.Params + // 从二维码扫描出的信息 + _uuid string + // shopId + _shopId int64 +} + +// 初始化WdkWmsPickMedicineChecksellAPIRequest对象 +func NewWdkWmsPickMedicineChecksellRequest() *WdkWmsPickMedicineChecksellAPIRequest{ + return &WdkWmsPickMedicineChecksellAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r WdkWmsPickMedicineChecksellAPIRequest) GetApiMethodName() string { + return "wdk.wms.pick.medicine.checksell" +} + +// IRequest interface 方法, 获取API参数 +func (r WdkWmsPickMedicineChecksellAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Uuid Setter +// 从二维码扫描出的信息 +func (r *WdkWmsPickMedicineChecksellAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r WdkWmsPickMedicineChecksellAPIRequest) GetUuid() string { + return r._uuid +} +// ShopId Setter +// shopId +func (r *WdkWmsPickMedicineChecksellAPIRequest) SetShopId(_shopId int64) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r WdkWmsPickMedicineChecksellAPIRequest) GetShopId() int64 { + return r._shopId +} diff --git a/model/wdk/WdkWmsPickMedicineChecksellAPIResponse.go b/model/wdk/WdkWmsPickMedicineChecksellAPIResponse.go new file mode 100644 index 0000000000..7fa1cd25e5 --- /dev/null +++ b/model/wdk/WdkWmsPickMedicineChecksellAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +联营商药品柜核销 API返回值 +wdk.wms.pick.medicine.checksell + +联营商药品柜核销 +*/ +type WdkWmsPickMedicineChecksellAPIResponse struct { + model.CommonResponse + WdkWmsPickMedicineChecksellAPIResponseModel +} + +// 联营商药品柜核销 成功返回结果 +type WdkWmsPickMedicineChecksellAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_wms_pick_medicine_checksell_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *MedicineResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/WdkWmsPickMedicineChecksellResponse.go b/model/wdk/WdkWmsPickMedicineChecksellResponse.go deleted file mode 100644 index 4f4a0f446d..0000000000 --- a/model/wdk/WdkWmsPickMedicineChecksellResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -联营商药品柜核销 API返回值 -wdk.wms.pick.medicine.checksell - -联营商药品柜核销 -*/ -type WdkWmsPickMedicineChecksellAPIResponse struct { - model.CommonResponse - WdkWmsPickMedicineChecksellResponse -} - -// 联营商药品柜核销 成功返回结果 -type WdkWmsPickMedicineChecksellResponse struct { - XMLName xml.Name `xml:"wdk_wms_pick_medicine_checksell_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *MedicineResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdk/WdkWmsPickMedicineQueryAPIRequest.go b/model/wdk/WdkWmsPickMedicineQueryAPIRequest.go new file mode 100644 index 0000000000..842a01936b --- /dev/null +++ b/model/wdk/WdkWmsPickMedicineQueryAPIRequest.go @@ -0,0 +1,66 @@ +package wdk + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询拣货单中的药品信息 API请求 +wdk.wms.pick.medicine.query + +联营商药机查询拣货单中的药品信息 +*/ +type WdkWmsPickMedicineQueryAPIRequest struct { + model.Params + // shopId + _shopId int64 + // uuid + _uuid string +} + +// 初始化WdkWmsPickMedicineQueryAPIRequest对象 +func NewWdkWmsPickMedicineQueryRequest() *WdkWmsPickMedicineQueryAPIRequest{ + return &WdkWmsPickMedicineQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r WdkWmsPickMedicineQueryAPIRequest) GetApiMethodName() string { + return "wdk.wms.pick.medicine.query" +} + +// IRequest interface 方法, 获取API参数 +func (r WdkWmsPickMedicineQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShopId Setter +// shopId +func (r *WdkWmsPickMedicineQueryAPIRequest) SetShopId(_shopId int64) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r WdkWmsPickMedicineQueryAPIRequest) GetShopId() int64 { + return r._shopId +} +// Uuid Setter +// uuid +func (r *WdkWmsPickMedicineQueryAPIRequest) SetUuid(_uuid string) error { + r._uuid = _uuid + r.Set("uuid", _uuid) + return nil +} + +// Uuid Getter +func (r WdkWmsPickMedicineQueryAPIRequest) GetUuid() string { + return r._uuid +} diff --git a/model/wdk/WdkWmsPickMedicineQueryAPIResponse.go b/model/wdk/WdkWmsPickMedicineQueryAPIResponse.go new file mode 100644 index 0000000000..f36f30c0c8 --- /dev/null +++ b/model/wdk/WdkWmsPickMedicineQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdk + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询拣货单中的药品信息 API返回值 +wdk.wms.pick.medicine.query + +联营商药机查询拣货单中的药品信息 +*/ +type WdkWmsPickMedicineQueryAPIResponse struct { + model.CommonResponse + WdkWmsPickMedicineQueryAPIResponseModel +} + +// 查询拣货单中的药品信息 成功返回结果 +type WdkWmsPickMedicineQueryAPIResponseModel struct { + XMLName xml.Name `xml:"wdk_wms_pick_medicine_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *WdkWmsPickMedicineQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdk/WdkWmsPickMedicineQueryResponse.go b/model/wdk/WdkWmsPickMedicineQueryResponse.go deleted file mode 100644 index 2a9480bef7..0000000000 --- a/model/wdk/WdkWmsPickMedicineQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdk - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询拣货单中的药品信息 API返回值 -wdk.wms.pick.medicine.query - -联营商药机查询拣货单中的药品信息 -*/ -type WdkWmsPickMedicineQueryAPIResponse struct { - model.CommonResponse - WdkWmsPickMedicineQueryResponse -} - -// 查询拣货单中的药品信息 成功返回结果 -type WdkWmsPickMedicineQueryResponse struct { - XMLName xml.Name `xml:"wdk_wms_pick_medicine_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *WdkWmsPickMedicineQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdkitem/AlibabaWdkItemBrandQueryAPIRequest.go b/model/wdkitem/AlibabaWdkItemBrandQueryAPIRequest.go new file mode 100644 index 0000000000..125373598c --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemBrandQueryAPIRequest.go @@ -0,0 +1,80 @@ +package wdkitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌信息查询 API请求 +alibaba.wdk.item.brand.query + +品牌信息查询 +*/ +type AlibabaWdkItemBrandQueryAPIRequest struct { + model.Params + // 查询关键词,不填则查询全部 + _keyword string + // 起始位置 + _offset int64 + // 一页大小 + _pageSize int64 +} + +// 初始化AlibabaWdkItemBrandQueryAPIRequest对象 +func NewAlibabaWdkItemBrandQueryRequest() *AlibabaWdkItemBrandQueryAPIRequest{ + return &AlibabaWdkItemBrandQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkItemBrandQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.item.brand.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkItemBrandQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Keyword Setter +// 查询关键词,不填则查询全部 +func (r *AlibabaWdkItemBrandQueryAPIRequest) SetKeyword(_keyword string) error { + r._keyword = _keyword + r.Set("keyword", _keyword) + return nil +} + +// Keyword Getter +func (r AlibabaWdkItemBrandQueryAPIRequest) GetKeyword() string { + return r._keyword +} +// Offset Setter +// 起始位置 +func (r *AlibabaWdkItemBrandQueryAPIRequest) SetOffset(_offset int64) error { + r._offset = _offset + r.Set("offset", _offset) + return nil +} + +// Offset Getter +func (r AlibabaWdkItemBrandQueryAPIRequest) GetOffset() int64 { + return r._offset +} +// PageSize Setter +// 一页大小 +func (r *AlibabaWdkItemBrandQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r AlibabaWdkItemBrandQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/wdkitem/AlibabaWdkItemBrandQueryAPIResponse.go b/model/wdkitem/AlibabaWdkItemBrandQueryAPIResponse.go new file mode 100644 index 0000000000..c893a4f0d8 --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemBrandQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdkitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +品牌信息查询 API返回值 +alibaba.wdk.item.brand.query + +品牌信息查询 +*/ +type AlibabaWdkItemBrandQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkItemBrandQueryAPIResponseModel +} + +// 品牌信息查询 成功返回结果 +type AlibabaWdkItemBrandQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_item_brand_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkItemBrandQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdkitem/AlibabaWdkItemBrandQueryResponse.go b/model/wdkitem/AlibabaWdkItemBrandQueryResponse.go deleted file mode 100644 index 51e00e4f2a..0000000000 --- a/model/wdkitem/AlibabaWdkItemBrandQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdkitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -品牌信息查询 API返回值 -alibaba.wdk.item.brand.query - -品牌信息查询 -*/ -type AlibabaWdkItemBrandQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkItemBrandQueryResponse -} - -// 品牌信息查询 成功返回结果 -type AlibabaWdkItemBrandQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_item_brand_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkItemBrandQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdkitem/AlibabaWdkItemCategoryQueryAPIRequest.go b/model/wdkitem/AlibabaWdkItemCategoryQueryAPIRequest.go new file mode 100644 index 0000000000..313316bb3d --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemCategoryQueryAPIRequest.go @@ -0,0 +1,66 @@ +package wdkitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +类目查询接口 API请求 +alibaba.wdk.item.category.query + +类目查询接口 +*/ +type AlibabaWdkItemCategoryQueryAPIRequest struct { + model.Params + // 查询关键词,不填查全部 + _keyword string + // 从哪个类目开始查,不填从根类目开始查 + _rootCategoryCode string +} + +// 初始化AlibabaWdkItemCategoryQueryAPIRequest对象 +func NewAlibabaWdkItemCategoryQueryRequest() *AlibabaWdkItemCategoryQueryAPIRequest{ + return &AlibabaWdkItemCategoryQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkItemCategoryQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.item.category.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkItemCategoryQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Keyword Setter +// 查询关键词,不填查全部 +func (r *AlibabaWdkItemCategoryQueryAPIRequest) SetKeyword(_keyword string) error { + r._keyword = _keyword + r.Set("keyword", _keyword) + return nil +} + +// Keyword Getter +func (r AlibabaWdkItemCategoryQueryAPIRequest) GetKeyword() string { + return r._keyword +} +// RootCategoryCode Setter +// 从哪个类目开始查,不填从根类目开始查 +func (r *AlibabaWdkItemCategoryQueryAPIRequest) SetRootCategoryCode(_rootCategoryCode string) error { + r._rootCategoryCode = _rootCategoryCode + r.Set("root_category_code", _rootCategoryCode) + return nil +} + +// RootCategoryCode Getter +func (r AlibabaWdkItemCategoryQueryAPIRequest) GetRootCategoryCode() string { + return r._rootCategoryCode +} diff --git a/model/wdkitem/AlibabaWdkItemCategoryQueryAPIResponse.go b/model/wdkitem/AlibabaWdkItemCategoryQueryAPIResponse.go new file mode 100644 index 0000000000..c7e8bbf8a5 --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemCategoryQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdkitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +类目查询接口 API返回值 +alibaba.wdk.item.category.query + +类目查询接口 +*/ +type AlibabaWdkItemCategoryQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkItemCategoryQueryAPIResponseModel +} + +// 类目查询接口 成功返回结果 +type AlibabaWdkItemCategoryQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_item_category_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkItemCategoryQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdkitem/AlibabaWdkItemCategoryQueryResponse.go b/model/wdkitem/AlibabaWdkItemCategoryQueryResponse.go deleted file mode 100644 index e12a4f0a5f..0000000000 --- a/model/wdkitem/AlibabaWdkItemCategoryQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdkitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -类目查询接口 API返回值 -alibaba.wdk.item.category.query - -类目查询接口 -*/ -type AlibabaWdkItemCategoryQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkItemCategoryQueryResponse -} - -// 类目查询接口 成功返回结果 -type AlibabaWdkItemCategoryQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_item_category_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkItemCategoryQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdkitem/AlibabaWdkItemFuturepriceQueryAPIRequest.go b/model/wdkitem/AlibabaWdkItemFuturepriceQueryAPIRequest.go new file mode 100644 index 0000000000..c67ee76723 --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemFuturepriceQueryAPIRequest.go @@ -0,0 +1,108 @@ +package wdkitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单个商品未来价查询接口 API请求 +alibaba.wdk.item.futureprice.query + +查询单个商品未来价,融合了未来基础售价+未来促销价 +*/ +type AlibabaWdkItemFuturepriceQueryAPIRequest struct { + model.Params + // 渠道店id + _shopId int64 + // 商品编码 + _skuCode string + // 渠道 + _orderChannelCode string + // 开始时间 + _startTime string + // 结束时间,结束时间-开始时间不能超过48小时 + _endTime string +} + +// 初始化AlibabaWdkItemFuturepriceQueryAPIRequest对象 +func NewAlibabaWdkItemFuturepriceQueryRequest() *AlibabaWdkItemFuturepriceQueryAPIRequest{ + return &AlibabaWdkItemFuturepriceQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkItemFuturepriceQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.item.futureprice.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkItemFuturepriceQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShopId Setter +// 渠道店id +func (r *AlibabaWdkItemFuturepriceQueryAPIRequest) SetShopId(_shopId int64) error { + r._shopId = _shopId + r.Set("shop_id", _shopId) + return nil +} + +// ShopId Getter +func (r AlibabaWdkItemFuturepriceQueryAPIRequest) GetShopId() int64 { + return r._shopId +} +// SkuCode Setter +// 商品编码 +func (r *AlibabaWdkItemFuturepriceQueryAPIRequest) SetSkuCode(_skuCode string) error { + r._skuCode = _skuCode + r.Set("sku_code", _skuCode) + return nil +} + +// SkuCode Getter +func (r AlibabaWdkItemFuturepriceQueryAPIRequest) GetSkuCode() string { + return r._skuCode +} +// OrderChannelCode Setter +// 渠道 +func (r *AlibabaWdkItemFuturepriceQueryAPIRequest) SetOrderChannelCode(_orderChannelCode string) error { + r._orderChannelCode = _orderChannelCode + r.Set("order_channel_code", _orderChannelCode) + return nil +} + +// OrderChannelCode Getter +func (r AlibabaWdkItemFuturepriceQueryAPIRequest) GetOrderChannelCode() string { + return r._orderChannelCode +} +// StartTime Setter +// 开始时间 +func (r *AlibabaWdkItemFuturepriceQueryAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r AlibabaWdkItemFuturepriceQueryAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束时间,结束时间-开始时间不能超过48小时 +func (r *AlibabaWdkItemFuturepriceQueryAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r AlibabaWdkItemFuturepriceQueryAPIRequest) GetEndTime() string { + return r._endTime +} diff --git a/model/wdkitem/AlibabaWdkItemFuturepriceQueryAPIResponse.go b/model/wdkitem/AlibabaWdkItemFuturepriceQueryAPIResponse.go new file mode 100644 index 0000000000..01dd9b9991 --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemFuturepriceQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdkitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单个商品未来价查询接口 API返回值 +alibaba.wdk.item.futureprice.query + +查询单个商品未来价,融合了未来基础售价+未来促销价 +*/ +type AlibabaWdkItemFuturepriceQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkItemFuturepriceQueryAPIResponseModel +} + +// 单个商品未来价查询接口 成功返回结果 +type AlibabaWdkItemFuturepriceQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_item_futureprice_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *AlibabaWdkItemFuturepriceQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdkitem/AlibabaWdkItemFuturepriceQueryResponse.go b/model/wdkitem/AlibabaWdkItemFuturepriceQueryResponse.go deleted file mode 100644 index 5490d1de84..0000000000 --- a/model/wdkitem/AlibabaWdkItemFuturepriceQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdkitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单个商品未来价查询接口 API返回值 -alibaba.wdk.item.futureprice.query - -查询单个商品未来价,融合了未来基础售价+未来促销价 -*/ -type AlibabaWdkItemFuturepriceQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkItemFuturepriceQueryResponse -} - -// 单个商品未来价查询接口 成功返回结果 -type AlibabaWdkItemFuturepriceQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_item_futureprice_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *AlibabaWdkItemFuturepriceQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdkitem/AlibabaWdkItemMemberpriceUpdateAPIRequest.go b/model/wdkitem/AlibabaWdkItemMemberpriceUpdateAPIRequest.go new file mode 100644 index 0000000000..a561f28243 --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemMemberpriceUpdateAPIRequest.go @@ -0,0 +1,122 @@ +package wdkitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品售价会员价修改 API请求 +alibaba.wdk.item.memberprice.update + +商品售价会员价修改 +*/ +type AlibabaWdkItemMemberpriceUpdateAPIRequest struct { + model.Params + // 门店ID + _storeId string + // 商品编码 + _skuCode string + // 售价,单位分,售价会员价至少填一个 + _skuPrice int64 + // 会员价,单位分 + _skuMemberPrice int64 + // 是否清空会员价 + _cleanSkuMemberPrice bool + // 时间戳 + _timeStamp int64 +} + +// 初始化AlibabaWdkItemMemberpriceUpdateAPIRequest对象 +func NewAlibabaWdkItemMemberpriceUpdateRequest() *AlibabaWdkItemMemberpriceUpdateAPIRequest{ + return &AlibabaWdkItemMemberpriceUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkItemMemberpriceUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.item.memberprice.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkItemMemberpriceUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店ID +func (r *AlibabaWdkItemMemberpriceUpdateAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaWdkItemMemberpriceUpdateAPIRequest) GetStoreId() string { + return r._storeId +} +// SkuCode Setter +// 商品编码 +func (r *AlibabaWdkItemMemberpriceUpdateAPIRequest) SetSkuCode(_skuCode string) error { + r._skuCode = _skuCode + r.Set("sku_code", _skuCode) + return nil +} + +// SkuCode Getter +func (r AlibabaWdkItemMemberpriceUpdateAPIRequest) GetSkuCode() string { + return r._skuCode +} +// SkuPrice Setter +// 售价,单位分,售价会员价至少填一个 +func (r *AlibabaWdkItemMemberpriceUpdateAPIRequest) SetSkuPrice(_skuPrice int64) error { + r._skuPrice = _skuPrice + r.Set("sku_price", _skuPrice) + return nil +} + +// SkuPrice Getter +func (r AlibabaWdkItemMemberpriceUpdateAPIRequest) GetSkuPrice() int64 { + return r._skuPrice +} +// SkuMemberPrice Setter +// 会员价,单位分 +func (r *AlibabaWdkItemMemberpriceUpdateAPIRequest) SetSkuMemberPrice(_skuMemberPrice int64) error { + r._skuMemberPrice = _skuMemberPrice + r.Set("sku_member_price", _skuMemberPrice) + return nil +} + +// SkuMemberPrice Getter +func (r AlibabaWdkItemMemberpriceUpdateAPIRequest) GetSkuMemberPrice() int64 { + return r._skuMemberPrice +} +// CleanSkuMemberPrice Setter +// 是否清空会员价 +func (r *AlibabaWdkItemMemberpriceUpdateAPIRequest) SetCleanSkuMemberPrice(_cleanSkuMemberPrice bool) error { + r._cleanSkuMemberPrice = _cleanSkuMemberPrice + r.Set("clean_sku_member_price", _cleanSkuMemberPrice) + return nil +} + +// CleanSkuMemberPrice Getter +func (r AlibabaWdkItemMemberpriceUpdateAPIRequest) GetCleanSkuMemberPrice() bool { + return r._cleanSkuMemberPrice +} +// TimeStamp Setter +// 时间戳 +func (r *AlibabaWdkItemMemberpriceUpdateAPIRequest) SetTimeStamp(_timeStamp int64) error { + r._timeStamp = _timeStamp + r.Set("time_stamp", _timeStamp) + return nil +} + +// TimeStamp Getter +func (r AlibabaWdkItemMemberpriceUpdateAPIRequest) GetTimeStamp() int64 { + return r._timeStamp +} diff --git a/model/wdkitem/AlibabaWdkItemMemberpriceUpdateAPIResponse.go b/model/wdkitem/AlibabaWdkItemMemberpriceUpdateAPIResponse.go new file mode 100644 index 0000000000..1bc5684597 --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemMemberpriceUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package wdkitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品售价会员价修改 API返回值 +alibaba.wdk.item.memberprice.update + +商品售价会员价修改 +*/ +type AlibabaWdkItemMemberpriceUpdateAPIResponse struct { + model.CommonResponse + AlibabaWdkItemMemberpriceUpdateAPIResponseModel +} + +// 商品售价会员价修改 成功返回结果 +type AlibabaWdkItemMemberpriceUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_item_memberprice_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkItemMemberpriceUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdkitem/AlibabaWdkItemMemberpriceUpdateResponse.go b/model/wdkitem/AlibabaWdkItemMemberpriceUpdateResponse.go deleted file mode 100644 index 301564d167..0000000000 --- a/model/wdkitem/AlibabaWdkItemMemberpriceUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdkitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品售价会员价修改 API返回值 -alibaba.wdk.item.memberprice.update - -商品售价会员价修改 -*/ -type AlibabaWdkItemMemberpriceUpdateAPIResponse struct { - model.CommonResponse - AlibabaWdkItemMemberpriceUpdateResponse -} - -// 商品售价会员价修改 成功返回结果 -type AlibabaWdkItemMemberpriceUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_item_memberprice_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkItemMemberpriceUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdkitem/AlibabaWdkItemMerchantskuCreateAPIRequest.go b/model/wdkitem/AlibabaWdkItemMerchantskuCreateAPIRequest.go new file mode 100644 index 0000000000..8cb1629a35 --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemMerchantskuCreateAPIRequest.go @@ -0,0 +1,52 @@ +package wdkitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家商品信息新建 API请求 +alibaba.wdk.item.merchantsku.create + +商家商品信息新建 +*/ +type AlibabaWdkItemMerchantskuCreateAPIRequest struct { + model.Params + // 新建商品参数,是个json字符串 + _params string +} + +// 初始化AlibabaWdkItemMerchantskuCreateAPIRequest对象 +func NewAlibabaWdkItemMerchantskuCreateRequest() *AlibabaWdkItemMerchantskuCreateAPIRequest{ + return &AlibabaWdkItemMerchantskuCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkItemMerchantskuCreateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.item.merchantsku.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkItemMerchantskuCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Params Setter +// 新建商品参数,是个json字符串 +func (r *AlibabaWdkItemMerchantskuCreateAPIRequest) SetParams(_params string) error { + r._params = _params + r.Set("params", _params) + return nil +} + +// Params Getter +func (r AlibabaWdkItemMerchantskuCreateAPIRequest) GetParams() string { + return r._params +} diff --git a/model/wdkitem/AlibabaWdkItemMerchantskuCreateAPIResponse.go b/model/wdkitem/AlibabaWdkItemMerchantskuCreateAPIResponse.go new file mode 100644 index 0000000000..d80b70e6f3 --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemMerchantskuCreateAPIResponse.go @@ -0,0 +1,27 @@ +package wdkitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家商品信息新建 API返回值 +alibaba.wdk.item.merchantsku.create + +商家商品信息新建 +*/ +type AlibabaWdkItemMerchantskuCreateAPIResponse struct { + model.CommonResponse + AlibabaWdkItemMerchantskuCreateAPIResponseModel +} + +// 商家商品信息新建 成功返回结果 +type AlibabaWdkItemMerchantskuCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_item_merchantsku_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkItemMerchantskuCreateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdkitem/AlibabaWdkItemMerchantskuCreateResponse.go b/model/wdkitem/AlibabaWdkItemMerchantskuCreateResponse.go deleted file mode 100644 index 893dcfa753..0000000000 --- a/model/wdkitem/AlibabaWdkItemMerchantskuCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdkitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家商品信息新建 API返回值 -alibaba.wdk.item.merchantsku.create - -商家商品信息新建 -*/ -type AlibabaWdkItemMerchantskuCreateAPIResponse struct { - model.CommonResponse - AlibabaWdkItemMerchantskuCreateResponse -} - -// 商家商品信息新建 成功返回结果 -type AlibabaWdkItemMerchantskuCreateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_item_merchantsku_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkItemMerchantskuCreateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdkitem/AlibabaWdkItemMerchantskuQueryAPIRequest.go b/model/wdkitem/AlibabaWdkItemMerchantskuQueryAPIRequest.go new file mode 100644 index 0000000000..bedb3cf21d --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemMerchantskuQueryAPIRequest.go @@ -0,0 +1,66 @@ +package wdkitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家商品信息查询 API请求 +alibaba.wdk.item.merchantsku.query + +商家商品信息查询 +*/ +type AlibabaWdkItemMerchantskuQueryAPIRequest struct { + model.Params + // 商品编码 + _skuCode string + // 机构编码 + _orgCode string +} + +// 初始化AlibabaWdkItemMerchantskuQueryAPIRequest对象 +func NewAlibabaWdkItemMerchantskuQueryRequest() *AlibabaWdkItemMerchantskuQueryAPIRequest{ + return &AlibabaWdkItemMerchantskuQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkItemMerchantskuQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.item.merchantsku.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkItemMerchantskuQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkuCode Setter +// 商品编码 +func (r *AlibabaWdkItemMerchantskuQueryAPIRequest) SetSkuCode(_skuCode string) error { + r._skuCode = _skuCode + r.Set("sku_code", _skuCode) + return nil +} + +// SkuCode Getter +func (r AlibabaWdkItemMerchantskuQueryAPIRequest) GetSkuCode() string { + return r._skuCode +} +// OrgCode Setter +// 机构编码 +func (r *AlibabaWdkItemMerchantskuQueryAPIRequest) SetOrgCode(_orgCode string) error { + r._orgCode = _orgCode + r.Set("org_code", _orgCode) + return nil +} + +// OrgCode Getter +func (r AlibabaWdkItemMerchantskuQueryAPIRequest) GetOrgCode() string { + return r._orgCode +} diff --git a/model/wdkitem/AlibabaWdkItemMerchantskuQueryAPIResponse.go b/model/wdkitem/AlibabaWdkItemMerchantskuQueryAPIResponse.go new file mode 100644 index 0000000000..ea67fca4c7 --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemMerchantskuQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdkitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家商品信息查询 API返回值 +alibaba.wdk.item.merchantsku.query + +商家商品信息查询 +*/ +type AlibabaWdkItemMerchantskuQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkItemMerchantskuQueryAPIResponseModel +} + +// 商家商品信息查询 成功返回结果 +type AlibabaWdkItemMerchantskuQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_item_merchantsku_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkItemMerchantskuQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdkitem/AlibabaWdkItemMerchantskuQueryResponse.go b/model/wdkitem/AlibabaWdkItemMerchantskuQueryResponse.go deleted file mode 100644 index f8a6b21cde..0000000000 --- a/model/wdkitem/AlibabaWdkItemMerchantskuQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdkitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家商品信息查询 API返回值 -alibaba.wdk.item.merchantsku.query - -商家商品信息查询 -*/ -type AlibabaWdkItemMerchantskuQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkItemMerchantskuQueryResponse -} - -// 商家商品信息查询 成功返回结果 -type AlibabaWdkItemMerchantskuQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_item_merchantsku_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkItemMerchantskuQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdkitem/AlibabaWdkItemMerchantskuUpdateAPIRequest.go b/model/wdkitem/AlibabaWdkItemMerchantskuUpdateAPIRequest.go new file mode 100644 index 0000000000..946e0c1815 --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemMerchantskuUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package wdkitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家商品修改 API请求 +alibaba.wdk.item.merchantsku.update + +商家商品修改 +*/ +type AlibabaWdkItemMerchantskuUpdateAPIRequest struct { + model.Params + // 商品编码 + _skuCode string + // 参数json + _params string + // 机构编码 + _orgCode string +} + +// 初始化AlibabaWdkItemMerchantskuUpdateAPIRequest对象 +func NewAlibabaWdkItemMerchantskuUpdateRequest() *AlibabaWdkItemMerchantskuUpdateAPIRequest{ + return &AlibabaWdkItemMerchantskuUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkItemMerchantskuUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.item.merchantsku.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkItemMerchantskuUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkuCode Setter +// 商品编码 +func (r *AlibabaWdkItemMerchantskuUpdateAPIRequest) SetSkuCode(_skuCode string) error { + r._skuCode = _skuCode + r.Set("sku_code", _skuCode) + return nil +} + +// SkuCode Getter +func (r AlibabaWdkItemMerchantskuUpdateAPIRequest) GetSkuCode() string { + return r._skuCode +} +// Params Setter +// 参数json +func (r *AlibabaWdkItemMerchantskuUpdateAPIRequest) SetParams(_params string) error { + r._params = _params + r.Set("params", _params) + return nil +} + +// Params Getter +func (r AlibabaWdkItemMerchantskuUpdateAPIRequest) GetParams() string { + return r._params +} +// OrgCode Setter +// 机构编码 +func (r *AlibabaWdkItemMerchantskuUpdateAPIRequest) SetOrgCode(_orgCode string) error { + r._orgCode = _orgCode + r.Set("org_code", _orgCode) + return nil +} + +// OrgCode Getter +func (r AlibabaWdkItemMerchantskuUpdateAPIRequest) GetOrgCode() string { + return r._orgCode +} diff --git a/model/wdkitem/AlibabaWdkItemMerchantskuUpdateAPIResponse.go b/model/wdkitem/AlibabaWdkItemMerchantskuUpdateAPIResponse.go new file mode 100644 index 0000000000..10e05a3510 --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemMerchantskuUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package wdkitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家商品修改 API返回值 +alibaba.wdk.item.merchantsku.update + +商家商品修改 +*/ +type AlibabaWdkItemMerchantskuUpdateAPIResponse struct { + model.CommonResponse + AlibabaWdkItemMerchantskuUpdateAPIResponseModel +} + +// 商家商品修改 成功返回结果 +type AlibabaWdkItemMerchantskuUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_item_merchantsku_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkItemMerchantskuUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdkitem/AlibabaWdkItemMerchantskuUpdateResponse.go b/model/wdkitem/AlibabaWdkItemMerchantskuUpdateResponse.go deleted file mode 100644 index ee5f9465fb..0000000000 --- a/model/wdkitem/AlibabaWdkItemMerchantskuUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdkitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家商品修改 API返回值 -alibaba.wdk.item.merchantsku.update - -商家商品修改 -*/ -type AlibabaWdkItemMerchantskuUpdateAPIResponse struct { - model.CommonResponse - AlibabaWdkItemMerchantskuUpdateResponse -} - -// 商家商品修改 成功返回结果 -type AlibabaWdkItemMerchantskuUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_item_merchantsku_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkItemMerchantskuUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdkitem/AlibabaWdkItemMerchantstoreskuCreateAPIRequest.go b/model/wdkitem/AlibabaWdkItemMerchantstoreskuCreateAPIRequest.go new file mode 100644 index 0000000000..3029ca3aa7 --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemMerchantstoreskuCreateAPIRequest.go @@ -0,0 +1,94 @@ +package wdkitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店商品信息新建 API请求 +alibaba.wdk.item.merchantstoresku.create + +门店商品信息新建 +*/ +type AlibabaWdkItemMerchantstoreskuCreateAPIRequest struct { + model.Params + // 门店编码 + _storeId string + // 商品编码 + _skuCode string + // 新建参数,是个json字符串 + _params string + // 机构 + _orgCode string +} + +// 初始化AlibabaWdkItemMerchantstoreskuCreateAPIRequest对象 +func NewAlibabaWdkItemMerchantstoreskuCreateRequest() *AlibabaWdkItemMerchantstoreskuCreateAPIRequest{ + return &AlibabaWdkItemMerchantstoreskuCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkItemMerchantstoreskuCreateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.item.merchantstoresku.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkItemMerchantstoreskuCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店编码 +func (r *AlibabaWdkItemMerchantstoreskuCreateAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaWdkItemMerchantstoreskuCreateAPIRequest) GetStoreId() string { + return r._storeId +} +// SkuCode Setter +// 商品编码 +func (r *AlibabaWdkItemMerchantstoreskuCreateAPIRequest) SetSkuCode(_skuCode string) error { + r._skuCode = _skuCode + r.Set("sku_code", _skuCode) + return nil +} + +// SkuCode Getter +func (r AlibabaWdkItemMerchantstoreskuCreateAPIRequest) GetSkuCode() string { + return r._skuCode +} +// Params Setter +// 新建参数,是个json字符串 +func (r *AlibabaWdkItemMerchantstoreskuCreateAPIRequest) SetParams(_params string) error { + r._params = _params + r.Set("params", _params) + return nil +} + +// Params Getter +func (r AlibabaWdkItemMerchantstoreskuCreateAPIRequest) GetParams() string { + return r._params +} +// OrgCode Setter +// 机构 +func (r *AlibabaWdkItemMerchantstoreskuCreateAPIRequest) SetOrgCode(_orgCode string) error { + r._orgCode = _orgCode + r.Set("org_code", _orgCode) + return nil +} + +// OrgCode Getter +func (r AlibabaWdkItemMerchantstoreskuCreateAPIRequest) GetOrgCode() string { + return r._orgCode +} diff --git a/model/wdkitem/AlibabaWdkItemMerchantstoreskuCreateAPIResponse.go b/model/wdkitem/AlibabaWdkItemMerchantstoreskuCreateAPIResponse.go new file mode 100644 index 0000000000..abca74e867 --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemMerchantstoreskuCreateAPIResponse.go @@ -0,0 +1,27 @@ +package wdkitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店商品信息新建 API返回值 +alibaba.wdk.item.merchantstoresku.create + +门店商品信息新建 +*/ +type AlibabaWdkItemMerchantstoreskuCreateAPIResponse struct { + model.CommonResponse + AlibabaWdkItemMerchantstoreskuCreateAPIResponseModel +} + +// 门店商品信息新建 成功返回结果 +type AlibabaWdkItemMerchantstoreskuCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_item_merchantstoresku_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkItemMerchantstoreskuCreateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdkitem/AlibabaWdkItemMerchantstoreskuCreateResponse.go b/model/wdkitem/AlibabaWdkItemMerchantstoreskuCreateResponse.go deleted file mode 100644 index a2a8500c70..0000000000 --- a/model/wdkitem/AlibabaWdkItemMerchantstoreskuCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdkitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店商品信息新建 API返回值 -alibaba.wdk.item.merchantstoresku.create - -门店商品信息新建 -*/ -type AlibabaWdkItemMerchantstoreskuCreateAPIResponse struct { - model.CommonResponse - AlibabaWdkItemMerchantstoreskuCreateResponse -} - -// 门店商品信息新建 成功返回结果 -type AlibabaWdkItemMerchantstoreskuCreateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_item_merchantstoresku_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkItemMerchantstoreskuCreateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdkitem/AlibabaWdkItemMerchantstoreskuUpdateAPIRequest.go b/model/wdkitem/AlibabaWdkItemMerchantstoreskuUpdateAPIRequest.go new file mode 100644 index 0000000000..384148c1bd --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemMerchantstoreskuUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package wdkitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店商品信息修改 API请求 +alibaba.wdk.item.merchantstoresku.update + +门店商品信息修改 +*/ +type AlibabaWdkItemMerchantstoreskuUpdateAPIRequest struct { + model.Params + // 门店ID + _storeId string + // 商品编码 + _skuCode string + // 修改参数,是个json字符串 + _params string +} + +// 初始化AlibabaWdkItemMerchantstoreskuUpdateAPIRequest对象 +func NewAlibabaWdkItemMerchantstoreskuUpdateRequest() *AlibabaWdkItemMerchantstoreskuUpdateAPIRequest{ + return &AlibabaWdkItemMerchantstoreskuUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkItemMerchantstoreskuUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.item.merchantstoresku.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkItemMerchantstoreskuUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreId Setter +// 门店ID +func (r *AlibabaWdkItemMerchantstoreskuUpdateAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaWdkItemMerchantstoreskuUpdateAPIRequest) GetStoreId() string { + return r._storeId +} +// SkuCode Setter +// 商品编码 +func (r *AlibabaWdkItemMerchantstoreskuUpdateAPIRequest) SetSkuCode(_skuCode string) error { + r._skuCode = _skuCode + r.Set("sku_code", _skuCode) + return nil +} + +// SkuCode Getter +func (r AlibabaWdkItemMerchantstoreskuUpdateAPIRequest) GetSkuCode() string { + return r._skuCode +} +// Params Setter +// 修改参数,是个json字符串 +func (r *AlibabaWdkItemMerchantstoreskuUpdateAPIRequest) SetParams(_params string) error { + r._params = _params + r.Set("params", _params) + return nil +} + +// Params Getter +func (r AlibabaWdkItemMerchantstoreskuUpdateAPIRequest) GetParams() string { + return r._params +} diff --git a/model/wdkitem/AlibabaWdkItemMerchantstoreskuUpdateAPIResponse.go b/model/wdkitem/AlibabaWdkItemMerchantstoreskuUpdateAPIResponse.go new file mode 100644 index 0000000000..72a03f541d --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemMerchantstoreskuUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package wdkitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店商品信息修改 API返回值 +alibaba.wdk.item.merchantstoresku.update + +门店商品信息修改 +*/ +type AlibabaWdkItemMerchantstoreskuUpdateAPIResponse struct { + model.CommonResponse + AlibabaWdkItemMerchantstoreskuUpdateAPIResponseModel +} + +// 门店商品信息修改 成功返回结果 +type AlibabaWdkItemMerchantstoreskuUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_item_merchantstoresku_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkItemMerchantstoreskuUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdkitem/AlibabaWdkItemMerchantstoreskuUpdateResponse.go b/model/wdkitem/AlibabaWdkItemMerchantstoreskuUpdateResponse.go deleted file mode 100644 index 037661a7cc..0000000000 --- a/model/wdkitem/AlibabaWdkItemMerchantstoreskuUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdkitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店商品信息修改 API返回值 -alibaba.wdk.item.merchantstoresku.update - -门店商品信息修改 -*/ -type AlibabaWdkItemMerchantstoreskuUpdateAPIResponse struct { - model.CommonResponse - AlibabaWdkItemMerchantstoreskuUpdateResponse -} - -// 门店商品信息修改 成功返回结果 -type AlibabaWdkItemMerchantstoreskuUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_item_merchantstoresku_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkItemMerchantstoreskuUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdkitem/AlibabaWdkItemMorebarcodeOpsAPIRequest.go b/model/wdkitem/AlibabaWdkItemMorebarcodeOpsAPIRequest.go new file mode 100644 index 0000000000..80327e09a5 --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemMorebarcodeOpsAPIRequest.go @@ -0,0 +1,52 @@ +package wdkitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品一品多码维护操作 API请求 +alibaba.wdk.item.morebarcode.ops + +商品一品多码维护操作 +*/ +type AlibabaWdkItemMorebarcodeOpsAPIRequest struct { + model.Params + // bean + _updateMoreBarCodeRequestBean *UpdateMoreBarCodeRequestBean +} + +// 初始化AlibabaWdkItemMorebarcodeOpsAPIRequest对象 +func NewAlibabaWdkItemMorebarcodeOpsRequest() *AlibabaWdkItemMorebarcodeOpsAPIRequest{ + return &AlibabaWdkItemMorebarcodeOpsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkItemMorebarcodeOpsAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.item.morebarcode.ops" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkItemMorebarcodeOpsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UpdateMoreBarCodeRequestBean Setter +// bean +func (r *AlibabaWdkItemMorebarcodeOpsAPIRequest) SetUpdateMoreBarCodeRequestBean(_updateMoreBarCodeRequestBean *UpdateMoreBarCodeRequestBean) error { + r._updateMoreBarCodeRequestBean = _updateMoreBarCodeRequestBean + r.Set("update_more_bar_code_request_bean", _updateMoreBarCodeRequestBean) + return nil +} + +// UpdateMoreBarCodeRequestBean Getter +func (r AlibabaWdkItemMorebarcodeOpsAPIRequest) GetUpdateMoreBarCodeRequestBean() *UpdateMoreBarCodeRequestBean { + return r._updateMoreBarCodeRequestBean +} diff --git a/model/wdkitem/AlibabaWdkItemMorebarcodeOpsAPIResponse.go b/model/wdkitem/AlibabaWdkItemMorebarcodeOpsAPIResponse.go new file mode 100644 index 0000000000..e1db102215 --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemMorebarcodeOpsAPIResponse.go @@ -0,0 +1,27 @@ +package wdkitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品一品多码维护操作 API返回值 +alibaba.wdk.item.morebarcode.ops + +商品一品多码维护操作 +*/ +type AlibabaWdkItemMorebarcodeOpsAPIResponse struct { + model.CommonResponse + AlibabaWdkItemMorebarcodeOpsAPIResponseModel +} + +// 商品一品多码维护操作 成功返回结果 +type AlibabaWdkItemMorebarcodeOpsAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_item_morebarcode_ops_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkItemMorebarcodeOpsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdkitem/AlibabaWdkItemMorebarcodeOpsResponse.go b/model/wdkitem/AlibabaWdkItemMorebarcodeOpsResponse.go deleted file mode 100644 index bd828cebeb..0000000000 --- a/model/wdkitem/AlibabaWdkItemMorebarcodeOpsResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdkitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品一品多码维护操作 API返回值 -alibaba.wdk.item.morebarcode.ops - -商品一品多码维护操作 -*/ -type AlibabaWdkItemMorebarcodeOpsAPIResponse struct { - model.CommonResponse - AlibabaWdkItemMorebarcodeOpsResponse -} - -// 商品一品多码维护操作 成功返回结果 -type AlibabaWdkItemMorebarcodeOpsResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_item_morebarcode_ops_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkItemMorebarcodeOpsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdkitem/AlibabaWdkItemStoreskuQueryAPIRequest.go b/model/wdkitem/AlibabaWdkItemStoreskuQueryAPIRequest.go new file mode 100644 index 0000000000..877dcc8e17 --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemStoreskuQueryAPIRequest.go @@ -0,0 +1,66 @@ +package wdkitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +门店商品信息查询 API请求 +alibaba.wdk.item.storesku.query + +门店商品信息查询 +*/ +type AlibabaWdkItemStoreskuQueryAPIRequest struct { + model.Params + // 商品编码 + _skuCode string + // 门店ID + _storeId string +} + +// 初始化AlibabaWdkItemStoreskuQueryAPIRequest对象 +func NewAlibabaWdkItemStoreskuQueryRequest() *AlibabaWdkItemStoreskuQueryAPIRequest{ + return &AlibabaWdkItemStoreskuQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkItemStoreskuQueryAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.item.storesku.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkItemStoreskuQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SkuCode Setter +// 商品编码 +func (r *AlibabaWdkItemStoreskuQueryAPIRequest) SetSkuCode(_skuCode string) error { + r._skuCode = _skuCode + r.Set("sku_code", _skuCode) + return nil +} + +// SkuCode Getter +func (r AlibabaWdkItemStoreskuQueryAPIRequest) GetSkuCode() string { + return r._skuCode +} +// StoreId Setter +// 门店ID +func (r *AlibabaWdkItemStoreskuQueryAPIRequest) SetStoreId(_storeId string) error { + r._storeId = _storeId + r.Set("store_id", _storeId) + return nil +} + +// StoreId Getter +func (r AlibabaWdkItemStoreskuQueryAPIRequest) GetStoreId() string { + return r._storeId +} diff --git a/model/wdkitem/AlibabaWdkItemStoreskuQueryAPIResponse.go b/model/wdkitem/AlibabaWdkItemStoreskuQueryAPIResponse.go new file mode 100644 index 0000000000..1e5461d766 --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemStoreskuQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wdkitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +门店商品信息查询 API返回值 +alibaba.wdk.item.storesku.query + +门店商品信息查询 +*/ +type AlibabaWdkItemStoreskuQueryAPIResponse struct { + model.CommonResponse + AlibabaWdkItemStoreskuQueryAPIResponseModel +} + +// 门店商品信息查询 成功返回结果 +type AlibabaWdkItemStoreskuQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_item_storesku_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkItemStoreskuQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdkitem/AlibabaWdkItemStoreskuQueryResponse.go b/model/wdkitem/AlibabaWdkItemStoreskuQueryResponse.go deleted file mode 100644 index 52586a196e..0000000000 --- a/model/wdkitem/AlibabaWdkItemStoreskuQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdkitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -门店商品信息查询 API返回值 -alibaba.wdk.item.storesku.query - -门店商品信息查询 -*/ -type AlibabaWdkItemStoreskuQueryAPIResponse struct { - model.CommonResponse - AlibabaWdkItemStoreskuQueryResponse -} - -// 门店商品信息查询 成功返回结果 -type AlibabaWdkItemStoreskuQueryResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_item_storesku_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkItemStoreskuQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdkitem/AlibabaWdkItemStoreskustatusUpdateAPIRequest.go b/model/wdkitem/AlibabaWdkItemStoreskustatusUpdateAPIRequest.go new file mode 100644 index 0000000000..3cfbf78409 --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemStoreskustatusUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package wdkitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +修改门店商品状态 API请求 +alibaba.wdk.item.storeskustatus.update + +五道口商品 修改门店商品状态 +*/ +type AlibabaWdkItemStoreskustatusUpdateAPIRequest struct { + model.Params + // bean + _bean *UpdateStoreSkuLifeStatusRequestBean +} + +// 初始化AlibabaWdkItemStoreskustatusUpdateAPIRequest对象 +func NewAlibabaWdkItemStoreskustatusUpdateRequest() *AlibabaWdkItemStoreskustatusUpdateAPIRequest{ + return &AlibabaWdkItemStoreskustatusUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkItemStoreskustatusUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.item.storeskustatus.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkItemStoreskustatusUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Bean Setter +// bean +func (r *AlibabaWdkItemStoreskustatusUpdateAPIRequest) SetBean(_bean *UpdateStoreSkuLifeStatusRequestBean) error { + r._bean = _bean + r.Set("bean", _bean) + return nil +} + +// Bean Getter +func (r AlibabaWdkItemStoreskustatusUpdateAPIRequest) GetBean() *UpdateStoreSkuLifeStatusRequestBean { + return r._bean +} diff --git a/model/wdkitem/AlibabaWdkItemStoreskustatusUpdateAPIResponse.go b/model/wdkitem/AlibabaWdkItemStoreskustatusUpdateAPIResponse.go new file mode 100644 index 0000000000..d709f4d809 --- /dev/null +++ b/model/wdkitem/AlibabaWdkItemStoreskustatusUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package wdkitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +修改门店商品状态 API返回值 +alibaba.wdk.item.storeskustatus.update + +五道口商品 修改门店商品状态 +*/ +type AlibabaWdkItemStoreskustatusUpdateAPIResponse struct { + model.CommonResponse + AlibabaWdkItemStoreskustatusUpdateAPIResponseModel +} + +// 修改门店商品状态 成功返回结果 +type AlibabaWdkItemStoreskustatusUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_item_storeskustatus_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AlibabaWdkItemStoreskustatusUpdateResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdkitem/AlibabaWdkItemStoreskustatusUpdateResponse.go b/model/wdkitem/AlibabaWdkItemStoreskustatusUpdateResponse.go deleted file mode 100644 index 53d24ea0f0..0000000000 --- a/model/wdkitem/AlibabaWdkItemStoreskustatusUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdkitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -修改门店商品状态 API返回值 -alibaba.wdk.item.storeskustatus.update - -五道口商品 修改门店商品状态 -*/ -type AlibabaWdkItemStoreskustatusUpdateAPIResponse struct { - model.CommonResponse - AlibabaWdkItemStoreskustatusUpdateResponse -} - -// 修改门店商品状态 成功返回结果 -type AlibabaWdkItemStoreskustatusUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_item_storeskustatus_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AlibabaWdkItemStoreskustatusUpdateResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdkitem/AlibabaWdkPictureUploadAPIRequest.go b/model/wdkitem/AlibabaWdkPictureUploadAPIRequest.go new file mode 100644 index 0000000000..0dfc2e316b --- /dev/null +++ b/model/wdkitem/AlibabaWdkPictureUploadAPIRequest.go @@ -0,0 +1,94 @@ +package wdkitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +图片上传接口 API请求 +alibaba.wdk.picture.upload + +上传图片 +*/ +type AlibabaWdkPictureUploadAPIRequest struct { + model.Params + // 图片分类ID,设置具体某个分类ID或设置0上传到默认分类,只能传入一个分类 + _pictureCategoryId int64 + // 图片二进制文件流,不能为空,允许png、jpg、gif图片格式,3M以内 + _img *model.File + // 包括后缀名的图片标题,不能为空,如Bule.jpg,有些卖家希望图片上传后取图片文件的默认名 + _imgInputTitle string + // 图片标题,如果为空,传的图片标题就取去掉后缀名的image_input_title,超过50字符长度会截取50字符,重名会在标题末尾加"(1)";标题末尾已经有"(数字)"了,则数字加1 + _title string +} + +// 初始化AlibabaWdkPictureUploadAPIRequest对象 +func NewAlibabaWdkPictureUploadRequest() *AlibabaWdkPictureUploadAPIRequest{ + return &AlibabaWdkPictureUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkPictureUploadAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.picture.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkPictureUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PictureCategoryId Setter +// 图片分类ID,设置具体某个分类ID或设置0上传到默认分类,只能传入一个分类 +func (r *AlibabaWdkPictureUploadAPIRequest) SetPictureCategoryId(_pictureCategoryId int64) error { + r._pictureCategoryId = _pictureCategoryId + r.Set("picture_category_id", _pictureCategoryId) + return nil +} + +// PictureCategoryId Getter +func (r AlibabaWdkPictureUploadAPIRequest) GetPictureCategoryId() int64 { + return r._pictureCategoryId +} +// Img Setter +// 图片二进制文件流,不能为空,允许png、jpg、gif图片格式,3M以内 +func (r *AlibabaWdkPictureUploadAPIRequest) SetImg(_img *model.File) error { + r._img = _img + r.Set("img", _img) + return nil +} + +// Img Getter +func (r AlibabaWdkPictureUploadAPIRequest) GetImg() *model.File { + return r._img +} +// ImgInputTitle Setter +// 包括后缀名的图片标题,不能为空,如Bule.jpg,有些卖家希望图片上传后取图片文件的默认名 +func (r *AlibabaWdkPictureUploadAPIRequest) SetImgInputTitle(_imgInputTitle string) error { + r._imgInputTitle = _imgInputTitle + r.Set("img_input_title", _imgInputTitle) + return nil +} + +// ImgInputTitle Getter +func (r AlibabaWdkPictureUploadAPIRequest) GetImgInputTitle() string { + return r._imgInputTitle +} +// Title Setter +// 图片标题,如果为空,传的图片标题就取去掉后缀名的image_input_title,超过50字符长度会截取50字符,重名会在标题末尾加"(1)";标题末尾已经有"(数字)"了,则数字加1 +func (r *AlibabaWdkPictureUploadAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r AlibabaWdkPictureUploadAPIRequest) GetTitle() string { + return r._title +} diff --git a/model/wdkitem/AlibabaWdkPictureUploadAPIResponse.go b/model/wdkitem/AlibabaWdkPictureUploadAPIResponse.go new file mode 100644 index 0000000000..a08a05b5d0 --- /dev/null +++ b/model/wdkitem/AlibabaWdkPictureUploadAPIResponse.go @@ -0,0 +1,27 @@ +package wdkitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +图片上传接口 API返回值 +alibaba.wdk.picture.upload + +上传图片 +*/ +type AlibabaWdkPictureUploadAPIResponse struct { + model.CommonResponse + AlibabaWdkPictureUploadAPIResponseModel +} + +// 图片上传接口 成功返回结果 +type AlibabaWdkPictureUploadAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_picture_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // apiresult + Result *AlibabaWdkPictureUploadApiResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdkitem/AlibabaWdkPictureUploadResponse.go b/model/wdkitem/AlibabaWdkPictureUploadResponse.go deleted file mode 100644 index 32bc014276..0000000000 --- a/model/wdkitem/AlibabaWdkPictureUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdkitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -图片上传接口 API返回值 -alibaba.wdk.picture.upload - -上传图片 -*/ -type AlibabaWdkPictureUploadAPIResponse struct { - model.CommonResponse - AlibabaWdkPictureUploadResponse -} - -// 图片上传接口 成功返回结果 -type AlibabaWdkPictureUploadResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_picture_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // apiresult - Result *AlibabaWdkPictureUploadApiResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wdklogistics/AlibabaWdkLogisticsPusPickupCararrivedAPIRequest.go b/model/wdklogistics/AlibabaWdkLogisticsPusPickupCararrivedAPIRequest.go new file mode 100644 index 0000000000..27f38f59d6 --- /dev/null +++ b/model/wdklogistics/AlibabaWdkLogisticsPusPickupCararrivedAPIRequest.go @@ -0,0 +1,66 @@ +package wdklogistics + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +自提业务-车辆到达上报车牌号 API请求 +alibaba.wdk.logistics.pus.pickup.cararrived + +自提业务-汽车自提,车辆到达上报车牌号 +*/ +type AlibabaWdkLogisticsPusPickupCararrivedAPIRequest struct { + model.Params + // 自提点 + _stationCode string + // 车牌号 + _carNum string +} + +// 初始化AlibabaWdkLogisticsPusPickupCararrivedAPIRequest对象 +func NewAlibabaWdkLogisticsPusPickupCararrivedRequest() *AlibabaWdkLogisticsPusPickupCararrivedAPIRequest{ + return &AlibabaWdkLogisticsPusPickupCararrivedAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWdkLogisticsPusPickupCararrivedAPIRequest) GetApiMethodName() string { + return "alibaba.wdk.logistics.pus.pickup.cararrived" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWdkLogisticsPusPickupCararrivedAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StationCode Setter +// 自提点 +func (r *AlibabaWdkLogisticsPusPickupCararrivedAPIRequest) SetStationCode(_stationCode string) error { + r._stationCode = _stationCode + r.Set("station_code", _stationCode) + return nil +} + +// StationCode Getter +func (r AlibabaWdkLogisticsPusPickupCararrivedAPIRequest) GetStationCode() string { + return r._stationCode +} +// CarNum Setter +// 车牌号 +func (r *AlibabaWdkLogisticsPusPickupCararrivedAPIRequest) SetCarNum(_carNum string) error { + r._carNum = _carNum + r.Set("car_num", _carNum) + return nil +} + +// CarNum Getter +func (r AlibabaWdkLogisticsPusPickupCararrivedAPIRequest) GetCarNum() string { + return r._carNum +} diff --git a/model/wdklogistics/AlibabaWdkLogisticsPusPickupCararrivedAPIResponse.go b/model/wdklogistics/AlibabaWdkLogisticsPusPickupCararrivedAPIResponse.go new file mode 100644 index 0000000000..b4ae5155b7 --- /dev/null +++ b/model/wdklogistics/AlibabaWdkLogisticsPusPickupCararrivedAPIResponse.go @@ -0,0 +1,27 @@ +package wdklogistics + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +自提业务-车辆到达上报车牌号 API返回值 +alibaba.wdk.logistics.pus.pickup.cararrived + +自提业务-汽车自提,车辆到达上报车牌号 +*/ +type AlibabaWdkLogisticsPusPickupCararrivedAPIResponse struct { + model.CommonResponse + AlibabaWdkLogisticsPusPickupCararrivedAPIResponseModel +} + +// 自提业务-车辆到达上报车牌号 成功返回结果 +type AlibabaWdkLogisticsPusPickupCararrivedAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_wdk_logistics_pus_pickup_cararrived_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result根结点 + Result *LogisticsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wdklogistics/AlibabaWdkLogisticsPusPickupCararrivedResponse.go b/model/wdklogistics/AlibabaWdkLogisticsPusPickupCararrivedResponse.go deleted file mode 100644 index de7f42091c..0000000000 --- a/model/wdklogistics/AlibabaWdkLogisticsPusPickupCararrivedResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wdklogistics - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -自提业务-车辆到达上报车牌号 API返回值 -alibaba.wdk.logistics.pus.pickup.cararrived - -自提业务-汽车自提,车辆到达上报车牌号 -*/ -type AlibabaWdkLogisticsPusPickupCararrivedAPIResponse struct { - model.CommonResponse - AlibabaWdkLogisticsPusPickupCararrivedResponse -} - -// 自提业务-车辆到达上报车牌号 成功返回结果 -type AlibabaWdkLogisticsPusPickupCararrivedResponse struct { - XMLName xml.Name `xml:"alibaba_wdk_logistics_pus_pickup_cararrived_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result根结点 - Result *LogisticsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wenyuvideo/YoukuWenyuvideoPersionGetAPIRequest.go b/model/wenyuvideo/YoukuWenyuvideoPersionGetAPIRequest.go new file mode 100644 index 0000000000..60e68ae3f5 --- /dev/null +++ b/model/wenyuvideo/YoukuWenyuvideoPersionGetAPIRequest.go @@ -0,0 +1,66 @@ +package wenyuvideo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据优酷人物ID获取人物详情页,包含相关影视和相关人物 API请求 +youku.wenyuvideo.persion.get + +根据优酷人物ID获取人物详情页,包含相关影视和相关人物 +*/ +type YoukuWenyuvideoPersionGetAPIRequest struct { + model.Params + // 设备信息 + _systemInfo string + // 人物ID + _personId int64 +} + +// 初始化YoukuWenyuvideoPersionGetAPIRequest对象 +func NewYoukuWenyuvideoPersionGetRequest() *YoukuWenyuvideoPersionGetAPIRequest{ + return &YoukuWenyuvideoPersionGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuWenyuvideoPersionGetAPIRequest) GetApiMethodName() string { + return "youku.wenyuvideo.persion.get" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuWenyuvideoPersionGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SystemInfo Setter +// 设备信息 +func (r *YoukuWenyuvideoPersionGetAPIRequest) SetSystemInfo(_systemInfo string) error { + r._systemInfo = _systemInfo + r.Set("system_info", _systemInfo) + return nil +} + +// SystemInfo Getter +func (r YoukuWenyuvideoPersionGetAPIRequest) GetSystemInfo() string { + return r._systemInfo +} +// PersonId Setter +// 人物ID +func (r *YoukuWenyuvideoPersionGetAPIRequest) SetPersonId(_personId int64) error { + r._personId = _personId + r.Set("person_id", _personId) + return nil +} + +// PersonId Getter +func (r YoukuWenyuvideoPersionGetAPIRequest) GetPersonId() int64 { + return r._personId +} diff --git a/model/wenyuvideo/YoukuWenyuvideoPersionGetAPIResponse.go b/model/wenyuvideo/YoukuWenyuvideoPersionGetAPIResponse.go new file mode 100644 index 0000000000..24eac4c9cc --- /dev/null +++ b/model/wenyuvideo/YoukuWenyuvideoPersionGetAPIResponse.go @@ -0,0 +1,27 @@ +package wenyuvideo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据优酷人物ID获取人物详情页,包含相关影视和相关人物 API返回值 +youku.wenyuvideo.persion.get + +根据优酷人物ID获取人物详情页,包含相关影视和相关人物 +*/ +type YoukuWenyuvideoPersionGetAPIResponse struct { + model.CommonResponse + YoukuWenyuvideoPersionGetAPIResponseModel +} + +// 根据优酷人物ID获取人物详情页,包含相关影视和相关人物 成功返回结果 +type YoukuWenyuvideoPersionGetAPIResponseModel struct { + XMLName xml.Name `xml:"youku_wenyuvideo_persion_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *YoukuWenyuvideoPersionGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wenyuvideo/YoukuWenyuvideoPersionGetResponse.go b/model/wenyuvideo/YoukuWenyuvideoPersionGetResponse.go deleted file mode 100644 index 57ec9821df..0000000000 --- a/model/wenyuvideo/YoukuWenyuvideoPersionGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wenyuvideo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据优酷人物ID获取人物详情页,包含相关影视和相关人物 API返回值 -youku.wenyuvideo.persion.get - -根据优酷人物ID获取人物详情页,包含相关影视和相关人物 -*/ -type YoukuWenyuvideoPersionGetAPIResponse struct { - model.CommonResponse - YoukuWenyuvideoPersionGetResponse -} - -// 根据优酷人物ID获取人物详情页,包含相关影视和相关人物 成功返回结果 -type YoukuWenyuvideoPersionGetResponse struct { - XMLName xml.Name `xml:"youku_wenyuvideo_persion_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *YoukuWenyuvideoPersionGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wenyuvideo/YoukuWenyuvideoPersionSearchAPIRequest.go b/model/wenyuvideo/YoukuWenyuvideoPersionSearchAPIRequest.go new file mode 100644 index 0000000000..7b6b26e215 --- /dev/null +++ b/model/wenyuvideo/YoukuWenyuvideoPersionSearchAPIRequest.go @@ -0,0 +1,52 @@ +package wenyuvideo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据人物名称查询人物列表 API请求 +youku.wenyuvideo.persion.search + +根据人物名称查询人物列表 +*/ +type YoukuWenyuvideoPersionSearchAPIRequest struct { + model.Params + // 人物名字,搜索规则是完全匹配,即只返回同名人物列表 + _personName string +} + +// 初始化YoukuWenyuvideoPersionSearchAPIRequest对象 +func NewYoukuWenyuvideoPersionSearchRequest() *YoukuWenyuvideoPersionSearchAPIRequest{ + return &YoukuWenyuvideoPersionSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuWenyuvideoPersionSearchAPIRequest) GetApiMethodName() string { + return "youku.wenyuvideo.persion.search" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuWenyuvideoPersionSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PersonName Setter +// 人物名字,搜索规则是完全匹配,即只返回同名人物列表 +func (r *YoukuWenyuvideoPersionSearchAPIRequest) SetPersonName(_personName string) error { + r._personName = _personName + r.Set("person_name", _personName) + return nil +} + +// PersonName Getter +func (r YoukuWenyuvideoPersionSearchAPIRequest) GetPersonName() string { + return r._personName +} diff --git a/model/wenyuvideo/YoukuWenyuvideoPersionSearchAPIResponse.go b/model/wenyuvideo/YoukuWenyuvideoPersionSearchAPIResponse.go new file mode 100644 index 0000000000..71b56c1bdc --- /dev/null +++ b/model/wenyuvideo/YoukuWenyuvideoPersionSearchAPIResponse.go @@ -0,0 +1,27 @@ +package wenyuvideo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据人物名称查询人物列表 API返回值 +youku.wenyuvideo.persion.search + +根据人物名称查询人物列表 +*/ +type YoukuWenyuvideoPersionSearchAPIResponse struct { + model.CommonResponse + YoukuWenyuvideoPersionSearchAPIResponseModel +} + +// 根据人物名称查询人物列表 成功返回结果 +type YoukuWenyuvideoPersionSearchAPIResponseModel struct { + XMLName xml.Name `xml:"youku_wenyuvideo_persion_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *YoukuWenyuvideoPersionSearchResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wenyuvideo/YoukuWenyuvideoPersionSearchResponse.go b/model/wenyuvideo/YoukuWenyuvideoPersionSearchResponse.go deleted file mode 100644 index a8bcf7f4fd..0000000000 --- a/model/wenyuvideo/YoukuWenyuvideoPersionSearchResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wenyuvideo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据人物名称查询人物列表 API返回值 -youku.wenyuvideo.persion.search - -根据人物名称查询人物列表 -*/ -type YoukuWenyuvideoPersionSearchAPIResponse struct { - model.CommonResponse - YoukuWenyuvideoPersionSearchResponse -} - -// 根据人物名称查询人物列表 成功返回结果 -type YoukuWenyuvideoPersionSearchResponse struct { - XMLName xml.Name `xml:"youku_wenyuvideo_persion_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *YoukuWenyuvideoPersionSearchResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wenyuvideo/YoukuWenyuvideoSeetaGetAPIRequest.go b/model/wenyuvideo/YoukuWenyuvideoSeetaGetAPIRequest.go new file mode 100644 index 0000000000..d82b1c3a51 --- /dev/null +++ b/model/wenyuvideo/YoukuWenyuvideoSeetaGetAPIRequest.go @@ -0,0 +1,52 @@ +package wenyuvideo + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +只看TA API请求 +youku.wenyuvideo.seeta.get + +只看Ta对外输出 +*/ +type YoukuWenyuvideoSeetaGetAPIRequest struct { + model.Params + // 视频字符串形式id + _videoStrId string +} + +// 初始化YoukuWenyuvideoSeetaGetAPIRequest对象 +func NewYoukuWenyuvideoSeetaGetRequest() *YoukuWenyuvideoSeetaGetAPIRequest{ + return &YoukuWenyuvideoSeetaGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuWenyuvideoSeetaGetAPIRequest) GetApiMethodName() string { + return "youku.wenyuvideo.seeta.get" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuWenyuvideoSeetaGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// VideoStrId Setter +// 视频字符串形式id +func (r *YoukuWenyuvideoSeetaGetAPIRequest) SetVideoStrId(_videoStrId string) error { + r._videoStrId = _videoStrId + r.Set("video_str_id", _videoStrId) + return nil +} + +// VideoStrId Getter +func (r YoukuWenyuvideoSeetaGetAPIRequest) GetVideoStrId() string { + return r._videoStrId +} diff --git a/model/wenyuvideo/YoukuWenyuvideoSeetaGetAPIResponse.go b/model/wenyuvideo/YoukuWenyuvideoSeetaGetAPIResponse.go new file mode 100644 index 0000000000..0f08eca1aa --- /dev/null +++ b/model/wenyuvideo/YoukuWenyuvideoSeetaGetAPIResponse.go @@ -0,0 +1,27 @@ +package wenyuvideo + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +只看TA API返回值 +youku.wenyuvideo.seeta.get + +只看Ta对外输出 +*/ +type YoukuWenyuvideoSeetaGetAPIResponse struct { + model.CommonResponse + YoukuWenyuvideoSeetaGetAPIResponseModel +} + +// 只看TA 成功返回结果 +type YoukuWenyuvideoSeetaGetAPIResponseModel struct { + XMLName xml.Name `xml:"youku_wenyuvideo_seeta_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *YoukuWenyuvideoSeetaGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wenyuvideo/YoukuWenyuvideoSeetaGetResponse.go b/model/wenyuvideo/YoukuWenyuvideoSeetaGetResponse.go deleted file mode 100644 index df3545765e..0000000000 --- a/model/wenyuvideo/YoukuWenyuvideoSeetaGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wenyuvideo - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -只看TA API返回值 -youku.wenyuvideo.seeta.get - -只看Ta对外输出 -*/ -type YoukuWenyuvideoSeetaGetAPIResponse struct { - model.CommonResponse - YoukuWenyuvideoSeetaGetResponse -} - -// 只看TA 成功返回结果 -type YoukuWenyuvideoSeetaGetResponse struct { - XMLName xml.Name `xml:"youku_wenyuvideo_seeta_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *YoukuWenyuvideoSeetaGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/westcrm/AlibabaIbizapiBrandSubscribeAPIRequest.go b/model/westcrm/AlibabaIbizapiBrandSubscribeAPIRequest.go new file mode 100644 index 0000000000..799dafea6e --- /dev/null +++ b/model/westcrm/AlibabaIbizapiBrandSubscribeAPIRequest.go @@ -0,0 +1,38 @@ +package westcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +关注品牌号 API请求 +alibaba.ibizapi.brand.subscribe + +关注品牌号服务 +*/ +type AlibabaIbizapiBrandSubscribeAPIRequest struct { + model.Params +} + +// 初始化AlibabaIbizapiBrandSubscribeAPIRequest对象 +func NewAlibabaIbizapiBrandSubscribeRequest() *AlibabaIbizapiBrandSubscribeAPIRequest{ + return &AlibabaIbizapiBrandSubscribeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaIbizapiBrandSubscribeAPIRequest) GetApiMethodName() string { + return "alibaba.ibizapi.brand.subscribe" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaIbizapiBrandSubscribeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/westcrm/AlibabaIbizapiBrandSubscribeAPIResponse.go b/model/westcrm/AlibabaIbizapiBrandSubscribeAPIResponse.go new file mode 100644 index 0000000000..1bd68ecb16 --- /dev/null +++ b/model/westcrm/AlibabaIbizapiBrandSubscribeAPIResponse.go @@ -0,0 +1,27 @@ +package westcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +关注品牌号 API返回值 +alibaba.ibizapi.brand.subscribe + +关注品牌号服务 +*/ +type AlibabaIbizapiBrandSubscribeAPIResponse struct { + model.CommonResponse + AlibabaIbizapiBrandSubscribeAPIResponseModel +} + +// 关注品牌号 成功返回结果 +type AlibabaIbizapiBrandSubscribeAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_ibizapi_brand_subscribe_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否关注 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/westcrm/AlibabaIbizapiBrandSubscribeResponse.go b/model/westcrm/AlibabaIbizapiBrandSubscribeResponse.go deleted file mode 100644 index 7be5c309ac..0000000000 --- a/model/westcrm/AlibabaIbizapiBrandSubscribeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package westcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -关注品牌号 API返回值 -alibaba.ibizapi.brand.subscribe - -关注品牌号服务 -*/ -type AlibabaIbizapiBrandSubscribeAPIResponse struct { - model.CommonResponse - AlibabaIbizapiBrandSubscribeResponse -} - -// 关注品牌号 成功返回结果 -type AlibabaIbizapiBrandSubscribeResponse struct { - XMLName xml.Name `xml:"alibaba_ibizapi_brand_subscribe_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否关注 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/westcrm/AlibabaWestcrmAccountIdGetAPIRequest.go b/model/westcrm/AlibabaWestcrmAccountIdGetAPIRequest.go new file mode 100644 index 0000000000..7bdddcf3a1 --- /dev/null +++ b/model/westcrm/AlibabaWestcrmAccountIdGetAPIRequest.go @@ -0,0 +1,52 @@ +package westcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据支付宝id查询IB的id API请求 +alibaba.westcrm.account.id.get + +根据支付宝id查询IB的id +*/ +type AlibabaWestcrmAccountIdGetAPIRequest struct { + model.Params + // 支付宝id + _alipayId string +} + +// 初始化AlibabaWestcrmAccountIdGetAPIRequest对象 +func NewAlibabaWestcrmAccountIdGetRequest() *AlibabaWestcrmAccountIdGetAPIRequest{ + return &AlibabaWestcrmAccountIdGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWestcrmAccountIdGetAPIRequest) GetApiMethodName() string { + return "alibaba.westcrm.account.id.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWestcrmAccountIdGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AlipayId Setter +// 支付宝id +func (r *AlibabaWestcrmAccountIdGetAPIRequest) SetAlipayId(_alipayId string) error { + r._alipayId = _alipayId + r.Set("alipay_id", _alipayId) + return nil +} + +// AlipayId Getter +func (r AlibabaWestcrmAccountIdGetAPIRequest) GetAlipayId() string { + return r._alipayId +} diff --git a/model/westcrm/AlibabaWestcrmAccountIdGetAPIResponse.go b/model/westcrm/AlibabaWestcrmAccountIdGetAPIResponse.go new file mode 100644 index 0000000000..67cfd02bf3 --- /dev/null +++ b/model/westcrm/AlibabaWestcrmAccountIdGetAPIResponse.go @@ -0,0 +1,27 @@ +package westcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据支付宝id查询IB的id API返回值 +alibaba.westcrm.account.id.get + +根据支付宝id查询IB的id +*/ +type AlibabaWestcrmAccountIdGetAPIResponse struct { + model.CommonResponse + AlibabaWestcrmAccountIdGetAPIResponseModel +} + +// 根据支付宝id查询IB的id 成功返回结果 +type AlibabaWestcrmAccountIdGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_westcrm_account_id_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/westcrm/AlibabaWestcrmAccountIdGetResponse.go b/model/westcrm/AlibabaWestcrmAccountIdGetResponse.go deleted file mode 100644 index 97e1b8620d..0000000000 --- a/model/westcrm/AlibabaWestcrmAccountIdGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package westcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据支付宝id查询IB的id API返回值 -alibaba.westcrm.account.id.get - -根据支付宝id查询IB的id -*/ -type AlibabaWestcrmAccountIdGetAPIResponse struct { - model.CommonResponse - AlibabaWestcrmAccountIdGetResponse -} - -// 根据支付宝id查询IB的id 成功返回结果 -type AlibabaWestcrmAccountIdGetResponse struct { - XMLName xml.Name `xml:"alibaba_westcrm_account_id_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/westcrm/AlibabaWestcrmActivityInfoGetAPIRequest.go b/model/westcrm/AlibabaWestcrmActivityInfoGetAPIRequest.go new file mode 100644 index 0000000000..47fe90aaac --- /dev/null +++ b/model/westcrm/AlibabaWestcrmActivityInfoGetAPIRequest.go @@ -0,0 +1,66 @@ +package westcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取活动详情 API请求 +alibaba.westcrm.activity.info.get + +根据id查询活动详情 +*/ +type AlibabaWestcrmActivityInfoGetAPIRequest struct { + model.Params + // 园区id + _campusId int64 + // 活动id + _activityId int64 +} + +// 初始化AlibabaWestcrmActivityInfoGetAPIRequest对象 +func NewAlibabaWestcrmActivityInfoGetRequest() *AlibabaWestcrmActivityInfoGetAPIRequest{ + return &AlibabaWestcrmActivityInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWestcrmActivityInfoGetAPIRequest) GetApiMethodName() string { + return "alibaba.westcrm.activity.info.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWestcrmActivityInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampusId Setter +// 园区id +func (r *AlibabaWestcrmActivityInfoGetAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaWestcrmActivityInfoGetAPIRequest) GetCampusId() int64 { + return r._campusId +} +// ActivityId Setter +// 活动id +func (r *AlibabaWestcrmActivityInfoGetAPIRequest) SetActivityId(_activityId int64) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r AlibabaWestcrmActivityInfoGetAPIRequest) GetActivityId() int64 { + return r._activityId +} diff --git a/model/westcrm/AlibabaWestcrmActivityInfoGetAPIResponse.go b/model/westcrm/AlibabaWestcrmActivityInfoGetAPIResponse.go new file mode 100644 index 0000000000..ddb410e372 --- /dev/null +++ b/model/westcrm/AlibabaWestcrmActivityInfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package westcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取活动详情 API返回值 +alibaba.westcrm.activity.info.get + +根据id查询活动详情 +*/ +type AlibabaWestcrmActivityInfoGetAPIResponse struct { + model.CommonResponse + AlibabaWestcrmActivityInfoGetAPIResponseModel +} + +// 获取活动详情 成功返回结果 +type AlibabaWestcrmActivityInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_westcrm_activity_info_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/westcrm/AlibabaWestcrmActivityInfoGetResponse.go b/model/westcrm/AlibabaWestcrmActivityInfoGetResponse.go deleted file mode 100644 index ba101e39aa..0000000000 --- a/model/westcrm/AlibabaWestcrmActivityInfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package westcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取活动详情 API返回值 -alibaba.westcrm.activity.info.get - -根据id查询活动详情 -*/ -type AlibabaWestcrmActivityInfoGetAPIResponse struct { - model.CommonResponse - AlibabaWestcrmActivityInfoGetResponse -} - -// 获取活动详情 成功返回结果 -type AlibabaWestcrmActivityInfoGetResponse struct { - XMLName xml.Name `xml:"alibaba_westcrm_activity_info_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/westcrm/AlibabaWestcrmActivityListGetAPIRequest.go b/model/westcrm/AlibabaWestcrmActivityListGetAPIRequest.go new file mode 100644 index 0000000000..f74bfe56c2 --- /dev/null +++ b/model/westcrm/AlibabaWestcrmActivityListGetAPIRequest.go @@ -0,0 +1,136 @@ +package westcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取活动列表接口 API请求 +alibaba.westcrm.activity.list.get + +获取活动列表提供给友盟&互动屏 +*/ +type AlibabaWestcrmActivityListGetAPIRequest struct { + model.Params + // 活动状态 + _status int64 + // 园区id + _campusId int64 + // 排序方向 + _sord string + // 页,默认第一页 + _page int64 + // 排序字段 + _sidx string + // 分页偏移量 eq . limit offset ,rows + _offset int64 + // 页大小,默认每页查询10条数据 + _rows int64 +} + +// 初始化AlibabaWestcrmActivityListGetAPIRequest对象 +func NewAlibabaWestcrmActivityListGetRequest() *AlibabaWestcrmActivityListGetAPIRequest{ + return &AlibabaWestcrmActivityListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWestcrmActivityListGetAPIRequest) GetApiMethodName() string { + return "alibaba.westcrm.activity.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWestcrmActivityListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Status Setter +// 活动状态 +func (r *AlibabaWestcrmActivityListGetAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaWestcrmActivityListGetAPIRequest) GetStatus() int64 { + return r._status +} +// CampusId Setter +// 园区id +func (r *AlibabaWestcrmActivityListGetAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaWestcrmActivityListGetAPIRequest) GetCampusId() int64 { + return r._campusId +} +// Sord Setter +// 排序方向 +func (r *AlibabaWestcrmActivityListGetAPIRequest) SetSord(_sord string) error { + r._sord = _sord + r.Set("sord", _sord) + return nil +} + +// Sord Getter +func (r AlibabaWestcrmActivityListGetAPIRequest) GetSord() string { + return r._sord +} +// Page Setter +// 页,默认第一页 +func (r *AlibabaWestcrmActivityListGetAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaWestcrmActivityListGetAPIRequest) GetPage() int64 { + return r._page +} +// Sidx Setter +// 排序字段 +func (r *AlibabaWestcrmActivityListGetAPIRequest) SetSidx(_sidx string) error { + r._sidx = _sidx + r.Set("sidx", _sidx) + return nil +} + +// Sidx Getter +func (r AlibabaWestcrmActivityListGetAPIRequest) GetSidx() string { + return r._sidx +} +// Offset Setter +// 分页偏移量 eq . limit offset ,rows +func (r *AlibabaWestcrmActivityListGetAPIRequest) SetOffset(_offset int64) error { + r._offset = _offset + r.Set("offset", _offset) + return nil +} + +// Offset Getter +func (r AlibabaWestcrmActivityListGetAPIRequest) GetOffset() int64 { + return r._offset +} +// Rows Setter +// 页大小,默认每页查询10条数据 +func (r *AlibabaWestcrmActivityListGetAPIRequest) SetRows(_rows int64) error { + r._rows = _rows + r.Set("rows", _rows) + return nil +} + +// Rows Getter +func (r AlibabaWestcrmActivityListGetAPIRequest) GetRows() int64 { + return r._rows +} diff --git a/model/westcrm/AlibabaWestcrmActivityListGetAPIResponse.go b/model/westcrm/AlibabaWestcrmActivityListGetAPIResponse.go new file mode 100644 index 0000000000..527e6138be --- /dev/null +++ b/model/westcrm/AlibabaWestcrmActivityListGetAPIResponse.go @@ -0,0 +1,27 @@ +package westcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取活动列表接口 API返回值 +alibaba.westcrm.activity.list.get + +获取活动列表提供给友盟&互动屏 +*/ +type AlibabaWestcrmActivityListGetAPIResponse struct { + model.CommonResponse + AlibabaWestcrmActivityListGetAPIResponseModel +} + +// 获取活动列表接口 成功返回结果 +type AlibabaWestcrmActivityListGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_westcrm_activity_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/westcrm/AlibabaWestcrmActivityListGetResponse.go b/model/westcrm/AlibabaWestcrmActivityListGetResponse.go deleted file mode 100644 index e9952b47a7..0000000000 --- a/model/westcrm/AlibabaWestcrmActivityListGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package westcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取活动列表接口 API返回值 -alibaba.westcrm.activity.list.get - -获取活动列表提供给友盟&互动屏 -*/ -type AlibabaWestcrmActivityListGetAPIResponse struct { - model.CommonResponse - AlibabaWestcrmActivityListGetResponse -} - -// 获取活动列表接口 成功返回结果 -type AlibabaWestcrmActivityListGetResponse struct { - XMLName xml.Name `xml:"alibaba_westcrm_activity_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/westcrm/AlibabaWestcrmCustomerInfoGetAPIRequest.go b/model/westcrm/AlibabaWestcrmCustomerInfoGetAPIRequest.go new file mode 100644 index 0000000000..f517e8be7d --- /dev/null +++ b/model/westcrm/AlibabaWestcrmCustomerInfoGetAPIRequest.go @@ -0,0 +1,80 @@ +package westcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +会员信息查询接口 API请求 +alibaba.westcrm.customer.info.get + +会员信息查询接口 +*/ +type AlibabaWestcrmCustomerInfoGetAPIRequest struct { + model.Params + // 园区id + _campusId int64 + // 会员id + _ibUserId int64 + // 支付宝id + _alipayId string +} + +// 初始化AlibabaWestcrmCustomerInfoGetAPIRequest对象 +func NewAlibabaWestcrmCustomerInfoGetRequest() *AlibabaWestcrmCustomerInfoGetAPIRequest{ + return &AlibabaWestcrmCustomerInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWestcrmCustomerInfoGetAPIRequest) GetApiMethodName() string { + return "alibaba.westcrm.customer.info.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWestcrmCustomerInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampusId Setter +// 园区id +func (r *AlibabaWestcrmCustomerInfoGetAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaWestcrmCustomerInfoGetAPIRequest) GetCampusId() int64 { + return r._campusId +} +// IbUserId Setter +// 会员id +func (r *AlibabaWestcrmCustomerInfoGetAPIRequest) SetIbUserId(_ibUserId int64) error { + r._ibUserId = _ibUserId + r.Set("ib_user_id", _ibUserId) + return nil +} + +// IbUserId Getter +func (r AlibabaWestcrmCustomerInfoGetAPIRequest) GetIbUserId() int64 { + return r._ibUserId +} +// AlipayId Setter +// 支付宝id +func (r *AlibabaWestcrmCustomerInfoGetAPIRequest) SetAlipayId(_alipayId string) error { + r._alipayId = _alipayId + r.Set("alipay_id", _alipayId) + return nil +} + +// AlipayId Getter +func (r AlibabaWestcrmCustomerInfoGetAPIRequest) GetAlipayId() string { + return r._alipayId +} diff --git a/model/westcrm/AlibabaWestcrmCustomerInfoGetAPIResponse.go b/model/westcrm/AlibabaWestcrmCustomerInfoGetAPIResponse.go new file mode 100644 index 0000000000..3ca0677b21 --- /dev/null +++ b/model/westcrm/AlibabaWestcrmCustomerInfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package westcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +会员信息查询接口 API返回值 +alibaba.westcrm.customer.info.get + +会员信息查询接口 +*/ +type AlibabaWestcrmCustomerInfoGetAPIResponse struct { + model.CommonResponse + AlibabaWestcrmCustomerInfoGetAPIResponseModel +} + +// 会员信息查询接口 成功返回结果 +type AlibabaWestcrmCustomerInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_westcrm_customer_info_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/westcrm/AlibabaWestcrmCustomerInfoGetResponse.go b/model/westcrm/AlibabaWestcrmCustomerInfoGetResponse.go deleted file mode 100644 index c7ba2686c6..0000000000 --- a/model/westcrm/AlibabaWestcrmCustomerInfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package westcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -会员信息查询接口 API返回值 -alibaba.westcrm.customer.info.get - -会员信息查询接口 -*/ -type AlibabaWestcrmCustomerInfoGetAPIResponse struct { - model.CommonResponse - AlibabaWestcrmCustomerInfoGetResponse -} - -// 会员信息查询接口 成功返回结果 -type AlibabaWestcrmCustomerInfoGetResponse struct { - XMLName xml.Name `xml:"alibaba_westcrm_customer_info_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/westcrm/AlibabaWestcrmGradeGetAPIRequest.go b/model/westcrm/AlibabaWestcrmGradeGetAPIRequest.go new file mode 100644 index 0000000000..978581ed5d --- /dev/null +++ b/model/westcrm/AlibabaWestcrmGradeGetAPIRequest.go @@ -0,0 +1,52 @@ +package westcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取等级列表 API请求 +alibaba.westcrm.grade.get + +获取会员卡等级列表 +*/ +type AlibabaWestcrmGradeGetAPIRequest struct { + model.Params + // 园区id + _campusId int64 +} + +// 初始化AlibabaWestcrmGradeGetAPIRequest对象 +func NewAlibabaWestcrmGradeGetRequest() *AlibabaWestcrmGradeGetAPIRequest{ + return &AlibabaWestcrmGradeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWestcrmGradeGetAPIRequest) GetApiMethodName() string { + return "alibaba.westcrm.grade.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWestcrmGradeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampusId Setter +// 园区id +func (r *AlibabaWestcrmGradeGetAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaWestcrmGradeGetAPIRequest) GetCampusId() int64 { + return r._campusId +} diff --git a/model/westcrm/AlibabaWestcrmGradeGetAPIResponse.go b/model/westcrm/AlibabaWestcrmGradeGetAPIResponse.go new file mode 100644 index 0000000000..1ebfb7500d --- /dev/null +++ b/model/westcrm/AlibabaWestcrmGradeGetAPIResponse.go @@ -0,0 +1,27 @@ +package westcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取等级列表 API返回值 +alibaba.westcrm.grade.get + +获取会员卡等级列表 +*/ +type AlibabaWestcrmGradeGetAPIResponse struct { + model.CommonResponse + AlibabaWestcrmGradeGetAPIResponseModel +} + +// 获取等级列表 成功返回结果 +type AlibabaWestcrmGradeGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_westcrm_grade_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/westcrm/AlibabaWestcrmGradeGetResponse.go b/model/westcrm/AlibabaWestcrmGradeGetResponse.go deleted file mode 100644 index a93d595c43..0000000000 --- a/model/westcrm/AlibabaWestcrmGradeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package westcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取等级列表 API返回值 -alibaba.westcrm.grade.get - -获取会员卡等级列表 -*/ -type AlibabaWestcrmGradeGetAPIResponse struct { - model.CommonResponse - AlibabaWestcrmGradeGetResponse -} - -// 获取等级列表 成功返回结果 -type AlibabaWestcrmGradeGetResponse struct { - XMLName xml.Name `xml:"alibaba_westcrm_grade_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/westcrm/AlibabaWestcrmIsMemberGetAPIRequest.go b/model/westcrm/AlibabaWestcrmIsMemberGetAPIRequest.go new file mode 100644 index 0000000000..3e356e23f6 --- /dev/null +++ b/model/westcrm/AlibabaWestcrmIsMemberGetAPIRequest.go @@ -0,0 +1,38 @@ +package westcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询是否是亲橙里会员 API请求 +alibaba.westcrm.is.member.get + +根据淘宝Id查询是否是亲橙里会员 +*/ +type AlibabaWestcrmIsMemberGetAPIRequest struct { + model.Params +} + +// 初始化AlibabaWestcrmIsMemberGetAPIRequest对象 +func NewAlibabaWestcrmIsMemberGetRequest() *AlibabaWestcrmIsMemberGetAPIRequest{ + return &AlibabaWestcrmIsMemberGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWestcrmIsMemberGetAPIRequest) GetApiMethodName() string { + return "alibaba.westcrm.is.member.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWestcrmIsMemberGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/westcrm/AlibabaWestcrmIsMemberGetAPIResponse.go b/model/westcrm/AlibabaWestcrmIsMemberGetAPIResponse.go new file mode 100644 index 0000000000..cd4253fd29 --- /dev/null +++ b/model/westcrm/AlibabaWestcrmIsMemberGetAPIResponse.go @@ -0,0 +1,27 @@ +package westcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询是否是亲橙里会员 API返回值 +alibaba.westcrm.is.member.get + +根据淘宝Id查询是否是亲橙里会员 +*/ +type AlibabaWestcrmIsMemberGetAPIResponse struct { + model.CommonResponse + AlibabaWestcrmIsMemberGetAPIResponseModel +} + +// 查询是否是亲橙里会员 成功返回结果 +type AlibabaWestcrmIsMemberGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_westcrm_is_member_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // true:是亲橙里会员,false:不是亲橙里会员 + IsHaveMember bool `json:"is_have_member,omitempty" xml:"is_have_member,omitempty"` +} diff --git a/model/westcrm/AlibabaWestcrmIsMemberGetResponse.go b/model/westcrm/AlibabaWestcrmIsMemberGetResponse.go deleted file mode 100644 index f4b11e667f..0000000000 --- a/model/westcrm/AlibabaWestcrmIsMemberGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package westcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询是否是亲橙里会员 API返回值 -alibaba.westcrm.is.member.get - -根据淘宝Id查询是否是亲橙里会员 -*/ -type AlibabaWestcrmIsMemberGetAPIResponse struct { - model.CommonResponse - AlibabaWestcrmIsMemberGetResponse -} - -// 查询是否是亲橙里会员 成功返回结果 -type AlibabaWestcrmIsMemberGetResponse struct { - XMLName xml.Name `xml:"alibaba_westcrm_is_member_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // true:是亲橙里会员,false:不是亲橙里会员 - IsHaveMember bool `json:"is_have_member,omitempty" xml:"is_have_member,omitempty"` -} diff --git a/model/westcrm/AlibabaWestcrmJobStatusUpdateAPIRequest.go b/model/westcrm/AlibabaWestcrmJobStatusUpdateAPIRequest.go new file mode 100644 index 0000000000..d0960a30fa --- /dev/null +++ b/model/westcrm/AlibabaWestcrmJobStatusUpdateAPIRequest.go @@ -0,0 +1,94 @@ +package westcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新工单状态 API请求 +alibaba.westcrm.job.status.update + +更新工单处理状态 +*/ +type AlibabaWestcrmJobStatusUpdateAPIRequest struct { + model.Params + // 状态 + _status int64 + // 园区id + _campusId int64 + // 反馈id + _crmComplaintId int64 + // 回复内容 + _replyContent string +} + +// 初始化AlibabaWestcrmJobStatusUpdateAPIRequest对象 +func NewAlibabaWestcrmJobStatusUpdateRequest() *AlibabaWestcrmJobStatusUpdateAPIRequest{ + return &AlibabaWestcrmJobStatusUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWestcrmJobStatusUpdateAPIRequest) GetApiMethodName() string { + return "alibaba.westcrm.job.status.update" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWestcrmJobStatusUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Status Setter +// 状态 +func (r *AlibabaWestcrmJobStatusUpdateAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r AlibabaWestcrmJobStatusUpdateAPIRequest) GetStatus() int64 { + return r._status +} +// CampusId Setter +// 园区id +func (r *AlibabaWestcrmJobStatusUpdateAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaWestcrmJobStatusUpdateAPIRequest) GetCampusId() int64 { + return r._campusId +} +// CrmComplaintId Setter +// 反馈id +func (r *AlibabaWestcrmJobStatusUpdateAPIRequest) SetCrmComplaintId(_crmComplaintId int64) error { + r._crmComplaintId = _crmComplaintId + r.Set("crm_complaint_id", _crmComplaintId) + return nil +} + +// CrmComplaintId Getter +func (r AlibabaWestcrmJobStatusUpdateAPIRequest) GetCrmComplaintId() int64 { + return r._crmComplaintId +} +// ReplyContent Setter +// 回复内容 +func (r *AlibabaWestcrmJobStatusUpdateAPIRequest) SetReplyContent(_replyContent string) error { + r._replyContent = _replyContent + r.Set("reply_content", _replyContent) + return nil +} + +// ReplyContent Getter +func (r AlibabaWestcrmJobStatusUpdateAPIRequest) GetReplyContent() string { + return r._replyContent +} diff --git a/model/westcrm/AlibabaWestcrmJobStatusUpdateAPIResponse.go b/model/westcrm/AlibabaWestcrmJobStatusUpdateAPIResponse.go new file mode 100644 index 0000000000..23ab2368e4 --- /dev/null +++ b/model/westcrm/AlibabaWestcrmJobStatusUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package westcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新工单状态 API返回值 +alibaba.westcrm.job.status.update + +更新工单处理状态 +*/ +type AlibabaWestcrmJobStatusUpdateAPIResponse struct { + model.CommonResponse + AlibabaWestcrmJobStatusUpdateAPIResponseModel +} + +// 更新工单状态 成功返回结果 +type AlibabaWestcrmJobStatusUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_westcrm_job_status_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/westcrm/AlibabaWestcrmJobStatusUpdateResponse.go b/model/westcrm/AlibabaWestcrmJobStatusUpdateResponse.go deleted file mode 100644 index 00c23a4195..0000000000 --- a/model/westcrm/AlibabaWestcrmJobStatusUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package westcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新工单状态 API返回值 -alibaba.westcrm.job.status.update - -更新工单处理状态 -*/ -type AlibabaWestcrmJobStatusUpdateAPIResponse struct { - model.CommonResponse - AlibabaWestcrmJobStatusUpdateResponse -} - -// 更新工单状态 成功返回结果 -type AlibabaWestcrmJobStatusUpdateResponse struct { - XMLName xml.Name `xml:"alibaba_westcrm_job_status_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/westcrm/AlibabaWestcrmMallListGetAPIRequest.go b/model/westcrm/AlibabaWestcrmMallListGetAPIRequest.go new file mode 100644 index 0000000000..1700d56c15 --- /dev/null +++ b/model/westcrm/AlibabaWestcrmMallListGetAPIRequest.go @@ -0,0 +1,52 @@ +package westcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商场列表 API请求 +alibaba.westcrm.mall.list.get + +根据园区id获取商场列表 +*/ +type AlibabaWestcrmMallListGetAPIRequest struct { + model.Params + // 园区id + _campusId int64 +} + +// 初始化AlibabaWestcrmMallListGetAPIRequest对象 +func NewAlibabaWestcrmMallListGetRequest() *AlibabaWestcrmMallListGetAPIRequest{ + return &AlibabaWestcrmMallListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWestcrmMallListGetAPIRequest) GetApiMethodName() string { + return "alibaba.westcrm.mall.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWestcrmMallListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampusId Setter +// 园区id +func (r *AlibabaWestcrmMallListGetAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaWestcrmMallListGetAPIRequest) GetCampusId() int64 { + return r._campusId +} diff --git a/model/westcrm/AlibabaWestcrmMallListGetAPIResponse.go b/model/westcrm/AlibabaWestcrmMallListGetAPIResponse.go new file mode 100644 index 0000000000..3e47f7bb54 --- /dev/null +++ b/model/westcrm/AlibabaWestcrmMallListGetAPIResponse.go @@ -0,0 +1,27 @@ +package westcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商场列表 API返回值 +alibaba.westcrm.mall.list.get + +根据园区id获取商场列表 +*/ +type AlibabaWestcrmMallListGetAPIResponse struct { + model.CommonResponse + AlibabaWestcrmMallListGetAPIResponseModel +} + +// 获取商场列表 成功返回结果 +type AlibabaWestcrmMallListGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_westcrm_mall_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/westcrm/AlibabaWestcrmMallListGetResponse.go b/model/westcrm/AlibabaWestcrmMallListGetResponse.go deleted file mode 100644 index 9bce374482..0000000000 --- a/model/westcrm/AlibabaWestcrmMallListGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package westcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取商场列表 API返回值 -alibaba.westcrm.mall.list.get - -根据园区id获取商场列表 -*/ -type AlibabaWestcrmMallListGetAPIResponse struct { - model.CommonResponse - AlibabaWestcrmMallListGetResponse -} - -// 获取商场列表 成功返回结果 -type AlibabaWestcrmMallListGetResponse struct { - XMLName xml.Name `xml:"alibaba_westcrm_mall_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/westcrm/AlibabaWestcrmMemberMessageHandleAPIRequest.go b/model/westcrm/AlibabaWestcrmMemberMessageHandleAPIRequest.go new file mode 100644 index 0000000000..2f65ff9946 --- /dev/null +++ b/model/westcrm/AlibabaWestcrmMemberMessageHandleAPIRequest.go @@ -0,0 +1,66 @@ +package westcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +处理Usc会员消息接口 API请求 +alibaba.westcrm.member.message.handle + +处理Usc会员消息接口 +*/ +type AlibabaWestcrmMemberMessageHandleAPIRequest struct { + model.Params + // 消息类型 + _messageType string + // 消息内容 + _messageContent string +} + +// 初始化AlibabaWestcrmMemberMessageHandleAPIRequest对象 +func NewAlibabaWestcrmMemberMessageHandleRequest() *AlibabaWestcrmMemberMessageHandleAPIRequest{ + return &AlibabaWestcrmMemberMessageHandleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWestcrmMemberMessageHandleAPIRequest) GetApiMethodName() string { + return "alibaba.westcrm.member.message.handle" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWestcrmMemberMessageHandleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MessageType Setter +// 消息类型 +func (r *AlibabaWestcrmMemberMessageHandleAPIRequest) SetMessageType(_messageType string) error { + r._messageType = _messageType + r.Set("message_type", _messageType) + return nil +} + +// MessageType Getter +func (r AlibabaWestcrmMemberMessageHandleAPIRequest) GetMessageType() string { + return r._messageType +} +// MessageContent Setter +// 消息内容 +func (r *AlibabaWestcrmMemberMessageHandleAPIRequest) SetMessageContent(_messageContent string) error { + r._messageContent = _messageContent + r.Set("message_content", _messageContent) + return nil +} + +// MessageContent Getter +func (r AlibabaWestcrmMemberMessageHandleAPIRequest) GetMessageContent() string { + return r._messageContent +} diff --git a/model/westcrm/AlibabaWestcrmMemberMessageHandleAPIResponse.go b/model/westcrm/AlibabaWestcrmMemberMessageHandleAPIResponse.go new file mode 100644 index 0000000000..47a06eda4f --- /dev/null +++ b/model/westcrm/AlibabaWestcrmMemberMessageHandleAPIResponse.go @@ -0,0 +1,27 @@ +package westcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +处理Usc会员消息接口 API返回值 +alibaba.westcrm.member.message.handle + +处理Usc会员消息接口 +*/ +type AlibabaWestcrmMemberMessageHandleAPIResponse struct { + model.CommonResponse + AlibabaWestcrmMemberMessageHandleAPIResponseModel +} + +// 处理Usc会员消息接口 成功返回结果 +type AlibabaWestcrmMemberMessageHandleAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_westcrm_member_message_handle_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/westcrm/AlibabaWestcrmMemberMessageHandleResponse.go b/model/westcrm/AlibabaWestcrmMemberMessageHandleResponse.go deleted file mode 100644 index b8a657bc60..0000000000 --- a/model/westcrm/AlibabaWestcrmMemberMessageHandleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package westcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -处理Usc会员消息接口 API返回值 -alibaba.westcrm.member.message.handle - -处理Usc会员消息接口 -*/ -type AlibabaWestcrmMemberMessageHandleAPIResponse struct { - model.CommonResponse - AlibabaWestcrmMemberMessageHandleResponse -} - -// 处理Usc会员消息接口 成功返回结果 -type AlibabaWestcrmMemberMessageHandleResponse struct { - XMLName xml.Name `xml:"alibaba_westcrm_member_message_handle_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/westcrm/AlibabaWestcrmMemberScoreGetAPIRequest.go b/model/westcrm/AlibabaWestcrmMemberScoreGetAPIRequest.go new file mode 100644 index 0000000000..e870b2bc6c --- /dev/null +++ b/model/westcrm/AlibabaWestcrmMemberScoreGetAPIRequest.go @@ -0,0 +1,94 @@ +package westcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取会员某时间段积分 API请求 +alibaba.westcrm.member.score.get + +获取会员某时间段积分 +*/ +type AlibabaWestcrmMemberScoreGetAPIRequest struct { + model.Params + // requestId + _requestId string + // 支付宝id + _alipayId string + // 开始时间 + _startTime string + // 结束时间 + _endTime string +} + +// 初始化AlibabaWestcrmMemberScoreGetAPIRequest对象 +func NewAlibabaWestcrmMemberScoreGetRequest() *AlibabaWestcrmMemberScoreGetAPIRequest{ + return &AlibabaWestcrmMemberScoreGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWestcrmMemberScoreGetAPIRequest) GetApiMethodName() string { + return "alibaba.westcrm.member.score.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWestcrmMemberScoreGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RequestId Setter +// requestId +func (r *AlibabaWestcrmMemberScoreGetAPIRequest) SetRequestId(_requestId string) error { + r._requestId = _requestId + r.Set("request_id", _requestId) + return nil +} + +// RequestId Getter +func (r AlibabaWestcrmMemberScoreGetAPIRequest) GetRequestId() string { + return r._requestId +} +// AlipayId Setter +// 支付宝id +func (r *AlibabaWestcrmMemberScoreGetAPIRequest) SetAlipayId(_alipayId string) error { + r._alipayId = _alipayId + r.Set("alipay_id", _alipayId) + return nil +} + +// AlipayId Getter +func (r AlibabaWestcrmMemberScoreGetAPIRequest) GetAlipayId() string { + return r._alipayId +} +// StartTime Setter +// 开始时间 +func (r *AlibabaWestcrmMemberScoreGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r AlibabaWestcrmMemberScoreGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 结束时间 +func (r *AlibabaWestcrmMemberScoreGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r AlibabaWestcrmMemberScoreGetAPIRequest) GetEndTime() string { + return r._endTime +} diff --git a/model/westcrm/AlibabaWestcrmMemberScoreGetAPIResponse.go b/model/westcrm/AlibabaWestcrmMemberScoreGetAPIResponse.go new file mode 100644 index 0000000000..89ea95f65b --- /dev/null +++ b/model/westcrm/AlibabaWestcrmMemberScoreGetAPIResponse.go @@ -0,0 +1,27 @@ +package westcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取会员某时间段积分 API返回值 +alibaba.westcrm.member.score.get + +获取会员某时间段积分 +*/ +type AlibabaWestcrmMemberScoreGetAPIResponse struct { + model.CommonResponse + AlibabaWestcrmMemberScoreGetAPIResponseModel +} + +// 获取会员某时间段积分 成功返回结果 +type AlibabaWestcrmMemberScoreGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_westcrm_member_score_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/westcrm/AlibabaWestcrmMemberScoreGetResponse.go b/model/westcrm/AlibabaWestcrmMemberScoreGetResponse.go deleted file mode 100644 index dddaae6381..0000000000 --- a/model/westcrm/AlibabaWestcrmMemberScoreGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package westcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取会员某时间段积分 API返回值 -alibaba.westcrm.member.score.get - -获取会员某时间段积分 -*/ -type AlibabaWestcrmMemberScoreGetAPIResponse struct { - model.CommonResponse - AlibabaWestcrmMemberScoreGetResponse -} - -// 获取会员某时间段积分 成功返回结果 -type AlibabaWestcrmMemberScoreGetResponse struct { - XMLName xml.Name `xml:"alibaba_westcrm_member_score_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/westcrm/AlibabaWestcrmShopListGetAPIRequest.go b/model/westcrm/AlibabaWestcrmShopListGetAPIRequest.go new file mode 100644 index 0000000000..7323513e4f --- /dev/null +++ b/model/westcrm/AlibabaWestcrmShopListGetAPIRequest.go @@ -0,0 +1,52 @@ +package westcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商圈商户信息列表 API请求 +alibaba.westcrm.shop.list.get + +获取商圈商户信息列表 +*/ +type AlibabaWestcrmShopListGetAPIRequest struct { + model.Params + // 园区id + _campusId int64 +} + +// 初始化AlibabaWestcrmShopListGetAPIRequest对象 +func NewAlibabaWestcrmShopListGetRequest() *AlibabaWestcrmShopListGetAPIRequest{ + return &AlibabaWestcrmShopListGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWestcrmShopListGetAPIRequest) GetApiMethodName() string { + return "alibaba.westcrm.shop.list.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWestcrmShopListGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampusId Setter +// 园区id +func (r *AlibabaWestcrmShopListGetAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaWestcrmShopListGetAPIRequest) GetCampusId() int64 { + return r._campusId +} diff --git a/model/westcrm/AlibabaWestcrmShopListGetAPIResponse.go b/model/westcrm/AlibabaWestcrmShopListGetAPIResponse.go new file mode 100644 index 0000000000..e3cff16993 --- /dev/null +++ b/model/westcrm/AlibabaWestcrmShopListGetAPIResponse.go @@ -0,0 +1,27 @@ +package westcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取商圈商户信息列表 API返回值 +alibaba.westcrm.shop.list.get + +获取商圈商户信息列表 +*/ +type AlibabaWestcrmShopListGetAPIResponse struct { + model.CommonResponse + AlibabaWestcrmShopListGetAPIResponseModel +} + +// 获取商圈商户信息列表 成功返回结果 +type AlibabaWestcrmShopListGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_westcrm_shop_list_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/westcrm/AlibabaWestcrmShopListGetResponse.go b/model/westcrm/AlibabaWestcrmShopListGetResponse.go deleted file mode 100644 index a301c61b9d..0000000000 --- a/model/westcrm/AlibabaWestcrmShopListGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package westcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取商圈商户信息列表 API返回值 -alibaba.westcrm.shop.list.get - -获取商圈商户信息列表 -*/ -type AlibabaWestcrmShopListGetAPIResponse struct { - model.CommonResponse - AlibabaWestcrmShopListGetResponse -} - -// 获取商圈商户信息列表 成功返回结果 -type AlibabaWestcrmShopListGetResponse struct { - XMLName xml.Name `xml:"alibaba_westcrm_shop_list_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/westcrm/AlibabaWestcrmUpdateAlipayCarnoAPIRequest.go b/model/westcrm/AlibabaWestcrmUpdateAlipayCarnoAPIRequest.go new file mode 100644 index 0000000000..5757569215 --- /dev/null +++ b/model/westcrm/AlibabaWestcrmUpdateAlipayCarnoAPIRequest.go @@ -0,0 +1,94 @@ +package westcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +更新支付宝业务卡号 API请求 +alibaba.westcrm.update.alipay.carno + +更新支付宝业务卡号 +*/ +type AlibabaWestcrmUpdateAlipayCarnoAPIRequest struct { + model.Params + // 商场id + _mallId int64 + // 用户id + _id int64 + // 2088102011918821 + _alipayCardNo string + // appkey + _westcrmAppKey string +} + +// 初始化AlibabaWestcrmUpdateAlipayCarnoAPIRequest对象 +func NewAlibabaWestcrmUpdateAlipayCarnoRequest() *AlibabaWestcrmUpdateAlipayCarnoAPIRequest{ + return &AlibabaWestcrmUpdateAlipayCarnoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWestcrmUpdateAlipayCarnoAPIRequest) GetApiMethodName() string { + return "alibaba.westcrm.update.alipay.carno" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWestcrmUpdateAlipayCarnoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MallId Setter +// 商场id +func (r *AlibabaWestcrmUpdateAlipayCarnoAPIRequest) SetMallId(_mallId int64) error { + r._mallId = _mallId + r.Set("mall_id", _mallId) + return nil +} + +// MallId Getter +func (r AlibabaWestcrmUpdateAlipayCarnoAPIRequest) GetMallId() int64 { + return r._mallId +} +// Id Setter +// 用户id +func (r *AlibabaWestcrmUpdateAlipayCarnoAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaWestcrmUpdateAlipayCarnoAPIRequest) GetId() int64 { + return r._id +} +// AlipayCardNo Setter +// 2088102011918821 +func (r *AlibabaWestcrmUpdateAlipayCarnoAPIRequest) SetAlipayCardNo(_alipayCardNo string) error { + r._alipayCardNo = _alipayCardNo + r.Set("alipay_card_no", _alipayCardNo) + return nil +} + +// AlipayCardNo Getter +func (r AlibabaWestcrmUpdateAlipayCarnoAPIRequest) GetAlipayCardNo() string { + return r._alipayCardNo +} +// WestcrmAppKey Setter +// appkey +func (r *AlibabaWestcrmUpdateAlipayCarnoAPIRequest) SetWestcrmAppKey(_westcrmAppKey string) error { + r._westcrmAppKey = _westcrmAppKey + r.Set("westcrm_app_key", _westcrmAppKey) + return nil +} + +// WestcrmAppKey Getter +func (r AlibabaWestcrmUpdateAlipayCarnoAPIRequest) GetWestcrmAppKey() string { + return r._westcrmAppKey +} diff --git a/model/westcrm/AlibabaWestcrmUpdateAlipayCarnoAPIResponse.go b/model/westcrm/AlibabaWestcrmUpdateAlipayCarnoAPIResponse.go new file mode 100644 index 0000000000..0f73164f0d --- /dev/null +++ b/model/westcrm/AlibabaWestcrmUpdateAlipayCarnoAPIResponse.go @@ -0,0 +1,27 @@ +package westcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +更新支付宝业务卡号 API返回值 +alibaba.westcrm.update.alipay.carno + +更新支付宝业务卡号 +*/ +type AlibabaWestcrmUpdateAlipayCarnoAPIResponse struct { + model.CommonResponse + AlibabaWestcrmUpdateAlipayCarnoAPIResponseModel +} + +// 更新支付宝业务卡号 成功返回结果 +type AlibabaWestcrmUpdateAlipayCarnoAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_westcrm_update_alipay_carno_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回修改结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/westcrm/AlibabaWestcrmUpdateAlipayCarnoResponse.go b/model/westcrm/AlibabaWestcrmUpdateAlipayCarnoResponse.go deleted file mode 100644 index 71f96732ce..0000000000 --- a/model/westcrm/AlibabaWestcrmUpdateAlipayCarnoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package westcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -更新支付宝业务卡号 API返回值 -alibaba.westcrm.update.alipay.carno - -更新支付宝业务卡号 -*/ -type AlibabaWestcrmUpdateAlipayCarnoAPIResponse struct { - model.CommonResponse - AlibabaWestcrmUpdateAlipayCarnoResponse -} - -// 更新支付宝业务卡号 成功返回结果 -type AlibabaWestcrmUpdateAlipayCarnoResponse struct { - XMLName xml.Name `xml:"alibaba_westcrm_update_alipay_carno_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回修改结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/westcrm/AlibabaWestcrmUserBenefitAuthorityAPIRequest.go b/model/westcrm/AlibabaWestcrmUserBenefitAuthorityAPIRequest.go new file mode 100644 index 0000000000..059bd73df1 --- /dev/null +++ b/model/westcrm/AlibabaWestcrmUserBenefitAuthorityAPIRequest.go @@ -0,0 +1,66 @@ +package westcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定用户是否含有会员权益配置菜单权限 API请求 +alibaba.westcrm.user.benefit.authority + +获取指定用户是否含有会员权益配置菜单权限 +*/ +type AlibabaWestcrmUserBenefitAuthorityAPIRequest struct { + model.Params + // 园区ID + _campusId int64 + // 当前用户id + _ibUserId int64 +} + +// 初始化AlibabaWestcrmUserBenefitAuthorityAPIRequest对象 +func NewAlibabaWestcrmUserBenefitAuthorityRequest() *AlibabaWestcrmUserBenefitAuthorityAPIRequest{ + return &AlibabaWestcrmUserBenefitAuthorityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWestcrmUserBenefitAuthorityAPIRequest) GetApiMethodName() string { + return "alibaba.westcrm.user.benefit.authority" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWestcrmUserBenefitAuthorityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampusId Setter +// 园区ID +func (r *AlibabaWestcrmUserBenefitAuthorityAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaWestcrmUserBenefitAuthorityAPIRequest) GetCampusId() int64 { + return r._campusId +} +// IbUserId Setter +// 当前用户id +func (r *AlibabaWestcrmUserBenefitAuthorityAPIRequest) SetIbUserId(_ibUserId int64) error { + r._ibUserId = _ibUserId + r.Set("ib_user_id", _ibUserId) + return nil +} + +// IbUserId Getter +func (r AlibabaWestcrmUserBenefitAuthorityAPIRequest) GetIbUserId() int64 { + return r._ibUserId +} diff --git a/model/westcrm/AlibabaWestcrmUserBenefitAuthorityAPIResponse.go b/model/westcrm/AlibabaWestcrmUserBenefitAuthorityAPIResponse.go new file mode 100644 index 0000000000..61e6f9753d --- /dev/null +++ b/model/westcrm/AlibabaWestcrmUserBenefitAuthorityAPIResponse.go @@ -0,0 +1,27 @@ +package westcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定用户是否含有会员权益配置菜单权限 API返回值 +alibaba.westcrm.user.benefit.authority + +获取指定用户是否含有会员权益配置菜单权限 +*/ +type AlibabaWestcrmUserBenefitAuthorityAPIResponse struct { + model.CommonResponse + AlibabaWestcrmUserBenefitAuthorityAPIResponseModel +} + +// 获取指定用户是否含有会员权益配置菜单权限 成功返回结果 +type AlibabaWestcrmUserBenefitAuthorityAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_westcrm_user_benefit_authority_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/westcrm/AlibabaWestcrmUserBenefitAuthorityResponse.go b/model/westcrm/AlibabaWestcrmUserBenefitAuthorityResponse.go deleted file mode 100644 index 664864c9e6..0000000000 --- a/model/westcrm/AlibabaWestcrmUserBenefitAuthorityResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package westcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取指定用户是否含有会员权益配置菜单权限 API返回值 -alibaba.westcrm.user.benefit.authority - -获取指定用户是否含有会员权益配置菜单权限 -*/ -type AlibabaWestcrmUserBenefitAuthorityAPIResponse struct { - model.CommonResponse - AlibabaWestcrmUserBenefitAuthorityResponse -} - -// 获取指定用户是否含有会员权益配置菜单权限 成功返回结果 -type AlibabaWestcrmUserBenefitAuthorityResponse struct { - XMLName xml.Name `xml:"alibaba_westcrm_user_benefit_authority_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/westcrm/AlibabaWestcrmUserConsumerGetAPIRequest.go b/model/westcrm/AlibabaWestcrmUserConsumerGetAPIRequest.go new file mode 100644 index 0000000000..e054d83115 --- /dev/null +++ b/model/westcrm/AlibabaWestcrmUserConsumerGetAPIRequest.go @@ -0,0 +1,94 @@ +package westcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定用户的消费总额 API请求 +alibaba.westcrm.user.consumer.get + +获取指定用户的消费总额 +*/ +type AlibabaWestcrmUserConsumerGetAPIRequest struct { + model.Params + // 园区id + _campusId int64 + // 用户id + _ibUserId int64 + // 开始时间 + _timeBegin string + // 结束时间 + _timeEnd string +} + +// 初始化AlibabaWestcrmUserConsumerGetAPIRequest对象 +func NewAlibabaWestcrmUserConsumerGetRequest() *AlibabaWestcrmUserConsumerGetAPIRequest{ + return &AlibabaWestcrmUserConsumerGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWestcrmUserConsumerGetAPIRequest) GetApiMethodName() string { + return "alibaba.westcrm.user.consumer.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWestcrmUserConsumerGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampusId Setter +// 园区id +func (r *AlibabaWestcrmUserConsumerGetAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaWestcrmUserConsumerGetAPIRequest) GetCampusId() int64 { + return r._campusId +} +// IbUserId Setter +// 用户id +func (r *AlibabaWestcrmUserConsumerGetAPIRequest) SetIbUserId(_ibUserId int64) error { + r._ibUserId = _ibUserId + r.Set("ib_user_id", _ibUserId) + return nil +} + +// IbUserId Getter +func (r AlibabaWestcrmUserConsumerGetAPIRequest) GetIbUserId() int64 { + return r._ibUserId +} +// TimeBegin Setter +// 开始时间 +func (r *AlibabaWestcrmUserConsumerGetAPIRequest) SetTimeBegin(_timeBegin string) error { + r._timeBegin = _timeBegin + r.Set("time_begin", _timeBegin) + return nil +} + +// TimeBegin Getter +func (r AlibabaWestcrmUserConsumerGetAPIRequest) GetTimeBegin() string { + return r._timeBegin +} +// TimeEnd Setter +// 结束时间 +func (r *AlibabaWestcrmUserConsumerGetAPIRequest) SetTimeEnd(_timeEnd string) error { + r._timeEnd = _timeEnd + r.Set("time_end", _timeEnd) + return nil +} + +// TimeEnd Getter +func (r AlibabaWestcrmUserConsumerGetAPIRequest) GetTimeEnd() string { + return r._timeEnd +} diff --git a/model/westcrm/AlibabaWestcrmUserConsumerGetAPIResponse.go b/model/westcrm/AlibabaWestcrmUserConsumerGetAPIResponse.go new file mode 100644 index 0000000000..cc966304cc --- /dev/null +++ b/model/westcrm/AlibabaWestcrmUserConsumerGetAPIResponse.go @@ -0,0 +1,27 @@ +package westcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定用户的消费总额 API返回值 +alibaba.westcrm.user.consumer.get + +获取指定用户的消费总额 +*/ +type AlibabaWestcrmUserConsumerGetAPIResponse struct { + model.CommonResponse + AlibabaWestcrmUserConsumerGetAPIResponseModel +} + +// 获取指定用户的消费总额 成功返回结果 +type AlibabaWestcrmUserConsumerGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_westcrm_user_consumer_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/westcrm/AlibabaWestcrmUserConsumerGetResponse.go b/model/westcrm/AlibabaWestcrmUserConsumerGetResponse.go deleted file mode 100644 index 13f8a7ad71..0000000000 --- a/model/westcrm/AlibabaWestcrmUserConsumerGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package westcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取指定用户的消费总额 API返回值 -alibaba.westcrm.user.consumer.get - -获取指定用户的消费总额 -*/ -type AlibabaWestcrmUserConsumerGetAPIResponse struct { - model.CommonResponse - AlibabaWestcrmUserConsumerGetResponse -} - -// 获取指定用户的消费总额 成功返回结果 -type AlibabaWestcrmUserConsumerGetResponse struct { - XMLName xml.Name `xml:"alibaba_westcrm_user_consumer_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/westcrm/AlibabaWestcrmUserStatisticAuthorityAPIRequest.go b/model/westcrm/AlibabaWestcrmUserStatisticAuthorityAPIRequest.go new file mode 100644 index 0000000000..af23d118f5 --- /dev/null +++ b/model/westcrm/AlibabaWestcrmUserStatisticAuthorityAPIRequest.go @@ -0,0 +1,66 @@ +package westcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定用户是否含有会员权益统计权限 API请求 +alibaba.westcrm.user.statistic.authority + +获取指定用户是否含有会员权益统计权限 +*/ +type AlibabaWestcrmUserStatisticAuthorityAPIRequest struct { + model.Params + // 园区id + _campusId int64 + // 用户id + _ibUserId int64 +} + +// 初始化AlibabaWestcrmUserStatisticAuthorityAPIRequest对象 +func NewAlibabaWestcrmUserStatisticAuthorityRequest() *AlibabaWestcrmUserStatisticAuthorityAPIRequest{ + return &AlibabaWestcrmUserStatisticAuthorityAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaWestcrmUserStatisticAuthorityAPIRequest) GetApiMethodName() string { + return "alibaba.westcrm.user.statistic.authority" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaWestcrmUserStatisticAuthorityAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CampusId Setter +// 园区id +func (r *AlibabaWestcrmUserStatisticAuthorityAPIRequest) SetCampusId(_campusId int64) error { + r._campusId = _campusId + r.Set("campus_id", _campusId) + return nil +} + +// CampusId Getter +func (r AlibabaWestcrmUserStatisticAuthorityAPIRequest) GetCampusId() int64 { + return r._campusId +} +// IbUserId Setter +// 用户id +func (r *AlibabaWestcrmUserStatisticAuthorityAPIRequest) SetIbUserId(_ibUserId int64) error { + r._ibUserId = _ibUserId + r.Set("ib_user_id", _ibUserId) + return nil +} + +// IbUserId Getter +func (r AlibabaWestcrmUserStatisticAuthorityAPIRequest) GetIbUserId() int64 { + return r._ibUserId +} diff --git a/model/westcrm/AlibabaWestcrmUserStatisticAuthorityAPIResponse.go b/model/westcrm/AlibabaWestcrmUserStatisticAuthorityAPIResponse.go new file mode 100644 index 0000000000..a02e360916 --- /dev/null +++ b/model/westcrm/AlibabaWestcrmUserStatisticAuthorityAPIResponse.go @@ -0,0 +1,27 @@ +package westcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取指定用户是否含有会员权益统计权限 API返回值 +alibaba.westcrm.user.statistic.authority + +获取指定用户是否含有会员权益统计权限 +*/ +type AlibabaWestcrmUserStatisticAuthorityAPIResponse struct { + model.CommonResponse + AlibabaWestcrmUserStatisticAuthorityAPIResponseModel +} + +// 获取指定用户是否含有会员权益统计权限 成功返回结果 +type AlibabaWestcrmUserStatisticAuthorityAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_westcrm_user_statistic_authority_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回对象封装 + Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/westcrm/AlibabaWestcrmUserStatisticAuthorityResponse.go b/model/westcrm/AlibabaWestcrmUserStatisticAuthorityResponse.go deleted file mode 100644 index e489cb5224..0000000000 --- a/model/westcrm/AlibabaWestcrmUserStatisticAuthorityResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package westcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取指定用户是否含有会员权益统计权限 API返回值 -alibaba.westcrm.user.statistic.authority - -获取指定用户是否含有会员权益统计权限 -*/ -type AlibabaWestcrmUserStatisticAuthorityAPIResponse struct { - model.CommonResponse - AlibabaWestcrmUserStatisticAuthorityResponse -} - -// 获取指定用户是否含有会员权益统计权限 成功返回结果 -type AlibabaWestcrmUserStatisticAuthorityResponse struct { - XMLName xml.Name `xml:"alibaba_westcrm_user_statistic_authority_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回对象封装 - Result *DataResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wirelessshare/TaobaoWirelessShareTpwdQueryAPIRequest.go b/model/wirelessshare/TaobaoWirelessShareTpwdQueryAPIRequest.go new file mode 100644 index 0000000000..affcfc3a24 --- /dev/null +++ b/model/wirelessshare/TaobaoWirelessShareTpwdQueryAPIRequest.go @@ -0,0 +1,52 @@ +package wirelessshare + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询解析淘口令 API请求 +taobao.wireless.share.tpwd.query + +查询解析淘口令 +*/ +type TaobaoWirelessShareTpwdQueryAPIRequest struct { + model.Params + // 淘口令 + _passwordContent string +} + +// 初始化TaobaoWirelessShareTpwdQueryAPIRequest对象 +func NewTaobaoWirelessShareTpwdQueryRequest() *TaobaoWirelessShareTpwdQueryAPIRequest{ + return &TaobaoWirelessShareTpwdQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWirelessShareTpwdQueryAPIRequest) GetApiMethodName() string { + return "taobao.wireless.share.tpwd.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWirelessShareTpwdQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PasswordContent Setter +// 淘口令 +func (r *TaobaoWirelessShareTpwdQueryAPIRequest) SetPasswordContent(_passwordContent string) error { + r._passwordContent = _passwordContent + r.Set("password_content", _passwordContent) + return nil +} + +// PasswordContent Getter +func (r TaobaoWirelessShareTpwdQueryAPIRequest) GetPasswordContent() string { + return r._passwordContent +} diff --git a/model/wirelessshare/TaobaoWirelessShareTpwdQueryAPIResponse.go b/model/wirelessshare/TaobaoWirelessShareTpwdQueryAPIResponse.go new file mode 100644 index 0000000000..2aaa8fd0f3 --- /dev/null +++ b/model/wirelessshare/TaobaoWirelessShareTpwdQueryAPIResponse.go @@ -0,0 +1,41 @@ +package wirelessshare + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询解析淘口令 API返回值 +taobao.wireless.share.tpwd.query + +查询解析淘口令 +*/ +type TaobaoWirelessShareTpwdQueryAPIResponse struct { + model.CommonResponse + TaobaoWirelessShareTpwdQueryAPIResponseModel +} + +// 查询解析淘口令 成功返回结果 +type TaobaoWirelessShareTpwdQueryAPIResponseModel struct { + XMLName xml.Name `xml:"wireless_share_tpwd_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 淘口令-文案 + Content string `json:"content,omitempty" xml:"content,omitempty"` + // 淘口令-宝贝 + Title string `json:"title,omitempty" xml:"title,omitempty"` + // 如果是宝贝,则为宝贝价格 + Price string `json:"price,omitempty" xml:"price,omitempty"` + // 图片url + PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"` + // 是否成功 + Suc bool `json:"suc,omitempty" xml:"suc,omitempty"` + // 跳转url(长链) + Url string `json:"url,omitempty" xml:"url,omitempty"` + // nativeUrl + NativeUrl string `json:"native_url,omitempty" xml:"native_url,omitempty"` + // thumbPicUrl + ThumbPicUrl string `json:"thumb_pic_url,omitempty" xml:"thumb_pic_url,omitempty"` +} diff --git a/model/wirelessshare/TaobaoWirelessShareTpwdQueryResponse.go b/model/wirelessshare/TaobaoWirelessShareTpwdQueryResponse.go deleted file mode 100644 index 52178690ed..0000000000 --- a/model/wirelessshare/TaobaoWirelessShareTpwdQueryResponse.go +++ /dev/null @@ -1,41 +0,0 @@ -package wirelessshare - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询解析淘口令 API返回值 -taobao.wireless.share.tpwd.query - -查询解析淘口令 -*/ -type TaobaoWirelessShareTpwdQueryAPIResponse struct { - model.CommonResponse - TaobaoWirelessShareTpwdQueryResponse -} - -// 查询解析淘口令 成功返回结果 -type TaobaoWirelessShareTpwdQueryResponse struct { - XMLName xml.Name `xml:"wireless_share_tpwd_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 淘口令-文案 - Content string `json:"content,omitempty" xml:"content,omitempty"` - // 淘口令-宝贝 - Title string `json:"title,omitempty" xml:"title,omitempty"` - // 如果是宝贝,则为宝贝价格 - Price string `json:"price,omitempty" xml:"price,omitempty"` - // 图片url - PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"` - // 是否成功 - Suc bool `json:"suc,omitempty" xml:"suc,omitempty"` - // 跳转url(长链) - Url string `json:"url,omitempty" xml:"url,omitempty"` - // nativeUrl - NativeUrl string `json:"native_url,omitempty" xml:"native_url,omitempty"` - // thumbPicUrl - ThumbPicUrl string `json:"thumb_pic_url,omitempty" xml:"thumb_pic_url,omitempty"` -} diff --git a/model/wlb/CainiaoBmsOrderConsignConfirmAPIRequest.go b/model/wlb/CainiaoBmsOrderConsignConfirmAPIRequest.go new file mode 100644 index 0000000000..fc291f0f72 --- /dev/null +++ b/model/wlb/CainiaoBmsOrderConsignConfirmAPIRequest.go @@ -0,0 +1,52 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +BMS出库通知 API请求 +cainiao.bms.order.consign.confirm + +BMS出库后,通知ISV +*/ +type CainiaoBmsOrderConsignConfirmAPIRequest struct { + model.Params + // 通知消息主体 + _content *BmsConsignOrderConfirm +} + +// 初始化CainiaoBmsOrderConsignConfirmAPIRequest对象 +func NewCainiaoBmsOrderConsignConfirmRequest() *CainiaoBmsOrderConsignConfirmAPIRequest{ + return &CainiaoBmsOrderConsignConfirmAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoBmsOrderConsignConfirmAPIRequest) GetApiMethodName() string { + return "cainiao.bms.order.consign.confirm" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoBmsOrderConsignConfirmAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Content Setter +// 通知消息主体 +func (r *CainiaoBmsOrderConsignConfirmAPIRequest) SetContent(_content *BmsConsignOrderConfirm) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r CainiaoBmsOrderConsignConfirmAPIRequest) GetContent() *BmsConsignOrderConfirm { + return r._content +} diff --git a/model/wlb/CainiaoBmsOrderConsignConfirmAPIResponse.go b/model/wlb/CainiaoBmsOrderConsignConfirmAPIResponse.go new file mode 100644 index 0000000000..99d7829187 --- /dev/null +++ b/model/wlb/CainiaoBmsOrderConsignConfirmAPIResponse.go @@ -0,0 +1,27 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +BMS出库通知 API返回值 +cainiao.bms.order.consign.confirm + +BMS出库后,通知ISV +*/ +type CainiaoBmsOrderConsignConfirmAPIResponse struct { + model.CommonResponse + CainiaoBmsOrderConsignConfirmAPIResponseModel +} + +// BMS出库通知 成功返回结果 +type CainiaoBmsOrderConsignConfirmAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_bms_order_consign_confirm_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Result *ResultDo `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wlb/CainiaoBmsOrderConsignConfirmResponse.go b/model/wlb/CainiaoBmsOrderConsignConfirmResponse.go deleted file mode 100644 index 80c6106eb9..0000000000 --- a/model/wlb/CainiaoBmsOrderConsignConfirmResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -BMS出库通知 API返回值 -cainiao.bms.order.consign.confirm - -BMS出库后,通知ISV -*/ -type CainiaoBmsOrderConsignConfirmAPIResponse struct { - model.CommonResponse - CainiaoBmsOrderConsignConfirmResponse -} - -// BMS出库通知 成功返回结果 -type CainiaoBmsOrderConsignConfirmResponse struct { - XMLName xml.Name `xml:"cainiao_bms_order_consign_confirm_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Result *ResultDo `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wlb/CainiaoMerchantInventoryAdjustAPIRequest.go b/model/wlb/CainiaoMerchantInventoryAdjustAPIRequest.go new file mode 100644 index 0000000000..dfee9f2d85 --- /dev/null +++ b/model/wlb/CainiaoMerchantInventoryAdjustAPIRequest.go @@ -0,0 +1,80 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家库存调整 API请求 +cainiao.merchant.inventory.adjust + +商家仓库存调整接口,目前仅支持全量更新 +*/ +type CainiaoMerchantInventoryAdjustAPIRequest struct { + model.Params + // 商家仓编辑库存 + _adjustRequest []MerStoreInvAdjustDto + // 调用方应用名 + _appName string + // 操作 + _operation string +} + +// 初始化CainiaoMerchantInventoryAdjustAPIRequest对象 +func NewCainiaoMerchantInventoryAdjustRequest() *CainiaoMerchantInventoryAdjustAPIRequest{ + return &CainiaoMerchantInventoryAdjustAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoMerchantInventoryAdjustAPIRequest) GetApiMethodName() string { + return "cainiao.merchant.inventory.adjust" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoMerchantInventoryAdjustAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AdjustRequest Setter +// 商家仓编辑库存 +func (r *CainiaoMerchantInventoryAdjustAPIRequest) SetAdjustRequest(_adjustRequest []MerStoreInvAdjustDto) error { + r._adjustRequest = _adjustRequest + r.Set("adjust_request", _adjustRequest) + return nil +} + +// AdjustRequest Getter +func (r CainiaoMerchantInventoryAdjustAPIRequest) GetAdjustRequest() []MerStoreInvAdjustDto { + return r._adjustRequest +} +// AppName Setter +// 调用方应用名 +func (r *CainiaoMerchantInventoryAdjustAPIRequest) SetAppName(_appName string) error { + r._appName = _appName + r.Set("app_name", _appName) + return nil +} + +// AppName Getter +func (r CainiaoMerchantInventoryAdjustAPIRequest) GetAppName() string { + return r._appName +} +// Operation Setter +// 操作 +func (r *CainiaoMerchantInventoryAdjustAPIRequest) SetOperation(_operation string) error { + r._operation = _operation + r.Set("operation", _operation) + return nil +} + +// Operation Getter +func (r CainiaoMerchantInventoryAdjustAPIRequest) GetOperation() string { + return r._operation +} diff --git a/model/wlb/CainiaoMerchantInventoryAdjustAPIResponse.go b/model/wlb/CainiaoMerchantInventoryAdjustAPIResponse.go new file mode 100644 index 0000000000..cea1ea7d9e --- /dev/null +++ b/model/wlb/CainiaoMerchantInventoryAdjustAPIResponse.go @@ -0,0 +1,27 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家库存调整 API返回值 +cainiao.merchant.inventory.adjust + +商家仓库存调整接口,目前仅支持全量更新 +*/ +type CainiaoMerchantInventoryAdjustAPIResponse struct { + model.CommonResponse + CainiaoMerchantInventoryAdjustAPIResponseModel +} + +// 商家库存调整 成功返回结果 +type CainiaoMerchantInventoryAdjustAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_merchant_inventory_adjust_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *SingleResultDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wlb/CainiaoMerchantInventoryAdjustResponse.go b/model/wlb/CainiaoMerchantInventoryAdjustResponse.go deleted file mode 100644 index 3265ff9aab..0000000000 --- a/model/wlb/CainiaoMerchantInventoryAdjustResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家库存调整 API返回值 -cainiao.merchant.inventory.adjust - -商家仓库存调整接口,目前仅支持全量更新 -*/ -type CainiaoMerchantInventoryAdjustAPIResponse struct { - model.CommonResponse - CainiaoMerchantInventoryAdjustResponse -} - -// 商家库存调整 成功返回结果 -type CainiaoMerchantInventoryAdjustResponse struct { - XMLName xml.Name `xml:"cainiao_merchant_inventory_adjust_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *SingleResultDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wlb/ResultDo.go b/model/wlb/ResultDo.go new file mode 100644 index 0000000000..4e3c0be281 --- /dev/null +++ b/model/wlb/ResultDo.go @@ -0,0 +1,11 @@ +package wlb + +// ResultDo +type ResultDo struct { + // 网络延时 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 01 + ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` + // 成功、失败 + Success bool `json:"success,omitempty" xml:"success,omitempty"` +} diff --git a/model/wlb/TaobaoUopTobOrderCreateAPIRequest.go b/model/wlb/TaobaoUopTobOrderCreateAPIRequest.go new file mode 100644 index 0000000000..e3a9839084 --- /dev/null +++ b/model/wlb/TaobaoUopTobOrderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +ToB仓储发货 API请求 +taobao.uop.tob.order.create + +ToB仓储发货 +*/ +type TaobaoUopTobOrderCreateAPIRequest struct { + model.Params + // ERP出库对象 + _deliveryOrder *DeliveryOrder +} + +// 初始化TaobaoUopTobOrderCreateAPIRequest对象 +func NewTaobaoUopTobOrderCreateRequest() *TaobaoUopTobOrderCreateAPIRequest{ + return &TaobaoUopTobOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoUopTobOrderCreateAPIRequest) GetApiMethodName() string { + return "taobao.uop.tob.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoUopTobOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// DeliveryOrder Setter +// ERP出库对象 +func (r *TaobaoUopTobOrderCreateAPIRequest) SetDeliveryOrder(_deliveryOrder *DeliveryOrder) error { + r._deliveryOrder = _deliveryOrder + r.Set("delivery_order", _deliveryOrder) + return nil +} + +// DeliveryOrder Getter +func (r TaobaoUopTobOrderCreateAPIRequest) GetDeliveryOrder() *DeliveryOrder { + return r._deliveryOrder +} diff --git a/model/wlb/TaobaoUopTobOrderCreateAPIResponse.go b/model/wlb/TaobaoUopTobOrderCreateAPIResponse.go new file mode 100644 index 0000000000..309cf9b8e5 --- /dev/null +++ b/model/wlb/TaobaoUopTobOrderCreateAPIResponse.go @@ -0,0 +1,31 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +ToB仓储发货 API返回值 +taobao.uop.tob.order.create + +ToB仓储发货 +*/ +type TaobaoUopTobOrderCreateAPIResponse struct { + model.CommonResponse + TaobaoUopTobOrderCreateAPIResponseModel +} + +// ToB仓储发货 成功返回结果 +type TaobaoUopTobOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"uop_tob_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // flag + Flag string `json:"flag,omitempty" xml:"flag,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 订单 + DeliveryOrders []DeliveryOrder `json:"delivery_orders,omitempty" xml:"delivery_orders>delivery_order,omitempty"` +} diff --git a/model/wlb/TaobaoUopTobOrderCreateResponse.go b/model/wlb/TaobaoUopTobOrderCreateResponse.go deleted file mode 100644 index 3a06759bad..0000000000 --- a/model/wlb/TaobaoUopTobOrderCreateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -ToB仓储发货 API返回值 -taobao.uop.tob.order.create - -ToB仓储发货 -*/ -type TaobaoUopTobOrderCreateAPIResponse struct { - model.CommonResponse - TaobaoUopTobOrderCreateResponse -} - -// ToB仓储发货 成功返回结果 -type TaobaoUopTobOrderCreateResponse struct { - XMLName xml.Name `xml:"uop_tob_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // flag - Flag string `json:"flag,omitempty" xml:"flag,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 订单 - DeliveryOrders []DeliveryOrder `json:"delivery_orders,omitempty" xml:"delivery_orders>delivery_order,omitempty"` -} diff --git a/model/wlb/TaobaoWlbInventoryDetailGetAPIRequest.go b/model/wlb/TaobaoWlbInventoryDetailGetAPIRequest.go new file mode 100644 index 0000000000..05ec190afb --- /dev/null +++ b/model/wlb/TaobaoWlbInventoryDetailGetAPIRequest.go @@ -0,0 +1,80 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询库存详情 API请求 +taobao.wlb.inventory.detail.get + +查询库存详情,通过商品ID获取发送请求的卖家的库存详情 +*/ +type TaobaoWlbInventoryDetailGetAPIRequest struct { + model.Params + // 库存类型列表,值包括:
VENDIBLE--可销售库存
FREEZE--冻结库存
ONWAY--在途库存
DEFECT--残次品库存
ENGINE_DAMAGE--机损
BOX_DAMAGE--箱损
EXPIRATION--过保 + _inventoryTypeList []string + // 仓库编码 + _storeCode string + // 商品ID + _itemId int64 +} + +// 初始化TaobaoWlbInventoryDetailGetAPIRequest对象 +func NewTaobaoWlbInventoryDetailGetRequest() *TaobaoWlbInventoryDetailGetAPIRequest{ + return &TaobaoWlbInventoryDetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbInventoryDetailGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.inventory.detail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbInventoryDetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InventoryTypeList Setter +// 库存类型列表,值包括:
VENDIBLE--可销售库存
FREEZE--冻结库存
ONWAY--在途库存
DEFECT--残次品库存
ENGINE_DAMAGE--机损
BOX_DAMAGE--箱损
EXPIRATION--过保 +func (r *TaobaoWlbInventoryDetailGetAPIRequest) SetInventoryTypeList(_inventoryTypeList []string) error { + r._inventoryTypeList = _inventoryTypeList + r.Set("inventory_type_list", _inventoryTypeList) + return nil +} + +// InventoryTypeList Getter +func (r TaobaoWlbInventoryDetailGetAPIRequest) GetInventoryTypeList() []string { + return r._inventoryTypeList +} +// StoreCode Setter +// 仓库编码 +func (r *TaobaoWlbInventoryDetailGetAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoWlbInventoryDetailGetAPIRequest) GetStoreCode() string { + return r._storeCode +} +// ItemId Setter +// 商品ID +func (r *TaobaoWlbInventoryDetailGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoWlbInventoryDetailGetAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/wlb/TaobaoWlbInventoryDetailGetAPIResponse.go b/model/wlb/TaobaoWlbInventoryDetailGetAPIResponse.go new file mode 100644 index 0000000000..2a9d2c0c2e --- /dev/null +++ b/model/wlb/TaobaoWlbInventoryDetailGetAPIResponse.go @@ -0,0 +1,29 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询库存详情 API返回值 +taobao.wlb.inventory.detail.get + +查询库存详情,通过商品ID获取发送请求的卖家的库存详情 +*/ +type TaobaoWlbInventoryDetailGetAPIResponse struct { + model.CommonResponse + TaobaoWlbInventoryDetailGetAPIResponseModel +} + +// 查询库存详情 成功返回结果 +type TaobaoWlbInventoryDetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_inventory_detail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 库存详情对象。其中包括货主ID,仓库编码,库存,库存类型等属性 + InventoryList []WlbInventory `json:"inventory_list,omitempty" xml:"inventory_list>wlb_inventory,omitempty"` + // 入参的item_id + ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` +} diff --git a/model/wlb/TaobaoWlbInventoryDetailGetResponse.go b/model/wlb/TaobaoWlbInventoryDetailGetResponse.go deleted file mode 100644 index b3efa47363..0000000000 --- a/model/wlb/TaobaoWlbInventoryDetailGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询库存详情 API返回值 -taobao.wlb.inventory.detail.get - -查询库存详情,通过商品ID获取发送请求的卖家的库存详情 -*/ -type TaobaoWlbInventoryDetailGetAPIResponse struct { - model.CommonResponse - TaobaoWlbInventoryDetailGetResponse -} - -// 查询库存详情 成功返回结果 -type TaobaoWlbInventoryDetailGetResponse struct { - XMLName xml.Name `xml:"wlb_inventory_detail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 库存详情对象。其中包括货主ID,仓库编码,库存,库存类型等属性 - InventoryList []WlbInventory `json:"inventory_list,omitempty" xml:"inventory_list>wlb_inventory,omitempty"` - // 入参的item_id - ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` -} diff --git a/model/wlb/TaobaoWlbInventorylogQueryAPIRequest.go b/model/wlb/TaobaoWlbInventorylogQueryAPIRequest.go new file mode 100644 index 0000000000..ad38b44d45 --- /dev/null +++ b/model/wlb/TaobaoWlbInventorylogQueryAPIRequest.go @@ -0,0 +1,164 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据商品ID查询所有库存变更记录 API请求 +taobao.wlb.inventorylog.query + +通过商品ID等几个条件来分页查询库存变更记录 +*/ +type TaobaoWlbInventorylogQueryAPIRequest struct { + model.Params + // 商品ID + _itemId int64 + // 仓库编码 + _storeCode string + // 单号 + _orderCode string + // 起始修改时间,大于等于该时间 + _gmtStart string + // 结束修改时间,小于等于该时间 + _gmtEnd string + // 当前页 + _pageNo int64 + // 分页记录个数 + _pageSize int64 + // 可指定授权的用户来查询 + _opUserId int64 + // 库存操作作类型(可以为空) CHU_KU 1-出库 RU_KU 2-入库 FREEZE 3-冻结 THAW 4-解冻 CHECK_FREEZE 5-冻结确认 CHANGE_KU 6-库存类型变更 若值不在范围内,则按CHU_KU处理 + _opType string +} + +// 初始化TaobaoWlbInventorylogQueryAPIRequest对象 +func NewTaobaoWlbInventorylogQueryRequest() *TaobaoWlbInventorylogQueryAPIRequest{ + return &TaobaoWlbInventorylogQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbInventorylogQueryAPIRequest) GetApiMethodName() string { + return "taobao.wlb.inventorylog.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbInventorylogQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品ID +func (r *TaobaoWlbInventorylogQueryAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoWlbInventorylogQueryAPIRequest) GetItemId() int64 { + return r._itemId +} +// StoreCode Setter +// 仓库编码 +func (r *TaobaoWlbInventorylogQueryAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoWlbInventorylogQueryAPIRequest) GetStoreCode() string { + return r._storeCode +} +// OrderCode Setter +// 单号 +func (r *TaobaoWlbInventorylogQueryAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r TaobaoWlbInventorylogQueryAPIRequest) GetOrderCode() string { + return r._orderCode +} +// GmtStart Setter +// 起始修改时间,大于等于该时间 +func (r *TaobaoWlbInventorylogQueryAPIRequest) SetGmtStart(_gmtStart string) error { + r._gmtStart = _gmtStart + r.Set("gmt_start", _gmtStart) + return nil +} + +// GmtStart Getter +func (r TaobaoWlbInventorylogQueryAPIRequest) GetGmtStart() string { + return r._gmtStart +} +// GmtEnd Setter +// 结束修改时间,小于等于该时间 +func (r *TaobaoWlbInventorylogQueryAPIRequest) SetGmtEnd(_gmtEnd string) error { + r._gmtEnd = _gmtEnd + r.Set("gmt_end", _gmtEnd) + return nil +} + +// GmtEnd Getter +func (r TaobaoWlbInventorylogQueryAPIRequest) GetGmtEnd() string { + return r._gmtEnd +} +// PageNo Setter +// 当前页 +func (r *TaobaoWlbInventorylogQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoWlbInventorylogQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 分页记录个数 +func (r *TaobaoWlbInventorylogQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoWlbInventorylogQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// OpUserId Setter +// 可指定授权的用户来查询 +func (r *TaobaoWlbInventorylogQueryAPIRequest) SetOpUserId(_opUserId int64) error { + r._opUserId = _opUserId + r.Set("op_user_id", _opUserId) + return nil +} + +// OpUserId Getter +func (r TaobaoWlbInventorylogQueryAPIRequest) GetOpUserId() int64 { + return r._opUserId +} +// OpType Setter +// 库存操作作类型(可以为空) CHU_KU 1-出库 RU_KU 2-入库 FREEZE 3-冻结 THAW 4-解冻 CHECK_FREEZE 5-冻结确认 CHANGE_KU 6-库存类型变更 若值不在范围内,则按CHU_KU处理 +func (r *TaobaoWlbInventorylogQueryAPIRequest) SetOpType(_opType string) error { + r._opType = _opType + r.Set("op_type", _opType) + return nil +} + +// OpType Getter +func (r TaobaoWlbInventorylogQueryAPIRequest) GetOpType() string { + return r._opType +} diff --git a/model/wlb/TaobaoWlbInventorylogQueryAPIResponse.go b/model/wlb/TaobaoWlbInventorylogQueryAPIResponse.go new file mode 100644 index 0000000000..1ddceb44f1 --- /dev/null +++ b/model/wlb/TaobaoWlbInventorylogQueryAPIResponse.go @@ -0,0 +1,29 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据商品ID查询所有库存变更记录 API返回值 +taobao.wlb.inventorylog.query + +通过商品ID等几个条件来分页查询库存变更记录 +*/ +type TaobaoWlbInventorylogQueryAPIResponse struct { + model.CommonResponse + TaobaoWlbInventorylogQueryAPIResponseModel +} + +// 根据商品ID查询所有库存变更记录 成功返回结果 +type TaobaoWlbInventorylogQueryAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_inventorylog_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 记录数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 库存变更记录 + InventoryLogList []WlbItemInventoryLog `json:"inventory_log_list,omitempty" xml:"inventory_log_list>wlb_item_inventory_log,omitempty"` +} diff --git a/model/wlb/TaobaoWlbInventorylogQueryResponse.go b/model/wlb/TaobaoWlbInventorylogQueryResponse.go deleted file mode 100644 index f1fba80f4a..0000000000 --- a/model/wlb/TaobaoWlbInventorylogQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据商品ID查询所有库存变更记录 API返回值 -taobao.wlb.inventorylog.query - -通过商品ID等几个条件来分页查询库存变更记录 -*/ -type TaobaoWlbInventorylogQueryAPIResponse struct { - model.CommonResponse - TaobaoWlbInventorylogQueryResponse -} - -// 根据商品ID查询所有库存变更记录 成功返回结果 -type TaobaoWlbInventorylogQueryResponse struct { - XMLName xml.Name `xml:"wlb_inventorylog_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 记录数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 库存变更记录 - InventoryLogList []WlbItemInventoryLog `json:"inventory_log_list,omitempty" xml:"inventory_log_list>wlb_item_inventory_log,omitempty"` -} diff --git a/model/wlb/TaobaoWlbItemAddAPIRequest.go b/model/wlb/TaobaoWlbItemAddAPIRequest.go new file mode 100644 index 0000000000..ffb5849956 --- /dev/null +++ b/model/wlb/TaobaoWlbItemAddAPIRequest.go @@ -0,0 +1,332 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +添加单个物流宝商品 API请求 +taobao.wlb.item.add + +添加物流宝商品,支持物流宝子商品和属性添加 +*/ +type TaobaoWlbItemAddAPIRequest struct { + model.Params + // 商品名称 + _name string + // 商品标题 + _title string + // 商品编码 + _itemCode string + // 商品备注 + _remark string + // NORMAL--普通商品
COMBINE--组合商品
DISTRIBUTION--分销 + _type string + // 是否sku + _isSku string + // 属性名列表,目前支持的属性:
毛重:GWeight
净重:Nweight
皮重: Tweight
自定义属性:
paramkey1
paramkey2
paramkey3
paramkey4 + _proNameList string + // 属性值列表:
10,8 + _proValueList string + // 是否易碎品 + _isFriable bool + // 是否危险品 + _isDangerous bool + // 商品颜色 + _color string + // 商品重量,单位G + _weight int64 + // 商品长度,单位毫米 + _length int64 + // 商品宽度,单位毫米 + _width int64 + // 商品高度,单位毫米 + _height int64 + // 商品体积,单位立方厘米 + _volume int64 + // 货类 + _goodsCat string + // 计价货类 + _pricingCat string + // 商品包装材料类型 + _packageMaterial string + // 商品价格,单位:分 + _price int64 + // 是否支持批次 + _supportBatch bool +} + +// 初始化TaobaoWlbItemAddAPIRequest对象 +func NewTaobaoWlbItemAddRequest() *TaobaoWlbItemAddAPIRequest{ + return &TaobaoWlbItemAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbItemAddAPIRequest) GetApiMethodName() string { + return "taobao.wlb.item.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbItemAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// 商品名称 +func (r *TaobaoWlbItemAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoWlbItemAddAPIRequest) GetName() string { + return r._name +} +// Title Setter +// 商品标题 +func (r *TaobaoWlbItemAddAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoWlbItemAddAPIRequest) GetTitle() string { + return r._title +} +// ItemCode Setter +// 商品编码 +func (r *TaobaoWlbItemAddAPIRequest) SetItemCode(_itemCode string) error { + r._itemCode = _itemCode + r.Set("item_code", _itemCode) + return nil +} + +// ItemCode Getter +func (r TaobaoWlbItemAddAPIRequest) GetItemCode() string { + return r._itemCode +} +// Remark Setter +// 商品备注 +func (r *TaobaoWlbItemAddAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r TaobaoWlbItemAddAPIRequest) GetRemark() string { + return r._remark +} +// Type Setter +// NORMAL--普通商品
COMBINE--组合商品
DISTRIBUTION--分销 +func (r *TaobaoWlbItemAddAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoWlbItemAddAPIRequest) GetType() string { + return r._type +} +// IsSku Setter +// 是否sku +func (r *TaobaoWlbItemAddAPIRequest) SetIsSku(_isSku string) error { + r._isSku = _isSku + r.Set("is_sku", _isSku) + return nil +} + +// IsSku Getter +func (r TaobaoWlbItemAddAPIRequest) GetIsSku() string { + return r._isSku +} +// ProNameList Setter +// 属性名列表,目前支持的属性:
毛重:GWeight
净重:Nweight
皮重: Tweight
自定义属性:
paramkey1
paramkey2
paramkey3
paramkey4 +func (r *TaobaoWlbItemAddAPIRequest) SetProNameList(_proNameList string) error { + r._proNameList = _proNameList + r.Set("pro_name_list", _proNameList) + return nil +} + +// ProNameList Getter +func (r TaobaoWlbItemAddAPIRequest) GetProNameList() string { + return r._proNameList +} +// ProValueList Setter +// 属性值列表:
10,8 +func (r *TaobaoWlbItemAddAPIRequest) SetProValueList(_proValueList string) error { + r._proValueList = _proValueList + r.Set("pro_value_list", _proValueList) + return nil +} + +// ProValueList Getter +func (r TaobaoWlbItemAddAPIRequest) GetProValueList() string { + return r._proValueList +} +// IsFriable Setter +// 是否易碎品 +func (r *TaobaoWlbItemAddAPIRequest) SetIsFriable(_isFriable bool) error { + r._isFriable = _isFriable + r.Set("is_friable", _isFriable) + return nil +} + +// IsFriable Getter +func (r TaobaoWlbItemAddAPIRequest) GetIsFriable() bool { + return r._isFriable +} +// IsDangerous Setter +// 是否危险品 +func (r *TaobaoWlbItemAddAPIRequest) SetIsDangerous(_isDangerous bool) error { + r._isDangerous = _isDangerous + r.Set("is_dangerous", _isDangerous) + return nil +} + +// IsDangerous Getter +func (r TaobaoWlbItemAddAPIRequest) GetIsDangerous() bool { + return r._isDangerous +} +// Color Setter +// 商品颜色 +func (r *TaobaoWlbItemAddAPIRequest) SetColor(_color string) error { + r._color = _color + r.Set("color", _color) + return nil +} + +// Color Getter +func (r TaobaoWlbItemAddAPIRequest) GetColor() string { + return r._color +} +// Weight Setter +// 商品重量,单位G +func (r *TaobaoWlbItemAddAPIRequest) SetWeight(_weight int64) error { + r._weight = _weight + r.Set("weight", _weight) + return nil +} + +// Weight Getter +func (r TaobaoWlbItemAddAPIRequest) GetWeight() int64 { + return r._weight +} +// Length Setter +// 商品长度,单位毫米 +func (r *TaobaoWlbItemAddAPIRequest) SetLength(_length int64) error { + r._length = _length + r.Set("length", _length) + return nil +} + +// Length Getter +func (r TaobaoWlbItemAddAPIRequest) GetLength() int64 { + return r._length +} +// Width Setter +// 商品宽度,单位毫米 +func (r *TaobaoWlbItemAddAPIRequest) SetWidth(_width int64) error { + r._width = _width + r.Set("width", _width) + return nil +} + +// Width Getter +func (r TaobaoWlbItemAddAPIRequest) GetWidth() int64 { + return r._width +} +// Height Setter +// 商品高度,单位毫米 +func (r *TaobaoWlbItemAddAPIRequest) SetHeight(_height int64) error { + r._height = _height + r.Set("height", _height) + return nil +} + +// Height Getter +func (r TaobaoWlbItemAddAPIRequest) GetHeight() int64 { + return r._height +} +// Volume Setter +// 商品体积,单位立方厘米 +func (r *TaobaoWlbItemAddAPIRequest) SetVolume(_volume int64) error { + r._volume = _volume + r.Set("volume", _volume) + return nil +} + +// Volume Getter +func (r TaobaoWlbItemAddAPIRequest) GetVolume() int64 { + return r._volume +} +// GoodsCat Setter +// 货类 +func (r *TaobaoWlbItemAddAPIRequest) SetGoodsCat(_goodsCat string) error { + r._goodsCat = _goodsCat + r.Set("goods_cat", _goodsCat) + return nil +} + +// GoodsCat Getter +func (r TaobaoWlbItemAddAPIRequest) GetGoodsCat() string { + return r._goodsCat +} +// PricingCat Setter +// 计价货类 +func (r *TaobaoWlbItemAddAPIRequest) SetPricingCat(_pricingCat string) error { + r._pricingCat = _pricingCat + r.Set("pricing_cat", _pricingCat) + return nil +} + +// PricingCat Getter +func (r TaobaoWlbItemAddAPIRequest) GetPricingCat() string { + return r._pricingCat +} +// PackageMaterial Setter +// 商品包装材料类型 +func (r *TaobaoWlbItemAddAPIRequest) SetPackageMaterial(_packageMaterial string) error { + r._packageMaterial = _packageMaterial + r.Set("package_material", _packageMaterial) + return nil +} + +// PackageMaterial Getter +func (r TaobaoWlbItemAddAPIRequest) GetPackageMaterial() string { + return r._packageMaterial +} +// Price Setter +// 商品价格,单位:分 +func (r *TaobaoWlbItemAddAPIRequest) SetPrice(_price int64) error { + r._price = _price + r.Set("price", _price) + return nil +} + +// Price Getter +func (r TaobaoWlbItemAddAPIRequest) GetPrice() int64 { + return r._price +} +// SupportBatch Setter +// 是否支持批次 +func (r *TaobaoWlbItemAddAPIRequest) SetSupportBatch(_supportBatch bool) error { + r._supportBatch = _supportBatch + r.Set("support_batch", _supportBatch) + return nil +} + +// SupportBatch Getter +func (r TaobaoWlbItemAddAPIRequest) GetSupportBatch() bool { + return r._supportBatch +} diff --git a/model/wlb/TaobaoWlbItemAddAPIResponse.go b/model/wlb/TaobaoWlbItemAddAPIResponse.go new file mode 100644 index 0000000000..b72d5e0a8f --- /dev/null +++ b/model/wlb/TaobaoWlbItemAddAPIResponse.go @@ -0,0 +1,27 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +添加单个物流宝商品 API返回值 +taobao.wlb.item.add + +添加物流宝商品,支持物流宝子商品和属性添加 +*/ +type TaobaoWlbItemAddAPIResponse struct { + model.CommonResponse + TaobaoWlbItemAddAPIResponseModel +} + +// 添加单个物流宝商品 成功返回结果 +type TaobaoWlbItemAddAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_item_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 新增的商品 + ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"` +} diff --git a/model/wlb/TaobaoWlbItemAddResponse.go b/model/wlb/TaobaoWlbItemAddResponse.go deleted file mode 100644 index 901d7a8eb5..0000000000 --- a/model/wlb/TaobaoWlbItemAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -添加单个物流宝商品 API返回值 -taobao.wlb.item.add - -添加物流宝商品,支持物流宝子商品和属性添加 -*/ -type TaobaoWlbItemAddAPIResponse struct { - model.CommonResponse - TaobaoWlbItemAddResponse -} - -// 添加单个物流宝商品 成功返回结果 -type TaobaoWlbItemAddResponse struct { - XMLName xml.Name `xml:"wlb_item_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 新增的商品 - ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"` -} diff --git a/model/wlb/TaobaoWlbItemBatchQueryAPIRequest.go b/model/wlb/TaobaoWlbItemBatchQueryAPIRequest.go new file mode 100644 index 0000000000..fc30a8336c --- /dev/null +++ b/model/wlb/TaobaoWlbItemBatchQueryAPIRequest.go @@ -0,0 +1,94 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批次库存查询接口 API请求 +taobao.wlb.item.batch.query + +根据用户id,item id list和store code来查询商品库存信息和批次信息 +*/ +type TaobaoWlbItemBatchQueryAPIRequest struct { + model.Params + // 仓库编号 + _storeCode string + // 分页查询参数,指定查询页数,默认为1 + _pageNo int64 + // 分页查询参数,每页查询数量,默认20,最大值50,大于50时按照50条查询 + _pageSize int64 + // 需要查询的商品ID列表,以字符串表示,ID间以;隔开 + _itemIds string +} + +// 初始化TaobaoWlbItemBatchQueryAPIRequest对象 +func NewTaobaoWlbItemBatchQueryRequest() *TaobaoWlbItemBatchQueryAPIRequest{ + return &TaobaoWlbItemBatchQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbItemBatchQueryAPIRequest) GetApiMethodName() string { + return "taobao.wlb.item.batch.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbItemBatchQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreCode Setter +// 仓库编号 +func (r *TaobaoWlbItemBatchQueryAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoWlbItemBatchQueryAPIRequest) GetStoreCode() string { + return r._storeCode +} +// PageNo Setter +// 分页查询参数,指定查询页数,默认为1 +func (r *TaobaoWlbItemBatchQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoWlbItemBatchQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 分页查询参数,每页查询数量,默认20,最大值50,大于50时按照50条查询 +func (r *TaobaoWlbItemBatchQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoWlbItemBatchQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// ItemIds Setter +// 需要查询的商品ID列表,以字符串表示,ID间以;隔开 +func (r *TaobaoWlbItemBatchQueryAPIRequest) SetItemIds(_itemIds string) error { + r._itemIds = _itemIds + r.Set("item_ids", _itemIds) + return nil +} + +// ItemIds Getter +func (r TaobaoWlbItemBatchQueryAPIRequest) GetItemIds() string { + return r._itemIds +} diff --git a/model/wlb/TaobaoWlbItemBatchQueryAPIResponse.go b/model/wlb/TaobaoWlbItemBatchQueryAPIResponse.go new file mode 100644 index 0000000000..91f8f90919 --- /dev/null +++ b/model/wlb/TaobaoWlbItemBatchQueryAPIResponse.go @@ -0,0 +1,29 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批次库存查询接口 API返回值 +taobao.wlb.item.batch.query + +根据用户id,item id list和store code来查询商品库存信息和批次信息 +*/ +type TaobaoWlbItemBatchQueryAPIResponse struct { + model.CommonResponse + TaobaoWlbItemBatchQueryAPIResponseModel +} + +// 批次库存查询接口 成功返回结果 +type TaobaoWlbItemBatchQueryAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_item_batch_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果记录的数量 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 商品库存及批次信息查询结果 + ItemInventoryBatchList []WlbItemBatchInventory `json:"item_inventory_batch_list,omitempty" xml:"item_inventory_batch_list>wlb_item_batch_inventory,omitempty"` +} diff --git a/model/wlb/TaobaoWlbItemBatchQueryResponse.go b/model/wlb/TaobaoWlbItemBatchQueryResponse.go deleted file mode 100644 index e703a8e27c..0000000000 --- a/model/wlb/TaobaoWlbItemBatchQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批次库存查询接口 API返回值 -taobao.wlb.item.batch.query - -根据用户id,item id list和store code来查询商品库存信息和批次信息 -*/ -type TaobaoWlbItemBatchQueryAPIResponse struct { - model.CommonResponse - TaobaoWlbItemBatchQueryResponse -} - -// 批次库存查询接口 成功返回结果 -type TaobaoWlbItemBatchQueryResponse struct { - XMLName xml.Name `xml:"wlb_item_batch_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果记录的数量 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 商品库存及批次信息查询结果 - ItemInventoryBatchList []WlbItemBatchInventory `json:"item_inventory_batch_list,omitempty" xml:"item_inventory_batch_list>wlb_item_batch_inventory,omitempty"` -} diff --git a/model/wlb/TaobaoWlbItemCombinationGetAPIRequest.go b/model/wlb/TaobaoWlbItemCombinationGetAPIRequest.go new file mode 100644 index 0000000000..7d6acc1037 --- /dev/null +++ b/model/wlb/TaobaoWlbItemCombinationGetAPIRequest.go @@ -0,0 +1,52 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据商品id查询商品组合关系 API请求 +taobao.wlb.item.combination.get + +根据商品id查询商品组合关系 +*/ +type TaobaoWlbItemCombinationGetAPIRequest struct { + model.Params + // 要查询的组合商品id + _itemId int64 +} + +// 初始化TaobaoWlbItemCombinationGetAPIRequest对象 +func NewTaobaoWlbItemCombinationGetRequest() *TaobaoWlbItemCombinationGetAPIRequest{ + return &TaobaoWlbItemCombinationGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbItemCombinationGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.item.combination.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbItemCombinationGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 要查询的组合商品id +func (r *TaobaoWlbItemCombinationGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoWlbItemCombinationGetAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/wlb/TaobaoWlbItemCombinationGetAPIResponse.go b/model/wlb/TaobaoWlbItemCombinationGetAPIResponse.go new file mode 100644 index 0000000000..59974acf2e --- /dev/null +++ b/model/wlb/TaobaoWlbItemCombinationGetAPIResponse.go @@ -0,0 +1,27 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据商品id查询商品组合关系 API返回值 +taobao.wlb.item.combination.get + +根据商品id查询商品组合关系 +*/ +type TaobaoWlbItemCombinationGetAPIResponse struct { + model.CommonResponse + TaobaoWlbItemCombinationGetAPIResponseModel +} + +// 根据商品id查询商品组合关系 成功返回结果 +type TaobaoWlbItemCombinationGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_item_combination_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 组合子商品id列表 + ItemIdList []int64 `json:"item_id_list,omitempty" xml:"item_id_list>int64,omitempty"` +} diff --git a/model/wlb/TaobaoWlbItemCombinationGetResponse.go b/model/wlb/TaobaoWlbItemCombinationGetResponse.go deleted file mode 100644 index 6e1a0c136d..0000000000 --- a/model/wlb/TaobaoWlbItemCombinationGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据商品id查询商品组合关系 API返回值 -taobao.wlb.item.combination.get - -根据商品id查询商品组合关系 -*/ -type TaobaoWlbItemCombinationGetAPIResponse struct { - model.CommonResponse - TaobaoWlbItemCombinationGetResponse -} - -// 根据商品id查询商品组合关系 成功返回结果 -type TaobaoWlbItemCombinationGetResponse struct { - XMLName xml.Name `xml:"wlb_item_combination_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 组合子商品id列表 - ItemIdList []int64 `json:"item_id_list,omitempty" xml:"item_id_list>int64,omitempty"` -} diff --git a/model/wlb/TaobaoWlbItemGetAPIRequest.go b/model/wlb/TaobaoWlbItemGetAPIRequest.go new file mode 100644 index 0000000000..0e2f246090 --- /dev/null +++ b/model/wlb/TaobaoWlbItemGetAPIRequest.go @@ -0,0 +1,52 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据商品ID获取商品信息 API请求 +taobao.wlb.item.get + +根据商品ID获取商品信息,除了获取商品信息外还可获取商品属性信息和库存信息。 +*/ +type TaobaoWlbItemGetAPIRequest struct { + model.Params + // 商品ID + _itemId int64 +} + +// 初始化TaobaoWlbItemGetAPIRequest对象 +func NewTaobaoWlbItemGetRequest() *TaobaoWlbItemGetAPIRequest{ + return &TaobaoWlbItemGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbItemGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.item.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbItemGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 商品ID +func (r *TaobaoWlbItemGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoWlbItemGetAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/wlb/TaobaoWlbItemGetAPIResponse.go b/model/wlb/TaobaoWlbItemGetAPIResponse.go new file mode 100644 index 0000000000..a44377dde9 --- /dev/null +++ b/model/wlb/TaobaoWlbItemGetAPIResponse.go @@ -0,0 +1,27 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据商品ID获取商品信息 API返回值 +taobao.wlb.item.get + +根据商品ID获取商品信息,除了获取商品信息外还可获取商品属性信息和库存信息。 +*/ +type TaobaoWlbItemGetAPIResponse struct { + model.CommonResponse + TaobaoWlbItemGetAPIResponseModel +} + +// 根据商品ID获取商品信息 成功返回结果 +type TaobaoWlbItemGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_item_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品信息 + Item *WlbItem `json:"item,omitempty" xml:"item,omitempty"` +} diff --git a/model/wlb/TaobaoWlbItemGetResponse.go b/model/wlb/TaobaoWlbItemGetResponse.go deleted file mode 100644 index 505be78009..0000000000 --- a/model/wlb/TaobaoWlbItemGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据商品ID获取商品信息 API返回值 -taobao.wlb.item.get - -根据商品ID获取商品信息,除了获取商品信息外还可获取商品属性信息和库存信息。 -*/ -type TaobaoWlbItemGetAPIResponse struct { - model.CommonResponse - TaobaoWlbItemGetResponse -} - -// 根据商品ID获取商品信息 成功返回结果 -type TaobaoWlbItemGetResponse struct { - XMLName xml.Name `xml:"wlb_item_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品信息 - Item *WlbItem `json:"item,omitempty" xml:"item,omitempty"` -} diff --git a/model/wlb/TaobaoWlbItemMapGetAPIRequest.go b/model/wlb/TaobaoWlbItemMapGetAPIRequest.go new file mode 100644 index 0000000000..7a77fc180a --- /dev/null +++ b/model/wlb/TaobaoWlbItemMapGetAPIRequest.go @@ -0,0 +1,52 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据物流宝商品ID查询商品映射关系 API请求 +taobao.wlb.item.map.get + +根据物流宝商品ID查询商品映射关系 +*/ +type TaobaoWlbItemMapGetAPIRequest struct { + model.Params + // 要查询映射关系的物流宝商品id + _itemId int64 +} + +// 初始化TaobaoWlbItemMapGetAPIRequest对象 +func NewTaobaoWlbItemMapGetRequest() *TaobaoWlbItemMapGetAPIRequest{ + return &TaobaoWlbItemMapGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbItemMapGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.item.map.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbItemMapGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 要查询映射关系的物流宝商品id +func (r *TaobaoWlbItemMapGetAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoWlbItemMapGetAPIRequest) GetItemId() int64 { + return r._itemId +} diff --git a/model/wlb/TaobaoWlbItemMapGetAPIResponse.go b/model/wlb/TaobaoWlbItemMapGetAPIResponse.go new file mode 100644 index 0000000000..816df2b709 --- /dev/null +++ b/model/wlb/TaobaoWlbItemMapGetAPIResponse.go @@ -0,0 +1,29 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据物流宝商品ID查询商品映射关系 API返回值 +taobao.wlb.item.map.get + +根据物流宝商品ID查询商品映射关系 +*/ +type TaobaoWlbItemMapGetAPIResponse struct { + model.CommonResponse + TaobaoWlbItemMapGetAPIResponseModel +} + +// 根据物流宝商品ID查询商品映射关系 成功返回结果 +type TaobaoWlbItemMapGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_item_map_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 外部商品实体 + OutEntityItemList []OutEntityItem `json:"out_entity_item_list,omitempty" xml:"out_entity_item_list>out_entity_item,omitempty"` + // 是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/wlb/TaobaoWlbItemMapGetResponse.go b/model/wlb/TaobaoWlbItemMapGetResponse.go deleted file mode 100644 index 38bd3d2965..0000000000 --- a/model/wlb/TaobaoWlbItemMapGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据物流宝商品ID查询商品映射关系 API返回值 -taobao.wlb.item.map.get - -根据物流宝商品ID查询商品映射关系 -*/ -type TaobaoWlbItemMapGetAPIResponse struct { - model.CommonResponse - TaobaoWlbItemMapGetResponse -} - -// 根据物流宝商品ID查询商品映射关系 成功返回结果 -type TaobaoWlbItemMapGetResponse struct { - XMLName xml.Name `xml:"wlb_item_map_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 外部商品实体 - OutEntityItemList []OutEntityItem `json:"out_entity_item_list,omitempty" xml:"out_entity_item_list>out_entity_item,omitempty"` - // 是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/wlb/TaobaoWlbItemQueryAPIRequest.go b/model/wlb/TaobaoWlbItemQueryAPIRequest.go new file mode 100644 index 0000000000..1ff349747c --- /dev/null +++ b/model/wlb/TaobaoWlbItemQueryAPIRequest.go @@ -0,0 +1,164 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询商品 API请求 +taobao.wlb.item.query + +根据状态、卖家、SKU等信息查询商品列表 +*/ +type TaobaoWlbItemQueryAPIRequest struct { + model.Params + // 是否是最小库存单元,只有最小库存单元的商品才可以有库存,值只能给"true","false"来表示; 若值不在范围内,则按true处理 + _isSku string + // 只能输入以下值或空: ITEM_STATUS_VALID -- 1 表示 有效; ITEM_STATUS_LOCK -- 2 表示锁住。 若值不在范围内,按ITEM_STATUS_VALID处理 + _status string + // ITEM类型(只允许输入以下英文或空) NORMAL 0:普通商品; COMBINE 1:是否是组合商品 DISTRIBUTION 2:是否是分销商品(货主是别人) 若值不在范围内,则按NORMAL处理 + _itemType string + // 商品名称 + _name string + // 商品前台销售名字 + _title string + // 商家编码 + _itemCode string + // 父ID,只有is_sku=1时才能有父ID,商品也可以没有付商品 + _parentId int64 + // 当前页 + _pageNo int64 + // 分页记录个数,如果用户输入的记录数大于50,则一页显示50条记录 + _pageSize int64 +} + +// 初始化TaobaoWlbItemQueryAPIRequest对象 +func NewTaobaoWlbItemQueryRequest() *TaobaoWlbItemQueryAPIRequest{ + return &TaobaoWlbItemQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbItemQueryAPIRequest) GetApiMethodName() string { + return "taobao.wlb.item.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbItemQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IsSku Setter +// 是否是最小库存单元,只有最小库存单元的商品才可以有库存,值只能给"true","false"来表示; 若值不在范围内,则按true处理 +func (r *TaobaoWlbItemQueryAPIRequest) SetIsSku(_isSku string) error { + r._isSku = _isSku + r.Set("is_sku", _isSku) + return nil +} + +// IsSku Getter +func (r TaobaoWlbItemQueryAPIRequest) GetIsSku() string { + return r._isSku +} +// Status Setter +// 只能输入以下值或空: ITEM_STATUS_VALID -- 1 表示 有效; ITEM_STATUS_LOCK -- 2 表示锁住。 若值不在范围内,按ITEM_STATUS_VALID处理 +func (r *TaobaoWlbItemQueryAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoWlbItemQueryAPIRequest) GetStatus() string { + return r._status +} +// ItemType Setter +// ITEM类型(只允许输入以下英文或空) NORMAL 0:普通商品; COMBINE 1:是否是组合商品 DISTRIBUTION 2:是否是分销商品(货主是别人) 若值不在范围内,则按NORMAL处理 +func (r *TaobaoWlbItemQueryAPIRequest) SetItemType(_itemType string) error { + r._itemType = _itemType + r.Set("item_type", _itemType) + return nil +} + +// ItemType Getter +func (r TaobaoWlbItemQueryAPIRequest) GetItemType() string { + return r._itemType +} +// Name Setter +// 商品名称 +func (r *TaobaoWlbItemQueryAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoWlbItemQueryAPIRequest) GetName() string { + return r._name +} +// Title Setter +// 商品前台销售名字 +func (r *TaobaoWlbItemQueryAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoWlbItemQueryAPIRequest) GetTitle() string { + return r._title +} +// ItemCode Setter +// 商家编码 +func (r *TaobaoWlbItemQueryAPIRequest) SetItemCode(_itemCode string) error { + r._itemCode = _itemCode + r.Set("item_code", _itemCode) + return nil +} + +// ItemCode Getter +func (r TaobaoWlbItemQueryAPIRequest) GetItemCode() string { + return r._itemCode +} +// ParentId Setter +// 父ID,只有is_sku=1时才能有父ID,商品也可以没有付商品 +func (r *TaobaoWlbItemQueryAPIRequest) SetParentId(_parentId int64) error { + r._parentId = _parentId + r.Set("parent_id", _parentId) + return nil +} + +// ParentId Getter +func (r TaobaoWlbItemQueryAPIRequest) GetParentId() int64 { + return r._parentId +} +// PageNo Setter +// 当前页 +func (r *TaobaoWlbItemQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoWlbItemQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 分页记录个数,如果用户输入的记录数大于50,则一页显示50条记录 +func (r *TaobaoWlbItemQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoWlbItemQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/wlb/TaobaoWlbItemQueryAPIResponse.go b/model/wlb/TaobaoWlbItemQueryAPIResponse.go new file mode 100644 index 0000000000..ed6747c20e --- /dev/null +++ b/model/wlb/TaobaoWlbItemQueryAPIResponse.go @@ -0,0 +1,29 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询商品 API返回值 +taobao.wlb.item.query + +根据状态、卖家、SKU等信息查询商品列表 +*/ +type TaobaoWlbItemQueryAPIResponse struct { + model.CommonResponse + TaobaoWlbItemQueryAPIResponseModel +} + +// 分页查询商品 成功返回结果 +type TaobaoWlbItemQueryAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_item_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 商品信息列表 + ItemList []WlbItem `json:"item_list,omitempty" xml:"item_list>wlb_item,omitempty"` +} diff --git a/model/wlb/TaobaoWlbItemQueryResponse.go b/model/wlb/TaobaoWlbItemQueryResponse.go deleted file mode 100644 index e213c24937..0000000000 --- a/model/wlb/TaobaoWlbItemQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页查询商品 API返回值 -taobao.wlb.item.query - -根据状态、卖家、SKU等信息查询商品列表 -*/ -type TaobaoWlbItemQueryAPIResponse struct { - model.CommonResponse - TaobaoWlbItemQueryResponse -} - -// 分页查询商品 成功返回结果 -type TaobaoWlbItemQueryResponse struct { - XMLName xml.Name `xml:"wlb_item_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果总数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 商品信息列表 - ItemList []WlbItem `json:"item_list,omitempty" xml:"item_list>wlb_item,omitempty"` -} diff --git a/model/wlb/TaobaoWlbItemUpdateAPIRequest.go b/model/wlb/TaobaoWlbItemUpdateAPIRequest.go new file mode 100644 index 0000000000..e23d157589 --- /dev/null +++ b/model/wlb/TaobaoWlbItemUpdateAPIRequest.go @@ -0,0 +1,290 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物流宝商品修改 API请求 +taobao.wlb.item.update + +修改物流宝商品信息 +*/ +type TaobaoWlbItemUpdateAPIRequest struct { + model.Params + // 需要修改的商品属性值的列表,如果属性不存在,则新增属性 + _updatePropertyKeyList string + // 需要删除的商品属性key列表 + _deletePropertyKeyList string + // 需要修改的属性值的列表 + _updatePropertyValueList string + // 要修改的商品id + _id int64 + // 要修改的商品名称 + _name string + // 要修改的商品标题 + _title string + // 要修改的商品备注 + _remark string + // 是否易碎品 + _isFriable bool + // 是否危险品 + _isDangerous bool + // 商品颜色 + _color string + // 商品重量,单位G + _weight int64 + // 商品长度,单位厘米 + _length int64 + // 商品宽度,单位厘米 + _width int64 + // 商品高度,单位厘米 + _height int64 + // 商品体积,单位立方厘米 + _volume int64 + // 商品货类 + _goodsCat string + // 商品计价货类 + _pricingCat string + // 商品包装材料类型 + _packageMaterial string +} + +// 初始化TaobaoWlbItemUpdateAPIRequest对象 +func NewTaobaoWlbItemUpdateRequest() *TaobaoWlbItemUpdateAPIRequest{ + return &TaobaoWlbItemUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbItemUpdateAPIRequest) GetApiMethodName() string { + return "taobao.wlb.item.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbItemUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UpdatePropertyKeyList Setter +// 需要修改的商品属性值的列表,如果属性不存在,则新增属性 +func (r *TaobaoWlbItemUpdateAPIRequest) SetUpdatePropertyKeyList(_updatePropertyKeyList string) error { + r._updatePropertyKeyList = _updatePropertyKeyList + r.Set("update_property_key_list", _updatePropertyKeyList) + return nil +} + +// UpdatePropertyKeyList Getter +func (r TaobaoWlbItemUpdateAPIRequest) GetUpdatePropertyKeyList() string { + return r._updatePropertyKeyList +} +// DeletePropertyKeyList Setter +// 需要删除的商品属性key列表 +func (r *TaobaoWlbItemUpdateAPIRequest) SetDeletePropertyKeyList(_deletePropertyKeyList string) error { + r._deletePropertyKeyList = _deletePropertyKeyList + r.Set("delete_property_key_list", _deletePropertyKeyList) + return nil +} + +// DeletePropertyKeyList Getter +func (r TaobaoWlbItemUpdateAPIRequest) GetDeletePropertyKeyList() string { + return r._deletePropertyKeyList +} +// UpdatePropertyValueList Setter +// 需要修改的属性值的列表 +func (r *TaobaoWlbItemUpdateAPIRequest) SetUpdatePropertyValueList(_updatePropertyValueList string) error { + r._updatePropertyValueList = _updatePropertyValueList + r.Set("update_property_value_list", _updatePropertyValueList) + return nil +} + +// UpdatePropertyValueList Getter +func (r TaobaoWlbItemUpdateAPIRequest) GetUpdatePropertyValueList() string { + return r._updatePropertyValueList +} +// Id Setter +// 要修改的商品id +func (r *TaobaoWlbItemUpdateAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r TaobaoWlbItemUpdateAPIRequest) GetId() int64 { + return r._id +} +// Name Setter +// 要修改的商品名称 +func (r *TaobaoWlbItemUpdateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoWlbItemUpdateAPIRequest) GetName() string { + return r._name +} +// Title Setter +// 要修改的商品标题 +func (r *TaobaoWlbItemUpdateAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoWlbItemUpdateAPIRequest) GetTitle() string { + return r._title +} +// Remark Setter +// 要修改的商品备注 +func (r *TaobaoWlbItemUpdateAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r TaobaoWlbItemUpdateAPIRequest) GetRemark() string { + return r._remark +} +// IsFriable Setter +// 是否易碎品 +func (r *TaobaoWlbItemUpdateAPIRequest) SetIsFriable(_isFriable bool) error { + r._isFriable = _isFriable + r.Set("is_friable", _isFriable) + return nil +} + +// IsFriable Getter +func (r TaobaoWlbItemUpdateAPIRequest) GetIsFriable() bool { + return r._isFriable +} +// IsDangerous Setter +// 是否危险品 +func (r *TaobaoWlbItemUpdateAPIRequest) SetIsDangerous(_isDangerous bool) error { + r._isDangerous = _isDangerous + r.Set("is_dangerous", _isDangerous) + return nil +} + +// IsDangerous Getter +func (r TaobaoWlbItemUpdateAPIRequest) GetIsDangerous() bool { + return r._isDangerous +} +// Color Setter +// 商品颜色 +func (r *TaobaoWlbItemUpdateAPIRequest) SetColor(_color string) error { + r._color = _color + r.Set("color", _color) + return nil +} + +// Color Getter +func (r TaobaoWlbItemUpdateAPIRequest) GetColor() string { + return r._color +} +// Weight Setter +// 商品重量,单位G +func (r *TaobaoWlbItemUpdateAPIRequest) SetWeight(_weight int64) error { + r._weight = _weight + r.Set("weight", _weight) + return nil +} + +// Weight Getter +func (r TaobaoWlbItemUpdateAPIRequest) GetWeight() int64 { + return r._weight +} +// Length Setter +// 商品长度,单位厘米 +func (r *TaobaoWlbItemUpdateAPIRequest) SetLength(_length int64) error { + r._length = _length + r.Set("length", _length) + return nil +} + +// Length Getter +func (r TaobaoWlbItemUpdateAPIRequest) GetLength() int64 { + return r._length +} +// Width Setter +// 商品宽度,单位厘米 +func (r *TaobaoWlbItemUpdateAPIRequest) SetWidth(_width int64) error { + r._width = _width + r.Set("width", _width) + return nil +} + +// Width Getter +func (r TaobaoWlbItemUpdateAPIRequest) GetWidth() int64 { + return r._width +} +// Height Setter +// 商品高度,单位厘米 +func (r *TaobaoWlbItemUpdateAPIRequest) SetHeight(_height int64) error { + r._height = _height + r.Set("height", _height) + return nil +} + +// Height Getter +func (r TaobaoWlbItemUpdateAPIRequest) GetHeight() int64 { + return r._height +} +// Volume Setter +// 商品体积,单位立方厘米 +func (r *TaobaoWlbItemUpdateAPIRequest) SetVolume(_volume int64) error { + r._volume = _volume + r.Set("volume", _volume) + return nil +} + +// Volume Getter +func (r TaobaoWlbItemUpdateAPIRequest) GetVolume() int64 { + return r._volume +} +// GoodsCat Setter +// 商品货类 +func (r *TaobaoWlbItemUpdateAPIRequest) SetGoodsCat(_goodsCat string) error { + r._goodsCat = _goodsCat + r.Set("goods_cat", _goodsCat) + return nil +} + +// GoodsCat Getter +func (r TaobaoWlbItemUpdateAPIRequest) GetGoodsCat() string { + return r._goodsCat +} +// PricingCat Setter +// 商品计价货类 +func (r *TaobaoWlbItemUpdateAPIRequest) SetPricingCat(_pricingCat string) error { + r._pricingCat = _pricingCat + r.Set("pricing_cat", _pricingCat) + return nil +} + +// PricingCat Getter +func (r TaobaoWlbItemUpdateAPIRequest) GetPricingCat() string { + return r._pricingCat +} +// PackageMaterial Setter +// 商品包装材料类型 +func (r *TaobaoWlbItemUpdateAPIRequest) SetPackageMaterial(_packageMaterial string) error { + r._packageMaterial = _packageMaterial + r.Set("package_material", _packageMaterial) + return nil +} + +// PackageMaterial Getter +func (r TaobaoWlbItemUpdateAPIRequest) GetPackageMaterial() string { + return r._packageMaterial +} diff --git a/model/wlb/TaobaoWlbItemUpdateAPIResponse.go b/model/wlb/TaobaoWlbItemUpdateAPIResponse.go new file mode 100644 index 0000000000..21c72aeb6f --- /dev/null +++ b/model/wlb/TaobaoWlbItemUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物流宝商品修改 API返回值 +taobao.wlb.item.update + +修改物流宝商品信息 +*/ +type TaobaoWlbItemUpdateAPIResponse struct { + model.CommonResponse + TaobaoWlbItemUpdateAPIResponseModel +} + +// 物流宝商品修改 成功返回结果 +type TaobaoWlbItemUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_item_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改时间 + GmtModified bool `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` +} diff --git a/model/wlb/TaobaoWlbItemUpdateResponse.go b/model/wlb/TaobaoWlbItemUpdateResponse.go deleted file mode 100644 index d823770a8d..0000000000 --- a/model/wlb/TaobaoWlbItemUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物流宝商品修改 API返回值 -taobao.wlb.item.update - -修改物流宝商品信息 -*/ -type TaobaoWlbItemUpdateAPIResponse struct { - model.CommonResponse - TaobaoWlbItemUpdateResponse -} - -// 物流宝商品修改 成功返回结果 -type TaobaoWlbItemUpdateResponse struct { - XMLName xml.Name `xml:"wlb_item_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改时间 - GmtModified bool `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` -} diff --git a/model/wlb/TaobaoWlbNotifyMessagePageGetAPIRequest.go b/model/wlb/TaobaoWlbNotifyMessagePageGetAPIRequest.go new file mode 100644 index 0000000000..b28190c51d --- /dev/null +++ b/model/wlb/TaobaoWlbNotifyMessagePageGetAPIRequest.go @@ -0,0 +1,122 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物流宝通知消息查询接口 API请求 +taobao.wlb.notify.message.page.get + +物流宝提供的消息通知查询接口,消息内容包括;出入库单不一致消息,取消订单成功消息,盘点单消息 +*/ +type TaobaoWlbNotifyMessagePageGetAPIRequest struct { + model.Params + // 通知消息编码: STOCK_IN_NOT_CONSISTENT---入库单不一致 CANCEL_ORDER_SUCCESS---取消订单成功 INVENTORY_CHECK---盘点 CANCEL_ORDER_FAILURE---取消订单失败 ORDER_REJECT--wms拒单 ORDER_CONFIRMED--订单处理成功 + _msgCode string + // 分页查询页数 + _pageNo int64 + // 分页查询的每页页数 + _pageSize int64 + // 记录开始时间 + _startDate string + // 记录截至时间 + _endDate string + // 消息状态: 不需要确认:NO_NEED_CONFIRM 已确认:CONFIRMED 待确认:TO_BE_CONFIRM + _status string +} + +// 初始化TaobaoWlbNotifyMessagePageGetAPIRequest对象 +func NewTaobaoWlbNotifyMessagePageGetRequest() *TaobaoWlbNotifyMessagePageGetAPIRequest{ + return &TaobaoWlbNotifyMessagePageGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbNotifyMessagePageGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.notify.message.page.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbNotifyMessagePageGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MsgCode Setter +// 通知消息编码: STOCK_IN_NOT_CONSISTENT---入库单不一致 CANCEL_ORDER_SUCCESS---取消订单成功 INVENTORY_CHECK---盘点 CANCEL_ORDER_FAILURE---取消订单失败 ORDER_REJECT--wms拒单 ORDER_CONFIRMED--订单处理成功 +func (r *TaobaoWlbNotifyMessagePageGetAPIRequest) SetMsgCode(_msgCode string) error { + r._msgCode = _msgCode + r.Set("msg_code", _msgCode) + return nil +} + +// MsgCode Getter +func (r TaobaoWlbNotifyMessagePageGetAPIRequest) GetMsgCode() string { + return r._msgCode +} +// PageNo Setter +// 分页查询页数 +func (r *TaobaoWlbNotifyMessagePageGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoWlbNotifyMessagePageGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 分页查询的每页页数 +func (r *TaobaoWlbNotifyMessagePageGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoWlbNotifyMessagePageGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// StartDate Setter +// 记录开始时间 +func (r *TaobaoWlbNotifyMessagePageGetAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoWlbNotifyMessagePageGetAPIRequest) GetStartDate() string { + return r._startDate +} +// EndDate Setter +// 记录截至时间 +func (r *TaobaoWlbNotifyMessagePageGetAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoWlbNotifyMessagePageGetAPIRequest) GetEndDate() string { + return r._endDate +} +// Status Setter +// 消息状态: 不需要确认:NO_NEED_CONFIRM 已确认:CONFIRMED 待确认:TO_BE_CONFIRM +func (r *TaobaoWlbNotifyMessagePageGetAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoWlbNotifyMessagePageGetAPIRequest) GetStatus() string { + return r._status +} diff --git a/model/wlb/TaobaoWlbNotifyMessagePageGetAPIResponse.go b/model/wlb/TaobaoWlbNotifyMessagePageGetAPIResponse.go new file mode 100644 index 0000000000..9f84b3e57f --- /dev/null +++ b/model/wlb/TaobaoWlbNotifyMessagePageGetAPIResponse.go @@ -0,0 +1,29 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物流宝通知消息查询接口 API返回值 +taobao.wlb.notify.message.page.get + +物流宝提供的消息通知查询接口,消息内容包括;出入库单不一致消息,取消订单成功消息,盘点单消息 +*/ +type TaobaoWlbNotifyMessagePageGetAPIResponse struct { + model.CommonResponse + TaobaoWlbNotifyMessagePageGetAPIResponseModel +} + +// 物流宝通知消息查询接口 成功返回结果 +type TaobaoWlbNotifyMessagePageGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_notify_message_page_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 2000-01-01 00:00:00 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 通道消息 + WlbMessages []WlbMessage `json:"wlb_messages,omitempty" xml:"wlb_messages>wlb_message,omitempty"` +} diff --git a/model/wlb/TaobaoWlbNotifyMessagePageGetResponse.go b/model/wlb/TaobaoWlbNotifyMessagePageGetResponse.go deleted file mode 100644 index 7ac5505758..0000000000 --- a/model/wlb/TaobaoWlbNotifyMessagePageGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物流宝通知消息查询接口 API返回值 -taobao.wlb.notify.message.page.get - -物流宝提供的消息通知查询接口,消息内容包括;出入库单不一致消息,取消订单成功消息,盘点单消息 -*/ -type TaobaoWlbNotifyMessagePageGetAPIResponse struct { - model.CommonResponse - TaobaoWlbNotifyMessagePageGetResponse -} - -// 物流宝通知消息查询接口 成功返回结果 -type TaobaoWlbNotifyMessagePageGetResponse struct { - XMLName xml.Name `xml:"wlb_notify_message_page_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 2000-01-01 00:00:00 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 通道消息 - WlbMessages []WlbMessage `json:"wlb_messages,omitempty" xml:"wlb_messages>wlb_message,omitempty"` -} diff --git a/model/wlb/TaobaoWlbOrderCancelAPIRequest.go b/model/wlb/TaobaoWlbOrderCancelAPIRequest.go new file mode 100644 index 0000000000..14966e7666 --- /dev/null +++ b/model/wlb/TaobaoWlbOrderCancelAPIRequest.go @@ -0,0 +1,52 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +取消物流宝订单 API请求 +taobao.wlb.order.cancel + +取消物流宝订单 +*/ +type TaobaoWlbOrderCancelAPIRequest struct { + model.Params + // 物流宝订单编号 + _wlbOrderCode string +} + +// 初始化TaobaoWlbOrderCancelAPIRequest对象 +func NewTaobaoWlbOrderCancelRequest() *TaobaoWlbOrderCancelAPIRequest{ + return &TaobaoWlbOrderCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbOrderCancelAPIRequest) GetApiMethodName() string { + return "taobao.wlb.order.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbOrderCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WlbOrderCode Setter +// 物流宝订单编号 +func (r *TaobaoWlbOrderCancelAPIRequest) SetWlbOrderCode(_wlbOrderCode string) error { + r._wlbOrderCode = _wlbOrderCode + r.Set("wlb_order_code", _wlbOrderCode) + return nil +} + +// WlbOrderCode Getter +func (r TaobaoWlbOrderCancelAPIRequest) GetWlbOrderCode() string { + return r._wlbOrderCode +} diff --git a/model/wlb/TaobaoWlbOrderCancelAPIResponse.go b/model/wlb/TaobaoWlbOrderCancelAPIResponse.go new file mode 100644 index 0000000000..0f046e6c88 --- /dev/null +++ b/model/wlb/TaobaoWlbOrderCancelAPIResponse.go @@ -0,0 +1,29 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +取消物流宝订单 API返回值 +taobao.wlb.order.cancel + +取消物流宝订单 +*/ +type TaobaoWlbOrderCancelAPIResponse struct { + model.CommonResponse + TaobaoWlbOrderCancelAPIResponseModel +} + +// 取消物流宝订单 成功返回结果 +type TaobaoWlbOrderCancelAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_order_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改时间,只有在取消成功的情况下,才可以做 + ModifyTime string `json:"modify_time,omitempty" xml:"modify_time,omitempty"` + // 错误编码列表 + ErrorCodeList string `json:"error_code_list,omitempty" xml:"error_code_list,omitempty"` +} diff --git a/model/wlb/TaobaoWlbOrderCancelResponse.go b/model/wlb/TaobaoWlbOrderCancelResponse.go deleted file mode 100644 index b1d0bcc88c..0000000000 --- a/model/wlb/TaobaoWlbOrderCancelResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -取消物流宝订单 API返回值 -taobao.wlb.order.cancel - -取消物流宝订单 -*/ -type TaobaoWlbOrderCancelAPIResponse struct { - model.CommonResponse - TaobaoWlbOrderCancelResponse -} - -// 取消物流宝订单 成功返回结果 -type TaobaoWlbOrderCancelResponse struct { - XMLName xml.Name `xml:"wlb_order_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改时间,只有在取消成功的情况下,才可以做 - ModifyTime string `json:"modify_time,omitempty" xml:"modify_time,omitempty"` - // 错误编码列表 - ErrorCodeList string `json:"error_code_list,omitempty" xml:"error_code_list,omitempty"` -} diff --git a/model/wlb/TaobaoWlbOrderConsignAPIRequest.go b/model/wlb/TaobaoWlbOrderConsignAPIRequest.go new file mode 100644 index 0000000000..737810171b --- /dev/null +++ b/model/wlb/TaobaoWlbOrderConsignAPIRequest.go @@ -0,0 +1,52 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物流宝订单已发货通知接口 API请求 +taobao.wlb.order.consign + +如果erp导入淘宝交易订单到物流宝,当物流宝订单已发货的时候,erp需要调用该接口来通知物流订单和淘宝交易订单已发货 +*/ +type TaobaoWlbOrderConsignAPIRequest struct { + model.Params + // 物流宝订单编号 + _wlbOrderCode string +} + +// 初始化TaobaoWlbOrderConsignAPIRequest对象 +func NewTaobaoWlbOrderConsignRequest() *TaobaoWlbOrderConsignAPIRequest{ + return &TaobaoWlbOrderConsignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbOrderConsignAPIRequest) GetApiMethodName() string { + return "taobao.wlb.order.consign" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbOrderConsignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WlbOrderCode Setter +// 物流宝订单编号 +func (r *TaobaoWlbOrderConsignAPIRequest) SetWlbOrderCode(_wlbOrderCode string) error { + r._wlbOrderCode = _wlbOrderCode + r.Set("wlb_order_code", _wlbOrderCode) + return nil +} + +// WlbOrderCode Getter +func (r TaobaoWlbOrderConsignAPIRequest) GetWlbOrderCode() string { + return r._wlbOrderCode +} diff --git a/model/wlb/TaobaoWlbOrderConsignAPIResponse.go b/model/wlb/TaobaoWlbOrderConsignAPIResponse.go new file mode 100644 index 0000000000..96037c5904 --- /dev/null +++ b/model/wlb/TaobaoWlbOrderConsignAPIResponse.go @@ -0,0 +1,27 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物流宝订单已发货通知接口 API返回值 +taobao.wlb.order.consign + +如果erp导入淘宝交易订单到物流宝,当物流宝订单已发货的时候,erp需要调用该接口来通知物流订单和淘宝交易订单已发货 +*/ +type TaobaoWlbOrderConsignAPIResponse struct { + model.CommonResponse + TaobaoWlbOrderConsignAPIResponseModel +} + +// 物流宝订单已发货通知接口 成功返回结果 +type TaobaoWlbOrderConsignAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_order_consign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改时间 + ModifyTime string `json:"modify_time,omitempty" xml:"modify_time,omitempty"` +} diff --git a/model/wlb/TaobaoWlbOrderConsignResponse.go b/model/wlb/TaobaoWlbOrderConsignResponse.go deleted file mode 100644 index c60535021c..0000000000 --- a/model/wlb/TaobaoWlbOrderConsignResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物流宝订单已发货通知接口 API返回值 -taobao.wlb.order.consign - -如果erp导入淘宝交易订单到物流宝,当物流宝订单已发货的时候,erp需要调用该接口来通知物流订单和淘宝交易订单已发货 -*/ -type TaobaoWlbOrderConsignAPIResponse struct { - model.CommonResponse - TaobaoWlbOrderConsignResponse -} - -// 物流宝订单已发货通知接口 成功返回结果 -type TaobaoWlbOrderConsignResponse struct { - XMLName xml.Name `xml:"wlb_order_consign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改时间 - ModifyTime string `json:"modify_time,omitempty" xml:"modify_time,omitempty"` -} diff --git a/model/wlb/TaobaoWlbOrderCreateAPIRequest.go b/model/wlb/TaobaoWlbOrderCreateAPIRequest.go new file mode 100644 index 0000000000..537541b6c9 --- /dev/null +++ b/model/wlb/TaobaoWlbOrderCreateAPIRequest.go @@ -0,0 +1,430 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +创建物流宝订单 API请求 +taobao.wlb.order.create + +创建物流宝订单,由外部ISV或者ERP,Elink,淘宝交易产生 +*/ +type TaobaoWlbOrderCreateAPIRequest struct { + model.Params + // 投递时延要求: (1)INSTANT_ARRIVED: 当日达 (2)TOMMORROY_MORNING_ARRIVED:次晨达 (3)TOMMORROY_ARRIVED:次日达 (4)工作日:WORK_DAY (5)节假日:WEEKED_DAY + _scheduleType string + // 订单子类型: (1)OTHER: 其他 (2)TAOBAO_TRADE: 淘宝交易 (3)OTHER_TRADE:其他交易 (4)ALLCOATE: 调拨 (5)PURCHASE:采购 + _orderSubType string + // 订单类型: (1)NORMAL_OUT :正常出库 (2)NORMAL_IN:正常入库 (3)RETURN_IN:退货入库 (4)EXCHANGE_OUT:换货出库 + _orderType string + // 外部订单业务ID,该编号在isv中是唯一编号, 用来控制并发,去重用 + _outBizCode string + // 仓库编码 + _storeCode string + // 物流宝订单编号,该接口约定每次最多只能传50条order_item_list,如果一个物流宝订单超过50条商品的时候,需要批量来调用该接口,第一次调用的时候,wlb_order_code为空,如果第一次创建成功,该接口返回wlb_order_code,其后继续再该订单上添加商品条目,需要带上wlb_order_code,out_biz_code,order_item_list,is_finished四个字段。 + _orderCode string + // 源订单编号 + _prevOrderCode string + // 物流公司编码 + _tmsServiceCode string + // 运单编号,退货单时可能会使用 + _tmsOrderCode string + // 该物流宝订单是否已完成,如果完成则设置为true,如果为false,则需要等待继续创建订单商品信息。 + _isFinished bool + // 投递时间范围要求,格式'13:20'用分号隔开 + _scheduleStart string + // 投递时间范围要求,格式'15:20'用分号隔开 + _scheduleEnd string + // 用字符串格式来表示订单标记列表:比如COD^PRESELL^SPLIT^LIMIT 等,中间用“^”来隔开 ---------------------------------------- 订单标记list(所有字母全部大写): 1: COD –货到付款 2: LIMIT-限时配送 3: PRESELL-预售 5:COMPLAIN-已投诉 7:SPLIT-拆单, 8:EXCHANGE-换货, 9:VISIT-上门 , 10: MODIFYTRANSPORT-是否可改配送方式,
: 是否可改配送方式 默认可更改
11 CONSIGN 物流宝代理发货,自动更改发货状态
12: SELLER_AFFORD 是否卖家承担运费 默认是,即没 13: SYNC_RETURN_BILL,同时退回发票 + _orderFlag string + // 支付宝交易号 + _alipayNo string + // 总金额 + _totalAmount int64 + // 应收金额,cod订单必选 + _payableAmount int64 + // cod服务费,只有cod订单的时候,才需要这个字段 + _serviceFee int64 + // 买家呢称 + _buyerNick string + // 收货方信息,必须传, 手机和电话必选其一。收货方信息:邮编^^^省^^^市^^^区^^^具体地址^^^收件方名称^^^手机^^^电话如果某一个字段的数据为空时,必须传NA + _receiverInfo string + // 发货方信息,发货方信息必须传, 手机和电话必选其一。 发货方信息:邮编^^^省^^^市^^^区^^^具体地址^^^收件方名称^^^手机^^^电话如果某一个字段的数据为空时,必须传NA + _senderInfo string + // 计划开始送达时间 在入库单中可能会使用 + _expectStartTime string + // 期望结束时间,在入库单会使用到 + _expectEndTime string + // 包裹件数,入库单和出库单中会用到 + _packageCount int64 + // 出库单中可能会用到
运输公司名称^^^运输公司联系人^^^运输公司运单号^^^运输公司电话^^^运输公司联系人身份证号

========================================
如果某一个字段的数据为空时,必须传NA + _tmsInfo string + // {"invoince_info": [{"bill_type":"发票类型,必选", "bill_title":"发票抬头,必选", "bill_amount":"发票金额(单位是分),必选","bill_content":"发票内容,可选"}]} + _invoinceInfo string + // 订单商品列表: {"order_item_list":[{"trade_code":"可选,淘宝交易订单,并且不是赠品,必须要传订单来源编号"," sub_trade_code ":"可选,淘宝子交易号","item_id":"必须,商品Id","item_code":"必须,商家编码","item_name":"可选,物流宝商品名称","item_quantity":"必选,计划数量","item_price":"必选,物品价格,单位为分","owner_user_nick":"可选,货主nick 代销模式下会存在","flag":"判断是否为赠品0 不是1是","remarks":"可选,备注","batch_remark":"可选,批次描述信息会把这个信息带给WMS,但不会跟物流宝库存相关联","inventory_type":"库存类型1 可销售库存 101 类型用来定义残次品 201 冻结类型库存 301 在途库存","picture_url":"图片Url","distributor_user_nick": "分销商NICK",必选"ext_order_item_code":"可选,外部商品的商家编码"]} ======================================== 如果订单中的商品条目数大于50条的时候,我们会校验,不能创建成功,需要你按照50个一批的数量传,需要分批调用该接口,第二次传的时候,需要带上wlb_order_code和is_finished和order_item_list三个字段是必传的,is_finished为true表示传输完毕,为false表示还没完全传完。 + _orderItemList string + // 该字段暂时保留 + _attributes string + // 备注 + _remark string +} + +// 初始化TaobaoWlbOrderCreateAPIRequest对象 +func NewTaobaoWlbOrderCreateRequest() *TaobaoWlbOrderCreateAPIRequest{ + return &TaobaoWlbOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbOrderCreateAPIRequest) GetApiMethodName() string { + return "taobao.wlb.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ScheduleType Setter +// 投递时延要求: (1)INSTANT_ARRIVED: 当日达 (2)TOMMORROY_MORNING_ARRIVED:次晨达 (3)TOMMORROY_ARRIVED:次日达 (4)工作日:WORK_DAY (5)节假日:WEEKED_DAY +func (r *TaobaoWlbOrderCreateAPIRequest) SetScheduleType(_scheduleType string) error { + r._scheduleType = _scheduleType + r.Set("schedule_type", _scheduleType) + return nil +} + +// ScheduleType Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetScheduleType() string { + return r._scheduleType +} +// OrderSubType Setter +// 订单子类型: (1)OTHER: 其他 (2)TAOBAO_TRADE: 淘宝交易 (3)OTHER_TRADE:其他交易 (4)ALLCOATE: 调拨 (5)PURCHASE:采购 +func (r *TaobaoWlbOrderCreateAPIRequest) SetOrderSubType(_orderSubType string) error { + r._orderSubType = _orderSubType + r.Set("order_sub_type", _orderSubType) + return nil +} + +// OrderSubType Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetOrderSubType() string { + return r._orderSubType +} +// OrderType Setter +// 订单类型: (1)NORMAL_OUT :正常出库 (2)NORMAL_IN:正常入库 (3)RETURN_IN:退货入库 (4)EXCHANGE_OUT:换货出库 +func (r *TaobaoWlbOrderCreateAPIRequest) SetOrderType(_orderType string) error { + r._orderType = _orderType + r.Set("order_type", _orderType) + return nil +} + +// OrderType Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetOrderType() string { + return r._orderType +} +// OutBizCode Setter +// 外部订单业务ID,该编号在isv中是唯一编号, 用来控制并发,去重用 +func (r *TaobaoWlbOrderCreateAPIRequest) SetOutBizCode(_outBizCode string) error { + r._outBizCode = _outBizCode + r.Set("out_biz_code", _outBizCode) + return nil +} + +// OutBizCode Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetOutBizCode() string { + return r._outBizCode +} +// StoreCode Setter +// 仓库编码 +func (r *TaobaoWlbOrderCreateAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetStoreCode() string { + return r._storeCode +} +// OrderCode Setter +// 物流宝订单编号,该接口约定每次最多只能传50条order_item_list,如果一个物流宝订单超过50条商品的时候,需要批量来调用该接口,第一次调用的时候,wlb_order_code为空,如果第一次创建成功,该接口返回wlb_order_code,其后继续再该订单上添加商品条目,需要带上wlb_order_code,out_biz_code,order_item_list,is_finished四个字段。 +func (r *TaobaoWlbOrderCreateAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetOrderCode() string { + return r._orderCode +} +// PrevOrderCode Setter +// 源订单编号 +func (r *TaobaoWlbOrderCreateAPIRequest) SetPrevOrderCode(_prevOrderCode string) error { + r._prevOrderCode = _prevOrderCode + r.Set("prev_order_code", _prevOrderCode) + return nil +} + +// PrevOrderCode Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetPrevOrderCode() string { + return r._prevOrderCode +} +// TmsServiceCode Setter +// 物流公司编码 +func (r *TaobaoWlbOrderCreateAPIRequest) SetTmsServiceCode(_tmsServiceCode string) error { + r._tmsServiceCode = _tmsServiceCode + r.Set("tms_service_code", _tmsServiceCode) + return nil +} + +// TmsServiceCode Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetTmsServiceCode() string { + return r._tmsServiceCode +} +// TmsOrderCode Setter +// 运单编号,退货单时可能会使用 +func (r *TaobaoWlbOrderCreateAPIRequest) SetTmsOrderCode(_tmsOrderCode string) error { + r._tmsOrderCode = _tmsOrderCode + r.Set("tms_order_code", _tmsOrderCode) + return nil +} + +// TmsOrderCode Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetTmsOrderCode() string { + return r._tmsOrderCode +} +// IsFinished Setter +// 该物流宝订单是否已完成,如果完成则设置为true,如果为false,则需要等待继续创建订单商品信息。 +func (r *TaobaoWlbOrderCreateAPIRequest) SetIsFinished(_isFinished bool) error { + r._isFinished = _isFinished + r.Set("is_finished", _isFinished) + return nil +} + +// IsFinished Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetIsFinished() bool { + return r._isFinished +} +// ScheduleStart Setter +// 投递时间范围要求,格式'13:20'用分号隔开 +func (r *TaobaoWlbOrderCreateAPIRequest) SetScheduleStart(_scheduleStart string) error { + r._scheduleStart = _scheduleStart + r.Set("schedule_start", _scheduleStart) + return nil +} + +// ScheduleStart Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetScheduleStart() string { + return r._scheduleStart +} +// ScheduleEnd Setter +// 投递时间范围要求,格式'15:20'用分号隔开 +func (r *TaobaoWlbOrderCreateAPIRequest) SetScheduleEnd(_scheduleEnd string) error { + r._scheduleEnd = _scheduleEnd + r.Set("schedule_end", _scheduleEnd) + return nil +} + +// ScheduleEnd Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetScheduleEnd() string { + return r._scheduleEnd +} +// OrderFlag Setter +// 用字符串格式来表示订单标记列表:比如COD^PRESELL^SPLIT^LIMIT 等,中间用“^”来隔开 ---------------------------------------- 订单标记list(所有字母全部大写): 1: COD –货到付款 2: LIMIT-限时配送 3: PRESELL-预售 5:COMPLAIN-已投诉 7:SPLIT-拆单, 8:EXCHANGE-换货, 9:VISIT-上门 , 10: MODIFYTRANSPORT-是否可改配送方式,
: 是否可改配送方式 默认可更改
11 CONSIGN 物流宝代理发货,自动更改发货状态
12: SELLER_AFFORD 是否卖家承担运费 默认是,即没 13: SYNC_RETURN_BILL,同时退回发票 +func (r *TaobaoWlbOrderCreateAPIRequest) SetOrderFlag(_orderFlag string) error { + r._orderFlag = _orderFlag + r.Set("order_flag", _orderFlag) + return nil +} + +// OrderFlag Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetOrderFlag() string { + return r._orderFlag +} +// AlipayNo Setter +// 支付宝交易号 +func (r *TaobaoWlbOrderCreateAPIRequest) SetAlipayNo(_alipayNo string) error { + r._alipayNo = _alipayNo + r.Set("alipay_no", _alipayNo) + return nil +} + +// AlipayNo Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetAlipayNo() string { + return r._alipayNo +} +// TotalAmount Setter +// 总金额 +func (r *TaobaoWlbOrderCreateAPIRequest) SetTotalAmount(_totalAmount int64) error { + r._totalAmount = _totalAmount + r.Set("total_amount", _totalAmount) + return nil +} + +// TotalAmount Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetTotalAmount() int64 { + return r._totalAmount +} +// PayableAmount Setter +// 应收金额,cod订单必选 +func (r *TaobaoWlbOrderCreateAPIRequest) SetPayableAmount(_payableAmount int64) error { + r._payableAmount = _payableAmount + r.Set("payable_amount", _payableAmount) + return nil +} + +// PayableAmount Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetPayableAmount() int64 { + return r._payableAmount +} +// ServiceFee Setter +// cod服务费,只有cod订单的时候,才需要这个字段 +func (r *TaobaoWlbOrderCreateAPIRequest) SetServiceFee(_serviceFee int64) error { + r._serviceFee = _serviceFee + r.Set("service_fee", _serviceFee) + return nil +} + +// ServiceFee Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetServiceFee() int64 { + return r._serviceFee +} +// BuyerNick Setter +// 买家呢称 +func (r *TaobaoWlbOrderCreateAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetBuyerNick() string { + return r._buyerNick +} +// ReceiverInfo Setter +// 收货方信息,必须传, 手机和电话必选其一。收货方信息:邮编^^^省^^^市^^^区^^^具体地址^^^收件方名称^^^手机^^^电话如果某一个字段的数据为空时,必须传NA +func (r *TaobaoWlbOrderCreateAPIRequest) SetReceiverInfo(_receiverInfo string) error { + r._receiverInfo = _receiverInfo + r.Set("receiver_info", _receiverInfo) + return nil +} + +// ReceiverInfo Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetReceiverInfo() string { + return r._receiverInfo +} +// SenderInfo Setter +// 发货方信息,发货方信息必须传, 手机和电话必选其一。 发货方信息:邮编^^^省^^^市^^^区^^^具体地址^^^收件方名称^^^手机^^^电话如果某一个字段的数据为空时,必须传NA +func (r *TaobaoWlbOrderCreateAPIRequest) SetSenderInfo(_senderInfo string) error { + r._senderInfo = _senderInfo + r.Set("sender_info", _senderInfo) + return nil +} + +// SenderInfo Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetSenderInfo() string { + return r._senderInfo +} +// ExpectStartTime Setter +// 计划开始送达时间 在入库单中可能会使用 +func (r *TaobaoWlbOrderCreateAPIRequest) SetExpectStartTime(_expectStartTime string) error { + r._expectStartTime = _expectStartTime + r.Set("expect_start_time", _expectStartTime) + return nil +} + +// ExpectStartTime Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetExpectStartTime() string { + return r._expectStartTime +} +// ExpectEndTime Setter +// 期望结束时间,在入库单会使用到 +func (r *TaobaoWlbOrderCreateAPIRequest) SetExpectEndTime(_expectEndTime string) error { + r._expectEndTime = _expectEndTime + r.Set("expect_end_time", _expectEndTime) + return nil +} + +// ExpectEndTime Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetExpectEndTime() string { + return r._expectEndTime +} +// PackageCount Setter +// 包裹件数,入库单和出库单中会用到 +func (r *TaobaoWlbOrderCreateAPIRequest) SetPackageCount(_packageCount int64) error { + r._packageCount = _packageCount + r.Set("package_count", _packageCount) + return nil +} + +// PackageCount Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetPackageCount() int64 { + return r._packageCount +} +// TmsInfo Setter +// 出库单中可能会用到
运输公司名称^^^运输公司联系人^^^运输公司运单号^^^运输公司电话^^^运输公司联系人身份证号

========================================
如果某一个字段的数据为空时,必须传NA +func (r *TaobaoWlbOrderCreateAPIRequest) SetTmsInfo(_tmsInfo string) error { + r._tmsInfo = _tmsInfo + r.Set("tms_info", _tmsInfo) + return nil +} + +// TmsInfo Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetTmsInfo() string { + return r._tmsInfo +} +// InvoinceInfo Setter +// {"invoince_info": [{"bill_type":"发票类型,必选", "bill_title":"发票抬头,必选", "bill_amount":"发票金额(单位是分),必选","bill_content":"发票内容,可选"}]} +func (r *TaobaoWlbOrderCreateAPIRequest) SetInvoinceInfo(_invoinceInfo string) error { + r._invoinceInfo = _invoinceInfo + r.Set("invoince_info", _invoinceInfo) + return nil +} + +// InvoinceInfo Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetInvoinceInfo() string { + return r._invoinceInfo +} +// OrderItemList Setter +// 订单商品列表: {"order_item_list":[{"trade_code":"可选,淘宝交易订单,并且不是赠品,必须要传订单来源编号"," sub_trade_code ":"可选,淘宝子交易号","item_id":"必须,商品Id","item_code":"必须,商家编码","item_name":"可选,物流宝商品名称","item_quantity":"必选,计划数量","item_price":"必选,物品价格,单位为分","owner_user_nick":"可选,货主nick 代销模式下会存在","flag":"判断是否为赠品0 不是1是","remarks":"可选,备注","batch_remark":"可选,批次描述信息会把这个信息带给WMS,但不会跟物流宝库存相关联","inventory_type":"库存类型1 可销售库存 101 类型用来定义残次品 201 冻结类型库存 301 在途库存","picture_url":"图片Url","distributor_user_nick": "分销商NICK",必选"ext_order_item_code":"可选,外部商品的商家编码"]} ======================================== 如果订单中的商品条目数大于50条的时候,我们会校验,不能创建成功,需要你按照50个一批的数量传,需要分批调用该接口,第二次传的时候,需要带上wlb_order_code和is_finished和order_item_list三个字段是必传的,is_finished为true表示传输完毕,为false表示还没完全传完。 +func (r *TaobaoWlbOrderCreateAPIRequest) SetOrderItemList(_orderItemList string) error { + r._orderItemList = _orderItemList + r.Set("order_item_list", _orderItemList) + return nil +} + +// OrderItemList Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetOrderItemList() string { + return r._orderItemList +} +// Attributes Setter +// 该字段暂时保留 +func (r *TaobaoWlbOrderCreateAPIRequest) SetAttributes(_attributes string) error { + r._attributes = _attributes + r.Set("attributes", _attributes) + return nil +} + +// Attributes Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetAttributes() string { + return r._attributes +} +// Remark Setter +// 备注 +func (r *TaobaoWlbOrderCreateAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r TaobaoWlbOrderCreateAPIRequest) GetRemark() string { + return r._remark +} diff --git a/model/wlb/TaobaoWlbOrderCreateAPIResponse.go b/model/wlb/TaobaoWlbOrderCreateAPIResponse.go new file mode 100644 index 0000000000..b59d90cb8c --- /dev/null +++ b/model/wlb/TaobaoWlbOrderCreateAPIResponse.go @@ -0,0 +1,29 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +创建物流宝订单 API返回值 +taobao.wlb.order.create + +创建物流宝订单,由外部ISV或者ERP,Elink,淘宝交易产生 +*/ +type TaobaoWlbOrderCreateAPIResponse struct { + model.CommonResponse + TaobaoWlbOrderCreateAPIResponseModel +} + +// 创建物流宝订单 成功返回结果 +type TaobaoWlbOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 物流宝订单创建成功后,返回物流宝的订单编号;如果订单创建失败,该字段为空。 + OrderCode string `json:"order_code,omitempty" xml:"order_code,omitempty"` + // 订单创建时间 + CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"` +} diff --git a/model/wlb/TaobaoWlbOrderCreateResponse.go b/model/wlb/TaobaoWlbOrderCreateResponse.go deleted file mode 100644 index 06cad86d32..0000000000 --- a/model/wlb/TaobaoWlbOrderCreateResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -创建物流宝订单 API返回值 -taobao.wlb.order.create - -创建物流宝订单,由外部ISV或者ERP,Elink,淘宝交易产生 -*/ -type TaobaoWlbOrderCreateAPIResponse struct { - model.CommonResponse - TaobaoWlbOrderCreateResponse -} - -// 创建物流宝订单 成功返回结果 -type TaobaoWlbOrderCreateResponse struct { - XMLName xml.Name `xml:"wlb_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 物流宝订单创建成功后,返回物流宝的订单编号;如果订单创建失败,该字段为空。 - OrderCode string `json:"order_code,omitempty" xml:"order_code,omitempty"` - // 订单创建时间 - CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"` -} diff --git a/model/wlb/TaobaoWlbOrderJzpartnerQueryAPIRequest.go b/model/wlb/TaobaoWlbOrderJzpartnerQueryAPIRequest.go new file mode 100644 index 0000000000..e341609a6b --- /dev/null +++ b/model/wlb/TaobaoWlbOrderJzpartnerQueryAPIRequest.go @@ -0,0 +1,66 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询家装服务商列表 API请求 +taobao.wlb.order.jzpartner.query + +为支持家装类目的商家,对绑定家装物流服务的订单可以在商家的ERP中发货、批量发货,因此开发根据服务类型查询所有的服务商列表的接口 +*/ +type TaobaoWlbOrderJzpartnerQueryAPIRequest struct { + model.Params + // 淘宝交易订单号,如果不填写Tid则必须填写serviceType。如果填写Tid,则表明只需要查询对应订单的服务商。 + _taobaoTradeId int64 + // serviceType表示查询所有的支持服务类型的服务商。 家装干线服务 11 家装干支服务 12 家装干支装服务 13 卫浴大件干线 14 卫浴大件干支 15 卫浴大件安装 16 地板干线 17 地板干支 18 地板安装 19 灯具安装 20 卫浴小件安装 21 (注:同一个服务商针对不同类型的serviceType是具有不同的tpCode的) + _serviceType int64 +} + +// 初始化TaobaoWlbOrderJzpartnerQueryAPIRequest对象 +func NewTaobaoWlbOrderJzpartnerQueryRequest() *TaobaoWlbOrderJzpartnerQueryAPIRequest{ + return &TaobaoWlbOrderJzpartnerQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbOrderJzpartnerQueryAPIRequest) GetApiMethodName() string { + return "taobao.wlb.order.jzpartner.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbOrderJzpartnerQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TaobaoTradeId Setter +// 淘宝交易订单号,如果不填写Tid则必须填写serviceType。如果填写Tid,则表明只需要查询对应订单的服务商。 +func (r *TaobaoWlbOrderJzpartnerQueryAPIRequest) SetTaobaoTradeId(_taobaoTradeId int64) error { + r._taobaoTradeId = _taobaoTradeId + r.Set("taobao_trade_id", _taobaoTradeId) + return nil +} + +// TaobaoTradeId Getter +func (r TaobaoWlbOrderJzpartnerQueryAPIRequest) GetTaobaoTradeId() int64 { + return r._taobaoTradeId +} +// ServiceType Setter +// serviceType表示查询所有的支持服务类型的服务商。 家装干线服务 11 家装干支服务 12 家装干支装服务 13 卫浴大件干线 14 卫浴大件干支 15 卫浴大件安装 16 地板干线 17 地板干支 18 地板安装 19 灯具安装 20 卫浴小件安装 21 (注:同一个服务商针对不同类型的serviceType是具有不同的tpCode的) +func (r *TaobaoWlbOrderJzpartnerQueryAPIRequest) SetServiceType(_serviceType int64) error { + r._serviceType = _serviceType + r.Set("service_type", _serviceType) + return nil +} + +// ServiceType Getter +func (r TaobaoWlbOrderJzpartnerQueryAPIRequest) GetServiceType() int64 { + return r._serviceType +} diff --git a/model/wlb/TaobaoWlbOrderJzpartnerQueryAPIResponse.go b/model/wlb/TaobaoWlbOrderJzpartnerQueryAPIResponse.go new file mode 100644 index 0000000000..79ad0713f8 --- /dev/null +++ b/model/wlb/TaobaoWlbOrderJzpartnerQueryAPIResponse.go @@ -0,0 +1,33 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询家装服务商列表 API返回值 +taobao.wlb.order.jzpartner.query + +为支持家装类目的商家,对绑定家装物流服务的订单可以在商家的ERP中发货、批量发货,因此开发根据服务类型查询所有的服务商列表的接口 +*/ +type TaobaoWlbOrderJzpartnerQueryAPIResponse struct { + model.CommonResponse + TaobaoWlbOrderJzpartnerQueryAPIResponseModel +} + +// 查询家装服务商列表 成功返回结果 +type TaobaoWlbOrderJzpartnerQueryAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_order_jzpartner_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口查询成功或者失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 查询返回信息,如果失败,存储错误信息 + ResultInfo string `json:"result_info,omitempty" xml:"result_info,omitempty"` + // 物流配送服务商对象列表 + ServerList []PartnerNew `json:"server_list,omitempty" xml:"server_list>partner_new,omitempty"` + // 安装服务商列表 + InstallList []PartnerNew `json:"install_list,omitempty" xml:"install_list>partner_new,omitempty"` +} diff --git a/model/wlb/TaobaoWlbOrderJzpartnerQueryResponse.go b/model/wlb/TaobaoWlbOrderJzpartnerQueryResponse.go deleted file mode 100644 index c1ecf8055d..0000000000 --- a/model/wlb/TaobaoWlbOrderJzpartnerQueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询家装服务商列表 API返回值 -taobao.wlb.order.jzpartner.query - -为支持家装类目的商家,对绑定家装物流服务的订单可以在商家的ERP中发货、批量发货,因此开发根据服务类型查询所有的服务商列表的接口 -*/ -type TaobaoWlbOrderJzpartnerQueryAPIResponse struct { - model.CommonResponse - TaobaoWlbOrderJzpartnerQueryResponse -} - -// 查询家装服务商列表 成功返回结果 -type TaobaoWlbOrderJzpartnerQueryResponse struct { - XMLName xml.Name `xml:"wlb_order_jzpartner_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口查询成功或者失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 查询返回信息,如果失败,存储错误信息 - ResultInfo string `json:"result_info,omitempty" xml:"result_info,omitempty"` - // 物流配送服务商对象列表 - ServerList []PartnerNew `json:"server_list,omitempty" xml:"server_list>partner_new,omitempty"` - // 安装服务商列表 - InstallList []PartnerNew `json:"install_list,omitempty" xml:"install_list>partner_new,omitempty"` -} diff --git a/model/wlb/TaobaoWlbOrderJzwithinsConsignAPIRequest.go b/model/wlb/TaobaoWlbOrderJzwithinsConsignAPIRequest.go new file mode 100644 index 0000000000..3d2fcfc89c --- /dev/null +++ b/model/wlb/TaobaoWlbOrderJzwithinsConsignAPIRequest.go @@ -0,0 +1,94 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +家装发货接口 API请求 +taobao.wlb.order.jzwithins.consign + +为支持家装类目的商家,对绑定家装物流服务的订单可以在商家的ERP中发货、批量发货,因此开发带安装服务商的发货接口 +*/ +type TaobaoWlbOrderJzwithinsConsignAPIRequest struct { + model.Params + // 淘宝交易订单号 + _tid int64 + // 物流服务商信息 + _tmsPartner *JzPartnerNew + // 物流服务商信息 + _insPartner *JzPartnerNew + // 家装物流发货参数 + _jzConsignArgs *JzConsignArgsNew +} + +// 初始化TaobaoWlbOrderJzwithinsConsignAPIRequest对象 +func NewTaobaoWlbOrderJzwithinsConsignRequest() *TaobaoWlbOrderJzwithinsConsignAPIRequest{ + return &TaobaoWlbOrderJzwithinsConsignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbOrderJzwithinsConsignAPIRequest) GetApiMethodName() string { + return "taobao.wlb.order.jzwithins.consign" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbOrderJzwithinsConsignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 淘宝交易订单号 +func (r *TaobaoWlbOrderJzwithinsConsignAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoWlbOrderJzwithinsConsignAPIRequest) GetTid() int64 { + return r._tid +} +// TmsPartner Setter +// 物流服务商信息 +func (r *TaobaoWlbOrderJzwithinsConsignAPIRequest) SetTmsPartner(_tmsPartner *JzPartnerNew) error { + r._tmsPartner = _tmsPartner + r.Set("tms_partner", _tmsPartner) + return nil +} + +// TmsPartner Getter +func (r TaobaoWlbOrderJzwithinsConsignAPIRequest) GetTmsPartner() *JzPartnerNew { + return r._tmsPartner +} +// InsPartner Setter +// 物流服务商信息 +func (r *TaobaoWlbOrderJzwithinsConsignAPIRequest) SetInsPartner(_insPartner *JzPartnerNew) error { + r._insPartner = _insPartner + r.Set("ins_partner", _insPartner) + return nil +} + +// InsPartner Getter +func (r TaobaoWlbOrderJzwithinsConsignAPIRequest) GetInsPartner() *JzPartnerNew { + return r._insPartner +} +// JzConsignArgs Setter +// 家装物流发货参数 +func (r *TaobaoWlbOrderJzwithinsConsignAPIRequest) SetJzConsignArgs(_jzConsignArgs *JzConsignArgsNew) error { + r._jzConsignArgs = _jzConsignArgs + r.Set("jz_consign_args", _jzConsignArgs) + return nil +} + +// JzConsignArgs Getter +func (r TaobaoWlbOrderJzwithinsConsignAPIRequest) GetJzConsignArgs() *JzConsignArgsNew { + return r._jzConsignArgs +} diff --git a/model/wlb/TaobaoWlbOrderJzwithinsConsignAPIResponse.go b/model/wlb/TaobaoWlbOrderJzwithinsConsignAPIResponse.go new file mode 100644 index 0000000000..8f78cb661a --- /dev/null +++ b/model/wlb/TaobaoWlbOrderJzwithinsConsignAPIResponse.go @@ -0,0 +1,29 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +家装发货接口 API返回值 +taobao.wlb.order.jzwithins.consign + +为支持家装类目的商家,对绑定家装物流服务的订单可以在商家的ERP中发货、批量发货,因此开发带安装服务商的发货接口 +*/ +type TaobaoWlbOrderJzwithinsConsignAPIResponse struct { + model.CommonResponse + TaobaoWlbOrderJzwithinsConsignAPIResponseModel +} + +// 家装发货接口 成功返回结果 +type TaobaoWlbOrderJzwithinsConsignAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_order_jzwithins_consign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 发货成功或者失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 发货返回信息,如果发货错误则报出对应错误 + ResultInfo string `json:"result_info,omitempty" xml:"result_info,omitempty"` +} diff --git a/model/wlb/TaobaoWlbOrderJzwithinsConsignResponse.go b/model/wlb/TaobaoWlbOrderJzwithinsConsignResponse.go deleted file mode 100644 index 8385dbed0a..0000000000 --- a/model/wlb/TaobaoWlbOrderJzwithinsConsignResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -家装发货接口 API返回值 -taobao.wlb.order.jzwithins.consign - -为支持家装类目的商家,对绑定家装物流服务的订单可以在商家的ERP中发货、批量发货,因此开发带安装服务商的发货接口 -*/ -type TaobaoWlbOrderJzwithinsConsignAPIResponse struct { - model.CommonResponse - TaobaoWlbOrderJzwithinsConsignResponse -} - -// 家装发货接口 成功返回结果 -type TaobaoWlbOrderJzwithinsConsignResponse struct { - XMLName xml.Name `xml:"wlb_order_jzwithins_consign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 发货成功或者失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 发货返回信息,如果发货错误则报出对应错误 - ResultInfo string `json:"result_info,omitempty" xml:"result_info,omitempty"` -} diff --git a/model/wlb/TaobaoWlbOrderPageGetAPIRequest.go b/model/wlb/TaobaoWlbOrderPageGetAPIRequest.go new file mode 100644 index 0000000000..fa3a68c07e --- /dev/null +++ b/model/wlb/TaobaoWlbOrderPageGetAPIRequest.go @@ -0,0 +1,150 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询物流宝订单 API请求 +taobao.wlb.order.page.get + +分页查询物流宝订单 +*/ +type TaobaoWlbOrderPageGetAPIRequest struct { + model.Params + // 每页多少条 + _pageSize int64 + // 分页的第几页 + _pageNo int64 + // TMS拒签:-100 接收方拒签:-200 + _orderStatus int64 + // 物流订单编号 + _orderCode string + // 订单类型: (1)NORMAL_OUT :正常出库 (2)NORMAL_IN:正常入库 (3)RETURN_IN:退货入库 (4)EXCHANGE_OUT:换货出库 + _orderType string + // 订单子类型: (1)OTHER: 其他 (2)TAOBAO_TRADE: 淘宝交易 (3)OTHER_TRADE:其他交易 (4)ALLCOATE: 调拨 (5)CHECK: 盘点单 (6)PURCHASE: 采购单 + _orderSubType string + // 查询截止时间 + _endTime string + // 查询开始时间 + _startTime string +} + +// 初始化TaobaoWlbOrderPageGetAPIRequest对象 +func NewTaobaoWlbOrderPageGetRequest() *TaobaoWlbOrderPageGetAPIRequest{ + return &TaobaoWlbOrderPageGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbOrderPageGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.order.page.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbOrderPageGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// PageSize Setter +// 每页多少条 +func (r *TaobaoWlbOrderPageGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoWlbOrderPageGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 分页的第几页 +func (r *TaobaoWlbOrderPageGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoWlbOrderPageGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// OrderStatus Setter +// TMS拒签:-100 接收方拒签:-200 +func (r *TaobaoWlbOrderPageGetAPIRequest) SetOrderStatus(_orderStatus int64) error { + r._orderStatus = _orderStatus + r.Set("order_status", _orderStatus) + return nil +} + +// OrderStatus Getter +func (r TaobaoWlbOrderPageGetAPIRequest) GetOrderStatus() int64 { + return r._orderStatus +} +// OrderCode Setter +// 物流订单编号 +func (r *TaobaoWlbOrderPageGetAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r TaobaoWlbOrderPageGetAPIRequest) GetOrderCode() string { + return r._orderCode +} +// OrderType Setter +// 订单类型: (1)NORMAL_OUT :正常出库 (2)NORMAL_IN:正常入库 (3)RETURN_IN:退货入库 (4)EXCHANGE_OUT:换货出库 +func (r *TaobaoWlbOrderPageGetAPIRequest) SetOrderType(_orderType string) error { + r._orderType = _orderType + r.Set("order_type", _orderType) + return nil +} + +// OrderType Getter +func (r TaobaoWlbOrderPageGetAPIRequest) GetOrderType() string { + return r._orderType +} +// OrderSubType Setter +// 订单子类型: (1)OTHER: 其他 (2)TAOBAO_TRADE: 淘宝交易 (3)OTHER_TRADE:其他交易 (4)ALLCOATE: 调拨 (5)CHECK: 盘点单 (6)PURCHASE: 采购单 +func (r *TaobaoWlbOrderPageGetAPIRequest) SetOrderSubType(_orderSubType string) error { + r._orderSubType = _orderSubType + r.Set("order_sub_type", _orderSubType) + return nil +} + +// OrderSubType Getter +func (r TaobaoWlbOrderPageGetAPIRequest) GetOrderSubType() string { + return r._orderSubType +} +// EndTime Setter +// 查询截止时间 +func (r *TaobaoWlbOrderPageGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoWlbOrderPageGetAPIRequest) GetEndTime() string { + return r._endTime +} +// StartTime Setter +// 查询开始时间 +func (r *TaobaoWlbOrderPageGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoWlbOrderPageGetAPIRequest) GetStartTime() string { + return r._startTime +} diff --git a/model/wlb/TaobaoWlbOrderPageGetAPIResponse.go b/model/wlb/TaobaoWlbOrderPageGetAPIResponse.go new file mode 100644 index 0000000000..936e8d43b7 --- /dev/null +++ b/model/wlb/TaobaoWlbOrderPageGetAPIResponse.go @@ -0,0 +1,29 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分页查询物流宝订单 API返回值 +taobao.wlb.order.page.get + +分页查询物流宝订单 +*/ +type TaobaoWlbOrderPageGetAPIResponse struct { + model.CommonResponse + TaobaoWlbOrderPageGetAPIResponseModel +} + +// 分页查询物流宝订单 成功返回结果 +type TaobaoWlbOrderPageGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_order_page_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 物流宝订单对象 + OrderList []WlbOrder `json:"order_list,omitempty" xml:"order_list>wlb_order,omitempty"` + // 总条数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/wlb/TaobaoWlbOrderPageGetResponse.go b/model/wlb/TaobaoWlbOrderPageGetResponse.go deleted file mode 100644 index 6c7d16fc29..0000000000 --- a/model/wlb/TaobaoWlbOrderPageGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分页查询物流宝订单 API返回值 -taobao.wlb.order.page.get - -分页查询物流宝订单 -*/ -type TaobaoWlbOrderPageGetAPIResponse struct { - model.CommonResponse - TaobaoWlbOrderPageGetResponse -} - -// 分页查询物流宝订单 成功返回结果 -type TaobaoWlbOrderPageGetResponse struct { - XMLName xml.Name `xml:"wlb_order_page_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 物流宝订单对象 - OrderList []WlbOrder `json:"order_list,omitempty" xml:"order_list>wlb_order,omitempty"` - // 总条数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/wlb/TaobaoWlbOrderdetailDateGetAPIRequest.go b/model/wlb/TaobaoWlbOrderdetailDateGetAPIRequest.go new file mode 100644 index 0000000000..13f5ca5178 --- /dev/null +++ b/model/wlb/TaobaoWlbOrderdetailDateGetAPIRequest.go @@ -0,0 +1,94 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +按照日期范围查询物流订单详情 API请求 +taobao.wlb.orderdetail.date.get + +外部ERP可通过该接口查询一段时间内的物流宝订单,以及订单详情 +*/ +type TaobaoWlbOrderdetailDateGetAPIRequest struct { + model.Params + // 创建时间起始 + _startTime string + // 创建时间结束 + _endTime string + // 分页大小 + _pageSize int64 + // 分页下标 + _pageNo int64 +} + +// 初始化TaobaoWlbOrderdetailDateGetAPIRequest对象 +func NewTaobaoWlbOrderdetailDateGetRequest() *TaobaoWlbOrderdetailDateGetAPIRequest{ + return &TaobaoWlbOrderdetailDateGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbOrderdetailDateGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.orderdetail.date.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbOrderdetailDateGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartTime Setter +// 创建时间起始 +func (r *TaobaoWlbOrderdetailDateGetAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoWlbOrderdetailDateGetAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 创建时间结束 +func (r *TaobaoWlbOrderdetailDateGetAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoWlbOrderdetailDateGetAPIRequest) GetEndTime() string { + return r._endTime +} +// PageSize Setter +// 分页大小 +func (r *TaobaoWlbOrderdetailDateGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoWlbOrderdetailDateGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// PageNo Setter +// 分页下标 +func (r *TaobaoWlbOrderdetailDateGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoWlbOrderdetailDateGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/wlb/TaobaoWlbOrderdetailDateGetAPIResponse.go b/model/wlb/TaobaoWlbOrderdetailDateGetAPIResponse.go new file mode 100644 index 0000000000..41fd5642ed --- /dev/null +++ b/model/wlb/TaobaoWlbOrderdetailDateGetAPIResponse.go @@ -0,0 +1,29 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +按照日期范围查询物流订单详情 API返回值 +taobao.wlb.orderdetail.date.get + +外部ERP可通过该接口查询一段时间内的物流宝订单,以及订单详情 +*/ +type TaobaoWlbOrderdetailDateGetAPIResponse struct { + model.CommonResponse + TaobaoWlbOrderdetailDateGetAPIResponseModel +} + +// 按照日期范围查询物流订单详情 成功返回结果 +type TaobaoWlbOrderdetailDateGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_orderdetail_date_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 物流宝订单,并且包含订单详情 + OrderDetailList []WlbOrderDetail `json:"order_detail_list,omitempty" xml:"order_detail_list>wlb_order_detail,omitempty"` + // 总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/wlb/TaobaoWlbOrderdetailDateGetResponse.go b/model/wlb/TaobaoWlbOrderdetailDateGetResponse.go deleted file mode 100644 index 248ff4022d..0000000000 --- a/model/wlb/TaobaoWlbOrderdetailDateGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -按照日期范围查询物流订单详情 API返回值 -taobao.wlb.orderdetail.date.get - -外部ERP可通过该接口查询一段时间内的物流宝订单,以及订单详情 -*/ -type TaobaoWlbOrderdetailDateGetAPIResponse struct { - model.CommonResponse - TaobaoWlbOrderdetailDateGetResponse -} - -// 按照日期范围查询物流订单详情 成功返回结果 -type TaobaoWlbOrderdetailDateGetResponse struct { - XMLName xml.Name `xml:"wlb_orderdetail_date_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 物流宝订单,并且包含订单详情 - OrderDetailList []WlbOrderDetail `json:"order_detail_list,omitempty" xml:"order_detail_list>wlb_order_detail,omitempty"` - // 总数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/wlb/TaobaoWlbOrderstatusGetAPIRequest.go b/model/wlb/TaobaoWlbOrderstatusGetAPIRequest.go new file mode 100644 index 0000000000..00b751b853 --- /dev/null +++ b/model/wlb/TaobaoWlbOrderstatusGetAPIRequest.go @@ -0,0 +1,52 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物流宝订单流转状态查询 API请求 +taobao.wlb.orderstatus.get + +根据物流宝订单号查询物流宝订单至目前为止的流转状态列表 +*/ +type TaobaoWlbOrderstatusGetAPIRequest struct { + model.Params + // 物流宝订单编码 + _orderCode string +} + +// 初始化TaobaoWlbOrderstatusGetAPIRequest对象 +func NewTaobaoWlbOrderstatusGetRequest() *TaobaoWlbOrderstatusGetAPIRequest{ + return &TaobaoWlbOrderstatusGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbOrderstatusGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.orderstatus.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbOrderstatusGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderCode Setter +// 物流宝订单编码 +func (r *TaobaoWlbOrderstatusGetAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r TaobaoWlbOrderstatusGetAPIRequest) GetOrderCode() string { + return r._orderCode +} diff --git a/model/wlb/TaobaoWlbOrderstatusGetAPIResponse.go b/model/wlb/TaobaoWlbOrderstatusGetAPIResponse.go new file mode 100644 index 0000000000..c068440051 --- /dev/null +++ b/model/wlb/TaobaoWlbOrderstatusGetAPIResponse.go @@ -0,0 +1,27 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物流宝订单流转状态查询 API返回值 +taobao.wlb.orderstatus.get + +根据物流宝订单号查询物流宝订单至目前为止的流转状态列表 +*/ +type TaobaoWlbOrderstatusGetAPIResponse struct { + model.CommonResponse + TaobaoWlbOrderstatusGetAPIResponseModel +} + +// 物流宝订单流转状态查询 成功返回结果 +type TaobaoWlbOrderstatusGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_orderstatus_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单流转信息状态列表 + WlbOrderStatus []WlbProcessStatus `json:"wlb_order_status,omitempty" xml:"wlb_order_status>wlb_process_status,omitempty"` +} diff --git a/model/wlb/TaobaoWlbOrderstatusGetResponse.go b/model/wlb/TaobaoWlbOrderstatusGetResponse.go deleted file mode 100644 index 6c7218d810..0000000000 --- a/model/wlb/TaobaoWlbOrderstatusGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物流宝订单流转状态查询 API返回值 -taobao.wlb.orderstatus.get - -根据物流宝订单号查询物流宝订单至目前为止的流转状态列表 -*/ -type TaobaoWlbOrderstatusGetAPIResponse struct { - model.CommonResponse - TaobaoWlbOrderstatusGetResponse -} - -// 物流宝订单流转状态查询 成功返回结果 -type TaobaoWlbOrderstatusGetResponse struct { - XMLName xml.Name `xml:"wlb_orderstatus_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单流转信息状态列表 - WlbOrderStatus []WlbProcessStatus `json:"wlb_order_status,omitempty" xml:"wlb_order_status>wlb_process_status,omitempty"` -} diff --git a/model/wlb/TaobaoWlbOutInventoryChangeNotifyAPIRequest.go b/model/wlb/TaobaoWlbOutInventoryChangeNotifyAPIRequest.go new file mode 100644 index 0000000000..6bf0f76a20 --- /dev/null +++ b/model/wlb/TaobaoWlbOutInventoryChangeNotifyAPIRequest.go @@ -0,0 +1,164 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +外部库存变化通知(企业物流用户使用) API请求 +taobao.wlb.out.inventory.change.notify + +拥有自有仓的企业物流用户通过该接口把自有仓的库存通知到物流宝,由物流宝维护该库存,控制前台显示库存的准确性。 +*/ +type TaobaoWlbOutInventoryChangeNotifyAPIRequest struct { + model.Params + // WLB_ITEM--物流宝商品 IC_ITEM--淘宝商品 IC_SKU--淘宝sku + _type string + // OUT--出库 IN--入库 + _opType string + // (1)OTHER: 其他 (2)TAOBAO_TRADE: 淘宝交易 (3)OTHER_TRADE:其他交易 (4)ALLCOATE: 调拨 (5)CHECK:盘点 (6)PURCHASE:采购 + _source string + // 物流宝商品id或前台宝贝id(由type类型决定) + _itemId int64 + // 库存变化数量 + _changeCount int64 + // 本次库存变化后库存余额 + _resultCount int64 + // 订单号,如果source为TAOBAO_TRADE,order_source_code必须为淘宝交易号 + _orderSourceCode string + // 库存变化唯一标识,用于去重,一个外部唯一编码唯一标识一次库存变化。 + _outBizCode string + // 目前非必须,系统会选择默认值 + _storeCode string +} + +// 初始化TaobaoWlbOutInventoryChangeNotifyAPIRequest对象 +func NewTaobaoWlbOutInventoryChangeNotifyRequest() *TaobaoWlbOutInventoryChangeNotifyAPIRequest{ + return &TaobaoWlbOutInventoryChangeNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbOutInventoryChangeNotifyAPIRequest) GetApiMethodName() string { + return "taobao.wlb.out.inventory.change.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbOutInventoryChangeNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// WLB_ITEM--物流宝商品 IC_ITEM--淘宝商品 IC_SKU--淘宝sku +func (r *TaobaoWlbOutInventoryChangeNotifyAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoWlbOutInventoryChangeNotifyAPIRequest) GetType() string { + return r._type +} +// OpType Setter +// OUT--出库 IN--入库 +func (r *TaobaoWlbOutInventoryChangeNotifyAPIRequest) SetOpType(_opType string) error { + r._opType = _opType + r.Set("op_type", _opType) + return nil +} + +// OpType Getter +func (r TaobaoWlbOutInventoryChangeNotifyAPIRequest) GetOpType() string { + return r._opType +} +// Source Setter +// (1)OTHER: 其他 (2)TAOBAO_TRADE: 淘宝交易 (3)OTHER_TRADE:其他交易 (4)ALLCOATE: 调拨 (5)CHECK:盘点 (6)PURCHASE:采购 +func (r *TaobaoWlbOutInventoryChangeNotifyAPIRequest) SetSource(_source string) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoWlbOutInventoryChangeNotifyAPIRequest) GetSource() string { + return r._source +} +// ItemId Setter +// 物流宝商品id或前台宝贝id(由type类型决定) +func (r *TaobaoWlbOutInventoryChangeNotifyAPIRequest) SetItemId(_itemId int64) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoWlbOutInventoryChangeNotifyAPIRequest) GetItemId() int64 { + return r._itemId +} +// ChangeCount Setter +// 库存变化数量 +func (r *TaobaoWlbOutInventoryChangeNotifyAPIRequest) SetChangeCount(_changeCount int64) error { + r._changeCount = _changeCount + r.Set("change_count", _changeCount) + return nil +} + +// ChangeCount Getter +func (r TaobaoWlbOutInventoryChangeNotifyAPIRequest) GetChangeCount() int64 { + return r._changeCount +} +// ResultCount Setter +// 本次库存变化后库存余额 +func (r *TaobaoWlbOutInventoryChangeNotifyAPIRequest) SetResultCount(_resultCount int64) error { + r._resultCount = _resultCount + r.Set("result_count", _resultCount) + return nil +} + +// ResultCount Getter +func (r TaobaoWlbOutInventoryChangeNotifyAPIRequest) GetResultCount() int64 { + return r._resultCount +} +// OrderSourceCode Setter +// 订单号,如果source为TAOBAO_TRADE,order_source_code必须为淘宝交易号 +func (r *TaobaoWlbOutInventoryChangeNotifyAPIRequest) SetOrderSourceCode(_orderSourceCode string) error { + r._orderSourceCode = _orderSourceCode + r.Set("order_source_code", _orderSourceCode) + return nil +} + +// OrderSourceCode Getter +func (r TaobaoWlbOutInventoryChangeNotifyAPIRequest) GetOrderSourceCode() string { + return r._orderSourceCode +} +// OutBizCode Setter +// 库存变化唯一标识,用于去重,一个外部唯一编码唯一标识一次库存变化。 +func (r *TaobaoWlbOutInventoryChangeNotifyAPIRequest) SetOutBizCode(_outBizCode string) error { + r._outBizCode = _outBizCode + r.Set("out_biz_code", _outBizCode) + return nil +} + +// OutBizCode Getter +func (r TaobaoWlbOutInventoryChangeNotifyAPIRequest) GetOutBizCode() string { + return r._outBizCode +} +// StoreCode Setter +// 目前非必须,系统会选择默认值 +func (r *TaobaoWlbOutInventoryChangeNotifyAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoWlbOutInventoryChangeNotifyAPIRequest) GetStoreCode() string { + return r._storeCode +} diff --git a/model/wlb/TaobaoWlbOutInventoryChangeNotifyAPIResponse.go b/model/wlb/TaobaoWlbOutInventoryChangeNotifyAPIResponse.go new file mode 100644 index 0000000000..6819b1c8b7 --- /dev/null +++ b/model/wlb/TaobaoWlbOutInventoryChangeNotifyAPIResponse.go @@ -0,0 +1,27 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +外部库存变化通知(企业物流用户使用) API返回值 +taobao.wlb.out.inventory.change.notify + +拥有自有仓的企业物流用户通过该接口把自有仓的库存通知到物流宝,由物流宝维护该库存,控制前台显示库存的准确性。 +*/ +type TaobaoWlbOutInventoryChangeNotifyAPIResponse struct { + model.CommonResponse + TaobaoWlbOutInventoryChangeNotifyAPIResponseModel +} + +// 外部库存变化通知(企业物流用户使用) 成功返回结果 +type TaobaoWlbOutInventoryChangeNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_out_inventory_change_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 库存变化通知成功时间 + GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` +} diff --git a/model/wlb/TaobaoWlbOutInventoryChangeNotifyResponse.go b/model/wlb/TaobaoWlbOutInventoryChangeNotifyResponse.go deleted file mode 100644 index e00bdd54d5..0000000000 --- a/model/wlb/TaobaoWlbOutInventoryChangeNotifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -外部库存变化通知(企业物流用户使用) API返回值 -taobao.wlb.out.inventory.change.notify - -拥有自有仓的企业物流用户通过该接口把自有仓的库存通知到物流宝,由物流宝维护该库存,控制前台显示库存的准确性。 -*/ -type TaobaoWlbOutInventoryChangeNotifyAPIResponse struct { - model.CommonResponse - TaobaoWlbOutInventoryChangeNotifyResponse -} - -// 外部库存变化通知(企业物流用户使用) 成功返回结果 -type TaobaoWlbOutInventoryChangeNotifyResponse struct { - XMLName xml.Name `xml:"wlb_out_inventory_change_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 库存变化通知成功时间 - GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"` -} diff --git a/model/wlb/TaobaoWlbSubscriptionQueryAPIRequest.go b/model/wlb/TaobaoWlbSubscriptionQueryAPIRequest.go new file mode 100644 index 0000000000..2202fbf714 --- /dev/null +++ b/model/wlb/TaobaoWlbSubscriptionQueryAPIRequest.go @@ -0,0 +1,80 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商家定购的所有服务 API请求 +taobao.wlb.subscription.query + +查询商家定购的所有服务,可通过入参状态来筛选 +*/ +type TaobaoWlbSubscriptionQueryAPIRequest struct { + model.Params + // 状态
AUDITING 1-待审核;
CANCEL 2-撤销 ;
CHECKED 3-审核通过 ;
FAILED 4-审核未通过 ;
SYNCHRONIZING 5-同步中;
只允许输入上面指定的值,且可以为空,为空时查询所有状态。若输错了,则按AUDITING处理。 + _status string + // 当前页 + _pageNo int64 + // 分页记录个数,如果用户输入的记录数大于50,则一页显示50条记录 + _pageSize int64 +} + +// 初始化TaobaoWlbSubscriptionQueryAPIRequest对象 +func NewTaobaoWlbSubscriptionQueryRequest() *TaobaoWlbSubscriptionQueryAPIRequest{ + return &TaobaoWlbSubscriptionQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbSubscriptionQueryAPIRequest) GetApiMethodName() string { + return "taobao.wlb.subscription.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbSubscriptionQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Status Setter +// 状态
AUDITING 1-待审核;
CANCEL 2-撤销 ;
CHECKED 3-审核通过 ;
FAILED 4-审核未通过 ;
SYNCHRONIZING 5-同步中;
只允许输入上面指定的值,且可以为空,为空时查询所有状态。若输错了,则按AUDITING处理。 +func (r *TaobaoWlbSubscriptionQueryAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoWlbSubscriptionQueryAPIRequest) GetStatus() string { + return r._status +} +// PageNo Setter +// 当前页 +func (r *TaobaoWlbSubscriptionQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoWlbSubscriptionQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 分页记录个数,如果用户输入的记录数大于50,则一页显示50条记录 +func (r *TaobaoWlbSubscriptionQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoWlbSubscriptionQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/wlb/TaobaoWlbSubscriptionQueryAPIResponse.go b/model/wlb/TaobaoWlbSubscriptionQueryAPIResponse.go new file mode 100644 index 0000000000..753cbfaaa1 --- /dev/null +++ b/model/wlb/TaobaoWlbSubscriptionQueryAPIResponse.go @@ -0,0 +1,29 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询商家定购的所有服务 API返回值 +taobao.wlb.subscription.query + +查询商家定购的所有服务,可通过入参状态来筛选 +*/ +type TaobaoWlbSubscriptionQueryAPIResponse struct { + model.CommonResponse + TaobaoWlbSubscriptionQueryAPIResponseModel +} + +// 查询商家定购的所有服务 成功返回结果 +type TaobaoWlbSubscriptionQueryAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_subscription_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 卖家定购的服务列表 + SellerSubscriptionList []WlbSellerSubscription `json:"seller_subscription_list,omitempty" xml:"seller_subscription_list>wlb_seller_subscription,omitempty"` +} diff --git a/model/wlb/TaobaoWlbSubscriptionQueryResponse.go b/model/wlb/TaobaoWlbSubscriptionQueryResponse.go deleted file mode 100644 index 5d8715cf62..0000000000 --- a/model/wlb/TaobaoWlbSubscriptionQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询商家定购的所有服务 API返回值 -taobao.wlb.subscription.query - -查询商家定购的所有服务,可通过入参状态来筛选 -*/ -type TaobaoWlbSubscriptionQueryAPIResponse struct { - model.CommonResponse - TaobaoWlbSubscriptionQueryResponse -} - -// 查询商家定购的所有服务 成功返回结果 -type TaobaoWlbSubscriptionQueryResponse struct { - XMLName xml.Name `xml:"wlb_subscription_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果总数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 卖家定购的服务列表 - SellerSubscriptionList []WlbSellerSubscription `json:"seller_subscription_list,omitempty" xml:"seller_subscription_list>wlb_seller_subscription,omitempty"` -} diff --git a/model/wlb/TaobaoWlbTmsorderQueryAPIRequest.go b/model/wlb/TaobaoWlbTmsorderQueryAPIRequest.go new file mode 100644 index 0000000000..cb8822e1b3 --- /dev/null +++ b/model/wlb/TaobaoWlbTmsorderQueryAPIRequest.go @@ -0,0 +1,80 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过物流订单编号查询物流信息 API请求 +taobao.wlb.tmsorder.query + +通过物流订单编号分页查询物流信息 +*/ +type TaobaoWlbTmsorderQueryAPIRequest struct { + model.Params + // 物流订单编号 + _orderCode string + // 当前页 + _pageNo int64 + // 分页记录个数,如果用户输入的记录数大于50,则一页显示50条记录 + _pageSize int64 +} + +// 初始化TaobaoWlbTmsorderQueryAPIRequest对象 +func NewTaobaoWlbTmsorderQueryRequest() *TaobaoWlbTmsorderQueryAPIRequest{ + return &TaobaoWlbTmsorderQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbTmsorderQueryAPIRequest) GetApiMethodName() string { + return "taobao.wlb.tmsorder.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbTmsorderQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderCode Setter +// 物流订单编号 +func (r *TaobaoWlbTmsorderQueryAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r TaobaoWlbTmsorderQueryAPIRequest) GetOrderCode() string { + return r._orderCode +} +// PageNo Setter +// 当前页 +func (r *TaobaoWlbTmsorderQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoWlbTmsorderQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 分页记录个数,如果用户输入的记录数大于50,则一页显示50条记录 +func (r *TaobaoWlbTmsorderQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoWlbTmsorderQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/wlb/TaobaoWlbTmsorderQueryAPIResponse.go b/model/wlb/TaobaoWlbTmsorderQueryAPIResponse.go new file mode 100644 index 0000000000..db97997c59 --- /dev/null +++ b/model/wlb/TaobaoWlbTmsorderQueryAPIResponse.go @@ -0,0 +1,29 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过物流订单编号查询物流信息 API返回值 +taobao.wlb.tmsorder.query + +通过物流订单编号分页查询物流信息 +*/ +type TaobaoWlbTmsorderQueryAPIResponse struct { + model.CommonResponse + TaobaoWlbTmsorderQueryAPIResponseModel +} + +// 通过物流订单编号查询物流信息 成功返回结果 +type TaobaoWlbTmsorderQueryAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_tmsorder_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 物流订单运单信息列表 + TmsOrderList []WlbTmsOrder `json:"tms_order_list,omitempty" xml:"tms_order_list>wlb_tms_order,omitempty"` + // 结果总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` +} diff --git a/model/wlb/TaobaoWlbTmsorderQueryResponse.go b/model/wlb/TaobaoWlbTmsorderQueryResponse.go deleted file mode 100644 index 0ecebdb3ee..0000000000 --- a/model/wlb/TaobaoWlbTmsorderQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过物流订单编号查询物流信息 API返回值 -taobao.wlb.tmsorder.query - -通过物流订单编号分页查询物流信息 -*/ -type TaobaoWlbTmsorderQueryAPIResponse struct { - model.CommonResponse - TaobaoWlbTmsorderQueryResponse -} - -// 通过物流订单编号查询物流信息 成功返回结果 -type TaobaoWlbTmsorderQueryResponse struct { - XMLName xml.Name `xml:"wlb_tmsorder_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 物流订单运单信息列表 - TmsOrderList []WlbTmsOrder `json:"tms_order_list,omitempty" xml:"tms_order_list>wlb_tms_order,omitempty"` - // 结果总数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` -} diff --git a/model/wlb/TaobaoWlbTradeorderGetAPIRequest.go b/model/wlb/TaobaoWlbTradeorderGetAPIRequest.go new file mode 100644 index 0000000000..205f729039 --- /dev/null +++ b/model/wlb/TaobaoWlbTradeorderGetAPIRequest.go @@ -0,0 +1,80 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据交易号获取物流宝订单 API请求 +taobao.wlb.tradeorder.get + +根据交易类型和交易id查询物流宝订单详情 +*/ +type TaobaoWlbTradeorderGetAPIRequest struct { + model.Params + // 子交易号 + _subTradeId string + // 指定交易类型的交易号 + _tradeId string + // 交易类型: TAOBAO--淘宝交易 OTHER_TRADE--其它交易 + _tradeType string +} + +// 初始化TaobaoWlbTradeorderGetAPIRequest对象 +func NewTaobaoWlbTradeorderGetRequest() *TaobaoWlbTradeorderGetAPIRequest{ + return &TaobaoWlbTradeorderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbTradeorderGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.tradeorder.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbTradeorderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SubTradeId Setter +// 子交易号 +func (r *TaobaoWlbTradeorderGetAPIRequest) SetSubTradeId(_subTradeId string) error { + r._subTradeId = _subTradeId + r.Set("sub_trade_id", _subTradeId) + return nil +} + +// SubTradeId Getter +func (r TaobaoWlbTradeorderGetAPIRequest) GetSubTradeId() string { + return r._subTradeId +} +// TradeId Setter +// 指定交易类型的交易号 +func (r *TaobaoWlbTradeorderGetAPIRequest) SetTradeId(_tradeId string) error { + r._tradeId = _tradeId + r.Set("trade_id", _tradeId) + return nil +} + +// TradeId Getter +func (r TaobaoWlbTradeorderGetAPIRequest) GetTradeId() string { + return r._tradeId +} +// TradeType Setter +// 交易类型: TAOBAO--淘宝交易 OTHER_TRADE--其它交易 +func (r *TaobaoWlbTradeorderGetAPIRequest) SetTradeType(_tradeType string) error { + r._tradeType = _tradeType + r.Set("trade_type", _tradeType) + return nil +} + +// TradeType Getter +func (r TaobaoWlbTradeorderGetAPIRequest) GetTradeType() string { + return r._tradeType +} diff --git a/model/wlb/TaobaoWlbTradeorderGetAPIResponse.go b/model/wlb/TaobaoWlbTradeorderGetAPIResponse.go new file mode 100644 index 0000000000..94bff56423 --- /dev/null +++ b/model/wlb/TaobaoWlbTradeorderGetAPIResponse.go @@ -0,0 +1,27 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据交易号获取物流宝订单 API返回值 +taobao.wlb.tradeorder.get + +根据交易类型和交易id查询物流宝订单详情 +*/ +type TaobaoWlbTradeorderGetAPIResponse struct { + model.CommonResponse + TaobaoWlbTradeorderGetAPIResponseModel +} + +// 根据交易号获取物流宝订单 成功返回结果 +type TaobaoWlbTradeorderGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_tradeorder_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 物流宝订单对象 + WlbOrderList []WlbOrder `json:"wlb_order_list,omitempty" xml:"wlb_order_list>wlb_order,omitempty"` +} diff --git a/model/wlb/TaobaoWlbTradeorderGetResponse.go b/model/wlb/TaobaoWlbTradeorderGetResponse.go deleted file mode 100644 index d807534053..0000000000 --- a/model/wlb/TaobaoWlbTradeorderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据交易号获取物流宝订单 API返回值 -taobao.wlb.tradeorder.get - -根据交易类型和交易id查询物流宝订单详情 -*/ -type TaobaoWlbTradeorderGetAPIResponse struct { - model.CommonResponse - TaobaoWlbTradeorderGetResponse -} - -// 根据交易号获取物流宝订单 成功返回结果 -type TaobaoWlbTradeorderGetResponse struct { - XMLName xml.Name `xml:"wlb_tradeorder_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 物流宝订单对象 - WlbOrderList []WlbOrder `json:"wlb_order_list,omitempty" xml:"wlb_order_list>wlb_order,omitempty"` -} diff --git a/model/wlb/TaobaoWlbWaybillShengxianGetAPIRequest.go b/model/wlb/TaobaoWlbWaybillShengxianGetAPIRequest.go new file mode 100644 index 0000000000..d075144496 --- /dev/null +++ b/model/wlb/TaobaoWlbWaybillShengxianGetAPIRequest.go @@ -0,0 +1,136 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家获取生鲜电子面单号 API请求 +taobao.wlb.waybill.shengxian.get + +商家通过交易订单号获取电子面单接口 +*/ +type TaobaoWlbWaybillShengxianGetAPIRequest struct { + model.Params + // 物流服务方代码,生鲜配送:YXSR + _bizCode string + // 物流服务类型。冷链:602,常温:502 + _deliveryType string + // 商家淘宝地址信息ID + _senderAddressId string + // 仓库的服务代码标示,代码一个仓库的实体。(可以通过taobao.wlb.stores.baseinfo.get接口查询) + _serviceCode string + // 订单渠道: 淘宝平台订单:"TB"; 天猫平台订单:"TM"; 京东:"JD"; 拍拍:"PP"; 易迅平台订单:"YX"; 一号店平台订单:"YHD"; 当当网平台订单:"DD"; EBAY:"EBAY"; QQ网购:"QQ"; 苏宁:"SN"; 国美:"GM"; 唯品会:"WPH"; 聚美:"Jm"; 乐峰:"LF"; 蘑菇街:"MGJ"; 聚尚:"JS"; 银泰:"YT"; VANCL:"VANCL"; 邮乐:"YL"; 优购:"YG"; 拍鞋:"PX"; 1688平台:"1688"; + _orderChannelsType string + // 交易号,传入交易号不能存在拆单场景。 + _tradeId string + // 预留扩展字段 + _feature string +} + +// 初始化TaobaoWlbWaybillShengxianGetAPIRequest对象 +func NewTaobaoWlbWaybillShengxianGetRequest() *TaobaoWlbWaybillShengxianGetAPIRequest{ + return &TaobaoWlbWaybillShengxianGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWaybillShengxianGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.waybill.shengxian.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWaybillShengxianGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BizCode Setter +// 物流服务方代码,生鲜配送:YXSR +func (r *TaobaoWlbWaybillShengxianGetAPIRequest) SetBizCode(_bizCode string) error { + r._bizCode = _bizCode + r.Set("biz_code", _bizCode) + return nil +} + +// BizCode Getter +func (r TaobaoWlbWaybillShengxianGetAPIRequest) GetBizCode() string { + return r._bizCode +} +// DeliveryType Setter +// 物流服务类型。冷链:602,常温:502 +func (r *TaobaoWlbWaybillShengxianGetAPIRequest) SetDeliveryType(_deliveryType string) error { + r._deliveryType = _deliveryType + r.Set("delivery_type", _deliveryType) + return nil +} + +// DeliveryType Getter +func (r TaobaoWlbWaybillShengxianGetAPIRequest) GetDeliveryType() string { + return r._deliveryType +} +// SenderAddressId Setter +// 商家淘宝地址信息ID +func (r *TaobaoWlbWaybillShengxianGetAPIRequest) SetSenderAddressId(_senderAddressId string) error { + r._senderAddressId = _senderAddressId + r.Set("sender_address_id", _senderAddressId) + return nil +} + +// SenderAddressId Getter +func (r TaobaoWlbWaybillShengxianGetAPIRequest) GetSenderAddressId() string { + return r._senderAddressId +} +// ServiceCode Setter +// 仓库的服务代码标示,代码一个仓库的实体。(可以通过taobao.wlb.stores.baseinfo.get接口查询) +func (r *TaobaoWlbWaybillShengxianGetAPIRequest) SetServiceCode(_serviceCode string) error { + r._serviceCode = _serviceCode + r.Set("service_code", _serviceCode) + return nil +} + +// ServiceCode Getter +func (r TaobaoWlbWaybillShengxianGetAPIRequest) GetServiceCode() string { + return r._serviceCode +} +// OrderChannelsType Setter +// 订单渠道: 淘宝平台订单:"TB"; 天猫平台订单:"TM"; 京东:"JD"; 拍拍:"PP"; 易迅平台订单:"YX"; 一号店平台订单:"YHD"; 当当网平台订单:"DD"; EBAY:"EBAY"; QQ网购:"QQ"; 苏宁:"SN"; 国美:"GM"; 唯品会:"WPH"; 聚美:"Jm"; 乐峰:"LF"; 蘑菇街:"MGJ"; 聚尚:"JS"; 银泰:"YT"; VANCL:"VANCL"; 邮乐:"YL"; 优购:"YG"; 拍鞋:"PX"; 1688平台:"1688"; +func (r *TaobaoWlbWaybillShengxianGetAPIRequest) SetOrderChannelsType(_orderChannelsType string) error { + r._orderChannelsType = _orderChannelsType + r.Set("order_channels_type", _orderChannelsType) + return nil +} + +// OrderChannelsType Getter +func (r TaobaoWlbWaybillShengxianGetAPIRequest) GetOrderChannelsType() string { + return r._orderChannelsType +} +// TradeId Setter +// 交易号,传入交易号不能存在拆单场景。 +func (r *TaobaoWlbWaybillShengxianGetAPIRequest) SetTradeId(_tradeId string) error { + r._tradeId = _tradeId + r.Set("trade_id", _tradeId) + return nil +} + +// TradeId Getter +func (r TaobaoWlbWaybillShengxianGetAPIRequest) GetTradeId() string { + return r._tradeId +} +// Feature Setter +// 预留扩展字段 +func (r *TaobaoWlbWaybillShengxianGetAPIRequest) SetFeature(_feature string) error { + r._feature = _feature + r.Set("feature", _feature) + return nil +} + +// Feature Getter +func (r TaobaoWlbWaybillShengxianGetAPIRequest) GetFeature() string { + return r._feature +} diff --git a/model/wlb/TaobaoWlbWaybillShengxianGetAPIResponse.go b/model/wlb/TaobaoWlbWaybillShengxianGetAPIResponse.go new file mode 100644 index 0000000000..9582b2ab92 --- /dev/null +++ b/model/wlb/TaobaoWlbWaybillShengxianGetAPIResponse.go @@ -0,0 +1,29 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家获取生鲜电子面单号 API返回值 +taobao.wlb.waybill.shengxian.get + +商家通过交易订单号获取电子面单接口 +*/ +type TaobaoWlbWaybillShengxianGetAPIResponse struct { + model.CommonResponse + TaobaoWlbWaybillShengxianGetAPIResponseModel +} + +// 商家获取生鲜电子面单号 成功返回结果 +type TaobaoWlbWaybillShengxianGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_waybill_shengxian_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 生成是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 成功后返回的生鲜电子面单信息 + FreshWaybill *FreshWaybill `json:"fresh_waybill,omitempty" xml:"fresh_waybill,omitempty"` +} diff --git a/model/wlb/TaobaoWlbWaybillShengxianGetResponse.go b/model/wlb/TaobaoWlbWaybillShengxianGetResponse.go deleted file mode 100644 index 2073cf38a7..0000000000 --- a/model/wlb/TaobaoWlbWaybillShengxianGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家获取生鲜电子面单号 API返回值 -taobao.wlb.waybill.shengxian.get - -商家通过交易订单号获取电子面单接口 -*/ -type TaobaoWlbWaybillShengxianGetAPIResponse struct { - model.CommonResponse - TaobaoWlbWaybillShengxianGetResponse -} - -// 商家获取生鲜电子面单号 成功返回结果 -type TaobaoWlbWaybillShengxianGetResponse struct { - XMLName xml.Name `xml:"wlb_waybill_shengxian_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 生成是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 成功后返回的生鲜电子面单信息 - FreshWaybill *FreshWaybill `json:"fresh_waybill,omitempty" xml:"fresh_waybill,omitempty"` -} diff --git a/model/wlb/TaobaoWlbWlborderGetAPIRequest.go b/model/wlb/TaobaoWlbWlborderGetAPIRequest.go new file mode 100644 index 0000000000..e0d544e173 --- /dev/null +++ b/model/wlb/TaobaoWlbWlborderGetAPIRequest.go @@ -0,0 +1,52 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据物流宝订单编号查询物流宝订单概要信息 API请求 +taobao.wlb.wlborder.get + +根据物流宝订单编号查询物流宝订单概要信息 +*/ +type TaobaoWlbWlborderGetAPIRequest struct { + model.Params + // 物流宝订单编码 + _wlbOrderCode string +} + +// 初始化TaobaoWlbWlborderGetAPIRequest对象 +func NewTaobaoWlbWlborderGetRequest() *TaobaoWlbWlborderGetAPIRequest{ + return &TaobaoWlbWlborderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWlborderGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.wlborder.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWlborderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WlbOrderCode Setter +// 物流宝订单编码 +func (r *TaobaoWlbWlborderGetAPIRequest) SetWlbOrderCode(_wlbOrderCode string) error { + r._wlbOrderCode = _wlbOrderCode + r.Set("wlb_order_code", _wlbOrderCode) + return nil +} + +// WlbOrderCode Getter +func (r TaobaoWlbWlborderGetAPIRequest) GetWlbOrderCode() string { + return r._wlbOrderCode +} diff --git a/model/wlb/TaobaoWlbWlborderGetAPIResponse.go b/model/wlb/TaobaoWlbWlborderGetAPIResponse.go new file mode 100644 index 0000000000..edf11c21b5 --- /dev/null +++ b/model/wlb/TaobaoWlbWlborderGetAPIResponse.go @@ -0,0 +1,27 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据物流宝订单编号查询物流宝订单概要信息 API返回值 +taobao.wlb.wlborder.get + +根据物流宝订单编号查询物流宝订单概要信息 +*/ +type TaobaoWlbWlborderGetAPIResponse struct { + model.CommonResponse + TaobaoWlbWlborderGetAPIResponseModel +} + +// 根据物流宝订单编号查询物流宝订单概要信息 成功返回结果 +type TaobaoWlbWlborderGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_wlborder_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 物流宝订单对象 + WlbOrder *WlbOrder `json:"wlb_order,omitempty" xml:"wlb_order,omitempty"` +} diff --git a/model/wlb/TaobaoWlbWlborderGetResponse.go b/model/wlb/TaobaoWlbWlborderGetResponse.go deleted file mode 100644 index 1e8261eb1f..0000000000 --- a/model/wlb/TaobaoWlbWlborderGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据物流宝订单编号查询物流宝订单概要信息 API返回值 -taobao.wlb.wlborder.get - -根据物流宝订单编号查询物流宝订单概要信息 -*/ -type TaobaoWlbWlborderGetAPIResponse struct { - model.CommonResponse - TaobaoWlbWlborderGetResponse -} - -// 根据物流宝订单编号查询物流宝订单概要信息 成功返回结果 -type TaobaoWlbWlborderGetResponse struct { - XMLName xml.Name `xml:"wlb_wlborder_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 物流宝订单对象 - WlbOrder *WlbOrder `json:"wlb_order,omitempty" xml:"wlb_order,omitempty"` -} diff --git a/model/wlb/TaobaoWlbWmsInventoryLackUploadAPIRequest.go b/model/wlb/TaobaoWlbWmsInventoryLackUploadAPIRequest.go new file mode 100644 index 0000000000..344f6c2e59 --- /dev/null +++ b/model/wlb/TaobaoWlbWmsInventoryLackUploadAPIRequest.go @@ -0,0 +1,52 @@ +package wlb + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +缺货通知 API请求 +taobao.wlb.wms.inventory.lack.upload + +缺货通知 +*/ +type TaobaoWlbWmsInventoryLackUploadAPIRequest struct { + model.Params + // 缺货通知信息 + _content *WlbWmsInventoryLackUpload +} + +// 初始化TaobaoWlbWmsInventoryLackUploadAPIRequest对象 +func NewTaobaoWlbWmsInventoryLackUploadRequest() *TaobaoWlbWmsInventoryLackUploadAPIRequest{ + return &TaobaoWlbWmsInventoryLackUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWmsInventoryLackUploadAPIRequest) GetApiMethodName() string { + return "taobao.wlb.wms.inventory.lack.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWmsInventoryLackUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Content Setter +// 缺货通知信息 +func (r *TaobaoWlbWmsInventoryLackUploadAPIRequest) SetContent(_content *WlbWmsInventoryLackUpload) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r TaobaoWlbWmsInventoryLackUploadAPIRequest) GetContent() *WlbWmsInventoryLackUpload { + return r._content +} diff --git a/model/wlb/TaobaoWlbWmsInventoryLackUploadAPIResponse.go b/model/wlb/TaobaoWlbWmsInventoryLackUploadAPIResponse.go new file mode 100644 index 0000000000..b089a4d029 --- /dev/null +++ b/model/wlb/TaobaoWlbWmsInventoryLackUploadAPIResponse.go @@ -0,0 +1,27 @@ +package wlb + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +缺货通知 API返回值 +taobao.wlb.wms.inventory.lack.upload + +缺货通知 +*/ +type TaobaoWlbWmsInventoryLackUploadAPIResponse struct { + model.CommonResponse + TaobaoWlbWmsInventoryLackUploadAPIResponseModel +} + +// 缺货通知 成功返回结果 +type TaobaoWlbWmsInventoryLackUploadAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_wms_inventory_lack_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 缺货回告 + Result *WlbWmsInventoryLackUploadResp `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wlb/TaobaoWlbWmsInventoryLackUploadResponse.go b/model/wlb/TaobaoWlbWmsInventoryLackUploadResponse.go deleted file mode 100644 index b49ed4c392..0000000000 --- a/model/wlb/TaobaoWlbWmsInventoryLackUploadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wlb - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -缺货通知 API返回值 -taobao.wlb.wms.inventory.lack.upload - -缺货通知 -*/ -type TaobaoWlbWmsInventoryLackUploadAPIResponse struct { - model.CommonResponse - TaobaoWlbWmsInventoryLackUploadResponse -} - -// 缺货通知 成功返回结果 -type TaobaoWlbWmsInventoryLackUploadResponse struct { - XMLName xml.Name `xml:"wlb_wms_inventory_lack_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 缺货回告 - Result *WlbWmsInventoryLackUploadResp `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wlbimports/TaobaoWlbCrossborderWaybillGetAPIRequest.go b/model/wlbimports/TaobaoWlbCrossborderWaybillGetAPIRequest.go new file mode 100644 index 0000000000..a3de634ea8 --- /dev/null +++ b/model/wlbimports/TaobaoWlbCrossborderWaybillGetAPIRequest.go @@ -0,0 +1,53 @@ +package wlbimports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +集货商家pdf和云打印面单获取,pdf需要配置白名单 API请求 +taobao.wlb.crossborder.waybill.get + +【TOF】欧洲供应商PDF格式电子面单渲染下发 + 需求链接:https://aone.alibaba-inc.com/req/21210808 +*/ +type TaobaoWlbCrossborderWaybillGetAPIRequest struct { + model.Params + // 菜鸟物流单号 + _orderCode string +} + +// 初始化TaobaoWlbCrossborderWaybillGetAPIRequest对象 +func NewTaobaoWlbCrossborderWaybillGetRequest() *TaobaoWlbCrossborderWaybillGetAPIRequest{ + return &TaobaoWlbCrossborderWaybillGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbCrossborderWaybillGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.crossborder.waybill.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbCrossborderWaybillGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderCode Setter +// 菜鸟物流单号 +func (r *TaobaoWlbCrossborderWaybillGetAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r TaobaoWlbCrossborderWaybillGetAPIRequest) GetOrderCode() string { + return r._orderCode +} diff --git a/model/wlbimports/TaobaoWlbCrossborderWaybillGetAPIResponse.go b/model/wlbimports/TaobaoWlbCrossborderWaybillGetAPIResponse.go new file mode 100644 index 0000000000..bf24ca2087 --- /dev/null +++ b/model/wlbimports/TaobaoWlbCrossborderWaybillGetAPIResponse.go @@ -0,0 +1,28 @@ +package wlbimports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +集货商家pdf和云打印面单获取,pdf需要配置白名单 API返回值 +taobao.wlb.crossborder.waybill.get + +【TOF】欧洲供应商PDF格式电子面单渲染下发 + 需求链接:https://aone.alibaba-inc.com/req/21210808 +*/ +type TaobaoWlbCrossborderWaybillGetAPIResponse struct { + model.CommonResponse + TaobaoWlbCrossborderWaybillGetAPIResponseModel +} + +// 集货商家pdf和云打印面单获取,pdf需要配置白名单 成功返回结果 +type TaobaoWlbCrossborderWaybillGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_crossborder_waybill_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wlbimports/TaobaoWlbCrossborderWaybillGetResponse.go b/model/wlbimports/TaobaoWlbCrossborderWaybillGetResponse.go deleted file mode 100644 index 73acc42d2f..0000000000 --- a/model/wlbimports/TaobaoWlbCrossborderWaybillGetResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package wlbimports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -集货商家pdf和云打印面单获取,pdf需要配置白名单 API返回值 -taobao.wlb.crossborder.waybill.get - -【TOF】欧洲供应商PDF格式电子面单渲染下发 - 需求链接:https://aone.alibaba-inc.com/req/21210808 -*/ -type TaobaoWlbCrossborderWaybillGetAPIResponse struct { - model.CommonResponse - TaobaoWlbCrossborderWaybillGetResponse -} - -// 集货商家pdf和云打印面单获取,pdf需要配置白名单 成功返回结果 -type TaobaoWlbCrossborderWaybillGetResponse struct { - XMLName xml.Name `xml:"wlb_crossborder_waybill_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wlbimports/TaobaoWlbImportsGeneralConsignAPIRequest.go b/model/wlbimports/TaobaoWlbImportsGeneralConsignAPIRequest.go new file mode 100644 index 0000000000..d12b001996 --- /dev/null +++ b/model/wlbimports/TaobaoWlbImportsGeneralConsignAPIRequest.go @@ -0,0 +1,153 @@ +package wlbimports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +一般进口发货 API请求 +taobao.wlb.imports.general.consign + +将订单信息发送到菜鸟海外转运仓; +业务规则: +1)交易订单为待发货状态。 +2)单笔订单多个商品,交易金额不能大于1000人民币。 +*/ +type TaobaoWlbImportsGeneralConsignAPIRequest struct { + model.Params + // 交易订单id + _tradeOrderId int64 + // 物流资源ID + _resourceId int64 + // 仓库编码 + _storeCode string + // 第1段物流承运商 + _firstLogistics string + // 第1段物流运单号 + _firstWaybillno string + // 卖家发货地址库ID;不填的话取默认发货地址;如果填写的senderId对应多个地址,取第一个 + _senderId int64 + // 卖家退货地址库ID;不填写的话取默认退货地址;如果填写的cancelId对应多个地址,取第一个 + _cancelId int64 + // 增值服务编码.多个以逗号分隔 + _vasCode string +} + +// 初始化TaobaoWlbImportsGeneralConsignAPIRequest对象 +func NewTaobaoWlbImportsGeneralConsignRequest() *TaobaoWlbImportsGeneralConsignAPIRequest{ + return &TaobaoWlbImportsGeneralConsignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbImportsGeneralConsignAPIRequest) GetApiMethodName() string { + return "taobao.wlb.imports.general.consign" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbImportsGeneralConsignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeOrderId Setter +// 交易订单id +func (r *TaobaoWlbImportsGeneralConsignAPIRequest) SetTradeOrderId(_tradeOrderId int64) error { + r._tradeOrderId = _tradeOrderId + r.Set("trade_order_id", _tradeOrderId) + return nil +} + +// TradeOrderId Getter +func (r TaobaoWlbImportsGeneralConsignAPIRequest) GetTradeOrderId() int64 { + return r._tradeOrderId +} +// ResourceId Setter +// 物流资源ID +func (r *TaobaoWlbImportsGeneralConsignAPIRequest) SetResourceId(_resourceId int64) error { + r._resourceId = _resourceId + r.Set("resource_id", _resourceId) + return nil +} + +// ResourceId Getter +func (r TaobaoWlbImportsGeneralConsignAPIRequest) GetResourceId() int64 { + return r._resourceId +} +// StoreCode Setter +// 仓库编码 +func (r *TaobaoWlbImportsGeneralConsignAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoWlbImportsGeneralConsignAPIRequest) GetStoreCode() string { + return r._storeCode +} +// FirstLogistics Setter +// 第1段物流承运商 +func (r *TaobaoWlbImportsGeneralConsignAPIRequest) SetFirstLogistics(_firstLogistics string) error { + r._firstLogistics = _firstLogistics + r.Set("first_logistics", _firstLogistics) + return nil +} + +// FirstLogistics Getter +func (r TaobaoWlbImportsGeneralConsignAPIRequest) GetFirstLogistics() string { + return r._firstLogistics +} +// FirstWaybillno Setter +// 第1段物流运单号 +func (r *TaobaoWlbImportsGeneralConsignAPIRequest) SetFirstWaybillno(_firstWaybillno string) error { + r._firstWaybillno = _firstWaybillno + r.Set("first_waybillno", _firstWaybillno) + return nil +} + +// FirstWaybillno Getter +func (r TaobaoWlbImportsGeneralConsignAPIRequest) GetFirstWaybillno() string { + return r._firstWaybillno +} +// SenderId Setter +// 卖家发货地址库ID;不填的话取默认发货地址;如果填写的senderId对应多个地址,取第一个 +func (r *TaobaoWlbImportsGeneralConsignAPIRequest) SetSenderId(_senderId int64) error { + r._senderId = _senderId + r.Set("sender_id", _senderId) + return nil +} + +// SenderId Getter +func (r TaobaoWlbImportsGeneralConsignAPIRequest) GetSenderId() int64 { + return r._senderId +} +// CancelId Setter +// 卖家退货地址库ID;不填写的话取默认退货地址;如果填写的cancelId对应多个地址,取第一个 +func (r *TaobaoWlbImportsGeneralConsignAPIRequest) SetCancelId(_cancelId int64) error { + r._cancelId = _cancelId + r.Set("cancel_id", _cancelId) + return nil +} + +// CancelId Getter +func (r TaobaoWlbImportsGeneralConsignAPIRequest) GetCancelId() int64 { + return r._cancelId +} +// VasCode Setter +// 增值服务编码.多个以逗号分隔 +func (r *TaobaoWlbImportsGeneralConsignAPIRequest) SetVasCode(_vasCode string) error { + r._vasCode = _vasCode + r.Set("vas_code", _vasCode) + return nil +} + +// VasCode Getter +func (r TaobaoWlbImportsGeneralConsignAPIRequest) GetVasCode() string { + return r._vasCode +} diff --git a/model/wlbimports/TaobaoWlbImportsGeneralConsignAPIResponse.go b/model/wlbimports/TaobaoWlbImportsGeneralConsignAPIResponse.go new file mode 100644 index 0000000000..70db85871d --- /dev/null +++ b/model/wlbimports/TaobaoWlbImportsGeneralConsignAPIResponse.go @@ -0,0 +1,36 @@ +package wlbimports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +一般进口发货 API返回值 +taobao.wlb.imports.general.consign + +将订单信息发送到菜鸟海外转运仓; +业务规则: +1)交易订单为待发货状态。 +2)单笔订单多个商品,交易金额不能大于1000人民币。 +*/ +type TaobaoWlbImportsGeneralConsignAPIResponse struct { + model.CommonResponse + TaobaoWlbImportsGeneralConsignAPIResponseModel +} + +// 一般进口发货 成功返回结果 +type TaobaoWlbImportsGeneralConsignAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_imports_general_consign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 发货成功后的物流订单编号 + LgorderCode string `json:"lgorder_code,omitempty" xml:"lgorder_code,omitempty"` + // 业务错误描述 + ResultErrorMsg string `json:"result_error_msg,omitempty" xml:"result_error_msg,omitempty"` + // 是否发货成功,true:成功,false:失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 业务错误编码 + ResultErrorCode string `json:"result_error_code,omitempty" xml:"result_error_code,omitempty"` +} diff --git a/model/wlbimports/TaobaoWlbImportsGeneralConsignResponse.go b/model/wlbimports/TaobaoWlbImportsGeneralConsignResponse.go deleted file mode 100644 index 3119230b51..0000000000 --- a/model/wlbimports/TaobaoWlbImportsGeneralConsignResponse.go +++ /dev/null @@ -1,36 +0,0 @@ -package wlbimports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -一般进口发货 API返回值 -taobao.wlb.imports.general.consign - -将订单信息发送到菜鸟海外转运仓; -业务规则: -1)交易订单为待发货状态。 -2)单笔订单多个商品,交易金额不能大于1000人民币。 -*/ -type TaobaoWlbImportsGeneralConsignAPIResponse struct { - model.CommonResponse - TaobaoWlbImportsGeneralConsignResponse -} - -// 一般进口发货 成功返回结果 -type TaobaoWlbImportsGeneralConsignResponse struct { - XMLName xml.Name `xml:"wlb_imports_general_consign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 发货成功后的物流订单编号 - LgorderCode string `json:"lgorder_code,omitempty" xml:"lgorder_code,omitempty"` - // 业务错误描述 - ResultErrorMsg string `json:"result_error_msg,omitempty" xml:"result_error_msg,omitempty"` - // 是否发货成功,true:成功,false:失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 业务错误编码 - ResultErrorCode string `json:"result_error_code,omitempty" xml:"result_error_code,omitempty"` -} diff --git a/model/wlbimports/TaobaoWlbImportsOrderCancelAPIRequest.go b/model/wlbimports/TaobaoWlbImportsOrderCancelAPIRequest.go new file mode 100644 index 0000000000..ddcecc25c8 --- /dev/null +++ b/model/wlbimports/TaobaoWlbImportsOrderCancelAPIRequest.go @@ -0,0 +1,52 @@ +package wlbimports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +一般进口取消物流订单 API请求 +taobao.wlb.imports.order.cancel + +商家在发货后,需要对订单进行取消,如果仓库已经收货则无法取消。 +*/ +type TaobaoWlbImportsOrderCancelAPIRequest struct { + model.Params + // 物流订单编号 + _lgorderCode string +} + +// 初始化TaobaoWlbImportsOrderCancelAPIRequest对象 +func NewTaobaoWlbImportsOrderCancelRequest() *TaobaoWlbImportsOrderCancelAPIRequest{ + return &TaobaoWlbImportsOrderCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbImportsOrderCancelAPIRequest) GetApiMethodName() string { + return "taobao.wlb.imports.order.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbImportsOrderCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LgorderCode Setter +// 物流订单编号 +func (r *TaobaoWlbImportsOrderCancelAPIRequest) SetLgorderCode(_lgorderCode string) error { + r._lgorderCode = _lgorderCode + r.Set("lgorder_code", _lgorderCode) + return nil +} + +// LgorderCode Getter +func (r TaobaoWlbImportsOrderCancelAPIRequest) GetLgorderCode() string { + return r._lgorderCode +} diff --git a/model/wlbimports/TaobaoWlbImportsOrderCancelAPIResponse.go b/model/wlbimports/TaobaoWlbImportsOrderCancelAPIResponse.go new file mode 100644 index 0000000000..3b6f784d1e --- /dev/null +++ b/model/wlbimports/TaobaoWlbImportsOrderCancelAPIResponse.go @@ -0,0 +1,31 @@ +package wlbimports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +一般进口取消物流订单 API返回值 +taobao.wlb.imports.order.cancel + +商家在发货后,需要对订单进行取消,如果仓库已经收货则无法取消。 +*/ +type TaobaoWlbImportsOrderCancelAPIResponse struct { + model.CommonResponse + TaobaoWlbImportsOrderCancelAPIResponseModel +} + +// 一般进口取消物流订单 成功返回结果 +type TaobaoWlbImportsOrderCancelAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_imports_order_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 业务错误描述 + ResultErrorMsg string `json:"result_error_msg,omitempty" xml:"result_error_msg,omitempty"` + // 是否取消订单成功,true:成功,false:失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 业务错误编码 + ResultErrorCode string `json:"result_error_code,omitempty" xml:"result_error_code,omitempty"` +} diff --git a/model/wlbimports/TaobaoWlbImportsOrderCancelResponse.go b/model/wlbimports/TaobaoWlbImportsOrderCancelResponse.go deleted file mode 100644 index 534ebc0c3b..0000000000 --- a/model/wlbimports/TaobaoWlbImportsOrderCancelResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package wlbimports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -一般进口取消物流订单 API返回值 -taobao.wlb.imports.order.cancel - -商家在发货后,需要对订单进行取消,如果仓库已经收货则无法取消。 -*/ -type TaobaoWlbImportsOrderCancelAPIResponse struct { - model.CommonResponse - TaobaoWlbImportsOrderCancelResponse -} - -// 一般进口取消物流订单 成功返回结果 -type TaobaoWlbImportsOrderCancelResponse struct { - XMLName xml.Name `xml:"wlb_imports_order_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 业务错误描述 - ResultErrorMsg string `json:"result_error_msg,omitempty" xml:"result_error_msg,omitempty"` - // 是否取消订单成功,true:成功,false:失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 业务错误编码 - ResultErrorCode string `json:"result_error_code,omitempty" xml:"result_error_code,omitempty"` -} diff --git a/model/wlbimports/TaobaoWlbImportsOrderGetAPIRequest.go b/model/wlbimports/TaobaoWlbImportsOrderGetAPIRequest.go new file mode 100644 index 0000000000..46b11226fe --- /dev/null +++ b/model/wlbimports/TaobaoWlbImportsOrderGetAPIRequest.go @@ -0,0 +1,122 @@ +package wlbimports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +物流订单获取 API请求 +taobao.wlb.imports.order.get + +一般进口物流订单获取 +*/ +type TaobaoWlbImportsOrderGetAPIRequest struct { + model.Params + // 交易订单号 + _tradeId int64 + // 交易订单开始创建时间 + _gmtCreateStart string + // 交易订单结束创建时间 + _gmtCreateEnd string + // 物流订单状态编码。以下依(物流订单状态编码,描述)的形式列举出来:(TIN_CONSING,发货中),(SENT_WAIT_COMPANY_MAKE_SURE,待仓库收货),(ORDER_CANCELED,订单关闭),(COMPANY_MAKE_SURE,海外仓已揽收),(REJECTED_RECEIVED_BY_COMPANY,海外仓拒收),(ORDER_REFUNDING,退货中),(ORDER_REFUND_BY_COMPANY,订单已退货),(EXCEPTION_IN_COMPANY,海外仓内异常),(FAILED_PAID_SHIPPING_FEE,支付失败),(PAID_SHIPPING_FEE,待仓库发货),(COMPANY_CONSIGN_CONFIRM,海外仓已发货),(WAIT_CUSTOMS_MAKE_SURE,清关已收货),(EXCEPTION_IN_CUSTOMS,清关异常),(CUSTOMSING,清关中),(COMPANY_DELIVERY,国内配送)。 + _statusCode string + // 页码。取值范围:大于零的整数; 默认值:1 + _pageNo int64 + // 每页条数。取值范围:大于0小于等于100的整数; 默认值:40; 最小值:1;最大值:20 + _pageSize int64 +} + +// 初始化TaobaoWlbImportsOrderGetAPIRequest对象 +func NewTaobaoWlbImportsOrderGetRequest() *TaobaoWlbImportsOrderGetAPIRequest{ + return &TaobaoWlbImportsOrderGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbImportsOrderGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.imports.order.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbImportsOrderGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeId Setter +// 交易订单号 +func (r *TaobaoWlbImportsOrderGetAPIRequest) SetTradeId(_tradeId int64) error { + r._tradeId = _tradeId + r.Set("trade_id", _tradeId) + return nil +} + +// TradeId Getter +func (r TaobaoWlbImportsOrderGetAPIRequest) GetTradeId() int64 { + return r._tradeId +} +// GmtCreateStart Setter +// 交易订单开始创建时间 +func (r *TaobaoWlbImportsOrderGetAPIRequest) SetGmtCreateStart(_gmtCreateStart string) error { + r._gmtCreateStart = _gmtCreateStart + r.Set("gmt_create_start", _gmtCreateStart) + return nil +} + +// GmtCreateStart Getter +func (r TaobaoWlbImportsOrderGetAPIRequest) GetGmtCreateStart() string { + return r._gmtCreateStart +} +// GmtCreateEnd Setter +// 交易订单结束创建时间 +func (r *TaobaoWlbImportsOrderGetAPIRequest) SetGmtCreateEnd(_gmtCreateEnd string) error { + r._gmtCreateEnd = _gmtCreateEnd + r.Set("gmt_create_end", _gmtCreateEnd) + return nil +} + +// GmtCreateEnd Getter +func (r TaobaoWlbImportsOrderGetAPIRequest) GetGmtCreateEnd() string { + return r._gmtCreateEnd +} +// StatusCode Setter +// 物流订单状态编码。以下依(物流订单状态编码,描述)的形式列举出来:(TIN_CONSING,发货中),(SENT_WAIT_COMPANY_MAKE_SURE,待仓库收货),(ORDER_CANCELED,订单关闭),(COMPANY_MAKE_SURE,海外仓已揽收),(REJECTED_RECEIVED_BY_COMPANY,海外仓拒收),(ORDER_REFUNDING,退货中),(ORDER_REFUND_BY_COMPANY,订单已退货),(EXCEPTION_IN_COMPANY,海外仓内异常),(FAILED_PAID_SHIPPING_FEE,支付失败),(PAID_SHIPPING_FEE,待仓库发货),(COMPANY_CONSIGN_CONFIRM,海外仓已发货),(WAIT_CUSTOMS_MAKE_SURE,清关已收货),(EXCEPTION_IN_CUSTOMS,清关异常),(CUSTOMSING,清关中),(COMPANY_DELIVERY,国内配送)。 +func (r *TaobaoWlbImportsOrderGetAPIRequest) SetStatusCode(_statusCode string) error { + r._statusCode = _statusCode + r.Set("status_code", _statusCode) + return nil +} + +// StatusCode Getter +func (r TaobaoWlbImportsOrderGetAPIRequest) GetStatusCode() string { + return r._statusCode +} +// PageNo Setter +// 页码。取值范围:大于零的整数; 默认值:1 +func (r *TaobaoWlbImportsOrderGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoWlbImportsOrderGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数。取值范围:大于0小于等于100的整数; 默认值:40; 最小值:1;最大值:20 +func (r *TaobaoWlbImportsOrderGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoWlbImportsOrderGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/wlbimports/TaobaoWlbImportsOrderGetAPIResponse.go b/model/wlbimports/TaobaoWlbImportsOrderGetAPIResponse.go new file mode 100644 index 0000000000..29b801bfd1 --- /dev/null +++ b/model/wlbimports/TaobaoWlbImportsOrderGetAPIResponse.go @@ -0,0 +1,29 @@ +package wlbimports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +物流订单获取 API返回值 +taobao.wlb.imports.order.get + +一般进口物流订单获取 +*/ +type TaobaoWlbImportsOrderGetAPIResponse struct { + model.CommonResponse + TaobaoWlbImportsOrderGetAPIResponseModel +} + +// 物流订单获取 成功返回结果 +type TaobaoWlbImportsOrderGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_imports_order_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 物流订单信息 + Orders []LocOrder `json:"orders,omitempty" xml:"orders>loc_order,omitempty"` + // 搜索到的总数量 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/wlbimports/TaobaoWlbImportsOrderGetResponse.go b/model/wlbimports/TaobaoWlbImportsOrderGetResponse.go deleted file mode 100644 index 5914f564fc..0000000000 --- a/model/wlbimports/TaobaoWlbImportsOrderGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wlbimports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -物流订单获取 API返回值 -taobao.wlb.imports.order.get - -一般进口物流订单获取 -*/ -type TaobaoWlbImportsOrderGetAPIResponse struct { - model.CommonResponse - TaobaoWlbImportsOrderGetResponse -} - -// 物流订单获取 成功返回结果 -type TaobaoWlbImportsOrderGetResponse struct { - XMLName xml.Name `xml:"wlb_imports_order_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 物流订单信息 - Orders []LocOrder `json:"orders,omitempty" xml:"orders>loc_order,omitempty"` - // 搜索到的总数量 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/wlbimports/TaobaoWlbImportsResourceGetAPIRequest.go b/model/wlbimports/TaobaoWlbImportsResourceGetAPIRequest.go new file mode 100644 index 0000000000..f6add5a088 --- /dev/null +++ b/model/wlbimports/TaobaoWlbImportsResourceGetAPIRequest.go @@ -0,0 +1,66 @@ +package wlbimports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取所有服务列表 API请求 +taobao.wlb.imports.resource.get + +一般进口TOP接口,获取所有服务列表。 +*/ +type TaobaoWlbImportsResourceGetAPIRequest struct { + model.Params + // 卖家发货地区域ID + _fromId int64 + // 买家收货地信息 + _toAddress *ReciverAddressDo +} + +// 初始化TaobaoWlbImportsResourceGetAPIRequest对象 +func NewTaobaoWlbImportsResourceGetRequest() *TaobaoWlbImportsResourceGetAPIRequest{ + return &TaobaoWlbImportsResourceGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbImportsResourceGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.imports.resource.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbImportsResourceGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FromId Setter +// 卖家发货地区域ID +func (r *TaobaoWlbImportsResourceGetAPIRequest) SetFromId(_fromId int64) error { + r._fromId = _fromId + r.Set("from_id", _fromId) + return nil +} + +// FromId Getter +func (r TaobaoWlbImportsResourceGetAPIRequest) GetFromId() int64 { + return r._fromId +} +// ToAddress Setter +// 买家收货地信息 +func (r *TaobaoWlbImportsResourceGetAPIRequest) SetToAddress(_toAddress *ReciverAddressDo) error { + r._toAddress = _toAddress + r.Set("to_address", _toAddress) + return nil +} + +// ToAddress Getter +func (r TaobaoWlbImportsResourceGetAPIRequest) GetToAddress() *ReciverAddressDo { + return r._toAddress +} diff --git a/model/wlbimports/TaobaoWlbImportsResourceGetAPIResponse.go b/model/wlbimports/TaobaoWlbImportsResourceGetAPIResponse.go new file mode 100644 index 0000000000..6f591cf21a --- /dev/null +++ b/model/wlbimports/TaobaoWlbImportsResourceGetAPIResponse.go @@ -0,0 +1,27 @@ +package wlbimports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取所有服务列表 API返回值 +taobao.wlb.imports.resource.get + +一般进口TOP接口,获取所有服务列表。 +*/ +type TaobaoWlbImportsResourceGetAPIResponse struct { + model.CommonResponse + TaobaoWlbImportsResourceGetAPIResponseModel +} + +// 获取所有服务列表 成功返回结果 +type TaobaoWlbImportsResourceGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_imports_resource_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 一般进口所有服务商列表 + Resources []ResourceResult `json:"resources,omitempty" xml:"resources>resource_result,omitempty"` +} diff --git a/model/wlbimports/TaobaoWlbImportsResourceGetResponse.go b/model/wlbimports/TaobaoWlbImportsResourceGetResponse.go deleted file mode 100644 index a60a684992..0000000000 --- a/model/wlbimports/TaobaoWlbImportsResourceGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wlbimports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取所有服务列表 API返回值 -taobao.wlb.imports.resource.get - -一般进口TOP接口,获取所有服务列表。 -*/ -type TaobaoWlbImportsResourceGetAPIResponse struct { - model.CommonResponse - TaobaoWlbImportsResourceGetResponse -} - -// 获取所有服务列表 成功返回结果 -type TaobaoWlbImportsResourceGetResponse struct { - XMLName xml.Name `xml:"wlb_imports_resource_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 一般进口所有服务商列表 - Resources []ResourceResult `json:"resources,omitempty" xml:"resources>resource_result,omitempty"` -} diff --git a/model/wlbimports/TaobaoWlbImportsResourceTransferstoreGetAPIRequest.go b/model/wlbimports/TaobaoWlbImportsResourceTransferstoreGetAPIRequest.go new file mode 100644 index 0000000000..097ff1e611 --- /dev/null +++ b/model/wlbimports/TaobaoWlbImportsResourceTransferstoreGetAPIRequest.go @@ -0,0 +1,94 @@ +package wlbimports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据指定的资源获取所有中转仓列表 API请求 +taobao.wlb.imports.resource.transferstore.get + +根据指定的资源获取所有中转仓列表 +*/ +type TaobaoWlbImportsResourceTransferstoreGetAPIRequest struct { + model.Params + // 通过taobao.wlb.imports.resource.get接口查询出来的资源ID + _resourceId int64 + // 卖家发货地址的区域ID,如果不填则为默认发货地址ID + _fromId int64 + // 商品前台叶子类目ID + _cids []int64 + // 买家收货地信息 + _toAddress *ReciverAddressDo +} + +// 初始化TaobaoWlbImportsResourceTransferstoreGetAPIRequest对象 +func NewTaobaoWlbImportsResourceTransferstoreGetRequest() *TaobaoWlbImportsResourceTransferstoreGetAPIRequest{ + return &TaobaoWlbImportsResourceTransferstoreGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbImportsResourceTransferstoreGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.imports.resource.transferstore.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbImportsResourceTransferstoreGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ResourceId Setter +// 通过taobao.wlb.imports.resource.get接口查询出来的资源ID +func (r *TaobaoWlbImportsResourceTransferstoreGetAPIRequest) SetResourceId(_resourceId int64) error { + r._resourceId = _resourceId + r.Set("resource_id", _resourceId) + return nil +} + +// ResourceId Getter +func (r TaobaoWlbImportsResourceTransferstoreGetAPIRequest) GetResourceId() int64 { + return r._resourceId +} +// FromId Setter +// 卖家发货地址的区域ID,如果不填则为默认发货地址ID +func (r *TaobaoWlbImportsResourceTransferstoreGetAPIRequest) SetFromId(_fromId int64) error { + r._fromId = _fromId + r.Set("from_id", _fromId) + return nil +} + +// FromId Getter +func (r TaobaoWlbImportsResourceTransferstoreGetAPIRequest) GetFromId() int64 { + return r._fromId +} +// Cids Setter +// 商品前台叶子类目ID +func (r *TaobaoWlbImportsResourceTransferstoreGetAPIRequest) SetCids(_cids []int64) error { + r._cids = _cids + r.Set("cids", _cids) + return nil +} + +// Cids Getter +func (r TaobaoWlbImportsResourceTransferstoreGetAPIRequest) GetCids() []int64 { + return r._cids +} +// ToAddress Setter +// 买家收货地信息 +func (r *TaobaoWlbImportsResourceTransferstoreGetAPIRequest) SetToAddress(_toAddress *ReciverAddressDo) error { + r._toAddress = _toAddress + r.Set("to_address", _toAddress) + return nil +} + +// ToAddress Getter +func (r TaobaoWlbImportsResourceTransferstoreGetAPIRequest) GetToAddress() *ReciverAddressDo { + return r._toAddress +} diff --git a/model/wlbimports/TaobaoWlbImportsResourceTransferstoreGetAPIResponse.go b/model/wlbimports/TaobaoWlbImportsResourceTransferstoreGetAPIResponse.go new file mode 100644 index 0000000000..6e32c09a07 --- /dev/null +++ b/model/wlbimports/TaobaoWlbImportsResourceTransferstoreGetAPIResponse.go @@ -0,0 +1,27 @@ +package wlbimports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据指定的资源获取所有中转仓列表 API返回值 +taobao.wlb.imports.resource.transferstore.get + +根据指定的资源获取所有中转仓列表 +*/ +type TaobaoWlbImportsResourceTransferstoreGetAPIResponse struct { + model.CommonResponse + TaobaoWlbImportsResourceTransferstoreGetAPIResponseModel +} + +// 根据指定的资源获取所有中转仓列表 成功返回结果 +type TaobaoWlbImportsResourceTransferstoreGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_imports_resource_transferstore_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 符合条件的中转仓列表 + Stores []TranStoreResult `json:"stores,omitempty" xml:"stores>tran_store_result,omitempty"` +} diff --git a/model/wlbimports/TaobaoWlbImportsResourceTransferstoreGetResponse.go b/model/wlbimports/TaobaoWlbImportsResourceTransferstoreGetResponse.go deleted file mode 100644 index 41c81365b2..0000000000 --- a/model/wlbimports/TaobaoWlbImportsResourceTransferstoreGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wlbimports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据指定的资源获取所有中转仓列表 API返回值 -taobao.wlb.imports.resource.transferstore.get - -根据指定的资源获取所有中转仓列表 -*/ -type TaobaoWlbImportsResourceTransferstoreGetAPIResponse struct { - model.CommonResponse - TaobaoWlbImportsResourceTransferstoreGetResponse -} - -// 根据指定的资源获取所有中转仓列表 成功返回结果 -type TaobaoWlbImportsResourceTransferstoreGetResponse struct { - XMLName xml.Name `xml:"wlb_imports_resource_transferstore_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 符合条件的中转仓列表 - Stores []TranStoreResult `json:"stores,omitempty" xml:"stores>tran_store_result,omitempty"` -} diff --git a/model/wlbimports/TaobaoWlbImportsVasIdentityResultAPIRequest.go b/model/wlbimports/TaobaoWlbImportsVasIdentityResultAPIRequest.go new file mode 100644 index 0000000000..73f6b6ed8d --- /dev/null +++ b/model/wlbimports/TaobaoWlbImportsVasIdentityResultAPIRequest.go @@ -0,0 +1,52 @@ +package wlbimports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +集货鉴定结果 API请求 +taobao.wlb.imports.vas.identity.result + +集货鉴定结果查询 +*/ +type TaobaoWlbImportsVasIdentityResultAPIRequest struct { + model.Params + // 物流订单编号 + _lgOrderCode string +} + +// 初始化TaobaoWlbImportsVasIdentityResultAPIRequest对象 +func NewTaobaoWlbImportsVasIdentityResultRequest() *TaobaoWlbImportsVasIdentityResultAPIRequest{ + return &TaobaoWlbImportsVasIdentityResultAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbImportsVasIdentityResultAPIRequest) GetApiMethodName() string { + return "taobao.wlb.imports.vas.identity.result" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbImportsVasIdentityResultAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// LgOrderCode Setter +// 物流订单编号 +func (r *TaobaoWlbImportsVasIdentityResultAPIRequest) SetLgOrderCode(_lgOrderCode string) error { + r._lgOrderCode = _lgOrderCode + r.Set("lg_order_code", _lgOrderCode) + return nil +} + +// LgOrderCode Getter +func (r TaobaoWlbImportsVasIdentityResultAPIRequest) GetLgOrderCode() string { + return r._lgOrderCode +} diff --git a/model/wlbimports/TaobaoWlbImportsVasIdentityResultAPIResponse.go b/model/wlbimports/TaobaoWlbImportsVasIdentityResultAPIResponse.go new file mode 100644 index 0000000000..dd5a246881 --- /dev/null +++ b/model/wlbimports/TaobaoWlbImportsVasIdentityResultAPIResponse.go @@ -0,0 +1,27 @@ +package wlbimports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +集货鉴定结果 API返回值 +taobao.wlb.imports.vas.identity.result + +集货鉴定结果查询 +*/ +type TaobaoWlbImportsVasIdentityResultAPIResponse struct { + model.CommonResponse + TaobaoWlbImportsVasIdentityResultAPIResponseModel +} + +// 集货鉴定结果 成功返回结果 +type TaobaoWlbImportsVasIdentityResultAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_imports_vas_identity_result_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回出参数结果 + Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wlbimports/TaobaoWlbImportsVasIdentityResultResponse.go b/model/wlbimports/TaobaoWlbImportsVasIdentityResultResponse.go deleted file mode 100644 index 2779e0a486..0000000000 --- a/model/wlbimports/TaobaoWlbImportsVasIdentityResultResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wlbimports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -集货鉴定结果 API返回值 -taobao.wlb.imports.vas.identity.result - -集货鉴定结果查询 -*/ -type TaobaoWlbImportsVasIdentityResultAPIResponse struct { - model.CommonResponse - TaobaoWlbImportsVasIdentityResultResponse -} - -// 集货鉴定结果 成功返回结果 -type TaobaoWlbImportsVasIdentityResultResponse struct { - XMLName xml.Name `xml:"wlb_imports_vas_identity_result_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回出参数结果 - Result *TopResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wlbimports/TaobaoWlbImportsWaybillGetAPIRequest.go b/model/wlbimports/TaobaoWlbImportsWaybillGetAPIRequest.go new file mode 100644 index 0000000000..a81411a3fb --- /dev/null +++ b/model/wlbimports/TaobaoWlbImportsWaybillGetAPIRequest.go @@ -0,0 +1,52 @@ +package wlbimports + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取运单信息 API请求 +taobao.wlb.imports.waybill.get + +一般进口商家,获取订单的电子面单链接地址 +*/ +type TaobaoWlbImportsWaybillGetAPIRequest struct { + model.Params + // 物流订单号 + _orderCode string +} + +// 初始化TaobaoWlbImportsWaybillGetAPIRequest对象 +func NewTaobaoWlbImportsWaybillGetRequest() *TaobaoWlbImportsWaybillGetAPIRequest{ + return &TaobaoWlbImportsWaybillGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbImportsWaybillGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.imports.waybill.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbImportsWaybillGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderCode Setter +// 物流订单号 +func (r *TaobaoWlbImportsWaybillGetAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r TaobaoWlbImportsWaybillGetAPIRequest) GetOrderCode() string { + return r._orderCode +} diff --git a/model/wlbimports/TaobaoWlbImportsWaybillGetAPIResponse.go b/model/wlbimports/TaobaoWlbImportsWaybillGetAPIResponse.go new file mode 100644 index 0000000000..f6ec40bcc7 --- /dev/null +++ b/model/wlbimports/TaobaoWlbImportsWaybillGetAPIResponse.go @@ -0,0 +1,27 @@ +package wlbimports + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取运单信息 API返回值 +taobao.wlb.imports.waybill.get + +一般进口商家,获取订单的电子面单链接地址 +*/ +type TaobaoWlbImportsWaybillGetAPIResponse struct { + model.CommonResponse + TaobaoWlbImportsWaybillGetAPIResponseModel +} + +// 获取运单信息 成功返回结果 +type TaobaoWlbImportsWaybillGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_imports_waybill_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 电子面单链接地址 + Waybillurl string `json:"waybillurl,omitempty" xml:"waybillurl,omitempty"` +} diff --git a/model/wlbimports/TaobaoWlbImportsWaybillGetResponse.go b/model/wlbimports/TaobaoWlbImportsWaybillGetResponse.go deleted file mode 100644 index 3bd22a6ba7..0000000000 --- a/model/wlbimports/TaobaoWlbImportsWaybillGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wlbimports - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取运单信息 API返回值 -taobao.wlb.imports.waybill.get - -一般进口商家,获取订单的电子面单链接地址 -*/ -type TaobaoWlbImportsWaybillGetAPIResponse struct { - model.CommonResponse - TaobaoWlbImportsWaybillGetResponse -} - -// 获取运单信息 成功返回结果 -type TaobaoWlbImportsWaybillGetResponse struct { - XMLName xml.Name `xml:"wlb_imports_waybill_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 电子面单链接地址 - Waybillurl string `json:"waybillurl,omitempty" xml:"waybillurl,omitempty"` -} diff --git a/model/wms/CainiaoBimTradeorderConsignAPIRequest.go b/model/wms/CainiaoBimTradeorderConsignAPIRequest.go new file mode 100644 index 0000000000..5a8ca6bae0 --- /dev/null +++ b/model/wms/CainiaoBimTradeorderConsignAPIRequest.go @@ -0,0 +1,80 @@ +package wms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +驱动保税交易订单发货 API请求 +cainiao.bim.tradeorder.consign + +驱动保税交易订单发货 +*/ +type CainiaoBimTradeorderConsignAPIRequest struct { + model.Params + // 交易单号 + _tradeId string + // 仓储编码,ERP指定仓库发货时需要传值,编码由菜鸟提供 + _storeCode string + // 选择的线路ID非必填字段 + _resId string +} + +// 初始化CainiaoBimTradeorderConsignAPIRequest对象 +func NewCainiaoBimTradeorderConsignRequest() *CainiaoBimTradeorderConsignAPIRequest{ + return &CainiaoBimTradeorderConsignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoBimTradeorderConsignAPIRequest) GetApiMethodName() string { + return "cainiao.bim.tradeorder.consign" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoBimTradeorderConsignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TradeId Setter +// 交易单号 +func (r *CainiaoBimTradeorderConsignAPIRequest) SetTradeId(_tradeId string) error { + r._tradeId = _tradeId + r.Set("trade_id", _tradeId) + return nil +} + +// TradeId Getter +func (r CainiaoBimTradeorderConsignAPIRequest) GetTradeId() string { + return r._tradeId +} +// StoreCode Setter +// 仓储编码,ERP指定仓库发货时需要传值,编码由菜鸟提供 +func (r *CainiaoBimTradeorderConsignAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r CainiaoBimTradeorderConsignAPIRequest) GetStoreCode() string { + return r._storeCode +} +// ResId Setter +// 选择的线路ID非必填字段 +func (r *CainiaoBimTradeorderConsignAPIRequest) SetResId(_resId string) error { + r._resId = _resId + r.Set("res_id", _resId) + return nil +} + +// ResId Getter +func (r CainiaoBimTradeorderConsignAPIRequest) GetResId() string { + return r._resId +} diff --git a/model/wms/CainiaoBimTradeorderConsignAPIResponse.go b/model/wms/CainiaoBimTradeorderConsignAPIResponse.go new file mode 100644 index 0000000000..366e3197cb --- /dev/null +++ b/model/wms/CainiaoBimTradeorderConsignAPIResponse.go @@ -0,0 +1,29 @@ +package wms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +驱动保税交易订单发货 API返回值 +cainiao.bim.tradeorder.consign + +驱动保税交易订单发货 +*/ +type CainiaoBimTradeorderConsignAPIResponse struct { + model.CommonResponse + CainiaoBimTradeorderConsignAPIResponseModel +} + +// 驱动保税交易订单发货 成功返回结果 +type CainiaoBimTradeorderConsignAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_bim_tradeorder_consign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 菜鸟仓库作业单据号 + StoreOrderCode string `json:"store_order_code,omitempty" xml:"store_order_code,omitempty"` + // 菜鸟物流订单号,格式为LP开头 + LgOrderCode string `json:"lg_order_code,omitempty" xml:"lg_order_code,omitempty"` +} diff --git a/model/wms/CainiaoBimTradeorderConsignResponse.go b/model/wms/CainiaoBimTradeorderConsignResponse.go deleted file mode 100644 index 7573d7b15c..0000000000 --- a/model/wms/CainiaoBimTradeorderConsignResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -驱动保税交易订单发货 API返回值 -cainiao.bim.tradeorder.consign - -驱动保税交易订单发货 -*/ -type CainiaoBimTradeorderConsignAPIResponse struct { - model.CommonResponse - CainiaoBimTradeorderConsignResponse -} - -// 驱动保税交易订单发货 成功返回结果 -type CainiaoBimTradeorderConsignResponse struct { - XMLName xml.Name `xml:"cainiao_bim_tradeorder_consign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 菜鸟仓库作业单据号 - StoreOrderCode string `json:"store_order_code,omitempty" xml:"store_order_code,omitempty"` - // 菜鸟物流订单号,格式为LP开头 - LgOrderCode string `json:"lg_order_code,omitempty" xml:"lg_order_code,omitempty"` -} diff --git a/model/wms/CainiaoCrmOmsRuleSyncAPIRequest.go b/model/wms/CainiaoCrmOmsRuleSyncAPIRequest.go new file mode 100644 index 0000000000..a16ad3cc1a --- /dev/null +++ b/model/wms/CainiaoCrmOmsRuleSyncAPIRequest.go @@ -0,0 +1,136 @@ +package wms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家ERP订单处理规则同步 API请求 +cainiao.crm.oms.rule.sync + +将商家ERP订单处理规则同步到菜鸟CRM系统 +*/ +type CainiaoCrmOmsRuleSyncAPIRequest struct { + model.Params + // 店铺nick + _shopCode string + // 是否开启菜鸟自动流转规则 + _isOpenCnauto bool + // 是否系统智能处理订单(无人工介入) + _isAutoCheck bool + // 人工审单规则描述 + _checkRuleMsg string + // 是否开启了订单合单 + _isSysMergeOrder bool + // 订单合单周期(单位:分钟) + _mergeOrderCycle int64 + // 其他未定义订单处理规则,格式{name;stauts;cycle;} + _otherRule string +} + +// 初始化CainiaoCrmOmsRuleSyncAPIRequest对象 +func NewCainiaoCrmOmsRuleSyncRequest() *CainiaoCrmOmsRuleSyncAPIRequest{ + return &CainiaoCrmOmsRuleSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r CainiaoCrmOmsRuleSyncAPIRequest) GetApiMethodName() string { + return "cainiao.crm.oms.rule.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r CainiaoCrmOmsRuleSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ShopCode Setter +// 店铺nick +func (r *CainiaoCrmOmsRuleSyncAPIRequest) SetShopCode(_shopCode string) error { + r._shopCode = _shopCode + r.Set("shop_code", _shopCode) + return nil +} + +// ShopCode Getter +func (r CainiaoCrmOmsRuleSyncAPIRequest) GetShopCode() string { + return r._shopCode +} +// IsOpenCnauto Setter +// 是否开启菜鸟自动流转规则 +func (r *CainiaoCrmOmsRuleSyncAPIRequest) SetIsOpenCnauto(_isOpenCnauto bool) error { + r._isOpenCnauto = _isOpenCnauto + r.Set("is_open_cnauto", _isOpenCnauto) + return nil +} + +// IsOpenCnauto Getter +func (r CainiaoCrmOmsRuleSyncAPIRequest) GetIsOpenCnauto() bool { + return r._isOpenCnauto +} +// IsAutoCheck Setter +// 是否系统智能处理订单(无人工介入) +func (r *CainiaoCrmOmsRuleSyncAPIRequest) SetIsAutoCheck(_isAutoCheck bool) error { + r._isAutoCheck = _isAutoCheck + r.Set("is_auto_check", _isAutoCheck) + return nil +} + +// IsAutoCheck Getter +func (r CainiaoCrmOmsRuleSyncAPIRequest) GetIsAutoCheck() bool { + return r._isAutoCheck +} +// CheckRuleMsg Setter +// 人工审单规则描述 +func (r *CainiaoCrmOmsRuleSyncAPIRequest) SetCheckRuleMsg(_checkRuleMsg string) error { + r._checkRuleMsg = _checkRuleMsg + r.Set("check_rule_msg", _checkRuleMsg) + return nil +} + +// CheckRuleMsg Getter +func (r CainiaoCrmOmsRuleSyncAPIRequest) GetCheckRuleMsg() string { + return r._checkRuleMsg +} +// IsSysMergeOrder Setter +// 是否开启了订单合单 +func (r *CainiaoCrmOmsRuleSyncAPIRequest) SetIsSysMergeOrder(_isSysMergeOrder bool) error { + r._isSysMergeOrder = _isSysMergeOrder + r.Set("is_sys_merge_order", _isSysMergeOrder) + return nil +} + +// IsSysMergeOrder Getter +func (r CainiaoCrmOmsRuleSyncAPIRequest) GetIsSysMergeOrder() bool { + return r._isSysMergeOrder +} +// MergeOrderCycle Setter +// 订单合单周期(单位:分钟) +func (r *CainiaoCrmOmsRuleSyncAPIRequest) SetMergeOrderCycle(_mergeOrderCycle int64) error { + r._mergeOrderCycle = _mergeOrderCycle + r.Set("merge_order_cycle", _mergeOrderCycle) + return nil +} + +// MergeOrderCycle Getter +func (r CainiaoCrmOmsRuleSyncAPIRequest) GetMergeOrderCycle() int64 { + return r._mergeOrderCycle +} +// OtherRule Setter +// 其他未定义订单处理规则,格式{name;stauts;cycle;} +func (r *CainiaoCrmOmsRuleSyncAPIRequest) SetOtherRule(_otherRule string) error { + r._otherRule = _otherRule + r.Set("other_rule", _otherRule) + return nil +} + +// OtherRule Getter +func (r CainiaoCrmOmsRuleSyncAPIRequest) GetOtherRule() string { + return r._otherRule +} diff --git a/model/wms/CainiaoCrmOmsRuleSyncAPIResponse.go b/model/wms/CainiaoCrmOmsRuleSyncAPIResponse.go new file mode 100644 index 0000000000..9e9bb640f7 --- /dev/null +++ b/model/wms/CainiaoCrmOmsRuleSyncAPIResponse.go @@ -0,0 +1,31 @@ +package wms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家ERP订单处理规则同步 API返回值 +cainiao.crm.oms.rule.sync + +将商家ERP订单处理规则同步到菜鸟CRM系统 +*/ +type CainiaoCrmOmsRuleSyncAPIResponse struct { + model.CommonResponse + CainiaoCrmOmsRuleSyncAPIResponseModel +} + +// 商家ERP订单处理规则同步 成功返回结果 +type CainiaoCrmOmsRuleSyncAPIResponseModel struct { + XMLName xml.Name `xml:"cainiao_crm_oms_rule_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` + // errorCode + WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` + // errorMsg + WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` +} diff --git a/model/wms/CainiaoCrmOmsRuleSyncResponse.go b/model/wms/CainiaoCrmOmsRuleSyncResponse.go deleted file mode 100644 index 88e08db40a..0000000000 --- a/model/wms/CainiaoCrmOmsRuleSyncResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package wms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家ERP订单处理规则同步 API返回值 -cainiao.crm.oms.rule.sync - -将商家ERP订单处理规则同步到菜鸟CRM系统 -*/ -type CainiaoCrmOmsRuleSyncAPIResponse struct { - model.CommonResponse - CainiaoCrmOmsRuleSyncResponse -} - -// 商家ERP订单处理规则同步 成功返回结果 -type CainiaoCrmOmsRuleSyncResponse struct { - XMLName xml.Name `xml:"cainiao_crm_oms_rule_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` - // errorCode - WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` - // errorMsg - WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` -} diff --git a/model/wms/TaobaoWlbWmsCainiaoBillQueryAPIRequest.go b/model/wms/TaobaoWlbWmsCainiaoBillQueryAPIRequest.go new file mode 100644 index 0000000000..7c39359272 --- /dev/null +++ b/model/wms/TaobaoWlbWmsCainiaoBillQueryAPIRequest.go @@ -0,0 +1,108 @@ +package wms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询单据列表 API请求 +taobao.wlb.wms.cainiao.bill.query + +查询单据列表 +*/ +type TaobaoWlbWmsCainiaoBillQueryAPIRequest struct { + model.Params + // 结束时间,此字段检索订单最后修改时间, 格式 yyyy-MM-dd HH:mm:ss。 + _startModifiedTime string + // 起始时间,此字段检索订单最后修改时间, 格式 yyyy-MM-dd HH:mm:ss。 + _endModifiedTime string + // 订单类型 201 销售出库 501 退货入库 502 换货出库 503 补发出库904 普通入库 903 普通出库单 306 B2B入库单 305 B2B出库单 601 采购入库 901 退供出库单 701 盘点出库 702 盘点入库 711 库存异动单 + _orderType string + // 页码。(大于0的整数。默认为1) + _pageNo int64 + // 每页条数。(每页条数不超过50条。默认为50) + _pageSize int64 +} + +// 初始化TaobaoWlbWmsCainiaoBillQueryAPIRequest对象 +func NewTaobaoWlbWmsCainiaoBillQueryRequest() *TaobaoWlbWmsCainiaoBillQueryAPIRequest{ + return &TaobaoWlbWmsCainiaoBillQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWmsCainiaoBillQueryAPIRequest) GetApiMethodName() string { + return "taobao.wlb.wms.cainiao.bill.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWmsCainiaoBillQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartModifiedTime Setter +// 结束时间,此字段检索订单最后修改时间, 格式 yyyy-MM-dd HH:mm:ss。 +func (r *TaobaoWlbWmsCainiaoBillQueryAPIRequest) SetStartModifiedTime(_startModifiedTime string) error { + r._startModifiedTime = _startModifiedTime + r.Set("start_modified_time", _startModifiedTime) + return nil +} + +// StartModifiedTime Getter +func (r TaobaoWlbWmsCainiaoBillQueryAPIRequest) GetStartModifiedTime() string { + return r._startModifiedTime +} +// EndModifiedTime Setter +// 起始时间,此字段检索订单最后修改时间, 格式 yyyy-MM-dd HH:mm:ss。 +func (r *TaobaoWlbWmsCainiaoBillQueryAPIRequest) SetEndModifiedTime(_endModifiedTime string) error { + r._endModifiedTime = _endModifiedTime + r.Set("end_modified_time", _endModifiedTime) + return nil +} + +// EndModifiedTime Getter +func (r TaobaoWlbWmsCainiaoBillQueryAPIRequest) GetEndModifiedTime() string { + return r._endModifiedTime +} +// OrderType Setter +// 订单类型 201 销售出库 501 退货入库 502 换货出库 503 补发出库904 普通入库 903 普通出库单 306 B2B入库单 305 B2B出库单 601 采购入库 901 退供出库单 701 盘点出库 702 盘点入库 711 库存异动单 +func (r *TaobaoWlbWmsCainiaoBillQueryAPIRequest) SetOrderType(_orderType string) error { + r._orderType = _orderType + r.Set("order_type", _orderType) + return nil +} + +// OrderType Getter +func (r TaobaoWlbWmsCainiaoBillQueryAPIRequest) GetOrderType() string { + return r._orderType +} +// PageNo Setter +// 页码。(大于0的整数。默认为1) +func (r *TaobaoWlbWmsCainiaoBillQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoWlbWmsCainiaoBillQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页条数。(每页条数不超过50条。默认为50) +func (r *TaobaoWlbWmsCainiaoBillQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoWlbWmsCainiaoBillQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/wms/TaobaoWlbWmsCainiaoBillQueryAPIResponse.go b/model/wms/TaobaoWlbWmsCainiaoBillQueryAPIResponse.go new file mode 100644 index 0000000000..2d539de88a --- /dev/null +++ b/model/wms/TaobaoWlbWmsCainiaoBillQueryAPIResponse.go @@ -0,0 +1,29 @@ +package wms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询单据列表 API返回值 +taobao.wlb.wms.cainiao.bill.query + +查询单据列表 +*/ +type TaobaoWlbWmsCainiaoBillQueryAPIResponse struct { + model.CommonResponse + TaobaoWlbWmsCainiaoBillQueryAPIResponseModel +} + +// 查询单据列表 成功返回结果 +type TaobaoWlbWmsCainiaoBillQueryAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_wms_cainiao_bill_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 总条数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 订单列表信息 + OrderInfoList []CainiaoBillQueryOrderinfolist `json:"order_info_list,omitempty" xml:"order_info_list>cainiao_bill_query_orderinfolist,omitempty"` +} diff --git a/model/wms/TaobaoWlbWmsCainiaoBillQueryResponse.go b/model/wms/TaobaoWlbWmsCainiaoBillQueryResponse.go deleted file mode 100644 index 76167b2f18..0000000000 --- a/model/wms/TaobaoWlbWmsCainiaoBillQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package wms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询单据列表 API返回值 -taobao.wlb.wms.cainiao.bill.query - -查询单据列表 -*/ -type TaobaoWlbWmsCainiaoBillQueryAPIResponse struct { - model.CommonResponse - TaobaoWlbWmsCainiaoBillQueryResponse -} - -// 查询单据列表 成功返回结果 -type TaobaoWlbWmsCainiaoBillQueryResponse struct { - XMLName xml.Name `xml:"wlb_wms_cainiao_bill_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 总条数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 订单列表信息 - OrderInfoList []CainiaoBillQueryOrderinfolist `json:"order_info_list,omitempty" xml:"order_info_list>cainiao_bill_query_orderinfolist,omitempty"` -} diff --git a/model/wms/TaobaoWlbWmsConsignBillGetAPIRequest.go b/model/wms/TaobaoWlbWmsConsignBillGetAPIRequest.go new file mode 100644 index 0000000000..a074ed3f8b --- /dev/null +++ b/model/wms/TaobaoWlbWmsConsignBillGetAPIRequest.go @@ -0,0 +1,66 @@ +package wms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取销售订单发货信息 API请求 +taobao.wlb.wms.consign.bill.get + +获取销售订单发货信息 +*/ +type TaobaoWlbWmsConsignBillGetAPIRequest struct { + model.Params + // 菜鸟订单编码,cnOrderCode与orderCode必须有一个值不可为空 + _cnOrderCode string + // ERP订单编码,cnOrderCode与orderCode必须有一个值不可为空 + _orderCode string +} + +// 初始化TaobaoWlbWmsConsignBillGetAPIRequest对象 +func NewTaobaoWlbWmsConsignBillGetRequest() *TaobaoWlbWmsConsignBillGetAPIRequest{ + return &TaobaoWlbWmsConsignBillGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWmsConsignBillGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.wms.consign.bill.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWmsConsignBillGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CnOrderCode Setter +// 菜鸟订单编码,cnOrderCode与orderCode必须有一个值不可为空 +func (r *TaobaoWlbWmsConsignBillGetAPIRequest) SetCnOrderCode(_cnOrderCode string) error { + r._cnOrderCode = _cnOrderCode + r.Set("cn_order_code", _cnOrderCode) + return nil +} + +// CnOrderCode Getter +func (r TaobaoWlbWmsConsignBillGetAPIRequest) GetCnOrderCode() string { + return r._cnOrderCode +} +// OrderCode Setter +// ERP订单编码,cnOrderCode与orderCode必须有一个值不可为空 +func (r *TaobaoWlbWmsConsignBillGetAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r TaobaoWlbWmsConsignBillGetAPIRequest) GetOrderCode() string { + return r._orderCode +} diff --git a/model/wms/TaobaoWlbWmsConsignBillGetAPIResponse.go b/model/wms/TaobaoWlbWmsConsignBillGetAPIResponse.go new file mode 100644 index 0000000000..91e71c15ff --- /dev/null +++ b/model/wms/TaobaoWlbWmsConsignBillGetAPIResponse.go @@ -0,0 +1,27 @@ +package wms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取销售订单发货信息 API返回值 +taobao.wlb.wms.consign.bill.get + +获取销售订单发货信息 +*/ +type TaobaoWlbWmsConsignBillGetAPIResponse struct { + model.CommonResponse + TaobaoWlbWmsConsignBillGetAPIResponseModel +} + +// 获取销售订单发货信息 成功返回结果 +type TaobaoWlbWmsConsignBillGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_wms_consign_bill_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品信息列表 + ConsignSendInfoList []Consignsendinfolist `json:"consign_send_info_list,omitempty" xml:"consign_send_info_list>consignsendinfolist,omitempty"` +} diff --git a/model/wms/TaobaoWlbWmsConsignBillGetResponse.go b/model/wms/TaobaoWlbWmsConsignBillGetResponse.go deleted file mode 100644 index 2b43a7deb0..0000000000 --- a/model/wms/TaobaoWlbWmsConsignBillGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取销售订单发货信息 API返回值 -taobao.wlb.wms.consign.bill.get - -获取销售订单发货信息 -*/ -type TaobaoWlbWmsConsignBillGetAPIResponse struct { - model.CommonResponse - TaobaoWlbWmsConsignBillGetResponse -} - -// 获取销售订单发货信息 成功返回结果 -type TaobaoWlbWmsConsignBillGetResponse struct { - XMLName xml.Name `xml:"wlb_wms_consign_bill_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品信息列表 - ConsignSendInfoList []Consignsendinfolist `json:"consign_send_info_list,omitempty" xml:"consign_send_info_list>consignsendinfolist,omitempty"` -} diff --git a/model/wms/TaobaoWlbWmsConsignOrderNotifyAPIRequest.go b/model/wms/TaobaoWlbWmsConsignOrderNotifyAPIRequest.go new file mode 100644 index 0000000000..614f7c51e0 --- /dev/null +++ b/model/wms/TaobaoWlbWmsConsignOrderNotifyAPIRequest.go @@ -0,0 +1,388 @@ +package wms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +发货订单通知 API请求 +taobao.wlb.wms.consign.order.notify + +发货订单通知 +*/ +type TaobaoWlbWmsConsignOrderNotifyAPIRequest struct { + model.Params + // ERP订单号 + _orderCode string + // 单据类型 201 一般交易出库单 202 B2B交易出库单 502 换货出库单 503 补发出库单 + _orderType int64 + // 订单标识 (1: cod –货到付款,4:invoiceinfo-需要发票) + _orderFlag string + // 订单来源(213 天猫,201 淘宝,214 京东,202 1688 阿里中文站 ,203 苏宁在线,204 亚马逊中国,205 当当,208 1号店,207 唯品会,209 国美在线,210 拍拍,206 易贝ebay,211 聚美优品,212 乐蜂网,215 邮乐,216 凡客,217 优购,218 银泰,219 易讯,221 聚尚网,222 蘑菇街,223 POS门店,301 其他) + _orderSource int64 + // 仓库编码,此字段为空时,由菜鸟路由仓库发货 + _storeCode string + // 快递公司编码,此字段为空时,由菜鸟选择快递配送 + _tmsServiceCode string + // 快递公司名称 + _tmsServiceName string + // 前物流订单号,订单类型为502 换货出库单 503 补发出库单时,需求传入此内容 + _prevOrderCode string + // 下单时间,订单在交易平台创建时间 + _orderShopCreateTime string + // 订单支付时间 + _orderPayTime string + // 订单创建时间,ERP创建订单时间 + _orderCreateTime string + // 订单审核时间,ERP创建支付时间 + _orderExaminationTime string + // 订单总金额,=总商品金额-订单优惠金额+快递费用,单位分 + _orderAmount int64 + // 订单优惠金额,整单优惠金额,单位分 + _discountAmount int64 + // 订单应收金额,消费者还需要付的金额,单位分 + _arAmount int64 + // 订单已付金额,消费者已经支付的金额,单位分 + _gotAmount int64 + // 快递费用,单位分 + _postfee int64 + // COD服务费,单位分 + _serviceFee int64 + // 配送要求 + _deliverRequirements *Deliverrequirementswlbwmsconsignordernotify + // 收件人信息 + _receiverInfo *Receiverwlbwmsconsignordernotify + // 发货方信息 + _senderInfo *Senderwlbwmsconsignordernotify + // 订单商品信息列表 + _orderItemList []Orderitemlistwlbwmsconsignordernotify + // 发票信息列表 + _invoiceInfoList []Invoicelistwlbwmsconsignordernotify + // 拓展属性 + _extendFields string + // 备注 + _remark string +} + +// 初始化TaobaoWlbWmsConsignOrderNotifyAPIRequest对象 +func NewTaobaoWlbWmsConsignOrderNotifyRequest() *TaobaoWlbWmsConsignOrderNotifyAPIRequest{ + return &TaobaoWlbWmsConsignOrderNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetApiMethodName() string { + return "taobao.wlb.wms.consign.order.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderCode Setter +// ERP订单号 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetOrderCode() string { + return r._orderCode +} +// OrderType Setter +// 单据类型 201 一般交易出库单 202 B2B交易出库单 502 换货出库单 503 补发出库单 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetOrderType(_orderType int64) error { + r._orderType = _orderType + r.Set("order_type", _orderType) + return nil +} + +// OrderType Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetOrderType() int64 { + return r._orderType +} +// OrderFlag Setter +// 订单标识 (1: cod –货到付款,4:invoiceinfo-需要发票) +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetOrderFlag(_orderFlag string) error { + r._orderFlag = _orderFlag + r.Set("order_flag", _orderFlag) + return nil +} + +// OrderFlag Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetOrderFlag() string { + return r._orderFlag +} +// OrderSource Setter +// 订单来源(213 天猫,201 淘宝,214 京东,202 1688 阿里中文站 ,203 苏宁在线,204 亚马逊中国,205 当当,208 1号店,207 唯品会,209 国美在线,210 拍拍,206 易贝ebay,211 聚美优品,212 乐蜂网,215 邮乐,216 凡客,217 优购,218 银泰,219 易讯,221 聚尚网,222 蘑菇街,223 POS门店,301 其他) +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetOrderSource(_orderSource int64) error { + r._orderSource = _orderSource + r.Set("order_source", _orderSource) + return nil +} + +// OrderSource Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetOrderSource() int64 { + return r._orderSource +} +// StoreCode Setter +// 仓库编码,此字段为空时,由菜鸟路由仓库发货 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetStoreCode() string { + return r._storeCode +} +// TmsServiceCode Setter +// 快递公司编码,此字段为空时,由菜鸟选择快递配送 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetTmsServiceCode(_tmsServiceCode string) error { + r._tmsServiceCode = _tmsServiceCode + r.Set("tms_service_code", _tmsServiceCode) + return nil +} + +// TmsServiceCode Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetTmsServiceCode() string { + return r._tmsServiceCode +} +// TmsServiceName Setter +// 快递公司名称 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetTmsServiceName(_tmsServiceName string) error { + r._tmsServiceName = _tmsServiceName + r.Set("tms_service_name", _tmsServiceName) + return nil +} + +// TmsServiceName Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetTmsServiceName() string { + return r._tmsServiceName +} +// PrevOrderCode Setter +// 前物流订单号,订单类型为502 换货出库单 503 补发出库单时,需求传入此内容 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetPrevOrderCode(_prevOrderCode string) error { + r._prevOrderCode = _prevOrderCode + r.Set("prev_order_code", _prevOrderCode) + return nil +} + +// PrevOrderCode Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetPrevOrderCode() string { + return r._prevOrderCode +} +// OrderShopCreateTime Setter +// 下单时间,订单在交易平台创建时间 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetOrderShopCreateTime(_orderShopCreateTime string) error { + r._orderShopCreateTime = _orderShopCreateTime + r.Set("order_shop_create_time", _orderShopCreateTime) + return nil +} + +// OrderShopCreateTime Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetOrderShopCreateTime() string { + return r._orderShopCreateTime +} +// OrderPayTime Setter +// 订单支付时间 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetOrderPayTime(_orderPayTime string) error { + r._orderPayTime = _orderPayTime + r.Set("order_pay_time", _orderPayTime) + return nil +} + +// OrderPayTime Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetOrderPayTime() string { + return r._orderPayTime +} +// OrderCreateTime Setter +// 订单创建时间,ERP创建订单时间 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetOrderCreateTime(_orderCreateTime string) error { + r._orderCreateTime = _orderCreateTime + r.Set("order_create_time", _orderCreateTime) + return nil +} + +// OrderCreateTime Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetOrderCreateTime() string { + return r._orderCreateTime +} +// OrderExaminationTime Setter +// 订单审核时间,ERP创建支付时间 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetOrderExaminationTime(_orderExaminationTime string) error { + r._orderExaminationTime = _orderExaminationTime + r.Set("order_examination_time", _orderExaminationTime) + return nil +} + +// OrderExaminationTime Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetOrderExaminationTime() string { + return r._orderExaminationTime +} +// OrderAmount Setter +// 订单总金额,=总商品金额-订单优惠金额+快递费用,单位分 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetOrderAmount(_orderAmount int64) error { + r._orderAmount = _orderAmount + r.Set("order_amount", _orderAmount) + return nil +} + +// OrderAmount Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetOrderAmount() int64 { + return r._orderAmount +} +// DiscountAmount Setter +// 订单优惠金额,整单优惠金额,单位分 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetDiscountAmount(_discountAmount int64) error { + r._discountAmount = _discountAmount + r.Set("discount_amount", _discountAmount) + return nil +} + +// DiscountAmount Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetDiscountAmount() int64 { + return r._discountAmount +} +// ArAmount Setter +// 订单应收金额,消费者还需要付的金额,单位分 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetArAmount(_arAmount int64) error { + r._arAmount = _arAmount + r.Set("ar_amount", _arAmount) + return nil +} + +// ArAmount Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetArAmount() int64 { + return r._arAmount +} +// GotAmount Setter +// 订单已付金额,消费者已经支付的金额,单位分 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetGotAmount(_gotAmount int64) error { + r._gotAmount = _gotAmount + r.Set("got_amount", _gotAmount) + return nil +} + +// GotAmount Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetGotAmount() int64 { + return r._gotAmount +} +// Postfee Setter +// 快递费用,单位分 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetPostfee(_postfee int64) error { + r._postfee = _postfee + r.Set("postfee", _postfee) + return nil +} + +// Postfee Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetPostfee() int64 { + return r._postfee +} +// ServiceFee Setter +// COD服务费,单位分 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetServiceFee(_serviceFee int64) error { + r._serviceFee = _serviceFee + r.Set("service_fee", _serviceFee) + return nil +} + +// ServiceFee Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetServiceFee() int64 { + return r._serviceFee +} +// DeliverRequirements Setter +// 配送要求 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetDeliverRequirements(_deliverRequirements *Deliverrequirementswlbwmsconsignordernotify) error { + r._deliverRequirements = _deliverRequirements + r.Set("deliver_requirements", _deliverRequirements) + return nil +} + +// DeliverRequirements Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetDeliverRequirements() *Deliverrequirementswlbwmsconsignordernotify { + return r._deliverRequirements +} +// ReceiverInfo Setter +// 收件人信息 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetReceiverInfo(_receiverInfo *Receiverwlbwmsconsignordernotify) error { + r._receiverInfo = _receiverInfo + r.Set("receiver_info", _receiverInfo) + return nil +} + +// ReceiverInfo Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetReceiverInfo() *Receiverwlbwmsconsignordernotify { + return r._receiverInfo +} +// SenderInfo Setter +// 发货方信息 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetSenderInfo(_senderInfo *Senderwlbwmsconsignordernotify) error { + r._senderInfo = _senderInfo + r.Set("sender_info", _senderInfo) + return nil +} + +// SenderInfo Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetSenderInfo() *Senderwlbwmsconsignordernotify { + return r._senderInfo +} +// OrderItemList Setter +// 订单商品信息列表 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetOrderItemList(_orderItemList []Orderitemlistwlbwmsconsignordernotify) error { + r._orderItemList = _orderItemList + r.Set("order_item_list", _orderItemList) + return nil +} + +// OrderItemList Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetOrderItemList() []Orderitemlistwlbwmsconsignordernotify { + return r._orderItemList +} +// InvoiceInfoList Setter +// 发票信息列表 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetInvoiceInfoList(_invoiceInfoList []Invoicelistwlbwmsconsignordernotify) error { + r._invoiceInfoList = _invoiceInfoList + r.Set("invoice_info_list", _invoiceInfoList) + return nil +} + +// InvoiceInfoList Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetInvoiceInfoList() []Invoicelistwlbwmsconsignordernotify { + return r._invoiceInfoList +} +// ExtendFields Setter +// 拓展属性 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetExtendFields(_extendFields string) error { + r._extendFields = _extendFields + r.Set("extend_fields", _extendFields) + return nil +} + +// ExtendFields Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetExtendFields() string { + return r._extendFields +} +// Remark Setter +// 备注 +func (r *TaobaoWlbWmsConsignOrderNotifyAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r TaobaoWlbWmsConsignOrderNotifyAPIRequest) GetRemark() string { + return r._remark +} diff --git a/model/wms/TaobaoWlbWmsConsignOrderNotifyAPIResponse.go b/model/wms/TaobaoWlbWmsConsignOrderNotifyAPIResponse.go new file mode 100644 index 0000000000..9859aa669d --- /dev/null +++ b/model/wms/TaobaoWlbWmsConsignOrderNotifyAPIResponse.go @@ -0,0 +1,35 @@ +package wms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +发货订单通知 API返回值 +taobao.wlb.wms.consign.order.notify + +发货订单通知 +*/ +type TaobaoWlbWmsConsignOrderNotifyAPIResponse struct { + model.CommonResponse + TaobaoWlbWmsConsignOrderNotifyAPIResponseModel +} + +// 发货订单通知 成功返回结果 +type TaobaoWlbWmsConsignOrderNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_wms_consign_order_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` + // 错误编码 + WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` + // 错误详细 + WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` + // 订单编码 + OrderCode string `json:"order_code,omitempty" xml:"order_code,omitempty"` + // 系统自动生成 + ConsignOrderList []Consignorderlist `json:"consign_order_list,omitempty" xml:"consign_order_list>consignorderlist,omitempty"` +} diff --git a/model/wms/TaobaoWlbWmsConsignOrderNotifyResponse.go b/model/wms/TaobaoWlbWmsConsignOrderNotifyResponse.go deleted file mode 100644 index 69f26ded05..0000000000 --- a/model/wms/TaobaoWlbWmsConsignOrderNotifyResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package wms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -发货订单通知 API返回值 -taobao.wlb.wms.consign.order.notify - -发货订单通知 -*/ -type TaobaoWlbWmsConsignOrderNotifyAPIResponse struct { - model.CommonResponse - TaobaoWlbWmsConsignOrderNotifyResponse -} - -// 发货订单通知 成功返回结果 -type TaobaoWlbWmsConsignOrderNotifyResponse struct { - XMLName xml.Name `xml:"wlb_wms_consign_order_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` - // 错误编码 - WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` - // 错误详细 - WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` - // 订单编码 - OrderCode string `json:"order_code,omitempty" xml:"order_code,omitempty"` - // 系统自动生成 - ConsignOrderList []Consignorderlist `json:"consign_order_list,omitempty" xml:"consign_order_list>consignorderlist,omitempty"` -} diff --git a/model/wms/TaobaoWlbWmsInventoryProfitlossGetAPIRequest.go b/model/wms/TaobaoWlbWmsInventoryProfitlossGetAPIRequest.go new file mode 100644 index 0000000000..38422ede31 --- /dev/null +++ b/model/wms/TaobaoWlbWmsInventoryProfitlossGetAPIRequest.go @@ -0,0 +1,52 @@ +package wms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过订单列表批量获取库存损益单信息 API请求 +taobao.wlb.wms.inventory.profitloss.get + +通过订单列表批量获取库存损益单信息 +*/ +type TaobaoWlbWmsInventoryProfitlossGetAPIRequest struct { + model.Params + // 菜鸟订单编码 + _cnOrderCode string +} + +// 初始化TaobaoWlbWmsInventoryProfitlossGetAPIRequest对象 +func NewTaobaoWlbWmsInventoryProfitlossGetRequest() *TaobaoWlbWmsInventoryProfitlossGetAPIRequest{ + return &TaobaoWlbWmsInventoryProfitlossGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWmsInventoryProfitlossGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.wms.inventory.profitloss.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWmsInventoryProfitlossGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CnOrderCode Setter +// 菜鸟订单编码 +func (r *TaobaoWlbWmsInventoryProfitlossGetAPIRequest) SetCnOrderCode(_cnOrderCode string) error { + r._cnOrderCode = _cnOrderCode + r.Set("cn_order_code", _cnOrderCode) + return nil +} + +// CnOrderCode Getter +func (r TaobaoWlbWmsInventoryProfitlossGetAPIRequest) GetCnOrderCode() string { + return r._cnOrderCode +} diff --git a/model/wms/TaobaoWlbWmsInventoryProfitlossGetAPIResponse.go b/model/wms/TaobaoWlbWmsInventoryProfitlossGetAPIResponse.go new file mode 100644 index 0000000000..611cbf5657 --- /dev/null +++ b/model/wms/TaobaoWlbWmsInventoryProfitlossGetAPIResponse.go @@ -0,0 +1,27 @@ +package wms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过订单列表批量获取库存损益单信息 API返回值 +taobao.wlb.wms.inventory.profitloss.get + +通过订单列表批量获取库存损益单信息 +*/ +type TaobaoWlbWmsInventoryProfitlossGetAPIResponse struct { + model.CommonResponse + TaobaoWlbWmsInventoryProfitlossGetAPIResponseModel +} + +// 通过订单列表批量获取库存损益单信息 成功返回结果 +type TaobaoWlbWmsInventoryProfitlossGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_wms_inventory_profitloss_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 损益信息 + ProfitLossInfo *CainiaoInventoryProfitlossProfitlossinfo `json:"profit_loss_info,omitempty" xml:"profit_loss_info,omitempty"` +} diff --git a/model/wms/TaobaoWlbWmsInventoryProfitlossGetResponse.go b/model/wms/TaobaoWlbWmsInventoryProfitlossGetResponse.go deleted file mode 100644 index f77841f666..0000000000 --- a/model/wms/TaobaoWlbWmsInventoryProfitlossGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过订单列表批量获取库存损益单信息 API返回值 -taobao.wlb.wms.inventory.profitloss.get - -通过订单列表批量获取库存损益单信息 -*/ -type TaobaoWlbWmsInventoryProfitlossGetAPIResponse struct { - model.CommonResponse - TaobaoWlbWmsInventoryProfitlossGetResponse -} - -// 通过订单列表批量获取库存损益单信息 成功返回结果 -type TaobaoWlbWmsInventoryProfitlossGetResponse struct { - XMLName xml.Name `xml:"wlb_wms_inventory_profitloss_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 损益信息 - ProfitLossInfo *CainiaoInventoryProfitlossProfitlossinfo `json:"profit_loss_info,omitempty" xml:"profit_loss_info,omitempty"` -} diff --git a/model/wms/TaobaoWlbWmsInventoryQueryAPIRequest.go b/model/wms/TaobaoWlbWmsInventoryQueryAPIRequest.go new file mode 100644 index 0000000000..be75e91223 --- /dev/null +++ b/model/wms/TaobaoWlbWmsInventoryQueryAPIRequest.go @@ -0,0 +1,178 @@ +package wms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟商品库存查询 API请求 +taobao.wlb.wms.inventory.query + +支持按汇总(不分批次和渠道的总的库存数量)、渠道、批次三类方式查询商品实时库存 +*/ +type TaobaoWlbWmsInventoryQueryAPIRequest struct { + model.Params + // 菜鸟商品ID + _itemId string + // 仓库编码 + _storeCode string + // 库存类型。 (1 正品 101 残次 102 机损 103 箱损 201 冻结库存 301 在途库存 ) + _inventoryType int64 + // 库存查询类型 1- 汇总库存,不区分批次和渠道 2- 批次库存,库存按商品批次维度划分 3- 渠道库存,库存按渠道维度划分 (当前业务不支持批次库存和渠道库存共存,批次库存无渠道属性,渠道库存无批次属性) + _type int64 + // 库存批次号,type=2时字段传值有效。 商品设置为批次管理时,商品产生批次库存。当商品为批次管理时,此字段不传值,返回所有批次库存信息。 + _batchCode string + // 生产日期,type=2时字段传值有效。 + _produceDate string + // 失效日期,type=2时字段传值有效。 + _dueDate string + // 渠道编码,type=3时字段传值有效。(TB 淘系, OTHERS 其他) + _channelCode string + // 分页的第几页 + _pageNo int64 + // 每页多少条,最大50条 + _pageSize int64 +} + +// 初始化TaobaoWlbWmsInventoryQueryAPIRequest对象 +func NewTaobaoWlbWmsInventoryQueryRequest() *TaobaoWlbWmsInventoryQueryAPIRequest{ + return &TaobaoWlbWmsInventoryQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWmsInventoryQueryAPIRequest) GetApiMethodName() string { + return "taobao.wlb.wms.inventory.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWmsInventoryQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 菜鸟商品ID +func (r *TaobaoWlbWmsInventoryQueryAPIRequest) SetItemId(_itemId string) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoWlbWmsInventoryQueryAPIRequest) GetItemId() string { + return r._itemId +} +// StoreCode Setter +// 仓库编码 +func (r *TaobaoWlbWmsInventoryQueryAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoWlbWmsInventoryQueryAPIRequest) GetStoreCode() string { + return r._storeCode +} +// InventoryType Setter +// 库存类型。 (1 正品 101 残次 102 机损 103 箱损 201 冻结库存 301 在途库存 ) +func (r *TaobaoWlbWmsInventoryQueryAPIRequest) SetInventoryType(_inventoryType int64) error { + r._inventoryType = _inventoryType + r.Set("inventory_type", _inventoryType) + return nil +} + +// InventoryType Getter +func (r TaobaoWlbWmsInventoryQueryAPIRequest) GetInventoryType() int64 { + return r._inventoryType +} +// Type Setter +// 库存查询类型 1- 汇总库存,不区分批次和渠道 2- 批次库存,库存按商品批次维度划分 3- 渠道库存,库存按渠道维度划分 (当前业务不支持批次库存和渠道库存共存,批次库存无渠道属性,渠道库存无批次属性) +func (r *TaobaoWlbWmsInventoryQueryAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoWlbWmsInventoryQueryAPIRequest) GetType() int64 { + return r._type +} +// BatchCode Setter +// 库存批次号,type=2时字段传值有效。 商品设置为批次管理时,商品产生批次库存。当商品为批次管理时,此字段不传值,返回所有批次库存信息。 +func (r *TaobaoWlbWmsInventoryQueryAPIRequest) SetBatchCode(_batchCode string) error { + r._batchCode = _batchCode + r.Set("batch_code", _batchCode) + return nil +} + +// BatchCode Getter +func (r TaobaoWlbWmsInventoryQueryAPIRequest) GetBatchCode() string { + return r._batchCode +} +// ProduceDate Setter +// 生产日期,type=2时字段传值有效。 +func (r *TaobaoWlbWmsInventoryQueryAPIRequest) SetProduceDate(_produceDate string) error { + r._produceDate = _produceDate + r.Set("produce_date", _produceDate) + return nil +} + +// ProduceDate Getter +func (r TaobaoWlbWmsInventoryQueryAPIRequest) GetProduceDate() string { + return r._produceDate +} +// DueDate Setter +// 失效日期,type=2时字段传值有效。 +func (r *TaobaoWlbWmsInventoryQueryAPIRequest) SetDueDate(_dueDate string) error { + r._dueDate = _dueDate + r.Set("due_date", _dueDate) + return nil +} + +// DueDate Getter +func (r TaobaoWlbWmsInventoryQueryAPIRequest) GetDueDate() string { + return r._dueDate +} +// ChannelCode Setter +// 渠道编码,type=3时字段传值有效。(TB 淘系, OTHERS 其他) +func (r *TaobaoWlbWmsInventoryQueryAPIRequest) SetChannelCode(_channelCode string) error { + r._channelCode = _channelCode + r.Set("channel_code", _channelCode) + return nil +} + +// ChannelCode Getter +func (r TaobaoWlbWmsInventoryQueryAPIRequest) GetChannelCode() string { + return r._channelCode +} +// PageNo Setter +// 分页的第几页 +func (r *TaobaoWlbWmsInventoryQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoWlbWmsInventoryQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 每页多少条,最大50条 +func (r *TaobaoWlbWmsInventoryQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoWlbWmsInventoryQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} diff --git a/model/wms/TaobaoWlbWmsInventoryQueryAPIResponse.go b/model/wms/TaobaoWlbWmsInventoryQueryAPIResponse.go new file mode 100644 index 0000000000..a92fc9c1b4 --- /dev/null +++ b/model/wms/TaobaoWlbWmsInventoryQueryAPIResponse.go @@ -0,0 +1,35 @@ +package wms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +菜鸟商品库存查询 API返回值 +taobao.wlb.wms.inventory.query + +支持按汇总(不分批次和渠道的总的库存数量)、渠道、批次三类方式查询商品实时库存 +*/ +type TaobaoWlbWmsInventoryQueryAPIResponse struct { + model.CommonResponse + TaobaoWlbWmsInventoryQueryAPIResponseModel +} + +// 菜鸟商品库存查询 成功返回结果 +type TaobaoWlbWmsInventoryQueryAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_wms_inventory_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` + // 错误代码 + WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` + // 错误信息 + WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` + // 总数 + TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` + // 商品详情列表 + ItemList []WmsInventoryQueryItemlist `json:"item_list,omitempty" xml:"item_list>wms_inventory_query_itemlist,omitempty"` +} diff --git a/model/wms/TaobaoWlbWmsInventoryQueryResponse.go b/model/wms/TaobaoWlbWmsInventoryQueryResponse.go deleted file mode 100644 index 1e8e0ef966..0000000000 --- a/model/wms/TaobaoWlbWmsInventoryQueryResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package wms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -菜鸟商品库存查询 API返回值 -taobao.wlb.wms.inventory.query - -支持按汇总(不分批次和渠道的总的库存数量)、渠道、批次三类方式查询商品实时库存 -*/ -type TaobaoWlbWmsInventoryQueryAPIResponse struct { - model.CommonResponse - TaobaoWlbWmsInventoryQueryResponse -} - -// 菜鸟商品库存查询 成功返回结果 -type TaobaoWlbWmsInventoryQueryResponse struct { - XMLName xml.Name `xml:"wlb_wms_inventory_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` - // 错误代码 - WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` - // 错误信息 - WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` - // 总数 - TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"` - // 商品详情列表 - ItemList []WmsInventoryQueryItemlist `json:"item_list,omitempty" xml:"item_list>wms_inventory_query_itemlist,omitempty"` -} diff --git a/model/wms/TaobaoWlbWmsItemCombinationGetAPIRequest.go b/model/wms/TaobaoWlbWmsItemCombinationGetAPIRequest.go new file mode 100644 index 0000000000..372f33e898 --- /dev/null +++ b/model/wms/TaobaoWlbWmsItemCombinationGetAPIRequest.go @@ -0,0 +1,52 @@ +package wms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询组合商品的组合关系 API请求 +taobao.wlb.wms.item.combination.get + +查询组合商品的组合关系 +*/ +type TaobaoWlbWmsItemCombinationGetAPIRequest struct { + model.Params + // 货品Id + _itemid int64 +} + +// 初始化TaobaoWlbWmsItemCombinationGetAPIRequest对象 +func NewTaobaoWlbWmsItemCombinationGetRequest() *TaobaoWlbWmsItemCombinationGetAPIRequest{ + return &TaobaoWlbWmsItemCombinationGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWmsItemCombinationGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.wms.item.combination.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWmsItemCombinationGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Itemid Setter +// 货品Id +func (r *TaobaoWlbWmsItemCombinationGetAPIRequest) SetItemid(_itemid int64) error { + r._itemid = _itemid + r.Set("itemid", _itemid) + return nil +} + +// Itemid Getter +func (r TaobaoWlbWmsItemCombinationGetAPIRequest) GetItemid() int64 { + return r._itemid +} diff --git a/model/wms/TaobaoWlbWmsItemCombinationGetAPIResponse.go b/model/wms/TaobaoWlbWmsItemCombinationGetAPIResponse.go new file mode 100644 index 0000000000..d352f33557 --- /dev/null +++ b/model/wms/TaobaoWlbWmsItemCombinationGetAPIResponse.go @@ -0,0 +1,27 @@ +package wms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询组合商品的组合关系 API返回值 +taobao.wlb.wms.item.combination.get + +查询组合商品的组合关系 +*/ +type TaobaoWlbWmsItemCombinationGetAPIResponse struct { + model.CommonResponse + TaobaoWlbWmsItemCombinationGetAPIResponseModel +} + +// 查询组合商品的组合关系 成功返回结果 +type TaobaoWlbWmsItemCombinationGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_wms_item_combination_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回结果 + Result *TaobaoWlbWmsItemCombinationGetResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wms/TaobaoWlbWmsItemCombinationGetResponse.go b/model/wms/TaobaoWlbWmsItemCombinationGetResponse.go deleted file mode 100644 index 3920a1d0e0..0000000000 --- a/model/wms/TaobaoWlbWmsItemCombinationGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询组合商品的组合关系 API返回值 -taobao.wlb.wms.item.combination.get - -查询组合商品的组合关系 -*/ -type TaobaoWlbWmsItemCombinationGetAPIResponse struct { - model.CommonResponse - TaobaoWlbWmsItemCombinationGetResponse -} - -// 查询组合商品的组合关系 成功返回结果 -type TaobaoWlbWmsItemCombinationGetResponse struct { - XMLName xml.Name `xml:"wlb_wms_item_combination_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回结果 - Result *TaobaoWlbWmsItemCombinationGetResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wms/TaobaoWlbWmsOrderCancelNotifyAPIRequest.go b/model/wms/TaobaoWlbWmsOrderCancelNotifyAPIRequest.go new file mode 100644 index 0000000000..665e88c7a6 --- /dev/null +++ b/model/wms/TaobaoWlbWmsOrderCancelNotifyAPIRequest.go @@ -0,0 +1,80 @@ +package wms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单据取消接口 API请求 +taobao.wlb.wms.order.cancel.notify + +单据取消接口 +*/ +type TaobaoWlbWmsOrderCancelNotifyAPIRequest struct { + model.Params + // 订单类型 + _orderCode string + // 仓库编码 + _storeCode string + // 单据类型 601普通入库单、501销退入库单、302 调拨入库单、904其他入库单、301 调拨出库单、901普通出库单、903 其他出库单、201 一般交易出库单 202 B2B交易出库单 502 换货出库单 503 补发出库单、1102 仓内加工作业单、 701 盘亏单、702盘盈单、711 库存状态调整单 + _orderType string +} + +// 初始化TaobaoWlbWmsOrderCancelNotifyAPIRequest对象 +func NewTaobaoWlbWmsOrderCancelNotifyRequest() *TaobaoWlbWmsOrderCancelNotifyAPIRequest{ + return &TaobaoWlbWmsOrderCancelNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWmsOrderCancelNotifyAPIRequest) GetApiMethodName() string { + return "taobao.wlb.wms.order.cancel.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWmsOrderCancelNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderCode Setter +// 订单类型 +func (r *TaobaoWlbWmsOrderCancelNotifyAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r TaobaoWlbWmsOrderCancelNotifyAPIRequest) GetOrderCode() string { + return r._orderCode +} +// StoreCode Setter +// 仓库编码 +func (r *TaobaoWlbWmsOrderCancelNotifyAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoWlbWmsOrderCancelNotifyAPIRequest) GetStoreCode() string { + return r._storeCode +} +// OrderType Setter +// 单据类型 601普通入库单、501销退入库单、302 调拨入库单、904其他入库单、301 调拨出库单、901普通出库单、903 其他出库单、201 一般交易出库单 202 B2B交易出库单 502 换货出库单 503 补发出库单、1102 仓内加工作业单、 701 盘亏单、702盘盈单、711 库存状态调整单 +func (r *TaobaoWlbWmsOrderCancelNotifyAPIRequest) SetOrderType(_orderType string) error { + r._orderType = _orderType + r.Set("order_type", _orderType) + return nil +} + +// OrderType Getter +func (r TaobaoWlbWmsOrderCancelNotifyAPIRequest) GetOrderType() string { + return r._orderType +} diff --git a/model/wms/TaobaoWlbWmsOrderCancelNotifyAPIResponse.go b/model/wms/TaobaoWlbWmsOrderCancelNotifyAPIResponse.go new file mode 100644 index 0000000000..b134960008 --- /dev/null +++ b/model/wms/TaobaoWlbWmsOrderCancelNotifyAPIResponse.go @@ -0,0 +1,31 @@ +package wms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单据取消接口 API返回值 +taobao.wlb.wms.order.cancel.notify + +单据取消接口 +*/ +type TaobaoWlbWmsOrderCancelNotifyAPIResponse struct { + model.CommonResponse + TaobaoWlbWmsOrderCancelNotifyAPIResponseModel +} + +// 单据取消接口 成功返回结果 +type TaobaoWlbWmsOrderCancelNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_wms_order_cancel_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` + // 错误编码 + WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` + // 错误详细 + WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` +} diff --git a/model/wms/TaobaoWlbWmsOrderCancelNotifyResponse.go b/model/wms/TaobaoWlbWmsOrderCancelNotifyResponse.go deleted file mode 100644 index b126646169..0000000000 --- a/model/wms/TaobaoWlbWmsOrderCancelNotifyResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package wms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单据取消接口 API返回值 -taobao.wlb.wms.order.cancel.notify - -单据取消接口 -*/ -type TaobaoWlbWmsOrderCancelNotifyAPIResponse struct { - model.CommonResponse - TaobaoWlbWmsOrderCancelNotifyResponse -} - -// 单据取消接口 成功返回结果 -type TaobaoWlbWmsOrderCancelNotifyResponse struct { - XMLName xml.Name `xml:"wlb_wms_order_cancel_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` - // 错误编码 - WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` - // 错误详细 - WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` -} diff --git a/model/wms/TaobaoWlbWmsReturnBillGetAPIRequest.go b/model/wms/TaobaoWlbWmsReturnBillGetAPIRequest.go new file mode 100644 index 0000000000..d1a0ea763a --- /dev/null +++ b/model/wms/TaobaoWlbWmsReturnBillGetAPIRequest.go @@ -0,0 +1,66 @@ +package wms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取销退收货信息 API请求 +taobao.wlb.wms.return.bill.get + +通过订单号获取单个销退单收货信息。 +*/ +type TaobaoWlbWmsReturnBillGetAPIRequest struct { + model.Params + // ERP订单编码,查询单个订单时orderCode与cnOrderCode必须有一个参数值不为空,两个参数都赋值时,以cnOrderCode值检索数据 + _orderCode string + // 菜鸟订单编码,查询单个订单时orderCode与cnOrderCode必须有一个参数值不为空,两个参数都赋值时,以cnOrderCode值检索数据 + _cnOrderCode string +} + +// 初始化TaobaoWlbWmsReturnBillGetAPIRequest对象 +func NewTaobaoWlbWmsReturnBillGetRequest() *TaobaoWlbWmsReturnBillGetAPIRequest{ + return &TaobaoWlbWmsReturnBillGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWmsReturnBillGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.wms.return.bill.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWmsReturnBillGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderCode Setter +// ERP订单编码,查询单个订单时orderCode与cnOrderCode必须有一个参数值不为空,两个参数都赋值时,以cnOrderCode值检索数据 +func (r *TaobaoWlbWmsReturnBillGetAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r TaobaoWlbWmsReturnBillGetAPIRequest) GetOrderCode() string { + return r._orderCode +} +// CnOrderCode Setter +// 菜鸟订单编码,查询单个订单时orderCode与cnOrderCode必须有一个参数值不为空,两个参数都赋值时,以cnOrderCode值检索数据 +func (r *TaobaoWlbWmsReturnBillGetAPIRequest) SetCnOrderCode(_cnOrderCode string) error { + r._cnOrderCode = _cnOrderCode + r.Set("cn_order_code", _cnOrderCode) + return nil +} + +// CnOrderCode Getter +func (r TaobaoWlbWmsReturnBillGetAPIRequest) GetCnOrderCode() string { + return r._cnOrderCode +} diff --git a/model/wms/TaobaoWlbWmsReturnBillGetAPIResponse.go b/model/wms/TaobaoWlbWmsReturnBillGetAPIResponse.go new file mode 100644 index 0000000000..7d9867cf13 --- /dev/null +++ b/model/wms/TaobaoWlbWmsReturnBillGetAPIResponse.go @@ -0,0 +1,27 @@ +package wms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取销退收货信息 API返回值 +taobao.wlb.wms.return.bill.get + +通过订单号获取单个销退单收货信息。 +*/ +type TaobaoWlbWmsReturnBillGetAPIResponse struct { + model.CommonResponse + TaobaoWlbWmsReturnBillGetAPIResponseModel +} + +// 获取销退收货信息 成功返回结果 +type TaobaoWlbWmsReturnBillGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_wms_return_bill_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 回退订单信息 + ReturnOrderInfo *CainiaoReturnBillReturnorderinfo `json:"return_order_info,omitempty" xml:"return_order_info,omitempty"` +} diff --git a/model/wms/TaobaoWlbWmsReturnBillGetResponse.go b/model/wms/TaobaoWlbWmsReturnBillGetResponse.go deleted file mode 100644 index e0041b290d..0000000000 --- a/model/wms/TaobaoWlbWmsReturnBillGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取销退收货信息 API返回值 -taobao.wlb.wms.return.bill.get - -通过订单号获取单个销退单收货信息。 -*/ -type TaobaoWlbWmsReturnBillGetAPIResponse struct { - model.CommonResponse - TaobaoWlbWmsReturnBillGetResponse -} - -// 获取销退收货信息 成功返回结果 -type TaobaoWlbWmsReturnBillGetResponse struct { - XMLName xml.Name `xml:"wlb_wms_return_bill_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 回退订单信息 - ReturnOrderInfo *CainiaoReturnBillReturnorderinfo `json:"return_order_info,omitempty" xml:"return_order_info,omitempty"` -} diff --git a/model/wms/TaobaoWlbWmsReturnOrderNotifyAPIRequest.go b/model/wms/TaobaoWlbWmsReturnOrderNotifyAPIRequest.go new file mode 100644 index 0000000000..9992ac09dc --- /dev/null +++ b/model/wms/TaobaoWlbWmsReturnOrderNotifyAPIRequest.go @@ -0,0 +1,290 @@ +package wms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +销售退货通知 API请求 +taobao.wlb.wms.return.order.notify + +销售退货通知 +*/ +type TaobaoWlbWmsReturnOrderNotifyAPIRequest struct { + model.Params + // ERP单据编码 + _orderCode string + // 仓库编码 + _storeCode string + // 用字符串格式来表示订单标记列表:比如VISIT^ SELLER_AFFORD^SYNC_RETURN_BILL 等,中间用“^”来隔开 ---------------------------------------- 订单标记list(所有字母全部大写): 9:VISIT-上门12: SELLER_AFFORD 是否卖家承担运费 默认是,即没 13: SYNC_RETURN_BILL,同时退回发票 + _orderFlag string + // 来源单据号,销售退货时填充原发货的LBX号 + _prevOrderCode string + // 快递公司编码 + _tmsServiceCode string + // 运单号 + _tmsOrderCode string + // 销退时请提供退货的原因 + _returnReason string + // 买家昵称 + _buyerNick string + // 发件人信息 + _senderInfo *Senderinfowlbwmsreturnordernotify + // 收件人信息 + _receiverInfo *Receiverinfowlbwmsreturnordernotify + // 商品信息列表 + _orderItemList []Orderitemlistwlbwmsreturnordernotify + // 扩展属性, key-value结构,格式要求: 以英文分号“;”分隔每组key-value,以英文冒号“:”分隔key与value。如果value中带有分号,需要转成下划线“_”,如果带有冒号,需要转成中划线“-” + _extendFields string + // 备注 + _remark string + // 订单来源 201 淘宝,202 1688,203 苏宁,204 亚马逊中国,205 当当,206 ebay,207 唯品会,208 1号店,209 国美,210 拍拍,211 聚美优品,212 乐峰,214 京东,301 其他 + _orderSource string + // 订单类型 501 销退入库 + _orderType string + // 货主ID + _ownerUserId string + // ERP订单创建时间 + _orderCreateTime string + // 快递公司名称 + _tmsServiceName string +} + +// 初始化TaobaoWlbWmsReturnOrderNotifyAPIRequest对象 +func NewTaobaoWlbWmsReturnOrderNotifyRequest() *TaobaoWlbWmsReturnOrderNotifyAPIRequest{ + return &TaobaoWlbWmsReturnOrderNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetApiMethodName() string { + return "taobao.wlb.wms.return.order.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderCode Setter +// ERP单据编码 +func (r *TaobaoWlbWmsReturnOrderNotifyAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetOrderCode() string { + return r._orderCode +} +// StoreCode Setter +// 仓库编码 +func (r *TaobaoWlbWmsReturnOrderNotifyAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetStoreCode() string { + return r._storeCode +} +// OrderFlag Setter +// 用字符串格式来表示订单标记列表:比如VISIT^ SELLER_AFFORD^SYNC_RETURN_BILL 等,中间用“^”来隔开 ---------------------------------------- 订单标记list(所有字母全部大写): 9:VISIT-上门12: SELLER_AFFORD 是否卖家承担运费 默认是,即没 13: SYNC_RETURN_BILL,同时退回发票 +func (r *TaobaoWlbWmsReturnOrderNotifyAPIRequest) SetOrderFlag(_orderFlag string) error { + r._orderFlag = _orderFlag + r.Set("order_flag", _orderFlag) + return nil +} + +// OrderFlag Getter +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetOrderFlag() string { + return r._orderFlag +} +// PrevOrderCode Setter +// 来源单据号,销售退货时填充原发货的LBX号 +func (r *TaobaoWlbWmsReturnOrderNotifyAPIRequest) SetPrevOrderCode(_prevOrderCode string) error { + r._prevOrderCode = _prevOrderCode + r.Set("prev_order_code", _prevOrderCode) + return nil +} + +// PrevOrderCode Getter +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetPrevOrderCode() string { + return r._prevOrderCode +} +// TmsServiceCode Setter +// 快递公司编码 +func (r *TaobaoWlbWmsReturnOrderNotifyAPIRequest) SetTmsServiceCode(_tmsServiceCode string) error { + r._tmsServiceCode = _tmsServiceCode + r.Set("tms_service_code", _tmsServiceCode) + return nil +} + +// TmsServiceCode Getter +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetTmsServiceCode() string { + return r._tmsServiceCode +} +// TmsOrderCode Setter +// 运单号 +func (r *TaobaoWlbWmsReturnOrderNotifyAPIRequest) SetTmsOrderCode(_tmsOrderCode string) error { + r._tmsOrderCode = _tmsOrderCode + r.Set("tms_order_code", _tmsOrderCode) + return nil +} + +// TmsOrderCode Getter +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetTmsOrderCode() string { + return r._tmsOrderCode +} +// ReturnReason Setter +// 销退时请提供退货的原因 +func (r *TaobaoWlbWmsReturnOrderNotifyAPIRequest) SetReturnReason(_returnReason string) error { + r._returnReason = _returnReason + r.Set("return_reason", _returnReason) + return nil +} + +// ReturnReason Getter +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetReturnReason() string { + return r._returnReason +} +// BuyerNick Setter +// 买家昵称 +func (r *TaobaoWlbWmsReturnOrderNotifyAPIRequest) SetBuyerNick(_buyerNick string) error { + r._buyerNick = _buyerNick + r.Set("buyer_nick", _buyerNick) + return nil +} + +// BuyerNick Getter +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetBuyerNick() string { + return r._buyerNick +} +// SenderInfo Setter +// 发件人信息 +func (r *TaobaoWlbWmsReturnOrderNotifyAPIRequest) SetSenderInfo(_senderInfo *Senderinfowlbwmsreturnordernotify) error { + r._senderInfo = _senderInfo + r.Set("sender_info", _senderInfo) + return nil +} + +// SenderInfo Getter +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetSenderInfo() *Senderinfowlbwmsreturnordernotify { + return r._senderInfo +} +// ReceiverInfo Setter +// 收件人信息 +func (r *TaobaoWlbWmsReturnOrderNotifyAPIRequest) SetReceiverInfo(_receiverInfo *Receiverinfowlbwmsreturnordernotify) error { + r._receiverInfo = _receiverInfo + r.Set("receiver_info", _receiverInfo) + return nil +} + +// ReceiverInfo Getter +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetReceiverInfo() *Receiverinfowlbwmsreturnordernotify { + return r._receiverInfo +} +// OrderItemList Setter +// 商品信息列表 +func (r *TaobaoWlbWmsReturnOrderNotifyAPIRequest) SetOrderItemList(_orderItemList []Orderitemlistwlbwmsreturnordernotify) error { + r._orderItemList = _orderItemList + r.Set("order_item_list", _orderItemList) + return nil +} + +// OrderItemList Getter +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetOrderItemList() []Orderitemlistwlbwmsreturnordernotify { + return r._orderItemList +} +// ExtendFields Setter +// 扩展属性, key-value结构,格式要求: 以英文分号“;”分隔每组key-value,以英文冒号“:”分隔key与value。如果value中带有分号,需要转成下划线“_”,如果带有冒号,需要转成中划线“-” +func (r *TaobaoWlbWmsReturnOrderNotifyAPIRequest) SetExtendFields(_extendFields string) error { + r._extendFields = _extendFields + r.Set("extend_fields", _extendFields) + return nil +} + +// ExtendFields Getter +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetExtendFields() string { + return r._extendFields +} +// Remark Setter +// 备注 +func (r *TaobaoWlbWmsReturnOrderNotifyAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetRemark() string { + return r._remark +} +// OrderSource Setter +// 订单来源 201 淘宝,202 1688,203 苏宁,204 亚马逊中国,205 当当,206 ebay,207 唯品会,208 1号店,209 国美,210 拍拍,211 聚美优品,212 乐峰,214 京东,301 其他 +func (r *TaobaoWlbWmsReturnOrderNotifyAPIRequest) SetOrderSource(_orderSource string) error { + r._orderSource = _orderSource + r.Set("order_source", _orderSource) + return nil +} + +// OrderSource Getter +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetOrderSource() string { + return r._orderSource +} +// OrderType Setter +// 订单类型 501 销退入库 +func (r *TaobaoWlbWmsReturnOrderNotifyAPIRequest) SetOrderType(_orderType string) error { + r._orderType = _orderType + r.Set("order_type", _orderType) + return nil +} + +// OrderType Getter +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetOrderType() string { + return r._orderType +} +// OwnerUserId Setter +// 货主ID +func (r *TaobaoWlbWmsReturnOrderNotifyAPIRequest) SetOwnerUserId(_ownerUserId string) error { + r._ownerUserId = _ownerUserId + r.Set("owner_user_id", _ownerUserId) + return nil +} + +// OwnerUserId Getter +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetOwnerUserId() string { + return r._ownerUserId +} +// OrderCreateTime Setter +// ERP订单创建时间 +func (r *TaobaoWlbWmsReturnOrderNotifyAPIRequest) SetOrderCreateTime(_orderCreateTime string) error { + r._orderCreateTime = _orderCreateTime + r.Set("order_create_time", _orderCreateTime) + return nil +} + +// OrderCreateTime Getter +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetOrderCreateTime() string { + return r._orderCreateTime +} +// TmsServiceName Setter +// 快递公司名称 +func (r *TaobaoWlbWmsReturnOrderNotifyAPIRequest) SetTmsServiceName(_tmsServiceName string) error { + r._tmsServiceName = _tmsServiceName + r.Set("tms_service_name", _tmsServiceName) + return nil +} + +// TmsServiceName Getter +func (r TaobaoWlbWmsReturnOrderNotifyAPIRequest) GetTmsServiceName() string { + return r._tmsServiceName +} diff --git a/model/wms/TaobaoWlbWmsReturnOrderNotifyAPIResponse.go b/model/wms/TaobaoWlbWmsReturnOrderNotifyAPIResponse.go new file mode 100644 index 0000000000..8467e2eb2d --- /dev/null +++ b/model/wms/TaobaoWlbWmsReturnOrderNotifyAPIResponse.go @@ -0,0 +1,35 @@ +package wms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +销售退货通知 API返回值 +taobao.wlb.wms.return.order.notify + +销售退货通知 +*/ +type TaobaoWlbWmsReturnOrderNotifyAPIResponse struct { + model.CommonResponse + TaobaoWlbWmsReturnOrderNotifyAPIResponseModel +} + +// 销售退货通知 成功返回结果 +type TaobaoWlbWmsReturnOrderNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_wms_return_order_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单创建时间 + CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"` + // LBX929829111 + StoreOrderCode string `json:"store_order_code,omitempty" xml:"store_order_code,omitempty"` + // 是否成功 + WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` + // 错误编码 + WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` + // 错误信息 + WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` +} diff --git a/model/wms/TaobaoWlbWmsReturnOrderNotifyResponse.go b/model/wms/TaobaoWlbWmsReturnOrderNotifyResponse.go deleted file mode 100644 index 8f7a16a2f1..0000000000 --- a/model/wms/TaobaoWlbWmsReturnOrderNotifyResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package wms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -销售退货通知 API返回值 -taobao.wlb.wms.return.order.notify - -销售退货通知 -*/ -type TaobaoWlbWmsReturnOrderNotifyAPIResponse struct { - model.CommonResponse - TaobaoWlbWmsReturnOrderNotifyResponse -} - -// 销售退货通知 成功返回结果 -type TaobaoWlbWmsReturnOrderNotifyResponse struct { - XMLName xml.Name `xml:"wlb_wms_return_order_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单创建时间 - CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"` - // LBX929829111 - StoreOrderCode string `json:"store_order_code,omitempty" xml:"store_order_code,omitempty"` - // 是否成功 - WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` - // 错误编码 - WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` - // 错误信息 - WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` -} diff --git a/model/wms/TaobaoWlbWmsSkuCreateAPIRequest.go b/model/wms/TaobaoWlbWmsSkuCreateAPIRequest.go new file mode 100644 index 0000000000..0ffb3baaf8 --- /dev/null +++ b/model/wms/TaobaoWlbWmsSkuCreateAPIRequest.go @@ -0,0 +1,570 @@ +package wms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品同步 API请求 +taobao.wlb.wms.sku.create + +商品同步 +*/ +type TaobaoWlbWmsSkuCreateAPIRequest struct { + model.Params + // 商家商品编码 + _itemCode string + // 条形码,多条码请用”;”分隔; + _barCode string + // 仓库编码 + _storeCode string + // 商品名称 + _name string + // 商品标题 + _title string + // 商品类别NORMAL:普通商品、COMBINE:组合商品、DISTRIBUTION:分销商品、HAOCAI耗材、FUSHUPIN附属品、BAOCAI 包材、XUNI虚拟商品、QITA其他) + _type string + // 商品类别编码(外部系统类别) + _category string + // 商品类别名称 + _categoryName string + // 品牌编码 + _brand string + // 品牌名称 + _brandName string + // 规格 + _specification string + // 颜色 + _color string + // 尺码 + _size string + // 毛重,单位克 + _grossWeight int64 + // 净重,单位克 + _netWeight int64 + // 长度,单位毫米 + _length int64 + // 宽度,单位毫米 + _width int64 + // 高度,单位毫米 + _height int64 + // 体积,单位立方厘米 + _volume int64 + // 箱规 + _pcs int64 + // 产地 + _originAddress int64 + // 批准文号 + _approvalNumber string + // 是否启用保质期管理 + _isShelflife bool + // 商品保质期天数 + _lifecycle int64 + // 保质期禁收天数 + _rejectLifecycle int64 + // 保质期禁售天数 + _lockupLifecycle int64 + // 保质期预警天数 + _adventLifecycle int64 + // 是否启用序列号管理 + _isSnMgt bool + // 是否易碎品 + _isHygroscopic bool + // 是否危险品 + _isDanger bool + // 吊牌价,单位分 + _tagPrice int64 + // 零售价,单位分 + _itemPrice int64 + // 成本价,单位分 + _costPrice int64 + // 是否启用批次管理 + _isBatchMgt bool + // 启用标识 + _useYn bool + // 拓展属性 + _extendFields string + // 商家商品ID + _itemId string + // 是否区域销售 + _isAreaSale bool +} + +// 初始化TaobaoWlbWmsSkuCreateAPIRequest对象 +func NewTaobaoWlbWmsSkuCreateRequest() *TaobaoWlbWmsSkuCreateAPIRequest{ + return &TaobaoWlbWmsSkuCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetApiMethodName() string { + return "taobao.wlb.wms.sku.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemCode Setter +// 商家商品编码 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetItemCode(_itemCode string) error { + r._itemCode = _itemCode + r.Set("item_code", _itemCode) + return nil +} + +// ItemCode Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetItemCode() string { + return r._itemCode +} +// BarCode Setter +// 条形码,多条码请用”;”分隔; +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetBarCode(_barCode string) error { + r._barCode = _barCode + r.Set("bar_code", _barCode) + return nil +} + +// BarCode Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetBarCode() string { + return r._barCode +} +// StoreCode Setter +// 仓库编码 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetStoreCode() string { + return r._storeCode +} +// Name Setter +// 商品名称 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetName() string { + return r._name +} +// Title Setter +// 商品标题 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetTitle() string { + return r._title +} +// Type Setter +// 商品类别NORMAL:普通商品、COMBINE:组合商品、DISTRIBUTION:分销商品、HAOCAI耗材、FUSHUPIN附属品、BAOCAI 包材、XUNI虚拟商品、QITA其他) +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetType() string { + return r._type +} +// Category Setter +// 商品类别编码(外部系统类别) +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetCategory(_category string) error { + r._category = _category + r.Set("category", _category) + return nil +} + +// Category Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetCategory() string { + return r._category +} +// CategoryName Setter +// 商品类别名称 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetCategoryName(_categoryName string) error { + r._categoryName = _categoryName + r.Set("category_name", _categoryName) + return nil +} + +// CategoryName Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetCategoryName() string { + return r._categoryName +} +// Brand Setter +// 品牌编码 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetBrand(_brand string) error { + r._brand = _brand + r.Set("brand", _brand) + return nil +} + +// Brand Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetBrand() string { + return r._brand +} +// BrandName Setter +// 品牌名称 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetBrandName(_brandName string) error { + r._brandName = _brandName + r.Set("brand_name", _brandName) + return nil +} + +// BrandName Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetBrandName() string { + return r._brandName +} +// Specification Setter +// 规格 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetSpecification(_specification string) error { + r._specification = _specification + r.Set("specification", _specification) + return nil +} + +// Specification Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetSpecification() string { + return r._specification +} +// Color Setter +// 颜色 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetColor(_color string) error { + r._color = _color + r.Set("color", _color) + return nil +} + +// Color Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetColor() string { + return r._color +} +// Size Setter +// 尺码 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetSize(_size string) error { + r._size = _size + r.Set("size", _size) + return nil +} + +// Size Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetSize() string { + return r._size +} +// GrossWeight Setter +// 毛重,单位克 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetGrossWeight(_grossWeight int64) error { + r._grossWeight = _grossWeight + r.Set("gross_weight", _grossWeight) + return nil +} + +// GrossWeight Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetGrossWeight() int64 { + return r._grossWeight +} +// NetWeight Setter +// 净重,单位克 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetNetWeight(_netWeight int64) error { + r._netWeight = _netWeight + r.Set("net_weight", _netWeight) + return nil +} + +// NetWeight Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetNetWeight() int64 { + return r._netWeight +} +// Length Setter +// 长度,单位毫米 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetLength(_length int64) error { + r._length = _length + r.Set("length", _length) + return nil +} + +// Length Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetLength() int64 { + return r._length +} +// Width Setter +// 宽度,单位毫米 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetWidth(_width int64) error { + r._width = _width + r.Set("width", _width) + return nil +} + +// Width Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetWidth() int64 { + return r._width +} +// Height Setter +// 高度,单位毫米 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetHeight(_height int64) error { + r._height = _height + r.Set("height", _height) + return nil +} + +// Height Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetHeight() int64 { + return r._height +} +// Volume Setter +// 体积,单位立方厘米 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetVolume(_volume int64) error { + r._volume = _volume + r.Set("volume", _volume) + return nil +} + +// Volume Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetVolume() int64 { + return r._volume +} +// Pcs Setter +// 箱规 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetPcs(_pcs int64) error { + r._pcs = _pcs + r.Set("pcs", _pcs) + return nil +} + +// Pcs Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetPcs() int64 { + return r._pcs +} +// OriginAddress Setter +// 产地 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetOriginAddress(_originAddress int64) error { + r._originAddress = _originAddress + r.Set("origin_address", _originAddress) + return nil +} + +// OriginAddress Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetOriginAddress() int64 { + return r._originAddress +} +// ApprovalNumber Setter +// 批准文号 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetApprovalNumber(_approvalNumber string) error { + r._approvalNumber = _approvalNumber + r.Set("approval_number", _approvalNumber) + return nil +} + +// ApprovalNumber Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetApprovalNumber() string { + return r._approvalNumber +} +// IsShelflife Setter +// 是否启用保质期管理 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetIsShelflife(_isShelflife bool) error { + r._isShelflife = _isShelflife + r.Set("is_shelflife", _isShelflife) + return nil +} + +// IsShelflife Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetIsShelflife() bool { + return r._isShelflife +} +// Lifecycle Setter +// 商品保质期天数 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetLifecycle(_lifecycle int64) error { + r._lifecycle = _lifecycle + r.Set("lifecycle", _lifecycle) + return nil +} + +// Lifecycle Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetLifecycle() int64 { + return r._lifecycle +} +// RejectLifecycle Setter +// 保质期禁收天数 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetRejectLifecycle(_rejectLifecycle int64) error { + r._rejectLifecycle = _rejectLifecycle + r.Set("reject_lifecycle", _rejectLifecycle) + return nil +} + +// RejectLifecycle Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetRejectLifecycle() int64 { + return r._rejectLifecycle +} +// LockupLifecycle Setter +// 保质期禁售天数 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetLockupLifecycle(_lockupLifecycle int64) error { + r._lockupLifecycle = _lockupLifecycle + r.Set("lockup_lifecycle", _lockupLifecycle) + return nil +} + +// LockupLifecycle Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetLockupLifecycle() int64 { + return r._lockupLifecycle +} +// AdventLifecycle Setter +// 保质期预警天数 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetAdventLifecycle(_adventLifecycle int64) error { + r._adventLifecycle = _adventLifecycle + r.Set("advent_lifecycle", _adventLifecycle) + return nil +} + +// AdventLifecycle Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetAdventLifecycle() int64 { + return r._adventLifecycle +} +// IsSnMgt Setter +// 是否启用序列号管理 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetIsSnMgt(_isSnMgt bool) error { + r._isSnMgt = _isSnMgt + r.Set("is_sn_mgt", _isSnMgt) + return nil +} + +// IsSnMgt Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetIsSnMgt() bool { + return r._isSnMgt +} +// IsHygroscopic Setter +// 是否易碎品 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetIsHygroscopic(_isHygroscopic bool) error { + r._isHygroscopic = _isHygroscopic + r.Set("is_hygroscopic", _isHygroscopic) + return nil +} + +// IsHygroscopic Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetIsHygroscopic() bool { + return r._isHygroscopic +} +// IsDanger Setter +// 是否危险品 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetIsDanger(_isDanger bool) error { + r._isDanger = _isDanger + r.Set("is_danger", _isDanger) + return nil +} + +// IsDanger Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetIsDanger() bool { + return r._isDanger +} +// TagPrice Setter +// 吊牌价,单位分 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetTagPrice(_tagPrice int64) error { + r._tagPrice = _tagPrice + r.Set("tag_price", _tagPrice) + return nil +} + +// TagPrice Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetTagPrice() int64 { + return r._tagPrice +} +// ItemPrice Setter +// 零售价,单位分 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetItemPrice(_itemPrice int64) error { + r._itemPrice = _itemPrice + r.Set("item_price", _itemPrice) + return nil +} + +// ItemPrice Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetItemPrice() int64 { + return r._itemPrice +} +// CostPrice Setter +// 成本价,单位分 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetCostPrice(_costPrice int64) error { + r._costPrice = _costPrice + r.Set("cost_price", _costPrice) + return nil +} + +// CostPrice Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetCostPrice() int64 { + return r._costPrice +} +// IsBatchMgt Setter +// 是否启用批次管理 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetIsBatchMgt(_isBatchMgt bool) error { + r._isBatchMgt = _isBatchMgt + r.Set("is_batch_mgt", _isBatchMgt) + return nil +} + +// IsBatchMgt Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetIsBatchMgt() bool { + return r._isBatchMgt +} +// UseYn Setter +// 启用标识 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetUseYn(_useYn bool) error { + r._useYn = _useYn + r.Set("use_yn", _useYn) + return nil +} + +// UseYn Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetUseYn() bool { + return r._useYn +} +// ExtendFields Setter +// 拓展属性 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetExtendFields(_extendFields string) error { + r._extendFields = _extendFields + r.Set("extend_fields", _extendFields) + return nil +} + +// ExtendFields Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetExtendFields() string { + return r._extendFields +} +// ItemId Setter +// 商家商品ID +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetItemId(_itemId string) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetItemId() string { + return r._itemId +} +// IsAreaSale Setter +// 是否区域销售 +func (r *TaobaoWlbWmsSkuCreateAPIRequest) SetIsAreaSale(_isAreaSale bool) error { + r._isAreaSale = _isAreaSale + r.Set("is_area_sale", _isAreaSale) + return nil +} + +// IsAreaSale Getter +func (r TaobaoWlbWmsSkuCreateAPIRequest) GetIsAreaSale() bool { + return r._isAreaSale +} diff --git a/model/wms/TaobaoWlbWmsSkuCreateAPIResponse.go b/model/wms/TaobaoWlbWmsSkuCreateAPIResponse.go new file mode 100644 index 0000000000..2ea809dff3 --- /dev/null +++ b/model/wms/TaobaoWlbWmsSkuCreateAPIResponse.go @@ -0,0 +1,33 @@ +package wms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品同步 API返回值 +taobao.wlb.wms.sku.create + +商品同步 +*/ +type TaobaoWlbWmsSkuCreateAPIResponse struct { + model.CommonResponse + TaobaoWlbWmsSkuCreateAPIResponseModel +} + +// 商品同步 成功返回结果 +type TaobaoWlbWmsSkuCreateAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_wms_sku_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` + // 错误信息 + WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` + // 是否成功 + WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` + // 错误码 + WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` +} diff --git a/model/wms/TaobaoWlbWmsSkuCreateResponse.go b/model/wms/TaobaoWlbWmsSkuCreateResponse.go deleted file mode 100644 index d0b59d4003..0000000000 --- a/model/wms/TaobaoWlbWmsSkuCreateResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package wms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品同步 API返回值 -taobao.wlb.wms.sku.create - -商品同步 -*/ -type TaobaoWlbWmsSkuCreateAPIResponse struct { - model.CommonResponse - TaobaoWlbWmsSkuCreateResponse -} - -// 商品同步 成功返回结果 -type TaobaoWlbWmsSkuCreateResponse struct { - XMLName xml.Name `xml:"wlb_wms_sku_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` - // 错误信息 - WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` - // 是否成功 - WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` - // 错误码 - WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` -} diff --git a/model/wms/TaobaoWlbWmsSkuGetAPIRequest.go b/model/wms/TaobaoWlbWmsSkuGetAPIRequest.go new file mode 100644 index 0000000000..eca210330f --- /dev/null +++ b/model/wms/TaobaoWlbWmsSkuGetAPIRequest.go @@ -0,0 +1,80 @@ +package wms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品信息查询 API请求 +taobao.wlb.wms.sku.get + +商品信息查询 +*/ +type TaobaoWlbWmsSkuGetAPIRequest struct { + model.Params + // 菜鸟商品ID,与itemcode必须有一个值不为空 + _itemCode string + // 商家商品编码,与itemid必须有一个值不为空 + _itemId string + // 货主ID + _ownerUserId string +} + +// 初始化TaobaoWlbWmsSkuGetAPIRequest对象 +func NewTaobaoWlbWmsSkuGetRequest() *TaobaoWlbWmsSkuGetAPIRequest{ + return &TaobaoWlbWmsSkuGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWmsSkuGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.wms.sku.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWmsSkuGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemCode Setter +// 菜鸟商品ID,与itemcode必须有一个值不为空 +func (r *TaobaoWlbWmsSkuGetAPIRequest) SetItemCode(_itemCode string) error { + r._itemCode = _itemCode + r.Set("item_code", _itemCode) + return nil +} + +// ItemCode Getter +func (r TaobaoWlbWmsSkuGetAPIRequest) GetItemCode() string { + return r._itemCode +} +// ItemId Setter +// 商家商品编码,与itemid必须有一个值不为空 +func (r *TaobaoWlbWmsSkuGetAPIRequest) SetItemId(_itemId string) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoWlbWmsSkuGetAPIRequest) GetItemId() string { + return r._itemId +} +// OwnerUserId Setter +// 货主ID +func (r *TaobaoWlbWmsSkuGetAPIRequest) SetOwnerUserId(_ownerUserId string) error { + r._ownerUserId = _ownerUserId + r.Set("owner_user_id", _ownerUserId) + return nil +} + +// OwnerUserId Getter +func (r TaobaoWlbWmsSkuGetAPIRequest) GetOwnerUserId() string { + return r._ownerUserId +} diff --git a/model/wms/TaobaoWlbWmsSkuGetAPIResponse.go b/model/wms/TaobaoWlbWmsSkuGetAPIResponse.go new file mode 100644 index 0000000000..be45844111 --- /dev/null +++ b/model/wms/TaobaoWlbWmsSkuGetAPIResponse.go @@ -0,0 +1,105 @@ +package wms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品信息查询 API返回值 +taobao.wlb.wms.sku.get + +商品信息查询 +*/ +type TaobaoWlbWmsSkuGetAPIResponse struct { + model.CommonResponse + TaobaoWlbWmsSkuGetAPIResponseModel +} + +// 商品信息查询 成功返回结果 +type TaobaoWlbWmsSkuGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_wms_sku_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 拓展属性, key-value结构,格式要求: 以英文分号“;”分隔每组key-value,以英文冒号“:”分隔key与value。如果value中带有分号,需要转成下划线“_”,如果带有冒号,需要转成中划线“-” + ExtendFields string `json:"extend_fields,omitempty" xml:"extend_fields,omitempty"` + // 是否启用批次管理 + IsBatchMgt bool `json:"is_batch_mgt,omitempty" xml:"is_batch_mgt,omitempty"` + // 启用标识 + UseYn bool `json:"use_yn,omitempty" xml:"use_yn,omitempty"` + // 成本价,单位分 + CostPrice int64 `json:"cost_price,omitempty" xml:"cost_price,omitempty"` + // 零售价,单位分 + ItemPrice int64 `json:"item_price,omitempty" xml:"item_price,omitempty"` + // 吊牌价,单位分 + TagPrice int64 `json:"tag_price,omitempty" xml:"tag_price,omitempty"` + // 是否危险品 + IsDanger bool `json:"is_danger,omitempty" xml:"is_danger,omitempty"` + // 是否易碎品 + IsHygroscopic bool `json:"is_hygroscopic,omitempty" xml:"is_hygroscopic,omitempty"` + // 是否启用序列号管理 + IsSnMgt bool `json:"is_sn_mgt,omitempty" xml:"is_sn_mgt,omitempty"` + // 保质期预警天数 + AdventLifecycle int64 `json:"advent_lifecycle,omitempty" xml:"advent_lifecycle,omitempty"` + // 保质期禁售天数 + LockupLifecycle int64 `json:"lockup_lifecycle,omitempty" xml:"lockup_lifecycle,omitempty"` + // 保质期禁收天数 + RejectLifecycle int64 `json:"reject_lifecycle,omitempty" xml:"reject_lifecycle,omitempty"` + // 保质期天数 + Lifecycle int64 `json:"lifecycle,omitempty" xml:"lifecycle,omitempty"` + // 是否启用保质期管理 + IsShelflife bool `json:"is_shelflife,omitempty" xml:"is_shelflife,omitempty"` + // 批准文号 + ApprovalNumber string `json:"approval_number,omitempty" xml:"approval_number,omitempty"` + // 场地 + OriginAddress int64 `json:"origin_address,omitempty" xml:"origin_address,omitempty"` + // 箱规 + Pcs int64 `json:"pcs,omitempty" xml:"pcs,omitempty"` + // 体积,单位立方厘米 + Volume int64 `json:"volume,omitempty" xml:"volume,omitempty"` + // 高度,单位毫米 + Height int64 `json:"height,omitempty" xml:"height,omitempty"` + // 宽度,单位毫米 + Width int64 `json:"width,omitempty" xml:"width,omitempty"` + // 长度,单位毫米 + Length int64 `json:"length,omitempty" xml:"length,omitempty"` + // 净重,单位克 + NetWeight int64 `json:"net_weight,omitempty" xml:"net_weight,omitempty"` + // 毛重,单位克 + GrossWeight int64 `json:"gross_weight,omitempty" xml:"gross_weight,omitempty"` + // 尺寸 + Size string `json:"size,omitempty" xml:"size,omitempty"` + // 颜色 + Color string `json:"color,omitempty" xml:"color,omitempty"` + // 规格 + Specification string `json:"specification,omitempty" xml:"specification,omitempty"` + // 品牌名称 + BrandName string `json:"brand_name,omitempty" xml:"brand_name,omitempty"` + // 品牌编码 + Brand string `json:"brand,omitempty" xml:"brand,omitempty"` + // 商品类别名称 + CategoryName string `json:"category_name,omitempty" xml:"category_name,omitempty"` + // 商品类别编码(外部系统类别) + Category string `json:"category,omitempty" xml:"category,omitempty"` + // 商品类别 NORMAL:普通商品、 COMBINE:组合商品、 DISTRIBUTION:分销商品 + Type string `json:"type,omitempty" xml:"type,omitempty"` + // 商品标题 + Title string `json:"title,omitempty" xml:"title,omitempty"` + // 商品名称 + Name string `json:"name,omitempty" xml:"name,omitempty"` + // 条形码,多条码请用”;”分隔; + BarCode string `json:"bar_code,omitempty" xml:"bar_code,omitempty"` + // 商家商品编码,与itemid必须有一个值不为空 + IitemCode string `json:"iitem_code,omitempty" xml:"iitem_code,omitempty"` + // 菜鸟商品ID,与itemcode必须有一个值不为空 + ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"` + // 错误信息 + WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` + // 错误编码 + WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` + // 是否成功 + WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` + // 是否区域销售 + IsAreaSale bool `json:"is_area_sale,omitempty" xml:"is_area_sale,omitempty"` +} diff --git a/model/wms/TaobaoWlbWmsSkuGetResponse.go b/model/wms/TaobaoWlbWmsSkuGetResponse.go deleted file mode 100644 index 8542c64b3d..0000000000 --- a/model/wms/TaobaoWlbWmsSkuGetResponse.go +++ /dev/null @@ -1,105 +0,0 @@ -package wms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品信息查询 API返回值 -taobao.wlb.wms.sku.get - -商品信息查询 -*/ -type TaobaoWlbWmsSkuGetAPIResponse struct { - model.CommonResponse - TaobaoWlbWmsSkuGetResponse -} - -// 商品信息查询 成功返回结果 -type TaobaoWlbWmsSkuGetResponse struct { - XMLName xml.Name `xml:"wlb_wms_sku_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 拓展属性, key-value结构,格式要求: 以英文分号“;”分隔每组key-value,以英文冒号“:”分隔key与value。如果value中带有分号,需要转成下划线“_”,如果带有冒号,需要转成中划线“-” - ExtendFields string `json:"extend_fields,omitempty" xml:"extend_fields,omitempty"` - // 是否启用批次管理 - IsBatchMgt bool `json:"is_batch_mgt,omitempty" xml:"is_batch_mgt,omitempty"` - // 启用标识 - UseYn bool `json:"use_yn,omitempty" xml:"use_yn,omitempty"` - // 成本价,单位分 - CostPrice int64 `json:"cost_price,omitempty" xml:"cost_price,omitempty"` - // 零售价,单位分 - ItemPrice int64 `json:"item_price,omitempty" xml:"item_price,omitempty"` - // 吊牌价,单位分 - TagPrice int64 `json:"tag_price,omitempty" xml:"tag_price,omitempty"` - // 是否危险品 - IsDanger bool `json:"is_danger,omitempty" xml:"is_danger,omitempty"` - // 是否易碎品 - IsHygroscopic bool `json:"is_hygroscopic,omitempty" xml:"is_hygroscopic,omitempty"` - // 是否启用序列号管理 - IsSnMgt bool `json:"is_sn_mgt,omitempty" xml:"is_sn_mgt,omitempty"` - // 保质期预警天数 - AdventLifecycle int64 `json:"advent_lifecycle,omitempty" xml:"advent_lifecycle,omitempty"` - // 保质期禁售天数 - LockupLifecycle int64 `json:"lockup_lifecycle,omitempty" xml:"lockup_lifecycle,omitempty"` - // 保质期禁收天数 - RejectLifecycle int64 `json:"reject_lifecycle,omitempty" xml:"reject_lifecycle,omitempty"` - // 保质期天数 - Lifecycle int64 `json:"lifecycle,omitempty" xml:"lifecycle,omitempty"` - // 是否启用保质期管理 - IsShelflife bool `json:"is_shelflife,omitempty" xml:"is_shelflife,omitempty"` - // 批准文号 - ApprovalNumber string `json:"approval_number,omitempty" xml:"approval_number,omitempty"` - // 场地 - OriginAddress int64 `json:"origin_address,omitempty" xml:"origin_address,omitempty"` - // 箱规 - Pcs int64 `json:"pcs,omitempty" xml:"pcs,omitempty"` - // 体积,单位立方厘米 - Volume int64 `json:"volume,omitempty" xml:"volume,omitempty"` - // 高度,单位毫米 - Height int64 `json:"height,omitempty" xml:"height,omitempty"` - // 宽度,单位毫米 - Width int64 `json:"width,omitempty" xml:"width,omitempty"` - // 长度,单位毫米 - Length int64 `json:"length,omitempty" xml:"length,omitempty"` - // 净重,单位克 - NetWeight int64 `json:"net_weight,omitempty" xml:"net_weight,omitempty"` - // 毛重,单位克 - GrossWeight int64 `json:"gross_weight,omitempty" xml:"gross_weight,omitempty"` - // 尺寸 - Size string `json:"size,omitempty" xml:"size,omitempty"` - // 颜色 - Color string `json:"color,omitempty" xml:"color,omitempty"` - // 规格 - Specification string `json:"specification,omitempty" xml:"specification,omitempty"` - // 品牌名称 - BrandName string `json:"brand_name,omitempty" xml:"brand_name,omitempty"` - // 品牌编码 - Brand string `json:"brand,omitempty" xml:"brand,omitempty"` - // 商品类别名称 - CategoryName string `json:"category_name,omitempty" xml:"category_name,omitempty"` - // 商品类别编码(外部系统类别) - Category string `json:"category,omitempty" xml:"category,omitempty"` - // 商品类别 NORMAL:普通商品、 COMBINE:组合商品、 DISTRIBUTION:分销商品 - Type string `json:"type,omitempty" xml:"type,omitempty"` - // 商品标题 - Title string `json:"title,omitempty" xml:"title,omitempty"` - // 商品名称 - Name string `json:"name,omitempty" xml:"name,omitempty"` - // 条形码,多条码请用”;”分隔; - BarCode string `json:"bar_code,omitempty" xml:"bar_code,omitempty"` - // 商家商品编码,与itemid必须有一个值不为空 - IitemCode string `json:"iitem_code,omitempty" xml:"iitem_code,omitempty"` - // 菜鸟商品ID,与itemcode必须有一个值不为空 - ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"` - // 错误信息 - WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` - // 错误编码 - WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` - // 是否成功 - WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` - // 是否区域销售 - IsAreaSale bool `json:"is_area_sale,omitempty" xml:"is_area_sale,omitempty"` -} diff --git a/model/wms/TaobaoWlbWmsSkuUpdateAPIRequest.go b/model/wms/TaobaoWlbWmsSkuUpdateAPIRequest.go new file mode 100644 index 0000000000..34112d810a --- /dev/null +++ b/model/wms/TaobaoWlbWmsSkuUpdateAPIRequest.go @@ -0,0 +1,570 @@ +package wms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商品信息的更新 API请求 +taobao.wlb.wms.sku.update + +商品信息的更新 +*/ +type TaobaoWlbWmsSkuUpdateAPIRequest struct { + model.Params + // 外部系统ID + _itemId string + // 仓库编码 + _storeCode string + // 商品名称 + _name string + // 商品标题 + _title string + // 商品类别编码(外部系统类别) + _category string + // 商品类别名称 + _categoryName string + // 品牌编码 + _brand string + // 品牌名称 + _brandName string + // 规格 + _specification string + // 颜色 + _color string + // 尺码 + _size string + // 毛重,单位克 + _grossWeight int64 + // 净重,单位克 + _netWeight int64 + // 长度,单位毫米 + _length int64 + // 宽度,单位毫米 + _width int64 + // 高度,单位毫米 + _height int64 + // 体积,单位立方厘米 + _volume int64 + // 箱规 + _pcs int64 + // 产地 + _originAddress int64 + // 批准文号 + _approvalNumber string + // 是否启用保质期管理 + _isShelflife bool + // 商品保质期天数 + _lifecycle int64 + // 保质期禁收天数 + _rejectLifecycle int64 + // 保质期禁售天数 + _lockupLifecycle int64 + // 保质期预警天数 + _adventLifecycle int64 + // 是否启用序列号管理 + _isSnMgt bool + // 是否易碎品 + _isHygroscopic bool + // 是否危险品 + _isDanger bool + // 吊牌价,单位分 + _tagPrice int64 + // 零售价,单位分 + _itemPrice int64 + // 成本价,单位分 + _costPrice int64 + // 是否启用批次管理 + _isBatchMgt bool + // 启用标识 + _useYn bool + // 拓展属性 + _extendFields string + // 条形码,多条码请用”;”分隔;条码更新只技术增量更新,已有条码无法修改,只能在原条码基础上增加新的条码。例:原商品条码为:BAR001,要增加一条新条码BAR002时,此字段内容应填写为:BAR001;BAR002 + _barCode string + // 商品属性编码 + _attribute string + // 商品类型:NORMAL-普通商品、 COMBINE-组合商品、 DISTRIBUTION-分销商品 + _type string + // 是否区域销售属性 + _isAreaSale bool +} + +// 初始化TaobaoWlbWmsSkuUpdateAPIRequest对象 +func NewTaobaoWlbWmsSkuUpdateRequest() *TaobaoWlbWmsSkuUpdateAPIRequest{ + return &TaobaoWlbWmsSkuUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetApiMethodName() string { + return "taobao.wlb.wms.sku.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ItemId Setter +// 外部系统ID +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetItemId(_itemId string) error { + r._itemId = _itemId + r.Set("item_id", _itemId) + return nil +} + +// ItemId Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetItemId() string { + return r._itemId +} +// StoreCode Setter +// 仓库编码 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetStoreCode() string { + return r._storeCode +} +// Name Setter +// 商品名称 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetName() string { + return r._name +} +// Title Setter +// 商品标题 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetTitle() string { + return r._title +} +// Category Setter +// 商品类别编码(外部系统类别) +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetCategory(_category string) error { + r._category = _category + r.Set("category", _category) + return nil +} + +// Category Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetCategory() string { + return r._category +} +// CategoryName Setter +// 商品类别名称 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetCategoryName(_categoryName string) error { + r._categoryName = _categoryName + r.Set("category_name", _categoryName) + return nil +} + +// CategoryName Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetCategoryName() string { + return r._categoryName +} +// Brand Setter +// 品牌编码 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetBrand(_brand string) error { + r._brand = _brand + r.Set("brand", _brand) + return nil +} + +// Brand Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetBrand() string { + return r._brand +} +// BrandName Setter +// 品牌名称 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetBrandName(_brandName string) error { + r._brandName = _brandName + r.Set("brand_name", _brandName) + return nil +} + +// BrandName Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetBrandName() string { + return r._brandName +} +// Specification Setter +// 规格 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetSpecification(_specification string) error { + r._specification = _specification + r.Set("specification", _specification) + return nil +} + +// Specification Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetSpecification() string { + return r._specification +} +// Color Setter +// 颜色 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetColor(_color string) error { + r._color = _color + r.Set("color", _color) + return nil +} + +// Color Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetColor() string { + return r._color +} +// Size Setter +// 尺码 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetSize(_size string) error { + r._size = _size + r.Set("size", _size) + return nil +} + +// Size Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetSize() string { + return r._size +} +// GrossWeight Setter +// 毛重,单位克 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetGrossWeight(_grossWeight int64) error { + r._grossWeight = _grossWeight + r.Set("gross_weight", _grossWeight) + return nil +} + +// GrossWeight Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetGrossWeight() int64 { + return r._grossWeight +} +// NetWeight Setter +// 净重,单位克 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetNetWeight(_netWeight int64) error { + r._netWeight = _netWeight + r.Set("net_weight", _netWeight) + return nil +} + +// NetWeight Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetNetWeight() int64 { + return r._netWeight +} +// Length Setter +// 长度,单位毫米 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetLength(_length int64) error { + r._length = _length + r.Set("length", _length) + return nil +} + +// Length Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetLength() int64 { + return r._length +} +// Width Setter +// 宽度,单位毫米 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetWidth(_width int64) error { + r._width = _width + r.Set("width", _width) + return nil +} + +// Width Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetWidth() int64 { + return r._width +} +// Height Setter +// 高度,单位毫米 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetHeight(_height int64) error { + r._height = _height + r.Set("height", _height) + return nil +} + +// Height Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetHeight() int64 { + return r._height +} +// Volume Setter +// 体积,单位立方厘米 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetVolume(_volume int64) error { + r._volume = _volume + r.Set("volume", _volume) + return nil +} + +// Volume Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetVolume() int64 { + return r._volume +} +// Pcs Setter +// 箱规 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetPcs(_pcs int64) error { + r._pcs = _pcs + r.Set("pcs", _pcs) + return nil +} + +// Pcs Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetPcs() int64 { + return r._pcs +} +// OriginAddress Setter +// 产地 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetOriginAddress(_originAddress int64) error { + r._originAddress = _originAddress + r.Set("origin_address", _originAddress) + return nil +} + +// OriginAddress Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetOriginAddress() int64 { + return r._originAddress +} +// ApprovalNumber Setter +// 批准文号 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetApprovalNumber(_approvalNumber string) error { + r._approvalNumber = _approvalNumber + r.Set("approval_number", _approvalNumber) + return nil +} + +// ApprovalNumber Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetApprovalNumber() string { + return r._approvalNumber +} +// IsShelflife Setter +// 是否启用保质期管理 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetIsShelflife(_isShelflife bool) error { + r._isShelflife = _isShelflife + r.Set("is_shelflife", _isShelflife) + return nil +} + +// IsShelflife Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetIsShelflife() bool { + return r._isShelflife +} +// Lifecycle Setter +// 商品保质期天数 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetLifecycle(_lifecycle int64) error { + r._lifecycle = _lifecycle + r.Set("lifecycle", _lifecycle) + return nil +} + +// Lifecycle Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetLifecycle() int64 { + return r._lifecycle +} +// RejectLifecycle Setter +// 保质期禁收天数 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetRejectLifecycle(_rejectLifecycle int64) error { + r._rejectLifecycle = _rejectLifecycle + r.Set("reject_lifecycle", _rejectLifecycle) + return nil +} + +// RejectLifecycle Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetRejectLifecycle() int64 { + return r._rejectLifecycle +} +// LockupLifecycle Setter +// 保质期禁售天数 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetLockupLifecycle(_lockupLifecycle int64) error { + r._lockupLifecycle = _lockupLifecycle + r.Set("lockup_lifecycle", _lockupLifecycle) + return nil +} + +// LockupLifecycle Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetLockupLifecycle() int64 { + return r._lockupLifecycle +} +// AdventLifecycle Setter +// 保质期预警天数 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetAdventLifecycle(_adventLifecycle int64) error { + r._adventLifecycle = _adventLifecycle + r.Set("advent_lifecycle", _adventLifecycle) + return nil +} + +// AdventLifecycle Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetAdventLifecycle() int64 { + return r._adventLifecycle +} +// IsSnMgt Setter +// 是否启用序列号管理 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetIsSnMgt(_isSnMgt bool) error { + r._isSnMgt = _isSnMgt + r.Set("is_sn_mgt", _isSnMgt) + return nil +} + +// IsSnMgt Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetIsSnMgt() bool { + return r._isSnMgt +} +// IsHygroscopic Setter +// 是否易碎品 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetIsHygroscopic(_isHygroscopic bool) error { + r._isHygroscopic = _isHygroscopic + r.Set("is_hygroscopic", _isHygroscopic) + return nil +} + +// IsHygroscopic Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetIsHygroscopic() bool { + return r._isHygroscopic +} +// IsDanger Setter +// 是否危险品 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetIsDanger(_isDanger bool) error { + r._isDanger = _isDanger + r.Set("is_danger", _isDanger) + return nil +} + +// IsDanger Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetIsDanger() bool { + return r._isDanger +} +// TagPrice Setter +// 吊牌价,单位分 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetTagPrice(_tagPrice int64) error { + r._tagPrice = _tagPrice + r.Set("tag_price", _tagPrice) + return nil +} + +// TagPrice Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetTagPrice() int64 { + return r._tagPrice +} +// ItemPrice Setter +// 零售价,单位分 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetItemPrice(_itemPrice int64) error { + r._itemPrice = _itemPrice + r.Set("item_price", _itemPrice) + return nil +} + +// ItemPrice Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetItemPrice() int64 { + return r._itemPrice +} +// CostPrice Setter +// 成本价,单位分 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetCostPrice(_costPrice int64) error { + r._costPrice = _costPrice + r.Set("cost_price", _costPrice) + return nil +} + +// CostPrice Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetCostPrice() int64 { + return r._costPrice +} +// IsBatchMgt Setter +// 是否启用批次管理 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetIsBatchMgt(_isBatchMgt bool) error { + r._isBatchMgt = _isBatchMgt + r.Set("is_batch_mgt", _isBatchMgt) + return nil +} + +// IsBatchMgt Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetIsBatchMgt() bool { + return r._isBatchMgt +} +// UseYn Setter +// 启用标识 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetUseYn(_useYn bool) error { + r._useYn = _useYn + r.Set("use_yn", _useYn) + return nil +} + +// UseYn Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetUseYn() bool { + return r._useYn +} +// ExtendFields Setter +// 拓展属性 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetExtendFields(_extendFields string) error { + r._extendFields = _extendFields + r.Set("extend_fields", _extendFields) + return nil +} + +// ExtendFields Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetExtendFields() string { + return r._extendFields +} +// BarCode Setter +// 条形码,多条码请用”;”分隔;条码更新只技术增量更新,已有条码无法修改,只能在原条码基础上增加新的条码。例:原商品条码为:BAR001,要增加一条新条码BAR002时,此字段内容应填写为:BAR001;BAR002 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetBarCode(_barCode string) error { + r._barCode = _barCode + r.Set("bar_code", _barCode) + return nil +} + +// BarCode Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetBarCode() string { + return r._barCode +} +// Attribute Setter +// 商品属性编码 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetAttribute(_attribute string) error { + r._attribute = _attribute + r.Set("attribute", _attribute) + return nil +} + +// Attribute Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetAttribute() string { + return r._attribute +} +// Type Setter +// 商品类型:NORMAL-普通商品、 COMBINE-组合商品、 DISTRIBUTION-分销商品 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetType() string { + return r._type +} +// IsAreaSale Setter +// 是否区域销售属性 +func (r *TaobaoWlbWmsSkuUpdateAPIRequest) SetIsAreaSale(_isAreaSale bool) error { + r._isAreaSale = _isAreaSale + r.Set("is_area_sale", _isAreaSale) + return nil +} + +// IsAreaSale Getter +func (r TaobaoWlbWmsSkuUpdateAPIRequest) GetIsAreaSale() bool { + return r._isAreaSale +} diff --git a/model/wms/TaobaoWlbWmsSkuUpdateAPIResponse.go b/model/wms/TaobaoWlbWmsSkuUpdateAPIResponse.go new file mode 100644 index 0000000000..ea963319b9 --- /dev/null +++ b/model/wms/TaobaoWlbWmsSkuUpdateAPIResponse.go @@ -0,0 +1,31 @@ +package wms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商品信息的更新 API返回值 +taobao.wlb.wms.sku.update + +商品信息的更新 +*/ +type TaobaoWlbWmsSkuUpdateAPIResponse struct { + model.CommonResponse + TaobaoWlbWmsSkuUpdateAPIResponseModel +} + +// 商品信息的更新 成功返回结果 +type TaobaoWlbWmsSkuUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_wms_sku_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` + // 错误编码 + WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` + // 是否成功 + WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` +} diff --git a/model/wms/TaobaoWlbWmsSkuUpdateResponse.go b/model/wms/TaobaoWlbWmsSkuUpdateResponse.go deleted file mode 100644 index 60a57e813e..0000000000 --- a/model/wms/TaobaoWlbWmsSkuUpdateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package wms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商品信息的更新 API返回值 -taobao.wlb.wms.sku.update - -商品信息的更新 -*/ -type TaobaoWlbWmsSkuUpdateAPIResponse struct { - model.CommonResponse - TaobaoWlbWmsSkuUpdateResponse -} - -// 商品信息的更新 成功返回结果 -type TaobaoWlbWmsSkuUpdateResponse struct { - XMLName xml.Name `xml:"wlb_wms_sku_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` - // 错误编码 - WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` - // 是否成功 - WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` -} diff --git a/model/wms/TaobaoWlbWmsSnInfoQueryAPIRequest.go b/model/wms/TaobaoWlbWmsSnInfoQueryAPIRequest.go new file mode 100644 index 0000000000..96486ea5a8 --- /dev/null +++ b/model/wms/TaobaoWlbWmsSnInfoQueryAPIRequest.go @@ -0,0 +1,80 @@ +package wms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询单据序列号信息 API请求 +taobao.wlb.wms.sn.info.query + +查询仓库作业的各类单据记录的Sn信息 +*/ +type TaobaoWlbWmsSnInfoQueryAPIRequest struct { + model.Params + // 订单编码 + _orderCode string + // 订单类型(1:仓配订单 10:配送扫码 20:增值扫码 40:ERP单号; 50:交易订单 ) + _orderCodeType int64 + // 页数,默认每页50条 + _pageIndex int64 +} + +// 初始化TaobaoWlbWmsSnInfoQueryAPIRequest对象 +func NewTaobaoWlbWmsSnInfoQueryRequest() *TaobaoWlbWmsSnInfoQueryAPIRequest{ + return &TaobaoWlbWmsSnInfoQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWmsSnInfoQueryAPIRequest) GetApiMethodName() string { + return "taobao.wlb.wms.sn.info.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWmsSnInfoQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderCode Setter +// 订单编码 +func (r *TaobaoWlbWmsSnInfoQueryAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r TaobaoWlbWmsSnInfoQueryAPIRequest) GetOrderCode() string { + return r._orderCode +} +// OrderCodeType Setter +// 订单类型(1:仓配订单 10:配送扫码 20:增值扫码 40:ERP单号; 50:交易订单 ) +func (r *TaobaoWlbWmsSnInfoQueryAPIRequest) SetOrderCodeType(_orderCodeType int64) error { + r._orderCodeType = _orderCodeType + r.Set("order_code_type", _orderCodeType) + return nil +} + +// OrderCodeType Getter +func (r TaobaoWlbWmsSnInfoQueryAPIRequest) GetOrderCodeType() int64 { + return r._orderCodeType +} +// PageIndex Setter +// 页数,默认每页50条 +func (r *TaobaoWlbWmsSnInfoQueryAPIRequest) SetPageIndex(_pageIndex int64) error { + r._pageIndex = _pageIndex + r.Set("page_index", _pageIndex) + return nil +} + +// PageIndex Getter +func (r TaobaoWlbWmsSnInfoQueryAPIRequest) GetPageIndex() int64 { + return r._pageIndex +} diff --git a/model/wms/TaobaoWlbWmsSnInfoQueryAPIResponse.go b/model/wms/TaobaoWlbWmsSnInfoQueryAPIResponse.go new file mode 100644 index 0000000000..8947808205 --- /dev/null +++ b/model/wms/TaobaoWlbWmsSnInfoQueryAPIResponse.go @@ -0,0 +1,27 @@ +package wms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询单据序列号信息 API返回值 +taobao.wlb.wms.sn.info.query + +查询仓库作业的各类单据记录的Sn信息 +*/ +type TaobaoWlbWmsSnInfoQueryAPIResponse struct { + model.CommonResponse + TaobaoWlbWmsSnInfoQueryAPIResponseModel +} + +// 查询单据序列号信息 成功返回结果 +type TaobaoWlbWmsSnInfoQueryAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_wms_sn_info_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回 + Result *TaobaoWlbWmsSnInfoQueryResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/wms/TaobaoWlbWmsSnInfoQueryResponse.go b/model/wms/TaobaoWlbWmsSnInfoQueryResponse.go deleted file mode 100644 index 178da294d8..0000000000 --- a/model/wms/TaobaoWlbWmsSnInfoQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询单据序列号信息 API返回值 -taobao.wlb.wms.sn.info.query - -查询仓库作业的各类单据记录的Sn信息 -*/ -type TaobaoWlbWmsSnInfoQueryAPIResponse struct { - model.CommonResponse - TaobaoWlbWmsSnInfoQueryResponse -} - -// 查询单据序列号信息 成功返回结果 -type TaobaoWlbWmsSnInfoQueryResponse struct { - XMLName xml.Name `xml:"wlb_wms_sn_info_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回 - Result *TaobaoWlbWmsSnInfoQueryResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/wms/TaobaoWlbWmsStockInBillGetAPIRequest.go b/model/wms/TaobaoWlbWmsStockInBillGetAPIRequest.go new file mode 100644 index 0000000000..c3992223e9 --- /dev/null +++ b/model/wms/TaobaoWlbWmsStockInBillGetAPIRequest.go @@ -0,0 +1,66 @@ +package wms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取入库单信息 API请求 +taobao.wlb.wms.stock.in.bill.get + +获取入库单信息 +*/ +type TaobaoWlbWmsStockInBillGetAPIRequest struct { + model.Params + // ERP订单编码,查询单个订单时orderCode与cnOrderCode必须有一个参数值不为空,两个参数都赋值时,以cnOrderCode值检索数据 + _orderCode string + // 菜鸟订单编码,查询单个订单时orderCode与cnOrderCode必须有一个参数值不为空,两个参数都赋值时,以cnOrderCode值检索数据 + _cnOrderCode string +} + +// 初始化TaobaoWlbWmsStockInBillGetAPIRequest对象 +func NewTaobaoWlbWmsStockInBillGetRequest() *TaobaoWlbWmsStockInBillGetAPIRequest{ + return &TaobaoWlbWmsStockInBillGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWmsStockInBillGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.wms.stock.in.bill.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWmsStockInBillGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderCode Setter +// ERP订单编码,查询单个订单时orderCode与cnOrderCode必须有一个参数值不为空,两个参数都赋值时,以cnOrderCode值检索数据 +func (r *TaobaoWlbWmsStockInBillGetAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r TaobaoWlbWmsStockInBillGetAPIRequest) GetOrderCode() string { + return r._orderCode +} +// CnOrderCode Setter +// 菜鸟订单编码,查询单个订单时orderCode与cnOrderCode必须有一个参数值不为空,两个参数都赋值时,以cnOrderCode值检索数据 +func (r *TaobaoWlbWmsStockInBillGetAPIRequest) SetCnOrderCode(_cnOrderCode string) error { + r._cnOrderCode = _cnOrderCode + r.Set("cn_order_code", _cnOrderCode) + return nil +} + +// CnOrderCode Getter +func (r TaobaoWlbWmsStockInBillGetAPIRequest) GetCnOrderCode() string { + return r._cnOrderCode +} diff --git a/model/wms/TaobaoWlbWmsStockInBillGetAPIResponse.go b/model/wms/TaobaoWlbWmsStockInBillGetAPIResponse.go new file mode 100644 index 0000000000..6687eda187 --- /dev/null +++ b/model/wms/TaobaoWlbWmsStockInBillGetAPIResponse.go @@ -0,0 +1,27 @@ +package wms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取入库单信息 API返回值 +taobao.wlb.wms.stock.in.bill.get + +获取入库单信息 +*/ +type TaobaoWlbWmsStockInBillGetAPIResponse struct { + model.CommonResponse + TaobaoWlbWmsStockInBillGetAPIResponseModel +} + +// 获取入库单信息 成功返回结果 +type TaobaoWlbWmsStockInBillGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_wms_stock_in_bill_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 入库单信息 + StockInInfo *CainiaoStockInBillStockininfo `json:"stock_in_info,omitempty" xml:"stock_in_info,omitempty"` +} diff --git a/model/wms/TaobaoWlbWmsStockInBillGetResponse.go b/model/wms/TaobaoWlbWmsStockInBillGetResponse.go deleted file mode 100644 index d3daf8854a..0000000000 --- a/model/wms/TaobaoWlbWmsStockInBillGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取入库单信息 API返回值 -taobao.wlb.wms.stock.in.bill.get - -获取入库单信息 -*/ -type TaobaoWlbWmsStockInBillGetAPIResponse struct { - model.CommonResponse - TaobaoWlbWmsStockInBillGetResponse -} - -// 获取入库单信息 成功返回结果 -type TaobaoWlbWmsStockInBillGetResponse struct { - XMLName xml.Name `xml:"wlb_wms_stock_in_bill_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 入库单信息 - StockInInfo *CainiaoStockInBillStockininfo `json:"stock_in_info,omitempty" xml:"stock_in_info,omitempty"` -} diff --git a/model/wms/TaobaoWlbWmsStockInOrderNotifyAPIRequest.go b/model/wms/TaobaoWlbWmsStockInOrderNotifyAPIRequest.go new file mode 100644 index 0000000000..01d81e4e00 --- /dev/null +++ b/model/wms/TaobaoWlbWmsStockInOrderNotifyAPIRequest.go @@ -0,0 +1,318 @@ +package wms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +入库通知单 API请求 +taobao.wlb.wms.stock.in.order.notify + +入库通知单 +*/ +type TaobaoWlbWmsStockInOrderNotifyAPIRequest struct { + model.Params + // 仓库编码 + _storeCode string + // 入库单据编码 + _orderCode string + // 单据类型 601普通入库单、501销退入库单、302 调拨入库单、904其他入库单、306 B2B入库 + _orderType int64 + // 可选择性文本透传至WMS,比如加工归还、委外归还、借出归还、内部归还等 + _inboundTypeDesc string + // 订单标记以逗号分隔: 9:上门退货入库 13: 退货时是否收取发票,默认不收取(即没13为多选项,如1,2,8,9) + _orderFlag string + // 单据创建时间 + _orderCreateTime string + // 供应商编码,往来单位编码 + _supplierCode string + // 供应商名称 ,往来单位名称 + _supplierName string + // 配送公司编码,拒收(非妥投)的销退订单,由ERP填充原单配送公司编码 + _tmsServiceCode string + // 快递公司名称 + _tmsServiceName string + // 运单号&托运单号 1) 入库单支持多运单号录入 2) 销退场景下如果是拒收(非妥投运单)由ERP填充原运单号 + _tmsOrderCode string + // 来源单据号,如销售退货时填充原销售订单号 + _prevOrderCode string + // 销退时请提供退货的原因 + _returnReason string + // 预期送达开始时间 + _expectStartTime string + // 预期送达结束时间 + _expectEndTime string + // 系统自动生成 + _receiverInfo *Receiverinfowlbwmsstockinordernotifywl + // 系统自动生成 + _senderInfo *Senderinfowlbwmsstockinordernotifywl + // 系统自动生成 + _orderItemList []Orderitemlistwlbwmsstockinordernotifywl + // 扩展属性, key-value结构,格式要求: 以英文分号“;”分隔每组key-value,以英文冒号“:”分隔key与value。如果value中带有分号,需要转成下划线“_”,如果带有冒号,需要转成中划线“-” + _extendFields string + // 备注,销退入库订单需要留言备注填充到此字段 + _remark string +} + +// 初始化TaobaoWlbWmsStockInOrderNotifyAPIRequest对象 +func NewTaobaoWlbWmsStockInOrderNotifyRequest() *TaobaoWlbWmsStockInOrderNotifyAPIRequest{ + return &TaobaoWlbWmsStockInOrderNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetApiMethodName() string { + return "taobao.wlb.wms.stock.in.order.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreCode Setter +// 仓库编码 +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetStoreCode() string { + return r._storeCode +} +// OrderCode Setter +// 入库单据编码 +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetOrderCode() string { + return r._orderCode +} +// OrderType Setter +// 单据类型 601普通入库单、501销退入库单、302 调拨入库单、904其他入库单、306 B2B入库 +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetOrderType(_orderType int64) error { + r._orderType = _orderType + r.Set("order_type", _orderType) + return nil +} + +// OrderType Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetOrderType() int64 { + return r._orderType +} +// InboundTypeDesc Setter +// 可选择性文本透传至WMS,比如加工归还、委外归还、借出归还、内部归还等 +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetInboundTypeDesc(_inboundTypeDesc string) error { + r._inboundTypeDesc = _inboundTypeDesc + r.Set("inbound_type_desc", _inboundTypeDesc) + return nil +} + +// InboundTypeDesc Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetInboundTypeDesc() string { + return r._inboundTypeDesc +} +// OrderFlag Setter +// 订单标记以逗号分隔: 9:上门退货入库 13: 退货时是否收取发票,默认不收取(即没13为多选项,如1,2,8,9) +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetOrderFlag(_orderFlag string) error { + r._orderFlag = _orderFlag + r.Set("order_flag", _orderFlag) + return nil +} + +// OrderFlag Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetOrderFlag() string { + return r._orderFlag +} +// OrderCreateTime Setter +// 单据创建时间 +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetOrderCreateTime(_orderCreateTime string) error { + r._orderCreateTime = _orderCreateTime + r.Set("order_create_time", _orderCreateTime) + return nil +} + +// OrderCreateTime Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetOrderCreateTime() string { + return r._orderCreateTime +} +// SupplierCode Setter +// 供应商编码,往来单位编码 +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetSupplierCode(_supplierCode string) error { + r._supplierCode = _supplierCode + r.Set("supplier_code", _supplierCode) + return nil +} + +// SupplierCode Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetSupplierCode() string { + return r._supplierCode +} +// SupplierName Setter +// 供应商名称 ,往来单位名称 +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetSupplierName(_supplierName string) error { + r._supplierName = _supplierName + r.Set("supplier_name", _supplierName) + return nil +} + +// SupplierName Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetSupplierName() string { + return r._supplierName +} +// TmsServiceCode Setter +// 配送公司编码,拒收(非妥投)的销退订单,由ERP填充原单配送公司编码 +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetTmsServiceCode(_tmsServiceCode string) error { + r._tmsServiceCode = _tmsServiceCode + r.Set("tms_service_code", _tmsServiceCode) + return nil +} + +// TmsServiceCode Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetTmsServiceCode() string { + return r._tmsServiceCode +} +// TmsServiceName Setter +// 快递公司名称 +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetTmsServiceName(_tmsServiceName string) error { + r._tmsServiceName = _tmsServiceName + r.Set("tms_service_name", _tmsServiceName) + return nil +} + +// TmsServiceName Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetTmsServiceName() string { + return r._tmsServiceName +} +// TmsOrderCode Setter +// 运单号&托运单号 1) 入库单支持多运单号录入 2) 销退场景下如果是拒收(非妥投运单)由ERP填充原运单号 +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetTmsOrderCode(_tmsOrderCode string) error { + r._tmsOrderCode = _tmsOrderCode + r.Set("tms_order_code", _tmsOrderCode) + return nil +} + +// TmsOrderCode Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetTmsOrderCode() string { + return r._tmsOrderCode +} +// PrevOrderCode Setter +// 来源单据号,如销售退货时填充原销售订单号 +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetPrevOrderCode(_prevOrderCode string) error { + r._prevOrderCode = _prevOrderCode + r.Set("prev_order_code", _prevOrderCode) + return nil +} + +// PrevOrderCode Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetPrevOrderCode() string { + return r._prevOrderCode +} +// ReturnReason Setter +// 销退时请提供退货的原因 +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetReturnReason(_returnReason string) error { + r._returnReason = _returnReason + r.Set("return_reason", _returnReason) + return nil +} + +// ReturnReason Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetReturnReason() string { + return r._returnReason +} +// ExpectStartTime Setter +// 预期送达开始时间 +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetExpectStartTime(_expectStartTime string) error { + r._expectStartTime = _expectStartTime + r.Set("expect_start_time", _expectStartTime) + return nil +} + +// ExpectStartTime Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetExpectStartTime() string { + return r._expectStartTime +} +// ExpectEndTime Setter +// 预期送达结束时间 +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetExpectEndTime(_expectEndTime string) error { + r._expectEndTime = _expectEndTime + r.Set("expect_end_time", _expectEndTime) + return nil +} + +// ExpectEndTime Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetExpectEndTime() string { + return r._expectEndTime +} +// ReceiverInfo Setter +// 系统自动生成 +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetReceiverInfo(_receiverInfo *Receiverinfowlbwmsstockinordernotifywl) error { + r._receiverInfo = _receiverInfo + r.Set("receiver_info", _receiverInfo) + return nil +} + +// ReceiverInfo Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetReceiverInfo() *Receiverinfowlbwmsstockinordernotifywl { + return r._receiverInfo +} +// SenderInfo Setter +// 系统自动生成 +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetSenderInfo(_senderInfo *Senderinfowlbwmsstockinordernotifywl) error { + r._senderInfo = _senderInfo + r.Set("sender_info", _senderInfo) + return nil +} + +// SenderInfo Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetSenderInfo() *Senderinfowlbwmsstockinordernotifywl { + return r._senderInfo +} +// OrderItemList Setter +// 系统自动生成 +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetOrderItemList(_orderItemList []Orderitemlistwlbwmsstockinordernotifywl) error { + r._orderItemList = _orderItemList + r.Set("order_item_list", _orderItemList) + return nil +} + +// OrderItemList Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetOrderItemList() []Orderitemlistwlbwmsstockinordernotifywl { + return r._orderItemList +} +// ExtendFields Setter +// 扩展属性, key-value结构,格式要求: 以英文分号“;”分隔每组key-value,以英文冒号“:”分隔key与value。如果value中带有分号,需要转成下划线“_”,如果带有冒号,需要转成中划线“-” +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetExtendFields(_extendFields string) error { + r._extendFields = _extendFields + r.Set("extend_fields", _extendFields) + return nil +} + +// ExtendFields Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetExtendFields() string { + return r._extendFields +} +// Remark Setter +// 备注,销退入库订单需要留言备注填充到此字段 +func (r *TaobaoWlbWmsStockInOrderNotifyAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r TaobaoWlbWmsStockInOrderNotifyAPIRequest) GetRemark() string { + return r._remark +} diff --git a/model/wms/TaobaoWlbWmsStockInOrderNotifyAPIResponse.go b/model/wms/TaobaoWlbWmsStockInOrderNotifyAPIResponse.go new file mode 100644 index 0000000000..41c81ef9a0 --- /dev/null +++ b/model/wms/TaobaoWlbWmsStockInOrderNotifyAPIResponse.go @@ -0,0 +1,33 @@ +package wms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +入库通知单 API返回值 +taobao.wlb.wms.stock.in.order.notify + +入库通知单 +*/ +type TaobaoWlbWmsStockInOrderNotifyAPIResponse struct { + model.CommonResponse + TaobaoWlbWmsStockInOrderNotifyAPIResponseModel +} + +// 入库通知单 成功返回结果 +type TaobaoWlbWmsStockInOrderNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_wms_stock_in_order_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 + WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` + // 错误编码 + WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` + // 错误详细 + WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` + // 仓储订单编码 + OrderCode string `json:"order_code,omitempty" xml:"order_code,omitempty"` +} diff --git a/model/wms/TaobaoWlbWmsStockInOrderNotifyResponse.go b/model/wms/TaobaoWlbWmsStockInOrderNotifyResponse.go deleted file mode 100644 index 20f72515ea..0000000000 --- a/model/wms/TaobaoWlbWmsStockInOrderNotifyResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package wms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -入库通知单 API返回值 -taobao.wlb.wms.stock.in.order.notify - -入库通知单 -*/ -type TaobaoWlbWmsStockInOrderNotifyAPIResponse struct { - model.CommonResponse - TaobaoWlbWmsStockInOrderNotifyResponse -} - -// 入库通知单 成功返回结果 -type TaobaoWlbWmsStockInOrderNotifyResponse struct { - XMLName xml.Name `xml:"wlb_wms_stock_in_order_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 - WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` - // 错误编码 - WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` - // 错误详细 - WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` - // 仓储订单编码 - OrderCode string `json:"order_code,omitempty" xml:"order_code,omitempty"` -} diff --git a/model/wms/TaobaoWlbWmsStockOutBillGetAPIRequest.go b/model/wms/TaobaoWlbWmsStockOutBillGetAPIRequest.go new file mode 100644 index 0000000000..71954df9ee --- /dev/null +++ b/model/wms/TaobaoWlbWmsStockOutBillGetAPIRequest.go @@ -0,0 +1,66 @@ +package wms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +通过订单号获取单个出库单发货信息 API请求 +taobao.wlb.wms.stock.out.bill.get + +通过订单号获取单个出库单发货信息 +*/ +type TaobaoWlbWmsStockOutBillGetAPIRequest struct { + model.Params + // ERP订单编码,查询单个订单时orderCode与cnOrderCode必须有一个参数值不为空,两个参数都赋值时,以cnOrderCode值检索数据 + _orderCode string + // 菜鸟订单编码,查询单个订单时orderCode与cnOrderCode必须有一个参数值不为空,两个参数都赋值时,以cnOrderCode值检索数据 + _cnOrderCode string +} + +// 初始化TaobaoWlbWmsStockOutBillGetAPIRequest对象 +func NewTaobaoWlbWmsStockOutBillGetRequest() *TaobaoWlbWmsStockOutBillGetAPIRequest{ + return &TaobaoWlbWmsStockOutBillGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWmsStockOutBillGetAPIRequest) GetApiMethodName() string { + return "taobao.wlb.wms.stock.out.bill.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWmsStockOutBillGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderCode Setter +// ERP订单编码,查询单个订单时orderCode与cnOrderCode必须有一个参数值不为空,两个参数都赋值时,以cnOrderCode值检索数据 +func (r *TaobaoWlbWmsStockOutBillGetAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r TaobaoWlbWmsStockOutBillGetAPIRequest) GetOrderCode() string { + return r._orderCode +} +// CnOrderCode Setter +// 菜鸟订单编码,查询单个订单时orderCode与cnOrderCode必须有一个参数值不为空,两个参数都赋值时,以cnOrderCode值检索数据 +func (r *TaobaoWlbWmsStockOutBillGetAPIRequest) SetCnOrderCode(_cnOrderCode string) error { + r._cnOrderCode = _cnOrderCode + r.Set("cn_order_code", _cnOrderCode) + return nil +} + +// CnOrderCode Getter +func (r TaobaoWlbWmsStockOutBillGetAPIRequest) GetCnOrderCode() string { + return r._cnOrderCode +} diff --git a/model/wms/TaobaoWlbWmsStockOutBillGetAPIResponse.go b/model/wms/TaobaoWlbWmsStockOutBillGetAPIResponse.go new file mode 100644 index 0000000000..83a8906713 --- /dev/null +++ b/model/wms/TaobaoWlbWmsStockOutBillGetAPIResponse.go @@ -0,0 +1,27 @@ +package wms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +通过订单号获取单个出库单发货信息 API返回值 +taobao.wlb.wms.stock.out.bill.get + +通过订单号获取单个出库单发货信息 +*/ +type TaobaoWlbWmsStockOutBillGetAPIResponse struct { + model.CommonResponse + TaobaoWlbWmsStockOutBillGetAPIResponseModel +} + +// 通过订单号获取单个出库单发货信息 成功返回结果 +type TaobaoWlbWmsStockOutBillGetAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_wms_stock_out_bill_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出库信息 + StockOutInfo *CainiaoStockOutBillStockoutinfo `json:"stock_out_info,omitempty" xml:"stock_out_info,omitempty"` +} diff --git a/model/wms/TaobaoWlbWmsStockOutBillGetResponse.go b/model/wms/TaobaoWlbWmsStockOutBillGetResponse.go deleted file mode 100644 index a1f6ff8116..0000000000 --- a/model/wms/TaobaoWlbWmsStockOutBillGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package wms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -通过订单号获取单个出库单发货信息 API返回值 -taobao.wlb.wms.stock.out.bill.get - -通过订单号获取单个出库单发货信息 -*/ -type TaobaoWlbWmsStockOutBillGetAPIResponse struct { - model.CommonResponse - TaobaoWlbWmsStockOutBillGetResponse -} - -// 通过订单号获取单个出库单发货信息 成功返回结果 -type TaobaoWlbWmsStockOutBillGetResponse struct { - XMLName xml.Name `xml:"wlb_wms_stock_out_bill_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出库信息 - StockOutInfo *CainiaoStockOutBillStockoutinfo `json:"stock_out_info,omitempty" xml:"stock_out_info,omitempty"` -} diff --git a/model/wms/TaobaoWlbWmsStockOutOrderNotifyAPIRequest.go b/model/wms/TaobaoWlbWmsStockOutOrderNotifyAPIRequest.go new file mode 100644 index 0000000000..7fb2faa58e --- /dev/null +++ b/model/wms/TaobaoWlbWmsStockOutOrderNotifyAPIRequest.go @@ -0,0 +1,290 @@ +package wms + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +出库单通知 API请求 +taobao.wlb.wms.stock.out.order.notify + +出库单通知 +*/ +type TaobaoWlbWmsStockOutOrderNotifyAPIRequest struct { + model.Params + // 仓储编码 + _storeCode string + // ERP单据ID + _orderCode string + // 单据类型 301 调拨出库单、901普通出库单、903 其他出库单 305 B2B出库 + _orderType int64 + // ERP可选择性文本透传至WMS + _outboundTypeDesc string + // 订单创建时间 + _orderCreateTime string + // 要求出库日期 + _sendTime string + // 收件人信息 + _receiverInfo *Receiverwlbwmsstockoutordernotify + // 发货方信息 + _senderInfo *Senderwlbwmsstockoutordernotify + // 出库方式 + _transportMode string + // 承运商名称 + _carriersName string + // 取件人姓名 + _pickName string + // 取件人电话 + _pickCall string + // 取件人身份证ID + _pickId string + // 车牌号 + _carNo string + // 订单商品信息列表 + _orderItemList []Orderitemlistwlbwmsstockoutordernotify + // 备注 + _remark string + // 前物流订单号,如退货入库单可能会用到 + _prevOrderCode string + // 拓展属性 + _extendFields string +} + +// 初始化TaobaoWlbWmsStockOutOrderNotifyAPIRequest对象 +func NewTaobaoWlbWmsStockOutOrderNotifyRequest() *TaobaoWlbWmsStockOutOrderNotifyAPIRequest{ + return &TaobaoWlbWmsStockOutOrderNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetApiMethodName() string { + return "taobao.wlb.wms.stock.out.order.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StoreCode Setter +// 仓储编码 +func (r *TaobaoWlbWmsStockOutOrderNotifyAPIRequest) SetStoreCode(_storeCode string) error { + r._storeCode = _storeCode + r.Set("store_code", _storeCode) + return nil +} + +// StoreCode Getter +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetStoreCode() string { + return r._storeCode +} +// OrderCode Setter +// ERP单据ID +func (r *TaobaoWlbWmsStockOutOrderNotifyAPIRequest) SetOrderCode(_orderCode string) error { + r._orderCode = _orderCode + r.Set("order_code", _orderCode) + return nil +} + +// OrderCode Getter +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetOrderCode() string { + return r._orderCode +} +// OrderType Setter +// 单据类型 301 调拨出库单、901普通出库单、903 其他出库单 305 B2B出库 +func (r *TaobaoWlbWmsStockOutOrderNotifyAPIRequest) SetOrderType(_orderType int64) error { + r._orderType = _orderType + r.Set("order_type", _orderType) + return nil +} + +// OrderType Getter +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetOrderType() int64 { + return r._orderType +} +// OutboundTypeDesc Setter +// ERP可选择性文本透传至WMS +func (r *TaobaoWlbWmsStockOutOrderNotifyAPIRequest) SetOutboundTypeDesc(_outboundTypeDesc string) error { + r._outboundTypeDesc = _outboundTypeDesc + r.Set("outbound_type_desc", _outboundTypeDesc) + return nil +} + +// OutboundTypeDesc Getter +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetOutboundTypeDesc() string { + return r._outboundTypeDesc +} +// OrderCreateTime Setter +// 订单创建时间 +func (r *TaobaoWlbWmsStockOutOrderNotifyAPIRequest) SetOrderCreateTime(_orderCreateTime string) error { + r._orderCreateTime = _orderCreateTime + r.Set("order_create_time", _orderCreateTime) + return nil +} + +// OrderCreateTime Getter +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetOrderCreateTime() string { + return r._orderCreateTime +} +// SendTime Setter +// 要求出库日期 +func (r *TaobaoWlbWmsStockOutOrderNotifyAPIRequest) SetSendTime(_sendTime string) error { + r._sendTime = _sendTime + r.Set("send_time", _sendTime) + return nil +} + +// SendTime Getter +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetSendTime() string { + return r._sendTime +} +// ReceiverInfo Setter +// 收件人信息 +func (r *TaobaoWlbWmsStockOutOrderNotifyAPIRequest) SetReceiverInfo(_receiverInfo *Receiverwlbwmsstockoutordernotify) error { + r._receiverInfo = _receiverInfo + r.Set("receiver_info", _receiverInfo) + return nil +} + +// ReceiverInfo Getter +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetReceiverInfo() *Receiverwlbwmsstockoutordernotify { + return r._receiverInfo +} +// SenderInfo Setter +// 发货方信息 +func (r *TaobaoWlbWmsStockOutOrderNotifyAPIRequest) SetSenderInfo(_senderInfo *Senderwlbwmsstockoutordernotify) error { + r._senderInfo = _senderInfo + r.Set("sender_info", _senderInfo) + return nil +} + +// SenderInfo Getter +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetSenderInfo() *Senderwlbwmsstockoutordernotify { + return r._senderInfo +} +// TransportMode Setter +// 出库方式 +func (r *TaobaoWlbWmsStockOutOrderNotifyAPIRequest) SetTransportMode(_transportMode string) error { + r._transportMode = _transportMode + r.Set("transport_mode", _transportMode) + return nil +} + +// TransportMode Getter +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetTransportMode() string { + return r._transportMode +} +// CarriersName Setter +// 承运商名称 +func (r *TaobaoWlbWmsStockOutOrderNotifyAPIRequest) SetCarriersName(_carriersName string) error { + r._carriersName = _carriersName + r.Set("carriers_name", _carriersName) + return nil +} + +// CarriersName Getter +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetCarriersName() string { + return r._carriersName +} +// PickName Setter +// 取件人姓名 +func (r *TaobaoWlbWmsStockOutOrderNotifyAPIRequest) SetPickName(_pickName string) error { + r._pickName = _pickName + r.Set("pick_name", _pickName) + return nil +} + +// PickName Getter +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetPickName() string { + return r._pickName +} +// PickCall Setter +// 取件人电话 +func (r *TaobaoWlbWmsStockOutOrderNotifyAPIRequest) SetPickCall(_pickCall string) error { + r._pickCall = _pickCall + r.Set("pick_call", _pickCall) + return nil +} + +// PickCall Getter +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetPickCall() string { + return r._pickCall +} +// PickId Setter +// 取件人身份证ID +func (r *TaobaoWlbWmsStockOutOrderNotifyAPIRequest) SetPickId(_pickId string) error { + r._pickId = _pickId + r.Set("pick_id", _pickId) + return nil +} + +// PickId Getter +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetPickId() string { + return r._pickId +} +// CarNo Setter +// 车牌号 +func (r *TaobaoWlbWmsStockOutOrderNotifyAPIRequest) SetCarNo(_carNo string) error { + r._carNo = _carNo + r.Set("car_no", _carNo) + return nil +} + +// CarNo Getter +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetCarNo() string { + return r._carNo +} +// OrderItemList Setter +// 订单商品信息列表 +func (r *TaobaoWlbWmsStockOutOrderNotifyAPIRequest) SetOrderItemList(_orderItemList []Orderitemlistwlbwmsstockoutordernotify) error { + r._orderItemList = _orderItemList + r.Set("order_item_list", _orderItemList) + return nil +} + +// OrderItemList Getter +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetOrderItemList() []Orderitemlistwlbwmsstockoutordernotify { + return r._orderItemList +} +// Remark Setter +// 备注 +func (r *TaobaoWlbWmsStockOutOrderNotifyAPIRequest) SetRemark(_remark string) error { + r._remark = _remark + r.Set("remark", _remark) + return nil +} + +// Remark Getter +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetRemark() string { + return r._remark +} +// PrevOrderCode Setter +// 前物流订单号,如退货入库单可能会用到 +func (r *TaobaoWlbWmsStockOutOrderNotifyAPIRequest) SetPrevOrderCode(_prevOrderCode string) error { + r._prevOrderCode = _prevOrderCode + r.Set("prev_order_code", _prevOrderCode) + return nil +} + +// PrevOrderCode Getter +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetPrevOrderCode() string { + return r._prevOrderCode +} +// ExtendFields Setter +// 拓展属性 +func (r *TaobaoWlbWmsStockOutOrderNotifyAPIRequest) SetExtendFields(_extendFields string) error { + r._extendFields = _extendFields + r.Set("extend_fields", _extendFields) + return nil +} + +// ExtendFields Getter +func (r TaobaoWlbWmsStockOutOrderNotifyAPIRequest) GetExtendFields() string { + return r._extendFields +} diff --git a/model/wms/TaobaoWlbWmsStockOutOrderNotifyAPIResponse.go b/model/wms/TaobaoWlbWmsStockOutOrderNotifyAPIResponse.go new file mode 100644 index 0000000000..56a09c018e --- /dev/null +++ b/model/wms/TaobaoWlbWmsStockOutOrderNotifyAPIResponse.go @@ -0,0 +1,33 @@ +package wms + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +出库单通知 API返回值 +taobao.wlb.wms.stock.out.order.notify + +出库单通知 +*/ +type TaobaoWlbWmsStockOutOrderNotifyAPIResponse struct { + model.CommonResponse + TaobaoWlbWmsStockOutOrderNotifyAPIResponseModel +} + +// 出库单通知 成功返回结果 +type TaobaoWlbWmsStockOutOrderNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"wlb_wms_stock_out_order_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误编码 + WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` + // 是否成功 + WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` + // 错误详细 + WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` + // 仓储订单编码 + OrderCode string `json:"order_code,omitempty" xml:"order_code,omitempty"` +} diff --git a/model/wms/TaobaoWlbWmsStockOutOrderNotifyResponse.go b/model/wms/TaobaoWlbWmsStockOutOrderNotifyResponse.go deleted file mode 100644 index dcfe741cd1..0000000000 --- a/model/wms/TaobaoWlbWmsStockOutOrderNotifyResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package wms - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -出库单通知 API返回值 -taobao.wlb.wms.stock.out.order.notify - -出库单通知 -*/ -type TaobaoWlbWmsStockOutOrderNotifyAPIResponse struct { - model.CommonResponse - TaobaoWlbWmsStockOutOrderNotifyResponse -} - -// 出库单通知 成功返回结果 -type TaobaoWlbWmsStockOutOrderNotifyResponse struct { - XMLName xml.Name `xml:"wlb_wms_stock_out_order_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误编码 - WlErrorCode string `json:"wl_error_code,omitempty" xml:"wl_error_code,omitempty"` - // 是否成功 - WlSuccess bool `json:"wl_success,omitempty" xml:"wl_success,omitempty"` - // 错误详细 - WlErrorMsg string `json:"wl_error_msg,omitempty" xml:"wl_error_msg,omitempty"` - // 仓储订单编码 - OrderCode string `json:"order_code,omitempty" xml:"order_code,omitempty"` -} diff --git a/model/xhotel/AlitripXhotelChannelOrderCreateResQueryAPIRequest.go b/model/xhotel/AlitripXhotelChannelOrderCreateResQueryAPIRequest.go new file mode 100644 index 0000000000..24a544b95f --- /dev/null +++ b/model/xhotel/AlitripXhotelChannelOrderCreateResQueryAPIRequest.go @@ -0,0 +1,52 @@ +package xhotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分销订单查询订单创建结果 API请求 +alitrip.xhotel.channel.order.create.res.query + +针对分销渠道订单,在调用创建订单接口失败1分钟后,调用此接口,用以确认订单是否创建成功。 +*/ +type AlitripXhotelChannelOrderCreateResQueryAPIRequest struct { + model.Params + // 外部渠道订单号 + _outSourceOrderId string +} + +// 初始化AlitripXhotelChannelOrderCreateResQueryAPIRequest对象 +func NewAlitripXhotelChannelOrderCreateResQueryRequest() *AlitripXhotelChannelOrderCreateResQueryAPIRequest{ + return &AlitripXhotelChannelOrderCreateResQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripXhotelChannelOrderCreateResQueryAPIRequest) GetApiMethodName() string { + return "alitrip.xhotel.channel.order.create.res.query" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripXhotelChannelOrderCreateResQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutSourceOrderId Setter +// 外部渠道订单号 +func (r *AlitripXhotelChannelOrderCreateResQueryAPIRequest) SetOutSourceOrderId(_outSourceOrderId string) error { + r._outSourceOrderId = _outSourceOrderId + r.Set("out_source_order_id", _outSourceOrderId) + return nil +} + +// OutSourceOrderId Getter +func (r AlitripXhotelChannelOrderCreateResQueryAPIRequest) GetOutSourceOrderId() string { + return r._outSourceOrderId +} diff --git a/model/xhotel/AlitripXhotelChannelOrderCreateResQueryAPIResponse.go b/model/xhotel/AlitripXhotelChannelOrderCreateResQueryAPIResponse.go new file mode 100644 index 0000000000..cc9da2df96 --- /dev/null +++ b/model/xhotel/AlitripXhotelChannelOrderCreateResQueryAPIResponse.go @@ -0,0 +1,27 @@ +package xhotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分销订单查询订单创建结果 API返回值 +alitrip.xhotel.channel.order.create.res.query + +针对分销渠道订单,在调用创建订单接口失败1分钟后,调用此接口,用以确认订单是否创建成功。 +*/ +type AlitripXhotelChannelOrderCreateResQueryAPIResponse struct { + model.CommonResponse + AlitripXhotelChannelOrderCreateResQueryAPIResponseModel +} + +// 分销订单查询订单创建结果 成功返回结果 +type AlitripXhotelChannelOrderCreateResQueryAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_xhotel_channel_order_create_res_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *HbsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotel/AlitripXhotelChannelOrderCreateResQueryResponse.go b/model/xhotel/AlitripXhotelChannelOrderCreateResQueryResponse.go deleted file mode 100644 index 3320432692..0000000000 --- a/model/xhotel/AlitripXhotelChannelOrderCreateResQueryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分销订单查询订单创建结果 API返回值 -alitrip.xhotel.channel.order.create.res.query - -针对分销渠道订单,在调用创建订单接口失败1分钟后,调用此接口,用以确认订单是否创建成功。 -*/ -type AlitripXhotelChannelOrderCreateResQueryAPIResponse struct { - model.CommonResponse - AlitripXhotelChannelOrderCreateResQueryResponse -} - -// 分销订单查询订单创建结果 成功返回结果 -type AlitripXhotelChannelOrderCreateResQueryResponse struct { - XMLName xml.Name `xml:"alitrip_xhotel_channel_order_create_res_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *HbsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotel/TaobaoXhotelDataServiceHotelServiceindexAPIRequest.go b/model/xhotel/TaobaoXhotelDataServiceHotelServiceindexAPIRequest.go new file mode 100644 index 0000000000..5eb1f9cba3 --- /dev/null +++ b/model/xhotel/TaobaoXhotelDataServiceHotelServiceindexAPIRequest.go @@ -0,0 +1,136 @@ +package xhotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店服务指数 API请求 +taobao.xhotel.data.service.hotel.serviceindex + +酒店服务指数 +*/ +type TaobaoXhotelDataServiceHotelServiceindexAPIRequest struct { + model.Params + // 酒店id + _hid int64 + // 渠道商名称 + _vendor string + // 1 + _startRow int64 + // 10 + _pageSize int64 + // 查询时间段结束 + _reportEndDate string + // 查询时间段开始 + _reportStartDate string + // 供应商名称 + _supplier string +} + +// 初始化TaobaoXhotelDataServiceHotelServiceindexAPIRequest对象 +func NewTaobaoXhotelDataServiceHotelServiceindexRequest() *TaobaoXhotelDataServiceHotelServiceindexAPIRequest{ + return &TaobaoXhotelDataServiceHotelServiceindexAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelDataServiceHotelServiceindexAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.data.service.hotel.serviceindex" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelDataServiceHotelServiceindexAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Hid Setter +// 酒店id +func (r *TaobaoXhotelDataServiceHotelServiceindexAPIRequest) SetHid(_hid int64) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r TaobaoXhotelDataServiceHotelServiceindexAPIRequest) GetHid() int64 { + return r._hid +} +// Vendor Setter +// 渠道商名称 +func (r *TaobaoXhotelDataServiceHotelServiceindexAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelDataServiceHotelServiceindexAPIRequest) GetVendor() string { + return r._vendor +} +// StartRow Setter +// 1 +func (r *TaobaoXhotelDataServiceHotelServiceindexAPIRequest) SetStartRow(_startRow int64) error { + r._startRow = _startRow + r.Set("start_row", _startRow) + return nil +} + +// StartRow Getter +func (r TaobaoXhotelDataServiceHotelServiceindexAPIRequest) GetStartRow() int64 { + return r._startRow +} +// PageSize Setter +// 10 +func (r *TaobaoXhotelDataServiceHotelServiceindexAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoXhotelDataServiceHotelServiceindexAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// ReportEndDate Setter +// 查询时间段结束 +func (r *TaobaoXhotelDataServiceHotelServiceindexAPIRequest) SetReportEndDate(_reportEndDate string) error { + r._reportEndDate = _reportEndDate + r.Set("report_end_date", _reportEndDate) + return nil +} + +// ReportEndDate Getter +func (r TaobaoXhotelDataServiceHotelServiceindexAPIRequest) GetReportEndDate() string { + return r._reportEndDate +} +// ReportStartDate Setter +// 查询时间段开始 +func (r *TaobaoXhotelDataServiceHotelServiceindexAPIRequest) SetReportStartDate(_reportStartDate string) error { + r._reportStartDate = _reportStartDate + r.Set("report_start_date", _reportStartDate) + return nil +} + +// ReportStartDate Getter +func (r TaobaoXhotelDataServiceHotelServiceindexAPIRequest) GetReportStartDate() string { + return r._reportStartDate +} +// Supplier Setter +// 供应商名称 +func (r *TaobaoXhotelDataServiceHotelServiceindexAPIRequest) SetSupplier(_supplier string) error { + r._supplier = _supplier + r.Set("supplier", _supplier) + return nil +} + +// Supplier Getter +func (r TaobaoXhotelDataServiceHotelServiceindexAPIRequest) GetSupplier() string { + return r._supplier +} diff --git a/model/xhotel/TaobaoXhotelDataServiceHotelServiceindexAPIResponse.go b/model/xhotel/TaobaoXhotelDataServiceHotelServiceindexAPIResponse.go new file mode 100644 index 0000000000..2b3ff29bd7 --- /dev/null +++ b/model/xhotel/TaobaoXhotelDataServiceHotelServiceindexAPIResponse.go @@ -0,0 +1,27 @@ +package xhotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店服务指数 API返回值 +taobao.xhotel.data.service.hotel.serviceindex + +酒店服务指数 +*/ +type TaobaoXhotelDataServiceHotelServiceindexAPIResponse struct { + model.CommonResponse + TaobaoXhotelDataServiceHotelServiceindexAPIResponseModel +} + +// 酒店服务指数 成功返回结果 +type TaobaoXhotelDataServiceHotelServiceindexAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_data_service_hotel_serviceindex_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoXhotelDataServiceHotelServiceindexResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotel/TaobaoXhotelDataServiceHotelServiceindexResponse.go b/model/xhotel/TaobaoXhotelDataServiceHotelServiceindexResponse.go deleted file mode 100644 index 55cd413ca6..0000000000 --- a/model/xhotel/TaobaoXhotelDataServiceHotelServiceindexResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店服务指数 API返回值 -taobao.xhotel.data.service.hotel.serviceindex - -酒店服务指数 -*/ -type TaobaoXhotelDataServiceHotelServiceindexAPIResponse struct { - model.CommonResponse - TaobaoXhotelDataServiceHotelServiceindexResponse -} - -// 酒店服务指数 成功返回结果 -type TaobaoXhotelDataServiceHotelServiceindexResponse struct { - XMLName xml.Name `xml:"xhotel_data_service_hotel_serviceindex_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoXhotelDataServiceHotelServiceindexResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotel/TaobaoXhotelDataServiceOrderDetailAPIRequest.go b/model/xhotel/TaobaoXhotelDataServiceOrderDetailAPIRequest.go new file mode 100644 index 0000000000..4d2c9918f3 --- /dev/null +++ b/model/xhotel/TaobaoXhotelDataServiceOrderDetailAPIRequest.go @@ -0,0 +1,206 @@ +package xhotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +服务订单详情 API请求 +taobao.xhotel.data.service.order.detail + +服务订单详情top接口构建 +*/ +type TaobaoXhotelDataServiceOrderDetailAPIRequest struct { + model.Params + // 查询开始日期 + _startDate string + // 是否查无订单 1:是 0:否 + _isCallNoOrder int64 + // 酒店id + _hid int64 + // 是否特殊时段订单 1:是 0:否 + _isSpecTimeOrder int64 + // 渠道商名称 + _vendor string + // 分页大小 + _pageSize int64 + // 查询结束时间 + _endDate string + // 是否到店无房 1:是 + _isNoRoomCompen int64 + // 分页参数 + _startRow int64 + // 是否拒单 1:是 0:否 + _isSellerDeny int64 + // 是否卖家原因退款 1:是 0:否 + _isSellerRefund int64 + // 供应商名称 + _supplier string +} + +// 初始化TaobaoXhotelDataServiceOrderDetailAPIRequest对象 +func NewTaobaoXhotelDataServiceOrderDetailRequest() *TaobaoXhotelDataServiceOrderDetailAPIRequest{ + return &TaobaoXhotelDataServiceOrderDetailAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelDataServiceOrderDetailAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.data.service.order.detail" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelDataServiceOrderDetailAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// StartDate Setter +// 查询开始日期 +func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetStartDate(_startDate string) error { + r._startDate = _startDate + r.Set("start_date", _startDate) + return nil +} + +// StartDate Getter +func (r TaobaoXhotelDataServiceOrderDetailAPIRequest) GetStartDate() string { + return r._startDate +} +// IsCallNoOrder Setter +// 是否查无订单 1:是 0:否 +func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetIsCallNoOrder(_isCallNoOrder int64) error { + r._isCallNoOrder = _isCallNoOrder + r.Set("is_call_no_order", _isCallNoOrder) + return nil +} + +// IsCallNoOrder Getter +func (r TaobaoXhotelDataServiceOrderDetailAPIRequest) GetIsCallNoOrder() int64 { + return r._isCallNoOrder +} +// Hid Setter +// 酒店id +func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetHid(_hid int64) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r TaobaoXhotelDataServiceOrderDetailAPIRequest) GetHid() int64 { + return r._hid +} +// IsSpecTimeOrder Setter +// 是否特殊时段订单 1:是 0:否 +func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetIsSpecTimeOrder(_isSpecTimeOrder int64) error { + r._isSpecTimeOrder = _isSpecTimeOrder + r.Set("is_spec_time_order", _isSpecTimeOrder) + return nil +} + +// IsSpecTimeOrder Getter +func (r TaobaoXhotelDataServiceOrderDetailAPIRequest) GetIsSpecTimeOrder() int64 { + return r._isSpecTimeOrder +} +// Vendor Setter +// 渠道商名称 +func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelDataServiceOrderDetailAPIRequest) GetVendor() string { + return r._vendor +} +// PageSize Setter +// 分页大小 +func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoXhotelDataServiceOrderDetailAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// EndDate Setter +// 查询结束时间 +func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetEndDate(_endDate string) error { + r._endDate = _endDate + r.Set("end_date", _endDate) + return nil +} + +// EndDate Getter +func (r TaobaoXhotelDataServiceOrderDetailAPIRequest) GetEndDate() string { + return r._endDate +} +// IsNoRoomCompen Setter +// 是否到店无房 1:是 +func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetIsNoRoomCompen(_isNoRoomCompen int64) error { + r._isNoRoomCompen = _isNoRoomCompen + r.Set("is_no_room_compen", _isNoRoomCompen) + return nil +} + +// IsNoRoomCompen Getter +func (r TaobaoXhotelDataServiceOrderDetailAPIRequest) GetIsNoRoomCompen() int64 { + return r._isNoRoomCompen +} +// StartRow Setter +// 分页参数 +func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetStartRow(_startRow int64) error { + r._startRow = _startRow + r.Set("start_row", _startRow) + return nil +} + +// StartRow Getter +func (r TaobaoXhotelDataServiceOrderDetailAPIRequest) GetStartRow() int64 { + return r._startRow +} +// IsSellerDeny Setter +// 是否拒单 1:是 0:否 +func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetIsSellerDeny(_isSellerDeny int64) error { + r._isSellerDeny = _isSellerDeny + r.Set("is_seller_deny", _isSellerDeny) + return nil +} + +// IsSellerDeny Getter +func (r TaobaoXhotelDataServiceOrderDetailAPIRequest) GetIsSellerDeny() int64 { + return r._isSellerDeny +} +// IsSellerRefund Setter +// 是否卖家原因退款 1:是 0:否 +func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetIsSellerRefund(_isSellerRefund int64) error { + r._isSellerRefund = _isSellerRefund + r.Set("is_seller_refund", _isSellerRefund) + return nil +} + +// IsSellerRefund Getter +func (r TaobaoXhotelDataServiceOrderDetailAPIRequest) GetIsSellerRefund() int64 { + return r._isSellerRefund +} +// Supplier Setter +// 供应商名称 +func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetSupplier(_supplier string) error { + r._supplier = _supplier + r.Set("supplier", _supplier) + return nil +} + +// Supplier Getter +func (r TaobaoXhotelDataServiceOrderDetailAPIRequest) GetSupplier() string { + return r._supplier +} diff --git a/model/xhotel/TaobaoXhotelDataServiceOrderDetailAPIResponse.go b/model/xhotel/TaobaoXhotelDataServiceOrderDetailAPIResponse.go new file mode 100644 index 0000000000..3afd79080c --- /dev/null +++ b/model/xhotel/TaobaoXhotelDataServiceOrderDetailAPIResponse.go @@ -0,0 +1,27 @@ +package xhotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +服务订单详情 API返回值 +taobao.xhotel.data.service.order.detail + +服务订单详情top接口构建 +*/ +type TaobaoXhotelDataServiceOrderDetailAPIResponse struct { + model.CommonResponse + TaobaoXhotelDataServiceOrderDetailAPIResponseModel +} + +// 服务订单详情 成功返回结果 +type TaobaoXhotelDataServiceOrderDetailAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_data_service_order_detail_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoXhotelDataServiceOrderDetailResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotel/TaobaoXhotelDataServiceOrderDetailResponse.go b/model/xhotel/TaobaoXhotelDataServiceOrderDetailResponse.go deleted file mode 100644 index ea61f80e58..0000000000 --- a/model/xhotel/TaobaoXhotelDataServiceOrderDetailResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -服务订单详情 API返回值 -taobao.xhotel.data.service.order.detail - -服务订单详情top接口构建 -*/ -type TaobaoXhotelDataServiceOrderDetailAPIResponse struct { - model.CommonResponse - TaobaoXhotelDataServiceOrderDetailResponse -} - -// 服务订单详情 成功返回结果 -type TaobaoXhotelDataServiceOrderDetailResponse struct { - XMLName xml.Name `xml:"xhotel_data_service_order_detail_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoXhotelDataServiceOrderDetailResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotel/TaobaoXhotelDataServiceSellerServiceindexAPIRequest.go b/model/xhotel/TaobaoXhotelDataServiceSellerServiceindexAPIRequest.go new file mode 100644 index 0000000000..6f2516a2d2 --- /dev/null +++ b/model/xhotel/TaobaoXhotelDataServiceSellerServiceindexAPIRequest.go @@ -0,0 +1,108 @@ +package xhotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家服务指数查询 API请求 +taobao.xhotel.data.service.seller.serviceindex + +卖家服务指数查询 +*/ +type TaobaoXhotelDataServiceSellerServiceindexAPIRequest struct { + model.Params + // 渠道商名称 + _vendor string + // 分页参数 + _startRow int64 + // 分页参数 + _pageSize int64 + // 查询截止日期 + _reportEndDate string + // 查询开始日期 + _reportStartDate string +} + +// 初始化TaobaoXhotelDataServiceSellerServiceindexAPIRequest对象 +func NewTaobaoXhotelDataServiceSellerServiceindexRequest() *TaobaoXhotelDataServiceSellerServiceindexAPIRequest{ + return &TaobaoXhotelDataServiceSellerServiceindexAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelDataServiceSellerServiceindexAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.data.service.seller.serviceindex" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelDataServiceSellerServiceindexAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Vendor Setter +// 渠道商名称 +func (r *TaobaoXhotelDataServiceSellerServiceindexAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelDataServiceSellerServiceindexAPIRequest) GetVendor() string { + return r._vendor +} +// StartRow Setter +// 分页参数 +func (r *TaobaoXhotelDataServiceSellerServiceindexAPIRequest) SetStartRow(_startRow int64) error { + r._startRow = _startRow + r.Set("start_row", _startRow) + return nil +} + +// StartRow Getter +func (r TaobaoXhotelDataServiceSellerServiceindexAPIRequest) GetStartRow() int64 { + return r._startRow +} +// PageSize Setter +// 分页参数 +func (r *TaobaoXhotelDataServiceSellerServiceindexAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoXhotelDataServiceSellerServiceindexAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// ReportEndDate Setter +// 查询截止日期 +func (r *TaobaoXhotelDataServiceSellerServiceindexAPIRequest) SetReportEndDate(_reportEndDate string) error { + r._reportEndDate = _reportEndDate + r.Set("report_end_date", _reportEndDate) + return nil +} + +// ReportEndDate Getter +func (r TaobaoXhotelDataServiceSellerServiceindexAPIRequest) GetReportEndDate() string { + return r._reportEndDate +} +// ReportStartDate Setter +// 查询开始日期 +func (r *TaobaoXhotelDataServiceSellerServiceindexAPIRequest) SetReportStartDate(_reportStartDate string) error { + r._reportStartDate = _reportStartDate + r.Set("report_start_date", _reportStartDate) + return nil +} + +// ReportStartDate Getter +func (r TaobaoXhotelDataServiceSellerServiceindexAPIRequest) GetReportStartDate() string { + return r._reportStartDate +} diff --git a/model/xhotel/TaobaoXhotelDataServiceSellerServiceindexAPIResponse.go b/model/xhotel/TaobaoXhotelDataServiceSellerServiceindexAPIResponse.go new file mode 100644 index 0000000000..a8018611f9 --- /dev/null +++ b/model/xhotel/TaobaoXhotelDataServiceSellerServiceindexAPIResponse.go @@ -0,0 +1,27 @@ +package xhotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +卖家服务指数查询 API返回值 +taobao.xhotel.data.service.seller.serviceindex + +卖家服务指数查询 +*/ +type TaobaoXhotelDataServiceSellerServiceindexAPIResponse struct { + model.CommonResponse + TaobaoXhotelDataServiceSellerServiceindexAPIResponseModel +} + +// 卖家服务指数查询 成功返回结果 +type TaobaoXhotelDataServiceSellerServiceindexAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_data_service_seller_serviceindex_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoXhotelDataServiceSellerServiceindexResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotel/TaobaoXhotelDataServiceSellerServiceindexResponse.go b/model/xhotel/TaobaoXhotelDataServiceSellerServiceindexResponse.go deleted file mode 100644 index fc9dba9830..0000000000 --- a/model/xhotel/TaobaoXhotelDataServiceSellerServiceindexResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -卖家服务指数查询 API返回值 -taobao.xhotel.data.service.seller.serviceindex - -卖家服务指数查询 -*/ -type TaobaoXhotelDataServiceSellerServiceindexAPIResponse struct { - model.CommonResponse - TaobaoXhotelDataServiceSellerServiceindexResponse -} - -// 卖家服务指数查询 成功返回结果 -type TaobaoXhotelDataServiceSellerServiceindexResponse struct { - XMLName xml.Name `xml:"xhotel_data_service_seller_serviceindex_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoXhotelDataServiceSellerServiceindexResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotel/TaobaoXhotelOrderHotelsignQueryAPIRequest.go b/model/xhotel/TaobaoXhotelOrderHotelsignQueryAPIRequest.go new file mode 100644 index 0000000000..2bd0138568 --- /dev/null +++ b/model/xhotel/TaobaoXhotelOrderHotelsignQueryAPIRequest.go @@ -0,0 +1,108 @@ +package xhotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取直连酒店(客栈)签约上线进度信息 API请求 +taobao.xhotel.order.hotelsign.query + +获取直连酒店(客栈)签约上线进度信息 +*/ +type TaobaoXhotelOrderHotelsignQueryAPIRequest struct { + model.Params + // 请求流水 + _outUuid string + // 商家酒店编码 + _hotelCode string + // 商家vendor + _vendor string + // 1 + _type string + // 页码 + _pageNo int64 +} + +// 初始化TaobaoXhotelOrderHotelsignQueryAPIRequest对象 +func NewTaobaoXhotelOrderHotelsignQueryRequest() *TaobaoXhotelOrderHotelsignQueryAPIRequest{ + return &TaobaoXhotelOrderHotelsignQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderHotelsignQueryAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.hotelsign.query" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderHotelsignQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutUuid Setter +// 请求流水 +func (r *TaobaoXhotelOrderHotelsignQueryAPIRequest) SetOutUuid(_outUuid string) error { + r._outUuid = _outUuid + r.Set("out_uuid", _outUuid) + return nil +} + +// OutUuid Getter +func (r TaobaoXhotelOrderHotelsignQueryAPIRequest) GetOutUuid() string { + return r._outUuid +} +// HotelCode Setter +// 商家酒店编码 +func (r *TaobaoXhotelOrderHotelsignQueryAPIRequest) SetHotelCode(_hotelCode string) error { + r._hotelCode = _hotelCode + r.Set("hotel_code", _hotelCode) + return nil +} + +// HotelCode Getter +func (r TaobaoXhotelOrderHotelsignQueryAPIRequest) GetHotelCode() string { + return r._hotelCode +} +// Vendor Setter +// 商家vendor +func (r *TaobaoXhotelOrderHotelsignQueryAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelOrderHotelsignQueryAPIRequest) GetVendor() string { + return r._vendor +} +// Type Setter +// 1 +func (r *TaobaoXhotelOrderHotelsignQueryAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoXhotelOrderHotelsignQueryAPIRequest) GetType() string { + return r._type +} +// PageNo Setter +// 页码 +func (r *TaobaoXhotelOrderHotelsignQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoXhotelOrderHotelsignQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/xhotel/TaobaoXhotelOrderHotelsignQueryAPIResponse.go b/model/xhotel/TaobaoXhotelOrderHotelsignQueryAPIResponse.go new file mode 100644 index 0000000000..d3bb14a450 --- /dev/null +++ b/model/xhotel/TaobaoXhotelOrderHotelsignQueryAPIResponse.go @@ -0,0 +1,31 @@ +package xhotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取直连酒店(客栈)签约上线进度信息 API返回值 +taobao.xhotel.order.hotelsign.query + +获取直连酒店(客栈)签约上线进度信息 +*/ +type TaobaoXhotelOrderHotelsignQueryAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderHotelsignQueryAPIResponseModel +} + +// 获取直连酒店(客栈)签约上线进度信息 成功返回结果 +type TaobaoXhotelOrderHotelsignQueryAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_hotelsign_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // outUuid + OutUuid string `json:"out_uuid,omitempty" xml:"out_uuid,omitempty"` + // hotelSignInfo,当入参中包含hotelcode和vendor的时候,返回该对象 + HotelSignInfo *DchotelSignDo `json:"hotel_sign_info,omitempty" xml:"hotel_sign_info,omitempty"` + // dsNhotelInfoDOList,当入参不包含hotelcode的时候,只有vendor的时候返回该对象 + DsNhotelInfoDOList []DsNhotelInfoDo `json:"ds_nhotel_info_d_o_list,omitempty" xml:"ds_nhotel_info_d_o_list>ds_nhotel_info_do,omitempty"` +} diff --git a/model/xhotel/TaobaoXhotelOrderHotelsignQueryResponse.go b/model/xhotel/TaobaoXhotelOrderHotelsignQueryResponse.go deleted file mode 100644 index d8eec5c853..0000000000 --- a/model/xhotel/TaobaoXhotelOrderHotelsignQueryResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package xhotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取直连酒店(客栈)签约上线进度信息 API返回值 -taobao.xhotel.order.hotelsign.query - -获取直连酒店(客栈)签约上线进度信息 -*/ -type TaobaoXhotelOrderHotelsignQueryAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderHotelsignQueryResponse -} - -// 获取直连酒店(客栈)签约上线进度信息 成功返回结果 -type TaobaoXhotelOrderHotelsignQueryResponse struct { - XMLName xml.Name `xml:"xhotel_order_hotelsign_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // outUuid - OutUuid string `json:"out_uuid,omitempty" xml:"out_uuid,omitempty"` - // hotelSignInfo,当入参中包含hotelcode和vendor的时候,返回该对象 - HotelSignInfo *DchotelSignDo `json:"hotel_sign_info,omitempty" xml:"hotel_sign_info,omitempty"` - // dsNhotelInfoDOList,当入参不包含hotelcode的时候,只有vendor的时候返回该对象 - DsNhotelInfoDOList []DsNhotelInfoDo `json:"ds_nhotel_info_d_o_list,omitempty" xml:"ds_nhotel_info_d_o_list>ds_nhotel_info_do,omitempty"` -} diff --git a/model/xhotel/TaobaoXhotelOrderOfficialQualificationGetAPIRequest.go b/model/xhotel/TaobaoXhotelOrderOfficialQualificationGetAPIRequest.go new file mode 100644 index 0000000000..190965d394 --- /dev/null +++ b/model/xhotel/TaobaoXhotelOrderOfficialQualificationGetAPIRequest.go @@ -0,0 +1,304 @@ +package xhotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +官网信用住用户资质校验 API请求 +taobao.xhotel.order.official.qualification.get + +官网信用住在下单前对用户进行资质校验,资质校验通过才能进行信用支付 +*/ +type TaobaoXhotelOrderOfficialQualificationGetAPIRequest struct { + model.Params + // 卖家接收阿里旅行订单状态变更的服务地址(需要实现阿里旅行提供的服务通知规范) + _notifyUrl string + // 阿里旅行支付(下单)结束后跳转卖家的页面地址(必须) + _returnUrl string + // 扩展字段,json串,用户后续的营销、统计、定制等需求,目前已有key列表: is_new_user:是否是卖家新用户,1-是,0或者key为null,表示不是 is_first_stay:是否是卖家首住,1-是,0或者key为null,表示不是 (已有列表必须传递) + _extendAttrs string + // 用户手机号(可选) + _mobileNo string + // 商家在淘宝给分配的渠道名(建议填充较好) + _vendor string + // 证件类型, 默认0:身份证; 1: 护照; 2:警官证; 3:士兵证; 4: 回乡证。目前只支持身份证 + _idType int64 + // 加密方式, 默认0: 不加密, 信息会通过淘宝开放平台传输, 阿里旅行可以获取到具体信息; * 目前只支持不加密 + _encryptType int64 + // 入住人姓名(必选) + _guestName string + // 用户支付宝唯一识别码(可选) + _alipayAccount string + // 外部会员账号(必选) + _outMemberAccount string + // 身份证号,必选 + _idNumber string + // 每日房价,json格式 ,如果是多间房,则是每日多间房总房价(可选) * eg:{"day":"2015-08-12","price":48800}, {"day":"2015-08-13","price":48800} + _dailyPriceInfo string + // 客人离店日期, 最多支持9间夜 + _checkOut string + // 客人入住日期 + _checkIn string + // 外部请求序列表号\流水号,单次请求的唯一标识(必须) + _outUUID string + // 总的收费金额,单位为分(必须) + _totalFee int64 + // 酒店外部编码 + _hotelCode string + // 外部订单号(必选),阿里旅行会根据此值进行幂等性校验 + _outOid string + // 房间数 + _roomNum int64 +} + +// 初始化TaobaoXhotelOrderOfficialQualificationGetAPIRequest对象 +func NewTaobaoXhotelOrderOfficialQualificationGetRequest() *TaobaoXhotelOrderOfficialQualificationGetAPIRequest{ + return &TaobaoXhotelOrderOfficialQualificationGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.official.qualification.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// NotifyUrl Setter +// 卖家接收阿里旅行订单状态变更的服务地址(需要实现阿里旅行提供的服务通知规范) +func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetNotifyUrl(_notifyUrl string) error { + r._notifyUrl = _notifyUrl + r.Set("notify_url", _notifyUrl) + return nil +} + +// NotifyUrl Getter +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetNotifyUrl() string { + return r._notifyUrl +} +// ReturnUrl Setter +// 阿里旅行支付(下单)结束后跳转卖家的页面地址(必须) +func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetReturnUrl(_returnUrl string) error { + r._returnUrl = _returnUrl + r.Set("return_url", _returnUrl) + return nil +} + +// ReturnUrl Getter +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetReturnUrl() string { + return r._returnUrl +} +// ExtendAttrs Setter +// 扩展字段,json串,用户后续的营销、统计、定制等需求,目前已有key列表: is_new_user:是否是卖家新用户,1-是,0或者key为null,表示不是 is_first_stay:是否是卖家首住,1-是,0或者key为null,表示不是 (已有列表必须传递) +func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetExtendAttrs(_extendAttrs string) error { + r._extendAttrs = _extendAttrs + r.Set("extend_attrs", _extendAttrs) + return nil +} + +// ExtendAttrs Getter +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetExtendAttrs() string { + return r._extendAttrs +} +// MobileNo Setter +// 用户手机号(可选) +func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetMobileNo(_mobileNo string) error { + r._mobileNo = _mobileNo + r.Set("mobile_no", _mobileNo) + return nil +} + +// MobileNo Getter +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetMobileNo() string { + return r._mobileNo +} +// Vendor Setter +// 商家在淘宝给分配的渠道名(建议填充较好) +func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetVendor() string { + return r._vendor +} +// IdType Setter +// 证件类型, 默认0:身份证; 1: 护照; 2:警官证; 3:士兵证; 4: 回乡证。目前只支持身份证 +func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetIdType(_idType int64) error { + r._idType = _idType + r.Set("id_type", _idType) + return nil +} + +// IdType Getter +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetIdType() int64 { + return r._idType +} +// EncryptType Setter +// 加密方式, 默认0: 不加密, 信息会通过淘宝开放平台传输, 阿里旅行可以获取到具体信息; * 目前只支持不加密 +func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetEncryptType(_encryptType int64) error { + r._encryptType = _encryptType + r.Set("encrypt_type", _encryptType) + return nil +} + +// EncryptType Getter +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetEncryptType() int64 { + return r._encryptType +} +// GuestName Setter +// 入住人姓名(必选) +func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetGuestName(_guestName string) error { + r._guestName = _guestName + r.Set("guest_name", _guestName) + return nil +} + +// GuestName Getter +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetGuestName() string { + return r._guestName +} +// AlipayAccount Setter +// 用户支付宝唯一识别码(可选) +func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetAlipayAccount(_alipayAccount string) error { + r._alipayAccount = _alipayAccount + r.Set("alipay_account", _alipayAccount) + return nil +} + +// AlipayAccount Getter +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetAlipayAccount() string { + return r._alipayAccount +} +// OutMemberAccount Setter +// 外部会员账号(必选) +func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetOutMemberAccount(_outMemberAccount string) error { + r._outMemberAccount = _outMemberAccount + r.Set("out_member_account", _outMemberAccount) + return nil +} + +// OutMemberAccount Getter +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetOutMemberAccount() string { + return r._outMemberAccount +} +// IdNumber Setter +// 身份证号,必选 +func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetIdNumber(_idNumber string) error { + r._idNumber = _idNumber + r.Set("id_number", _idNumber) + return nil +} + +// IdNumber Getter +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetIdNumber() string { + return r._idNumber +} +// DailyPriceInfo Setter +// 每日房价,json格式 ,如果是多间房,则是每日多间房总房价(可选) * eg:{"day":"2015-08-12","price":48800}, {"day":"2015-08-13","price":48800} +func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetDailyPriceInfo(_dailyPriceInfo string) error { + r._dailyPriceInfo = _dailyPriceInfo + r.Set("daily_price_info", _dailyPriceInfo) + return nil +} + +// DailyPriceInfo Getter +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetDailyPriceInfo() string { + return r._dailyPriceInfo +} +// CheckOut Setter +// 客人离店日期, 最多支持9间夜 +func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetCheckOut(_checkOut string) error { + r._checkOut = _checkOut + r.Set("check_out", _checkOut) + return nil +} + +// CheckOut Getter +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetCheckOut() string { + return r._checkOut +} +// CheckIn Setter +// 客人入住日期 +func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetCheckIn(_checkIn string) error { + r._checkIn = _checkIn + r.Set("check_in", _checkIn) + return nil +} + +// CheckIn Getter +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetCheckIn() string { + return r._checkIn +} +// OutUUID Setter +// 外部请求序列表号\流水号,单次请求的唯一标识(必须) +func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetOutUUID(_outUUID string) error { + r._outUUID = _outUUID + r.Set("out_u_u_i_d", _outUUID) + return nil +} + +// OutUUID Getter +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetOutUUID() string { + return r._outUUID +} +// TotalFee Setter +// 总的收费金额,单位为分(必须) +func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetTotalFee(_totalFee int64) error { + r._totalFee = _totalFee + r.Set("total_fee", _totalFee) + return nil +} + +// TotalFee Getter +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetTotalFee() int64 { + return r._totalFee +} +// HotelCode Setter +// 酒店外部编码 +func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetHotelCode(_hotelCode string) error { + r._hotelCode = _hotelCode + r.Set("hotel_code", _hotelCode) + return nil +} + +// HotelCode Getter +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetHotelCode() string { + return r._hotelCode +} +// OutOid Setter +// 外部订单号(必选),阿里旅行会根据此值进行幂等性校验 +func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetOutOid(_outOid string) error { + r._outOid = _outOid + r.Set("out_oid", _outOid) + return nil +} + +// OutOid Getter +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetOutOid() string { + return r._outOid +} +// RoomNum Setter +// 房间数 +func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetRoomNum(_roomNum int64) error { + r._roomNum = _roomNum + r.Set("room_num", _roomNum) + return nil +} + +// RoomNum Getter +func (r TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetRoomNum() int64 { + return r._roomNum +} diff --git a/model/xhotel/TaobaoXhotelOrderOfficialQualificationGetAPIResponse.go b/model/xhotel/TaobaoXhotelOrderOfficialQualificationGetAPIResponse.go new file mode 100644 index 0000000000..a5c8d8699c --- /dev/null +++ b/model/xhotel/TaobaoXhotelOrderOfficialQualificationGetAPIResponse.go @@ -0,0 +1,39 @@ +package xhotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +官网信用住用户资质校验 API返回值 +taobao.xhotel.order.official.qualification.get + +官网信用住在下单前对用户进行资质校验,资质校验通过才能进行信用支付 +*/ +type TaobaoXhotelOrderOfficialQualificationGetAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderOfficialQualificationGetAPIResponseModel +} + +// 官网信用住用户资质校验 成功返回结果 +type TaobaoXhotelOrderOfficialQualificationGetAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_official_qualification_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 阿里旅行中间调用URL + TransferUrl string `json:"transfer_url,omitempty" xml:"transfer_url,omitempty"` + // 无资格原因提示信息 + Reason string `json:"reason,omitempty" xml:"reason,omitempty"` + // 资质校验是否成功,有资格返回true, 无资格返回false + MatchCondition bool `json:"match_condition,omitempty" xml:"match_condition,omitempty"` + // 入参信息回传, 用于校验的证件号码 + IdNumber string `json:"id_number,omitempty" xml:"id_number,omitempty"` + // 入参信息回传,用于校验的外部会员账号 + OutMemeberAccount string `json:"out_memeber_account,omitempty" xml:"out_memeber_account,omitempty"` + // * 外部请求序列表号回传\流水号(如果外部订单号唯一,建议外部订单号,这样容易核对问题),用于区别一次请求和排查问题,阿里旅行不做任何格式校验(必须) + OutUUID string `json:"out_u_u_i_d,omitempty" xml:"out_u_u_i_d,omitempty"` + // 扩展字段,json串,后续留用 + ExtendAttrs string `json:"extend_attrs,omitempty" xml:"extend_attrs,omitempty"` +} diff --git a/model/xhotel/TaobaoXhotelOrderOfficialQualificationGetResponse.go b/model/xhotel/TaobaoXhotelOrderOfficialQualificationGetResponse.go deleted file mode 100644 index 794db1575e..0000000000 --- a/model/xhotel/TaobaoXhotelOrderOfficialQualificationGetResponse.go +++ /dev/null @@ -1,39 +0,0 @@ -package xhotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -官网信用住用户资质校验 API返回值 -taobao.xhotel.order.official.qualification.get - -官网信用住在下单前对用户进行资质校验,资质校验通过才能进行信用支付 -*/ -type TaobaoXhotelOrderOfficialQualificationGetAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderOfficialQualificationGetResponse -} - -// 官网信用住用户资质校验 成功返回结果 -type TaobaoXhotelOrderOfficialQualificationGetResponse struct { - XMLName xml.Name `xml:"xhotel_order_official_qualification_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 阿里旅行中间调用URL - TransferUrl string `json:"transfer_url,omitempty" xml:"transfer_url,omitempty"` - // 无资格原因提示信息 - Reason string `json:"reason,omitempty" xml:"reason,omitempty"` - // 资质校验是否成功,有资格返回true, 无资格返回false - MatchCondition bool `json:"match_condition,omitempty" xml:"match_condition,omitempty"` - // 入参信息回传, 用于校验的证件号码 - IdNumber string `json:"id_number,omitempty" xml:"id_number,omitempty"` - // 入参信息回传,用于校验的外部会员账号 - OutMemeberAccount string `json:"out_memeber_account,omitempty" xml:"out_memeber_account,omitempty"` - // * 外部请求序列表号回传\流水号(如果外部订单号唯一,建议外部订单号,这样容易核对问题),用于区别一次请求和排查问题,阿里旅行不做任何格式校验(必须) - OutUUID string `json:"out_u_u_i_d,omitempty" xml:"out_u_u_i_d,omitempty"` - // 扩展字段,json串,后续留用 - ExtendAttrs string `json:"extend_attrs,omitempty" xml:"extend_attrs,omitempty"` -} diff --git a/model/xhotel/TaobaoXhotelOrderOfflineSettleCancelAPIRequest.go b/model/xhotel/TaobaoXhotelOrderOfflineSettleCancelAPIRequest.go new file mode 100644 index 0000000000..bc5ee7136f --- /dev/null +++ b/model/xhotel/TaobaoXhotelOrderOfflineSettleCancelAPIRequest.go @@ -0,0 +1,108 @@ +package xhotel + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线下信用住取消结账专用接口 API请求 +taobao.xhotel.order.offline.settle.cancel + +线下信用住取消结账专用接口 +*/ +type TaobaoXhotelOrderOfflineSettleCancelAPIRequest struct { + model.Params + // 阿里旅行订单号,淘宝订单号或外部订单号二选一必填 + _tid int64 + // 取消结账的原因 + _reason string + // 外部订单号,和tid二选一必填(建议都写入) + _outId string + // 暂时无意义,无需传入 + _notifyUrl string + // 请求流水号 + _outUuid string +} + +// 初始化TaobaoXhotelOrderOfflineSettleCancelAPIRequest对象 +func NewTaobaoXhotelOrderOfflineSettleCancelRequest() *TaobaoXhotelOrderOfflineSettleCancelAPIRequest{ + return &TaobaoXhotelOrderOfflineSettleCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderOfflineSettleCancelAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.offline.settle.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderOfflineSettleCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 阿里旅行订单号,淘宝订单号或外部订单号二选一必填 +func (r *TaobaoXhotelOrderOfflineSettleCancelAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoXhotelOrderOfflineSettleCancelAPIRequest) GetTid() int64 { + return r._tid +} +// Reason Setter +// 取消结账的原因 +func (r *TaobaoXhotelOrderOfflineSettleCancelAPIRequest) SetReason(_reason string) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r TaobaoXhotelOrderOfflineSettleCancelAPIRequest) GetReason() string { + return r._reason +} +// OutId Setter +// 外部订单号,和tid二选一必填(建议都写入) +func (r *TaobaoXhotelOrderOfflineSettleCancelAPIRequest) SetOutId(_outId string) error { + r._outId = _outId + r.Set("out_id", _outId) + return nil +} + +// OutId Getter +func (r TaobaoXhotelOrderOfflineSettleCancelAPIRequest) GetOutId() string { + return r._outId +} +// NotifyUrl Setter +// 暂时无意义,无需传入 +func (r *TaobaoXhotelOrderOfflineSettleCancelAPIRequest) SetNotifyUrl(_notifyUrl string) error { + r._notifyUrl = _notifyUrl + r.Set("notify_url", _notifyUrl) + return nil +} + +// NotifyUrl Getter +func (r TaobaoXhotelOrderOfflineSettleCancelAPIRequest) GetNotifyUrl() string { + return r._notifyUrl +} +// OutUuid Setter +// 请求流水号 +func (r *TaobaoXhotelOrderOfflineSettleCancelAPIRequest) SetOutUuid(_outUuid string) error { + r._outUuid = _outUuid + r.Set("out_uuid", _outUuid) + return nil +} + +// OutUuid Getter +func (r TaobaoXhotelOrderOfflineSettleCancelAPIRequest) GetOutUuid() string { + return r._outUuid +} diff --git a/model/xhotel/TaobaoXhotelOrderOfflineSettleCancelAPIResponse.go b/model/xhotel/TaobaoXhotelOrderOfflineSettleCancelAPIResponse.go new file mode 100644 index 0000000000..124946b79a --- /dev/null +++ b/model/xhotel/TaobaoXhotelOrderOfflineSettleCancelAPIResponse.go @@ -0,0 +1,27 @@ +package xhotel + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线下信用住取消结账专用接口 API返回值 +taobao.xhotel.order.offline.settle.cancel + +线下信用住取消结账专用接口 +*/ +type TaobaoXhotelOrderOfflineSettleCancelAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderOfflineSettleCancelAPIResponseModel +} + +// 线下信用住取消结账专用接口 成功返回结果 +type TaobaoXhotelOrderOfflineSettleCancelAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_offline_settle_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回信息 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotel/TaobaoXhotelOrderOfflineSettleCancelResponse.go b/model/xhotel/TaobaoXhotelOrderOfflineSettleCancelResponse.go deleted file mode 100644 index 4dab2e4b44..0000000000 --- a/model/xhotel/TaobaoXhotelOrderOfflineSettleCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotel - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线下信用住取消结账专用接口 API返回值 -taobao.xhotel.order.offline.settle.cancel - -线下信用住取消结账专用接口 -*/ -type TaobaoXhotelOrderOfflineSettleCancelAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderOfflineSettleCancelResponse -} - -// 线下信用住取消结账专用接口 成功返回结果 -type TaobaoXhotelOrderOfflineSettleCancelResponse struct { - XMLName xml.Name `xml:"xhotel_order_offline_settle_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回信息 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelcrm/TaobaoXhotelPotentialMemberBindAPIRequest.go b/model/xhotelcrm/TaobaoXhotelPotentialMemberBindAPIRequest.go new file mode 100644 index 0000000000..64c005949d --- /dev/null +++ b/model/xhotelcrm/TaobaoXhotelPotentialMemberBindAPIRequest.go @@ -0,0 +1,220 @@ +package xhotelcrm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪酒店商家会员绑定 API请求 +taobao.xhotel.potential.member.bind + +支持互通商家发起会员绑定 +*/ +type TaobaoXhotelPotentialMemberBindAPIRequest struct { + model.Params + // 名 + _firstName string + // 姓 + _lastName string + // 电话 + _phone string + // 邮箱 + _email string + // 卡号 + _cardNo string + // 等级(V1,V2,V3) + _grade string + // 注册时间 + _registerDate string + // 生效时间 + _fromDate string + // 截止时间 + _toDate string + // 性别(M,F,U-未知) + _sex string + // 城市 + _city string + // 年龄 + _age int64 + // 籍贯 + _nativePlace string +} + +// 初始化TaobaoXhotelPotentialMemberBindAPIRequest对象 +func NewTaobaoXhotelPotentialMemberBindRequest() *TaobaoXhotelPotentialMemberBindAPIRequest{ + return &TaobaoXhotelPotentialMemberBindAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelPotentialMemberBindAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.potential.member.bind" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelPotentialMemberBindAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FirstName Setter +// 名 +func (r *TaobaoXhotelPotentialMemberBindAPIRequest) SetFirstName(_firstName string) error { + r._firstName = _firstName + r.Set("first_name", _firstName) + return nil +} + +// FirstName Getter +func (r TaobaoXhotelPotentialMemberBindAPIRequest) GetFirstName() string { + return r._firstName +} +// LastName Setter +// 姓 +func (r *TaobaoXhotelPotentialMemberBindAPIRequest) SetLastName(_lastName string) error { + r._lastName = _lastName + r.Set("last_name", _lastName) + return nil +} + +// LastName Getter +func (r TaobaoXhotelPotentialMemberBindAPIRequest) GetLastName() string { + return r._lastName +} +// Phone Setter +// 电话 +func (r *TaobaoXhotelPotentialMemberBindAPIRequest) SetPhone(_phone string) error { + r._phone = _phone + r.Set("phone", _phone) + return nil +} + +// Phone Getter +func (r TaobaoXhotelPotentialMemberBindAPIRequest) GetPhone() string { + return r._phone +} +// Email Setter +// 邮箱 +func (r *TaobaoXhotelPotentialMemberBindAPIRequest) SetEmail(_email string) error { + r._email = _email + r.Set("email", _email) + return nil +} + +// Email Getter +func (r TaobaoXhotelPotentialMemberBindAPIRequest) GetEmail() string { + return r._email +} +// CardNo Setter +// 卡号 +func (r *TaobaoXhotelPotentialMemberBindAPIRequest) SetCardNo(_cardNo string) error { + r._cardNo = _cardNo + r.Set("card_no", _cardNo) + return nil +} + +// CardNo Getter +func (r TaobaoXhotelPotentialMemberBindAPIRequest) GetCardNo() string { + return r._cardNo +} +// Grade Setter +// 等级(V1,V2,V3) +func (r *TaobaoXhotelPotentialMemberBindAPIRequest) SetGrade(_grade string) error { + r._grade = _grade + r.Set("grade", _grade) + return nil +} + +// Grade Getter +func (r TaobaoXhotelPotentialMemberBindAPIRequest) GetGrade() string { + return r._grade +} +// RegisterDate Setter +// 注册时间 +func (r *TaobaoXhotelPotentialMemberBindAPIRequest) SetRegisterDate(_registerDate string) error { + r._registerDate = _registerDate + r.Set("register_date", _registerDate) + return nil +} + +// RegisterDate Getter +func (r TaobaoXhotelPotentialMemberBindAPIRequest) GetRegisterDate() string { + return r._registerDate +} +// FromDate Setter +// 生效时间 +func (r *TaobaoXhotelPotentialMemberBindAPIRequest) SetFromDate(_fromDate string) error { + r._fromDate = _fromDate + r.Set("from_date", _fromDate) + return nil +} + +// FromDate Getter +func (r TaobaoXhotelPotentialMemberBindAPIRequest) GetFromDate() string { + return r._fromDate +} +// ToDate Setter +// 截止时间 +func (r *TaobaoXhotelPotentialMemberBindAPIRequest) SetToDate(_toDate string) error { + r._toDate = _toDate + r.Set("to_date", _toDate) + return nil +} + +// ToDate Getter +func (r TaobaoXhotelPotentialMemberBindAPIRequest) GetToDate() string { + return r._toDate +} +// Sex Setter +// 性别(M,F,U-未知) +func (r *TaobaoXhotelPotentialMemberBindAPIRequest) SetSex(_sex string) error { + r._sex = _sex + r.Set("sex", _sex) + return nil +} + +// Sex Getter +func (r TaobaoXhotelPotentialMemberBindAPIRequest) GetSex() string { + return r._sex +} +// City Setter +// 城市 +func (r *TaobaoXhotelPotentialMemberBindAPIRequest) SetCity(_city string) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r TaobaoXhotelPotentialMemberBindAPIRequest) GetCity() string { + return r._city +} +// Age Setter +// 年龄 +func (r *TaobaoXhotelPotentialMemberBindAPIRequest) SetAge(_age int64) error { + r._age = _age + r.Set("age", _age) + return nil +} + +// Age Getter +func (r TaobaoXhotelPotentialMemberBindAPIRequest) GetAge() int64 { + return r._age +} +// NativePlace Setter +// 籍贯 +func (r *TaobaoXhotelPotentialMemberBindAPIRequest) SetNativePlace(_nativePlace string) error { + r._nativePlace = _nativePlace + r.Set("native_place", _nativePlace) + return nil +} + +// NativePlace Getter +func (r TaobaoXhotelPotentialMemberBindAPIRequest) GetNativePlace() string { + return r._nativePlace +} diff --git a/model/xhotelcrm/TaobaoXhotelPotentialMemberBindAPIResponse.go b/model/xhotelcrm/TaobaoXhotelPotentialMemberBindAPIResponse.go new file mode 100644 index 0000000000..2fb6befed4 --- /dev/null +++ b/model/xhotelcrm/TaobaoXhotelPotentialMemberBindAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelcrm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪酒店商家会员绑定 API返回值 +taobao.xhotel.potential.member.bind + +支持互通商家发起会员绑定 +*/ +type TaobaoXhotelPotentialMemberBindAPIResponse struct { + model.CommonResponse + TaobaoXhotelPotentialMemberBindAPIResponseModel +} + +// 飞猪酒店商家会员绑定 成功返回结果 +type TaobaoXhotelPotentialMemberBindAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_potential_member_bind_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 添加操作是否成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` +} diff --git a/model/xhotelcrm/TaobaoXhotelPotentialMemberBindResponse.go b/model/xhotelcrm/TaobaoXhotelPotentialMemberBindResponse.go deleted file mode 100644 index 4360d36ba6..0000000000 --- a/model/xhotelcrm/TaobaoXhotelPotentialMemberBindResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelcrm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -飞猪酒店商家会员绑定 API返回值 -taobao.xhotel.potential.member.bind - -支持互通商家发起会员绑定 -*/ -type TaobaoXhotelPotentialMemberBindAPIResponse struct { - model.CommonResponse - TaobaoXhotelPotentialMemberBindResponse -} - -// 飞猪酒店商家会员绑定 成功返回结果 -type TaobaoXhotelPotentialMemberBindResponse struct { - XMLName xml.Name `xml:"xhotel_potential_member_bind_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 添加操作是否成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelAddAPIRequest.go b/model/xhotelitem/TaobaoXhotelAddAPIRequest.go new file mode 100644 index 0000000000..c1b532c128 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelAddAPIRequest.go @@ -0,0 +1,654 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店新增接口(ID重复自动更新) API请求 +taobao.xhotel.add + +添加酒店或更新酒店 +*/ +type TaobaoXhotelAddAPIRequest struct { + model.Params + // 外部酒店ID, 这是卖家自己系统中的ID + _outerId string + // 酒店名称,国内酒店请传中文名称 + _name string + // 酒店曾用名 + _usedName string + // 是否国内酒店。0:国内;1:国外。默认是国内 + _domestic int64 + // domestic为0时,固定China; domestic为1时,必须传定义的海外国家编码值。参见:http://hotel.alitrip.com/area.htm + _country string + // 省份编码。选填,不填入的时候已city字段为准.参见:http://hotel.alitrip.com/area.htm,domestic为false时默认为0 + _province int64 + // 城市编码。参见:http://hotel.alitrip.com/area.htm,domestic为false时,输入对应国家的海外城市编码,可调用海外城市查询接口获取;(更新酒店时为可选) + _city int64 + // 区域(县级市)编码。参见:http://hotel.alitrip.com/area.htm + _district int64 + // 商业区(圈)长度不超过20字 + _business string + // 酒店地址。长度不能超过255。不填入会导致不能自动匹配。 + _address string + // 经度 + _longitude string + // 纬度 + _latitude string + // 坐标类型,现在支持:G – GoogleB – 百度A – 高德M – MapbarL – 灵图 + _positionType string + // 酒店电话。格式:国家代码(最长6位)#区号(最长4位)#电话(最长20位)。国家代码提示:中国大陆0086、香港00852、澳门00853、台湾00886 + _tel string + // 扩展信息的JSON。注:此字段的值需要ISV在接入前与淘宝沟通,且确认能解析 + _extend string + // 该字段只有确定的时候,才允许填入。用于标示和淘宝酒店的匹配关系。目前尚未启动该字段。 + _shid int64 + // 对接系统商名称:可为空不要乱填,需要申请后使用 + _vendor string + // 酒店档次,星级。取值范围为1,1.5,2,2.5,3,3.5,4,4.5,5 + _star string + // 开业时间,格式为2015-01-01 + _openingTime string + // 装修时间,格式为2015-01-01装修时间 + _decorateTime string + // 楼层信息。 + _floors string + // 房间数 0~9999之内的数字 + _rooms int64 + // 酒店描述 + _description string + // 酒店图片只支持远程图片,格式如下:[{"url":"http://123.jpg","ismain":"false","type":"大堂","attribute":"普通图"},{"url":"http://456.jpg","ismain":"true","type":"公共区域","attribute":"全景图"},{"url":"http://789.jpg","ismain":"false","type":"大堂","attribute":"普通图"}] 其中url是远程图片的访问地址(URL地址必须是合法的,否则会报错),main是是否为主图(主图只能有一个,如果有多个或者没有,则会报错),attribute表示图片属性,取值范围只能是:[普通图, 平面图, 全景图] ,type表示图片类型,取值范围只能是:[周边, 外观, 商务中心, 健身房, 其他, 会议室, 餐厅, 浴室, 客房, 公共区域, 娱乐设施, 大堂, 泳池],图片数量最多是能是10张。 + _pics string + // 酒店品牌。取值为数字。枚举如下(只给出top30,如果不满足,请联系去啊接口人): ruJia("1", "rujiakuaijie", "如家快捷", 1), qiTian("2", "7 days", "7天连锁", 1), hanTing("3", "Hanting Inns & Hotels", "汉庭酒店", 1), geLinHaoTai("4", "Green Tree Inn", "格林豪泰", 1), jinJiang("5", "Jinjiang Inn", "锦江之星", 1), su8("6", "Super 8", "速8", 1), moTai("7", "Motel", "莫泰", 1), zhouji("8", "InterContinental", "洲际", 4), budint("9", "Pod Inn", "布丁", 1), jiuJiu("10", "jiujiuliansuo", "99连锁", 1), piaoHome("11", "Piao Home Inn", "飘HOME", 1), juzi("12", "Orange Hotels", "桔子酒店", 1), yibai("13", "yibai", "易佰", 1), weiyena("14","weiyena","维也纳",2), huangguanjiari("15", "huangguanjiari", "皇冠假日", 4), xidawu("16", "xidawu", "喜达屋", 3), chengshiBJ("17", "chengshibianjie", "城市便捷", 1), shagnKeYou("18", "shagnkeyou", "尚客优", 1), jinjiang("19", "jinjiang", "锦江酒店", 3), wendemu("20", "Hawthorn Suites", "温德姆", 4), yibisi("21", "Ibis Hotels", "宜必思", 1), wanhao("22", "JM Hoteles", "万豪", 4), yijia365("23", "yijia365", "驿家365", 1), shoulv("24", "shoulvjituan", "首旅建国", 3), kaiyuan("25", "New Century Hotel", "开元大酒店", 4), yagao("26", "yagao", "雅高", 3), daisi("27", "daisi", "戴斯", 3), jinling("28", "jinlingliansuo", "金陵", 4), xianggelila("29", "Shangri-La City Hotels", "香格里拉", 4), xierdun("30", "Hilton", "希尔顿", 4), + _brand string + // 邮政编码。 + _postalCode string + // 预订须知。json字段描述:hotelInMountaintop 酒店位于山顶 1在山顶、0不在;needBoat 酒店需要坐船前往 1需要、0不需要;酒店位于景区内 1在景区、0不在;extraBed 加床收费;extraCharge 额外收费;arrivalTime 到店时间;extend 其他补充项 + _bookingNotice string + // 逗号分隔的字符串 1visa;2万事达卡;3美国运通卡;4发现卡;5大来卡;6JCB卡;7银联卡 + _creditCardTypes string + // 扩展信息的JSON。 orbitTrack 业务字段是指从飞猪到酒店说经过平台名以及方式的一个数组,按顺序,从飞猪,再经过若干平台,最后到酒店, platform是指定当前平台名,ways 是指通过哪种方式到该平台 其中,飞猪到下一个平台里, ways 字段只能是【直连】、【人工】两个方式之一; 从最后一个平台到酒店的ways字段只能是【电话】、【传真】、【人工】、【系统】之一; 第一个 飞猪平台 和 最后具体酒店是至少得填的 + _orbitTrack string + // 卖家酒店英文名称 + _nameE string + // 供应商标识,需要提前开通权限,如果需要对接请联系技术支持,请谨慎使用。注:如商家申请的应用类型为“飞猪-新业务”,此项则必填。 + _supplier string + // 结算过程中的结算币种符合,如需对接请联系飞猪技术支持,请谨慎使用 + _settlementCurrency string + // 标准娱乐设施,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 + _standardAmuseFacilities string + // 标准房型设施,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 + _standardRoomFacilities string + // 标准酒店服务,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 + _standardHotelService string + // 标准酒店设施,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 + _standardHotelFacilities string + // 标准预订须知,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 + _standardBookingNotice string + // 0:可以接待外宾;1:仅内宾 + _serviceType int64 + // 0:酒店;1:客栈 + _hotelType int64 + // 标识坐标系类型。WGS84,表示地球坐标系 ;GCJ02,表示火星坐标系 + _coordinateSystem string + // 废弃 + _roomFacilities string + // 废弃 + _service string + // 废弃 + _hotelFacilities string + // 废弃 + _hotelPolicies string +} + +// 初始化TaobaoXhotelAddAPIRequest对象 +func NewTaobaoXhotelAddRequest() *TaobaoXhotelAddAPIRequest{ + return &TaobaoXhotelAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelAddAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterId Setter +// 外部酒店ID, 这是卖家自己系统中的ID +func (r *TaobaoXhotelAddAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoXhotelAddAPIRequest) GetOuterId() string { + return r._outerId +} +// Name Setter +// 酒店名称,国内酒店请传中文名称 +func (r *TaobaoXhotelAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoXhotelAddAPIRequest) GetName() string { + return r._name +} +// UsedName Setter +// 酒店曾用名 +func (r *TaobaoXhotelAddAPIRequest) SetUsedName(_usedName string) error { + r._usedName = _usedName + r.Set("used_name", _usedName) + return nil +} + +// UsedName Getter +func (r TaobaoXhotelAddAPIRequest) GetUsedName() string { + return r._usedName +} +// Domestic Setter +// 是否国内酒店。0:国内;1:国外。默认是国内 +func (r *TaobaoXhotelAddAPIRequest) SetDomestic(_domestic int64) error { + r._domestic = _domestic + r.Set("domestic", _domestic) + return nil +} + +// Domestic Getter +func (r TaobaoXhotelAddAPIRequest) GetDomestic() int64 { + return r._domestic +} +// Country Setter +// domestic为0时,固定China; domestic为1时,必须传定义的海外国家编码值。参见:http://hotel.alitrip.com/area.htm +func (r *TaobaoXhotelAddAPIRequest) SetCountry(_country string) error { + r._country = _country + r.Set("country", _country) + return nil +} + +// Country Getter +func (r TaobaoXhotelAddAPIRequest) GetCountry() string { + return r._country +} +// Province Setter +// 省份编码。选填,不填入的时候已city字段为准.参见:http://hotel.alitrip.com/area.htm,domestic为false时默认为0 +func (r *TaobaoXhotelAddAPIRequest) SetProvince(_province int64) error { + r._province = _province + r.Set("province", _province) + return nil +} + +// Province Getter +func (r TaobaoXhotelAddAPIRequest) GetProvince() int64 { + return r._province +} +// City Setter +// 城市编码。参见:http://hotel.alitrip.com/area.htm,domestic为false时,输入对应国家的海外城市编码,可调用海外城市查询接口获取;(更新酒店时为可选) +func (r *TaobaoXhotelAddAPIRequest) SetCity(_city int64) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r TaobaoXhotelAddAPIRequest) GetCity() int64 { + return r._city +} +// District Setter +// 区域(县级市)编码。参见:http://hotel.alitrip.com/area.htm +func (r *TaobaoXhotelAddAPIRequest) SetDistrict(_district int64) error { + r._district = _district + r.Set("district", _district) + return nil +} + +// District Getter +func (r TaobaoXhotelAddAPIRequest) GetDistrict() int64 { + return r._district +} +// Business Setter +// 商业区(圈)长度不超过20字 +func (r *TaobaoXhotelAddAPIRequest) SetBusiness(_business string) error { + r._business = _business + r.Set("business", _business) + return nil +} + +// Business Getter +func (r TaobaoXhotelAddAPIRequest) GetBusiness() string { + return r._business +} +// Address Setter +// 酒店地址。长度不能超过255。不填入会导致不能自动匹配。 +func (r *TaobaoXhotelAddAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r TaobaoXhotelAddAPIRequest) GetAddress() string { + return r._address +} +// Longitude Setter +// 经度 +func (r *TaobaoXhotelAddAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r TaobaoXhotelAddAPIRequest) GetLongitude() string { + return r._longitude +} +// Latitude Setter +// 纬度 +func (r *TaobaoXhotelAddAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r TaobaoXhotelAddAPIRequest) GetLatitude() string { + return r._latitude +} +// PositionType Setter +// 坐标类型,现在支持:G – GoogleB – 百度A – 高德M – MapbarL – 灵图 +func (r *TaobaoXhotelAddAPIRequest) SetPositionType(_positionType string) error { + r._positionType = _positionType + r.Set("position_type", _positionType) + return nil +} + +// PositionType Getter +func (r TaobaoXhotelAddAPIRequest) GetPositionType() string { + return r._positionType +} +// Tel Setter +// 酒店电话。格式:国家代码(最长6位)#区号(最长4位)#电话(最长20位)。国家代码提示:中国大陆0086、香港00852、澳门00853、台湾00886 +func (r *TaobaoXhotelAddAPIRequest) SetTel(_tel string) error { + r._tel = _tel + r.Set("tel", _tel) + return nil +} + +// Tel Getter +func (r TaobaoXhotelAddAPIRequest) GetTel() string { + return r._tel +} +// Extend Setter +// 扩展信息的JSON。注:此字段的值需要ISV在接入前与淘宝沟通,且确认能解析 +func (r *TaobaoXhotelAddAPIRequest) SetExtend(_extend string) error { + r._extend = _extend + r.Set("extend", _extend) + return nil +} + +// Extend Getter +func (r TaobaoXhotelAddAPIRequest) GetExtend() string { + return r._extend +} +// Shid Setter +// 该字段只有确定的时候,才允许填入。用于标示和淘宝酒店的匹配关系。目前尚未启动该字段。 +func (r *TaobaoXhotelAddAPIRequest) SetShid(_shid int64) error { + r._shid = _shid + r.Set("shid", _shid) + return nil +} + +// Shid Getter +func (r TaobaoXhotelAddAPIRequest) GetShid() int64 { + return r._shid +} +// Vendor Setter +// 对接系统商名称:可为空不要乱填,需要申请后使用 +func (r *TaobaoXhotelAddAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelAddAPIRequest) GetVendor() string { + return r._vendor +} +// Star Setter +// 酒店档次,星级。取值范围为1,1.5,2,2.5,3,3.5,4,4.5,5 +func (r *TaobaoXhotelAddAPIRequest) SetStar(_star string) error { + r._star = _star + r.Set("star", _star) + return nil +} + +// Star Getter +func (r TaobaoXhotelAddAPIRequest) GetStar() string { + return r._star +} +// OpeningTime Setter +// 开业时间,格式为2015-01-01 +func (r *TaobaoXhotelAddAPIRequest) SetOpeningTime(_openingTime string) error { + r._openingTime = _openingTime + r.Set("opening_time", _openingTime) + return nil +} + +// OpeningTime Getter +func (r TaobaoXhotelAddAPIRequest) GetOpeningTime() string { + return r._openingTime +} +// DecorateTime Setter +// 装修时间,格式为2015-01-01装修时间 +func (r *TaobaoXhotelAddAPIRequest) SetDecorateTime(_decorateTime string) error { + r._decorateTime = _decorateTime + r.Set("decorate_time", _decorateTime) + return nil +} + +// DecorateTime Getter +func (r TaobaoXhotelAddAPIRequest) GetDecorateTime() string { + return r._decorateTime +} +// Floors Setter +// 楼层信息。 +func (r *TaobaoXhotelAddAPIRequest) SetFloors(_floors string) error { + r._floors = _floors + r.Set("floors", _floors) + return nil +} + +// Floors Getter +func (r TaobaoXhotelAddAPIRequest) GetFloors() string { + return r._floors +} +// Rooms Setter +// 房间数 0~9999之内的数字 +func (r *TaobaoXhotelAddAPIRequest) SetRooms(_rooms int64) error { + r._rooms = _rooms + r.Set("rooms", _rooms) + return nil +} + +// Rooms Getter +func (r TaobaoXhotelAddAPIRequest) GetRooms() int64 { + return r._rooms +} +// Description Setter +// 酒店描述 +func (r *TaobaoXhotelAddAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r TaobaoXhotelAddAPIRequest) GetDescription() string { + return r._description +} +// Pics Setter +// 酒店图片只支持远程图片,格式如下:[{"url":"http://123.jpg","ismain":"false","type":"大堂","attribute":"普通图"},{"url":"http://456.jpg","ismain":"true","type":"公共区域","attribute":"全景图"},{"url":"http://789.jpg","ismain":"false","type":"大堂","attribute":"普通图"}] 其中url是远程图片的访问地址(URL地址必须是合法的,否则会报错),main是是否为主图(主图只能有一个,如果有多个或者没有,则会报错),attribute表示图片属性,取值范围只能是:[普通图, 平面图, 全景图] ,type表示图片类型,取值范围只能是:[周边, 外观, 商务中心, 健身房, 其他, 会议室, 餐厅, 浴室, 客房, 公共区域, 娱乐设施, 大堂, 泳池],图片数量最多是能是10张。 +func (r *TaobaoXhotelAddAPIRequest) SetPics(_pics string) error { + r._pics = _pics + r.Set("pics", _pics) + return nil +} + +// Pics Getter +func (r TaobaoXhotelAddAPIRequest) GetPics() string { + return r._pics +} +// Brand Setter +// 酒店品牌。取值为数字。枚举如下(只给出top30,如果不满足,请联系去啊接口人): ruJia("1", "rujiakuaijie", "如家快捷", 1), qiTian("2", "7 days", "7天连锁", 1), hanTing("3", "Hanting Inns & Hotels", "汉庭酒店", 1), geLinHaoTai("4", "Green Tree Inn", "格林豪泰", 1), jinJiang("5", "Jinjiang Inn", "锦江之星", 1), su8("6", "Super 8", "速8", 1), moTai("7", "Motel", "莫泰", 1), zhouji("8", "InterContinental", "洲际", 4), budint("9", "Pod Inn", "布丁", 1), jiuJiu("10", "jiujiuliansuo", "99连锁", 1), piaoHome("11", "Piao Home Inn", "飘HOME", 1), juzi("12", "Orange Hotels", "桔子酒店", 1), yibai("13", "yibai", "易佰", 1), weiyena("14","weiyena","维也纳",2), huangguanjiari("15", "huangguanjiari", "皇冠假日", 4), xidawu("16", "xidawu", "喜达屋", 3), chengshiBJ("17", "chengshibianjie", "城市便捷", 1), shagnKeYou("18", "shagnkeyou", "尚客优", 1), jinjiang("19", "jinjiang", "锦江酒店", 3), wendemu("20", "Hawthorn Suites", "温德姆", 4), yibisi("21", "Ibis Hotels", "宜必思", 1), wanhao("22", "JM Hoteles", "万豪", 4), yijia365("23", "yijia365", "驿家365", 1), shoulv("24", "shoulvjituan", "首旅建国", 3), kaiyuan("25", "New Century Hotel", "开元大酒店", 4), yagao("26", "yagao", "雅高", 3), daisi("27", "daisi", "戴斯", 3), jinling("28", "jinlingliansuo", "金陵", 4), xianggelila("29", "Shangri-La City Hotels", "香格里拉", 4), xierdun("30", "Hilton", "希尔顿", 4), +func (r *TaobaoXhotelAddAPIRequest) SetBrand(_brand string) error { + r._brand = _brand + r.Set("brand", _brand) + return nil +} + +// Brand Getter +func (r TaobaoXhotelAddAPIRequest) GetBrand() string { + return r._brand +} +// PostalCode Setter +// 邮政编码。 +func (r *TaobaoXhotelAddAPIRequest) SetPostalCode(_postalCode string) error { + r._postalCode = _postalCode + r.Set("postal_code", _postalCode) + return nil +} + +// PostalCode Getter +func (r TaobaoXhotelAddAPIRequest) GetPostalCode() string { + return r._postalCode +} +// BookingNotice Setter +// 预订须知。json字段描述:hotelInMountaintop 酒店位于山顶 1在山顶、0不在;needBoat 酒店需要坐船前往 1需要、0不需要;酒店位于景区内 1在景区、0不在;extraBed 加床收费;extraCharge 额外收费;arrivalTime 到店时间;extend 其他补充项 +func (r *TaobaoXhotelAddAPIRequest) SetBookingNotice(_bookingNotice string) error { + r._bookingNotice = _bookingNotice + r.Set("booking_notice", _bookingNotice) + return nil +} + +// BookingNotice Getter +func (r TaobaoXhotelAddAPIRequest) GetBookingNotice() string { + return r._bookingNotice +} +// CreditCardTypes Setter +// 逗号分隔的字符串 1visa;2万事达卡;3美国运通卡;4发现卡;5大来卡;6JCB卡;7银联卡 +func (r *TaobaoXhotelAddAPIRequest) SetCreditCardTypes(_creditCardTypes string) error { + r._creditCardTypes = _creditCardTypes + r.Set("credit_card_types", _creditCardTypes) + return nil +} + +// CreditCardTypes Getter +func (r TaobaoXhotelAddAPIRequest) GetCreditCardTypes() string { + return r._creditCardTypes +} +// OrbitTrack Setter +// 扩展信息的JSON。 orbitTrack 业务字段是指从飞猪到酒店说经过平台名以及方式的一个数组,按顺序,从飞猪,再经过若干平台,最后到酒店, platform是指定当前平台名,ways 是指通过哪种方式到该平台 其中,飞猪到下一个平台里, ways 字段只能是【直连】、【人工】两个方式之一; 从最后一个平台到酒店的ways字段只能是【电话】、【传真】、【人工】、【系统】之一; 第一个 飞猪平台 和 最后具体酒店是至少得填的 +func (r *TaobaoXhotelAddAPIRequest) SetOrbitTrack(_orbitTrack string) error { + r._orbitTrack = _orbitTrack + r.Set("orbit_track", _orbitTrack) + return nil +} + +// OrbitTrack Getter +func (r TaobaoXhotelAddAPIRequest) GetOrbitTrack() string { + return r._orbitTrack +} +// NameE Setter +// 卖家酒店英文名称 +func (r *TaobaoXhotelAddAPIRequest) SetNameE(_nameE string) error { + r._nameE = _nameE + r.Set("name_e", _nameE) + return nil +} + +// NameE Getter +func (r TaobaoXhotelAddAPIRequest) GetNameE() string { + return r._nameE +} +// Supplier Setter +// 供应商标识,需要提前开通权限,如果需要对接请联系技术支持,请谨慎使用。注:如商家申请的应用类型为“飞猪-新业务”,此项则必填。 +func (r *TaobaoXhotelAddAPIRequest) SetSupplier(_supplier string) error { + r._supplier = _supplier + r.Set("supplier", _supplier) + return nil +} + +// Supplier Getter +func (r TaobaoXhotelAddAPIRequest) GetSupplier() string { + return r._supplier +} +// SettlementCurrency Setter +// 结算过程中的结算币种符合,如需对接请联系飞猪技术支持,请谨慎使用 +func (r *TaobaoXhotelAddAPIRequest) SetSettlementCurrency(_settlementCurrency string) error { + r._settlementCurrency = _settlementCurrency + r.Set("settlement_currency", _settlementCurrency) + return nil +} + +// SettlementCurrency Getter +func (r TaobaoXhotelAddAPIRequest) GetSettlementCurrency() string { + return r._settlementCurrency +} +// StandardAmuseFacilities Setter +// 标准娱乐设施,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 +func (r *TaobaoXhotelAddAPIRequest) SetStandardAmuseFacilities(_standardAmuseFacilities string) error { + r._standardAmuseFacilities = _standardAmuseFacilities + r.Set("standard_amuse_facilities", _standardAmuseFacilities) + return nil +} + +// StandardAmuseFacilities Getter +func (r TaobaoXhotelAddAPIRequest) GetStandardAmuseFacilities() string { + return r._standardAmuseFacilities +} +// StandardRoomFacilities Setter +// 标准房型设施,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 +func (r *TaobaoXhotelAddAPIRequest) SetStandardRoomFacilities(_standardRoomFacilities string) error { + r._standardRoomFacilities = _standardRoomFacilities + r.Set("standard_room_facilities", _standardRoomFacilities) + return nil +} + +// StandardRoomFacilities Getter +func (r TaobaoXhotelAddAPIRequest) GetStandardRoomFacilities() string { + return r._standardRoomFacilities +} +// StandardHotelService Setter +// 标准酒店服务,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 +func (r *TaobaoXhotelAddAPIRequest) SetStandardHotelService(_standardHotelService string) error { + r._standardHotelService = _standardHotelService + r.Set("standard_hotel_service", _standardHotelService) + return nil +} + +// StandardHotelService Getter +func (r TaobaoXhotelAddAPIRequest) GetStandardHotelService() string { + return r._standardHotelService +} +// StandardHotelFacilities Setter +// 标准酒店设施,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 +func (r *TaobaoXhotelAddAPIRequest) SetStandardHotelFacilities(_standardHotelFacilities string) error { + r._standardHotelFacilities = _standardHotelFacilities + r.Set("standard_hotel_facilities", _standardHotelFacilities) + return nil +} + +// StandardHotelFacilities Getter +func (r TaobaoXhotelAddAPIRequest) GetStandardHotelFacilities() string { + return r._standardHotelFacilities +} +// StandardBookingNotice Setter +// 标准预订须知,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 +func (r *TaobaoXhotelAddAPIRequest) SetStandardBookingNotice(_standardBookingNotice string) error { + r._standardBookingNotice = _standardBookingNotice + r.Set("standard_booking_notice", _standardBookingNotice) + return nil +} + +// StandardBookingNotice Getter +func (r TaobaoXhotelAddAPIRequest) GetStandardBookingNotice() string { + return r._standardBookingNotice +} +// ServiceType Setter +// 0:可以接待外宾;1:仅内宾 +func (r *TaobaoXhotelAddAPIRequest) SetServiceType(_serviceType int64) error { + r._serviceType = _serviceType + r.Set("service_type", _serviceType) + return nil +} + +// ServiceType Getter +func (r TaobaoXhotelAddAPIRequest) GetServiceType() int64 { + return r._serviceType +} +// HotelType Setter +// 0:酒店;1:客栈 +func (r *TaobaoXhotelAddAPIRequest) SetHotelType(_hotelType int64) error { + r._hotelType = _hotelType + r.Set("hotel_type", _hotelType) + return nil +} + +// HotelType Getter +func (r TaobaoXhotelAddAPIRequest) GetHotelType() int64 { + return r._hotelType +} +// CoordinateSystem Setter +// 标识坐标系类型。WGS84,表示地球坐标系 ;GCJ02,表示火星坐标系 +func (r *TaobaoXhotelAddAPIRequest) SetCoordinateSystem(_coordinateSystem string) error { + r._coordinateSystem = _coordinateSystem + r.Set("coordinate_system", _coordinateSystem) + return nil +} + +// CoordinateSystem Getter +func (r TaobaoXhotelAddAPIRequest) GetCoordinateSystem() string { + return r._coordinateSystem +} +// RoomFacilities Setter +// 废弃 +func (r *TaobaoXhotelAddAPIRequest) SetRoomFacilities(_roomFacilities string) error { + r._roomFacilities = _roomFacilities + r.Set("room_facilities", _roomFacilities) + return nil +} + +// RoomFacilities Getter +func (r TaobaoXhotelAddAPIRequest) GetRoomFacilities() string { + return r._roomFacilities +} +// Service Setter +// 废弃 +func (r *TaobaoXhotelAddAPIRequest) SetService(_service string) error { + r._service = _service + r.Set("service", _service) + return nil +} + +// Service Getter +func (r TaobaoXhotelAddAPIRequest) GetService() string { + return r._service +} +// HotelFacilities Setter +// 废弃 +func (r *TaobaoXhotelAddAPIRequest) SetHotelFacilities(_hotelFacilities string) error { + r._hotelFacilities = _hotelFacilities + r.Set("hotel_facilities", _hotelFacilities) + return nil +} + +// HotelFacilities Getter +func (r TaobaoXhotelAddAPIRequest) GetHotelFacilities() string { + return r._hotelFacilities +} +// HotelPolicies Setter +// 废弃 +func (r *TaobaoXhotelAddAPIRequest) SetHotelPolicies(_hotelPolicies string) error { + r._hotelPolicies = _hotelPolicies + r.Set("hotel_policies", _hotelPolicies) + return nil +} + +// HotelPolicies Getter +func (r TaobaoXhotelAddAPIRequest) GetHotelPolicies() string { + return r._hotelPolicies +} diff --git a/model/xhotelitem/TaobaoXhotelAddAPIResponse.go b/model/xhotelitem/TaobaoXhotelAddAPIResponse.go new file mode 100644 index 0000000000..07566a3b78 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelAddAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店新增接口(ID重复自动更新) API返回值 +taobao.xhotel.add + +添加酒店或更新酒店 +*/ +type TaobaoXhotelAddAPIResponse struct { + model.CommonResponse + TaobaoXhotelAddAPIResponseModel +} + +// 酒店新增接口(ID重复自动更新) 成功返回结果 +type TaobaoXhotelAddAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 酒店信息 + Xhotel *XHotel `json:"xhotel,omitempty" xml:"xhotel,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelAddResponse.go b/model/xhotelitem/TaobaoXhotelAddResponse.go deleted file mode 100644 index b0a53a6a48..0000000000 --- a/model/xhotelitem/TaobaoXhotelAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店新增接口(ID重复自动更新) API返回值 -taobao.xhotel.add - -添加酒店或更新酒店 -*/ -type TaobaoXhotelAddAPIResponse struct { - model.CommonResponse - TaobaoXhotelAddResponse -} - -// 酒店新增接口(ID重复自动更新) 成功返回结果 -type TaobaoXhotelAddResponse struct { - XMLName xml.Name `xml:"xhotel_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 酒店信息 - Xhotel *XHotel `json:"xhotel,omitempty" xml:"xhotel,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelBaseinfoGetAPIRequest.go b/model/xhotelitem/TaobaoXhotelBaseinfoGetAPIRequest.go new file mode 100644 index 0000000000..54b6af7821 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelBaseinfoGetAPIRequest.go @@ -0,0 +1,150 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店基础信息查询接口 API请求 +taobao.xhotel.baseinfo.get + +酒店基础信息(酒店/房型/房价定义)查询接口, 包括 酒店房型可售, 以及 hid 下 的标准房型列表 +*/ +type TaobaoXhotelBaseinfoGetAPIRequest struct { + model.Params + // 淘宝酒店ID + _hid int64 + // 推荐使用卖家系统中的酒店ID。 + _outHid string + // 用于标示该酒店发布的渠道信息 + _vendor string + // 是否需要房价基本信息(false为不需要),默认为需要 + _isNeedRatePlan bool + // 是否需要房型基本信息(false为不需要),默认为需要 + _isNeedRoomType bool + // 是否需要 根据 hid 查询 标准房型列表 + _needSRoomTypeList bool + // 是否需要酒店房型可售详情 + _needHotelDynamicInfo bool + // 在查询酒店房型可售详情 时的入参JSON , {@link com.taobao.trip.hpc.client.query.HotelSellerInvQuery} + _jsonHotelSellerInvQuery string +} + +// 初始化TaobaoXhotelBaseinfoGetAPIRequest对象 +func NewTaobaoXhotelBaseinfoGetRequest() *TaobaoXhotelBaseinfoGetAPIRequest{ + return &TaobaoXhotelBaseinfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelBaseinfoGetAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.baseinfo.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelBaseinfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Hid Setter +// 淘宝酒店ID +func (r *TaobaoXhotelBaseinfoGetAPIRequest) SetHid(_hid int64) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r TaobaoXhotelBaseinfoGetAPIRequest) GetHid() int64 { + return r._hid +} +// OutHid Setter +// 推荐使用卖家系统中的酒店ID。 +func (r *TaobaoXhotelBaseinfoGetAPIRequest) SetOutHid(_outHid string) error { + r._outHid = _outHid + r.Set("out_hid", _outHid) + return nil +} + +// OutHid Getter +func (r TaobaoXhotelBaseinfoGetAPIRequest) GetOutHid() string { + return r._outHid +} +// Vendor Setter +// 用于标示该酒店发布的渠道信息 +func (r *TaobaoXhotelBaseinfoGetAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelBaseinfoGetAPIRequest) GetVendor() string { + return r._vendor +} +// IsNeedRatePlan Setter +// 是否需要房价基本信息(false为不需要),默认为需要 +func (r *TaobaoXhotelBaseinfoGetAPIRequest) SetIsNeedRatePlan(_isNeedRatePlan bool) error { + r._isNeedRatePlan = _isNeedRatePlan + r.Set("is_need_rate_plan", _isNeedRatePlan) + return nil +} + +// IsNeedRatePlan Getter +func (r TaobaoXhotelBaseinfoGetAPIRequest) GetIsNeedRatePlan() bool { + return r._isNeedRatePlan +} +// IsNeedRoomType Setter +// 是否需要房型基本信息(false为不需要),默认为需要 +func (r *TaobaoXhotelBaseinfoGetAPIRequest) SetIsNeedRoomType(_isNeedRoomType bool) error { + r._isNeedRoomType = _isNeedRoomType + r.Set("is_need_room_type", _isNeedRoomType) + return nil +} + +// IsNeedRoomType Getter +func (r TaobaoXhotelBaseinfoGetAPIRequest) GetIsNeedRoomType() bool { + return r._isNeedRoomType +} +// NeedSRoomTypeList Setter +// 是否需要 根据 hid 查询 标准房型列表 +func (r *TaobaoXhotelBaseinfoGetAPIRequest) SetNeedSRoomTypeList(_needSRoomTypeList bool) error { + r._needSRoomTypeList = _needSRoomTypeList + r.Set("need_s_room_type_list", _needSRoomTypeList) + return nil +} + +// NeedSRoomTypeList Getter +func (r TaobaoXhotelBaseinfoGetAPIRequest) GetNeedSRoomTypeList() bool { + return r._needSRoomTypeList +} +// NeedHotelDynamicInfo Setter +// 是否需要酒店房型可售详情 +func (r *TaobaoXhotelBaseinfoGetAPIRequest) SetNeedHotelDynamicInfo(_needHotelDynamicInfo bool) error { + r._needHotelDynamicInfo = _needHotelDynamicInfo + r.Set("need_hotel_dynamic_info", _needHotelDynamicInfo) + return nil +} + +// NeedHotelDynamicInfo Getter +func (r TaobaoXhotelBaseinfoGetAPIRequest) GetNeedHotelDynamicInfo() bool { + return r._needHotelDynamicInfo +} +// JsonHotelSellerInvQuery Setter +// 在查询酒店房型可售详情 时的入参JSON , {@link com.taobao.trip.hpc.client.query.HotelSellerInvQuery} +func (r *TaobaoXhotelBaseinfoGetAPIRequest) SetJsonHotelSellerInvQuery(_jsonHotelSellerInvQuery string) error { + r._jsonHotelSellerInvQuery = _jsonHotelSellerInvQuery + r.Set("json_hotel_seller_inv_query", _jsonHotelSellerInvQuery) + return nil +} + +// JsonHotelSellerInvQuery Getter +func (r TaobaoXhotelBaseinfoGetAPIRequest) GetJsonHotelSellerInvQuery() string { + return r._jsonHotelSellerInvQuery +} diff --git a/model/xhotelitem/TaobaoXhotelBaseinfoGetAPIResponse.go b/model/xhotelitem/TaobaoXhotelBaseinfoGetAPIResponse.go new file mode 100644 index 0000000000..90c974c027 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelBaseinfoGetAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店基础信息查询接口 API返回值 +taobao.xhotel.baseinfo.get + +酒店基础信息(酒店/房型/房价定义)查询接口, 包括 酒店房型可售, 以及 hid 下 的标准房型列表 +*/ +type TaobaoXhotelBaseinfoGetAPIResponse struct { + model.CommonResponse + TaobaoXhotelBaseinfoGetAPIResponseModel +} + +// 酒店基础信息查询接口 成功返回结果 +type TaobaoXhotelBaseinfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_baseinfo_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoXhotelBaseinfoGetResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelBaseinfoGetResponse.go b/model/xhotelitem/TaobaoXhotelBaseinfoGetResponse.go deleted file mode 100644 index 046f9351dd..0000000000 --- a/model/xhotelitem/TaobaoXhotelBaseinfoGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店基础信息查询接口 API返回值 -taobao.xhotel.baseinfo.get - -酒店基础信息(酒店/房型/房价定义)查询接口, 包括 酒店房型可售, 以及 hid 下 的标准房型列表 -*/ -type TaobaoXhotelBaseinfoGetAPIResponse struct { - model.CommonResponse - TaobaoXhotelBaseinfoGetResponse -} - -// 酒店基础信息查询接口 成功返回结果 -type TaobaoXhotelBaseinfoGetResponse struct { - XMLName xml.Name `xml:"xhotel_baseinfo_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoXhotelBaseinfoGetResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelBaseinfoRoomGetAPIRequest.go b/model/xhotelitem/TaobaoXhotelBaseinfoRoomGetAPIRequest.go new file mode 100644 index 0000000000..e5d5a95c76 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelBaseinfoRoomGetAPIRequest.go @@ -0,0 +1,80 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店房型与房价查询 API请求 +taobao.xhotel.baseinfo.room.get + +根据outHid/hid获取酒店的房型和价格信息 +*/ +type TaobaoXhotelBaseinfoRoomGetAPIRequest struct { + model.Params + // 卖家系统中的酒店ID。 + _outHid string + // 用于标示该酒店发布的渠道信息 + _vendor string + // 是否需要房价基本信息(false为不需要),默认为需要 + _isNeedRatePlan bool +} + +// 初始化TaobaoXhotelBaseinfoRoomGetAPIRequest对象 +func NewTaobaoXhotelBaseinfoRoomGetRequest() *TaobaoXhotelBaseinfoRoomGetAPIRequest{ + return &TaobaoXhotelBaseinfoRoomGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelBaseinfoRoomGetAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.baseinfo.room.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelBaseinfoRoomGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutHid Setter +// 卖家系统中的酒店ID。 +func (r *TaobaoXhotelBaseinfoRoomGetAPIRequest) SetOutHid(_outHid string) error { + r._outHid = _outHid + r.Set("out_hid", _outHid) + return nil +} + +// OutHid Getter +func (r TaobaoXhotelBaseinfoRoomGetAPIRequest) GetOutHid() string { + return r._outHid +} +// Vendor Setter +// 用于标示该酒店发布的渠道信息 +func (r *TaobaoXhotelBaseinfoRoomGetAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelBaseinfoRoomGetAPIRequest) GetVendor() string { + return r._vendor +} +// IsNeedRatePlan Setter +// 是否需要房价基本信息(false为不需要),默认为需要 +func (r *TaobaoXhotelBaseinfoRoomGetAPIRequest) SetIsNeedRatePlan(_isNeedRatePlan bool) error { + r._isNeedRatePlan = _isNeedRatePlan + r.Set("is_need_rate_plan", _isNeedRatePlan) + return nil +} + +// IsNeedRatePlan Getter +func (r TaobaoXhotelBaseinfoRoomGetAPIRequest) GetIsNeedRatePlan() bool { + return r._isNeedRatePlan +} diff --git a/model/xhotelitem/TaobaoXhotelBaseinfoRoomGetAPIResponse.go b/model/xhotelitem/TaobaoXhotelBaseinfoRoomGetAPIResponse.go new file mode 100644 index 0000000000..97e98ecf83 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelBaseinfoRoomGetAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店房型与房价查询 API返回值 +taobao.xhotel.baseinfo.room.get + +根据outHid/hid获取酒店的房型和价格信息 +*/ +type TaobaoXhotelBaseinfoRoomGetAPIResponse struct { + model.CommonResponse + TaobaoXhotelBaseinfoRoomGetAPIResponseModel +} + +// 酒店房型与房价查询 成功返回结果 +type TaobaoXhotelBaseinfoRoomGetAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_baseinfo_room_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoXhotelBaseinfoRoomGetResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelBaseinfoRoomGetResponse.go b/model/xhotelitem/TaobaoXhotelBaseinfoRoomGetResponse.go deleted file mode 100644 index 10dfcafd2f..0000000000 --- a/model/xhotelitem/TaobaoXhotelBaseinfoRoomGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店房型与房价查询 API返回值 -taobao.xhotel.baseinfo.room.get - -根据outHid/hid获取酒店的房型和价格信息 -*/ -type TaobaoXhotelBaseinfoRoomGetAPIResponse struct { - model.CommonResponse - TaobaoXhotelBaseinfoRoomGetResponse -} - -// 酒店房型与房价查询 成功返回结果 -type TaobaoXhotelBaseinfoRoomGetResponse struct { - XMLName xml.Name `xml:"xhotel_baseinfo_room_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoXhotelBaseinfoRoomGetResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelBnbhouseAddAPIRequest.go b/model/xhotelitem/TaobaoXhotelBnbhouseAddAPIRequest.go new file mode 100644 index 0000000000..9115d12929 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelBnbhouseAddAPIRequest.go @@ -0,0 +1,542 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +民宿门店信息添加 API请求 +taobao.xhotel.bnbhouse.add + +添加和更新民宿门店的信息 +*/ +type TaobaoXhotelBnbhouseAddAPIRequest struct { + model.Params + // 外部房东id + _outOwnerId string + // 对接系统商名称:可为空不要乱填,需要申请后使用 + _vendor string + // 供应商渠道门店ID + _outerId string + // 门店名称 + _name string + // 门店英文名称 + _nameE string + // 门店属性 1 个人房源 2 城市公寓 3 乡村民宿等 + _attributes int64 + // 门店类型,详见“房源类型list + _productType int64 + // 有无资质执照 0 无资质 1有资质 + _hasLicense int64 + // 面积大小 + _houseSize int64 + // 楼层 + _floors string + // 门店简介 + _description string + // 酒店设施。json格式示例值:{"24152":true,"24149":true,"24150":true},key取值参见 https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.vSVPks&docType=1&articleId=108416&previewCode=987A11324A278EF679E24102BA30D426 中type=20的分类 + _facilities string + // 品牌名称 + _brand string + // 开业时间,格式为2015-01-01 + _openingTime string + // 装修等级 1 精装 2普通 3简装 + _decorateLevel int64 + // 装修时间,格式为2015-01-01 + _decorateTime string + // 装修风格,详见装修风格枚举表 + _decorateStyle int64 + // 风景类型,详见风景类型枚举表 + _scenicFeature int64 + // 房型状态。0:正常,-1:删除,-2:停售 + _status *model.File + // 联系方式。格式:国家代码(最长6位)#区号(最长4位)#电话(最长20位)。国家代码提示:中国大陆0086、香港00852、澳门00853、台湾00886 + _tel string + // 真实联系方式 + _realTel string + // 结算过程中的结算币种符合,如需对接请联系飞猪技术支持,请谨慎使用 + _settlementCurrency string + // 民宿门店添加 + _pictures []BnbPictureDto + // 门店标签 标签信息,逗号(,)分隔 + _tags string + // 是否使用实拍图片 0不使用 1使用 + _isUseShootImage int64 + // 视频地址 + _videoUrl string + // 是否有前台 0没有 1有 + _hasFrontDesk int64 + // 位置信息 + _location *BnbLocationDto + // 入住要求&附加信息 + _bnbBookingTime *BnbBookingTimeDto + // 入住须知 + _checkInNotes string + // 可接待客人性别 0:不限制,1:只限男性,2:只限女性' + _guestGender int64 + // 可接待客人年龄情况:是否接待儿童、老人;成年人必接待,详见“可接待客人”list + _guestAge int64 + // 是否可接待外宾 0不接待 1接待 + _receiveForeigners int64 + // 详见“允许活动”list 12,32,33, + _activitiesAllowed string + // 可加床数 + _extraBedsNum int64 + // 加人收费信息 + _charge *BnbChargeDto +} + +// 初始化TaobaoXhotelBnbhouseAddAPIRequest对象 +func NewTaobaoXhotelBnbhouseAddRequest() *TaobaoXhotelBnbhouseAddAPIRequest{ + return &TaobaoXhotelBnbhouseAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.bnbhouse.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutOwnerId Setter +// 外部房东id +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetOutOwnerId(_outOwnerId string) error { + r._outOwnerId = _outOwnerId + r.Set("out_owner_id", _outOwnerId) + return nil +} + +// OutOwnerId Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetOutOwnerId() string { + return r._outOwnerId +} +// Vendor Setter +// 对接系统商名称:可为空不要乱填,需要申请后使用 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetVendor() string { + return r._vendor +} +// OuterId Setter +// 供应商渠道门店ID +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetOuterId() string { + return r._outerId +} +// Name Setter +// 门店名称 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetName() string { + return r._name +} +// NameE Setter +// 门店英文名称 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetNameE(_nameE string) error { + r._nameE = _nameE + r.Set("name_e", _nameE) + return nil +} + +// NameE Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetNameE() string { + return r._nameE +} +// Attributes Setter +// 门店属性 1 个人房源 2 城市公寓 3 乡村民宿等 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetAttributes(_attributes int64) error { + r._attributes = _attributes + r.Set("attributes", _attributes) + return nil +} + +// Attributes Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetAttributes() int64 { + return r._attributes +} +// ProductType Setter +// 门店类型,详见“房源类型list +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetProductType(_productType int64) error { + r._productType = _productType + r.Set("product_type", _productType) + return nil +} + +// ProductType Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetProductType() int64 { + return r._productType +} +// HasLicense Setter +// 有无资质执照 0 无资质 1有资质 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetHasLicense(_hasLicense int64) error { + r._hasLicense = _hasLicense + r.Set("has_license", _hasLicense) + return nil +} + +// HasLicense Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetHasLicense() int64 { + return r._hasLicense +} +// HouseSize Setter +// 面积大小 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetHouseSize(_houseSize int64) error { + r._houseSize = _houseSize + r.Set("house_size", _houseSize) + return nil +} + +// HouseSize Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetHouseSize() int64 { + return r._houseSize +} +// Floors Setter +// 楼层 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetFloors(_floors string) error { + r._floors = _floors + r.Set("floors", _floors) + return nil +} + +// Floors Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetFloors() string { + return r._floors +} +// Description Setter +// 门店简介 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetDescription() string { + return r._description +} +// Facilities Setter +// 酒店设施。json格式示例值:{"24152":true,"24149":true,"24150":true},key取值参见 https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.vSVPks&docType=1&articleId=108416&previewCode=987A11324A278EF679E24102BA30D426 中type=20的分类 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetFacilities(_facilities string) error { + r._facilities = _facilities + r.Set("facilities", _facilities) + return nil +} + +// Facilities Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetFacilities() string { + return r._facilities +} +// Brand Setter +// 品牌名称 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetBrand(_brand string) error { + r._brand = _brand + r.Set("brand", _brand) + return nil +} + +// Brand Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetBrand() string { + return r._brand +} +// OpeningTime Setter +// 开业时间,格式为2015-01-01 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetOpeningTime(_openingTime string) error { + r._openingTime = _openingTime + r.Set("opening_time", _openingTime) + return nil +} + +// OpeningTime Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetOpeningTime() string { + return r._openingTime +} +// DecorateLevel Setter +// 装修等级 1 精装 2普通 3简装 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetDecorateLevel(_decorateLevel int64) error { + r._decorateLevel = _decorateLevel + r.Set("decorate_level", _decorateLevel) + return nil +} + +// DecorateLevel Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetDecorateLevel() int64 { + return r._decorateLevel +} +// DecorateTime Setter +// 装修时间,格式为2015-01-01 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetDecorateTime(_decorateTime string) error { + r._decorateTime = _decorateTime + r.Set("decorate_time", _decorateTime) + return nil +} + +// DecorateTime Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetDecorateTime() string { + return r._decorateTime +} +// DecorateStyle Setter +// 装修风格,详见装修风格枚举表 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetDecorateStyle(_decorateStyle int64) error { + r._decorateStyle = _decorateStyle + r.Set("decorate_style", _decorateStyle) + return nil +} + +// DecorateStyle Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetDecorateStyle() int64 { + return r._decorateStyle +} +// ScenicFeature Setter +// 风景类型,详见风景类型枚举表 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetScenicFeature(_scenicFeature int64) error { + r._scenicFeature = _scenicFeature + r.Set("scenic_feature", _scenicFeature) + return nil +} + +// ScenicFeature Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetScenicFeature() int64 { + return r._scenicFeature +} +// Status Setter +// 房型状态。0:正常,-1:删除,-2:停售 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetStatus(_status *model.File) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetStatus() *model.File { + return r._status +} +// Tel Setter +// 联系方式。格式:国家代码(最长6位)#区号(最长4位)#电话(最长20位)。国家代码提示:中国大陆0086、香港00852、澳门00853、台湾00886 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetTel(_tel string) error { + r._tel = _tel + r.Set("tel", _tel) + return nil +} + +// Tel Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetTel() string { + return r._tel +} +// RealTel Setter +// 真实联系方式 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetRealTel(_realTel string) error { + r._realTel = _realTel + r.Set("real_tel", _realTel) + return nil +} + +// RealTel Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetRealTel() string { + return r._realTel +} +// SettlementCurrency Setter +// 结算过程中的结算币种符合,如需对接请联系飞猪技术支持,请谨慎使用 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetSettlementCurrency(_settlementCurrency string) error { + r._settlementCurrency = _settlementCurrency + r.Set("settlement_currency", _settlementCurrency) + return nil +} + +// SettlementCurrency Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetSettlementCurrency() string { + return r._settlementCurrency +} +// Pictures Setter +// 民宿门店添加 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetPictures(_pictures []BnbPictureDto) error { + r._pictures = _pictures + r.Set("pictures", _pictures) + return nil +} + +// Pictures Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetPictures() []BnbPictureDto { + return r._pictures +} +// Tags Setter +// 门店标签 标签信息,逗号(,)分隔 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetTags(_tags string) error { + r._tags = _tags + r.Set("tags", _tags) + return nil +} + +// Tags Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetTags() string { + return r._tags +} +// IsUseShootImage Setter +// 是否使用实拍图片 0不使用 1使用 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetIsUseShootImage(_isUseShootImage int64) error { + r._isUseShootImage = _isUseShootImage + r.Set("is_use_shoot_image", _isUseShootImage) + return nil +} + +// IsUseShootImage Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetIsUseShootImage() int64 { + return r._isUseShootImage +} +// VideoUrl Setter +// 视频地址 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetVideoUrl(_videoUrl string) error { + r._videoUrl = _videoUrl + r.Set("video_url", _videoUrl) + return nil +} + +// VideoUrl Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetVideoUrl() string { + return r._videoUrl +} +// HasFrontDesk Setter +// 是否有前台 0没有 1有 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetHasFrontDesk(_hasFrontDesk int64) error { + r._hasFrontDesk = _hasFrontDesk + r.Set("has_front_desk", _hasFrontDesk) + return nil +} + +// HasFrontDesk Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetHasFrontDesk() int64 { + return r._hasFrontDesk +} +// Location Setter +// 位置信息 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetLocation(_location *BnbLocationDto) error { + r._location = _location + r.Set("location", _location) + return nil +} + +// Location Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetLocation() *BnbLocationDto { + return r._location +} +// BnbBookingTime Setter +// 入住要求&附加信息 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetBnbBookingTime(_bnbBookingTime *BnbBookingTimeDto) error { + r._bnbBookingTime = _bnbBookingTime + r.Set("bnb_booking_time", _bnbBookingTime) + return nil +} + +// BnbBookingTime Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetBnbBookingTime() *BnbBookingTimeDto { + return r._bnbBookingTime +} +// CheckInNotes Setter +// 入住须知 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetCheckInNotes(_checkInNotes string) error { + r._checkInNotes = _checkInNotes + r.Set("check_in_notes", _checkInNotes) + return nil +} + +// CheckInNotes Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetCheckInNotes() string { + return r._checkInNotes +} +// GuestGender Setter +// 可接待客人性别 0:不限制,1:只限男性,2:只限女性' +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetGuestGender(_guestGender int64) error { + r._guestGender = _guestGender + r.Set("guest_gender", _guestGender) + return nil +} + +// GuestGender Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetGuestGender() int64 { + return r._guestGender +} +// GuestAge Setter +// 可接待客人年龄情况:是否接待儿童、老人;成年人必接待,详见“可接待客人”list +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetGuestAge(_guestAge int64) error { + r._guestAge = _guestAge + r.Set("guest_age", _guestAge) + return nil +} + +// GuestAge Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetGuestAge() int64 { + return r._guestAge +} +// ReceiveForeigners Setter +// 是否可接待外宾 0不接待 1接待 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetReceiveForeigners(_receiveForeigners int64) error { + r._receiveForeigners = _receiveForeigners + r.Set("receive_foreigners", _receiveForeigners) + return nil +} + +// ReceiveForeigners Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetReceiveForeigners() int64 { + return r._receiveForeigners +} +// ActivitiesAllowed Setter +// 详见“允许活动”list 12,32,33, +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetActivitiesAllowed(_activitiesAllowed string) error { + r._activitiesAllowed = _activitiesAllowed + r.Set("activities_allowed", _activitiesAllowed) + return nil +} + +// ActivitiesAllowed Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetActivitiesAllowed() string { + return r._activitiesAllowed +} +// ExtraBedsNum Setter +// 可加床数 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetExtraBedsNum(_extraBedsNum int64) error { + r._extraBedsNum = _extraBedsNum + r.Set("extra_beds_num", _extraBedsNum) + return nil +} + +// ExtraBedsNum Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetExtraBedsNum() int64 { + return r._extraBedsNum +} +// Charge Setter +// 加人收费信息 +func (r *TaobaoXhotelBnbhouseAddAPIRequest) SetCharge(_charge *BnbChargeDto) error { + r._charge = _charge + r.Set("charge", _charge) + return nil +} + +// Charge Getter +func (r TaobaoXhotelBnbhouseAddAPIRequest) GetCharge() *BnbChargeDto { + return r._charge +} diff --git a/model/xhotelitem/TaobaoXhotelBnbhouseAddAPIResponse.go b/model/xhotelitem/TaobaoXhotelBnbhouseAddAPIResponse.go new file mode 100644 index 0000000000..3a6d9b849b --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelBnbhouseAddAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +民宿门店信息添加 API返回值 +taobao.xhotel.bnbhouse.add + +添加和更新民宿门店的信息 +*/ +type TaobaoXhotelBnbhouseAddAPIResponse struct { + model.CommonResponse + TaobaoXhotelBnbhouseAddAPIResponseModel +} + +// 民宿门店信息添加 成功返回结果 +type TaobaoXhotelBnbhouseAddAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_bnbhouse_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Results []XHotel `json:"results,omitempty" xml:"results>x_hotel,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelBnbhouseAddResponse.go b/model/xhotelitem/TaobaoXhotelBnbhouseAddResponse.go deleted file mode 100644 index 9adca00b3a..0000000000 --- a/model/xhotelitem/TaobaoXhotelBnbhouseAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -民宿门店信息添加 API返回值 -taobao.xhotel.bnbhouse.add - -添加和更新民宿门店的信息 -*/ -type TaobaoXhotelBnbhouseAddAPIResponse struct { - model.CommonResponse - TaobaoXhotelBnbhouseAddResponse -} - -// 民宿门店信息添加 成功返回结果 -type TaobaoXhotelBnbhouseAddResponse struct { - XMLName xml.Name `xml:"xhotel_bnbhouse_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Results []XHotel `json:"results,omitempty" xml:"results>x_hotel,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelBnbownerAddAPIRequest.go b/model/xhotelitem/TaobaoXhotelBnbownerAddAPIRequest.go new file mode 100644 index 0000000000..3bd782fc72 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelBnbownerAddAPIRequest.go @@ -0,0 +1,52 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +民宿房东信息添加 API请求 +taobao.xhotel.bnbowner.add + +添加和更新民宿房东的信息 +*/ +type TaobaoXhotelBnbownerAddAPIRequest struct { + model.Params + // 添加房东信息的对象 + _addOwnerParam *AddOwnerParam +} + +// 初始化TaobaoXhotelBnbownerAddAPIRequest对象 +func NewTaobaoXhotelBnbownerAddRequest() *TaobaoXhotelBnbownerAddAPIRequest{ + return &TaobaoXhotelBnbownerAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelBnbownerAddAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.bnbowner.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelBnbownerAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AddOwnerParam Setter +// 添加房东信息的对象 +func (r *TaobaoXhotelBnbownerAddAPIRequest) SetAddOwnerParam(_addOwnerParam *AddOwnerParam) error { + r._addOwnerParam = _addOwnerParam + r.Set("add_owner_param", _addOwnerParam) + return nil +} + +// AddOwnerParam Getter +func (r TaobaoXhotelBnbownerAddAPIRequest) GetAddOwnerParam() *AddOwnerParam { + return r._addOwnerParam +} diff --git a/model/xhotelitem/TaobaoXhotelBnbownerAddAPIResponse.go b/model/xhotelitem/TaobaoXhotelBnbownerAddAPIResponse.go new file mode 100644 index 0000000000..0abba0c6ef --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelBnbownerAddAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +民宿房东信息添加 API返回值 +taobao.xhotel.bnbowner.add + +添加和更新民宿房东的信息 +*/ +type TaobaoXhotelBnbownerAddAPIResponse struct { + model.CommonResponse + TaobaoXhotelBnbownerAddAPIResponseModel +} + +// 民宿房东信息添加 成功返回结果 +type TaobaoXhotelBnbownerAddAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_bnbowner_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果集 + Result *TaobaoXhotelBnbownerAddResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelBnbownerAddResponse.go b/model/xhotelitem/TaobaoXhotelBnbownerAddResponse.go deleted file mode 100644 index e957792f0e..0000000000 --- a/model/xhotelitem/TaobaoXhotelBnbownerAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -民宿房东信息添加 API返回值 -taobao.xhotel.bnbowner.add - -添加和更新民宿房东的信息 -*/ -type TaobaoXhotelBnbownerAddAPIResponse struct { - model.CommonResponse - TaobaoXhotelBnbownerAddResponse -} - -// 民宿房东信息添加 成功返回结果 -type TaobaoXhotelBnbownerAddResponse struct { - XMLName xml.Name `xml:"xhotel_bnbowner_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果集 - Result *TaobaoXhotelBnbownerAddResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelBnbroomtypeAddAPIRequest.go b/model/xhotelitem/TaobaoXhotelBnbroomtypeAddAPIRequest.go new file mode 100644 index 0000000000..f42bea05f6 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelBnbroomtypeAddAPIRequest.go @@ -0,0 +1,836 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +民宿新增房源 API请求 +taobao.xhotel.bnbroomtype.add + +添加民宿房源 +*/ +type TaobaoXhotelBnbroomtypeAddAPIRequest struct { + model.Params + // 销售渠道,默认taobao + _vendor string + // 房型id, 这是卖家自己系统中的ID + _outerId string + // 外部门店id + _outHid string + // 房型名 + _name string + // 房型英文名 + _nameE string + // 房型类型,见https://fliggy.open.taobao.com/doc.htm?docId=120148&docType=1 + _productType int64 + // 有无资质执照 0 没有 1有 + _hasLicense int64 + // 单间面积,单位平方米 + _houseSize int64 + // 客房在建筑的第几层,隔层为1-2层,4-5层,7-8层 + _floor string + // 房型介绍 + _introduction string + // 亮点描述 + _brightspot string + // 位置描述 + _localInfo string + // 周边描述 + _surroundInfo string + // 品牌名称 + _brand string + // 开业时间,格式为2015-01-01 + _openingTime string + // 装修时间,格式为2015-01-01装修时间 + _decorateTime string + // 装修等级 1 精装;2普通;3简装 + _decorateLevel int64 + // 装修风格https://fliggy.open.taobao.com/doc.htm?docId=120148&docType=1 + _decorateStyle int64 + // 风景类型(枚举)https://fliggy.open.taobao.com/doc.htm?docId=120148&docType=1 + _scenicFeature int64 + // 出租类型,1整租;2分租。3床位 默认整租,该字段不能更新 + _rentType int64 + // 单间面积,单位平方米 + _rentSize int64 + // 是否与房东同住 0 不同住 1同住 + _hasLandlord int64 + // 酒店电话。格式:国家代码(最长6位)#区号(最长4位)#电话(最长20位)。国家代码提示:中国大陆0086、香港00852、澳门00853、台湾00886 + _tel string + // 真实联系方式 + _realTel string + // 状态 0:在线 -1:不在线 -2:停售 + _status *model.File + // 结算过程中的结算币种符合,如需对接请联系飞猪技术支持,请谨慎使用 + _settlementCurrency string + // 是否支持IM聊天 0不支持 1支持 + _supportIm int64 + // 是否开启闪订 0不开启 1开启 + _quickOrder int64 + // 床信息: bedType:床型, desc: 床型名, width:床宽, length:床长, bedNum: 床数。床型取值见链接https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.4zBOVn&docType=1&articleId=108347 + _bedInfo string + // 房屋户型, bedroom: 室, bathroom: 卫, livingroom: 厅, study: 书房, balcony: 阳台,kitchen: 厨房,bedroom和livingroom不能为空 + _houseModel string + // 窗型-1.有窗;2.无窗;3.部分有窗 + _windowType int64 + // 房型图片只支持远程图片,格式如下:[{"url":"http://taobao.com/123.jpg","ismain":"true"},{"url":"http://taobao.com/456.jpg","ismain":"false"},{"url":"http://taobao.com/789.jpg","ismain":"false"}]其中url是远程图片的访问地址(URL地址必须是合法的,否则会报错),main是是否为主图。只能设置一张图片为主图。 + _pics []BnbPictureDto + // 房型外部标签 标签信息,逗号(,)分隔 + _outerTags string + // 是否使用实拍图片 0不使用 1使用 + _isUseShootImage int64 + // 视频地址 + _videoUrl string + // 民宿房源位置信息 + _location *BnbLocationDto + // 最大入住人数 1-50 + _maxOccupancy int64 + // 民宿入住要求&附加信息 + _bnbBookingTime *BnbBookingTimeDto + // 入住须知 + _checkInNotes string + // 0:不限制,1:只限男性,2:只限女性' + _guestGender int64 + // 是否接待儿童、老人;成年人必接待,详见“可接待客人”https://fliggy.open.taobao.com/doc.htm?docId=120148&docType=1 + _guestAge int64 + // 是否可接待外宾 0:否 1:是 + _receiveForeigners int64 + // “打扫类型1(1客1扫/换),2(1天1扫/换),https://fliggy.open.taobao.com/doc.htm?docId=120148&docType=1 + _cleaningFrequency int64 + // 详见“允许活动”:https://fliggy.open.taobao.com/doc.htm?docId=120148&docType=1 + _activitiesAllowed string + // 0-n;若不可加床,值为0 + _extraBedsNum int64 + // 押金类型0.线下;1.线上 + _depositType int64 + // 是否信用免押金0:否 1:是 + _supportcredit int64 + // 押金金额 + _depositAmount int64 + // 加人收费信息 + _charge *BnbChargeDto + // 清洁费是否收取 0:否 1:是 + _cleaningCharge int64 + // 清洁费类型 0.线下;1.线上 + _cleaningType int64 + // 清洁费金额;整数[1,9999999] + _extraCleaningCharge int64 + // 发票,0:卖家提供发票,1:房东提供发票 + _invoice int64 + // 可提供发票类型,1.专票 2.纸质普票 3.电子普票 + _invoiceType int64 + // 是否有前台 0没有 1有 + _hasFrontDesk int64 + // 如果要变更商品房型编码请使用该字段。 + _newOuterId string + // 设施服务。JSON格式。 value值true有此服务,false没有。 bar:吧台,catv:有线电视,ddd:国内长途电话,idd:国际长途电话,toilet:独立卫生间,pubtoliet:公共卫生间。 如: {"bar":false,"catv":false,"ddd":false,"idd":false,"pubtoilet":false,"toilet":false},见https://fliggy.open.taobao.com/doc.htm?docId=120148&docType=1 + _service string +} + +// 初始化TaobaoXhotelBnbroomtypeAddAPIRequest对象 +func NewTaobaoXhotelBnbroomtypeAddRequest() *TaobaoXhotelBnbroomtypeAddAPIRequest{ + return &TaobaoXhotelBnbroomtypeAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.bnbroomtype.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Vendor Setter +// 销售渠道,默认taobao +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetVendor() string { + return r._vendor +} +// OuterId Setter +// 房型id, 这是卖家自己系统中的ID +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetOuterId() string { + return r._outerId +} +// OutHid Setter +// 外部门店id +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetOutHid(_outHid string) error { + r._outHid = _outHid + r.Set("out_hid", _outHid) + return nil +} + +// OutHid Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetOutHid() string { + return r._outHid +} +// Name Setter +// 房型名 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetName() string { + return r._name +} +// NameE Setter +// 房型英文名 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetNameE(_nameE string) error { + r._nameE = _nameE + r.Set("name_e", _nameE) + return nil +} + +// NameE Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetNameE() string { + return r._nameE +} +// ProductType Setter +// 房型类型,见https://fliggy.open.taobao.com/doc.htm?docId=120148&docType=1 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetProductType(_productType int64) error { + r._productType = _productType + r.Set("product_type", _productType) + return nil +} + +// ProductType Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetProductType() int64 { + return r._productType +} +// HasLicense Setter +// 有无资质执照 0 没有 1有 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetHasLicense(_hasLicense int64) error { + r._hasLicense = _hasLicense + r.Set("has_license", _hasLicense) + return nil +} + +// HasLicense Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetHasLicense() int64 { + return r._hasLicense +} +// HouseSize Setter +// 单间面积,单位平方米 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetHouseSize(_houseSize int64) error { + r._houseSize = _houseSize + r.Set("house_size", _houseSize) + return nil +} + +// HouseSize Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetHouseSize() int64 { + return r._houseSize +} +// Floor Setter +// 客房在建筑的第几层,隔层为1-2层,4-5层,7-8层 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetFloor(_floor string) error { + r._floor = _floor + r.Set("floor", _floor) + return nil +} + +// Floor Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetFloor() string { + return r._floor +} +// Introduction Setter +// 房型介绍 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetIntroduction(_introduction string) error { + r._introduction = _introduction + r.Set("introduction", _introduction) + return nil +} + +// Introduction Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetIntroduction() string { + return r._introduction +} +// Brightspot Setter +// 亮点描述 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetBrightspot(_brightspot string) error { + r._brightspot = _brightspot + r.Set("brightspot", _brightspot) + return nil +} + +// Brightspot Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetBrightspot() string { + return r._brightspot +} +// LocalInfo Setter +// 位置描述 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetLocalInfo(_localInfo string) error { + r._localInfo = _localInfo + r.Set("local_info", _localInfo) + return nil +} + +// LocalInfo Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetLocalInfo() string { + return r._localInfo +} +// SurroundInfo Setter +// 周边描述 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetSurroundInfo(_surroundInfo string) error { + r._surroundInfo = _surroundInfo + r.Set("surround_info", _surroundInfo) + return nil +} + +// SurroundInfo Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetSurroundInfo() string { + return r._surroundInfo +} +// Brand Setter +// 品牌名称 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetBrand(_brand string) error { + r._brand = _brand + r.Set("brand", _brand) + return nil +} + +// Brand Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetBrand() string { + return r._brand +} +// OpeningTime Setter +// 开业时间,格式为2015-01-01 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetOpeningTime(_openingTime string) error { + r._openingTime = _openingTime + r.Set("opening_time", _openingTime) + return nil +} + +// OpeningTime Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetOpeningTime() string { + return r._openingTime +} +// DecorateTime Setter +// 装修时间,格式为2015-01-01装修时间 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetDecorateTime(_decorateTime string) error { + r._decorateTime = _decorateTime + r.Set("decorate_time", _decorateTime) + return nil +} + +// DecorateTime Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetDecorateTime() string { + return r._decorateTime +} +// DecorateLevel Setter +// 装修等级 1 精装;2普通;3简装 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetDecorateLevel(_decorateLevel int64) error { + r._decorateLevel = _decorateLevel + r.Set("decorate_level", _decorateLevel) + return nil +} + +// DecorateLevel Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetDecorateLevel() int64 { + return r._decorateLevel +} +// DecorateStyle Setter +// 装修风格https://fliggy.open.taobao.com/doc.htm?docId=120148&docType=1 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetDecorateStyle(_decorateStyle int64) error { + r._decorateStyle = _decorateStyle + r.Set("decorate_style", _decorateStyle) + return nil +} + +// DecorateStyle Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetDecorateStyle() int64 { + return r._decorateStyle +} +// ScenicFeature Setter +// 风景类型(枚举)https://fliggy.open.taobao.com/doc.htm?docId=120148&docType=1 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetScenicFeature(_scenicFeature int64) error { + r._scenicFeature = _scenicFeature + r.Set("scenic_feature", _scenicFeature) + return nil +} + +// ScenicFeature Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetScenicFeature() int64 { + return r._scenicFeature +} +// RentType Setter +// 出租类型,1整租;2分租。3床位 默认整租,该字段不能更新 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetRentType(_rentType int64) error { + r._rentType = _rentType + r.Set("rent_type", _rentType) + return nil +} + +// RentType Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetRentType() int64 { + return r._rentType +} +// RentSize Setter +// 单间面积,单位平方米 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetRentSize(_rentSize int64) error { + r._rentSize = _rentSize + r.Set("rent_size", _rentSize) + return nil +} + +// RentSize Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetRentSize() int64 { + return r._rentSize +} +// HasLandlord Setter +// 是否与房东同住 0 不同住 1同住 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetHasLandlord(_hasLandlord int64) error { + r._hasLandlord = _hasLandlord + r.Set("has_landlord", _hasLandlord) + return nil +} + +// HasLandlord Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetHasLandlord() int64 { + return r._hasLandlord +} +// Tel Setter +// 酒店电话。格式:国家代码(最长6位)#区号(最长4位)#电话(最长20位)。国家代码提示:中国大陆0086、香港00852、澳门00853、台湾00886 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetTel(_tel string) error { + r._tel = _tel + r.Set("tel", _tel) + return nil +} + +// Tel Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetTel() string { + return r._tel +} +// RealTel Setter +// 真实联系方式 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetRealTel(_realTel string) error { + r._realTel = _realTel + r.Set("real_tel", _realTel) + return nil +} + +// RealTel Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetRealTel() string { + return r._realTel +} +// Status Setter +// 状态 0:在线 -1:不在线 -2:停售 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetStatus(_status *model.File) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetStatus() *model.File { + return r._status +} +// SettlementCurrency Setter +// 结算过程中的结算币种符合,如需对接请联系飞猪技术支持,请谨慎使用 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetSettlementCurrency(_settlementCurrency string) error { + r._settlementCurrency = _settlementCurrency + r.Set("settlement_currency", _settlementCurrency) + return nil +} + +// SettlementCurrency Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetSettlementCurrency() string { + return r._settlementCurrency +} +// SupportIm Setter +// 是否支持IM聊天 0不支持 1支持 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetSupportIm(_supportIm int64) error { + r._supportIm = _supportIm + r.Set("support_im", _supportIm) + return nil +} + +// SupportIm Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetSupportIm() int64 { + return r._supportIm +} +// QuickOrder Setter +// 是否开启闪订 0不开启 1开启 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetQuickOrder(_quickOrder int64) error { + r._quickOrder = _quickOrder + r.Set("quick_order", _quickOrder) + return nil +} + +// QuickOrder Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetQuickOrder() int64 { + return r._quickOrder +} +// BedInfo Setter +// 床信息: bedType:床型, desc: 床型名, width:床宽, length:床长, bedNum: 床数。床型取值见链接https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.4zBOVn&docType=1&articleId=108347 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetBedInfo(_bedInfo string) error { + r._bedInfo = _bedInfo + r.Set("bed_info", _bedInfo) + return nil +} + +// BedInfo Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetBedInfo() string { + return r._bedInfo +} +// HouseModel Setter +// 房屋户型, bedroom: 室, bathroom: 卫, livingroom: 厅, study: 书房, balcony: 阳台,kitchen: 厨房,bedroom和livingroom不能为空 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetHouseModel(_houseModel string) error { + r._houseModel = _houseModel + r.Set("house_model", _houseModel) + return nil +} + +// HouseModel Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetHouseModel() string { + return r._houseModel +} +// WindowType Setter +// 窗型-1.有窗;2.无窗;3.部分有窗 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetWindowType(_windowType int64) error { + r._windowType = _windowType + r.Set("window_type", _windowType) + return nil +} + +// WindowType Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetWindowType() int64 { + return r._windowType +} +// Pics Setter +// 房型图片只支持远程图片,格式如下:[{"url":"http://taobao.com/123.jpg","ismain":"true"},{"url":"http://taobao.com/456.jpg","ismain":"false"},{"url":"http://taobao.com/789.jpg","ismain":"false"}]其中url是远程图片的访问地址(URL地址必须是合法的,否则会报错),main是是否为主图。只能设置一张图片为主图。 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetPics(_pics []BnbPictureDto) error { + r._pics = _pics + r.Set("pics", _pics) + return nil +} + +// Pics Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetPics() []BnbPictureDto { + return r._pics +} +// OuterTags Setter +// 房型外部标签 标签信息,逗号(,)分隔 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetOuterTags(_outerTags string) error { + r._outerTags = _outerTags + r.Set("outer_tags", _outerTags) + return nil +} + +// OuterTags Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetOuterTags() string { + return r._outerTags +} +// IsUseShootImage Setter +// 是否使用实拍图片 0不使用 1使用 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetIsUseShootImage(_isUseShootImage int64) error { + r._isUseShootImage = _isUseShootImage + r.Set("is_use_shoot_image", _isUseShootImage) + return nil +} + +// IsUseShootImage Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetIsUseShootImage() int64 { + return r._isUseShootImage +} +// VideoUrl Setter +// 视频地址 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetVideoUrl(_videoUrl string) error { + r._videoUrl = _videoUrl + r.Set("video_url", _videoUrl) + return nil +} + +// VideoUrl Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetVideoUrl() string { + return r._videoUrl +} +// Location Setter +// 民宿房源位置信息 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetLocation(_location *BnbLocationDto) error { + r._location = _location + r.Set("location", _location) + return nil +} + +// Location Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetLocation() *BnbLocationDto { + return r._location +} +// MaxOccupancy Setter +// 最大入住人数 1-50 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetMaxOccupancy(_maxOccupancy int64) error { + r._maxOccupancy = _maxOccupancy + r.Set("max_occupancy", _maxOccupancy) + return nil +} + +// MaxOccupancy Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetMaxOccupancy() int64 { + return r._maxOccupancy +} +// BnbBookingTime Setter +// 民宿入住要求&附加信息 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetBnbBookingTime(_bnbBookingTime *BnbBookingTimeDto) error { + r._bnbBookingTime = _bnbBookingTime + r.Set("bnb_booking_time", _bnbBookingTime) + return nil +} + +// BnbBookingTime Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetBnbBookingTime() *BnbBookingTimeDto { + return r._bnbBookingTime +} +// CheckInNotes Setter +// 入住须知 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetCheckInNotes(_checkInNotes string) error { + r._checkInNotes = _checkInNotes + r.Set("check_in_notes", _checkInNotes) + return nil +} + +// CheckInNotes Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetCheckInNotes() string { + return r._checkInNotes +} +// GuestGender Setter +// 0:不限制,1:只限男性,2:只限女性' +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetGuestGender(_guestGender int64) error { + r._guestGender = _guestGender + r.Set("guest_gender", _guestGender) + return nil +} + +// GuestGender Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetGuestGender() int64 { + return r._guestGender +} +// GuestAge Setter +// 是否接待儿童、老人;成年人必接待,详见“可接待客人”https://fliggy.open.taobao.com/doc.htm?docId=120148&docType=1 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetGuestAge(_guestAge int64) error { + r._guestAge = _guestAge + r.Set("guest_age", _guestAge) + return nil +} + +// GuestAge Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetGuestAge() int64 { + return r._guestAge +} +// ReceiveForeigners Setter +// 是否可接待外宾 0:否 1:是 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetReceiveForeigners(_receiveForeigners int64) error { + r._receiveForeigners = _receiveForeigners + r.Set("receive_foreigners", _receiveForeigners) + return nil +} + +// ReceiveForeigners Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetReceiveForeigners() int64 { + return r._receiveForeigners +} +// CleaningFrequency Setter +// “打扫类型1(1客1扫/换),2(1天1扫/换),https://fliggy.open.taobao.com/doc.htm?docId=120148&docType=1 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetCleaningFrequency(_cleaningFrequency int64) error { + r._cleaningFrequency = _cleaningFrequency + r.Set("cleaning_frequency", _cleaningFrequency) + return nil +} + +// CleaningFrequency Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetCleaningFrequency() int64 { + return r._cleaningFrequency +} +// ActivitiesAllowed Setter +// 详见“允许活动”:https://fliggy.open.taobao.com/doc.htm?docId=120148&docType=1 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetActivitiesAllowed(_activitiesAllowed string) error { + r._activitiesAllowed = _activitiesAllowed + r.Set("activities_allowed", _activitiesAllowed) + return nil +} + +// ActivitiesAllowed Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetActivitiesAllowed() string { + return r._activitiesAllowed +} +// ExtraBedsNum Setter +// 0-n;若不可加床,值为0 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetExtraBedsNum(_extraBedsNum int64) error { + r._extraBedsNum = _extraBedsNum + r.Set("extra_beds_num", _extraBedsNum) + return nil +} + +// ExtraBedsNum Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetExtraBedsNum() int64 { + return r._extraBedsNum +} +// DepositType Setter +// 押金类型0.线下;1.线上 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetDepositType(_depositType int64) error { + r._depositType = _depositType + r.Set("deposit_type", _depositType) + return nil +} + +// DepositType Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetDepositType() int64 { + return r._depositType +} +// Supportcredit Setter +// 是否信用免押金0:否 1:是 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetSupportcredit(_supportcredit int64) error { + r._supportcredit = _supportcredit + r.Set("supportcredit", _supportcredit) + return nil +} + +// Supportcredit Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetSupportcredit() int64 { + return r._supportcredit +} +// DepositAmount Setter +// 押金金额 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetDepositAmount(_depositAmount int64) error { + r._depositAmount = _depositAmount + r.Set("deposit_amount", _depositAmount) + return nil +} + +// DepositAmount Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetDepositAmount() int64 { + return r._depositAmount +} +// Charge Setter +// 加人收费信息 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetCharge(_charge *BnbChargeDto) error { + r._charge = _charge + r.Set("charge", _charge) + return nil +} + +// Charge Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetCharge() *BnbChargeDto { + return r._charge +} +// CleaningCharge Setter +// 清洁费是否收取 0:否 1:是 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetCleaningCharge(_cleaningCharge int64) error { + r._cleaningCharge = _cleaningCharge + r.Set("cleaning_charge", _cleaningCharge) + return nil +} + +// CleaningCharge Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetCleaningCharge() int64 { + return r._cleaningCharge +} +// CleaningType Setter +// 清洁费类型 0.线下;1.线上 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetCleaningType(_cleaningType int64) error { + r._cleaningType = _cleaningType + r.Set("cleaning_type", _cleaningType) + return nil +} + +// CleaningType Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetCleaningType() int64 { + return r._cleaningType +} +// ExtraCleaningCharge Setter +// 清洁费金额;整数[1,9999999] +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetExtraCleaningCharge(_extraCleaningCharge int64) error { + r._extraCleaningCharge = _extraCleaningCharge + r.Set("extra_cleaning_charge", _extraCleaningCharge) + return nil +} + +// ExtraCleaningCharge Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetExtraCleaningCharge() int64 { + return r._extraCleaningCharge +} +// Invoice Setter +// 发票,0:卖家提供发票,1:房东提供发票 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetInvoice(_invoice int64) error { + r._invoice = _invoice + r.Set("invoice", _invoice) + return nil +} + +// Invoice Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetInvoice() int64 { + return r._invoice +} +// InvoiceType Setter +// 可提供发票类型,1.专票 2.纸质普票 3.电子普票 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetInvoiceType(_invoiceType int64) error { + r._invoiceType = _invoiceType + r.Set("invoice_type", _invoiceType) + return nil +} + +// InvoiceType Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetInvoiceType() int64 { + return r._invoiceType +} +// HasFrontDesk Setter +// 是否有前台 0没有 1有 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetHasFrontDesk(_hasFrontDesk int64) error { + r._hasFrontDesk = _hasFrontDesk + r.Set("has_front_desk", _hasFrontDesk) + return nil +} + +// HasFrontDesk Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetHasFrontDesk() int64 { + return r._hasFrontDesk +} +// NewOuterId Setter +// 如果要变更商品房型编码请使用该字段。 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetNewOuterId(_newOuterId string) error { + r._newOuterId = _newOuterId + r.Set("new_outer_id", _newOuterId) + return nil +} + +// NewOuterId Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetNewOuterId() string { + return r._newOuterId +} +// Service Setter +// 设施服务。JSON格式。 value值true有此服务,false没有。 bar:吧台,catv:有线电视,ddd:国内长途电话,idd:国际长途电话,toilet:独立卫生间,pubtoliet:公共卫生间。 如: {"bar":false,"catv":false,"ddd":false,"idd":false,"pubtoilet":false,"toilet":false},见https://fliggy.open.taobao.com/doc.htm?docId=120148&docType=1 +func (r *TaobaoXhotelBnbroomtypeAddAPIRequest) SetService(_service string) error { + r._service = _service + r.Set("service", _service) + return nil +} + +// Service Getter +func (r TaobaoXhotelBnbroomtypeAddAPIRequest) GetService() string { + return r._service +} diff --git a/model/xhotelitem/TaobaoXhotelBnbroomtypeAddAPIResponse.go b/model/xhotelitem/TaobaoXhotelBnbroomtypeAddAPIResponse.go new file mode 100644 index 0000000000..65d355adda --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelBnbroomtypeAddAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +民宿新增房源 API返回值 +taobao.xhotel.bnbroomtype.add + +添加民宿房源 +*/ +type TaobaoXhotelBnbroomtypeAddAPIResponse struct { + model.CommonResponse + TaobaoXhotelBnbroomtypeAddAPIResponseModel +} + +// 民宿新增房源 成功返回结果 +type TaobaoXhotelBnbroomtypeAddAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_bnbroomtype_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 房源信息 + Xroomtype *XRoomType `json:"xroomtype,omitempty" xml:"xroomtype,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelBnbroomtypeAddResponse.go b/model/xhotelitem/TaobaoXhotelBnbroomtypeAddResponse.go deleted file mode 100644 index cd99b5c0c7..0000000000 --- a/model/xhotelitem/TaobaoXhotelBnbroomtypeAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -民宿新增房源 API返回值 -taobao.xhotel.bnbroomtype.add - -添加民宿房源 -*/ -type TaobaoXhotelBnbroomtypeAddAPIResponse struct { - model.CommonResponse - TaobaoXhotelBnbroomtypeAddResponse -} - -// 民宿新增房源 成功返回结果 -type TaobaoXhotelBnbroomtypeAddResponse struct { - XMLName xml.Name `xml:"xhotel_bnbroomtype_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 房源信息 - Xroomtype *XRoomType `json:"xroomtype,omitempty" xml:"xroomtype,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelCityCoordinatesBatchDownloadAPIRequest.go b/model/xhotelitem/TaobaoXhotelCityCoordinatesBatchDownloadAPIRequest.go new file mode 100644 index 0000000000..11c282dfe7 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelCityCoordinatesBatchDownloadAPIRequest.go @@ -0,0 +1,52 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +下载飞猪国际城市结果 API请求 +taobao.xhotel.city.coordinates.batch.download + +给国际酒店供应商提供计算对应飞猪城市的服务,免去城市名称匹配流程,加快对接流程 +*/ +type TaobaoXhotelCityCoordinatesBatchDownloadAPIRequest struct { + model.Params + // 上传的经纬度批次号 + _batchId int64 +} + +// 初始化TaobaoXhotelCityCoordinatesBatchDownloadAPIRequest对象 +func NewTaobaoXhotelCityCoordinatesBatchDownloadRequest() *TaobaoXhotelCityCoordinatesBatchDownloadAPIRequest{ + return &TaobaoXhotelCityCoordinatesBatchDownloadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelCityCoordinatesBatchDownloadAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.city.coordinates.batch.download" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelCityCoordinatesBatchDownloadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BatchId Setter +// 上传的经纬度批次号 +func (r *TaobaoXhotelCityCoordinatesBatchDownloadAPIRequest) SetBatchId(_batchId int64) error { + r._batchId = _batchId + r.Set("batch_id", _batchId) + return nil +} + +// BatchId Getter +func (r TaobaoXhotelCityCoordinatesBatchDownloadAPIRequest) GetBatchId() int64 { + return r._batchId +} diff --git a/model/xhotelitem/TaobaoXhotelCityCoordinatesBatchDownloadAPIResponse.go b/model/xhotelitem/TaobaoXhotelCityCoordinatesBatchDownloadAPIResponse.go new file mode 100644 index 0000000000..5be0c02df8 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelCityCoordinatesBatchDownloadAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +下载飞猪国际城市结果 API返回值 +taobao.xhotel.city.coordinates.batch.download + +给国际酒店供应商提供计算对应飞猪城市的服务,免去城市名称匹配流程,加快对接流程 +*/ +type TaobaoXhotelCityCoordinatesBatchDownloadAPIResponse struct { + model.CommonResponse + TaobaoXhotelCityCoordinatesBatchDownloadAPIResponseModel +} + +// 下载飞猪国际城市结果 成功返回结果 +type TaobaoXhotelCityCoordinatesBatchDownloadAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_city_coordinates_batch_download_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 经纬度计算结果列表 + CoordinateList []Coordinate `json:"coordinate_list,omitempty" xml:"coordinate_list>coordinate,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelCityCoordinatesBatchDownloadResponse.go b/model/xhotelitem/TaobaoXhotelCityCoordinatesBatchDownloadResponse.go deleted file mode 100644 index c603f16cc7..0000000000 --- a/model/xhotelitem/TaobaoXhotelCityCoordinatesBatchDownloadResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -下载飞猪国际城市结果 API返回值 -taobao.xhotel.city.coordinates.batch.download - -给国际酒店供应商提供计算对应飞猪城市的服务,免去城市名称匹配流程,加快对接流程 -*/ -type TaobaoXhotelCityCoordinatesBatchDownloadAPIResponse struct { - model.CommonResponse - TaobaoXhotelCityCoordinatesBatchDownloadResponse -} - -// 下载飞猪国际城市结果 成功返回结果 -type TaobaoXhotelCityCoordinatesBatchDownloadResponse struct { - XMLName xml.Name `xml:"xhotel_city_coordinates_batch_download_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 经纬度计算结果列表 - CoordinateList []Coordinate `json:"coordinate_list,omitempty" xml:"coordinate_list>coordinate,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelCityCoordinatesBatchUploadAPIRequest.go b/model/xhotelitem/TaobaoXhotelCityCoordinatesBatchUploadAPIRequest.go new file mode 100644 index 0000000000..85b31ab500 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelCityCoordinatesBatchUploadAPIRequest.go @@ -0,0 +1,53 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +上传信息计算飞猪国际城市 API请求 +taobao.xhotel.city.coordinates.batch.upload + +给供应商提供计算对应飞猪城市的服务,免去城市名称匹配流程,加快对接流程。目前只适用于国际城市,国内+港澳台暂不支持。 +非实时计算接口,每次批量上传不少于1条的数据,后端离线计算,请于30分钟后再下载结果。 +*/ +type TaobaoXhotelCityCoordinatesBatchUploadAPIRequest struct { + model.Params + // 经纬度列表 + _coordinateList []Coordinate +} + +// 初始化TaobaoXhotelCityCoordinatesBatchUploadAPIRequest对象 +func NewTaobaoXhotelCityCoordinatesBatchUploadRequest() *TaobaoXhotelCityCoordinatesBatchUploadAPIRequest{ + return &TaobaoXhotelCityCoordinatesBatchUploadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelCityCoordinatesBatchUploadAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.city.coordinates.batch.upload" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelCityCoordinatesBatchUploadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CoordinateList Setter +// 经纬度列表 +func (r *TaobaoXhotelCityCoordinatesBatchUploadAPIRequest) SetCoordinateList(_coordinateList []Coordinate) error { + r._coordinateList = _coordinateList + r.Set("coordinate_list", _coordinateList) + return nil +} + +// CoordinateList Getter +func (r TaobaoXhotelCityCoordinatesBatchUploadAPIRequest) GetCoordinateList() []Coordinate { + return r._coordinateList +} diff --git a/model/xhotelitem/TaobaoXhotelCityCoordinatesBatchUploadAPIResponse.go b/model/xhotelitem/TaobaoXhotelCityCoordinatesBatchUploadAPIResponse.go new file mode 100644 index 0000000000..3c603823cd --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelCityCoordinatesBatchUploadAPIResponse.go @@ -0,0 +1,28 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +上传信息计算飞猪国际城市 API返回值 +taobao.xhotel.city.coordinates.batch.upload + +给供应商提供计算对应飞猪城市的服务,免去城市名称匹配流程,加快对接流程。目前只适用于国际城市,国内+港澳台暂不支持。 +非实时计算接口,每次批量上传不少于1条的数据,后端离线计算,请于30分钟后再下载结果。 +*/ +type TaobaoXhotelCityCoordinatesBatchUploadAPIResponse struct { + model.CommonResponse + TaobaoXhotelCityCoordinatesBatchUploadAPIResponseModel +} + +// 上传信息计算飞猪国际城市 成功返回结果 +type TaobaoXhotelCityCoordinatesBatchUploadAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_city_coordinates_batch_upload_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 上传成功后的批次号 + BatchId int64 `json:"batch_id,omitempty" xml:"batch_id,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelCityCoordinatesBatchUploadResponse.go b/model/xhotelitem/TaobaoXhotelCityCoordinatesBatchUploadResponse.go deleted file mode 100644 index b3be999e42..0000000000 --- a/model/xhotelitem/TaobaoXhotelCityCoordinatesBatchUploadResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -上传信息计算飞猪国际城市 API返回值 -taobao.xhotel.city.coordinates.batch.upload - -给供应商提供计算对应飞猪城市的服务,免去城市名称匹配流程,加快对接流程。目前只适用于国际城市,国内+港澳台暂不支持。 -非实时计算接口,每次批量上传不少于1条的数据,后端离线计算,请于30分钟后再下载结果。 -*/ -type TaobaoXhotelCityCoordinatesBatchUploadAPIResponse struct { - model.CommonResponse - TaobaoXhotelCityCoordinatesBatchUploadResponse -} - -// 上传信息计算飞猪国际城市 成功返回结果 -type TaobaoXhotelCityCoordinatesBatchUploadResponse struct { - XMLName xml.Name `xml:"xhotel_city_coordinates_batch_upload_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 上传成功后的批次号 - BatchId int64 `json:"batch_id,omitempty" xml:"batch_id,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelDeleteAPIRequest.go b/model/xhotelitem/TaobaoXhotelDeleteAPIRequest.go new file mode 100644 index 0000000000..741d797804 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelDeleteAPIRequest.go @@ -0,0 +1,80 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +删除酒店接口 API请求 +taobao.xhotel.delete + +删除飞猪酒店数据接口 +*/ +type TaobaoXhotelDeleteAPIRequest struct { + model.Params + // 酒店id,传参方式 hid 或者 outer_id+vendor + _hid int64 + // 酒店vendor + _vendor string + // 酒店编码 + _outerId string +} + +// 初始化TaobaoXhotelDeleteAPIRequest对象 +func NewTaobaoXhotelDeleteRequest() *TaobaoXhotelDeleteAPIRequest{ + return &TaobaoXhotelDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelDeleteAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Hid Setter +// 酒店id,传参方式 hid 或者 outer_id+vendor +func (r *TaobaoXhotelDeleteAPIRequest) SetHid(_hid int64) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r TaobaoXhotelDeleteAPIRequest) GetHid() int64 { + return r._hid +} +// Vendor Setter +// 酒店vendor +func (r *TaobaoXhotelDeleteAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelDeleteAPIRequest) GetVendor() string { + return r._vendor +} +// OuterId Setter +// 酒店编码 +func (r *TaobaoXhotelDeleteAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoXhotelDeleteAPIRequest) GetOuterId() string { + return r._outerId +} diff --git a/model/xhotelitem/TaobaoXhotelDeleteAPIResponse.go b/model/xhotelitem/TaobaoXhotelDeleteAPIResponse.go new file mode 100644 index 0000000000..9e95301f66 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +删除酒店接口 API返回值 +taobao.xhotel.delete + +删除飞猪酒店数据接口 +*/ +type TaobaoXhotelDeleteAPIResponse struct { + model.CommonResponse + TaobaoXhotelDeleteAPIResponseModel +} + +// 删除酒店接口 成功返回结果 +type TaobaoXhotelDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 删除结果 + Result *TaobaoXhotelDeleteResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelDeleteResponse.go b/model/xhotelitem/TaobaoXhotelDeleteResponse.go deleted file mode 100644 index 2b7cc15ed4..0000000000 --- a/model/xhotelitem/TaobaoXhotelDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -删除酒店接口 API返回值 -taobao.xhotel.delete - -删除飞猪酒店数据接口 -*/ -type TaobaoXhotelDeleteAPIResponse struct { - model.CommonResponse - TaobaoXhotelDeleteResponse -} - -// 删除酒店接口 成功返回结果 -type TaobaoXhotelDeleteResponse struct { - XMLName xml.Name `xml:"xhotel_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 删除结果 - Result *TaobaoXhotelDeleteResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelEntityConfigAPIRequest.go b/model/xhotelitem/TaobaoXhotelEntityConfigAPIRequest.go new file mode 100644 index 0000000000..f2a54c9435 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelEntityConfigAPIRequest.go @@ -0,0 +1,108 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪商品各实体通用配置 API请求 +taobao.xhotel.entity.config + +飞猪商品各实体通用配置服务 +*/ +type TaobaoXhotelEntityConfigAPIRequest struct { + model.Params + // 实体编码,例如酒店编码,房价编码 + _entityCode string + // 格式为:[{"invoice_status":"1"},{"invoice_has":"1"},{"invoice_canvat":"1"},{"invoice_provider":"2"},{"invoice_channel":"1"},{"invoice_payer":"1"},{"invoice_type":"1,2,3"},{"invoice_desc":"测试发票描叙123"}] key-value形式的配置信息其中invoice_status为发票状态,取值为0(无效),1(有效);invoice_has是否能开发票,1(能),0(不能);invoice_canvat是否能提供增值税专用发票1(能),0(不能);invoice_provider发票提供方1(酒店提供),2(卖家邮寄);invoice_channel开票渠道,目前仅支持1(线下开具);invoice_payer邮费承担方,1(卖家承担),2(买家承担-邮费到付);invoice_type开票类型 1(代订房费),2(旅游费) 3(差旅费) 4(卖家提供Email版收据) 如果多个请以英文逗号隔开,例如1,2,3。invoice_desc发票补充说明,如果没有可以填写无,长度不要超过20字符。该接口是全量更新的形式,每次更新必须要携带这些节点信息,如果想失效掉该rp上的发票信息,那么可以将invoice_status设置为0。 + _configData string + // 默认是taobao。和酒店,房型等实体上的vendor保持一致。 + _vendor string + // 实体id,例如酒店id,房型id(飞猪平台的id),rpid等,目前仅支持rpid + _entityId int64 + // 实体类型:1:卖家维度,2:酒店维度,3:房型维度,4:宝贝维度,5:rp维度。请注意目前仅支持类型5 + _type int64 +} + +// 初始化TaobaoXhotelEntityConfigAPIRequest对象 +func NewTaobaoXhotelEntityConfigRequest() *TaobaoXhotelEntityConfigAPIRequest{ + return &TaobaoXhotelEntityConfigAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelEntityConfigAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.entity.config" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelEntityConfigAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// EntityCode Setter +// 实体编码,例如酒店编码,房价编码 +func (r *TaobaoXhotelEntityConfigAPIRequest) SetEntityCode(_entityCode string) error { + r._entityCode = _entityCode + r.Set("entity_code", _entityCode) + return nil +} + +// EntityCode Getter +func (r TaobaoXhotelEntityConfigAPIRequest) GetEntityCode() string { + return r._entityCode +} +// ConfigData Setter +// 格式为:[{"invoice_status":"1"},{"invoice_has":"1"},{"invoice_canvat":"1"},{"invoice_provider":"2"},{"invoice_channel":"1"},{"invoice_payer":"1"},{"invoice_type":"1,2,3"},{"invoice_desc":"测试发票描叙123"}] key-value形式的配置信息其中invoice_status为发票状态,取值为0(无效),1(有效);invoice_has是否能开发票,1(能),0(不能);invoice_canvat是否能提供增值税专用发票1(能),0(不能);invoice_provider发票提供方1(酒店提供),2(卖家邮寄);invoice_channel开票渠道,目前仅支持1(线下开具);invoice_payer邮费承担方,1(卖家承担),2(买家承担-邮费到付);invoice_type开票类型 1(代订房费),2(旅游费) 3(差旅费) 4(卖家提供Email版收据) 如果多个请以英文逗号隔开,例如1,2,3。invoice_desc发票补充说明,如果没有可以填写无,长度不要超过20字符。该接口是全量更新的形式,每次更新必须要携带这些节点信息,如果想失效掉该rp上的发票信息,那么可以将invoice_status设置为0。 +func (r *TaobaoXhotelEntityConfigAPIRequest) SetConfigData(_configData string) error { + r._configData = _configData + r.Set("config_data", _configData) + return nil +} + +// ConfigData Getter +func (r TaobaoXhotelEntityConfigAPIRequest) GetConfigData() string { + return r._configData +} +// Vendor Setter +// 默认是taobao。和酒店,房型等实体上的vendor保持一致。 +func (r *TaobaoXhotelEntityConfigAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelEntityConfigAPIRequest) GetVendor() string { + return r._vendor +} +// EntityId Setter +// 实体id,例如酒店id,房型id(飞猪平台的id),rpid等,目前仅支持rpid +func (r *TaobaoXhotelEntityConfigAPIRequest) SetEntityId(_entityId int64) error { + r._entityId = _entityId + r.Set("entity_id", _entityId) + return nil +} + +// EntityId Getter +func (r TaobaoXhotelEntityConfigAPIRequest) GetEntityId() int64 { + return r._entityId +} +// Type Setter +// 实体类型:1:卖家维度,2:酒店维度,3:房型维度,4:宝贝维度,5:rp维度。请注意目前仅支持类型5 +func (r *TaobaoXhotelEntityConfigAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoXhotelEntityConfigAPIRequest) GetType() int64 { + return r._type +} diff --git a/model/xhotelitem/TaobaoXhotelEntityConfigAPIResponse.go b/model/xhotelitem/TaobaoXhotelEntityConfigAPIResponse.go new file mode 100644 index 0000000000..dbb91ce3fd --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelEntityConfigAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪商品各实体通用配置 API返回值 +taobao.xhotel.entity.config + +飞猪商品各实体通用配置服务 +*/ +type TaobaoXhotelEntityConfigAPIResponse struct { + model.CommonResponse + TaobaoXhotelEntityConfigAPIResponseModel +} + +// 飞猪商品各实体通用配置 成功返回结果 +type TaobaoXhotelEntityConfigAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_entity_config_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请勿关注该值 + Result int64 `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelEntityConfigResponse.go b/model/xhotelitem/TaobaoXhotelEntityConfigResponse.go deleted file mode 100644 index 713e468e3f..0000000000 --- a/model/xhotelitem/TaobaoXhotelEntityConfigResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -飞猪商品各实体通用配置 API返回值 -taobao.xhotel.entity.config - -飞猪商品各实体通用配置服务 -*/ -type TaobaoXhotelEntityConfigAPIResponse struct { - model.CommonResponse - TaobaoXhotelEntityConfigResponse -} - -// 飞猪商品各实体通用配置 成功返回结果 -type TaobaoXhotelEntityConfigResponse struct { - XMLName xml.Name `xml:"xhotel_entity_config_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请勿关注该值 - Result int64 `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelGetAPIRequest.go b/model/xhotelitem/TaobaoXhotelGetAPIRequest.go new file mode 100644 index 0000000000..dd8e06343f --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelGetAPIRequest.go @@ -0,0 +1,94 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店查询接口 API请求 +taobao.xhotel.get + +酒店查询接口 +*/ +type TaobaoXhotelGetAPIRequest struct { + model.Params + // 废弃,请使用outer_id + _hid int64 + // 卖家系统中的酒店ID。 + _outerId string + // 系统商,一般不用填写,使用须申请 + _vendor string + // 是否需要在售状态(默认false不需要) + _needSaleInfo bool +} + +// 初始化TaobaoXhotelGetAPIRequest对象 +func NewTaobaoXhotelGetRequest() *TaobaoXhotelGetAPIRequest{ + return &TaobaoXhotelGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelGetAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Hid Setter +// 废弃,请使用outer_id +func (r *TaobaoXhotelGetAPIRequest) SetHid(_hid int64) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r TaobaoXhotelGetAPIRequest) GetHid() int64 { + return r._hid +} +// OuterId Setter +// 卖家系统中的酒店ID。 +func (r *TaobaoXhotelGetAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoXhotelGetAPIRequest) GetOuterId() string { + return r._outerId +} +// Vendor Setter +// 系统商,一般不用填写,使用须申请 +func (r *TaobaoXhotelGetAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelGetAPIRequest) GetVendor() string { + return r._vendor +} +// NeedSaleInfo Setter +// 是否需要在售状态(默认false不需要) +func (r *TaobaoXhotelGetAPIRequest) SetNeedSaleInfo(_needSaleInfo bool) error { + r._needSaleInfo = _needSaleInfo + r.Set("need_sale_info", _needSaleInfo) + return nil +} + +// NeedSaleInfo Getter +func (r TaobaoXhotelGetAPIRequest) GetNeedSaleInfo() bool { + return r._needSaleInfo +} diff --git a/model/xhotelitem/TaobaoXhotelGetAPIResponse.go b/model/xhotelitem/TaobaoXhotelGetAPIResponse.go new file mode 100644 index 0000000000..3e90f56f9e --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelGetAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店查询接口 API返回值 +taobao.xhotel.get + +酒店查询接口 +*/ +type TaobaoXhotelGetAPIResponse struct { + model.CommonResponse + TaobaoXhotelGetAPIResponseModel +} + +// 酒店查询接口 成功返回结果 +type TaobaoXhotelGetAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询得到的hotel + Xhotel *FirstResult `json:"xhotel,omitempty" xml:"xhotel,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelGetEntityByTagAPIRequest.go b/model/xhotelitem/TaobaoXhotelGetEntityByTagAPIRequest.go new file mode 100644 index 0000000000..3831b2b007 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelGetEntityByTagAPIRequest.go @@ -0,0 +1,66 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据标签查询实体 API请求 +taobao.xhotel.get.entity.by.tag + +根据标签查询实体 +*/ +type TaobaoXhotelGetEntityByTagAPIRequest struct { + model.Params + // 标签 + _tag int64 + // 查询token,填入上一页查询的返回结果,只能按顺序单线程查询 + _tokenStr string +} + +// 初始化TaobaoXhotelGetEntityByTagAPIRequest对象 +func NewTaobaoXhotelGetEntityByTagRequest() *TaobaoXhotelGetEntityByTagAPIRequest{ + return &TaobaoXhotelGetEntityByTagAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelGetEntityByTagAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.get.entity.by.tag" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelGetEntityByTagAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tag Setter +// 标签 +func (r *TaobaoXhotelGetEntityByTagAPIRequest) SetTag(_tag int64) error { + r._tag = _tag + r.Set("tag", _tag) + return nil +} + +// Tag Getter +func (r TaobaoXhotelGetEntityByTagAPIRequest) GetTag() int64 { + return r._tag +} +// TokenStr Setter +// 查询token,填入上一页查询的返回结果,只能按顺序单线程查询 +func (r *TaobaoXhotelGetEntityByTagAPIRequest) SetTokenStr(_tokenStr string) error { + r._tokenStr = _tokenStr + r.Set("token_str", _tokenStr) + return nil +} + +// TokenStr Getter +func (r TaobaoXhotelGetEntityByTagAPIRequest) GetTokenStr() string { + return r._tokenStr +} diff --git a/model/xhotelitem/TaobaoXhotelGetEntityByTagAPIResponse.go b/model/xhotelitem/TaobaoXhotelGetEntityByTagAPIResponse.go new file mode 100644 index 0000000000..d580dbbc1e --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelGetEntityByTagAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据标签查询实体 API返回值 +taobao.xhotel.get.entity.by.tag + +根据标签查询实体 +*/ +type TaobaoXhotelGetEntityByTagAPIResponse struct { + model.CommonResponse + TaobaoXhotelGetEntityByTagAPIResponseModel +} + +// 根据标签查询实体 成功返回结果 +type TaobaoXhotelGetEntityByTagAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_get_entity_by_tag_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参 + TagQueryResult *TagQueryResult `json:"tag_query_result,omitempty" xml:"tag_query_result,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelGetEntityByTagResponse.go b/model/xhotelitem/TaobaoXhotelGetEntityByTagResponse.go deleted file mode 100644 index de2cd84363..0000000000 --- a/model/xhotelitem/TaobaoXhotelGetEntityByTagResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据标签查询实体 API返回值 -taobao.xhotel.get.entity.by.tag - -根据标签查询实体 -*/ -type TaobaoXhotelGetEntityByTagAPIResponse struct { - model.CommonResponse - TaobaoXhotelGetEntityByTagResponse -} - -// 根据标签查询实体 成功返回结果 -type TaobaoXhotelGetEntityByTagResponse struct { - XMLName xml.Name `xml:"xhotel_get_entity_by_tag_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参 - TagQueryResult *TagQueryResult `json:"tag_query_result,omitempty" xml:"tag_query_result,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelGetResponse.go b/model/xhotelitem/TaobaoXhotelGetResponse.go deleted file mode 100644 index 07db8fbd2b..0000000000 --- a/model/xhotelitem/TaobaoXhotelGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店查询接口 API返回值 -taobao.xhotel.get - -酒店查询接口 -*/ -type TaobaoXhotelGetAPIResponse struct { - model.CommonResponse - TaobaoXhotelGetResponse -} - -// 酒店查询接口 成功返回结果 -type TaobaoXhotelGetResponse struct { - XMLName xml.Name `xml:"xhotel_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询得到的hotel - Xhotel *FirstResult `json:"xhotel,omitempty" xml:"xhotel,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelHouseAddAPIRequest.go b/model/xhotelitem/TaobaoXhotelHouseAddAPIRequest.go new file mode 100644 index 0000000000..3ca1ec71ec --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelHouseAddAPIRequest.go @@ -0,0 +1,598 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +非标准民宿房源添加 API请求 +taobao.xhotel.house.add + +添加酒店或更新酒店 +*/ +type TaobaoXhotelHouseAddAPIRequest struct { + model.Params + // 外部酒店ID, 这是卖家自己系统中的ID + _outerId string + // 酒店名称 + _name string + // 酒店曾用名 + _usedName string + // 是否国内酒店。0:国内;1:国外。默认是国内 + _domestic int64 + // domestic为0时,固定China; domestic为1时,必须传定义的海外国家编码值。参见:http://hotel.alitrip.com/area.htm + _country string + // 省份编码。选填,不填入的时候已city字段为准.参见:http://hotel.alitrip.com/area.htm,domestic为false时默认为0 + _province int64 + // 城市编码。参见:http://hotel.alitrip.com/area.htm,domestic为false时,输入对应国家的海外城市编码,可调用海外城市查询接口获取;(更新酒店时为可选) + _city int64 + // 区域(县级市)编码。参见:http://hotel.alitrip.com/area.htm + _district int64 + // 商业区(圈)长度不超过20字 + _business string + // 酒店地址。长度不能超过120。不填入会导致不能自动匹配,此地址为下单前展示给用户地址 + _address string + // 经度 + _longitude string + // 纬度 + _latitude string + // 坐标类型,现在支持:G – GoogleB – 百度A – 高德M – MapbarL – 灵图 + _positionType string + // 酒店电话。格式:国家代码(最长6位)#区号(最长4位)#电话(最长20位)。国家代码提示:中国大陆0086、香港00852、澳门00853、台湾00886 + _tel string + // 扩展信息的JSON。注:此字段的值需要ISV在接入前与淘宝沟通,且确认能解析 + _extend string + // 该字段只有确定的时候,才允许填入。用于标示和淘宝酒店的匹配关系。目前尚未启动该字段。 + _shid int64 + // 对接系统商名称:可为空不要乱填,需要申请后使用 + _vendor string + // 酒店档次,星级。取值范围为1,1.5,2,2.5,3,3.5,4,4.5,5 + _star string + // 开业时间,格式为2015-01-01 + _openingTime string + // 装修时间,格式为2015-01-01装修时间 + _decorateTime string + // 楼层信息。 + _floors string + // 房间数 0~9999之内的数字 + _rooms int64 + // 酒店描述 + _description string + // 酒店入住政策,{"10003":"仅2岁以上儿童可随同入住"},key取值参见 https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.vSVPks&docType=1&articleId=108416&previewCode=987A11324A278EF679E24102BA30D426 中type=10、code=10003,value为文字描述 + _hotelPolicies string + // 酒店设施。json格式示例值:{"24152":true,"24149":true,"24150":true},key取值参见 https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.vSVPks&docType=1&articleId=108416&previewCode=987A11324A278EF679E24102BA30D426 中type=20的分类 + _hotelFacilities string + // 酒店服务。json格式示例值:{"24058":"可以接待外宾","24198":"叫醒服务","24200":"洗衣服务"},key-24101为属性编码,value-为"true"时表示有该属性,为文字时表示具体描述,key取值参见 https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.vSVPks&docType=1&articleId=108416&previewCode=987A11324A278EF679E24102BA30D426 中type=40的分类 + _service string + // 房间设施。json格式示例值:{"24101": true,"24091": true,"24095": true},key-24101为属性编码,value-为"true"时表示有该属性,为文字时表示具体描述,key取值参见 https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.vSVPks&docType=1&articleId=108416&previewCode=987A11324A278EF679E24102BA30D426 中type=40的分类 + _roomFacilities string + // 酒店图片只支持远程图片,格式如下:[{"url":"http://123.jpg","ismain":"false","type":"大堂","attribute":"普通图"},{"url":"http://456.jpg","ismain":"true","type":"公共区域","attribute":"全景图"},{"url":"http://789.jpg","ismain":"false","type":"大堂","attribute":"普通图"}] 其中url是远程图片的访问地址(URL地址必须是合法的,否则会报错),main是是否为主图(主图只能有一个,如果有多个或者没有,则会报错),attribute表示图片属性,取值范围只能是:[普通图, 平面图, 全景图] ,type表示图片类型,取值范围只能是:[周边, 外观, 商务中心, 健身房, 其他, 会议室, 餐厅, 浴室, 客房, 公共区域, 娱乐设施, 大堂, 泳池],图片数量最多是能是10张。 + _pics string + // 酒店品牌。取值为数字。枚举如下(只给出top30,如果不满足,请联系去啊接口人): ruJia("1", "rujiakuaijie", "如家快捷", 1), qiTian("2", "7 days", "7天连锁", 1), hanTing("3", "Hanting Inns & Hotels", "汉庭酒店", 1), geLinHaoTai("4", "Green Tree Inn", "格林豪泰", 1), jinJiang("5", "Jinjiang Inn", "锦江之星", 1), su8("6", "Super 8", "速8", 1), moTai("7", "Motel", "莫泰", 1), zhouji("8", "InterContinental", "洲际", 4), budint("9", "Pod Inn", "布丁", 1), jiuJiu("10", "jiujiuliansuo", "99连锁", 1), piaoHome("11", "Piao Home Inn", "飘HOME", 1), juzi("12", "Orange Hotels", "桔子酒店", 1), yibai("13", "yibai", "易佰", 1), weiyena("14","weiyena","维也纳",2), huangguanjiari("15", "huangguanjiari", "皇冠假日", 4), xidawu("16", "xidawu", "喜达屋", 3), chengshiBJ("17", "chengshibianjie", "城市便捷", 1), shagnKeYou("18", "shagnkeyou", "尚客优", 1), jinjiang("19", "jinjiang", "锦江酒店", 3), wendemu("20", "Hawthorn Suites", "温德姆", 4), yibisi("21", "Ibis Hotels", "宜必思", 1), wanhao("22", "JM Hoteles", "万豪", 4), yijia365("23", "yijia365", "驿家365", 1), shoulv("24", "shoulvjituan", "首旅建国", 3), kaiyuan("25", "New Century Hotel", "开元大酒店", 4), yagao("26", "yagao", "雅高", 3), daisi("27", "daisi", "戴斯", 3), jinling("28", "jinlingliansuo", "金陵", 4), xianggelila("29", "Shangri-La City Hotels", "香格里拉", 4), xierdun("30", "Hilton", "希尔顿", 4), + _brand string + // 邮政编码。 + _postalCode string + // 预订须知。json格式,示例:{"10001":"14:00","10002":"12:00","10005":"清洁福50元","10006":"请准备好您的身份证件,我需要登记 不允许吸烟"},预订须知,key取值参见 https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.vSVPks&docType=1&articleId=108416&previewCode=987A11324A278EF679E24102BA30D426 中type=10的分类 + _bookingNotice string + // 逗号分隔的字符串 1visa;2万事达卡;3美国运通卡;4发现卡;5大来卡;6JCB卡;7银联卡 + _creditCardTypes string + // 扩展信息的JSON。 orbitTrack 业务字段是指从飞猪到酒店说经过平台名以及方式的一个数组,按顺序,从飞猪,再经过若干平台,最后到酒店, platform是指定当前平台名,ways 是指通过哪种方式到该平台 其中,飞猪到下一个平台里, ways 字段只能是【直连】、【人工】两个方式之一; 从最后一个平台到酒店的ways字段只能是【电话】、【传真】、【人工】、【系统】之一; 第一个 飞猪平台 和 最后具体酒店是至少得填的 + _orbitTrack string + // 卖家酒店英文名称 + _nameE string + // 供应商标识,需要提前开通权限,如果需要对接请联系技术支持,请谨慎使用 + _supplier string + // 结算过程中的结算币种符合,如需对接请联系飞猪技术支持,请谨慎使用 + _settlementCurrency string + // 房东信息,{"outerId: 外部房东ID,": "xxxx", "nickName": "张三", "avatarUrl": "http://test.com/1.jpg", "telephone": "0571-1234567", "mobilePhone": "12334567678", "email":"test@test.com", "gender": "F", "avgConfirmTime": 30, "responseRate": 100, "description": "房东太懒,什么也没有填", "birthday":"2018-01-01", "qualifacation": 1, "bloodType": 1, "profession":"交互设计师", "country":"CN", "province":"420000", "city":"421200", "real_name_status": true, "validate":"1,2,4,8","confirmRate": 98} JSON字段描述: outerId: 商家房东ID, nickName: 房东昵称, avatarUrl: 房东头像地址, telephone: 固定电话, mobilePhone: 移动电话, email: 邮箱地址, gender: 性别 M男性, F女性, avgConfirmTime: 平均确认时间, 单位分钟, responseRate: 房东回复率, description: 房东介绍, birthday:生日,格式yyyy-MM-dd, qualifacation:学历,1:小学,2:初中,3:高中,4:本科,5:硕士,6:博士,7:博士后,0:其他, profession: 职业 country: 国家code province: 省code city: 城市code realNameStatus: 实名认证状态, true已认证 validate: 认证情况:1:身份验证,2:头像验证,4:手机验证,8:邮箱验证,二进制各位代表含义, bloodType: 血型: 0未知,1:A型,2:B型,3:AB型,4:O型;confirmRate: 订单接单率,0-100 + _ownerInfo string + // 描述信息,inside: 内部描述,traffic:交通情况,arround:周边情况 + _arroundDesc string + // 用户下单之后展示的详细地址 + _realAddress string + // 数据状态 0:正常,-1:删除,-2:停售 + _status int64 +} + +// 初始化TaobaoXhotelHouseAddAPIRequest对象 +func NewTaobaoXhotelHouseAddRequest() *TaobaoXhotelHouseAddAPIRequest{ + return &TaobaoXhotelHouseAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelHouseAddAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.house.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelHouseAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterId Setter +// 外部酒店ID, 这是卖家自己系统中的ID +func (r *TaobaoXhotelHouseAddAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetOuterId() string { + return r._outerId +} +// Name Setter +// 酒店名称 +func (r *TaobaoXhotelHouseAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetName() string { + return r._name +} +// UsedName Setter +// 酒店曾用名 +func (r *TaobaoXhotelHouseAddAPIRequest) SetUsedName(_usedName string) error { + r._usedName = _usedName + r.Set("used_name", _usedName) + return nil +} + +// UsedName Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetUsedName() string { + return r._usedName +} +// Domestic Setter +// 是否国内酒店。0:国内;1:国外。默认是国内 +func (r *TaobaoXhotelHouseAddAPIRequest) SetDomestic(_domestic int64) error { + r._domestic = _domestic + r.Set("domestic", _domestic) + return nil +} + +// Domestic Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetDomestic() int64 { + return r._domestic +} +// Country Setter +// domestic为0时,固定China; domestic为1时,必须传定义的海外国家编码值。参见:http://hotel.alitrip.com/area.htm +func (r *TaobaoXhotelHouseAddAPIRequest) SetCountry(_country string) error { + r._country = _country + r.Set("country", _country) + return nil +} + +// Country Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetCountry() string { + return r._country +} +// Province Setter +// 省份编码。选填,不填入的时候已city字段为准.参见:http://hotel.alitrip.com/area.htm,domestic为false时默认为0 +func (r *TaobaoXhotelHouseAddAPIRequest) SetProvince(_province int64) error { + r._province = _province + r.Set("province", _province) + return nil +} + +// Province Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetProvince() int64 { + return r._province +} +// City Setter +// 城市编码。参见:http://hotel.alitrip.com/area.htm,domestic为false时,输入对应国家的海外城市编码,可调用海外城市查询接口获取;(更新酒店时为可选) +func (r *TaobaoXhotelHouseAddAPIRequest) SetCity(_city int64) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetCity() int64 { + return r._city +} +// District Setter +// 区域(县级市)编码。参见:http://hotel.alitrip.com/area.htm +func (r *TaobaoXhotelHouseAddAPIRequest) SetDistrict(_district int64) error { + r._district = _district + r.Set("district", _district) + return nil +} + +// District Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetDistrict() int64 { + return r._district +} +// Business Setter +// 商业区(圈)长度不超过20字 +func (r *TaobaoXhotelHouseAddAPIRequest) SetBusiness(_business string) error { + r._business = _business + r.Set("business", _business) + return nil +} + +// Business Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetBusiness() string { + return r._business +} +// Address Setter +// 酒店地址。长度不能超过120。不填入会导致不能自动匹配,此地址为下单前展示给用户地址 +func (r *TaobaoXhotelHouseAddAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetAddress() string { + return r._address +} +// Longitude Setter +// 经度 +func (r *TaobaoXhotelHouseAddAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetLongitude() string { + return r._longitude +} +// Latitude Setter +// 纬度 +func (r *TaobaoXhotelHouseAddAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetLatitude() string { + return r._latitude +} +// PositionType Setter +// 坐标类型,现在支持:G – GoogleB – 百度A – 高德M – MapbarL – 灵图 +func (r *TaobaoXhotelHouseAddAPIRequest) SetPositionType(_positionType string) error { + r._positionType = _positionType + r.Set("position_type", _positionType) + return nil +} + +// PositionType Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetPositionType() string { + return r._positionType +} +// Tel Setter +// 酒店电话。格式:国家代码(最长6位)#区号(最长4位)#电话(最长20位)。国家代码提示:中国大陆0086、香港00852、澳门00853、台湾00886 +func (r *TaobaoXhotelHouseAddAPIRequest) SetTel(_tel string) error { + r._tel = _tel + r.Set("tel", _tel) + return nil +} + +// Tel Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetTel() string { + return r._tel +} +// Extend Setter +// 扩展信息的JSON。注:此字段的值需要ISV在接入前与淘宝沟通,且确认能解析 +func (r *TaobaoXhotelHouseAddAPIRequest) SetExtend(_extend string) error { + r._extend = _extend + r.Set("extend", _extend) + return nil +} + +// Extend Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetExtend() string { + return r._extend +} +// Shid Setter +// 该字段只有确定的时候,才允许填入。用于标示和淘宝酒店的匹配关系。目前尚未启动该字段。 +func (r *TaobaoXhotelHouseAddAPIRequest) SetShid(_shid int64) error { + r._shid = _shid + r.Set("shid", _shid) + return nil +} + +// Shid Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetShid() int64 { + return r._shid +} +// Vendor Setter +// 对接系统商名称:可为空不要乱填,需要申请后使用 +func (r *TaobaoXhotelHouseAddAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetVendor() string { + return r._vendor +} +// Star Setter +// 酒店档次,星级。取值范围为1,1.5,2,2.5,3,3.5,4,4.5,5 +func (r *TaobaoXhotelHouseAddAPIRequest) SetStar(_star string) error { + r._star = _star + r.Set("star", _star) + return nil +} + +// Star Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetStar() string { + return r._star +} +// OpeningTime Setter +// 开业时间,格式为2015-01-01 +func (r *TaobaoXhotelHouseAddAPIRequest) SetOpeningTime(_openingTime string) error { + r._openingTime = _openingTime + r.Set("opening_time", _openingTime) + return nil +} + +// OpeningTime Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetOpeningTime() string { + return r._openingTime +} +// DecorateTime Setter +// 装修时间,格式为2015-01-01装修时间 +func (r *TaobaoXhotelHouseAddAPIRequest) SetDecorateTime(_decorateTime string) error { + r._decorateTime = _decorateTime + r.Set("decorate_time", _decorateTime) + return nil +} + +// DecorateTime Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetDecorateTime() string { + return r._decorateTime +} +// Floors Setter +// 楼层信息。 +func (r *TaobaoXhotelHouseAddAPIRequest) SetFloors(_floors string) error { + r._floors = _floors + r.Set("floors", _floors) + return nil +} + +// Floors Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetFloors() string { + return r._floors +} +// Rooms Setter +// 房间数 0~9999之内的数字 +func (r *TaobaoXhotelHouseAddAPIRequest) SetRooms(_rooms int64) error { + r._rooms = _rooms + r.Set("rooms", _rooms) + return nil +} + +// Rooms Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetRooms() int64 { + return r._rooms +} +// Description Setter +// 酒店描述 +func (r *TaobaoXhotelHouseAddAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetDescription() string { + return r._description +} +// HotelPolicies Setter +// 酒店入住政策,{"10003":"仅2岁以上儿童可随同入住"},key取值参见 https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.vSVPks&docType=1&articleId=108416&previewCode=987A11324A278EF679E24102BA30D426 中type=10、code=10003,value为文字描述 +func (r *TaobaoXhotelHouseAddAPIRequest) SetHotelPolicies(_hotelPolicies string) error { + r._hotelPolicies = _hotelPolicies + r.Set("hotel_policies", _hotelPolicies) + return nil +} + +// HotelPolicies Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetHotelPolicies() string { + return r._hotelPolicies +} +// HotelFacilities Setter +// 酒店设施。json格式示例值:{"24152":true,"24149":true,"24150":true},key取值参见 https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.vSVPks&docType=1&articleId=108416&previewCode=987A11324A278EF679E24102BA30D426 中type=20的分类 +func (r *TaobaoXhotelHouseAddAPIRequest) SetHotelFacilities(_hotelFacilities string) error { + r._hotelFacilities = _hotelFacilities + r.Set("hotel_facilities", _hotelFacilities) + return nil +} + +// HotelFacilities Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetHotelFacilities() string { + return r._hotelFacilities +} +// Service Setter +// 酒店服务。json格式示例值:{"24058":"可以接待外宾","24198":"叫醒服务","24200":"洗衣服务"},key-24101为属性编码,value-为"true"时表示有该属性,为文字时表示具体描述,key取值参见 https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.vSVPks&docType=1&articleId=108416&previewCode=987A11324A278EF679E24102BA30D426 中type=40的分类 +func (r *TaobaoXhotelHouseAddAPIRequest) SetService(_service string) error { + r._service = _service + r.Set("service", _service) + return nil +} + +// Service Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetService() string { + return r._service +} +// RoomFacilities Setter +// 房间设施。json格式示例值:{"24101": true,"24091": true,"24095": true},key-24101为属性编码,value-为"true"时表示有该属性,为文字时表示具体描述,key取值参见 https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.vSVPks&docType=1&articleId=108416&previewCode=987A11324A278EF679E24102BA30D426 中type=40的分类 +func (r *TaobaoXhotelHouseAddAPIRequest) SetRoomFacilities(_roomFacilities string) error { + r._roomFacilities = _roomFacilities + r.Set("room_facilities", _roomFacilities) + return nil +} + +// RoomFacilities Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetRoomFacilities() string { + return r._roomFacilities +} +// Pics Setter +// 酒店图片只支持远程图片,格式如下:[{"url":"http://123.jpg","ismain":"false","type":"大堂","attribute":"普通图"},{"url":"http://456.jpg","ismain":"true","type":"公共区域","attribute":"全景图"},{"url":"http://789.jpg","ismain":"false","type":"大堂","attribute":"普通图"}] 其中url是远程图片的访问地址(URL地址必须是合法的,否则会报错),main是是否为主图(主图只能有一个,如果有多个或者没有,则会报错),attribute表示图片属性,取值范围只能是:[普通图, 平面图, 全景图] ,type表示图片类型,取值范围只能是:[周边, 外观, 商务中心, 健身房, 其他, 会议室, 餐厅, 浴室, 客房, 公共区域, 娱乐设施, 大堂, 泳池],图片数量最多是能是10张。 +func (r *TaobaoXhotelHouseAddAPIRequest) SetPics(_pics string) error { + r._pics = _pics + r.Set("pics", _pics) + return nil +} + +// Pics Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetPics() string { + return r._pics +} +// Brand Setter +// 酒店品牌。取值为数字。枚举如下(只给出top30,如果不满足,请联系去啊接口人): ruJia("1", "rujiakuaijie", "如家快捷", 1), qiTian("2", "7 days", "7天连锁", 1), hanTing("3", "Hanting Inns & Hotels", "汉庭酒店", 1), geLinHaoTai("4", "Green Tree Inn", "格林豪泰", 1), jinJiang("5", "Jinjiang Inn", "锦江之星", 1), su8("6", "Super 8", "速8", 1), moTai("7", "Motel", "莫泰", 1), zhouji("8", "InterContinental", "洲际", 4), budint("9", "Pod Inn", "布丁", 1), jiuJiu("10", "jiujiuliansuo", "99连锁", 1), piaoHome("11", "Piao Home Inn", "飘HOME", 1), juzi("12", "Orange Hotels", "桔子酒店", 1), yibai("13", "yibai", "易佰", 1), weiyena("14","weiyena","维也纳",2), huangguanjiari("15", "huangguanjiari", "皇冠假日", 4), xidawu("16", "xidawu", "喜达屋", 3), chengshiBJ("17", "chengshibianjie", "城市便捷", 1), shagnKeYou("18", "shagnkeyou", "尚客优", 1), jinjiang("19", "jinjiang", "锦江酒店", 3), wendemu("20", "Hawthorn Suites", "温德姆", 4), yibisi("21", "Ibis Hotels", "宜必思", 1), wanhao("22", "JM Hoteles", "万豪", 4), yijia365("23", "yijia365", "驿家365", 1), shoulv("24", "shoulvjituan", "首旅建国", 3), kaiyuan("25", "New Century Hotel", "开元大酒店", 4), yagao("26", "yagao", "雅高", 3), daisi("27", "daisi", "戴斯", 3), jinling("28", "jinlingliansuo", "金陵", 4), xianggelila("29", "Shangri-La City Hotels", "香格里拉", 4), xierdun("30", "Hilton", "希尔顿", 4), +func (r *TaobaoXhotelHouseAddAPIRequest) SetBrand(_brand string) error { + r._brand = _brand + r.Set("brand", _brand) + return nil +} + +// Brand Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetBrand() string { + return r._brand +} +// PostalCode Setter +// 邮政编码。 +func (r *TaobaoXhotelHouseAddAPIRequest) SetPostalCode(_postalCode string) error { + r._postalCode = _postalCode + r.Set("postal_code", _postalCode) + return nil +} + +// PostalCode Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetPostalCode() string { + return r._postalCode +} +// BookingNotice Setter +// 预订须知。json格式,示例:{"10001":"14:00","10002":"12:00","10005":"清洁福50元","10006":"请准备好您的身份证件,我需要登记 不允许吸烟"},预订须知,key取值参见 https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.vSVPks&docType=1&articleId=108416&previewCode=987A11324A278EF679E24102BA30D426 中type=10的分类 +func (r *TaobaoXhotelHouseAddAPIRequest) SetBookingNotice(_bookingNotice string) error { + r._bookingNotice = _bookingNotice + r.Set("booking_notice", _bookingNotice) + return nil +} + +// BookingNotice Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetBookingNotice() string { + return r._bookingNotice +} +// CreditCardTypes Setter +// 逗号分隔的字符串 1visa;2万事达卡;3美国运通卡;4发现卡;5大来卡;6JCB卡;7银联卡 +func (r *TaobaoXhotelHouseAddAPIRequest) SetCreditCardTypes(_creditCardTypes string) error { + r._creditCardTypes = _creditCardTypes + r.Set("credit_card_types", _creditCardTypes) + return nil +} + +// CreditCardTypes Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetCreditCardTypes() string { + return r._creditCardTypes +} +// OrbitTrack Setter +// 扩展信息的JSON。 orbitTrack 业务字段是指从飞猪到酒店说经过平台名以及方式的一个数组,按顺序,从飞猪,再经过若干平台,最后到酒店, platform是指定当前平台名,ways 是指通过哪种方式到该平台 其中,飞猪到下一个平台里, ways 字段只能是【直连】、【人工】两个方式之一; 从最后一个平台到酒店的ways字段只能是【电话】、【传真】、【人工】、【系统】之一; 第一个 飞猪平台 和 最后具体酒店是至少得填的 +func (r *TaobaoXhotelHouseAddAPIRequest) SetOrbitTrack(_orbitTrack string) error { + r._orbitTrack = _orbitTrack + r.Set("orbit_track", _orbitTrack) + return nil +} + +// OrbitTrack Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetOrbitTrack() string { + return r._orbitTrack +} +// NameE Setter +// 卖家酒店英文名称 +func (r *TaobaoXhotelHouseAddAPIRequest) SetNameE(_nameE string) error { + r._nameE = _nameE + r.Set("name_e", _nameE) + return nil +} + +// NameE Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetNameE() string { + return r._nameE +} +// Supplier Setter +// 供应商标识,需要提前开通权限,如果需要对接请联系技术支持,请谨慎使用 +func (r *TaobaoXhotelHouseAddAPIRequest) SetSupplier(_supplier string) error { + r._supplier = _supplier + r.Set("supplier", _supplier) + return nil +} + +// Supplier Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetSupplier() string { + return r._supplier +} +// SettlementCurrency Setter +// 结算过程中的结算币种符合,如需对接请联系飞猪技术支持,请谨慎使用 +func (r *TaobaoXhotelHouseAddAPIRequest) SetSettlementCurrency(_settlementCurrency string) error { + r._settlementCurrency = _settlementCurrency + r.Set("settlement_currency", _settlementCurrency) + return nil +} + +// SettlementCurrency Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetSettlementCurrency() string { + return r._settlementCurrency +} +// OwnerInfo Setter +// 房东信息,{"outerId: 外部房东ID,": "xxxx", "nickName": "张三", "avatarUrl": "http://test.com/1.jpg", "telephone": "0571-1234567", "mobilePhone": "12334567678", "email":"test@test.com", "gender": "F", "avgConfirmTime": 30, "responseRate": 100, "description": "房东太懒,什么也没有填", "birthday":"2018-01-01", "qualifacation": 1, "bloodType": 1, "profession":"交互设计师", "country":"CN", "province":"420000", "city":"421200", "real_name_status": true, "validate":"1,2,4,8","confirmRate": 98} JSON字段描述: outerId: 商家房东ID, nickName: 房东昵称, avatarUrl: 房东头像地址, telephone: 固定电话, mobilePhone: 移动电话, email: 邮箱地址, gender: 性别 M男性, F女性, avgConfirmTime: 平均确认时间, 单位分钟, responseRate: 房东回复率, description: 房东介绍, birthday:生日,格式yyyy-MM-dd, qualifacation:学历,1:小学,2:初中,3:高中,4:本科,5:硕士,6:博士,7:博士后,0:其他, profession: 职业 country: 国家code province: 省code city: 城市code realNameStatus: 实名认证状态, true已认证 validate: 认证情况:1:身份验证,2:头像验证,4:手机验证,8:邮箱验证,二进制各位代表含义, bloodType: 血型: 0未知,1:A型,2:B型,3:AB型,4:O型;confirmRate: 订单接单率,0-100 +func (r *TaobaoXhotelHouseAddAPIRequest) SetOwnerInfo(_ownerInfo string) error { + r._ownerInfo = _ownerInfo + r.Set("owner_info", _ownerInfo) + return nil +} + +// OwnerInfo Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetOwnerInfo() string { + return r._ownerInfo +} +// ArroundDesc Setter +// 描述信息,inside: 内部描述,traffic:交通情况,arround:周边情况 +func (r *TaobaoXhotelHouseAddAPIRequest) SetArroundDesc(_arroundDesc string) error { + r._arroundDesc = _arroundDesc + r.Set("arround_desc", _arroundDesc) + return nil +} + +// ArroundDesc Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetArroundDesc() string { + return r._arroundDesc +} +// RealAddress Setter +// 用户下单之后展示的详细地址 +func (r *TaobaoXhotelHouseAddAPIRequest) SetRealAddress(_realAddress string) error { + r._realAddress = _realAddress + r.Set("real_address", _realAddress) + return nil +} + +// RealAddress Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetRealAddress() string { + return r._realAddress +} +// Status Setter +// 数据状态 0:正常,-1:删除,-2:停售 +func (r *TaobaoXhotelHouseAddAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoXhotelHouseAddAPIRequest) GetStatus() int64 { + return r._status +} diff --git a/model/xhotelitem/TaobaoXhotelHouseAddAPIResponse.go b/model/xhotelitem/TaobaoXhotelHouseAddAPIResponse.go new file mode 100644 index 0000000000..5b86cfede9 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelHouseAddAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +非标准民宿房源添加 API返回值 +taobao.xhotel.house.add + +添加酒店或更新酒店 +*/ +type TaobaoXhotelHouseAddAPIResponse struct { + model.CommonResponse + TaobaoXhotelHouseAddAPIResponseModel +} + +// 非标准民宿房源添加 成功返回结果 +type TaobaoXhotelHouseAddAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_house_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 酒店信息 + Xhotel *XHotel `json:"xhotel,omitempty" xml:"xhotel,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelHouseAddResponse.go b/model/xhotelitem/TaobaoXhotelHouseAddResponse.go deleted file mode 100644 index a02c93bd4e..0000000000 --- a/model/xhotelitem/TaobaoXhotelHouseAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -非标准民宿房源添加 API返回值 -taobao.xhotel.house.add - -添加酒店或更新酒店 -*/ -type TaobaoXhotelHouseAddAPIResponse struct { - model.CommonResponse - TaobaoXhotelHouseAddResponse -} - -// 非标准民宿房源添加 成功返回结果 -type TaobaoXhotelHouseAddResponse struct { - XMLName xml.Name `xml:"xhotel_house_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 酒店信息 - Xhotel *XHotel `json:"xhotel,omitempty" xml:"xhotel,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelHouseRoomtypeAddAPIRequest.go b/model/xhotelitem/TaobaoXhotelHouseRoomtypeAddAPIRequest.go new file mode 100644 index 0000000000..903c14560f --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelHouseRoomtypeAddAPIRequest.go @@ -0,0 +1,374 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +民宿房型信息添加 API请求 +taobao.xhotel.house.roomtype.add + +房型添加或更新 +*/ +type TaobaoXhotelHouseRoomtypeAddAPIRequest struct { + model.Params + // 卖家房型ID,不能重复建议格式是:酒店code_房型code + _outerId string + // (已废弃)请使用outHid + _hid int64 + // 房型名称。不能超过30字 + _name string + // 最大入住人数,默认2(1-99) + _maxOccupancy int64 + // 具体面积大小,请按照正确格式填写。两种格式,例如:40或者 10-20 + _area string + // 客房在建筑的第几层,隔层为1-2层,4-5层,7-8层 + _floor string + // 宽带服务。A,B,C,D。分别代表: A:无宽带,B:免费宽带,C:收费宽带,D:部分收费宽带 + _internet string + // 设施服务。JSON格式。 value值true有此服务,false没有。 bar:吧台,catv:有线电视,ddd:国内长途电话,idd:国际长途电话,toilet:独立卫生间,pubtoliet:公共卫生间。 如: {"bar":false,"catv":false,"ddd":false,"idd":false,"pubtoilet":false,"toilet":false} + _service string + // 不要使用 + _extend string + // 0:无窗/1:有窗/2:部分有窗/3:暗窗/4:部分暗窗 + _windowType int64 + // 该字段只有确定的时候,才允许填入。用于标示和淘宝房型的匹配关系。目前尚未启动该字段。 + _srid int64 + // (必传)商家酒店ID,指明该房型属于哪家酒店 + _outHid string + // 系统商,无申请不可使用 + _vendor string + // 房型图片只支持远程图片,格式如下:[{"url":"http://taobao.com/123.jpg","ismain":"true"},{"url":"http://taobao.com/456.jpg","ismain":"false"},{"url":"http://taobao.com/789.jpg","ismain":"false"}]其中url是远程图片的访问地址(URL地址必须是合法的,否则会报错),main是是否为主图。只能设置一张图片为主图。 + _pics string + // 卖家房型英文名称 + _nameE string + // 操作人信息 + _operator string + // 属性值为1: 含义是非直连房型 + _connectionType int64 + // 房屋户型, bedroom: 室, bathroom: 卫, livingroom: 厅, study: 书房, balcony: 阳台,kitchen: 厨房 + _houseModel string + // 房屋面积 + _houseSize int64 + // 出租类型:1.整租;2.单间;3.床位 + _rentType int64 + // 出租面积,单位平方米 + _rentSize int64 + // 是否和房东合住:0.不和房东合住;1.和房东合住; + _hasLandlord int64 + // 床信息: bedType:床型, desc: 床型名, width:床宽, length:床长, bedNum: 床数。床型取值见链接https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.4zBOVn&docType=1&articleId=108347 + _bedInfo string + // 数据状态 0:正常,-1:删除,-2:停售 + _status int64 +} + +// 初始化TaobaoXhotelHouseRoomtypeAddAPIRequest对象 +func NewTaobaoXhotelHouseRoomtypeAddRequest() *TaobaoXhotelHouseRoomtypeAddAPIRequest{ + return &TaobaoXhotelHouseRoomtypeAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.house.roomtype.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterId Setter +// 卖家房型ID,不能重复建议格式是:酒店code_房型code +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetOuterId() string { + return r._outerId +} +// Hid Setter +// (已废弃)请使用outHid +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetHid(_hid int64) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetHid() int64 { + return r._hid +} +// Name Setter +// 房型名称。不能超过30字 +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetName() string { + return r._name +} +// MaxOccupancy Setter +// 最大入住人数,默认2(1-99) +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetMaxOccupancy(_maxOccupancy int64) error { + r._maxOccupancy = _maxOccupancy + r.Set("max_occupancy", _maxOccupancy) + return nil +} + +// MaxOccupancy Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetMaxOccupancy() int64 { + return r._maxOccupancy +} +// Area Setter +// 具体面积大小,请按照正确格式填写。两种格式,例如:40或者 10-20 +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetArea(_area string) error { + r._area = _area + r.Set("area", _area) + return nil +} + +// Area Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetArea() string { + return r._area +} +// Floor Setter +// 客房在建筑的第几层,隔层为1-2层,4-5层,7-8层 +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetFloor(_floor string) error { + r._floor = _floor + r.Set("floor", _floor) + return nil +} + +// Floor Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetFloor() string { + return r._floor +} +// Internet Setter +// 宽带服务。A,B,C,D。分别代表: A:无宽带,B:免费宽带,C:收费宽带,D:部分收费宽带 +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetInternet(_internet string) error { + r._internet = _internet + r.Set("internet", _internet) + return nil +} + +// Internet Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetInternet() string { + return r._internet +} +// Service Setter +// 设施服务。JSON格式。 value值true有此服务,false没有。 bar:吧台,catv:有线电视,ddd:国内长途电话,idd:国际长途电话,toilet:独立卫生间,pubtoliet:公共卫生间。 如: {"bar":false,"catv":false,"ddd":false,"idd":false,"pubtoilet":false,"toilet":false} +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetService(_service string) error { + r._service = _service + r.Set("service", _service) + return nil +} + +// Service Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetService() string { + return r._service +} +// Extend Setter +// 不要使用 +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetExtend(_extend string) error { + r._extend = _extend + r.Set("extend", _extend) + return nil +} + +// Extend Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetExtend() string { + return r._extend +} +// WindowType Setter +// 0:无窗/1:有窗/2:部分有窗/3:暗窗/4:部分暗窗 +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetWindowType(_windowType int64) error { + r._windowType = _windowType + r.Set("window_type", _windowType) + return nil +} + +// WindowType Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetWindowType() int64 { + return r._windowType +} +// Srid Setter +// 该字段只有确定的时候,才允许填入。用于标示和淘宝房型的匹配关系。目前尚未启动该字段。 +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetSrid(_srid int64) error { + r._srid = _srid + r.Set("srid", _srid) + return nil +} + +// Srid Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetSrid() int64 { + return r._srid +} +// OutHid Setter +// (必传)商家酒店ID,指明该房型属于哪家酒店 +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetOutHid(_outHid string) error { + r._outHid = _outHid + r.Set("out_hid", _outHid) + return nil +} + +// OutHid Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetOutHid() string { + return r._outHid +} +// Vendor Setter +// 系统商,无申请不可使用 +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetVendor() string { + return r._vendor +} +// Pics Setter +// 房型图片只支持远程图片,格式如下:[{"url":"http://taobao.com/123.jpg","ismain":"true"},{"url":"http://taobao.com/456.jpg","ismain":"false"},{"url":"http://taobao.com/789.jpg","ismain":"false"}]其中url是远程图片的访问地址(URL地址必须是合法的,否则会报错),main是是否为主图。只能设置一张图片为主图。 +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetPics(_pics string) error { + r._pics = _pics + r.Set("pics", _pics) + return nil +} + +// Pics Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetPics() string { + return r._pics +} +// NameE Setter +// 卖家房型英文名称 +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetNameE(_nameE string) error { + r._nameE = _nameE + r.Set("name_e", _nameE) + return nil +} + +// NameE Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetNameE() string { + return r._nameE +} +// Operator Setter +// 操作人信息 +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetOperator(_operator string) error { + r._operator = _operator + r.Set("operator", _operator) + return nil +} + +// Operator Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetOperator() string { + return r._operator +} +// ConnectionType Setter +// 属性值为1: 含义是非直连房型 +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetConnectionType(_connectionType int64) error { + r._connectionType = _connectionType + r.Set("connection_type", _connectionType) + return nil +} + +// ConnectionType Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetConnectionType() int64 { + return r._connectionType +} +// HouseModel Setter +// 房屋户型, bedroom: 室, bathroom: 卫, livingroom: 厅, study: 书房, balcony: 阳台,kitchen: 厨房 +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetHouseModel(_houseModel string) error { + r._houseModel = _houseModel + r.Set("house_model", _houseModel) + return nil +} + +// HouseModel Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetHouseModel() string { + return r._houseModel +} +// HouseSize Setter +// 房屋面积 +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetHouseSize(_houseSize int64) error { + r._houseSize = _houseSize + r.Set("house_size", _houseSize) + return nil +} + +// HouseSize Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetHouseSize() int64 { + return r._houseSize +} +// RentType Setter +// 出租类型:1.整租;2.单间;3.床位 +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetRentType(_rentType int64) error { + r._rentType = _rentType + r.Set("rent_type", _rentType) + return nil +} + +// RentType Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetRentType() int64 { + return r._rentType +} +// RentSize Setter +// 出租面积,单位平方米 +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetRentSize(_rentSize int64) error { + r._rentSize = _rentSize + r.Set("rent_size", _rentSize) + return nil +} + +// RentSize Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetRentSize() int64 { + return r._rentSize +} +// HasLandlord Setter +// 是否和房东合住:0.不和房东合住;1.和房东合住; +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetHasLandlord(_hasLandlord int64) error { + r._hasLandlord = _hasLandlord + r.Set("has_landlord", _hasLandlord) + return nil +} + +// HasLandlord Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetHasLandlord() int64 { + return r._hasLandlord +} +// BedInfo Setter +// 床信息: bedType:床型, desc: 床型名, width:床宽, length:床长, bedNum: 床数。床型取值见链接https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.4zBOVn&docType=1&articleId=108347 +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetBedInfo(_bedInfo string) error { + r._bedInfo = _bedInfo + r.Set("bed_info", _bedInfo) + return nil +} + +// BedInfo Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetBedInfo() string { + return r._bedInfo +} +// Status Setter +// 数据状态 0:正常,-1:删除,-2:停售 +func (r *TaobaoXhotelHouseRoomtypeAddAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoXhotelHouseRoomtypeAddAPIRequest) GetStatus() int64 { + return r._status +} diff --git a/model/xhotelitem/TaobaoXhotelHouseRoomtypeAddAPIResponse.go b/model/xhotelitem/TaobaoXhotelHouseRoomtypeAddAPIResponse.go new file mode 100644 index 0000000000..9911fa87bb --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelHouseRoomtypeAddAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +民宿房型信息添加 API返回值 +taobao.xhotel.house.roomtype.add + +房型添加或更新 +*/ +type TaobaoXhotelHouseRoomtypeAddAPIResponse struct { + model.CommonResponse + TaobaoXhotelHouseRoomtypeAddAPIResponseModel +} + +// 民宿房型信息添加 成功返回结果 +type TaobaoXhotelHouseRoomtypeAddAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_house_roomtype_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 房型信息 + Xroomtype *XRoomType `json:"xroomtype,omitempty" xml:"xroomtype,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelHouseRoomtypeAddResponse.go b/model/xhotelitem/TaobaoXhotelHouseRoomtypeAddResponse.go deleted file mode 100644 index add7e124f0..0000000000 --- a/model/xhotelitem/TaobaoXhotelHouseRoomtypeAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -民宿房型信息添加 API返回值 -taobao.xhotel.house.roomtype.add - -房型添加或更新 -*/ -type TaobaoXhotelHouseRoomtypeAddAPIResponse struct { - model.CommonResponse - TaobaoXhotelHouseRoomtypeAddResponse -} - -// 民宿房型信息添加 成功返回结果 -type TaobaoXhotelHouseRoomtypeAddResponse struct { - XMLName xml.Name `xml:"xhotel_house_roomtype_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 房型信息 - Xroomtype *XRoomType `json:"xroomtype,omitempty" xml:"xroomtype,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatExposureAPIRequest.go b/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatExposureAPIRequest.go new file mode 100644 index 0000000000..367535f76c --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatExposureAPIRequest.go @@ -0,0 +1,108 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +选品曝光趋势 API请求 +taobao.xhotel.item.selection.seller.stat.exposure + +用于提供给商家获取选品曝光趋势 +*/ +type TaobaoXhotelItemSelectionSellerStatExposureAPIRequest struct { + model.Params + // 日期 默认为昨天 + _date string + // hid 默认为all + _hid string + // 默认为all + _vendor string + // 默认为all + _supplier string + // 酒店编码 + _outHid string +} + +// 初始化TaobaoXhotelItemSelectionSellerStatExposureAPIRequest对象 +func NewTaobaoXhotelItemSelectionSellerStatExposureRequest() *TaobaoXhotelItemSelectionSellerStatExposureAPIRequest{ + return &TaobaoXhotelItemSelectionSellerStatExposureAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.item.selection.seller.stat.exposure" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Date Setter +// 日期 默认为昨天 +func (r *TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) SetDate(_date string) error { + r._date = _date + r.Set("date", _date) + return nil +} + +// Date Getter +func (r TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) GetDate() string { + return r._date +} +// Hid Setter +// hid 默认为all +func (r *TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) SetHid(_hid string) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) GetHid() string { + return r._hid +} +// Vendor Setter +// 默认为all +func (r *TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) GetVendor() string { + return r._vendor +} +// Supplier Setter +// 默认为all +func (r *TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) SetSupplier(_supplier string) error { + r._supplier = _supplier + r.Set("supplier", _supplier) + return nil +} + +// Supplier Getter +func (r TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) GetSupplier() string { + return r._supplier +} +// OutHid Setter +// 酒店编码 +func (r *TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) SetOutHid(_outHid string) error { + r._outHid = _outHid + r.Set("out_hid", _outHid) + return nil +} + +// OutHid Getter +func (r TaobaoXhotelItemSelectionSellerStatExposureAPIRequest) GetOutHid() string { + return r._outHid +} diff --git a/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatExposureAPIResponse.go b/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatExposureAPIResponse.go new file mode 100644 index 0000000000..f6f5505701 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatExposureAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +选品曝光趋势 API返回值 +taobao.xhotel.item.selection.seller.stat.exposure + +用于提供给商家获取选品曝光趋势 +*/ +type TaobaoXhotelItemSelectionSellerStatExposureAPIResponse struct { + model.CommonResponse + TaobaoXhotelItemSelectionSellerStatExposureAPIResponseModel +} + +// 选品曝光趋势 成功返回结果 +type TaobaoXhotelItemSelectionSellerStatExposureAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_item_selection_seller_stat_exposure_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoXhotelItemSelectionSellerStatExposureResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatExposureResponse.go b/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatExposureResponse.go deleted file mode 100644 index d8e4b42e99..0000000000 --- a/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatExposureResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -选品曝光趋势 API返回值 -taobao.xhotel.item.selection.seller.stat.exposure - -用于提供给商家获取选品曝光趋势 -*/ -type TaobaoXhotelItemSelectionSellerStatExposureAPIResponse struct { - model.CommonResponse - TaobaoXhotelItemSelectionSellerStatExposureResponse -} - -// 选品曝光趋势 成功返回结果 -type TaobaoXhotelItemSelectionSellerStatExposureResponse struct { - XMLName xml.Name `xml:"xhotel_item_selection_seller_stat_exposure_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoXhotelItemSelectionSellerStatExposureResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest.go b/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest.go new file mode 100644 index 0000000000..c9ddb25976 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest.go @@ -0,0 +1,108 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +供应链选品热销标准酒店覆盖情况 API请求 +taobao.xhotel.item.selection.seller.stat.hotshid + +供应链选品热销标准酒店覆盖情况 +*/ +type TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest struct { + model.Params + // 日期 默认为昨天 + _date string + // 酒店id 默认all + _hid string + // vendor 默认all + _vendor string + // supplier 默认all + _supplier string + // 酒店编码 + _outHid string +} + +// 初始化TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest对象 +func NewTaobaoXhotelItemSelectionSellerStatHotshidRequest() *TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest{ + return &TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.item.selection.seller.stat.hotshid" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Date Setter +// 日期 默认为昨天 +func (r *TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest) SetDate(_date string) error { + r._date = _date + r.Set("date", _date) + return nil +} + +// Date Getter +func (r TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest) GetDate() string { + return r._date +} +// Hid Setter +// 酒店id 默认all +func (r *TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest) SetHid(_hid string) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest) GetHid() string { + return r._hid +} +// Vendor Setter +// vendor 默认all +func (r *TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest) GetVendor() string { + return r._vendor +} +// Supplier Setter +// supplier 默认all +func (r *TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest) SetSupplier(_supplier string) error { + r._supplier = _supplier + r.Set("supplier", _supplier) + return nil +} + +// Supplier Getter +func (r TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest) GetSupplier() string { + return r._supplier +} +// OutHid Setter +// 酒店编码 +func (r *TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest) SetOutHid(_outHid string) error { + r._outHid = _outHid + r.Set("out_hid", _outHid) + return nil +} + +// OutHid Getter +func (r TaobaoXhotelItemSelectionSellerStatHotshidAPIRequest) GetOutHid() string { + return r._outHid +} diff --git a/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatHotshidAPIResponse.go b/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatHotshidAPIResponse.go new file mode 100644 index 0000000000..3cee47d25f --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatHotshidAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +供应链选品热销标准酒店覆盖情况 API返回值 +taobao.xhotel.item.selection.seller.stat.hotshid + +供应链选品热销标准酒店覆盖情况 +*/ +type TaobaoXhotelItemSelectionSellerStatHotshidAPIResponse struct { + model.CommonResponse + TaobaoXhotelItemSelectionSellerStatHotshidAPIResponseModel +} + +// 供应链选品热销标准酒店覆盖情况 成功返回结果 +type TaobaoXhotelItemSelectionSellerStatHotshidAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_item_selection_seller_stat_hotshid_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *TaobaoXhotelItemSelectionSellerStatHotshidResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatHotshidResponse.go b/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatHotshidResponse.go deleted file mode 100644 index 9c1f4fcc59..0000000000 --- a/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatHotshidResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -供应链选品热销标准酒店覆盖情况 API返回值 -taobao.xhotel.item.selection.seller.stat.hotshid - -供应链选品热销标准酒店覆盖情况 -*/ -type TaobaoXhotelItemSelectionSellerStatHotshidAPIResponse struct { - model.CommonResponse - TaobaoXhotelItemSelectionSellerStatHotshidResponse -} - -// 供应链选品热销标准酒店覆盖情况 成功返回结果 -type TaobaoXhotelItemSelectionSellerStatHotshidResponse struct { - XMLName xml.Name `xml:"xhotel_item_selection_seller_stat_hotshid_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *TaobaoXhotelItemSelectionSellerStatHotshidResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest.go b/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest.go new file mode 100644 index 0000000000..526249c2cc --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest.go @@ -0,0 +1,108 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家数据-选品整体概况 API请求 +taobao.xhotel.item.selection.seller.stat.summary + +商家数据-选品整体概况 +*/ +type TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest struct { + model.Params + // vendor 默认为all + _vendor string + // 日期 默认为昨天 + _date string + // hid 默认为all + _hid string + // supplier 默认为all + _supplier string + // 外部酒店编码 + _outHid string +} + +// 初始化TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest对象 +func NewTaobaoXhotelItemSelectionSellerStatSummaryRequest() *TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest{ + return &TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.item.selection.seller.stat.summary" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Vendor Setter +// vendor 默认为all +func (r *TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest) GetVendor() string { + return r._vendor +} +// Date Setter +// 日期 默认为昨天 +func (r *TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest) SetDate(_date string) error { + r._date = _date + r.Set("date", _date) + return nil +} + +// Date Getter +func (r TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest) GetDate() string { + return r._date +} +// Hid Setter +// hid 默认为all +func (r *TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest) SetHid(_hid string) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest) GetHid() string { + return r._hid +} +// Supplier Setter +// supplier 默认为all +func (r *TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest) SetSupplier(_supplier string) error { + r._supplier = _supplier + r.Set("supplier", _supplier) + return nil +} + +// Supplier Getter +func (r TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest) GetSupplier() string { + return r._supplier +} +// OutHid Setter +// 外部酒店编码 +func (r *TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest) SetOutHid(_outHid string) error { + r._outHid = _outHid + r.Set("out_hid", _outHid) + return nil +} + +// OutHid Getter +func (r TaobaoXhotelItemSelectionSellerStatSummaryAPIRequest) GetOutHid() string { + return r._outHid +} diff --git a/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatSummaryAPIResponse.go b/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatSummaryAPIResponse.go new file mode 100644 index 0000000000..18f965b7fa --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatSummaryAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家数据-选品整体概况 API返回值 +taobao.xhotel.item.selection.seller.stat.summary + +商家数据-选品整体概况 +*/ +type TaobaoXhotelItemSelectionSellerStatSummaryAPIResponse struct { + model.CommonResponse + TaobaoXhotelItemSelectionSellerStatSummaryAPIResponseModel +} + +// 商家数据-选品整体概况 成功返回结果 +type TaobaoXhotelItemSelectionSellerStatSummaryAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_item_selection_seller_stat_summary_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回参数 + Result *HsfResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatSummaryResponse.go b/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatSummaryResponse.go deleted file mode 100644 index 556ec30d8c..0000000000 --- a/model/xhotelitem/TaobaoXhotelItemSelectionSellerStatSummaryResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家数据-选品整体概况 API返回值 -taobao.xhotel.item.selection.seller.stat.summary - -商家数据-选品整体概况 -*/ -type TaobaoXhotelItemSelectionSellerStatSummaryAPIResponse struct { - model.CommonResponse - TaobaoXhotelItemSelectionSellerStatSummaryResponse -} - -// 商家数据-选品整体概况 成功返回结果 -type TaobaoXhotelItemSelectionSellerStatSummaryResponse struct { - XMLName xml.Name `xml:"xhotel_item_selection_seller_stat_summary_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回参数 - Result *HsfResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelMultiplerateDeleteAPIRequest.go b/model/xhotelitem/TaobaoXhotelMultiplerateDeleteAPIRequest.go new file mode 100644 index 0000000000..9b7de46b75 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelMultiplerateDeleteAPIRequest.go @@ -0,0 +1,108 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +复杂价格删除 API请求 +taobao.xhotel.multiplerate.delete + +酒店产品库rate删除 +*/ +type TaobaoXhotelMultiplerateDeleteAPIRequest struct { + model.Params + // 渠道,和推送房价所使用的渠道保持一致 + _vendor string + // 商家价格政策编码 + _rateplanCode string + // 商家房型编码 + _outRid string + // 连住天数 + _occupancy int64 + // 入住人数 + _lengthofstay int64 +} + +// 初始化TaobaoXhotelMultiplerateDeleteAPIRequest对象 +func NewTaobaoXhotelMultiplerateDeleteRequest() *TaobaoXhotelMultiplerateDeleteAPIRequest{ + return &TaobaoXhotelMultiplerateDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelMultiplerateDeleteAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.multiplerate.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelMultiplerateDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Vendor Setter +// 渠道,和推送房价所使用的渠道保持一致 +func (r *TaobaoXhotelMultiplerateDeleteAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelMultiplerateDeleteAPIRequest) GetVendor() string { + return r._vendor +} +// RateplanCode Setter +// 商家价格政策编码 +func (r *TaobaoXhotelMultiplerateDeleteAPIRequest) SetRateplanCode(_rateplanCode string) error { + r._rateplanCode = _rateplanCode + r.Set("rateplan_code", _rateplanCode) + return nil +} + +// RateplanCode Getter +func (r TaobaoXhotelMultiplerateDeleteAPIRequest) GetRateplanCode() string { + return r._rateplanCode +} +// OutRid Setter +// 商家房型编码 +func (r *TaobaoXhotelMultiplerateDeleteAPIRequest) SetOutRid(_outRid string) error { + r._outRid = _outRid + r.Set("out_rid", _outRid) + return nil +} + +// OutRid Getter +func (r TaobaoXhotelMultiplerateDeleteAPIRequest) GetOutRid() string { + return r._outRid +} +// Occupancy Setter +// 连住天数 +func (r *TaobaoXhotelMultiplerateDeleteAPIRequest) SetOccupancy(_occupancy int64) error { + r._occupancy = _occupancy + r.Set("occupancy", _occupancy) + return nil +} + +// Occupancy Getter +func (r TaobaoXhotelMultiplerateDeleteAPIRequest) GetOccupancy() int64 { + return r._occupancy +} +// Lengthofstay Setter +// 入住人数 +func (r *TaobaoXhotelMultiplerateDeleteAPIRequest) SetLengthofstay(_lengthofstay int64) error { + r._lengthofstay = _lengthofstay + r.Set("lengthofstay", _lengthofstay) + return nil +} + +// Lengthofstay Getter +func (r TaobaoXhotelMultiplerateDeleteAPIRequest) GetLengthofstay() int64 { + return r._lengthofstay +} diff --git a/model/xhotelitem/TaobaoXhotelMultiplerateDeleteAPIResponse.go b/model/xhotelitem/TaobaoXhotelMultiplerateDeleteAPIResponse.go new file mode 100644 index 0000000000..cd7308447e --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelMultiplerateDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +复杂价格删除 API返回值 +taobao.xhotel.multiplerate.delete + +酒店产品库rate删除 +*/ +type TaobaoXhotelMultiplerateDeleteAPIResponse struct { + model.CommonResponse + TaobaoXhotelMultiplerateDeleteAPIResponseModel +} + +// 复杂价格删除 成功返回结果 +type TaobaoXhotelMultiplerateDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_multiplerate_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoXhotelMultiplerateDeleteResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelMultiplerateDeleteResponse.go b/model/xhotelitem/TaobaoXhotelMultiplerateDeleteResponse.go deleted file mode 100644 index d533a8be52..0000000000 --- a/model/xhotelitem/TaobaoXhotelMultiplerateDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -复杂价格删除 API返回值 -taobao.xhotel.multiplerate.delete - -酒店产品库rate删除 -*/ -type TaobaoXhotelMultiplerateDeleteAPIResponse struct { - model.CommonResponse - TaobaoXhotelMultiplerateDeleteResponse -} - -// 复杂价格删除 成功返回结果 -type TaobaoXhotelMultiplerateDeleteResponse struct { - XMLName xml.Name `xml:"xhotel_multiplerate_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoXhotelMultiplerateDeleteResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelMultiplerateGetAPIRequest.go b/model/xhotelitem/TaobaoXhotelMultiplerateGetAPIRequest.go new file mode 100644 index 0000000000..b9c7fc79a9 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelMultiplerateGetAPIRequest.go @@ -0,0 +1,136 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +复杂房价查询接口 API请求 +taobao.xhotel.multiplerate.get + +查询复杂房价,支持通过入住人数,连住天数,商品信息,房价信息查询 +*/ +type TaobaoXhotelMultiplerateGetAPIRequest struct { + model.Params + // 连住天数(范围1~10) + _nod int64 + // 入住人数(范围1~10) + _nop int64 + // 卖家的房价code + _ratePlanCode string + // 废弃,使用rate_plan_code + _ratePlanId int64 + // 卖家的房型code + _outRid string + // 废弃,使用out_rid + _gid int64 + // 系统商,一般不填写,使用须申请 + _vendor string +} + +// 初始化TaobaoXhotelMultiplerateGetAPIRequest对象 +func NewTaobaoXhotelMultiplerateGetRequest() *TaobaoXhotelMultiplerateGetAPIRequest{ + return &TaobaoXhotelMultiplerateGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelMultiplerateGetAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.multiplerate.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelMultiplerateGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Nod Setter +// 连住天数(范围1~10) +func (r *TaobaoXhotelMultiplerateGetAPIRequest) SetNod(_nod int64) error { + r._nod = _nod + r.Set("nod", _nod) + return nil +} + +// Nod Getter +func (r TaobaoXhotelMultiplerateGetAPIRequest) GetNod() int64 { + return r._nod +} +// Nop Setter +// 入住人数(范围1~10) +func (r *TaobaoXhotelMultiplerateGetAPIRequest) SetNop(_nop int64) error { + r._nop = _nop + r.Set("nop", _nop) + return nil +} + +// Nop Getter +func (r TaobaoXhotelMultiplerateGetAPIRequest) GetNop() int64 { + return r._nop +} +// RatePlanCode Setter +// 卖家的房价code +func (r *TaobaoXhotelMultiplerateGetAPIRequest) SetRatePlanCode(_ratePlanCode string) error { + r._ratePlanCode = _ratePlanCode + r.Set("rate_plan_code", _ratePlanCode) + return nil +} + +// RatePlanCode Getter +func (r TaobaoXhotelMultiplerateGetAPIRequest) GetRatePlanCode() string { + return r._ratePlanCode +} +// RatePlanId Setter +// 废弃,使用rate_plan_code +func (r *TaobaoXhotelMultiplerateGetAPIRequest) SetRatePlanId(_ratePlanId int64) error { + r._ratePlanId = _ratePlanId + r.Set("rate_plan_id", _ratePlanId) + return nil +} + +// RatePlanId Getter +func (r TaobaoXhotelMultiplerateGetAPIRequest) GetRatePlanId() int64 { + return r._ratePlanId +} +// OutRid Setter +// 卖家的房型code +func (r *TaobaoXhotelMultiplerateGetAPIRequest) SetOutRid(_outRid string) error { + r._outRid = _outRid + r.Set("out_rid", _outRid) + return nil +} + +// OutRid Getter +func (r TaobaoXhotelMultiplerateGetAPIRequest) GetOutRid() string { + return r._outRid +} +// Gid Setter +// 废弃,使用out_rid +func (r *TaobaoXhotelMultiplerateGetAPIRequest) SetGid(_gid int64) error { + r._gid = _gid + r.Set("gid", _gid) + return nil +} + +// Gid Getter +func (r TaobaoXhotelMultiplerateGetAPIRequest) GetGid() int64 { + return r._gid +} +// Vendor Setter +// 系统商,一般不填写,使用须申请 +func (r *TaobaoXhotelMultiplerateGetAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelMultiplerateGetAPIRequest) GetVendor() string { + return r._vendor +} diff --git a/model/xhotelitem/TaobaoXhotelMultiplerateGetAPIResponse.go b/model/xhotelitem/TaobaoXhotelMultiplerateGetAPIResponse.go new file mode 100644 index 0000000000..2cdd4668b9 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelMultiplerateGetAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +复杂房价查询接口 API返回值 +taobao.xhotel.multiplerate.get + +查询复杂房价,支持通过入住人数,连住天数,商品信息,房价信息查询 +*/ +type TaobaoXhotelMultiplerateGetAPIResponse struct { + model.CommonResponse + TaobaoXhotelMultiplerateGetAPIResponseModel +} + +// 复杂房价查询接口 成功返回结果 +type TaobaoXhotelMultiplerateGetAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_multiplerate_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 复杂价格返回结果类 + Rates []MultipleRate `json:"rates,omitempty" xml:"rates>multiple_rate,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelMultiplerateGetResponse.go b/model/xhotelitem/TaobaoXhotelMultiplerateGetResponse.go deleted file mode 100644 index ef4b560f4d..0000000000 --- a/model/xhotelitem/TaobaoXhotelMultiplerateGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -复杂房价查询接口 API返回值 -taobao.xhotel.multiplerate.get - -查询复杂房价,支持通过入住人数,连住天数,商品信息,房价信息查询 -*/ -type TaobaoXhotelMultiplerateGetAPIResponse struct { - model.CommonResponse - TaobaoXhotelMultiplerateGetResponse -} - -// 复杂房价查询接口 成功返回结果 -type TaobaoXhotelMultiplerateGetResponse struct { - XMLName xml.Name `xml:"xhotel_multiplerate_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 复杂价格返回结果类 - Rates []MultipleRate `json:"rates,omitempty" xml:"rates>multiple_rate,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelMultiplerateUpdateAPIRequest.go b/model/xhotelitem/TaobaoXhotelMultiplerateUpdateAPIRequest.go new file mode 100644 index 0000000000..4888521f59 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelMultiplerateUpdateAPIRequest.go @@ -0,0 +1,277 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +复杂价格推送接口(全量更新) API请求 +taobao.xhotel.multiplerate.update + +酒店产品库复杂rate(多人价,连住价等)更新 +同时完全涵盖taobao.xhotel.rate.update的功能 +*/ +type TaobaoXhotelMultiplerateUpdateAPIRequest struct { + model.Params + // 废弃,使用out_rid + _gid int64 + // 卖家房型ID + _outRid string + // 废弃,使用rate_plan_code + _rpid int64 + // 卖家自己系统的房价code + _ratePlanCode string + // 废弃 + _name string + // 入住人数(范围1~10) + _occupancy int64 + // 连住天数(范围1~5) + _lengthofstay int64 + // 价格和库存信息。 A:use_room_inventory:是否使用房型共享库存,可选值 true false ,false时:使用房价专有库存,此时要求价格和库存必填。 B:date 日期必须为 T---T+180 日内的日期(T为当天),且不能重复 C:price 价格 int类型 取值范围1-99999999 单位为分 D:quota 库存 int 类型 取值范围 0-999(数量库存) 60000(状态库存关) 61000(状态库存开) tax为税费,addBed为加床价,addPerson为加人价1,若连住大于1,price请推送总价 + _inventoryPrice string + // 价格开关 date:开关状态控制的那一天;rate_status:开关状态(0,关闭;1,打开); checkin_status:入住开关(0,关闭;1,打开);checkout_status:离店开关 (0,关闭;1,打开) + _rateSwitchCal string + // 币种.CNY为人民币 + _currencyCode string + // 价格状态。0为不可售;1为可售,默认可售 + _status int64 + // 系统商,一般不填写,使用须申请 + _vendor string + // 儿童人数 + _childnum int64 + // 婴儿人数 + _infantnum int64 + // 锁库存截止时间,如果当前时间是在锁库存开始时间和截止时间之间,那么不允许修改该活动库存(包含开始时间和截止时间) + _lockEndTime string + // 锁库存开始时间,如果当前时间是在锁库存开始时间和截止时间之间,那么不允许修改该活动库存(包含开始时间和截止时间) + _lockStartTime string + // 在线预约关联关系推送,priceRuleNumber:加价规则序号 + _onlineBookingBindingInfo string +} + +// 初始化TaobaoXhotelMultiplerateUpdateAPIRequest对象 +func NewTaobaoXhotelMultiplerateUpdateRequest() *TaobaoXhotelMultiplerateUpdateAPIRequest{ + return &TaobaoXhotelMultiplerateUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelMultiplerateUpdateAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.multiplerate.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelMultiplerateUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Gid Setter +// 废弃,使用out_rid +func (r *TaobaoXhotelMultiplerateUpdateAPIRequest) SetGid(_gid int64) error { + r._gid = _gid + r.Set("gid", _gid) + return nil +} + +// Gid Getter +func (r TaobaoXhotelMultiplerateUpdateAPIRequest) GetGid() int64 { + return r._gid +} +// OutRid Setter +// 卖家房型ID +func (r *TaobaoXhotelMultiplerateUpdateAPIRequest) SetOutRid(_outRid string) error { + r._outRid = _outRid + r.Set("out_rid", _outRid) + return nil +} + +// OutRid Getter +func (r TaobaoXhotelMultiplerateUpdateAPIRequest) GetOutRid() string { + return r._outRid +} +// Rpid Setter +// 废弃,使用rate_plan_code +func (r *TaobaoXhotelMultiplerateUpdateAPIRequest) SetRpid(_rpid int64) error { + r._rpid = _rpid + r.Set("rpid", _rpid) + return nil +} + +// Rpid Getter +func (r TaobaoXhotelMultiplerateUpdateAPIRequest) GetRpid() int64 { + return r._rpid +} +// RatePlanCode Setter +// 卖家自己系统的房价code +func (r *TaobaoXhotelMultiplerateUpdateAPIRequest) SetRatePlanCode(_ratePlanCode string) error { + r._ratePlanCode = _ratePlanCode + r.Set("rate_plan_code", _ratePlanCode) + return nil +} + +// RatePlanCode Getter +func (r TaobaoXhotelMultiplerateUpdateAPIRequest) GetRatePlanCode() string { + return r._ratePlanCode +} +// Name Setter +// 废弃 +func (r *TaobaoXhotelMultiplerateUpdateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoXhotelMultiplerateUpdateAPIRequest) GetName() string { + return r._name +} +// Occupancy Setter +// 入住人数(范围1~10) +func (r *TaobaoXhotelMultiplerateUpdateAPIRequest) SetOccupancy(_occupancy int64) error { + r._occupancy = _occupancy + r.Set("occupancy", _occupancy) + return nil +} + +// Occupancy Getter +func (r TaobaoXhotelMultiplerateUpdateAPIRequest) GetOccupancy() int64 { + return r._occupancy +} +// Lengthofstay Setter +// 连住天数(范围1~5) +func (r *TaobaoXhotelMultiplerateUpdateAPIRequest) SetLengthofstay(_lengthofstay int64) error { + r._lengthofstay = _lengthofstay + r.Set("lengthofstay", _lengthofstay) + return nil +} + +// Lengthofstay Getter +func (r TaobaoXhotelMultiplerateUpdateAPIRequest) GetLengthofstay() int64 { + return r._lengthofstay +} +// InventoryPrice Setter +// 价格和库存信息。 A:use_room_inventory:是否使用房型共享库存,可选值 true false ,false时:使用房价专有库存,此时要求价格和库存必填。 B:date 日期必须为 T---T+180 日内的日期(T为当天),且不能重复 C:price 价格 int类型 取值范围1-99999999 单位为分 D:quota 库存 int 类型 取值范围 0-999(数量库存) 60000(状态库存关) 61000(状态库存开) tax为税费,addBed为加床价,addPerson为加人价1,若连住大于1,price请推送总价 +func (r *TaobaoXhotelMultiplerateUpdateAPIRequest) SetInventoryPrice(_inventoryPrice string) error { + r._inventoryPrice = _inventoryPrice + r.Set("inventory_price", _inventoryPrice) + return nil +} + +// InventoryPrice Getter +func (r TaobaoXhotelMultiplerateUpdateAPIRequest) GetInventoryPrice() string { + return r._inventoryPrice +} +// RateSwitchCal Setter +// 价格开关 date:开关状态控制的那一天;rate_status:开关状态(0,关闭;1,打开); checkin_status:入住开关(0,关闭;1,打开);checkout_status:离店开关 (0,关闭;1,打开) +func (r *TaobaoXhotelMultiplerateUpdateAPIRequest) SetRateSwitchCal(_rateSwitchCal string) error { + r._rateSwitchCal = _rateSwitchCal + r.Set("rate_switch_cal", _rateSwitchCal) + return nil +} + +// RateSwitchCal Getter +func (r TaobaoXhotelMultiplerateUpdateAPIRequest) GetRateSwitchCal() string { + return r._rateSwitchCal +} +// CurrencyCode Setter +// 币种.CNY为人民币 +func (r *TaobaoXhotelMultiplerateUpdateAPIRequest) SetCurrencyCode(_currencyCode string) error { + r._currencyCode = _currencyCode + r.Set("currency_code", _currencyCode) + return nil +} + +// CurrencyCode Getter +func (r TaobaoXhotelMultiplerateUpdateAPIRequest) GetCurrencyCode() string { + return r._currencyCode +} +// Status Setter +// 价格状态。0为不可售;1为可售,默认可售 +func (r *TaobaoXhotelMultiplerateUpdateAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoXhotelMultiplerateUpdateAPIRequest) GetStatus() int64 { + return r._status +} +// Vendor Setter +// 系统商,一般不填写,使用须申请 +func (r *TaobaoXhotelMultiplerateUpdateAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelMultiplerateUpdateAPIRequest) GetVendor() string { + return r._vendor +} +// Childnum Setter +// 儿童人数 +func (r *TaobaoXhotelMultiplerateUpdateAPIRequest) SetChildnum(_childnum int64) error { + r._childnum = _childnum + r.Set("childnum", _childnum) + return nil +} + +// Childnum Getter +func (r TaobaoXhotelMultiplerateUpdateAPIRequest) GetChildnum() int64 { + return r._childnum +} +// Infantnum Setter +// 婴儿人数 +func (r *TaobaoXhotelMultiplerateUpdateAPIRequest) SetInfantnum(_infantnum int64) error { + r._infantnum = _infantnum + r.Set("infantnum", _infantnum) + return nil +} + +// Infantnum Getter +func (r TaobaoXhotelMultiplerateUpdateAPIRequest) GetInfantnum() int64 { + return r._infantnum +} +// LockEndTime Setter +// 锁库存截止时间,如果当前时间是在锁库存开始时间和截止时间之间,那么不允许修改该活动库存(包含开始时间和截止时间) +func (r *TaobaoXhotelMultiplerateUpdateAPIRequest) SetLockEndTime(_lockEndTime string) error { + r._lockEndTime = _lockEndTime + r.Set("lock_end_time", _lockEndTime) + return nil +} + +// LockEndTime Getter +func (r TaobaoXhotelMultiplerateUpdateAPIRequest) GetLockEndTime() string { + return r._lockEndTime +} +// LockStartTime Setter +// 锁库存开始时间,如果当前时间是在锁库存开始时间和截止时间之间,那么不允许修改该活动库存(包含开始时间和截止时间) +func (r *TaobaoXhotelMultiplerateUpdateAPIRequest) SetLockStartTime(_lockStartTime string) error { + r._lockStartTime = _lockStartTime + r.Set("lock_start_time", _lockStartTime) + return nil +} + +// LockStartTime Getter +func (r TaobaoXhotelMultiplerateUpdateAPIRequest) GetLockStartTime() string { + return r._lockStartTime +} +// OnlineBookingBindingInfo Setter +// 在线预约关联关系推送,priceRuleNumber:加价规则序号 +func (r *TaobaoXhotelMultiplerateUpdateAPIRequest) SetOnlineBookingBindingInfo(_onlineBookingBindingInfo string) error { + r._onlineBookingBindingInfo = _onlineBookingBindingInfo + r.Set("online_booking_binding_info", _onlineBookingBindingInfo) + return nil +} + +// OnlineBookingBindingInfo Getter +func (r TaobaoXhotelMultiplerateUpdateAPIRequest) GetOnlineBookingBindingInfo() string { + return r._onlineBookingBindingInfo +} diff --git a/model/xhotelitem/TaobaoXhotelMultiplerateUpdateAPIResponse.go b/model/xhotelitem/TaobaoXhotelMultiplerateUpdateAPIResponse.go new file mode 100644 index 0000000000..66b86e8ca4 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelMultiplerateUpdateAPIResponse.go @@ -0,0 +1,28 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +复杂价格推送接口(全量更新) API返回值 +taobao.xhotel.multiplerate.update + +酒店产品库复杂rate(多人价,连住价等)更新 +同时完全涵盖taobao.xhotel.rate.update的功能 +*/ +type TaobaoXhotelMultiplerateUpdateAPIResponse struct { + model.CommonResponse + TaobaoXhotelMultiplerateUpdateAPIResponseModel +} + +// 复杂价格推送接口(全量更新) 成功返回结果 +type TaobaoXhotelMultiplerateUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_multiplerate_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // gid-rpid-occupancy-lengthofstay
商品ID-房价ID-入住人数-连住天数 + GidAndRpidOccupancyLengthofstay string `json:"gid_and_rpid_occupancy_lengthofstay,omitempty" xml:"gid_and_rpid_occupancy_lengthofstay,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelMultiplerateUpdateResponse.go b/model/xhotelitem/TaobaoXhotelMultiplerateUpdateResponse.go deleted file mode 100644 index caeef64f09..0000000000 --- a/model/xhotelitem/TaobaoXhotelMultiplerateUpdateResponse.go +++ /dev/null @@ -1,28 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -复杂价格推送接口(全量更新) API返回值 -taobao.xhotel.multiplerate.update - -酒店产品库复杂rate(多人价,连住价等)更新 -同时完全涵盖taobao.xhotel.rate.update的功能 -*/ -type TaobaoXhotelMultiplerateUpdateAPIResponse struct { - model.CommonResponse - TaobaoXhotelMultiplerateUpdateResponse -} - -// 复杂价格推送接口(全量更新) 成功返回结果 -type TaobaoXhotelMultiplerateUpdateResponse struct { - XMLName xml.Name `xml:"xhotel_multiplerate_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // gid-rpid-occupancy-lengthofstay
商品ID-房价ID-入住人数-连住天数 - GidAndRpidOccupancyLengthofstay string `json:"gid_and_rpid_occupancy_lengthofstay,omitempty" xml:"gid_and_rpid_occupancy_lengthofstay,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelMultipleratesIncrementAPIRequest.go b/model/xhotelitem/TaobaoXhotelMultipleratesIncrementAPIRequest.go new file mode 100644 index 0000000000..bd0ee6846e --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelMultipleratesIncrementAPIRequest.go @@ -0,0 +1,53 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +复杂房价推送接口(批量增量) API请求 +taobao.xhotel.multiplerates.increment + +复杂房价批量增量更新,只会更新指定日期的信息 +完全涵盖了taobao.xhotel.rates.increment接口的功能 +*/ +type TaobaoXhotelMultipleratesIncrementAPIRequest struct { + model.Params + // 批量全量修改价格和库存信息,会以请求参数中的数据覆盖掉原来报价库存数据。A:useRoomInventory:是否使用room级别共享库存,可选值 true false 2、false时:使用rate级别私有库存,此时如果填写了库存,那么会写入库存表。B:date 日期必须为 T---T+180 日内的日期(T为当天),且不能重复C:basePrice 基本价格 int类型 取值范围1-99999999 单位为分D:quota 库存 int 类型 取值范围 0-999(数量库存) 支持状态库存, 60000(状态库存关) 61000(状态库存开);E:occupancy为入住人数,范围为1~10;F:lengthofStay为连住天数,范围为1~10;G:taxAndFee为总税费;H:addBedPrice为加床价;I:addPersonPrice为加人价;J:rateSwitch为开关房状态,1为开房,0为关房。K:支持outRoomId和ratePlanCode来更新报价库存。L:childnum为儿童人数。M:infantnum为婴儿人数。N:ckinSwitch为入住开关(0,关闭;1,打开) O:ckoutSwitch为离店开关 (0,关闭;1,打开) P:lockStartTime锁库存开始时间 Q:lockEndTime锁库存截止时间 + _rateQuotaMap string +} + +// 初始化TaobaoXhotelMultipleratesIncrementAPIRequest对象 +func NewTaobaoXhotelMultipleratesIncrementRequest() *TaobaoXhotelMultipleratesIncrementAPIRequest{ + return &TaobaoXhotelMultipleratesIncrementAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelMultipleratesIncrementAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.multiplerates.increment" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelMultipleratesIncrementAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RateQuotaMap Setter +// 批量全量修改价格和库存信息,会以请求参数中的数据覆盖掉原来报价库存数据。A:useRoomInventory:是否使用room级别共享库存,可选值 true false 2、false时:使用rate级别私有库存,此时如果填写了库存,那么会写入库存表。B:date 日期必须为 T---T+180 日内的日期(T为当天),且不能重复C:basePrice 基本价格 int类型 取值范围1-99999999 单位为分D:quota 库存 int 类型 取值范围 0-999(数量库存) 支持状态库存, 60000(状态库存关) 61000(状态库存开);E:occupancy为入住人数,范围为1~10;F:lengthofStay为连住天数,范围为1~10;G:taxAndFee为总税费;H:addBedPrice为加床价;I:addPersonPrice为加人价;J:rateSwitch为开关房状态,1为开房,0为关房。K:支持outRoomId和ratePlanCode来更新报价库存。L:childnum为儿童人数。M:infantnum为婴儿人数。N:ckinSwitch为入住开关(0,关闭;1,打开) O:ckoutSwitch为离店开关 (0,关闭;1,打开) P:lockStartTime锁库存开始时间 Q:lockEndTime锁库存截止时间 +func (r *TaobaoXhotelMultipleratesIncrementAPIRequest) SetRateQuotaMap(_rateQuotaMap string) error { + r._rateQuotaMap = _rateQuotaMap + r.Set("rate_quota_map", _rateQuotaMap) + return nil +} + +// RateQuotaMap Getter +func (r TaobaoXhotelMultipleratesIncrementAPIRequest) GetRateQuotaMap() string { + return r._rateQuotaMap +} diff --git a/model/xhotelitem/TaobaoXhotelMultipleratesIncrementAPIResponse.go b/model/xhotelitem/TaobaoXhotelMultipleratesIncrementAPIResponse.go new file mode 100644 index 0000000000..bbbc1368d1 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelMultipleratesIncrementAPIResponse.go @@ -0,0 +1,30 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +复杂房价推送接口(批量增量) API返回值 +taobao.xhotel.multiplerates.increment + +复杂房价批量增量更新,只会更新指定日期的信息 +完全涵盖了taobao.xhotel.rates.increment接口的功能 +*/ +type TaobaoXhotelMultipleratesIncrementAPIResponse struct { + model.CommonResponse + TaobaoXhotelMultipleratesIncrementAPIResponseModel +} + +// 复杂房价推送接口(批量增量) 成功返回结果 +type TaobaoXhotelMultipleratesIncrementAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_multiplerates_increment_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品id-房价id-入住人数-连住天数 的集合 + GidAndRpidOccupancyLengthofstay []string `json:"gid_and_rpid_occupancy_lengthofstay,omitempty" xml:"gid_and_rpid_occupancy_lengthofstay>string,omitempty"` + // 批量更新的时候,如果部分更新失败,会展示部分失败的原因 + Warnmessage string `json:"warnmessage,omitempty" xml:"warnmessage,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelMultipleratesIncrementResponse.go b/model/xhotelitem/TaobaoXhotelMultipleratesIncrementResponse.go deleted file mode 100644 index 128dff1f1c..0000000000 --- a/model/xhotelitem/TaobaoXhotelMultipleratesIncrementResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -复杂房价推送接口(批量增量) API返回值 -taobao.xhotel.multiplerates.increment - -复杂房价批量增量更新,只会更新指定日期的信息 -完全涵盖了taobao.xhotel.rates.increment接口的功能 -*/ -type TaobaoXhotelMultipleratesIncrementAPIResponse struct { - model.CommonResponse - TaobaoXhotelMultipleratesIncrementResponse -} - -// 复杂房价推送接口(批量增量) 成功返回结果 -type TaobaoXhotelMultipleratesIncrementResponse struct { - XMLName xml.Name `xml:"xhotel_multiplerates_increment_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品id-房价id-入住人数-连住天数 的集合 - GidAndRpidOccupancyLengthofstay []string `json:"gid_and_rpid_occupancy_lengthofstay,omitempty" xml:"gid_and_rpid_occupancy_lengthofstay>string,omitempty"` - // 批量更新的时候,如果部分更新失败,会展示部分失败的原因 - Warnmessage string `json:"warnmessage,omitempty" xml:"warnmessage,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelMultipleratesUpdateAPIRequest.go b/model/xhotelitem/TaobaoXhotelMultipleratesUpdateAPIRequest.go new file mode 100644 index 0000000000..99ef2eea6c --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelMultipleratesUpdateAPIRequest.go @@ -0,0 +1,53 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +复杂价格推送接口(批量全量) API请求 +taobao.xhotel.multiplerates.update + +批量更新复杂价格 +涵盖了taobao.xhotel.rates.update的功能 +*/ +type TaobaoXhotelMultipleratesUpdateAPIRequest struct { + model.Params + // 批量全量修改价格和库存信息,会以请求参数中的数据覆盖掉原来报价库存数据。A:useRoomInventory:是否使用room级别共享库存,可选值 true false 2、false时:使用rate级别私有库存,此时如果填写了库存,那么会写入库存表。B:date 日期必须为 T---T+180 日内的日期(T为当天),且不能重复C:basePrice 基本价格 int类型 取值范围1-99999999 单位为分D:quota 库存 int 类型 取值范围 0-999(数量库存) 支持状态库存, 60000(状态库存关) 61000(状态库存开);E:occupancy为入住人数,范围为1~10;F:lengthofStay为连住天数,范围为1~10;G:taxAndFee为总税费;H:addBedPrice为加床价;I:addPersonPrice为加人价;J:rateSwitch为开关房状态,1为开房,0为关房。K:支持outRoomId和ratePlanCode来更新报价库存。L:childnum为儿童人数。M:infantnum为婴儿人数。N:ckinSwitch为入住开关(0,关闭;1,打开) O:ckoutSwitch为离店开关 (0,关闭;1,打开) P:lockStartTime锁库存开始时间 Q:lockEndTime锁库存截止时间 + _rateQuotaMap string +} + +// 初始化TaobaoXhotelMultipleratesUpdateAPIRequest对象 +func NewTaobaoXhotelMultipleratesUpdateRequest() *TaobaoXhotelMultipleratesUpdateAPIRequest{ + return &TaobaoXhotelMultipleratesUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelMultipleratesUpdateAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.multiplerates.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelMultipleratesUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RateQuotaMap Setter +// 批量全量修改价格和库存信息,会以请求参数中的数据覆盖掉原来报价库存数据。A:useRoomInventory:是否使用room级别共享库存,可选值 true false 2、false时:使用rate级别私有库存,此时如果填写了库存,那么会写入库存表。B:date 日期必须为 T---T+180 日内的日期(T为当天),且不能重复C:basePrice 基本价格 int类型 取值范围1-99999999 单位为分D:quota 库存 int 类型 取值范围 0-999(数量库存) 支持状态库存, 60000(状态库存关) 61000(状态库存开);E:occupancy为入住人数,范围为1~10;F:lengthofStay为连住天数,范围为1~10;G:taxAndFee为总税费;H:addBedPrice为加床价;I:addPersonPrice为加人价;J:rateSwitch为开关房状态,1为开房,0为关房。K:支持outRoomId和ratePlanCode来更新报价库存。L:childnum为儿童人数。M:infantnum为婴儿人数。N:ckinSwitch为入住开关(0,关闭;1,打开) O:ckoutSwitch为离店开关 (0,关闭;1,打开) P:lockStartTime锁库存开始时间 Q:lockEndTime锁库存截止时间 +func (r *TaobaoXhotelMultipleratesUpdateAPIRequest) SetRateQuotaMap(_rateQuotaMap string) error { + r._rateQuotaMap = _rateQuotaMap + r.Set("rate_quota_map", _rateQuotaMap) + return nil +} + +// RateQuotaMap Getter +func (r TaobaoXhotelMultipleratesUpdateAPIRequest) GetRateQuotaMap() string { + return r._rateQuotaMap +} diff --git a/model/xhotelitem/TaobaoXhotelMultipleratesUpdateAPIResponse.go b/model/xhotelitem/TaobaoXhotelMultipleratesUpdateAPIResponse.go new file mode 100644 index 0000000000..7bff81f491 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelMultipleratesUpdateAPIResponse.go @@ -0,0 +1,30 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +复杂价格推送接口(批量全量) API返回值 +taobao.xhotel.multiplerates.update + +批量更新复杂价格 +涵盖了taobao.xhotel.rates.update的功能 +*/ +type TaobaoXhotelMultipleratesUpdateAPIResponse struct { + model.CommonResponse + TaobaoXhotelMultipleratesUpdateAPIResponseModel +} + +// 复杂价格推送接口(批量全量) 成功返回结果 +type TaobaoXhotelMultipleratesUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_multiplerates_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 商品id,房价id,入住人数,连住天数 + GidAndRpidOccupancyLengthofstay []string `json:"gid_and_rpid_occupancy_lengthofstay,omitempty" xml:"gid_and_rpid_occupancy_lengthofstay>string,omitempty"` + // 批量更新的时候,如果部分更新失败,会展示部分失败的原因 + Warnmessage string `json:"warnmessage,omitempty" xml:"warnmessage,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelMultipleratesUpdateResponse.go b/model/xhotelitem/TaobaoXhotelMultipleratesUpdateResponse.go deleted file mode 100644 index c755e4d34f..0000000000 --- a/model/xhotelitem/TaobaoXhotelMultipleratesUpdateResponse.go +++ /dev/null @@ -1,30 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -复杂价格推送接口(批量全量) API返回值 -taobao.xhotel.multiplerates.update - -批量更新复杂价格 -涵盖了taobao.xhotel.rates.update的功能 -*/ -type TaobaoXhotelMultipleratesUpdateAPIResponse struct { - model.CommonResponse - TaobaoXhotelMultipleratesUpdateResponse -} - -// 复杂价格推送接口(批量全量) 成功返回结果 -type TaobaoXhotelMultipleratesUpdateResponse struct { - XMLName xml.Name `xml:"xhotel_multiplerates_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 商品id,房价id,入住人数,连住天数 - GidAndRpidOccupancyLengthofstay []string `json:"gid_and_rpid_occupancy_lengthofstay,omitempty" xml:"gid_and_rpid_occupancy_lengthofstay>string,omitempty"` - // 批量更新的时候,如果部分更新失败,会展示部分失败的原因 - Warnmessage string `json:"warnmessage,omitempty" xml:"warnmessage,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelQuotaUpdateAPIRequest.go b/model/xhotelitem/TaobaoXhotelQuotaUpdateAPIRequest.go new file mode 100644 index 0000000000..97cd1a004f --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelQuotaUpdateAPIRequest.go @@ -0,0 +1,136 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +库存更新接口 API请求 +taobao.xhotel.quota.update + +库存更新接口 +*/ +type TaobaoXhotelQuotaUpdateAPIRequest struct { + model.Params + // 库存类型,0: 普通库存, 1: 普通保留房库存, 2:协议保留房库存 + _quotaType int64 + // 是否使用room库存,true使用,false不使用 + _useRoomInventory bool + // room的gid + _gid int64 + // 增减的值 + _quota int64 + // 数量类型, 2:增加房量,3:减少房量 + _quotaNumType int64 + // 修改日期列表 + _dates []string + // rate的id, rate库存时必填 + _rateId int64 +} + +// 初始化TaobaoXhotelQuotaUpdateAPIRequest对象 +func NewTaobaoXhotelQuotaUpdateRequest() *TaobaoXhotelQuotaUpdateAPIRequest{ + return &TaobaoXhotelQuotaUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelQuotaUpdateAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.quota.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelQuotaUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// QuotaType Setter +// 库存类型,0: 普通库存, 1: 普通保留房库存, 2:协议保留房库存 +func (r *TaobaoXhotelQuotaUpdateAPIRequest) SetQuotaType(_quotaType int64) error { + r._quotaType = _quotaType + r.Set("quota_type", _quotaType) + return nil +} + +// QuotaType Getter +func (r TaobaoXhotelQuotaUpdateAPIRequest) GetQuotaType() int64 { + return r._quotaType +} +// UseRoomInventory Setter +// 是否使用room库存,true使用,false不使用 +func (r *TaobaoXhotelQuotaUpdateAPIRequest) SetUseRoomInventory(_useRoomInventory bool) error { + r._useRoomInventory = _useRoomInventory + r.Set("use_room_inventory", _useRoomInventory) + return nil +} + +// UseRoomInventory Getter +func (r TaobaoXhotelQuotaUpdateAPIRequest) GetUseRoomInventory() bool { + return r._useRoomInventory +} +// Gid Setter +// room的gid +func (r *TaobaoXhotelQuotaUpdateAPIRequest) SetGid(_gid int64) error { + r._gid = _gid + r.Set("gid", _gid) + return nil +} + +// Gid Getter +func (r TaobaoXhotelQuotaUpdateAPIRequest) GetGid() int64 { + return r._gid +} +// Quota Setter +// 增减的值 +func (r *TaobaoXhotelQuotaUpdateAPIRequest) SetQuota(_quota int64) error { + r._quota = _quota + r.Set("quota", _quota) + return nil +} + +// Quota Getter +func (r TaobaoXhotelQuotaUpdateAPIRequest) GetQuota() int64 { + return r._quota +} +// QuotaNumType Setter +// 数量类型, 2:增加房量,3:减少房量 +func (r *TaobaoXhotelQuotaUpdateAPIRequest) SetQuotaNumType(_quotaNumType int64) error { + r._quotaNumType = _quotaNumType + r.Set("quota_num_type", _quotaNumType) + return nil +} + +// QuotaNumType Getter +func (r TaobaoXhotelQuotaUpdateAPIRequest) GetQuotaNumType() int64 { + return r._quotaNumType +} +// Dates Setter +// 修改日期列表 +func (r *TaobaoXhotelQuotaUpdateAPIRequest) SetDates(_dates []string) error { + r._dates = _dates + r.Set("dates", _dates) + return nil +} + +// Dates Getter +func (r TaobaoXhotelQuotaUpdateAPIRequest) GetDates() []string { + return r._dates +} +// RateId Setter +// rate的id, rate库存时必填 +func (r *TaobaoXhotelQuotaUpdateAPIRequest) SetRateId(_rateId int64) error { + r._rateId = _rateId + r.Set("rate_id", _rateId) + return nil +} + +// RateId Getter +func (r TaobaoXhotelQuotaUpdateAPIRequest) GetRateId() int64 { + return r._rateId +} diff --git a/model/xhotelitem/TaobaoXhotelQuotaUpdateAPIResponse.go b/model/xhotelitem/TaobaoXhotelQuotaUpdateAPIResponse.go new file mode 100644 index 0000000000..4553a9e510 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelQuotaUpdateAPIResponse.go @@ -0,0 +1,31 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +库存更新接口 API返回值 +taobao.xhotel.quota.update + +库存更新接口 +*/ +type TaobaoXhotelQuotaUpdateAPIResponse struct { + model.CommonResponse + TaobaoXhotelQuotaUpdateAPIResponseModel +} + +// 库存更新接口 成功返回结果 +type TaobaoXhotelQuotaUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_quota_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 更新失败补充描述消息 + WarnMessage string `json:"warn_message,omitempty" xml:"warn_message,omitempty"` + // errorCode + BizErrorCode string `json:"biz_error_code,omitempty" xml:"biz_error_code,omitempty"` + // 更新失败错误信息 + BizErrorMsg string `json:"biz_error_msg,omitempty" xml:"biz_error_msg,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelQuotaUpdateResponse.go b/model/xhotelitem/TaobaoXhotelQuotaUpdateResponse.go deleted file mode 100644 index d08f8c6402..0000000000 --- a/model/xhotelitem/TaobaoXhotelQuotaUpdateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -库存更新接口 API返回值 -taobao.xhotel.quota.update - -库存更新接口 -*/ -type TaobaoXhotelQuotaUpdateAPIResponse struct { - model.CommonResponse - TaobaoXhotelQuotaUpdateResponse -} - -// 库存更新接口 成功返回结果 -type TaobaoXhotelQuotaUpdateResponse struct { - XMLName xml.Name `xml:"xhotel_quota_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 更新失败补充描述消息 - WarnMessage string `json:"warn_message,omitempty" xml:"warn_message,omitempty"` - // errorCode - BizErrorCode string `json:"biz_error_code,omitempty" xml:"biz_error_code,omitempty"` - // 更新失败错误信息 - BizErrorMsg string `json:"biz_error_msg,omitempty" xml:"biz_error_msg,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRateAddAPIRequest.go b/model/xhotelitem/TaobaoXhotelRateAddAPIRequest.go new file mode 100644 index 0000000000..67f156ad9e --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateAddAPIRequest.go @@ -0,0 +1,318 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +新增专享房价 API请求 +taobao.xhotel.rate.add + +酒店产品库rate添加 +*/ +type TaobaoXhotelRateAddAPIRequest struct { + model.Params + // gid酒店商品id + _gid int64 + // 酒店RPID + _rpid int64 + // 名称 + _name string + // 额外服务-是否可以加床,1:不可以,2:可以 + _addBed int64 + // 额外服务-加床价格 + _addBedPrice int64 + // 币种(仅支持CNY) + _currencyCode int64 + // 实价有房标签(RP支付类型为全额支付) + _shijiaTag int64 + // 价格和库存信息。A:use_room_inventory:是否使用room级别共享库存,可选值 true false 1、true时:使用room级别共享库存(即使用gid对应的XRoom中的inventory),rate_quota_map 的json 数据中不需要录入库存信息,录入的库存信息会忽略 2、false时:使用rate级别私有库存,此时要求价格和库存必填。B:date 日期必须为 T---T+90 日内的日期(T为当天),且不能重复C:price 价格 int类型 取值范围1-99999999 单位为分D:quota 库存 int 类型 取值范围 0-999(数量库存) 60000(状态库存关) 61000(状态库存开) + _inventoryPrice string + // “即时确认”标识,此类商品预订后直接发货。 + _jishiquerenTag int64 + // 卖家自己系统的Code,简称RateCode + _rateplanCode string + // 用于标示该宝贝的售卖渠道信息,允许同一个卖家酒店房型在淘宝系统发布多个售卖渠道的宝贝的价格。 + _vendor string + // 卖家房型ID, 这是卖家自己系统中的房型ID,注意:需按照规则组合 + _outRid string + // 在添加新rate时,同时添加rate开关日历。可以只设定想设定的某些天,可以不连续。date:开关状态控制的是那一天rate_status:开关状态。0,关闭;1,打开 + _rateSwitchCal string + // 锁库存截止时间,如果当前时间是在锁库存开始时间和截止时间之间,那么不允许修改该活动库存(包含开始时间和截止时间) + _lockEndTime string + // 锁库存开始时间,如果当前时间是在锁库存开始时间和截止时间之间,那么不允许修改该活动库存(包含开始时间和截止时间) + _lockStartTime string + // 币种信息,默认是CNY, @see com.taobao.trip.hotel.model.enums.CurrencyEnum + _currencyCodeName string + // 操作人信息 + _operator string + // 默认是2 , + _source int64 + // 1是开,0是关, 不填默认是开, rate状态 + _status int64 + // 在线预约关联关系推送,priceRuleNumber:加价规则序号 + _onlineBookingBindingInfo string +} + +// 初始化TaobaoXhotelRateAddAPIRequest对象 +func NewTaobaoXhotelRateAddRequest() *TaobaoXhotelRateAddAPIRequest{ + return &TaobaoXhotelRateAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRateAddAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.rate.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRateAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Gid Setter +// gid酒店商品id +func (r *TaobaoXhotelRateAddAPIRequest) SetGid(_gid int64) error { + r._gid = _gid + r.Set("gid", _gid) + return nil +} + +// Gid Getter +func (r TaobaoXhotelRateAddAPIRequest) GetGid() int64 { + return r._gid +} +// Rpid Setter +// 酒店RPID +func (r *TaobaoXhotelRateAddAPIRequest) SetRpid(_rpid int64) error { + r._rpid = _rpid + r.Set("rpid", _rpid) + return nil +} + +// Rpid Getter +func (r TaobaoXhotelRateAddAPIRequest) GetRpid() int64 { + return r._rpid +} +// Name Setter +// 名称 +func (r *TaobaoXhotelRateAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoXhotelRateAddAPIRequest) GetName() string { + return r._name +} +// AddBed Setter +// 额外服务-是否可以加床,1:不可以,2:可以 +func (r *TaobaoXhotelRateAddAPIRequest) SetAddBed(_addBed int64) error { + r._addBed = _addBed + r.Set("add_bed", _addBed) + return nil +} + +// AddBed Getter +func (r TaobaoXhotelRateAddAPIRequest) GetAddBed() int64 { + return r._addBed +} +// AddBedPrice Setter +// 额外服务-加床价格 +func (r *TaobaoXhotelRateAddAPIRequest) SetAddBedPrice(_addBedPrice int64) error { + r._addBedPrice = _addBedPrice + r.Set("add_bed_price", _addBedPrice) + return nil +} + +// AddBedPrice Getter +func (r TaobaoXhotelRateAddAPIRequest) GetAddBedPrice() int64 { + return r._addBedPrice +} +// CurrencyCode Setter +// 币种(仅支持CNY) +func (r *TaobaoXhotelRateAddAPIRequest) SetCurrencyCode(_currencyCode int64) error { + r._currencyCode = _currencyCode + r.Set("currency_code", _currencyCode) + return nil +} + +// CurrencyCode Getter +func (r TaobaoXhotelRateAddAPIRequest) GetCurrencyCode() int64 { + return r._currencyCode +} +// ShijiaTag Setter +// 实价有房标签(RP支付类型为全额支付) +func (r *TaobaoXhotelRateAddAPIRequest) SetShijiaTag(_shijiaTag int64) error { + r._shijiaTag = _shijiaTag + r.Set("shijia_tag", _shijiaTag) + return nil +} + +// ShijiaTag Getter +func (r TaobaoXhotelRateAddAPIRequest) GetShijiaTag() int64 { + return r._shijiaTag +} +// InventoryPrice Setter +// 价格和库存信息。A:use_room_inventory:是否使用room级别共享库存,可选值 true false 1、true时:使用room级别共享库存(即使用gid对应的XRoom中的inventory),rate_quota_map 的json 数据中不需要录入库存信息,录入的库存信息会忽略 2、false时:使用rate级别私有库存,此时要求价格和库存必填。B:date 日期必须为 T---T+90 日内的日期(T为当天),且不能重复C:price 价格 int类型 取值范围1-99999999 单位为分D:quota 库存 int 类型 取值范围 0-999(数量库存) 60000(状态库存关) 61000(状态库存开) +func (r *TaobaoXhotelRateAddAPIRequest) SetInventoryPrice(_inventoryPrice string) error { + r._inventoryPrice = _inventoryPrice + r.Set("inventory_price", _inventoryPrice) + return nil +} + +// InventoryPrice Getter +func (r TaobaoXhotelRateAddAPIRequest) GetInventoryPrice() string { + return r._inventoryPrice +} +// JishiquerenTag Setter +// “即时确认”标识,此类商品预订后直接发货。 +func (r *TaobaoXhotelRateAddAPIRequest) SetJishiquerenTag(_jishiquerenTag int64) error { + r._jishiquerenTag = _jishiquerenTag + r.Set("jishiqueren_tag", _jishiquerenTag) + return nil +} + +// JishiquerenTag Getter +func (r TaobaoXhotelRateAddAPIRequest) GetJishiquerenTag() int64 { + return r._jishiquerenTag +} +// RateplanCode Setter +// 卖家自己系统的Code,简称RateCode +func (r *TaobaoXhotelRateAddAPIRequest) SetRateplanCode(_rateplanCode string) error { + r._rateplanCode = _rateplanCode + r.Set("rateplan_code", _rateplanCode) + return nil +} + +// RateplanCode Getter +func (r TaobaoXhotelRateAddAPIRequest) GetRateplanCode() string { + return r._rateplanCode +} +// Vendor Setter +// 用于标示该宝贝的售卖渠道信息,允许同一个卖家酒店房型在淘宝系统发布多个售卖渠道的宝贝的价格。 +func (r *TaobaoXhotelRateAddAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelRateAddAPIRequest) GetVendor() string { + return r._vendor +} +// OutRid Setter +// 卖家房型ID, 这是卖家自己系统中的房型ID,注意:需按照规则组合 +func (r *TaobaoXhotelRateAddAPIRequest) SetOutRid(_outRid string) error { + r._outRid = _outRid + r.Set("out_rid", _outRid) + return nil +} + +// OutRid Getter +func (r TaobaoXhotelRateAddAPIRequest) GetOutRid() string { + return r._outRid +} +// RateSwitchCal Setter +// 在添加新rate时,同时添加rate开关日历。可以只设定想设定的某些天,可以不连续。date:开关状态控制的是那一天rate_status:开关状态。0,关闭;1,打开 +func (r *TaobaoXhotelRateAddAPIRequest) SetRateSwitchCal(_rateSwitchCal string) error { + r._rateSwitchCal = _rateSwitchCal + r.Set("rate_switch_cal", _rateSwitchCal) + return nil +} + +// RateSwitchCal Getter +func (r TaobaoXhotelRateAddAPIRequest) GetRateSwitchCal() string { + return r._rateSwitchCal +} +// LockEndTime Setter +// 锁库存截止时间,如果当前时间是在锁库存开始时间和截止时间之间,那么不允许修改该活动库存(包含开始时间和截止时间) +func (r *TaobaoXhotelRateAddAPIRequest) SetLockEndTime(_lockEndTime string) error { + r._lockEndTime = _lockEndTime + r.Set("lock_end_time", _lockEndTime) + return nil +} + +// LockEndTime Getter +func (r TaobaoXhotelRateAddAPIRequest) GetLockEndTime() string { + return r._lockEndTime +} +// LockStartTime Setter +// 锁库存开始时间,如果当前时间是在锁库存开始时间和截止时间之间,那么不允许修改该活动库存(包含开始时间和截止时间) +func (r *TaobaoXhotelRateAddAPIRequest) SetLockStartTime(_lockStartTime string) error { + r._lockStartTime = _lockStartTime + r.Set("lock_start_time", _lockStartTime) + return nil +} + +// LockStartTime Getter +func (r TaobaoXhotelRateAddAPIRequest) GetLockStartTime() string { + return r._lockStartTime +} +// CurrencyCodeName Setter +// 币种信息,默认是CNY, @see com.taobao.trip.hotel.model.enums.CurrencyEnum +func (r *TaobaoXhotelRateAddAPIRequest) SetCurrencyCodeName(_currencyCodeName string) error { + r._currencyCodeName = _currencyCodeName + r.Set("currency_code_name", _currencyCodeName) + return nil +} + +// CurrencyCodeName Getter +func (r TaobaoXhotelRateAddAPIRequest) GetCurrencyCodeName() string { + return r._currencyCodeName +} +// Operator Setter +// 操作人信息 +func (r *TaobaoXhotelRateAddAPIRequest) SetOperator(_operator string) error { + r._operator = _operator + r.Set("operator", _operator) + return nil +} + +// Operator Getter +func (r TaobaoXhotelRateAddAPIRequest) GetOperator() string { + return r._operator +} +// Source Setter +// 默认是2 , +func (r *TaobaoXhotelRateAddAPIRequest) SetSource(_source int64) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoXhotelRateAddAPIRequest) GetSource() int64 { + return r._source +} +// Status Setter +// 1是开,0是关, 不填默认是开, rate状态 +func (r *TaobaoXhotelRateAddAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoXhotelRateAddAPIRequest) GetStatus() int64 { + return r._status +} +// OnlineBookingBindingInfo Setter +// 在线预约关联关系推送,priceRuleNumber:加价规则序号 +func (r *TaobaoXhotelRateAddAPIRequest) SetOnlineBookingBindingInfo(_onlineBookingBindingInfo string) error { + r._onlineBookingBindingInfo = _onlineBookingBindingInfo + r.Set("online_booking_binding_info", _onlineBookingBindingInfo) + return nil +} + +// OnlineBookingBindingInfo Getter +func (r TaobaoXhotelRateAddAPIRequest) GetOnlineBookingBindingInfo() string { + return r._onlineBookingBindingInfo +} diff --git a/model/xhotelitem/TaobaoXhotelRateAddAPIResponse.go b/model/xhotelitem/TaobaoXhotelRateAddAPIResponse.go new file mode 100644 index 0000000000..69e062c8b6 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateAddAPIResponse.go @@ -0,0 +1,31 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +新增专享房价 API返回值 +taobao.xhotel.rate.add + +酒店产品库rate添加 +*/ +type TaobaoXhotelRateAddAPIResponse struct { + model.CommonResponse + TaobaoXhotelRateAddAPIResponseModel +} + +// 新增专享房价 成功返回结果 +type TaobaoXhotelRateAddAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_rate_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 酒店商品id-酒店rpID + GidAndRpid string `json:"gid_and_rpid,omitempty" xml:"gid_and_rpid,omitempty"` + // results + Results []string `json:"results,omitempty" xml:"results>string,omitempty"` + // warnMessage + WarnMessage string `json:"warn_message,omitempty" xml:"warn_message,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRateAddResponse.go b/model/xhotelitem/TaobaoXhotelRateAddResponse.go deleted file mode 100644 index 2e31b59dc3..0000000000 --- a/model/xhotelitem/TaobaoXhotelRateAddResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -新增专享房价 API返回值 -taobao.xhotel.rate.add - -酒店产品库rate添加 -*/ -type TaobaoXhotelRateAddAPIResponse struct { - model.CommonResponse - TaobaoXhotelRateAddResponse -} - -// 新增专享房价 成功返回结果 -type TaobaoXhotelRateAddResponse struct { - XMLName xml.Name `xml:"xhotel_rate_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 酒店商品id-酒店rpID - GidAndRpid string `json:"gid_and_rpid,omitempty" xml:"gid_and_rpid,omitempty"` - // results - Results []string `json:"results,omitempty" xml:"results>string,omitempty"` - // warnMessage - WarnMessage string `json:"warn_message,omitempty" xml:"warn_message,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRateDeleteAPIRequest.go b/model/xhotelitem/TaobaoXhotelRateDeleteAPIRequest.go new file mode 100644 index 0000000000..be6fba97a1 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateDeleteAPIRequest.go @@ -0,0 +1,80 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +rate删除接口 API请求 +taobao.xhotel.rate.delete + +酒店产品库rate删除 +*/ +type TaobaoXhotelRateDeleteAPIRequest struct { + model.Params + // 系统商,一般不用填写,使用须申请 + _vendor string + // 商家价格政策编码 + _rateplanCode string + // 商家房型ID + _outRid string +} + +// 初始化TaobaoXhotelRateDeleteAPIRequest对象 +func NewTaobaoXhotelRateDeleteRequest() *TaobaoXhotelRateDeleteAPIRequest{ + return &TaobaoXhotelRateDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRateDeleteAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.rate.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRateDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Vendor Setter +// 系统商,一般不用填写,使用须申请 +func (r *TaobaoXhotelRateDeleteAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelRateDeleteAPIRequest) GetVendor() string { + return r._vendor +} +// RateplanCode Setter +// 商家价格政策编码 +func (r *TaobaoXhotelRateDeleteAPIRequest) SetRateplanCode(_rateplanCode string) error { + r._rateplanCode = _rateplanCode + r.Set("rateplan_code", _rateplanCode) + return nil +} + +// RateplanCode Getter +func (r TaobaoXhotelRateDeleteAPIRequest) GetRateplanCode() string { + return r._rateplanCode +} +// OutRid Setter +// 商家房型ID +func (r *TaobaoXhotelRateDeleteAPIRequest) SetOutRid(_outRid string) error { + r._outRid = _outRid + r.Set("out_rid", _outRid) + return nil +} + +// OutRid Getter +func (r TaobaoXhotelRateDeleteAPIRequest) GetOutRid() string { + return r._outRid +} diff --git a/model/xhotelitem/TaobaoXhotelRateDeleteAPIResponse.go b/model/xhotelitem/TaobaoXhotelRateDeleteAPIResponse.go new file mode 100644 index 0000000000..882f20eeac --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +rate删除接口 API返回值 +taobao.xhotel.rate.delete + +酒店产品库rate删除 +*/ +type TaobaoXhotelRateDeleteAPIResponse struct { + model.CommonResponse + TaobaoXhotelRateDeleteAPIResponseModel +} + +// rate删除接口 成功返回结果 +type TaobaoXhotelRateDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_rate_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoXhotelRateDeleteResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRateDeleteResponse.go b/model/xhotelitem/TaobaoXhotelRateDeleteResponse.go deleted file mode 100644 index d8c312fcb3..0000000000 --- a/model/xhotelitem/TaobaoXhotelRateDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -rate删除接口 API返回值 -taobao.xhotel.rate.delete - -酒店产品库rate删除 -*/ -type TaobaoXhotelRateDeleteAPIResponse struct { - model.CommonResponse - TaobaoXhotelRateDeleteResponse -} - -// rate删除接口 成功返回结果 -type TaobaoXhotelRateDeleteResponse struct { - XMLName xml.Name `xml:"xhotel_rate_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoXhotelRateDeleteResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRateGetAPIRequest.go b/model/xhotelitem/TaobaoXhotelRateGetAPIRequest.go new file mode 100644 index 0000000000..db7e22ae72 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateGetAPIRequest.go @@ -0,0 +1,122 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店产品库rate查询 API请求 +taobao.xhotel.rate.get + +酒店产品库rate查询 +*/ +type TaobaoXhotelRateGetAPIRequest struct { + model.Params + // gid酒店商品id + _gid int64 + // 酒店RPID + _rpid int64 + // 卖家房型ID, 这是卖家自己系统中的房型ID 注意:需要按照规则组合 + _outRid string + // 卖家自己系统的Code,简称RateCode + _rateplanCode string + // 用于标示该宝贝的售卖渠道信息,允许同一个卖家酒店房型在淘宝系统发布多个售卖渠道的宝贝的价格。 + _vendor string + // RateID + _rateId int64 +} + +// 初始化TaobaoXhotelRateGetAPIRequest对象 +func NewTaobaoXhotelRateGetRequest() *TaobaoXhotelRateGetAPIRequest{ + return &TaobaoXhotelRateGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRateGetAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.rate.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRateGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Gid Setter +// gid酒店商品id +func (r *TaobaoXhotelRateGetAPIRequest) SetGid(_gid int64) error { + r._gid = _gid + r.Set("gid", _gid) + return nil +} + +// Gid Getter +func (r TaobaoXhotelRateGetAPIRequest) GetGid() int64 { + return r._gid +} +// Rpid Setter +// 酒店RPID +func (r *TaobaoXhotelRateGetAPIRequest) SetRpid(_rpid int64) error { + r._rpid = _rpid + r.Set("rpid", _rpid) + return nil +} + +// Rpid Getter +func (r TaobaoXhotelRateGetAPIRequest) GetRpid() int64 { + return r._rpid +} +// OutRid Setter +// 卖家房型ID, 这是卖家自己系统中的房型ID 注意:需要按照规则组合 +func (r *TaobaoXhotelRateGetAPIRequest) SetOutRid(_outRid string) error { + r._outRid = _outRid + r.Set("out_rid", _outRid) + return nil +} + +// OutRid Getter +func (r TaobaoXhotelRateGetAPIRequest) GetOutRid() string { + return r._outRid +} +// RateplanCode Setter +// 卖家自己系统的Code,简称RateCode +func (r *TaobaoXhotelRateGetAPIRequest) SetRateplanCode(_rateplanCode string) error { + r._rateplanCode = _rateplanCode + r.Set("rateplan_code", _rateplanCode) + return nil +} + +// RateplanCode Getter +func (r TaobaoXhotelRateGetAPIRequest) GetRateplanCode() string { + return r._rateplanCode +} +// Vendor Setter +// 用于标示该宝贝的售卖渠道信息,允许同一个卖家酒店房型在淘宝系统发布多个售卖渠道的宝贝的价格。 +func (r *TaobaoXhotelRateGetAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelRateGetAPIRequest) GetVendor() string { + return r._vendor +} +// RateId Setter +// RateID +func (r *TaobaoXhotelRateGetAPIRequest) SetRateId(_rateId int64) error { + r._rateId = _rateId + r.Set("rate_id", _rateId) + return nil +} + +// RateId Getter +func (r TaobaoXhotelRateGetAPIRequest) GetRateId() int64 { + return r._rateId +} diff --git a/model/xhotelitem/TaobaoXhotelRateGetAPIResponse.go b/model/xhotelitem/TaobaoXhotelRateGetAPIResponse.go new file mode 100644 index 0000000000..57d7ae79db --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateGetAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店产品库rate查询 API返回值 +taobao.xhotel.rate.get + +酒店产品库rate查询 +*/ +type TaobaoXhotelRateGetAPIResponse struct { + model.CommonResponse + TaobaoXhotelRateGetAPIResponseModel +} + +// 酒店产品库rate查询 成功返回结果 +type TaobaoXhotelRateGetAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_rate_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // rate + Rate *Rate `json:"rate,omitempty" xml:"rate,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRateGetResponse.go b/model/xhotelitem/TaobaoXhotelRateGetResponse.go deleted file mode 100644 index 51c5e19b69..0000000000 --- a/model/xhotelitem/TaobaoXhotelRateGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店产品库rate查询 API返回值 -taobao.xhotel.rate.get - -酒店产品库rate查询 -*/ -type TaobaoXhotelRateGetAPIResponse struct { - model.CommonResponse - TaobaoXhotelRateGetResponse -} - -// 酒店产品库rate查询 成功返回结果 -type TaobaoXhotelRateGetResponse struct { - XMLName xml.Name `xml:"xhotel_rate_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // rate - Rate *Rate `json:"rate,omitempty" xml:"rate,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRateRelationshipwithroomGetAPIRequest.go b/model/xhotelitem/TaobaoXhotelRateRelationshipwithroomGetAPIRequest.go new file mode 100644 index 0000000000..01990d3ecc --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateRelationshipwithroomGetAPIRequest.go @@ -0,0 +1,66 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询rpId API请求 +taobao.xhotel.rate.relationshipwithroom.get + +某个卖家根据rpId查询所有的gid,可分页,不填分页信息则默认显示第一页。 +*/ +type TaobaoXhotelRateRelationshipwithroomGetAPIRequest struct { + model.Params + // rpId + _rpId int64 + // 页数 + _pageNo int64 +} + +// 初始化TaobaoXhotelRateRelationshipwithroomGetAPIRequest对象 +func NewTaobaoXhotelRateRelationshipwithroomGetRequest() *TaobaoXhotelRateRelationshipwithroomGetAPIRequest{ + return &TaobaoXhotelRateRelationshipwithroomGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRateRelationshipwithroomGetAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.rate.relationshipwithroom.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRateRelationshipwithroomGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RpId Setter +// rpId +func (r *TaobaoXhotelRateRelationshipwithroomGetAPIRequest) SetRpId(_rpId int64) error { + r._rpId = _rpId + r.Set("rp_id", _rpId) + return nil +} + +// RpId Getter +func (r TaobaoXhotelRateRelationshipwithroomGetAPIRequest) GetRpId() int64 { + return r._rpId +} +// PageNo Setter +// 页数 +func (r *TaobaoXhotelRateRelationshipwithroomGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoXhotelRateRelationshipwithroomGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/xhotelitem/TaobaoXhotelRateRelationshipwithroomGetAPIResponse.go b/model/xhotelitem/TaobaoXhotelRateRelationshipwithroomGetAPIResponse.go new file mode 100644 index 0000000000..da0fb0bb5a --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateRelationshipwithroomGetAPIResponse.go @@ -0,0 +1,29 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询rpId API返回值 +taobao.xhotel.rate.relationshipwithroom.get + +某个卖家根据rpId查询所有的gid,可分页,不填分页信息则默认显示第一页。 +*/ +type TaobaoXhotelRateRelationshipwithroomGetAPIResponse struct { + model.CommonResponse + TaobaoXhotelRateRelationshipwithroomGetAPIResponseModel +} + +// 查询rpId 成功返回结果 +type TaobaoXhotelRateRelationshipwithroomGetAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_rate_relationshipwithroom_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回值 + Gids []string `json:"gids,omitempty" xml:"gids>string,omitempty"` + // 根据条件所查询的所有结果的总数量 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRateRelationshipwithroomGetResponse.go b/model/xhotelitem/TaobaoXhotelRateRelationshipwithroomGetResponse.go deleted file mode 100644 index df023135a5..0000000000 --- a/model/xhotelitem/TaobaoXhotelRateRelationshipwithroomGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询rpId API返回值 -taobao.xhotel.rate.relationshipwithroom.get - -某个卖家根据rpId查询所有的gid,可分页,不填分页信息则默认显示第一页。 -*/ -type TaobaoXhotelRateRelationshipwithroomGetAPIResponse struct { - model.CommonResponse - TaobaoXhotelRateRelationshipwithroomGetResponse -} - -// 查询rpId 成功返回结果 -type TaobaoXhotelRateRelationshipwithroomGetResponse struct { - XMLName xml.Name `xml:"xhotel_rate_relationshipwithroom_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回值 - Gids []string `json:"gids,omitempty" xml:"gids>string,omitempty"` - // 根据条件所查询的所有结果的总数量 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRateRelationshipwithrpGetAPIRequest.go b/model/xhotelitem/TaobaoXhotelRateRelationshipwithrpGetAPIRequest.go new file mode 100644 index 0000000000..06a76ecd12 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateRelationshipwithrpGetAPIRequest.go @@ -0,0 +1,66 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据gid查询卖家下所有的rpId API请求 +taobao.xhotel.rate.relationshipwithrp.get + +根据gid查询卖家下所有的rpId,可分页,默认展示第一页的数据 +*/ +type TaobaoXhotelRateRelationshipwithrpGetAPIRequest struct { + model.Params + // 宝贝的gid + _gid int64 + // 页数,可根据此值展示某页的数据。不填默认为1 + _pageNo int64 +} + +// 初始化TaobaoXhotelRateRelationshipwithrpGetAPIRequest对象 +func NewTaobaoXhotelRateRelationshipwithrpGetRequest() *TaobaoXhotelRateRelationshipwithrpGetAPIRequest{ + return &TaobaoXhotelRateRelationshipwithrpGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRateRelationshipwithrpGetAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.rate.relationshipwithrp.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRateRelationshipwithrpGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Gid Setter +// 宝贝的gid +func (r *TaobaoXhotelRateRelationshipwithrpGetAPIRequest) SetGid(_gid int64) error { + r._gid = _gid + r.Set("gid", _gid) + return nil +} + +// Gid Getter +func (r TaobaoXhotelRateRelationshipwithrpGetAPIRequest) GetGid() int64 { + return r._gid +} +// PageNo Setter +// 页数,可根据此值展示某页的数据。不填默认为1 +func (r *TaobaoXhotelRateRelationshipwithrpGetAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoXhotelRateRelationshipwithrpGetAPIRequest) GetPageNo() int64 { + return r._pageNo +} diff --git a/model/xhotelitem/TaobaoXhotelRateRelationshipwithrpGetAPIResponse.go b/model/xhotelitem/TaobaoXhotelRateRelationshipwithrpGetAPIResponse.go new file mode 100644 index 0000000000..0ca269cfe2 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateRelationshipwithrpGetAPIResponse.go @@ -0,0 +1,29 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据gid查询卖家下所有的rpId API返回值 +taobao.xhotel.rate.relationshipwithrp.get + +根据gid查询卖家下所有的rpId,可分页,默认展示第一页的数据 +*/ +type TaobaoXhotelRateRelationshipwithrpGetAPIResponse struct { + model.CommonResponse + TaobaoXhotelRateRelationshipwithrpGetAPIResponseModel +} + +// 根据gid查询卖家下所有的rpId 成功返回结果 +type TaobaoXhotelRateRelationshipwithrpGetAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_rate_relationshipwithrp_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 所查询出的结果,是一个字符串数组 + RpIds []string `json:"rp_ids,omitempty" xml:"rp_ids>string,omitempty"` + // 根据条件所查询的所有结果的总数量 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRateRelationshipwithrpGetResponse.go b/model/xhotelitem/TaobaoXhotelRateRelationshipwithrpGetResponse.go deleted file mode 100644 index 8cee94f90b..0000000000 --- a/model/xhotelitem/TaobaoXhotelRateRelationshipwithrpGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据gid查询卖家下所有的rpId API返回值 -taobao.xhotel.rate.relationshipwithrp.get - -根据gid查询卖家下所有的rpId,可分页,默认展示第一页的数据 -*/ -type TaobaoXhotelRateRelationshipwithrpGetAPIResponse struct { - model.CommonResponse - TaobaoXhotelRateRelationshipwithrpGetResponse -} - -// 根据gid查询卖家下所有的rpId 成功返回结果 -type TaobaoXhotelRateRelationshipwithrpGetResponse struct { - XMLName xml.Name `xml:"xhotel_rate_relationshipwithrp_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 所查询出的结果,是一个字符串数组 - RpIds []string `json:"rp_ids,omitempty" xml:"rp_ids>string,omitempty"` - // 根据条件所查询的所有结果的总数量 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRateUpdateAPIRequest.go b/model/xhotelitem/TaobaoXhotelRateUpdateAPIRequest.go new file mode 100644 index 0000000000..d7175be4bb --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateUpdateAPIRequest.go @@ -0,0 +1,150 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +价格推送接口(全量更新) API请求 +taobao.xhotel.rate.update + +酒店产品库rate更新 +*/ +type TaobaoXhotelRateUpdateAPIRequest struct { + model.Params + // 每日价格和房价专有库存信息。A:use_room_inventory:是否使用room级别共享库存,可选值 true false 1、true时:使用room级别共享库存(即使用gid对应的XRoom中的inventory),rate_quota_map 的json 数据中不需要录入库存信息,录入的库存信息会忽略 2、false时:使用rate级别私有库存,此时要求价格和库存必填。B:date 日期必须为 T---T+180 日内的日期(T为当天),且不能重复C:price 价格 int类型 取值范围1-99999999 单位为分D:quota 库存 int 类型 取值范围 0-999(数量库存) 60000(状态库存关) 61000(状态库存开) + _inventoryPrice string + // 商家价格计划编码 + _rateplanCode string + // 商家房型ID + _outRid string + // 系统商,一般不用填写,使用需要申请 + _vendor string + // 日历价格开关, date:开关状态控制的是那一天 rate_status:开关状态。0,关闭;1,打开 + _rateSwitchCal string + // 锁库存截止时间,如果当前时间是在锁库存开始时间和截止时间之间,那么不允许修改该活动库存(包含开始时间和截止时间) + _lockEndTime string + // 锁库存开始时间,如果当前时间是在锁库存开始时间和截止时间之间,那么不允许修改该活动库存(包含开始时间和截止时间) + _lockStartTime string + // 在线预约关联关系推送,priceRuleNumber:加价规则序号 + _onlineBookingBindingInfo string +} + +// 初始化TaobaoXhotelRateUpdateAPIRequest对象 +func NewTaobaoXhotelRateUpdateRequest() *TaobaoXhotelRateUpdateAPIRequest{ + return &TaobaoXhotelRateUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRateUpdateAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.rate.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRateUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InventoryPrice Setter +// 每日价格和房价专有库存信息。A:use_room_inventory:是否使用room级别共享库存,可选值 true false 1、true时:使用room级别共享库存(即使用gid对应的XRoom中的inventory),rate_quota_map 的json 数据中不需要录入库存信息,录入的库存信息会忽略 2、false时:使用rate级别私有库存,此时要求价格和库存必填。B:date 日期必须为 T---T+180 日内的日期(T为当天),且不能重复C:price 价格 int类型 取值范围1-99999999 单位为分D:quota 库存 int 类型 取值范围 0-999(数量库存) 60000(状态库存关) 61000(状态库存开) +func (r *TaobaoXhotelRateUpdateAPIRequest) SetInventoryPrice(_inventoryPrice string) error { + r._inventoryPrice = _inventoryPrice + r.Set("inventory_price", _inventoryPrice) + return nil +} + +// InventoryPrice Getter +func (r TaobaoXhotelRateUpdateAPIRequest) GetInventoryPrice() string { + return r._inventoryPrice +} +// RateplanCode Setter +// 商家价格计划编码 +func (r *TaobaoXhotelRateUpdateAPIRequest) SetRateplanCode(_rateplanCode string) error { + r._rateplanCode = _rateplanCode + r.Set("rateplan_code", _rateplanCode) + return nil +} + +// RateplanCode Getter +func (r TaobaoXhotelRateUpdateAPIRequest) GetRateplanCode() string { + return r._rateplanCode +} +// OutRid Setter +// 商家房型ID +func (r *TaobaoXhotelRateUpdateAPIRequest) SetOutRid(_outRid string) error { + r._outRid = _outRid + r.Set("out_rid", _outRid) + return nil +} + +// OutRid Getter +func (r TaobaoXhotelRateUpdateAPIRequest) GetOutRid() string { + return r._outRid +} +// Vendor Setter +// 系统商,一般不用填写,使用需要申请 +func (r *TaobaoXhotelRateUpdateAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelRateUpdateAPIRequest) GetVendor() string { + return r._vendor +} +// RateSwitchCal Setter +// 日历价格开关, date:开关状态控制的是那一天 rate_status:开关状态。0,关闭;1,打开 +func (r *TaobaoXhotelRateUpdateAPIRequest) SetRateSwitchCal(_rateSwitchCal string) error { + r._rateSwitchCal = _rateSwitchCal + r.Set("rate_switch_cal", _rateSwitchCal) + return nil +} + +// RateSwitchCal Getter +func (r TaobaoXhotelRateUpdateAPIRequest) GetRateSwitchCal() string { + return r._rateSwitchCal +} +// LockEndTime Setter +// 锁库存截止时间,如果当前时间是在锁库存开始时间和截止时间之间,那么不允许修改该活动库存(包含开始时间和截止时间) +func (r *TaobaoXhotelRateUpdateAPIRequest) SetLockEndTime(_lockEndTime string) error { + r._lockEndTime = _lockEndTime + r.Set("lock_end_time", _lockEndTime) + return nil +} + +// LockEndTime Getter +func (r TaobaoXhotelRateUpdateAPIRequest) GetLockEndTime() string { + return r._lockEndTime +} +// LockStartTime Setter +// 锁库存开始时间,如果当前时间是在锁库存开始时间和截止时间之间,那么不允许修改该活动库存(包含开始时间和截止时间) +func (r *TaobaoXhotelRateUpdateAPIRequest) SetLockStartTime(_lockStartTime string) error { + r._lockStartTime = _lockStartTime + r.Set("lock_start_time", _lockStartTime) + return nil +} + +// LockStartTime Getter +func (r TaobaoXhotelRateUpdateAPIRequest) GetLockStartTime() string { + return r._lockStartTime +} +// OnlineBookingBindingInfo Setter +// 在线预约关联关系推送,priceRuleNumber:加价规则序号 +func (r *TaobaoXhotelRateUpdateAPIRequest) SetOnlineBookingBindingInfo(_onlineBookingBindingInfo string) error { + r._onlineBookingBindingInfo = _onlineBookingBindingInfo + r.Set("online_booking_binding_info", _onlineBookingBindingInfo) + return nil +} + +// OnlineBookingBindingInfo Getter +func (r TaobaoXhotelRateUpdateAPIRequest) GetOnlineBookingBindingInfo() string { + return r._onlineBookingBindingInfo +} diff --git a/model/xhotelitem/TaobaoXhotelRateUpdateAPIResponse.go b/model/xhotelitem/TaobaoXhotelRateUpdateAPIResponse.go new file mode 100644 index 0000000000..2cf8e06081 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +价格推送接口(全量更新) API返回值 +taobao.xhotel.rate.update + +酒店产品库rate更新 +*/ +type TaobaoXhotelRateUpdateAPIResponse struct { + model.CommonResponse + TaobaoXhotelRateUpdateAPIResponseModel +} + +// 价格推送接口(全量更新) 成功返回结果 +type TaobaoXhotelRateUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_rate_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 酒店商品ID-酒店RPid + GidAndRpid string `json:"gid_and_rpid,omitempty" xml:"gid_and_rpid,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRateUpdateResponse.go b/model/xhotelitem/TaobaoXhotelRateUpdateResponse.go deleted file mode 100644 index 5c9d3097ee..0000000000 --- a/model/xhotelitem/TaobaoXhotelRateUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -价格推送接口(全量更新) API返回值 -taobao.xhotel.rate.update - -酒店产品库rate更新 -*/ -type TaobaoXhotelRateUpdateAPIResponse struct { - model.CommonResponse - TaobaoXhotelRateUpdateResponse -} - -// 价格推送接口(全量更新) 成功返回结果 -type TaobaoXhotelRateUpdateResponse struct { - XMLName xml.Name `xml:"xhotel_rate_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 酒店商品ID-酒店RPid - GidAndRpid string `json:"gid_and_rpid,omitempty" xml:"gid_and_rpid,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRateplanAddAPIRequest.go b/model/xhotelitem/TaobaoXhotelRateplanAddAPIRequest.go new file mode 100644 index 0000000000..27577685b7 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateplanAddAPIRequest.go @@ -0,0 +1,836 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店产品库rateplan添加 API请求 +taobao.xhotel.rateplan.add + +酒店产品库rateplan +*/ +type TaobaoXhotelRateplanAddAPIRequest struct { + model.Params + // 卖家自己系统的Code,简称RateCode + _rateplanCode string + // 在淘宝搜索页面展示的房价名称。请注意名称里不要维护早餐信息,如果想设置早餐信息,请设置breakfast_count字段即可 + _name string + // 支付类型,只支持:1:预付5:现付6: 信用住7:预付在线预约8:信用住在线预约。其中5,6,7,8四种类型需要申请权限 + _paymentType int64 + // -1:状态早餐,有具体几人价有关系,几人价是几份早餐;0:不含早1:含单早2:含双早N:含N早(-1-99可选) + _breakfastCount int64 + // 不推荐使用 + _feeServicePercent int64 + // 最小入住天数(1-90)。默认1,小时房RP请设置为1 + _minDays int64 + // 最大入住天数(1-90)。默认90 信用住不超过9天,小时房RP请设置为1 + _maxDays int64 + // 首日入住房间数(1-99)。默认1。【废弃】 + _minAmount int64 + // 最小提前预定小时数,从入住当天的24点往前计算。例如如果这个字段设置了48,代表必须至少提前两天预定,那么如果想预定24号入住,,必须在23号零点前下单。 + _minAdvHours int64 + // 最大提前预定小时数,从入住当天的24点往前计算。例如如果这个字段设置了48,代表最多提前两天预定,那么如果想预定24号入住,,必须在23号零点以后下单。 + _maxAdvHours int64 + // 产品每日开始销售时间,start_time一定为当天时间 + _startTime string + // 产品每日结束销售时间,当end_time=12:00:00,表明可售时间从当天12点到次日的凌晨6点(扩展此信息主要为了描述尾房的rp)注意start_time一定是当天的时间。尾房18:00起可售 + _endTime string + // 退订政策字段,是个json串,参考示例值设置改字段的值。允许变更/取消:在XX年XX月XX日XX时前取消收取Y%的手续费,100>Y>=0允许变更/取消:在入住前X小时前取消收取Y%的手续费,100>Y>=0(不超过10条)。1.表示任意退{"cancelPolicyType":1};2.表示不能退{"cancelPolicyType":2};4.从入住当天24点往前推X小时前取消收取Y%手续费,否则不可取消{"cancelPolicyType":4,"policyInfo":{"48":10,"24":20}}表示,从入住日24点往前推提前至少48小时取消,收取10%的手续费,从入住日24点往前推提前至少24小时取消,收取20%的手续费;5.从24点往前推多少小时可退{"cancelPolicyType":5,"policyInfo":{"timeBefore":6}}表示从入住日24点往前推至少6个小时即入住日18点前可免费取消;6.从入住日24点往前推,至少提前小时数扣取首晚房费{"cancelPolicyType":6,"policyInfo":{"14":1}}表示入住日24点往前推14小时,即入住日10点前取消收取首晚房费。 注意:支付类型为预付,那么可以使用所有的退订类型,但是必须是非担保;支付类型为面付或者信任住并且是无担保,那么只能使用1类型的退订;支付类型为面付或者信任住并且为担保,那么只能使用2,5类型的退订;支付类型为在线预约,那么只能使用1,2,5类型的退改。如果支付类型是面付或者信任住并且为担保,那么如果传了4或者6的退订,那么会强制转成类型5。支持多段时间,多间夜扣款。阶梯退手续费限制请查看https://hot.bbs.taobao.com/detail.html?postId=8892814 + _cancelPolicy string + // 1:开启(默认)2:关闭。如果没传值那么默认默认值为1 + _status int64 + // RP的英文名称 + _englishName string + // 担保类型,只支持: 0 无担保 1 峰时首晚担保 2峰时全额担保 3全天首晚担保 4全天全额担保 + _guaranteeType int64 + // 分时担保每日开始担保时间。 (如果设置了峰时担保类型,那么峰时担保时间不能为空,并且必须大于等于8点) + _guaranteeStartTime string + // 双方映射后的会员等级。如需开通,需要申请权限,取值范围为:1,2,3,4,5,none。比如飞猪F3对应商家V4,则传4.(如果有疑问请联系对接技术支持) + _memberLevel string + // 销售渠道。如需开通,需要申请权限。目前支持的渠道有 H:飞猪 O:钉钉商旅 A:集团内部商旅。如果只投放飞猪,改字段不用填写或者只填H;如果有多个用","分开。如果需要投放其他渠道,请联系飞猪运营或者技术支持。 + _channel string + // 不推送则默认2人,如有低于2人的RP限制请推送该字段。 + _occupancy int64 + // 系统商,一般不填写,使用须申请 + _vendor string + // 需申请会员权限。是否是新用户首住优惠rp。1-代表是。0或者不填写代表否 + _firstStay int64 + // 废弃。价格类型字段:0.非协议价;1.集采协议价;如果不是协议价,请不要填写该字段。该字段有权限控制,如需使用,请联系阿里旅行运营。 如果不填写或者填写为0,默认是阿里旅行价 + _agreement int64 + // 在添加rateplan时,同时新增早餐日历。date:说明这条记录的早餐政策breakfast_count:这一天早餐的数量。>=-1,<=99。如果date为空,那么会去读取startDate和endDate(格式都为"yyyy-MM-dd"),即早餐正常属于一个时间段。-1为状态早餐,和最终绑定的几人价有关,如果是一人价那么就是我一份早餐,二人价就是两份早餐。请注意,该字段仅能维护从当前时间开始,10年以内的数据,如果超过10年,会报错。 + _breakfastCal string + // 在新增rateplan的同时新增取消政策日历。 json格式。 date:日历的某一天,格式为"yyyy-MM-dd" cancel_policy:日历某一天的价格政策。格式和限制同cancel_policy。 如果date为空,那么会读取startDate和endDate(格式都为"yyyy-MM-dd"),即取消政策属于某一个时间段。 注意:支付类型为预付,那么可以使用所有的退订类型,但是必须是非担保;支付类型为面付或者信任住并且是无担保,那么只能使用1类型的退订;支付类型为面付或者信任住并且为担保,那么只能使用2,5类型的退订;支付类型为在线预约,那么只能使用1,2,5类型的退改。如果支付类型是面付或者信任住并且为担保,那么如果传了4或者6的退订,那么会强制转成类型5。请注意,该字段仅能维护从当前时间开始,10年以内的数据,如果超过10年,会报错。阶梯退手续费限制请查看https://hot.bbs.taobao.com/detail.html?postId=8892814 + _cancelPolicyCal string + // 在新增rateplan的同时,新增担保日历。date:担保日历的某一天。guarantee:担保政策。其中有两个属性:guaranteeType,guaranteeStartTime。 guaranteeType的可选值同guaranteeType字段,详见guaranteeType字段。guaranteeStartTime格式为"HH:mm"。如果date为空,那么会读取startDate和endDate(格式都为"yyyy-MM-dd"),即担保政策属于某一个时间段。(如果设置了峰时担保类型,那么峰时担保时间不能为空,并且必须大于等于8点)。请注意,该字段仅能维护从当前时间开始,10年以内的数据,如果超过10年,会报错。 + _guaranteeCal string + // 不推荐使用,使用改规则 + _cancelBeforeHour string + // 不推荐使用,使用改规则 + _cancelBeforeDay int64 + // 生效开始时间,用来控制此rateplan生效的开始时间,配合字段deadline_time一起限定rp的有效期 + _effectiveTime string + // 生效截止时间,用来控制此rateplan生效的截止时间,配合字段effective_time一起限定rp的有效期 + _deadlineTime string + // rp类型,1为小时房。目前只支持小时房。如果不是小时房rateplan,则不要填写。如果想要清空该字段可以传入none + _rpType string + // 小时房入住时间跨度。小时房特有字段。比如4小时的小时房,那么值为4 + _hourage string + // 最早可选入住时间,小时房特有字段。格式为HH:mm + _canCheckinEnd string + // 最晚可选入住时间,小时房特有字段。格式为HH:mm + _canCheckinStart string + // 是否学生价,0:否;1:是。 + _isStudent int64 + // 酒店id + _hid int64 + // 房型id + _rid int64 + // 外部房型id + _outRid string + // 外部酒店id + _outHid string + // super rp标记,1是;0否 + _superRpFlag int64 + // base rp标记,1是;0否 + _baseRpFlag int64 + // 2 VCC担保 1 PCI担保 0 支付宝担保(信用住产品担保方式只能为支付宝担保) + _guaranteeMode int64 + // 父rpid,使用场景:当一个rp发布变价rate的时候,记录父rp信息,用于下单时候传递约定的rpcode给外部 + _parentRpCode string + // 父rpcode,使用场景:当一个rp发布变价rate的时候,用于下单时候传递约定的rpcode给外部 + _parentRpid int64 + // 操作rateplan的来源 + _operator string + // 新增RP时的 打标和去标 需求, + _tagJson string + // 来源 + _source int64 + // 保留房提前x小时自动确认时间,比如设置为6 那么从入住当日24点往前推6小时即18:00以前可以自动确认有房,否则是待确认 + _allotmentReleaseTime string + // 普通保留房提前x小时自动确认时间,比如设置为6 那么从入住当日24点往前推6小时即18:00以前可以自动确认有房,否则是待确认 + _commonAllotReleaseTime string + // 商品来源渠道。1:直采(直连酒店PMS), 1-1:直采(非直连) 2:携程系, 3:美团, 4:国内旅行社分销, 5:海外供应商。非酒店资源方卖家必须提供商品来源渠道,携程系包括携程、去哪儿、艺龙。 + _resourceType string + // 是否底价加价,1是底价加价,0 非底价加价rp + _bottomPriceFlag int64 + // 最晚可选离店时间,小时房特有字段。格式为HH:mm + _canCheckoutEnd string + // 会员价支持标识,1表示支持会员价规则 + _memDiscFlag int64 + // 会员价加价规则。c:表示折扣百分比,例子8,意为会员价优惠8%,s:标识起始日期,e:表示截止日期,t:表示加价类型,0:代表折扣。会员价=售价*(1-c%) + _memberDiscountCal string + // RP入住人限制信息。JSON格式 + _guestLimit string + // RP参与的活动,3为尾房,4超级房券 + _activityType string + // 在线预约关联关系推送,priceRuleNumber:加价规则序号 + _onlineBookingBindingInfo string +} + +// 初始化TaobaoXhotelRateplanAddAPIRequest对象 +func NewTaobaoXhotelRateplanAddRequest() *TaobaoXhotelRateplanAddAPIRequest{ + return &TaobaoXhotelRateplanAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRateplanAddAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.rateplan.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRateplanAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RateplanCode Setter +// 卖家自己系统的Code,简称RateCode +func (r *TaobaoXhotelRateplanAddAPIRequest) SetRateplanCode(_rateplanCode string) error { + r._rateplanCode = _rateplanCode + r.Set("rateplan_code", _rateplanCode) + return nil +} + +// RateplanCode Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetRateplanCode() string { + return r._rateplanCode +} +// Name Setter +// 在淘宝搜索页面展示的房价名称。请注意名称里不要维护早餐信息,如果想设置早餐信息,请设置breakfast_count字段即可 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetName() string { + return r._name +} +// PaymentType Setter +// 支付类型,只支持:1:预付5:现付6: 信用住7:预付在线预约8:信用住在线预约。其中5,6,7,8四种类型需要申请权限 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetPaymentType(_paymentType int64) error { + r._paymentType = _paymentType + r.Set("payment_type", _paymentType) + return nil +} + +// PaymentType Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetPaymentType() int64 { + return r._paymentType +} +// BreakfastCount Setter +// -1:状态早餐,有具体几人价有关系,几人价是几份早餐;0:不含早1:含单早2:含双早N:含N早(-1-99可选) +func (r *TaobaoXhotelRateplanAddAPIRequest) SetBreakfastCount(_breakfastCount int64) error { + r._breakfastCount = _breakfastCount + r.Set("breakfast_count", _breakfastCount) + return nil +} + +// BreakfastCount Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetBreakfastCount() int64 { + return r._breakfastCount +} +// FeeServicePercent Setter +// 不推荐使用 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetFeeServicePercent(_feeServicePercent int64) error { + r._feeServicePercent = _feeServicePercent + r.Set("fee_service_percent", _feeServicePercent) + return nil +} + +// FeeServicePercent Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetFeeServicePercent() int64 { + return r._feeServicePercent +} +// MinDays Setter +// 最小入住天数(1-90)。默认1,小时房RP请设置为1 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetMinDays(_minDays int64) error { + r._minDays = _minDays + r.Set("min_days", _minDays) + return nil +} + +// MinDays Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetMinDays() int64 { + return r._minDays +} +// MaxDays Setter +// 最大入住天数(1-90)。默认90 信用住不超过9天,小时房RP请设置为1 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetMaxDays(_maxDays int64) error { + r._maxDays = _maxDays + r.Set("max_days", _maxDays) + return nil +} + +// MaxDays Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetMaxDays() int64 { + return r._maxDays +} +// MinAmount Setter +// 首日入住房间数(1-99)。默认1。【废弃】 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetMinAmount(_minAmount int64) error { + r._minAmount = _minAmount + r.Set("min_amount", _minAmount) + return nil +} + +// MinAmount Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetMinAmount() int64 { + return r._minAmount +} +// MinAdvHours Setter +// 最小提前预定小时数,从入住当天的24点往前计算。例如如果这个字段设置了48,代表必须至少提前两天预定,那么如果想预定24号入住,,必须在23号零点前下单。 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetMinAdvHours(_minAdvHours int64) error { + r._minAdvHours = _minAdvHours + r.Set("min_adv_hours", _minAdvHours) + return nil +} + +// MinAdvHours Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetMinAdvHours() int64 { + return r._minAdvHours +} +// MaxAdvHours Setter +// 最大提前预定小时数,从入住当天的24点往前计算。例如如果这个字段设置了48,代表最多提前两天预定,那么如果想预定24号入住,,必须在23号零点以后下单。 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetMaxAdvHours(_maxAdvHours int64) error { + r._maxAdvHours = _maxAdvHours + r.Set("max_adv_hours", _maxAdvHours) + return nil +} + +// MaxAdvHours Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetMaxAdvHours() int64 { + return r._maxAdvHours +} +// StartTime Setter +// 产品每日开始销售时间,start_time一定为当天时间 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 产品每日结束销售时间,当end_time=12:00:00,表明可售时间从当天12点到次日的凌晨6点(扩展此信息主要为了描述尾房的rp)注意start_time一定是当天的时间。尾房18:00起可售 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetEndTime() string { + return r._endTime +} +// CancelPolicy Setter +// 退订政策字段,是个json串,参考示例值设置改字段的值。允许变更/取消:在XX年XX月XX日XX时前取消收取Y%的手续费,100>Y>=0允许变更/取消:在入住前X小时前取消收取Y%的手续费,100>Y>=0(不超过10条)。1.表示任意退{"cancelPolicyType":1};2.表示不能退{"cancelPolicyType":2};4.从入住当天24点往前推X小时前取消收取Y%手续费,否则不可取消{"cancelPolicyType":4,"policyInfo":{"48":10,"24":20}}表示,从入住日24点往前推提前至少48小时取消,收取10%的手续费,从入住日24点往前推提前至少24小时取消,收取20%的手续费;5.从24点往前推多少小时可退{"cancelPolicyType":5,"policyInfo":{"timeBefore":6}}表示从入住日24点往前推至少6个小时即入住日18点前可免费取消;6.从入住日24点往前推,至少提前小时数扣取首晚房费{"cancelPolicyType":6,"policyInfo":{"14":1}}表示入住日24点往前推14小时,即入住日10点前取消收取首晚房费。 注意:支付类型为预付,那么可以使用所有的退订类型,但是必须是非担保;支付类型为面付或者信任住并且是无担保,那么只能使用1类型的退订;支付类型为面付或者信任住并且为担保,那么只能使用2,5类型的退订;支付类型为在线预约,那么只能使用1,2,5类型的退改。如果支付类型是面付或者信任住并且为担保,那么如果传了4或者6的退订,那么会强制转成类型5。支持多段时间,多间夜扣款。阶梯退手续费限制请查看https://hot.bbs.taobao.com/detail.html?postId=8892814 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetCancelPolicy(_cancelPolicy string) error { + r._cancelPolicy = _cancelPolicy + r.Set("cancel_policy", _cancelPolicy) + return nil +} + +// CancelPolicy Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetCancelPolicy() string { + return r._cancelPolicy +} +// Status Setter +// 1:开启(默认)2:关闭。如果没传值那么默认默认值为1 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetStatus() int64 { + return r._status +} +// EnglishName Setter +// RP的英文名称 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetEnglishName(_englishName string) error { + r._englishName = _englishName + r.Set("english_name", _englishName) + return nil +} + +// EnglishName Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetEnglishName() string { + return r._englishName +} +// GuaranteeType Setter +// 担保类型,只支持: 0 无担保 1 峰时首晚担保 2峰时全额担保 3全天首晚担保 4全天全额担保 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetGuaranteeType(_guaranteeType int64) error { + r._guaranteeType = _guaranteeType + r.Set("guarantee_type", _guaranteeType) + return nil +} + +// GuaranteeType Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetGuaranteeType() int64 { + return r._guaranteeType +} +// GuaranteeStartTime Setter +// 分时担保每日开始担保时间。 (如果设置了峰时担保类型,那么峰时担保时间不能为空,并且必须大于等于8点) +func (r *TaobaoXhotelRateplanAddAPIRequest) SetGuaranteeStartTime(_guaranteeStartTime string) error { + r._guaranteeStartTime = _guaranteeStartTime + r.Set("guarantee_start_time", _guaranteeStartTime) + return nil +} + +// GuaranteeStartTime Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetGuaranteeStartTime() string { + return r._guaranteeStartTime +} +// MemberLevel Setter +// 双方映射后的会员等级。如需开通,需要申请权限,取值范围为:1,2,3,4,5,none。比如飞猪F3对应商家V4,则传4.(如果有疑问请联系对接技术支持) +func (r *TaobaoXhotelRateplanAddAPIRequest) SetMemberLevel(_memberLevel string) error { + r._memberLevel = _memberLevel + r.Set("member_level", _memberLevel) + return nil +} + +// MemberLevel Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetMemberLevel() string { + return r._memberLevel +} +// Channel Setter +// 销售渠道。如需开通,需要申请权限。目前支持的渠道有 H:飞猪 O:钉钉商旅 A:集团内部商旅。如果只投放飞猪,改字段不用填写或者只填H;如果有多个用","分开。如果需要投放其他渠道,请联系飞猪运营或者技术支持。 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetChannel() string { + return r._channel +} +// Occupancy Setter +// 不推送则默认2人,如有低于2人的RP限制请推送该字段。 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetOccupancy(_occupancy int64) error { + r._occupancy = _occupancy + r.Set("occupancy", _occupancy) + return nil +} + +// Occupancy Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetOccupancy() int64 { + return r._occupancy +} +// Vendor Setter +// 系统商,一般不填写,使用须申请 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetVendor() string { + return r._vendor +} +// FirstStay Setter +// 需申请会员权限。是否是新用户首住优惠rp。1-代表是。0或者不填写代表否 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetFirstStay(_firstStay int64) error { + r._firstStay = _firstStay + r.Set("first_stay", _firstStay) + return nil +} + +// FirstStay Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetFirstStay() int64 { + return r._firstStay +} +// Agreement Setter +// 废弃。价格类型字段:0.非协议价;1.集采协议价;如果不是协议价,请不要填写该字段。该字段有权限控制,如需使用,请联系阿里旅行运营。 如果不填写或者填写为0,默认是阿里旅行价 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetAgreement(_agreement int64) error { + r._agreement = _agreement + r.Set("agreement", _agreement) + return nil +} + +// Agreement Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetAgreement() int64 { + return r._agreement +} +// BreakfastCal Setter +// 在添加rateplan时,同时新增早餐日历。date:说明这条记录的早餐政策breakfast_count:这一天早餐的数量。>=-1,<=99。如果date为空,那么会去读取startDate和endDate(格式都为"yyyy-MM-dd"),即早餐正常属于一个时间段。-1为状态早餐,和最终绑定的几人价有关,如果是一人价那么就是我一份早餐,二人价就是两份早餐。请注意,该字段仅能维护从当前时间开始,10年以内的数据,如果超过10年,会报错。 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetBreakfastCal(_breakfastCal string) error { + r._breakfastCal = _breakfastCal + r.Set("breakfast_cal", _breakfastCal) + return nil +} + +// BreakfastCal Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetBreakfastCal() string { + return r._breakfastCal +} +// CancelPolicyCal Setter +// 在新增rateplan的同时新增取消政策日历。 json格式。 date:日历的某一天,格式为"yyyy-MM-dd" cancel_policy:日历某一天的价格政策。格式和限制同cancel_policy。 如果date为空,那么会读取startDate和endDate(格式都为"yyyy-MM-dd"),即取消政策属于某一个时间段。 注意:支付类型为预付,那么可以使用所有的退订类型,但是必须是非担保;支付类型为面付或者信任住并且是无担保,那么只能使用1类型的退订;支付类型为面付或者信任住并且为担保,那么只能使用2,5类型的退订;支付类型为在线预约,那么只能使用1,2,5类型的退改。如果支付类型是面付或者信任住并且为担保,那么如果传了4或者6的退订,那么会强制转成类型5。请注意,该字段仅能维护从当前时间开始,10年以内的数据,如果超过10年,会报错。阶梯退手续费限制请查看https://hot.bbs.taobao.com/detail.html?postId=8892814 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetCancelPolicyCal(_cancelPolicyCal string) error { + r._cancelPolicyCal = _cancelPolicyCal + r.Set("cancel_policy_cal", _cancelPolicyCal) + return nil +} + +// CancelPolicyCal Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetCancelPolicyCal() string { + return r._cancelPolicyCal +} +// GuaranteeCal Setter +// 在新增rateplan的同时,新增担保日历。date:担保日历的某一天。guarantee:担保政策。其中有两个属性:guaranteeType,guaranteeStartTime。 guaranteeType的可选值同guaranteeType字段,详见guaranteeType字段。guaranteeStartTime格式为"HH:mm"。如果date为空,那么会读取startDate和endDate(格式都为"yyyy-MM-dd"),即担保政策属于某一个时间段。(如果设置了峰时担保类型,那么峰时担保时间不能为空,并且必须大于等于8点)。请注意,该字段仅能维护从当前时间开始,10年以内的数据,如果超过10年,会报错。 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetGuaranteeCal(_guaranteeCal string) error { + r._guaranteeCal = _guaranteeCal + r.Set("guarantee_cal", _guaranteeCal) + return nil +} + +// GuaranteeCal Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetGuaranteeCal() string { + return r._guaranteeCal +} +// CancelBeforeHour Setter +// 不推荐使用,使用改规则 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetCancelBeforeHour(_cancelBeforeHour string) error { + r._cancelBeforeHour = _cancelBeforeHour + r.Set("cancel_before_hour", _cancelBeforeHour) + return nil +} + +// CancelBeforeHour Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetCancelBeforeHour() string { + return r._cancelBeforeHour +} +// CancelBeforeDay Setter +// 不推荐使用,使用改规则 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetCancelBeforeDay(_cancelBeforeDay int64) error { + r._cancelBeforeDay = _cancelBeforeDay + r.Set("cancel_before_day", _cancelBeforeDay) + return nil +} + +// CancelBeforeDay Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetCancelBeforeDay() int64 { + return r._cancelBeforeDay +} +// EffectiveTime Setter +// 生效开始时间,用来控制此rateplan生效的开始时间,配合字段deadline_time一起限定rp的有效期 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetEffectiveTime(_effectiveTime string) error { + r._effectiveTime = _effectiveTime + r.Set("effective_time", _effectiveTime) + return nil +} + +// EffectiveTime Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetEffectiveTime() string { + return r._effectiveTime +} +// DeadlineTime Setter +// 生效截止时间,用来控制此rateplan生效的截止时间,配合字段effective_time一起限定rp的有效期 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetDeadlineTime(_deadlineTime string) error { + r._deadlineTime = _deadlineTime + r.Set("deadline_time", _deadlineTime) + return nil +} + +// DeadlineTime Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetDeadlineTime() string { + return r._deadlineTime +} +// RpType Setter +// rp类型,1为小时房。目前只支持小时房。如果不是小时房rateplan,则不要填写。如果想要清空该字段可以传入none +func (r *TaobaoXhotelRateplanAddAPIRequest) SetRpType(_rpType string) error { + r._rpType = _rpType + r.Set("rp_type", _rpType) + return nil +} + +// RpType Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetRpType() string { + return r._rpType +} +// Hourage Setter +// 小时房入住时间跨度。小时房特有字段。比如4小时的小时房,那么值为4 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetHourage(_hourage string) error { + r._hourage = _hourage + r.Set("hourage", _hourage) + return nil +} + +// Hourage Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetHourage() string { + return r._hourage +} +// CanCheckinEnd Setter +// 最早可选入住时间,小时房特有字段。格式为HH:mm +func (r *TaobaoXhotelRateplanAddAPIRequest) SetCanCheckinEnd(_canCheckinEnd string) error { + r._canCheckinEnd = _canCheckinEnd + r.Set("can_checkin_end", _canCheckinEnd) + return nil +} + +// CanCheckinEnd Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetCanCheckinEnd() string { + return r._canCheckinEnd +} +// CanCheckinStart Setter +// 最晚可选入住时间,小时房特有字段。格式为HH:mm +func (r *TaobaoXhotelRateplanAddAPIRequest) SetCanCheckinStart(_canCheckinStart string) error { + r._canCheckinStart = _canCheckinStart + r.Set("can_checkin_start", _canCheckinStart) + return nil +} + +// CanCheckinStart Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetCanCheckinStart() string { + return r._canCheckinStart +} +// IsStudent Setter +// 是否学生价,0:否;1:是。 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetIsStudent(_isStudent int64) error { + r._isStudent = _isStudent + r.Set("is_student", _isStudent) + return nil +} + +// IsStudent Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetIsStudent() int64 { + return r._isStudent +} +// Hid Setter +// 酒店id +func (r *TaobaoXhotelRateplanAddAPIRequest) SetHid(_hid int64) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetHid() int64 { + return r._hid +} +// Rid Setter +// 房型id +func (r *TaobaoXhotelRateplanAddAPIRequest) SetRid(_rid int64) error { + r._rid = _rid + r.Set("rid", _rid) + return nil +} + +// Rid Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetRid() int64 { + return r._rid +} +// OutRid Setter +// 外部房型id +func (r *TaobaoXhotelRateplanAddAPIRequest) SetOutRid(_outRid string) error { + r._outRid = _outRid + r.Set("out_rid", _outRid) + return nil +} + +// OutRid Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetOutRid() string { + return r._outRid +} +// OutHid Setter +// 外部酒店id +func (r *TaobaoXhotelRateplanAddAPIRequest) SetOutHid(_outHid string) error { + r._outHid = _outHid + r.Set("out_hid", _outHid) + return nil +} + +// OutHid Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetOutHid() string { + return r._outHid +} +// SuperRpFlag Setter +// super rp标记,1是;0否 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetSuperRpFlag(_superRpFlag int64) error { + r._superRpFlag = _superRpFlag + r.Set("super_rp_flag", _superRpFlag) + return nil +} + +// SuperRpFlag Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetSuperRpFlag() int64 { + return r._superRpFlag +} +// BaseRpFlag Setter +// base rp标记,1是;0否 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetBaseRpFlag(_baseRpFlag int64) error { + r._baseRpFlag = _baseRpFlag + r.Set("base_rp_flag", _baseRpFlag) + return nil +} + +// BaseRpFlag Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetBaseRpFlag() int64 { + return r._baseRpFlag +} +// GuaranteeMode Setter +// 2 VCC担保 1 PCI担保 0 支付宝担保(信用住产品担保方式只能为支付宝担保) +func (r *TaobaoXhotelRateplanAddAPIRequest) SetGuaranteeMode(_guaranteeMode int64) error { + r._guaranteeMode = _guaranteeMode + r.Set("guarantee_mode", _guaranteeMode) + return nil +} + +// GuaranteeMode Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetGuaranteeMode() int64 { + return r._guaranteeMode +} +// ParentRpCode Setter +// 父rpid,使用场景:当一个rp发布变价rate的时候,记录父rp信息,用于下单时候传递约定的rpcode给外部 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetParentRpCode(_parentRpCode string) error { + r._parentRpCode = _parentRpCode + r.Set("parent_rp_code", _parentRpCode) + return nil +} + +// ParentRpCode Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetParentRpCode() string { + return r._parentRpCode +} +// ParentRpid Setter +// 父rpcode,使用场景:当一个rp发布变价rate的时候,用于下单时候传递约定的rpcode给外部 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetParentRpid(_parentRpid int64) error { + r._parentRpid = _parentRpid + r.Set("parent_rpid", _parentRpid) + return nil +} + +// ParentRpid Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetParentRpid() int64 { + return r._parentRpid +} +// Operator Setter +// 操作rateplan的来源 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetOperator(_operator string) error { + r._operator = _operator + r.Set("operator", _operator) + return nil +} + +// Operator Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetOperator() string { + return r._operator +} +// TagJson Setter +// 新增RP时的 打标和去标 需求, +func (r *TaobaoXhotelRateplanAddAPIRequest) SetTagJson(_tagJson string) error { + r._tagJson = _tagJson + r.Set("tag_json", _tagJson) + return nil +} + +// TagJson Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetTagJson() string { + return r._tagJson +} +// Source Setter +// 来源 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetSource(_source int64) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetSource() int64 { + return r._source +} +// AllotmentReleaseTime Setter +// 保留房提前x小时自动确认时间,比如设置为6 那么从入住当日24点往前推6小时即18:00以前可以自动确认有房,否则是待确认 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetAllotmentReleaseTime(_allotmentReleaseTime string) error { + r._allotmentReleaseTime = _allotmentReleaseTime + r.Set("allotment_release_time", _allotmentReleaseTime) + return nil +} + +// AllotmentReleaseTime Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetAllotmentReleaseTime() string { + return r._allotmentReleaseTime +} +// CommonAllotReleaseTime Setter +// 普通保留房提前x小时自动确认时间,比如设置为6 那么从入住当日24点往前推6小时即18:00以前可以自动确认有房,否则是待确认 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetCommonAllotReleaseTime(_commonAllotReleaseTime string) error { + r._commonAllotReleaseTime = _commonAllotReleaseTime + r.Set("common_allot_release_time", _commonAllotReleaseTime) + return nil +} + +// CommonAllotReleaseTime Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetCommonAllotReleaseTime() string { + return r._commonAllotReleaseTime +} +// ResourceType Setter +// 商品来源渠道。1:直采(直连酒店PMS), 1-1:直采(非直连) 2:携程系, 3:美团, 4:国内旅行社分销, 5:海外供应商。非酒店资源方卖家必须提供商品来源渠道,携程系包括携程、去哪儿、艺龙。 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetResourceType(_resourceType string) error { + r._resourceType = _resourceType + r.Set("resource_type", _resourceType) + return nil +} + +// ResourceType Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetResourceType() string { + return r._resourceType +} +// BottomPriceFlag Setter +// 是否底价加价,1是底价加价,0 非底价加价rp +func (r *TaobaoXhotelRateplanAddAPIRequest) SetBottomPriceFlag(_bottomPriceFlag int64) error { + r._bottomPriceFlag = _bottomPriceFlag + r.Set("bottom_price_flag", _bottomPriceFlag) + return nil +} + +// BottomPriceFlag Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetBottomPriceFlag() int64 { + return r._bottomPriceFlag +} +// CanCheckoutEnd Setter +// 最晚可选离店时间,小时房特有字段。格式为HH:mm +func (r *TaobaoXhotelRateplanAddAPIRequest) SetCanCheckoutEnd(_canCheckoutEnd string) error { + r._canCheckoutEnd = _canCheckoutEnd + r.Set("can_checkout_end", _canCheckoutEnd) + return nil +} + +// CanCheckoutEnd Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetCanCheckoutEnd() string { + return r._canCheckoutEnd +} +// MemDiscFlag Setter +// 会员价支持标识,1表示支持会员价规则 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetMemDiscFlag(_memDiscFlag int64) error { + r._memDiscFlag = _memDiscFlag + r.Set("mem_disc_flag", _memDiscFlag) + return nil +} + +// MemDiscFlag Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetMemDiscFlag() int64 { + return r._memDiscFlag +} +// MemberDiscountCal Setter +// 会员价加价规则。c:表示折扣百分比,例子8,意为会员价优惠8%,s:标识起始日期,e:表示截止日期,t:表示加价类型,0:代表折扣。会员价=售价*(1-c%) +func (r *TaobaoXhotelRateplanAddAPIRequest) SetMemberDiscountCal(_memberDiscountCal string) error { + r._memberDiscountCal = _memberDiscountCal + r.Set("member_discount_cal", _memberDiscountCal) + return nil +} + +// MemberDiscountCal Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetMemberDiscountCal() string { + return r._memberDiscountCal +} +// GuestLimit Setter +// RP入住人限制信息。JSON格式 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetGuestLimit(_guestLimit string) error { + r._guestLimit = _guestLimit + r.Set("guest_limit", _guestLimit) + return nil +} + +// GuestLimit Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetGuestLimit() string { + return r._guestLimit +} +// ActivityType Setter +// RP参与的活动,3为尾房,4超级房券 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetActivityType(_activityType string) error { + r._activityType = _activityType + r.Set("activity_type", _activityType) + return nil +} + +// ActivityType Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetActivityType() string { + return r._activityType +} +// OnlineBookingBindingInfo Setter +// 在线预约关联关系推送,priceRuleNumber:加价规则序号 +func (r *TaobaoXhotelRateplanAddAPIRequest) SetOnlineBookingBindingInfo(_onlineBookingBindingInfo string) error { + r._onlineBookingBindingInfo = _onlineBookingBindingInfo + r.Set("online_booking_binding_info", _onlineBookingBindingInfo) + return nil +} + +// OnlineBookingBindingInfo Getter +func (r TaobaoXhotelRateplanAddAPIRequest) GetOnlineBookingBindingInfo() string { + return r._onlineBookingBindingInfo +} diff --git a/model/xhotelitem/TaobaoXhotelRateplanAddAPIResponse.go b/model/xhotelitem/TaobaoXhotelRateplanAddAPIResponse.go new file mode 100644 index 0000000000..5950ca60e3 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateplanAddAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店产品库rateplan添加 API返回值 +taobao.xhotel.rateplan.add + +酒店产品库rateplan +*/ +type TaobaoXhotelRateplanAddAPIResponse struct { + model.CommonResponse + TaobaoXhotelRateplanAddAPIResponseModel +} + +// 酒店产品库rateplan添加 成功返回结果 +type TaobaoXhotelRateplanAddAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_rateplan_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 生成的rp id + Rpid int64 `json:"rpid,omitempty" xml:"rpid,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRateplanAddResponse.go b/model/xhotelitem/TaobaoXhotelRateplanAddResponse.go deleted file mode 100644 index e1a52e198e..0000000000 --- a/model/xhotelitem/TaobaoXhotelRateplanAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店产品库rateplan添加 API返回值 -taobao.xhotel.rateplan.add - -酒店产品库rateplan -*/ -type TaobaoXhotelRateplanAddAPIResponse struct { - model.CommonResponse - TaobaoXhotelRateplanAddResponse -} - -// 酒店产品库rateplan添加 成功返回结果 -type TaobaoXhotelRateplanAddResponse struct { - XMLName xml.Name `xml:"xhotel_rateplan_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 生成的rp id - Rpid int64 `json:"rpid,omitempty" xml:"rpid,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRateplanDeleteAPIRequest.go b/model/xhotelitem/TaobaoXhotelRateplanDeleteAPIRequest.go new file mode 100644 index 0000000000..2c5ba2f3ac --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateplanDeleteAPIRequest.go @@ -0,0 +1,80 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +价格计划rateplan删除 API请求 +taobao.xhotel.rateplan.delete + +酒店产品库rateplan删除,同时删除级联的rate,请谨慎使用 +*/ +type TaobaoXhotelRateplanDeleteAPIRequest struct { + model.Params + // ratepland标识 + _rpId int64 + // 系统商,一般不用填写,使用须申请 + _vendor string + // 商家价格政策编码 + _rateplanCode string +} + +// 初始化TaobaoXhotelRateplanDeleteAPIRequest对象 +func NewTaobaoXhotelRateplanDeleteRequest() *TaobaoXhotelRateplanDeleteAPIRequest{ + return &TaobaoXhotelRateplanDeleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRateplanDeleteAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.rateplan.delete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRateplanDeleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RpId Setter +// ratepland标识 +func (r *TaobaoXhotelRateplanDeleteAPIRequest) SetRpId(_rpId int64) error { + r._rpId = _rpId + r.Set("rp_id", _rpId) + return nil +} + +// RpId Getter +func (r TaobaoXhotelRateplanDeleteAPIRequest) GetRpId() int64 { + return r._rpId +} +// Vendor Setter +// 系统商,一般不用填写,使用须申请 +func (r *TaobaoXhotelRateplanDeleteAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelRateplanDeleteAPIRequest) GetVendor() string { + return r._vendor +} +// RateplanCode Setter +// 商家价格政策编码 +func (r *TaobaoXhotelRateplanDeleteAPIRequest) SetRateplanCode(_rateplanCode string) error { + r._rateplanCode = _rateplanCode + r.Set("rateplan_code", _rateplanCode) + return nil +} + +// RateplanCode Getter +func (r TaobaoXhotelRateplanDeleteAPIRequest) GetRateplanCode() string { + return r._rateplanCode +} diff --git a/model/xhotelitem/TaobaoXhotelRateplanDeleteAPIResponse.go b/model/xhotelitem/TaobaoXhotelRateplanDeleteAPIResponse.go new file mode 100644 index 0000000000..18cae73ab8 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateplanDeleteAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +价格计划rateplan删除 API返回值 +taobao.xhotel.rateplan.delete + +酒店产品库rateplan删除,同时删除级联的rate,请谨慎使用 +*/ +type TaobaoXhotelRateplanDeleteAPIResponse struct { + model.CommonResponse + TaobaoXhotelRateplanDeleteAPIResponseModel +} + +// 价格计划rateplan删除 成功返回结果 +type TaobaoXhotelRateplanDeleteAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_rateplan_delete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoXhotelRateplanDeleteResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRateplanDeleteResponse.go b/model/xhotelitem/TaobaoXhotelRateplanDeleteResponse.go deleted file mode 100644 index fbf724bf6f..0000000000 --- a/model/xhotelitem/TaobaoXhotelRateplanDeleteResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -价格计划rateplan删除 API返回值 -taobao.xhotel.rateplan.delete - -酒店产品库rateplan删除,同时删除级联的rate,请谨慎使用 -*/ -type TaobaoXhotelRateplanDeleteAPIResponse struct { - model.CommonResponse - TaobaoXhotelRateplanDeleteResponse -} - -// 价格计划rateplan删除 成功返回结果 -type TaobaoXhotelRateplanDeleteResponse struct { - XMLName xml.Name `xml:"xhotel_rateplan_delete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoXhotelRateplanDeleteResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRateplanGetAPIRequest.go b/model/xhotelitem/TaobaoXhotelRateplanGetAPIRequest.go new file mode 100644 index 0000000000..662f702b3d --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateplanGetAPIRequest.go @@ -0,0 +1,80 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +价格计划rateplan查询 API请求 +taobao.xhotel.rateplan.get + +酒店产品库rateplan查询 +*/ +type TaobaoXhotelRateplanGetAPIRequest struct { + model.Params + // 废弃,使用rateplan_code + _rpid int64 + // 卖家自己系统的Code,简称RateCode + _rateplanCode string + // 系统商,一般不填写,使用须申请 + _vendor string +} + +// 初始化TaobaoXhotelRateplanGetAPIRequest对象 +func NewTaobaoXhotelRateplanGetRequest() *TaobaoXhotelRateplanGetAPIRequest{ + return &TaobaoXhotelRateplanGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRateplanGetAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.rateplan.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRateplanGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rpid Setter +// 废弃,使用rateplan_code +func (r *TaobaoXhotelRateplanGetAPIRequest) SetRpid(_rpid int64) error { + r._rpid = _rpid + r.Set("rpid", _rpid) + return nil +} + +// Rpid Getter +func (r TaobaoXhotelRateplanGetAPIRequest) GetRpid() int64 { + return r._rpid +} +// RateplanCode Setter +// 卖家自己系统的Code,简称RateCode +func (r *TaobaoXhotelRateplanGetAPIRequest) SetRateplanCode(_rateplanCode string) error { + r._rateplanCode = _rateplanCode + r.Set("rateplan_code", _rateplanCode) + return nil +} + +// RateplanCode Getter +func (r TaobaoXhotelRateplanGetAPIRequest) GetRateplanCode() string { + return r._rateplanCode +} +// Vendor Setter +// 系统商,一般不填写,使用须申请 +func (r *TaobaoXhotelRateplanGetAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelRateplanGetAPIRequest) GetVendor() string { + return r._vendor +} diff --git a/model/xhotelitem/TaobaoXhotelRateplanGetAPIResponse.go b/model/xhotelitem/TaobaoXhotelRateplanGetAPIResponse.go new file mode 100644 index 0000000000..1627b58f7d --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateplanGetAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +价格计划rateplan查询 API返回值 +taobao.xhotel.rateplan.get + +酒店产品库rateplan查询 +*/ +type TaobaoXhotelRateplanGetAPIResponse struct { + model.CommonResponse + TaobaoXhotelRateplanGetAPIResponseModel +} + +// 价格计划rateplan查询 成功返回结果 +type TaobaoXhotelRateplanGetAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_rateplan_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // rateplan + Rateplan *RatePlan `json:"rateplan,omitempty" xml:"rateplan,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRateplanGetResponse.go b/model/xhotelitem/TaobaoXhotelRateplanGetResponse.go deleted file mode 100644 index fd0f6e983d..0000000000 --- a/model/xhotelitem/TaobaoXhotelRateplanGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -价格计划rateplan查询 API返回值 -taobao.xhotel.rateplan.get - -酒店产品库rateplan查询 -*/ -type TaobaoXhotelRateplanGetAPIResponse struct { - model.CommonResponse - TaobaoXhotelRateplanGetResponse -} - -// 价格计划rateplan查询 成功返回结果 -type TaobaoXhotelRateplanGetResponse struct { - XMLName xml.Name `xml:"xhotel_rateplan_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // rateplan - Rateplan *RatePlan `json:"rateplan,omitempty" xml:"rateplan,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRateplanUpdateAPIRequest.go b/model/xhotelitem/TaobaoXhotelRateplanUpdateAPIRequest.go new file mode 100644 index 0000000000..5f4ff4c6c8 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateplanUpdateAPIRequest.go @@ -0,0 +1,864 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +价格计划rateplan更新或添加 API请求 +taobao.xhotel.rateplan.update + +酒店产品库rateplan更新或添加 +*/ +type TaobaoXhotelRateplanUpdateAPIRequest struct { + model.Params + // 在淘宝搜索页面展示的房价名称;(添加RP时为必须)。注意该名称不要包含早餐相关信息,如果想维护早餐信息,请设置breakfast_count字段即可。 + _name string + // -1,状态早餐,和入住人数有关系,几人价就是几份早餐;0:不含早1:含单早2:含双早N:含N早(1-99可选);(添加RP时为必须) + _breakfastCount int64 + // 最小入住天数(1-90)。默认1,小时房RP请设置为1 + _minDays int64 + // 最大入住天数(1-90)。默认90,信用住最大入住天数不超过9天,小时房RP请设置为1 + _maxDays int64 + // 首日入住房间数(1-99)。默认1。【废弃】 + _minAmount int64 + // 最小提前预定小时数,从入住当天的24点往前计算。例如如果这个字段设置了48,代表必须至少提前两天预定,那么如果想预定24号入住,,必须在23号零点前下单。 + _minAdvHours int64 + // 最大提前预定小时数,从入住当天的24点往前计算。例如如果这个字段设置了48,代表最多提前两天预定,那么如果想预定24号入住,,必须在23号零点以后下单。 + _maxAdvHours int64 + // 产品每日开始销售时间,start_time一定为当天时间 + _startTime string + // 产品每日开始销售时间,start_time一定为当天时间 + _endTime string + // 退订政策字段,是个json串,参考示例值设置改字段的值。允许变更/取消:在XX年XX月XX日XX时前取消收取Y%的手续费,100>Y>=0允许变更/取消:在入住前X小时前取消收取Y%的手续费,100>Y>=0(不超过10条)。1.表示任意退{"cancelPolicyType":1};2.表示不能退{"cancelPolicyType":2};4.从入住当天24点往前推X小时前取消收取Y%手续费,否则不可取消{"cancelPolicyType":4,"policyInfo":{"48":10,"24":20}}表示,从入住日24点往前推提前至少48小时取消,收取10%的手续费,从入住日24点往前推提前至少24小时取消,收取20%的手续费;5.从24点往前推多少小时可退{"cancelPolicyType":5,"policyInfo":{"timeBefore":6}}表示从入住日24点往前推至少6个小时即入住日18点前可免费取消;6.从入住日24点往前推,至少提前小时数扣取首晚房费{"cancelPolicyType":6,"policyInfo":{"14":1}}表示入住日24点往前推14小时,即入住日10点前取消收取首晚房费。 注意:支付类型为预付,那么可以使用所有的退订类型,但是必须是非担保;支付类型为面付或者信任住并且是无担保,那么只能使用1类型的退订;支付类型为面付或者信任住并且为担保,那么只能使用2,5类型的退订;支付类型为在线预约,那么只能使用1,2,5类型的退改。如果支付类型是面付或者信任住并且为担保,那么如果传了4或者6的退订,那么会强制转成类型5。支持多段时间、多间夜扣款 + _cancelPolicy string + // 1:开启(默认)2:关闭。如果没传值那么默认默认值为1;(添加RP时为必须) + _status int64 + // RP的英文名称 + _englishName string + // 担保类型,只支持: 0 无担保 1 峰时首晚担保 2峰时全额担保 3全天首晚担保 4全天全额担保 + _guaranteeType int64 + // 分时担保每日开始担保时间。 (如果设置了峰时担保类型,那么峰时担保时间不能为空,并且必须大于等于8点) + _guaranteeStartTime string + // 双方映射后的会员等级。如需开通,需要申请权限,取值范围为:1,2,3,4,5,none。比如飞猪F3对应商家V4,则传4.(如果有疑问请联系对接技术支持) + _memberLevel string + // 销售渠道。如需开通,需要申请权限。目前支持的渠道有 H:飞猪 O:钉钉商旅 A:集团内部商旅 M:无线专享价。如果只投放飞猪,改字段不用填写或者只填H;如果有多个用","分开。如果需要投放其他渠道,请联系飞猪运营或者技术支持。 + _channel string + // 系统商,一般不用填写,使用须申请 + _vendor string + // 商家价格政策编码 + _rateplanCode string + // 需申请会员权限。是否是新用户首住优惠rp。1-代表是。0-代表否。不填写代表不更新该字段。 + _firstStay int64 + // 价格类型字段:0.非协议价;1.集采协议价;如果不是协议价,请不要填写该字段。该字段有权限控制,如需使用,请联系阿里旅行运营。 如果不填写或者填写为0,默认是阿里旅行价 + _agreement int64 + // 在更新rateplan时,同时新增或更新早餐日历。 date:早餐政策属于具体哪一天 breakfast_count:这一天早餐的数量。>=0,<=99 如果date为空,那么会去读取startDate和endDate(格式都为"yyyy-MM-dd"),即早餐正常属于一个时间段。-1为状态早餐,和最终绑定的几人价有关,如果是一人价那么就是我一份早餐,二人价就是两份早餐。请注意,该字段仅能维护从当前时间开始,10年以内的数据,如果超过10年,会报错。 + _breakfastCal string + // 在新增rateplan的同时新增取消政策日历。 json格式。 date:日历的某一天,格式为"yyyy-MM-dd" cancel_policy:日历某一天的价格政策。格式和限制同cancel_policy。 如果date为空,那么会读取startDate和endDate(格式都为"yyyy-MM-dd"),即取消政策属于某一个时间段。 注意:支付类型为预付,那么可以使用所有的退订类型,但是必须是非担保;支付类型为面付或者信任住并且是无担保,那么只能使用1类型的退订;支付类型为面付或者信任住并且为担保,那么只能使用2,5类型的退订;支付类型为在线预约,那么只能使用1,2,5类型的退改。如果支付类型是面付或者信任住并且为担保,那么如果传了4或者6的退订,那么会强制转成类型5。请注意,该字段仅能维护从当前时间开始,10年以内的数据,如果超过10年,会报错。 + _cancelPolicyCal string + // 在更新rateplan的同时,新增或更新担保日历。 date:担保日历的某一天。 guarantee:担保政策。 其中有两个属性:guaranteeType,guaranteeStartTime。 guaranteeType的可选值同guaranteeType字段,详见guaranteeType字段。guaranteeStartTime格式为"HH:mm" 。如果date为空,那么会读取startDate和endDate(格式都为"yyyy-MM-dd"),即担保政策属于某一个时间段。(如果设置了峰时担保类型,那么峰时担保时间不能为空,并且必须大于等于8点) 请注意,该字段仅能维护从当前时间开始,10年以内的数据,如果超过10年,会报错。 + _guaranteeCal string + // 生效开始时间,用来控制此rateplan生效的开始时间,配合字段deadline_time一起限定rp的有效期 + _effectiveTime string + // 生效截止时间,用来控制此rateplan生效的截止时间,配合字段effective_time一起限定rp的有效期 + _deadlineTime string + // 支付类型,只支持:1:预付5:现付6: 信用住7:在线预约8:在线预约信用住。其中5,6,7,8三种类型需要申请权限 + _paymentType int64 + // rp类型,1为小时房。目前只支持小时房。如果不是小时房rateplan,则不要填写。如果想要清空该字段可以传入none + _rpType string + // 小时房入住时间跨度。小时房特有字段。比如4小时的小时房,那么值为4 + _hourage string + // 最晚可选入住时间,小时房特有字段。格式为HH:mm + _canCheckinEnd string + // 最早可选入住时间,小时房特有字段。格式为HH:mm + _canCheckinStart string + // 学生价,1:是;0:否 + _isStudent int64 + // 酒店id + _hid int64 + // 房型id + _rid int64 + // 外部房型id + _outRid string + // 外部酒店id + _outHid string + // super rp标记,1是;0否 + _superRpFlag int64 + // base rp标记,1是;0否 + _baseRpFlag int64 + // -9999 清空担保, 2 VCC担保, 1 PCI担保,0 支付宝担保(信用住产品担保方式只能为支付宝担保) + _guaranteeMode int64 + // operator + _operator string + // 父rpcode,使用场景:当一个rp发布变价rate的时候,用于下单时候传递约定的rpcode给外部 + _parentRpCode string + // 父rpid,使用场景:当一个rp发布变价rate的时候,记录父rp信息,用于下单时候传递约定的rpcode给外部 + _parentRpid int64 + // 更新RP时的 打标和去标 需求, 0 就是 去标, 1 就是打标, key的含义: non-direct-RP 表示非直连RP,, super-could-price-change-RP 表示rp的super标,打上这个tag,表明这个rateplan下单的时候支持变价,商家系统直接放开价格校验。 base-could-derived-RP 表示base rateplan标签,打上了这个tag,表明这是一个base的rateplan,基于该rateplan可以衍生出子rateplan, ebk-tail-room-RP 表示 ebk尾房rate plan级别标 + _tagJson string + // 协议保留房提前x小时自动确认时间 比如设置为6 那么从入住当日24点往前推6小时即18:00以前可以自动确认有房,否则是待确认 + _allotmentReleaseTime string + // 是否包房RP 1包房RP,0 非包房rp + _packRoomFlag string + // 是否底价加价,1是底价加价,0 非底价加价rp + _bottomPriceFlag string + // 价格计划名称name通过加工处理以后的值 + _displayName string + // 来源 + _source int64 + // 普通保留房提前x小时自动确认时间 比如设置为6 那么从入住当日24点往前推6小时即18:00以前可以自动确认有房,否则是待确认 + _commonAllotReleaseTime string + // 是否企业托管RP 0-普通rp,1-企业托管rp + _companyAssist int64 + // 酒店-企业-rp映射实体集合 + _hotelCompanyMappingDOS string + // 商品来源渠道。1:直采(直连酒店PMS), 1-1:直采(非直连) 2:携程系, 3:美团, 4:国内旅行社分销, 5:海外供应商。非酒店资源方卖家必须提供商品来源渠道,携程系包括携程、去哪儿、艺龙。 + _resourceType string + // 最晚可选离店时间,小时房特有字段。格式为HH:mm + _canCheckoutEnd string + // 会员价支持标识,1表示支持会员价规则 + _memDiscFlag int64 + // 会员价加价规则。c:表示折扣百分比,例子8,意为会员价优惠8%,s:标识起始日期,e:表示截止日期,t:表示加价类型,0:代表折扣。会员价=售价*(1-c%)。该字段使用需要联系小二 + _memberDiscountCal string + // 卖点 + _benefits string + // 活动类型。1通兑, 4:超级房券 + _activityType string + // 入住人限制 + _guestLimit string + // 在线预约关联关系推送,priceRuleNumber:加价规则序号 + _onlineBookingBindingInfo string + // 不推荐使用,使用ratePlanCode来标识要修改的RP + _rpid int64 +} + +// 初始化TaobaoXhotelRateplanUpdateAPIRequest对象 +func NewTaobaoXhotelRateplanUpdateRequest() *TaobaoXhotelRateplanUpdateAPIRequest{ + return &TaobaoXhotelRateplanUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.rateplan.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// 在淘宝搜索页面展示的房价名称;(添加RP时为必须)。注意该名称不要包含早餐相关信息,如果想维护早餐信息,请设置breakfast_count字段即可。 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetName() string { + return r._name +} +// BreakfastCount Setter +// -1,状态早餐,和入住人数有关系,几人价就是几份早餐;0:不含早1:含单早2:含双早N:含N早(1-99可选);(添加RP时为必须) +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetBreakfastCount(_breakfastCount int64) error { + r._breakfastCount = _breakfastCount + r.Set("breakfast_count", _breakfastCount) + return nil +} + +// BreakfastCount Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetBreakfastCount() int64 { + return r._breakfastCount +} +// MinDays Setter +// 最小入住天数(1-90)。默认1,小时房RP请设置为1 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetMinDays(_minDays int64) error { + r._minDays = _minDays + r.Set("min_days", _minDays) + return nil +} + +// MinDays Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetMinDays() int64 { + return r._minDays +} +// MaxDays Setter +// 最大入住天数(1-90)。默认90,信用住最大入住天数不超过9天,小时房RP请设置为1 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetMaxDays(_maxDays int64) error { + r._maxDays = _maxDays + r.Set("max_days", _maxDays) + return nil +} + +// MaxDays Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetMaxDays() int64 { + return r._maxDays +} +// MinAmount Setter +// 首日入住房间数(1-99)。默认1。【废弃】 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetMinAmount(_minAmount int64) error { + r._minAmount = _minAmount + r.Set("min_amount", _minAmount) + return nil +} + +// MinAmount Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetMinAmount() int64 { + return r._minAmount +} +// MinAdvHours Setter +// 最小提前预定小时数,从入住当天的24点往前计算。例如如果这个字段设置了48,代表必须至少提前两天预定,那么如果想预定24号入住,,必须在23号零点前下单。 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetMinAdvHours(_minAdvHours int64) error { + r._minAdvHours = _minAdvHours + r.Set("min_adv_hours", _minAdvHours) + return nil +} + +// MinAdvHours Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetMinAdvHours() int64 { + return r._minAdvHours +} +// MaxAdvHours Setter +// 最大提前预定小时数,从入住当天的24点往前计算。例如如果这个字段设置了48,代表最多提前两天预定,那么如果想预定24号入住,,必须在23号零点以后下单。 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetMaxAdvHours(_maxAdvHours int64) error { + r._maxAdvHours = _maxAdvHours + r.Set("max_adv_hours", _maxAdvHours) + return nil +} + +// MaxAdvHours Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetMaxAdvHours() int64 { + return r._maxAdvHours +} +// StartTime Setter +// 产品每日开始销售时间,start_time一定为当天时间 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetStartTime(_startTime string) error { + r._startTime = _startTime + r.Set("start_time", _startTime) + return nil +} + +// StartTime Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetStartTime() string { + return r._startTime +} +// EndTime Setter +// 产品每日开始销售时间,start_time一定为当天时间 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetEndTime(_endTime string) error { + r._endTime = _endTime + r.Set("end_time", _endTime) + return nil +} + +// EndTime Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetEndTime() string { + return r._endTime +} +// CancelPolicy Setter +// 退订政策字段,是个json串,参考示例值设置改字段的值。允许变更/取消:在XX年XX月XX日XX时前取消收取Y%的手续费,100>Y>=0允许变更/取消:在入住前X小时前取消收取Y%的手续费,100>Y>=0(不超过10条)。1.表示任意退{"cancelPolicyType":1};2.表示不能退{"cancelPolicyType":2};4.从入住当天24点往前推X小时前取消收取Y%手续费,否则不可取消{"cancelPolicyType":4,"policyInfo":{"48":10,"24":20}}表示,从入住日24点往前推提前至少48小时取消,收取10%的手续费,从入住日24点往前推提前至少24小时取消,收取20%的手续费;5.从24点往前推多少小时可退{"cancelPolicyType":5,"policyInfo":{"timeBefore":6}}表示从入住日24点往前推至少6个小时即入住日18点前可免费取消;6.从入住日24点往前推,至少提前小时数扣取首晚房费{"cancelPolicyType":6,"policyInfo":{"14":1}}表示入住日24点往前推14小时,即入住日10点前取消收取首晚房费。 注意:支付类型为预付,那么可以使用所有的退订类型,但是必须是非担保;支付类型为面付或者信任住并且是无担保,那么只能使用1类型的退订;支付类型为面付或者信任住并且为担保,那么只能使用2,5类型的退订;支付类型为在线预约,那么只能使用1,2,5类型的退改。如果支付类型是面付或者信任住并且为担保,那么如果传了4或者6的退订,那么会强制转成类型5。支持多段时间、多间夜扣款 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetCancelPolicy(_cancelPolicy string) error { + r._cancelPolicy = _cancelPolicy + r.Set("cancel_policy", _cancelPolicy) + return nil +} + +// CancelPolicy Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetCancelPolicy() string { + return r._cancelPolicy +} +// Status Setter +// 1:开启(默认)2:关闭。如果没传值那么默认默认值为1;(添加RP时为必须) +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetStatus() int64 { + return r._status +} +// EnglishName Setter +// RP的英文名称 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetEnglishName(_englishName string) error { + r._englishName = _englishName + r.Set("english_name", _englishName) + return nil +} + +// EnglishName Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetEnglishName() string { + return r._englishName +} +// GuaranteeType Setter +// 担保类型,只支持: 0 无担保 1 峰时首晚担保 2峰时全额担保 3全天首晚担保 4全天全额担保 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetGuaranteeType(_guaranteeType int64) error { + r._guaranteeType = _guaranteeType + r.Set("guarantee_type", _guaranteeType) + return nil +} + +// GuaranteeType Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetGuaranteeType() int64 { + return r._guaranteeType +} +// GuaranteeStartTime Setter +// 分时担保每日开始担保时间。 (如果设置了峰时担保类型,那么峰时担保时间不能为空,并且必须大于等于8点) +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetGuaranteeStartTime(_guaranteeStartTime string) error { + r._guaranteeStartTime = _guaranteeStartTime + r.Set("guarantee_start_time", _guaranteeStartTime) + return nil +} + +// GuaranteeStartTime Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetGuaranteeStartTime() string { + return r._guaranteeStartTime +} +// MemberLevel Setter +// 双方映射后的会员等级。如需开通,需要申请权限,取值范围为:1,2,3,4,5,none。比如飞猪F3对应商家V4,则传4.(如果有疑问请联系对接技术支持) +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetMemberLevel(_memberLevel string) error { + r._memberLevel = _memberLevel + r.Set("member_level", _memberLevel) + return nil +} + +// MemberLevel Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetMemberLevel() string { + return r._memberLevel +} +// Channel Setter +// 销售渠道。如需开通,需要申请权限。目前支持的渠道有 H:飞猪 O:钉钉商旅 A:集团内部商旅 M:无线专享价。如果只投放飞猪,改字段不用填写或者只填H;如果有多个用","分开。如果需要投放其他渠道,请联系飞猪运营或者技术支持。 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetChannel() string { + return r._channel +} +// Vendor Setter +// 系统商,一般不用填写,使用须申请 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetVendor() string { + return r._vendor +} +// RateplanCode Setter +// 商家价格政策编码 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetRateplanCode(_rateplanCode string) error { + r._rateplanCode = _rateplanCode + r.Set("rateplan_code", _rateplanCode) + return nil +} + +// RateplanCode Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetRateplanCode() string { + return r._rateplanCode +} +// FirstStay Setter +// 需申请会员权限。是否是新用户首住优惠rp。1-代表是。0-代表否。不填写代表不更新该字段。 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetFirstStay(_firstStay int64) error { + r._firstStay = _firstStay + r.Set("first_stay", _firstStay) + return nil +} + +// FirstStay Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetFirstStay() int64 { + return r._firstStay +} +// Agreement Setter +// 价格类型字段:0.非协议价;1.集采协议价;如果不是协议价,请不要填写该字段。该字段有权限控制,如需使用,请联系阿里旅行运营。 如果不填写或者填写为0,默认是阿里旅行价 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetAgreement(_agreement int64) error { + r._agreement = _agreement + r.Set("agreement", _agreement) + return nil +} + +// Agreement Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetAgreement() int64 { + return r._agreement +} +// BreakfastCal Setter +// 在更新rateplan时,同时新增或更新早餐日历。 date:早餐政策属于具体哪一天 breakfast_count:这一天早餐的数量。>=0,<=99 如果date为空,那么会去读取startDate和endDate(格式都为"yyyy-MM-dd"),即早餐正常属于一个时间段。-1为状态早餐,和最终绑定的几人价有关,如果是一人价那么就是我一份早餐,二人价就是两份早餐。请注意,该字段仅能维护从当前时间开始,10年以内的数据,如果超过10年,会报错。 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetBreakfastCal(_breakfastCal string) error { + r._breakfastCal = _breakfastCal + r.Set("breakfast_cal", _breakfastCal) + return nil +} + +// BreakfastCal Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetBreakfastCal() string { + return r._breakfastCal +} +// CancelPolicyCal Setter +// 在新增rateplan的同时新增取消政策日历。 json格式。 date:日历的某一天,格式为"yyyy-MM-dd" cancel_policy:日历某一天的价格政策。格式和限制同cancel_policy。 如果date为空,那么会读取startDate和endDate(格式都为"yyyy-MM-dd"),即取消政策属于某一个时间段。 注意:支付类型为预付,那么可以使用所有的退订类型,但是必须是非担保;支付类型为面付或者信任住并且是无担保,那么只能使用1类型的退订;支付类型为面付或者信任住并且为担保,那么只能使用2,5类型的退订;支付类型为在线预约,那么只能使用1,2,5类型的退改。如果支付类型是面付或者信任住并且为担保,那么如果传了4或者6的退订,那么会强制转成类型5。请注意,该字段仅能维护从当前时间开始,10年以内的数据,如果超过10年,会报错。 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetCancelPolicyCal(_cancelPolicyCal string) error { + r._cancelPolicyCal = _cancelPolicyCal + r.Set("cancel_policy_cal", _cancelPolicyCal) + return nil +} + +// CancelPolicyCal Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetCancelPolicyCal() string { + return r._cancelPolicyCal +} +// GuaranteeCal Setter +// 在更新rateplan的同时,新增或更新担保日历。 date:担保日历的某一天。 guarantee:担保政策。 其中有两个属性:guaranteeType,guaranteeStartTime。 guaranteeType的可选值同guaranteeType字段,详见guaranteeType字段。guaranteeStartTime格式为"HH:mm" 。如果date为空,那么会读取startDate和endDate(格式都为"yyyy-MM-dd"),即担保政策属于某一个时间段。(如果设置了峰时担保类型,那么峰时担保时间不能为空,并且必须大于等于8点) 请注意,该字段仅能维护从当前时间开始,10年以内的数据,如果超过10年,会报错。 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetGuaranteeCal(_guaranteeCal string) error { + r._guaranteeCal = _guaranteeCal + r.Set("guarantee_cal", _guaranteeCal) + return nil +} + +// GuaranteeCal Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetGuaranteeCal() string { + return r._guaranteeCal +} +// EffectiveTime Setter +// 生效开始时间,用来控制此rateplan生效的开始时间,配合字段deadline_time一起限定rp的有效期 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetEffectiveTime(_effectiveTime string) error { + r._effectiveTime = _effectiveTime + r.Set("effective_time", _effectiveTime) + return nil +} + +// EffectiveTime Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetEffectiveTime() string { + return r._effectiveTime +} +// DeadlineTime Setter +// 生效截止时间,用来控制此rateplan生效的截止时间,配合字段effective_time一起限定rp的有效期 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetDeadlineTime(_deadlineTime string) error { + r._deadlineTime = _deadlineTime + r.Set("deadline_time", _deadlineTime) + return nil +} + +// DeadlineTime Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetDeadlineTime() string { + return r._deadlineTime +} +// PaymentType Setter +// 支付类型,只支持:1:预付5:现付6: 信用住7:在线预约8:在线预约信用住。其中5,6,7,8三种类型需要申请权限 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetPaymentType(_paymentType int64) error { + r._paymentType = _paymentType + r.Set("payment_type", _paymentType) + return nil +} + +// PaymentType Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetPaymentType() int64 { + return r._paymentType +} +// RpType Setter +// rp类型,1为小时房。目前只支持小时房。如果不是小时房rateplan,则不要填写。如果想要清空该字段可以传入none +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetRpType(_rpType string) error { + r._rpType = _rpType + r.Set("rp_type", _rpType) + return nil +} + +// RpType Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetRpType() string { + return r._rpType +} +// Hourage Setter +// 小时房入住时间跨度。小时房特有字段。比如4小时的小时房,那么值为4 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetHourage(_hourage string) error { + r._hourage = _hourage + r.Set("hourage", _hourage) + return nil +} + +// Hourage Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetHourage() string { + return r._hourage +} +// CanCheckinEnd Setter +// 最晚可选入住时间,小时房特有字段。格式为HH:mm +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetCanCheckinEnd(_canCheckinEnd string) error { + r._canCheckinEnd = _canCheckinEnd + r.Set("can_checkin_end", _canCheckinEnd) + return nil +} + +// CanCheckinEnd Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetCanCheckinEnd() string { + return r._canCheckinEnd +} +// CanCheckinStart Setter +// 最早可选入住时间,小时房特有字段。格式为HH:mm +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetCanCheckinStart(_canCheckinStart string) error { + r._canCheckinStart = _canCheckinStart + r.Set("can_checkin_start", _canCheckinStart) + return nil +} + +// CanCheckinStart Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetCanCheckinStart() string { + return r._canCheckinStart +} +// IsStudent Setter +// 学生价,1:是;0:否 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetIsStudent(_isStudent int64) error { + r._isStudent = _isStudent + r.Set("is_student", _isStudent) + return nil +} + +// IsStudent Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetIsStudent() int64 { + return r._isStudent +} +// Hid Setter +// 酒店id +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetHid(_hid int64) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetHid() int64 { + return r._hid +} +// Rid Setter +// 房型id +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetRid(_rid int64) error { + r._rid = _rid + r.Set("rid", _rid) + return nil +} + +// Rid Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetRid() int64 { + return r._rid +} +// OutRid Setter +// 外部房型id +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetOutRid(_outRid string) error { + r._outRid = _outRid + r.Set("out_rid", _outRid) + return nil +} + +// OutRid Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetOutRid() string { + return r._outRid +} +// OutHid Setter +// 外部酒店id +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetOutHid(_outHid string) error { + r._outHid = _outHid + r.Set("out_hid", _outHid) + return nil +} + +// OutHid Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetOutHid() string { + return r._outHid +} +// SuperRpFlag Setter +// super rp标记,1是;0否 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetSuperRpFlag(_superRpFlag int64) error { + r._superRpFlag = _superRpFlag + r.Set("super_rp_flag", _superRpFlag) + return nil +} + +// SuperRpFlag Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetSuperRpFlag() int64 { + return r._superRpFlag +} +// BaseRpFlag Setter +// base rp标记,1是;0否 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetBaseRpFlag(_baseRpFlag int64) error { + r._baseRpFlag = _baseRpFlag + r.Set("base_rp_flag", _baseRpFlag) + return nil +} + +// BaseRpFlag Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetBaseRpFlag() int64 { + return r._baseRpFlag +} +// GuaranteeMode Setter +// -9999 清空担保, 2 VCC担保, 1 PCI担保,0 支付宝担保(信用住产品担保方式只能为支付宝担保) +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetGuaranteeMode(_guaranteeMode int64) error { + r._guaranteeMode = _guaranteeMode + r.Set("guarantee_mode", _guaranteeMode) + return nil +} + +// GuaranteeMode Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetGuaranteeMode() int64 { + return r._guaranteeMode +} +// Operator Setter +// operator +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetOperator(_operator string) error { + r._operator = _operator + r.Set("operator", _operator) + return nil +} + +// Operator Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetOperator() string { + return r._operator +} +// ParentRpCode Setter +// 父rpcode,使用场景:当一个rp发布变价rate的时候,用于下单时候传递约定的rpcode给外部 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetParentRpCode(_parentRpCode string) error { + r._parentRpCode = _parentRpCode + r.Set("parent_rp_code", _parentRpCode) + return nil +} + +// ParentRpCode Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetParentRpCode() string { + return r._parentRpCode +} +// ParentRpid Setter +// 父rpid,使用场景:当一个rp发布变价rate的时候,记录父rp信息,用于下单时候传递约定的rpcode给外部 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetParentRpid(_parentRpid int64) error { + r._parentRpid = _parentRpid + r.Set("parent_rpid", _parentRpid) + return nil +} + +// ParentRpid Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetParentRpid() int64 { + return r._parentRpid +} +// TagJson Setter +// 更新RP时的 打标和去标 需求, 0 就是 去标, 1 就是打标, key的含义: non-direct-RP 表示非直连RP,, super-could-price-change-RP 表示rp的super标,打上这个tag,表明这个rateplan下单的时候支持变价,商家系统直接放开价格校验。 base-could-derived-RP 表示base rateplan标签,打上了这个tag,表明这是一个base的rateplan,基于该rateplan可以衍生出子rateplan, ebk-tail-room-RP 表示 ebk尾房rate plan级别标 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetTagJson(_tagJson string) error { + r._tagJson = _tagJson + r.Set("tag_json", _tagJson) + return nil +} + +// TagJson Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetTagJson() string { + return r._tagJson +} +// AllotmentReleaseTime Setter +// 协议保留房提前x小时自动确认时间 比如设置为6 那么从入住当日24点往前推6小时即18:00以前可以自动确认有房,否则是待确认 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetAllotmentReleaseTime(_allotmentReleaseTime string) error { + r._allotmentReleaseTime = _allotmentReleaseTime + r.Set("allotment_release_time", _allotmentReleaseTime) + return nil +} + +// AllotmentReleaseTime Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetAllotmentReleaseTime() string { + return r._allotmentReleaseTime +} +// PackRoomFlag Setter +// 是否包房RP 1包房RP,0 非包房rp +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetPackRoomFlag(_packRoomFlag string) error { + r._packRoomFlag = _packRoomFlag + r.Set("pack_room_flag", _packRoomFlag) + return nil +} + +// PackRoomFlag Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetPackRoomFlag() string { + return r._packRoomFlag +} +// BottomPriceFlag Setter +// 是否底价加价,1是底价加价,0 非底价加价rp +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetBottomPriceFlag(_bottomPriceFlag string) error { + r._bottomPriceFlag = _bottomPriceFlag + r.Set("bottom_price_flag", _bottomPriceFlag) + return nil +} + +// BottomPriceFlag Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetBottomPriceFlag() string { + return r._bottomPriceFlag +} +// DisplayName Setter +// 价格计划名称name通过加工处理以后的值 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetDisplayName(_displayName string) error { + r._displayName = _displayName + r.Set("display_name", _displayName) + return nil +} + +// DisplayName Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetDisplayName() string { + return r._displayName +} +// Source Setter +// 来源 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetSource(_source int64) error { + r._source = _source + r.Set("source", _source) + return nil +} + +// Source Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetSource() int64 { + return r._source +} +// CommonAllotReleaseTime Setter +// 普通保留房提前x小时自动确认时间 比如设置为6 那么从入住当日24点往前推6小时即18:00以前可以自动确认有房,否则是待确认 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetCommonAllotReleaseTime(_commonAllotReleaseTime string) error { + r._commonAllotReleaseTime = _commonAllotReleaseTime + r.Set("common_allot_release_time", _commonAllotReleaseTime) + return nil +} + +// CommonAllotReleaseTime Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetCommonAllotReleaseTime() string { + return r._commonAllotReleaseTime +} +// CompanyAssist Setter +// 是否企业托管RP 0-普通rp,1-企业托管rp +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetCompanyAssist(_companyAssist int64) error { + r._companyAssist = _companyAssist + r.Set("company_assist", _companyAssist) + return nil +} + +// CompanyAssist Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetCompanyAssist() int64 { + return r._companyAssist +} +// HotelCompanyMappingDOS Setter +// 酒店-企业-rp映射实体集合 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetHotelCompanyMappingDOS(_hotelCompanyMappingDOS string) error { + r._hotelCompanyMappingDOS = _hotelCompanyMappingDOS + r.Set("hotel_company_mapping_d_o_s", _hotelCompanyMappingDOS) + return nil +} + +// HotelCompanyMappingDOS Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetHotelCompanyMappingDOS() string { + return r._hotelCompanyMappingDOS +} +// ResourceType Setter +// 商品来源渠道。1:直采(直连酒店PMS), 1-1:直采(非直连) 2:携程系, 3:美团, 4:国内旅行社分销, 5:海外供应商。非酒店资源方卖家必须提供商品来源渠道,携程系包括携程、去哪儿、艺龙。 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetResourceType(_resourceType string) error { + r._resourceType = _resourceType + r.Set("resource_type", _resourceType) + return nil +} + +// ResourceType Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetResourceType() string { + return r._resourceType +} +// CanCheckoutEnd Setter +// 最晚可选离店时间,小时房特有字段。格式为HH:mm +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetCanCheckoutEnd(_canCheckoutEnd string) error { + r._canCheckoutEnd = _canCheckoutEnd + r.Set("can_checkout_end", _canCheckoutEnd) + return nil +} + +// CanCheckoutEnd Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetCanCheckoutEnd() string { + return r._canCheckoutEnd +} +// MemDiscFlag Setter +// 会员价支持标识,1表示支持会员价规则 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetMemDiscFlag(_memDiscFlag int64) error { + r._memDiscFlag = _memDiscFlag + r.Set("mem_disc_flag", _memDiscFlag) + return nil +} + +// MemDiscFlag Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetMemDiscFlag() int64 { + return r._memDiscFlag +} +// MemberDiscountCal Setter +// 会员价加价规则。c:表示折扣百分比,例子8,意为会员价优惠8%,s:标识起始日期,e:表示截止日期,t:表示加价类型,0:代表折扣。会员价=售价*(1-c%)。该字段使用需要联系小二 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetMemberDiscountCal(_memberDiscountCal string) error { + r._memberDiscountCal = _memberDiscountCal + r.Set("member_discount_cal", _memberDiscountCal) + return nil +} + +// MemberDiscountCal Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetMemberDiscountCal() string { + return r._memberDiscountCal +} +// Benefits Setter +// 卖点 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetBenefits(_benefits string) error { + r._benefits = _benefits + r.Set("benefits", _benefits) + return nil +} + +// Benefits Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetBenefits() string { + return r._benefits +} +// ActivityType Setter +// 活动类型。1通兑, 4:超级房券 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetActivityType(_activityType string) error { + r._activityType = _activityType + r.Set("activity_type", _activityType) + return nil +} + +// ActivityType Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetActivityType() string { + return r._activityType +} +// GuestLimit Setter +// 入住人限制 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetGuestLimit(_guestLimit string) error { + r._guestLimit = _guestLimit + r.Set("guest_limit", _guestLimit) + return nil +} + +// GuestLimit Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetGuestLimit() string { + return r._guestLimit +} +// OnlineBookingBindingInfo Setter +// 在线预约关联关系推送,priceRuleNumber:加价规则序号 +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetOnlineBookingBindingInfo(_onlineBookingBindingInfo string) error { + r._onlineBookingBindingInfo = _onlineBookingBindingInfo + r.Set("online_booking_binding_info", _onlineBookingBindingInfo) + return nil +} + +// OnlineBookingBindingInfo Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetOnlineBookingBindingInfo() string { + return r._onlineBookingBindingInfo +} +// Rpid Setter +// 不推荐使用,使用ratePlanCode来标识要修改的RP +func (r *TaobaoXhotelRateplanUpdateAPIRequest) SetRpid(_rpid int64) error { + r._rpid = _rpid + r.Set("rpid", _rpid) + return nil +} + +// Rpid Getter +func (r TaobaoXhotelRateplanUpdateAPIRequest) GetRpid() int64 { + return r._rpid +} diff --git a/model/xhotelitem/TaobaoXhotelRateplanUpdateAPIResponse.go b/model/xhotelitem/TaobaoXhotelRateplanUpdateAPIResponse.go new file mode 100644 index 0000000000..b0340516eb --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRateplanUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +价格计划rateplan更新或添加 API返回值 +taobao.xhotel.rateplan.update + +酒店产品库rateplan更新或添加 +*/ +type TaobaoXhotelRateplanUpdateAPIResponse struct { + model.CommonResponse + TaobaoXhotelRateplanUpdateAPIResponseModel +} + +// 价格计划rateplan更新或添加 成功返回结果 +type TaobaoXhotelRateplanUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_rateplan_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 修改的rp id + Rpid int64 `json:"rpid,omitempty" xml:"rpid,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRateplanUpdateResponse.go b/model/xhotelitem/TaobaoXhotelRateplanUpdateResponse.go deleted file mode 100644 index b1cbf090ca..0000000000 --- a/model/xhotelitem/TaobaoXhotelRateplanUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -价格计划rateplan更新或添加 API返回值 -taobao.xhotel.rateplan.update - -酒店产品库rateplan更新或添加 -*/ -type TaobaoXhotelRateplanUpdateAPIResponse struct { - model.CommonResponse - TaobaoXhotelRateplanUpdateResponse -} - -// 价格计划rateplan更新或添加 成功返回结果 -type TaobaoXhotelRateplanUpdateResponse struct { - XMLName xml.Name `xml:"xhotel_rateplan_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 修改的rp id - Rpid int64 `json:"rpid,omitempty" xml:"rpid,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRatesIncrementAPIRequest.go b/model/xhotelitem/TaobaoXhotelRatesIncrementAPIRequest.go new file mode 100644 index 0000000000..ca2be42b86 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRatesIncrementAPIRequest.go @@ -0,0 +1,52 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +价格推送接口(批量增量) API请求 +taobao.xhotel.rates.increment + +Rate库存&价格增量更新接口,用户仅需要更新Rate中发生变化的库存日历&价格日历即可 +*/ +type TaobaoXhotelRatesIncrementAPIRequest struct { + model.Params + // 批量修改价格和房价专有库存信息,json格式,可同时修改多套房型+价格计划的价格:A:use_room_inventory:是否使用房型共享库存,可选值 true false 1、true时:使用房型共享库存 2、false时:使用房价专有库存,此时要求房价专有库存必填。B:date 日期必须为 T---T+180 日内的日期(T为当天),不能重复。 C:price 价格 int类型 取值范围1-99999999 单位为分D:quota 房价专有库存 int 类型 取值范围 0-999(数量库存) 60000(状态库存关) 61000(状态库存开) E:status 价格开关,0为关,1为开。lock_start_time为锁库存开始时间,lock_end_time为锁库存结束时间,如果当前时间在这个时间范围内,那么不允许修改库存。示例值:(1)[{"out_rid":"ABCDE_123","rateplan_code":"ABCDE_WHL01","vendor":"","lock_start_time":"","lock_end_time":"","data":{"use_room_inventory":false,"inventory_price":[{"date":"2013-11-18","quota":1,"price":1000,"status":1},{"date":"2013-11-19","quota":1,"price":1000,"status":0}]}},{"out_rid":"ABCDE_234","rateplan_code":"ABCDE_WHL01","vendor":"","data":{"use_room_inventory":false,"inventory_price":[{"date":"2013-11-18","quota":1,"price":1000,"status":1},{"date":"2013-11-19","quota":1,"price":1000,"status":0}]}}] + _rateInventoryPriceMap string +} + +// 初始化TaobaoXhotelRatesIncrementAPIRequest对象 +func NewTaobaoXhotelRatesIncrementRequest() *TaobaoXhotelRatesIncrementAPIRequest{ + return &TaobaoXhotelRatesIncrementAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRatesIncrementAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.rates.increment" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRatesIncrementAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RateInventoryPriceMap Setter +// 批量修改价格和房价专有库存信息,json格式,可同时修改多套房型+价格计划的价格:A:use_room_inventory:是否使用房型共享库存,可选值 true false 1、true时:使用房型共享库存 2、false时:使用房价专有库存,此时要求房价专有库存必填。B:date 日期必须为 T---T+180 日内的日期(T为当天),不能重复。 C:price 价格 int类型 取值范围1-99999999 单位为分D:quota 房价专有库存 int 类型 取值范围 0-999(数量库存) 60000(状态库存关) 61000(状态库存开) E:status 价格开关,0为关,1为开。lock_start_time为锁库存开始时间,lock_end_time为锁库存结束时间,如果当前时间在这个时间范围内,那么不允许修改库存。示例值:(1)[{"out_rid":"ABCDE_123","rateplan_code":"ABCDE_WHL01","vendor":"","lock_start_time":"","lock_end_time":"","data":{"use_room_inventory":false,"inventory_price":[{"date":"2013-11-18","quota":1,"price":1000,"status":1},{"date":"2013-11-19","quota":1,"price":1000,"status":0}]}},{"out_rid":"ABCDE_234","rateplan_code":"ABCDE_WHL01","vendor":"","data":{"use_room_inventory":false,"inventory_price":[{"date":"2013-11-18","quota":1,"price":1000,"status":1},{"date":"2013-11-19","quota":1,"price":1000,"status":0}]}}] +func (r *TaobaoXhotelRatesIncrementAPIRequest) SetRateInventoryPriceMap(_rateInventoryPriceMap string) error { + r._rateInventoryPriceMap = _rateInventoryPriceMap + r.Set("rate_inventory_price_map", _rateInventoryPriceMap) + return nil +} + +// RateInventoryPriceMap Getter +func (r TaobaoXhotelRatesIncrementAPIRequest) GetRateInventoryPriceMap() string { + return r._rateInventoryPriceMap +} diff --git a/model/xhotelitem/TaobaoXhotelRatesIncrementAPIResponse.go b/model/xhotelitem/TaobaoXhotelRatesIncrementAPIResponse.go new file mode 100644 index 0000000000..81a5df6a47 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRatesIncrementAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +价格推送接口(批量增量) API返回值 +taobao.xhotel.rates.increment + +Rate库存&价格增量更新接口,用户仅需要更新Rate中发生变化的库存日历&价格日历即可 +*/ +type TaobaoXhotelRatesIncrementAPIResponse struct { + model.CommonResponse + TaobaoXhotelRatesIncrementAPIResponseModel +} + +// 价格推送接口(批量增量) 成功返回结果 +type TaobaoXhotelRatesIncrementAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_rates_increment_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // gid和rpid组合数组
gid_rpid + GidAndRpids []string `json:"gid_and_rpids,omitempty" xml:"gid_and_rpids>string,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRatesIncrementResponse.go b/model/xhotelitem/TaobaoXhotelRatesIncrementResponse.go deleted file mode 100644 index 8b7360f781..0000000000 --- a/model/xhotelitem/TaobaoXhotelRatesIncrementResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -价格推送接口(批量增量) API返回值 -taobao.xhotel.rates.increment - -Rate库存&价格增量更新接口,用户仅需要更新Rate中发生变化的库存日历&价格日历即可 -*/ -type TaobaoXhotelRatesIncrementAPIResponse struct { - model.CommonResponse - TaobaoXhotelRatesIncrementResponse -} - -// 价格推送接口(批量增量) 成功返回结果 -type TaobaoXhotelRatesIncrementResponse struct { - XMLName xml.Name `xml:"xhotel_rates_increment_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // gid和rpid组合数组
gid_rpid - GidAndRpids []string `json:"gid_and_rpids,omitempty" xml:"gid_and_rpids>string,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRatesLiteIncrUpdateAPIRequest.go b/model/xhotelitem/TaobaoXhotelRatesLiteIncrUpdateAPIRequest.go new file mode 100644 index 0000000000..444a442e7b --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRatesLiteIncrUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店价格库存轻量级增量接口 API请求 +taobao.xhotel.rates.lite.incr.update + +多个rate的库存房价开关的增量更新接口 +*/ +type TaobaoXhotelRatesLiteIncrUpdateAPIRequest struct { + model.Params + // json格式: [{"rp_code":"031612_181220000074_F1_1","out_rid":"031612_HD","vendor":"taobao","useRoomInv":0,"invAndSwitch":[{"date":"2020-01-09","price":1200,"quota":23,"rateStatus":1},{"date":"2020-01-10","price":1200,"quota":23,"rateStatus":0}]},{"rp_code":"1234","out_rid":"123456","vendor":"taobao","useRoomInv":0,"invAndSwitch":[{"date":"yyyy-MM-dd","price":1200,"quota":23,"rateStatus":1},{"date":"yyyy-MM-dd","price":1200,"quota":23,"rateStatus":1}]}] rp_code:房价code,out_rid:房型code,必传字段 useRoomInv: 表示是否使用房型库存(1表示是,0表示否),可选字段 invAndSwitch: 表示要更新的日历化价格库存以及开关,增量更新,更新哪天就传那天的日历化单元, 可选字段 invAndSwitch.date: 表示日历化单元里的日期,格式:yyyy-MM-dd, 在 invAndSwitch 里的每个日历化单元里是必填字段 invAndSwitch.price: 表示要更新的价格,单位 分, 可选字段 invAndSwitch.quota: 表示要更新的普通库存,可选字段 invAndSwitch.rateStatus: 表示要更新的价格开关,1表示开,0表示关,可选字段。请注意,该接口为轻量级批量增量更新接口,只能更新未来4天内价格库存开关信息,传入的参数日期超过4天了会报错。该接口核心是解决近几天价格库存实时性。 + _rateListInvInfo string +} + +// 初始化TaobaoXhotelRatesLiteIncrUpdateAPIRequest对象 +func NewTaobaoXhotelRatesLiteIncrUpdateRequest() *TaobaoXhotelRatesLiteIncrUpdateAPIRequest{ + return &TaobaoXhotelRatesLiteIncrUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRatesLiteIncrUpdateAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.rates.lite.incr.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRatesLiteIncrUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RateListInvInfo Setter +// json格式: [{"rp_code":"031612_181220000074_F1_1","out_rid":"031612_HD","vendor":"taobao","useRoomInv":0,"invAndSwitch":[{"date":"2020-01-09","price":1200,"quota":23,"rateStatus":1},{"date":"2020-01-10","price":1200,"quota":23,"rateStatus":0}]},{"rp_code":"1234","out_rid":"123456","vendor":"taobao","useRoomInv":0,"invAndSwitch":[{"date":"yyyy-MM-dd","price":1200,"quota":23,"rateStatus":1},{"date":"yyyy-MM-dd","price":1200,"quota":23,"rateStatus":1}]}] rp_code:房价code,out_rid:房型code,必传字段 useRoomInv: 表示是否使用房型库存(1表示是,0表示否),可选字段 invAndSwitch: 表示要更新的日历化价格库存以及开关,增量更新,更新哪天就传那天的日历化单元, 可选字段 invAndSwitch.date: 表示日历化单元里的日期,格式:yyyy-MM-dd, 在 invAndSwitch 里的每个日历化单元里是必填字段 invAndSwitch.price: 表示要更新的价格,单位 分, 可选字段 invAndSwitch.quota: 表示要更新的普通库存,可选字段 invAndSwitch.rateStatus: 表示要更新的价格开关,1表示开,0表示关,可选字段。请注意,该接口为轻量级批量增量更新接口,只能更新未来4天内价格库存开关信息,传入的参数日期超过4天了会报错。该接口核心是解决近几天价格库存实时性。 +func (r *TaobaoXhotelRatesLiteIncrUpdateAPIRequest) SetRateListInvInfo(_rateListInvInfo string) error { + r._rateListInvInfo = _rateListInvInfo + r.Set("rate_list_inv_info", _rateListInvInfo) + return nil +} + +// RateListInvInfo Getter +func (r TaobaoXhotelRatesLiteIncrUpdateAPIRequest) GetRateListInvInfo() string { + return r._rateListInvInfo +} diff --git a/model/xhotelitem/TaobaoXhotelRatesLiteIncrUpdateAPIResponse.go b/model/xhotelitem/TaobaoXhotelRatesLiteIncrUpdateAPIResponse.go new file mode 100644 index 0000000000..e9759054b3 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRatesLiteIncrUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店价格库存轻量级增量接口 API返回值 +taobao.xhotel.rates.lite.incr.update + +多个rate的库存房价开关的增量更新接口 +*/ +type TaobaoXhotelRatesLiteIncrUpdateAPIResponse struct { + model.CommonResponse + TaobaoXhotelRatesLiteIncrUpdateAPIResponseModel +} + +// 酒店价格库存轻量级增量接口 成功返回结果 +type TaobaoXhotelRatesLiteIncrUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_rates_lite_incr_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoXhotelRatesLiteIncrUpdateResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRatesLiteIncrUpdateResponse.go b/model/xhotelitem/TaobaoXhotelRatesLiteIncrUpdateResponse.go deleted file mode 100644 index 68e834e16c..0000000000 --- a/model/xhotelitem/TaobaoXhotelRatesLiteIncrUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店价格库存轻量级增量接口 API返回值 -taobao.xhotel.rates.lite.incr.update - -多个rate的库存房价开关的增量更新接口 -*/ -type TaobaoXhotelRatesLiteIncrUpdateAPIResponse struct { - model.CommonResponse - TaobaoXhotelRatesLiteIncrUpdateResponse -} - -// 酒店价格库存轻量级增量接口 成功返回结果 -type TaobaoXhotelRatesLiteIncrUpdateResponse struct { - XMLName xml.Name `xml:"xhotel_rates_lite_incr_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoXhotelRatesLiteIncrUpdateResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRatesUpdateAPIRequest.go b/model/xhotelitem/TaobaoXhotelRatesUpdateAPIRequest.go new file mode 100644 index 0000000000..f9cd29618e --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRatesUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +价格推送接口(批量全量) API请求 +taobao.xhotel.rates.update + +酒店产品库rate批量更新房态信息 +*/ +type TaobaoXhotelRatesUpdateAPIRequest struct { + model.Params + // 批量修改价格和房价专有库存信息,json格式,可同时修改多套房型+价格计划的价格:A:use_room_inventory:是否使用房型共享库存,可选值 true false 1、true时:使用房型共享库存 2、false时:使用房价专有库存,此时要求房价专有库存必填。B:date 日期必须为 T-1 --- T+180 日内的日期(T为当天),不能重复。 C:price 价格 int类型 取值范围1-99999999 单位为分D:quota 房价专有库存 int 类型 取值范围 0-999(数量库存) 60000(状态库存关) 61000(状态库存开) E:status 价格开关,0为关,1为开。lock_start_time为锁库存开始时间,lock_end_time为锁库存结束时间,如果当前时间在这个时间范围内,那么不允许修改库存。示例值:(1)[{"out_rid":"ABCDE_123","rateplan_code":"ABCDE_WHL01","vendor":"","lock_start_time":"","lock_end_time":"","data":{"use_room_inventory":false,"inventory_price":[{"date":"2013-11-18","quota":1,"price":1000,"status":1},{"date":"2013-11-19","quota":1,"price":1000,"status":0}]}},{"out_rid":"ABCDE_234","rateplan_code":"ABCDE_WHL01","vendor":"","data":{"use_room_inventory":false,"inventory_price":[{"date":"2013-11-18","quota":1,"price":1000,"status":1},{"date":"2013-11-19","quota":1,"price":1000,"status":0}]}}] + _rateInventoryPriceMap string +} + +// 初始化TaobaoXhotelRatesUpdateAPIRequest对象 +func NewTaobaoXhotelRatesUpdateRequest() *TaobaoXhotelRatesUpdateAPIRequest{ + return &TaobaoXhotelRatesUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRatesUpdateAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.rates.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRatesUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RateInventoryPriceMap Setter +// 批量修改价格和房价专有库存信息,json格式,可同时修改多套房型+价格计划的价格:A:use_room_inventory:是否使用房型共享库存,可选值 true false 1、true时:使用房型共享库存 2、false时:使用房价专有库存,此时要求房价专有库存必填。B:date 日期必须为 T-1 --- T+180 日内的日期(T为当天),不能重复。 C:price 价格 int类型 取值范围1-99999999 单位为分D:quota 房价专有库存 int 类型 取值范围 0-999(数量库存) 60000(状态库存关) 61000(状态库存开) E:status 价格开关,0为关,1为开。lock_start_time为锁库存开始时间,lock_end_time为锁库存结束时间,如果当前时间在这个时间范围内,那么不允许修改库存。示例值:(1)[{"out_rid":"ABCDE_123","rateplan_code":"ABCDE_WHL01","vendor":"","lock_start_time":"","lock_end_time":"","data":{"use_room_inventory":false,"inventory_price":[{"date":"2013-11-18","quota":1,"price":1000,"status":1},{"date":"2013-11-19","quota":1,"price":1000,"status":0}]}},{"out_rid":"ABCDE_234","rateplan_code":"ABCDE_WHL01","vendor":"","data":{"use_room_inventory":false,"inventory_price":[{"date":"2013-11-18","quota":1,"price":1000,"status":1},{"date":"2013-11-19","quota":1,"price":1000,"status":0}]}}] +func (r *TaobaoXhotelRatesUpdateAPIRequest) SetRateInventoryPriceMap(_rateInventoryPriceMap string) error { + r._rateInventoryPriceMap = _rateInventoryPriceMap + r.Set("rate_inventory_price_map", _rateInventoryPriceMap) + return nil +} + +// RateInventoryPriceMap Getter +func (r TaobaoXhotelRatesUpdateAPIRequest) GetRateInventoryPriceMap() string { + return r._rateInventoryPriceMap +} diff --git a/model/xhotelitem/TaobaoXhotelRatesUpdateAPIResponse.go b/model/xhotelitem/TaobaoXhotelRatesUpdateAPIResponse.go new file mode 100644 index 0000000000..44fa93a3ad --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRatesUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +价格推送接口(批量全量) API返回值 +taobao.xhotel.rates.update + +酒店产品库rate批量更新房态信息 +*/ +type TaobaoXhotelRatesUpdateAPIResponse struct { + model.CommonResponse + TaobaoXhotelRatesUpdateAPIResponseModel +} + +// 价格推送接口(批量全量) 成功返回结果 +type TaobaoXhotelRatesUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_rates_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // gid_and_rateplan_ids + GidAndRpids []string `json:"gid_and_rpids,omitempty" xml:"gid_and_rpids>string,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRatesUpdateResponse.go b/model/xhotelitem/TaobaoXhotelRatesUpdateResponse.go deleted file mode 100644 index a1f8ef8e48..0000000000 --- a/model/xhotelitem/TaobaoXhotelRatesUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -价格推送接口(批量全量) API返回值 -taobao.xhotel.rates.update - -酒店产品库rate批量更新房态信息 -*/ -type TaobaoXhotelRatesUpdateAPIResponse struct { - model.CommonResponse - TaobaoXhotelRatesUpdateResponse -} - -// 价格推送接口(批量全量) 成功返回结果 -type TaobaoXhotelRatesUpdateResponse struct { - XMLName xml.Name `xml:"xhotel_rates_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // gid_and_rateplan_ids - GidAndRpids []string `json:"gid_and_rpids,omitempty" xml:"gid_and_rpids>string,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRoomGetAPIRequest.go b/model/xhotelitem/TaobaoXhotelRoomGetAPIRequest.go new file mode 100644 index 0000000000..05ec642407 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRoomGetAPIRequest.go @@ -0,0 +1,80 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +room实体查询 API请求 +taobao.xhotel.room.get + +此接口用于查询一个商品,根据传入的gid查询商品信息。卖家只能查询自己的商品。 +*/ +type TaobaoXhotelRoomGetAPIRequest struct { + model.Params + // 卖家渠道 如果gid为空,那么out_rid和vendor都不能为空。 支持通过gid或者通过out_rid和vendor来获取商品 + _vendor string + // 外部房型id 如果gid为空,那么out_rid和vendor都不能为空 支持通过gid或者通过out_rid和vendor来获取商品 + _outRid string + // 废弃 + _gid int64 +} + +// 初始化TaobaoXhotelRoomGetAPIRequest对象 +func NewTaobaoXhotelRoomGetRequest() *TaobaoXhotelRoomGetAPIRequest{ + return &TaobaoXhotelRoomGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRoomGetAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.room.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRoomGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Vendor Setter +// 卖家渠道 如果gid为空,那么out_rid和vendor都不能为空。 支持通过gid或者通过out_rid和vendor来获取商品 +func (r *TaobaoXhotelRoomGetAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelRoomGetAPIRequest) GetVendor() string { + return r._vendor +} +// OutRid Setter +// 外部房型id 如果gid为空,那么out_rid和vendor都不能为空 支持通过gid或者通过out_rid和vendor来获取商品 +func (r *TaobaoXhotelRoomGetAPIRequest) SetOutRid(_outRid string) error { + r._outRid = _outRid + r.Set("out_rid", _outRid) + return nil +} + +// OutRid Getter +func (r TaobaoXhotelRoomGetAPIRequest) GetOutRid() string { + return r._outRid +} +// Gid Setter +// 废弃 +func (r *TaobaoXhotelRoomGetAPIRequest) SetGid(_gid int64) error { + r._gid = _gid + r.Set("gid", _gid) + return nil +} + +// Gid Getter +func (r TaobaoXhotelRoomGetAPIRequest) GetGid() int64 { + return r._gid +} diff --git a/model/xhotelitem/TaobaoXhotelRoomGetAPIResponse.go b/model/xhotelitem/TaobaoXhotelRoomGetAPIResponse.go new file mode 100644 index 0000000000..7141af6585 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRoomGetAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +room实体查询 API返回值 +taobao.xhotel.room.get + +此接口用于查询一个商品,根据传入的gid查询商品信息。卖家只能查询自己的商品。 +*/ +type TaobaoXhotelRoomGetAPIResponse struct { + model.CommonResponse + TaobaoXhotelRoomGetAPIResponseModel +} + +// room实体查询 成功返回结果 +type TaobaoXhotelRoomGetAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_room_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 房间信息 + Room *FirstResult `json:"room,omitempty" xml:"room,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRoomGetResponse.go b/model/xhotelitem/TaobaoXhotelRoomGetResponse.go deleted file mode 100644 index fde1b07e81..0000000000 --- a/model/xhotelitem/TaobaoXhotelRoomGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -room实体查询 API返回值 -taobao.xhotel.room.get - -此接口用于查询一个商品,根据传入的gid查询商品信息。卖家只能查询自己的商品。 -*/ -type TaobaoXhotelRoomGetAPIResponse struct { - model.CommonResponse - TaobaoXhotelRoomGetResponse -} - -// room实体查询 成功返回结果 -type TaobaoXhotelRoomGetResponse struct { - XMLName xml.Name `xml:"xhotel_room_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 房间信息 - Room *FirstResult `json:"room,omitempty" xml:"room,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRoomUpdateAPIRequest.go b/model/xhotelitem/TaobaoXhotelRoomUpdateAPIRequest.go new file mode 100644 index 0000000000..e5ec3027ca --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRoomUpdateAPIRequest.go @@ -0,0 +1,290 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +房型库存推送接口(全量推送) API请求 +taobao.xhotel.room.update + +此接口用于更新一个酒店商品,根据传入的gid更新商品信息,该商品必须为对应的发布者才能执行更新操作。如果对应的商品在酒店系统中不存在,则会返回错误提示。 +*/ +type TaobaoXhotelRoomUpdateAPIRequest struct { + model.Params + // 废弃,使用out_rid + _gid int64 + // 废弃,宝贝名称展示在店铺里 + _title string + // 废弃,房型购买须知展示在PC购物路径 + _guide string + // 废弃,宝贝描述展示在宝贝详情页面 + _desc string + // 废弃,宝贝图片,没有默认使用标准酒店房型图片 + _pic *model.File + // 废弃,房型是否提供发票 + _hasReceipt bool + // 废弃,房型发票类型。A,B。分别代表: A:酒店住宿发票,B:其他 + _receiptType string + // 废弃,房型发票类型为其他时的发票描述,不能超过30个字 + _receiptOtherTypeDesc string + // 废弃,房型发票说明,不能超过100个字 + _receiptInfo string + // 房型共享库存日历。quota物理库存;al_quota保留房库存;sp_quota超预定库存。其中保留房库存和超预定库存需要向运营申请权限示例:[{"date":2011-01-28,"quota":10,"al_quota":2,"sp_quota":3}] + _inventory string + // 系统商,一般不填写,使用须申请 + _vendor string + // 卖家房型ID + _outRid string + // 房型库存开关。 1,开;2,关 + _roomSwitchCal string + // 超预定库存截止时间 + _superbookEndTime string + // 超预定库存开始时间 + _superbookStartTime string + // 保留房库存截止时间 + _allotmentEndTime string + // 保留房库存截止时间 + _allotmentStartTime string + // 宝贝状态,1上架。 + _status int64 +} + +// 初始化TaobaoXhotelRoomUpdateAPIRequest对象 +func NewTaobaoXhotelRoomUpdateRequest() *TaobaoXhotelRoomUpdateAPIRequest{ + return &TaobaoXhotelRoomUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRoomUpdateAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.room.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRoomUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Gid Setter +// 废弃,使用out_rid +func (r *TaobaoXhotelRoomUpdateAPIRequest) SetGid(_gid int64) error { + r._gid = _gid + r.Set("gid", _gid) + return nil +} + +// Gid Getter +func (r TaobaoXhotelRoomUpdateAPIRequest) GetGid() int64 { + return r._gid +} +// Title Setter +// 废弃,宝贝名称展示在店铺里 +func (r *TaobaoXhotelRoomUpdateAPIRequest) SetTitle(_title string) error { + r._title = _title + r.Set("title", _title) + return nil +} + +// Title Getter +func (r TaobaoXhotelRoomUpdateAPIRequest) GetTitle() string { + return r._title +} +// Guide Setter +// 废弃,房型购买须知展示在PC购物路径 +func (r *TaobaoXhotelRoomUpdateAPIRequest) SetGuide(_guide string) error { + r._guide = _guide + r.Set("guide", _guide) + return nil +} + +// Guide Getter +func (r TaobaoXhotelRoomUpdateAPIRequest) GetGuide() string { + return r._guide +} +// Desc Setter +// 废弃,宝贝描述展示在宝贝详情页面 +func (r *TaobaoXhotelRoomUpdateAPIRequest) SetDesc(_desc string) error { + r._desc = _desc + r.Set("desc", _desc) + return nil +} + +// Desc Getter +func (r TaobaoXhotelRoomUpdateAPIRequest) GetDesc() string { + return r._desc +} +// Pic Setter +// 废弃,宝贝图片,没有默认使用标准酒店房型图片 +func (r *TaobaoXhotelRoomUpdateAPIRequest) SetPic(_pic *model.File) error { + r._pic = _pic + r.Set("pic", _pic) + return nil +} + +// Pic Getter +func (r TaobaoXhotelRoomUpdateAPIRequest) GetPic() *model.File { + return r._pic +} +// HasReceipt Setter +// 废弃,房型是否提供发票 +func (r *TaobaoXhotelRoomUpdateAPIRequest) SetHasReceipt(_hasReceipt bool) error { + r._hasReceipt = _hasReceipt + r.Set("has_receipt", _hasReceipt) + return nil +} + +// HasReceipt Getter +func (r TaobaoXhotelRoomUpdateAPIRequest) GetHasReceipt() bool { + return r._hasReceipt +} +// ReceiptType Setter +// 废弃,房型发票类型。A,B。分别代表: A:酒店住宿发票,B:其他 +func (r *TaobaoXhotelRoomUpdateAPIRequest) SetReceiptType(_receiptType string) error { + r._receiptType = _receiptType + r.Set("receipt_type", _receiptType) + return nil +} + +// ReceiptType Getter +func (r TaobaoXhotelRoomUpdateAPIRequest) GetReceiptType() string { + return r._receiptType +} +// ReceiptOtherTypeDesc Setter +// 废弃,房型发票类型为其他时的发票描述,不能超过30个字 +func (r *TaobaoXhotelRoomUpdateAPIRequest) SetReceiptOtherTypeDesc(_receiptOtherTypeDesc string) error { + r._receiptOtherTypeDesc = _receiptOtherTypeDesc + r.Set("receipt_other_type_desc", _receiptOtherTypeDesc) + return nil +} + +// ReceiptOtherTypeDesc Getter +func (r TaobaoXhotelRoomUpdateAPIRequest) GetReceiptOtherTypeDesc() string { + return r._receiptOtherTypeDesc +} +// ReceiptInfo Setter +// 废弃,房型发票说明,不能超过100个字 +func (r *TaobaoXhotelRoomUpdateAPIRequest) SetReceiptInfo(_receiptInfo string) error { + r._receiptInfo = _receiptInfo + r.Set("receipt_info", _receiptInfo) + return nil +} + +// ReceiptInfo Getter +func (r TaobaoXhotelRoomUpdateAPIRequest) GetReceiptInfo() string { + return r._receiptInfo +} +// Inventory Setter +// 房型共享库存日历。quota物理库存;al_quota保留房库存;sp_quota超预定库存。其中保留房库存和超预定库存需要向运营申请权限示例:[{"date":2011-01-28,"quota":10,"al_quota":2,"sp_quota":3}] +func (r *TaobaoXhotelRoomUpdateAPIRequest) SetInventory(_inventory string) error { + r._inventory = _inventory + r.Set("inventory", _inventory) + return nil +} + +// Inventory Getter +func (r TaobaoXhotelRoomUpdateAPIRequest) GetInventory() string { + return r._inventory +} +// Vendor Setter +// 系统商,一般不填写,使用须申请 +func (r *TaobaoXhotelRoomUpdateAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelRoomUpdateAPIRequest) GetVendor() string { + return r._vendor +} +// OutRid Setter +// 卖家房型ID +func (r *TaobaoXhotelRoomUpdateAPIRequest) SetOutRid(_outRid string) error { + r._outRid = _outRid + r.Set("out_rid", _outRid) + return nil +} + +// OutRid Getter +func (r TaobaoXhotelRoomUpdateAPIRequest) GetOutRid() string { + return r._outRid +} +// RoomSwitchCal Setter +// 房型库存开关。 1,开;2,关 +func (r *TaobaoXhotelRoomUpdateAPIRequest) SetRoomSwitchCal(_roomSwitchCal string) error { + r._roomSwitchCal = _roomSwitchCal + r.Set("room_switch_cal", _roomSwitchCal) + return nil +} + +// RoomSwitchCal Getter +func (r TaobaoXhotelRoomUpdateAPIRequest) GetRoomSwitchCal() string { + return r._roomSwitchCal +} +// SuperbookEndTime Setter +// 超预定库存截止时间 +func (r *TaobaoXhotelRoomUpdateAPIRequest) SetSuperbookEndTime(_superbookEndTime string) error { + r._superbookEndTime = _superbookEndTime + r.Set("superbook_end_time", _superbookEndTime) + return nil +} + +// SuperbookEndTime Getter +func (r TaobaoXhotelRoomUpdateAPIRequest) GetSuperbookEndTime() string { + return r._superbookEndTime +} +// SuperbookStartTime Setter +// 超预定库存开始时间 +func (r *TaobaoXhotelRoomUpdateAPIRequest) SetSuperbookStartTime(_superbookStartTime string) error { + r._superbookStartTime = _superbookStartTime + r.Set("superbook_start_time", _superbookStartTime) + return nil +} + +// SuperbookStartTime Getter +func (r TaobaoXhotelRoomUpdateAPIRequest) GetSuperbookStartTime() string { + return r._superbookStartTime +} +// AllotmentEndTime Setter +// 保留房库存截止时间 +func (r *TaobaoXhotelRoomUpdateAPIRequest) SetAllotmentEndTime(_allotmentEndTime string) error { + r._allotmentEndTime = _allotmentEndTime + r.Set("allotment_end_time", _allotmentEndTime) + return nil +} + +// AllotmentEndTime Getter +func (r TaobaoXhotelRoomUpdateAPIRequest) GetAllotmentEndTime() string { + return r._allotmentEndTime +} +// AllotmentStartTime Setter +// 保留房库存截止时间 +func (r *TaobaoXhotelRoomUpdateAPIRequest) SetAllotmentStartTime(_allotmentStartTime string) error { + r._allotmentStartTime = _allotmentStartTime + r.Set("allotment_start_time", _allotmentStartTime) + return nil +} + +// AllotmentStartTime Getter +func (r TaobaoXhotelRoomUpdateAPIRequest) GetAllotmentStartTime() string { + return r._allotmentStartTime +} +// Status Setter +// 宝贝状态,1上架。 +func (r *TaobaoXhotelRoomUpdateAPIRequest) SetStatus(_status int64) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoXhotelRoomUpdateAPIRequest) GetStatus() int64 { + return r._status +} diff --git a/model/xhotelitem/TaobaoXhotelRoomUpdateAPIResponse.go b/model/xhotelitem/TaobaoXhotelRoomUpdateAPIResponse.go new file mode 100644 index 0000000000..294e1f5670 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRoomUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +房型库存推送接口(全量推送) API返回值 +taobao.xhotel.room.update + +此接口用于更新一个酒店商品,根据传入的gid更新商品信息,该商品必须为对应的发布者才能执行更新操作。如果对应的商品在酒店系统中不存在,则会返回错误提示。 +*/ +type TaobaoXhotelRoomUpdateAPIResponse struct { + model.CommonResponse + TaobaoXhotelRoomUpdateAPIResponseModel +} + +// 房型库存推送接口(全量推送) 成功返回结果 +type TaobaoXhotelRoomUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_room_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // gid酒店商品id + Gid int64 `json:"gid,omitempty" xml:"gid,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRoomUpdateResponse.go b/model/xhotelitem/TaobaoXhotelRoomUpdateResponse.go deleted file mode 100644 index b581ed43ec..0000000000 --- a/model/xhotelitem/TaobaoXhotelRoomUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -房型库存推送接口(全量推送) API返回值 -taobao.xhotel.room.update - -此接口用于更新一个酒店商品,根据传入的gid更新商品信息,该商品必须为对应的发布者才能执行更新操作。如果对应的商品在酒店系统中不存在,则会返回错误提示。 -*/ -type TaobaoXhotelRoomUpdateAPIResponse struct { - model.CommonResponse - TaobaoXhotelRoomUpdateResponse -} - -// 房型库存推送接口(全量推送) 成功返回结果 -type TaobaoXhotelRoomUpdateResponse struct { - XMLName xml.Name `xml:"xhotel_room_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // gid酒店商品id - Gid int64 `json:"gid,omitempty" xml:"gid,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRoomsIncrementAPIRequest.go b/model/xhotelitem/TaobaoXhotelRoomsIncrementAPIRequest.go new file mode 100644 index 0000000000..259e99ab87 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRoomsIncrementAPIRequest.go @@ -0,0 +1,52 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +房型库存推送接口(批量增量) API请求 +taobao.xhotel.rooms.increment + +Room库存增量更新接口,用户仅需要更新ROOM库存中发生变化的库存日历即可。 +*/ +type TaobaoXhotelRoomsIncrementAPIRequest struct { + model.Params + // 批量全量推送房型共享库存,一次最多修改30个房型。json encode。示例:[{"out_rid":"hotel1_roomtype22","vendor":"","allotment_start_Time":"","allotment_end_time":"","superbook_start_time":"","superbook_end_time":"","roomQuota":[{"date":2010-01-28,"quota":10,"al_quota":2,"sp_quota":3}]}] 其中al_quota为保留房库存,sp_quota为超预定库存,quota为物理库存。al_quota和sp_quota需要向运营申请权限才可维护。allotment_start_Time和allotment_end_time为保留房库存开始和截止时间;superbook_start_time和superbook_end_time为超预定库存开始和截止时间。 + _roomQuotaMap string +} + +// 初始化TaobaoXhotelRoomsIncrementAPIRequest对象 +func NewTaobaoXhotelRoomsIncrementRequest() *TaobaoXhotelRoomsIncrementAPIRequest{ + return &TaobaoXhotelRoomsIncrementAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRoomsIncrementAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.rooms.increment" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRoomsIncrementAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RoomQuotaMap Setter +// 批量全量推送房型共享库存,一次最多修改30个房型。json encode。示例:[{"out_rid":"hotel1_roomtype22","vendor":"","allotment_start_Time":"","allotment_end_time":"","superbook_start_time":"","superbook_end_time":"","roomQuota":[{"date":2010-01-28,"quota":10,"al_quota":2,"sp_quota":3}]}] 其中al_quota为保留房库存,sp_quota为超预定库存,quota为物理库存。al_quota和sp_quota需要向运营申请权限才可维护。allotment_start_Time和allotment_end_time为保留房库存开始和截止时间;superbook_start_time和superbook_end_time为超预定库存开始和截止时间。 +func (r *TaobaoXhotelRoomsIncrementAPIRequest) SetRoomQuotaMap(_roomQuotaMap string) error { + r._roomQuotaMap = _roomQuotaMap + r.Set("room_quota_map", _roomQuotaMap) + return nil +} + +// RoomQuotaMap Getter +func (r TaobaoXhotelRoomsIncrementAPIRequest) GetRoomQuotaMap() string { + return r._roomQuotaMap +} diff --git a/model/xhotelitem/TaobaoXhotelRoomsIncrementAPIResponse.go b/model/xhotelitem/TaobaoXhotelRoomsIncrementAPIResponse.go new file mode 100644 index 0000000000..2ff9abfbff --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRoomsIncrementAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +房型库存推送接口(批量增量) API返回值 +taobao.xhotel.rooms.increment + +Room库存增量更新接口,用户仅需要更新ROOM库存中发生变化的库存日历即可。 +*/ +type TaobaoXhotelRoomsIncrementAPIResponse struct { + model.CommonResponse + TaobaoXhotelRoomsIncrementAPIResponseModel +} + +// 房型库存推送接口(批量增量) 成功返回结果 +type TaobaoXhotelRoomsIncrementAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_rooms_increment_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功的gids LIST + Gids []string `json:"gids,omitempty" xml:"gids>string,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRoomsIncrementResponse.go b/model/xhotelitem/TaobaoXhotelRoomsIncrementResponse.go deleted file mode 100644 index 7e51ec0fdf..0000000000 --- a/model/xhotelitem/TaobaoXhotelRoomsIncrementResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -房型库存推送接口(批量增量) API返回值 -taobao.xhotel.rooms.increment - -Room库存增量更新接口,用户仅需要更新ROOM库存中发生变化的库存日历即可。 -*/ -type TaobaoXhotelRoomsIncrementAPIResponse struct { - model.CommonResponse - TaobaoXhotelRoomsIncrementResponse -} - -// 房型库存推送接口(批量增量) 成功返回结果 -type TaobaoXhotelRoomsIncrementResponse struct { - XMLName xml.Name `xml:"xhotel_rooms_increment_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功的gids LIST - Gids []string `json:"gids,omitempty" xml:"gids>string,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRoomsUpdateAPIRequest.go b/model/xhotelitem/TaobaoXhotelRoomsUpdateAPIRequest.go new file mode 100644 index 0000000000..3a65c80979 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRoomsUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +房型共享库存推送接口(批量全量) API请求 +taobao.xhotel.rooms.update + +此接口用于更新多个集市酒店商品房态信息,根据传入的gids更新商品信息,该商品必须为对应的发布者才能执行更新操作。如果对应的商品在淘宝集市酒店系统中不存在,则会返回错误提示。是全量更新,非增量,会把之前的房态进行覆盖。 +*/ +type TaobaoXhotelRoomsUpdateAPIRequest struct { + model.Params + // 批量全量推送房型共享库存,一次最多修改30个房型。json encode。示例:[{"out_rid":"hotel1_roomtype22","vendor":"","allotment_start_Time":"","allotment_end_time":"","superbook_start_time":"","superbook_end_time":"","roomQuota":[{"date":2010-01-28,"quota":10,"al_quota":2,"sp_quota":3}]}] 其中al_quota为保留房库存,sp_quota为超预定库存,quota为物理库存。al_quota和sp_quota需要向运营申请权限才可维护。allotment_start_Time和allotment_end_time为保留房库存开始和截止时间;superbook_start_time和superbook_end_time为超预定库存开始和截止时间。 + _roomQuotaMap string +} + +// 初始化TaobaoXhotelRoomsUpdateAPIRequest对象 +func NewTaobaoXhotelRoomsUpdateRequest() *TaobaoXhotelRoomsUpdateAPIRequest{ + return &TaobaoXhotelRoomsUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRoomsUpdateAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.rooms.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRoomsUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// RoomQuotaMap Setter +// 批量全量推送房型共享库存,一次最多修改30个房型。json encode。示例:[{"out_rid":"hotel1_roomtype22","vendor":"","allotment_start_Time":"","allotment_end_time":"","superbook_start_time":"","superbook_end_time":"","roomQuota":[{"date":2010-01-28,"quota":10,"al_quota":2,"sp_quota":3}]}] 其中al_quota为保留房库存,sp_quota为超预定库存,quota为物理库存。al_quota和sp_quota需要向运营申请权限才可维护。allotment_start_Time和allotment_end_time为保留房库存开始和截止时间;superbook_start_time和superbook_end_time为超预定库存开始和截止时间。 +func (r *TaobaoXhotelRoomsUpdateAPIRequest) SetRoomQuotaMap(_roomQuotaMap string) error { + r._roomQuotaMap = _roomQuotaMap + r.Set("room_quota_map", _roomQuotaMap) + return nil +} + +// RoomQuotaMap Getter +func (r TaobaoXhotelRoomsUpdateAPIRequest) GetRoomQuotaMap() string { + return r._roomQuotaMap +} diff --git a/model/xhotelitem/TaobaoXhotelRoomsUpdateAPIResponse.go b/model/xhotelitem/TaobaoXhotelRoomsUpdateAPIResponse.go new file mode 100644 index 0000000000..6d14515c22 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRoomsUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +房型共享库存推送接口(批量全量) API返回值 +taobao.xhotel.rooms.update + +此接口用于更新多个集市酒店商品房态信息,根据传入的gids更新商品信息,该商品必须为对应的发布者才能执行更新操作。如果对应的商品在淘宝集市酒店系统中不存在,则会返回错误提示。是全量更新,非增量,会把之前的房态进行覆盖。 +*/ +type TaobaoXhotelRoomsUpdateAPIResponse struct { + model.CommonResponse + TaobaoXhotelRoomsUpdateAPIResponseModel +} + +// 房型共享库存推送接口(批量全量) 成功返回结果 +type TaobaoXhotelRoomsUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_rooms_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 成功的gids LIST + Gids []string `json:"gids,omitempty" xml:"gids>string,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRoomsUpdateResponse.go b/model/xhotelitem/TaobaoXhotelRoomsUpdateResponse.go deleted file mode 100644 index 1f683e62de..0000000000 --- a/model/xhotelitem/TaobaoXhotelRoomsUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -房型共享库存推送接口(批量全量) API返回值 -taobao.xhotel.rooms.update - -此接口用于更新多个集市酒店商品房态信息,根据传入的gids更新商品信息,该商品必须为对应的发布者才能执行更新操作。如果对应的商品在淘宝集市酒店系统中不存在,则会返回错误提示。是全量更新,非增量,会把之前的房态进行覆盖。 -*/ -type TaobaoXhotelRoomsUpdateAPIResponse struct { - model.CommonResponse - TaobaoXhotelRoomsUpdateResponse -} - -// 房型共享库存推送接口(批量全量) 成功返回结果 -type TaobaoXhotelRoomsUpdateResponse struct { - XMLName xml.Name `xml:"xhotel_rooms_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 成功的gids LIST - Gids []string `json:"gids,omitempty" xml:"gids>string,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRoomtypeAddAPIRequest.go b/model/xhotelitem/TaobaoXhotelRoomtypeAddAPIRequest.go new file mode 100644 index 0000000000..8049151759 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRoomtypeAddAPIRequest.go @@ -0,0 +1,332 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +房型新增接口(ID重复变更新) API请求 +taobao.xhotel.roomtype.add + +房型添加或更新 +*/ +type TaobaoXhotelRoomtypeAddAPIRequest struct { + model.Params + // 卖家房型ID,不能重复建议格式是:酒店code_房型code + _outerId string + // (已废弃)请使用outHid + _hid int64 + // 房型名称。不能超过30字 + _name string + // 最大入住人数,默认2(1-99) + _maxOccupancy int64 + // 具体面积大小,请按照正确格式填写。两种格式,例如:40或者 10-20 + _area string + // 客房在建筑的第几层,隔层为1-2层,4-5层,7-8层 + _floor string + // 床型。按链接中床型列表定义值存储 http://open.taobao.com/docs/doc.htm?&docType=1&articleId=105610 + _bedType string + // 床宽。按自己定义存储,比如:2.1米 + _bedSize string + // 宽带服务。A,B,C,D。分别代表: A:无宽带,B:免费宽带,C:收费宽带,D:部分收费宽带 + _internet string + // 设施服务。JSON格式。 value值true有此服务,false没有。 bar:吧台,catv:有线电视,ddd:国内长途电话,idd:国际长途电话,toilet:独立卫生间,pubtoliet:公共卫生间。 如: {"bar":false,"catv":false,"ddd":false,"idd":false,"pubtoilet":false,"toilet":false} + _service string + // 不要使用 + _extend string + // 0:无窗/1:有窗/2:部分有窗/3:暗窗/4:部分暗窗 + _windowType int64 + // 该字段只有确定的时候,才允许填入。用于标示和淘宝房型的匹配关系。目前尚未启动该字段。 + _srid int64 + // (必传)商家酒店ID,指明该房型属于哪家酒店 + _outHid string + // 系统商,无申请不可使用 + _vendor string + // 房型图片只支持远程图片,格式如下:[{"url":"http://taobao.com/123.jpg","ismain":"true"},{"url":"http://taobao.com/456.jpg","ismain":"false"},{"url":"http://taobao.com/789.jpg","ismain":"false"}]其中url是远程图片的访问地址(URL地址必须是合法的,否则会报错),main是是否为主图。只能设置一张图片为主图。 + _pics string + // 卖家房型英文名称 + _nameE string + // 操作人信息 + _operator string + // 属性值为1: 含义是非直连房型 + _connectionType int64 + // main_bed_type母床型,sub_bed_type子床型。详情参见文档: https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.yN2mES&docType=1&articleId=118712&previewCode=1DABB73EA935608455E203BA06CF3566 + _bedInfo string + // 酒店房型设施 + _standardRoomFacilities string +} + +// 初始化TaobaoXhotelRoomtypeAddAPIRequest对象 +func NewTaobaoXhotelRoomtypeAddRequest() *TaobaoXhotelRoomtypeAddAPIRequest{ + return &TaobaoXhotelRoomtypeAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.roomtype.add" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OuterId Setter +// 卖家房型ID,不能重复建议格式是:酒店code_房型code +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetOuterId() string { + return r._outerId +} +// Hid Setter +// (已废弃)请使用outHid +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetHid(_hid int64) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetHid() int64 { + return r._hid +} +// Name Setter +// 房型名称。不能超过30字 +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetName() string { + return r._name +} +// MaxOccupancy Setter +// 最大入住人数,默认2(1-99) +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetMaxOccupancy(_maxOccupancy int64) error { + r._maxOccupancy = _maxOccupancy + r.Set("max_occupancy", _maxOccupancy) + return nil +} + +// MaxOccupancy Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetMaxOccupancy() int64 { + return r._maxOccupancy +} +// Area Setter +// 具体面积大小,请按照正确格式填写。两种格式,例如:40或者 10-20 +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetArea(_area string) error { + r._area = _area + r.Set("area", _area) + return nil +} + +// Area Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetArea() string { + return r._area +} +// Floor Setter +// 客房在建筑的第几层,隔层为1-2层,4-5层,7-8层 +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetFloor(_floor string) error { + r._floor = _floor + r.Set("floor", _floor) + return nil +} + +// Floor Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetFloor() string { + return r._floor +} +// BedType Setter +// 床型。按链接中床型列表定义值存储 http://open.taobao.com/docs/doc.htm?&docType=1&articleId=105610 +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetBedType(_bedType string) error { + r._bedType = _bedType + r.Set("bed_type", _bedType) + return nil +} + +// BedType Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetBedType() string { + return r._bedType +} +// BedSize Setter +// 床宽。按自己定义存储,比如:2.1米 +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetBedSize(_bedSize string) error { + r._bedSize = _bedSize + r.Set("bed_size", _bedSize) + return nil +} + +// BedSize Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetBedSize() string { + return r._bedSize +} +// Internet Setter +// 宽带服务。A,B,C,D。分别代表: A:无宽带,B:免费宽带,C:收费宽带,D:部分收费宽带 +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetInternet(_internet string) error { + r._internet = _internet + r.Set("internet", _internet) + return nil +} + +// Internet Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetInternet() string { + return r._internet +} +// Service Setter +// 设施服务。JSON格式。 value值true有此服务,false没有。 bar:吧台,catv:有线电视,ddd:国内长途电话,idd:国际长途电话,toilet:独立卫生间,pubtoliet:公共卫生间。 如: {"bar":false,"catv":false,"ddd":false,"idd":false,"pubtoilet":false,"toilet":false} +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetService(_service string) error { + r._service = _service + r.Set("service", _service) + return nil +} + +// Service Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetService() string { + return r._service +} +// Extend Setter +// 不要使用 +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetExtend(_extend string) error { + r._extend = _extend + r.Set("extend", _extend) + return nil +} + +// Extend Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetExtend() string { + return r._extend +} +// WindowType Setter +// 0:无窗/1:有窗/2:部分有窗/3:暗窗/4:部分暗窗 +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetWindowType(_windowType int64) error { + r._windowType = _windowType + r.Set("window_type", _windowType) + return nil +} + +// WindowType Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetWindowType() int64 { + return r._windowType +} +// Srid Setter +// 该字段只有确定的时候,才允许填入。用于标示和淘宝房型的匹配关系。目前尚未启动该字段。 +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetSrid(_srid int64) error { + r._srid = _srid + r.Set("srid", _srid) + return nil +} + +// Srid Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetSrid() int64 { + return r._srid +} +// OutHid Setter +// (必传)商家酒店ID,指明该房型属于哪家酒店 +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetOutHid(_outHid string) error { + r._outHid = _outHid + r.Set("out_hid", _outHid) + return nil +} + +// OutHid Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetOutHid() string { + return r._outHid +} +// Vendor Setter +// 系统商,无申请不可使用 +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetVendor() string { + return r._vendor +} +// Pics Setter +// 房型图片只支持远程图片,格式如下:[{"url":"http://taobao.com/123.jpg","ismain":"true"},{"url":"http://taobao.com/456.jpg","ismain":"false"},{"url":"http://taobao.com/789.jpg","ismain":"false"}]其中url是远程图片的访问地址(URL地址必须是合法的,否则会报错),main是是否为主图。只能设置一张图片为主图。 +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetPics(_pics string) error { + r._pics = _pics + r.Set("pics", _pics) + return nil +} + +// Pics Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetPics() string { + return r._pics +} +// NameE Setter +// 卖家房型英文名称 +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetNameE(_nameE string) error { + r._nameE = _nameE + r.Set("name_e", _nameE) + return nil +} + +// NameE Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetNameE() string { + return r._nameE +} +// Operator Setter +// 操作人信息 +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetOperator(_operator string) error { + r._operator = _operator + r.Set("operator", _operator) + return nil +} + +// Operator Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetOperator() string { + return r._operator +} +// ConnectionType Setter +// 属性值为1: 含义是非直连房型 +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetConnectionType(_connectionType int64) error { + r._connectionType = _connectionType + r.Set("connection_type", _connectionType) + return nil +} + +// ConnectionType Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetConnectionType() int64 { + return r._connectionType +} +// BedInfo Setter +// main_bed_type母床型,sub_bed_type子床型。详情参见文档: https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.yN2mES&docType=1&articleId=118712&previewCode=1DABB73EA935608455E203BA06CF3566 +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetBedInfo(_bedInfo string) error { + r._bedInfo = _bedInfo + r.Set("bed_info", _bedInfo) + return nil +} + +// BedInfo Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetBedInfo() string { + return r._bedInfo +} +// StandardRoomFacilities Setter +// 酒店房型设施 +func (r *TaobaoXhotelRoomtypeAddAPIRequest) SetStandardRoomFacilities(_standardRoomFacilities string) error { + r._standardRoomFacilities = _standardRoomFacilities + r.Set("standard_room_facilities", _standardRoomFacilities) + return nil +} + +// StandardRoomFacilities Getter +func (r TaobaoXhotelRoomtypeAddAPIRequest) GetStandardRoomFacilities() string { + return r._standardRoomFacilities +} diff --git a/model/xhotelitem/TaobaoXhotelRoomtypeAddAPIResponse.go b/model/xhotelitem/TaobaoXhotelRoomtypeAddAPIResponse.go new file mode 100644 index 0000000000..18d921a713 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRoomtypeAddAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +房型新增接口(ID重复变更新) API返回值 +taobao.xhotel.roomtype.add + +房型添加或更新 +*/ +type TaobaoXhotelRoomtypeAddAPIResponse struct { + model.CommonResponse + TaobaoXhotelRoomtypeAddAPIResponseModel +} + +// 房型新增接口(ID重复变更新) 成功返回结果 +type TaobaoXhotelRoomtypeAddAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_roomtype_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 房型信息 + Xroomtype *XRoomType `json:"xroomtype,omitempty" xml:"xroomtype,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRoomtypeAddResponse.go b/model/xhotelitem/TaobaoXhotelRoomtypeAddResponse.go deleted file mode 100644 index 0f2fd7b3f6..0000000000 --- a/model/xhotelitem/TaobaoXhotelRoomtypeAddResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -房型新增接口(ID重复变更新) API返回值 -taobao.xhotel.roomtype.add - -房型添加或更新 -*/ -type TaobaoXhotelRoomtypeAddAPIResponse struct { - model.CommonResponse - TaobaoXhotelRoomtypeAddResponse -} - -// 房型新增接口(ID重复变更新) 成功返回结果 -type TaobaoXhotelRoomtypeAddResponse struct { - XMLName xml.Name `xml:"xhotel_roomtype_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 房型信息 - Xroomtype *XRoomType `json:"xroomtype,omitempty" xml:"xroomtype,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRoomtypeConflictDataAPIRequest.go b/model/xhotelitem/TaobaoXhotelRoomtypeConflictDataAPIRequest.go new file mode 100644 index 0000000000..5a3d9fc881 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRoomtypeConflictDataAPIRequest.go @@ -0,0 +1,52 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家床型冲突数据接口 API请求 +taobao.xhotel.roomtype.conflict.data + +商家床型冲突数据接口 +*/ +type TaobaoXhotelRoomtypeConflictDataAPIRequest struct { + model.Params + // 查询第几页数据 + _currentPage int64 +} + +// 初始化TaobaoXhotelRoomtypeConflictDataAPIRequest对象 +func NewTaobaoXhotelRoomtypeConflictDataRequest() *TaobaoXhotelRoomtypeConflictDataAPIRequest{ + return &TaobaoXhotelRoomtypeConflictDataAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRoomtypeConflictDataAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.roomtype.conflict.data" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRoomtypeConflictDataAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CurrentPage Setter +// 查询第几页数据 +func (r *TaobaoXhotelRoomtypeConflictDataAPIRequest) SetCurrentPage(_currentPage int64) error { + r._currentPage = _currentPage + r.Set("current_page", _currentPage) + return nil +} + +// CurrentPage Getter +func (r TaobaoXhotelRoomtypeConflictDataAPIRequest) GetCurrentPage() int64 { + return r._currentPage +} diff --git a/model/xhotelitem/TaobaoXhotelRoomtypeConflictDataAPIResponse.go b/model/xhotelitem/TaobaoXhotelRoomtypeConflictDataAPIResponse.go new file mode 100644 index 0000000000..1b6039e9fa --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRoomtypeConflictDataAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家床型冲突数据接口 API返回值 +taobao.xhotel.roomtype.conflict.data + +商家床型冲突数据接口 +*/ +type TaobaoXhotelRoomtypeConflictDataAPIResponse struct { + model.CommonResponse + TaobaoXhotelRoomtypeConflictDataAPIResponseModel +} + +// 商家床型冲突数据接口 成功返回结果 +type TaobaoXhotelRoomtypeConflictDataAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_roomtype_conflict_data_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果集 + Result *TaobaoXhotelRoomtypeConflictDataResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRoomtypeConflictDataResponse.go b/model/xhotelitem/TaobaoXhotelRoomtypeConflictDataResponse.go deleted file mode 100644 index 692c829cfc..0000000000 --- a/model/xhotelitem/TaobaoXhotelRoomtypeConflictDataResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家床型冲突数据接口 API返回值 -taobao.xhotel.roomtype.conflict.data - -商家床型冲突数据接口 -*/ -type TaobaoXhotelRoomtypeConflictDataAPIResponse struct { - model.CommonResponse - TaobaoXhotelRoomtypeConflictDataResponse -} - -// 商家床型冲突数据接口 成功返回结果 -type TaobaoXhotelRoomtypeConflictDataResponse struct { - XMLName xml.Name `xml:"xhotel_roomtype_conflict_data_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果集 - Result *TaobaoXhotelRoomtypeConflictDataResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRoomtypeDeletePublicAPIRequest.go b/model/xhotelitem/TaobaoXhotelRoomtypeDeletePublicAPIRequest.go new file mode 100644 index 0000000000..45641dfe1d --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRoomtypeDeletePublicAPIRequest.go @@ -0,0 +1,94 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +商家删除房型数据接口 API请求 +taobao.xhotel.roomtype.delete.public + +房型删除TOP接口 +*/ +type TaobaoXhotelRoomtypeDeletePublicAPIRequest struct { + model.Params + // 房型rid ,传参方式:rid 或者 outer_id+vendor + _rid int64 + // vendor + _vendor string + // 外部房型ID + _outerRid string + // 具体操作人,比如酒店帐号、小二名称等 + _operator string +} + +// 初始化TaobaoXhotelRoomtypeDeletePublicAPIRequest对象 +func NewTaobaoXhotelRoomtypeDeletePublicRequest() *TaobaoXhotelRoomtypeDeletePublicAPIRequest{ + return &TaobaoXhotelRoomtypeDeletePublicAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRoomtypeDeletePublicAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.roomtype.delete.public" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRoomtypeDeletePublicAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rid Setter +// 房型rid ,传参方式:rid 或者 outer_id+vendor +func (r *TaobaoXhotelRoomtypeDeletePublicAPIRequest) SetRid(_rid int64) error { + r._rid = _rid + r.Set("rid", _rid) + return nil +} + +// Rid Getter +func (r TaobaoXhotelRoomtypeDeletePublicAPIRequest) GetRid() int64 { + return r._rid +} +// Vendor Setter +// vendor +func (r *TaobaoXhotelRoomtypeDeletePublicAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelRoomtypeDeletePublicAPIRequest) GetVendor() string { + return r._vendor +} +// OuterRid Setter +// 外部房型ID +func (r *TaobaoXhotelRoomtypeDeletePublicAPIRequest) SetOuterRid(_outerRid string) error { + r._outerRid = _outerRid + r.Set("outer_rid", _outerRid) + return nil +} + +// OuterRid Getter +func (r TaobaoXhotelRoomtypeDeletePublicAPIRequest) GetOuterRid() string { + return r._outerRid +} +// Operator Setter +// 具体操作人,比如酒店帐号、小二名称等 +func (r *TaobaoXhotelRoomtypeDeletePublicAPIRequest) SetOperator(_operator string) error { + r._operator = _operator + r.Set("operator", _operator) + return nil +} + +// Operator Getter +func (r TaobaoXhotelRoomtypeDeletePublicAPIRequest) GetOperator() string { + return r._operator +} diff --git a/model/xhotelitem/TaobaoXhotelRoomtypeDeletePublicAPIResponse.go b/model/xhotelitem/TaobaoXhotelRoomtypeDeletePublicAPIResponse.go new file mode 100644 index 0000000000..3eddfa958e --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRoomtypeDeletePublicAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +商家删除房型数据接口 API返回值 +taobao.xhotel.roomtype.delete.public + +房型删除TOP接口 +*/ +type TaobaoXhotelRoomtypeDeletePublicAPIResponse struct { + model.CommonResponse + TaobaoXhotelRoomtypeDeletePublicAPIResponseModel +} + +// 商家删除房型数据接口 成功返回结果 +type TaobaoXhotelRoomtypeDeletePublicAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_roomtype_delete_public_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoXhotelRoomtypeDeletePublicResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRoomtypeDeletePublicResponse.go b/model/xhotelitem/TaobaoXhotelRoomtypeDeletePublicResponse.go deleted file mode 100644 index ef5ca0d39f..0000000000 --- a/model/xhotelitem/TaobaoXhotelRoomtypeDeletePublicResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -商家删除房型数据接口 API返回值 -taobao.xhotel.roomtype.delete.public - -房型删除TOP接口 -*/ -type TaobaoXhotelRoomtypeDeletePublicAPIResponse struct { - model.CommonResponse - TaobaoXhotelRoomtypeDeletePublicResponse -} - -// 商家删除房型数据接口 成功返回结果 -type TaobaoXhotelRoomtypeDeletePublicResponse struct { - XMLName xml.Name `xml:"xhotel_roomtype_delete_public_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoXhotelRoomtypeDeletePublicResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRoomtypeGetAPIRequest.go b/model/xhotelitem/TaobaoXhotelRoomtypeGetAPIRequest.go new file mode 100644 index 0000000000..b47e59b152 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRoomtypeGetAPIRequest.go @@ -0,0 +1,80 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +房型查询接口 API请求 +taobao.xhotel.roomtype.get + +房型查询房型查询接口返回结果增加date_confirm字段 +*/ +type TaobaoXhotelRoomtypeGetAPIRequest struct { + model.Params + // 废弃,使用商家房型ID + _rid int64 + // 商家房型ID + _outerId string + // 系统商,一般不填写,使用须申请 + _vendor string +} + +// 初始化TaobaoXhotelRoomtypeGetAPIRequest对象 +func NewTaobaoXhotelRoomtypeGetRequest() *TaobaoXhotelRoomtypeGetAPIRequest{ + return &TaobaoXhotelRoomtypeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRoomtypeGetAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.roomtype.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRoomtypeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rid Setter +// 废弃,使用商家房型ID +func (r *TaobaoXhotelRoomtypeGetAPIRequest) SetRid(_rid int64) error { + r._rid = _rid + r.Set("rid", _rid) + return nil +} + +// Rid Getter +func (r TaobaoXhotelRoomtypeGetAPIRequest) GetRid() int64 { + return r._rid +} +// OuterId Setter +// 商家房型ID +func (r *TaobaoXhotelRoomtypeGetAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoXhotelRoomtypeGetAPIRequest) GetOuterId() string { + return r._outerId +} +// Vendor Setter +// 系统商,一般不填写,使用须申请 +func (r *TaobaoXhotelRoomtypeGetAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelRoomtypeGetAPIRequest) GetVendor() string { + return r._vendor +} diff --git a/model/xhotelitem/TaobaoXhotelRoomtypeGetAPIResponse.go b/model/xhotelitem/TaobaoXhotelRoomtypeGetAPIResponse.go new file mode 100644 index 0000000000..5fb40e3bcc --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRoomtypeGetAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +房型查询接口 API返回值 +taobao.xhotel.roomtype.get + +房型查询房型查询接口返回结果增加date_confirm字段 +*/ +type TaobaoXhotelRoomtypeGetAPIResponse struct { + model.CommonResponse + TaobaoXhotelRoomtypeGetAPIResponseModel +} + +// 房型查询接口 成功返回结果 +type TaobaoXhotelRoomtypeGetAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_roomtype_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询得到的RoomType + Xroomtype *XRoomType `json:"xroomtype,omitempty" xml:"xroomtype,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRoomtypeGetResponse.go b/model/xhotelitem/TaobaoXhotelRoomtypeGetResponse.go deleted file mode 100644 index e082f05b15..0000000000 --- a/model/xhotelitem/TaobaoXhotelRoomtypeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -房型查询接口 API返回值 -taobao.xhotel.roomtype.get - -房型查询房型查询接口返回结果增加date_confirm字段 -*/ -type TaobaoXhotelRoomtypeGetAPIResponse struct { - model.CommonResponse - TaobaoXhotelRoomtypeGetResponse -} - -// 房型查询接口 成功返回结果 -type TaobaoXhotelRoomtypeGetResponse struct { - XMLName xml.Name `xml:"xhotel_roomtype_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询得到的RoomType - Xroomtype *XRoomType `json:"xroomtype,omitempty" xml:"xroomtype,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelRoomtypeUpdateAPIRequest.go b/model/xhotelitem/TaobaoXhotelRoomtypeUpdateAPIRequest.go new file mode 100644 index 0000000000..cfb7bea6e9 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRoomtypeUpdateAPIRequest.go @@ -0,0 +1,374 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +房型更新接口(ID不存在自动新增) API请求 +taobao.xhotel.roomtype.update + +酒店房型更新或添加 +*/ +type TaobaoXhotelRoomtypeUpdateAPIRequest struct { + model.Params + // 房型名称。不能超过30字;添加房型时为必须 + _name string + // 最大入住人数,默认2(1-99) + _maxOccupancy int64 + // 具体面积大小,请按照正确格式填写。两种格式,例如:40 或者 10-20 + _area string + // 客房在建筑的第几层,隔层为1-2层,4-5层,7-8层 + _floor string + // 床型。必填,按链接中床型列表定义值存储 http://open.taobao.com/docs/doc.htm?&docType=1&articleId=105610 + _bedType string + // 床宽。按自己定义存储,比如:2.1米 + _bedSize string + // 宽带服务。A,B,C,D。分别代表: A:无宽带,B:免费宽带,C:收费宽带,D:部分收费宽带 + _internet string + // 设施服务。JSON格式。 value值true有此服务,false没有。 bar:吧台,catv:有线电视,ddd:国内长途电话,idd:国际长途电话,toilet:独立卫生间,pubtoliet:公共卫生间。 如: {"bar":false,"catv":false,"ddd":false,"idd":false,"pubtoilet":false,"toilet":false} + _service string + // 扩展信息的JSON。注:此字段的值需要ISV在接入前与淘宝沟通,且确认能解析 + _extend string + // (已废弃) + _rid int64 + // 0:无窗/1:有窗 + _windowType int64 + // 该字段只有确定的时候,才允许填入。用于标示和淘宝房型的匹配关系。目前尚未启动该字段。 + _srid int64 + // (必传)商家房型ID + _outerId string + // 系统商,不要使用,只有申请才可用 + _vendor string + // (已废弃) + _hid int64 + // 商家酒店ID(如果更新房型的时候房型不存在,会拿该code去新增房型) + _hotelCode string + // 房型图片只支持远程图片,格式如下:[{"url":"http://taobao.com/123.jpg","ismain":"true"},{"url":"http://taobao.com/456.jpg","ismain":"false"},{"url":"http://taobao.com/789.jpg","ismain":"false"}]其中url是远程图片的访问地址(URL地址必须是合法的,否则会报错),main是是否为主图。只能设置一张图片为主图。要求:无logo、水印、边框、人物,不模糊,不重复,不歪斜,房间图清晰,图片尺寸不小于300*225,不小于5M + _pics string + // 房型状态。0:正常,-1:删除,-2:停售 + _status *model.File + // 卖家房型英文名称 + _nameE string + // 操作人信息 + _operator string + // 属性值为1: 含义是非直连房型 + _connectionType int64 + // main_bed_type母床型,sub_bed_type子床型。详情参见文档: https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.yN2mES&docType=1&articleId=118712&previewCode=1DABB73EA935608455E203BA06CF3566 + _bedInfo string + // 新的房型编码,请确实需要修改某个房型的编码的时候才使用,如需使用,请联系飞猪技术支持开通权限,否则会更新失败 + _newOuterId string + // 房间设施 + _standardRoomFacilities string +} + +// 初始化TaobaoXhotelRoomtypeUpdateAPIRequest对象 +func NewTaobaoXhotelRoomtypeUpdateRequest() *TaobaoXhotelRoomtypeUpdateAPIRequest{ + return &TaobaoXhotelRoomtypeUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.roomtype.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Name Setter +// 房型名称。不能超过30字;添加房型时为必须 +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetName() string { + return r._name +} +// MaxOccupancy Setter +// 最大入住人数,默认2(1-99) +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetMaxOccupancy(_maxOccupancy int64) error { + r._maxOccupancy = _maxOccupancy + r.Set("max_occupancy", _maxOccupancy) + return nil +} + +// MaxOccupancy Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetMaxOccupancy() int64 { + return r._maxOccupancy +} +// Area Setter +// 具体面积大小,请按照正确格式填写。两种格式,例如:40 或者 10-20 +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetArea(_area string) error { + r._area = _area + r.Set("area", _area) + return nil +} + +// Area Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetArea() string { + return r._area +} +// Floor Setter +// 客房在建筑的第几层,隔层为1-2层,4-5层,7-8层 +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetFloor(_floor string) error { + r._floor = _floor + r.Set("floor", _floor) + return nil +} + +// Floor Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetFloor() string { + return r._floor +} +// BedType Setter +// 床型。必填,按链接中床型列表定义值存储 http://open.taobao.com/docs/doc.htm?&docType=1&articleId=105610 +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetBedType(_bedType string) error { + r._bedType = _bedType + r.Set("bed_type", _bedType) + return nil +} + +// BedType Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetBedType() string { + return r._bedType +} +// BedSize Setter +// 床宽。按自己定义存储,比如:2.1米 +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetBedSize(_bedSize string) error { + r._bedSize = _bedSize + r.Set("bed_size", _bedSize) + return nil +} + +// BedSize Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetBedSize() string { + return r._bedSize +} +// Internet Setter +// 宽带服务。A,B,C,D。分别代表: A:无宽带,B:免费宽带,C:收费宽带,D:部分收费宽带 +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetInternet(_internet string) error { + r._internet = _internet + r.Set("internet", _internet) + return nil +} + +// Internet Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetInternet() string { + return r._internet +} +// Service Setter +// 设施服务。JSON格式。 value值true有此服务,false没有。 bar:吧台,catv:有线电视,ddd:国内长途电话,idd:国际长途电话,toilet:独立卫生间,pubtoliet:公共卫生间。 如: {"bar":false,"catv":false,"ddd":false,"idd":false,"pubtoilet":false,"toilet":false} +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetService(_service string) error { + r._service = _service + r.Set("service", _service) + return nil +} + +// Service Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetService() string { + return r._service +} +// Extend Setter +// 扩展信息的JSON。注:此字段的值需要ISV在接入前与淘宝沟通,且确认能解析 +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetExtend(_extend string) error { + r._extend = _extend + r.Set("extend", _extend) + return nil +} + +// Extend Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetExtend() string { + return r._extend +} +// Rid Setter +// (已废弃) +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetRid(_rid int64) error { + r._rid = _rid + r.Set("rid", _rid) + return nil +} + +// Rid Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetRid() int64 { + return r._rid +} +// WindowType Setter +// 0:无窗/1:有窗 +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetWindowType(_windowType int64) error { + r._windowType = _windowType + r.Set("window_type", _windowType) + return nil +} + +// WindowType Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetWindowType() int64 { + return r._windowType +} +// Srid Setter +// 该字段只有确定的时候,才允许填入。用于标示和淘宝房型的匹配关系。目前尚未启动该字段。 +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetSrid(_srid int64) error { + r._srid = _srid + r.Set("srid", _srid) + return nil +} + +// Srid Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetSrid() int64 { + return r._srid +} +// OuterId Setter +// (必传)商家房型ID +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetOuterId() string { + return r._outerId +} +// Vendor Setter +// 系统商,不要使用,只有申请才可用 +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetVendor() string { + return r._vendor +} +// Hid Setter +// (已废弃) +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetHid(_hid int64) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetHid() int64 { + return r._hid +} +// HotelCode Setter +// 商家酒店ID(如果更新房型的时候房型不存在,会拿该code去新增房型) +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetHotelCode(_hotelCode string) error { + r._hotelCode = _hotelCode + r.Set("hotel_code", _hotelCode) + return nil +} + +// HotelCode Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetHotelCode() string { + return r._hotelCode +} +// Pics Setter +// 房型图片只支持远程图片,格式如下:[{"url":"http://taobao.com/123.jpg","ismain":"true"},{"url":"http://taobao.com/456.jpg","ismain":"false"},{"url":"http://taobao.com/789.jpg","ismain":"false"}]其中url是远程图片的访问地址(URL地址必须是合法的,否则会报错),main是是否为主图。只能设置一张图片为主图。要求:无logo、水印、边框、人物,不模糊,不重复,不歪斜,房间图清晰,图片尺寸不小于300*225,不小于5M +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetPics(_pics string) error { + r._pics = _pics + r.Set("pics", _pics) + return nil +} + +// Pics Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetPics() string { + return r._pics +} +// Status Setter +// 房型状态。0:正常,-1:删除,-2:停售 +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetStatus(_status *model.File) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetStatus() *model.File { + return r._status +} +// NameE Setter +// 卖家房型英文名称 +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetNameE(_nameE string) error { + r._nameE = _nameE + r.Set("name_e", _nameE) + return nil +} + +// NameE Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetNameE() string { + return r._nameE +} +// Operator Setter +// 操作人信息 +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetOperator(_operator string) error { + r._operator = _operator + r.Set("operator", _operator) + return nil +} + +// Operator Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetOperator() string { + return r._operator +} +// ConnectionType Setter +// 属性值为1: 含义是非直连房型 +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetConnectionType(_connectionType int64) error { + r._connectionType = _connectionType + r.Set("connection_type", _connectionType) + return nil +} + +// ConnectionType Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetConnectionType() int64 { + return r._connectionType +} +// BedInfo Setter +// main_bed_type母床型,sub_bed_type子床型。详情参见文档: https://open.alitrip.com/docs/doc.htm?spm=0.0.0.0.yN2mES&docType=1&articleId=118712&previewCode=1DABB73EA935608455E203BA06CF3566 +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetBedInfo(_bedInfo string) error { + r._bedInfo = _bedInfo + r.Set("bed_info", _bedInfo) + return nil +} + +// BedInfo Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetBedInfo() string { + return r._bedInfo +} +// NewOuterId Setter +// 新的房型编码,请确实需要修改某个房型的编码的时候才使用,如需使用,请联系飞猪技术支持开通权限,否则会更新失败 +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetNewOuterId(_newOuterId string) error { + r._newOuterId = _newOuterId + r.Set("new_outer_id", _newOuterId) + return nil +} + +// NewOuterId Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetNewOuterId() string { + return r._newOuterId +} +// StandardRoomFacilities Setter +// 房间设施 +func (r *TaobaoXhotelRoomtypeUpdateAPIRequest) SetStandardRoomFacilities(_standardRoomFacilities string) error { + r._standardRoomFacilities = _standardRoomFacilities + r.Set("standard_room_facilities", _standardRoomFacilities) + return nil +} + +// StandardRoomFacilities Getter +func (r TaobaoXhotelRoomtypeUpdateAPIRequest) GetStandardRoomFacilities() string { + return r._standardRoomFacilities +} diff --git a/model/xhotelitem/TaobaoXhotelRoomtypeUpdateAPIResponse.go b/model/xhotelitem/TaobaoXhotelRoomtypeUpdateAPIResponse.go new file mode 100644 index 0000000000..f46c9afa74 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelRoomtypeUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +房型更新接口(ID不存在自动新增) API返回值 +taobao.xhotel.roomtype.update + +酒店房型更新或添加 +*/ +type TaobaoXhotelRoomtypeUpdateAPIResponse struct { + model.CommonResponse + TaobaoXhotelRoomtypeUpdateAPIResponseModel +} + +// 房型更新接口(ID不存在自动新增) 成功返回结果 +type TaobaoXhotelRoomtypeUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_roomtype_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 房型信息 + Xroomtype *XRoomType `json:"xroomtype,omitempty" xml:"xroomtype,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelRoomtypeUpdateResponse.go b/model/xhotelitem/TaobaoXhotelRoomtypeUpdateResponse.go deleted file mode 100644 index c8e9c44843..0000000000 --- a/model/xhotelitem/TaobaoXhotelRoomtypeUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -房型更新接口(ID不存在自动新增) API返回值 -taobao.xhotel.roomtype.update - -酒店房型更新或添加 -*/ -type TaobaoXhotelRoomtypeUpdateAPIResponse struct { - model.CommonResponse - TaobaoXhotelRoomtypeUpdateResponse -} - -// 房型更新接口(ID不存在自动新增) 成功返回结果 -type TaobaoXhotelRoomtypeUpdateResponse struct { - XMLName xml.Name `xml:"xhotel_roomtype_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 房型信息 - Xroomtype *XRoomType `json:"xroomtype,omitempty" xml:"xroomtype,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelServicetimeGetAPIRequest.go b/model/xhotelitem/TaobaoXhotelServicetimeGetAPIRequest.go new file mode 100644 index 0000000000..02669331a0 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelServicetimeGetAPIRequest.go @@ -0,0 +1,52 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询实体对应的服务时间数据 API请求 +taobao.xhotel.servicetime.get + +通过实体来获取对应的服务时间数据 +*/ +type TaobaoXhotelServicetimeGetAPIRequest struct { + model.Params + // 酒店id + _hid int64 +} + +// 初始化TaobaoXhotelServicetimeGetAPIRequest对象 +func NewTaobaoXhotelServicetimeGetRequest() *TaobaoXhotelServicetimeGetAPIRequest{ + return &TaobaoXhotelServicetimeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelServicetimeGetAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.servicetime.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelServicetimeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Hid Setter +// 酒店id +func (r *TaobaoXhotelServicetimeGetAPIRequest) SetHid(_hid int64) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r TaobaoXhotelServicetimeGetAPIRequest) GetHid() int64 { + return r._hid +} diff --git a/model/xhotelitem/TaobaoXhotelServicetimeGetAPIResponse.go b/model/xhotelitem/TaobaoXhotelServicetimeGetAPIResponse.go new file mode 100644 index 0000000000..870730c393 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelServicetimeGetAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询实体对应的服务时间数据 API返回值 +taobao.xhotel.servicetime.get + +通过实体来获取对应的服务时间数据 +*/ +type TaobaoXhotelServicetimeGetAPIResponse struct { + model.CommonResponse + TaobaoXhotelServicetimeGetAPIResponseModel +} + +// 查询实体对应的服务时间数据 成功返回结果 +type TaobaoXhotelServicetimeGetAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_servicetime_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoXhotelServicetimeGetResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelServicetimeGetResponse.go b/model/xhotelitem/TaobaoXhotelServicetimeGetResponse.go deleted file mode 100644 index 4ca2ed36cb..0000000000 --- a/model/xhotelitem/TaobaoXhotelServicetimeGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询实体对应的服务时间数据 API返回值 -taobao.xhotel.servicetime.get - -通过实体来获取对应的服务时间数据 -*/ -type TaobaoXhotelServicetimeGetAPIResponse struct { - model.CommonResponse - TaobaoXhotelServicetimeGetResponse -} - -// 查询实体对应的服务时间数据 成功返回结果 -type TaobaoXhotelServicetimeGetResponse struct { - XMLName xml.Name `xml:"xhotel_servicetime_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoXhotelServicetimeGetResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelServicetimeUpdateAPIRequest.go b/model/xhotelitem/TaobaoXhotelServicetimeUpdateAPIRequest.go new file mode 100644 index 0000000000..81739302f5 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelServicetimeUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪酒店多维度服务时间维护接口 API请求 +taobao.xhotel.servicetime.update + +飞猪酒店多维度服务时间维护,支持卖家维度,supplier维度,酒店维度 +*/ +type TaobaoXhotelServicetimeUpdateAPIRequest struct { + model.Params + // 请按照示例值的格式来填写,涉及到是否当日订单,是否展示,周一到周日的服务时间,业务id,业务类型1为卖家,2为supplier ,3为酒店。[{"businessId":11925099374,"businessType":3,"displayItemInNonWorkingTime":1,"mondayConfirmLocalTime":"09:00-18:00","operator":"操作人","orderConfirmType":1,"saturdayConfirmLocalTime":"09:00-18:00","sellerId":2054718374,"sellerNick":"sandbox_b_27","sundayConfirmLocalTime":"09:00-18:00","supplier":"","thursdayConfirmLocalTime":"09:00-18:00","timeZoneName":"Asia/Shanghai","tuesdayConfirmLocalTime":"09:00-18:00","wednesdayConfirmLocalTime":"09:00-18:00","fridayConfirmLocalTime":"09:00-18:00"},{"businessId":11925099374,"businessType":3,"displayItemInNonWorkingTime":1,"mondayConfirmLocalTime":"09:00-18:00","operator":"操作人","orderConfirmType":2,"saturdayConfirmLocalTime":"09:00-18:00","sellerId":2054718374,"sellerNick":"sandbox_b_27","sundayConfirmLocalTime":"09:00-18:00","supplier":"","thursdayConfirmLocalTime":"09:00-18:00","timeZoneName":"Asia/Shanghai","tuesdayConfirmLocalTime":"09:00-18:00","wednesdayConfirmLocalTime":"09:00-18:00","fridayConfirmLocalTime":"09:00-18:00"}] + _param string +} + +// 初始化TaobaoXhotelServicetimeUpdateAPIRequest对象 +func NewTaobaoXhotelServicetimeUpdateRequest() *TaobaoXhotelServicetimeUpdateAPIRequest{ + return &TaobaoXhotelServicetimeUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelServicetimeUpdateAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.servicetime.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelServicetimeUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 请按照示例值的格式来填写,涉及到是否当日订单,是否展示,周一到周日的服务时间,业务id,业务类型1为卖家,2为supplier ,3为酒店。[{"businessId":11925099374,"businessType":3,"displayItemInNonWorkingTime":1,"mondayConfirmLocalTime":"09:00-18:00","operator":"操作人","orderConfirmType":1,"saturdayConfirmLocalTime":"09:00-18:00","sellerId":2054718374,"sellerNick":"sandbox_b_27","sundayConfirmLocalTime":"09:00-18:00","supplier":"","thursdayConfirmLocalTime":"09:00-18:00","timeZoneName":"Asia/Shanghai","tuesdayConfirmLocalTime":"09:00-18:00","wednesdayConfirmLocalTime":"09:00-18:00","fridayConfirmLocalTime":"09:00-18:00"},{"businessId":11925099374,"businessType":3,"displayItemInNonWorkingTime":1,"mondayConfirmLocalTime":"09:00-18:00","operator":"操作人","orderConfirmType":2,"saturdayConfirmLocalTime":"09:00-18:00","sellerId":2054718374,"sellerNick":"sandbox_b_27","sundayConfirmLocalTime":"09:00-18:00","supplier":"","thursdayConfirmLocalTime":"09:00-18:00","timeZoneName":"Asia/Shanghai","tuesdayConfirmLocalTime":"09:00-18:00","wednesdayConfirmLocalTime":"09:00-18:00","fridayConfirmLocalTime":"09:00-18:00"}] +func (r *TaobaoXhotelServicetimeUpdateAPIRequest) SetParam(_param string) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r TaobaoXhotelServicetimeUpdateAPIRequest) GetParam() string { + return r._param +} diff --git a/model/xhotelitem/TaobaoXhotelServicetimeUpdateAPIResponse.go b/model/xhotelitem/TaobaoXhotelServicetimeUpdateAPIResponse.go new file mode 100644 index 0000000000..d31f331c67 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelServicetimeUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +飞猪酒店多维度服务时间维护接口 API返回值 +taobao.xhotel.servicetime.update + +飞猪酒店多维度服务时间维护,支持卖家维度,supplier维度,酒店维度 +*/ +type TaobaoXhotelServicetimeUpdateAPIResponse struct { + model.CommonResponse + TaobaoXhotelServicetimeUpdateAPIResponseModel +} + +// 飞猪酒店多维度服务时间维护接口 成功返回结果 +type TaobaoXhotelServicetimeUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_servicetime_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoXhotelServicetimeUpdateResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelServicetimeUpdateResponse.go b/model/xhotelitem/TaobaoXhotelServicetimeUpdateResponse.go deleted file mode 100644 index d29e0fef48..0000000000 --- a/model/xhotelitem/TaobaoXhotelServicetimeUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -飞猪酒店多维度服务时间维护接口 API返回值 -taobao.xhotel.servicetime.update - -飞猪酒店多维度服务时间维护,支持卖家维度,supplier维度,酒店维度 -*/ -type TaobaoXhotelServicetimeUpdateAPIResponse struct { - model.CommonResponse - TaobaoXhotelServicetimeUpdateResponse -} - -// 飞猪酒店多维度服务时间维护接口 成功返回结果 -type TaobaoXhotelServicetimeUpdateResponse struct { - XMLName xml.Name `xml:"xhotel_servicetime_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoXhotelServicetimeUpdateResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelitem/TaobaoXhotelUpdateAPIRequest.go b/model/xhotelitem/TaobaoXhotelUpdateAPIRequest.go new file mode 100644 index 0000000000..5684987ed2 --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelUpdateAPIRequest.go @@ -0,0 +1,710 @@ +package xhotelitem + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店更新接口(ID不存在自动新增) API请求 +taobao.xhotel.update + +酒店更新接口 +*/ +type TaobaoXhotelUpdateAPIRequest struct { + model.Params + // (已废弃)请使用outer_id来标识要修改的酒店 + _hid int64 + // 酒店名称;(新增酒店时为必须),国内酒店请传中文名称 + _name string + // 酒店曾用名 + _usedName string + // 是否国内酒店。0:国内;1:国外 + _domestic int64 + // domestic为true时,固定China; domestic为false时,必须传定义的海外国家编码值。参见:http://kezhan.trip.taobao.com/countrys.html + _country string + // 省份编码。参见:http://hotel.alitrip.com/area.htm?tbpm=3,domestic为false时默认为0 + _province int64 + // 城市编码。参见:http://hotel.alitrip.com/area.htm?tbpm=3,domestic为false时,输入对应国家的海外城市编码,可调用海外城市查询接口获取;(新增酒店时为必须) + _city int64 + // 区域(县级市)编码。参见:http://hotel.alitrip.com/area.htm?tbpm=3 + _district int64 + // 商业区(圈)长度不超过20字 + _business string + // 酒店地址。长度不能超过255 + _address string + // 经度 + _longitude string + // 纬度 + _latitude string + // 坐标类型,现在支持:G – GoogleB – 百度A – 高德M – MapbarL – 灵图 + _positionType string + // 酒店电话。格式:国家代码(最长6位)#区号(最长4位)#电话(最长20位)。国家代码提示:中国大陆0086、香港00852、澳门00853、台湾00886 + _tel string + // 不要使用 + _extend string + // 该字段只有确定的时候,才允许填入。用于标示和淘宝酒店的匹配关系。目前尚未启动该字段。 + _shid int64 + // 必传,酒店标识,商家酒店ID + _outerId string + // 系统商,一般情况不用,需申请使用 + _vendor string + // 酒店档次,星级。取值范围为1,1.5,2,2.5,3,3.5,4,4.5,5 + _star string + // 开业时间,格式为2015-01-01 + _openingTime string + // 装修时间,格式为2015-10-01 + _decorateTime string + // 楼层信息 + _floors string + // 房间数 0~9999之内的数字 + _rooms int64 + // 酒店描述 + _description string + // 酒店设施。json格式示例值:{"free Wi-Fi in all rooms":"true","massage":"true","meetingRoom":"true"}目前支持维护的设施枚举有:free Wi-Fi in all rooms 所有房间设有免费无线网络;meetingRoom 会议室;massage 按摩室;fitnessClub 健身房;bar 酒吧;cafe 咖啡厅;frontDeskSafe 前台贵重物品保险柜wifi 无线上网公共区域;casino 娱乐场/棋牌室;restaurant 餐厅;smoking area 吸烟区;Business Facilities 商务设施 + _hotelFacilities string + // 酒店基础服务。json格式示例值:{"receiveForeignGuests":"true","morningCall":"true","breakfast":"true"}目前支持维护的设施枚举有:receiveForeignGuests 接待外宾;morningCall 叫醒服务; breakfast 早餐服务; airportShuttle 接机服务; luggageClaim 行李寄存; rentCar 租车; HourRoomService24 24小时客房服务; airportTransfer 酒店/机场接送; dryCleaning 干洗; expressCheckInCheckOut 快速入住/退房登记; custodyServices 保管服务 + _service string + // 房间的基础设施。json格式示例值:{"bathtub":"true","bathPub":"true"}目前支持维护的设施枚举有:bathtub 独立卫浴;bathPub 公共卫浴 + _roomFacilities string + // 酒店图片只支持远程图片,格式如下:[{"url":"http://123.jpg","ismain":"false","type":"大堂","attribute":"普通图"},{"url":"http://456.jpg","ismain":"true","type":"公共区域","attribute":"全景图"},{"url":"http://789.jpg","ismain":"false","type":"大堂","attribute":"普通图"}] 其中url是远程图片的访问地址,main是否为主图(主图只能有一个),attribute表示图片属性,取值范围只能是:[普通图, 平面图, 全景图] ,type表示图片类型,取值范围只能是:[周边, 外观, 商务中心, 健身房, 其他, 会议室, 餐厅, 浴室, 客房, 公共区域, 娱乐设施, 大堂, 泳池],图片数量最多10张。要求:无logo、水印、边框、人物,不模糊、重复、歪斜,房间图清晰,图片尺寸不小于300*225,不小于5M + _pics string + // 酒店品牌。取值为数字。枚举如下(只给出top30,如果不满足,请联系去啊接口人): ruJia("1", "rujiakuaijie", "如家快捷", 1), qiTian("2", "7 days", "7天连锁", 1), hanTing("3", "Hanting Inns & Hotels", "汉庭酒店", 1), geLinHaoTai("4", "Green Tree Inn", "格林豪泰", 1), jinJiang("5", "Jinjiang Inn", "锦江之星", 1), su8("6", "Super 8", "速8", 1), moTai("7", "Motel", "莫泰", 1), zhouji("8", "InterContinental", "洲际", 4), budint("9", "Pod Inn", "布丁", 1), jiuJiu("10", "jiujiuliansuo", "99连锁", 1), piaoHome("11", "Piao Home Inn", "飘HOME", 1), juzi("12", "Orange Hotels", "桔子酒店", 1), yibai("13", "yibai", "易佰", 1), weiyena("14","weiyena","维也纳",2), huangguanjiari("15", "huangguanjiari", "皇冠假日", 4), xidawu("16", "xidawu", "喜达屋", 3), chengshiBJ("17", "chengshibianjie", "城市便捷", 1), shagnKeYou("18", "shagnkeyou", "尚客优", 1), jinjiang("19", "jinjiang", "锦江酒店", 3), wendemu("20", "Hawthorn Suites", "温德姆", 4), yibisi("21", "Ibis Hotels", "宜必思", 1), wanhao("22", "JM Hoteles", "万豪", 4), yijia365("23", "yijia365", "驿家365", 1), shoulv("24", "shoulvjituan", "首旅建国", 3), kaiyuan("25", "New Century Hotel", "开元大酒店", 4), yagao("26", "yagao", "雅高", 3), daisi("27", "daisi", "戴斯", 3), jinling("28", "jinlingliansuo", "金陵", 4), xianggelila("29", "Shangri-La City Hotels", "香格里拉", 4), xierdun("30", "Hilton", "希尔顿", 4) + _brand string + // 邮编 + _postalCode string + // 酒店入住政策(针对国际酒店,儿童及加床信息)格式:{"children_age_from":"2","children_age_to":"3","children_stay_free":"True","infant_age":"1","min_guest_age":"4"} + _hotelPolicies string + // 预订须知。json字段描述:hotelInMountaintop 酒店位于山顶 1在山顶、0不在;needBoat 酒店需要坐船前往 1需要、0不需要;酒店位于景区内 1在景区、0不在;extraBed 加床收费;extraCharge 额外收费;arrivalTime 到店时间;extend 其他补充项 + _bookingNotice string + // 酒店状态 0:正常,-1:删除,-2:停售 + _status *model.File + // 逗号分隔的字符串 1visa;2万事达卡;3美国运通卡;4发现卡;5大来卡;6JCB卡;7银联卡 + _creditCardTypes string + // 扩展信息的JSON。 orbitTrack 业务字段是指从飞猪到酒店说经过平台名以及方式的一个数组,按顺序,从飞猪,再经过若干平台,最后到酒店, platform是指定当前平台名,ways 是指通过哪种方式到该平台 其中,飞猪到下一个平台里, ways 字段只能是【直连】、【人工】两个方式之一; 从最后一个平台到酒店的ways字段只能是【电话】、【传真】、【人工】、【系统】之一; 第一个 飞猪平台 和 最后具体酒店是至少得填的 + _orbitTrack string + // 卖家酒店英文名称 + _nameE string + // 打标去标使用的 tagJson 字段 + _tagJson string + // 旺旺昵称 + _aliNick string + // 供应商标识,如果确实需要修改原来的供应商标识才需要填写,否则不需要填写,请谨慎使用。 + _supplier string + // 结算流程中的结算币种,如需对接请联系飞猪技术支持,请谨慎使用 + _settlementCurrency string + // 资源方酒店预订须知,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 + _standardBookingNotice string + // 资源方酒店设施,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 + _standardHotelFacilities string + // 资源方酒店服务,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 + _standardHotelService string + // 资源方房型设施,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 + _standardRoomFacilities string + // 资源方娱乐设施,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 + _standardAmuseFacilities string + // 0:酒店;1:客栈 + _hotelType int64 + // 0:可以接待外宾;1:仅内宾 + _serviceType int64 + // 标识坐标系类型。WGS84,表示地球坐标系 ;GCJ02,表示火星坐标系 + _coordinateSystem string +} + +// 初始化TaobaoXhotelUpdateAPIRequest对象 +func NewTaobaoXhotelUpdateRequest() *TaobaoXhotelUpdateAPIRequest{ + return &TaobaoXhotelUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelUpdateAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Hid Setter +// (已废弃)请使用outer_id来标识要修改的酒店 +func (r *TaobaoXhotelUpdateAPIRequest) SetHid(_hid int64) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r TaobaoXhotelUpdateAPIRequest) GetHid() int64 { + return r._hid +} +// Name Setter +// 酒店名称;(新增酒店时为必须),国内酒店请传中文名称 +func (r *TaobaoXhotelUpdateAPIRequest) SetName(_name string) error { + r._name = _name + r.Set("name", _name) + return nil +} + +// Name Getter +func (r TaobaoXhotelUpdateAPIRequest) GetName() string { + return r._name +} +// UsedName Setter +// 酒店曾用名 +func (r *TaobaoXhotelUpdateAPIRequest) SetUsedName(_usedName string) error { + r._usedName = _usedName + r.Set("used_name", _usedName) + return nil +} + +// UsedName Getter +func (r TaobaoXhotelUpdateAPIRequest) GetUsedName() string { + return r._usedName +} +// Domestic Setter +// 是否国内酒店。0:国内;1:国外 +func (r *TaobaoXhotelUpdateAPIRequest) SetDomestic(_domestic int64) error { + r._domestic = _domestic + r.Set("domestic", _domestic) + return nil +} + +// Domestic Getter +func (r TaobaoXhotelUpdateAPIRequest) GetDomestic() int64 { + return r._domestic +} +// Country Setter +// domestic为true时,固定China; domestic为false时,必须传定义的海外国家编码值。参见:http://kezhan.trip.taobao.com/countrys.html +func (r *TaobaoXhotelUpdateAPIRequest) SetCountry(_country string) error { + r._country = _country + r.Set("country", _country) + return nil +} + +// Country Getter +func (r TaobaoXhotelUpdateAPIRequest) GetCountry() string { + return r._country +} +// Province Setter +// 省份编码。参见:http://hotel.alitrip.com/area.htm?tbpm=3,domestic为false时默认为0 +func (r *TaobaoXhotelUpdateAPIRequest) SetProvince(_province int64) error { + r._province = _province + r.Set("province", _province) + return nil +} + +// Province Getter +func (r TaobaoXhotelUpdateAPIRequest) GetProvince() int64 { + return r._province +} +// City Setter +// 城市编码。参见:http://hotel.alitrip.com/area.htm?tbpm=3,domestic为false时,输入对应国家的海外城市编码,可调用海外城市查询接口获取;(新增酒店时为必须) +func (r *TaobaoXhotelUpdateAPIRequest) SetCity(_city int64) error { + r._city = _city + r.Set("city", _city) + return nil +} + +// City Getter +func (r TaobaoXhotelUpdateAPIRequest) GetCity() int64 { + return r._city +} +// District Setter +// 区域(县级市)编码。参见:http://hotel.alitrip.com/area.htm?tbpm=3 +func (r *TaobaoXhotelUpdateAPIRequest) SetDistrict(_district int64) error { + r._district = _district + r.Set("district", _district) + return nil +} + +// District Getter +func (r TaobaoXhotelUpdateAPIRequest) GetDistrict() int64 { + return r._district +} +// Business Setter +// 商业区(圈)长度不超过20字 +func (r *TaobaoXhotelUpdateAPIRequest) SetBusiness(_business string) error { + r._business = _business + r.Set("business", _business) + return nil +} + +// Business Getter +func (r TaobaoXhotelUpdateAPIRequest) GetBusiness() string { + return r._business +} +// Address Setter +// 酒店地址。长度不能超过255 +func (r *TaobaoXhotelUpdateAPIRequest) SetAddress(_address string) error { + r._address = _address + r.Set("address", _address) + return nil +} + +// Address Getter +func (r TaobaoXhotelUpdateAPIRequest) GetAddress() string { + return r._address +} +// Longitude Setter +// 经度 +func (r *TaobaoXhotelUpdateAPIRequest) SetLongitude(_longitude string) error { + r._longitude = _longitude + r.Set("longitude", _longitude) + return nil +} + +// Longitude Getter +func (r TaobaoXhotelUpdateAPIRequest) GetLongitude() string { + return r._longitude +} +// Latitude Setter +// 纬度 +func (r *TaobaoXhotelUpdateAPIRequest) SetLatitude(_latitude string) error { + r._latitude = _latitude + r.Set("latitude", _latitude) + return nil +} + +// Latitude Getter +func (r TaobaoXhotelUpdateAPIRequest) GetLatitude() string { + return r._latitude +} +// PositionType Setter +// 坐标类型,现在支持:G – GoogleB – 百度A – 高德M – MapbarL – 灵图 +func (r *TaobaoXhotelUpdateAPIRequest) SetPositionType(_positionType string) error { + r._positionType = _positionType + r.Set("position_type", _positionType) + return nil +} + +// PositionType Getter +func (r TaobaoXhotelUpdateAPIRequest) GetPositionType() string { + return r._positionType +} +// Tel Setter +// 酒店电话。格式:国家代码(最长6位)#区号(最长4位)#电话(最长20位)。国家代码提示:中国大陆0086、香港00852、澳门00853、台湾00886 +func (r *TaobaoXhotelUpdateAPIRequest) SetTel(_tel string) error { + r._tel = _tel + r.Set("tel", _tel) + return nil +} + +// Tel Getter +func (r TaobaoXhotelUpdateAPIRequest) GetTel() string { + return r._tel +} +// Extend Setter +// 不要使用 +func (r *TaobaoXhotelUpdateAPIRequest) SetExtend(_extend string) error { + r._extend = _extend + r.Set("extend", _extend) + return nil +} + +// Extend Getter +func (r TaobaoXhotelUpdateAPIRequest) GetExtend() string { + return r._extend +} +// Shid Setter +// 该字段只有确定的时候,才允许填入。用于标示和淘宝酒店的匹配关系。目前尚未启动该字段。 +func (r *TaobaoXhotelUpdateAPIRequest) SetShid(_shid int64) error { + r._shid = _shid + r.Set("shid", _shid) + return nil +} + +// Shid Getter +func (r TaobaoXhotelUpdateAPIRequest) GetShid() int64 { + return r._shid +} +// OuterId Setter +// 必传,酒店标识,商家酒店ID +func (r *TaobaoXhotelUpdateAPIRequest) SetOuterId(_outerId string) error { + r._outerId = _outerId + r.Set("outer_id", _outerId) + return nil +} + +// OuterId Getter +func (r TaobaoXhotelUpdateAPIRequest) GetOuterId() string { + return r._outerId +} +// Vendor Setter +// 系统商,一般情况不用,需申请使用 +func (r *TaobaoXhotelUpdateAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelUpdateAPIRequest) GetVendor() string { + return r._vendor +} +// Star Setter +// 酒店档次,星级。取值范围为1,1.5,2,2.5,3,3.5,4,4.5,5 +func (r *TaobaoXhotelUpdateAPIRequest) SetStar(_star string) error { + r._star = _star + r.Set("star", _star) + return nil +} + +// Star Getter +func (r TaobaoXhotelUpdateAPIRequest) GetStar() string { + return r._star +} +// OpeningTime Setter +// 开业时间,格式为2015-01-01 +func (r *TaobaoXhotelUpdateAPIRequest) SetOpeningTime(_openingTime string) error { + r._openingTime = _openingTime + r.Set("opening_time", _openingTime) + return nil +} + +// OpeningTime Getter +func (r TaobaoXhotelUpdateAPIRequest) GetOpeningTime() string { + return r._openingTime +} +// DecorateTime Setter +// 装修时间,格式为2015-10-01 +func (r *TaobaoXhotelUpdateAPIRequest) SetDecorateTime(_decorateTime string) error { + r._decorateTime = _decorateTime + r.Set("decorate_time", _decorateTime) + return nil +} + +// DecorateTime Getter +func (r TaobaoXhotelUpdateAPIRequest) GetDecorateTime() string { + return r._decorateTime +} +// Floors Setter +// 楼层信息 +func (r *TaobaoXhotelUpdateAPIRequest) SetFloors(_floors string) error { + r._floors = _floors + r.Set("floors", _floors) + return nil +} + +// Floors Getter +func (r TaobaoXhotelUpdateAPIRequest) GetFloors() string { + return r._floors +} +// Rooms Setter +// 房间数 0~9999之内的数字 +func (r *TaobaoXhotelUpdateAPIRequest) SetRooms(_rooms int64) error { + r._rooms = _rooms + r.Set("rooms", _rooms) + return nil +} + +// Rooms Getter +func (r TaobaoXhotelUpdateAPIRequest) GetRooms() int64 { + return r._rooms +} +// Description Setter +// 酒店描述 +func (r *TaobaoXhotelUpdateAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r TaobaoXhotelUpdateAPIRequest) GetDescription() string { + return r._description +} +// HotelFacilities Setter +// 酒店设施。json格式示例值:{"free Wi-Fi in all rooms":"true","massage":"true","meetingRoom":"true"}目前支持维护的设施枚举有:free Wi-Fi in all rooms 所有房间设有免费无线网络;meetingRoom 会议室;massage 按摩室;fitnessClub 健身房;bar 酒吧;cafe 咖啡厅;frontDeskSafe 前台贵重物品保险柜wifi 无线上网公共区域;casino 娱乐场/棋牌室;restaurant 餐厅;smoking area 吸烟区;Business Facilities 商务设施 +func (r *TaobaoXhotelUpdateAPIRequest) SetHotelFacilities(_hotelFacilities string) error { + r._hotelFacilities = _hotelFacilities + r.Set("hotel_facilities", _hotelFacilities) + return nil +} + +// HotelFacilities Getter +func (r TaobaoXhotelUpdateAPIRequest) GetHotelFacilities() string { + return r._hotelFacilities +} +// Service Setter +// 酒店基础服务。json格式示例值:{"receiveForeignGuests":"true","morningCall":"true","breakfast":"true"}目前支持维护的设施枚举有:receiveForeignGuests 接待外宾;morningCall 叫醒服务; breakfast 早餐服务; airportShuttle 接机服务; luggageClaim 行李寄存; rentCar 租车; HourRoomService24 24小时客房服务; airportTransfer 酒店/机场接送; dryCleaning 干洗; expressCheckInCheckOut 快速入住/退房登记; custodyServices 保管服务 +func (r *TaobaoXhotelUpdateAPIRequest) SetService(_service string) error { + r._service = _service + r.Set("service", _service) + return nil +} + +// Service Getter +func (r TaobaoXhotelUpdateAPIRequest) GetService() string { + return r._service +} +// RoomFacilities Setter +// 房间的基础设施。json格式示例值:{"bathtub":"true","bathPub":"true"}目前支持维护的设施枚举有:bathtub 独立卫浴;bathPub 公共卫浴 +func (r *TaobaoXhotelUpdateAPIRequest) SetRoomFacilities(_roomFacilities string) error { + r._roomFacilities = _roomFacilities + r.Set("room_facilities", _roomFacilities) + return nil +} + +// RoomFacilities Getter +func (r TaobaoXhotelUpdateAPIRequest) GetRoomFacilities() string { + return r._roomFacilities +} +// Pics Setter +// 酒店图片只支持远程图片,格式如下:[{"url":"http://123.jpg","ismain":"false","type":"大堂","attribute":"普通图"},{"url":"http://456.jpg","ismain":"true","type":"公共区域","attribute":"全景图"},{"url":"http://789.jpg","ismain":"false","type":"大堂","attribute":"普通图"}] 其中url是远程图片的访问地址,main是否为主图(主图只能有一个),attribute表示图片属性,取值范围只能是:[普通图, 平面图, 全景图] ,type表示图片类型,取值范围只能是:[周边, 外观, 商务中心, 健身房, 其他, 会议室, 餐厅, 浴室, 客房, 公共区域, 娱乐设施, 大堂, 泳池],图片数量最多10张。要求:无logo、水印、边框、人物,不模糊、重复、歪斜,房间图清晰,图片尺寸不小于300*225,不小于5M +func (r *TaobaoXhotelUpdateAPIRequest) SetPics(_pics string) error { + r._pics = _pics + r.Set("pics", _pics) + return nil +} + +// Pics Getter +func (r TaobaoXhotelUpdateAPIRequest) GetPics() string { + return r._pics +} +// Brand Setter +// 酒店品牌。取值为数字。枚举如下(只给出top30,如果不满足,请联系去啊接口人): ruJia("1", "rujiakuaijie", "如家快捷", 1), qiTian("2", "7 days", "7天连锁", 1), hanTing("3", "Hanting Inns & Hotels", "汉庭酒店", 1), geLinHaoTai("4", "Green Tree Inn", "格林豪泰", 1), jinJiang("5", "Jinjiang Inn", "锦江之星", 1), su8("6", "Super 8", "速8", 1), moTai("7", "Motel", "莫泰", 1), zhouji("8", "InterContinental", "洲际", 4), budint("9", "Pod Inn", "布丁", 1), jiuJiu("10", "jiujiuliansuo", "99连锁", 1), piaoHome("11", "Piao Home Inn", "飘HOME", 1), juzi("12", "Orange Hotels", "桔子酒店", 1), yibai("13", "yibai", "易佰", 1), weiyena("14","weiyena","维也纳",2), huangguanjiari("15", "huangguanjiari", "皇冠假日", 4), xidawu("16", "xidawu", "喜达屋", 3), chengshiBJ("17", "chengshibianjie", "城市便捷", 1), shagnKeYou("18", "shagnkeyou", "尚客优", 1), jinjiang("19", "jinjiang", "锦江酒店", 3), wendemu("20", "Hawthorn Suites", "温德姆", 4), yibisi("21", "Ibis Hotels", "宜必思", 1), wanhao("22", "JM Hoteles", "万豪", 4), yijia365("23", "yijia365", "驿家365", 1), shoulv("24", "shoulvjituan", "首旅建国", 3), kaiyuan("25", "New Century Hotel", "开元大酒店", 4), yagao("26", "yagao", "雅高", 3), daisi("27", "daisi", "戴斯", 3), jinling("28", "jinlingliansuo", "金陵", 4), xianggelila("29", "Shangri-La City Hotels", "香格里拉", 4), xierdun("30", "Hilton", "希尔顿", 4) +func (r *TaobaoXhotelUpdateAPIRequest) SetBrand(_brand string) error { + r._brand = _brand + r.Set("brand", _brand) + return nil +} + +// Brand Getter +func (r TaobaoXhotelUpdateAPIRequest) GetBrand() string { + return r._brand +} +// PostalCode Setter +// 邮编 +func (r *TaobaoXhotelUpdateAPIRequest) SetPostalCode(_postalCode string) error { + r._postalCode = _postalCode + r.Set("postal_code", _postalCode) + return nil +} + +// PostalCode Getter +func (r TaobaoXhotelUpdateAPIRequest) GetPostalCode() string { + return r._postalCode +} +// HotelPolicies Setter +// 酒店入住政策(针对国际酒店,儿童及加床信息)格式:{"children_age_from":"2","children_age_to":"3","children_stay_free":"True","infant_age":"1","min_guest_age":"4"} +func (r *TaobaoXhotelUpdateAPIRequest) SetHotelPolicies(_hotelPolicies string) error { + r._hotelPolicies = _hotelPolicies + r.Set("hotel_policies", _hotelPolicies) + return nil +} + +// HotelPolicies Getter +func (r TaobaoXhotelUpdateAPIRequest) GetHotelPolicies() string { + return r._hotelPolicies +} +// BookingNotice Setter +// 预订须知。json字段描述:hotelInMountaintop 酒店位于山顶 1在山顶、0不在;needBoat 酒店需要坐船前往 1需要、0不需要;酒店位于景区内 1在景区、0不在;extraBed 加床收费;extraCharge 额外收费;arrivalTime 到店时间;extend 其他补充项 +func (r *TaobaoXhotelUpdateAPIRequest) SetBookingNotice(_bookingNotice string) error { + r._bookingNotice = _bookingNotice + r.Set("booking_notice", _bookingNotice) + return nil +} + +// BookingNotice Getter +func (r TaobaoXhotelUpdateAPIRequest) GetBookingNotice() string { + return r._bookingNotice +} +// Status Setter +// 酒店状态 0:正常,-1:删除,-2:停售 +func (r *TaobaoXhotelUpdateAPIRequest) SetStatus(_status *model.File) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r TaobaoXhotelUpdateAPIRequest) GetStatus() *model.File { + return r._status +} +// CreditCardTypes Setter +// 逗号分隔的字符串 1visa;2万事达卡;3美国运通卡;4发现卡;5大来卡;6JCB卡;7银联卡 +func (r *TaobaoXhotelUpdateAPIRequest) SetCreditCardTypes(_creditCardTypes string) error { + r._creditCardTypes = _creditCardTypes + r.Set("credit_card_types", _creditCardTypes) + return nil +} + +// CreditCardTypes Getter +func (r TaobaoXhotelUpdateAPIRequest) GetCreditCardTypes() string { + return r._creditCardTypes +} +// OrbitTrack Setter +// 扩展信息的JSON。 orbitTrack 业务字段是指从飞猪到酒店说经过平台名以及方式的一个数组,按顺序,从飞猪,再经过若干平台,最后到酒店, platform是指定当前平台名,ways 是指通过哪种方式到该平台 其中,飞猪到下一个平台里, ways 字段只能是【直连】、【人工】两个方式之一; 从最后一个平台到酒店的ways字段只能是【电话】、【传真】、【人工】、【系统】之一; 第一个 飞猪平台 和 最后具体酒店是至少得填的 +func (r *TaobaoXhotelUpdateAPIRequest) SetOrbitTrack(_orbitTrack string) error { + r._orbitTrack = _orbitTrack + r.Set("orbit_track", _orbitTrack) + return nil +} + +// OrbitTrack Getter +func (r TaobaoXhotelUpdateAPIRequest) GetOrbitTrack() string { + return r._orbitTrack +} +// NameE Setter +// 卖家酒店英文名称 +func (r *TaobaoXhotelUpdateAPIRequest) SetNameE(_nameE string) error { + r._nameE = _nameE + r.Set("name_e", _nameE) + return nil +} + +// NameE Getter +func (r TaobaoXhotelUpdateAPIRequest) GetNameE() string { + return r._nameE +} +// TagJson Setter +// 打标去标使用的 tagJson 字段 +func (r *TaobaoXhotelUpdateAPIRequest) SetTagJson(_tagJson string) error { + r._tagJson = _tagJson + r.Set("tag_json", _tagJson) + return nil +} + +// TagJson Getter +func (r TaobaoXhotelUpdateAPIRequest) GetTagJson() string { + return r._tagJson +} +// AliNick Setter +// 旺旺昵称 +func (r *TaobaoXhotelUpdateAPIRequest) SetAliNick(_aliNick string) error { + r._aliNick = _aliNick + r.Set("ali_nick", _aliNick) + return nil +} + +// AliNick Getter +func (r TaobaoXhotelUpdateAPIRequest) GetAliNick() string { + return r._aliNick +} +// Supplier Setter +// 供应商标识,如果确实需要修改原来的供应商标识才需要填写,否则不需要填写,请谨慎使用。 +func (r *TaobaoXhotelUpdateAPIRequest) SetSupplier(_supplier string) error { + r._supplier = _supplier + r.Set("supplier", _supplier) + return nil +} + +// Supplier Getter +func (r TaobaoXhotelUpdateAPIRequest) GetSupplier() string { + return r._supplier +} +// SettlementCurrency Setter +// 结算流程中的结算币种,如需对接请联系飞猪技术支持,请谨慎使用 +func (r *TaobaoXhotelUpdateAPIRequest) SetSettlementCurrency(_settlementCurrency string) error { + r._settlementCurrency = _settlementCurrency + r.Set("settlement_currency", _settlementCurrency) + return nil +} + +// SettlementCurrency Getter +func (r TaobaoXhotelUpdateAPIRequest) GetSettlementCurrency() string { + return r._settlementCurrency +} +// StandardBookingNotice Setter +// 资源方酒店预订须知,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 +func (r *TaobaoXhotelUpdateAPIRequest) SetStandardBookingNotice(_standardBookingNotice string) error { + r._standardBookingNotice = _standardBookingNotice + r.Set("standard_booking_notice", _standardBookingNotice) + return nil +} + +// StandardBookingNotice Getter +func (r TaobaoXhotelUpdateAPIRequest) GetStandardBookingNotice() string { + return r._standardBookingNotice +} +// StandardHotelFacilities Setter +// 资源方酒店设施,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 +func (r *TaobaoXhotelUpdateAPIRequest) SetStandardHotelFacilities(_standardHotelFacilities string) error { + r._standardHotelFacilities = _standardHotelFacilities + r.Set("standard_hotel_facilities", _standardHotelFacilities) + return nil +} + +// StandardHotelFacilities Getter +func (r TaobaoXhotelUpdateAPIRequest) GetStandardHotelFacilities() string { + return r._standardHotelFacilities +} +// StandardHotelService Setter +// 资源方酒店服务,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 +func (r *TaobaoXhotelUpdateAPIRequest) SetStandardHotelService(_standardHotelService string) error { + r._standardHotelService = _standardHotelService + r.Set("standard_hotel_service", _standardHotelService) + return nil +} + +// StandardHotelService Getter +func (r TaobaoXhotelUpdateAPIRequest) GetStandardHotelService() string { + return r._standardHotelService +} +// StandardRoomFacilities Setter +// 资源方房型设施,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 +func (r *TaobaoXhotelUpdateAPIRequest) SetStandardRoomFacilities(_standardRoomFacilities string) error { + r._standardRoomFacilities = _standardRoomFacilities + r.Set("standard_room_facilities", _standardRoomFacilities) + return nil +} + +// StandardRoomFacilities Getter +func (r TaobaoXhotelUpdateAPIRequest) GetStandardRoomFacilities() string { + return r._standardRoomFacilities +} +// StandardAmuseFacilities Setter +// 资源方娱乐设施,参考文档https://open.alitrip.com/docs/doc.htm?docType=1&articleId=108891 +func (r *TaobaoXhotelUpdateAPIRequest) SetStandardAmuseFacilities(_standardAmuseFacilities string) error { + r._standardAmuseFacilities = _standardAmuseFacilities + r.Set("standard_amuse_facilities", _standardAmuseFacilities) + return nil +} + +// StandardAmuseFacilities Getter +func (r TaobaoXhotelUpdateAPIRequest) GetStandardAmuseFacilities() string { + return r._standardAmuseFacilities +} +// HotelType Setter +// 0:酒店;1:客栈 +func (r *TaobaoXhotelUpdateAPIRequest) SetHotelType(_hotelType int64) error { + r._hotelType = _hotelType + r.Set("hotel_type", _hotelType) + return nil +} + +// HotelType Getter +func (r TaobaoXhotelUpdateAPIRequest) GetHotelType() int64 { + return r._hotelType +} +// ServiceType Setter +// 0:可以接待外宾;1:仅内宾 +func (r *TaobaoXhotelUpdateAPIRequest) SetServiceType(_serviceType int64) error { + r._serviceType = _serviceType + r.Set("service_type", _serviceType) + return nil +} + +// ServiceType Getter +func (r TaobaoXhotelUpdateAPIRequest) GetServiceType() int64 { + return r._serviceType +} +// CoordinateSystem Setter +// 标识坐标系类型。WGS84,表示地球坐标系 ;GCJ02,表示火星坐标系 +func (r *TaobaoXhotelUpdateAPIRequest) SetCoordinateSystem(_coordinateSystem string) error { + r._coordinateSystem = _coordinateSystem + r.Set("coordinate_system", _coordinateSystem) + return nil +} + +// CoordinateSystem Getter +func (r TaobaoXhotelUpdateAPIRequest) GetCoordinateSystem() string { + return r._coordinateSystem +} diff --git a/model/xhotelitem/TaobaoXhotelUpdateAPIResponse.go b/model/xhotelitem/TaobaoXhotelUpdateAPIResponse.go new file mode 100644 index 0000000000..6aaef501dc --- /dev/null +++ b/model/xhotelitem/TaobaoXhotelUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelitem + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店更新接口(ID不存在自动新增) API返回值 +taobao.xhotel.update + +酒店更新接口 +*/ +type TaobaoXhotelUpdateAPIResponse struct { + model.CommonResponse + TaobaoXhotelUpdateAPIResponseModel +} + +// 酒店更新接口(ID不存在自动新增) 成功返回结果 +type TaobaoXhotelUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 酒店信息 + Xhotel *XHotel `json:"xhotel,omitempty" xml:"xhotel,omitempty"` +} diff --git a/model/xhotelitem/TaobaoXhotelUpdateResponse.go b/model/xhotelitem/TaobaoXhotelUpdateResponse.go deleted file mode 100644 index 9b062d1175..0000000000 --- a/model/xhotelitem/TaobaoXhotelUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelitem - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店更新接口(ID不存在自动新增) API返回值 -taobao.xhotel.update - -酒店更新接口 -*/ -type TaobaoXhotelUpdateAPIResponse struct { - model.CommonResponse - TaobaoXhotelUpdateResponse -} - -// 酒店更新接口(ID不存在自动新增) 成功返回结果 -type TaobaoXhotelUpdateResponse struct { - XMLName xml.Name `xml:"xhotel_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 酒店信息 - Xhotel *XHotel `json:"xhotel,omitempty" xml:"xhotel,omitempty"` -} diff --git a/model/xhotelofficial/TaobaoXhotelOrderOfficialCancelAPIRequest.go b/model/xhotelofficial/TaobaoXhotelOrderOfficialCancelAPIRequest.go new file mode 100644 index 0000000000..72c7c8b2b6 --- /dev/null +++ b/model/xhotelofficial/TaobaoXhotelOrderOfficialCancelAPIRequest.go @@ -0,0 +1,108 @@ +package xhotelofficial + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +官网信用住订单取消 API请求 +taobao.xhotel.order.official.cancel + +官网信用住订单取消 +*/ +type TaobaoXhotelOrderOfficialCancelAPIRequest struct { + model.Params + // 淘宝订单号,必选 + _tid int64 + // 原因描述 + _reasonText string + // 外部订单号 + _outId string + // 请求流水号(必须传入) + _outUuid string + // 暂无意义,无需传入 + _notifyUrl string +} + +// 初始化TaobaoXhotelOrderOfficialCancelAPIRequest对象 +func NewTaobaoXhotelOrderOfficialCancelRequest() *TaobaoXhotelOrderOfficialCancelAPIRequest{ + return &TaobaoXhotelOrderOfficialCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderOfficialCancelAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.official.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderOfficialCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 淘宝订单号,必选 +func (r *TaobaoXhotelOrderOfficialCancelAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoXhotelOrderOfficialCancelAPIRequest) GetTid() int64 { + return r._tid +} +// ReasonText Setter +// 原因描述 +func (r *TaobaoXhotelOrderOfficialCancelAPIRequest) SetReasonText(_reasonText string) error { + r._reasonText = _reasonText + r.Set("reason_text", _reasonText) + return nil +} + +// ReasonText Getter +func (r TaobaoXhotelOrderOfficialCancelAPIRequest) GetReasonText() string { + return r._reasonText +} +// OutId Setter +// 外部订单号 +func (r *TaobaoXhotelOrderOfficialCancelAPIRequest) SetOutId(_outId string) error { + r._outId = _outId + r.Set("out_id", _outId) + return nil +} + +// OutId Getter +func (r TaobaoXhotelOrderOfficialCancelAPIRequest) GetOutId() string { + return r._outId +} +// OutUuid Setter +// 请求流水号(必须传入) +func (r *TaobaoXhotelOrderOfficialCancelAPIRequest) SetOutUuid(_outUuid string) error { + r._outUuid = _outUuid + r.Set("out_uuid", _outUuid) + return nil +} + +// OutUuid Getter +func (r TaobaoXhotelOrderOfficialCancelAPIRequest) GetOutUuid() string { + return r._outUuid +} +// NotifyUrl Setter +// 暂无意义,无需传入 +func (r *TaobaoXhotelOrderOfficialCancelAPIRequest) SetNotifyUrl(_notifyUrl string) error { + r._notifyUrl = _notifyUrl + r.Set("notify_url", _notifyUrl) + return nil +} + +// NotifyUrl Getter +func (r TaobaoXhotelOrderOfficialCancelAPIRequest) GetNotifyUrl() string { + return r._notifyUrl +} diff --git a/model/xhotelofficial/TaobaoXhotelOrderOfficialCancelAPIResponse.go b/model/xhotelofficial/TaobaoXhotelOrderOfficialCancelAPIResponse.go new file mode 100644 index 0000000000..f488a2d7b2 --- /dev/null +++ b/model/xhotelofficial/TaobaoXhotelOrderOfficialCancelAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelofficial + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +官网信用住订单取消 API返回值 +taobao.xhotel.order.official.cancel + +官网信用住订单取消 +*/ +type TaobaoXhotelOrderOfficialCancelAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderOfficialCancelAPIResponseModel +} + +// 官网信用住订单取消 成功返回结果 +type TaobaoXhotelOrderOfficialCancelAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_official_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回提示信息 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelofficial/TaobaoXhotelOrderOfficialCancelResponse.go b/model/xhotelofficial/TaobaoXhotelOrderOfficialCancelResponse.go deleted file mode 100644 index cb2f91b72f..0000000000 --- a/model/xhotelofficial/TaobaoXhotelOrderOfficialCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelofficial - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -官网信用住订单取消 API返回值 -taobao.xhotel.order.official.cancel - -官网信用住订单取消 -*/ -type TaobaoXhotelOrderOfficialCancelAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderOfficialCancelResponse -} - -// 官网信用住订单取消 成功返回结果 -type TaobaoXhotelOrderOfficialCancelResponse struct { - XMLName xml.Name `xml:"xhotel_order_official_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回提示信息 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelofficial/TaobaoXhotelOrderOfficialPrecheckAPIRequest.go b/model/xhotelofficial/TaobaoXhotelOrderOfficialPrecheckAPIRequest.go new file mode 100644 index 0000000000..3c6e72c6a0 --- /dev/null +++ b/model/xhotelofficial/TaobaoXhotelOrderOfficialPrecheckAPIRequest.go @@ -0,0 +1,168 @@ +package xhotelofficial + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +官网信用住用户资格预校验接口 API请求 +taobao.xhotel.order.official.precheck + +官网信用住用户资格预校验接口是在订单创建之前,根据入住人身份信息对其做预先校验是否具有信用住资格。可以优化用户预定体验,对于无资格的用户在预定前即不可进行信用住的选择。减少在提交预定后预定失败体验。该接口为可选对接接口,商家可根据实际情况自行决定是否对接。 + +接口使用场景 + +提交订单前的预定人信用住资格预先校验,卖家可决定是否在搜索,预订页,补全身份信息时进行调用,以便决定信用住是否提供给用户 +*/ +type TaobaoXhotelOrderOfficialPrecheckAPIRequest struct { + model.Params + // 证件号, 如果加密方式设置为1, 传入加密后的证件号(建议明文传递) + _idNumber string + // 总的收费金额,单位为分 + _totalFee int64 + // 参数必填,发布到阿里旅行的酒店编码 + _hotelCode string + // 加密方式, 默认0: 不加密, 信息会通过淘宝开放平台传输, 阿里旅行可以获取到具体信息; 1: SHA-1不可逆加密, 阿里旅行方面无法解析到具体信息, 只用于做信息匹配.注意加密后生成40字节长度的字符串(目前不建议加密) + _encryptType int64 + // 证件类型, 默认0:身份证; 1: 护照; 2:警官证; 3:士兵证; 4: 回乡证(目前仅仅支持身份证) + _idType int64 + // 验证类型.可以不设置. 默认0-下单前资格校验;1-已经创建的信用住订单,入住人在checkIn时的资格复审(无特殊要求不填写) + _type int64 + // 请咨酒店对接负责人, 用于和outHid共同定位一个酒店 + _vendor string + // 入住人姓名 + _guestName string + // 客人手机号 + _mobileNo string +} + +// 初始化TaobaoXhotelOrderOfficialPrecheckAPIRequest对象 +func NewTaobaoXhotelOrderOfficialPrecheckRequest() *TaobaoXhotelOrderOfficialPrecheckAPIRequest{ + return &TaobaoXhotelOrderOfficialPrecheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderOfficialPrecheckAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.official.precheck" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderOfficialPrecheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// IdNumber Setter +// 证件号, 如果加密方式设置为1, 传入加密后的证件号(建议明文传递) +func (r *TaobaoXhotelOrderOfficialPrecheckAPIRequest) SetIdNumber(_idNumber string) error { + r._idNumber = _idNumber + r.Set("id_number", _idNumber) + return nil +} + +// IdNumber Getter +func (r TaobaoXhotelOrderOfficialPrecheckAPIRequest) GetIdNumber() string { + return r._idNumber +} +// TotalFee Setter +// 总的收费金额,单位为分 +func (r *TaobaoXhotelOrderOfficialPrecheckAPIRequest) SetTotalFee(_totalFee int64) error { + r._totalFee = _totalFee + r.Set("total_fee", _totalFee) + return nil +} + +// TotalFee Getter +func (r TaobaoXhotelOrderOfficialPrecheckAPIRequest) GetTotalFee() int64 { + return r._totalFee +} +// HotelCode Setter +// 参数必填,发布到阿里旅行的酒店编码 +func (r *TaobaoXhotelOrderOfficialPrecheckAPIRequest) SetHotelCode(_hotelCode string) error { + r._hotelCode = _hotelCode + r.Set("hotel_code", _hotelCode) + return nil +} + +// HotelCode Getter +func (r TaobaoXhotelOrderOfficialPrecheckAPIRequest) GetHotelCode() string { + return r._hotelCode +} +// EncryptType Setter +// 加密方式, 默认0: 不加密, 信息会通过淘宝开放平台传输, 阿里旅行可以获取到具体信息; 1: SHA-1不可逆加密, 阿里旅行方面无法解析到具体信息, 只用于做信息匹配.注意加密后生成40字节长度的字符串(目前不建议加密) +func (r *TaobaoXhotelOrderOfficialPrecheckAPIRequest) SetEncryptType(_encryptType int64) error { + r._encryptType = _encryptType + r.Set("encrypt_type", _encryptType) + return nil +} + +// EncryptType Getter +func (r TaobaoXhotelOrderOfficialPrecheckAPIRequest) GetEncryptType() int64 { + return r._encryptType +} +// IdType Setter +// 证件类型, 默认0:身份证; 1: 护照; 2:警官证; 3:士兵证; 4: 回乡证(目前仅仅支持身份证) +func (r *TaobaoXhotelOrderOfficialPrecheckAPIRequest) SetIdType(_idType int64) error { + r._idType = _idType + r.Set("id_type", _idType) + return nil +} + +// IdType Getter +func (r TaobaoXhotelOrderOfficialPrecheckAPIRequest) GetIdType() int64 { + return r._idType +} +// Type Setter +// 验证类型.可以不设置. 默认0-下单前资格校验;1-已经创建的信用住订单,入住人在checkIn时的资格复审(无特殊要求不填写) +func (r *TaobaoXhotelOrderOfficialPrecheckAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoXhotelOrderOfficialPrecheckAPIRequest) GetType() int64 { + return r._type +} +// Vendor Setter +// 请咨酒店对接负责人, 用于和outHid共同定位一个酒店 +func (r *TaobaoXhotelOrderOfficialPrecheckAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelOrderOfficialPrecheckAPIRequest) GetVendor() string { + return r._vendor +} +// GuestName Setter +// 入住人姓名 +func (r *TaobaoXhotelOrderOfficialPrecheckAPIRequest) SetGuestName(_guestName string) error { + r._guestName = _guestName + r.Set("guest_name", _guestName) + return nil +} + +// GuestName Getter +func (r TaobaoXhotelOrderOfficialPrecheckAPIRequest) GetGuestName() string { + return r._guestName +} +// MobileNo Setter +// 客人手机号 +func (r *TaobaoXhotelOrderOfficialPrecheckAPIRequest) SetMobileNo(_mobileNo string) error { + r._mobileNo = _mobileNo + r.Set("mobile_no", _mobileNo) + return nil +} + +// MobileNo Getter +func (r TaobaoXhotelOrderOfficialPrecheckAPIRequest) GetMobileNo() string { + return r._mobileNo +} diff --git a/model/xhotelofficial/TaobaoXhotelOrderOfficialPrecheckAPIResponse.go b/model/xhotelofficial/TaobaoXhotelOrderOfficialPrecheckAPIResponse.go new file mode 100644 index 0000000000..cdbec8252b --- /dev/null +++ b/model/xhotelofficial/TaobaoXhotelOrderOfficialPrecheckAPIResponse.go @@ -0,0 +1,37 @@ +package xhotelofficial + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +官网信用住用户资格预校验接口 API返回值 +taobao.xhotel.order.official.precheck + +官网信用住用户资格预校验接口是在订单创建之前,根据入住人身份信息对其做预先校验是否具有信用住资格。可以优化用户预定体验,对于无资格的用户在预定前即不可进行信用住的选择。减少在提交预定后预定失败体验。该接口为可选对接接口,商家可根据实际情况自行决定是否对接。 + +接口使用场景 + +提交订单前的预定人信用住资格预先校验,卖家可决定是否在搜索,预订页,补全身份信息时进行调用,以便决定信用住是否提供给用户 +*/ +type TaobaoXhotelOrderOfficialPrecheckAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderOfficialPrecheckAPIResponseModel +} + +// 官网信用住用户资格预校验接口 成功返回结果 +type TaobaoXhotelOrderOfficialPrecheckAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_official_precheck_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否符合信用住条件 + MatchCondition bool `json:"match_condition,omitempty" xml:"match_condition,omitempty"` + // 当match_condition=false时该字段有意义,用于说明用户不符合信用住条件的原因。以下两种情况,请不要读取此字段值(1、match_condition=true;2、当match_condition=false并且action=1时候(action=1表示用户未签约信用住)) + Reason string `json:"reason,omitempty" xml:"reason,omitempty"` + // 入参信息回传, 用于校验的证件号码 + IdNumber string `json:"id_number,omitempty" xml:"id_number,omitempty"` + // 当match_condition=false时该字段有意义,用于标示当用户不符合条件时,应该进行的下一步动作. 0或者空: 用户没有资格使用信用住。可以读取reson字段查看原因。 1: 表示用户符合资格,但是未签约信用住。可以提示用户进行签约后重试。 + Action int64 `json:"action,omitempty" xml:"action,omitempty"` +} diff --git a/model/xhotelofficial/TaobaoXhotelOrderOfficialPrecheckResponse.go b/model/xhotelofficial/TaobaoXhotelOrderOfficialPrecheckResponse.go deleted file mode 100644 index 58831c84fa..0000000000 --- a/model/xhotelofficial/TaobaoXhotelOrderOfficialPrecheckResponse.go +++ /dev/null @@ -1,37 +0,0 @@ -package xhotelofficial - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -官网信用住用户资格预校验接口 API返回值 -taobao.xhotel.order.official.precheck - -官网信用住用户资格预校验接口是在订单创建之前,根据入住人身份信息对其做预先校验是否具有信用住资格。可以优化用户预定体验,对于无资格的用户在预定前即不可进行信用住的选择。减少在提交预定后预定失败体验。该接口为可选对接接口,商家可根据实际情况自行决定是否对接。 - -接口使用场景 - -提交订单前的预定人信用住资格预先校验,卖家可决定是否在搜索,预订页,补全身份信息时进行调用,以便决定信用住是否提供给用户 -*/ -type TaobaoXhotelOrderOfficialPrecheckAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderOfficialPrecheckResponse -} - -// 官网信用住用户资格预校验接口 成功返回结果 -type TaobaoXhotelOrderOfficialPrecheckResponse struct { - XMLName xml.Name `xml:"xhotel_order_official_precheck_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否符合信用住条件 - MatchCondition bool `json:"match_condition,omitempty" xml:"match_condition,omitempty"` - // 当match_condition=false时该字段有意义,用于说明用户不符合信用住条件的原因。以下两种情况,请不要读取此字段值(1、match_condition=true;2、当match_condition=false并且action=1时候(action=1表示用户未签约信用住)) - Reason string `json:"reason,omitempty" xml:"reason,omitempty"` - // 入参信息回传, 用于校验的证件号码 - IdNumber string `json:"id_number,omitempty" xml:"id_number,omitempty"` - // 当match_condition=false时该字段有意义,用于标示当用户不符合条件时,应该进行的下一步动作. 0或者空: 用户没有资格使用信用住。可以读取reson字段查看原因。 1: 表示用户符合资格,但是未签约信用住。可以提示用户进行签约后重试。 - Action int64 `json:"action,omitempty" xml:"action,omitempty"` -} diff --git a/model/xhotelofficial/TaobaoXhotelOrderOfficialSettleCancelAPIRequest.go b/model/xhotelofficial/TaobaoXhotelOrderOfficialSettleCancelAPIRequest.go new file mode 100644 index 0000000000..4eaa0e549b --- /dev/null +++ b/model/xhotelofficial/TaobaoXhotelOrderOfficialSettleCancelAPIRequest.go @@ -0,0 +1,108 @@ +package xhotelofficial + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +官网信用住取消结账 API请求 +taobao.xhotel.order.official.settle.cancel + +用于官网信用住取消结账 +*/ +type TaobaoXhotelOrderOfficialSettleCancelAPIRequest struct { + model.Params + // 阿里旅行订单号,淘宝订单号或外部订单号二选一必填 + _tid int64 + // 取消结账的原因 + _reason string + // 外部订单号,和tid二选一必填 + _outId string + // 暂时无意义,无需传入 + _notifyUrl string + // 请求流水号 + _outUuid string +} + +// 初始化TaobaoXhotelOrderOfficialSettleCancelAPIRequest对象 +func NewTaobaoXhotelOrderOfficialSettleCancelRequest() *TaobaoXhotelOrderOfficialSettleCancelAPIRequest{ + return &TaobaoXhotelOrderOfficialSettleCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderOfficialSettleCancelAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.official.settle.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderOfficialSettleCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 阿里旅行订单号,淘宝订单号或外部订单号二选一必填 +func (r *TaobaoXhotelOrderOfficialSettleCancelAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoXhotelOrderOfficialSettleCancelAPIRequest) GetTid() int64 { + return r._tid +} +// Reason Setter +// 取消结账的原因 +func (r *TaobaoXhotelOrderOfficialSettleCancelAPIRequest) SetReason(_reason string) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r TaobaoXhotelOrderOfficialSettleCancelAPIRequest) GetReason() string { + return r._reason +} +// OutId Setter +// 外部订单号,和tid二选一必填 +func (r *TaobaoXhotelOrderOfficialSettleCancelAPIRequest) SetOutId(_outId string) error { + r._outId = _outId + r.Set("out_id", _outId) + return nil +} + +// OutId Getter +func (r TaobaoXhotelOrderOfficialSettleCancelAPIRequest) GetOutId() string { + return r._outId +} +// NotifyUrl Setter +// 暂时无意义,无需传入 +func (r *TaobaoXhotelOrderOfficialSettleCancelAPIRequest) SetNotifyUrl(_notifyUrl string) error { + r._notifyUrl = _notifyUrl + r.Set("notify_url", _notifyUrl) + return nil +} + +// NotifyUrl Getter +func (r TaobaoXhotelOrderOfficialSettleCancelAPIRequest) GetNotifyUrl() string { + return r._notifyUrl +} +// OutUuid Setter +// 请求流水号 +func (r *TaobaoXhotelOrderOfficialSettleCancelAPIRequest) SetOutUuid(_outUuid string) error { + r._outUuid = _outUuid + r.Set("out_uuid", _outUuid) + return nil +} + +// OutUuid Getter +func (r TaobaoXhotelOrderOfficialSettleCancelAPIRequest) GetOutUuid() string { + return r._outUuid +} diff --git a/model/xhotelofficial/TaobaoXhotelOrderOfficialSettleCancelAPIResponse.go b/model/xhotelofficial/TaobaoXhotelOrderOfficialSettleCancelAPIResponse.go new file mode 100644 index 0000000000..0891e0ce49 --- /dev/null +++ b/model/xhotelofficial/TaobaoXhotelOrderOfficialSettleCancelAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelofficial + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +官网信用住取消结账 API返回值 +taobao.xhotel.order.official.settle.cancel + +用于官网信用住取消结账 +*/ +type TaobaoXhotelOrderOfficialSettleCancelAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderOfficialSettleCancelAPIResponseModel +} + +// 官网信用住取消结账 成功返回结果 +type TaobaoXhotelOrderOfficialSettleCancelAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_official_settle_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回信息 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelofficial/TaobaoXhotelOrderOfficialSettleCancelResponse.go b/model/xhotelofficial/TaobaoXhotelOrderOfficialSettleCancelResponse.go deleted file mode 100644 index 605915e0aa..0000000000 --- a/model/xhotelofficial/TaobaoXhotelOrderOfficialSettleCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelofficial - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -官网信用住取消结账 API返回值 -taobao.xhotel.order.official.settle.cancel - -用于官网信用住取消结账 -*/ -type TaobaoXhotelOrderOfficialSettleCancelAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderOfficialSettleCancelResponse -} - -// 官网信用住取消结账 成功返回结果 -type TaobaoXhotelOrderOfficialSettleCancelResponse struct { - XMLName xml.Name `xml:"xhotel_order_official_settle_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回信息 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelofficial/TaobaoXhotelOrderOfficialSettlePutAPIRequest.go b/model/xhotelofficial/TaobaoXhotelOrderOfficialSettlePutAPIRequest.go new file mode 100644 index 0000000000..284bcffb9f --- /dev/null +++ b/model/xhotelofficial/TaobaoXhotelOrderOfficialSettlePutAPIRequest.go @@ -0,0 +1,220 @@ +package xhotelofficial + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +官网信用住结账接口 API请求 +taobao.xhotel.order.official.settle.put + +用于酒店官网信用住商家结账调用 +*/ +type TaobaoXhotelOrderOfficialSettlePutAPIRequest struct { + model.Params + // 淘宝订单id,必须填写 + _tid int64 + // 房费总额(必须大于0) + _totalRoomFee int64 + // 杂费总额(不能为负数) + _otherFee int64 + // 杂费明细,如果otherFee>0则该字段必须设置,并和杂费金额相吻合 + _otherFeeDetail string + // 商家订单号 + _outId string + // 入住房间号 + _roomNo string + // 每日房价,json格式,如果房价和在阿里旅行下单时发生了变化,必须设置该字段.用于更新阿里旅行端的房价信息,涉及到对用户的优惠信息处理等环节(多间房的时候dailyPriceInfo留空) + _dailyPriceInfo string + // 实际离店日期,用于校验总房费收取 + _checkOut string + // 备注 + _memo string + // 房间明细列表 + _roomSettleInfoList []RoomSettleInfo + // 此金额是否包含担保金 0:默认值无意义;1:包含;2:不包含(多间房结账必须传入) + _containGuarantee int64 + // 结账请求流水号 + _outUuid string + // 请求结果通知地址(暂时无效,无需传入) + _notifyUrl string +} + +// 初始化TaobaoXhotelOrderOfficialSettlePutAPIRequest对象 +func NewTaobaoXhotelOrderOfficialSettlePutRequest() *TaobaoXhotelOrderOfficialSettlePutAPIRequest{ + return &TaobaoXhotelOrderOfficialSettlePutAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderOfficialSettlePutAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.official.settle.put" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderOfficialSettlePutAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 淘宝订单id,必须填写 +func (r *TaobaoXhotelOrderOfficialSettlePutAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoXhotelOrderOfficialSettlePutAPIRequest) GetTid() int64 { + return r._tid +} +// TotalRoomFee Setter +// 房费总额(必须大于0) +func (r *TaobaoXhotelOrderOfficialSettlePutAPIRequest) SetTotalRoomFee(_totalRoomFee int64) error { + r._totalRoomFee = _totalRoomFee + r.Set("total_room_fee", _totalRoomFee) + return nil +} + +// TotalRoomFee Getter +func (r TaobaoXhotelOrderOfficialSettlePutAPIRequest) GetTotalRoomFee() int64 { + return r._totalRoomFee +} +// OtherFee Setter +// 杂费总额(不能为负数) +func (r *TaobaoXhotelOrderOfficialSettlePutAPIRequest) SetOtherFee(_otherFee int64) error { + r._otherFee = _otherFee + r.Set("other_fee", _otherFee) + return nil +} + +// OtherFee Getter +func (r TaobaoXhotelOrderOfficialSettlePutAPIRequest) GetOtherFee() int64 { + return r._otherFee +} +// OtherFeeDetail Setter +// 杂费明细,如果otherFee>0则该字段必须设置,并和杂费金额相吻合 +func (r *TaobaoXhotelOrderOfficialSettlePutAPIRequest) SetOtherFeeDetail(_otherFeeDetail string) error { + r._otherFeeDetail = _otherFeeDetail + r.Set("other_fee_detail", _otherFeeDetail) + return nil +} + +// OtherFeeDetail Getter +func (r TaobaoXhotelOrderOfficialSettlePutAPIRequest) GetOtherFeeDetail() string { + return r._otherFeeDetail +} +// OutId Setter +// 商家订单号 +func (r *TaobaoXhotelOrderOfficialSettlePutAPIRequest) SetOutId(_outId string) error { + r._outId = _outId + r.Set("out_id", _outId) + return nil +} + +// OutId Getter +func (r TaobaoXhotelOrderOfficialSettlePutAPIRequest) GetOutId() string { + return r._outId +} +// RoomNo Setter +// 入住房间号 +func (r *TaobaoXhotelOrderOfficialSettlePutAPIRequest) SetRoomNo(_roomNo string) error { + r._roomNo = _roomNo + r.Set("room_no", _roomNo) + return nil +} + +// RoomNo Getter +func (r TaobaoXhotelOrderOfficialSettlePutAPIRequest) GetRoomNo() string { + return r._roomNo +} +// DailyPriceInfo Setter +// 每日房价,json格式,如果房价和在阿里旅行下单时发生了变化,必须设置该字段.用于更新阿里旅行端的房价信息,涉及到对用户的优惠信息处理等环节(多间房的时候dailyPriceInfo留空) +func (r *TaobaoXhotelOrderOfficialSettlePutAPIRequest) SetDailyPriceInfo(_dailyPriceInfo string) error { + r._dailyPriceInfo = _dailyPriceInfo + r.Set("daily_price_info", _dailyPriceInfo) + return nil +} + +// DailyPriceInfo Getter +func (r TaobaoXhotelOrderOfficialSettlePutAPIRequest) GetDailyPriceInfo() string { + return r._dailyPriceInfo +} +// CheckOut Setter +// 实际离店日期,用于校验总房费收取 +func (r *TaobaoXhotelOrderOfficialSettlePutAPIRequest) SetCheckOut(_checkOut string) error { + r._checkOut = _checkOut + r.Set("check_out", _checkOut) + return nil +} + +// CheckOut Getter +func (r TaobaoXhotelOrderOfficialSettlePutAPIRequest) GetCheckOut() string { + return r._checkOut +} +// Memo Setter +// 备注 +func (r *TaobaoXhotelOrderOfficialSettlePutAPIRequest) SetMemo(_memo string) error { + r._memo = _memo + r.Set("memo", _memo) + return nil +} + +// Memo Getter +func (r TaobaoXhotelOrderOfficialSettlePutAPIRequest) GetMemo() string { + return r._memo +} +// RoomSettleInfoList Setter +// 房间明细列表 +func (r *TaobaoXhotelOrderOfficialSettlePutAPIRequest) SetRoomSettleInfoList(_roomSettleInfoList []RoomSettleInfo) error { + r._roomSettleInfoList = _roomSettleInfoList + r.Set("room_settle_info_list", _roomSettleInfoList) + return nil +} + +// RoomSettleInfoList Getter +func (r TaobaoXhotelOrderOfficialSettlePutAPIRequest) GetRoomSettleInfoList() []RoomSettleInfo { + return r._roomSettleInfoList +} +// ContainGuarantee Setter +// 此金额是否包含担保金 0:默认值无意义;1:包含;2:不包含(多间房结账必须传入) +func (r *TaobaoXhotelOrderOfficialSettlePutAPIRequest) SetContainGuarantee(_containGuarantee int64) error { + r._containGuarantee = _containGuarantee + r.Set("contain_guarantee", _containGuarantee) + return nil +} + +// ContainGuarantee Getter +func (r TaobaoXhotelOrderOfficialSettlePutAPIRequest) GetContainGuarantee() int64 { + return r._containGuarantee +} +// OutUuid Setter +// 结账请求流水号 +func (r *TaobaoXhotelOrderOfficialSettlePutAPIRequest) SetOutUuid(_outUuid string) error { + r._outUuid = _outUuid + r.Set("out_uuid", _outUuid) + return nil +} + +// OutUuid Getter +func (r TaobaoXhotelOrderOfficialSettlePutAPIRequest) GetOutUuid() string { + return r._outUuid +} +// NotifyUrl Setter +// 请求结果通知地址(暂时无效,无需传入) +func (r *TaobaoXhotelOrderOfficialSettlePutAPIRequest) SetNotifyUrl(_notifyUrl string) error { + r._notifyUrl = _notifyUrl + r.Set("notify_url", _notifyUrl) + return nil +} + +// NotifyUrl Getter +func (r TaobaoXhotelOrderOfficialSettlePutAPIRequest) GetNotifyUrl() string { + return r._notifyUrl +} diff --git a/model/xhotelofficial/TaobaoXhotelOrderOfficialSettlePutAPIResponse.go b/model/xhotelofficial/TaobaoXhotelOrderOfficialSettlePutAPIResponse.go new file mode 100644 index 0000000000..376c256344 --- /dev/null +++ b/model/xhotelofficial/TaobaoXhotelOrderOfficialSettlePutAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelofficial + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +官网信用住结账接口 API返回值 +taobao.xhotel.order.official.settle.put + +用于酒店官网信用住商家结账调用 +*/ +type TaobaoXhotelOrderOfficialSettlePutAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderOfficialSettlePutAPIResponseModel +} + +// 官网信用住结账接口 成功返回结果 +type TaobaoXhotelOrderOfficialSettlePutAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_official_settle_put_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelofficial/TaobaoXhotelOrderOfficialSettlePutResponse.go b/model/xhotelofficial/TaobaoXhotelOrderOfficialSettlePutResponse.go deleted file mode 100644 index 8a79588213..0000000000 --- a/model/xhotelofficial/TaobaoXhotelOrderOfficialSettlePutResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelofficial - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -官网信用住结账接口 API返回值 -taobao.xhotel.order.official.settle.put - -用于酒店官网信用住商家结账调用 -*/ -type TaobaoXhotelOrderOfficialSettlePutAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderOfficialSettlePutResponse -} - -// 官网信用住结账接口 成功返回结果 -type TaobaoXhotelOrderOfficialSettlePutResponse struct { - XMLName xml.Name `xml:"xhotel_order_official_settle_put_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCancelAPIRequest.go b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCancelAPIRequest.go new file mode 100644 index 0000000000..a7751e8503 --- /dev/null +++ b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCancelAPIRequest.go @@ -0,0 +1,108 @@ +package xhoteloffline + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线下信用住订单取消 API请求 +taobao.xhotel.order.alipayface.cancel + +提供给卖家进行线下信用住的订单取消。此接口仅仅支持线下信用住订单的取消 +*/ +type TaobaoXhotelOrderAlipayfaceCancelAPIRequest struct { + model.Params + // 淘宝订单ID,必选 + _tid int64 + // 原因描述 + _reasonText string + // 外部订单号 + _outId string + // 预留后续用 + _notifyUrl string + // 请求流水号 + _outUuid string +} + +// 初始化TaobaoXhotelOrderAlipayfaceCancelAPIRequest对象 +func NewTaobaoXhotelOrderAlipayfaceCancelRequest() *TaobaoXhotelOrderAlipayfaceCancelAPIRequest{ + return &TaobaoXhotelOrderAlipayfaceCancelAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.alipayface.cancel" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 淘宝订单ID,必选 +func (r *TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetTid() int64 { + return r._tid +} +// ReasonText Setter +// 原因描述 +func (r *TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetReasonText(_reasonText string) error { + r._reasonText = _reasonText + r.Set("reason_text", _reasonText) + return nil +} + +// ReasonText Getter +func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetReasonText() string { + return r._reasonText +} +// OutId Setter +// 外部订单号 +func (r *TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetOutId(_outId string) error { + r._outId = _outId + r.Set("out_id", _outId) + return nil +} + +// OutId Getter +func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetOutId() string { + return r._outId +} +// NotifyUrl Setter +// 预留后续用 +func (r *TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetNotifyUrl(_notifyUrl string) error { + r._notifyUrl = _notifyUrl + r.Set("notify_url", _notifyUrl) + return nil +} + +// NotifyUrl Getter +func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetNotifyUrl() string { + return r._notifyUrl +} +// OutUuid Setter +// 请求流水号 +func (r *TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetOutUuid(_outUuid string) error { + r._outUuid = _outUuid + r.Set("out_uuid", _outUuid) + return nil +} + +// OutUuid Getter +func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetOutUuid() string { + return r._outUuid +} diff --git a/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCancelAPIResponse.go b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCancelAPIResponse.go new file mode 100644 index 0000000000..563fbb4284 --- /dev/null +++ b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCancelAPIResponse.go @@ -0,0 +1,27 @@ +package xhoteloffline + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线下信用住订单取消 API返回值 +taobao.xhotel.order.alipayface.cancel + +提供给卖家进行线下信用住的订单取消。此接口仅仅支持线下信用住订单的取消 +*/ +type TaobaoXhotelOrderAlipayfaceCancelAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderAlipayfaceCancelAPIResponseModel +} + +// 线下信用住订单取消 成功返回结果 +type TaobaoXhotelOrderAlipayfaceCancelAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_alipayface_cancel_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回描述 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCancelResponse.go b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCancelResponse.go deleted file mode 100644 index cf3d024d76..0000000000 --- a/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCancelResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhoteloffline - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线下信用住订单取消 API返回值 -taobao.xhotel.order.alipayface.cancel - -提供给卖家进行线下信用住的订单取消。此接口仅仅支持线下信用住订单的取消 -*/ -type TaobaoXhotelOrderAlipayfaceCancelAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderAlipayfaceCancelResponse -} - -// 线下信用住订单取消 成功返回结果 -type TaobaoXhotelOrderAlipayfaceCancelResponse struct { - XMLName xml.Name `xml:"xhotel_order_alipayface_cancel_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回描述 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCheckAPIRequest.go b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCheckAPIRequest.go new file mode 100644 index 0000000000..ce3949df43 --- /dev/null +++ b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCheckAPIRequest.go @@ -0,0 +1,164 @@ +package xhoteloffline + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线下信用住买家资格校验接口 API请求 +taobao.xhotel.order.alipayface.check + +接口用于校验买家是否具有使用酒店信用住的资格 +*/ +type TaobaoXhotelOrderAlipayfaceCheckAPIRequest struct { + model.Params + // 总的收费金额,单位为分 + _totalFee int64 + // 参数必填,发布到阿里旅行的酒店编码 + _hotelCode string + // 证件号, 如果加密方式设置为1, 传入加密后的证件号 + _idNumber string + // 加密方式, 默认0: 不加密, 信息会通过淘宝开放平台传输, 阿里旅行可以获取到具体信息; 1: SHA-1不可逆加密, 阿里旅行方面无法解析到具体信息, 只用于做信息匹配.注意加密后生成40字节长度的字符串 + _encryptType int64 + // 验证类型.可以不设置. 默认0-信用住下单资格校验;1-已经创建的信用住订单,入住人在checkIn时的资格复审 + _type int64 + // 证件类型, 默认0:身份证; 1: 护照; 2:警官证; 3:士兵证; 4: 回乡证 + _idType int64 + // 不清楚请留空, 用于和outHid共同定位一个酒店 + _vendor string + // 入住人姓名 + _guestName string + // 客人手机号 + _mobileNo string +} + +// 初始化TaobaoXhotelOrderAlipayfaceCheckAPIRequest对象 +func NewTaobaoXhotelOrderAlipayfaceCheckRequest() *TaobaoXhotelOrderAlipayfaceCheckAPIRequest{ + return &TaobaoXhotelOrderAlipayfaceCheckAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.alipayface.check" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TotalFee Setter +// 总的收费金额,单位为分 +func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetTotalFee(_totalFee int64) error { + r._totalFee = _totalFee + r.Set("total_fee", _totalFee) + return nil +} + +// TotalFee Getter +func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetTotalFee() int64 { + return r._totalFee +} +// HotelCode Setter +// 参数必填,发布到阿里旅行的酒店编码 +func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetHotelCode(_hotelCode string) error { + r._hotelCode = _hotelCode + r.Set("hotel_code", _hotelCode) + return nil +} + +// HotelCode Getter +func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetHotelCode() string { + return r._hotelCode +} +// IdNumber Setter +// 证件号, 如果加密方式设置为1, 传入加密后的证件号 +func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetIdNumber(_idNumber string) error { + r._idNumber = _idNumber + r.Set("id_number", _idNumber) + return nil +} + +// IdNumber Getter +func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetIdNumber() string { + return r._idNumber +} +// EncryptType Setter +// 加密方式, 默认0: 不加密, 信息会通过淘宝开放平台传输, 阿里旅行可以获取到具体信息; 1: SHA-1不可逆加密, 阿里旅行方面无法解析到具体信息, 只用于做信息匹配.注意加密后生成40字节长度的字符串 +func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetEncryptType(_encryptType int64) error { + r._encryptType = _encryptType + r.Set("encrypt_type", _encryptType) + return nil +} + +// EncryptType Getter +func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetEncryptType() int64 { + return r._encryptType +} +// Type Setter +// 验证类型.可以不设置. 默认0-信用住下单资格校验;1-已经创建的信用住订单,入住人在checkIn时的资格复审 +func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetType() int64 { + return r._type +} +// IdType Setter +// 证件类型, 默认0:身份证; 1: 护照; 2:警官证; 3:士兵证; 4: 回乡证 +func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetIdType(_idType int64) error { + r._idType = _idType + r.Set("id_type", _idType) + return nil +} + +// IdType Getter +func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetIdType() int64 { + return r._idType +} +// Vendor Setter +// 不清楚请留空, 用于和outHid共同定位一个酒店 +func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetVendor() string { + return r._vendor +} +// GuestName Setter +// 入住人姓名 +func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetGuestName(_guestName string) error { + r._guestName = _guestName + r.Set("guest_name", _guestName) + return nil +} + +// GuestName Getter +func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetGuestName() string { + return r._guestName +} +// MobileNo Setter +// 客人手机号 +func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetMobileNo(_mobileNo string) error { + r._mobileNo = _mobileNo + r.Set("mobile_no", _mobileNo) + return nil +} + +// MobileNo Getter +func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetMobileNo() string { + return r._mobileNo +} diff --git a/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCheckAPIResponse.go b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCheckAPIResponse.go new file mode 100644 index 0000000000..25a81ecd3e --- /dev/null +++ b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCheckAPIResponse.go @@ -0,0 +1,35 @@ +package xhoteloffline + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线下信用住买家资格校验接口 API返回值 +taobao.xhotel.order.alipayface.check + +接口用于校验买家是否具有使用酒店信用住的资格 +*/ +type TaobaoXhotelOrderAlipayfaceCheckAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderAlipayfaceCheckAPIResponseModel +} + +// 线下信用住买家资格校验接口 成功返回结果 +type TaobaoXhotelOrderAlipayfaceCheckAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_alipayface_check_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 当match_condition=false时该字段有意义,用于说明用户不符合信用住条件的原因, 主要有如下几种返回:1. 该用户尚未签约线下信用住, 请先扫码签约; 2.该用户尚未签约, 暂不支持使用线下信用住, 请使用现金或其他方式结账; 3. 该用户支付宝账号存在风险, 暂不支持使用线下信用住, 请使用现金或其他方式结账; 4.该用户当前信用额度不足, 无法支付此房费, 请使用现金或其他方式结账 + Reason string `json:"reason,omitempty" xml:"reason,omitempty"` + // 当match_condition=false时该字段有意义,用于标示当用户不符合条件时,应该进行的下一步动作. 0或者空: 代表没有下一步动作, 接入方此时可以直接不提示用户走任何线下信用住的流程和文案等; 1: 提示用户进行扫码签约,此时可以把reason字段展示到前台,或者自己定义提示文案 + Action int64 `json:"action,omitempty" xml:"action,omitempty"` + // 是否符合信用住条件 + MatchCondition bool `json:"match_condition,omitempty" xml:"match_condition,omitempty"` + // 入参信息回传, 用于校验的证件号码 + IdNumber string `json:"id_number,omitempty" xml:"id_number,omitempty"` + // existAlipayOrder + ExistAlipayOrder bool `json:"exist_alipay_order,omitempty" xml:"exist_alipay_order,omitempty"` +} diff --git a/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCheckResponse.go b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCheckResponse.go deleted file mode 100644 index 84a8029206..0000000000 --- a/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCheckResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package xhoteloffline - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线下信用住买家资格校验接口 API返回值 -taobao.xhotel.order.alipayface.check - -接口用于校验买家是否具有使用酒店信用住的资格 -*/ -type TaobaoXhotelOrderAlipayfaceCheckAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderAlipayfaceCheckResponse -} - -// 线下信用住买家资格校验接口 成功返回结果 -type TaobaoXhotelOrderAlipayfaceCheckResponse struct { - XMLName xml.Name `xml:"xhotel_order_alipayface_check_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 当match_condition=false时该字段有意义,用于说明用户不符合信用住条件的原因, 主要有如下几种返回:1. 该用户尚未签约线下信用住, 请先扫码签约; 2.该用户尚未签约, 暂不支持使用线下信用住, 请使用现金或其他方式结账; 3. 该用户支付宝账号存在风险, 暂不支持使用线下信用住, 请使用现金或其他方式结账; 4.该用户当前信用额度不足, 无法支付此房费, 请使用现金或其他方式结账 - Reason string `json:"reason,omitempty" xml:"reason,omitempty"` - // 当match_condition=false时该字段有意义,用于标示当用户不符合条件时,应该进行的下一步动作. 0或者空: 代表没有下一步动作, 接入方此时可以直接不提示用户走任何线下信用住的流程和文案等; 1: 提示用户进行扫码签约,此时可以把reason字段展示到前台,或者自己定义提示文案 - Action int64 `json:"action,omitempty" xml:"action,omitempty"` - // 是否符合信用住条件 - MatchCondition bool `json:"match_condition,omitempty" xml:"match_condition,omitempty"` - // 入参信息回传, 用于校验的证件号码 - IdNumber string `json:"id_number,omitempty" xml:"id_number,omitempty"` - // existAlipayOrder - ExistAlipayOrder bool `json:"exist_alipay_order,omitempty" xml:"exist_alipay_order,omitempty"` -} diff --git a/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCreateAPIRequest.go b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCreateAPIRequest.go new file mode 100644 index 0000000000..3f7118201a --- /dev/null +++ b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCreateAPIRequest.go @@ -0,0 +1,234 @@ +package xhoteloffline + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +信用住支付创建接口 API请求 +taobao.xhotel.order.alipayface.create + +用于创建一笔信用住支付,主要应用场景是线下信用住 +*/ +type TaobaoXhotelOrderAlipayfaceCreateAPIRequest struct { + model.Params + // 总房费,单位为分 + _totalFee int64 + // 离店日期(最多允许9天) + _checkOut string + // 发布到阿里旅行的酒店编码 + _hotelCode string + // 入住日期 + _checkIn string + // 每日房价,json格式 + _dailyPriceInfo string + // 商家系统的订单号,必须全局唯一,重复会按照相同订单处理 + _outOrderId string + // 预定的房间数量 + _roomQuantity int64 + // 入住人信息, 注意必须有且只有一个设置为主入住人, 用于信用住结算扣款. 对于java版本的SDK可以使用setGuests(List < Guest > guests)赋值; 对于.net等其他版本SDK可以通过将List < Guest>结构数据转为json串赋值. + _guests []Guest + // 扫描用户支付宝得到的串号, 该字段不为空时会采用串号对应的支付宝账号进行信用住结算 + _alipayNumber string + // 订单渠道信息,可以留空 + _channel string + // 不清楚请留空, 用于和outHid共同定位一个酒店 + _vendor string + // 房型名称 + _roomtypeName string + // rateplan名称(不清楚可以留空) + _rateplanName string + // 是否为自助入住模式下创建订单,是:true,否:false + _selfCheckin bool +} + +// 初始化TaobaoXhotelOrderAlipayfaceCreateAPIRequest对象 +func NewTaobaoXhotelOrderAlipayfaceCreateRequest() *TaobaoXhotelOrderAlipayfaceCreateAPIRequest{ + return &TaobaoXhotelOrderAlipayfaceCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.alipayface.create" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TotalFee Setter +// 总房费,单位为分 +func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetTotalFee(_totalFee int64) error { + r._totalFee = _totalFee + r.Set("total_fee", _totalFee) + return nil +} + +// TotalFee Getter +func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetTotalFee() int64 { + return r._totalFee +} +// CheckOut Setter +// 离店日期(最多允许9天) +func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetCheckOut(_checkOut string) error { + r._checkOut = _checkOut + r.Set("check_out", _checkOut) + return nil +} + +// CheckOut Getter +func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetCheckOut() string { + return r._checkOut +} +// HotelCode Setter +// 发布到阿里旅行的酒店编码 +func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetHotelCode(_hotelCode string) error { + r._hotelCode = _hotelCode + r.Set("hotel_code", _hotelCode) + return nil +} + +// HotelCode Getter +func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetHotelCode() string { + return r._hotelCode +} +// CheckIn Setter +// 入住日期 +func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetCheckIn(_checkIn string) error { + r._checkIn = _checkIn + r.Set("check_in", _checkIn) + return nil +} + +// CheckIn Getter +func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetCheckIn() string { + return r._checkIn +} +// DailyPriceInfo Setter +// 每日房价,json格式 +func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetDailyPriceInfo(_dailyPriceInfo string) error { + r._dailyPriceInfo = _dailyPriceInfo + r.Set("daily_price_info", _dailyPriceInfo) + return nil +} + +// DailyPriceInfo Getter +func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetDailyPriceInfo() string { + return r._dailyPriceInfo +} +// OutOrderId Setter +// 商家系统的订单号,必须全局唯一,重复会按照相同订单处理 +func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetOutOrderId(_outOrderId string) error { + r._outOrderId = _outOrderId + r.Set("out_order_id", _outOrderId) + return nil +} + +// OutOrderId Getter +func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetOutOrderId() string { + return r._outOrderId +} +// RoomQuantity Setter +// 预定的房间数量 +func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRoomQuantity(_roomQuantity int64) error { + r._roomQuantity = _roomQuantity + r.Set("room_quantity", _roomQuantity) + return nil +} + +// RoomQuantity Getter +func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetRoomQuantity() int64 { + return r._roomQuantity +} +// Guests Setter +// 入住人信息, 注意必须有且只有一个设置为主入住人, 用于信用住结算扣款. 对于java版本的SDK可以使用setGuests(List < Guest > guests)赋值; 对于.net等其他版本SDK可以通过将List < Guest>结构数据转为json串赋值. +func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetGuests(_guests []Guest) error { + r._guests = _guests + r.Set("guests", _guests) + return nil +} + +// Guests Getter +func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetGuests() []Guest { + return r._guests +} +// AlipayNumber Setter +// 扫描用户支付宝得到的串号, 该字段不为空时会采用串号对应的支付宝账号进行信用住结算 +func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetAlipayNumber(_alipayNumber string) error { + r._alipayNumber = _alipayNumber + r.Set("alipay_number", _alipayNumber) + return nil +} + +// AlipayNumber Getter +func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetAlipayNumber() string { + return r._alipayNumber +} +// Channel Setter +// 订单渠道信息,可以留空 +func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetChannel(_channel string) error { + r._channel = _channel + r.Set("channel", _channel) + return nil +} + +// Channel Getter +func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetChannel() string { + return r._channel +} +// Vendor Setter +// 不清楚请留空, 用于和outHid共同定位一个酒店 +func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetVendor() string { + return r._vendor +} +// RoomtypeName Setter +// 房型名称 +func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRoomtypeName(_roomtypeName string) error { + r._roomtypeName = _roomtypeName + r.Set("roomtype_name", _roomtypeName) + return nil +} + +// RoomtypeName Getter +func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetRoomtypeName() string { + return r._roomtypeName +} +// RateplanName Setter +// rateplan名称(不清楚可以留空) +func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRateplanName(_rateplanName string) error { + r._rateplanName = _rateplanName + r.Set("rateplan_name", _rateplanName) + return nil +} + +// RateplanName Getter +func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetRateplanName() string { + return r._rateplanName +} +// SelfCheckin Setter +// 是否为自助入住模式下创建订单,是:true,否:false +func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetSelfCheckin(_selfCheckin bool) error { + r._selfCheckin = _selfCheckin + r.Set("self_checkin", _selfCheckin) + return nil +} + +// SelfCheckin Getter +func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetSelfCheckin() bool { + return r._selfCheckin +} diff --git a/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCreateAPIResponse.go b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCreateAPIResponse.go new file mode 100644 index 0000000000..61844bca05 --- /dev/null +++ b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCreateAPIResponse.go @@ -0,0 +1,41 @@ +package xhoteloffline + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +信用住支付创建接口 API返回值 +taobao.xhotel.order.alipayface.create + +用于创建一笔信用住支付,主要应用场景是线下信用住 +*/ +type TaobaoXhotelOrderAlipayfaceCreateAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderAlipayfaceCreateAPIResponseModel +} + +// 信用住支付创建接口 成功返回结果 +type TaobaoXhotelOrderAlipayfaceCreateAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_alipayface_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 阿里旅行生成的订单id,该字段很重要,后续结账等操作都要使用tid + Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"` + // 阿里旅行为该笔订单提供的最大杂费(不含房费)担保金额,单位为分. 注意该金额指客人除了房费以外可消费的金额上限 + GuaranteeAmout int64 `json:"guarantee_amout,omitempty" xml:"guarantee_amout,omitempty"` + // 酒店订单号, 和入参中传入一致 + OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"` + // 用于当传入多个入住人时, 将阿里旅行最终用于结算的入住人信息回传 + MainIdNumber string `json:"main_id_number,omitempty" xml:"main_id_number,omitempty"` + // 阿里旅行平台提供的优惠金额,单位为分 + AlitripDiscount int64 `json:"alitrip_discount,omitempty" xml:"alitrip_discount,omitempty"` + // 商家自身提供给该订单的优惠金额,单位为分 + SellerDiscount int64 `json:"seller_discount,omitempty" xml:"seller_discount,omitempty"` + // 用于签约和扣款的买家淘宝账号 + BuyerNick string `json:"buyer_nick,omitempty" xml:"buyer_nick,omitempty"` + // 阿里旅行生成的备注信息,用于提示用户一些注意事宜. 请将该字段的信息打印到客人的入住单上. 如果为空代表没有阿里旅行方面的特殊备注 + Remark string `json:"remark,omitempty" xml:"remark,omitempty"` +} diff --git a/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCreateResponse.go b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCreateResponse.go deleted file mode 100644 index 943c8d75f3..0000000000 --- a/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceCreateResponse.go +++ /dev/null @@ -1,41 +0,0 @@ -package xhoteloffline - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -信用住支付创建接口 API返回值 -taobao.xhotel.order.alipayface.create - -用于创建一笔信用住支付,主要应用场景是线下信用住 -*/ -type TaobaoXhotelOrderAlipayfaceCreateAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderAlipayfaceCreateResponse -} - -// 信用住支付创建接口 成功返回结果 -type TaobaoXhotelOrderAlipayfaceCreateResponse struct { - XMLName xml.Name `xml:"xhotel_order_alipayface_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 阿里旅行生成的订单id,该字段很重要,后续结账等操作都要使用tid - Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"` - // 阿里旅行为该笔订单提供的最大杂费(不含房费)担保金额,单位为分. 注意该金额指客人除了房费以外可消费的金额上限 - GuaranteeAmout int64 `json:"guarantee_amout,omitempty" xml:"guarantee_amout,omitempty"` - // 酒店订单号, 和入参中传入一致 - OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"` - // 用于当传入多个入住人时, 将阿里旅行最终用于结算的入住人信息回传 - MainIdNumber string `json:"main_id_number,omitempty" xml:"main_id_number,omitempty"` - // 阿里旅行平台提供的优惠金额,单位为分 - AlitripDiscount int64 `json:"alitrip_discount,omitempty" xml:"alitrip_discount,omitempty"` - // 商家自身提供给该订单的优惠金额,单位为分 - SellerDiscount int64 `json:"seller_discount,omitempty" xml:"seller_discount,omitempty"` - // 用于签约和扣款的买家淘宝账号 - BuyerNick string `json:"buyer_nick,omitempty" xml:"buyer_nick,omitempty"` - // 阿里旅行生成的备注信息,用于提示用户一些注意事宜. 请将该字段的信息打印到客人的入住单上. 如果为空代表没有阿里旅行方面的特殊备注 - Remark string `json:"remark,omitempty" xml:"remark,omitempty"` -} diff --git a/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceExtendAPIRequest.go b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceExtendAPIRequest.go new file mode 100644 index 0000000000..fdc880d51c --- /dev/null +++ b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceExtendAPIRequest.go @@ -0,0 +1,108 @@ +package xhoteloffline + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +信用住订单延住接口 API请求 +taobao.xhotel.order.alipayface.extend + +信用住订单延住接口,用于将已有的信用住支付订单checkOut和订单金额等更新 +*/ +type TaobaoXhotelOrderAlipayfaceExtendAPIRequest struct { + model.Params + // 延住后的离店日期(最多总共入住天数不能超过9间夜) + _checkOut string + // 阿里旅行订单id,和outOrderId必须至少传入一个 + _tid int64 + // 卖家系统订单号,和tid必须至少传入一个 + _outOrderId string + // 延住房费,注意不包含原有的房费金额,单位为分 + _extendFee int64 + // 延住日期段的每日房价信息,注意不包括原有的日期房价 + _extendDailyPriceInfo string +} + +// 初始化TaobaoXhotelOrderAlipayfaceExtendAPIRequest对象 +func NewTaobaoXhotelOrderAlipayfaceExtendRequest() *TaobaoXhotelOrderAlipayfaceExtendAPIRequest{ + return &TaobaoXhotelOrderAlipayfaceExtendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.alipayface.extend" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CheckOut Setter +// 延住后的离店日期(最多总共入住天数不能超过9间夜) +func (r *TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetCheckOut(_checkOut string) error { + r._checkOut = _checkOut + r.Set("check_out", _checkOut) + return nil +} + +// CheckOut Getter +func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetCheckOut() string { + return r._checkOut +} +// Tid Setter +// 阿里旅行订单id,和outOrderId必须至少传入一个 +func (r *TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetTid() int64 { + return r._tid +} +// OutOrderId Setter +// 卖家系统订单号,和tid必须至少传入一个 +func (r *TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetOutOrderId(_outOrderId string) error { + r._outOrderId = _outOrderId + r.Set("out_order_id", _outOrderId) + return nil +} + +// OutOrderId Getter +func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetOutOrderId() string { + return r._outOrderId +} +// ExtendFee Setter +// 延住房费,注意不包含原有的房费金额,单位为分 +func (r *TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetExtendFee(_extendFee int64) error { + r._extendFee = _extendFee + r.Set("extend_fee", _extendFee) + return nil +} + +// ExtendFee Getter +func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetExtendFee() int64 { + return r._extendFee +} +// ExtendDailyPriceInfo Setter +// 延住日期段的每日房价信息,注意不包括原有的日期房价 +func (r *TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetExtendDailyPriceInfo(_extendDailyPriceInfo string) error { + r._extendDailyPriceInfo = _extendDailyPriceInfo + r.Set("extend_daily_price_info", _extendDailyPriceInfo) + return nil +} + +// ExtendDailyPriceInfo Getter +func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetExtendDailyPriceInfo() string { + return r._extendDailyPriceInfo +} diff --git a/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceExtendAPIResponse.go b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceExtendAPIResponse.go new file mode 100644 index 0000000000..b5b6e4a69e --- /dev/null +++ b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceExtendAPIResponse.go @@ -0,0 +1,27 @@ +package xhoteloffline + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +信用住订单延住接口 API返回值 +taobao.xhotel.order.alipayface.extend + +信用住订单延住接口,用于将已有的信用住支付订单checkOut和订单金额等更新 +*/ +type TaobaoXhotelOrderAlipayfaceExtendAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderAlipayfaceExtendAPIResponseModel +} + +// 信用住订单延住接口 成功返回结果 +type TaobaoXhotelOrderAlipayfaceExtendAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_alipayface_extend_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 出参成功 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceExtendResponse.go b/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceExtendResponse.go deleted file mode 100644 index 64142cd97c..0000000000 --- a/model/xhoteloffline/TaobaoXhotelOrderAlipayfaceExtendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhoteloffline - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -信用住订单延住接口 API返回值 -taobao.xhotel.order.alipayface.extend - -信用住订单延住接口,用于将已有的信用住支付订单checkOut和订单金额等更新 -*/ -type TaobaoXhotelOrderAlipayfaceExtendAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderAlipayfaceExtendResponse -} - -// 信用住订单延住接口 成功返回结果 -type TaobaoXhotelOrderAlipayfaceExtendResponse struct { - XMLName xml.Name `xml:"xhotel_order_alipayface_extend_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 出参成功 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhoteloffline/TaobaoXhotelOrderOfflineSettlePutAPIRequest.go b/model/xhoteloffline/TaobaoXhotelOrderOfflineSettlePutAPIRequest.go new file mode 100644 index 0000000000..3e0cf41d15 --- /dev/null +++ b/model/xhoteloffline/TaobaoXhotelOrderOfflineSettlePutAPIRequest.go @@ -0,0 +1,262 @@ +package xhoteloffline + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +线下信用住结账专用接口 API请求 +taobao.xhotel.order.offline.settle.put + +线下信用住结账专用接口 +*/ +type TaobaoXhotelOrderOfflineSettlePutAPIRequest struct { + model.Params + // 淘宝订单id,必须填写 + _tid int64 + // 房费总额(必须大于0) + _totalRoomFee int64 + // 杂费总额(不能为负数) + _otherFee int64 + // 杂费明细,如果otherFee>0则该字段必须设置,并和杂费金额相吻合 + _otherFeeDetail string + // 商家订单号 + _outId string + // 入住房间号 + _roomNo string + // 每日房价,json格式,如果房价和在阿里旅行下单时发生了变化,必须设置该字段.用于更新阿里旅行端的房价信息,涉及到对用户的优惠信息处理等环节(多间房的时候dailyPriceInfo留空) + _dailyPriceInfo string + // 实际离店日期,用于校验总房费收取 + _checkOut string + // 备注 + _memo string + // 房间明细列表 + _roomSettleInfoList []RoomSettleInfo + // 此金额是否包含担保金 0:默认值无意义;1:包含;2:不包含(多间房结账必须传入) + _containGuarantee int64 + // 结账请求流水号 + _outUuid string + // 请求结果通知地址(暂时无效,无需传入) + _notifyUrl string + // 应收金额,大于0时,直接按照此金额扣款,忽略房费和杂费金额(单位分) + _amount int64 + // 商家酒店编码 + _hotelCode string + // 系统商标识 + _vendor string +} + +// 初始化TaobaoXhotelOrderOfflineSettlePutAPIRequest对象 +func NewTaobaoXhotelOrderOfflineSettlePutRequest() *TaobaoXhotelOrderOfflineSettlePutAPIRequest{ + return &TaobaoXhotelOrderOfflineSettlePutAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.offline.settle.put" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 淘宝订单id,必须填写 +func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetTid() int64 { + return r._tid +} +// TotalRoomFee Setter +// 房费总额(必须大于0) +func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetTotalRoomFee(_totalRoomFee int64) error { + r._totalRoomFee = _totalRoomFee + r.Set("total_room_fee", _totalRoomFee) + return nil +} + +// TotalRoomFee Getter +func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetTotalRoomFee() int64 { + return r._totalRoomFee +} +// OtherFee Setter +// 杂费总额(不能为负数) +func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOtherFee(_otherFee int64) error { + r._otherFee = _otherFee + r.Set("other_fee", _otherFee) + return nil +} + +// OtherFee Getter +func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOtherFee() int64 { + return r._otherFee +} +// OtherFeeDetail Setter +// 杂费明细,如果otherFee>0则该字段必须设置,并和杂费金额相吻合 +func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOtherFeeDetail(_otherFeeDetail string) error { + r._otherFeeDetail = _otherFeeDetail + r.Set("other_fee_detail", _otherFeeDetail) + return nil +} + +// OtherFeeDetail Getter +func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOtherFeeDetail() string { + return r._otherFeeDetail +} +// OutId Setter +// 商家订单号 +func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOutId(_outId string) error { + r._outId = _outId + r.Set("out_id", _outId) + return nil +} + +// OutId Getter +func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOutId() string { + return r._outId +} +// RoomNo Setter +// 入住房间号 +func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetRoomNo(_roomNo string) error { + r._roomNo = _roomNo + r.Set("room_no", _roomNo) + return nil +} + +// RoomNo Getter +func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetRoomNo() string { + return r._roomNo +} +// DailyPriceInfo Setter +// 每日房价,json格式,如果房价和在阿里旅行下单时发生了变化,必须设置该字段.用于更新阿里旅行端的房价信息,涉及到对用户的优惠信息处理等环节(多间房的时候dailyPriceInfo留空) +func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetDailyPriceInfo(_dailyPriceInfo string) error { + r._dailyPriceInfo = _dailyPriceInfo + r.Set("daily_price_info", _dailyPriceInfo) + return nil +} + +// DailyPriceInfo Getter +func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetDailyPriceInfo() string { + return r._dailyPriceInfo +} +// CheckOut Setter +// 实际离店日期,用于校验总房费收取 +func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetCheckOut(_checkOut string) error { + r._checkOut = _checkOut + r.Set("check_out", _checkOut) + return nil +} + +// CheckOut Getter +func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetCheckOut() string { + return r._checkOut +} +// Memo Setter +// 备注 +func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetMemo(_memo string) error { + r._memo = _memo + r.Set("memo", _memo) + return nil +} + +// Memo Getter +func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetMemo() string { + return r._memo +} +// RoomSettleInfoList Setter +// 房间明细列表 +func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetRoomSettleInfoList(_roomSettleInfoList []RoomSettleInfo) error { + r._roomSettleInfoList = _roomSettleInfoList + r.Set("room_settle_info_list", _roomSettleInfoList) + return nil +} + +// RoomSettleInfoList Getter +func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetRoomSettleInfoList() []RoomSettleInfo { + return r._roomSettleInfoList +} +// ContainGuarantee Setter +// 此金额是否包含担保金 0:默认值无意义;1:包含;2:不包含(多间房结账必须传入) +func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetContainGuarantee(_containGuarantee int64) error { + r._containGuarantee = _containGuarantee + r.Set("contain_guarantee", _containGuarantee) + return nil +} + +// ContainGuarantee Getter +func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetContainGuarantee() int64 { + return r._containGuarantee +} +// OutUuid Setter +// 结账请求流水号 +func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOutUuid(_outUuid string) error { + r._outUuid = _outUuid + r.Set("out_uuid", _outUuid) + return nil +} + +// OutUuid Getter +func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOutUuid() string { + return r._outUuid +} +// NotifyUrl Setter +// 请求结果通知地址(暂时无效,无需传入) +func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetNotifyUrl(_notifyUrl string) error { + r._notifyUrl = _notifyUrl + r.Set("notify_url", _notifyUrl) + return nil +} + +// NotifyUrl Getter +func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetNotifyUrl() string { + return r._notifyUrl +} +// Amount Setter +// 应收金额,大于0时,直接按照此金额扣款,忽略房费和杂费金额(单位分) +func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetAmount(_amount int64) error { + r._amount = _amount + r.Set("amount", _amount) + return nil +} + +// Amount Getter +func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetAmount() int64 { + return r._amount +} +// HotelCode Setter +// 商家酒店编码 +func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetHotelCode(_hotelCode string) error { + r._hotelCode = _hotelCode + r.Set("hotel_code", _hotelCode) + return nil +} + +// HotelCode Getter +func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetHotelCode() string { + return r._hotelCode +} +// Vendor Setter +// 系统商标识 +func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetVendor() string { + return r._vendor +} diff --git a/model/xhoteloffline/TaobaoXhotelOrderOfflineSettlePutAPIResponse.go b/model/xhoteloffline/TaobaoXhotelOrderOfflineSettlePutAPIResponse.go new file mode 100644 index 0000000000..2b8e31078a --- /dev/null +++ b/model/xhoteloffline/TaobaoXhotelOrderOfflineSettlePutAPIResponse.go @@ -0,0 +1,27 @@ +package xhoteloffline + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +线下信用住结账专用接口 API返回值 +taobao.xhotel.order.offline.settle.put + +线下信用住结账专用接口 +*/ +type TaobaoXhotelOrderOfflineSettlePutAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderOfflineSettlePutAPIResponseModel +} + +// 线下信用住结账专用接口 成功返回结果 +type TaobaoXhotelOrderOfflineSettlePutAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_offline_settle_put_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回描述 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhoteloffline/TaobaoXhotelOrderOfflineSettlePutResponse.go b/model/xhoteloffline/TaobaoXhotelOrderOfflineSettlePutResponse.go deleted file mode 100644 index 1786e2409e..0000000000 --- a/model/xhoteloffline/TaobaoXhotelOrderOfflineSettlePutResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhoteloffline - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -线下信用住结账专用接口 API返回值 -taobao.xhotel.order.offline.settle.put - -线下信用住结账专用接口 -*/ -type TaobaoXhotelOrderOfflineSettlePutAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderOfflineSettlePutResponse -} - -// 线下信用住结账专用接口 成功返回结果 -type TaobaoXhotelOrderOfflineSettlePutResponse struct { - XMLName xml.Name `xml:"xhotel_order_offline_settle_put_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回描述 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelonlineorder/AlitripXhotelChannelNotifyAPIRequest.go b/model/xhotelonlineorder/AlitripXhotelChannelNotifyAPIRequest.go new file mode 100644 index 0000000000..61247485a4 --- /dev/null +++ b/model/xhotelonlineorder/AlitripXhotelChannelNotifyAPIRequest.go @@ -0,0 +1,52 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +分销渠道各类通知接口 API请求 +alitrip.xhotel.channel.notify + +分销渠道支付通知 +*/ +type AlitripXhotelChannelNotifyAPIRequest struct { + model.Params + // 通知类型查询条件 + _orderNotifyQuery *OrderNotifyQuery +} + +// 初始化AlitripXhotelChannelNotifyAPIRequest对象 +func NewAlitripXhotelChannelNotifyRequest() *AlitripXhotelChannelNotifyAPIRequest{ + return &AlitripXhotelChannelNotifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripXhotelChannelNotifyAPIRequest) GetApiMethodName() string { + return "alitrip.xhotel.channel.notify" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripXhotelChannelNotifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderNotifyQuery Setter +// 通知类型查询条件 +func (r *AlitripXhotelChannelNotifyAPIRequest) SetOrderNotifyQuery(_orderNotifyQuery *OrderNotifyQuery) error { + r._orderNotifyQuery = _orderNotifyQuery + r.Set("order_notify_query", _orderNotifyQuery) + return nil +} + +// OrderNotifyQuery Getter +func (r AlitripXhotelChannelNotifyAPIRequest) GetOrderNotifyQuery() *OrderNotifyQuery { + return r._orderNotifyQuery +} diff --git a/model/xhotelonlineorder/AlitripXhotelChannelNotifyAPIResponse.go b/model/xhotelonlineorder/AlitripXhotelChannelNotifyAPIResponse.go new file mode 100644 index 0000000000..cdf1b6a43d --- /dev/null +++ b/model/xhotelonlineorder/AlitripXhotelChannelNotifyAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +分销渠道各类通知接口 API返回值 +alitrip.xhotel.channel.notify + +分销渠道支付通知 +*/ +type AlitripXhotelChannelNotifyAPIResponse struct { + model.CommonResponse + AlitripXhotelChannelNotifyAPIResponseModel +} + +// 分销渠道各类通知接口 成功返回结果 +type AlitripXhotelChannelNotifyAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_xhotel_channel_notify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果信息 + Result *HbsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelonlineorder/AlitripXhotelChannelNotifyResponse.go b/model/xhotelonlineorder/AlitripXhotelChannelNotifyResponse.go deleted file mode 100644 index b758bf31ed..0000000000 --- a/model/xhotelonlineorder/AlitripXhotelChannelNotifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -分销渠道各类通知接口 API返回值 -alitrip.xhotel.channel.notify - -分销渠道支付通知 -*/ -type AlitripXhotelChannelNotifyAPIResponse struct { - model.CommonResponse - AlitripXhotelChannelNotifyResponse -} - -// 分销渠道各类通知接口 成功返回结果 -type AlitripXhotelChannelNotifyResponse struct { - XMLName xml.Name `xml:"alitrip_xhotel_channel_notify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果信息 - Result *HbsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelonlineorder/AlitripXhotelChannelOrderCreateAPIRequest.go b/model/xhotelonlineorder/AlitripXhotelChannelOrderCreateAPIRequest.go new file mode 100644 index 0000000000..8d59162c45 --- /dev/null +++ b/model/xhotelonlineorder/AlitripXhotelChannelOrderCreateAPIRequest.go @@ -0,0 +1,52 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道分销创建订单接口 API请求 +alitrip.xhotel.channel.order.create + +创建订单接口服务(如菲住等其他渠道分销提供) +*/ +type AlitripXhotelChannelOrderCreateAPIRequest struct { + model.Params + // 创建订单参数 + _outSourceOrderCreateReq *OutSourceOrderCreateReq +} + +// 初始化AlitripXhotelChannelOrderCreateAPIRequest对象 +func NewAlitripXhotelChannelOrderCreateRequest() *AlitripXhotelChannelOrderCreateAPIRequest{ + return &AlitripXhotelChannelOrderCreateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripXhotelChannelOrderCreateAPIRequest) GetApiMethodName() string { + return "alitrip.xhotel.channel.order.create" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripXhotelChannelOrderCreateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutSourceOrderCreateReq Setter +// 创建订单参数 +func (r *AlitripXhotelChannelOrderCreateAPIRequest) SetOutSourceOrderCreateReq(_outSourceOrderCreateReq *OutSourceOrderCreateReq) error { + r._outSourceOrderCreateReq = _outSourceOrderCreateReq + r.Set("out_source_order_create_req", _outSourceOrderCreateReq) + return nil +} + +// OutSourceOrderCreateReq Getter +func (r AlitripXhotelChannelOrderCreateAPIRequest) GetOutSourceOrderCreateReq() *OutSourceOrderCreateReq { + return r._outSourceOrderCreateReq +} diff --git a/model/xhotelonlineorder/AlitripXhotelChannelOrderCreateAPIResponse.go b/model/xhotelonlineorder/AlitripXhotelChannelOrderCreateAPIResponse.go new file mode 100644 index 0000000000..41ba03e930 --- /dev/null +++ b/model/xhotelonlineorder/AlitripXhotelChannelOrderCreateAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +渠道分销创建订单接口 API返回值 +alitrip.xhotel.channel.order.create + +创建订单接口服务(如菲住等其他渠道分销提供) +*/ +type AlitripXhotelChannelOrderCreateAPIResponse struct { + model.CommonResponse + AlitripXhotelChannelOrderCreateAPIResponseModel +} + +// 渠道分销创建订单接口 成功返回结果 +type AlitripXhotelChannelOrderCreateAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_xhotel_channel_order_create_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *HbsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelonlineorder/AlitripXhotelChannelOrderCreateResponse.go b/model/xhotelonlineorder/AlitripXhotelChannelOrderCreateResponse.go deleted file mode 100644 index 406c270d57..0000000000 --- a/model/xhotelonlineorder/AlitripXhotelChannelOrderCreateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -渠道分销创建订单接口 API返回值 -alitrip.xhotel.channel.order.create - -创建订单接口服务(如菲住等其他渠道分销提供) -*/ -type AlitripXhotelChannelOrderCreateAPIResponse struct { - model.CommonResponse - AlitripXhotelChannelOrderCreateResponse -} - -// 渠道分销创建订单接口 成功返回结果 -type AlitripXhotelChannelOrderCreateResponse struct { - XMLName xml.Name `xml:"alitrip_xhotel_channel_order_create_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *HbsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelonlineorder/AlitripXhotelChannelOrderMembertypeSyncAPIRequest.go b/model/xhotelonlineorder/AlitripXhotelChannelOrderMembertypeSyncAPIRequest.go new file mode 100644 index 0000000000..e0fc21af12 --- /dev/null +++ b/model/xhotelonlineorder/AlitripXhotelChannelOrderMembertypeSyncAPIRequest.go @@ -0,0 +1,52 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店分销渠道会员类型同步 API请求 +alitrip.xhotel.channel.order.membertype.sync + +酒店分销渠道会员类型同步 +*/ +type AlitripXhotelChannelOrderMembertypeSyncAPIRequest struct { + model.Params + // 入参 + _channelSyncOrderMemberType *ChannelSyncOrderMemberType +} + +// 初始化AlitripXhotelChannelOrderMembertypeSyncAPIRequest对象 +func NewAlitripXhotelChannelOrderMembertypeSyncRequest() *AlitripXhotelChannelOrderMembertypeSyncAPIRequest{ + return &AlitripXhotelChannelOrderMembertypeSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlitripXhotelChannelOrderMembertypeSyncAPIRequest) GetApiMethodName() string { + return "alitrip.xhotel.channel.order.membertype.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r AlitripXhotelChannelOrderMembertypeSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChannelSyncOrderMemberType Setter +// 入参 +func (r *AlitripXhotelChannelOrderMembertypeSyncAPIRequest) SetChannelSyncOrderMemberType(_channelSyncOrderMemberType *ChannelSyncOrderMemberType) error { + r._channelSyncOrderMemberType = _channelSyncOrderMemberType + r.Set("channel_sync_order_member_type", _channelSyncOrderMemberType) + return nil +} + +// ChannelSyncOrderMemberType Getter +func (r AlitripXhotelChannelOrderMembertypeSyncAPIRequest) GetChannelSyncOrderMemberType() *ChannelSyncOrderMemberType { + return r._channelSyncOrderMemberType +} diff --git a/model/xhotelonlineorder/AlitripXhotelChannelOrderMembertypeSyncAPIResponse.go b/model/xhotelonlineorder/AlitripXhotelChannelOrderMembertypeSyncAPIResponse.go new file mode 100644 index 0000000000..54e52ff441 --- /dev/null +++ b/model/xhotelonlineorder/AlitripXhotelChannelOrderMembertypeSyncAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店分销渠道会员类型同步 API返回值 +alitrip.xhotel.channel.order.membertype.sync + +酒店分销渠道会员类型同步 +*/ +type AlitripXhotelChannelOrderMembertypeSyncAPIResponse struct { + model.CommonResponse + AlitripXhotelChannelOrderMembertypeSyncAPIResponseModel +} + +// 酒店分销渠道会员类型同步 成功返回结果 +type AlitripXhotelChannelOrderMembertypeSyncAPIResponseModel struct { + XMLName xml.Name `xml:"alitrip_xhotel_channel_order_membertype_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *HbsResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelonlineorder/AlitripXhotelChannelOrderMembertypeSyncResponse.go b/model/xhotelonlineorder/AlitripXhotelChannelOrderMembertypeSyncResponse.go deleted file mode 100644 index ac4e2e8520..0000000000 --- a/model/xhotelonlineorder/AlitripXhotelChannelOrderMembertypeSyncResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店分销渠道会员类型同步 API返回值 -alitrip.xhotel.channel.order.membertype.sync - -酒店分销渠道会员类型同步 -*/ -type AlitripXhotelChannelOrderMembertypeSyncAPIResponse struct { - model.CommonResponse - AlitripXhotelChannelOrderMembertypeSyncResponse -} - -// 酒店分销渠道会员类型同步 成功返回结果 -type AlitripXhotelChannelOrderMembertypeSyncResponse struct { - XMLName xml.Name `xml:"alitrip_xhotel_channel_order_membertype_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *HbsResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceListVtwoAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceListVtwoAPIRequest.go new file mode 100644 index 0000000000..22a1b02bad --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceListVtwoAPIRequest.go @@ -0,0 +1,38 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +用户常用发票信息查询接口 API请求 +taobao.xhotel.commoninvoice.list.vtwo + +获取用户常用发票信息接口 +*/ +type TaobaoXhotelCommoninvoiceListVtwoAPIRequest struct { + model.Params +} + +// 初始化TaobaoXhotelCommoninvoiceListVtwoAPIRequest对象 +func NewTaobaoXhotelCommoninvoiceListVtwoRequest() *TaobaoXhotelCommoninvoiceListVtwoAPIRequest{ + return &TaobaoXhotelCommoninvoiceListVtwoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelCommoninvoiceListVtwoAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.commoninvoice.list.vtwo" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelCommoninvoiceListVtwoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceListVtwoAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceListVtwoAPIResponse.go new file mode 100644 index 0000000000..e0e15a770b --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceListVtwoAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +用户常用发票信息查询接口 API返回值 +taobao.xhotel.commoninvoice.list.vtwo + +获取用户常用发票信息接口 +*/ +type TaobaoXhotelCommoninvoiceListVtwoAPIResponse struct { + model.CommonResponse + TaobaoXhotelCommoninvoiceListVtwoAPIResponseModel +} + +// 用户常用发票信息查询接口 成功返回结果 +type TaobaoXhotelCommoninvoiceListVtwoAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_commoninvoice_list_vtwo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果集 + Result *TaobaoXhotelCommoninvoiceListVtwoResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceListVtwoResponse.go b/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceListVtwoResponse.go deleted file mode 100644 index 224937bb57..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceListVtwoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -用户常用发票信息查询接口 API返回值 -taobao.xhotel.commoninvoice.list.vtwo - -获取用户常用发票信息接口 -*/ -type TaobaoXhotelCommoninvoiceListVtwoAPIResponse struct { - model.CommonResponse - TaobaoXhotelCommoninvoiceListVtwoResponse -} - -// 用户常用发票信息查询接口 成功返回结果 -type TaobaoXhotelCommoninvoiceListVtwoResponse struct { - XMLName xml.Name `xml:"xhotel_commoninvoice_list_vtwo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果集 - Result *TaobaoXhotelCommoninvoiceListVtwoResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceRemoveAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceRemoveAPIRequest.go new file mode 100644 index 0000000000..d64e9e56b6 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceRemoveAPIRequest.go @@ -0,0 +1,66 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +常用发票信息删除接口 API请求 +taobao.xhotel.commoninvoice.remove + +常用发票信息删除接口 +*/ +type TaobaoXhotelCommoninvoiceRemoveAPIRequest struct { + model.Params + // 发票id + _invoiceId int64 + // 用户名 + _userNick string +} + +// 初始化TaobaoXhotelCommoninvoiceRemoveAPIRequest对象 +func NewTaobaoXhotelCommoninvoiceRemoveRequest() *TaobaoXhotelCommoninvoiceRemoveAPIRequest{ + return &TaobaoXhotelCommoninvoiceRemoveAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelCommoninvoiceRemoveAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.commoninvoice.remove" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelCommoninvoiceRemoveAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InvoiceId Setter +// 发票id +func (r *TaobaoXhotelCommoninvoiceRemoveAPIRequest) SetInvoiceId(_invoiceId int64) error { + r._invoiceId = _invoiceId + r.Set("invoice_id", _invoiceId) + return nil +} + +// InvoiceId Getter +func (r TaobaoXhotelCommoninvoiceRemoveAPIRequest) GetInvoiceId() int64 { + return r._invoiceId +} +// UserNick Setter +// 用户名 +func (r *TaobaoXhotelCommoninvoiceRemoveAPIRequest) SetUserNick(_userNick string) error { + r._userNick = _userNick + r.Set("user_nick", _userNick) + return nil +} + +// UserNick Getter +func (r TaobaoXhotelCommoninvoiceRemoveAPIRequest) GetUserNick() string { + return r._userNick +} diff --git a/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceRemoveAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceRemoveAPIResponse.go new file mode 100644 index 0000000000..04f4d0a1b3 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceRemoveAPIResponse.go @@ -0,0 +1,31 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +常用发票信息删除接口 API返回值 +taobao.xhotel.commoninvoice.remove + +常用发票信息删除接口 +*/ +type TaobaoXhotelCommoninvoiceRemoveAPIResponse struct { + model.CommonResponse + TaobaoXhotelCommoninvoiceRemoveAPIResponseModel +} + +// 常用发票信息删除接口 成功返回结果 +type TaobaoXhotelCommoninvoiceRemoveAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_commoninvoice_remove_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + Issuccess bool `json:"issuccess,omitempty" xml:"issuccess,omitempty"` + // errorCode + Errcode string `json:"errcode,omitempty" xml:"errcode,omitempty"` + // errorMsg + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceRemoveResponse.go b/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceRemoveResponse.go deleted file mode 100644 index a3c9dae423..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceRemoveResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -常用发票信息删除接口 API返回值 -taobao.xhotel.commoninvoice.remove - -常用发票信息删除接口 -*/ -type TaobaoXhotelCommoninvoiceRemoveAPIResponse struct { - model.CommonResponse - TaobaoXhotelCommoninvoiceRemoveResponse -} - -// 常用发票信息删除接口 成功返回结果 -type TaobaoXhotelCommoninvoiceRemoveResponse struct { - XMLName xml.Name `xml:"xhotel_commoninvoice_remove_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - Issuccess bool `json:"issuccess,omitempty" xml:"issuccess,omitempty"` - // errorCode - Errcode string `json:"errcode,omitempty" xml:"errcode,omitempty"` - // errorMsg - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceUpdateAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceUpdateAPIRequest.go new file mode 100644 index 0000000000..3e0a01a566 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +常用发票信息更新接口 API请求 +taobao.xhotel.commoninvoice.update + +常用发票信息更新接口(根据用户id,发票抬头和发票属性或发票id进行更新,没有则添加) +*/ +type TaobaoXhotelCommoninvoiceUpdateAPIRequest struct { + model.Params + // 无 + _commonInvoiceInfoParam *CommonInvoiceInfo +} + +// 初始化TaobaoXhotelCommoninvoiceUpdateAPIRequest对象 +func NewTaobaoXhotelCommoninvoiceUpdateRequest() *TaobaoXhotelCommoninvoiceUpdateAPIRequest{ + return &TaobaoXhotelCommoninvoiceUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelCommoninvoiceUpdateAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.commoninvoice.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelCommoninvoiceUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CommonInvoiceInfoParam Setter +// 无 +func (r *TaobaoXhotelCommoninvoiceUpdateAPIRequest) SetCommonInvoiceInfoParam(_commonInvoiceInfoParam *CommonInvoiceInfo) error { + r._commonInvoiceInfoParam = _commonInvoiceInfoParam + r.Set("common_invoice_info_param", _commonInvoiceInfoParam) + return nil +} + +// CommonInvoiceInfoParam Getter +func (r TaobaoXhotelCommoninvoiceUpdateAPIRequest) GetCommonInvoiceInfoParam() *CommonInvoiceInfo { + return r._commonInvoiceInfoParam +} diff --git a/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceUpdateAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceUpdateAPIResponse.go new file mode 100644 index 0000000000..0c0901225e --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceUpdateAPIResponse.go @@ -0,0 +1,31 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +常用发票信息更新接口 API返回值 +taobao.xhotel.commoninvoice.update + +常用发票信息更新接口(根据用户id,发票抬头和发票属性或发票id进行更新,没有则添加) +*/ +type TaobaoXhotelCommoninvoiceUpdateAPIResponse struct { + model.CommonResponse + TaobaoXhotelCommoninvoiceUpdateAPIResponseModel +} + +// 常用发票信息更新接口 成功返回结果 +type TaobaoXhotelCommoninvoiceUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_commoninvoice_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + Issuccess bool `json:"issuccess,omitempty" xml:"issuccess,omitempty"` + // errorCode + Errcode string `json:"errcode,omitempty" xml:"errcode,omitempty"` + // errorMsg + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceUpdateResponse.go b/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceUpdateResponse.go deleted file mode 100644 index 3fea606ae4..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelCommoninvoiceUpdateResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -常用发票信息更新接口 API返回值 -taobao.xhotel.commoninvoice.update - -常用发票信息更新接口(根据用户id,发票抬头和发票属性或发票id进行更新,没有则添加) -*/ -type TaobaoXhotelCommoninvoiceUpdateAPIResponse struct { - model.CommonResponse - TaobaoXhotelCommoninvoiceUpdateResponse -} - -// 常用发票信息更新接口 成功返回结果 -type TaobaoXhotelCommoninvoiceUpdateResponse struct { - XMLName xml.Name `xml:"xhotel_commoninvoice_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - Issuccess bool `json:"issuccess,omitempty" xml:"issuccess,omitempty"` - // errorCode - Errcode string `json:"errcode,omitempty" xml:"errcode,omitempty"` - // errorMsg - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelFastinvoiceCompleteAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelFastinvoiceCompleteAPIRequest.go new file mode 100644 index 0000000000..410c4298bf --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelFastinvoiceCompleteAPIRequest.go @@ -0,0 +1,52 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +极速开票开票请求完成 API请求 +taobao.xhotel.fastinvoice.complete + +极速开票开票请求回传,用于更新航信开票请求数据 +*/ +type TaobaoXhotelFastinvoiceCompleteAPIRequest struct { + model.Params + // 无 + _invoiceInfoParam *InvoiceInfoParam +} + +// 初始化TaobaoXhotelFastinvoiceCompleteAPIRequest对象 +func NewTaobaoXhotelFastinvoiceCompleteRequest() *TaobaoXhotelFastinvoiceCompleteAPIRequest{ + return &TaobaoXhotelFastinvoiceCompleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelFastinvoiceCompleteAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.fastinvoice.complete" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelFastinvoiceCompleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InvoiceInfoParam Setter +// 无 +func (r *TaobaoXhotelFastinvoiceCompleteAPIRequest) SetInvoiceInfoParam(_invoiceInfoParam *InvoiceInfoParam) error { + r._invoiceInfoParam = _invoiceInfoParam + r.Set("invoice_info_param", _invoiceInfoParam) + return nil +} + +// InvoiceInfoParam Getter +func (r TaobaoXhotelFastinvoiceCompleteAPIRequest) GetInvoiceInfoParam() *InvoiceInfoParam { + return r._invoiceInfoParam +} diff --git a/model/xhotelonlineorder/TaobaoXhotelFastinvoiceCompleteAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelFastinvoiceCompleteAPIResponse.go new file mode 100644 index 0000000000..9873a73ae5 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelFastinvoiceCompleteAPIResponse.go @@ -0,0 +1,31 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +极速开票开票请求完成 API返回值 +taobao.xhotel.fastinvoice.complete + +极速开票开票请求回传,用于更新航信开票请求数据 +*/ +type TaobaoXhotelFastinvoiceCompleteAPIResponse struct { + model.CommonResponse + TaobaoXhotelFastinvoiceCompleteAPIResponseModel +} + +// 极速开票开票请求完成 成功返回结果 +type TaobaoXhotelFastinvoiceCompleteAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_fastinvoice_complete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + Issuccess bool `json:"issuccess,omitempty" xml:"issuccess,omitempty"` + // errorCode + Errcode string `json:"errcode,omitempty" xml:"errcode,omitempty"` + // errorMsg + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelFastinvoiceCompleteResponse.go b/model/xhotelonlineorder/TaobaoXhotelFastinvoiceCompleteResponse.go deleted file mode 100644 index 6ffda7dd8c..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelFastinvoiceCompleteResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -极速开票开票请求完成 API返回值 -taobao.xhotel.fastinvoice.complete - -极速开票开票请求回传,用于更新航信开票请求数据 -*/ -type TaobaoXhotelFastinvoiceCompleteAPIResponse struct { - model.CommonResponse - TaobaoXhotelFastinvoiceCompleteResponse -} - -// 极速开票开票请求完成 成功返回结果 -type TaobaoXhotelFastinvoiceCompleteResponse struct { - XMLName xml.Name `xml:"xhotel_fastinvoice_complete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - Issuccess bool `json:"issuccess,omitempty" xml:"issuccess,omitempty"` - // errorCode - Errcode string `json:"errcode,omitempty" xml:"errcode,omitempty"` - // errorMsg - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelFastinvoiceRequestAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelFastinvoiceRequestAPIRequest.go new file mode 100644 index 0000000000..b26282479b --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelFastinvoiceRequestAPIRequest.go @@ -0,0 +1,52 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +极速开票开票请求回传 API请求 +taobao.xhotel.fastinvoice.request + +极速开票开票请求回传,用于记录航信开票请求数据 +*/ +type TaobaoXhotelFastinvoiceRequestAPIRequest struct { + model.Params + // 无 + _invoiceInfoParam *InvoiceInfoParam +} + +// 初始化TaobaoXhotelFastinvoiceRequestAPIRequest对象 +func NewTaobaoXhotelFastinvoiceRequestRequest() *TaobaoXhotelFastinvoiceRequestAPIRequest{ + return &TaobaoXhotelFastinvoiceRequestAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelFastinvoiceRequestAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.fastinvoice.request" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelFastinvoiceRequestAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// InvoiceInfoParam Setter +// 无 +func (r *TaobaoXhotelFastinvoiceRequestAPIRequest) SetInvoiceInfoParam(_invoiceInfoParam *InvoiceInfoParam) error { + r._invoiceInfoParam = _invoiceInfoParam + r.Set("invoice_info_param", _invoiceInfoParam) + return nil +} + +// InvoiceInfoParam Getter +func (r TaobaoXhotelFastinvoiceRequestAPIRequest) GetInvoiceInfoParam() *InvoiceInfoParam { + return r._invoiceInfoParam +} diff --git a/model/xhotelonlineorder/TaobaoXhotelFastinvoiceRequestAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelFastinvoiceRequestAPIResponse.go new file mode 100644 index 0000000000..ac34ee09c6 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelFastinvoiceRequestAPIResponse.go @@ -0,0 +1,31 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +极速开票开票请求回传 API返回值 +taobao.xhotel.fastinvoice.request + +极速开票开票请求回传,用于记录航信开票请求数据 +*/ +type TaobaoXhotelFastinvoiceRequestAPIResponse struct { + model.CommonResponse + TaobaoXhotelFastinvoiceRequestAPIResponseModel +} + +// 极速开票开票请求回传 成功返回结果 +type TaobaoXhotelFastinvoiceRequestAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_fastinvoice_request_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // success + Issuccess bool `json:"issuccess,omitempty" xml:"issuccess,omitempty"` + // errorCode + Errcode string `json:"errcode,omitempty" xml:"errcode,omitempty"` + // errorMsg + Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelFastinvoiceRequestResponse.go b/model/xhotelonlineorder/TaobaoXhotelFastinvoiceRequestResponse.go deleted file mode 100644 index 7df52a6374..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelFastinvoiceRequestResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -极速开票开票请求回传 API返回值 -taobao.xhotel.fastinvoice.request - -极速开票开票请求回传,用于记录航信开票请求数据 -*/ -type TaobaoXhotelFastinvoiceRequestAPIResponse struct { - model.CommonResponse - TaobaoXhotelFastinvoiceRequestResponse -} - -// 极速开票开票请求回传 成功返回结果 -type TaobaoXhotelFastinvoiceRequestResponse struct { - XMLName xml.Name `xml:"xhotel_fastinvoice_request_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // success - Issuccess bool `json:"issuccess,omitempty" xml:"issuccess,omitempty"` - // errorCode - Errcode string `json:"errcode,omitempty" xml:"errcode,omitempty"` - // errorMsg - Errmsg string `json:"errmsg,omitempty" xml:"errmsg,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelFutureSoftmodifyAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelFutureSoftmodifyAPIRequest.go new file mode 100644 index 0000000000..cc3aaf797b --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelFutureSoftmodifyAPIRequest.go @@ -0,0 +1,150 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +未来酒店信息下发 API请求 +taobao.xhotel.future.softmodify + +未来酒店信息下发,包含PMS订单查询和自助入住 +*/ +type TaobaoXhotelFutureSoftmodifyAPIRequest struct { + model.Params + // 超时时长,默认3s + _expireTime int64 + // 淘宝订单号 + _tid int64 + // 外部订单号 + _outOrderId string + // 酒店code + _hotelCode string + // 酒店Id + _hid int64 + // 请求报文 + _context string + // 操作类型 + _operateType string + // 请求唯一标识值 + _requestId string +} + +// 初始化TaobaoXhotelFutureSoftmodifyAPIRequest对象 +func NewTaobaoXhotelFutureSoftmodifyRequest() *TaobaoXhotelFutureSoftmodifyAPIRequest{ + return &TaobaoXhotelFutureSoftmodifyAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelFutureSoftmodifyAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.future.softmodify" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelFutureSoftmodifyAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ExpireTime Setter +// 超时时长,默认3s +func (r *TaobaoXhotelFutureSoftmodifyAPIRequest) SetExpireTime(_expireTime int64) error { + r._expireTime = _expireTime + r.Set("expire_time", _expireTime) + return nil +} + +// ExpireTime Getter +func (r TaobaoXhotelFutureSoftmodifyAPIRequest) GetExpireTime() int64 { + return r._expireTime +} +// Tid Setter +// 淘宝订单号 +func (r *TaobaoXhotelFutureSoftmodifyAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoXhotelFutureSoftmodifyAPIRequest) GetTid() int64 { + return r._tid +} +// OutOrderId Setter +// 外部订单号 +func (r *TaobaoXhotelFutureSoftmodifyAPIRequest) SetOutOrderId(_outOrderId string) error { + r._outOrderId = _outOrderId + r.Set("out_order_id", _outOrderId) + return nil +} + +// OutOrderId Getter +func (r TaobaoXhotelFutureSoftmodifyAPIRequest) GetOutOrderId() string { + return r._outOrderId +} +// HotelCode Setter +// 酒店code +func (r *TaobaoXhotelFutureSoftmodifyAPIRequest) SetHotelCode(_hotelCode string) error { + r._hotelCode = _hotelCode + r.Set("hotel_code", _hotelCode) + return nil +} + +// HotelCode Getter +func (r TaobaoXhotelFutureSoftmodifyAPIRequest) GetHotelCode() string { + return r._hotelCode +} +// Hid Setter +// 酒店Id +func (r *TaobaoXhotelFutureSoftmodifyAPIRequest) SetHid(_hid int64) error { + r._hid = _hid + r.Set("hid", _hid) + return nil +} + +// Hid Getter +func (r TaobaoXhotelFutureSoftmodifyAPIRequest) GetHid() int64 { + return r._hid +} +// Context Setter +// 请求报文 +func (r *TaobaoXhotelFutureSoftmodifyAPIRequest) SetContext(_context string) error { + r._context = _context + r.Set("context", _context) + return nil +} + +// Context Getter +func (r TaobaoXhotelFutureSoftmodifyAPIRequest) GetContext() string { + return r._context +} +// OperateType Setter +// 操作类型 +func (r *TaobaoXhotelFutureSoftmodifyAPIRequest) SetOperateType(_operateType string) error { + r._operateType = _operateType + r.Set("operate_type", _operateType) + return nil +} + +// OperateType Getter +func (r TaobaoXhotelFutureSoftmodifyAPIRequest) GetOperateType() string { + return r._operateType +} +// RequestId Setter +// 请求唯一标识值 +func (r *TaobaoXhotelFutureSoftmodifyAPIRequest) SetRequestId(_requestId string) error { + r._requestId = _requestId + r.Set("request_id", _requestId) + return nil +} + +// RequestId Getter +func (r TaobaoXhotelFutureSoftmodifyAPIRequest) GetRequestId() string { + return r._requestId +} diff --git a/model/xhotelonlineorder/TaobaoXhotelFutureSoftmodifyAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelFutureSoftmodifyAPIResponse.go new file mode 100644 index 0000000000..235ddf9b18 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelFutureSoftmodifyAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +未来酒店信息下发 API返回值 +taobao.xhotel.future.softmodify + +未来酒店信息下发,包含PMS订单查询和自助入住 +*/ +type TaobaoXhotelFutureSoftmodifyAPIResponse struct { + model.CommonResponse + TaobaoXhotelFutureSoftmodifyAPIResponseModel +} + +// 未来酒店信息下发 成功返回结果 +type TaobaoXhotelFutureSoftmodifyAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_future_softmodify_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求报文示例:https://open.alitrip.com/docs/doc.htm?spm=a21tt.7629140.0.0.Q8jazn&docType=1&articleId=104398中的自助入住请求示例(升级版)和酒店PMS信息查询 响应报文示例:https://open.alitrip.com/docs/doc.htm?docType=1&articleId=106153中的自助checkIn订单信息上传和通用PMS结果查询结果 + Context string `json:"context,omitempty" xml:"context,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelFutureSoftmodifyResponse.go b/model/xhotelonlineorder/TaobaoXhotelFutureSoftmodifyResponse.go deleted file mode 100644 index 682c051c1f..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelFutureSoftmodifyResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -未来酒店信息下发 API返回值 -taobao.xhotel.future.softmodify - -未来酒店信息下发,包含PMS订单查询和自助入住 -*/ -type TaobaoXhotelFutureSoftmodifyAPIResponse struct { - model.CommonResponse - TaobaoXhotelFutureSoftmodifyResponse -} - -// 未来酒店信息下发 成功返回结果 -type TaobaoXhotelFutureSoftmodifyResponse struct { - XMLName xml.Name `xml:"xhotel_future_softmodify_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求报文示例:https://open.alitrip.com/docs/doc.htm?spm=a21tt.7629140.0.0.Q8jazn&docType=1&articleId=104398中的自助入住请求示例(升级版)和酒店PMS信息查询 响应报文示例:https://open.alitrip.com/docs/doc.htm?docType=1&articleId=106153中的自助checkIn订单信息上传和通用PMS结果查询结果 - Context string `json:"context,omitempty" xml:"context,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelIntlRateUpdateAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelIntlRateUpdateAPIRequest.go new file mode 100644 index 0000000000..7b60a0dd53 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelIntlRateUpdateAPIRequest.go @@ -0,0 +1,52 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +不落库商家推送更新酒店rate API请求 +taobao.xhotel.intl.rate.update + +商家主动推送不落库商品的酒店信息 +*/ +type TaobaoXhotelIntlRateUpdateAPIRequest struct { + model.Params + // rate更新参数 + _updateRateParam *UpdateRateParam +} + +// 初始化TaobaoXhotelIntlRateUpdateAPIRequest对象 +func NewTaobaoXhotelIntlRateUpdateRequest() *TaobaoXhotelIntlRateUpdateAPIRequest{ + return &TaobaoXhotelIntlRateUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelIntlRateUpdateAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.intl.rate.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelIntlRateUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// UpdateRateParam Setter +// rate更新参数 +func (r *TaobaoXhotelIntlRateUpdateAPIRequest) SetUpdateRateParam(_updateRateParam *UpdateRateParam) error { + r._updateRateParam = _updateRateParam + r.Set("update_rate_param", _updateRateParam) + return nil +} + +// UpdateRateParam Getter +func (r TaobaoXhotelIntlRateUpdateAPIRequest) GetUpdateRateParam() *UpdateRateParam { + return r._updateRateParam +} diff --git a/model/xhotelonlineorder/TaobaoXhotelIntlRateUpdateAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelIntlRateUpdateAPIResponse.go new file mode 100644 index 0000000000..7e02e2fd37 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelIntlRateUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +不落库商家推送更新酒店rate API返回值 +taobao.xhotel.intl.rate.update + +商家主动推送不落库商品的酒店信息 +*/ +type TaobaoXhotelIntlRateUpdateAPIResponse struct { + model.CommonResponse + TaobaoXhotelIntlRateUpdateAPIResponseModel +} + +// 不落库商家推送更新酒店rate 成功返回结果 +type TaobaoXhotelIntlRateUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_intl_rate_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果集 + Result *TaobaoXhotelIntlRateUpdateResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelIntlRateUpdateResponse.go b/model/xhotelonlineorder/TaobaoXhotelIntlRateUpdateResponse.go deleted file mode 100644 index ab0b9d133f..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelIntlRateUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -不落库商家推送更新酒店rate API返回值 -taobao.xhotel.intl.rate.update - -商家主动推送不落库商品的酒店信息 -*/ -type TaobaoXhotelIntlRateUpdateAPIResponse struct { - model.CommonResponse - TaobaoXhotelIntlRateUpdateResponse -} - -// 不落库商家推送更新酒店rate 成功返回结果 -type TaobaoXhotelIntlRateUpdateResponse struct { - XMLName xml.Name `xml:"xhotel_intl_rate_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果集 - Result *TaobaoXhotelIntlRateUpdateResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelMemberrightUpdateAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelMemberrightUpdateAPIRequest.go new file mode 100644 index 0000000000..a601bb8f48 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelMemberrightUpdateAPIRequest.go @@ -0,0 +1,80 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店会员权益更新操作 API请求 +taobao.xhotel.memberright.update + +当用户在搜索酒店时,我们需要根据用户是否可享有某项权益来进行相应价格的展示或隐藏,因此我们在酒店搜索时就需要判断用户是否享有某项权益。而由于酒店搜索频率过高,为提高搜索性能并降低第三方接口压力,当用户在搜索酒店时,淘宝会通过读取淘宝本地缓存的用户相关权益信息来进行判断。为提高缓存的准确性,当第三方有用户相关权益有变化时,通过调用淘宝此接口来更新淘宝本地缓存。此接口需要采用Top方式调用。 +*/ +type TaobaoXhotelMemberrightUpdateAPIRequest struct { + model.Params + // 淘宝用户id + _taobaoUserId int64 + // 表示用户是否有对应的权益,取值范围true、false + _hasRight bool + // 会员权益类型,1表示首住权益 + _rightType int64 +} + +// 初始化TaobaoXhotelMemberrightUpdateAPIRequest对象 +func NewTaobaoXhotelMemberrightUpdateRequest() *TaobaoXhotelMemberrightUpdateAPIRequest{ + return &TaobaoXhotelMemberrightUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelMemberrightUpdateAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.memberright.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelMemberrightUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TaobaoUserId Setter +// 淘宝用户id +func (r *TaobaoXhotelMemberrightUpdateAPIRequest) SetTaobaoUserId(_taobaoUserId int64) error { + r._taobaoUserId = _taobaoUserId + r.Set("taobao_user_id", _taobaoUserId) + return nil +} + +// TaobaoUserId Getter +func (r TaobaoXhotelMemberrightUpdateAPIRequest) GetTaobaoUserId() int64 { + return r._taobaoUserId +} +// HasRight Setter +// 表示用户是否有对应的权益,取值范围true、false +func (r *TaobaoXhotelMemberrightUpdateAPIRequest) SetHasRight(_hasRight bool) error { + r._hasRight = _hasRight + r.Set("has_right", _hasRight) + return nil +} + +// HasRight Getter +func (r TaobaoXhotelMemberrightUpdateAPIRequest) GetHasRight() bool { + return r._hasRight +} +// RightType Setter +// 会员权益类型,1表示首住权益 +func (r *TaobaoXhotelMemberrightUpdateAPIRequest) SetRightType(_rightType int64) error { + r._rightType = _rightType + r.Set("right_type", _rightType) + return nil +} + +// RightType Getter +func (r TaobaoXhotelMemberrightUpdateAPIRequest) GetRightType() int64 { + return r._rightType +} diff --git a/model/xhotelonlineorder/TaobaoXhotelMemberrightUpdateAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelMemberrightUpdateAPIResponse.go new file mode 100644 index 0000000000..b04c8dcaa4 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelMemberrightUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店会员权益更新操作 API返回值 +taobao.xhotel.memberright.update + +当用户在搜索酒店时,我们需要根据用户是否可享有某项权益来进行相应价格的展示或隐藏,因此我们在酒店搜索时就需要判断用户是否享有某项权益。而由于酒店搜索频率过高,为提高搜索性能并降低第三方接口压力,当用户在搜索酒店时,淘宝会通过读取淘宝本地缓存的用户相关权益信息来进行判断。为提高缓存的准确性,当第三方有用户相关权益有变化时,通过调用淘宝此接口来更新淘宝本地缓存。此接口需要采用Top方式调用。 +*/ +type TaobaoXhotelMemberrightUpdateAPIResponse struct { + model.CommonResponse + TaobaoXhotelMemberrightUpdateAPIResponseModel +} + +// 酒店会员权益更新操作 成功返回结果 +type TaobaoXhotelMemberrightUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_memberright_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelMemberrightUpdateResponse.go b/model/xhotelonlineorder/TaobaoXhotelMemberrightUpdateResponse.go deleted file mode 100644 index a63a000579..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelMemberrightUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店会员权益更新操作 API返回值 -taobao.xhotel.memberright.update - -当用户在搜索酒店时,我们需要根据用户是否可享有某项权益来进行相应价格的展示或隐藏,因此我们在酒店搜索时就需要判断用户是否享有某项权益。而由于酒店搜索频率过高,为提高搜索性能并降低第三方接口压力,当用户在搜索酒店时,淘宝会通过读取淘宝本地缓存的用户相关权益信息来进行判断。为提高缓存的准确性,当第三方有用户相关权益有变化时,通过调用淘宝此接口来更新淘宝本地缓存。此接口需要采用Top方式调用。 -*/ -type TaobaoXhotelMemberrightUpdateAPIResponse struct { - model.CommonResponse - TaobaoXhotelMemberrightUpdateResponse -} - -// 酒店会员权益更新操作 成功返回结果 -type TaobaoXhotelMemberrightUpdateResponse struct { - XMLName xml.Name `xml:"xhotel_memberright_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceCancelsettleAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceCancelsettleAPIRequest.go new file mode 100644 index 0000000000..8e2ae6c798 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceCancelsettleAPIRequest.go @@ -0,0 +1,80 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +信用住订单取消结算接口 API请求 +taobao.xhotel.order.alipayface.cancelsettle + +信用住订单由于客人为出现等原因,最终取消结算,一定要在结算后2个小时之内调用,否则不会成功。 +*/ +type TaobaoXhotelOrderAlipayfaceCancelsettleAPIRequest struct { + model.Params + // 阿里旅行订单号,淘宝订单号或外部订单号二选一必填 + _tid int64 + // 取消结账的原因 + _reason string + // 外部订单号,和tid二选一必填 + _outId string +} + +// 初始化TaobaoXhotelOrderAlipayfaceCancelsettleAPIRequest对象 +func NewTaobaoXhotelOrderAlipayfaceCancelsettleRequest() *TaobaoXhotelOrderAlipayfaceCancelsettleAPIRequest{ + return &TaobaoXhotelOrderAlipayfaceCancelsettleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderAlipayfaceCancelsettleAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.alipayface.cancelsettle" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderAlipayfaceCancelsettleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 阿里旅行订单号,淘宝订单号或外部订单号二选一必填 +func (r *TaobaoXhotelOrderAlipayfaceCancelsettleAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoXhotelOrderAlipayfaceCancelsettleAPIRequest) GetTid() int64 { + return r._tid +} +// Reason Setter +// 取消结账的原因 +func (r *TaobaoXhotelOrderAlipayfaceCancelsettleAPIRequest) SetReason(_reason string) error { + r._reason = _reason + r.Set("reason", _reason) + return nil +} + +// Reason Getter +func (r TaobaoXhotelOrderAlipayfaceCancelsettleAPIRequest) GetReason() string { + return r._reason +} +// OutId Setter +// 外部订单号,和tid二选一必填 +func (r *TaobaoXhotelOrderAlipayfaceCancelsettleAPIRequest) SetOutId(_outId string) error { + r._outId = _outId + r.Set("out_id", _outId) + return nil +} + +// OutId Getter +func (r TaobaoXhotelOrderAlipayfaceCancelsettleAPIRequest) GetOutId() string { + return r._outId +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceCancelsettleAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceCancelsettleAPIResponse.go new file mode 100644 index 0000000000..d46d9e3512 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceCancelsettleAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +信用住订单取消结算接口 API返回值 +taobao.xhotel.order.alipayface.cancelsettle + +信用住订单由于客人为出现等原因,最终取消结算,一定要在结算后2个小时之内调用,否则不会成功。 +*/ +type TaobaoXhotelOrderAlipayfaceCancelsettleAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderAlipayfaceCancelsettleAPIResponseModel +} + +// 信用住订单取消结算接口 成功返回结果 +type TaobaoXhotelOrderAlipayfaceCancelsettleAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_alipayface_cancelsettle_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回信息 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceCancelsettleResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceCancelsettleResponse.go deleted file mode 100644 index 4b984b5003..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceCancelsettleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -信用住订单取消结算接口 API返回值 -taobao.xhotel.order.alipayface.cancelsettle - -信用住订单由于客人为出现等原因,最终取消结算,一定要在结算后2个小时之内调用,否则不会成功。 -*/ -type TaobaoXhotelOrderAlipayfaceCancelsettleAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderAlipayfaceCancelsettleResponse -} - -// 信用住订单取消结算接口 成功返回结果 -type TaobaoXhotelOrderAlipayfaceCancelsettleResponse struct { - XMLName xml.Name `xml:"xhotel_order_alipayface_cancelsettle_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回信息 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceSettleAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceSettleAPIRequest.go new file mode 100644 index 0000000000..aa5dbb97c4 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceSettleAPIRequest.go @@ -0,0 +1,276 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +信用住订单结账接口 API请求 +taobao.xhotel.order.alipayface.settle + +用于离店付订单在客人离店后,发起结账以及扣款等后续动作 +*/ +type TaobaoXhotelOrderAlipayfaceSettleAPIRequest struct { + model.Params + // 备注 + _memo string + // 商家订单号 + _outId string + // 入住房间号 + _roomNo string + // 杂费总额(不能为负数) + _otherFee int64 + // 房费总额(必须大于0)。结账时请按订单原价发起结账卖家优惠由飞猪平台发起扣减 + _totalRoomFee int64 + // 每日房价,json格式(包含日期,价格,税费,低价加价前费用等),如果房价和在阿里旅行下单时发生了变化,必须设置该字段.用于更新阿里旅行端的房价信息,涉及到对用户的优惠信息处理等环节(多间房的时候dailyPriceInfo留空) + _dailyPriceInfo string + // 实际离店日期,用于校验总房费收取 + _checkOut string + // 淘宝订单id,必须填写 + _tid int64 + // 杂费明细,如果otherFee>0则该字段必须设置,并和杂费金额相吻合 + _otherFeeDetail string + // 单间房明细 + _roomSettleInfoList []RoomSettleInfo + // 此金额是否包含担保金 0:默认值无意义;1:包含;2:不包含 + _containGuarantee int64 + // 结账变价标识,0未变价,1变价 + _priceChange int64 + // 币种标识,默认人民币 + _currencyCode string + // 汇率 + _currencyRate string + // 税和服务费 + _taxAndFee int64 + // 应收金额,大于0时,直接按照此金额扣款,忽略房费和杂费金额。该字段仅适用于自助入住订单场景 + _amount int64 + // 酒店外部编码 + _hotelCode string +} + +// 初始化TaobaoXhotelOrderAlipayfaceSettleAPIRequest对象 +func NewTaobaoXhotelOrderAlipayfaceSettleRequest() *TaobaoXhotelOrderAlipayfaceSettleAPIRequest{ + return &TaobaoXhotelOrderAlipayfaceSettleAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderAlipayfaceSettleAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.alipayface.settle" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderAlipayfaceSettleAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Memo Setter +// 备注 +func (r *TaobaoXhotelOrderAlipayfaceSettleAPIRequest) SetMemo(_memo string) error { + r._memo = _memo + r.Set("memo", _memo) + return nil +} + +// Memo Getter +func (r TaobaoXhotelOrderAlipayfaceSettleAPIRequest) GetMemo() string { + return r._memo +} +// OutId Setter +// 商家订单号 +func (r *TaobaoXhotelOrderAlipayfaceSettleAPIRequest) SetOutId(_outId string) error { + r._outId = _outId + r.Set("out_id", _outId) + return nil +} + +// OutId Getter +func (r TaobaoXhotelOrderAlipayfaceSettleAPIRequest) GetOutId() string { + return r._outId +} +// RoomNo Setter +// 入住房间号 +func (r *TaobaoXhotelOrderAlipayfaceSettleAPIRequest) SetRoomNo(_roomNo string) error { + r._roomNo = _roomNo + r.Set("room_no", _roomNo) + return nil +} + +// RoomNo Getter +func (r TaobaoXhotelOrderAlipayfaceSettleAPIRequest) GetRoomNo() string { + return r._roomNo +} +// OtherFee Setter +// 杂费总额(不能为负数) +func (r *TaobaoXhotelOrderAlipayfaceSettleAPIRequest) SetOtherFee(_otherFee int64) error { + r._otherFee = _otherFee + r.Set("other_fee", _otherFee) + return nil +} + +// OtherFee Getter +func (r TaobaoXhotelOrderAlipayfaceSettleAPIRequest) GetOtherFee() int64 { + return r._otherFee +} +// TotalRoomFee Setter +// 房费总额(必须大于0)。结账时请按订单原价发起结账卖家优惠由飞猪平台发起扣减 +func (r *TaobaoXhotelOrderAlipayfaceSettleAPIRequest) SetTotalRoomFee(_totalRoomFee int64) error { + r._totalRoomFee = _totalRoomFee + r.Set("total_room_fee", _totalRoomFee) + return nil +} + +// TotalRoomFee Getter +func (r TaobaoXhotelOrderAlipayfaceSettleAPIRequest) GetTotalRoomFee() int64 { + return r._totalRoomFee +} +// DailyPriceInfo Setter +// 每日房价,json格式(包含日期,价格,税费,低价加价前费用等),如果房价和在阿里旅行下单时发生了变化,必须设置该字段.用于更新阿里旅行端的房价信息,涉及到对用户的优惠信息处理等环节(多间房的时候dailyPriceInfo留空) +func (r *TaobaoXhotelOrderAlipayfaceSettleAPIRequest) SetDailyPriceInfo(_dailyPriceInfo string) error { + r._dailyPriceInfo = _dailyPriceInfo + r.Set("daily_price_info", _dailyPriceInfo) + return nil +} + +// DailyPriceInfo Getter +func (r TaobaoXhotelOrderAlipayfaceSettleAPIRequest) GetDailyPriceInfo() string { + return r._dailyPriceInfo +} +// CheckOut Setter +// 实际离店日期,用于校验总房费收取 +func (r *TaobaoXhotelOrderAlipayfaceSettleAPIRequest) SetCheckOut(_checkOut string) error { + r._checkOut = _checkOut + r.Set("check_out", _checkOut) + return nil +} + +// CheckOut Getter +func (r TaobaoXhotelOrderAlipayfaceSettleAPIRequest) GetCheckOut() string { + return r._checkOut +} +// Tid Setter +// 淘宝订单id,必须填写 +func (r *TaobaoXhotelOrderAlipayfaceSettleAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoXhotelOrderAlipayfaceSettleAPIRequest) GetTid() int64 { + return r._tid +} +// OtherFeeDetail Setter +// 杂费明细,如果otherFee>0则该字段必须设置,并和杂费金额相吻合 +func (r *TaobaoXhotelOrderAlipayfaceSettleAPIRequest) SetOtherFeeDetail(_otherFeeDetail string) error { + r._otherFeeDetail = _otherFeeDetail + r.Set("other_fee_detail", _otherFeeDetail) + return nil +} + +// OtherFeeDetail Getter +func (r TaobaoXhotelOrderAlipayfaceSettleAPIRequest) GetOtherFeeDetail() string { + return r._otherFeeDetail +} +// RoomSettleInfoList Setter +// 单间房明细 +func (r *TaobaoXhotelOrderAlipayfaceSettleAPIRequest) SetRoomSettleInfoList(_roomSettleInfoList []RoomSettleInfo) error { + r._roomSettleInfoList = _roomSettleInfoList + r.Set("room_settle_info_list", _roomSettleInfoList) + return nil +} + +// RoomSettleInfoList Getter +func (r TaobaoXhotelOrderAlipayfaceSettleAPIRequest) GetRoomSettleInfoList() []RoomSettleInfo { + return r._roomSettleInfoList +} +// ContainGuarantee Setter +// 此金额是否包含担保金 0:默认值无意义;1:包含;2:不包含 +func (r *TaobaoXhotelOrderAlipayfaceSettleAPIRequest) SetContainGuarantee(_containGuarantee int64) error { + r._containGuarantee = _containGuarantee + r.Set("contain_guarantee", _containGuarantee) + return nil +} + +// ContainGuarantee Getter +func (r TaobaoXhotelOrderAlipayfaceSettleAPIRequest) GetContainGuarantee() int64 { + return r._containGuarantee +} +// PriceChange Setter +// 结账变价标识,0未变价,1变价 +func (r *TaobaoXhotelOrderAlipayfaceSettleAPIRequest) SetPriceChange(_priceChange int64) error { + r._priceChange = _priceChange + r.Set("price_change", _priceChange) + return nil +} + +// PriceChange Getter +func (r TaobaoXhotelOrderAlipayfaceSettleAPIRequest) GetPriceChange() int64 { + return r._priceChange +} +// CurrencyCode Setter +// 币种标识,默认人民币 +func (r *TaobaoXhotelOrderAlipayfaceSettleAPIRequest) SetCurrencyCode(_currencyCode string) error { + r._currencyCode = _currencyCode + r.Set("currency_code", _currencyCode) + return nil +} + +// CurrencyCode Getter +func (r TaobaoXhotelOrderAlipayfaceSettleAPIRequest) GetCurrencyCode() string { + return r._currencyCode +} +// CurrencyRate Setter +// 汇率 +func (r *TaobaoXhotelOrderAlipayfaceSettleAPIRequest) SetCurrencyRate(_currencyRate string) error { + r._currencyRate = _currencyRate + r.Set("currency_rate", _currencyRate) + return nil +} + +// CurrencyRate Getter +func (r TaobaoXhotelOrderAlipayfaceSettleAPIRequest) GetCurrencyRate() string { + return r._currencyRate +} +// TaxAndFee Setter +// 税和服务费 +func (r *TaobaoXhotelOrderAlipayfaceSettleAPIRequest) SetTaxAndFee(_taxAndFee int64) error { + r._taxAndFee = _taxAndFee + r.Set("tax_and_fee", _taxAndFee) + return nil +} + +// TaxAndFee Getter +func (r TaobaoXhotelOrderAlipayfaceSettleAPIRequest) GetTaxAndFee() int64 { + return r._taxAndFee +} +// Amount Setter +// 应收金额,大于0时,直接按照此金额扣款,忽略房费和杂费金额。该字段仅适用于自助入住订单场景 +func (r *TaobaoXhotelOrderAlipayfaceSettleAPIRequest) SetAmount(_amount int64) error { + r._amount = _amount + r.Set("amount", _amount) + return nil +} + +// Amount Getter +func (r TaobaoXhotelOrderAlipayfaceSettleAPIRequest) GetAmount() int64 { + return r._amount +} +// HotelCode Setter +// 酒店外部编码 +func (r *TaobaoXhotelOrderAlipayfaceSettleAPIRequest) SetHotelCode(_hotelCode string) error { + r._hotelCode = _hotelCode + r.Set("hotel_code", _hotelCode) + return nil +} + +// HotelCode Getter +func (r TaobaoXhotelOrderAlipayfaceSettleAPIRequest) GetHotelCode() string { + return r._hotelCode +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceSettleAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceSettleAPIResponse.go new file mode 100644 index 0000000000..9fd0c61f6f --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceSettleAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +信用住订单结账接口 API返回值 +taobao.xhotel.order.alipayface.settle + +用于离店付订单在客人离店后,发起结账以及扣款等后续动作 +*/ +type TaobaoXhotelOrderAlipayfaceSettleAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderAlipayfaceSettleAPIResponseModel +} + +// 信用住订单结账接口 成功返回结果 +type TaobaoXhotelOrderAlipayfaceSettleAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_alipayface_settle_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceSettleResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceSettleResponse.go deleted file mode 100644 index fe4d796d63..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceSettleResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -信用住订单结账接口 API返回值 -taobao.xhotel.order.alipayface.settle - -用于离店付订单在客人离店后,发起结账以及扣款等后续动作 -*/ -type TaobaoXhotelOrderAlipayfaceSettleAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderAlipayfaceSettleResponse -} - -// 信用住订单结账接口 成功返回结果 -type TaobaoXhotelOrderAlipayfaceSettleResponse struct { - XMLName xml.Name `xml:"xhotel_order_alipayface_settle_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceUpdateAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceUpdateAPIRequest.go new file mode 100644 index 0000000000..9ddd023d92 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceUpdateAPIRequest.go @@ -0,0 +1,248 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店信用住订单状态更新 API请求 +taobao.xhotel.order.alipayface.update + +完成对信用住或者面付订单的状态的更新。包含订单状态的确认,入离店状态的更新等等。(不适用于预付订单) +*/ +type TaobaoXhotelOrderAlipayfaceUpdateAPIRequest struct { + model.Params + // 淘宝订单号,必填 + _tid int64 + // 操作的类型:12.补录确认号,11.多间房确认无房,10.多间房确认有房,8.取消订单(cancel)酒店端发起取消,必须在和买家协商通过的情况下操作,否则有法务风险; 5.买家未入住(noshow),如果该单有担保,会收取买家的担保金额; 3.核实入住(checkIn); 4.核实离店(checkOut); 1.确认无房(直连卖家禁止该操作),2.确认有房(直连卖家禁止该操作) + _optType int64 + // 无房原因分类:1.无房, 2.价格变动, 3.买家原因, 4.其它原因,opt_type=1时必填 + _reasonType int64 + // 无房原因描述:opt_type=1时必填 + _reasonText string + // 入住房间号 + _outRoomNumber string + // 客人实际入住日期,opt_type=3/4时必填 + _checkinDate string + // 客人实际离店日期,opt_type=4时必填 + _checkoutDate string + // 客人实际预定房间数 + _rooms int64 + // 外部订单号 + _outId string + // opt_type为10,11启用,多间房订单号列表,逗号间隔 + _tids string + // opt_type为11启用,多间房订单取消原因类型,逗号间隔 + _cancelType int64 + // opt_type为10,11,12启用,真实操作人 + _operator string + // opt_type为12, 订单确认号 + _confirmCode string + // 是否自助入住 + _selfCheckin bool + // 是否把代理直签的订单同步到酒店,Y为同步,N不同步 + _syncToHotel string +} + +// 初始化TaobaoXhotelOrderAlipayfaceUpdateAPIRequest对象 +func NewTaobaoXhotelOrderAlipayfaceUpdateRequest() *TaobaoXhotelOrderAlipayfaceUpdateAPIRequest{ + return &TaobaoXhotelOrderAlipayfaceUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.alipayface.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 淘宝订单号,必填 +func (r *TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) GetTid() int64 { + return r._tid +} +// OptType Setter +// 操作的类型:12.补录确认号,11.多间房确认无房,10.多间房确认有房,8.取消订单(cancel)酒店端发起取消,必须在和买家协商通过的情况下操作,否则有法务风险; 5.买家未入住(noshow),如果该单有担保,会收取买家的担保金额; 3.核实入住(checkIn); 4.核实离店(checkOut); 1.确认无房(直连卖家禁止该操作),2.确认有房(直连卖家禁止该操作) +func (r *TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) SetOptType(_optType int64) error { + r._optType = _optType + r.Set("opt_type", _optType) + return nil +} + +// OptType Getter +func (r TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) GetOptType() int64 { + return r._optType +} +// ReasonType Setter +// 无房原因分类:1.无房, 2.价格变动, 3.买家原因, 4.其它原因,opt_type=1时必填 +func (r *TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) SetReasonType(_reasonType int64) error { + r._reasonType = _reasonType + r.Set("reason_type", _reasonType) + return nil +} + +// ReasonType Getter +func (r TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) GetReasonType() int64 { + return r._reasonType +} +// ReasonText Setter +// 无房原因描述:opt_type=1时必填 +func (r *TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) SetReasonText(_reasonText string) error { + r._reasonText = _reasonText + r.Set("reason_text", _reasonText) + return nil +} + +// ReasonText Getter +func (r TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) GetReasonText() string { + return r._reasonText +} +// OutRoomNumber Setter +// 入住房间号 +func (r *TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) SetOutRoomNumber(_outRoomNumber string) error { + r._outRoomNumber = _outRoomNumber + r.Set("out_room_number", _outRoomNumber) + return nil +} + +// OutRoomNumber Getter +func (r TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) GetOutRoomNumber() string { + return r._outRoomNumber +} +// CheckinDate Setter +// 客人实际入住日期,opt_type=3/4时必填 +func (r *TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) SetCheckinDate(_checkinDate string) error { + r._checkinDate = _checkinDate + r.Set("checkin_date", _checkinDate) + return nil +} + +// CheckinDate Getter +func (r TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) GetCheckinDate() string { + return r._checkinDate +} +// CheckoutDate Setter +// 客人实际离店日期,opt_type=4时必填 +func (r *TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) SetCheckoutDate(_checkoutDate string) error { + r._checkoutDate = _checkoutDate + r.Set("checkout_date", _checkoutDate) + return nil +} + +// CheckoutDate Getter +func (r TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) GetCheckoutDate() string { + return r._checkoutDate +} +// Rooms Setter +// 客人实际预定房间数 +func (r *TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) SetRooms(_rooms int64) error { + r._rooms = _rooms + r.Set("rooms", _rooms) + return nil +} + +// Rooms Getter +func (r TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) GetRooms() int64 { + return r._rooms +} +// OutId Setter +// 外部订单号 +func (r *TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) SetOutId(_outId string) error { + r._outId = _outId + r.Set("out_id", _outId) + return nil +} + +// OutId Getter +func (r TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) GetOutId() string { + return r._outId +} +// Tids Setter +// opt_type为10,11启用,多间房订单号列表,逗号间隔 +func (r *TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) SetTids(_tids string) error { + r._tids = _tids + r.Set("tids", _tids) + return nil +} + +// Tids Getter +func (r TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) GetTids() string { + return r._tids +} +// CancelType Setter +// opt_type为11启用,多间房订单取消原因类型,逗号间隔 +func (r *TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) SetCancelType(_cancelType int64) error { + r._cancelType = _cancelType + r.Set("cancel_type", _cancelType) + return nil +} + +// CancelType Getter +func (r TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) GetCancelType() int64 { + return r._cancelType +} +// Operator Setter +// opt_type为10,11,12启用,真实操作人 +func (r *TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) SetOperator(_operator string) error { + r._operator = _operator + r.Set("operator", _operator) + return nil +} + +// Operator Getter +func (r TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) GetOperator() string { + return r._operator +} +// ConfirmCode Setter +// opt_type为12, 订单确认号 +func (r *TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) SetConfirmCode(_confirmCode string) error { + r._confirmCode = _confirmCode + r.Set("confirm_code", _confirmCode) + return nil +} + +// ConfirmCode Getter +func (r TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) GetConfirmCode() string { + return r._confirmCode +} +// SelfCheckin Setter +// 是否自助入住 +func (r *TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) SetSelfCheckin(_selfCheckin bool) error { + r._selfCheckin = _selfCheckin + r.Set("self_checkin", _selfCheckin) + return nil +} + +// SelfCheckin Getter +func (r TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) GetSelfCheckin() bool { + return r._selfCheckin +} +// SyncToHotel Setter +// 是否把代理直签的订单同步到酒店,Y为同步,N不同步 +func (r *TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) SetSyncToHotel(_syncToHotel string) error { + r._syncToHotel = _syncToHotel + r.Set("sync_to_hotel", _syncToHotel) + return nil +} + +// SyncToHotel Getter +func (r TaobaoXhotelOrderAlipayfaceUpdateAPIRequest) GetSyncToHotel() string { + return r._syncToHotel +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceUpdateAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceUpdateAPIResponse.go new file mode 100644 index 0000000000..6d1509be92 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店信用住订单状态更新 API返回值 +taobao.xhotel.order.alipayface.update + +完成对信用住或者面付订单的状态的更新。包含订单状态的确认,入离店状态的更新等等。(不适用于预付订单) +*/ +type TaobaoXhotelOrderAlipayfaceUpdateAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderAlipayfaceUpdateAPIResponseModel +} + +// 酒店信用住订单状态更新 成功返回结果 +type TaobaoXhotelOrderAlipayfaceUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_alipayface_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回提示信息 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceUpdateResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceUpdateResponse.go deleted file mode 100644 index f24aa0ba5e..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelOrderAlipayfaceUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店信用住订单状态更新 API返回值 -taobao.xhotel.order.alipayface.update - -完成对信用住或者面付订单的状态的更新。包含订单状态的确认,入离店状态的更新等等。(不适用于预付订单) -*/ -type TaobaoXhotelOrderAlipayfaceUpdateAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderAlipayfaceUpdateResponse -} - -// 酒店信用住订单状态更新 成功返回结果 -type TaobaoXhotelOrderAlipayfaceUpdateResponse struct { - XMLName xml.Name `xml:"xhotel_order_alipayface_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回提示信息 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderDetailSearchAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelOrderDetailSearchAPIRequest.go new file mode 100644 index 0000000000..63d6b601ff --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderDetailSearchAPIRequest.go @@ -0,0 +1,66 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单详情查询 API请求 +taobao.xhotel.order.detail.search + +提供订单详情查询 +*/ +type TaobaoXhotelOrderDetailSearchAPIRequest struct { + model.Params + // 外部订单号 + _outOid string + // 外部订单号 + _tid int64 +} + +// 初始化TaobaoXhotelOrderDetailSearchAPIRequest对象 +func NewTaobaoXhotelOrderDetailSearchRequest() *TaobaoXhotelOrderDetailSearchAPIRequest{ + return &TaobaoXhotelOrderDetailSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderDetailSearchAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.detail.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderDetailSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutOid Setter +// 外部订单号 +func (r *TaobaoXhotelOrderDetailSearchAPIRequest) SetOutOid(_outOid string) error { + r._outOid = _outOid + r.Set("out_oid", _outOid) + return nil +} + +// OutOid Getter +func (r TaobaoXhotelOrderDetailSearchAPIRequest) GetOutOid() string { + return r._outOid +} +// Tid Setter +// 外部订单号 +func (r *TaobaoXhotelOrderDetailSearchAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoXhotelOrderDetailSearchAPIRequest) GetTid() int64 { + return r._tid +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderDetailSearchAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderDetailSearchAPIResponse.go new file mode 100644 index 0000000000..91ef103a21 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderDetailSearchAPIResponse.go @@ -0,0 +1,31 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单详情查询 API返回值 +taobao.xhotel.order.detail.search + +提供订单详情查询 +*/ +type TaobaoXhotelOrderDetailSearchAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderDetailSearchAPIResponseModel +} + +// 订单详情查询 成功返回结果 +type TaobaoXhotelOrderDetailSearchAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_detail_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单详情对象 + TopOrderDetail *TopOrderDetail `json:"top_order_detail,omitempty" xml:"top_order_detail,omitempty"` + // 错误描述 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 错误编号 + Error string `json:"error,omitempty" xml:"error,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderDetailSearchResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderDetailSearchResponse.go deleted file mode 100644 index ea9d3c5908..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelOrderDetailSearchResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单详情查询 API返回值 -taobao.xhotel.order.detail.search - -提供订单详情查询 -*/ -type TaobaoXhotelOrderDetailSearchAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderDetailSearchResponse -} - -// 订单详情查询 成功返回结果 -type TaobaoXhotelOrderDetailSearchResponse struct { - XMLName xml.Name `xml:"xhotel_order_detail_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单详情对象 - TopOrderDetail *TopOrderDetail `json:"top_order_detail,omitempty" xml:"top_order_detail,omitempty"` - // 错误描述 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 错误编号 - Error string `json:"error,omitempty" xml:"error,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderFutureFacescanPutAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelOrderFutureFacescanPutAPIRequest.go new file mode 100644 index 0000000000..e2c5bc7e1f --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderFutureFacescanPutAPIRequest.go @@ -0,0 +1,52 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +未来酒店扫脸信息上传 API请求 +taobao.xhotel.order.future.facescan.put + +未来酒店扫脸信息上传服务,用于悉尔等厂商的扫脸设备对接 +*/ +type TaobaoXhotelOrderFutureFacescanPutAPIRequest struct { + model.Params + // 扫脸参数 + _faceScanParam *FaceScanParam +} + +// 初始化TaobaoXhotelOrderFutureFacescanPutAPIRequest对象 +func NewTaobaoXhotelOrderFutureFacescanPutRequest() *TaobaoXhotelOrderFutureFacescanPutAPIRequest{ + return &TaobaoXhotelOrderFutureFacescanPutAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderFutureFacescanPutAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.future.facescan.put" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderFutureFacescanPutAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// FaceScanParam Setter +// 扫脸参数 +func (r *TaobaoXhotelOrderFutureFacescanPutAPIRequest) SetFaceScanParam(_faceScanParam *FaceScanParam) error { + r._faceScanParam = _faceScanParam + r.Set("face_scan_param", _faceScanParam) + return nil +} + +// FaceScanParam Getter +func (r TaobaoXhotelOrderFutureFacescanPutAPIRequest) GetFaceScanParam() *FaceScanParam { + return r._faceScanParam +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderFutureFacescanPutAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderFutureFacescanPutAPIResponse.go new file mode 100644 index 0000000000..cf5afd3f7b --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderFutureFacescanPutAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +未来酒店扫脸信息上传 API返回值 +taobao.xhotel.order.future.facescan.put + +未来酒店扫脸信息上传服务,用于悉尔等厂商的扫脸设备对接 +*/ +type TaobaoXhotelOrderFutureFacescanPutAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderFutureFacescanPutAPIResponseModel +} + +// 未来酒店扫脸信息上传 成功返回结果 +type TaobaoXhotelOrderFutureFacescanPutAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_future_facescan_put_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *TaobaoXhotelOrderFutureFacescanPutResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderFutureFacescanPutResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderFutureFacescanPutResponse.go deleted file mode 100644 index 76cfce6f32..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelOrderFutureFacescanPutResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -未来酒店扫脸信息上传 API返回值 -taobao.xhotel.order.future.facescan.put - -未来酒店扫脸信息上传服务,用于悉尔等厂商的扫脸设备对接 -*/ -type TaobaoXhotelOrderFutureFacescanPutAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderFutureFacescanPutResponse -} - -// 未来酒店扫脸信息上传 成功返回结果 -type TaobaoXhotelOrderFutureFacescanPutResponse struct { - XMLName xml.Name `xml:"xhotel_order_future_facescan_put_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *TaobaoXhotelOrderFutureFacescanPutResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoGetAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoGetAPIRequest.go new file mode 100644 index 0000000000..36c78a02cb --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoGetAPIRequest.go @@ -0,0 +1,136 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取(查询)订单变更信息 API请求 +taobao.xhotel.order.future.info.get + +支持操作类型 1.在线开发票请求 3.在线选房请求 4.自助checkIn请求 13.扫脸入住身份信息请求 10.房态信息查询请求 103.通用任务取消指令 +*/ +type TaobaoXhotelOrderFutureInfoGetAPIRequest struct { + model.Params + // 请求流水号 + _outUuid string + // 指定淘宝订单ID。以英文分号隔开的字符串“123455666;123455666;123455666” + _tids string + // 酒店编码 + _hotelCode string + // 系统商分配的身份识别 + _vendor string + // 操作类型 1.在线开发票请求 3.在线选房请求 4.自助checkIn请求 13.扫脸入住身份信息请求 10.房态信息查询请求 103.通用任务取消指令 + _operateType int64 + // 开始时间 + _createdStart string + // 结束时间 + _createdEnd string +} + +// 初始化TaobaoXhotelOrderFutureInfoGetAPIRequest对象 +func NewTaobaoXhotelOrderFutureInfoGetRequest() *TaobaoXhotelOrderFutureInfoGetAPIRequest{ + return &TaobaoXhotelOrderFutureInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderFutureInfoGetAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.future.info.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderFutureInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutUuid Setter +// 请求流水号 +func (r *TaobaoXhotelOrderFutureInfoGetAPIRequest) SetOutUuid(_outUuid string) error { + r._outUuid = _outUuid + r.Set("out_uuid", _outUuid) + return nil +} + +// OutUuid Getter +func (r TaobaoXhotelOrderFutureInfoGetAPIRequest) GetOutUuid() string { + return r._outUuid +} +// Tids Setter +// 指定淘宝订单ID。以英文分号隔开的字符串“123455666;123455666;123455666” +func (r *TaobaoXhotelOrderFutureInfoGetAPIRequest) SetTids(_tids string) error { + r._tids = _tids + r.Set("tids", _tids) + return nil +} + +// Tids Getter +func (r TaobaoXhotelOrderFutureInfoGetAPIRequest) GetTids() string { + return r._tids +} +// HotelCode Setter +// 酒店编码 +func (r *TaobaoXhotelOrderFutureInfoGetAPIRequest) SetHotelCode(_hotelCode string) error { + r._hotelCode = _hotelCode + r.Set("hotel_code", _hotelCode) + return nil +} + +// HotelCode Getter +func (r TaobaoXhotelOrderFutureInfoGetAPIRequest) GetHotelCode() string { + return r._hotelCode +} +// Vendor Setter +// 系统商分配的身份识别 +func (r *TaobaoXhotelOrderFutureInfoGetAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelOrderFutureInfoGetAPIRequest) GetVendor() string { + return r._vendor +} +// OperateType Setter +// 操作类型 1.在线开发票请求 3.在线选房请求 4.自助checkIn请求 13.扫脸入住身份信息请求 10.房态信息查询请求 103.通用任务取消指令 +func (r *TaobaoXhotelOrderFutureInfoGetAPIRequest) SetOperateType(_operateType int64) error { + r._operateType = _operateType + r.Set("operate_type", _operateType) + return nil +} + +// OperateType Getter +func (r TaobaoXhotelOrderFutureInfoGetAPIRequest) GetOperateType() int64 { + return r._operateType +} +// CreatedStart Setter +// 开始时间 +func (r *TaobaoXhotelOrderFutureInfoGetAPIRequest) SetCreatedStart(_createdStart string) error { + r._createdStart = _createdStart + r.Set("created_start", _createdStart) + return nil +} + +// CreatedStart Getter +func (r TaobaoXhotelOrderFutureInfoGetAPIRequest) GetCreatedStart() string { + return r._createdStart +} +// CreatedEnd Setter +// 结束时间 +func (r *TaobaoXhotelOrderFutureInfoGetAPIRequest) SetCreatedEnd(_createdEnd string) error { + r._createdEnd = _createdEnd + r.Set("created_end", _createdEnd) + return nil +} + +// CreatedEnd Getter +func (r TaobaoXhotelOrderFutureInfoGetAPIRequest) GetCreatedEnd() string { + return r._createdEnd +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoGetAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoGetAPIResponse.go new file mode 100644 index 0000000000..6dd5dd4213 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoGetAPIResponse.go @@ -0,0 +1,31 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取(查询)订单变更信息 API返回值 +taobao.xhotel.order.future.info.get + +支持操作类型 1.在线开发票请求 3.在线选房请求 4.自助checkIn请求 13.扫脸入住身份信息请求 10.房态信息查询请求 103.通用任务取消指令 +*/ +type TaobaoXhotelOrderFutureInfoGetAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderFutureInfoGetAPIResponseModel +} + +// 获取(查询)订单变更信息 成功返回结果 +type TaobaoXhotelOrderFutureInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_future_info_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果返回列表 + Results []HotelOrderDirectInfo `json:"results,omitempty" xml:"results>hotel_order_direct_info,omitempty"` + // 是否成功标记 + Issuccess bool `json:"issuccess,omitempty" xml:"issuccess,omitempty"` + // 返回外部请求流水号 + OutUuid string `json:"out_uuid,omitempty" xml:"out_uuid,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoGetResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoGetResponse.go deleted file mode 100644 index f01a578a66..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取(查询)订单变更信息 API返回值 -taobao.xhotel.order.future.info.get - -支持操作类型 1.在线开发票请求 3.在线选房请求 4.自助checkIn请求 13.扫脸入住身份信息请求 10.房态信息查询请求 103.通用任务取消指令 -*/ -type TaobaoXhotelOrderFutureInfoGetAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderFutureInfoGetResponse -} - -// 获取(查询)订单变更信息 成功返回结果 -type TaobaoXhotelOrderFutureInfoGetResponse struct { - XMLName xml.Name `xml:"xhotel_order_future_info_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果返回列表 - Results []HotelOrderDirectInfo `json:"results,omitempty" xml:"results>hotel_order_direct_info,omitempty"` - // 是否成功标记 - Issuccess bool `json:"issuccess,omitempty" xml:"issuccess,omitempty"` - // 返回外部请求流水号 - OutUuid string `json:"out_uuid,omitempty" xml:"out_uuid,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoPutAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoPutAPIRequest.go new file mode 100644 index 0000000000..71e6dd3096 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoPutAPIRequest.go @@ -0,0 +1,122 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +订单信息上传更新 API请求 +taobao.xhotel.order.future.info.put + +商家调用推送信息给飞猪平台。 支持如下操作类型:21: 订单状态更新(商家推送订单状态变更)23:酒店房态信息上传(上传一段时间内的酒店房态)25:在线开发票请求确认 26:自助选房请求进行请求确认 27:自助checkIn请求进行请求确认 32: 扫脸入住入住信息回传 (飞猪将登记至公安系统) +*/ +type TaobaoXhotelOrderFutureInfoPutAPIRequest struct { + model.Params + // 商家请求流水号 + _outUuid string + // 操作类型 21: 订单状态更新(商家推送订单状态变更)23:酒店房态信息上传(上传一段时间内的酒店房态)25:在线开发票请求确认 26:自助选房请求进行请求确认 27:自助checkIn请求进行请求确认 32: 扫脸入住入住信息回传 (飞猪将登记至公安系统) + _operateType int64 + // 酒店编码 + _hotelCode string + // 字段详细介绍参见 https://open.alitrip.com/docs/doc.htm?docType=1&articleId=106153 + _context string + // 商家vendor信息。具体值咨询淘宝技术 + _vendor string + // 请求流水号 + _requestId string +} + +// 初始化TaobaoXhotelOrderFutureInfoPutAPIRequest对象 +func NewTaobaoXhotelOrderFutureInfoPutRequest() *TaobaoXhotelOrderFutureInfoPutAPIRequest{ + return &TaobaoXhotelOrderFutureInfoPutAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderFutureInfoPutAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.future.info.put" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderFutureInfoPutAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OutUuid Setter +// 商家请求流水号 +func (r *TaobaoXhotelOrderFutureInfoPutAPIRequest) SetOutUuid(_outUuid string) error { + r._outUuid = _outUuid + r.Set("out_uuid", _outUuid) + return nil +} + +// OutUuid Getter +func (r TaobaoXhotelOrderFutureInfoPutAPIRequest) GetOutUuid() string { + return r._outUuid +} +// OperateType Setter +// 操作类型 21: 订单状态更新(商家推送订单状态变更)23:酒店房态信息上传(上传一段时间内的酒店房态)25:在线开发票请求确认 26:自助选房请求进行请求确认 27:自助checkIn请求进行请求确认 32: 扫脸入住入住信息回传 (飞猪将登记至公安系统) +func (r *TaobaoXhotelOrderFutureInfoPutAPIRequest) SetOperateType(_operateType int64) error { + r._operateType = _operateType + r.Set("operate_type", _operateType) + return nil +} + +// OperateType Getter +func (r TaobaoXhotelOrderFutureInfoPutAPIRequest) GetOperateType() int64 { + return r._operateType +} +// HotelCode Setter +// 酒店编码 +func (r *TaobaoXhotelOrderFutureInfoPutAPIRequest) SetHotelCode(_hotelCode string) error { + r._hotelCode = _hotelCode + r.Set("hotel_code", _hotelCode) + return nil +} + +// HotelCode Getter +func (r TaobaoXhotelOrderFutureInfoPutAPIRequest) GetHotelCode() string { + return r._hotelCode +} +// Context Setter +// 字段详细介绍参见 https://open.alitrip.com/docs/doc.htm?docType=1&articleId=106153 +func (r *TaobaoXhotelOrderFutureInfoPutAPIRequest) SetContext(_context string) error { + r._context = _context + r.Set("context", _context) + return nil +} + +// Context Getter +func (r TaobaoXhotelOrderFutureInfoPutAPIRequest) GetContext() string { + return r._context +} +// Vendor Setter +// 商家vendor信息。具体值咨询淘宝技术 +func (r *TaobaoXhotelOrderFutureInfoPutAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelOrderFutureInfoPutAPIRequest) GetVendor() string { + return r._vendor +} +// RequestId Setter +// 请求流水号 +func (r *TaobaoXhotelOrderFutureInfoPutAPIRequest) SetRequestId(_requestId string) error { + r._requestId = _requestId + r.Set("request_id", _requestId) + return nil +} + +// RequestId Getter +func (r TaobaoXhotelOrderFutureInfoPutAPIRequest) GetRequestId() string { + return r._requestId +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoPutAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoPutAPIResponse.go new file mode 100644 index 0000000000..2f0a56cc4e --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoPutAPIResponse.go @@ -0,0 +1,33 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +订单信息上传更新 API返回值 +taobao.xhotel.order.future.info.put + +商家调用推送信息给飞猪平台。 支持如下操作类型:21: 订单状态更新(商家推送订单状态变更)23:酒店房态信息上传(上传一段时间内的酒店房态)25:在线开发票请求确认 26:自助选房请求进行请求确认 27:自助checkIn请求进行请求确认 32: 扫脸入住入住信息回传 (飞猪将登记至公安系统) +*/ +type TaobaoXhotelOrderFutureInfoPutAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderFutureInfoPutAPIResponseModel +} + +// 订单信息上传更新 成功返回结果 +type TaobaoXhotelOrderFutureInfoPutAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_future_info_put_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功标记 + Issuccess bool `json:"issuccess,omitempty" xml:"issuccess,omitempty"` + // 错误码 + Errcode string `json:"errcode,omitempty" xml:"errcode,omitempty"` + // 错误描述 + Eerrmsg string `json:"eerrmsg,omitempty" xml:"eerrmsg,omitempty"` + // 是否更新失败。返回false表示更新成功。否则请读取错误码与错误描述 + Error bool `json:"error,omitempty" xml:"error,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoPutResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoPutResponse.go deleted file mode 100644 index 155673647f..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelOrderFutureInfoPutResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -订单信息上传更新 API返回值 -taobao.xhotel.order.future.info.put - -商家调用推送信息给飞猪平台。 支持如下操作类型:21: 订单状态更新(商家推送订单状态变更)23:酒店房态信息上传(上传一段时间内的酒店房态)25:在线开发票请求确认 26:自助选房请求进行请求确认 27:自助checkIn请求进行请求确认 32: 扫脸入住入住信息回传 (飞猪将登记至公安系统) -*/ -type TaobaoXhotelOrderFutureInfoPutAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderFutureInfoPutResponse -} - -// 订单信息上传更新 成功返回结果 -type TaobaoXhotelOrderFutureInfoPutResponse struct { - XMLName xml.Name `xml:"xhotel_order_future_info_put_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功标记 - Issuccess bool `json:"issuccess,omitempty" xml:"issuccess,omitempty"` - // 错误码 - Errcode string `json:"errcode,omitempty" xml:"errcode,omitempty"` - // 错误描述 - Eerrmsg string `json:"eerrmsg,omitempty" xml:"eerrmsg,omitempty"` - // 是否更新失败。返回false表示更新成功。否则请读取错误码与错误描述 - Error bool `json:"error,omitempty" xml:"error,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderSearchAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelOrderSearchAPIRequest.go new file mode 100644 index 0000000000..c72fc8c67d --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderSearchAPIRequest.go @@ -0,0 +1,136 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店产品库订单查询 API请求 +taobao.xhotel.order.search + +酒店产品库订单查询功能,查询90天内的订单 +*/ +type TaobaoXhotelOrderSearchAPIRequest struct { + model.Params + // 酒店订单oids列表,多个oid用英文逗号隔开,一次不超过20个。 + _orderIds string + // 订单创建时间查询结束时间,格式为:yyyy-MM-dd HH:mm:ss。不能早于created_start或者间隔不能大于30 + _createdEnd string + // 订单创建时间查询起始时间,格式为:yyyy-MM-dd HH:mm:ss + _createdStart string + // 分页页码。取值范围,大于零的整数,默认值1,即返回第一页的数据。页面大小为20 + _pageNo int64 + // 酒店订单tids列表,多个tid用英文逗号隔开,一次不超过20个。oids和tids都传的情况下默认使用tids + _orderTids string + // 系统商标识 + _vendor string + // 外部订单号out_oids列表,多个oid用英文逗号隔开,一次不超过20个。 + _outOids string +} + +// 初始化TaobaoXhotelOrderSearchAPIRequest对象 +func NewTaobaoXhotelOrderSearchRequest() *TaobaoXhotelOrderSearchAPIRequest{ + return &TaobaoXhotelOrderSearchAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderSearchAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.search" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderSearchAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderIds Setter +// 酒店订单oids列表,多个oid用英文逗号隔开,一次不超过20个。 +func (r *TaobaoXhotelOrderSearchAPIRequest) SetOrderIds(_orderIds string) error { + r._orderIds = _orderIds + r.Set("order_ids", _orderIds) + return nil +} + +// OrderIds Getter +func (r TaobaoXhotelOrderSearchAPIRequest) GetOrderIds() string { + return r._orderIds +} +// CreatedEnd Setter +// 订单创建时间查询结束时间,格式为:yyyy-MM-dd HH:mm:ss。不能早于created_start或者间隔不能大于30 +func (r *TaobaoXhotelOrderSearchAPIRequest) SetCreatedEnd(_createdEnd string) error { + r._createdEnd = _createdEnd + r.Set("created_end", _createdEnd) + return nil +} + +// CreatedEnd Getter +func (r TaobaoXhotelOrderSearchAPIRequest) GetCreatedEnd() string { + return r._createdEnd +} +// CreatedStart Setter +// 订单创建时间查询起始时间,格式为:yyyy-MM-dd HH:mm:ss +func (r *TaobaoXhotelOrderSearchAPIRequest) SetCreatedStart(_createdStart string) error { + r._createdStart = _createdStart + r.Set("created_start", _createdStart) + return nil +} + +// CreatedStart Getter +func (r TaobaoXhotelOrderSearchAPIRequest) GetCreatedStart() string { + return r._createdStart +} +// PageNo Setter +// 分页页码。取值范围,大于零的整数,默认值1,即返回第一页的数据。页面大小为20 +func (r *TaobaoXhotelOrderSearchAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r TaobaoXhotelOrderSearchAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// OrderTids Setter +// 酒店订单tids列表,多个tid用英文逗号隔开,一次不超过20个。oids和tids都传的情况下默认使用tids +func (r *TaobaoXhotelOrderSearchAPIRequest) SetOrderTids(_orderTids string) error { + r._orderTids = _orderTids + r.Set("order_tids", _orderTids) + return nil +} + +// OrderTids Getter +func (r TaobaoXhotelOrderSearchAPIRequest) GetOrderTids() string { + return r._orderTids +} +// Vendor Setter +// 系统商标识 +func (r *TaobaoXhotelOrderSearchAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelOrderSearchAPIRequest) GetVendor() string { + return r._vendor +} +// OutOids Setter +// 外部订单号out_oids列表,多个oid用英文逗号隔开,一次不超过20个。 +func (r *TaobaoXhotelOrderSearchAPIRequest) SetOutOids(_outOids string) error { + r._outOids = _outOids + r.Set("out_oids", _outOids) + return nil +} + +// OutOids Getter +func (r TaobaoXhotelOrderSearchAPIRequest) GetOutOids() string { + return r._outOids +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderSearchAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderSearchAPIResponse.go new file mode 100644 index 0000000000..5ad8c00a36 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderSearchAPIResponse.go @@ -0,0 +1,29 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店产品库订单查询 API返回值 +taobao.xhotel.order.search + +酒店产品库订单查询功能,查询90天内的订单 +*/ +type TaobaoXhotelOrderSearchAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderSearchAPIResponseModel +} + +// 酒店产品库订单查询 成功返回结果 +type TaobaoXhotelOrderSearchAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_search_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 订单信息 + HotelOrders []XHotelOrder `json:"hotel_orders,omitempty" xml:"hotel_orders>x_hotel_order,omitempty"` + // 符合条件的结果总数 + TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderSearchResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderSearchResponse.go deleted file mode 100644 index 9aaa7d6b1c..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelOrderSearchResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店产品库订单查询 API返回值 -taobao.xhotel.order.search - -酒店产品库订单查询功能,查询90天内的订单 -*/ -type TaobaoXhotelOrderSearchAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderSearchResponse -} - -// 酒店产品库订单查询 成功返回结果 -type TaobaoXhotelOrderSearchResponse struct { - XMLName xml.Name `xml:"xhotel_order_search_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 订单信息 - HotelOrders []XHotelOrder `json:"hotel_orders,omitempty" xml:"hotel_orders>x_hotel_order,omitempty"` - // 符合条件的结果总数 - TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderStatementGetAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelOrderStatementGetAPIRequest.go new file mode 100644 index 0000000000..3dc19cd4cc --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderStatementGetAPIRequest.go @@ -0,0 +1,164 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询账单信息 API请求 +taobao.xhotel.order.statement.get + +阿里根据此接口定义输出订单账务明细,结账状态发生变化时阿里需推送账单信息。系统商可实时调用该接口来查询订单的详情 +*/ +type TaobaoXhotelOrderStatementGetAPIRequest struct { + model.Params + // 要查询的tid列表,逗号分隔,列表查询;当此值不为空时候,其余参数忽略。最多单次20条。 + _orderTids string + // 查询条数,最大支持500条 + _pageSize int64 + // 数据查询开始下标 + _start int64 + // 0:check_in, 1:check_out,2:分账时间 + _dateType int64 + // 查询结束时间 + _to string + // 查询开始时间 + _from string + // 淘宝订单号 + _tid int64 + // 外部酒店编码 + _hotelCode string + // 系统商vendor + _vendor string +} + +// 初始化TaobaoXhotelOrderStatementGetAPIRequest对象 +func NewTaobaoXhotelOrderStatementGetRequest() *TaobaoXhotelOrderStatementGetAPIRequest{ + return &TaobaoXhotelOrderStatementGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderStatementGetAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.statement.get" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderStatementGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderTids Setter +// 要查询的tid列表,逗号分隔,列表查询;当此值不为空时候,其余参数忽略。最多单次20条。 +func (r *TaobaoXhotelOrderStatementGetAPIRequest) SetOrderTids(_orderTids string) error { + r._orderTids = _orderTids + r.Set("order_tids", _orderTids) + return nil +} + +// OrderTids Getter +func (r TaobaoXhotelOrderStatementGetAPIRequest) GetOrderTids() string { + return r._orderTids +} +// PageSize Setter +// 查询条数,最大支持500条 +func (r *TaobaoXhotelOrderStatementGetAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r TaobaoXhotelOrderStatementGetAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// Start Setter +// 数据查询开始下标 +func (r *TaobaoXhotelOrderStatementGetAPIRequest) SetStart(_start int64) error { + r._start = _start + r.Set("start", _start) + return nil +} + +// Start Getter +func (r TaobaoXhotelOrderStatementGetAPIRequest) GetStart() int64 { + return r._start +} +// DateType Setter +// 0:check_in, 1:check_out,2:分账时间 +func (r *TaobaoXhotelOrderStatementGetAPIRequest) SetDateType(_dateType int64) error { + r._dateType = _dateType + r.Set("date_type", _dateType) + return nil +} + +// DateType Getter +func (r TaobaoXhotelOrderStatementGetAPIRequest) GetDateType() int64 { + return r._dateType +} +// To Setter +// 查询结束时间 +func (r *TaobaoXhotelOrderStatementGetAPIRequest) SetTo(_to string) error { + r._to = _to + r.Set("to", _to) + return nil +} + +// To Getter +func (r TaobaoXhotelOrderStatementGetAPIRequest) GetTo() string { + return r._to +} +// From Setter +// 查询开始时间 +func (r *TaobaoXhotelOrderStatementGetAPIRequest) SetFrom(_from string) error { + r._from = _from + r.Set("from", _from) + return nil +} + +// From Getter +func (r TaobaoXhotelOrderStatementGetAPIRequest) GetFrom() string { + return r._from +} +// Tid Setter +// 淘宝订单号 +func (r *TaobaoXhotelOrderStatementGetAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoXhotelOrderStatementGetAPIRequest) GetTid() int64 { + return r._tid +} +// HotelCode Setter +// 外部酒店编码 +func (r *TaobaoXhotelOrderStatementGetAPIRequest) SetHotelCode(_hotelCode string) error { + r._hotelCode = _hotelCode + r.Set("hotel_code", _hotelCode) + return nil +} + +// HotelCode Getter +func (r TaobaoXhotelOrderStatementGetAPIRequest) GetHotelCode() string { + return r._hotelCode +} +// Vendor Setter +// 系统商vendor +func (r *TaobaoXhotelOrderStatementGetAPIRequest) SetVendor(_vendor string) error { + r._vendor = _vendor + r.Set("vendor", _vendor) + return nil +} + +// Vendor Getter +func (r TaobaoXhotelOrderStatementGetAPIRequest) GetVendor() string { + return r._vendor +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderStatementGetAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderStatementGetAPIResponse.go new file mode 100644 index 0000000000..768039ad7b --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderStatementGetAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询账单信息 API返回值 +taobao.xhotel.order.statement.get + +阿里根据此接口定义输出订单账务明细,结账状态发生变化时阿里需推送账单信息。系统商可实时调用该接口来查询订单的详情 +*/ +type TaobaoXhotelOrderStatementGetAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderStatementGetAPIResponseModel +} + +// 查询账单信息 成功返回结果 +type TaobaoXhotelOrderStatementGetAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_statement_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + Results []StatementOrder `json:"results,omitempty" xml:"results>statement_order,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderStatementGetResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderStatementGetResponse.go deleted file mode 100644 index d404304e27..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelOrderStatementGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询账单信息 API返回值 -taobao.xhotel.order.statement.get - -阿里根据此接口定义输出订单账务明细,结账状态发生变化时阿里需推送账单信息。系统商可实时调用该接口来查询订单的详情 -*/ -type TaobaoXhotelOrderStatementGetAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderStatementGetResponse -} - -// 查询账单信息 成功返回结果 -type TaobaoXhotelOrderStatementGetResponse struct { - XMLName xml.Name `xml:"xhotel_order_statement_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - Results []StatementOrder `json:"results,omitempty" xml:"results>statement_order,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderUpdateAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelOrderUpdateAPIRequest.go new file mode 100644 index 0000000000..b1c3636724 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderUpdateAPIRequest.go @@ -0,0 +1,122 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店订单发货接口 API请求 +taobao.xhotel.order.update + +卖家确认订单或者取消订单,适用于预付、面付、信用住订单 +*/ +type TaobaoXhotelOrderUpdateAPIRequest struct { + model.Params + // 订单号 + _tid int64 + // 操作的类型:1.确认无房(取消预订,710发送短信提醒买家申请退款)2.确认预订 3.入住 4.离店 5.noshow 6.关单 + _optType int64 + // 是否把代理直签的订单同步到酒店,Y为同步,N不同步 + _syncToHotel string + // 退款费用 + _refundFee int64 + // 取消类型,6 代表的是用户取消,reasonType=7代表的是小二协商 + _reasonType int64 + // 开票金额 + _invoiceAmount int64 +} + +// 初始化TaobaoXhotelOrderUpdateAPIRequest对象 +func NewTaobaoXhotelOrderUpdateRequest() *TaobaoXhotelOrderUpdateAPIRequest{ + return &TaobaoXhotelOrderUpdateAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderUpdateAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.update" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderUpdateAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Tid Setter +// 订单号 +func (r *TaobaoXhotelOrderUpdateAPIRequest) SetTid(_tid int64) error { + r._tid = _tid + r.Set("tid", _tid) + return nil +} + +// Tid Getter +func (r TaobaoXhotelOrderUpdateAPIRequest) GetTid() int64 { + return r._tid +} +// OptType Setter +// 操作的类型:1.确认无房(取消预订,710发送短信提醒买家申请退款)2.确认预订 3.入住 4.离店 5.noshow 6.关单 +func (r *TaobaoXhotelOrderUpdateAPIRequest) SetOptType(_optType int64) error { + r._optType = _optType + r.Set("opt_type", _optType) + return nil +} + +// OptType Getter +func (r TaobaoXhotelOrderUpdateAPIRequest) GetOptType() int64 { + return r._optType +} +// SyncToHotel Setter +// 是否把代理直签的订单同步到酒店,Y为同步,N不同步 +func (r *TaobaoXhotelOrderUpdateAPIRequest) SetSyncToHotel(_syncToHotel string) error { + r._syncToHotel = _syncToHotel + r.Set("sync_to_hotel", _syncToHotel) + return nil +} + +// SyncToHotel Getter +func (r TaobaoXhotelOrderUpdateAPIRequest) GetSyncToHotel() string { + return r._syncToHotel +} +// RefundFee Setter +// 退款费用 +func (r *TaobaoXhotelOrderUpdateAPIRequest) SetRefundFee(_refundFee int64) error { + r._refundFee = _refundFee + r.Set("refund_fee", _refundFee) + return nil +} + +// RefundFee Getter +func (r TaobaoXhotelOrderUpdateAPIRequest) GetRefundFee() int64 { + return r._refundFee +} +// ReasonType Setter +// 取消类型,6 代表的是用户取消,reasonType=7代表的是小二协商 +func (r *TaobaoXhotelOrderUpdateAPIRequest) SetReasonType(_reasonType int64) error { + r._reasonType = _reasonType + r.Set("reason_type", _reasonType) + return nil +} + +// ReasonType Getter +func (r TaobaoXhotelOrderUpdateAPIRequest) GetReasonType() int64 { + return r._reasonType +} +// InvoiceAmount Setter +// 开票金额 +func (r *TaobaoXhotelOrderUpdateAPIRequest) SetInvoiceAmount(_invoiceAmount int64) error { + r._invoiceAmount = _invoiceAmount + r.Set("invoice_amount", _invoiceAmount) + return nil +} + +// InvoiceAmount Getter +func (r TaobaoXhotelOrderUpdateAPIRequest) GetInvoiceAmount() int64 { + return r._invoiceAmount +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderUpdateAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderUpdateAPIResponse.go new file mode 100644 index 0000000000..e819f5f642 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderUpdateAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +酒店订单发货接口 API返回值 +taobao.xhotel.order.update + +卖家确认订单或者取消订单,适用于预付、面付、信用住订单 +*/ +type TaobaoXhotelOrderUpdateAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderUpdateAPIResponseModel +} + +// 酒店订单发货接口 成功返回结果 +type TaobaoXhotelOrderUpdateAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_update_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回提示信息 + Result string `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderUpdateConfirmcodeAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelOrderUpdateConfirmcodeAPIRequest.go new file mode 100644 index 0000000000..1bcef8f476 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderUpdateConfirmcodeAPIRequest.go @@ -0,0 +1,52 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +推送及更新订单确认号 API请求 +taobao.xhotel.order.update.confirmcode + +商家拿到订单确认号后,异步推送给飞猪或更新给飞猪。订单确认号用于到店查无时的紧急查单依据。 +*/ +type TaobaoXhotelOrderUpdateConfirmcodeAPIRequest struct { + model.Params + // 系统入参 + _param *UpdateOrderConfirmCodeParam +} + +// 初始化TaobaoXhotelOrderUpdateConfirmcodeAPIRequest对象 +func NewTaobaoXhotelOrderUpdateConfirmcodeRequest() *TaobaoXhotelOrderUpdateConfirmcodeAPIRequest{ + return &TaobaoXhotelOrderUpdateConfirmcodeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelOrderUpdateConfirmcodeAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.order.update.confirmcode" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelOrderUpdateConfirmcodeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 系统入参 +func (r *TaobaoXhotelOrderUpdateConfirmcodeAPIRequest) SetParam(_param *UpdateOrderConfirmCodeParam) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r TaobaoXhotelOrderUpdateConfirmcodeAPIRequest) GetParam() *UpdateOrderConfirmCodeParam { + return r._param +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderUpdateConfirmcodeAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderUpdateConfirmcodeAPIResponse.go new file mode 100644 index 0000000000..35b9333b07 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelOrderUpdateConfirmcodeAPIResponse.go @@ -0,0 +1,31 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +推送及更新订单确认号 API返回值 +taobao.xhotel.order.update.confirmcode + +商家拿到订单确认号后,异步推送给飞猪或更新给飞猪。订单确认号用于到店查无时的紧急查单依据。 +*/ +type TaobaoXhotelOrderUpdateConfirmcodeAPIResponse struct { + model.CommonResponse + TaobaoXhotelOrderUpdateConfirmcodeAPIResponseModel +} + +// 推送及更新订单确认号 成功返回结果 +type TaobaoXhotelOrderUpdateConfirmcodeAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_order_update_confirmcode_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误描述 + ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` + // 操作结果,成功返回success + Result string `json:"result,omitempty" xml:"result,omitempty"` + // 是否操作成功 + Error bool `json:"error,omitempty" xml:"error,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderUpdateConfirmcodeResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderUpdateConfirmcodeResponse.go deleted file mode 100644 index 28859cf25c..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelOrderUpdateConfirmcodeResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -推送及更新订单确认号 API返回值 -taobao.xhotel.order.update.confirmcode - -商家拿到订单确认号后,异步推送给飞猪或更新给飞猪。订单确认号用于到店查无时的紧急查单依据。 -*/ -type TaobaoXhotelOrderUpdateConfirmcodeAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderUpdateConfirmcodeResponse -} - -// 推送及更新订单确认号 成功返回结果 -type TaobaoXhotelOrderUpdateConfirmcodeResponse struct { - XMLName xml.Name `xml:"xhotel_order_update_confirmcode_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误描述 - ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` - // 操作结果,成功返回success - Result string `json:"result,omitempty" xml:"result,omitempty"` - // 是否操作成功 - Error bool `json:"error,omitempty" xml:"error,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelOrderUpdateResponse.go b/model/xhotelonlineorder/TaobaoXhotelOrderUpdateResponse.go deleted file mode 100644 index 3a0f248ecc..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelOrderUpdateResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -酒店订单发货接口 API返回值 -taobao.xhotel.order.update - -卖家确认订单或者取消订单,适用于预付、面付、信用住订单 -*/ -type TaobaoXhotelOrderUpdateAPIResponse struct { - model.CommonResponse - TaobaoXhotelOrderUpdateResponse -} - -// 酒店订单发货接口 成功返回结果 -type TaobaoXhotelOrderUpdateResponse struct { - XMLName xml.Name `xml:"xhotel_order_update_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回提示信息 - Result string `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xhotelonlineorder/TaobaoXhotelPmsGuestbillGetVtwoAPIRequest.go b/model/xhotelonlineorder/TaobaoXhotelPmsGuestbillGetVtwoAPIRequest.go new file mode 100644 index 0000000000..7debc29908 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelPmsGuestbillGetVtwoAPIRequest.go @@ -0,0 +1,108 @@ +package xhotelonlineorder + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +客人PMS账单信息查询 API请求 +taobao.xhotel.pms.guestbill.get.vtwo + +从pms获取客人账单信息 +*/ +type TaobaoXhotelPmsGuestbillGetVtwoAPIRequest struct { + model.Params + // 开票点税号 + _taxNum string + // 身份证后4位 + _shortIdNum string + // 房间号 + _roomNum string + // 请求id (32位唯一值) + _requestId string + // 用户渠道(0:未知,1:淘宝) + _userChannel int64 +} + +// 初始化TaobaoXhotelPmsGuestbillGetVtwoAPIRequest对象 +func NewTaobaoXhotelPmsGuestbillGetVtwoRequest() *TaobaoXhotelPmsGuestbillGetVtwoAPIRequest{ + return &TaobaoXhotelPmsGuestbillGetVtwoAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r TaobaoXhotelPmsGuestbillGetVtwoAPIRequest) GetApiMethodName() string { + return "taobao.xhotel.pms.guestbill.get.vtwo" +} + +// IRequest interface 方法, 获取API参数 +func (r TaobaoXhotelPmsGuestbillGetVtwoAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TaxNum Setter +// 开票点税号 +func (r *TaobaoXhotelPmsGuestbillGetVtwoAPIRequest) SetTaxNum(_taxNum string) error { + r._taxNum = _taxNum + r.Set("tax_num", _taxNum) + return nil +} + +// TaxNum Getter +func (r TaobaoXhotelPmsGuestbillGetVtwoAPIRequest) GetTaxNum() string { + return r._taxNum +} +// ShortIdNum Setter +// 身份证后4位 +func (r *TaobaoXhotelPmsGuestbillGetVtwoAPIRequest) SetShortIdNum(_shortIdNum string) error { + r._shortIdNum = _shortIdNum + r.Set("short_id_num", _shortIdNum) + return nil +} + +// ShortIdNum Getter +func (r TaobaoXhotelPmsGuestbillGetVtwoAPIRequest) GetShortIdNum() string { + return r._shortIdNum +} +// RoomNum Setter +// 房间号 +func (r *TaobaoXhotelPmsGuestbillGetVtwoAPIRequest) SetRoomNum(_roomNum string) error { + r._roomNum = _roomNum + r.Set("room_num", _roomNum) + return nil +} + +// RoomNum Getter +func (r TaobaoXhotelPmsGuestbillGetVtwoAPIRequest) GetRoomNum() string { + return r._roomNum +} +// RequestId Setter +// 请求id (32位唯一值) +func (r *TaobaoXhotelPmsGuestbillGetVtwoAPIRequest) SetRequestId(_requestId string) error { + r._requestId = _requestId + r.Set("request_id", _requestId) + return nil +} + +// RequestId Getter +func (r TaobaoXhotelPmsGuestbillGetVtwoAPIRequest) GetRequestId() string { + return r._requestId +} +// UserChannel Setter +// 用户渠道(0:未知,1:淘宝) +func (r *TaobaoXhotelPmsGuestbillGetVtwoAPIRequest) SetUserChannel(_userChannel int64) error { + r._userChannel = _userChannel + r.Set("user_channel", _userChannel) + return nil +} + +// UserChannel Getter +func (r TaobaoXhotelPmsGuestbillGetVtwoAPIRequest) GetUserChannel() int64 { + return r._userChannel +} diff --git a/model/xhotelonlineorder/TaobaoXhotelPmsGuestbillGetVtwoAPIResponse.go b/model/xhotelonlineorder/TaobaoXhotelPmsGuestbillGetVtwoAPIResponse.go new file mode 100644 index 0000000000..4cee742887 --- /dev/null +++ b/model/xhotelonlineorder/TaobaoXhotelPmsGuestbillGetVtwoAPIResponse.go @@ -0,0 +1,27 @@ +package xhotelonlineorder + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +客人PMS账单信息查询 API返回值 +taobao.xhotel.pms.guestbill.get.vtwo + +从pms获取客人账单信息 +*/ +type TaobaoXhotelPmsGuestbillGetVtwoAPIResponse struct { + model.CommonResponse + TaobaoXhotelPmsGuestbillGetVtwoAPIResponseModel +} + +// 客人PMS账单信息查询 成功返回结果 +type TaobaoXhotelPmsGuestbillGetVtwoAPIResponseModel struct { + XMLName xml.Name `xml:"xhotel_pms_guestbill_get_vtwo_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 查询结果集 + Result *TaobaoXhotelPmsGuestbillGetVtwoResultSet `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/xhotelonlineorder/TaobaoXhotelPmsGuestbillGetVtwoResponse.go b/model/xhotelonlineorder/TaobaoXhotelPmsGuestbillGetVtwoResponse.go deleted file mode 100644 index 72ed8d4cdd..0000000000 --- a/model/xhotelonlineorder/TaobaoXhotelPmsGuestbillGetVtwoResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xhotelonlineorder - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -客人PMS账单信息查询 API返回值 -taobao.xhotel.pms.guestbill.get.vtwo - -从pms获取客人账单信息 -*/ -type TaobaoXhotelPmsGuestbillGetVtwoAPIResponse struct { - model.CommonResponse - TaobaoXhotelPmsGuestbillGetVtwoResponse -} - -// 客人PMS账单信息查询 成功返回结果 -type TaobaoXhotelPmsGuestbillGetVtwoResponse struct { - XMLName xml.Name `xml:"xhotel_pms_guestbill_get_vtwo_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 查询结果集 - Result *TaobaoXhotelPmsGuestbillGetVtwoResultSet `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/xiami/AlibabaXiamiApiAlbumDetailGetAPIRequest.go b/model/xiami/AlibabaXiamiApiAlbumDetailGetAPIRequest.go new file mode 100644 index 0000000000..c736cd28ec --- /dev/null +++ b/model/xiami/AlibabaXiamiApiAlbumDetailGetAPIRequest.go @@ -0,0 +1,66 @@ +package xiami + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +虾米音乐专辑详情接口 API请求 +alibaba.xiami.api.album.detail.get + +虾米音乐专辑详情接口 +*/ +type AlibabaXiamiApiAlbumDetailGetAPIRequest struct { + model.Params + // 专辑ID + _id int64 + // 是否获取完整描述 + _fullDes bool +} + +// 初始化AlibabaXiamiApiAlbumDetailGetAPIRequest对象 +func NewAlibabaXiamiApiAlbumDetailGetRequest() *AlibabaXiamiApiAlbumDetailGetAPIRequest{ + return &AlibabaXiamiApiAlbumDetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaXiamiApiAlbumDetailGetAPIRequest) GetApiMethodName() string { + return "alibaba.xiami.api.album.detail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaXiamiApiAlbumDetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 专辑ID +func (r *AlibabaXiamiApiAlbumDetailGetAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaXiamiApiAlbumDetailGetAPIRequest) GetId() int64 { + return r._id +} +// FullDes Setter +// 是否获取完整描述 +func (r *AlibabaXiamiApiAlbumDetailGetAPIRequest) SetFullDes(_fullDes bool) error { + r._fullDes = _fullDes + r.Set("full_des", _fullDes) + return nil +} + +// FullDes Getter +func (r AlibabaXiamiApiAlbumDetailGetAPIRequest) GetFullDes() bool { + return r._fullDes +} diff --git a/model/xiami/AlibabaXiamiApiAlbumDetailGetAPIResponse.go b/model/xiami/AlibabaXiamiApiAlbumDetailGetAPIResponse.go new file mode 100644 index 0000000000..b57068b4e8 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiAlbumDetailGetAPIResponse.go @@ -0,0 +1,27 @@ +package xiami + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +虾米音乐专辑详情接口 API返回值 +alibaba.xiami.api.album.detail.get + +虾米音乐专辑详情接口 +*/ +type AlibabaXiamiApiAlbumDetailGetAPIResponse struct { + model.CommonResponse + AlibabaXiamiApiAlbumDetailGetAPIResponseModel +} + +// 虾米音乐专辑详情接口 成功返回结果 +type AlibabaXiamiApiAlbumDetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_xiami_api_album_detail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 专辑资料 + Data *AlbumDetail `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/xiami/AlibabaXiamiApiAlbumDetailGetResponse.go b/model/xiami/AlibabaXiamiApiAlbumDetailGetResponse.go deleted file mode 100644 index 56ab51853f..0000000000 --- a/model/xiami/AlibabaXiamiApiAlbumDetailGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xiami - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -虾米音乐专辑详情接口 API返回值 -alibaba.xiami.api.album.detail.get - -虾米音乐专辑详情接口 -*/ -type AlibabaXiamiApiAlbumDetailGetAPIResponse struct { - model.CommonResponse - AlibabaXiamiApiAlbumDetailGetResponse -} - -// 虾米音乐专辑详情接口 成功返回结果 -type AlibabaXiamiApiAlbumDetailGetResponse struct { - XMLName xml.Name `xml:"alibaba_xiami_api_album_detail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 专辑资料 - Data *AlbumDetail `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/xiami/AlibabaXiamiApiArtistAlbumsGetAPIRequest.go b/model/xiami/AlibabaXiamiApiArtistAlbumsGetAPIRequest.go new file mode 100644 index 0000000000..b522b7b73e --- /dev/null +++ b/model/xiami/AlibabaXiamiApiArtistAlbumsGetAPIRequest.go @@ -0,0 +1,80 @@ +package xiami + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +艺人专辑 API请求 +alibaba.xiami.api.artist.albums.get + +艺人专辑 +*/ +type AlibabaXiamiApiArtistAlbumsGetAPIRequest struct { + model.Params + // 歌曲数量 + _limit int64 + // 页码 + _page int64 + // 艺人id + _id int64 +} + +// 初始化AlibabaXiamiApiArtistAlbumsGetAPIRequest对象 +func NewAlibabaXiamiApiArtistAlbumsGetRequest() *AlibabaXiamiApiArtistAlbumsGetAPIRequest{ + return &AlibabaXiamiApiArtistAlbumsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaXiamiApiArtistAlbumsGetAPIRequest) GetApiMethodName() string { + return "alibaba.xiami.api.artist.albums.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaXiamiApiArtistAlbumsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Limit Setter +// 歌曲数量 +func (r *AlibabaXiamiApiArtistAlbumsGetAPIRequest) SetLimit(_limit int64) error { + r._limit = _limit + r.Set("limit", _limit) + return nil +} + +// Limit Getter +func (r AlibabaXiamiApiArtistAlbumsGetAPIRequest) GetLimit() int64 { + return r._limit +} +// Page Setter +// 页码 +func (r *AlibabaXiamiApiArtistAlbumsGetAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaXiamiApiArtistAlbumsGetAPIRequest) GetPage() int64 { + return r._page +} +// Id Setter +// 艺人id +func (r *AlibabaXiamiApiArtistAlbumsGetAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaXiamiApiArtistAlbumsGetAPIRequest) GetId() int64 { + return r._id +} diff --git a/model/xiami/AlibabaXiamiApiArtistAlbumsGetAPIResponse.go b/model/xiami/AlibabaXiamiApiArtistAlbumsGetAPIResponse.go new file mode 100644 index 0000000000..36ec1ee1e4 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiArtistAlbumsGetAPIResponse.go @@ -0,0 +1,27 @@ +package xiami + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +艺人专辑 API返回值 +alibaba.xiami.api.artist.albums.get + +艺人专辑 +*/ +type AlibabaXiamiApiArtistAlbumsGetAPIResponse struct { + model.CommonResponse + AlibabaXiamiApiArtistAlbumsGetAPIResponseModel +} + +// 艺人专辑 成功返回结果 +type AlibabaXiamiApiArtistAlbumsGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_xiami_api_artist_albums_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 艺人专辑结果 + Data *ArtistAlbumsResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/xiami/AlibabaXiamiApiArtistAlbumsGetResponse.go b/model/xiami/AlibabaXiamiApiArtistAlbumsGetResponse.go deleted file mode 100644 index bde86463eb..0000000000 --- a/model/xiami/AlibabaXiamiApiArtistAlbumsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xiami - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -艺人专辑 API返回值 -alibaba.xiami.api.artist.albums.get - -艺人专辑 -*/ -type AlibabaXiamiApiArtistAlbumsGetAPIResponse struct { - model.CommonResponse - AlibabaXiamiApiArtistAlbumsGetResponse -} - -// 艺人专辑 成功返回结果 -type AlibabaXiamiApiArtistAlbumsGetResponse struct { - XMLName xml.Name `xml:"alibaba_xiami_api_artist_albums_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 艺人专辑结果 - Data *ArtistAlbumsResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/xiami/AlibabaXiamiApiArtistDetailGetAPIRequest.go b/model/xiami/AlibabaXiamiApiArtistDetailGetAPIRequest.go new file mode 100644 index 0000000000..98321c3439 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiArtistDetailGetAPIRequest.go @@ -0,0 +1,66 @@ +package xiami + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +艺人详情 API请求 +alibaba.xiami.api.artist.detail.get + +艺人详情 +*/ +type AlibabaXiamiApiArtistDetailGetAPIRequest struct { + model.Params + // 艺人id + _id int64 + // 是否显示description, show为显示, 其他为不显示 + _description string +} + +// 初始化AlibabaXiamiApiArtistDetailGetAPIRequest对象 +func NewAlibabaXiamiApiArtistDetailGetRequest() *AlibabaXiamiApiArtistDetailGetAPIRequest{ + return &AlibabaXiamiApiArtistDetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaXiamiApiArtistDetailGetAPIRequest) GetApiMethodName() string { + return "alibaba.xiami.api.artist.detail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaXiamiApiArtistDetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 艺人id +func (r *AlibabaXiamiApiArtistDetailGetAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaXiamiApiArtistDetailGetAPIRequest) GetId() int64 { + return r._id +} +// Description Setter +// 是否显示description, show为显示, 其他为不显示 +func (r *AlibabaXiamiApiArtistDetailGetAPIRequest) SetDescription(_description string) error { + r._description = _description + r.Set("description", _description) + return nil +} + +// Description Getter +func (r AlibabaXiamiApiArtistDetailGetAPIRequest) GetDescription() string { + return r._description +} diff --git a/model/xiami/AlibabaXiamiApiArtistDetailGetAPIResponse.go b/model/xiami/AlibabaXiamiApiArtistDetailGetAPIResponse.go new file mode 100644 index 0000000000..e5108c597f --- /dev/null +++ b/model/xiami/AlibabaXiamiApiArtistDetailGetAPIResponse.go @@ -0,0 +1,27 @@ +package xiami + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +艺人详情 API返回值 +alibaba.xiami.api.artist.detail.get + +艺人详情 +*/ +type AlibabaXiamiApiArtistDetailGetAPIResponse struct { + model.CommonResponse + AlibabaXiamiApiArtistDetailGetAPIResponseModel +} + +// 艺人详情 成功返回结果 +type AlibabaXiamiApiArtistDetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_xiami_api_artist_detail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回数据 + Data *StandardArtist `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/xiami/AlibabaXiamiApiArtistDetailGetResponse.go b/model/xiami/AlibabaXiamiApiArtistDetailGetResponse.go deleted file mode 100644 index d5c2b557a3..0000000000 --- a/model/xiami/AlibabaXiamiApiArtistDetailGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xiami - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -艺人详情 API返回值 -alibaba.xiami.api.artist.detail.get - -艺人详情 -*/ -type AlibabaXiamiApiArtistDetailGetAPIResponse struct { - model.CommonResponse - AlibabaXiamiApiArtistDetailGetResponse -} - -// 艺人详情 成功返回结果 -type AlibabaXiamiApiArtistDetailGetResponse struct { - XMLName xml.Name `xml:"alibaba_xiami_api_artist_detail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回数据 - Data *StandardArtist `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/xiami/AlibabaXiamiApiArtistHotSongsGetAPIRequest.go b/model/xiami/AlibabaXiamiApiArtistHotSongsGetAPIRequest.go new file mode 100644 index 0000000000..116aaf699b --- /dev/null +++ b/model/xiami/AlibabaXiamiApiArtistHotSongsGetAPIRequest.go @@ -0,0 +1,52 @@ +package xiami + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +热门歌曲 API请求 +alibaba.xiami.api.artist.hotSongs.get + +热门歌曲 +*/ +type AlibabaXiamiApiArtistHotSongsGetAPIRequest struct { + model.Params + // 艺人id + _id int64 +} + +// 初始化AlibabaXiamiApiArtistHotSongsGetAPIRequest对象 +func NewAlibabaXiamiApiArtistHotSongsGetRequest() *AlibabaXiamiApiArtistHotSongsGetAPIRequest{ + return &AlibabaXiamiApiArtistHotSongsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaXiamiApiArtistHotSongsGetAPIRequest) GetApiMethodName() string { + return "alibaba.xiami.api.artist.hotSongs.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaXiamiApiArtistHotSongsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 艺人id +func (r *AlibabaXiamiApiArtistHotSongsGetAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaXiamiApiArtistHotSongsGetAPIRequest) GetId() int64 { + return r._id +} diff --git a/model/xiami/AlibabaXiamiApiArtistHotSongsGetAPIResponse.go b/model/xiami/AlibabaXiamiApiArtistHotSongsGetAPIResponse.go new file mode 100644 index 0000000000..05d809f0d3 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiArtistHotSongsGetAPIResponse.go @@ -0,0 +1,27 @@ +package xiami + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +热门歌曲 API返回值 +alibaba.xiami.api.artist.hotSongs.get + +热门歌曲 +*/ +type AlibabaXiamiApiArtistHotSongsGetAPIResponse struct { + model.CommonResponse + AlibabaXiamiApiArtistHotSongsGetAPIResponseModel +} + +// 热门歌曲 成功返回结果 +type AlibabaXiamiApiArtistHotSongsGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_xiami_api_artist_hotSongs_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Data *HotSongsResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/xiami/AlibabaXiamiApiArtistHotSongsGetResponse.go b/model/xiami/AlibabaXiamiApiArtistHotSongsGetResponse.go deleted file mode 100644 index 24a6cd3940..0000000000 --- a/model/xiami/AlibabaXiamiApiArtistHotSongsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xiami - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -热门歌曲 API返回值 -alibaba.xiami.api.artist.hotSongs.get - -热门歌曲 -*/ -type AlibabaXiamiApiArtistHotSongsGetAPIResponse struct { - model.CommonResponse - AlibabaXiamiApiArtistHotSongsGetResponse -} - -// 热门歌曲 成功返回结果 -type AlibabaXiamiApiArtistHotSongsGetResponse struct { - XMLName xml.Name `xml:"alibaba_xiami_api_artist_hotSongs_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Data *HotSongsResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/xiami/AlibabaXiamiApiArtistMusiclistGetAPIRequest.go b/model/xiami/AlibabaXiamiApiArtistMusiclistGetAPIRequest.go new file mode 100644 index 0000000000..40d2c434bd --- /dev/null +++ b/model/xiami/AlibabaXiamiApiArtistMusiclistGetAPIRequest.go @@ -0,0 +1,66 @@ +package xiami + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +热门艺人 API请求 +alibaba.xiami.api.artist.musiclist.get + +热门艺人 +*/ +type AlibabaXiamiApiArtistMusiclistGetAPIRequest struct { + model.Params + // 语种, 有all, chinese, musician, english, japanese, korea + _type string + // 所有、男、女、组合分别为(all、male、female、combination) + _order string +} + +// 初始化AlibabaXiamiApiArtistMusiclistGetAPIRequest对象 +func NewAlibabaXiamiApiArtistMusiclistGetRequest() *AlibabaXiamiApiArtistMusiclistGetAPIRequest{ + return &AlibabaXiamiApiArtistMusiclistGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaXiamiApiArtistMusiclistGetAPIRequest) GetApiMethodName() string { + return "alibaba.xiami.api.artist.musiclist.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaXiamiApiArtistMusiclistGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// 语种, 有all, chinese, musician, english, japanese, korea +func (r *AlibabaXiamiApiArtistMusiclistGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaXiamiApiArtistMusiclistGetAPIRequest) GetType() string { + return r._type +} +// Order Setter +// 所有、男、女、组合分别为(all、male、female、combination) +func (r *AlibabaXiamiApiArtistMusiclistGetAPIRequest) SetOrder(_order string) error { + r._order = _order + r.Set("order", _order) + return nil +} + +// Order Getter +func (r AlibabaXiamiApiArtistMusiclistGetAPIRequest) GetOrder() string { + return r._order +} diff --git a/model/xiami/AlibabaXiamiApiArtistMusiclistGetAPIResponse.go b/model/xiami/AlibabaXiamiApiArtistMusiclistGetAPIResponse.go new file mode 100644 index 0000000000..67bf663e10 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiArtistMusiclistGetAPIResponse.go @@ -0,0 +1,27 @@ +package xiami + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +热门艺人 API返回值 +alibaba.xiami.api.artist.musiclist.get + +热门艺人 +*/ +type AlibabaXiamiApiArtistMusiclistGetAPIResponse struct { + model.CommonResponse + AlibabaXiamiApiArtistMusiclistGetAPIResponseModel +} + +// 热门艺人 成功返回结果 +type AlibabaXiamiApiArtistMusiclistGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_xiami_api_artist_musiclist_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // artist_music_list_result + ArtistMusicListResult *AlibabaXiamiApiArtistMusiclistGetStruct `json:"artist_music_list_result,omitempty" xml:"artist_music_list_result,omitempty"` +} diff --git a/model/xiami/AlibabaXiamiApiArtistMusiclistGetResponse.go b/model/xiami/AlibabaXiamiApiArtistMusiclistGetResponse.go deleted file mode 100644 index 5f6ad97344..0000000000 --- a/model/xiami/AlibabaXiamiApiArtistMusiclistGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xiami - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -热门艺人 API返回值 -alibaba.xiami.api.artist.musiclist.get - -热门艺人 -*/ -type AlibabaXiamiApiArtistMusiclistGetAPIResponse struct { - model.CommonResponse - AlibabaXiamiApiArtistMusiclistGetResponse -} - -// 热门艺人 成功返回结果 -type AlibabaXiamiApiArtistMusiclistGetResponse struct { - XMLName xml.Name `xml:"alibaba_xiami_api_artist_musiclist_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // artist_music_list_result - ArtistMusicListResult *AlibabaXiamiApiArtistMusiclistGetStruct `json:"artist_music_list_result,omitempty" xml:"artist_music_list_result,omitempty"` -} diff --git a/model/xiami/AlibabaXiamiApiCollectDetailGetAPIRequest.go b/model/xiami/AlibabaXiamiApiCollectDetailGetAPIRequest.go new file mode 100644 index 0000000000..be8aad07b9 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiCollectDetailGetAPIRequest.go @@ -0,0 +1,80 @@ +package xiami + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +虾米音乐精选集详情接口 API请求 +alibaba.xiami.api.collect.detail.get + +虾米音乐精选集详情接口 +*/ +type AlibabaXiamiApiCollectDetailGetAPIRequest struct { + model.Params + // 精选集ID + _id int64 + // 是否获取完整描述 + _fullDes bool + // 是否需要tag, show为需要, 其他为不需要 + _tag string +} + +// 初始化AlibabaXiamiApiCollectDetailGetAPIRequest对象 +func NewAlibabaXiamiApiCollectDetailGetRequest() *AlibabaXiamiApiCollectDetailGetAPIRequest{ + return &AlibabaXiamiApiCollectDetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaXiamiApiCollectDetailGetAPIRequest) GetApiMethodName() string { + return "alibaba.xiami.api.collect.detail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaXiamiApiCollectDetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Id Setter +// 精选集ID +func (r *AlibabaXiamiApiCollectDetailGetAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaXiamiApiCollectDetailGetAPIRequest) GetId() int64 { + return r._id +} +// FullDes Setter +// 是否获取完整描述 +func (r *AlibabaXiamiApiCollectDetailGetAPIRequest) SetFullDes(_fullDes bool) error { + r._fullDes = _fullDes + r.Set("full_des", _fullDes) + return nil +} + +// FullDes Getter +func (r AlibabaXiamiApiCollectDetailGetAPIRequest) GetFullDes() bool { + return r._fullDes +} +// Tag Setter +// 是否需要tag, show为需要, 其他为不需要 +func (r *AlibabaXiamiApiCollectDetailGetAPIRequest) SetTag(_tag string) error { + r._tag = _tag + r.Set("tag", _tag) + return nil +} + +// Tag Getter +func (r AlibabaXiamiApiCollectDetailGetAPIRequest) GetTag() string { + return r._tag +} diff --git a/model/xiami/AlibabaXiamiApiCollectDetailGetAPIResponse.go b/model/xiami/AlibabaXiamiApiCollectDetailGetAPIResponse.go new file mode 100644 index 0000000000..4b105bb3f5 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiCollectDetailGetAPIResponse.go @@ -0,0 +1,27 @@ +package xiami + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +虾米音乐精选集详情接口 API返回值 +alibaba.xiami.api.collect.detail.get + +虾米音乐精选集详情接口 +*/ +type AlibabaXiamiApiCollectDetailGetAPIResponse struct { + model.CommonResponse + AlibabaXiamiApiCollectDetailGetAPIResponseModel +} + +// 虾米音乐精选集详情接口 成功返回结果 +type AlibabaXiamiApiCollectDetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_xiami_api_collect_detail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 精选集资料和对应歌曲列表 + Data *CollectDetail `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/xiami/AlibabaXiamiApiCollectDetailGetResponse.go b/model/xiami/AlibabaXiamiApiCollectDetailGetResponse.go deleted file mode 100644 index ac588d5e4a..0000000000 --- a/model/xiami/AlibabaXiamiApiCollectDetailGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xiami - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -虾米音乐精选集详情接口 API返回值 -alibaba.xiami.api.collect.detail.get - -虾米音乐精选集详情接口 -*/ -type AlibabaXiamiApiCollectDetailGetAPIResponse struct { - model.CommonResponse - AlibabaXiamiApiCollectDetailGetResponse -} - -// 虾米音乐精选集详情接口 成功返回结果 -type AlibabaXiamiApiCollectDetailGetResponse struct { - XMLName xml.Name `xml:"alibaba_xiami_api_collect_detail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 精选集资料和对应歌曲列表 - Data *CollectDetail `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/xiami/AlibabaXiamiApiContractIssignAPIRequest.go b/model/xiami/AlibabaXiamiApiContractIssignAPIRequest.go new file mode 100644 index 0000000000..eeb331070c --- /dev/null +++ b/model/xiami/AlibabaXiamiApiContractIssignAPIRequest.go @@ -0,0 +1,38 @@ +package xiami + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询是否签约 API请求 +alibaba.xiami.api.contract.issign + +查询是否签约 +*/ +type AlibabaXiamiApiContractIssignAPIRequest struct { + model.Params +} + +// 初始化AlibabaXiamiApiContractIssignAPIRequest对象 +func NewAlibabaXiamiApiContractIssignRequest() *AlibabaXiamiApiContractIssignAPIRequest{ + return &AlibabaXiamiApiContractIssignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaXiamiApiContractIssignAPIRequest) GetApiMethodName() string { + return "alibaba.xiami.api.contract.issign" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaXiamiApiContractIssignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/xiami/AlibabaXiamiApiContractIssignAPIResponse.go b/model/xiami/AlibabaXiamiApiContractIssignAPIResponse.go new file mode 100644 index 0000000000..3457f30a7e --- /dev/null +++ b/model/xiami/AlibabaXiamiApiContractIssignAPIResponse.go @@ -0,0 +1,27 @@ +package xiami + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询是否签约 API返回值 +alibaba.xiami.api.contract.issign + +查询是否签约 +*/ +type AlibabaXiamiApiContractIssignAPIResponse struct { + model.CommonResponse + AlibabaXiamiApiContractIssignAPIResponseModel +} + +// 查询是否签约 成功返回结果 +type AlibabaXiamiApiContractIssignAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_xiami_api_contract_issign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否已经签约 + Data string `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/xiami/AlibabaXiamiApiContractIssignResponse.go b/model/xiami/AlibabaXiamiApiContractIssignResponse.go deleted file mode 100644 index a586b77a88..0000000000 --- a/model/xiami/AlibabaXiamiApiContractIssignResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xiami - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询是否签约 API返回值 -alibaba.xiami.api.contract.issign - -查询是否签约 -*/ -type AlibabaXiamiApiContractIssignAPIResponse struct { - model.CommonResponse - AlibabaXiamiApiContractIssignResponse -} - -// 查询是否签约 成功返回结果 -type AlibabaXiamiApiContractIssignResponse struct { - XMLName xml.Name `xml:"alibaba_xiami_api_contract_issign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否已经签约 - Data string `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/xiami/AlibabaXiamiApiContractSignAPIRequest.go b/model/xiami/AlibabaXiamiApiContractSignAPIRequest.go new file mode 100644 index 0000000000..c1ad8fefa3 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiContractSignAPIRequest.go @@ -0,0 +1,38 @@ +package xiami + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +提供签约链接 API请求 +alibaba.xiami.api.contract.sign + +提供签约链接。in:商家id;out:签约url +*/ +type AlibabaXiamiApiContractSignAPIRequest struct { + model.Params +} + +// 初始化AlibabaXiamiApiContractSignAPIRequest对象 +func NewAlibabaXiamiApiContractSignRequest() *AlibabaXiamiApiContractSignAPIRequest{ + return &AlibabaXiamiApiContractSignAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaXiamiApiContractSignAPIRequest) GetApiMethodName() string { + return "alibaba.xiami.api.contract.sign" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaXiamiApiContractSignAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} diff --git a/model/xiami/AlibabaXiamiApiContractSignAPIResponse.go b/model/xiami/AlibabaXiamiApiContractSignAPIResponse.go new file mode 100644 index 0000000000..b906433698 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiContractSignAPIResponse.go @@ -0,0 +1,27 @@ +package xiami + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +提供签约链接 API返回值 +alibaba.xiami.api.contract.sign + +提供签约链接。in:商家id;out:签约url +*/ +type AlibabaXiamiApiContractSignAPIResponse struct { + model.CommonResponse + AlibabaXiamiApiContractSignAPIResponseModel +} + +// 提供签约链接 成功返回结果 +type AlibabaXiamiApiContractSignAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_xiami_api_contract_sign_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 签约链接 + Data string `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/xiami/AlibabaXiamiApiContractSignResponse.go b/model/xiami/AlibabaXiamiApiContractSignResponse.go deleted file mode 100644 index 4aaa548e3b..0000000000 --- a/model/xiami/AlibabaXiamiApiContractSignResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xiami - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -提供签约链接 API返回值 -alibaba.xiami.api.contract.sign - -提供签约链接。in:商家id;out:签约url -*/ -type AlibabaXiamiApiContractSignAPIResponse struct { - model.CommonResponse - AlibabaXiamiApiContractSignResponse -} - -// 提供签约链接 成功返回结果 -type AlibabaXiamiApiContractSignResponse struct { - XMLName xml.Name `xml:"alibaba_xiami_api_contract_sign_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 签约链接 - Data string `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/xiami/AlibabaXiamiApiMobileFigureimageGetAPIRequest.go b/model/xiami/AlibabaXiamiApiMobileFigureimageGetAPIRequest.go new file mode 100644 index 0000000000..f570dd3a2b --- /dev/null +++ b/model/xiami/AlibabaXiamiApiMobileFigureimageGetAPIRequest.go @@ -0,0 +1,108 @@ +package xiami + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取手机banner图 API请求 +alibaba.xiami.api.mobile.figureimage.get + +获取手机banner图 +*/ +type AlibabaXiamiApiMobileFigureimageGetAPIRequest struct { + model.Params + // 分页限制 + _limit int64 + // 类型 + _type string + // 客户端版本 + _av string + // 设备类型 + _deviceType string + // 设备ID + _deviceId string +} + +// 初始化AlibabaXiamiApiMobileFigureimageGetAPIRequest对象 +func NewAlibabaXiamiApiMobileFigureimageGetRequest() *AlibabaXiamiApiMobileFigureimageGetAPIRequest{ + return &AlibabaXiamiApiMobileFigureimageGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaXiamiApiMobileFigureimageGetAPIRequest) GetApiMethodName() string { + return "alibaba.xiami.api.mobile.figureimage.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaXiamiApiMobileFigureimageGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Limit Setter +// 分页限制 +func (r *AlibabaXiamiApiMobileFigureimageGetAPIRequest) SetLimit(_limit int64) error { + r._limit = _limit + r.Set("limit", _limit) + return nil +} + +// Limit Getter +func (r AlibabaXiamiApiMobileFigureimageGetAPIRequest) GetLimit() int64 { + return r._limit +} +// Type Setter +// 类型 +func (r *AlibabaXiamiApiMobileFigureimageGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaXiamiApiMobileFigureimageGetAPIRequest) GetType() string { + return r._type +} +// Av Setter +// 客户端版本 +func (r *AlibabaXiamiApiMobileFigureimageGetAPIRequest) SetAv(_av string) error { + r._av = _av + r.Set("av", _av) + return nil +} + +// Av Getter +func (r AlibabaXiamiApiMobileFigureimageGetAPIRequest) GetAv() string { + return r._av +} +// DeviceType Setter +// 设备类型 +func (r *AlibabaXiamiApiMobileFigureimageGetAPIRequest) SetDeviceType(_deviceType string) error { + r._deviceType = _deviceType + r.Set("device_type", _deviceType) + return nil +} + +// DeviceType Getter +func (r AlibabaXiamiApiMobileFigureimageGetAPIRequest) GetDeviceType() string { + return r._deviceType +} +// DeviceId Setter +// 设备ID +func (r *AlibabaXiamiApiMobileFigureimageGetAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r AlibabaXiamiApiMobileFigureimageGetAPIRequest) GetDeviceId() string { + return r._deviceId +} diff --git a/model/xiami/AlibabaXiamiApiMobileFigureimageGetAPIResponse.go b/model/xiami/AlibabaXiamiApiMobileFigureimageGetAPIResponse.go new file mode 100644 index 0000000000..afee67c722 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiMobileFigureimageGetAPIResponse.go @@ -0,0 +1,27 @@ +package xiami + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取手机banner图 API返回值 +alibaba.xiami.api.mobile.figureimage.get + +获取手机banner图 +*/ +type AlibabaXiamiApiMobileFigureimageGetAPIResponse struct { + model.CommonResponse + AlibabaXiamiApiMobileFigureimageGetAPIResponseModel +} + +// 获取手机banner图 成功返回结果 +type AlibabaXiamiApiMobileFigureimageGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_xiami_api_mobile_figureimage_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // mobile_figure_image_result + MobileFigureImageList []AlibabaXiamiApiMobileFigureimageGetStruct `json:"mobile_figure_image_list,omitempty" xml:"mobile_figure_image_list>alibaba_xiami_api_mobile_figureimage_get_struct,omitempty"` +} diff --git a/model/xiami/AlibabaXiamiApiMobileFigureimageGetResponse.go b/model/xiami/AlibabaXiamiApiMobileFigureimageGetResponse.go deleted file mode 100644 index 85735b0c7b..0000000000 --- a/model/xiami/AlibabaXiamiApiMobileFigureimageGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xiami - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取手机banner图 API返回值 -alibaba.xiami.api.mobile.figureimage.get - -获取手机banner图 -*/ -type AlibabaXiamiApiMobileFigureimageGetAPIResponse struct { - model.CommonResponse - AlibabaXiamiApiMobileFigureimageGetResponse -} - -// 获取手机banner图 成功返回结果 -type AlibabaXiamiApiMobileFigureimageGetResponse struct { - XMLName xml.Name `xml:"alibaba_xiami_api_mobile_figureimage_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // mobile_figure_image_result - MobileFigureImageList []AlibabaXiamiApiMobileFigureimageGetStruct `json:"mobile_figure_image_list,omitempty" xml:"mobile_figure_image_list>alibaba_xiami_api_mobile_figureimage_get_struct,omitempty"` -} diff --git a/model/xiami/AlibabaXiamiApiMvMusiclistGetAPIRequest.go b/model/xiami/AlibabaXiamiApiMvMusiclistGetAPIRequest.go new file mode 100644 index 0000000000..53131fcbe2 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiMvMusiclistGetAPIRequest.go @@ -0,0 +1,94 @@ +package xiami + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +乐馆mv列表 API请求 +alibaba.xiami.api.mv.musiclist.get + +乐馆mv列表 +*/ +type AlibabaXiamiApiMvMusiclistGetAPIRequest struct { + model.Params + // 语种, 有all, chinese, musician, english, japanese, korea + _type string + // 分组, 有recommend、hot、new + _order string + // 每页记录 + _limit int64 + // 当前页 + _page int64 +} + +// 初始化AlibabaXiamiApiMvMusiclistGetAPIRequest对象 +func NewAlibabaXiamiApiMvMusiclistGetRequest() *AlibabaXiamiApiMvMusiclistGetAPIRequest{ + return &AlibabaXiamiApiMvMusiclistGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaXiamiApiMvMusiclistGetAPIRequest) GetApiMethodName() string { + return "alibaba.xiami.api.mv.musiclist.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaXiamiApiMvMusiclistGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// 语种, 有all, chinese, musician, english, japanese, korea +func (r *AlibabaXiamiApiMvMusiclistGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaXiamiApiMvMusiclistGetAPIRequest) GetType() string { + return r._type +} +// Order Setter +// 分组, 有recommend、hot、new +func (r *AlibabaXiamiApiMvMusiclistGetAPIRequest) SetOrder(_order string) error { + r._order = _order + r.Set("order", _order) + return nil +} + +// Order Getter +func (r AlibabaXiamiApiMvMusiclistGetAPIRequest) GetOrder() string { + return r._order +} +// Limit Setter +// 每页记录 +func (r *AlibabaXiamiApiMvMusiclistGetAPIRequest) SetLimit(_limit int64) error { + r._limit = _limit + r.Set("limit", _limit) + return nil +} + +// Limit Getter +func (r AlibabaXiamiApiMvMusiclistGetAPIRequest) GetLimit() int64 { + return r._limit +} +// Page Setter +// 当前页 +func (r *AlibabaXiamiApiMvMusiclistGetAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaXiamiApiMvMusiclistGetAPIRequest) GetPage() int64 { + return r._page +} diff --git a/model/xiami/AlibabaXiamiApiMvMusiclistGetAPIResponse.go b/model/xiami/AlibabaXiamiApiMvMusiclistGetAPIResponse.go new file mode 100644 index 0000000000..9e90a5d190 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiMvMusiclistGetAPIResponse.go @@ -0,0 +1,27 @@ +package xiami + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +乐馆mv列表 API返回值 +alibaba.xiami.api.mv.musiclist.get + +乐馆mv列表 +*/ +type AlibabaXiamiApiMvMusiclistGetAPIResponse struct { + model.CommonResponse + AlibabaXiamiApiMvMusiclistGetAPIResponseModel +} + +// 乐馆mv列表 成功返回结果 +type AlibabaXiamiApiMvMusiclistGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_xiami_api_mv_musiclist_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // mv_music_list_result + MvMusicListResult *AlibabaXiamiApiMvMusiclistGetStruct `json:"mv_music_list_result,omitempty" xml:"mv_music_list_result,omitempty"` +} diff --git a/model/xiami/AlibabaXiamiApiMvMusiclistGetResponse.go b/model/xiami/AlibabaXiamiApiMvMusiclistGetResponse.go deleted file mode 100644 index 8b7a1761c6..0000000000 --- a/model/xiami/AlibabaXiamiApiMvMusiclistGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xiami - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -乐馆mv列表 API返回值 -alibaba.xiami.api.mv.musiclist.get - -乐馆mv列表 -*/ -type AlibabaXiamiApiMvMusiclistGetAPIResponse struct { - model.CommonResponse - AlibabaXiamiApiMvMusiclistGetResponse -} - -// 乐馆mv列表 成功返回结果 -type AlibabaXiamiApiMvMusiclistGetResponse struct { - XMLName xml.Name `xml:"alibaba_xiami_api_mv_musiclist_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // mv_music_list_result - MvMusicListResult *AlibabaXiamiApiMvMusiclistGetStruct `json:"mv_music_list_result,omitempty" xml:"mv_music_list_result,omitempty"` -} diff --git a/model/xiami/AlibabaXiamiApiRadioMyselfGetAPIRequest.go b/model/xiami/AlibabaXiamiApiRadioMyselfGetAPIRequest.go new file mode 100644 index 0000000000..108472f3a9 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiRadioMyselfGetAPIRequest.go @@ -0,0 +1,52 @@ +package xiami + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +我的电台 API请求 +alibaba.xiami.api.radio.myself.get + +我的电台 +*/ +type AlibabaXiamiApiRadioMyselfGetAPIRequest struct { + model.Params + // 歌曲数量 + _limit int64 +} + +// 初始化AlibabaXiamiApiRadioMyselfGetAPIRequest对象 +func NewAlibabaXiamiApiRadioMyselfGetRequest() *AlibabaXiamiApiRadioMyselfGetAPIRequest{ + return &AlibabaXiamiApiRadioMyselfGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaXiamiApiRadioMyselfGetAPIRequest) GetApiMethodName() string { + return "alibaba.xiami.api.radio.myself.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaXiamiApiRadioMyselfGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Limit Setter +// 歌曲数量 +func (r *AlibabaXiamiApiRadioMyselfGetAPIRequest) SetLimit(_limit int64) error { + r._limit = _limit + r.Set("limit", _limit) + return nil +} + +// Limit Getter +func (r AlibabaXiamiApiRadioMyselfGetAPIRequest) GetLimit() int64 { + return r._limit +} diff --git a/model/xiami/AlibabaXiamiApiRadioMyselfGetAPIResponse.go b/model/xiami/AlibabaXiamiApiRadioMyselfGetAPIResponse.go new file mode 100644 index 0000000000..a3d4cbac6a --- /dev/null +++ b/model/xiami/AlibabaXiamiApiRadioMyselfGetAPIResponse.go @@ -0,0 +1,27 @@ +package xiami + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +我的电台 API返回值 +alibaba.xiami.api.radio.myself.get + +我的电台 +*/ +type AlibabaXiamiApiRadioMyselfGetAPIResponse struct { + model.CommonResponse + AlibabaXiamiApiRadioMyselfGetAPIResponseModel +} + +// 我的电台 成功返回结果 +type AlibabaXiamiApiRadioMyselfGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_xiami_api_radio_myself_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 歌曲列表 + Data []Song `json:"data,omitempty" xml:"data>song,omitempty"` +} diff --git a/model/xiami/AlibabaXiamiApiRadioMyselfGetResponse.go b/model/xiami/AlibabaXiamiApiRadioMyselfGetResponse.go deleted file mode 100644 index aca585e60d..0000000000 --- a/model/xiami/AlibabaXiamiApiRadioMyselfGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xiami - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -我的电台 API返回值 -alibaba.xiami.api.radio.myself.get - -我的电台 -*/ -type AlibabaXiamiApiRadioMyselfGetAPIResponse struct { - model.CommonResponse - AlibabaXiamiApiRadioMyselfGetResponse -} - -// 我的电台 成功返回结果 -type AlibabaXiamiApiRadioMyselfGetResponse struct { - XMLName xml.Name `xml:"alibaba_xiami_api_radio_myself_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 歌曲列表 - Data []Song `json:"data,omitempty" xml:"data>song,omitempty"` -} diff --git a/model/xiami/AlibabaXiamiApiRadioSongsGetAPIRequest.go b/model/xiami/AlibabaXiamiApiRadioSongsGetAPIRequest.go new file mode 100644 index 0000000000..3f62591d68 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiRadioSongsGetAPIRequest.go @@ -0,0 +1,80 @@ +package xiami + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取电台歌曲 API请求 +alibaba.xiami.api.radio.songs.get + +获取电台songs +*/ +type AlibabaXiamiApiRadioSongsGetAPIRequest struct { + model.Params + // 电台类型 + _type int64 + // 电台id + _oid int64 + // 歌曲个数, 不传为20 + _limit int64 +} + +// 初始化AlibabaXiamiApiRadioSongsGetAPIRequest对象 +func NewAlibabaXiamiApiRadioSongsGetRequest() *AlibabaXiamiApiRadioSongsGetAPIRequest{ + return &AlibabaXiamiApiRadioSongsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaXiamiApiRadioSongsGetAPIRequest) GetApiMethodName() string { + return "alibaba.xiami.api.radio.songs.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaXiamiApiRadioSongsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// 电台类型 +func (r *AlibabaXiamiApiRadioSongsGetAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaXiamiApiRadioSongsGetAPIRequest) GetType() int64 { + return r._type +} +// Oid Setter +// 电台id +func (r *AlibabaXiamiApiRadioSongsGetAPIRequest) SetOid(_oid int64) error { + r._oid = _oid + r.Set("oid", _oid) + return nil +} + +// Oid Getter +func (r AlibabaXiamiApiRadioSongsGetAPIRequest) GetOid() int64 { + return r._oid +} +// Limit Setter +// 歌曲个数, 不传为20 +func (r *AlibabaXiamiApiRadioSongsGetAPIRequest) SetLimit(_limit int64) error { + r._limit = _limit + r.Set("limit", _limit) + return nil +} + +// Limit Getter +func (r AlibabaXiamiApiRadioSongsGetAPIRequest) GetLimit() int64 { + return r._limit +} diff --git a/model/xiami/AlibabaXiamiApiRadioSongsGetAPIResponse.go b/model/xiami/AlibabaXiamiApiRadioSongsGetAPIResponse.go new file mode 100644 index 0000000000..f25f63c18d --- /dev/null +++ b/model/xiami/AlibabaXiamiApiRadioSongsGetAPIResponse.go @@ -0,0 +1,27 @@ +package xiami + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取电台歌曲 API返回值 +alibaba.xiami.api.radio.songs.get + +获取电台songs +*/ +type AlibabaXiamiApiRadioSongsGetAPIResponse struct { + model.CommonResponse + AlibabaXiamiApiRadioSongsGetAPIResponseModel +} + +// 获取电台歌曲 成功返回结果 +type AlibabaXiamiApiRadioSongsGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_xiami_api_radio_songs_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 歌曲列表 + Data []StandardSong `json:"data,omitempty" xml:"data>standard_song,omitempty"` +} diff --git a/model/xiami/AlibabaXiamiApiRadioSongsGetResponse.go b/model/xiami/AlibabaXiamiApiRadioSongsGetResponse.go deleted file mode 100644 index 0e0a625ce8..0000000000 --- a/model/xiami/AlibabaXiamiApiRadioSongsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xiami - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取电台歌曲 API返回值 -alibaba.xiami.api.radio.songs.get - -获取电台songs -*/ -type AlibabaXiamiApiRadioSongsGetAPIResponse struct { - model.CommonResponse - AlibabaXiamiApiRadioSongsGetResponse -} - -// 获取电台歌曲 成功返回结果 -type AlibabaXiamiApiRadioSongsGetResponse struct { - XMLName xml.Name `xml:"alibaba_xiami_api_radio_songs_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 歌曲列表 - Data []StandardSong `json:"data,omitempty" xml:"data>standard_song,omitempty"` -} diff --git a/model/xiami/AlibabaXiamiApiRankDetailGetAPIRequest.go b/model/xiami/AlibabaXiamiApiRankDetailGetAPIRequest.go new file mode 100644 index 0000000000..859cc54464 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiRankDetailGetAPIRequest.go @@ -0,0 +1,66 @@ +package xiami + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +排行榜详情 API请求 +alibaba.xiami.api.rank.detail.get + +虾米排行榜详情数据 +*/ +type AlibabaXiamiApiRankDetailGetAPIRequest struct { + model.Params + // 榜单ID + _billboardId int64 + // 调用来源 + _bizCode string +} + +// 初始化AlibabaXiamiApiRankDetailGetAPIRequest对象 +func NewAlibabaXiamiApiRankDetailGetRequest() *AlibabaXiamiApiRankDetailGetAPIRequest{ + return &AlibabaXiamiApiRankDetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaXiamiApiRankDetailGetAPIRequest) GetApiMethodName() string { + return "alibaba.xiami.api.rank.detail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaXiamiApiRankDetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// BillboardId Setter +// 榜单ID +func (r *AlibabaXiamiApiRankDetailGetAPIRequest) SetBillboardId(_billboardId int64) error { + r._billboardId = _billboardId + r.Set("billboard_id", _billboardId) + return nil +} + +// BillboardId Getter +func (r AlibabaXiamiApiRankDetailGetAPIRequest) GetBillboardId() int64 { + return r._billboardId +} +// BizCode Setter +// 调用来源 +func (r *AlibabaXiamiApiRankDetailGetAPIRequest) SetBizCode(_bizCode string) error { + r._bizCode = _bizCode + r.Set("biz_code", _bizCode) + return nil +} + +// BizCode Getter +func (r AlibabaXiamiApiRankDetailGetAPIRequest) GetBizCode() string { + return r._bizCode +} diff --git a/model/xiami/AlibabaXiamiApiRankDetailGetAPIResponse.go b/model/xiami/AlibabaXiamiApiRankDetailGetAPIResponse.go new file mode 100644 index 0000000000..a6d5a84b6a --- /dev/null +++ b/model/xiami/AlibabaXiamiApiRankDetailGetAPIResponse.go @@ -0,0 +1,29 @@ +package xiami + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +排行榜详情 API返回值 +alibaba.xiami.api.rank.detail.get + +虾米排行榜详情数据 +*/ +type AlibabaXiamiApiRankDetailGetAPIResponse struct { + model.CommonResponse + AlibabaXiamiApiRankDetailGetAPIResponseModel +} + +// 排行榜详情 成功返回结果 +type AlibabaXiamiApiRankDetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_xiami_api_rank_detail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // msgCode + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // resultObj + ResultObj *BillboardItemVO `json:"result_obj,omitempty" xml:"result_obj,omitempty"` +} diff --git a/model/xiami/AlibabaXiamiApiRankDetailGetResponse.go b/model/xiami/AlibabaXiamiApiRankDetailGetResponse.go deleted file mode 100644 index 743cb6b775..0000000000 --- a/model/xiami/AlibabaXiamiApiRankDetailGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package xiami - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -排行榜详情 API返回值 -alibaba.xiami.api.rank.detail.get - -虾米排行榜详情数据 -*/ -type AlibabaXiamiApiRankDetailGetAPIResponse struct { - model.CommonResponse - AlibabaXiamiApiRankDetailGetResponse -} - -// 排行榜详情 成功返回结果 -type AlibabaXiamiApiRankDetailGetResponse struct { - XMLName xml.Name `xml:"alibaba_xiami_api_rank_detail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // msgCode - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // resultObj - ResultObj *BillboardItemVO `json:"result_obj,omitempty" xml:"result_obj,omitempty"` -} diff --git a/model/xiami/AlibabaXiamiApiRankSongsGetAPIRequest.go b/model/xiami/AlibabaXiamiApiRankSongsGetAPIRequest.go new file mode 100644 index 0000000000..4bcf115ada --- /dev/null +++ b/model/xiami/AlibabaXiamiApiRankSongsGetAPIRequest.go @@ -0,0 +1,52 @@ +package xiami + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +排行榜歌曲获取 API请求 +alibaba.xiami.api.rank.songs.get + +获取歌曲排行榜 +*/ +type AlibabaXiamiApiRankSongsGetAPIRequest struct { + model.Params + // 榜单类型:
虾米榜 music_all,music_oumei,music_ri,music_han,music_huayu;
虾米新歌榜 newmusic_all,newmusc_oumei,newmusic_ri,newmusic_han,newmusic_huayu;
全球媒体榜 hito,jingge,uk,billboard,oricon,mnet;
原创榜 music_original;
demo榜 music_demo;
陌陌榜 momo; + _type string +} + +// 初始化AlibabaXiamiApiRankSongsGetAPIRequest对象 +func NewAlibabaXiamiApiRankSongsGetRequest() *AlibabaXiamiApiRankSongsGetAPIRequest{ + return &AlibabaXiamiApiRankSongsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaXiamiApiRankSongsGetAPIRequest) GetApiMethodName() string { + return "alibaba.xiami.api.rank.songs.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaXiamiApiRankSongsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// 榜单类型:
虾米榜 music_all,music_oumei,music_ri,music_han,music_huayu;
虾米新歌榜 newmusic_all,newmusc_oumei,newmusic_ri,newmusic_han,newmusic_huayu;
全球媒体榜 hito,jingge,uk,billboard,oricon,mnet;
原创榜 music_original;
demo榜 music_demo;
陌陌榜 momo; +func (r *AlibabaXiamiApiRankSongsGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaXiamiApiRankSongsGetAPIRequest) GetType() string { + return r._type +} diff --git a/model/xiami/AlibabaXiamiApiRankSongsGetAPIResponse.go b/model/xiami/AlibabaXiamiApiRankSongsGetAPIResponse.go new file mode 100644 index 0000000000..097846d704 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiRankSongsGetAPIResponse.go @@ -0,0 +1,27 @@ +package xiami + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +排行榜歌曲获取 API返回值 +alibaba.xiami.api.rank.songs.get + +获取歌曲排行榜 +*/ +type AlibabaXiamiApiRankSongsGetAPIResponse struct { + model.CommonResponse + AlibabaXiamiApiRankSongsGetAPIResponseModel +} + +// 排行榜歌曲获取 成功返回结果 +type AlibabaXiamiApiRankSongsGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_xiami_api_rank_songs_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + Data *RankSongsData `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/xiami/AlibabaXiamiApiRankSongsGetResponse.go b/model/xiami/AlibabaXiamiApiRankSongsGetResponse.go deleted file mode 100644 index 902bab405f..0000000000 --- a/model/xiami/AlibabaXiamiApiRankSongsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xiami - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -排行榜歌曲获取 API返回值 -alibaba.xiami.api.rank.songs.get - -获取歌曲排行榜 -*/ -type AlibabaXiamiApiRankSongsGetAPIResponse struct { - model.CommonResponse - AlibabaXiamiApiRankSongsGetResponse -} - -// 排行榜歌曲获取 成功返回结果 -type AlibabaXiamiApiRankSongsGetResponse struct { - XMLName xml.Name `xml:"alibaba_xiami_api_rank_songs_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - Data *RankSongsData `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/xiami/AlibabaXiamiApiSearchHotwordsGetAPIRequest.go b/model/xiami/AlibabaXiamiApiSearchHotwordsGetAPIRequest.go new file mode 100644 index 0000000000..e09fc1adb7 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiSearchHotwordsGetAPIRequest.go @@ -0,0 +1,52 @@ +package xiami + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索热词 API请求 +alibaba.xiami.api.search.hotwords.get + +搜索热词 +*/ +type AlibabaXiamiApiSearchHotwordsGetAPIRequest struct { + model.Params + // 数量 + _limit int64 +} + +// 初始化AlibabaXiamiApiSearchHotwordsGetAPIRequest对象 +func NewAlibabaXiamiApiSearchHotwordsGetRequest() *AlibabaXiamiApiSearchHotwordsGetAPIRequest{ + return &AlibabaXiamiApiSearchHotwordsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaXiamiApiSearchHotwordsGetAPIRequest) GetApiMethodName() string { + return "alibaba.xiami.api.search.hotwords.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaXiamiApiSearchHotwordsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Limit Setter +// 数量 +func (r *AlibabaXiamiApiSearchHotwordsGetAPIRequest) SetLimit(_limit int64) error { + r._limit = _limit + r.Set("limit", _limit) + return nil +} + +// Limit Getter +func (r AlibabaXiamiApiSearchHotwordsGetAPIRequest) GetLimit() int64 { + return r._limit +} diff --git a/model/xiami/AlibabaXiamiApiSearchHotwordsGetAPIResponse.go b/model/xiami/AlibabaXiamiApiSearchHotwordsGetAPIResponse.go new file mode 100644 index 0000000000..e10b6dfb2c --- /dev/null +++ b/model/xiami/AlibabaXiamiApiSearchHotwordsGetAPIResponse.go @@ -0,0 +1,27 @@ +package xiami + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索热词 API返回值 +alibaba.xiami.api.search.hotwords.get + +搜索热词 +*/ +type AlibabaXiamiApiSearchHotwordsGetAPIResponse struct { + model.CommonResponse + AlibabaXiamiApiSearchHotwordsGetAPIResponseModel +} + +// 搜索热词 成功返回结果 +type AlibabaXiamiApiSearchHotwordsGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_xiami_api_search_hotwords_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回结果 + SearchHotWordsResult *AlibabaXiamiApiSearchHotwordsGetStruct `json:"search_hot_words_result,omitempty" xml:"search_hot_words_result,omitempty"` +} diff --git a/model/xiami/AlibabaXiamiApiSearchHotwordsGetResponse.go b/model/xiami/AlibabaXiamiApiSearchHotwordsGetResponse.go deleted file mode 100644 index cf10bae102..0000000000 --- a/model/xiami/AlibabaXiamiApiSearchHotwordsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xiami - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -搜索热词 API返回值 -alibaba.xiami.api.search.hotwords.get - -搜索热词 -*/ -type AlibabaXiamiApiSearchHotwordsGetAPIResponse struct { - model.CommonResponse - AlibabaXiamiApiSearchHotwordsGetResponse -} - -// 搜索热词 成功返回结果 -type AlibabaXiamiApiSearchHotwordsGetResponse struct { - XMLName xml.Name `xml:"alibaba_xiami_api_search_hotwords_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回结果 - SearchHotWordsResult *AlibabaXiamiApiSearchHotwordsGetStruct `json:"search_hot_words_result,omitempty" xml:"search_hot_words_result,omitempty"` -} diff --git a/model/xiami/AlibabaXiamiApiSearchLetterGetAPIRequest.go b/model/xiami/AlibabaXiamiApiSearchLetterGetAPIRequest.go new file mode 100644 index 0000000000..e30496b086 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiSearchLetterGetAPIRequest.go @@ -0,0 +1,52 @@ +package xiami + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索接口(首字母) API请求 +alibaba.xiami.api.search.letter.get + +搜索接口(首字母) +*/ +type AlibabaXiamiApiSearchLetterGetAPIRequest struct { + model.Params + // 搜索关键字 + _key string +} + +// 初始化AlibabaXiamiApiSearchLetterGetAPIRequest对象 +func NewAlibabaXiamiApiSearchLetterGetRequest() *AlibabaXiamiApiSearchLetterGetAPIRequest{ + return &AlibabaXiamiApiSearchLetterGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaXiamiApiSearchLetterGetAPIRequest) GetApiMethodName() string { + return "alibaba.xiami.api.search.letter.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaXiamiApiSearchLetterGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Key Setter +// 搜索关键字 +func (r *AlibabaXiamiApiSearchLetterGetAPIRequest) SetKey(_key string) error { + r._key = _key + r.Set("key", _key) + return nil +} + +// Key Getter +func (r AlibabaXiamiApiSearchLetterGetAPIRequest) GetKey() string { + return r._key +} diff --git a/model/xiami/AlibabaXiamiApiSearchLetterGetAPIResponse.go b/model/xiami/AlibabaXiamiApiSearchLetterGetAPIResponse.go new file mode 100644 index 0000000000..b24b6cd7b8 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiSearchLetterGetAPIResponse.go @@ -0,0 +1,27 @@ +package xiami + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索接口(首字母) API返回值 +alibaba.xiami.api.search.letter.get + +搜索接口(首字母) +*/ +type AlibabaXiamiApiSearchLetterGetAPIResponse struct { + model.CommonResponse + AlibabaXiamiApiSearchLetterGetAPIResponseModel +} + +// 搜索接口(首字母) 成功返回结果 +type AlibabaXiamiApiSearchLetterGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_xiami_api_search_letter_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // search_letter_result + SearchLetterResult *AlibabaXiamiApiSearchLetterGetStruct `json:"search_letter_result,omitempty" xml:"search_letter_result,omitempty"` +} diff --git a/model/xiami/AlibabaXiamiApiSearchLetterGetResponse.go b/model/xiami/AlibabaXiamiApiSearchLetterGetResponse.go deleted file mode 100644 index e41b7cdfee..0000000000 --- a/model/xiami/AlibabaXiamiApiSearchLetterGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xiami - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -搜索接口(首字母) API返回值 -alibaba.xiami.api.search.letter.get - -搜索接口(首字母) -*/ -type AlibabaXiamiApiSearchLetterGetAPIResponse struct { - model.CommonResponse - AlibabaXiamiApiSearchLetterGetResponse -} - -// 搜索接口(首字母) 成功返回结果 -type AlibabaXiamiApiSearchLetterGetResponse struct { - XMLName xml.Name `xml:"alibaba_xiami_api_search_letter_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // search_letter_result - SearchLetterResult *AlibabaXiamiApiSearchLetterGetStruct `json:"search_letter_result,omitempty" xml:"search_letter_result,omitempty"` -} diff --git a/model/xiami/AlibabaXiamiApiTagGenreAlbumGetAPIRequest.go b/model/xiami/AlibabaXiamiApiTagGenreAlbumGetAPIRequest.go new file mode 100644 index 0000000000..250b76da68 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiTagGenreAlbumGetAPIRequest.go @@ -0,0 +1,94 @@ +package xiami + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +虾米音乐-风格,流派专辑列表 API请求 +alibaba.xiami.api.tag.genre.album.get + +虾米音乐-风格,流派专辑列表 +*/ +type AlibabaXiamiApiTagGenreAlbumGetAPIRequest struct { + model.Params + // 1:风格,2:流派 + _type int64 + // 风格,流派id + _id int64 + // 页数 + _page int64 + // 每页数量 + _limit int64 +} + +// 初始化AlibabaXiamiApiTagGenreAlbumGetAPIRequest对象 +func NewAlibabaXiamiApiTagGenreAlbumGetRequest() *AlibabaXiamiApiTagGenreAlbumGetAPIRequest{ + return &AlibabaXiamiApiTagGenreAlbumGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaXiamiApiTagGenreAlbumGetAPIRequest) GetApiMethodName() string { + return "alibaba.xiami.api.tag.genre.album.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaXiamiApiTagGenreAlbumGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// 1:风格,2:流派 +func (r *AlibabaXiamiApiTagGenreAlbumGetAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaXiamiApiTagGenreAlbumGetAPIRequest) GetType() int64 { + return r._type +} +// Id Setter +// 风格,流派id +func (r *AlibabaXiamiApiTagGenreAlbumGetAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaXiamiApiTagGenreAlbumGetAPIRequest) GetId() int64 { + return r._id +} +// Page Setter +// 页数 +func (r *AlibabaXiamiApiTagGenreAlbumGetAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaXiamiApiTagGenreAlbumGetAPIRequest) GetPage() int64 { + return r._page +} +// Limit Setter +// 每页数量 +func (r *AlibabaXiamiApiTagGenreAlbumGetAPIRequest) SetLimit(_limit int64) error { + r._limit = _limit + r.Set("limit", _limit) + return nil +} + +// Limit Getter +func (r AlibabaXiamiApiTagGenreAlbumGetAPIRequest) GetLimit() int64 { + return r._limit +} diff --git a/model/xiami/AlibabaXiamiApiTagGenreAlbumGetAPIResponse.go b/model/xiami/AlibabaXiamiApiTagGenreAlbumGetAPIResponse.go new file mode 100644 index 0000000000..51ed8bb51b --- /dev/null +++ b/model/xiami/AlibabaXiamiApiTagGenreAlbumGetAPIResponse.go @@ -0,0 +1,27 @@ +package xiami + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +虾米音乐-风格,流派专辑列表 API返回值 +alibaba.xiami.api.tag.genre.album.get + +虾米音乐-风格,流派专辑列表 +*/ +type AlibabaXiamiApiTagGenreAlbumGetAPIResponse struct { + model.CommonResponse + AlibabaXiamiApiTagGenreAlbumGetAPIResponseModel +} + +// 虾米音乐-风格,流派专辑列表 成功返回结果 +type AlibabaXiamiApiTagGenreAlbumGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_xiami_api_tag_genre_album_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 风格,流派专辑列表 + Data *TagAlbumResult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/xiami/AlibabaXiamiApiTagGenreAlbumGetResponse.go b/model/xiami/AlibabaXiamiApiTagGenreAlbumGetResponse.go deleted file mode 100644 index 09794d159d..0000000000 --- a/model/xiami/AlibabaXiamiApiTagGenreAlbumGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xiami - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -虾米音乐-风格,流派专辑列表 API返回值 -alibaba.xiami.api.tag.genre.album.get - -虾米音乐-风格,流派专辑列表 -*/ -type AlibabaXiamiApiTagGenreAlbumGetAPIResponse struct { - model.CommonResponse - AlibabaXiamiApiTagGenreAlbumGetResponse -} - -// 虾米音乐-风格,流派专辑列表 成功返回结果 -type AlibabaXiamiApiTagGenreAlbumGetResponse struct { - XMLName xml.Name `xml:"alibaba_xiami_api_tag_genre_album_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 风格,流派专辑列表 - Data *TagAlbumResult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/xiami/AlibabaXiamiApiTagGenreSongGetAPIRequest.go b/model/xiami/AlibabaXiamiApiTagGenreSongGetAPIRequest.go new file mode 100644 index 0000000000..640f7cfe87 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiTagGenreSongGetAPIRequest.go @@ -0,0 +1,94 @@ +package xiami + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +虾米-风格,流派歌曲 API请求 +alibaba.xiami.api.tag.genre.song.get + +虾米-风格,流派歌曲 +*/ +type AlibabaXiamiApiTagGenreSongGetAPIRequest struct { + model.Params + // 1:风格,2:流派 + _type string + // 风格或流派id + _id int64 + // 页数 + _page int64 + // 每页数量 + _limit int64 +} + +// 初始化AlibabaXiamiApiTagGenreSongGetAPIRequest对象 +func NewAlibabaXiamiApiTagGenreSongGetRequest() *AlibabaXiamiApiTagGenreSongGetAPIRequest{ + return &AlibabaXiamiApiTagGenreSongGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaXiamiApiTagGenreSongGetAPIRequest) GetApiMethodName() string { + return "alibaba.xiami.api.tag.genre.song.get" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaXiamiApiTagGenreSongGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Type Setter +// 1:风格,2:流派 +func (r *AlibabaXiamiApiTagGenreSongGetAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r AlibabaXiamiApiTagGenreSongGetAPIRequest) GetType() string { + return r._type +} +// Id Setter +// 风格或流派id +func (r *AlibabaXiamiApiTagGenreSongGetAPIRequest) SetId(_id int64) error { + r._id = _id + r.Set("id", _id) + return nil +} + +// Id Getter +func (r AlibabaXiamiApiTagGenreSongGetAPIRequest) GetId() int64 { + return r._id +} +// Page Setter +// 页数 +func (r *AlibabaXiamiApiTagGenreSongGetAPIRequest) SetPage(_page int64) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r AlibabaXiamiApiTagGenreSongGetAPIRequest) GetPage() int64 { + return r._page +} +// Limit Setter +// 每页数量 +func (r *AlibabaXiamiApiTagGenreSongGetAPIRequest) SetLimit(_limit int64) error { + r._limit = _limit + r.Set("limit", _limit) + return nil +} + +// Limit Getter +func (r AlibabaXiamiApiTagGenreSongGetAPIRequest) GetLimit() int64 { + return r._limit +} diff --git a/model/xiami/AlibabaXiamiApiTagGenreSongGetAPIResponse.go b/model/xiami/AlibabaXiamiApiTagGenreSongGetAPIResponse.go new file mode 100644 index 0000000000..6b3b381431 --- /dev/null +++ b/model/xiami/AlibabaXiamiApiTagGenreSongGetAPIResponse.go @@ -0,0 +1,27 @@ +package xiami + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +虾米-风格,流派歌曲 API返回值 +alibaba.xiami.api.tag.genre.song.get + +虾米-风格,流派歌曲 +*/ +type AlibabaXiamiApiTagGenreSongGetAPIResponse struct { + model.CommonResponse + AlibabaXiamiApiTagGenreSongGetAPIResponseModel +} + +// 虾米-风格,流派歌曲 成功返回结果 +type AlibabaXiamiApiTagGenreSongGetAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_xiami_api_tag_genre_song_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 风格歌曲 + Data *TagGenreSongresult `json:"data,omitempty" xml:"data,omitempty"` +} diff --git a/model/xiami/AlibabaXiamiApiTagGenreSongGetResponse.go b/model/xiami/AlibabaXiamiApiTagGenreSongGetResponse.go deleted file mode 100644 index ead271b2ee..0000000000 --- a/model/xiami/AlibabaXiamiApiTagGenreSongGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xiami - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -虾米-风格,流派歌曲 API返回值 -alibaba.xiami.api.tag.genre.song.get - -虾米-风格,流派歌曲 -*/ -type AlibabaXiamiApiTagGenreSongGetAPIResponse struct { - model.CommonResponse - AlibabaXiamiApiTagGenreSongGetResponse -} - -// 虾米-风格,流派歌曲 成功返回结果 -type AlibabaXiamiApiTagGenreSongGetResponse struct { - XMLName xml.Name `xml:"alibaba_xiami_api_tag_genre_song_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 风格歌曲 - Data *TagGenreSongresult `json:"data,omitempty" xml:"data,omitempty"` -} diff --git a/model/xiamiatrist/XiamiContentArtistInfoQueryAPIRequest.go b/model/xiamiatrist/XiamiContentArtistInfoQueryAPIRequest.go new file mode 100644 index 0000000000..44e96ef7d0 --- /dev/null +++ b/model/xiamiatrist/XiamiContentArtistInfoQueryAPIRequest.go @@ -0,0 +1,94 @@ +package xiamiatrist + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索艺人列表 API请求 +xiami.content.artist.info.query + +根据查询条件,搜索相关艺人列表 +*/ +type XiamiContentArtistInfoQueryAPIRequest struct { + model.Params + // 性别:1男性 2女性 3乐队 + _gender int64 + // 语种:1华语 2日本 3韩国 4欧美 5其他 + _language int64 + // 流派: 1嘻哈(说唱),2流行,3摇滚,4布鲁斯,5爵士,6雷鬼,7世界音乐,8拉丁,9电子,10节奏布鲁斯,11实验,12轻音乐,13新世纪,14舞台 / 银幕 / 娱乐 * 15唱作人,16民谣,18金属,19中国特色,20乡村,21古典,22儿童,23有声书,24动漫,25朋克 + _genre int64 + // 分页信息 + _pageReq *PagingVo +} + +// 初始化XiamiContentArtistInfoQueryAPIRequest对象 +func NewXiamiContentArtistInfoQueryRequest() *XiamiContentArtistInfoQueryAPIRequest{ + return &XiamiContentArtistInfoQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r XiamiContentArtistInfoQueryAPIRequest) GetApiMethodName() string { + return "xiami.content.artist.info.query" +} + +// IRequest interface 方法, 获取API参数 +func (r XiamiContentArtistInfoQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Gender Setter +// 性别:1男性 2女性 3乐队 +func (r *XiamiContentArtistInfoQueryAPIRequest) SetGender(_gender int64) error { + r._gender = _gender + r.Set("gender", _gender) + return nil +} + +// Gender Getter +func (r XiamiContentArtistInfoQueryAPIRequest) GetGender() int64 { + return r._gender +} +// Language Setter +// 语种:1华语 2日本 3韩国 4欧美 5其他 +func (r *XiamiContentArtistInfoQueryAPIRequest) SetLanguage(_language int64) error { + r._language = _language + r.Set("language", _language) + return nil +} + +// Language Getter +func (r XiamiContentArtistInfoQueryAPIRequest) GetLanguage() int64 { + return r._language +} +// Genre Setter +// 流派: 1嘻哈(说唱),2流行,3摇滚,4布鲁斯,5爵士,6雷鬼,7世界音乐,8拉丁,9电子,10节奏布鲁斯,11实验,12轻音乐,13新世纪,14舞台 / 银幕 / 娱乐 * 15唱作人,16民谣,18金属,19中国特色,20乡村,21古典,22儿童,23有声书,24动漫,25朋克 +func (r *XiamiContentArtistInfoQueryAPIRequest) SetGenre(_genre int64) error { + r._genre = _genre + r.Set("genre", _genre) + return nil +} + +// Genre Getter +func (r XiamiContentArtistInfoQueryAPIRequest) GetGenre() int64 { + return r._genre +} +// PageReq Setter +// 分页信息 +func (r *XiamiContentArtistInfoQueryAPIRequest) SetPageReq(_pageReq *PagingVo) error { + r._pageReq = _pageReq + r.Set("page_req", _pageReq) + return nil +} + +// PageReq Getter +func (r XiamiContentArtistInfoQueryAPIRequest) GetPageReq() *PagingVo { + return r._pageReq +} diff --git a/model/xiamiatrist/XiamiContentArtistInfoQueryAPIResponse.go b/model/xiamiatrist/XiamiContentArtistInfoQueryAPIResponse.go new file mode 100644 index 0000000000..1005de4005 --- /dev/null +++ b/model/xiamiatrist/XiamiContentArtistInfoQueryAPIResponse.go @@ -0,0 +1,29 @@ +package xiamiatrist + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索艺人列表 API返回值 +xiami.content.artist.info.query + +根据查询条件,搜索相关艺人列表 +*/ +type XiamiContentArtistInfoQueryAPIResponse struct { + model.CommonResponse + XiamiContentArtistInfoQueryAPIResponseModel +} + +// 搜索艺人列表 成功返回结果 +type XiamiContentArtistInfoQueryAPIResponseModel struct { + XMLName xml.Name `xml:"xiami_content_artist_info_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的艺人分页信息 + ArtistPage *Page `json:"artist_page,omitempty" xml:"artist_page,omitempty"` + // 执行结果 + ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/xiamiatrist/XiamiContentArtistInfoQueryResponse.go b/model/xiamiatrist/XiamiContentArtistInfoQueryResponse.go deleted file mode 100644 index 1edca588b9..0000000000 --- a/model/xiamiatrist/XiamiContentArtistInfoQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package xiamiatrist - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -搜索艺人列表 API返回值 -xiami.content.artist.info.query - -根据查询条件,搜索相关艺人列表 -*/ -type XiamiContentArtistInfoQueryAPIResponse struct { - model.CommonResponse - XiamiContentArtistInfoQueryResponse -} - -// 搜索艺人列表 成功返回结果 -type XiamiContentArtistInfoQueryResponse struct { - XMLName xml.Name `xml:"xiami_content_artist_info_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的艺人分页信息 - ArtistPage *Page `json:"artist_page,omitempty" xml:"artist_page,omitempty"` - // 执行结果 - ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/xiamicontent/XiamiContentMvDetailGetAPIRequest.go b/model/xiamicontent/XiamiContentMvDetailGetAPIRequest.go new file mode 100644 index 0000000000..e489d55cd1 --- /dev/null +++ b/model/xiamicontent/XiamiContentMvDetailGetAPIRequest.go @@ -0,0 +1,52 @@ +package xiamicontent + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取mv详情 API请求 +xiami.content.mv.detail.get + +获取mv详情 +*/ +type XiamiContentMvDetailGetAPIRequest struct { + model.Params + // mvId + _mvIds []int64 +} + +// 初始化XiamiContentMvDetailGetAPIRequest对象 +func NewXiamiContentMvDetailGetRequest() *XiamiContentMvDetailGetAPIRequest{ + return &XiamiContentMvDetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r XiamiContentMvDetailGetAPIRequest) GetApiMethodName() string { + return "xiami.content.mv.detail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r XiamiContentMvDetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MvIds Setter +// mvId +func (r *XiamiContentMvDetailGetAPIRequest) SetMvIds(_mvIds []int64) error { + r._mvIds = _mvIds + r.Set("mv_ids", _mvIds) + return nil +} + +// MvIds Getter +func (r XiamiContentMvDetailGetAPIRequest) GetMvIds() []int64 { + return r._mvIds +} diff --git a/model/xiamicontent/XiamiContentMvDetailGetAPIResponse.go b/model/xiamicontent/XiamiContentMvDetailGetAPIResponse.go new file mode 100644 index 0000000000..345a34eb0a --- /dev/null +++ b/model/xiamicontent/XiamiContentMvDetailGetAPIResponse.go @@ -0,0 +1,29 @@ +package xiamicontent + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取mv详情 API返回值 +xiami.content.mv.detail.get + +获取mv详情 +*/ +type XiamiContentMvDetailGetAPIResponse struct { + model.CommonResponse + XiamiContentMvDetailGetAPIResponseModel +} + +// 获取mv详情 成功返回结果 +type XiamiContentMvDetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"xiami_content_mv_detail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // mv列表 + MvDtos []MvDto `json:"mv_dtos,omitempty" xml:"mv_dtos>mv_dto,omitempty"` + // 请求结果 + ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/xiamicontent/XiamiContentMvDetailGetResponse.go b/model/xiamicontent/XiamiContentMvDetailGetResponse.go deleted file mode 100644 index 71ef641a56..0000000000 --- a/model/xiamicontent/XiamiContentMvDetailGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package xiamicontent - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取mv详情 API返回值 -xiami.content.mv.detail.get - -获取mv详情 -*/ -type XiamiContentMvDetailGetAPIResponse struct { - model.CommonResponse - XiamiContentMvDetailGetResponse -} - -// 获取mv详情 成功返回结果 -type XiamiContentMvDetailGetResponse struct { - XMLName xml.Name `xml:"xiami_content_mv_detail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // mv列表 - MvDtos []MvDto `json:"mv_dtos,omitempty" xml:"mv_dtos>mv_dto,omitempty"` - // 请求结果 - ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/xiamicontent/XiamiContentSongsAudioGetAPIRequest.go b/model/xiamicontent/XiamiContentSongsAudioGetAPIRequest.go new file mode 100644 index 0000000000..19e9f686d7 --- /dev/null +++ b/model/xiamicontent/XiamiContentSongsAudioGetAPIRequest.go @@ -0,0 +1,52 @@ +package xiamicontent + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取歌曲音频 API请求 +xiami.content.songs.audio.get + +获取歌曲音频 +*/ +type XiamiContentSongsAudioGetAPIRequest struct { + model.Params + // 歌曲ID + _songIds []int64 +} + +// 初始化XiamiContentSongsAudioGetAPIRequest对象 +func NewXiamiContentSongsAudioGetRequest() *XiamiContentSongsAudioGetAPIRequest{ + return &XiamiContentSongsAudioGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r XiamiContentSongsAudioGetAPIRequest) GetApiMethodName() string { + return "xiami.content.songs.audio.get" +} + +// IRequest interface 方法, 获取API参数 +func (r XiamiContentSongsAudioGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SongIds Setter +// 歌曲ID +func (r *XiamiContentSongsAudioGetAPIRequest) SetSongIds(_songIds []int64) error { + r._songIds = _songIds + r.Set("song_ids", _songIds) + return nil +} + +// SongIds Getter +func (r XiamiContentSongsAudioGetAPIRequest) GetSongIds() []int64 { + return r._songIds +} diff --git a/model/xiamicontent/XiamiContentSongsAudioGetAPIResponse.go b/model/xiamicontent/XiamiContentSongsAudioGetAPIResponse.go new file mode 100644 index 0000000000..bd274414f6 --- /dev/null +++ b/model/xiamicontent/XiamiContentSongsAudioGetAPIResponse.go @@ -0,0 +1,29 @@ +package xiamicontent + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取歌曲音频 API返回值 +xiami.content.songs.audio.get + +获取歌曲音频 +*/ +type XiamiContentSongsAudioGetAPIResponse struct { + model.CommonResponse + XiamiContentSongsAudioGetAPIResponseModel +} + +// 获取歌曲音频 成功返回结果 +type XiamiContentSongsAudioGetAPIResponseModel struct { + XMLName xml.Name `xml:"xiami_content_songs_audio_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求结果信息 + ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 音频信息 + Audios []SongAudiosDto `json:"audios,omitempty" xml:"audios>song_audios_dto,omitempty"` +} diff --git a/model/xiamicontent/XiamiContentSongsAudioGetResponse.go b/model/xiamicontent/XiamiContentSongsAudioGetResponse.go deleted file mode 100644 index be40f66847..0000000000 --- a/model/xiamicontent/XiamiContentSongsAudioGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package xiamicontent - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取歌曲音频 API返回值 -xiami.content.songs.audio.get - -获取歌曲音频 -*/ -type XiamiContentSongsAudioGetAPIResponse struct { - model.CommonResponse - XiamiContentSongsAudioGetResponse -} - -// 获取歌曲音频 成功返回结果 -type XiamiContentSongsAudioGetResponse struct { - XMLName xml.Name `xml:"xiami_content_songs_audio_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求结果信息 - ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 音频信息 - Audios []SongAudiosDto `json:"audios,omitempty" xml:"audios>song_audios_dto,omitempty"` -} diff --git a/model/xiamicontent/XiamiContentSongsAudioGetrefrainAPIRequest.go b/model/xiamicontent/XiamiContentSongsAudioGetrefrainAPIRequest.go new file mode 100644 index 0000000000..5fa602c03a --- /dev/null +++ b/model/xiamicontent/XiamiContentSongsAudioGetrefrainAPIRequest.go @@ -0,0 +1,52 @@ +package xiamicontent + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取副歌信息 API请求 +xiami.content.songs.audio.getrefrain + +获取歌曲音频副歌 +*/ +type XiamiContentSongsAudioGetrefrainAPIRequest struct { + model.Params + // 歌曲ID + _songIds []int64 +} + +// 初始化XiamiContentSongsAudioGetrefrainAPIRequest对象 +func NewXiamiContentSongsAudioGetrefrainRequest() *XiamiContentSongsAudioGetrefrainAPIRequest{ + return &XiamiContentSongsAudioGetrefrainAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r XiamiContentSongsAudioGetrefrainAPIRequest) GetApiMethodName() string { + return "xiami.content.songs.audio.getrefrain" +} + +// IRequest interface 方法, 获取API参数 +func (r XiamiContentSongsAudioGetrefrainAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SongIds Setter +// 歌曲ID +func (r *XiamiContentSongsAudioGetrefrainAPIRequest) SetSongIds(_songIds []int64) error { + r._songIds = _songIds + r.Set("song_ids", _songIds) + return nil +} + +// SongIds Getter +func (r XiamiContentSongsAudioGetrefrainAPIRequest) GetSongIds() []int64 { + return r._songIds +} diff --git a/model/xiamicontent/XiamiContentSongsAudioGetrefrainAPIResponse.go b/model/xiamicontent/XiamiContentSongsAudioGetrefrainAPIResponse.go new file mode 100644 index 0000000000..5de7838da5 --- /dev/null +++ b/model/xiamicontent/XiamiContentSongsAudioGetrefrainAPIResponse.go @@ -0,0 +1,29 @@ +package xiamicontent + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取副歌信息 API返回值 +xiami.content.songs.audio.getrefrain + +获取歌曲音频副歌 +*/ +type XiamiContentSongsAudioGetrefrainAPIResponse struct { + model.CommonResponse + XiamiContentSongsAudioGetrefrainAPIResponseModel +} + +// 获取副歌信息 成功返回结果 +type XiamiContentSongsAudioGetrefrainAPIResponseModel struct { + XMLName xml.Name `xml:"xiami_content_songs_audio_getrefrain_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求结果信息 + ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 音频信息 + Audios []SongAudiosDto `json:"audios,omitempty" xml:"audios>song_audios_dto,omitempty"` +} diff --git a/model/xiamicontent/XiamiContentSongsAudioGetrefrainResponse.go b/model/xiamicontent/XiamiContentSongsAudioGetrefrainResponse.go deleted file mode 100644 index 1ad8e357ac..0000000000 --- a/model/xiamicontent/XiamiContentSongsAudioGetrefrainResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package xiamicontent - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取副歌信息 API返回值 -xiami.content.songs.audio.getrefrain - -获取歌曲音频副歌 -*/ -type XiamiContentSongsAudioGetrefrainAPIResponse struct { - model.CommonResponse - XiamiContentSongsAudioGetrefrainResponse -} - -// 获取副歌信息 成功返回结果 -type XiamiContentSongsAudioGetrefrainResponse struct { - XMLName xml.Name `xml:"xiami_content_songs_audio_getrefrain_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求结果信息 - ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 音频信息 - Audios []SongAudiosDto `json:"audios,omitempty" xml:"audios>song_audios_dto,omitempty"` -} diff --git a/model/xiamicontent/XiamiContentSongsCollectGetAPIRequest.go b/model/xiamicontent/XiamiContentSongsCollectGetAPIRequest.go new file mode 100644 index 0000000000..3cada59c14 --- /dev/null +++ b/model/xiamicontent/XiamiContentSongsCollectGetAPIRequest.go @@ -0,0 +1,66 @@ +package xiamicontent + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取歌单详情接口 API请求 +xiami.content.songs.collect.get + +根据歌单id,获取歌单详情 +*/ +type XiamiContentSongsCollectGetAPIRequest struct { + model.Params + // 歌单id + _collectId int64 + // 分页信息 + _page *PagingVo +} + +// 初始化XiamiContentSongsCollectGetAPIRequest对象 +func NewXiamiContentSongsCollectGetRequest() *XiamiContentSongsCollectGetAPIRequest{ + return &XiamiContentSongsCollectGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r XiamiContentSongsCollectGetAPIRequest) GetApiMethodName() string { + return "xiami.content.songs.collect.get" +} + +// IRequest interface 方法, 获取API参数 +func (r XiamiContentSongsCollectGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// CollectId Setter +// 歌单id +func (r *XiamiContentSongsCollectGetAPIRequest) SetCollectId(_collectId int64) error { + r._collectId = _collectId + r.Set("collect_id", _collectId) + return nil +} + +// CollectId Getter +func (r XiamiContentSongsCollectGetAPIRequest) GetCollectId() int64 { + return r._collectId +} +// Page Setter +// 分页信息 +func (r *XiamiContentSongsCollectGetAPIRequest) SetPage(_page *PagingVo) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r XiamiContentSongsCollectGetAPIRequest) GetPage() *PagingVo { + return r._page +} diff --git a/model/xiamicontent/XiamiContentSongsCollectGetAPIResponse.go b/model/xiamicontent/XiamiContentSongsCollectGetAPIResponse.go new file mode 100644 index 0000000000..b5a8e2782c --- /dev/null +++ b/model/xiamicontent/XiamiContentSongsCollectGetAPIResponse.go @@ -0,0 +1,31 @@ +package xiamicontent + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取歌单详情接口 API返回值 +xiami.content.songs.collect.get + +根据歌单id,获取歌单详情 +*/ +type XiamiContentSongsCollectGetAPIResponse struct { + model.CommonResponse + XiamiContentSongsCollectGetAPIResponseModel +} + +// 获取歌单详情接口 成功返回结果 +type XiamiContentSongsCollectGetAPIResponseModel struct { + XMLName xml.Name `xml:"xiami_content_songs_collect_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的歌曲信息 + Songs *Page `json:"songs,omitempty" xml:"songs,omitempty"` + // 系统自动生成 + ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 歌单详情 + Collect *CollectDto `json:"collect,omitempty" xml:"collect,omitempty"` +} diff --git a/model/xiamicontent/XiamiContentSongsCollectGetResponse.go b/model/xiamicontent/XiamiContentSongsCollectGetResponse.go deleted file mode 100644 index 1306caf29f..0000000000 --- a/model/xiamicontent/XiamiContentSongsCollectGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package xiamicontent - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取歌单详情接口 API返回值 -xiami.content.songs.collect.get - -根据歌单id,获取歌单详情 -*/ -type XiamiContentSongsCollectGetAPIResponse struct { - model.CommonResponse - XiamiContentSongsCollectGetResponse -} - -// 获取歌单详情接口 成功返回结果 -type XiamiContentSongsCollectGetResponse struct { - XMLName xml.Name `xml:"xiami_content_songs_collect_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的歌曲信息 - Songs *Page `json:"songs,omitempty" xml:"songs,omitempty"` - // 系统自动生成 - ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 歌单详情 - Collect *CollectDto `json:"collect,omitempty" xml:"collect,omitempty"` -} diff --git a/model/xiamicontent/XiamiContentSongsInfoGetAPIRequest.go b/model/xiamicontent/XiamiContentSongsInfoGetAPIRequest.go new file mode 100644 index 0000000000..7e1d325ef9 --- /dev/null +++ b/model/xiamicontent/XiamiContentSongsInfoGetAPIRequest.go @@ -0,0 +1,52 @@ +package xiamicontent + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取歌曲信息 API请求 +xiami.content.songs.info.get + +(批量)获取歌曲信息 +*/ +type XiamiContentSongsInfoGetAPIRequest struct { + model.Params + // 歌曲ID + _songIds []int64 +} + +// 初始化XiamiContentSongsInfoGetAPIRequest对象 +func NewXiamiContentSongsInfoGetRequest() *XiamiContentSongsInfoGetAPIRequest{ + return &XiamiContentSongsInfoGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r XiamiContentSongsInfoGetAPIRequest) GetApiMethodName() string { + return "xiami.content.songs.info.get" +} + +// IRequest interface 方法, 获取API参数 +func (r XiamiContentSongsInfoGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SongIds Setter +// 歌曲ID +func (r *XiamiContentSongsInfoGetAPIRequest) SetSongIds(_songIds []int64) error { + r._songIds = _songIds + r.Set("song_ids", _songIds) + return nil +} + +// SongIds Getter +func (r XiamiContentSongsInfoGetAPIRequest) GetSongIds() []int64 { + return r._songIds +} diff --git a/model/xiamicontent/XiamiContentSongsInfoGetAPIResponse.go b/model/xiamicontent/XiamiContentSongsInfoGetAPIResponse.go new file mode 100644 index 0000000000..442b589ff7 --- /dev/null +++ b/model/xiamicontent/XiamiContentSongsInfoGetAPIResponse.go @@ -0,0 +1,29 @@ +package xiamicontent + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取歌曲信息 API返回值 +xiami.content.songs.info.get + +(批量)获取歌曲信息 +*/ +type XiamiContentSongsInfoGetAPIResponse struct { + model.CommonResponse + XiamiContentSongsInfoGetAPIResponseModel +} + +// 获取歌曲信息 成功返回结果 +type XiamiContentSongsInfoGetAPIResponseModel struct { + XMLName xml.Name `xml:"xiami_content_songs_info_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 系统自动生成 + ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 歌曲信息 + Songs []SongInfoDto `json:"songs,omitempty" xml:"songs>song_info_dto,omitempty"` +} diff --git a/model/xiamicontent/XiamiContentSongsInfoGetResponse.go b/model/xiamicontent/XiamiContentSongsInfoGetResponse.go deleted file mode 100644 index 620d077041..0000000000 --- a/model/xiamicontent/XiamiContentSongsInfoGetResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package xiamicontent - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取歌曲信息 API返回值 -xiami.content.songs.info.get - -(批量)获取歌曲信息 -*/ -type XiamiContentSongsInfoGetAPIResponse struct { - model.CommonResponse - XiamiContentSongsInfoGetResponse -} - -// 获取歌曲信息 成功返回结果 -type XiamiContentSongsInfoGetResponse struct { - XMLName xml.Name `xml:"xiami_content_songs_info_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 系统自动生成 - ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 歌曲信息 - Songs []SongInfoDto `json:"songs,omitempty" xml:"songs>song_info_dto,omitempty"` -} diff --git a/model/xiamicontent/XiamiContentSongsInfoQueryAPIRequest.go b/model/xiamicontent/XiamiContentSongsInfoQueryAPIRequest.go new file mode 100644 index 0000000000..9732bb210b --- /dev/null +++ b/model/xiamicontent/XiamiContentSongsInfoQueryAPIRequest.go @@ -0,0 +1,94 @@ +package xiamicontent + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索歌曲列表 API请求 +xiami.content.songs.info.query + +多维度查询歌曲列表 +*/ +type XiamiContentSongsInfoQueryAPIRequest struct { + model.Params + // 搜索条件 key支持songName/singerName/copyrightStatus/publishStatus/keyword + _searchTerms []SearchTermsDto + // tag搜索条件,tag尽量不要超过50个 + _tagOptional *SongCatsSearchDto + // 排序,默认按照最新排序 1最新 2本周最热 3本月最热 + _orderBy int64 + // 分页信息 + _page *PagingVo +} + +// 初始化XiamiContentSongsInfoQueryAPIRequest对象 +func NewXiamiContentSongsInfoQueryRequest() *XiamiContentSongsInfoQueryAPIRequest{ + return &XiamiContentSongsInfoQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r XiamiContentSongsInfoQueryAPIRequest) GetApiMethodName() string { + return "xiami.content.songs.info.query" +} + +// IRequest interface 方法, 获取API参数 +func (r XiamiContentSongsInfoQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SearchTerms Setter +// 搜索条件 key支持songName/singerName/copyrightStatus/publishStatus/keyword +func (r *XiamiContentSongsInfoQueryAPIRequest) SetSearchTerms(_searchTerms []SearchTermsDto) error { + r._searchTerms = _searchTerms + r.Set("search_terms", _searchTerms) + return nil +} + +// SearchTerms Getter +func (r XiamiContentSongsInfoQueryAPIRequest) GetSearchTerms() []SearchTermsDto { + return r._searchTerms +} +// TagOptional Setter +// tag搜索条件,tag尽量不要超过50个 +func (r *XiamiContentSongsInfoQueryAPIRequest) SetTagOptional(_tagOptional *SongCatsSearchDto) error { + r._tagOptional = _tagOptional + r.Set("tag_optional", _tagOptional) + return nil +} + +// TagOptional Getter +func (r XiamiContentSongsInfoQueryAPIRequest) GetTagOptional() *SongCatsSearchDto { + return r._tagOptional +} +// OrderBy Setter +// 排序,默认按照最新排序 1最新 2本周最热 3本月最热 +func (r *XiamiContentSongsInfoQueryAPIRequest) SetOrderBy(_orderBy int64) error { + r._orderBy = _orderBy + r.Set("order_by", _orderBy) + return nil +} + +// OrderBy Getter +func (r XiamiContentSongsInfoQueryAPIRequest) GetOrderBy() int64 { + return r._orderBy +} +// Page Setter +// 分页信息 +func (r *XiamiContentSongsInfoQueryAPIRequest) SetPage(_page *PagingVo) error { + r._page = _page + r.Set("page", _page) + return nil +} + +// Page Getter +func (r XiamiContentSongsInfoQueryAPIRequest) GetPage() *PagingVo { + return r._page +} diff --git a/model/xiamicontent/XiamiContentSongsInfoQueryAPIResponse.go b/model/xiamicontent/XiamiContentSongsInfoQueryAPIResponse.go new file mode 100644 index 0000000000..e4873d8178 --- /dev/null +++ b/model/xiamicontent/XiamiContentSongsInfoQueryAPIResponse.go @@ -0,0 +1,29 @@ +package xiamicontent + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +搜索歌曲列表 API返回值 +xiami.content.songs.info.query + +多维度查询歌曲列表 +*/ +type XiamiContentSongsInfoQueryAPIResponse struct { + model.CommonResponse + XiamiContentSongsInfoQueryAPIResponseModel +} + +// 搜索歌曲列表 成功返回结果 +type XiamiContentSongsInfoQueryAPIResponseModel struct { + XMLName xml.Name `xml:"xiami_content_songs_info_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 返回的歌曲信息 + Songs *Page `json:"songs,omitempty" xml:"songs,omitempty"` + // 系统自动生成 + ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/xiamicontent/XiamiContentSongsInfoQueryResponse.go b/model/xiamicontent/XiamiContentSongsInfoQueryResponse.go deleted file mode 100644 index 237aae6e46..0000000000 --- a/model/xiamicontent/XiamiContentSongsInfoQueryResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package xiamicontent - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -搜索歌曲列表 API返回值 -xiami.content.songs.info.query - -多维度查询歌曲列表 -*/ -type XiamiContentSongsInfoQueryAPIResponse struct { - model.CommonResponse - XiamiContentSongsInfoQueryResponse -} - -// 搜索歌曲列表 成功返回结果 -type XiamiContentSongsInfoQueryResponse struct { - XMLName xml.Name `xml:"xiami_content_songs_info_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 返回的歌曲信息 - Songs *Page `json:"songs,omitempty" xml:"songs,omitempty"` - // 系统自动生成 - ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/xiamiopen/XiamiApiSongDetailGetAPIRequest.go b/model/xiamiopen/XiamiApiSongDetailGetAPIRequest.go new file mode 100644 index 0000000000..937b81e8f9 --- /dev/null +++ b/model/xiamiopen/XiamiApiSongDetailGetAPIRequest.go @@ -0,0 +1,52 @@ +package xiamiopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取歌曲详情 API请求 +xiami.api.song.detail.get + +获取歌曲详情 +*/ +type XiamiApiSongDetailGetAPIRequest struct { + model.Params + // 歌曲id + _songIds []int64 +} + +// 初始化XiamiApiSongDetailGetAPIRequest对象 +func NewXiamiApiSongDetailGetRequest() *XiamiApiSongDetailGetAPIRequest{ + return &XiamiApiSongDetailGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r XiamiApiSongDetailGetAPIRequest) GetApiMethodName() string { + return "xiami.api.song.detail.get" +} + +// IRequest interface 方法, 获取API参数 +func (r XiamiApiSongDetailGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SongIds Setter +// 歌曲id +func (r *XiamiApiSongDetailGetAPIRequest) SetSongIds(_songIds []int64) error { + r._songIds = _songIds + r.Set("song_ids", _songIds) + return nil +} + +// SongIds Getter +func (r XiamiApiSongDetailGetAPIRequest) GetSongIds() []int64 { + return r._songIds +} diff --git a/model/xiamiopen/XiamiApiSongDetailGetAPIResponse.go b/model/xiamiopen/XiamiApiSongDetailGetAPIResponse.go new file mode 100644 index 0000000000..a29c11e6d5 --- /dev/null +++ b/model/xiamiopen/XiamiApiSongDetailGetAPIResponse.go @@ -0,0 +1,27 @@ +package xiamiopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取歌曲详情 API返回值 +xiami.api.song.detail.get + +获取歌曲详情 +*/ +type XiamiApiSongDetailGetAPIResponse struct { + model.CommonResponse + XiamiApiSongDetailGetAPIResponseModel +} + +// 获取歌曲详情 成功返回结果 +type XiamiApiSongDetailGetAPIResponseModel struct { + XMLName xml.Name `xml:"xiami_api_song_detail_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 歌曲信息 + SongDetailList []SongDetailDo `json:"song_detail_list,omitempty" xml:"song_detail_list>song_detail_do,omitempty"` +} diff --git a/model/xiamiopen/XiamiApiSongDetailGetResponse.go b/model/xiamiopen/XiamiApiSongDetailGetResponse.go deleted file mode 100644 index d1233e41f3..0000000000 --- a/model/xiamiopen/XiamiApiSongDetailGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xiamiopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取歌曲详情 API返回值 -xiami.api.song.detail.get - -获取歌曲详情 -*/ -type XiamiApiSongDetailGetAPIResponse struct { - model.CommonResponse - XiamiApiSongDetailGetResponse -} - -// 获取歌曲详情 成功返回结果 -type XiamiApiSongDetailGetResponse struct { - XMLName xml.Name `xml:"xiami_api_song_detail_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 歌曲信息 - SongDetailList []SongDetailDo `json:"song_detail_list,omitempty" xml:"song_detail_list>song_detail_do,omitempty"` -} diff --git a/model/xiamiopen/XiamiApiSongListenfileGetAPIRequest.go b/model/xiamiopen/XiamiApiSongListenfileGetAPIRequest.go new file mode 100644 index 0000000000..9a41a33f95 --- /dev/null +++ b/model/xiamiopen/XiamiApiSongListenfileGetAPIRequest.go @@ -0,0 +1,52 @@ +package xiamiopen + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取歌曲试听文件 API请求 +xiami.api.song.listenfile.get + +获取歌曲试听文件 +*/ +type XiamiApiSongListenfileGetAPIRequest struct { + model.Params + // 歌曲id + _songIds []int64 +} + +// 初始化XiamiApiSongListenfileGetAPIRequest对象 +func NewXiamiApiSongListenfileGetRequest() *XiamiApiSongListenfileGetAPIRequest{ + return &XiamiApiSongListenfileGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r XiamiApiSongListenfileGetAPIRequest) GetApiMethodName() string { + return "xiami.api.song.listenfile.get" +} + +// IRequest interface 方法, 获取API参数 +func (r XiamiApiSongListenfileGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SongIds Setter +// 歌曲id +func (r *XiamiApiSongListenfileGetAPIRequest) SetSongIds(_songIds []int64) error { + r._songIds = _songIds + r.Set("song_ids", _songIds) + return nil +} + +// SongIds Getter +func (r XiamiApiSongListenfileGetAPIRequest) GetSongIds() []int64 { + return r._songIds +} diff --git a/model/xiamiopen/XiamiApiSongListenfileGetAPIResponse.go b/model/xiamiopen/XiamiApiSongListenfileGetAPIResponse.go new file mode 100644 index 0000000000..c007018c2f --- /dev/null +++ b/model/xiamiopen/XiamiApiSongListenfileGetAPIResponse.go @@ -0,0 +1,27 @@ +package xiamiopen + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取歌曲试听文件 API返回值 +xiami.api.song.listenfile.get + +获取歌曲试听文件 +*/ +type XiamiApiSongListenfileGetAPIResponse struct { + model.CommonResponse + XiamiApiSongListenfileGetAPIResponseModel +} + +// 获取歌曲试听文件 成功返回结果 +type XiamiApiSongListenfileGetAPIResponseModel struct { + XMLName xml.Name `xml:"xiami_api_song_listenfile_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 歌曲试听文件列表 + SongPlayInfoList []SongPlayInfoDo `json:"song_play_info_list,omitempty" xml:"song_play_info_list>song_play_info_do,omitempty"` +} diff --git a/model/xiamiopen/XiamiApiSongListenfileGetResponse.go b/model/xiamiopen/XiamiApiSongListenfileGetResponse.go deleted file mode 100644 index c289f8a23e..0000000000 --- a/model/xiamiopen/XiamiApiSongListenfileGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package xiamiopen - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取歌曲试听文件 API返回值 -xiami.api.song.listenfile.get - -获取歌曲试听文件 -*/ -type XiamiApiSongListenfileGetAPIResponse struct { - model.CommonResponse - XiamiApiSongListenfileGetResponse -} - -// 获取歌曲试听文件 成功返回结果 -type XiamiApiSongListenfileGetResponse struct { - XMLName xml.Name `xml:"xiami_api_song_listenfile_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 歌曲试听文件列表 - SongPlayInfoList []SongPlayInfoDo `json:"song_play_info_list,omitempty" xml:"song_play_info_list>song_play_info_do,omitempty"` -} diff --git a/model/xiamitrace/XiamiContentResourceActionReportAPIRequest.go b/model/xiamitrace/XiamiContentResourceActionReportAPIRequest.go new file mode 100644 index 0000000000..7638604b61 --- /dev/null +++ b/model/xiamitrace/XiamiContentResourceActionReportAPIRequest.go @@ -0,0 +1,150 @@ +package xiamitrace + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +曲库开放平台内容行为上报接口 API请求 +xiami.content.resource.action.report + +合作方对接入的曲库开放内容上报行为日志 +*/ +type XiamiContentResourceActionReportAPIRequest struct { + model.Params + // 资源ID + _resourceId string + // 行为数量 + _num int64 + // 资源类型(可枚举): song(歌曲) + _resourceType string + // 行为类型(可枚举):LISTEN(主动试听)、PASSIVE_LISTEN(被动试听) + _action string + // 来源id,如歌单id + _fromId string + // 1推荐2歌单3标签 + _fromType int64 + // 用户id + _openId string + // 用户设备id + _utdid string +} + +// 初始化XiamiContentResourceActionReportAPIRequest对象 +func NewXiamiContentResourceActionReportRequest() *XiamiContentResourceActionReportAPIRequest{ + return &XiamiContentResourceActionReportAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r XiamiContentResourceActionReportAPIRequest) GetApiMethodName() string { + return "xiami.content.resource.action.report" +} + +// IRequest interface 方法, 获取API参数 +func (r XiamiContentResourceActionReportAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ResourceId Setter +// 资源ID +func (r *XiamiContentResourceActionReportAPIRequest) SetResourceId(_resourceId string) error { + r._resourceId = _resourceId + r.Set("resource_id", _resourceId) + return nil +} + +// ResourceId Getter +func (r XiamiContentResourceActionReportAPIRequest) GetResourceId() string { + return r._resourceId +} +// Num Setter +// 行为数量 +func (r *XiamiContentResourceActionReportAPIRequest) SetNum(_num int64) error { + r._num = _num + r.Set("num", _num) + return nil +} + +// Num Getter +func (r XiamiContentResourceActionReportAPIRequest) GetNum() int64 { + return r._num +} +// ResourceType Setter +// 资源类型(可枚举): song(歌曲) +func (r *XiamiContentResourceActionReportAPIRequest) SetResourceType(_resourceType string) error { + r._resourceType = _resourceType + r.Set("resource_type", _resourceType) + return nil +} + +// ResourceType Getter +func (r XiamiContentResourceActionReportAPIRequest) GetResourceType() string { + return r._resourceType +} +// Action Setter +// 行为类型(可枚举):LISTEN(主动试听)、PASSIVE_LISTEN(被动试听) +func (r *XiamiContentResourceActionReportAPIRequest) SetAction(_action string) error { + r._action = _action + r.Set("action", _action) + return nil +} + +// Action Getter +func (r XiamiContentResourceActionReportAPIRequest) GetAction() string { + return r._action +} +// FromId Setter +// 来源id,如歌单id +func (r *XiamiContentResourceActionReportAPIRequest) SetFromId(_fromId string) error { + r._fromId = _fromId + r.Set("from_id", _fromId) + return nil +} + +// FromId Getter +func (r XiamiContentResourceActionReportAPIRequest) GetFromId() string { + return r._fromId +} +// FromType Setter +// 1推荐2歌单3标签 +func (r *XiamiContentResourceActionReportAPIRequest) SetFromType(_fromType int64) error { + r._fromType = _fromType + r.Set("from_type", _fromType) + return nil +} + +// FromType Getter +func (r XiamiContentResourceActionReportAPIRequest) GetFromType() int64 { + return r._fromType +} +// OpenId Setter +// 用户id +func (r *XiamiContentResourceActionReportAPIRequest) SetOpenId(_openId string) error { + r._openId = _openId + r.Set("open_id", _openId) + return nil +} + +// OpenId Getter +func (r XiamiContentResourceActionReportAPIRequest) GetOpenId() string { + return r._openId +} +// Utdid Setter +// 用户设备id +func (r *XiamiContentResourceActionReportAPIRequest) SetUtdid(_utdid string) error { + r._utdid = _utdid + r.Set("utdid", _utdid) + return nil +} + +// Utdid Getter +func (r XiamiContentResourceActionReportAPIRequest) GetUtdid() string { + return r._utdid +} diff --git a/model/xiamitrace/XiamiContentResourceActionReportAPIResponse.go b/model/xiamitrace/XiamiContentResourceActionReportAPIResponse.go new file mode 100644 index 0000000000..10624debee --- /dev/null +++ b/model/xiamitrace/XiamiContentResourceActionReportAPIResponse.go @@ -0,0 +1,29 @@ +package xiamitrace + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +曲库开放平台内容行为上报接口 API返回值 +xiami.content.resource.action.report + +合作方对接入的曲库开放内容上报行为日志 +*/ +type XiamiContentResourceActionReportAPIResponse struct { + model.CommonResponse + XiamiContentResourceActionReportAPIResponseModel +} + +// 曲库开放平台内容行为上报接口 成功返回结果 +type XiamiContentResourceActionReportAPIResponseModel struct { + XMLName xml.Name `xml:"xiami_content_resource_action_report_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 上报结果: true(成功), false(失败) + Result bool `json:"result,omitempty" xml:"result,omitempty"` + // 返回结果码 + ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` +} diff --git a/model/xiamitrace/XiamiContentResourceActionReportResponse.go b/model/xiamitrace/XiamiContentResourceActionReportResponse.go deleted file mode 100644 index 4b97320700..0000000000 --- a/model/xiamitrace/XiamiContentResourceActionReportResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package xiamitrace - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -曲库开放平台内容行为上报接口 API返回值 -xiami.content.resource.action.report - -合作方对接入的曲库开放内容上报行为日志 -*/ -type XiamiContentResourceActionReportAPIResponse struct { - model.CommonResponse - XiamiContentResourceActionReportResponse -} - -// 曲库开放平台内容行为上报接口 成功返回结果 -type XiamiContentResourceActionReportResponse struct { - XMLName xml.Name `xml:"xiami_content_resource_action_report_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 上报结果: true(成功), false(失败) - Result bool `json:"result,omitempty" xml:"result,omitempty"` - // 返回结果码 - ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"` -} diff --git a/model/youkudsp/YoukuDspDeliveryResourceMultigetAPIRequest.go b/model/youkudsp/YoukuDspDeliveryResourceMultigetAPIRequest.go new file mode 100644 index 0000000000..e610a0d997 --- /dev/null +++ b/model/youkudsp/YoukuDspDeliveryResourceMultigetAPIRequest.go @@ -0,0 +1,108 @@ +package youkudsp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +优酷实时批量获取可投放设备资源 API请求 +youku.dsp.delivery.resource.multiget + +优酷实时获取可投放设备资源信息,为第三方渠道提供素材获取人群识别的api,支持批量获取 +*/ +type YoukuDspDeliveryResourceMultigetAPIRequest struct { + model.Params + // 渠道id + _channelId int64 + // 子渠道id + _subChannelId int64 + // 设备id串(md5加密),多个设备逗号隔开 + _deviceIds string + // 设备类型imei或者idfa + _deviceIdType string + // 投放类型push或者feed + _deliveryType string +} + +// 初始化YoukuDspDeliveryResourceMultigetAPIRequest对象 +func NewYoukuDspDeliveryResourceMultigetRequest() *YoukuDspDeliveryResourceMultigetAPIRequest{ + return &YoukuDspDeliveryResourceMultigetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetApiMethodName() string { + return "youku.dsp.delivery.resource.multiget" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// ChannelId Setter +// 渠道id +func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetChannelId(_channelId int64) error { + r._channelId = _channelId + r.Set("channel_id", _channelId) + return nil +} + +// ChannelId Getter +func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetChannelId() int64 { + return r._channelId +} +// SubChannelId Setter +// 子渠道id +func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetSubChannelId(_subChannelId int64) error { + r._subChannelId = _subChannelId + r.Set("sub_channel_id", _subChannelId) + return nil +} + +// SubChannelId Getter +func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetSubChannelId() int64 { + return r._subChannelId +} +// DeviceIds Setter +// 设备id串(md5加密),多个设备逗号隔开 +func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetDeviceIds(_deviceIds string) error { + r._deviceIds = _deviceIds + r.Set("device_ids", _deviceIds) + return nil +} + +// DeviceIds Getter +func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetDeviceIds() string { + return r._deviceIds +} +// DeviceIdType Setter +// 设备类型imei或者idfa +func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetDeviceIdType(_deviceIdType string) error { + r._deviceIdType = _deviceIdType + r.Set("device_id_type", _deviceIdType) + return nil +} + +// DeviceIdType Getter +func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetDeviceIdType() string { + return r._deviceIdType +} +// DeliveryType Setter +// 投放类型push或者feed +func (r *YoukuDspDeliveryResourceMultigetAPIRequest) SetDeliveryType(_deliveryType string) error { + r._deliveryType = _deliveryType + r.Set("delivery_type", _deliveryType) + return nil +} + +// DeliveryType Getter +func (r YoukuDspDeliveryResourceMultigetAPIRequest) GetDeliveryType() string { + return r._deliveryType +} diff --git a/model/youkudsp/YoukuDspDeliveryResourceMultigetAPIResponse.go b/model/youkudsp/YoukuDspDeliveryResourceMultigetAPIResponse.go new file mode 100644 index 0000000000..5458d87dc2 --- /dev/null +++ b/model/youkudsp/YoukuDspDeliveryResourceMultigetAPIResponse.go @@ -0,0 +1,35 @@ +package youkudsp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +优酷实时批量获取可投放设备资源 API返回值 +youku.dsp.delivery.resource.multiget + +优酷实时获取可投放设备资源信息,为第三方渠道提供素材获取人群识别的api,支持批量获取 +*/ +type YoukuDspDeliveryResourceMultigetAPIResponse struct { + model.CommonResponse + YoukuDspDeliveryResourceMultigetAPIResponseModel +} + +// 优酷实时批量获取可投放设备资源 成功返回结果 +type YoukuDspDeliveryResourceMultigetAPIResponseModel struct { + XMLName xml.Name `xml:"youku_dsp_delivery_resource_multiget_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 素材列表 + Models []DeliveryList `json:"models,omitempty" xml:"models>delivery_list,omitempty"` + // 错误码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 额外信息 + ExtraInfo string `json:"extra_info,omitempty" xml:"extra_info,omitempty"` + // 错误信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` + // 是否成功 + SuccessFlag bool `json:"success_flag,omitempty" xml:"success_flag,omitempty"` +} diff --git a/model/youkudsp/YoukuDspDeliveryResourceMultigetResponse.go b/model/youkudsp/YoukuDspDeliveryResourceMultigetResponse.go deleted file mode 100644 index 5a244e9de4..0000000000 --- a/model/youkudsp/YoukuDspDeliveryResourceMultigetResponse.go +++ /dev/null @@ -1,35 +0,0 @@ -package youkudsp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -优酷实时批量获取可投放设备资源 API返回值 -youku.dsp.delivery.resource.multiget - -优酷实时获取可投放设备资源信息,为第三方渠道提供素材获取人群识别的api,支持批量获取 -*/ -type YoukuDspDeliveryResourceMultigetAPIResponse struct { - model.CommonResponse - YoukuDspDeliveryResourceMultigetResponse -} - -// 优酷实时批量获取可投放设备资源 成功返回结果 -type YoukuDspDeliveryResourceMultigetResponse struct { - XMLName xml.Name `xml:"youku_dsp_delivery_resource_multiget_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 素材列表 - Models []DeliveryList `json:"models,omitempty" xml:"models>delivery_list,omitempty"` - // 错误码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 额外信息 - ExtraInfo string `json:"extra_info,omitempty" xml:"extra_info,omitempty"` - // 错误信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` - // 是否成功 - SuccessFlag bool `json:"success_flag,omitempty" xml:"success_flag,omitempty"` -} diff --git a/model/youkuott/YoukuMediaapiVideoSnapshotGetAPIRequest.go b/model/youkuott/YoukuMediaapiVideoSnapshotGetAPIRequest.go new file mode 100644 index 0000000000..2035e790a9 --- /dev/null +++ b/model/youkuott/YoukuMediaapiVideoSnapshotGetAPIRequest.go @@ -0,0 +1,52 @@ +package youkuott + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据视频ID查询视频缩微图 API请求 +youku.mediaapi.video.snapshot.get + +根据视频ID查询视频缩微图 +*/ +type YoukuMediaapiVideoSnapshotGetAPIRequest struct { + model.Params + // 视频id + _vid string +} + +// 初始化YoukuMediaapiVideoSnapshotGetAPIRequest对象 +func NewYoukuMediaapiVideoSnapshotGetRequest() *YoukuMediaapiVideoSnapshotGetAPIRequest{ + return &YoukuMediaapiVideoSnapshotGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuMediaapiVideoSnapshotGetAPIRequest) GetApiMethodName() string { + return "youku.mediaapi.video.snapshot.get" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuMediaapiVideoSnapshotGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Vid Setter +// 视频id +func (r *YoukuMediaapiVideoSnapshotGetAPIRequest) SetVid(_vid string) error { + r._vid = _vid + r.Set("vid", _vid) + return nil +} + +// Vid Getter +func (r YoukuMediaapiVideoSnapshotGetAPIRequest) GetVid() string { + return r._vid +} diff --git a/model/youkuott/YoukuMediaapiVideoSnapshotGetAPIResponse.go b/model/youkuott/YoukuMediaapiVideoSnapshotGetAPIResponse.go new file mode 100644 index 0000000000..f406b74ffb --- /dev/null +++ b/model/youkuott/YoukuMediaapiVideoSnapshotGetAPIResponse.go @@ -0,0 +1,31 @@ +package youkuott + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据视频ID查询视频缩微图 API返回值 +youku.mediaapi.video.snapshot.get + +根据视频ID查询视频缩微图 +*/ +type YoukuMediaapiVideoSnapshotGetAPIResponse struct { + model.CommonResponse + YoukuMediaapiVideoSnapshotGetAPIResponseModel +} + +// 根据视频ID查询视频缩微图 成功返回结果 +type YoukuMediaapiVideoSnapshotGetAPIResponseModel struct { + XMLName xml.Name `xml:"youku_mediaapi_video_snapshot_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 true:成功 false:失败(top成功标志) + IsSuccess string `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 数据 + ModelList []YoukuMediaapiVideoSnapshotGetStruct `json:"model_list,omitempty" xml:"model_list>youku_mediaapi_video_snapshot_get_struct,omitempty"` + // 返回信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/youkuott/YoukuMediaapiVideoSnapshotGetResponse.go b/model/youkuott/YoukuMediaapiVideoSnapshotGetResponse.go deleted file mode 100644 index b97e8824b8..0000000000 --- a/model/youkuott/YoukuMediaapiVideoSnapshotGetResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package youkuott - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据视频ID查询视频缩微图 API返回值 -youku.mediaapi.video.snapshot.get - -根据视频ID查询视频缩微图 -*/ -type YoukuMediaapiVideoSnapshotGetAPIResponse struct { - model.CommonResponse - YoukuMediaapiVideoSnapshotGetResponse -} - -// 根据视频ID查询视频缩微图 成功返回结果 -type YoukuMediaapiVideoSnapshotGetResponse struct { - XMLName xml.Name `xml:"youku_mediaapi_video_snapshot_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 true:成功 false:失败(top成功标志) - IsSuccess string `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 数据 - ModelList []YoukuMediaapiVideoSnapshotGetStruct `json:"model_list,omitempty" xml:"model_list>youku_mediaapi_video_snapshot_get_struct,omitempty"` - // 返回信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/youkuott/YoukuOttDvbCardChangeAPIRequest.go b/model/youkuott/YoukuOttDvbCardChangeAPIRequest.go new file mode 100644 index 0000000000..ceb3e7607a --- /dev/null +++ b/model/youkuott/YoukuOttDvbCardChangeAPIRequest.go @@ -0,0 +1,80 @@ +package youkuott + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +dvb ca卡替换 API请求 +youku.ott.dvb.card.change + +dvb 更换ca卡 +*/ +type YoukuOttDvbCardChangeAPIRequest struct { + model.Params + // 老卡id + _oldCardId string + // 新卡id + _newCardId string + // 广电公司code(目前没用) + _cableCompanyCode string +} + +// 初始化YoukuOttDvbCardChangeAPIRequest对象 +func NewYoukuOttDvbCardChangeRequest() *YoukuOttDvbCardChangeAPIRequest{ + return &YoukuOttDvbCardChangeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuOttDvbCardChangeAPIRequest) GetApiMethodName() string { + return "youku.ott.dvb.card.change" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuOttDvbCardChangeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OldCardId Setter +// 老卡id +func (r *YoukuOttDvbCardChangeAPIRequest) SetOldCardId(_oldCardId string) error { + r._oldCardId = _oldCardId + r.Set("old_card_id", _oldCardId) + return nil +} + +// OldCardId Getter +func (r YoukuOttDvbCardChangeAPIRequest) GetOldCardId() string { + return r._oldCardId +} +// NewCardId Setter +// 新卡id +func (r *YoukuOttDvbCardChangeAPIRequest) SetNewCardId(_newCardId string) error { + r._newCardId = _newCardId + r.Set("new_card_id", _newCardId) + return nil +} + +// NewCardId Getter +func (r YoukuOttDvbCardChangeAPIRequest) GetNewCardId() string { + return r._newCardId +} +// CableCompanyCode Setter +// 广电公司code(目前没用) +func (r *YoukuOttDvbCardChangeAPIRequest) SetCableCompanyCode(_cableCompanyCode string) error { + r._cableCompanyCode = _cableCompanyCode + r.Set("cable_company_code", _cableCompanyCode) + return nil +} + +// CableCompanyCode Getter +func (r YoukuOttDvbCardChangeAPIRequest) GetCableCompanyCode() string { + return r._cableCompanyCode +} diff --git a/model/youkuott/YoukuOttDvbCardChangeAPIResponse.go b/model/youkuott/YoukuOttDvbCardChangeAPIResponse.go new file mode 100644 index 0000000000..78245add26 --- /dev/null +++ b/model/youkuott/YoukuOttDvbCardChangeAPIResponse.go @@ -0,0 +1,29 @@ +package youkuott + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +dvb ca卡替换 API返回值 +youku.ott.dvb.card.change + +dvb 更换ca卡 +*/ +type YoukuOttDvbCardChangeAPIResponse struct { + model.CommonResponse + YoukuOttDvbCardChangeAPIResponseModel +} + +// dvb ca卡替换 成功返回结果 +type YoukuOttDvbCardChangeAPIResponseModel struct { + XMLName xml.Name `xml:"youku_ott_dvb_card_change_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 true:成功 false:失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/youkuott/YoukuOttDvbCardChangeResponse.go b/model/youkuott/YoukuOttDvbCardChangeResponse.go deleted file mode 100644 index ec0e432a40..0000000000 --- a/model/youkuott/YoukuOttDvbCardChangeResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package youkuott - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -dvb ca卡替换 API返回值 -youku.ott.dvb.card.change - -dvb 更换ca卡 -*/ -type YoukuOttDvbCardChangeAPIResponse struct { - model.CommonResponse - YoukuOttDvbCardChangeResponse -} - -// dvb ca卡替换 成功返回结果 -type YoukuOttDvbCardChangeResponse struct { - XMLName xml.Name `xml:"youku_ott_dvb_card_change_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 true:成功 false:失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误消息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/youkuott/YoukuOttDvbFirstorderFeedbackAPIRequest.go b/model/youkuott/YoukuOttDvbFirstorderFeedbackAPIRequest.go new file mode 100644 index 0000000000..863e4e42b9 --- /dev/null +++ b/model/youkuott/YoukuOttDvbFirstorderFeedbackAPIRequest.go @@ -0,0 +1,80 @@ +package youkuott + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +dvb首次安装订单反馈 API请求 +youku.ott.dvb.firstorder.feedback + +dvb首次安装订单反馈 +*/ +type YoukuOttDvbFirstorderFeedbackAPIRequest struct { + model.Params + // 订单id + _orderId int64 + // 反馈时间(时间戳,精确到毫秒),调用接口的时间有时候并非是反馈时间,所以增加反馈时间字段作为反馈时间 + _occureTime int64 + // 反馈类型, 200:广电接单 + _type int64 +} + +// 初始化YoukuOttDvbFirstorderFeedbackAPIRequest对象 +func NewYoukuOttDvbFirstorderFeedbackRequest() *YoukuOttDvbFirstorderFeedbackAPIRequest{ + return &YoukuOttDvbFirstorderFeedbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuOttDvbFirstorderFeedbackAPIRequest) GetApiMethodName() string { + return "youku.ott.dvb.firstorder.feedback" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuOttDvbFirstorderFeedbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单id +func (r *YoukuOttDvbFirstorderFeedbackAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r YoukuOttDvbFirstorderFeedbackAPIRequest) GetOrderId() int64 { + return r._orderId +} +// OccureTime Setter +// 反馈时间(时间戳,精确到毫秒),调用接口的时间有时候并非是反馈时间,所以增加反馈时间字段作为反馈时间 +func (r *YoukuOttDvbFirstorderFeedbackAPIRequest) SetOccureTime(_occureTime int64) error { + r._occureTime = _occureTime + r.Set("occure_time", _occureTime) + return nil +} + +// OccureTime Getter +func (r YoukuOttDvbFirstorderFeedbackAPIRequest) GetOccureTime() int64 { + return r._occureTime +} +// Type Setter +// 反馈类型, 200:广电接单 +func (r *YoukuOttDvbFirstorderFeedbackAPIRequest) SetType(_type int64) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r YoukuOttDvbFirstorderFeedbackAPIRequest) GetType() int64 { + return r._type +} diff --git a/model/youkuott/YoukuOttDvbFirstorderFeedbackAPIResponse.go b/model/youkuott/YoukuOttDvbFirstorderFeedbackAPIResponse.go new file mode 100644 index 0000000000..26611c7f50 --- /dev/null +++ b/model/youkuott/YoukuOttDvbFirstorderFeedbackAPIResponse.go @@ -0,0 +1,29 @@ +package youkuott + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +dvb首次安装订单反馈 API返回值 +youku.ott.dvb.firstorder.feedback + +dvb首次安装订单反馈 +*/ +type YoukuOttDvbFirstorderFeedbackAPIResponse struct { + model.CommonResponse + YoukuOttDvbFirstorderFeedbackAPIResponseModel +} + +// dvb首次安装订单反馈 成功返回结果 +type YoukuOttDvbFirstorderFeedbackAPIResponseModel struct { + XMLName xml.Name `xml:"youku_ott_dvb_firstorder_feedback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 true:成功 false:失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/youkuott/YoukuOttDvbFirstorderFeedbackResponse.go b/model/youkuott/YoukuOttDvbFirstorderFeedbackResponse.go deleted file mode 100644 index 803ad8881c..0000000000 --- a/model/youkuott/YoukuOttDvbFirstorderFeedbackResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package youkuott - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -dvb首次安装订单反馈 API返回值 -youku.ott.dvb.firstorder.feedback - -dvb首次安装订单反馈 -*/ -type YoukuOttDvbFirstorderFeedbackAPIResponse struct { - model.CommonResponse - YoukuOttDvbFirstorderFeedbackResponse -} - -// dvb首次安装订单反馈 成功返回结果 -type YoukuOttDvbFirstorderFeedbackResponse struct { - XMLName xml.Name `xml:"youku_ott_dvb_firstorder_feedback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 true:成功 false:失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误消息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/youkuott/YoukuOttDvbRenewFeedbackAPIRequest.go b/model/youkuott/YoukuOttDvbRenewFeedbackAPIRequest.go new file mode 100644 index 0000000000..b905b16a41 --- /dev/null +++ b/model/youkuott/YoukuOttDvbRenewFeedbackAPIRequest.go @@ -0,0 +1,80 @@ +package youkuott + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +dvb续费之后的反馈接口 API请求 +youku.ott.dvb.renew.feedback + +dvb续费之后的反馈接口 +*/ +type YoukuOttDvbRenewFeedbackAPIRequest struct { + model.Params + // 订单id + _orderId int64 + // 是否成功 + _isSuccess bool + // 失败原因(可无) + _failReason string +} + +// 初始化YoukuOttDvbRenewFeedbackAPIRequest对象 +func NewYoukuOttDvbRenewFeedbackRequest() *YoukuOttDvbRenewFeedbackAPIRequest{ + return &YoukuOttDvbRenewFeedbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuOttDvbRenewFeedbackAPIRequest) GetApiMethodName() string { + return "youku.ott.dvb.renew.feedback" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuOttDvbRenewFeedbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 订单id +func (r *YoukuOttDvbRenewFeedbackAPIRequest) SetOrderId(_orderId int64) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r YoukuOttDvbRenewFeedbackAPIRequest) GetOrderId() int64 { + return r._orderId +} +// IsSuccess Setter +// 是否成功 +func (r *YoukuOttDvbRenewFeedbackAPIRequest) SetIsSuccess(_isSuccess bool) error { + r._isSuccess = _isSuccess + r.Set("is_success", _isSuccess) + return nil +} + +// IsSuccess Getter +func (r YoukuOttDvbRenewFeedbackAPIRequest) GetIsSuccess() bool { + return r._isSuccess +} +// FailReason Setter +// 失败原因(可无) +func (r *YoukuOttDvbRenewFeedbackAPIRequest) SetFailReason(_failReason string) error { + r._failReason = _failReason + r.Set("fail_reason", _failReason) + return nil +} + +// FailReason Getter +func (r YoukuOttDvbRenewFeedbackAPIRequest) GetFailReason() string { + return r._failReason +} diff --git a/model/youkuott/YoukuOttDvbRenewFeedbackAPIResponse.go b/model/youkuott/YoukuOttDvbRenewFeedbackAPIResponse.go new file mode 100644 index 0000000000..0d19a53350 --- /dev/null +++ b/model/youkuott/YoukuOttDvbRenewFeedbackAPIResponse.go @@ -0,0 +1,29 @@ +package youkuott + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +dvb续费之后的反馈接口 API返回值 +youku.ott.dvb.renew.feedback + +dvb续费之后的反馈接口 +*/ +type YoukuOttDvbRenewFeedbackAPIResponse struct { + model.CommonResponse + YoukuOttDvbRenewFeedbackAPIResponseModel +} + +// dvb续费之后的反馈接口 成功返回结果 +type YoukuOttDvbRenewFeedbackAPIResponseModel struct { + XMLName xml.Name `xml:"youku_ott_dvb_renew_feedback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 true:成功 false:失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/youkuott/YoukuOttDvbRenewFeedbackResponse.go b/model/youkuott/YoukuOttDvbRenewFeedbackResponse.go deleted file mode 100644 index b14f6a3861..0000000000 --- a/model/youkuott/YoukuOttDvbRenewFeedbackResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package youkuott - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -dvb续费之后的反馈接口 API返回值 -youku.ott.dvb.renew.feedback - -dvb续费之后的反馈接口 -*/ -type YoukuOttDvbRenewFeedbackAPIResponse struct { - model.CommonResponse - YoukuOttDvbRenewFeedbackResponse -} - -// dvb续费之后的反馈接口 成功返回结果 -type YoukuOttDvbRenewFeedbackResponse struct { - XMLName xml.Name `xml:"youku_ott_dvb_renew_feedback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 true:成功 false:失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误消息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/youkuott/YoukuOttDvbWorkorderFeedbackAPIRequest.go b/model/youkuott/YoukuOttDvbWorkorderFeedbackAPIRequest.go new file mode 100644 index 0000000000..d8643ec6b0 --- /dev/null +++ b/model/youkuott/YoukuOttDvbWorkorderFeedbackAPIRequest.go @@ -0,0 +1,80 @@ +package youkuott + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +dvb工单反馈 API请求 +youku.ott.dvb.workorder.feedback + +dvb工单处理结果反馈 +*/ +type YoukuOttDvbWorkorderFeedbackAPIRequest struct { + model.Params + // 工单id + _workorderId int64 + // 反馈内容 + _content string + // 操作发生时间(时间戳:毫秒) + _occureTime int64 +} + +// 初始化YoukuOttDvbWorkorderFeedbackAPIRequest对象 +func NewYoukuOttDvbWorkorderFeedbackRequest() *YoukuOttDvbWorkorderFeedbackAPIRequest{ + return &YoukuOttDvbWorkorderFeedbackAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuOttDvbWorkorderFeedbackAPIRequest) GetApiMethodName() string { + return "youku.ott.dvb.workorder.feedback" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuOttDvbWorkorderFeedbackAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// WorkorderId Setter +// 工单id +func (r *YoukuOttDvbWorkorderFeedbackAPIRequest) SetWorkorderId(_workorderId int64) error { + r._workorderId = _workorderId + r.Set("workorder_id", _workorderId) + return nil +} + +// WorkorderId Getter +func (r YoukuOttDvbWorkorderFeedbackAPIRequest) GetWorkorderId() int64 { + return r._workorderId +} +// Content Setter +// 反馈内容 +func (r *YoukuOttDvbWorkorderFeedbackAPIRequest) SetContent(_content string) error { + r._content = _content + r.Set("content", _content) + return nil +} + +// Content Getter +func (r YoukuOttDvbWorkorderFeedbackAPIRequest) GetContent() string { + return r._content +} +// OccureTime Setter +// 操作发生时间(时间戳:毫秒) +func (r *YoukuOttDvbWorkorderFeedbackAPIRequest) SetOccureTime(_occureTime int64) error { + r._occureTime = _occureTime + r.Set("occure_time", _occureTime) + return nil +} + +// OccureTime Getter +func (r YoukuOttDvbWorkorderFeedbackAPIRequest) GetOccureTime() int64 { + return r._occureTime +} diff --git a/model/youkuott/YoukuOttDvbWorkorderFeedbackAPIResponse.go b/model/youkuott/YoukuOttDvbWorkorderFeedbackAPIResponse.go new file mode 100644 index 0000000000..65d253ee5a --- /dev/null +++ b/model/youkuott/YoukuOttDvbWorkorderFeedbackAPIResponse.go @@ -0,0 +1,29 @@ +package youkuott + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +dvb工单反馈 API返回值 +youku.ott.dvb.workorder.feedback + +dvb工单处理结果反馈 +*/ +type YoukuOttDvbWorkorderFeedbackAPIResponse struct { + model.CommonResponse + YoukuOttDvbWorkorderFeedbackAPIResponseModel +} + +// dvb工单反馈 成功返回结果 +type YoukuOttDvbWorkorderFeedbackAPIResponseModel struct { + XMLName xml.Name `xml:"youku_ott_dvb_workorder_feedback_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 true:成功 false:失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` +} diff --git a/model/youkuott/YoukuOttDvbWorkorderFeedbackResponse.go b/model/youkuott/YoukuOttDvbWorkorderFeedbackResponse.go deleted file mode 100644 index c5186ce56f..0000000000 --- a/model/youkuott/YoukuOttDvbWorkorderFeedbackResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package youkuott - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -dvb工单反馈 API返回值 -youku.ott.dvb.workorder.feedback - -dvb工单处理结果反馈 -*/ -type YoukuOttDvbWorkorderFeedbackAPIResponse struct { - model.CommonResponse - YoukuOttDvbWorkorderFeedbackResponse -} - -// dvb工单反馈 成功返回结果 -type YoukuOttDvbWorkorderFeedbackResponse struct { - XMLName xml.Name `xml:"youku_ott_dvb_workorder_feedback_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 true:成功 false:失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误消息 - Message string `json:"message,omitempty" xml:"message,omitempty"` -} diff --git a/model/youkuott/YoukuOttKittyCommonorderSyncAPIRequest.go b/model/youkuott/YoukuOttKittyCommonorderSyncAPIRequest.go new file mode 100644 index 0000000000..fb197574ca --- /dev/null +++ b/model/youkuott/YoukuOttKittyCommonorderSyncAPIRequest.go @@ -0,0 +1,136 @@ +package youkuott + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +运营商一般订单同步 API请求 +youku.ott.kitty.commonorder.sync + +运营商一般订单同步 +*/ +type YoukuOttKittyCommonorderSyncAPIRequest struct { + model.Params + // 运营商订单id,最好是16位及以上唯一ID + _orderId string + // 充值的商品id(此商品需要事先给到优酷,并把商品的业务逻辑确定下来,比如是连续包月还是单月/单季/单年) + _productId string + // 同步时间 格式yyyy-MM-dd HH:mm:ss 说明:如果是线上或线下订单此时间是用户支付成功时间,如果是退订则是退订时间 + _syncTime string + // 运营商渠道(需要找优酷方确认) + _channelId string + // 运营商用户账号账号id,与盒子登录账号tuid一致 + _accountId string + // 订单类型 1:线上支付订单(线上应用内购买), 2:线下支付订单(比如营业厅订单), 3:连续包取消续订, 4:全额退款(立即终止权益,不分产品包,不计财务), 5:续费(运营商侧发起时才使用),6:非连续包退订(按未使用天数退款) + _type string + // 扩展字段,根据需要,约定具体的字段,json格式 + _extInfo string +} + +// 初始化YoukuOttKittyCommonorderSyncAPIRequest对象 +func NewYoukuOttKittyCommonorderSyncRequest() *YoukuOttKittyCommonorderSyncAPIRequest{ + return &YoukuOttKittyCommonorderSyncAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuOttKittyCommonorderSyncAPIRequest) GetApiMethodName() string { + return "youku.ott.kitty.commonorder.sync" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuOttKittyCommonorderSyncAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OrderId Setter +// 运营商订单id,最好是16位及以上唯一ID +func (r *YoukuOttKittyCommonorderSyncAPIRequest) SetOrderId(_orderId string) error { + r._orderId = _orderId + r.Set("order_id", _orderId) + return nil +} + +// OrderId Getter +func (r YoukuOttKittyCommonorderSyncAPIRequest) GetOrderId() string { + return r._orderId +} +// ProductId Setter +// 充值的商品id(此商品需要事先给到优酷,并把商品的业务逻辑确定下来,比如是连续包月还是单月/单季/单年) +func (r *YoukuOttKittyCommonorderSyncAPIRequest) SetProductId(_productId string) error { + r._productId = _productId + r.Set("product_id", _productId) + return nil +} + +// ProductId Getter +func (r YoukuOttKittyCommonorderSyncAPIRequest) GetProductId() string { + return r._productId +} +// SyncTime Setter +// 同步时间 格式yyyy-MM-dd HH:mm:ss 说明:如果是线上或线下订单此时间是用户支付成功时间,如果是退订则是退订时间 +func (r *YoukuOttKittyCommonorderSyncAPIRequest) SetSyncTime(_syncTime string) error { + r._syncTime = _syncTime + r.Set("sync_time", _syncTime) + return nil +} + +// SyncTime Getter +func (r YoukuOttKittyCommonorderSyncAPIRequest) GetSyncTime() string { + return r._syncTime +} +// ChannelId Setter +// 运营商渠道(需要找优酷方确认) +func (r *YoukuOttKittyCommonorderSyncAPIRequest) SetChannelId(_channelId string) error { + r._channelId = _channelId + r.Set("channel_id", _channelId) + return nil +} + +// ChannelId Getter +func (r YoukuOttKittyCommonorderSyncAPIRequest) GetChannelId() string { + return r._channelId +} +// AccountId Setter +// 运营商用户账号账号id,与盒子登录账号tuid一致 +func (r *YoukuOttKittyCommonorderSyncAPIRequest) SetAccountId(_accountId string) error { + r._accountId = _accountId + r.Set("account_id", _accountId) + return nil +} + +// AccountId Getter +func (r YoukuOttKittyCommonorderSyncAPIRequest) GetAccountId() string { + return r._accountId +} +// Type Setter +// 订单类型 1:线上支付订单(线上应用内购买), 2:线下支付订单(比如营业厅订单), 3:连续包取消续订, 4:全额退款(立即终止权益,不分产品包,不计财务), 5:续费(运营商侧发起时才使用),6:非连续包退订(按未使用天数退款) +func (r *YoukuOttKittyCommonorderSyncAPIRequest) SetType(_type string) error { + r._type = _type + r.Set("type", _type) + return nil +} + +// Type Getter +func (r YoukuOttKittyCommonorderSyncAPIRequest) GetType() string { + return r._type +} +// ExtInfo Setter +// 扩展字段,根据需要,约定具体的字段,json格式 +func (r *YoukuOttKittyCommonorderSyncAPIRequest) SetExtInfo(_extInfo string) error { + r._extInfo = _extInfo + r.Set("ext_info", _extInfo) + return nil +} + +// ExtInfo Getter +func (r YoukuOttKittyCommonorderSyncAPIRequest) GetExtInfo() string { + return r._extInfo +} diff --git a/model/youkuott/YoukuOttKittyCommonorderSyncAPIResponse.go b/model/youkuott/YoukuOttKittyCommonorderSyncAPIResponse.go new file mode 100644 index 0000000000..575764e6be --- /dev/null +++ b/model/youkuott/YoukuOttKittyCommonorderSyncAPIResponse.go @@ -0,0 +1,31 @@ +package youkuott + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +运营商一般订单同步 API返回值 +youku.ott.kitty.commonorder.sync + +运营商一般订单同步 +*/ +type YoukuOttKittyCommonorderSyncAPIResponse struct { + model.CommonResponse + YoukuOttKittyCommonorderSyncAPIResponseModel +} + +// 运营商一般订单同步 成功返回结果 +type YoukuOttKittyCommonorderSyncAPIResponseModel struct { + XMLName xml.Name `xml:"youku_ott_kitty_commonorder_sync_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 true:成功 false:失败 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 错误消息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 返回码(一般情况请求方只需要关心success,除非特殊情况需要关心错误码) + RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` +} diff --git a/model/youkuott/YoukuOttKittyCommonorderSyncResponse.go b/model/youkuott/YoukuOttKittyCommonorderSyncResponse.go deleted file mode 100644 index 0463543625..0000000000 --- a/model/youkuott/YoukuOttKittyCommonorderSyncResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package youkuott - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -运营商一般订单同步 API返回值 -youku.ott.kitty.commonorder.sync - -运营商一般订单同步 -*/ -type YoukuOttKittyCommonorderSyncAPIResponse struct { - model.CommonResponse - YoukuOttKittyCommonorderSyncResponse -} - -// 运营商一般订单同步 成功返回结果 -type YoukuOttKittyCommonorderSyncResponse struct { - XMLName xml.Name `xml:"youku_ott_kitty_commonorder_sync_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 true:成功 false:失败 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 错误消息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 返回码(一般情况请求方只需要关心success,除非特殊情况需要关心错误码) - RetCode int64 `json:"ret_code,omitempty" xml:"ret_code,omitempty"` -} diff --git a/model/youkuott/YoukuTvoperatorMediaPageQueryAPIRequest.go b/model/youkuott/YoukuTvoperatorMediaPageQueryAPIRequest.go new file mode 100644 index 0000000000..f1d76e7f71 --- /dev/null +++ b/model/youkuott/YoukuTvoperatorMediaPageQueryAPIRequest.go @@ -0,0 +1,94 @@ +package youkuott + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +运营商全量媒资分页查询 API请求 +youku.tvoperator.media.page.query + +分页获取渠道全量媒资 +*/ +type YoukuTvoperatorMediaPageQueryAPIRequest struct { + model.Params + // 系统信息(和服务提供方确认) + _systemInfo string + // 从第一页开始 + _pageNo int64 + // 页面大小 + _pageSize int64 + // 节目programId + _programId int64 +} + +// 初始化YoukuTvoperatorMediaPageQueryAPIRequest对象 +func NewYoukuTvoperatorMediaPageQueryRequest() *YoukuTvoperatorMediaPageQueryAPIRequest{ + return &YoukuTvoperatorMediaPageQueryAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YoukuTvoperatorMediaPageQueryAPIRequest) GetApiMethodName() string { + return "youku.tvoperator.media.page.query" +} + +// IRequest interface 方法, 获取API参数 +func (r YoukuTvoperatorMediaPageQueryAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SystemInfo Setter +// 系统信息(和服务提供方确认) +func (r *YoukuTvoperatorMediaPageQueryAPIRequest) SetSystemInfo(_systemInfo string) error { + r._systemInfo = _systemInfo + r.Set("system_info", _systemInfo) + return nil +} + +// SystemInfo Getter +func (r YoukuTvoperatorMediaPageQueryAPIRequest) GetSystemInfo() string { + return r._systemInfo +} +// PageNo Setter +// 从第一页开始 +func (r *YoukuTvoperatorMediaPageQueryAPIRequest) SetPageNo(_pageNo int64) error { + r._pageNo = _pageNo + r.Set("page_no", _pageNo) + return nil +} + +// PageNo Getter +func (r YoukuTvoperatorMediaPageQueryAPIRequest) GetPageNo() int64 { + return r._pageNo +} +// PageSize Setter +// 页面大小 +func (r *YoukuTvoperatorMediaPageQueryAPIRequest) SetPageSize(_pageSize int64) error { + r._pageSize = _pageSize + r.Set("page_size", _pageSize) + return nil +} + +// PageSize Getter +func (r YoukuTvoperatorMediaPageQueryAPIRequest) GetPageSize() int64 { + return r._pageSize +} +// ProgramId Setter +// 节目programId +func (r *YoukuTvoperatorMediaPageQueryAPIRequest) SetProgramId(_programId int64) error { + r._programId = _programId + r.Set("program_id", _programId) + return nil +} + +// ProgramId Getter +func (r YoukuTvoperatorMediaPageQueryAPIRequest) GetProgramId() int64 { + return r._programId +} diff --git a/model/youkuott/YoukuTvoperatorMediaPageQueryAPIResponse.go b/model/youkuott/YoukuTvoperatorMediaPageQueryAPIResponse.go new file mode 100644 index 0000000000..394985c2f8 --- /dev/null +++ b/model/youkuott/YoukuTvoperatorMediaPageQueryAPIResponse.go @@ -0,0 +1,33 @@ +package youkuott + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +运营商全量媒资分页查询 API返回值 +youku.tvoperator.media.page.query + +分页获取渠道全量媒资 +*/ +type YoukuTvoperatorMediaPageQueryAPIResponse struct { + model.CommonResponse + YoukuTvoperatorMediaPageQueryAPIResponseModel +} + +// 运营商全量媒资分页查询 成功返回结果 +type YoukuTvoperatorMediaPageQueryAPIResponseModel struct { + XMLName xml.Name `xml:"youku_tvoperator_media_page_query_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 是否成功 true:成功 false:不成功 + IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` + // 数据信息 + Model *YoukuTvoperatorMediaPageQueryModel `json:"model,omitempty" xml:"model,omitempty"` + // 错误码 + MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` + // 错误信息 + MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` +} diff --git a/model/youkuott/YoukuTvoperatorMediaPageQueryResponse.go b/model/youkuott/YoukuTvoperatorMediaPageQueryResponse.go deleted file mode 100644 index df2d0b9e16..0000000000 --- a/model/youkuott/YoukuTvoperatorMediaPageQueryResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package youkuott - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -运营商全量媒资分页查询 API返回值 -youku.tvoperator.media.page.query - -分页获取渠道全量媒资 -*/ -type YoukuTvoperatorMediaPageQueryAPIResponse struct { - model.CommonResponse - YoukuTvoperatorMediaPageQueryResponse -} - -// 运营商全量媒资分页查询 成功返回结果 -type YoukuTvoperatorMediaPageQueryResponse struct { - XMLName xml.Name `xml:"youku_tvoperator_media_page_query_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 是否成功 true:成功 false:不成功 - IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"` - // 数据信息 - Model *YoukuTvoperatorMediaPageQueryModel `json:"model,omitempty" xml:"model,omitempty"` - // 错误码 - MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` - // 错误信息 - MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"` -} diff --git a/model/yunos/AliyunCosmoGatewayInvokeAPIRequest.go b/model/yunos/AliyunCosmoGatewayInvokeAPIRequest.go new file mode 100644 index 0000000000..5f3bcb7b4a --- /dev/null +++ b/model/yunos/AliyunCosmoGatewayInvokeAPIRequest.go @@ -0,0 +1,66 @@ +package yunos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +alios cosmo服务调用 API请求 +aliyun.cosmo.gateway.invoke + +AliOS cosmo服务分发平台对外调用接口 +*/ +type AliyunCosmoGatewayInvokeAPIRequest struct { + model.Params + // 请求上下文参数 + _context *RdamContext + // 请求对象 + _rdamRequest *RdamGenericRequest +} + +// 初始化AliyunCosmoGatewayInvokeAPIRequest对象 +func NewAliyunCosmoGatewayInvokeRequest() *AliyunCosmoGatewayInvokeAPIRequest{ + return &AliyunCosmoGatewayInvokeAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AliyunCosmoGatewayInvokeAPIRequest) GetApiMethodName() string { + return "aliyun.cosmo.gateway.invoke" +} + +// IRequest interface 方法, 获取API参数 +func (r AliyunCosmoGatewayInvokeAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Context Setter +// 请求上下文参数 +func (r *AliyunCosmoGatewayInvokeAPIRequest) SetContext(_context *RdamContext) error { + r._context = _context + r.Set("context", _context) + return nil +} + +// Context Getter +func (r AliyunCosmoGatewayInvokeAPIRequest) GetContext() *RdamContext { + return r._context +} +// RdamRequest Setter +// 请求对象 +func (r *AliyunCosmoGatewayInvokeAPIRequest) SetRdamRequest(_rdamRequest *RdamGenericRequest) error { + r._rdamRequest = _rdamRequest + r.Set("rdam_request", _rdamRequest) + return nil +} + +// RdamRequest Getter +func (r AliyunCosmoGatewayInvokeAPIRequest) GetRdamRequest() *RdamGenericRequest { + return r._rdamRequest +} diff --git a/model/yunos/AliyunCosmoGatewayInvokeAPIResponse.go b/model/yunos/AliyunCosmoGatewayInvokeAPIResponse.go new file mode 100644 index 0000000000..5d3ce58c66 --- /dev/null +++ b/model/yunos/AliyunCosmoGatewayInvokeAPIResponse.go @@ -0,0 +1,27 @@ +package yunos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +alios cosmo服务调用 API返回值 +aliyun.cosmo.gateway.invoke + +AliOS cosmo服务分发平台对外调用接口 +*/ +type AliyunCosmoGatewayInvokeAPIResponse struct { + model.CommonResponse + AliyunCosmoGatewayInvokeAPIResponseModel +} + +// alios cosmo服务调用 成功返回结果 +type AliyunCosmoGatewayInvokeAPIResponseModel struct { + XMLName xml.Name `xml:"aliyun_cosmo_gateway_invoke_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *RdamResponse `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/yunos/AliyunCosmoGatewayInvokeResponse.go b/model/yunos/AliyunCosmoGatewayInvokeResponse.go deleted file mode 100644 index f87e14eaa8..0000000000 --- a/model/yunos/AliyunCosmoGatewayInvokeResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package yunos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -alios cosmo服务调用 API返回值 -aliyun.cosmo.gateway.invoke - -AliOS cosmo服务分发平台对外调用接口 -*/ -type AliyunCosmoGatewayInvokeAPIResponse struct { - model.CommonResponse - AliyunCosmoGatewayInvokeResponse -} - -// alios cosmo服务调用 成功返回结果 -type AliyunCosmoGatewayInvokeResponse struct { - XMLName xml.Name `xml:"aliyun_cosmo_gateway_invoke_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *RdamResponse `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/yunos/YunosCloudcardBatchOpermsgSendAPIRequest.go b/model/yunos/YunosCloudcardBatchOpermsgSendAPIRequest.go new file mode 100644 index 0000000000..6cf568b04f --- /dev/null +++ b/model/yunos/YunosCloudcardBatchOpermsgSendAPIRequest.go @@ -0,0 +1,52 @@ +package yunos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +YUNOS生活服务群发消息 API请求 +yunos.cloudcard.batch.opermsg.send + +这个是一个群发消息接口,ISV通过该接口给订阅自己服务号的所有YUNOS终端用户发送服务号消息,目前该接口有调用频率限制,具体规则参考YUNOS开放平台文档。 +*/ +type YunosCloudcardBatchOpermsgSendAPIRequest struct { + model.Params + // YUNOS生活服务群消息 + _operBatchMsg *OperBatchMsg +} + +// 初始化YunosCloudcardBatchOpermsgSendAPIRequest对象 +func NewYunosCloudcardBatchOpermsgSendRequest() *YunosCloudcardBatchOpermsgSendAPIRequest{ + return &YunosCloudcardBatchOpermsgSendAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosCloudcardBatchOpermsgSendAPIRequest) GetApiMethodName() string { + return "yunos.cloudcard.batch.opermsg.send" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosCloudcardBatchOpermsgSendAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// OperBatchMsg Setter +// YUNOS生活服务群消息 +func (r *YunosCloudcardBatchOpermsgSendAPIRequest) SetOperBatchMsg(_operBatchMsg *OperBatchMsg) error { + r._operBatchMsg = _operBatchMsg + r.Set("oper_batch_msg", _operBatchMsg) + return nil +} + +// OperBatchMsg Getter +func (r YunosCloudcardBatchOpermsgSendAPIRequest) GetOperBatchMsg() *OperBatchMsg { + return r._operBatchMsg +} diff --git a/model/yunos/YunosCloudcardBatchOpermsgSendAPIResponse.go b/model/yunos/YunosCloudcardBatchOpermsgSendAPIResponse.go new file mode 100644 index 0000000000..7e03df9b4a --- /dev/null +++ b/model/yunos/YunosCloudcardBatchOpermsgSendAPIResponse.go @@ -0,0 +1,27 @@ +package yunos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +YUNOS生活服务群发消息 API返回值 +yunos.cloudcard.batch.opermsg.send + +这个是一个群发消息接口,ISV通过该接口给订阅自己服务号的所有YUNOS终端用户发送服务号消息,目前该接口有调用频率限制,具体规则参考YUNOS开放平台文档。 +*/ +type YunosCloudcardBatchOpermsgSendAPIResponse struct { + model.CommonResponse + YunosCloudcardBatchOpermsgSendAPIResponseModel +} + +// YUNOS生活服务群发消息 成功返回结果 +type YunosCloudcardBatchOpermsgSendAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_cloudcard_batch_opermsg_send_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 群发消息是否成功 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/yunos/YunosCloudcardBatchOpermsgSendResponse.go b/model/yunos/YunosCloudcardBatchOpermsgSendResponse.go deleted file mode 100644 index 6465fc3f92..0000000000 --- a/model/yunos/YunosCloudcardBatchOpermsgSendResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package yunos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -YUNOS生活服务群发消息 API返回值 -yunos.cloudcard.batch.opermsg.send - -这个是一个群发消息接口,ISV通过该接口给订阅自己服务号的所有YUNOS终端用户发送服务号消息,目前该接口有调用频率限制,具体规则参考YUNOS开放平台文档。 -*/ -type YunosCloudcardBatchOpermsgSendAPIResponse struct { - model.CommonResponse - YunosCloudcardBatchOpermsgSendResponse -} - -// YUNOS生活服务群发消息 成功返回结果 -type YunosCloudcardBatchOpermsgSendResponse struct { - XMLName xml.Name `xml:"yunos_cloudcard_batch_opermsg_send_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 群发消息是否成功 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/yunos/YunosCosmoDataPushAPIRequest.go b/model/yunos/YunosCosmoDataPushAPIRequest.go new file mode 100644 index 0000000000..0d263cf778 --- /dev/null +++ b/model/yunos/YunosCosmoDataPushAPIRequest.go @@ -0,0 +1,66 @@ +package yunos + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +COSMO-PUSH模式数据接入 API请求 +yunos.cosmo.data.push + +YunOS提供外部数据源接入,并输出到多端设备上,该接口提供了PUSH模式的数据接入 +*/ +type YunosCosmoDataPushAPIRequest struct { + model.Params + // 业务方数据源唯一标识,由COSMO平台颁发 + _appId string + // 业务方推送数据,List结构的JSON序列化字符串 + _jsonModel string +} + +// 初始化YunosCosmoDataPushAPIRequest对象 +func NewYunosCosmoDataPushRequest() *YunosCosmoDataPushAPIRequest{ + return &YunosCosmoDataPushAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosCosmoDataPushAPIRequest) GetApiMethodName() string { + return "yunos.cosmo.data.push" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosCosmoDataPushAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// AppId Setter +// 业务方数据源唯一标识,由COSMO平台颁发 +func (r *YunosCosmoDataPushAPIRequest) SetAppId(_appId string) error { + r._appId = _appId + r.Set("app_id", _appId) + return nil +} + +// AppId Getter +func (r YunosCosmoDataPushAPIRequest) GetAppId() string { + return r._appId +} +// JsonModel Setter +// 业务方推送数据,List结构的JSON序列化字符串 +func (r *YunosCosmoDataPushAPIRequest) SetJsonModel(_jsonModel string) error { + r._jsonModel = _jsonModel + r.Set("json_model", _jsonModel) + return nil +} + +// JsonModel Getter +func (r YunosCosmoDataPushAPIRequest) GetJsonModel() string { + return r._jsonModel +} diff --git a/model/yunos/YunosCosmoDataPushAPIResponse.go b/model/yunos/YunosCosmoDataPushAPIResponse.go new file mode 100644 index 0000000000..fcde4a72af --- /dev/null +++ b/model/yunos/YunosCosmoDataPushAPIResponse.go @@ -0,0 +1,27 @@ +package yunos + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +COSMO-PUSH模式数据接入 API返回值 +yunos.cosmo.data.push + +YunOS提供外部数据源接入,并输出到多端设备上,该接口提供了PUSH模式的数据接入 +*/ +type YunosCosmoDataPushAPIResponse struct { + model.CommonResponse + YunosCosmoDataPushAPIResponseModel +} + +// COSMO-PUSH模式数据接入 成功返回结果 +type YunosCosmoDataPushAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_cosmo_data_push_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *DpResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/yunos/YunosCosmoDataPushResponse.go b/model/yunos/YunosCosmoDataPushResponse.go deleted file mode 100644 index 06aa65006a..0000000000 --- a/model/yunos/YunosCosmoDataPushResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package yunos - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -COSMO-PUSH模式数据接入 API返回值 -yunos.cosmo.data.push - -YunOS提供外部数据源接入,并输出到多端设备上,该接口提供了PUSH模式的数据接入 -*/ -type YunosCosmoDataPushAPIResponse struct { - model.CommonResponse - YunosCosmoDataPushResponse -} - -// COSMO-PUSH模式数据接入 成功返回结果 -type YunosCosmoDataPushResponse struct { - XMLName xml.Name `xml:"yunos_cosmo_data_push_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *DpResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/yunosaccount/YunosAccountCallapiAPIRequest.go b/model/yunosaccount/YunosAccountCallapiAPIRequest.go new file mode 100644 index 0000000000..02e69e981e --- /dev/null +++ b/model/yunosaccount/YunosAccountCallapiAPIRequest.go @@ -0,0 +1,108 @@ +package yunosaccount + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +调用YunOS账号开放API API请求 +yunos.account.callapi + +YunOS账号客户端对外开放的api通过top暴露 +*/ +type YunosAccountCallapiAPIRequest struct { + model.Params + // API版本号 + _version string + // 调用的API名称 + _api string + // 时间戳,精确到秒;账号服务端会校验该值与服务器当前时间戳的差值,超过一定范围则拒绝请求 + _timeStamp string + // 业务参数 + _params string + // 应用签名的MD5值 + _authSign string +} + +// 初始化YunosAccountCallapiAPIRequest对象 +func NewYunosAccountCallapiRequest() *YunosAccountCallapiAPIRequest{ + return &YunosAccountCallapiAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosAccountCallapiAPIRequest) GetApiMethodName() string { + return "yunos.account.callapi" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosAccountCallapiAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Version Setter +// API版本号 +func (r *YunosAccountCallapiAPIRequest) SetVersion(_version string) error { + r._version = _version + r.Set("version", _version) + return nil +} + +// Version Getter +func (r YunosAccountCallapiAPIRequest) GetVersion() string { + return r._version +} +// Api Setter +// 调用的API名称 +func (r *YunosAccountCallapiAPIRequest) SetApi(_api string) error { + r._api = _api + r.Set("api", _api) + return nil +} + +// Api Getter +func (r YunosAccountCallapiAPIRequest) GetApi() string { + return r._api +} +// TimeStamp Setter +// 时间戳,精确到秒;账号服务端会校验该值与服务器当前时间戳的差值,超过一定范围则拒绝请求 +func (r *YunosAccountCallapiAPIRequest) SetTimeStamp(_timeStamp string) error { + r._timeStamp = _timeStamp + r.Set("time_stamp", _timeStamp) + return nil +} + +// TimeStamp Getter +func (r YunosAccountCallapiAPIRequest) GetTimeStamp() string { + return r._timeStamp +} +// Params Setter +// 业务参数 +func (r *YunosAccountCallapiAPIRequest) SetParams(_params string) error { + r._params = _params + r.Set("params", _params) + return nil +} + +// Params Getter +func (r YunosAccountCallapiAPIRequest) GetParams() string { + return r._params +} +// AuthSign Setter +// 应用签名的MD5值 +func (r *YunosAccountCallapiAPIRequest) SetAuthSign(_authSign string) error { + r._authSign = _authSign + r.Set("auth_sign", _authSign) + return nil +} + +// AuthSign Getter +func (r YunosAccountCallapiAPIRequest) GetAuthSign() string { + return r._authSign +} diff --git a/model/yunosaccount/YunosAccountCallapiAPIResponse.go b/model/yunosaccount/YunosAccountCallapiAPIResponse.go new file mode 100644 index 0000000000..ba24efe6c8 --- /dev/null +++ b/model/yunosaccount/YunosAccountCallapiAPIResponse.go @@ -0,0 +1,27 @@ +package yunosaccount + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +调用YunOS账号开放API API返回值 +yunos.account.callapi + +YunOS账号客户端对外开放的api通过top暴露 +*/ +type YunosAccountCallapiAPIResponse struct { + model.CommonResponse + YunosAccountCallapiAPIResponseModel +} + +// 调用YunOS账号开放API 成功返回结果 +type YunosAccountCallapiAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_account_callapi_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Result *AccountResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/yunosaccount/YunosAccountCallapiResponse.go b/model/yunosaccount/YunosAccountCallapiResponse.go deleted file mode 100644 index 2802aa5d68..0000000000 --- a/model/yunosaccount/YunosAccountCallapiResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package yunosaccount - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -调用YunOS账号开放API API返回值 -yunos.account.callapi - -YunOS账号客户端对外开放的api通过top暴露 -*/ -type YunosAccountCallapiAPIResponse struct { - model.CommonResponse - YunosAccountCallapiResponse -} - -// 调用YunOS账号开放API 成功返回结果 -type YunosAccountCallapiResponse struct { - XMLName xml.Name `xml:"yunos_account_callapi_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Result *AccountResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/yunosad/YunosAdAuditCreativeAddAPIRequest.go b/model/yunosad/YunosAdAuditCreativeAddAPIRequest.go new file mode 100644 index 0000000000..ef0a5e5d68 --- /dev/null +++ b/model/yunosad/YunosAdAuditCreativeAddAPIRequest.go @@ -0,0 +1,66 @@ +package yunosad + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +单个创意预审接口 API请求 +yunos.ad.audit.creative.add + +YunOS广告业务第三方DSP单个创意预审接口 +*/ +type YunosAdAuditCreativeAddAPIRequest struct { + model.Params + // 外部dsp的id + _memberId int64 + // 创意审核入参 + _creative *CreativeParamDto +} + +// 初始化YunosAdAuditCreativeAddAPIRequest对象 +func NewYunosAdAuditCreativeAddRequest() *YunosAdAuditCreativeAddAPIRequest{ + return &YunosAdAuditCreativeAddAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosAdAuditCreativeAddAPIRequest) GetApiMethodName() string { + return "yunos.ad.audit.creative.add" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosAdAuditCreativeAddAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MemberId Setter +// 外部dsp的id +func (r *YunosAdAuditCreativeAddAPIRequest) SetMemberId(_memberId int64) error { + r._memberId = _memberId + r.Set("member_id", _memberId) + return nil +} + +// MemberId Getter +func (r YunosAdAuditCreativeAddAPIRequest) GetMemberId() int64 { + return r._memberId +} +// Creative Setter +// 创意审核入参 +func (r *YunosAdAuditCreativeAddAPIRequest) SetCreative(_creative *CreativeParamDto) error { + r._creative = _creative + r.Set("creative", _creative) + return nil +} + +// Creative Getter +func (r YunosAdAuditCreativeAddAPIRequest) GetCreative() *CreativeParamDto { + return r._creative +} diff --git a/model/yunosad/YunosAdAuditCreativeAddAPIResponse.go b/model/yunosad/YunosAdAuditCreativeAddAPIResponse.go new file mode 100644 index 0000000000..1a4b4aa083 --- /dev/null +++ b/model/yunosad/YunosAdAuditCreativeAddAPIResponse.go @@ -0,0 +1,31 @@ +package yunosad + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +单个创意预审接口 API返回值 +yunos.ad.audit.creative.add + +YunOS广告业务第三方DSP单个创意预审接口 +*/ +type YunosAdAuditCreativeAddAPIResponse struct { + model.CommonResponse + YunosAdAuditCreativeAddAPIResponseModel +} + +// 单个创意预审接口 成功返回结果 +type YunosAdAuditCreativeAddAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_ad_audit_creative_add_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // statusCode + StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // isOk + IsOk bool `json:"is_ok,omitempty" xml:"is_ok,omitempty"` +} diff --git a/model/yunosad/YunosAdAuditCreativeAddResponse.go b/model/yunosad/YunosAdAuditCreativeAddResponse.go deleted file mode 100644 index 50f7318720..0000000000 --- a/model/yunosad/YunosAdAuditCreativeAddResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package yunosad - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -单个创意预审接口 API返回值 -yunos.ad.audit.creative.add - -YunOS广告业务第三方DSP单个创意预审接口 -*/ -type YunosAdAuditCreativeAddAPIResponse struct { - model.CommonResponse - YunosAdAuditCreativeAddResponse -} - -// 单个创意预审接口 成功返回结果 -type YunosAdAuditCreativeAddResponse struct { - XMLName xml.Name `xml:"yunos_ad_audit_creative_add_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // statusCode - StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // isOk - IsOk bool `json:"is_ok,omitempty" xml:"is_ok,omitempty"` -} diff --git a/model/yunosad/YunosAdAuditCreativeGetAPIRequest.go b/model/yunosad/YunosAdAuditCreativeGetAPIRequest.go new file mode 100644 index 0000000000..39fb20e2fe --- /dev/null +++ b/model/yunosad/YunosAdAuditCreativeGetAPIRequest.go @@ -0,0 +1,66 @@ +package yunosad + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单个创意审核状态 API请求 +yunos.ad.audit.creative.get + +获取单个创意审核状态 +*/ +type YunosAdAuditCreativeGetAPIRequest struct { + model.Params + // 第三方的dspId + _memberId int64 + // 第三方广告创意id + _creativeId string +} + +// 初始化YunosAdAuditCreativeGetAPIRequest对象 +func NewYunosAdAuditCreativeGetRequest() *YunosAdAuditCreativeGetAPIRequest{ + return &YunosAdAuditCreativeGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosAdAuditCreativeGetAPIRequest) GetApiMethodName() string { + return "yunos.ad.audit.creative.get" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosAdAuditCreativeGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MemberId Setter +// 第三方的dspId +func (r *YunosAdAuditCreativeGetAPIRequest) SetMemberId(_memberId int64) error { + r._memberId = _memberId + r.Set("member_id", _memberId) + return nil +} + +// MemberId Getter +func (r YunosAdAuditCreativeGetAPIRequest) GetMemberId() int64 { + return r._memberId +} +// CreativeId Setter +// 第三方广告创意id +func (r *YunosAdAuditCreativeGetAPIRequest) SetCreativeId(_creativeId string) error { + r._creativeId = _creativeId + r.Set("creative_id", _creativeId) + return nil +} + +// CreativeId Getter +func (r YunosAdAuditCreativeGetAPIRequest) GetCreativeId() string { + return r._creativeId +} diff --git a/model/yunosad/YunosAdAuditCreativeGetAPIResponse.go b/model/yunosad/YunosAdAuditCreativeGetAPIResponse.go new file mode 100644 index 0000000000..a5ad8605fa --- /dev/null +++ b/model/yunosad/YunosAdAuditCreativeGetAPIResponse.go @@ -0,0 +1,33 @@ +package yunosad + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取单个创意审核状态 API返回值 +yunos.ad.audit.creative.get + +获取单个创意审核状态 +*/ +type YunosAdAuditCreativeGetAPIResponse struct { + model.CommonResponse + YunosAdAuditCreativeGetAPIResponseModel +} + +// 获取单个创意审核状态 成功返回结果 +type YunosAdAuditCreativeGetAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_ad_audit_creative_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 错误信息 + Message string `json:"message,omitempty" xml:"message,omitempty"` + // 状态 + StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` + // 是否成功 + IsOk bool `json:"is_ok,omitempty" xml:"is_ok,omitempty"` + // 审核结果 + Result *CreativeAuditDto `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/yunosad/YunosAdAuditCreativeGetResponse.go b/model/yunosad/YunosAdAuditCreativeGetResponse.go deleted file mode 100644 index 30e4c9cdd6..0000000000 --- a/model/yunosad/YunosAdAuditCreativeGetResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package yunosad - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取单个创意审核状态 API返回值 -yunos.ad.audit.creative.get - -获取单个创意审核状态 -*/ -type YunosAdAuditCreativeGetAPIResponse struct { - model.CommonResponse - YunosAdAuditCreativeGetResponse -} - -// 获取单个创意审核状态 成功返回结果 -type YunosAdAuditCreativeGetResponse struct { - XMLName xml.Name `xml:"yunos_ad_audit_creative_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 错误信息 - Message string `json:"message,omitempty" xml:"message,omitempty"` - // 状态 - StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` - // 是否成功 - IsOk bool `json:"is_ok,omitempty" xml:"is_ok,omitempty"` - // 审核结果 - Result *CreativeAuditDto `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/yunosad/YunosAdAuditCreativeGetlistAPIRequest.go b/model/yunosad/YunosAdAuditCreativeGetlistAPIRequest.go new file mode 100644 index 0000000000..f20948e884 --- /dev/null +++ b/model/yunosad/YunosAdAuditCreativeGetlistAPIRequest.go @@ -0,0 +1,80 @@ +package yunosad + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取创意审核状态 API请求 +yunos.ad.audit.creative.getlist + +批量获取创意审核状态 +*/ +type YunosAdAuditCreativeGetlistAPIRequest struct { + model.Params + // 第三方DSP的id + _memberId int64 + // 状态 + _status string + // 创意列表 + _creativeIds []string +} + +// 初始化YunosAdAuditCreativeGetlistAPIRequest对象 +func NewYunosAdAuditCreativeGetlistRequest() *YunosAdAuditCreativeGetlistAPIRequest{ + return &YunosAdAuditCreativeGetlistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosAdAuditCreativeGetlistAPIRequest) GetApiMethodName() string { + return "yunos.ad.audit.creative.getlist" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosAdAuditCreativeGetlistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// MemberId Setter +// 第三方DSP的id +func (r *YunosAdAuditCreativeGetlistAPIRequest) SetMemberId(_memberId int64) error { + r._memberId = _memberId + r.Set("member_id", _memberId) + return nil +} + +// MemberId Getter +func (r YunosAdAuditCreativeGetlistAPIRequest) GetMemberId() int64 { + return r._memberId +} +// Status Setter +// 状态 +func (r *YunosAdAuditCreativeGetlistAPIRequest) SetStatus(_status string) error { + r._status = _status + r.Set("status", _status) + return nil +} + +// Status Getter +func (r YunosAdAuditCreativeGetlistAPIRequest) GetStatus() string { + return r._status +} +// CreativeIds Setter +// 创意列表 +func (r *YunosAdAuditCreativeGetlistAPIRequest) SetCreativeIds(_creativeIds []string) error { + r._creativeIds = _creativeIds + r.Set("creative_ids", _creativeIds) + return nil +} + +// CreativeIds Getter +func (r YunosAdAuditCreativeGetlistAPIRequest) GetCreativeIds() []string { + return r._creativeIds +} diff --git a/model/yunosad/YunosAdAuditCreativeGetlistAPIResponse.go b/model/yunosad/YunosAdAuditCreativeGetlistAPIResponse.go new file mode 100644 index 0000000000..28f288190b --- /dev/null +++ b/model/yunosad/YunosAdAuditCreativeGetlistAPIResponse.go @@ -0,0 +1,33 @@ +package yunosad + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +批量获取创意审核状态 API返回值 +yunos.ad.audit.creative.getlist + +批量获取创意审核状态 +*/ +type YunosAdAuditCreativeGetlistAPIResponse struct { + model.CommonResponse + YunosAdAuditCreativeGetlistAPIResponseModel +} + +// 批量获取创意审核状态 成功返回结果 +type YunosAdAuditCreativeGetlistAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_ad_audit_creative_getlist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // message + Message string `json:"message,omitempty" xml:"message,omitempty"` + // errorCode + StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` + // isOk + IsOk string `json:"is_ok,omitempty" xml:"is_ok,omitempty"` + // result + Results []CreativeAuditDto `json:"results,omitempty" xml:"results>creative_audit_dto,omitempty"` +} diff --git a/model/yunosad/YunosAdAuditCreativeGetlistResponse.go b/model/yunosad/YunosAdAuditCreativeGetlistResponse.go deleted file mode 100644 index 1746227527..0000000000 --- a/model/yunosad/YunosAdAuditCreativeGetlistResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package yunosad - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -批量获取创意审核状态 API返回值 -yunos.ad.audit.creative.getlist - -批量获取创意审核状态 -*/ -type YunosAdAuditCreativeGetlistAPIResponse struct { - model.CommonResponse - YunosAdAuditCreativeGetlistResponse -} - -// 批量获取创意审核状态 成功返回结果 -type YunosAdAuditCreativeGetlistResponse struct { - XMLName xml.Name `xml:"yunos_ad_audit_creative_getlist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // message - Message string `json:"message,omitempty" xml:"message,omitempty"` - // errorCode - StatusCode int64 `json:"status_code,omitempty" xml:"status_code,omitempty"` - // isOk - IsOk string `json:"is_ok,omitempty" xml:"is_ok,omitempty"` - // result - Results []CreativeAuditDto `json:"results,omitempty" xml:"results>creative_audit_dto,omitempty"` -} diff --git a/model/yunosappstore/YunosAppstoreAppsGetAPIRequest.go b/model/yunosappstore/YunosAppstoreAppsGetAPIRequest.go new file mode 100644 index 0000000000..7d6f874919 --- /dev/null +++ b/model/yunosappstore/YunosAppstoreAppsGetAPIRequest.go @@ -0,0 +1,52 @@ +package yunosappstore + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +根据包名列表获取应用信息列表 API请求 +yunos.appstore.apps.get + +根据包名列表获取应用信息列表 +*/ +type YunosAppstoreAppsGetAPIRequest struct { + model.Params + // 应用包名列表 + _pkgs []string +} + +// 初始化YunosAppstoreAppsGetAPIRequest对象 +func NewYunosAppstoreAppsGetRequest() *YunosAppstoreAppsGetAPIRequest{ + return &YunosAppstoreAppsGetAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosAppstoreAppsGetAPIRequest) GetApiMethodName() string { + return "yunos.appstore.apps.get" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosAppstoreAppsGetAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Pkgs Setter +// 应用包名列表 +func (r *YunosAppstoreAppsGetAPIRequest) SetPkgs(_pkgs []string) error { + r._pkgs = _pkgs + r.Set("pkgs", _pkgs) + return nil +} + +// Pkgs Getter +func (r YunosAppstoreAppsGetAPIRequest) GetPkgs() []string { + return r._pkgs +} diff --git a/model/yunosappstore/YunosAppstoreAppsGetAPIResponse.go b/model/yunosappstore/YunosAppstoreAppsGetAPIResponse.go new file mode 100644 index 0000000000..c7ecd1a455 --- /dev/null +++ b/model/yunosappstore/YunosAppstoreAppsGetAPIResponse.go @@ -0,0 +1,27 @@ +package yunosappstore + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +根据包名列表获取应用信息列表 API返回值 +yunos.appstore.apps.get + +根据包名列表获取应用信息列表 +*/ +type YunosAppstoreAppsGetAPIResponse struct { + model.CommonResponse + YunosAppstoreAppsGetAPIResponseModel +} + +// 根据包名列表获取应用信息列表 成功返回结果 +type YunosAppstoreAppsGetAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_appstore_apps_get_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 应用信息列表 + AppInfoList []AppInfo `json:"app_info_list,omitempty" xml:"app_info_list>app_info,omitempty"` +} diff --git a/model/yunosappstore/YunosAppstoreAppsGetResponse.go b/model/yunosappstore/YunosAppstoreAppsGetResponse.go deleted file mode 100644 index 1e41b31ec6..0000000000 --- a/model/yunosappstore/YunosAppstoreAppsGetResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package yunosappstore - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -根据包名列表获取应用信息列表 API返回值 -yunos.appstore.apps.get - -根据包名列表获取应用信息列表 -*/ -type YunosAppstoreAppsGetAPIResponse struct { - model.CommonResponse - YunosAppstoreAppsGetResponse -} - -// 根据包名列表获取应用信息列表 成功返回结果 -type YunosAppstoreAppsGetResponse struct { - XMLName xml.Name `xml:"yunos_appstore_apps_get_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 应用信息列表 - AppInfoList []AppInfo `json:"app_info_list,omitempty" xml:"app_info_list>app_info,omitempty"` -} diff --git a/model/yunosappstore/YunosAppstoreOpenGetadsAPIRequest.go b/model/yunosappstore/YunosAppstoreOpenGetadsAPIRequest.go new file mode 100644 index 0000000000..dcda7e9fc7 --- /dev/null +++ b/model/yunosappstore/YunosAppstoreOpenGetadsAPIRequest.go @@ -0,0 +1,276 @@ +package yunosappstore + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取外投广告 API请求 +yunos.appstore.open.getads + +将广告外投给外部合作伙伴 +*/ +type YunosAppstoreOpenGetadsAPIRequest struct { + model.Params + // 请求id + _rid string + // 指定广告分类 + _cats []string + // 是否排除已安装 + _excludeInstall bool + // 场景或页面标识 + _caseId string + // ssp标识 + _ssp string + // 结算类型 + _feeType string + // 客户端来源ip + _clientIp string + // 广告指定包名 + _pkgs []string + // 客户端版本号 + _clientVerCode int64 + // 是否映射到uuid + _tryMapToUuid bool + // 排除包名列表 + _excludePkgs []string + // 设备唯一标识 + _deviceId string + // 广告数量 + _size int64 + // 排除分类 + _excludeCats []string + // 创意模板id列表 + _templateIds []int64 + // 广告底价 + _mrp int64 + // 请求特征集 + _options int64 +} + +// 初始化YunosAppstoreOpenGetadsAPIRequest对象 +func NewYunosAppstoreOpenGetadsRequest() *YunosAppstoreOpenGetadsAPIRequest{ + return &YunosAppstoreOpenGetadsAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosAppstoreOpenGetadsAPIRequest) GetApiMethodName() string { + return "yunos.appstore.open.getads" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosAppstoreOpenGetadsAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Rid Setter +// 请求id +func (r *YunosAppstoreOpenGetadsAPIRequest) SetRid(_rid string) error { + r._rid = _rid + r.Set("rid", _rid) + return nil +} + +// Rid Getter +func (r YunosAppstoreOpenGetadsAPIRequest) GetRid() string { + return r._rid +} +// Cats Setter +// 指定广告分类 +func (r *YunosAppstoreOpenGetadsAPIRequest) SetCats(_cats []string) error { + r._cats = _cats + r.Set("cats", _cats) + return nil +} + +// Cats Getter +func (r YunosAppstoreOpenGetadsAPIRequest) GetCats() []string { + return r._cats +} +// ExcludeInstall Setter +// 是否排除已安装 +func (r *YunosAppstoreOpenGetadsAPIRequest) SetExcludeInstall(_excludeInstall bool) error { + r._excludeInstall = _excludeInstall + r.Set("exclude_install", _excludeInstall) + return nil +} + +// ExcludeInstall Getter +func (r YunosAppstoreOpenGetadsAPIRequest) GetExcludeInstall() bool { + return r._excludeInstall +} +// CaseId Setter +// 场景或页面标识 +func (r *YunosAppstoreOpenGetadsAPIRequest) SetCaseId(_caseId string) error { + r._caseId = _caseId + r.Set("case_id", _caseId) + return nil +} + +// CaseId Getter +func (r YunosAppstoreOpenGetadsAPIRequest) GetCaseId() string { + return r._caseId +} +// Ssp Setter +// ssp标识 +func (r *YunosAppstoreOpenGetadsAPIRequest) SetSsp(_ssp string) error { + r._ssp = _ssp + r.Set("ssp", _ssp) + return nil +} + +// Ssp Getter +func (r YunosAppstoreOpenGetadsAPIRequest) GetSsp() string { + return r._ssp +} +// FeeType Setter +// 结算类型 +func (r *YunosAppstoreOpenGetadsAPIRequest) SetFeeType(_feeType string) error { + r._feeType = _feeType + r.Set("fee_type", _feeType) + return nil +} + +// FeeType Getter +func (r YunosAppstoreOpenGetadsAPIRequest) GetFeeType() string { + return r._feeType +} +// ClientIp Setter +// 客户端来源ip +func (r *YunosAppstoreOpenGetadsAPIRequest) SetClientIp(_clientIp string) error { + r._clientIp = _clientIp + r.Set("client_ip", _clientIp) + return nil +} + +// ClientIp Getter +func (r YunosAppstoreOpenGetadsAPIRequest) GetClientIp() string { + return r._clientIp +} +// Pkgs Setter +// 广告指定包名 +func (r *YunosAppstoreOpenGetadsAPIRequest) SetPkgs(_pkgs []string) error { + r._pkgs = _pkgs + r.Set("pkgs", _pkgs) + return nil +} + +// Pkgs Getter +func (r YunosAppstoreOpenGetadsAPIRequest) GetPkgs() []string { + return r._pkgs +} +// ClientVerCode Setter +// 客户端版本号 +func (r *YunosAppstoreOpenGetadsAPIRequest) SetClientVerCode(_clientVerCode int64) error { + r._clientVerCode = _clientVerCode + r.Set("client_ver_code", _clientVerCode) + return nil +} + +// ClientVerCode Getter +func (r YunosAppstoreOpenGetadsAPIRequest) GetClientVerCode() int64 { + return r._clientVerCode +} +// TryMapToUuid Setter +// 是否映射到uuid +func (r *YunosAppstoreOpenGetadsAPIRequest) SetTryMapToUuid(_tryMapToUuid bool) error { + r._tryMapToUuid = _tryMapToUuid + r.Set("try_map_to_uuid", _tryMapToUuid) + return nil +} + +// TryMapToUuid Getter +func (r YunosAppstoreOpenGetadsAPIRequest) GetTryMapToUuid() bool { + return r._tryMapToUuid +} +// ExcludePkgs Setter +// 排除包名列表 +func (r *YunosAppstoreOpenGetadsAPIRequest) SetExcludePkgs(_excludePkgs []string) error { + r._excludePkgs = _excludePkgs + r.Set("exclude_pkgs", _excludePkgs) + return nil +} + +// ExcludePkgs Getter +func (r YunosAppstoreOpenGetadsAPIRequest) GetExcludePkgs() []string { + return r._excludePkgs +} +// DeviceId Setter +// 设备唯一标识 +func (r *YunosAppstoreOpenGetadsAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r YunosAppstoreOpenGetadsAPIRequest) GetDeviceId() string { + return r._deviceId +} +// Size Setter +// 广告数量 +func (r *YunosAppstoreOpenGetadsAPIRequest) SetSize(_size int64) error { + r._size = _size + r.Set("size", _size) + return nil +} + +// Size Getter +func (r YunosAppstoreOpenGetadsAPIRequest) GetSize() int64 { + return r._size +} +// ExcludeCats Setter +// 排除分类 +func (r *YunosAppstoreOpenGetadsAPIRequest) SetExcludeCats(_excludeCats []string) error { + r._excludeCats = _excludeCats + r.Set("exclude_cats", _excludeCats) + return nil +} + +// ExcludeCats Getter +func (r YunosAppstoreOpenGetadsAPIRequest) GetExcludeCats() []string { + return r._excludeCats +} +// TemplateIds Setter +// 创意模板id列表 +func (r *YunosAppstoreOpenGetadsAPIRequest) SetTemplateIds(_templateIds []int64) error { + r._templateIds = _templateIds + r.Set("template_ids", _templateIds) + return nil +} + +// TemplateIds Getter +func (r YunosAppstoreOpenGetadsAPIRequest) GetTemplateIds() []int64 { + return r._templateIds +} +// Mrp Setter +// 广告底价 +func (r *YunosAppstoreOpenGetadsAPIRequest) SetMrp(_mrp int64) error { + r._mrp = _mrp + r.Set("mrp", _mrp) + return nil +} + +// Mrp Getter +func (r YunosAppstoreOpenGetadsAPIRequest) GetMrp() int64 { + return r._mrp +} +// Options Setter +// 请求特征集 +func (r *YunosAppstoreOpenGetadsAPIRequest) SetOptions(_options int64) error { + r._options = _options + r.Set("options", _options) + return nil +} + +// Options Getter +func (r YunosAppstoreOpenGetadsAPIRequest) GetOptions() int64 { + return r._options +} diff --git a/model/yunosappstore/YunosAppstoreOpenGetadsAPIResponse.go b/model/yunosappstore/YunosAppstoreOpenGetadsAPIResponse.go new file mode 100644 index 0000000000..ee9a56a285 --- /dev/null +++ b/model/yunosappstore/YunosAppstoreOpenGetadsAPIResponse.go @@ -0,0 +1,33 @@ +package yunosappstore + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取外投广告 API返回值 +yunos.appstore.open.getads + +将广告外投给外部合作伙伴 +*/ +type YunosAppstoreOpenGetadsAPIResponse struct { + model.CommonResponse + YunosAppstoreOpenGetadsAPIResponseModel +} + +// 获取外投广告 成功返回结果 +type YunosAppstoreOpenGetadsAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_appstore_open_getads_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 请求id + Rid string `json:"rid,omitempty" xml:"rid,omitempty"` + // 响应码 + Rc int64 `json:"rc,omitempty" xml:"rc,omitempty"` + // 响应消息 + Rm string `json:"rm,omitempty" xml:"rm,omitempty"` + // 广告集 + Ads []AdInfo `json:"ads,omitempty" xml:"ads>ad_info,omitempty"` +} diff --git a/model/yunosappstore/YunosAppstoreOpenGetadsResponse.go b/model/yunosappstore/YunosAppstoreOpenGetadsResponse.go deleted file mode 100644 index 71c74e9193..0000000000 --- a/model/yunosappstore/YunosAppstoreOpenGetadsResponse.go +++ /dev/null @@ -1,33 +0,0 @@ -package yunosappstore - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取外投广告 API返回值 -yunos.appstore.open.getads - -将广告外投给外部合作伙伴 -*/ -type YunosAppstoreOpenGetadsAPIResponse struct { - model.CommonResponse - YunosAppstoreOpenGetadsResponse -} - -// 获取外投广告 成功返回结果 -type YunosAppstoreOpenGetadsResponse struct { - XMLName xml.Name `xml:"yunos_appstore_open_getads_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 请求id - Rid string `json:"rid,omitempty" xml:"rid,omitempty"` - // 响应码 - Rc int64 `json:"rc,omitempty" xml:"rc,omitempty"` - // 响应消息 - Rm string `json:"rm,omitempty" xml:"rm,omitempty"` - // 广告集 - Ads []AdInfo `json:"ads,omitempty" xml:"ads>ad_info,omitempty"` -} diff --git a/model/yunosappstore/YunosAppstoreOpenReportadAPIRequest.go b/model/yunosappstore/YunosAppstoreOpenReportadAPIRequest.go new file mode 100644 index 0000000000..ad210c78ab --- /dev/null +++ b/model/yunosappstore/YunosAppstoreOpenReportadAPIRequest.go @@ -0,0 +1,108 @@ +package yunosappstore + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +外投广告上报接口 API请求 +yunos.appstore.open.reportad + +外投广告回流上报接口 +*/ +type YunosAppstoreOpenReportadAPIRequest struct { + model.Params + // 广告跟踪id列表 + _traceIds []string + // 事件时间,当前毫秒数 + _time int64 + // 事件类型:0 代表曝光事件;1 代表点击下载事件;2 代表下载完成事件;3 代表安装完成事件 + _action int64 + // 客户端版本号 + _clientVerCode int64 + // 客户端设备标识 + _deviceId string +} + +// 初始化YunosAppstoreOpenReportadAPIRequest对象 +func NewYunosAppstoreOpenReportadRequest() *YunosAppstoreOpenReportadAPIRequest{ + return &YunosAppstoreOpenReportadAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosAppstoreOpenReportadAPIRequest) GetApiMethodName() string { + return "yunos.appstore.open.reportad" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosAppstoreOpenReportadAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// TraceIds Setter +// 广告跟踪id列表 +func (r *YunosAppstoreOpenReportadAPIRequest) SetTraceIds(_traceIds []string) error { + r._traceIds = _traceIds + r.Set("trace_ids", _traceIds) + return nil +} + +// TraceIds Getter +func (r YunosAppstoreOpenReportadAPIRequest) GetTraceIds() []string { + return r._traceIds +} +// Time Setter +// 事件时间,当前毫秒数 +func (r *YunosAppstoreOpenReportadAPIRequest) SetTime(_time int64) error { + r._time = _time + r.Set("time", _time) + return nil +} + +// Time Getter +func (r YunosAppstoreOpenReportadAPIRequest) GetTime() int64 { + return r._time +} +// Action Setter +// 事件类型:0 代表曝光事件;1 代表点击下载事件;2 代表下载完成事件;3 代表安装完成事件 +func (r *YunosAppstoreOpenReportadAPIRequest) SetAction(_action int64) error { + r._action = _action + r.Set("action", _action) + return nil +} + +// Action Getter +func (r YunosAppstoreOpenReportadAPIRequest) GetAction() int64 { + return r._action +} +// ClientVerCode Setter +// 客户端版本号 +func (r *YunosAppstoreOpenReportadAPIRequest) SetClientVerCode(_clientVerCode int64) error { + r._clientVerCode = _clientVerCode + r.Set("client_ver_code", _clientVerCode) + return nil +} + +// ClientVerCode Getter +func (r YunosAppstoreOpenReportadAPIRequest) GetClientVerCode() int64 { + return r._clientVerCode +} +// DeviceId Setter +// 客户端设备标识 +func (r *YunosAppstoreOpenReportadAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r YunosAppstoreOpenReportadAPIRequest) GetDeviceId() string { + return r._deviceId +} diff --git a/model/yunosappstore/YunosAppstoreOpenReportadAPIResponse.go b/model/yunosappstore/YunosAppstoreOpenReportadAPIResponse.go new file mode 100644 index 0000000000..b656f92778 --- /dev/null +++ b/model/yunosappstore/YunosAppstoreOpenReportadAPIResponse.go @@ -0,0 +1,29 @@ +package yunosappstore + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +外投广告上报接口 API返回值 +yunos.appstore.open.reportad + +外投广告回流上报接口 +*/ +type YunosAppstoreOpenReportadAPIResponse struct { + model.CommonResponse + YunosAppstoreOpenReportadAPIResponseModel +} + +// 外投广告上报接口 成功返回结果 +type YunosAppstoreOpenReportadAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_appstore_open_reportad_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 响应码 + Rc int64 `json:"rc,omitempty" xml:"rc,omitempty"` + // 响应消息 + Rm string `json:"rm,omitempty" xml:"rm,omitempty"` +} diff --git a/model/yunosappstore/YunosAppstoreOpenReportadResponse.go b/model/yunosappstore/YunosAppstoreOpenReportadResponse.go deleted file mode 100644 index 9e2783e8bf..0000000000 --- a/model/yunosappstore/YunosAppstoreOpenReportadResponse.go +++ /dev/null @@ -1,29 +0,0 @@ -package yunosappstore - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -外投广告上报接口 API返回值 -yunos.appstore.open.reportad - -外投广告回流上报接口 -*/ -type YunosAppstoreOpenReportadAPIResponse struct { - model.CommonResponse - YunosAppstoreOpenReportadResponse -} - -// 外投广告上报接口 成功返回结果 -type YunosAppstoreOpenReportadResponse struct { - XMLName xml.Name `xml:"yunos_appstore_open_reportad_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 响应码 - Rc int64 `json:"rc,omitempty" xml:"rc,omitempty"` - // 响应消息 - Rm string `json:"rm,omitempty" xml:"rm,omitempty"` -} diff --git a/model/yunosappstore/YunosAppstorePadHpApplistAPIRequest.go b/model/yunosappstore/YunosAppstorePadHpApplistAPIRequest.go new file mode 100644 index 0000000000..d92297419a --- /dev/null +++ b/model/yunosappstore/YunosAppstorePadHpApplistAPIRequest.go @@ -0,0 +1,52 @@ +package yunosappstore + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +查询HpPad appList API请求 +yunos.appstore.pad.hp.applist + +提供hp pad应用群数据 +*/ +type YunosAppstorePadHpApplistAPIRequest struct { + model.Params + // 获取的应用群code + _code string +} + +// 初始化YunosAppstorePadHpApplistAPIRequest对象 +func NewYunosAppstorePadHpApplistRequest() *YunosAppstorePadHpApplistAPIRequest{ + return &YunosAppstorePadHpApplistAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosAppstorePadHpApplistAPIRequest) GetApiMethodName() string { + return "yunos.appstore.pad.hp.applist" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosAppstorePadHpApplistAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Code Setter +// 获取的应用群code +func (r *YunosAppstorePadHpApplistAPIRequest) SetCode(_code string) error { + r._code = _code + r.Set("code", _code) + return nil +} + +// Code Getter +func (r YunosAppstorePadHpApplistAPIRequest) GetCode() string { + return r._code +} diff --git a/model/yunosappstore/YunosAppstorePadHpApplistAPIResponse.go b/model/yunosappstore/YunosAppstorePadHpApplistAPIResponse.go new file mode 100644 index 0000000000..81e8091ee0 --- /dev/null +++ b/model/yunosappstore/YunosAppstorePadHpApplistAPIResponse.go @@ -0,0 +1,27 @@ +package yunosappstore + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +查询HpPad appList API返回值 +yunos.appstore.pad.hp.applist + +提供hp pad应用群数据 +*/ +type YunosAppstorePadHpApplistAPIResponse struct { + model.CommonResponse + YunosAppstorePadHpApplistAPIResponseModel +} + +// 查询HpPad appList 成功返回结果 +type YunosAppstorePadHpApplistAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_appstore_pad_hp_applist_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // result + Results []YunosAppstorePadHpApplistResult `json:"results,omitempty" xml:"results>yunos_appstore_pad_hp_applist_result,omitempty"` +} diff --git a/model/yunosappstore/YunosAppstorePadHpApplistResponse.go b/model/yunosappstore/YunosAppstorePadHpApplistResponse.go deleted file mode 100644 index 5fdf28a799..0000000000 --- a/model/yunosappstore/YunosAppstorePadHpApplistResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package yunosappstore - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -查询HpPad appList API返回值 -yunos.appstore.pad.hp.applist - -提供hp pad应用群数据 -*/ -type YunosAppstorePadHpApplistAPIResponse struct { - model.CommonResponse - YunosAppstorePadHpApplistResponse -} - -// 查询HpPad appList 成功返回结果 -type YunosAppstorePadHpApplistResponse struct { - XMLName xml.Name `xml:"yunos_appstore_pad_hp_applist_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // result - Results []YunosAppstorePadHpApplistResult `json:"results,omitempty" xml:"results>yunos_appstore_pad_hp_applist_result,omitempty"` -} diff --git a/model/yunosdm/YunosDmSysGetDomainAPIRequest.go b/model/yunosdm/YunosDmSysGetDomainAPIRequest.go new file mode 100644 index 0000000000..f077c66ab1 --- /dev/null +++ b/model/yunosdm/YunosDmSysGetDomainAPIRequest.go @@ -0,0 +1,80 @@ +package yunosdm + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +获取动态域名 API请求 +yunos.dm.sys.get.domain + +返回alios ucp后端域名 +*/ +type YunosDmSysGetDomainAPIRequest struct { + model.Params + // 制造商 + _make string + // 设备类型 + _model string + // 序列号 + _sn string +} + +// 初始化YunosDmSysGetDomainAPIRequest对象 +func NewYunosDmSysGetDomainRequest() *YunosDmSysGetDomainAPIRequest{ + return &YunosDmSysGetDomainAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosDmSysGetDomainAPIRequest) GetApiMethodName() string { + return "yunos.dm.sys.get.domain" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosDmSysGetDomainAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Make Setter +// 制造商 +func (r *YunosDmSysGetDomainAPIRequest) SetMake(_make string) error { + r._make = _make + r.Set("make", _make) + return nil +} + +// Make Getter +func (r YunosDmSysGetDomainAPIRequest) GetMake() string { + return r._make +} +// Model Setter +// 设备类型 +func (r *YunosDmSysGetDomainAPIRequest) SetModel(_model string) error { + r._model = _model + r.Set("model", _model) + return nil +} + +// Model Getter +func (r YunosDmSysGetDomainAPIRequest) GetModel() string { + return r._model +} +// Sn Setter +// 序列号 +func (r *YunosDmSysGetDomainAPIRequest) SetSn(_sn string) error { + r._sn = _sn + r.Set("sn", _sn) + return nil +} + +// Sn Getter +func (r YunosDmSysGetDomainAPIRequest) GetSn() string { + return r._sn +} diff --git a/model/yunosdm/YunosDmSysGetDomainAPIResponse.go b/model/yunosdm/YunosDmSysGetDomainAPIResponse.go new file mode 100644 index 0000000000..6b6629054b --- /dev/null +++ b/model/yunosdm/YunosDmSysGetDomainAPIResponse.go @@ -0,0 +1,27 @@ +package yunosdm + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +获取动态域名 API返回值 +yunos.dm.sys.get.domain + +返回alios ucp后端域名 +*/ +type YunosDmSysGetDomainAPIResponse struct { + model.CommonResponse + YunosDmSysGetDomainAPIResponseModel +} + +// 获取动态域名 成功返回结果 +type YunosDmSysGetDomainAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_dm_sys_get_domain_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // obj + Url string `json:"url,omitempty" xml:"url,omitempty"` +} diff --git a/model/yunosdm/YunosDmSysGetDomainResponse.go b/model/yunosdm/YunosDmSysGetDomainResponse.go deleted file mode 100644 index 82a1350389..0000000000 --- a/model/yunosdm/YunosDmSysGetDomainResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package yunosdm - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -获取动态域名 API返回值 -yunos.dm.sys.get.domain - -返回alios ucp后端域名 -*/ -type YunosDmSysGetDomainAPIResponse struct { - model.CommonResponse - YunosDmSysGetDomainResponse -} - -// 获取动态域名 成功返回结果 -type YunosDmSysGetDomainResponse struct { - XMLName xml.Name `xml:"yunos_dm_sys_get_domain_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // obj - Url string `json:"url,omitempty" xml:"url,omitempty"` -} diff --git a/model/yunosminiapp/YunosMiniappActivityCallAPIRequest.go b/model/yunosminiapp/YunosMiniappActivityCallAPIRequest.go new file mode 100644 index 0000000000..524a0f8919 --- /dev/null +++ b/model/yunosminiapp/YunosMiniappActivityCallAPIRequest.go @@ -0,0 +1,80 @@ +package yunosminiapp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +调用活动接口 API请求 +yunos.miniapp.activity.call + +用于小程序调用活动接口 +*/ +type YunosMiniappActivityCallAPIRequest struct { + model.Params + // 请求选项 + _options *Options + // 设备id + _deviceId string + // 活动id + _activityId string +} + +// 初始化YunosMiniappActivityCallAPIRequest对象 +func NewYunosMiniappActivityCallRequest() *YunosMiniappActivityCallAPIRequest{ + return &YunosMiniappActivityCallAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosMiniappActivityCallAPIRequest) GetApiMethodName() string { + return "yunos.miniapp.activity.call" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosMiniappActivityCallAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Options Setter +// 请求选项 +func (r *YunosMiniappActivityCallAPIRequest) SetOptions(_options *Options) error { + r._options = _options + r.Set("options", _options) + return nil +} + +// Options Getter +func (r YunosMiniappActivityCallAPIRequest) GetOptions() *Options { + return r._options +} +// DeviceId Setter +// 设备id +func (r *YunosMiniappActivityCallAPIRequest) SetDeviceId(_deviceId string) error { + r._deviceId = _deviceId + r.Set("device_id", _deviceId) + return nil +} + +// DeviceId Getter +func (r YunosMiniappActivityCallAPIRequest) GetDeviceId() string { + return r._deviceId +} +// ActivityId Setter +// 活动id +func (r *YunosMiniappActivityCallAPIRequest) SetActivityId(_activityId string) error { + r._activityId = _activityId + r.Set("activity_id", _activityId) + return nil +} + +// ActivityId Getter +func (r YunosMiniappActivityCallAPIRequest) GetActivityId() string { + return r._activityId +} diff --git a/model/yunosminiapp/YunosMiniappActivityCallAPIResponse.go b/model/yunosminiapp/YunosMiniappActivityCallAPIResponse.go new file mode 100644 index 0000000000..546561c097 --- /dev/null +++ b/model/yunosminiapp/YunosMiniappActivityCallAPIResponse.go @@ -0,0 +1,27 @@ +package yunosminiapp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +调用活动接口 API返回值 +yunos.miniapp.activity.call + +用于小程序调用活动接口 +*/ +type YunosMiniappActivityCallAPIResponse struct { + model.CommonResponse + YunosMiniappActivityCallAPIResponseModel +} + +// 调用活动接口 成功返回结果 +type YunosMiniappActivityCallAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_miniapp_activity_call_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 接口返回model + Result *YunosMiniappActivityCallResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/yunosminiapp/YunosMiniappActivityCallResponse.go b/model/yunosminiapp/YunosMiniappActivityCallResponse.go deleted file mode 100644 index aa06a65890..0000000000 --- a/model/yunosminiapp/YunosMiniappActivityCallResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package yunosminiapp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -调用活动接口 API返回值 -yunos.miniapp.activity.call - -用于小程序调用活动接口 -*/ -type YunosMiniappActivityCallAPIResponse struct { - model.CommonResponse - YunosMiniappActivityCallResponse -} - -// 调用活动接口 成功返回结果 -type YunosMiniappActivityCallResponse struct { - XMLName xml.Name `xml:"yunos_miniapp_activity_call_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 接口返回model - Result *YunosMiniappActivityCallResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/yunosminiapp/YunosMiniappDatatunnelCallAPIRequest.go b/model/yunosminiapp/YunosMiniappDatatunnelCallAPIRequest.go new file mode 100644 index 0000000000..26892b0a41 --- /dev/null +++ b/model/yunosminiapp/YunosMiniappDatatunnelCallAPIRequest.go @@ -0,0 +1,52 @@ +package yunosminiapp + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +车载小程序外部服务调用 API请求 +yunos.miniapp.datatunnel.call + +对客户提供的api进行统一封装调用。 +*/ +type YunosMiniappDatatunnelCallAPIRequest struct { + model.Params + // 参数 + _param *BaseRequest +} + +// 初始化YunosMiniappDatatunnelCallAPIRequest对象 +func NewYunosMiniappDatatunnelCallRequest() *YunosMiniappDatatunnelCallAPIRequest{ + return &YunosMiniappDatatunnelCallAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r YunosMiniappDatatunnelCallAPIRequest) GetApiMethodName() string { + return "yunos.miniapp.datatunnel.call" +} + +// IRequest interface 方法, 获取API参数 +func (r YunosMiniappDatatunnelCallAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// Param Setter +// 参数 +func (r *YunosMiniappDatatunnelCallAPIRequest) SetParam(_param *BaseRequest) error { + r._param = _param + r.Set("param", _param) + return nil +} + +// Param Getter +func (r YunosMiniappDatatunnelCallAPIRequest) GetParam() *BaseRequest { + return r._param +} diff --git a/model/yunosminiapp/YunosMiniappDatatunnelCallAPIResponse.go b/model/yunosminiapp/YunosMiniappDatatunnelCallAPIResponse.go new file mode 100644 index 0000000000..24eeacfb7b --- /dev/null +++ b/model/yunosminiapp/YunosMiniappDatatunnelCallAPIResponse.go @@ -0,0 +1,27 @@ +package yunosminiapp + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +车载小程序外部服务调用 API返回值 +yunos.miniapp.datatunnel.call + +对客户提供的api进行统一封装调用。 +*/ +type YunosMiniappDatatunnelCallAPIResponse struct { + model.CommonResponse + YunosMiniappDatatunnelCallAPIResponseModel +} + +// 车载小程序外部服务调用 成功返回结果 +type YunosMiniappDatatunnelCallAPIResponseModel struct { + XMLName xml.Name `xml:"yunos_miniapp_datatunnel_call_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 结果 + Result *YunosMiniappDatatunnelCallMapResult `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/yunosminiapp/YunosMiniappDatatunnelCallResponse.go b/model/yunosminiapp/YunosMiniappDatatunnelCallResponse.go deleted file mode 100644 index a1c6c7363e..0000000000 --- a/model/yunosminiapp/YunosMiniappDatatunnelCallResponse.go +++ /dev/null @@ -1,27 +0,0 @@ -package yunosminiapp - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -车载小程序外部服务调用 API返回值 -yunos.miniapp.datatunnel.call - -对客户提供的api进行统一封装调用。 -*/ -type YunosMiniappDatatunnelCallAPIResponse struct { - model.CommonResponse - YunosMiniappDatatunnelCallResponse -} - -// 车载小程序外部服务调用 成功返回结果 -type YunosMiniappDatatunnelCallResponse struct { - XMLName xml.Name `xml:"yunos_miniapp_datatunnel_call_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 结果 - Result *YunosMiniappDatatunnelCallMapResult `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/model/zqs/AlibabaZqsFulfillCompleteAPIRequest.go b/model/zqs/AlibabaZqsFulfillCompleteAPIRequest.go new file mode 100644 index 0000000000..b3c44ff520 --- /dev/null +++ b/model/zqs/AlibabaZqsFulfillCompleteAPIRequest.go @@ -0,0 +1,80 @@ +package zqs + +import ( + "net/url" + + "github.com/bububa/opentaobao/model" +) + +/* +周期购履约完成接口 API请求 +alibaba.zqs.fulfill.complete + +周期购履约完成接口 +*/ +type AlibabaZqsFulfillCompleteAPIRequest struct { + model.Params + // 第几期 + _sequenceNo int64 + // 交易单号 + _mainBizOrderId int64 + // 交易子单号 + _subBizOrderId int64 +} + +// 初始化AlibabaZqsFulfillCompleteAPIRequest对象 +func NewAlibabaZqsFulfillCompleteRequest() *AlibabaZqsFulfillCompleteAPIRequest{ + return &AlibabaZqsFulfillCompleteAPIRequest{ + Params: model.NewParams(), + } +} + +// IRequest interface 方法, 获取Api method +func (r AlibabaZqsFulfillCompleteAPIRequest) GetApiMethodName() string { + return "alibaba.zqs.fulfill.complete" +} + +// IRequest interface 方法, 获取API参数 +func (r AlibabaZqsFulfillCompleteAPIRequest) GetApiParams() url.Values { + params := url.Values{} + for k, v := range r.GetRawParams() { + params.Set(k, v.String()) + } + return params +} +// SequenceNo Setter +// 第几期 +func (r *AlibabaZqsFulfillCompleteAPIRequest) SetSequenceNo(_sequenceNo int64) error { + r._sequenceNo = _sequenceNo + r.Set("sequence_no", _sequenceNo) + return nil +} + +// SequenceNo Getter +func (r AlibabaZqsFulfillCompleteAPIRequest) GetSequenceNo() int64 { + return r._sequenceNo +} +// MainBizOrderId Setter +// 交易单号 +func (r *AlibabaZqsFulfillCompleteAPIRequest) SetMainBizOrderId(_mainBizOrderId int64) error { + r._mainBizOrderId = _mainBizOrderId + r.Set("main_biz_order_id", _mainBizOrderId) + return nil +} + +// MainBizOrderId Getter +func (r AlibabaZqsFulfillCompleteAPIRequest) GetMainBizOrderId() int64 { + return r._mainBizOrderId +} +// SubBizOrderId Setter +// 交易子单号 +func (r *AlibabaZqsFulfillCompleteAPIRequest) SetSubBizOrderId(_subBizOrderId int64) error { + r._subBizOrderId = _subBizOrderId + r.Set("sub_biz_order_id", _subBizOrderId) + return nil +} + +// SubBizOrderId Getter +func (r AlibabaZqsFulfillCompleteAPIRequest) GetSubBizOrderId() int64 { + return r._subBizOrderId +} diff --git a/model/zqs/AlibabaZqsFulfillCompleteAPIResponse.go b/model/zqs/AlibabaZqsFulfillCompleteAPIResponse.go new file mode 100644 index 0000000000..71a5add15a --- /dev/null +++ b/model/zqs/AlibabaZqsFulfillCompleteAPIResponse.go @@ -0,0 +1,31 @@ +package zqs + +import ( + "encoding/xml" + + "github.com/bububa/opentaobao/model" +) + +/* +周期购履约完成接口 API返回值 +alibaba.zqs.fulfill.complete + +周期购履约完成接口 +*/ +type AlibabaZqsFulfillCompleteAPIResponse struct { + model.CommonResponse + AlibabaZqsFulfillCompleteAPIResponseModel +} + +// 周期购履约完成接口 成功返回结果 +type AlibabaZqsFulfillCompleteAPIResponseModel struct { + XMLName xml.Name `xml:"alibaba_zqs_fulfill_complete_response"` + // 平台颁发的每次请求访问的唯一标识 + RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` + // 异常描述 + ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` + // 异常code + ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` + // 执行结果 + Result bool `json:"result,omitempty" xml:"result,omitempty"` +} diff --git a/model/zqs/AlibabaZqsFulfillCompleteResponse.go b/model/zqs/AlibabaZqsFulfillCompleteResponse.go deleted file mode 100644 index 9f9e0a464d..0000000000 --- a/model/zqs/AlibabaZqsFulfillCompleteResponse.go +++ /dev/null @@ -1,31 +0,0 @@ -package zqs - -import ( - "encoding/xml" - - "github.com/bububa/opentaobao/model" -) - -/* -周期购履约完成接口 API返回值 -alibaba.zqs.fulfill.complete - -周期购履约完成接口 -*/ -type AlibabaZqsFulfillCompleteAPIResponse struct { - model.CommonResponse - AlibabaZqsFulfillCompleteResponse -} - -// 周期购履约完成接口 成功返回结果 -type AlibabaZqsFulfillCompleteResponse struct { - XMLName xml.Name `xml:"alibaba_zqs_fulfill_complete_response"` - // 平台颁发的每次请求访问的唯一标识 - RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` - // 异常描述 - ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` - // 异常code - ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` - // 执行结果 - Result bool `json:"result,omitempty" xml:"result,omitempty"` -} diff --git a/tests/json_test.go b/tests/json_test.go new file mode 100644 index 0000000000..0ccb6a6c70 --- /dev/null +++ b/tests/json_test.go @@ -0,0 +1,45 @@ +package tests + +import ( + "os" + "testing" + + tbkApi "github.com/bububa/opentaobao/api/tbk" + "github.com/bububa/opentaobao/core" + "github.com/bububa/opentaobao/model" + tbkModel "github.com/bububa/opentaobao/model/tbk" +) + +func TestJSONFormatHmac(t *testing.T) { + appKey := os.Getenv("APPKEY") + secret := os.Getenv("SECRET") + clt := core.NewSDKClient(appKey, secret) + clt.SetDebug(true) + clt.SetAPIFormat(model.JSON) + clt.SetSignMethod(model.HMAC) + req := tbkModel.NewTaobaoTbkTpwdCreateRequest() + req.SetUrl("https://s.click.taobao.com/GKQEZlu") + req.SetText("test tpwd create") + resp, err := tbkApi.TaobaoTbkTpwdCreate(clt, req, "") + if err != nil { + t.Error(err) + } + t.Logf("RESP: %+v\n", *resp.Data) +} + +func TestJSONFormatMd5(t *testing.T) { + appKey := os.Getenv("APPKEY") + secret := os.Getenv("SECRET") + clt := core.NewSDKClient(appKey, secret) + clt.SetDebug(true) + clt.SetAPIFormat(model.JSON) + clt.SetSignMethod(model.MD5) + req := tbkModel.NewTaobaoTbkTpwdCreateRequest() + req.SetUrl("https://s.click.taobao.com/GKQEZlu") + req.SetText("test tpwd create") + resp, err := tbkApi.TaobaoTbkTpwdCreate(clt, req, "") + if err != nil { + t.Error(err) + } + t.Logf("RESP: %+v\n", *resp.Data) +} diff --git a/tests/xml_test.go b/tests/xml_test.go new file mode 100644 index 0000000000..b7fb53e7ba --- /dev/null +++ b/tests/xml_test.go @@ -0,0 +1,45 @@ +package tests + +import ( + "os" + "testing" + + tbkApi "github.com/bububa/opentaobao/api/tbk" + "github.com/bububa/opentaobao/core" + "github.com/bububa/opentaobao/model" + tbkModel "github.com/bububa/opentaobao/model/tbk" +) + +func TestXMLFormatHmac(t *testing.T) { + appKey := os.Getenv("APPKEY") + secret := os.Getenv("SECRET") + clt := core.NewSDKClient(appKey, secret) + clt.SetDebug(true) + clt.SetAPIFormat(model.XML) + clt.SetSignMethod(model.HMAC) + req := tbkModel.NewTaobaoTbkItemInfoGetRequest() + req.SetNumIids("617361236670") + req.SetPlatform(2) + resp, err := tbkApi.TaobaoTbkItemInfoGet(clt, req, "") + if err != nil { + t.Error(err) + } + t.Logf("RESP: %+v\n", *resp) +} + +func TestXMLFormatMd5(t *testing.T) { + appKey := os.Getenv("APPKEY") + secret := os.Getenv("SECRET") + clt := core.NewSDKClient(appKey, secret) + clt.SetDebug(true) + clt.SetAPIFormat(model.XML) + clt.SetSignMethod(model.MD5) + req := tbkModel.NewTaobaoTbkItemInfoGetRequest() + req.SetNumIids("617361236670") + req.SetPlatform(2) + resp, err := tbkApi.TaobaoTbkItemInfoGet(clt, req, "") + if err != nil { + t.Error(err) + } + t.Logf("RESP: %+v\n", *resp) +}